@univerjs-pro/sheets-shape-ui 1.4.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/README.md +7 -7
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/index.js +1 -1
  23. package/lib/es/locale/ar-SA.js +1 -1
  24. package/lib/es/locale/ca-ES.js +1 -1
  25. package/lib/es/locale/de-DE.js +1 -1
  26. package/lib/es/locale/en-US.js +1 -1
  27. package/lib/es/locale/es-ES.js +1 -1
  28. package/lib/es/locale/fa-IR.js +1 -1
  29. package/lib/es/locale/fr-FR.js +1 -1
  30. package/lib/es/locale/id-ID.js +1 -1
  31. package/lib/es/locale/it-IT.js +1 -1
  32. package/lib/es/locale/ja-JP.js +1 -1
  33. package/lib/es/locale/ko-KR.js +1 -1
  34. package/lib/es/locale/pl-PL.js +1 -1
  35. package/lib/es/locale/pt-BR.js +1 -1
  36. package/lib/es/locale/ru-RU.js +1 -1
  37. package/lib/es/locale/sk-SK.js +1 -1
  38. package/lib/es/locale/vi-VN.js +1 -1
  39. package/lib/es/locale/zh-CN.js +1 -1
  40. package/lib/es/locale/zh-HK.js +1 -1
  41. package/lib/es/locale/zh-TW.js +1 -1
  42. package/lib/index.js +1 -1
  43. package/lib/locale/ar-SA.js +1 -1
  44. package/lib/locale/ca-ES.js +1 -1
  45. package/lib/locale/de-DE.js +1 -1
  46. package/lib/locale/en-US.js +1 -1
  47. package/lib/locale/es-ES.js +1 -1
  48. package/lib/locale/fa-IR.js +1 -1
  49. package/lib/locale/fr-FR.js +1 -1
  50. package/lib/locale/id-ID.js +1 -1
  51. package/lib/locale/it-IT.js +1 -1
  52. package/lib/locale/ja-JP.js +1 -1
  53. package/lib/locale/ko-KR.js +1 -1
  54. package/lib/locale/pl-PL.js +1 -1
  55. package/lib/locale/pt-BR.js +1 -1
  56. package/lib/locale/ru-RU.js +1 -1
  57. package/lib/locale/sk-SK.js +1 -1
  58. package/lib/locale/vi-VN.js +1 -1
  59. package/lib/locale/zh-CN.js +1 -1
  60. package/lib/locale/zh-HK.js +1 -1
  61. package/lib/locale/zh-TW.js +1 -1
  62. package/lib/types/controllers/sheet-shape-clipboard.controller.d.ts +8 -3
  63. package/lib/types/controllers/sheet-shape-render.controller.d.ts +1 -0
  64. package/lib/types/controllers/sheets-shape-ui-permission.controller.d.ts +3 -2
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +21 -21
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5e988f=_0x2dd2;(function(_0x1927c6,_0x2d655b){const _0x3ecaee=_0x2dd2,_0x33c76=_0x1927c6();while(!![]){try{const _0x1bfad0=-parseInt(_0x3ecaee(0x373))/0x1*(parseInt(_0x3ecaee(0x434))/0x2)+parseInt(_0x3ecaee(0x178))/0x3*(parseInt(_0x3ecaee(0x48b))/0x4)+parseInt(_0x3ecaee(0x4a2))/0x5+-parseInt(_0x3ecaee(0x319))/0x6+-parseInt(_0x3ecaee(0x3c8))/0x7*(parseInt(_0x3ecaee(0x24d))/0x8)+parseInt(_0x3ecaee(0x4ae))/0x9*(parseInt(_0x3ecaee(0x32f))/0xa)+-parseInt(_0x3ecaee(0x333))/0xb*(-parseInt(_0x3ecaee(0x2ee))/0xc);if(_0x1bfad0===_0x2d655b)break;else _0x33c76['push'](_0x33c76['shift']());}catch(_0x25121b){_0x33c76['push'](_0x33c76['shift']());}}}(_0x1e9a,0xa879e),Object[_0x5e988f(0x200)](exports,Symbol[_0x5e988f(0x423)],{'value':_0x5e988f(0x287)}));let e=require('@univerjs-pro/shape-editor-ui'),t=require('@univerjs/ui'),n=require('@univerjs-pro/engine-shape'),r=require('@univerjs-pro/shape-editor'),i=require('@univerjs-pro/sheets-shape'),a=require('@univerjs/core'),o=require('@univerjs/sheets'),s=require('@univerjs/drawing'),c=require('@univerjs/engine-render'),l=require('@univerjs/sheets-ui'),u=require('rxjs'),d=require('@univerjs/drawing-ui'),f=require('@univerjs/design'),p=require('react/jsx-runtime'),m=require('@univerjs/sheets-drawing'),h=require('@univerjs-pro/license'),g=require('@univerjs/docs'),_=require('@univerjs/docs-ui'),v=require('@univerjs/sheets-drawing-ui'),y=require('@univerjs/icons'),b=require('react');function x(_0x2e13e6,_0x4a6848){const _0x117510=_0x5e988f;let _0x5207ba={};for(let _0x555de9 of Object['keys'](_0x4a6848)){let _0x56eb75=_0x4a6848[_0x555de9],_0x36863b=_0x2e13e6[_0x555de9];_0x5207ba[_0x555de9]=_0x36863b===void 0x0?void 0x0:typeof _0x56eb75==_0x117510(0x2e0)&&_0x56eb75&&!Array[_0x117510(0x4d4)](_0x56eb75)&&typeof _0x36863b==_0x117510(0x2e0)&&_0x36863b&&!Array[_0x117510(0x4d4)](_0x36863b)?x(_0x36863b,_0x56eb75):_0x36863b;}return _0x5207ba;}const S={'type':a[_0x5e988f(0x2a0)][_0x5e988f(0x1b4)],'id':_0x5e988f(0x2a6),'handler':(_0x52afcd,_0x38efd0)=>{const _0x492a7a=_0x5e988f;let _0x4e135e=_0x52afcd['get'](i[_0x492a7a(0x44c)]),{unitId:_0x1cccef,subUnitId:_0x469f37,shapeType:_0x4d4553,shapeId:_0x4f377e,shapeData:_0x25240c,replaceShapeData:_0x306892,oldShapeJSON:_0x140c1f}=_0x38efd0;if(!_0x4e135e[_0x492a7a(0x2c6)](_0x1cccef,_0x469f37,_0x4f377e))return!0x1;let _0x104c32=_0x52afcd[_0x492a7a(0x329)](a[_0x492a7a(0x32c)]),_0x38c096=_0x52afcd[_0x492a7a(0x329)](a['IUndoRedoService']),{oldShapeType:_0x12b7e3,oldShapeData:_0x93dc8={}}=_0x140c1f,_0x40b9db=_0x306892?_0x93dc8:x(_0x93dc8,_0x25240c||{}),_0x4e988f={'id':i[_0x492a7a(0x17c)]['id'],'params':{'unitId':_0x1cccef,'subUnitId':_0x469f37,'shapeId':_0x4f377e,'shapeType':_0x4d4553,'shapeData':_0x25240c,'replace':_0x306892}},_0x2189f9={'id':i['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x1cccef,'subUnitId':_0x469f37,'shapeId':_0x4f377e,'shapeType':_0x12b7e3,'shapeData':_0x40b9db,'replace':_0x306892}};return _0x104c32['syncExecuteCommand'](_0x4e988f['id'],_0x4e988f['params'])?(_0x38c096[_0x492a7a(0x1f1)]({'unitID':_0x1cccef,'undoMutations':[_0x2189f9],'redoMutations':[_0x4e988f]}),!0x0):!0x1;}};function C(_0x17b3a5,_0x5643bc,_0x4f8370,_0x90285b,_0x588933,_0x3c523b){const _0x3b83b5=_0x5e988f;let _0x554747={'unitId':_0x5643bc,'subUnitId':_0x4f8370,'shapeId':_0x90285b,'shapeData':_0x3c523b,'oldShapeJSON':_0x588933};return _0x17b3a5[_0x3b83b5(0x32b)](S['id'],_0x554747);}function w(_0x4e1edf,_0x5ce6b3,_0x29df01,_0x2c0098,_0x4176cb,_0x3cf745){const _0x49b10f=_0x5e988f;let _0x5703ce={'unitId':_0x5ce6b3,'subUnitId':_0x29df01,'shapeId':_0x2c0098,'shapeData':_0x3cf745,'oldShapeJSON':_0x4176cb};return _0x4e1edf[_0x49b10f(0x32b)](S['id'],_0x5703ce);}function T(_0x3e337f){'@babel/helpers - typeof';const _0x177394=_0x5e988f;return T=typeof Symbol=='function'&&typeof Symbol[_0x177394(0x1df)]==_0x177394(0x2c8)?function(_0x992431){return typeof _0x992431;}:function(_0xcef0a6){const _0x51ada5=_0x177394;return _0xcef0a6&&typeof Symbol==_0x51ada5(0x2f8)&&_0xcef0a6['constructor']===Symbol&&_0xcef0a6!==Symbol[_0x51ada5(0x36a)]?_0x51ada5(0x2c8):typeof _0xcef0a6;},T(_0x3e337f);}function ee(_0x448d6e,_0x4cf612){const _0x42c6fa=_0x5e988f;if(T(_0x448d6e)!='object'||!_0x448d6e)return _0x448d6e;var _0x56b7c6=_0x448d6e[Symbol['toPrimitive']];if(_0x56b7c6!==void 0x0){var _0x2fae1f=_0x56b7c6['call'](_0x448d6e,_0x4cf612||_0x42c6fa(0x244));if(T(_0x2fae1f)!=_0x42c6fa(0x2e0))return _0x2fae1f;throw TypeError(_0x42c6fa(0x2a9));}return(_0x4cf612==='string'?String:Number)(_0x448d6e);}function te(_0x5f5712){const _0x51ed9f=_0x5e988f;var _0x1b434a=ee(_0x5f5712,'string');return T(_0x1b434a)==_0x51ed9f(0x2c8)?_0x1b434a:_0x1b434a+'';}function E(_0x12a3b0,_0x8cf1b2,_0x3244bc){const _0xdf66=_0x5e988f;return(_0x8cf1b2=te(_0x8cf1b2))in _0x12a3b0?Object[_0xdf66(0x200)](_0x12a3b0,_0x8cf1b2,{'value':_0x3244bc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x12a3b0[_0x8cf1b2]=_0x3244bc,_0x12a3b0;}function ne(_0x1f9dad,_0x8901d4,_0x5d59a3){const _0x2d089d=_0x5e988f;let _0x379324={..._0x8901d4,'dataModel':{..._0x8901d4[_0x2d089d(0x42f)]??{},..._0x5d59a3?{'doc':_0x5d59a3}:null}},_0x2098be=(0x0,e[_0x2d089d(0x375)])(_0x1f9dad,_0x379324),_0x204a5a=(0x0,e['resolveShapeTextEditorWrapStrategy'])(_0x2098be);return{'clip':(0x0,e[_0x2d089d(0x193)])(_0x2098be,_0x204a5a),'wrapStrategy':_0x204a5a};}var D=class extends c['Shape']{constructor(_0xef715b,_0x2db621){const _0x5d3a31=_0x5e988f;super(_0xef715b,_0x2db621),E(this,_0x5d3a31(0x3e6),[]),E(this,_0x5d3a31(0x389),void 0x0),E(this,_0x5d3a31(0x337),new e[(_0x5d3a31(0x4b7))](()=>this[_0x5d3a31(0x213)](!0x0),()=>this[_0x5d3a31(0x2b2)]())),E(this,_0x5d3a31(0x3ad),!0x0),E(this,'_drawingType',a[_0x5d3a31(0x181)][_0x5d3a31(0x1d7)]),E(this,_0x5d3a31(0x392),!0x0),this[_0x5d3a31(0x389)]={..._0x2db621},this[_0x5d3a31(0x337)][_0x5d3a31(0x3ef)](_0x2db621[_0x5d3a31(0x2d8)],_0x2db621[_0x5d3a31(0x26c)]!==!0x1),this[_0x5d3a31(0x4b4)](),this[_0x5d3a31(0x2b2)]();}[_0x5e988f(0x4b4)](){const _0x1fcc80=_0x5e988f;this[_0x1fcc80(0x163)][_0x1fcc80(0x194)](_0x14f1c5=>{this['_updateSrcRectByTransform'](_0x14f1c5);});}[_0x5e988f(0x481)](_0x10936e){const _0x2c34bd=_0x5e988f;this[_0x2c34bd(0x389)][_0x2c34bd(0x395)]=_0x10936e;}[_0x5e988f(0x487)](_0x3c4ed8){const _0x1da5af=_0x5e988f;if(this['_props'][_0x1da5af(0x253)])return null;let _0x6310f2=this[_0x1da5af(0x473)](_0x3c4ed8),{width:_0x3ab14f,height:_0x230987}=this[_0x1da5af(0x27a)]();return(0x0,e[_0x1da5af(0x4db)])(this[_0x1da5af(0x3e6)],{'x':(this['flipX']?-_0x6310f2['x']:_0x6310f2['x'])+_0x3ab14f/0x2,'y':_0x6310f2['y']+_0x230987/0x2});}['setEditing'](_0x1b35b6){const _0x5e21a1=_0x5e988f;this[_0x5e21a1(0x389)][_0x5e21a1(0x253)]=_0x1b35b6,this['makeDirty'](!0x0);}[_0x5e988f(0x2b1)](_0x37880a,_0x4769df=!0x0){const _0x5efafc=_0x5e988f;this[_0x5efafc(0x337)][_0x5efafc(0x3ef)](_0x37880a,_0x4769df),this['_props'][_0x5efafc(0x2d8)]=_0x37880a,this[_0x5efafc(0x2b2)](),this[_0x5efafc(0x213)](!0x0);}[_0x5e988f(0x2b2)](){const _0xd7c3c3=_0x5e988f;let _0xfd5e7d=this[_0xd7c3c3(0x389)][_0xd7c3c3(0x1f3)],_0x59276d=_0xfd5e7d[_0xd7c3c3(0x4b9)](),_0x307e80=(0x0,e['normalizeShapeTextModel'])(_0x59276d==null?void 0x0:_0x59276d['dataModel']),_0x8e645d=_0x307e80==null?void 0x0:_0x307e80[_0xd7c3c3(0x4af)],_0x27d779=this[_0xd7c3c3(0x337)][_0xd7c3c3(0x4c2)]();if(!_0x8e645d||_0x27d779[_0xd7c3c3(0x2b6)]===0x0)return;_0xfd5e7d[_0xd7c3c3(0x162)]({'width':this[_0xd7c3c3(0x254)],'height':this[_0xd7c3c3(0x457)]});let _0x4c855f=(0x0,e[_0xd7c3c3(0x169)])({'documentData':_0x27d779[_0xd7c3c3(0x4a5)](_0x37a001=>(0x0,r[_0xd7c3c3(0x1cb)])(_0x8e645d,_0x37a001)),'height':this[_0xd7c3c3(0x457)],'shapeData':_0xfd5e7d[_0xd7c3c3(0x2e3)](),'textRect':_0xfd5e7d[_0xd7c3c3(0x270)]({'left':0x0,'top':0x0,'width':this[_0xd7c3c3(0x254)],'height':this[_0xd7c3c3(0x457)]}),'width':this['width']});if(_0x4c855f){var _0x3cbd3a;this[_0xd7c3c3(0x31c)](_0x4c855f[_0xd7c3c3(0x254)],_0x4c855f[_0xd7c3c3(0x457)]),(_0x3cbd3a=this[_0xd7c3c3(0x1ed)]())==null||(_0x3cbd3a=_0x3cbd3a['getTransformer']())==null||_0x3cbd3a['debounceRefreshControls']();}}get[_0x5e988f(0x346)](){const _0x1408b7=_0x5e988f;return this[_0x1408b7(0x389)][_0x1408b7(0x346)];}get[_0x5e988f(0x369)](){const _0x1042a1=_0x5e988f;return this[_0x1042a1(0x389)][_0x1042a1(0x369)];}[_0x5e988f(0x440)](_0x17684c){const _0xec82c=_0x5e988f;if(this[_0xec82c(0x389)][_0xec82c(0x47f)]==null||!this['_transformCalculateSrcRect'])return;let {width:_0x8a1d5,height:_0x5bff32}=this,{width:_0x7a0ab6=0x0,height:_0x219db8=0x0}=_0x17684c[_0xec82c(0x1e3)],{left:_0x31665b=0x0,top:_0x58791e=0x0,right:_0x364f58=0x0,bottom:_0xf892e=0x0}=this['_props'][_0xec82c(0x47f)],_0x516916=_0x31665b,_0x5badb7=_0x58791e,_0xb751c8=_0x364f58,_0x2bb483=_0xf892e,_0x199723=!0x1;if(_0x7a0ab6!==0x0&&_0x7a0ab6!==_0x8a1d5){let _0x10d462=_0x31665b/_0x7a0ab6,_0x269448=_0x364f58/_0x7a0ab6;_0x516916=_0x8a1d5*_0x10d462,_0xb751c8=_0x8a1d5*_0x269448,_0x199723=!0x0;}if(_0x219db8!==0x0&&_0x219db8!==_0x5bff32){let _0x25f303=_0x58791e/_0x219db8,_0x3e917a=_0xf892e/_0x219db8;_0x5badb7=_0x5bff32*_0x25f303,_0x2bb483=_0x5bff32*_0x3e917a,_0x199723=!0x0;}_0x199723&&this['setSrcRect']({'left':_0x516916,'top':_0x5badb7,'right':_0xb751c8,'bottom':_0x2bb483});}[_0x5e988f(0x170)](_0x440a49){const _0x4cb4b5=_0x5e988f;this[_0x4cb4b5(0x389)]['srcRect']=_0x440a49,this[_0x4cb4b5(0x213)](!0x0);}[_0x5e988f(0x2b3)](_0x33c601){const _0x46b23a=_0x5e988f;this[_0x46b23a(0x389)][_0x46b23a(0x3c2)]=_0x33c601,this[_0x46b23a(0x213)](!0x0);}set['transform'](_0x160e47){this['_transform']=_0x160e47;}get[_0x5e988f(0x2fd)](){const _0x46e764=_0x5e988f;this[_0x46e764(0x15a)]||this['_setTransForm']();let _0x1dc4c7=this[_0x46e764(0x15a)][_0x46e764(0x1e8)]();return this[_0x46e764(0x358)](_0x1dc4c7);}get[_0x5e988f(0x1f3)](){const _0x3a0f71=_0x5e988f;return this[_0x3a0f71(0x389)]['shapeModel'];}get[_0x5e988f(0x3cd)](){const _0x2ac9a9=_0x5e988f;return this[_0x2ac9a9(0x389)][_0x2ac9a9(0x3cd)];}get[_0x5e988f(0x187)](){const _0x493451=_0x5e988f;return c[_0x493451(0x40b)][_0x493451(0x4a4)];}[_0x5e988f(0x22c)](_0x362aa3,_0x4ba8ea,_0x598587,_0x3870b6){const _0x417eea=_0x5e988f;let _0xc42833=this[_0x417eea(0x389)][_0x417eea(0x1f3)];if(!_0xc42833||!_0x4ba8ea)return;let _0x188cbf=_0x598587??this['width'],_0x27b17a=_0x3870b6??this[_0x417eea(0x457)],_0x39268e={'shapeType':_0xc42833['getShapeType'](),'width':_0x188cbf,'height':_0x27b17a},_0x2d4283={'renderMode':n['ShapeRenderModeEnum']['Path'],'oKey':this[_0x417eea(0x4de)],'image':this[_0x417eea(0x389)][_0x417eea(0x3c2)],'angle':this[_0x417eea(0x1d9)]};_0xc42833[_0x417eea(0x162)](_0x39268e),_0x362aa3[_0x417eea(0x1a1)]();let _0x30762f={'top':0x0,'left':0x0,'width':_0x188cbf,'height':_0x27b17a},_0x5beb47=_0xc42833[_0x417eea(0x3e7)](_0x30762f);_0x5beb47?this[_0x417eea(0x284)](_0x362aa3,_0x5beb47,_0x44361f=>{const _0x4a57fa=_0x417eea;_0xc42833[_0x4a57fa(0x387)](_0x44361f,_0x30762f,_0x2d4283);}):(this[_0x417eea(0x43a)](),_0xc42833[_0x417eea(0x387)](_0x362aa3,_0x30762f,_0x2d4283)),_0x362aa3[_0x417eea(0x327)]();let _0x43bb6a=_0xc42833[_0x417eea(0x4b9)](),_0x357e5c=_0xc42833[_0x417eea(0x270)](_0x30762f),_0x4f1b9a=_0xc42833[_0x417eea(0x1c0)]();if(_0x43bb6a&&_0x357e5c&&!_0x4f1b9a){_0x362aa3[_0x417eea(0x1a1)](),this[_0x417eea(0x1ee)]()[_0x417eea(0x174)]&&_0x362aa3[_0x417eea(0x2bc)](-0x1,0x1);let _0x2a9445=_0x188cbf/0x2,_0x22aec1=_0x27b17a/0x2;_0x362aa3[_0x417eea(0x39e)](-_0x2a9445,-_0x22aec1),_0x362aa3['beginPath'](),this[_0x417eea(0x293)](_0x362aa3,_0x43bb6a,_0x357e5c),_0x362aa3[_0x417eea(0x327)]();}}[_0x5e988f(0x2c4)](_0xcff805){}[_0x5e988f(0x293)](_0x7fbd5,_0x10e423,_0x78b049){const _0x321578=_0x5e988f;var _0x13f507;this[_0x321578(0x3e6)]=[],this[_0x321578(0x389)]['isEditing']||(!((_0x13f507=_0x10e423[_0x321578(0x42f)])!=null&&_0x13f507[_0x321578(0x4af)])&&_0x321578(0x4f6)in _0x10e423&&_0x10e423[_0x321578(0x4f6)]===!0x1?this[_0x321578(0x2f0)](_0x7fbd5,_0x10e423,_0x78b049):this[_0x321578(0x3ba)](_0x7fbd5,_0x10e423,_0x78b049));}[_0x5e988f(0x2f0)](_0x49d129,_0x4167ba,_0x50d2ea){const _0x12ea39=_0x5e988f;this['_drawRichText'](_0x49d129,{..._0x4167ba,'text':_0x4167ba[_0x12ea39(0x3eb)]??'','dataModel':{'doc':(0x0,e['plainShapeTextToDocumentData'])(_0x4167ba,_0x12ea39(0x4a8)+this[_0x12ea39(0x4de)])}},_0x50d2ea);}[_0x5e988f(0x3ba)](_0x263d9d,_0x2b239e,_0x48455e){const _0x1d30b1=_0x5e988f;(0x0,e[_0x1d30b1(0x37b)])(_0x263d9d,this[_0x1d30b1(0x337)],(_0x47d0e4,_0x4b72a9,_0x250c09)=>{const _0x37af19=_0x1d30b1;this[_0x37af19(0x18c)](_0x47d0e4,_0x2b239e,_0x48455e,_0x4b72a9,_0x250c09===_0x37af19(0x38b));});}[_0x5e988f(0x18c)](_0xa3cdcc,_0x626439,_0x433250,_0x2a0ab0,_0x5c80bf){const _0x241fc5=_0x5e988f;let _0x2785af=this['_props'][_0x241fc5(0x3a2)];if(!_0x626439['dataModel']||!_0x2785af)return;let _0x52fd01=(0x0,e[_0x241fc5(0x1dd)])(_0x626439['dataModel']);if(!_0x52fd01)return;let _0x3cd1dd=_0x52fd01[_0x241fc5(0x4af)];if(!_0x3cd1dd)return;let _0x1061e0=(0x0,r[_0x241fc5(0x1cb)])(_0x3cd1dd,_0x2a0ab0),_0x5038a9=_0x52fd01['va']??a[_0x241fc5(0x4f3)][_0x241fc5(0x436)],_0x2f5211=_0x52fd01['ha']??a[_0x241fc5(0x412)][_0x241fc5(0x275)],_0x12ba4b=ne(this[_0x241fc5(0x389)][_0x241fc5(0x1f3)][_0x241fc5(0x2e3)](),_0x626439,_0x1061e0),_0x4bcf1e=_0x626439['isHorizontal'],_0x15d1ca=(0x0,e['prepareShapeTextDocumentData'])(_0x1061e0,{'isHorizontal':_0x4bcf1e!==!0x1,'textRect':_0x433250,'verticalAlign':_0x5038a9,'horizontalAlign':_0x2f5211,'wrapStrategy':_0x12ba4b[_0x241fc5(0x32a)]}),_0x2d1c7b=new a[(_0x241fc5(0x1c3))](_0x15d1ca),_0x290a6f=new c[(_0x241fc5(0x380))](_0x2d1c7b),_0x2daa30=c[_0x241fc5(0x2d5)][_0x241fc5(0x4f4)](_0x290a6f,_0x2785af);_0x2daa30['calculate']();let _0x3fb207=_0x2daa30[_0x241fc5(0x4be)]()[_0x241fc5(0x3f5)],_0x2a7920=(0x0,e['resolveShapeTextDocumentRenderLayout'])({'contentHeight':_0x3fb207,'verticalAlign':_0x5038a9,'viewportHeight':_0x433250[_0x241fc5(0x457)]});_0x2d1c7b['updateDocumentStyle']({'pageSize':{'width':_0x4bcf1e===!0x1?_0x433250[_0x241fc5(0x457)]:_0x433250[_0x241fc5(0x254)],'height':(0x0,e[_0x241fc5(0x165)])(_0x1061e0,_0x2a7920[_0x241fc5(0x475)])}}),_0x2d1c7b[_0x241fc5(0x2c0)]({'t':_0x2a7920[_0x241fc5(0x40a)]}),_0x2daa30[_0x241fc5(0x2ae)]();let _0x58263d=new c[(_0x241fc5(0x26b))](_0x241fc5(0x2a3)+this[_0x241fc5(0x4de)],_0x2daa30,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x241fc5(0x213)](!0x0)});_0x58263d[_0x241fc5(0x31c)](_0x433250[_0x241fc5(0x254)],_0x2a7920['contentHeight']),_0xa3cdcc[_0x241fc5(0x1a1)](),_0xa3cdcc[_0x241fc5(0x1dc)](_0x433250[_0x241fc5(0x3d8)],_0x433250[_0x241fc5(0x480)]),_0x12ba4b[_0x241fc5(0x235)]&&(_0xa3cdcc[_0x241fc5(0x1f6)](),_0xa3cdcc[_0x241fc5(0x368)](0x0,_0x2a7920[_0x241fc5(0x4d9)],_0x433250[_0x241fc5(0x254)],_0x2a7920[_0x241fc5(0x264)]),_0xa3cdcc[_0x241fc5(0x235)]()),_0x2a7920['contentVerticalOffset']&&_0xa3cdcc[_0x241fc5(0x1dc)](0x0,_0x2a7920[_0x241fc5(0x31b)]),_0x58263d['draw'](_0xa3cdcc),_0x5c80bf&&(this['_hyperLinkRegions']=(0x0,e[_0x241fc5(0x400)])(_0x58263d,{'left':_0x433250['left'],'top':_0x433250[_0x241fc5(0x480)]+_0x2a7920[_0x241fc5(0x31b)]},_0x12ba4b[_0x241fc5(0x235)]?{'left':_0x433250[_0x241fc5(0x3d8)],'right':_0x433250[_0x241fc5(0x3d8)]+_0x433250[_0x241fc5(0x254)],'top':_0x433250[_0x241fc5(0x480)]+_0x2a7920[_0x241fc5(0x4d9)],'bottom':_0x433250[_0x241fc5(0x480)]+_0x2a7920[_0x241fc5(0x4d9)]+_0x2a7920[_0x241fc5(0x264)]}:void 0x0)),_0xa3cdcc[_0x241fc5(0x327)](),_0x58263d[_0x241fc5(0x4c1)](),_0x2daa30[_0x241fc5(0x4c1)](),_0x290a6f[_0x241fc5(0x4c1)](),_0x2d1c7b['dispose']();}[_0x5e988f(0x387)](_0x1b223b,_0x4d5980,_0x35aca9=!0x1){const _0x1738ce=_0x5e988f;if(!this[_0x1738ce(0x29c)])return this[_0x1738ce(0x213)](!0x1),this;let {width:_0xb545d3,height:_0xc5b85a,left:_0x86a264,top:_0x504895}=this,_0x4bc1c1=this[_0x1738ce(0x27a)]();if(_0xb545d3=_0x4bc1c1[_0x1738ce(0x254)],_0xc5b85a=_0x4bc1c1[_0x1738ce(0x457)],_0x86a264=_0x4bc1c1[_0x1738ce(0x3d8)],_0x504895=_0x4bc1c1['top'],this[_0x1738ce(0x3fb)](_0x4d5980)){let {top:_0x1aed1f,left:_0x5e97b0,bottom:_0x4c3d3a,right:_0x1aba0b}=_0x4d5980[_0x1738ce(0x277)];if(_0xb545d3+this[_0x1738ce(0x2b4)]+_0x86a264<_0x5e97b0||_0x1aba0b<_0x86a264||_0xc5b85a+this[_0x1738ce(0x2b4)]+_0x504895<_0x1aed1f||_0x4c3d3a<_0x504895)return this;}let _0x3f3075=_0x86a264+_0xb545d3/0x2,_0x5988c8=_0x504895+_0xc5b85a/0x2,_0xeaef22=this[_0x1738ce(0x2fd)][_0x1738ce(0x326)]();if(this['_props']['isEditing']){let _0xd9a9a8=this['getState'](),_0x3a5251=new c['Transform']();_0x3a5251[_0x1738ce(0x419)]({..._0xd9a9a8}),_0xeaef22=_0x3a5251[_0x1738ce(0x326)]();}return _0x1b223b[_0x1738ce(0x1a1)](),this[_0x1738ce(0x389)][_0x1738ce(0x1f3)][_0x1738ce(0x491)]===!0x0||_0x1b223b[_0x1738ce(0x2fd)](_0xeaef22[0x0],_0xeaef22[0x1],_0xeaef22[0x2],_0xeaef22[0x3],_0x3f3075,_0x5988c8),this[_0x1738ce(0x22c)](_0x1b223b,_0x4d5980,_0xb545d3,_0xc5b85a),_0x1b223b[_0x1738ce(0x327)](),this[_0x1738ce(0x213)](!0x1),this;}[_0x5e988f(0x473)](_0x4308d0){const _0x3f5c26=_0x5e988f;let {left:_0x5e4047,top:_0x196767,width:_0x4cb68d,height:_0x3a973b}=this[_0x3f5c26(0x27a)](),_0x7feeb7=this[_0x3f5c26(0x2fd)]['getMatrix'](),_0x18be4a=_0x5e4047+_0x4cb68d/0x2,_0x4824c5=_0x196767+_0x3a973b/0x2,_0x3c9d1b=new c[(_0x3f5c26(0x4e5))]([_0x7feeb7[0x0],_0x7feeb7[0x1],_0x7feeb7[0x2],_0x7feeb7[0x3],_0x18be4a,_0x4824c5]),_0x2094b8=this[_0x3f5c26(0x2c9)]();return(this['isInGroup']&&(_0x2094b8==null?void 0x0:_0x2094b8[_0x3f5c26(0x187)])===c['RENDER_CLASS_TYPE'][_0x3f5c26(0x43b)]?_0x2094b8[_0x3f5c26(0x173)]['multiply'](_0x3c9d1b):_0x3c9d1b)[_0x3f5c26(0x437)]()['applyPoint'](_0x4308d0);}['isHit'](_0x3fb77e){const _0x305df9=_0x5e988f;let {left:_0x107aee,top:_0x12765f,width:_0x1b941d,height:_0x2031fd}=this[_0x305df9(0x27a)](),_0x1e9825=_0x107aee+_0x1b941d/0x2,_0x227007=_0x12765f+_0x2031fd/0x2,_0x21ad47=this['transform'][_0x305df9(0x326)](),_0x4492d8=new c[(_0x305df9(0x4e5))]([_0x21ad47[0x0],_0x21ad47[0x1],_0x21ad47[0x2],_0x21ad47[0x3],_0x1e9825,_0x227007]),_0x9afbcc=this[_0x305df9(0x2c9)](),_0x2c66a1=(this[_0x305df9(0x31d)]&&(_0x9afbcc==null?void 0x0:_0x9afbcc['classType'])===c[_0x305df9(0x40b)][_0x305df9(0x43b)]?_0x9afbcc[_0x305df9(0x173)][_0x305df9(0x44f)](_0x4492d8):_0x4492d8)[_0x305df9(0x437)]()[_0x305df9(0x42b)](_0x3fb77e),_0x3c436d=_0x1b941d/0x2,_0x5b7545=_0x2031fd/0x2,_0xc4daf9=this[_0x305df9(0x389)][_0x305df9(0x1f3)];return _0xc4daf9&&_0xc4daf9[_0x305df9(0x1c0)]()?_0xc4daf9[_0x305df9(0x41a)](_0x2c66a1['x'],_0x2c66a1['y'],_0x1b941d,_0x2031fd):_0x2c66a1['x']>=-_0x3c436d-this[_0x305df9(0x2b4)]/0x2&&_0x2c66a1['x']<=_0x3c436d+this[_0x305df9(0x2b4)]/0x2&&_0x2c66a1['y']>=-_0x5b7545-this[_0x305df9(0x2b4)]/0x2&&_0x2c66a1['y']<=_0x5b7545+this['strokeWidth']/0x2;}[_0x5e988f(0x4c1)](){const _0x510c91=_0x5e988f;this[_0x510c91(0x337)][_0x510c91(0x4c1)](),this['_props'][_0x510c91(0x1f3)]=null,super[_0x510c91(0x4c1)]();}},O=class extends c[_0x5e988f(0x28e)]{constructor(_0x501872,_0x279111){const _0x316bb8=_0x5e988f;super(_0x501872,_0x279111),E(this,_0x316bb8(0x447),null),E(this,_0x316bb8(0x17b),null),E(this,'_unitId',null),E(this,_0x316bb8(0x363),null),_0x279111&&this[_0x316bb8(0x27b)](_0x279111);}['getDrawingSearch'](){const _0x34ddab=_0x5e988f;return{'unitId':this[_0x34ddab(0x308)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x34ddab(0x447)]};}['setShapeProps'](_0x5b1177){const _0x2dbd73=_0x5e988f;_0x5b1177[_0x2dbd73(0x3cd)]!==void 0x0&&(this[_0x2dbd73(0x447)]=_0x5b1177[_0x2dbd73(0x3cd)]),_0x5b1177['adjName']!==void 0x0&&(this[_0x2dbd73(0x17b)]=_0x5b1177[_0x2dbd73(0x1fe)]),_0x5b1177[_0x2dbd73(0x346)]!==void 0x0&&(this[_0x2dbd73(0x308)]=_0x5b1177[_0x2dbd73(0x346)]),_0x5b1177[_0x2dbd73(0x369)]!==void 0x0&&(this['_subUnitId']=_0x5b1177[_0x2dbd73(0x369)]),this[_0x2dbd73(0x49b)]({'width':_0x5b1177[_0x2dbd73(0x254)],'height':_0x5b1177[_0x2dbd73(0x457)]});}[_0x5e988f(0x22c)](_0x4ef216){const _0x3a5574=_0x5e988f;c[_0x3a5574(0x1c8)][_0x3a5574(0x370)](_0x4ef216,{'radius':n['ShapeDefaultConfig'][_0x3a5574(0x214)],'fill':n[_0x3a5574(0x291)]['adjHandleFill'],'stroke':n[_0x3a5574(0x291)][_0x3a5574(0x17e)],'strokeWidth':0x1,'evented':!0x0});}};function k(_0x3dc546,_0x1a0363){return function(_0x375422,_0x5cf52a){_0x1a0363(_0x375422,_0x5cf52a,_0x3dc546);};}function A(_0x105b93,_0x5355c0,_0x1f10a6,_0x5cd436){const _0xd41221=_0x5e988f;var _0x1235b8=arguments['length'],_0x3a57a4=_0x1235b8<0x3?_0x5355c0:_0x5cd436===null?_0x5cd436=Object['getOwnPropertyDescriptor'](_0x5355c0,_0x1f10a6):_0x5cd436,_0x5159c7;if(typeof Reflect==_0xd41221(0x2e0)&&typeof Reflect[_0xd41221(0x445)]==_0xd41221(0x2f8))_0x3a57a4=Reflect[_0xd41221(0x445)](_0x105b93,_0x5355c0,_0x1f10a6,_0x5cd436);else{for(var _0x424477=_0x105b93['length']-0x1;_0x424477>=0x0;_0x424477--)(_0x5159c7=_0x105b93[_0x424477])&&(_0x3a57a4=(_0x1235b8<0x3?_0x5159c7(_0x3a57a4):_0x1235b8>0x3?_0x5159c7(_0x5355c0,_0x1f10a6,_0x3a57a4):_0x5159c7(_0x5355c0,_0x1f10a6))||_0x3a57a4);}return _0x1235b8>0x3&&_0x3a57a4&&Object[_0xd41221(0x200)](_0x5355c0,_0x1f10a6,_0x3a57a4),_0x3a57a4;}let j=class extends a[_0x5e988f(0x302)]{constructor(_0x2a00d6,_0x5b2126,_0x14f6a1,_0x4c6358,_0x138814,_0x4e255d){const _0x59f015=_0x5e988f;super(),this['_drawingManagerService']=_0x2a00d6,this[_0x59f015(0x4d2)]=_0x5b2126,this[_0x59f015(0x1fb)]=_0x14f6a1,this['_imageIoService']=_0x4c6358,this[_0x59f015(0x1ec)]=_0x138814,this[_0x59f015(0x20b)]=_0x4e255d,E(this,_0x59f015(0x260),new Map()),this[_0x59f015(0x36f)](this[_0x59f015(0x20b)][_0x59f015(0x41d)][_0x59f015(0x24c)](_0x544ccd=>{const _0x3544d5=_0x59f015;var _0x5ef2ac;(_0x5ef2ac=this[_0x3544d5(0x260)]['get'](this['_formulaKey'](_0x544ccd[_0x3544d5(0x346)],_0x544ccd[_0x3544d5(0x369)],_0x544ccd[_0x3544d5(0x3cd)])))==null||_0x5ef2ac['forEach'](_0x5f1cd1=>_0x5f1cd1[_0x3544d5(0x2b1)](_0x544ccd[_0x3544d5(0x16a)],_0x544ccd[_0x3544d5(0x435)]));})),this[_0x59f015(0x36f)](this['_drawingManagerService']['remove$'][_0x59f015(0x24c)](_0x1e9930=>{_0x1e9930['forEach'](_0x38e1b7=>{const _0x3ec739=_0x2dd2;this[_0x3ec739(0x260)][_0x3ec739(0x362)](this[_0x3ec739(0x3bd)](_0x38e1b7[_0x3ec739(0x346)],_0x38e1b7['subUnitId'],_0x38e1b7[_0x3ec739(0x456)]));});}));}['renderDrawingShape'](_0x37becc,_0x123677,_0x3a6bf0){const _0xb507b9=_0x5e988f;let {transform:_0x33a016,drawingType:_0x21581a,srcRect:_0x12c27a,prstGeom:_0x1177f3,groupId:_0x4b66ab,unitId:_0x57b838,subUnitId:_0x5b1e6b,drawingId:_0x2f3f8a,isMultiTransform:_0x504000,transforms:_0x56e5fa,hidden:_0x28532d,selectable:_0x542787}=_0x37becc;if(_0x21581a!==a['DrawingTypeEnum'][_0xb507b9(0x1d7)]||!this[_0xb507b9(0x2f6)][_0xb507b9(0x361)]()||_0x33a016==null)return;let _0x194f1c=this[_0xb507b9(0x2f6)][_0xb507b9(0x38e)](),_0x34aa67=_0x504000&&_0x56e5fa?_0x56e5fa:[_0x33a016],_0x4cd061=[];for(let _0x3c503b of _0x34aa67){let {left:_0x26f1f7,top:_0x342e3e,width:_0x3cdd7a,height:_0x509d7b,angle:_0x103cdd,flipX:_0x578390,flipY:_0x531220,skewX:_0x5c1bc7,skewY:_0xa664dc}=_0x3c503b,_0x4b94a4=_0x34aa67['indexOf'](_0x3c503b),_0x9f3ea2=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x57b838,'subUnitId':_0x5b1e6b,'drawingId':_0x2f3f8a},_0x504000?_0x4b94a4:void 0x0),_0x170dfd=_0x123677[_0xb507b9(0x300)](_0x9f3ea2);if(_0x170dfd!=null){let _0x3691f9={'unitId':_0x57b838,'subUnitId':_0x5b1e6b,'shapeId':_0x2f3f8a};_0x170dfd instanceof D&&this[_0xb507b9(0x2de)](_0x170dfd,_0x3691f9),_0x170dfd[_0xb507b9(0x49b)]({'left':_0x26f1f7,'top':_0x342e3e,'width':_0x3cdd7a,'height':_0x509d7b,'angle':_0x103cdd,'flipX':_0x578390,'flipY':_0x531220,'skewX':_0x5c1bc7,'skewY':_0xa664dc});continue;}let _0x20da52=this[_0xb507b9(0x2f6)][_0xb507b9(0x3a5)](_0x57b838,_0x5b1e6b),_0x19aa27=_0x20da52[_0xb507b9(0x1af)](_0x2f3f8a);if(_0x123677[_0xb507b9(0x300)](_0x9f3ea2)||!this[_0xb507b9(0x2f6)][_0xb507b9(0x361)]())continue;let _0x3ad31d=this[_0xb507b9(0x4d2)]['getShapeModel'](_0x57b838,_0x5b1e6b,_0x2f3f8a);if(!_0x3ad31d)continue;let _0x176b3c=(0x0,n[_0xb507b9(0x3a7)])(_0x3ad31d[_0xb507b9(0x2d9)]())?{...e[_0xb507b9(0x3c5)],'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:e[_0xb507b9(0x3c5)],_0x5c5089=_0x3ad31d[_0xb507b9(0x2e3)]()[_0xb507b9(0x425)],_0x1feab3={'unitId':_0x57b838,'subUnitId':_0x5b1e6b,'shapeId':_0x2f3f8a};_0x5c5089&&this[_0xb507b9(0x20b)][_0xb507b9(0x3b6)](_0x1feab3,_0x5c5089);let _0x1ea71f=new D(_0x9f3ea2,{..._0x3c503b,'zIndex':_0x19aa27===-0x1?_0x20da52[_0xb507b9(0x2b6)]-0x1:_0x19aa27,'shapeModel':_0x3ad31d,'localeService':this[_0xb507b9(0x1fb)],'shapeId':_0x2f3f8a,'unitId':_0x57b838,'subUnitId':_0x5b1e6b,'visible':_0x28532d!==!0x0,'evented':_0x542787!==!0x1,'formulaPresentation':_0x5c5089?this[_0xb507b9(0x20b)][_0xb507b9(0x24e)](_0x1feab3):void 0x0,'animateFormulaPresentation':(_0x5c5089==null?void 0x0:_0x5c5089[_0xb507b9(0x435)])!==!0x1,'transformerConfig':_0x176b3c});if(_0x5c5089){let _0x2602ae=this[_0xb507b9(0x3bd)](_0x57b838,_0x5b1e6b,_0x2f3f8a),_0x118f5a=this[_0xb507b9(0x260)][_0xb507b9(0x329)](_0x2602ae)??new Set();_0x118f5a[_0xb507b9(0x4b5)](_0x1ea71f),this[_0xb507b9(0x260)]['set'](_0x2602ae,_0x118f5a);}_0x123677[_0xb507b9(0x1b8)](_0x1ea71f,c[_0xb507b9(0x245)]),_0x194f1c&&_0x123677[_0xb507b9(0x208)](_0x1ea71f),_0x4b66ab&&(0x0,d[_0xb507b9(0x43e)])({'drawingId':_0x4b66ab,'unitId':_0x57b838,'subUnitId':_0x5b1e6b},_0x1ea71f,_0x123677,this['_drawingManagerService']),_0x1177f3!=null&&_0x1ea71f['setPrstGeom'](_0x1177f3),_0x12c27a!=null&&_0x1ea71f['setSrcRect'](_0x12c27a);let _0x30eb9a=this[_0xb507b9(0x3f4)](_0x1ea71f,_0x3ad31d[_0xb507b9(0x2e3)]());if(_0x30eb9a){var _0x2f2c1b;_0x3a6bf0==null||(_0x2f2c1b=_0x3a6bf0['resourceCollector'])==null||_0x2f2c1b[_0xb507b9(0x4b5)](_0x30eb9a);}_0x4cd061[_0xb507b9(0x4d5)](_0x1ea71f);}return _0x4cd061;}[_0x5e988f(0x3bd)](_0x4579e8,_0x590608,_0xb289f2){return _0x4579e8+'\x00'+_0x590608+'\x00'+_0xb289f2;}[_0x5e988f(0x2de)](_0x2bb338,_0x1a916b){const _0x2089d6=_0x5e988f;let _0x560720=this[_0x2089d6(0x4d2)][_0x2089d6(0x2c6)](_0x1a916b['unitId'],_0x1a916b['subUnitId'],_0x1a916b[_0x2089d6(0x3cd)]),_0x32bffa=_0x560720==null?void 0x0:_0x560720[_0x2089d6(0x2e3)]()[_0x2089d6(0x425)],_0x3fa339=this[_0x2089d6(0x3bd)](_0x1a916b['unitId'],_0x1a916b[_0x2089d6(0x369)],_0x1a916b[_0x2089d6(0x3cd)]);if(_0x32bffa){this[_0x2089d6(0x20b)][_0x2089d6(0x3b6)](_0x1a916b,_0x32bffa);let _0xf885dc=this[_0x2089d6(0x260)][_0x2089d6(0x329)](_0x3fa339)??new Set();_0xf885dc[_0x2089d6(0x4b5)](_0x2bb338),this[_0x2089d6(0x260)][_0x2089d6(0x33d)](_0x3fa339,_0xf885dc);}else{var _0x383e80;this[_0x2089d6(0x20b)]['unregister'](_0x1a916b),(_0x383e80=this[_0x2089d6(0x260)][_0x2089d6(0x329)](_0x3fa339))==null||_0x383e80[_0x2089d6(0x362)](_0x2bb338);}_0x2bb338[_0x2089d6(0x2b1)](_0x32bffa?this[_0x2089d6(0x20b)][_0x2089d6(0x24e)](_0x1a916b):void 0x0,(_0x32bffa==null?void 0x0:_0x32bffa[_0x2089d6(0x435)])!==!0x1);}[_0x5e988f(0x1a3)](_0x28ad3d){const _0x118ae5=_0x5e988f;let _0x5d2c1c=_0x28ad3d[_0x118ae5(0x1f3)][_0x118ae5(0x2e3)](),_0x484718=_0x5d2c1c[_0x118ae5(0x35c)];!_0x484718||_0x484718[_0x118ae5(0x21e)]!==n[_0x118ae5(0x464)][_0x118ae5(0x207)]||!_0x484718[_0x118ae5(0x4ca)]?_0x28ad3d[_0x118ae5(0x2b3)](void 0x0):this[_0x118ae5(0x3f4)](_0x28ad3d,_0x5d2c1c);}[_0x5e988f(0x3f4)](_0x2d7c74,_0xd251e3){const _0xc6d53e=_0x5e988f;let _0x42ae0f=_0xd251e3[_0xc6d53e(0x35c)];if(!_0x42ae0f||_0x42ae0f[_0xc6d53e(0x21e)]!==n[_0xc6d53e(0x464)][_0xc6d53e(0x207)]||!_0x42ae0f[_0xc6d53e(0x4ca)])return;let _0x5e3587=_0x42ae0f[_0xc6d53e(0x4ca)],_0x221de6=_0x42ae0f[_0xc6d53e(0x4ef)]??n[_0xc6d53e(0x3de)][_0xc6d53e(0x438)],_0x4dd115=this[_0xc6d53e(0x3fd)]['getImageSourceCache'](_0x5e3587,_0x221de6);if(_0x4dd115)_0x2d7c74[_0xc6d53e(0x2b3)](_0x4dd115);else return this[_0xc6d53e(0x271)](_0x2d7c74,_0x5e3587,_0x221de6);}async[_0x5e988f(0x271)](_0x2e13f5,_0x1c07eb,_0x5804e7){const _0x8f4642=_0x5e988f;let _0x102ef4;try{if(_0x5804e7===n[_0x8f4642(0x3de)]['UUID'])_0x102ef4=await this['_imageIoService']['getImage'](_0x1c07eb);else{if(_0x5804e7===n[_0x8f4642(0x3de)][_0x8f4642(0x438)])try{_0x102ef4=await this[_0x8f4642(0x1ec)][_0x8f4642(0x4e7)](_0x1c07eb);}catch{_0x102ef4=_0x1c07eb;}else _0x102ef4=_0x1c07eb;}}catch(_0x26d6e4){console[_0x8f4642(0x352)](_0x8f4642(0x483),_0x26d6e4);return;}await new Promise(_0x57fde5=>{const _0x3f9ef4=_0x8f4642;let _0x705cb=new window[(_0x3f9ef4(0x40d))]();_0x705cb[_0x3f9ef4(0x44b)]=()=>{const _0x2fa825=_0x3f9ef4;this[_0x2fa825(0x3fd)]['addImageSourceCache'](_0x1c07eb,_0x5804e7,_0x705cb),_0x2e13f5[_0x2fa825(0x2b3)](_0x705cb),_0x57fde5();},_0x705cb[_0x3f9ef4(0x386)]=()=>{const _0xe7f622=_0x3f9ef4;console[_0xe7f622(0x352)](_0xe7f622(0x41b),_0x1c07eb),_0x57fde5();},_0x705cb[_0x3f9ef4(0x338)]=_0x102ef4;});}};j=A([k(0x0,s[_0x5e988f(0x1bd)]),k(0x1,(0x0,a[_0x5e988f(0x334)])(i[_0x5e988f(0x44c)])),k(0x2,(0x0,a[_0x5e988f(0x334)])(a[_0x5e988f(0x3e1)])),k(0x3,a[_0x5e988f(0x3a0)]),k(0x4,a['IURLImageService']),k(0x5,(0x0,a[_0x5e988f(0x334)])(r[_0x5e988f(0x28b)]))],j);let M=class extends a[_0x5e988f(0x302)]{constructor(_0x194a63,_0x1bd42f,_0x548f24,_0xaa3175,_0x487e71,_0x4a7265){const _0x3a56d0=_0x5e988f;super(),this[_0x3a56d0(0x2f6)]=_0x194a63,this[_0x3a56d0(0x4d2)]=_0x1bd42f,this[_0x3a56d0(0x1ea)]=_0x548f24,this[_0x3a56d0(0x20e)]=_0xaa3175,this[_0x3a56d0(0x3fa)]=_0x487e71,this['_commandService']=_0x4a7265,E(this,_0x3a56d0(0x15e),null),E(this,_0x3a56d0(0x308),null),E(this,_0x3a56d0(0x363),null),E(this,_0x3a56d0(0x4e2),void 0x0),E(this,_0x3a56d0(0x25d),[]),E(this,_0x3a56d0(0x22b),0x0),E(this,_0x3a56d0(0x4c9),0x0),E(this,_0x3a56d0(0x27d),0x0),E(this,_0x3a56d0(0x1e1),0x0),E(this,'_isStartAdjusting',!0x1),E(this,_0x3a56d0(0x4e6),void 0x0),E(this,_0x3a56d0(0x2d6),void 0x0),E(this,_0x3a56d0(0x1bf),void 0x0),E(this,_0x3a56d0(0x30d),void 0x0),E(this,_0x3a56d0(0x3f6),!0x1),this[_0x3a56d0(0x3fc)](),this[_0x3a56d0(0x35e)]();}[_0x5e988f(0x16c)](_0x212c11,_0x13cbf5,_0x35d6be){const _0xa85892=_0x5e988f;let _0x222b38=this[_0xa85892(0x4d2)][_0xa85892(0x2c6)](_0x212c11,_0x13cbf5,_0x35d6be);if(_0x222b38)return _0x222b38[_0xa85892(0x2c4)]();}[_0x5e988f(0x274)](){const _0x44066c=_0x5e988f;this[_0x44066c(0x460)]();}[_0x5e988f(0x3e5)](){const _0x17a5fe=_0x5e988f;this[_0x17a5fe(0x4f2)](!0x0);}[_0x5e988f(0x164)](_0x5c8172){const _0xca9e48=_0x5e988f;this[_0xca9e48(0x3f6)]=_0x5c8172;}[_0x5e988f(0x29b)](_0x13f2e9,_0x255edf,_0x259855,_0x473bfb){const _0x1fcea9=_0x5e988f;let _0x1b1714=this[_0x1fcea9(0x4d2)][_0x1fcea9(0x2c6)](_0x13f2e9,_0x255edf,_0x259855);if(_0x1b1714)return _0x1b1714['getAdjustInfoByName'](_0x473bfb);}['_createShapeAdjustControls'](_0x80a483=!0x1){const _0x5ce631=_0x5e988f;if(this[_0x5ce631(0x308)]===null||this[_0x5ce631(0x363)]===null||this['_activeShapeId']===null)return;let _0x2aedaa=this[_0x5ce631(0x1ea)]['getRenderUnitById'](this['_unitId']);if(!_0x2aedaa||!_0x2aedaa[_0x5ce631(0x246)](l[_0x5ce631(0x306)])[_0x5ce631(0x42e)]())return;let {scene:_0x2b1074}=_0x2aedaa,_0x3a6aca={'unitId':this[_0x5ce631(0x308)],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']},_0x42bb54=this[_0x5ce631(0x2f6)]['getDrawingByParam'](_0x3a6aca),{transform:_0x124baa}=_0x42bb54;if(!_0x124baa||_0x42bb54[_0x5ce631(0x2aa)]!==a[_0x5ce631(0x181)][_0x5ce631(0x1d7)])return;let {left:_0x334ba9,top:_0x14415d,width:_0x2ec4d3,height:_0x21c6e9,flipX:_0x361d41,flipY:_0x18dcb6,angle:_0x44bd7c=0x0}=_0x124baa;if(_0x334ba9===void 0x0||_0x14415d===void 0x0)return;if(_0x80a483){let _0x4172ae=this[_0x5ce631(0x4d2)][_0x5ce631(0x2c6)](this[_0x5ce631(0x308)],this[_0x5ce631(0x363)],this[_0x5ce631(0x15e)]);_0x4172ae==null||_0x4172ae[_0x5ce631(0x162)]({'width':_0x2ec4d3??0x0,'height':_0x21c6e9??0x0}),this[_0x5ce631(0x4e2)]=_0x4172ae==null?void 0x0:_0x4172ae[_0x5ce631(0x2c4)]();}let _0x330bc0=this[_0x5ce631(0x4e2)];for(let _0x3cd800=0x0;_0x3cd800<_0x330bc0['length'];_0x3cd800++){let _0x166a05=_0x330bc0[_0x3cd800],_0x5a51ae=_0x166a05['x'],_0x4d781d=_0x166a05['y'];if(_0x361d41&&(_0x5a51ae=(_0x2ec4d3||0x0)-_0x5a51ae),_0x18dcb6&&(_0x4d781d=(_0x21c6e9||0x0)-_0x4d781d),_0x44bd7c!==0x0){let _0x411979=(_0x2ec4d3||0x0)/0x2,_0x1db446=(_0x21c6e9||0x0)/0x2,_0x5e611d=_0x44bd7c*Math['PI']/0xb4,_0x11e146=Math[_0x5ce631(0x2b7)](_0x5e611d),_0x549ae8=Math[_0x5ce631(0x3a4)](_0x5e611d),_0x42acb2=_0x5a51ae-_0x411979,_0x445050=_0x4d781d-_0x1db446;_0x5a51ae=_0x411979+(_0x42acb2*_0x11e146-_0x445050*_0x549ae8),_0x4d781d=_0x1db446+(_0x42acb2*_0x549ae8+_0x445050*_0x11e146);}let _0x5f488c={'x':_0x5a51ae,'y':_0x4d781d,'adjName':_0x166a05[_0x5ce631(0x1fe)]};this[_0x5ce631(0x256)](_0x2b1074,_0x5f488c,_0x5f488c[_0x5ce631(0x1fe)],_0x334ba9,_0x14415d,this['_unitId'],this[_0x5ce631(0x363)]);}}[_0x5e988f(0x4f2)](_0x4ebaa2=!0x1){const _0x3614d2=_0x5e988f;_0x4ebaa2&&(this[_0x3614d2(0x460)](),this['_createShapeAdjustControls'](_0x4ebaa2));}[_0x5e988f(0x256)](_0x43c0dc,_0xda0bf3,_0x281573,_0x3dcd4c,_0x42eb8d,_0x5cf69a,_0x2cc38f){const _0x3e0e4b=_0x5e988f;if(!this[_0x3e0e4b(0x15e)])return;let _0xf04751=_0x43c0dc[_0x3e0e4b(0x300)](_0x3e0e4b(0x36e)+this[_0x3e0e4b(0x15e)]+'-'+_0x281573);if(_0xf04751){_0xf04751[_0x3e0e4b(0x49b)]({'left':_0xda0bf3['x']+_0x3dcd4c-n[_0x3e0e4b(0x291)][_0x3e0e4b(0x214)],'top':_0xda0bf3['y']+_0x42eb8d-n[_0x3e0e4b(0x291)][_0x3e0e4b(0x214)]});return;}let _0x13ecba={'left':_0xda0bf3['x']+_0x3dcd4c-n[_0x3e0e4b(0x291)]['adjHandleSize'],'top':_0xda0bf3['y']+_0x42eb8d-n[_0x3e0e4b(0x291)][_0x3e0e4b(0x214)],'adjName':_0x281573,'shapeId':this[_0x3e0e4b(0x15e)],'unitId':_0x5cf69a,'subUnitId':_0x2cc38f,'width':n['ShapeDefaultConfig'][_0x3e0e4b(0x214)]+0x8,'height':n['ShapeDefaultConfig'][_0x3e0e4b(0x214)]+0x8,'zIndex':c[_0x3e0e4b(0x245)]+0x1,'evented':!0x0},_0x56638b=new O(_0x3e0e4b(0x36e)+this['_activeShapeId']+'-'+_0x281573,_0x13ecba);this[_0x3e0e4b(0x25d)][_0x3e0e4b(0x4d5)](_0x56638b),this['_attachAdjustEvent'](_0x56638b,_0x43c0dc,_0x281573),_0x43c0dc[_0x3e0e4b(0x1b8)](_0x56638b,c[_0x3e0e4b(0x245)]+0x1);}[_0x5e988f(0x460)](){const _0xd9b523=_0x5e988f;this[_0xd9b523(0x25d)][_0xd9b523(0x2b6)]!==0x0&&(this[_0xd9b523(0x25d)][_0xd9b523(0x424)](_0x344011=>{const _0x32712b=_0xd9b523;_0x344011[_0x32712b(0x4c1)]();}),this[_0xd9b523(0x25d)]=[]);}[_0x5e988f(0x26e)](){const _0x26209a=_0x5e988f;this[_0x26209a(0x371)]();}[_0x5e988f(0x37e)](_0xf846a8,_0x5b2038){const _0x432d00=_0x5e988f;var _0x147d75;let _0xb43bdc={'x':0x0,'y':0x0};if(!_0xf846a8||!_0x5b2038)return _0xb43bdc;let _0x194ba0=this[_0x432d00(0x1ea)][_0x432d00(0x188)](_0xf846a8);if(!_0x194ba0||!_0x194ba0[_0x432d00(0x246)](l[_0x432d00(0x306)])['getSkeleton'](_0x5b2038))return _0xb43bdc;let _0x3972f7=_0x194ba0[_0x432d00(0x246)](l[_0x432d00(0x49c)]),_0x3011ec=_0x3972f7==null?void 0x0:_0x3972f7[_0x432d00(0x43d)]();if(!_0x3011ec)return _0xb43bdc;let _0x38f0ad=(_0x147d75=this['_univerInstanceService']['getUnit'](_0xf846a8))==null?void 0x0:_0x147d75[_0x432d00(0x422)](_0x5b2038);if(!_0x38f0ad)return _0xb43bdc;let _0x3a2819=(0x0,l[_0x432d00(0x3d7)])(_0x3011ec[_0x432d00(0x2f2)],_0x3011ec[_0x432d00(0x239)],_0x194ba0['scene'],_0x38f0ad);return _0x3a2819?{'x':_0x3a2819[_0x432d00(0x2ea)],'y':_0x3a2819[_0x432d00(0x1fd)]}:_0xb43bdc;}[_0x5e988f(0x2ca)](_0x38a068,_0x2cbae0){const _0x17d8d3=_0x5e988f;var _0x6e577b;let _0x418daa=(_0x6e577b=this['_univerInstanceService'][_0x17d8d3(0x499)](_0x38a068))==null?void 0x0:_0x6e577b['getSheetBySheetId'](_0x2cbae0);return(_0x418daa==null?void 0x0:_0x418daa['getZoomRatio']())??0x1;}['_attachAdjustEvent'](_0x4d43da,_0x2d5ee3,_0x1c4c9b){const _0x5f480c=_0x5e988f;this[_0x5f480c(0x36f)]((0x0,a[_0x5f480c(0x1cc)])(_0x4d43da[_0x5f480c(0x452)][_0x5f480c(0x194)]((_0x10baa5,_0x1bf3ff)=>{const _0x3c3416=_0x5f480c;var _0x26283e,_0x5df18e,_0x343679,_0x4b5d3d;let _0x26036c=_0x4d43da[_0x3c3416(0x22d)]();this[_0x3c3416(0x4e6)]=this[_0x3c3416(0x29b)](_0x26036c[_0x3c3416(0x346)],_0x26036c[_0x3c3416(0x369)],_0x26036c[_0x3c3416(0x456)],_0x1c4c9b),this[_0x3c3416(0x2d6)]=this[_0x3c3416(0x4d2)]['getShapeModel'](_0x26036c[_0x3c3416(0x346)],_0x26036c[_0x3c3416(0x369)],_0x26036c[_0x3c3416(0x456)]);let _0x5a9e0d=this[_0x3c3416(0x2f6)][_0x3c3416(0x2fc)]({'unitId':this[_0x3c3416(0x308)],'subUnitId':this[_0x3c3416(0x363)],'drawingId':this['_activeShapeId']}),{transform:_0x24c2c5}=_0x5a9e0d;if(_0x24c2c5){let {left:_0x48aa68,top:_0x6299f9,width:_0x1b3d4e,height:_0x304402}=_0x24c2c5;this['_baseShapeLeft']=_0x48aa68||0x0,this['_baseShapeTop']=_0x6299f9||0x0,this[_0x3c3416(0x27d)]=_0x1b3d4e||0x0,this[_0x3c3416(0x1e1)]=_0x304402||0x0;}let _0x3ad4a7=!!((_0x26283e=_0x5a9e0d[_0x3c3416(0x2fd)])!=null&&_0x26283e['flipX']),_0x433d36=!!((_0x5df18e=_0x5a9e0d['transform'])!=null&&_0x5df18e[_0x3c3416(0x19a)]),_0x31d4a6=((_0x343679=_0x5a9e0d[_0x3c3416(0x2fd)])==null?void 0x0:_0x343679[_0x3c3416(0x1d9)])||0x0;this[_0x3c3416(0x35a)]=!0x0,_0x2d5ee3['disableObjectsEvent']();let _0x255c90={...((_0x4b5d3d=this['_activeAdjustInfo'])==null?void 0x0:_0x4b5d3d[_0x3c3416(0x3e9)])??{}};this[_0x3c3416(0x1bf)]=_0x2d5ee3[_0x3c3416(0x1c2)][_0x3c3416(0x194)]((_0x552605,_0x2cd6d8)=>{const _0xd7f6ec=_0x3c3416;if(!this[_0xd7f6ec(0x35a)])return;let {offsetX:_0x4faf65,offsetY:_0x3da1ff}=_0x552605,_0x37bca9=this[_0xd7f6ec(0x4e6)];if(this[_0xd7f6ec(0x2d6)]&&_0x37bca9){_0x2d5ee3[_0xd7f6ec(0x3a3)](),_0x2d5ee3[_0xd7f6ec(0x42d)](c[_0xd7f6ec(0x25f)][_0xd7f6ec(0x47c)]);let _0x4108f2={'left':0x0,'top':0x0,'width':this[_0xd7f6ec(0x27d)],'height':this['_baseShapeHeight']},_0x3b32c0=this[_0xd7f6ec(0x37e)](this['_unitId'],this[_0xd7f6ec(0x363)]),_0x2e4d9b=this[_0xd7f6ec(0x2ca)](this[_0xd7f6ec(0x308)],this[_0xd7f6ec(0x363)]),_0x138d6b=_0x4faf65/_0x2e4d9b+_0x3b32c0['x']-this[_0xd7f6ec(0x22b)],_0x2a712c=_0x3da1ff/_0x2e4d9b+_0x3b32c0['y']-this[_0xd7f6ec(0x4c9)];if(_0x31d4a6!==0x0){let _0x25cceb=this[_0xd7f6ec(0x27d)]/0x2,_0x230ea9=this[_0xd7f6ec(0x1e1)]/0x2,_0x125109=_0x31d4a6*Math['PI']/0xb4,_0x56a4ce=Math[_0xd7f6ec(0x2b7)](_0x125109),_0x114967=Math['sin'](_0x125109),_0xee746e=_0x138d6b-_0x25cceb,_0x223965=_0x2a712c-_0x230ea9;_0x138d6b=_0x25cceb+(_0xee746e*_0x56a4ce+_0x223965*_0x114967),_0x2a712c=_0x230ea9+(-_0xee746e*_0x114967+_0x223965*_0x56a4ce);}_0x3ad4a7&&(_0x138d6b=this[_0xd7f6ec(0x27d)]-_0x138d6b),_0x433d36&&(_0x2a712c=this['_baseShapeHeight']-_0x2a712c);let _0x41ea00={'x':_0x138d6b,'y':_0x2a712c},_0x473b27=this[_0xd7f6ec(0x2d6)][_0xd7f6ec(0x202)](_0x4108f2,_0x41ea00,_0x37bca9,_0x3ad4a7,_0x433d36);if(Object['keys'](_0x473b27)[_0xd7f6ec(0x2b6)]===0x0)return;for(let [_0x4af2b2,_0x111e9e]of Object['entries'](_0x473b27))this[_0xd7f6ec(0x2d6)]['setAdjustValueByName'](_0x4af2b2,_0x111e9e);this[_0xd7f6ec(0x2d6)][_0xd7f6ec(0x162)]({'width':this[_0xd7f6ec(0x27d)],'height':this[_0xd7f6ec(0x1e1)]});let _0x396a68=this[_0xd7f6ec(0x2f6)][_0xd7f6ec(0x2fc)]({'unitId':_0x26036c[_0xd7f6ec(0x346)],'subUnitId':_0x26036c[_0xd7f6ec(0x369)],'drawingId':_0x26036c[_0xd7f6ec(0x456)]});_0x396a68&&(this['_sheetDrawingShapeRenderController'][_0xd7f6ec(0x461)](_0x396a68,_0x2d5ee3),this[_0xd7f6ec(0x4e2)]=this[_0xd7f6ec(0x16c)](_0x26036c['unitId'],_0x26036c[_0xd7f6ec(0x369)],_0x26036c[_0xd7f6ec(0x456)]),this[_0xd7f6ec(0x26e)]());}_0x2cd6d8[_0xd7f6ec(0x238)]();}),this[_0x3c3416(0x30d)]=_0x2d5ee3[_0x3c3416(0x4b8)][_0x3c3416(0x194)]((_0x59e2b6,_0x1f36d3)=>{const _0x1490e7=_0x3c3416;this[_0x1490e7(0x1bf)]['unsubscribe'](),this['_adjHandlerPointerUp'][_0x1490e7(0x297)](),_0x2d5ee3['resetCursor']();let _0x23ca9a=this['_activeAdjustInfo'];if(_0x23ca9a){let _0x260ba9=_0x26036c[_0x1490e7(0x346)],_0x5c9fcf=_0x26036c[_0x1490e7(0x369)],_0x2faa7c=_0x26036c[_0x1490e7(0x456)],_0x1f40f0={};for(let _0x4fca56 of Object[_0x1490e7(0x388)](_0x23ca9a[_0x1490e7(0x3e9)])){var _0x1bb8f8;let _0x2d24eb=(_0x1bb8f8=this['_activeShapeModel'])==null?void 0x0:_0x1bb8f8['getAdjustValueByName'](_0x4fca56);_0x2d24eb!==void 0x0&&(_0x1f40f0[_0x4fca56]=_0x2d24eb);}Object[_0x1490e7(0x388)](_0x1f40f0)['length']>0x0&&C(this[_0x1490e7(0x263)],_0x260ba9,_0x5c9fcf,_0x2faa7c,{'oldShapeData':{'adjustValues':_0x255c90}},{'adjustValues':_0x1f40f0});}this['_activeAdjustInfo']=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x1490e7(0x35a)]=!0x1,_0x1f36d3[_0x1490e7(0x238)](),_0x2d5ee3['enableObjectsEvent']();}),_0x1bf3ff[_0x3c3416(0x238)]();})));}[_0x5e988f(0x35e)](){const _0x6756a5=_0x5e988f;let _0x1f6457=this['_univerInstanceService'][_0x6756a5(0x1b9)](a[_0x6756a5(0x15d)][_0x6756a5(0x2ba)]);this[_0x6756a5(0x36f)](_0x1f6457[_0x6756a5(0x3d3)]((0x0,u[_0x6756a5(0x430)])(_0x5dc191=>_0x5dc191?_0x5dc191['activeSheet$'][_0x6756a5(0x3d3)]((0x0,u['switchMap'])(_0x168d02=>{const _0x32c299=_0x6756a5;if(!_0x168d02)return u[_0x32c299(0x4c6)];let _0x3439b6=_0x5dc191[_0x32c299(0x39d)](),_0xe57feb=this['_renderManagerService'][_0x32c299(0x188)](_0x3439b6),_0x5dd855=_0xe57feb==null?void 0x0:_0xe57feb['scene'];return _0x5dd855?(0x0,u['of'])(_0x5dd855):u['EMPTY'];})):u[_0x6756a5(0x4c6)]))[_0x6756a5(0x24c)](_0x432cd9=>{const _0x5177f3=_0x6756a5;let _0x59c3d4=_0x432cd9['getTransformerByCreate']();this[_0x5177f3(0x36f)](_0x432cd9[_0x5177f3(0x1c2)]['subscribeEvent'](()=>{this['_isShouldShowDrawingShapeAdjust'];})),this[_0x5177f3(0x36f)](_0x59c3d4[_0x5177f3(0x2a4)]['subscribe'](_0x5d421c=>{const _0x4369aa=_0x5177f3;let {objects:_0x1d794f}=_0x5d421c;this['_createShapeAdjustControls'](),_0x1d794f!==null&&_0x1d794f[_0x4369aa(0x4bd)]===0x1&&_0x1d794f[_0x4369aa(0x3c9)]()[_0x4369aa(0x3b7)]()['value']instanceof D&&this[_0x4369aa(0x164)](!0x0);})),this[_0x5177f3(0x36f)](_0x59c3d4[_0x5177f3(0x2e7)][_0x5177f3(0x24c)](()=>{const _0x1d1dc0=_0x5177f3;this[_0x1d1dc0(0x3f6)]&&this[_0x1d1dc0(0x460)]();})),this[_0x5177f3(0x36f)](_0x432cd9['onPointerUp$']['subscribeEvent'](()=>{const _0x401163=_0x5177f3;this[_0x401163(0x3f6)]&&(this[_0x401163(0x164)](!0x1),this[_0x401163(0x371)]());})),this[_0x5177f3(0x36f)](_0x59c3d4[_0x5177f3(0x403)][_0x5177f3(0x24c)](()=>{const _0x12c6da=_0x5177f3;this[_0x12c6da(0x308)]&&this[_0x12c6da(0x363)]&&this[_0x12c6da(0x15e)]&&this[_0x12c6da(0x2f6)][_0x12c6da(0x2fc)]({'unitId':this[_0x12c6da(0x308)],'subUnitId':this[_0x12c6da(0x363)],'drawingId':this['_activeShapeId']})&&(this[_0x12c6da(0x4e2)]=this[_0x12c6da(0x16c)](this['_unitId'],this[_0x12c6da(0x363)],this[_0x12c6da(0x15e)]),this['_updateAdjustControlPositions']());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x325694=_0x5e988f;this['disposeWithMe'](this['_commandService'][_0x325694(0x330)](_0x422ecd=>{const _0x35434a=_0x325694;if(_0x422ecd['id']!==i['UpdateSheetsShapeDataMutation']['id'])return;let {unitId:_0x13ab4a,subUnitId:_0x1b04da,shapeId:_0x2aee20}=_0x422ecd[_0x35434a(0x217)];_0x13ab4a===this['_unitId']&&_0x1b04da===this[_0x35434a(0x363)]&&_0x2aee20===this[_0x35434a(0x15e)]&&this[_0x35434a(0x3e5)]();})),this[_0x325694(0x36f)](this['_drawingManagerService'][_0x325694(0x15b)][_0x325694(0x24c)](_0x1b2c03=>{const _0x49e07f=_0x325694;if(_0x1b2c03[_0x49e07f(0x2b6)]===0x1){let _0x4afec5=_0x1b2c03[0x0];if(_0x4afec5[_0x49e07f(0x2aa)]===a['DrawingTypeEnum']['DRAWING_SHAPE']&&this[_0x49e07f(0x3fa)][_0x49e07f(0x17f)](_0x4afec5[_0x49e07f(0x346)])===a['UniverInstanceType']['UNIVER_SHEET']){this[_0x49e07f(0x15e)]=_0x4afec5[_0x49e07f(0x456)];let {unitId:_0x1b0796,subUnitId:_0x1a92df}=_0x4afec5;this['_activeShapeAdjustPointList']=this[_0x49e07f(0x16c)](_0x1b0796,_0x1a92df,this[_0x49e07f(0x15e)]),this[_0x49e07f(0x308)]=_0x1b0796,this[_0x49e07f(0x363)]=_0x1a92df,this[_0x49e07f(0x460)](),this['_createShapeAdjustControls']();return;}}this[_0x49e07f(0x15e)]=null,this[_0x49e07f(0x4e2)]=void 0x0,this[_0x49e07f(0x308)]=null,this['_subUnitId']=null,this[_0x49e07f(0x460)]();})),this[_0x325694(0x36f)](this[_0x325694(0x2f6)]['update$']['subscribe'](_0x2112af=>{const _0x43d526=_0x325694;if(_0x2112af['length']===0x1){var _0x23a8f3;let _0x53b810=_0x2112af[0x0];((_0x23a8f3=this[_0x43d526(0x2f6)][_0x43d526(0x2fc)](_0x53b810))==null?void 0x0:_0x23a8f3[_0x43d526(0x2aa)])===a['DrawingTypeEnum']['DRAWING_SHAPE']&&this[_0x43d526(0x4f2)](!0x0);}})),this[_0x325694(0x36f)](this[_0x325694(0x2f6)]['remove$']['subscribe'](_0x2d54b9=>{const _0x2bba75=_0x325694;for(let _0x11b470 of _0x2d54b9)this[_0x2bba75(0x15e)]===_0x11b470['drawingId']&&(this[_0x2bba75(0x15e)]=null,this[_0x2bba75(0x4e2)]=void 0x0,this[_0x2bba75(0x308)]=null,this[_0x2bba75(0x363)]=null,this[_0x2bba75(0x460)]());}));}};M=A([k(0x0,s[_0x5e988f(0x1bd)]),k(0x1,(0x0,a[_0x5e988f(0x334)])(i[_0x5e988f(0x44c)])),k(0x2,(0x0,a[_0x5e988f(0x334)])(c[_0x5e988f(0x18e)])),k(0x3,(0x0,a['Inject'])(j)),k(0x4,a['IUniverInstanceService']),k(0x5,a[_0x5e988f(0x32c)])],M);const N={'id':_0x5e988f(0x427),'type':a[_0x5e988f(0x2a0)][_0x5e988f(0x24a)],'handler':(_0x4b5560,_0x547b34)=>{const _0x374365=_0x5e988f;let _0x22215e=_0x4b5560[_0x374365(0x329)](s[_0x374365(0x1bd)]),_0x4dd787=_0x4b5560[_0x374365(0x329)](c['IRenderManagerService']),_0x526ee1=_0x4b5560['get'](M);if(_0x547b34==null)return!0x0;if(_0x547b34[_0x374365(0x2b6)]>0x0){var _0x1d3492;let _0xe05b6a=(_0x1d3492=_0x4dd787[_0x374365(0x188)](_0x547b34[0x0][_0x374365(0x346)]))==null?void 0x0:_0x1d3492[_0x374365(0x466)];if(_0xe05b6a){let {unitId:_0x1c03f9,subUnitId:_0x5f27ce,drawingId:_0x2e3fbf}=_0x547b34[0x0],_0x4ec7dc=(0x0,s[_0x374365(0x278)])({'unitId':_0x1c03f9,'subUnitId':_0x5f27ce,'drawingId':_0x2e3fbf},void 0x0),_0x3e597b=_0xe05b6a[_0x374365(0x300)](_0x4ec7dc);if(_0x3e597b){var _0x5c2c28;(_0x5c2c28=_0x4dd787[_0x374365(0x188)](_0x547b34[0x0]['unitId']))==null||(_0x5c2c28=_0x5c2c28['scene']['getTransformer']())==null||_0x5c2c28[_0x374365(0x482)](_0x3e597b);}}_0x22215e[_0x374365(0x262)](_0x547b34),_0x526ee1['setShouldShowAdjust'](!0x1);}return!0x0;}},P={'type':a[_0x5e988f(0x2a0)][_0x5e988f(0x1b4)],'id':_0x5e988f(0x27f),'handler':async(_0x559918,_0x48f843)=>{const _0x54bdb8=_0x5e988f;let _0x52b1e1=(0x0,o['getSheetCommandTarget'])(_0x559918[_0x54bdb8(0x329)](a[_0x54bdb8(0x4c8)]));if(!_0x52b1e1)return!0x1;let _0x29f32a=_0x559918['get'](o['SheetsSelectionsService'])[_0x54bdb8(0x2cd)]();if(!_0x29f32a)return!0x1;let _0xbd08f0=_0x559918['get'](a[_0x54bdb8(0x32c)]),{unitId:_0x1ee180,subUnitId:_0x5c43aa}=_0x52b1e1,{value:_0x69ce98,enhanceParams:_0x236ba2}=_0x48f843,{range:_0x3f3c12}=_0x29f32a,_0xa76717={'unitId':_0x1ee180,'subUnitId':_0x5c43aa,'shapeType':_0x69ce98,'range':_0x3f3c12,'shapeId':(0x0,a[_0x54bdb8(0x4eb)])()};if(_0x236ba2){let _0x52812d=(0x0,n[_0x54bdb8(0x3a7)])(_0x69ce98),_0x215e07=_0x69ce98===n[_0x54bdb8(0x49d)]['Rect'];_0x52812d&&(_0x236ba2[_0x54bdb8(0x45c)]||_0x236ba2[_0x54bdb8(0x20a)])&&(_0xa76717[_0x54bdb8(0x192)]={'ln':{'startArrow':_0x236ba2[_0x54bdb8(0x45c)]?{'type':n[_0x54bdb8(0x4cc)][_0x54bdb8(0x273)],'size':n[_0x54bdb8(0x3ce)][_0x54bdb8(0x296)]}:void 0x0,'endArrow':_0x236ba2[_0x54bdb8(0x20a)]?{'type':n[_0x54bdb8(0x4cc)]['Arrow'],'size':n[_0x54bdb8(0x3ce)][_0x54bdb8(0x1d4)]}:void 0x0}}),_0x215e07&&(_0x236ba2['horizontal']||_0x236ba2[_0x54bdb8(0x17a)])&&(_0xa76717[_0x54bdb8(0x192)]=(0x0,r[_0x54bdb8(0x224)])({'fill':{'fillType':n[_0x54bdb8(0x464)]['SolidFill'],'color':_0x54bdb8(0x1fc)},'isHorizontal':!!_0x236ba2[_0x54bdb8(0x172)],'stroke':{'lineStrokeType':n['ShapeLineTypeEnum'][_0x54bdb8(0x289)],'width':0x1,'color':_0x54bdb8(0x17d)}}));}let _0x3d8b82=_0xbd08f0['syncExecuteCommand'](i[_0x54bdb8(0x323)]['id'],_0xa76717);return setTimeout(()=>{const _0x507e33=_0x54bdb8;_0xbd08f0['executeCommand'](N['id'],[{'unitId':_0x1ee180,'subUnitId':_0x5c43aa,'drawingId':_0xa76717[_0x507e33(0x3cd)]}]);},0xc8),_0x3d8b82;}},F=_0x5e988f(0x382),I='sheet.shape.object-list.panel',L=_0x5e988f(0x3d1),R=_0x5e988f(0x3e3),re=(0x0,a[_0x5e988f(0x428)])('SHAPE_TEXT'),ie=_0x5e988f(0x2ce),ae={'id':_0x5e988f(0x4ab),'type':a[_0x5e988f(0x2a0)][_0x5e988f(0x1b4)],'handler':(_0x3a0732,_0x38cb5f)=>{const _0xa480cc=_0x5e988f;let _0x4974da=_0x3a0732['get'](t[_0xa480cc(0x1a0)]),_0x537d69=_0x3a0732[_0xa480cc(0x329)](a[_0xa480cc(0x3e1)]),_0x3651f5=_0x3a0732[_0xa480cc(0x329)](a[_0xa480cc(0x4c8)]),_0x11b68d=_0x3a0732[_0xa480cc(0x329)](a[_0xa480cc(0x32c)]);return(0x0,o['getSheetCommandTarget'])(_0x3651f5)?(_0x38cb5f==null?void 0x0:_0x38cb5f[_0xa480cc(0x321)])===_0xa480cc(0x489)?(_0x4974da['close'](I),!0x0):(_0x4974da['open']({'id':I,'header':{'title':_0x537d69['t'](_0xa480cc(0x488))},'children':{'label':I},'onClose':()=>{_0x11b68d['syncExecuteCommand'](s['SetDrawingSelectedOperation']['id'],[]);},'width':0x168}),!0x0):!0x1;}},z={'type':a[_0x5e988f(0x2a0)][_0x5e988f(0x24a)],'id':_0x5e988f(0x48a),'handler'(){return!0x0;}};function oe(_0x3d6a36){const _0x3e8344=_0x5e988f;let _0x3746c9=_0x3d6a36['get'](s[_0x3e8344(0x1bd)])[_0x3e8344(0x166)](),_0x12716e=_0x3746c9[_0x3e8344(0x2b6)]===0x1?_0x3746c9[0x0]:null;if(!_0x12716e||_0x12716e[_0x3e8344(0x2aa)]!==a[_0x3e8344(0x181)][_0x3e8344(0x1d7)])return null;let _0x173661=_0x3d6a36[_0x3e8344(0x329)](i['SheetsShapeService']),_0x3259f=_0x173661['getShapeTypeById'](_0x12716e[_0x3e8344(0x346)],_0x12716e[_0x3e8344(0x369)],_0x12716e[_0x3e8344(0x456)]),_0x23aecb=_0x173661[_0x3e8344(0x4ea)](_0x12716e[_0x3e8344(0x346)],_0x12716e['subUnitId'],_0x12716e[_0x3e8344(0x456)]);return _0x3259f===void 0x0||!_0x23aecb?null:{'drawing':_0x12716e,'shapeData':_0x23aecb,'shapeType':_0x3259f};}const se={'id':_0x5e988f(0x4a0),'type':a[_0x5e988f(0x2a0)][_0x5e988f(0x24a)],'handler':(_0xfe0be2,_0x2985f2)=>{const _0x1f5812=_0x5e988f;let _0x36ef80=oe(_0xfe0be2),_0x45ada9=(0x0,r[_0x1f5812(0x1b3)])((_0x2985f2==null?void 0x0:_0x2985f2[_0x1f5812(0x30f)])??(_0x2985f2==null?void 0x0:_0x2985f2['value'])??'');if(!_0x36ef80||!_0x45ada9||_0x45ada9[_0x1f5812(0x468)]!==(0x0,r['getShapeQuickStyleType'])(_0x36ef80[_0x1f5812(0x192)]))return!0x1;let _0x4b67d4=(0x0,r[_0x1f5812(0x3d2)])(_0x36ef80['shapeData'],_0x45ada9);if(!_0x4b67d4)return!0x1;let {drawing:_0x41f8f9}=_0x36ef80;return _0xfe0be2[_0x1f5812(0x329)](a[_0x1f5812(0x32c)])['executeCommand'](S['id'],{'unitId':_0x41f8f9['unitId'],'subUnitId':_0x41f8f9[_0x1f5812(0x369)],'shapeId':_0x41f8f9[_0x1f5812(0x456)],'shapeData':_0x4b67d4,'oldShapeJSON':{'oldShapeData':_0x36ef80[_0x1f5812(0x192)]}});}},ce={'id':'sheet.operation.update-shape-type','type':a[_0x5e988f(0x2a0)][_0x5e988f(0x24a)],'handler':(_0x35336d,_0x21b3f9)=>{const _0x2b728b=_0x5e988f;let _0x4ec50e=oe(_0x35336d),_0x718051=(_0x21b3f9==null?void 0x0:_0x21b3f9[_0x2b728b(0x1e6)])??(_0x21b3f9==null?void 0x0:_0x21b3f9[_0x2b728b(0x321)]);if(!_0x4ec50e||!_0x718051||(0x0,n[_0x2b728b(0x3a7)])(_0x4ec50e[_0x2b728b(0x1e6)])||(0x0,n[_0x2b728b(0x3a7)])(_0x718051))return!0x1;let _0x1481f7=(0x0,r[_0x2b728b(0x3f9)])(_0x4ec50e[_0x2b728b(0x192)],_0x718051);if(!_0x1481f7)return!0x1;let {drawing:_0x1f97c9}=_0x4ec50e;return _0x35336d[_0x2b728b(0x329)](a['ICommandService'])[_0x2b728b(0x32b)](S['id'],{'unitId':_0x1f97c9[_0x2b728b(0x346)],'subUnitId':_0x1f97c9[_0x2b728b(0x369)],'shapeId':_0x1f97c9[_0x2b728b(0x456)],'shapeType':_0x718051,'shapeData':_0x1481f7,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x4ec50e[_0x2b728b(0x1e6)],'oldShapeData':_0x4ec50e[_0x2b728b(0x192)]}});}};let B=class extends a['Disposable']{constructor(_0x2560d8,_0x44d75c){const _0x235fa2=_0x5e988f;super(),this[_0x235fa2(0x221)]=_0x2560d8,this[_0x235fa2(0x2f6)]=_0x44d75c,this[_0x235fa2(0x4b1)](),this[_0x235fa2(0x221)][_0x235fa2(0x2bb)](!0x0),this[_0x235fa2(0x36f)]({'dispose':()=>this[_0x235fa2(0x221)][_0x235fa2(0x2bb)](!0x1)});}[_0x5e988f(0x4b1)](){const _0x106091=_0x5e988f;let _0x59f578=this[_0x106091(0x221)],_0x240d10=new Map(),_0x466a4c=_0x59f578[_0x106091(0x18b)]((_0x3da9e8,_0x40e9d7,_0x5bd0ca,_0x22b4b2,_0x207b3b)=>{const _0x2f48a8=_0x106091;let _0x4c9ef2=_0x40e9d7;if(_0x4c9ef2===n[_0x2f48a8(0x49d)][_0x2f48a8(0x189)]||_0x40e9d7===_0x2f48a8(0x478))return!0x1;try{let _0x11e776=_0x240d10['get'](_0x40e9d7);return _0x11e776||(_0x11e776=new n[(_0x2f48a8(0x1b2))](_0x4c9ef2,_0x2f48a8(0x42c)+_0x40e9d7),_0x240d10[_0x2f48a8(0x33d)](_0x40e9d7,_0x11e776)),_0x11e776[_0x2f48a8(0x299)](),_0x207b3b&&Object['keys'](_0x207b3b)['length']>0x0&&_0x11e776[_0x2f48a8(0x3da)]({'adjustValues':_0x207b3b},!0x0),_0x11e776[_0x2f48a8(0x162)]({'width':_0x5bd0ca,'height':_0x22b4b2}),_0x11e776[_0x2f48a8(0x36c)](_0x3da9e8,{'left':0x0,'top':0x0,'width':_0x5bd0ca,'height':_0x22b4b2});}catch{return!0x1;}});this[_0x106091(0x36f)](_0x466a4c),this[_0x106091(0x36f)]({'dispose':()=>_0x240d10[_0x106091(0x45b)]()});}[_0x5e988f(0x35d)](_0x5446bf,_0x571acb,_0x446503,_0x125369,_0x135f97){const _0x29ff9e=_0x5e988f;let _0x37e7e2=this[_0x29ff9e(0x2f6)][_0x29ff9e(0x454)](_0x5446bf,_0x571acb);if(!_0x37e7e2[_0x446503])return;let _0xc7c89={..._0x37e7e2[_0x446503],'prstGeom':_0x125369,'adjustValues':_0x135f97};this[_0x29ff9e(0x2f6)][_0x29ff9e(0x1f0)]([_0xc7c89]);}};B=A([k(0x0,(0x0,a[_0x5e988f(0x334)])(d[_0x5e988f(0x1ba)])),k(0x1,(0x0,a[_0x5e988f(0x334)])(s[_0x5e988f(0x1bd)]))],B);const le=_0x5e988f(0x190),ue=_0x5e988f(0x21c);function de({onShapeClick:_0x2462e4,excludeGroups:_0x31b16f}){const _0x14736b=_0x5e988f;return(0x0,p[_0x14736b(0x347)])(e[_0x14736b(0x215)],{'excludeGroups':_0x31b16f,'onShapeClick':_0x2462e4,'scrollContainer':_0x14736b(0x16f)});}function fe(){const _0x4f43d5=_0x5e988f;let _0x1e72a3=(0x0,t[_0x4f43d5(0x252)])(s['IDrawingManagerService']),_0x29d25f=(0x0,t[_0x4f43d5(0x252)])(B);return(0x0,p['jsx'])(e[_0x4f43d5(0x26d)],{'buttonLabel':_0x4f43d5(0x31a),'excludeGroups':[e[_0x4f43d5(0x2e6)][_0x4f43d5(0x1f2)]],'onShapeClick':_0x5c83d2=>{const _0xabbc9f=_0x4f43d5;let _0x4ea631=_0x1e72a3[_0xabbc9f(0x166)]()['find'](_0x59b9d8=>_0x59b9d8[_0xabbc9f(0x2aa)]===a['DrawingTypeEnum'][_0xabbc9f(0x3f2)]);if(!_0x4ea631)return;let {unitId:_0x512225,subUnitId:_0x57e269,drawingId:_0x4b890b}=_0x4ea631;_0x29d25f[_0xabbc9f(0x35d)](_0x512225,_0x57e269,_0x4b890b,_0x5c83d2['type']);}});}function pe(){const _0x1213ba=_0x5e988f;let _0x486ea5=(0x0,t[_0x1213ba(0x252)])(s['IDrawingManagerService']),_0x4b7ad2=(0x0,t['useDependency'])(B);return(0x0,p['jsx'])(e[_0x1213ba(0x26d)],{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[e[_0x1213ba(0x2e6)]['Line']],'DropdownComponent':f[_0x1213ba(0x4e3)],'onShapeClick':_0x1997b7=>{const _0x57f4ef=_0x1213ba;let _0x21e3f7=_0x486ea5[_0x57f4ef(0x166)]()[_0x57f4ef(0x2d1)](_0x1ff399=>_0x1ff399[_0x57f4ef(0x2aa)]===a[_0x57f4ef(0x181)][_0x57f4ef(0x3f2)]);if(!_0x21e3f7)return;let {unitId:_0x46b466,subUnitId:_0x3b120d,drawingId:_0x2dc169}=_0x21e3f7;_0x4b7ad2[_0x57f4ef(0x35d)](_0x46b466,_0x3b120d,_0x2dc169,_0x1997b7[_0x57f4ef(0x468)]);}});}function me(){const _0x27f4be=_0x5e988f;let _0x50b56a=(0x0,t['useDependency'])(t[_0x27f4be(0x399)]),_0x23ed0f=(0x0,t[_0x27f4be(0x252)])(s[_0x27f4be(0x1bd)]),_0x1ad3e4=(0x0,t[_0x27f4be(0x252)])(a[_0x27f4be(0x4c8)]),_0x5b7305=_0x23ed0f[_0x27f4be(0x166)]()[0x0],_0x2a431f=_0x5b7305?_0x1ad3e4[_0x27f4be(0x17f)](_0x5b7305[_0x27f4be(0x346)]):void 0x0,_0x11799e=_0x2a431f===a['UniverInstanceType'][_0x27f4be(0x175)]?_0x27f4be(0x161):_0x2a431f===a[_0x27f4be(0x15d)][_0x27f4be(0x2ba)]?ue:void 0x0,_0x304b67=_0x11799e?_0x50b56a[_0x27f4be(0x329)](_0x11799e):void 0x0;return _0x304b67?(0x0,p[_0x27f4be(0x347)])(_0x304b67,{}):null;}function he(){const _0x69ac51=_0x5e988f;let _0x39556a=(0x0,t[_0x69ac51(0x252)])(a['ICommandService']);return(0x0,p['jsx'])(de,{'onShapeClick':_0x1df304=>{const _0x409657=_0x69ac51;_0x39556a[_0x409657(0x32b)](P['id'],{'value':_0x1df304[_0x409657(0x468)],'enhanceParams':{'endArrow':_0x1df304[_0x409657(0x20a)],'startArrow':_0x1df304[_0x409657(0x45c)],'horizontal':_0x1df304[_0x409657(0x172)],'vertical':_0x1df304[_0x409657(0x17a)]}});}});}function _0x2dd2(_0x3540b4,_0x12078e){_0x3540b4=_0x3540b4-0x157;const _0x1e9a67=_0x1e9a();let _0x2dd2c6=_0x1e9a67[_0x3540b4];return _0x2dd2c6;}function ge(){const _0x5da38b=_0x5e988f;return(0x0,p[_0x5da38b(0x347)])(he,{});}function _e(_0x50d608){const _0x24e90f=_0x5e988f;let _0x36d088=_0x50d608['get'](a['IUniverInstanceService']);return{'id':P['id'],'type':t[_0x24e90f(0x230)]['SELECTOR'],'selections':[{'label':{'name':le,'hoverable':!0x1,'selectable':!0x1,'props':{'id':P['id']}}}],'icon':_0x24e90f(0x295),'tooltip':'sheets-shape-ui.insertShape','activated$':(0x0,l[_0x24e90f(0x1ef)])(_0x36d088,!0x1,()=>new u[(_0x24e90f(0x1a5))](_0x6ba1b1=>{const _0x26c72b=_0x24e90f;_0x6ba1b1[_0x26c72b(0x3b7)](!0x1);})),'hidden$':(0x0,t[_0x24e90f(0x443)])(_0x50d608,a['UniverInstanceType'][_0x24e90f(0x2ba)]),'disabled$':(0x0,l[_0x24e90f(0x417)])(_0x50d608)};}function ve(_0x59a86f){const _0x17ff7f=_0x5e988f;let _0x419128=_0x59a86f['get'](t[_0x17ff7f(0x1a0)]);return{'id':ae['id'],'type':t['MenuItemType'][_0x17ff7f(0x1a4)],'icon':_0x17ff7f(0x2ef),'title':_0x17ff7f(0x2eb),'tooltip':_0x17ff7f(0x2eb),'activated$':(0x0,u[_0x17ff7f(0x357)])(()=>_0x419128[_0x17ff7f(0x2e4)][_0x17ff7f(0x3d3)]((0x0,u['startWith'])(_0x419128[_0x17ff7f(0x195)]),(0x0,u[_0x17ff7f(0x4a5)])(_0x21f35c=>_0x21f35c[_0x17ff7f(0x29c)]===!0x0&&_0x21f35c['id']===_0x17ff7f(0x350)),(0x0,u[_0x17ff7f(0x410)])())),'hidden$':(0x0,t[_0x17ff7f(0x443)])(_0x59a86f,a['UniverInstanceType']['UNIVER_SHEET']),'disabled$':(0x0,l[_0x17ff7f(0x417)])(_0x59a86f)};}const ye=_0x5e988f(0x408),be='sheet.menu.shape.flip-vertical';function xe(_0x67bfa1){const _0x591a0c=_0x5e988f;let _0x426c15=_0x67bfa1[_0x591a0c(0x329)](s[_0x591a0c(0x1bd)])['getFocusDrawings']();return _0x426c15[_0x591a0c(0x2b6)]===0x1&&_0x426c15[0x0][_0x591a0c(0x2aa)]===a[_0x591a0c(0x181)][_0x591a0c(0x1d7)]?_0x426c15[0x0]:null;}function Se(_0x5cf4e7){const _0x56a087=_0x5e988f;let _0x4aec84=_0x5cf4e7['get'](s['IDrawingManagerService']);return _0x4aec84[_0x56a087(0x15b)][_0x56a087(0x3d3)]((0x0,u['startWith'])(_0x4aec84['getFocusDrawings']()),(0x0,u[_0x56a087(0x4a5)])(_0x5469eb=>_0x5469eb['length']!==0x1||_0x5469eb[0x0][_0x56a087(0x2aa)]!==a[_0x56a087(0x181)][_0x56a087(0x1d7)]));}function Ce(_0x567d91){const _0x7942db=_0x5e988f;return{'id':ye,'commandId':i[_0x7942db(0x4aa)]['id'],'type':t['MenuItemType'][_0x7942db(0x1a4)],'title':_0x7942db(0x4d8),'tooltip':'sheets-shape-ui.flipHorizontal','icon':_0x7942db(0x197),'hidden$':Se(_0x567d91),'params':()=>{const _0x2d71dc=_0x7942db;let _0x47a7d8=xe(_0x567d91);return _0x47a7d8?{'unitId':_0x47a7d8['unitId'],'subUnitId':_0x47a7d8[_0x2d71dc(0x369)],'shapeId':_0x47a7d8[_0x2d71dc(0x456)],'flipH':!0x0}:void 0x0;}};}function we(_0x418600){const _0x173762=_0x5e988f;return{'id':be,'commandId':i['ToggleSheetsShapeFlipCommand']['id'],'type':t[_0x173762(0x230)]['BUTTON'],'title':_0x173762(0x1ce),'tooltip':'sheets-shape-ui.flipVertical','icon':'FlipVerticalIcon','hidden$':Se(_0x418600),'params':()=>{const _0x223223=_0x173762;let _0x29ee42=xe(_0x418600);return _0x29ee42?{'unitId':_0x29ee42[_0x223223(0x346)],'subUnitId':_0x29ee42[_0x223223(0x369)],'shapeId':_0x29ee42['drawingId'],'flipV':!0x0}:void 0x0;}};}const Te='sheets-shape-ui.shape-format.quick-style-gallery',Ee=_0x5e988f(0x318),De=_0x5e988f(0x4c7),Oe=_0x5e988f(0x4a9);function ke(){const _0x9f77fe=_0x5e988f;let _0x3c57aa=(0x0,t[_0x9f77fe(0x252)])(a['ICommandService']),_0x539050=(0x0,t[_0x9f77fe(0x252)])(s[_0x9f77fe(0x1bd)]),_0xf1978e=(0x0,t['useDependency'])(i[_0x9f77fe(0x44c)]),_0x470365=()=>{const _0x2077f3=_0x9f77fe;var _0x261745;let _0x41bdb0=_0x539050[_0x2077f3(0x166)]();if(_0x41bdb0['length']!==0x1||((_0x261745=_0x41bdb0[0x0])==null?void 0x0:_0x261745[_0x2077f3(0x2aa)])!==a[_0x2077f3(0x181)][_0x2077f3(0x1d7)])return null;let {unitId:_0x1f7037,subUnitId:_0x166535,drawingId:_0x591958}=_0x41bdb0[0x0],_0x402e87=_0xf1978e[_0x2077f3(0x2bd)](_0x1f7037,_0x166535,_0x591958),_0x5f0c48=_0xf1978e[_0x2077f3(0x4ea)](_0x1f7037,_0x166535,_0x591958);return _0x402e87===void 0x0||!_0x5f0c48?null:{'unitId':_0x1f7037,'subUnitId':_0x166535,'drawingId':_0x591958,'shapeType':_0x402e87,'shapeData':_0x5f0c48};},_0x333e56=(0x0,t[_0x9f77fe(0x1bb)])(()=>new u['Observable'](_0x52ca34=>{const _0x34b7e8=_0x9f77fe;let _0x13df34=()=>_0x52ca34[_0x34b7e8(0x3b7)](_0x470365()),_0x300359=_0x539050[_0x34b7e8(0x15b)][_0x34b7e8(0x24c)](_0x13df34),_0x3a3419=_0x3c57aa[_0x34b7e8(0x330)](_0x1325f6=>{const _0x4b38fe=_0x34b7e8;_0x1325f6['id']===i[_0x4b38fe(0x17c)]['id']&&_0x13df34();});return _0x13df34(),()=>{const _0x5c1497=_0x34b7e8;_0x300359[_0x5c1497(0x297)](),_0x3a3419['dispose']();};}),_0x470365(),!0x1,[_0x3c57aa,_0x539050,_0xf1978e]);return{'selection':_0x333e56,'updateShapeData':_0x3343b4=>{const _0x170d7d=_0x9f77fe;_0x333e56&&C(_0x3c57aa,_0x333e56[_0x170d7d(0x346)],_0x333e56[_0x170d7d(0x369)],_0x333e56[_0x170d7d(0x456)],{'oldShapeData':_0x333e56['shapeData']},_0x3343b4);}};}function _0x1e9a(){const _0x3a27e3=['jsx','drawing-ui.objectListPanel.moveBackward','skeleton','shape-editor-ui.toolbar.quickStyles','@univerjs-pro/sheets-shape-ui','FOCUSING_SHAPE_TEXT_EDITOR','update$','start','_showConnectionSites','sheet.shape.object-list.panel','_getSceneAndTransformerByDrawingSearch','error','addClipboardHook','_iconManager','version','_registerGroupFeaturePasteHook','defer','transformForAngle','UniverSheetsShapePlugin','_isStartAdjusting','connector-handler-','fill','clipByShape','_registerDrawingMoveHandler','setPrstGeomAdjValues','pluginName','getDrawingVisible','delete','_subUnitId','ShapeTextRibbonControl','beforeCommandExecuted','_resetState','drawing-ui.objectListPanel.noSelection','rect','subUnitId','prototype','_getImageDrawingInfo','buildClipPath','getEndConnectInfo','shape-adjust-point-','disposeWithMe','drawWith','_createShapeAdjustControls','_initCopyPaste','899907chlOXR','drawing-ui.objectListPanel.sectionFloating','resolveShapeTextEditorBehaviorShapeData','ContextMenuPosition','_sheetPrintInterceptorService','DocInterceptorService','setFallbackVisible','index','drawFormulaShapeAnimationLayers','createControl$','_getConnectionSiteAngle','_getScrollInfo','getInterceptPoints','DocumentViewModel','data','sheet.shape.edit.panel','SHAPE_CHANGE_PICKER_COMPONENT','clearControl$','RemoveSheetsShapeMutation','onerror','render','keys','_props','unit','current','_addControl','filter','getDrawingEditable','drawing-ui.objectListPanel.show','DependentOn','worldRect','isDrawingObject','Injector','_completionFrame','prstGeom','objects','SetSheetDrawingCommand','getContextValue','ComponentManager','drawing-ui.objectListPanel.locate','FromArray','UniverSheetsShapeMobileUIPlugin','getUnitId','translate','normal','IImageIoService','_generatePasteMutations','localeService','disableObjectsEvent','sin','getDrawingOrder','fontFamily','isConnectorShape','VIEW_MAIN','_componentManager','_clearCompletionFrame','SetDrawingSelectedOperation','_handleConnectedEndpointPointerUp','_transformCalculateSrcRect','getDrawingOKey','_isOpenedShapeEditPanel','shape-editor-ui.arrange.forward','front','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','shapeKey','_visible','canvas','register','next','localToWorld','RemoveSheetCommand','_drawRichText','cxnPointRadius','BehaviorSubject','_formulaKey','Fragment','_registerMoveHandler','drawing-ui.objectListPanel.filterHidden','_contextService','image','_executeConnectionCommand','drawing-ui.objectListPanel.lock','SHAPE_EDITOR_TRANSFORMER_CONFIG','_activeImageId','complete','357931NUPMxt','values','parse','worldPoint','getCurrentUnitInfo','shapeId','ShapeArrowSizeEnum','getConnectorLinePoints','_insertShapes','sheet.shape.floating-toolbar','applyQuickStyleToShapeData','pipe','color','_shapeEditPanelVersion','_sheetBasicShapeConnectionPointController','getViewportByCell','left','onReady','setShapeData','editingParams$','offsetY','_clearFocusedShape','ImageSourceTypeEnum','ShapeFloatingToolbarToggleFactory','idMap','LocaleService','_baseHeight','sheets-shape-ui.ribbon.shape-format','onStarting','refreshAdjustControls','_hyperLinkRegions','getDrawingEffectBounds','transformToAxisAlignPosition','currentAdjustValues','SheetDrawingAnchor','text','changeShapeType','sheets-shape-ui.title','_activeAdjustPointList','setPresentation','getBasicShapeRelation','_injector','DRAWING_IMAGE','_activeShapeInfo','_loadShapePictureFill','actualHeight','_isShouldShowDrawingShapeAdjust','isMainScene','_highlightedSiteIndex','cloneShapeDataForType','_univerInstanceService','isRender','_registerDrawingFocusChangeHandler','_imageIoService','drawing-ui.objectListPanel.lockHint','back','createShapeTextHyperLinkRegions','sheets-shape-ui.ribbon.shape-format.arrange-backward','DrawingApplyType','changeEnd$','hidden','sheets-shape-ui','startWith','ShapeTextHyperLinkInfo','sheet.menu.shape.flip-horizontal','_sheetShapeAdjustController','marginTop','RENDER_CLASS_TYPE','removeLinePoints','Image','_openShapeEditPanel','getConnectionRelation','distinctUntilChanged','getValue','HorizontalAlign','stroke','_currentScene','_connectorObjects','SetDrawingApplyMutation','getCurrentRangeDisable$','axisAlignSheetTransform','composeMatrix','isHitLine','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','_findShapeAtPoint','presentationChanged$','initShapePopupMenu','visible$','_editingParams$','drawing-ui.objectListPanel.moveForward','getSheetBySheetId','toStringTag','forEach','formulaBinding','getObjectListPanelSectionIdForDrawingType','drawing.operation.set-drawing-active','createInternalEditorID','sheets-shape-ui.editShape','drawing-ui.objectListPanel.unlockAll','applyPoint','clip-','setCursor','getCurrentSkeleton','dataModel','switchMap','setAdjustValueByName','FormatPainterSessionService','_baseTop','2cbWFPs','animationEnabled','TOP','invert','URL','VIEW_MAIN_TOP','_releaseRenderCache','GROUP','flatMap','getCurrentScrollState','insertGroupObject','_update','_updateSrcRectByTransform','adjustValues','_shapeService','getMenuHiddenObservable','sheetTransform','decorate','DocRenderController','_shapeId','getStartConnectInfo','IContextService','IPermissionService','onload','SheetsShapeService','updateLinePoints','sheets-shape-ui.ribbon.shape-format.style-control','multiply','sheets-shape-ui.ribbon.shape-format.arrange-front','SheetSkeletonService','onPointerDown$','_executeConnectedRouteConnectionCommand','getDrawingData','sheets-shape-ui.ribbon.shape-format.arrange-forward','drawingId','height','drawing-ui.objectListPanel.collapse','Vector2','_generateCopyPasteMutations','clear','startArrow','drawing-ui.objectListPanel.filterAll','drawing-ui.objectListPanel.description','interceptor','_clearShapeAdjustControls','renderDrawingShape','pick','remove$','ShapeFillEnum','_handleFreeEndpointMove','scene','_getImagePrstGeom','type','WorkbookCopyPermission','drawing-ui.objectListPanel.expand','reduce','_isConnecting','_sheetCanvasPopManagerService','_currentUniverService','_handleBasicShapeUpdateConnectorLineShape','setEditing','_initEditingParams','drawing-ui.objectListPanel.lockAll','getInverseCoord','_disposed','contentHeight','_focusedDrawings','startConnectionDetection','custom','useReducer','_isImagePointerDown','copyId','CROSSHAIR','ang','_executeConnectedRouteResizeCommand','srcRect','top','setPrstGeom','activeAnObject','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','add$','_commandExecutedListener','getObject','resolveHyperLinkAt','sheets-shape-ui.objectListPanel.title','close','sheet.operation.open-sheet-shape-format-panel','328xjVKhg','UniverSheetsDrawingUIPlugin','actions','routeConnectorLineShape','ShapeStyleRibbonControl','SheetPermissionCheckController','isRenderLinePointsMode','getFocusedUnit','ArrangeTypeEnum','_findNearestConnectionSite','useFormulaShapeToolbar','bindRenderTransformerLifecycle','open','div','getUnit','getSheetId','transformByState','SheetScrollManagerService','ShapeTypeEnum','SetShapeDrawingDataCommand','cxnPointFill','sheet.operation.apply-shape-quick-style','_sheetInterceptorService','703865MkkySp','getSkeleton','SHAPE','map','clip-adj-','FloatingObjectToolbarPosition','sheets-shape-text-','sheets-shape-ui.shape-format.formula-ribbon-control','ToggleSheetsShapeFlipCommand','sheet.operation.open-shape-object-list-panel','_context','UPDATE','1746ocuPvp','doc','getActiveSheet','_registerImageShapeClipDelegate','getConnectionSiteList','_initPrinting','_init','add','enableObjectsEvent','FormulaShapeAnimationController','onPointerUp$','getShapeTextData','resolveShapeContextualRibbonHostMode','undo','trim','size','getActualSize','getAdjustNames','abs','dispose','getAutoFitPresentations','end','RibbonInsertGroup','SELECTOR','EMPTY','sheets-shape-ui.shape-format.text-ribbon-control','IUniverInstanceService','_baseShapeTop','fillImageSource','getEditing','ShapeArrowTypeEnum','ShapeFormatSettingIcon','_sheetSkeletonService','gradientEndColor','MoveUpIcon','ShapeTextFloatToolbar','_sheetsShapeService','packageName','isArray','push','point','ShapeQuickStyleGallery','sheets-shape-ui.flipHorizontal','clipTop','registerDependencies','resolveShapeTextHyperLinkAt','BottomIcon','cxnIndex','oKey','ShapeTextFloatMenuRenderControllerBase','_config','onRendered','_activeShapeAdjustPointList','MobileDropdown','getCanvasElement','Transform','_activeAdjustInfo','getImage','panel','_onSavingEditorData$','getShapeDataById','generateRandomId','has','hasDefault','WorkbookEditablePermission','fillImageSourceType','SetDrawingArrangeCommand','jsxs','_updateShapeAdjustControls','VerticalAlign','create','REMOVE','isRichText','UniverMobileUIPlugin','_cxtHandlerPointerMove','reverse','_transform','focus$','DocSelectionRenderService','UniverInstanceType','_activeShapeId','UniverSheetsDrawingMobileUIPlugin','startY','doc.image-clip.shape-picker.component','updateContext','onTransformChange$','setShouldShowAdjust','resolveShapeTextDocumentPageHeight','getFocusDrawings','_isHighlighted','getBasicShapeRotateBound','resolveFormulaShapeAutoFitSize','presentation','_clearPopups','_getShapeAdjustPointListById','extensionGroups','offsetX','parent','setSrcRect','buildShapeTextDataUpdate','horizontal','ancestorTransform','flipX','UNIVER_DOC','lineType','permissionPointUpdate$','21LwIhGR','shape-editor-ui.arrange.front','vertical','_adjName','UpdateSheetsShapeDataMutation','#bcbcbc','adjHandleStroke','getUnitType','getDrawingDataForUnit','DrawingTypeEnum','ShapeTextHyperLinkHoverController','StraightConnector1','_attachConnectorObjectEvent','syncExecuteCommand','transformToDrawingPosition','classType','getRenderUnitById','None','activeSheet$','registerClipDelegate','_drawRichTextLayer','ShapeFormulaRibbonControl','IRenderManagerService','_targetShapeId','sheet.shape.picker.component','UniverSheetsPlugin','shapeData','shouldClipShapeTextDocument','subscribeEvent','options','hideContextualTab','FlipHorizontalIcon','getBatchAddOp','UniverShapeEditorMobileUIPlugin','flipY','SheetsDrawingGroupCopyPasteController','_clearConnectionSites','_index','onSavingEditorData$','prstGeomAdjValues','ISidebarService','save','drawing-ui.objectListPanel.nameInput','refreshShapeFillImage','BUTTON','Observable','_handleConnectedEndpointMove','popup','MEDIA','PRINTING_COMPONENT_COLLECT','onDblclick$','_initSelection','bottom','stringify','registerCommand','indexOf','_getConnectPointInfo','RemoveSheetDrawingCommand','ShapeModel','getShapeQuickStylePreset','COMMAND','MobileShapeEditorService','_updateTransform','sheet.operation.open-mobile-shape-editor','addObject','getCurrentTypeOfUnit$','DrawingImageClipService','useObservable','CopySheetCommand','IDrawingManagerService','_initPermission','_adjHandlerPointerMove','isLineShape','merge','onPointerMove$','DocumentDataModel','_executeResizeCommand','mode','activateDrawingObject','_registerFocusChangeHandler','Circle','ObjectListPanelBase','ContextMenuGroup','createShapeFormulaDocument','toDisposable','UniverDocsUIPlugin','sheets-shape-ui.flipVertical','ShapeTextEditorContainer','resolveShapeTextHyperLinkObject','cxnPointStrokeWidth','_drawingAddListener','showContextualTab','Large','_clearShapeConnectorHandlerObjects','_shapeFloatingToolbarService','DRAWING_SHAPE','1.4.0','angle','drawing-ui.objectListPanel.sectionCanvas','setContextValue','translateWithPrecision','normalizeShapeTextModel','drawing-ui.objectListPanel.title','iterator','touchDependencies','_baseShapeHeight','_isStartConnectorPoint','preValue','_generateCutPasteMutations','sheets-shape-ui.deleteShape','shapeType','componentKey','clone','from','_renderManagerService','ShapeFloatingToolbarService','_urlImageService','getScene','getState','deriveStateFromActiveSheet$','featurePluginUpdateNotification','pushUndoRedo','Line','shapeModel','getSelectedObjectMap','DisposableCollection','beginPath','endConnectionDetection','getOrCreateDrawingCopyPlan','_sheetPermissionCheckController','MobileObjectListPanel','_localeService','#FFFFFF','viewportScrollY','adjName','sectionCanvas','defineProperty','copyType','calcAdjValues','hideInfoPopup','drawing-ui.objectListPanel.descriptionPlaceholder','drawing-ui.objectListPanel.filterLocked','drawing-ui.objectListPanel.empty','PictureFill','attachTransformerTo','getTransformerByCreate','endArrow','_shapeFormulaService','UniverSheetsUIPlugin','_handleFreeEndpointPointerUp','_sheetDrawingShapeRenderController','_registerIcons','getTextModel','ISheetDrawingService','getPermissionPoint','makeDirty','adjHandleSize','ShapePickerPanel','getShapeQuickStyleType','params','shape-editor-ui.arrange.backward','drawing-ui.objectListPanel.unlock','shape-editor-ui.toolbar.changeShape','SheetsShapeUIContextualRibbonSchema','sheet.image-clip.shape-picker.component','some','fillType','useMemo','sheets-shape-ui.formatShape','_clipService','IMenuManagerService','_initEvents','createShapeTextBoxShapeData','setOnSavingEditorData','_getShapeInfo','_copyInfo','MenuManagerPosition','canvasElement','attachRangeWithCoord','_baseShapeLeft','_draw','getDrawingSearch','SheetsShapeUIMenuSchema','ConnectorCoordinateTransform','MenuItemType','_sidebarService','updateShapeFillImage','UniverSheetsMobileUIPlugin','_sidebarDisposable','clip','engine','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','stopPropagation','sheetViewStartColumn','shapeText','extraProps','_initMenu','_sheetClipboardService','_createCopyInfoByRange','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','description','sheets-shape-ui.quickStyles','registerRenderModule','worldPoints','default','DRAWING_OBJECT_LAYER_INDEX','with','_registerComponents','name','drawing-ui.objectListPanel.details','OPERATION','memo','subscribe','32YMKZFW','getPresentation','getZoomRatio','DEFAULT_PASTE','computeConnectorResizeLayout','useDependency','isEditing','width','UndoRedoGroupService','_addShapeAdjustControl','_shapeRenderController','shouldAllowShapeTextEditorHostSizeShrink','_shapeUpdateListener','_lastEditingShapeKey','sheets-shape-ui.ribbon.shape-format.arrange-back','sheets-shape-ui.ribbon.shape-format.text-control','_shapes','_shapePopupMenuDisposable','CURSOR_TYPE','_formulaShapes','drawing-ui.objectListPanel.hideAll','focusDrawing','_commandService','clipHeight','isHighlighted','sheets-shape-ui.config','IconManager','UniverDocsPlugin','_disposePopups','fromChangeset','Documents','animateFormulaPresentation','ShapePickerDropdown','_updateAdjustControlPositions','Plugin','getShapeTextRect','_loadAndSetImage','_initSheetChange','Arrow','clearAdjustControls','LEFT','_baseWidth','viewBound','getDrawingShapeKeyByDrawingSearch','computeConnectorRouteLayout','getRealBound','setShapeProps','PaintIcon','_baseShapeWidth','title','sheet.command.menu-insert-shape','_calculateFreeEndpointAngle','FOCUSING_COMMON_DRAWINGS','UniverSheetsDrawingPlugin','_canEdit','_renderWithCache','_drawingRenderService','_hasReset','Module','entries','SolidLine','registerShapeFormatPainter','ShapeFormulaService','drawing-ui.objectListPanel.showAll','_registerOperations','Shape','_shapeTextEditingService','targetShapeId','ShapeDefaultConfig','sheets-shape-ui.editText','_drawShapeText','getConnectionInfo','ShapeIcon','Medium','unsubscribe','intercept','clearAdjustValue','MoveDownIcon','_getShapeAdjustInfosById','visible','_permissionService','transformVector2SceneCoord','drawing-ui.objectListPanel.unlockHint','CommandType','_clearControls','cxnPointStroke','shape-text-','changeStart$','WorksheetCopyPermission','sheet.command.update-shape-data','selectable','_cxnIndex','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','drawingType','_popupMenuListener','lineShapeId','startX','calculate','_attachAdjustEvent','setConfig','setFormulaPresentation','_applyFormulaAutoFitSize','setFillImage','strokeWidth','OTHERS','length','cos','_createControls','resolveActiveShapeQuickStylePresetId','UNIVER_SHEET','setCanUseShapeClip','scale','getShapeTypeById','UniverDrawingUIPlugin','SHEET_SHAPE_UI_PLUGIN','updateDocumentDataMargin','blockExecuteWithoutPermission','UpdateConnectorRelationCommand','_baseDrawingRect','getDrawingPoints','_ribbonService','getShapeModel','InsertSheetsShapeMutation','symbol','getParent','_getZoomRatio','_currentConnectionTarget','DocSelectionManagerService','getCurrentLastSelection','sheet.shape.text.float-menu','vertical-center','forward','find','setHighlighted','_addShapeConnectorHandlerObject','UniverDrawingPlugin','DocumentSkeleton','_activeShapeModel','PREDEFINED_HOOK_NAME','formulaPresentation','getShapeType','_addShapeConnectorHandlerObjects','_baseLeft','ISheetClipboardService','_hide','refreshFormulaPresentation','_insertingShapeKeys','object','_handleConnectorPointerUp','_closeShapeEditPanel','getShapeData','sidebarOptions$','registerFeaturePasteHook','ShapeGroupEnum','changing$','SHEET_VIEWPORT_KEY','DrawingCommonPanel','viewportScrollX','sheets-shape-ui.objectListPanel.open','drawing-ui.objectListPanel.typeNames.','_draggingConnectorId','744rpUZyP','ObjectLayersIcon','_drawSimpleText','_connectionSiteObjects','sheetViewStartRow','_initialize','DRAWING','_moveConnectorWithShape','_drawingManagerService','getBatchUpdateOp','function','ShapeTextHyperLinkPopupService','UniverRenderEnginePlugin','registerFeatureMenu','getDrawingByParam','transform','_configService','drawing-ui.objectListPanel.name','getObjectIncludeInGroup','getBentTypeFromPoints','Disposable','getSheetCommandTarget','IConfigService','univer-box-border\x20univer-px-4\x20univer-text-sm','SheetSkeletonManagerService','DocEventManagerService','_unitId','SheetCanvasPopManagerService','resetCursor','_updateImageAdjValues','attachPopupToObject','_adjHandlerPointerUp','INSERT','presetId','asObservable','completeEditing','TopmostIcon','isolated','interceptCommand','mergeMenu','relation','_isDrawingShapePointDown','sheets-shape-ui.shape-format.style-ribbon-control','5360856ZBgrGp','sheets-shape-ui.imagePanel.crop.shape','contentVerticalOffset','resize','isInGroup','_rerouteConnectorLine','_initCommands','drawing-ui.objectListPanel.hide','value','_getOrCreateShapeModel','InsertShapeCommand','rotation','drawing-ui.objectListPanel.dragToReorder','getMatrix','restore','getSkeletonParam','get','wrapStrategy','executeCommand','ICommandService','OBJECT_LIST_FLOATING_SECTION_ID','_menuManagerService','3250jmqLNe','onCommandExecuted','redo','_imageShapeClipController','440638HKimnW','Inject','highlighted','FlipVerticalIcon','_formulaAnimation','src','useEffect','cancelEditing','WorksheetEditPermission','UniverLicensePlugin','set','backward','getActiveViewportByCoord','_getDrawingRect','_reset','_cxtHandlerPointerUp','setCollapsedIds','_activeTargetShapeId','_sheetDrawingService','unitId'];_0x1e9a=function(){return _0x3a27e3;};return _0x1e9a();}function Ae(){const _0x467ec7=_0x5e988f;let {selection:_0x4615fc,updateShapeData:_0x89246b}=ke();return _0x4615fc?(0x0,p['jsx'])(e[_0x467ec7(0x48f)],{'shapeData':_0x4615fc[_0x467ec7(0x192)],'shapeType':_0x4615fc[_0x467ec7(0x1e6)],'onUpdateShapeData':_0x89246b}):null;}function je(){const _0x39100c=_0x5e988f;let _0x5d9f73=(0x0,t[_0x39100c(0x252)])(a[_0x39100c(0x32c)]),_0x3668b1=(0x0,t[_0x39100c(0x252)])(a[_0x39100c(0x3e1)]),{selection:_0x13036e}=ke();return _0x13036e?(0x0,p[_0x39100c(0x347)])(e[_0x39100c(0x4d7)],{'type':(0x0,r[_0x39100c(0x216)])(_0x13036e[_0x39100c(0x192)]),'ariaLabel':_0x3668b1['t'](_0x39100c(0x241)),'activePresetId':(0x0,r[_0x39100c(0x2b9)])(_0x13036e[_0x39100c(0x192)]),'onSelect':_0x504a56=>_0x5d9f73[_0x39100c(0x32b)](se['id'],{'presetId':_0x504a56})}):null;}function Me(){const _0xda265d=_0x5e988f;let {selection:_0x326fe0,updateShapeData:_0x427004}=ke();return _0x326fe0?(0x0,p[_0xda265d(0x347)])(e[_0xda265d(0x364)],{'fontFamilyPopupDataComponent':'sheets-shape-format-font-family-menu','shapeData':_0x326fe0[_0xda265d(0x192)],'onUpdateShapeData':_0x427004}):null;}function Ne(){const _0x1bbd4b=_0x5e988f;var _0x194195;let {selection:_0x422a18,updateShapeData:_0x2a16e7}=ke(),_0x5955bb=(0x0,e[_0x1bbd4b(0x495)])({'hostType':a[_0x1bbd4b(0x15d)][_0x1bbd4b(0x2ba)],'unitId':(_0x422a18==null?void 0x0:_0x422a18[_0x1bbd4b(0x346)])??'','subUnitId':(_0x422a18==null?void 0x0:_0x422a18['subUnitId'])??'','shapeId':(_0x422a18==null?void 0x0:_0x422a18[_0x1bbd4b(0x456)])??'','shapeData':_0x422a18==null?void 0x0:_0x422a18[_0x1bbd4b(0x192)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x1bbd4b(0x1ac),'onUpdateBinding':_0x1fb2b0=>_0x2a16e7({'formulaBinding':_0x1fb2b0})}),_0x5c9909=((_0x194195=_0x5955bb[_0x1bbd4b(0x16d)])==null?void 0x0:_0x194195[_0x1bbd4b(0x43c)](_0x1a43ed=>_0x1a43ed[_0x1bbd4b(0x48d)])['filter'](_0x3be501=>_0x3be501[_0x1bbd4b(0x29c)]!==!0x1))??[];return _0x422a18!=null&&_0x422a18[_0x1bbd4b(0x192)][_0x1bbd4b(0x425)]?(0x0,p['jsx'])(e[_0x1bbd4b(0x18d)],{'actions':_0x5c9909,'panel':_0x5955bb[_0x1bbd4b(0x4e8)]}):null;}const Pe=_0x5e988f(0x44e),Fe=_0x5e988f(0x25c),Ie='sheets-shape-ui.ribbon.shape-format.formula-control',Le=_0x5e988f(0x455),Re=_0x5e988f(0x401),ze=_0x5e988f(0x450),Be=_0x5e988f(0x25b);function Ve(_0x3281b7){const _0x592c7f=_0x5e988f;let _0x390e5f=_0x3281b7[_0x592c7f(0x329)](a['ICommandService']),_0x2e560a=_0x3281b7[_0x592c7f(0x329)](s[_0x592c7f(0x1bd)]),_0x34d1f6=_0x3281b7[_0x592c7f(0x329)](i['SheetsShapeService']);return new u['Observable'](_0x3d6129=>{const _0x158215=_0x592c7f;let _0x190e0f=()=>{const _0xfea118=_0x2dd2;let _0x3d7c63=V(_0x3281b7),_0x21b955=_0x3d7c63?_0x34d1f6['getShapeDataById'](_0x3d7c63[_0xfea118(0x346)],_0x3d7c63[_0xfea118(0x369)],_0x3d7c63['drawingId']):null;_0x3d6129['next'](_0x21b955?(0x0,r['resolveActiveShapeQuickStylePresetId'])(_0x21b955)??'':'');},_0x3bb370=_0x2e560a[_0x158215(0x15b)]['subscribe'](_0x190e0f),_0x413dd7=_0x390e5f[_0x158215(0x330)](_0x5e2bfa=>{const _0x1f45a5=_0x158215;_0x5e2bfa['id']===i[_0x1f45a5(0x17c)]['id']&&_0x190e0f();});return _0x190e0f(),()=>{const _0x20f5be=_0x158215;_0x3bb370['unsubscribe'](),_0x413dd7[_0x20f5be(0x4c1)]();};});}function V(_0x39d4cd){const _0x31e0fb=_0x5e988f;var _0x2886cb;let _0x3a4445=_0x39d4cd[_0x31e0fb(0x329)](s['IDrawingManagerService'])[_0x31e0fb(0x166)]();return _0x3a4445[_0x31e0fb(0x2b6)]===0x1&&((_0x2886cb=_0x3a4445[0x0])==null?void 0x0:_0x2886cb['drawingType'])===a[_0x31e0fb(0x181)][_0x31e0fb(0x1d7)]?_0x3a4445[0x0]:null;}function He(_0x365374,_0x384ebe=!0x1){const _0x2ad8d3=_0x5e988f;let _0x2d65eb=_0x365374[_0x2ad8d3(0x329)](a['ICommandService']),_0x1ca27b=_0x365374[_0x2ad8d3(0x329)](s[_0x2ad8d3(0x1bd)]),_0x17e22a=_0x365374[_0x2ad8d3(0x329)](i[_0x2ad8d3(0x44c)]);return new u[(_0x2ad8d3(0x1a5))](_0x4dac4b=>{const _0x2e55d1=_0x2ad8d3;let _0xcee4d9=()=>{const _0x5833d6=_0x2dd2;let _0x17be72=V(_0x365374);if(!_0x17be72){_0x4dac4b[_0x5833d6(0x3b7)](!0x0);return;}let _0x121111=_0x17e22a['getShapeDataById'](_0x17be72[_0x5833d6(0x346)],_0x17be72['subUnitId'],_0x17be72['drawingId']);_0x4dac4b['next'](!_0x121111||_0x384ebe&&_0x121111['formulaBinding']==null);},_0x34dd18=_0x1ca27b[_0x2e55d1(0x15b)][_0x2e55d1(0x24c)](_0xcee4d9),_0x4f85af=_0x2d65eb[_0x2e55d1(0x330)](_0x50cc98=>{const _0x801bad=_0x2e55d1;_0x50cc98['id']===i[_0x801bad(0x17c)]['id']&&_0xcee4d9();});return _0xcee4d9(),()=>{const _0x20ea6e=_0x2e55d1;_0x34dd18[_0x20ea6e(0x297)](),_0x4f85af[_0x20ea6e(0x4c1)]();};});}function Ue(_0x1b3fb8){const _0x56fc67=_0x5e988f;let _0x3b6890=_0x1b3fb8[_0x56fc67(0x329)](s['IDrawingManagerService']),_0x279a18=_0x1b3fb8['get'](i[_0x56fc67(0x44c)]);return _0x3b6890[_0x56fc67(0x15b)]['pipe']((0x0,u['startWith'])(_0x3b6890[_0x56fc67(0x166)]()),(0x0,u[_0x56fc67(0x4a5)])(()=>{const _0x33cc42=_0x56fc67;let _0x156135=V(_0x1b3fb8),_0x494ec4=_0x156135?_0x279a18[_0x33cc42(0x2bd)](_0x156135[_0x33cc42(0x346)],_0x156135[_0x33cc42(0x369)],_0x156135['drawingId']):void 0x0;return _0x494ec4===void 0x0||(0x0,n['isConnectorShape'])(_0x494ec4);}));}function We(_0x5d0aa1){const _0x1683e7=_0x5e988f;return{'id':se['id'],'type':t[_0x1683e7(0x230)][_0x1683e7(0x4c5)],'icon':_0x1683e7(0x27c),'title':_0x1683e7(0x34a),'tooltip':'shape-editor-ui.toolbar.quickStyles','selections':[{'label':{'name':Te,'hoverable':!0x1,'selectable':!0x1}}],'value$':Ve(_0x5d0aa1),'hidden$':He(_0x5d0aa1)};}function Ge(_0x12e2a6){const _0x2e6ed6=_0x5e988f;return{'id':ce['id'],'type':t['MenuItemType'][_0x2e6ed6(0x4c5)],'icon':_0x2e6ed6(0x295),'title':_0x2e6ed6(0x21a),'tooltip':_0x2e6ed6(0x21a),'slot':!0x0,'selections':[{'label':{'name':e[_0x2e6ed6(0x383)],'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Ue(_0x12e2a6)};}function Ke(_0x54ca0f,_0x1bcd85,_0x4b0ead=!0x1){const _0x315a19=_0x5e988f;return _0x47cb3b=>({'id':_0x54ca0f,'type':t[_0x315a19(0x230)]['BUTTON'],'label':{'name':_0x1bcd85,'hoverable':!0x1,'selectable':!0x1},'hidden$':He(_0x47cb3b,_0x4b0ead)});}const qe=Ke(Pe,Ee),Je=Ke(Fe,De),Ye=Ke(Ie,Oe,!0x0);function Xe(_0x41d934,_0x59dd45,_0x1b9f8c,_0x2c9613){const _0x58f365=_0x5e988f;return _0x27db85=>({'id':_0x41d934,'commandId':m[_0x58f365(0x4f0)]['id'],'type':t['MenuItemType']['BUTTON'],'icon':_0x1b9f8c,'title':_0x2c9613,'tooltip':_0x2c9613,'hidden$':He(_0x27db85),'params':()=>{const _0x26954f=_0x58f365;let _0x3bce07=V(_0x27db85);return _0x3bce07?{'unitId':_0x3bce07['unitId'],'subUnitId':_0x3bce07[_0x26954f(0x369)],'drawingIds':[_0x3bce07[_0x26954f(0x456)]],'arrangeType':_0x59dd45}:void 0x0;}});}const Ze=Xe(Le,a[_0x5e988f(0x493)]['forward'],_0x5e988f(0x4d0),_0x5e988f(0x3b0)),Qe=Xe(Re,a['ArrangeTypeEnum'][_0x5e988f(0x33e)],_0x5e988f(0x29a),_0x5e988f(0x218)),$e=Xe(ze,a[_0x5e988f(0x493)][_0x5e988f(0x3b1)],_0x5e988f(0x312),_0x5e988f(0x179)),et=Xe(Be,a['ArrangeTypeEnum'][_0x5e988f(0x3ff)],_0x5e988f(0x4dc),'shape-editor-ui.arrange.back');function tt(_0x5a435f){const _0x39e353=_0x5e988f;let _0x3c5c24=_0x5a435f[_0x39e353(0x329)](t[_0x39e353(0x1a0)]);return{'activated$':(0x0,u[_0x39e353(0x357)])(()=>_0x3c5c24['sidebarOptions$'][_0x39e353(0x3d3)]((0x0,u[_0x39e353(0x406)])(_0x3c5c24['options']),(0x0,u['map'])(_0x3539f2=>_0x3539f2['visible']===!0x0&&_0x3539f2['id']===_0x39e353(0x382)),(0x0,u[_0x39e353(0x410)])())),'id':z['id'],'type':t['MenuItemType'][_0x39e353(0x1a4)],'icon':_0x39e353(0x4cd),'title':_0x39e353(0x220),'tooltip':_0x39e353(0x220),'hidden$':He(_0x5a435f),'params':()=>{const _0x15079c=_0x39e353;let _0x171d2e=V(_0x5a435f);return _0x171d2e?{'unitId':_0x171d2e['unitId'],'subUnitId':_0x171d2e['subUnitId'],'drawingId':_0x171d2e[_0x15079c(0x456)]}:void 0x0;}};}const nt={[t[_0x5e988f(0x228)]['RIBBON']]:{[R]:{'order':0x64,'title':_0x5e988f(0x220),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[se['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':We},[ce['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ge}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[Pe]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':qe}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[Fe]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Je}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[ye]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':Ce},[be]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':we},[Le]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':Ze},[Re]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':Qe},[ze]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':$e},[Be]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':et}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[Ie]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Ye}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[z['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':tt},[e['ToggleShapeFloatingToolbarOperation']['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':e[_0x5e988f(0x3df)]}}}}},rt={[t[_0x5e988f(0x4c4)][_0x5e988f(0x1a8)]]:{[P['id']]:{'order':0x3,'menuItemFactory':_e}}},it={...rt,[t[_0x5e988f(0x4c4)][_0x5e988f(0x2b5)]]:{[ae['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':ve}},[t[_0x5e988f(0x376)][_0x5e988f(0x2f4)]]:{[t[_0x5e988f(0x1ca)][_0x5e988f(0x2b5)]]:{[ye]:{'order':0x4,'menuItemFactory':Ce},[be]:{'order':0x5,'menuItemFactory':we}}}};var at=_0x5e988f(0x34b),ot=_0x5e988f(0x1d8);const st={'id':_0x5e988f(0x1b7),'type':a[_0x5e988f(0x2a0)]['OPERATION'],'handler'(_0x17422d,_0x356a4b){const _0x26aecd=_0x5e988f;return _0x356a4b?(_0x17422d['get'](e[_0x26aecd(0x1b5)])['open'](_0x356a4b[_0x26aecd(0x1c5)],{'hostType':a[_0x26aecd(0x15d)][_0x26aecd(0x2ba)],'shapeId':_0x356a4b[_0x26aecd(0x456)],'subUnitId':_0x356a4b[_0x26aecd(0x369)],'unitId':_0x356a4b[_0x26aecd(0x346)]}),!0x0):!0x1;}},ct=_0x5e988f(0x266),lt={};let ut=class extends a[_0x5e988f(0x302)]{constructor(_0x37e8ca,_0x5a38a0,_0x929d64,_0x4a9c29,_0x1e6813){const _0x380be4=_0x5e988f;super(),this['_context']=_0x37e8ca,this[_0x380be4(0x2f6)]=_0x5a38a0,this['_renderManagerService']=_0x929d64,this[_0x380be4(0x3fa)]=_0x4a9c29,this[_0x380be4(0x332)]=_0x1e6813,E(this,_0x380be4(0x3c6),null),E(this,_0x380be4(0x308),null),E(this,_0x380be4(0x363),null),E(this,_0x380be4(0x3ee),void 0x0),E(this,_0x380be4(0x25d),[]),E(this,'_baseLeft',0x0),E(this,_0x380be4(0x433),0x0),E(this,'_baseWidth',0x0),E(this,_0x380be4(0x3e2),0x0),E(this,'_isStartAdjusting',!0x1),E(this,_0x380be4(0x4e6),void 0x0),E(this,'_activeShapeModel',void 0x0),E(this,_0x380be4(0x1bf),void 0x0),E(this,'_adjHandlerPointerUp',void 0x0),E(this,_0x380be4(0x47a),!0x1),this[_0x380be4(0x1c7)](),this['_registerMoveHandler']();}[_0x5e988f(0x274)](){this['_clearControls']();}[_0x5e988f(0x3e5)](){this['_clearControls'](),this['_createControls'](!0x0);}['_getOrCreateShapeModel'](_0x4e4d2e,_0x3cbf95,_0x116e9d,_0x1f87fb){const _0x3448a7=_0x5e988f;let _0x3656e5=_0x4e4d2e;if(_0x3656e5!==n[_0x3448a7(0x49d)][_0x3448a7(0x189)]&&_0x4e4d2e!=='custom')try{let _0x2c557a=new n[(_0x3448a7(0x1b2))](_0x3656e5,_0x3448a7(0x4a6)+_0x4e4d2e);return _0x1f87fb&&_0x2c557a['setShapeData']({'adjustValues':_0x1f87fb},!0x0),_0x2c557a[_0x3448a7(0x162)]({'width':_0x3cbf95,'height':_0x116e9d}),_0x2c557a;}catch{return;}}[_0x5e988f(0x36b)](_0x5295ea,_0x5ac7e9,_0x2d33ba){const _0xae3ffb=_0x5e988f;let _0x4c4094={'unitId':_0x5295ea,'subUnitId':_0x5ac7e9,'drawingId':_0x2d33ba},_0x422d50=this[_0xae3ffb(0x2f6)]['getDrawingByParam'](_0x4c4094);if(_0x422d50&&_0x422d50[_0xae3ffb(0x2aa)]===a[_0xae3ffb(0x181)][_0xae3ffb(0x3f2)])return _0x422d50;}['_getImagePrstGeom'](_0x3cddc9,_0x3d1be4,_0xa5f25){const _0x5c0937=_0x5e988f;let _0x5b541a=this[_0x5c0937(0x1ea)]['getRenderUnitById'](_0x3cddc9);if(!_0x5b541a)return;let {scene:_0x5133de}=_0x5b541a,_0x20950b=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x3cddc9,'subUnitId':_0x3d1be4,'drawingId':_0xa5f25}),_0x585bec=_0x5133de[_0x5c0937(0x486)](_0x20950b);if(_0x585bec instanceof c[_0x5c0937(0x40d)]){let _0x1339e7=_0x585bec[_0x5c0937(0x395)];if(_0x1339e7)return{'prstGeom':_0x1339e7,'adjustValues':_0x585bec[_0x5c0937(0x19f)]};}}[_0x5e988f(0x2b8)](_0x13a49a=!0x1){const _0x372f7a=_0x5e988f;if(!this['_unitId']||!this[_0x372f7a(0x363)]||!this[_0x372f7a(0x3c6)])return;let _0x44fafd=this[_0x372f7a(0x1ea)][_0x372f7a(0x188)](this[_0x372f7a(0x308)]);if(!_0x44fafd||!_0x44fafd[_0x372f7a(0x246)](l[_0x372f7a(0x306)])[_0x372f7a(0x42e)]())return;let {scene:_0x165b07}=_0x44fafd,_0x15a826=this[_0x372f7a(0x36b)](this[_0x372f7a(0x308)],this[_0x372f7a(0x363)],this[_0x372f7a(0x3c6)]);if(!_0x15a826)return;let {transform:_0x3e0cbc}=_0x15a826;if(!_0x3e0cbc)return;let {left:_0x3f3dfc,top:_0x3a2790,width:_0x5893c2,height:_0x5022e2,flipX:_0x23e201,flipY:_0x190644,angle:_0x5bddb1=0x0}=_0x3e0cbc;if(_0x3f3dfc===void 0x0||_0x3a2790===void 0x0)return;let _0x1361bd=this[_0x372f7a(0x467)](this[_0x372f7a(0x308)],this[_0x372f7a(0x363)],this[_0x372f7a(0x3c6)]);if(!_0x1361bd)return;if(_0x13a49a){let _0x14709c=this['_getOrCreateShapeModel'](_0x1361bd['prstGeom'],_0x5893c2||0x0,_0x5022e2||0x0,_0x1361bd[_0x372f7a(0x441)]);if(!_0x14709c)return;this[_0x372f7a(0x3ee)]=_0x14709c[_0x372f7a(0x2c4)]();}let _0x468ccd=this['_activeAdjustPointList'];if(_0x468ccd&&_0x468ccd[_0x372f7a(0x2b6)]!==0x0)for(let _0x431eb=0x0;_0x431eb<_0x468ccd[_0x372f7a(0x2b6)];_0x431eb++){let _0x2ca6ec=_0x468ccd[_0x431eb],_0x349fd0=_0x2ca6ec['x'],_0x4e9f1e=_0x2ca6ec['y'];if(_0x23e201&&(_0x349fd0=(_0x5893c2||0x0)-_0x349fd0),_0x190644&&(_0x4e9f1e=(_0x5022e2||0x0)-_0x4e9f1e),_0x5bddb1!==0x0){let _0x1ff0ec=(_0x5893c2||0x0)/0x2,_0x40a7b4=(_0x5022e2||0x0)/0x2,_0x4503f7=_0x5bddb1*Math['PI']/0xb4,_0x5ed472=Math[_0x372f7a(0x2b7)](_0x4503f7),_0x48d51f=Math['sin'](_0x4503f7),_0x58770f=_0x349fd0-_0x1ff0ec,_0x29c78a=_0x4e9f1e-_0x40a7b4;_0x349fd0=_0x1ff0ec+(_0x58770f*_0x5ed472-_0x29c78a*_0x48d51f),_0x4e9f1e=_0x40a7b4+(_0x58770f*_0x48d51f+_0x29c78a*_0x5ed472);}let _0xe63dbe={'x':_0x349fd0,'y':_0x4e9f1e,'adjName':_0x2ca6ec[_0x372f7a(0x1fe)]};this[_0x372f7a(0x38c)](_0x165b07,_0xe63dbe,_0xe63dbe[_0x372f7a(0x1fe)],_0x3f3dfc,_0x3a2790,this[_0x372f7a(0x308)],this[_0x372f7a(0x363)]);}}[_0x5e988f(0x38c)](_0x4ccef8,_0x339c06,_0x4c3b02,_0x3484c9,_0x572d2b,_0x4f7192,_0x4596ca){const _0x17d2a4=_0x5e988f;if(!this[_0x17d2a4(0x3c6)])return;let _0x2b2118='image-clip-adjust-point-'+this[_0x17d2a4(0x3c6)]+'-'+_0x4c3b02,_0x30cf77=_0x4ccef8[_0x17d2a4(0x300)](_0x2b2118);if(_0x30cf77){_0x30cf77[_0x17d2a4(0x49b)]({'left':_0x339c06['x']+_0x3484c9-n[_0x17d2a4(0x291)][_0x17d2a4(0x214)],'top':_0x339c06['y']+_0x572d2b-n['ShapeDefaultConfig'][_0x17d2a4(0x214)]});return;}let _0x4ea78a=new O(_0x2b2118,{'left':_0x339c06['x']+_0x3484c9-n[_0x17d2a4(0x291)][_0x17d2a4(0x214)],'top':_0x339c06['y']+_0x572d2b-n[_0x17d2a4(0x291)]['adjHandleSize'],'adjName':_0x4c3b02,'shapeId':this[_0x17d2a4(0x3c6)],'unitId':_0x4f7192,'subUnitId':_0x4596ca,'width':n[_0x17d2a4(0x291)][_0x17d2a4(0x214)]+0x8,'height':n[_0x17d2a4(0x291)][_0x17d2a4(0x214)]+0x8,'zIndex':c[_0x17d2a4(0x245)]+0x1,'evented':!0x0});this[_0x17d2a4(0x25d)][_0x17d2a4(0x4d5)](_0x4ea78a),this['_attachAdjustEvent'](_0x4ea78a,_0x4ccef8,_0x4c3b02),_0x4ccef8[_0x17d2a4(0x1b8)](_0x4ea78a,c[_0x17d2a4(0x245)]+0x1);}[_0x5e988f(0x2a1)](){const _0x216ad3=_0x5e988f;this[_0x216ad3(0x25d)][_0x216ad3(0x2b6)]!==0x0&&(this[_0x216ad3(0x25d)][_0x216ad3(0x424)](_0x32ee6c=>_0x32ee6c[_0x216ad3(0x4c1)]()),this[_0x216ad3(0x25d)]=[]);}[_0x5e988f(0x37e)](_0xa17052,_0x3ef3b9){const _0x1cc40b=_0x5e988f;var _0x170cda;let _0x506f18={'x':0x0,'y':0x0},_0x3b09b7=this[_0x1cc40b(0x1ea)][_0x1cc40b(0x188)](_0xa17052);if(!_0x3b09b7||!_0x3b09b7[_0x1cc40b(0x246)](l[_0x1cc40b(0x306)])[_0x1cc40b(0x4a3)](_0x3ef3b9))return _0x506f18;let _0x19b660=_0x3b09b7[_0x1cc40b(0x246)](l[_0x1cc40b(0x49c)]),_0x3751fc=_0x19b660==null?void 0x0:_0x19b660[_0x1cc40b(0x43d)]();if(!_0x3751fc)return _0x506f18;let _0x164e82=(_0x170cda=this[_0x1cc40b(0x3fa)]['getUnit'](_0xa17052))==null?void 0x0:_0x170cda['getSheetBySheetId'](_0x3ef3b9);if(!_0x164e82)return _0x506f18;let _0x34ea43=(0x0,l[_0x1cc40b(0x3d7)])(_0x3751fc[_0x1cc40b(0x2f2)],_0x3751fc['sheetViewStartColumn'],_0x3b09b7[_0x1cc40b(0x466)],_0x164e82);return _0x34ea43?{'x':_0x34ea43[_0x1cc40b(0x2ea)],'y':_0x34ea43[_0x1cc40b(0x1fd)]}:_0x506f18;}[_0x5e988f(0x2ca)](_0x37fed3,_0x414ff8){const _0x247c64=_0x5e988f;var _0x5a46aa;let _0x1cc7ae=(_0x5a46aa=this[_0x247c64(0x3fa)]['getUnit'](_0x37fed3))==null?void 0x0:_0x5a46aa['getSheetBySheetId'](_0x414ff8);return(_0x1cc7ae==null?void 0x0:_0x1cc7ae['getZoomRatio']())??0x1;}[_0x5e988f(0x2af)](_0x47aee8,_0x5a82d0,_0x5b328e){const _0x46931b=_0x5e988f;this[_0x46931b(0x36f)]((0x0,a[_0x46931b(0x1cc)])(_0x47aee8['onPointerDown$'][_0x46931b(0x194)]((_0x2f2ae1,_0x55bca9)=>{const _0x4ea52e=_0x46931b;var _0x5b46e2,_0x2bdc3c,_0x20d155;let {unitId:_0x521ad8,subUnitId:_0x3a3b14,drawingId:_0x4373b9}=_0x47aee8[_0x4ea52e(0x22d)](),_0x176f4f=this[_0x4ea52e(0x36b)](_0x521ad8,_0x3a3b14,_0x4373b9);if(!(_0x176f4f!=null&&_0x176f4f[_0x4ea52e(0x2fd)]))return;let {left:_0x69c63f,top:_0x5b9586,width:_0x1cce4c,height:_0x5bf720}=_0x176f4f[_0x4ea52e(0x2fd)];this[_0x4ea52e(0x2db)]=_0x69c63f||0x0,this[_0x4ea52e(0x433)]=_0x5b9586||0x0,this[_0x4ea52e(0x276)]=_0x1cce4c||0x0,this[_0x4ea52e(0x3e2)]=_0x5bf720||0x0;let _0x84b0e=!!((_0x5b46e2=_0x176f4f[_0x4ea52e(0x2fd)])!=null&&_0x5b46e2[_0x4ea52e(0x174)]),_0xdceb01=!!((_0x2bdc3c=_0x176f4f[_0x4ea52e(0x2fd)])!=null&&_0x2bdc3c['flipY']),_0x5b4245=((_0x20d155=_0x176f4f[_0x4ea52e(0x2fd)])==null?void 0x0:_0x20d155['angle'])||0x0,_0x2bbadb=this['_getImagePrstGeom'](_0x521ad8,_0x3a3b14,_0x4373b9);if(!_0x2bbadb)return;let _0x2363d5=this[_0x4ea52e(0x322)](_0x2bbadb['prstGeom'],this[_0x4ea52e(0x276)],this[_0x4ea52e(0x3e2)],_0x2bbadb[_0x4ea52e(0x441)]);if(!_0x2363d5||(this['_activeShapeModel']=_0x2363d5,this[_0x4ea52e(0x4e6)]=_0x2363d5['getAdjustInfoByName'](_0x5b328e),!this[_0x4ea52e(0x4e6)]))return;this[_0x4ea52e(0x35a)]=!0x0,_0x5a82d0[_0x4ea52e(0x3a3)]();let _0x23ee8b=_0x2bbadb[_0x4ea52e(0x395)];this[_0x4ea52e(0x1bf)]=_0x5a82d0[_0x4ea52e(0x1c2)][_0x4ea52e(0x194)]((_0x2632f1,_0x1c89a4)=>{const _0x1dbfe5=_0x4ea52e;if(!this[_0x1dbfe5(0x35a)])return;let {offsetX:_0x191136,offsetY:_0x4ace9d}=_0x2632f1,_0x27657a=this[_0x1dbfe5(0x4e6)];if(!this[_0x1dbfe5(0x2d6)]||!_0x27657a)return;_0x5a82d0[_0x1dbfe5(0x3a3)](),_0x5a82d0['setCursor'](c[_0x1dbfe5(0x25f)][_0x1dbfe5(0x47c)]);let _0x39278d={'left':0x0,'top':0x0,'width':this['_baseWidth'],'height':this[_0x1dbfe5(0x3e2)]},_0x136e7d=this['_getScrollInfo'](_0x521ad8,_0x3a3b14),_0x2cb1b9=this[_0x1dbfe5(0x2ca)](_0x521ad8,_0x3a3b14),_0x14135a=_0x191136/_0x2cb1b9+_0x136e7d['x']-this[_0x1dbfe5(0x2db)],_0x4ce539=_0x4ace9d/_0x2cb1b9+_0x136e7d['y']-this['_baseTop'];if(_0x5b4245!==0x0){let _0x241644=this[_0x1dbfe5(0x276)]/0x2,_0x417be4=this[_0x1dbfe5(0x3e2)]/0x2,_0x3c9db3=_0x5b4245*Math['PI']/0xb4,_0x186560=Math['cos'](_0x3c9db3),_0x11594e=Math[_0x1dbfe5(0x3a4)](_0x3c9db3),_0x2d69de=_0x14135a-_0x241644,_0x3c4c99=_0x4ce539-_0x417be4;_0x14135a=_0x241644+(_0x2d69de*_0x186560+_0x3c4c99*_0x11594e),_0x4ce539=_0x417be4+(-_0x2d69de*_0x11594e+_0x3c4c99*_0x186560);}_0x84b0e&&(_0x14135a=this['_baseWidth']-_0x14135a),_0xdceb01&&(_0x4ce539=this[_0x1dbfe5(0x3e2)]-_0x4ce539);let _0x173a84=this[_0x1dbfe5(0x2d6)][_0x1dbfe5(0x202)](_0x39278d,{'x':_0x14135a,'y':_0x4ce539},_0x27657a,_0x84b0e,_0xdceb01);if(Object['keys'](_0x173a84)[_0x1dbfe5(0x2b6)]!==0x0){for(let [_0xd4f26,_0x2ee8fd]of Object[_0x1dbfe5(0x288)](_0x173a84))this[_0x1dbfe5(0x2d6)][_0x1dbfe5(0x431)](_0xd4f26,_0x2ee8fd);this[_0x1dbfe5(0x2d6)]['updateContext']({'width':this['_baseWidth'],'height':this['_baseHeight']}),this['_updateImageAdjValues'](_0x521ad8,_0x3a3b14,_0x4373b9,_0x173a84),this[_0x1dbfe5(0x3ee)]=this['_activeShapeModel'][_0x1dbfe5(0x2c4)](),this[_0x1dbfe5(0x2b8)](),_0x1c89a4[_0x1dbfe5(0x238)]();}}),this[_0x4ea52e(0x30d)]=_0x5a82d0[_0x4ea52e(0x4b8)]['subscribeEvent']((_0x177512,_0x4b50eb)=>{const _0x10eb4e=_0x4ea52e;if(this['_adjHandlerPointerMove']['unsubscribe'](),this[_0x10eb4e(0x30d)][_0x10eb4e(0x297)](),_0x5a82d0[_0x10eb4e(0x30a)](),this[_0x10eb4e(0x2d6)]){let _0x49c01f=this['_activeShapeModel'][_0x10eb4e(0x4bf)](),_0x17952b={};for(let _0x2b9fe2 of _0x49c01f){let _0x626079=this[_0x10eb4e(0x2d6)]['getAdjustValueByName'](_0x2b9fe2);_0x626079!==void 0x0&&(_0x17952b[_0x2b9fe2]=_0x626079);}this['_imageShapeClipController'][_0x10eb4e(0x35d)](_0x521ad8,_0x3a3b14,_0x4373b9,_0x23ee8b,_0x17952b);}this[_0x10eb4e(0x4e6)]=void 0x0,this[_0x10eb4e(0x2d6)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x4b50eb[_0x10eb4e(0x238)](),_0x5a82d0[_0x10eb4e(0x4b6)]();}),_0x55bca9[_0x4ea52e(0x238)]();})));}[_0x5e988f(0x30b)](_0x44f1a7,_0x44e380,_0x382eb6,_0x29fceb){const _0x18452b=_0x5e988f;let _0x2b2315=this[_0x18452b(0x1ea)][_0x18452b(0x188)](_0x44f1a7);if(!_0x2b2315)return;let {scene:_0x362bd3}=_0x2b2315,_0x35666b=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x44f1a7,'subUnitId':_0x44e380,'drawingId':_0x382eb6}),_0x45e5c0=_0x362bd3[_0x18452b(0x486)](_0x35666b);if(_0x45e5c0 instanceof c[_0x18452b(0x40d)]){let _0x33fad6=_0x45e5c0[_0x18452b(0x19f)]??{};_0x45e5c0[_0x18452b(0x35f)]({..._0x33fad6,..._0x29fceb}),_0x45e5c0[_0x18452b(0x213)](!0x0);}}[_0x5e988f(0x3bf)](){const _0x19a3ef=_0x5e988f;let _0x9dd859=this[_0x19a3ef(0x3fa)][_0x19a3ef(0x1b9)](a[_0x19a3ef(0x15d)][_0x19a3ef(0x2ba)]);this[_0x19a3ef(0x36f)](_0x9dd859['pipe']((0x0,u['switchMap'])(_0x3e275c=>_0x3e275c?_0x3e275c['activeSheet$']['pipe']((0x0,u[_0x19a3ef(0x430)])(_0x4a2ba4=>{const _0x3ed39f=_0x19a3ef;if(!_0x4a2ba4)return u[_0x3ed39f(0x4c6)];let _0x41b37e=_0x3e275c[_0x3ed39f(0x39d)](),_0x23e806=this[_0x3ed39f(0x1ea)][_0x3ed39f(0x188)](_0x41b37e),_0x4e1de7=_0x23e806==null?void 0x0:_0x23e806[_0x3ed39f(0x466)];return _0x4e1de7?(0x0,u['of'])(_0x4e1de7):u['EMPTY'];})):u[_0x19a3ef(0x4c6)]))[_0x19a3ef(0x24c)](_0x278e92=>{const _0x2f2e7e=_0x19a3ef;let _0x5c1cdc=_0x278e92[_0x2f2e7e(0x209)]();this['disposeWithMe'](_0x278e92[_0x2f2e7e(0x1c2)][_0x2f2e7e(0x194)](()=>{const _0x4c1a65=_0x2f2e7e;this[_0x4c1a65(0x47a)]&&this[_0x4c1a65(0x2a1)]();})),this[_0x2f2e7e(0x36f)](_0x5c1cdc['changeStart$'][_0x2f2e7e(0x24c)](_0x15a87a=>{const _0x909ae9=_0x2f2e7e;let {objects:_0x27f2e9}=_0x15a87a;if(this[_0x909ae9(0x2b8)](),_0x27f2e9!==null&&_0x27f2e9[_0x909ae9(0x4bd)]===0x1){let _0x1667fd=_0x27f2e9[_0x909ae9(0x3c9)]()[_0x909ae9(0x3b7)]()[_0x909ae9(0x321)];_0x1667fd instanceof c[_0x909ae9(0x40d)]&&_0x1667fd[_0x909ae9(0x395)]&&(this[_0x909ae9(0x47a)]=!0x0);}})),this[_0x2f2e7e(0x36f)](_0x5c1cdc[_0x2f2e7e(0x2e7)]['subscribe'](()=>{const _0x17b320=_0x2f2e7e;this[_0x17b320(0x47a)]&&this[_0x17b320(0x2a1)]();})),this[_0x2f2e7e(0x36f)](_0x278e92[_0x2f2e7e(0x4b8)][_0x2f2e7e(0x194)](()=>{const _0x3bb8e9=_0x2f2e7e;this[_0x3bb8e9(0x47a)]&&(this[_0x3bb8e9(0x47a)]=!0x1,this[_0x3bb8e9(0x2b8)]());})),this[_0x2f2e7e(0x36f)](_0x5c1cdc[_0x2f2e7e(0x403)][_0x2f2e7e(0x24c)](()=>{const _0x525a36=_0x2f2e7e;if(this['_unitId']&&this['_subUnitId']&&this[_0x525a36(0x3c6)]){let _0x23dab6=this[_0x525a36(0x467)](this[_0x525a36(0x308)],this['_subUnitId'],this[_0x525a36(0x3c6)]);if(_0x23dab6){var _0x83383d,_0x5e17da;let _0x46c664=this[_0x525a36(0x36b)](this[_0x525a36(0x308)],this[_0x525a36(0x363)],this[_0x525a36(0x3c6)]),_0x177867=(_0x46c664==null||(_0x83383d=_0x46c664[_0x525a36(0x2fd)])==null?void 0x0:_0x83383d['width'])||0x0,_0x46553a=(_0x46c664==null||(_0x5e17da=_0x46c664['transform'])==null?void 0x0:_0x5e17da[_0x525a36(0x457)])||0x0,_0x2ce8df=this[_0x525a36(0x322)](_0x23dab6[_0x525a36(0x395)],_0x177867,_0x46553a,_0x23dab6[_0x525a36(0x441)]);_0x2ce8df&&(this[_0x525a36(0x3ee)]=_0x2ce8df['getDrawingPoints'](),this['_clearControls'](),this[_0x525a36(0x2b8)](!0x0));}}}));}));}[_0x5e988f(0x1c7)](){const _0x264efd=_0x5e988f;this[_0x264efd(0x36f)](this[_0x264efd(0x2f6)][_0x264efd(0x15b)][_0x264efd(0x24c)](_0x243fc2=>{const _0x30ee1c=_0x264efd;if(_0x243fc2[_0x30ee1c(0x2b6)]===0x1){let _0x38b0da=_0x243fc2[0x0];if(_0x38b0da[_0x30ee1c(0x2aa)]===a['DrawingTypeEnum'][_0x30ee1c(0x3f2)]){let {unitId:_0x294bd0,subUnitId:_0x4ea342,drawingId:_0x5c6f5c}=_0x38b0da,_0x4a5563=this[_0x30ee1c(0x467)](_0x294bd0,_0x4ea342,_0x5c6f5c);if(_0x4a5563){var _0x521988,_0x3bec44;this[_0x30ee1c(0x3c6)]=_0x5c6f5c,this[_0x30ee1c(0x308)]=_0x294bd0,this['_subUnitId']=_0x4ea342;let _0x3b1a0d=this[_0x30ee1c(0x36b)](_0x294bd0,_0x4ea342,_0x5c6f5c),_0x410ae4=(_0x3b1a0d==null||(_0x521988=_0x3b1a0d[_0x30ee1c(0x2fd)])==null?void 0x0:_0x521988['width'])||0x0,_0x429b13=(_0x3b1a0d==null||(_0x3bec44=_0x3b1a0d['transform'])==null?void 0x0:_0x3bec44[_0x30ee1c(0x457)])||0x0,_0x3822a6=this[_0x30ee1c(0x322)](_0x4a5563[_0x30ee1c(0x395)],_0x410ae4,_0x429b13,_0x4a5563['adjustValues']);_0x3822a6&&(this[_0x30ee1c(0x3ee)]=_0x3822a6['getDrawingPoints']()),this[_0x30ee1c(0x2a1)](),this[_0x30ee1c(0x2b8)](!0x0);}else this[_0x30ee1c(0x366)]();}else this[_0x30ee1c(0x366)]();}else this['_resetState']();})),this[_0x264efd(0x36f)](this['_drawingManagerService'][_0x264efd(0x34d)][_0x264efd(0x24c)](_0x40fae8=>{const _0x3fe12f=_0x264efd;if(_0x40fae8[_0x3fe12f(0x2b6)]===0x1){let _0x228690=_0x40fae8[0x0],_0x357748=this['_drawingManagerService']['getDrawingByParam'](_0x228690);(_0x357748==null?void 0x0:_0x357748[_0x3fe12f(0x2aa)])===a[_0x3fe12f(0x181)][_0x3fe12f(0x3f2)]&&this[_0x3fe12f(0x3c6)]===_0x228690['drawingId']&&(this[_0x3fe12f(0x2a1)](),this[_0x3fe12f(0x2b8)](!0x0));}})),this[_0x264efd(0x36f)](this[_0x264efd(0x2f6)]['remove$'][_0x264efd(0x24c)](_0x412ae5=>{const _0xb3c686=_0x264efd;for(let _0x1245fb of _0x412ae5)this[_0xb3c686(0x3c6)]===_0x1245fb['drawingId']&&this['_resetState']();}));}['_resetState'](){const _0x126f1b=_0x5e988f;this[_0x126f1b(0x3c6)]=null,this[_0x126f1b(0x308)]=null,this[_0x126f1b(0x363)]=null,this['_activeAdjustPointList']=void 0x0,this[_0x126f1b(0x2a1)]();}};ut=A([k(0x1,s[_0x5e988f(0x1bd)]),k(0x2,(0x0,a['Inject'])(c[_0x5e988f(0x18e)])),k(0x3,a['IUniverInstanceService']),k(0x4,(0x0,a[_0x5e988f(0x334)])(B))],ut);function dt(_0x13a61d){const _0x28c361=_0x5e988f;return _0x13a61d[_0x28c361(0x4bc)]()||void 0x0;}function ft(_0x223a51,_0x5236ec,_0x298b6f){const _0x23f625=_0x5e988f;var _0x27a215;return((_0x27a215=_0x223a51[_0x23f625(0x248)])==null?void 0x0:_0x27a215[_0x23f625(0x4bc)]())||_0x298b6f['t'](_0x23f625(0x2ec)+(0x0,e['getDrawingTypeNameKey'])(_0x223a51[_0x23f625(0x2aa)]))+'\x20'+(_0x5236ec+0x1);}function pt({PanelComponent:_0x339c5d=d[_0x5e988f(0x1c9)]}){const _0x2af8f5=_0x5e988f;var _0xf34764;let _0x1bc007=(0x0,t[_0x2af8f5(0x252)])(a[_0x2af8f5(0x3e1)]),_0x33f4a8={'title':_0x1bc007['t'](_0x2af8f5(0x1de)),'empty':_0x1bc007['t'](_0x2af8f5(0x206)),'showAll':_0x1bc007['t'](_0x2af8f5(0x28c)),'hideAll':_0x1bc007['t'](_0x2af8f5(0x261)),'lockAll':_0x1bc007['t'](_0x2af8f5(0x472)),'unlockAll':_0x1bc007['t'](_0x2af8f5(0x42a)),'moveForward':_0x1bc007['t'](_0x2af8f5(0x421)),'moveBackward':_0x1bc007['t'](_0x2af8f5(0x348)),'close':_0x1bc007['t']('drawing-ui.objectListPanel.close'),'show':_0x1bc007['t'](_0x2af8f5(0x38f)),'hide':_0x1bc007['t'](_0x2af8f5(0x320)),'lock':_0x1bc007['t'](_0x2af8f5(0x3c4)),'unlock':_0x1bc007['t'](_0x2af8f5(0x219)),'lockHint':_0x1bc007['t'](_0x2af8f5(0x3fe)),'unlockHint':_0x1bc007['t'](_0x2af8f5(0x29f)),'name':_0x1bc007['t'](_0x2af8f5(0x2ff)),'nameInput':_0x1bc007['t'](_0x2af8f5(0x1a2)),'description':_0x1bc007['t'](_0x2af8f5(0x45e)),'descriptionPlaceholder':_0x1bc007['t'](_0x2af8f5(0x204)),'details':_0x1bc007['t'](_0x2af8f5(0x249)),'noSelection':_0x1bc007['t'](_0x2af8f5(0x367)),'locate':_0x1bc007['t'](_0x2af8f5(0x39a)),'expand':_0x1bc007['t'](_0x2af8f5(0x46a)),'collapse':_0x1bc007['t'](_0x2af8f5(0x458)),'dragToReorder':_0x1bc007['t'](_0x2af8f5(0x325)),'search':_0x1bc007['t']('drawing-ui.objectListPanel.search'),'filterAll':_0x1bc007['t'](_0x2af8f5(0x45d)),'filterHidden':_0x1bc007['t'](_0x2af8f5(0x3c0)),'filterLocked':_0x1bc007['t'](_0x2af8f5(0x205)),'sectionCanvas':_0x1bc007['t'](_0x2af8f5(0x1da)),'sectionFloating':_0x1bc007['t'](_0x2af8f5(0x374))},_0x116976=(0x0,t[_0x2af8f5(0x252)])(a[_0x2af8f5(0x32c)]),_0xc24890=(0x0,t[_0x2af8f5(0x252)])(a[_0x2af8f5(0x4c8)]),_0x1670ee=(0x0,t[_0x2af8f5(0x252)])(m[_0x2af8f5(0x211)]),_0x214de9=(0x0,t[_0x2af8f5(0x252)])(s[_0x2af8f5(0x1bd)]),_0x50b08a=(0x0,t[_0x2af8f5(0x252)])(c[_0x2af8f5(0x18e)]),[,_0x1c8998]=(0x0,b[_0x2af8f5(0x479)])(_0x4ac52f=>_0x4ac52f+0x1,0x0),_0x775835=_0xc24890['getCurrentUnitOfType'](a[_0x2af8f5(0x15d)][_0x2af8f5(0x2ba)]),_0x48bf3d=(_0x775835==null?void 0x0:_0x775835[_0x2af8f5(0x39d)]())??'',_0x572597=(_0x775835==null||(_0xf34764=_0x775835[_0x2af8f5(0x4b0)]())==null?void 0x0:_0xf34764[_0x2af8f5(0x49a)]())??'',_0x53c46e=(0x0,t['useObservable'])(()=>_0x214de9[_0x2af8f5(0x15b)],_0x214de9[_0x2af8f5(0x166)](),!0x1,[_0x214de9]);(0x0,b[_0x2af8f5(0x339)])(()=>{const _0x123fee=_0x2af8f5;let _0x256019=_0x116976[_0x123fee(0x330)](()=>_0x1c8998());return()=>_0x256019[_0x123fee(0x4c1)]();},[_0x116976]);let _0xa8cb1=_0x48bf3d&&_0x572597?_0x1670ee[_0x2af8f5(0x454)](_0x48bf3d,_0x572597):{},_0x4bd553=(_0x48bf3d&&_0x572597?_0x1670ee[_0x2af8f5(0x3a5)](_0x48bf3d,_0x572597):[])[_0x2af8f5(0x4a5)](_0x3fa041=>_0xa8cb1[_0x3fa041])[_0x2af8f5(0x38d)](_0x584fac=>!!_0x584fac)[_0x2af8f5(0x159)](),_0x1ed8b0=_0x4bd553[_0x2af8f5(0x46b)]((_0x2f3c8f,_0x300e7b)=>(_0x2f3c8f[(0x0,d['getObjectListPanelSectionIdForDrawingType'])(_0x300e7b[_0x2af8f5(0x2aa)])]+=0x1,_0x2f3c8f),{'canvas':0x0,'floating':0x0}),_0x4ed84e={'canvas':0x0,'floating':0x0},_0x2e28fd=_0x4bd553[_0x2af8f5(0x4a5)]((_0x43af6b,_0x27c662)=>{const _0x213474=_0x2af8f5;let _0x1fd0e6=(0x0,d[_0x213474(0x426)])(_0x43af6b[_0x213474(0x2aa)]),_0x25d0bf=_0x1fd0e6===d[_0x213474(0x32d)],_0x4b2e0c=_0x4ed84e[_0x1fd0e6]++;return{'id':_0x43af6b[_0x213474(0x456)],'name':ft(_0x43af6b,_0x27c662,_0x1bc007),'description':_0x43af6b[_0x213474(0x240)],'visible':_0x43af6b[_0x213474(0x404)]!==!0x0,'selectable':_0x43af6b[_0x213474(0x2a7)]!==!0x1,'sectionId':_0x1fd0e6,'sectionTitle':_0x25d0bf?_0x33f4a8['sectionFloating']:_0x33f4a8[_0x213474(0x1ff)],'capabilities':_0x25d0bf?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x25d0bf&&_0x4b2e0c>0x0,'canMoveBackward':!_0x25d0bf&&_0x4b2e0c<_0x1ed8b0[_0x213474(0x3b5)]-0x1,'canReorder':!_0x25d0bf};}),_0x38e8d9=(0x0,b[_0x2af8f5(0x21f)])(()=>(_0x53c46e??[])[_0x2af8f5(0x38d)](_0x19a9a9=>_0x19a9a9[_0x2af8f5(0x346)]===_0x48bf3d&&_0x19a9a9[_0x2af8f5(0x369)]===_0x572597)[_0x2af8f5(0x4a5)](_0x5addff=>_0x5addff['drawingId']),[_0x53c46e,_0x572597,_0x48bf3d]),_0x1f6b22=_0x38e8d9[_0x38e8d9['length']-0x1]??null,_0x125d6c=_0xb9695e=>_0x1670ee[_0x2af8f5(0x2fc)]({'unitId':_0x48bf3d,'subUnitId':_0x572597,'drawingId':_0xb9695e})??null,_0x5801e0=async _0x56c3be=>{const _0x3307fd=_0x2af8f5;_0x48bf3d&&_0x56c3be[_0x3307fd(0x2b6)]&&await _0x116976[_0x3307fd(0x32b)](m[_0x3307fd(0x397)]['id'],{'unitId':_0x48bf3d,'drawings':_0x56c3be});},_0x4b43bd=async(_0x138dd3,_0x3c8d5e)=>{_0x125d6c(_0x138dd3)&&await _0x5801e0([{'unitId':_0x48bf3d,'subUnitId':_0x572597,'drawingId':_0x138dd3,..._0x3c8d5e}]);},_0x41ce12=(_0x41f355,_0xb7c783)=>{const _0x534b19=_0x2af8f5;if(!_0x48bf3d||!_0x572597)return;let _0xee4a03=_0xb7c783?_0x38e8d9['includes'](_0x41f355)?_0x38e8d9[_0x534b19(0x38d)](_0xafc8e3=>_0xafc8e3!==_0x41f355):[..._0x38e8d9,_0x41f355]:[_0x41f355];_0x116976[_0x534b19(0x185)](s[_0x534b19(0x3ab)]['id'],_0xee4a03[_0x534b19(0x4a5)](_0x574191=>({'unitId':_0x48bf3d,'subUnitId':_0x572597,'drawingId':_0x574191})));let _0x113415=_0xee4a03[_0xee4a03[_0x534b19(0x2b6)]-0x1];_0x113415?(0x0,e[_0x534b19(0x1c6)])(_0x50b08a,{'unitId':_0x48bf3d,'subUnitId':_0x572597,'drawingId':_0x113415}):(0x0,e['clearActiveDrawingObjects'])(_0x50b08a,_0x48bf3d);},_0x7e5fb1=async(_0x3d204f,_0x59fc25)=>{const _0x48d7f4=_0x2af8f5;await _0x5801e0(_0x3d204f[_0x48d7f4(0x4a5)](_0xcf6052=>_0x125d6c(_0xcf6052))[_0x48d7f4(0x38d)](_0x341b40=>!!_0x341b40)[_0x48d7f4(0x38d)](_0x1fcb9c=>_0x1fcb9c[_0x48d7f4(0x404)]!==!0x0!==_0x59fc25)['map'](_0xdb8fc5=>({'unitId':_0x48bf3d,'subUnitId':_0x572597,'drawingId':_0xdb8fc5[_0x48d7f4(0x456)],'hidden':!_0x59fc25})));},_0x2f6d29=async(_0x4bde17,_0x4c64c4)=>{const _0x434c32=_0x2af8f5;await _0x5801e0(_0x4bde17[_0x434c32(0x4a5)](_0x4eedbf=>_0x125d6c(_0x4eedbf))[_0x434c32(0x38d)](_0x121f43=>!!_0x121f43)[_0x434c32(0x38d)](_0x1c37d6=>_0x1c37d6[_0x434c32(0x2a7)]!==!0x1!==_0x4c64c4)[_0x434c32(0x4a5)](_0x5f075a=>({'unitId':_0x48bf3d,'subUnitId':_0x572597,'drawingId':_0x5f075a[_0x434c32(0x456)],'selectable':_0x4c64c4})));},_0x123b2e=_0x787d26=>{const _0x410b32=_0x2af8f5;let _0x39a9d5=_0x125d6c(_0x787d26);if(_0x39a9d5)return _0x2f6d29([_0x787d26],_0x39a9d5[_0x410b32(0x2a7)]===!0x1);},_0x36f3d7=async(_0x3a6262,_0xaf26b2)=>{const _0x454c41=_0x2af8f5;var _0x321e55;let _0x421c2a=dt(_0xaf26b2);(((_0x321e55=_0x125d6c(_0x3a6262))==null?void 0x0:_0x321e55[_0x454c41(0x248)])??void 0x0)!==_0x421c2a&&await _0x4b43bd(_0x3a6262,{'name':_0x421c2a});},_0x366d44=async(_0x52e2c4,_0x42cc2c)=>{const _0xfde096=_0x2af8f5;var _0x1a0646;let _0x5921c6=dt(_0x42cc2c);(((_0x1a0646=_0x125d6c(_0x52e2c4))==null?void 0x0:_0x1a0646[_0xfde096(0x240)])??void 0x0)!==_0x5921c6&&await _0x4b43bd(_0x52e2c4,{'description':_0x5921c6});},_0x4c3adb=async(_0x146020,_0xffb963)=>{const _0x1fa826=_0x2af8f5;_0x48bf3d&&_0x572597&&await _0x116976[_0x1fa826(0x32b)](m[_0x1fa826(0x4f0)]['id'],{'unitId':_0x48bf3d,'subUnitId':_0x572597,'drawingIds':[_0x146020],'arrangeType':_0xffb963});};return!_0x48bf3d||!_0x572597?(0x0,p['jsx'])(_0x2af8f5(0x498),{'className':_0x2af8f5(0x3b2),'children':_0x33f4a8[_0x2af8f5(0x27e)]}):(0x0,p[_0x2af8f5(0x347)])(_0x339c5d,{'labels':_0x33f4a8,'items':_0x2e28fd,'selectedIds':_0x38e8d9,'focusedId':_0x1f6b22,'showHeader':!0x1,'onSelect':_0x41ce12,'onSetVisible':_0x7e5fb1,'onSetSelectable':_0x2f6d29,'onCommitName':_0x36f3d7,'onCommitDescription':_0x366d44,'onMoveForward':async _0x11c62b=>_0x4c3adb(_0x11c62b,a['ArrangeTypeEnum'][_0x2af8f5(0x2d0)]),'onMoveBackward':async _0x38f56e=>_0x4c3adb(_0x38f56e,a[_0x2af8f5(0x493)][_0x2af8f5(0x33e)]),'onToggleSelectable':_0x123b2e});}function mt(){const _0x223423=_0x5e988f;return(0x0,p[_0x223423(0x347)])(pt,{'PanelComponent':d[_0x223423(0x1fa)]});}let ht=class extends a[_0x5e988f(0x302)]{constructor(_0x4fa77a,_0x50da00){const _0x33683b=_0x5e988f;super(),this[_0x33683b(0x36f)](_0x4fa77a[_0x33683b(0x3b6)](I,mt)),this[_0x33683b(0x36f)](_0x50da00[_0x33683b(0x3b6)]({'BottomIcon':y[_0x33683b(0x4dc)],'FlipHorizontalIcon':y[_0x33683b(0x197)],'FlipVerticalIcon':y[_0x33683b(0x336)],'MoveDownIcon':y[_0x33683b(0x29a)],'MoveUpIcon':y['MoveUpIcon'],'ObjectLayersIcon':y['ObjectLayersIcon'],'ShapeFormatSettingIcon':y[_0x33683b(0x4cd)],'TopmostIcon':y[_0x33683b(0x312)]})),this['disposeWithMe'](_0x4fa77a[_0x33683b(0x3b6)](le,ge)),this[_0x33683b(0x36f)](_0x4fa77a['register'](ue,pe)),_0x4fa77a['hasDefault'](d[_0x33683b(0x237)])||this[_0x33683b(0x36f)](_0x4fa77a['register'](d[_0x33683b(0x237)],me));}};ht=A([k(0x0,(0x0,a[_0x5e988f(0x334)])(t['ComponentManager'])),k(0x1,(0x0,a[_0x5e988f(0x334)])(t[_0x5e988f(0x267)]))],ht);let H=class extends a[_0x5e988f(0x302)]{constructor(_0x56fe33){const _0x4f6ae4=_0x5e988f;super(),this[_0x4f6ae4(0x29d)]=_0x56fe33,E(this,_0x4f6ae4(0x420),new u[(_0x4f6ae4(0x3bc))](null)),E(this,_0x4f6ae4(0x3db),this[_0x4f6ae4(0x420)][_0x4f6ae4(0x310)]()),E(this,_0x4f6ae4(0x4e9),new u[(_0x4f6ae4(0x3bc))](!0x1)),E(this,_0x4f6ae4(0x19e),this[_0x4f6ae4(0x4e9)][_0x4f6ae4(0x310)]()),E(this,'_completionFrame',void 0x0),this[_0x4f6ae4(0x36f)](this[_0x4f6ae4(0x29d)][_0x4f6ae4(0x177)][_0x4f6ae4(0x24c)](()=>{const _0x982d28=_0x4f6ae4;let _0x148dbd=this[_0x982d28(0x4cb)]();_0x148dbd!=null&&_0x148dbd[_0x982d28(0x29c)]&&!this[_0x982d28(0x283)](_0x148dbd)&&this[_0x982d28(0x470)](null);}));}[_0x5e988f(0x4c1)](){const _0x74372f=_0x5e988f;this['_clearCompletionFrame'](),this[_0x74372f(0x420)]['next'](null),this[_0x74372f(0x420)][_0x74372f(0x3c7)](),this[_0x74372f(0x4e9)]['next'](!0x1),this['_onSavingEditorData$'][_0x74372f(0x3c7)](),super['dispose']();}[_0x5e988f(0x470)](_0x4805e7){const _0x3f6e1f=_0x5e988f;(_0x4805e7==null||!_0x4805e7[_0x3f6e1f(0x29c)]||this[_0x3f6e1f(0x283)](_0x4805e7))&&(this['_clearCompletionFrame'](),this[_0x3f6e1f(0x420)][_0x3f6e1f(0x3b7)](_0x4805e7),(_0x4805e7==null||_0x4805e7[_0x3f6e1f(0x29c)]&&this[_0x3f6e1f(0x4e9)]['getValue']())&&this[_0x3f6e1f(0x4e9)]['next'](!0x1));}[_0x5e988f(0x225)](_0x157cc1){const _0x14824c=_0x5e988f;this[_0x14824c(0x4e9)][_0x14824c(0x3b7)](_0x157cc1);}[_0x5e988f(0x4cb)](){const _0x38711d=_0x5e988f;return this['_editingParams$'][_0x38711d(0x411)]();}['_canEdit'](_0x3a7478){const _0x5b3563=_0x5e988f;let _0x60581e=this[_0x5b3563(0x29d)]['getPermissionPoint'](new o[(_0x5b3563(0x4ee))](_0x3a7478[_0x5b3563(0x346)])['id']),_0x263185=this[_0x5b3563(0x29d)][_0x5b3563(0x212)](new o['WorksheetEditPermission'](_0x3a7478[_0x5b3563(0x346)],_0x3a7478['subUnitId'])['id']);return((_0x60581e==null?void 0x0:_0x60581e[_0x5b3563(0x321)])??!0x0)&&((_0x263185==null?void 0x0:_0x263185[_0x5b3563(0x321)])??!0x0);}['completeEditing'](_0x6836d3){const _0x339f43=_0x5e988f;let _0x21e448=this['getEditing']();_0x21e448&&this[_0x339f43(0x394)]===void 0x0&&(this[_0x339f43(0x225)](!0x0),this['_completionFrame']=requestAnimationFrame(()=>{const _0xf0feb9=_0x339f43;this[_0xf0feb9(0x394)]=void 0x0,this['getEditing']()===_0x21e448&&this['setEditing'](null);}));}[_0x5e988f(0x3aa)](){const _0x29a296=_0x5e988f;this[_0x29a296(0x394)]!==void 0x0&&(cancelAnimationFrame(this[_0x29a296(0x394)]),this[_0x29a296(0x394)]=void 0x0);}[_0x5e988f(0x33a)](){const _0x327136=_0x5e988f;this[_0x327136(0x4cb)]()&&this[_0x327136(0x470)](null);}};H=A([k(0x0,a[_0x5e988f(0x44a)])],H);let gt=class extends a[_0x5e988f(0x302)]{constructor(_0x5e4979,_0x2965ad,_0xb5b78,_0x389c70,_0x5c81b7,_0x26318a){const _0x57dde2=_0x5e988f;super(),this[_0x57dde2(0x4ac)]=_0x5e4979,this[_0x57dde2(0x3f1)]=_0x2965ad,this[_0x57dde2(0x28f)]=_0xb5b78,this[_0x57dde2(0x2f6)]=_0x389c70,this[_0x57dde2(0x3c1)]=_0x5c81b7,this[_0x57dde2(0x4d2)]=_0x26318a,E(this,_0x57dde2(0x25a),null),this[_0x57dde2(0x223)](),this[_0x57dde2(0x1ab)](),this[_0x57dde2(0x471)]();}['_initEvents'](){const _0x27f42e=_0x5e988f;let {scene:_0x4657ae}=this[_0x27f42e(0x4ac)];this[_0x27f42e(0x36f)](_0x4657ae[_0x27f42e(0x1aa)][_0x27f42e(0x194)](_0x269d94=>{const _0x325b8d=_0x27f42e;let {offsetX:_0x462a6b,offsetY:_0x21d98c}=_0x269d94,_0x5dfb4e=_0x4657ae[_0x325b8d(0x462)](c[_0x325b8d(0x459)]['FromArray']([_0x462a6b,_0x21d98c]));if(_0x5dfb4e instanceof D){let _0x47453d=this[_0x325b8d(0x4d2)][_0x325b8d(0x2c6)](_0x5dfb4e[_0x325b8d(0x346)],_0x5dfb4e[_0x325b8d(0x369)],_0x5dfb4e[_0x325b8d(0x3cd)]);if((0x0,n[_0x325b8d(0x3a7)])(this[_0x325b8d(0x4d2)][_0x325b8d(0x2d9)](_0x5dfb4e['unitId'],_0x5dfb4e['subUnitId'],_0x5dfb4e['shapeId']))||_0x47453d!=null&&_0x47453d[_0x325b8d(0x2e3)]()[_0x325b8d(0x425)])return;this['_shapeTextEditingService'][_0x325b8d(0x470)]({'visible':!0x0,'unitId':_0x5dfb4e[_0x325b8d(0x346)],'subUnitId':_0x5dfb4e[_0x325b8d(0x369)],'shapeId':_0x5dfb4e[_0x325b8d(0x3cd)],'shapeKey':_0x5dfb4e[_0x325b8d(0x4de)]});}}));}[_0x5e988f(0x1ab)](){const _0x821e20=_0x5e988f;this[_0x821e20(0x36f)](this['_drawingManagerService']['focus$'][_0x821e20(0x24c)](_0x42138c=>{const _0x53c38a=_0x821e20;if(_0x42138c['length']===0x1){let _0x484520=_0x42138c[0x0],_0x41f606=this[_0x53c38a(0x2f6)][_0x53c38a(0x2fc)](_0x484520);if((_0x41f606==null?void 0x0:_0x41f606[_0x53c38a(0x2aa)])===a[_0x53c38a(0x181)]['DRAWING_SHAPE']){var _0x2685e3;let _0xca67d=this[_0x53c38a(0x28f)][_0x53c38a(0x4cb)]();if((_0xca67d==null?void 0x0:_0xca67d[_0x53c38a(0x3cd)])===_0x484520[_0x53c38a(0x456)]&&_0xca67d[_0x53c38a(0x29c)])return;let _0x4f876c=(0x0,n[_0x53c38a(0x3a7)])(this[_0x53c38a(0x4d2)][_0x53c38a(0x2d9)](_0x484520['unitId'],_0x484520[_0x53c38a(0x369)],_0x484520[_0x53c38a(0x456)])),_0x42226b=!!((_0x2685e3=this[_0x53c38a(0x4d2)][_0x53c38a(0x2c6)](_0x484520[_0x53c38a(0x346)],_0x484520[_0x53c38a(0x369)],_0x484520[_0x53c38a(0x456)]))!=null&&_0x2685e3[_0x53c38a(0x2e3)]()[_0x53c38a(0x425)]);(_0x4f876c||_0x42226b)&&this[_0x53c38a(0x28f)][_0x53c38a(0x470)](null);}else this[_0x53c38a(0x28f)][_0x53c38a(0x311)]();}else this[_0x53c38a(0x28f)][_0x53c38a(0x311)]();})),this[_0x821e20(0x36f)](this[_0x821e20(0x2f6)][_0x821e20(0x463)]['subscribe'](_0x31f981=>{const _0x5771ac=_0x821e20;let _0x2cfd26=this[_0x5771ac(0x28f)][_0x5771ac(0x4cb)]();_0x2cfd26&&_0x31f981['some'](_0x568a7d=>_0x568a7d['drawingId']===_0x2cfd26[_0x5771ac(0x3cd)])&&this[_0x5771ac(0x28f)][_0x5771ac(0x470)](null);}));}[_0x5e988f(0x471)](){const _0x47e6d6=_0x5e988f;this[_0x47e6d6(0x36f)](this['_shapeTextEditingService'][_0x47e6d6(0x3db)][_0x47e6d6(0x24c)](_0xf706fe=>{const _0x17b089=_0x47e6d6;let {scene:_0x29c617}=this[_0x17b089(0x4ac)];if(this[_0x17b089(0x25a)]){let _0x326f81=_0x29c617[_0x17b089(0x300)](this[_0x17b089(0x25a)]);_0x326f81&&_0x326f81[_0x17b089(0x470)](!0x1);}if(_0xf706fe){let _0x3feb96=!!_0xf706fe['visible'],_0x179b49=_0x29c617[_0x17b089(0x300)](_0xf706fe['shapeKey']);_0x179b49&&(_0x179b49[_0x17b089(0x470)](_0x3feb96),this[_0x17b089(0x25a)]=_0xf706fe[_0x17b089(0x3b3)]),this['_contextService'][_0x17b089(0x1db)](a['FOCUSING_SHAPE_TEXT_EDITOR'],_0x3feb96);}else this[_0x17b089(0x25a)]=null,this[_0x17b089(0x3c1)][_0x17b089(0x1db)](a[_0x17b089(0x34c)],!0x1);}));}};gt=A([k(0x1,(0x0,a['Inject'])(a[_0x5e988f(0x393)])),k(0x2,(0x0,a[_0x5e988f(0x334)])(H)),k(0x3,s['IDrawingManagerService']),k(0x4,a['IContextService']),k(0x5,(0x0,a[_0x5e988f(0x334)])(i[_0x5e988f(0x44c)]))],gt);var _t=class extends gt{['_initEvents'](){const _0x1844f0=_0x5e988f;let {scene:_0x21c3f2}=this['_context'],_0x5b4669=this[_0x1844f0(0x3f1)][_0x1844f0(0x329)](e[_0x1844f0(0x1b5)]);this[_0x1844f0(0x36f)](_0x21c3f2[_0x1844f0(0x1aa)]['subscribeEvent'](_0x5abc7f=>{const _0x1e0066=_0x1844f0;let {offsetX:_0x1a2228,offsetY:_0x3365af}=_0x5abc7f,_0x281546=_0x21c3f2[_0x1e0066(0x462)](c[_0x1e0066(0x459)][_0x1e0066(0x39b)]([_0x1a2228,_0x3365af]));if(!(_0x281546 instanceof D))return;let _0xca2821=this[_0x1e0066(0x4d2)][_0x1e0066(0x2c6)](_0x281546[_0x1e0066(0x346)],_0x281546[_0x1e0066(0x369)],_0x281546[_0x1e0066(0x3cd)]);(0x0,n[_0x1e0066(0x3a7)])(this[_0x1e0066(0x4d2)]['getShapeType'](_0x281546[_0x1e0066(0x346)],_0x281546[_0x1e0066(0x369)],_0x281546['shapeId']))||_0xca2821!=null&&_0xca2821['getShapeData']()[_0x1e0066(0x425)]||_0x5b4669[_0x1e0066(0x497)](_0x1e0066(0x3eb),{'hostType':a['UniverInstanceType'][_0x1e0066(0x2ba)],'unitId':_0x281546[_0x1e0066(0x346)],'subUnitId':_0x281546[_0x1e0066(0x369)],'shapeId':_0x281546[_0x1e0066(0x3cd)]});}));}};const vt={...rt};let U=class extends a[_0x5e988f(0x302)]{constructor(_0x3fe1df,_0x5b00ff,_0x5d80d0,_0x4d2f44,_0x10ee28,_0x405703,_0x1df256,_0x4f6329){const _0x59e207=_0x5e988f;super(),this[_0x59e207(0x32e)]=_0x3fe1df,this['_sheetsShapeService']=_0x5b00ff,this['_commandService']=_0x5d80d0,this[_0x59e207(0x2f6)]=_0x4d2f44,this[_0x59e207(0x46d)]=_0x10ee28,this[_0x59e207(0x3c1)]=_0x405703,this[_0x59e207(0x1ea)]=_0x1df256,this[_0x59e207(0x28f)]=_0x4f6329,E(this,_0x59e207(0x25e),null),this[_0x59e207(0x32e)]['mergeMenu'](vt),this['_registerFeatureMenu'](),this[_0x59e207(0x36f)](this['_shapeTextEditingService'][_0x59e207(0x3db)][_0x59e207(0x24c)](_0x3c9d19=>{_0x3c9d19&&this['_clearFocusedShape']();}));}['initShapePopupMenu'](){const _0x4a9999=_0x5e988f;this[_0x4a9999(0x25e)]||=this['disposeWithMe']((0x0,e[_0x4a9999(0x496)])(this[_0x4a9999(0x1ea)],a['UniverInstanceType']['UNIVER_SHEET'],_0x315621=>this[_0x4a9999(0x2ab)](_0x315621)));}['_registerFeatureMenu'](){const _0x4abee4=_0x5e988f;this[_0x4abee4(0x46d)][_0x4abee4(0x2fb)](a[_0x4abee4(0x181)][_0x4abee4(0x1d7)],(_0x50d46b,_0x37c49c,_0x1d11fd,_0x33b861)=>{const _0x3ad83c=_0x4abee4;let _0x4844e6=this['_sheetsShapeService'][_0x3ad83c(0x2bd)](_0x50d46b,_0x37c49c,_0x1d11fd),_0x5ecc3c=this[_0x3ad83c(0x4d2)][_0x3ad83c(0x4ea)](_0x50d46b,_0x37c49c,_0x1d11fd),_0x428b82=_0x4844e6!==void 0x0&&!(0x0,n[_0x3ad83c(0x3a7)])(_0x4844e6)&&!(_0x5ecc3c!=null&&_0x5ecc3c['formulaBinding']);return[{'label':_0x3ad83c(0x429),'index':0x0,'commandId':st['id'],'commandParams':{'unitId':_0x50d46b,'subUnitId':_0x37c49c,'drawingId':_0x1d11fd,'mode':'style'},'disable':!0x1},..._0x428b82?[{'label':_0x3ad83c(0x292),'index':0x1,'commandId':st['id'],'commandParams':{'unitId':_0x50d46b,'subUnitId':_0x37c49c,'drawingId':_0x1d11fd,'mode':_0x3ad83c(0x3eb)},'disable':!0x1}]:[],{'label':_0x3ad83c(0x1e5),'index':0x2,'commandId':m[_0x3ad83c(0x1b1)]['id'],'commandParams':{'unitId':_0x50d46b,'drawings':[{'unitId':_0x50d46b,'subUnitId':_0x37c49c,'drawingId':_0x1d11fd,'drawingType':_0x33b861}]},'disable':!0x1},{'label':_0x3ad83c(0x4d8),'index':0x3,'commandId':i[_0x3ad83c(0x4aa)]['id'],'commandParams':{'unitId':_0x50d46b,'subUnitId':_0x37c49c,'shapeId':_0x1d11fd,'flipH':!0x0},'disable':!0x1},{'label':_0x3ad83c(0x1ce),'index':0x4,'commandId':i[_0x3ad83c(0x4aa)]['id'],'commandParams':{'unitId':_0x50d46b,'subUnitId':_0x37c49c,'shapeId':_0x1d11fd,'flipV':!0x0},'disable':!0x1}];},_0x4abee4(0x3ed));}[_0x5e988f(0x2ab)](_0x172e98){const _0x31c8e2=_0x5e988f;let _0x1110ba=new a[(_0x31c8e2(0x1f5))](),_0x451b77=null,_0x1a3f8c=()=>{const _0xfe1573=_0x31c8e2;if(!_0x451b77)return;let _0x148a02=this['_drawingManagerService']['getFocusDrawings'](),_0x457c73=_0x148a02[_0xfe1573(0x2b6)]===0x0||_0x148a02[_0xfe1573(0x2b6)]===0x1&&_0x148a02['some'](_0x288de4=>_0x288de4['unitId']===(_0x451b77==null?void 0x0:_0x451b77[_0xfe1573(0x346)])&&_0x288de4[_0xfe1573(0x369)]===(_0x451b77==null?void 0x0:_0x451b77['subUnitId'])&&_0x288de4[_0xfe1573(0x456)]===(_0x451b77==null?void 0x0:_0x451b77['drawingId']));_0x451b77=null,_0x457c73&&(this[_0xfe1573(0x3c1)][_0xfe1573(0x1db)](a[_0xfe1573(0x281)],!0x1),this[_0xfe1573(0x2f6)][_0xfe1573(0x262)](null));};return _0x1110ba[_0x31c8e2(0x4b5)](_0x172e98[_0x31c8e2(0x37c)][_0x31c8e2(0x24c)](()=>{const _0xbeaf8f=_0x31c8e2;let _0x489c73=_0x172e98[_0xbeaf8f(0x1f4)]();if(_0x489c73[_0xbeaf8f(0x4bd)]>0x1){_0x1a3f8c();return;}let _0x1d0ea5=_0x489c73['values']()[_0xbeaf8f(0x3b7)]()[_0xbeaf8f(0x321)];if(!_0x1d0ea5){_0x1a3f8c();return;}let _0x33f8c7=this[_0xbeaf8f(0x2f6)][_0xbeaf8f(0x3ae)](_0x1d0ea5[_0xbeaf8f(0x4de)]);if(!_0x33f8c7||_0x33f8c7[_0xbeaf8f(0x2aa)]!==a[_0xbeaf8f(0x181)][_0xbeaf8f(0x1d7)]){_0x1a3f8c();return;}let {unitId:_0x45be6b,subUnitId:_0x22b0e0,drawingId:_0x5d4873}=_0x33f8c7;_0x451b77={'unitId':_0x45be6b,'subUnitId':_0x22b0e0,'drawingId':_0x5d4873},this[_0xbeaf8f(0x3c1)][_0xbeaf8f(0x1db)](a['FOCUSING_COMMON_DRAWINGS'],!0x0),this[_0xbeaf8f(0x2f6)]['getFocusDrawings']()[_0xbeaf8f(0x2d1)](_0x381644=>_0x381644[_0xbeaf8f(0x346)]===_0x45be6b&&_0x381644['subUnitId']===_0x22b0e0&&_0x381644[_0xbeaf8f(0x456)]===_0x5d4873)||this[_0xbeaf8f(0x2f6)][_0xbeaf8f(0x262)]([{'unitId':_0x45be6b,'subUnitId':_0x22b0e0,'drawingId':_0x5d4873}]);})),_0x1110ba[_0x31c8e2(0x4b5)](_0x172e98[_0x31c8e2(0x384)][_0x31c8e2(0x24c)](()=>{_0x1a3f8c();})),(0x0,a[_0x31c8e2(0x1cc)])(()=>{const _0x25498b=_0x31c8e2;_0x1110ba[_0x25498b(0x4c1)](),_0x1a3f8c();});}[_0x5e988f(0x3dd)](){const _0x4d77a5=_0x5e988f;this[_0x4d77a5(0x3c1)]['setContextValue'](a[_0x4d77a5(0x281)],!0x1),this[_0x4d77a5(0x2f6)][_0x4d77a5(0x262)](null);}};U=A([k(0x0,t[_0x5e988f(0x222)]),k(0x1,(0x0,a['Inject'])(i[_0x5e988f(0x44c)])),k(0x2,a[_0x5e988f(0x32c)]),k(0x3,s['IDrawingManagerService']),k(0x4,(0x0,a[_0x5e988f(0x334)])(l['SheetCanvasPopManagerService'])),k(0x5,a[_0x5e988f(0x449)]),k(0x6,c[_0x5e988f(0x18e)]),k(0x7,(0x0,a[_0x5e988f(0x334)])(H))],U);function yt(_0x192fab,_0x81db31,_0x4cf53c,_0x237567){const _0x1a35a7=_0x5e988f;let _0x36fd7a=(0x0,s[_0x1a35a7(0x1f8)])(_0x192fab,_0x81db31,_0x4cf53c),_0x4c3360=[];for(let _0x38af52 of _0x81db31){let _0x32f372=_0x36fd7a[_0x1a35a7(0x3e0)][_0x1a35a7(0x329)](_0x38af52[_0x1a35a7(0x456)]),_0x4f832d=_0x237567(_0x38af52);_0x32f372&&_0x4f832d&&_0x4c3360['push']({'targetShapeId':_0x32f372,'source':_0x4f832d});}return _0x4c3360;}let W=class extends a[_0x5e988f(0x302)]{constructor(_0x115a28,_0x18eb8c,_0x12da0d,_0x20ac6a){const _0x5da3f2=_0x5e988f;super(),this[_0x5da3f2(0x3fa)]=_0x115a28,this[_0x5da3f2(0x4a1)]=_0x18eb8c,this[_0x5da3f2(0x345)]=_0x12da0d,this[_0x5da3f2(0x4d2)]=_0x20ac6a,this[_0x5da3f2(0x272)]();}[_0x5e988f(0x272)](){const _0x4a7126=_0x5e988f;this['disposeWithMe'](this['_sheetInterceptorService'][_0x4a7126(0x314)]({'getMutations':_0x558cc6=>{const _0x6951fa=_0x4a7126;if(_0x558cc6['id']===o[_0x6951fa(0x3b9)]['id']){let _0x310cd8=(0x0,o[_0x6951fa(0x303)])(this[_0x6951fa(0x3fa)],_0x558cc6['params']);if(!_0x310cd8)return{'redos':[],'undos':[]};let {unitId:_0x5bda83,subUnitId:_0x234d97}=_0x310cd8,_0x531417=this['_sheetDrawingService'][_0x6951fa(0x454)](_0x5bda83,_0x234d97),_0x4404c1=Object[_0x6951fa(0x3c9)](_0x531417)[_0x6951fa(0x38d)](_0x2dbe1b=>_0x2dbe1b[_0x6951fa(0x2aa)]===a[_0x6951fa(0x181)][_0x6951fa(0x1d7)]);if(_0x4404c1[_0x6951fa(0x2b6)]===0x0)return{'redos':[],'undos':[]};let _0x4a0ebe=[],_0x3bce02=[];for(let _0xfb2795=0x0;_0xfb2795<_0x4404c1[_0x6951fa(0x2b6)];_0xfb2795++){let _0x2f5861=_0x4404c1[_0xfb2795],_0x24c313=this['_sheetsShapeService'][_0x6951fa(0x2c6)](_0x2f5861[_0x6951fa(0x346)],_0x2f5861['subUnitId'],_0x2f5861[_0x6951fa(0x456)]);_0x24c313&&(_0x4a0ebe[_0x6951fa(0x4d5)]({'id':i[_0x6951fa(0x385)]['id'],'params':{'unitId':_0x5bda83,'subUnitId':_0x234d97,'shapeId':_0x2f5861[_0x6951fa(0x456)]}}),_0x3bce02['push']({'id':i[_0x6951fa(0x2c7)]['id'],'params':{'unitId':_0x5bda83,'subUnitId':_0x234d97,'shapeId':_0x2f5861[_0x6951fa(0x456)],'shapeType':_0x24c313[_0x6951fa(0x2d9)](),'shapeData':JSON['parse'](JSON['stringify'](_0x24c313[_0x6951fa(0x2e3)]()))}}));}return{'redos':_0x4a0ebe,'undos':_0x3bce02};}if(_0x558cc6['id']===o[_0x6951fa(0x1bc)]['id']){let {unitId:_0x2dcc0f,subUnitId:_0x1a6e8e,targetSubUnitId:_0x5d0231,copyContext:_0x1b0d33}=_0x558cc6[_0x6951fa(0x217)];if(!_0x2dcc0f||!_0x1a6e8e||!_0x5d0231)return{'redos':[],'undos':[]};let _0x1119a8=this['_sheetDrawingService']['getDrawingData'](_0x2dcc0f,_0x1a6e8e),_0xa937e7=Object[_0x6951fa(0x3c9)](_0x1119a8)[_0x6951fa(0x38d)](_0x26c176=>_0x26c176[_0x6951fa(0x2aa)]===a[_0x6951fa(0x181)]['DRAWING_SHAPE']);if(_0xa937e7[_0x6951fa(0x2b6)]===0x0)return{'redos':[],'undos':[]};let _0x45f33a=yt(_0x1b0d33,_0xa937e7,{'unitId':_0x2dcc0f,'sourceSubUnitId':_0x1a6e8e,'targetSubUnitId':_0x5d0231},_0x6844d8=>{const _0x482675=_0x6951fa;let _0x31efee=this[_0x482675(0x4d2)][_0x482675(0x2c6)](_0x6844d8['unitId'],_0x6844d8[_0x482675(0x369)],_0x6844d8[_0x482675(0x456)]);if(_0x31efee)return{'shapeType':_0x31efee[_0x482675(0x2d9)](),'shapeData':JSON['parse'](JSON[_0x482675(0x1ad)](_0x31efee['getShapeData']()))};}),_0x5303d1=[],_0x11ce02=[];for(let {targetShapeId:_0x2bf9b9,source:_0x12bb70}of _0x45f33a)_0x5303d1['push']({'id':i[_0x6951fa(0x2c7)]['id'],'params':{'unitId':_0x2dcc0f,'subUnitId':_0x5d0231,'shapeId':_0x2bf9b9,'shapeType':_0x12bb70[_0x6951fa(0x1e6)],'shapeData':_0x12bb70[_0x6951fa(0x192)]}}),_0x11ce02[_0x6951fa(0x4d5)]({'id':i[_0x6951fa(0x385)]['id'],'params':{'unitId':_0x2dcc0f,'subUnitId':_0x5d0231,'shapeId':_0x2bf9b9}});return{'redos':_0x5303d1,'undos':_0x11ce02};}return{'redos':[],'undos':[]};}}));}};W=A([k(0x0,(0x0,a['Inject'])(a[_0x5e988f(0x4c8)])),k(0x1,(0x0,a[_0x5e988f(0x334)])(o['SheetInterceptorService'])),k(0x2,(0x0,a[_0x5e988f(0x334)])(m[_0x5e988f(0x211)])),k(0x3,(0x0,a[_0x5e988f(0x334)])(i[_0x5e988f(0x44c)]))],W);let G=class extends a[_0x5e988f(0x302)]{constructor(_0x4df38a,_0x20ffc9,_0x3b5d84,_0x26f248,_0x123c47,_0x31d5f9){const _0x22c53d=_0x5e988f;super(),this[_0x22c53d(0x263)]=_0x4df38a,this[_0x22c53d(0x1ea)]=_0x20ffc9,this[_0x22c53d(0x2f6)]=_0x3b5d84,this[_0x22c53d(0x46e)]=_0x26f248,this[_0x22c53d(0x285)]=_0x123c47,this['_sheetDrawingShapeRenderController']=_0x31d5f9,E(this,_0x22c53d(0x2df),new Set()),this['_initialize']();}['_initialize'](){const _0x3437b2=_0x5e988f;this[_0x3437b2(0x1d2)](),this['_commandExecutedListener'](),this['_shapeUpdateListener']();}['_drawingAddListener'](){const _0x3e7c0d=_0x5e988f;this[_0x3e7c0d(0x36f)](this['_drawingManagerService'][_0x3e7c0d(0x484)][_0x3e7c0d(0x24c)](_0x527b87=>{const _0x489ec4=_0x3e7c0d;this[_0x489ec4(0x3d0)](_0x527b87);}));}[_0x5e988f(0x485)](){const _0x98700=_0x5e988f;this['disposeWithMe'](this[_0x98700(0x263)][_0x98700(0x330)]((_0x2665c3,_0xf3c8a6)=>{const _0x17d276=_0x98700;if(_0x2665c3['id']===i[_0x17d276(0x17c)]['id']){let {unitId:_0x1fa2b0,subUnitId:_0x4c3742,shapeId:_0x2973e9}=_0x2665c3[_0x17d276(0x217)],_0x5864ed=this['_getSceneAndTransformerByDrawingSearch'](_0x1fa2b0),_0x383fe1=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x1fa2b0,'subUnitId':_0x4c3742,'drawingId':_0x2973e9}),_0x14e4f0=_0x5864ed==null?void 0x0:_0x5864ed[_0x17d276(0x466)][_0x17d276(0x300)](_0x383fe1);_0x14e4f0&&(this['_sheetDrawingShapeRenderController']['refreshShapeFillImage'](_0x14e4f0),this[_0x17d276(0x20e)][_0x17d276(0x2de)](_0x14e4f0,{'unitId':_0x1fa2b0,'subUnitId':_0x4c3742,'shapeId':_0x2973e9}),_0x14e4f0[_0x17d276(0x213)](!0x0));}else{if(_0x2665c3['id']===i[_0x17d276(0x2c7)]['id']){var _0x41bd77;let {unitId:_0x1fc423,subUnitId:_0x20f3d1,shapeId:_0x5ac3f6}=_0x2665c3[_0x17d276(0x217)],_0x2ff6c3=this[_0x17d276(0x351)](_0x1fc423);if(_0x2ff6c3==null)return;let {scene:_0x524fc7}=_0x2ff6c3,_0x28f5e5=(0x0,s[_0x17d276(0x278)])({'unitId':_0x1fc423,'subUnitId':_0x20f3d1,'drawingId':_0x5ac3f6}),_0x3ffffe=_0x524fc7[_0x17d276(0x300)](_0x28f5e5);if(!((_0x41bd77=this[_0x17d276(0x1ea)][_0x17d276(0x188)](_0x1fc423))!=null&&_0x41bd77[_0x17d276(0x246)](l[_0x17d276(0x306)])[_0x17d276(0x4a3)](_0x20f3d1)))return!0x1;if(_0x3ffffe)return;if(_0xf3c8a6!=null&&_0xf3c8a6[_0x17d276(0x26a)]){queueMicrotask(()=>{this['_disposed']||this['_insertShapes']([{'unitId':_0x1fc423,'subUnitId':_0x20f3d1,'drawingId':_0x5ac3f6}]);});return;}this[_0x17d276(0x3d0)]([{'unitId':_0x1fc423,'subUnitId':_0x20f3d1,'drawingId':_0x5ac3f6}]);}}}));}[_0x5e988f(0x259)](){const _0x1d5686=_0x5e988f;this[_0x1d5686(0x36f)](this['_drawingManagerService'][_0x1d5686(0x34d)][_0x1d5686(0x24c)](_0x473e08=>{const _0x1d3390=_0x1d5686;_0x473e08[_0x1d3390(0x424)](_0x3fca93=>{const _0x3b2cfb=_0x1d3390;let {unitId:_0x14c4c4,subUnitId:_0x1b9156,drawingId:_0x599f64}=_0x3fca93,_0x42373e=this['_drawingManagerService'][_0x3b2cfb(0x2fc)](_0x3fca93);if(_0x42373e==null)return;let {transform:_0x57a6e7,drawingType:_0x138c56,srcRect:_0x3951d6,prstGeom:_0x6dc950}=_0x42373e;if(_0x138c56!==a['DrawingTypeEnum'][_0x3b2cfb(0x1d7)])return;let _0x3130d4=this[_0x3b2cfb(0x351)](_0x14c4c4);if(_0x3130d4==null)return;let {scene:_0x431fe7,transformer:_0x2fb5e0}=_0x3130d4;if(_0x57a6e7==null)return!0x0;let _0x21fc8b=(0x0,s[_0x3b2cfb(0x278)])({'unitId':_0x14c4c4,'subUnitId':_0x1b9156,'drawingId':_0x599f64}),_0x1b0c75=_0x431fe7[_0x3b2cfb(0x300)](_0x21fc8b);if(_0x1b0c75==null)return!0x0;_0x1b0c75[_0x3b2cfb(0x170)](_0x3951d6),_0x1b0c75['setPrstGeom'](_0x6dc950);});}));}[_0x5e988f(0x3d0)](_0x40a832){const _0x123dc5=_0x5e988f;for(let _0x592299 of _0x40a832){var _0x340253;let {unitId:_0x37cfc2,subUnitId:_0x4bb88b,drawingId:_0x45f4d5}=_0x592299,_0x443a2e=this['_getSceneAndTransformerByDrawingSearch'](_0x37cfc2),_0x472c7f=(_0x340253=(0x0,d[_0x123dc5(0x3cc)])(this[_0x123dc5(0x46e)],_0x37cfc2))==null?void 0x0:_0x340253['subUnitId'];if(_0x443a2e==null||_0x472c7f!==_0x4bb88b)return;let _0x38033d=(0x0,s[_0x123dc5(0x278)])({'unitId':_0x37cfc2,'subUnitId':_0x4bb88b,'drawingId':_0x45f4d5});if(this['_insertingShapeKeys'][_0x123dc5(0x4ec)](_0x38033d)||_0x443a2e[_0x123dc5(0x466)][_0x123dc5(0x300)](_0x38033d)!=null)return;let _0x478fd7=this[_0x123dc5(0x2f6)][_0x123dc5(0x2fc)](_0x592299);if(_0x478fd7==null||_0x478fd7['drawingType']!==a['DrawingTypeEnum'][_0x123dc5(0x1d7)])return;let _0x33024b=_0x478fd7[_0x123dc5(0x381)]||{};if((0x0,n[_0x123dc5(0x3a7)])(_0x33024b['shapeType'])){let _0x4800a5=_0x478fd7[_0x123dc5(0x2fd)];_0x4800a5&&(_0x478fd7[_0x123dc5(0x2fd)]={..._0x4800a5,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this['_insertingShapeKeys'][_0x123dc5(0x4b5)](_0x38033d);try{this[_0x123dc5(0x20e)]['renderDrawingShape'](_0x478fd7,_0x443a2e['scene']);}finally{this['_insertingShapeKeys'][_0x123dc5(0x362)](_0x38033d);}queueMicrotask(()=>{const _0x351192=_0x123dc5;if(this[_0x351192(0x474)])return;let _0x3d25b4=(0x0,s[_0x351192(0x278)])(_0x592299);if(!_0x443a2e[_0x351192(0x466)]['getObjectIncludeInGroup'](_0x3d25b4))return;let _0x79ca5e=this[_0x351192(0x2f6)][_0x351192(0x2fc)](_0x592299);_0x79ca5e&&this[_0x351192(0x2f6)]['refreshTransform']([_0x79ca5e]);});}}[_0x5e988f(0x351)](_0x1da82b){const _0x29ce51=_0x5e988f;if(_0x1da82b==null)return;let _0x2a1411=this[_0x29ce51(0x1ea)]['getRenderUnitById'](_0x1da82b),_0x37a586=_0x2a1411==null?void 0x0:_0x2a1411[_0x29ce51(0x466)];return _0x37a586==null?null:{'scene':_0x37a586,'transformer':_0x37a586['getTransformerByCreate']()};}};G=A([k(0x0,a[_0x5e988f(0x32c)]),k(0x1,c[_0x5e988f(0x18e)]),k(0x2,s[_0x5e988f(0x1bd)]),k(0x3,a['IUniverInstanceService']),k(0x4,(0x0,a[_0x5e988f(0x334)])(d['DrawingRenderService'])),k(0x5,(0x0,a[_0x5e988f(0x334)])(j))],G);const bt={'normal':{'fill':n[_0x5e988f(0x291)][_0x5e988f(0x49f)],'stroke':n['ShapeDefaultConfig'][_0x5e988f(0x2a2)],'strokeWidth':n[_0x5e988f(0x291)][_0x5e988f(0x1d1)]},'highlighted':{'fill':'#4285f4','stroke':'#1a73e8','strokeWidth':0x2}};var xt=class extends c['Shape']{constructor(_0x1bdcac,_0xe542a0){const _0x415434=_0x5e988f;super(_0x1bdcac,_0xe542a0),E(this,_0x415434(0x18f),''),E(this,'_cxnIndex',-0x1),E(this,'_unitId',''),E(this,_0x415434(0x363),''),E(this,_0x415434(0x167),!0x1),_0xe542a0&&this[_0x415434(0x27b)](_0xe542a0);}[_0x5e988f(0x294)](){const _0x54d3ed=_0x5e988f;return{'unitId':this[_0x54d3ed(0x308)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x54d3ed(0x18f)],'cxnIndex':this[_0x54d3ed(0x2a8)]};}[_0x5e988f(0x2d2)](_0x51395b){const _0x25c4c3=_0x5e988f;this[_0x25c4c3(0x167)]!==_0x51395b&&(this['_isHighlighted']=_0x51395b,this['makeDirty'](!0x0));}[_0x5e988f(0x265)](){const _0x13ce7c=_0x5e988f;return this[_0x13ce7c(0x167)];}[_0x5e988f(0x27b)](_0x18b282){const _0x210c03=_0x5e988f;_0x18b282[_0x210c03(0x290)]!==void 0x0&&(this[_0x210c03(0x18f)]=_0x18b282['targetShapeId']),_0x18b282['cxnIndex']!==void 0x0&&(this['_cxnIndex']=_0x18b282[_0x210c03(0x4dd)]),_0x18b282['unitId']!==void 0x0&&(this[_0x210c03(0x308)]=_0x18b282[_0x210c03(0x346)]),_0x18b282[_0x210c03(0x369)]!==void 0x0&&(this[_0x210c03(0x363)]=_0x18b282[_0x210c03(0x369)]),_0x18b282[_0x210c03(0x265)]!==void 0x0&&(this['_isHighlighted']=_0x18b282[_0x210c03(0x265)]),this['transformByState']({'width':_0x18b282[_0x210c03(0x254)]??n[_0x210c03(0x291)]['cxnPointRadius']*0x2,'height':_0x18b282[_0x210c03(0x457)]??n[_0x210c03(0x291)][_0x210c03(0x3bb)]*0x2});}[_0x5e988f(0x22c)](_0x2502fb){const _0x1c79a5=_0x5e988f;let _0x17581f=this['_isHighlighted']?bt[_0x1c79a5(0x335)]:bt[_0x1c79a5(0x39f)];c[_0x1c79a5(0x1c8)][_0x1c79a5(0x370)](_0x2502fb,{'radius':n[_0x1c79a5(0x291)][_0x1c79a5(0x3bb)],'fill':_0x17581f[_0x1c79a5(0x35c)],'stroke':_0x17581f[_0x1c79a5(0x413)],'strokeWidth':_0x17581f['strokeWidth'],'evented':!0x0});}};let K=class extends a['Disposable']{constructor(_0x21dd8d,_0x58273f,_0xf98fa9,_0x3fafc5){const _0x4b1472=_0x5e988f;super(),this[_0x4b1472(0x4ac)]=_0x21dd8d,this[_0x4b1472(0x1ea)]=_0x58273f,this[_0x4b1472(0x2f6)]=_0xf98fa9,this[_0x4b1472(0x4d2)]=_0x3fafc5,E(this,_0x4b1472(0x2f1),[]),E(this,'_activeTargetShapeId',null),E(this,_0x4b1472(0x3f8),-0x1),E(this,'_currentScene',null),E(this,'_unitId',''),E(this,_0x4b1472(0x363),''),E(this,_0x4b1472(0x2ed),null);}[_0x5e988f(0x477)](_0x5976db,_0x5c3286,_0x408d3d,_0x2ddfcc){const _0xf71739=_0x5e988f;this['_currentScene']=_0x5976db,this['_unitId']=_0x5c3286,this[_0xf71739(0x363)]=_0x408d3d,this[_0xf71739(0x2ed)]=_0x2ddfcc;}['updateConnectionDetection'](_0x213fa6){const _0x383062=_0x5e988f;if(!this['_currentScene'])return null;let _0x54ca22=this[_0x383062(0x41c)](_0x213fa6);return _0x54ca22?(this['_activeTargetShapeId']!==_0x54ca22[_0x383062(0x3cd)]&&(this['_clearConnectionSites'](),this[_0x383062(0x34f)](_0x54ca22[_0x383062(0x3cd)],_0x54ca22['shapeModel']),this[_0x383062(0x344)]=_0x54ca22[_0x383062(0x3cd)]),this['_findNearestConnectionSite'](_0x213fa6)):(this['_activeTargetShapeId']!==null&&(this[_0x383062(0x19c)](),this[_0x383062(0x344)]=null),null);}[_0x5e988f(0x1f7)](){const _0x42c29f=_0x5e988f;this[_0x42c29f(0x19c)](),this[_0x42c29f(0x414)]=null,this['_activeTargetShapeId']=null,this[_0x42c29f(0x3f8)]=-0x1,this[_0x42c29f(0x2ed)]=null;}[_0x5e988f(0x40f)](){const _0x341f48=_0x5e988f;return this[_0x341f48(0x344)]===null||this[_0x341f48(0x3f8)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0x341f48(0x3f8)]};}[_0x5e988f(0x41c)](_0x15bae6){const _0x2579e6=_0x5e988f;let _0x6a375b=this[_0x2579e6(0x2f6)][_0x2579e6(0x454)](this['_unitId'],this[_0x2579e6(0x363)]);for(let _0x770f9b of Object['keys'](_0x6a375b)){if(_0x770f9b===this[_0x2579e6(0x2ed)]||_0x6a375b[_0x770f9b][_0x2579e6(0x2aa)]!==a[_0x2579e6(0x181)][_0x2579e6(0x1d7)])continue;let _0xa3ace6=this['_sheetsShapeService']['getShapeModel'](this['_unitId'],this['_subUnitId'],_0x770f9b);if(!_0xa3ace6||(0x0,n['isConnectorShape'])(_0xa3ace6[_0x2579e6(0x2d9)]())||_0xa3ace6['getConnectionSiteList']()['length']===0x0||!this['_currentScene'])continue;let _0x14fe56=(0x0,s[_0x2579e6(0x278)])({'unitId':this['_unitId'],'subUnitId':this[_0x2579e6(0x363)],'drawingId':_0x770f9b}),_0xd89dd1=this[_0x2579e6(0x414)]['getObjectIncludeInGroup'](_0x14fe56);if(!_0xd89dd1)continue;let {left:_0xf54275,top:_0x6fe501,width:_0x1939f7,height:_0x1bdac1}=_0xd89dd1[_0x2579e6(0x27a)](),_0x27ed47=_0xf54275+_0x1939f7/0x2,_0x4a8780=_0x6fe501+_0x1bdac1/0x2,_0x530389=_0xd89dd1[_0x2579e6(0x2fd)][_0x2579e6(0x326)](),_0x457476=new c['Transform']([_0x530389[0x0],_0x530389[0x1],_0x530389[0x2],_0x530389[0x3],_0x27ed47,_0x4a8780]),_0x4d8a8f=_0xd89dd1[_0x2579e6(0x2c9)](),_0x40ce57=(_0xd89dd1[_0x2579e6(0x31d)]&&(_0x4d8a8f==null?void 0x0:_0x4d8a8f[_0x2579e6(0x187)])===c[_0x2579e6(0x40b)][_0x2579e6(0x43b)]?_0x4d8a8f[_0x2579e6(0x173)][_0x2579e6(0x44f)](_0x457476):_0x457476)['invert']()[_0x2579e6(0x42b)](_0x15bae6),_0x2ab3e7=_0x1939f7/0x2,_0x35a820=_0x1bdac1/0x2;if(_0x40ce57['x']>=-_0x2ab3e7-0x5&&_0x40ce57['x']<=_0x2ab3e7+0x5&&_0x40ce57['y']>=-_0x35a820-0x5&&_0x40ce57['y']<=_0x35a820+0x5)return{'shapeId':_0x770f9b,'shapeModel':_0xa3ace6};}return null;}[_0x5e988f(0x34f)](_0x30d3a5,_0x3bc867){const _0x4d70bf=_0x5e988f;if(!this[_0x4d70bf(0x414)])return;let _0xe66e0a=(0x0,s[_0x4d70bf(0x278)])({'unitId':this[_0x4d70bf(0x308)],'subUnitId':this[_0x4d70bf(0x363)],'drawingId':_0x30d3a5}),_0x2da2a6=this[_0x4d70bf(0x414)][_0x4d70bf(0x300)](_0xe66e0a);if(!_0x2da2a6)return;let {left:_0x3bc7b2,top:_0x45b7e0,width:_0x574e8f,height:_0x501179}=_0x2da2a6['getRealBound'](),_0xdae02e=_0x3bc7b2+_0x574e8f/0x2,_0x2b1934=_0x45b7e0+_0x501179/0x2,_0x2267ea=_0x2da2a6[_0x4d70bf(0x2fd)][_0x4d70bf(0x326)](),_0x26af12=new c[(_0x4d70bf(0x4e5))]([_0x2267ea[0x0],_0x2267ea[0x1],_0x2267ea[0x2],_0x2267ea[0x3],_0xdae02e,_0x2b1934]),_0x3c5c23=_0x2da2a6[_0x4d70bf(0x2c9)](),_0x53a693=_0x2da2a6[_0x4d70bf(0x31d)]&&(_0x3c5c23==null?void 0x0:_0x3c5c23[_0x4d70bf(0x187)])===c[_0x4d70bf(0x40b)][_0x4d70bf(0x43b)]?_0x3c5c23[_0x4d70bf(0x173)][_0x4d70bf(0x44f)](_0x26af12):_0x26af12;_0x3bc867['updateContext']({'width':_0x574e8f,'height':_0x501179});let _0x3d265a=_0x3bc867[_0x4d70bf(0x4b2)]();for(let _0x7e615b of _0x3d265a){let _0x12ac33=_0x7e615b['x']-_0x574e8f/0x2,_0x39cce3=_0x7e615b['y']-_0x501179/0x2,_0x321feb=_0x53a693[_0x4d70bf(0x42b)]({'x':_0x12ac33,'y':_0x39cce3}),_0x1fdfef=_0x321feb['x'],_0x55670f=_0x321feb['y'],_0x2466ec=new xt('connection-site-'+_0x30d3a5+'-'+_0x7e615b[_0x4d70bf(0x37a)],{'left':_0x1fdfef-n['ShapeDefaultConfig'][_0x4d70bf(0x3bb)],'top':_0x55670f-n['ShapeDefaultConfig']['cxnPointRadius'],'targetShapeId':_0x30d3a5,'cxnIndex':_0x7e615b['index'],'unitId':this[_0x4d70bf(0x308)],'subUnitId':this[_0x4d70bf(0x363)],'width':n[_0x4d70bf(0x291)][_0x4d70bf(0x3bb)]*0x2,'height':n[_0x4d70bf(0x291)][_0x4d70bf(0x3bb)]*0x2,'zIndex':c['DRAWING_OBJECT_LAYER_INDEX']+0x2,'evented':!0x1});this[_0x4d70bf(0x2f1)][_0x4d70bf(0x4d5)](_0x2466ec),this[_0x4d70bf(0x414)]['addObject'](_0x2466ec,c[_0x4d70bf(0x245)]+0x2);}}[_0x5e988f(0x494)](_0x269d38){const _0x4f9b94=_0x5e988f;let _0x33c7c5=null,_0x3701c6=0x1/0x0,_0x550ade=null;for(let _0x578602 of this[_0x4f9b94(0x2f1)]){let _0x3fb264=_0x578602['left']+n[_0x4f9b94(0x291)][_0x4f9b94(0x3bb)],_0x366a68=_0x578602[_0x4f9b94(0x480)]+n['ShapeDefaultConfig']['cxnPointRadius'],_0x5e8b75=_0x269d38['x']-_0x3fb264,_0x1640d9=_0x269d38['y']-_0x366a68,_0x517f6c=Math['sqrt'](_0x5e8b75*_0x5e8b75+_0x1640d9*_0x1640d9);_0x517f6c<_0x3701c6&&(_0x3701c6=_0x517f6c,_0x33c7c5=_0x578602,_0x550ade={'x':_0x3fb264,'y':_0x366a68});}let _0x162633=_0x3701c6<=0xa&&_0x33c7c5?_0x33c7c5[_0x4f9b94(0x294)]()[_0x4f9b94(0x4dd)]:-0x1;if(_0x162633!==this[_0x4f9b94(0x3f8)]){for(let _0x86ac90 of this[_0x4f9b94(0x2f1)]){let _0x46df18=_0x86ac90['getConnectionInfo']();_0x86ac90[_0x4f9b94(0x2d2)](_0x46df18[_0x4f9b94(0x4dd)]===_0x162633);}this[_0x4f9b94(0x3f8)]=_0x162633;}if(_0x3701c6<=0xa&&_0x33c7c5&&_0x550ade){let _0x1a73e4=_0x33c7c5['getConnectionInfo'](),_0x190688=this[_0x4f9b94(0x37d)](_0x1a73e4['shapeId'],_0x1a73e4['cxnIndex']);return{'shapeId':_0x1a73e4[_0x4f9b94(0x3cd)],'cxnIndex':_0x1a73e4[_0x4f9b94(0x4dd)],'unitId':_0x1a73e4['unitId'],'subUnitId':_0x1a73e4[_0x4f9b94(0x369)],'worldPoint':_0x550ade,'angle':_0x190688};}return null;}['_getConnectionSiteAngle'](_0x20b1d3,_0x11e3cc){const _0x3a63fb=_0x5e988f;let _0x48b9b9=this[_0x3a63fb(0x4d2)][_0x3a63fb(0x2c6)](this['_unitId'],this[_0x3a63fb(0x363)],_0x20b1d3);if(!_0x48b9b9)return 0x0;let _0x6166f4=this[_0x3a63fb(0x2f6)]['getDrawingByParam']({'unitId':this[_0x3a63fb(0x308)],'subUnitId':this['_subUnitId'],'drawingId':_0x20b1d3});if(!(_0x6166f4!=null&&_0x6166f4[_0x3a63fb(0x2fd)]))return 0x0;let {width:_0x516a28=0x0,height:_0x4c43fc=0x0,flipX:_0x572a54=!0x1,flipY:_0x4f9758=!0x1}=_0x6166f4[_0x3a63fb(0x2fd)];_0x48b9b9[_0x3a63fb(0x162)]({'width':_0x516a28,'height':_0x4c43fc});let _0x4f65fe=_0x48b9b9[_0x3a63fb(0x4b2)]()[_0x3a63fb(0x2d1)](_0x404c4a=>_0x404c4a[_0x3a63fb(0x37a)]===_0x11e3cc);if(!_0x4f65fe)return 0x0;let _0x26bd69=_0x4f65fe[_0x3a63fb(0x47d)]/0xea60;return _0x572a54&&(_0x26bd69=0xb4-_0x26bd69),_0x4f9758&&(_0x26bd69=-_0x26bd69),_0x26bd69=(_0x26bd69%0x168+0x168)%0x168,_0x26bd69;}['_clearConnectionSites'](){const _0x514870=_0x5e988f;for(let _0x3d5f1d of this[_0x514870(0x2f1)])_0x3d5f1d['dispose']();this[_0x514870(0x2f1)]=[],this['_highlightedSiteIndex']=-0x1;}['dispose'](){const _0xe6db14=_0x5e988f;this[_0xe6db14(0x19c)](),super[_0xe6db14(0x4c1)]();}};K=A([k(0x1,(0x0,a['Inject'])(c['IRenderManagerService'])),k(0x2,(0x0,a['Inject'])(s[_0x5e988f(0x1bd)])),k(0x3,(0x0,a[_0x5e988f(0x334)])(i[_0x5e988f(0x44c)]))],K);let q=class extends a[_0x5e988f(0x302)]{constructor(_0x551e07,_0x6cfdd9,_0x1c9088,_0x31ba26,_0x5c30b6){const _0x3fa2d7=_0x5e988f;super(),this[_0x3fa2d7(0x4ce)]=_0x551e07,this[_0x3fa2d7(0x23d)]=_0x6cfdd9,this[_0x3fa2d7(0x345)]=_0x1c9088,this[_0x3fa2d7(0x442)]=_0x31ba26,this['_groupCopyPasteController']=_0x5c30b6,E(this,_0x3fa2d7(0x227),void 0x0),this[_0x3fa2d7(0x372)](),this[_0x3fa2d7(0x356)]();}get['_focusedDrawings'](){const _0x33a4ab=_0x5e988f;return this[_0x33a4ab(0x345)][_0x33a4ab(0x166)]();}[_0x5e988f(0x356)](){const _0x394dae=_0x5e988f;this['_groupCopyPasteController'][_0x394dae(0x2e5)](({fromUnitId:_0x5c33a4,fromSubUnitId:_0x46fb57,toUnitId:_0x5da5ce,toSubUnitId:_0xd91838,idMap:_0x1f5206})=>{const _0x20f6c8=_0x394dae;let _0x2203dc=[],_0x3e44a3=[];for(let [_0x292f87,_0x349f73]of _0x1f5206['entries']()){let _0x42c8d6=this[_0x20f6c8(0x442)][_0x20f6c8(0x2c6)](_0x5c33a4,_0x46fb57,_0x292f87);if(!_0x42c8d6)continue;let _0x5c97c3=_0x42c8d6['getShapeType'](),_0x46c5e5=JSON[_0x20f6c8(0x3ca)](JSON[_0x20f6c8(0x1ad)](_0x42c8d6['getShapeData']()));if(_0x46c5e5[_0x20f6c8(0x316)]){var _0x1ecec9,_0x4e3571;let _0x2505f7=(_0x1ecec9=_0x46c5e5[_0x20f6c8(0x316)][_0x20f6c8(0x1e9)])==null?void 0x0:_0x1ecec9['shapeId'],_0x2bb729=(_0x4e3571=_0x46c5e5[_0x20f6c8(0x316)]['to'])==null?void 0x0:_0x4e3571[_0x20f6c8(0x3cd)],_0x58db0c=!_0x2505f7||_0x1f5206[_0x20f6c8(0x4ec)](_0x2505f7),_0x1bf82e=!_0x2bb729||_0x1f5206['has'](_0x2bb729);_0x58db0c&&_0x2505f7&&_0x46c5e5[_0x20f6c8(0x316)][_0x20f6c8(0x1e9)]?_0x46c5e5[_0x20f6c8(0x316)][_0x20f6c8(0x1e9)]={..._0x46c5e5[_0x20f6c8(0x316)][_0x20f6c8(0x1e9)],'shapeId':_0x1f5206[_0x20f6c8(0x329)](_0x2505f7)}:_0x46c5e5['relation']['from']=void 0x0,_0x1bf82e&&_0x2bb729&&_0x46c5e5[_0x20f6c8(0x316)]['to']?_0x46c5e5[_0x20f6c8(0x316)]['to']={..._0x46c5e5[_0x20f6c8(0x316)]['to'],'shapeId':_0x1f5206[_0x20f6c8(0x329)](_0x2bb729)}:_0x46c5e5[_0x20f6c8(0x316)]['to']=void 0x0;}_0x2203dc[_0x20f6c8(0x4d5)]({'id':i[_0x20f6c8(0x2c7)]['id'],'params':{'unitId':_0x5da5ce,'subUnitId':_0xd91838,'shapeId':_0x349f73,'shapeType':_0x5c97c3,'shapeData':_0x46c5e5}}),_0x3e44a3[_0x20f6c8(0x4d5)]({'id':i[_0x20f6c8(0x385)]['id'],'params':{'unitId':_0x5da5ce,'subUnitId':_0xd91838,'shapeId':_0x349f73}});}return{'redos':_0x2203dc,'undos':_0x3e44a3};});}['_initCopyPaste'](){const _0x3933ee=_0x5e988f;this[_0x3933ee(0x36f)](this[_0x3933ee(0x23d)][_0x3933ee(0x353)]({'id':_0x3933ee(0x405),'onBeforeCopyFocusedObject':(_0xc443a3,_0x2e5fd5,_0x37d3bd)=>{const _0x203a9e=_0x3933ee;this[_0x203a9e(0x227)]=null;let _0x22d3d6=this[_0x203a9e(0x476)][_0x203a9e(0x38d)](_0x5f609b=>_0x5f609b[_0x203a9e(0x2aa)]===a[_0x203a9e(0x181)]['DRAWING_SHAPE']);return _0x22d3d6[_0x203a9e(0x2b6)]!==0x0&&(this[_0x203a9e(0x227)]={'unitId':_0xc443a3,'subUnitId':_0x2e5fd5,'copyType':_0x37d3bd,'drawings':_0x22d3d6},!0x0);},'onBeforeCopy':(_0x38d5b6,_0x3cd911,_0x8ef981,_0x193758)=>{const _0x3d3ad8=_0x3933ee;this[_0x3d3ad8(0x227)]=null,this['_createCopyInfoByRange'](_0x38d5b6,_0x3cd911,_0x8ef981,_0x193758);},'onPasteCells':(_0x285e45,_0x581892,_0x5db83d,_0xa32bea)=>{const _0x1b1610=_0x3933ee;if(!_0xa32bea[_0x1b1610(0x47b)]||!_0x285e45||!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x96f05e}=_0xa32bea;return _0x96f05e===l[_0x1b1610(0x2d7)][_0x1b1610(0x250)]?this['_generatePasteMutations'](_0x581892,this['_copyInfo'][_0x1b1610(0x201)]===l['COPY_TYPE']['CUT']):{'redos':[],'undos':[]};}}));}[_0x5e988f(0x23e)](_0x57561d,_0x10f2a9,_0x4f5282,_0x4b6b52){const _0x3b3a03=_0x5e988f;let _0x4ee6a2=this[_0x3b3a03(0x4ce)][_0x3b3a03(0x4a3)](_0x57561d,_0x10f2a9);if(!_0x4ee6a2)return;let _0x324426=(0x0,o[_0x3b3a03(0x22a)])(_0x4ee6a2,_0x4f5282);if(!_0x324426)return;let {startX:_0x32d3ee,endX:_0x3c2fc8,startY:_0x30bc9e,endY:_0x45ab8a}=_0x324426,_0x536218=this['_sheetDrawingService'][_0x3b3a03(0x454)](_0x57561d,_0x10f2a9),_0x43e1b5=[];for(let [_0x54e39f,_0x487e7b]of Object['entries'](_0x536218)){if(_0x487e7b['drawingType']!==a[_0x3b3a03(0x181)][_0x3b3a03(0x1d7)])continue;let {transform:_0x1249e5}=_0x487e7b;if(!_0x1249e5)continue;let {left:_0x377d15=0x0,top:_0x19c373=0x0,width:_0x28869c=0x0,height:_0xe17f5e=0x0}=_0x1249e5;_0x32d3ee<=_0x377d15&&_0x3c2fc8>=_0x377d15+_0x28869c&&_0x30bc9e<=_0x19c373&&_0x45ab8a>=_0x19c373+_0xe17f5e&&_0x43e1b5[_0x3b3a03(0x4d5)](_0x487e7b);}_0x43e1b5[_0x3b3a03(0x2b6)]>0x0&&(this[_0x3b3a03(0x227)]={'unitId':_0x57561d,'subUnitId':_0x10f2a9,'copyType':_0x4b6b52,'copyRange':_0x4f5282,'drawings':_0x43e1b5});}[_0x5e988f(0x3a1)](_0xaeb393,_0x37559c){const _0x2e0383=_0x5e988f;let {unitId:_0x49238b,subUnitId:_0x4c595d,range:_0x4c9c8d}=_0xaeb393,_0x365346=this['_sheetSkeletonService'][_0x2e0383(0x4a3)](_0x49238b,_0x4c595d);if(!_0x365346)return{'redos':[],'undos':[]};let _0x37da3c=(0x0,o['discreteRangeToRange'])(_0x4c9c8d),{unitId:_0x23c461,subUnitId:_0x22c9d2,copyRange:_0x1d6a44,drawings:_0x3fb99f}=this[_0x2e0383(0x227)],_0x52e799=this[_0x2e0383(0x4ce)][_0x2e0383(0x4a3)](_0x23c461,_0x22c9d2);if(!_0x52e799)return{'redos':[],'undos':[]};let _0x3d52a4;if(!_0x1d6a44){let _0x338d17=0x1/0x0,_0x5f04f0=0x1/0x0;for(let _0x1b4f17 of _0x3fb99f){let {left:_0x41e3e8=0x0,top:_0x3a7149=0x0}=_0x1b4f17['transform']??{};_0x41e3e8<_0x338d17&&(_0x338d17=_0x41e3e8),_0x3a7149<_0x5f04f0&&(_0x5f04f0=_0x3a7149);}_0x338d17!==0x1/0x0&&_0x5f04f0!==0x1/0x0&&(_0x3d52a4={'left':_0x338d17,'top':_0x5f04f0});}let _0x4afc80=new Map();if(!_0x37559c){for(let _0x4f367b of _0x3fb99f)_0x4afc80[_0x2e0383(0x33d)](_0x4f367b[_0x2e0383(0x456)],(0x0,a['generateRandomId'])());}let _0x3e0bb6=[],_0x49f236=[];for(let _0x37a51e of _0x3fb99f){let {drawingId:_0x571a5d,transform:_0x2c5cce,sheetTransform:_0x107610}=_0x37a51e;if(!_0x2c5cce||!_0x107610)continue;let _0x2349f0=this[_0x2e0383(0x1b6)]({'transform':_0x2c5cce,'sheetTransform':_0x107610},{'skeleton':_0x52e799,'range':_0x1d6a44},{'skeleton':_0x365346,'range':_0x37da3c},_0x3d52a4);if(_0x37559c){let {redos:_0x5a00a1,undos:_0x193dca}=this[_0x2e0383(0x1e4)]({'fromUnitId':_0x23c461,'fromSubUnitId':_0x22c9d2,'toUnitId':_0x49238b,'toSubUnitId':_0x4c595d,'drawing':_0x37a51e,'newTransforms':_0x2349f0});_0x3e0bb6[_0x2e0383(0x4d5)](..._0x5a00a1),_0x49f236[_0x2e0383(0x4d5)](..._0x193dca);continue;}let {redos:_0x5e4126,undos:_0x1f4ee9}=this[_0x2e0383(0x45a)]({'toUnitId':_0x49238b,'toSubUnitId':_0x4c595d,'drawing':_0x37a51e,'newTransforms':_0x2349f0,'newDrawingId':_0x4afc80[_0x2e0383(0x329)](_0x571a5d),'idMap':_0x4afc80});_0x3e0bb6[_0x2e0383(0x4d5)](..._0x5e4126),_0x49f236[_0x2e0383(0x4d5)](..._0x1f4ee9);}return{'redos':_0x3e0bb6,'undos':_0x49f236};}[_0x5e988f(0x1e4)](_0x4c503d){const _0x37c5ba=_0x5e988f;let {fromUnitId:_0x3f4810,fromSubUnitId:_0x502b43,toUnitId:_0x632c61,toSubUnitId:_0x452b3c,drawing:_0x2092c4,newTransforms:_0x49b3f5}=_0x4c503d,_0x3e7543={..._0x2092c4,'unitId':_0x632c61,'subUnitId':_0x452b3c,'transform':_0x49b3f5['transform'],'sheetTransform':_0x49b3f5[_0x37c5ba(0x444)]};if(_0x632c61===_0x3f4810&&_0x452b3c===_0x502b43){let {redo:_0x2feea6,undo:_0x39fb4c,objects:_0x1a45b6}=this[_0x37c5ba(0x345)][_0x37c5ba(0x2f7)]([_0x3e7543]);return{'redos':[{'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x632c61,'subUnitId':_0x452b3c,'type':m['DrawingApplyType'][_0x37c5ba(0x4ad)],'op':_0x2feea6,'objects':_0x1a45b6}}],'undos':[{'id':m[_0x37c5ba(0x416)]['id'],'params':{'unitId':_0x632c61,'subUnitId':_0x452b3c,'type':m[_0x37c5ba(0x402)][_0x37c5ba(0x4ad)],'op':_0x39fb4c,'objects':_0x1a45b6}}]};}{let _0x4fd500=this['_sheetDrawingService']['getBatchRemoveOp']([_0x2092c4]),_0x3eb4b5=this[_0x37c5ba(0x345)][_0x37c5ba(0x198)]([_0x3e7543]),_0x2a6869=this[_0x37c5ba(0x442)][_0x37c5ba(0x2c6)](_0x2092c4['unitId'],_0x2092c4[_0x37c5ba(0x369)],_0x2092c4[_0x37c5ba(0x456)]);if(!_0x2a6869)return{'redos':[],'undos':[]};let _0x1b5486=_0x2a6869[_0x37c5ba(0x2d9)](),_0x33fa68=JSON[_0x37c5ba(0x3ca)](JSON[_0x37c5ba(0x1ad)](_0x2a6869['getShapeData']()));return{'redos':[{'id':m[_0x37c5ba(0x416)]['id'],'params':{'unitId':_0x3f4810,'subUnitId':_0x502b43,'type':m[_0x37c5ba(0x402)][_0x37c5ba(0x4f5)],'op':_0x4fd500[_0x37c5ba(0x331)],'objects':_0x4fd500[_0x37c5ba(0x396)]}},{'id':i['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x3f4810,'subUnitId':_0x502b43,'shapeId':_0x2092c4[_0x37c5ba(0x456)]}},{'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x632c61,'subUnitId':_0x452b3c,'type':m[_0x37c5ba(0x402)][_0x37c5ba(0x30e)],'op':_0x3eb4b5[_0x37c5ba(0x331)],'objects':_0x3eb4b5['objects']}},{'id':i[_0x37c5ba(0x2c7)]['id'],'params':{'unitId':_0x632c61,'subUnitId':_0x452b3c,'shapeId':_0x2092c4[_0x37c5ba(0x456)],'shapeType':_0x1b5486,'shapeData':_0x33fa68}}],'undos':[{'id':m[_0x37c5ba(0x416)]['id'],'params':{'unitId':_0x3f4810,'subUnitId':_0x502b43,'type':m['DrawingApplyType'][_0x37c5ba(0x30e)],'op':_0x4fd500[_0x37c5ba(0x4bb)],'objects':_0x4fd500[_0x37c5ba(0x396)]}},{'id':i['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x3f4810,'subUnitId':_0x502b43,'shapeId':_0x2092c4[_0x37c5ba(0x456)],'shapeType':_0x1b5486,'shapeData':_0x33fa68}},{'id':m[_0x37c5ba(0x416)]['id'],'params':{'unitId':_0x632c61,'subUnitId':_0x452b3c,'type':m[_0x37c5ba(0x402)]['REMOVE'],'op':_0x3eb4b5[_0x37c5ba(0x4bb)],'objects':_0x3eb4b5[_0x37c5ba(0x396)]}},{'id':i[_0x37c5ba(0x385)]['id'],'params':{'unitId':_0x632c61,'subUnitId':_0x452b3c,'shapeId':_0x2092c4[_0x37c5ba(0x456)]}}]};}}['_generateCopyPasteMutations'](_0x599b01){const _0x1d46ab=_0x5e988f;let {toUnitId:_0xa35240,toSubUnitId:_0x27b54a,drawing:_0x3bb414,newTransforms:_0x2d75dc,newDrawingId:_0x1e7f4b,idMap:_0x377006}=_0x599b01,_0x2bc422={..._0x3bb414,'unitId':_0xa35240,'subUnitId':_0x27b54a,'drawingId':_0x1e7f4b,'transform':_0x2d75dc[_0x1d46ab(0x2fd)],'sheetTransform':_0x2d75dc['sheetTransform']},{redo:_0x1ae53c,undo:_0xacbca0,objects:_0x5c1cfd}=this['_sheetDrawingService'][_0x1d46ab(0x198)]([_0x2bc422]),_0x9b56ef=this[_0x1d46ab(0x442)][_0x1d46ab(0x2c6)](_0x3bb414[_0x1d46ab(0x346)],_0x3bb414[_0x1d46ab(0x369)],_0x3bb414[_0x1d46ab(0x456)]);if(!_0x9b56ef)return{'redos':[],'undos':[]};let _0x43d43d=_0x9b56ef[_0x1d46ab(0x2d9)](),_0x3f0e1a=JSON[_0x1d46ab(0x3ca)](JSON[_0x1d46ab(0x1ad)](_0x9b56ef[_0x1d46ab(0x2e3)]()));if(_0x3f0e1a[_0x1d46ab(0x316)]){var _0x44365c,_0x39ebec;let _0x122e13=(_0x44365c=_0x3f0e1a[_0x1d46ab(0x316)]['from'])==null?void 0x0:_0x44365c['shapeId'],_0x583cf8=(_0x39ebec=_0x3f0e1a['relation']['to'])==null?void 0x0:_0x39ebec['shapeId'],_0x2ed0d8=!_0x122e13||_0x377006[_0x1d46ab(0x4ec)](_0x122e13),_0x534bd5=!_0x583cf8||_0x377006[_0x1d46ab(0x4ec)](_0x583cf8);_0x2ed0d8&&_0x122e13&&_0x3f0e1a[_0x1d46ab(0x316)][_0x1d46ab(0x1e9)]?_0x3f0e1a[_0x1d46ab(0x316)][_0x1d46ab(0x1e9)]={..._0x3f0e1a[_0x1d46ab(0x316)][_0x1d46ab(0x1e9)],'shapeId':_0x377006[_0x1d46ab(0x329)](_0x122e13)}:_0x3f0e1a['relation'][_0x1d46ab(0x1e9)]=void 0x0,_0x534bd5&&_0x583cf8&&_0x3f0e1a['relation']['to']?_0x3f0e1a[_0x1d46ab(0x316)]['to']={..._0x3f0e1a[_0x1d46ab(0x316)]['to'],'shapeId':_0x377006[_0x1d46ab(0x329)](_0x583cf8)}:_0x3f0e1a[_0x1d46ab(0x316)]['to']=void 0x0;}return{'redos':[{'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0xa35240,'subUnitId':_0x27b54a,'type':m['DrawingApplyType'][_0x1d46ab(0x30e)],'op':_0x1ae53c,'objects':_0x5c1cfd}},{'id':i['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0xa35240,'subUnitId':_0x27b54a,'shapeId':_0x1e7f4b,'shapeType':_0x43d43d,'shapeData':_0x3f0e1a}}],'undos':[{'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0xa35240,'subUnitId':_0x27b54a,'type':m['DrawingApplyType'][_0x1d46ab(0x4f5)],'op':_0xacbca0,'objects':_0x5c1cfd}},{'id':i['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0xa35240,'subUnitId':_0x27b54a,'shapeId':_0x1e7f4b}}]};}[_0x5e988f(0x1b6)](_0x3ce71d,_0x1bfc4b,_0x1a8352,_0x3902a3){const _0x15ad44=_0x5e988f;let {range:_0x4ddd84,skeleton:_0x22da75}=_0x1bfc4b,{range:_0x892c81,skeleton:_0x200e0f}=_0x1a8352,{transform:_0x13bf6c,sheetTransform:_0x26f6af}=_0x3ce71d,_0x16096d={..._0x13bf6c};if(_0x4ddd84){let _0x8db645=(0x0,o[_0x15ad44(0x22a)])(_0x22da75,_0x4ddd84),_0x38db81=(0x0,o[_0x15ad44(0x22a)])(_0x200e0f,_0x892c81);if(_0x8db645&&_0x38db81){let _0x43fc49=_0x38db81[_0x15ad44(0x2ad)]-_0x8db645[_0x15ad44(0x2ad)],_0x5900f9=_0x38db81['startY']-_0x8db645[_0x15ad44(0x160)];_0x16096d[_0x15ad44(0x3d8)]=(_0x16096d['left']??0x0)+_0x43fc49,_0x16096d[_0x15ad44(0x480)]=(_0x16096d[_0x15ad44(0x480)]??0x0)+_0x5900f9;}}else{let _0x39be29=(0x0,o[_0x15ad44(0x22a)])(_0x200e0f,_0x892c81);if(_0x3902a3&&_0x39be29){let _0x364517=(_0x16096d[_0x15ad44(0x3d8)]??0x0)-_0x3902a3[_0x15ad44(0x3d8)],_0x4c5685=(_0x16096d[_0x15ad44(0x480)]??0x0)-_0x3902a3['top'];_0x16096d[_0x15ad44(0x3d8)]=_0x39be29[_0x15ad44(0x2ad)]+_0x364517,_0x16096d[_0x15ad44(0x480)]=_0x39be29[_0x15ad44(0x160)]+_0x4c5685;}else _0x16096d[_0x15ad44(0x3d8)]=_0x39be29==null?void 0x0:_0x39be29[_0x15ad44(0x2ad)],_0x16096d[_0x15ad44(0x480)]=_0x39be29==null?void 0x0:_0x39be29[_0x15ad44(0x160)];}return{'transform':_0x16096d,'sheetTransform':(0x0,m['transformToDrawingPosition'])(_0x16096d,_0x200e0f)??_0x26f6af};}};q=A([k(0x0,(0x0,a[_0x5e988f(0x334)])(o[_0x5e988f(0x451)])),k(0x1,(0x0,a['Inject'])(l[_0x5e988f(0x2dc)])),k(0x2,(0x0,a[_0x5e988f(0x334)])(m[_0x5e988f(0x211)])),k(0x3,(0x0,a['Inject'])(i['SheetsShapeService'])),k(0x4,(0x0,a[_0x5e988f(0x334)])(v[_0x5e988f(0x19b)]))],q);var St=class extends c[_0x5e988f(0x28e)]{constructor(_0x5e4e39,_0x4a7424){const _0x43d8f6=_0x5e988f;super(_0x5e4e39,_0x4a7424),E(this,'_shapeId',null),E(this,_0x43d8f6(0x19d),null),E(this,_0x43d8f6(0x308),null),E(this,'_subUnitId',null),E(this,_0x43d8f6(0x1e2),!0x1),_0x4a7424&&this['setShapeProps'](_0x4a7424);}[_0x5e988f(0x22d)](){const _0x3f4ec3=_0x5e988f;return{'unitId':this[_0x3f4ec3(0x308)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x3f4ec3(0x447)]};}['setShapeProps'](_0x3b1941){const _0x4bd4ec=_0x5e988f;_0x3b1941['shapeId']!==void 0x0&&(this['_shapeId']=_0x3b1941[_0x4bd4ec(0x3cd)]),_0x3b1941[_0x4bd4ec(0x346)]!==void 0x0&&(this[_0x4bd4ec(0x308)]=_0x3b1941[_0x4bd4ec(0x346)]),_0x3b1941[_0x4bd4ec(0x369)]!==void 0x0&&(this[_0x4bd4ec(0x363)]=_0x3b1941['subUnitId']),_0x3b1941['isStartConnectorPoint']!==void 0x0&&(this[_0x4bd4ec(0x1e2)]=_0x3b1941['isStartConnectorPoint']),this[_0x4bd4ec(0x49b)]({'width':_0x3b1941[_0x4bd4ec(0x254)],'height':_0x3b1941[_0x4bd4ec(0x457)]});}[_0x5e988f(0x22c)](_0x1dd91b){const _0x1ab867=_0x5e988f;c['Circle'][_0x1ab867(0x370)](_0x1dd91b,{'radius':n['ShapeDefaultConfig'][_0x1ab867(0x3bb)],'fill':n[_0x1ab867(0x291)][_0x1ab867(0x49f)],'stroke':n['ShapeDefaultConfig'][_0x1ab867(0x2a2)],'strokeWidth':n[_0x1ab867(0x291)]['cxnPointStrokeWidth'],'evented':!0x0});}};let Ct=class extends a[_0x5e988f(0x302)]{constructor(_0x34fcdd,_0x31ade2,_0x123aa9,_0x53a95f,_0x3a710c,_0x175368,_0x3319d8,_0x2751de){const _0x48e7e3=_0x5e988f;super(),this[_0x48e7e3(0x4ac)]=_0x34fcdd,this[_0x48e7e3(0x263)]=_0x31ade2,this['_renderManagerService']=_0x123aa9,this[_0x48e7e3(0x2f6)]=_0x53a95f,this[_0x48e7e3(0x3fa)]=_0x3a710c,this[_0x48e7e3(0x4d2)]=_0x175368,this[_0x48e7e3(0x409)]=_0x3319d8,this[_0x48e7e3(0x3d6)]=_0x2751de,E(this,_0x48e7e3(0x15e),void 0x0),E(this,'_unitId',void 0x0),E(this,_0x48e7e3(0x363),void 0x0),E(this,'_connectorObjects',[]),E(this,_0x48e7e3(0x2c3),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),E(this,'_activeShapeModel',void 0x0),E(this,_0x48e7e3(0x46c),!0x1),E(this,'_isDrawingShapePointDown',!0x1),E(this,_0x48e7e3(0x286),!0x1),E(this,'_cxtHandlerPointerMove',void 0x0),E(this,'_cxtHandlerPointerUp',void 0x0),E(this,_0x48e7e3(0x2cb),null),this[_0x48e7e3(0x2f3)]();}[_0x5e988f(0x2f3)](){const _0x19270e=_0x5e988f;this[_0x19270e(0x3fc)](),this[_0x19270e(0x35e)]();}[_0x5e988f(0x340)](){const _0x2f13aa=_0x5e988f;if(!this['_unitId']||!this[_0x2f13aa(0x363)]||!this['_activeShapeId'])return;let _0x2b6acb={'unitId':this[_0x2f13aa(0x308)],'subUnitId':this[_0x2f13aa(0x363)],'drawingId':this['_activeShapeId']},{transform:_0x58799a}=this[_0x2f13aa(0x2f6)]['getDrawingByParam'](_0x2b6acb);if(_0x58799a)return{'left':_0x58799a['left']||0x0,'top':_0x58799a[_0x2f13aa(0x480)]||0x0,'width':_0x58799a[_0x2f13aa(0x254)]||0x0,'height':_0x58799a[_0x2f13aa(0x457)]||0x0,'flipX':_0x58799a[_0x2f13aa(0x174)]||!0x1,'flipY':_0x58799a['flipY']||!0x1,'angle':_0x58799a[_0x2f13aa(0x1d9)]};}[_0x5e988f(0x2da)](){const _0x3d86b6=_0x5e988f;if(this[_0x3d86b6(0x308)]===void 0x0||this[_0x3d86b6(0x363)]===void 0x0||this[_0x3d86b6(0x15e)]===void 0x0)return;let _0x432757=this[_0x3d86b6(0x1ea)][_0x3d86b6(0x188)](this[_0x3d86b6(0x308)]);if(!_0x432757||!_0x432757['with'](l['SheetSkeletonManagerService'])[_0x3d86b6(0x42e)]())return;let {scene:_0x1e391c}=_0x432757,_0x37a311=this['_getDrawingRect']();if(!_0x37a311)return;let _0x4abe4d=this[_0x3d86b6(0x4d2)][_0x3d86b6(0x2c6)](this[_0x3d86b6(0x308)],this[_0x3d86b6(0x363)],this[_0x3d86b6(0x15e)]);if(!_0x4abe4d||!(0x0,n[_0x3d86b6(0x3a7)])(_0x4abe4d['getShapeType']()))return;let _0x8dbdb0=_0x4abe4d[_0x3d86b6(0x3cf)]();if(_0x8dbdb0[_0x3d86b6(0x2b6)]<0x2)return;let _0x28784c=new n[(_0x3d86b6(0x22f))](_0x37a311),_0x2f2cfe=_0x8dbdb0[0x0],_0x9b9006=_0x8dbdb0[_0x8dbdb0[_0x3d86b6(0x2b6)]-0x1],_0x1e2970=_0x28784c[_0x3d86b6(0x3b8)](_0x2f2cfe),_0x59f02f=_0x28784c['localToWorld'](_0x9b9006);this[_0x3d86b6(0x2d3)](_0x1e391c,{..._0x1e2970},!0x0),this[_0x3d86b6(0x2d3)](_0x1e391c,{..._0x59f02f},!0x1);}[_0x5e988f(0x2d3)](_0x18d330,_0x4c33a7,_0x254a0c){const _0x105885=_0x5e988f;if(this[_0x105885(0x15e)]===void 0x0||this['_unitId']===void 0x0||this[_0x105885(0x363)]===void 0x0)return;let _0x5485cb=_0x105885(0x35b)+this[_0x105885(0x308)]+'-'+this[_0x105885(0x363)]+'-'+this['_activeShapeId']+'-'+(_0x254a0c?_0x105885(0x34e):_0x105885(0x4c3)),_0x2ad02d=_0x18d330[_0x105885(0x300)](_0x5485cb);if(_0x2ad02d){_0x2ad02d['transformByState']({'left':_0x4c33a7['x']-n[_0x105885(0x291)][_0x105885(0x3bb)],'top':_0x4c33a7['y']-n[_0x105885(0x291)][_0x105885(0x3bb)]});return;}let _0x11217a=new St(_0x5485cb,{'left':_0x4c33a7['x']-n[_0x105885(0x291)][_0x105885(0x3bb)],'top':_0x4c33a7['y']-n[_0x105885(0x291)]['cxnPointRadius'],'shapeId':this[_0x105885(0x15e)],'unitId':this[_0x105885(0x308)],'subUnitId':this[_0x105885(0x363)],'isStartConnectorPoint':_0x254a0c,'width':n[_0x105885(0x291)][_0x105885(0x3bb)]*0x2,'height':n[_0x105885(0x291)][_0x105885(0x3bb)]*0x2,'zIndex':c['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0});this[_0x105885(0x415)][_0x105885(0x4d5)](_0x11217a),this[_0x105885(0x184)](_0x11217a,_0x18d330,_0x254a0c),_0x18d330['addObject'](_0x11217a,c[_0x105885(0x245)]+0x1);}['_getScrollInfo'](_0x79936c,_0xda13){const _0x53b1d3=_0x5e988f;var _0x171526;let _0x42b6d0={'x':0x0,'y':0x0};if(!_0x79936c||!_0xda13)return _0x42b6d0;let _0x2acefa=this[_0x53b1d3(0x1ea)][_0x53b1d3(0x188)](_0x79936c);if(!_0x2acefa||!_0x2acefa[_0x53b1d3(0x246)](l[_0x53b1d3(0x306)])[_0x53b1d3(0x4a3)](_0xda13))return _0x42b6d0;let _0x4711fb=_0x2acefa[_0x53b1d3(0x246)](l[_0x53b1d3(0x49c)]),_0x45891b=_0x4711fb==null?void 0x0:_0x4711fb['getCurrentScrollState']();if(!_0x45891b)return _0x42b6d0;let _0xbe5fb7=(_0x171526=this[_0x53b1d3(0x3fa)][_0x53b1d3(0x499)](_0x79936c))==null?void 0x0:_0x171526[_0x53b1d3(0x422)](_0xda13);if(!_0xbe5fb7)return _0x42b6d0;let _0x27bf1c=(0x0,l[_0x53b1d3(0x3d7)])(_0x45891b[_0x53b1d3(0x2f2)],_0x45891b[_0x53b1d3(0x239)],_0x2acefa[_0x53b1d3(0x466)],_0xbe5fb7);return _0x27bf1c?{'x':_0x27bf1c[_0x53b1d3(0x2ea)],'y':_0x27bf1c[_0x53b1d3(0x1fd)]}:_0x42b6d0;}[_0x5e988f(0x2ca)](_0x539439,_0x1232e7){const _0x417ccf=_0x5e988f;var _0x1a381e;let _0x82e69a=(_0x1a381e=this[_0x417ccf(0x3fa)][_0x417ccf(0x499)](_0x539439))==null?void 0x0:_0x1a381e[_0x417ccf(0x422)](_0x1232e7);return(_0x82e69a==null?void 0x0:_0x82e69a[_0x417ccf(0x24f)]())??0x1;}['_handleConnectorPointerUp'](_0x258952,_0x3901da,_0x2d223c,_0x50b45d,_0x593996){const _0x3d8b2e=_0x5e988f;this[_0x3d8b2e(0x158)]['unsubscribe'](),this['_cxtHandlerPointerUp']['unsubscribe'](),this[_0x3d8b2e(0x409)][_0x3d8b2e(0x3e5)]();let _0x36aa90=this[_0x3d8b2e(0x2cb)];this[_0x3d8b2e(0x3d6)]['endConnectionDetection']();let _0x3f430c=this[_0x3d8b2e(0x37e)](this['_unitId'],this[_0x3d8b2e(0x363)]),_0x529c5a=this[_0x3d8b2e(0x2ca)](this[_0x3d8b2e(0x308)],this['_subUnitId']),_0x46d86e={'x':_0x2d223c[_0x3d8b2e(0x16e)]/_0x529c5a+_0x3f430c['x'],'y':_0x2d223c[_0x3d8b2e(0x3dc)]/_0x529c5a+_0x3f430c['y']},_0x17c334=_0x36aa90?_0x36aa90[_0x3d8b2e(0x3cb)]:_0x46d86e,_0x12692d=_0x50b45d?this[_0x3d8b2e(0x2d6)][_0x3d8b2e(0x36d)]():this['_activeShapeModel'][_0x3d8b2e(0x448)](),_0x49df67=this[_0x3d8b2e(0x2d6)][_0x3d8b2e(0x2d9)]();_0x12692d?this[_0x3d8b2e(0x3ac)](_0x12692d,_0x17c334,_0x50b45d,_0x36aa90,_0x593996):this[_0x3d8b2e(0x20d)](_0x3901da,_0x17c334,_0x50b45d,_0x36aa90,_0x593996,_0x49df67),this[_0x3d8b2e(0x46c)]=!0x1,this[_0x3d8b2e(0x286)]=!0x1,this['_currentConnectionTarget']=null,_0x258952[_0x3d8b2e(0x4b6)]();}['_handleFreeEndpointPointerUp'](_0x32e9fe,_0x9c3e08,_0x4fe529,_0x369328,_0x4564ca,_0x543c2d){const _0x37f310=_0x5e988f;let _0x2841e9=_0x543c2d===n[_0x37f310(0x49d)][_0x37f310(0x1f2)]||_0x543c2d===n[_0x37f310(0x49d)][_0x37f310(0x183)],_0x1ecaba=_0x4fe529?_0x9c3e08:_0x32e9fe,_0x4a4ac7=_0x4fe529?_0x32e9fe:_0x9c3e08,_0x45ccbf=this[_0x37f310(0x2d6)][_0x37f310(0x3cf)](),_0x15b910=this[_0x37f310(0x2d6)][_0x37f310(0x2d9)](),_0x8a37c7=(0x0,n['isCurvedConnectorShape'])(_0x15b910),_0x569f09=n[_0x37f310(0x22f)][_0x37f310(0x301)](_0x45ccbf,_0x8a37c7),_0x202eed=_0x2841e9?n[_0x37f310(0x22f)]['computeStraightConnectorLayout'](_0x1ecaba,_0x4a4ac7):n[_0x37f310(0x22f)][_0x37f310(0x251)](_0x32e9fe,_0x9c3e08,_0x4fe529,_0x569f09);_0x369328?this[_0x37f310(0x3c3)](_0x202eed,_0x369328,_0x4fe529,_0x4564ca):this['_executeResizeCommand'](_0x202eed,_0x4564ca);}[_0x5e988f(0x3ac)](_0x14bf7f,_0x381c51,_0x3a6c13,_0x16a675,_0x46f508){const _0x29ea8e=_0x5e988f;let _0x2afdbf=this['_getConnectPointInfo'](_0x14bf7f);if(!_0x2afdbf)return;let _0x343db5=_0x16a675?_0x16a675[_0x29ea8e(0x1d9)]:this[_0x29ea8e(0x280)](_0x2afdbf[_0x29ea8e(0x4d6)],_0x381c51),_0x20bc20;if(_0x16a675){let _0x17e0de=this[_0x29ea8e(0x2f6)][_0x29ea8e(0x2fc)]({'unitId':_0x16a675[_0x29ea8e(0x346)],'subUnitId':_0x16a675[_0x29ea8e(0x369)],'drawingId':_0x16a675[_0x29ea8e(0x3cd)]});if(_0x17e0de!=null&&_0x17e0de[_0x29ea8e(0x2fd)]){let {left:_0x50d9bf=0x0,top:_0x571cb6=0x0,width:_0xda89a=0x0,height:_0x134636=0x0,angle:_0x255e5f}=_0x17e0de[_0x29ea8e(0x2fd)];_0x20bc20=(0x0,n['getBasicShapeRotateBound'])({'left':_0x50d9bf,'top':_0x571cb6,'width':_0xda89a,'height':_0x134636},_0x255e5f||0x0);}else _0x20bc20={'left':_0x381c51['x'],'top':_0x381c51['y'],'width':0x0,'height':0x0};}else _0x20bc20={'left':_0x381c51['x'],'top':_0x381c51['y'],'width':0x0,'height':0x0};let _0x239896={'point':_0x381c51,'angle':_0x343db5,'bounds':_0x20bc20},_0x2ce6e4=_0x3a6c13?_0x239896:_0x2afdbf,_0xb8157c=_0x3a6c13?_0x2afdbf:_0x239896,_0x136aa2=this[_0x29ea8e(0x2d6)][_0x29ea8e(0x2d9)](),_0x28947b=(0x0,n[_0x29ea8e(0x48e)])(_0x2ce6e4,_0xb8157c,_0x136aa2);this[_0x29ea8e(0x2d6)][_0x29ea8e(0x40c)]();let _0x45bee7=(0x0,n[_0x29ea8e(0x279)])(_0x28947b,_0x136aa2);_0x16a675?this[_0x29ea8e(0x453)](_0x45bee7,_0x16a675,_0x14bf7f,_0x3a6c13,_0x46f508):this['_executeConnectedRouteResizeCommand'](_0x45bee7,_0x14bf7f,_0x3a6c13,_0x46f508);}[_0x5e988f(0x3c3)](_0x6d59aa,_0x1425b9,_0x1b2584,_0x2b6e5b){const _0x2ff871=_0x5e988f;let _0x6df8e0=this['_activeShapeModel']['getShapeData']()[_0x2ff871(0x316)],_0x2c5c85={..._0x6df8e0},_0xcbda7a={'shapeId':_0x1425b9[_0x2ff871(0x3cd)],'cxnIndex':_0x1425b9[_0x2ff871(0x4dd)]};_0x1b2584?_0x2c5c85[_0x2ff871(0x1e9)]=_0xcbda7a:_0x2c5c85['to']=_0xcbda7a;let _0x170eb0=this[_0x2ff871(0x2d6)][_0x2ff871(0x2d9)](),_0x3956a1=(0x0,n['computeConnectorRouteLayout'])(_0x6d59aa[_0x2ff871(0x243)],_0x170eb0),_0x39af82={'unitId':this[_0x2ff871(0x308)],'subUnitId':this[_0x2ff871(0x363)],'connectorShapeId':this['_activeShapeId'],'width':_0x6d59aa[_0x2ff871(0x391)][_0x2ff871(0x254)],'height':_0x6d59aa[_0x2ff871(0x391)][_0x2ff871(0x457)],'left':_0x6d59aa[_0x2ff871(0x391)]['left'],'top':_0x6d59aa[_0x2ff871(0x391)]['top'],'flipX':_0x6d59aa[_0x2ff871(0x391)][_0x2ff871(0x174)]||!0x1,'flipY':_0x6d59aa[_0x2ff871(0x391)][_0x2ff871(0x19a)]||!0x1,'newAdjustValues':_0x3956a1[_0x2ff871(0x441)],'oldAdjustValues':_0x2b6e5b,'oldRelation':_0x6df8e0,'newRelation':_0x2c5c85,'newLineType':_0x3956a1[_0x2ff871(0x176)],'oldLineType':_0x170eb0};this[_0x2ff871(0x263)][_0x2ff871(0x32b)](i[_0x2ff871(0x2c2)]['id'],_0x39af82);}[_0x5e988f(0x1c4)](_0x4f9501,_0xa75e43){const _0x539492=_0x5e988f;let _0x22a493=this[_0x539492(0x2d6)][_0x539492(0x2d9)](),_0x3cb21e=(0x0,n[_0x539492(0x279)])(_0x4f9501[_0x539492(0x243)],_0x22a493),_0x22e860={'unitId':this[_0x539492(0x308)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x539492(0x15e)],'width':_0x4f9501[_0x539492(0x391)][_0x539492(0x254)],'height':_0x4f9501[_0x539492(0x391)][_0x539492(0x457)],'left':_0x4f9501[_0x539492(0x391)][_0x539492(0x3d8)],'top':_0x4f9501['worldRect'][_0x539492(0x480)],'flipX':_0x4f9501['worldRect'][_0x539492(0x174)]||!0x1,'flipY':_0x4f9501['worldRect'][_0x539492(0x19a)]||!0x1,'angle':_0x4f9501[_0x539492(0x391)][_0x539492(0x1d9)]||0x0,'newAdjustValues':_0x3cb21e[_0x539492(0x441)],'oldAdjustValues':_0xa75e43,'newLineType':_0x3cb21e['lineType'],'oldLineType':_0x22a493};this[_0x539492(0x263)][_0x539492(0x32b)](i['UpdateLineShapeResizeCommand']['id'],_0x22e860);}[_0x5e988f(0x453)](_0x9e1e70,_0x53bfc8,_0x59bf1f,_0x77561f,_0x7c2780){const _0x23ad3b=_0x5e988f;let _0x5baa51=this[_0x23ad3b(0x2d6)][_0x23ad3b(0x2e3)]()[_0x23ad3b(0x316)],_0x5d2e53={..._0x5baa51},_0x5c7d63={'shapeId':_0x53bfc8[_0x23ad3b(0x3cd)],'cxnIndex':_0x53bfc8['cxnIndex']};_0x77561f?(_0x5d2e53[_0x23ad3b(0x1e9)]=_0x5c7d63,_0x5d2e53['to']=_0x59bf1f):(_0x5d2e53[_0x23ad3b(0x1e9)]=_0x59bf1f,_0x5d2e53['to']=_0x5c7d63);let _0x371bc7={'unitId':this[_0x23ad3b(0x308)],'subUnitId':this[_0x23ad3b(0x363)],'connectorShapeId':this[_0x23ad3b(0x15e)],'width':_0x9e1e70[_0x23ad3b(0x391)][_0x23ad3b(0x254)],'height':_0x9e1e70[_0x23ad3b(0x391)]['height'],'left':_0x9e1e70[_0x23ad3b(0x391)][_0x23ad3b(0x3d8)],'top':_0x9e1e70[_0x23ad3b(0x391)][_0x23ad3b(0x480)],'flipX':_0x9e1e70[_0x23ad3b(0x391)]['flipX']||!0x1,'flipY':_0x9e1e70[_0x23ad3b(0x391)]['flipY']||!0x1,'oldAdjustValues':_0x7c2780,'newAdjustValues':_0x9e1e70[_0x23ad3b(0x441)],'newLineType':_0x9e1e70['lineType'],'rotation':_0x9e1e70[_0x23ad3b(0x324)],'oldRelation':_0x5baa51,'newRelation':_0x5d2e53};this['_commandService'][_0x23ad3b(0x32b)](i[_0x23ad3b(0x2c2)]['id'],_0x371bc7);}[_0x5e988f(0x47e)](_0x33ff7d,_0x324107,_0x372ef5,_0x59dfef){const _0x4b400c=_0x5e988f;let _0x1697ab=this[_0x4b400c(0x2d6)][_0x4b400c(0x2e3)]()['relation'],_0x23b792={};_0x372ef5?(_0x23b792['to']=_0x324107,_0x23b792[_0x4b400c(0x1e9)]=void 0x0):(_0x23b792['from']=_0x324107,_0x23b792['to']=void 0x0);let _0x57dc64={'unitId':this[_0x4b400c(0x308)],'subUnitId':this[_0x4b400c(0x363)],'connectorShapeId':this[_0x4b400c(0x15e)],'width':_0x33ff7d['worldRect'][_0x4b400c(0x254)],'height':_0x33ff7d[_0x4b400c(0x391)]['height'],'left':_0x33ff7d[_0x4b400c(0x391)]['left'],'top':_0x33ff7d[_0x4b400c(0x391)][_0x4b400c(0x480)],'flipX':_0x33ff7d[_0x4b400c(0x391)][_0x4b400c(0x174)]||!0x1,'flipY':_0x33ff7d[_0x4b400c(0x391)][_0x4b400c(0x19a)]||!0x1,'oldAdjustValues':_0x59dfef,'newAdjustValues':_0x33ff7d[_0x4b400c(0x441)],'newLineType':_0x33ff7d['lineType'],'rotation':_0x33ff7d[_0x4b400c(0x324)],'oldRelation':_0x1697ab,'newRelation':_0x23b792};this[_0x4b400c(0x263)][_0x4b400c(0x32b)](i[_0x4b400c(0x2c2)]['id'],_0x57dc64);}[_0x5e988f(0x184)](_0x546749,_0x56bc19,_0x5bc6cc){const _0x2034de=_0x5e988f;this[_0x2034de(0x36f)]((0x0,a[_0x2034de(0x1cc)])(_0x546749['onPointerDown$']['subscribeEvent']((_0x31fa1f,_0x5db79c)=>{const _0x3657c6=_0x2034de;let _0x14eff9=_0x546749[_0x3657c6(0x22d)]();if(this[_0x3657c6(0x2d6)]=this[_0x3657c6(0x4d2)][_0x3657c6(0x2c6)](_0x14eff9['unitId'],_0x14eff9['subUnitId'],_0x14eff9[_0x3657c6(0x456)]),!this[_0x3657c6(0x2d6)])return;let _0x4411d6={};this[_0x3657c6(0x2d6)][_0x3657c6(0x4bf)]()['forEach'](_0x3b25d7=>{const _0x53d50f=_0x3657c6;let _0xc28858=this[_0x53d50f(0x2d6)]['getAdjustValueByName'](_0x3b25d7);_0xc28858!==void 0x0&&(_0x4411d6[_0x3b25d7]=_0xc28858);});let _0x2b1c74=this[_0x3657c6(0x340)]();if(!_0x2b1c74)return;this[_0x3657c6(0x2c3)]={..._0x2b1c74};let _0x5756fc=new n[(_0x3657c6(0x22f))](this[_0x3657c6(0x2c3)]),_0x538a11=(0x0,s[_0x3657c6(0x278)])({'unitId':this[_0x3657c6(0x308)],'subUnitId':this[_0x3657c6(0x363)],'drawingId':this[_0x3657c6(0x15e)]}),_0x3405f2=_0x56bc19[_0x3657c6(0x300)](_0x538a11);this[_0x3657c6(0x46c)]=!0x0,_0x56bc19[_0x3657c6(0x3a3)](),this[_0x3657c6(0x3d6)][_0x3657c6(0x477)](_0x56bc19,this[_0x3657c6(0x308)],this[_0x3657c6(0x363)],this[_0x3657c6(0x15e)]),this[_0x3657c6(0x2cb)]=null;let _0x2c0fa1=this[_0x3657c6(0x2d6)]['getConnectorLinePoints'](),_0x293c12=_0x2c0fa1[0x0],_0x1c4ab2=_0x2c0fa1[_0x2c0fa1[_0x3657c6(0x2b6)]-0x1],_0x1cc3db=_0x5bc6cc?_0x5756fc[_0x3657c6(0x3b8)](_0x1c4ab2):_0x5756fc['localToWorld'](_0x293c12);this[_0x3657c6(0x158)]=_0x56bc19[_0x3657c6(0x1c2)][_0x3657c6(0x194)]((_0x72b91b,_0x343cef)=>{const _0x45ede2=_0x3657c6;if(!this['_isConnecting']||!this[_0x45ede2(0x2d6)])return;this[_0x45ede2(0x286)]||=(this['_sheetShapeAdjustController'][_0x45ede2(0x274)](),this[_0x45ede2(0x2d6)][_0x45ede2(0x299)](),!0x0);let _0xe01215=this['_getScrollInfo'](this['_unitId'],this[_0x45ede2(0x363)]),_0x41ded1=this[_0x45ede2(0x2ca)](this[_0x45ede2(0x308)],this[_0x45ede2(0x363)]),_0xf3e7f6={'x':_0x72b91b[_0x45ede2(0x16e)]/_0x41ded1+_0xe01215['x'],'y':_0x72b91b['offsetY']/_0x41ded1+_0xe01215['y']},_0x2f53bc=this['_sheetBasicShapeConnectionPointController']['updateConnectionDetection'](_0xf3e7f6);if(_0x2f53bc){let {shapeId:_0xfee07a,unitId:_0x5638a3,subUnitId:_0x173e0a}=_0x2f53bc;if(_0xfee07a&&_0x5638a3&&_0x173e0a){let _0x326863=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x5638a3,'subUnitId':_0x173e0a,'drawingId':_0xfee07a});_0x2f53bc[_0x45ede2(0x1d9)]=(_0x56bc19[_0x45ede2(0x300)](_0x326863)['angle']||0x0)+_0x2f53bc[_0x45ede2(0x1d9)];}}this[_0x45ede2(0x2cb)]=_0x2f53bc;let _0x4d0572=_0x5bc6cc?this['_activeShapeModel']['getEndConnectInfo']():this[_0x45ede2(0x2d6)][_0x45ede2(0x448)]();_0x4d0572?this[_0x45ede2(0x1a6)](_0x4d0572,_0xf3e7f6,_0x5bc6cc,_0x3405f2,_0x546749):this[_0x45ede2(0x465)](_0xf3e7f6,_0x1cc3db,_0x5bc6cc,_0x3405f2,_0x546749);}),this[_0x3657c6(0x342)]=_0x56bc19[_0x3657c6(0x4b8)][_0x3657c6(0x194)]((_0x56ba77,_0x1ecd03)=>{const _0x31d0d2=_0x3657c6;this[_0x31d0d2(0x2e1)](_0x56bc19,_0x1cc3db,_0x56ba77,_0x5bc6cc,_0x4411d6);}),_0x5db79c[_0x3657c6(0x238)]();})));}[_0x5e988f(0x46f)](_0x4c27b8,_0x8a83a0,_0xa5cdbb){const _0x5a2e0d=_0x5e988f;let _0x5d8bc1=this[_0x5a2e0d(0x4d2)][_0x5a2e0d(0x3f0)](_0x4c27b8,_0x8a83a0,_0xa5cdbb);if(!_0x5d8bc1||_0x5d8bc1['length']===0x0)return;let _0xe43cae=this[_0x5a2e0d(0x1ea)][_0x5a2e0d(0x188)](_0x4c27b8);if(!_0xe43cae)return;let {scene:_0x489c0c}=_0xe43cae;for(let _0xe0ae87 of _0x5d8bc1){let _0x2b6499=_0xe0ae87[_0x5a2e0d(0x2ac)],_0x2bf70e=this['_sheetsShapeService'][_0x5a2e0d(0x2c6)](_0x4c27b8,_0x8a83a0,_0x2b6499);if(!_0x2bf70e)continue;let _0x596c9a=_0x2bf70e['getStartConnectInfo'](),_0x26c1ef=_0x2bf70e[_0x5a2e0d(0x36d)](),_0x5d0cbe=(_0x596c9a==null?void 0x0:_0x596c9a[_0x5a2e0d(0x3cd)])===_0xa5cdbb,_0x4b15d3=(0x0,s[_0x5a2e0d(0x278)])({'unitId':_0x4c27b8,'subUnitId':_0x8a83a0,'drawingId':_0x2b6499}),_0x289c56=_0x489c0c['getObjectIncludeInGroup'](_0x4b15d3);if(!_0x289c56)continue;let _0x5d7735=this['_drawingManagerService'][_0x5a2e0d(0x2fc)]({'unitId':_0x4c27b8,'subUnitId':_0x8a83a0,'drawingId':_0x2b6499});_0x5d7735!=null&&_0x5d7735[_0x5a2e0d(0x2fd)]&&(_0x596c9a&&_0x26c1ef?this[_0x5a2e0d(0x31e)](_0x4c27b8,_0x8a83a0,_0x2b6499,_0x2bf70e,_0x596c9a,_0x26c1ef,_0x289c56):this['_moveConnectorWithShape'](_0x4c27b8,_0x8a83a0,_0x2b6499,_0x2bf70e,_0x5d0cbe?_0x596c9a:_0x26c1ef,_0x5d0cbe,_0x5d7735,_0x289c56));}}[_0x5e988f(0x31e)](_0xdf3cac,_0xce247,_0x16e1d5,_0x4e7528,_0x509dfc,_0x5c3676,_0x1690fc){const _0x36a291=_0x5e988f;let _0x416069=this[_0x36a291(0x308)],_0x48dea8=this[_0x36a291(0x363)];this[_0x36a291(0x308)]=_0xdf3cac,this[_0x36a291(0x363)]=_0xce247;let _0x3ed6ae=this[_0x36a291(0x1b0)](_0x509dfc),_0x5edd82=this[_0x36a291(0x1b0)](_0x5c3676);if(this[_0x36a291(0x308)]=_0x416069,this[_0x36a291(0x363)]=_0x48dea8,!_0x3ed6ae||!_0x5edd82)return;let _0x4320a0=_0x4e7528['getShapeType'](),_0xf7a18e=(0x0,n[_0x36a291(0x48e)])(_0x3ed6ae,_0x5edd82,_0x4320a0);_0xf7a18e&&_0x4e7528[_0x36a291(0x44d)](_0xf7a18e);let _0x186b8a=(0x0,n['computeConnectorRouteLayout'])(_0xf7a18e,_0x4320a0);_0x186b8a[_0x36a291(0x176)]!==_0x4320a0&&_0x4e7528[_0x36a291(0x3ec)](_0x186b8a[_0x36a291(0x176)]),_0x4e7528[_0x36a291(0x299)]();for(let [_0x16fe9c,_0x42ecf2]of Object[_0x36a291(0x288)](_0x186b8a[_0x36a291(0x441)]))_0x4e7528[_0x36a291(0x431)](_0x16fe9c,_0x42ecf2);_0x4e7528['updateContext']({'width':_0x186b8a[_0x36a291(0x391)][_0x36a291(0x254)],'height':_0x186b8a[_0x36a291(0x391)][_0x36a291(0x457)]}),_0x1690fc[_0x36a291(0x49b)]({'flipX':_0x186b8a['worldRect']['flipX'],'flipY':_0x186b8a[_0x36a291(0x391)][_0x36a291(0x19a)],'left':_0x186b8a[_0x36a291(0x391)][_0x36a291(0x3d8)],'top':_0x186b8a[_0x36a291(0x391)][_0x36a291(0x480)],'width':_0x186b8a[_0x36a291(0x391)]['width'],'height':_0x186b8a[_0x36a291(0x391)][_0x36a291(0x457)],'angle':_0x186b8a[_0x36a291(0x324)]}),_0x4e7528['removeLinePoints']();}[_0x5e988f(0x2f5)](_0x813df4,_0x774ab9,_0x2bffd1,_0x557b53,_0x574d2e,_0x4bd157,_0x50c0c8,_0x1f5be9){const _0x305f73=_0x5e988f;let _0x506195=this['_unitId'],_0x38f68e=this['_subUnitId'];this[_0x305f73(0x308)]=_0x813df4,this[_0x305f73(0x363)]=_0x774ab9;let _0x49d28b=this[_0x305f73(0x1b0)](_0x574d2e);if(this[_0x305f73(0x308)]=_0x506195,this[_0x305f73(0x363)]=_0x38f68e,!_0x49d28b)return;let {left:_0x1b6e32=0x0,top:_0x34183d=0x0,width:_0x29105d=0x0,height:_0x519d50=0x0,flipX:_0x507167=!0x1,flipY:_0x4597d3=!0x1}=_0x50c0c8[_0x305f73(0x2fd)],_0x3b594d=_0x557b53[_0x305f73(0x3cf)]();if(_0x3b594d[_0x305f73(0x2b6)]<0x2)return;let _0x328498=new n[(_0x305f73(0x22f))]({'left':_0x1b6e32,'top':_0x34183d,'width':_0x29105d,'height':_0x519d50,'flipX':_0x507167,'flipY':_0x4597d3}),_0x53c276=_0x4bd157?_0x3b594d[_0x3b594d[_0x305f73(0x2b6)]-0x1]:_0x3b594d[0x0],_0x513bdb=_0x328498[_0x305f73(0x3b8)](_0x53c276),_0x33e7e3=n[_0x305f73(0x22f)][_0x305f73(0x251)](_0x513bdb,_0x49d28b[_0x305f73(0x4d6)],!_0x4bd157);_0x1f5be9[_0x305f73(0x49b)]({'flipX':_0x33e7e3[_0x305f73(0x391)][_0x305f73(0x174)],'flipY':_0x33e7e3[_0x305f73(0x391)][_0x305f73(0x19a)],'left':_0x33e7e3[_0x305f73(0x391)][_0x305f73(0x3d8)],'top':_0x33e7e3['worldRect']['top'],'width':_0x33e7e3[_0x305f73(0x391)][_0x305f73(0x254)],'height':_0x33e7e3['worldRect'][_0x305f73(0x457)],'angle':_0x33e7e3['worldRect']['angle']}),_0x1f5be9['makeDirty'](!0x0);}[_0x5e988f(0x1d5)](){const _0x4cd3cf=_0x5e988f;this[_0x4cd3cf(0x415)][_0x4cd3cf(0x2b6)]!==0x0&&(this[_0x4cd3cf(0x415)][_0x4cd3cf(0x424)](_0x391580=>{const _0xb2772d=_0x4cd3cf;_0x391580[_0xb2772d(0x4c1)]();}),this[_0x4cd3cf(0x415)]=[]);}['_registerDrawingMoveHandler'](){const _0x5209a8=_0x5e988f;let _0x3fdb5f=this[_0x5209a8(0x3fa)]['getCurrentTypeOfUnit$'](a[_0x5209a8(0x15d)][_0x5209a8(0x2ba)]);this['disposeWithMe'](_0x3fdb5f[_0x5209a8(0x3d3)]((0x0,u[_0x5209a8(0x430)])(_0x116db5=>_0x116db5?_0x116db5[_0x5209a8(0x18a)][_0x5209a8(0x3d3)]((0x0,u[_0x5209a8(0x430)])(_0x3add11=>{const _0x5d6042=_0x5209a8;if(!_0x3add11)return u[_0x5d6042(0x4c6)];let _0x2cfdbe=_0x116db5[_0x5d6042(0x39d)](),_0x164fd6=this[_0x5d6042(0x1ea)]['getRenderUnitById'](_0x2cfdbe),_0x43deb4=_0x164fd6==null?void 0x0:_0x164fd6[_0x5d6042(0x466)];return _0x43deb4?(0x0,u['of'])(_0x43deb4):u[_0x5d6042(0x4c6)];})):u[_0x5209a8(0x4c6)]))[_0x5209a8(0x24c)](_0x331155=>{const _0x45cdd6=_0x5209a8;let _0x31f184=_0x331155['getTransformerByCreate']();this['disposeWithMe'](_0x331155[_0x45cdd6(0x1c2)][_0x45cdd6(0x194)](_0x3c0685=>{const _0x2b6225=_0x45cdd6;this[_0x2b6225(0x317)]&&this[_0x2b6225(0x15e)]&&this[_0x2b6225(0x1d5)]();})),this['disposeWithMe'](_0x31f184[_0x45cdd6(0x2a4)][_0x45cdd6(0x24c)](_0x13ccc7=>{const _0x31dc33=_0x45cdd6;let {objects:_0x86892}=_0x13ccc7;this[_0x31dc33(0x1d5)](),_0x86892!==null&&_0x86892[_0x31dc33(0x4bd)]===0x1&&_0x86892['values']()[_0x31dc33(0x3b7)]()[_0x31dc33(0x321)]instanceof D&&(this['_isDrawingShapePointDown']=!0x0);})),this[_0x45cdd6(0x36f)](_0x31f184[_0x45cdd6(0x2e7)][_0x45cdd6(0x24c)](_0x20c08f=>{const _0x3ac0ce=_0x45cdd6;this[_0x3ac0ce(0x317)]&&this[_0x3ac0ce(0x1d5)]();})),this[_0x45cdd6(0x36f)](_0x331155[_0x45cdd6(0x4b8)][_0x45cdd6(0x194)](()=>{const _0x2637de=_0x45cdd6;this[_0x2637de(0x317)]&&(this[_0x2637de(0x317)]=!0x1,this[_0x2637de(0x2da)]());})),this['disposeWithMe'](_0x31f184[_0x45cdd6(0x403)][_0x45cdd6(0x24c)](()=>{const _0xeb12fd=_0x45cdd6;this[_0xeb12fd(0x308)]&&this[_0xeb12fd(0x363)]&&this['_activeShapeId']&&this[_0xeb12fd(0x2f6)]['getDrawingByParam']({'unitId':this['_unitId'],'subUnitId':this[_0xeb12fd(0x363)],'drawingId':this[_0xeb12fd(0x15e)]})&&(this[_0xeb12fd(0x1d5)](),this[_0xeb12fd(0x2da)]());}));}));}[_0x5e988f(0x3fc)](){const _0xba7d67=_0x5e988f;this[_0xba7d67(0x36f)](this[_0xba7d67(0x2f6)]['focus$'][_0xba7d67(0x24c)](_0x82b6a3=>{const _0x3e6af1=_0xba7d67;if(_0x82b6a3[_0x3e6af1(0x2b6)]===0x1){let _0x1336d6=_0x82b6a3[0x0];if(_0x1336d6[_0x3e6af1(0x2aa)]===a['DrawingTypeEnum'][_0x3e6af1(0x1d7)]){let _0x3770ce=this[_0x3e6af1(0x4d2)][_0x3e6af1(0x2c6)](_0x1336d6[_0x3e6af1(0x346)],_0x1336d6['subUnitId'],_0x1336d6[_0x3e6af1(0x456)]);if(_0x3770ce&&(0x0,n[_0x3e6af1(0x3a7)])(_0x3770ce[_0x3e6af1(0x2d9)]())){this[_0x3e6af1(0x15e)]=_0x1336d6[_0x3e6af1(0x456)],this[_0x3e6af1(0x308)]=_0x1336d6[_0x3e6af1(0x346)],this[_0x3e6af1(0x363)]=_0x1336d6[_0x3e6af1(0x369)],this[_0x3e6af1(0x1d5)](),this['_addShapeConnectorHandlerObjects']();return;}}}this['_activeShapeId']=void 0x0,this[_0x3e6af1(0x308)]=void 0x0,this[_0x3e6af1(0x363)]=void 0x0,this[_0x3e6af1(0x1d5)]();})),this['disposeWithMe'](this[_0xba7d67(0x2f6)][_0xba7d67(0x34d)][_0xba7d67(0x24c)](_0x22506d=>{const _0xe2d800=_0xba7d67;if(_0x22506d['length']===0x1){var _0x2c670b;let _0x53cf2b=_0x22506d[0x0],_0x15cd50=(_0x2c670b=this['_drawingManagerService'][_0xe2d800(0x2fc)](_0x53cf2b))==null?void 0x0:_0x2c670b[_0xe2d800(0x2aa)];_0x15cd50===a[_0xe2d800(0x181)]['DRAWING_SHAPE']&&_0x53cf2b[_0xe2d800(0x456)]===this[_0xe2d800(0x15e)]?(this[_0xe2d800(0x1d5)](),this[_0xe2d800(0x2da)]()):!this['_activeShapeId']&&_0x15cd50===a[_0xe2d800(0x181)][_0xe2d800(0x1d7)]&&this[_0xe2d800(0x46f)](_0x53cf2b[_0xe2d800(0x346)],_0x53cf2b['subUnitId'],_0x53cf2b[_0xe2d800(0x456)]);}})),this[_0xba7d67(0x36f)](this[_0xba7d67(0x2f6)]['remove$'][_0xba7d67(0x24c)](_0x4ed586=>{const _0x5beaea=_0xba7d67;for(let _0x29c8dc of _0x4ed586){let {drawingId:_0x34f080}=_0x29c8dc;if(this['_activeShapeId']===_0x34f080){this[_0x5beaea(0x341)]();return;}}}));}[_0x5e988f(0x1a6)](_0x483359,_0x480191,_0x16e93e,_0x2740bd,_0x19ba8d){const _0x5d2939=_0x5e988f;var _0x86f74e;if(!this[_0x5d2939(0x2d6)])return;let _0x1619e7=this[_0x5d2939(0x1b0)](_0x483359);if(!_0x1619e7)return;let _0x4566e3=this[_0x5d2939(0x2cb)]?this[_0x5d2939(0x2cb)][_0x5d2939(0x3cb)]:_0x480191,_0x3d117b=this[_0x5d2939(0x2cb)]?this[_0x5d2939(0x2cb)][_0x5d2939(0x1d9)]:this[_0x5d2939(0x280)](_0x1619e7[_0x5d2939(0x4d6)],_0x4566e3),_0x548899;if(this[_0x5d2939(0x2cb)]){let _0x31249c=this[_0x5d2939(0x2f6)]['getDrawingByParam']({'unitId':this['_currentConnectionTarget'][_0x5d2939(0x346)],'subUnitId':this[_0x5d2939(0x2cb)][_0x5d2939(0x369)],'drawingId':this[_0x5d2939(0x2cb)][_0x5d2939(0x3cd)]});if(_0x31249c!=null&&_0x31249c[_0x5d2939(0x2fd)]){let {left:_0x20487b=0x0,top:_0x367f04=0x0,width:_0x59dfec=0x0,height:_0x540b7a=0x0,angle:_0x1be042}=_0x31249c[_0x5d2939(0x2fd)];_0x548899=(0x0,n[_0x5d2939(0x168)])({'left':_0x20487b,'top':_0x367f04,'width':_0x59dfec,'height':_0x540b7a},_0x1be042||0x0);}else _0x548899={'left':_0x4566e3['x'],'top':_0x4566e3['y'],'width':0x0,'height':0x0};}else _0x548899={'left':_0x4566e3['x'],'top':_0x4566e3['y'],'width':0x0,'height':0x0};let _0x5462f0={'point':_0x4566e3,'angle':_0x3d117b,'bounds':_0x548899},_0x4d5e3c=_0x16e93e?_0x5462f0:_0x1619e7,_0x3c3c3d=_0x16e93e?_0x1619e7:_0x5462f0,_0x22b556=this[_0x5d2939(0x2d6)]['getShapeType'](),_0x5244b5=(0x0,n['routeConnectorLineShape'])(_0x4d5e3c,_0x3c3c3d,_0x22b556);_0x5244b5&&this['_activeShapeModel'][_0x5d2939(0x44d)](_0x5244b5);let _0x1c2ca9=(0x0,n[_0x5d2939(0x279)])(_0x5244b5,_0x22b556);_0x1c2ca9[_0x5d2939(0x176)]!==_0x22b556&&this[_0x5d2939(0x2d6)]['changeShapeType'](_0x1c2ca9[_0x5d2939(0x176)]);for(let [_0x492883,_0x370af5]of Object['entries'](_0x1c2ca9[_0x5d2939(0x441)]))this[_0x5d2939(0x2d6)]['setAdjustValueByName'](_0x492883,_0x370af5);this[_0x5d2939(0x2d6)][_0x5d2939(0x162)]({'width':_0x1c2ca9[_0x5d2939(0x391)][_0x5d2939(0x254)],'height':_0x1c2ca9[_0x5d2939(0x391)][_0x5d2939(0x457)]}),_0x2740bd[_0x5d2939(0x49b)]({'flipX':_0x1c2ca9[_0x5d2939(0x391)][_0x5d2939(0x174)],'flipY':_0x1c2ca9['worldRect'][_0x5d2939(0x19a)],'left':_0x1c2ca9[_0x5d2939(0x391)]['left'],'top':_0x1c2ca9[_0x5d2939(0x391)][_0x5d2939(0x480)],'width':_0x1c2ca9['worldRect']['width'],'height':_0x1c2ca9[_0x5d2939(0x391)]['height'],'angle':_0x1c2ca9[_0x5d2939(0x324)]}),_0x2740bd[_0x5d2939(0x213)](!0x0);let _0x12425a=((_0x86f74e=this[_0x5d2939(0x2cb)])==null?void 0x0:_0x86f74e['worldPoint'])??_0x480191;_0x19ba8d['transformByState']({'left':_0x12425a['x']-n[_0x5d2939(0x291)][_0x5d2939(0x3bb)],'top':_0x12425a['y']-n['ShapeDefaultConfig'][_0x5d2939(0x3bb)]});}['_handleFreeEndpointMove'](_0x420120,_0xa3c8fa,_0x2bc4ef,_0x5c68f4,_0x562acb){const _0x2620c1=_0x5e988f;var _0xfe70c7,_0x18dfa7;let _0x43a498=((_0xfe70c7=this['_currentConnectionTarget'])==null?void 0x0:_0xfe70c7[_0x2620c1(0x3cb)])??_0x420120,_0x5d95b1=n[_0x2620c1(0x22f)]['computeConnectorResizeLayout'](_0xa3c8fa,_0x43a498,_0x2bc4ef);_0x5c68f4[_0x2620c1(0x49b)]({'flipX':_0x5d95b1['worldRect'][_0x2620c1(0x174)],'flipY':_0x5d95b1['worldRect'][_0x2620c1(0x19a)],'left':_0x5d95b1['worldRect'][_0x2620c1(0x3d8)],'top':_0x5d95b1[_0x2620c1(0x391)][_0x2620c1(0x480)],'width':_0x5d95b1[_0x2620c1(0x391)][_0x2620c1(0x254)],'height':_0x5d95b1[_0x2620c1(0x391)][_0x2620c1(0x457)],'angle':_0x5d95b1[_0x2620c1(0x391)][_0x2620c1(0x1d9)]});let _0x4f54ee=((_0x18dfa7=this[_0x2620c1(0x2cb)])==null?void 0x0:_0x18dfa7['worldPoint'])??_0x420120;_0x562acb['transformByState']({'left':_0x4f54ee['x']-n[_0x2620c1(0x291)][_0x2620c1(0x3bb)],'top':_0x4f54ee['y']-n[_0x2620c1(0x291)][_0x2620c1(0x3bb)]});}[_0x5e988f(0x1b0)](_0x162b2f){const _0x21736f=_0x5e988f;if(!this[_0x21736f(0x308)]||!this['_subUnitId'])return null;let {shapeId:_0x5ee8b7,cxnIndex:_0x54620a}=_0x162b2f,_0x2b3681=this['_sheetsShapeService']['getShapeModel'](this[_0x21736f(0x308)],this[_0x21736f(0x363)],_0x5ee8b7);if(!_0x2b3681)return null;let _0xe31ae1=this[_0x21736f(0x2f6)][_0x21736f(0x2fc)]({'unitId':this[_0x21736f(0x308)],'subUnitId':this[_0x21736f(0x363)],'drawingId':_0x5ee8b7});if(!(_0xe31ae1!=null&&_0xe31ae1['transform']))return null;let {left:_0x2575b7=0x0,top:_0x7926d3=0x0,width:_0x12b583=0x0,height:_0x20a9af=0x0,flipX:_0xe3a411=!0x1,flipY:_0x36129e=!0x1,angle:_0x2d7d}=_0xe31ae1['transform'];_0x2b3681[_0x21736f(0x162)]({'width':_0x12b583,'height':_0x20a9af});let _0xa0728b=_0x2b3681[_0x21736f(0x4b2)]()[_0x21736f(0x2d1)](_0x2f2b06=>_0x2f2b06[_0x21736f(0x37a)]===_0x54620a);if(!_0xa0728b)return null;let _0x41c8cc=_0xe3a411?_0x12b583-_0xa0728b['x']:_0xa0728b['x'],_0x1fc421=_0x36129e?_0x20a9af-_0xa0728b['y']:_0xa0728b['y'];if(_0x2d7d!==0x0&&_0x2d7d!=null){let _0x346584=_0x2d7d*Math['PI']/0xb4,_0x205840=Math['cos'](_0x346584),_0x2857b6=Math['sin'](_0x346584),_0x5e64f2=_0x12b583/0x2,_0x5b4f0b=_0x20a9af/0x2,_0xde88ed=_0x41c8cc-_0x5e64f2,_0x29adbd=_0x1fc421-_0x5b4f0b;_0x41c8cc=_0x5e64f2+_0xde88ed*_0x205840-_0x29adbd*_0x2857b6,_0x1fc421=_0x5b4f0b+_0xde88ed*_0x2857b6+_0x29adbd*_0x205840;}_0x41c8cc+=_0x2575b7,_0x1fc421+=_0x7926d3;let _0x1eae8f=_0xa0728b[_0x21736f(0x47d)]/0xea60;_0xe3a411&&(_0x1eae8f=0xb4-_0x1eae8f),_0x36129e&&(_0x1eae8f=-_0x1eae8f),_0x1eae8f+=_0x2d7d||0x0,_0x1eae8f=(_0x1eae8f%0x168+0x168)%0x168;let _0x15bfb2=(0x0,n[_0x21736f(0x168)])({'left':_0x2575b7,'top':_0x7926d3,'width':_0x12b583,'height':_0x20a9af},_0x2d7d||0x0);return{'point':{'x':_0x41c8cc,'y':_0x1fc421},'angle':_0x1eae8f,'bounds':_0x15bfb2};}['_calculateFreeEndpointAngle'](_0x184455,_0x416958){const _0x728004=_0x5e988f;let _0xbb8903=_0x416958['x']-_0x184455['x'],_0x52d3f8=_0x416958['y']-_0x184455['y'];return Math['abs'](_0xbb8903)>=Math[_0x728004(0x4c0)](_0x52d3f8)?_0xbb8903>=0x0?0xb4:0x0:_0x52d3f8>=0x0?0x10e:0x5a;}['_reset'](){const _0x4ecd95=_0x5e988f;this[_0x4ecd95(0x15e)]=void 0x0,this[_0x4ecd95(0x308)]=void 0x0,this[_0x4ecd95(0x363)]=void 0x0,this[_0x4ecd95(0x1d5)]();}[_0x5e988f(0x4c1)](){const _0x4777b8=_0x5e988f;this['_clearShapeConnectorHandlerObjects'](),super[_0x4777b8(0x4c1)]();}};Ct=A([k(0x1,a['ICommandService']),k(0x2,c[_0x5e988f(0x18e)]),k(0x3,s[_0x5e988f(0x1bd)]),k(0x4,a[_0x5e988f(0x4c8)]),k(0x5,(0x0,a['Inject'])(i[_0x5e988f(0x44c)])),k(0x6,(0x0,a['Inject'])(M)),k(0x7,(0x0,a[_0x5e988f(0x334)])(K))],Ct);let J=class extends a[_0x5e988f(0x302)]{constructor(_0x31f674,_0x506bfd,_0x19cc65){const _0x33f1a7=_0x5e988f;super(),this[_0x33f1a7(0x377)]=_0x31f674,this[_0x33f1a7(0x2f6)]=_0x506bfd,this['_shapeRenderController']=_0x19cc65,this[_0x33f1a7(0x4b3)]();}[_0x5e988f(0x4b3)](){const _0x5f18d3=_0x5e988f;this['disposeWithMe'](this[_0x5f18d3(0x377)]['interceptor'][_0x5f18d3(0x298)](this['_sheetPrintInterceptorService'][_0x5f18d3(0x45f)][_0x5f18d3(0x37f)]()[_0x5f18d3(0x1a9)],{'handler':(_0x42cde0,_0x2e9a8f,_0x1e7077)=>{const _0x331d5d=_0x5f18d3;var _0x17572a;let {unitId:_0x10dbde,subUnitId:_0x132478,scene:_0x5e221d,resourceCollector:_0x10a341}=_0x2e9a8f,_0x301f5d=(_0x17572a=this[_0x331d5d(0x2f6)][_0x331d5d(0x180)](_0x10dbde))==null?void 0x0:_0x17572a[_0x132478];return _0x301f5d==null||_0x301f5d['order']['forEach'](_0x1bc33b=>{const _0x31d27e=_0x331d5d;let _0x2f34ed=_0x301f5d[_0x31d27e(0x381)][_0x1bc33b];_0x2f34ed[_0x31d27e(0x2aa)]===a[_0x31d27e(0x181)][_0x31d27e(0x1d7)]&&!_0x2f34ed[_0x31d27e(0x404)]&&this[_0x31d27e(0x257)][_0x31d27e(0x461)](_0x2f34ed,_0x5e221d,{'resourceCollector':_0x10a341});}),_0x1e7077(_0x42cde0);}}));}};J=A([k(0x0,(0x0,a[_0x5e988f(0x334)])(l['SheetPrintInterceptorService'])),k(0x1,s[_0x5e988f(0x1bd)]),k(0x2,(0x0,a['Inject'])(j))],J);let Y=class extends a[_0x5e988f(0x302)]{constructor(_0x2cdb2a,_0x5912be,_0x524ddc){const _0x2f0361=_0x5e988f;super(),this[_0x2f0361(0x263)]=_0x2cdb2a,this[_0x2f0361(0x1fb)]=_0x5912be,this[_0x2f0361(0x1f9)]=_0x524ddc,this[_0x2f0361(0x1be)]();}[_0x5e988f(0x1be)](){const _0x41d333=_0x5e988f;this[_0x41d333(0x36f)](this[_0x41d333(0x263)][_0x41d333(0x365)](_0x106c06=>{const _0x4073c0=_0x41d333;let _0x259d59,_0xa5ca8d;if(_0x106c06['id']===i[_0x4073c0(0x323)]['id']||_0x106c06['id']===i[_0x4073c0(0x49e)]['id']||_0x106c06['id']===i['UpdateConnectorRelationCommand']['id']){let _0x42d404=_0x106c06[_0x4073c0(0x217)];_0x259d59=_0x42d404[_0x4073c0(0x346)],_0xa5ca8d=_0x42d404[_0x4073c0(0x369)];}_0x259d59&&_0xa5ca8d&&(this[_0x4073c0(0x1f9)]['permissionCheckWithoutRange']({'workbookTypes':[o[_0x4073c0(0x4ee)]],'worksheetTypes':[o[_0x4073c0(0x33b)]]},_0x259d59,_0xa5ca8d)||this[_0x4073c0(0x1f9)][_0x4073c0(0x2c1)](this[_0x4073c0(0x1fb)]['t']('sheets-shape-ui.permission.editErr')));}));}};Y=A([k(0x0,(0x0,a[_0x5e988f(0x334)])(a['ICommandService'])),k(0x1,(0x0,a[_0x5e988f(0x334)])(a[_0x5e988f(0x3e1)])),k(0x2,(0x0,a[_0x5e988f(0x334)])(o[_0x5e988f(0x490)]))],Y);let X=class{constructor(_0x34b8bf){const _0x4de3ca=_0x5e988f;this[_0x4de3ca(0x1ea)]=_0x34b8bf;}['updateShapeFillImage'](_0xfea1a4,_0x5a8884){const _0x1210a0=_0x5e988f;let _0x502246=this['_renderManagerService'][_0x1210a0(0x188)](_0xfea1a4[_0x1210a0(0x346)]),_0x1214e9=_0x502246==null?void 0x0:_0x502246[_0x1210a0(0x466)];if(!_0x1214e9)return;let _0x10388e=(0x0,s['getDrawingShapeKeyByDrawingSearch'])(_0xfea1a4),_0x431310=_0x1214e9[_0x1210a0(0x300)](_0x10388e);_0x431310==null||_0x431310['setFillImage'](_0x5a8884);}};X=A([k(0x0,c[_0x5e988f(0x18e)])],X);let Z=class extends a[_0x5e988f(0x26f)]{constructor(_0x3a222d=lt,_0x1a15ee,_0xa8d1e0,_0x7c44a,_0x3a6e25){const _0x29449f=_0x5e988f;super(),this['_config']=_0x3a222d,this[_0x29449f(0x3f1)]=_0x1a15ee,this['_commandService']=_0xa8d1e0,this[_0x29449f(0x2fe)]=_0x7c44a,this[_0x29449f(0x1ea)]=_0x3a6e25;let {..._0x52ad73}=(0x0,a['merge'])({},lt,this[_0x29449f(0x4e0)]);this['_configService']['setConfig'](ct,_0x52ad73),this[_0x29449f(0x31f)]();}[_0x5e988f(0x3e4)](){const _0x27afe7=_0x5e988f;this[_0x27afe7(0x3f1)][_0x27afe7(0x4b5)]([ht]),this[_0x27afe7(0x3f1)][_0x27afe7(0x329)](ht),(0x0,a[_0x27afe7(0x4da)])(this['_injector'],[[U],[G],[j],[J],[X],[H],[W],[B],[Y]]);}[_0x5e988f(0x3d9)](){const _0x13faee=_0x5e988f;(0x0,a['registerDependencies'])(this['_injector'],[[K],[M],[q]]),(0x0,a[_0x13faee(0x1e0)])(this['_injector'],[[q],[M]]),[[K],[ut],[Ct],[_t]][_0x13faee(0x424)](_0x511b1f=>{const _0x1b8172=_0x13faee;this['disposeWithMe'](this[_0x1b8172(0x1ea)]['registerRenderModule'](a[_0x1b8172(0x15d)][_0x1b8172(0x2ba)],_0x511b1f));});}[_0x5e988f(0x4e1)](){(0x0,a['touchDependencies'])(this['_injector'],[[U],[G],[j],[J],[X],[H],[W],[B],[Y]]);}['onSteady'](){const _0x1c057f=_0x5e988f;this[_0x1c057f(0x3f1)]['get'](U)['initShapePopupMenu']();}[_0x5e988f(0x31f)](){const _0x1230f2=_0x5e988f;[P,S,N,st][_0x1230f2(0x424)](_0x32f218=>this['disposeWithMe'](this[_0x1230f2(0x263)]['registerCommand'](_0x32f218)));}};E(Z,_0x5e988f(0x468),a[_0x5e988f(0x15d)][_0x5e988f(0x2ba)]),E(Z,_0x5e988f(0x360),_0x5e988f(0x2bf)),E(Z,_0x5e988f(0x4d3),at),E(Z,_0x5e988f(0x355),ot),Z=A([(0x0,a['DependentOn'])(h[_0x5e988f(0x33c)],g[_0x5e988f(0x268)],s['UniverDrawingPlugin'],c[_0x5e988f(0x2fa)],o[_0x5e988f(0x191)],_[_0x5e988f(0x1cd)],m[_0x5e988f(0x282)],r['UniverShapeEditorPlugin'],v[_0x5e988f(0x15f)],i['UniverSheetsShapePlugin'],l[_0x5e988f(0x233)],e[_0x5e988f(0x199)],t[_0x5e988f(0x157)]),k(0x1,(0x0,a[_0x5e988f(0x334)])(a[_0x5e988f(0x393)])),k(0x2,a['ICommandService']),k(0x3,a[_0x5e988f(0x304)]),k(0x4,c['IRenderManagerService'])],Z);const wt={'type':a[_0x5e988f(0x2a0)][_0x5e988f(0x24a)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}};function Tt(){const _0x2f40a2=_0x5e988f;let _0x70bc90=(0x0,t[_0x2f40a2(0x252)])(s['IDrawingManagerService']),_0x147491=(0x0,t[_0x2f40a2(0x1bb)])(()=>_0x70bc90['focus$'],_0x70bc90['getFocusDrawings'](),!0x1,[_0x70bc90]);return _0x147491[_0x2f40a2(0x2b6)]===0x0?null:(0x0,p[_0x2f40a2(0x347)])('div',{'children':(0x0,p[_0x2f40a2(0x4f1)])('div',{'className':_0x2f40a2(0x305),'children':[(0x0,p['jsx'])(d[_0x2f40a2(0x2e9)],{'drawings':_0x147491,'hasCropper':!0x1}),(0x0,p['jsx'])(v[_0x2f40a2(0x3ea)],{'drawings':_0x147491})]})});}function Et(_0x3f3169){const _0x2aed4e=_0x5e988f;let {unitId:_0x3b9241,subUnitId:_0x11d7cd,shapeId:_0x4ebc5c}=_0x3f3169,_0x1ebd15=(0x0,t['useDependency'])(a[_0x2aed4e(0x32c)]),_0x389512=(0x0,t[_0x2aed4e(0x252)])(X);return(0x0,p[_0x2aed4e(0x347)])(e['ShapeEditPanel'],{..._0x3f3169,'positionEditor':(0x0,p[_0x2aed4e(0x347)])(Tt,{}),'onUpdateShapeData':(_0x28c14c,_0x4eb6b0)=>{C(_0x1ebd15,_0x3b9241,_0x11d7cd,_0x4ebc5c,_0x28c14c,_0x4eb6b0);},'onUpdateLineShapeData':(_0x48f4d6,_0x1c3912)=>{w(_0x1ebd15,_0x3b9241,_0x11d7cd,_0x4ebc5c,_0x48f4d6,_0x1c3912);},'onUpdateShapeFillImage':_0x57c044=>{const _0x11ff94=_0x2aed4e;_0x389512[_0x11ff94(0x232)]({'unitId':_0x3b9241,'subUnitId':_0x11d7cd,'drawingId':_0x4ebc5c},_0x57c044);}});}function Dt(_0x2ec34d){const _0x1d68dd=_0x5e988f;let _0x3cc355=(0x0,t[_0x1d68dd(0x252)])(e[_0x1d68dd(0x1eb)]),_0x53f810=(0x0,t[_0x1d68dd(0x1bb)])(()=>_0x3cc355[_0x1d68dd(0x41f)],_0x3cc355['getVisible'](),!0x1,[_0x3cc355]),_0x1d892a=_0x2ec34d[_0x1d68dd(0x1a7)][_0x1d68dd(0x23b)];return!_0x1d892a||!_0x53f810?null:(0x0,p[_0x1d68dd(0x347)])(Ot,{..._0x1d892a,'canvasElement':_0x2ec34d[_0x1d68dd(0x1a7)][_0x1d68dd(0x229)]});}function Ot(_0x516d34){const _0x11ddb7=_0x5e988f;let _0x3d6fb7=(0x0,t['useDependency'])(a['ICommandService']),_0x31dc1a=(0x0,t[_0x11ddb7(0x252)])(i[_0x11ddb7(0x44c)]),{unitId:_0xb22403,subUnitId:_0x456762,drawingId:_0x26ab67,drawingType:_0x56b870,shapeType:_0x3860ed}=_0x516d34,[_0x2de04c,_0x349dd2]=(0x0,b['useState'])(_0x516d34[_0x11ddb7(0x192)]),_0x3db22a=(0x0,b[_0x11ddb7(0x21f)])(()=>(0x0,e['getTextStyle'])(_0x2de04c),[_0x2de04c]),_0x38365d=(0x0,b[_0x11ddb7(0x21f)])(()=>(0x0,e[_0x11ddb7(0x210)])(_0x2de04c),[_0x2de04c]);(0x0,b['useEffect'])(()=>{const _0x2c6bdb=_0x11ddb7;let _0x4f4ebb=_0x3d6fb7['onCommandExecuted'](_0x130ded=>{const _0x4686aa=_0x2dd2;if(_0x130ded['id']!==i[_0x4686aa(0x17c)]['id'])return;let _0x25456f=_0x31dc1a[_0x4686aa(0x4ea)](_0xb22403,_0x456762,_0x26ab67);_0x25456f&&_0x349dd2(_0x25456f);});return()=>_0x4f4ebb[_0x2c6bdb(0x4c1)]();},[_0x3d6fb7,_0x26ab67,_0x31dc1a,_0x456762,_0xb22403]);let _0x49af77=_0x556a75=>{_0x349dd2(_0x42fe01=>({..._0x42fe01,..._0x556a75}));},_0x187061=_0xc51163=>{const _0x231dc5=_0x11ddb7;let _0x21097a=(0x0,e[_0x231dc5(0x171)])(_0x2de04c,_0xc51163);C(_0x3d6fb7,_0xb22403,_0x456762,_0x26ab67,{'oldShapeData':{'shapeText':_0x2de04c[_0x231dc5(0x23a)]}},_0x21097a),_0x49af77(_0x21097a);},_0x3dd53a=(0x0,e[_0x11ddb7(0x495)])({'hostType':a[_0x11ddb7(0x15d)][_0x11ddb7(0x2ba)],'unitId':_0xb22403,'subUnitId':_0x456762,'shapeId':_0x26ab67,'shapeData':_0x2de04c,'onUpdateBinding':_0x3c1f93=>{const _0x44cf8d=_0x11ddb7;let _0x30fb5f={'formulaBinding':_0x3c1f93};C(_0x3d6fb7,_0xb22403,_0x456762,_0x26ab67,{'oldShapeData':{'formulaBinding':_0x2de04c[_0x44cf8d(0x425)]}},_0x30fb5f),_0x49af77(_0x30fb5f);}});return(0x0,p[_0x11ddb7(0x4f1)])(p[_0x11ddb7(0x3be)],{'children':[(0x0,p[_0x11ddb7(0x347)])(e['ShapeFloatingToolbar'],{'canvasElement':_0x516d34[_0x11ddb7(0x229)],'shapeData':_0x2de04c,'shapeType':_0x3860ed,'textStyle':{'ff':n['ShapeDefaultConfig'][_0x11ddb7(0x23a)][_0x11ddb7(0x3a6)],'fs':n[_0x11ddb7(0x291)][_0x11ddb7(0x23a)]['fontSize'],'cl':{'rgb':n[_0x11ddb7(0x291)][_0x11ddb7(0x23a)][_0x11ddb7(0x3d4)]},..._0x3db22a},'textModel':_0x38365d?{'ha':_0x38365d['ha']??a[_0x11ddb7(0x412)][_0x11ddb7(0x275)],'va':_0x38365d['va']??a[_0x11ddb7(0x4f3)][_0x11ddb7(0x436)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':n[_0x11ddb7(0x291)][_0x11ddb7(0x35c)],'defaultGradientEndColor':n[_0x11ddb7(0x291)][_0x11ddb7(0x4cf)],'defaultStrokeColor':n['ShapeDefaultConfig'][_0x11ddb7(0x413)],'extensionGroups':_0x3dd53a[_0x11ddb7(0x16d)],'floatingObjectToolbarPosition':t[_0x11ddb7(0x4a7)]['SHEET'],'onUpdateShapeData':(_0x53ec9e,_0x48df5b)=>{C(_0x3d6fb7,_0xb22403,_0x456762,_0x26ab67,_0x53ec9e,_0x48df5b),_0x48df5b&&_0x49af77(_0x48df5b);},'onUpdateText':_0x187061,'onOpenPanel':()=>{const _0x2ceb71=_0x11ddb7;_0x3d6fb7[_0x2ceb71(0x32b)](z['id'],{'unitId':_0xb22403,'subUnitId':_0x456762,'drawingId':_0x26ab67});},'onDelete':()=>{const _0x2fd15f=_0x11ddb7;_0x3d6fb7[_0x2fd15f(0x32b)](m[_0x2fd15f(0x1b1)]['id'],{'unitId':_0xb22403,'drawings':[{'unitId':_0xb22403,'subUnitId':_0x456762,'drawingId':_0x26ab67,'drawingType':_0x56b870}]});}}),_0x3dd53a[_0x11ddb7(0x4e8)]]});}function kt(_0x2b120f){const _0x47b700=_0x5e988f;return!!_0x2b120f&&_0x47b700(0x418)in _0x2b120f&&_0x47b700(0x444)in _0x2b120f;}const At=(0x0,b[_0x5e988f(0x24b)])(()=>{const _0x56ac0c=_0x5e988f;let _0x304298=(0x0,t['useDependency'])(H),_0x56af57=(0x0,t['useDependency'])(i['SheetsShapeService']),_0x5a250a=(0x0,t['useDependency'])(s['IDrawingManagerService']),_0x5264a0=(0x0,t[_0x56ac0c(0x252)])(a['ICommandService']),_0x27260d=(0x0,t[_0x56ac0c(0x252)])(t[_0x56ac0c(0x255)]),_0xc7200d=(0x0,t[_0x56ac0c(0x252)])(c['IRenderManagerService']),_0x4d663f=(0x0,b[_0x56ac0c(0x21f)])(()=>({'getShapeModel':(_0x4b73f2,_0x245d2f,_0x595516)=>_0x56af57['getShapeModel'](_0x4b73f2,_0x245d2f,_0x595516),'getShapeData':(_0xbfbc80,_0x195e74,_0x36fc4f)=>_0x56af57[_0x56ac0c(0x4ea)](_0xbfbc80,_0x195e74,_0x36fc4f),'getDrawingTransform':(_0x40f4bb,_0xabe2a5,_0x534fc1)=>{const _0x3c3836=_0x56ac0c;let _0x177ec4=_0x5a250a[_0x3c3836(0x2fc)]({'unitId':_0x40f4bb,'subUnitId':_0xabe2a5,'drawingId':_0x534fc1});return _0x177ec4==null?void 0x0:_0x177ec4[_0x3c3836(0x2fd)];},'updateShapeText':({unitId:_0x3c79d8,subUnitId:_0x5d7652,shapeId:_0x43a9bd,shapeText:_0x73850f,oldShapeText:_0x54ef12,hostSize:_0x166411})=>{_0x27260d['run'](_0x3c79d8,()=>{const _0x2fbe00=_0x2dd2;var _0x3290e2;let _0x53224e=_0x5264a0[_0x2fbe00(0x185)](S['id'],{'unitId':_0x3c79d8,'subUnitId':_0x5d7652,'shapeId':_0x43a9bd,'shapeData':{'shapeText':_0x73850f},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x54ef12}}});if(!_0x53224e||!_0x166411)return _0x53224e;let _0x430c37=_0x5a250a[_0x2fbe00(0x2fc)]({'unitId':_0x3c79d8,'subUnitId':_0x5d7652,'drawingId':_0x43a9bd}),_0x5bca8c=_0x430c37==null?void 0x0:_0x430c37[_0x2fbe00(0x2fd)];if(!kt(_0x430c37)||!_0x5bca8c)return!0x1;let _0x4ff088={..._0x5bca8c,'width':_0x166411[_0x2fbe00(0x254)],'height':_0x166411[_0x2fbe00(0x457)]},_0x13e062=(_0x3290e2=_0xc7200d[_0x2fbe00(0x188)](_0x3c79d8))==null||(_0x3290e2=_0x3290e2[_0x2fbe00(0x246)](l['SheetSkeletonManagerService'])[_0x2fbe00(0x328)](_0x5d7652))==null?void 0x0:_0x3290e2['skeleton'];return _0x5264a0[_0x2fbe00(0x185)](m['SetSheetDrawingCommand']['id'],{'unitId':_0x3c79d8,'drawings':[{..._0x430c37,'transform':_0x4ff088,'sheetTransform':_0x13e062?(0x0,m['transformToDrawingPosition'])(_0x4ff088,_0x13e062)??_0x430c37[_0x2fbe00(0x444)]:_0x430c37[_0x2fbe00(0x444)],'axisAlignSheetTransform':_0x13e062?(0x0,m[_0x2fbe00(0x3e8)])(_0x4ff088,_0x13e062)??_0x430c37[_0x2fbe00(0x418)]:_0x430c37[_0x2fbe00(0x418)]}]});});},'updateHostSize':({unitId:_0x199768,subUnitId:_0x52c80b,shapeId:_0x8ae4f3,width:_0x4f38f0,height:_0x59f863})=>{const _0x180911=_0x56ac0c;var _0x19af32;let _0x117ed1=_0x5a250a[_0x180911(0x2fc)]({'unitId':_0x199768,'subUnitId':_0x52c80b,'drawingId':_0x8ae4f3}),_0x3ccb74=_0x117ed1==null?void 0x0:_0x117ed1[_0x180911(0x2fd)];if(!kt(_0x117ed1)||!_0x3ccb74)return;let _0x52ba6e={..._0x3ccb74,'width':_0x4f38f0,'height':_0x59f863},_0xd433be=(_0x19af32=_0xc7200d['getRenderUnitById'](_0x199768))==null||(_0x19af32=_0x19af32[_0x180911(0x246)](l[_0x180911(0x306)])['getSkeletonParam'](_0x52c80b))==null?void 0x0:_0x19af32[_0x180911(0x349)],_0x4173c0=_0xd433be?(0x0,m[_0x180911(0x186)])(_0x52ba6e,_0xd433be)??_0x117ed1['sheetTransform']:_0x117ed1[_0x180911(0x444)],_0x10f9d3=_0xd433be?(0x0,m[_0x180911(0x3e8)])(_0x52ba6e,_0xd433be)??_0x117ed1[_0x180911(0x418)]:_0x117ed1[_0x180911(0x418)];_0x5264a0[_0x180911(0x32b)](m['SetSheetDrawingCommand']['id'],{'unitId':_0x199768,'drawings':[{..._0x117ed1,'transform':_0x52ba6e,'sheetTransform':_0x4173c0,'axisAlignSheetTransform':_0x10f9d3}]});},'allowHostSizeShrink':({unitId:_0x3f0f3f,subUnitId:_0x1eb862,shapeId:_0x9aad02})=>(0x0,e[_0x56ac0c(0x258)])(_0x56af57[_0x56ac0c(0x4ea)](_0x3f0f3f,_0x1eb862,_0x9aad02)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x5264a0,_0x5a250a,_0xc7200d,_0x56af57,_0x27260d]),_0x125855=(0x0,b[_0x56ac0c(0x21f)])(()=>({'viewportKeys':{'main':c[_0x56ac0c(0x2e8)][_0x56ac0c(0x3a8)],'leftTop':c[_0x56ac0c(0x2e8)]['VIEW_MAIN_LEFT_TOP'],'top':c['SHEET_VIEWPORT_KEY'][_0x56ac0c(0x439)],'left':c[_0x56ac0c(0x2e8)]['VIEW_MAIN_LEFT']},'getSkeleton':(_0x4d577a,_0x5f78bd)=>{const _0x4883f7=_0x56ac0c;var _0x99de9d;return((_0x99de9d=_0x4d577a[_0x4883f7(0x246)](l[_0x4883f7(0x306)])['getSkeletonParam'](_0x5f78bd['subUnitId']))==null?void 0x0:_0x99de9d[_0x4883f7(0x349)])??null;}}),[]);return(0x0,p[_0x56ac0c(0x347)])(e[_0x56ac0c(0x1cf)],{'adapter':_0x4d663f,'editingService':_0x304298,'editorUnitId':re,'positionOptions':_0x125855});});let jt=class extends a[_0x5e988f(0x302)]{constructor(_0xc9e0e5,_0x3ed157){const _0x11391a=_0x5e988f;super(),this['_componentManager']=_0xc9e0e5,this['_iconManager']=_0x3ed157,this[_0x11391a(0x20f)](),this[_0x11391a(0x247)]();}[_0x5e988f(0x20f)](){const _0x59faed=_0x5e988f;this[_0x59faed(0x354)][_0x59faed(0x4ec)]('ObjectLayersIcon')||this[_0x59faed(0x36f)](this[_0x59faed(0x354)]['register']({'ObjectLayersIcon':y[_0x59faed(0x2ef)]})),this[_0x59faed(0x354)][_0x59faed(0x4ec)](_0x59faed(0x197))||this['disposeWithMe'](this[_0x59faed(0x354)]['register']({'FlipHorizontalIcon':y[_0x59faed(0x197)]})),this[_0x59faed(0x354)][_0x59faed(0x4ec)](_0x59faed(0x336))||this[_0x59faed(0x36f)](this[_0x59faed(0x354)][_0x59faed(0x3b6)]({'FlipVerticalIcon':y[_0x59faed(0x336)]})),this['_iconManager'][_0x59faed(0x4ec)]('BottomIcon')||this[_0x59faed(0x36f)](this[_0x59faed(0x354)][_0x59faed(0x3b6)]({'BottomIcon':y['BottomIcon']})),this[_0x59faed(0x354)][_0x59faed(0x4ec)](_0x59faed(0x29a))||this[_0x59faed(0x36f)](this[_0x59faed(0x354)]['register']({'MoveDownIcon':y[_0x59faed(0x29a)]})),this[_0x59faed(0x354)][_0x59faed(0x4ec)](_0x59faed(0x4d0))||this[_0x59faed(0x36f)](this[_0x59faed(0x354)][_0x59faed(0x3b6)]({'MoveUpIcon':y['MoveUpIcon']})),this['_iconManager']['has']('ShapeFormatSettingIcon')||this[_0x59faed(0x36f)](this[_0x59faed(0x354)][_0x59faed(0x3b6)]({'ShapeFormatSettingIcon':y['ShapeFormatSettingIcon']})),this[_0x59faed(0x354)]['has'](_0x59faed(0x312))||this[_0x59faed(0x36f)](this[_0x59faed(0x354)][_0x59faed(0x3b6)]({'TopmostIcon':y['TopmostIcon']}));}[_0x5e988f(0x247)](){const _0x329778=_0x5e988f;this[_0x329778(0x36f)](this[_0x329778(0x3a9)]['register'](F,Et)),this[_0x329778(0x36f)](this[_0x329778(0x3a9)][_0x329778(0x3b6)](I,pt)),this[_0x329778(0x36f)](this[_0x329778(0x3a9)][_0x329778(0x3b6)](le,he)),this[_0x329778(0x36f)](this['_componentManager']['register'](ue,fe)),this[_0x329778(0x3a9)][_0x329778(0x4ed)](d[_0x329778(0x237)])||this[_0x329778(0x36f)](this['_componentManager'][_0x329778(0x3b6)](d['IMAGE_CLIP_SHAPE_PICKER_COMPONENT'],me)),this[_0x329778(0x36f)](this[_0x329778(0x3a9)][_0x329778(0x3b6)](L,Dt)),this[_0x329778(0x36f)](this[_0x329778(0x3a9)]['register'](Ee,Ae)),this[_0x329778(0x36f)](this[_0x329778(0x3a9)][_0x329778(0x3b6)](Te,je)),this['disposeWithMe'](this[_0x329778(0x3a9)][_0x329778(0x3b6)](De,Me)),this['disposeWithMe'](this[_0x329778(0x3a9)][_0x329778(0x3b6)](Oe,Ne)),this['disposeWithMe'](this['_componentManager'][_0x329778(0x3b6)](ie,e[_0x329778(0x4d1)])),this['disposeWithMe'](this[_0x329778(0x3a9)][_0x329778(0x3b6)]('SheetShapeTextEditorContainer',At));}};jt=A([k(0x0,(0x0,a['Inject'])(t[_0x5e988f(0x399)])),k(0x1,(0x0,a[_0x5e988f(0x334)])(t['IconManager']))],jt);let Mt=class extends a[_0x5e988f(0x302)]{constructor(_0x2f8045,_0x37ca61,_0x1d6e21,_0x556ebb,_0x4710c9,_0x520c76,_0x26f866,_0x331c5,_0x2f6869){const _0x498e77=_0x5e988f;super();let _0x5c1ebc=_0x51fd82=>{const _0xdcd96d=_0x2dd2;var _0x5a72fd,_0x77c8dd;return(((_0x5a72fd=_0x331c5['getPermissionPoint'](new o['WorkbookEditablePermission'](_0x51fd82['unitId'])['id']))==null?void 0x0:_0x5a72fd[_0xdcd96d(0x321)])??!0x0)&&(((_0x77c8dd=_0x331c5[_0xdcd96d(0x212)](new o[(_0xdcd96d(0x33b))](_0x51fd82[_0xdcd96d(0x346)],_0x51fd82['subUnitId'])['id']))==null?void 0x0:_0x77c8dd[_0xdcd96d(0x321)])??!0x0);},_0x501fbb=_0x17738d=>_0x17738d[_0x498e77(0x3cd)]&&_0x5c1ebc(_0x17738d)?_0x1d6e21[_0x498e77(0x4ea)](_0x17738d['unitId'],_0x17738d[_0x498e77(0x369)],_0x17738d['shapeId'])??null:null,_0x5f5a9b=()=>{const _0x565ffd=_0x498e77;let _0x3ae033=_0x4710c9['getFocusDrawings'](),_0x2022fd=_0x3ae033[_0x565ffd(0x2b6)]===0x1?_0x3ae033[0x0]:null;return(_0x2022fd==null?void 0x0:_0x2022fd['drawingType'])===a[_0x565ffd(0x181)][_0x565ffd(0x1d7)]&&_0x2022fd['unitId']===_0x2f8045[_0x565ffd(0x346)]?{'unitId':_0x2022fd[_0x565ffd(0x346)],'subUnitId':_0x2022fd['subUnitId'],'shapeId':_0x2022fd[_0x565ffd(0x456)]}:null;};this[_0x498e77(0x36f)]((0x0,e[_0x498e77(0x28a)])(_0x2f8045,_0x37ca61,{'changes$':(0x0,u[_0x498e77(0x1c1)])(_0x4710c9['focus$'],_0x556ebb[_0x498e77(0x3db)],_0x331c5['permissionPointUpdate$']),'isActive':()=>{const _0x31c32a=_0x498e77;var _0x36cac1;return((_0x36cac1=_0x520c76[_0x31c32a(0x492)]())==null?void 0x0:_0x36cac1[_0x31c32a(0x39d)]())===_0x2f8045['unitId']&&!_0x26f866[_0x31c32a(0x398)](a[_0x31c32a(0x34c)])&&_0x4710c9[_0x31c32a(0x166)]()[_0x31c32a(0x21d)](_0x4b44cf=>_0x4b44cf[_0x31c32a(0x346)]===_0x2f8045['unitId']);},'getSelectedTarget':_0x5f5a9b,'getSource':()=>{let _0x130c15=_0x5f5a9b();return _0x130c15?_0x501fbb(_0x130c15):null;},'getTarget':_0x2573eb=>{const _0x5626f2=_0x498e77;let _0xa69a7=_0x2f8045[_0x5626f2(0x466)][_0x5626f2(0x462)](new c[(_0x5626f2(0x459))](_0x2573eb[_0x5626f2(0x16e)],_0x2573eb[_0x5626f2(0x3dc)]));if(!(_0xa69a7 instanceof D))return null;let _0x26acbf={'unitId':_0x2f8045[_0x5626f2(0x346)],'subUnitId':_0xa69a7[_0x5626f2(0x369)],'shapeId':_0xa69a7[_0x5626f2(0x3cd)]};return _0x5c1ebc(_0x26acbf)?_0x26acbf:null;},'getShape':_0x501fbb,'update':(_0x5677cf,_0x2d5f96,_0x3993a1)=>_0x2f6869[_0x498e77(0x32b)](S['id'],{..._0x5677cf,'shapeData':_0x3993a1,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x2d5f96}})}));}};Mt=A([k(0x1,(0x0,a[_0x5e988f(0x334)])(t[_0x5e988f(0x432)])),k(0x2,(0x0,a['Inject'])(i[_0x5e988f(0x44c)])),k(0x3,(0x0,a[_0x5e988f(0x334)])(H)),k(0x4,s['IDrawingManagerService']),k(0x5,a[_0x5e988f(0x4c8)]),k(0x6,a[_0x5e988f(0x449)]),k(0x7,a['IPermissionService']),k(0x8,a[_0x5e988f(0x32c)])],Mt);const Nt='sheets-shape-contextual-ribbon';let Pt=class extends a[_0x5e988f(0x302)]{constructor(_0x3dcd9b,_0x22ea04,_0x603115,_0x4595e7,_0x34a9fc,_0x21c014){const _0x1f5a0c=_0x5e988f;super(),this[_0x1f5a0c(0x32e)]=_0x3dcd9b,this[_0x1f5a0c(0x2c5)]=_0x22ea04,this[_0x1f5a0c(0x2f6)]=_0x603115,this['_univerInstanceService']=_0x4595e7,this[_0x1f5a0c(0x1ea)]=_0x34a9fc,this[_0x1f5a0c(0x1d6)]=_0x21c014,E(this,_0x1f5a0c(0x3b4),!0x1),this[_0x1f5a0c(0x32e)][_0x1f5a0c(0x315)](nt),this['disposeWithMe']((0x0,a['toDisposable'])(this[_0x1f5a0c(0x2f6)][_0x1f5a0c(0x15b)][_0x1f5a0c(0x24c)](()=>this[_0x1f5a0c(0x43f)]()))),this[_0x1f5a0c(0x43f)]();}[_0x5e988f(0x4c1)](){const _0x2819aa=_0x5e988f;this[_0x2819aa(0x1d6)]['setFallbackVisible'](!0x1,Nt),this['_hide'](),super[_0x2819aa(0x4c1)]();}['_update'](){const _0x351dd0=_0x5e988f;var _0x27e9ba;let _0x3ecd86=this[_0x351dd0(0x2f6)][_0x351dd0(0x166)](),_0x34e03c=_0x3ecd86[_0x351dd0(0x2b6)]===0x1?_0x3ecd86[0x0]:void 0x0;if((_0x34e03c==null?void 0x0:_0x34e03c[_0x351dd0(0x2aa)])!==a['DrawingTypeEnum']['DRAWING_SHAPE']||this['_univerInstanceService'][_0x351dd0(0x17f)](_0x34e03c[_0x351dd0(0x346)])!==a[_0x351dd0(0x15d)][_0x351dd0(0x2ba)]){this[_0x351dd0(0x1d6)][_0x351dd0(0x379)](!0x1,Nt),this['_hide']();return;}let _0x1c5b4a=(_0x27e9ba=this[_0x351dd0(0x1ea)]['getRenderUnitById'](_0x34e03c[_0x351dd0(0x346)]))==null?void 0x0:_0x27e9ba[_0x351dd0(0x236)][_0x351dd0(0x4e4)](),_0x2f409f=(0x0,e[_0x351dd0(0x4ba)])(_0x1c5b4a)===_0x351dd0(0x313);this[_0x351dd0(0x1d6)][_0x351dd0(0x379)](_0x2f409f,Nt),_0x2f409f?this['_hide']():this['_visible']||(this['_visible']=!0x0,this[_0x351dd0(0x2c5)][_0x351dd0(0x1d3)](R,{'activate':!0x0}));}[_0x5e988f(0x2dd)](){const _0x3bce49=_0x5e988f;this['_visible']&&(this['_visible']=!0x1,this[_0x3bce49(0x2c5)][_0x3bce49(0x196)](R),this['_ribbonService'][_0x3bce49(0x343)]([]));}};Pt=A([k(0x0,t[_0x5e988f(0x222)]),k(0x1,t['IRibbonService']),k(0x2,s[_0x5e988f(0x1bd)]),k(0x3,a['IUniverInstanceService']),k(0x4,c['IRenderManagerService']),k(0x5,(0x0,a[_0x5e988f(0x334)])(e[_0x5e988f(0x1eb)]))],Pt);let Ft=class extends e[_0x5e988f(0x4df)]{constructor(_0x4fd79a,_0x4affb3,_0x43f92d,_0x3c8f2a,_0xe2222,_0x59e67d,_0x62fac7,_0x4661f5,_0x1782ea,_0x5290d0){super(_0x4fd79a,_0x4affb3,_0x43f92d,_0x3c8f2a,_0xe2222,_0x59e67d,_0x62fac7,_0x4661f5,_0x1782ea,_0x5290d0,{'componentKey':ie,'editorUnitId':re});}};Ft=A([k(0x1,(0x0,a['Inject'])(g[_0x5e988f(0x2cc)])),k(0x2,(0x0,a[_0x5e988f(0x334)])(_['DocCanvasPopManagerService'])),k(0x3,(0x0,a['Inject'])(_[_0x5e988f(0x15c)])),k(0x4,a['ICommandService']),k(0x5,(0x0,a['Inject'])(_[_0x5e988f(0x307)])),k(0x6,(0x0,a['Inject'])(e['ShapeTextHyperLinkPopupService'])),k(0x7,(0x0,a[_0x5e988f(0x334)])(g[_0x5e988f(0x378)])),k(0x8,(0x0,a['Inject'])(_[_0x5e988f(0x446)])),k(0x9,(0x0,a['Inject'])(H))],Ft);let It=class extends e[_0x5e988f(0x182)]{constructor(_0x59dae4,_0x8d1657,_0x2060ad,_0x1c08a1,_0x37a11a){const _0x3b3ec8=_0x5e988f;super(_0x59dae4,_0x8d1657,{'editing$':_0x2060ad[_0x3b3ec8(0x3db)],'resolve':_0x20920f=>{const _0x2b2779=_0x3b3ec8;var _0x2ecdc0,_0x2480e1,_0x17896a;let _0x5b84e8=new c[(_0x2b2779(0x459))](_0x20920f['offsetX'],_0x20920f[_0x2b2779(0x3dc)]),_0x1ce7e8=((_0x2ecdc0=_0x59dae4[_0x2b2779(0x466)][_0x2b2779(0x33f)](_0x5b84e8))==null?void 0x0:_0x2ecdc0[_0x2b2779(0x29e)](_0x5b84e8))??_0x5b84e8,_0x3fbe3b=(0x0,e[_0x2b2779(0x1d0)])(_0x59dae4[_0x2b2779(0x466)][_0x2b2779(0x462)](_0x5b84e8)??null,_0x1ce7e8);if(!(_0x3fbe3b instanceof D))return null;let _0x49a5bb=_0x3fbe3b[_0x2b2779(0x487)](_0x1ce7e8);if(!_0x49a5bb)return null;let _0x41d277=_0x3fbe3b,_0x33b591={'componentKey':e[_0x2b2779(0x407)][_0x2b2779(0x1e7)],'direction':'top-center','offset':[0x0,0xa],'onClickOutside':()=>_0x8d1657[_0x2b2779(0x203)]()};return{'object':_0x3fbe3b,'info':{..._0x49a5bb,'unitId':_0x3fbe3b['unitId'],'subUnitId':_0x3fbe3b['subUnitId'],'shapeKey':_0x3fbe3b[_0x2b2779(0x4de)],'readonly':!0x0,'copyable':((_0x2480e1=_0x37a11a[_0x2b2779(0x212)](new o[(_0x2b2779(0x469))](_0x3fbe3b[_0x2b2779(0x346)])['id']))==null?void 0x0:_0x2480e1[_0x2b2779(0x321)])!==!0x1&&((_0x17896a=_0x37a11a['getPermissionPoint'](new o[(_0x2b2779(0x2a5))](_0x3fbe3b[_0x2b2779(0x346)],_0x3fbe3b[_0x2b2779(0x369)])['id']))==null?void 0x0:_0x17896a[_0x2b2779(0x321)])!==!0x1},'attachPopup':()=>_0x1c08a1[_0x2b2779(0x30c)](_0x41d277,_0x33b591)};}}),this[_0x3b3ec8(0x36f)](_0x59dae4[_0x3b3ec8(0x38a)][_0x3b3ec8(0x18a)]['subscribe'](()=>this['clear']()));}};It=A([k(0x1,(0x0,a[_0x5e988f(0x334)])(e[_0x5e988f(0x2f9)])),k(0x2,(0x0,a[_0x5e988f(0x334)])(H)),k(0x3,(0x0,a['Inject'])(l[_0x5e988f(0x309)])),k(0x4,a['IPermissionService'])],It);let Q=class extends a[_0x5e988f(0x302)]{constructor(_0x4329ad,_0x4eb53f,_0x30b76a,_0x4cd441,_0x504f67,_0x2c8613,_0xa58302,_0x1f9a14,_0x1ebff9,_0x2b10e4,_0x2b3f7d){const _0x3b0537=_0x5e988f;super(),this[_0x3b0537(0x3fa)]=_0x4329ad,this[_0x3b0537(0x231)]=_0x4eb53f,this[_0x3b0537(0x32e)]=_0x30b76a,this[_0x3b0537(0x4d2)]=_0x4cd441,this[_0x3b0537(0x1fb)]=_0x504f67,this[_0x3b0537(0x263)]=_0x2c8613,this['_drawingManagerService']=_0xa58302,this[_0x3b0537(0x46d)]=_0x1f9a14,this['_contextService']=_0x1ebff9,this[_0x3b0537(0x1ea)]=_0x2b10e4,this[_0x3b0537(0x28f)]=_0x2b3f7d,E(this,'_sidebarDisposable',null),E(this,'_activeShapeInfo',null),E(this,_0x3b0537(0x3af),!0x1),E(this,_0x3b0537(0x3d5),0x0),E(this,'_shapePopupMenuDisposable',null),E(this,'_disposePopups',[]),this[_0x3b0537(0x23c)](),this[_0x3b0537(0x36f)](this['_univerInstanceService'][_0x3b0537(0x1b9)](a[_0x3b0537(0x15d)][_0x3b0537(0x2ba)])[_0x3b0537(0x24c)](_0x4bb359=>{if(!_0x4bb359){var _0x3281dd;(_0x3281dd=this['_sidebarDisposable'])==null||_0x3281dd['dispose']();}})),this[_0x3b0537(0x28d)](),this[_0x3b0537(0x41e)](),this[_0x3b0537(0x36f)](this['_shapeTextEditingService'][_0x3b0537(0x3db)][_0x3b0537(0x24c)](_0x478285=>{_0x478285&&this['_clearPopups']();}));}[_0x5e988f(0x23c)](){const _0x5e46bf=_0x5e988f;this['_menuManagerService'][_0x5e46bf(0x315)](it);}['initShapePopupMenu'](){const _0xf0d346=_0x5e988f;this[_0xf0d346(0x25e)]||=this[_0xf0d346(0x36f)]((0x0,e['bindRenderTransformerLifecycle'])(this[_0xf0d346(0x1ea)],a[_0xf0d346(0x15d)][_0xf0d346(0x2ba)],_0x1bcb25=>this['_popupMenuListener'](_0x1bcb25)));}[_0x5e988f(0x226)](_0x240468,_0x7bad5d,_0x153f97){const _0x44d1e3=_0x5e988f;let _0x4871da=this[_0x44d1e3(0x4d2)]['getShapeTypeById'](_0x240468,_0x7bad5d,_0x153f97),_0x10ee72=this[_0x44d1e3(0x4d2)]['getShapeDataById'](_0x240468,_0x7bad5d,_0x153f97);return _0x4871da!==void 0x0&&_0x10ee72!==void 0x0?{'shapeData':_0x10ee72,'shapeId':_0x153f97,'shapeType':_0x4871da,'unitId':_0x240468,'subUnitId':_0x7bad5d,'version':this[_0x44d1e3(0x3d5)],'disableShapeOption':!0x1}:null;}[_0x5e988f(0x16b)](){const _0x445de3=_0x5e988f;this[_0x445de3(0x269)][_0x445de3(0x424)](_0x41e6bb=>_0x41e6bb[_0x445de3(0x4c1)]()),this[_0x445de3(0x269)][_0x445de3(0x2b6)]=0x0;}['_popupMenuListener'](_0x3ee1b5){const _0x7ad3f8=_0x5e988f;let _0x2760fe=new a[(_0x7ad3f8(0x1f5))]();return _0x2760fe[_0x7ad3f8(0x4b5)](_0x3ee1b5[_0x7ad3f8(0x37c)][_0x7ad3f8(0x24c)](()=>{const _0x4bb0e5=_0x7ad3f8;let _0x14994f=_0x3ee1b5[_0x4bb0e5(0x1f4)]();if(this['_clearPopups'](),this[_0x4bb0e5(0x3af)]||_0x14994f['size']>0x1)return;let _0xde6a29=_0x14994f[_0x4bb0e5(0x3c9)]()['next']()[_0x4bb0e5(0x321)];if(!_0xde6a29)return;let _0x210f31=this[_0x4bb0e5(0x2f6)]['getDrawingOKey'](_0xde6a29[_0x4bb0e5(0x4de)]);if(!_0x210f31||_0x210f31['drawingType']!==a[_0x4bb0e5(0x181)][_0x4bb0e5(0x1d7)])return;let {unitId:_0x20508f,subUnitId:_0x449143,drawingId:_0x6f18cc,drawingType:_0xc9a58d}=_0x210f31,_0x3a25ff=this['_getShapeInfo'](_0x20508f,_0x449143,_0x6f18cc);if(!_0x3a25ff)return;this['_contextService'][_0x4bb0e5(0x1db)](a['FOCUSING_COMMON_DRAWINGS'],!0x0);let _0x5a5542=this[_0x4bb0e5(0x1ea)][_0x4bb0e5(0x188)](_0x20508f),_0x5e243e=((_0x5a5542==null?void 0x0:_0x5a5542[_0x4bb0e5(0x3f7)])===!0x1?_0x5a5542[_0x4bb0e5(0x246)](l[_0x4bb0e5(0x309)]):this['_sheetCanvasPopManagerService'])[_0x4bb0e5(0x30c)](_0xde6a29,{'componentKey':L,'direction':_0x4bb0e5(0x2cf),'offset':[0x0,e[_0x4bb0e5(0x23f)]],'extraProps':{'unitId':_0x20508f,'subUnitId':_0x449143,'drawingId':_0x6f18cc,'drawingType':_0xc9a58d,'shapeType':_0x3a25ff[_0x4bb0e5(0x1e6)],'shapeData':_0x3a25ff[_0x4bb0e5(0x192)]}});this[_0x4bb0e5(0x269)]['push'](this[_0x4bb0e5(0x36f)](_0x5e243e)),this['_drawingManagerService'][_0x4bb0e5(0x166)]()[_0x4bb0e5(0x2d1)](_0x45feb0=>_0x45feb0[_0x4bb0e5(0x346)]===_0x20508f&&_0x45feb0['subUnitId']===_0x449143&&_0x45feb0['drawingId']===_0x6f18cc)||this[_0x4bb0e5(0x2f6)][_0x4bb0e5(0x262)]([{'unitId':_0x20508f,'subUnitId':_0x449143,'drawingId':_0x6f18cc}]);})),_0x2760fe[_0x7ad3f8(0x4b5)](_0x3ee1b5[_0x7ad3f8(0x384)]['subscribe'](()=>{const _0x419103=_0x7ad3f8;this[_0x419103(0x16b)](),this[_0x419103(0x3c1)][_0x419103(0x1db)](a[_0x419103(0x281)],!0x1),this['_drawingManagerService']['focusDrawing'](null);})),_0x2760fe[_0x7ad3f8(0x4b5)](_0x3ee1b5['changing$'][_0x7ad3f8(0x24c)](()=>{const _0x55ae67=_0x7ad3f8;this[_0x55ae67(0x16b)]();})),_0x2760fe[_0x7ad3f8(0x4b5)](_0x3ee1b5[_0x7ad3f8(0x2a4)][_0x7ad3f8(0x24c)](()=>{const _0x288506=_0x7ad3f8;this[_0x288506(0x16b)]();})),(0x0,a[_0x7ad3f8(0x1cc)])(()=>{const _0x1ad4ba=_0x7ad3f8;_0x2760fe['dispose'](),this[_0x1ad4ba(0x16b)]();});}['_registerOperations'](){const _0x20afbd=_0x5e988f;this[_0x20afbd(0x36f)](this[_0x20afbd(0x263)]['onCommandExecuted'](_0x592ee3=>{const _0x1f8364=_0x20afbd;if(_0x592ee3['id']===z['id']){let {unitId:_0x488ce4,subUnitId:_0x4b552a,drawingId:_0x17bd73}=_0x592ee3[_0x1f8364(0x217)];this[_0x1f8364(0x3d5)]+=0x1,this['_activeShapeInfo']=this[_0x1f8364(0x226)](_0x488ce4,_0x4b552a,_0x17bd73),this[_0x1f8364(0x16b)](),this[_0x1f8364(0x40e)]();}if(_0x592ee3['id']===wt['id']&&(this[_0x1f8364(0x3f3)]=null,this[_0x1f8364(0x2e2)]()),_0x592ee3['id']===i['UpdateSheetsShapeDataMutation']['id']){let {unitId:_0x1171af,subUnitId:_0x1341bf,shapeId:_0x5ebd12}=_0x592ee3[_0x1f8364(0x217)];if(this[_0x1f8364(0x3f3)]&&this['_activeShapeInfo'][_0x1f8364(0x3cd)]===_0x5ebd12){let _0x315993=this[_0x1f8364(0x226)](_0x1171af,_0x1341bf,_0x5ebd12);_0x315993&&(this[_0x1f8364(0x3d5)]+=0x1,_0x315993['version']=this[_0x1f8364(0x3d5)],this[_0x1f8364(0x3f3)]=_0x315993,this[_0x1f8364(0x3af)]&&this[_0x1f8364(0x40e)]());}}})),this['disposeWithMe'](this[_0x20afbd(0x2f6)][_0x20afbd(0x15b)][_0x20afbd(0x24c)](_0x56197e=>{const _0x37c8f7=_0x20afbd;if(this[_0x37c8f7(0x3af)]===!0x1)return;if(_0x56197e[_0x37c8f7(0x2b6)]===0x0){this[_0x37c8f7(0x3f3)]=null,this['_closeShapeEditPanel']();return;}if(_0x56197e[_0x37c8f7(0x2b6)]===0x1&&_0x56197e[0x0]['drawingType']===a['DrawingTypeEnum'][_0x37c8f7(0x1d7)]&&(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x37c8f7(0x226)](_0x56197e[0x0]['unitId'],_0x56197e[0x0][_0x37c8f7(0x369)],_0x56197e[0x0]['drawingId']),this['_activeShapeInfo'])){this[_0x37c8f7(0x40e)]();return;}let _0x40b99d=_0x56197e[_0x37c8f7(0x38d)](_0x45aaa4=>_0x45aaa4[_0x37c8f7(0x2aa)]===a[_0x37c8f7(0x181)]['DRAWING_SHAPE']);if(_0x56197e[_0x37c8f7(0x2b6)]>0x1&&_0x40b99d[_0x37c8f7(0x2b6)]===_0x56197e[_0x37c8f7(0x2b6)]){if(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x56197e[0x0]['unitId'],_0x56197e[0x0][_0x37c8f7(0x369)],_0x56197e[0x0]['drawingId']),this['_activeShapeInfo']){this[_0x37c8f7(0x40e)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this[_0x37c8f7(0x3f3)]=this[_0x37c8f7(0x226)](_0x56197e[0x0]['unitId'],_0x56197e[0x0][_0x37c8f7(0x369)],_0x56197e[0x0][_0x37c8f7(0x456)]),this[_0x37c8f7(0x3f3)]){this['_activeShapeInfo']['disableShapeOption']=!0x0,this[_0x37c8f7(0x40e)]();return;}}this[_0x37c8f7(0x2e2)]();}));}[_0x5e988f(0x40e)](){const _0x96a7a4=_0x5e988f;this[_0x96a7a4(0x3f3)]&&(this[_0x96a7a4(0x234)]=this[_0x96a7a4(0x231)][_0x96a7a4(0x497)]({'id':F,'header':{'title':this[_0x96a7a4(0x1fb)]['t'](_0x96a7a4(0x220))},'width':0x184,'children':{'label':F,...this[_0x96a7a4(0x3f3)]},'onClose':()=>{const _0x525a7b=_0x96a7a4;this[_0x525a7b(0x2f6)]['focusDrawing'](null),this['_contextService'][_0x525a7b(0x1db)](a[_0x525a7b(0x281)],!0x1),this['_sidebarDisposable']=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}[_0x5e988f(0x2e2)](){const _0x270698=_0x5e988f;this[_0x270698(0x3af)]=!0x1,this[_0x270698(0x231)][_0x270698(0x489)](F),this[_0x270698(0x234)]=null,this[_0x270698(0x3c1)][_0x270698(0x1db)](a[_0x270698(0x281)],!0x1),this['_drawingManagerService'][_0x270698(0x262)](null);}};Q=A([k(0x0,a[_0x5e988f(0x4c8)]),k(0x1,(0x0,a[_0x5e988f(0x334)])(t[_0x5e988f(0x1a0)])),k(0x2,t[_0x5e988f(0x222)]),k(0x3,(0x0,a['Inject'])(i[_0x5e988f(0x44c)])),k(0x4,(0x0,a[_0x5e988f(0x334)])(a[_0x5e988f(0x3e1)])),k(0x5,a[_0x5e988f(0x32c)]),k(0x6,s['IDrawingManagerService']),k(0x7,(0x0,a[_0x5e988f(0x334)])(l[_0x5e988f(0x309)])),k(0x8,a[_0x5e988f(0x449)]),k(0x9,c[_0x5e988f(0x18e)]),k(0xa,(0x0,a[_0x5e988f(0x334)])(H))],Q);let $=class extends a['Plugin']{constructor(_0x3fd489=lt,_0x1f5bfc,_0x1cbe2c,_0x5c629a,_0x4b70f1){const _0x26badb=_0x5e988f;super(),this[_0x26badb(0x4e0)]=_0x3fd489,this[_0x26badb(0x3f1)]=_0x1f5bfc,this[_0x26badb(0x263)]=_0x1cbe2c,this[_0x26badb(0x2fe)]=_0x5c629a,this[_0x26badb(0x1ea)]=_0x4b70f1;let {..._0x3e28c0}=(0x0,a['merge'])({},lt,this[_0x26badb(0x4e0)]);this[_0x26badb(0x2fe)][_0x26badb(0x2b0)](ct,_0x3e28c0),this[_0x26badb(0x31f)]();}['onRendered'](){const _0x1de467=_0x5e988f;this['_renderManagerService'][_0x1de467(0x242)](a[_0x1de467(0x15d)][_0x1de467(0x175)],[Ft]),(0x0,a['touchDependencies'])(this[_0x1de467(0x3f1)],[[Q],[G],[j],[J]]);}['onSteady'](){const _0x563a5b=_0x5e988f;this[_0x563a5b(0x3f1)][_0x563a5b(0x329)](Q)[_0x563a5b(0x41e)]();}['onReady'](){const _0x45a5e3=_0x5e988f;[[K],[M],[q]][_0x45a5e3(0x424)](_0x499ee3=>this[_0x45a5e3(0x3f1)]['add'](_0x499ee3)),(0x0,a[_0x45a5e3(0x1e0)])(this['_injector'],[[q],[M]]),this[_0x45a5e3(0x1ea)][_0x45a5e3(0x242)](a['UniverInstanceType'][_0x45a5e3(0x2ba)],[K]),this[_0x45a5e3(0x1ea)]['registerRenderModule'](a[_0x45a5e3(0x15d)][_0x45a5e3(0x2ba)],[ut]),this[_0x45a5e3(0x1ea)][_0x45a5e3(0x242)](a[_0x45a5e3(0x15d)][_0x45a5e3(0x2ba)],[Ct]),this['_renderManagerService']['registerRenderModule'](a['UniverInstanceType']['UNIVER_SHEET'],[gt]),this[_0x45a5e3(0x36f)](this[_0x45a5e3(0x1ea)]['registerRenderModule'](a[_0x45a5e3(0x15d)][_0x45a5e3(0x2ba)],[It])),this['disposeWithMe'](this[_0x45a5e3(0x1ea)][_0x45a5e3(0x242)](a[_0x45a5e3(0x15d)][_0x45a5e3(0x2ba)],[Mt]));}[_0x5e988f(0x3e4)](){const _0x50bec0=_0x5e988f;this[_0x50bec0(0x3f1)][_0x50bec0(0x4b5)]([jt]),this[_0x50bec0(0x3f1)][_0x50bec0(0x329)](jt);let _0x5f457f=this[_0x50bec0(0x3f1)];[[Q],[G],[j],[J],[X],[H],[W],[B],[Y],[Pt]][_0x50bec0(0x424)](_0x30c572=>_0x5f457f[_0x50bec0(0x4b5)](_0x30c572)),(0x0,a[_0x50bec0(0x1e0)])(this['_injector'],[[Q],[G],[j],[X],[H],[W],[B],[Y],[Pt]]);}[_0x5e988f(0x31f)](){const _0x23d3a8=_0x5e988f;[P,S,wt,z,ae,N,se,ce][_0x23d3a8(0x424)](_0x4b3cbd=>this[_0x23d3a8(0x36f)](this[_0x23d3a8(0x263)][_0x23d3a8(0x1ae)](_0x4b3cbd)));}};E($,'type',a[_0x5e988f(0x15d)][_0x5e988f(0x2ba)]),E($,_0x5e988f(0x360),_0x5e988f(0x2bf)),E($,_0x5e988f(0x4d3),at),E($,_0x5e988f(0x355),ot),$=A([(0x0,a[_0x5e988f(0x390)])(h['UniverLicensePlugin'],g['UniverDocsPlugin'],s[_0x5e988f(0x2d4)],d[_0x5e988f(0x2be)],c[_0x5e988f(0x2fa)],o[_0x5e988f(0x191)],_[_0x5e988f(0x1cd)],m[_0x5e988f(0x282)],r['UniverShapeEditorPlugin'],v[_0x5e988f(0x48c)],i[_0x5e988f(0x359)],l[_0x5e988f(0x20c)],e['UniverShapeEditorUIPlugin']),k(0x1,(0x0,a[_0x5e988f(0x334)])(a[_0x5e988f(0x393)])),k(0x2,a['ICommandService']),k(0x3,a['IConfigService']),k(0x4,c[_0x5e988f(0x18e)])],$),exports[_0x5e988f(0x21b)]=nt,exports[_0x5e988f(0x22e)]=it,Object[_0x5e988f(0x200)](exports,_0x5e988f(0x39c),{'enumerable':!0x0,'get':function(){return Z;}}),Object['defineProperty'](exports,'UniverSheetsShapeUIPlugin',{'enumerable':!0x0,'get':function(){return $;}});
1
+ const _0xe5948a=_0x4ecd;(function(_0x262071,_0x281139){const _0x2d9306=_0x4ecd,_0x420b30=_0x262071();while(!![]){try{const _0x2b037a=-parseInt(_0x2d9306(0x1ca))/0x1+-parseInt(_0x2d9306(0x24c))/0x2*(-parseInt(_0x2d9306(0x44d))/0x3)+parseInt(_0x2d9306(0x358))/0x4*(parseInt(_0x2d9306(0x178))/0x5)+parseInt(_0x2d9306(0x3e9))/0x6+-parseInt(_0x2d9306(0x4dd))/0x7+-parseInt(_0x2d9306(0x2c2))/0x8*(parseInt(_0x2d9306(0x220))/0x9)+parseInt(_0x2d9306(0x236))/0xa;if(_0x2b037a===_0x281139)break;else _0x420b30['push'](_0x420b30['shift']());}catch(_0x4510d0){_0x420b30['push'](_0x420b30['shift']());}}}(_0x4bec,0xeae1b),Object['defineProperty'](exports,Symbol[_0xe5948a(0x2dc)],{'value':_0xe5948a(0x32a)}));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/engine-render'),s=require('@univerjs/sheets'),c=require('@univerjs/sheets-drawing'),l=require('@univerjs/sheets-ui'),u=require('@univerjs/drawing'),d=require('rxjs'),f=require('@univerjs/drawing-ui'),p=require('@univerjs/design'),m=require('react/jsx-runtime'),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(_0x497d68,_0x33f34a){const _0x17bb84=_0xe5948a;let _0x5b14bf={};for(let _0x54de7e of Object[_0x17bb84(0x218)](_0x33f34a)){let _0xbb9bb=_0x33f34a[_0x54de7e],_0xc8d3f2=_0x497d68[_0x54de7e];_0x5b14bf[_0x54de7e]=_0xc8d3f2===void 0x0?void 0x0:typeof _0xbb9bb==_0x17bb84(0x37e)&&_0xbb9bb&&!Array[_0x17bb84(0x481)](_0xbb9bb)&&typeof _0xc8d3f2=='object'&&_0xc8d3f2&&!Array['isArray'](_0xc8d3f2)?x(_0xc8d3f2,_0xbb9bb):_0xc8d3f2;}return _0x5b14bf;}const S={'type':a[_0xe5948a(0x421)][_0xe5948a(0x30f)],'id':_0xe5948a(0x4ce),'handler':(_0x46058b,_0x17f5b3)=>{const _0x554e23=_0xe5948a;let _0x232248=_0x46058b[_0x554e23(0x41b)](i[_0x554e23(0x45f)]),{unitId:_0x2573ab,subUnitId:_0x1d9f2b,shapeType:_0x592821,shapeId:_0xcde04,shapeData:_0x1ef3ac,replaceShapeData:_0x113cfd,oldShapeJSON:_0x5c7460}=_0x17f5b3;if(!_0x232248[_0x554e23(0x3ae)](_0x2573ab,_0x1d9f2b,_0xcde04))return!0x1;let _0x2983b7=_0x46058b[_0x554e23(0x41b)](a['ICommandService']),_0x321236=_0x46058b['get'](a[_0x554e23(0x2bb)]),{oldShapeType:_0x389ce0,oldShapeData:_0x4e69e9={}}=_0x5c7460,_0x2c2410=_0x113cfd?_0x4e69e9:x(_0x4e69e9,_0x1ef3ac||{}),_0xd300f1={'id':i[_0x554e23(0x395)]['id'],'params':{'unitId':_0x2573ab,'subUnitId':_0x1d9f2b,'shapeId':_0xcde04,'shapeType':_0x592821,'shapeData':_0x1ef3ac,'replace':_0x113cfd}},_0x52fc4c={'id':i[_0x554e23(0x395)]['id'],'params':{'unitId':_0x2573ab,'subUnitId':_0x1d9f2b,'shapeId':_0xcde04,'shapeType':_0x389ce0,'shapeData':_0x2c2410,'replace':_0x113cfd}};return _0x2983b7[_0x554e23(0x293)](_0xd300f1['id'],_0xd300f1[_0x554e23(0x2c9)])?(_0x321236[_0x554e23(0x3ea)]({'unitID':_0x2573ab,'undoMutations':[_0x52fc4c],'redoMutations':[_0xd300f1]}),!0x0):!0x1;}};function C(_0x3bd4bf,_0x1cd766,_0x26b388,_0x3f31f9,_0x23af27,_0x595f13){const _0x1e35d6=_0xe5948a;let _0x156b3a={'unitId':_0x1cd766,'subUnitId':_0x26b388,'shapeId':_0x3f31f9,'shapeData':_0x595f13,'oldShapeJSON':_0x23af27};return _0x3bd4bf[_0x1e35d6(0x17f)](S['id'],_0x156b3a);}function w(_0x4bf1b7,_0x3ae627,_0x394310,_0x597fce,_0x3d95a2,_0x246ef4){let _0x3308eb={'unitId':_0x3ae627,'subUnitId':_0x394310,'shapeId':_0x597fce,'shapeData':_0x246ef4,'oldShapeJSON':_0x3d95a2};return _0x4bf1b7['executeCommand'](S['id'],_0x3308eb);}function T(_0x1c6929){'@babel/helpers - typeof';const _0x2dfe25=_0xe5948a;return T=typeof Symbol==_0x2dfe25(0x3da)&&typeof Symbol[_0x2dfe25(0x315)]=='symbol'?function(_0x647172){return typeof _0x647172;}:function(_0x37627d){const _0x50d22f=_0x2dfe25;return _0x37627d&&typeof Symbol==_0x50d22f(0x3da)&&_0x37627d[_0x50d22f(0x265)]===Symbol&&_0x37627d!==Symbol[_0x50d22f(0x22d)]?_0x50d22f(0x35c):typeof _0x37627d;},T(_0x1c6929);}function ee(_0x5551d4,_0x4f5634){const _0x21e5c0=_0xe5948a;if(T(_0x5551d4)!='object'||!_0x5551d4)return _0x5551d4;var _0x488983;if(typeof Symbol<'u'&&(_0x488983=_0x5551d4[Symbol[_0x21e5c0(0x4d2)]])!==void 0x0){var _0x21bba1=_0x488983[_0x21e5c0(0x16d)](_0x5551d4,_0x4f5634||_0x21e5c0(0x338));if(T(_0x21bba1)!=_0x21e5c0(0x37e))return _0x21bba1;throw TypeError(_0x21e5c0(0x42d));}return(_0x4f5634===_0x21e5c0(0x4a6)?String:Number)(_0x5551d4);}function te(_0x35bdb2){const _0x2369ba=_0xe5948a;var _0xad17be=ee(_0x35bdb2,_0x2369ba(0x4a6));return T(_0xad17be)==_0x2369ba(0x35c)?_0xad17be:_0xad17be+'';}function E(_0x58e4ea,_0x442f93,_0x2eb025){const _0x32d6ec=_0xe5948a;return(_0x442f93=te(_0x442f93))in _0x58e4ea?Object[_0x32d6ec(0x439)](_0x58e4ea,_0x442f93,{'value':_0x2eb025,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x58e4ea[_0x442f93]=_0x2eb025,_0x58e4ea;}function ne(_0x2eefa9,_0x430e3c,_0xd4c45c){const _0x23f41e=_0xe5948a;let _0xc3a479={..._0x430e3c,'dataModel':{..._0x430e3c[_0x23f41e(0x500)]??{},..._0xd4c45c?{'doc':_0xd4c45c}:null}},_0x4818ca=(0x0,e[_0x23f41e(0x48b)])(_0x2eefa9,_0xc3a479),_0x9e3430=(0x0,e[_0x23f41e(0x282)])(_0x4818ca);return{'clip':(0x0,e['shouldClipShapeTextDocument'])(_0x4818ca,_0x9e3430),'wrapStrategy':_0x9e3430};}var D=class extends o['Shape']{constructor(_0x3c5f21,_0x1d66fd){const _0x203fd0=_0xe5948a;super(_0x3c5f21,_0x1d66fd),E(this,_0x203fd0(0x39d),[]),E(this,_0x203fd0(0x4e6),void 0x0),E(this,'_formulaAnimation',new e[(_0x203fd0(0x166))](()=>this[_0x203fd0(0x49d)](!0x0),()=>this[_0x203fd0(0x28f)]())),E(this,_0x203fd0(0x262),!0x0),E(this,_0x203fd0(0x39c),a[_0x203fd0(0x41e)][_0x203fd0(0x48f)]),E(this,_0x203fd0(0x273),!0x0),this[_0x203fd0(0x4e6)]={..._0x1d66fd},this[_0x203fd0(0x225)][_0x203fd0(0x268)](_0x1d66fd[_0x203fd0(0x20b)],_0x1d66fd[_0x203fd0(0x476)]!==!0x1),this['_init'](),this[_0x203fd0(0x28f)]();}[_0xe5948a(0x49a)](){const _0x297e7e=_0xe5948a;this[_0x297e7e(0x183)][_0x297e7e(0x388)](_0x1aa60d=>{const _0x34518a=_0x297e7e;this[_0x34518a(0x189)](_0x1aa60d);});}['setPrstGeom'](_0x531c2a){const _0x2d28da=_0xe5948a;this[_0x2d28da(0x4e6)][_0x2d28da(0x3de)]=_0x531c2a;}[_0xe5948a(0x191)](_0xfb6355){const _0x5175a9=_0xe5948a;if(this['_props'][_0x5175a9(0x250)])return null;let _0x4a9209=this[_0x5175a9(0x368)](_0xfb6355),{width:_0x3505fc,height:_0x3ff160}=this[_0x5175a9(0x243)]();return(0x0,e[_0x5175a9(0x28d)])(this[_0x5175a9(0x39d)],{'x':(this[_0x5175a9(0x1b1)]?-_0x4a9209['x']:_0x4a9209['x'])+_0x3505fc/0x2,'y':_0x4a9209['y']+_0x3ff160/0x2});}['setEditing'](_0x6e22ff){const _0x39c0f6=_0xe5948a;this[_0x39c0f6(0x4e6)][_0x39c0f6(0x250)]=_0x6e22ff,this['makeDirty'](!0x0);}[_0xe5948a(0x180)](_0x487604,_0x31fe4a=!0x0){const _0x1a9660=_0xe5948a;this['_formulaAnimation'][_0x1a9660(0x268)](_0x487604,_0x31fe4a),this['_props']['formulaPresentation']=_0x487604,this[_0x1a9660(0x28f)](),this[_0x1a9660(0x49d)](!0x0);}[_0xe5948a(0x28f)](){const _0x208f1f=_0xe5948a;let _0xb7ee21=this[_0x208f1f(0x4e6)][_0x208f1f(0x2fa)],_0x44e3cf=_0xb7ee21[_0x208f1f(0x199)](),_0x4c4ddf=(0x0,e[_0x208f1f(0x25c)])(_0x44e3cf==null?void 0x0:_0x44e3cf[_0x208f1f(0x500)]),_0x58d1ba=_0x4c4ddf==null?void 0x0:_0x4c4ddf[_0x208f1f(0x379)],_0x3a28da=this['_formulaAnimation'][_0x208f1f(0x252)]();if(!_0x58d1ba||_0x3a28da[_0x208f1f(0x26f)]===0x0)return;_0xb7ee21['updateContext']({'width':this[_0x208f1f(0x33d)],'height':this[_0x208f1f(0x25e)]});let _0x404756=(0x0,e[_0x208f1f(0x16c)])({'documentData':_0x3a28da[_0x208f1f(0x2ab)](_0x55d7ed=>(0x0,r[_0x208f1f(0x375)])(_0x58d1ba,_0x55d7ed)),'height':this[_0x208f1f(0x25e)],'shapeData':_0xb7ee21[_0x208f1f(0x192)](),'textRect':_0xb7ee21[_0x208f1f(0x22a)]({'left':0x0,'top':0x0,'width':this[_0x208f1f(0x33d)],'height':this[_0x208f1f(0x25e)]}),'width':this[_0x208f1f(0x33d)]});if(_0x404756){var _0x452dda;this[_0x208f1f(0x366)](_0x404756[_0x208f1f(0x33d)],_0x404756['height']),(_0x452dda=this[_0x208f1f(0x1d5)]())==null||(_0x452dda=_0x452dda[_0x208f1f(0x324)]())==null||_0x452dda[_0x208f1f(0x253)]();}}get['unitId'](){const _0x577f70=_0xe5948a;return this['_props'][_0x577f70(0x40e)];}get[_0xe5948a(0x1e9)](){const _0x214c48=_0xe5948a;return this[_0x214c48(0x4e6)][_0x214c48(0x1e9)];}['_updateSrcRectByTransform'](_0x6c4f53){const _0x2a28b9=_0xe5948a;if(this[_0x2a28b9(0x4e6)]['srcRect']==null||!this['_transformCalculateSrcRect'])return;let {width:_0x469c92,height:_0x22032c}=this,{width:_0x462df4=0x0,height:_0x4f3ad3=0x0}=_0x6c4f53[_0x2a28b9(0x2d3)],{left:_0x374cb5=0x0,top:_0x33a6f7=0x0,right:_0x2dd8bc=0x0,bottom:_0x1e628f=0x0}=this['_props'][_0x2a28b9(0x17a)],_0x3f21e6=_0x374cb5,_0x54eae1=_0x33a6f7,_0x10cfa5=_0x2dd8bc,_0x23967d=_0x1e628f,_0x428e47=!0x1;if(_0x462df4!==0x0&&_0x462df4!==_0x469c92){let _0x217efe=_0x374cb5/_0x462df4,_0x21aefa=_0x2dd8bc/_0x462df4;_0x3f21e6=_0x469c92*_0x217efe,_0x10cfa5=_0x469c92*_0x21aefa,_0x428e47=!0x0;}if(_0x4f3ad3!==0x0&&_0x4f3ad3!==_0x22032c){let _0x10afa5=_0x33a6f7/_0x4f3ad3,_0x471643=_0x1e628f/_0x4f3ad3;_0x54eae1=_0x22032c*_0x10afa5,_0x23967d=_0x22032c*_0x471643,_0x428e47=!0x0;}_0x428e47&&this[_0x2a28b9(0x457)]({'left':_0x3f21e6,'top':_0x54eae1,'right':_0x10cfa5,'bottom':_0x23967d});}[_0xe5948a(0x457)](_0x1f7149){const _0x5c7d58=_0xe5948a;this[_0x5c7d58(0x4e6)][_0x5c7d58(0x17a)]=_0x1f7149,this[_0x5c7d58(0x49d)](!0x0);}[_0xe5948a(0x27e)](_0x573326){const _0x5d0d8a=_0xe5948a;this[_0x5d0d8a(0x4e6)][_0x5d0d8a(0x2f8)]=_0x573326,this[_0x5d0d8a(0x49d)](!0x0);}set[_0xe5948a(0x383)](_0x3f8755){const _0x4943f2=_0xe5948a;this[_0x4943f2(0x46f)]=_0x3f8755;}get[_0xe5948a(0x383)](){const _0x28411c=_0xe5948a;this[_0x28411c(0x46f)]||this[_0x28411c(0x37a)]();let _0x4cd1d6=this[_0x28411c(0x46f)][_0x28411c(0x45d)]();return this['transformForAngle'](_0x4cd1d6);}get[_0xe5948a(0x2fa)](){const _0x3a30e7=_0xe5948a;return this[_0x3a30e7(0x4e6)][_0x3a30e7(0x2fa)];}get[_0xe5948a(0x31a)](){const _0x5e4406=_0xe5948a;return this[_0x5e4406(0x4e6)][_0x5e4406(0x31a)];}get[_0xe5948a(0x475)](){return o['RENDER_CLASS_TYPE']['SHAPE'];}[_0xe5948a(0x1dc)](_0x45b20a,_0x3dc49f,_0x46371d,_0x13e206){const _0x31028b=_0xe5948a;let _0x5c17b2=this[_0x31028b(0x4e6)]['shapeModel'];if(!_0x5c17b2||!_0x3dc49f)return;let _0x496674=_0x46371d??this[_0x31028b(0x33d)],_0x239ee9=_0x13e206??this[_0x31028b(0x25e)],_0x2ae4c8={'shapeType':_0x5c17b2['getShapeType'](),'width':_0x496674,'height':_0x239ee9},_0x57c774={'renderMode':n['ShapeRenderModeEnum'][_0x31028b(0x2f2)],'oKey':this[_0x31028b(0x258)],'image':this['_props']['image'],'angle':this[_0x31028b(0x2ee)]};_0x5c17b2[_0x31028b(0x4b1)](_0x2ae4c8),_0x45b20a[_0x31028b(0x2a7)]();let _0x543fcc={'top':0x0,'left':0x0,'width':_0x496674,'height':_0x239ee9},_0x3c4e18=_0x5c17b2[_0x31028b(0x344)](_0x543fcc);_0x3c4e18?this[_0x31028b(0x209)](_0x45b20a,_0x3c4e18,_0x119beb=>{const _0x187e8e=_0x31028b;_0x5c17b2[_0x187e8e(0x400)](_0x119beb,_0x543fcc,_0x57c774);}):(this[_0x31028b(0x4e2)](),_0x5c17b2['render'](_0x45b20a,_0x543fcc,_0x57c774)),_0x45b20a[_0x31028b(0x169)]();let _0x4ef577=_0x5c17b2['getShapeTextData'](),_0x2d0b08=_0x5c17b2['getShapeTextRect'](_0x543fcc),_0x2fdabf=_0x5c17b2[_0x31028b(0x271)]();if(_0x4ef577&&_0x2d0b08&&!_0x2fdabf){_0x45b20a[_0x31028b(0x2a7)](),this[_0x31028b(0x2cf)]()[_0x31028b(0x1b1)]&&_0x45b20a[_0x31028b(0x2cd)](-0x1,0x1);let _0x4027dc=_0x496674/0x2,_0x11e962=_0x239ee9/0x2;_0x45b20a[_0x31028b(0x3c9)](-_0x4027dc,-_0x11e962),_0x45b20a[_0x31028b(0x443)](),this[_0x31028b(0x159)](_0x45b20a,_0x4ef577,_0x2d0b08),_0x45b20a[_0x31028b(0x169)]();}}[_0xe5948a(0x2db)](_0x43bbf2){}[_0xe5948a(0x159)](_0xa38b34,_0x208e35,_0x535770){const _0x5e7eb9=_0xe5948a;var _0x469396;this[_0x5e7eb9(0x39d)]=[],this[_0x5e7eb9(0x4e6)][_0x5e7eb9(0x250)]||(!((_0x469396=_0x208e35[_0x5e7eb9(0x500)])!=null&&_0x469396[_0x5e7eb9(0x379)])&&_0x5e7eb9(0x3bd)in _0x208e35&&_0x208e35[_0x5e7eb9(0x3bd)]===!0x1?this['_drawSimpleText'](_0xa38b34,_0x208e35,_0x535770):this[_0x5e7eb9(0x3b8)](_0xa38b34,_0x208e35,_0x535770));}['_drawSimpleText'](_0x25ab39,_0x3ab3ff,_0x2fbc9a){const _0x1ab632=_0xe5948a;this[_0x1ab632(0x3b8)](_0x25ab39,{..._0x3ab3ff,'text':_0x3ab3ff[_0x1ab632(0x33a)]??'','dataModel':{'doc':(0x0,e[_0x1ab632(0x2e4)])(_0x3ab3ff,_0x1ab632(0x300)+this[_0x1ab632(0x258)])}},_0x2fbc9a);}[_0xe5948a(0x3b8)](_0x4fc58e,_0x281a40,_0x4b9e27){const _0x3f57f0=_0xe5948a;(0x0,e[_0x3f57f0(0x24b)])(_0x4fc58e,this[_0x3f57f0(0x225)],(_0x50e91d,_0x13d284,_0x1bd3fa)=>{const _0x4b4f78=_0x3f57f0;this[_0x4b4f78(0x1fb)](_0x50e91d,_0x281a40,_0x4b9e27,_0x13d284,_0x1bd3fa===_0x4b4f78(0x420));});}['_drawRichTextLayer'](_0x3e811e,_0x120ff2,_0x41cf6f,_0x362492,_0x2f46d7){const _0x3473b3=_0xe5948a;let _0x31cf24=this[_0x3473b3(0x4e6)][_0x3473b3(0x37d)];if(!_0x120ff2[_0x3473b3(0x500)]||!_0x31cf24)return;let _0x7f64b0=(0x0,e[_0x3473b3(0x25c)])(_0x120ff2[_0x3473b3(0x500)]);if(!_0x7f64b0)return;let _0x4325dc=_0x7f64b0[_0x3473b3(0x379)];if(!_0x4325dc)return;let _0x35baff=(0x0,r['createShapeFormulaDocument'])(_0x4325dc,_0x362492),_0x31a189=_0x7f64b0['va']??a[_0x3473b3(0x45b)][_0x3473b3(0x35d)],_0x55fa85=_0x7f64b0['ha']??a[_0x3473b3(0x1af)][_0x3473b3(0x16b)],_0x8217fc=ne(this[_0x3473b3(0x4e6)][_0x3473b3(0x2fa)]['getShapeData'](),_0x120ff2,_0x35baff),_0x1b7ea9=_0x120ff2[_0x3473b3(0x4ad)],_0x46a205=(0x0,e[_0x3473b3(0x244)])(_0x35baff,{'isHorizontal':_0x1b7ea9!==!0x1,'textRect':_0x41cf6f,'verticalAlign':_0x31a189,'horizontalAlign':_0x55fa85,'wrapStrategy':_0x8217fc[_0x3473b3(0x1b7)]}),_0x260326=new a[(_0x3473b3(0x263))](_0x46a205),_0x1813ca=new o[(_0x3473b3(0x392))](_0x260326),_0x4a68d4=o[_0x3473b3(0x442)][_0x3473b3(0x356)](_0x1813ca,_0x31cf24);_0x4a68d4[_0x3473b3(0x4e5)]();let _0x5341e7=_0x4a68d4[_0x3473b3(0x211)]()[_0x3473b3(0x34d)],_0xe8374f=(0x0,e[_0x3473b3(0x19b)])({'contentHeight':_0x5341e7,'verticalAlign':_0x31a189,'viewportHeight':_0x41cf6f[_0x3473b3(0x25e)]});_0x260326[_0x3473b3(0x3b7)]({'pageSize':{'width':_0x1b7ea9===!0x1?_0x41cf6f[_0x3473b3(0x25e)]:_0x41cf6f[_0x3473b3(0x33d)],'height':(0x0,e[_0x3473b3(0x20f)])(_0x35baff,_0xe8374f['contentHeight'])}}),_0x260326[_0x3473b3(0x171)]({'t':_0xe8374f['marginTop']}),_0x4a68d4[_0x3473b3(0x4e5)]();let _0x1b37e5=new o[(_0x3473b3(0x316))]('shape-text-'+this[_0x3473b3(0x258)],_0x4a68d4,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x3473b3(0x49d)](!0x0)});_0x1b37e5[_0x3473b3(0x366)](_0x41cf6f[_0x3473b3(0x33d)],_0xe8374f[_0x3473b3(0x45e)]),_0x3e811e[_0x3473b3(0x2a7)](),_0x3e811e['translateWithPrecision'](_0x41cf6f[_0x3473b3(0x376)],_0x41cf6f[_0x3473b3(0x3c1)]),_0x8217fc['clip']&&(_0x3e811e[_0x3473b3(0x443)](),_0x3e811e['rect'](0x0,_0xe8374f[_0x3473b3(0x3ac)],_0x41cf6f[_0x3473b3(0x33d)],_0xe8374f['clipHeight']),_0x3e811e[_0x3473b3(0x434)]()),_0xe8374f[_0x3473b3(0x2c3)]&&_0x3e811e[_0x3473b3(0x50b)](0x0,_0xe8374f[_0x3473b3(0x2c3)]),_0x1b37e5[_0x3473b3(0x389)](_0x3e811e),_0x2f46d7&&(this[_0x3473b3(0x39d)]=(0x0,e[_0x3473b3(0x2d5)])(_0x1b37e5,{'left':_0x41cf6f[_0x3473b3(0x376)],'top':_0x41cf6f['top']+_0xe8374f[_0x3473b3(0x2c3)]},_0x8217fc['clip']?{'left':_0x41cf6f[_0x3473b3(0x376)],'right':_0x41cf6f['left']+_0x41cf6f[_0x3473b3(0x33d)],'top':_0x41cf6f[_0x3473b3(0x3c1)]+_0xe8374f[_0x3473b3(0x3ac)],'bottom':_0x41cf6f[_0x3473b3(0x3c1)]+_0xe8374f[_0x3473b3(0x3ac)]+_0xe8374f[_0x3473b3(0x414)]}:void 0x0)),_0x3e811e['restore'](),_0x1b37e5[_0x3473b3(0x2c1)](),_0x4a68d4[_0x3473b3(0x2c1)](),_0x1813ca['dispose'](),_0x260326[_0x3473b3(0x2c1)]();}['render'](_0x21d503,_0x13c602,_0xf1f2bc=!0x1){const _0x207885=_0xe5948a;if(!this[_0x207885(0x1c4)])return this[_0x207885(0x49d)](!0x1),this;let {width:_0x44fe94,height:_0x1c8533,left:_0x41390e,top:_0x1d3692}=this,_0x599eac=this[_0x207885(0x243)]();if(_0x44fe94=_0x599eac[_0x207885(0x33d)],_0x1c8533=_0x599eac[_0x207885(0x25e)],_0x41390e=_0x599eac['left'],_0x1d3692=_0x599eac[_0x207885(0x3c1)],this['isRender'](_0x13c602)){let {top:_0x43f480,left:_0x57c727,bottom:_0x7b1dc6,right:_0x1565df}=_0x13c602[_0x207885(0x16a)];if(_0x44fe94+this[_0x207885(0x1cf)]+_0x41390e<_0x57c727||_0x1565df<_0x41390e||_0x1c8533+this[_0x207885(0x1cf)]+_0x1d3692<_0x43f480||_0x7b1dc6<_0x1d3692)return this;}let _0x48ada3=_0x41390e+_0x44fe94/0x2,_0x44de87=_0x1d3692+_0x1c8533/0x2,_0x3cb3ec=this[_0x207885(0x383)][_0x207885(0x2f0)]();if(this['_props'][_0x207885(0x250)]){let _0x1a081e=this[_0x207885(0x2cf)](),_0x202647=new o[(_0x207885(0x32d))]();_0x202647[_0x207885(0x3ca)]({..._0x1a081e}),_0x3cb3ec=_0x202647[_0x207885(0x2f0)]();}return _0x21d503[_0x207885(0x2a7)](),this[_0x207885(0x4e6)][_0x207885(0x2fa)][_0x207885(0x38b)]===!0x0||_0x21d503[_0x207885(0x383)](_0x3cb3ec[0x0],_0x3cb3ec[0x1],_0x3cb3ec[0x2],_0x3cb3ec[0x3],_0x48ada3,_0x44de87),this[_0x207885(0x1dc)](_0x21d503,_0x13c602,_0x44fe94,_0x1c8533),_0x21d503['restore'](),this[_0x207885(0x49d)](!0x1),this;}[_0xe5948a(0x368)](_0x1811c7){const _0xef0a72=_0xe5948a;let {left:_0x40d0f1,top:_0x32996f,width:_0x14f7eb,height:_0x182868}=this[_0xef0a72(0x243)](),_0x5af09c=this[_0xef0a72(0x383)]['getMatrix'](),_0x3b91f9=_0x40d0f1+_0x14f7eb/0x2,_0x5a5930=_0x32996f+_0x182868/0x2,_0x4996a0=new o[(_0xef0a72(0x32d))]([_0x5af09c[0x0],_0x5af09c[0x1],_0x5af09c[0x2],_0x5af09c[0x3],_0x3b91f9,_0x5a5930]),_0x4661a7=this[_0xef0a72(0x36b)]();return(this['isInGroup']&&(_0x4661a7==null?void 0x0:_0x4661a7['classType'])===o['RENDER_CLASS_TYPE'][_0xef0a72(0x221)]?_0x4661a7['ancestorTransform']['multiply'](_0x4996a0):_0x4996a0)[_0xef0a72(0x37c)]()[_0xef0a72(0x217)](_0x1811c7);}['isHit'](_0x333c09){const _0x4cfc9b=_0xe5948a;let {left:_0x2cc673,top:_0x17730b,width:_0x406a8a,height:_0x325414}=this[_0x4cfc9b(0x243)](),_0x8e1900=_0x2cc673+_0x406a8a/0x2,_0x19cd07=_0x17730b+_0x325414/0x2,_0x935a92=this[_0x4cfc9b(0x383)][_0x4cfc9b(0x2f0)](),_0x3e1f4d=new o['Transform']([_0x935a92[0x0],_0x935a92[0x1],_0x935a92[0x2],_0x935a92[0x3],_0x8e1900,_0x19cd07]),_0x3f28c2=this['getParent'](),_0x200013=(this[_0x4cfc9b(0x363)]&&(_0x3f28c2==null?void 0x0:_0x3f28c2[_0x4cfc9b(0x475)])===o[_0x4cfc9b(0x1cb)]['GROUP']?_0x3f28c2[_0x4cfc9b(0x341)][_0x4cfc9b(0x464)](_0x3e1f4d):_0x3e1f4d)['invert']()['applyPoint'](_0x333c09),_0x522098=_0x406a8a/0x2,_0x17889a=_0x325414/0x2,_0x5cacfc=this[_0x4cfc9b(0x4e6)][_0x4cfc9b(0x2fa)];return _0x5cacfc&&_0x5cacfc[_0x4cfc9b(0x271)]()?_0x5cacfc[_0x4cfc9b(0x2e7)](_0x200013['x'],_0x200013['y'],_0x406a8a,_0x325414):_0x200013['x']>=-_0x522098-this[_0x4cfc9b(0x1cf)]/0x2&&_0x200013['x']<=_0x522098+this[_0x4cfc9b(0x1cf)]/0x2&&_0x200013['y']>=-_0x17889a-this[_0x4cfc9b(0x1cf)]/0x2&&_0x200013['y']<=_0x17889a+this[_0x4cfc9b(0x1cf)]/0x2;}[_0xe5948a(0x2c1)](){const _0x38b870=_0xe5948a;this[_0x38b870(0x225)][_0x38b870(0x2c1)](),this[_0x38b870(0x4e6)]['shapeModel']=null,super[_0x38b870(0x2c1)]();}},O=class extends o[_0xe5948a(0x1c9)]{constructor(_0x58aabd,_0xe86de0){const _0x22ee23=_0xe5948a;super(_0x58aabd,_0xe86de0),E(this,'_shapeId',null),E(this,_0x22ee23(0x214),null),E(this,_0x22ee23(0x15b),null),E(this,'_subUnitId',null),_0xe86de0&&this[_0x22ee23(0x30b)](_0xe86de0);}[_0xe5948a(0x1ff)](){const _0x1e4891=_0xe5948a;return{'unitId':this[_0x1e4891(0x15b)],'subUnitId':this[_0x1e4891(0x264)],'drawingId':this[_0x1e4891(0x1d8)]};}['setShapeProps'](_0x14ac8f){const _0x443a9f=_0xe5948a;_0x14ac8f[_0x443a9f(0x31a)]!==void 0x0&&(this[_0x443a9f(0x1d8)]=_0x14ac8f['shapeId']),_0x14ac8f[_0x443a9f(0x3c4)]!==void 0x0&&(this[_0x443a9f(0x214)]=_0x14ac8f[_0x443a9f(0x3c4)]),_0x14ac8f[_0x443a9f(0x40e)]!==void 0x0&&(this[_0x443a9f(0x15b)]=_0x14ac8f[_0x443a9f(0x40e)]),_0x14ac8f[_0x443a9f(0x1e9)]!==void 0x0&&(this[_0x443a9f(0x264)]=_0x14ac8f[_0x443a9f(0x1e9)]),this[_0x443a9f(0x1fc)]({'width':_0x14ac8f[_0x443a9f(0x33d)],'height':_0x14ac8f['height']});}[_0xe5948a(0x1dc)](_0x5b6c92){const _0x6f7e2a=_0xe5948a;o[_0x6f7e2a(0x2c4)][_0x6f7e2a(0x407)](_0x5b6c92,{'radius':n[_0x6f7e2a(0x417)][_0x6f7e2a(0x24d)],'fill':n[_0x6f7e2a(0x417)]['adjHandleFill'],'stroke':n[_0x6f7e2a(0x417)][_0x6f7e2a(0x4f5)],'strokeWidth':0x1,'evented':!0x0});}};function k(_0x12977f,_0x54edc3){return function(_0x1fec71,_0x295c1d){_0x54edc3(_0x1fec71,_0x295c1d,_0x12977f);};}function A(_0x23585b,_0x37beaa,_0xb0f199,_0x502af6){const _0x45fa87=_0xe5948a;var _0x371d7b=arguments[_0x45fa87(0x26f)],_0x5d0998=_0x371d7b<0x3?_0x37beaa:_0x502af6===null?_0x502af6=Object['getOwnPropertyDescriptor'](_0x37beaa,_0xb0f199):_0x502af6,_0x310dd8;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x45fa87(0x3da))_0x5d0998=Reflect[_0x45fa87(0x4fe)](_0x23585b,_0x37beaa,_0xb0f199,_0x502af6);else{for(var _0x386278=_0x23585b[_0x45fa87(0x26f)]-0x1;_0x386278>=0x0;_0x386278--)(_0x310dd8=_0x23585b[_0x386278])&&(_0x5d0998=(_0x371d7b<0x3?_0x310dd8(_0x5d0998):_0x371d7b>0x3?_0x310dd8(_0x37beaa,_0xb0f199,_0x5d0998):_0x310dd8(_0x37beaa,_0xb0f199))||_0x5d0998);}return _0x371d7b>0x3&&_0x5d0998&&Object[_0x45fa87(0x439)](_0x37beaa,_0xb0f199,_0x5d0998),_0x5d0998;}let j=class extends a[_0xe5948a(0x1e6)]{constructor(_0x1a3a78,_0x5371db,_0x213361,_0x2d77eb,_0x1ef5a1,_0x5d5bed){const _0x3c732b=_0xe5948a;super(),this[_0x3c732b(0x1c6)]=_0x1a3a78,this[_0x3c732b(0x4f0)]=_0x5371db,this[_0x3c732b(0x3dc)]=_0x213361,this[_0x3c732b(0x248)]=_0x2d77eb,this[_0x3c732b(0x373)]=_0x1ef5a1,this['_shapeFormulaService']=_0x5d5bed,E(this,'_formulaShapes',new Map()),this[_0x3c732b(0x160)](this['_shapeFormulaService'][_0x3c732b(0x430)][_0x3c732b(0x208)](_0x42a3a9=>{const _0x1cfe05=_0x3c732b;var _0x796131;(_0x796131=this[_0x1cfe05(0x1a4)]['get'](this[_0x1cfe05(0x3c0)](_0x42a3a9['unitId'],_0x42a3a9[_0x1cfe05(0x1e9)],_0x42a3a9['shapeId'])))==null||_0x796131[_0x1cfe05(0x4fc)](_0x2a3089=>_0x2a3089[_0x1cfe05(0x180)](_0x42a3a9[_0x1cfe05(0x466)],_0x42a3a9[_0x1cfe05(0x1d9)]));})),this[_0x3c732b(0x160)](this[_0x3c732b(0x1c6)][_0x3c732b(0x1cd)][_0x3c732b(0x208)](_0x357bbe=>{const _0x239e89=_0x3c732b;_0x357bbe[_0x239e89(0x4fc)](_0x49aa42=>{const _0x4e5138=_0x239e89;this[_0x4e5138(0x1a4)][_0x4e5138(0x2bf)](this[_0x4e5138(0x3c0)](_0x49aa42['unitId'],_0x49aa42[_0x4e5138(0x1e9)],_0x49aa42[_0x4e5138(0x302)]));});}));}['renderDrawingShape'](_0x1754e0,_0x405294,_0x16426a){const _0x525696=_0xe5948a;let {transform:_0x3ac127,drawingType:_0x3fd2e2,isMultiTransform:_0x296f47,transforms:_0x2c706e}=_0x1754e0;if(_0x3fd2e2===a[_0x525696(0x41e)]['DRAWING_SHAPE']&&this[_0x525696(0x1c6)][_0x525696(0x48d)]()&&_0x3ac127)return(_0x296f47&&_0x2c706e?_0x2c706e:[_0x3ac127])[_0x525696(0x3a4)]((_0x510539,_0x652c25)=>{const _0x579c1e=_0x525696;var _0x8bbd95;let _0x4b79a0=(0x0,u['getDrawingShapeKeyByDrawingSearch'])(_0x1754e0,_0x296f47?_0x652c25:void 0x0),_0xe49542=_0x405294['getObjectIncludeInGroup'](_0x4b79a0);if(_0xe49542)return _0xe49542 instanceof D&&this[_0x579c1e(0x288)](_0xe49542,{'unitId':_0x1754e0[_0x579c1e(0x40e)],'subUnitId':_0x1754e0[_0x579c1e(0x1e9)],'shapeId':_0x1754e0[_0x579c1e(0x302)]}),_0xe49542['transformByState'](_0x510539),[];let _0x4ed901=this[_0x579c1e(0x317)](_0x1754e0,_0x510539,_0x4b79a0,_0x405294);if(!_0x4ed901)return[];let _0x57d625=this['_loadShapePictureFill'](_0x4ed901,_0x4ed901['shapeModel'][_0x579c1e(0x192)]());return _0x57d625&&(_0x16426a==null||(_0x8bbd95=_0x16426a[_0x579c1e(0x482)])==null||_0x8bbd95[_0x579c1e(0x2d0)](_0x57d625)),[_0x4ed901];});}[_0xe5948a(0x317)](_0xfb6e4d,_0x1d7e9b,_0x113103,_0xefad36){const _0x2c4261=_0xe5948a;let {unitId:_0x53c2e4,subUnitId:_0xdfdc1b,drawingId:_0x2c2a74,groupId:_0x4b8615,hidden:_0x4b7948,selectable:_0x1ee60b,prstGeom:_0x3de984,srcRect:_0x3a4e2a}=_0xfb6e4d,_0x15b6e4=this[_0x2c4261(0x4f0)][_0x2c4261(0x3ae)](_0x53c2e4,_0xdfdc1b,_0x2c2a74);if(!_0x15b6e4)return;let _0x19cd44=this[_0x2c4261(0x1c6)]['getDrawingOrder'](_0x53c2e4,_0xdfdc1b),_0x54bb43=_0x19cd44[_0x2c4261(0x188)](_0x2c2a74),_0x2fed6a=(0x0,n['isConnectorShape'])(_0x15b6e4[_0x2c4261(0x325)]()),_0x28e6cf=_0x15b6e4[_0x2c4261(0x192)]()[_0x2c4261(0x2d4)],_0x395016={'unitId':_0x53c2e4,'subUnitId':_0xdfdc1b,'shapeId':_0x2c2a74};_0x28e6cf&&this['_shapeFormulaService'][_0x2c4261(0x357)](_0x395016,_0x28e6cf);let _0x24d54c=new D(_0x113103,{..._0x1d7e9b,'zIndex':_0x54bb43===-0x1?_0x19cd44[_0x2c4261(0x26f)]-0x1:_0x54bb43,'shapeModel':_0x15b6e4,'drawingType':a[_0x2c4261(0x41e)][_0x2c4261(0x48f)],'localeService':this[_0x2c4261(0x3dc)],'shapeId':_0x2c2a74,'unitId':_0x53c2e4,'subUnitId':_0xdfdc1b,'visible':_0x4b7948!==!0x0,'evented':_0x1ee60b!==!0x1,'formulaPresentation':_0x28e6cf?this['_shapeFormulaService'][_0x2c4261(0x1bb)](_0x395016):void 0x0,'animateFormulaPresentation':(_0x28e6cf==null?void 0x0:_0x28e6cf[_0x2c4261(0x1d9)])!==!0x1,'transformerConfig':{...e['SHAPE_EDITOR_TRANSFORMER_CONFIG'],..._0x2fed6a?{'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{},'moveBoundaryEnabled':!0x0}});if(_0x28e6cf){let _0x5e37e9=this[_0x2c4261(0x3c0)](_0x53c2e4,_0xdfdc1b,_0x2c2a74),_0x32ed23=this['_formulaShapes'][_0x2c4261(0x41b)](_0x5e37e9)??new Set();_0x32ed23[_0x2c4261(0x2d0)](_0x24d54c),this[_0x2c4261(0x1a4)][_0x2c4261(0x399)](_0x5e37e9,_0x32ed23);}return _0xefad36['addObject'](_0x24d54c,o[_0x2c4261(0x2d8)]),this['_drawingManagerService'][_0x2c4261(0x222)]()&&_0xefad36['attachTransformerTo'](_0x24d54c),_0x4b8615&&(0x0,f[_0x2c4261(0x35b)])({'drawingId':_0x4b8615,'unitId':_0x53c2e4,'subUnitId':_0xdfdc1b},_0x24d54c,_0xefad36,this['_drawingManagerService']),_0x3de984!=null&&_0x24d54c[_0x2c4261(0x416)](_0x3de984),_0x3a4e2a!=null&&_0x24d54c['setSrcRect'](_0x3a4e2a),_0x24d54c;}['_formulaKey'](_0x4bfc28,_0x4b1a0b,_0x1d92e7){return _0x4bfc28+'\x00'+_0x4b1a0b+'\x00'+_0x1d92e7;}[_0xe5948a(0x288)](_0x5cd9e8,_0xf072d7){const _0x1ae299=_0xe5948a;let _0x452ef1=this['_sheetsShapeService'][_0x1ae299(0x3ae)](_0xf072d7[_0x1ae299(0x40e)],_0xf072d7[_0x1ae299(0x1e9)],_0xf072d7[_0x1ae299(0x31a)]),_0x25229f=_0x452ef1==null?void 0x0:_0x452ef1[_0x1ae299(0x192)]()['formulaBinding'],_0x618cb1=this[_0x1ae299(0x3c0)](_0xf072d7[_0x1ae299(0x40e)],_0xf072d7['subUnitId'],_0xf072d7[_0x1ae299(0x31a)]);if(_0x25229f){this[_0x1ae299(0x1a9)]['register'](_0xf072d7,_0x25229f);let _0x330832=this['_formulaShapes'][_0x1ae299(0x41b)](_0x618cb1)??new Set();_0x330832[_0x1ae299(0x2d0)](_0x5cd9e8),this[_0x1ae299(0x1a4)][_0x1ae299(0x399)](_0x618cb1,_0x330832);}else{var _0x5625f1;this[_0x1ae299(0x1a9)][_0x1ae299(0x409)](_0xf072d7),(_0x5625f1=this['_formulaShapes']['get'](_0x618cb1))==null||_0x5625f1[_0x1ae299(0x2bf)](_0x5cd9e8);}_0x5cd9e8['setFormulaPresentation'](_0x25229f?this[_0x1ae299(0x1a9)][_0x1ae299(0x1bb)](_0xf072d7):void 0x0,(_0x25229f==null?void 0x0:_0x25229f[_0x1ae299(0x1d9)])!==!0x1);}[_0xe5948a(0x45c)](_0x1694af){const _0x3cbc39=_0xe5948a;let _0x309416=_0x1694af[_0x3cbc39(0x2fa)]['getShapeData'](),_0x44230a=_0x309416[_0x3cbc39(0x371)];!_0x44230a||_0x44230a[_0x3cbc39(0x411)]!==n[_0x3cbc39(0x3d4)][_0x3cbc39(0x4be)]||!_0x44230a['fillImageSource']?_0x1694af[_0x3cbc39(0x27e)](void 0x0):this['_loadShapePictureFill'](_0x1694af,_0x309416);}[_0xe5948a(0x364)](_0x67baf,_0x3a2d11){const _0x3e9d40=_0xe5948a;let _0x516527=_0x3a2d11[_0x3e9d40(0x371)];if(!_0x516527||_0x516527[_0x3e9d40(0x411)]!==n[_0x3e9d40(0x3d4)][_0x3e9d40(0x4be)]||!_0x516527[_0x3e9d40(0x196)])return;let _0xd0b077=_0x516527['fillImageSource'],_0x14ebf8=_0x516527[_0x3e9d40(0x47c)]??n['ImageSourceTypeEnum']['URL'],_0x4c20fd=this[_0x3e9d40(0x248)][_0x3e9d40(0x21a)](_0xd0b077,_0x14ebf8);if(_0x4c20fd)_0x67baf[_0x3e9d40(0x27e)](_0x4c20fd);else return this[_0x3e9d40(0x164)](_0x67baf,_0xd0b077,_0x14ebf8);}async[_0xe5948a(0x164)](_0x2f767b,_0x2811a5,_0x627539){const _0x50fc6d=_0xe5948a;let _0xbe000f;try{if(_0x627539===n['ImageSourceTypeEnum'][_0x50fc6d(0x2a6)])_0xbe000f=await this[_0x50fc6d(0x248)]['getImage'](_0x2811a5);else{if(_0x627539===n[_0x50fc6d(0x3e0)]['URL'])try{_0xbe000f=await this[_0x50fc6d(0x373)][_0x50fc6d(0x1b5)](_0x2811a5);}catch{_0xbe000f=_0x2811a5;}else _0xbe000f=_0x2811a5;}}catch(_0x58f4c3){console[_0x50fc6d(0x3d3)](_0x50fc6d(0x4e3),_0x58f4c3);return;}await new Promise(_0x521c83=>{const _0x9429a3=_0x50fc6d;let _0x192f60=new window['Image']();_0x192f60[_0x9429a3(0x30c)]=()=>{const _0x52e6d1=_0x9429a3;this[_0x52e6d1(0x248)][_0x52e6d1(0x1a2)](_0x2811a5,_0x627539,_0x192f60),_0x2f767b[_0x52e6d1(0x27e)](_0x192f60),_0x521c83();},_0x192f60['onerror']=()=>{const _0x1d4153=_0x9429a3;console['error'](_0x1d4153(0x3d0),_0x2811a5),_0x521c83();},_0x192f60[_0x9429a3(0x378)]=_0xbe000f;});}};j=A([k(0x0,u[_0xe5948a(0x3f0)]),k(0x1,(0x0,a[_0xe5948a(0x25d)])(i[_0xe5948a(0x45f)])),k(0x2,(0x0,a['Inject'])(a[_0xe5948a(0x309)])),k(0x3,a['IImageIoService']),k(0x4,a[_0xe5948a(0x467)]),k(0x5,(0x0,a['Inject'])(r[_0xe5948a(0x495)]))],j);let M=class extends a[_0xe5948a(0x1e6)]{constructor(_0xd1aee2,_0x28a931,_0x1237bd,_0x55b596,_0x351e33,_0x1e7230){const _0x1e940b=_0xe5948a;super(),this[_0x1e940b(0x1c6)]=_0xd1aee2,this['_sheetsShapeService']=_0x28a931,this[_0x1e940b(0x505)]=_0x1237bd,this[_0x1e940b(0x19d)]=_0x55b596,this[_0x1e940b(0x345)]=_0x351e33,this[_0x1e940b(0x256)]=_0x1e7230,E(this,_0x1e940b(0x451),null),E(this,'_unitId',null),E(this,'_subUnitId',null),E(this,_0x1e940b(0x304),void 0x0),E(this,_0x1e940b(0x47d),[]),E(this,_0x1e940b(0x2b1),0x0),E(this,_0x1e940b(0x31b),0x0),E(this,_0x1e940b(0x44f),0x0),E(this,_0x1e940b(0x352),0x0),E(this,'_isStartAdjusting',!0x1),E(this,_0x1e940b(0x3c7),void 0x0),E(this,_0x1e940b(0x44a),void 0x0),E(this,_0x1e940b(0x351),void 0x0),E(this,_0x1e940b(0x48a),void 0x0),E(this,'_isShouldShowDrawingShapeAdjust',!0x1),this[_0x1e940b(0x36e)](),this[_0x1e940b(0x2d6)]();}[_0xe5948a(0x18e)](_0x4bf9fe,_0x379535,_0x31ecc6){const _0x59e641=_0xe5948a;let _0xd9335a=this[_0x59e641(0x4f0)][_0x59e641(0x3ae)](_0x4bf9fe,_0x379535,_0x31ecc6);if(_0xd9335a)return _0xd9335a[_0x59e641(0x2db)]();}[_0xe5948a(0x2ae)](){const _0x48f6a3=_0xe5948a;this[_0x48f6a3(0x337)]();}[_0xe5948a(0x284)](){const _0x43aab9=_0xe5948a;this[_0x43aab9(0x19e)](!0x0);}['setShouldShowAdjust'](_0x1358aa){const _0x5593f5=_0xe5948a;this[_0x5593f5(0x26c)]=_0x1358aa;}[_0xe5948a(0x4a0)](_0x11ff55,_0x38fd99,_0x369da4,_0x1d3dc1){const _0x2bd352=_0xe5948a;let _0x545bd8=this['_sheetsShapeService'][_0x2bd352(0x3ae)](_0x11ff55,_0x38fd99,_0x369da4);if(_0x545bd8)return _0x545bd8['getAdjustInfoByName'](_0x1d3dc1);}[_0xe5948a(0x404)](_0x52e10e=!0x1){const _0x544c97=_0xe5948a;if(this[_0x544c97(0x15b)]===null||this[_0x544c97(0x264)]===null||this[_0x544c97(0x451)]===null)return;let _0x4bd63d=this['_renderManagerService']['getRenderUnitById'](this[_0x544c97(0x15b)]);if(!_0x4bd63d||!_0x4bd63d[_0x544c97(0x2d7)](l[_0x544c97(0x433)])[_0x544c97(0x26d)]())return;let {scene:_0x230b8a}=_0x4bd63d,_0x2e04e6={'unitId':this[_0x544c97(0x15b)],'subUnitId':this[_0x544c97(0x264)],'drawingId':this[_0x544c97(0x451)]},_0x195d90=this['_drawingManagerService']['getDrawingByParam'](_0x2e04e6),{transform:_0x10ae10}=_0x195d90;if(!_0x10ae10||_0x195d90['drawingType']!==a[_0x544c97(0x41e)][_0x544c97(0x48f)])return;let {left:_0x122d44,top:_0x166461,width:_0x2ba441,height:_0x4fec26,flipX:_0xd026cc,flipY:_0x295919,angle:_0xc2816=0x0}=_0x10ae10;if(_0x122d44===void 0x0||_0x166461===void 0x0)return;if(_0x52e10e){let _0x5644bc=this['_sheetsShapeService']['getShapeModel'](this[_0x544c97(0x15b)],this[_0x544c97(0x264)],this[_0x544c97(0x451)]);_0x5644bc==null||_0x5644bc[_0x544c97(0x4b1)]({'width':_0x2ba441??0x0,'height':_0x4fec26??0x0}),this[_0x544c97(0x304)]=_0x5644bc==null?void 0x0:_0x5644bc[_0x544c97(0x2db)]();}let _0x75a1d3=this[_0x544c97(0x304)];for(let _0x3fecc0=0x0;_0x3fecc0<_0x75a1d3[_0x544c97(0x26f)];_0x3fecc0++){let _0x3414c5=_0x75a1d3[_0x3fecc0],_0x29871b=_0x3414c5['x'],_0x244b33=_0x3414c5['y'];if(_0xd026cc&&(_0x29871b=(_0x2ba441||0x0)-_0x29871b),_0x295919&&(_0x244b33=(_0x4fec26||0x0)-_0x244b33),_0xc2816!==0x0){let _0x5e7f98=(_0x2ba441||0x0)/0x2,_0x3abecf=(_0x4fec26||0x0)/0x2,_0x29a41f=_0xc2816*Math['PI']/0xb4,_0x1212aa=Math['cos'](_0x29a41f),_0x48aea6=Math[_0x544c97(0x3af)](_0x29a41f),_0x1a81b3=_0x29871b-_0x5e7f98,_0x274088=_0x244b33-_0x3abecf;_0x29871b=_0x5e7f98+(_0x1a81b3*_0x1212aa-_0x274088*_0x48aea6),_0x244b33=_0x3abecf+(_0x1a81b3*_0x48aea6+_0x274088*_0x1212aa);}let _0x43e469={'x':_0x29871b,'y':_0x244b33,'adjName':_0x3414c5[_0x544c97(0x3c4)]};this['_addShapeAdjustControl'](_0x230b8a,_0x43e469,_0x43e469[_0x544c97(0x3c4)],_0x122d44,_0x166461,this['_unitId'],this[_0x544c97(0x264)]);}}[_0xe5948a(0x19e)](_0x480ebc=!0x1){const _0x5ec0fd=_0xe5948a;_0x480ebc&&(this[_0x5ec0fd(0x337)](),this[_0x5ec0fd(0x404)](_0x480ebc));}[_0xe5948a(0x2e5)](_0x22baff,_0x59910e,_0xb3a3c2,_0x15de57,_0x104e7c,_0x3338fd,_0x34c63b){const _0xc4fb61=_0xe5948a;if(!this[_0xc4fb61(0x451)])return;let _0x174ff2=_0x22baff[_0xc4fb61(0x1a0)](_0xc4fb61(0x2b6)+this['_activeShapeId']+'-'+_0xb3a3c2);if(_0x174ff2){_0x174ff2[_0xc4fb61(0x1fc)]({'left':_0x59910e['x']+_0x15de57-n[_0xc4fb61(0x417)][_0xc4fb61(0x24d)],'top':_0x59910e['y']+_0x104e7c-n['ShapeDefaultConfig'][_0xc4fb61(0x24d)]});return;}let _0x71c725={'left':_0x59910e['x']+_0x15de57-n['ShapeDefaultConfig']['adjHandleSize'],'top':_0x59910e['y']+_0x104e7c-n[_0xc4fb61(0x417)][_0xc4fb61(0x24d)],'adjName':_0xb3a3c2,'shapeId':this[_0xc4fb61(0x451)],'unitId':_0x3338fd,'subUnitId':_0x34c63b,'width':n[_0xc4fb61(0x417)]['adjHandleSize']+0x8,'height':n[_0xc4fb61(0x417)][_0xc4fb61(0x24d)]+0x8,'zIndex':o[_0xc4fb61(0x2d8)]+0x1,'evented':!0x0},_0x408252=new O('shape-adjust-point-'+this[_0xc4fb61(0x451)]+'-'+_0xb3a3c2,_0x71c725);this['_shapes'][_0xc4fb61(0x488)](_0x408252),this[_0xc4fb61(0x1d0)](_0x408252,_0x22baff,_0xb3a3c2),_0x22baff[_0xc4fb61(0x4bb)](_0x408252,o['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0xe5948a(0x337)](){const _0x1e4d66=_0xe5948a;this[_0x1e4d66(0x47d)][_0x1e4d66(0x26f)]!==0x0&&(this[_0x1e4d66(0x47d)][_0x1e4d66(0x4fc)](_0x35ea2b=>{const _0x2bfdf4=_0x1e4d66;_0x35ea2b[_0x2bfdf4(0x2c1)]();}),this[_0x1e4d66(0x47d)]=[]);}[_0xe5948a(0x3ab)](){const _0x155578=_0xe5948a;this[_0x155578(0x404)]();}['_getScrollInfo'](_0x11848b,_0x66cdfb){const _0x251019=_0xe5948a;var _0x453d26;let _0x537965={'x':0x0,'y':0x0};if(!_0x11848b||!_0x66cdfb)return _0x537965;let _0x1f97ef=this[_0x251019(0x505)][_0x251019(0x24f)](_0x11848b);if(!_0x1f97ef||!_0x1f97ef[_0x251019(0x2d7)](l[_0x251019(0x433)])[_0x251019(0x353)](_0x66cdfb))return _0x537965;let _0x2d1af3=_0x1f97ef[_0x251019(0x2d7)](l[_0x251019(0x455)]),_0x403911=_0x2d1af3==null?void 0x0:_0x2d1af3[_0x251019(0x1cc)]();if(!_0x403911)return _0x537965;let _0x58d493=(_0x453d26=this[_0x251019(0x345)][_0x251019(0x372)](_0x11848b))==null?void 0x0:_0x453d26[_0x251019(0x3c8)](_0x66cdfb);if(!_0x58d493)return _0x537965;let _0xe691f0=(0x0,l[_0x251019(0x3f9)])(_0x403911[_0x251019(0x49b)],_0x403911[_0x251019(0x290)],_0x1f97ef[_0x251019(0x1b0)],_0x58d493);return _0xe691f0?{'x':_0xe691f0[_0x251019(0x261)],'y':_0xe691f0[_0x251019(0x3a1)]}:_0x537965;}[_0xe5948a(0x1bf)](_0x4d1532,_0x515e4b){const _0x225748=_0xe5948a;var _0x2b247c;let _0x56ebc3=(_0x2b247c=this[_0x225748(0x345)][_0x225748(0x372)](_0x4d1532))==null?void 0x0:_0x2b247c['getSheetBySheetId'](_0x515e4b);return(_0x56ebc3==null?void 0x0:_0x56ebc3[_0x225748(0x4aa)]())??0x1;}['_attachAdjustEvent'](_0x15704d,_0x5accc9,_0x1aa8f5){const _0x3ada1e=_0xe5948a;this[_0x3ada1e(0x160)]((0x0,a['toDisposable'])(_0x15704d[_0x3ada1e(0x17e)][_0x3ada1e(0x388)]((_0x5d363c,_0x16e8ad)=>{const _0x403e6a=_0x3ada1e;var _0xa2e55a,_0xdcfd26,_0x1f0d40,_0x488805;let _0x1074b0=_0x15704d[_0x403e6a(0x1ff)]();this[_0x403e6a(0x3c7)]=this[_0x403e6a(0x4a0)](_0x1074b0['unitId'],_0x1074b0[_0x403e6a(0x1e9)],_0x1074b0[_0x403e6a(0x302)],_0x1aa8f5),this[_0x403e6a(0x44a)]=this['_sheetsShapeService']['getShapeModel'](_0x1074b0['unitId'],_0x1074b0[_0x403e6a(0x1e9)],_0x1074b0[_0x403e6a(0x302)]);let _0x492bc6=this[_0x403e6a(0x1c6)][_0x403e6a(0x2ca)]({'unitId':this[_0x403e6a(0x15b)],'subUnitId':this[_0x403e6a(0x264)],'drawingId':this[_0x403e6a(0x451)]}),{transform:_0x234175}=_0x492bc6;if(_0x234175){let {left:_0x3b2285,top:_0x28b7e5,width:_0x378bdb,height:_0x323a6d}=_0x234175;this[_0x403e6a(0x2b1)]=_0x3b2285||0x0,this[_0x403e6a(0x31b)]=_0x28b7e5||0x0,this[_0x403e6a(0x44f)]=_0x378bdb||0x0,this[_0x403e6a(0x352)]=_0x323a6d||0x0;}let _0x2acc4c=!!((_0xa2e55a=_0x492bc6[_0x403e6a(0x383)])!=null&&_0xa2e55a['flipX']),_0x9dfcf4=!!((_0xdcfd26=_0x492bc6[_0x403e6a(0x383)])!=null&&_0xdcfd26[_0x403e6a(0x419)]),_0x1a76d9=((_0x1f0d40=_0x492bc6['transform'])==null?void 0x0:_0x1f0d40[_0x403e6a(0x2ee)])||0x0;this['_isStartAdjusting']=!0x0,_0x5accc9[_0x403e6a(0x50a)]();let _0x3cc71b={...((_0x488805=this['_activeAdjustInfo'])==null?void 0x0:_0x488805[_0x403e6a(0x426)])??{}};this[_0x403e6a(0x351)]=_0x5accc9[_0x403e6a(0x15c)][_0x403e6a(0x388)]((_0x1e7496,_0x308fc2)=>{const _0xe5f5c4=_0x403e6a;if(!this['_isStartAdjusting'])return;let {offsetX:_0x4c0272,offsetY:_0x269097}=_0x1e7496,_0x3089d6=this[_0xe5f5c4(0x3c7)];if(this[_0xe5f5c4(0x44a)]&&_0x3089d6){_0x5accc9['disableObjectsEvent'](),_0x5accc9[_0xe5f5c4(0x161)](o['CURSOR_TYPE'][_0xe5f5c4(0x1e5)]);let _0x44b5d8={'left':0x0,'top':0x0,'width':this[_0xe5f5c4(0x44f)],'height':this['_baseShapeHeight']},_0x20f9a0=this[_0xe5f5c4(0x2b9)](this[_0xe5f5c4(0x15b)],this['_subUnitId']),_0x187e7e=this[_0xe5f5c4(0x1bf)](this[_0xe5f5c4(0x15b)],this['_subUnitId']),_0x4d8a33=_0x4c0272/_0x187e7e+_0x20f9a0['x']-this['_baseShapeLeft'],_0x3ee3ce=_0x269097/_0x187e7e+_0x20f9a0['y']-this[_0xe5f5c4(0x31b)];if(_0x1a76d9!==0x0){let _0x3f754d=this[_0xe5f5c4(0x44f)]/0x2,_0x2e2ba8=this[_0xe5f5c4(0x352)]/0x2,_0x48e43d=_0x1a76d9*Math['PI']/0xb4,_0x228fab=Math[_0xe5f5c4(0x1f0)](_0x48e43d),_0x5dc5a2=Math[_0xe5f5c4(0x3af)](_0x48e43d),_0x3fd8c9=_0x4d8a33-_0x3f754d,_0x185954=_0x3ee3ce-_0x2e2ba8;_0x4d8a33=_0x3f754d+(_0x3fd8c9*_0x228fab+_0x185954*_0x5dc5a2),_0x3ee3ce=_0x2e2ba8+(-_0x3fd8c9*_0x5dc5a2+_0x185954*_0x228fab);}_0x2acc4c&&(_0x4d8a33=this['_baseShapeWidth']-_0x4d8a33),_0x9dfcf4&&(_0x3ee3ce=this[_0xe5f5c4(0x352)]-_0x3ee3ce);let _0x313cfe={'x':_0x4d8a33,'y':_0x3ee3ce},_0x1fd143=this['_activeShapeModel']['calcAdjValues'](_0x44b5d8,_0x313cfe,_0x3089d6,_0x2acc4c,_0x9dfcf4);if(Object[_0xe5f5c4(0x218)](_0x1fd143)['length']===0x0)return;for(let [_0x44f8b5,_0x24557f]of Object['entries'](_0x1fd143))this['_activeShapeModel']['setAdjustValueByName'](_0x44f8b5,_0x24557f);this[_0xe5f5c4(0x44a)][_0xe5f5c4(0x4b1)]({'width':this[_0xe5f5c4(0x44f)],'height':this[_0xe5f5c4(0x352)]});let _0x16e907=this[_0xe5f5c4(0x1c6)][_0xe5f5c4(0x2ca)]({'unitId':_0x1074b0['unitId'],'subUnitId':_0x1074b0[_0xe5f5c4(0x1e9)],'drawingId':_0x1074b0['drawingId']});_0x16e907&&(this[_0xe5f5c4(0x19d)][_0xe5f5c4(0x509)](_0x16e907,_0x5accc9),this[_0xe5f5c4(0x304)]=this['_getShapeAdjustPointListById'](_0x1074b0[_0xe5f5c4(0x40e)],_0x1074b0['subUnitId'],_0x1074b0[_0xe5f5c4(0x302)]),this['_updateAdjustControlPositions']());}_0x308fc2[_0xe5f5c4(0x227)]();}),this['_adjHandlerPointerUp']=_0x5accc9[_0x403e6a(0x167)][_0x403e6a(0x388)]((_0x4228a5,_0x44ed54)=>{const _0x222f2a=_0x403e6a;this[_0x222f2a(0x351)][_0x222f2a(0x18a)](),this[_0x222f2a(0x48a)][_0x222f2a(0x18a)](),_0x5accc9[_0x222f2a(0x4e7)]();let _0x2ac09e=this['_activeAdjustInfo'];if(_0x2ac09e){let _0x26ba05=_0x1074b0[_0x222f2a(0x40e)],_0x4f0647=_0x1074b0[_0x222f2a(0x1e9)],_0x512962=_0x1074b0[_0x222f2a(0x302)],_0x5e5b54={};for(let _0x165228 of Object['keys'](_0x2ac09e[_0x222f2a(0x426)])){var _0x3d1e38;let _0x34c01f=(_0x3d1e38=this[_0x222f2a(0x44a)])==null?void 0x0:_0x3d1e38[_0x222f2a(0x496)](_0x165228);_0x34c01f!==void 0x0&&(_0x5e5b54[_0x165228]=_0x34c01f);}Object[_0x222f2a(0x218)](_0x5e5b54)[_0x222f2a(0x26f)]>0x0&&C(this['_commandService'],_0x26ba05,_0x4f0647,_0x512962,{'oldShapeData':{'adjustValues':_0x3cc71b}},{'adjustValues':_0x5e5b54});}this[_0x222f2a(0x3c7)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x222f2a(0x313)]=!0x1,_0x44ed54[_0x222f2a(0x227)](),_0x5accc9[_0x222f2a(0x21b)]();}),_0x16e8ad['stopPropagation']();})));}[_0xe5948a(0x2d6)](){const _0x3a8154=_0xe5948a;let _0x3f86f1=this[_0x3a8154(0x345)]['getCurrentTypeOfUnit$'](a[_0x3a8154(0x3fe)][_0x3a8154(0x1f5)]);this[_0x3a8154(0x160)](_0x3f86f1['pipe']((0x0,d[_0x3a8154(0x447)])(_0xdf7821=>_0xdf7821?_0xdf7821['activeSheet$']['pipe']((0x0,d[_0x3a8154(0x447)])(_0x2e48a4=>{const _0x52cac9=_0x3a8154;if(!_0x2e48a4)return d[_0x52cac9(0x30e)];let _0x181d73=_0xdf7821[_0x52cac9(0x32f)](),_0x2b2fc3=this['_renderManagerService']['getRenderUnitById'](_0x181d73),_0x28356b=_0x2b2fc3==null?void 0x0:_0x2b2fc3[_0x52cac9(0x1b0)];return _0x28356b?(0x0,d['of'])(_0x28356b):d['EMPTY'];})):d['EMPTY']))[_0x3a8154(0x208)](_0x966842=>{const _0x4e0a7a=_0x3a8154;let _0x3516d0=_0x966842[_0x4e0a7a(0x3e6)]();this[_0x4e0a7a(0x160)](_0x966842['onPointerMove$'][_0x4e0a7a(0x388)](()=>{this['_isShouldShowDrawingShapeAdjust'];})),this['disposeWithMe'](_0x3516d0[_0x4e0a7a(0x235)][_0x4e0a7a(0x208)](_0x5d833d=>{const _0x2ec336=_0x4e0a7a;let {objects:_0x1d0aab}=_0x5d833d;this[_0x2ec336(0x404)](),_0x1d0aab!==null&&_0x1d0aab[_0x2ec336(0x308)]===0x1&&_0x1d0aab[_0x2ec336(0x3e3)]()['next']()[_0x2ec336(0x446)]instanceof D&&this[_0x2ec336(0x186)](!0x0);})),this['disposeWithMe'](_0x3516d0['changing$'][_0x4e0a7a(0x208)](()=>{const _0x4b87cb=_0x4e0a7a;this[_0x4b87cb(0x26c)]&&this[_0x4b87cb(0x337)]();})),this[_0x4e0a7a(0x160)](_0x966842[_0x4e0a7a(0x167)][_0x4e0a7a(0x388)](()=>{const _0x1a39ec=_0x4e0a7a;this['_isShouldShowDrawingShapeAdjust']&&(this[_0x1a39ec(0x186)](!0x1),this[_0x1a39ec(0x404)]());})),this[_0x4e0a7a(0x160)](_0x3516d0['changeEnd$'][_0x4e0a7a(0x208)](()=>{const _0x14577d=_0x4e0a7a;this['_unitId']&&this['_subUnitId']&&this[_0x14577d(0x451)]&&this[_0x14577d(0x1c6)]['getDrawingByParam']({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x14577d(0x451)]})&&(this[_0x14577d(0x304)]=this[_0x14577d(0x18e)](this[_0x14577d(0x15b)],this['_subUnitId'],this[_0x14577d(0x451)]),this[_0x14577d(0x3ab)]());}));}));}[_0xe5948a(0x36e)](){const _0x269af2=_0xe5948a;this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x314ab6=>{const _0x2be989=_0x4ecd;if(_0x314ab6['id']!==i[_0x2be989(0x395)]['id'])return;let {unitId:_0x356db0,subUnitId:_0x5ae31c,shapeId:_0x19e066}=_0x314ab6[_0x2be989(0x2c9)];_0x356db0===this['_unitId']&&_0x5ae31c===this[_0x2be989(0x264)]&&_0x19e066===this[_0x2be989(0x451)]&&this[_0x2be989(0x284)]();})),this[_0x269af2(0x160)](this[_0x269af2(0x1c6)][_0x269af2(0x4e1)][_0x269af2(0x208)](_0x1586e7=>{const _0x1a86b5=_0x269af2;if(_0x1586e7[_0x1a86b5(0x26f)]===0x1){let _0x1378f4=_0x1586e7[0x0];if(_0x1378f4[_0x1a86b5(0x28c)]===a[_0x1a86b5(0x41e)]['DRAWING_SHAPE']&&this[_0x1a86b5(0x345)]['getUnitType'](_0x1378f4[_0x1a86b5(0x40e)])===a[_0x1a86b5(0x3fe)][_0x1a86b5(0x1f5)]){this[_0x1a86b5(0x451)]=_0x1378f4[_0x1a86b5(0x302)];let {unitId:_0x228cf5,subUnitId:_0xd913b3}=_0x1378f4;this[_0x1a86b5(0x304)]=this['_getShapeAdjustPointListById'](_0x228cf5,_0xd913b3,this['_activeShapeId']),this[_0x1a86b5(0x15b)]=_0x228cf5,this[_0x1a86b5(0x264)]=_0xd913b3,this[_0x1a86b5(0x337)](),this[_0x1a86b5(0x404)]();return;}}this[_0x1a86b5(0x451)]=null,this[_0x1a86b5(0x304)]=void 0x0,this['_unitId']=null,this[_0x1a86b5(0x264)]=null,this[_0x1a86b5(0x337)]();})),this[_0x269af2(0x160)](this[_0x269af2(0x1c6)][_0x269af2(0x4f9)]['subscribe'](_0x3196bd=>{const _0x94685d=_0x269af2;if(_0x3196bd[_0x94685d(0x26f)]===0x1){var _0x2cc922;let _0x5ea2a3=_0x3196bd[0x0];((_0x2cc922=this[_0x94685d(0x1c6)][_0x94685d(0x2ca)](_0x5ea2a3))==null?void 0x0:_0x2cc922[_0x94685d(0x28c)])===a['DrawingTypeEnum'][_0x94685d(0x48f)]&&this[_0x94685d(0x19e)](!0x0);}})),this[_0x269af2(0x160)](this['_drawingManagerService'][_0x269af2(0x1cd)][_0x269af2(0x208)](_0x4d5ef4=>{const _0x2a6032=_0x269af2;for(let _0x154aa8 of _0x4d5ef4)this['_activeShapeId']===_0x154aa8['drawingId']&&(this['_activeShapeId']=null,this[_0x2a6032(0x304)]=void 0x0,this['_unitId']=null,this[_0x2a6032(0x264)]=null,this[_0x2a6032(0x337)]());}));}};M=A([k(0x0,u[_0xe5948a(0x3f0)]),k(0x1,(0x0,a[_0xe5948a(0x25d)])(i[_0xe5948a(0x45f)])),k(0x2,(0x0,a[_0xe5948a(0x25d)])(o[_0xe5948a(0x40d)])),k(0x3,(0x0,a[_0xe5948a(0x25d)])(j)),k(0x4,a[_0xe5948a(0x402)]),k(0x5,a[_0xe5948a(0x3e7)])],M);const re={'id':'drawing.operation.set-drawing-active','type':a['CommandType'][_0xe5948a(0x370)],'handler':(_0x39803a,_0x4bb367)=>{const _0x2ed21f=_0xe5948a;let _0x41f8f9=_0x39803a['get'](u[_0x2ed21f(0x3f0)]),_0x1023fd=_0x39803a[_0x2ed21f(0x41b)](o[_0x2ed21f(0x40d)]),_0x4b9f42=_0x39803a[_0x2ed21f(0x41b)](M);if(_0x4bb367==null)return!0x0;if(_0x4bb367['length']>0x0){var _0x4957b4;let _0x4ec53d=(_0x4957b4=_0x1023fd['getRenderUnitById'](_0x4bb367[0x0][_0x2ed21f(0x40e)]))==null?void 0x0:_0x4957b4[_0x2ed21f(0x1b0)];if(_0x4ec53d){let {unitId:_0x7c4975,subUnitId:_0x14dcf3,drawingId:_0x2fb6aa}=_0x4bb367[0x0],_0x3a9b8e=(0x0,u[_0x2ed21f(0x15a)])({'unitId':_0x7c4975,'subUnitId':_0x14dcf3,'drawingId':_0x2fb6aa},void 0x0),_0x414f59=_0x4ec53d[_0x2ed21f(0x1a0)](_0x3a9b8e);if(_0x414f59){var _0x4c7de6;(_0x4c7de6=_0x1023fd[_0x2ed21f(0x24f)](_0x4bb367[0x0][_0x2ed21f(0x40e)]))==null||(_0x4c7de6=_0x4c7de6[_0x2ed21f(0x1b0)][_0x2ed21f(0x324)]())==null||_0x4c7de6[_0x2ed21f(0x4f7)](_0x414f59);}}_0x41f8f9[_0x2ed21f(0x26e)](_0x4bb367),_0x4b9f42[_0x2ed21f(0x186)](!0x1);}return!0x0;}},N={'type':a['CommandType']['COMMAND'],'id':_0xe5948a(0x18f),'handler':async(_0x27d296,_0x93d91a)=>{const _0x11d70b=_0xe5948a;var _0x325c6a,_0x2c6a7e;let _0x2788ce=(0x0,s[_0x11d70b(0x408)])(_0x27d296[_0x11d70b(0x41b)](a[_0x11d70b(0x402)]));if(!_0x2788ce)return!0x1;let {unitId:_0x361375,subUnitId:_0x104bc3,worksheet:_0x1a10e8}=_0x2788ce,_0x17b673=_0x1a10e8['getConfig'](),_0x3dafee=_0x17b673[_0x11d70b(0x4da)]??a[_0x11d70b(0x4f3)][_0x11d70b(0x4f1)];if(_0x3dafee!==a[_0x11d70b(0x4f3)][_0x11d70b(0x4f1)]&&_0x3dafee!==a[_0x11d70b(0x4f3)]['CHART'])return!0x1;let _0x85d27c=_0x27d296['get'](a[_0x11d70b(0x340)]);if(((_0x325c6a=_0x85d27c[_0x11d70b(0x4c1)](new s[(_0x11d70b(0x4cd))](_0x361375)['id']))==null?void 0x0:_0x325c6a[_0x11d70b(0x446)])!==!0x0||((_0x2c6a7e=_0x85d27c[_0x11d70b(0x4c1)](new s[(_0x11d70b(0x4f6))](_0x361375,_0x104bc3)['id']))==null?void 0x0:_0x2c6a7e[_0x11d70b(0x446)])!==!0x0)return!0x1;let _0x4974d8=_0x27d296['get'](a[_0x11d70b(0x3e7)]),{value:_0x29789a,enhanceParams:_0x3c8b51}=_0x93d91a,_0x359152={'unitId':_0x361375,'subUnitId':_0x104bc3,'shapeType':_0x29789a,'shapeId':(0x0,a[_0x11d70b(0x470)])()};if(_0x3dafee===a[_0x11d70b(0x4f3)][_0x11d70b(0x40b)]){let _0x4290de=_0x27d296['get'](o[_0x11d70b(0x40d)])['getRenderUnitById'](_0x361375),_0x5c1bf3=_0x4290de==null?void 0x0:_0x4290de['components']['get'](l[_0x11d70b(0x3ff)]['CHART_PAGE']);if(!_0x4290de||!_0x5c1bf3||![_0x5c1bf3[_0x11d70b(0x376)],_0x5c1bf3[_0x11d70b(0x3c1)],_0x5c1bf3[_0x11d70b(0x33d)],_0x5c1bf3['height']][_0x11d70b(0x3f7)](Number[_0x11d70b(0x18d)])||_0x5c1bf3[_0x11d70b(0x33d)]<=0x0||_0x5c1bf3[_0x11d70b(0x25e)]<=0x0)return!0x1;let _0x127331={'row':0x0,'column':0x0,'rowOffset':0x0,'columnOffset':0x0},_0x341b07=(0x0,c[_0x11d70b(0x3a2)])([{'unitId':_0x361375,'subUnitId':_0x104bc3,'drawingId':_0x359152[_0x11d70b(0x31a)],'drawingType':a[_0x11d70b(0x41e)][_0x11d70b(0x48f)],'transform':{'left':0x0,'top':0x0,'width':i[_0x11d70b(0x4af)],'height':i['DEFAULT_SHAPE_HEIGHT']},'sheetTransform':{'from':_0x127331,'to':_0x127331},'axisAlignSheetTransform':{'from':_0x127331,'to':_0x127331}}],{'left':_0x5c1bf3[_0x11d70b(0x376)],'top':_0x5c1bf3[_0x11d70b(0x3c1)],'width':_0x5c1bf3[_0x11d70b(0x33d)],'height':_0x5c1bf3[_0x11d70b(0x25e)]},_0x17b673[_0x11d70b(0x177)]===a[_0x11d70b(0x321)][_0x11d70b(0x346)]);if(!(_0x341b07!=null&&_0x341b07['length']))return!0x1;let _0x5f3f0b=_0x341b07[0x0]['transform'];_0x359152['position']={'x':_0x5f3f0b['left'],'y':_0x5f3f0b[_0x11d70b(0x3c1)]},_0x359152[_0x11d70b(0x33d)]=_0x5f3f0b[_0x11d70b(0x33d)],_0x359152['height']=_0x5f3f0b[_0x11d70b(0x25e)];}else{let _0x5bd501=_0x27d296[_0x11d70b(0x41b)](s['SheetsSelectionsService'])['getCurrentLastSelection']();if(!_0x5bd501)return!0x1;_0x359152['range']=_0x5bd501[_0x11d70b(0x4d5)];}if(_0x3c8b51){let {startArrow:_0x33b6fa,endArrow:_0x465c4b,horizontal:_0x11e5a3,vertical:_0x42b940}=_0x3c8b51,_0x427dc7=(0x0,n[_0x11d70b(0x1b3)])(_0x29789a),_0x2ba6f6=_0x29789a===n[_0x11d70b(0x335)][_0x11d70b(0x215)];if(_0x427dc7&&(_0x33b6fa||_0x465c4b)&&(_0x359152['shapeData']={'ln':{'startArrow':_0x33b6fa?{'type':n[_0x11d70b(0x1dd)]['Arrow'],'size':n[_0x11d70b(0x3bc)]['Medium']}:void 0x0,'endArrow':_0x465c4b?{'type':n['ShapeArrowTypeEnum'][_0x11d70b(0x4c4)],'size':n[_0x11d70b(0x3bc)][_0x11d70b(0x201)]}:void 0x0}}),_0x2ba6f6&&(_0x11e5a3||_0x42b940)){let _0x2ef571=_0x27d296[_0x11d70b(0x41b)](a['ThemeService']);_0x359152[_0x11d70b(0x4a5)]=(0x0,r[_0x11d70b(0x179)])({'fill':{'fillType':n['ShapeFillEnum'][_0x11d70b(0x2d9)],'color':_0x2ef571[_0x11d70b(0x3d2)](_0x11d70b(0x40a))},'isHorizontal':!!_0x11e5a3,'stroke':{'lineStrokeType':n[_0x11d70b(0x427)]['SolidLine'],'width':0x1,'color':_0x2ef571[_0x11d70b(0x3d2)](_0x11d70b(0x459))}});}}let _0x1ee5d8=_0x4974d8['syncExecuteCommand'](i[_0x11d70b(0x4eb)]['id'],_0x359152);return _0x1ee5d8&&await _0x4974d8[_0x11d70b(0x17f)](re['id'],[{'unitId':_0x361375,'subUnitId':_0x104bc3,'drawingId':_0x359152[_0x11d70b(0x31a)]}]),_0x1ee5d8;}},P=_0xe5948a(0x29e),F=_0xe5948a(0x1a5),ie=_0xe5948a(0x514),ae=_0xe5948a(0x29c),oe=(0x0,a[_0xe5948a(0x20e)])(_0xe5948a(0x2e8)),se=_0xe5948a(0x241),ce={'id':_0xe5948a(0x349),'type':a[_0xe5948a(0x421)][_0xe5948a(0x30f)],'handler':(_0x5bf27e,_0x571682)=>{const _0x2af021=_0xe5948a;let _0x124934=_0x5bf27e[_0x2af021(0x41b)](t[_0x2af021(0x3f1)]),_0x5be5e3=_0x5bf27e['get'](a[_0x2af021(0x309)]),_0x227d0d=_0x5bf27e[_0x2af021(0x41b)](a[_0x2af021(0x402)]),_0x33150a=_0x5bf27e[_0x2af021(0x41b)](a[_0x2af021(0x3e7)]);return(0x0,s['getSheetCommandTarget'])(_0x227d0d)?(_0x571682==null?void 0x0:_0x571682['value'])==='close'?(_0x124934['close'](F),!0x0):(_0x124934[_0x2af021(0x278)]({'id':F,'header':{'title':_0x5be5e3['t']('sheets-shape-ui.objectListPanel.title')},'children':{'label':F},'onClose':()=>{const _0x5674d2=_0x2af021;_0x33150a[_0x5674d2(0x293)](u['SetDrawingSelectedOperation']['id'],[]);},'width':0x168}),!0x0):!0x1;}},I={'type':a['CommandType']['OPERATION'],'id':_0xe5948a(0x28b),'handler'(){return!0x0;}};function le(_0x256d74){const _0x3ca888=_0xe5948a;let _0x94dcad=_0x256d74[_0x3ca888(0x41b)](u['IDrawingManagerService'])[_0x3ca888(0x4ee)](),_0x466975=_0x94dcad[_0x3ca888(0x26f)]===0x1?_0x94dcad[0x0]:null;if(!_0x466975||_0x466975[_0x3ca888(0x28c)]!==a[_0x3ca888(0x41e)][_0x3ca888(0x48f)])return null;let _0x335245=_0x256d74[_0x3ca888(0x41b)](i[_0x3ca888(0x45f)]),_0x5a1d63=_0x335245[_0x3ca888(0x493)](_0x466975['unitId'],_0x466975[_0x3ca888(0x1e9)],_0x466975[_0x3ca888(0x302)]),_0x681f3=_0x335245[_0x3ca888(0x35f)](_0x466975['unitId'],_0x466975[_0x3ca888(0x1e9)],_0x466975[_0x3ca888(0x302)]);return _0x5a1d63===void 0x0||!_0x681f3?null:{'drawing':_0x466975,'shapeData':_0x681f3,'shapeType':_0x5a1d63};}const ue={'id':'sheet.operation.apply-shape-quick-style','type':a['CommandType']['OPERATION'],'handler':(_0x1ac427,_0x187471)=>{const _0x2bd213=_0xe5948a;let _0x498bd3=le(_0x1ac427),_0x22f8f8=(0x0,r[_0x2bd213(0x387)])((_0x187471==null?void 0x0:_0x187471[_0x2bd213(0x1f1)])??(_0x187471==null?void 0x0:_0x187471[_0x2bd213(0x446)])??'');if(!_0x498bd3||!_0x22f8f8||_0x22f8f8['type']!==(0x0,r[_0x2bd213(0x3ee)])(_0x498bd3[_0x2bd213(0x4a5)]))return!0x1;let _0xcfc98c=(0x0,r[_0x2bd213(0x182)])(_0x498bd3['shapeData'],_0x22f8f8);if(!_0xcfc98c)return!0x1;let {drawing:_0x180ecd}=_0x498bd3;return _0x1ac427[_0x2bd213(0x41b)](a[_0x2bd213(0x3e7)])[_0x2bd213(0x17f)](S['id'],{'unitId':_0x180ecd['unitId'],'subUnitId':_0x180ecd[_0x2bd213(0x1e9)],'shapeId':_0x180ecd[_0x2bd213(0x302)],'shapeData':_0xcfc98c,'oldShapeJSON':{'oldShapeData':_0x498bd3[_0x2bd213(0x4a5)]}});}},de={'id':_0xe5948a(0x3b3),'type':a['CommandType'][_0xe5948a(0x370)],'handler':(_0x190cd3,_0x559cae)=>{const _0x2afdb5=_0xe5948a;let _0x12caf3=le(_0x190cd3),_0x2ea6af=(_0x559cae==null?void 0x0:_0x559cae[_0x2afdb5(0x320)])??(_0x559cae==null?void 0x0:_0x559cae[_0x2afdb5(0x446)]);if(!_0x12caf3||!_0x2ea6af||(0x0,n[_0x2afdb5(0x1b3)])(_0x12caf3[_0x2afdb5(0x320)])||(0x0,n[_0x2afdb5(0x1b3)])(_0x2ea6af))return!0x1;let _0x255b9e=(0x0,r[_0x2afdb5(0x43f)])(_0x12caf3['shapeData'],_0x2ea6af);if(!_0x255b9e)return!0x1;let {drawing:_0x5585eb}=_0x12caf3;return _0x190cd3['get'](a[_0x2afdb5(0x3e7)])[_0x2afdb5(0x17f)](S['id'],{'unitId':_0x5585eb[_0x2afdb5(0x40e)],'subUnitId':_0x5585eb[_0x2afdb5(0x1e9)],'shapeId':_0x5585eb['drawingId'],'shapeType':_0x2ea6af,'shapeData':_0x255b9e,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x12caf3[_0x2afdb5(0x320)],'oldShapeData':_0x12caf3[_0x2afdb5(0x4a5)]}});}};let L=class extends a['Disposable']{constructor(_0x1335ae,_0x2fcb06){const _0x56cc5e=_0xe5948a;super(),this[_0x56cc5e(0x44e)]=_0x1335ae,this[_0x56cc5e(0x1c6)]=_0x2fcb06,this[_0x56cc5e(0x4ea)](),this[_0x56cc5e(0x44e)]['setCanUseShapeClip'](!0x0),this[_0x56cc5e(0x160)]({'dispose':()=>this[_0x56cc5e(0x44e)]['setCanUseShapeClip'](!0x1)});}[_0xe5948a(0x4ea)](){const _0x4580ea=_0xe5948a;let _0x39ec38=this['_clipService'],_0x38c8e4=new Map(),_0x2f7895=_0x39ec38[_0x4580ea(0x515)]((_0x28768a,_0x2c8ff7,_0x122fa7,_0x3e4e43,_0x5046bd)=>{const _0x275214=_0x4580ea;let _0x3239b5=_0x2c8ff7;if(_0x3239b5===n[_0x275214(0x335)][_0x275214(0x38d)]||_0x2c8ff7===_0x275214(0x1ce))return!0x1;try{let _0x451297=_0x38c8e4[_0x275214(0x41b)](_0x2c8ff7);return _0x451297||(_0x451297=new n['ShapeModel'](_0x3239b5,'clip-'+_0x2c8ff7),_0x38c8e4['set'](_0x2c8ff7,_0x451297)),_0x451297[_0x275214(0x4cc)](),_0x5046bd&&Object[_0x275214(0x218)](_0x5046bd)[_0x275214(0x26f)]>0x0&&_0x451297['setShapeData']({'adjustValues':_0x5046bd},!0x0),_0x451297['updateContext']({'width':_0x122fa7,'height':_0x3e4e43}),_0x451297['buildClipPath'](_0x28768a,{'left':0x0,'top':0x0,'width':_0x122fa7,'height':_0x3e4e43});}catch{return!0x1;}});this['disposeWithMe'](_0x2f7895),this[_0x4580ea(0x160)]({'dispose':()=>_0x38c8e4['clear']()});}[_0xe5948a(0x2aa)](_0x3b5612,_0x275bb6,_0x4155f8,_0x92540c,_0x349b46){const _0x4dbcf3=_0xe5948a;let _0x54a36e=this[_0x4dbcf3(0x1c6)][_0x4dbcf3(0x440)](_0x3b5612,_0x275bb6);if(!_0x54a36e[_0x4155f8])return;let _0x399706={..._0x54a36e[_0x4155f8],'prstGeom':_0x92540c,'adjustValues':_0x349b46};this[_0x4dbcf3(0x1c6)][_0x4dbcf3(0x3d5)]([_0x399706]);}};L=A([k(0x0,(0x0,a['Inject'])(f['DrawingImageClipService'])),k(0x1,(0x0,a['Inject'])(u[_0xe5948a(0x3f0)]))],L);const fe=_0xe5948a(0x45a),pe=_0xe5948a(0x504);function me({onShapeClick:_0x10775b,excludeGroups:_0x5cc0b4}){const _0x2caf60=_0xe5948a;return(0x0,m[_0x2caf60(0x216)])(e[_0x2caf60(0x479)],{'excludeGroups':_0x5cc0b4,'onShapeClick':_0x10775b,'scrollContainer':_0x2caf60(0x1ed)});}function he(){const _0x418d36=_0xe5948a;let _0x18a653=(0x0,t[_0x418d36(0x4f2)])(u[_0x418d36(0x3f0)]),_0x6de186=(0x0,t[_0x418d36(0x4f2)])(L);return(0x0,m['jsx'])(e[_0x418d36(0x2cb)],{'buttonLabel':_0x418d36(0x44c),'excludeGroups':[e[_0x418d36(0x2b3)][_0x418d36(0x3cb)]],'onShapeClick':_0x1e53b6=>{const _0x4199e7=_0x418d36;let _0xcd144c=_0x18a653[_0x4199e7(0x4ee)]()[_0x4199e7(0x4a3)](_0x4b47cb=>_0x4b47cb[_0x4199e7(0x28c)]===a[_0x4199e7(0x41e)]['DRAWING_IMAGE']);if(!_0xcd144c)return;let {unitId:_0x3e4599,subUnitId:_0x97a693,drawingId:_0x5f0c02}=_0xcd144c;_0x6de186[_0x4199e7(0x2aa)](_0x3e4599,_0x97a693,_0x5f0c02,_0x1e53b6['type']);}});}function ge(){const _0x671ae3=_0xe5948a;let _0x2106fc=(0x0,t[_0x671ae3(0x4f2)])(u[_0x671ae3(0x3f0)]),_0x386dad=(0x0,t['useDependency'])(L);return(0x0,m[_0x671ae3(0x216)])(e[_0x671ae3(0x2cb)],{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[e[_0x671ae3(0x2b3)]['Line']],'DropdownComponent':p['MobileDropdown'],'onShapeClick':_0x18aac7=>{const _0x8b5d78=_0x671ae3;let _0x3dffb6=_0x2106fc[_0x8b5d78(0x4ee)]()[_0x8b5d78(0x4a3)](_0x3fff07=>_0x3fff07[_0x8b5d78(0x28c)]===a[_0x8b5d78(0x41e)][_0x8b5d78(0x34a)]);if(!_0x3dffb6)return;let {unitId:_0x454423,subUnitId:_0x2f211a,drawingId:_0x4d8e94}=_0x3dffb6;_0x386dad[_0x8b5d78(0x2aa)](_0x454423,_0x2f211a,_0x4d8e94,_0x18aac7['type']);}});}function _e(){const _0x3bec47=_0xe5948a;let _0x33264a=(0x0,t['useDependency'])(t['ComponentManager']),_0x3116f8=(0x0,t[_0x3bec47(0x4f2)])(u['IDrawingManagerService']),_0x168428=(0x0,t[_0x3bec47(0x4f2)])(a[_0x3bec47(0x402)]),_0x2b76db=_0x3116f8[_0x3bec47(0x4ee)]()[0x0],_0x4647a0=_0x2b76db?_0x168428[_0x3bec47(0x323)](_0x2b76db[_0x3bec47(0x40e)]):void 0x0,_0x2dd7ba=_0x4647a0===a[_0x3bec47(0x3fe)][_0x3bec47(0x4d6)]?_0x3bec47(0x36c):_0x4647a0===a['UniverInstanceType'][_0x3bec47(0x1f5)]?pe:void 0x0,_0x486e0a=_0x2dd7ba?_0x33264a['get'](_0x2dd7ba):void 0x0;return _0x486e0a?(0x0,m[_0x3bec47(0x216)])(_0x486e0a,{}):null;}function ve(){const _0x143dd7=_0xe5948a;let _0x3b4d79=(0x0,t[_0x143dd7(0x4f2)])(a[_0x143dd7(0x3e7)]);return(0x0,m[_0x143dd7(0x216)])(me,{'onShapeClick':_0x5ad6f7=>{const _0x1c1f19=_0x143dd7;_0x3b4d79[_0x1c1f19(0x17f)](N['id'],{'value':_0x5ad6f7[_0x1c1f19(0x4da)],'enhanceParams':{'endArrow':_0x5ad6f7[_0x1c1f19(0x3cf)],'startArrow':_0x5ad6f7[_0x1c1f19(0x1aa)],'horizontal':_0x5ad6f7[_0x1c1f19(0x299)],'vertical':_0x5ad6f7[_0x1c1f19(0x181)]}});}});}function ye(){const _0x5aa94a=_0xe5948a;return(0x0,m[_0x5aa94a(0x216)])(ve,{});}function be(_0x1ac7e5){const _0x414840=_0xe5948a;return(0x0,l[_0x414840(0x38c)])(_0x1ac7e5[_0x414840(0x41b)](a[_0x414840(0x402)]),!0x0,({workbook:_0x5150a8,worksheet:_0x4817f0})=>{const _0x4efb64=_0x414840;let _0x38be35=_0x4817f0[_0x4efb64(0x350)]()[_0x4efb64(0x4da)]??a[_0x4efb64(0x4f3)][_0x4efb64(0x4f1)];if(_0x38be35===a[_0x4efb64(0x4f3)][_0x4efb64(0x4f1)])return(0x0,l[_0x4efb64(0x27f)])(_0x1ac7e5);if(_0x38be35!==a[_0x4efb64(0x4f3)][_0x4efb64(0x40b)])return(0x0,d['of'])(!0x0);let _0x39deac=_0x1ac7e5[_0x4efb64(0x41b)](a[_0x4efb64(0x340)]),_0x35b033=[new s[(_0x4efb64(0x4cd))](_0x5150a8[_0x4efb64(0x32f)]())['id'],new s[(_0x4efb64(0x4f6))](_0x5150a8['getUnitId'](),_0x4817f0['getSheetId']())['id']];return _0x39deac[_0x4efb64(0x231)]['pipe']((0x0,d['startWith'])(null),(0x0,d[_0x4efb64(0x2ab)])(()=>_0x35b033[_0x4efb64(0x168)](_0x19fab7=>{const _0x1f1c0b=_0x4efb64;var _0x283f89;return((_0x283f89=_0x39deac[_0x1f1c0b(0x4c1)](_0x19fab7))==null?void 0x0:_0x283f89[_0x1f1c0b(0x446)])!==!0x0;})),(0x0,d[_0x4efb64(0x1da)])());});}function xe(_0x24a9bb){const _0x192526=_0xe5948a;let _0x4d31f1=_0x24a9bb[_0x192526(0x41b)](a['IUniverInstanceService']);return{'id':N['id'],'type':t['MenuItemType'][_0x192526(0x23d)],'selections':[{'label':{'name':fe,'hoverable':!0x1,'selectable':!0x1,'props':{'id':N['id']}}}],'icon':_0x192526(0x3b4),'tooltip':_0x192526(0x4c5),'activated$':(0x0,l[_0x192526(0x38c)])(_0x4d31f1,!0x1,()=>new d[(_0x192526(0x42b))](_0x195312=>{const _0x189bd3=_0x192526;_0x195312[_0x189bd3(0x249)](!0x1);})),'hidden$':(0x0,t[_0x192526(0x41a)])(_0x24a9bb,a['UniverInstanceType']['UNIVER_SHEET']),'disabled$':be(_0x24a9bb)};}function Se(_0x5b8172){const _0x232b7f=_0xe5948a;return(0x0,l[_0x232b7f(0x38c)])(_0x5b8172['get'](a[_0x232b7f(0x402)]),!0x0,({workbook:_0x455bc6,worksheet:_0x1b354f})=>{const _0x4c1f36=_0x232b7f;let _0x42b34d=_0x1b354f[_0x4c1f36(0x350)]()[_0x4c1f36(0x4da)]??a[_0x4c1f36(0x4f3)][_0x4c1f36(0x4f1)];if(_0x42b34d===a[_0x4c1f36(0x4f3)]['GRID'])return(0x0,l['getCurrentRangeDisable$'])(_0x5b8172);if(_0x42b34d!==a[_0x4c1f36(0x4f3)][_0x4c1f36(0x40b)])return(0x0,d['of'])(!0x0);let _0x401d51=_0x5b8172[_0x4c1f36(0x41b)](a[_0x4c1f36(0x340)]),_0xffc34c=[new s[(_0x4c1f36(0x4cd))](_0x455bc6[_0x4c1f36(0x32f)]())['id'],new s['WorksheetEditPermission'](_0x455bc6[_0x4c1f36(0x32f)](),_0x1b354f[_0x4c1f36(0x240)]())['id']];return _0x401d51[_0x4c1f36(0x231)][_0x4c1f36(0x41c)]((0x0,d[_0x4c1f36(0x4d3)])(null),(0x0,d[_0x4c1f36(0x2ab)])(()=>_0xffc34c[_0x4c1f36(0x168)](_0x1d71fc=>{var _0x112351;return((_0x112351=_0x401d51['getPermissionPoint'](_0x1d71fc))==null?void 0x0:_0x112351['value'])!==!0x0;})),(0x0,d[_0x4c1f36(0x1da)])());});}function Ce(_0x5dc121){const _0x660b6a=_0xe5948a;let _0x1a3504=_0x5dc121[_0x660b6a(0x41b)](t[_0x660b6a(0x3f1)]);return{'id':ce['id'],'type':t[_0x660b6a(0x3a9)]['BUTTON'],'icon':'ObjectLayersIcon','title':'sheets-shape-ui.objectListPanel.open','tooltip':_0x660b6a(0x42f),'activated$':(0x0,d[_0x660b6a(0x185)])(()=>_0x1a3504['sidebarOptions$'][_0x660b6a(0x41c)]((0x0,d[_0x660b6a(0x4d3)])(_0x1a3504[_0x660b6a(0x1b8)]),(0x0,d[_0x660b6a(0x2ab)])(_0x4cab7f=>_0x4cab7f['visible']===!0x0&&_0x4cab7f['id']===_0x660b6a(0x1a5)),(0x0,d[_0x660b6a(0x1da)])())),'hidden$':(0x0,t[_0x660b6a(0x41a)])(_0x5dc121,a[_0x660b6a(0x3fe)][_0x660b6a(0x1f5)]),'disabled$':Se(_0x5dc121)};}const we=_0xe5948a(0x429),Te=_0xe5948a(0x170);function Ee(_0x408949){const _0x38f483=_0xe5948a;let _0x51d2fb=_0x408949[_0x38f483(0x41b)](u[_0x38f483(0x3f0)])[_0x38f483(0x4ee)]();return _0x51d2fb['length']===0x1&&_0x51d2fb[0x0]['drawingType']===a[_0x38f483(0x41e)][_0x38f483(0x48f)]?_0x51d2fb[0x0]:null;}function De(_0xed3341){const _0x1d0d7=_0xe5948a;let _0x279a79=_0xed3341[_0x1d0d7(0x41b)](u['IDrawingManagerService']);return _0x279a79['focus$'][_0x1d0d7(0x41c)]((0x0,d[_0x1d0d7(0x4d3)])(_0x279a79[_0x1d0d7(0x4ee)]()),(0x0,d[_0x1d0d7(0x2ab)])(_0x4e9469=>_0x4e9469['length']!==0x1||_0x4e9469[0x0][_0x1d0d7(0x28c)]!==a['DrawingTypeEnum'][_0x1d0d7(0x48f)]));}function Oe(_0x18be68){const _0x47cb29=_0xe5948a;return{'id':we,'commandId':i['ToggleSheetsShapeFlipCommand']['id'],'type':t[_0x47cb29(0x3a9)]['BUTTON'],'title':_0x47cb29(0x2fc),'tooltip':_0x47cb29(0x2fc),'icon':'FlipHorizontalIcon','hidden$':De(_0x18be68),'params':()=>{const _0x4c7411=_0x47cb29;let _0x4e304f=Ee(_0x18be68);return _0x4e304f?{'unitId':_0x4e304f[_0x4c7411(0x40e)],'subUnitId':_0x4e304f[_0x4c7411(0x1e9)],'shapeId':_0x4e304f['drawingId'],'flipH':!0x0}:void 0x0;}};}function ke(_0x5330b7){const _0x2ea79b=_0xe5948a;return{'id':Te,'commandId':i[_0x2ea79b(0x294)]['id'],'type':t[_0x2ea79b(0x3a9)][_0x2ea79b(0x2bc)],'title':_0x2ea79b(0x285),'tooltip':'sheets-shape-ui.flipVertical','icon':_0x2ea79b(0x332),'hidden$':De(_0x5330b7),'params':()=>{const _0x559c40=_0x2ea79b;let _0x3843f2=Ee(_0x5330b7);return _0x3843f2?{'unitId':_0x3843f2[_0x559c40(0x40e)],'subUnitId':_0x3843f2[_0x559c40(0x1e9)],'shapeId':_0x3843f2[_0x559c40(0x302)],'flipV':!0x0}:void 0x0;}};}const Ae=_0xe5948a(0x4db),je=_0xe5948a(0x343),Me=_0xe5948a(0x331),Ne=_0xe5948a(0x1ef);function R(){const _0x1a7b9e=_0xe5948a;let _0x294b67=(0x0,t[_0x1a7b9e(0x4f2)])(a[_0x1a7b9e(0x3e7)]),_0x11419c=(0x0,t[_0x1a7b9e(0x4f2)])(u['IDrawingManagerService']),_0x58da34=(0x0,t[_0x1a7b9e(0x4f2)])(i[_0x1a7b9e(0x45f)]),_0x1dac01=()=>{const _0x4f4ad6=_0x1a7b9e;var _0xa1688c;let _0x52837d=_0x11419c['getFocusDrawings']();if(_0x52837d['length']!==0x1||((_0xa1688c=_0x52837d[0x0])==null?void 0x0:_0xa1688c[_0x4f4ad6(0x28c)])!==a[_0x4f4ad6(0x41e)]['DRAWING_SHAPE'])return null;let {unitId:_0x48c547,subUnitId:_0x36f523,drawingId:_0x40469f}=_0x52837d[0x0],_0x1e8d71=_0x58da34['getShapeTypeById'](_0x48c547,_0x36f523,_0x40469f),_0x169337=_0x58da34['getShapeDataById'](_0x48c547,_0x36f523,_0x40469f);return _0x1e8d71===void 0x0||!_0x169337?null:{'unitId':_0x48c547,'subUnitId':_0x36f523,'drawingId':_0x40469f,'shapeType':_0x1e8d71,'shapeData':_0x169337};},_0xc41cfe=(0x0,t[_0x1a7b9e(0x4ef)])(()=>new d['Observable'](_0xea66cf=>{const _0x34ec29=_0x1a7b9e;let _0x227bd1=()=>_0xea66cf[_0x34ec29(0x249)](_0x1dac01()),_0x34ed60=_0x11419c[_0x34ec29(0x4e1)][_0x34ec29(0x208)](_0x227bd1),_0x2ede79=_0x294b67[_0x34ec29(0x22c)](_0x43d19b=>{_0x43d19b['id']===i['UpdateSheetsShapeDataMutation']['id']&&_0x227bd1();});return _0x227bd1(),()=>{const _0x36f3bf=_0x34ec29;_0x34ed60[_0x36f3bf(0x18a)](),_0x2ede79['dispose']();};}),_0x1dac01(),!0x1,[_0x294b67,_0x11419c,_0x58da34]);return{'selection':_0xc41cfe,'updateShapeData':_0x324fed=>{const _0x103666=_0x1a7b9e;_0xc41cfe&&C(_0x294b67,_0xc41cfe[_0x103666(0x40e)],_0xc41cfe[_0x103666(0x1e9)],_0xc41cfe[_0x103666(0x302)],{'oldShapeData':_0xc41cfe[_0x103666(0x4a5)]},_0x324fed);}};}function Pe(){const _0x58c26e=_0xe5948a;let {selection:_0x3b44b6,updateShapeData:_0x54acb5}=R();return _0x3b44b6?(0x0,m[_0x58c26e(0x216)])(e['ShapeStyleRibbonControl'],{'shapeData':_0x3b44b6[_0x58c26e(0x4a5)],'shapeType':_0x3b44b6[_0x58c26e(0x320)],'onUpdateShapeData':_0x54acb5}):null;}function Fe(){const _0x3d4f44=_0xe5948a;let _0x215fa8=(0x0,t[_0x3d4f44(0x4f2)])(a[_0x3d4f44(0x3e7)]),_0x2f4f7d=(0x0,t[_0x3d4f44(0x4f2)])(a[_0x3d4f44(0x309)]),{selection:_0x38d0b4}=R();return _0x38d0b4?(0x0,m['jsx'])(e[_0x3d4f44(0x25b)],{'type':(0x0,r[_0x3d4f44(0x3ee)])(_0x38d0b4[_0x3d4f44(0x4a5)]),'ariaLabel':_0x2f4f7d['t']('sheets-shape-ui.quickStyles'),'activePresetId':(0x0,r[_0x3d4f44(0x33b)])(_0x38d0b4['shapeData']),'onSelect':_0x58d939=>_0x215fa8[_0x3d4f44(0x17f)](ue['id'],{'presetId':_0x58d939})}):null;}function Ie(){const _0x1e5127=_0xe5948a;let {selection:_0x102733,updateShapeData:_0x335493}=R();return _0x102733?(0x0,m['jsx'])(e[_0x1e5127(0x2b2)],{'fontFamilyPopupDataComponent':_0x1e5127(0x20a),'shapeData':_0x102733[_0x1e5127(0x4a5)],'onUpdateShapeData':_0x335493}):null;}function Le(){const _0xd70faf=_0xe5948a;var _0x299a4a;let {selection:_0x10d312,updateShapeData:_0xd246b5}=R(),_0x7a3152=(0x0,e[_0xd70faf(0x198)])({'hostType':a[_0xd70faf(0x3fe)][_0xd70faf(0x1f5)],'unitId':(_0x10d312==null?void 0x0:_0x10d312['unitId'])??'','subUnitId':(_0x10d312==null?void 0x0:_0x10d312[_0xd70faf(0x1e9)])??'','shapeId':(_0x10d312==null?void 0x0:_0x10d312['drawingId'])??'','shapeData':_0x10d312==null?void 0x0:_0x10d312[_0xd70faf(0x4a5)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0xd70faf(0x4cb),'onUpdateBinding':_0x1e13db=>_0xd246b5({'formulaBinding':_0x1e13db})}),_0x46ae55=((_0x299a4a=_0x7a3152[_0xd70faf(0x4d4)])==null?void 0x0:_0x299a4a[_0xd70faf(0x3a4)](_0x44e4df=>_0x44e4df[_0xd70faf(0x512)])[_0xd70faf(0x412)](_0x5a727e=>_0x5a727e['visible']!==!0x1))??[];return _0x10d312!=null&&_0x10d312[_0xd70faf(0x4a5)]['formulaBinding']?(0x0,m[_0xd70faf(0x216)])(e[_0xd70faf(0x50c)],{'actions':_0x46ae55,'panel':_0x7a3152[_0xd70faf(0x1d3)]}):null;}const Re=_0xe5948a(0x485),ze=_0xe5948a(0x480),Be=_0xe5948a(0x2e0),Ve=_0xe5948a(0x49e),He=_0xe5948a(0x1e0),Ue=_0xe5948a(0x29a),We='sheets-shape-ui.ribbon.shape-format.arrange-back';function Ge(_0x3e6057){const _0x89c476=_0xe5948a;let _0x2753b7=_0x3e6057['get'](a[_0x89c476(0x3e7)]),_0x20a7ed=_0x3e6057[_0x89c476(0x41b)](u[_0x89c476(0x3f0)]),_0x1dc4e0=_0x3e6057[_0x89c476(0x41b)](i[_0x89c476(0x45f)]);return new d[(_0x89c476(0x42b))](_0x5c398c=>{let _0xaedb4d=()=>{const _0x1101ee=_0x4ecd;let _0x5d3876=z(_0x3e6057),_0x5ed292=_0x5d3876?_0x1dc4e0['getShapeDataById'](_0x5d3876[_0x1101ee(0x40e)],_0x5d3876[_0x1101ee(0x1e9)],_0x5d3876[_0x1101ee(0x302)]):null;_0x5c398c[_0x1101ee(0x249)](_0x5ed292?(0x0,r[_0x1101ee(0x33b)])(_0x5ed292)??'':'');},_0x587743=_0x20a7ed['focus$']['subscribe'](_0xaedb4d),_0x867904=_0x2753b7['onCommandExecuted'](_0x394b89=>{_0x394b89['id']===i['UpdateSheetsShapeDataMutation']['id']&&_0xaedb4d();});return _0xaedb4d(),()=>{const _0x29cd86=_0x4ecd;_0x587743[_0x29cd86(0x18a)](),_0x867904[_0x29cd86(0x2c1)]();};});}function z(_0xdceb81){const _0x505587=_0xe5948a;var _0x4f8022;let _0x5793ec=_0xdceb81['get'](u[_0x505587(0x3f0)])[_0x505587(0x4ee)]();return _0x5793ec[_0x505587(0x26f)]===0x1&&((_0x4f8022=_0x5793ec[0x0])==null?void 0x0:_0x4f8022[_0x505587(0x28c)])===a[_0x505587(0x41e)]['DRAWING_SHAPE']?_0x5793ec[0x0]:null;}function B(_0x15e768,_0x3b5e01=!0x1){const _0x1fcffe=_0xe5948a;let _0x94cb19=_0x15e768[_0x1fcffe(0x41b)](a[_0x1fcffe(0x3e7)]),_0x4105bb=_0x15e768[_0x1fcffe(0x41b)](u[_0x1fcffe(0x3f0)]),_0x442254=_0x15e768['get'](i['SheetsShapeService']);return new d[(_0x1fcffe(0x42b))](_0x2262e5=>{const _0x229d6c=_0x1fcffe;let _0x5165d9=()=>{const _0x49f725=_0x4ecd;let _0xda625e=z(_0x15e768);if(!_0xda625e){_0x2262e5[_0x49f725(0x249)](!0x0);return;}let _0x2142d1=_0x442254[_0x49f725(0x35f)](_0xda625e[_0x49f725(0x40e)],_0xda625e['subUnitId'],_0xda625e[_0x49f725(0x302)]);_0x2262e5['next'](!_0x2142d1||_0x3b5e01&&_0x2142d1[_0x49f725(0x2d4)]==null);},_0xae8ed5=_0x4105bb[_0x229d6c(0x4e1)][_0x229d6c(0x208)](_0x5165d9),_0x2d74c1=_0x94cb19[_0x229d6c(0x22c)](_0x225c19=>{const _0x3183ff=_0x229d6c;_0x225c19['id']===i[_0x3183ff(0x395)]['id']&&_0x5165d9();});return _0x5165d9(),()=>{const _0x3c09c8=_0x229d6c;_0xae8ed5[_0x3c09c8(0x18a)](),_0x2d74c1[_0x3c09c8(0x2c1)]();};});}function Ke(_0x304c44){const _0x479ae4=_0xe5948a;let _0x2984e4=_0x304c44[_0x479ae4(0x41b)](u[_0x479ae4(0x3f0)]),_0x4382e3=_0x304c44[_0x479ae4(0x41b)](i['SheetsShapeService']);return _0x2984e4[_0x479ae4(0x4e1)]['pipe']((0x0,d[_0x479ae4(0x4d3)])(_0x2984e4['getFocusDrawings']()),(0x0,d[_0x479ae4(0x2ab)])(()=>{const _0x57d57d=_0x479ae4;let _0x4593a2=z(_0x304c44),_0x20feee=_0x4593a2?_0x4382e3['getShapeTypeById'](_0x4593a2[_0x57d57d(0x40e)],_0x4593a2[_0x57d57d(0x1e9)],_0x4593a2['drawingId']):void 0x0;return _0x20feee===void 0x0||(0x0,n[_0x57d57d(0x1b3)])(_0x20feee);}));}function qe(_0x5cd98a){const _0x308f18=_0xe5948a;return{'id':ue['id'],'type':t['MenuItemType']['SELECTOR'],'icon':_0x308f18(0x32c),'title':_0x308f18(0x1ab),'tooltip':_0x308f18(0x1ab),'selections':[{'label':{'name':Ae,'hoverable':!0x1,'selectable':!0x1}}],'value$':Ge(_0x5cd98a),'hidden$':B(_0x5cd98a)};}function Je(_0x5b5d61){const _0xf79c82=_0xe5948a;return{'id':de['id'],'type':t[_0xf79c82(0x3a9)]['SELECTOR'],'icon':_0xf79c82(0x3b4),'title':_0xf79c82(0x207),'tooltip':_0xf79c82(0x207),'slot':!0x0,'selections':[{'label':{'name':e['SHAPE_CHANGE_PICKER_COMPONENT'],'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Ke(_0x5b5d61)};}function Ye(_0x38cde4,_0x2fadba,_0x4cd54c=!0x1){const _0x1411f7=_0xe5948a;return _0x5eefc0=>({'id':_0x38cde4,'type':t[_0x1411f7(0x3a9)][_0x1411f7(0x2bc)],'label':{'name':_0x2fadba,'hoverable':!0x1,'selectable':!0x1},'hidden$':B(_0x5eefc0,_0x4cd54c)});}const Xe=Ye(Re,je),Ze=Ye(ze,Me),Qe=Ye(Be,Ne,!0x0);function $e(_0x462bc7,_0x426da9,_0x459584,_0xaeff7a){const _0x31f3a4=_0xe5948a;return _0x5a3e6f=>({'id':_0x462bc7,'commandId':c[_0x31f3a4(0x25f)]['id'],'type':t[_0x31f3a4(0x3a9)][_0x31f3a4(0x2bc)],'icon':_0x459584,'title':_0xaeff7a,'tooltip':_0xaeff7a,'hidden$':B(_0x5a3e6f),'params':()=>{const _0x22ecd1=_0x31f3a4;let _0x2eb346=z(_0x5a3e6f);return _0x2eb346?{'unitId':_0x2eb346[_0x22ecd1(0x40e)],'subUnitId':_0x2eb346[_0x22ecd1(0x1e9)],'drawingIds':[_0x2eb346[_0x22ecd1(0x302)]],'arrangeType':_0x426da9}:void 0x0;}});}const et=$e(Ve,a['ArrangeTypeEnum'][_0xe5948a(0x4e0)],'MoveUpIcon',_0xe5948a(0x450)),tt=$e(He,a[_0xe5948a(0x19a)][_0xe5948a(0x19f)],_0xe5948a(0x501),_0xe5948a(0x50f)),nt=$e(Ue,a[_0xe5948a(0x19a)][_0xe5948a(0x311)],_0xe5948a(0x3ce),_0xe5948a(0x1c3)),rt=$e(We,a[_0xe5948a(0x19a)][_0xe5948a(0x298)],_0xe5948a(0x516),_0xe5948a(0x2fe));function it(_0x19665a){const _0xfdf386=_0xe5948a;let _0x26dcc6=_0x19665a[_0xfdf386(0x41b)](t[_0xfdf386(0x3f1)]);return{'activated$':(0x0,d['defer'])(()=>_0x26dcc6[_0xfdf386(0x4c0)][_0xfdf386(0x41c)]((0x0,d[_0xfdf386(0x4d3)])(_0x26dcc6['options']),(0x0,d['map'])(_0x59a386=>_0x59a386[_0xfdf386(0x1c4)]===!0x0&&_0x59a386['id']===_0xfdf386(0x29e)),(0x0,d[_0xfdf386(0x1da)])())),'id':I['id'],'type':t[_0xfdf386(0x3a9)][_0xfdf386(0x2bc)],'icon':'ShapeFormatSettingIcon','title':_0xfdf386(0x2ad),'tooltip':_0xfdf386(0x2ad),'hidden$':B(_0x19665a),'params':()=>{const _0x2584f5=_0xfdf386;let _0x7cc464=z(_0x19665a);return _0x7cc464?{'unitId':_0x7cc464[_0x2584f5(0x40e)],'subUnitId':_0x7cc464[_0x2584f5(0x1e9)],'drawingId':_0x7cc464[_0x2584f5(0x302)]}:void 0x0;}};}const at={[t[_0xe5948a(0x29b)][_0xe5948a(0x390)]]:{[ae]:{'order':0x64,'title':_0xe5948a(0x2ad),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[ue['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':qe},[de['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':Je}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[Re]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Xe}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[ze]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Ze}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[we]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':Oe},[Te]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':ke},[Ve]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':et},[He]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':tt},[Ue]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':nt},[We]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':rt}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[Be]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Qe}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[I['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':it},[e[_0xe5948a(0x415)]['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':e[_0xe5948a(0x27d)]}}}}},ot={[t[_0xe5948a(0x42a)][_0xe5948a(0x469)]]:{[N['id']]:{'order':0x3,'menuItemFactory':xe}}},st={...ot,[t[_0xe5948a(0x42a)][_0xe5948a(0x3fa)]]:{[ce['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Ce}},[t['ContextMenuPosition'][_0xe5948a(0x1c5)]]:{[t[_0xe5948a(0x4b6)]['OTHERS']]:{[we]:{'order':0x4,'menuItemFactory':Oe},[Te]:{'order':0x5,'menuItemFactory':ke}}}};var ct=_0xe5948a(0x3b5),lt=_0xe5948a(0x16e);const ut={'id':'sheet.operation.open-mobile-shape-editor','type':a[_0xe5948a(0x421)][_0xe5948a(0x370)],'handler'(_0x76351a,_0x174f90){const _0x483247=_0xe5948a;return _0x174f90?(_0x76351a[_0x483247(0x41b)](e[_0x483247(0x4a8)])['open'](_0x174f90['mode'],{'hostType':a[_0x483247(0x3fe)][_0x483247(0x1f5)],'shapeId':_0x174f90[_0x483247(0x302)],'subUnitId':_0x174f90[_0x483247(0x1e9)],'unitId':_0x174f90['unitId']}),!0x0):!0x1;}},dt=_0xe5948a(0x2f7),ft={};let pt=class extends a['Disposable']{constructor(_0x72570d,_0x574480,_0xd554c4,_0x1fa159,_0x3c39f5){const _0x38a833=_0xe5948a;super(),this[_0x38a833(0x4d0)]=_0x72570d,this['_drawingManagerService']=_0x574480,this[_0x38a833(0x505)]=_0xd554c4,this['_univerInstanceService']=_0x1fa159,this['_imageShapeClipController']=_0x3c39f5,E(this,_0x38a833(0x3f3),null),E(this,_0x38a833(0x15b),null),E(this,_0x38a833(0x264),null),E(this,_0x38a833(0x478),void 0x0),E(this,_0x38a833(0x47d),[]),E(this,_0x38a833(0x2d2),0x0),E(this,_0x38a833(0x1a8),0x0),E(this,_0x38a833(0x3e4),0x0),E(this,_0x38a833(0x380),0x0),E(this,_0x38a833(0x313),!0x1),E(this,_0x38a833(0x3c7),void 0x0),E(this,'_activeShapeModel',void 0x0),E(this,_0x38a833(0x351),void 0x0),E(this,_0x38a833(0x48a),void 0x0),E(this,'_isImagePointerDown',!0x1),this[_0x38a833(0x2ef)](),this[_0x38a833(0x4c2)]();}[_0xe5948a(0x2ae)](){const _0x4aaac7=_0xe5948a;this[_0x4aaac7(0x2ba)]();}[_0xe5948a(0x284)](){const _0x14f457=_0xe5948a;this[_0x14f457(0x2ba)](),this[_0x14f457(0x4e4)](!0x0);}[_0xe5948a(0x393)](_0x5da4b1,_0x13f2e9,_0x5c93f7,_0x2be977){const _0x48a25f=_0xe5948a;let _0x4c4cab=_0x5da4b1;if(_0x4c4cab!==n[_0x48a25f(0x335)][_0x48a25f(0x38d)]&&_0x5da4b1!==_0x48a25f(0x1ce))try{let _0xe8b1d8=new n[(_0x48a25f(0x41f))](_0x4c4cab,_0x48a25f(0x4f8)+_0x5da4b1);return _0x2be977&&_0xe8b1d8['setShapeData']({'adjustValues':_0x2be977},!0x0),_0xe8b1d8[_0x48a25f(0x4b1)]({'width':_0x13f2e9,'height':_0x5c93f7}),_0xe8b1d8;}catch{return;}}[_0xe5948a(0x2f6)](_0x31cee3,_0x48a625,_0x3b6d9e){const _0x503e94=_0xe5948a;let _0x3c1109={'unitId':_0x31cee3,'subUnitId':_0x48a625,'drawingId':_0x3b6d9e},_0x77e75f=this[_0x503e94(0x1c6)][_0x503e94(0x2ca)](_0x3c1109);if(_0x77e75f&&_0x77e75f[_0x503e94(0x28c)]===a['DrawingTypeEnum'][_0x503e94(0x34a)])return _0x77e75f;}[_0xe5948a(0x374)](_0x4f8ce0,_0x15b70d,_0x474b97){const _0x3671a6=_0xe5948a;let _0x4335ad=this[_0x3671a6(0x505)]['getRenderUnitById'](_0x4f8ce0);if(!_0x4335ad)return;let {scene:_0x296f50}=_0x4335ad,_0x22379b=(0x0,u[_0x3671a6(0x15a)])({'unitId':_0x4f8ce0,'subUnitId':_0x15b70d,'drawingId':_0x474b97}),_0x4c6bc8=_0x296f50[_0x3671a6(0x348)](_0x22379b);if(_0x4c6bc8 instanceof o['Image']){let _0x3410bb=_0x4c6bc8[_0x3671a6(0x3de)];if(_0x3410bb)return{'prstGeom':_0x3410bb,'adjustValues':_0x4c6bc8[_0x3671a6(0x327)]};}}[_0xe5948a(0x4e4)](_0x3b0299=!0x1){const _0x4e55d6=_0xe5948a;if(!this['_unitId']||!this[_0x4e55d6(0x264)]||!this[_0x4e55d6(0x3f3)])return;let _0x397345=this[_0x4e55d6(0x505)][_0x4e55d6(0x24f)](this[_0x4e55d6(0x15b)]);if(!_0x397345||!_0x397345[_0x4e55d6(0x2d7)](l['SheetSkeletonManagerService'])[_0x4e55d6(0x26d)]())return;let {scene:_0x14401f}=_0x397345,_0x5e9734=this[_0x4e55d6(0x2f6)](this[_0x4e55d6(0x15b)],this[_0x4e55d6(0x264)],this[_0x4e55d6(0x3f3)]);if(!_0x5e9734)return;let {transform:_0x10305a}=_0x5e9734;if(!_0x10305a)return;let {left:_0x9172a0,top:_0x3816a9,width:_0x49fafc,height:_0x1b27cd,flipX:_0x596bc3,flipY:_0x25e0c8,angle:_0x507adc=0x0}=_0x10305a;if(_0x9172a0===void 0x0||_0x3816a9===void 0x0)return;let _0x244cdb=this[_0x4e55d6(0x374)](this['_unitId'],this[_0x4e55d6(0x264)],this[_0x4e55d6(0x3f3)]);if(!_0x244cdb)return;if(_0x3b0299){let _0x5f3593=this[_0x4e55d6(0x393)](_0x244cdb[_0x4e55d6(0x3de)],_0x49fafc||0x0,_0x1b27cd||0x0,_0x244cdb[_0x4e55d6(0x219)]);if(!_0x5f3593)return;this[_0x4e55d6(0x478)]=_0x5f3593[_0x4e55d6(0x2db)]();}let _0xd3c021=this[_0x4e55d6(0x478)];if(_0xd3c021&&_0xd3c021[_0x4e55d6(0x26f)]!==0x0)for(let _0x1aa4b5=0x0;_0x1aa4b5<_0xd3c021[_0x4e55d6(0x26f)];_0x1aa4b5++){let _0x12489f=_0xd3c021[_0x1aa4b5],_0x4af6c4=_0x12489f['x'],_0x115b5b=_0x12489f['y'];if(_0x596bc3&&(_0x4af6c4=(_0x49fafc||0x0)-_0x4af6c4),_0x25e0c8&&(_0x115b5b=(_0x1b27cd||0x0)-_0x115b5b),_0x507adc!==0x0){let _0x384089=(_0x49fafc||0x0)/0x2,_0x360eab=(_0x1b27cd||0x0)/0x2,_0x57b45b=_0x507adc*Math['PI']/0xb4,_0x43ec18=Math['cos'](_0x57b45b),_0x1d0289=Math['sin'](_0x57b45b),_0x219cfc=_0x4af6c4-_0x384089,_0x4d17ae=_0x115b5b-_0x360eab;_0x4af6c4=_0x384089+(_0x219cfc*_0x43ec18-_0x4d17ae*_0x1d0289),_0x115b5b=_0x360eab+(_0x219cfc*_0x1d0289+_0x4d17ae*_0x43ec18);}let _0x17a45c={'x':_0x4af6c4,'y':_0x115b5b,'adjName':_0x12489f[_0x4e55d6(0x3c4)]};this['_addControl'](_0x14401f,_0x17a45c,_0x17a45c['adjName'],_0x9172a0,_0x3816a9,this['_unitId'],this['_subUnitId']);}}[_0xe5948a(0x34f)](_0x62df91,_0x256d4e,_0x17c254,_0x24b8ff,_0x26fae7,_0x38b2ce,_0x31277e){const _0x2120be=_0xe5948a;if(!this['_activeImageId'])return;let _0x17a12b=_0x2120be(0x2c7)+this[_0x2120be(0x3f3)]+'-'+_0x17c254,_0x648dcd=_0x62df91[_0x2120be(0x1a0)](_0x17a12b);if(_0x648dcd){_0x648dcd[_0x2120be(0x1fc)]({'left':_0x256d4e['x']+_0x24b8ff-n[_0x2120be(0x417)][_0x2120be(0x24d)],'top':_0x256d4e['y']+_0x26fae7-n['ShapeDefaultConfig'][_0x2120be(0x24d)]});return;}let _0x5e00a2=new O(_0x17a12b,{'left':_0x256d4e['x']+_0x24b8ff-n['ShapeDefaultConfig']['adjHandleSize'],'top':_0x256d4e['y']+_0x26fae7-n[_0x2120be(0x417)][_0x2120be(0x24d)],'adjName':_0x17c254,'shapeId':this[_0x2120be(0x3f3)],'unitId':_0x38b2ce,'subUnitId':_0x31277e,'width':n[_0x2120be(0x417)][_0x2120be(0x24d)]+0x8,'height':n[_0x2120be(0x417)][_0x2120be(0x24d)]+0x8,'zIndex':o[_0x2120be(0x2d8)]+0x1,'evented':!0x0});this['_shapes'][_0x2120be(0x488)](_0x5e00a2),this[_0x2120be(0x1d0)](_0x5e00a2,_0x62df91,_0x17c254),_0x62df91[_0x2120be(0x4bb)](_0x5e00a2,o[_0x2120be(0x2d8)]+0x1);}[_0xe5948a(0x2ba)](){const _0x16ffd5=_0xe5948a;this[_0x16ffd5(0x47d)][_0x16ffd5(0x26f)]!==0x0&&(this[_0x16ffd5(0x47d)][_0x16ffd5(0x4fc)](_0x1a1dd1=>_0x1a1dd1[_0x16ffd5(0x2c1)]()),this[_0x16ffd5(0x47d)]=[]);}['_getScrollInfo'](_0x4a41e2,_0x5ef861){const _0x3ff60f=_0xe5948a;var _0x23f6b8;let _0x207b9d={'x':0x0,'y':0x0},_0x3ada86=this[_0x3ff60f(0x505)][_0x3ff60f(0x24f)](_0x4a41e2);if(!_0x3ada86||!_0x3ada86[_0x3ff60f(0x2d7)](l[_0x3ff60f(0x433)])['getSkeleton'](_0x5ef861))return _0x207b9d;let _0x57c3ce=_0x3ada86[_0x3ff60f(0x2d7)](l[_0x3ff60f(0x455)]),_0x278b82=_0x57c3ce==null?void 0x0:_0x57c3ce[_0x3ff60f(0x1cc)]();if(!_0x278b82)return _0x207b9d;let _0x1c6849=(_0x23f6b8=this[_0x3ff60f(0x345)][_0x3ff60f(0x372)](_0x4a41e2))==null?void 0x0:_0x23f6b8[_0x3ff60f(0x3c8)](_0x5ef861);if(!_0x1c6849)return _0x207b9d;let _0xb7518f=(0x0,l['getViewportByCell'])(_0x278b82['sheetViewStartRow'],_0x278b82[_0x3ff60f(0x290)],_0x3ada86[_0x3ff60f(0x1b0)],_0x1c6849);return _0xb7518f?{'x':_0xb7518f['viewportScrollX'],'y':_0xb7518f[_0x3ff60f(0x3a1)]}:_0x207b9d;}[_0xe5948a(0x1bf)](_0x158cc,_0x295e2d){const _0x34986d=_0xe5948a;var _0x49694a;let _0x56f655=(_0x49694a=this[_0x34986d(0x345)][_0x34986d(0x372)](_0x158cc))==null?void 0x0:_0x49694a[_0x34986d(0x3c8)](_0x295e2d);return(_0x56f655==null?void 0x0:_0x56f655[_0x34986d(0x4aa)]())??0x1;}[_0xe5948a(0x1d0)](_0x20b559,_0x4e5889,_0x10cba8){const _0x32cacf=_0xe5948a;this[_0x32cacf(0x160)]((0x0,a['toDisposable'])(_0x20b559[_0x32cacf(0x17e)][_0x32cacf(0x388)]((_0x913b98,_0x18df1b)=>{const _0x3b8cb0=_0x32cacf;var _0x163b67,_0x4a0193,_0x66b8dd;let {unitId:_0x9baebf,subUnitId:_0x118f27,drawingId:_0x2f8902}=_0x20b559[_0x3b8cb0(0x1ff)](),_0x4df0b4=this[_0x3b8cb0(0x2f6)](_0x9baebf,_0x118f27,_0x2f8902);if(!(_0x4df0b4!=null&&_0x4df0b4[_0x3b8cb0(0x383)]))return;let {left:_0x3faee7,top:_0x8cf4e9,width:_0x189eb7,height:_0x1201ea}=_0x4df0b4['transform'];this[_0x3b8cb0(0x2d2)]=_0x3faee7||0x0,this['_baseTop']=_0x8cf4e9||0x0,this[_0x3b8cb0(0x3e4)]=_0x189eb7||0x0,this[_0x3b8cb0(0x380)]=_0x1201ea||0x0;let _0x2e73d6=!!((_0x163b67=_0x4df0b4[_0x3b8cb0(0x383)])!=null&&_0x163b67['flipX']),_0x55694d=!!((_0x4a0193=_0x4df0b4[_0x3b8cb0(0x383)])!=null&&_0x4a0193[_0x3b8cb0(0x419)]),_0x253423=((_0x66b8dd=_0x4df0b4['transform'])==null?void 0x0:_0x66b8dd[_0x3b8cb0(0x2ee)])||0x0,_0x20792d=this['_getImagePrstGeom'](_0x9baebf,_0x118f27,_0x2f8902);if(!_0x20792d)return;let _0x540b0b=this[_0x3b8cb0(0x393)](_0x20792d['prstGeom'],this[_0x3b8cb0(0x3e4)],this[_0x3b8cb0(0x380)],_0x20792d[_0x3b8cb0(0x219)]);if(!_0x540b0b||(this[_0x3b8cb0(0x44a)]=_0x540b0b,this[_0x3b8cb0(0x3c7)]=_0x540b0b['getAdjustInfoByName'](_0x10cba8),!this[_0x3b8cb0(0x3c7)]))return;this[_0x3b8cb0(0x313)]=!0x0,_0x4e5889[_0x3b8cb0(0x50a)]();let _0x30839b=_0x20792d['prstGeom'];this[_0x3b8cb0(0x351)]=_0x4e5889[_0x3b8cb0(0x15c)]['subscribeEvent']((_0x3777b8,_0x3fcbbb)=>{const _0x4deb7d=_0x3b8cb0;if(!this[_0x4deb7d(0x313)])return;let {offsetX:_0xe33ff7,offsetY:_0x264f82}=_0x3777b8,_0x2087fa=this[_0x4deb7d(0x3c7)];if(!this['_activeShapeModel']||!_0x2087fa)return;_0x4e5889['disableObjectsEvent'](),_0x4e5889[_0x4deb7d(0x161)](o[_0x4deb7d(0x1ba)][_0x4deb7d(0x1e5)]);let _0x80162e={'left':0x0,'top':0x0,'width':this[_0x4deb7d(0x3e4)],'height':this['_baseHeight']},_0x54fbea=this['_getScrollInfo'](_0x9baebf,_0x118f27),_0x25fe9f=this[_0x4deb7d(0x1bf)](_0x9baebf,_0x118f27),_0x3f3df4=_0xe33ff7/_0x25fe9f+_0x54fbea['x']-this['_baseLeft'],_0x1ffb83=_0x264f82/_0x25fe9f+_0x54fbea['y']-this[_0x4deb7d(0x1a8)];if(_0x253423!==0x0){let _0x28730f=this[_0x4deb7d(0x3e4)]/0x2,_0x44a21d=this[_0x4deb7d(0x380)]/0x2,_0x32dd93=_0x253423*Math['PI']/0xb4,_0xb5aaba=Math[_0x4deb7d(0x1f0)](_0x32dd93),_0x5c954f=Math[_0x4deb7d(0x3af)](_0x32dd93),_0x5ce785=_0x3f3df4-_0x28730f,_0x2148ef=_0x1ffb83-_0x44a21d;_0x3f3df4=_0x28730f+(_0x5ce785*_0xb5aaba+_0x2148ef*_0x5c954f),_0x1ffb83=_0x44a21d+(-_0x5ce785*_0x5c954f+_0x2148ef*_0xb5aaba);}_0x2e73d6&&(_0x3f3df4=this['_baseWidth']-_0x3f3df4),_0x55694d&&(_0x1ffb83=this[_0x4deb7d(0x380)]-_0x1ffb83);let _0x32fd27=this[_0x4deb7d(0x44a)][_0x4deb7d(0x489)](_0x80162e,{'x':_0x3f3df4,'y':_0x1ffb83},_0x2087fa,_0x2e73d6,_0x55694d);if(Object[_0x4deb7d(0x218)](_0x32fd27)[_0x4deb7d(0x26f)]!==0x0){for(let [_0x2ad127,_0x5d7c22]of Object[_0x4deb7d(0x3a6)](_0x32fd27))this[_0x4deb7d(0x44a)][_0x4deb7d(0x4bf)](_0x2ad127,_0x5d7c22);this[_0x4deb7d(0x44a)][_0x4deb7d(0x4b1)]({'width':this[_0x4deb7d(0x3e4)],'height':this[_0x4deb7d(0x380)]}),this['_updateImageAdjValues'](_0x9baebf,_0x118f27,_0x2f8902,_0x32fd27),this[_0x4deb7d(0x478)]=this['_activeShapeModel'][_0x4deb7d(0x2db)](),this['_createControls'](),_0x3fcbbb[_0x4deb7d(0x227)]();}}),this[_0x3b8cb0(0x48a)]=_0x4e5889[_0x3b8cb0(0x167)][_0x3b8cb0(0x388)]((_0x517dea,_0x282802)=>{const _0x22e608=_0x3b8cb0;if(this[_0x22e608(0x351)]['unsubscribe'](),this[_0x22e608(0x48a)][_0x22e608(0x18a)](),_0x4e5889[_0x22e608(0x4e7)](),this[_0x22e608(0x44a)]){let _0x2ffa34=this[_0x22e608(0x44a)][_0x22e608(0x465)](),_0x4c0876={};for(let _0x3ce9bf of _0x2ffa34){let _0x5c7153=this[_0x22e608(0x44a)][_0x22e608(0x496)](_0x3ce9bf);_0x5c7153!==void 0x0&&(_0x4c0876[_0x3ce9bf]=_0x5c7153);}this[_0x22e608(0x1a3)]['clipByShape'](_0x9baebf,_0x118f27,_0x2f8902,_0x30839b,_0x4c0876);}this[_0x22e608(0x3c7)]=void 0x0,this[_0x22e608(0x44a)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x282802[_0x22e608(0x227)](),_0x4e5889['enableObjectsEvent']();}),_0x18df1b['stopPropagation']();})));}[_0xe5948a(0x4fa)](_0x2c84b3,_0x5671da,_0x496fc0,_0x7d9240){const _0x3cd5d0=_0xe5948a;let _0x3571cc=this['_renderManagerService']['getRenderUnitById'](_0x2c84b3);if(!_0x3571cc)return;let {scene:_0x3ca6bd}=_0x3571cc,_0x1b9373=(0x0,u['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x2c84b3,'subUnitId':_0x5671da,'drawingId':_0x496fc0}),_0xab07e0=_0x3ca6bd[_0x3cd5d0(0x348)](_0x1b9373);if(_0xab07e0 instanceof o[_0x3cd5d0(0x312)]){let _0x5a4f24=_0xab07e0[_0x3cd5d0(0x327)]??{};_0xab07e0[_0x3cd5d0(0x43d)]({..._0x5a4f24,..._0x7d9240}),_0xab07e0['makeDirty'](!0x0);}}[_0xe5948a(0x4c2)](){const _0x26152b=_0xe5948a;let _0x5dd32c=this['_univerInstanceService'][_0x26152b(0x15f)](a[_0x26152b(0x3fe)][_0x26152b(0x1f5)]);this[_0x26152b(0x160)](_0x5dd32c[_0x26152b(0x41c)]((0x0,d['switchMap'])(_0x7f4222=>_0x7f4222?_0x7f4222['activeSheet$']['pipe']((0x0,d['switchMap'])(_0x12f329=>{const _0x353052=_0x26152b;if(!_0x12f329)return d[_0x353052(0x30e)];let _0x525653=_0x7f4222[_0x353052(0x32f)](),_0x798db6=this[_0x353052(0x505)][_0x353052(0x24f)](_0x525653),_0x145f6f=_0x798db6==null?void 0x0:_0x798db6[_0x353052(0x1b0)];return _0x145f6f?(0x0,d['of'])(_0x145f6f):d[_0x353052(0x30e)];})):d[_0x26152b(0x30e)]))[_0x26152b(0x208)](_0x3b83f8=>{const _0x50d63a=_0x26152b;let _0x29d9e6=_0x3b83f8[_0x50d63a(0x3e6)]();this[_0x50d63a(0x160)](_0x3b83f8[_0x50d63a(0x15c)][_0x50d63a(0x388)](()=>{this['_isImagePointerDown']&&this['_clearControls']();})),this['disposeWithMe'](_0x29d9e6[_0x50d63a(0x235)][_0x50d63a(0x208)](_0x54394b=>{const _0x205f84=_0x50d63a;let {objects:_0x4db434}=_0x54394b;if(this[_0x205f84(0x4e4)](),_0x4db434!==null&&_0x4db434[_0x205f84(0x308)]===0x1){let _0x5e975d=_0x4db434['values']()[_0x205f84(0x249)]()[_0x205f84(0x446)];_0x5e975d instanceof o['Image']&&_0x5e975d['prstGeom']&&(this[_0x205f84(0x456)]=!0x0);}})),this['disposeWithMe'](_0x29d9e6[_0x50d63a(0x29f)][_0x50d63a(0x208)](()=>{const _0x43ea98=_0x50d63a;this[_0x43ea98(0x456)]&&this[_0x43ea98(0x2ba)]();})),this[_0x50d63a(0x160)](_0x3b83f8[_0x50d63a(0x167)]['subscribeEvent'](()=>{const _0x59615e=_0x50d63a;this[_0x59615e(0x456)]&&(this[_0x59615e(0x456)]=!0x1,this[_0x59615e(0x4e4)]());})),this['disposeWithMe'](_0x29d9e6['changeEnd$'][_0x50d63a(0x208)](()=>{const _0x30f711=_0x50d63a;if(this[_0x30f711(0x15b)]&&this['_subUnitId']&&this['_activeImageId']){let _0x3fd21e=this[_0x30f711(0x374)](this[_0x30f711(0x15b)],this[_0x30f711(0x264)],this[_0x30f711(0x3f3)]);if(_0x3fd21e){var _0x32af42,_0x8fe77f;let _0x24b6f4=this['_getImageDrawingInfo'](this[_0x30f711(0x15b)],this[_0x30f711(0x264)],this[_0x30f711(0x3f3)]),_0x518ab2=(_0x24b6f4==null||(_0x32af42=_0x24b6f4[_0x30f711(0x383)])==null?void 0x0:_0x32af42[_0x30f711(0x33d)])||0x0,_0x119bec=(_0x24b6f4==null||(_0x8fe77f=_0x24b6f4[_0x30f711(0x383)])==null?void 0x0:_0x8fe77f[_0x30f711(0x25e)])||0x0,_0x213787=this[_0x30f711(0x393)](_0x3fd21e[_0x30f711(0x3de)],_0x518ab2,_0x119bec,_0x3fd21e['adjustValues']);_0x213787&&(this[_0x30f711(0x478)]=_0x213787['getDrawingPoints'](),this['_clearControls'](),this[_0x30f711(0x4e4)](!0x0));}}}));}));}[_0xe5948a(0x2ef)](){const _0x1421a6=_0xe5948a;this[_0x1421a6(0x160)](this[_0x1421a6(0x1c6)][_0x1421a6(0x4e1)][_0x1421a6(0x208)](_0x182574=>{const _0x3e327c=_0x1421a6;if(_0x182574[_0x3e327c(0x26f)]===0x1){let _0x3a47e5=_0x182574[0x0];if(_0x3a47e5[_0x3e327c(0x28c)]===a[_0x3e327c(0x41e)][_0x3e327c(0x34a)]){let {unitId:_0x1bc7a8,subUnitId:_0x372a5b,drawingId:_0x1a55b1}=_0x3a47e5,_0xa09fe6=this[_0x3e327c(0x374)](_0x1bc7a8,_0x372a5b,_0x1a55b1);if(_0xa09fe6){var _0x1150a0,_0x87b0c1;this[_0x3e327c(0x3f3)]=_0x1a55b1,this[_0x3e327c(0x15b)]=_0x1bc7a8,this[_0x3e327c(0x264)]=_0x372a5b;let _0x512768=this[_0x3e327c(0x2f6)](_0x1bc7a8,_0x372a5b,_0x1a55b1),_0x2629d1=(_0x512768==null||(_0x1150a0=_0x512768[_0x3e327c(0x383)])==null?void 0x0:_0x1150a0[_0x3e327c(0x33d)])||0x0,_0x1d61bb=(_0x512768==null||(_0x87b0c1=_0x512768[_0x3e327c(0x383)])==null?void 0x0:_0x87b0c1[_0x3e327c(0x25e)])||0x0,_0x1ef4cc=this[_0x3e327c(0x393)](_0xa09fe6['prstGeom'],_0x2629d1,_0x1d61bb,_0xa09fe6[_0x3e327c(0x219)]);_0x1ef4cc&&(this[_0x3e327c(0x478)]=_0x1ef4cc[_0x3e327c(0x2db)]()),this['_clearControls'](),this[_0x3e327c(0x4e4)](!0x0);}else this['_resetState']();}else this[_0x3e327c(0x4ca)]();}else this[_0x3e327c(0x4ca)]();})),this[_0x1421a6(0x160)](this[_0x1421a6(0x1c6)][_0x1421a6(0x4f9)][_0x1421a6(0x208)](_0x1c06db=>{const _0x44e9ef=_0x1421a6;if(_0x1c06db[_0x44e9ef(0x26f)]===0x1){let _0x390a67=_0x1c06db[0x0],_0x301db8=this[_0x44e9ef(0x1c6)][_0x44e9ef(0x2ca)](_0x390a67);(_0x301db8==null?void 0x0:_0x301db8[_0x44e9ef(0x28c)])===a['DrawingTypeEnum'][_0x44e9ef(0x34a)]&&this[_0x44e9ef(0x3f3)]===_0x390a67[_0x44e9ef(0x302)]&&(this[_0x44e9ef(0x2ba)](),this[_0x44e9ef(0x4e4)](!0x0));}})),this[_0x1421a6(0x160)](this['_drawingManagerService']['remove$'][_0x1421a6(0x208)](_0x4890e4=>{const _0x38ed97=_0x1421a6;for(let _0x2c45c6 of _0x4890e4)this[_0x38ed97(0x3f3)]===_0x2c45c6[_0x38ed97(0x302)]&&this[_0x38ed97(0x4ca)]();}));}[_0xe5948a(0x4ca)](){const _0x51b445=_0xe5948a;this[_0x51b445(0x3f3)]=null,this['_unitId']=null,this[_0x51b445(0x264)]=null,this[_0x51b445(0x478)]=void 0x0,this[_0x51b445(0x2ba)]();}};pt=A([k(0x1,u[_0xe5948a(0x3f0)]),k(0x2,(0x0,a['Inject'])(o[_0xe5948a(0x40d)])),k(0x3,a['IUniverInstanceService']),k(0x4,(0x0,a[_0xe5948a(0x25d)])(L))],pt);function mt({PanelComponent:_0xf059e8=f[_0xe5948a(0x172)]}){const _0x41c915=_0xe5948a;var _0x23b252;function _0x4a5370(_0x4b26e3){const _0x358a3f=_0x4ecd;return _0x4b26e3[_0x358a3f(0x1bc)]()||void 0x0;}function _0x319f7c(_0x22b893,_0x5f3d03,_0x5ce72e){const _0x9735ca=_0x4ecd;var _0x52c3b9;return((_0x52c3b9=_0x22b893['name'])==null?void 0x0:_0x52c3b9[_0x9735ca(0x1bc)]())||_0x5ce72e['t'](_0x9735ca(0x4df)+(0x0,e[_0x9735ca(0x157)])(_0x22b893['drawingType']))+'\x20'+(_0x5f3d03+0x1);}let _0x5a20a3=(0x0,t[_0x41c915(0x4f2)])(a[_0x41c915(0x309)]),_0x380fd4={'title':_0x5a20a3['t'](_0x41c915(0x1f4)),'empty':_0x5a20a3['t'](_0x41c915(0x1e2)),'showAll':_0x5a20a3['t']('drawing-ui.objectListPanel.showAll'),'hideAll':_0x5a20a3['t'](_0x41c915(0x472)),'lockAll':_0x5a20a3['t'](_0x41c915(0x333)),'unlockAll':_0x5a20a3['t'](_0x41c915(0x17d)),'moveForward':_0x5a20a3['t'](_0x41c915(0x22b)),'moveBackward':_0x5a20a3['t'](_0x41c915(0x462)),'close':_0x5a20a3['t']('drawing-ui.objectListPanel.close'),'show':_0x5a20a3['t']('drawing-ui.objectListPanel.show'),'hide':_0x5a20a3['t'](_0x41c915(0x46a)),'lock':_0x5a20a3['t'](_0x41c915(0x31f)),'unlock':_0x5a20a3['t'](_0x41c915(0x1ea)),'lockHint':_0x5a20a3['t'](_0x41c915(0x4b8)),'unlockHint':_0x5a20a3['t'](_0x41c915(0x1b4)),'name':_0x5a20a3['t'](_0x41c915(0x2d1)),'nameInput':_0x5a20a3['t'](_0x41c915(0x355)),'description':_0x5a20a3['t']('drawing-ui.objectListPanel.description'),'descriptionPlaceholder':_0x5a20a3['t'](_0x41c915(0x43c)),'details':_0x5a20a3['t']('drawing-ui.objectListPanel.details'),'noSelection':_0x5a20a3['t']('drawing-ui.objectListPanel.noSelection'),'locate':_0x5a20a3['t'](_0x41c915(0x3f4)),'expand':_0x5a20a3['t'](_0x41c915(0x463)),'collapse':_0x5a20a3['t']('drawing-ui.objectListPanel.collapse'),'dragToReorder':_0x5a20a3['t']('drawing-ui.objectListPanel.dragToReorder'),'search':_0x5a20a3['t'](_0x41c915(0x259)),'filterAll':_0x5a20a3['t'](_0x41c915(0x1d6)),'filterHidden':_0x5a20a3['t'](_0x41c915(0x1ec)),'filterLocked':_0x5a20a3['t'](_0x41c915(0x4d7)),'sectionCanvas':_0x5a20a3['t'](_0x41c915(0x4a7)),'sectionFloating':_0x5a20a3['t']('drawing-ui.objectListPanel.sectionFloating')},_0x490fd3=(0x0,t[_0x41c915(0x4f2)])(a[_0x41c915(0x3e7)]),_0x3e8caa=(0x0,t[_0x41c915(0x4f2)])(a[_0x41c915(0x402)]),_0x2c2662=(0x0,t['useDependency'])(c[_0x41c915(0x305)]),_0x4a5f52=(0x0,t[_0x41c915(0x4f2)])(u['IDrawingManagerService']),_0x2d91f5=(0x0,t[_0x41c915(0x4f2)])(o[_0x41c915(0x40d)]),_0x185538=(0x0,t[_0x41c915(0x4f2)])(t[_0x41c915(0x37f)]),[,_0x42b08b]=(0x0,b[_0x41c915(0x48e)])(_0x5397ba=>_0x5397ba+0x1,0x0),_0x4a1c51=_0x3e8caa[_0x41c915(0x287)](a['UniverInstanceType'][_0x41c915(0x1f5)]),_0x32e858=(_0x4a1c51==null?void 0x0:_0x4a1c51[_0x41c915(0x32f)]())??'',_0x5367db=(_0x4a1c51==null||(_0x23b252=_0x4a1c51[_0x41c915(0x1a7)]())==null?void 0x0:_0x23b252['getSheetId']())??'',_0x49c0f0=(0x0,t[_0x41c915(0x4ef)])(()=>_0x4a5f52[_0x41c915(0x4e1)],_0x4a5f52[_0x41c915(0x4ee)](),!0x1,[_0x4a5f52]);(0x0,b[_0x41c915(0x507)])(()=>{const _0x23f1c9=_0x41c915;let _0x418e9d=_0x490fd3[_0x23f1c9(0x22c)](()=>_0x42b08b());return()=>_0x418e9d[_0x23f1c9(0x2c1)]();},[_0x490fd3]);let _0x11ae12=_0x32e858&&_0x5367db?_0x2c2662[_0x41c915(0x440)](_0x32e858,_0x5367db):{},_0x287c79=(_0x32e858&&_0x5367db?_0x2c2662[_0x41c915(0x347)](_0x32e858,_0x5367db):[])[_0x41c915(0x2ab)](_0xbb8cf8=>_0x11ae12[_0xbb8cf8])['filter'](_0x43e4fb=>!!_0x43e4fb)[_0x41c915(0x2e2)](),_0x1f37ce=_0x287c79[_0x41c915(0x2ec)]((_0x5539b9,_0x5e1ff7)=>(_0x5539b9[(0x0,f['getObjectListPanelSectionIdForDrawingType'])(_0x5e1ff7[_0x41c915(0x28c)])]+=0x1,_0x5539b9),{'canvas':0x0,'floating':0x0}),_0x4d6a9c={'canvas':0x0,'floating':0x0},_0x1b6dd6=_0x287c79[_0x41c915(0x2ab)]((_0x259373,_0x5a878e)=>{const _0x12782c=_0x41c915;let _0x24b9f3=(0x0,f[_0x12782c(0x490)])(_0x259373[_0x12782c(0x28c)]),_0x2839b0=_0x24b9f3===f[_0x12782c(0x2e1)],_0x1b423f=_0x4d6a9c[_0x24b9f3]++;return{'id':_0x259373['drawingId'],'name':_0x319f7c(_0x259373,_0x5a878e,_0x5a20a3),'description':_0x259373[_0x12782c(0x223)],'visible':_0x259373[_0x12782c(0x224)]!==!0x0,'selectable':_0x259373[_0x12782c(0x3aa)]!==!0x1,'sectionId':_0x24b9f3,'sectionTitle':_0x2839b0?_0x380fd4['sectionFloating']:_0x380fd4['sectionCanvas'],'capabilities':_0x2839b0?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x2839b0&&_0x1b423f>0x0,'canMoveBackward':!_0x2839b0&&_0x1b423f<_0x1f37ce[_0x12782c(0x1c7)]-0x1,'canReorder':!_0x2839b0};}),_0x12f69e=(0x0,b[_0x41c915(0x3ef)])(()=>(_0x49c0f0??[])[_0x41c915(0x412)](_0x367da1=>_0x367da1[_0x41c915(0x40e)]===_0x32e858&&_0x367da1['subUnitId']===_0x5367db)['map'](_0x8c2ff5=>_0x8c2ff5[_0x41c915(0x302)]),[_0x49c0f0,_0x5367db,_0x32e858]),_0x24c646=_0x12f69e[_0x12f69e[_0x41c915(0x26f)]-0x1]??null,_0x47b8a9=_0xf38e0c=>_0x2c2662[_0x41c915(0x2ca)]({'unitId':_0x32e858,'subUnitId':_0x5367db,'drawingId':_0xf38e0c})??null,_0x5dc24a=async _0xec14c3=>{const _0x3d2f6d=_0x41c915;_0x32e858&&_0xec14c3[_0x3d2f6d(0x26f)]&&await _0x490fd3['executeCommand'](c[_0x3d2f6d(0x301)]['id'],{'unitId':_0x32e858,'drawings':_0xec14c3});},_0x10f930=async(_0x4e428e,_0x4f34ba)=>{_0x47b8a9(_0x4e428e)&&await _0x5dc24a([{'unitId':_0x32e858,'subUnitId':_0x5367db,'drawingId':_0x4e428e,..._0x4f34ba}]);},_0x1e583d=(_0x51815c,_0x8403fb)=>{const _0x273a24=_0x41c915;if(!_0x32e858||!_0x5367db)return;let _0x20e44c=_0x8403fb?_0x12f69e['includes'](_0x51815c)?_0x12f69e[_0x273a24(0x412)](_0x3bb749=>_0x3bb749!==_0x51815c):[..._0x12f69e,_0x51815c]:[_0x51815c];_0x490fd3['syncExecuteCommand'](u[_0x273a24(0x4fd)]['id'],_0x20e44c[_0x273a24(0x2ab)](_0x33896d=>({'unitId':_0x32e858,'subUnitId':_0x5367db,'drawingId':_0x33896d})));let _0x3de6e3=_0x20e44c[_0x20e44c[_0x273a24(0x26f)]-0x1];_0x3de6e3?((0x0,e[_0x273a24(0x359)])(_0x2d91f5,{'unitId':_0x32e858,'subUnitId':_0x5367db,'drawingId':_0x3de6e3}),_0x185538[_0x273a24(0x43a)](_0x32e858)):(0x0,e[_0x273a24(0x498)])(_0x2d91f5,_0x32e858);},_0x49ee6f=async(_0x58c397,_0x1bd9f9)=>{const _0x2ecfb0=_0x41c915;await _0x5dc24a(_0x58c397[_0x2ecfb0(0x2ab)](_0x6b1e8=>_0x47b8a9(_0x6b1e8))[_0x2ecfb0(0x412)](_0x4f9a1e=>!!_0x4f9a1e)[_0x2ecfb0(0x412)](_0x557f43=>_0x557f43[_0x2ecfb0(0x224)]!==!0x0!==_0x1bd9f9)[_0x2ecfb0(0x2ab)](_0x1da462=>({'unitId':_0x32e858,'subUnitId':_0x5367db,'drawingId':_0x1da462[_0x2ecfb0(0x302)],'hidden':!_0x1bd9f9})));},_0x450863=async(_0x9824b5,_0x3d7abe)=>{const _0x1d00f4=_0x41c915;await _0x5dc24a(_0x9824b5['map'](_0x12cc8c=>_0x47b8a9(_0x12cc8c))[_0x1d00f4(0x412)](_0x2eee9e=>!!_0x2eee9e)[_0x1d00f4(0x412)](_0x146a3b=>_0x146a3b[_0x1d00f4(0x3aa)]!==!0x1!==_0x3d7abe)[_0x1d00f4(0x2ab)](_0x2b0d55=>({'unitId':_0x32e858,'subUnitId':_0x5367db,'drawingId':_0x2b0d55[_0x1d00f4(0x302)],'selectable':_0x3d7abe})));},_0x4706b1=_0x4b935c=>{const _0x51d27e=_0x41c915;let _0x32d576=_0x47b8a9(_0x4b935c);if(_0x32d576)return _0x450863([_0x4b935c],_0x32d576[_0x51d27e(0x3aa)]===!0x1);},_0x2081b1=async(_0x271855,_0x502126)=>{const _0x243ff0=_0x41c915;var _0x198967;let _0x5a638a=_0x4a5370(_0x502126);(((_0x198967=_0x47b8a9(_0x271855))==null?void 0x0:_0x198967[_0x243ff0(0x1b6)])??void 0x0)!==_0x5a638a&&await _0x10f930(_0x271855,{'name':_0x5a638a});},_0x181843=async(_0x12bca9,_0x566496)=>{var _0xdf77e7;let _0x57aaaf=_0x4a5370(_0x566496);(((_0xdf77e7=_0x47b8a9(_0x12bca9))==null?void 0x0:_0xdf77e7['description'])??void 0x0)!==_0x57aaaf&&await _0x10f930(_0x12bca9,{'description':_0x57aaaf});},_0x134056=async(_0x4bc2d4,_0x4282ea)=>{const _0x330d35=_0x41c915;_0x32e858&&_0x5367db&&await _0x490fd3[_0x330d35(0x17f)](c['SetDrawingArrangeCommand']['id'],{'unitId':_0x32e858,'subUnitId':_0x5367db,'drawingIds':[_0x4bc2d4],'arrangeType':_0x4282ea});};return!_0x32e858||!_0x5367db?(0x0,m[_0x41c915(0x216)])(_0x41c915(0x40f),{'className':_0x41c915(0x2b5),'children':_0x380fd4['title']}):(0x0,m['jsx'])(_0xf059e8,{'labels':_0x380fd4,'items':_0x1b6dd6,'selectedIds':_0x12f69e,'focusedId':_0x24c646,'showHeader':!0x1,'onSelect':_0x1e583d,'onSetVisible':_0x49ee6f,'onSetSelectable':_0x450863,'onCommitName':_0x2081b1,'onCommitDescription':_0x181843,'onMoveForward':async _0x13c698=>_0x134056(_0x13c698,a[_0x41c915(0x19a)]['forward']),'onMoveBackward':async _0x109f11=>_0x134056(_0x109f11,a[_0x41c915(0x19a)]['backward']),'onToggleSelectable':_0x4706b1});}function ht(){const _0x87aaf3=_0xe5948a;return(0x0,m[_0x87aaf3(0x216)])(mt,{'PanelComponent':f['MobileObjectListPanel']});}let gt=class extends a[_0xe5948a(0x1e6)]{constructor(_0x4ec23d,_0x5204ce){const _0x4b06ef=_0xe5948a;super(),this[_0x4b06ef(0x160)](_0x4ec23d[_0x4b06ef(0x357)](F,ht)),this['disposeWithMe'](_0x5204ce[_0x4b06ef(0x357)]({'BottomIcon':y['BottomIcon'],'FlipHorizontalIcon':y[_0x4b06ef(0x511)],'FlipVerticalIcon':y[_0x4b06ef(0x332)],'MoveDownIcon':y[_0x4b06ef(0x501)],'MoveUpIcon':y[_0x4b06ef(0x2eb)],'ObjectLayersIcon':y[_0x4b06ef(0x3a5)],'ShapeFormatSettingIcon':y['ShapeFormatSettingIcon'],'TopmostIcon':y[_0x4b06ef(0x3ce)]})),this[_0x4b06ef(0x160)](_0x4ec23d['register'](fe,ye)),this[_0x4b06ef(0x160)](_0x4ec23d['register'](pe,ge)),_0x4ec23d['hasDefault'](f[_0x4b06ef(0x205)])||this['disposeWithMe'](_0x4ec23d[_0x4b06ef(0x357)](f['IMAGE_CLIP_SHAPE_PICKER_COMPONENT'],_e));}};gt=A([k(0x0,(0x0,a['Inject'])(t['ComponentManager'])),k(0x1,(0x0,a[_0xe5948a(0x25d)])(t['IconManager']))],gt);let V=class extends a['Disposable']{constructor(_0x19a196){const _0x3a315a=_0xe5948a;super(),this[_0x3a315a(0x21f)]=_0x19a196,E(this,'_editingParams$',new d[(_0x3a315a(0x46e))](null)),E(this,_0x3a315a(0x242),this[_0x3a315a(0x3d6)][_0x3a315a(0x2ea)]()),E(this,_0x3a315a(0x2df),new d[(_0x3a315a(0x46e))](!0x1)),E(this,'onSavingEditorData$',this[_0x3a315a(0x2df)][_0x3a315a(0x2ea)]()),E(this,'_completionFrame',void 0x0),this[_0x3a315a(0x160)](this[_0x3a315a(0x21f)][_0x3a315a(0x231)][_0x3a315a(0x208)](()=>{const _0x1d20ed=_0x3a315a;let _0xc7ae50=this['getEditing']();_0xc7ae50!=null&&_0xc7ae50[_0x1d20ed(0x1c4)]&&!this[_0x1d20ed(0x28a)](_0xc7ae50)&&this[_0x1d20ed(0x3f2)](null);}));}[_0xe5948a(0x2c1)](){const _0x1b41b3=_0xe5948a;this['_clearCompletionFrame'](),this[_0x1b41b3(0x3d6)][_0x1b41b3(0x249)](null),this['_editingParams$'][_0x1b41b3(0x3cc)](),this[_0x1b41b3(0x2df)][_0x1b41b3(0x249)](!0x1),this[_0x1b41b3(0x2df)][_0x1b41b3(0x3cc)](),super[_0x1b41b3(0x2c1)]();}[_0xe5948a(0x3f2)](_0x50d687){const _0x137cbb=_0xe5948a;(_0x50d687==null||!_0x50d687[_0x137cbb(0x1c4)]||this['_canEdit'](_0x50d687))&&(this[_0x137cbb(0x4a1)](),this[_0x137cbb(0x3d6)][_0x137cbb(0x249)](_0x50d687),(_0x50d687==null||_0x50d687[_0x137cbb(0x1c4)]&&this['_onSavingEditorData$'][_0x137cbb(0x339)]())&&this[_0x137cbb(0x2df)][_0x137cbb(0x249)](!0x1));}[_0xe5948a(0x1c2)](_0x3140b2){const _0x23e4db=_0xe5948a;this[_0x23e4db(0x2df)][_0x23e4db(0x249)](_0x3140b2);}[_0xe5948a(0x22f)](){const _0x593f0f=_0xe5948a;return this[_0x593f0f(0x3d6)][_0x593f0f(0x339)]();}[_0xe5948a(0x28a)](_0x240be0){const _0x4b89b8=_0xe5948a;let _0x587ca0=this[_0x4b89b8(0x21f)][_0x4b89b8(0x4c1)](new s[(_0x4b89b8(0x4cd))](_0x240be0[_0x4b89b8(0x40e)])['id']),_0x23f089=this[_0x4b89b8(0x21f)]['getPermissionPoint'](new s[(_0x4b89b8(0x4f6))](_0x240be0[_0x4b89b8(0x40e)],_0x240be0['subUnitId'])['id']);return((_0x587ca0==null?void 0x0:_0x587ca0[_0x4b89b8(0x446)])??!0x0)&&((_0x23f089==null?void 0x0:_0x23f089[_0x4b89b8(0x446)])??!0x0);}[_0xe5948a(0x448)](_0x5306d7){const _0x2471d4=_0xe5948a;let _0x59a556=this[_0x2471d4(0x22f)]();_0x59a556&&this[_0x2471d4(0x2be)]===void 0x0&&(this[_0x2471d4(0x1c2)](!0x0),this[_0x2471d4(0x2be)]=requestAnimationFrame(()=>{const _0x5e6763=_0x2471d4;this[_0x5e6763(0x2be)]=void 0x0,this[_0x5e6763(0x22f)]()===_0x59a556&&this[_0x5e6763(0x3f2)](null);}));}[_0xe5948a(0x4a1)](){const _0x56555e=_0xe5948a;this[_0x56555e(0x2be)]!==void 0x0&&(cancelAnimationFrame(this[_0x56555e(0x2be)]),this[_0x56555e(0x2be)]=void 0x0);}[_0xe5948a(0x1d7)](){const _0x51cb50=_0xe5948a;this[_0x51cb50(0x22f)]()&&this[_0x51cb50(0x3f2)](null);}};V=A([k(0x0,a[_0xe5948a(0x340)])],V);let _t=class extends a[_0xe5948a(0x1e6)]{constructor(_0x18a65b,_0x32d723,_0x54a862,_0x4eb42b,_0x160db8,_0x3f0abe){const _0x4f8c3a=_0xe5948a;super(),this['_context']=_0x18a65b,this['_injector']=_0x32d723,this[_0x4f8c3a(0x453)]=_0x54a862,this[_0x4f8c3a(0x1c6)]=_0x4eb42b,this[_0x4f8c3a(0x1fd)]=_0x160db8,this[_0x4f8c3a(0x4f0)]=_0x3f0abe,E(this,'_lastEditingShapeKey',null),this[_0x4f8c3a(0x4ae)](),this['_initSelection'](),this[_0x4f8c3a(0x50e)]();}[_0xe5948a(0x4ae)](){const _0x5c90d2=_0xe5948a;let {scene:_0x573feb}=this['_context'];this[_0x5c90d2(0x160)](_0x573feb[_0x5c90d2(0x3df)][_0x5c90d2(0x388)](_0x54e56e=>{const _0x1c1312=_0x5c90d2;let {offsetX:_0x418d3c,offsetY:_0x5cab0d}=_0x54e56e,_0x33e9c4=_0x573feb[_0x1c1312(0x49c)](o['Vector2'][_0x1c1312(0x165)]([_0x418d3c,_0x5cab0d]));if(_0x33e9c4 instanceof D){let _0x5ea1f2=this[_0x1c1312(0x4f0)][_0x1c1312(0x3ae)](_0x33e9c4[_0x1c1312(0x40e)],_0x33e9c4[_0x1c1312(0x1e9)],_0x33e9c4[_0x1c1312(0x31a)]);if((0x0,n['isConnectorShape'])(this[_0x1c1312(0x4f0)][_0x1c1312(0x325)](_0x33e9c4[_0x1c1312(0x40e)],_0x33e9c4['subUnitId'],_0x33e9c4[_0x1c1312(0x31a)]))||_0x5ea1f2!=null&&_0x5ea1f2[_0x1c1312(0x192)]()[_0x1c1312(0x2d4)])return;this[_0x1c1312(0x453)][_0x1c1312(0x3f2)]({'visible':!0x0,'unitId':_0x33e9c4[_0x1c1312(0x40e)],'subUnitId':_0x33e9c4[_0x1c1312(0x1e9)],'shapeId':_0x33e9c4[_0x1c1312(0x31a)],'shapeKey':_0x33e9c4[_0x1c1312(0x258)]});}}));}[_0xe5948a(0x3f8)](){const _0x4e130e=_0xe5948a;this['disposeWithMe'](this[_0x4e130e(0x1c6)][_0x4e130e(0x4e1)]['subscribe'](_0x701868=>{const _0x4f7b35=_0x4e130e;if(_0x701868[_0x4f7b35(0x26f)]===0x1){let _0x30373e=_0x701868[0x0],_0x2b5c15=this[_0x4f7b35(0x1c6)]['getDrawingByParam'](_0x30373e);if((_0x2b5c15==null?void 0x0:_0x2b5c15[_0x4f7b35(0x28c)])===a[_0x4f7b35(0x41e)]['DRAWING_SHAPE']){var _0x43e5f0;let _0x56f3da=this[_0x4f7b35(0x453)][_0x4f7b35(0x22f)]();if((_0x56f3da==null?void 0x0:_0x56f3da[_0x4f7b35(0x31a)])===_0x30373e[_0x4f7b35(0x302)]&&_0x56f3da[_0x4f7b35(0x1c4)])return;let _0x144fcf=(0x0,n[_0x4f7b35(0x1b3)])(this[_0x4f7b35(0x4f0)][_0x4f7b35(0x325)](_0x30373e[_0x4f7b35(0x40e)],_0x30373e[_0x4f7b35(0x1e9)],_0x30373e['drawingId'])),_0x450009=!!((_0x43e5f0=this[_0x4f7b35(0x4f0)][_0x4f7b35(0x3ae)](_0x30373e[_0x4f7b35(0x40e)],_0x30373e['subUnitId'],_0x30373e[_0x4f7b35(0x302)]))!=null&&_0x43e5f0[_0x4f7b35(0x192)]()[_0x4f7b35(0x2d4)]);(_0x144fcf||_0x450009)&&this[_0x4f7b35(0x453)][_0x4f7b35(0x3f2)](null);}else this[_0x4f7b35(0x453)][_0x4f7b35(0x448)]();}else this[_0x4f7b35(0x453)]['completeEditing']();})),this['disposeWithMe'](this[_0x4e130e(0x1c6)][_0x4e130e(0x1cd)][_0x4e130e(0x208)](_0x32a679=>{const _0x2a5c41=_0x4e130e;let _0x5c3e8b=this[_0x2a5c41(0x453)][_0x2a5c41(0x22f)]();_0x5c3e8b&&_0x32a679[_0x2a5c41(0x168)](_0x228a7b=>_0x228a7b[_0x2a5c41(0x302)]===_0x5c3e8b['shapeId'])&&this[_0x2a5c41(0x453)][_0x2a5c41(0x3f2)](null);}));}['_initEditingParams'](){const _0x30a0d3=_0xe5948a;this[_0x30a0d3(0x160)](this[_0x30a0d3(0x453)]['editingParams$'][_0x30a0d3(0x208)](_0x4241a4=>{const _0x34d661=_0x30a0d3;let {scene:_0x2d67b4}=this['_context'];if(this[_0x34d661(0x239)]){let _0x3a56fc=_0x2d67b4['getObjectIncludeInGroup'](this[_0x34d661(0x239)]);_0x3a56fc&&_0x3a56fc[_0x34d661(0x3f2)](!0x1);}if(_0x4241a4){let _0x16547f=!!_0x4241a4[_0x34d661(0x1c4)],_0x28e9d6=_0x2d67b4[_0x34d661(0x1a0)](_0x4241a4[_0x34d661(0x21d)]);_0x28e9d6&&(_0x28e9d6['setEditing'](_0x16547f),this[_0x34d661(0x239)]=_0x4241a4[_0x34d661(0x21d)]),this[_0x34d661(0x1fd)]['setContextValue'](a[_0x34d661(0x431)],_0x16547f);}else this[_0x34d661(0x239)]=null,this[_0x34d661(0x1fd)]['setContextValue'](a[_0x34d661(0x431)],!0x1);}));}};_t=A([k(0x1,(0x0,a[_0xe5948a(0x25d)])(a[_0xe5948a(0x2e6)])),k(0x2,(0x0,a[_0xe5948a(0x25d)])(V)),k(0x3,u[_0xe5948a(0x3f0)]),k(0x4,a['IContextService']),k(0x5,(0x0,a['Inject'])(i[_0xe5948a(0x45f)]))],_t);var vt=class extends _t{[_0xe5948a(0x4ae)](){const _0x16a127=_0xe5948a;let {scene:_0x48fc55}=this[_0x16a127(0x4d0)],_0x164254=this[_0x16a127(0x245)][_0x16a127(0x41b)](e[_0x16a127(0x4a8)]);this[_0x16a127(0x160)](_0x48fc55['onDblclick$'][_0x16a127(0x388)](_0x562d85=>{const _0x127b00=_0x16a127;let {offsetX:_0x402baf,offsetY:_0x54a69b}=_0x562d85,_0x3b2989=_0x48fc55[_0x127b00(0x49c)](o[_0x127b00(0x33e)][_0x127b00(0x165)]([_0x402baf,_0x54a69b]));if(!(_0x3b2989 instanceof D))return;let _0x301449=this[_0x127b00(0x4f0)][_0x127b00(0x3ae)](_0x3b2989[_0x127b00(0x40e)],_0x3b2989[_0x127b00(0x1e9)],_0x3b2989[_0x127b00(0x31a)]);(0x0,n[_0x127b00(0x1b3)])(this[_0x127b00(0x4f0)][_0x127b00(0x325)](_0x3b2989[_0x127b00(0x40e)],_0x3b2989[_0x127b00(0x1e9)],_0x3b2989[_0x127b00(0x31a)]))||_0x301449!=null&&_0x301449[_0x127b00(0x192)]()[_0x127b00(0x2d4)]||_0x164254[_0x127b00(0x278)](_0x127b00(0x33a),{'hostType':a[_0x127b00(0x3fe)][_0x127b00(0x1f5)],'unitId':_0x3b2989[_0x127b00(0x40e)],'subUnitId':_0x3b2989[_0x127b00(0x1e9)],'shapeId':_0x3b2989['shapeId']});}));}};const yt={...ot};let H=class extends a[_0xe5948a(0x1e6)]{constructor(_0xc0108a,_0x46d074,_0x345c64,_0x28203c,_0x119707,_0xed690e,_0x2aab34,_0x49055e){const _0x2fbd44=_0xe5948a;super(),this['_menuManagerService']=_0xc0108a,this[_0x2fbd44(0x4f0)]=_0x46d074,this[_0x2fbd44(0x256)]=_0x345c64,this[_0x2fbd44(0x1c6)]=_0x28203c,this['_sheetCanvasPopManagerService']=_0x119707,this[_0x2fbd44(0x1fd)]=_0xed690e,this[_0x2fbd44(0x505)]=_0x2aab34,this[_0x2fbd44(0x453)]=_0x49055e,E(this,_0x2fbd44(0x193),null),this[_0x2fbd44(0x229)][_0x2fbd44(0x4c8)](yt),this[_0x2fbd44(0x3e1)](),this['disposeWithMe'](this[_0x2fbd44(0x453)]['editingParams$'][_0x2fbd44(0x208)](_0x582161=>{const _0x1ae05b=_0x2fbd44;_0x582161&&this[_0x1ae05b(0x30d)]();}));}[_0xe5948a(0x286)](){const _0x114742=_0xe5948a;this[_0x114742(0x193)]||=this[_0x114742(0x160)]((0x0,e[_0x114742(0x3fb)])(this[_0x114742(0x505)],a[_0x114742(0x3fe)]['UNIVER_SHEET'],_0x35f16d=>this[_0x114742(0x4b0)](_0x35f16d)));}[_0xe5948a(0x3e1)](){const _0x3822e6=_0xe5948a;this[_0x3822e6(0x26a)][_0x3822e6(0x19c)](a[_0x3822e6(0x41e)]['DRAWING_SHAPE'],(_0x5be2d0,_0x4edf5d,_0x35a04b,_0x400cd9)=>{const _0x4f5732=_0x3822e6;let _0x20147e=this['_sheetsShapeService'][_0x4f5732(0x493)](_0x5be2d0,_0x4edf5d,_0x35a04b),_0x25acf8=this[_0x4f5732(0x4f0)][_0x4f5732(0x35f)](_0x5be2d0,_0x4edf5d,_0x35a04b),_0x345f57=_0x20147e!==void 0x0&&!(0x0,n[_0x4f5732(0x1b3)])(_0x20147e)&&!(_0x25acf8!=null&&_0x25acf8[_0x4f5732(0x2d4)]);return[{'label':_0x4f5732(0x4b2),'index':0x0,'commandId':ut['id'],'commandParams':{'unitId':_0x5be2d0,'subUnitId':_0x4edf5d,'drawingId':_0x35a04b,'mode':_0x4f5732(0x4de)},'disable':!0x1},..._0x345f57?[{'label':_0x4f5732(0x1fa),'index':0x1,'commandId':ut['id'],'commandParams':{'unitId':_0x5be2d0,'subUnitId':_0x4edf5d,'drawingId':_0x35a04b,'mode':_0x4f5732(0x33a)},'disable':!0x1}]:[],{'label':'sheets-shape-ui.deleteShape','index':0x2,'commandId':c['RemoveSheetDrawingCommand']['id'],'commandParams':{'unitId':_0x5be2d0,'drawings':[{'unitId':_0x5be2d0,'subUnitId':_0x4edf5d,'drawingId':_0x35a04b,'drawingType':_0x400cd9}]},'disable':!0x1},{'label':'sheets-shape-ui.flipHorizontal','index':0x3,'commandId':i[_0x4f5732(0x294)]['id'],'commandParams':{'unitId':_0x5be2d0,'subUnitId':_0x4edf5d,'shapeId':_0x35a04b,'flipH':!0x0},'disable':!0x1},{'label':_0x4f5732(0x285),'index':0x4,'commandId':i[_0x4f5732(0x294)]['id'],'commandParams':{'unitId':_0x5be2d0,'subUnitId':_0x4edf5d,'shapeId':_0x35a04b,'flipV':!0x0},'disable':!0x1}];},_0x3822e6(0x296));}[_0xe5948a(0x4b0)](_0x128863){const _0x493213=_0xe5948a;let _0x295485=new a['DisposableCollection'](),_0x1ae3a5=null,_0x58d239=()=>{const _0x239542=_0x4ecd;if(!_0x1ae3a5)return;let _0x11bed5=this['_drawingManagerService'][_0x239542(0x4ee)](),_0x230006=_0x11bed5[_0x239542(0x26f)]===0x0||_0x11bed5[_0x239542(0x26f)]===0x1&&_0x11bed5['some'](_0x467481=>_0x467481[_0x239542(0x40e)]===(_0x1ae3a5==null?void 0x0:_0x1ae3a5[_0x239542(0x40e)])&&_0x467481[_0x239542(0x1e9)]===(_0x1ae3a5==null?void 0x0:_0x1ae3a5[_0x239542(0x1e9)])&&_0x467481[_0x239542(0x302)]===(_0x1ae3a5==null?void 0x0:_0x1ae3a5[_0x239542(0x302)]));_0x1ae3a5=null,_0x230006&&(this['_contextService'][_0x239542(0x330)](a['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x239542(0x1c6)]['focusDrawing'](null));};return _0x295485[_0x493213(0x2d0)](_0x128863[_0x493213(0x329)][_0x493213(0x208)](()=>{const _0x3e16aa=_0x493213;let _0x87bc44=_0x128863[_0x3e16aa(0x39b)]();if(_0x87bc44[_0x3e16aa(0x308)]>0x1){_0x58d239();return;}let _0x495902=_0x87bc44[_0x3e16aa(0x3e3)]()['next']()[_0x3e16aa(0x446)];if(!_0x495902){_0x58d239();return;}let _0x155549=this[_0x3e16aa(0x1c6)][_0x3e16aa(0x41d)](_0x495902['oKey']);if(!_0x155549||_0x155549['drawingType']!==a[_0x3e16aa(0x41e)][_0x3e16aa(0x48f)]){_0x58d239();return;}let {unitId:_0x362df1,subUnitId:_0x56e024,drawingId:_0x4298c5}=_0x155549;_0x1ae3a5={'unitId':_0x362df1,'subUnitId':_0x56e024,'drawingId':_0x4298c5},this[_0x3e16aa(0x1fd)][_0x3e16aa(0x330)](a[_0x3e16aa(0x369)],!0x0),this[_0x3e16aa(0x1c6)][_0x3e16aa(0x4ee)]()[_0x3e16aa(0x4a3)](_0x262888=>_0x262888[_0x3e16aa(0x40e)]===_0x362df1&&_0x262888[_0x3e16aa(0x1e9)]===_0x56e024&&_0x262888[_0x3e16aa(0x302)]===_0x4298c5)||this[_0x3e16aa(0x1c6)][_0x3e16aa(0x26e)]([{'unitId':_0x362df1,'subUnitId':_0x56e024,'drawingId':_0x4298c5}]);})),_0x295485['add'](_0x128863['clearControl$']['subscribe'](()=>{_0x58d239();})),(0x0,a[_0x493213(0x42c)])(()=>{const _0x4e8929=_0x493213;_0x295485[_0x4e8929(0x2c1)](),_0x58d239();});}['_clearFocusedShape'](){const _0x1d65dc=_0xe5948a;this[_0x1d65dc(0x1fd)]['setContextValue'](a['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x1d65dc(0x1c6)][_0x1d65dc(0x26e)](null);}};H=A([k(0x0,t[_0xe5948a(0x491)]),k(0x1,(0x0,a[_0xe5948a(0x25d)])(i['SheetsShapeService'])),k(0x2,a[_0xe5948a(0x3e7)]),k(0x3,u['IDrawingManagerService']),k(0x4,(0x0,a['Inject'])(l[_0xe5948a(0x31c)])),k(0x5,a['IContextService']),k(0x6,o['IRenderManagerService']),k(0x7,(0x0,a[_0xe5948a(0x25d)])(V))],H);function bt(_0x5a5e9c,_0x54b893,_0x700456,_0x43ec49){const _0x53c3a3=_0xe5948a;let _0x476701=(0x0,u[_0x53c3a3(0x437)])(_0x5a5e9c,_0x54b893,_0x700456),_0xdd5c6c=[];for(let _0x59bb02 of _0x54b893){let _0x54f68a=_0x476701['idMap']['get'](_0x59bb02[_0x53c3a3(0x302)]),_0x13a457=_0x43ec49(_0x59bb02);_0x54f68a&&_0x13a457&&_0xdd5c6c[_0x53c3a3(0x488)]({'targetShapeId':_0x54f68a,'source':_0x13a457});}return _0xdd5c6c;}let U=class extends a[_0xe5948a(0x1e6)]{constructor(_0x60bd1c,_0x1af1c3,_0x130b1e,_0x431924){const _0x1d6b00=_0xe5948a;super(),this['_univerInstanceService']=_0x60bd1c,this[_0x1d6b00(0x382)]=_0x1af1c3,this[_0x1d6b00(0x318)]=_0x130b1e,this[_0x1d6b00(0x4f0)]=_0x431924,this['_initSheetChange']();}[_0xe5948a(0x322)](){const _0x221c44=_0xe5948a;this[_0x221c44(0x160)](this[_0x221c44(0x382)][_0x221c44(0x4ed)]({'getMutations':_0x4a4c07=>{const _0x180c6d=_0x221c44;if(_0x4a4c07['id']===s[_0x180c6d(0x1d2)]['id']){let _0x304fa2=(0x0,s[_0x180c6d(0x408)])(this[_0x180c6d(0x345)],_0x4a4c07[_0x180c6d(0x2c9)]);if(!_0x304fa2)return{'redos':[],'undos':[]};let {unitId:_0x5a240d,subUnitId:_0x222f31}=_0x304fa2,_0x191de6=this[_0x180c6d(0x318)][_0x180c6d(0x440)](_0x5a240d,_0x222f31),_0x38bb69=Object[_0x180c6d(0x3e3)](_0x191de6)['filter'](_0x5f509b=>_0x5f509b[_0x180c6d(0x28c)]===a[_0x180c6d(0x41e)][_0x180c6d(0x48f)]);if(_0x38bb69[_0x180c6d(0x26f)]===0x0)return{'redos':[],'undos':[]};let _0x819bd7=[],_0x15ba90=[];for(let _0x131b45=0x0;_0x131b45<_0x38bb69[_0x180c6d(0x26f)];_0x131b45++){let _0x4d240c=_0x38bb69[_0x131b45],_0x3795bb=this[_0x180c6d(0x4f0)]['getShapeModel'](_0x4d240c['unitId'],_0x4d240c[_0x180c6d(0x1e9)],_0x4d240c[_0x180c6d(0x302)]);_0x3795bb&&(_0x819bd7[_0x180c6d(0x488)]({'id':i[_0x180c6d(0x247)]['id'],'params':{'unitId':_0x5a240d,'subUnitId':_0x222f31,'shapeId':_0x4d240c[_0x180c6d(0x302)]}}),_0x15ba90[_0x180c6d(0x488)]({'id':i[_0x180c6d(0x3e2)]['id'],'params':{'unitId':_0x5a240d,'subUnitId':_0x222f31,'shapeId':_0x4d240c[_0x180c6d(0x302)],'shapeType':_0x3795bb[_0x180c6d(0x325)](),'shapeData':JSON[_0x180c6d(0x3ec)](JSON[_0x180c6d(0x42e)](_0x3795bb[_0x180c6d(0x192)]()))}}));}return{'redos':_0x819bd7,'undos':_0x15ba90};}if(_0x4a4c07['id']===s[_0x180c6d(0x2ce)]['id']){let {unitId:_0x4c536d,subUnitId:_0x28fee8,targetSubUnitId:_0x24b6e0,copyContext:_0x10c3cf}=_0x4a4c07['params'];if(!_0x4c536d||!_0x28fee8||!_0x24b6e0)return{'redos':[],'undos':[]};let _0x29530c=this[_0x180c6d(0x318)]['getDrawingData'](_0x4c536d,_0x28fee8),_0x28cd60=Object[_0x180c6d(0x3e3)](_0x29530c)[_0x180c6d(0x412)](_0x5c6029=>_0x5c6029[_0x180c6d(0x28c)]===a[_0x180c6d(0x41e)][_0x180c6d(0x48f)]);if(_0x28cd60[_0x180c6d(0x26f)]===0x0)return{'redos':[],'undos':[]};let _0x4a1f44=bt(_0x10c3cf,_0x28cd60,{'unitId':_0x4c536d,'sourceSubUnitId':_0x28fee8,'targetSubUnitId':_0x24b6e0},_0x2aad43=>{const _0x1b622c=_0x180c6d;let _0x3dddb0=this[_0x1b622c(0x4f0)][_0x1b622c(0x3ae)](_0x2aad43[_0x1b622c(0x40e)],_0x2aad43[_0x1b622c(0x1e9)],_0x2aad43[_0x1b622c(0x302)]);if(_0x3dddb0)return{'shapeType':_0x3dddb0[_0x1b622c(0x325)](),'shapeData':JSON['parse'](JSON[_0x1b622c(0x42e)](_0x3dddb0['getShapeData']()))};}),_0x3b4fcb=[],_0x570599=[];for(let {targetShapeId:_0x53b2ee,source:_0x4e78f2}of _0x4a1f44)_0x3b4fcb[_0x180c6d(0x488)]({'id':i[_0x180c6d(0x3e2)]['id'],'params':{'unitId':_0x4c536d,'subUnitId':_0x24b6e0,'shapeId':_0x53b2ee,'shapeType':_0x4e78f2[_0x180c6d(0x320)],'shapeData':_0x4e78f2[_0x180c6d(0x4a5)]}}),_0x570599['push']({'id':i[_0x180c6d(0x247)]['id'],'params':{'unitId':_0x4c536d,'subUnitId':_0x24b6e0,'shapeId':_0x53b2ee}});return{'redos':_0x3b4fcb,'undos':_0x570599};}return{'redos':[],'undos':[]};}}));}};U=A([k(0x0,(0x0,a[_0xe5948a(0x25d)])(a[_0xe5948a(0x402)])),k(0x1,(0x0,a[_0xe5948a(0x25d)])(s[_0xe5948a(0x3eb)])),k(0x2,(0x0,a[_0xe5948a(0x25d)])(c[_0xe5948a(0x305)])),k(0x3,(0x0,a['Inject'])(i['SheetsShapeService']))],U);let W=class extends a[_0xe5948a(0x1e6)]{constructor(_0x2e5035,_0x521d56,_0x33aea2,_0x184543,_0x3fd8e7,_0x38d8a3){const _0x4842e6=_0xe5948a;super(),this['_commandService']=_0x2e5035,this[_0x4842e6(0x505)]=_0x521d56,this[_0x4842e6(0x1c6)]=_0x33aea2,this[_0x4842e6(0x173)]=_0x184543,this[_0x4842e6(0x1e3)]=_0x3fd8e7,this['_sheetDrawingShapeRenderController']=_0x38d8a3,E(this,_0x4842e6(0x4e8),new Set()),this[_0x4842e6(0x310)]();}['_initialize'](){const _0x1f8718=_0xe5948a;this[_0x1f8718(0x3db)](),this[_0x1f8718(0x2de)](),this['_shapeUpdateListener']();}[_0xe5948a(0x3db)](){const _0x4a6b6c=_0xe5948a;this[_0x4a6b6c(0x160)](this[_0x4a6b6c(0x1c6)][_0x4a6b6c(0x15d)][_0x4a6b6c(0x208)](_0x367dd9=>{const _0x213c91=_0x4a6b6c;this[_0x213c91(0x3a8)](_0x367dd9);}));}[_0xe5948a(0x2de)](){const _0x268afb=_0xe5948a;this[_0x268afb(0x160)](this[_0x268afb(0x256)][_0x268afb(0x22c)]((_0x3675f0,_0xbf3841)=>{const _0x3525f3=_0x268afb;if(_0x3675f0['id']===i['UpdateSheetsShapeDataMutation']['id']){let {unitId:_0x2cea06,subUnitId:_0x1cc5ff,shapeId:_0x19d9ee}=_0x3675f0['params'],_0x1e4dc1=this['_getSceneAndTransformerByDrawingSearch'](_0x2cea06),_0x5e3550=(0x0,u['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x2cea06,'subUnitId':_0x1cc5ff,'drawingId':_0x19d9ee}),_0x42b078=_0x1e4dc1==null?void 0x0:_0x1e4dc1[_0x3525f3(0x1b0)]['getObjectIncludeInGroup'](_0x5e3550);_0x42b078&&(this['_sheetDrawingShapeRenderController'][_0x3525f3(0x45c)](_0x42b078),this[_0x3525f3(0x19d)]['refreshFormulaPresentation'](_0x42b078,{'unitId':_0x2cea06,'subUnitId':_0x1cc5ff,'shapeId':_0x19d9ee}),_0x42b078[_0x3525f3(0x49d)](!0x0));}else{if(_0x3675f0['id']===i['InsertSheetsShapeMutation']['id']){var _0x2b597a;let {unitId:_0x50befe,subUnitId:_0x151d8a,shapeId:_0x389b7e}=_0x3675f0[_0x3525f3(0x2c9)],_0x5bb14f=this[_0x3525f3(0x506)](_0x50befe);if(_0x5bb14f==null)return;let {scene:_0x40f425}=_0x5bb14f,_0x406d62=(0x0,u['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x50befe,'subUnitId':_0x151d8a,'drawingId':_0x389b7e}),_0x190b12=_0x40f425[_0x3525f3(0x1a0)](_0x406d62);if(!((_0x2b597a=this[_0x3525f3(0x505)]['getRenderUnitById'](_0x50befe))!=null&&_0x2b597a[_0x3525f3(0x2d7)](l[_0x3525f3(0x433)])[_0x3525f3(0x353)](_0x151d8a)))return!0x1;if(_0x190b12)return;if(_0xbf3841!=null&&_0xbf3841['fromChangeset']){queueMicrotask(()=>{const _0x18a5b8=_0x3525f3;this[_0x18a5b8(0x195)]||this[_0x18a5b8(0x3a8)]([{'unitId':_0x50befe,'subUnitId':_0x151d8a,'drawingId':_0x389b7e}]);});return;}this[_0x3525f3(0x3a8)]([{'unitId':_0x50befe,'subUnitId':_0x151d8a,'drawingId':_0x389b7e}]);}}}));}[_0xe5948a(0x27c)](){const _0x1c2dd0=_0xe5948a;this[_0x1c2dd0(0x160)](this[_0x1c2dd0(0x1c6)]['update$'][_0x1c2dd0(0x208)](_0x538847=>{const _0x2a34b2=_0x1c2dd0;_0x538847[_0x2a34b2(0x4fc)](_0x57c1d9=>{const _0x5d2bcb=_0x2a34b2;let {unitId:_0x302739,subUnitId:_0x448b11,drawingId:_0x393cb0}=_0x57c1d9,_0x24f0fd=this[_0x5d2bcb(0x1c6)][_0x5d2bcb(0x2ca)](_0x57c1d9);if(_0x24f0fd==null)return;let {transform:_0x3949b3,drawingType:_0x50094e,srcRect:_0x4a8ee3,prstGeom:_0x4feff}=_0x24f0fd;if(_0x50094e!==a[_0x5d2bcb(0x41e)][_0x5d2bcb(0x48f)])return;let _0x288696=this['_getSceneAndTransformerByDrawingSearch'](_0x302739);if(_0x288696==null)return;let {scene:_0x5822ab,transformer:_0x4bfb0c}=_0x288696;if(_0x3949b3==null)return!0x0;let _0x20fe10=(0x0,u['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x302739,'subUnitId':_0x448b11,'drawingId':_0x393cb0}),_0x9fd211=_0x5822ab[_0x5d2bcb(0x1a0)](_0x20fe10);if(_0x9fd211==null)return!0x0;_0x9fd211['setSrcRect'](_0x4a8ee3),_0x9fd211[_0x5d2bcb(0x416)](_0x4feff);});}));}[_0xe5948a(0x3a8)](_0x5e66c9){const _0x56689c=_0xe5948a;for(let _0xb57551 of _0x5e66c9){var _0x15d6d6;let {unitId:_0x1ef5e0,subUnitId:_0x1edc3e,drawingId:_0x13e21e}=_0xb57551,_0x54166b=this[_0x56689c(0x506)](_0x1ef5e0),_0x13a7a0=(_0x15d6d6=(0x0,f[_0x56689c(0x436)])(this['_currentUniverService'],_0x1ef5e0))==null?void 0x0:_0x15d6d6['subUnitId'];if(_0x54166b==null||_0x13a7a0!==_0x1edc3e)continue;let _0x5ca53c=(0x0,u[_0x56689c(0x15a)])({'unitId':_0x1ef5e0,'subUnitId':_0x1edc3e,'drawingId':_0x13e21e});if(this[_0x56689c(0x4e8)]['has'](_0x5ca53c)||_0x54166b['scene']['getObjectIncludeInGroup'](_0x5ca53c)!=null)continue;let _0x1d9cf0=this[_0x56689c(0x1c6)][_0x56689c(0x2ca)](_0xb57551);if(_0x1d9cf0==null||_0x1d9cf0[_0x56689c(0x28c)]!==a[_0x56689c(0x41e)][_0x56689c(0x48f)])continue;let _0x460647=_0x1d9cf0[_0x56689c(0x477)]||{};if((0x0,n[_0x56689c(0x1b3)])(_0x460647[_0x56689c(0x320)])){let _0x16d435=_0x1d9cf0[_0x56689c(0x383)];_0x16d435&&(_0x1d9cf0['transform']={..._0x16d435,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x56689c(0x4e8)][_0x56689c(0x2d0)](_0x5ca53c);try{this[_0x56689c(0x19d)][_0x56689c(0x509)](_0x1d9cf0,_0x54166b[_0x56689c(0x1b0)]);}finally{this[_0x56689c(0x4e8)][_0x56689c(0x2bf)](_0x5ca53c);}queueMicrotask(()=>{const _0x3e0f63=_0x56689c;if(this[_0x3e0f63(0x195)])return;let _0x1372e3=(0x0,u[_0x3e0f63(0x15a)])(_0xb57551);if(!_0x54166b[_0x3e0f63(0x1b0)][_0x3e0f63(0x1a0)](_0x1372e3))return;let _0x5285ff=this[_0x3e0f63(0x1c6)][_0x3e0f63(0x2ca)](_0xb57551);_0x5285ff&&this['_drawingManagerService'][_0x3e0f63(0x44b)]([_0x5285ff]);});}}[_0xe5948a(0x506)](_0x3ba5e1){const _0x5b68ff=_0xe5948a;if(_0x3ba5e1==null)return;let _0x441975=this[_0x5b68ff(0x505)]['getRenderUnitById'](_0x3ba5e1),_0x2a1085=_0x441975==null?void 0x0:_0x441975[_0x5b68ff(0x1b0)];return _0x2a1085==null?null:{'scene':_0x2a1085,'transformer':_0x2a1085[_0x5b68ff(0x3e6)]()};}};W=A([k(0x0,a[_0xe5948a(0x3e7)]),k(0x1,o[_0xe5948a(0x40d)]),k(0x2,u['IDrawingManagerService']),k(0x3,a[_0xe5948a(0x402)]),k(0x4,(0x0,a[_0xe5948a(0x25d)])(f[_0xe5948a(0x486)])),k(0x5,(0x0,a[_0xe5948a(0x25d)])(j))],W);const xt={'normal':{'fill':n[_0xe5948a(0x417)]['cxnPointFill'],'stroke':n[_0xe5948a(0x417)][_0xe5948a(0x1f8)],'strokeWidth':n[_0xe5948a(0x417)][_0xe5948a(0x1fe)]},'highlighted':{'fill':_0xe5948a(0x39a),'stroke':'#1a73e8','strokeWidth':0x2}};var St=class extends o[_0xe5948a(0x1c9)]{constructor(_0x562304,_0x38288b){const _0xc1ac74=_0xe5948a;super(_0x562304,_0x38288b),E(this,_0xc1ac74(0x4d9),''),E(this,_0xc1ac74(0x2a8),-0x1),E(this,_0xc1ac74(0x15b),''),E(this,_0xc1ac74(0x264),''),E(this,_0xc1ac74(0x289),!0x1),_0x38288b&&this[_0xc1ac74(0x30b)](_0x38288b);}[_0xe5948a(0x444)](){const _0x1df01d=_0xe5948a;return{'unitId':this[_0x1df01d(0x15b)],'subUnitId':this[_0x1df01d(0x264)],'shapeId':this[_0x1df01d(0x4d9)],'cxnIndex':this[_0x1df01d(0x2a8)]};}[_0xe5948a(0x314)](_0x1295ee){const _0x5208ba=_0xe5948a;this['_isHighlighted']!==_0x1295ee&&(this[_0x5208ba(0x289)]=_0x1295ee,this['makeDirty'](!0x0));}[_0xe5948a(0x461)](){const _0x38b67f=_0xe5948a;return this[_0x38b67f(0x289)];}[_0xe5948a(0x30b)](_0x400695){const _0xc33b1=_0xe5948a;_0x400695['targetShapeId']!==void 0x0&&(this['_targetShapeId']=_0x400695[_0xc33b1(0x37b)]),_0x400695[_0xc33b1(0x281)]!==void 0x0&&(this[_0xc33b1(0x2a8)]=_0x400695[_0xc33b1(0x281)]),_0x400695[_0xc33b1(0x40e)]!==void 0x0&&(this[_0xc33b1(0x15b)]=_0x400695['unitId']),_0x400695[_0xc33b1(0x1e9)]!==void 0x0&&(this[_0xc33b1(0x264)]=_0x400695[_0xc33b1(0x1e9)]),_0x400695[_0xc33b1(0x461)]!==void 0x0&&(this['_isHighlighted']=_0x400695[_0xc33b1(0x461)]),this[_0xc33b1(0x1fc)]({'width':_0x400695['width']??n[_0xc33b1(0x417)]['cxnPointRadius']*0x2,'height':_0x400695[_0xc33b1(0x25e)]??n[_0xc33b1(0x417)][_0xc33b1(0x3a0)]*0x2});}[_0xe5948a(0x1dc)](_0x246a55){const _0x8a5646=_0xe5948a;let _0x11445a=this[_0x8a5646(0x289)]?xt['highlighted']:xt[_0x8a5646(0x31e)];o[_0x8a5646(0x2c4)][_0x8a5646(0x407)](_0x246a55,{'radius':n['ShapeDefaultConfig'][_0x8a5646(0x3a0)],'fill':_0x11445a[_0x8a5646(0x371)],'stroke':_0x11445a[_0x8a5646(0x422)],'strokeWidth':_0x11445a[_0x8a5646(0x1cf)],'evented':!0x0});}};let G=class extends a[_0xe5948a(0x1e6)]{constructor(_0x1dd020,_0xf31977,_0x18e9dc,_0x47e063){const _0xdf2654=_0xe5948a;super(),this['_context']=_0x1dd020,this[_0xdf2654(0x505)]=_0xf31977,this[_0xdf2654(0x1c6)]=_0x18e9dc,this[_0xdf2654(0x4f0)]=_0x47e063,E(this,_0xdf2654(0x174),[]),E(this,'_activeTargetShapeId',null),E(this,'_highlightedSiteIndex',-0x1),E(this,'_currentScene',null),E(this,_0xdf2654(0x15b),''),E(this,_0xdf2654(0x264),''),E(this,'_draggingConnectorId',null);}[_0xe5948a(0x3c2)](_0x39a3af,_0x1ae2d4,_0x29c9d8,_0x53538d){const _0x5e28f8=_0xe5948a;this[_0x5e28f8(0x2b7)]=_0x39a3af,this[_0x5e28f8(0x15b)]=_0x1ae2d4,this['_subUnitId']=_0x29c9d8,this['_draggingConnectorId']=_0x53538d;}[_0xe5948a(0x4ac)](_0x4c8a06){const _0x57b9f7=_0xe5948a;if(!this[_0x57b9f7(0x2b7)])return null;let _0x1eee64=this[_0x57b9f7(0x517)](_0x4c8a06);return _0x1eee64?(this[_0x57b9f7(0x497)]!==_0x1eee64[_0x57b9f7(0x31a)]&&(this[_0x57b9f7(0x398)](),this[_0x57b9f7(0x47a)](_0x1eee64['shapeId'],_0x1eee64[_0x57b9f7(0x2fa)]),this[_0x57b9f7(0x497)]=_0x1eee64[_0x57b9f7(0x31a)]),this[_0x57b9f7(0x237)](_0x4c8a06)):(this[_0x57b9f7(0x497)]!==null&&(this[_0x57b9f7(0x398)](),this[_0x57b9f7(0x497)]=null),null);}['endConnectionDetection'](){const _0x2e952b=_0xe5948a;this[_0x2e952b(0x398)](),this[_0x2e952b(0x2b7)]=null,this[_0x2e952b(0x497)]=null,this[_0x2e952b(0x360)]=-0x1,this['_draggingConnectorId']=null;}[_0xe5948a(0x2dd)](){const _0x37ffdb=_0xe5948a;return this['_activeTargetShapeId']===null||this[_0x37ffdb(0x360)]<0x0?null:{'shapeId':this[_0x37ffdb(0x497)],'cxnIndex':this['_highlightedSiteIndex']};}['_findShapeAtPoint'](_0x5b7ab4){const _0x459cf2=_0xe5948a;let _0x14ce6b=this[_0x459cf2(0x1c6)][_0x459cf2(0x440)](this[_0x459cf2(0x15b)],this['_subUnitId']);for(let _0xad39ae of Object[_0x459cf2(0x218)](_0x14ce6b)){if(_0xad39ae===this['_draggingConnectorId']||_0x14ce6b[_0xad39ae]['drawingType']!==a[_0x459cf2(0x41e)][_0x459cf2(0x48f)])continue;let _0x3341e3=this[_0x459cf2(0x4f0)][_0x459cf2(0x3ae)](this[_0x459cf2(0x15b)],this[_0x459cf2(0x264)],_0xad39ae);if(!_0x3341e3||(0x0,n[_0x459cf2(0x1b3)])(_0x3341e3[_0x459cf2(0x325)]())||_0x3341e3['getConnectionSiteList']()[_0x459cf2(0x26f)]===0x0||!this[_0x459cf2(0x2b7)])continue;let _0x5a2d09=(0x0,u[_0x459cf2(0x15a)])({'unitId':this['_unitId'],'subUnitId':this[_0x459cf2(0x264)],'drawingId':_0xad39ae}),_0x23bcae=this[_0x459cf2(0x2b7)]['getObjectIncludeInGroup'](_0x5a2d09);if(!_0x23bcae)continue;let {left:_0xed38c3,top:_0x4bb634,width:_0x1201f6,height:_0x946c53}=_0x23bcae[_0x459cf2(0x243)](),_0x4a538a=_0xed38c3+_0x1201f6/0x2,_0x52f98e=_0x4bb634+_0x946c53/0x2,_0x42a9fd=_0x23bcae[_0x459cf2(0x383)][_0x459cf2(0x2f0)](),_0x1cdcef=new o[(_0x459cf2(0x32d))]([_0x42a9fd[0x0],_0x42a9fd[0x1],_0x42a9fd[0x2],_0x42a9fd[0x3],_0x4a538a,_0x52f98e]),_0x35e40f=_0x23bcae[_0x459cf2(0x36b)](),_0x15d09c=(_0x23bcae['isInGroup']&&(_0x35e40f==null?void 0x0:_0x35e40f[_0x459cf2(0x475)])===o[_0x459cf2(0x1cb)]['GROUP']?_0x35e40f['ancestorTransform'][_0x459cf2(0x464)](_0x1cdcef):_0x1cdcef)[_0x459cf2(0x37c)]()[_0x459cf2(0x217)](_0x5b7ab4),_0x2a410d=_0x1201f6/0x2,_0x46954e=_0x946c53/0x2;if(_0x15d09c['x']>=-_0x2a410d-0x5&&_0x15d09c['x']<=_0x2a410d+0x5&&_0x15d09c['y']>=-_0x46954e-0x5&&_0x15d09c['y']<=_0x46954e+0x5)return{'shapeId':_0xad39ae,'shapeModel':_0x3341e3};}return null;}[_0xe5948a(0x47a)](_0x2d81a7,_0x97ca20){const _0x13dcd9=_0xe5948a;if(!this['_currentScene'])return;let _0x4f9499=(0x0,u[_0x13dcd9(0x15a)])({'unitId':this[_0x13dcd9(0x15b)],'subUnitId':this['_subUnitId'],'drawingId':_0x2d81a7}),_0xd73e61=this['_currentScene'][_0x13dcd9(0x1a0)](_0x4f9499);if(!_0xd73e61)return;let {left:_0x2177f9,top:_0x2fe398,width:_0x175e93,height:_0xcadc45}=_0xd73e61[_0x13dcd9(0x243)](),_0x39e868=_0x2177f9+_0x175e93/0x2,_0x454aca=_0x2fe398+_0xcadc45/0x2,_0x5a9163=_0xd73e61[_0x13dcd9(0x383)][_0x13dcd9(0x2f0)](),_0x567563=new o[(_0x13dcd9(0x32d))]([_0x5a9163[0x0],_0x5a9163[0x1],_0x5a9163[0x2],_0x5a9163[0x3],_0x39e868,_0x454aca]),_0x18233d=_0xd73e61[_0x13dcd9(0x36b)](),_0x2af5f6=_0xd73e61[_0x13dcd9(0x363)]&&(_0x18233d==null?void 0x0:_0x18233d[_0x13dcd9(0x475)])===o[_0x13dcd9(0x1cb)][_0x13dcd9(0x221)]?_0x18233d['ancestorTransform']['multiply'](_0x567563):_0x567563;_0x97ca20['updateContext']({'width':_0x175e93,'height':_0xcadc45});let _0x3c0b56=_0x97ca20[_0x13dcd9(0x4ec)]();for(let _0x46554f of _0x3c0b56){let _0x4e3a48=_0x46554f['x']-_0x175e93/0x2,_0x15cd3c=_0x46554f['y']-_0xcadc45/0x2,_0x471eae=_0x2af5f6[_0x13dcd9(0x217)]({'x':_0x4e3a48,'y':_0x15cd3c}),_0x84ccbd=_0x471eae['x'],_0x9df8b5=_0x471eae['y'],_0x5e378f=new St(_0x13dcd9(0x35a)+_0x2d81a7+'-'+_0x46554f[_0x13dcd9(0x3f5)],{'left':_0x84ccbd-n[_0x13dcd9(0x417)][_0x13dcd9(0x3a0)],'top':_0x9df8b5-n[_0x13dcd9(0x417)][_0x13dcd9(0x3a0)],'targetShapeId':_0x2d81a7,'cxnIndex':_0x46554f[_0x13dcd9(0x3f5)],'unitId':this[_0x13dcd9(0x15b)],'subUnitId':this['_subUnitId'],'width':n[_0x13dcd9(0x417)][_0x13dcd9(0x3a0)]*0x2,'height':n[_0x13dcd9(0x417)][_0x13dcd9(0x3a0)]*0x2,'zIndex':o[_0x13dcd9(0x2d8)]+0x2,'evented':!0x1});this[_0x13dcd9(0x174)]['push'](_0x5e378f),this[_0x13dcd9(0x2b7)][_0x13dcd9(0x4bb)](_0x5e378f,o['DRAWING_OBJECT_LAYER_INDEX']+0x2);}}[_0xe5948a(0x237)](_0x4e9711){const _0x59334a=_0xe5948a;let _0x3b86fb=null,_0x44b9b0=0x1/0x0,_0x571b29=null;for(let _0x1259dc of this[_0x59334a(0x174)]){let _0x1c3209=_0x1259dc[_0x59334a(0x376)]+n[_0x59334a(0x417)]['cxnPointRadius'],_0x3b748a=_0x1259dc[_0x59334a(0x3c1)]+n[_0x59334a(0x417)][_0x59334a(0x3a0)],_0x39b29c=_0x4e9711['x']-_0x1c3209,_0x2e2b18=_0x4e9711['y']-_0x3b748a,_0xf5bf=Math['sqrt'](_0x39b29c*_0x39b29c+_0x2e2b18*_0x2e2b18);_0xf5bf<_0x44b9b0&&(_0x44b9b0=_0xf5bf,_0x3b86fb=_0x1259dc,_0x571b29={'x':_0x1c3209,'y':_0x3b748a});}let _0x982c55=_0x44b9b0<=0xa&&_0x3b86fb?_0x3b86fb[_0x59334a(0x444)]()[_0x59334a(0x281)]:-0x1;if(_0x982c55!==this[_0x59334a(0x360)]){for(let _0x4f66cc of this[_0x59334a(0x174)]){let _0x445f23=_0x4f66cc[_0x59334a(0x444)]();_0x4f66cc[_0x59334a(0x314)](_0x445f23[_0x59334a(0x281)]===_0x982c55);}this[_0x59334a(0x360)]=_0x982c55;}if(_0x44b9b0<=0xa&&_0x3b86fb&&_0x571b29){let _0x3c4de4=_0x3b86fb[_0x59334a(0x444)](),_0x2a9bc5=this[_0x59334a(0x18c)](_0x3c4de4[_0x59334a(0x31a)],_0x3c4de4[_0x59334a(0x281)]);return{'shapeId':_0x3c4de4['shapeId'],'cxnIndex':_0x3c4de4['cxnIndex'],'unitId':_0x3c4de4[_0x59334a(0x40e)],'subUnitId':_0x3c4de4[_0x59334a(0x1e9)],'worldPoint':_0x571b29,'angle':_0x2a9bc5};}return null;}['_getConnectionSiteAngle'](_0x5ce7ae,_0x2df2e9){const _0x4b873e=_0xe5948a;let _0x36689e=this[_0x4b873e(0x4f0)][_0x4b873e(0x3ae)](this[_0x4b873e(0x15b)],this[_0x4b873e(0x264)],_0x5ce7ae);if(!_0x36689e)return 0x0;let _0x1e2b0c=this['_drawingManagerService'][_0x4b873e(0x2ca)]({'unitId':this['_unitId'],'subUnitId':this[_0x4b873e(0x264)],'drawingId':_0x5ce7ae});if(!(_0x1e2b0c!=null&&_0x1e2b0c[_0x4b873e(0x383)]))return 0x0;let {width:_0x5ef792=0x0,height:_0x492202=0x0,flipX:_0x25b212=!0x1,flipY:_0x5cbd3b=!0x1}=_0x1e2b0c[_0x4b873e(0x383)];_0x36689e[_0x4b873e(0x4b1)]({'width':_0x5ef792,'height':_0x492202});let _0x2184bf=_0x36689e[_0x4b873e(0x4ec)]()[_0x4b873e(0x4a3)](_0xd1450f=>_0xd1450f[_0x4b873e(0x3f5)]===_0x2df2e9);if(!_0x2184bf)return 0x0;let _0x384efc=_0x2184bf[_0x4b873e(0x508)]/0xea60;return _0x25b212&&(_0x384efc=0xb4-_0x384efc),_0x5cbd3b&&(_0x384efc=-_0x384efc),_0x384efc=(_0x384efc%0x168+0x168)%0x168,_0x384efc;}['_clearConnectionSites'](){const _0x7f16cc=_0xe5948a;for(let _0x49cac4 of this[_0x7f16cc(0x174)])_0x49cac4[_0x7f16cc(0x2c1)]();this['_connectionSiteObjects']=[],this[_0x7f16cc(0x360)]=-0x1;}['dispose'](){const _0x3030a0=_0xe5948a;this[_0x3030a0(0x398)](),super[_0x3030a0(0x2c1)]();}};G=A([k(0x1,(0x0,a[_0xe5948a(0x25d)])(o['IRenderManagerService'])),k(0x2,(0x0,a[_0xe5948a(0x25d)])(u[_0xe5948a(0x3f0)])),k(0x3,(0x0,a['Inject'])(i[_0xe5948a(0x45f)]))],G);let K=class extends a[_0xe5948a(0x1e6)]{constructor(_0x55405e,_0x159463,_0x5db163,_0x5a72e3,_0x472fd3,_0x5f14b6,_0x3c8f73,_0x4f7cc2){const _0x42aabe=_0xe5948a;super(),this['_sheetSkeletonService']=_0x55405e,this['_sheetClipboardService']=_0x159463,this[_0x42aabe(0x318)]=_0x5db163,this[_0x42aabe(0x3ad)]=_0x5a72e3,this[_0x42aabe(0x23e)]=_0x472fd3,this[_0x42aabe(0x2f1)]=_0x5f14b6,this['_renders']=_0x3c8f73,this[_0x42aabe(0x2ff)]=_0x4f7cc2,E(this,_0x42aabe(0x16f),void 0x0),this['_initCopyPaste'](),this[_0x42aabe(0x3fd)]();}get['_focusedDrawings'](){const _0x508ee2=_0xe5948a;return this[_0x508ee2(0x318)][_0x508ee2(0x4ee)]();}['_registerGroupFeaturePasteHook'](){const _0x16f4b2=_0xe5948a;this['_groupCopyPasteController'][_0x16f4b2(0x280)](({fromUnitId:_0x4063c5,fromSubUnitId:_0x83331a,toUnitId:_0x566d02,toSubUnitId:_0x2e276c,idMap:_0x202c8e})=>{const _0x16c597=_0x16f4b2;let _0x5bdfa2=[],_0x5e0a4a=[];for(let [_0x383c8c,_0x56b322]of _0x202c8e['entries']()){let _0x40635e=this[_0x16c597(0x3ad)][_0x16c597(0x3ae)](_0x4063c5,_0x83331a,_0x383c8c);if(!_0x40635e)continue;let _0x273458=_0x40635e[_0x16c597(0x325)](),_0x160fe0=JSON['parse'](JSON[_0x16c597(0x42e)](_0x40635e['getShapeData']()));if(_0x160fe0['relation']){var _0x3aae87,_0x2e7fe2;let _0x12a9c9=(_0x3aae87=_0x160fe0[_0x16c597(0x213)][_0x16c597(0x4c3)])==null?void 0x0:_0x3aae87[_0x16c597(0x31a)],_0x528d78=(_0x2e7fe2=_0x160fe0[_0x16c597(0x213)]['to'])==null?void 0x0:_0x2e7fe2[_0x16c597(0x31a)],_0x6a655f=!_0x12a9c9||_0x202c8e['has'](_0x12a9c9),_0x3bc136=!_0x528d78||_0x202c8e[_0x16c597(0x43b)](_0x528d78);_0x6a655f&&_0x12a9c9&&_0x160fe0[_0x16c597(0x213)][_0x16c597(0x4c3)]?_0x160fe0[_0x16c597(0x213)][_0x16c597(0x4c3)]={..._0x160fe0['relation']['from'],'shapeId':_0x202c8e['get'](_0x12a9c9)}:_0x160fe0['relation'][_0x16c597(0x4c3)]=void 0x0,_0x3bc136&&_0x528d78&&_0x160fe0[_0x16c597(0x213)]['to']?_0x160fe0[_0x16c597(0x213)]['to']={..._0x160fe0[_0x16c597(0x213)]['to'],'shapeId':_0x202c8e['get'](_0x528d78)}:_0x160fe0[_0x16c597(0x213)]['to']=void 0x0;}_0x5bdfa2[_0x16c597(0x488)]({'id':i[_0x16c597(0x3e2)]['id'],'params':{'unitId':_0x566d02,'subUnitId':_0x2e276c,'shapeId':_0x56b322,'shapeType':_0x273458,'shapeData':_0x160fe0}}),_0x5e0a4a[_0x16c597(0x488)]({'id':i[_0x16c597(0x247)]['id'],'params':{'unitId':_0x566d02,'subUnitId':_0x2e276c,'shapeId':_0x56b322}});}return{'redos':_0x5bdfa2,'undos':_0x5e0a4a};});}['_initCopyPaste'](){const _0x2ad404=_0xe5948a;this[_0x2ad404(0x160)](this[_0x2ad404(0x3b1)][_0x2ad404(0x17c)]({'id':_0x2ad404(0x18b),'onBeforeCopyFocusedObject':(_0x15d7d9,_0x54a53a,_0xd96e19)=>{const _0xca2549=_0x2ad404;this[_0xca2549(0x16f)]=null;let _0x2f49fd=this['_focusedDrawings']['filter'](_0x368621=>_0x368621[_0xca2549(0x28c)]===a[_0xca2549(0x41e)][_0xca2549(0x48f)]);return _0x2f49fd['length']!==0x0&&(this['_copyInfo']={'unitId':_0x15d7d9,'subUnitId':_0x54a53a,'copyType':_0xd96e19,'drawings':_0x2f49fd},!0x0);},'onBeforeCopy':(_0x3fc339,_0x473b72,_0x4dee38,_0x52f0d6)=>{const _0x71407f=_0x2ad404;this[_0x71407f(0x16f)]=null,this[_0x71407f(0x303)](_0x3fc339,_0x473b72,_0x4dee38,_0x52f0d6);},'onPasteCells':(_0x39e2e6,_0x39b45c,_0x1b7b28,_0x24bf08)=>{const _0x1ba96b=_0x2ad404;if(!_0x24bf08[_0x1ba96b(0x4b3)]||!_0x39e2e6||!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x4b8abe}=_0x24bf08;return _0x4b8abe===l['PREDEFINED_HOOK_NAME'][_0x1ba96b(0x319)]?this['_generatePasteMutations'](_0x39b45c,this[_0x1ba96b(0x16f)][_0x1ba96b(0x4a2)]===l[_0x1ba96b(0x38e)][_0x1ba96b(0x163)]):{'redos':[],'undos':[]};}}));}[_0xe5948a(0x303)](_0x5a69a2,_0x5972ea,_0x4e5b4e,_0x5a2e89){const _0xabf949=_0xe5948a;let _0x2b0135=this[_0xabf949(0x2ed)][_0xabf949(0x353)](_0x5a69a2,_0x5972ea);if(!_0x2b0135)return;let _0x5e57c5=(0x0,s[_0xabf949(0x1ac)])(_0x2b0135,_0x4e5b4e);if(!_0x5e57c5)return;let {startX:_0xc22b29,endX:_0x6118ca,startY:_0x3a43e4,endY:_0x2c70c2}=_0x5e57c5,_0x45af18=this[_0xabf949(0x318)][_0xabf949(0x440)](_0x5a69a2,_0x5972ea),_0x66ed0f=[];for(let [_0x1cdf74,_0x2ea5fb]of Object[_0xabf949(0x3a6)](_0x45af18)){if(_0x2ea5fb[_0xabf949(0x28c)]!==a[_0xabf949(0x41e)]['DRAWING_SHAPE'])continue;let {transform:_0x1be766}=_0x2ea5fb;if(!_0x1be766)continue;let {left:_0x10237d=0x0,top:_0xcf68e=0x0,width:_0xa208b2=0x0,height:_0x2937a2=0x0}=_0x1be766;_0xc22b29<=_0x10237d&&_0x6118ca>=_0x10237d+_0xa208b2&&_0x3a43e4<=_0xcf68e&&_0x2c70c2>=_0xcf68e+_0x2937a2&&_0x66ed0f[_0xabf949(0x488)](_0x2ea5fb);}_0x66ed0f['length']>0x0&&(this[_0xabf949(0x16f)]={'unitId':_0x5a69a2,'subUnitId':_0x5972ea,'copyType':_0x5a2e89,'copyRange':_0x4e5b4e,'drawings':_0x66ed0f});}[_0xe5948a(0x3b0)](_0x2efc5a,_0x44919b){const _0x4dacb1=_0xe5948a;var _0x1f1424,_0x2fe9ad;let {unitId:_0xb603ce,subUnitId:_0x19884b,range:_0x3934c8}=_0x2efc5a,_0xbfcc5c=this[_0x4dacb1(0x16f)],_0x320e00=(_0x1f1424=this['_instances'][_0x4dacb1(0x372)](_0xbfcc5c[_0x4dacb1(0x40e)],a['UniverInstanceType'][_0x4dacb1(0x1f5)]))==null?void 0x0:_0x1f1424['getSheetBySheetId'](_0xbfcc5c['subUnitId']),_0x1674bf=(_0x2fe9ad=this[_0x4dacb1(0x2f1)][_0x4dacb1(0x372)](_0xb603ce,a[_0x4dacb1(0x3fe)]['UNIVER_SHEET']))==null?void 0x0:_0x2fe9ad[_0x4dacb1(0x3c8)](_0x19884b),_0x514063=(_0x320e00==null?void 0x0:_0x320e00['getConfig']()[_0x4dacb1(0x4da)])??a[_0x4dacb1(0x4f3)][_0x4dacb1(0x4f1)],_0x49f447=(_0x1674bf==null?void 0x0:_0x1674bf[_0x4dacb1(0x350)]()[_0x4dacb1(0x4da)])??a['SheetTypes'][_0x4dacb1(0x4f1)];if(_0x514063===a[_0x4dacb1(0x4f3)][_0x4dacb1(0x40b)]||_0x49f447===a[_0x4dacb1(0x4f3)]['CHART'])return this[_0x4dacb1(0x297)](_0x2efc5a,_0x44919b);let _0x34176a=this[_0x4dacb1(0x2ed)][_0x4dacb1(0x353)](_0xb603ce,_0x19884b);if(!_0x34176a)return{'redos':[],'undos':[]};let _0x4eaa82=(0x0,s['discreteRangeToRange'])(_0x3934c8),{unitId:_0x53ac39,subUnitId:_0x220c74,copyRange:_0x37f8a1,drawings:_0x529293}=this[_0x4dacb1(0x16f)],_0x1a8fc6=this[_0x4dacb1(0x2ed)][_0x4dacb1(0x353)](_0x53ac39,_0x220c74);if(!_0x1a8fc6)return{'redos':[],'undos':[]};let _0x2b3a40;if(!_0x37f8a1){let _0x5c62b5=0x1/0x0,_0x423f13=0x1/0x0;for(let _0x5d10a0 of _0x529293){let {left:_0x3a2a8c=0x0,top:_0x76d1d2=0x0}=_0x5d10a0[_0x4dacb1(0x383)]??{};_0x3a2a8c<_0x5c62b5&&(_0x5c62b5=_0x3a2a8c),_0x76d1d2<_0x423f13&&(_0x423f13=_0x76d1d2);}_0x5c62b5!==0x1/0x0&&_0x423f13!==0x1/0x0&&(_0x2b3a40={'left':_0x5c62b5,'top':_0x423f13});}let _0x2fa5e1=new Map();if(!_0x44919b){for(let _0x2ffc1d of _0x529293)_0x2fa5e1[_0x4dacb1(0x399)](_0x2ffc1d[_0x4dacb1(0x302)],(0x0,a[_0x4dacb1(0x470)])());}let _0x309596=[],_0x3b7d1b=[];for(let _0x36f0d9 of _0x529293){let {drawingId:_0x453bf6,transform:_0x1ddfca,sheetTransform:_0x469235}=_0x36f0d9;if(!_0x1ddfca||!_0x469235)continue;let _0x34f860=this[_0x4dacb1(0x21c)]({'transform':_0x1ddfca,'sheetTransform':_0x469235},{'skeleton':_0x1a8fc6,'range':_0x37f8a1},{'skeleton':_0x34176a,'range':_0x4eaa82},_0x2b3a40);if(_0x44919b){let {redos:_0x39c738,undos:_0xd75bc1}=this['_generateCutPasteMutations']({'fromUnitId':_0x53ac39,'fromSubUnitId':_0x220c74,'toUnitId':_0xb603ce,'toSubUnitId':_0x19884b,'drawing':_0x36f0d9,'newTransforms':_0x34f860});_0x309596[_0x4dacb1(0x488)](..._0x39c738),_0x3b7d1b[_0x4dacb1(0x488)](..._0xd75bc1);continue;}let {redos:_0x143e20,undos:_0x516edd}=this[_0x4dacb1(0x257)]({'toUnitId':_0xb603ce,'toSubUnitId':_0x19884b,'drawing':_0x36f0d9,'newTransforms':_0x34f860,'newDrawingId':_0x2fa5e1['get'](_0x453bf6),'idMap':_0x2fa5e1});_0x309596[_0x4dacb1(0x488)](..._0x143e20),_0x3b7d1b['push'](..._0x516edd);}return{'redos':_0x309596,'undos':_0x3b7d1b};}['_generateChartSheetCopy'](_0x1a9a39,_0x1e825a){const _0xe12d44=_0xe5948a;var _0x272a6e;if(_0x1e825a)throw new a['CustomCommandExecutionError'](l['SheetPasteCommand']['id']);let {unitId:_0x29c2d7,subUnitId:_0x22a048}=_0x1a9a39;if(!this[_0xe12d44(0x2ff)][_0xe12d44(0x385)]({'workbookTypes':[s['WorkbookEditablePermission']],'worksheetTypes':[s[_0xe12d44(0x4f6)]]},_0x29c2d7,_0x22a048))throw new a[(_0xe12d44(0x269))](l[_0xe12d44(0x449)]['id']);let _0x18d31f=(_0x272a6e=this['_instances']['getUnit'](_0x29c2d7,a[_0xe12d44(0x3fe)][_0xe12d44(0x1f5)]))==null?void 0x0:_0x272a6e[_0xe12d44(0x3c8)](_0x22a048),_0x3547f2=_0x18d31f==null?void 0x0:_0x18d31f[_0xe12d44(0x350)](),_0x365f40=(_0x3547f2==null?void 0x0:_0x3547f2['type'])??a[_0xe12d44(0x4f3)][_0xe12d44(0x4f1)],_0x15d4c2=this[_0xe12d44(0x16f)],_0x332c44=_0x15d4c2['drawings'];if(!this[_0xe12d44(0x2ff)][_0xe12d44(0x385)]({'workbookTypes':[s[_0xe12d44(0x503)]],'worksheetTypes':[s[_0xe12d44(0x365)]]},_0x15d4c2[_0xe12d44(0x40e)],_0x15d4c2[_0xe12d44(0x1e9)])||_0x332c44[_0xe12d44(0x168)](_0x139b75=>_0x139b75[_0xe12d44(0x230)]||!this[_0xe12d44(0x3ad)][_0xe12d44(0x3ae)](_0x15d4c2[_0xe12d44(0x40e)],_0x15d4c2['subUnitId'],_0x139b75[_0xe12d44(0x302)])||!a['Tools']['diffValue'](_0x139b75,this[_0xe12d44(0x318)][_0xe12d44(0x2ca)](_0x139b75))))throw new a[(_0xe12d44(0x269))](l['SheetPasteCommand']['id']);let _0x55e3c0=null;if(_0x365f40===a[_0xe12d44(0x4f3)][_0xe12d44(0x40b)]){var _0x278039;let _0xe15c86=(_0x278039=this['_renders'][_0xe12d44(0x24f)](_0x29c2d7))==null?void 0x0:_0x278039[_0xe12d44(0x381)][_0xe12d44(0x41b)](l[_0xe12d44(0x3ff)][_0xe12d44(0x46c)]);_0xe15c86&&(_0x55e3c0=(0x0,c[_0xe12d44(0x3a2)])(_0x332c44,{'left':_0xe15c86[_0xe12d44(0x376)],'top':_0xe15c86[_0xe12d44(0x3c1)],'width':_0xe15c86[_0xe12d44(0x33d)],'height':_0xe15c86[_0xe12d44(0x25e)]},(_0x3547f2==null?void 0x0:_0x3547f2['rightToLeft'])===a[_0xe12d44(0x321)]['TRUE']));}else{let _0x5e9979=this[_0xe12d44(0x2ed)][_0xe12d44(0x353)](_0x29c2d7,_0x22a048),_0x1370fa=_0x5e9979&&(0x0,s['attachRangeWithCoord'])(_0x5e9979,(0x0,s[_0xe12d44(0x246)])(_0x1a9a39[_0xe12d44(0x4d5)]));if(_0x1370fa&&_0x332c44[_0xe12d44(0x26f)]){let _0x1c2d06=Math[_0xe12d44(0x33c)](..._0x332c44[_0xe12d44(0x2ab)](_0x16405e=>_0x16405e[_0xe12d44(0x383)][_0xe12d44(0x376)])),_0x49ac80=Math[_0xe12d44(0x33c)](..._0x332c44[_0xe12d44(0x2ab)](_0x586de8=>_0x586de8[_0xe12d44(0x383)][_0xe12d44(0x3c1)]));_0x55e3c0=_0x332c44[_0xe12d44(0x2ab)](_0x564ecb=>(0x0,c['applySheetDrawingPlacement'])(_0x564ecb,{'kind':c[_0xe12d44(0x3d9)][_0xe12d44(0x3d7)],'bounds':{'left':_0x1370fa['startX']+_0x564ecb['transform']['left']-_0x1c2d06,'top':_0x1370fa[_0xe12d44(0x35e)]+_0x564ecb[_0xe12d44(0x383)][_0xe12d44(0x3c1)]-_0x49ac80,'width':_0x564ecb['transform'][_0xe12d44(0x33d)],'height':_0x564ecb['transform'][_0xe12d44(0x25e)]}},_0x5e9979));}}if(!_0x55e3c0)throw new a['CustomCommandExecutionError'](l['SheetPasteCommand']['id']);let _0x41725d=new Map(_0x332c44[_0xe12d44(0x2ab)](_0x5e5d1d=>[_0x5e5d1d['drawingId'],(0x0,a[_0xe12d44(0x470)])()])),_0x338b4e=[],_0x175c66=[];for(let [_0x308686,_0xe445a1]of _0x332c44[_0xe12d44(0x3a6)]()){let _0xd0db5e=_0x55e3c0[_0x308686],_0x546542=this[_0xe12d44(0x257)]({'toUnitId':_0x29c2d7,'toSubUnitId':_0x22a048,'drawing':_0xe445a1,'idMap':_0x41725d,'newDrawingId':_0x41725d['get'](_0xe445a1[_0xe12d44(0x302)]),'newTransforms':{'transform':_0xd0db5e[_0xe12d44(0x383)],'sheetTransform':_0xd0db5e[_0xe12d44(0x274)],'axisAlignSheetTransform':_0xd0db5e[_0xe12d44(0x1d1)],'anchorType':_0xd0db5e['anchorType']}});_0x338b4e[_0xe12d44(0x488)](..._0x546542[_0xe12d44(0x452)]),_0x175c66[_0xe12d44(0x4d8)](..._0x546542[_0xe12d44(0x27a)]);}return{'redos':_0x338b4e,'undos':_0x175c66};}[_0xe5948a(0x39f)](_0x476837){const _0x4ae437=_0xe5948a;let {fromUnitId:_0x236249,fromSubUnitId:_0x1a525d,toUnitId:_0x108f7e,toSubUnitId:_0x27c3fd,drawing:_0x5ef83f,newTransforms:_0x34003b}=_0x476837,_0x2ae9b7={..._0x5ef83f,'unitId':_0x108f7e,'subUnitId':_0x27c3fd,..._0x34003b};if(_0x108f7e===_0x236249&&_0x27c3fd===_0x1a525d){let {redo:_0x2d701e,undo:_0xf4f14e,objects:_0x234793}=this[_0x4ae437(0x318)][_0x4ae437(0x396)]([_0x2ae9b7]);return{'redos':[{'id':c[_0x4ae437(0x3bf)]['id'],'params':{'unitId':_0x108f7e,'subUnitId':_0x27c3fd,'type':c[_0x4ae437(0x3b9)]['UPDATE'],'op':_0x2d701e,'objects':_0x234793}}],'undos':[{'id':c['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x108f7e,'subUnitId':_0x27c3fd,'type':c['DrawingApplyType'][_0x4ae437(0x47f)],'op':_0xf4f14e,'objects':_0x234793}}]};}{let _0x2994c8=this[_0x4ae437(0x318)]['getBatchRemoveOp']([_0x5ef83f]),_0x326c8b=this['_sheetDrawingService'][_0x4ae437(0x502)]([_0x2ae9b7]),_0x3c5006=this[_0x4ae437(0x3ad)][_0x4ae437(0x3ae)](_0x5ef83f['unitId'],_0x5ef83f[_0x4ae437(0x1e9)],_0x5ef83f[_0x4ae437(0x302)]);if(!_0x3c5006)return{'redos':[],'undos':[]};let _0x2e83a3=_0x3c5006[_0x4ae437(0x325)](),_0xbdc92a=JSON[_0x4ae437(0x3ec)](JSON[_0x4ae437(0x42e)](_0x3c5006[_0x4ae437(0x192)]()));return{'redos':[{'id':c[_0x4ae437(0x3bf)]['id'],'params':{'unitId':_0x236249,'subUnitId':_0x1a525d,'type':c[_0x4ae437(0x3b9)][_0x4ae437(0x1ae)],'op':_0x2994c8[_0x4ae437(0x367)],'objects':_0x2994c8[_0x4ae437(0x4a9)]}},{'id':i['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x236249,'subUnitId':_0x1a525d,'shapeId':_0x5ef83f['drawingId']}},{'id':c['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x108f7e,'subUnitId':_0x27c3fd,'type':c[_0x4ae437(0x3b9)][_0x4ae437(0x4ba)],'op':_0x326c8b['redo'],'objects':_0x326c8b[_0x4ae437(0x4a9)]}},{'id':i[_0x4ae437(0x3e2)]['id'],'params':{'unitId':_0x108f7e,'subUnitId':_0x27c3fd,'shapeId':_0x5ef83f[_0x4ae437(0x302)],'shapeType':_0x2e83a3,'shapeData':_0xbdc92a}}],'undos':[{'id':c[_0x4ae437(0x3bf)]['id'],'params':{'unitId':_0x236249,'subUnitId':_0x1a525d,'type':c['DrawingApplyType'][_0x4ae437(0x4ba)],'op':_0x2994c8[_0x4ae437(0x3e5)],'objects':_0x2994c8[_0x4ae437(0x4a9)]}},{'id':i['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x236249,'subUnitId':_0x1a525d,'shapeId':_0x5ef83f[_0x4ae437(0x302)],'shapeType':_0x2e83a3,'shapeData':_0xbdc92a}},{'id':c[_0x4ae437(0x3bf)]['id'],'params':{'unitId':_0x108f7e,'subUnitId':_0x27c3fd,'type':c['DrawingApplyType']['REMOVE'],'op':_0x326c8b[_0x4ae437(0x3e5)],'objects':_0x326c8b[_0x4ae437(0x4a9)]}},{'id':i[_0x4ae437(0x247)]['id'],'params':{'unitId':_0x108f7e,'subUnitId':_0x27c3fd,'shapeId':_0x5ef83f[_0x4ae437(0x302)]}}]};}}[_0xe5948a(0x257)](_0x2a3a77){const _0x436e08=_0xe5948a;let {toUnitId:_0x3120e0,toSubUnitId:_0x5c0766,drawing:_0x472c00,newTransforms:_0x51412a,newDrawingId:_0x2f7b5f,idMap:_0x4b6911}=_0x2a3a77,_0x59c2cf={..._0x472c00,'unitId':_0x3120e0,'subUnitId':_0x5c0766,'drawingId':_0x2f7b5f,..._0x51412a},{redo:_0x5c959b,undo:_0x1c0fc9,objects:_0x3901a1}=this[_0x436e08(0x318)][_0x436e08(0x502)]([_0x59c2cf]),_0x356936=this[_0x436e08(0x3ad)][_0x436e08(0x3ae)](_0x472c00[_0x436e08(0x40e)],_0x472c00['subUnitId'],_0x472c00[_0x436e08(0x302)]);if(!_0x356936)return{'redos':[],'undos':[]};let _0x5893c0=_0x356936['getShapeType'](),_0xba1dca=JSON[_0x436e08(0x3ec)](JSON[_0x436e08(0x42e)](_0x356936[_0x436e08(0x192)]()));if(_0xba1dca[_0x436e08(0x213)]){var _0x5830df,_0x307880;let _0x54236c=(_0x5830df=_0xba1dca[_0x436e08(0x213)]['from'])==null?void 0x0:_0x5830df[_0x436e08(0x31a)],_0x2ccbf7=(_0x307880=_0xba1dca[_0x436e08(0x213)]['to'])==null?void 0x0:_0x307880[_0x436e08(0x31a)],_0x2df5dd=!_0x54236c||_0x4b6911[_0x436e08(0x43b)](_0x54236c),_0x5222a4=!_0x2ccbf7||_0x4b6911[_0x436e08(0x43b)](_0x2ccbf7);_0x2df5dd&&_0x54236c&&_0xba1dca[_0x436e08(0x213)]['from']?_0xba1dca[_0x436e08(0x213)][_0x436e08(0x4c3)]={..._0xba1dca[_0x436e08(0x213)][_0x436e08(0x4c3)],'shapeId':_0x4b6911[_0x436e08(0x41b)](_0x54236c)}:_0xba1dca[_0x436e08(0x213)][_0x436e08(0x4c3)]=void 0x0,_0x5222a4&&_0x2ccbf7&&_0xba1dca['relation']['to']?_0xba1dca[_0x436e08(0x213)]['to']={..._0xba1dca[_0x436e08(0x213)]['to'],'shapeId':_0x4b6911[_0x436e08(0x41b)](_0x2ccbf7)}:_0xba1dca[_0x436e08(0x213)]['to']=void 0x0;}return{'redos':[{'id':c[_0x436e08(0x3bf)]['id'],'params':{'unitId':_0x3120e0,'subUnitId':_0x5c0766,'type':c[_0x436e08(0x3b9)][_0x436e08(0x4ba)],'op':_0x5c959b,'objects':_0x3901a1}},{'id':i['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x3120e0,'subUnitId':_0x5c0766,'shapeId':_0x2f7b5f,'shapeType':_0x5893c0,'shapeData':_0xba1dca}}],'undos':[{'id':c['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3120e0,'subUnitId':_0x5c0766,'type':c[_0x436e08(0x3b9)][_0x436e08(0x1ae)],'op':_0x1c0fc9,'objects':_0x3901a1}},{'id':i[_0x436e08(0x247)]['id'],'params':{'unitId':_0x3120e0,'subUnitId':_0x5c0766,'shapeId':_0x2f7b5f}}]};}[_0xe5948a(0x21c)](_0x2be3b5,_0x2d34d0,_0x49acaf,_0x5dfde5){const _0x69a412=_0xe5948a;let {range:_0x5d1132,skeleton:_0x2d01a5}=_0x2d34d0,{range:_0x5101f1,skeleton:_0x41e345}=_0x49acaf,{transform:_0x58731d,sheetTransform:_0x3c48b6}=_0x2be3b5,_0xe0c16b={..._0x58731d};if(_0x5d1132){let _0xdfd052=(0x0,s[_0x69a412(0x1ac)])(_0x2d01a5,_0x5d1132),_0x4f35d7=(0x0,s[_0x69a412(0x1ac)])(_0x41e345,_0x5101f1);if(_0xdfd052&&_0x4f35d7){let _0x955295=_0x4f35d7['startX']-_0xdfd052[_0x69a412(0x26b)],_0x438367=_0x4f35d7[_0x69a412(0x35e)]-_0xdfd052['startY'];_0xe0c16b[_0x69a412(0x376)]=(_0xe0c16b['left']??0x0)+_0x955295,_0xe0c16b[_0x69a412(0x3c1)]=(_0xe0c16b[_0x69a412(0x3c1)]??0x0)+_0x438367;}}else{let _0x4575ec=(0x0,s[_0x69a412(0x1ac)])(_0x41e345,_0x5101f1);if(_0x5dfde5&&_0x4575ec){let _0x20b8c6=(_0xe0c16b[_0x69a412(0x376)]??0x0)-_0x5dfde5[_0x69a412(0x376)],_0x4e4bcf=(_0xe0c16b[_0x69a412(0x3c1)]??0x0)-_0x5dfde5[_0x69a412(0x3c1)];_0xe0c16b['left']=_0x4575ec[_0x69a412(0x26b)]+_0x20b8c6,_0xe0c16b[_0x69a412(0x3c1)]=_0x4575ec[_0x69a412(0x35e)]+_0x4e4bcf;}else _0xe0c16b[_0x69a412(0x376)]=_0x4575ec==null?void 0x0:_0x4575ec[_0x69a412(0x26b)],_0xe0c16b[_0x69a412(0x3c1)]=_0x4575ec==null?void 0x0:_0x4575ec[_0x69a412(0x35e)];}return{'transform':_0xe0c16b,'sheetTransform':(0x0,c[_0x69a412(0x474)])(_0xe0c16b,_0x41e345)??_0x3c48b6};}};K=A([k(0x0,(0x0,a[_0xe5948a(0x25d)])(s[_0xe5948a(0x386)])),k(0x1,(0x0,a[_0xe5948a(0x25d)])(l[_0xe5948a(0x20d)])),k(0x2,(0x0,a['Inject'])(c[_0xe5948a(0x305)])),k(0x3,(0x0,a[_0xe5948a(0x25d)])(i[_0xe5948a(0x45f)])),k(0x4,(0x0,a['Inject'])(v[_0xe5948a(0x445)])),k(0x5,a[_0xe5948a(0x402)]),k(0x6,o[_0xe5948a(0x40d)]),k(0x7,(0x0,a[_0xe5948a(0x25d)])(s['SheetPermissionCheckController']))],K);var Ct=class extends o[_0xe5948a(0x1c9)]{constructor(_0x46ba13,_0x4c9be4){const _0x10a6d7=_0xe5948a;super(_0x46ba13,_0x4c9be4),E(this,_0x10a6d7(0x1d8),null),E(this,'_index',null),E(this,_0x10a6d7(0x15b),null),E(this,_0x10a6d7(0x264),null),E(this,'_isStartConnectorPoint',!0x1),_0x4c9be4&&this[_0x10a6d7(0x30b)](_0x4c9be4);}['getDrawingSearch'](){const _0x33f951=_0xe5948a;return{'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x33f951(0x1d8)]};}[_0xe5948a(0x30b)](_0x54f293){const _0x4e7c0e=_0xe5948a;_0x54f293['shapeId']!==void 0x0&&(this['_shapeId']=_0x54f293[_0x4e7c0e(0x31a)]),_0x54f293[_0x4e7c0e(0x40e)]!==void 0x0&&(this[_0x4e7c0e(0x15b)]=_0x54f293[_0x4e7c0e(0x40e)]),_0x54f293[_0x4e7c0e(0x1e9)]!==void 0x0&&(this[_0x4e7c0e(0x264)]=_0x54f293[_0x4e7c0e(0x1e9)]),_0x54f293[_0x4e7c0e(0x283)]!==void 0x0&&(this[_0x4e7c0e(0x1c1)]=_0x54f293[_0x4e7c0e(0x283)]),this[_0x4e7c0e(0x1fc)]({'width':_0x54f293[_0x4e7c0e(0x33d)],'height':_0x54f293[_0x4e7c0e(0x25e)]});}['_draw'](_0x1177e4){const _0x544b19=_0xe5948a;o[_0x544b19(0x2c4)]['drawWith'](_0x1177e4,{'radius':n[_0x544b19(0x417)][_0x544b19(0x3a0)],'fill':n['ShapeDefaultConfig']['cxnPointFill'],'stroke':n[_0x544b19(0x417)]['cxnPointStroke'],'strokeWidth':n[_0x544b19(0x417)]['cxnPointStrokeWidth'],'evented':!0x0});}};let wt=class extends a['Disposable']{constructor(_0x15429a,_0x3426f5,_0x3cdcd5,_0x4ce20e,_0x522b57,_0x9e3087,_0x83652f,_0x48a39b){const _0x282584=_0xe5948a;super(),this[_0x282584(0x4d0)]=_0x15429a,this[_0x282584(0x256)]=_0x3426f5,this[_0x282584(0x505)]=_0x3cdcd5,this['_drawingManagerService']=_0x4ce20e,this[_0x282584(0x345)]=_0x522b57,this['_sheetsShapeService']=_0x9e3087,this[_0x282584(0x4e9)]=_0x83652f,this['_sheetBasicShapeConnectionPointController']=_0x48a39b,E(this,_0x282584(0x451),void 0x0),E(this,'_unitId',void 0x0),E(this,_0x282584(0x264),void 0x0),E(this,_0x282584(0x328),[]),E(this,_0x282584(0x2c8),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),E(this,'_activeShapeModel',void 0x0),E(this,_0x282584(0x3b6),!0x1),E(this,_0x282584(0x2f3),!0x1),E(this,'_hasReset',!0x1),E(this,_0x282584(0x4a4),void 0x0),E(this,'_cxtHandlerPointerUp',void 0x0),E(this,_0x282584(0x1f7),null),this[_0x282584(0x310)]();}[_0xe5948a(0x310)](){const _0x21bea4=_0xe5948a;this[_0x21bea4(0x36e)](),this[_0x21bea4(0x2d6)]();}[_0xe5948a(0x212)](){const _0xf77fd2=_0xe5948a;if(!this[_0xf77fd2(0x15b)]||!this[_0xf77fd2(0x264)]||!this[_0xf77fd2(0x451)])return;let _0x56147f={'unitId':this[_0xf77fd2(0x15b)],'subUnitId':this[_0xf77fd2(0x264)],'drawingId':this['_activeShapeId']},{transform:_0x565817}=this[_0xf77fd2(0x1c6)][_0xf77fd2(0x2ca)](_0x56147f);if(_0x565817)return{'left':_0x565817[_0xf77fd2(0x376)]||0x0,'top':_0x565817[_0xf77fd2(0x3c1)]||0x0,'width':_0x565817[_0xf77fd2(0x33d)]||0x0,'height':_0x565817['height']||0x0,'flipX':_0x565817[_0xf77fd2(0x1b1)]||!0x1,'flipY':_0x565817[_0xf77fd2(0x419)]||!0x1,'angle':_0x565817[_0xf77fd2(0x2ee)]};}[_0xe5948a(0x2ac)](){const _0x32f28a=_0xe5948a;if(this['_unitId']===void 0x0||this[_0x32f28a(0x264)]===void 0x0||this['_activeShapeId']===void 0x0)return;let _0x3a3e0f=this[_0x32f28a(0x505)]['getRenderUnitById'](this[_0x32f28a(0x15b)]);if(!_0x3a3e0f||!_0x3a3e0f[_0x32f28a(0x2d7)](l[_0x32f28a(0x433)])[_0x32f28a(0x26d)]())return;let {scene:_0x33d7ae}=_0x3a3e0f,_0x3f72df=this[_0x32f28a(0x212)]();if(!_0x3f72df)return;let _0x51de3d=this['_sheetsShapeService'][_0x32f28a(0x3ae)](this[_0x32f28a(0x15b)],this['_subUnitId'],this[_0x32f28a(0x451)]);if(!_0x51de3d||!(0x0,n[_0x32f28a(0x1b3)])(_0x51de3d['getShapeType']()))return;let _0x2cbf6e=_0x51de3d[_0x32f28a(0x1a1)]();if(_0x2cbf6e[_0x32f28a(0x26f)]<0x2)return;let _0x556133=new n[(_0x32f28a(0x2c6))](_0x3f72df),_0x42a3eb=_0x2cbf6e[0x0],_0x26a123=_0x2cbf6e[_0x2cbf6e[_0x32f28a(0x26f)]-0x1],_0x625871=_0x556133[_0x32f28a(0x3c5)](_0x42a3eb),_0xc93435=_0x556133[_0x32f28a(0x3c5)](_0x26a123);this[_0x32f28a(0x405)](_0x33d7ae,{..._0x625871},!0x0),this[_0x32f28a(0x405)](_0x33d7ae,{..._0xc93435},!0x1);}[_0xe5948a(0x405)](_0x538f29,_0x38b236,_0x77398b){const _0x1eee87=_0xe5948a;if(this[_0x1eee87(0x451)]===void 0x0||this[_0x1eee87(0x15b)]===void 0x0||this[_0x1eee87(0x264)]===void 0x0)return;let _0x27ed03='connector-handler-'+this[_0x1eee87(0x15b)]+'-'+this[_0x1eee87(0x264)]+'-'+this[_0x1eee87(0x451)]+'-'+(_0x77398b?_0x1eee87(0x460):_0x1eee87(0x22e)),_0x4764d4=_0x538f29[_0x1eee87(0x1a0)](_0x27ed03);if(_0x4764d4){_0x4764d4[_0x1eee87(0x1fc)]({'left':_0x38b236['x']-n[_0x1eee87(0x417)][_0x1eee87(0x3a0)],'top':_0x38b236['y']-n[_0x1eee87(0x417)][_0x1eee87(0x3a0)]});return;}let _0x314071=new Ct(_0x27ed03,{'left':_0x38b236['x']-n['ShapeDefaultConfig'][_0x1eee87(0x3a0)],'top':_0x38b236['y']-n['ShapeDefaultConfig']['cxnPointRadius'],'shapeId':this[_0x1eee87(0x451)],'unitId':this[_0x1eee87(0x15b)],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0x77398b,'width':n[_0x1eee87(0x417)][_0x1eee87(0x3a0)]*0x2,'height':n[_0x1eee87(0x417)][_0x1eee87(0x3a0)]*0x2,'zIndex':o[_0x1eee87(0x2d8)]+0x1,'evented':!0x0});this['_connectorObjects']['push'](_0x314071),this[_0x1eee87(0x272)](_0x314071,_0x538f29,_0x77398b),_0x538f29[_0x1eee87(0x4bb)](_0x314071,o[_0x1eee87(0x2d8)]+0x1);}[_0xe5948a(0x2b9)](_0x56f133,_0xee8aa0){const _0x37926f=_0xe5948a;var _0x61c258;let _0x2140fc={'x':0x0,'y':0x0};if(!_0x56f133||!_0xee8aa0)return _0x2140fc;let _0x2393e9=this[_0x37926f(0x505)][_0x37926f(0x24f)](_0x56f133);if(!_0x2393e9||!_0x2393e9[_0x37926f(0x2d7)](l[_0x37926f(0x433)])[_0x37926f(0x353)](_0xee8aa0))return _0x2140fc;let _0x5d6d67=_0x2393e9[_0x37926f(0x2d7)](l[_0x37926f(0x455)]),_0x23ba41=_0x5d6d67==null?void 0x0:_0x5d6d67[_0x37926f(0x1cc)]();if(!_0x23ba41)return _0x2140fc;let _0x9a42b0=(_0x61c258=this[_0x37926f(0x345)][_0x37926f(0x372)](_0x56f133))==null?void 0x0:_0x61c258[_0x37926f(0x3c8)](_0xee8aa0);if(!_0x9a42b0)return _0x2140fc;let _0x268ad4=(0x0,l[_0x37926f(0x3f9)])(_0x23ba41[_0x37926f(0x49b)],_0x23ba41['sheetViewStartColumn'],_0x2393e9['scene'],_0x9a42b0);return _0x268ad4?{'x':_0x268ad4[_0x37926f(0x261)],'y':_0x268ad4[_0x37926f(0x3a1)]}:_0x2140fc;}['_getZoomRatio'](_0x431441,_0x2cf1c0){const _0x5ae920=_0xe5948a;var _0x29ee3b;let _0x52f74f=(_0x29ee3b=this['_univerInstanceService'][_0x5ae920(0x372)](_0x431441))==null?void 0x0:_0x29ee3b[_0x5ae920(0x3c8)](_0x2cf1c0);return(_0x52f74f==null?void 0x0:_0x52f74f['getZoomRatio']())??0x1;}[_0xe5948a(0x2b0)](_0x2c8346,_0x45e71f,_0x401ef9,_0x4ee74d,_0x2bde51){const _0x228cb6=_0xe5948a;this['_cxtHandlerPointerMove'][_0x228cb6(0x18a)](),this[_0x228cb6(0x4d1)][_0x228cb6(0x18a)](),this[_0x228cb6(0x4e9)][_0x228cb6(0x284)]();let _0x5cf276=this['_currentConnectionTarget'];this[_0x228cb6(0x510)]['endConnectionDetection']();let _0x200004=this[_0x228cb6(0x2b9)](this['_unitId'],this[_0x228cb6(0x264)]),_0x3f90ca=this[_0x228cb6(0x1bf)](this[_0x228cb6(0x15b)],this[_0x228cb6(0x264)]),_0x5761c1={'x':_0x401ef9[_0x228cb6(0x175)]/_0x3f90ca+_0x200004['x'],'y':_0x401ef9[_0x228cb6(0x1e7)]/_0x3f90ca+_0x200004['y']},_0x2b948f=_0x5cf276?_0x5cf276[_0x228cb6(0x30a)]:_0x5761c1,_0x37200b=_0x4ee74d?this[_0x228cb6(0x44a)][_0x228cb6(0x24e)]():this['_activeShapeModel']['getStartConnectInfo'](),_0x111728=this[_0x228cb6(0x44a)][_0x228cb6(0x325)]();_0x37200b?this['_handleConnectedEndpointPointerUp'](_0x37200b,_0x2b948f,_0x4ee74d,_0x5cf276,_0x2bde51):this[_0x228cb6(0x2fd)](_0x45e71f,_0x2b948f,_0x4ee74d,_0x5cf276,_0x2bde51,_0x111728),this['_isConnecting']=!0x1,this[_0x228cb6(0x483)]=!0x1,this[_0x228cb6(0x1f7)]=null,_0x2c8346['enableObjectsEvent']();}['_handleFreeEndpointPointerUp'](_0x2434bb,_0x54dd85,_0x269673,_0x5e9202,_0x456228,_0x34fba1){const _0x5e724b=_0xe5948a;let _0x33c430=_0x34fba1===n[_0x5e724b(0x335)][_0x5e724b(0x3cb)]||_0x34fba1===n['ShapeTypeEnum'][_0x5e724b(0x4b9)],_0x521e2f=_0x269673?_0x54dd85:_0x2434bb,_0x1523fe=_0x269673?_0x2434bb:_0x54dd85,_0x4f26f1=this[_0x5e724b(0x44a)][_0x5e724b(0x1a1)](),_0x130bb1=this[_0x5e724b(0x44a)][_0x5e724b(0x325)](),_0x3c02c6=(0x0,n[_0x5e724b(0x428)])(_0x130bb1),_0x37376b=n[_0x5e724b(0x2c6)]['getBentTypeFromPoints'](_0x4f26f1,_0x3c02c6),_0x4eb63b=_0x33c430?n[_0x5e724b(0x2c6)][_0x5e724b(0x3dd)](_0x521e2f,_0x1523fe):n[_0x5e724b(0x2c6)][_0x5e724b(0x291)](_0x2434bb,_0x54dd85,_0x269673,_0x37376b);_0x5e9202?this[_0x5e724b(0x394)](_0x4eb63b,_0x5e9202,_0x269673,_0x456228):this[_0x5e724b(0x46d)](_0x4eb63b,_0x456228);}[_0xe5948a(0x2da)](_0x25fd90,_0x515751,_0x1cc98c,_0x1db8fa,_0xde6c27){const _0x5ebe2c=_0xe5948a;let _0x1020b4=this[_0x5ebe2c(0x32b)](_0x25fd90);if(!_0x1020b4)return;let _0x17c983=_0x1db8fa?_0x1db8fa[_0x5ebe2c(0x2ee)]:this[_0x5ebe2c(0x2bd)](_0x1020b4[_0x5ebe2c(0x34b)],_0x515751),_0x48c0b0;if(_0x1db8fa){let _0xbe2dc6=this[_0x5ebe2c(0x1c6)][_0x5ebe2c(0x2ca)]({'unitId':_0x1db8fa['unitId'],'subUnitId':_0x1db8fa[_0x5ebe2c(0x1e9)],'drawingId':_0x1db8fa[_0x5ebe2c(0x31a)]});if(_0xbe2dc6!=null&&_0xbe2dc6[_0x5ebe2c(0x383)]){let {left:_0x5bfc7b=0x0,top:_0x41bbef=0x0,width:_0x4026f0=0x0,height:_0x52d5b4=0x0,angle:_0x2fd956}=_0xbe2dc6['transform'];_0x48c0b0=(0x0,n[_0x5ebe2c(0x473)])({'left':_0x5bfc7b,'top':_0x41bbef,'width':_0x4026f0,'height':_0x52d5b4},_0x2fd956||0x0);}else _0x48c0b0={'left':_0x515751['x'],'top':_0x515751['y'],'width':0x0,'height':0x0};}else _0x48c0b0={'left':_0x515751['x'],'top':_0x515751['y'],'width':0x0,'height':0x0};let _0x16b139={'point':_0x515751,'angle':_0x17c983,'bounds':_0x48c0b0},_0x354c4b=_0x1cc98c?_0x16b139:_0x1020b4,_0x1f79b5=_0x1cc98c?_0x1020b4:_0x16b139,_0x50815f=this[_0x5ebe2c(0x44a)][_0x5ebe2c(0x325)](),_0x10fa11=(0x0,n[_0x5ebe2c(0x34e)])(_0x354c4b,_0x1f79b5,_0x50815f);this['_activeShapeModel'][_0x5ebe2c(0x260)]();let _0x90c211=(0x0,n['computeConnectorRouteLayout'])(_0x10fa11,_0x50815f);_0x1db8fa?this[_0x5ebe2c(0x1f6)](_0x90c211,_0x1db8fa,_0x25fd90,_0x1cc98c,_0xde6c27):this['_executeConnectedRouteResizeCommand'](_0x90c211,_0x25fd90,_0x1cc98c,_0xde6c27);}[_0xe5948a(0x394)](_0x692029,_0xc0431f,_0xc99ea9,_0x4ae05d){const _0x15daa4=_0xe5948a;let _0x1cb0b5=this[_0x15daa4(0x44a)][_0x15daa4(0x192)]()[_0x15daa4(0x213)],_0x2c7246={..._0x1cb0b5},_0x515f74={'shapeId':_0xc0431f['shapeId'],'cxnIndex':_0xc0431f[_0x15daa4(0x281)]};_0xc99ea9?_0x2c7246[_0x15daa4(0x4c3)]=_0x515f74:_0x2c7246['to']=_0x515f74;let _0x2a9a27=this[_0x15daa4(0x44a)]['getShapeType'](),_0x57bcb0=(0x0,n['computeConnectorRouteLayout'])(_0x692029['worldPoints'],_0x2a9a27),_0x13b4cd={'unitId':this[_0x15daa4(0x15b)],'subUnitId':this[_0x15daa4(0x264)],'connectorShapeId':this['_activeShapeId'],'width':_0x692029[_0x15daa4(0x2e9)][_0x15daa4(0x33d)],'height':_0x692029[_0x15daa4(0x2e9)][_0x15daa4(0x25e)],'left':_0x692029['worldRect'][_0x15daa4(0x376)],'top':_0x692029[_0x15daa4(0x2e9)][_0x15daa4(0x3c1)],'flipX':_0x692029['worldRect'][_0x15daa4(0x1b1)]||!0x1,'flipY':_0x692029[_0x15daa4(0x2e9)][_0x15daa4(0x419)]||!0x1,'newAdjustValues':_0x57bcb0[_0x15daa4(0x219)],'oldAdjustValues':_0x4ae05d,'oldRelation':_0x1cb0b5,'newRelation':_0x2c7246,'newLineType':_0x57bcb0[_0x15daa4(0x232)],'oldLineType':_0x2a9a27};this[_0x15daa4(0x256)][_0x15daa4(0x17f)](i[_0x15daa4(0x326)]['id'],_0x13b4cd);}[_0xe5948a(0x46d)](_0x3be173,_0x5482b5){const _0x4319c7=_0xe5948a;let _0x68ac44=this['_activeShapeModel'][_0x4319c7(0x325)](),_0x2c8904=(0x0,n[_0x4319c7(0x226)])(_0x3be173[_0x4319c7(0x441)],_0x68ac44),_0x5a57c6={'unitId':this[_0x4319c7(0x15b)],'subUnitId':this[_0x4319c7(0x264)],'shapeId':this[_0x4319c7(0x451)],'width':_0x3be173[_0x4319c7(0x2e9)]['width'],'height':_0x3be173['worldRect']['height'],'left':_0x3be173['worldRect']['left'],'top':_0x3be173[_0x4319c7(0x2e9)]['top'],'flipX':_0x3be173[_0x4319c7(0x2e9)][_0x4319c7(0x1b1)]||!0x1,'flipY':_0x3be173[_0x4319c7(0x2e9)][_0x4319c7(0x419)]||!0x1,'angle':_0x3be173[_0x4319c7(0x2e9)]['angle']||0x0,'newAdjustValues':_0x2c8904[_0x4319c7(0x219)],'oldAdjustValues':_0x5482b5,'newLineType':_0x2c8904[_0x4319c7(0x232)],'oldLineType':_0x68ac44};this['_commandService'][_0x4319c7(0x17f)](i['UpdateLineShapeResizeCommand']['id'],_0x5a57c6);}[_0xe5948a(0x1f6)](_0x3b8fb9,_0x2f8730,_0x50620e,_0x577484,_0x28c87e){const _0x245f5e=_0xe5948a;let _0x309c48=this['_activeShapeModel']['getShapeData']()[_0x245f5e(0x213)],_0x5e274b={..._0x309c48},_0x216c54={'shapeId':_0x2f8730[_0x245f5e(0x31a)],'cxnIndex':_0x2f8730[_0x245f5e(0x281)]};_0x577484?(_0x5e274b[_0x245f5e(0x4c3)]=_0x216c54,_0x5e274b['to']=_0x50620e):(_0x5e274b['from']=_0x50620e,_0x5e274b['to']=_0x216c54);let _0x34f4fb={'unitId':this[_0x245f5e(0x15b)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x245f5e(0x451)],'width':_0x3b8fb9['worldRect'][_0x245f5e(0x33d)],'height':_0x3b8fb9['worldRect'][_0x245f5e(0x25e)],'left':_0x3b8fb9[_0x245f5e(0x2e9)][_0x245f5e(0x376)],'top':_0x3b8fb9['worldRect'][_0x245f5e(0x3c1)],'flipX':_0x3b8fb9['worldRect']['flipX']||!0x1,'flipY':_0x3b8fb9[_0x245f5e(0x2e9)][_0x245f5e(0x419)]||!0x1,'oldAdjustValues':_0x28c87e,'newAdjustValues':_0x3b8fb9[_0x245f5e(0x219)],'newLineType':_0x3b8fb9[_0x245f5e(0x232)],'rotation':_0x3b8fb9[_0x245f5e(0x3e8)],'oldRelation':_0x309c48,'newRelation':_0x5e274b};this[_0x245f5e(0x256)][_0x245f5e(0x17f)](i['UpdateConnectorRelationCommand']['id'],_0x34f4fb);}[_0xe5948a(0x406)](_0x480c33,_0x500a02,_0x3b17c3,_0x5430c3){const _0x333e3f=_0xe5948a;let _0x3b413f=this[_0x333e3f(0x44a)]['getShapeData']()[_0x333e3f(0x213)],_0x165618={};_0x3b17c3?(_0x165618['to']=_0x500a02,_0x165618[_0x333e3f(0x4c3)]=void 0x0):(_0x165618['from']=_0x500a02,_0x165618['to']=void 0x0);let _0x142240={'unitId':this[_0x333e3f(0x15b)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x333e3f(0x451)],'width':_0x480c33[_0x333e3f(0x2e9)][_0x333e3f(0x33d)],'height':_0x480c33[_0x333e3f(0x2e9)][_0x333e3f(0x25e)],'left':_0x480c33[_0x333e3f(0x2e9)][_0x333e3f(0x376)],'top':_0x480c33[_0x333e3f(0x2e9)][_0x333e3f(0x3c1)],'flipX':_0x480c33['worldRect'][_0x333e3f(0x1b1)]||!0x1,'flipY':_0x480c33['worldRect'][_0x333e3f(0x419)]||!0x1,'oldAdjustValues':_0x5430c3,'newAdjustValues':_0x480c33[_0x333e3f(0x219)],'newLineType':_0x480c33[_0x333e3f(0x232)],'rotation':_0x480c33[_0x333e3f(0x3e8)],'oldRelation':_0x3b413f,'newRelation':_0x165618};this[_0x333e3f(0x256)]['executeCommand'](i[_0x333e3f(0x326)]['id'],_0x142240);}['_attachConnectorObjectEvent'](_0x2a9762,_0x560c91,_0x28835b){const _0x4b3df3=_0xe5948a;this['disposeWithMe']((0x0,a[_0x4b3df3(0x42c)])(_0x2a9762[_0x4b3df3(0x17e)]['subscribeEvent']((_0x388096,_0x8d3852)=>{const _0xb7306c=_0x4b3df3;let _0x1f90ec=_0x2a9762['getDrawingSearch']();if(this[_0xb7306c(0x44a)]=this[_0xb7306c(0x4f0)][_0xb7306c(0x3ae)](_0x1f90ec[_0xb7306c(0x40e)],_0x1f90ec[_0xb7306c(0x1e9)],_0x1f90ec[_0xb7306c(0x302)]),!this[_0xb7306c(0x44a)])return;let _0x3aec22={};this[_0xb7306c(0x44a)][_0xb7306c(0x465)]()[_0xb7306c(0x4fc)](_0x2c873f=>{const _0x5ee151=_0xb7306c;let _0x325ffc=this['_activeShapeModel'][_0x5ee151(0x496)](_0x2c873f);_0x325ffc!==void 0x0&&(_0x3aec22[_0x2c873f]=_0x325ffc);});let _0xc83cf6=this[_0xb7306c(0x212)]();if(!_0xc83cf6)return;this[_0xb7306c(0x2c8)]={..._0xc83cf6};let _0x4725eb=new n[(_0xb7306c(0x2c6))](this[_0xb7306c(0x2c8)]),_0x100904=(0x0,u['getDrawingShapeKeyByDrawingSearch'])({'unitId':this[_0xb7306c(0x15b)],'subUnitId':this[_0xb7306c(0x264)],'drawingId':this[_0xb7306c(0x451)]}),_0x23db6d=_0x560c91[_0xb7306c(0x1a0)](_0x100904);this[_0xb7306c(0x3b6)]=!0x0,_0x560c91[_0xb7306c(0x50a)](),this['_sheetBasicShapeConnectionPointController'][_0xb7306c(0x3c2)](_0x560c91,this['_unitId'],this[_0xb7306c(0x264)],this[_0xb7306c(0x451)]),this[_0xb7306c(0x1f7)]=null;let _0x5b5768=this[_0xb7306c(0x44a)][_0xb7306c(0x1a1)](),_0x2503e6=_0x5b5768[0x0],_0x466bec=_0x5b5768[_0x5b5768[_0xb7306c(0x26f)]-0x1],_0x4258cf=_0x28835b?_0x4725eb['localToWorld'](_0x466bec):_0x4725eb[_0xb7306c(0x3c5)](_0x2503e6);this[_0xb7306c(0x4a4)]=_0x560c91[_0xb7306c(0x15c)][_0xb7306c(0x388)]((_0x1b8b4d,_0x2ecada)=>{const _0x26eb7a=_0xb7306c;if(!this[_0x26eb7a(0x3b6)]||!this[_0x26eb7a(0x44a)])return;this[_0x26eb7a(0x483)]||=(this['_sheetShapeAdjustController'][_0x26eb7a(0x2ae)](),this[_0x26eb7a(0x44a)][_0x26eb7a(0x4cc)](),!0x0);let _0x2287d8=this['_getScrollInfo'](this[_0x26eb7a(0x15b)],this[_0x26eb7a(0x264)]),_0x28d02b=this[_0x26eb7a(0x1bf)](this[_0x26eb7a(0x15b)],this[_0x26eb7a(0x264)]),_0x1b1d00={'x':_0x1b8b4d['offsetX']/_0x28d02b+_0x2287d8['x'],'y':_0x1b8b4d[_0x26eb7a(0x1e7)]/_0x28d02b+_0x2287d8['y']},_0x4e08de=this[_0x26eb7a(0x510)][_0x26eb7a(0x4ac)](_0x1b1d00);if(_0x4e08de){let {shapeId:_0x14a2dc,unitId:_0x3fd33e,subUnitId:_0x4f2c6b}=_0x4e08de;if(_0x14a2dc&&_0x3fd33e&&_0x4f2c6b){let _0x10d628=(0x0,u[_0x26eb7a(0x15a)])({'unitId':_0x3fd33e,'subUnitId':_0x4f2c6b,'drawingId':_0x14a2dc});_0x4e08de[_0x26eb7a(0x2ee)]=(_0x560c91[_0x26eb7a(0x1a0)](_0x10d628)[_0x26eb7a(0x2ee)]||0x0)+_0x4e08de[_0x26eb7a(0x2ee)];}}this[_0x26eb7a(0x1f7)]=_0x4e08de;let _0xfe9283=_0x28835b?this[_0x26eb7a(0x44a)][_0x26eb7a(0x24e)]():this['_activeShapeModel']['getStartConnectInfo']();_0xfe9283?this[_0x26eb7a(0x210)](_0xfe9283,_0x1b1d00,_0x28835b,_0x23db6d,_0x2a9762):this[_0x26eb7a(0x234)](_0x1b1d00,_0x4258cf,_0x28835b,_0x23db6d,_0x2a9762);}),this[_0xb7306c(0x4d1)]=_0x560c91['onPointerUp$'][_0xb7306c(0x388)]((_0x80c309,_0x44c46b)=>{const _0x50b38d=_0xb7306c;this[_0x50b38d(0x2b0)](_0x560c91,_0x4258cf,_0x80c309,_0x28835b,_0x3aec22);}),_0x8d3852[_0xb7306c(0x227)]();})));}[_0xe5948a(0x39e)](_0x3cf4c8,_0xcecfaf,_0x53861c){const _0x28144d=_0xe5948a;let _0x51e0eb=this[_0x28144d(0x4f0)][_0x28144d(0x2fb)](_0x3cf4c8,_0xcecfaf,_0x53861c);if(!_0x51e0eb||_0x51e0eb[_0x28144d(0x26f)]===0x0)return;let _0x22eaf7=this['_renderManagerService']['getRenderUnitById'](_0x3cf4c8);if(!_0x22eaf7)return;let {scene:_0x5332ce}=_0x22eaf7;for(let _0xbc7500 of _0x51e0eb){let _0x40ee86=_0xbc7500[_0x28144d(0x306)],_0x1fea7e=this[_0x28144d(0x4f0)][_0x28144d(0x3ae)](_0x3cf4c8,_0xcecfaf,_0x40ee86);if(!_0x1fea7e)continue;let _0x49274c=_0x1fea7e['getStartConnectInfo'](),_0xdb0d28=_0x1fea7e['getEndConnectInfo'](),_0x4c1270=(_0x49274c==null?void 0x0:_0x49274c['shapeId'])===_0x53861c,_0x480466=(0x0,u[_0x28144d(0x15a)])({'unitId':_0x3cf4c8,'subUnitId':_0xcecfaf,'drawingId':_0x40ee86}),_0x3dee49=_0x5332ce[_0x28144d(0x1a0)](_0x480466);if(!_0x3dee49)continue;let _0x57ff9c=this['_drawingManagerService'][_0x28144d(0x2ca)]({'unitId':_0x3cf4c8,'subUnitId':_0xcecfaf,'drawingId':_0x40ee86});_0x57ff9c!=null&&_0x57ff9c[_0x28144d(0x383)]&&(_0x49274c&&_0xdb0d28?this[_0x28144d(0x2a5)](_0x3cf4c8,_0xcecfaf,_0x40ee86,_0x1fea7e,_0x49274c,_0xdb0d28,_0x3dee49):this['_moveConnectorWithShape'](_0x3cf4c8,_0xcecfaf,_0x40ee86,_0x1fea7e,_0x4c1270?_0x49274c:_0xdb0d28,_0x4c1270,_0x57ff9c,_0x3dee49));}}[_0xe5948a(0x2a5)](_0x3099f0,_0x341a8c,_0x291182,_0x1dc9ee,_0x582cab,_0x10ce46,_0x5e5aa3){const _0x143601=_0xe5948a;let _0x521248=this[_0x143601(0x15b)],_0x3b1e53=this['_subUnitId'];this['_unitId']=_0x3099f0,this['_subUnitId']=_0x341a8c;let _0x4b4de4=this['_getConnectPointInfo'](_0x582cab),_0x2cb15f=this[_0x143601(0x32b)](_0x10ce46);if(this[_0x143601(0x15b)]=_0x521248,this[_0x143601(0x264)]=_0x3b1e53,!_0x4b4de4||!_0x2cb15f)return;let _0x27a5a8=_0x1dc9ee['getShapeType'](),_0x2969e4=(0x0,n[_0x143601(0x34e)])(_0x4b4de4,_0x2cb15f,_0x27a5a8);_0x2969e4&&_0x1dc9ee[_0x143601(0x1bd)](_0x2969e4);let _0x5c0b73=(0x0,n[_0x143601(0x226)])(_0x2969e4,_0x27a5a8);_0x5c0b73[_0x143601(0x232)]!==_0x27a5a8&&_0x1dc9ee[_0x143601(0x1ad)](_0x5c0b73['lineType']),_0x1dc9ee[_0x143601(0x4cc)]();for(let [_0x45773c,_0x10c186]of Object[_0x143601(0x3a6)](_0x5c0b73['adjustValues']))_0x1dc9ee[_0x143601(0x4bf)](_0x45773c,_0x10c186);_0x1dc9ee[_0x143601(0x4b1)]({'width':_0x5c0b73[_0x143601(0x2e9)]['width'],'height':_0x5c0b73[_0x143601(0x2e9)][_0x143601(0x25e)]}),_0x5e5aa3[_0x143601(0x1fc)]({'flipX':_0x5c0b73['worldRect'][_0x143601(0x1b1)],'flipY':_0x5c0b73[_0x143601(0x2e9)][_0x143601(0x419)],'left':_0x5c0b73[_0x143601(0x2e9)][_0x143601(0x376)],'top':_0x5c0b73[_0x143601(0x2e9)][_0x143601(0x3c1)],'width':_0x5c0b73[_0x143601(0x2e9)][_0x143601(0x33d)],'height':_0x5c0b73[_0x143601(0x2e9)][_0x143601(0x25e)],'angle':_0x5c0b73[_0x143601(0x3e8)]}),_0x1dc9ee[_0x143601(0x260)]();}[_0xe5948a(0x2a1)](_0x54e929,_0x34d481,_0x8efc3a,_0x19da51,_0x424164,_0x459488,_0x14e193,_0x444e39){const _0x718f5=_0xe5948a;let _0x22a8b2=this[_0x718f5(0x15b)],_0x3c9b8a=this['_subUnitId'];this[_0x718f5(0x15b)]=_0x54e929,this[_0x718f5(0x264)]=_0x34d481;let _0x581ee3=this['_getConnectPointInfo'](_0x424164);if(this['_unitId']=_0x22a8b2,this[_0x718f5(0x264)]=_0x3c9b8a,!_0x581ee3)return;let {left:_0x43eac2=0x0,top:_0x190b82=0x0,width:_0x11f223=0x0,height:_0x9794e0=0x0,flipX:_0x3bc211=!0x1,flipY:_0x3538cc=!0x1}=_0x14e193[_0x718f5(0x383)],_0x33c420=_0x19da51[_0x718f5(0x1a1)]();if(_0x33c420[_0x718f5(0x26f)]<0x2)return;let _0x17e8b9=new n[(_0x718f5(0x2c6))]({'left':_0x43eac2,'top':_0x190b82,'width':_0x11f223,'height':_0x9794e0,'flipX':_0x3bc211,'flipY':_0x3538cc}),_0x57e13f=_0x459488?_0x33c420[_0x33c420[_0x718f5(0x26f)]-0x1]:_0x33c420[0x0],_0x311260=_0x17e8b9['localToWorld'](_0x57e13f),_0x5dd90a=n[_0x718f5(0x2c6)][_0x718f5(0x291)](_0x311260,_0x581ee3['point'],!_0x459488);_0x444e39[_0x718f5(0x1fc)]({'flipX':_0x5dd90a[_0x718f5(0x2e9)][_0x718f5(0x1b1)],'flipY':_0x5dd90a['worldRect'][_0x718f5(0x419)],'left':_0x5dd90a[_0x718f5(0x2e9)][_0x718f5(0x376)],'top':_0x5dd90a[_0x718f5(0x2e9)]['top'],'width':_0x5dd90a[_0x718f5(0x2e9)][_0x718f5(0x33d)],'height':_0x5dd90a[_0x718f5(0x2e9)][_0x718f5(0x25e)],'angle':_0x5dd90a[_0x718f5(0x2e9)][_0x718f5(0x2ee)]}),_0x444e39[_0x718f5(0x49d)](!0x0);}[_0xe5948a(0x334)](){const _0x5e56d6=_0xe5948a;this['_connectorObjects'][_0x5e56d6(0x26f)]!==0x0&&(this[_0x5e56d6(0x328)]['forEach'](_0x588c47=>{const _0x5d4488=_0x5e56d6;_0x588c47[_0x5d4488(0x2c1)]();}),this[_0x5e56d6(0x328)]=[]);}[_0xe5948a(0x2d6)](){const _0x56e7b2=_0xe5948a;let _0x34616e=this[_0x56e7b2(0x345)]['getCurrentTypeOfUnit$'](a[_0x56e7b2(0x3fe)][_0x56e7b2(0x1f5)]);this[_0x56e7b2(0x160)](_0x34616e[_0x56e7b2(0x41c)]((0x0,d[_0x56e7b2(0x447)])(_0x582dc9=>_0x582dc9?_0x582dc9[_0x56e7b2(0x4c6)][_0x56e7b2(0x41c)]((0x0,d[_0x56e7b2(0x447)])(_0x2c6e5a=>{const _0x57ad0f=_0x56e7b2;if(!_0x2c6e5a)return d[_0x57ad0f(0x30e)];let _0x2d0804=_0x582dc9[_0x57ad0f(0x32f)](),_0x25832d=this['_renderManagerService'][_0x57ad0f(0x24f)](_0x2d0804),_0x34b0e7=_0x25832d==null?void 0x0:_0x25832d[_0x57ad0f(0x1b0)];return _0x34b0e7?(0x0,d['of'])(_0x34b0e7):d[_0x57ad0f(0x30e)];})):d['EMPTY']))[_0x56e7b2(0x208)](_0x3b0e28=>{const _0x1f2bc4=_0x56e7b2;let _0x255ad6=_0x3b0e28[_0x1f2bc4(0x3e6)]();this[_0x1f2bc4(0x160)](_0x3b0e28[_0x1f2bc4(0x15c)]['subscribeEvent'](_0x3f4703=>{const _0xe4bee9=_0x1f2bc4;this[_0xe4bee9(0x2f3)]&&this[_0xe4bee9(0x451)]&&this[_0xe4bee9(0x334)]();})),this[_0x1f2bc4(0x160)](_0x255ad6[_0x1f2bc4(0x235)][_0x1f2bc4(0x208)](_0x44133d=>{const _0x5dd9b4=_0x1f2bc4;let {objects:_0x367d3d}=_0x44133d;this[_0x5dd9b4(0x334)](),_0x367d3d!==null&&_0x367d3d[_0x5dd9b4(0x308)]===0x1&&_0x367d3d[_0x5dd9b4(0x3e3)]()['next']()[_0x5dd9b4(0x446)]instanceof D&&(this['_isDrawingShapePointDown']=!0x0);})),this[_0x1f2bc4(0x160)](_0x255ad6['changing$'][_0x1f2bc4(0x208)](_0x373efb=>{const _0xc10aa9=_0x1f2bc4;this[_0xc10aa9(0x2f3)]&&this[_0xc10aa9(0x334)]();})),this[_0x1f2bc4(0x160)](_0x3b0e28[_0x1f2bc4(0x167)]['subscribeEvent'](()=>{const _0x506f01=_0x1f2bc4;this[_0x506f01(0x2f3)]&&(this['_isDrawingShapePointDown']=!0x1,this[_0x506f01(0x2ac)]());})),this[_0x1f2bc4(0x160)](_0x255ad6[_0x1f2bc4(0x33f)]['subscribe'](()=>{const _0x4b797d=_0x1f2bc4;this['_unitId']&&this[_0x4b797d(0x264)]&&this[_0x4b797d(0x451)]&&this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x4b797d(0x15b)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x4b797d(0x451)]})&&(this[_0x4b797d(0x334)](),this['_addShapeConnectorHandlerObjects']());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x411947=_0xe5948a;this[_0x411947(0x160)](this[_0x411947(0x1c6)]['focus$'][_0x411947(0x208)](_0x1342b5=>{const _0x25b11e=_0x411947;if(_0x1342b5[_0x25b11e(0x26f)]===0x1){let _0x442257=_0x1342b5[0x0];if(_0x442257[_0x25b11e(0x28c)]===a['DrawingTypeEnum'][_0x25b11e(0x48f)]){let _0x19aac3=this['_sheetsShapeService']['getShapeModel'](_0x442257['unitId'],_0x442257[_0x25b11e(0x1e9)],_0x442257[_0x25b11e(0x302)]);if(_0x19aac3&&(0x0,n[_0x25b11e(0x1b3)])(_0x19aac3[_0x25b11e(0x325)]())){this[_0x25b11e(0x451)]=_0x442257[_0x25b11e(0x302)],this[_0x25b11e(0x15b)]=_0x442257[_0x25b11e(0x40e)],this[_0x25b11e(0x264)]=_0x442257[_0x25b11e(0x1e9)],this[_0x25b11e(0x334)](),this['_addShapeConnectorHandlerObjects']();return;}}}this[_0x25b11e(0x451)]=void 0x0,this[_0x25b11e(0x15b)]=void 0x0,this[_0x25b11e(0x264)]=void 0x0,this[_0x25b11e(0x334)]();})),this[_0x411947(0x160)](this[_0x411947(0x1c6)][_0x411947(0x4f9)][_0x411947(0x208)](_0x2800e9=>{const _0x29e915=_0x411947;if(_0x2800e9[_0x29e915(0x26f)]===0x1){var _0x2081b6;let _0x113b55=_0x2800e9[0x0],_0x20a848=(_0x2081b6=this[_0x29e915(0x1c6)][_0x29e915(0x2ca)](_0x113b55))==null?void 0x0:_0x2081b6[_0x29e915(0x28c)];_0x20a848===a[_0x29e915(0x41e)][_0x29e915(0x48f)]&&_0x113b55[_0x29e915(0x302)]===this[_0x29e915(0x451)]?(this['_clearShapeConnectorHandlerObjects'](),this[_0x29e915(0x2ac)]()):!this['_activeShapeId']&&_0x20a848===a[_0x29e915(0x41e)][_0x29e915(0x48f)]&&this['_handleBasicShapeUpdateConnectorLineShape'](_0x113b55[_0x29e915(0x40e)],_0x113b55[_0x29e915(0x1e9)],_0x113b55['drawingId']);}})),this[_0x411947(0x160)](this['_drawingManagerService'][_0x411947(0x1cd)][_0x411947(0x208)](_0x1dc38c=>{const _0x408b36=_0x411947;for(let _0x2c0dc8 of _0x1dc38c){let {drawingId:_0x25d2fb}=_0x2c0dc8;if(this[_0x408b36(0x451)]===_0x25d2fb){this[_0x408b36(0x4ab)]();return;}}}));}[_0xe5948a(0x210)](_0x1a5160,_0x553836,_0x94650,_0x3cef0c,_0x3edc3a){const _0x103ccd=_0xe5948a;var _0x1bf533;if(!this[_0x103ccd(0x44a)])return;let _0xbd17c9=this[_0x103ccd(0x32b)](_0x1a5160);if(!_0xbd17c9)return;let _0x957726=this[_0x103ccd(0x1f7)]?this['_currentConnectionTarget'][_0x103ccd(0x30a)]:_0x553836,_0x55a1de=this[_0x103ccd(0x1f7)]?this[_0x103ccd(0x1f7)][_0x103ccd(0x2ee)]:this[_0x103ccd(0x2bd)](_0xbd17c9[_0x103ccd(0x34b)],_0x957726),_0x589522;if(this[_0x103ccd(0x1f7)]){let _0x39c4cd=this['_drawingManagerService'][_0x103ccd(0x2ca)]({'unitId':this['_currentConnectionTarget'][_0x103ccd(0x40e)],'subUnitId':this[_0x103ccd(0x1f7)][_0x103ccd(0x1e9)],'drawingId':this[_0x103ccd(0x1f7)][_0x103ccd(0x31a)]});if(_0x39c4cd!=null&&_0x39c4cd[_0x103ccd(0x383)]){let {left:_0x31ec7d=0x0,top:_0x3bf2e3=0x0,width:_0x4613ff=0x0,height:_0x133ccc=0x0,angle:_0x484434}=_0x39c4cd[_0x103ccd(0x383)];_0x589522=(0x0,n[_0x103ccd(0x473)])({'left':_0x31ec7d,'top':_0x3bf2e3,'width':_0x4613ff,'height':_0x133ccc},_0x484434||0x0);}else _0x589522={'left':_0x957726['x'],'top':_0x957726['y'],'width':0x0,'height':0x0};}else _0x589522={'left':_0x957726['x'],'top':_0x957726['y'],'width':0x0,'height':0x0};let _0x4eb21e={'point':_0x957726,'angle':_0x55a1de,'bounds':_0x589522},_0x295455=_0x94650?_0x4eb21e:_0xbd17c9,_0x3b94b8=_0x94650?_0xbd17c9:_0x4eb21e,_0x561360=this['_activeShapeModel'][_0x103ccd(0x325)](),_0x56ca46=(0x0,n[_0x103ccd(0x34e)])(_0x295455,_0x3b94b8,_0x561360);_0x56ca46&&this['_activeShapeModel']['updateLinePoints'](_0x56ca46);let _0x466ef7=(0x0,n['computeConnectorRouteLayout'])(_0x56ca46,_0x561360);_0x466ef7['lineType']!==_0x561360&&this[_0x103ccd(0x44a)][_0x103ccd(0x1ad)](_0x466ef7['lineType']);for(let [_0x1d514c,_0x2681ed]of Object['entries'](_0x466ef7['adjustValues']))this['_activeShapeModel'][_0x103ccd(0x4bf)](_0x1d514c,_0x2681ed);this[_0x103ccd(0x44a)]['updateContext']({'width':_0x466ef7[_0x103ccd(0x2e9)][_0x103ccd(0x33d)],'height':_0x466ef7['worldRect']['height']}),_0x3cef0c[_0x103ccd(0x1fc)]({'flipX':_0x466ef7[_0x103ccd(0x2e9)]['flipX'],'flipY':_0x466ef7[_0x103ccd(0x2e9)][_0x103ccd(0x419)],'left':_0x466ef7['worldRect'][_0x103ccd(0x376)],'top':_0x466ef7['worldRect'][_0x103ccd(0x3c1)],'width':_0x466ef7[_0x103ccd(0x2e9)]['width'],'height':_0x466ef7[_0x103ccd(0x2e9)][_0x103ccd(0x25e)],'angle':_0x466ef7[_0x103ccd(0x3e8)]}),_0x3cef0c[_0x103ccd(0x49d)](!0x0);let _0x21ccb6=((_0x1bf533=this[_0x103ccd(0x1f7)])==null?void 0x0:_0x1bf533[_0x103ccd(0x30a)])??_0x553836;_0x3edc3a['transformByState']({'left':_0x21ccb6['x']-n['ShapeDefaultConfig']['cxnPointRadius'],'top':_0x21ccb6['y']-n[_0x103ccd(0x417)][_0x103ccd(0x3a0)]});}['_handleFreeEndpointMove'](_0x27b9ac,_0x1e5334,_0x3db36e,_0x3f0058,_0xe849e1){const _0xe92259=_0xe5948a;var _0x45b120,_0x40d80e;let _0x54fa1d=((_0x45b120=this[_0xe92259(0x1f7)])==null?void 0x0:_0x45b120[_0xe92259(0x30a)])??_0x27b9ac,_0x17ea0a=n[_0xe92259(0x2c6)][_0xe92259(0x291)](_0x1e5334,_0x54fa1d,_0x3db36e);_0x3f0058[_0xe92259(0x1fc)]({'flipX':_0x17ea0a[_0xe92259(0x2e9)][_0xe92259(0x1b1)],'flipY':_0x17ea0a[_0xe92259(0x2e9)][_0xe92259(0x419)],'left':_0x17ea0a[_0xe92259(0x2e9)]['left'],'top':_0x17ea0a[_0xe92259(0x2e9)]['top'],'width':_0x17ea0a[_0xe92259(0x2e9)]['width'],'height':_0x17ea0a[_0xe92259(0x2e9)][_0xe92259(0x25e)],'angle':_0x17ea0a[_0xe92259(0x2e9)][_0xe92259(0x2ee)]});let _0x37d433=((_0x40d80e=this[_0xe92259(0x1f7)])==null?void 0x0:_0x40d80e['worldPoint'])??_0x27b9ac;_0xe849e1['transformByState']({'left':_0x37d433['x']-n[_0xe92259(0x417)][_0xe92259(0x3a0)],'top':_0x37d433['y']-n[_0xe92259(0x417)]['cxnPointRadius']});}['_getConnectPointInfo'](_0x3d8717){const _0x202e09=_0xe5948a;if(!this['_unitId']||!this['_subUnitId'])return null;let {shapeId:_0x3357ea,cxnIndex:_0x38ec25}=_0x3d8717,_0xb06020=this[_0x202e09(0x4f0)][_0x202e09(0x3ae)](this[_0x202e09(0x15b)],this[_0x202e09(0x264)],_0x3357ea);if(!_0xb06020)return null;let _0x5abe10=this[_0x202e09(0x1c6)][_0x202e09(0x2ca)]({'unitId':this[_0x202e09(0x15b)],'subUnitId':this[_0x202e09(0x264)],'drawingId':_0x3357ea});if(!(_0x5abe10!=null&&_0x5abe10[_0x202e09(0x383)]))return null;let {left:_0x4da27c=0x0,top:_0x55cb3f=0x0,width:_0xf45a87=0x0,height:_0x574678=0x0,flipX:_0x55e1ff=!0x1,flipY:_0x4f9853=!0x1,angle:_0x194012}=_0x5abe10['transform'];_0xb06020[_0x202e09(0x4b1)]({'width':_0xf45a87,'height':_0x574678});let _0x22f3d5=_0xb06020[_0x202e09(0x4ec)]()[_0x202e09(0x4a3)](_0x23df4f=>_0x23df4f[_0x202e09(0x3f5)]===_0x38ec25);if(!_0x22f3d5)return null;let _0x40dd6d=_0x55e1ff?_0xf45a87-_0x22f3d5['x']:_0x22f3d5['x'],_0x9fa3b9=_0x4f9853?_0x574678-_0x22f3d5['y']:_0x22f3d5['y'];if(_0x194012!==0x0&&_0x194012!=null){let _0x1eefa8=_0x194012*Math['PI']/0xb4,_0x1cb2e7=Math['cos'](_0x1eefa8),_0x4e50fb=Math[_0x202e09(0x3af)](_0x1eefa8),_0x561c0f=_0xf45a87/0x2,_0x53b767=_0x574678/0x2,_0x3b0571=_0x40dd6d-_0x561c0f,_0x57ee08=_0x9fa3b9-_0x53b767;_0x40dd6d=_0x561c0f+_0x3b0571*_0x1cb2e7-_0x57ee08*_0x4e50fb,_0x9fa3b9=_0x53b767+_0x3b0571*_0x4e50fb+_0x57ee08*_0x1cb2e7;}_0x40dd6d+=_0x4da27c,_0x9fa3b9+=_0x55cb3f;let _0x42711b=_0x22f3d5[_0x202e09(0x508)]/0xea60;_0x55e1ff&&(_0x42711b=0xb4-_0x42711b),_0x4f9853&&(_0x42711b=-_0x42711b),_0x42711b+=_0x194012||0x0,_0x42711b=(_0x42711b%0x168+0x168)%0x168;let _0x1ed5f1=(0x0,n[_0x202e09(0x473)])({'left':_0x4da27c,'top':_0x55cb3f,'width':_0xf45a87,'height':_0x574678},_0x194012||0x0);return{'point':{'x':_0x40dd6d,'y':_0x9fa3b9},'angle':_0x42711b,'bounds':_0x1ed5f1};}['_calculateFreeEndpointAngle'](_0x37b80a,_0x4ae45c){const _0x55a388=_0xe5948a;let _0x50cf0a=_0x4ae45c['x']-_0x37b80a['x'],_0x5567c5=_0x4ae45c['y']-_0x37b80a['y'];return Math[_0x55a388(0x27b)](_0x50cf0a)>=Math['abs'](_0x5567c5)?_0x50cf0a>=0x0?0xb4:0x0:_0x5567c5>=0x0?0x10e:0x5a;}[_0xe5948a(0x4ab)](){const _0x286fb8=_0xe5948a;this[_0x286fb8(0x451)]=void 0x0,this[_0x286fb8(0x15b)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x286fb8(0x334)]();}[_0xe5948a(0x2c1)](){const _0x46c22e=_0xe5948a;this[_0x46c22e(0x334)](),super[_0x46c22e(0x2c1)]();}};wt=A([k(0x1,a[_0xe5948a(0x3e7)]),k(0x2,o[_0xe5948a(0x40d)]),k(0x3,u[_0xe5948a(0x3f0)]),k(0x4,a['IUniverInstanceService']),k(0x5,(0x0,a[_0xe5948a(0x25d)])(i[_0xe5948a(0x45f)])),k(0x6,(0x0,a[_0xe5948a(0x25d)])(M)),k(0x7,(0x0,a[_0xe5948a(0x25d)])(G))],wt);let q=class extends a[_0xe5948a(0x1e6)]{constructor(_0x1a02af,_0x12ec13,_0x23a9c8){const _0x3d0d2b=_0xe5948a;super(),this[_0x3d0d2b(0x4ff)]=_0x1a02af,this[_0x3d0d2b(0x1c6)]=_0x12ec13,this[_0x3d0d2b(0x3a7)]=_0x23a9c8,this[_0x3d0d2b(0x23c)]();}[_0xe5948a(0x23c)](){const _0x5eb4dc=_0xe5948a;this[_0x5eb4dc(0x160)](this['_sheetPrintInterceptorService'][_0x5eb4dc(0x49f)][_0x5eb4dc(0x25a)](this[_0x5eb4dc(0x4ff)]['interceptor'][_0x5eb4dc(0x425)]()[_0x5eb4dc(0x158)],{'handler':(_0x589972,_0x18875a,_0x4c5051)=>{const _0x67b0a3=_0x5eb4dc;var _0x3817e6;let {unitId:_0x1dc5bc,subUnitId:_0x43301b,scene:_0x86772d,resourceCollector:_0x47fba6}=_0x18875a,_0x482e3e=(_0x3817e6=this[_0x67b0a3(0x1c6)][_0x67b0a3(0x487)](_0x1dc5bc))==null?void 0x0:_0x3817e6[_0x43301b];return _0x482e3e==null||_0x482e3e[_0x67b0a3(0x279)][_0x67b0a3(0x4fc)](_0x2e2d41=>{const _0x39977d=_0x67b0a3;let _0x30dbb5=_0x482e3e[_0x39977d(0x477)][_0x2e2d41];_0x30dbb5[_0x39977d(0x28c)]===a[_0x39977d(0x41e)]['DRAWING_SHAPE']&&!_0x30dbb5[_0x39977d(0x224)]&&this[_0x39977d(0x3a7)]['renderDrawingShape'](_0x30dbb5,_0x86772d,{'resourceCollector':_0x47fba6});}),_0x4c5051(_0x589972);}}));}};q=A([k(0x0,(0x0,a['Inject'])(l[_0xe5948a(0x1f9)])),k(0x1,u[_0xe5948a(0x3f0)]),k(0x2,(0x0,a[_0xe5948a(0x25d)])(j))],q);let J=class extends a[_0xe5948a(0x1e6)]{constructor(_0x3c786a,_0x1a7d65,_0x402408,_0x375447){const _0x1fdd3a=_0xe5948a;super(),this[_0x1fdd3a(0x256)]=_0x3c786a,this[_0x1fdd3a(0x345)]=_0x1a7d65,this[_0x1fdd3a(0x3dc)]=_0x402408,this[_0x1fdd3a(0x24a)]=_0x375447,this[_0x1fdd3a(0x2a9)]();}[_0xe5948a(0x2a9)](){const _0x122972=_0xe5948a;let _0x184ade=new Set([S['id'],i['ToggleSheetsShapeFlipCommand']['id'],i[_0x122972(0x1db)]['id'],i[_0x122972(0x3cd)]['id'],i['UpdateLineShapeResizeCommand']['id']]);this[_0x122972(0x160)](this[_0x122972(0x256)][_0x122972(0x46b)](_0x2f8a84=>{const _0x4dcaa7=_0x122972;let _0x6b8c2b,_0x5d67bc;if(_0x2f8a84['id']===i[_0x4dcaa7(0x4eb)]['id']||_0x2f8a84['id']===i[_0x4dcaa7(0x1df)]['id']||_0x2f8a84['id']===i[_0x4dcaa7(0x326)]['id']){let _0x21bdb0=_0x2f8a84[_0x4dcaa7(0x2c9)];_0x6b8c2b=_0x21bdb0['unitId'],_0x5d67bc=_0x21bdb0[_0x4dcaa7(0x1e9)];}else{if(_0x184ade['has'](_0x2f8a84['id'])){let _0x96b67=(0x0,s[_0x4dcaa7(0x408)])(this['_univerInstanceService'],_0x2f8a84[_0x4dcaa7(0x2c9)]);if((_0x96b67==null?void 0x0:_0x96b67['worksheet'][_0x4dcaa7(0x350)]()[_0x4dcaa7(0x4da)])!==a['SheetTypes'][_0x4dcaa7(0x40b)])return;_0x6b8c2b=_0x96b67[_0x4dcaa7(0x40e)],_0x5d67bc=_0x96b67['subUnitId'];}}_0x6b8c2b&&_0x5d67bc&&(this[_0x4dcaa7(0x24a)][_0x4dcaa7(0x385)]({'workbookTypes':[s[_0x4dcaa7(0x4cd)]],'worksheetTypes':[s[_0x4dcaa7(0x4f6)]]},_0x6b8c2b,_0x5d67bc)||this[_0x4dcaa7(0x24a)][_0x4dcaa7(0x1c8)](this[_0x4dcaa7(0x3dc)]['t'](_0x4dcaa7(0x204))));}));}};J=A([k(0x0,(0x0,a['Inject'])(a['ICommandService'])),k(0x1,(0x0,a[_0xe5948a(0x25d)])(a[_0xe5948a(0x402)])),k(0x2,(0x0,a[_0xe5948a(0x25d)])(a[_0xe5948a(0x309)])),k(0x3,(0x0,a[_0xe5948a(0x25d)])(s[_0xe5948a(0x494)]))],J);let Y=class{constructor(_0x15cb10){this['_renderManagerService']=_0x15cb10;}[_0xe5948a(0x336)](_0x38f92e,_0x960ad5){const _0x4036a7=_0xe5948a;let _0x504ac9=this[_0x4036a7(0x505)]['getRenderUnitById'](_0x38f92e['unitId']),_0x30aec5=_0x504ac9==null?void 0x0:_0x504ac9[_0x4036a7(0x1b0)];if(!_0x30aec5)return;let _0x2a0f32=(0x0,u['getDrawingShapeKeyByDrawingSearch'])(_0x38f92e),_0x379197=_0x30aec5['getObjectIncludeInGroup'](_0x2a0f32);_0x379197==null||_0x379197[_0x4036a7(0x27e)](_0x960ad5);}};Y=A([k(0x0,o[_0xe5948a(0x40d)])],Y);let X=class extends a[_0xe5948a(0x2b4)]{constructor(_0xd9fecf=ft,_0x4f5dd6,_0x23f2a3,_0x16e82d,_0x54c6b3){const _0x3b4a8b=_0xe5948a;super(),this[_0x3b4a8b(0x15e)]=_0xd9fecf,this['_injector']=_0x4f5dd6,this[_0x3b4a8b(0x256)]=_0x23f2a3,this[_0x3b4a8b(0x23b)]=_0x16e82d,this[_0x3b4a8b(0x505)]=_0x54c6b3;let {..._0x1a7240}=(0x0,a[_0x3b4a8b(0x1ee)])({},ft,this['_config']);this[_0x3b4a8b(0x23b)][_0x3b4a8b(0x162)](dt,_0x1a7240),this[_0x3b4a8b(0x2af)]();}[_0xe5948a(0x3b2)](){const _0x575d23=_0xe5948a;this[_0x575d23(0x245)]['add']([gt]),this[_0x575d23(0x245)]['get'](gt),(0x0,a['registerDependencies'])(this[_0x575d23(0x245)],[[H],[W],[j],[q],[Y],[V],[U],[L],[J]]);}[_0xe5948a(0x206)](){const _0x309ef1=_0xe5948a;(0x0,a[_0x309ef1(0x2a2)])(this[_0x309ef1(0x245)],[[G],[M],[K]]),(0x0,a[_0x309ef1(0x3ba)])(this[_0x309ef1(0x245)],[[K],[M]]),[[G],[pt],[wt],[vt]][_0x309ef1(0x4fc)](_0x90975f=>{const _0x23e440=_0x309ef1;this[_0x23e440(0x160)](this[_0x23e440(0x505)][_0x23e440(0x4c7)](a[_0x23e440(0x3fe)]['UNIVER_SHEET'],_0x90975f));});}[_0xe5948a(0x200)](){const _0x3dbf45=_0xe5948a;(0x0,a[_0x3dbf45(0x3ba)])(this[_0x3dbf45(0x245)],[[H],[W],[j],[q],[Y],[V],[U],[L],[J]]);}[_0xe5948a(0x292)](){const _0x5cb875=_0xe5948a;this[_0x5cb875(0x245)][_0x5cb875(0x41b)](H)[_0x5cb875(0x286)]();}[_0xe5948a(0x2af)](){const _0x2487b6=_0xe5948a;[N,S,re,ut][_0x2487b6(0x4fc)](_0xa3b7f3=>this[_0x2487b6(0x160)](this[_0x2487b6(0x256)]['registerCommand'](_0xa3b7f3)));}};E(X,'type',a['UniverInstanceType']['UNIVER_SHEET']),E(X,'pluginName',_0xe5948a(0x3be)),E(X,_0xe5948a(0x377),ct),E(X,_0xe5948a(0x354),lt),X=A([(0x0,a[_0xe5948a(0x401)])(h[_0xe5948a(0x267)],g[_0xe5948a(0x1eb)],u[_0xe5948a(0x397)],o[_0xe5948a(0x2c0)],s[_0xe5948a(0x184)],_[_0xe5948a(0x20c)],c['UniverSheetsDrawingPlugin'],r[_0xe5948a(0x48c)],v[_0xe5948a(0x4cf)],i[_0xe5948a(0x423)],l[_0xe5948a(0x1f3)],e[_0xe5948a(0x384)],t[_0xe5948a(0x38a)]),k(0x1,(0x0,a[_0xe5948a(0x25d)])(a[_0xe5948a(0x2e6)])),k(0x2,a[_0xe5948a(0x3e7)]),k(0x3,a['IConfigService']),k(0x4,o[_0xe5948a(0x40d)])],X);const Tt={'type':a[_0xe5948a(0x421)][_0xe5948a(0x370)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}};function Et(){const _0x2a9d2b=_0xe5948a;let _0x4b7e66=(0x0,t[_0x2a9d2b(0x4f2)])(u[_0x2a9d2b(0x3f0)]),_0x136225=(0x0,t[_0x2a9d2b(0x4ef)])(()=>_0x4b7e66[_0x2a9d2b(0x4e1)],_0x4b7e66[_0x2a9d2b(0x4ee)](),!0x1,[_0x4b7e66]);return _0x136225[_0x2a9d2b(0x26f)]===0x0?null:(0x0,m['jsx'])(_0x2a9d2b(0x40f),{'children':(0x0,m['jsxs'])(_0x2a9d2b(0x40f),{'className':_0x2a9d2b(0x194),'children':[(0x0,m['jsx'])(f[_0x2a9d2b(0x435)],{'drawings':_0x136225,'hasCropper':!0x1}),(0x0,m[_0x2a9d2b(0x216)])(v[_0x2a9d2b(0x468)],{'drawings':_0x136225})]})});}function Dt(_0x426d82){const _0x52fd72=_0xe5948a;let {unitId:_0x5d2a4b,subUnitId:_0x1c57c3,shapeId:_0xd19f6b}=_0x426d82,_0xf10541=(0x0,t['useDependency'])(a['ICommandService']),_0x447284=(0x0,t['useDependency'])(Y);return(0x0,m[_0x52fd72(0x216)])(e[_0x52fd72(0x3a3)],{..._0x426d82,'positionEditor':(0x0,m[_0x52fd72(0x216)])(Et,{}),'onUpdateShapeData':(_0x1e9447,_0x32109a)=>{C(_0xf10541,_0x5d2a4b,_0x1c57c3,_0xd19f6b,_0x1e9447,_0x32109a);},'onUpdateLineShapeData':(_0x18cecd,_0x118cb5)=>{w(_0xf10541,_0x5d2a4b,_0x1c57c3,_0xd19f6b,_0x18cecd,_0x118cb5);},'onUpdateShapeFillImage':_0x2332f4=>{const _0x4786f4=_0x52fd72;_0x447284[_0x4786f4(0x336)]({'unitId':_0x5d2a4b,'subUnitId':_0x1c57c3,'drawingId':_0xd19f6b},_0x2332f4);}});}function _0x4ecd(_0x279c03,_0x16d323){_0x279c03=_0x279c03-0x157;const _0x4bec58=_0x4bec();let _0x4ecdc2=_0x4bec58[_0x279c03];return _0x4ecdc2;}function Ot(_0x5328b5){const _0x3d69ba=_0xe5948a;let _0x578934=(0x0,t[_0x3d69ba(0x4f2)])(e[_0x3d69ba(0x3ed)]),_0x31aa61=(0x0,t[_0x3d69ba(0x4ef)])(()=>_0x578934[_0x3d69ba(0x484)],_0x578934[_0x3d69ba(0x1f2)](),!0x1,[_0x578934]),_0x5b9423=_0x5328b5[_0x3d69ba(0x2a3)][_0x3d69ba(0x228)];return!_0x5b9423||!_0x31aa61?null:(0x0,m[_0x3d69ba(0x216)])(kt,{..._0x5b9423,'canvasElement':_0x5328b5[_0x3d69ba(0x2a3)][_0x3d69ba(0x4bd)]});}function _0x4bec(){const _0x6fd919=['_clearConnectionSites','set','#4285f4','getSelectedObjectMap','_drawingType','_hyperLinkRegions','_handleBasicShapeUpdateConnectorLineShape','_generateCutPasteMutations','cxnPointRadius','viewportScrollY','transformDrawingsToChartSheet','ShapeEditPanel','flatMap','ObjectLayersIcon','entries','_shapeRenderController','_insertShapes','MenuItemType','selectable','_updateAdjustControlPositions','clipTop','_shapeService','getShapeModel','sin','_generatePasteMutations','_sheetClipboardService','onStarting','sheet.operation.update-shape-type','ShapeIcon','@univerjs-pro/sheets-shape-ui','_isConnecting','updateDocumentStyle','_drawRichText','DrawingApplyType','touchDependencies','showContextualTab','ShapeArrowSizeEnum','isRichText','SHEET_SHAPE_UI_PLUGIN','SetDrawingApplyMutation','_formulaKey','top','startConnectionDetection','getContextValue','adjName','localToWorld','ComponentManager','_activeAdjustInfo','getSheetBySheetId','translate','composeMatrix','Line','complete','SetSheetsShapeTextVerticalToggleCommand','TopmostIcon','endArrow','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','_disposePopups','getColorFromTheme','error','ShapeFillEnum','featurePluginUpdateNotification','_editingParams$','Position','SheetsShapeUIMenuSchema','SheetDrawingAnchorType','function','_drawingAddListener','_localeService','computeStraightConnectorLayout','prstGeom','onDblclick$','ImageSourceTypeEnum','_registerFeatureMenu','InsertSheetsShapeMutation','values','_baseWidth','undo','getTransformerByCreate','ICommandService','rotation','87996rtxWkT','pushUndoRedo','SheetInterceptorService','parse','ShapeFloatingToolbarService','getShapeQuickStyleType','useMemo','IDrawingManagerService','ISidebarService','setEditing','_activeImageId','drawing-ui.objectListPanel.locate','index','ShapeFormatSettingIcon','every','_initSelection','getViewportByCell','OTHERS','bindRenderTransformerLifecycle','DocSelectionRenderService','_registerGroupFeaturePasteHook','UniverInstanceType','SHEET_VIEW_KEY','render','DependentOn','IUniverInstanceService','SHEET_VIEWPORT_KEY','_createShapeAdjustControls','_addShapeConnectorHandlerObject','_executeConnectedRouteResizeCommand','drawWith','getSheetCommandTarget','unregister','gray.0','CHART','_sidebarDisposable','IRenderManagerService','unitId','div','DocRenderController','fillType','filter','UniverShapeEditorUIPlugin','clipHeight','ToggleShapeFloatingToolbarOperation','setPrstGeom','ShapeDefaultConfig','componentKey','flipY','getMenuHiddenObservable','get','pipe','getDrawingOKey','DrawingTypeEnum','ShapeModel','current','CommandType','stroke','UniverSheetsShapePlugin','skeleton','getInterceptPoints','currentAdjustValues','ShapeLineTypeEnum','isCurvedConnectorShape','sheet.menu.shape.flip-horizontal','RibbonInsertGroup','Observable','toDisposable','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','stringify','sheets-shape-ui.objectListPanel.open','presentationChanged$','FOCUSING_SHAPE_TEXT_EDITOR','UniverDrawingUIPlugin','SheetSkeletonManagerService','clip','DrawingCommonPanel','getCurrentUnitInfo','getOrCreateDrawingCopyPlan','_getShapeInfo','defineProperty','focus','has','drawing-ui.objectListPanel.descriptionPlaceholder','setPrstGeomAdjValues','shapeText','cloneShapeDataForType','getDrawingData','worldPoints','DocumentSkeleton','beginPath','getConnectionInfo','SheetsDrawingGroupCopyPasteController','value','switchMap','completeEditing','SheetPasteCommand','_activeShapeModel','refreshTransform','sheets-shape-ui.imagePanel.crop.shape','9975uAnjTE','_clipService','_baseShapeWidth','shape-editor-ui.arrange.forward','_activeShapeId','redos','_shapeTextEditingService','_update','SheetScrollManagerService','_isImagePointerDown','setSrcRect','SheetShapeTextEditorContainer','gray.300','sheet.shape.picker.component','VerticalAlign','refreshShapeFillImage','clone','contentHeight','SheetsShapeService','start','isHighlighted','drawing-ui.objectListPanel.moveBackward','drawing-ui.objectListPanel.expand','multiply','getAdjustNames','presentation','IURLImageService','SheetDrawingAnchor','MEDIA','drawing-ui.objectListPanel.hide','beforeCommandExecuted','CHART_PAGE','_executeResizeCommand','BehaviorSubject','_transform','generateRandomId','_registerIcons','drawing-ui.objectListPanel.hideAll','getBasicShapeRotateBound','transformToDrawingPosition','classType','animateFormulaPresentation','data','_activeAdjustPointList','ShapePickerPanel','_showConnectionSites','FloatingObjectToolbarPosition','fillImageSourceType','_shapes','_openShapeEditPanel','UPDATE','sheets-shape-ui.ribbon.shape-format.text-control','isArray','resourceCollector','_hasReset','visible$','sheets-shape-ui.ribbon.shape-format.style-control','DrawingRenderService','getDrawingDataForUnit','push','calcAdjValues','_adjHandlerPointerUp','resolveShapeTextEditorBehaviorShapeData','UniverShapeEditorPlugin','getDrawingVisible','useReducer','DRAWING_SHAPE','getObjectListPanelSectionIdForDrawingType','IMenuManagerService','ShapeTextHyperLinkHoverController','getShapeTypeById','SheetPermissionCheckController','ShapeFormulaService','getAdjustValueByName','_activeTargetShapeId','clearActiveDrawingObjects','setFallbackVisible','_init','sheetViewStartRow','pick','makeDirty','sheets-shape-ui.ribbon.shape-format.arrange-forward','interceptor','_getShapeAdjustInfosById','_clearCompletionFrame','copyType','find','_cxtHandlerPointerMove','shapeData','string','drawing-ui.objectListPanel.sectionCanvas','MobileShapeEditorService','objects','getZoomRatio','_reset','updateConnectionDetection','isHorizontal','_initEvents','DEFAULT_SHAPE_WIDTH','_popupMenuListener','updateContext','sheets-shape-ui.editShape','copyId','setCollapsedIds','UniverSheetsDrawingPlugin','ContextMenuGroup','_sidebarService','drawing-ui.objectListPanel.lockHint','StraightConnector1','INSERT','addObject','gradientEndColor','canvasElement','PictureFill','setAdjustValueByName','sidebarOptions$','getPermissionPoint','_registerMoveHandler','from','Arrow','sheets-shape-ui.insertShape','activeSheet$','registerRenderModule','mergeMenu','ShapeTextEditorContainer','_resetState','bottom','clearAdjustValue','WorkbookEditablePermission','sheet.command.update-shape-data','UniverSheetsDrawingMobileUIPlugin','_context','_cxtHandlerPointerUp','toPrimitive','startWith','extensionGroups','range','UNIVER_DOC','drawing-ui.objectListPanel.filterLocked','unshift','_targetShapeId','type','sheets-shape-ui.shape-format.quick-style-gallery','DisposableCollection','376425KVqfSx','style','drawing-ui.objectListPanel.typeNames.','forward','focus$','_releaseRenderCache','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','_createControls','calculate','_props','resetCursor','_insertingShapeKeys','_sheetShapeAdjustController','_registerImageShapeClipDelegate','InsertShapeCommand','getConnectionSiteList','interceptCommand','getFocusDrawings','useObservable','_sheetsShapeService','GRID','useDependency','SheetTypes','ShapeTextHyperLinkPopupService','adjHandleStroke','WorksheetEditPermission','activeAnObject','clip-adj-','update$','_updateImageAdjValues','clearControl$','forEach','SetDrawingSelectedOperation','decorate','_sheetPrintInterceptorService','dataModel','MoveDownIcon','getBatchAddOp','WorkbookCopyPermission','sheet.image-clip.shape-picker.component','_renderManagerService','_getSceneAndTransformerByDrawingSearch','useEffect','ang','renderDrawingShape','disableObjectsEvent','translateWithPrecision','ShapeFormulaRibbonControl','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','_initEditingParams','shape-editor-ui.arrange.backward','_sheetBasicShapeConnectionPointController','FlipHorizontalIcon','actions','UniverSheetsShapeMobileUIPlugin','sheet.shape.floating-toolbar','registerClipDelegate','BottomIcon','_findShapeAtPoint','_isOpenedShapeEditPanel','getDrawingTypeNameKey','PRINTING_COMPONENT_COLLECT','_drawShapeText','getDrawingShapeKeyByDrawingSearch','_unitId','onPointerMove$','add$','_config','getCurrentTypeOfUnit$','disposeWithMe','setCursor','setConfig','CUT','_loadAndSetImage','FromArray','FormulaShapeAnimationController','onPointerUp$','some','restore','viewBound','LEFT','resolveFormulaShapeAutoFitSize','call','1.5.1','_copyInfo','sheet.menu.shape.flip-vertical','updateDocumentDataMargin','ObjectListPanelBase','_currentUniverService','_connectionSiteObjects','offsetX','IContextService','rightToLeft','10665KMOYOe','createShapeTextBoxShapeData','srcRect','_initMenu','addClipboardHook','drawing-ui.objectListPanel.unlockAll','onPointerDown$','executeCommand','setFormulaPresentation','vertical','applyQuickStyleToShapeData','onTransformChange$','UniverSheetsPlugin','defer','setShouldShowAdjust','_visible','indexOf','_updateSrcRectByTransform','unsubscribe','sheets-shape-ui','_getConnectionSiteAngle','isFinite','_getShapeAdjustPointListById','sheet.command.menu-insert-shape','fontSize','resolveHyperLinkAt','getShapeData','_shapePopupMenuDisposable','univer-box-border\x20univer-px-4\x20univer-text-sm','_disposed','fillImageSource','UniverSheetsShapeUIPlugin','useFormulaShapeToolbar','getShapeTextData','ArrangeTypeEnum','resolveShapeTextDocumentRenderLayout','registerFeatureMenu','_sheetDrawingShapeRenderController','_updateShapeAdjustControls','backward','getObjectIncludeInGroup','getConnectorLinePoints','addImageSourceCache','_imageShapeClipController','_formulaShapes','sheet.shape.object-list.panel','UniverSheetsUIPlugin','getActiveSheet','_baseTop','_shapeFormulaService','startArrow','shape-editor-ui.toolbar.quickStyles','attachRangeWithCoord','changeShapeType','REMOVE','HorizontalAlign','scene','flipX','attachPopupToObject','isConnectorShape','drawing-ui.objectListPanel.unlockHint','getImage','name','wrapStrategy','options','ShapeTextHyperLinkInfo','CURSOR_TYPE','getPresentation','trim','updateLinePoints','UniverSheetsDrawingUIPlugin','_getZoomRatio','vertical-center','_isStartConnectorPoint','setOnSavingEditorData','shape-editor-ui.arrange.front','visible','DRAWING','_drawingManagerService','canvas','blockExecuteWithoutPermission','Shape','763684sUjxMp','RENDER_CLASS_TYPE','getCurrentScrollState','remove$','custom','strokeWidth','_attachAdjustEvent','axisAlignSheetTransform','RemoveSheetCommand','panel','top-center','getScene','drawing-ui.objectListPanel.filterAll','cancelEditing','_shapeId','animationEnabled','distinctUntilChanged','SetSheetsShapeRotateCommand','_draw','ShapeArrowTypeEnum','_registerComponents','SetShapeDrawingDataCommand','sheets-shape-ui.ribbon.shape-format.arrange-backward','VIEW_MAIN_LEFT_TOP','drawing-ui.objectListPanel.empty','_drawingRenderService','_activeShapeInfo','CROSSHAIR','Disposable','offsetY','sheets-shape-contextual-ribbon','subUnitId','drawing-ui.objectListPanel.unlock','UniverDocsPlugin','drawing-ui.objectListPanel.filterHidden','parent','merge','sheets-shape-ui.shape-format.formula-ribbon-control','cos','presetId','getVisible','UniverSheetsMobileUIPlugin','drawing-ui.objectListPanel.title','UNIVER_SHEET','_executeConnectedRouteConnectionCommand','_currentConnectionTarget','cxnPointStroke','SheetPrintInterceptorService','sheets-shape-ui.editText','_drawRichTextLayer','transformByState','_contextService','cxnPointStrokeWidth','getDrawingSearch','onRendered','Large','_ribbonService','resolveShapeTextHyperLinkObject','sheets-shape-ui.permission.editErr','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','onReady','shape-editor-ui.toolbar.changeShape','subscribe','_renderWithCache','sheets-shape-format-font-family-menu','formulaPresentation','UniverDocsUIPlugin','ISheetClipboardService','createInternalEditorID','resolveShapeTextDocumentPageHeight','_handleConnectedEndpointMove','getActualSize','_getDrawingRect','relation','_adjName','Rect','jsx','applyPoint','keys','adjustValues','getImageSourceCache','enableObjectsEvent','_updateTransform','shapeKey','getSkeletonParam','_permissionService','1422IqtBxc','GROUP','getDrawingEditable','description','hidden','_formulaAnimation','computeConnectorRouteLayout','stopPropagation','extraProps','_menuManagerService','getShapeTextRect','drawing-ui.objectListPanel.moveForward','onCommandExecuted','prototype','end','getEditing','groupId','permissionPointUpdate$','lineType','memo','_handleFreeEndpointMove','changeStart$','4898430fThHJo','_findNearestConnectionSite','getTextModel','_lastEditingShapeKey','getFocusedUnit','_configService','_initPrinting','SELECTOR','_groupCopyPasteController','hideInfoPopup','getSheetId','sheet.shape.text.float-menu','editingParams$','getRealBound','prepareShapeTextDocumentData','_injector','discreteRangeToRange','RemoveSheetsShapeMutation','_imageIoService','next','_sheetPermissionCheckController','drawFormulaShapeAnimationLayers','622txOWns','adjHandleSize','getEndConnectInfo','getRenderUnitById','isEditing','transformVector2SceneCoord','getAutoFitPresentations','debounceRefreshControls','FormatPainterSessionService','VIEW_MAIN','_commandService','_generateCopyPasteMutations','oKey','drawing-ui.objectListPanel.search','intercept','ShapeQuickStyleGallery','normalizeShapeTextModel','Inject','height','SetDrawingArrangeCommand','removeLinePoints','viewportScrollX','_transformCalculateSrcRect','DocumentDataModel','_subUnitId','constructor','_shapeEditPanelVersion','UniverLicensePlugin','setPresentation','CustomCommandExecutionError','_sheetCanvasPopManagerService','startX','_isShouldShowDrawingShapeAdjust','getCurrentSkeleton','focusDrawing','length','engine','isLineShape','_attachConnectorObjectEvent','isDrawingObject','sheetTransform','_componentManager','disableShapeOption','close','open','order','undos','abs','_shapeUpdateListener','ShapeFloatingToolbarToggleFactory','setFillImage','getCurrentRangeDisable$','registerFeaturePasteHook','cxnIndex','resolveShapeTextEditorWrapStrategy','isStartConnectorPoint','refreshAdjustControls','sheets-shape-ui.flipVertical','initShapePopupMenu','getCurrentUnitOfType','refreshFormulaPresentation','_isHighlighted','_canEdit','sheet.operation.open-sheet-shape-format-panel','drawingType','resolveShapeTextHyperLinkAt','SHEET','_applyFormulaAutoFitSize','sheetViewStartColumn','computeConnectorResizeLayout','onSteady','syncExecuteCommand','ToggleSheetsShapeFlipCommand','DocEventManagerService','sheets-shape-ui.title','_generateChartSheetCopy','back','horizontal','sheets-shape-ui.ribbon.shape-format.arrange-front','MenuManagerPosition','sheets-shape-ui.ribbon.shape-format','ShapeTextFloatToolbar','sheet.shape.edit.panel','changing$','IRibbonService','_moveConnectorWithShape','registerDependencies','popup','getActiveViewportByCoord','_rerouteConnectorLine','UUID','save','_cxnIndex','_initPermission','clipByShape','map','_addShapeConnectorHandlerObjects','sheets-shape-ui.formatShape','clearAdjustControls','_initCommands','_handleConnectorPointerUp','_baseShapeLeft','ShapeTextRibbonControl','ShapeGroupEnum','Plugin','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','shape-adjust-point-','_currentScene','transformToAxisAlignPosition','_getScrollInfo','_clearControls','IUndoRedoService','BUTTON','_calculateFreeEndpointAngle','_completionFrame','delete','UniverRenderEnginePlugin','dispose','18472AzYOfJ','contentVerticalOffset','Circle','VIEW_MAIN_LEFT','ConnectorCoordinateTransform','image-clip-adjust-point-','_baseDrawingRect','params','getDrawingByParam','ShapePickerDropdown','_iconManager','scale','CopySheetCommand','getState','add','drawing-ui.objectListPanel.name','_baseLeft','preValue','formulaBinding','createShapeTextHyperLinkRegions','_registerDrawingMoveHandler','with','DRAWING_OBJECT_LAYER_INDEX','SolidFill','_handleConnectedEndpointPointerUp','getDrawingPoints','toStringTag','getConnectionRelation','_commandExecutedListener','_onSavingEditorData$','sheets-shape-ui.ribbon.shape-format.formula-control','OBJECT_LIST_FLOATING_SECTION_ID','reverse','resolveShapeContextualRibbonHostMode','plainShapeTextToDocumentData','_addShapeAdjustControl','Injector','isHitLine','SHAPE_TEXT','worldRect','asObservable','MoveUpIcon','reduce','_sheetSkeletonService','angle','_registerFocusChangeHandler','getMatrix','_instances','Path','_isDrawingShapePointDown','_hide','VIEW_MAIN_TOP','_getImageDrawingInfo','sheets-shape-ui.config','image','fontFamily','shapeModel','getBasicShapeRelation','sheets-shape-ui.flipHorizontal','_handleFreeEndpointPointerUp','shape-editor-ui.arrange.back','_permissions','sheets-shape-text-','SetSheetDrawingCommand','drawingId','_createCopyInfoByRange','_activeShapeAdjustPointList','ISheetDrawingService','lineShapeId','clear','size','LocaleService','worldPoint','setShapeProps','onload','_clearFocusedShape','EMPTY','COMMAND','_initialize','front','Image','_isStartAdjusting','setHighlighted','iterator','Documents','_createShape','_sheetDrawingService','DEFAULT_PASTE','shapeId','_baseShapeTop','SheetCanvasPopManagerService','isMainScene','normal','drawing-ui.objectListPanel.lock','shapeType','BooleanNumber','_initSheetChange','getUnitType','getTransformer','getShapeType','UpdateConnectorRelationCommand','prstGeomAdjValues','_connectorObjects','createControl$','Module','_getConnectPointInfo','PaintIcon','Transform','pluginName','getUnitId','setContextValue','sheets-shape-ui.shape-format.text-ribbon-control','FlipVerticalIcon','drawing-ui.objectListPanel.lockAll','_clearShapeConnectorHandlerObjects','ShapeTypeEnum','updateShapeFillImage','_clearShapeAdjustControls','default','getValue','text','resolveActiveShapeQuickStylePresetId','min','width','Vector2','changeEnd$','IPermissionService','ancestorTransform','color','sheets-shape-ui.shape-format.style-ribbon-control','getDrawingEffectBounds','_univerInstanceService','TRUE','getDrawingOrder','getObject','sheet.operation.open-shape-object-list-panel','DRAWING_IMAGE','point','ShapeTextFloatMenuRenderControllerBase','actualHeight','routeConnectorLineShape','_addControl','getConfig','_adjHandlerPointerMove','_baseShapeHeight','getSkeleton','version','drawing-ui.objectListPanel.nameInput','create','register','1136HphoiL','activateDrawingObject','connection-site-','insertGroupObject','symbol','TOP','startY','getShapeDataById','_highlightedSiteIndex','jsxs','Fragment','isInGroup','_loadShapePictureFill','WorksheetCopyPermission','resize','redo','getInverseCoord','FOCUSING_COMMON_DRAWINGS','_clearPopups','getParent','doc.image-clip.shape-picker.component','DocSelectionManagerService','_registerDrawingFocusChangeHandler','_registerOperations','OPERATION','fill','getUnit','_urlImageService','_getImagePrstGeom','createShapeFormulaDocument','left','packageName','src','doc','_setTransForm','targetShapeId','invert','localeService','object','ILayoutService','_baseHeight','components','_sheetInterceptorService','transform','UniverShapeEditorMobileUIPlugin','permissionCheckWithoutRange','SheetSkeletonService','getShapeQuickStylePreset','subscribeEvent','draw','UniverMobileUIPlugin','isRenderLinePointsMode','deriveStateFromActiveSheet$','None','COPY_TYPE','_closeShapeEditPanel','RIBBON','useState','DocumentViewModel','_getOrCreateShapeModel','_executeConnectionCommand','UpdateSheetsShapeDataMutation','getBatchUpdateOp','UniverDrawingPlugin'];_0x4bec=function(){return _0x6fd919;};return _0x4bec();}function kt(_0x16e347){const _0x92870c=_0xe5948a;let _0x4dd742=(0x0,t['useDependency'])(a[_0x92870c(0x3e7)]),_0x4bcfe7=(0x0,t['useDependency'])(i[_0x92870c(0x45f)]),{unitId:_0x30f38b,subUnitId:_0x3c3550,drawingId:_0x58369e,drawingType:_0xbadefd,shapeType:_0x1996fa}=_0x16e347,[_0x106794,_0x2f0ba4]=(0x0,b[_0x92870c(0x391)])(_0x16e347[_0x92870c(0x4a5)]),_0xb6f742=(0x0,b[_0x92870c(0x3ef)])(()=>(0x0,e['getTextStyle'])(_0x106794),[_0x106794]),_0x2ea5bf=(0x0,b[_0x92870c(0x3ef)])(()=>(0x0,e[_0x92870c(0x238)])(_0x106794),[_0x106794]);(0x0,b[_0x92870c(0x507)])(()=>{const _0x3b22b8=_0x92870c;let _0x180f08=_0x4dd742[_0x3b22b8(0x22c)](_0x24288e=>{const _0x3704bd=_0x3b22b8;if(_0x24288e['id']!==i[_0x3704bd(0x395)]['id'])return;let _0x4ec8fb=_0x4bcfe7[_0x3704bd(0x35f)](_0x30f38b,_0x3c3550,_0x58369e);_0x4ec8fb&&_0x2f0ba4(_0x4ec8fb);});return()=>_0x180f08[_0x3b22b8(0x2c1)]();},[_0x4dd742,_0x58369e,_0x4bcfe7,_0x3c3550,_0x30f38b]);let _0x19a59c=_0x1f7bf4=>{_0x2f0ba4(_0x34e40b=>({..._0x34e40b,..._0x1f7bf4}));},_0x3a50dc=_0x476303=>{const _0x51c6c2=_0x92870c;let _0x48ea79=(0x0,e['buildShapeTextDataUpdate'])(_0x106794,_0x476303);C(_0x4dd742,_0x30f38b,_0x3c3550,_0x58369e,{'oldShapeData':{'shapeText':_0x106794[_0x51c6c2(0x43e)]}},_0x48ea79),_0x19a59c(_0x48ea79);},_0x3e187e=(0x0,e[_0x92870c(0x198)])({'hostType':a[_0x92870c(0x3fe)]['UNIVER_SHEET'],'unitId':_0x30f38b,'subUnitId':_0x3c3550,'shapeId':_0x58369e,'shapeData':_0x106794,'onUpdateBinding':_0x32b933=>{let _0x50c31c={'formulaBinding':_0x32b933};C(_0x4dd742,_0x30f38b,_0x3c3550,_0x58369e,{'oldShapeData':{'formulaBinding':_0x106794['formulaBinding']}},_0x50c31c),_0x19a59c(_0x50c31c);}});return(0x0,m[_0x92870c(0x361)])(m[_0x92870c(0x362)],{'children':[(0x0,m[_0x92870c(0x216)])(e['ShapeFloatingToolbar'],{'canvasElement':_0x16e347[_0x92870c(0x4bd)],'shapeData':_0x106794,'shapeType':_0x1996fa,'textStyle':{'ff':n[_0x92870c(0x417)][_0x92870c(0x43e)][_0x92870c(0x2f9)],'fs':n[_0x92870c(0x417)]['shapeText'][_0x92870c(0x190)],'cl':{'rgb':n[_0x92870c(0x417)][_0x92870c(0x43e)][_0x92870c(0x342)]},..._0xb6f742},'textModel':_0x2ea5bf?{'ha':_0x2ea5bf['ha']??a[_0x92870c(0x1af)][_0x92870c(0x16b)],'va':_0x2ea5bf['va']??a[_0x92870c(0x45b)][_0x92870c(0x35d)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':n[_0x92870c(0x417)][_0x92870c(0x371)],'defaultGradientEndColor':n['ShapeDefaultConfig'][_0x92870c(0x4bc)],'defaultStrokeColor':n[_0x92870c(0x417)][_0x92870c(0x422)],'extensionGroups':_0x3e187e[_0x92870c(0x4d4)],'floatingObjectToolbarPosition':t[_0x92870c(0x47b)][_0x92870c(0x28e)],'onUpdateShapeData':(_0x5d2d22,_0x5970bb)=>{C(_0x4dd742,_0x30f38b,_0x3c3550,_0x58369e,_0x5d2d22,_0x5970bb),_0x5970bb&&_0x19a59c(_0x5970bb);},'onUpdateText':_0x3a50dc,'onOpenPanel':()=>{const _0x113cf1=_0x92870c;_0x4dd742[_0x113cf1(0x17f)](I['id'],{'unitId':_0x30f38b,'subUnitId':_0x3c3550,'drawingId':_0x58369e});},'onDelete':()=>{_0x4dd742['executeCommand'](c['RemoveSheetDrawingCommand']['id'],{'unitId':_0x30f38b,'drawings':[{'unitId':_0x30f38b,'subUnitId':_0x3c3550,'drawingId':_0x58369e,'drawingType':_0xbadefd}]});}}),_0x3e187e[_0x92870c(0x1d3)]]});}function At(_0xc24643){const _0x1886bd=_0xe5948a;return!!_0xc24643&&'axisAlignSheetTransform'in _0xc24643&&_0x1886bd(0x274)in _0xc24643;}const jt=(0x0,b[_0xe5948a(0x233)])(()=>{const _0x32abf4=_0xe5948a;let _0x2ce760=(0x0,t[_0x32abf4(0x4f2)])(V),_0xc6004=(0x0,t[_0x32abf4(0x4f2)])(i[_0x32abf4(0x45f)]),_0x470b77=(0x0,t[_0x32abf4(0x4f2)])(u['IDrawingManagerService']),_0x496591=(0x0,t[_0x32abf4(0x4f2)])(a[_0x32abf4(0x3e7)]),_0x49acdc=(0x0,t[_0x32abf4(0x4f2)])(t['UndoRedoGroupService']),_0x3854ef=(0x0,t[_0x32abf4(0x4f2)])(o[_0x32abf4(0x40d)]),_0x550878=(0x0,b[_0x32abf4(0x3ef)])(()=>({'getShapeModel':(_0x513345,_0x1fbbf0,_0x953e54)=>_0xc6004[_0x32abf4(0x3ae)](_0x513345,_0x1fbbf0,_0x953e54),'getShapeData':(_0x445b22,_0x18a754,_0x8cbb8e)=>_0xc6004[_0x32abf4(0x35f)](_0x445b22,_0x18a754,_0x8cbb8e),'getDrawingTransform':(_0x598295,_0x5c2aa9,_0x3782c7)=>{const _0xd2df1e=_0x32abf4;let _0xc61a73=_0x470b77[_0xd2df1e(0x2ca)]({'unitId':_0x598295,'subUnitId':_0x5c2aa9,'drawingId':_0x3782c7});return _0xc61a73==null?void 0x0:_0xc61a73[_0xd2df1e(0x383)];},'updateShapeText':({unitId:_0x2b14c9,subUnitId:_0x42b3be,shapeId:_0x1eb107,shapeText:_0x3e21c4,oldShapeText:_0x22761f,hostSize:_0x4f7313})=>{_0x49acdc['run'](_0x2b14c9,()=>{const _0x363d1e=_0x4ecd;var _0x509d0a;let _0x22e6a4=_0x496591[_0x363d1e(0x293)](S['id'],{'unitId':_0x2b14c9,'subUnitId':_0x42b3be,'shapeId':_0x1eb107,'shapeData':{'shapeText':_0x3e21c4},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x22761f}}});if(!_0x22e6a4||!_0x4f7313)return _0x22e6a4;let _0x224e69=_0x470b77[_0x363d1e(0x2ca)]({'unitId':_0x2b14c9,'subUnitId':_0x42b3be,'drawingId':_0x1eb107}),_0x1cca78=_0x224e69==null?void 0x0:_0x224e69['transform'];if(!At(_0x224e69)||!_0x1cca78)return!0x1;let _0xc36c96={..._0x1cca78,'width':_0x4f7313[_0x363d1e(0x33d)],'height':_0x4f7313[_0x363d1e(0x25e)]},_0x509f06=(_0x509d0a=_0x3854ef[_0x363d1e(0x24f)](_0x2b14c9))==null||(_0x509d0a=_0x509d0a[_0x363d1e(0x2d7)](l[_0x363d1e(0x433)])['getSkeletonParam'](_0x42b3be))==null?void 0x0:_0x509d0a['skeleton'];return _0x496591[_0x363d1e(0x293)](c[_0x363d1e(0x301)]['id'],{'unitId':_0x2b14c9,'drawings':[{..._0x224e69,'transform':_0xc36c96,'sheetTransform':_0x509f06?(0x0,c[_0x363d1e(0x474)])(_0xc36c96,_0x509f06)??_0x224e69[_0x363d1e(0x274)]:_0x224e69[_0x363d1e(0x274)],'axisAlignSheetTransform':_0x509f06?(0x0,c[_0x363d1e(0x2b8)])(_0xc36c96,_0x509f06)??_0x224e69[_0x363d1e(0x1d1)]:_0x224e69[_0x363d1e(0x1d1)]}]});});},'updateHostSize':({unitId:_0x2267a7,subUnitId:_0x421d18,shapeId:_0x349e99,width:_0x48e88a,height:_0x21fae7})=>{const _0x540f08=_0x32abf4;var _0x437ad3;let _0x45c6f4=_0x470b77[_0x540f08(0x2ca)]({'unitId':_0x2267a7,'subUnitId':_0x421d18,'drawingId':_0x349e99}),_0x2e8c0c=_0x45c6f4==null?void 0x0:_0x45c6f4['transform'];if(!At(_0x45c6f4)||!_0x2e8c0c)return;let _0x4bed45={..._0x2e8c0c,'width':_0x48e88a,'height':_0x21fae7},_0x25d688=(_0x437ad3=_0x3854ef['getRenderUnitById'](_0x2267a7))==null||(_0x437ad3=_0x437ad3[_0x540f08(0x2d7)](l[_0x540f08(0x433)])[_0x540f08(0x21e)](_0x421d18))==null?void 0x0:_0x437ad3[_0x540f08(0x424)],_0x47d1a5=_0x25d688?(0x0,c[_0x540f08(0x474)])(_0x4bed45,_0x25d688)??_0x45c6f4[_0x540f08(0x274)]:_0x45c6f4['sheetTransform'],_0x4e4225=_0x25d688?(0x0,c['transformToAxisAlignPosition'])(_0x4bed45,_0x25d688)??_0x45c6f4[_0x540f08(0x1d1)]:_0x45c6f4['axisAlignSheetTransform'];_0x496591[_0x540f08(0x17f)](c[_0x540f08(0x301)]['id'],{'unitId':_0x2267a7,'drawings':[{..._0x45c6f4,'transform':_0x4bed45,'sheetTransform':_0x47d1a5,'axisAlignSheetTransform':_0x4e4225}]});},'allowHostSizeShrink':({unitId:_0x4ffb4a,subUnitId:_0x17e292,shapeId:_0x3780d1})=>(0x0,e['shouldAllowShapeTextEditorHostSizeShrink'])(_0xc6004[_0x32abf4(0x35f)](_0x4ffb4a,_0x17e292,_0x3780d1)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x496591,_0x470b77,_0x3854ef,_0xc6004,_0x49acdc]),_0xe02bed=(0x0,b[_0x32abf4(0x3ef)])(()=>({'viewportKeys':{'main':o[_0x32abf4(0x403)][_0x32abf4(0x255)],'leftTop':o['SHEET_VIEWPORT_KEY'][_0x32abf4(0x1e1)],'top':o['SHEET_VIEWPORT_KEY'][_0x32abf4(0x2f5)],'left':o[_0x32abf4(0x403)][_0x32abf4(0x2c5)]},'getSkeleton':(_0x35dcc3,_0x5d8508)=>{const _0x1be636=_0x32abf4;var _0x2b233b;return((_0x2b233b=_0x35dcc3['with'](l[_0x1be636(0x433)])[_0x1be636(0x21e)](_0x5d8508['subUnitId']))==null?void 0x0:_0x2b233b[_0x1be636(0x424)])??null;}}),[]);return(0x0,m['jsx'])(e[_0x32abf4(0x4c9)],{'adapter':_0x550878,'editingService':_0x2ce760,'editorUnitId':oe,'positionOptions':_0xe02bed});});let Mt=class extends a[_0xe5948a(0x1e6)]{constructor(_0x129804,_0x38cb2a){const _0x25899f=_0xe5948a;super(),this[_0x25899f(0x275)]=_0x129804,this['_iconManager']=_0x38cb2a,this['_registerIcons'](),this[_0x25899f(0x1de)]();}[_0xe5948a(0x471)](){const _0x3779bc=_0xe5948a;this[_0x3779bc(0x2cc)]['has'](_0x3779bc(0x3a5))||this[_0x3779bc(0x160)](this[_0x3779bc(0x2cc)][_0x3779bc(0x357)]({'ObjectLayersIcon':y['ObjectLayersIcon']})),this[_0x3779bc(0x2cc)][_0x3779bc(0x43b)](_0x3779bc(0x511))||this[_0x3779bc(0x160)](this[_0x3779bc(0x2cc)][_0x3779bc(0x357)]({'FlipHorizontalIcon':y[_0x3779bc(0x511)]})),this['_iconManager']['has'](_0x3779bc(0x332))||this[_0x3779bc(0x160)](this[_0x3779bc(0x2cc)][_0x3779bc(0x357)]({'FlipVerticalIcon':y['FlipVerticalIcon']})),this['_iconManager'][_0x3779bc(0x43b)](_0x3779bc(0x516))||this[_0x3779bc(0x160)](this[_0x3779bc(0x2cc)]['register']({'BottomIcon':y['BottomIcon']})),this[_0x3779bc(0x2cc)][_0x3779bc(0x43b)](_0x3779bc(0x501))||this[_0x3779bc(0x160)](this[_0x3779bc(0x2cc)]['register']({'MoveDownIcon':y[_0x3779bc(0x501)]})),this[_0x3779bc(0x2cc)][_0x3779bc(0x43b)]('MoveUpIcon')||this['disposeWithMe'](this[_0x3779bc(0x2cc)][_0x3779bc(0x357)]({'MoveUpIcon':y[_0x3779bc(0x2eb)]})),this['_iconManager'][_0x3779bc(0x43b)](_0x3779bc(0x3f6))||this['disposeWithMe'](this[_0x3779bc(0x2cc)]['register']({'ShapeFormatSettingIcon':y[_0x3779bc(0x3f6)]})),this[_0x3779bc(0x2cc)]['has']('TopmostIcon')||this['disposeWithMe'](this['_iconManager']['register']({'TopmostIcon':y[_0x3779bc(0x3ce)]}));}[_0xe5948a(0x1de)](){const _0x444cee=_0xe5948a;this[_0x444cee(0x160)](this[_0x444cee(0x275)]['register'](P,Dt)),this['disposeWithMe'](this[_0x444cee(0x275)][_0x444cee(0x357)](F,mt)),this[_0x444cee(0x160)](this[_0x444cee(0x275)][_0x444cee(0x357)](fe,ve)),this['disposeWithMe'](this[_0x444cee(0x275)]['register'](pe,he)),this['_componentManager']['hasDefault'](f['IMAGE_CLIP_SHAPE_PICKER_COMPONENT'])||this[_0x444cee(0x160)](this['_componentManager'][_0x444cee(0x357)](f[_0x444cee(0x205)],_e)),this[_0x444cee(0x160)](this[_0x444cee(0x275)][_0x444cee(0x357)](ie,Ot)),this['disposeWithMe'](this[_0x444cee(0x275)][_0x444cee(0x357)](je,Pe)),this[_0x444cee(0x160)](this[_0x444cee(0x275)]['register'](Ae,Fe)),this[_0x444cee(0x160)](this['_componentManager'][_0x444cee(0x357)](Me,Ie)),this[_0x444cee(0x160)](this[_0x444cee(0x275)][_0x444cee(0x357)](Ne,Le)),this['disposeWithMe'](this[_0x444cee(0x275)][_0x444cee(0x357)](se,e[_0x444cee(0x29d)])),this[_0x444cee(0x160)](this[_0x444cee(0x275)][_0x444cee(0x357)](_0x444cee(0x458),jt));}};Mt=A([k(0x0,(0x0,a[_0xe5948a(0x25d)])(t[_0xe5948a(0x3c6)])),k(0x1,(0x0,a['Inject'])(t['IconManager']))],Mt);let Nt=class extends a[_0xe5948a(0x1e6)]{constructor(_0x2d123a,_0x4f94ed,_0x4c6712,_0x1c623e,_0x81d0af,_0x391581,_0x51e443,_0x12d005,_0x28cbb0){const _0x149062=_0xe5948a;super();let _0x43199a=_0x16b6e6=>{const _0x307ecd=_0x4ecd;var _0x1b7a5a,_0x5b0689;return(((_0x1b7a5a=_0x12d005['getPermissionPoint'](new s[(_0x307ecd(0x4cd))](_0x16b6e6[_0x307ecd(0x40e)])['id']))==null?void 0x0:_0x1b7a5a[_0x307ecd(0x446)])??!0x0)&&(((_0x5b0689=_0x12d005[_0x307ecd(0x4c1)](new s[(_0x307ecd(0x4f6))](_0x16b6e6[_0x307ecd(0x40e)],_0x16b6e6[_0x307ecd(0x1e9)])['id']))==null?void 0x0:_0x5b0689['value'])??!0x0);},_0x583d9d=_0x5a5108=>_0x5a5108[_0x149062(0x31a)]&&_0x43199a(_0x5a5108)?_0x4c6712[_0x149062(0x35f)](_0x5a5108[_0x149062(0x40e)],_0x5a5108['subUnitId'],_0x5a5108[_0x149062(0x31a)])??null:null,_0x54a33d=()=>{const _0x1cda15=_0x149062;let _0x5f0a46=_0x81d0af[_0x1cda15(0x4ee)](),_0x80ccfb=_0x5f0a46['length']===0x1?_0x5f0a46[0x0]:null;return(_0x80ccfb==null?void 0x0:_0x80ccfb[_0x1cda15(0x28c)])===a['DrawingTypeEnum']['DRAWING_SHAPE']&&_0x80ccfb[_0x1cda15(0x40e)]===_0x2d123a['unitId']?{'unitId':_0x80ccfb['unitId'],'subUnitId':_0x80ccfb['subUnitId'],'shapeId':_0x80ccfb['drawingId']}:null;};this['disposeWithMe']((0x0,e['registerShapeFormatPainter'])(_0x2d123a,_0x4f94ed,{'changes$':(0x0,d[_0x149062(0x1ee)])(_0x81d0af[_0x149062(0x4e1)],_0x1c623e[_0x149062(0x242)],_0x12d005[_0x149062(0x231)]),'isActive':()=>{const _0x1a8f2d=_0x149062;var _0x112a57;return((_0x112a57=_0x391581[_0x1a8f2d(0x23a)]())==null?void 0x0:_0x112a57[_0x1a8f2d(0x32f)]())===_0x2d123a[_0x1a8f2d(0x40e)]&&!_0x51e443[_0x1a8f2d(0x3c3)](a[_0x1a8f2d(0x431)])&&_0x81d0af[_0x1a8f2d(0x4ee)]()['some'](_0x15a56c=>_0x15a56c[_0x1a8f2d(0x40e)]===_0x2d123a[_0x1a8f2d(0x40e)]);},'getSelectedTarget':_0x54a33d,'getSource':()=>{let _0x3df080=_0x54a33d();return _0x3df080?_0x583d9d(_0x3df080):null;},'getTarget':_0x2aeed2=>{const _0x27cc56=_0x149062;let _0x570dcf=_0x2d123a['scene']['pick'](new o[(_0x27cc56(0x33e))](_0x2aeed2[_0x27cc56(0x175)],_0x2aeed2[_0x27cc56(0x1e7)]));if(!(_0x570dcf instanceof D))return null;let _0xfeff={'unitId':_0x2d123a[_0x27cc56(0x40e)],'subUnitId':_0x570dcf['subUnitId'],'shapeId':_0x570dcf[_0x27cc56(0x31a)]};return _0x43199a(_0xfeff)?_0xfeff:null;},'getShape':_0x583d9d,'update':(_0x5d0464,_0xd6a643,_0x3817ce)=>_0x28cbb0[_0x149062(0x17f)](S['id'],{..._0x5d0464,'shapeData':_0x3817ce,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0xd6a643}})}));}};Nt=A([k(0x1,(0x0,a[_0xe5948a(0x25d)])(t[_0xe5948a(0x254)])),k(0x2,(0x0,a[_0xe5948a(0x25d)])(i[_0xe5948a(0x45f)])),k(0x3,(0x0,a[_0xe5948a(0x25d)])(V)),k(0x4,u[_0xe5948a(0x3f0)]),k(0x5,a[_0xe5948a(0x402)]),k(0x6,a[_0xe5948a(0x176)]),k(0x7,a[_0xe5948a(0x340)]),k(0x8,a[_0xe5948a(0x3e7)])],Nt);const Pt=_0xe5948a(0x1e8);let Z=class extends a['Disposable']{constructor(_0x12dbca,_0x45350c,_0x495932,_0x19803d,_0x28976c,_0x185678){const _0x68f770=_0xe5948a;super(),this[_0x68f770(0x229)]=_0x12dbca,this['_ribbonService']=_0x45350c,this[_0x68f770(0x1c6)]=_0x495932,this['_univerInstanceService']=_0x19803d,this[_0x68f770(0x505)]=_0x28976c,this['_shapeFloatingToolbarService']=_0x185678,E(this,'_visible',!0x1),this[_0x68f770(0x229)]['mergeMenu'](at),this[_0x68f770(0x160)]((0x0,a[_0x68f770(0x42c)])(this[_0x68f770(0x1c6)][_0x68f770(0x4e1)]['subscribe'](()=>this[_0x68f770(0x454)]()))),this[_0x68f770(0x454)]();}[_0xe5948a(0x2c1)](){const _0x1bdb23=_0xe5948a;this['_shapeFloatingToolbarService'][_0x1bdb23(0x499)](!0x1,Pt),this[_0x1bdb23(0x2f4)](),super['dispose']();}[_0xe5948a(0x454)](){const _0x399ced=_0xe5948a;var _0x12c08a;let _0x1b30bb=this[_0x399ced(0x1c6)][_0x399ced(0x4ee)](),_0x2d6eb6=_0x1b30bb[_0x399ced(0x26f)]===0x1?_0x1b30bb[0x0]:void 0x0;if((_0x2d6eb6==null?void 0x0:_0x2d6eb6[_0x399ced(0x28c)])!==a[_0x399ced(0x41e)][_0x399ced(0x48f)]||this[_0x399ced(0x345)]['getUnitType'](_0x2d6eb6[_0x399ced(0x40e)])!==a[_0x399ced(0x3fe)][_0x399ced(0x1f5)]){this['_shapeFloatingToolbarService'][_0x399ced(0x499)](!0x1,Pt),this[_0x399ced(0x2f4)]();return;}let _0x5d3cb7=(_0x12c08a=this[_0x399ced(0x505)][_0x399ced(0x24f)](_0x2d6eb6[_0x399ced(0x40e)]))==null?void 0x0:_0x12c08a[_0x399ced(0x270)]['getCanvasElement'](),_0x5eaa2f=(0x0,e[_0x399ced(0x2e3)])(_0x5d3cb7)==='isolated';this['_shapeFloatingToolbarService'][_0x399ced(0x499)](_0x5eaa2f,Pt),_0x5eaa2f?this[_0x399ced(0x2f4)]():this['_visible']||(this[_0x399ced(0x187)]=!0x0,this['_ribbonService'][_0x399ced(0x3bb)](ae,{'activate':!0x0}));}[_0xe5948a(0x2f4)](){const _0x6a150a=_0xe5948a;this['_visible']&&(this[_0x6a150a(0x187)]=!0x1,this[_0x6a150a(0x202)]['hideContextualTab'](ae),this[_0x6a150a(0x202)][_0x6a150a(0x4b4)]([]));}};Z=A([k(0x0,t[_0xe5948a(0x491)]),k(0x1,t[_0xe5948a(0x2a0)]),k(0x2,u['IDrawingManagerService']),k(0x3,a['IUniverInstanceService']),k(0x4,o['IRenderManagerService']),k(0x5,(0x0,a[_0xe5948a(0x25d)])(e['ShapeFloatingToolbarService']))],Z);let Ft=class extends e[_0xe5948a(0x34c)]{constructor(_0x18077e,_0x5dc959,_0x1473cd,_0xc7e8e2,_0x5d8280,_0x31b6af,_0x375f3d,_0x136799,_0x50e0ab,_0x2ff8bf){super(_0x18077e,_0x5dc959,_0x1473cd,_0xc7e8e2,_0x5d8280,_0x31b6af,_0x375f3d,_0x136799,_0x50e0ab,_0x2ff8bf,{'componentKey':se,'editorUnitId':oe});}};Ft=A([k(0x1,(0x0,a[_0xe5948a(0x25d)])(g[_0xe5948a(0x36d)])),k(0x2,(0x0,a[_0xe5948a(0x25d)])(_['DocCanvasPopManagerService'])),k(0x3,(0x0,a[_0xe5948a(0x25d)])(_[_0xe5948a(0x3fc)])),k(0x4,a[_0xe5948a(0x3e7)]),k(0x5,(0x0,a[_0xe5948a(0x25d)])(_[_0xe5948a(0x295)])),k(0x6,(0x0,a[_0xe5948a(0x25d)])(e[_0xe5948a(0x4f4)])),k(0x7,(0x0,a[_0xe5948a(0x25d)])(g['DocInterceptorService'])),k(0x8,(0x0,a[_0xe5948a(0x25d)])(_[_0xe5948a(0x410)])),k(0x9,(0x0,a[_0xe5948a(0x25d)])(V))],Ft);let It=class extends e[_0xe5948a(0x492)]{constructor(_0x54be4,_0x495adf,_0x398990,_0x40f5c2,_0x567049){const _0x424aed=_0xe5948a;super(_0x54be4,_0x495adf,{'editing$':_0x398990[_0x424aed(0x242)],'resolve':_0x5becbd=>{const _0x62b927=_0x424aed;var _0x46b9d8,_0x30f398,_0x558469;let _0x1bf7f4=new o[(_0x62b927(0x33e))](_0x5becbd[_0x62b927(0x175)],_0x5becbd[_0x62b927(0x1e7)]),_0x168297=((_0x46b9d8=_0x54be4[_0x62b927(0x1b0)][_0x62b927(0x2a4)](_0x1bf7f4))==null?void 0x0:_0x46b9d8[_0x62b927(0x251)](_0x1bf7f4))??_0x1bf7f4,_0x13d670=(0x0,e[_0x62b927(0x203)])(_0x54be4[_0x62b927(0x1b0)][_0x62b927(0x49c)](_0x1bf7f4)??null,_0x168297);if(!(_0x13d670 instanceof D))return null;let _0x23a5fb=_0x13d670['resolveHyperLinkAt'](_0x168297);if(!_0x23a5fb)return null;let _0x2e21f4=_0x13d670,_0x53cdaa={'componentKey':e[_0x62b927(0x1b9)][_0x62b927(0x418)],'direction':_0x62b927(0x1d4),'offset':[0x0,0xa],'onClickOutside':()=>_0x495adf[_0x62b927(0x23f)]()};return{'object':_0x13d670,'info':{..._0x23a5fb,'unitId':_0x13d670[_0x62b927(0x40e)],'subUnitId':_0x13d670['subUnitId'],'shapeKey':_0x13d670[_0x62b927(0x258)],'readonly':!0x0,'copyable':((_0x30f398=_0x567049[_0x62b927(0x4c1)](new s[(_0x62b927(0x503))](_0x13d670[_0x62b927(0x40e)])['id']))==null?void 0x0:_0x30f398[_0x62b927(0x446)])!==!0x1&&((_0x558469=_0x567049['getPermissionPoint'](new s['WorksheetCopyPermission'](_0x13d670[_0x62b927(0x40e)],_0x13d670[_0x62b927(0x1e9)])['id']))==null?void 0x0:_0x558469['value'])!==!0x1},'attachPopup':()=>_0x40f5c2[_0x62b927(0x1b2)](_0x2e21f4,_0x53cdaa)};}}),this[_0x424aed(0x160)](_0x54be4['unit'][_0x424aed(0x4c6)]['subscribe'](()=>this[_0x424aed(0x307)]()));}};It=A([k(0x1,(0x0,a[_0xe5948a(0x25d)])(e[_0xe5948a(0x4f4)])),k(0x2,(0x0,a[_0xe5948a(0x25d)])(V)),k(0x3,(0x0,a[_0xe5948a(0x25d)])(l[_0xe5948a(0x31c)])),k(0x4,a[_0xe5948a(0x340)])],It);let Q=class extends a[_0xe5948a(0x1e6)]{constructor(_0x24686f,_0x5c71be,_0x1c2f18,_0x531459,_0x3df418,_0x5b1088,_0x116cca,_0x47331e,_0x45563e,_0x11f311,_0x59f757){const _0x46844d=_0xe5948a;super(),this[_0x46844d(0x345)]=_0x24686f,this[_0x46844d(0x4b7)]=_0x5c71be,this[_0x46844d(0x229)]=_0x1c2f18,this[_0x46844d(0x4f0)]=_0x531459,this[_0x46844d(0x3dc)]=_0x3df418,this['_commandService']=_0x5b1088,this[_0x46844d(0x1c6)]=_0x116cca,this['_sheetCanvasPopManagerService']=_0x47331e,this[_0x46844d(0x1fd)]=_0x45563e,this[_0x46844d(0x505)]=_0x11f311,this[_0x46844d(0x453)]=_0x59f757,E(this,_0x46844d(0x40c),null),E(this,'_activeShapeInfo',null),E(this,'_isOpenedShapeEditPanel',!0x1),E(this,_0x46844d(0x266),0x0),E(this,'_shapePopupMenuDisposable',null),E(this,_0x46844d(0x3d1),[]),this[_0x46844d(0x17b)](),this[_0x46844d(0x160)](this[_0x46844d(0x345)]['getCurrentTypeOfUnit$'](a[_0x46844d(0x3fe)][_0x46844d(0x1f5)])[_0x46844d(0x208)](_0x125818=>{const _0x424763=_0x46844d;if(!_0x125818){var _0x5f5df1;(_0x5f5df1=this[_0x424763(0x40c)])==null||_0x5f5df1[_0x424763(0x2c1)]();}})),this[_0x46844d(0x36f)](),this[_0x46844d(0x286)](),this[_0x46844d(0x160)](this[_0x46844d(0x453)][_0x46844d(0x242)][_0x46844d(0x208)](_0x278a76=>{const _0x38cd60=_0x46844d;_0x278a76&&this[_0x38cd60(0x36a)]();}));}[_0xe5948a(0x17b)](){const _0x22ec50=_0xe5948a;this[_0x22ec50(0x229)]['mergeMenu'](st);}['initShapePopupMenu'](){const _0x6b273f=_0xe5948a;this['_shapePopupMenuDisposable']||=this[_0x6b273f(0x160)]((0x0,e[_0x6b273f(0x3fb)])(this[_0x6b273f(0x505)],a[_0x6b273f(0x3fe)][_0x6b273f(0x1f5)],_0x1e218a=>this[_0x6b273f(0x4b0)](_0x1e218a)));}[_0xe5948a(0x438)](_0x177e46,_0x1966c3,_0x49c0c9){const _0x817813=_0xe5948a;let _0x52e1ed=this['_sheetsShapeService'][_0x817813(0x493)](_0x177e46,_0x1966c3,_0x49c0c9),_0x21cdae=this[_0x817813(0x4f0)]['getShapeDataById'](_0x177e46,_0x1966c3,_0x49c0c9);return _0x52e1ed!==void 0x0&&_0x21cdae!==void 0x0?{'shapeData':_0x21cdae,'shapeId':_0x49c0c9,'shapeType':_0x52e1ed,'unitId':_0x177e46,'subUnitId':_0x1966c3,'version':this[_0x817813(0x266)],'disableShapeOption':!0x1}:null;}[_0xe5948a(0x36a)](){const _0x13a591=_0xe5948a;this[_0x13a591(0x3d1)]['forEach'](_0x153318=>_0x153318[_0x13a591(0x2c1)]()),this[_0x13a591(0x3d1)]['length']=0x0;}[_0xe5948a(0x4b0)](_0x495ad2){const _0x1b3a2c=_0xe5948a;let _0xb8477c=new a[(_0x1b3a2c(0x4dc))]();return _0xb8477c[_0x1b3a2c(0x2d0)](_0x495ad2[_0x1b3a2c(0x329)][_0x1b3a2c(0x208)](()=>{const _0x50e46c=_0x1b3a2c;let _0x1f1048=_0x495ad2['getSelectedObjectMap']();if(this['_clearPopups'](),this[_0x50e46c(0x518)]||_0x1f1048[_0x50e46c(0x308)]>0x1)return;let _0x4812bf=_0x1f1048[_0x50e46c(0x3e3)]()['next']()['value'];if(!_0x4812bf)return;let _0x14ca46=this[_0x50e46c(0x1c6)][_0x50e46c(0x41d)](_0x4812bf[_0x50e46c(0x258)]);if(!_0x14ca46||_0x14ca46[_0x50e46c(0x28c)]!==a['DrawingTypeEnum'][_0x50e46c(0x48f)])return;let {unitId:_0x478cf0,subUnitId:_0x54330c,drawingId:_0x33d295,drawingType:_0x486c03}=_0x14ca46,_0x339992=this[_0x50e46c(0x438)](_0x478cf0,_0x54330c,_0x33d295);if(!_0x339992)return;this['_contextService']['setContextValue'](a[_0x50e46c(0x369)],!0x0);let _0x2b2ba6=this[_0x50e46c(0x505)][_0x50e46c(0x24f)](_0x478cf0),_0x2160a1=((_0x2b2ba6==null?void 0x0:_0x2b2ba6[_0x50e46c(0x31d)])===!0x1?_0x2b2ba6[_0x50e46c(0x2d7)](l[_0x50e46c(0x31c)]):this[_0x50e46c(0x26a)])[_0x50e46c(0x1b2)](_0x4812bf,{'componentKey':ie,'direction':_0x50e46c(0x1c0),'offset':[0x0,e[_0x50e46c(0x50d)]],'extraProps':{'unitId':_0x478cf0,'subUnitId':_0x54330c,'drawingId':_0x33d295,'drawingType':_0x486c03,'shapeType':_0x339992[_0x50e46c(0x320)],'shapeData':_0x339992[_0x50e46c(0x4a5)]}});this[_0x50e46c(0x3d1)][_0x50e46c(0x488)](this['disposeWithMe'](_0x2160a1)),this['_drawingManagerService']['getFocusDrawings']()['find'](_0x13504a=>_0x13504a['unitId']===_0x478cf0&&_0x13504a[_0x50e46c(0x1e9)]===_0x54330c&&_0x13504a[_0x50e46c(0x302)]===_0x33d295)||this['_drawingManagerService'][_0x50e46c(0x26e)]([{'unitId':_0x478cf0,'subUnitId':_0x54330c,'drawingId':_0x33d295}]);})),_0xb8477c[_0x1b3a2c(0x2d0)](_0x495ad2[_0x1b3a2c(0x4fb)][_0x1b3a2c(0x208)](()=>{const _0x49bf29=_0x1b3a2c;this[_0x49bf29(0x36a)](),this[_0x49bf29(0x1fd)]['setContextValue'](a[_0x49bf29(0x369)],!0x1),this[_0x49bf29(0x1c6)][_0x49bf29(0x26e)](null);})),_0xb8477c[_0x1b3a2c(0x2d0)](_0x495ad2[_0x1b3a2c(0x29f)][_0x1b3a2c(0x208)](()=>{const _0x5f1798=_0x1b3a2c;this[_0x5f1798(0x36a)]();})),_0xb8477c[_0x1b3a2c(0x2d0)](_0x495ad2['changeStart$'][_0x1b3a2c(0x208)](()=>{const _0x30baa2=_0x1b3a2c;this[_0x30baa2(0x36a)]();})),(0x0,a[_0x1b3a2c(0x42c)])(()=>{const _0x41744e=_0x1b3a2c;_0xb8477c['dispose'](),this[_0x41744e(0x36a)]();});}[_0xe5948a(0x36f)](){const _0x305a02=_0xe5948a;this[_0x305a02(0x160)](this[_0x305a02(0x256)][_0x305a02(0x22c)](_0x1c07c8=>{const _0x15c557=_0x305a02;if(_0x1c07c8['id']===I['id']){let {unitId:_0x3ea4d0,subUnitId:_0x1e547c,drawingId:_0x55c6e2}=_0x1c07c8[_0x15c557(0x2c9)];this[_0x15c557(0x266)]+=0x1,this[_0x15c557(0x1e4)]=this[_0x15c557(0x438)](_0x3ea4d0,_0x1e547c,_0x55c6e2),this[_0x15c557(0x36a)](),this[_0x15c557(0x47e)]();}if(_0x1c07c8['id']===Tt['id']&&(this[_0x15c557(0x1e4)]=null,this[_0x15c557(0x38f)]()),_0x1c07c8['id']===i['UpdateSheetsShapeDataMutation']['id']){let {unitId:_0x1cea34,subUnitId:_0x55a01f,shapeId:_0x3338a1}=_0x1c07c8['params'];if(this['_activeShapeInfo']&&this[_0x15c557(0x1e4)]['shapeId']===_0x3338a1){let _0x54aec6=this['_getShapeInfo'](_0x1cea34,_0x55a01f,_0x3338a1);_0x54aec6&&(this[_0x15c557(0x266)]+=0x1,_0x54aec6['version']=this['_shapeEditPanelVersion'],this[_0x15c557(0x1e4)]=_0x54aec6,this[_0x15c557(0x518)]&&this['_openShapeEditPanel']());}}})),this[_0x305a02(0x160)](this[_0x305a02(0x1c6)][_0x305a02(0x4e1)][_0x305a02(0x208)](_0x46a96a=>{const _0x503b3f=_0x305a02;if(this[_0x503b3f(0x518)]===!0x1)return;if(_0x46a96a[_0x503b3f(0x26f)]===0x0){this[_0x503b3f(0x1e4)]=null,this[_0x503b3f(0x38f)]();return;}if(_0x46a96a[_0x503b3f(0x26f)]===0x1&&_0x46a96a[0x0]['drawingType']===a[_0x503b3f(0x41e)][_0x503b3f(0x48f)]&&(this['_shapeEditPanelVersion']+=0x1,this[_0x503b3f(0x1e4)]=this[_0x503b3f(0x438)](_0x46a96a[0x0]['unitId'],_0x46a96a[0x0][_0x503b3f(0x1e9)],_0x46a96a[0x0][_0x503b3f(0x302)]),this[_0x503b3f(0x1e4)])){this[_0x503b3f(0x47e)]();return;}let _0x1ac8ce=_0x46a96a['filter'](_0x6adf21=>_0x6adf21[_0x503b3f(0x28c)]===a[_0x503b3f(0x41e)][_0x503b3f(0x48f)]);if(_0x46a96a[_0x503b3f(0x26f)]>0x1&&_0x1ac8ce[_0x503b3f(0x26f)]===_0x46a96a[_0x503b3f(0x26f)]){if(this[_0x503b3f(0x266)]+=0x1,this[_0x503b3f(0x1e4)]=this[_0x503b3f(0x438)](_0x46a96a[0x0][_0x503b3f(0x40e)],_0x46a96a[0x0][_0x503b3f(0x1e9)],_0x46a96a[0x0][_0x503b3f(0x302)]),this[_0x503b3f(0x1e4)]){this['_openShapeEditPanel']();return;}}else{if(this[_0x503b3f(0x266)]+=0x1,this[_0x503b3f(0x1e4)]=this[_0x503b3f(0x438)](_0x46a96a[0x0][_0x503b3f(0x40e)],_0x46a96a[0x0][_0x503b3f(0x1e9)],_0x46a96a[0x0][_0x503b3f(0x302)]),this['_activeShapeInfo']){this[_0x503b3f(0x1e4)][_0x503b3f(0x276)]=!0x0,this[_0x503b3f(0x47e)]();return;}}this[_0x503b3f(0x38f)]();}));}[_0xe5948a(0x47e)](){const _0x576ffc=_0xe5948a;this[_0x576ffc(0x1e4)]&&(this[_0x576ffc(0x40c)]=this[_0x576ffc(0x4b7)][_0x576ffc(0x278)]({'id':P,'header':{'title':this[_0x576ffc(0x3dc)]['t'](_0x576ffc(0x2ad))},'width':0x184,'children':{'label':P,...this[_0x576ffc(0x1e4)]},'onClose':()=>{const _0x39bc8f=_0x576ffc;this[_0x39bc8f(0x1c6)][_0x39bc8f(0x26e)](null),this[_0x39bc8f(0x1fd)][_0x39bc8f(0x330)](a['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x39bc8f(0x40c)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}['_closeShapeEditPanel'](){const _0x2af919=_0xe5948a;this['_isOpenedShapeEditPanel']=!0x1,this[_0x2af919(0x4b7)][_0x2af919(0x277)](P),this['_sidebarDisposable']=null,this[_0x2af919(0x1fd)][_0x2af919(0x330)](a[_0x2af919(0x369)],!0x1),this[_0x2af919(0x1c6)][_0x2af919(0x26e)](null);}};Q=A([k(0x0,a['IUniverInstanceService']),k(0x1,(0x0,a[_0xe5948a(0x25d)])(t[_0xe5948a(0x3f1)])),k(0x2,t['IMenuManagerService']),k(0x3,(0x0,a['Inject'])(i[_0xe5948a(0x45f)])),k(0x4,(0x0,a['Inject'])(a['LocaleService'])),k(0x5,a['ICommandService']),k(0x6,u['IDrawingManagerService']),k(0x7,(0x0,a[_0xe5948a(0x25d)])(l[_0xe5948a(0x31c)])),k(0x8,a[_0xe5948a(0x176)]),k(0x9,o['IRenderManagerService']),k(0xa,(0x0,a[_0xe5948a(0x25d)])(V))],Q);let $=class extends a['Plugin']{constructor(_0x334955=ft,_0x43e68,_0x39d86a,_0x29c6c0,_0x2fdc3c){const _0x14cde3=_0xe5948a;super(),this[_0x14cde3(0x15e)]=_0x334955,this[_0x14cde3(0x245)]=_0x43e68,this[_0x14cde3(0x256)]=_0x39d86a,this[_0x14cde3(0x23b)]=_0x29c6c0,this['_renderManagerService']=_0x2fdc3c;let {..._0x3a1493}=(0x0,a[_0x14cde3(0x1ee)])({},ft,this[_0x14cde3(0x15e)]);this[_0x14cde3(0x23b)][_0x14cde3(0x162)](dt,_0x3a1493),this[_0x14cde3(0x2af)]();}['onRendered'](){const _0x5d51e1=_0xe5948a;this['_renderManagerService'][_0x5d51e1(0x4c7)](a['UniverInstanceType'][_0x5d51e1(0x4d6)],[Ft]),(0x0,a['touchDependencies'])(this[_0x5d51e1(0x245)],[[Q],[W],[j],[q]]);}[_0xe5948a(0x292)](){const _0x5ee52e=_0xe5948a;this[_0x5ee52e(0x245)]['get'](Q)['initShapePopupMenu']();}[_0xe5948a(0x206)](){const _0x566ec1=_0xe5948a;[[G],[M],[K]][_0x566ec1(0x4fc)](_0x4efca7=>this[_0x566ec1(0x245)]['add'](_0x4efca7)),(0x0,a[_0x566ec1(0x3ba)])(this[_0x566ec1(0x245)],[[K],[M]]),this['_renderManagerService'][_0x566ec1(0x4c7)](a[_0x566ec1(0x3fe)]['UNIVER_SHEET'],[G]),this[_0x566ec1(0x505)][_0x566ec1(0x4c7)](a[_0x566ec1(0x3fe)][_0x566ec1(0x1f5)],[pt]),this['_renderManagerService']['registerRenderModule'](a[_0x566ec1(0x3fe)]['UNIVER_SHEET'],[wt]),this['_renderManagerService'][_0x566ec1(0x4c7)](a[_0x566ec1(0x3fe)][_0x566ec1(0x1f5)],[_t]),this[_0x566ec1(0x160)](this[_0x566ec1(0x505)]['registerRenderModule'](a['UniverInstanceType']['UNIVER_SHEET'],[It])),this[_0x566ec1(0x160)](this[_0x566ec1(0x505)][_0x566ec1(0x4c7)](a[_0x566ec1(0x3fe)][_0x566ec1(0x1f5)],[Nt]));}['onStarting'](){const _0x59a884=_0xe5948a;this[_0x59a884(0x245)][_0x59a884(0x2d0)]([Mt]),this[_0x59a884(0x245)][_0x59a884(0x41b)](Mt);let _0xc5863f=this['_injector'];[[Q],[W],[j],[q],[Y],[V],[U],[L],[J],[Z]][_0x59a884(0x4fc)](_0x336ee7=>_0xc5863f[_0x59a884(0x2d0)](_0x336ee7)),(0x0,a[_0x59a884(0x3ba)])(this[_0x59a884(0x245)],[[Q],[W],[j],[Y],[V],[U],[L],[J],[Z]]);}['_initCommands'](){const _0x407b2e=_0xe5948a;[N,S,Tt,I,ce,re,ue,de][_0x407b2e(0x4fc)](_0x13c660=>this[_0x407b2e(0x160)](this['_commandService']['registerCommand'](_0x13c660)));}};E($,'type',a[_0xe5948a(0x3fe)][_0xe5948a(0x1f5)]),E($,_0xe5948a(0x32e),_0xe5948a(0x3be)),E($,_0xe5948a(0x377),ct),E($,_0xe5948a(0x354),lt),$=A([(0x0,a[_0xe5948a(0x401)])(h[_0xe5948a(0x267)],g[_0xe5948a(0x1eb)],u[_0xe5948a(0x397)],f[_0xe5948a(0x432)],o['UniverRenderEnginePlugin'],s[_0xe5948a(0x184)],_[_0xe5948a(0x20c)],c[_0xe5948a(0x4b5)],r[_0xe5948a(0x48c)],v[_0xe5948a(0x1be)],i[_0xe5948a(0x423)],l[_0xe5948a(0x1a6)],e[_0xe5948a(0x413)]),k(0x1,(0x0,a[_0xe5948a(0x25d)])(a[_0xe5948a(0x2e6)])),k(0x2,a[_0xe5948a(0x3e7)]),k(0x3,a['IConfigService']),k(0x4,o[_0xe5948a(0x40d)])],$),exports['SheetsShapeUIContextualRibbonSchema']=at,exports[_0xe5948a(0x3d8)]=st,Object[_0xe5948a(0x439)](exports,_0xe5948a(0x513),{'enumerable':!0x0,'get':function(){return X;}}),Object[_0xe5948a(0x439)](exports,_0xe5948a(0x197),{'enumerable':!0x0,'get':function(){return $;}});