@univerjs-pro/sheets-shape-ui 1.0.0-insiders.20260809-70eefdd → 1.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) 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/commands/operations/open-mobile-shape-editor.operation.d.ts +9 -0
  62. package/lib/types/controllers/mobile/components.controller.d.ts +5 -0
  63. package/lib/types/controllers/mobile/shape-text-editing.render-controller.d.ts +4 -0
  64. package/lib/types/controllers/mobile/ui.controller.d.ts +8 -0
  65. package/lib/types/controllers/shape-sheet-copy-plan.d.ts +16 -0
  66. package/lib/types/controllers/shape-text-editing.render-controller.d.ts +6 -5
  67. package/lib/types/controllers/shape-text-float-menu.render-controller.d.ts +6 -4
  68. package/lib/types/controllers/ui.controller.d.ts +9 -8
  69. package/lib/types/index.d.ts +2 -1
  70. package/lib/types/locale/en-US.d.ts +3 -0
  71. package/lib/types/menu/mobile-schema.d.ts +17 -0
  72. package/lib/types/menu/schema.d.ts +1 -0
  73. package/lib/types/mobile-plugin.d.ts +22 -0
  74. package/lib/types/services/shape-text-editing.service.d.ts +6 -1
  75. package/lib/types/views/ShapePicker.d.ts +2 -0
  76. package/lib/umd/index.js +1 -1
  77. package/lib/umd/locale/ar-SA.js +1 -1
  78. package/lib/umd/locale/ca-ES.js +1 -1
  79. package/lib/umd/locale/de-DE.js +1 -1
  80. package/lib/umd/locale/en-US.js +1 -1
  81. package/lib/umd/locale/es-ES.js +1 -1
  82. package/lib/umd/locale/fa-IR.js +1 -1
  83. package/lib/umd/locale/fr-FR.js +1 -1
  84. package/lib/umd/locale/id-ID.js +1 -1
  85. package/lib/umd/locale/it-IT.js +1 -1
  86. package/lib/umd/locale/ja-JP.js +1 -1
  87. package/lib/umd/locale/ko-KR.js +1 -1
  88. package/lib/umd/locale/pl-PL.js +1 -1
  89. package/lib/umd/locale/pt-BR.js +1 -1
  90. package/lib/umd/locale/ru-RU.js +1 -1
  91. package/lib/umd/locale/sk-SK.js +1 -1
  92. package/lib/umd/locale/vi-VN.js +1 -1
  93. package/lib/umd/locale/zh-CN.js +1 -1
  94. package/lib/umd/locale/zh-HK.js +1 -1
  95. package/lib/umd/locale/zh-TW.js +1 -1
  96. package/package.json +23 -22
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x22001c=_0x51b0;(function(_0x55db2f,_0x4ec3b7){const _0x41e817=_0x51b0,_0x4907a5=_0x55db2f();while(!![]){try{const _0x3b1078=parseInt(_0x41e817(0x410))/0x1*(parseInt(_0x41e817(0x3dc))/0x2)+parseInt(_0x41e817(0x1d6))/0x3*(parseInt(_0x41e817(0x18d))/0x4)+parseInt(_0x41e817(0x31f))/0x5+parseInt(_0x41e817(0x1e4))/0x6+parseInt(_0x41e817(0x43d))/0x7+parseInt(_0x41e817(0x261))/0x8+parseInt(_0x41e817(0x16e))/0x9*(-parseInt(_0x41e817(0x201))/0xa);if(_0x3b1078===_0x4ec3b7)break;else _0x4907a5['push'](_0x4907a5['shift']());}catch(_0x9aa464){_0x4907a5['push'](_0x4907a5['shift']());}}}(_0x4103,0x7f447),Object['defineProperty'](exports,Symbol[_0x22001c(0x400)],{'value':_0x22001c(0x27b)}));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(_0x3fa879,_0x179a65){const _0x456b0c=_0x22001c;let _0x1f5467={};for(let _0x30c19a of Object[_0x456b0c(0x26d)](_0x179a65)){let _0x309447=_0x179a65[_0x30c19a],_0x324713=_0x3fa879[_0x30c19a];if(_0x309447!==void 0x0){if(_0x324713===void 0x0){_0x1f5467[_0x30c19a]=void 0x0;continue;}typeof _0x309447==_0x456b0c(0x18c)&&_0x309447&&!Array['isArray'](_0x309447)&&typeof _0x324713==_0x456b0c(0x18c)&&_0x324713&&!Array[_0x456b0c(0x3ad)](_0x324713)?_0x1f5467[_0x30c19a]=b(_0x324713,_0x309447):_0x1f5467[_0x30c19a]=_0x324713;}}return _0x1f5467;}const x={'type':a[_0x22001c(0x344)][_0x22001c(0x460)],'id':_0x22001c(0x380),'handler':(_0x1b4304,_0x3e4d43)=>{const _0x4cbc2f=_0x22001c;let _0x1f387a=_0x1b4304[_0x4cbc2f(0x38c)](i[_0x4cbc2f(0x1e3)]),{unitId:_0x8c3b33,subUnitId:_0x5a195a,shapeType:_0x1bab27,shapeId:_0x22f456,shapeData:_0x3e6844,replaceShapeData:_0x213493,oldShapeJSON:_0x3564c9}=_0x3e4d43;if(!_0x1f387a[_0x4cbc2f(0x44e)](_0x8c3b33,_0x5a195a,_0x22f456))return!0x1;let _0xabc557=_0x1b4304[_0x4cbc2f(0x38c)](a[_0x4cbc2f(0x20b)]),_0xe76cf6=_0x1b4304[_0x4cbc2f(0x38c)](a[_0x4cbc2f(0x405)]),{oldShapeType:_0x294d13,oldShapeData:_0x5e62c9={}}=_0x3564c9,_0x421f98=_0x213493?_0x5e62c9:b(_0x5e62c9,_0x3e6844||{}),_0x1c3283={'id':i[_0x4cbc2f(0x2bd)]['id'],'params':{'unitId':_0x8c3b33,'subUnitId':_0x5a195a,'shapeId':_0x22f456,'shapeType':_0x1bab27,'shapeData':_0x3e6844,'replace':_0x213493}},_0x1d79a0={'id':i[_0x4cbc2f(0x2bd)]['id'],'params':{'unitId':_0x8c3b33,'subUnitId':_0x5a195a,'shapeId':_0x22f456,'shapeType':_0x294d13,'shapeData':_0x421f98,'replace':_0x213493}};return _0xabc557['syncExecuteCommand'](_0x1c3283['id'],_0x1c3283[_0x4cbc2f(0x1a9)])?(_0xe76cf6['pushUndoRedo']({'unitID':_0x8c3b33,'undoMutations':[_0x1d79a0],'redoMutations':[_0x1c3283]}),!0x0):!0x1;}};function S(_0x60bcb4,_0x2e34cc,_0x5d8746,_0x51eeb2,_0x5535dd,_0x7fc3b3){let _0x4823c6={'unitId':_0x2e34cc,'subUnitId':_0x5d8746,'shapeId':_0x51eeb2,'shapeData':_0x7fc3b3,'oldShapeJSON':_0x5535dd};return _0x60bcb4['executeCommand'](x['id'],_0x4823c6);}function C(_0x32ab48,_0x303883,_0x2de299,_0x394fee,_0x1ad87c,_0x20667a){const _0xd6b18a=_0x22001c;let _0x5317be={'unitId':_0x303883,'subUnitId':_0x2de299,'shapeId':_0x394fee,'shapeData':_0x20667a,'oldShapeJSON':_0x1ad87c};return _0x32ab48[_0xd6b18a(0x404)](x['id'],_0x5317be);}function w(_0x3c1319){'@babel/helpers - typeof';const _0x1bfdc7=_0x22001c;return w=typeof Symbol==_0x1bfdc7(0x3a1)&&typeof Symbol[_0x1bfdc7(0x30c)]==_0x1bfdc7(0x3b4)?function(_0x3f856f){return typeof _0x3f856f;}:function(_0xb1ce3f){const _0x1762d1=_0x1bfdc7;return _0xb1ce3f&&typeof Symbol==_0x1762d1(0x3a1)&&_0xb1ce3f[_0x1762d1(0x12d)]===Symbol&&_0xb1ce3f!==Symbol['prototype']?_0x1762d1(0x3b4):typeof _0xb1ce3f;},w(_0x3c1319);}function ee(_0x2d442d,_0x9cc6b0){const _0xf108f4=_0x22001c;if(w(_0x2d442d)!=_0xf108f4(0x18c)||!_0x2d442d)return _0x2d442d;var _0x21923c=_0x2d442d[Symbol['toPrimitive']];if(_0x21923c!==void 0x0){var _0x294be6=_0x21923c['call'](_0x2d442d,_0x9cc6b0||_0xf108f4(0x3df));if(w(_0x294be6)!='object')return _0x294be6;throw TypeError(_0xf108f4(0x335));}return(_0x9cc6b0===_0xf108f4(0x436)?String:Number)(_0x2d442d);}function te(_0x5d0e71){const _0x3a51bc=_0x22001c;var _0x4b39a9=ee(_0x5d0e71,_0x3a51bc(0x436));return w(_0x4b39a9)==_0x3a51bc(0x3b4)?_0x4b39a9:_0x4b39a9+'';}function T(_0xe8d91f,_0x49af12,_0x4dcd8b){const _0x2287c4=_0x22001c;return(_0x49af12=te(_0x49af12))in _0xe8d91f?Object[_0x2287c4(0x1a4)](_0xe8d91f,_0x49af12,{'value':_0x4dcd8b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xe8d91f[_0x49af12]=_0x4dcd8b,_0xe8d91f;}function ne(_0x3236e1,_0x416572,_0x305652){const _0x2d7e69=_0x22001c;let _0x56663d=(0x0,e[_0x2d7e69(0x22f)])(_0x3236e1,{..._0x416572,'dataModel':{..._0x416572[_0x2d7e69(0x2bf)]??{},..._0x305652?{'doc':_0x305652}:null}}),_0x387340=(0x0,e[_0x2d7e69(0x175)])(_0x56663d);return{'clip':(0x0,e[_0x2d7e69(0x30e)])(_0x56663d,_0x387340),'wrapStrategy':_0x387340};}var E=class extends c[_0x22001c(0x170)]{constructor(_0x4bb958,_0x44f1b3){const _0x1b34f6=_0x22001c;super(_0x4bb958,_0x44f1b3),T(this,'_props',void 0x0),T(this,'_formulaAnimation',new e[(_0x1b34f6(0x23d))](()=>this[_0x1b34f6(0x444)](!0x0),()=>this['_applyFormulaAutoFitSize']())),T(this,'_transformCalculateSrcRect',!0x0),T(this,_0x1b34f6(0x40b),a[_0x1b34f6(0x2c3)][_0x1b34f6(0x2ef)]),T(this,_0x1b34f6(0x2d7),!0x0),this['_props']={..._0x44f1b3},this[_0x1b34f6(0x288)]['setPresentation'](_0x44f1b3[_0x1b34f6(0x278)],_0x44f1b3[_0x1b34f6(0x425)]!==!0x1),this[_0x1b34f6(0x44d)](),this[_0x1b34f6(0x309)]();}[_0x22001c(0x44d)](){const _0x4f1657=_0x22001c;this[_0x4f1657(0x371)][_0x4f1657(0x14a)](_0x172482=>{const _0x3efde1=_0x4f1657;this[_0x3efde1(0x161)](_0x172482);});}[_0x22001c(0x32c)](_0x1fd9a8){const _0x5aedf6=_0x22001c;this[_0x5aedf6(0x2ca)][_0x5aedf6(0x3a8)]=_0x1fd9a8;}[_0x22001c(0x23f)](_0x898848){const _0x4539a8=_0x22001c;this[_0x4539a8(0x2ca)][_0x4539a8(0x445)]=_0x898848,this[_0x4539a8(0x444)](!0x0);}[_0x22001c(0x2a8)](_0x1f977f,_0x22ab7d=!0x0){const _0x157f4b=_0x22001c;this[_0x157f4b(0x288)][_0x157f4b(0x3a0)](_0x1f977f,_0x22ab7d),this[_0x157f4b(0x2ca)][_0x157f4b(0x278)]=_0x1f977f,this[_0x157f4b(0x309)](),this[_0x157f4b(0x444)](!0x0);}['_applyFormulaAutoFitSize'](){const _0x5a4af1=_0x22001c;let _0x3bf125=this[_0x5a4af1(0x2ca)][_0x5a4af1(0x275)],_0x52d433=_0x3bf125['getShapeTextData'](),_0x161ae9=(0x0,e[_0x5a4af1(0x189)])(_0x52d433==null?void 0x0:_0x52d433[_0x5a4af1(0x2bf)]),_0x4b7dfb=_0x161ae9==null?void 0x0:_0x161ae9[_0x5a4af1(0x16f)],_0x39a35=this[_0x5a4af1(0x288)]['getAutoFitPresentations']();if(!_0x4b7dfb||_0x39a35['length']===0x0)return;_0x3bf125[_0x5a4af1(0x2c1)]({'width':this[_0x5a4af1(0x21d)],'height':this['height']});let _0x4abf46=(0x0,e[_0x5a4af1(0x3b7)])({'documentData':_0x39a35['map'](_0x5016f2=>(0x0,r[_0x5a4af1(0x265)])(_0x4b7dfb,_0x5016f2)),'height':this[_0x5a4af1(0x330)],'shapeData':_0x3bf125[_0x5a4af1(0x12e)](),'textRect':_0x3bf125[_0x5a4af1(0x3b6)]({'left':0x0,'top':0x0,'width':this['width'],'height':this[_0x5a4af1(0x330)]}),'width':this[_0x5a4af1(0x21d)]});if(_0x4abf46){var _0x1b96f5;this[_0x5a4af1(0x216)](_0x4abf46['width'],_0x4abf46[_0x5a4af1(0x330)]),(_0x1b96f5=this[_0x5a4af1(0x2af)]())==null||(_0x1b96f5=_0x1b96f5[_0x5a4af1(0x289)]())==null||_0x1b96f5[_0x5a4af1(0x2a0)]();}}get['unitId'](){const _0x5bc466=_0x22001c;return this[_0x5bc466(0x2ca)][_0x5bc466(0x298)];}get[_0x22001c(0x388)](){const _0x4edf50=_0x22001c;return this[_0x4edf50(0x2ca)][_0x4edf50(0x388)];}[_0x22001c(0x161)](_0x42705c){const _0x1772f5=_0x22001c;if(this['_props'][_0x1772f5(0x1ed)]==null||!this[_0x1772f5(0x44b)])return;let {width:_0x15c038,height:_0x5c2cdb}=this,{width:_0xeebccc=0x0,height:_0x4c1744=0x0}=_0x42705c[_0x1772f5(0x24a)],{left:_0x463fd6=0x0,top:_0x272d8f=0x0,right:_0x5f46d0=0x0,bottom:_0x10014f=0x0}=this['_props'][_0x1772f5(0x1ed)],_0x429522=_0x463fd6,_0x1fbeb4=_0x272d8f,_0x1feba4=_0x5f46d0,_0x24fbf8=_0x10014f,_0x53107e=!0x1;if(_0xeebccc!==0x0&&_0xeebccc!==_0x15c038){let _0x22a335=_0x463fd6/_0xeebccc,_0x24ed80=_0x5f46d0/_0xeebccc;_0x429522=_0x15c038*_0x22a335,_0x1feba4=_0x15c038*_0x24ed80,_0x53107e=!0x0;}if(_0x4c1744!==0x0&&_0x4c1744!==_0x5c2cdb){let _0x702984=_0x272d8f/_0x4c1744,_0x463777=_0x10014f/_0x4c1744;_0x1fbeb4=_0x5c2cdb*_0x702984,_0x24fbf8=_0x5c2cdb*_0x463777,_0x53107e=!0x0;}_0x53107e&&this[_0x1772f5(0x43a)]({'left':_0x429522,'top':_0x1fbeb4,'right':_0x1feba4,'bottom':_0x24fbf8});}[_0x22001c(0x43a)](_0x93877e){const _0x7a24a5=_0x22001c;this[_0x7a24a5(0x2ca)][_0x7a24a5(0x1ed)]=_0x93877e,this['makeDirty'](!0x0);}[_0x22001c(0x1e5)](_0xf0b55c){const _0x3b2846=_0x22001c;this['_props'][_0x3b2846(0x3cc)]=_0xf0b55c,this[_0x3b2846(0x444)](!0x0);}set['transform'](_0x57f2a1){const _0x4a8036=_0x22001c;this[_0x4a8036(0x345)]=_0x57f2a1;}get[_0x22001c(0x20f)](){const _0x56823a=_0x22001c;this['_transform']||this[_0x56823a(0x3d5)]();let _0x2c3529=this['_transform'][_0x56823a(0x1a6)]();return this[_0x56823a(0x2a9)](_0x2c3529);}get[_0x22001c(0x275)](){const _0xf90027=_0x22001c;return this[_0xf90027(0x2ca)]['shapeModel'];}get[_0x22001c(0x28c)](){const _0x4537bc=_0x22001c;return this[_0x4537bc(0x2ca)][_0x4537bc(0x28c)];}get[_0x22001c(0x313)](){const _0x432340=_0x22001c;return c[_0x432340(0x3ce)][_0x432340(0x3c3)];}['_draw'](_0x3f5605,_0x2d79ec,_0x573472,_0x211c79){const _0x1914d1=_0x22001c;let _0xba4257=this['_props'][_0x1914d1(0x275)];if(!_0xba4257||!_0x2d79ec)return;let _0x281eb8=_0x573472??this[_0x1914d1(0x21d)],_0x49d9c3=_0x211c79??this[_0x1914d1(0x330)],_0x148e97={'shapeType':_0xba4257[_0x1914d1(0x19a)](),'width':_0x281eb8,'height':_0x49d9c3},_0x452cec={'renderMode':n[_0x1914d1(0x218)]['Path'],'oKey':this[_0x1914d1(0x320)],'image':this[_0x1914d1(0x2ca)][_0x1914d1(0x3cc)],'angle':this[_0x1914d1(0x372)]};_0xba4257[_0x1914d1(0x2c1)](_0x148e97),_0x3f5605[_0x1914d1(0x456)]();let _0x25ea9a={'top':0x0,'left':0x0,'width':_0x281eb8,'height':_0x49d9c3},_0x562ac2=_0xba4257[_0x1914d1(0x45a)](_0x25ea9a);_0x562ac2?this['_renderWithCache'](_0x3f5605,_0x562ac2,_0x2f2be1=>{const _0x59da31=_0x1914d1;_0xba4257[_0x59da31(0x28f)](_0x2f2be1,_0x25ea9a,_0x452cec);}):(this[_0x1914d1(0x23b)](),_0xba4257[_0x1914d1(0x28f)](_0x3f5605,_0x25ea9a,_0x452cec)),_0x3f5605[_0x1914d1(0x32e)]();let _0x12ff48=_0xba4257['getShapeTextData'](),_0x21948f=_0xba4257[_0x1914d1(0x3b6)](_0x25ea9a),_0x2faa3f=_0xba4257[_0x1914d1(0x341)]();if(_0x12ff48&&_0x21948f&&!_0x2faa3f){_0x3f5605[_0x1914d1(0x456)](),this[_0x1914d1(0x1b6)]()[_0x1914d1(0x17d)]&&_0x3f5605[_0x1914d1(0x3bf)](-0x1,0x1);let _0xd8354e=_0x281eb8/0x2,_0x4044f4=_0x49d9c3/0x2;_0x3f5605[_0x1914d1(0x3be)](-_0xd8354e,-_0x4044f4),_0x3f5605['beginPath'](),this[_0x1914d1(0x22b)](_0x3f5605,_0x12ff48,_0x21948f),_0x3f5605[_0x1914d1(0x32e)]();}}['getDrawingPoints'](_0x27caba){}['_drawShapeText'](_0x57f0b3,_0x10d3ee,_0x7b70a7){const _0x3aff7c=_0x22001c;var _0x2df731;this[_0x3aff7c(0x2ca)][_0x3aff7c(0x445)]||(!((_0x2df731=_0x10d3ee[_0x3aff7c(0x2bf)])!=null&&_0x2df731['doc'])&&_0x3aff7c(0x392)in _0x10d3ee&&_0x10d3ee['isRichText']===!0x1?this['_drawSimpleText'](_0x57f0b3,_0x10d3ee,_0x7b70a7):this[_0x3aff7c(0x15a)](_0x57f0b3,_0x10d3ee,_0x7b70a7));}[_0x22001c(0x3d0)](_0x1da657,_0x402477,_0x113bab){const _0x29e510=_0x22001c;this['_drawRichText'](_0x1da657,{..._0x402477,'text':_0x402477[_0x29e510(0x3d9)]??'','dataModel':{'doc':(0x0,e[_0x29e510(0x2b9)])(_0x402477,_0x29e510(0x1bf)+this[_0x29e510(0x320)])}},_0x113bab);}[_0x22001c(0x15a)](_0x22a768,_0x4eaabd,_0x3d0259){const _0x512585=_0x22001c;(0x0,e[_0x512585(0x141)])(_0x22a768,this[_0x512585(0x288)],(_0x3a547d,_0x2ecebe)=>{const _0x3cacce=_0x512585;this[_0x3cacce(0x34a)](_0x3a547d,_0x4eaabd,_0x3d0259,_0x2ecebe);});}[_0x22001c(0x34a)](_0x118a56,_0x5cbe1e,_0x11b156,_0x17356f){const _0x59eb3e=_0x22001c;let _0x39da01=this[_0x59eb3e(0x2ca)]['localeService'];if(!_0x5cbe1e[_0x59eb3e(0x2bf)]||!_0x39da01)return;let _0x583375=(0x0,e[_0x59eb3e(0x189)])(_0x5cbe1e[_0x59eb3e(0x2bf)]);if(!_0x583375)return;let _0x5989bd=_0x583375[_0x59eb3e(0x16f)];if(!_0x5989bd)return;let _0xb9bf60=(0x0,r[_0x59eb3e(0x265)])(_0x5989bd,_0x17356f),_0x5a6587=_0x583375['va']??a['VerticalAlign'][_0x59eb3e(0x467)],_0x274464=_0x583375['ha']??a['HorizontalAlign']['LEFT'],_0x3b8c91=ne(this[_0x59eb3e(0x2ca)][_0x59eb3e(0x275)][_0x59eb3e(0x12e)](),_0x5cbe1e,_0xb9bf60),_0x2d9f58=_0x5cbe1e['isHorizontal'],_0x26c452=new a[(_0x59eb3e(0x13f))]((0x0,e[_0x59eb3e(0x324)])(_0xb9bf60,{'isHorizontal':_0x2d9f58!==!0x1,'textRect':_0x11b156,'verticalAlign':_0x5a6587,'horizontalAlign':_0x274464,'wrapStrategy':_0x3b8c91[_0x59eb3e(0x1bb)]})),_0x5f22a8=new c[(_0x59eb3e(0x39a))](_0x26c452),_0x4ef81a=c[_0x59eb3e(0x1c6)]['create'](_0x5f22a8,_0x39da01);_0x4ef81a[_0x59eb3e(0x331)]();let _0x103f1d=_0x4ef81a['getActualSize']()['actualHeight'],_0x15b04d=(0x0,e[_0x59eb3e(0x236)])({'contentHeight':_0x103f1d,'verticalAlign':_0x5a6587,'viewportHeight':_0x11b156[_0x59eb3e(0x330)]});_0x26c452[_0x59eb3e(0x291)]({'pageSize':{'width':_0x2d9f58===!0x1?_0x11b156[_0x59eb3e(0x330)]:_0x11b156[_0x59eb3e(0x21d)],'height':_0x15b04d[_0x59eb3e(0x27f)]}}),_0x26c452[_0x59eb3e(0x139)]({'t':_0x15b04d['marginTop']}),_0x4ef81a['calculate']();let _0x4071be=new c[(_0x59eb3e(0x41c))](_0x59eb3e(0x260)+this[_0x59eb3e(0x320)],_0x4ef81a,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x59eb3e(0x444)](!0x0)});_0x4071be[_0x59eb3e(0x216)](_0x11b156[_0x59eb3e(0x21d)],_0x15b04d[_0x59eb3e(0x27f)]),_0x118a56[_0x59eb3e(0x456)](),_0x118a56[_0x59eb3e(0x347)](_0x11b156[_0x59eb3e(0x16d)],_0x11b156[_0x59eb3e(0x230)]),_0x3b8c91['clip']&&(_0x118a56['beginPath'](),_0x118a56['rect'](0x0,_0x15b04d[_0x59eb3e(0x17c)],_0x11b156[_0x59eb3e(0x21d)],_0x15b04d[_0x59eb3e(0x2d8)]),_0x118a56['clip']()),_0x15b04d[_0x59eb3e(0x31d)]&&_0x118a56[_0x59eb3e(0x347)](0x0,_0x15b04d['contentVerticalOffset']),_0x4071be[_0x59eb3e(0x35d)](_0x118a56),_0x118a56[_0x59eb3e(0x32e)](),_0x4071be['dispose'](),_0x4ef81a[_0x59eb3e(0x2db)](),_0x5f22a8['dispose'](),_0x26c452[_0x59eb3e(0x2db)]();}[_0x22001c(0x28f)](_0x1c4abc,_0x17ef29,_0x4f3b6b=!0x1){const _0xc0bb35=_0x22001c;if(!this['visible'])return this['makeDirty'](!0x1),this;let {width:_0x1041f9,height:_0x32bf2b,left:_0x37a933,top:_0x146a99}=this,_0x29ed9c=this['getRealBound']();if(_0x1041f9=_0x29ed9c['width'],_0x32bf2b=_0x29ed9c[_0xc0bb35(0x330)],_0x37a933=_0x29ed9c[_0xc0bb35(0x16d)],_0x146a99=_0x29ed9c[_0xc0bb35(0x230)],this['isRender'](_0x17ef29)){let {top:_0x3111be,left:_0x58b13f,bottom:_0xa4456e,right:_0x1e4e89}=_0x17ef29[_0xc0bb35(0x434)];if(_0x1041f9+this[_0xc0bb35(0x32a)]+_0x37a933<_0x58b13f||_0x1e4e89<_0x37a933||_0x32bf2b+this[_0xc0bb35(0x32a)]+_0x146a99<_0x3111be||_0xa4456e<_0x146a99)return this;}let _0x510263=_0x37a933+_0x1041f9/0x2,_0x215000=_0x146a99+_0x32bf2b/0x2,_0xe0ab85=this[_0xc0bb35(0x20f)][_0xc0bb35(0x3f3)]();if(this[_0xc0bb35(0x2ca)][_0xc0bb35(0x445)]){let _0x5127e3=this[_0xc0bb35(0x1b6)](),_0x41360a=new c['Transform']();_0x41360a[_0xc0bb35(0x3ac)]({..._0x5127e3}),_0xe0ab85=_0x41360a[_0xc0bb35(0x3f3)]();}return _0x1c4abc[_0xc0bb35(0x456)](),this[_0xc0bb35(0x2ca)][_0xc0bb35(0x275)]['isRenderLinePointsMode']===!0x0||_0x1c4abc[_0xc0bb35(0x20f)](_0xe0ab85[0x0],_0xe0ab85[0x1],_0xe0ab85[0x2],_0xe0ab85[0x3],_0x510263,_0x215000),this[_0xc0bb35(0x408)](_0x1c4abc,_0x17ef29,_0x1041f9,_0x32bf2b),_0x1c4abc['restore'](),this[_0xc0bb35(0x444)](!0x1),this;}[_0x22001c(0x207)](_0x3f0483){const _0x361d37=_0x22001c;let {left:_0x879132,top:_0x54d8cf,width:_0x226c6a,height:_0x3d3ceb}=this[_0x361d37(0x15c)](),_0x237bad=this[_0x361d37(0x20f)][_0x361d37(0x3f3)](),_0x2d5ca2=_0x879132+_0x226c6a/0x2,_0x347b89=_0x54d8cf+_0x3d3ceb/0x2,_0x4cd392=new c[(_0x361d37(0x202))]([_0x237bad[0x0],_0x237bad[0x1],_0x237bad[0x2],_0x237bad[0x3],_0x2d5ca2,_0x347b89]),_0x158985=this['getParent']();return(this[_0x361d37(0x26e)]&&(_0x158985==null?void 0x0:_0x158985[_0x361d37(0x313)])===c['RENDER_CLASS_TYPE'][_0x361d37(0x176)]?_0x158985[_0x361d37(0x27a)][_0x361d37(0x239)](_0x4cd392):_0x4cd392)['invert']()[_0x361d37(0x42a)](_0x3f0483);}[_0x22001c(0x3e9)](_0x2d688e){const _0x30d5f0=_0x22001c;let {left:_0x86bbf5,top:_0x35bca0,width:_0x324da5,height:_0x385914}=this['getRealBound'](),_0x2afeba=_0x86bbf5+_0x324da5/0x2,_0x10c6d0=_0x35bca0+_0x385914/0x2,_0xb1306c=this['transform'][_0x30d5f0(0x3f3)](),_0x19fdf9=new c[(_0x30d5f0(0x202))]([_0xb1306c[0x0],_0xb1306c[0x1],_0xb1306c[0x2],_0xb1306c[0x3],_0x2afeba,_0x10c6d0]),_0x2b7bba=this[_0x30d5f0(0x2ac)](),_0x194ff0=(this[_0x30d5f0(0x26e)]&&(_0x2b7bba==null?void 0x0:_0x2b7bba[_0x30d5f0(0x313)])===c[_0x30d5f0(0x3ce)]['GROUP']?_0x2b7bba[_0x30d5f0(0x27a)][_0x30d5f0(0x239)](_0x19fdf9):_0x19fdf9)[_0x30d5f0(0x419)]()[_0x30d5f0(0x42a)](_0x2d688e),_0x445954=_0x324da5/0x2,_0x1a35ee=_0x385914/0x2,_0x5e9c97=this['_props'][_0x30d5f0(0x275)];return _0x5e9c97&&_0x5e9c97[_0x30d5f0(0x341)]()?_0x5e9c97['isHitLine'](_0x194ff0['x'],_0x194ff0['y'],_0x324da5,_0x385914):_0x194ff0['x']>=-_0x445954-this[_0x30d5f0(0x32a)]/0x2&&_0x194ff0['x']<=_0x445954+this['strokeWidth']/0x2&&_0x194ff0['y']>=-_0x1a35ee-this[_0x30d5f0(0x32a)]/0x2&&_0x194ff0['y']<=_0x1a35ee+this[_0x30d5f0(0x32a)]/0x2;}[_0x22001c(0x2db)](){const _0x519239=_0x22001c;this[_0x519239(0x288)][_0x519239(0x2db)](),this[_0x519239(0x2ca)][_0x519239(0x275)]=null,super['dispose']();}},D=class extends c[_0x22001c(0x170)]{constructor(_0x17be9e,_0x2cb164){const _0x618c77=_0x22001c;super(_0x17be9e,_0x2cb164),T(this,_0x618c77(0x293),null),T(this,_0x618c77(0x22d),null),T(this,_0x618c77(0x296),null),T(this,'_subUnitId',null),_0x2cb164&&this[_0x618c77(0x28b)](_0x2cb164);}[_0x22001c(0x37c)](){const _0x5d67b2=_0x22001c;return{'unitId':this[_0x5d67b2(0x296)],'subUnitId':this[_0x5d67b2(0x397)],'drawingId':this[_0x5d67b2(0x293)]};}[_0x22001c(0x28b)](_0x24bd26){const _0x55eadf=_0x22001c;_0x24bd26['shapeId']!==void 0x0&&(this[_0x55eadf(0x293)]=_0x24bd26[_0x55eadf(0x28c)]),_0x24bd26[_0x55eadf(0x226)]!==void 0x0&&(this['_adjName']=_0x24bd26[_0x55eadf(0x226)]),_0x24bd26['unitId']!==void 0x0&&(this[_0x55eadf(0x296)]=_0x24bd26[_0x55eadf(0x298)]),_0x24bd26[_0x55eadf(0x388)]!==void 0x0&&(this['_subUnitId']=_0x24bd26[_0x55eadf(0x388)]),this[_0x55eadf(0x359)]({'width':_0x24bd26['width'],'height':_0x24bd26['height']});}[_0x22001c(0x408)](_0x50c044){const _0x3064b8=_0x22001c;c[_0x3064b8(0x301)][_0x3064b8(0x248)](_0x50c044,{'radius':n[_0x3064b8(0x41f)][_0x3064b8(0x14e)],'fill':n['ShapeDefaultConfig'][_0x3064b8(0x407)],'stroke':n[_0x3064b8(0x41f)][_0x3064b8(0x1ec)],'strokeWidth':0x1,'evented':!0x0});}};function O(_0x19e54f,_0x63cdf6){return function(_0x148fd4,_0x4e59a8){_0x63cdf6(_0x148fd4,_0x4e59a8,_0x19e54f);};}function k(_0xc19753,_0x9f5758,_0x2ccd90,_0x169242){const _0x2abbed=_0x22001c;var _0x586d56=arguments[_0x2abbed(0x285)],_0x3f324a=_0x586d56<0x3?_0x9f5758:_0x169242===null?_0x169242=Object[_0x2abbed(0x210)](_0x9f5758,_0x2ccd90):_0x169242,_0x15d9b2;if(typeof Reflect==_0x2abbed(0x18c)&&typeof Reflect[_0x2abbed(0x2f6)]==_0x2abbed(0x3a1))_0x3f324a=Reflect[_0x2abbed(0x2f6)](_0xc19753,_0x9f5758,_0x2ccd90,_0x169242);else{for(var _0x238a61=_0xc19753['length']-0x1;_0x238a61>=0x0;_0x238a61--)(_0x15d9b2=_0xc19753[_0x238a61])&&(_0x3f324a=(_0x586d56<0x3?_0x15d9b2(_0x3f324a):_0x586d56>0x3?_0x15d9b2(_0x9f5758,_0x2ccd90,_0x3f324a):_0x15d9b2(_0x9f5758,_0x2ccd90))||_0x3f324a);}return _0x586d56>0x3&&_0x3f324a&&Object['defineProperty'](_0x9f5758,_0x2ccd90,_0x3f324a),_0x3f324a;}let A=class extends a[_0x22001c(0x35c)]{constructor(_0x3a3f04,_0x373d2c,_0x2f5911,_0x281857,_0x35f558,_0x5f1611){const _0x28098d=_0x22001c;super(),this[_0x28098d(0x17b)]=_0x3a3f04,this['_sheetsShapeService']=_0x373d2c,this[_0x28098d(0x25c)]=_0x2f5911,this[_0x28098d(0x1cb)]=_0x281857,this[_0x28098d(0x24e)]=_0x35f558,this['_shapeFormulaService']=_0x5f1611,T(this,_0x28098d(0x3ec),new Map()),this['disposeWithMe'](this[_0x28098d(0x271)][_0x28098d(0x254)][_0x28098d(0x35f)](_0x282cb3=>{const _0x3d55f2=_0x28098d;var _0x61ed1b;(_0x61ed1b=this[_0x3d55f2(0x3ec)][_0x3d55f2(0x38c)](this[_0x3d55f2(0x168)](_0x282cb3[_0x3d55f2(0x298)],_0x282cb3['subUnitId'],_0x282cb3['shapeId'])))==null||_0x61ed1b[_0x3d55f2(0x1dc)](_0x1233eb=>_0x1233eb['setFormulaPresentation'](_0x282cb3['presentation'],_0x282cb3[_0x3d55f2(0x294)]));})),this[_0x28098d(0x304)](this[_0x28098d(0x17b)]['remove$']['subscribe'](_0x505ded=>{const _0x35e4b4=_0x28098d;_0x505ded[_0x35e4b4(0x1dc)](_0x3dc6cb=>{const _0x5b3860=_0x35e4b4;this[_0x5b3860(0x271)][_0x5b3860(0x431)]({'unitId':_0x3dc6cb[_0x5b3860(0x298)],'subUnitId':_0x3dc6cb[_0x5b3860(0x388)],'shapeId':_0x3dc6cb[_0x5b3860(0x184)]}),this['_formulaShapes'][_0x5b3860(0x12c)](this[_0x5b3860(0x168)](_0x3dc6cb[_0x5b3860(0x298)],_0x3dc6cb[_0x5b3860(0x388)],_0x3dc6cb['drawingId']));});}));}[_0x22001c(0x169)](_0x274a28,_0x344959,_0x3c2986){const _0x544651=_0x22001c;let {transform:_0x21d34c,drawingType:_0x5c2c38,srcRect:_0x5316bd,prstGeom:_0xc54a1b,groupId:_0x32d81b,unitId:_0x5e9d5d,subUnitId:_0x4bc02c,drawingId:_0x34ef2d,isMultiTransform:_0x29ba58,transforms:_0x320068,hidden:_0x4a154c,selectable:_0x4b1acb}=_0x274a28;if(_0x5c2c38!==a[_0x544651(0x2c3)][_0x544651(0x2ef)]||!this[_0x544651(0x17b)][_0x544651(0x1d7)]()||_0x21d34c==null)return;let _0x2ebe6f=this[_0x544651(0x17b)][_0x544651(0x1a3)]();_0x2ebe6f&&_0x344959['initTransformer'](e['SHAPE_EDITOR_TRANSFORMER_CONFIG']);let _0x5979b1=_0x29ba58&&_0x320068?_0x320068:[_0x21d34c],_0x5b1127=[];for(let _0x17c0bf of _0x5979b1){let {left:_0x547a98,top:_0x32b97b,width:_0x270e8c,height:_0x56d0d5,angle:_0x451d31,flipX:_0x1c468d,flipY:_0x12a2e3,skewX:_0x526f36,skewY:_0x2af125}=_0x17c0bf,_0x2547a9=_0x5979b1['indexOf'](_0x17c0bf),_0x1a4b84=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x5e9d5d,'subUnitId':_0x4bc02c,'drawingId':_0x34ef2d},_0x29ba58?_0x2547a9:void 0x0),_0x4bcf43=_0x344959[_0x544651(0x3e5)](_0x1a4b84);if(_0x4bcf43!=null){let _0x56b01b={'unitId':_0x5e9d5d,'subUnitId':_0x4bc02c,'shapeId':_0x34ef2d};_0x4bcf43 instanceof E&&this['refreshFormulaPresentation'](_0x4bcf43,_0x56b01b),_0x4bcf43['transformByState']({'left':_0x547a98,'top':_0x32b97b,'width':_0x270e8c,'height':_0x56d0d5,'angle':_0x451d31,'flipX':_0x1c468d,'flipY':_0x12a2e3,'skewX':_0x526f36,'skewY':_0x2af125});continue;}let _0xeb8dab=this[_0x544651(0x17b)]['getDrawingOrder'](_0x5e9d5d,_0x4bc02c),_0x49a937=_0xeb8dab[_0x544651(0x18b)](_0x34ef2d);if(_0x344959[_0x544651(0x3e5)](_0x1a4b84)||!this[_0x544651(0x17b)]['getDrawingVisible']())continue;let _0x4ac80d=this[_0x544651(0x209)][_0x544651(0x44e)](_0x5e9d5d,_0x4bc02c,_0x34ef2d);if(!_0x4ac80d)continue;let _0x5c25c8=(0x0,n['isConnectorShape'])(_0x4ac80d[_0x544651(0x19a)]()),_0x50dfd6=_0x4ac80d[_0x544651(0x12e)]()[_0x544651(0x2fd)],_0x54a0ba={'unitId':_0x5e9d5d,'subUnitId':_0x4bc02c,'shapeId':_0x34ef2d};_0x50dfd6&&this[_0x544651(0x271)]['register'](_0x54a0ba,_0x50dfd6);let _0x3c0af3=new E(_0x1a4b84,{..._0x5c25c8?{..._0x17c0bf,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x17c0bf},'zIndex':_0x49a937===-0x1?_0xeb8dab[_0x544651(0x285)]-0x1:_0x49a937,'shapeModel':_0x4ac80d,'localeService':this[_0x544651(0x25c)],'shapeId':_0x34ef2d,'unitId':_0x5e9d5d,'subUnitId':_0x4bc02c,'visible':_0x4a154c!==!0x0,'evented':_0x4b1acb!==!0x1,'formulaPresentation':_0x50dfd6?this[_0x544651(0x271)]['getPresentation'](_0x54a0ba):void 0x0,'animateFormulaPresentation':(_0x50dfd6==null?void 0x0:_0x50dfd6[_0x544651(0x294)])!==!0x1});if(_0x50dfd6){let _0x2235b7=this[_0x544651(0x168)](_0x5e9d5d,_0x4bc02c,_0x34ef2d),_0x30418a=this[_0x544651(0x3ec)][_0x544651(0x38c)](_0x2235b7)??new Set();_0x30418a[_0x544651(0x342)](_0x3c0af3),this[_0x544651(0x3ec)][_0x544651(0x1b7)](_0x2235b7,_0x30418a);}_0x344959[_0x544651(0x167)](_0x3c0af3,c[_0x544651(0x418)]),_0x2ebe6f&&_0x344959[_0x544651(0x1c2)](_0x3c0af3),_0x32d81b&&(0x0,d[_0x544651(0x43e)])({'drawingId':_0x32d81b,'unitId':_0x5e9d5d,'subUnitId':_0x4bc02c},_0x3c0af3,_0x344959,this[_0x544651(0x17b)]),_0xc54a1b!=null&&_0x3c0af3['setPrstGeom'](_0xc54a1b),_0x5316bd!=null&&_0x3c0af3[_0x544651(0x43a)](_0x5316bd);let _0x2fd343=this[_0x544651(0x3bb)](_0x3c0af3,_0x4ac80d[_0x544651(0x12e)]());if(_0x2fd343){var _0x59a76c;_0x3c2986==null||(_0x59a76c=_0x3c2986[_0x544651(0x1b4)])==null||_0x59a76c['add'](_0x2fd343);}_0x5b1127[_0x544651(0x2f0)](_0x3c0af3);}return _0x5b1127;}[_0x22001c(0x168)](_0x50678a,_0x180114,_0x35522b){return _0x50678a+'\x00'+_0x180114+'\x00'+_0x35522b;}['refreshFormulaPresentation'](_0x304021,_0x5c8661){const _0x2bd71c=_0x22001c;let _0xa2f8a9=this['_sheetsShapeService']['getShapeModel'](_0x5c8661[_0x2bd71c(0x298)],_0x5c8661[_0x2bd71c(0x388)],_0x5c8661[_0x2bd71c(0x28c)]),_0x111836=_0xa2f8a9==null?void 0x0:_0xa2f8a9['getShapeData']()[_0x2bd71c(0x2fd)],_0x5a3444=this[_0x2bd71c(0x168)](_0x5c8661[_0x2bd71c(0x298)],_0x5c8661[_0x2bd71c(0x388)],_0x5c8661[_0x2bd71c(0x28c)]);if(_0x111836){this[_0x2bd71c(0x271)][_0x2bd71c(0x233)](_0x5c8661,_0x111836);let _0x4f24b9=this[_0x2bd71c(0x3ec)]['get'](_0x5a3444)??new Set();_0x4f24b9[_0x2bd71c(0x342)](_0x304021),this[_0x2bd71c(0x3ec)][_0x2bd71c(0x1b7)](_0x5a3444,_0x4f24b9);}else{var _0x4d39f3;this[_0x2bd71c(0x271)][_0x2bd71c(0x431)](_0x5c8661),(_0x4d39f3=this[_0x2bd71c(0x3ec)]['get'](_0x5a3444))==null||_0x4d39f3[_0x2bd71c(0x12c)](_0x304021);}_0x304021[_0x2bd71c(0x2a8)](_0x111836?this['_shapeFormulaService'][_0x2bd71c(0x208)](_0x5c8661):void 0x0,(_0x111836==null?void 0x0:_0x111836[_0x2bd71c(0x294)])!==!0x1);}['refreshShapeFillImage'](_0x4fea1c){const _0x367790=_0x22001c;let _0x37c0ba=_0x4fea1c[_0x367790(0x275)]['getShapeData'](),_0x123c7e=_0x37c0ba[_0x367790(0x24b)];if(!_0x123c7e||_0x123c7e['fillType']!==n[_0x367790(0x3d1)][_0x367790(0x203)]||!_0x123c7e[_0x367790(0x2e0)]){_0x4fea1c['setFillImage'](void 0x0);return;}this[_0x367790(0x3bb)](_0x4fea1c,_0x37c0ba);}['_loadShapePictureFill'](_0x2be594,_0x449b70){const _0x1f8528=_0x22001c;let _0x229025=_0x449b70[_0x1f8528(0x24b)];if(!_0x229025||_0x229025[_0x1f8528(0x451)]!==n[_0x1f8528(0x3d1)][_0x1f8528(0x203)]||!_0x229025[_0x1f8528(0x2e0)])return;let _0x407b5a=_0x229025[_0x1f8528(0x2e0)],_0x255312=_0x229025[_0x1f8528(0x15d)]??n['ImageSourceTypeEnum']['URL'],_0x1669a9=this[_0x1f8528(0x1cb)][_0x1f8528(0x153)](_0x407b5a,_0x255312);if(_0x1669a9){_0x2be594[_0x1f8528(0x1e5)](_0x1669a9);return;}return this['_loadAndSetImage'](_0x2be594,_0x407b5a,_0x255312);}async[_0x22001c(0x1af)](_0xb6fa9c,_0x11610f,_0x47598e){const _0x2a3a9b=_0x22001c;let _0x22c133;try{if(_0x47598e===n[_0x2a3a9b(0x446)][_0x2a3a9b(0x2e9)])_0x22c133=await this[_0x2a3a9b(0x1cb)][_0x2a3a9b(0x17f)](_0x11610f);else{if(_0x47598e===n[_0x2a3a9b(0x446)][_0x2a3a9b(0x378)])try{_0x22c133=await this[_0x2a3a9b(0x24e)][_0x2a3a9b(0x17f)](_0x11610f);}catch{_0x22c133=_0x11610f;}else _0x22c133=_0x11610f;}}catch(_0x1edb8f){console[_0x2a3a9b(0x433)](_0x2a3a9b(0x356),_0x1edb8f);return;}await new Promise(_0x2f77f6=>{const _0x1b5d02=_0x2a3a9b;let _0x5a5673=new window[(_0x1b5d02(0x45d))]();_0x5a5673[_0x1b5d02(0x1c1)]=()=>{const _0x5008b9=_0x1b5d02;this['_imageIoService'][_0x5008b9(0x36d)](_0x11610f,_0x47598e,_0x5a5673),_0xb6fa9c[_0x5008b9(0x1e5)](_0x5a5673),_0x2f77f6();},_0x5a5673[_0x1b5d02(0x2c8)]=()=>{const _0x45c5c5=_0x1b5d02;console['error'](_0x45c5c5(0x267),_0x11610f),_0x2f77f6();},_0x5a5673[_0x1b5d02(0x2e8)]=_0x22c133;});}};A=k([O(0x0,s[_0x22001c(0x1a7)]),O(0x1,(0x0,a['Inject'])(i[_0x22001c(0x1e3)])),O(0x2,(0x0,a[_0x22001c(0x299)])(a[_0x22001c(0x143)])),O(0x3,a[_0x22001c(0x35b)]),O(0x4,a[_0x22001c(0x3c4)]),O(0x5,(0x0,a['Inject'])(r[_0x22001c(0x1d9)]))],A);let j=class extends a[_0x22001c(0x35c)]{constructor(_0x4ee576,_0x14c098,_0x41cf9d,_0x4a1602,_0x2cbfe9,_0x17f292){const _0x2361cd=_0x22001c;super(),this[_0x2361cd(0x17b)]=_0x4ee576,this[_0x2361cd(0x209)]=_0x14c098,this[_0x2361cd(0x3f8)]=_0x41cf9d,this[_0x2361cd(0x3c5)]=_0x4a1602,this['_univerInstanceService']=_0x2cbfe9,this[_0x2361cd(0x409)]=_0x17f292,T(this,_0x2361cd(0x23a),null),T(this,_0x2361cd(0x296),null),T(this,_0x2361cd(0x397),null),T(this,_0x2361cd(0x45e),void 0x0),T(this,_0x2361cd(0x420),[]),T(this,_0x2361cd(0x417),0x0),T(this,_0x2361cd(0x2f5),0x0),T(this,'_baseShapeWidth',0x0),T(this,_0x2361cd(0x429),0x0),T(this,'_isStartAdjusting',!0x1),T(this,_0x2361cd(0x3c8),void 0x0),T(this,_0x2361cd(0x43c),void 0x0),T(this,_0x2361cd(0x339),void 0x0),T(this,_0x2361cd(0x188),void 0x0),T(this,_0x2361cd(0x1c9),!0x1),this[_0x2361cd(0x2e7)](),this[_0x2361cd(0x3c9)]();}[_0x22001c(0x369)](_0x26aead,_0x529513,_0x3c5dcc){const _0x4662ad=_0x22001c;let _0x2b6212=this[_0x4662ad(0x209)][_0x4662ad(0x44e)](_0x26aead,_0x529513,_0x3c5dcc);if(_0x2b6212)return _0x2b6212['getDrawingPoints']();}[_0x22001c(0x435)](){const _0x3452e5=_0x22001c;this[_0x3452e5(0x137)]();}['refreshAdjustControls'](){const _0x5d52a9=_0x22001c;this[_0x5d52a9(0x1b8)](!0x0);}['setShouldShowAdjust'](_0x52721c){const _0x4be3b3=_0x22001c;this[_0x4be3b3(0x1c9)]=_0x52721c;}['_getShapeAdjustInfosById'](_0x37caa8,_0x3d76ec,_0x2e3e76,_0x57164a){const _0x32f6e6=_0x22001c;let _0x2340f1=this[_0x32f6e6(0x209)][_0x32f6e6(0x44e)](_0x37caa8,_0x3d76ec,_0x2e3e76);if(_0x2340f1)return _0x2340f1[_0x32f6e6(0x217)](_0x57164a);}['_createShapeAdjustControls'](_0x3b1d11=!0x1){const _0x4ffc3c=_0x22001c;if(this[_0x4ffc3c(0x296)]===null||this[_0x4ffc3c(0x397)]===null||this[_0x4ffc3c(0x23a)]===null)return;let _0x37730c=this[_0x4ffc3c(0x3f8)][_0x4ffc3c(0x355)](this[_0x4ffc3c(0x296)]);if(!_0x37730c||!_0x37730c['with'](l['SheetSkeletonManagerService'])[_0x4ffc3c(0x2ab)]())return;let {scene:_0x3364c9}=_0x37730c,_0x1485e1={'unitId':this[_0x4ffc3c(0x296)],'subUnitId':this[_0x4ffc3c(0x397)],'drawingId':this[_0x4ffc3c(0x23a)]},_0x1ed75b=this[_0x4ffc3c(0x17b)][_0x4ffc3c(0x29f)](_0x1485e1),{transform:_0x56556c}=_0x1ed75b;if(!_0x56556c||_0x1ed75b[_0x4ffc3c(0x235)]!==a['DrawingTypeEnum'][_0x4ffc3c(0x2ef)])return;let {left:_0x84f81c,top:_0x4cad51,width:_0x4a8f40,height:_0x39d3ad,flipX:_0x50b9a7,flipY:_0x4dd02b,angle:_0x594879=0x0}=_0x56556c;if(_0x84f81c===void 0x0||_0x4cad51===void 0x0)return;if(_0x3b1d11){let _0x2b1c5b=this[_0x4ffc3c(0x209)][_0x4ffc3c(0x44e)](this[_0x4ffc3c(0x296)],this['_subUnitId'],this[_0x4ffc3c(0x23a)]);_0x2b1c5b==null||_0x2b1c5b[_0x4ffc3c(0x2c1)]({'width':_0x4a8f40??0x0,'height':_0x39d3ad??0x0}),this[_0x4ffc3c(0x45e)]=_0x2b1c5b==null?void 0x0:_0x2b1c5b['getDrawingPoints']();}let _0x32f63e=this[_0x4ffc3c(0x45e)];for(let _0x55b5ed=0x0;_0x55b5ed<_0x32f63e['length'];_0x55b5ed++){let _0x56b4ec=_0x32f63e[_0x55b5ed],_0x2bba09=_0x56b4ec['x'],_0x3b76d8=_0x56b4ec['y'];if(_0x50b9a7&&(_0x2bba09=(_0x4a8f40||0x0)-_0x2bba09),_0x4dd02b&&(_0x3b76d8=(_0x39d3ad||0x0)-_0x3b76d8),_0x594879!==0x0){let _0x333db3=(_0x4a8f40||0x0)/0x2,_0x88a781=(_0x39d3ad||0x0)/0x2,_0xd7cefb=_0x594879*Math['PI']/0xb4,_0x77f4b3=Math[_0x4ffc3c(0x442)](_0xd7cefb),_0xc5fb3e=Math[_0x4ffc3c(0x213)](_0xd7cefb),_0xede870=_0x2bba09-_0x333db3,_0x18fda0=_0x3b76d8-_0x88a781;_0x2bba09=_0x333db3+(_0xede870*_0x77f4b3-_0x18fda0*_0xc5fb3e),_0x3b76d8=_0x88a781+(_0xede870*_0xc5fb3e+_0x18fda0*_0x77f4b3);}let _0xf628fd={'x':_0x2bba09,'y':_0x3b76d8,'adjName':_0x56b4ec[_0x4ffc3c(0x226)]};this[_0x4ffc3c(0x245)](_0x3364c9,_0xf628fd,_0xf628fd[_0x4ffc3c(0x226)],_0x84f81c,_0x4cad51,this[_0x4ffc3c(0x296)],this[_0x4ffc3c(0x397)]);}}[_0x22001c(0x1b8)](_0x5441c7=!0x1){const _0x58768d=_0x22001c;_0x5441c7&&(this[_0x58768d(0x137)](),this[_0x58768d(0x33b)](_0x5441c7));}[_0x22001c(0x245)](_0x38a950,_0x3cb51b,_0x337fc3,_0x37d4bc,_0x5d3929,_0xe45a70,_0x12b157){const _0x51451d=_0x22001c;if(!this['_activeShapeId'])return;let _0x3e8371=_0x38a950[_0x51451d(0x3e5)](_0x51451d(0x264)+this['_activeShapeId']+'-'+_0x337fc3);if(_0x3e8371){_0x3e8371['transformByState']({'left':_0x3cb51b['x']+_0x37d4bc-n['ShapeDefaultConfig'][_0x51451d(0x14e)],'top':_0x3cb51b['y']+_0x5d3929-n[_0x51451d(0x41f)]['adjHandleSize']});return;}let _0x633bae={'left':_0x3cb51b['x']+_0x37d4bc-n[_0x51451d(0x41f)]['adjHandleSize'],'top':_0x3cb51b['y']+_0x5d3929-n[_0x51451d(0x41f)]['adjHandleSize'],'adjName':_0x337fc3,'shapeId':this[_0x51451d(0x23a)],'unitId':_0xe45a70,'subUnitId':_0x12b157,'width':n[_0x51451d(0x41f)]['adjHandleSize']+0x8,'height':n[_0x51451d(0x41f)][_0x51451d(0x14e)]+0x8,'zIndex':c[_0x51451d(0x418)]+0x1,'evented':!0x0},_0x1f8de7=new D(_0x51451d(0x264)+this['_activeShapeId']+'-'+_0x337fc3,_0x633bae);this['_shapes']['push'](_0x1f8de7),this[_0x51451d(0x12a)](_0x1f8de7,_0x38a950,_0x337fc3),_0x38a950[_0x51451d(0x167)](_0x1f8de7,c[_0x51451d(0x418)]+0x1);}[_0x22001c(0x137)](){const _0xf1a62a=_0x22001c;this[_0xf1a62a(0x420)]['length']!==0x0&&(this['_shapes']['forEach'](_0x5048e1=>{_0x5048e1['dispose']();}),this[_0xf1a62a(0x420)]=[]);}[_0x22001c(0x2ea)](){const _0x17fcd4=_0x22001c;this[_0x17fcd4(0x33b)]();}[_0x22001c(0x41b)](_0x37aa91,_0x133e1e){const _0x5a64d5=_0x22001c;var _0x1b02ac;let _0x5e76e4={'x':0x0,'y':0x0};if(!_0x37aa91||!_0x133e1e)return _0x5e76e4;let _0x3c748a=this[_0x5a64d5(0x3f8)]['getRenderUnitById'](_0x37aa91);if(!_0x3c748a||!_0x3c748a[_0x5a64d5(0x462)](l[_0x5a64d5(0x13a)])['getSkeleton'](_0x133e1e))return _0x5e76e4;let _0x16ca27=_0x3c748a[_0x5a64d5(0x462)](l[_0x5a64d5(0x2b7)]),_0x338d26=_0x16ca27==null?void 0x0:_0x16ca27[_0x5a64d5(0x1c3)]();if(!_0x338d26)return _0x5e76e4;let _0x6b4f8c=(_0x1b02ac=this[_0x5a64d5(0x2d0)][_0x5a64d5(0x32d)](_0x37aa91))==null?void 0x0:_0x1b02ac[_0x5a64d5(0x157)](_0x133e1e);if(!_0x6b4f8c)return _0x5e76e4;let _0x3bc894=(0x0,l[_0x5a64d5(0x192)])(_0x338d26[_0x5a64d5(0x1e0)],_0x338d26[_0x5a64d5(0x13d)],_0x3c748a[_0x5a64d5(0x448)],_0x6b4f8c);return _0x3bc894?{'x':_0x3bc894[_0x5a64d5(0x1a0)],'y':_0x3bc894['viewportScrollY']}:_0x5e76e4;}[_0x22001c(0x194)](_0x27fc86,_0x14c9b7){const _0x113711=_0x22001c;var _0x12e1e8;let _0x1f2bf3=(_0x12e1e8=this[_0x113711(0x2d0)][_0x113711(0x32d)](_0x27fc86))==null?void 0x0:_0x12e1e8[_0x113711(0x157)](_0x14c9b7);return(_0x1f2bf3==null?void 0x0:_0x1f2bf3[_0x113711(0x34d)]())??0x1;}[_0x22001c(0x12a)](_0x38f4c5,_0x16ba67,_0xfe50a9){const _0x37a5a1=_0x22001c;this[_0x37a5a1(0x304)]((0x0,a[_0x37a5a1(0x152)])(_0x38f4c5[_0x37a5a1(0x29a)][_0x37a5a1(0x14a)]((_0x57f769,_0x520dea)=>{const _0x5bc786=_0x37a5a1;var _0x50d517,_0x3abf5e,_0x4c1977,_0x203e3b;let _0x571751=_0x38f4c5['getDrawingSearch']();this[_0x5bc786(0x3c8)]=this[_0x5bc786(0x35a)](_0x571751[_0x5bc786(0x298)],_0x571751[_0x5bc786(0x388)],_0x571751[_0x5bc786(0x184)],_0xfe50a9),this[_0x5bc786(0x43c)]=this[_0x5bc786(0x209)][_0x5bc786(0x44e)](_0x571751[_0x5bc786(0x298)],_0x571751[_0x5bc786(0x388)],_0x571751[_0x5bc786(0x184)]);let _0x4c838d=this[_0x5bc786(0x17b)][_0x5bc786(0x29f)]({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x5bc786(0x23a)]}),{transform:_0x55fe8c}=_0x4c838d;if(_0x55fe8c){let {left:_0x3689b2,top:_0x539a38,width:_0x4551d7,height:_0x14b5fb}=_0x55fe8c;this[_0x5bc786(0x417)]=_0x3689b2||0x0,this[_0x5bc786(0x2f5)]=_0x539a38||0x0,this[_0x5bc786(0x411)]=_0x4551d7||0x0,this['_baseShapeHeight']=_0x14b5fb||0x0;}let _0x8adec7=!!((_0x50d517=_0x4c838d[_0x5bc786(0x20f)])!=null&&_0x50d517['flipX']),_0x5d5502=!!((_0x3abf5e=_0x4c838d[_0x5bc786(0x20f)])!=null&&_0x3abf5e[_0x5bc786(0x374)]),_0x430984=((_0x4c1977=_0x4c838d[_0x5bc786(0x20f)])==null?void 0x0:_0x4c1977[_0x5bc786(0x372)])||0x0;this[_0x5bc786(0x364)]=!0x0,_0x16ba67['disableObjectsEvent']();let _0xc5400a={...((_0x203e3b=this['_activeAdjustInfo'])==null?void 0x0:_0x203e3b[_0x5bc786(0x28d)])??{}};this[_0x5bc786(0x339)]=_0x16ba67[_0x5bc786(0x26a)][_0x5bc786(0x14a)]((_0x5b6066,_0x5cf619)=>{const _0x231185=_0x5bc786;if(!this[_0x231185(0x364)])return;let {offsetX:_0x398403,offsetY:_0x115733}=_0x5b6066,_0x49b5c3=this['_activeAdjustInfo'];if(this[_0x231185(0x43c)]&&_0x49b5c3){_0x16ba67['disableObjectsEvent'](),_0x16ba67[_0x231185(0x354)](c[_0x231185(0x3b1)]['CROSSHAIR']);let _0x51b5ae={'left':0x0,'top':0x0,'width':this[_0x231185(0x411)],'height':this[_0x231185(0x429)]},_0x71fb09=this[_0x231185(0x41b)](this[_0x231185(0x296)],this[_0x231185(0x397)]),_0x2a229d=this[_0x231185(0x194)](this[_0x231185(0x296)],this[_0x231185(0x397)]),_0x3e2b89=_0x398403/_0x2a229d+_0x71fb09['x']-this[_0x231185(0x417)],_0x54c612=_0x115733/_0x2a229d+_0x71fb09['y']-this['_baseShapeTop'];if(_0x430984!==0x0){let _0x5b6625=this[_0x231185(0x411)]/0x2,_0x33aee8=this[_0x231185(0x429)]/0x2,_0x4db21b=_0x430984*Math['PI']/0xb4,_0x3bfec3=Math['cos'](_0x4db21b),_0x40f8dc=Math[_0x231185(0x213)](_0x4db21b),_0x210574=_0x3e2b89-_0x5b6625,_0x582511=_0x54c612-_0x33aee8;_0x3e2b89=_0x5b6625+(_0x210574*_0x3bfec3+_0x582511*_0x40f8dc),_0x54c612=_0x33aee8+(-_0x210574*_0x40f8dc+_0x582511*_0x3bfec3);}_0x8adec7&&(_0x3e2b89=this[_0x231185(0x411)]-_0x3e2b89),_0x5d5502&&(_0x54c612=this['_baseShapeHeight']-_0x54c612);let _0x3f2109={'x':_0x3e2b89,'y':_0x54c612},_0x52e1a9=this['_activeShapeModel'][_0x231185(0x18f)](_0x51b5ae,_0x3f2109,_0x49b5c3,_0x8adec7,_0x5d5502);if(Object[_0x231185(0x26d)](_0x52e1a9)[_0x231185(0x285)]===0x0)return;for(let [_0x3d5d5a,_0x5783e9]of Object[_0x231185(0x133)](_0x52e1a9))this['_activeShapeModel'][_0x231185(0x26f)](_0x3d5d5a,_0x5783e9);this[_0x231185(0x43c)]['updateContext']({'width':this[_0x231185(0x411)],'height':this[_0x231185(0x429)]});let _0x794c51=this['_drawingManagerService'][_0x231185(0x29f)]({'unitId':_0x571751[_0x231185(0x298)],'subUnitId':_0x571751[_0x231185(0x388)],'drawingId':_0x571751['drawingId']});_0x794c51&&(this[_0x231185(0x3c5)][_0x231185(0x169)](_0x794c51,_0x16ba67),this['_activeShapeAdjustPointList']=this[_0x231185(0x369)](_0x571751[_0x231185(0x298)],_0x571751[_0x231185(0x388)],_0x571751[_0x231185(0x184)]),this[_0x231185(0x2ea)]());}_0x5cf619['stopPropagation']();}),this[_0x5bc786(0x188)]=_0x16ba67[_0x5bc786(0x3f1)][_0x5bc786(0x14a)]((_0x52af9a,_0x6a3a5)=>{const _0x4a7303=_0x5bc786;this['_adjHandlerPointerMove'][_0x4a7303(0x36a)](),this[_0x4a7303(0x188)][_0x4a7303(0x36a)](),_0x16ba67['resetCursor']();let _0x24e910=this[_0x4a7303(0x3c8)];if(_0x24e910){let _0x58cf8d=_0x571751[_0x4a7303(0x298)],_0x53b962=_0x571751[_0x4a7303(0x388)],_0x4a1b1f=_0x571751[_0x4a7303(0x184)],_0x44e2c9={};for(let _0x3b6766 of Object[_0x4a7303(0x26d)](_0x24e910['currentAdjustValues'])){var _0x105a3;let _0x170aa3=(_0x105a3=this['_activeShapeModel'])==null?void 0x0:_0x105a3[_0x4a7303(0x41a)](_0x3b6766);_0x170aa3!==void 0x0&&(_0x44e2c9[_0x3b6766]=_0x170aa3);}Object[_0x4a7303(0x26d)](_0x44e2c9)['length']>0x0&&S(this[_0x4a7303(0x409)],_0x58cf8d,_0x53b962,_0x4a1b1f,{'oldShapeData':{'adjustValues':_0xc5400a}},{'adjustValues':_0x44e2c9});}this[_0x4a7303(0x3c8)]=void 0x0,this[_0x4a7303(0x43c)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x6a3a5[_0x4a7303(0x29e)](),_0x16ba67[_0x4a7303(0x1b0)]();}),_0x520dea[_0x5bc786(0x29e)]();})));}['_registerDrawingMoveHandler'](){const _0x50b9dc=_0x22001c;let _0x370719=this[_0x50b9dc(0x2d0)][_0x50b9dc(0x185)](a[_0x50b9dc(0x130)][_0x50b9dc(0x3ed)]);this[_0x50b9dc(0x304)](_0x370719[_0x50b9dc(0x23c)]((0x0,u[_0x50b9dc(0x36c)])(_0x217a2f=>_0x217a2f?_0x217a2f[_0x50b9dc(0x214)][_0x50b9dc(0x23c)]((0x0,u[_0x50b9dc(0x36c)])(_0x107eef=>{const _0x5a8e73=_0x50b9dc;if(!_0x107eef)return u[_0x5a8e73(0x421)];let _0x96159f=_0x217a2f[_0x5a8e73(0x33c)](),_0x383cc2=this[_0x5a8e73(0x3f8)]['getRenderUnitById'](_0x96159f),_0x4510e2=_0x383cc2==null?void 0x0:_0x383cc2['scene'];return _0x4510e2?(0x0,u['of'])(_0x4510e2):u[_0x5a8e73(0x421)];})):u[_0x50b9dc(0x421)]))[_0x50b9dc(0x35f)](_0x2df645=>{const _0x471582=_0x50b9dc;let _0x491bba=_0x2df645[_0x471582(0x2cd)]();this[_0x471582(0x304)](_0x2df645[_0x471582(0x26a)][_0x471582(0x14a)](()=>{const _0x3482da=_0x471582;this[_0x3482da(0x1c9)];})),this['disposeWithMe'](_0x491bba[_0x471582(0x2ff)][_0x471582(0x35f)](_0x24a880=>{const _0x3a9e8d=_0x471582;let {objects:_0x516b75}=_0x24a880;this[_0x3a9e8d(0x33b)](),_0x516b75!==null&&_0x516b75['size']===0x1&&_0x516b75[_0x3a9e8d(0x41e)]()[_0x3a9e8d(0x14d)]()[_0x3a9e8d(0x1f1)]instanceof E&&this['setShouldShowAdjust'](!0x0);})),this[_0x471582(0x304)](_0x491bba[_0x471582(0x1e2)][_0x471582(0x35f)](()=>{const _0x9bbeb9=_0x471582;this['_isShouldShowDrawingShapeAdjust']&&this[_0x9bbeb9(0x137)]();})),this[_0x471582(0x304)](_0x2df645['onPointerUp$']['subscribeEvent'](()=>{const _0x16f87b=_0x471582;this[_0x16f87b(0x1c9)]&&(this[_0x16f87b(0x432)](!0x1),this[_0x16f87b(0x33b)]());})),this[_0x471582(0x304)](_0x491bba[_0x471582(0x266)]['subscribe'](()=>{const _0x1f76bc=_0x471582;this[_0x1f76bc(0x296)]&&this['_subUnitId']&&this[_0x1f76bc(0x23a)]&&this[_0x1f76bc(0x17b)]['getDrawingByParam']({'unitId':this[_0x1f76bc(0x296)],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']})&&(this[_0x1f76bc(0x45e)]=this[_0x1f76bc(0x369)](this['_unitId'],this[_0x1f76bc(0x397)],this[_0x1f76bc(0x23a)]),this[_0x1f76bc(0x2ea)]());}));}));}[_0x22001c(0x2e7)](){const _0x4e670e=_0x22001c;this['disposeWithMe'](this[_0x4e670e(0x409)][_0x4e670e(0x3a6)](_0x293366=>{const _0x1c3788=_0x4e670e;if(_0x293366['id']!==i[_0x1c3788(0x2bd)]['id'])return;let {unitId:_0x2de20e,subUnitId:_0xba8000,shapeId:_0x405228}=_0x293366['params'];_0x2de20e===this[_0x1c3788(0x296)]&&_0xba8000===this[_0x1c3788(0x397)]&&_0x405228===this['_activeShapeId']&&this[_0x1c3788(0x3de)]();})),this[_0x4e670e(0x304)](this[_0x4e670e(0x17b)][_0x4e670e(0x1be)][_0x4e670e(0x35f)](_0x50e919=>{const _0x1cae31=_0x4e670e;if(_0x50e919[_0x1cae31(0x285)]===0x1){let _0x5729bf=_0x50e919[0x0];if(_0x5729bf[_0x1cae31(0x235)]===a[_0x1cae31(0x2c3)][_0x1cae31(0x2ef)]&&this[_0x1cae31(0x2d0)][_0x1cae31(0x32b)](_0x5729bf[_0x1cae31(0x298)])===a['UniverInstanceType'][_0x1cae31(0x3ed)]){this[_0x1cae31(0x23a)]=_0x5729bf[_0x1cae31(0x184)];let {unitId:_0x4db30a,subUnitId:_0x4a83dc}=_0x5729bf;this[_0x1cae31(0x45e)]=this[_0x1cae31(0x369)](_0x4db30a,_0x4a83dc,this[_0x1cae31(0x23a)]),this[_0x1cae31(0x296)]=_0x4db30a,this['_subUnitId']=_0x4a83dc,this[_0x1cae31(0x137)](),this['_createShapeAdjustControls']();return;}}this['_activeShapeId']=null,this[_0x1cae31(0x45e)]=void 0x0,this[_0x1cae31(0x296)]=null,this[_0x1cae31(0x397)]=null,this[_0x1cae31(0x137)]();})),this[_0x4e670e(0x304)](this[_0x4e670e(0x17b)]['update$'][_0x4e670e(0x35f)](_0x3072af=>{const _0x9a2cc1=_0x4e670e;if(_0x3072af[_0x9a2cc1(0x285)]===0x1){var _0x336f67;let _0x4ecd23=_0x3072af[0x0];((_0x336f67=this[_0x9a2cc1(0x17b)][_0x9a2cc1(0x29f)](_0x4ecd23))==null?void 0x0:_0x336f67[_0x9a2cc1(0x235)])===a[_0x9a2cc1(0x2c3)]['DRAWING_SHAPE']&&this['_updateShapeAdjustControls'](!0x0);}})),this[_0x4e670e(0x304)](this[_0x4e670e(0x17b)]['remove$'][_0x4e670e(0x35f)](_0x5eca56=>{const _0x215e22=_0x4e670e;for(let _0x4b46fa of _0x5eca56)this[_0x215e22(0x23a)]===_0x4b46fa[_0x215e22(0x184)]&&(this['_activeShapeId']=null,this[_0x215e22(0x45e)]=void 0x0,this['_unitId']=null,this[_0x215e22(0x397)]=null,this[_0x215e22(0x137)]());}));}};j=k([O(0x0,s['IDrawingManagerService']),O(0x1,(0x0,a[_0x22001c(0x299)])(i[_0x22001c(0x1e3)])),O(0x2,(0x0,a[_0x22001c(0x299)])(c[_0x22001c(0x39b)])),O(0x3,(0x0,a[_0x22001c(0x299)])(A)),O(0x4,a[_0x22001c(0x252)]),O(0x5,a['ICommandService'])],j);const M={'id':_0x22001c(0x21f),'type':a['CommandType'][_0x22001c(0x269)],'handler':(_0x4f58f0,_0x438569)=>{const _0x44256c=_0x22001c;let _0xd44ec0=_0x4f58f0[_0x44256c(0x38c)](s[_0x44256c(0x1a7)]),_0x4d5e6d=_0x4f58f0[_0x44256c(0x38c)](c[_0x44256c(0x39b)]),_0x14d44f=_0x4f58f0[_0x44256c(0x38c)](j);if(_0x438569==null)return!0x0;if(_0x438569[_0x44256c(0x285)]>0x0){var _0x16d7ec;let _0x45bce7=(_0x16d7ec=_0x4d5e6d[_0x44256c(0x355)](_0x438569[0x0][_0x44256c(0x298)]))==null?void 0x0:_0x16d7ec[_0x44256c(0x448)];if(_0x45bce7){let {unitId:_0x2a41fa,subUnitId:_0x1a900a,drawingId:_0x4dfdbc}=_0x438569[0x0],_0x145460=(0x0,s[_0x44256c(0x1f0)])({'unitId':_0x2a41fa,'subUnitId':_0x1a900a,'drawingId':_0x4dfdbc},void 0x0),_0x333505=_0x45bce7[_0x44256c(0x3e5)](_0x145460);if(_0x333505){var _0x3af128;(_0x3af128=_0x4d5e6d[_0x44256c(0x355)](_0x438569[0x0][_0x44256c(0x298)]))==null||(_0x3af128=_0x3af128[_0x44256c(0x448)]['getTransformer']())==null||_0x3af128['activeAnObject'](_0x333505);}}_0xd44ec0['focusDrawing'](_0x438569),_0x14d44f['setShouldShowAdjust'](!0x1);}return!0x0;}},N={'type':a['CommandType'][_0x22001c(0x460)],'id':'sheet.command.menu-insert-shape','handler':async(_0x518628,_0x5c85c7)=>{const _0x25f4a6=_0x22001c;let _0x191f39=(0x0,o['getSheetCommandTarget'])(_0x518628['get'](a[_0x25f4a6(0x252)]));if(!_0x191f39)return!0x1;let _0x2b8179=_0x518628['get'](o[_0x25f4a6(0x19c)])[_0x25f4a6(0x3e0)]();if(!_0x2b8179)return!0x1;let _0x4f450b=_0x518628[_0x25f4a6(0x38c)](a[_0x25f4a6(0x20b)]),{unitId:_0x37f58f,subUnitId:_0x54a1d8}=_0x191f39,{value:_0x569db8,enhanceParams:_0xa3fcd1}=_0x5c85c7,{range:_0x2495c4}=_0x2b8179,_0x388042={'unitId':_0x37f58f,'subUnitId':_0x54a1d8,'shapeType':_0x569db8,'range':_0x2495c4,'shapeId':(0x0,a[_0x25f4a6(0x20d)])()};if(_0xa3fcd1){let _0xee818d=(0x0,n[_0x25f4a6(0x1cd)])(_0x569db8),_0x45fc67=_0x569db8===n[_0x25f4a6(0x225)][_0x25f4a6(0x2b2)];_0xee818d&&(_0xa3fcd1[_0x25f4a6(0x391)]||_0xa3fcd1[_0x25f4a6(0x164)])&&(_0x388042['shapeData']={'ln':{'startArrow':_0xa3fcd1['startArrow']?{'type':n[_0x25f4a6(0x351)][_0x25f4a6(0x3e1)],'size':n[_0x25f4a6(0x158)][_0x25f4a6(0x2b1)]}:void 0x0,'endArrow':_0xa3fcd1[_0x25f4a6(0x164)]?{'type':n['ShapeArrowTypeEnum'][_0x25f4a6(0x3e1)],'size':n['ShapeArrowSizeEnum'][_0x25f4a6(0x2be)]}:void 0x0}}),_0x45fc67&&(_0xa3fcd1[_0x25f4a6(0x200)]||_0xa3fcd1['vertical'])&&(_0x388042[_0x25f4a6(0x150)]=(0x0,r[_0x25f4a6(0x447)])({'fill':{'fillType':n[_0x25f4a6(0x3d1)]['SolidFill'],'color':_0x25f4a6(0x14b)},'isHorizontal':!!_0xa3fcd1[_0x25f4a6(0x200)],'stroke':{'lineStrokeType':n[_0x25f4a6(0x148)][_0x25f4a6(0x396)],'width':0x1,'color':_0x25f4a6(0x3c6)}}));}let _0x5381ea=_0x4f450b[_0x25f4a6(0x333)](i[_0x25f4a6(0x308)]['id'],_0x388042);return setTimeout(()=>{const _0x63e7b4=_0x25f4a6;_0x4f450b[_0x63e7b4(0x404)](M['id'],[{'unitId':_0x37f58f,'subUnitId':_0x54a1d8,'drawingId':_0x388042[_0x63e7b4(0x28c)]}]);},0xc8),_0x5381ea;}},P='sheet.shape.edit.panel',F='sheet.shape.object-list.panel',I='sheet.shape.floating-toolbar',L='sheets-shape-ui.ribbon.shape-format',re=(0x0,a[_0x22001c(0x312)])(_0x22001c(0x22c)),ie=_0x22001c(0x366),ae={'id':_0x22001c(0x229),'type':a[_0x22001c(0x344)][_0x22001c(0x460)],'handler':(_0x222717,_0x1c72d6)=>{const _0x18c844=_0x22001c;let _0x498066=_0x222717[_0x18c844(0x38c)](t[_0x18c844(0x1ca)]),_0x49db1c=_0x222717[_0x18c844(0x38c)](a[_0x18c844(0x143)]),_0x38d420=_0x222717[_0x18c844(0x38c)](a[_0x18c844(0x252)]),_0x3f0cae=_0x222717[_0x18c844(0x38c)](a[_0x18c844(0x20b)]);return(0x0,o[_0x18c844(0x348)])(_0x38d420)?(_0x1c72d6==null?void 0x0:_0x1c72d6['value'])===_0x18c844(0x3d3)?(_0x498066[_0x18c844(0x3d3)](F),!0x0):(_0x498066[_0x18c844(0x2a6)]({'id':F,'header':{'title':_0x49db1c['t']('sheets-shape-ui.objectListPanel.title')},'children':{'label':F},'onClose':()=>{const _0x1b7c69=_0x18c844;_0x3f0cae[_0x1b7c69(0x333)](s[_0x1b7c69(0x1ef)]['id'],[]);},'width':0x168}),!0x0):!0x1;}},R={'type':a[_0x22001c(0x344)][_0x22001c(0x269)],'id':_0x22001c(0x465),'handler'(){return!0x0;}};function oe(_0x359f5c){const _0xb596b1=_0x22001c;let _0xbe8d16=_0x359f5c[_0xb596b1(0x38c)](s['IDrawingManagerService'])[_0xb596b1(0x42e)](),_0x1ce049=_0xbe8d16['length']===0x1?_0xbe8d16[0x0]:null;if(!_0x1ce049||_0x1ce049[_0xb596b1(0x235)]!==a['DrawingTypeEnum'][_0xb596b1(0x2ef)])return null;let _0x21c4ea=_0x359f5c['get'](i['SheetsShapeService']),_0x219bfc=_0x21c4ea[_0xb596b1(0x1d4)](_0x1ce049['unitId'],_0x1ce049[_0xb596b1(0x388)],_0x1ce049[_0xb596b1(0x184)]),_0x12a5aa=_0x21c4ea[_0xb596b1(0x276)](_0x1ce049[_0xb596b1(0x298)],_0x1ce049[_0xb596b1(0x388)],_0x1ce049[_0xb596b1(0x184)]);return _0x219bfc===void 0x0||!_0x12a5aa?null:{'drawing':_0x1ce049,'shapeData':_0x12a5aa,'shapeType':_0x219bfc};}const se={'id':_0x22001c(0x303),'type':a[_0x22001c(0x344)][_0x22001c(0x269)],'handler':(_0x50f1cf,_0x1663e4)=>{const _0x517977=_0x22001c;let _0x187dfa=oe(_0x50f1cf),_0x33bb07=(0x0,r['getShapeQuickStylePreset'])((_0x1663e4==null?void 0x0:_0x1663e4[_0x517977(0x2c4)])??(_0x1663e4==null?void 0x0:_0x1663e4['value'])??'');if(!_0x187dfa||!_0x33bb07||_0x33bb07[_0x517977(0x21c)]!==(0x0,r[_0x517977(0x1f2)])(_0x187dfa['shapeData']))return!0x1;let _0x20a1db=(0x0,r[_0x517977(0x30d)])(_0x187dfa[_0x517977(0x150)],_0x33bb07);if(!_0x20a1db)return!0x1;let {drawing:_0x195097}=_0x187dfa;return _0x50f1cf[_0x517977(0x38c)](a[_0x517977(0x20b)])['executeCommand'](x['id'],{'unitId':_0x195097[_0x517977(0x298)],'subUnitId':_0x195097[_0x517977(0x388)],'shapeId':_0x195097[_0x517977(0x184)],'shapeData':_0x20a1db,'oldShapeJSON':{'oldShapeData':_0x187dfa[_0x517977(0x150)]}});}},ce={'id':'sheet.operation.update-shape-type','type':a['CommandType'][_0x22001c(0x269)],'handler':(_0x578b1,_0x1d8d7b)=>{const _0xe2049=_0x22001c;let _0x344830=oe(_0x578b1),_0x38f012=(_0x1d8d7b==null?void 0x0:_0x1d8d7b[_0xe2049(0x346)])??(_0x1d8d7b==null?void 0x0:_0x1d8d7b['value']);if(!_0x344830||!_0x38f012||(0x0,n[_0xe2049(0x1cd)])(_0x344830[_0xe2049(0x346)])||(0x0,n[_0xe2049(0x1cd)])(_0x38f012))return!0x1;let _0x24f05f=(0x0,r[_0xe2049(0x12f)])(_0x344830[_0xe2049(0x150)],_0x38f012);if(!_0x24f05f)return!0x1;let {drawing:_0x12e569}=_0x344830;return _0x578b1[_0xe2049(0x38c)](a[_0xe2049(0x20b)])['executeCommand'](x['id'],{'unitId':_0x12e569[_0xe2049(0x298)],'subUnitId':_0x12e569[_0xe2049(0x388)],'shapeId':_0x12e569[_0xe2049(0x184)],'shapeType':_0x38f012,'shapeData':_0x24f05f,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x344830[_0xe2049(0x346)],'oldShapeData':_0x344830[_0xe2049(0x150)]}});}};let z=class extends a[_0x22001c(0x35c)]{constructor(_0xee830a,_0x4ae2c7){const _0x97a919=_0x22001c;super(),this[_0x97a919(0x231)]=_0xee830a,this['_drawingManagerService']=_0x4ae2c7,this[_0x97a919(0x424)](),this['_clipService'][_0x97a919(0x458)](!0x0),this['disposeWithMe']({'dispose':()=>this['_clipService'][_0x97a919(0x458)](!0x1)});}[_0x22001c(0x424)](){const _0xbebd7b=_0x22001c;let _0x3c90bd=this[_0xbebd7b(0x231)],_0x350cb7=new Map(),_0x1fbfc9=_0x3c90bd[_0xbebd7b(0x363)]((_0x45b0e0,_0x33fb77,_0x14bf64,_0x5f028b,_0x205da3)=>{const _0x1a1792=_0xbebd7b;let _0x54dc26=_0x33fb77;if(_0x54dc26===n[_0x1a1792(0x225)]['None']||_0x33fb77==='custom')return!0x1;try{let _0x38b9a5=_0x350cb7['get'](_0x33fb77);return _0x38b9a5||(_0x38b9a5=new n[(_0x1a1792(0x23e))](_0x54dc26,_0x1a1792(0x160)+_0x33fb77),_0x350cb7['set'](_0x33fb77,_0x38b9a5)),_0x38b9a5[_0x1a1792(0x182)](),_0x205da3&&Object['keys'](_0x205da3)[_0x1a1792(0x285)]>0x0&&_0x38b9a5[_0x1a1792(0x273)]({'adjustValues':_0x205da3},!0x0),_0x38b9a5[_0x1a1792(0x2c1)]({'width':_0x14bf64,'height':_0x5f028b}),_0x38b9a5['buildClipPath'](_0x45b0e0,{'left':0x0,'top':0x0,'width':_0x14bf64,'height':_0x5f028b});}catch{return!0x1;}});this[_0xbebd7b(0x304)](_0x1fbfc9),this['disposeWithMe']({'dispose':()=>_0x350cb7['clear']()});}[_0x22001c(0x1f5)](_0x19ec2b,_0x1d3f16,_0x3c03aa,_0x193d94,_0x1f8cad){const _0x1ee011=_0x22001c;let _0x4d3d46=this[_0x1ee011(0x17b)][_0x1ee011(0x390)](_0x19ec2b,_0x1d3f16);if(!_0x4d3d46[_0x3c03aa])return;let _0xac8e7a={..._0x4d3d46[_0x3c03aa],'prstGeom':_0x193d94,'adjustValues':_0x1f8cad};this[_0x1ee011(0x17b)][_0x1ee011(0x3b0)]([_0xac8e7a]);}};z=k([O(0x0,(0x0,a[_0x22001c(0x299)])(d[_0x22001c(0x2da)])),O(0x1,(0x0,a[_0x22001c(0x299)])(s['IDrawingManagerService']))],z);const le=_0x22001c(0x43b),ue=_0x22001c(0x25d);function de({onShapeClick:_0x4af2b9,excludeGroups:_0x55d456}){const _0x41997d=_0x22001c;return(0x0,f[_0x41997d(0x311)])(e[_0x41997d(0x2e2)],{'excludeGroups':_0x55d456,'onShapeClick':_0x4af2b9,'scrollContainer':_0x41997d(0x362)});}function fe(){const _0xdfbabf=_0x22001c;let _0x5dd902=(0x0,t['useDependency'])(s['IDrawingManagerService']),_0xbb2fb5=(0x0,t[_0xdfbabf(0x31e)])(z);return(0x0,f[_0xdfbabf(0x311)])(e[_0xdfbabf(0x262)],{'buttonLabel':_0xdfbabf(0x1ee),'excludeGroups':[e[_0xdfbabf(0x2f3)][_0xdfbabf(0x41d)]],'onShapeClick':_0x50dc6b=>{const _0x23f477=_0xdfbabf;let _0x4de37e=_0x5dd902[_0x23f477(0x42e)]()[_0x23f477(0x2c6)](_0x31de35=>_0x31de35[_0x23f477(0x235)]===a[_0x23f477(0x2c3)][_0x23f477(0x2c2)]);if(!_0x4de37e)return;let {unitId:_0x41190e,subUnitId:_0x4104d4,drawingId:_0x50ae00}=_0x4de37e;_0xbb2fb5[_0x23f477(0x1f5)](_0x41190e,_0x4104d4,_0x50ae00,_0x50dc6b[_0x23f477(0x21c)]);}});}function pe(){const _0x530e1a=_0x22001c;let _0x3ca212=(0x0,t['useDependency'])(t[_0x530e1a(0x3fa)]),_0x527f40=(0x0,t['useDependency'])(s[_0x530e1a(0x1a7)]),_0x48dcf9=(0x0,t['useDependency'])(a[_0x530e1a(0x252)]),_0x3cfbe3=_0x527f40[_0x530e1a(0x42e)]()[0x0],_0x59f644=_0x3cfbe3?_0x48dcf9[_0x530e1a(0x32b)](_0x3cfbe3['unitId']):void 0x0,_0x4117a0=_0x59f644===a['UniverInstanceType'][_0x530e1a(0x280)]?'doc.image-clip.shape-picker.component':_0x59f644===a[_0x530e1a(0x130)][_0x530e1a(0x3ed)]?ue:void 0x0,_0x35731b=_0x4117a0?_0x3ca212[_0x530e1a(0x38c)](_0x4117a0):void 0x0;return _0x35731b?(0x0,f[_0x530e1a(0x311)])(_0x35731b,{}):null;}function me(){const _0x3c3cf6=_0x22001c;let _0x38e0ab=(0x0,t[_0x3c3cf6(0x31e)])(a['ICommandService']);return(0x0,f[_0x3c3cf6(0x311)])(de,{'onShapeClick':_0x26ff7f=>{const _0x23364c=_0x3c3cf6;_0x38e0ab['executeCommand'](N['id'],{'value':_0x26ff7f[_0x23364c(0x21c)],'enhanceParams':{'endArrow':_0x26ff7f[_0x23364c(0x164)],'startArrow':_0x26ff7f[_0x23364c(0x391)],'horizontal':_0x26ff7f[_0x23364c(0x200)],'vertical':_0x26ff7f[_0x23364c(0x449)]}});}});}function he(_0x360dc0){const _0x315d7e=_0x22001c;let _0x57b3d3=_0x360dc0[_0x315d7e(0x38c)](a[_0x315d7e(0x252)]);return{'id':N['id'],'type':t[_0x315d7e(0x24f)][_0x315d7e(0x220)],'selections':[{'label':{'name':le,'hoverable':!0x1,'selectable':!0x1,'props':{'id':N['id']}}}],'icon':_0x315d7e(0x1fb),'tooltip':_0x315d7e(0x3f4),'activated$':(0x0,l[_0x315d7e(0x385)])(_0x57b3d3,!0x1,()=>new u[(_0x315d7e(0x172))](_0x59f71d=>{_0x59f71d['next'](!0x1);})),'hidden$':(0x0,t[_0x315d7e(0x3ab)])(_0x360dc0,a['UniverInstanceType'][_0x315d7e(0x3ed)]),'disabled$':(0x0,l[_0x315d7e(0x1ba)])(_0x360dc0)};}function ge(_0x1c365a){const _0x1c848e=_0x22001c;let _0x301c28=_0x1c365a[_0x1c848e(0x38c)](a['IUniverInstanceService']);return{'id':ae['id'],'type':t[_0x1c848e(0x24f)][_0x1c848e(0x16b)],'icon':_0x1c848e(0x44c),'title':_0x1c848e(0x187),'tooltip':'sheets-shape-ui.objectListPanel.open','activated$':(0x0,l[_0x1c848e(0x385)])(_0x301c28,!0x1,()=>new u['Observable'](_0x40dd8f=>{const _0x2e4529=_0x1c848e;_0x40dd8f[_0x2e4529(0x14d)](!0x1);})),'hidden$':(0x0,t[_0x1c848e(0x3ab)])(_0x1c365a,a[_0x1c848e(0x130)][_0x1c848e(0x3ed)]),'disabled$':(0x0,l[_0x1c848e(0x1ba)])(_0x1c365a)};}const _e='sheet.menu.shape.flip-horizontal',ve=_0x22001c(0x2a5);function ye(_0x7ca410){const _0x14b63b=_0x22001c;let _0x1c9976=_0x7ca410[_0x14b63b(0x38c)](s['IDrawingManagerService'])[_0x14b63b(0x42e)]();return _0x1c9976[_0x14b63b(0x285)]===0x1&&_0x1c9976[0x0]['drawingType']===a['DrawingTypeEnum'][_0x14b63b(0x2ef)]?_0x1c9976[0x0]:null;}function be(_0x123103){const _0x476c52=_0x22001c;let _0x58dbfd=_0x123103[_0x476c52(0x38c)](s[_0x476c52(0x1a7)]);return _0x58dbfd[_0x476c52(0x1be)][_0x476c52(0x23c)]((0x0,u[_0x476c52(0x2b4)])(_0x58dbfd[_0x476c52(0x42e)]()),(0x0,u[_0x476c52(0x37a)])(_0x1aa115=>_0x1aa115[_0x476c52(0x285)]!==0x1||_0x1aa115[0x0]['drawingType']!==a[_0x476c52(0x2c3)][_0x476c52(0x2ef)]));}function xe(_0x103a85){const _0x56f395=_0x22001c;return{'id':_e,'commandId':i[_0x56f395(0x24c)]['id'],'type':t[_0x56f395(0x24f)][_0x56f395(0x16b)],'title':'sheets-shape-ui.flipHorizontal','tooltip':_0x56f395(0x343),'icon':_0x56f395(0x2ba),'hidden$':be(_0x103a85),'params':()=>{const _0x1f8f18=_0x56f395;let _0x9325bc=ye(_0x103a85);return _0x9325bc?{'unitId':_0x9325bc[_0x1f8f18(0x298)],'subUnitId':_0x9325bc[_0x1f8f18(0x388)],'shapeId':_0x9325bc[_0x1f8f18(0x184)],'flipH':!0x0}:void 0x0;}};}function Se(_0x4849d4){const _0x3d6dcb=_0x22001c;return{'id':ve,'commandId':i['ToggleSheetsShapeFlipCommand']['id'],'type':t[_0x3d6dcb(0x24f)]['BUTTON'],'title':_0x3d6dcb(0x15e),'tooltip':_0x3d6dcb(0x15e),'icon':_0x3d6dcb(0x3db),'hidden$':be(_0x4849d4),'params':()=>{const _0x3ec8c0=_0x3d6dcb;let _0x94aef1=ye(_0x4849d4);return _0x94aef1?{'unitId':_0x94aef1[_0x3ec8c0(0x298)],'subUnitId':_0x94aef1[_0x3ec8c0(0x388)],'shapeId':_0x94aef1[_0x3ec8c0(0x184)],'flipV':!0x0}:void 0x0;}};}const Ce=_0x22001c(0x1dd),we=_0x22001c(0x2d4),Te=_0x22001c(0x224),Ee='sheets-shape-ui.shape-format.formula-ribbon-control';function B(){const _0x57313f=_0x22001c;let _0x39c452=(0x0,t['useDependency'])(a['ICommandService']),_0x33edc2=(0x0,t[_0x57313f(0x31e)])(s[_0x57313f(0x1a7)]),_0x59a74c=(0x0,t[_0x57313f(0x31e)])(i['SheetsShapeService']),_0x283374=()=>{const _0x2599df=_0x57313f;var _0x3dab78;let _0x52f060=_0x33edc2[_0x2599df(0x42e)]();if(_0x52f060['length']!==0x1||((_0x3dab78=_0x52f060[0x0])==null?void 0x0:_0x3dab78['drawingType'])!==a[_0x2599df(0x2c3)][_0x2599df(0x2ef)])return null;let {unitId:_0x3d0235,subUnitId:_0xfe9c87,drawingId:_0x314cf8}=_0x52f060[0x0],_0x5f5aa8=_0x59a74c[_0x2599df(0x1d4)](_0x3d0235,_0xfe9c87,_0x314cf8),_0x2c0507=_0x59a74c[_0x2599df(0x276)](_0x3d0235,_0xfe9c87,_0x314cf8);return _0x5f5aa8===void 0x0||!_0x2c0507?null:{'unitId':_0x3d0235,'subUnitId':_0xfe9c87,'drawingId':_0x314cf8,'shapeType':_0x5f5aa8,'shapeData':_0x2c0507};},_0x525d98=(0x0,t[_0x57313f(0x18e)])(()=>new u[(_0x57313f(0x172))](_0x2c36f3=>{const _0xe2be10=_0x57313f;let _0x52d354=()=>_0x2c36f3[_0xe2be10(0x14d)](_0x283374()),_0x364a6f=_0x33edc2['focus$']['subscribe'](_0x52d354),_0x1e925d=_0x39c452[_0xe2be10(0x3a6)](_0x36c0c4=>{_0x36c0c4['id']===i['UpdateSheetsShapeDataMutation']['id']&&_0x52d354();});return _0x52d354(),()=>{const _0x304308=_0xe2be10;_0x364a6f[_0x304308(0x36a)](),_0x1e925d['dispose']();};}),_0x283374(),!0x1,[_0x39c452,_0x33edc2,_0x59a74c]);return{'selection':_0x525d98,'updateShapeData':_0x5e3759=>{const _0x44edd9=_0x57313f;_0x525d98&&S(_0x39c452,_0x525d98['unitId'],_0x525d98[_0x44edd9(0x388)],_0x525d98[_0x44edd9(0x184)],{'oldShapeData':_0x525d98['shapeData']},_0x5e3759);}};}function De(){const _0x160f43=_0x22001c;let {selection:_0x2cae19,updateShapeData:_0x19fb93}=B();return _0x2cae19?(0x0,f[_0x160f43(0x311)])(e[_0x160f43(0x132)],{'shapeData':_0x2cae19['shapeData'],'shapeType':_0x2cae19[_0x160f43(0x346)],'onUpdateShapeData':_0x19fb93}):null;}function _0x4103(){const _0xf0bd2a=['FlipVerticalIcon','2yvtCbK','gradientEndColor','refreshAdjustControls','default','getCurrentLastSelection','Arrow','axisAlignSheetTransform','SetShapeDrawingDataCommand','getSelectedObjectMap','getObjectIncludeInGroup','useReducer','shouldAllowShapeTextEditorHostSizeShrink','shape-editor-ui.arrange.front','isHit','vertical-center','refreshShapeFillImage','_formulaShapes','UNIVER_SHEET','_context','some','_copyInfo','onPointerUp$','order','getMatrix','sheets-shape-ui.insertShape','_baseLeft','_getDrawingRect','_baseHeight','_renderManagerService','mergeMenu','ComponentManager','UpdateConnectorRelationCommand','bottom','getEndConnectInfo','CROSSHAIR','title','toStringTag','isHighlighted','_isStartConnectorPoint','#4285f4','executeCommand','IUndoRedoService','createControl$','adjHandleFill','_draw','_commandService','RibbonInsertGroup','_drawingType','computeConnectorResizeLayout','undo','ShapeFloatingToolbarService','shape-editor-ui.toolbar.changeShape','816323Qrxiar','_baseShapeWidth','_update','update$','setFallbackVisible','UniverShapeEditorUIPlugin','removeLinePoints','_baseShapeLeft','DRAWING_OBJECT_LAYER_INDEX','invert','getAdjustValueByName','_getScrollInfo','Documents','Line','values','ShapeDefaultConfig','_shapes','EMPTY','SheetPrintInterceptorService','useMemo','_registerImageShapeClipDelegate','animateFormulaPresentation','_registerOperations','_generateCopyPasteMutations','index','_baseShapeHeight','applyPoint','interceptCommand','@univerjs-pro/sheets-shape-ui','_currentScene','getFocusDrawings','_sheetBasicShapeConnectionPointController','UpdateLineShapeResizeCommand','unregister','setShouldShowAdjust','error','viewBound','clearAdjustControls','string','SHEET_SHAPE_UI_PLUGIN','_cxtHandlerPointerMove','getStartConnectInfo','setSrcRect','sheet.shape.picker.component','_activeShapeModel','3103135aczIUe','insertGroupObject','computeConnectorRouteLayout','completeEditing','_draggingConnectorId','cos','VIEW_MAIN_TOP','makeDirty','isEditing','ImageSourceTypeEnum','createShapeTextBoxShapeData','scene','vertical','VerticalAlign','_transformCalculateSrcRect','ObjectLayersIcon','_init','getShapeModel','cancelEditing','reduce','fillType','editingParams$','_sheetInterceptorService','TopmostIcon','isStartConnectorPoint','save','_hide','setCanUseShapeClip','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','getDrawingEffectBounds','computeStraightConnectorLayout','SetSheetDrawingCommand','Image','_activeShapeAdjustPointList','_initialize','COMMAND','adjustValues','with','viewportScrollY','ConnectorCoordinateTransform','sheet.operation.open-sheet-shape-format-panel','point','TOP','sheets-shape-ui.ribbon.shape-format.style-control','_attachAdjustEvent','getTextModel','delete','constructor','getShapeData','cloneShapeDataForType','UniverInstanceType','cxnPointStroke','ShapeStyleRibbonControl','entries','_hasReset','_sidebarService','canvas','_clearShapeAdjustControls','_sheetPrintInterceptorService','updateDocumentDataMargin','SheetSkeletonManagerService','clearActiveDrawingObjects','_registerGroupFeaturePasteHook','sheetViewStartColumn','_sidebarDisposable','DocumentDataModel','BottomIcon','drawFormulaShapeAnimationLayers','hidden','LocaleService','fontSize','transformToAxisAlignPosition','div','changeShapeType','ShapeLineTypeEnum','shape-editor-ui.arrange.backward','subscribeEvent','#FFFFFF','ShapeQuickStyleGallery','next','adjHandleSize','UniverDrawingUIPlugin','shapeData','_isDrawingShapePointDown','toDisposable','getImageSourceCache','objects','onRendered','_addControl','getSheetBySheetId','ShapeArrowSizeEnum','_initializedShapePopupMenu','_drawRichText','highlighted','getRealBound','fillImageSourceType','sheets-shape-ui.flipVertical','visible$','clip-','_updateSrcRectByTransform','_createCopyInfoByRange','sheets-shape-ui.ribbon.shape-format.text-control','endArrow','size','getActiveSheet','addObject','_formulaKey','renderDrawingShape','_initCopyPaste','BUTTON','_sheetClipboardService','left','209610tYWrth','doc','Shape','_menuManagerService','Observable','cxnPointRadius','shape-editor-ui.arrange.forward','resolveShapeTextEditorWrapStrategy','GROUP','OTHERS','_registerFocusChangeHandler','None','isolated','_drawingManagerService','clipTop','flipX','reverse','getImage','_shapeFloatingToolbarService','sheets-shape-ui.permission.editErr','clearAdjustValue','getDrawingTypeNameKey','drawingId','getCurrentTypeOfUnit$','targetShapeId','sheets-shape-ui.objectListPanel.open','_adjHandlerPointerUp','normalizeShapeTextModel','_getOrCreateShapeModel','indexOf','object','4qRfrTF','useObservable','calcAdjValues','VIEW_MAIN','_handleConnectedEndpointMove','getViewportByCell','_insertingShapeKeys','_getZoomRatio','routeConnectorLineShape','InsertSheetsShapeMutation','sheets-shape-ui.ribbon.shape-format.arrange-backward','from','_registerComponents','getShapeType','shapeText','SheetsSelectionsService','getDrawingOrder','UniverSheetsDrawingUIPlugin','ShapeTextEditorContainer','viewportScrollX','buildShapeTextDataUpdate','worldRect','getDrawingEditable','defineProperty','_moveConnectorWithShape','clone','IDrawingManagerService','parse','params','SheetDrawingAnchor','sheets-shape-format-font-family-menu','sheet.operation.close-sheet-shape-format-panel','_activeShapeInfo','_handleBasicShapeUpdateConnectorLineShape','_loadAndSetImage','enableObjectsEvent','useState','_getConnectionSiteAngle','DrawingRenderService','resourceCollector','DocCanvasPopManagerService','getState','set','_updateShapeAdjustControls','DEFAULT_PASTE','getCurrentRangeDisable$','wrapStrategy','skeleton','updateConnectionDetection','focus$','sheets-shape-text-','setConfig','onload','attachTransformerTo','getCurrentScrollState','registerRenderModule','UniverDrawingPlugin','DocumentSkeleton','getCanvasElement','_executeConnectionCommand','_isShouldShowDrawingShapeAdjust','ISidebarService','_imageIoService','transformToDrawingPosition','isConnectorShape','endConnectionDetection','_injector','_activeImageId','_activeTargetShapeId','MEDIA','getBentTypeFromPoints','getShapeTypeById','VIEW_MAIN_LEFT','827643SDjeCH','getDrawingVisible','_executeConnectedRouteResizeCommand','ShapeFormulaService','copyType','filter','forEach','sheets-shape-ui.shape-format.quick-style-gallery','DependentOn','ShapeFloatingToolbarToggleFactory','sheetViewStartRow','redo','changing$','SheetsShapeService','4771974sYzzlT','setFillImage','_ribbonService','getTextStyle','clip-adj-','CUT','getCurrentUnitOfType','FOCUSING_SHAPE_TEXT_EDITOR','adjHandleStroke','srcRect','sheets-shape-ui.imagePanel.crop.shape','SetDrawingSelectedOperation','getDrawingShapeKeyByDrawingSearch','value','getShapeQuickStyleType','VIEW_MAIN_LEFT_TOP','UniverLicensePlugin','clipByShape','abs','resetCursor','_shapeUpdateListener','RIBBON','localToWorld','ShapeIcon','SetDrawingArrangeCommand','trim','sheetTransform','start','horizontal','1070VxmBbp','Transform','PictureFill','SetDrawingApplyMutation','connector-handler-','getConnectionRelation','getInverseCoord','getPresentation','_sheetsShapeService','refreshTransform','ICommandService','onReady','generateRandomId','sheets-shape-ui.ribbon.shape-format.formula-control','transform','getOwnPropertyDescriptor','_shapeTextEditingService','_disposed','sin','activeSheet$','FOCUSING_COMMON_DRAWINGS','resize','getAdjustInfoByName','ShapeRenderModeEnum','registerFeaturePasteHook','_insertShapes','_isHighlighted','type','width','version','drawing.operation.set-drawing-active','SELECTOR','canvasElement','includes','forward','sheets-shape-ui.shape-format.text-ribbon-control','ShapeTypeEnum','adjName','PaintIcon','sheets-shape-ui.formatShape','sheet.operation.open-shape-object-list-panel','panel','_drawShapeText','SHAPE_TEXT','_adjName','_clearControls','resolveShapeTextEditorBehaviorShapeData','top','_clipService','_showConnectionSites','register','ShapeFormulaRibbonControl','drawingType','resolveShapeTextDocumentRenderLayout','_imageShapeClipController','sheets-shape-ui.ribbon.shape-format.arrange-front','multiply','_activeShapeId','_releaseRenderCache','pipe','FormulaShapeAnimationController','ShapeModel','setEditing','HorizontalAlign','ShapeFloatingToolbar','_clearConnectionSites','_onSavingEditorData$','_calculateFreeEndpointAngle','_addShapeAdjustControl','_createShapePopupMenu','FromArray','drawWith','COPY_TYPE','preValue','fill','ToggleSheetsShapeFlipCommand','_componentManager','_urlImageService','MenuItemType','SHAPE_CHANGE_PICKER_COMPONENT','WorkbookEditablePermission','IUniverInstanceService','setOnSavingEditorData','presentationChanged$','_initSelection','_openShapeEditPanel','selectable','image-clip-adjust-point-','_highlightedSiteIndex','_findShapeAtPoint','useEffect','_localeService','sheet.image-clip.shape-picker.component','setCollapsedIds','_getImagePrstGeom','shape-text-','560856JuzOTG','ShapePickerDropdown','REMOVE','shape-adjust-point-','createShapeFormulaDocument','changeEnd$','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','SHEET_VIEWPORT_KEY','OPERATION','onPointerMove$','UniverDocsPlugin','getObjectListPanelSectionIdForDrawingType','keys','isInGroup','setAdjustValueByName','shapeKey','_shapeFormulaService','_sheetShapeAdjustController','setShapeData','_editingParams$','shapeModel','getShapeDataById','offsetY','formulaPresentation','ObjectListPanelBase','ancestorTransform','Module','UniverRenderEnginePlugin','rotation','IMenuManagerService','contentHeight','UNIVER_DOC','getConnectionSiteList','_clearPopups','_configService','UniverSheetsShapePlugin','length','StraightConnector1','_getConnectPointInfo','_formulaAnimation','getTransformer','IContextService','setShapeProps','shapeId','currentAdjustValues','_updateImageAdjValues','render','getObject','updateDocumentStyle','_getShapeInfo','_shapeId','animationEnabled','_initEditingParams','_unitId','MoveDownIcon','unitId','Inject','onPointerDown$','sheets-shape-ui.quickStyles','lineShapeId','stringify','stopPropagation','getDrawingByParam','debounceRefreshControls','_config','pluginName','initShapePopupMenu','SheetsDrawingGroupCopyPasteController','sheet.menu.shape.flip-vertical','open','getSkeletonParam','setFormulaPresentation','transformForAngle','_clearShapeConnectorHandlerObjects','getCurrentSkeleton','getParent','description','getDrawingPoints','getScene','getEditing','Medium','Rect','LEFT','startWith','_handleFreeEndpointMove','setContextValue','SheetScrollManagerService','sheets-shape-ui.config','plainShapeTextToDocumentData','FlipHorizontalIcon','_focusedDrawings','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','UpdateSheetsShapeDataMutation','Large','dataModel','_addShapeConnectorHandlerObjects','updateContext','DRAWING_IMAGE','DrawingTypeEnum','presetId','getVisible','find','asObservable','onerror','_createControls','_props','_handleFreeEndpointPointerUp','lineType','getTransformerByCreate','_generateCutPasteMutations','_executeConnectedRouteConnectionCommand','_univerInstanceService','_cxnIndex','DrawingApplyType','_closeShapeEditPanel','sheets-shape-ui.shape-format.style-ribbon-control','relation','_addShapeConnectorHandlerObject','isDrawingObject','clipHeight','sheets-shape-ui.ribbon.shape-format.arrange-forward','DrawingImageClipService','dispose','getAdjustNames','_getSceneAndTransformerByDrawingSearch','ShapeTextFloatMenuRenderControllerBase','touchDependencies','fillImageSource','worldPoint','ShapePickerPanel','DrawingCommonPanel','_findNearestConnectionSite','SheetShapeTextEditorContainer','ContextMenuGroup','_registerDrawingFocusChangeHandler','src','UUID','_updateAdjustControlPositions','complete','BehaviorSubject','SheetsShapeUIMenuSchema','has','DRAWING_SHAPE','push','_baseWidth','shape-editor-ui.arrange.back','ShapeGroupEnum','_shapeRenderController','_baseShapeTop','decorate','_iconManager','resolveActiveShapeQuickStylePresetId','startY','remove$','_drawingAddListener','jsxs','formulaBinding','_currentConnectionTarget','changeStart$','hideContextualTab','Circle','_isOpenedShapeEditPanel','sheet.operation.apply-shape-quick-style','disposeWithMe','shape-editor-ui.toolbar.quickStyles','sectionCanvas','_attachConnectorObjectEvent','InsertShapeCommand','_applyFormulaAutoFitSize','useFormulaShapeToolbar','_initPrinting','iterator','applyQuickStyleToShapeData','shouldClipShapeTextDocument','IConfigService','_visible','jsx','createInternalEditorID','classType','getConnectorLinePoints','extensionGroups','getObjectListPanelLabels','getBatchRemoveOp','_targetShapeId','updateShapeFillImage','PREDEFINED_HOOK_NAME','attachPopupToObject','disableObjectsEvent','contentVerticalOffset','useDependency','3061860FqWSaj','oKey','SheetCanvasPopManagerService','blockExecuteWithoutPermission','getAllUnitsForType','prepareShapeTextDocumentData','_currentUniverService','_initSheetChange','ArrangeTypeEnum','_baseDrawingRect','_sheetDrawingService','strokeWidth','getUnitType','setPrstGeom','getUnit','restore','backward','height','calculate','startConnectionDetection','syncExecuteCommand','_registerMoveHandler','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','cxnPointFill','setHighlighted','focusDrawing','_adjHandlerPointerMove','stroke','_createShapeAdjustControls','getUnitId','sectionFloating','_groupCopyPasteController','_cxtHandlerPointerUp','_sheetPermissionCheckController','isLineShape','add','sheets-shape-ui.flipHorizontal','CommandType','_transform','shapeType','translateWithPrecision','getSheetCommandTarget','_shapeService','_drawRichTextLayer','cxnPointStrokeWidth','Fragment','getZoomRatio','interceptor','extraProps','_sheetSkeletonService','ShapeArrowTypeEnum','visible','showContextualTab','setCursor','getRenderUnitById','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','beforeCommandExecuted','getSkeleton','transformByState','_getShapeAdjustInfosById','IImageIoService','Disposable','draw','_getImageDrawingInfo','subscribe','_initEvents','_isConnecting','parent','registerClipDelegate','_isStartAdjusting','_updateTransform','sheet.shape.text.float-menu','_rerouteConnectorLine','onSteady','_getShapeAdjustPointListById','unsubscribe','_sheetCanvasPopManagerService','switchMap','addImageSourceCache','attachRangeWithCoord','prstGeomAdjValues','_connectionSiteObjects','onTransformChange$','angle','_popupMenuListener','flipY','_initCommands','_activeAdjustPointList','isCurvedConnectorShape','URL','_initMenu','map','_generatePasteMutations','getDrawingSearch','_registerIcons','end','getBasicShapeRotateBound','sheet.command.update-shape-data','_shapeEditPanelVersion','_isImagePointerDown','Injector','ShapeFormatSettingIcon','deriveStateFromActiveSheet$','connection-site-','MoveUpIcon','subUnitId','_lastEditingShapeKey','ang','getBatchUpdateOp','get','clearControl$','name','_commandExecutedListener','getDrawingData','startArrow','isRichText','_disposePopups','startX','_resetState','SolidLine','_subUnitId','refreshFormulaPresentation','univer-box-border\x20univer-px-4\x20univer-text-sm','DocumentViewModel','IRenderManagerService','updateLinePoints','_contextService','memo','_handleConnectorPointerUp','setPresentation','function','Plugin','intercept','popup','pick','onCommandExecuted','RemoveSheetsShapeMutation','prstGeom','CopySheetCommand','setPrstGeomAdjValues','getMenuHiddenObservable','composeMatrix','isArray','cxnIndex','flatMap','featurePluginUpdateNotification','CURSOR_TYPE','DocSelectionRenderService','engine','symbol','UPDATE','getShapeTextRect','resolveFormulaShapeAutoFitSize','Vector2','_connectorObjects','getConnectionInfo','_loadShapePictureFill','_executeResizeCommand','_initPermission','translate','scale','registerCommand','UniverSheetsDrawingPlugin','INSERT','SHAPE','IURLImageService','_sheetDrawingShapeRenderController','#bcbcbc','getBatchAddOp','_activeAdjustInfo','_registerDrawingMoveHandler','data','UniverSheetsUIPlugin','image','OBJECT_LIST_FLOATING_SECTION_ID','RENDER_CLASS_TYPE','DocSelectionManagerService','_drawSimpleText','ShapeFillEnum','_baseTop','close','worldPoints','_setTransForm','ISheetDrawingService','UniverShapeEditorPlugin','front','text','normal'];_0x4103=function(){return _0xf0bd2a;};return _0x4103();}function Oe(){const _0x2d0ecb=_0x22001c;let _0x2c5310=(0x0,t[_0x2d0ecb(0x31e)])(a[_0x2d0ecb(0x20b)]),_0x3c84ff=(0x0,t[_0x2d0ecb(0x31e)])(a[_0x2d0ecb(0x143)]),{selection:_0x451290}=B();return _0x451290?(0x0,f[_0x2d0ecb(0x311)])(e[_0x2d0ecb(0x14c)],{'type':(0x0,r[_0x2d0ecb(0x1f2)])(_0x451290[_0x2d0ecb(0x150)]),'ariaLabel':_0x3c84ff['t'](_0x2d0ecb(0x29b)),'activePresetId':(0x0,r[_0x2d0ecb(0x2f8)])(_0x451290[_0x2d0ecb(0x150)]),'onSelect':_0x5e0613=>_0x2c5310[_0x2d0ecb(0x404)](se['id'],{'presetId':_0x5e0613})}):null;}function ke(){const _0x169570=_0x22001c;let {selection:_0x4abfaf,updateShapeData:_0x278d73}=B();return _0x4abfaf?(0x0,f[_0x169570(0x311)])(e['ShapeTextRibbonControl'],{'fontFamilyPopupDataComponent':_0x169570(0x1ab),'shapeData':_0x4abfaf[_0x169570(0x150)],'onUpdateShapeData':_0x278d73}):null;}function Ae(){const _0x3d08ab=_0x22001c;var _0x21952f;let {selection:_0xc3c0b6,updateShapeData:_0x437e79}=B(),_0x4b4aac=(0x0,e[_0x3d08ab(0x30a)])({'hostType':a[_0x3d08ab(0x130)][_0x3d08ab(0x3ed)],'unitId':(_0xc3c0b6==null?void 0x0:_0xc3c0b6['unitId'])??'','subUnitId':(_0xc3c0b6==null?void 0x0:_0xc3c0b6[_0x3d08ab(0x388)])??'','shapeId':(_0xc3c0b6==null?void 0x0:_0xc3c0b6[_0x3d08ab(0x184)])??'','shapeData':_0xc3c0b6==null?void 0x0:_0xc3c0b6['shapeData'],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x3d08ab(0x3fc),'onUpdateBinding':_0x582da0=>_0x437e79({'formulaBinding':_0x582da0})}),_0xba6ee2=((_0x21952f=_0x4b4aac['extensionGroups'])==null?void 0x0:_0x21952f[_0x3d08ab(0x3af)](_0x59bd35=>_0x59bd35['actions'])[_0x3d08ab(0x1db)](_0x247716=>_0x247716['visible']!==!0x1))??[];return _0xc3c0b6!=null&&_0xc3c0b6[_0x3d08ab(0x150)]['formulaBinding']?(0x0,f['jsx'])(e[_0x3d08ab(0x234)],{'actions':_0xba6ee2,'panel':_0x4b4aac[_0x3d08ab(0x22a)]}):null;}const je=_0x22001c(0x468),Me=_0x22001c(0x163),Ne=_0x22001c(0x20e),Pe=_0x22001c(0x2d9),Fe=_0x22001c(0x197),Ie=_0x22001c(0x238),Le='sheets-shape-ui.ribbon.shape-format.arrange-back';function Re(_0x35186f){const _0x49c214=_0x22001c;let _0x7fcbea=_0x35186f[_0x49c214(0x38c)](a[_0x49c214(0x20b)]),_0x19f240=_0x35186f[_0x49c214(0x38c)](s['IDrawingManagerService']),_0x293e30=_0x35186f[_0x49c214(0x38c)](i[_0x49c214(0x1e3)]);return new u[(_0x49c214(0x172))](_0x59cb61=>{const _0x1ae8cb=_0x49c214;let _0x37d929=()=>{const _0x1b163d=_0x51b0;let _0x4fe7b4=V(_0x35186f),_0x28a99f=_0x4fe7b4?_0x293e30[_0x1b163d(0x276)](_0x4fe7b4['unitId'],_0x4fe7b4[_0x1b163d(0x388)],_0x4fe7b4[_0x1b163d(0x184)]):null;_0x59cb61[_0x1b163d(0x14d)](_0x28a99f?(0x0,r[_0x1b163d(0x2f8)])(_0x28a99f)??'':'');},_0x4da762=_0x19f240[_0x1ae8cb(0x1be)][_0x1ae8cb(0x35f)](_0x37d929),_0x49af2b=_0x7fcbea['onCommandExecuted'](_0x2dd915=>{const _0x4320c8=_0x1ae8cb;_0x2dd915['id']===i[_0x4320c8(0x2bd)]['id']&&_0x37d929();});return _0x37d929(),()=>{const _0x2af2f3=_0x1ae8cb;_0x4da762[_0x2af2f3(0x36a)](),_0x49af2b[_0x2af2f3(0x2db)]();};});}function V(_0x23bc4a){const _0xd97ef3=_0x22001c;var _0x3ad90a;let _0xdf83af=_0x23bc4a[_0xd97ef3(0x38c)](s['IDrawingManagerService'])[_0xd97ef3(0x42e)]();return _0xdf83af[_0xd97ef3(0x285)]===0x1&&((_0x3ad90a=_0xdf83af[0x0])==null?void 0x0:_0x3ad90a[_0xd97ef3(0x235)])===a[_0xd97ef3(0x2c3)][_0xd97ef3(0x2ef)]?_0xdf83af[0x0]:null;}function H(_0x1205a8,_0x374d51=!0x1){const _0x503a0c=_0x22001c;let _0x50ddc3=_0x1205a8[_0x503a0c(0x38c)](a['ICommandService']),_0x26dcda=_0x1205a8['get'](s[_0x503a0c(0x1a7)]),_0x45f982=_0x1205a8[_0x503a0c(0x38c)](i['SheetsShapeService']);return new u[(_0x503a0c(0x172))](_0x2fd1b0=>{const _0x105764=_0x503a0c;let _0x2b1312=()=>{const _0x5ce804=_0x51b0;let _0x124b0b=V(_0x1205a8);if(!_0x124b0b){_0x2fd1b0['next'](!0x0);return;}let _0x2a7511=_0x45f982[_0x5ce804(0x276)](_0x124b0b[_0x5ce804(0x298)],_0x124b0b['subUnitId'],_0x124b0b[_0x5ce804(0x184)]);_0x2fd1b0['next'](!_0x2a7511||_0x374d51&&_0x2a7511[_0x5ce804(0x2fd)]==null);},_0x57cef4=_0x26dcda[_0x105764(0x1be)]['subscribe'](_0x2b1312),_0x3251e0=_0x50ddc3[_0x105764(0x3a6)](_0x328c74=>{const _0x57b641=_0x105764;_0x328c74['id']===i[_0x57b641(0x2bd)]['id']&&_0x2b1312();});return _0x2b1312(),()=>{const _0x46cfab=_0x105764;_0x57cef4[_0x46cfab(0x36a)](),_0x3251e0[_0x46cfab(0x2db)]();};});}function ze(_0x1412b1){const _0x546065=_0x22001c;let _0x1926bf=_0x1412b1[_0x546065(0x38c)](s[_0x546065(0x1a7)]),_0x41b381=_0x1412b1[_0x546065(0x38c)](i[_0x546065(0x1e3)]);return _0x1926bf['focus$'][_0x546065(0x23c)]((0x0,u['startWith'])(_0x1926bf[_0x546065(0x42e)]()),(0x0,u['map'])(()=>{const _0x525f68=_0x546065;let _0x3d353d=V(_0x1412b1),_0x5e685d=_0x3d353d?_0x41b381[_0x525f68(0x1d4)](_0x3d353d[_0x525f68(0x298)],_0x3d353d['subUnitId'],_0x3d353d[_0x525f68(0x184)]):void 0x0;return _0x5e685d===void 0x0||(0x0,n[_0x525f68(0x1cd)])(_0x5e685d);}));}function Be(_0x242c7c){const _0x5ef104=_0x22001c;return{'id':se['id'],'type':t[_0x5ef104(0x24f)][_0x5ef104(0x220)],'icon':_0x5ef104(0x227),'title':_0x5ef104(0x305),'tooltip':'shape-editor-ui.toolbar.quickStyles','selections':[{'label':{'name':Ce,'hoverable':!0x1,'selectable':!0x1}}],'value$':Re(_0x242c7c),'hidden$':H(_0x242c7c)};}function Ve(_0x1c2c4e){const _0x444894=_0x22001c;return{'id':ce['id'],'type':t[_0x444894(0x24f)][_0x444894(0x220)],'icon':_0x444894(0x1fb),'title':_0x444894(0x40f),'tooltip':_0x444894(0x40f),'slot':!0x0,'selections':[{'label':{'name':e[_0x444894(0x250)],'hoverable':!0x1,'selectable':!0x1}}],'hidden$':ze(_0x1c2c4e)};}function He(_0x49f948,_0x4f345e,_0x268a88=!0x1){const _0x34128a=_0x22001c;return _0x17fefc=>({'id':_0x49f948,'type':t[_0x34128a(0x24f)][_0x34128a(0x16b)],'label':{'name':_0x4f345e,'hoverable':!0x1,'selectable':!0x1},'hidden$':H(_0x17fefc,_0x268a88)});}const Ue=He(je,we),We=He(Me,Te),Ge=He(Ne,Ee,!0x0);function U(_0x1d0e1d,_0x2ebee6,_0x192f68,_0x44190d){const _0x4c36b1=_0x22001c;return _0x1229cb=>({'id':_0x1d0e1d,'commandId':p[_0x4c36b1(0x1fc)]['id'],'type':t[_0x4c36b1(0x24f)][_0x4c36b1(0x16b)],'icon':_0x192f68,'title':_0x44190d,'tooltip':_0x44190d,'hidden$':H(_0x1229cb),'params':()=>{const _0x586b58=_0x4c36b1;let _0x1166f7=V(_0x1229cb);return _0x1166f7?{'unitId':_0x1166f7[_0x586b58(0x298)],'subUnitId':_0x1166f7[_0x586b58(0x388)],'drawingIds':[_0x1166f7[_0x586b58(0x184)]],'arrangeType':_0x2ebee6}:void 0x0;}});}const Ke=U(Pe,a[_0x22001c(0x327)][_0x22001c(0x223)],_0x22001c(0x387),_0x22001c(0x174)),qe=U(Fe,a[_0x22001c(0x327)][_0x22001c(0x32f)],_0x22001c(0x297),_0x22001c(0x149)),Je=U(Ie,a['ArrangeTypeEnum'][_0x22001c(0x3d8)],_0x22001c(0x454),_0x22001c(0x3e8)),Ye=U(Le,a[_0x22001c(0x327)]['back'],_0x22001c(0x140),_0x22001c(0x2f2));function Xe(_0x496495){const _0x3c0491=_0x22001c;return{'id':R['id'],'type':t[_0x3c0491(0x24f)][_0x3c0491(0x16b)],'icon':_0x3c0491(0x384),'title':_0x3c0491(0x228),'tooltip':_0x3c0491(0x228),'hidden$':H(_0x496495),'params':()=>{const _0x34fc69=_0x3c0491;let _0x33194b=V(_0x496495);return _0x33194b?{'unitId':_0x33194b[_0x34fc69(0x298)],'subUnitId':_0x33194b[_0x34fc69(0x388)],'drawingId':_0x33194b['drawingId']}:void 0x0;}};}const Ze={[t['MenuManagerPosition'][_0x22001c(0x1f9)]]:{[L]:{'order':0x64,'title':_0x22001c(0x228),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[se['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Be},[ce['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ve}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[je]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ue}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[Me]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':We}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[_e]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':xe},[ve]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':Se},[Pe]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':Ke},[Fe]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':qe},[Ie]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':Je},[Le]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Ye}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[Ne]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Ge}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[R['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Xe},[e['ToggleShapeFloatingToolbarOperation']['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':e[_0x22001c(0x1df)]}}}}},Qe={[t[_0x22001c(0x40a)][_0x22001c(0x1d2)]]:{[N['id']]:{'order':0x4,'menuItemFactory':he}},[t[_0x22001c(0x40a)]['OTHERS']]:{[ae['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':ge}},[t['ContextMenuPosition']['DRAWING']]:{[t[_0x22001c(0x2e6)][_0x22001c(0x177)]]:{[_e]:{'order':0x4,'menuItemFactory':xe},[ve]:{'order':0x5,'menuItemFactory':Se}}}};var $e=_0x22001c(0x42c),et='1.0.0-insiders.20260809-70eefdd';function _0x51b0(_0x26b036,_0x1de0b3){_0x26b036=_0x26b036-0x12a;const _0x41034a=_0x4103();let _0x51b004=_0x41034a[_0x26b036];return _0x51b004;}const tt={'type':a[_0x22001c(0x344)]['OPERATION'],'id':_0x22001c(0x1ac),'handler'(){return!0x0;}},nt={};function rt(_0x14178e){const _0x549f21=_0x22001c;return _0x14178e[_0x549f21(0x1fd)]()||void 0x0;}function it(_0x21e3b9,_0x1920f9,_0x4c2c6d){const _0x433d50=_0x22001c;var _0x23faad;return((_0x23faad=_0x21e3b9[_0x433d50(0x38e)])==null?void 0x0:_0x23faad[_0x433d50(0x1fd)]())||(0x0,d['getObjectListPanelTypeName'])(_0x4c2c6d,(0x0,e[_0x433d50(0x183)])(_0x21e3b9[_0x433d50(0x235)]))+'\x20'+(_0x1920f9+0x1);}function at(){const _0x2ea5cb=_0x22001c;var _0x3b4e1d;let _0x446afe=(0x0,t[_0x2ea5cb(0x31e)])(a['LocaleService']),_0x7393e6=(0x0,t[_0x2ea5cb(0x31e)])(a[_0x2ea5cb(0x20b)]),_0x3408c6=(0x0,t[_0x2ea5cb(0x31e)])(a['IUniverInstanceService']),_0x52e97b=(0x0,t[_0x2ea5cb(0x31e)])(p[_0x2ea5cb(0x3d6)]),_0x7570da=(0x0,t[_0x2ea5cb(0x31e)])(s[_0x2ea5cb(0x1a7)]),_0x3d2ef3=(0x0,t[_0x2ea5cb(0x31e)])(c[_0x2ea5cb(0x39b)]),[,_0x5609b4]=(0x0,y[_0x2ea5cb(0x3e6)])(_0x4dcf04=>_0x4dcf04+0x1,0x0),_0x2858ab=_0x3408c6[_0x2ea5cb(0x1ea)](a[_0x2ea5cb(0x130)][_0x2ea5cb(0x3ed)]),_0x5c97a2=(_0x2858ab==null?void 0x0:_0x2858ab[_0x2ea5cb(0x33c)]())??'',_0x419129=(_0x2858ab==null||(_0x3b4e1d=_0x2858ab[_0x2ea5cb(0x166)]())==null?void 0x0:_0x3b4e1d['getSheetId']())??'',_0x1cfc2a=(0x0,t[_0x2ea5cb(0x18e)])(()=>_0x7570da[_0x2ea5cb(0x1be)],_0x7570da[_0x2ea5cb(0x42e)](),!0x1,[_0x7570da]);(0x0,y[_0x2ea5cb(0x25b)])(()=>{const _0x1ecf6d=_0x2ea5cb;let _0x1ac343=_0x7393e6[_0x1ecf6d(0x3a6)](()=>_0x5609b4());return()=>_0x1ac343[_0x1ecf6d(0x2db)]();},[_0x7393e6]);let _0x3eb3ad=(0x0,y[_0x2ea5cb(0x423)])(()=>(0x0,d[_0x2ea5cb(0x316)])(_0x446afe),[_0x446afe]),_0x22a9be=_0x5c97a2&&_0x419129?_0x52e97b[_0x2ea5cb(0x390)](_0x5c97a2,_0x419129):{},_0x1cf3e4=(_0x5c97a2&&_0x419129?_0x52e97b[_0x2ea5cb(0x19d)](_0x5c97a2,_0x419129):[])[_0x2ea5cb(0x37a)](_0x94b9d2=>_0x22a9be[_0x94b9d2])['filter'](_0x110a40=>!!_0x110a40)[_0x2ea5cb(0x17e)](),_0x13c45f=_0x1cf3e4[_0x2ea5cb(0x450)]((_0x1c11b3,_0x548f79)=>(_0x1c11b3[(0x0,d['getObjectListPanelSectionIdForDrawingType'])(_0x548f79[_0x2ea5cb(0x235)])]+=0x1,_0x1c11b3),{'canvas':0x0,'floating':0x0}),_0x47dfc8={'canvas':0x0,'floating':0x0},_0x3bd1a9=_0x1cf3e4['map']((_0x2493e0,_0x18e93d)=>{const _0x53743a=_0x2ea5cb;let _0x3fd7ec=(0x0,d[_0x53743a(0x26c)])(_0x2493e0[_0x53743a(0x235)]),_0x1ba15e=_0x3fd7ec===d[_0x53743a(0x3cd)],_0xb5f09f=_0x47dfc8[_0x3fd7ec]++;return{'id':_0x2493e0[_0x53743a(0x184)],'name':it(_0x2493e0,_0x18e93d,_0x446afe),'description':_0x2493e0['description'],'visible':_0x2493e0[_0x53743a(0x142)]!==!0x0,'selectable':_0x2493e0[_0x53743a(0x257)]!==!0x1,'sectionId':_0x3fd7ec,'sectionTitle':_0x1ba15e?_0x3eb3ad[_0x53743a(0x33d)]:_0x3eb3ad[_0x53743a(0x306)],'capabilities':_0x1ba15e?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x1ba15e&&_0xb5f09f>0x0,'canMoveBackward':!_0x1ba15e&&_0xb5f09f<_0x13c45f[_0x53743a(0x136)]-0x1,'canReorder':!_0x1ba15e};}),_0x1f739a=(0x0,y[_0x2ea5cb(0x423)])(()=>(_0x1cfc2a??[])[_0x2ea5cb(0x1db)](_0x3699b8=>_0x3699b8[_0x2ea5cb(0x298)]===_0x5c97a2&&_0x3699b8[_0x2ea5cb(0x388)]===_0x419129)[_0x2ea5cb(0x37a)](_0x2d0ff0=>_0x2d0ff0[_0x2ea5cb(0x184)]),[_0x1cfc2a,_0x419129,_0x5c97a2]),_0x55962f=_0x1f739a[_0x1f739a[_0x2ea5cb(0x285)]-0x1]??null,_0x935974=_0x3d9d69=>_0x52e97b[_0x2ea5cb(0x29f)]({'unitId':_0x5c97a2,'subUnitId':_0x419129,'drawingId':_0x3d9d69})??null,_0x3609b0=async _0x4be4e0=>{const _0x5c27d7=_0x2ea5cb;!_0x5c97a2||!_0x4be4e0['length']||await _0x7393e6['executeCommand'](p[_0x5c27d7(0x45c)]['id'],{'unitId':_0x5c97a2,'drawings':_0x4be4e0});},_0x5914fb=async(_0x218be2,_0x29b272)=>{_0x935974(_0x218be2)&&await _0x3609b0([{'unitId':_0x5c97a2,'subUnitId':_0x419129,'drawingId':_0x218be2,..._0x29b272}]);},_0xeef6f9=(_0x244b8f,_0x5e5cfe)=>{const _0x175825=_0x2ea5cb;if(!_0x5c97a2||!_0x419129)return;let _0x2d78a9=_0x5e5cfe?_0x1f739a[_0x175825(0x222)](_0x244b8f)?_0x1f739a[_0x175825(0x1db)](_0x117e43=>_0x117e43!==_0x244b8f):[..._0x1f739a,_0x244b8f]:[_0x244b8f];_0x7393e6['syncExecuteCommand'](s[_0x175825(0x1ef)]['id'],_0x2d78a9[_0x175825(0x37a)](_0x4e1e67=>({'unitId':_0x5c97a2,'subUnitId':_0x419129,'drawingId':_0x4e1e67})));let _0x13a369=_0x2d78a9[_0x2d78a9['length']-0x1];_0x13a369?(0x0,e['activateDrawingObject'])(_0x3d2ef3,{'unitId':_0x5c97a2,'subUnitId':_0x419129,'drawingId':_0x13a369}):(0x0,e[_0x175825(0x13b)])(_0x3d2ef3,_0x5c97a2);},_0x3764e1=async(_0x317a77,_0x53afef)=>{const _0x43a901=_0x2ea5cb;await _0x3609b0(_0x317a77[_0x43a901(0x37a)](_0x59c01a=>_0x935974(_0x59c01a))['filter'](_0x509bfe=>!!_0x509bfe)['filter'](_0x43eec9=>_0x43eec9[_0x43a901(0x142)]!==!0x0!==_0x53afef)['map'](_0xa045d1=>({'unitId':_0x5c97a2,'subUnitId':_0x419129,'drawingId':_0xa045d1[_0x43a901(0x184)],'hidden':!_0x53afef})));},_0xf35ca9=async _0x1db40f=>{const _0x357913=_0x2ea5cb;let _0xc59543=_0x935974(_0x1db40f);_0xc59543&&await _0x5914fb(_0x1db40f,{'selectable':_0xc59543[_0x357913(0x257)]===!0x1&&void 0x0});},_0x5a5a6f=async(_0x5552f0,_0x4eb15c)=>{const _0x19f9d7=_0x2ea5cb;var _0x2fb9c1;let _0xdf1d08=rt(_0x4eb15c);(((_0x2fb9c1=_0x935974(_0x5552f0))==null?void 0x0:_0x2fb9c1[_0x19f9d7(0x38e)])??void 0x0)!==_0xdf1d08&&await _0x5914fb(_0x5552f0,{'name':_0xdf1d08});},_0x371135=async(_0x1604fb,_0x3a7932)=>{const _0x114dd8=_0x2ea5cb;var _0x4dff12;let _0xd7ebdb=rt(_0x3a7932);(((_0x4dff12=_0x935974(_0x1604fb))==null?void 0x0:_0x4dff12[_0x114dd8(0x2ad)])??void 0x0)!==_0xd7ebdb&&await _0x5914fb(_0x1604fb,{'description':_0xd7ebdb});},_0x40820c=async(_0x1721f2,_0x321eb1)=>{const _0x4094f8=_0x2ea5cb;!_0x5c97a2||!_0x419129||await _0x7393e6[_0x4094f8(0x404)](p[_0x4094f8(0x1fc)]['id'],{'unitId':_0x5c97a2,'subUnitId':_0x419129,'drawingIds':[_0x1721f2],'arrangeType':_0x321eb1});};return!_0x5c97a2||!_0x419129?(0x0,f[_0x2ea5cb(0x311)])(_0x2ea5cb(0x146),{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x3eb3ad[_0x2ea5cb(0x3ff)]}):(0x0,f[_0x2ea5cb(0x311)])(d[_0x2ea5cb(0x279)],{'items':_0x3bd1a9,'selectedIds':_0x1f739a,'focusedId':_0x55962f,'labels':_0x3eb3ad,'onSelect':_0xeef6f9,'onSetVisible':_0x3764e1,'onCommitName':_0x5a5a6f,'onCommitDescription':_0x371135,'onMoveForward':async _0x3d96a7=>_0x40820c(_0x3d96a7,a[_0x2ea5cb(0x327)][_0x2ea5cb(0x223)]),'onMoveBackward':async _0x48dffa=>_0x40820c(_0x48dffa,a[_0x2ea5cb(0x327)][_0x2ea5cb(0x32f)]),'onToggleSelectable':_0xf35ca9});}let W=class{constructor(_0xe55574){const _0x158365=_0x22001c;this[_0x158365(0x3f8)]=_0xe55574;}[_0x22001c(0x319)](_0x2ccddb,_0x4d7479){const _0x261b64=_0x22001c;let _0x49df6d=this[_0x261b64(0x3f8)][_0x261b64(0x355)](_0x2ccddb[_0x261b64(0x298)]),_0x3ecd85=_0x49df6d==null?void 0x0:_0x49df6d[_0x261b64(0x448)];if(!_0x3ecd85)return;let _0x3c802f=(0x0,s[_0x261b64(0x1f0)])(_0x2ccddb),_0x206476=_0x3ecd85[_0x261b64(0x3e5)](_0x3c802f);_0x206476==null||_0x206476[_0x261b64(0x1e5)](_0x4d7479);}};W=k([O(0x0,c[_0x22001c(0x39b)])],W);function ot(){const _0x257454=_0x22001c;let _0xe33d63=(0x0,t[_0x257454(0x31e)])(s['IDrawingManagerService']),_0x561b55=(0x0,t[_0x257454(0x18e)])(()=>_0xe33d63['focus$'],_0xe33d63[_0x257454(0x42e)](),!0x1,[_0xe33d63]);return _0x561b55[_0x257454(0x285)]===0x0?null:(0x0,f[_0x257454(0x311)])(_0x257454(0x146),{'children':(0x0,f[_0x257454(0x2fc)])(_0x257454(0x146),{'className':_0x257454(0x399),'children':[(0x0,f[_0x257454(0x311)])(d[_0x257454(0x2e3)],{'drawings':_0x561b55,'hasCropper':!0x1}),(0x0,f[_0x257454(0x311)])(_[_0x257454(0x1aa)],{'drawings':_0x561b55})]})});}function st(_0x383a50){const _0x23c9dd=_0x22001c;let {unitId:_0x466fb4,subUnitId:_0x2b9fe1,shapeId:_0x2e1ecd}=_0x383a50,_0x2ad95b=(0x0,t['useDependency'])(a[_0x23c9dd(0x20b)]),_0x29a1c7=(0x0,t[_0x23c9dd(0x31e)])(W);return(0x0,f[_0x23c9dd(0x311)])(e['ShapeEditPanel'],{..._0x383a50,'positionEditor':(0x0,f[_0x23c9dd(0x311)])(ot,{}),'onUpdateShapeData':(_0x2e75c5,_0x52d821)=>{S(_0x2ad95b,_0x466fb4,_0x2b9fe1,_0x2e1ecd,_0x2e75c5,_0x52d821);},'onUpdateLineShapeData':(_0x227ea1,_0x4fa93a)=>{C(_0x2ad95b,_0x466fb4,_0x2b9fe1,_0x2e1ecd,_0x227ea1,_0x4fa93a);},'onUpdateShapeFillImage':_0x305ff2=>{const _0x427d9d=_0x23c9dd;_0x29a1c7[_0x427d9d(0x319)]({'unitId':_0x466fb4,'subUnitId':_0x2b9fe1,'drawingId':_0x2e1ecd},_0x305ff2);}});}function ct(_0x344a1c){const _0x13426d=_0x22001c;let _0x5b7a52=(0x0,t[_0x13426d(0x31e)])(e['ShapeFloatingToolbarService']),_0x5ddb11=(0x0,t[_0x13426d(0x18e)])(()=>_0x5b7a52[_0x13426d(0x15f)],_0x5b7a52[_0x13426d(0x2c5)](),!0x1,[_0x5b7a52]),_0x3b1273=_0x344a1c['popup'][_0x13426d(0x34f)];return!_0x3b1273||!_0x5ddb11?null:(0x0,f[_0x13426d(0x311)])(lt,{..._0x3b1273,'canvasElement':_0x344a1c[_0x13426d(0x3a4)][_0x13426d(0x221)]});}function lt(_0x754e79){const _0xa0c8f6=_0x22001c;let _0x3dc206=(0x0,t[_0xa0c8f6(0x31e)])(a[_0xa0c8f6(0x20b)]),_0x480755=(0x0,t[_0xa0c8f6(0x31e)])(i['SheetsShapeService']),{unitId:_0x248567,subUnitId:_0x1d2d01,drawingId:_0x422d43,drawingType:_0x38bab9,shapeType:_0x230ad6}=_0x754e79,[_0x59c895,_0x3a4cc8]=(0x0,y[_0xa0c8f6(0x1b1)])(_0x754e79[_0xa0c8f6(0x150)]),_0x3a0333=(0x0,y[_0xa0c8f6(0x423)])(()=>(0x0,e[_0xa0c8f6(0x1e7)])(_0x59c895),[_0x59c895]),_0x4506a9=(0x0,y[_0xa0c8f6(0x423)])(()=>(0x0,e[_0xa0c8f6(0x12b)])(_0x59c895),[_0x59c895]);(0x0,y['useEffect'])(()=>{const _0x120bea=_0xa0c8f6;let _0x2a1665=_0x3dc206[_0x120bea(0x3a6)](_0x223b22=>{const _0x3a48c9=_0x120bea;if(_0x223b22['id']!==i[_0x3a48c9(0x2bd)]['id'])return;let _0x51c1c8=_0x480755[_0x3a48c9(0x276)](_0x248567,_0x1d2d01,_0x422d43);_0x51c1c8&&_0x3a4cc8(_0x51c1c8);});return()=>_0x2a1665[_0x120bea(0x2db)]();},[_0x3dc206,_0x422d43,_0x480755,_0x1d2d01,_0x248567]);let _0x46f26a=_0x32c9b7=>{_0x3a4cc8(_0x2cb733=>({..._0x2cb733,..._0x32c9b7}));},_0x170f51=_0x50d01a=>{const _0x5adb47=_0xa0c8f6;let _0x4b1fa3=(0x0,e[_0x5adb47(0x1a1)])(_0x59c895,_0x50d01a);S(_0x3dc206,_0x248567,_0x1d2d01,_0x422d43,{'oldShapeData':{'shapeText':_0x59c895[_0x5adb47(0x19b)]}},_0x4b1fa3),_0x46f26a(_0x4b1fa3);},_0x280b5a=(0x0,e[_0xa0c8f6(0x30a)])({'hostType':a['UniverInstanceType'][_0xa0c8f6(0x3ed)],'unitId':_0x248567,'subUnitId':_0x1d2d01,'shapeId':_0x422d43,'shapeData':_0x59c895,'onUpdateBinding':_0x422ecb=>{const _0x545d0d=_0xa0c8f6;let _0x8d0c2d={'formulaBinding':_0x422ecb};S(_0x3dc206,_0x248567,_0x1d2d01,_0x422d43,{'oldShapeData':{'formulaBinding':_0x59c895[_0x545d0d(0x2fd)]}},_0x8d0c2d),_0x46f26a(_0x8d0c2d);}});return(0x0,f[_0xa0c8f6(0x2fc)])(f[_0xa0c8f6(0x34c)],{'children':[(0x0,f['jsx'])(e[_0xa0c8f6(0x241)],{'canvasElement':_0x754e79[_0xa0c8f6(0x221)],'shapeData':_0x59c895,'shapeType':_0x230ad6,'textStyle':{'ff':n['ShapeDefaultConfig'][_0xa0c8f6(0x19b)]['fontFamily'],'fs':n[_0xa0c8f6(0x41f)][_0xa0c8f6(0x19b)][_0xa0c8f6(0x144)],'cl':{'rgb':n['ShapeDefaultConfig'][_0xa0c8f6(0x19b)]['color']},..._0x3a0333},'textModel':_0x4506a9?{'ha':_0x4506a9['ha']??a[_0xa0c8f6(0x240)][_0xa0c8f6(0x2b3)],'va':_0x4506a9['va']??a[_0xa0c8f6(0x44a)]['TOP']}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':n[_0xa0c8f6(0x41f)][_0xa0c8f6(0x24b)],'defaultGradientEndColor':n[_0xa0c8f6(0x41f)][_0xa0c8f6(0x3dd)],'defaultStrokeColor':n[_0xa0c8f6(0x41f)][_0xa0c8f6(0x33a)],'extensionGroups':_0x280b5a[_0xa0c8f6(0x315)],'onUpdateShapeData':(_0x444e95,_0x65849d)=>{S(_0x3dc206,_0x248567,_0x1d2d01,_0x422d43,_0x444e95,_0x65849d),_0x65849d&&_0x46f26a(_0x65849d);},'onUpdateText':_0x170f51,'onOpenPanel':()=>{const _0x238274=_0xa0c8f6;_0x3dc206[_0x238274(0x404)](R['id'],{'unitId':_0x248567,'subUnitId':_0x1d2d01,'drawingId':_0x422d43});},'onDelete':()=>{const _0x845a31=_0xa0c8f6;_0x3dc206[_0x845a31(0x404)](p['RemoveSheetDrawingCommand']['id'],{'unitId':_0x248567,'drawings':[{'unitId':_0x248567,'subUnitId':_0x1d2d01,'drawingId':_0x422d43,'drawingType':_0x38bab9}]});}}),_0x280b5a[_0xa0c8f6(0x22a)]]});}var G=class extends a[_0x22001c(0x35c)]{constructor(..._0x5c2b48){const _0x61a0c=_0x22001c;super(..._0x5c2b48),T(this,'_editingParams$',new u['BehaviorSubject'](null)),T(this,'editingParams$',this[_0x61a0c(0x274)][_0x61a0c(0x2c7)]()),T(this,_0x61a0c(0x243),new u[(_0x61a0c(0x2ec))](!0x1)),T(this,'onSavingEditorData$',this[_0x61a0c(0x243)]['asObservable']());}[_0x22001c(0x2db)](){const _0x27324d=_0x22001c;this[_0x27324d(0x274)][_0x27324d(0x14d)](null),this[_0x27324d(0x274)][_0x27324d(0x2eb)](),this['_onSavingEditorData$'][_0x27324d(0x14d)](!0x1),this[_0x27324d(0x243)]['complete'](),super[_0x27324d(0x2db)]();}[_0x22001c(0x23f)](_0x310159){const _0x10984d=_0x22001c;this[_0x10984d(0x274)][_0x10984d(0x14d)](_0x310159),_0x310159??this['_onSavingEditorData$'][_0x10984d(0x14d)](!0x1);}[_0x22001c(0x253)](_0x3beb72){const _0x29fca5=_0x22001c;this[_0x29fca5(0x243)][_0x29fca5(0x14d)](_0x3beb72);}[_0x22001c(0x2b0)](){const _0x27ef5c=_0x22001c;return this[_0x27ef5c(0x274)]['getValue']();}[_0x22001c(0x440)](_0x3daa7a){const _0x4a55c4=_0x22001c;this[_0x4a55c4(0x2b0)]()&&(this[_0x4a55c4(0x253)](!0x0),requestAnimationFrame(()=>{const _0x4da0aa=_0x4a55c4;this[_0x4da0aa(0x23f)](null);}));}[_0x22001c(0x44f)](){const _0x5d80b6=_0x22001c;this[_0x5d80b6(0x2b0)]()&&this[_0x5d80b6(0x23f)](null);}};const ut=(0x0,y[_0x22001c(0x39e)])(()=>{const _0x45a31a=_0x22001c;let _0x4137ec=(0x0,t[_0x45a31a(0x31e)])(G),_0x5cd0f8=(0x0,t['useDependency'])(i[_0x45a31a(0x1e3)]),_0x314ff6=(0x0,t['useDependency'])(s[_0x45a31a(0x1a7)]),_0x2d3d5b=(0x0,t[_0x45a31a(0x31e)])(a['ICommandService']),_0x1346f4=(0x0,t[_0x45a31a(0x31e)])(c[_0x45a31a(0x39b)]);return(0x0,f[_0x45a31a(0x311)])(e[_0x45a31a(0x19f)],{'adapter':(0x0,y[_0x45a31a(0x423)])(()=>({'getShapeModel':(_0x5f0327,_0x494982,_0x30a1e5)=>_0x5cd0f8[_0x45a31a(0x44e)](_0x5f0327,_0x494982,_0x30a1e5),'getShapeData':(_0x496e44,_0x17fbd4,_0x534325)=>_0x5cd0f8['getShapeDataById'](_0x496e44,_0x17fbd4,_0x534325),'getDrawingTransform':(_0x334fbb,_0xc4476e,_0x42d1f2)=>{const _0x4f2ef4=_0x45a31a;let _0x45499a=_0x314ff6[_0x4f2ef4(0x29f)]({'unitId':_0x334fbb,'subUnitId':_0xc4476e,'drawingId':_0x42d1f2});return _0x45499a==null?void 0x0:_0x45499a[_0x4f2ef4(0x20f)];},'updateShapeText':({unitId:_0x15cef3,subUnitId:_0x5938b4,shapeId:_0x323a14,shapeText:_0x1bf5d3,oldShapeText:_0x28bb3c})=>{const _0x4d7d49=_0x45a31a;_0x2d3d5b[_0x4d7d49(0x404)](x['id'],{'unitId':_0x15cef3,'subUnitId':_0x5938b4,'shapeId':_0x323a14,'shapeData':{'shapeText':_0x1bf5d3},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x28bb3c}}});},'updateHostSize':({unitId:_0x2f6c92,subUnitId:_0x140bb4,shapeId:_0x3b68d7,width:_0xb7204d,height:_0x1919bb})=>{const _0x1028ad=_0x45a31a;var _0x4b836d;let _0x3ce692=_0x314ff6[_0x1028ad(0x29f)]({'unitId':_0x2f6c92,'subUnitId':_0x140bb4,'drawingId':_0x3b68d7}),_0x260b1f=_0x3ce692==null?void 0x0:_0x3ce692[_0x1028ad(0x20f)];if(!_0x3ce692||!_0x260b1f)return;let _0x88c4a={..._0x260b1f,'width':_0xb7204d,'height':_0x1919bb},_0x30474d=(_0x4b836d=_0x1346f4[_0x1028ad(0x355)](_0x2f6c92))==null||(_0x4b836d=_0x4b836d[_0x1028ad(0x462)](l[_0x1028ad(0x13a)])[_0x1028ad(0x2a7)](_0x140bb4))==null?void 0x0:_0x4b836d[_0x1028ad(0x1bc)],_0x2c1163=_0x30474d?(0x0,p[_0x1028ad(0x1cc)])(_0x88c4a,_0x30474d)??_0x3ce692[_0x1028ad(0x1fe)]:_0x3ce692[_0x1028ad(0x1fe)],_0x49037d=_0x30474d?(0x0,p[_0x1028ad(0x145)])(_0x88c4a,_0x30474d)??_0x3ce692[_0x1028ad(0x3e2)]:_0x3ce692[_0x1028ad(0x3e2)];_0x2d3d5b['executeCommand'](p[_0x1028ad(0x45c)]['id'],{'unitId':_0x2f6c92,'drawings':[{..._0x3ce692,'transform':_0x88c4a,'sheetTransform':_0x2c1163,'axisAlignSheetTransform':_0x49037d}]});},'allowHostSizeShrink':({unitId:_0x1e6393,subUnitId:_0x4b917c,shapeId:_0x2ad2ce})=>(0x0,e[_0x45a31a(0x3e7)])(_0x5cd0f8[_0x45a31a(0x276)](_0x1e6393,_0x4b917c,_0x2ad2ce))}),[_0x2d3d5b,_0x314ff6,_0x1346f4,_0x5cd0f8]),'editingService':_0x4137ec,'editorUnitId':re,'positionOptions':(0x0,y[_0x45a31a(0x423)])(()=>({'viewportKeys':{'main':c['SHEET_VIEWPORT_KEY'][_0x45a31a(0x190)],'leftTop':c['SHEET_VIEWPORT_KEY'][_0x45a31a(0x1f3)],'top':c['SHEET_VIEWPORT_KEY'][_0x45a31a(0x443)],'left':c[_0x45a31a(0x268)][_0x45a31a(0x1d5)]},'getSkeleton':(_0x5266b5,_0x57beeb)=>{const _0x1f456f=_0x45a31a;var _0x12da20;return((_0x12da20=_0x5266b5['with'](l[_0x1f456f(0x13a)])[_0x1f456f(0x2a7)](_0x57beeb['subUnitId']))==null?void 0x0:_0x12da20['skeleton'])??null;}}),[])});});let K=class extends a['Disposable']{constructor(_0x2c0220,_0x2367a3){const _0x1e9f65=_0x22001c;super(),this[_0x1e9f65(0x24d)]=_0x2c0220,this[_0x1e9f65(0x2f7)]=_0x2367a3,this[_0x1e9f65(0x37d)](),this[_0x1e9f65(0x199)]();}['_registerIcons'](){const _0x52aaf5=_0x22001c;this['_iconManager'][_0x52aaf5(0x2ee)](_0x52aaf5(0x44c))||this[_0x52aaf5(0x304)](this[_0x52aaf5(0x2f7)][_0x52aaf5(0x233)]({'ObjectLayersIcon':v[_0x52aaf5(0x44c)]})),this['_iconManager'][_0x52aaf5(0x2ee)]('FlipHorizontalIcon')||this[_0x52aaf5(0x304)](this['_iconManager'][_0x52aaf5(0x233)]({'FlipHorizontalIcon':v[_0x52aaf5(0x2ba)]})),this[_0x52aaf5(0x2f7)]['has'](_0x52aaf5(0x3db))||this[_0x52aaf5(0x304)](this[_0x52aaf5(0x2f7)][_0x52aaf5(0x233)]({'FlipVerticalIcon':v[_0x52aaf5(0x3db)]})),this[_0x52aaf5(0x2f7)]['has'](_0x52aaf5(0x140))||this[_0x52aaf5(0x304)](this[_0x52aaf5(0x2f7)][_0x52aaf5(0x233)]({'BottomIcon':v['BottomIcon']})),this[_0x52aaf5(0x2f7)]['has'](_0x52aaf5(0x297))||this[_0x52aaf5(0x304)](this[_0x52aaf5(0x2f7)][_0x52aaf5(0x233)]({'MoveDownIcon':v[_0x52aaf5(0x297)]})),this[_0x52aaf5(0x2f7)][_0x52aaf5(0x2ee)](_0x52aaf5(0x387))||this[_0x52aaf5(0x304)](this[_0x52aaf5(0x2f7)][_0x52aaf5(0x233)]({'MoveUpIcon':v[_0x52aaf5(0x387)]})),this['_iconManager'][_0x52aaf5(0x2ee)]('ShapeFormatSettingIcon')||this[_0x52aaf5(0x304)](this[_0x52aaf5(0x2f7)][_0x52aaf5(0x233)]({'ShapeFormatSettingIcon':v[_0x52aaf5(0x384)]})),this[_0x52aaf5(0x2f7)]['has'](_0x52aaf5(0x454))||this[_0x52aaf5(0x304)](this[_0x52aaf5(0x2f7)][_0x52aaf5(0x233)]({'TopmostIcon':v[_0x52aaf5(0x454)]}));}[_0x22001c(0x199)](){const _0x1b8ade=_0x22001c;this[_0x1b8ade(0x304)](this[_0x1b8ade(0x24d)][_0x1b8ade(0x233)](P,st)),this['disposeWithMe'](this[_0x1b8ade(0x24d)][_0x1b8ade(0x233)](F,at)),this[_0x1b8ade(0x304)](this[_0x1b8ade(0x24d)]['register'](le,me)),this[_0x1b8ade(0x304)](this[_0x1b8ade(0x24d)][_0x1b8ade(0x233)](ue,fe)),this[_0x1b8ade(0x24d)][_0x1b8ade(0x38c)](d[_0x1b8ade(0x459)])||this['disposeWithMe'](this[_0x1b8ade(0x24d)][_0x1b8ade(0x233)](d['IMAGE_CLIP_SHAPE_PICKER_COMPONENT'],pe)),this[_0x1b8ade(0x304)](this[_0x1b8ade(0x24d)][_0x1b8ade(0x233)](I,ct)),this['disposeWithMe'](this[_0x1b8ade(0x24d)][_0x1b8ade(0x233)](we,De)),this[_0x1b8ade(0x304)](this[_0x1b8ade(0x24d)][_0x1b8ade(0x233)](Ce,Oe)),this[_0x1b8ade(0x304)](this[_0x1b8ade(0x24d)][_0x1b8ade(0x233)](Te,ke)),this[_0x1b8ade(0x304)](this[_0x1b8ade(0x24d)][_0x1b8ade(0x233)](Ee,Ae)),this[_0x1b8ade(0x304)](this[_0x1b8ade(0x24d)][_0x1b8ade(0x233)](ie,e['ShapeTextFloatToolbar'])),this['disposeWithMe'](this[_0x1b8ade(0x24d)][_0x1b8ade(0x233)](_0x1b8ade(0x2e5),ut));}};K=k([O(0x0,(0x0,a[_0x22001c(0x299)])(t[_0x22001c(0x3fa)])),O(0x1,(0x0,a[_0x22001c(0x299)])(t['IconManager']))],K);let dt=class extends a[_0x22001c(0x35c)]{constructor(_0x530d7f,_0x1bfd3e,_0x18e69c,_0x297cea,_0x23e461){const _0x17b61e=_0x22001c;super(),this[_0x17b61e(0x3ee)]=_0x530d7f,this['_drawingManagerService']=_0x1bfd3e,this[_0x17b61e(0x3f8)]=_0x18e69c,this[_0x17b61e(0x2d0)]=_0x297cea,this[_0x17b61e(0x237)]=_0x23e461,T(this,_0x17b61e(0x1d0),null),T(this,'_unitId',null),T(this,_0x17b61e(0x397),null),T(this,_0x17b61e(0x376),void 0x0),T(this,_0x17b61e(0x420),[]),T(this,_0x17b61e(0x3f5),0x0),T(this,_0x17b61e(0x3d2),0x0),T(this,_0x17b61e(0x2f1),0x0),T(this,_0x17b61e(0x3f7),0x0),T(this,_0x17b61e(0x364),!0x1),T(this,_0x17b61e(0x3c8),void 0x0),T(this,'_activeShapeModel',void 0x0),T(this,_0x17b61e(0x339),void 0x0),T(this,_0x17b61e(0x188),void 0x0),T(this,_0x17b61e(0x382),!0x1),this[_0x17b61e(0x178)](),this[_0x17b61e(0x334)]();}['clearAdjustControls'](){this['_clearControls']();}['refreshAdjustControls'](){const _0x1cc639=_0x22001c;this[_0x1cc639(0x22e)](),this[_0x1cc639(0x2c9)](!0x0);}[_0x22001c(0x18a)](_0x40ddd5,_0x350c95,_0x38e891,_0x3dee70){const _0x49a1f4=_0x22001c;let _0x26151b=_0x40ddd5;if(_0x26151b!==n[_0x49a1f4(0x225)][_0x49a1f4(0x179)]&&_0x40ddd5!=='custom')try{let _0x5c3593=new n[(_0x49a1f4(0x23e))](_0x26151b,_0x49a1f4(0x1e8)+_0x40ddd5);return _0x3dee70&&_0x5c3593[_0x49a1f4(0x273)]({'adjustValues':_0x3dee70},!0x0),_0x5c3593[_0x49a1f4(0x2c1)]({'width':_0x350c95,'height':_0x38e891}),_0x5c3593;}catch{return;}}[_0x22001c(0x35e)](_0xcb37f,_0x263d81,_0x7f32c3){const _0x36f1b4=_0x22001c;let _0x52381f={'unitId':_0xcb37f,'subUnitId':_0x263d81,'drawingId':_0x7f32c3},_0x3c7cc8=this[_0x36f1b4(0x17b)][_0x36f1b4(0x29f)](_0x52381f);if(!(!_0x3c7cc8||_0x3c7cc8['drawingType']!==a[_0x36f1b4(0x2c3)]['DRAWING_IMAGE']))return _0x3c7cc8;}[_0x22001c(0x25f)](_0x3a604c,_0x35ee8c,_0x2b3ed2){const _0x37e685=_0x22001c;let _0x456eee=this['_renderManagerService'][_0x37e685(0x355)](_0x3a604c);if(!_0x456eee)return;let {scene:_0x1007bd}=_0x456eee,_0x1ae917=(0x0,s[_0x37e685(0x1f0)])({'unitId':_0x3a604c,'subUnitId':_0x35ee8c,'drawingId':_0x2b3ed2}),_0x28491c=_0x1007bd[_0x37e685(0x290)](_0x1ae917);if(_0x28491c instanceof c['Image']){let _0x4dbce3=_0x28491c['prstGeom'];if(_0x4dbce3)return{'prstGeom':_0x4dbce3,'adjustValues':_0x28491c[_0x37e685(0x36f)]};}}[_0x22001c(0x2c9)](_0x2a03b3=!0x1){const _0x312b4e=_0x22001c;if(!this[_0x312b4e(0x296)]||!this['_subUnitId']||!this[_0x312b4e(0x1d0)])return;let _0x81c815=this[_0x312b4e(0x3f8)]['getRenderUnitById'](this[_0x312b4e(0x296)]);if(!_0x81c815||!_0x81c815[_0x312b4e(0x462)](l['SheetSkeletonManagerService'])[_0x312b4e(0x2ab)]())return;let {scene:_0x11c9aa}=_0x81c815,_0x1bfb07=this[_0x312b4e(0x35e)](this[_0x312b4e(0x296)],this['_subUnitId'],this['_activeImageId']);if(!_0x1bfb07)return;let {transform:_0x249625}=_0x1bfb07;if(!_0x249625)return;let {left:_0x37a3f4,top:_0x25ba40,width:_0x5c01ce,height:_0x204f14,flipX:_0x61cfa4,flipY:_0x1dae86,angle:_0x406f35=0x0}=_0x249625;if(_0x37a3f4===void 0x0||_0x25ba40===void 0x0)return;let _0x2d9a55=this[_0x312b4e(0x25f)](this[_0x312b4e(0x296)],this[_0x312b4e(0x397)],this[_0x312b4e(0x1d0)]);if(!_0x2d9a55)return;if(_0x2a03b3){let _0x52a6d7=this['_getOrCreateShapeModel'](_0x2d9a55['prstGeom'],_0x5c01ce||0x0,_0x204f14||0x0,_0x2d9a55[_0x312b4e(0x461)]);if(!_0x52a6d7)return;this['_activeAdjustPointList']=_0x52a6d7['getDrawingPoints']();}let _0x175b00=this[_0x312b4e(0x376)];if(!(!_0x175b00||_0x175b00['length']===0x0))for(let _0x1b205c=0x0;_0x1b205c<_0x175b00[_0x312b4e(0x285)];_0x1b205c++){let _0x5e269e=_0x175b00[_0x1b205c],_0x480cd8=_0x5e269e['x'],_0xce034f=_0x5e269e['y'];if(_0x61cfa4&&(_0x480cd8=(_0x5c01ce||0x0)-_0x480cd8),_0x1dae86&&(_0xce034f=(_0x204f14||0x0)-_0xce034f),_0x406f35!==0x0){let _0x2a8d41=(_0x5c01ce||0x0)/0x2,_0xb56de1=(_0x204f14||0x0)/0x2,_0x6a2623=_0x406f35*Math['PI']/0xb4,_0x3e6025=Math[_0x312b4e(0x442)](_0x6a2623),_0x17ca4e=Math['sin'](_0x6a2623),_0x268c66=_0x480cd8-_0x2a8d41,_0x4bafe1=_0xce034f-_0xb56de1;_0x480cd8=_0x2a8d41+(_0x268c66*_0x3e6025-_0x4bafe1*_0x17ca4e),_0xce034f=_0xb56de1+(_0x268c66*_0x17ca4e+_0x4bafe1*_0x3e6025);}let _0x47aeb9={'x':_0x480cd8,'y':_0xce034f,'adjName':_0x5e269e[_0x312b4e(0x226)]};this[_0x312b4e(0x156)](_0x11c9aa,_0x47aeb9,_0x47aeb9['adjName'],_0x37a3f4,_0x25ba40,this[_0x312b4e(0x296)],this[_0x312b4e(0x397)]);}}[_0x22001c(0x156)](_0x142d3d,_0x5df6c2,_0x373fb7,_0x387ebc,_0x176826,_0x25bb05,_0x39a75c){const _0x2b0731=_0x22001c;if(!this[_0x2b0731(0x1d0)])return;let _0x7ddcda=_0x2b0731(0x258)+this['_activeImageId']+'-'+_0x373fb7,_0x30173a=_0x142d3d['getObjectIncludeInGroup'](_0x7ddcda);if(_0x30173a){_0x30173a[_0x2b0731(0x359)]({'left':_0x5df6c2['x']+_0x387ebc-n['ShapeDefaultConfig']['adjHandleSize'],'top':_0x5df6c2['y']+_0x176826-n[_0x2b0731(0x41f)][_0x2b0731(0x14e)]});return;}let _0x3ab380=new D(_0x7ddcda,{'left':_0x5df6c2['x']+_0x387ebc-n['ShapeDefaultConfig'][_0x2b0731(0x14e)],'top':_0x5df6c2['y']+_0x176826-n[_0x2b0731(0x41f)][_0x2b0731(0x14e)],'adjName':_0x373fb7,'shapeId':this['_activeImageId'],'unitId':_0x25bb05,'subUnitId':_0x39a75c,'width':n[_0x2b0731(0x41f)]['adjHandleSize']+0x8,'height':n[_0x2b0731(0x41f)][_0x2b0731(0x14e)]+0x8,'zIndex':c['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0});this['_shapes'][_0x2b0731(0x2f0)](_0x3ab380),this[_0x2b0731(0x12a)](_0x3ab380,_0x142d3d,_0x373fb7),_0x142d3d['addObject'](_0x3ab380,c['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x22001c(0x22e)](){const _0x2370fa=_0x22001c;this[_0x2370fa(0x420)][_0x2370fa(0x285)]!==0x0&&(this[_0x2370fa(0x420)][_0x2370fa(0x1dc)](_0x1c7a5e=>_0x1c7a5e[_0x2370fa(0x2db)]()),this[_0x2370fa(0x420)]=[]);}[_0x22001c(0x41b)](_0x1c013b,_0x23dcc0){const _0x4d454b=_0x22001c;var _0x174c6f;let _0x446273={'x':0x0,'y':0x0},_0x4ea14b=this['_renderManagerService']['getRenderUnitById'](_0x1c013b);if(!_0x4ea14b||!_0x4ea14b[_0x4d454b(0x462)](l['SheetSkeletonManagerService'])[_0x4d454b(0x358)](_0x23dcc0))return _0x446273;let _0x3956e5=_0x4ea14b[_0x4d454b(0x462)](l[_0x4d454b(0x2b7)]),_0x534648=_0x3956e5==null?void 0x0:_0x3956e5[_0x4d454b(0x1c3)]();if(!_0x534648)return _0x446273;let _0x21a6a5=(_0x174c6f=this[_0x4d454b(0x2d0)][_0x4d454b(0x32d)](_0x1c013b))==null?void 0x0:_0x174c6f['getSheetBySheetId'](_0x23dcc0);if(!_0x21a6a5)return _0x446273;let _0x44c64b=(0x0,l[_0x4d454b(0x192)])(_0x534648[_0x4d454b(0x1e0)],_0x534648['sheetViewStartColumn'],_0x4ea14b['scene'],_0x21a6a5);return _0x44c64b?{'x':_0x44c64b['viewportScrollX'],'y':_0x44c64b[_0x4d454b(0x463)]}:_0x446273;}[_0x22001c(0x194)](_0x32ef01,_0xb5ae75){const _0x17c69d=_0x22001c;var _0x2af8e8;let _0x3d0772=(_0x2af8e8=this[_0x17c69d(0x2d0)][_0x17c69d(0x32d)](_0x32ef01))==null?void 0x0:_0x2af8e8[_0x17c69d(0x157)](_0xb5ae75);return(_0x3d0772==null?void 0x0:_0x3d0772[_0x17c69d(0x34d)]())??0x1;}[_0x22001c(0x12a)](_0x4cddca,_0x4f7937,_0x174110){const _0x57e733=_0x22001c;this[_0x57e733(0x304)]((0x0,a['toDisposable'])(_0x4cddca['onPointerDown$'][_0x57e733(0x14a)]((_0x3ee29b,_0x5e10b0)=>{const _0x2dad06=_0x57e733;var _0x21867b,_0x113104,_0x3df93d;let {unitId:_0xce3621,subUnitId:_0x1aa1ff,drawingId:_0xec4e2f}=_0x4cddca[_0x2dad06(0x37c)](),_0x21ffbb=this[_0x2dad06(0x35e)](_0xce3621,_0x1aa1ff,_0xec4e2f);if(!(_0x21ffbb!=null&&_0x21ffbb[_0x2dad06(0x20f)]))return;let {left:_0x18dae7,top:_0x481ab4,width:_0x1c7666,height:_0x349d74}=_0x21ffbb['transform'];this[_0x2dad06(0x3f5)]=_0x18dae7||0x0,this[_0x2dad06(0x3d2)]=_0x481ab4||0x0,this[_0x2dad06(0x2f1)]=_0x1c7666||0x0,this['_baseHeight']=_0x349d74||0x0;let _0x4a031d=!!((_0x21867b=_0x21ffbb[_0x2dad06(0x20f)])!=null&&_0x21867b[_0x2dad06(0x17d)]),_0x1cab1a=!!((_0x113104=_0x21ffbb['transform'])!=null&&_0x113104[_0x2dad06(0x374)]),_0x34d1fd=((_0x3df93d=_0x21ffbb[_0x2dad06(0x20f)])==null?void 0x0:_0x3df93d[_0x2dad06(0x372)])||0x0,_0x274d33=this[_0x2dad06(0x25f)](_0xce3621,_0x1aa1ff,_0xec4e2f);if(!_0x274d33)return;let _0x164926=this['_getOrCreateShapeModel'](_0x274d33[_0x2dad06(0x3a8)],this[_0x2dad06(0x2f1)],this[_0x2dad06(0x3f7)],_0x274d33[_0x2dad06(0x461)]);if(!_0x164926||(this[_0x2dad06(0x43c)]=_0x164926,this[_0x2dad06(0x3c8)]=_0x164926[_0x2dad06(0x217)](_0x174110),!this[_0x2dad06(0x3c8)]))return;this[_0x2dad06(0x364)]=!0x0,_0x4f7937[_0x2dad06(0x31c)]();let _0xb72925=_0x274d33[_0x2dad06(0x3a8)];this[_0x2dad06(0x339)]=_0x4f7937['onPointerMove$'][_0x2dad06(0x14a)]((_0x287029,_0x5280fd)=>{const _0x200208=_0x2dad06;if(!this[_0x200208(0x364)])return;let {offsetX:_0x5200a6,offsetY:_0x5849d5}=_0x287029,_0x320d4c=this[_0x200208(0x3c8)];if(!this[_0x200208(0x43c)]||!_0x320d4c)return;_0x4f7937['disableObjectsEvent'](),_0x4f7937[_0x200208(0x354)](c[_0x200208(0x3b1)][_0x200208(0x3fe)]);let _0x33dc47={'left':0x0,'top':0x0,'width':this['_baseWidth'],'height':this['_baseHeight']},_0x16326f=this['_getScrollInfo'](_0xce3621,_0x1aa1ff),_0x424866=this[_0x200208(0x194)](_0xce3621,_0x1aa1ff),_0x4dd66d=_0x5200a6/_0x424866+_0x16326f['x']-this['_baseLeft'],_0x2444e8=_0x5849d5/_0x424866+_0x16326f['y']-this[_0x200208(0x3d2)];if(_0x34d1fd!==0x0){let _0x20cd6a=this[_0x200208(0x2f1)]/0x2,_0x1e83e5=this[_0x200208(0x3f7)]/0x2,_0x48fd9c=_0x34d1fd*Math['PI']/0xb4,_0x1d59ef=Math[_0x200208(0x442)](_0x48fd9c),_0x43f373=Math[_0x200208(0x213)](_0x48fd9c),_0x4f9027=_0x4dd66d-_0x20cd6a,_0x1ccf98=_0x2444e8-_0x1e83e5;_0x4dd66d=_0x20cd6a+(_0x4f9027*_0x1d59ef+_0x1ccf98*_0x43f373),_0x2444e8=_0x1e83e5+(-_0x4f9027*_0x43f373+_0x1ccf98*_0x1d59ef);}_0x4a031d&&(_0x4dd66d=this[_0x200208(0x2f1)]-_0x4dd66d),_0x1cab1a&&(_0x2444e8=this['_baseHeight']-_0x2444e8);let _0x3cd594=this[_0x200208(0x43c)][_0x200208(0x18f)](_0x33dc47,{'x':_0x4dd66d,'y':_0x2444e8},_0x320d4c,_0x4a031d,_0x1cab1a);if(Object[_0x200208(0x26d)](_0x3cd594)[_0x200208(0x285)]!==0x0){for(let [_0x20e5f6,_0x4b6aef]of Object['entries'](_0x3cd594))this[_0x200208(0x43c)][_0x200208(0x26f)](_0x20e5f6,_0x4b6aef);this[_0x200208(0x43c)][_0x200208(0x2c1)]({'width':this['_baseWidth'],'height':this[_0x200208(0x3f7)]}),this['_updateImageAdjValues'](_0xce3621,_0x1aa1ff,_0xec4e2f,_0x3cd594),this[_0x200208(0x376)]=this[_0x200208(0x43c)][_0x200208(0x2ae)](),this[_0x200208(0x2c9)](),_0x5280fd[_0x200208(0x29e)]();}}),this[_0x2dad06(0x188)]=_0x4f7937[_0x2dad06(0x3f1)]['subscribeEvent']((_0x43e13a,_0xd1df1f)=>{const _0x2cf2f3=_0x2dad06;if(this['_adjHandlerPointerMove'][_0x2cf2f3(0x36a)](),this['_adjHandlerPointerUp'][_0x2cf2f3(0x36a)](),_0x4f7937[_0x2cf2f3(0x1f7)](),this['_activeShapeModel']){let _0x3313e9=this[_0x2cf2f3(0x43c)][_0x2cf2f3(0x2dc)](),_0x573bce={};for(let _0x3f8e12 of _0x3313e9){let _0x45333e=this['_activeShapeModel'][_0x2cf2f3(0x41a)](_0x3f8e12);_0x45333e!==void 0x0&&(_0x573bce[_0x3f8e12]=_0x45333e);}this[_0x2cf2f3(0x237)][_0x2cf2f3(0x1f5)](_0xce3621,_0x1aa1ff,_0xec4e2f,_0xb72925,_0x573bce);}this[_0x2cf2f3(0x3c8)]=void 0x0,this[_0x2cf2f3(0x43c)]=void 0x0,this[_0x2cf2f3(0x364)]=!0x1,_0xd1df1f[_0x2cf2f3(0x29e)](),_0x4f7937[_0x2cf2f3(0x1b0)]();}),_0x5e10b0['stopPropagation']();})));}[_0x22001c(0x28e)](_0xfc4d24,_0x5f3f8c,_0x7f5971,_0x3b2abf){const _0x3c2623=_0x22001c;let _0x3fcc81=this[_0x3c2623(0x3f8)][_0x3c2623(0x355)](_0xfc4d24);if(!_0x3fcc81)return;let {scene:_0x1191ab}=_0x3fcc81,_0x449c09=(0x0,s[_0x3c2623(0x1f0)])({'unitId':_0xfc4d24,'subUnitId':_0x5f3f8c,'drawingId':_0x7f5971}),_0x1ba3ff=_0x1191ab[_0x3c2623(0x290)](_0x449c09);if(_0x1ba3ff instanceof c['Image']){let _0x4561a4=_0x1ba3ff['prstGeomAdjValues']??{};_0x1ba3ff[_0x3c2623(0x3aa)]({..._0x4561a4,..._0x3b2abf}),_0x1ba3ff['makeDirty'](!0x0);}}[_0x22001c(0x334)](){const _0xe5eeeb=_0x22001c;let _0x12a554=this[_0xe5eeeb(0x2d0)][_0xe5eeeb(0x185)](a[_0xe5eeeb(0x130)][_0xe5eeeb(0x3ed)]);this[_0xe5eeeb(0x304)](_0x12a554['pipe']((0x0,u[_0xe5eeeb(0x36c)])(_0xbffec4=>_0xbffec4?_0xbffec4[_0xe5eeeb(0x214)][_0xe5eeeb(0x23c)]((0x0,u[_0xe5eeeb(0x36c)])(_0x48c5cb=>{const _0x39d92d=_0xe5eeeb;if(!_0x48c5cb)return u[_0x39d92d(0x421)];let _0x3a9e0a=_0xbffec4[_0x39d92d(0x33c)](),_0x36c603=this[_0x39d92d(0x3f8)]['getRenderUnitById'](_0x3a9e0a),_0x5bd75b=_0x36c603==null?void 0x0:_0x36c603[_0x39d92d(0x448)];return _0x5bd75b?(0x0,u['of'])(_0x5bd75b):u[_0x39d92d(0x421)];})):u[_0xe5eeeb(0x421)]))[_0xe5eeeb(0x35f)](_0x2e9bed=>{const _0x368761=_0xe5eeeb;let _0x5ace80=_0x2e9bed['getTransformerByCreate']();this[_0x368761(0x304)](_0x2e9bed[_0x368761(0x26a)][_0x368761(0x14a)](()=>{const _0x13d1da=_0x368761;this[_0x13d1da(0x382)]&&this[_0x13d1da(0x22e)]();})),this[_0x368761(0x304)](_0x5ace80[_0x368761(0x2ff)][_0x368761(0x35f)](_0x3ded71=>{const _0x1c98c1=_0x368761;let {objects:_0x49bae1}=_0x3ded71;if(this[_0x1c98c1(0x2c9)](),_0x49bae1!==null&&_0x49bae1[_0x1c98c1(0x165)]===0x1){let _0x32fb7b=_0x49bae1[_0x1c98c1(0x41e)]()[_0x1c98c1(0x14d)]()['value'];_0x32fb7b instanceof c['Image']&&_0x32fb7b[_0x1c98c1(0x3a8)]&&(this['_isImagePointerDown']=!0x0);}})),this['disposeWithMe'](_0x5ace80['changing$'][_0x368761(0x35f)](()=>{const _0x62e209=_0x368761;this[_0x62e209(0x382)]&&this['_clearControls']();})),this[_0x368761(0x304)](_0x2e9bed[_0x368761(0x3f1)][_0x368761(0x14a)](()=>{const _0x4d90a7=_0x368761;this[_0x4d90a7(0x382)]&&(this[_0x4d90a7(0x382)]=!0x1,this[_0x4d90a7(0x2c9)]());})),this[_0x368761(0x304)](_0x5ace80[_0x368761(0x266)][_0x368761(0x35f)](()=>{const _0x9cac78=_0x368761;if(this[_0x9cac78(0x296)]&&this[_0x9cac78(0x397)]&&this['_activeImageId']){let _0x1ed3e1=this['_getImagePrstGeom'](this[_0x9cac78(0x296)],this['_subUnitId'],this[_0x9cac78(0x1d0)]);if(_0x1ed3e1){var _0x58b597,_0x644857;let _0x2daa81=this[_0x9cac78(0x35e)](this[_0x9cac78(0x296)],this[_0x9cac78(0x397)],this[_0x9cac78(0x1d0)]),_0x648565=(_0x2daa81==null||(_0x58b597=_0x2daa81[_0x9cac78(0x20f)])==null?void 0x0:_0x58b597['width'])||0x0,_0x3e0994=(_0x2daa81==null||(_0x644857=_0x2daa81[_0x9cac78(0x20f)])==null?void 0x0:_0x644857[_0x9cac78(0x330)])||0x0,_0x23531d=this[_0x9cac78(0x18a)](_0x1ed3e1['prstGeom'],_0x648565,_0x3e0994,_0x1ed3e1[_0x9cac78(0x461)]);_0x23531d&&(this[_0x9cac78(0x376)]=_0x23531d[_0x9cac78(0x2ae)](),this[_0x9cac78(0x22e)](),this[_0x9cac78(0x2c9)](!0x0));}}}));}));}[_0x22001c(0x178)](){const _0x19f601=_0x22001c;this[_0x19f601(0x304)](this[_0x19f601(0x17b)][_0x19f601(0x1be)][_0x19f601(0x35f)](_0x3f71d7=>{const _0x4f9a08=_0x19f601;if(_0x3f71d7[_0x4f9a08(0x285)]===0x1){let _0x40d121=_0x3f71d7[0x0];if(_0x40d121[_0x4f9a08(0x235)]===a[_0x4f9a08(0x2c3)]['DRAWING_IMAGE']){let {unitId:_0x539a7d,subUnitId:_0xc2b4c0,drawingId:_0x21ecb5}=_0x40d121,_0x4803dc=this[_0x4f9a08(0x25f)](_0x539a7d,_0xc2b4c0,_0x21ecb5);if(_0x4803dc){var _0x33a417,_0x29bce7;this['_activeImageId']=_0x21ecb5,this['_unitId']=_0x539a7d,this[_0x4f9a08(0x397)]=_0xc2b4c0;let _0x460680=this[_0x4f9a08(0x35e)](_0x539a7d,_0xc2b4c0,_0x21ecb5),_0x5c7283=(_0x460680==null||(_0x33a417=_0x460680[_0x4f9a08(0x20f)])==null?void 0x0:_0x33a417['width'])||0x0,_0x25b43b=(_0x460680==null||(_0x29bce7=_0x460680[_0x4f9a08(0x20f)])==null?void 0x0:_0x29bce7[_0x4f9a08(0x330)])||0x0,_0x538290=this['_getOrCreateShapeModel'](_0x4803dc[_0x4f9a08(0x3a8)],_0x5c7283,_0x25b43b,_0x4803dc[_0x4f9a08(0x461)]);_0x538290&&(this[_0x4f9a08(0x376)]=_0x538290[_0x4f9a08(0x2ae)]()),this[_0x4f9a08(0x22e)](),this[_0x4f9a08(0x2c9)](!0x0);}else this[_0x4f9a08(0x395)]();}else this[_0x4f9a08(0x395)]();}else this[_0x4f9a08(0x395)]();})),this[_0x19f601(0x304)](this['_drawingManagerService'][_0x19f601(0x413)][_0x19f601(0x35f)](_0x14849b=>{const _0x44b5a9=_0x19f601;if(_0x14849b[_0x44b5a9(0x285)]===0x1){let _0x1cc240=_0x14849b[0x0],_0x26e34c=this[_0x44b5a9(0x17b)]['getDrawingByParam'](_0x1cc240);(_0x26e34c==null?void 0x0:_0x26e34c[_0x44b5a9(0x235)])===a[_0x44b5a9(0x2c3)][_0x44b5a9(0x2c2)]&&this[_0x44b5a9(0x1d0)]===_0x1cc240['drawingId']&&(this[_0x44b5a9(0x22e)](),this[_0x44b5a9(0x2c9)](!0x0));}})),this[_0x19f601(0x304)](this['_drawingManagerService'][_0x19f601(0x2fa)][_0x19f601(0x35f)](_0x1d6963=>{const _0x4920a8=_0x19f601;for(let _0x10d2e7 of _0x1d6963)this['_activeImageId']===_0x10d2e7[_0x4920a8(0x184)]&&this[_0x4920a8(0x395)]();}));}[_0x22001c(0x395)](){const _0x2878bb=_0x22001c;this[_0x2878bb(0x1d0)]=null,this[_0x2878bb(0x296)]=null,this[_0x2878bb(0x397)]=null,this[_0x2878bb(0x376)]=void 0x0,this[_0x2878bb(0x22e)]();}};dt=k([O(0x1,s[_0x22001c(0x1a7)]),O(0x2,(0x0,a['Inject'])(c['IRenderManagerService'])),O(0x3,a['IUniverInstanceService']),O(0x4,(0x0,a[_0x22001c(0x299)])(z))],dt);const ft='sheets-shape-contextual-ribbon';let q=class extends a[_0x22001c(0x35c)]{constructor(_0x5a02dc,_0x32c88e,_0x2cae7d,_0x501e9d,_0xbd3a8e,_0x283ef0){const _0x32b0d3=_0x22001c;super(),this[_0x32b0d3(0x171)]=_0x5a02dc,this['_ribbonService']=_0x32c88e,this['_drawingManagerService']=_0x2cae7d,this[_0x32b0d3(0x2d0)]=_0x501e9d,this[_0x32b0d3(0x3f8)]=_0xbd3a8e,this[_0x32b0d3(0x180)]=_0x283ef0,T(this,'_visible',!0x1),this[_0x32b0d3(0x171)][_0x32b0d3(0x3f9)](Ze),this['disposeWithMe']((0x0,a[_0x32b0d3(0x152)])(this[_0x32b0d3(0x17b)]['focus$']['subscribe'](()=>this[_0x32b0d3(0x412)]()))),this[_0x32b0d3(0x412)]();}[_0x22001c(0x2db)](){const _0x24a002=_0x22001c;this[_0x24a002(0x180)][_0x24a002(0x414)](!0x1,ft),this['_hide'](),super[_0x24a002(0x2db)]();}[_0x22001c(0x412)](){const _0x4e2851=_0x22001c;var _0x525350;let _0x7bc20e=this['_drawingManagerService']['getFocusDrawings'](),_0x2ca39d=_0x7bc20e[_0x4e2851(0x285)]===0x1?_0x7bc20e[0x0]:void 0x0;if((_0x2ca39d==null?void 0x0:_0x2ca39d['drawingType'])!==a[_0x4e2851(0x2c3)][_0x4e2851(0x2ef)]||this['_univerInstanceService'][_0x4e2851(0x32b)](_0x2ca39d[_0x4e2851(0x298)])!==a[_0x4e2851(0x130)]['UNIVER_SHEET']){this[_0x4e2851(0x180)]['setFallbackVisible'](!0x1,ft),this['_hide']();return;}let _0x36421d=(0x0,e['resolveShapeContextualRibbonHostMode'])((_0x525350=this['_renderManagerService'][_0x4e2851(0x355)](_0x2ca39d[_0x4e2851(0x298)]))==null?void 0x0:_0x525350[_0x4e2851(0x3b3)][_0x4e2851(0x1c7)]())===_0x4e2851(0x17a);if(this[_0x4e2851(0x180)][_0x4e2851(0x414)](_0x36421d,ft),_0x36421d){this[_0x4e2851(0x457)]();return;}this['_visible']||(this[_0x4e2851(0x310)]=!0x0,this[_0x4e2851(0x1e6)][_0x4e2851(0x353)](L,{'activate':!0x0}));}[_0x22001c(0x457)](){const _0x4fc635=_0x22001c;this['_visible']&&(this['_visible']=!0x1,this[_0x4fc635(0x1e6)][_0x4fc635(0x300)](L),this['_ribbonService'][_0x4fc635(0x25e)]([]));}};q=k([O(0x0,t[_0x22001c(0x27e)]),O(0x1,t['IRibbonService']),O(0x2,s[_0x22001c(0x1a7)]),O(0x3,a['IUniverInstanceService']),O(0x4,c[_0x22001c(0x39b)]),O(0x5,(0x0,a[_0x22001c(0x299)])(e[_0x22001c(0x40e)]))],q);let J=class extends a['Disposable']{constructor(_0x1e5c63,_0x4a5e0b,_0x4e82c7,_0x389ffa){const _0x271de7=_0x22001c;super(),this['_univerInstanceService']=_0x1e5c63,this[_0x271de7(0x453)]=_0x4a5e0b,this['_sheetDrawingService']=_0x4e82c7,this[_0x271de7(0x209)]=_0x389ffa,this['_initSheetChange']();}[_0x22001c(0x326)](){const _0x18743e=_0x22001c;this['disposeWithMe'](this[_0x18743e(0x453)][_0x18743e(0x42b)]({'getMutations':_0x256ef5=>{const _0x50eabc=_0x18743e;if(_0x256ef5['id']===o['RemoveSheetCommand']['id']){let _0xc3c2c6=(0x0,o[_0x50eabc(0x348)])(this[_0x50eabc(0x2d0)],_0x256ef5[_0x50eabc(0x1a9)]);if(!_0xc3c2c6)return{'redos':[],'undos':[]};let {unitId:_0x55649a,subUnitId:_0x45cdfd}=_0xc3c2c6,_0x32e174=this[_0x50eabc(0x329)][_0x50eabc(0x390)](_0x55649a,_0x45cdfd),_0x4fe49e=Object[_0x50eabc(0x41e)](_0x32e174)[_0x50eabc(0x1db)](_0x13ccd7=>_0x13ccd7[_0x50eabc(0x235)]===a['DrawingTypeEnum'][_0x50eabc(0x2ef)]);if(_0x4fe49e[_0x50eabc(0x285)]===0x0)return{'redos':[],'undos':[]};let _0x139ed0=[],_0x194d7f=[];for(let _0x3524a9=0x0;_0x3524a9<_0x4fe49e[_0x50eabc(0x285)];_0x3524a9++){let _0x29f54a=_0x4fe49e[_0x3524a9],_0x10e7e5=this[_0x50eabc(0x209)][_0x50eabc(0x44e)](_0x29f54a[_0x50eabc(0x298)],_0x29f54a[_0x50eabc(0x388)],_0x29f54a[_0x50eabc(0x184)]);if(!_0x10e7e5)continue;let {redo:_0x379752,undo:_0x2c2f6b,objects:_0x38f2c3}=this['_sheetDrawingService'][_0x50eabc(0x317)]([_0x29f54a]);_0x139ed0[_0x50eabc(0x2f0)]({'id':i[_0x50eabc(0x3a7)]['id'],'params':{'unitId':_0x55649a,'subUnitId':_0x45cdfd,'shapeId':_0x29f54a[_0x50eabc(0x184)]}}),_0x139ed0[_0x50eabc(0x2f0)]({'id':p[_0x50eabc(0x204)]['id'],'params':{'unitId':_0x55649a,'subUnitId':_0x45cdfd,'type':p[_0x50eabc(0x2d2)][_0x50eabc(0x263)],'op':_0x379752,'objects':_0x38f2c3}}),_0x194d7f[_0x50eabc(0x2f0)]({'id':p['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x55649a,'subUnitId':_0x45cdfd,'type':p[_0x50eabc(0x2d2)][_0x50eabc(0x3c2)],'op':_0x2c2f6b,'objects':_0x38f2c3}}),_0x194d7f[_0x50eabc(0x2f0)]({'id':i[_0x50eabc(0x196)]['id'],'params':{'unitId':_0x55649a,'subUnitId':_0x45cdfd,'shapeId':_0x29f54a[_0x50eabc(0x184)],'shapeType':_0x10e7e5['getShapeType'](),'shapeData':JSON[_0x50eabc(0x1a8)](JSON[_0x50eabc(0x29d)](_0x10e7e5[_0x50eabc(0x12e)]()))}});}return{'redos':_0x139ed0,'undos':_0x194d7f};}else{if(_0x256ef5['id']===o[_0x50eabc(0x3a9)]['id']){let {unitId:_0xbdc98f,subUnitId:_0x11da69,targetSubUnitId:_0x2ba631}=_0x256ef5[_0x50eabc(0x1a9)];if(!_0xbdc98f||!_0x11da69||!_0x2ba631)return{'redos':[],'undos':[]};let _0x20b611=this['_sheetDrawingService']['getDrawingData'](_0xbdc98f,_0x11da69),_0x22626d=Object[_0x50eabc(0x41e)](_0x20b611)[_0x50eabc(0x1db)](_0x594e15=>_0x594e15[_0x50eabc(0x235)]===a[_0x50eabc(0x2c3)][_0x50eabc(0x2ef)]);if(_0x22626d['length']===0x0)return{'redos':[],'undos':[]};let _0x2a9a1a=[],_0x2ea537=[];for(let _0x11c97d=0x0;_0x11c97d<_0x22626d[_0x50eabc(0x285)];_0x11c97d++){let _0x457c74=_0x22626d[_0x11c97d],_0x442e50=this[_0x50eabc(0x209)][_0x50eabc(0x44e)](_0x457c74[_0x50eabc(0x298)],_0x457c74[_0x50eabc(0x388)],_0x457c74[_0x50eabc(0x184)]);if(!_0x442e50)continue;let _0x27d361=(0x0,a[_0x50eabc(0x20d)])(),_0x5c464c={..._0x457c74,'unitId':_0xbdc98f,'subUnitId':_0x2ba631,'drawingId':_0x27d361},{redo:_0x5b6837,undo:_0x21b0a6,objects:_0x398230}=this[_0x50eabc(0x329)][_0x50eabc(0x3c7)]([_0x5c464c]);_0x2a9a1a[_0x50eabc(0x2f0)]({'id':p[_0x50eabc(0x204)]['id'],'params':{'unitId':_0xbdc98f,'subUnitId':_0x2ba631,'type':p['DrawingApplyType'][_0x50eabc(0x3c2)],'op':_0x5b6837,'objects':_0x398230}}),_0x2a9a1a[_0x50eabc(0x2f0)]({'id':i[_0x50eabc(0x196)]['id'],'params':{'unitId':_0xbdc98f,'subUnitId':_0x2ba631,'shapeId':_0x27d361,'shapeType':_0x442e50[_0x50eabc(0x19a)](),'shapeData':JSON['parse'](JSON[_0x50eabc(0x29d)](_0x442e50[_0x50eabc(0x12e)]()))}}),_0x2ea537['push']({'id':i[_0x50eabc(0x3a7)]['id'],'params':{'unitId':_0xbdc98f,'subUnitId':_0x2ba631,'shapeId':_0x27d361}}),_0x2ea537[_0x50eabc(0x2f0)]({'id':p['SetDrawingApplyMutation']['id'],'params':{'unitId':_0xbdc98f,'subUnitId':_0x2ba631,'type':p[_0x50eabc(0x2d2)][_0x50eabc(0x263)],'op':_0x21b0a6,'objects':_0x398230}});}return{'redos':_0x2a9a1a,'undos':_0x2ea537};}}return{'redos':[],'undos':[]};}}));}};J=k([O(0x0,(0x0,a[_0x22001c(0x299)])(a[_0x22001c(0x252)])),O(0x1,(0x0,a[_0x22001c(0x299)])(o['SheetInterceptorService'])),O(0x2,(0x0,a[_0x22001c(0x299)])(p[_0x22001c(0x3d6)])),O(0x3,(0x0,a[_0x22001c(0x299)])(i[_0x22001c(0x1e3)]))],J);let pt=class extends a[_0x22001c(0x35c)]{constructor(_0xad633c,_0x4493a5,_0x5360ae,_0x4786db,_0x1ac808){const _0x770be3=_0x22001c;super(),this[_0x770be3(0x3ee)]=_0xad633c,this[_0x770be3(0x211)]=_0x4493a5,this[_0x770be3(0x17b)]=_0x5360ae,this[_0x770be3(0x39d)]=_0x4786db,this[_0x770be3(0x209)]=_0x1ac808,T(this,_0x770be3(0x389),null),this[_0x770be3(0x360)](),this['_initSelection'](),this[_0x770be3(0x295)]();}[_0x22001c(0x360)](){const _0x4cf55e=_0x22001c;let {scene:_0x5ea829}=this[_0x4cf55e(0x3ee)];this[_0x4cf55e(0x304)](_0x5ea829['onDblclick$'][_0x4cf55e(0x14a)](_0x1a4a35=>{const _0x325442=_0x4cf55e;let {offsetX:_0x1c4a62,offsetY:_0x4a12fc}=_0x1a4a35,_0x6f92e9=_0x5ea829[_0x325442(0x3a5)](c[_0x325442(0x3b8)][_0x325442(0x247)]([_0x1c4a62,_0x4a12fc]));if(_0x6f92e9 instanceof E){let _0x2826ed=this[_0x325442(0x209)][_0x325442(0x44e)](_0x6f92e9[_0x325442(0x298)],_0x6f92e9[_0x325442(0x388)],_0x6f92e9[_0x325442(0x28c)]);if(_0x2826ed!=null&&_0x2826ed[_0x325442(0x12e)]()[_0x325442(0x2fd)]||(0x0,n[_0x325442(0x1cd)])(this[_0x325442(0x209)][_0x325442(0x19a)](_0x6f92e9[_0x325442(0x298)],_0x6f92e9[_0x325442(0x388)],_0x6f92e9[_0x325442(0x28c)])))return;this[_0x325442(0x211)][_0x325442(0x23f)]({'visible':!0x0,'unitId':_0x6f92e9['unitId'],'subUnitId':_0x6f92e9[_0x325442(0x388)],'shapeId':_0x6f92e9[_0x325442(0x28c)],'shapeKey':_0x6f92e9['oKey']});}}));}[_0x22001c(0x255)](){const _0x2d20b3=_0x22001c;this[_0x2d20b3(0x304)](this[_0x2d20b3(0x17b)]['focus$'][_0x2d20b3(0x35f)](_0x383910=>{const _0x516eb4=_0x2d20b3;if(_0x383910[_0x516eb4(0x285)]===0x1){let _0x29428f=_0x383910[0x0],_0x3e0cde=this[_0x516eb4(0x17b)][_0x516eb4(0x29f)](_0x29428f);if((_0x3e0cde==null?void 0x0:_0x3e0cde['drawingType'])===a[_0x516eb4(0x2c3)][_0x516eb4(0x2ef)]){var _0x2e5efb;let _0x14f587=this[_0x516eb4(0x211)][_0x516eb4(0x2b0)]();if((_0x14f587==null?void 0x0:_0x14f587[_0x516eb4(0x28c)])===_0x29428f[_0x516eb4(0x184)]&&_0x14f587[_0x516eb4(0x352)])return;let _0x48bad2=(0x0,n[_0x516eb4(0x1cd)])(this['_sheetsShapeService'][_0x516eb4(0x19a)](_0x29428f[_0x516eb4(0x298)],_0x29428f['subUnitId'],_0x29428f[_0x516eb4(0x184)])),_0x1571a4=!!((_0x2e5efb=this['_sheetsShapeService'][_0x516eb4(0x44e)](_0x29428f[_0x516eb4(0x298)],_0x29428f[_0x516eb4(0x388)],_0x29428f[_0x516eb4(0x184)]))!=null&&_0x2e5efb[_0x516eb4(0x12e)]()[_0x516eb4(0x2fd)]);(_0x48bad2||_0x1571a4)&&this[_0x516eb4(0x211)][_0x516eb4(0x23f)](null);}else this[_0x516eb4(0x211)][_0x516eb4(0x2b0)]()&&(this[_0x516eb4(0x211)]['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x1215c7=_0x516eb4;this[_0x1215c7(0x211)][_0x1215c7(0x23f)](null);}));}else this[_0x516eb4(0x211)][_0x516eb4(0x2b0)]()&&(this[_0x516eb4(0x211)]['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x5be5f2=_0x516eb4;this[_0x5be5f2(0x211)][_0x5be5f2(0x23f)](null);}));})),this['disposeWithMe'](this[_0x2d20b3(0x17b)][_0x2d20b3(0x2fa)][_0x2d20b3(0x35f)](_0x48245a=>{const _0x2b667c=_0x2d20b3;let _0x4bd0c6=this[_0x2b667c(0x211)][_0x2b667c(0x2b0)]();_0x4bd0c6&&_0x48245a[_0x2b667c(0x3ef)](_0x3da64f=>_0x3da64f[_0x2b667c(0x184)]===_0x4bd0c6[_0x2b667c(0x28c)])&&this[_0x2b667c(0x211)][_0x2b667c(0x23f)](null);}));}['_initEditingParams'](){const _0x1ea391=_0x22001c;this['disposeWithMe'](this[_0x1ea391(0x211)]['editingParams$']['subscribe'](_0x311451=>{const _0x4d9a6f=_0x1ea391;let {scene:_0x56ab9d}=this['_context'];if(this['_lastEditingShapeKey']){let _0x2bc77d=_0x56ab9d[_0x4d9a6f(0x3e5)](this['_lastEditingShapeKey']);_0x2bc77d&&_0x2bc77d[_0x4d9a6f(0x23f)](!0x1);}if(_0x311451){let _0x3d695e=!!_0x311451[_0x4d9a6f(0x352)],_0x96eb57=_0x56ab9d[_0x4d9a6f(0x3e5)](_0x311451['shapeKey']);_0x96eb57&&(_0x96eb57[_0x4d9a6f(0x23f)](_0x3d695e),this['_lastEditingShapeKey']=_0x311451[_0x4d9a6f(0x270)]),this['_contextService'][_0x4d9a6f(0x2b6)](a['FOCUSING_SHAPE_TEXT_EDITOR'],_0x3d695e);}else this['_lastEditingShapeKey']=null,this[_0x4d9a6f(0x39d)]['setContextValue'](a[_0x4d9a6f(0x1eb)],!0x1);}));}};pt=k([O(0x1,(0x0,a[_0x22001c(0x299)])(G)),O(0x2,s[_0x22001c(0x1a7)]),O(0x3,a[_0x22001c(0x28a)]),O(0x4,(0x0,a[_0x22001c(0x299)])(i[_0x22001c(0x1e3)]))],pt);let mt=class extends e[_0x22001c(0x2de)]{constructor(_0x343f43,_0x1a27bc,_0x496b98,_0x3fe128){super(_0x343f43,_0x1a27bc,_0x496b98,_0x3fe128,{'componentKey':ie,'editorUnitId':re});}};mt=k([O(0x1,(0x0,a[_0x22001c(0x299)])(h[_0x22001c(0x3cf)])),O(0x2,(0x0,a['Inject'])(g[_0x22001c(0x1b5)])),O(0x3,(0x0,a['Inject'])(g[_0x22001c(0x3b2)]))],mt);let Y=class extends a[_0x22001c(0x35c)]{constructor(_0x96337,_0x347cdb,_0x454d2e,_0x4d8106,_0x19ea60,_0xa2c964){const _0x43c60d=_0x22001c;super(),this[_0x43c60d(0x409)]=_0x96337,this[_0x43c60d(0x3f8)]=_0x347cdb,this['_drawingManagerService']=_0x454d2e,this[_0x43c60d(0x325)]=_0x4d8106,this['_drawingRenderService']=_0x19ea60,this[_0x43c60d(0x3c5)]=_0xa2c964,T(this,_0x43c60d(0x193),new Set()),this[_0x43c60d(0x45f)]();}['_initialize'](){const _0x3bcc49=_0x22001c;this[_0x3bcc49(0x2fb)](),this[_0x3bcc49(0x38f)](),this[_0x3bcc49(0x1f8)]();}[_0x22001c(0x2fb)](){const _0x250994=_0x22001c;this[_0x250994(0x304)](this['_drawingManagerService']['add$']['subscribe'](_0x533f66=>{this['_insertShapes'](_0x533f66);}));}[_0x22001c(0x38f)](){const _0x1ef176=_0x22001c;this[_0x1ef176(0x304)](this['_commandService'][_0x1ef176(0x3a6)](_0x2d3daa=>{const _0x1dd7fc=_0x1ef176;if(_0x2d3daa['id']===i[_0x1dd7fc(0x2bd)]['id']){let {unitId:_0x26abbe,subUnitId:_0x58d863,shapeId:_0x873f77}=_0x2d3daa[_0x1dd7fc(0x1a9)],_0x33b2a9=this[_0x1dd7fc(0x2dd)](_0x26abbe),_0x6b8344=(0x0,s[_0x1dd7fc(0x1f0)])({'unitId':_0x26abbe,'subUnitId':_0x58d863,'drawingId':_0x873f77}),_0x40d9fc=_0x33b2a9==null?void 0x0:_0x33b2a9['scene'][_0x1dd7fc(0x3e5)](_0x6b8344);_0x40d9fc&&(this[_0x1dd7fc(0x3c5)][_0x1dd7fc(0x3eb)](_0x40d9fc),this[_0x1dd7fc(0x3c5)][_0x1dd7fc(0x398)](_0x40d9fc,{'unitId':_0x26abbe,'subUnitId':_0x58d863,'shapeId':_0x873f77}),_0x40d9fc[_0x1dd7fc(0x444)](!0x0));return;}if(_0x2d3daa['id']===i[_0x1dd7fc(0x196)]['id']){var _0x12775d;let {unitId:_0x58854a,subUnitId:_0x411d9c,shapeId:_0x3bee9c}=_0x2d3daa[_0x1dd7fc(0x1a9)],_0x1af5c8=this[_0x1dd7fc(0x2dd)](_0x58854a);if(_0x1af5c8==null)return;let {scene:_0x5a8568}=_0x1af5c8,_0x5442a5=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x58854a,'subUnitId':_0x411d9c,'drawingId':_0x3bee9c}),_0x2d677f=_0x5a8568[_0x1dd7fc(0x3e5)](_0x5442a5);if(!((_0x12775d=this[_0x1dd7fc(0x3f8)][_0x1dd7fc(0x355)](_0x58854a))!=null&&_0x12775d['with'](l[_0x1dd7fc(0x13a)])[_0x1dd7fc(0x358)](_0x411d9c)))return!0x1;if(_0x2d677f)return;this[_0x1dd7fc(0x21a)]([{'unitId':_0x58854a,'subUnitId':_0x411d9c,'drawingId':_0x3bee9c}]);}}));}[_0x22001c(0x1f8)](){const _0x5eba21=_0x22001c;this['disposeWithMe'](this[_0x5eba21(0x17b)][_0x5eba21(0x413)][_0x5eba21(0x35f)](_0x2f909e=>{const _0x536928=_0x5eba21;_0x2f909e[_0x536928(0x1dc)](_0x1b172a=>{const _0x226f8a=_0x536928;let {unitId:_0x57eb2c,subUnitId:_0x4f46f9,drawingId:_0x17230f}=_0x1b172a,_0x28bd2c=this['_drawingManagerService'][_0x226f8a(0x29f)](_0x1b172a);if(_0x28bd2c==null)return;let {transform:_0xc53acb,drawingType:_0x49d6c7,srcRect:_0x201b33,prstGeom:_0x4c8806}=_0x28bd2c;if(_0x49d6c7!==a['DrawingTypeEnum']['DRAWING_SHAPE'])return;let _0x2ef1fb=this[_0x226f8a(0x2dd)](_0x57eb2c);if(_0x2ef1fb==null)return;let {scene:_0x33ef26,transformer:_0x7f27aa}=_0x2ef1fb;if(_0xc53acb==null)return!0x0;let _0x61abe0=(0x0,s[_0x226f8a(0x1f0)])({'unitId':_0x57eb2c,'subUnitId':_0x4f46f9,'drawingId':_0x17230f}),_0x1c2d40=_0x33ef26[_0x226f8a(0x3e5)](_0x61abe0);if(_0x1c2d40==null)return!0x0;_0x1c2d40[_0x226f8a(0x43a)](_0x201b33),_0x1c2d40[_0x226f8a(0x32c)](_0x4c8806);});}));}['_insertShapes'](_0x30bd90){const _0x2a519c=_0x22001c;for(let _0x9d0429 of _0x30bd90){var _0x4f2c8c;let {unitId:_0x21da89,subUnitId:_0x29272e,drawingId:_0x1ad937}=_0x9d0429,_0x37797d=this[_0x2a519c(0x2dd)](_0x21da89),_0x2dd117=(_0x4f2c8c=(0x0,d['getCurrentUnitInfo'])(this[_0x2a519c(0x325)],_0x21da89))==null?void 0x0:_0x4f2c8c[_0x2a519c(0x388)];if(_0x37797d==null||_0x2dd117!==_0x29272e)return;let _0xdc97fb=(0x0,s[_0x2a519c(0x1f0)])({'unitId':_0x21da89,'subUnitId':_0x29272e,'drawingId':_0x1ad937});if(this[_0x2a519c(0x193)][_0x2a519c(0x2ee)](_0xdc97fb)||_0x37797d[_0x2a519c(0x448)][_0x2a519c(0x3e5)](_0xdc97fb)!=null)return;let _0x29c697=this[_0x2a519c(0x17b)][_0x2a519c(0x29f)](_0x9d0429);if(_0x29c697==null||_0x29c697['drawingType']!==a[_0x2a519c(0x2c3)][_0x2a519c(0x2ef)])return;if((0x0,n[_0x2a519c(0x1cd)])((_0x29c697[_0x2a519c(0x3ca)]||{})['shapeType'])){let _0x5a813a=_0x29c697[_0x2a519c(0x20f)];_0x5a813a&&(_0x29c697[_0x2a519c(0x20f)]={..._0x5a813a,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x2a519c(0x193)][_0x2a519c(0x342)](_0xdc97fb);try{this['_sheetDrawingShapeRenderController']['renderDrawingShape'](_0x29c697,_0x37797d[_0x2a519c(0x448)]);}finally{this[_0x2a519c(0x193)]['delete'](_0xdc97fb);}queueMicrotask(()=>{const _0x2812ab=_0x2a519c;if(this[_0x2812ab(0x212)])return;let _0x2077a7=(0x0,s[_0x2812ab(0x1f0)])(_0x9d0429);if(!_0x37797d[_0x2812ab(0x448)][_0x2812ab(0x3e5)](_0x2077a7))return;let _0x17cfc7=this['_drawingManagerService'][_0x2812ab(0x29f)](_0x9d0429);_0x17cfc7&&this[_0x2812ab(0x17b)][_0x2812ab(0x20a)]([_0x17cfc7]);});}}[_0x22001c(0x2dd)](_0x47cbb7){const _0x107580=_0x22001c;if(_0x47cbb7==null)return;let _0x4d3c6e=this[_0x107580(0x3f8)][_0x107580(0x355)](_0x47cbb7),_0xee0c9f=_0x4d3c6e==null?void 0x0:_0x4d3c6e['scene'];return _0xee0c9f==null?null:{'scene':_0xee0c9f,'transformer':_0xee0c9f[_0x107580(0x2cd)]()};}};Y=k([O(0x0,a[_0x22001c(0x20b)]),O(0x1,c['IRenderManagerService']),O(0x2,s[_0x22001c(0x1a7)]),O(0x3,a[_0x22001c(0x252)]),O(0x4,(0x0,a[_0x22001c(0x299)])(d[_0x22001c(0x1b3)])),O(0x5,(0x0,a[_0x22001c(0x299)])(A))],Y);const ht={'normal':{'fill':n[_0x22001c(0x41f)][_0x22001c(0x336)],'stroke':n[_0x22001c(0x41f)][_0x22001c(0x131)],'strokeWidth':n[_0x22001c(0x41f)][_0x22001c(0x34b)]},'highlighted':{'fill':_0x22001c(0x403),'stroke':'#1a73e8','strokeWidth':0x2}};var gt=class extends c[_0x22001c(0x170)]{constructor(_0x32a8aa,_0x240d10){const _0x49a441=_0x22001c;super(_0x32a8aa,_0x240d10),T(this,_0x49a441(0x318),''),T(this,'_cxnIndex',-0x1),T(this,'_unitId',''),T(this,_0x49a441(0x397),''),T(this,_0x49a441(0x21b),!0x1),_0x240d10&&this['setShapeProps'](_0x240d10);}[_0x22001c(0x3ba)](){const _0x2cba65=_0x22001c;return{'unitId':this[_0x2cba65(0x296)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x2cba65(0x318)],'cxnIndex':this[_0x2cba65(0x2d1)]};}[_0x22001c(0x337)](_0x92913b){const _0x1f3caf=_0x22001c;this[_0x1f3caf(0x21b)]!==_0x92913b&&(this[_0x1f3caf(0x21b)]=_0x92913b,this['makeDirty'](!0x0));}[_0x22001c(0x401)](){const _0x2210ee=_0x22001c;return this[_0x2210ee(0x21b)];}[_0x22001c(0x28b)](_0x14106d){const _0x42bab6=_0x22001c;_0x14106d['targetShapeId']!==void 0x0&&(this[_0x42bab6(0x318)]=_0x14106d[_0x42bab6(0x186)]),_0x14106d[_0x42bab6(0x3ae)]!==void 0x0&&(this[_0x42bab6(0x2d1)]=_0x14106d[_0x42bab6(0x3ae)]),_0x14106d[_0x42bab6(0x298)]!==void 0x0&&(this[_0x42bab6(0x296)]=_0x14106d[_0x42bab6(0x298)]),_0x14106d[_0x42bab6(0x388)]!==void 0x0&&(this['_subUnitId']=_0x14106d[_0x42bab6(0x388)]),_0x14106d[_0x42bab6(0x401)]!==void 0x0&&(this[_0x42bab6(0x21b)]=_0x14106d['isHighlighted']),this[_0x42bab6(0x359)]({'width':_0x14106d[_0x42bab6(0x21d)]??n[_0x42bab6(0x41f)][_0x42bab6(0x173)]*0x2,'height':_0x14106d[_0x42bab6(0x330)]??n[_0x42bab6(0x41f)]['cxnPointRadius']*0x2});}[_0x22001c(0x408)](_0x1e4899){const _0x23d71a=_0x22001c;let _0x5e7415=this['_isHighlighted']?ht[_0x23d71a(0x15b)]:ht[_0x23d71a(0x3da)];c[_0x23d71a(0x301)]['drawWith'](_0x1e4899,{'radius':n[_0x23d71a(0x41f)]['cxnPointRadius'],'fill':_0x5e7415[_0x23d71a(0x24b)],'stroke':_0x5e7415[_0x23d71a(0x33a)],'strokeWidth':_0x5e7415[_0x23d71a(0x32a)],'evented':!0x0});}};let X=class extends a[_0x22001c(0x35c)]{constructor(_0xa768a8,_0x725cd8,_0x1c71ea,_0x1b5366){const _0x10534b=_0x22001c;super(),this[_0x10534b(0x3ee)]=_0xa768a8,this['_renderManagerService']=_0x725cd8,this[_0x10534b(0x17b)]=_0x1c71ea,this[_0x10534b(0x209)]=_0x1b5366,T(this,_0x10534b(0x370),[]),T(this,'_activeTargetShapeId',null),T(this,'_highlightedSiteIndex',-0x1),T(this,_0x10534b(0x42d),null),T(this,'_unitId',''),T(this,_0x10534b(0x397),''),T(this,_0x10534b(0x441),null);}[_0x22001c(0x332)](_0x383c9b,_0x2b337e,_0x4477f6,_0x202c58){const _0x16a853=_0x22001c;this[_0x16a853(0x42d)]=_0x383c9b,this['_unitId']=_0x2b337e,this[_0x16a853(0x397)]=_0x4477f6,this[_0x16a853(0x441)]=_0x202c58;}[_0x22001c(0x1bd)](_0x32eb85){const _0x40da75=_0x22001c;if(!this[_0x40da75(0x42d)])return null;let _0x54360f=this[_0x40da75(0x25a)](_0x32eb85);return _0x54360f?(this[_0x40da75(0x1d1)]!==_0x54360f[_0x40da75(0x28c)]&&(this[_0x40da75(0x242)](),this[_0x40da75(0x232)](_0x54360f[_0x40da75(0x28c)],_0x54360f[_0x40da75(0x275)]),this[_0x40da75(0x1d1)]=_0x54360f['shapeId']),this['_findNearestConnectionSite'](_0x32eb85)):(this[_0x40da75(0x1d1)]!==null&&(this[_0x40da75(0x242)](),this[_0x40da75(0x1d1)]=null),null);}[_0x22001c(0x1ce)](){const _0x2f038d=_0x22001c;this['_clearConnectionSites'](),this[_0x2f038d(0x42d)]=null,this[_0x2f038d(0x1d1)]=null,this['_highlightedSiteIndex']=-0x1,this[_0x2f038d(0x441)]=null;}[_0x22001c(0x206)](){const _0x3f1a7b=_0x22001c;return this[_0x3f1a7b(0x1d1)]===null||this[_0x3f1a7b(0x259)]<0x0?null:{'shapeId':this[_0x3f1a7b(0x1d1)],'cxnIndex':this[_0x3f1a7b(0x259)]};}[_0x22001c(0x25a)](_0x2e8f5a){const _0x4411ec=_0x22001c;let _0xc013ad=this[_0x4411ec(0x17b)][_0x4411ec(0x390)](this['_unitId'],this[_0x4411ec(0x397)]);for(let _0x14d385 of Object[_0x4411ec(0x26d)](_0xc013ad)){if(_0x14d385===this[_0x4411ec(0x441)]||_0xc013ad[_0x14d385][_0x4411ec(0x235)]!==a[_0x4411ec(0x2c3)][_0x4411ec(0x2ef)])continue;let _0xe12405=this[_0x4411ec(0x209)][_0x4411ec(0x44e)](this[_0x4411ec(0x296)],this[_0x4411ec(0x397)],_0x14d385);if(!_0xe12405||(0x0,n[_0x4411ec(0x1cd)])(_0xe12405[_0x4411ec(0x19a)]())||_0xe12405[_0x4411ec(0x281)]()[_0x4411ec(0x285)]===0x0||!this[_0x4411ec(0x42d)])continue;let _0x4fc31d=(0x0,s[_0x4411ec(0x1f0)])({'unitId':this['_unitId'],'subUnitId':this[_0x4411ec(0x397)],'drawingId':_0x14d385}),_0x177d3a=this[_0x4411ec(0x42d)]['getObjectIncludeInGroup'](_0x4fc31d);if(!_0x177d3a)continue;let {left:_0x1393e1,top:_0x3a1239,width:_0xfb4e7,height:_0x392230}=_0x177d3a['getRealBound'](),_0x55e1b2=_0x1393e1+_0xfb4e7/0x2,_0x30a267=_0x3a1239+_0x392230/0x2,_0x1b2847=_0x177d3a[_0x4411ec(0x20f)]['getMatrix'](),_0x536d65=new c['Transform']([_0x1b2847[0x0],_0x1b2847[0x1],_0x1b2847[0x2],_0x1b2847[0x3],_0x55e1b2,_0x30a267]),_0x49acf4=_0x177d3a[_0x4411ec(0x2ac)](),_0x3cf2e9=(_0x177d3a[_0x4411ec(0x26e)]&&(_0x49acf4==null?void 0x0:_0x49acf4[_0x4411ec(0x313)])===c['RENDER_CLASS_TYPE'][_0x4411ec(0x176)]?_0x49acf4[_0x4411ec(0x27a)]['multiply'](_0x536d65):_0x536d65)[_0x4411ec(0x419)]()['applyPoint'](_0x2e8f5a),_0x1d394b=_0xfb4e7/0x2,_0x424065=_0x392230/0x2;if(_0x3cf2e9['x']>=-_0x1d394b-0x5&&_0x3cf2e9['x']<=_0x1d394b+0x5&&_0x3cf2e9['y']>=-_0x424065-0x5&&_0x3cf2e9['y']<=_0x424065+0x5)return{'shapeId':_0x14d385,'shapeModel':_0xe12405};}return null;}[_0x22001c(0x232)](_0xb6894d,_0xbdb2e9){const _0x4aa7b4=_0x22001c;if(!this[_0x4aa7b4(0x42d)])return;let _0x1544b6=(0x0,s[_0x4aa7b4(0x1f0)])({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':_0xb6894d}),_0x4d5993=this['_currentScene']['getObjectIncludeInGroup'](_0x1544b6);if(!_0x4d5993)return;let {left:_0xf78bf2,top:_0x32134b,width:_0x58bfe7,height:_0x3b64c5}=_0x4d5993['getRealBound'](),_0x4af259=_0xf78bf2+_0x58bfe7/0x2,_0x328bde=_0x32134b+_0x3b64c5/0x2,_0x7dbf2f=_0x4d5993[_0x4aa7b4(0x20f)][_0x4aa7b4(0x3f3)](),_0x2df302=new c[(_0x4aa7b4(0x202))]([_0x7dbf2f[0x0],_0x7dbf2f[0x1],_0x7dbf2f[0x2],_0x7dbf2f[0x3],_0x4af259,_0x328bde]),_0x1e45bb=_0x4d5993[_0x4aa7b4(0x2ac)](),_0x20bd9f=_0x4d5993['isInGroup']&&(_0x1e45bb==null?void 0x0:_0x1e45bb[_0x4aa7b4(0x313)])===c[_0x4aa7b4(0x3ce)]['GROUP']?_0x1e45bb[_0x4aa7b4(0x27a)][_0x4aa7b4(0x239)](_0x2df302):_0x2df302;_0xbdb2e9[_0x4aa7b4(0x2c1)]({'width':_0x58bfe7,'height':_0x3b64c5});let _0x1b1191=_0xbdb2e9[_0x4aa7b4(0x281)]();for(let _0x23d77b of _0x1b1191){let _0x3360d4=_0x23d77b['x']-_0x58bfe7/0x2,_0x45ccfe=_0x23d77b['y']-_0x3b64c5/0x2,_0x17417a=_0x20bd9f[_0x4aa7b4(0x42a)]({'x':_0x3360d4,'y':_0x45ccfe}),_0x24ddbe=_0x17417a['x'],_0x4dc96a=_0x17417a['y'],_0x5021f6=new gt(_0x4aa7b4(0x386)+_0xb6894d+'-'+_0x23d77b[_0x4aa7b4(0x428)],{'left':_0x24ddbe-n[_0x4aa7b4(0x41f)][_0x4aa7b4(0x173)],'top':_0x4dc96a-n['ShapeDefaultConfig'][_0x4aa7b4(0x173)],'targetShapeId':_0xb6894d,'cxnIndex':_0x23d77b[_0x4aa7b4(0x428)],'unitId':this[_0x4aa7b4(0x296)],'subUnitId':this[_0x4aa7b4(0x397)],'width':n[_0x4aa7b4(0x41f)][_0x4aa7b4(0x173)]*0x2,'height':n[_0x4aa7b4(0x41f)]['cxnPointRadius']*0x2,'zIndex':c[_0x4aa7b4(0x418)]+0x2,'evented':!0x1});this[_0x4aa7b4(0x370)][_0x4aa7b4(0x2f0)](_0x5021f6),this[_0x4aa7b4(0x42d)][_0x4aa7b4(0x167)](_0x5021f6,c[_0x4aa7b4(0x418)]+0x2);}}[_0x22001c(0x2e4)](_0x413e33){const _0x5bcd09=_0x22001c;let _0x386d53=null,_0x30cfe1=0x1/0x0,_0x5893a9=null;for(let _0x1de338 of this[_0x5bcd09(0x370)]){let _0x2a5534=_0x1de338[_0x5bcd09(0x16d)]+n[_0x5bcd09(0x41f)]['cxnPointRadius'],_0x2ad30e=_0x1de338[_0x5bcd09(0x230)]+n[_0x5bcd09(0x41f)]['cxnPointRadius'],_0x32b667=_0x413e33['x']-_0x2a5534,_0x4eb901=_0x413e33['y']-_0x2ad30e,_0x39427a=Math['sqrt'](_0x32b667*_0x32b667+_0x4eb901*_0x4eb901);_0x39427a<_0x30cfe1&&(_0x30cfe1=_0x39427a,_0x386d53=_0x1de338,_0x5893a9={'x':_0x2a5534,'y':_0x2ad30e});}let _0x29427e=_0x30cfe1<=0xa&&_0x386d53?_0x386d53['getConnectionInfo']()['cxnIndex']:-0x1;if(_0x29427e!==this['_highlightedSiteIndex']){for(let _0x4cafa3 of this['_connectionSiteObjects']){let _0x14ece8=_0x4cafa3[_0x5bcd09(0x3ba)]();_0x4cafa3[_0x5bcd09(0x337)](_0x14ece8[_0x5bcd09(0x3ae)]===_0x29427e);}this['_highlightedSiteIndex']=_0x29427e;}if(_0x30cfe1<=0xa&&_0x386d53&&_0x5893a9){let _0xc9320c=_0x386d53[_0x5bcd09(0x3ba)](),_0x42708e=this[_0x5bcd09(0x1b2)](_0xc9320c[_0x5bcd09(0x28c)],_0xc9320c['cxnIndex']);return{'shapeId':_0xc9320c[_0x5bcd09(0x28c)],'cxnIndex':_0xc9320c['cxnIndex'],'unitId':_0xc9320c[_0x5bcd09(0x298)],'subUnitId':_0xc9320c['subUnitId'],'worldPoint':_0x5893a9,'angle':_0x42708e};}return null;}[_0x22001c(0x1b2)](_0x47ce84,_0x5c759b){const _0x2fe22a=_0x22001c;let _0x3d81a6=this['_sheetsShapeService']['getShapeModel'](this[_0x2fe22a(0x296)],this['_subUnitId'],_0x47ce84);if(!_0x3d81a6)return 0x0;let _0x34a6e3=this[_0x2fe22a(0x17b)][_0x2fe22a(0x29f)]({'unitId':this[_0x2fe22a(0x296)],'subUnitId':this[_0x2fe22a(0x397)],'drawingId':_0x47ce84});if(!(_0x34a6e3!=null&&_0x34a6e3[_0x2fe22a(0x20f)]))return 0x0;let {width:_0x14b7c6=0x0,height:_0x4ece84=0x0,flipX:_0x5e7601=!0x1,flipY:_0x2877b6=!0x1}=_0x34a6e3['transform'];_0x3d81a6['updateContext']({'width':_0x14b7c6,'height':_0x4ece84});let _0x5c898d=_0x3d81a6['getConnectionSiteList']()[_0x2fe22a(0x2c6)](_0x1e5125=>_0x1e5125['index']===_0x5c759b);if(!_0x5c898d)return 0x0;let _0x3c37cd=_0x5c898d[_0x2fe22a(0x38a)]/0xea60;return _0x5e7601&&(_0x3c37cd=0xb4-_0x3c37cd),_0x2877b6&&(_0x3c37cd=-_0x3c37cd),_0x3c37cd=(_0x3c37cd%0x168+0x168)%0x168,_0x3c37cd;}[_0x22001c(0x242)](){const _0x1d416f=_0x22001c;for(let _0x213bf0 of this['_connectionSiteObjects'])_0x213bf0['dispose']();this[_0x1d416f(0x370)]=[],this[_0x1d416f(0x259)]=-0x1;}[_0x22001c(0x2db)](){const _0xff191c=_0x22001c;this['_clearConnectionSites'](),super[_0xff191c(0x2db)]();}};X=k([O(0x1,(0x0,a['Inject'])(c['IRenderManagerService'])),O(0x2,(0x0,a['Inject'])(s[_0x22001c(0x1a7)])),O(0x3,(0x0,a[_0x22001c(0x299)])(i[_0x22001c(0x1e3)]))],X);let Z=class extends a[_0x22001c(0x35c)]{constructor(_0x21a3ee,_0x26316a,_0xe7f45c,_0x1e2f82,_0xd5d1e){const _0x2361c8=_0x22001c;super(),this[_0x2361c8(0x350)]=_0x21a3ee,this[_0x2361c8(0x16c)]=_0x26316a,this[_0x2361c8(0x329)]=_0xe7f45c,this[_0x2361c8(0x349)]=_0x1e2f82,this[_0x2361c8(0x33e)]=_0xd5d1e,T(this,'_copyInfo',void 0x0),this[_0x2361c8(0x16a)](),this[_0x2361c8(0x13c)]();}get[_0x22001c(0x2bb)](){const _0x2d8a19=_0x22001c;return this[_0x2d8a19(0x329)][_0x2d8a19(0x42e)]();}[_0x22001c(0x13c)](){const _0x177fed=_0x22001c;this[_0x177fed(0x33e)][_0x177fed(0x219)](({fromUnitId:_0x17c059,fromSubUnitId:_0x2412eb,toUnitId:_0x1e2ab5,toSubUnitId:_0x5173cb,idMap:_0x356ee1})=>{const _0x524afd=_0x177fed;let _0x35a94f=[],_0x2c46d8=[];for(let [_0xe02353,_0x2461a3]of _0x356ee1[_0x524afd(0x133)]()){let _0x3a97ea=this['_shapeService'][_0x524afd(0x44e)](_0x17c059,_0x2412eb,_0xe02353);if(!_0x3a97ea)continue;let _0x3abca8=_0x3a97ea['getShapeType'](),_0x3e4d2e=JSON[_0x524afd(0x1a8)](JSON[_0x524afd(0x29d)](_0x3a97ea[_0x524afd(0x12e)]()));if(_0x3e4d2e[_0x524afd(0x2d5)]){var _0x2a2f88,_0x17580f;let _0x4e07da=(_0x2a2f88=_0x3e4d2e['relation'][_0x524afd(0x198)])==null?void 0x0:_0x2a2f88[_0x524afd(0x28c)],_0x3532dc=(_0x17580f=_0x3e4d2e['relation']['to'])==null?void 0x0:_0x17580f[_0x524afd(0x28c)],_0x47276a=!_0x4e07da||_0x356ee1[_0x524afd(0x2ee)](_0x4e07da),_0x33e866=!_0x3532dc||_0x356ee1[_0x524afd(0x2ee)](_0x3532dc);_0x47276a&&_0x4e07da&&_0x3e4d2e[_0x524afd(0x2d5)][_0x524afd(0x198)]?_0x3e4d2e[_0x524afd(0x2d5)][_0x524afd(0x198)]={..._0x3e4d2e[_0x524afd(0x2d5)][_0x524afd(0x198)],'shapeId':_0x356ee1[_0x524afd(0x38c)](_0x4e07da)}:_0x3e4d2e[_0x524afd(0x2d5)][_0x524afd(0x198)]=void 0x0,_0x33e866&&_0x3532dc&&_0x3e4d2e['relation']['to']?_0x3e4d2e[_0x524afd(0x2d5)]['to']={..._0x3e4d2e[_0x524afd(0x2d5)]['to'],'shapeId':_0x356ee1[_0x524afd(0x38c)](_0x3532dc)}:_0x3e4d2e[_0x524afd(0x2d5)]['to']=void 0x0;}_0x35a94f['push']({'id':i[_0x524afd(0x196)]['id'],'params':{'unitId':_0x1e2ab5,'subUnitId':_0x5173cb,'shapeId':_0x2461a3,'shapeType':_0x3abca8,'shapeData':_0x3e4d2e}}),_0x2c46d8[_0x524afd(0x2f0)]({'id':i[_0x524afd(0x3a7)]['id'],'params':{'unitId':_0x1e2ab5,'subUnitId':_0x5173cb,'shapeId':_0x2461a3}});}return{'redos':_0x35a94f,'undos':_0x2c46d8};});}[_0x22001c(0x16a)](){const _0x397c05=_0x22001c;this[_0x397c05(0x304)](this[_0x397c05(0x16c)]['addClipboardHook']({'id':'sheets-shape-ui','onBeforeCopy':(_0x563b5d,_0x2ac28a,_0x18ac0a,_0x482b4c)=>{const _0x5202e4=_0x397c05;this['_copyInfo']=null;let _0x3ebe51=this[_0x5202e4(0x2bb)];if(_0x3ebe51[_0x5202e4(0x285)]){let _0x458eeb=_0x3ebe51['filter'](_0x4c2c28=>_0x4c2c28[_0x5202e4(0x235)]===a[_0x5202e4(0x2c3)][_0x5202e4(0x2ef)]);if(_0x458eeb['length']===0x0)return;this['_copyInfo']={'unitId':_0x563b5d,'subUnitId':_0x2ac28a,'copyType':_0x482b4c,'drawings':_0x458eeb};}else this[_0x5202e4(0x162)](_0x563b5d,_0x2ac28a,_0x18ac0a,_0x482b4c);},'onPasteCells':(_0x4a05fd,_0x4f657f,_0x16028a,_0x5ce4a5)=>{const _0x1f37ce=_0x397c05;if(!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x268f8b}=_0x5ce4a5;return _0x268f8b===l[_0x1f37ce(0x31a)][_0x1f37ce(0x1b9)]?this[_0x1f37ce(0x37b)](_0x4f657f,this[_0x1f37ce(0x3f0)][_0x1f37ce(0x1da)]===l['COPY_TYPE'][_0x1f37ce(0x1e9)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x14df15=>this['_copyInfo']?this[_0x397c05(0x37b)](_0x14df15,this[_0x397c05(0x3f0)][_0x397c05(0x1da)]===l[_0x397c05(0x249)]['CUT']):{'redos':[],'undos':[]}}));}[_0x22001c(0x162)](_0x7a99eb,_0x3fdd4c,_0xb1b3ac,_0x58d7bd){const _0x4dde55=_0x22001c;let _0x58dc7b=this[_0x4dde55(0x350)][_0x4dde55(0x358)](_0x7a99eb,_0x3fdd4c);if(!_0x58dc7b)return;let _0x93ba48=(0x0,o['attachRangeWithCoord'])(_0x58dc7b,_0xb1b3ac);if(!_0x93ba48)return;let {startX:_0x30c95a,endX:_0x40e2a4,startY:_0x32e632,endY:_0x224773}=_0x93ba48,_0x159542=this['_sheetDrawingService'][_0x4dde55(0x390)](_0x7a99eb,_0x3fdd4c),_0x327057=this[_0x4dde55(0x2bb)]['slice']();for(let [_0x173979,_0x44365e]of Object[_0x4dde55(0x133)](_0x159542)){if(_0x44365e[_0x4dde55(0x235)]!==a[_0x4dde55(0x2c3)][_0x4dde55(0x2ef)])continue;let {transform:_0x3e54d6}=_0x44365e;if(!_0x3e54d6)continue;let {left:_0x23951c=0x0,top:_0x442271=0x0,width:_0x1789ee=0x0,height:_0x42203f=0x0}=_0x3e54d6;_0x30c95a<=_0x23951c&&_0x40e2a4>=_0x23951c+_0x1789ee&&_0x32e632<=_0x442271&&_0x224773>=_0x442271+_0x42203f&&_0x327057[_0x4dde55(0x2f0)](_0x44365e);}_0x327057[_0x4dde55(0x285)]>0x0&&(this[_0x4dde55(0x3f0)]={'unitId':_0x7a99eb,'subUnitId':_0x3fdd4c,'copyType':_0x58d7bd,'copyRange':_0xb1b3ac,'drawings':_0x327057});}[_0x22001c(0x37b)](_0x3e2838,_0x139a06){const _0x19a74e=_0x22001c;let {unitId:_0xe1662,subUnitId:_0x5f3011,range:_0x206146}=_0x3e2838,_0x31d4fd=this[_0x19a74e(0x350)][_0x19a74e(0x358)](_0xe1662,_0x5f3011);if(!_0x31d4fd)return{'redos':[],'undos':[]};let _0xa2c806=(0x0,o['discreteRangeToRange'])(_0x206146),{unitId:_0x32fdec,subUnitId:_0x592fb9,copyRange:_0x53b032,drawings:_0x456470}=this[_0x19a74e(0x3f0)],_0x35891b=this['_sheetSkeletonService']['getSkeleton'](_0x32fdec,_0x592fb9);if(!_0x35891b)return{'redos':[],'undos':[]};let _0x257aed;if(!_0x53b032){let _0xc10b12=0x1/0x0,_0x1afd1c=0x1/0x0;for(let _0x4cb2d2 of _0x456470){let {left:_0x74dbc0=0x0,top:_0x275e5a=0x0}=_0x4cb2d2[_0x19a74e(0x20f)]??{};_0x74dbc0<_0xc10b12&&(_0xc10b12=_0x74dbc0),_0x275e5a<_0x1afd1c&&(_0x1afd1c=_0x275e5a);}_0xc10b12!==0x1/0x0&&_0x1afd1c!==0x1/0x0&&(_0x257aed={'left':_0xc10b12,'top':_0x1afd1c});}let _0x43d32f=new Map();if(!_0x139a06){for(let _0x413fa5 of _0x456470)_0x43d32f[_0x19a74e(0x1b7)](_0x413fa5[_0x19a74e(0x184)],(0x0,a['generateRandomId'])());}let _0x6dcbd1=[],_0x93af5=[];for(let _0x227104 of _0x456470){let {drawingId:_0x74105f,transform:_0xd5b8f3,sheetTransform:_0x5f5858}=_0x227104;if(!_0xd5b8f3||!_0x5f5858)continue;let _0x5f165e=this[_0x19a74e(0x365)]({'transform':_0xd5b8f3,'sheetTransform':_0x5f5858},{'skeleton':_0x35891b,'range':_0x53b032},{'skeleton':_0x31d4fd,'range':_0xa2c806},_0x257aed);if(_0x139a06){let {redos:_0x38fb78,undos:_0x235793}=this[_0x19a74e(0x2ce)]({'fromUnitId':_0x32fdec,'fromSubUnitId':_0x592fb9,'toUnitId':_0xe1662,'toSubUnitId':_0x5f3011,'drawing':_0x227104,'newTransforms':_0x5f165e});_0x6dcbd1[_0x19a74e(0x2f0)](..._0x38fb78),_0x93af5['push'](..._0x235793);continue;}let {redos:_0x791f4c,undos:_0x45eb2a}=this[_0x19a74e(0x427)]({'toUnitId':_0xe1662,'toSubUnitId':_0x5f3011,'drawing':_0x227104,'newTransforms':_0x5f165e,'newDrawingId':_0x43d32f[_0x19a74e(0x38c)](_0x74105f),'idMap':_0x43d32f});_0x6dcbd1[_0x19a74e(0x2f0)](..._0x791f4c),_0x93af5[_0x19a74e(0x2f0)](..._0x45eb2a);}return{'redos':_0x6dcbd1,'undos':_0x93af5};}[_0x22001c(0x2ce)](_0x57c187){const _0x57987f=_0x22001c;let {fromUnitId:_0x65ba4a,fromSubUnitId:_0x1b1b1f,toUnitId:_0x4a4084,toSubUnitId:_0x515cb5,drawing:_0x2d3048,newTransforms:_0x59e784}=_0x57c187,_0x49607d={..._0x2d3048,'unitId':_0x4a4084,'subUnitId':_0x515cb5,'transform':_0x59e784[_0x57987f(0x20f)],'sheetTransform':_0x59e784['sheetTransform']};if(_0x4a4084===_0x65ba4a&&_0x515cb5===_0x1b1b1f){let {redo:_0x50217c,undo:_0xad1043,objects:_0x25e5de}=this[_0x57987f(0x329)][_0x57987f(0x38b)]([_0x49607d]);return{'redos':[{'id':p['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4a4084,'subUnitId':_0x515cb5,'type':p['DrawingApplyType'][_0x57987f(0x3b5)],'op':_0x50217c,'objects':_0x25e5de}}],'undos':[{'id':p[_0x57987f(0x204)]['id'],'params':{'unitId':_0x4a4084,'subUnitId':_0x515cb5,'type':p[_0x57987f(0x2d2)]['UPDATE'],'op':_0xad1043,'objects':_0x25e5de}}]};}else{let _0x3492f1=this[_0x57987f(0x329)][_0x57987f(0x317)]([_0x2d3048]),_0x487ba0=this[_0x57987f(0x329)][_0x57987f(0x3c7)]([_0x49607d]),_0x15ca99=this[_0x57987f(0x349)][_0x57987f(0x44e)](_0x2d3048[_0x57987f(0x298)],_0x2d3048['subUnitId'],_0x2d3048[_0x57987f(0x184)]);if(!_0x15ca99)return{'redos':[],'undos':[]};let _0x663e4c=_0x15ca99[_0x57987f(0x19a)](),_0x4df664=JSON[_0x57987f(0x1a8)](JSON[_0x57987f(0x29d)](_0x15ca99[_0x57987f(0x12e)]()));return{'redos':[{'id':p[_0x57987f(0x204)]['id'],'params':{'unitId':_0x65ba4a,'subUnitId':_0x1b1b1f,'type':p[_0x57987f(0x2d2)][_0x57987f(0x263)],'op':_0x3492f1[_0x57987f(0x1e1)],'objects':_0x3492f1[_0x57987f(0x154)]}},{'id':i[_0x57987f(0x3a7)]['id'],'params':{'unitId':_0x65ba4a,'subUnitId':_0x1b1b1f,'shapeId':_0x2d3048[_0x57987f(0x184)]}},{'id':p[_0x57987f(0x204)]['id'],'params':{'unitId':_0x4a4084,'subUnitId':_0x515cb5,'type':p[_0x57987f(0x2d2)][_0x57987f(0x3c2)],'op':_0x487ba0[_0x57987f(0x1e1)],'objects':_0x487ba0[_0x57987f(0x154)]}},{'id':i[_0x57987f(0x196)]['id'],'params':{'unitId':_0x4a4084,'subUnitId':_0x515cb5,'shapeId':_0x2d3048['drawingId'],'shapeType':_0x663e4c,'shapeData':_0x4df664}}],'undos':[{'id':p[_0x57987f(0x204)]['id'],'params':{'unitId':_0x65ba4a,'subUnitId':_0x1b1b1f,'type':p[_0x57987f(0x2d2)][_0x57987f(0x3c2)],'op':_0x3492f1[_0x57987f(0x40d)],'objects':_0x3492f1[_0x57987f(0x154)]}},{'id':i[_0x57987f(0x196)]['id'],'params':{'unitId':_0x65ba4a,'subUnitId':_0x1b1b1f,'shapeId':_0x2d3048[_0x57987f(0x184)],'shapeType':_0x663e4c,'shapeData':_0x4df664}},{'id':p[_0x57987f(0x204)]['id'],'params':{'unitId':_0x4a4084,'subUnitId':_0x515cb5,'type':p['DrawingApplyType'][_0x57987f(0x263)],'op':_0x487ba0[_0x57987f(0x40d)],'objects':_0x487ba0[_0x57987f(0x154)]}},{'id':i[_0x57987f(0x3a7)]['id'],'params':{'unitId':_0x4a4084,'subUnitId':_0x515cb5,'shapeId':_0x2d3048[_0x57987f(0x184)]}}]};}}['_generateCopyPasteMutations'](_0x55f5b2){const _0x467ad0=_0x22001c;let {toUnitId:_0x3dce5c,toSubUnitId:_0x11abd2,drawing:_0x591b3d,newTransforms:_0x12989d,newDrawingId:_0x25cc16,idMap:_0x423ae0}=_0x55f5b2,_0x4e9d46={..._0x591b3d,'unitId':_0x3dce5c,'subUnitId':_0x11abd2,'drawingId':_0x25cc16,'transform':_0x12989d[_0x467ad0(0x20f)],'sheetTransform':_0x12989d['sheetTransform']},{redo:_0x27904d,undo:_0x337526,objects:_0x26e218}=this[_0x467ad0(0x329)]['getBatchAddOp']([_0x4e9d46]),_0x243dac=this[_0x467ad0(0x349)]['getShapeModel'](_0x591b3d[_0x467ad0(0x298)],_0x591b3d['subUnitId'],_0x591b3d[_0x467ad0(0x184)]);if(!_0x243dac)return{'redos':[],'undos':[]};let _0x15361d=_0x243dac[_0x467ad0(0x19a)](),_0x4b9ef5=JSON[_0x467ad0(0x1a8)](JSON['stringify'](_0x243dac[_0x467ad0(0x12e)]()));if(_0x4b9ef5[_0x467ad0(0x2d5)]){var _0x201ae0,_0x1b9cc7;let _0x594156=(_0x201ae0=_0x4b9ef5[_0x467ad0(0x2d5)][_0x467ad0(0x198)])==null?void 0x0:_0x201ae0[_0x467ad0(0x28c)],_0x340c5c=(_0x1b9cc7=_0x4b9ef5[_0x467ad0(0x2d5)]['to'])==null?void 0x0:_0x1b9cc7[_0x467ad0(0x28c)],_0x44c57d=!_0x594156||_0x423ae0[_0x467ad0(0x2ee)](_0x594156),_0x22ff5e=!_0x340c5c||_0x423ae0['has'](_0x340c5c);_0x44c57d&&_0x594156&&_0x4b9ef5[_0x467ad0(0x2d5)][_0x467ad0(0x198)]?_0x4b9ef5[_0x467ad0(0x2d5)][_0x467ad0(0x198)]={..._0x4b9ef5[_0x467ad0(0x2d5)][_0x467ad0(0x198)],'shapeId':_0x423ae0['get'](_0x594156)}:_0x4b9ef5['relation']['from']=void 0x0,_0x22ff5e&&_0x340c5c&&_0x4b9ef5['relation']['to']?_0x4b9ef5[_0x467ad0(0x2d5)]['to']={..._0x4b9ef5[_0x467ad0(0x2d5)]['to'],'shapeId':_0x423ae0[_0x467ad0(0x38c)](_0x340c5c)}:_0x4b9ef5[_0x467ad0(0x2d5)]['to']=void 0x0;}return{'redos':[{'id':p[_0x467ad0(0x204)]['id'],'params':{'unitId':_0x3dce5c,'subUnitId':_0x11abd2,'type':p[_0x467ad0(0x2d2)]['INSERT'],'op':_0x27904d,'objects':_0x26e218}},{'id':i[_0x467ad0(0x196)]['id'],'params':{'unitId':_0x3dce5c,'subUnitId':_0x11abd2,'shapeId':_0x25cc16,'shapeType':_0x15361d,'shapeData':_0x4b9ef5}}],'undos':[{'id':p['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3dce5c,'subUnitId':_0x11abd2,'type':p[_0x467ad0(0x2d2)][_0x467ad0(0x263)],'op':_0x337526,'objects':_0x26e218}},{'id':i[_0x467ad0(0x3a7)]['id'],'params':{'unitId':_0x3dce5c,'subUnitId':_0x11abd2,'shapeId':_0x25cc16}}]};}[_0x22001c(0x365)](_0x5b03af,_0xa87b0d,_0x1390c5,_0x557926){const _0x58678c=_0x22001c;let {range:_0x675a75,skeleton:_0x24202a}=_0xa87b0d,{range:_0x23d3a5,skeleton:_0x4e864f}=_0x1390c5,{transform:_0x5bf9d4,sheetTransform:_0x206459}=_0x5b03af,_0x48e0ab={..._0x5bf9d4};if(_0x675a75){let _0x19657a=(0x0,o[_0x58678c(0x36e)])(_0x24202a,_0x675a75),_0x4c4039=(0x0,o['attachRangeWithCoord'])(_0x4e864f,_0x23d3a5);if(_0x19657a&&_0x4c4039){let _0xdaf346=_0x4c4039['startX']-_0x19657a[_0x58678c(0x394)],_0x13e699=_0x4c4039[_0x58678c(0x2f9)]-_0x19657a[_0x58678c(0x2f9)];_0x48e0ab[_0x58678c(0x16d)]=(_0x48e0ab[_0x58678c(0x16d)]??0x0)+_0xdaf346,_0x48e0ab[_0x58678c(0x230)]=(_0x48e0ab[_0x58678c(0x230)]??0x0)+_0x13e699;}}else{let _0x13c9fd=(0x0,o[_0x58678c(0x36e)])(_0x4e864f,_0x23d3a5);if(_0x557926&&_0x13c9fd){let _0x1d6b95=(_0x48e0ab[_0x58678c(0x16d)]??0x0)-_0x557926[_0x58678c(0x16d)],_0xc25bbc=(_0x48e0ab[_0x58678c(0x230)]??0x0)-_0x557926[_0x58678c(0x230)];_0x48e0ab[_0x58678c(0x16d)]=_0x13c9fd[_0x58678c(0x394)]+_0x1d6b95,_0x48e0ab[_0x58678c(0x230)]=_0x13c9fd[_0x58678c(0x2f9)]+_0xc25bbc;}else _0x48e0ab[_0x58678c(0x16d)]=_0x13c9fd==null?void 0x0:_0x13c9fd[_0x58678c(0x394)],_0x48e0ab['top']=_0x13c9fd==null?void 0x0:_0x13c9fd[_0x58678c(0x2f9)];}return{'transform':_0x48e0ab,'sheetTransform':(0x0,p[_0x58678c(0x1cc)])(_0x48e0ab,_0x4e864f)??_0x206459};}};Z=k([O(0x0,(0x0,a[_0x22001c(0x299)])(o['SheetSkeletonService'])),O(0x1,(0x0,a['Inject'])(l['ISheetClipboardService'])),O(0x2,(0x0,a[_0x22001c(0x299)])(p[_0x22001c(0x3d6)])),O(0x3,(0x0,a[_0x22001c(0x299)])(i['SheetsShapeService'])),O(0x4,(0x0,a['Inject'])(_[_0x22001c(0x2a4)]))],Z);var _t=class extends c[_0x22001c(0x170)]{constructor(_0x381d4d,_0x325e8c){const _0xcf9635=_0x22001c;super(_0x381d4d,_0x325e8c),T(this,_0xcf9635(0x293),null),T(this,'_index',null),T(this,'_unitId',null),T(this,_0xcf9635(0x397),null),T(this,_0xcf9635(0x402),!0x1),_0x325e8c&&this[_0xcf9635(0x28b)](_0x325e8c);}['getDrawingSearch'](){const _0x2cf0c7=_0x22001c;return{'unitId':this[_0x2cf0c7(0x296)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x2cf0c7(0x293)]};}[_0x22001c(0x28b)](_0x2a4843){const _0x377133=_0x22001c;_0x2a4843[_0x377133(0x28c)]!==void 0x0&&(this[_0x377133(0x293)]=_0x2a4843[_0x377133(0x28c)]),_0x2a4843[_0x377133(0x298)]!==void 0x0&&(this[_0x377133(0x296)]=_0x2a4843['unitId']),_0x2a4843['subUnitId']!==void 0x0&&(this[_0x377133(0x397)]=_0x2a4843[_0x377133(0x388)]),_0x2a4843['isStartConnectorPoint']!==void 0x0&&(this[_0x377133(0x402)]=_0x2a4843[_0x377133(0x455)]),this[_0x377133(0x359)]({'width':_0x2a4843[_0x377133(0x21d)],'height':_0x2a4843[_0x377133(0x330)]});}[_0x22001c(0x408)](_0x1d645a){const _0x3d2f7b=_0x22001c;c[_0x3d2f7b(0x301)]['drawWith'](_0x1d645a,{'radius':n[_0x3d2f7b(0x41f)]['cxnPointRadius'],'fill':n[_0x3d2f7b(0x41f)]['cxnPointFill'],'stroke':n[_0x3d2f7b(0x41f)]['cxnPointStroke'],'strokeWidth':n[_0x3d2f7b(0x41f)][_0x3d2f7b(0x34b)],'evented':!0x0});}};let vt=class extends a[_0x22001c(0x35c)]{constructor(_0x199ab6,_0x7e0181,_0x3ba847,_0x38f412,_0x3db933,_0x5ab061,_0x257bd0,_0x40fbeb){const _0x5c9dcf=_0x22001c;super(),this[_0x5c9dcf(0x3ee)]=_0x199ab6,this[_0x5c9dcf(0x409)]=_0x7e0181,this[_0x5c9dcf(0x3f8)]=_0x3ba847,this[_0x5c9dcf(0x17b)]=_0x38f412,this['_univerInstanceService']=_0x3db933,this['_sheetsShapeService']=_0x5ab061,this[_0x5c9dcf(0x272)]=_0x257bd0,this[_0x5c9dcf(0x42f)]=_0x40fbeb,T(this,_0x5c9dcf(0x23a),void 0x0),T(this,_0x5c9dcf(0x296),void 0x0),T(this,_0x5c9dcf(0x397),void 0x0),T(this,_0x5c9dcf(0x3b9),[]),T(this,_0x5c9dcf(0x328),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),T(this,_0x5c9dcf(0x43c),void 0x0),T(this,_0x5c9dcf(0x361),!0x1),T(this,_0x5c9dcf(0x151),!0x1),T(this,_0x5c9dcf(0x134),!0x1),T(this,_0x5c9dcf(0x438),void 0x0),T(this,_0x5c9dcf(0x33f),void 0x0),T(this,_0x5c9dcf(0x2fe),null),this[_0x5c9dcf(0x45f)]();}[_0x22001c(0x45f)](){this['_registerDrawingFocusChangeHandler'](),this['_registerDrawingMoveHandler']();}[_0x22001c(0x3f6)](){const _0xf53daa=_0x22001c;if(!this[_0xf53daa(0x296)]||!this[_0xf53daa(0x397)]||!this[_0xf53daa(0x23a)])return;let _0x326e0f={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0xf53daa(0x23a)]},{transform:_0x236a74}=this[_0xf53daa(0x17b)][_0xf53daa(0x29f)](_0x326e0f);if(_0x236a74)return{'left':_0x236a74[_0xf53daa(0x16d)]||0x0,'top':_0x236a74[_0xf53daa(0x230)]||0x0,'width':_0x236a74[_0xf53daa(0x21d)]||0x0,'height':_0x236a74[_0xf53daa(0x330)]||0x0,'flipX':_0x236a74[_0xf53daa(0x17d)]||!0x1,'flipY':_0x236a74[_0xf53daa(0x374)]||!0x1,'angle':_0x236a74['angle']};}['_addShapeConnectorHandlerObjects'](){const _0x42f60a=_0x22001c;if(this['_unitId']===void 0x0||this[_0x42f60a(0x397)]===void 0x0||this[_0x42f60a(0x23a)]===void 0x0)return;let _0x2dcaba=this[_0x42f60a(0x3f8)]['getRenderUnitById'](this[_0x42f60a(0x296)]);if(!_0x2dcaba||!_0x2dcaba['with'](l[_0x42f60a(0x13a)])['getCurrentSkeleton']())return;let {scene:_0xb7b8f5}=_0x2dcaba,_0x1f94aa=this[_0x42f60a(0x3f6)]();if(!_0x1f94aa)return;let _0x496b21=this[_0x42f60a(0x209)]['getShapeModel'](this['_unitId'],this['_subUnitId'],this[_0x42f60a(0x23a)]);if(!_0x496b21||!(0x0,n[_0x42f60a(0x1cd)])(_0x496b21[_0x42f60a(0x19a)]()))return;let _0x5f5c46=_0x496b21['getConnectorLinePoints']();if(_0x5f5c46[_0x42f60a(0x285)]<0x2)return;let _0x33a672=new n[(_0x42f60a(0x464))](_0x1f94aa),_0x3c90ee=_0x5f5c46[0x0],_0x4f554d=_0x5f5c46[_0x5f5c46['length']-0x1],_0x3a31e7=_0x33a672[_0x42f60a(0x1fa)](_0x3c90ee),_0x71f718=_0x33a672[_0x42f60a(0x1fa)](_0x4f554d);this['_addShapeConnectorHandlerObject'](_0xb7b8f5,{..._0x3a31e7},!0x0),this[_0x42f60a(0x2d6)](_0xb7b8f5,{..._0x71f718},!0x1);}['_addShapeConnectorHandlerObject'](_0x5997a9,_0x12670c,_0x3c6e75){const _0x2e0905=_0x22001c;if(this[_0x2e0905(0x23a)]===void 0x0||this[_0x2e0905(0x296)]===void 0x0||this[_0x2e0905(0x397)]===void 0x0)return;let _0x4a1441=_0x2e0905(0x205)+this[_0x2e0905(0x296)]+'-'+this['_subUnitId']+'-'+this[_0x2e0905(0x23a)]+'-'+(_0x3c6e75?_0x2e0905(0x1ff):_0x2e0905(0x37e)),_0x5e3186=_0x5997a9[_0x2e0905(0x3e5)](_0x4a1441);if(_0x5e3186){_0x5e3186[_0x2e0905(0x359)]({'left':_0x12670c['x']-n['ShapeDefaultConfig'][_0x2e0905(0x173)],'top':_0x12670c['y']-n[_0x2e0905(0x41f)]['cxnPointRadius']});return;}let _0x2c3754=new _t(_0x4a1441,{'left':_0x12670c['x']-n[_0x2e0905(0x41f)][_0x2e0905(0x173)],'top':_0x12670c['y']-n['ShapeDefaultConfig']['cxnPointRadius'],'shapeId':this[_0x2e0905(0x23a)],'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0x3c6e75,'width':n[_0x2e0905(0x41f)]['cxnPointRadius']*0x2,'height':n[_0x2e0905(0x41f)][_0x2e0905(0x173)]*0x2,'zIndex':c['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0});this['_connectorObjects'][_0x2e0905(0x2f0)](_0x2c3754),this[_0x2e0905(0x307)](_0x2c3754,_0x5997a9,_0x3c6e75),_0x5997a9[_0x2e0905(0x167)](_0x2c3754,c[_0x2e0905(0x418)]+0x1);}[_0x22001c(0x41b)](_0x34661d,_0x1ed81b){const _0x229257=_0x22001c;var _0x4f034b;let _0x1460fa={'x':0x0,'y':0x0};if(!_0x34661d||!_0x1ed81b)return _0x1460fa;let _0x2aa474=this[_0x229257(0x3f8)]['getRenderUnitById'](_0x34661d);if(!_0x2aa474||!_0x2aa474['with'](l[_0x229257(0x13a)])[_0x229257(0x358)](_0x1ed81b))return _0x1460fa;let _0x5f2e24=_0x2aa474[_0x229257(0x462)](l['SheetScrollManagerService']),_0x2aa6f5=_0x5f2e24==null?void 0x0:_0x5f2e24[_0x229257(0x1c3)]();if(!_0x2aa6f5)return _0x1460fa;let _0x1805a0=(_0x4f034b=this[_0x229257(0x2d0)][_0x229257(0x32d)](_0x34661d))==null?void 0x0:_0x4f034b[_0x229257(0x157)](_0x1ed81b);if(!_0x1805a0)return _0x1460fa;let _0x14249f=(0x0,l['getViewportByCell'])(_0x2aa6f5[_0x229257(0x1e0)],_0x2aa6f5['sheetViewStartColumn'],_0x2aa474[_0x229257(0x448)],_0x1805a0);return _0x14249f?{'x':_0x14249f[_0x229257(0x1a0)],'y':_0x14249f[_0x229257(0x463)]}:_0x1460fa;}[_0x22001c(0x194)](_0x4a433a,_0xa92603){const _0x116f5c=_0x22001c;var _0x4785f9;let _0x2c3bdc=(_0x4785f9=this[_0x116f5c(0x2d0)]['getUnit'](_0x4a433a))==null?void 0x0:_0x4785f9[_0x116f5c(0x157)](_0xa92603);return(_0x2c3bdc==null?void 0x0:_0x2c3bdc[_0x116f5c(0x34d)]())??0x1;}[_0x22001c(0x39f)](_0x56fead,_0x511c21,_0x171bdd,_0x455762,_0x4057d1){const _0x4e34e7=_0x22001c;this[_0x4e34e7(0x438)][_0x4e34e7(0x36a)](),this[_0x4e34e7(0x33f)][_0x4e34e7(0x36a)](),this[_0x4e34e7(0x272)][_0x4e34e7(0x3de)]();let _0x5944c2=this[_0x4e34e7(0x2fe)];this[_0x4e34e7(0x42f)][_0x4e34e7(0x1ce)]();let _0x15883f=this[_0x4e34e7(0x41b)](this[_0x4e34e7(0x296)],this[_0x4e34e7(0x397)]),_0x12bc30=this[_0x4e34e7(0x194)](this[_0x4e34e7(0x296)],this[_0x4e34e7(0x397)]),_0x52eab1={'x':_0x171bdd['offsetX']/_0x12bc30+_0x15883f['x'],'y':_0x171bdd[_0x4e34e7(0x277)]/_0x12bc30+_0x15883f['y']},_0x2fc830=_0x5944c2?_0x5944c2[_0x4e34e7(0x2e1)]:_0x52eab1,_0x1ec1a9=_0x455762?this[_0x4e34e7(0x43c)][_0x4e34e7(0x3fd)]():this['_activeShapeModel'][_0x4e34e7(0x439)](),_0xb88de0=this[_0x4e34e7(0x43c)][_0x4e34e7(0x19a)]();_0x1ec1a9?this['_handleConnectedEndpointPointerUp'](_0x1ec1a9,_0x2fc830,_0x455762,_0x5944c2,_0x4057d1):this[_0x4e34e7(0x2cb)](_0x511c21,_0x2fc830,_0x455762,_0x5944c2,_0x4057d1,_0xb88de0),this['_isConnecting']=!0x1,this[_0x4e34e7(0x134)]=!0x1,this['_currentConnectionTarget']=null,_0x56fead['enableObjectsEvent']();}[_0x22001c(0x2cb)](_0x5445d3,_0x217752,_0x1d692f,_0x43998c,_0x11e693,_0x4101ea){const _0x4ffd5c=_0x22001c;let _0x1c729f=_0x4101ea===n[_0x4ffd5c(0x225)][_0x4ffd5c(0x41d)]||_0x4101ea===n[_0x4ffd5c(0x225)][_0x4ffd5c(0x286)],_0x59ccc4=_0x1d692f?_0x217752:_0x5445d3,_0x5581f5=_0x1d692f?_0x5445d3:_0x217752,_0x1174ef=this[_0x4ffd5c(0x43c)][_0x4ffd5c(0x314)](),_0x9c0428=(0x0,n[_0x4ffd5c(0x377)])(this[_0x4ffd5c(0x43c)]['getShapeType']()),_0x26bd99=n[_0x4ffd5c(0x464)][_0x4ffd5c(0x1d3)](_0x1174ef,_0x9c0428),_0x443ea6=_0x1c729f?n[_0x4ffd5c(0x464)][_0x4ffd5c(0x45b)](_0x59ccc4,_0x5581f5):n[_0x4ffd5c(0x464)][_0x4ffd5c(0x40c)](_0x5445d3,_0x217752,_0x1d692f,_0x26bd99);_0x43998c?this[_0x4ffd5c(0x1c8)](_0x443ea6,_0x43998c,_0x1d692f,_0x11e693):this['_executeResizeCommand'](_0x443ea6,_0x11e693);}['_handleConnectedEndpointPointerUp'](_0x304326,_0x3a03dc,_0x1514e9,_0x1a49a7,_0x40ae58){const _0x114518=_0x22001c;let _0x2a1629=this[_0x114518(0x287)](_0x304326);if(!_0x2a1629)return;let _0x3bfcfc=_0x1a49a7?_0x1a49a7[_0x114518(0x372)]:this[_0x114518(0x244)](_0x2a1629[_0x114518(0x466)],_0x3a03dc),_0x483ff8;if(_0x1a49a7){let _0x55b843=this[_0x114518(0x17b)][_0x114518(0x29f)]({'unitId':_0x1a49a7[_0x114518(0x298)],'subUnitId':_0x1a49a7['subUnitId'],'drawingId':_0x1a49a7[_0x114518(0x28c)]});if(_0x55b843!=null&&_0x55b843[_0x114518(0x20f)]){let {left:_0x33e315=0x0,top:_0xcaf118=0x0,width:_0x22ead6=0x0,height:_0x5564c9=0x0,angle:_0x5b97a0}=_0x55b843['transform'];_0x483ff8=(0x0,n['getBasicShapeRotateBound'])({'left':_0x33e315,'top':_0xcaf118,'width':_0x22ead6,'height':_0x5564c9},_0x5b97a0||0x0);}else _0x483ff8={'left':_0x3a03dc['x'],'top':_0x3a03dc['y'],'width':0x0,'height':0x0};}else _0x483ff8={'left':_0x3a03dc['x'],'top':_0x3a03dc['y'],'width':0x0,'height':0x0};let _0x3f65b5={'point':_0x3a03dc,'angle':_0x3bfcfc,'bounds':_0x483ff8},_0x9403ce=_0x1514e9?_0x3f65b5:_0x2a1629,_0x163973=_0x1514e9?_0x2a1629:_0x3f65b5,_0x2e475c=this[_0x114518(0x43c)][_0x114518(0x19a)](),_0x15c76a=(0x0,n[_0x114518(0x195)])(_0x9403ce,_0x163973,_0x2e475c);this['_activeShapeModel'][_0x114518(0x416)]();let _0x24feef=(0x0,n[_0x114518(0x43f)])(_0x15c76a,_0x2e475c);_0x1a49a7?this[_0x114518(0x2cf)](_0x24feef,_0x1a49a7,_0x304326,_0x1514e9,_0x40ae58):this[_0x114518(0x1d8)](_0x24feef,_0x304326,_0x1514e9,_0x40ae58);}[_0x22001c(0x1c8)](_0x3958a4,_0x119062,_0x30e723,_0x53a90b){const _0x2123d4=_0x22001c;let _0x53912c=this[_0x2123d4(0x43c)][_0x2123d4(0x12e)]()[_0x2123d4(0x2d5)],_0x471c6b={..._0x53912c},_0x5ef9e8={'shapeId':_0x119062[_0x2123d4(0x28c)],'cxnIndex':_0x119062['cxnIndex']};_0x30e723?_0x471c6b[_0x2123d4(0x198)]=_0x5ef9e8:_0x471c6b['to']=_0x5ef9e8;let _0x566ad1=this[_0x2123d4(0x43c)][_0x2123d4(0x19a)](),_0x55f209=(0x0,n[_0x2123d4(0x43f)])(_0x3958a4[_0x2123d4(0x3d4)],_0x566ad1),_0x282604={'unitId':this[_0x2123d4(0x296)],'subUnitId':this[_0x2123d4(0x397)],'connectorShapeId':this[_0x2123d4(0x23a)],'width':_0x3958a4[_0x2123d4(0x1a2)][_0x2123d4(0x21d)],'height':_0x3958a4[_0x2123d4(0x1a2)][_0x2123d4(0x330)],'left':_0x3958a4['worldRect']['left'],'top':_0x3958a4[_0x2123d4(0x1a2)]['top'],'flipX':_0x3958a4[_0x2123d4(0x1a2)][_0x2123d4(0x17d)]||!0x1,'flipY':_0x3958a4[_0x2123d4(0x1a2)][_0x2123d4(0x374)]||!0x1,'newAdjustValues':_0x55f209[_0x2123d4(0x461)],'oldAdjustValues':_0x53a90b,'oldRelation':_0x53912c,'newRelation':_0x471c6b,'newLineType':_0x55f209[_0x2123d4(0x2cc)],'oldLineType':_0x566ad1};this['_commandService'][_0x2123d4(0x404)](i[_0x2123d4(0x3fb)]['id'],_0x282604);}[_0x22001c(0x3bc)](_0x20f8ca,_0x17dde2){const _0x4af94c=_0x22001c;let _0x4ee882=this[_0x4af94c(0x43c)][_0x4af94c(0x19a)](),_0x811694=(0x0,n[_0x4af94c(0x43f)])(_0x20f8ca[_0x4af94c(0x3d4)],_0x4ee882),_0x351c0e={'unitId':this[_0x4af94c(0x296)],'subUnitId':this[_0x4af94c(0x397)],'shapeId':this[_0x4af94c(0x23a)],'width':_0x20f8ca['worldRect'][_0x4af94c(0x21d)],'height':_0x20f8ca[_0x4af94c(0x1a2)][_0x4af94c(0x330)],'left':_0x20f8ca[_0x4af94c(0x1a2)][_0x4af94c(0x16d)],'top':_0x20f8ca[_0x4af94c(0x1a2)]['top'],'flipX':_0x20f8ca[_0x4af94c(0x1a2)][_0x4af94c(0x17d)]||!0x1,'flipY':_0x20f8ca[_0x4af94c(0x1a2)][_0x4af94c(0x374)]||!0x1,'angle':_0x20f8ca[_0x4af94c(0x1a2)][_0x4af94c(0x372)]||0x0,'newAdjustValues':_0x811694['adjustValues'],'oldAdjustValues':_0x17dde2,'newLineType':_0x811694['lineType'],'oldLineType':_0x4ee882};this[_0x4af94c(0x409)]['executeCommand'](i[_0x4af94c(0x430)]['id'],_0x351c0e);}[_0x22001c(0x2cf)](_0x20e6a8,_0x400e33,_0x425e44,_0x905c92,_0x4c1f08){const _0x401f96=_0x22001c;let _0x26f1ea=this[_0x401f96(0x43c)]['getShapeData']()['relation'],_0x41e95f={..._0x26f1ea},_0x4e0589={'shapeId':_0x400e33[_0x401f96(0x28c)],'cxnIndex':_0x400e33[_0x401f96(0x3ae)]};_0x905c92?(_0x41e95f[_0x401f96(0x198)]=_0x4e0589,_0x41e95f['to']=_0x425e44):(_0x41e95f[_0x401f96(0x198)]=_0x425e44,_0x41e95f['to']=_0x4e0589);let _0x5af4d2={'unitId':this[_0x401f96(0x296)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x401f96(0x23a)],'width':_0x20e6a8[_0x401f96(0x1a2)][_0x401f96(0x21d)],'height':_0x20e6a8['worldRect'][_0x401f96(0x330)],'left':_0x20e6a8[_0x401f96(0x1a2)][_0x401f96(0x16d)],'top':_0x20e6a8[_0x401f96(0x1a2)][_0x401f96(0x230)],'flipX':_0x20e6a8[_0x401f96(0x1a2)][_0x401f96(0x17d)]||!0x1,'flipY':_0x20e6a8[_0x401f96(0x1a2)][_0x401f96(0x374)]||!0x1,'oldAdjustValues':_0x4c1f08,'newAdjustValues':_0x20e6a8[_0x401f96(0x461)],'newLineType':_0x20e6a8['lineType'],'rotation':_0x20e6a8[_0x401f96(0x27d)],'oldRelation':_0x26f1ea,'newRelation':_0x41e95f};this[_0x401f96(0x409)][_0x401f96(0x404)](i[_0x401f96(0x3fb)]['id'],_0x5af4d2);}[_0x22001c(0x1d8)](_0x592c33,_0x338a63,_0x2dece6,_0x188c32){const _0x4e0725=_0x22001c;let _0x5d95b=this[_0x4e0725(0x43c)][_0x4e0725(0x12e)]()[_0x4e0725(0x2d5)],_0x6e7c29={};_0x2dece6?(_0x6e7c29['to']=_0x338a63,_0x6e7c29[_0x4e0725(0x198)]=void 0x0):(_0x6e7c29[_0x4e0725(0x198)]=_0x338a63,_0x6e7c29['to']=void 0x0);let _0xdc65a4={'unitId':this[_0x4e0725(0x296)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x4e0725(0x23a)],'width':_0x592c33[_0x4e0725(0x1a2)][_0x4e0725(0x21d)],'height':_0x592c33[_0x4e0725(0x1a2)][_0x4e0725(0x330)],'left':_0x592c33[_0x4e0725(0x1a2)][_0x4e0725(0x16d)],'top':_0x592c33[_0x4e0725(0x1a2)]['top'],'flipX':_0x592c33[_0x4e0725(0x1a2)][_0x4e0725(0x17d)]||!0x1,'flipY':_0x592c33[_0x4e0725(0x1a2)][_0x4e0725(0x374)]||!0x1,'oldAdjustValues':_0x188c32,'newAdjustValues':_0x592c33[_0x4e0725(0x461)],'newLineType':_0x592c33[_0x4e0725(0x2cc)],'rotation':_0x592c33['rotation'],'oldRelation':_0x5d95b,'newRelation':_0x6e7c29};this[_0x4e0725(0x409)]['executeCommand'](i['UpdateConnectorRelationCommand']['id'],_0xdc65a4);}[_0x22001c(0x307)](_0x13de99,_0x179627,_0x557108){const _0x27d986=_0x22001c;this[_0x27d986(0x304)]((0x0,a[_0x27d986(0x152)])(_0x13de99['onPointerDown$']['subscribeEvent']((_0x2232bd,_0x1054bd)=>{const _0x2fde5e=_0x27d986;let _0xfe20cc=_0x13de99['getDrawingSearch']();if(this[_0x2fde5e(0x43c)]=this['_sheetsShapeService']['getShapeModel'](_0xfe20cc[_0x2fde5e(0x298)],_0xfe20cc[_0x2fde5e(0x388)],_0xfe20cc[_0x2fde5e(0x184)]),!this['_activeShapeModel'])return;let _0x374500={};this[_0x2fde5e(0x43c)][_0x2fde5e(0x2dc)]()[_0x2fde5e(0x1dc)](_0x174aa1=>{const _0xefc356=_0x2fde5e;let _0x884925=this[_0xefc356(0x43c)][_0xefc356(0x41a)](_0x174aa1);_0x884925!==void 0x0&&(_0x374500[_0x174aa1]=_0x884925);});let _0x3b803d=this['_getDrawingRect']();if(!_0x3b803d)return;this[_0x2fde5e(0x328)]={..._0x3b803d};let _0x17836b=new n[(_0x2fde5e(0x464))](this[_0x2fde5e(0x328)]),_0x388238=(0x0,s[_0x2fde5e(0x1f0)])({'unitId':this[_0x2fde5e(0x296)],'subUnitId':this[_0x2fde5e(0x397)],'drawingId':this['_activeShapeId']}),_0x418b4b=_0x179627[_0x2fde5e(0x3e5)](_0x388238);this[_0x2fde5e(0x361)]=!0x0,_0x179627[_0x2fde5e(0x31c)](),this[_0x2fde5e(0x42f)]['startConnectionDetection'](_0x179627,this[_0x2fde5e(0x296)],this['_subUnitId'],this[_0x2fde5e(0x23a)]),this[_0x2fde5e(0x2fe)]=null;let _0x27fd8c=this[_0x2fde5e(0x43c)][_0x2fde5e(0x314)](),_0x5406d0=_0x27fd8c[0x0],_0x299ae7=_0x27fd8c[_0x27fd8c[_0x2fde5e(0x285)]-0x1],_0x57afaa=_0x557108?_0x17836b['localToWorld'](_0x299ae7):_0x17836b[_0x2fde5e(0x1fa)](_0x5406d0);this['_cxtHandlerPointerMove']=_0x179627[_0x2fde5e(0x26a)][_0x2fde5e(0x14a)]((_0x514b27,_0x67bb34)=>{const _0x47d499=_0x2fde5e;if(!this[_0x47d499(0x361)]||!this[_0x47d499(0x43c)])return;this[_0x47d499(0x134)]||=(this['_sheetShapeAdjustController'][_0x47d499(0x435)](),this['_activeShapeModel'][_0x47d499(0x182)](),!0x0);let _0x1e6e07=this[_0x47d499(0x41b)](this[_0x47d499(0x296)],this['_subUnitId']),_0x2ea847=this['_getZoomRatio'](this['_unitId'],this[_0x47d499(0x397)]),_0x2cc008={'x':_0x514b27['offsetX']/_0x2ea847+_0x1e6e07['x'],'y':_0x514b27[_0x47d499(0x277)]/_0x2ea847+_0x1e6e07['y']},_0x2fc13a=this['_sheetBasicShapeConnectionPointController'][_0x47d499(0x1bd)](_0x2cc008);if(_0x2fc13a){let {shapeId:_0x21cd35,unitId:_0x52ce43,subUnitId:_0x39e9db}=_0x2fc13a;if(_0x21cd35&&_0x52ce43&&_0x39e9db){let _0x418012=(0x0,s[_0x47d499(0x1f0)])({'unitId':_0x52ce43,'subUnitId':_0x39e9db,'drawingId':_0x21cd35});_0x2fc13a['angle']=(_0x179627[_0x47d499(0x3e5)](_0x418012)[_0x47d499(0x372)]||0x0)+_0x2fc13a[_0x47d499(0x372)];}}this[_0x47d499(0x2fe)]=_0x2fc13a;let _0x532603=_0x557108?this[_0x47d499(0x43c)][_0x47d499(0x3fd)]():this[_0x47d499(0x43c)][_0x47d499(0x439)]();if(_0x532603){this['_handleConnectedEndpointMove'](_0x532603,_0x2cc008,_0x557108,_0x418b4b,_0x13de99);return;}this[_0x47d499(0x2b5)](_0x2cc008,_0x57afaa,_0x557108,_0x418b4b,_0x13de99);}),this['_cxtHandlerPointerUp']=_0x179627[_0x2fde5e(0x3f1)]['subscribeEvent']((_0xd50b57,_0x1b70bb)=>{const _0x14e657=_0x2fde5e;this[_0x14e657(0x39f)](_0x179627,_0x57afaa,_0xd50b57,_0x557108,_0x374500);}),_0x1054bd[_0x2fde5e(0x29e)]();})));}[_0x22001c(0x1ae)](_0x4741ee,_0x3d67dc,_0x17e6e9){const _0x2597d9=_0x22001c;let _0x10b2bd=this['_sheetsShapeService']['getBasicShapeRelation'](_0x4741ee,_0x3d67dc,_0x17e6e9);if(!_0x10b2bd||_0x10b2bd[_0x2597d9(0x285)]===0x0)return;let _0x275f73=this[_0x2597d9(0x3f8)][_0x2597d9(0x355)](_0x4741ee);if(!_0x275f73)return;let {scene:_0x4f5549}=_0x275f73;for(let _0x5d4810 of _0x10b2bd){let _0x119798=_0x5d4810[_0x2597d9(0x29c)],_0x30d340=this[_0x2597d9(0x209)][_0x2597d9(0x44e)](_0x4741ee,_0x3d67dc,_0x119798);if(!_0x30d340)continue;let _0x151b66=_0x30d340[_0x2597d9(0x439)](),_0x216ad5=_0x30d340[_0x2597d9(0x3fd)](),_0x161e9a=(_0x151b66==null?void 0x0:_0x151b66[_0x2597d9(0x28c)])===_0x17e6e9,_0x4ab3f9=(0x0,s[_0x2597d9(0x1f0)])({'unitId':_0x4741ee,'subUnitId':_0x3d67dc,'drawingId':_0x119798}),_0x2234c9=_0x4f5549[_0x2597d9(0x3e5)](_0x4ab3f9);if(!_0x2234c9)continue;let _0x4b8632=this[_0x2597d9(0x17b)]['getDrawingByParam']({'unitId':_0x4741ee,'subUnitId':_0x3d67dc,'drawingId':_0x119798});_0x4b8632!=null&&_0x4b8632[_0x2597d9(0x20f)]&&(_0x151b66&&_0x216ad5?this[_0x2597d9(0x367)](_0x4741ee,_0x3d67dc,_0x119798,_0x30d340,_0x151b66,_0x216ad5,_0x2234c9):this['_moveConnectorWithShape'](_0x4741ee,_0x3d67dc,_0x119798,_0x30d340,_0x161e9a?_0x151b66:_0x216ad5,_0x161e9a,_0x4b8632,_0x2234c9));}}[_0x22001c(0x367)](_0x2c2feb,_0x397125,_0x52a02a,_0x3a4726,_0x38ce80,_0x4a70ff,_0x10c889){const _0x2326e1=_0x22001c;let _0x4c5ac3=this['_unitId'],_0xbaaa94=this['_subUnitId'];this[_0x2326e1(0x296)]=_0x2c2feb,this[_0x2326e1(0x397)]=_0x397125;let _0x15a6c9=this[_0x2326e1(0x287)](_0x38ce80),_0x213c02=this['_getConnectPointInfo'](_0x4a70ff);if(this[_0x2326e1(0x296)]=_0x4c5ac3,this[_0x2326e1(0x397)]=_0xbaaa94,!_0x15a6c9||!_0x213c02)return;let _0x2801d3=_0x3a4726[_0x2326e1(0x19a)](),_0xdae2d0=(0x0,n[_0x2326e1(0x195)])(_0x15a6c9,_0x213c02,_0x2801d3);_0xdae2d0&&_0x3a4726[_0x2326e1(0x39c)](_0xdae2d0);let _0x3e7132=(0x0,n['computeConnectorRouteLayout'])(_0xdae2d0,_0x2801d3);_0x3e7132[_0x2326e1(0x2cc)]!==_0x2801d3&&_0x3a4726['changeShapeType'](_0x3e7132[_0x2326e1(0x2cc)]),_0x3a4726[_0x2326e1(0x182)]();for(let [_0x196e14,_0x97c745]of Object[_0x2326e1(0x133)](_0x3e7132[_0x2326e1(0x461)]))_0x3a4726[_0x2326e1(0x26f)](_0x196e14,_0x97c745);_0x3a4726['updateContext']({'width':_0x3e7132[_0x2326e1(0x1a2)][_0x2326e1(0x21d)],'height':_0x3e7132['worldRect'][_0x2326e1(0x330)]}),_0x10c889[_0x2326e1(0x359)]({'flipX':_0x3e7132['worldRect'][_0x2326e1(0x17d)],'flipY':_0x3e7132[_0x2326e1(0x1a2)]['flipY'],'left':_0x3e7132[_0x2326e1(0x1a2)][_0x2326e1(0x16d)],'top':_0x3e7132[_0x2326e1(0x1a2)][_0x2326e1(0x230)],'width':_0x3e7132[_0x2326e1(0x1a2)]['width'],'height':_0x3e7132[_0x2326e1(0x1a2)][_0x2326e1(0x330)],'angle':_0x3e7132[_0x2326e1(0x27d)]}),_0x3a4726['removeLinePoints']();}[_0x22001c(0x1a5)](_0x174720,_0x831d05,_0x5f3b0c,_0x1df193,_0xb0f14a,_0x1b6162,_0x3e5a7c,_0xb6d99){const _0xaf4ef2=_0x22001c;let _0xb323c0=this[_0xaf4ef2(0x296)],_0x5e66b4=this['_subUnitId'];this[_0xaf4ef2(0x296)]=_0x174720,this[_0xaf4ef2(0x397)]=_0x831d05;let _0x582f3b=this[_0xaf4ef2(0x287)](_0xb0f14a);if(this[_0xaf4ef2(0x296)]=_0xb323c0,this['_subUnitId']=_0x5e66b4,!_0x582f3b)return;let {left:_0x47aa17=0x0,top:_0x21ef26=0x0,width:_0x4b8322=0x0,height:_0x2a331d=0x0,flipX:_0x192322=!0x1,flipY:_0x10418b=!0x1}=_0x3e5a7c['transform'],_0x4a4b44=_0x1df193[_0xaf4ef2(0x314)]();if(_0x4a4b44[_0xaf4ef2(0x285)]<0x2)return;let _0x23b868=new n[(_0xaf4ef2(0x464))]({'left':_0x47aa17,'top':_0x21ef26,'width':_0x4b8322,'height':_0x2a331d,'flipX':_0x192322,'flipY':_0x10418b}),_0x34ac44=_0x1b6162?_0x4a4b44[_0x4a4b44['length']-0x1]:_0x4a4b44[0x0],_0x24b81e=_0x23b868[_0xaf4ef2(0x1fa)](_0x34ac44),_0x2f0f94=n[_0xaf4ef2(0x464)][_0xaf4ef2(0x40c)](_0x24b81e,_0x582f3b[_0xaf4ef2(0x466)],!_0x1b6162);_0xb6d99[_0xaf4ef2(0x359)]({'flipX':_0x2f0f94[_0xaf4ef2(0x1a2)][_0xaf4ef2(0x17d)],'flipY':_0x2f0f94[_0xaf4ef2(0x1a2)][_0xaf4ef2(0x374)],'left':_0x2f0f94[_0xaf4ef2(0x1a2)][_0xaf4ef2(0x16d)],'top':_0x2f0f94[_0xaf4ef2(0x1a2)]['top'],'width':_0x2f0f94[_0xaf4ef2(0x1a2)]['width'],'height':_0x2f0f94['worldRect'][_0xaf4ef2(0x330)],'angle':_0x2f0f94[_0xaf4ef2(0x1a2)]['angle']}),_0xb6d99[_0xaf4ef2(0x444)](!0x0);}[_0x22001c(0x2aa)](){const _0x235bc6=_0x22001c;this[_0x235bc6(0x3b9)][_0x235bc6(0x285)]!==0x0&&(this['_connectorObjects'][_0x235bc6(0x1dc)](_0x3108d7=>{const _0x188f8a=_0x235bc6;_0x3108d7[_0x188f8a(0x2db)]();}),this[_0x235bc6(0x3b9)]=[]);}[_0x22001c(0x3c9)](){const _0x166960=_0x22001c;let _0x3e60d4=this[_0x166960(0x2d0)][_0x166960(0x185)](a[_0x166960(0x130)][_0x166960(0x3ed)]);this[_0x166960(0x304)](_0x3e60d4['pipe']((0x0,u[_0x166960(0x36c)])(_0x44e9d5=>_0x44e9d5?_0x44e9d5[_0x166960(0x214)][_0x166960(0x23c)]((0x0,u[_0x166960(0x36c)])(_0x5ac4f9=>{const _0x4bf453=_0x166960;if(!_0x5ac4f9)return u[_0x4bf453(0x421)];let _0x2b25c1=_0x44e9d5[_0x4bf453(0x33c)](),_0x3ed0bb=this[_0x4bf453(0x3f8)]['getRenderUnitById'](_0x2b25c1),_0x233da4=_0x3ed0bb==null?void 0x0:_0x3ed0bb[_0x4bf453(0x448)];return _0x233da4?(0x0,u['of'])(_0x233da4):u['EMPTY'];})):u['EMPTY']))[_0x166960(0x35f)](_0x552c29=>{const _0x3edf52=_0x166960;let _0xfd08e0=_0x552c29['getTransformerByCreate']();this[_0x3edf52(0x304)](_0x552c29[_0x3edf52(0x26a)][_0x3edf52(0x14a)](_0x4fd275=>{const _0x19ab11=_0x3edf52;this[_0x19ab11(0x151)]&&this[_0x19ab11(0x23a)]&&this[_0x19ab11(0x2aa)]();})),this[_0x3edf52(0x304)](_0xfd08e0[_0x3edf52(0x2ff)][_0x3edf52(0x35f)](_0x481ccc=>{const _0x18e9c7=_0x3edf52;let {objects:_0x4da192}=_0x481ccc;this['_clearShapeConnectorHandlerObjects'](),_0x4da192!==null&&_0x4da192['size']===0x1&&_0x4da192['values']()[_0x18e9c7(0x14d)]()[_0x18e9c7(0x1f1)]instanceof E&&(this['_isDrawingShapePointDown']=!0x0);})),this[_0x3edf52(0x304)](_0xfd08e0[_0x3edf52(0x1e2)][_0x3edf52(0x35f)](_0x3cb2b4=>{const _0x332643=_0x3edf52;this[_0x332643(0x151)]&&this[_0x332643(0x2aa)]();})),this['disposeWithMe'](_0x552c29[_0x3edf52(0x3f1)]['subscribeEvent'](()=>{const _0x455c6f=_0x3edf52;this[_0x455c6f(0x151)]&&(this['_isDrawingShapePointDown']=!0x1,this[_0x455c6f(0x2c0)]());})),this['disposeWithMe'](_0xfd08e0['changeEnd$'][_0x3edf52(0x35f)](()=>{const _0x11b67b=_0x3edf52;this[_0x11b67b(0x296)]&&this[_0x11b67b(0x397)]&&this[_0x11b67b(0x23a)]&&this['_drawingManagerService'][_0x11b67b(0x29f)]({'unitId':this[_0x11b67b(0x296)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x11b67b(0x23a)]})&&(this[_0x11b67b(0x2aa)](),this[_0x11b67b(0x2c0)]());}));}));}[_0x22001c(0x2e7)](){const _0x206bfb=_0x22001c;this[_0x206bfb(0x304)](this[_0x206bfb(0x17b)][_0x206bfb(0x1be)][_0x206bfb(0x35f)](_0x315b6d=>{const _0x37bed0=_0x206bfb;if(_0x315b6d['length']===0x1){let _0x4509c4=_0x315b6d[0x0];if(_0x4509c4[_0x37bed0(0x235)]===a['DrawingTypeEnum'][_0x37bed0(0x2ef)]){let _0x411fc6=this['_sheetsShapeService'][_0x37bed0(0x44e)](_0x4509c4[_0x37bed0(0x298)],_0x4509c4[_0x37bed0(0x388)],_0x4509c4[_0x37bed0(0x184)]);if(_0x411fc6&&(0x0,n['isConnectorShape'])(_0x411fc6['getShapeType']())){this[_0x37bed0(0x23a)]=_0x4509c4[_0x37bed0(0x184)],this[_0x37bed0(0x296)]=_0x4509c4['unitId'],this[_0x37bed0(0x397)]=_0x4509c4['subUnitId'],this[_0x37bed0(0x2aa)](),this[_0x37bed0(0x2c0)]();return;}}}this[_0x37bed0(0x23a)]=void 0x0,this['_unitId']=void 0x0,this[_0x37bed0(0x397)]=void 0x0,this[_0x37bed0(0x2aa)]();})),this[_0x206bfb(0x304)](this[_0x206bfb(0x17b)][_0x206bfb(0x413)][_0x206bfb(0x35f)](_0x19616b=>{const _0xb379b1=_0x206bfb;if(_0x19616b[_0xb379b1(0x285)]===0x1){var _0x412015;let _0x5cf28c=_0x19616b[0x0],_0x40a3e7=(_0x412015=this['_drawingManagerService'][_0xb379b1(0x29f)](_0x5cf28c))==null?void 0x0:_0x412015[_0xb379b1(0x235)];_0x40a3e7===a[_0xb379b1(0x2c3)][_0xb379b1(0x2ef)]&&_0x5cf28c[_0xb379b1(0x184)]===this[_0xb379b1(0x23a)]?(this['_clearShapeConnectorHandlerObjects'](),this[_0xb379b1(0x2c0)]()):!this[_0xb379b1(0x23a)]&&_0x40a3e7===a[_0xb379b1(0x2c3)][_0xb379b1(0x2ef)]&&this['_handleBasicShapeUpdateConnectorLineShape'](_0x5cf28c['unitId'],_0x5cf28c[_0xb379b1(0x388)],_0x5cf28c[_0xb379b1(0x184)]);}})),this[_0x206bfb(0x304)](this[_0x206bfb(0x17b)][_0x206bfb(0x2fa)][_0x206bfb(0x35f)](_0x5dc291=>{const _0x4c51d7=_0x206bfb;for(let _0x5ea60e of _0x5dc291){let {drawingId:_0x555ca3}=_0x5ea60e;if(this[_0x4c51d7(0x23a)]===_0x555ca3){this['_reset']();return;}}}));}[_0x22001c(0x191)](_0x2731e5,_0x13a591,_0x363db9,_0x22cc0e,_0x545fd3){const _0x3e572e=_0x22001c;var _0x1b0582;if(!this[_0x3e572e(0x43c)])return;let _0xa7db2d=this[_0x3e572e(0x287)](_0x2731e5);if(!_0xa7db2d)return;let _0x4e3714=this[_0x3e572e(0x2fe)]?this[_0x3e572e(0x2fe)][_0x3e572e(0x2e1)]:_0x13a591,_0x4cb822=this[_0x3e572e(0x2fe)]?this[_0x3e572e(0x2fe)][_0x3e572e(0x372)]:this['_calculateFreeEndpointAngle'](_0xa7db2d['point'],_0x4e3714),_0x53db86;if(this[_0x3e572e(0x2fe)]){let _0x12ccb5=this[_0x3e572e(0x17b)][_0x3e572e(0x29f)]({'unitId':this[_0x3e572e(0x2fe)]['unitId'],'subUnitId':this[_0x3e572e(0x2fe)][_0x3e572e(0x388)],'drawingId':this[_0x3e572e(0x2fe)][_0x3e572e(0x28c)]});if(_0x12ccb5!=null&&_0x12ccb5[_0x3e572e(0x20f)]){let {left:_0x4ae191=0x0,top:_0x5515b5=0x0,width:_0x8a0184=0x0,height:_0x5df34e=0x0,angle:_0x5e5393}=_0x12ccb5[_0x3e572e(0x20f)];_0x53db86=(0x0,n[_0x3e572e(0x37f)])({'left':_0x4ae191,'top':_0x5515b5,'width':_0x8a0184,'height':_0x5df34e},_0x5e5393||0x0);}else _0x53db86={'left':_0x4e3714['x'],'top':_0x4e3714['y'],'width':0x0,'height':0x0};}else _0x53db86={'left':_0x4e3714['x'],'top':_0x4e3714['y'],'width':0x0,'height':0x0};let _0x2f187d={'point':_0x4e3714,'angle':_0x4cb822,'bounds':_0x53db86},_0xa728a3=_0x363db9?_0x2f187d:_0xa7db2d,_0x3233e6=_0x363db9?_0xa7db2d:_0x2f187d,_0x33bd0f=this[_0x3e572e(0x43c)][_0x3e572e(0x19a)](),_0x577953=(0x0,n[_0x3e572e(0x195)])(_0xa728a3,_0x3233e6,_0x33bd0f);_0x577953&&this['_activeShapeModel'][_0x3e572e(0x39c)](_0x577953);let _0x245cda=(0x0,n['computeConnectorRouteLayout'])(_0x577953,_0x33bd0f);_0x245cda['lineType']!==_0x33bd0f&&this[_0x3e572e(0x43c)][_0x3e572e(0x147)](_0x245cda[_0x3e572e(0x2cc)]);for(let [_0x48ff6f,_0x1acc1c]of Object[_0x3e572e(0x133)](_0x245cda[_0x3e572e(0x461)]))this['_activeShapeModel'][_0x3e572e(0x26f)](_0x48ff6f,_0x1acc1c);this[_0x3e572e(0x43c)]['updateContext']({'width':_0x245cda[_0x3e572e(0x1a2)][_0x3e572e(0x21d)],'height':_0x245cda[_0x3e572e(0x1a2)][_0x3e572e(0x330)]}),_0x22cc0e[_0x3e572e(0x359)]({'flipX':_0x245cda[_0x3e572e(0x1a2)][_0x3e572e(0x17d)],'flipY':_0x245cda['worldRect']['flipY'],'left':_0x245cda[_0x3e572e(0x1a2)][_0x3e572e(0x16d)],'top':_0x245cda[_0x3e572e(0x1a2)]['top'],'width':_0x245cda[_0x3e572e(0x1a2)]['width'],'height':_0x245cda['worldRect'][_0x3e572e(0x330)],'angle':_0x245cda['rotation']}),_0x22cc0e[_0x3e572e(0x444)](!0x0);let _0x1ff112=((_0x1b0582=this[_0x3e572e(0x2fe)])==null?void 0x0:_0x1b0582[_0x3e572e(0x2e1)])??_0x13a591;_0x545fd3['transformByState']({'left':_0x1ff112['x']-n[_0x3e572e(0x41f)][_0x3e572e(0x173)],'top':_0x1ff112['y']-n[_0x3e572e(0x41f)]['cxnPointRadius']});}[_0x22001c(0x2b5)](_0x2b1df9,_0x43246c,_0x3e8459,_0x4c5d93,_0x2be034){const _0x167a78=_0x22001c;var _0x4ac159,_0x55a4f8;let _0x4f4f22=((_0x4ac159=this[_0x167a78(0x2fe)])==null?void 0x0:_0x4ac159[_0x167a78(0x2e1)])??_0x2b1df9,_0x7ee3a9=n[_0x167a78(0x464)]['computeConnectorResizeLayout'](_0x43246c,_0x4f4f22,_0x3e8459);_0x4c5d93[_0x167a78(0x359)]({'flipX':_0x7ee3a9[_0x167a78(0x1a2)]['flipX'],'flipY':_0x7ee3a9[_0x167a78(0x1a2)]['flipY'],'left':_0x7ee3a9['worldRect'][_0x167a78(0x16d)],'top':_0x7ee3a9[_0x167a78(0x1a2)]['top'],'width':_0x7ee3a9[_0x167a78(0x1a2)][_0x167a78(0x21d)],'height':_0x7ee3a9[_0x167a78(0x1a2)][_0x167a78(0x330)],'angle':_0x7ee3a9['worldRect']['angle']});let _0x49fe27=((_0x55a4f8=this[_0x167a78(0x2fe)])==null?void 0x0:_0x55a4f8['worldPoint'])??_0x2b1df9;_0x2be034[_0x167a78(0x359)]({'left':_0x49fe27['x']-n[_0x167a78(0x41f)]['cxnPointRadius'],'top':_0x49fe27['y']-n[_0x167a78(0x41f)][_0x167a78(0x173)]});}[_0x22001c(0x287)](_0x5de19c){const _0x175ef7=_0x22001c;if(!this[_0x175ef7(0x296)]||!this[_0x175ef7(0x397)])return null;let {shapeId:_0x47e4f3,cxnIndex:_0xbc6f98}=_0x5de19c,_0x1f35b0=this[_0x175ef7(0x209)][_0x175ef7(0x44e)](this[_0x175ef7(0x296)],this[_0x175ef7(0x397)],_0x47e4f3);if(!_0x1f35b0)return null;let _0x40b29b=this['_drawingManagerService'][_0x175ef7(0x29f)]({'unitId':this[_0x175ef7(0x296)],'subUnitId':this[_0x175ef7(0x397)],'drawingId':_0x47e4f3});if(!(_0x40b29b!=null&&_0x40b29b[_0x175ef7(0x20f)]))return null;let {left:_0x28a281=0x0,top:_0x2b453c=0x0,width:_0x47472b=0x0,height:_0x30cc6f=0x0,flipX:_0x1f84cb=!0x1,flipY:_0x18f9c5=!0x1,angle:_0x54d41a}=_0x40b29b[_0x175ef7(0x20f)];_0x1f35b0[_0x175ef7(0x2c1)]({'width':_0x47472b,'height':_0x30cc6f});let _0x584a3f=_0x1f35b0[_0x175ef7(0x281)]()[_0x175ef7(0x2c6)](_0x21949e=>_0x21949e[_0x175ef7(0x428)]===_0xbc6f98);if(!_0x584a3f)return null;let _0x116fa1=_0x1f84cb?_0x47472b-_0x584a3f['x']:_0x584a3f['x'],_0xa2c89c=_0x18f9c5?_0x30cc6f-_0x584a3f['y']:_0x584a3f['y'];if(_0x54d41a!==0x0&&_0x54d41a!=null){let _0x512cc7=_0x54d41a*Math['PI']/0xb4,_0x4747a7=Math['cos'](_0x512cc7),_0xf2efc=Math[_0x175ef7(0x213)](_0x512cc7),_0x1cea86=_0x47472b/0x2,_0x5eadca=_0x30cc6f/0x2,_0x1f4b41=_0x116fa1-_0x1cea86,_0x278cd1=_0xa2c89c-_0x5eadca;_0x116fa1=_0x1cea86+_0x1f4b41*_0x4747a7-_0x278cd1*_0xf2efc,_0xa2c89c=_0x5eadca+_0x1f4b41*_0xf2efc+_0x278cd1*_0x4747a7;}_0x116fa1+=_0x28a281,_0xa2c89c+=_0x2b453c;let _0x4bf94e=_0x584a3f[_0x175ef7(0x38a)]/0xea60;_0x1f84cb&&(_0x4bf94e=0xb4-_0x4bf94e),_0x18f9c5&&(_0x4bf94e=-_0x4bf94e),_0x4bf94e+=_0x54d41a||0x0,_0x4bf94e=(_0x4bf94e%0x168+0x168)%0x168;let _0x2a6c7a=(0x0,n['getBasicShapeRotateBound'])({'left':_0x28a281,'top':_0x2b453c,'width':_0x47472b,'height':_0x30cc6f},_0x54d41a||0x0);return{'point':{'x':_0x116fa1,'y':_0xa2c89c},'angle':_0x4bf94e,'bounds':_0x2a6c7a};}[_0x22001c(0x244)](_0x4c6e,_0x4a4240){const _0x3932de=_0x22001c;let _0x424f48=_0x4a4240['x']-_0x4c6e['x'],_0x599fc7=_0x4a4240['y']-_0x4c6e['y'];return Math[_0x3932de(0x1f6)](_0x424f48)>=Math[_0x3932de(0x1f6)](_0x599fc7)?_0x424f48>=0x0?0xb4:0x0:_0x599fc7>=0x0?0x10e:0x5a;}['_reset'](){const _0x2f1b6b=_0x22001c;this[_0x2f1b6b(0x23a)]=void 0x0,this[_0x2f1b6b(0x296)]=void 0x0,this[_0x2f1b6b(0x397)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();}[_0x22001c(0x2db)](){const _0x10385c=_0x22001c;this[_0x10385c(0x2aa)](),super[_0x10385c(0x2db)]();}};vt=k([O(0x1,a[_0x22001c(0x20b)]),O(0x2,c['IRenderManagerService']),O(0x3,s['IDrawingManagerService']),O(0x4,a[_0x22001c(0x252)]),O(0x5,(0x0,a['Inject'])(i[_0x22001c(0x1e3)])),O(0x6,(0x0,a['Inject'])(j)),O(0x7,(0x0,a['Inject'])(X))],vt);let yt=class extends a[_0x22001c(0x35c)]{constructor(_0x2b153c,_0xb760a6,_0x1e737f){const _0x42df4b=_0x22001c;super(),this[_0x42df4b(0x138)]=_0x2b153c,this[_0x42df4b(0x17b)]=_0xb760a6,this[_0x42df4b(0x2f4)]=_0x1e737f,this['_initPrinting']();}[_0x22001c(0x30b)](){const _0x3698cc=_0x22001c;this[_0x3698cc(0x304)](this[_0x3698cc(0x138)][_0x3698cc(0x34e)][_0x3698cc(0x3a3)](this[_0x3698cc(0x138)][_0x3698cc(0x34e)]['getInterceptPoints']()['PRINTING_COMPONENT_COLLECT'],{'handler':(_0x5354ab,_0x5379ba,_0x15d3f9)=>{const _0x1f80d8=_0x3698cc;var _0x5e38b5;let {unitId:_0x548e00,subUnitId:_0x447f12,scene:_0x212251,resourceCollector:_0x493f2f}=_0x5379ba,_0x41feda=(_0x5e38b5=this[_0x1f80d8(0x17b)]['getDrawingDataForUnit'](_0x548e00))==null?void 0x0:_0x5e38b5[_0x447f12];return _0x41feda==null||_0x41feda[_0x1f80d8(0x3f2)][_0x1f80d8(0x1dc)](_0xb05b28=>{const _0x2e28bc=_0x1f80d8;let _0x13ac9a=_0x41feda['data'][_0xb05b28];_0x13ac9a[_0x2e28bc(0x235)]===a[_0x2e28bc(0x2c3)][_0x2e28bc(0x2ef)]&&!_0x13ac9a['hidden']&&this[_0x2e28bc(0x2f4)][_0x2e28bc(0x169)](_0x13ac9a,_0x212251,{'resourceCollector':_0x493f2f});}),_0x15d3f9(_0x5354ab);}}));}};yt=k([O(0x0,(0x0,a['Inject'])(l[_0x22001c(0x422)])),O(0x1,s[_0x22001c(0x1a7)]),O(0x2,(0x0,a['Inject'])(A))],yt);let bt=class extends a[_0x22001c(0x35c)]{constructor(_0x4d0103,_0x21c4bb,_0x2ec911){const _0x3507d6=_0x22001c;super(),this[_0x3507d6(0x409)]=_0x4d0103,this['_localeService']=_0x21c4bb,this[_0x3507d6(0x340)]=_0x2ec911,this[_0x3507d6(0x3bd)]();}[_0x22001c(0x3bd)](){const _0x310ef5=_0x22001c;this[_0x310ef5(0x304)](this['_commandService'][_0x310ef5(0x357)](_0x2b9eea=>{const _0x263bb1=_0x310ef5;let _0x3e0a2b,_0x3497a4;if(_0x2b9eea['id']===i[_0x263bb1(0x308)]['id']||_0x2b9eea['id']===i[_0x263bb1(0x3e3)]['id']||_0x2b9eea['id']===i[_0x263bb1(0x3fb)]['id']){let _0x413913=_0x2b9eea[_0x263bb1(0x1a9)];_0x3e0a2b=_0x413913[_0x263bb1(0x298)],_0x3497a4=_0x413913[_0x263bb1(0x388)];}!_0x3e0a2b||!_0x3497a4||this[_0x263bb1(0x340)]['permissionCheckWithoutRange']({'workbookTypes':[o[_0x263bb1(0x251)]],'worksheetTypes':[o['WorksheetEditPermission']]},_0x3e0a2b,_0x3497a4)||this[_0x263bb1(0x340)][_0x263bb1(0x322)](this['_localeService']['t'](_0x263bb1(0x181)));}));}};bt=k([O(0x0,(0x0,a[_0x22001c(0x299)])(a[_0x22001c(0x20b)])),O(0x1,(0x0,a['Inject'])(a[_0x22001c(0x143)])),O(0x2,(0x0,a[_0x22001c(0x299)])(o['SheetPermissionCheckController']))],bt);let Q=class extends a['Disposable']{constructor(_0x427fe1,_0x46dad4,_0x503f26,_0x14a603,_0x4c2c19,_0x398275,_0x55a125,_0x57c0e7,_0x3ff7d0,_0x229204,_0x15c7d3){const _0x5be9a9=_0x22001c;super(),this[_0x5be9a9(0x2d0)]=_0x427fe1,this[_0x5be9a9(0x135)]=_0x46dad4,this[_0x5be9a9(0x171)]=_0x503f26,this['_sheetsShapeService']=_0x14a603,this[_0x5be9a9(0x25c)]=_0x4c2c19,this[_0x5be9a9(0x409)]=_0x398275,this[_0x5be9a9(0x17b)]=_0x55a125,this['_sheetCanvasPopManagerService']=_0x57c0e7,this[_0x5be9a9(0x39d)]=_0x3ff7d0,this[_0x5be9a9(0x3f8)]=_0x229204,this['_shapeTextEditingService']=_0x15c7d3,T(this,_0x5be9a9(0x13e),null),T(this,_0x5be9a9(0x1ad),null),T(this,_0x5be9a9(0x302),!0x1),T(this,_0x5be9a9(0x381),0x0),T(this,_0x5be9a9(0x159),new Set()),T(this,_0x5be9a9(0x393),[]),this[_0x5be9a9(0x379)](),this[_0x5be9a9(0x304)](this[_0x5be9a9(0x2d0)][_0x5be9a9(0x185)](a[_0x5be9a9(0x130)]['UNIVER_SHEET'])[_0x5be9a9(0x35f)](_0x40eb05=>{if(!_0x40eb05){var _0x115c80;(_0x115c80=this['_sidebarDisposable'])==null||_0x115c80['dispose']();return;}this['_createShapePopupMenu'](_0x40eb05);})),this['_registerOperations'](),this[_0x5be9a9(0x2a3)](),this[_0x5be9a9(0x304)](this[_0x5be9a9(0x211)][_0x5be9a9(0x452)][_0x5be9a9(0x35f)](_0x2ae1c3=>{const _0x35d7c0=_0x5be9a9;_0x2ae1c3&&this[_0x35d7c0(0x282)]();}));}['_initMenu'](){const _0x3359b8=_0x22001c;this[_0x3359b8(0x171)]['mergeMenu'](Qe);}[_0x22001c(0x2a3)](){const _0x1ad613=_0x22001c;this['_univerInstanceService'][_0x1ad613(0x323)](a[_0x1ad613(0x130)]['UNIVER_SHEET'])[_0x1ad613(0x1dc)](_0x5be5ef=>this[_0x1ad613(0x246)](_0x5be5ef));}[_0x22001c(0x292)](_0x15c581,_0x6892c1,_0x29bfde){const _0xb4ad08=_0x22001c;let _0x39b11a=this[_0xb4ad08(0x209)][_0xb4ad08(0x1d4)](_0x15c581,_0x6892c1,_0x29bfde),_0xf4da8c=this[_0xb4ad08(0x209)][_0xb4ad08(0x276)](_0x15c581,_0x6892c1,_0x29bfde);return _0x39b11a!==void 0x0&&_0xf4da8c!==void 0x0?{'shapeData':_0xf4da8c,'shapeId':_0x29bfde,'shapeType':_0x39b11a,'unitId':_0x15c581,'subUnitId':_0x6892c1,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1}:null;}['_createShapePopupMenu'](_0x398a6b){const _0x53c0f3=_0x22001c;if(!_0x398a6b)return;let _0x50165b=_0x398a6b['getUnitId']();this[_0x53c0f3(0x3f8)][_0x53c0f3(0x2ee)](_0x50165b)&&!this['_initializedShapePopupMenu'][_0x53c0f3(0x2ee)](_0x50165b)&&(this[_0x53c0f3(0x373)](_0x50165b),this[_0x53c0f3(0x159)][_0x53c0f3(0x342)](_0x50165b));}['_clearPopups'](){const _0x4aff48=_0x22001c;this['_disposePopups'][_0x4aff48(0x1dc)](_0x3b1dc3=>_0x3b1dc3[_0x4aff48(0x2db)]()),this[_0x4aff48(0x393)]['length']=0x0;}['_popupMenuListener'](_0x5ae127){const _0x313c5c=_0x22001c;var _0x54a709;let _0x1ecfb3=(_0x54a709=this['_renderManagerService'][_0x313c5c(0x355)](_0x5ae127))==null?void 0x0:_0x54a709[_0x313c5c(0x448)],_0x29b1aa=_0x1ecfb3==null?void 0x0:_0x1ecfb3[_0x313c5c(0x2cd)]();!_0x1ecfb3||!_0x29b1aa||(this['disposeWithMe'](_0x29b1aa[_0x313c5c(0x406)]['subscribe'](()=>{const _0xaba4c7=_0x313c5c;let _0x42bb55=_0x29b1aa[_0xaba4c7(0x3e4)]();if(this[_0xaba4c7(0x282)](),this[_0xaba4c7(0x302)]||_0x42bb55[_0xaba4c7(0x165)]>0x1)return;let _0x534850=_0x42bb55[_0xaba4c7(0x41e)]()[_0xaba4c7(0x14d)]()[_0xaba4c7(0x1f1)];if(!_0x534850)return;let _0x4340f8=this[_0xaba4c7(0x17b)]['getDrawingOKey'](_0x534850['oKey']);if(!_0x4340f8||_0x4340f8[_0xaba4c7(0x235)]!==a[_0xaba4c7(0x2c3)][_0xaba4c7(0x2ef)])return;let {unitId:_0x335b94,subUnitId:_0x4f8438,drawingId:_0x15a406,drawingType:_0x42bf96}=_0x4340f8,_0x43fa46=this[_0xaba4c7(0x292)](_0x335b94,_0x4f8438,_0x15a406);if(!_0x43fa46)return;this['_contextService'][_0xaba4c7(0x2b6)](a['FOCUSING_COMMON_DRAWINGS'],!0x0);let _0x1a9136=this[_0xaba4c7(0x36b)][_0xaba4c7(0x31b)](_0x534850,{'componentKey':I,'direction':_0xaba4c7(0x3ea),'offset':[0x0,e[_0xaba4c7(0x2bc)]],'extraProps':{'unitId':_0x335b94,'subUnitId':_0x4f8438,'drawingId':_0x15a406,'drawingType':_0x42bf96,'shapeType':_0x43fa46['shapeType'],'shapeData':_0x43fa46['shapeData']}});this[_0xaba4c7(0x393)][_0xaba4c7(0x2f0)](this[_0xaba4c7(0x304)](_0x1a9136)),this[_0xaba4c7(0x17b)]['getFocusDrawings']()[_0xaba4c7(0x2c6)](_0x1c0162=>_0x1c0162[_0xaba4c7(0x298)]===_0x335b94&&_0x1c0162[_0xaba4c7(0x388)]===_0x4f8438&&_0x1c0162[_0xaba4c7(0x184)]===_0x15a406)||this[_0xaba4c7(0x17b)][_0xaba4c7(0x338)]([{'unitId':_0x335b94,'subUnitId':_0x4f8438,'drawingId':_0x15a406}]);})),this[_0x313c5c(0x304)](_0x29b1aa[_0x313c5c(0x38d)][_0x313c5c(0x35f)](()=>{const _0xc21f2d=_0x313c5c;this[_0xc21f2d(0x282)](),this[_0xc21f2d(0x39d)][_0xc21f2d(0x2b6)](a[_0xc21f2d(0x215)],!0x1),this[_0xc21f2d(0x17b)][_0xc21f2d(0x338)](null);})),this[_0x313c5c(0x304)](_0x29b1aa[_0x313c5c(0x1e2)][_0x313c5c(0x35f)](()=>{const _0x2f2a35=_0x313c5c;this[_0x2f2a35(0x282)]();})),this[_0x313c5c(0x304)](_0x29b1aa[_0x313c5c(0x2ff)][_0x313c5c(0x35f)](()=>{const _0x11448e=_0x313c5c;this[_0x11448e(0x282)]();})));}[_0x22001c(0x426)](){const _0x446820=_0x22001c;this[_0x446820(0x304)](this[_0x446820(0x409)][_0x446820(0x3a6)](_0x161a7e=>{const _0x3794cd=_0x446820;if(_0x161a7e['id']===R['id']){let {unitId:_0x55b0f3,subUnitId:_0x46cde3,drawingId:_0x40af12}=_0x161a7e[_0x3794cd(0x1a9)];this[_0x3794cd(0x381)]+=0x1,this[_0x3794cd(0x1ad)]=this[_0x3794cd(0x292)](_0x55b0f3,_0x46cde3,_0x40af12),this[_0x3794cd(0x282)](),this['_openShapeEditPanel']();}if(_0x161a7e['id']===tt['id']&&(this['_activeShapeInfo']=null,this[_0x3794cd(0x2d3)]()),_0x161a7e['id']===i[_0x3794cd(0x2bd)]['id']){let {unitId:_0x533a7f,subUnitId:_0x554f4f,shapeId:_0x4dab05}=_0x161a7e['params'];if(this['_activeShapeInfo']&&this[_0x3794cd(0x1ad)][_0x3794cd(0x28c)]===_0x4dab05){let _0x20ccfe=this[_0x3794cd(0x292)](_0x533a7f,_0x554f4f,_0x4dab05);_0x20ccfe&&(this[_0x3794cd(0x381)]+=0x1,_0x20ccfe['version']=this[_0x3794cd(0x381)],this[_0x3794cd(0x1ad)]=_0x20ccfe,this[_0x3794cd(0x302)]&&this['_openShapeEditPanel']());}}})),this[_0x446820(0x304)](this['_drawingManagerService']['focus$'][_0x446820(0x35f)](_0x146e2a=>{const _0x40dab3=_0x446820;if(this[_0x40dab3(0x302)]===!0x1)return;if(_0x146e2a[_0x40dab3(0x285)]===0x0){this[_0x40dab3(0x1ad)]=null,this[_0x40dab3(0x2d3)]();return;}if(_0x146e2a['length']===0x1&&_0x146e2a[0x0][_0x40dab3(0x235)]===a[_0x40dab3(0x2c3)]['DRAWING_SHAPE']&&(this[_0x40dab3(0x381)]+=0x1,this[_0x40dab3(0x1ad)]=this[_0x40dab3(0x292)](_0x146e2a[0x0][_0x40dab3(0x298)],_0x146e2a[0x0]['subUnitId'],_0x146e2a[0x0][_0x40dab3(0x184)]),this[_0x40dab3(0x1ad)])){this[_0x40dab3(0x256)]();return;}let _0x4e0c95=_0x146e2a['filter'](_0x5ed991=>_0x5ed991['drawingType']===a[_0x40dab3(0x2c3)][_0x40dab3(0x2ef)]);if(_0x146e2a[_0x40dab3(0x285)]>0x1&&_0x4e0c95[_0x40dab3(0x285)]===_0x146e2a['length']){if(this[_0x40dab3(0x381)]+=0x1,this[_0x40dab3(0x1ad)]=this[_0x40dab3(0x292)](_0x146e2a[0x0][_0x40dab3(0x298)],_0x146e2a[0x0][_0x40dab3(0x388)],_0x146e2a[0x0][_0x40dab3(0x184)]),this[_0x40dab3(0x1ad)]){this[_0x40dab3(0x256)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x146e2a[0x0][_0x40dab3(0x298)],_0x146e2a[0x0][_0x40dab3(0x388)],_0x146e2a[0x0][_0x40dab3(0x184)]),this['_activeShapeInfo']){this['_activeShapeInfo']['disableShapeOption']=!0x0,this[_0x40dab3(0x256)]();return;}}this['_closeShapeEditPanel']();}));}[_0x22001c(0x256)](){const _0x4dce27=_0x22001c;this[_0x4dce27(0x1ad)]&&(this[_0x4dce27(0x13e)]=this[_0x4dce27(0x135)]['open']({'id':P,'header':{'title':this[_0x4dce27(0x25c)]['t'](_0x4dce27(0x228))},'width':0x184,'children':{'label':P,...this[_0x4dce27(0x1ad)]},'onClose':()=>{const _0x405dc0=_0x4dce27;this['_drawingManagerService']['focusDrawing'](null),this[_0x405dc0(0x39d)][_0x405dc0(0x2b6)](a[_0x405dc0(0x215)],!0x1),this[_0x405dc0(0x13e)]=null;}}),this[_0x4dce27(0x302)]=!0x0);}[_0x22001c(0x2d3)](){const _0x336ebd=_0x22001c;this[_0x336ebd(0x302)]=!0x1,this[_0x336ebd(0x135)]['close'](P),this[_0x336ebd(0x13e)]=null,this[_0x336ebd(0x39d)][_0x336ebd(0x2b6)](a[_0x336ebd(0x215)],!0x1),this[_0x336ebd(0x17b)]['focusDrawing'](null);}};Q=k([O(0x0,a[_0x22001c(0x252)]),O(0x1,(0x0,a[_0x22001c(0x299)])(t['ISidebarService'])),O(0x2,t['IMenuManagerService']),O(0x3,(0x0,a[_0x22001c(0x299)])(i[_0x22001c(0x1e3)])),O(0x4,(0x0,a['Inject'])(a[_0x22001c(0x143)])),O(0x5,a[_0x22001c(0x20b)]),O(0x6,s[_0x22001c(0x1a7)]),O(0x7,(0x0,a[_0x22001c(0x299)])(l[_0x22001c(0x321)])),O(0x8,a[_0x22001c(0x28a)]),O(0x9,c[_0x22001c(0x39b)]),O(0xa,(0x0,a[_0x22001c(0x299)])(G))],Q);let $=class extends a[_0x22001c(0x3a2)]{constructor(_0x4f2b34=nt,_0x1d788e,_0x4880da,_0x36030e,_0x221b12){const _0x1132fb=_0x22001c;super(),this[_0x1132fb(0x2a1)]=_0x4f2b34,this[_0x1132fb(0x1cf)]=_0x1d788e,this['_commandService']=_0x4880da,this[_0x1132fb(0x283)]=_0x36030e,this['_renderManagerService']=_0x221b12;let {..._0x5a2ea1}=(0x0,a['merge'])({},nt,this['_config']);this[_0x1132fb(0x283)][_0x1132fb(0x1c0)](_0x1132fb(0x2b8),_0x5a2ea1),this['_initCommands']();}[_0x22001c(0x155)](){const _0x444689=_0x22001c;(0x0,a[_0x444689(0x2df)])(this[_0x444689(0x1cf)],[[Q],[Y],[A],[yt]]);}[_0x22001c(0x368)](){const _0x3eb078=_0x22001c;this[_0x3eb078(0x1cf)]['get'](Q)[_0x3eb078(0x2a3)]();}[_0x22001c(0x20c)](){const _0x4c8d1e=_0x22001c;[[X],[j],[Z]][_0x4c8d1e(0x1dc)](_0x186262=>this[_0x4c8d1e(0x1cf)]['add'](_0x186262)),(0x0,a['touchDependencies'])(this['_injector'],[[Z],[j]]),this['_renderManagerService'][_0x4c8d1e(0x1c4)](a[_0x4c8d1e(0x130)][_0x4c8d1e(0x3ed)],[X]),this[_0x4c8d1e(0x3f8)][_0x4c8d1e(0x1c4)](a[_0x4c8d1e(0x130)]['UNIVER_SHEET'],[dt]),this['_renderManagerService'][_0x4c8d1e(0x1c4)](a['UniverInstanceType'][_0x4c8d1e(0x3ed)],[vt]),this[_0x4c8d1e(0x3f8)][_0x4c8d1e(0x1c4)](a[_0x4c8d1e(0x130)][_0x4c8d1e(0x3ed)],[pt]),this['_renderManagerService']['registerRenderModule'](a[_0x4c8d1e(0x130)][_0x4c8d1e(0x280)],[mt]);}['onStarting'](){const _0x42302d=_0x22001c;this[_0x42302d(0x1cf)][_0x42302d(0x342)]([K]),this[_0x42302d(0x1cf)][_0x42302d(0x38c)](K);let _0x528da3=this[_0x42302d(0x1cf)];[[Q],[Y],[A],[yt],[W],[G],[J],[z],[bt],[q]]['forEach'](_0x1fd88a=>_0x528da3[_0x42302d(0x342)](_0x1fd88a)),(0x0,a[_0x42302d(0x2df)])(this[_0x42302d(0x1cf)],[[Q],[Y],[A],[W],[G],[J],[z],[bt],[q]]);}[_0x22001c(0x375)](){const _0x2d1090=_0x22001c;[N,x,tt,R,ae,M,se,ce]['forEach'](_0x3cc08d=>this[_0x2d1090(0x304)](this['_commandService'][_0x2d1090(0x3c0)](_0x3cc08d)));}};T($,'type',a[_0x22001c(0x130)][_0x22001c(0x3ed)]),T($,_0x22001c(0x2a2),_0x22001c(0x437)),T($,'packageName',$e),T($,_0x22001c(0x21e),et),$=k([(0x0,a[_0x22001c(0x1de)])(m[_0x22001c(0x1f4)],h[_0x22001c(0x26b)],s[_0x22001c(0x1c5)],d[_0x22001c(0x14f)],c[_0x22001c(0x27c)],o['UniverSheetsPlugin'],g['UniverDocsUIPlugin'],p[_0x22001c(0x3c1)],r[_0x22001c(0x3d7)],_[_0x22001c(0x19e)],i[_0x22001c(0x284)],l[_0x22001c(0x3cb)],e[_0x22001c(0x415)]),O(0x1,(0x0,a[_0x22001c(0x299)])(a[_0x22001c(0x383)])),O(0x2,a[_0x22001c(0x20b)]),O(0x3,a[_0x22001c(0x30f)]),O(0x4,c[_0x22001c(0x39b)])],$),exports[_0x22001c(0x2ed)]=Qe,Object[_0x22001c(0x1a4)](exports,'UniverSheetsShapeUIPlugin',{'enumerable':!0x0,'get':function(){return $;}});
1
+ const _0x5db5d0=_0x29aa;(function(_0x57e97a,_0x29690c){const _0x2122ae=_0x29aa,_0x22aeb6=_0x57e97a();while(!![]){try{const _0x4d0814=parseInt(_0x2122ae(0x372))/0x1+parseInt(_0x2122ae(0x10b))/0x2*(-parseInt(_0x2122ae(0x2da))/0x3)+-parseInt(_0x2122ae(0x36f))/0x4*(parseInt(_0x2122ae(0x1b7))/0x5)+-parseInt(_0x2122ae(0x347))/0x6+-parseInt(_0x2122ae(0x107))/0x7*(parseInt(_0x2122ae(0x2f3))/0x8)+parseInt(_0x2122ae(0x348))/0x9+-parseInt(_0x2122ae(0x22a))/0xa*(-parseInt(_0x2122ae(0x288))/0xb);if(_0x4d0814===_0x29690c)break;else _0x22aeb6['push'](_0x22aeb6['shift']());}catch(_0x288579){_0x22aeb6['push'](_0x22aeb6['shift']());}}}(_0x4052,0xab4d4),Object[_0x5db5d0(0x1af)](exports,Symbol[_0x5db5d0(0x206)],{'value':_0x5db5d0(0x285)}));let e=require('@univerjs-pro/shape-editor-ui'),t=require('@univerjs/ui'),n=require('@univerjs-pro/engine-shape'),r=require('@univerjs-pro/shape-editor'),i=require('@univerjs-pro/sheets-shape'),a=require('@univerjs/core'),o=require('@univerjs/sheets'),s=require('@univerjs/drawing'),c=require('@univerjs/engine-render'),l=require('@univerjs/sheets-ui'),u=require('rxjs'),d=require('@univerjs/drawing-ui'),f=require('@univerjs/design'),p=require('react/jsx-runtime'),m=require('@univerjs/sheets-drawing'),h=require('@univerjs-pro/license'),g=require('@univerjs/docs'),_=require('@univerjs/docs-ui'),v=require('@univerjs/sheets-drawing-ui'),y=require('@univerjs/icons'),b=require('react');function x(_0xef507d,_0x3966d1){const _0x1412c1=_0x5db5d0;let _0x7f8428={};for(let _0x5712ec of Object['keys'](_0x3966d1)){let _0x30c8e4=_0x3966d1[_0x5712ec],_0x10ec61=_0xef507d[_0x5712ec];if(_0x30c8e4!==void 0x0){if(_0x10ec61===void 0x0){_0x7f8428[_0x5712ec]=void 0x0;continue;}typeof _0x30c8e4==_0x1412c1(0x23b)&&_0x30c8e4&&!Array[_0x1412c1(0x335)](_0x30c8e4)&&typeof _0x10ec61=='object'&&_0x10ec61&&!Array[_0x1412c1(0x335)](_0x10ec61)?_0x7f8428[_0x5712ec]=x(_0x10ec61,_0x30c8e4):_0x7f8428[_0x5712ec]=_0x10ec61;}}return _0x7f8428;}const S={'type':a[_0x5db5d0(0x33b)][_0x5db5d0(0x1f1)],'id':_0x5db5d0(0x176),'handler':(_0x437ce9,_0x533477)=>{const _0x1040c8=_0x5db5d0;let _0x216864=_0x437ce9[_0x1040c8(0x3b6)](i['SheetsShapeService']),{unitId:_0x32fa63,subUnitId:_0x540ae8,shapeType:_0x3919b3,shapeId:_0x698963,shapeData:_0x28cd2b,replaceShapeData:_0x1b8a38,oldShapeJSON:_0x37289a}=_0x533477;if(!_0x216864[_0x1040c8(0x11e)](_0x32fa63,_0x540ae8,_0x698963))return!0x1;let _0x58ca2f=_0x437ce9[_0x1040c8(0x3b6)](a[_0x1040c8(0x2b9)]),_0x1593ee=_0x437ce9['get'](a[_0x1040c8(0x236)]),{oldShapeType:_0x16f6a5,oldShapeData:_0x3095ed={}}=_0x37289a,_0x5d4f18=_0x1b8a38?_0x3095ed:x(_0x3095ed,_0x28cd2b||{}),_0x2020e8={'id':i[_0x1040c8(0x244)]['id'],'params':{'unitId':_0x32fa63,'subUnitId':_0x540ae8,'shapeId':_0x698963,'shapeType':_0x3919b3,'shapeData':_0x28cd2b,'replace':_0x1b8a38}},_0x4e5306={'id':i[_0x1040c8(0x244)]['id'],'params':{'unitId':_0x32fa63,'subUnitId':_0x540ae8,'shapeId':_0x698963,'shapeType':_0x16f6a5,'shapeData':_0x5d4f18,'replace':_0x1b8a38}};return _0x58ca2f[_0x1040c8(0x3b8)](_0x2020e8['id'],_0x2020e8[_0x1040c8(0x1a0)])?(_0x1593ee[_0x1040c8(0x327)]({'unitID':_0x32fa63,'undoMutations':[_0x4e5306],'redoMutations':[_0x2020e8]}),!0x0):!0x1;}};function C(_0x545848,_0x599dff,_0x44f34d,_0x152bb2,_0x4b6a54,_0x3ac8bf){const _0x185f1f=_0x5db5d0;let _0x5fbf90={'unitId':_0x599dff,'subUnitId':_0x44f34d,'shapeId':_0x152bb2,'shapeData':_0x3ac8bf,'oldShapeJSON':_0x4b6a54};return _0x545848[_0x185f1f(0x3e5)](S['id'],_0x5fbf90);}function ee(_0x1fb605,_0x3da226,_0x596126,_0x5d6790,_0x2a59cf,_0x529a50){const _0x82e95b=_0x5db5d0;let _0x424319={'unitId':_0x3da226,'subUnitId':_0x596126,'shapeId':_0x5d6790,'shapeData':_0x529a50,'oldShapeJSON':_0x2a59cf};return _0x1fb605[_0x82e95b(0x3e5)](S['id'],_0x424319);}function w(_0x54642a){'@babel/helpers - typeof';const _0x2eadd1=_0x5db5d0;return w=typeof Symbol==_0x2eadd1(0x1f3)&&typeof Symbol[_0x2eadd1(0x282)]==_0x2eadd1(0x3ad)?function(_0x695935){return typeof _0x695935;}:function(_0x1613a1){const _0x286296=_0x2eadd1;return _0x1613a1&&typeof Symbol=='function'&&_0x1613a1['constructor']===Symbol&&_0x1613a1!==Symbol[_0x286296(0x406)]?_0x286296(0x3ad):typeof _0x1613a1;},w(_0x54642a);}function te(_0x342797,_0x64d7e3){const _0x2ce095=_0x5db5d0;if(w(_0x342797)!='object'||!_0x342797)return _0x342797;var _0x7f380b=_0x342797[Symbol['toPrimitive']];if(_0x7f380b!==void 0x0){var _0x525cb8=_0x7f380b[_0x2ce095(0x33a)](_0x342797,_0x64d7e3||'default');if(w(_0x525cb8)!=_0x2ce095(0x23b))return _0x525cb8;throw TypeError(_0x2ce095(0x323));}return(_0x64d7e3===_0x2ce095(0x40a)?String:Number)(_0x342797);}function T(_0x10cef8){const _0x10cf74=_0x5db5d0;var _0x551b9a=te(_0x10cef8,_0x10cf74(0x40a));return w(_0x551b9a)==_0x10cf74(0x3ad)?_0x551b9a:_0x551b9a+'';}function E(_0x4d2a51,_0x5539ec,_0x2fc6b2){const _0x1f090d=_0x5db5d0;return(_0x5539ec=T(_0x5539ec))in _0x4d2a51?Object[_0x1f090d(0x1af)](_0x4d2a51,_0x5539ec,{'value':_0x2fc6b2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4d2a51[_0x5539ec]=_0x2fc6b2,_0x4d2a51;}function D(_0x3fd9de,_0xd820bf,_0x413ae5){const _0x2f54e8=_0x5db5d0;let _0x4ace68=(0x0,e[_0x2f54e8(0x3ce)])(_0x3fd9de,{..._0xd820bf,'dataModel':{..._0xd820bf[_0x2f54e8(0x373)]??{},..._0x413ae5?{'doc':_0x413ae5}:null}}),_0x587801=(0x0,e[_0x2f54e8(0x416)])(_0x4ace68);return{'clip':(0x0,e[_0x2f54e8(0x165)])(_0x4ace68,_0x587801),'wrapStrategy':_0x587801};}function _0x4052(){const _0x245dae=['getConnectionInfo','shape-adjust-point-','mergeMenu','MobileShapeEditorService','ShapeTextRibbonControl','getInterceptPoints','_imageShapeClipController','OTHERS','getCurrentScrollState','width','BuiltInUIPart','getAdjustInfoByName','stroke','_closeShapeEditPanel','sheets-shape-ui.insertShape','isConnectorShape','ShapeDefaultConfig','hideContextualTab','_baseShapeWidth','isDrawingObject','render','ICommandService','setConfig','presentationChanged$','getCurrentSkeleton','InsertShapeCommand','getAutoFitPresentations','getAdjustNames','isRender','canvas','_groupCopyPasteController','_clearShapeAdjustControls','getRenderUnitById','presetId','_registerFocusChangeHandler','popup','clip-','sheets-shape-ui.imagePanel.crop.shape','editingParams$','_canEdit','visible','strokeWidth','isHighlighted','worldPoint','entries','getUnitId','CopySheetCommand','getDrawingDataForUnit','setPrstGeom','_transform','_updateAdjustControlPositions','drawWith','_initSelection','set','402ZXlbtU','FromArray','startWith','contentVerticalOffset','ISheetClipboardService','sheet.shape.text.float-menu','TOP','_sidebarService','clipTop','ShapeArrowTypeEnum','GROUP','setOnSavingEditorData','SHEET_SHAPE_UI_PLUGIN','scene','multiply','setCollapsedIds','_context','updateConnectionDetection','_sheetDrawingShapeRenderController','_clearConnectionSites','order','PictureFill','_sheetClipboardService','complete','normal','115176EwBErT','_sheetPermissionCheckController','worldPoints','onReady','OBJECT_LIST_FLOATING_SECTION_ID','_findNearestConnectionSite','getBatchRemoveOp','getShapeType','length','_iconManager','RemoveSheetCommand','fillType','asObservable','_formulaShapes','cancelEditing','getEditing','doc','_loadAndSetImage','sheets-shape-ui.title','forward','animateFormulaPresentation','renderDrawingShape','_releaseRenderCache','_renderWithCache','value','UniverDocsPlugin','setSrcRect','Rect','CURSOR_TYPE','removeLinePoints','plainShapeTextToDocumentData','SHAPE_TEXT','MEDIA','_shapePopupMenuDisposable','ImageSourceTypeEnum','_registerFeatureMenu','ConnectorCoordinateTransform','_getConnectionSiteAngle','UNIVER_SHEET','_initEditingParams','fill','_registerGroupFeaturePasteHook','getDrawingOrder','_rerouteConnectorLine','IConfigService','applyPoint','sheets-shape-ui.deleteShape','RemoveSheetsShapeMutation','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','DrawingApplyType','_currentConnectionTarget','SetDrawingArrangeCommand','pushUndoRedo','changeStart$','getTextModel','transform','_updateTransform','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','getObjectListPanelSectionIdForDrawingType','activateDrawingObject','_completionFrame','_resetState','SHAPE_EDITOR_TRANSFORMER_CONFIG','SheetSkeletonService','draw','_sheetShapeAdjustController','isArray','featurePluginUpdateNotification','REMOVE','resetCursor','sheets-shape-ui.flipVertical','call','CommandType','cxnPointFill','fromChangeset','UniverRenderEnginePlugin','sheets-shape-ui.ribbon.shape-format.arrange-front','shapeId','formulaPresentation','getSkeletonParam','getDrawingData','focus$','indexOf','RemoveSheetDrawingCommand','3172194aLZtCw','10812996HhPHlv','_drawRichTextLayer','BottomIcon','InsertSheetsShapeMutation','updateShapeFillImage','_addShapeConnectorHandlerObject','vertical','_getZoomRatio','ShapeGroupEnum','_sheetCanvasPopManagerService','UniverLicensePlugin','_update','offsetY','endConnectionDetection','generateRandomId','_focusedDrawings','actualHeight','resourceCollector','with','_hasReset','description','startY','MenuItemType','_imageIoService','Circle','interceptCommand','setEditing','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','SheetSkeletonManagerService','_highlightedSiteIndex','debounceRefreshControls','_getImageDrawingInfo','beforeCommandExecuted','onPointerUp$','stringify','SheetsShapeUIContextualRibbonSchema','ToggleSheetsShapeFlipCommand','_initEvents','VIEW_MAIN_LEFT_TOP','780PKlQnq','viewportScrollY','_calculateFreeEndpointAngle','874639LbSQlv','dataModel','buildShapeTextDataUpdate','sheets-shape-ui.editText','_isShouldShowDrawingShapeAdjust','FOCUSING_COMMON_DRAWINGS','front','sheet.operation.open-mobile-shape-editor','jsx','_handleConnectedEndpointMove','_registerDrawingFocusChangeHandler','_isHighlighted','registerDependencies','DocCanvasPopManagerService','ShapeTextHyperLinkPopupService','add','useMemo','_disposed','getCurrentTypeOfUnit$','_addShapeConnectorHandlerObjects','remove$','_initMenu','_transformCalculateSrcRect','getState','ShapeFloatingToolbarService','_drawingRenderService','addClipboardHook','FlipHorizontalIcon','filter','ToggleShapeFloatingToolbarOperation','IPermissionService','resolveFormulaShapeAutoFitSize','ShapeFillEnum','_executeConnectedRouteConnectionCommand','div','EMPTY','start','useState','shapeData','UniverSheetsShapeMobileUIPlugin','DocumentViewModel','pick','_shapeFloatingToolbarService','jsxs','cos','transformToDrawingPosition','getDrawingTypeNameKey','setShapeProps','fontFamily','computeConnectorResizeLayout','setPrstGeomAdjValues','_drawingType','calculate','Shape','_draggingConnectorId','DRAWING_OBJECT_LAYER_INDEX','focusDrawing','DisposableCollection','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','symbol','values','disableShapeOption','index','_drawingManagerService','_clearPopups','clip-adj-','computeStraightConnectorLayout','RENDER_CLASS_TYPE','get','getObject','syncExecuteCommand','hidden','WorksheetEditPermission','startArrow','getShapeData','sheet.operation.open-shape-object-list-panel','IURLImageService','unitId','image-clip-adjust-point-','drawingType','VerticalAlign','preValue','sheet.command.menu-insert-shape','height','shouldAllowShapeTextEditorHostSizeShrink','ang','resize','VIEW_MAIN_TOP','updateDocumentStyle','getTransformerByCreate','sheets-shape-ui.config','sheet.menu.shape.flip-horizontal','resolveShapeTextEditorBehaviorShapeData','idMap','connectInjector','_configService','_unitId','error','composeMatrix','DEFAULT_PASTE','_disposePopups','_config','_handleBasicShapeUpdateConnectorLineShape','_sheetSkeletonService','setFormulaPresentation','setFallbackVisible','_isImagePointerDown','SetDrawingSelectedOperation','shapeText','_isConnecting','size','_getShapeAdjustPointListById','_insertingShapeKeys','drawingId','_visible','executeCommand','DrawingTypeEnum','doc.image-clip.shape-picker.component','Path','restore','actions','sheet.menu.shape.flip-vertical','DrawingImageClipService','angle','sheet.image-clip.shape-picker.component','_baseWidth','_drawShapeText','skeleton','transformToAxisAlignPosition','register','_findShapeAtPoint','_contextService','_getShapeAdjustInfosById','UniverSheetsDrawingUIPlugin','changeEnd$','ShapeFormatSettingIcon','name','open','getFocusDrawings','registerFeaturePasteHook','ContextMenuPosition','sheets-shape-ui.shape-format.formula-ribbon-control','UniverInstanceType','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','pipe','getConnectorLinePoints','getViewportByCell','_createCopyInfoByRange','prototype','sin','setShapeData','getDrawingVisible','string','Image','parse','useEffect','_connectorObjects','refreshAdjustControls','map','shape-editor-ui.arrange.forward','MenuManagerPosition','DRAWING','Arrow','RIBBON','resolveShapeTextEditorWrapStrategy','localeService','_injector','DocSelectionRenderService','initShapePopupMenu','PREDEFINED_HOOK_NAME','canvasElement','translate','UniverSheetsDrawingMobileUIPlugin','end','DocEventManagerService','SetSheetDrawingCommand','_activeAdjustPointList','_baseShapeTop','save','_editingParams$','subscribe','version','createShapeFormulaDocument','flatMap','lineShapeId','relation','useReducer','getOwnPropertyDescriptor','left','_shapeTextEditingService','next','Line','useDependency','sheets-shape-ui.ribbon.shape-format','getTextStyle','viewportScrollX','getAdjustValueByName','ComponentManager','_activeTargetShapeId','registerClipDelegate','objects','_updateShapeAdjustControls','resolveShapeContextualRibbonHostMode','_ribbonService','completeEditing','_baseShapeHeight','_sheetBasicShapeConnectionPointController','calcAdjValues','ShapeStyleRibbonControl','sheets-shape-ui.objectListPanel.open','forEach','close','update$','IContextService','cxnPointStrokeWidth','_connectionSiteObjects','wrapStrategy','ShapeQuickStyleGallery','setHighlighted','FOCUSING_SHAPE_TEXT_EDITOR','flipY','_addControl','cxnPointRadius','ContextMenuGroup','prstGeom','oKey','localToWorld','None','getCurrentRangeDisable$','_props','axisAlignSheetTransform','flipX','_copyInfo','_attachConnectorObjectEvent','_sheetPrintInterceptorService','cxnIndex','onStarting','_activeImageId','refreshShapeFillImage','_currentUniverService','changeShapeType','_renderManagerService','toDisposable','trim','581UECopC','bottom','delete','sheets-shape-ui.flipHorizontal','11622irvWIl','_drawSimpleText','IDrawingManagerService','undo','from','shapeModel','_hide','getRealBound','_isStartConnectorPoint','_executeResizeCommand','activeSheet$','selectable','SolidLine','_init','_registerImageShapeClipDelegate','_registerIcons','touchDependencies','TopmostIcon','getDrawingOKey','getShapeModel','bindRenderTransformerLifecycle','ShapeTextEditorContainer','pluginName','getShapeTextRect','getDrawingPoints','_draw','attachTransformerTo','custom','_shapeFormulaService','_sidebarDisposable','getStartConnectInfo','_activeShapeAdjustPointList','UUID','_univerInstanceService','setPresentation','getCanvasElement','_initCopyPaste','isRenderLinePointsMode','refreshTransform','getTransformer','_getDrawingRect','SheetsSelectionsService','DRAWING_IMAGE','getActiveSheet','_clearShapeConnectorHandlerObjects','onload','_attachAdjustEvent','createControl$','_onSavingEditorData$','enableObjectsEvent','_createShapeAdjustControls','SheetDrawingAnchor','_reset','_baseDrawingRect','updateContext','UniverDocsUIPlugin','getShapeTextData','DocRenderController','_getShapeInfo','getShapeQuickStyleType','deriveStateFromActiveSheet$','useObservable','sheetViewStartColumn','_isDrawingShapePointDown','_registerOperations','_uiPartsService','getActualSize','getObjectListPanelLabels','scale','ArrangeTypeEnum','subscribeEvent','text','_formulaKey','registerCommand','setCanUseShapeClip','fillImageSource','transformForAngle','ShapeFloatingToolbar','DependentOn','getDrawingByParam','isEditing','adjustValues','SetDrawingApplyMutation','_lastEditingShapeKey','stopPropagation','panel','onTransformChange$','_generateCopyPasteMutations','_registerComponents','ShapeArrowSizeEnum','shouldClipShapeTextDocument','UniverMobileUIPlugin','Injector','translateWithPrecision','getSheetCommandTarget','_currentScene','point','getUnitType','_shapeRenderController','_insertShapes','_handleConnectorPointerUp','_updateImageAdjValues','classType','IMenuManagerService','_adjHandlerPointerMove','RibbonInsertGroup','includes','sheet.command.update-shape-data','switchMap','unregister','Vector2','Plugin','onDblclick$','ancestorTransform','disposeWithMe','clip','shapeType','_applyFormulaAutoFitSize','image','_isStartAdjusting','shapeKey','_updateSrcRectByTransform','_cxtHandlerPointerUp','getConnectionSiteList','BehaviorSubject','shape-editor-ui.arrange.back','_executeConnectionCommand','ShapeFormulaService','_initCommands','onSavingEditorData$','_handleFreeEndpointPointerUp','has','color','isHitLine','_adjName','sheets-shape-ui.ribbon.shape-format.arrange-forward','insertGroupObject','sheetTransform','UNIVER_DOC','isRichText','connector-handler-','SHEET_VIEWPORT_KEY','_popupMenuListener','setAdjustValueByName','getDrawingSearch','BUTTON','DRAWING_SHAPE','sheets-shape-contextual-ribbon','isCurvedConnectorShape','params','isHit','changing$','_getOrCreateShapeModel','_addShapeAdjustControl','sheetViewStartRow','SHAPE','DrawingCommonPanel','UPDATE','_setTransForm','onCommandExecuted','transformByState','lineType','_commandService','getUnit','defineProperty','SELECTOR','sqrt','Transform','ShapePickerDropdown','startConnectionDetection','onPointerMove$','ShapeLineTypeEnum','32755CNFlwD','vertical-center','ObjectLayersIcon','IImageIoService','#1a73e8','getVisible','push','_index','#4285f4','ShapeFormulaRibbonControl','_activeShapeInfo','onPointerDown$','FlipVerticalIcon','dispose','sheets-shape-ui.permission.editErr','highlighted','activeAnObject','IUniverInstanceService','MobileShapeActionPanel','worldRect','FormulaShapeAnimationController','UniverSheetsShapePlugin','_baseLeft','refreshFormulaPresentation','ShapePickerPanel','_commandExecutedListener','_loadShapePictureFill','_formulaAnimation','Observable','merge','getObjectIncludeInGroup','onSteady','isMainScene','_openShapeEditPanel','_getConnectPointInfo','SHAPE_CHANGE_PICKER_COMPONENT','getEndConnectInfo','MoveUpIcon','UniverShapeEditorUIPlugin','setShouldShowAdjust','shape-editor-ui.arrange.front','SheetsShapeService','CUT','invert','Fragment','interceptor','clearAdjustValue','DocSelectionManagerService','_getImagePrstGeom','rotation','makeDirty','UniverSheetsPlugin','data','updateLinePoints','sectionFloating','startX','_baseTop','prstGeomAdjValues','COMMAND','_createControls','function','_shapeService','srcRect','_activeAdjustInfo','_generatePasteMutations','getDrawingShapeKeyByDrawingSearch','currentAdjustValues','clone','marginTop','shape-editor-ui.toolbar.quickStyles','PRINTING_COMPONENT_COLLECT','cxnPointStroke','Disposable','_handleFreeEndpointMove','ISheetDrawingService','getCurrentUnitInfo','some','UniverSheetsShapeUIPlugin','_drawRichText','toStringTag','FloatingObjectToolbarPosition','_handleConnectedEndpointPointerUp','sheet.operation.close-sheet-shape-format-panel','subUnitId','HorizontalAlign','sheets-shape-format-font-family-menu','permissionCheckWithoutRange','getParent','univer-box-border\x20univer-px-4\x20univer-text-sm','rect','isolated','_shapeId','resolveActiveShapeQuickStylePresetId','getShapeTypeById','UniverDrawingPlugin','getBatchAddOp','Large','beginPath','_sheetDrawingService','getCurrentLastSelection','DocumentDataModel','_registerDrawingMoveHandler','_getSceneAndTransformerByDrawingSearch','sheets-shape-ui.formatShape','clipHeight','_isOpenedShapeEditPanel','_shapes','sheets-shape-ui.shape-format.text-ribbon-control','_permissionService','_registerMoveHandler','IUIPartsService','IRenderManagerService','getImage','_executeConnectedRouteResizeCommand','getPresentation','18460kFIANa','attachRangeWithCoord','INSERT','_generateCutPasteMutations','fontSize','Inject','top','DrawingRenderService','LocaleService','getDrawingEditable','abs','IconManager','IUndoRedoService','SheetCanvasPopManagerService','formulaBinding','getBasicShapeRotateBound','getSkeleton','object','_subUnitId','_baseHeight','fillImageSourceType','type','decorate','_urlImageService','redo','ShapeModel','UpdateSheetsShapeDataMutation','_getScrollInfo','UniverDrawingUIPlugin','SheetPermissionCheckController','visible$','find','useFormulaShapeToolbar','adjName','computeConnectorRouteLayout','sheets-shape-ui.objectListPanel.title','getOrCreateDrawingCopyPlan','clearAdjustControls','extensionGroups','addObject','clearControl$','getBentTypeFromPoints','getImageSourceCache','UniverSheetsDrawingPlugin','back','memo','_activeShapeModel','ShapeTypeEnum','registerRenderModule','style','_menuManagerService','sheets-shape-ui.shape-format.style-ribbon-control','clipByShape','_initPermission','_baseShapeLeft','_drawingAddListener','sectionCanvas','SheetInterceptorService','src','DocumentSkeleton','MobileDropdown','MoveDownIcon','title','adjHandleSize','blockExecuteWithoutPermission','ShapeIcon','ShapeTextFloatMenuRenderControllerBase','getSheetBySheetId','_showConnectionSites','targetShapeId','_cxnIndex','run','_localeService','_initPrinting','getConnectionRelation','getScene','_cxtHandlerPointerMove','parent','connection-site-','sheets-shape-ui.editShape','getZoomRatio','LEFT','ISidebarService','setCursor','normalizeShapeTextModel','_sheetsShapeService','_componentManager','isLineShape','iterator','onRendered','unsubscribe','Module','packageName','getShapeDataById','14333QKTDoh','isInGroup','setContextValue','getMenuHiddenObservable','getMatrix','_clearControls','endArrow','isStartConnectorPoint','registerComponent','_clipService','_shapeEditPanelVersion','_sheetInterceptorService','ObjectListPanelBase','_clearCompletionFrame','_activeShapeId','drawing.operation.set-drawing-active','UniverSheetsUIPlugin','getSelectedObjectMap','OPERATION','UpdateConnectorRelationCommand','keys','_adjHandlerPointerUp','_initialize','horizontal','routeConnectorLineShape','disableObjectsEvent','ShapeEditPanel','setFillImage'];_0x4052=function(){return _0x245dae;};return _0x4052();}var O=class extends c[_0x5db5d0(0x3a7)]{constructor(_0xd9fa73,_0x415cf2){const _0x571ea9=_0x5db5d0;super(_0xd9fa73,_0x415cf2),E(this,_0x571ea9(0xf8),void 0x0),E(this,'_formulaAnimation',new e[(_0x571ea9(0x1cb))](()=>this['makeDirty'](!0x0),()=>this['_applyFormulaAutoFitSize']())),E(this,_0x571ea9(0x388),!0x0),E(this,_0x571ea9(0x3a5),a[_0x571ea9(0x3e6)][_0x571ea9(0x19d)]),E(this,_0x571ea9(0x2b7),!0x0),this[_0x571ea9(0xf8)]={..._0x415cf2},this['_formulaAnimation']['setPresentation'](_0x415cf2[_0x571ea9(0x341)],_0x415cf2[_0x571ea9(0x307)]!==!0x1),this[_0x571ea9(0x118)](),this['_applyFormulaAutoFitSize']();}[_0x5db5d0(0x118)](){const _0x250df3=_0x5db5d0;this[_0x250df3(0x161)]['subscribeEvent'](_0x10c0c1=>{const _0x15aba8=_0x250df3;this[_0x15aba8(0x184)](_0x10c0c1);});}['setPrstGeom'](_0x139033){const _0x5e8dc7=_0x5db5d0;this[_0x5e8dc7(0xf8)][_0x5e8dc7(0xf3)]=_0x139033;}[_0x5db5d0(0x362)](_0x1cd12a){const _0x18d2fb=_0x5db5d0;this[_0x18d2fb(0xf8)]['isEditing']=_0x1cd12a,this[_0x18d2fb(0x1e9)](!0x0);}[_0x5db5d0(0x3da)](_0x3f836d,_0x2c8eec=!0x0){const _0x443af5=_0x5db5d0;this[_0x443af5(0x1d2)][_0x443af5(0x12d)](_0x3f836d,_0x2c8eec),this['_props']['formulaPresentation']=_0x3f836d,this[_0x443af5(0x180)](),this[_0x443af5(0x1e9)](!0x0);}[_0x5db5d0(0x180)](){const _0x2d4253=_0x5db5d0;let _0x18c4c5=this[_0x2d4253(0xf8)]['shapeModel'],_0x25f487=_0x18c4c5['getShapeTextData'](),_0x3697ca=(0x0,e[_0x2d4253(0x27e)])(_0x25f487==null?void 0x0:_0x25f487[_0x2d4253(0x373)]),_0x58bc03=_0x3697ca==null?void 0x0:_0x3697ca['doc'],_0x118d3f=this['_formulaAnimation'][_0x2d4253(0x2be)]();if(!_0x58bc03||_0x118d3f['length']===0x0)return;_0x18c4c5['updateContext']({'width':this[_0x2d4253(0x2ad)],'height':this[_0x2d4253(0x3c5)]});let _0x21f78b=(0x0,e[_0x2d4253(0x391)])({'documentData':_0x118d3f['map'](_0x411997=>(0x0,r[_0x2d4253(0x428)])(_0x58bc03,_0x411997)),'height':this[_0x2d4253(0x3c5)],'shapeData':_0x18c4c5[_0x2d4253(0x3bc)](),'textRect':_0x18c4c5[_0x2d4253(0x122)]({'left':0x0,'top':0x0,'width':this[_0x2d4253(0x2ad)],'height':this[_0x2d4253(0x3c5)]}),'width':this[_0x2d4253(0x2ad)]});if(_0x21f78b){var _0x3a048b;this['resize'](_0x21f78b['width'],_0x21f78b[_0x2d4253(0x3c5)]),(_0x3a048b=this[_0x2d4253(0x275)]())==null||(_0x3a048b=_0x3a048b[_0x2d4253(0x132)]())==null||_0x3a048b[_0x2d4253(0x366)]();}}get[_0x5db5d0(0x3bf)](){const _0x2f1875=_0x5db5d0;return this[_0x2f1875(0xf8)][_0x2f1875(0x3bf)];}get['subUnitId'](){const _0x5c15a0=_0x5db5d0;return this[_0x5c15a0(0xf8)][_0x5c15a0(0x20a)];}[_0x5db5d0(0x184)](_0x5db135){const _0x154cde=_0x5db5d0;if(this[_0x154cde(0xf8)][_0x154cde(0x1f5)]==null||!this[_0x154cde(0x388)])return;let {width:_0xd1b730,height:_0x2981a0}=this,{width:_0x4bcce5=0x0,height:_0x1845e4=0x0}=_0x5db135[_0x154cde(0x3c3)],{left:_0x155e59=0x0,top:_0x4f34ca=0x0,right:_0x547aef=0x0,bottom:_0x2f4d67=0x0}=this[_0x154cde(0xf8)][_0x154cde(0x1f5)],_0x59b10d=_0x155e59,_0x390ee4=_0x4f34ca,_0x4aa67c=_0x547aef,_0x26720d=_0x2f4d67,_0x32e993=!0x1;if(_0x4bcce5!==0x0&&_0x4bcce5!==_0xd1b730){let _0x56462f=_0x155e59/_0x4bcce5,_0x46bb61=_0x547aef/_0x4bcce5;_0x59b10d=_0xd1b730*_0x56462f,_0x4aa67c=_0xd1b730*_0x46bb61,_0x32e993=!0x0;}if(_0x1845e4!==0x0&&_0x1845e4!==_0x2981a0){let _0x5479f2=_0x4f34ca/_0x1845e4,_0x433c4d=_0x2f4d67/_0x1845e4;_0x390ee4=_0x2981a0*_0x5479f2,_0x26720d=_0x2981a0*_0x433c4d,_0x32e993=!0x0;}_0x32e993&&this[_0x154cde(0x30d)]({'left':_0x59b10d,'top':_0x390ee4,'right':_0x4aa67c,'bottom':_0x26720d});}['setSrcRect'](_0x1dc783){const _0x18e0c9=_0x5db5d0;this[_0x18e0c9(0xf8)][_0x18e0c9(0x1f5)]=_0x1dc783,this['makeDirty'](!0x0);}[_0x5db5d0(0x2a3)](_0x43983a){const _0x18147f=_0x5db5d0;this[_0x18147f(0xf8)][_0x18147f(0x181)]=_0x43983a,this['makeDirty'](!0x0);}set['transform'](_0x59ef2c){const _0x4fb357=_0x5db5d0;this[_0x4fb357(0x2d5)]=_0x59ef2c;}get['transform'](){const _0x1dd4dd=_0x5db5d0;this[_0x1dd4dd(0x2d5)]||this[_0x1dd4dd(0x1a9)]();let _0x51cc1e=this[_0x1dd4dd(0x2d5)][_0x1dd4dd(0x1fa)]();return this[_0x1dd4dd(0x157)](_0x51cc1e);}get[_0x5db5d0(0x110)](){const _0x4aa4ab=_0x5db5d0;return this[_0x4aa4ab(0xf8)][_0x4aa4ab(0x110)];}get[_0x5db5d0(0x340)](){const _0x1d4f09=_0x5db5d0;return this[_0x1d4f09(0xf8)]['shapeId'];}get[_0x5db5d0(0x171)](){const _0x5576ac=_0x5db5d0;return c[_0x5576ac(0x3b5)][_0x5576ac(0x1a6)];}[_0x5db5d0(0x124)](_0x5697bf,_0x3876d6,_0x4c00d2,_0x12759b){const _0x9fb9d9=_0x5db5d0;let _0x42d423=this['_props'][_0x9fb9d9(0x110)];if(!_0x42d423||!_0x3876d6)return;let _0x82f002=_0x4c00d2??this[_0x9fb9d9(0x2ad)],_0x48cf74=_0x12759b??this[_0x9fb9d9(0x3c5)],_0x55d146={'shapeType':_0x42d423[_0x9fb9d9(0x2fa)](),'width':_0x82f002,'height':_0x48cf74},_0x341902={'renderMode':n['ShapeRenderModeEnum'][_0x9fb9d9(0x3e8)],'oKey':this['oKey'],'image':this[_0x9fb9d9(0xf8)][_0x9fb9d9(0x181)],'angle':this[_0x9fb9d9(0x3ed)]};_0x42d423[_0x9fb9d9(0x141)](_0x55d146),_0x5697bf['save']();let _0x352649={'top':0x0,'left':0x0,'width':_0x82f002,'height':_0x48cf74},_0xff18f5=_0x42d423['getDrawingEffectBounds'](_0x352649);_0xff18f5?this[_0x9fb9d9(0x30a)](_0x5697bf,_0xff18f5,_0xda7ec7=>{const _0xa92a48=_0x9fb9d9;_0x42d423[_0xa92a48(0x2b8)](_0xda7ec7,_0x352649,_0x341902);}):(this[_0x9fb9d9(0x309)](),_0x42d423['render'](_0x5697bf,_0x352649,_0x341902)),_0x5697bf[_0x9fb9d9(0x3e9)]();let _0x4e106a=_0x42d423[_0x9fb9d9(0x143)](),_0x4b2903=_0x42d423['getShapeTextRect'](_0x352649),_0x3a7344=_0x42d423['isLineShape']();if(_0x4e106a&&_0x4b2903&&!_0x3a7344){_0x5697bf[_0x9fb9d9(0x424)](),this['getState']()[_0x9fb9d9(0xfa)]&&_0x5697bf[_0x9fb9d9(0x14f)](-0x1,0x1);let _0x3e0230=_0x82f002/0x2,_0x854f0=_0x48cf74/0x2;_0x5697bf[_0x9fb9d9(0x41d)](-_0x3e0230,-_0x854f0),_0x5697bf[_0x9fb9d9(0x218)](),this[_0x9fb9d9(0x3f0)](_0x5697bf,_0x4e106a,_0x4b2903),_0x5697bf[_0x9fb9d9(0x3e9)]();}}[_0x5db5d0(0x123)](_0x3debcd){}[_0x5db5d0(0x3f0)](_0x22266f,_0x97f4c2,_0x278304){const _0x1cc66e=_0x5db5d0;var _0xc8a5d3;this[_0x1cc66e(0xf8)][_0x1cc66e(0x15b)]||(!((_0xc8a5d3=_0x97f4c2['dataModel'])!=null&&_0xc8a5d3[_0x1cc66e(0x303)])&&_0x1cc66e(0x196)in _0x97f4c2&&_0x97f4c2[_0x1cc66e(0x196)]===!0x1?this[_0x1cc66e(0x10c)](_0x22266f,_0x97f4c2,_0x278304):this[_0x1cc66e(0x205)](_0x22266f,_0x97f4c2,_0x278304));}[_0x5db5d0(0x10c)](_0x3a37fb,_0x4f1f8f,_0x163ac1){const _0x163778=_0x5db5d0;this['_drawRichText'](_0x3a37fb,{..._0x4f1f8f,'text':_0x4f1f8f[_0x163778(0x152)]??'','dataModel':{'doc':(0x0,e[_0x163778(0x311)])(_0x4f1f8f,'sheets-shape-text-'+this['oKey'])}},_0x163ac1);}[_0x5db5d0(0x205)](_0x1a4af9,_0x3e62ef,_0xf13811){const _0x3ad8e8=_0x5db5d0;(0x0,e['drawFormulaShapeAnimationLayers'])(_0x1a4af9,this[_0x3ad8e8(0x1d2)],(_0x456fc5,_0x3afea9)=>{const _0x255329=_0x3ad8e8;this[_0x255329(0x349)](_0x456fc5,_0x3e62ef,_0xf13811,_0x3afea9);});}['_drawRichTextLayer'](_0x7cda5e,_0x37ef0b,_0x27b445,_0x3c1894){const _0x1e98ba=_0x5db5d0;let _0x5d99f8=this[_0x1e98ba(0xf8)][_0x1e98ba(0x417)];if(!_0x37ef0b[_0x1e98ba(0x373)]||!_0x5d99f8)return;let _0x4375f0=(0x0,e[_0x1e98ba(0x27e)])(_0x37ef0b['dataModel']);if(!_0x4375f0)return;let _0x26e2c4=_0x4375f0[_0x1e98ba(0x303)];if(!_0x26e2c4)return;let _0x561812=(0x0,r[_0x1e98ba(0x428)])(_0x26e2c4,_0x3c1894),_0x3ce2de=_0x4375f0['va']??a[_0x1e98ba(0x3c2)][_0x1e98ba(0x2e0)],_0x121a95=_0x4375f0['ha']??a[_0x1e98ba(0x20b)][_0x1e98ba(0x27b)],_0x5259cd=D(this['_props'][_0x1e98ba(0x110)][_0x1e98ba(0x3bc)](),_0x37ef0b,_0x561812),_0x3590c3=_0x37ef0b['isHorizontal'],_0x572bea=new a[(_0x1e98ba(0x21b))]((0x0,e['prepareShapeTextDocumentData'])(_0x561812,{'isHorizontal':_0x3590c3!==!0x1,'textRect':_0x27b445,'verticalAlign':_0x3ce2de,'horizontalAlign':_0x121a95,'wrapStrategy':_0x5259cd[_0x1e98ba(0xeb)]})),_0xd4f539=new c[(_0x1e98ba(0x39a))](_0x572bea),_0x45cb4b=c[_0x1e98ba(0x265)]['create'](_0xd4f539,_0x5d99f8);_0x45cb4b[_0x1e98ba(0x3a6)]();let _0x234d0c=_0x45cb4b[_0x1e98ba(0x14d)]()[_0x1e98ba(0x358)],_0x17bad9=(0x0,e['resolveShapeTextDocumentRenderLayout'])({'contentHeight':_0x234d0c,'verticalAlign':_0x3ce2de,'viewportHeight':_0x27b445['height']});_0x572bea[_0x1e98ba(0x3ca)]({'pageSize':{'width':_0x3590c3===!0x1?_0x27b445[_0x1e98ba(0x3c5)]:_0x27b445[_0x1e98ba(0x2ad)],'height':_0x17bad9['contentHeight']}}),_0x572bea['updateDocumentDataMargin']({'t':_0x17bad9[_0x1e98ba(0x1fb)]}),_0x45cb4b[_0x1e98ba(0x3a6)]();let _0x50e48c=new c['Documents']('shape-text-'+this[_0x1e98ba(0xf4)],_0x45cb4b,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x1e98ba(0x1e9)](!0x0)});_0x50e48c[_0x1e98ba(0x3c8)](_0x27b445[_0x1e98ba(0x2ad)],_0x17bad9['contentHeight']),_0x7cda5e[_0x1e98ba(0x424)](),_0x7cda5e[_0x1e98ba(0x168)](_0x27b445[_0x1e98ba(0x42e)],_0x27b445[_0x1e98ba(0x230)]),_0x5259cd[_0x1e98ba(0x17e)]&&(_0x7cda5e[_0x1e98ba(0x218)](),_0x7cda5e[_0x1e98ba(0x210)](0x0,_0x17bad9[_0x1e98ba(0x2e2)],_0x27b445['width'],_0x17bad9[_0x1e98ba(0x21f)]),_0x7cda5e[_0x1e98ba(0x17e)]()),_0x17bad9[_0x1e98ba(0x2dd)]&&_0x7cda5e[_0x1e98ba(0x168)](0x0,_0x17bad9[_0x1e98ba(0x2dd)]),_0x50e48c[_0x1e98ba(0x333)](_0x7cda5e),_0x7cda5e[_0x1e98ba(0x3e9)](),_0x50e48c[_0x1e98ba(0x1c4)](),_0x45cb4b[_0x1e98ba(0x1c4)](),_0xd4f539[_0x1e98ba(0x1c4)](),_0x572bea['dispose']();}[_0x5db5d0(0x2b8)](_0x5c1abb,_0x2c5483,_0x229aa6=!0x1){const _0x2859b1=_0x5db5d0;if(!this[_0x2859b1(0x2cc)])return this['makeDirty'](!0x1),this;let {width:_0x3a8398,height:_0x1f9bd5,left:_0x26870d,top:_0x8da84f}=this,_0x46f4cb=this['getRealBound']();if(_0x3a8398=_0x46f4cb[_0x2859b1(0x2ad)],_0x1f9bd5=_0x46f4cb[_0x2859b1(0x3c5)],_0x26870d=_0x46f4cb[_0x2859b1(0x42e)],_0x8da84f=_0x46f4cb[_0x2859b1(0x230)],this[_0x2859b1(0x2c0)](_0x2c5483)){let {top:_0x310fb3,left:_0x55fc43,bottom:_0x22a181,right:_0x2dc222}=_0x2c5483['viewBound'];if(_0x3a8398+this['strokeWidth']+_0x26870d<_0x55fc43||_0x2dc222<_0x26870d||_0x1f9bd5+this[_0x2859b1(0x2cd)]+_0x8da84f<_0x310fb3||_0x22a181<_0x8da84f)return this;}let _0x454667=_0x26870d+_0x3a8398/0x2,_0xd06746=_0x8da84f+_0x1f9bd5/0x2,_0x3f7351=this[_0x2859b1(0x32a)][_0x2859b1(0x28c)]();if(this[_0x2859b1(0xf8)][_0x2859b1(0x15b)]){let _0x12d78=this[_0x2859b1(0x389)](),_0x5a7b7b=new c[(_0x2859b1(0x1b2))]();_0x5a7b7b[_0x2859b1(0x3d4)]({..._0x12d78}),_0x3f7351=_0x5a7b7b[_0x2859b1(0x28c)]();}return _0x5c1abb['save'](),this['_props'][_0x2859b1(0x110)][_0x2859b1(0x130)]===!0x0||_0x5c1abb[_0x2859b1(0x32a)](_0x3f7351[0x0],_0x3f7351[0x1],_0x3f7351[0x2],_0x3f7351[0x3],_0x454667,_0xd06746),this[_0x2859b1(0x124)](_0x5c1abb,_0x2c5483,_0x3a8398,_0x1f9bd5),_0x5c1abb[_0x2859b1(0x3e9)](),this[_0x2859b1(0x1e9)](!0x1),this;}['getInverseCoord'](_0x4efd7b){const _0x343cfb=_0x5db5d0;let {left:_0x17e4e6,top:_0x71dc2a,width:_0x4faef4,height:_0x44fc87}=this[_0x343cfb(0x112)](),_0x171cef=this[_0x343cfb(0x32a)]['getMatrix'](),_0x34cb2c=_0x17e4e6+_0x4faef4/0x2,_0x5a1934=_0x71dc2a+_0x44fc87/0x2,_0x51db06=new c[(_0x343cfb(0x1b2))]([_0x171cef[0x0],_0x171cef[0x1],_0x171cef[0x2],_0x171cef[0x3],_0x34cb2c,_0x5a1934]),_0x19a3ed=this[_0x343cfb(0x20e)]();return(this[_0x343cfb(0x289)]&&(_0x19a3ed==null?void 0x0:_0x19a3ed[_0x343cfb(0x171)])===c[_0x343cfb(0x3b5)][_0x343cfb(0x2e4)]?_0x19a3ed[_0x343cfb(0x17c)]['multiply'](_0x51db06):_0x51db06)[_0x343cfb(0x1e2)]()[_0x343cfb(0x320)](_0x4efd7b);}[_0x5db5d0(0x1a1)](_0x1c2ba4){const _0x3c0599=_0x5db5d0;let {left:_0x324708,top:_0x562ce6,width:_0x4c4194,height:_0x338755}=this[_0x3c0599(0x112)](),_0x2414cf=_0x324708+_0x4c4194/0x2,_0x28b3a3=_0x562ce6+_0x338755/0x2,_0x1a40a2=this[_0x3c0599(0x32a)][_0x3c0599(0x28c)](),_0x1cbc5b=new c[(_0x3c0599(0x1b2))]([_0x1a40a2[0x0],_0x1a40a2[0x1],_0x1a40a2[0x2],_0x1a40a2[0x3],_0x2414cf,_0x28b3a3]),_0x4a8590=this[_0x3c0599(0x20e)](),_0xa9f75a=(this[_0x3c0599(0x289)]&&(_0x4a8590==null?void 0x0:_0x4a8590[_0x3c0599(0x171)])===c['RENDER_CLASS_TYPE'][_0x3c0599(0x2e4)]?_0x4a8590[_0x3c0599(0x17c)]['multiply'](_0x1cbc5b):_0x1cbc5b)[_0x3c0599(0x1e2)]()['applyPoint'](_0x1c2ba4),_0x107627=_0x4c4194/0x2,_0x5db5bc=_0x338755/0x2,_0x50e7cf=this[_0x3c0599(0xf8)][_0x3c0599(0x110)];return _0x50e7cf&&_0x50e7cf[_0x3c0599(0x281)]()?_0x50e7cf[_0x3c0599(0x190)](_0xa9f75a['x'],_0xa9f75a['y'],_0x4c4194,_0x338755):_0xa9f75a['x']>=-_0x107627-this['strokeWidth']/0x2&&_0xa9f75a['x']<=_0x107627+this['strokeWidth']/0x2&&_0xa9f75a['y']>=-_0x5db5bc-this['strokeWidth']/0x2&&_0xa9f75a['y']<=_0x5db5bc+this[_0x3c0599(0x2cd)]/0x2;}[_0x5db5d0(0x1c4)](){const _0x12cd32=_0x5db5d0;this['_formulaAnimation'][_0x12cd32(0x1c4)](),this[_0x12cd32(0xf8)][_0x12cd32(0x110)]=null,super[_0x12cd32(0x1c4)]();}},k=class extends c[_0x5db5d0(0x3a7)]{constructor(_0xf56d2c,_0x305645){const _0xaf7d21=_0x5db5d0;super(_0xf56d2c,_0x305645),E(this,_0xaf7d21(0x212),null),E(this,_0xaf7d21(0x191),null),E(this,_0xaf7d21(0x3d2),null),E(this,_0xaf7d21(0x23c),null),_0x305645&&this['setShapeProps'](_0x305645);}[_0x5db5d0(0x19b)](){const _0x904710=_0x5db5d0;return{'unitId':this[_0x904710(0x3d2)],'subUnitId':this[_0x904710(0x23c)],'drawingId':this['_shapeId']};}[_0x5db5d0(0x3a1)](_0x473758){const _0x56cc9a=_0x5db5d0;_0x473758[_0x56cc9a(0x340)]!==void 0x0&&(this[_0x56cc9a(0x212)]=_0x473758[_0x56cc9a(0x340)]),_0x473758[_0x56cc9a(0x24b)]!==void 0x0&&(this[_0x56cc9a(0x191)]=_0x473758['adjName']),_0x473758['unitId']!==void 0x0&&(this['_unitId']=_0x473758[_0x56cc9a(0x3bf)]),_0x473758['subUnitId']!==void 0x0&&(this[_0x56cc9a(0x23c)]=_0x473758['subUnitId']),this['transformByState']({'width':_0x473758[_0x56cc9a(0x2ad)],'height':_0x473758[_0x56cc9a(0x3c5)]});}['_draw'](_0xa5b53d){const _0x2e8898=_0x5db5d0;c['Circle']['drawWith'](_0xa5b53d,{'radius':n[_0x2e8898(0x2b4)][_0x2e8898(0x269)],'fill':n['ShapeDefaultConfig']['adjHandleFill'],'stroke':n[_0x2e8898(0x2b4)]['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};function A(_0x2f687a,_0x26e627){return function(_0xec30c4,_0x328301){_0x26e627(_0xec30c4,_0x328301,_0x2f687a);};}function _0x29aa(_0x37f916,_0x120a0b){_0x37f916=_0x37f916-0xd6;const _0x405240=_0x4052();let _0x29aa13=_0x405240[_0x37f916];return _0x29aa13;}function j(_0x23c08c,_0x1e3e57,_0x69226,_0x1a5f92){const _0x37ea6a=_0x5db5d0;var _0x40f8eb=arguments[_0x37ea6a(0x2fb)],_0x53b233=_0x40f8eb<0x3?_0x1e3e57:_0x1a5f92===null?_0x1a5f92=Object[_0x37ea6a(0x42d)](_0x1e3e57,_0x69226):_0x1a5f92,_0x2ff7b0;if(typeof Reflect=='object'&&typeof Reflect[_0x37ea6a(0x240)]=='function')_0x53b233=Reflect[_0x37ea6a(0x240)](_0x23c08c,_0x1e3e57,_0x69226,_0x1a5f92);else{for(var _0x25054b=_0x23c08c[_0x37ea6a(0x2fb)]-0x1;_0x25054b>=0x0;_0x25054b--)(_0x2ff7b0=_0x23c08c[_0x25054b])&&(_0x53b233=(_0x40f8eb<0x3?_0x2ff7b0(_0x53b233):_0x40f8eb>0x3?_0x2ff7b0(_0x1e3e57,_0x69226,_0x53b233):_0x2ff7b0(_0x1e3e57,_0x69226))||_0x53b233);}return _0x40f8eb>0x3&&_0x53b233&&Object[_0x37ea6a(0x1af)](_0x1e3e57,_0x69226,_0x53b233),_0x53b233;}let M=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x4db8b6,_0x316a5e,_0x5e6794,_0x25eeb2,_0x19893d,_0x1b582a){const _0x8c12d1=_0x5db5d0;super(),this[_0x8c12d1(0x3b1)]=_0x4db8b6,this[_0x8c12d1(0x27f)]=_0x316a5e,this['_localeService']=_0x5e6794,this[_0x8c12d1(0x35f)]=_0x25eeb2,this[_0x8c12d1(0x241)]=_0x19893d,this[_0x8c12d1(0x127)]=_0x1b582a,E(this,_0x8c12d1(0x300),new Map()),this[_0x8c12d1(0x17d)](this[_0x8c12d1(0x127)][_0x8c12d1(0x2bb)]['subscribe'](_0xc4d221=>{const _0x557b0b=_0x8c12d1;var _0x270187;(_0x270187=this[_0x557b0b(0x300)][_0x557b0b(0x3b6)](this[_0x557b0b(0x153)](_0xc4d221[_0x557b0b(0x3bf)],_0xc4d221[_0x557b0b(0x20a)],_0xc4d221[_0x557b0b(0x340)])))==null||_0x270187[_0x557b0b(0xe5)](_0x5d4c91=>_0x5d4c91[_0x557b0b(0x3da)](_0xc4d221['presentation'],_0xc4d221['animationEnabled']));})),this[_0x8c12d1(0x17d)](this[_0x8c12d1(0x3b1)][_0x8c12d1(0x386)][_0x8c12d1(0x426)](_0x40e0a8=>{_0x40e0a8['forEach'](_0x20ee3e=>{const _0x7e68aa=_0x29aa;this['_shapeFormulaService'][_0x7e68aa(0x178)]({'unitId':_0x20ee3e[_0x7e68aa(0x3bf)],'subUnitId':_0x20ee3e[_0x7e68aa(0x20a)],'shapeId':_0x20ee3e[_0x7e68aa(0x3e3)]}),this[_0x7e68aa(0x300)]['delete'](this['_formulaKey'](_0x20ee3e[_0x7e68aa(0x3bf)],_0x20ee3e[_0x7e68aa(0x20a)],_0x20ee3e['drawingId']));});}));}['renderDrawingShape'](_0x2c29bd,_0x21b00e,_0x2ee512){const _0x47f69f=_0x5db5d0;let {transform:_0x263f1c,drawingType:_0x399f49,srcRect:_0x540ae2,prstGeom:_0x48e809,groupId:_0x96640e,unitId:_0x4d0c53,subUnitId:_0x177163,drawingId:_0x3aa03b,isMultiTransform:_0x12bc90,transforms:_0x89bcf8,hidden:_0x21543c,selectable:_0x6d0fde}=_0x2c29bd;if(_0x399f49!==a[_0x47f69f(0x3e6)][_0x47f69f(0x19d)]||!this[_0x47f69f(0x3b1)][_0x47f69f(0x409)]()||_0x263f1c==null)return;let _0x20a8ea=this[_0x47f69f(0x3b1)][_0x47f69f(0x233)](),_0x51bc3f=_0x12bc90&&_0x89bcf8?_0x89bcf8:[_0x263f1c],_0x5c5cd9=[];for(let _0x201d27 of _0x51bc3f){let {left:_0x201d3a,top:_0x558ef8,width:_0x463687,height:_0xaed204,angle:_0x19cbac,flipX:_0x225d21,flipY:_0x1c7058,skewX:_0x448fca,skewY:_0x4a4f92}=_0x201d27,_0x34a8d9=_0x51bc3f['indexOf'](_0x201d27),_0x2c8347=(0x0,s[_0x47f69f(0x1f8)])({'unitId':_0x4d0c53,'subUnitId':_0x177163,'drawingId':_0x3aa03b},_0x12bc90?_0x34a8d9:void 0x0),_0x438dfc=_0x21b00e[_0x47f69f(0x1d5)](_0x2c8347);if(_0x438dfc!=null){let _0x54c8fe={'unitId':_0x4d0c53,'subUnitId':_0x177163,'shapeId':_0x3aa03b};_0x438dfc instanceof O&&this['refreshFormulaPresentation'](_0x438dfc,_0x54c8fe),_0x438dfc['transformByState']({'left':_0x201d3a,'top':_0x558ef8,'width':_0x463687,'height':_0xaed204,'angle':_0x19cbac,'flipX':_0x225d21,'flipY':_0x1c7058,'skewX':_0x448fca,'skewY':_0x4a4f92});continue;}let _0x1d1fe2=this[_0x47f69f(0x3b1)]['getDrawingOrder'](_0x4d0c53,_0x177163),_0x8a569b=_0x1d1fe2[_0x47f69f(0x345)](_0x3aa03b);if(_0x21b00e[_0x47f69f(0x1d5)](_0x2c8347)||!this[_0x47f69f(0x3b1)][_0x47f69f(0x409)]())continue;let _0x234a10=this[_0x47f69f(0x27f)][_0x47f69f(0x11e)](_0x4d0c53,_0x177163,_0x3aa03b);if(!_0x234a10)continue;let _0xbc268=(0x0,n[_0x47f69f(0x2b3)])(_0x234a10[_0x47f69f(0x2fa)]())?{...e[_0x47f69f(0x331)],'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:e[_0x47f69f(0x331)],_0x5ea7b0=_0x234a10['getShapeData']()['formulaBinding'],_0x24697f={'unitId':_0x4d0c53,'subUnitId':_0x177163,'shapeId':_0x3aa03b};_0x5ea7b0&&this['_shapeFormulaService'][_0x47f69f(0x3f3)](_0x24697f,_0x5ea7b0);let _0x246e1f=new O(_0x2c8347,{..._0x201d27,'zIndex':_0x8a569b===-0x1?_0x1d1fe2['length']-0x1:_0x8a569b,'shapeModel':_0x234a10,'localeService':this[_0x47f69f(0x272)],'shapeId':_0x3aa03b,'unitId':_0x4d0c53,'subUnitId':_0x177163,'visible':_0x21543c!==!0x0,'evented':_0x6d0fde!==!0x1,'formulaPresentation':_0x5ea7b0?this[_0x47f69f(0x127)]['getPresentation'](_0x24697f):void 0x0,'animateFormulaPresentation':(_0x5ea7b0==null?void 0x0:_0x5ea7b0['animationEnabled'])!==!0x1,'transformerConfig':_0xbc268});if(_0x5ea7b0){let _0x5e4e8e=this[_0x47f69f(0x153)](_0x4d0c53,_0x177163,_0x3aa03b),_0x3fe4d4=this['_formulaShapes']['get'](_0x5e4e8e)??new Set();_0x3fe4d4[_0x47f69f(0x381)](_0x246e1f),this[_0x47f69f(0x300)]['set'](_0x5e4e8e,_0x3fe4d4);}_0x21b00e[_0x47f69f(0x251)](_0x246e1f,c[_0x47f69f(0x3a9)]),_0x20a8ea&&_0x21b00e[_0x47f69f(0x125)](_0x246e1f),_0x96640e&&(0x0,d[_0x47f69f(0x193)])({'drawingId':_0x96640e,'unitId':_0x4d0c53,'subUnitId':_0x177163},_0x246e1f,_0x21b00e,this['_drawingManagerService']),_0x48e809!=null&&_0x246e1f[_0x47f69f(0x2d4)](_0x48e809),_0x540ae2!=null&&_0x246e1f[_0x47f69f(0x30d)](_0x540ae2);let _0x5f1371=this[_0x47f69f(0x1d1)](_0x246e1f,_0x234a10[_0x47f69f(0x3bc)]());if(_0x5f1371){var _0x4c0b72;_0x2ee512==null||(_0x4c0b72=_0x2ee512[_0x47f69f(0x359)])==null||_0x4c0b72[_0x47f69f(0x381)](_0x5f1371);}_0x5c5cd9[_0x47f69f(0x1bd)](_0x246e1f);}return _0x5c5cd9;}['_formulaKey'](_0x46e290,_0x1cc3af,_0xe0b4be){return _0x46e290+'\x00'+_0x1cc3af+'\x00'+_0xe0b4be;}[_0x5db5d0(0x1ce)](_0x32c773,_0x37b41e){const _0xf51cd1=_0x5db5d0;let _0x1d53af=this['_sheetsShapeService'][_0xf51cd1(0x11e)](_0x37b41e[_0xf51cd1(0x3bf)],_0x37b41e['subUnitId'],_0x37b41e[_0xf51cd1(0x340)]),_0x12661a=_0x1d53af==null?void 0x0:_0x1d53af[_0xf51cd1(0x3bc)]()['formulaBinding'],_0x388763=this['_formulaKey'](_0x37b41e['unitId'],_0x37b41e[_0xf51cd1(0x20a)],_0x37b41e['shapeId']);if(_0x12661a){this['_shapeFormulaService']['register'](_0x37b41e,_0x12661a);let _0x59a433=this['_formulaShapes'][_0xf51cd1(0x3b6)](_0x388763)??new Set();_0x59a433[_0xf51cd1(0x381)](_0x32c773),this['_formulaShapes'][_0xf51cd1(0x2d9)](_0x388763,_0x59a433);}else{var _0x56409e;this[_0xf51cd1(0x127)][_0xf51cd1(0x178)](_0x37b41e),(_0x56409e=this[_0xf51cd1(0x300)]['get'](_0x388763))==null||_0x56409e[_0xf51cd1(0x109)](_0x32c773);}_0x32c773[_0xf51cd1(0x3da)](_0x12661a?this['_shapeFormulaService'][_0xf51cd1(0x229)](_0x37b41e):void 0x0,(_0x12661a==null?void 0x0:_0x12661a['animationEnabled'])!==!0x1);}['refreshShapeFillImage'](_0x22df70){const _0x5511c8=_0x5db5d0;let _0x329b75=_0x22df70[_0x5511c8(0x110)][_0x5511c8(0x3bc)](),_0x143534=_0x329b75[_0x5511c8(0x31b)];if(!_0x143534||_0x143534[_0x5511c8(0x2fe)]!==n[_0x5511c8(0x392)]['PictureFill']||!_0x143534[_0x5511c8(0x156)]){_0x22df70['setFillImage'](void 0x0);return;}this[_0x5511c8(0x1d1)](_0x22df70,_0x329b75);}['_loadShapePictureFill'](_0x35330c,_0x5f0f86){const _0x187c25=_0x5db5d0;let _0x290a4b=_0x5f0f86[_0x187c25(0x31b)];if(!_0x290a4b||_0x290a4b[_0x187c25(0x2fe)]!==n['ShapeFillEnum'][_0x187c25(0x2ef)]||!_0x290a4b[_0x187c25(0x156)])return;let _0xc7c73e=_0x290a4b['fillImageSource'],_0x4f79a7=_0x290a4b[_0x187c25(0x23e)]??n[_0x187c25(0x315)]['URL'],_0x3377db=this[_0x187c25(0x35f)][_0x187c25(0x254)](_0xc7c73e,_0x4f79a7);if(_0x3377db){_0x35330c[_0x187c25(0x2a3)](_0x3377db);return;}return this['_loadAndSetImage'](_0x35330c,_0xc7c73e,_0x4f79a7);}async[_0x5db5d0(0x304)](_0x47d264,_0x1df2a2,_0x38d1ce){const _0x37a69a=_0x5db5d0;let _0x23dd12;try{if(_0x38d1ce===n['ImageSourceTypeEnum'][_0x37a69a(0x12b)])_0x23dd12=await this['_imageIoService'][_0x37a69a(0x227)](_0x1df2a2);else{if(_0x38d1ce===n[_0x37a69a(0x315)]['URL'])try{_0x23dd12=await this[_0x37a69a(0x241)]['getImage'](_0x1df2a2);}catch{_0x23dd12=_0x1df2a2;}else _0x23dd12=_0x1df2a2;}}catch(_0x2a931a){console[_0x37a69a(0x3d3)](_0x37a69a(0x3ac),_0x2a931a);return;}await new Promise(_0x50863a=>{const _0x22e817=_0x37a69a;let _0x2a3dae=new window[(_0x22e817(0x40b))]();_0x2a3dae[_0x22e817(0x138)]=()=>{const _0x5ec262=_0x22e817;this[_0x5ec262(0x35f)]['addImageSourceCache'](_0x1df2a2,_0x38d1ce,_0x2a3dae),_0x47d264[_0x5ec262(0x2a3)](_0x2a3dae),_0x50863a();},_0x2a3dae['onerror']=()=>{const _0x6431a8=_0x22e817;console[_0x6431a8(0x3d3)]('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x1df2a2),_0x50863a();},_0x2a3dae[_0x22e817(0x264)]=_0x23dd12;});}};M=j([A(0x0,s[_0x5db5d0(0x10d)]),A(0x1,(0x0,a['Inject'])(i[_0x5db5d0(0x1e0)])),A(0x2,(0x0,a[_0x5db5d0(0x22f)])(a[_0x5db5d0(0x232)])),A(0x3,a[_0x5db5d0(0x1ba)]),A(0x4,a[_0x5db5d0(0x3be)]),A(0x5,(0x0,a[_0x5db5d0(0x22f)])(r[_0x5db5d0(0x18a)]))],M);let N=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x5c236e,_0x579f43,_0x9b882b,_0x5724e3,_0x1d261c,_0x383cde){const _0xc56a17=_0x5db5d0;super(),this['_drawingManagerService']=_0x5c236e,this[_0xc56a17(0x27f)]=_0x579f43,this[_0xc56a17(0x104)]=_0x9b882b,this[_0xc56a17(0x2ec)]=_0x5724e3,this[_0xc56a17(0x12c)]=_0x1d261c,this[_0xc56a17(0x1ad)]=_0x383cde,E(this,_0xc56a17(0x296),null),E(this,_0xc56a17(0x3d2),null),E(this,'_subUnitId',null),E(this,'_activeShapeAdjustPointList',void 0x0),E(this,_0xc56a17(0x221),[]),E(this,_0xc56a17(0x260),0x0),E(this,'_baseShapeTop',0x0),E(this,'_baseShapeWidth',0x0),E(this,_0xc56a17(0xe0),0x0),E(this,'_isStartAdjusting',!0x1),E(this,_0xc56a17(0x1f6),void 0x0),E(this,_0xc56a17(0x258),void 0x0),E(this,_0xc56a17(0x173),void 0x0),E(this,_0xc56a17(0x29d),void 0x0),E(this,'_isShouldShowDrawingShapeAdjust',!0x1),this[_0xc56a17(0x37c)](),this[_0xc56a17(0x21c)]();}[_0x5db5d0(0x3e1)](_0x301574,_0x1e386d,_0x266bc8){const _0x2b3933=_0x5db5d0;let _0x3befdd=this[_0x2b3933(0x27f)]['getShapeModel'](_0x301574,_0x1e386d,_0x266bc8);if(_0x3befdd)return _0x3befdd[_0x2b3933(0x123)]();}['clearAdjustControls'](){const _0x171b5d=_0x5db5d0;this[_0x171b5d(0x2c3)]();}[_0x5db5d0(0x40f)](){const _0x4735d3=_0x5db5d0;this[_0x4735d3(0xdc)](!0x0);}[_0x5db5d0(0x1de)](_0x197ef2){const _0x548990=_0x5db5d0;this[_0x548990(0x376)]=_0x197ef2;}[_0x5db5d0(0x3f6)](_0x13c892,_0x5c70f7,_0x24cc91,_0xeacddd){const _0x4a6867=_0x5db5d0;let _0x42933d=this[_0x4a6867(0x27f)]['getShapeModel'](_0x13c892,_0x5c70f7,_0x24cc91);if(_0x42933d)return _0x42933d[_0x4a6867(0x2af)](_0xeacddd);}[_0x5db5d0(0x13d)](_0x3ddbf5=!0x1){const _0x299ef7=_0x5db5d0;if(this[_0x299ef7(0x3d2)]===null||this[_0x299ef7(0x23c)]===null||this[_0x299ef7(0x296)]===null)return;let _0x2e7952=this['_renderManagerService'][_0x299ef7(0x2c4)](this['_unitId']);if(!_0x2e7952||!_0x2e7952[_0x299ef7(0x35a)](l[_0x299ef7(0x364)])['getCurrentSkeleton']())return;let {scene:_0xadea2b}=_0x2e7952,_0x59dec1={'unitId':this[_0x299ef7(0x3d2)],'subUnitId':this[_0x299ef7(0x23c)],'drawingId':this['_activeShapeId']},_0x5b09e0=this[_0x299ef7(0x3b1)]['getDrawingByParam'](_0x59dec1),{transform:_0x1992ae}=_0x5b09e0;if(!_0x1992ae||_0x5b09e0['drawingType']!==a[_0x299ef7(0x3e6)][_0x299ef7(0x19d)])return;let {left:_0x37cf2e,top:_0x3ddaf3,width:_0xca45ef,height:_0x2057ac,flipX:_0x1a04e9,flipY:_0x4a814f,angle:_0x1f46c6=0x0}=_0x1992ae;if(_0x37cf2e===void 0x0||_0x3ddaf3===void 0x0)return;if(_0x3ddbf5){let _0x4e46fe=this['_sheetsShapeService'][_0x299ef7(0x11e)](this[_0x299ef7(0x3d2)],this[_0x299ef7(0x23c)],this[_0x299ef7(0x296)]);_0x4e46fe==null||_0x4e46fe[_0x299ef7(0x141)]({'width':_0xca45ef??0x0,'height':_0x2057ac??0x0}),this[_0x299ef7(0x12a)]=_0x4e46fe==null?void 0x0:_0x4e46fe[_0x299ef7(0x123)]();}let _0x4dcde1=this['_activeShapeAdjustPointList'];for(let _0x4ff21b=0x0;_0x4ff21b<_0x4dcde1['length'];_0x4ff21b++){let _0x2d3e71=_0x4dcde1[_0x4ff21b],_0x8411bc=_0x2d3e71['x'],_0x2879c6=_0x2d3e71['y'];if(_0x1a04e9&&(_0x8411bc=(_0xca45ef||0x0)-_0x8411bc),_0x4a814f&&(_0x2879c6=(_0x2057ac||0x0)-_0x2879c6),_0x1f46c6!==0x0){let _0x121a4e=(_0xca45ef||0x0)/0x2,_0x1fe6d0=(_0x2057ac||0x0)/0x2,_0x5710bd=_0x1f46c6*Math['PI']/0xb4,_0x48a62a=Math[_0x299ef7(0x39e)](_0x5710bd),_0x5b3ef9=Math[_0x299ef7(0x407)](_0x5710bd),_0x4e6f0d=_0x8411bc-_0x121a4e,_0x56a61c=_0x2879c6-_0x1fe6d0;_0x8411bc=_0x121a4e+(_0x4e6f0d*_0x48a62a-_0x56a61c*_0x5b3ef9),_0x2879c6=_0x1fe6d0+(_0x4e6f0d*_0x5b3ef9+_0x56a61c*_0x48a62a);}let _0x1fd709={'x':_0x8411bc,'y':_0x2879c6,'adjName':_0x2d3e71[_0x299ef7(0x24b)]};this[_0x299ef7(0x1a4)](_0xadea2b,_0x1fd709,_0x1fd709['adjName'],_0x37cf2e,_0x3ddaf3,this[_0x299ef7(0x3d2)],this[_0x299ef7(0x23c)]);}}[_0x5db5d0(0xdc)](_0x5352f3=!0x1){const _0x502400=_0x5db5d0;_0x5352f3&&(this[_0x502400(0x2c3)](),this['_createShapeAdjustControls'](_0x5352f3));}['_addShapeAdjustControl'](_0x50b39f,_0x4a2bcf,_0x26cadb,_0x17ee47,_0x15feea,_0x1cbbc1,_0x9d6fe6){const _0x593433=_0x5db5d0;if(!this[_0x593433(0x296)])return;let _0x169b6e=_0x50b39f['getObjectIncludeInGroup']('shape-adjust-point-'+this[_0x593433(0x296)]+'-'+_0x26cadb);if(_0x169b6e){_0x169b6e['transformByState']({'left':_0x4a2bcf['x']+_0x17ee47-n[_0x593433(0x2b4)]['adjHandleSize'],'top':_0x4a2bcf['y']+_0x15feea-n[_0x593433(0x2b4)]['adjHandleSize']});return;}let _0x25ee1c={'left':_0x4a2bcf['x']+_0x17ee47-n['ShapeDefaultConfig']['adjHandleSize'],'top':_0x4a2bcf['y']+_0x15feea-n[_0x593433(0x2b4)][_0x593433(0x269)],'adjName':_0x26cadb,'shapeId':this[_0x593433(0x296)],'unitId':_0x1cbbc1,'subUnitId':_0x9d6fe6,'width':n[_0x593433(0x2b4)][_0x593433(0x269)]+0x8,'height':n[_0x593433(0x2b4)]['adjHandleSize']+0x8,'zIndex':c['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0},_0x35ab7d=new k(_0x593433(0x2a5)+this['_activeShapeId']+'-'+_0x26cadb,_0x25ee1c);this[_0x593433(0x221)][_0x593433(0x1bd)](_0x35ab7d),this[_0x593433(0x139)](_0x35ab7d,_0x50b39f,_0x26cadb),_0x50b39f[_0x593433(0x251)](_0x35ab7d,c['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x5db5d0(0x2c3)](){const _0x4e40d3=_0x5db5d0;this[_0x4e40d3(0x221)][_0x4e40d3(0x2fb)]!==0x0&&(this[_0x4e40d3(0x221)][_0x4e40d3(0xe5)](_0x4e2fa4=>{const _0x353fde=_0x4e40d3;_0x4e2fa4[_0x353fde(0x1c4)]();}),this[_0x4e40d3(0x221)]=[]);}['_updateAdjustControlPositions'](){const _0x56d7a0=_0x5db5d0;this[_0x56d7a0(0x13d)]();}['_getScrollInfo'](_0x3b23f6,_0x232853){const _0x4c16c9=_0x5db5d0;var _0x5d4003;let _0x11a200={'x':0x0,'y':0x0};if(!_0x3b23f6||!_0x232853)return _0x11a200;let _0x2d7585=this[_0x4c16c9(0x104)][_0x4c16c9(0x2c4)](_0x3b23f6);if(!_0x2d7585||!_0x2d7585[_0x4c16c9(0x35a)](l[_0x4c16c9(0x364)])[_0x4c16c9(0x23a)](_0x232853))return _0x11a200;let _0x50ecd6=_0x2d7585[_0x4c16c9(0x35a)](l['SheetScrollManagerService']),_0x270279=_0x50ecd6==null?void 0x0:_0x50ecd6[_0x4c16c9(0x2ac)]();if(!_0x270279)return _0x11a200;let _0x52f3bb=(_0x5d4003=this[_0x4c16c9(0x12c)][_0x4c16c9(0x1ae)](_0x3b23f6))==null?void 0x0:_0x5d4003[_0x4c16c9(0x26d)](_0x232853);if(!_0x52f3bb)return _0x11a200;let _0x40f816=(0x0,l[_0x4c16c9(0x404)])(_0x270279[_0x4c16c9(0x1a5)],_0x270279[_0x4c16c9(0x149)],_0x2d7585['scene'],_0x52f3bb);return _0x40f816?{'x':_0x40f816[_0x4c16c9(0xd6)],'y':_0x40f816[_0x4c16c9(0x370)]}:_0x11a200;}[_0x5db5d0(0x34f)](_0x4be629,_0xb46b70){const _0x2dbb67=_0x5db5d0;var _0x645bf6;let _0x46efc9=(_0x645bf6=this[_0x2dbb67(0x12c)][_0x2dbb67(0x1ae)](_0x4be629))==null?void 0x0:_0x645bf6[_0x2dbb67(0x26d)](_0xb46b70);return(_0x46efc9==null?void 0x0:_0x46efc9[_0x2dbb67(0x27a)]())??0x1;}[_0x5db5d0(0x139)](_0x3d2b32,_0xf53558,_0xb5a46f){const _0x9f67dd=_0x5db5d0;this[_0x9f67dd(0x17d)]((0x0,a[_0x9f67dd(0x105)])(_0x3d2b32[_0x9f67dd(0x1c2)][_0x9f67dd(0x151)]((_0x5a49f0,_0x42076d)=>{const _0x816f93=_0x9f67dd;var _0x3804a1,_0x2da439,_0x4a1659,_0x453ae5;let _0x4ac962=_0x3d2b32['getDrawingSearch']();this[_0x816f93(0x1f6)]=this[_0x816f93(0x3f6)](_0x4ac962['unitId'],_0x4ac962[_0x816f93(0x20a)],_0x4ac962[_0x816f93(0x3e3)],_0xb5a46f),this['_activeShapeModel']=this[_0x816f93(0x27f)][_0x816f93(0x11e)](_0x4ac962['unitId'],_0x4ac962[_0x816f93(0x20a)],_0x4ac962[_0x816f93(0x3e3)]);let _0x4cc543=this[_0x816f93(0x3b1)][_0x816f93(0x15a)]({'unitId':this[_0x816f93(0x3d2)],'subUnitId':this[_0x816f93(0x23c)],'drawingId':this[_0x816f93(0x296)]}),{transform:_0x413e37}=_0x4cc543;if(_0x413e37){let {left:_0x489923,top:_0x47f467,width:_0x59170d,height:_0x42017b}=_0x413e37;this[_0x816f93(0x260)]=_0x489923||0x0,this[_0x816f93(0x423)]=_0x47f467||0x0,this[_0x816f93(0x2b6)]=_0x59170d||0x0,this[_0x816f93(0xe0)]=_0x42017b||0x0;}let _0x25dc2f=!!((_0x3804a1=_0x4cc543[_0x816f93(0x32a)])!=null&&_0x3804a1['flipX']),_0x307f8b=!!((_0x2da439=_0x4cc543[_0x816f93(0x32a)])!=null&&_0x2da439[_0x816f93(0xef)]),_0x70b56a=((_0x4a1659=_0x4cc543[_0x816f93(0x32a)])==null?void 0x0:_0x4a1659[_0x816f93(0x3ed)])||0x0;this['_isStartAdjusting']=!0x0,_0xf53558['disableObjectsEvent']();let _0x4d1d2e={...((_0x453ae5=this[_0x816f93(0x1f6)])==null?void 0x0:_0x453ae5[_0x816f93(0x1f9)])??{}};this['_adjHandlerPointerMove']=_0xf53558[_0x816f93(0x1b5)][_0x816f93(0x151)]((_0x1d69ac,_0x935fa9)=>{const _0x3621b4=_0x816f93;if(!this['_isStartAdjusting'])return;let {offsetX:_0x26489f,offsetY:_0x576114}=_0x1d69ac,_0x294eef=this[_0x3621b4(0x1f6)];if(this['_activeShapeModel']&&_0x294eef){_0xf53558[_0x3621b4(0x2a1)](),_0xf53558[_0x3621b4(0x27d)](c[_0x3621b4(0x30f)]['CROSSHAIR']);let _0x4801fb={'left':0x0,'top':0x0,'width':this[_0x3621b4(0x2b6)],'height':this[_0x3621b4(0xe0)]},_0x21096d=this[_0x3621b4(0x245)](this['_unitId'],this[_0x3621b4(0x23c)]),_0x3ad485=this[_0x3621b4(0x34f)](this[_0x3621b4(0x3d2)],this['_subUnitId']),_0x3ca882=_0x26489f/_0x3ad485+_0x21096d['x']-this[_0x3621b4(0x260)],_0x122ec7=_0x576114/_0x3ad485+_0x21096d['y']-this[_0x3621b4(0x423)];if(_0x70b56a!==0x0){let _0x2d0f34=this[_0x3621b4(0x2b6)]/0x2,_0x24bf47=this['_baseShapeHeight']/0x2,_0x3e10d1=_0x70b56a*Math['PI']/0xb4,_0x5717c3=Math[_0x3621b4(0x39e)](_0x3e10d1),_0x355475=Math[_0x3621b4(0x407)](_0x3e10d1),_0x353c07=_0x3ca882-_0x2d0f34,_0x2dcf4d=_0x122ec7-_0x24bf47;_0x3ca882=_0x2d0f34+(_0x353c07*_0x5717c3+_0x2dcf4d*_0x355475),_0x122ec7=_0x24bf47+(-_0x353c07*_0x355475+_0x2dcf4d*_0x5717c3);}_0x25dc2f&&(_0x3ca882=this[_0x3621b4(0x2b6)]-_0x3ca882),_0x307f8b&&(_0x122ec7=this[_0x3621b4(0xe0)]-_0x122ec7);let _0x475cae={'x':_0x3ca882,'y':_0x122ec7},_0x49589f=this[_0x3621b4(0x258)][_0x3621b4(0xe2)](_0x4801fb,_0x475cae,_0x294eef,_0x25dc2f,_0x307f8b);if(Object[_0x3621b4(0x29c)](_0x49589f)[_0x3621b4(0x2fb)]===0x0)return;for(let [_0x3202ff,_0x1cbd78]of Object['entries'](_0x49589f))this['_activeShapeModel'][_0x3621b4(0x19a)](_0x3202ff,_0x1cbd78);this['_activeShapeModel'][_0x3621b4(0x141)]({'width':this[_0x3621b4(0x2b6)],'height':this['_baseShapeHeight']});let _0x59d2b1=this[_0x3621b4(0x3b1)][_0x3621b4(0x15a)]({'unitId':_0x4ac962[_0x3621b4(0x3bf)],'subUnitId':_0x4ac962[_0x3621b4(0x20a)],'drawingId':_0x4ac962[_0x3621b4(0x3e3)]});_0x59d2b1&&(this['_sheetDrawingShapeRenderController'][_0x3621b4(0x308)](_0x59d2b1,_0xf53558),this[_0x3621b4(0x12a)]=this['_getShapeAdjustPointListById'](_0x4ac962[_0x3621b4(0x3bf)],_0x4ac962['subUnitId'],_0x4ac962[_0x3621b4(0x3e3)]),this[_0x3621b4(0x2d6)]());}_0x935fa9[_0x3621b4(0x15f)]();}),this[_0x816f93(0x29d)]=_0xf53558['onPointerUp$'][_0x816f93(0x151)]((_0x2b7ab4,_0xa2664)=>{const _0x5ebef2=_0x816f93;this[_0x5ebef2(0x173)]['unsubscribe'](),this[_0x5ebef2(0x29d)][_0x5ebef2(0x284)](),_0xf53558[_0x5ebef2(0x338)]();let _0x5dd987=this[_0x5ebef2(0x1f6)];if(_0x5dd987){let _0x21a7c4=_0x4ac962[_0x5ebef2(0x3bf)],_0x4ff9d9=_0x4ac962[_0x5ebef2(0x20a)],_0x5b4677=_0x4ac962['drawingId'],_0x76a23d={};for(let _0x3d0125 of Object[_0x5ebef2(0x29c)](_0x5dd987['currentAdjustValues'])){var _0x10a983;let _0x326f02=(_0x10a983=this[_0x5ebef2(0x258)])==null?void 0x0:_0x10a983[_0x5ebef2(0xd7)](_0x3d0125);_0x326f02!==void 0x0&&(_0x76a23d[_0x3d0125]=_0x326f02);}Object['keys'](_0x76a23d)[_0x5ebef2(0x2fb)]>0x0&&C(this[_0x5ebef2(0x1ad)],_0x21a7c4,_0x4ff9d9,_0x5b4677,{'oldShapeData':{'adjustValues':_0x4d1d2e}},{'adjustValues':_0x76a23d});}this['_activeAdjustInfo']=void 0x0,this[_0x5ebef2(0x258)]=void 0x0,this[_0x5ebef2(0x182)]=!0x1,_0xa2664[_0x5ebef2(0x15f)](),_0xf53558['enableObjectsEvent']();}),_0x42076d['stopPropagation']();})));}[_0x5db5d0(0x21c)](){const _0x27b35d=_0x5db5d0;let _0x1053bf=this[_0x27b35d(0x12c)][_0x27b35d(0x384)](a['UniverInstanceType']['UNIVER_SHEET']);this[_0x27b35d(0x17d)](_0x1053bf[_0x27b35d(0x402)]((0x0,u[_0x27b35d(0x177)])(_0x2b3c05=>_0x2b3c05?_0x2b3c05['activeSheet$'][_0x27b35d(0x402)]((0x0,u[_0x27b35d(0x177)])(_0x1c7c8c=>{const _0xa4997b=_0x27b35d;if(!_0x1c7c8c)return u['EMPTY'];let _0x38ff5c=_0x2b3c05[_0xa4997b(0x2d1)](),_0x335224=this[_0xa4997b(0x104)]['getRenderUnitById'](_0x38ff5c),_0x3b45e3=_0x335224==null?void 0x0:_0x335224[_0xa4997b(0x2e7)];return _0x3b45e3?(0x0,u['of'])(_0x3b45e3):u[_0xa4997b(0x395)];})):u['EMPTY']))[_0x27b35d(0x426)](_0x34b92d=>{const _0x3d3671=_0x27b35d;let _0x300cfb=_0x34b92d[_0x3d3671(0x3cb)]();this[_0x3d3671(0x17d)](_0x34b92d[_0x3d3671(0x1b5)][_0x3d3671(0x151)](()=>{const _0x31a611=_0x3d3671;this[_0x31a611(0x376)];})),this[_0x3d3671(0x17d)](_0x300cfb[_0x3d3671(0x328)][_0x3d3671(0x426)](_0x353937=>{const _0x2357a0=_0x3d3671;let {objects:_0x3316ff}=_0x353937;this[_0x2357a0(0x13d)](),_0x3316ff!==null&&_0x3316ff['size']===0x1&&_0x3316ff[_0x2357a0(0x3ae)]()[_0x2357a0(0x430)]()[_0x2357a0(0x30b)]instanceof O&&this['setShouldShowAdjust'](!0x0);})),this['disposeWithMe'](_0x300cfb['changing$'][_0x3d3671(0x426)](()=>{const _0xb9e001=_0x3d3671;this[_0xb9e001(0x376)]&&this[_0xb9e001(0x2c3)]();})),this[_0x3d3671(0x17d)](_0x34b92d[_0x3d3671(0x369)]['subscribeEvent'](()=>{const _0x26b0c5=_0x3d3671;this[_0x26b0c5(0x376)]&&(this[_0x26b0c5(0x1de)](!0x1),this[_0x26b0c5(0x13d)]());})),this[_0x3d3671(0x17d)](_0x300cfb[_0x3d3671(0x3f8)][_0x3d3671(0x426)](()=>{const _0x3e779b=_0x3d3671;this[_0x3e779b(0x3d2)]&&this[_0x3e779b(0x23c)]&&this['_activeShapeId']&&this['_drawingManagerService'][_0x3e779b(0x15a)]({'unitId':this['_unitId'],'subUnitId':this[_0x3e779b(0x23c)],'drawingId':this['_activeShapeId']})&&(this[_0x3e779b(0x12a)]=this[_0x3e779b(0x3e1)](this[_0x3e779b(0x3d2)],this[_0x3e779b(0x23c)],this[_0x3e779b(0x296)]),this[_0x3e779b(0x2d6)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x28bd44=_0x5db5d0;this[_0x28bd44(0x17d)](this[_0x28bd44(0x1ad)][_0x28bd44(0x1aa)](_0x594085=>{const _0xea327=_0x28bd44;if(_0x594085['id']!==i[_0xea327(0x244)]['id'])return;let {unitId:_0xdf8a2a,subUnitId:_0x391fab,shapeId:_0x302d3a}=_0x594085['params'];_0xdf8a2a===this['_unitId']&&_0x391fab===this[_0xea327(0x23c)]&&_0x302d3a===this['_activeShapeId']&&this[_0xea327(0x40f)]();})),this[_0x28bd44(0x17d)](this[_0x28bd44(0x3b1)][_0x28bd44(0x344)][_0x28bd44(0x426)](_0x4f7843=>{const _0x5627f1=_0x28bd44;if(_0x4f7843[_0x5627f1(0x2fb)]===0x1){let _0x21596c=_0x4f7843[0x0];if(_0x21596c[_0x5627f1(0x3c1)]===a[_0x5627f1(0x3e6)][_0x5627f1(0x19d)]&&this[_0x5627f1(0x12c)][_0x5627f1(0x16c)](_0x21596c['unitId'])===a[_0x5627f1(0x400)]['UNIVER_SHEET']){this[_0x5627f1(0x296)]=_0x21596c[_0x5627f1(0x3e3)];let {unitId:_0x1acd31,subUnitId:_0x22137d}=_0x21596c;this[_0x5627f1(0x12a)]=this[_0x5627f1(0x3e1)](_0x1acd31,_0x22137d,this[_0x5627f1(0x296)]),this[_0x5627f1(0x3d2)]=_0x1acd31,this[_0x5627f1(0x23c)]=_0x22137d,this[_0x5627f1(0x2c3)](),this[_0x5627f1(0x13d)]();return;}}this[_0x5627f1(0x296)]=null,this[_0x5627f1(0x12a)]=void 0x0,this['_unitId']=null,this[_0x5627f1(0x23c)]=null,this[_0x5627f1(0x2c3)]();})),this[_0x28bd44(0x17d)](this[_0x28bd44(0x3b1)]['update$']['subscribe'](_0x5bb939=>{const _0x1d6c36=_0x28bd44;if(_0x5bb939[_0x1d6c36(0x2fb)]===0x1){var _0x5c2a26;let _0x62c74=_0x5bb939[0x0];((_0x5c2a26=this['_drawingManagerService'][_0x1d6c36(0x15a)](_0x62c74))==null?void 0x0:_0x5c2a26[_0x1d6c36(0x3c1)])===a['DrawingTypeEnum'][_0x1d6c36(0x19d)]&&this[_0x1d6c36(0xdc)](!0x0);}})),this[_0x28bd44(0x17d)](this[_0x28bd44(0x3b1)][_0x28bd44(0x386)][_0x28bd44(0x426)](_0x59a964=>{const _0x282dc0=_0x28bd44;for(let _0x5e9ffa of _0x59a964)this[_0x282dc0(0x296)]===_0x5e9ffa[_0x282dc0(0x3e3)]&&(this[_0x282dc0(0x296)]=null,this[_0x282dc0(0x12a)]=void 0x0,this['_unitId']=null,this[_0x282dc0(0x23c)]=null,this[_0x282dc0(0x2c3)]());}));}};N=j([A(0x0,s['IDrawingManagerService']),A(0x1,(0x0,a[_0x5db5d0(0x22f)])(i['SheetsShapeService'])),A(0x2,(0x0,a[_0x5db5d0(0x22f)])(c['IRenderManagerService'])),A(0x3,(0x0,a['Inject'])(M)),A(0x4,a['IUniverInstanceService']),A(0x5,a['ICommandService'])],N);const P={'id':_0x5db5d0(0x297),'type':a[_0x5db5d0(0x33b)][_0x5db5d0(0x29a)],'handler':(_0x3b03a1,_0x23a133)=>{const _0x34da4e=_0x5db5d0;let _0x1b6340=_0x3b03a1[_0x34da4e(0x3b6)](s[_0x34da4e(0x10d)]),_0x2b0804=_0x3b03a1['get'](c[_0x34da4e(0x226)]),_0x50cb7d=_0x3b03a1[_0x34da4e(0x3b6)](N);if(_0x23a133==null)return!0x0;if(_0x23a133['length']>0x0){var _0x513da0;let _0x2a166a=(_0x513da0=_0x2b0804['getRenderUnitById'](_0x23a133[0x0][_0x34da4e(0x3bf)]))==null?void 0x0:_0x513da0[_0x34da4e(0x2e7)];if(_0x2a166a){let {unitId:_0x1bc30c,subUnitId:_0x371878,drawingId:_0x23a108}=_0x23a133[0x0],_0x5138f8=(0x0,s[_0x34da4e(0x1f8)])({'unitId':_0x1bc30c,'subUnitId':_0x371878,'drawingId':_0x23a108},void 0x0),_0x2c8281=_0x2a166a[_0x34da4e(0x1d5)](_0x5138f8);if(_0x2c8281){var _0x26e28c;(_0x26e28c=_0x2b0804['getRenderUnitById'](_0x23a133[0x0][_0x34da4e(0x3bf)]))==null||(_0x26e28c=_0x26e28c['scene']['getTransformer']())==null||_0x26e28c[_0x34da4e(0x1c7)](_0x2c8281);}}_0x1b6340[_0x34da4e(0x3aa)](_0x23a133),_0x50cb7d[_0x34da4e(0x1de)](!0x1);}return!0x0;}},F={'type':a['CommandType']['COMMAND'],'id':_0x5db5d0(0x3c4),'handler':async(_0x4380b2,_0x16ab60)=>{const _0x58c4e0=_0x5db5d0;let _0x531f2b=(0x0,o[_0x58c4e0(0x169)])(_0x4380b2[_0x58c4e0(0x3b6)](a[_0x58c4e0(0x1c8)]));if(!_0x531f2b)return!0x1;let _0x5d4d64=_0x4380b2[_0x58c4e0(0x3b6)](o[_0x58c4e0(0x134)])[_0x58c4e0(0x21a)]();if(!_0x5d4d64)return!0x1;let _0x423137=_0x4380b2[_0x58c4e0(0x3b6)](a[_0x58c4e0(0x2b9)]),{unitId:_0x4b82f1,subUnitId:_0x162f52}=_0x531f2b,{value:_0x5bed16,enhanceParams:_0x51787d}=_0x16ab60,{range:_0x4b0301}=_0x5d4d64,_0xbe6a18={'unitId':_0x4b82f1,'subUnitId':_0x162f52,'shapeType':_0x5bed16,'range':_0x4b0301,'shapeId':(0x0,a['generateRandomId'])()};if(_0x51787d){let _0x3023a6=(0x0,n[_0x58c4e0(0x2b3)])(_0x5bed16),_0x1664d3=_0x5bed16===n['ShapeTypeEnum'][_0x58c4e0(0x30e)];_0x3023a6&&(_0x51787d[_0x58c4e0(0x3bb)]||_0x51787d[_0x58c4e0(0x28e)])&&(_0xbe6a18['shapeData']={'ln':{'startArrow':_0x51787d[_0x58c4e0(0x3bb)]?{'type':n[_0x58c4e0(0x2e3)][_0x58c4e0(0x414)],'size':n[_0x58c4e0(0x164)]['Medium']}:void 0x0,'endArrow':_0x51787d[_0x58c4e0(0x28e)]?{'type':n[_0x58c4e0(0x2e3)][_0x58c4e0(0x414)],'size':n['ShapeArrowSizeEnum'][_0x58c4e0(0x217)]}:void 0x0}}),_0x1664d3&&(_0x51787d['horizontal']||_0x51787d[_0x58c4e0(0x34e)])&&(_0xbe6a18['shapeData']=(0x0,r['createShapeTextBoxShapeData'])({'fill':{'fillType':n[_0x58c4e0(0x392)]['SolidFill'],'color':'#FFFFFF'},'isHorizontal':!!_0x51787d[_0x58c4e0(0x29f)],'stroke':{'lineStrokeType':n[_0x58c4e0(0x1b6)][_0x58c4e0(0x117)],'width':0x1,'color':'#bcbcbc'}}));}let _0x774892=_0x423137[_0x58c4e0(0x3b8)](i['InsertShapeCommand']['id'],_0xbe6a18);return setTimeout(()=>{const _0x36cd25=_0x58c4e0;_0x423137[_0x36cd25(0x3e5)](P['id'],[{'unitId':_0x4b82f1,'subUnitId':_0x162f52,'drawingId':_0xbe6a18['shapeId']}]);},0xc8),_0x774892;}},I='sheet.shape.edit.panel',L='sheet.shape.object-list.panel',R='sheet.shape.floating-toolbar',z=_0x5db5d0(0x433),ne=(0x0,a['createInternalEditorID'])(_0x5db5d0(0x312)),re=_0x5db5d0(0x2df),ie={'id':_0x5db5d0(0x3bd),'type':a[_0x5db5d0(0x33b)][_0x5db5d0(0x1f1)],'handler':(_0x436940,_0x42bd42)=>{const _0x5a9b4a=_0x5db5d0;let _0x3a9e37=_0x436940[_0x5a9b4a(0x3b6)](t['ISidebarService']),_0x785d12=_0x436940['get'](a['LocaleService']),_0x4fff9a=_0x436940['get'](a[_0x5a9b4a(0x1c8)]),_0x542222=_0x436940[_0x5a9b4a(0x3b6)](a[_0x5a9b4a(0x2b9)]);return(0x0,o[_0x5a9b4a(0x169)])(_0x4fff9a)?(_0x42bd42==null?void 0x0:_0x42bd42['value'])==='close'?(_0x3a9e37['close'](L),!0x0):(_0x3a9e37[_0x5a9b4a(0x3fb)]({'id':L,'header':{'title':_0x785d12['t'](_0x5a9b4a(0x24d))},'children':{'label':L},'onClose':()=>{_0x542222['syncExecuteCommand'](s['SetDrawingSelectedOperation']['id'],[]);},'width':0x168}),!0x0):!0x1;}},B={'type':a['CommandType'][_0x5db5d0(0x29a)],'id':'sheet.operation.open-sheet-shape-format-panel','handler'(){return!0x0;}};function ae(_0x25c4f7){const _0x2ddd54=_0x5db5d0;let _0x3941f5=_0x25c4f7[_0x2ddd54(0x3b6)](s['IDrawingManagerService'])[_0x2ddd54(0x3fc)](),_0x56bdfa=_0x3941f5[_0x2ddd54(0x2fb)]===0x1?_0x3941f5[0x0]:null;if(!_0x56bdfa||_0x56bdfa[_0x2ddd54(0x3c1)]!==a[_0x2ddd54(0x3e6)]['DRAWING_SHAPE'])return null;let _0x164aed=_0x25c4f7[_0x2ddd54(0x3b6)](i[_0x2ddd54(0x1e0)]),_0x34b7c9=_0x164aed[_0x2ddd54(0x214)](_0x56bdfa[_0x2ddd54(0x3bf)],_0x56bdfa[_0x2ddd54(0x20a)],_0x56bdfa[_0x2ddd54(0x3e3)]),_0x505b5f=_0x164aed['getShapeDataById'](_0x56bdfa[_0x2ddd54(0x3bf)],_0x56bdfa['subUnitId'],_0x56bdfa[_0x2ddd54(0x3e3)]);return _0x34b7c9===void 0x0||!_0x505b5f?null:{'drawing':_0x56bdfa,'shapeData':_0x505b5f,'shapeType':_0x34b7c9};}const oe={'id':'sheet.operation.apply-shape-quick-style','type':a[_0x5db5d0(0x33b)][_0x5db5d0(0x29a)],'handler':(_0x2cd733,_0x452941)=>{const _0x125974=_0x5db5d0;let _0x563dea=ae(_0x2cd733),_0x391267=(0x0,r['getShapeQuickStylePreset'])((_0x452941==null?void 0x0:_0x452941[_0x125974(0x2c5)])??(_0x452941==null?void 0x0:_0x452941['value'])??'');if(!_0x563dea||!_0x391267||_0x391267[_0x125974(0x23f)]!==(0x0,r[_0x125974(0x146)])(_0x563dea['shapeData']))return!0x1;let _0x26a47c=(0x0,r['applyQuickStyleToShapeData'])(_0x563dea[_0x125974(0x398)],_0x391267);if(!_0x26a47c)return!0x1;let {drawing:_0x19877f}=_0x563dea;return _0x2cd733[_0x125974(0x3b6)](a['ICommandService'])[_0x125974(0x3e5)](S['id'],{'unitId':_0x19877f['unitId'],'subUnitId':_0x19877f[_0x125974(0x20a)],'shapeId':_0x19877f[_0x125974(0x3e3)],'shapeData':_0x26a47c,'oldShapeJSON':{'oldShapeData':_0x563dea['shapeData']}});}},se={'id':'sheet.operation.update-shape-type','type':a['CommandType']['OPERATION'],'handler':(_0x122ee3,_0x32e6e2)=>{const _0x23e181=_0x5db5d0;let _0x38ce44=ae(_0x122ee3),_0x8ddefa=(_0x32e6e2==null?void 0x0:_0x32e6e2[_0x23e181(0x17f)])??(_0x32e6e2==null?void 0x0:_0x32e6e2[_0x23e181(0x30b)]);if(!_0x38ce44||!_0x8ddefa||(0x0,n[_0x23e181(0x2b3)])(_0x38ce44[_0x23e181(0x17f)])||(0x0,n[_0x23e181(0x2b3)])(_0x8ddefa))return!0x1;let _0x2bbb96=(0x0,r['cloneShapeDataForType'])(_0x38ce44[_0x23e181(0x398)],_0x8ddefa);if(!_0x2bbb96)return!0x1;let {drawing:_0x2eb01e}=_0x38ce44;return _0x122ee3['get'](a['ICommandService'])[_0x23e181(0x3e5)](S['id'],{'unitId':_0x2eb01e['unitId'],'subUnitId':_0x2eb01e[_0x23e181(0x20a)],'shapeId':_0x2eb01e[_0x23e181(0x3e3)],'shapeType':_0x8ddefa,'shapeData':_0x2bbb96,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x38ce44[_0x23e181(0x17f)],'oldShapeData':_0x38ce44[_0x23e181(0x398)]}});}};let V=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x14f30c,_0x2c62b4){const _0x3a1232=_0x5db5d0;super(),this[_0x3a1232(0x291)]=_0x14f30c,this[_0x3a1232(0x3b1)]=_0x2c62b4,this[_0x3a1232(0x119)](),this['_clipService'][_0x3a1232(0x155)](!0x0),this[_0x3a1232(0x17d)]({'dispose':()=>this[_0x3a1232(0x291)]['setCanUseShapeClip'](!0x1)});}[_0x5db5d0(0x119)](){const _0x57dbab=_0x5db5d0;let _0x47d998=this[_0x57dbab(0x291)],_0x1c5fda=new Map(),_0x5d1dfe=_0x47d998[_0x57dbab(0xda)]((_0x2c5d04,_0x41b6e0,_0x5d794b,_0x4c4aa6,_0xa887d4)=>{const _0x28f115=_0x57dbab;let _0x260fbf=_0x41b6e0;if(_0x260fbf===n[_0x28f115(0x259)][_0x28f115(0xf6)]||_0x41b6e0===_0x28f115(0x126))return!0x1;try{let _0x265683=_0x1c5fda[_0x28f115(0x3b6)](_0x41b6e0);return _0x265683||(_0x265683=new n[(_0x28f115(0x243))](_0x260fbf,_0x28f115(0x2c8)+_0x41b6e0),_0x1c5fda['set'](_0x41b6e0,_0x265683)),_0x265683[_0x28f115(0x1e5)](),_0xa887d4&&Object[_0x28f115(0x29c)](_0xa887d4)[_0x28f115(0x2fb)]>0x0&&_0x265683[_0x28f115(0x408)]({'adjustValues':_0xa887d4},!0x0),_0x265683[_0x28f115(0x141)]({'width':_0x5d794b,'height':_0x4c4aa6}),_0x265683['buildClipPath'](_0x2c5d04,{'left':0x0,'top':0x0,'width':_0x5d794b,'height':_0x4c4aa6});}catch{return!0x1;}});this[_0x57dbab(0x17d)](_0x5d1dfe),this[_0x57dbab(0x17d)]({'dispose':()=>_0x1c5fda['clear']()});}['clipByShape'](_0x23aa74,_0x37af8b,_0x1635bb,_0x595934,_0x38deb4){const _0xcf57ca=_0x5db5d0;let _0x2c394c=this[_0xcf57ca(0x3b1)][_0xcf57ca(0x343)](_0x23aa74,_0x37af8b);if(!_0x2c394c[_0x1635bb])return;let _0x4de1cd={..._0x2c394c[_0x1635bb],'prstGeom':_0x595934,'adjustValues':_0x38deb4};this['_drawingManagerService'][_0xcf57ca(0x336)]([_0x4de1cd]);}};V=j([A(0x0,(0x0,a['Inject'])(d[_0x5db5d0(0x3ec)])),A(0x1,(0x0,a[_0x5db5d0(0x22f)])(s[_0x5db5d0(0x10d)]))],V);const ce='sheet.shape.picker.component',le=_0x5db5d0(0x3ee);function ue({onShapeClick:_0x123916,excludeGroups:_0x31eb4c}){const _0x37f713=_0x5db5d0;return(0x0,p['jsx'])(e[_0x37f713(0x1cf)],{'excludeGroups':_0x31eb4c,'onShapeClick':_0x123916,'scrollContainer':_0x37f713(0x277)});}function de(){const _0x4e6a6e=_0x5db5d0;let _0x1cb97a=(0x0,t[_0x4e6a6e(0x432)])(s[_0x4e6a6e(0x10d)]),_0x20d684=(0x0,t['useDependency'])(V);return(0x0,p['jsx'])(e[_0x4e6a6e(0x1b3)],{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[e['ShapeGroupEnum'][_0x4e6a6e(0x431)]],'onShapeClick':_0x19561d=>{const _0x24abff=_0x4e6a6e;let _0x3778c1=_0x1cb97a[_0x24abff(0x3fc)]()[_0x24abff(0x249)](_0x10e2cc=>_0x10e2cc[_0x24abff(0x3c1)]===a[_0x24abff(0x3e6)][_0x24abff(0x135)]);if(!_0x3778c1)return;let {unitId:_0x4a34f8,subUnitId:_0x386716,drawingId:_0x507a81}=_0x3778c1;_0x20d684['clipByShape'](_0x4a34f8,_0x386716,_0x507a81,_0x19561d['type']);}});}function fe(){const _0x16a5d4=_0x5db5d0;let _0x2ac001=(0x0,t[_0x16a5d4(0x432)])(s[_0x16a5d4(0x10d)]),_0xfd19bb=(0x0,t[_0x16a5d4(0x432)])(V);return(0x0,p[_0x16a5d4(0x37a)])(e['ShapePickerDropdown'],{'buttonLabel':_0x16a5d4(0x2c9),'excludeGroups':[e[_0x16a5d4(0x350)][_0x16a5d4(0x431)]],'DropdownComponent':f[_0x16a5d4(0x266)],'onShapeClick':_0x4820fb=>{const _0xfe3fd2=_0x16a5d4;let _0x23668a=_0x2ac001[_0xfe3fd2(0x3fc)]()['find'](_0x526c9b=>_0x526c9b['drawingType']===a[_0xfe3fd2(0x3e6)]['DRAWING_IMAGE']);if(!_0x23668a)return;let {unitId:_0x30e5,subUnitId:_0x4e93df,drawingId:_0x252818}=_0x23668a;_0xfd19bb[_0xfe3fd2(0x25e)](_0x30e5,_0x4e93df,_0x252818,_0x4820fb[_0xfe3fd2(0x23f)]);}});}function pe(){const _0x1cd864=_0x5db5d0;let _0x1b16a4=(0x0,t[_0x1cd864(0x432)])(t[_0x1cd864(0xd8)]),_0x4fc013=(0x0,t[_0x1cd864(0x432)])(s['IDrawingManagerService']),_0x3274fb=(0x0,t[_0x1cd864(0x432)])(a[_0x1cd864(0x1c8)]),_0xe04eca=_0x4fc013[_0x1cd864(0x3fc)]()[0x0],_0x6cb655=_0xe04eca?_0x3274fb[_0x1cd864(0x16c)](_0xe04eca[_0x1cd864(0x3bf)]):void 0x0,_0x18c0fe=_0x6cb655===a[_0x1cd864(0x400)]['UNIVER_DOC']?_0x1cd864(0x3e7):_0x6cb655===a[_0x1cd864(0x400)]['UNIVER_SHEET']?le:void 0x0,_0x2cb553=_0x18c0fe?_0x1b16a4[_0x1cd864(0x3b6)](_0x18c0fe):void 0x0;return _0x2cb553?(0x0,p[_0x1cd864(0x37a)])(_0x2cb553,{}):null;}function me(){const _0xcce9e0=_0x5db5d0;let _0x1ed19b=(0x0,t[_0xcce9e0(0x432)])(a[_0xcce9e0(0x2b9)]);return(0x0,p[_0xcce9e0(0x37a)])(ue,{'onShapeClick':_0x2433d1=>{const _0x36f103=_0xcce9e0;_0x1ed19b[_0x36f103(0x3e5)](F['id'],{'value':_0x2433d1['type'],'enhanceParams':{'endArrow':_0x2433d1['endArrow'],'startArrow':_0x2433d1[_0x36f103(0x3bb)],'horizontal':_0x2433d1[_0x36f103(0x29f)],'vertical':_0x2433d1[_0x36f103(0x34e)]}});}});}function he(){const _0x1d95c1=_0x5db5d0;return(0x0,p[_0x1d95c1(0x37a)])(me,{});}function ge(_0x104cf0){const _0x833584=_0x5db5d0;let _0x40ec6c=_0x104cf0[_0x833584(0x3b6)](a[_0x833584(0x1c8)]);return{'id':F['id'],'type':t['MenuItemType'][_0x833584(0x1b0)],'selections':[{'label':{'name':ce,'hoverable':!0x1,'selectable':!0x1,'props':{'id':F['id']}}}],'icon':_0x833584(0x26b),'tooltip':_0x833584(0x2b2),'activated$':(0x0,l[_0x833584(0x147)])(_0x40ec6c,!0x1,()=>new u[(_0x833584(0x1d3))](_0x3687d6=>{const _0x2cd91c=_0x833584;_0x3687d6[_0x2cd91c(0x430)](!0x1);})),'hidden$':(0x0,t[_0x833584(0x28b)])(_0x104cf0,a['UniverInstanceType'][_0x833584(0x319)]),'disabled$':(0x0,l[_0x833584(0xf7)])(_0x104cf0)};}function _e(_0x1e8fd5){const _0x508e3d=_0x5db5d0;let _0x662a50=_0x1e8fd5[_0x508e3d(0x3b6)](a['IUniverInstanceService']);return{'id':ie['id'],'type':t['MenuItemType']['BUTTON'],'icon':_0x508e3d(0x1b9),'title':_0x508e3d(0xe4),'tooltip':_0x508e3d(0xe4),'activated$':(0x0,l[_0x508e3d(0x147)])(_0x662a50,!0x1,()=>new u['Observable'](_0x4faeee=>{const _0x5642a7=_0x508e3d;_0x4faeee[_0x5642a7(0x430)](!0x1);})),'hidden$':(0x0,t[_0x508e3d(0x28b)])(_0x1e8fd5,a[_0x508e3d(0x400)][_0x508e3d(0x319)]),'disabled$':(0x0,l[_0x508e3d(0xf7)])(_0x1e8fd5)};}const ve=_0x5db5d0(0x3cd),ye=_0x5db5d0(0x3eb);function be(_0x477a49){const _0x23dddc=_0x5db5d0;let _0x4ab12b=_0x477a49[_0x23dddc(0x3b6)](s['IDrawingManagerService'])[_0x23dddc(0x3fc)]();return _0x4ab12b[_0x23dddc(0x2fb)]===0x1&&_0x4ab12b[0x0][_0x23dddc(0x3c1)]===a[_0x23dddc(0x3e6)][_0x23dddc(0x19d)]?_0x4ab12b[0x0]:null;}function xe(_0x5335a0){const _0x217f39=_0x5db5d0;let _0x25dc71=_0x5335a0[_0x217f39(0x3b6)](s[_0x217f39(0x10d)]);return _0x25dc71['focus$'][_0x217f39(0x402)]((0x0,u[_0x217f39(0x2dc)])(_0x25dc71[_0x217f39(0x3fc)]()),(0x0,u[_0x217f39(0x410)])(_0xfe0ca4=>_0xfe0ca4['length']!==0x1||_0xfe0ca4[0x0][_0x217f39(0x3c1)]!==a['DrawingTypeEnum']['DRAWING_SHAPE']));}function Se(_0x57e9aa){const _0x5bb09e=_0x5db5d0;return{'id':ve,'commandId':i[_0x5bb09e(0x36c)]['id'],'type':t[_0x5bb09e(0x35e)][_0x5bb09e(0x19c)],'title':_0x5bb09e(0x10a),'tooltip':_0x5bb09e(0x10a),'icon':_0x5bb09e(0x38d),'hidden$':xe(_0x57e9aa),'params':()=>{const _0x4ddfeb=_0x5bb09e;let _0x28524b=be(_0x57e9aa);return _0x28524b?{'unitId':_0x28524b[_0x4ddfeb(0x3bf)],'subUnitId':_0x28524b['subUnitId'],'shapeId':_0x28524b['drawingId'],'flipH':!0x0}:void 0x0;}};}function Ce(_0x3bb372){const _0x738da9=_0x5db5d0;return{'id':ye,'commandId':i[_0x738da9(0x36c)]['id'],'type':t[_0x738da9(0x35e)][_0x738da9(0x19c)],'title':_0x738da9(0x339),'tooltip':_0x738da9(0x339),'icon':_0x738da9(0x1c3),'hidden$':xe(_0x3bb372),'params':()=>{const _0x121b05=_0x738da9;let _0xfbab1=be(_0x3bb372);return _0xfbab1?{'unitId':_0xfbab1[_0x121b05(0x3bf)],'subUnitId':_0xfbab1[_0x121b05(0x20a)],'shapeId':_0xfbab1[_0x121b05(0x3e3)],'flipV':!0x0}:void 0x0;}};}const we='sheets-shape-ui.shape-format.quick-style-gallery',Te=_0x5db5d0(0x25d),Ee=_0x5db5d0(0x222),De=_0x5db5d0(0x3ff);function Oe(){const _0x3a6e90=_0x5db5d0;let _0x64bfbc=(0x0,t[_0x3a6e90(0x432)])(a[_0x3a6e90(0x2b9)]),_0x389a7f=(0x0,t['useDependency'])(s[_0x3a6e90(0x10d)]),_0x55faf9=(0x0,t['useDependency'])(i[_0x3a6e90(0x1e0)]),_0x22eb0a=()=>{const _0x458d05=_0x3a6e90;var _0x5e7d32;let _0x158410=_0x389a7f[_0x458d05(0x3fc)]();if(_0x158410[_0x458d05(0x2fb)]!==0x1||((_0x5e7d32=_0x158410[0x0])==null?void 0x0:_0x5e7d32['drawingType'])!==a[_0x458d05(0x3e6)][_0x458d05(0x19d)])return null;let {unitId:_0x4ee30b,subUnitId:_0xea6d25,drawingId:_0x39e4e3}=_0x158410[0x0],_0x26288d=_0x55faf9[_0x458d05(0x214)](_0x4ee30b,_0xea6d25,_0x39e4e3),_0x554f46=_0x55faf9['getShapeDataById'](_0x4ee30b,_0xea6d25,_0x39e4e3);return _0x26288d===void 0x0||!_0x554f46?null:{'unitId':_0x4ee30b,'subUnitId':_0xea6d25,'drawingId':_0x39e4e3,'shapeType':_0x26288d,'shapeData':_0x554f46};},_0xf5a1b9=(0x0,t[_0x3a6e90(0x148)])(()=>new u[(_0x3a6e90(0x1d3))](_0x3b78cd=>{const _0xf683ff=_0x3a6e90;let _0x19c92c=()=>_0x3b78cd['next'](_0x22eb0a()),_0x131977=_0x389a7f[_0xf683ff(0x344)]['subscribe'](_0x19c92c),_0x43c62e=_0x64bfbc['onCommandExecuted'](_0x225f3b=>{const _0x33ddd1=_0xf683ff;_0x225f3b['id']===i[_0x33ddd1(0x244)]['id']&&_0x19c92c();});return _0x19c92c(),()=>{const _0x23a24e=_0xf683ff;_0x131977['unsubscribe'](),_0x43c62e[_0x23a24e(0x1c4)]();};}),_0x22eb0a(),!0x1,[_0x64bfbc,_0x389a7f,_0x55faf9]);return{'selection':_0xf5a1b9,'updateShapeData':_0x20335d=>{const _0x699c7c=_0x3a6e90;_0xf5a1b9&&C(_0x64bfbc,_0xf5a1b9[_0x699c7c(0x3bf)],_0xf5a1b9[_0x699c7c(0x20a)],_0xf5a1b9[_0x699c7c(0x3e3)],{'oldShapeData':_0xf5a1b9[_0x699c7c(0x398)]},_0x20335d);}};}function ke(){const _0x3e10b2=_0x5db5d0;let {selection:_0x2a4f02,updateShapeData:_0x1637c8}=Oe();return _0x2a4f02?(0x0,p[_0x3e10b2(0x37a)])(e[_0x3e10b2(0xe3)],{'shapeData':_0x2a4f02['shapeData'],'shapeType':_0x2a4f02[_0x3e10b2(0x17f)],'onUpdateShapeData':_0x1637c8}):null;}function Ae(){const _0x622ee8=_0x5db5d0;let _0x2da6cc=(0x0,t[_0x622ee8(0x432)])(a[_0x622ee8(0x2b9)]),_0x191cd0=(0x0,t[_0x622ee8(0x432)])(a[_0x622ee8(0x232)]),{selection:_0x5c2661}=Oe();return _0x5c2661?(0x0,p[_0x622ee8(0x37a)])(e[_0x622ee8(0xec)],{'type':(0x0,r['getShapeQuickStyleType'])(_0x5c2661[_0x622ee8(0x398)]),'ariaLabel':_0x191cd0['t']('sheets-shape-ui.quickStyles'),'activePresetId':(0x0,r[_0x622ee8(0x213)])(_0x5c2661['shapeData']),'onSelect':_0x917367=>_0x2da6cc[_0x622ee8(0x3e5)](oe['id'],{'presetId':_0x917367})}):null;}function je(){const _0x1a0df7=_0x5db5d0;let {selection:_0x41f0d5,updateShapeData:_0x303e75}=Oe();return _0x41f0d5?(0x0,p[_0x1a0df7(0x37a)])(e[_0x1a0df7(0x2a8)],{'fontFamilyPopupDataComponent':_0x1a0df7(0x20c),'shapeData':_0x41f0d5['shapeData'],'onUpdateShapeData':_0x303e75}):null;}function Me(){const _0x48ad11=_0x5db5d0;var _0x298cb1;let {selection:_0x79f59e,updateShapeData:_0x4a6671}=Oe(),_0x6627ff=(0x0,e['useFormulaShapeToolbar'])({'hostType':a[_0x48ad11(0x400)][_0x48ad11(0x319)],'unitId':(_0x79f59e==null?void 0x0:_0x79f59e[_0x48ad11(0x3bf)])??'','subUnitId':(_0x79f59e==null?void 0x0:_0x79f59e[_0x48ad11(0x20a)])??'','shapeId':(_0x79f59e==null?void 0x0:_0x79f59e[_0x48ad11(0x3e3)])??'','shapeData':_0x79f59e==null?void 0x0:_0x79f59e[_0x48ad11(0x398)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x48ad11(0x108),'onUpdateBinding':_0x5e802d=>_0x4a6671({'formulaBinding':_0x5e802d})}),_0x1babe7=((_0x298cb1=_0x6627ff[_0x48ad11(0x250)])==null?void 0x0:_0x298cb1[_0x48ad11(0x429)](_0xaf2d7c=>_0xaf2d7c[_0x48ad11(0x3ea)])[_0x48ad11(0x38e)](_0x569208=>_0x569208[_0x48ad11(0x2cc)]!==!0x1))??[];return _0x79f59e!=null&&_0x79f59e['shapeData'][_0x48ad11(0x238)]?(0x0,p[_0x48ad11(0x37a)])(e[_0x48ad11(0x1c0)],{'actions':_0x1babe7,'panel':_0x6627ff[_0x48ad11(0x160)]}):null;}const Ne='sheets-shape-ui.ribbon.shape-format.style-control',Pe='sheets-shape-ui.ribbon.shape-format.text-control',Fe='sheets-shape-ui.ribbon.shape-format.formula-control',Ie=_0x5db5d0(0x192),Le='sheets-shape-ui.ribbon.shape-format.arrange-backward',Re=_0x5db5d0(0x33f),ze='sheets-shape-ui.ribbon.shape-format.arrange-back';function Be(_0x23f57d){const _0x3c500c=_0x5db5d0;let _0x1d6ba7=_0x23f57d[_0x3c500c(0x3b6)](a['ICommandService']),_0x25e15e=_0x23f57d[_0x3c500c(0x3b6)](s[_0x3c500c(0x10d)]),_0x483095=_0x23f57d[_0x3c500c(0x3b6)](i[_0x3c500c(0x1e0)]);return new u['Observable'](_0x41e710=>{const _0x32cf0f=_0x3c500c;let _0x17e95b=()=>{const _0x23e960=_0x29aa;let _0x5201e3=H(_0x23f57d),_0x4533cb=_0x5201e3?_0x483095[_0x23e960(0x287)](_0x5201e3['unitId'],_0x5201e3[_0x23e960(0x20a)],_0x5201e3['drawingId']):null;_0x41e710[_0x23e960(0x430)](_0x4533cb?(0x0,r[_0x23e960(0x213)])(_0x4533cb)??'':'');},_0x36c2fe=_0x25e15e[_0x32cf0f(0x344)][_0x32cf0f(0x426)](_0x17e95b),_0x375cca=_0x1d6ba7[_0x32cf0f(0x1aa)](_0x3eb978=>{const _0x1ebdd3=_0x32cf0f;_0x3eb978['id']===i[_0x1ebdd3(0x244)]['id']&&_0x17e95b();});return _0x17e95b(),()=>{const _0x2069c2=_0x32cf0f;_0x36c2fe[_0x2069c2(0x284)](),_0x375cca['dispose']();};});}function H(_0x2c9ff6){const _0x2cc988=_0x5db5d0;var _0x2acf25;let _0x1a0866=_0x2c9ff6['get'](s[_0x2cc988(0x10d)])[_0x2cc988(0x3fc)]();return _0x1a0866['length']===0x1&&((_0x2acf25=_0x1a0866[0x0])==null?void 0x0:_0x2acf25['drawingType'])===a[_0x2cc988(0x3e6)]['DRAWING_SHAPE']?_0x1a0866[0x0]:null;}function Ve(_0x313b0c,_0x234192=!0x1){const _0x2a4ae5=_0x5db5d0;let _0x24da15=_0x313b0c[_0x2a4ae5(0x3b6)](a[_0x2a4ae5(0x2b9)]),_0x2038ed=_0x313b0c[_0x2a4ae5(0x3b6)](s[_0x2a4ae5(0x10d)]),_0x22b6b3=_0x313b0c[_0x2a4ae5(0x3b6)](i[_0x2a4ae5(0x1e0)]);return new u['Observable'](_0x28c239=>{const _0xf0dd89=_0x2a4ae5;let _0x5799be=()=>{const _0x33ad39=_0x29aa;let _0x594dcd=H(_0x313b0c);if(!_0x594dcd){_0x28c239[_0x33ad39(0x430)](!0x0);return;}let _0x1e0670=_0x22b6b3[_0x33ad39(0x287)](_0x594dcd['unitId'],_0x594dcd['subUnitId'],_0x594dcd[_0x33ad39(0x3e3)]);_0x28c239[_0x33ad39(0x430)](!_0x1e0670||_0x234192&&_0x1e0670[_0x33ad39(0x238)]==null);},_0x4663b7=_0x2038ed[_0xf0dd89(0x344)]['subscribe'](_0x5799be),_0x542b0b=_0x24da15[_0xf0dd89(0x1aa)](_0x519471=>{const _0x49eab1=_0xf0dd89;_0x519471['id']===i[_0x49eab1(0x244)]['id']&&_0x5799be();});return _0x5799be(),()=>{const _0x5b8f07=_0xf0dd89;_0x4663b7[_0x5b8f07(0x284)](),_0x542b0b[_0x5b8f07(0x1c4)]();};});}function He(_0x1a5f83){const _0x15ce4f=_0x5db5d0;let _0x16f6c8=_0x1a5f83[_0x15ce4f(0x3b6)](s['IDrawingManagerService']),_0x9cf590=_0x1a5f83[_0x15ce4f(0x3b6)](i['SheetsShapeService']);return _0x16f6c8[_0x15ce4f(0x344)][_0x15ce4f(0x402)]((0x0,u[_0x15ce4f(0x2dc)])(_0x16f6c8['getFocusDrawings']()),(0x0,u['map'])(()=>{const _0x52aa77=_0x15ce4f;let _0x4efb7c=H(_0x1a5f83),_0x5849e4=_0x4efb7c?_0x9cf590[_0x52aa77(0x214)](_0x4efb7c[_0x52aa77(0x3bf)],_0x4efb7c['subUnitId'],_0x4efb7c['drawingId']):void 0x0;return _0x5849e4===void 0x0||(0x0,n[_0x52aa77(0x2b3)])(_0x5849e4);}));}function Ue(_0x5877d4){const _0x5d0670=_0x5db5d0;return{'id':oe['id'],'type':t[_0x5d0670(0x35e)][_0x5d0670(0x1b0)],'icon':'PaintIcon','title':_0x5d0670(0x1fc),'tooltip':'shape-editor-ui.toolbar.quickStyles','selections':[{'label':{'name':we,'hoverable':!0x1,'selectable':!0x1}}],'value$':Be(_0x5877d4),'hidden$':Ve(_0x5877d4)};}function We(_0x2923f0){const _0x8a5d74=_0x5db5d0;return{'id':se['id'],'type':t[_0x8a5d74(0x35e)][_0x8a5d74(0x1b0)],'icon':_0x8a5d74(0x26b),'title':'shape-editor-ui.toolbar.changeShape','tooltip':'shape-editor-ui.toolbar.changeShape','slot':!0x0,'selections':[{'label':{'name':e[_0x8a5d74(0x1da)],'hoverable':!0x1,'selectable':!0x1}}],'hidden$':He(_0x2923f0)};}function Ge(_0x1bd34d,_0x5ab42e,_0x1111df=!0x1){const _0x4d9c65=_0x5db5d0;return _0x4d5a3b=>({'id':_0x1bd34d,'type':t[_0x4d9c65(0x35e)][_0x4d9c65(0x19c)],'label':{'name':_0x5ab42e,'hoverable':!0x1,'selectable':!0x1},'hidden$':Ve(_0x4d5a3b,_0x1111df)});}const Ke=Ge(Ne,Te),qe=Ge(Pe,Ee),Je=Ge(Fe,De,!0x0);function Ye(_0x5a0677,_0x258f32,_0x547525,_0x4575b7){const _0x5c22a6=_0x5db5d0;return _0x336118=>({'id':_0x5a0677,'commandId':m[_0x5c22a6(0x326)]['id'],'type':t[_0x5c22a6(0x35e)][_0x5c22a6(0x19c)],'icon':_0x547525,'title':_0x4575b7,'tooltip':_0x4575b7,'hidden$':Ve(_0x336118),'params':()=>{const _0x4f8a5a=_0x5c22a6;let _0x1150c4=H(_0x336118);return _0x1150c4?{'unitId':_0x1150c4['unitId'],'subUnitId':_0x1150c4[_0x4f8a5a(0x20a)],'drawingIds':[_0x1150c4[_0x4f8a5a(0x3e3)]],'arrangeType':_0x258f32}:void 0x0;}});}const Xe=Ye(Ie,a[_0x5db5d0(0x150)][_0x5db5d0(0x306)],_0x5db5d0(0x1dc),_0x5db5d0(0x411)),Ze=Ye(Le,a['ArrangeTypeEnum']['backward'],'MoveDownIcon','shape-editor-ui.arrange.backward'),Qe=Ye(Re,a[_0x5db5d0(0x150)][_0x5db5d0(0x378)],_0x5db5d0(0x11c),_0x5db5d0(0x1df)),$e=Ye(ze,a[_0x5db5d0(0x150)][_0x5db5d0(0x256)],_0x5db5d0(0x34a),_0x5db5d0(0x188));function et(_0x991484){const _0x13cde9=_0x5db5d0;return{'id':B['id'],'type':t['MenuItemType']['BUTTON'],'icon':_0x13cde9(0x3f9),'title':_0x13cde9(0x21e),'tooltip':_0x13cde9(0x21e),'hidden$':Ve(_0x991484),'params':()=>{const _0x3058f6=_0x13cde9;let _0xc67668=H(_0x991484);return _0xc67668?{'unitId':_0xc67668[_0x3058f6(0x3bf)],'subUnitId':_0xc67668[_0x3058f6(0x20a)],'drawingId':_0xc67668[_0x3058f6(0x3e3)]}:void 0x0;}};}const tt={[t[_0x5db5d0(0x412)][_0x5db5d0(0x415)]]:{[z]:{'order':0x64,'title':_0x5db5d0(0x21e),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[oe['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ue},[se['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':We}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[Ne]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ke}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[Pe]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':qe}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[ve]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':Se},[ye]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':Ce},[Ie]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':Xe},[Le]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':Ze},[Re]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':Qe},[ze]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':$e}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[Fe]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Je}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[B['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':et},[e[_0x5db5d0(0x38f)]['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':e['ShapeFloatingToolbarToggleFactory']}}}}},nt={[t[_0x5db5d0(0x174)][_0x5db5d0(0x313)]]:{[F['id']]:{'order':0x4,'menuItemFactory':ge}}},rt={...nt,[t['RibbonInsertGroup'][_0x5db5d0(0x2ab)]]:{[ie['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':_e}},[t[_0x5db5d0(0x3fe)][_0x5db5d0(0x413)]]:{[t[_0x5db5d0(0xf2)][_0x5db5d0(0x2ab)]]:{[ve]:{'order':0x4,'menuItemFactory':Se},[ye]:{'order':0x5,'menuItemFactory':Ce}}}};var it='@univerjs-pro/sheets-shape-ui',at='1.0.0-rc.0';const ot={'id':_0x5db5d0(0x379),'type':a[_0x5db5d0(0x33b)]['OPERATION'],'handler'(_0x21d005,_0x1cb46a){const _0xb0a8ed=_0x5db5d0;return _0x1cb46a?(_0x21d005['get'](e['MobileShapeEditorService'])['open'](_0x1cb46a['mode'],{'hostType':a[_0xb0a8ed(0x400)][_0xb0a8ed(0x319)],'shapeId':_0x1cb46a['drawingId'],'subUnitId':_0x1cb46a['subUnitId'],'unitId':_0x1cb46a[_0xb0a8ed(0x3bf)]}),!0x0):!0x1;}},st=_0x5db5d0(0x3cc),ct={};let lt=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x510bd1,_0x2dc074,_0x56adf1,_0x547ce7,_0x524e5d){const _0x58f8e2=_0x5db5d0;super(),this[_0x58f8e2(0x2ea)]=_0x510bd1,this[_0x58f8e2(0x3b1)]=_0x2dc074,this[_0x58f8e2(0x104)]=_0x56adf1,this[_0x58f8e2(0x12c)]=_0x547ce7,this[_0x58f8e2(0x2aa)]=_0x524e5d,E(this,_0x58f8e2(0x100),null),E(this,_0x58f8e2(0x3d2),null),E(this,_0x58f8e2(0x23c),null),E(this,'_activeAdjustPointList',void 0x0),E(this,_0x58f8e2(0x221),[]),E(this,_0x58f8e2(0x1cd),0x0),E(this,_0x58f8e2(0x1ef),0x0),E(this,_0x58f8e2(0x3ef),0x0),E(this,_0x58f8e2(0x23d),0x0),E(this,_0x58f8e2(0x182),!0x1),E(this,_0x58f8e2(0x1f6),void 0x0),E(this,_0x58f8e2(0x258),void 0x0),E(this,_0x58f8e2(0x173),void 0x0),E(this,_0x58f8e2(0x29d),void 0x0),E(this,_0x58f8e2(0x3dc),!0x1),this[_0x58f8e2(0x2c6)](),this[_0x58f8e2(0x224)]();}[_0x5db5d0(0x24f)](){this['_clearControls']();}[_0x5db5d0(0x40f)](){const _0x2bfb80=_0x5db5d0;this[_0x2bfb80(0x28d)](),this[_0x2bfb80(0x1f2)](!0x0);}[_0x5db5d0(0x1a3)](_0x3696fd,_0x439a62,_0x448433,_0x43420a){const _0x4e3f41=_0x5db5d0;let _0x3f6382=_0x3696fd;if(_0x3f6382!==n[_0x4e3f41(0x259)][_0x4e3f41(0xf6)]&&_0x3696fd!==_0x4e3f41(0x126))try{let _0x23335f=new n[(_0x4e3f41(0x243))](_0x3f6382,_0x4e3f41(0x3b3)+_0x3696fd);return _0x43420a&&_0x23335f[_0x4e3f41(0x408)]({'adjustValues':_0x43420a},!0x0),_0x23335f[_0x4e3f41(0x141)]({'width':_0x439a62,'height':_0x448433}),_0x23335f;}catch{return;}}['_getImageDrawingInfo'](_0x1abb0b,_0x45e616,_0x593430){const _0x4553e9=_0x5db5d0;let _0x163b9e={'unitId':_0x1abb0b,'subUnitId':_0x45e616,'drawingId':_0x593430},_0x4a19a3=this[_0x4553e9(0x3b1)][_0x4553e9(0x15a)](_0x163b9e);if(!(!_0x4a19a3||_0x4a19a3['drawingType']!==a[_0x4553e9(0x3e6)]['DRAWING_IMAGE']))return _0x4a19a3;}['_getImagePrstGeom'](_0xd2b67b,_0x540830,_0x436a0b){const _0x4e137d=_0x5db5d0;let _0x24381d=this[_0x4e137d(0x104)][_0x4e137d(0x2c4)](_0xd2b67b);if(!_0x24381d)return;let {scene:_0x24b927}=_0x24381d,_0x19da5e=(0x0,s[_0x4e137d(0x1f8)])({'unitId':_0xd2b67b,'subUnitId':_0x540830,'drawingId':_0x436a0b}),_0x998d57=_0x24b927[_0x4e137d(0x3b7)](_0x19da5e);if(_0x998d57 instanceof c[_0x4e137d(0x40b)]){let _0x27631e=_0x998d57[_0x4e137d(0xf3)];if(_0x27631e)return{'prstGeom':_0x27631e,'adjustValues':_0x998d57[_0x4e137d(0x1f0)]};}}[_0x5db5d0(0x1f2)](_0xb88a91=!0x1){const _0x264830=_0x5db5d0;if(!this[_0x264830(0x3d2)]||!this[_0x264830(0x23c)]||!this[_0x264830(0x100)])return;let _0x2c397e=this[_0x264830(0x104)]['getRenderUnitById'](this[_0x264830(0x3d2)]);if(!_0x2c397e||!_0x2c397e['with'](l[_0x264830(0x364)])[_0x264830(0x2bc)]())return;let {scene:_0x8d1885}=_0x2c397e,_0x58410e=this[_0x264830(0x367)](this[_0x264830(0x3d2)],this['_subUnitId'],this[_0x264830(0x100)]);if(!_0x58410e)return;let {transform:_0x89a639}=_0x58410e;if(!_0x89a639)return;let {left:_0x16e5c2,top:_0x50db28,width:_0x4df3d2,height:_0x28dac4,flipX:_0x308756,flipY:_0x262385,angle:_0x27d408=0x0}=_0x89a639;if(_0x16e5c2===void 0x0||_0x50db28===void 0x0)return;let _0x1aeecb=this[_0x264830(0x1e7)](this[_0x264830(0x3d2)],this[_0x264830(0x23c)],this[_0x264830(0x100)]);if(!_0x1aeecb)return;if(_0xb88a91){let _0x10da79=this[_0x264830(0x1a3)](_0x1aeecb[_0x264830(0xf3)],_0x4df3d2||0x0,_0x28dac4||0x0,_0x1aeecb[_0x264830(0x15c)]);if(!_0x10da79)return;this[_0x264830(0x422)]=_0x10da79[_0x264830(0x123)]();}let _0x5e6379=this[_0x264830(0x422)];if(!(!_0x5e6379||_0x5e6379[_0x264830(0x2fb)]===0x0))for(let _0x55e626=0x0;_0x55e626<_0x5e6379[_0x264830(0x2fb)];_0x55e626++){let _0x4bcabe=_0x5e6379[_0x55e626],_0x59b599=_0x4bcabe['x'],_0x45580e=_0x4bcabe['y'];if(_0x308756&&(_0x59b599=(_0x4df3d2||0x0)-_0x59b599),_0x262385&&(_0x45580e=(_0x28dac4||0x0)-_0x45580e),_0x27d408!==0x0){let _0x597b97=(_0x4df3d2||0x0)/0x2,_0x4a5a06=(_0x28dac4||0x0)/0x2,_0x2d2654=_0x27d408*Math['PI']/0xb4,_0x39384c=Math['cos'](_0x2d2654),_0x6e0854=Math['sin'](_0x2d2654),_0x4c0013=_0x59b599-_0x597b97,_0x33cea0=_0x45580e-_0x4a5a06;_0x59b599=_0x597b97+(_0x4c0013*_0x39384c-_0x33cea0*_0x6e0854),_0x45580e=_0x4a5a06+(_0x4c0013*_0x6e0854+_0x33cea0*_0x39384c);}let _0x3566ea={'x':_0x59b599,'y':_0x45580e,'adjName':_0x4bcabe[_0x264830(0x24b)]};this['_addControl'](_0x8d1885,_0x3566ea,_0x3566ea[_0x264830(0x24b)],_0x16e5c2,_0x50db28,this[_0x264830(0x3d2)],this['_subUnitId']);}}[_0x5db5d0(0xf0)](_0x486ca1,_0x4d7c23,_0x5809cb,_0x575f80,_0x39ce8f,_0x3cab13,_0x48e17b){const _0x344ff9=_0x5db5d0;if(!this[_0x344ff9(0x100)])return;let _0x2a3a19=_0x344ff9(0x3c0)+this[_0x344ff9(0x100)]+'-'+_0x5809cb,_0x247108=_0x486ca1[_0x344ff9(0x1d5)](_0x2a3a19);if(_0x247108){_0x247108['transformByState']({'left':_0x4d7c23['x']+_0x575f80-n[_0x344ff9(0x2b4)][_0x344ff9(0x269)],'top':_0x4d7c23['y']+_0x39ce8f-n[_0x344ff9(0x2b4)][_0x344ff9(0x269)]});return;}let _0x705774=new k(_0x2a3a19,{'left':_0x4d7c23['x']+_0x575f80-n['ShapeDefaultConfig'][_0x344ff9(0x269)],'top':_0x4d7c23['y']+_0x39ce8f-n['ShapeDefaultConfig'][_0x344ff9(0x269)],'adjName':_0x5809cb,'shapeId':this['_activeImageId'],'unitId':_0x3cab13,'subUnitId':_0x48e17b,'width':n[_0x344ff9(0x2b4)][_0x344ff9(0x269)]+0x8,'height':n[_0x344ff9(0x2b4)]['adjHandleSize']+0x8,'zIndex':c['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0});this[_0x344ff9(0x221)][_0x344ff9(0x1bd)](_0x705774),this['_attachAdjustEvent'](_0x705774,_0x486ca1,_0x5809cb),_0x486ca1[_0x344ff9(0x251)](_0x705774,c[_0x344ff9(0x3a9)]+0x1);}[_0x5db5d0(0x28d)](){const _0x1e2e0b=_0x5db5d0;this['_shapes']['length']!==0x0&&(this[_0x1e2e0b(0x221)][_0x1e2e0b(0xe5)](_0x4b4ad8=>_0x4b4ad8[_0x1e2e0b(0x1c4)]()),this[_0x1e2e0b(0x221)]=[]);}[_0x5db5d0(0x245)](_0x426156,_0x3ba84b){const _0x572c26=_0x5db5d0;var _0x558886;let _0x90fa53={'x':0x0,'y':0x0},_0x12b90f=this[_0x572c26(0x104)][_0x572c26(0x2c4)](_0x426156);if(!_0x12b90f||!_0x12b90f[_0x572c26(0x35a)](l['SheetSkeletonManagerService'])[_0x572c26(0x23a)](_0x3ba84b))return _0x90fa53;let _0x5493a8=_0x12b90f[_0x572c26(0x35a)](l['SheetScrollManagerService']),_0x57a707=_0x5493a8==null?void 0x0:_0x5493a8[_0x572c26(0x2ac)]();if(!_0x57a707)return _0x90fa53;let _0x550d65=(_0x558886=this['_univerInstanceService'][_0x572c26(0x1ae)](_0x426156))==null?void 0x0:_0x558886['getSheetBySheetId'](_0x3ba84b);if(!_0x550d65)return _0x90fa53;let _0x2d8b0c=(0x0,l[_0x572c26(0x404)])(_0x57a707[_0x572c26(0x1a5)],_0x57a707['sheetViewStartColumn'],_0x12b90f[_0x572c26(0x2e7)],_0x550d65);return _0x2d8b0c?{'x':_0x2d8b0c['viewportScrollX'],'y':_0x2d8b0c[_0x572c26(0x370)]}:_0x90fa53;}[_0x5db5d0(0x34f)](_0x5241fa,_0x4bca30){const _0x297cf6=_0x5db5d0;var _0x19da28;let _0x5b6616=(_0x19da28=this[_0x297cf6(0x12c)][_0x297cf6(0x1ae)](_0x5241fa))==null?void 0x0:_0x19da28[_0x297cf6(0x26d)](_0x4bca30);return(_0x5b6616==null?void 0x0:_0x5b6616[_0x297cf6(0x27a)]())??0x1;}[_0x5db5d0(0x139)](_0x2efa7f,_0x2963d0,_0x3582b8){const _0x42015d=_0x5db5d0;this[_0x42015d(0x17d)]((0x0,a[_0x42015d(0x105)])(_0x2efa7f[_0x42015d(0x1c2)][_0x42015d(0x151)]((_0xe597f2,_0x3c28ed)=>{const _0x1daff2=_0x42015d;var _0xa72104,_0x3622f7,_0x1815ed;let {unitId:_0x449f29,subUnitId:_0x2c9d98,drawingId:_0xc0a0ed}=_0x2efa7f[_0x1daff2(0x19b)](),_0x22d6bf=this[_0x1daff2(0x367)](_0x449f29,_0x2c9d98,_0xc0a0ed);if(!(_0x22d6bf!=null&&_0x22d6bf[_0x1daff2(0x32a)]))return;let {left:_0xf93943,top:_0x2844de,width:_0x58be57,height:_0x359895}=_0x22d6bf['transform'];this[_0x1daff2(0x1cd)]=_0xf93943||0x0,this[_0x1daff2(0x1ef)]=_0x2844de||0x0,this['_baseWidth']=_0x58be57||0x0,this[_0x1daff2(0x23d)]=_0x359895||0x0;let _0x16cd3a=!!((_0xa72104=_0x22d6bf['transform'])!=null&&_0xa72104[_0x1daff2(0xfa)]),_0x228438=!!((_0x3622f7=_0x22d6bf[_0x1daff2(0x32a)])!=null&&_0x3622f7[_0x1daff2(0xef)]),_0x34aa31=((_0x1815ed=_0x22d6bf[_0x1daff2(0x32a)])==null?void 0x0:_0x1815ed[_0x1daff2(0x3ed)])||0x0,_0x21ee3c=this[_0x1daff2(0x1e7)](_0x449f29,_0x2c9d98,_0xc0a0ed);if(!_0x21ee3c)return;let _0x17e961=this['_getOrCreateShapeModel'](_0x21ee3c[_0x1daff2(0xf3)],this[_0x1daff2(0x3ef)],this[_0x1daff2(0x23d)],_0x21ee3c[_0x1daff2(0x15c)]);if(!_0x17e961||(this[_0x1daff2(0x258)]=_0x17e961,this[_0x1daff2(0x1f6)]=_0x17e961[_0x1daff2(0x2af)](_0x3582b8),!this[_0x1daff2(0x1f6)]))return;this[_0x1daff2(0x182)]=!0x0,_0x2963d0['disableObjectsEvent']();let _0x43f147=_0x21ee3c[_0x1daff2(0xf3)];this[_0x1daff2(0x173)]=_0x2963d0[_0x1daff2(0x1b5)][_0x1daff2(0x151)]((_0x429986,_0xe048bb)=>{const _0x92aabe=_0x1daff2;if(!this['_isStartAdjusting'])return;let {offsetX:_0x29e85b,offsetY:_0x169928}=_0x429986,_0x183743=this[_0x92aabe(0x1f6)];if(!this[_0x92aabe(0x258)]||!_0x183743)return;_0x2963d0[_0x92aabe(0x2a1)](),_0x2963d0[_0x92aabe(0x27d)](c[_0x92aabe(0x30f)]['CROSSHAIR']);let _0x14e1e1={'left':0x0,'top':0x0,'width':this['_baseWidth'],'height':this[_0x92aabe(0x23d)]},_0x31a322=this[_0x92aabe(0x245)](_0x449f29,_0x2c9d98),_0x2b41ec=this[_0x92aabe(0x34f)](_0x449f29,_0x2c9d98),_0x428fbc=_0x29e85b/_0x2b41ec+_0x31a322['x']-this[_0x92aabe(0x1cd)],_0x1d2db9=_0x169928/_0x2b41ec+_0x31a322['y']-this[_0x92aabe(0x1ef)];if(_0x34aa31!==0x0){let _0xde90b4=this[_0x92aabe(0x3ef)]/0x2,_0x1784bf=this[_0x92aabe(0x23d)]/0x2,_0x3c76da=_0x34aa31*Math['PI']/0xb4,_0x4ae7e3=Math[_0x92aabe(0x39e)](_0x3c76da),_0x56361f=Math['sin'](_0x3c76da),_0x2a562c=_0x428fbc-_0xde90b4,_0x450ca9=_0x1d2db9-_0x1784bf;_0x428fbc=_0xde90b4+(_0x2a562c*_0x4ae7e3+_0x450ca9*_0x56361f),_0x1d2db9=_0x1784bf+(-_0x2a562c*_0x56361f+_0x450ca9*_0x4ae7e3);}_0x16cd3a&&(_0x428fbc=this['_baseWidth']-_0x428fbc),_0x228438&&(_0x1d2db9=this[_0x92aabe(0x23d)]-_0x1d2db9);let _0x56d4f8=this['_activeShapeModel']['calcAdjValues'](_0x14e1e1,{'x':_0x428fbc,'y':_0x1d2db9},_0x183743,_0x16cd3a,_0x228438);if(Object[_0x92aabe(0x29c)](_0x56d4f8)[_0x92aabe(0x2fb)]!==0x0){for(let [_0x3366a4,_0x24e627]of Object[_0x92aabe(0x2d0)](_0x56d4f8))this['_activeShapeModel'][_0x92aabe(0x19a)](_0x3366a4,_0x24e627);this['_activeShapeModel'][_0x92aabe(0x141)]({'width':this[_0x92aabe(0x3ef)],'height':this['_baseHeight']}),this['_updateImageAdjValues'](_0x449f29,_0x2c9d98,_0xc0a0ed,_0x56d4f8),this[_0x92aabe(0x422)]=this[_0x92aabe(0x258)][_0x92aabe(0x123)](),this[_0x92aabe(0x1f2)](),_0xe048bb[_0x92aabe(0x15f)]();}}),this['_adjHandlerPointerUp']=_0x2963d0[_0x1daff2(0x369)]['subscribeEvent']((_0x3b321d,_0x48cd1f)=>{const _0x47909d=_0x1daff2;if(this[_0x47909d(0x173)][_0x47909d(0x284)](),this[_0x47909d(0x29d)][_0x47909d(0x284)](),_0x2963d0[_0x47909d(0x338)](),this['_activeShapeModel']){let _0x2dda1f=this[_0x47909d(0x258)]['getAdjustNames'](),_0xd90ee0={};for(let _0x4ab26a of _0x2dda1f){let _0x2608bd=this[_0x47909d(0x258)][_0x47909d(0xd7)](_0x4ab26a);_0x2608bd!==void 0x0&&(_0xd90ee0[_0x4ab26a]=_0x2608bd);}this[_0x47909d(0x2aa)][_0x47909d(0x25e)](_0x449f29,_0x2c9d98,_0xc0a0ed,_0x43f147,_0xd90ee0);}this['_activeAdjustInfo']=void 0x0,this[_0x47909d(0x258)]=void 0x0,this[_0x47909d(0x182)]=!0x1,_0x48cd1f[_0x47909d(0x15f)](),_0x2963d0[_0x47909d(0x13c)]();}),_0x3c28ed[_0x1daff2(0x15f)]();})));}[_0x5db5d0(0x170)](_0x6a7b0b,_0x4fb708,_0x312c9f,_0x2cb53d){const _0x158561=_0x5db5d0;let _0x9df31d=this['_renderManagerService']['getRenderUnitById'](_0x6a7b0b);if(!_0x9df31d)return;let {scene:_0x349083}=_0x9df31d,_0x4de2b1=(0x0,s[_0x158561(0x1f8)])({'unitId':_0x6a7b0b,'subUnitId':_0x4fb708,'drawingId':_0x312c9f}),_0x1b56d4=_0x349083['getObject'](_0x4de2b1);if(_0x1b56d4 instanceof c[_0x158561(0x40b)]){let _0x412d5a=_0x1b56d4[_0x158561(0x1f0)]??{};_0x1b56d4[_0x158561(0x3a4)]({..._0x412d5a,..._0x2cb53d}),_0x1b56d4['makeDirty'](!0x0);}}[_0x5db5d0(0x224)](){const _0x5c4933=_0x5db5d0;let _0x269688=this[_0x5c4933(0x12c)][_0x5c4933(0x384)](a[_0x5c4933(0x400)][_0x5c4933(0x319)]);this[_0x5c4933(0x17d)](_0x269688[_0x5c4933(0x402)]((0x0,u[_0x5c4933(0x177)])(_0xbb0554=>_0xbb0554?_0xbb0554[_0x5c4933(0x115)][_0x5c4933(0x402)]((0x0,u[_0x5c4933(0x177)])(_0x5352e7=>{const _0x5081f5=_0x5c4933;if(!_0x5352e7)return u[_0x5081f5(0x395)];let _0x2347a1=_0xbb0554['getUnitId'](),_0x422e98=this[_0x5081f5(0x104)][_0x5081f5(0x2c4)](_0x2347a1),_0x2abe8a=_0x422e98==null?void 0x0:_0x422e98[_0x5081f5(0x2e7)];return _0x2abe8a?(0x0,u['of'])(_0x2abe8a):u[_0x5081f5(0x395)];})):u['EMPTY']))[_0x5c4933(0x426)](_0x14f71f=>{const _0xb881b0=_0x5c4933;let _0x3a27b4=_0x14f71f[_0xb881b0(0x3cb)]();this[_0xb881b0(0x17d)](_0x14f71f[_0xb881b0(0x1b5)][_0xb881b0(0x151)](()=>{const _0x4bcf8b=_0xb881b0;this[_0x4bcf8b(0x3dc)]&&this[_0x4bcf8b(0x28d)]();})),this[_0xb881b0(0x17d)](_0x3a27b4[_0xb881b0(0x328)][_0xb881b0(0x426)](_0x577a72=>{const _0x1d7c92=_0xb881b0;let {objects:_0x4378a6}=_0x577a72;if(this[_0x1d7c92(0x1f2)](),_0x4378a6!==null&&_0x4378a6['size']===0x1){let _0x3f7805=_0x4378a6[_0x1d7c92(0x3ae)]()[_0x1d7c92(0x430)]()['value'];_0x3f7805 instanceof c[_0x1d7c92(0x40b)]&&_0x3f7805[_0x1d7c92(0xf3)]&&(this['_isImagePointerDown']=!0x0);}})),this[_0xb881b0(0x17d)](_0x3a27b4[_0xb881b0(0x1a2)][_0xb881b0(0x426)](()=>{const _0x3c35dc=_0xb881b0;this['_isImagePointerDown']&&this[_0x3c35dc(0x28d)]();})),this['disposeWithMe'](_0x14f71f['onPointerUp$'][_0xb881b0(0x151)](()=>{const _0x49e199=_0xb881b0;this[_0x49e199(0x3dc)]&&(this['_isImagePointerDown']=!0x1,this[_0x49e199(0x1f2)]());})),this[_0xb881b0(0x17d)](_0x3a27b4[_0xb881b0(0x3f8)][_0xb881b0(0x426)](()=>{const _0x48f091=_0xb881b0;if(this[_0x48f091(0x3d2)]&&this[_0x48f091(0x23c)]&&this[_0x48f091(0x100)]){let _0x4562e5=this[_0x48f091(0x1e7)](this[_0x48f091(0x3d2)],this[_0x48f091(0x23c)],this[_0x48f091(0x100)]);if(_0x4562e5){var _0x4e7fab,_0x30c130;let _0xbf93ca=this['_getImageDrawingInfo'](this['_unitId'],this[_0x48f091(0x23c)],this['_activeImageId']),_0x1dbff1=(_0xbf93ca==null||(_0x4e7fab=_0xbf93ca[_0x48f091(0x32a)])==null?void 0x0:_0x4e7fab[_0x48f091(0x2ad)])||0x0,_0x4abf77=(_0xbf93ca==null||(_0x30c130=_0xbf93ca['transform'])==null?void 0x0:_0x30c130['height'])||0x0,_0x22b615=this[_0x48f091(0x1a3)](_0x4562e5[_0x48f091(0xf3)],_0x1dbff1,_0x4abf77,_0x4562e5[_0x48f091(0x15c)]);_0x22b615&&(this[_0x48f091(0x422)]=_0x22b615['getDrawingPoints'](),this[_0x48f091(0x28d)](),this[_0x48f091(0x1f2)](!0x0));}}}));}));}[_0x5db5d0(0x2c6)](){const _0x3560f0=_0x5db5d0;this[_0x3560f0(0x17d)](this[_0x3560f0(0x3b1)][_0x3560f0(0x344)]['subscribe'](_0x1186f1=>{const _0x180672=_0x3560f0;if(_0x1186f1[_0x180672(0x2fb)]===0x1){let _0x4ae8a2=_0x1186f1[0x0];if(_0x4ae8a2[_0x180672(0x3c1)]===a[_0x180672(0x3e6)][_0x180672(0x135)]){let {unitId:_0x5ceedb,subUnitId:_0x22b8ab,drawingId:_0x3e1361}=_0x4ae8a2,_0x4f44e9=this[_0x180672(0x1e7)](_0x5ceedb,_0x22b8ab,_0x3e1361);if(_0x4f44e9){var _0x5b05bf,_0x564287;this['_activeImageId']=_0x3e1361,this[_0x180672(0x3d2)]=_0x5ceedb,this[_0x180672(0x23c)]=_0x22b8ab;let _0x1c7c1d=this[_0x180672(0x367)](_0x5ceedb,_0x22b8ab,_0x3e1361),_0x18d47c=(_0x1c7c1d==null||(_0x5b05bf=_0x1c7c1d[_0x180672(0x32a)])==null?void 0x0:_0x5b05bf[_0x180672(0x2ad)])||0x0,_0x5dd2e3=(_0x1c7c1d==null||(_0x564287=_0x1c7c1d[_0x180672(0x32a)])==null?void 0x0:_0x564287[_0x180672(0x3c5)])||0x0,_0x207e05=this[_0x180672(0x1a3)](_0x4f44e9['prstGeom'],_0x18d47c,_0x5dd2e3,_0x4f44e9[_0x180672(0x15c)]);_0x207e05&&(this['_activeAdjustPointList']=_0x207e05[_0x180672(0x123)]()),this['_clearControls'](),this[_0x180672(0x1f2)](!0x0);}else this[_0x180672(0x330)]();}else this[_0x180672(0x330)]();}else this[_0x180672(0x330)]();})),this[_0x3560f0(0x17d)](this[_0x3560f0(0x3b1)][_0x3560f0(0xe7)]['subscribe'](_0x38532b=>{const _0x44b8ff=_0x3560f0;if(_0x38532b[_0x44b8ff(0x2fb)]===0x1){let _0x339b46=_0x38532b[0x0],_0x4d35f5=this[_0x44b8ff(0x3b1)][_0x44b8ff(0x15a)](_0x339b46);(_0x4d35f5==null?void 0x0:_0x4d35f5['drawingType'])===a['DrawingTypeEnum'][_0x44b8ff(0x135)]&&this[_0x44b8ff(0x100)]===_0x339b46[_0x44b8ff(0x3e3)]&&(this['_clearControls'](),this['_createControls'](!0x0));}})),this[_0x3560f0(0x17d)](this['_drawingManagerService'][_0x3560f0(0x386)]['subscribe'](_0x1490bd=>{const _0x423170=_0x3560f0;for(let _0x8ad254 of _0x1490bd)this['_activeImageId']===_0x8ad254[_0x423170(0x3e3)]&&this[_0x423170(0x330)]();}));}[_0x5db5d0(0x330)](){const _0x513dea=_0x5db5d0;this[_0x513dea(0x100)]=null,this[_0x513dea(0x3d2)]=null,this[_0x513dea(0x23c)]=null,this[_0x513dea(0x422)]=void 0x0,this[_0x513dea(0x28d)]();}};lt=j([A(0x1,s['IDrawingManagerService']),A(0x2,(0x0,a[_0x5db5d0(0x22f)])(c[_0x5db5d0(0x226)])),A(0x3,a['IUniverInstanceService']),A(0x4,(0x0,a[_0x5db5d0(0x22f)])(V))],lt);let ut=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x2855d3,_0x542a40){const _0x524768=_0x5db5d0;super(),this[_0x524768(0x17d)](_0x542a40[_0x524768(0x3f3)]({'BottomIcon':y[_0x524768(0x34a)],'FlipHorizontalIcon':y['FlipHorizontalIcon'],'FlipVerticalIcon':y[_0x524768(0x1c3)],'MoveDownIcon':y[_0x524768(0x267)],'MoveUpIcon':y[_0x524768(0x1dc)],'ObjectLayersIcon':y['ObjectLayersIcon'],'ShapeFormatSettingIcon':y[_0x524768(0x3f9)],'TopmostIcon':y[_0x524768(0x11c)]})),this[_0x524768(0x17d)](_0x2855d3[_0x524768(0x3f3)](ce,he)),this['disposeWithMe'](_0x2855d3[_0x524768(0x3f3)](le,fe)),_0x2855d3['get'](d['IMAGE_CLIP_SHAPE_PICKER_COMPONENT'])||this['disposeWithMe'](_0x2855d3[_0x524768(0x3f3)](d[_0x524768(0x401)],pe));}};ut=j([A(0x0,(0x0,a[_0x5db5d0(0x22f)])(t[_0x5db5d0(0xd8)])),A(0x1,(0x0,a[_0x5db5d0(0x22f)])(t[_0x5db5d0(0x235)]))],ut);let U=class extends a['Disposable']{constructor(_0x5c4a6b){const _0x10b09a=_0x5db5d0;super(),this[_0x10b09a(0x223)]=_0x5c4a6b,E(this,_0x10b09a(0x425),new u[(_0x10b09a(0x187))](null)),E(this,_0x10b09a(0x2ca),this['_editingParams$'][_0x10b09a(0x2ff)]()),E(this,_0x10b09a(0x13b),new u[(_0x10b09a(0x187))](!0x1)),E(this,_0x10b09a(0x18c),this[_0x10b09a(0x13b)][_0x10b09a(0x2ff)]()),E(this,'_completionFrame',void 0x0),this[_0x10b09a(0x17d)](this[_0x10b09a(0x223)]['permissionPointUpdate$'][_0x10b09a(0x426)](()=>{const _0x3480f1=_0x10b09a;let _0x11fedd=this[_0x3480f1(0x302)]();_0x11fedd!=null&&_0x11fedd[_0x3480f1(0x2cc)]&&!this[_0x3480f1(0x2cb)](_0x11fedd)&&this['setEditing'](null);}));}['dispose'](){const _0x222cc9=_0x5db5d0;this[_0x222cc9(0x295)](),this[_0x222cc9(0x425)][_0x222cc9(0x430)](null),this['_editingParams$'][_0x222cc9(0x2f1)](),this[_0x222cc9(0x13b)][_0x222cc9(0x430)](!0x1),this['_onSavingEditorData$'][_0x222cc9(0x2f1)](),super[_0x222cc9(0x1c4)]();}['setEditing'](_0x1bb58e){const _0x571978=_0x5db5d0;_0x1bb58e!=null&&_0x1bb58e[_0x571978(0x2cc)]&&!this[_0x571978(0x2cb)](_0x1bb58e)||(this[_0x571978(0x295)](),this['_editingParams$']['next'](_0x1bb58e),(_0x1bb58e==null||_0x1bb58e[_0x571978(0x2cc)]&&this[_0x571978(0x13b)]['getValue']())&&this[_0x571978(0x13b)][_0x571978(0x430)](!0x1));}[_0x5db5d0(0x2e5)](_0x3bd292){this['_onSavingEditorData$']['next'](_0x3bd292);}[_0x5db5d0(0x302)](){const _0x6aee82=_0x5db5d0;return this[_0x6aee82(0x425)]['getValue']();}[_0x5db5d0(0x2cb)](_0x313521){const _0x5a7b0e=_0x5db5d0;let _0x9eecf2=this[_0x5a7b0e(0x223)]['getPermissionPoint'](new o['WorkbookEditablePermission'](_0x313521['unitId'])['id']),_0x6294d9=this[_0x5a7b0e(0x223)]['getPermissionPoint'](new o[(_0x5a7b0e(0x3ba))](_0x313521[_0x5a7b0e(0x3bf)],_0x313521[_0x5a7b0e(0x20a)])['id']);return((_0x9eecf2==null?void 0x0:_0x9eecf2[_0x5a7b0e(0x30b)])??!0x0)&&((_0x6294d9==null?void 0x0:_0x6294d9[_0x5a7b0e(0x30b)])??!0x0);}[_0x5db5d0(0xdf)](_0x5eb90e){const _0x434881=_0x5db5d0;let _0xc0b4de=this[_0x434881(0x302)]();!_0xc0b4de||this[_0x434881(0x32f)]!==void 0x0||(this['setOnSavingEditorData'](!0x0),this[_0x434881(0x32f)]=requestAnimationFrame(()=>{const _0x513ebb=_0x434881;this[_0x513ebb(0x32f)]=void 0x0,this[_0x513ebb(0x302)]()===_0xc0b4de&&this[_0x513ebb(0x362)](null);}));}[_0x5db5d0(0x295)](){const _0x240ac2=_0x5db5d0;this[_0x240ac2(0x32f)]!==void 0x0&&(cancelAnimationFrame(this[_0x240ac2(0x32f)]),this[_0x240ac2(0x32f)]=void 0x0);}[_0x5db5d0(0x301)](){const _0x679323=_0x5db5d0;this[_0x679323(0x302)]()&&this['setEditing'](null);}};U=j([A(0x0,a[_0x5db5d0(0x390)])],U);let dt=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x331adf,_0xf3c76,_0x3f1400,_0x327b81,_0x2dfdc2,_0x1f86e0){const _0x437abf=_0x5db5d0;super(),this[_0x437abf(0x2ea)]=_0x331adf,this[_0x437abf(0x418)]=_0xf3c76,this[_0x437abf(0x42f)]=_0x3f1400,this['_drawingManagerService']=_0x327b81,this[_0x437abf(0x3f5)]=_0x2dfdc2,this[_0x437abf(0x27f)]=_0x1f86e0,E(this,'_lastEditingShapeKey',null),this[_0x437abf(0x36d)](),this[_0x437abf(0x2d8)](),this['_initEditingParams']();}['_initEvents'](){const _0x5a1ff3=_0x5db5d0;let {scene:_0x3d23ba}=this[_0x5a1ff3(0x2ea)];this[_0x5a1ff3(0x17d)](_0x3d23ba[_0x5a1ff3(0x17b)][_0x5a1ff3(0x151)](_0x312e4c=>{const _0x59dd92=_0x5a1ff3;let {offsetX:_0x7ffda6,offsetY:_0x56e254}=_0x312e4c,_0x568704=_0x3d23ba[_0x59dd92(0x39b)](c[_0x59dd92(0x179)][_0x59dd92(0x2db)]([_0x7ffda6,_0x56e254]));if(_0x568704 instanceof O){let _0x21ae8d=this[_0x59dd92(0x27f)][_0x59dd92(0x11e)](_0x568704[_0x59dd92(0x3bf)],_0x568704[_0x59dd92(0x20a)],_0x568704[_0x59dd92(0x340)]);if((0x0,n[_0x59dd92(0x2b3)])(this[_0x59dd92(0x27f)][_0x59dd92(0x2fa)](_0x568704['unitId'],_0x568704[_0x59dd92(0x20a)],_0x568704[_0x59dd92(0x340)]))||_0x21ae8d!=null&&_0x21ae8d[_0x59dd92(0x3bc)]()['formulaBinding'])return;this[_0x59dd92(0x42f)]['setEditing']({'visible':!0x0,'unitId':_0x568704[_0x59dd92(0x3bf)],'subUnitId':_0x568704[_0x59dd92(0x20a)],'shapeId':_0x568704[_0x59dd92(0x340)],'shapeKey':_0x568704[_0x59dd92(0xf4)]});}}));}[_0x5db5d0(0x2d8)](){const _0x110206=_0x5db5d0;this[_0x110206(0x17d)](this[_0x110206(0x3b1)][_0x110206(0x344)][_0x110206(0x426)](_0x497530=>{const _0x740017=_0x110206;if(_0x497530['length']===0x1){let _0x311cbf=_0x497530[0x0],_0x4e3203=this['_drawingManagerService'][_0x740017(0x15a)](_0x311cbf);if((_0x4e3203==null?void 0x0:_0x4e3203[_0x740017(0x3c1)])===a['DrawingTypeEnum'][_0x740017(0x19d)]){var _0xbb67c5;let _0x17ac26=this[_0x740017(0x42f)][_0x740017(0x302)]();if((_0x17ac26==null?void 0x0:_0x17ac26[_0x740017(0x340)])===_0x311cbf[_0x740017(0x3e3)]&&_0x17ac26['visible'])return;let _0x2d99ec=(0x0,n[_0x740017(0x2b3)])(this[_0x740017(0x27f)]['getShapeType'](_0x311cbf[_0x740017(0x3bf)],_0x311cbf['subUnitId'],_0x311cbf['drawingId'])),_0x84fd0c=!!((_0xbb67c5=this[_0x740017(0x27f)]['getShapeModel'](_0x311cbf[_0x740017(0x3bf)],_0x311cbf[_0x740017(0x20a)],_0x311cbf[_0x740017(0x3e3)]))!=null&&_0xbb67c5[_0x740017(0x3bc)]()['formulaBinding']);(_0x2d99ec||_0x84fd0c)&&this['_shapeTextEditingService']['setEditing'](null);}else this[_0x740017(0x42f)][_0x740017(0xdf)]();}else this[_0x740017(0x42f)][_0x740017(0xdf)]();})),this['disposeWithMe'](this['_drawingManagerService'][_0x110206(0x386)][_0x110206(0x426)](_0x1f6f82=>{const _0x295d37=_0x110206;let _0x26586b=this['_shapeTextEditingService'][_0x295d37(0x302)]();_0x26586b&&_0x1f6f82[_0x295d37(0x203)](_0x4f1434=>_0x4f1434[_0x295d37(0x3e3)]===_0x26586b[_0x295d37(0x340)])&&this[_0x295d37(0x42f)][_0x295d37(0x362)](null);}));}[_0x5db5d0(0x31a)](){const _0x2bd697=_0x5db5d0;this['disposeWithMe'](this[_0x2bd697(0x42f)][_0x2bd697(0x2ca)][_0x2bd697(0x426)](_0x1454e8=>{const _0x400c50=_0x2bd697;let {scene:_0x3dfa16}=this[_0x400c50(0x2ea)];if(this[_0x400c50(0x15e)]){let _0x462736=_0x3dfa16[_0x400c50(0x1d5)](this[_0x400c50(0x15e)]);_0x462736&&_0x462736[_0x400c50(0x362)](!0x1);}if(_0x1454e8){let _0x88e21=!!_0x1454e8[_0x400c50(0x2cc)],_0x1fcf6f=_0x3dfa16[_0x400c50(0x1d5)](_0x1454e8['shapeKey']);_0x1fcf6f&&(_0x1fcf6f[_0x400c50(0x362)](_0x88e21),this[_0x400c50(0x15e)]=_0x1454e8[_0x400c50(0x183)]),this['_contextService'][_0x400c50(0x28a)](a[_0x400c50(0xee)],_0x88e21);}else this[_0x400c50(0x15e)]=null,this[_0x400c50(0x3f5)][_0x400c50(0x28a)](a['FOCUSING_SHAPE_TEXT_EDITOR'],!0x1);}));}};dt=j([A(0x1,(0x0,a['Inject'])(a[_0x5db5d0(0x167)])),A(0x2,(0x0,a[_0x5db5d0(0x22f)])(U)),A(0x3,s[_0x5db5d0(0x10d)]),A(0x4,a[_0x5db5d0(0xe8)]),A(0x5,(0x0,a[_0x5db5d0(0x22f)])(i[_0x5db5d0(0x1e0)]))],dt);var ft=class extends dt{['_initEvents'](){const _0x1fd0a1=_0x5db5d0;let {scene:_0x38d5d0}=this['_context'],_0x4ed1be=this[_0x1fd0a1(0x418)][_0x1fd0a1(0x3b6)](e[_0x1fd0a1(0x2a7)]);this['disposeWithMe'](_0x38d5d0[_0x1fd0a1(0x17b)][_0x1fd0a1(0x151)](_0x50b97e=>{const _0x28e21e=_0x1fd0a1;let {offsetX:_0x51ce73,offsetY:_0x51931e}=_0x50b97e,_0x48166b=_0x38d5d0[_0x28e21e(0x39b)](c['Vector2'][_0x28e21e(0x2db)]([_0x51ce73,_0x51931e]));if(!(_0x48166b instanceof O))return;let _0x2f984f=this[_0x28e21e(0x27f)][_0x28e21e(0x11e)](_0x48166b['unitId'],_0x48166b[_0x28e21e(0x20a)],_0x48166b[_0x28e21e(0x340)]);(0x0,n['isConnectorShape'])(this['_sheetsShapeService']['getShapeType'](_0x48166b[_0x28e21e(0x3bf)],_0x48166b[_0x28e21e(0x20a)],_0x48166b[_0x28e21e(0x340)]))||_0x2f984f!=null&&_0x2f984f['getShapeData']()[_0x28e21e(0x238)]||_0x4ed1be['open']('text',{'hostType':a[_0x28e21e(0x400)]['UNIVER_SHEET'],'unitId':_0x48166b[_0x28e21e(0x3bf)],'subUnitId':_0x48166b[_0x28e21e(0x20a)],'shapeId':_0x48166b[_0x28e21e(0x340)]});}));}};const pt={...nt},mt={'type':a[_0x5db5d0(0x33b)][_0x5db5d0(0x29a)],'id':_0x5db5d0(0x209),'handler'(){return!0x0;}};let W=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x3b672e,_0x1c03dd,_0x589307,_0x1b3d80,_0x138a9e,_0x388d26,_0x193c64,_0x40dc6c,_0x1de8ce,_0x4b271b,_0x4c8151){const _0x25556f=_0x5db5d0;super(),this[_0x25556f(0x12c)]=_0x3b672e,this['_sidebarService']=_0x1c03dd,this['_menuManagerService']=_0x589307,this[_0x25556f(0x27f)]=_0x1b3d80,this[_0x25556f(0x272)]=_0x138a9e,this[_0x25556f(0x1ad)]=_0x388d26,this['_drawingManagerService']=_0x193c64,this[_0x25556f(0x351)]=_0x40dc6c,this[_0x25556f(0x3f5)]=_0x1de8ce,this['_renderManagerService']=_0x4b271b,this[_0x25556f(0x42f)]=_0x4c8151,E(this,_0x25556f(0x128),null),E(this,_0x25556f(0x1c1),null),E(this,_0x25556f(0x220),!0x1),E(this,_0x25556f(0x292),0x0),E(this,_0x25556f(0x314),null),E(this,_0x25556f(0x3d6),[]),this[_0x25556f(0x387)](),this['disposeWithMe'](this[_0x25556f(0x12c)]['getCurrentTypeOfUnit$'](a[_0x25556f(0x400)][_0x25556f(0x319)])['subscribe'](_0x5503a3=>{const _0x5d6c9b=_0x25556f;if(!_0x5503a3){var _0x3f2c76;(_0x3f2c76=this[_0x5d6c9b(0x128)])==null||_0x3f2c76['dispose']();}})),this[_0x25556f(0x14b)](),this[_0x25556f(0x41a)](),this[_0x25556f(0x17d)](this[_0x25556f(0x42f)][_0x25556f(0x2ca)][_0x25556f(0x426)](_0x5cc0a8=>{_0x5cc0a8&&this['_clearPopups']();}));}[_0x5db5d0(0x387)](){const _0x10b012=_0x5db5d0;this[_0x10b012(0x25c)][_0x10b012(0x2a6)](rt);}[_0x5db5d0(0x41a)](){const _0x36606c=_0x5db5d0;this[_0x36606c(0x314)]||=this[_0x36606c(0x17d)]((0x0,e[_0x36606c(0x11f)])(this[_0x36606c(0x104)],a[_0x36606c(0x400)]['UNIVER_SHEET'],_0x14c08f=>this['_popupMenuListener'](_0x14c08f)));}[_0x5db5d0(0x145)](_0x37064e,_0x9b459a,_0x2b2f3b){const _0x1456c3=_0x5db5d0;let _0x58a0df=this['_sheetsShapeService'][_0x1456c3(0x214)](_0x37064e,_0x9b459a,_0x2b2f3b),_0x1fcb39=this[_0x1456c3(0x27f)][_0x1456c3(0x287)](_0x37064e,_0x9b459a,_0x2b2f3b);return _0x58a0df!==void 0x0&&_0x1fcb39!==void 0x0?{'shapeData':_0x1fcb39,'shapeId':_0x2b2f3b,'shapeType':_0x58a0df,'unitId':_0x37064e,'subUnitId':_0x9b459a,'version':this[_0x1456c3(0x292)],'disableShapeOption':!0x1}:null;}[_0x5db5d0(0x3b2)](){const _0x96ac5a=_0x5db5d0;this[_0x96ac5a(0x3d6)]['forEach'](_0x4955fc=>_0x4955fc[_0x96ac5a(0x1c4)]()),this[_0x96ac5a(0x3d6)]['length']=0x0;}[_0x5db5d0(0x199)](_0x420afa){const _0x18a7f5=_0x5db5d0;let _0x1360f5=new a[(_0x18a7f5(0x3ab))]();return _0x1360f5['add'](_0x420afa[_0x18a7f5(0x13a)][_0x18a7f5(0x426)](()=>{const _0x4d9cb5=_0x18a7f5;let _0x2acd33=_0x420afa[_0x4d9cb5(0x299)]();if(this[_0x4d9cb5(0x3b2)](),this[_0x4d9cb5(0x220)]||_0x2acd33['size']>0x1)return;let _0x2a5ec9=_0x2acd33[_0x4d9cb5(0x3ae)]()[_0x4d9cb5(0x430)]()[_0x4d9cb5(0x30b)];if(!_0x2a5ec9)return;let _0x17a0f2=this['_drawingManagerService'][_0x4d9cb5(0x11d)](_0x2a5ec9['oKey']);if(!_0x17a0f2||_0x17a0f2[_0x4d9cb5(0x3c1)]!==a[_0x4d9cb5(0x3e6)]['DRAWING_SHAPE'])return;let {unitId:_0x41f976,subUnitId:_0x575878,drawingId:_0x4b40fb,drawingType:_0x2114e7}=_0x17a0f2,_0x3ce332=this[_0x4d9cb5(0x145)](_0x41f976,_0x575878,_0x4b40fb);if(!_0x3ce332)return;this[_0x4d9cb5(0x3f5)][_0x4d9cb5(0x28a)](a[_0x4d9cb5(0x377)],!0x0);let _0x439f0f=this[_0x4d9cb5(0x104)][_0x4d9cb5(0x2c4)](_0x41f976),_0x19c7de=((_0x439f0f==null?void 0x0:_0x439f0f[_0x4d9cb5(0x1d7)])===!0x1?_0x439f0f['with'](l['SheetCanvasPopManagerService']):this[_0x4d9cb5(0x351)])['attachPopupToObject'](_0x2a5ec9,{'componentKey':R,'direction':_0x4d9cb5(0x1b8),'offset':[0x0,e[_0x4d9cb5(0x363)]],'extraProps':{'unitId':_0x41f976,'subUnitId':_0x575878,'drawingId':_0x4b40fb,'drawingType':_0x2114e7,'shapeType':_0x3ce332[_0x4d9cb5(0x17f)],'shapeData':_0x3ce332[_0x4d9cb5(0x398)]}});this[_0x4d9cb5(0x3d6)][_0x4d9cb5(0x1bd)](this[_0x4d9cb5(0x17d)](_0x19c7de)),this[_0x4d9cb5(0x3b1)]['getFocusDrawings']()[_0x4d9cb5(0x249)](_0x21a829=>_0x21a829[_0x4d9cb5(0x3bf)]===_0x41f976&&_0x21a829[_0x4d9cb5(0x20a)]===_0x575878&&_0x21a829[_0x4d9cb5(0x3e3)]===_0x4b40fb)||this[_0x4d9cb5(0x3b1)]['focusDrawing']([{'unitId':_0x41f976,'subUnitId':_0x575878,'drawingId':_0x4b40fb}]);})),_0x1360f5['add'](_0x420afa[_0x18a7f5(0x252)][_0x18a7f5(0x426)](()=>{const _0x55ac1e=_0x18a7f5;this[_0x55ac1e(0x3b2)](),this[_0x55ac1e(0x3f5)][_0x55ac1e(0x28a)](a[_0x55ac1e(0x377)],!0x1),this[_0x55ac1e(0x3b1)][_0x55ac1e(0x3aa)](null);})),_0x1360f5[_0x18a7f5(0x381)](_0x420afa['changing$'][_0x18a7f5(0x426)](()=>{const _0x133be6=_0x18a7f5;this[_0x133be6(0x3b2)]();})),_0x1360f5[_0x18a7f5(0x381)](_0x420afa[_0x18a7f5(0x328)][_0x18a7f5(0x426)](()=>{const _0x4f8c0e=_0x18a7f5;this[_0x4f8c0e(0x3b2)]();})),(0x0,a[_0x18a7f5(0x105)])(()=>{const _0x5180e8=_0x18a7f5;_0x1360f5[_0x5180e8(0x1c4)](),this['_clearPopups']();});}[_0x5db5d0(0x14b)](){const _0x4b0eac=_0x5db5d0;this[_0x4b0eac(0x17d)](this[_0x4b0eac(0x1ad)][_0x4b0eac(0x1aa)](_0x4a3753=>{const _0x51f9f0=_0x4b0eac;if(_0x4a3753['id']===B['id']){let {unitId:_0x223f7a,subUnitId:_0x5e7774,drawingId:_0x4bf5db}=_0x4a3753['params'];this[_0x51f9f0(0x292)]+=0x1,this[_0x51f9f0(0x1c1)]=this['_getShapeInfo'](_0x223f7a,_0x5e7774,_0x4bf5db),this['_clearPopups'](),this['_openShapeEditPanel']();}if(_0x4a3753['id']===mt['id']&&(this['_activeShapeInfo']=null,this[_0x51f9f0(0x2b1)]()),_0x4a3753['id']===i[_0x51f9f0(0x244)]['id']){let {unitId:_0x31c78c,subUnitId:_0x38c81d,shapeId:_0x3aba40}=_0x4a3753[_0x51f9f0(0x1a0)];if(this[_0x51f9f0(0x1c1)]&&this['_activeShapeInfo'][_0x51f9f0(0x340)]===_0x3aba40){let _0x741718=this[_0x51f9f0(0x145)](_0x31c78c,_0x38c81d,_0x3aba40);_0x741718&&(this['_shapeEditPanelVersion']+=0x1,_0x741718[_0x51f9f0(0x427)]=this[_0x51f9f0(0x292)],this[_0x51f9f0(0x1c1)]=_0x741718,this[_0x51f9f0(0x220)]&&this[_0x51f9f0(0x1d8)]());}}})),this[_0x4b0eac(0x17d)](this[_0x4b0eac(0x3b1)][_0x4b0eac(0x344)][_0x4b0eac(0x426)](_0x542674=>{const _0x36a08a=_0x4b0eac;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x542674[_0x36a08a(0x2fb)]===0x0){this[_0x36a08a(0x1c1)]=null,this['_closeShapeEditPanel']();return;}if(_0x542674[_0x36a08a(0x2fb)]===0x1&&_0x542674[0x0][_0x36a08a(0x3c1)]===a[_0x36a08a(0x3e6)][_0x36a08a(0x19d)]&&(this[_0x36a08a(0x292)]+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x542674[0x0][_0x36a08a(0x3bf)],_0x542674[0x0][_0x36a08a(0x20a)],_0x542674[0x0]['drawingId']),this[_0x36a08a(0x1c1)])){this[_0x36a08a(0x1d8)]();return;}let _0x6cdc25=_0x542674[_0x36a08a(0x38e)](_0x354156=>_0x354156[_0x36a08a(0x3c1)]===a[_0x36a08a(0x3e6)]['DRAWING_SHAPE']);if(_0x542674['length']>0x1&&_0x6cdc25['length']===_0x542674[_0x36a08a(0x2fb)]){if(this[_0x36a08a(0x292)]+=0x1,this[_0x36a08a(0x1c1)]=this[_0x36a08a(0x145)](_0x542674[0x0]['unitId'],_0x542674[0x0][_0x36a08a(0x20a)],_0x542674[0x0]['drawingId']),this[_0x36a08a(0x1c1)]){this[_0x36a08a(0x1d8)]();return;}}else{if(this[_0x36a08a(0x292)]+=0x1,this[_0x36a08a(0x1c1)]=this[_0x36a08a(0x145)](_0x542674[0x0][_0x36a08a(0x3bf)],_0x542674[0x0][_0x36a08a(0x20a)],_0x542674[0x0][_0x36a08a(0x3e3)]),this['_activeShapeInfo']){this['_activeShapeInfo'][_0x36a08a(0x3af)]=!0x0,this[_0x36a08a(0x1d8)]();return;}}this[_0x36a08a(0x2b1)]();}));}[_0x5db5d0(0x1d8)](){const _0x44aea2=_0x5db5d0;this[_0x44aea2(0x1c1)]&&(this['_sidebarDisposable']=this[_0x44aea2(0x2e1)]['open']({'id':I,'header':{'title':this['_localeService']['t'](_0x44aea2(0x21e))},'width':0x184,'children':{'label':I,...this[_0x44aea2(0x1c1)]},'onClose':()=>{const _0x21f547=_0x44aea2;this[_0x21f547(0x3b1)][_0x21f547(0x3aa)](null),this['_contextService'][_0x21f547(0x28a)](a[_0x21f547(0x377)],!0x1),this['_sidebarDisposable']=null;}}),this[_0x44aea2(0x220)]=!0x0);}[_0x5db5d0(0x2b1)](){const _0x595963=_0x5db5d0;this['_isOpenedShapeEditPanel']=!0x1,this[_0x595963(0x2e1)][_0x595963(0xe6)](I),this[_0x595963(0x128)]=null,this[_0x595963(0x3f5)][_0x595963(0x28a)](a[_0x595963(0x377)],!0x1),this[_0x595963(0x3b1)][_0x595963(0x3aa)](null);}};W=j([A(0x0,a['IUniverInstanceService']),A(0x1,(0x0,a[_0x5db5d0(0x22f)])(t[_0x5db5d0(0x27c)])),A(0x2,t[_0x5db5d0(0x172)]),A(0x3,(0x0,a[_0x5db5d0(0x22f)])(i[_0x5db5d0(0x1e0)])),A(0x4,(0x0,a[_0x5db5d0(0x22f)])(a[_0x5db5d0(0x232)])),A(0x5,a[_0x5db5d0(0x2b9)]),A(0x6,s[_0x5db5d0(0x10d)]),A(0x7,(0x0,a[_0x5db5d0(0x22f)])(l[_0x5db5d0(0x237)])),A(0x8,a['IContextService']),A(0x9,c[_0x5db5d0(0x226)]),A(0xa,(0x0,a['Inject'])(U))],W);var ht=class extends W{[_0x5db5d0(0x387)](){const _0x3b4a94=_0x5db5d0;this[_0x3b4a94(0x25c)]['mergeMenu'](pt);}[_0x5db5d0(0x316)](){const _0x16c15d=_0x5db5d0;this[_0x16c15d(0x351)]['registerFeatureMenu'](a[_0x16c15d(0x3e6)][_0x16c15d(0x19d)],(_0xb8a060,_0x5bc2f0,_0x2f4d07,_0x2f972b)=>{const _0x4de41f=_0x16c15d;let _0x2ecb1e=this['_sheetsShapeService'][_0x4de41f(0x214)](_0xb8a060,_0x5bc2f0,_0x2f4d07),_0xa5af80=this[_0x4de41f(0x27f)][_0x4de41f(0x287)](_0xb8a060,_0x5bc2f0,_0x2f4d07),_0x619213=_0x2ecb1e!==void 0x0&&!(0x0,n[_0x4de41f(0x2b3)])(_0x2ecb1e)&&!(_0xa5af80!=null&&_0xa5af80[_0x4de41f(0x238)]);return[{'label':_0x4de41f(0x279),'index':0x0,'commandId':ot['id'],'commandParams':{'unitId':_0xb8a060,'subUnitId':_0x5bc2f0,'drawingId':_0x2f4d07,'mode':_0x4de41f(0x25b)},'disable':!0x1},..._0x619213?[{'label':_0x4de41f(0x375),'index':0x1,'commandId':ot['id'],'commandParams':{'unitId':_0xb8a060,'subUnitId':_0x5bc2f0,'drawingId':_0x2f4d07,'mode':_0x4de41f(0x152)},'disable':!0x1}]:[],{'label':_0x4de41f(0x321),'index':0x2,'commandId':m[_0x4de41f(0x346)]['id'],'commandParams':{'unitId':_0xb8a060,'drawings':[{'unitId':_0xb8a060,'subUnitId':_0x5bc2f0,'drawingId':_0x2f4d07,'drawingType':_0x2f972b}]},'disable':!0x1},{'label':_0x4de41f(0x10a),'index':0x3,'commandId':i['ToggleSheetsShapeFlipCommand']['id'],'commandParams':{'unitId':_0xb8a060,'subUnitId':_0x5bc2f0,'shapeId':_0x2f4d07,'flipH':!0x0},'disable':!0x1},{'label':_0x4de41f(0x339),'index':0x4,'commandId':i['ToggleSheetsShapeFlipCommand']['id'],'commandParams':{'unitId':_0xb8a060,'subUnitId':_0x5bc2f0,'shapeId':_0x2f4d07,'flipV':!0x0},'disable':!0x1}];},_0x16c15d(0x305));}[_0x5db5d0(0x199)](_0xd0132){const _0x2f7c0e=_0x5db5d0;this['_registerFeatureMenu']();let _0x569b86=new a[(_0x2f7c0e(0x3ab))](),_0x432e92=null,_0x22a651=()=>{const _0x55682b=_0x2f7c0e;if(!_0x432e92)return;let _0x472a20=this['_drawingManagerService']['getFocusDrawings'](),_0x4e2a32=_0x472a20[_0x55682b(0x2fb)]===0x0||_0x472a20[_0x55682b(0x2fb)]===0x1&&_0x472a20[_0x55682b(0x203)](_0x5cb60f=>_0x5cb60f[_0x55682b(0x3bf)]===(_0x432e92==null?void 0x0:_0x432e92['unitId'])&&_0x5cb60f[_0x55682b(0x20a)]===(_0x432e92==null?void 0x0:_0x432e92[_0x55682b(0x20a)])&&_0x5cb60f['drawingId']===(_0x432e92==null?void 0x0:_0x432e92['drawingId']));_0x432e92=null,_0x4e2a32&&(this['_contextService'][_0x55682b(0x28a)](a[_0x55682b(0x377)],!0x1),this[_0x55682b(0x3b1)][_0x55682b(0x3aa)](null));};return _0x569b86[_0x2f7c0e(0x381)](_0xd0132[_0x2f7c0e(0x13a)][_0x2f7c0e(0x426)](()=>{const _0x326ae9=_0x2f7c0e;let _0x42e1bc=_0xd0132[_0x326ae9(0x299)]();if(_0x42e1bc[_0x326ae9(0x3e0)]>0x1){_0x22a651();return;}let _0x95e6d0=_0x42e1bc['values']()[_0x326ae9(0x430)]()[_0x326ae9(0x30b)];if(!_0x95e6d0){_0x22a651();return;}let _0x47019c=this[_0x326ae9(0x3b1)][_0x326ae9(0x11d)](_0x95e6d0[_0x326ae9(0xf4)]);if(!_0x47019c||_0x47019c['drawingType']!==a[_0x326ae9(0x3e6)][_0x326ae9(0x19d)]){_0x22a651();return;}let {unitId:_0x215430,subUnitId:_0x160fe6,drawingId:_0x1a9851}=_0x47019c;_0x432e92={'unitId':_0x215430,'subUnitId':_0x160fe6,'drawingId':_0x1a9851},this[_0x326ae9(0x3f5)][_0x326ae9(0x28a)](a[_0x326ae9(0x377)],!0x0),this[_0x326ae9(0x3b1)][_0x326ae9(0x3fc)]()[_0x326ae9(0x249)](_0x549af8=>_0x549af8[_0x326ae9(0x3bf)]===_0x215430&&_0x549af8[_0x326ae9(0x20a)]===_0x160fe6&&_0x549af8[_0x326ae9(0x3e3)]===_0x1a9851)||this[_0x326ae9(0x3b1)][_0x326ae9(0x3aa)]([{'unitId':_0x215430,'subUnitId':_0x160fe6,'drawingId':_0x1a9851}]);})),_0x569b86['add'](_0xd0132[_0x2f7c0e(0x252)][_0x2f7c0e(0x426)](()=>{_0x22a651();})),(0x0,a[_0x2f7c0e(0x105)])(()=>{_0x569b86['dispose'](),_0x22a651();});}};function gt(_0x5363f4,_0x2c35e1,_0x5e63db,_0x28ac2f){const _0x58314a=_0x5db5d0;let _0x2bc670=(0x0,s[_0x58314a(0x24e)])(_0x5363f4,_0x2c35e1,_0x5e63db),_0x4ec426=[];for(let _0x470022 of _0x2c35e1){let _0x334f13=_0x2bc670[_0x58314a(0x3cf)][_0x58314a(0x3b6)](_0x470022['drawingId']),_0x1ada92=_0x28ac2f(_0x470022);!_0x334f13||!_0x1ada92||_0x4ec426[_0x58314a(0x1bd)]({'targetShapeId':_0x334f13,'source':_0x1ada92});}return _0x4ec426;}let G=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x363253,_0x1b55b3,_0x1cc450,_0x5f2e9e){const _0x19f573=_0x5db5d0;super(),this[_0x19f573(0x12c)]=_0x363253,this[_0x19f573(0x293)]=_0x1b55b3,this[_0x19f573(0x219)]=_0x1cc450,this[_0x19f573(0x27f)]=_0x5f2e9e,this['_initSheetChange']();}['_initSheetChange'](){const _0x5d75d8=_0x5db5d0;this[_0x5d75d8(0x17d)](this['_sheetInterceptorService'][_0x5d75d8(0x361)]({'getMutations':_0x309934=>{const _0x8711b6=_0x5d75d8;if(_0x309934['id']===o[_0x8711b6(0x2fd)]['id']){let _0x14296e=(0x0,o[_0x8711b6(0x169)])(this[_0x8711b6(0x12c)],_0x309934[_0x8711b6(0x1a0)]);if(!_0x14296e)return{'redos':[],'undos':[]};let {unitId:_0x1300ba,subUnitId:_0x4fe70c}=_0x14296e,_0x2d31c6=this[_0x8711b6(0x219)][_0x8711b6(0x343)](_0x1300ba,_0x4fe70c),_0x341637=Object[_0x8711b6(0x3ae)](_0x2d31c6)[_0x8711b6(0x38e)](_0x5f4aaf=>_0x5f4aaf[_0x8711b6(0x3c1)]===a[_0x8711b6(0x3e6)]['DRAWING_SHAPE']);if(_0x341637[_0x8711b6(0x2fb)]===0x0)return{'redos':[],'undos':[]};let _0x4f396b=[],_0x23df5d=[];for(let _0x2a9091=0x0;_0x2a9091<_0x341637['length'];_0x2a9091++){let _0x6a92b2=_0x341637[_0x2a9091],_0x234fd4=this[_0x8711b6(0x27f)][_0x8711b6(0x11e)](_0x6a92b2[_0x8711b6(0x3bf)],_0x6a92b2[_0x8711b6(0x20a)],_0x6a92b2[_0x8711b6(0x3e3)]);_0x234fd4&&(_0x4f396b[_0x8711b6(0x1bd)]({'id':i[_0x8711b6(0x322)]['id'],'params':{'unitId':_0x1300ba,'subUnitId':_0x4fe70c,'shapeId':_0x6a92b2[_0x8711b6(0x3e3)]}}),_0x23df5d[_0x8711b6(0x1bd)]({'id':i['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x1300ba,'subUnitId':_0x4fe70c,'shapeId':_0x6a92b2['drawingId'],'shapeType':_0x234fd4[_0x8711b6(0x2fa)](),'shapeData':JSON[_0x8711b6(0x40c)](JSON[_0x8711b6(0x36a)](_0x234fd4[_0x8711b6(0x3bc)]()))}}));}return{'redos':_0x4f396b,'undos':_0x23df5d};}else{if(_0x309934['id']===o[_0x8711b6(0x2d2)]['id']){let {unitId:_0x7469e4,subUnitId:_0x4521f2,targetSubUnitId:_0x4f19f2,copyContext:_0x593388}=_0x309934['params'];if(!_0x7469e4||!_0x4521f2||!_0x4f19f2)return{'redos':[],'undos':[]};let _0x4052d6=this['_sheetDrawingService'][_0x8711b6(0x343)](_0x7469e4,_0x4521f2),_0x2fa47d=Object[_0x8711b6(0x3ae)](_0x4052d6)['filter'](_0x1cfb5c=>_0x1cfb5c[_0x8711b6(0x3c1)]===a['DrawingTypeEnum'][_0x8711b6(0x19d)]);if(_0x2fa47d[_0x8711b6(0x2fb)]===0x0)return{'redos':[],'undos':[]};let _0x54600e=gt(_0x593388,_0x2fa47d,{'unitId':_0x7469e4,'sourceSubUnitId':_0x4521f2,'targetSubUnitId':_0x4f19f2},_0x397ed4=>{const _0x9ea326=_0x8711b6;let _0x5ba11d=this[_0x9ea326(0x27f)][_0x9ea326(0x11e)](_0x397ed4['unitId'],_0x397ed4[_0x9ea326(0x20a)],_0x397ed4[_0x9ea326(0x3e3)]);if(_0x5ba11d)return{'shapeType':_0x5ba11d[_0x9ea326(0x2fa)](),'shapeData':JSON[_0x9ea326(0x40c)](JSON[_0x9ea326(0x36a)](_0x5ba11d[_0x9ea326(0x3bc)]()))};}),_0x97f60c=[],_0x289222=[];for(let {targetShapeId:_0x31a7e1,source:_0x1143ee}of _0x54600e)_0x97f60c['push']({'id':i[_0x8711b6(0x34b)]['id'],'params':{'unitId':_0x7469e4,'subUnitId':_0x4f19f2,'shapeId':_0x31a7e1,'shapeType':_0x1143ee[_0x8711b6(0x17f)],'shapeData':_0x1143ee[_0x8711b6(0x398)]}}),_0x289222[_0x8711b6(0x1bd)]({'id':i['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x7469e4,'subUnitId':_0x4f19f2,'shapeId':_0x31a7e1}});return{'redos':_0x97f60c,'undos':_0x289222};}}return{'redos':[],'undos':[]};}}));}};G=j([A(0x0,(0x0,a[_0x5db5d0(0x22f)])(a[_0x5db5d0(0x1c8)])),A(0x1,(0x0,a[_0x5db5d0(0x22f)])(o[_0x5db5d0(0x263)])),A(0x2,(0x0,a[_0x5db5d0(0x22f)])(m['ISheetDrawingService'])),A(0x3,(0x0,a[_0x5db5d0(0x22f)])(i[_0x5db5d0(0x1e0)]))],G);let K=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x344252,_0x203167,_0x10c88d,_0x3825f5,_0x15b87c,_0x2ab997){const _0xce577a=_0x5db5d0;super(),this[_0xce577a(0x1ad)]=_0x344252,this[_0xce577a(0x104)]=_0x203167,this[_0xce577a(0x3b1)]=_0x10c88d,this[_0xce577a(0x102)]=_0x3825f5,this[_0xce577a(0x38b)]=_0x15b87c,this['_sheetDrawingShapeRenderController']=_0x2ab997,E(this,_0xce577a(0x3e2),new Set()),this[_0xce577a(0x29e)]();}[_0x5db5d0(0x29e)](){this['_drawingAddListener'](),this['_commandExecutedListener'](),this['_shapeUpdateListener']();}[_0x5db5d0(0x261)](){const _0x30b65b=_0x5db5d0;this[_0x30b65b(0x17d)](this[_0x30b65b(0x3b1)]['add$']['subscribe'](_0xcce4f5=>{const _0x24581d=_0x30b65b;this[_0x24581d(0x16e)](_0xcce4f5);}));}[_0x5db5d0(0x1d0)](){const _0x2b3c50=_0x5db5d0;this[_0x2b3c50(0x17d)](this[_0x2b3c50(0x1ad)][_0x2b3c50(0x1aa)]((_0xdbea49,_0x38f0cb)=>{const _0xf55273=_0x2b3c50;if(_0xdbea49['id']===i['UpdateSheetsShapeDataMutation']['id']){let {unitId:_0x4d6411,subUnitId:_0x4233b4,shapeId:_0x4980b6}=_0xdbea49[_0xf55273(0x1a0)],_0x37e378=this['_getSceneAndTransformerByDrawingSearch'](_0x4d6411),_0x97f5d6=(0x0,s[_0xf55273(0x1f8)])({'unitId':_0x4d6411,'subUnitId':_0x4233b4,'drawingId':_0x4980b6}),_0x2849f9=_0x37e378==null?void 0x0:_0x37e378['scene'][_0xf55273(0x1d5)](_0x97f5d6);_0x2849f9&&(this[_0xf55273(0x2ec)][_0xf55273(0x101)](_0x2849f9),this[_0xf55273(0x2ec)][_0xf55273(0x1ce)](_0x2849f9,{'unitId':_0x4d6411,'subUnitId':_0x4233b4,'shapeId':_0x4980b6}),_0x2849f9[_0xf55273(0x1e9)](!0x0));return;}if(_0xdbea49['id']===i[_0xf55273(0x34b)]['id']){var _0x45b17e;let {unitId:_0x391156,subUnitId:_0x5cb063,shapeId:_0xeb4d7f}=_0xdbea49[_0xf55273(0x1a0)],_0xb7ec10=this['_getSceneAndTransformerByDrawingSearch'](_0x391156);if(_0xb7ec10==null)return;let {scene:_0xa11456}=_0xb7ec10,_0x24bb92=(0x0,s[_0xf55273(0x1f8)])({'unitId':_0x391156,'subUnitId':_0x5cb063,'drawingId':_0xeb4d7f}),_0x4b3d2b=_0xa11456[_0xf55273(0x1d5)](_0x24bb92);if(!((_0x45b17e=this[_0xf55273(0x104)][_0xf55273(0x2c4)](_0x391156))!=null&&_0x45b17e[_0xf55273(0x35a)](l[_0xf55273(0x364)])['getSkeleton'](_0x5cb063)))return!0x1;if(_0x4b3d2b)return;if(_0x38f0cb!=null&&_0x38f0cb[_0xf55273(0x33d)]){queueMicrotask(()=>{const _0x48aa8e=_0xf55273;this['_disposed']||this[_0x48aa8e(0x16e)]([{'unitId':_0x391156,'subUnitId':_0x5cb063,'drawingId':_0xeb4d7f}]);});return;}this[_0xf55273(0x16e)]([{'unitId':_0x391156,'subUnitId':_0x5cb063,'drawingId':_0xeb4d7f}]);}}));}['_shapeUpdateListener'](){const _0x386488=_0x5db5d0;this[_0x386488(0x17d)](this[_0x386488(0x3b1)][_0x386488(0xe7)][_0x386488(0x426)](_0x12cb2b=>{const _0x240f41=_0x386488;_0x12cb2b[_0x240f41(0xe5)](_0x2110a9=>{const _0x429ae8=_0x240f41;let {unitId:_0x3b68ae,subUnitId:_0x410c30,drawingId:_0x4c039b}=_0x2110a9,_0x26db19=this[_0x429ae8(0x3b1)][_0x429ae8(0x15a)](_0x2110a9);if(_0x26db19==null)return;let {transform:_0xe966cb,drawingType:_0x39ab4e,srcRect:_0x166b5a,prstGeom:_0x471661}=_0x26db19;if(_0x39ab4e!==a[_0x429ae8(0x3e6)][_0x429ae8(0x19d)])return;let _0x75123c=this[_0x429ae8(0x21d)](_0x3b68ae);if(_0x75123c==null)return;let {scene:_0x53f230,transformer:_0x5a8456}=_0x75123c;if(_0xe966cb==null)return!0x0;let _0x2f6339=(0x0,s[_0x429ae8(0x1f8)])({'unitId':_0x3b68ae,'subUnitId':_0x410c30,'drawingId':_0x4c039b}),_0x392f73=_0x53f230[_0x429ae8(0x1d5)](_0x2f6339);if(_0x392f73==null)return!0x0;_0x392f73[_0x429ae8(0x30d)](_0x166b5a),_0x392f73[_0x429ae8(0x2d4)](_0x471661);});}));}[_0x5db5d0(0x16e)](_0x2472cd){const _0x302e83=_0x5db5d0;for(let _0x3dd730 of _0x2472cd){var _0x3193d8;let {unitId:_0x91a924,subUnitId:_0x165142,drawingId:_0x5b78e9}=_0x3dd730,_0x4a5f6f=this[_0x302e83(0x21d)](_0x91a924),_0x26e4c0=(_0x3193d8=(0x0,d[_0x302e83(0x202)])(this[_0x302e83(0x102)],_0x91a924))==null?void 0x0:_0x3193d8[_0x302e83(0x20a)];if(_0x4a5f6f==null||_0x26e4c0!==_0x165142)return;let _0x554e57=(0x0,s[_0x302e83(0x1f8)])({'unitId':_0x91a924,'subUnitId':_0x165142,'drawingId':_0x5b78e9});if(this[_0x302e83(0x3e2)][_0x302e83(0x18e)](_0x554e57)||_0x4a5f6f['scene']['getObjectIncludeInGroup'](_0x554e57)!=null)return;let _0x5b9acf=this[_0x302e83(0x3b1)]['getDrawingByParam'](_0x3dd730);if(_0x5b9acf==null||_0x5b9acf[_0x302e83(0x3c1)]!==a[_0x302e83(0x3e6)][_0x302e83(0x19d)])return;if((0x0,n['isConnectorShape'])((_0x5b9acf[_0x302e83(0x1eb)]||{})[_0x302e83(0x17f)])){let _0x1b4c45=_0x5b9acf['transform'];_0x1b4c45&&(_0x5b9acf[_0x302e83(0x32a)]={..._0x1b4c45,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this['_insertingShapeKeys'][_0x302e83(0x381)](_0x554e57);try{this[_0x302e83(0x2ec)][_0x302e83(0x308)](_0x5b9acf,_0x4a5f6f[_0x302e83(0x2e7)]);}finally{this[_0x302e83(0x3e2)]['delete'](_0x554e57);}queueMicrotask(()=>{const _0x2411dd=_0x302e83;if(this[_0x2411dd(0x383)])return;let _0x392fea=(0x0,s[_0x2411dd(0x1f8)])(_0x3dd730);if(!_0x4a5f6f['scene'][_0x2411dd(0x1d5)](_0x392fea))return;let _0x1548fb=this[_0x2411dd(0x3b1)][_0x2411dd(0x15a)](_0x3dd730);_0x1548fb&&this[_0x2411dd(0x3b1)][_0x2411dd(0x131)]([_0x1548fb]);});}}['_getSceneAndTransformerByDrawingSearch'](_0x2fecb8){const _0x4e455b=_0x5db5d0;if(_0x2fecb8==null)return;let _0x2c2a2a=this['_renderManagerService']['getRenderUnitById'](_0x2fecb8),_0x57ce15=_0x2c2a2a==null?void 0x0:_0x2c2a2a[_0x4e455b(0x2e7)];return _0x57ce15==null?null:{'scene':_0x57ce15,'transformer':_0x57ce15['getTransformerByCreate']()};}};K=j([A(0x0,a['ICommandService']),A(0x1,c[_0x5db5d0(0x226)]),A(0x2,s[_0x5db5d0(0x10d)]),A(0x3,a[_0x5db5d0(0x1c8)]),A(0x4,(0x0,a['Inject'])(d[_0x5db5d0(0x231)])),A(0x5,(0x0,a[_0x5db5d0(0x22f)])(M))],K);const _t={'normal':{'fill':n['ShapeDefaultConfig'][_0x5db5d0(0x33c)],'stroke':n[_0x5db5d0(0x2b4)][_0x5db5d0(0x1fe)],'strokeWidth':n[_0x5db5d0(0x2b4)]['cxnPointStrokeWidth']},'highlighted':{'fill':_0x5db5d0(0x1bf),'stroke':_0x5db5d0(0x1bb),'strokeWidth':0x2}};var vt=class extends c['Shape']{constructor(_0xed9782,_0x2a9b49){const _0x24b09c=_0x5db5d0;super(_0xed9782,_0x2a9b49),E(this,'_targetShapeId',''),E(this,_0x24b09c(0x270),-0x1),E(this,_0x24b09c(0x3d2),''),E(this,_0x24b09c(0x23c),''),E(this,_0x24b09c(0x37d),!0x1),_0x2a9b49&&this[_0x24b09c(0x3a1)](_0x2a9b49);}['getConnectionInfo'](){const _0x572f3f=_0x5db5d0;return{'unitId':this[_0x572f3f(0x3d2)],'subUnitId':this[_0x572f3f(0x23c)],'shapeId':this['_targetShapeId'],'cxnIndex':this[_0x572f3f(0x270)]};}[_0x5db5d0(0xed)](_0x5cecd2){const _0x37a64f=_0x5db5d0;this['_isHighlighted']!==_0x5cecd2&&(this[_0x37a64f(0x37d)]=_0x5cecd2,this[_0x37a64f(0x1e9)](!0x0));}[_0x5db5d0(0x2ce)](){return this['_isHighlighted'];}['setShapeProps'](_0xeb10d8){const _0x536d00=_0x5db5d0;_0xeb10d8[_0x536d00(0x26f)]!==void 0x0&&(this['_targetShapeId']=_0xeb10d8['targetShapeId']),_0xeb10d8['cxnIndex']!==void 0x0&&(this[_0x536d00(0x270)]=_0xeb10d8[_0x536d00(0xfe)]),_0xeb10d8[_0x536d00(0x3bf)]!==void 0x0&&(this['_unitId']=_0xeb10d8[_0x536d00(0x3bf)]),_0xeb10d8['subUnitId']!==void 0x0&&(this[_0x536d00(0x23c)]=_0xeb10d8[_0x536d00(0x20a)]),_0xeb10d8['isHighlighted']!==void 0x0&&(this[_0x536d00(0x37d)]=_0xeb10d8['isHighlighted']),this['transformByState']({'width':_0xeb10d8[_0x536d00(0x2ad)]??n[_0x536d00(0x2b4)][_0x536d00(0xf1)]*0x2,'height':_0xeb10d8[_0x536d00(0x3c5)]??n[_0x536d00(0x2b4)][_0x536d00(0xf1)]*0x2});}[_0x5db5d0(0x124)](_0x3b21d2){const _0x5ead54=_0x5db5d0;let _0x2df0f8=this['_isHighlighted']?_t[_0x5ead54(0x1c6)]:_t[_0x5ead54(0x2f2)];c[_0x5ead54(0x360)][_0x5ead54(0x2d7)](_0x3b21d2,{'radius':n[_0x5ead54(0x2b4)]['cxnPointRadius'],'fill':_0x2df0f8[_0x5ead54(0x31b)],'stroke':_0x2df0f8[_0x5ead54(0x2b0)],'strokeWidth':_0x2df0f8[_0x5ead54(0x2cd)],'evented':!0x0});}};let q=class extends a['Disposable']{constructor(_0x4cb6f7,_0x414cb0,_0x14e858,_0x1b4489){const _0x941717=_0x5db5d0;super(),this[_0x941717(0x2ea)]=_0x4cb6f7,this[_0x941717(0x104)]=_0x414cb0,this['_drawingManagerService']=_0x14e858,this[_0x941717(0x27f)]=_0x1b4489,E(this,_0x941717(0xea),[]),E(this,'_activeTargetShapeId',null),E(this,_0x941717(0x365),-0x1),E(this,_0x941717(0x16a),null),E(this,_0x941717(0x3d2),''),E(this,_0x941717(0x23c),''),E(this,_0x941717(0x3a8),null);}[_0x5db5d0(0x1b4)](_0x385861,_0x168ee9,_0xf5aed1,_0x22ae72){const _0x147451=_0x5db5d0;this[_0x147451(0x16a)]=_0x385861,this[_0x147451(0x3d2)]=_0x168ee9,this[_0x147451(0x23c)]=_0xf5aed1,this[_0x147451(0x3a8)]=_0x22ae72;}['updateConnectionDetection'](_0x3604f2){const _0x1571fd=_0x5db5d0;if(!this['_currentScene'])return null;let _0x8fe3da=this['_findShapeAtPoint'](_0x3604f2);return _0x8fe3da?(this[_0x1571fd(0xd9)]!==_0x8fe3da['shapeId']&&(this[_0x1571fd(0x2ed)](),this[_0x1571fd(0x26e)](_0x8fe3da[_0x1571fd(0x340)],_0x8fe3da[_0x1571fd(0x110)]),this[_0x1571fd(0xd9)]=_0x8fe3da[_0x1571fd(0x340)]),this[_0x1571fd(0x2f8)](_0x3604f2)):(this[_0x1571fd(0xd9)]!==null&&(this[_0x1571fd(0x2ed)](),this[_0x1571fd(0xd9)]=null),null);}[_0x5db5d0(0x355)](){const _0x3382c2=_0x5db5d0;this[_0x3382c2(0x2ed)](),this[_0x3382c2(0x16a)]=null,this[_0x3382c2(0xd9)]=null,this[_0x3382c2(0x365)]=-0x1,this[_0x3382c2(0x3a8)]=null;}[_0x5db5d0(0x274)](){const _0x1af925=_0x5db5d0;return this[_0x1af925(0xd9)]===null||this[_0x1af925(0x365)]<0x0?null:{'shapeId':this[_0x1af925(0xd9)],'cxnIndex':this[_0x1af925(0x365)]};}[_0x5db5d0(0x3f4)](_0x1f5207){const _0x175ad0=_0x5db5d0;let _0x262dd5=this['_drawingManagerService']['getDrawingData'](this[_0x175ad0(0x3d2)],this[_0x175ad0(0x23c)]);for(let _0x533e8c of Object[_0x175ad0(0x29c)](_0x262dd5)){if(_0x533e8c===this[_0x175ad0(0x3a8)]||_0x262dd5[_0x533e8c][_0x175ad0(0x3c1)]!==a['DrawingTypeEnum'][_0x175ad0(0x19d)])continue;let _0x5abdc5=this[_0x175ad0(0x27f)][_0x175ad0(0x11e)](this[_0x175ad0(0x3d2)],this['_subUnitId'],_0x533e8c);if(!_0x5abdc5||(0x0,n[_0x175ad0(0x2b3)])(_0x5abdc5[_0x175ad0(0x2fa)]())||_0x5abdc5[_0x175ad0(0x186)]()[_0x175ad0(0x2fb)]===0x0||!this[_0x175ad0(0x16a)])continue;let _0x5dac57=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':this['_unitId'],'subUnitId':this[_0x175ad0(0x23c)],'drawingId':_0x533e8c}),_0x30515=this['_currentScene'][_0x175ad0(0x1d5)](_0x5dac57);if(!_0x30515)continue;let {left:_0x40fbd0,top:_0x57f7bb,width:_0x45883e,height:_0xa0854f}=_0x30515['getRealBound'](),_0x1e40df=_0x40fbd0+_0x45883e/0x2,_0x2be0c2=_0x57f7bb+_0xa0854f/0x2,_0x184e51=_0x30515[_0x175ad0(0x32a)][_0x175ad0(0x28c)](),_0x8454b6=new c[(_0x175ad0(0x1b2))]([_0x184e51[0x0],_0x184e51[0x1],_0x184e51[0x2],_0x184e51[0x3],_0x1e40df,_0x2be0c2]),_0x3b58c7=_0x30515['getParent'](),_0x3594e7=(_0x30515['isInGroup']&&(_0x3b58c7==null?void 0x0:_0x3b58c7[_0x175ad0(0x171)])===c[_0x175ad0(0x3b5)][_0x175ad0(0x2e4)]?_0x3b58c7[_0x175ad0(0x17c)][_0x175ad0(0x2e8)](_0x8454b6):_0x8454b6)[_0x175ad0(0x1e2)]()[_0x175ad0(0x320)](_0x1f5207),_0x26f4f5=_0x45883e/0x2,_0x5407bd=_0xa0854f/0x2;if(_0x3594e7['x']>=-_0x26f4f5-0x5&&_0x3594e7['x']<=_0x26f4f5+0x5&&_0x3594e7['y']>=-_0x5407bd-0x5&&_0x3594e7['y']<=_0x5407bd+0x5)return{'shapeId':_0x533e8c,'shapeModel':_0x5abdc5};}return null;}[_0x5db5d0(0x26e)](_0x51f646,_0x3cb5a2){const _0x2c9220=_0x5db5d0;if(!this['_currentScene'])return;let _0x2dfe7d=(0x0,s[_0x2c9220(0x1f8)])({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':_0x51f646}),_0x281763=this['_currentScene'][_0x2c9220(0x1d5)](_0x2dfe7d);if(!_0x281763)return;let {left:_0x551c5a,top:_0x54f4c1,width:_0x6ef823,height:_0x2d67e6}=_0x281763[_0x2c9220(0x112)](),_0x258810=_0x551c5a+_0x6ef823/0x2,_0x5174b3=_0x54f4c1+_0x2d67e6/0x2,_0x4adbec=_0x281763[_0x2c9220(0x32a)][_0x2c9220(0x28c)](),_0x355203=new c['Transform']([_0x4adbec[0x0],_0x4adbec[0x1],_0x4adbec[0x2],_0x4adbec[0x3],_0x258810,_0x5174b3]),_0x1966d0=_0x281763[_0x2c9220(0x20e)](),_0x17e4c8=_0x281763[_0x2c9220(0x289)]&&(_0x1966d0==null?void 0x0:_0x1966d0[_0x2c9220(0x171)])===c[_0x2c9220(0x3b5)]['GROUP']?_0x1966d0[_0x2c9220(0x17c)][_0x2c9220(0x2e8)](_0x355203):_0x355203;_0x3cb5a2[_0x2c9220(0x141)]({'width':_0x6ef823,'height':_0x2d67e6});let _0xe17354=_0x3cb5a2[_0x2c9220(0x186)]();for(let _0x356827 of _0xe17354){let _0x5cf946=_0x356827['x']-_0x6ef823/0x2,_0x5f1734=_0x356827['y']-_0x2d67e6/0x2,_0x53cc8a=_0x17e4c8[_0x2c9220(0x320)]({'x':_0x5cf946,'y':_0x5f1734}),_0x45c77c=_0x53cc8a['x'],_0x360fd7=_0x53cc8a['y'],_0x46365b=new vt(_0x2c9220(0x278)+_0x51f646+'-'+_0x356827[_0x2c9220(0x3b0)],{'left':_0x45c77c-n[_0x2c9220(0x2b4)][_0x2c9220(0xf1)],'top':_0x360fd7-n[_0x2c9220(0x2b4)][_0x2c9220(0xf1)],'targetShapeId':_0x51f646,'cxnIndex':_0x356827['index'],'unitId':this[_0x2c9220(0x3d2)],'subUnitId':this['_subUnitId'],'width':n[_0x2c9220(0x2b4)]['cxnPointRadius']*0x2,'height':n[_0x2c9220(0x2b4)][_0x2c9220(0xf1)]*0x2,'zIndex':c[_0x2c9220(0x3a9)]+0x2,'evented':!0x1});this[_0x2c9220(0xea)][_0x2c9220(0x1bd)](_0x46365b),this[_0x2c9220(0x16a)][_0x2c9220(0x251)](_0x46365b,c[_0x2c9220(0x3a9)]+0x2);}}[_0x5db5d0(0x2f8)](_0x4e56e2){const _0x3eac07=_0x5db5d0;let _0x1679d1=null,_0x7d2d22=0x1/0x0,_0x355c79=null;for(let _0x416373 of this['_connectionSiteObjects']){let _0x145192=_0x416373[_0x3eac07(0x42e)]+n[_0x3eac07(0x2b4)][_0x3eac07(0xf1)],_0x43c3d5=_0x416373['top']+n[_0x3eac07(0x2b4)]['cxnPointRadius'],_0x3ba901=_0x4e56e2['x']-_0x145192,_0x4e5add=_0x4e56e2['y']-_0x43c3d5,_0x467d20=Math[_0x3eac07(0x1b1)](_0x3ba901*_0x3ba901+_0x4e5add*_0x4e5add);_0x467d20<_0x7d2d22&&(_0x7d2d22=_0x467d20,_0x1679d1=_0x416373,_0x355c79={'x':_0x145192,'y':_0x43c3d5});}let _0x35583f=_0x7d2d22<=0xa&&_0x1679d1?_0x1679d1[_0x3eac07(0x2a4)]()[_0x3eac07(0xfe)]:-0x1;if(_0x35583f!==this[_0x3eac07(0x365)]){for(let _0x1c2bbb of this[_0x3eac07(0xea)]){let _0x38fa60=_0x1c2bbb[_0x3eac07(0x2a4)]();_0x1c2bbb['setHighlighted'](_0x38fa60[_0x3eac07(0xfe)]===_0x35583f);}this[_0x3eac07(0x365)]=_0x35583f;}if(_0x7d2d22<=0xa&&_0x1679d1&&_0x355c79){let _0xbfe3ef=_0x1679d1[_0x3eac07(0x2a4)](),_0xc3f12e=this[_0x3eac07(0x318)](_0xbfe3ef['shapeId'],_0xbfe3ef['cxnIndex']);return{'shapeId':_0xbfe3ef[_0x3eac07(0x340)],'cxnIndex':_0xbfe3ef['cxnIndex'],'unitId':_0xbfe3ef['unitId'],'subUnitId':_0xbfe3ef['subUnitId'],'worldPoint':_0x355c79,'angle':_0xc3f12e};}return null;}['_getConnectionSiteAngle'](_0x945b2a,_0x5aef67){const _0x1ec1c1=_0x5db5d0;let _0x112067=this[_0x1ec1c1(0x27f)][_0x1ec1c1(0x11e)](this['_unitId'],this[_0x1ec1c1(0x23c)],_0x945b2a);if(!_0x112067)return 0x0;let _0x5a61d6=this[_0x1ec1c1(0x3b1)][_0x1ec1c1(0x15a)]({'unitId':this[_0x1ec1c1(0x3d2)],'subUnitId':this[_0x1ec1c1(0x23c)],'drawingId':_0x945b2a});if(!(_0x5a61d6!=null&&_0x5a61d6[_0x1ec1c1(0x32a)]))return 0x0;let {width:_0x1252ad=0x0,height:_0x3d71ad=0x0,flipX:_0x5dc7ff=!0x1,flipY:_0x18c9db=!0x1}=_0x5a61d6[_0x1ec1c1(0x32a)];_0x112067[_0x1ec1c1(0x141)]({'width':_0x1252ad,'height':_0x3d71ad});let _0x5a91a5=_0x112067[_0x1ec1c1(0x186)]()['find'](_0x3f1312=>_0x3f1312[_0x1ec1c1(0x3b0)]===_0x5aef67);if(!_0x5a91a5)return 0x0;let _0x56affa=_0x5a91a5[_0x1ec1c1(0x3c7)]/0xea60;return _0x5dc7ff&&(_0x56affa=0xb4-_0x56affa),_0x18c9db&&(_0x56affa=-_0x56affa),_0x56affa=(_0x56affa%0x168+0x168)%0x168,_0x56affa;}[_0x5db5d0(0x2ed)](){const _0x187f19=_0x5db5d0;for(let _0x39d87d of this[_0x187f19(0xea)])_0x39d87d[_0x187f19(0x1c4)]();this[_0x187f19(0xea)]=[],this['_highlightedSiteIndex']=-0x1;}['dispose'](){const _0x55708b=_0x5db5d0;this['_clearConnectionSites'](),super[_0x55708b(0x1c4)]();}};q=j([A(0x1,(0x0,a['Inject'])(c[_0x5db5d0(0x226)])),A(0x2,(0x0,a[_0x5db5d0(0x22f)])(s[_0x5db5d0(0x10d)])),A(0x3,(0x0,a[_0x5db5d0(0x22f)])(i[_0x5db5d0(0x1e0)]))],q);let J=class extends a['Disposable']{constructor(_0x45758c,_0x4c21f6,_0x2ad2ef,_0x2c34a9,_0x3733c3){const _0x4395a3=_0x5db5d0;super(),this[_0x4395a3(0x3d9)]=_0x45758c,this['_sheetClipboardService']=_0x4c21f6,this[_0x4395a3(0x219)]=_0x2ad2ef,this['_shapeService']=_0x2c34a9,this[_0x4395a3(0x2c2)]=_0x3733c3,E(this,_0x4395a3(0xfb),void 0x0),this['_initCopyPaste'](),this[_0x4395a3(0x31c)]();}get[_0x5db5d0(0x357)](){const _0x3f5ece=_0x5db5d0;return this[_0x3f5ece(0x219)][_0x3f5ece(0x3fc)]();}['_registerGroupFeaturePasteHook'](){const _0x3547da=_0x5db5d0;this[_0x3547da(0x2c2)][_0x3547da(0x3fd)](({fromUnitId:_0x570e2c,fromSubUnitId:_0x25ec4b,toUnitId:_0x5342c2,toSubUnitId:_0x13f1d8,idMap:_0x369d24})=>{const _0x56e4c3=_0x3547da;let _0x24f95b=[],_0x1d4e28=[];for(let [_0x5a9799,_0x1a29ec]of _0x369d24[_0x56e4c3(0x2d0)]()){let _0x539d4e=this[_0x56e4c3(0x1f4)][_0x56e4c3(0x11e)](_0x570e2c,_0x25ec4b,_0x5a9799);if(!_0x539d4e)continue;let _0x3fcebf=_0x539d4e[_0x56e4c3(0x2fa)](),_0x11a4b3=JSON[_0x56e4c3(0x40c)](JSON[_0x56e4c3(0x36a)](_0x539d4e[_0x56e4c3(0x3bc)]()));if(_0x11a4b3[_0x56e4c3(0x42b)]){var _0x2142e1,_0x559885;let _0x5da6de=(_0x2142e1=_0x11a4b3[_0x56e4c3(0x42b)][_0x56e4c3(0x10f)])==null?void 0x0:_0x2142e1[_0x56e4c3(0x340)],_0x50a0b5=(_0x559885=_0x11a4b3[_0x56e4c3(0x42b)]['to'])==null?void 0x0:_0x559885[_0x56e4c3(0x340)],_0x1d7059=!_0x5da6de||_0x369d24[_0x56e4c3(0x18e)](_0x5da6de),_0x32b923=!_0x50a0b5||_0x369d24['has'](_0x50a0b5);_0x1d7059&&_0x5da6de&&_0x11a4b3[_0x56e4c3(0x42b)][_0x56e4c3(0x10f)]?_0x11a4b3[_0x56e4c3(0x42b)][_0x56e4c3(0x10f)]={..._0x11a4b3[_0x56e4c3(0x42b)][_0x56e4c3(0x10f)],'shapeId':_0x369d24[_0x56e4c3(0x3b6)](_0x5da6de)}:_0x11a4b3[_0x56e4c3(0x42b)][_0x56e4c3(0x10f)]=void 0x0,_0x32b923&&_0x50a0b5&&_0x11a4b3[_0x56e4c3(0x42b)]['to']?_0x11a4b3[_0x56e4c3(0x42b)]['to']={..._0x11a4b3[_0x56e4c3(0x42b)]['to'],'shapeId':_0x369d24[_0x56e4c3(0x3b6)](_0x50a0b5)}:_0x11a4b3['relation']['to']=void 0x0;}_0x24f95b['push']({'id':i['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x5342c2,'subUnitId':_0x13f1d8,'shapeId':_0x1a29ec,'shapeType':_0x3fcebf,'shapeData':_0x11a4b3}}),_0x1d4e28[_0x56e4c3(0x1bd)]({'id':i[_0x56e4c3(0x322)]['id'],'params':{'unitId':_0x5342c2,'subUnitId':_0x13f1d8,'shapeId':_0x1a29ec}});}return{'redos':_0x24f95b,'undos':_0x1d4e28};});}[_0x5db5d0(0x12f)](){const _0x3e6ca8=_0x5db5d0;this[_0x3e6ca8(0x17d)](this[_0x3e6ca8(0x2f0)][_0x3e6ca8(0x38c)]({'id':'sheets-shape-ui','onBeforeCopyFocusedObject':(_0x3e456b,_0x268c27,_0x2fb0bf)=>{const _0x466b91=_0x3e6ca8;this[_0x466b91(0xfb)]=null;let _0x36c8e=this[_0x466b91(0x357)][_0x466b91(0x38e)](_0x21f694=>_0x21f694[_0x466b91(0x3c1)]===a[_0x466b91(0x3e6)]['DRAWING_SHAPE']);return _0x36c8e[_0x466b91(0x2fb)]===0x0?!0x1:(this[_0x466b91(0xfb)]={'unitId':_0x3e456b,'subUnitId':_0x268c27,'copyType':_0x2fb0bf,'drawings':_0x36c8e},!0x0);},'onBeforeCopy':(_0x25d09e,_0xe7ce0b,_0x2be9c6,_0x21f137)=>{const _0x463ab4=_0x3e6ca8;this['_copyInfo']=null,this[_0x463ab4(0x405)](_0x25d09e,_0xe7ce0b,_0x2be9c6,_0x21f137);},'onPasteCells':(_0x421dfa,_0x165bd6,_0x1533f2,_0x595f4c)=>{const _0x381b54=_0x3e6ca8;if(!_0x595f4c['copyId']||!_0x421dfa||!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x4c3ef6}=_0x595f4c;return _0x4c3ef6===l[_0x381b54(0x41b)][_0x381b54(0x3d5)]?this[_0x381b54(0x1f7)](_0x165bd6,this['_copyInfo']['copyType']===l['COPY_TYPE'][_0x381b54(0x1e1)]):{'redos':[],'undos':[]};}}));}['_createCopyInfoByRange'](_0x58473f,_0x5e957b,_0x5d1c43,_0x5d7444){const _0x2ac386=_0x5db5d0;let _0x4443bd=this[_0x2ac386(0x3d9)][_0x2ac386(0x23a)](_0x58473f,_0x5e957b);if(!_0x4443bd)return;let _0x1ac8dd=(0x0,o[_0x2ac386(0x22b)])(_0x4443bd,_0x5d1c43);if(!_0x1ac8dd)return;let {startX:_0x3762ec,endX:_0x34648d,startY:_0x2f8193,endY:_0x5965ae}=_0x1ac8dd,_0x1b1fb2=this['_sheetDrawingService'][_0x2ac386(0x343)](_0x58473f,_0x5e957b),_0x350254=[];for(let [_0x1bd966,_0x19717b]of Object[_0x2ac386(0x2d0)](_0x1b1fb2)){if(_0x19717b[_0x2ac386(0x3c1)]!==a[_0x2ac386(0x3e6)][_0x2ac386(0x19d)])continue;let {transform:_0x22d9c9}=_0x19717b;if(!_0x22d9c9)continue;let {left:_0x5e33ab=0x0,top:_0x212f92=0x0,width:_0x31b7e3=0x0,height:_0x354525=0x0}=_0x22d9c9;_0x3762ec<=_0x5e33ab&&_0x34648d>=_0x5e33ab+_0x31b7e3&&_0x2f8193<=_0x212f92&&_0x5965ae>=_0x212f92+_0x354525&&_0x350254[_0x2ac386(0x1bd)](_0x19717b);}_0x350254[_0x2ac386(0x2fb)]>0x0&&(this[_0x2ac386(0xfb)]={'unitId':_0x58473f,'subUnitId':_0x5e957b,'copyType':_0x5d7444,'copyRange':_0x5d1c43,'drawings':_0x350254});}[_0x5db5d0(0x1f7)](_0x56094b,_0x24b79b){const _0x1d1201=_0x5db5d0;let {unitId:_0xf59696,subUnitId:_0x56aea0,range:_0x58e3af}=_0x56094b,_0x592e97=this[_0x1d1201(0x3d9)][_0x1d1201(0x23a)](_0xf59696,_0x56aea0);if(!_0x592e97)return{'redos':[],'undos':[]};let _0x350f06=(0x0,o['discreteRangeToRange'])(_0x58e3af),{unitId:_0x3bb60e,subUnitId:_0x33b757,copyRange:_0x18ea96,drawings:_0x41d956}=this[_0x1d1201(0xfb)],_0x238115=this[_0x1d1201(0x3d9)][_0x1d1201(0x23a)](_0x3bb60e,_0x33b757);if(!_0x238115)return{'redos':[],'undos':[]};let _0x401bb1;if(!_0x18ea96){let _0x1e3605=0x1/0x0,_0x1078fe=0x1/0x0;for(let _0x14fe45 of _0x41d956){let {left:_0x1de61a=0x0,top:_0x4911d8=0x0}=_0x14fe45[_0x1d1201(0x32a)]??{};_0x1de61a<_0x1e3605&&(_0x1e3605=_0x1de61a),_0x4911d8<_0x1078fe&&(_0x1078fe=_0x4911d8);}_0x1e3605!==0x1/0x0&&_0x1078fe!==0x1/0x0&&(_0x401bb1={'left':_0x1e3605,'top':_0x1078fe});}let _0x18041a=new Map();if(!_0x24b79b){for(let _0x4f613d of _0x41d956)_0x18041a[_0x1d1201(0x2d9)](_0x4f613d['drawingId'],(0x0,a[_0x1d1201(0x356)])());}let _0x52281f=[],_0x472ccf=[];for(let _0x37ce5b of _0x41d956){let {drawingId:_0x1e204b,transform:_0x4d218a,sheetTransform:_0x1fa9f6}=_0x37ce5b;if(!_0x4d218a||!_0x1fa9f6)continue;let _0x13adfb=this[_0x1d1201(0x32b)]({'transform':_0x4d218a,'sheetTransform':_0x1fa9f6},{'skeleton':_0x238115,'range':_0x18ea96},{'skeleton':_0x592e97,'range':_0x350f06},_0x401bb1);if(_0x24b79b){let {redos:_0x355e7f,undos:_0x3bf1c2}=this[_0x1d1201(0x22d)]({'fromUnitId':_0x3bb60e,'fromSubUnitId':_0x33b757,'toUnitId':_0xf59696,'toSubUnitId':_0x56aea0,'drawing':_0x37ce5b,'newTransforms':_0x13adfb});_0x52281f['push'](..._0x355e7f),_0x472ccf[_0x1d1201(0x1bd)](..._0x3bf1c2);continue;}let {redos:_0x5f5b65,undos:_0x39d7e6}=this[_0x1d1201(0x162)]({'toUnitId':_0xf59696,'toSubUnitId':_0x56aea0,'drawing':_0x37ce5b,'newTransforms':_0x13adfb,'newDrawingId':_0x18041a[_0x1d1201(0x3b6)](_0x1e204b),'idMap':_0x18041a});_0x52281f[_0x1d1201(0x1bd)](..._0x5f5b65),_0x472ccf[_0x1d1201(0x1bd)](..._0x39d7e6);}return{'redos':_0x52281f,'undos':_0x472ccf};}[_0x5db5d0(0x22d)](_0x4bcf38){const _0x1f4543=_0x5db5d0;let {fromUnitId:_0x382dc5,fromSubUnitId:_0x463736,toUnitId:_0x23acfc,toSubUnitId:_0x1a9d43,drawing:_0x389505,newTransforms:_0x4dc81a}=_0x4bcf38,_0x3875bc={..._0x389505,'unitId':_0x23acfc,'subUnitId':_0x1a9d43,'transform':_0x4dc81a['transform'],'sheetTransform':_0x4dc81a[_0x1f4543(0x194)]};if(_0x23acfc===_0x382dc5&&_0x1a9d43===_0x463736){let {redo:_0x1d23d2,undo:_0x50e088,objects:_0x2a27d2}=this[_0x1f4543(0x219)]['getBatchUpdateOp']([_0x3875bc]);return{'redos':[{'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x23acfc,'subUnitId':_0x1a9d43,'type':m['DrawingApplyType'][_0x1f4543(0x1a8)],'op':_0x1d23d2,'objects':_0x2a27d2}}],'undos':[{'id':m[_0x1f4543(0x15d)]['id'],'params':{'unitId':_0x23acfc,'subUnitId':_0x1a9d43,'type':m[_0x1f4543(0x324)][_0x1f4543(0x1a8)],'op':_0x50e088,'objects':_0x2a27d2}}]};}else{let _0x56266c=this['_sheetDrawingService'][_0x1f4543(0x2f9)]([_0x389505]),_0x2f1f05=this[_0x1f4543(0x219)][_0x1f4543(0x216)]([_0x3875bc]),_0x151cb3=this['_shapeService']['getShapeModel'](_0x389505[_0x1f4543(0x3bf)],_0x389505[_0x1f4543(0x20a)],_0x389505[_0x1f4543(0x3e3)]);if(!_0x151cb3)return{'redos':[],'undos':[]};let _0x2f72b3=_0x151cb3['getShapeType'](),_0xbd575e=JSON[_0x1f4543(0x40c)](JSON[_0x1f4543(0x36a)](_0x151cb3['getShapeData']()));return{'redos':[{'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x382dc5,'subUnitId':_0x463736,'type':m['DrawingApplyType'][_0x1f4543(0x337)],'op':_0x56266c['redo'],'objects':_0x56266c[_0x1f4543(0xdb)]}},{'id':i[_0x1f4543(0x322)]['id'],'params':{'unitId':_0x382dc5,'subUnitId':_0x463736,'shapeId':_0x389505[_0x1f4543(0x3e3)]}},{'id':m[_0x1f4543(0x15d)]['id'],'params':{'unitId':_0x23acfc,'subUnitId':_0x1a9d43,'type':m['DrawingApplyType']['INSERT'],'op':_0x2f1f05[_0x1f4543(0x242)],'objects':_0x2f1f05[_0x1f4543(0xdb)]}},{'id':i[_0x1f4543(0x34b)]['id'],'params':{'unitId':_0x23acfc,'subUnitId':_0x1a9d43,'shapeId':_0x389505['drawingId'],'shapeType':_0x2f72b3,'shapeData':_0xbd575e}}],'undos':[{'id':m[_0x1f4543(0x15d)]['id'],'params':{'unitId':_0x382dc5,'subUnitId':_0x463736,'type':m['DrawingApplyType'][_0x1f4543(0x22c)],'op':_0x56266c[_0x1f4543(0x10e)],'objects':_0x56266c[_0x1f4543(0xdb)]}},{'id':i['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x382dc5,'subUnitId':_0x463736,'shapeId':_0x389505[_0x1f4543(0x3e3)],'shapeType':_0x2f72b3,'shapeData':_0xbd575e}},{'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x23acfc,'subUnitId':_0x1a9d43,'type':m[_0x1f4543(0x324)][_0x1f4543(0x337)],'op':_0x2f1f05['undo'],'objects':_0x2f1f05[_0x1f4543(0xdb)]}},{'id':i[_0x1f4543(0x322)]['id'],'params':{'unitId':_0x23acfc,'subUnitId':_0x1a9d43,'shapeId':_0x389505[_0x1f4543(0x3e3)]}}]};}}['_generateCopyPasteMutations'](_0x3ac089){const _0x4f01c5=_0x5db5d0;let {toUnitId:_0x5c93aa,toSubUnitId:_0x157c62,drawing:_0xffc5a8,newTransforms:_0xd9aed2,newDrawingId:_0x215aea,idMap:_0x50a7f8}=_0x3ac089,_0xf492d0={..._0xffc5a8,'unitId':_0x5c93aa,'subUnitId':_0x157c62,'drawingId':_0x215aea,'transform':_0xd9aed2['transform'],'sheetTransform':_0xd9aed2['sheetTransform']},{redo:_0x1909bb,undo:_0x33d481,objects:_0x1922de}=this[_0x4f01c5(0x219)][_0x4f01c5(0x216)]([_0xf492d0]),_0x50810d=this[_0x4f01c5(0x1f4)][_0x4f01c5(0x11e)](_0xffc5a8[_0x4f01c5(0x3bf)],_0xffc5a8[_0x4f01c5(0x20a)],_0xffc5a8[_0x4f01c5(0x3e3)]);if(!_0x50810d)return{'redos':[],'undos':[]};let _0x2a2ca0=_0x50810d[_0x4f01c5(0x2fa)](),_0x447fc2=JSON[_0x4f01c5(0x40c)](JSON[_0x4f01c5(0x36a)](_0x50810d[_0x4f01c5(0x3bc)]()));if(_0x447fc2[_0x4f01c5(0x42b)]){var _0x4eed77,_0x2fd8b9;let _0x444356=(_0x4eed77=_0x447fc2[_0x4f01c5(0x42b)][_0x4f01c5(0x10f)])==null?void 0x0:_0x4eed77[_0x4f01c5(0x340)],_0x3e565b=(_0x2fd8b9=_0x447fc2[_0x4f01c5(0x42b)]['to'])==null?void 0x0:_0x2fd8b9[_0x4f01c5(0x340)],_0xb4458b=!_0x444356||_0x50a7f8[_0x4f01c5(0x18e)](_0x444356),_0x501ac3=!_0x3e565b||_0x50a7f8['has'](_0x3e565b);_0xb4458b&&_0x444356&&_0x447fc2[_0x4f01c5(0x42b)][_0x4f01c5(0x10f)]?_0x447fc2['relation']['from']={..._0x447fc2[_0x4f01c5(0x42b)][_0x4f01c5(0x10f)],'shapeId':_0x50a7f8[_0x4f01c5(0x3b6)](_0x444356)}:_0x447fc2[_0x4f01c5(0x42b)]['from']=void 0x0,_0x501ac3&&_0x3e565b&&_0x447fc2[_0x4f01c5(0x42b)]['to']?_0x447fc2[_0x4f01c5(0x42b)]['to']={..._0x447fc2['relation']['to'],'shapeId':_0x50a7f8['get'](_0x3e565b)}:_0x447fc2['relation']['to']=void 0x0;}return{'redos':[{'id':m[_0x4f01c5(0x15d)]['id'],'params':{'unitId':_0x5c93aa,'subUnitId':_0x157c62,'type':m[_0x4f01c5(0x324)][_0x4f01c5(0x22c)],'op':_0x1909bb,'objects':_0x1922de}},{'id':i[_0x4f01c5(0x34b)]['id'],'params':{'unitId':_0x5c93aa,'subUnitId':_0x157c62,'shapeId':_0x215aea,'shapeType':_0x2a2ca0,'shapeData':_0x447fc2}}],'undos':[{'id':m[_0x4f01c5(0x15d)]['id'],'params':{'unitId':_0x5c93aa,'subUnitId':_0x157c62,'type':m[_0x4f01c5(0x324)][_0x4f01c5(0x337)],'op':_0x33d481,'objects':_0x1922de}},{'id':i['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x5c93aa,'subUnitId':_0x157c62,'shapeId':_0x215aea}}]};}[_0x5db5d0(0x32b)](_0x552e1e,_0x3a3b54,_0x251848,_0xe79e86){const _0x8108c7=_0x5db5d0;let {range:_0x3bace4,skeleton:_0x1ad58c}=_0x3a3b54,{range:_0x49f6d8,skeleton:_0x3fefdd}=_0x251848,{transform:_0x10ef59,sheetTransform:_0x16afde}=_0x552e1e,_0x3b4ca4={..._0x10ef59};if(_0x3bace4){let _0x2e2cc6=(0x0,o['attachRangeWithCoord'])(_0x1ad58c,_0x3bace4),_0x2e99bb=(0x0,o[_0x8108c7(0x22b)])(_0x3fefdd,_0x49f6d8);if(_0x2e2cc6&&_0x2e99bb){let _0x19e197=_0x2e99bb[_0x8108c7(0x1ee)]-_0x2e2cc6[_0x8108c7(0x1ee)],_0x206283=_0x2e99bb[_0x8108c7(0x35d)]-_0x2e2cc6[_0x8108c7(0x35d)];_0x3b4ca4[_0x8108c7(0x42e)]=(_0x3b4ca4[_0x8108c7(0x42e)]??0x0)+_0x19e197,_0x3b4ca4[_0x8108c7(0x230)]=(_0x3b4ca4[_0x8108c7(0x230)]??0x0)+_0x206283;}}else{let _0x179191=(0x0,o[_0x8108c7(0x22b)])(_0x3fefdd,_0x49f6d8);if(_0xe79e86&&_0x179191){let _0x18b461=(_0x3b4ca4[_0x8108c7(0x42e)]??0x0)-_0xe79e86['left'],_0x22c8bf=(_0x3b4ca4['top']??0x0)-_0xe79e86[_0x8108c7(0x230)];_0x3b4ca4[_0x8108c7(0x42e)]=_0x179191[_0x8108c7(0x1ee)]+_0x18b461,_0x3b4ca4[_0x8108c7(0x230)]=_0x179191[_0x8108c7(0x35d)]+_0x22c8bf;}else _0x3b4ca4['left']=_0x179191==null?void 0x0:_0x179191[_0x8108c7(0x1ee)],_0x3b4ca4[_0x8108c7(0x230)]=_0x179191==null?void 0x0:_0x179191[_0x8108c7(0x35d)];}return{'transform':_0x3b4ca4,'sheetTransform':(0x0,m[_0x8108c7(0x39f)])(_0x3b4ca4,_0x3fefdd)??_0x16afde};}};J=j([A(0x0,(0x0,a[_0x5db5d0(0x22f)])(o[_0x5db5d0(0x332)])),A(0x1,(0x0,a['Inject'])(l[_0x5db5d0(0x2de)])),A(0x2,(0x0,a[_0x5db5d0(0x22f)])(m[_0x5db5d0(0x201)])),A(0x3,(0x0,a[_0x5db5d0(0x22f)])(i[_0x5db5d0(0x1e0)])),A(0x4,(0x0,a[_0x5db5d0(0x22f)])(v['SheetsDrawingGroupCopyPasteController']))],J);var yt=class extends c[_0x5db5d0(0x3a7)]{constructor(_0x4602be,_0x11b382){const _0x349094=_0x5db5d0;super(_0x4602be,_0x11b382),E(this,'_shapeId',null),E(this,_0x349094(0x1be),null),E(this,_0x349094(0x3d2),null),E(this,'_subUnitId',null),E(this,_0x349094(0x113),!0x1),_0x11b382&&this[_0x349094(0x3a1)](_0x11b382);}[_0x5db5d0(0x19b)](){const _0x18ee06=_0x5db5d0;return{'unitId':this[_0x18ee06(0x3d2)],'subUnitId':this[_0x18ee06(0x23c)],'drawingId':this[_0x18ee06(0x212)]};}[_0x5db5d0(0x3a1)](_0x257fcd){const _0x56b9bf=_0x5db5d0;_0x257fcd['shapeId']!==void 0x0&&(this['_shapeId']=_0x257fcd[_0x56b9bf(0x340)]),_0x257fcd['unitId']!==void 0x0&&(this[_0x56b9bf(0x3d2)]=_0x257fcd[_0x56b9bf(0x3bf)]),_0x257fcd[_0x56b9bf(0x20a)]!==void 0x0&&(this['_subUnitId']=_0x257fcd['subUnitId']),_0x257fcd[_0x56b9bf(0x28f)]!==void 0x0&&(this[_0x56b9bf(0x113)]=_0x257fcd['isStartConnectorPoint']),this[_0x56b9bf(0x1ab)]({'width':_0x257fcd[_0x56b9bf(0x2ad)],'height':_0x257fcd['height']});}[_0x5db5d0(0x124)](_0x39223e){const _0x47f00e=_0x5db5d0;c[_0x47f00e(0x360)][_0x47f00e(0x2d7)](_0x39223e,{'radius':n[_0x47f00e(0x2b4)][_0x47f00e(0xf1)],'fill':n[_0x47f00e(0x2b4)][_0x47f00e(0x33c)],'stroke':n[_0x47f00e(0x2b4)]['cxnPointStroke'],'strokeWidth':n[_0x47f00e(0x2b4)][_0x47f00e(0xe9)],'evented':!0x0});}};let bt=class extends a['Disposable']{constructor(_0x5c09c2,_0x564412,_0x20da0d,_0x462ff0,_0x51d241,_0xe2f647,_0xf1add6,_0x391e8d){const _0x69acad=_0x5db5d0;super(),this[_0x69acad(0x2ea)]=_0x5c09c2,this[_0x69acad(0x1ad)]=_0x564412,this[_0x69acad(0x104)]=_0x20da0d,this['_drawingManagerService']=_0x462ff0,this[_0x69acad(0x12c)]=_0x51d241,this[_0x69acad(0x27f)]=_0xe2f647,this[_0x69acad(0x334)]=_0xf1add6,this[_0x69acad(0xe1)]=_0x391e8d,E(this,_0x69acad(0x296),void 0x0),E(this,_0x69acad(0x3d2),void 0x0),E(this,_0x69acad(0x23c),void 0x0),E(this,_0x69acad(0x40e),[]),E(this,'_baseDrawingRect',{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),E(this,_0x69acad(0x258),void 0x0),E(this,'_isConnecting',!0x1),E(this,_0x69acad(0x14a),!0x1),E(this,_0x69acad(0x35b),!0x1),E(this,'_cxtHandlerPointerMove',void 0x0),E(this,_0x69acad(0x185),void 0x0),E(this,'_currentConnectionTarget',null),this[_0x69acad(0x29e)]();}['_initialize'](){const _0x113346=_0x5db5d0;this[_0x113346(0x37c)](),this[_0x113346(0x21c)]();}[_0x5db5d0(0x133)](){const _0x245365=_0x5db5d0;if(!this[_0x245365(0x3d2)]||!this[_0x245365(0x23c)]||!this['_activeShapeId'])return;let _0x48183a={'unitId':this[_0x245365(0x3d2)],'subUnitId':this[_0x245365(0x23c)],'drawingId':this[_0x245365(0x296)]},{transform:_0x2c53a8}=this[_0x245365(0x3b1)][_0x245365(0x15a)](_0x48183a);if(_0x2c53a8)return{'left':_0x2c53a8['left']||0x0,'top':_0x2c53a8['top']||0x0,'width':_0x2c53a8[_0x245365(0x2ad)]||0x0,'height':_0x2c53a8[_0x245365(0x3c5)]||0x0,'flipX':_0x2c53a8['flipX']||!0x1,'flipY':_0x2c53a8[_0x245365(0xef)]||!0x1,'angle':_0x2c53a8[_0x245365(0x3ed)]};}[_0x5db5d0(0x385)](){const _0x3dc226=_0x5db5d0;if(this['_unitId']===void 0x0||this[_0x3dc226(0x23c)]===void 0x0||this[_0x3dc226(0x296)]===void 0x0)return;let _0x4d5bff=this['_renderManagerService'][_0x3dc226(0x2c4)](this['_unitId']);if(!_0x4d5bff||!_0x4d5bff['with'](l[_0x3dc226(0x364)])[_0x3dc226(0x2bc)]())return;let {scene:_0x1ab8c7}=_0x4d5bff,_0x5da104=this[_0x3dc226(0x133)]();if(!_0x5da104)return;let _0x21a5df=this[_0x3dc226(0x27f)][_0x3dc226(0x11e)](this[_0x3dc226(0x3d2)],this['_subUnitId'],this[_0x3dc226(0x296)]);if(!_0x21a5df||!(0x0,n[_0x3dc226(0x2b3)])(_0x21a5df[_0x3dc226(0x2fa)]()))return;let _0x3714ed=_0x21a5df[_0x3dc226(0x403)]();if(_0x3714ed[_0x3dc226(0x2fb)]<0x2)return;let _0x11de4a=new n[(_0x3dc226(0x317))](_0x5da104),_0x3c6eb5=_0x3714ed[0x0],_0x27c993=_0x3714ed[_0x3714ed[_0x3dc226(0x2fb)]-0x1],_0xa0629=_0x11de4a[_0x3dc226(0xf5)](_0x3c6eb5),_0x720561=_0x11de4a[_0x3dc226(0xf5)](_0x27c993);this[_0x3dc226(0x34d)](_0x1ab8c7,{..._0xa0629},!0x0),this[_0x3dc226(0x34d)](_0x1ab8c7,{..._0x720561},!0x1);}[_0x5db5d0(0x34d)](_0x99b8a0,_0x39bd77,_0x2ccdb3){const _0x708d91=_0x5db5d0;if(this['_activeShapeId']===void 0x0||this[_0x708d91(0x3d2)]===void 0x0||this[_0x708d91(0x23c)]===void 0x0)return;let _0xb8bc1d=_0x708d91(0x197)+this[_0x708d91(0x3d2)]+'-'+this[_0x708d91(0x23c)]+'-'+this['_activeShapeId']+'-'+(_0x2ccdb3?_0x708d91(0x396):_0x708d91(0x41f)),_0x454c55=_0x99b8a0[_0x708d91(0x1d5)](_0xb8bc1d);if(_0x454c55){_0x454c55['transformByState']({'left':_0x39bd77['x']-n[_0x708d91(0x2b4)][_0x708d91(0xf1)],'top':_0x39bd77['y']-n['ShapeDefaultConfig'][_0x708d91(0xf1)]});return;}let _0x124ece=new yt(_0xb8bc1d,{'left':_0x39bd77['x']-n['ShapeDefaultConfig'][_0x708d91(0xf1)],'top':_0x39bd77['y']-n[_0x708d91(0x2b4)][_0x708d91(0xf1)],'shapeId':this[_0x708d91(0x296)],'unitId':this[_0x708d91(0x3d2)],'subUnitId':this[_0x708d91(0x23c)],'isStartConnectorPoint':_0x2ccdb3,'width':n[_0x708d91(0x2b4)]['cxnPointRadius']*0x2,'height':n[_0x708d91(0x2b4)][_0x708d91(0xf1)]*0x2,'zIndex':c[_0x708d91(0x3a9)]+0x1,'evented':!0x0});this['_connectorObjects'][_0x708d91(0x1bd)](_0x124ece),this[_0x708d91(0xfc)](_0x124ece,_0x99b8a0,_0x2ccdb3),_0x99b8a0['addObject'](_0x124ece,c[_0x708d91(0x3a9)]+0x1);}[_0x5db5d0(0x245)](_0x4622c7,_0x55dee8){const _0x47fbbd=_0x5db5d0;var _0x363819;let _0x1d6fda={'x':0x0,'y':0x0};if(!_0x4622c7||!_0x55dee8)return _0x1d6fda;let _0x26f492=this['_renderManagerService']['getRenderUnitById'](_0x4622c7);if(!_0x26f492||!_0x26f492['with'](l[_0x47fbbd(0x364)])[_0x47fbbd(0x23a)](_0x55dee8))return _0x1d6fda;let _0x59a454=_0x26f492[_0x47fbbd(0x35a)](l['SheetScrollManagerService']),_0x44d063=_0x59a454==null?void 0x0:_0x59a454[_0x47fbbd(0x2ac)]();if(!_0x44d063)return _0x1d6fda;let _0x1130d4=(_0x363819=this['_univerInstanceService'][_0x47fbbd(0x1ae)](_0x4622c7))==null?void 0x0:_0x363819[_0x47fbbd(0x26d)](_0x55dee8);if(!_0x1130d4)return _0x1d6fda;let _0x25307d=(0x0,l['getViewportByCell'])(_0x44d063[_0x47fbbd(0x1a5)],_0x44d063[_0x47fbbd(0x149)],_0x26f492['scene'],_0x1130d4);return _0x25307d?{'x':_0x25307d[_0x47fbbd(0xd6)],'y':_0x25307d[_0x47fbbd(0x370)]}:_0x1d6fda;}[_0x5db5d0(0x34f)](_0x2fc0fd,_0x2ba3e8){const _0x3d4119=_0x5db5d0;var _0x78f144;let _0x70c56a=(_0x78f144=this[_0x3d4119(0x12c)][_0x3d4119(0x1ae)](_0x2fc0fd))==null?void 0x0:_0x78f144[_0x3d4119(0x26d)](_0x2ba3e8);return(_0x70c56a==null?void 0x0:_0x70c56a[_0x3d4119(0x27a)]())??0x1;}[_0x5db5d0(0x16f)](_0x1619ed,_0x4d2ed8,_0x4eef2d,_0x285f2f,_0x1ac399){const _0x5d2ee1=_0x5db5d0;this[_0x5d2ee1(0x276)]['unsubscribe'](),this[_0x5d2ee1(0x185)][_0x5d2ee1(0x284)](),this[_0x5d2ee1(0x334)][_0x5d2ee1(0x40f)]();let _0x4ab25e=this[_0x5d2ee1(0x325)];this[_0x5d2ee1(0xe1)][_0x5d2ee1(0x355)]();let _0x3dca58=this[_0x5d2ee1(0x245)](this[_0x5d2ee1(0x3d2)],this[_0x5d2ee1(0x23c)]),_0x2c0170=this['_getZoomRatio'](this['_unitId'],this['_subUnitId']),_0xcb6f85={'x':_0x4eef2d['offsetX']/_0x2c0170+_0x3dca58['x'],'y':_0x4eef2d[_0x5d2ee1(0x354)]/_0x2c0170+_0x3dca58['y']},_0x596078=_0x4ab25e?_0x4ab25e['worldPoint']:_0xcb6f85,_0x4021d4=_0x285f2f?this[_0x5d2ee1(0x258)][_0x5d2ee1(0x1db)]():this['_activeShapeModel']['getStartConnectInfo'](),_0x2a20eb=this[_0x5d2ee1(0x258)]['getShapeType']();_0x4021d4?this[_0x5d2ee1(0x208)](_0x4021d4,_0x596078,_0x285f2f,_0x4ab25e,_0x1ac399):this[_0x5d2ee1(0x18d)](_0x4d2ed8,_0x596078,_0x285f2f,_0x4ab25e,_0x1ac399,_0x2a20eb),this[_0x5d2ee1(0x3df)]=!0x1,this['_hasReset']=!0x1,this[_0x5d2ee1(0x325)]=null,_0x1619ed['enableObjectsEvent']();}[_0x5db5d0(0x18d)](_0x38a471,_0x328092,_0x475152,_0x5991a4,_0x5bf316,_0x2b7988){const _0x3e9342=_0x5db5d0;let _0x4537d9=_0x2b7988===n['ShapeTypeEnum'][_0x3e9342(0x431)]||_0x2b7988===n['ShapeTypeEnum']['StraightConnector1'],_0x3ed72b=_0x475152?_0x328092:_0x38a471,_0x125e2b=_0x475152?_0x38a471:_0x328092,_0x4b1b51=this[_0x3e9342(0x258)]['getConnectorLinePoints'](),_0x337122=(0x0,n[_0x3e9342(0x19f)])(this[_0x3e9342(0x258)][_0x3e9342(0x2fa)]()),_0x1b6bd9=n[_0x3e9342(0x317)][_0x3e9342(0x253)](_0x4b1b51,_0x337122),_0x5d6866=_0x4537d9?n['ConnectorCoordinateTransform'][_0x3e9342(0x3b4)](_0x3ed72b,_0x125e2b):n[_0x3e9342(0x317)]['computeConnectorResizeLayout'](_0x38a471,_0x328092,_0x475152,_0x1b6bd9);_0x5991a4?this['_executeConnectionCommand'](_0x5d6866,_0x5991a4,_0x475152,_0x5bf316):this[_0x3e9342(0x114)](_0x5d6866,_0x5bf316);}[_0x5db5d0(0x208)](_0x4c0a72,_0x1c2d4c,_0x54bc42,_0x449a61,_0x50487e){const _0x21ab5a=_0x5db5d0;let _0x31fd0a=this[_0x21ab5a(0x1d9)](_0x4c0a72);if(!_0x31fd0a)return;let _0x4b8fc1=_0x449a61?_0x449a61[_0x21ab5a(0x3ed)]:this[_0x21ab5a(0x371)](_0x31fd0a['point'],_0x1c2d4c),_0x58fa3f;if(_0x449a61){let _0x72b6cb=this[_0x21ab5a(0x3b1)]['getDrawingByParam']({'unitId':_0x449a61[_0x21ab5a(0x3bf)],'subUnitId':_0x449a61['subUnitId'],'drawingId':_0x449a61['shapeId']});if(_0x72b6cb!=null&&_0x72b6cb[_0x21ab5a(0x32a)]){let {left:_0x165581=0x0,top:_0x57e005=0x0,width:_0x807b51=0x0,height:_0x146eb7=0x0,angle:_0x468785}=_0x72b6cb[_0x21ab5a(0x32a)];_0x58fa3f=(0x0,n['getBasicShapeRotateBound'])({'left':_0x165581,'top':_0x57e005,'width':_0x807b51,'height':_0x146eb7},_0x468785||0x0);}else _0x58fa3f={'left':_0x1c2d4c['x'],'top':_0x1c2d4c['y'],'width':0x0,'height':0x0};}else _0x58fa3f={'left':_0x1c2d4c['x'],'top':_0x1c2d4c['y'],'width':0x0,'height':0x0};let _0x2d0e3c={'point':_0x1c2d4c,'angle':_0x4b8fc1,'bounds':_0x58fa3f},_0x3fa0b2=_0x54bc42?_0x2d0e3c:_0x31fd0a,_0x149e27=_0x54bc42?_0x31fd0a:_0x2d0e3c,_0x23cf60=this['_activeShapeModel'][_0x21ab5a(0x2fa)](),_0x46659b=(0x0,n[_0x21ab5a(0x2a0)])(_0x3fa0b2,_0x149e27,_0x23cf60);this[_0x21ab5a(0x258)][_0x21ab5a(0x310)]();let _0x3d4e92=(0x0,n[_0x21ab5a(0x24c)])(_0x46659b,_0x23cf60);_0x449a61?this[_0x21ab5a(0x393)](_0x3d4e92,_0x449a61,_0x4c0a72,_0x54bc42,_0x50487e):this[_0x21ab5a(0x228)](_0x3d4e92,_0x4c0a72,_0x54bc42,_0x50487e);}[_0x5db5d0(0x189)](_0x300bfb,_0x209db8,_0x3523e6,_0x1be060){const _0x45e212=_0x5db5d0;let _0x5ac07d=this[_0x45e212(0x258)][_0x45e212(0x3bc)]()[_0x45e212(0x42b)],_0x28a48b={..._0x5ac07d},_0x525772={'shapeId':_0x209db8[_0x45e212(0x340)],'cxnIndex':_0x209db8[_0x45e212(0xfe)]};_0x3523e6?_0x28a48b[_0x45e212(0x10f)]=_0x525772:_0x28a48b['to']=_0x525772;let _0x2664e7=this[_0x45e212(0x258)][_0x45e212(0x2fa)](),_0x546568=(0x0,n[_0x45e212(0x24c)])(_0x300bfb[_0x45e212(0x2f5)],_0x2664e7),_0x5f23c7={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x45e212(0x296)],'width':_0x300bfb[_0x45e212(0x1ca)]['width'],'height':_0x300bfb[_0x45e212(0x1ca)]['height'],'left':_0x300bfb['worldRect'][_0x45e212(0x42e)],'top':_0x300bfb['worldRect'][_0x45e212(0x230)],'flipX':_0x300bfb[_0x45e212(0x1ca)][_0x45e212(0xfa)]||!0x1,'flipY':_0x300bfb[_0x45e212(0x1ca)]['flipY']||!0x1,'newAdjustValues':_0x546568[_0x45e212(0x15c)],'oldAdjustValues':_0x1be060,'oldRelation':_0x5ac07d,'newRelation':_0x28a48b,'newLineType':_0x546568['lineType'],'oldLineType':_0x2664e7};this[_0x45e212(0x1ad)][_0x45e212(0x3e5)](i[_0x45e212(0x29b)]['id'],_0x5f23c7);}['_executeResizeCommand'](_0x2bff09,_0x3b896d){const _0x372685=_0x5db5d0;let _0x415ad0=this[_0x372685(0x258)]['getShapeType'](),_0xec1e4d=(0x0,n[_0x372685(0x24c)])(_0x2bff09[_0x372685(0x2f5)],_0x415ad0),_0x2d63b2={'unitId':this[_0x372685(0x3d2)],'subUnitId':this[_0x372685(0x23c)],'shapeId':this['_activeShapeId'],'width':_0x2bff09['worldRect'][_0x372685(0x2ad)],'height':_0x2bff09[_0x372685(0x1ca)][_0x372685(0x3c5)],'left':_0x2bff09[_0x372685(0x1ca)][_0x372685(0x42e)],'top':_0x2bff09[_0x372685(0x1ca)][_0x372685(0x230)],'flipX':_0x2bff09[_0x372685(0x1ca)][_0x372685(0xfa)]||!0x1,'flipY':_0x2bff09[_0x372685(0x1ca)]['flipY']||!0x1,'angle':_0x2bff09['worldRect'][_0x372685(0x3ed)]||0x0,'newAdjustValues':_0xec1e4d[_0x372685(0x15c)],'oldAdjustValues':_0x3b896d,'newLineType':_0xec1e4d[_0x372685(0x1ac)],'oldLineType':_0x415ad0};this[_0x372685(0x1ad)]['executeCommand'](i['UpdateLineShapeResizeCommand']['id'],_0x2d63b2);}[_0x5db5d0(0x393)](_0x151d5b,_0x536b37,_0x267ff3,_0x2e2b72,_0x771bbd){const _0x57f1ff=_0x5db5d0;let _0x4942d5=this[_0x57f1ff(0x258)][_0x57f1ff(0x3bc)]()['relation'],_0x4ec192={..._0x4942d5},_0x539ba7={'shapeId':_0x536b37[_0x57f1ff(0x340)],'cxnIndex':_0x536b37[_0x57f1ff(0xfe)]};_0x2e2b72?(_0x4ec192[_0x57f1ff(0x10f)]=_0x539ba7,_0x4ec192['to']=_0x267ff3):(_0x4ec192['from']=_0x267ff3,_0x4ec192['to']=_0x539ba7);let _0x4ab75b={'unitId':this[_0x57f1ff(0x3d2)],'subUnitId':this[_0x57f1ff(0x23c)],'connectorShapeId':this[_0x57f1ff(0x296)],'width':_0x151d5b[_0x57f1ff(0x1ca)][_0x57f1ff(0x2ad)],'height':_0x151d5b[_0x57f1ff(0x1ca)]['height'],'left':_0x151d5b[_0x57f1ff(0x1ca)][_0x57f1ff(0x42e)],'top':_0x151d5b[_0x57f1ff(0x1ca)]['top'],'flipX':_0x151d5b[_0x57f1ff(0x1ca)][_0x57f1ff(0xfa)]||!0x1,'flipY':_0x151d5b[_0x57f1ff(0x1ca)][_0x57f1ff(0xef)]||!0x1,'oldAdjustValues':_0x771bbd,'newAdjustValues':_0x151d5b[_0x57f1ff(0x15c)],'newLineType':_0x151d5b['lineType'],'rotation':_0x151d5b[_0x57f1ff(0x1e8)],'oldRelation':_0x4942d5,'newRelation':_0x4ec192};this[_0x57f1ff(0x1ad)][_0x57f1ff(0x3e5)](i['UpdateConnectorRelationCommand']['id'],_0x4ab75b);}[_0x5db5d0(0x228)](_0x54a2c0,_0x3bd547,_0x7afb57,_0x53e7d5){const _0x2a26f6=_0x5db5d0;let _0x1b8054=this[_0x2a26f6(0x258)][_0x2a26f6(0x3bc)]()[_0x2a26f6(0x42b)],_0x4dd3d0={};_0x7afb57?(_0x4dd3d0['to']=_0x3bd547,_0x4dd3d0[_0x2a26f6(0x10f)]=void 0x0):(_0x4dd3d0[_0x2a26f6(0x10f)]=_0x3bd547,_0x4dd3d0['to']=void 0x0);let _0x67f65f={'unitId':this[_0x2a26f6(0x3d2)],'subUnitId':this[_0x2a26f6(0x23c)],'connectorShapeId':this[_0x2a26f6(0x296)],'width':_0x54a2c0['worldRect']['width'],'height':_0x54a2c0[_0x2a26f6(0x1ca)]['height'],'left':_0x54a2c0[_0x2a26f6(0x1ca)]['left'],'top':_0x54a2c0['worldRect'][_0x2a26f6(0x230)],'flipX':_0x54a2c0['worldRect'][_0x2a26f6(0xfa)]||!0x1,'flipY':_0x54a2c0[_0x2a26f6(0x1ca)][_0x2a26f6(0xef)]||!0x1,'oldAdjustValues':_0x53e7d5,'newAdjustValues':_0x54a2c0[_0x2a26f6(0x15c)],'newLineType':_0x54a2c0[_0x2a26f6(0x1ac)],'rotation':_0x54a2c0[_0x2a26f6(0x1e8)],'oldRelation':_0x1b8054,'newRelation':_0x4dd3d0};this[_0x2a26f6(0x1ad)][_0x2a26f6(0x3e5)](i[_0x2a26f6(0x29b)]['id'],_0x67f65f);}[_0x5db5d0(0xfc)](_0x5ee4c8,_0x4a3712,_0x2f3de3){const _0x2d9104=_0x5db5d0;this[_0x2d9104(0x17d)]((0x0,a[_0x2d9104(0x105)])(_0x5ee4c8['onPointerDown$'][_0x2d9104(0x151)]((_0x2b09e0,_0x2cb2a3)=>{const _0x2554a6=_0x2d9104;let _0x796429=_0x5ee4c8[_0x2554a6(0x19b)]();if(this['_activeShapeModel']=this[_0x2554a6(0x27f)][_0x2554a6(0x11e)](_0x796429['unitId'],_0x796429[_0x2554a6(0x20a)],_0x796429['drawingId']),!this[_0x2554a6(0x258)])return;let _0x222336={};this[_0x2554a6(0x258)][_0x2554a6(0x2bf)]()[_0x2554a6(0xe5)](_0x372284=>{const _0x1d3848=_0x2554a6;let _0x39cd4d=this[_0x1d3848(0x258)][_0x1d3848(0xd7)](_0x372284);_0x39cd4d!==void 0x0&&(_0x222336[_0x372284]=_0x39cd4d);});let _0x4574c7=this[_0x2554a6(0x133)]();if(!_0x4574c7)return;this[_0x2554a6(0x140)]={..._0x4574c7};let _0x3b2ab0=new n['ConnectorCoordinateTransform'](this[_0x2554a6(0x140)]),_0x249e77=(0x0,s[_0x2554a6(0x1f8)])({'unitId':this[_0x2554a6(0x3d2)],'subUnitId':this[_0x2554a6(0x23c)],'drawingId':this[_0x2554a6(0x296)]}),_0x313bf2=_0x4a3712[_0x2554a6(0x1d5)](_0x249e77);this['_isConnecting']=!0x0,_0x4a3712[_0x2554a6(0x2a1)](),this[_0x2554a6(0xe1)][_0x2554a6(0x1b4)](_0x4a3712,this['_unitId'],this[_0x2554a6(0x23c)],this[_0x2554a6(0x296)]),this[_0x2554a6(0x325)]=null;let _0xc17000=this[_0x2554a6(0x258)][_0x2554a6(0x403)](),_0xc0595b=_0xc17000[0x0],_0x4c218a=_0xc17000[_0xc17000['length']-0x1],_0x3eaea9=_0x2f3de3?_0x3b2ab0[_0x2554a6(0xf5)](_0x4c218a):_0x3b2ab0[_0x2554a6(0xf5)](_0xc0595b);this['_cxtHandlerPointerMove']=_0x4a3712['onPointerMove$']['subscribeEvent']((_0x50b7ec,_0x51cb03)=>{const _0x3eb120=_0x2554a6;if(!this[_0x3eb120(0x3df)]||!this[_0x3eb120(0x258)])return;this[_0x3eb120(0x35b)]||=(this[_0x3eb120(0x334)][_0x3eb120(0x24f)](),this[_0x3eb120(0x258)][_0x3eb120(0x1e5)](),!0x0);let _0x304da1=this['_getScrollInfo'](this[_0x3eb120(0x3d2)],this['_subUnitId']),_0x3201d7=this[_0x3eb120(0x34f)](this[_0x3eb120(0x3d2)],this[_0x3eb120(0x23c)]),_0x1c751f={'x':_0x50b7ec['offsetX']/_0x3201d7+_0x304da1['x'],'y':_0x50b7ec[_0x3eb120(0x354)]/_0x3201d7+_0x304da1['y']},_0x386bd0=this[_0x3eb120(0xe1)][_0x3eb120(0x2eb)](_0x1c751f);if(_0x386bd0){let {shapeId:_0x207dd7,unitId:_0x3abab9,subUnitId:_0x464a5c}=_0x386bd0;if(_0x207dd7&&_0x3abab9&&_0x464a5c){let _0x230905=(0x0,s[_0x3eb120(0x1f8)])({'unitId':_0x3abab9,'subUnitId':_0x464a5c,'drawingId':_0x207dd7});_0x386bd0[_0x3eb120(0x3ed)]=(_0x4a3712[_0x3eb120(0x1d5)](_0x230905)[_0x3eb120(0x3ed)]||0x0)+_0x386bd0[_0x3eb120(0x3ed)];}}this[_0x3eb120(0x325)]=_0x386bd0;let _0x10c481=_0x2f3de3?this['_activeShapeModel'][_0x3eb120(0x1db)]():this['_activeShapeModel'][_0x3eb120(0x129)]();if(_0x10c481){this[_0x3eb120(0x37b)](_0x10c481,_0x1c751f,_0x2f3de3,_0x313bf2,_0x5ee4c8);return;}this[_0x3eb120(0x200)](_0x1c751f,_0x3eaea9,_0x2f3de3,_0x313bf2,_0x5ee4c8);}),this[_0x2554a6(0x185)]=_0x4a3712[_0x2554a6(0x369)][_0x2554a6(0x151)]((_0x8cacfe,_0x5bd5c4)=>{const _0x2a3907=_0x2554a6;this[_0x2a3907(0x16f)](_0x4a3712,_0x3eaea9,_0x8cacfe,_0x2f3de3,_0x222336);}),_0x2cb2a3[_0x2554a6(0x15f)]();})));}[_0x5db5d0(0x3d8)](_0x923cc2,_0x3d6dda,_0x37d9f2){const _0x1cf22f=_0x5db5d0;let _0x2323df=this[_0x1cf22f(0x27f)]['getBasicShapeRelation'](_0x923cc2,_0x3d6dda,_0x37d9f2);if(!_0x2323df||_0x2323df[_0x1cf22f(0x2fb)]===0x0)return;let _0x452084=this['_renderManagerService']['getRenderUnitById'](_0x923cc2);if(!_0x452084)return;let {scene:_0x476246}=_0x452084;for(let _0x3e4097 of _0x2323df){let _0x17e7f7=_0x3e4097[_0x1cf22f(0x42a)],_0x228b25=this[_0x1cf22f(0x27f)]['getShapeModel'](_0x923cc2,_0x3d6dda,_0x17e7f7);if(!_0x228b25)continue;let _0xb5a8b4=_0x228b25[_0x1cf22f(0x129)](),_0x74d93e=_0x228b25[_0x1cf22f(0x1db)](),_0x33c2b6=(_0xb5a8b4==null?void 0x0:_0xb5a8b4[_0x1cf22f(0x340)])===_0x37d9f2,_0x38026a=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x923cc2,'subUnitId':_0x3d6dda,'drawingId':_0x17e7f7}),_0xff39c2=_0x476246[_0x1cf22f(0x1d5)](_0x38026a);if(!_0xff39c2)continue;let _0x1ea585=this[_0x1cf22f(0x3b1)][_0x1cf22f(0x15a)]({'unitId':_0x923cc2,'subUnitId':_0x3d6dda,'drawingId':_0x17e7f7});_0x1ea585!=null&&_0x1ea585[_0x1cf22f(0x32a)]&&(_0xb5a8b4&&_0x74d93e?this[_0x1cf22f(0x31e)](_0x923cc2,_0x3d6dda,_0x17e7f7,_0x228b25,_0xb5a8b4,_0x74d93e,_0xff39c2):this['_moveConnectorWithShape'](_0x923cc2,_0x3d6dda,_0x17e7f7,_0x228b25,_0x33c2b6?_0xb5a8b4:_0x74d93e,_0x33c2b6,_0x1ea585,_0xff39c2));}}[_0x5db5d0(0x31e)](_0x435bf5,_0x1585a0,_0x367306,_0x880075,_0x11efd6,_0x5c3811,_0x4fdc51){const _0x22baf0=_0x5db5d0;let _0x47399b=this[_0x22baf0(0x3d2)],_0x14e342=this[_0x22baf0(0x23c)];this[_0x22baf0(0x3d2)]=_0x435bf5,this[_0x22baf0(0x23c)]=_0x1585a0;let _0x463539=this[_0x22baf0(0x1d9)](_0x11efd6),_0x11ad60=this[_0x22baf0(0x1d9)](_0x5c3811);if(this[_0x22baf0(0x3d2)]=_0x47399b,this[_0x22baf0(0x23c)]=_0x14e342,!_0x463539||!_0x11ad60)return;let _0x514176=_0x880075[_0x22baf0(0x2fa)](),_0x1d67f9=(0x0,n[_0x22baf0(0x2a0)])(_0x463539,_0x11ad60,_0x514176);_0x1d67f9&&_0x880075[_0x22baf0(0x1ec)](_0x1d67f9);let _0x4f8ed0=(0x0,n[_0x22baf0(0x24c)])(_0x1d67f9,_0x514176);_0x4f8ed0['lineType']!==_0x514176&&_0x880075[_0x22baf0(0x103)](_0x4f8ed0[_0x22baf0(0x1ac)]),_0x880075[_0x22baf0(0x1e5)]();for(let [_0x21c011,_0x4a0c16]of Object[_0x22baf0(0x2d0)](_0x4f8ed0[_0x22baf0(0x15c)]))_0x880075[_0x22baf0(0x19a)](_0x21c011,_0x4a0c16);_0x880075['updateContext']({'width':_0x4f8ed0['worldRect'][_0x22baf0(0x2ad)],'height':_0x4f8ed0[_0x22baf0(0x1ca)][_0x22baf0(0x3c5)]}),_0x4fdc51['transformByState']({'flipX':_0x4f8ed0[_0x22baf0(0x1ca)][_0x22baf0(0xfa)],'flipY':_0x4f8ed0[_0x22baf0(0x1ca)][_0x22baf0(0xef)],'left':_0x4f8ed0[_0x22baf0(0x1ca)][_0x22baf0(0x42e)],'top':_0x4f8ed0[_0x22baf0(0x1ca)]['top'],'width':_0x4f8ed0['worldRect'][_0x22baf0(0x2ad)],'height':_0x4f8ed0[_0x22baf0(0x1ca)][_0x22baf0(0x3c5)],'angle':_0x4f8ed0['rotation']}),_0x880075[_0x22baf0(0x310)]();}['_moveConnectorWithShape'](_0x1e2e69,_0x4d9c4a,_0x45f284,_0x3cddbb,_0x5c7170,_0x5831dc,_0x51babe,_0x49ba5b){const _0xfcb160=_0x5db5d0;let _0x32c359=this[_0xfcb160(0x3d2)],_0xb79c8=this['_subUnitId'];this[_0xfcb160(0x3d2)]=_0x1e2e69,this[_0xfcb160(0x23c)]=_0x4d9c4a;let _0x2bdbbf=this[_0xfcb160(0x1d9)](_0x5c7170);if(this[_0xfcb160(0x3d2)]=_0x32c359,this[_0xfcb160(0x23c)]=_0xb79c8,!_0x2bdbbf)return;let {left:_0xcaa62=0x0,top:_0x21b508=0x0,width:_0x558a96=0x0,height:_0x5000d2=0x0,flipX:_0x22c736=!0x1,flipY:_0x5bb873=!0x1}=_0x51babe['transform'],_0x59f170=_0x3cddbb[_0xfcb160(0x403)]();if(_0x59f170[_0xfcb160(0x2fb)]<0x2)return;let _0x2ecd7b=new n[(_0xfcb160(0x317))]({'left':_0xcaa62,'top':_0x21b508,'width':_0x558a96,'height':_0x5000d2,'flipX':_0x22c736,'flipY':_0x5bb873}),_0x474178=_0x5831dc?_0x59f170[_0x59f170[_0xfcb160(0x2fb)]-0x1]:_0x59f170[0x0],_0x44b169=_0x2ecd7b[_0xfcb160(0xf5)](_0x474178),_0x353697=n[_0xfcb160(0x317)][_0xfcb160(0x3a3)](_0x44b169,_0x2bdbbf[_0xfcb160(0x16b)],!_0x5831dc);_0x49ba5b[_0xfcb160(0x1ab)]({'flipX':_0x353697['worldRect'][_0xfcb160(0xfa)],'flipY':_0x353697[_0xfcb160(0x1ca)][_0xfcb160(0xef)],'left':_0x353697['worldRect']['left'],'top':_0x353697[_0xfcb160(0x1ca)][_0xfcb160(0x230)],'width':_0x353697[_0xfcb160(0x1ca)][_0xfcb160(0x2ad)],'height':_0x353697[_0xfcb160(0x1ca)][_0xfcb160(0x3c5)],'angle':_0x353697['worldRect'][_0xfcb160(0x3ed)]}),_0x49ba5b[_0xfcb160(0x1e9)](!0x0);}[_0x5db5d0(0x137)](){const _0x4c969a=_0x5db5d0;this['_connectorObjects'][_0x4c969a(0x2fb)]!==0x0&&(this['_connectorObjects'][_0x4c969a(0xe5)](_0x4acc4c=>{_0x4acc4c['dispose']();}),this[_0x4c969a(0x40e)]=[]);}['_registerDrawingMoveHandler'](){const _0x483b19=_0x5db5d0;let _0x256ea1=this[_0x483b19(0x12c)]['getCurrentTypeOfUnit$'](a[_0x483b19(0x400)][_0x483b19(0x319)]);this['disposeWithMe'](_0x256ea1[_0x483b19(0x402)]((0x0,u['switchMap'])(_0x2174e3=>_0x2174e3?_0x2174e3['activeSheet$'][_0x483b19(0x402)]((0x0,u['switchMap'])(_0x1a3147=>{const _0x97ec42=_0x483b19;if(!_0x1a3147)return u[_0x97ec42(0x395)];let _0x37a112=_0x2174e3[_0x97ec42(0x2d1)](),_0x3c670d=this[_0x97ec42(0x104)]['getRenderUnitById'](_0x37a112),_0x15696b=_0x3c670d==null?void 0x0:_0x3c670d[_0x97ec42(0x2e7)];return _0x15696b?(0x0,u['of'])(_0x15696b):u[_0x97ec42(0x395)];})):u[_0x483b19(0x395)]))[_0x483b19(0x426)](_0x34ae9a=>{const _0xd9799a=_0x483b19;let _0x21b0f1=_0x34ae9a[_0xd9799a(0x3cb)]();this[_0xd9799a(0x17d)](_0x34ae9a[_0xd9799a(0x1b5)][_0xd9799a(0x151)](_0xbf06ac=>{const _0x326b28=_0xd9799a;this[_0x326b28(0x14a)]&&this[_0x326b28(0x296)]&&this[_0x326b28(0x137)]();})),this['disposeWithMe'](_0x21b0f1[_0xd9799a(0x328)][_0xd9799a(0x426)](_0x2ad1a4=>{const _0x30158=_0xd9799a;let {objects:_0x148f12}=_0x2ad1a4;this['_clearShapeConnectorHandlerObjects'](),_0x148f12!==null&&_0x148f12[_0x30158(0x3e0)]===0x1&&_0x148f12[_0x30158(0x3ae)]()['next']()[_0x30158(0x30b)]instanceof O&&(this[_0x30158(0x14a)]=!0x0);})),this['disposeWithMe'](_0x21b0f1['changing$'][_0xd9799a(0x426)](_0x6f07e4=>{const _0xb9f064=_0xd9799a;this[_0xb9f064(0x14a)]&&this[_0xb9f064(0x137)]();})),this[_0xd9799a(0x17d)](_0x34ae9a[_0xd9799a(0x369)][_0xd9799a(0x151)](()=>{const _0x4ccd5c=_0xd9799a;this[_0x4ccd5c(0x14a)]&&(this['_isDrawingShapePointDown']=!0x1,this['_addShapeConnectorHandlerObjects']());})),this[_0xd9799a(0x17d)](_0x21b0f1[_0xd9799a(0x3f8)][_0xd9799a(0x426)](()=>{const _0x24733c=_0xd9799a;this[_0x24733c(0x3d2)]&&this[_0x24733c(0x23c)]&&this[_0x24733c(0x296)]&&this[_0x24733c(0x3b1)]['getDrawingByParam']({'unitId':this[_0x24733c(0x3d2)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x24733c(0x296)]})&&(this[_0x24733c(0x137)](),this[_0x24733c(0x385)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x48c7fb=_0x5db5d0;this[_0x48c7fb(0x17d)](this['_drawingManagerService']['focus$'][_0x48c7fb(0x426)](_0x444141=>{const _0x31ee48=_0x48c7fb;if(_0x444141[_0x31ee48(0x2fb)]===0x1){let _0x21a9dd=_0x444141[0x0];if(_0x21a9dd[_0x31ee48(0x3c1)]===a[_0x31ee48(0x3e6)]['DRAWING_SHAPE']){let _0x2630a1=this['_sheetsShapeService'][_0x31ee48(0x11e)](_0x21a9dd['unitId'],_0x21a9dd[_0x31ee48(0x20a)],_0x21a9dd[_0x31ee48(0x3e3)]);if(_0x2630a1&&(0x0,n[_0x31ee48(0x2b3)])(_0x2630a1[_0x31ee48(0x2fa)]())){this[_0x31ee48(0x296)]=_0x21a9dd[_0x31ee48(0x3e3)],this[_0x31ee48(0x3d2)]=_0x21a9dd[_0x31ee48(0x3bf)],this[_0x31ee48(0x23c)]=_0x21a9dd[_0x31ee48(0x20a)],this[_0x31ee48(0x137)](),this[_0x31ee48(0x385)]();return;}}}this[_0x31ee48(0x296)]=void 0x0,this[_0x31ee48(0x3d2)]=void 0x0,this[_0x31ee48(0x23c)]=void 0x0,this[_0x31ee48(0x137)]();})),this[_0x48c7fb(0x17d)](this[_0x48c7fb(0x3b1)][_0x48c7fb(0xe7)][_0x48c7fb(0x426)](_0x43fbf0=>{const _0x473918=_0x48c7fb;if(_0x43fbf0[_0x473918(0x2fb)]===0x1){var _0x5bdf9e;let _0x3c1406=_0x43fbf0[0x0],_0x49b227=(_0x5bdf9e=this['_drawingManagerService'][_0x473918(0x15a)](_0x3c1406))==null?void 0x0:_0x5bdf9e[_0x473918(0x3c1)];_0x49b227===a[_0x473918(0x3e6)][_0x473918(0x19d)]&&_0x3c1406[_0x473918(0x3e3)]===this[_0x473918(0x296)]?(this[_0x473918(0x137)](),this[_0x473918(0x385)]()):!this[_0x473918(0x296)]&&_0x49b227===a[_0x473918(0x3e6)][_0x473918(0x19d)]&&this[_0x473918(0x3d8)](_0x3c1406[_0x473918(0x3bf)],_0x3c1406['subUnitId'],_0x3c1406[_0x473918(0x3e3)]);}})),this['disposeWithMe'](this[_0x48c7fb(0x3b1)][_0x48c7fb(0x386)][_0x48c7fb(0x426)](_0x49b4f6=>{const _0x11db29=_0x48c7fb;for(let _0x4375b1 of _0x49b4f6){let {drawingId:_0x5f1195}=_0x4375b1;if(this[_0x11db29(0x296)]===_0x5f1195){this[_0x11db29(0x13f)]();return;}}}));}[_0x5db5d0(0x37b)](_0x346aef,_0x5761dd,_0x477660,_0x4cbbea,_0x2ca154){const _0x2aa3ff=_0x5db5d0;var _0x33d901;if(!this[_0x2aa3ff(0x258)])return;let _0x362e79=this['_getConnectPointInfo'](_0x346aef);if(!_0x362e79)return;let _0x903ace=this['_currentConnectionTarget']?this[_0x2aa3ff(0x325)][_0x2aa3ff(0x2cf)]:_0x5761dd,_0x1238f2=this[_0x2aa3ff(0x325)]?this['_currentConnectionTarget']['angle']:this[_0x2aa3ff(0x371)](_0x362e79[_0x2aa3ff(0x16b)],_0x903ace),_0x460c18;if(this['_currentConnectionTarget']){let _0x59f4e6=this[_0x2aa3ff(0x3b1)][_0x2aa3ff(0x15a)]({'unitId':this[_0x2aa3ff(0x325)]['unitId'],'subUnitId':this['_currentConnectionTarget'][_0x2aa3ff(0x20a)],'drawingId':this[_0x2aa3ff(0x325)][_0x2aa3ff(0x340)]});if(_0x59f4e6!=null&&_0x59f4e6[_0x2aa3ff(0x32a)]){let {left:_0x38d2b7=0x0,top:_0x3d5512=0x0,width:_0xe80c20=0x0,height:_0x6790f7=0x0,angle:_0x47b290}=_0x59f4e6[_0x2aa3ff(0x32a)];_0x460c18=(0x0,n[_0x2aa3ff(0x239)])({'left':_0x38d2b7,'top':_0x3d5512,'width':_0xe80c20,'height':_0x6790f7},_0x47b290||0x0);}else _0x460c18={'left':_0x903ace['x'],'top':_0x903ace['y'],'width':0x0,'height':0x0};}else _0x460c18={'left':_0x903ace['x'],'top':_0x903ace['y'],'width':0x0,'height':0x0};let _0x31b5c6={'point':_0x903ace,'angle':_0x1238f2,'bounds':_0x460c18},_0x5d8176=_0x477660?_0x31b5c6:_0x362e79,_0x2305a3=_0x477660?_0x362e79:_0x31b5c6,_0x351337=this[_0x2aa3ff(0x258)]['getShapeType'](),_0xed955b=(0x0,n['routeConnectorLineShape'])(_0x5d8176,_0x2305a3,_0x351337);_0xed955b&&this[_0x2aa3ff(0x258)]['updateLinePoints'](_0xed955b);let _0x4bf561=(0x0,n[_0x2aa3ff(0x24c)])(_0xed955b,_0x351337);_0x4bf561['lineType']!==_0x351337&&this[_0x2aa3ff(0x258)][_0x2aa3ff(0x103)](_0x4bf561['lineType']);for(let [_0xc4cacc,_0x50c8e9]of Object[_0x2aa3ff(0x2d0)](_0x4bf561[_0x2aa3ff(0x15c)]))this[_0x2aa3ff(0x258)][_0x2aa3ff(0x19a)](_0xc4cacc,_0x50c8e9);this['_activeShapeModel']['updateContext']({'width':_0x4bf561[_0x2aa3ff(0x1ca)][_0x2aa3ff(0x2ad)],'height':_0x4bf561[_0x2aa3ff(0x1ca)]['height']}),_0x4cbbea[_0x2aa3ff(0x1ab)]({'flipX':_0x4bf561[_0x2aa3ff(0x1ca)]['flipX'],'flipY':_0x4bf561[_0x2aa3ff(0x1ca)][_0x2aa3ff(0xef)],'left':_0x4bf561[_0x2aa3ff(0x1ca)][_0x2aa3ff(0x42e)],'top':_0x4bf561[_0x2aa3ff(0x1ca)]['top'],'width':_0x4bf561[_0x2aa3ff(0x1ca)][_0x2aa3ff(0x2ad)],'height':_0x4bf561[_0x2aa3ff(0x1ca)][_0x2aa3ff(0x3c5)],'angle':_0x4bf561[_0x2aa3ff(0x1e8)]}),_0x4cbbea['makeDirty'](!0x0);let _0xbdf79f=((_0x33d901=this['_currentConnectionTarget'])==null?void 0x0:_0x33d901['worldPoint'])??_0x5761dd;_0x2ca154['transformByState']({'left':_0xbdf79f['x']-n[_0x2aa3ff(0x2b4)][_0x2aa3ff(0xf1)],'top':_0xbdf79f['y']-n[_0x2aa3ff(0x2b4)]['cxnPointRadius']});}[_0x5db5d0(0x200)](_0x552152,_0x4815a4,_0x2c8de4,_0x28aa8e,_0x3390e0){const _0x556bd7=_0x5db5d0;var _0x592957,_0xd2b56c;let _0x1ec3df=((_0x592957=this[_0x556bd7(0x325)])==null?void 0x0:_0x592957['worldPoint'])??_0x552152,_0x308f69=n[_0x556bd7(0x317)][_0x556bd7(0x3a3)](_0x4815a4,_0x1ec3df,_0x2c8de4);_0x28aa8e[_0x556bd7(0x1ab)]({'flipX':_0x308f69[_0x556bd7(0x1ca)][_0x556bd7(0xfa)],'flipY':_0x308f69['worldRect']['flipY'],'left':_0x308f69[_0x556bd7(0x1ca)][_0x556bd7(0x42e)],'top':_0x308f69[_0x556bd7(0x1ca)]['top'],'width':_0x308f69['worldRect'][_0x556bd7(0x2ad)],'height':_0x308f69['worldRect']['height'],'angle':_0x308f69[_0x556bd7(0x1ca)][_0x556bd7(0x3ed)]});let _0x62141b=((_0xd2b56c=this[_0x556bd7(0x325)])==null?void 0x0:_0xd2b56c['worldPoint'])??_0x552152;_0x3390e0['transformByState']({'left':_0x62141b['x']-n[_0x556bd7(0x2b4)]['cxnPointRadius'],'top':_0x62141b['y']-n['ShapeDefaultConfig'][_0x556bd7(0xf1)]});}[_0x5db5d0(0x1d9)](_0x29f097){const _0xa66680=_0x5db5d0;if(!this[_0xa66680(0x3d2)]||!this[_0xa66680(0x23c)])return null;let {shapeId:_0x4ff6a6,cxnIndex:_0x3578c9}=_0x29f097,_0x589ca6=this[_0xa66680(0x27f)][_0xa66680(0x11e)](this[_0xa66680(0x3d2)],this[_0xa66680(0x23c)],_0x4ff6a6);if(!_0x589ca6)return null;let _0x4cce28=this['_drawingManagerService'][_0xa66680(0x15a)]({'unitId':this[_0xa66680(0x3d2)],'subUnitId':this[_0xa66680(0x23c)],'drawingId':_0x4ff6a6});if(!(_0x4cce28!=null&&_0x4cce28[_0xa66680(0x32a)]))return null;let {left:_0x1c2e89=0x0,top:_0x48bd43=0x0,width:_0x21d1ec=0x0,height:_0xb9519d=0x0,flipX:_0x30c47d=!0x1,flipY:_0x4a1e69=!0x1,angle:_0x55ea61}=_0x4cce28[_0xa66680(0x32a)];_0x589ca6[_0xa66680(0x141)]({'width':_0x21d1ec,'height':_0xb9519d});let _0x2cc4ce=_0x589ca6[_0xa66680(0x186)]()[_0xa66680(0x249)](_0x19c6db=>_0x19c6db[_0xa66680(0x3b0)]===_0x3578c9);if(!_0x2cc4ce)return null;let _0x5e8193=_0x30c47d?_0x21d1ec-_0x2cc4ce['x']:_0x2cc4ce['x'],_0x367114=_0x4a1e69?_0xb9519d-_0x2cc4ce['y']:_0x2cc4ce['y'];if(_0x55ea61!==0x0&&_0x55ea61!=null){let _0x216fba=_0x55ea61*Math['PI']/0xb4,_0x4a48e5=Math['cos'](_0x216fba),_0x598ed5=Math['sin'](_0x216fba),_0x1804ad=_0x21d1ec/0x2,_0xca3c95=_0xb9519d/0x2,_0x332cb7=_0x5e8193-_0x1804ad,_0x11cabd=_0x367114-_0xca3c95;_0x5e8193=_0x1804ad+_0x332cb7*_0x4a48e5-_0x11cabd*_0x598ed5,_0x367114=_0xca3c95+_0x332cb7*_0x598ed5+_0x11cabd*_0x4a48e5;}_0x5e8193+=_0x1c2e89,_0x367114+=_0x48bd43;let _0x4bee40=_0x2cc4ce[_0xa66680(0x3c7)]/0xea60;_0x30c47d&&(_0x4bee40=0xb4-_0x4bee40),_0x4a1e69&&(_0x4bee40=-_0x4bee40),_0x4bee40+=_0x55ea61||0x0,_0x4bee40=(_0x4bee40%0x168+0x168)%0x168;let _0x1b65f3=(0x0,n[_0xa66680(0x239)])({'left':_0x1c2e89,'top':_0x48bd43,'width':_0x21d1ec,'height':_0xb9519d},_0x55ea61||0x0);return{'point':{'x':_0x5e8193,'y':_0x367114},'angle':_0x4bee40,'bounds':_0x1b65f3};}[_0x5db5d0(0x371)](_0x37de8d,_0x1c23bf){const _0x4bc3a2=_0x5db5d0;let _0x148874=_0x1c23bf['x']-_0x37de8d['x'],_0x111663=_0x1c23bf['y']-_0x37de8d['y'];return Math[_0x4bc3a2(0x234)](_0x148874)>=Math[_0x4bc3a2(0x234)](_0x111663)?_0x148874>=0x0?0xb4:0x0:_0x111663>=0x0?0x10e:0x5a;}[_0x5db5d0(0x13f)](){const _0x185082=_0x5db5d0;this['_activeShapeId']=void 0x0,this[_0x185082(0x3d2)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x185082(0x137)]();}[_0x5db5d0(0x1c4)](){const _0x8385d4=_0x5db5d0;this[_0x8385d4(0x137)](),super['dispose']();}};bt=j([A(0x1,a[_0x5db5d0(0x2b9)]),A(0x2,c[_0x5db5d0(0x226)]),A(0x3,s['IDrawingManagerService']),A(0x4,a[_0x5db5d0(0x1c8)]),A(0x5,(0x0,a['Inject'])(i[_0x5db5d0(0x1e0)])),A(0x6,(0x0,a['Inject'])(N)),A(0x7,(0x0,a[_0x5db5d0(0x22f)])(q))],bt);let Y=class extends a['Disposable']{constructor(_0xa8c5d,_0xd2b554,_0x484b7a){const _0x1ff54c=_0x5db5d0;super(),this[_0x1ff54c(0xfd)]=_0xa8c5d,this[_0x1ff54c(0x3b1)]=_0xd2b554,this[_0x1ff54c(0x16d)]=_0x484b7a,this['_initPrinting']();}[_0x5db5d0(0x273)](){const _0x4aeb66=_0x5db5d0;this[_0x4aeb66(0x17d)](this['_sheetPrintInterceptorService'][_0x4aeb66(0x1e4)]['intercept'](this[_0x4aeb66(0xfd)][_0x4aeb66(0x1e4)][_0x4aeb66(0x2a9)]()[_0x4aeb66(0x1fd)],{'handler':(_0x10c37e,_0x2a04cd,_0xafc51a)=>{const _0x3cc7aa=_0x4aeb66;var _0x337fe4;let {unitId:_0x2d2972,subUnitId:_0x2e4c5d,scene:_0xe799c8,resourceCollector:_0x158038}=_0x2a04cd,_0x5de664=(_0x337fe4=this['_drawingManagerService'][_0x3cc7aa(0x2d3)](_0x2d2972))==null?void 0x0:_0x337fe4[_0x2e4c5d];return _0x5de664==null||_0x5de664[_0x3cc7aa(0x2ee)][_0x3cc7aa(0xe5)](_0x4b07d3=>{const _0x2f68b3=_0x3cc7aa;let _0x37d0d0=_0x5de664['data'][_0x4b07d3];_0x37d0d0[_0x2f68b3(0x3c1)]===a[_0x2f68b3(0x3e6)][_0x2f68b3(0x19d)]&&!_0x37d0d0[_0x2f68b3(0x3b9)]&&this[_0x2f68b3(0x16d)][_0x2f68b3(0x308)](_0x37d0d0,_0xe799c8,{'resourceCollector':_0x158038});}),_0xafc51a(_0x10c37e);}}));}};Y=j([A(0x0,(0x0,a[_0x5db5d0(0x22f)])(l['SheetPrintInterceptorService'])),A(0x1,s[_0x5db5d0(0x10d)]),A(0x2,(0x0,a[_0x5db5d0(0x22f)])(M))],Y);let X=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x2e6842,_0x291348,_0x42b988){const _0x5ea235=_0x5db5d0;super(),this[_0x5ea235(0x1ad)]=_0x2e6842,this[_0x5ea235(0x272)]=_0x291348,this[_0x5ea235(0x2f4)]=_0x42b988,this[_0x5ea235(0x25f)]();}[_0x5db5d0(0x25f)](){const _0x24005a=_0x5db5d0;this[_0x24005a(0x17d)](this[_0x24005a(0x1ad)][_0x24005a(0x368)](_0x443ce0=>{const _0x4001cf=_0x24005a;let _0x58d5d3,_0xae2f3d;if(_0x443ce0['id']===i[_0x4001cf(0x2bd)]['id']||_0x443ce0['id']===i['SetShapeDrawingDataCommand']['id']||_0x443ce0['id']===i[_0x4001cf(0x29b)]['id']){let _0x90e6d0=_0x443ce0[_0x4001cf(0x1a0)];_0x58d5d3=_0x90e6d0[_0x4001cf(0x3bf)],_0xae2f3d=_0x90e6d0[_0x4001cf(0x20a)];}!_0x58d5d3||!_0xae2f3d||this['_sheetPermissionCheckController'][_0x4001cf(0x20d)]({'workbookTypes':[o['WorkbookEditablePermission']],'worksheetTypes':[o['WorksheetEditPermission']]},_0x58d5d3,_0xae2f3d)||this[_0x4001cf(0x2f4)][_0x4001cf(0x26a)](this[_0x4001cf(0x272)]['t'](_0x4001cf(0x1c5)));}));}};X=j([A(0x0,(0x0,a[_0x5db5d0(0x22f)])(a[_0x5db5d0(0x2b9)])),A(0x1,(0x0,a[_0x5db5d0(0x22f)])(a[_0x5db5d0(0x232)])),A(0x2,(0x0,a['Inject'])(o[_0x5db5d0(0x247)]))],X);let Z=class{constructor(_0x1799d0){const _0x37f03b=_0x5db5d0;this[_0x37f03b(0x104)]=_0x1799d0;}[_0x5db5d0(0x34c)](_0x4421c1,_0x2ca133){const _0x9adbf2=_0x5db5d0;let _0xb2e800=this[_0x9adbf2(0x104)][_0x9adbf2(0x2c4)](_0x4421c1['unitId']),_0x4d4187=_0xb2e800==null?void 0x0:_0xb2e800[_0x9adbf2(0x2e7)];if(!_0x4d4187)return;let _0x2ade55=(0x0,s[_0x9adbf2(0x1f8)])(_0x4421c1),_0x175fc8=_0x4d4187[_0x9adbf2(0x1d5)](_0x2ade55);_0x175fc8==null||_0x175fc8['setFillImage'](_0x2ca133);}};Z=j([A(0x0,c['IRenderManagerService'])],Z);let Q=class extends a['Plugin']{constructor(_0x1028ee=ct,_0x5eb5f9,_0x3295f9,_0x57c185,_0x3e00e9,_0x1df249){const _0x3d1574=_0x5db5d0;super(),this[_0x3d1574(0x3d7)]=_0x1028ee,this[_0x3d1574(0x418)]=_0x5eb5f9,this['_commandService']=_0x3295f9,this[_0x3d1574(0x3d1)]=_0x57c185,this[_0x3d1574(0x104)]=_0x3e00e9,this['_uiPartsService']=_0x1df249;let {..._0x4d9814}=(0x0,a[_0x3d1574(0x1d4)])({},ct,this[_0x3d1574(0x3d7)]);this[_0x3d1574(0x3d1)][_0x3d1574(0x2ba)](st,_0x4d9814),this['_initCommands']();}[_0x5db5d0(0xff)](){const _0x209493=_0x5db5d0;this[_0x209493(0x418)][_0x209493(0x381)]([ut]),this[_0x209493(0x418)][_0x209493(0x3b6)](ut),(0x0,a['registerDependencies'])(this[_0x209493(0x418)],[[ht],[K],[M],[Y],[Z],[U],[G],[V],[X]]);}[_0x5db5d0(0x2f6)](){const _0x5c1504=_0x5db5d0;(0x0,a[_0x5c1504(0x37e)])(this[_0x5c1504(0x418)],[[q],[N],[J]]),(0x0,a['touchDependencies'])(this['_injector'],[[J],[N]]),[[q],[lt],[bt],[ft]]['forEach'](_0x2907a8=>{const _0x23f5ac=_0x5c1504;this['disposeWithMe'](this[_0x23f5ac(0x104)]['registerRenderModule'](a[_0x23f5ac(0x400)][_0x23f5ac(0x319)],_0x2907a8));}),this[_0x5c1504(0x17d)](this[_0x5c1504(0x14c)][_0x5c1504(0x290)](t[_0x5c1504(0x2ae)]['FOOTER'],()=>(0x0,t[_0x5c1504(0x3d0)])(e[_0x5c1504(0x1c9)],this[_0x5c1504(0x418)])));}[_0x5db5d0(0x283)](){const _0x478069=_0x5db5d0;(0x0,a['touchDependencies'])(this[_0x478069(0x418)],[[ht],[K],[M],[Y],[Z],[U],[G],[V],[X]]);}[_0x5db5d0(0x1d6)](){const _0x23bca7=_0x5db5d0;this[_0x23bca7(0x418)]['get'](ht)[_0x23bca7(0x41a)]();}[_0x5db5d0(0x18b)](){const _0xe6b026=_0x5db5d0;[F,S,P,ot][_0xe6b026(0xe5)](_0x1be916=>this[_0xe6b026(0x17d)](this['_commandService']['registerCommand'](_0x1be916)));}};E(Q,_0x5db5d0(0x23f),a[_0x5db5d0(0x400)][_0x5db5d0(0x319)]),E(Q,_0x5db5d0(0x121),_0x5db5d0(0x2e6)),E(Q,_0x5db5d0(0x286),it),E(Q,_0x5db5d0(0x427),at),Q=j([(0x0,a[_0x5db5d0(0x159)])(h[_0x5db5d0(0x352)],g['UniverDocsPlugin'],s['UniverDrawingPlugin'],c['UniverRenderEnginePlugin'],o[_0x5db5d0(0x1ea)],_[_0x5db5d0(0x142)],m[_0x5db5d0(0x255)],r['UniverShapeEditorPlugin'],v[_0x5db5d0(0x41e)],i[_0x5db5d0(0x1cc)],l['UniverSheetsMobileUIPlugin'],e['UniverShapeEditorMobileUIPlugin'],t[_0x5db5d0(0x166)]),A(0x1,(0x0,a[_0x5db5d0(0x22f)])(a['Injector'])),A(0x2,a[_0x5db5d0(0x2b9)]),A(0x3,a[_0x5db5d0(0x31f)]),A(0x4,c[_0x5db5d0(0x226)]),A(0x5,t[_0x5db5d0(0x225)])],Q);function xt(_0x12273f){const _0x229e2f=_0x5db5d0;return _0x12273f[_0x229e2f(0x106)]()||void 0x0;}function St(_0x3f35c0,_0x4f8f18,_0x412c3e){const _0x5234c0=_0x5db5d0;var _0x4b7841;return((_0x4b7841=_0x3f35c0[_0x5234c0(0x3fa)])==null?void 0x0:_0x4b7841[_0x5234c0(0x106)]())||(0x0,d['getObjectListPanelTypeName'])(_0x412c3e,(0x0,e[_0x5234c0(0x3a0)])(_0x3f35c0[_0x5234c0(0x3c1)]))+'\x20'+(_0x4f8f18+0x1);}function Ct(){const _0x4cf398=_0x5db5d0;var _0x3eb2bf;let _0x239272=(0x0,t[_0x4cf398(0x432)])(a['LocaleService']),_0x4812c9=(0x0,t[_0x4cf398(0x432)])(a[_0x4cf398(0x2b9)]),_0x32b671=(0x0,t[_0x4cf398(0x432)])(a['IUniverInstanceService']),_0x1ddc19=(0x0,t['useDependency'])(m[_0x4cf398(0x201)]),_0x5e5dce=(0x0,t[_0x4cf398(0x432)])(s['IDrawingManagerService']),_0x14fa69=(0x0,t['useDependency'])(c[_0x4cf398(0x226)]),[,_0x18d9f6]=(0x0,b[_0x4cf398(0x42c)])(_0x244ce3=>_0x244ce3+0x1,0x0),_0xa8ac51=_0x32b671['getCurrentUnitOfType'](a[_0x4cf398(0x400)][_0x4cf398(0x319)]),_0x3f956b=(_0xa8ac51==null?void 0x0:_0xa8ac51[_0x4cf398(0x2d1)]())??'',_0x3f108e=(_0xa8ac51==null||(_0x3eb2bf=_0xa8ac51[_0x4cf398(0x136)]())==null?void 0x0:_0x3eb2bf['getSheetId']())??'',_0x4a2b24=(0x0,t['useObservable'])(()=>_0x5e5dce[_0x4cf398(0x344)],_0x5e5dce['getFocusDrawings'](),!0x1,[_0x5e5dce]);(0x0,b[_0x4cf398(0x40d)])(()=>{const _0x218eba=_0x4cf398;let _0x4524ae=_0x4812c9['onCommandExecuted'](()=>_0x18d9f6());return()=>_0x4524ae[_0x218eba(0x1c4)]();},[_0x4812c9]);let _0x5143f2=(0x0,b[_0x4cf398(0x382)])(()=>(0x0,d[_0x4cf398(0x14e)])(_0x239272),[_0x239272]),_0x3bfb44=_0x3f956b&&_0x3f108e?_0x1ddc19['getDrawingData'](_0x3f956b,_0x3f108e):{},_0x539897=(_0x3f956b&&_0x3f108e?_0x1ddc19[_0x4cf398(0x31d)](_0x3f956b,_0x3f108e):[])[_0x4cf398(0x410)](_0x20f534=>_0x3bfb44[_0x20f534])['filter'](_0x437838=>!!_0x437838)['reverse'](),_0x2d1039=_0x539897['reduce']((_0x453abb,_0x5745eb)=>(_0x453abb[(0x0,d[_0x4cf398(0x32d)])(_0x5745eb['drawingType'])]+=0x1,_0x453abb),{'canvas':0x0,'floating':0x0}),_0x252df0={'canvas':0x0,'floating':0x0},_0x309749=_0x539897[_0x4cf398(0x410)]((_0x38a796,_0x56cb9d)=>{const _0x222437=_0x4cf398;let _0x1b2b5b=(0x0,d[_0x222437(0x32d)])(_0x38a796[_0x222437(0x3c1)]),_0x116a84=_0x1b2b5b===d[_0x222437(0x2f7)],_0x66deab=_0x252df0[_0x1b2b5b]++;return{'id':_0x38a796[_0x222437(0x3e3)],'name':St(_0x38a796,_0x56cb9d,_0x239272),'description':_0x38a796[_0x222437(0x35c)],'visible':_0x38a796[_0x222437(0x3b9)]!==!0x0,'selectable':_0x38a796[_0x222437(0x116)]!==!0x1,'sectionId':_0x1b2b5b,'sectionTitle':_0x116a84?_0x5143f2[_0x222437(0x1ed)]:_0x5143f2[_0x222437(0x262)],'capabilities':_0x116a84?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x116a84&&_0x66deab>0x0,'canMoveBackward':!_0x116a84&&_0x66deab<_0x2d1039[_0x222437(0x2c1)]-0x1,'canReorder':!_0x116a84};}),_0x297d8d=(0x0,b[_0x4cf398(0x382)])(()=>(_0x4a2b24??[])[_0x4cf398(0x38e)](_0x3c1782=>_0x3c1782[_0x4cf398(0x3bf)]===_0x3f956b&&_0x3c1782['subUnitId']===_0x3f108e)[_0x4cf398(0x410)](_0x231e14=>_0x231e14[_0x4cf398(0x3e3)]),[_0x4a2b24,_0x3f108e,_0x3f956b]),_0x4e8fd2=_0x297d8d[_0x297d8d[_0x4cf398(0x2fb)]-0x1]??null,_0x455eed=_0x3b19e0=>_0x1ddc19['getDrawingByParam']({'unitId':_0x3f956b,'subUnitId':_0x3f108e,'drawingId':_0x3b19e0})??null,_0x82e3b3=async _0x30cd36=>{const _0x282097=_0x4cf398;!_0x3f956b||!_0x30cd36[_0x282097(0x2fb)]||await _0x4812c9['executeCommand'](m[_0x282097(0x421)]['id'],{'unitId':_0x3f956b,'drawings':_0x30cd36});},_0x369a96=async(_0x49237e,_0x22ee22)=>{_0x455eed(_0x49237e)&&await _0x82e3b3([{'unitId':_0x3f956b,'subUnitId':_0x3f108e,'drawingId':_0x49237e,..._0x22ee22}]);},_0x5e5c9a=(_0x7b96d7,_0x249541)=>{const _0x1da828=_0x4cf398;if(!_0x3f956b||!_0x3f108e)return;let _0x47bf28=_0x249541?_0x297d8d[_0x1da828(0x175)](_0x7b96d7)?_0x297d8d['filter'](_0x273edc=>_0x273edc!==_0x7b96d7):[..._0x297d8d,_0x7b96d7]:[_0x7b96d7];_0x4812c9[_0x1da828(0x3b8)](s[_0x1da828(0x3dd)]['id'],_0x47bf28['map'](_0x501a8f=>({'unitId':_0x3f956b,'subUnitId':_0x3f108e,'drawingId':_0x501a8f})));let _0x1b3a75=_0x47bf28[_0x47bf28[_0x1da828(0x2fb)]-0x1];_0x1b3a75?(0x0,e[_0x1da828(0x32e)])(_0x14fa69,{'unitId':_0x3f956b,'subUnitId':_0x3f108e,'drawingId':_0x1b3a75}):(0x0,e['clearActiveDrawingObjects'])(_0x14fa69,_0x3f956b);},_0x160d5c=async(_0x203e8b,_0x5973ef)=>{const _0x4d314a=_0x4cf398;await _0x82e3b3(_0x203e8b[_0x4d314a(0x410)](_0x3dc742=>_0x455eed(_0x3dc742))[_0x4d314a(0x38e)](_0x35e088=>!!_0x35e088)[_0x4d314a(0x38e)](_0x1bacc9=>_0x1bacc9['hidden']!==!0x0!==_0x5973ef)[_0x4d314a(0x410)](_0x3d6bad=>({'unitId':_0x3f956b,'subUnitId':_0x3f108e,'drawingId':_0x3d6bad[_0x4d314a(0x3e3)],'hidden':!_0x5973ef})));},_0xdb59f5=async(_0x40f914,_0x2f916c)=>{const _0x453980=_0x4cf398;await _0x82e3b3(_0x40f914['map'](_0x3ebee5=>_0x455eed(_0x3ebee5))[_0x453980(0x38e)](_0x39fc34=>!!_0x39fc34)['filter'](_0x454964=>_0x454964[_0x453980(0x116)]!==!0x1!==_0x2f916c)['map'](_0x5772ff=>({'unitId':_0x3f956b,'subUnitId':_0x3f108e,'drawingId':_0x5772ff['drawingId'],'selectable':_0x2f916c})));},_0x254547=_0x2b6898=>{const _0x549eec=_0x4cf398;let _0x876f09=_0x455eed(_0x2b6898);if(_0x876f09)return _0xdb59f5([_0x2b6898],_0x876f09[_0x549eec(0x116)]===!0x1);},_0x4602c7=async(_0x9fd6df,_0x1c5100)=>{const _0x5af92f=_0x4cf398;var _0xdf1ac7;let _0x2ae9cf=xt(_0x1c5100);(((_0xdf1ac7=_0x455eed(_0x9fd6df))==null?void 0x0:_0xdf1ac7[_0x5af92f(0x3fa)])??void 0x0)!==_0x2ae9cf&&await _0x369a96(_0x9fd6df,{'name':_0x2ae9cf});},_0xea3835=async(_0x2b584c,_0x496296)=>{const _0x4997cc=_0x4cf398;var _0x5771be;let _0x463c0e=xt(_0x496296);(((_0x5771be=_0x455eed(_0x2b584c))==null?void 0x0:_0x5771be[_0x4997cc(0x35c)])??void 0x0)!==_0x463c0e&&await _0x369a96(_0x2b584c,{'description':_0x463c0e});},_0x30c4f6=async(_0x44892a,_0xfe7982)=>{const _0x281761=_0x4cf398;!_0x3f956b||!_0x3f108e||await _0x4812c9[_0x281761(0x3e5)](m[_0x281761(0x326)]['id'],{'unitId':_0x3f956b,'subUnitId':_0x3f108e,'drawingIds':[_0x44892a],'arrangeType':_0xfe7982});};return!_0x3f956b||!_0x3f108e?(0x0,p[_0x4cf398(0x37a)])(_0x4cf398(0x394),{'className':_0x4cf398(0x32c),'children':_0x5143f2[_0x4cf398(0x268)]}):(0x0,p['jsx'])(d[_0x4cf398(0x294)],{'items':_0x309749,'selectedIds':_0x297d8d,'focusedId':_0x4e8fd2,'labels':_0x5143f2,'showHeader':!0x1,'onSelect':_0x5e5c9a,'onSetVisible':_0x160d5c,'onSetSelectable':_0xdb59f5,'onCommitName':_0x4602c7,'onCommitDescription':_0xea3835,'onMoveForward':async _0x7ae4d5=>_0x30c4f6(_0x7ae4d5,a[_0x4cf398(0x150)][_0x4cf398(0x306)]),'onMoveBackward':async _0x1001de=>_0x30c4f6(_0x1001de,a[_0x4cf398(0x150)]['backward']),'onToggleSelectable':_0x254547});}function wt(){const _0x38229e=_0x5db5d0;let _0x17c9d8=(0x0,t['useDependency'])(s[_0x38229e(0x10d)]),_0x3a506d=(0x0,t[_0x38229e(0x148)])(()=>_0x17c9d8[_0x38229e(0x344)],_0x17c9d8[_0x38229e(0x3fc)](),!0x1,[_0x17c9d8]);return _0x3a506d[_0x38229e(0x2fb)]===0x0?null:(0x0,p['jsx'])(_0x38229e(0x394),{'children':(0x0,p[_0x38229e(0x39d)])(_0x38229e(0x394),{'className':_0x38229e(0x20f),'children':[(0x0,p['jsx'])(d[_0x38229e(0x1a7)],{'drawings':_0x3a506d,'hasCropper':!0x1}),(0x0,p[_0x38229e(0x37a)])(v[_0x38229e(0x13e)],{'drawings':_0x3a506d})]})});}function Tt(_0x481269){const _0x2f05ac=_0x5db5d0;let {unitId:_0xbe9989,subUnitId:_0x1c1d7d,shapeId:_0x269846}=_0x481269,_0x35bbe8=(0x0,t[_0x2f05ac(0x432)])(a['ICommandService']),_0x3d36de=(0x0,t['useDependency'])(Z);return(0x0,p[_0x2f05ac(0x37a)])(e[_0x2f05ac(0x2a2)],{..._0x481269,'positionEditor':(0x0,p[_0x2f05ac(0x37a)])(wt,{}),'onUpdateShapeData':(_0x3fc726,_0x15523e)=>{C(_0x35bbe8,_0xbe9989,_0x1c1d7d,_0x269846,_0x3fc726,_0x15523e);},'onUpdateLineShapeData':(_0xa813de,_0x399bf9)=>{ee(_0x35bbe8,_0xbe9989,_0x1c1d7d,_0x269846,_0xa813de,_0x399bf9);},'onUpdateShapeFillImage':_0x41c126=>{_0x3d36de['updateShapeFillImage']({'unitId':_0xbe9989,'subUnitId':_0x1c1d7d,'drawingId':_0x269846},_0x41c126);}});}function Et(_0x10e0fd){const _0x2a7064=_0x5db5d0;let _0x5d85c4=(0x0,t[_0x2a7064(0x432)])(e[_0x2a7064(0x38a)]),_0x283429=(0x0,t['useObservable'])(()=>_0x5d85c4[_0x2a7064(0x248)],_0x5d85c4[_0x2a7064(0x1bc)](),!0x1,[_0x5d85c4]),_0xe7d298=_0x10e0fd[_0x2a7064(0x2c7)]['extraProps'];return!_0xe7d298||!_0x283429?null:(0x0,p['jsx'])(Dt,{..._0xe7d298,'canvasElement':_0x10e0fd[_0x2a7064(0x2c7)][_0x2a7064(0x41c)]});}function Dt(_0x3e7a61){const _0x26b297=_0x5db5d0;let _0x3cbd74=(0x0,t[_0x26b297(0x432)])(a[_0x26b297(0x2b9)]),_0x1660c5=(0x0,t[_0x26b297(0x432)])(i[_0x26b297(0x1e0)]),{unitId:_0x1307b8,subUnitId:_0x5591a1,drawingId:_0x4872be,drawingType:_0x4ad896,shapeType:_0x3c5d9b}=_0x3e7a61,[_0x52c097,_0xfe55d1]=(0x0,b[_0x26b297(0x397)])(_0x3e7a61[_0x26b297(0x398)]),_0x40180b=(0x0,b['useMemo'])(()=>(0x0,e[_0x26b297(0x434)])(_0x52c097),[_0x52c097]),_0x5977f5=(0x0,b['useMemo'])(()=>(0x0,e[_0x26b297(0x329)])(_0x52c097),[_0x52c097]);(0x0,b[_0x26b297(0x40d)])(()=>{const _0x3f26f0=_0x26b297;let _0x366790=_0x3cbd74[_0x3f26f0(0x1aa)](_0x285c36=>{const _0x59e04d=_0x3f26f0;if(_0x285c36['id']!==i['UpdateSheetsShapeDataMutation']['id'])return;let _0x5b8de6=_0x1660c5[_0x59e04d(0x287)](_0x1307b8,_0x5591a1,_0x4872be);_0x5b8de6&&_0xfe55d1(_0x5b8de6);});return()=>_0x366790[_0x3f26f0(0x1c4)]();},[_0x3cbd74,_0x4872be,_0x1660c5,_0x5591a1,_0x1307b8]);let _0x3b40a1=_0x5ba2d3=>{_0xfe55d1(_0x44c5cd=>({..._0x44c5cd,..._0x5ba2d3}));},_0x38afe2=_0x47d916=>{const _0xfacbb0=_0x26b297;let _0x269d78=(0x0,e[_0xfacbb0(0x374)])(_0x52c097,_0x47d916);C(_0x3cbd74,_0x1307b8,_0x5591a1,_0x4872be,{'oldShapeData':{'shapeText':_0x52c097[_0xfacbb0(0x3de)]}},_0x269d78),_0x3b40a1(_0x269d78);},_0x421141=(0x0,e[_0x26b297(0x24a)])({'hostType':a[_0x26b297(0x400)]['UNIVER_SHEET'],'unitId':_0x1307b8,'subUnitId':_0x5591a1,'shapeId':_0x4872be,'shapeData':_0x52c097,'onUpdateBinding':_0x2a8bf1=>{const _0x2a9e1e=_0x26b297;let _0x23d3c6={'formulaBinding':_0x2a8bf1};C(_0x3cbd74,_0x1307b8,_0x5591a1,_0x4872be,{'oldShapeData':{'formulaBinding':_0x52c097[_0x2a9e1e(0x238)]}},_0x23d3c6),_0x3b40a1(_0x23d3c6);}});return(0x0,p[_0x26b297(0x39d)])(p[_0x26b297(0x1e3)],{'children':[(0x0,p[_0x26b297(0x37a)])(e[_0x26b297(0x158)],{'canvasElement':_0x3e7a61[_0x26b297(0x41c)],'shapeData':_0x52c097,'shapeType':_0x3c5d9b,'textStyle':{'ff':n[_0x26b297(0x2b4)][_0x26b297(0x3de)][_0x26b297(0x3a2)],'fs':n['ShapeDefaultConfig'][_0x26b297(0x3de)][_0x26b297(0x22e)],'cl':{'rgb':n['ShapeDefaultConfig'][_0x26b297(0x3de)][_0x26b297(0x18f)]},..._0x40180b},'textModel':_0x5977f5?{'ha':_0x5977f5['ha']??a[_0x26b297(0x20b)][_0x26b297(0x27b)],'va':_0x5977f5['va']??a[_0x26b297(0x3c2)][_0x26b297(0x2e0)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':n[_0x26b297(0x2b4)]['fill'],'defaultGradientEndColor':n[_0x26b297(0x2b4)]['gradientEndColor'],'defaultStrokeColor':n[_0x26b297(0x2b4)][_0x26b297(0x2b0)],'extensionGroups':_0x421141[_0x26b297(0x250)],'floatingObjectToolbarPosition':t[_0x26b297(0x207)]['SHEET'],'onUpdateShapeData':(_0x209397,_0x199fd5)=>{C(_0x3cbd74,_0x1307b8,_0x5591a1,_0x4872be,_0x209397,_0x199fd5),_0x199fd5&&_0x3b40a1(_0x199fd5);},'onUpdateText':_0x38afe2,'onOpenPanel':()=>{const _0x7895f=_0x26b297;_0x3cbd74[_0x7895f(0x3e5)](B['id'],{'unitId':_0x1307b8,'subUnitId':_0x5591a1,'drawingId':_0x4872be});},'onDelete':()=>{const _0xc3e302=_0x26b297;_0x3cbd74['executeCommand'](m[_0xc3e302(0x346)]['id'],{'unitId':_0x1307b8,'drawings':[{'unitId':_0x1307b8,'subUnitId':_0x5591a1,'drawingId':_0x4872be,'drawingType':_0x4ad896}]});}}),_0x421141[_0x26b297(0x160)]]});}function Ot(_0x14ad00){const _0x11915f=_0x5db5d0;return!!_0x14ad00&&'axisAlignSheetTransform'in _0x14ad00&&_0x11915f(0x194)in _0x14ad00;}const kt=(0x0,b[_0x5db5d0(0x257)])(()=>{const _0x6f0f21=_0x5db5d0;let _0x4c433a=(0x0,t['useDependency'])(U),_0x403692=(0x0,t[_0x6f0f21(0x432)])(i['SheetsShapeService']),_0x1fd6b1=(0x0,t['useDependency'])(s[_0x6f0f21(0x10d)]),_0x3ccc3e=(0x0,t[_0x6f0f21(0x432)])(a[_0x6f0f21(0x2b9)]),_0x18a881=(0x0,t[_0x6f0f21(0x432)])(t['UndoRedoGroupService']),_0x3edfe0=(0x0,t['useDependency'])(c[_0x6f0f21(0x226)]);return(0x0,p['jsx'])(e[_0x6f0f21(0x120)],{'adapter':(0x0,b[_0x6f0f21(0x382)])(()=>({'getShapeModel':(_0x2a0907,_0x355b71,_0x2fd3f1)=>_0x403692[_0x6f0f21(0x11e)](_0x2a0907,_0x355b71,_0x2fd3f1),'getShapeData':(_0x318545,_0x164a45,_0x4ab0dc)=>_0x403692[_0x6f0f21(0x287)](_0x318545,_0x164a45,_0x4ab0dc),'getDrawingTransform':(_0x1de989,_0x9ca176,_0xf3dd3e)=>{const _0x241ad9=_0x6f0f21;let _0x384939=_0x1fd6b1[_0x241ad9(0x15a)]({'unitId':_0x1de989,'subUnitId':_0x9ca176,'drawingId':_0xf3dd3e});return _0x384939==null?void 0x0:_0x384939[_0x241ad9(0x32a)];},'updateShapeText':({unitId:_0x25c071,subUnitId:_0x5743a6,shapeId:_0x109267,shapeText:_0x3f5cb1,oldShapeText:_0x470132,hostSize:_0x1e7767})=>{const _0x463ef1=_0x6f0f21;_0x18a881[_0x463ef1(0x271)](_0x25c071,()=>{const _0x573203=_0x463ef1;var _0x225d82;let _0x1c96c8=_0x3ccc3e[_0x573203(0x3b8)](S['id'],{'unitId':_0x25c071,'subUnitId':_0x5743a6,'shapeId':_0x109267,'shapeData':{'shapeText':_0x3f5cb1},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x470132}}});if(!_0x1c96c8||!_0x1e7767)return _0x1c96c8;let _0x515541=_0x1fd6b1[_0x573203(0x15a)]({'unitId':_0x25c071,'subUnitId':_0x5743a6,'drawingId':_0x109267}),_0x33fcab=_0x515541==null?void 0x0:_0x515541['transform'];if(!Ot(_0x515541)||!_0x33fcab)return!0x1;let _0x494696={..._0x33fcab,'width':_0x1e7767[_0x573203(0x2ad)],'height':_0x1e7767[_0x573203(0x3c5)]},_0x5a7f40=(_0x225d82=_0x3edfe0[_0x573203(0x2c4)](_0x25c071))==null||(_0x225d82=_0x225d82['with'](l[_0x573203(0x364)])[_0x573203(0x342)](_0x5743a6))==null?void 0x0:_0x225d82['skeleton'];return _0x3ccc3e[_0x573203(0x3b8)](m[_0x573203(0x421)]['id'],{'unitId':_0x25c071,'drawings':[{..._0x515541,'transform':_0x494696,'sheetTransform':_0x5a7f40?(0x0,m['transformToDrawingPosition'])(_0x494696,_0x5a7f40)??_0x515541[_0x573203(0x194)]:_0x515541[_0x573203(0x194)],'axisAlignSheetTransform':_0x5a7f40?(0x0,m[_0x573203(0x3f2)])(_0x494696,_0x5a7f40)??_0x515541[_0x573203(0xf9)]:_0x515541[_0x573203(0xf9)]}]});});},'updateHostSize':({unitId:_0x213966,subUnitId:_0x3b9191,shapeId:_0x2c7255,width:_0x4350db,height:_0x509480})=>{const _0x33b2bd=_0x6f0f21;var _0x5053de;let _0x5b5706=_0x1fd6b1[_0x33b2bd(0x15a)]({'unitId':_0x213966,'subUnitId':_0x3b9191,'drawingId':_0x2c7255}),_0x38b5eb=_0x5b5706==null?void 0x0:_0x5b5706['transform'];if(!Ot(_0x5b5706)||!_0x38b5eb)return;let _0x413706={..._0x38b5eb,'width':_0x4350db,'height':_0x509480},_0x476bb3=(_0x5053de=_0x3edfe0['getRenderUnitById'](_0x213966))==null||(_0x5053de=_0x5053de[_0x33b2bd(0x35a)](l[_0x33b2bd(0x364)])[_0x33b2bd(0x342)](_0x3b9191))==null?void 0x0:_0x5053de[_0x33b2bd(0x3f1)],_0x234390=_0x476bb3?(0x0,m[_0x33b2bd(0x39f)])(_0x413706,_0x476bb3)??_0x5b5706[_0x33b2bd(0x194)]:_0x5b5706[_0x33b2bd(0x194)],_0x32cacc=_0x476bb3?(0x0,m[_0x33b2bd(0x3f2)])(_0x413706,_0x476bb3)??_0x5b5706[_0x33b2bd(0xf9)]:_0x5b5706[_0x33b2bd(0xf9)];_0x3ccc3e['executeCommand'](m[_0x33b2bd(0x421)]['id'],{'unitId':_0x213966,'drawings':[{..._0x5b5706,'transform':_0x413706,'sheetTransform':_0x234390,'axisAlignSheetTransform':_0x32cacc}]});},'allowHostSizeShrink':({unitId:_0x127292,subUnitId:_0x21d729,shapeId:_0x436288})=>(0x0,e[_0x6f0f21(0x3c6)])(_0x403692[_0x6f0f21(0x287)](_0x127292,_0x21d729,_0x436288)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x3ccc3e,_0x1fd6b1,_0x3edfe0,_0x403692,_0x18a881]),'editingService':_0x4c433a,'editorUnitId':ne,'positionOptions':(0x0,b['useMemo'])(()=>({'viewportKeys':{'main':c[_0x6f0f21(0x198)]['VIEW_MAIN'],'leftTop':c[_0x6f0f21(0x198)][_0x6f0f21(0x36e)],'top':c['SHEET_VIEWPORT_KEY'][_0x6f0f21(0x3c9)],'left':c[_0x6f0f21(0x198)]['VIEW_MAIN_LEFT']},'getSkeleton':(_0x5ae672,_0xd1adee)=>{const _0x30d518=_0x6f0f21;var _0x2ccdbf;return((_0x2ccdbf=_0x5ae672[_0x30d518(0x35a)](l[_0x30d518(0x364)])[_0x30d518(0x342)](_0xd1adee[_0x30d518(0x20a)]))==null?void 0x0:_0x2ccdbf[_0x30d518(0x3f1)])??null;}}),[])});});let At=class extends a['Disposable']{constructor(_0x3fb35a,_0x568b90){const _0xdda604=_0x5db5d0;super(),this[_0xdda604(0x280)]=_0x3fb35a,this['_iconManager']=_0x568b90,this[_0xdda604(0x11a)](),this[_0xdda604(0x163)]();}[_0x5db5d0(0x11a)](){const _0xf2eb79=_0x5db5d0;this['_iconManager'][_0xf2eb79(0x18e)](_0xf2eb79(0x1b9))||this[_0xf2eb79(0x17d)](this[_0xf2eb79(0x2fc)]['register']({'ObjectLayersIcon':y[_0xf2eb79(0x1b9)]})),this['_iconManager'][_0xf2eb79(0x18e)](_0xf2eb79(0x38d))||this[_0xf2eb79(0x17d)](this[_0xf2eb79(0x2fc)][_0xf2eb79(0x3f3)]({'FlipHorizontalIcon':y[_0xf2eb79(0x38d)]})),this[_0xf2eb79(0x2fc)]['has'](_0xf2eb79(0x1c3))||this['disposeWithMe'](this[_0xf2eb79(0x2fc)][_0xf2eb79(0x3f3)]({'FlipVerticalIcon':y['FlipVerticalIcon']})),this[_0xf2eb79(0x2fc)][_0xf2eb79(0x18e)](_0xf2eb79(0x34a))||this[_0xf2eb79(0x17d)](this[_0xf2eb79(0x2fc)][_0xf2eb79(0x3f3)]({'BottomIcon':y[_0xf2eb79(0x34a)]})),this[_0xf2eb79(0x2fc)][_0xf2eb79(0x18e)](_0xf2eb79(0x267))||this['disposeWithMe'](this[_0xf2eb79(0x2fc)]['register']({'MoveDownIcon':y[_0xf2eb79(0x267)]})),this['_iconManager'][_0xf2eb79(0x18e)](_0xf2eb79(0x1dc))||this['disposeWithMe'](this[_0xf2eb79(0x2fc)][_0xf2eb79(0x3f3)]({'MoveUpIcon':y[_0xf2eb79(0x1dc)]})),this[_0xf2eb79(0x2fc)][_0xf2eb79(0x18e)](_0xf2eb79(0x3f9))||this[_0xf2eb79(0x17d)](this[_0xf2eb79(0x2fc)][_0xf2eb79(0x3f3)]({'ShapeFormatSettingIcon':y[_0xf2eb79(0x3f9)]})),this[_0xf2eb79(0x2fc)][_0xf2eb79(0x18e)](_0xf2eb79(0x11c))||this[_0xf2eb79(0x17d)](this[_0xf2eb79(0x2fc)][_0xf2eb79(0x3f3)]({'TopmostIcon':y[_0xf2eb79(0x11c)]}));}[_0x5db5d0(0x163)](){const _0x48d75a=_0x5db5d0;this[_0x48d75a(0x17d)](this[_0x48d75a(0x280)][_0x48d75a(0x3f3)](I,Tt)),this[_0x48d75a(0x17d)](this[_0x48d75a(0x280)][_0x48d75a(0x3f3)](L,Ct)),this['disposeWithMe'](this[_0x48d75a(0x280)][_0x48d75a(0x3f3)](ce,me)),this['disposeWithMe'](this[_0x48d75a(0x280)][_0x48d75a(0x3f3)](le,de)),this[_0x48d75a(0x280)][_0x48d75a(0x3b6)](d[_0x48d75a(0x401)])||this[_0x48d75a(0x17d)](this[_0x48d75a(0x280)]['register'](d[_0x48d75a(0x401)],pe)),this[_0x48d75a(0x17d)](this[_0x48d75a(0x280)][_0x48d75a(0x3f3)](R,Et)),this[_0x48d75a(0x17d)](this[_0x48d75a(0x280)][_0x48d75a(0x3f3)](Te,ke)),this[_0x48d75a(0x17d)](this[_0x48d75a(0x280)][_0x48d75a(0x3f3)](we,Ae)),this['disposeWithMe'](this[_0x48d75a(0x280)][_0x48d75a(0x3f3)](Ee,je)),this[_0x48d75a(0x17d)](this[_0x48d75a(0x280)][_0x48d75a(0x3f3)](De,Me)),this[_0x48d75a(0x17d)](this[_0x48d75a(0x280)]['register'](re,e['ShapeTextFloatToolbar'])),this[_0x48d75a(0x17d)](this[_0x48d75a(0x280)]['register']('SheetShapeTextEditorContainer',kt));}};At=j([A(0x0,(0x0,a[_0x5db5d0(0x22f)])(t[_0x5db5d0(0xd8)])),A(0x1,(0x0,a[_0x5db5d0(0x22f)])(t[_0x5db5d0(0x235)]))],At);const jt=_0x5db5d0(0x19e);let Mt=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x3be93c,_0x443268,_0x374f64,_0x371607,_0x59b40b,_0x5861b4){const _0x4c9c32=_0x5db5d0;super(),this[_0x4c9c32(0x25c)]=_0x3be93c,this['_ribbonService']=_0x443268,this[_0x4c9c32(0x3b1)]=_0x374f64,this[_0x4c9c32(0x12c)]=_0x371607,this[_0x4c9c32(0x104)]=_0x59b40b,this['_shapeFloatingToolbarService']=_0x5861b4,E(this,_0x4c9c32(0x3e4),!0x1),this[_0x4c9c32(0x25c)][_0x4c9c32(0x2a6)](tt),this[_0x4c9c32(0x17d)]((0x0,a['toDisposable'])(this[_0x4c9c32(0x3b1)][_0x4c9c32(0x344)]['subscribe'](()=>this['_update']()))),this['_update']();}['dispose'](){const _0x1da6ea=_0x5db5d0;this[_0x1da6ea(0x39c)]['setFallbackVisible'](!0x1,jt),this[_0x1da6ea(0x111)](),super[_0x1da6ea(0x1c4)]();}[_0x5db5d0(0x353)](){const _0xc7a9de=_0x5db5d0;var _0x4d5f46;let _0x243ea3=this[_0xc7a9de(0x3b1)][_0xc7a9de(0x3fc)](),_0xd73dec=_0x243ea3['length']===0x1?_0x243ea3[0x0]:void 0x0;if((_0xd73dec==null?void 0x0:_0xd73dec[_0xc7a9de(0x3c1)])!==a['DrawingTypeEnum'][_0xc7a9de(0x19d)]||this[_0xc7a9de(0x12c)][_0xc7a9de(0x16c)](_0xd73dec[_0xc7a9de(0x3bf)])!==a['UniverInstanceType'][_0xc7a9de(0x319)]){this[_0xc7a9de(0x39c)]['setFallbackVisible'](!0x1,jt),this[_0xc7a9de(0x111)]();return;}let _0x5a7d69=(0x0,e[_0xc7a9de(0xdd)])((_0x4d5f46=this['_renderManagerService'][_0xc7a9de(0x2c4)](_0xd73dec[_0xc7a9de(0x3bf)]))==null?void 0x0:_0x4d5f46['engine'][_0xc7a9de(0x12e)]())===_0xc7a9de(0x211);if(this[_0xc7a9de(0x39c)][_0xc7a9de(0x3db)](_0x5a7d69,jt),_0x5a7d69){this[_0xc7a9de(0x111)]();return;}this[_0xc7a9de(0x3e4)]||(this[_0xc7a9de(0x3e4)]=!0x0,this[_0xc7a9de(0xde)]['showContextualTab'](z,{'activate':!0x0}));}['_hide'](){const _0x8ee407=_0x5db5d0;this[_0x8ee407(0x3e4)]&&(this[_0x8ee407(0x3e4)]=!0x1,this[_0x8ee407(0xde)][_0x8ee407(0x2b5)](z),this[_0x8ee407(0xde)][_0x8ee407(0x2e9)]([]));}};Mt=j([A(0x0,t[_0x5db5d0(0x172)]),A(0x1,t['IRibbonService']),A(0x2,s['IDrawingManagerService']),A(0x3,a[_0x5db5d0(0x1c8)]),A(0x4,c['IRenderManagerService']),A(0x5,(0x0,a[_0x5db5d0(0x22f)])(e[_0x5db5d0(0x38a)]))],Mt);let Nt=class extends e[_0x5db5d0(0x26c)]{constructor(_0x3bf12b,_0x43fd44,_0x13b4bb,_0x1f2124,_0x4d54c5,_0x2d4bf2,_0x1d1aff,_0xffbcb5,_0xd23c66,_0xb0a066){super(_0x3bf12b,_0x43fd44,_0x13b4bb,_0x1f2124,_0x4d54c5,_0x2d4bf2,_0x1d1aff,_0xffbcb5,_0xd23c66,_0xb0a066,{'componentKey':re,'editorUnitId':ne});}};Nt=j([A(0x1,(0x0,a[_0x5db5d0(0x22f)])(g[_0x5db5d0(0x1e6)])),A(0x2,(0x0,a[_0x5db5d0(0x22f)])(_[_0x5db5d0(0x37f)])),A(0x3,(0x0,a['Inject'])(_[_0x5db5d0(0x419)])),A(0x4,a[_0x5db5d0(0x2b9)]),A(0x5,(0x0,a['Inject'])(_[_0x5db5d0(0x420)])),A(0x6,(0x0,a[_0x5db5d0(0x22f)])(e[_0x5db5d0(0x380)])),A(0x7,(0x0,a[_0x5db5d0(0x22f)])(g['DocInterceptorService'])),A(0x8,(0x0,a['Inject'])(_[_0x5db5d0(0x144)])),A(0x9,(0x0,a[_0x5db5d0(0x22f)])(U))],Nt);let $=class extends a[_0x5db5d0(0x17a)]{constructor(_0x5209f5=ct,_0x4cc0b2,_0x4abd0a,_0x2ed204,_0x3ce49f){const _0x308cba=_0x5db5d0;super(),this[_0x308cba(0x3d7)]=_0x5209f5,this[_0x308cba(0x418)]=_0x4cc0b2,this[_0x308cba(0x1ad)]=_0x4abd0a,this['_configService']=_0x2ed204,this[_0x308cba(0x104)]=_0x3ce49f;let {..._0x38675f}=(0x0,a[_0x308cba(0x1d4)])({},ct,this['_config']);this[_0x308cba(0x3d1)][_0x308cba(0x2ba)](st,_0x38675f),this[_0x308cba(0x18b)]();}[_0x5db5d0(0x283)](){const _0x460313=_0x5db5d0;this['_renderManagerService'][_0x460313(0x25a)](a[_0x460313(0x400)][_0x460313(0x195)],[Nt]),(0x0,a[_0x460313(0x11b)])(this[_0x460313(0x418)],[[W],[K],[M],[Y]]);}['onSteady'](){const _0x1e2412=_0x5db5d0;this['_injector']['get'](W)[_0x1e2412(0x41a)]();}[_0x5db5d0(0x2f6)](){const _0x11f39f=_0x5db5d0;[[q],[N],[J]][_0x11f39f(0xe5)](_0x3a5a6=>this[_0x11f39f(0x418)][_0x11f39f(0x381)](_0x3a5a6)),(0x0,a['touchDependencies'])(this[_0x11f39f(0x418)],[[J],[N]]),this[_0x11f39f(0x104)]['registerRenderModule'](a[_0x11f39f(0x400)]['UNIVER_SHEET'],[q]),this['_renderManagerService'][_0x11f39f(0x25a)](a['UniverInstanceType']['UNIVER_SHEET'],[lt]),this['_renderManagerService'][_0x11f39f(0x25a)](a[_0x11f39f(0x400)][_0x11f39f(0x319)],[bt]),this[_0x11f39f(0x104)][_0x11f39f(0x25a)](a[_0x11f39f(0x400)]['UNIVER_SHEET'],[dt]);}[_0x5db5d0(0xff)](){const _0x2f0bc2=_0x5db5d0;this['_injector']['add']([At]),this[_0x2f0bc2(0x418)][_0x2f0bc2(0x3b6)](At);let _0x591144=this['_injector'];[[W],[K],[M],[Y],[Z],[U],[G],[V],[X],[Mt]][_0x2f0bc2(0xe5)](_0x454272=>_0x591144[_0x2f0bc2(0x381)](_0x454272)),(0x0,a[_0x2f0bc2(0x11b)])(this[_0x2f0bc2(0x418)],[[W],[K],[M],[Z],[U],[G],[V],[X],[Mt]]);}[_0x5db5d0(0x18b)](){const _0x492b13=_0x5db5d0;[F,S,mt,B,ie,P,oe,se][_0x492b13(0xe5)](_0x405de2=>this[_0x492b13(0x17d)](this[_0x492b13(0x1ad)][_0x492b13(0x154)](_0x405de2)));}};E($,_0x5db5d0(0x23f),a[_0x5db5d0(0x400)][_0x5db5d0(0x319)]),E($,_0x5db5d0(0x121),_0x5db5d0(0x2e6)),E($,_0x5db5d0(0x286),it),E($,_0x5db5d0(0x427),at),$=j([(0x0,a[_0x5db5d0(0x159)])(h[_0x5db5d0(0x352)],g[_0x5db5d0(0x30c)],s[_0x5db5d0(0x215)],d[_0x5db5d0(0x246)],c[_0x5db5d0(0x33e)],o[_0x5db5d0(0x1ea)],_['UniverDocsUIPlugin'],m['UniverSheetsDrawingPlugin'],r['UniverShapeEditorPlugin'],v[_0x5db5d0(0x3f7)],i['UniverSheetsShapePlugin'],l[_0x5db5d0(0x298)],e[_0x5db5d0(0x1dd)]),A(0x1,(0x0,a['Inject'])(a[_0x5db5d0(0x167)])),A(0x2,a['ICommandService']),A(0x3,a['IConfigService']),A(0x4,c[_0x5db5d0(0x226)])],$),exports[_0x5db5d0(0x36b)]=tt,exports['SheetsShapeUIMenuSchema']=rt,Object['defineProperty'](exports,_0x5db5d0(0x399),{'enumerable':!0x0,'get':function(){return Q;}}),Object['defineProperty'](exports,_0x5db5d0(0x204),{'enumerable':!0x0,'get':function(){return $;}});