@univerjs-pro/sheets-print 0.25.0 → 0.25.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/lib/cjs/facade.js +1 -1
  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/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +14 -14
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x17c546=_0x2a04;(function(_0x29ad40,_0x32a941){const _0x252497=_0x2a04,_0x5ecb32=_0x29ad40();while(!![]){try{const _0x35154d=parseInt(_0x252497(0x159))/0x1*(parseInt(_0x252497(0x274))/0x2)+-parseInt(_0x252497(0xe7))/0x3+parseInt(_0x252497(0x152))/0x4+-parseInt(_0x252497(0x1cb))/0x5+parseInt(_0x252497(0x29c))/0x6*(-parseInt(_0x252497(0x23e))/0x7)+parseInt(_0x252497(0x26a))/0x8*(-parseInt(_0x252497(0x1eb))/0x9)+-parseInt(_0x252497(0x1dc))/0xa*(-parseInt(_0x252497(0x341))/0xb);if(_0x35154d===_0x32a941)break;else _0x5ecb32['push'](_0x5ecb32['shift']());}catch(_0x21d777){_0x5ecb32['push'](_0x5ecb32['shift']());}}}(_0x402b,0x5c1cf),Object['defineProperty'](exports,Symbol[_0x17c546(0x347)],{'value':_0x17c546(0x2f7)}));let e=require('@univerjs-pro/license'),t=require('@univerjs/core'),n=require('@univerjs/sheets'),r=require('@univerjs/ui'),i=require('@univerjs-pro/print'),a=require('@univerjs/engine-render'),o=require('@univerjs/sheets-ui'),s=require('rxjs'),c=require('@univerjs/design'),l=require('@univerjs/icons'),u=require('react'),d=require('@univerjs/docs'),f=require('@univerjs/docs-ui'),p=require('react/jsx-runtime'),m=require('@univerjs/network');const h=Number[_0x17c546(0x277)](0x6a1aba2e),g=_0x17c546(0x252);let _=function(_0x322461){const _0x157544=_0x17c546;return _0x322461[_0x157544(0x32b)]=_0x157544(0x32b),_0x322461[_0x157544(0x218)]=_0x157544(0x2a2),_0x322461[_0x157544(0x2fe)]='CurrentSelection',_0x322461[_0x157544(0xf7)]='AllSelection',_0x322461;}({}),v=function(_0x17968b){const _0x3979d0=_0x17c546;return _0x17968b['PageSize']=_0x3979d0(0x1b5),_0x17968b[_0x3979d0(0x107)]=_0x3979d0(0x107),_0x17968b[_0x3979d0(0x1ea)]=_0x3979d0(0x1ea),_0x17968b[_0x3979d0(0x39e)]=_0x3979d0(0x39e),_0x17968b[_0x3979d0(0x36e)]=_0x3979d0(0x36e),_0x17968b;}({}),y=function(_0xbb3970){const _0x4c147e=_0x17c546;return _0xbb3970[_0x4c147e(0x138)]=_0x4c147e(0x138),_0xbb3970['Column']=_0x4c147e(0x270),_0xbb3970;}({}),b=function(_0x110618){const _0x48d900=_0x17c546;return _0x110618[_0x48d900(0x107)]='@WorkbookTitle',_0x110618['WorksheetTitle']='@WorksheetTitle',_0x110618['DateA']=_0x48d900(0x35c),_0x110618['DateB']='@DateB',_0x110618[_0x48d900(0x2ce)]='@DateC',_0x110618[_0x48d900(0x16f)]='@DateD',_0x110618[_0x48d900(0x267)]='@DateE',_0x110618[_0x48d900(0xe6)]=_0x48d900(0x361),_0x110618['TimeB']=_0x48d900(0x382),_0x110618['TimeC']=_0x48d900(0x324),_0x110618[_0x48d900(0x2a6)]=_0x48d900(0x355),_0x110618['Page']=_0x48d900(0x2dd),_0x110618[_0x48d900(0x2ae)]='@SheetPage',_0x110618['PageTotal']=_0x48d900(0x1b1),_0x110618[_0x48d900(0x1af)]=_0x48d900(0xe1),_0x110618;}({});const x={'topLeft':'','topCenter':'','topRight':'','bottomLeft':'','bottomCenter':'','bottomRight':''};function S(_0x53a286){'@babel/helpers - typeof';const _0x28a551=_0x17c546;return S=typeof Symbol==_0x28a551(0x24c)&&typeof Symbol[_0x28a551(0x38d)]==_0x28a551(0xdc)?function(_0x5f1fb2){return typeof _0x5f1fb2;}:function(_0x3f2686){const _0xa4c001=_0x28a551;return _0x3f2686&&typeof Symbol==_0xa4c001(0x24c)&&_0x3f2686[_0xa4c001(0x1a0)]===Symbol&&_0x3f2686!==Symbol['prototype']?_0xa4c001(0xdc):typeof _0x3f2686;},S(_0x53a286);}function C(_0x475bee,_0x1c9604){const _0x41242e=_0x17c546;if(S(_0x475bee)!=_0x41242e(0x211)||!_0x475bee)return _0x475bee;var _0x10b1e6=_0x475bee[Symbol[_0x41242e(0x321)]];if(_0x10b1e6!==void 0x0){var _0x3b5628=_0x10b1e6[_0x41242e(0x27a)](_0x475bee,_0x1c9604||_0x41242e(0x13d));if(S(_0x3b5628)!=_0x41242e(0x211))return _0x3b5628;throw TypeError(_0x41242e(0x1f3));}return(_0x1c9604===_0x41242e(0x205)?String:Number)(_0x475bee);}function w(_0x33ba1d){const _0x269198=_0x17c546;var _0x2f96c7=C(_0x33ba1d,_0x269198(0x205));return S(_0x2f96c7)==_0x269198(0xdc)?_0x2f96c7:_0x2f96c7+'';}function T(_0x5b3c02,_0x5a26e3,_0x28dc16){return(_0x5a26e3=w(_0x5a26e3))in _0x5b3c02?Object['defineProperty'](_0x5b3c02,_0x5a26e3,{'value':_0x28dc16,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5b3c02[_0x5a26e3]=_0x28dc16,_0x5b3c02;}function E(_0x40a70d,_0x40c103){return function(_0x5d1a0d,_0x3dd653){_0x40c103(_0x5d1a0d,_0x3dd653,_0x40a70d);};}function D(_0x3a798f,_0x3b50be,_0x5d8bf4,_0x204eb9){const _0x5c8c63=_0x17c546;var _0x2ad5cf=arguments[_0x5c8c63(0x394)],_0x164abb=_0x2ad5cf<0x3?_0x3b50be:_0x204eb9===null?_0x204eb9=Object[_0x5c8c63(0x35e)](_0x3b50be,_0x5d8bf4):_0x204eb9,_0x4ba5f4;if(typeof Reflect==_0x5c8c63(0x211)&&typeof Reflect[_0x5c8c63(0x197)]==_0x5c8c63(0x24c))_0x164abb=Reflect[_0x5c8c63(0x197)](_0x3a798f,_0x3b50be,_0x5d8bf4,_0x204eb9);else{for(var _0xb9a24b=_0x3a798f[_0x5c8c63(0x394)]-0x1;_0xb9a24b>=0x0;_0xb9a24b--)(_0x4ba5f4=_0x3a798f[_0xb9a24b])&&(_0x164abb=(_0x2ad5cf<0x3?_0x4ba5f4(_0x164abb):_0x2ad5cf>0x3?_0x4ba5f4(_0x3b50be,_0x5d8bf4,_0x164abb):_0x4ba5f4(_0x3b50be,_0x5d8bf4))||_0x164abb);}return _0x2ad5cf>0x3&&_0x164abb&&Object[_0x5c8c63(0x17b)](_0x3b50be,_0x5d8bf4,_0x164abb),_0x164abb;}const O=(0x0,t['createIdentifier'])(_0x17c546(0x12a)),k=_0x4a06ed=>Math[_0x17c546(0x102)](_0x4a06ed*0x64)/0x64,A={'startColumn':0x0,'endColumn':0x0,'startRow':0x0,'endRow':0x0},j={'startColumn':-0x1,'startRow':-0x1,'xSplit':0x0,'ySplit':0x0};let M=class{constructor(_0x3af9dc,_0x14464c,_0x2881d4,_0x5e54ee){const _0x1307ca=_0x17c546;this[_0x1307ca(0x2fd)]=_0x3af9dc,this[_0x1307ca(0x2ed)]=_0x14464c,this[_0x1307ca(0x3a0)]=_0x2881d4,this['_renderManagerService']=_0x5e54ee,T(this,'_layoutConfig',{'area':_0x1307ca(0x32b),'subUnitIds':[],'paperSize':t[_0x1307ca(0x39a)]['A4'],'direction':i[_0x1307ca(0x2b8)][_0x1307ca(0x149)],'scale':i[_0x1307ca(0x289)]['Origin'],'customScale':0x1,'freeze':[_0x1307ca(0x138),_0x1307ca(0x270)],'margin':i[_0x1307ca(0x1df)][_0x1307ca(0x395)],'maxRowsEachPage':0x1/0x0,'maxColumnsEachPage':0x1/0x0,'marginCustom':{'top':0x0,'bottom':0x0,'left':0x0,'right':0x0}}),T(this,_0x1307ca(0x327),{'gridlines':!0x0,'hAlign':i[_0x1307ca(0x36a)][_0x1307ca(0x2c4)],'vAlign':i['PrintAlign'][_0x1307ca(0x155)],'headerFooter':[],'headerFooterSetting':x,'isCustomHeaderFooter':!0x1}),T(this,'_layoutInfos',[]),T(this,_0x1307ca(0x332),new s['BehaviorSubject'](this[_0x1307ca(0xea)])),T(this,_0x1307ca(0x204),new s[(_0x1307ca(0x1ba))](this[_0x1307ca(0x1be)])),T(this,_0x1307ca(0x303),new s[(_0x1307ca(0x1ba))](this['_renderConfig'])),T(this,_0x1307ca(0x1b0),null),T(this,_0x1307ca(0x223),this['_layoutConfig$']['asObservable']()),T(this,'renderConfig$',this[_0x1307ca(0x303)][_0x1307ca(0x18d)]()),T(this,'layoutInfos$',this[_0x1307ca(0x332)]['asObservable']()[_0x1307ca(0x236)]((0x0,s['debounceTime'])(0x12c)));}get['layoutInfos'](){const _0xf0a7db=_0x17c546;return this[_0xf0a7db(0xea)];}get[_0x17c546(0x234)](){const _0x2a8537=_0x17c546;return this[_0x2a8537(0x327)];}get[_0x17c546(0x309)](){const _0x5af59e=_0x17c546;return this[_0x5af59e(0x1be)];}get[_0x17c546(0x119)](){const _0x4b629d=_0x17c546;let {paperSize:_0x5447e7,direction:_0x497d7a,pageSizeCustom:_0x191597}=this[_0x4b629d(0x1be)];if(_0x191597)return _0x191597;let _0x5ca766=t[_0x4b629d(0x1bb)][_0x5447e7];return _0x497d7a===i[_0x4b629d(0x2b8)][_0x4b629d(0x149)]?{'w':_0x5ca766[_0x4b629d(0x34c)],'h':_0x5ca766[_0x4b629d(0x2e0)]}:{'w':_0x5ca766[_0x4b629d(0x2e0)],'h':_0x5ca766[_0x4b629d(0x34c)]};}get[_0x17c546(0x36f)](){const _0x3f2ca6=_0x17c546;return this['_layoutConfig']['margin']===i[_0x3f2ca6(0x1df)][_0x3f2ca6(0x353)]?this[_0x3f2ca6(0x1be)][_0x3f2ca6(0x36b)]:i['PaperMarginMap'][this[_0x3f2ca6(0x1be)][_0x3f2ca6(0x1c0)]];}['updateLayoutConfig'](_0x5d2ab9){const _0x285aee=_0x17c546;this['_layoutConfig']={...this['_layoutConfig'],..._0x5d2ab9},this[_0x285aee(0x204)][_0x285aee(0x374)](this[_0x285aee(0x1be)]),this[_0x285aee(0x2bc)]();}[_0x17c546(0x2bf)](_0x23a9e9){const _0x48cab8=_0x17c546;this[_0x48cab8(0x1be)]=_0x23a9e9,this[_0x48cab8(0x204)][_0x48cab8(0x374)](this[_0x48cab8(0x1be)]),this['reLayout']();}[_0x17c546(0x393)](_0x6f568){const _0x4d29b5=_0x17c546;this[_0x4d29b5(0x327)]={...this['_renderConfig'],..._0x6f568},this[_0x4d29b5(0x303)][_0x4d29b5(0x374)](this[_0x4d29b5(0x327)]);}[_0x17c546(0x2d5)](_0x26b930){const _0x100767=_0x17c546;this['_renderConfig']=_0x26b930,this[_0x100767(0x303)][_0x100767(0x374)](this[_0x100767(0x327)]);}[_0x17c546(0x2bc)](){const _0x249809=_0x17c546;this[_0x249809(0xea)]=this[_0x249809(0x35b)](),this['_layoutInfos$']['next'](this[_0x249809(0xea)]);}[_0x17c546(0x2e5)](){const _0x12414b=_0x17c546;this[_0x12414b(0xea)]=[],this[_0x12414b(0x332)][_0x12414b(0x374)](this['_layoutInfos']),this['_layoutConfig']={...this[_0x12414b(0x1be)],'area':_0x12414b(0x32b),'maxRowsEachPage':0x1/0x0,'maxColumnsEachPage':0x1/0x0},this[_0x12414b(0x204)][_0x12414b(0x374)](this[_0x12414b(0x1be)]);}[_0x17c546(0x398)](_0x14eaf5){const _0x57e6cc=_0x17c546;var _0x5bcce3;(_0x5bcce3=this[_0x57e6cc(0x1b0)])==null||_0x5bcce3[_0x57e6cc(0x288)](),this[_0x57e6cc(0x1b0)]=_0x14eaf5;}[_0x17c546(0x254)](){const _0x523505=_0x17c546;var _0x3c7b8e;(_0x3c7b8e=this[_0x523505(0x1b0)])==null||_0x3c7b8e[_0x523505(0x288)](),this[_0x523505(0x1b0)]=null;}[_0x17c546(0x35b)](){const _0x1ea8ae=_0x17c546;let _0x30fd78=this[_0x1ea8ae(0x194)](),_0x51de55=[];return _0x30fd78[_0x1ea8ae(0x38c)](_0x298471=>{const _0x4dfb03=_0x1ea8ae;if(_0x298471){let _0x3e7270=this[_0x4dfb03(0x128)](_0x298471);_0x3e7270&&_0x51de55[_0x4dfb03(0x195)](_0x3e7270);}}),_0x51de55;}['_calculateSheetRangeById'](_0x3a1cb0,_0x65cb34,_0x31bc40){const _0x20b4c3=_0x17c546;var _0x231815;let _0x303338=this[_0x20b4c3(0x2fd)][_0x20b4c3(0x1c2)](t[_0x20b4c3(0x35a)]['UNIVER_SHEET'])[_0x20b4c3(0x294)](_0x65cb34);if(!_0x303338)return;let _0x1f62b9=_0x303338[_0x20b4c3(0x1d1)](),_0x56f6ec=_0x31bc40==null?_0x303338['getCellMatrixPrintRange']():_0x31bc40,_0x24c454=(_0x231815=this[_0x20b4c3(0x339)][_0x20b4c3(0x346)](_0x3a1cb0))==null?void 0x0:_0x231815[_0x20b4c3(0x2d6)](o['SheetSkeletonManagerService'])[_0x20b4c3(0x1b2)](_0x65cb34);if(!_0x24c454)return;if(_0x56f6ec){var _0x41c944;_0x24c454==null||(_0x41c944=_0x24c454[_0x20b4c3(0x2b5)])==null||_0x41c944[_0x20b4c3(0x141)]((_0x488a6d,_0x14bf36,_0x2eb923)=>{const _0x142d58=_0x20b4c3;let {endColumn:_0x56ffdb}=_0x2eb923;_0x56ffdb>_0x56f6ec['endColumn']&&(_0x56f6ec[_0x142d58(0x193)]=_0x56ffdb);});}let _0x34d1f4=this[_0x20b4c3(0x3a0)][_0x20b4c3(0x281)][_0x20b4c3(0x19a)](this['_sheetPrintInterceptorService'][_0x20b4c3(0x281)][_0x20b4c3(0x20c)]()[_0x20b4c3(0x33f)])(_0x56f6ec,{'unitId':_0x3a1cb0,'subUnitId':_0x65cb34});return _0x34d1f4?this[_0x20b4c3(0x181)](_0x65cb34,{..._0x34d1f4,'startColumn':Math[_0x20b4c3(0x2f9)](_0x1f62b9[_0x20b4c3(0xff)]-_0x1f62b9[_0x20b4c3(0x31c)],0x0),'startRow':Math[_0x20b4c3(0x2f9)](_0x1f62b9[_0x20b4c3(0x280)]-_0x1f62b9[_0x20b4c3(0x2fb)],0x0)}):null;}[_0x17c546(0x160)](_0x5cae28,_0x27b090){const _0x6b148f=_0x17c546;let _0x1a1739=this['_sheetsSelectionsSrv'][_0x6b148f(0x2e2)](_0x5cae28)[_0x6b148f(0x301)](_0x27b090);return _0x1a1739?_0x1a1739['map'](_0x3df885=>this[_0x6b148f(0x181)](_0x27b090,_0x3df885[_0x6b148f(0x28f)])):[];}[_0x17c546(0x181)](_0x1c0c4b,_0x4b6532){const _0x170e2c=_0x17c546;let _0x2ad76f=this[_0x170e2c(0x2fd)]['getCurrentUnitOfType'](t[_0x170e2c(0x35a)][_0x170e2c(0x18c)]),_0x52c21c=_0x2ad76f[_0x170e2c(0x294)](_0x1c0c4b),_0x38708c=this[_0x170e2c(0x1be)],_0x32d772=_0x2ad76f[_0x170e2c(0x14d)](),_0x2edd7b=this[_0x170e2c(0x119)],{top:_0x48049,right:_0x526254,bottom:_0x18bc54,left:_0x2fafb3}=this[_0x170e2c(0x36f)];_0x2edd7b['h']-=_0x48049+_0x18bc54,_0x2edd7b['w']-=_0x2fafb3+_0x526254;let _0xb5a39d=this[_0x170e2c(0x339)][_0x170e2c(0x346)](_0x32d772)['with'](o['SheetSkeletonManagerService']);if(_0x4b6532[_0x170e2c(0x280)]>-0x1&&_0x4b6532['startColumn']>-0x1){let _0x3935b1=_0xb5a39d['ensureSkeleton'](_0x1c0c4b);if(!_0x52c21c||!_0x3935b1)return null;let _0x511846=_0x4b6532[_0x170e2c(0x280)],_0x58636c=_0x4b6532[_0x170e2c(0x207)],_0x559fef=_0x4b6532[_0x170e2c(0xff)],_0x467a21=_0x4b6532['endColumn'],_0x274b82=_0x52c21c[_0x170e2c(0x1d1)](),_0xd189dc=k(this[_0x170e2c(0x297)](_0x3935b1,_0x4b6532,_0x274b82)),_0x517f75=-0x1,_0x10461c=0x0,_0x2009e6=-0x1,_0x3c091d=0x0,_0x52aa1c=_0x3935b1[_0x170e2c(0x1c1)],_0x468c36=_0x3935b1['rowHeightAccumulation'];if(_0x274b82[_0x170e2c(0x31c)]&&_0x38708c[_0x170e2c(0x1f4)]['includes'](_0x170e2c(0x270))){if(_0x467a21>=_0x274b82[_0x170e2c(0xff)]){let _0x1b9ba3=_0xd189dc*(_0x52aa1c[_0x274b82[_0x170e2c(0xff)]-0x1]-(_0x52aa1c[_0x274b82['startColumn']-_0x274b82[_0x170e2c(0x31c)]-0x1]||0x0));_0x1b9ba3<_0x2edd7b['w']&&(_0x2009e6=_0x274b82[_0x170e2c(0xff)],_0x3c091d=_0x274b82[_0x170e2c(0x31c)],_0x2edd7b['w']-=_0x1b9ba3);}else{let _0x2af605=_0x467a21+0x1,_0x107431=_0x467a21+0x1-(_0x274b82['startColumn']-_0x274b82[_0x170e2c(0x31c)]),_0x427551=_0xd189dc*(_0x52aa1c[_0x2009e6-0x1]-(_0x52aa1c[_0x2009e6-_0x3c091d]-0x1||0x0));_0x427551<_0x2edd7b['w']&&(_0x2009e6=_0x2af605,_0x3c091d=_0x107431,_0x2edd7b['w']-=_0x427551);}}if(_0x559fef=Math['max'](_0x2009e6,_0x559fef),_0x274b82[_0x170e2c(0x2fb)]&&_0x38708c[_0x170e2c(0x1f4)][_0x170e2c(0x11b)](_0x170e2c(0x138))){if(_0x58636c>=_0x274b82['startRow']){let _0x18ae67=_0x468c36[_0x274b82[_0x170e2c(0x280)]]-_0x468c36[_0x274b82[_0x170e2c(0x280)]-_0x274b82[_0x170e2c(0x2fb)]];_0x18ae67<_0x2edd7b['h']&&(_0x517f75=_0x274b82[_0x170e2c(0x280)],_0x10461c=_0x274b82[_0x170e2c(0x2fb)],_0x2edd7b['h']-=_0x18ae67);}else _0x517f75=_0x58636c+0x1,_0x10461c=_0x58636c+0x1-(_0x274b82[_0x170e2c(0x280)]-_0x274b82['ySplit']),_0x2edd7b['h']=_0x2edd7b['h']-_0x468c36[_0x517f75]-_0x468c36[_0x517f75-_0x10461c];}return _0x511846=Math[_0x170e2c(0x2f9)](_0x517f75,_0x511846),{'unitId':_0x32d772,'subUnitId':_0x1c0c4b,'range':{'startRow':_0x511846,'endRow':_0x58636c,'startColumn':_0x559fef,'endColumn':_0x467a21},'freeze':{'startRow':_0x517f75,'startColumn':_0x2009e6,'xSplit':_0x3c091d,'ySplit':_0x10461c},'contentSize':_0x2edd7b,'scale':_0xd189dc};}return{'unitId':_0x32d772,'subUnitId':_0x1c0c4b,'range':A,'freeze':j,'contentSize':_0x2edd7b,'scale':0x1};}['_calculatePrintScale'](_0x4161e6,_0x5da74c,_0x2fd126){const _0x43f9f0=_0x17c546;let _0x3c2e54=_0x4161e6[_0x43f9f0(0x1c1)],_0x46f463=_0x4161e6['rowHeightAccumulation'],{xSplit:_0x297d09,ySplit:_0x44f293,startColumn:_0x24cfd5,startRow:_0x556463}=_0x2fd126,{startRow:_0x363b6c,startColumn:_0x96b07}=_0x5da74c,{endColumn:_0x362ca8,endRow:_0x12fb74}=_0x5da74c;_0x363b6c=_0x12fb74<_0x556463?_0x363b6c:Math[_0x43f9f0(0x2f9)](_0x556463,_0x363b6c),_0x96b07=_0x362ca8<_0x24cfd5?_0x96b07:Math[_0x43f9f0(0x2f9)](_0x24cfd5,_0x96b07);let {scale:_0x26a571,customScale:_0x362b79}=this['_layoutConfig'],_0x26ad57=this[_0x43f9f0(0x119)],_0x574b4d=this[_0x43f9f0(0x36f)],_0x3a5195=_0x297d09>0x0?(_0x3c2e54[_0x24cfd5-0x1]||0x0)-(_0x3c2e54[_0x24cfd5-_0x297d09-0x1]||0x0):0x0,_0x5379a0=_0x44f293>0x0?(_0x46f463[_0x556463-0x1]||0x0)-(_0x46f463[_0x556463-_0x44f293-0x1]||0x0):0x0,_0x4b5292=_0x46f463[_0x12fb74]-(_0x46f463[_0x363b6c-0x1]||0x0),_0x51fbbd=_0x3c2e54[_0x362ca8]-(_0x3c2e54[_0x96b07-0x1]||0x0),_0x181536=_0x4b5292+_0x5379a0,_0x1c0d0c=_0x51fbbd+_0x3a5195;switch(_0x26a571){case i[_0x43f9f0(0x289)][_0x43f9f0(0x353)]:return _0x362b79;case i[_0x43f9f0(0x289)]['FitWidth']:return Math['min'](0x1,(_0x26ad57['w']-_0x574b4d[_0x43f9f0(0x36d)]-_0x574b4d[_0x43f9f0(0x33a)])/_0x1c0d0c);case i[_0x43f9f0(0x289)][_0x43f9f0(0x2d2)]:return Math[_0x43f9f0(0x226)](0x1,(_0x26ad57['h']-_0x574b4d[_0x43f9f0(0xf9)]-_0x574b4d[_0x43f9f0(0x1da)])/_0x181536);case i[_0x43f9f0(0x289)][_0x43f9f0(0x2d9)]:return Math[_0x43f9f0(0x226)](0x1,(_0x26ad57['w']-_0x574b4d[_0x43f9f0(0x36d)]-_0x574b4d[_0x43f9f0(0x33a)])/_0x1c0d0c,(_0x26ad57['h']-_0x574b4d[_0x43f9f0(0xf9)]-_0x574b4d['bottom'])/_0x181536);default:return 0x1;}}['_calculateSubSheetRange'](){const _0x5b9ea9=_0x17c546;let {area:_0x551fe0,subUnitIds:_0x423694}=this[_0x5b9ea9(0x1be)],_0x469bb4=this[_0x5b9ea9(0x2fd)][_0x5b9ea9(0x1c2)](t[_0x5b9ea9(0x35a)][_0x5b9ea9(0x18c)]),_0x28fe88=_0x469bb4['getUnitId']();switch(_0x551fe0){case _0x5b9ea9(0x32b):{var _0x27203a;let _0x973af1=(_0x27203a=_0x469bb4['getActiveSheet']())==null?void 0x0:_0x27203a[_0x5b9ea9(0x1e9)]();if(_0x973af1!=null){let _0x46145d=this[_0x5b9ea9(0x2fa)](_0x28fe88,_0x973af1);if(_0x46145d)return[_0x46145d];let _0x2e33d8=this[_0x5b9ea9(0x2fd)]['getCurrentUnitOfType'](t['UniverInstanceType'][_0x5b9ea9(0x18c)]),_0x265626=_0x2e33d8['getActiveSheet']();return _0x265626?this[_0x5b9ea9(0x160)](_0x2e33d8[_0x5b9ea9(0x14d)](),_0x265626[_0x5b9ea9(0x1e9)]()):(console['warn'](_0x5b9ea9(0x37e)),[]);}return[];}case _0x5b9ea9(0x2fe):{let _0x548174=this[_0x5b9ea9(0x2fd)]['getCurrentUnitOfType'](t[_0x5b9ea9(0x35a)][_0x5b9ea9(0x18c)]),_0x5f4553=_0x548174[_0x5b9ea9(0x1f2)]();return _0x5f4553?this[_0x5b9ea9(0x160)](_0x548174[_0x5b9ea9(0x14d)](),_0x5f4553['getSheetId']()):(console['warn'](_0x5b9ea9(0x37e)),[]);}case _0x5b9ea9(0xf7):return this[_0x5b9ea9(0x2fd)]['getCurrentUnitOfType'](t[_0x5b9ea9(0x35a)][_0x5b9ea9(0x18c)])[_0x5b9ea9(0x344)]()[_0x5b9ea9(0x2c9)](_0x49ccb7=>this[_0x5b9ea9(0x160)](_0x28fe88,_0x49ccb7[_0x5b9ea9(0x1e9)]()))['flat']();default:return(_0x423694[_0x5b9ea9(0x394)]?_0x423694:_0x469bb4[_0x5b9ea9(0x344)]()[_0x5b9ea9(0x28d)](_0x5a70dc=>!_0x5a70dc[_0x5b9ea9(0x164)]())[_0x5b9ea9(0x2c9)](_0x497a05=>_0x497a05[_0x5b9ea9(0x1e9)]()))['map'](_0x5c8878=>this[_0x5b9ea9(0x2fa)](_0x28fe88,typeof _0x5c8878==_0x5b9ea9(0x205)?_0x5c8878:_0x5c8878['id'],typeof _0x5c8878=='string'?void 0x0:_0x5c8878[_0x5b9ea9(0x28f)]))[_0x5b9ea9(0x28d)](Boolean);}}['_calculateSheetPages'](_0x168d71){const _0x16b61d=_0x17c546;let {subUnitId:_0x1a7631,range:_0x4c74c6,freeze:_0x56334a,unitId:_0x22da1d,scale:_0xea4d56,contentSize:_0x5ca168}=_0x168d71,_0x60fa71=this[_0x16b61d(0x339)][_0x16b61d(0x346)](_0x22da1d)[_0x16b61d(0x2d6)](o[_0x16b61d(0x1ee)])[_0x16b61d(0x1b2)](_0x1a7631);if(!_0x60fa71)return;let {rowHeightAccumulation:_0x3228cd,columnWidthAccumulation:_0x5aa975}=_0x60fa71,{w:_0x44f365,h:_0x4b7456}=_0x5ca168,{startRow:_0x1e2cc7,startColumn:_0x1b1385,endColumn:_0x37ac40,endRow:_0x54dc34}=_0x4c74c6,_0x1e479d=_0x344be3=>{const _0x589a53=_0x16b61d;let _0x574ab1=_0x344be3,_0xdaf081=this['_layoutConfig'][_0x589a53(0x345)]<=_0x56334a[_0x589a53(0x2fb)]?0x1/0x0:this[_0x589a53(0x1be)][_0x589a53(0x345)]-0x1-_0x56334a['ySplit']+_0x344be3,_0x5e8e7d=_0x344be3===0x0?0x0:_0x3228cd[_0x344be3-0x1];for(;_0x574ab1<_0x54dc34;){let _0x1c6b77=(_0x3228cd[_0x574ab1]-_0x5e8e7d)*_0xea4d56,_0x2619bc=(_0x3228cd[_0x574ab1+0x1]-_0x5e8e7d)*_0xea4d56;if(_0x574ab1++,_0x1c6b77>=_0x4b7456||_0x1c6b77<_0x4b7456&&_0x2619bc>_0x4b7456)return{'startRow':_0x344be3,'endRow':Math[_0x589a53(0x226)](_0x574ab1-0x1,_0xdaf081)};}return{'startRow':_0x344be3,'endRow':Math['min'](_0x574ab1,_0xdaf081)};},_0x14aa62=_0x393e36=>{const _0x2aa6eb=_0x16b61d;let _0x1d9131=_0x393e36,_0x55ccbf=_0x393e36===0x0?0x0:_0x5aa975[_0x393e36-0x1],_0x372507=this[_0x2aa6eb(0x1be)][_0x2aa6eb(0x1e4)]<=_0x56334a[_0x2aa6eb(0x31c)]?0x1/0x0:this[_0x2aa6eb(0x1be)][_0x2aa6eb(0x1e4)]-0x1-_0x56334a[_0x2aa6eb(0x31c)]+_0x393e36;for(;_0x1d9131<_0x37ac40;){let _0x5be454=(_0x5aa975[_0x1d9131]-_0x55ccbf)*_0xea4d56,_0x4c55e8=(_0x5aa975[_0x1d9131+0x1]-_0x55ccbf)*_0xea4d56;if(_0x1d9131++,_0x5be454<_0x44f365&&_0x4c55e8>_0x44f365||_0x5be454>=_0x44f365)return{'startColumn':_0x393e36,'endColumn':Math[_0x2aa6eb(0x226)](_0x1d9131-0x1,_0x372507)};}return{'startColumn':_0x393e36,'endColumn':Math[_0x2aa6eb(0x226)](_0x1d9131,_0x372507)};},_0x4d7516=[],_0x42b27c=_0x1e2cc7;for(;_0x42b27c<=_0x54dc34;){let _0x261276=_0x1e479d(_0x42b27c);_0x4d7516[_0x16b61d(0x195)](_0x261276),_0x42b27c=_0x261276['endRow']+0x1;}let _0x58eb4c=[],_0x55dc4c=_0x1b1385;for(;_0x55dc4c<=_0x37ac40;){let _0x286660=_0x14aa62(_0x55dc4c);_0x58eb4c[_0x16b61d(0x195)](_0x286660),_0x55dc4c=_0x286660['endColumn']+0x1;}let _0x38bd27=[];for(let _0xe8c59c=0x0;_0xe8c59c<_0x4d7516[_0x16b61d(0x394)];_0xe8c59c++)for(let _0x541bdc=0x0;_0x541bdc<_0x58eb4c[_0x16b61d(0x394)];_0x541bdc++)_0x38bd27[_0x16b61d(0x195)]({..._0x4d7516[_0xe8c59c],..._0x58eb4c[_0x541bdc]});return{'unitId':_0x22da1d,'subUnitId':_0x1a7631,'pages':_0x38bd27,'freeze':_0x56334a,'scale':_0xea4d56,'pageSize':this[_0x16b61d(0x119)],'margin':this[_0x16b61d(0x36f)]};}};M=D([E(0x0,t[_0x17c546(0x368)]),E(0x1,(0x0,t[_0x17c546(0x12b)])(n[_0x17c546(0x111)])),E(0x2,(0x0,t[_0x17c546(0x12b)])(o['SheetPrintInterceptorService'])),E(0x3,a['IRenderManagerService'])],M);const ee=(_0x3d9d24,_0x510a2f)=>{const _0x2b5f87=_0x17c546;if(!_0x3d9d24||!_0x510a2f)return!0x0;let _0x4815a9=(0x0,e[_0x2b5f87(0x378)])(_0x3d9d24,_0x510a2f)[_0x2b5f87(0x174)],_0x2f2362=(0x0,e[_0x2b5f87(0x2ec)])(_0x4815a9,'sf',h);return!((_0x4815a9==null?void 0x0:_0x4815a9['rt'])===e[_0x2b5f87(0x1cd)][_0x2b5f87(0x20b)]&&!_0x2f2362);},N=(_0x1250b4,_0x1bd950,_0x1513c8)=>{const _0x201931=_0x17c546;let _0x471268={'page':_0x1250b4,'isPro':!0x1,'timeValid':!0x1};if(!_0x1bd950||!_0x1513c8)return _0x471268;let _0x3d8675=(0x0,e[_0x201931(0x378)])(_0x1bd950,_0x1513c8);if(_0x3d8675['valid']){let _0x521686=_0x3d8675[_0x201931(0x174)],_0x407049=(0x0,e[_0x201931(0x2ec)])(_0x521686,'sf',h);_0x471268[_0x201931(0x201)]=_0x407049,_0x471268[_0x201931(0x162)]=_0x407049,_0x471268[_0x201931(0x1d9)]=(0x0,e[_0x201931(0x143)])(_0x521686,_0x407049,'mpn',_0x1250b4,_0x1250b4,0x0);}return _0x471268;};function P(_0x1bcddf){const _0x336724=_0x17c546;var _0x24201f;let {ls:_0x275eb8,pbk:_0x4ba7e1}=(_0x24201f=_0x1bcddf[_0x336724(0x198)](t[_0x336724(0x333)])['getConfig'](e[_0x336724(0x34b)]))==null?{}:_0x24201f;return N(0x3,_0x275eb8,_0x4ba7e1)[_0x336724(0x201)];}function _0x402b(){const _0x54662f=['Column','OPERATION','gridlines','MetaKeys','486cCGbpV','Scene','setConfig','parseInt','PaperMarginMap','toLocaleTimeString','call','defaultHeaderFooter','number','sheets-print.freeze.row','slice','sheets-print.formatting.skeleton','startRow','interceptor','now','@[]@','noreferrer\x20noopener','_drawPrintGrid','univer-grid\x20univer-grid-cols-2\x20univer-gap-2','_print','dispose','PrintScale','sheets-print.headerFooter.timeB','CalendarIcon','setPreviewScale','filter','_injector','range','data','whenSheetEditorFocused','has','rowHeightAccumulation','getSheetBySheetId','jsxs','sheets-print.size.statement','_calculatePrintScale','DEFAULT_FONTFACE_PLANE','sheets-print.align.title','_initConfigChangeListener','_viewTop','192JcCkSQ','UniverSheetsPrintPlugin','@univerjs-pro/sheets-print','SheetPrintInterceptorService','hide','headerFooterSetting','Workbook','Letter','CanvasRenderMode','small','TimeD','deepClone','_renderLimitWaterMark','sheets-print.margin.wide','_container','useRef','_targetRender','_renderHeaderFooter','SheetPage','SheetPrintOperation','univer-pro.print-grid.service','open','_totalWidth','menu','watermark','overflowCache','_dirty','registerShortcut','PrintDirection','have\x20not\x20permission','button','render','reLayout','complete','set','replaceLayoutConfig','MENTION','area','type','_viewRowBottom','Middle','_viewColumnRight','userInfo','PrintGridExtension','@DateD','map','sheets-print.screenshot.fail','VIEW_COLUMN_RIGHT','split','_resizeViewport','DateC','position','sheets-print.size.b5','setContainer','FitHeight','value','RichTextEditor','replaceRenderConfig','with','focus$','_initComponents','FitPage','getPermissionPoint','localeService','layoutInfos$','@Page','Printing','resetCache','height','useEffect','getWorkbookSelections','primary','sheet.operation.screenshot','reset','beginPath','sheets-print.selection.allWorkbook','SHEET_PRINT_PLUGIN','IMessageService','_watermarkConfig','getCurrentUser','isFeatureAuthorizedWithinTime','_sheetsSelectionsSrv','endY','createIdentifier','sheets-print.headerFooter.display.sheetPage','univer-w-full','syncExecuteCommand','sheets-print.size.title','sheets-print.area.maxRowsEachPage','MoreDownIcon','measureText','Module','univer-flex\x20univer-w-full','max','_calculateSheetRangeById','ySplit','ComponentManager','_univerInstanceService','CurrentSelection','resizeWhenFreezeChange','_engine','getSelectionOfWorksheet','_addComponent','_renderConfig$','getContext','univer-flex-1\x20univer-overflow-y-auto','_sheetPrintManagerService','sheets-print.headerFooter.display.dateD','_initMenus','layoutConfig','univer-mr-2','headerFooter','_globalZoneService','addObjects','subscribeEvent','12px\x20','sheets-print.margin.left','sheets-print.headerFooter.workbook','univer-box-border\x20univer-h-full\x20univer-w-[312px]\x20univer-flex-none\x20univer-bg-white\x20dark:!univer-bg-gray-900','create','_unitId','13px\x20','disable','jsx','getData','onbeforeprint','url','Error','xSplit','bottomCenter','_spreadsheetObject','_visible$','DisposableCollection','toPrimitive','getFocusId','scaleY','@TimeC','Legal','DownloadImageIcon','_renderConfig','_printService','_addViewport','ISheetPrintManagerService','CurrentSheet','MessageType','middle','SHEET_VIEWPORT_KEY','OTHERS','100%','dataStream','_layoutInfos$','IConfigService','Checkbox','markDirty','updateConfig','SpreadsheetExtensionRegistry','VIEW_MAIN_LEFT_TOP','_renderManagerService','right','svg','stroke','actions','UserManagerService','PRINTING_RANGE','getSheetCommandTarget','11539RHYRHn','absolute','draw','getSheets','maxRowsEachPage','getRenderById','toStringTag','_menuManagerService','_componentManager','sheets-print.formatting.title','LS_CONFIG_KEY','width','div','relative','sheets-print.margin.narrow','sheets-print.headerFooter.customHeadFooter','FormLayout','sheets-print.freeze.column','Custom','overflow','@TimeD','renderOnReady','sheetPageTotal','TextIcon','CTRL_COMMAND','UniverInstanceType','_calculate','@DateA','univer-flex\x20univer-h-full\x20univer-flex-col','getOwnPropertyDescriptor','univer-my-1\x20univer-p-0','columnHeaderHeight','@TimeA','sheets-print.align.vertical.end','sheets-print.size.a3','printing','getCanvas','isPrinting','devicePixelRatio','IUniverInstanceService','_blank','PrintAlign','marginCustom','WorkbookCopyPermission','left','Time','paperMargin','IZenZoneService','sheets-print.headerFooter.dateC','body','sheets-print.header.total','next','includeHeaderDimensions','name','IWatermarkTypeEnum','getLicenseInfo','sheets-print.scale.title','#1890ff','Viewport','renderConfig$','getEditorId','No\x20active\x20sheet\x20found','prepare','useDependency','bottomRight','@TimeB','sheets-print.headerFooter.display.dateC','worksheet','label','sheets-print.headerFooter.dateE','_root','univer-text-gray-500','VIEW_MAIN_LEFT','sheets-print.headerFooter.display.dateA','_initCommands','forEach','iterator','hAlign','getCurrentLastSelection','subscribe','delete','JSONX','updateRenderConfig','length','Normal','SheetExtension','fontBoundingBoxDescent','setPrintViewDisposable','sheets-print.orientation.landscape','PaperType','sheets-print.headerFooter.title','sheets-print.header.cancel','univer-rounded-md\x20univer-bg-white\x20univer-p-1\x20univer-shadow\x20dark:!univer-bg-gray-900','Date','PrintHeaderFooterSymbol','_sheetPrintInterceptorService','MAIN_AREA','LocaleService','UniverNetworkPlugin','sheets-print.headerFooter.display.dateB','scale','pageTotal','ILocalStorageService','bottomLeft','symbol','0.25.0','className','fixLineWidthByScale','Landscape','@TotalSheetPage','Statement','getCurrentSelections','resize','univer-ml-2\x20univer-text-lg\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-white','TimeA','318489NagBIQ','registerDependencies','Folio','_layoutInfos','then','fillText','serialize','univer-mt-3','lineTo','_initPrintGridExtension','sheets-print.headerFooter.editCustomHeadFooter','topLeft','disposeWithMe','UserInfo','sheets-print.headerFooter.display.page','RichTextBuilder','AllSelection','sheets-print.header.pages','top','image','Engine','executeCommand','createPrintStyle','printManagerService','startColumn','sheets-print.margin.right','engine','floor','_skeleton','univer-space-y-2\x20univer-border-t\x20univer-pb-4','onafterprint','ISidebarService','WorkbookTitle','createElement','unier-w-[761px]\x20univer-mx-auto\x20univer-my-4\x20univer-box-border\x20univer-flex\x20univer-flex-col\x20univer-items-center\x20univer-bg-white\x20univer-px-6\x20univer-py-7\x20univer-shadow-lg\x20dark:!univer-bg-gray-900','sheets-print.limit.page','font','topRight','!univer-min-w-0\x20univer-flex-1','sheet.menu.print','sheets-print.align.horizontal.start','COMMAND','SheetsSelectionsService','sheets-print.area.title','sheets-print.area.currentSelection','registerCommand','_sheetPrintClientService','VIEW_ROW_BOTTOM','univer-h-[200px]\x20univer-w-[--radix-popper-anchor-width]\x20univer-overflow-y-auto','getImage','paperSize','print','includes','onCommandExecuted','key','sheets-print.selection.workbookUnit','IMenuManagerService','sheets-print.screenshot.success','_viewLeft','mainComponent','Plugin','_config','sheet','VIEW_MAIN_TOP','VIEW_MAIN','_calculateSheetPages','sheets-print.headerFooter.placeholder','univer-pro.sheet-print-manager.service','Inject','_initRenderer','find','sheets-print.size.letter','removeChild','_scene','getCurrentLocale','makeDirty','CancelSheetPrintOperation','univer-my-4\x20univer-text-center','parentElement','sheets-print.headerFooter.display.timeD','vertical','Row','mergeMenu','Spreadsheet','memo','univer-relative\x20first:univer-mr-2','default','sheets-print.align.vertical.middle','link','text','forValue','ZoomReduceIcon','getSheetFeatureLimit','Z_INDEX','properties','WorkbookViewPermission','Dropdown','Loading','Portrait','SheetPrintManagerService','Executive','CustomRangeType','getUnitId','root','topCenter','sheet.operation.open-print-grid-sidebar','sheets-print.headerFooter.display.sheet','69128qhDqXr','toLocaleString','sheetPage','Start','sheet.operation.confirm-print','span','_configService','1876eaDWFm','@WorkbookTitle','getInstance','write','vAlign','sheets-print.headerFooter.display.title','sheets-print.selection.title','_calculateCurrentSelectionRange','style','timeValid','_effects','isSheetHidden','Radio','sheets-print.size.a5','reduce','@DateE','image/png','sheets-print.headerFooter.dateB','univer-h-full\x20univer-overflow-y-auto','setId','RangeProtectionPermissionViewPoint','sheets-print.header.next','DateD','enforceWatermark','pauseCollaboration','PRINT_CANVAS_CLASS','sheets-print.headerFooter.dateA','message','format','generateRandomId','visible$','toLocaleDateString','Input','Disposable','defineProperty','univer-relative\x20univer-box-border\x20univer-flex\x20univer-flex-1\x20univer-items-center\x20univer-justify-center\x20univer-overflow-hidden\x20univer-bg-gray-200\x20dark:!univer-bg-gray-700','sheets-print.headerFooter.display.sheetPageTotal','getConfig','sheet.operation.print','CheckboxGroup','_calculateFinalRange','useMemo','mually','sheets-print.size.folio','None','Wide','univer-p-3','univer-relative\x20univer-mx-auto\x20univer-mt-7\x20univer-flex-none\x20univer-bg-white\x20univer-shadow-lg\x20dark:!univer-bg-gray-900','univer-box-border\x20univer-inline-flex\x20univer-h-8\x20univer-w-full\x20univer-min-w-36\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-white\x20univer-px-2.5\x20univer-text-sm\x20univer-transition-colors\x20univer-duration-200\x20hover:univer-border-primary-600\x20dark:!univer-bg-gray-700\x20dark:!univer-text-white','univer-flex\x20univer-cursor-pointer\x20univer-flex-row\x20univer-items-center\x20univer-justify-between\x20univer-rounded-md\x20univer-px-2\x20univer-py-1.5\x20hover:univer-rounded\x20hover:univer-bg-gray-300','startX','UNIVER_SHEET','asObservable','univer-mb-1\x20univer-block\x20univer-text-xs\x20univer-text-gray-500','sheets-print.margin.custom','date','sheets-print.margin.bottom','setSelectionRanges','endColumn','_calculateSubSheetRange','push','isNaN','decorate','get','hidden','fetchThroughInterceptors','sheets-print.menu','_initMutationListener','getCollabEntity','IShortcutService','restore','constructor','sheets-print.freeze.title','PRINTING_DOM_COLLECT','sheets-print.size.tabloid','univer-mb-2','DependentOn','ZoomIncreaseIcon','_viewMain','RibbonStartGroup','flat','_shortcutService','config','current','sheets-print.headerFooter.display.pageTotal','setForceDisableGridlines','SheetPageTotal','_printViewDisposable','@TotalPage','ensureSkeleton','sheets-print.orientation.title','Tabloid','PageSize','close','sheets-print.align.vertical.start','BUTTON','customRanges','BehaviorSubject','PAGE_SIZE','End','scaleX','_layoutConfig','MenuItemType','margin','columnWidthAccumulation','getCurrentUnitOfType','uKey','forwardRef','_messageService','layoutInfos','ConfirmSheetPrintOperation','appendChild','PRINT_GRID_SIDEBAR_COMPONENT','submit','1229735vAuDEm','pages','ReleaseType','insertRichText','Select','_commandService','getFreeze','RadioGroup','sheets-print.size.a4','fontBoundingBoxAscent','getCurrentRangeDisable$','endIndex','size','Narrow','page','bottom','useVirtualList','13070SdDogN','printGridService','getMenuHiddenObservable','PrintPaperMargin','translateWithPrecision','ClockIcon','container','addObject','maxColumnsEachPage','sheets-print.margin.top','@WorksheetTitle','Origin','scrollbarClassName','getSheetId','WorksheetTitle','2681586Zyhgyt','univer-z-[100]\x20univer-mt-2\x20univer-flex\x20univer-size-8\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-white\x20univer-shadow\x20dark:!univer-bg-gray-900','_previewScale','SheetSkeletonManagerService','blur$','sheets-print.margin.title','univer-flex\x20univer-flex-1\x20univer-overflow-hidden','getActiveSheet','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','freeze','clearMemory','_initShortcuts','setLineDash','touchDependencies','pluginName','startIndex','onReady','isCustomHeaderFooter','getPrecisionScale','from','show','__SpreadsheetPrintRender__','isPro','__root','WorkbookPrintPermission','_layoutConfig$','string','sheets-print.align.horizontal.end','endRow','toDataURL','endX','sheets-print.screenshot.title','NO_COMMERCIAL','getInterceptPoints','dateKit','PRINTING_COMPONENT_COLLECT','_totalHeight','updateLayoutConfig','object','register','OPTIONAL','_getTranslateOffset','univer-relative\x20univer-inline-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-1\x20univer-rounded\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20hover:univer-bg-gray-200\x20dark:!univer-bg-gray-900\x20hover:dark:!univer-bg-gray-700','subUnitId','startY','workbook','getRangeImage','Button','useState','Injector','UniverLicensePlugin','univer-size-3\x20univer-text-gray-900\x20univer-transition-transform\x20dark:!univer-text-white','sheets-print.margin.normal','add','sheet.operation.close-print-grid-sidebar','getName','layoutConfig$','unitId','getItem','min','sheets-print.area.workbook','clsx','SheetPrintCanvasView','insertText','_viewLeftTop','enable','sheets-print.headerFooter.date','SpreadsheetColumnHeader','_subUnitId','@SheetPage','_initialize','Tools','sheets-print.area.maxColumnsEachPage','renderConfig','sheets-print.limit.waterMark','pipe','ContextMenuPosition','sheets-print.headerFooter.display.timeC','univer-p-4','univer-absolute\x20univer-bottom-4\x20univer-right-4\x20univer-z-[1000]','IDialogService','useEvent','sheets-print.headerFooter.submit','113505tLMotE','fillStyle','_renderHeaderFooterByCustom','univer-solid\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-white\x20univer-p-2\x20univer-shadow-lg\x20dark:!univer-border-gray-700','params','sheets-print.headerFooter.display.timeB','CommandType','sheets-print.size.b4','useObservable','visible','ContextMenuGroup','@DateC','hasPrintFacadePermission','save','function','sheets-print.scale.fitPage','@DateB','sheets-print.headerFooter.dateD','sheets-print.area.allSelection','time','UNIVER_SHEET_PERMISSION_ALERT_DIALOG_ID','replace','disposePrintView','PrintIcon','updateScrollVal','ICommandService','round','univer-flex\x20univer-gap-2','_accessor','IRenderManagerService','CollaborationController','pageSize','sheets-print.area.currentSheet','sheets-print.headerFooter.display.timeA','SpreadsheetRowHeader','error','univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-z-[1010]\x20univer-flex\x20univer-justify-center','_key','FitWidth','direction','packageName','DateE','univer-absolute\x20univer-inset-0\x20univer-z-[100]\x20univer-box-border\x20univer-flex\x20univer-size-full\x20univer-flex-col\x20univer-overflow-hidden\x20univer-bg-gray-100\x20dark:!univer-bg-gray-900','getNoMergeCellWithCoordByIndex','16nstuVg','sheets-print.headerFooter.timeC','borderBottomClassName','_initCommandListener','subUnitIds','PRINT_PLUGIN_PRINT_COMPONENT'];_0x402b=function(){return _0x54662f;};return _0x402b();}function te(_0x18869f){const _0x2486ab=_0x17c546;let [_0x1ac595,_0x8cefe9]=(0x0,u[_0x2486ab(0x21b)])();return(0x0,u[_0x2486ab(0x2e1)])(()=>{const _0x2e2d0c=_0x2486ab;_0x18869f[_0x2e2d0c(0xeb)](_0x3a0dd6=>{_0x8cefe9(()=>_0x3a0dd6);});},[]),_0x1ac595;}const F={};function ne(_0x55d8ad){const _0x2724eb=_0x17c546;let _0x2f5ab9=_0x55d8ad[_0x2724eb(0x167)]((_0x41dfcf,_0x54ded5)=>_0x41dfcf+_0x54ded5[_0x2724eb(0x1cc)][_0x2724eb(0x394)],0x0),_0x29ca08=new Map(),_0x235005=new Map();_0x55d8ad[_0x2724eb(0x38c)](_0x126e08=>{const _0x49a9dc=_0x2724eb;var _0x28625c;let _0x5cfc1b=_0x126e08[_0x49a9dc(0x1cc)][_0x49a9dc(0x394)],_0xe34386=(_0x28625c=_0x235005[_0x49a9dc(0x198)](_0x126e08[_0x49a9dc(0x216)]))==null?0x0:_0x28625c;_0x235005[_0x49a9dc(0x2be)](_0x126e08[_0x49a9dc(0x216)],_0x5cfc1b+_0xe34386);});let _0x45fdde=0x0;return _0x55d8ad[_0x2724eb(0x2c9)](_0x2e0ff3=>{const _0x116db5=_0x2724eb;var _0x188e63;let _0x23e542=_0x2e0ff3['pages']['length'],_0x3a1841=(_0x188e63=_0x29ca08[_0x116db5(0x198)](_0x2e0ff3[_0x116db5(0x216)]))==null?0x0:_0x188e63,_0x52d993=_0x2e0ff3[_0x116db5(0x1cc)][_0x116db5(0x2c9)]((_0x4cc1cc,_0x4e622e)=>(_0x45fdde++,{..._0x2e0ff3,'range':_0x4cc1cc,'page':_0x45fdde,'pageTotal':_0x2f5ab9,'sheetPageTotal':_0x235005[_0x116db5(0x198)](_0x2e0ff3[_0x116db5(0x216)]),'sheetPage':_0x4e622e+0x1+_0x3a1841}));return _0x29ca08['has'](_0x2e0ff3[_0x116db5(0x216)])?_0x29ca08['set'](_0x2e0ff3[_0x116db5(0x216)],_0x29ca08[_0x116db5(0x198)](_0x2e0ff3[_0x116db5(0x216)])+_0x23e542):_0x29ca08[_0x116db5(0x2be)](_0x2e0ff3[_0x116db5(0x216)],_0x23e542),_0x52d993;})[_0x2724eb(0x1a9)]();}function I(_0x12c1cc,_0x31c821){const _0x17b3f4=_0x17c546;switch(_0x12c1cc){case _0x17b3f4(0x15a):return _0x31c821[_0x17b3f4(0x218)][_0x17b3f4(0x376)];case'@WorksheetTitle':return _0x31c821[_0x17b3f4(0x384)][_0x17b3f4(0x222)]();case _0x17b3f4(0x2dd):return''+_0x31c821[_0x17b3f4(0x1d9)];case'@TotalPage':return''+_0x31c821[_0x17b3f4(0xd9)];case'@TotalSheetPage':return''+_0x31c821[_0x17b3f4(0x357)];case'@SheetPage':return''+_0x31c821[_0x17b3f4(0x154)];case'@DateA':return _0x31c821[_0x17b3f4(0x282)][_0x17b3f4(0x175)](_0x31c821[_0x17b3f4(0x2db)]['t'](_0x17b3f4(0x173)));case _0x17b3f4(0x24e):return _0x31c821[_0x17b3f4(0x282)][_0x17b3f4(0x175)](_0x31c821[_0x17b3f4(0x2db)]['t'](_0x17b3f4(0x16a)));case'@DateC':return _0x31c821['now']['format'](_0x31c821[_0x17b3f4(0x2db)]['t'](_0x17b3f4(0x371)));case _0x17b3f4(0x2c8):return _0x31c821[_0x17b3f4(0x282)][_0x17b3f4(0x175)](_0x31c821['localeService']['t'](_0x17b3f4(0x24f)));case _0x17b3f4(0x168):return _0x31c821[_0x17b3f4(0x282)]['format'](_0x31c821['localeService']['t'](_0x17b3f4(0x386)));case _0x17b3f4(0x361):return _0x31c821[_0x17b3f4(0x282)][_0x17b3f4(0x175)](_0x31c821[_0x17b3f4(0x2db)]['t']('sheets-print.headerFooter.timeA'));case _0x17b3f4(0x382):return _0x31c821['now'][_0x17b3f4(0x175)](_0x31c821['localeService']['t'](_0x17b3f4(0x28a)));case _0x17b3f4(0x324):return _0x31c821[_0x17b3f4(0x282)]['format'](_0x31c821['localeService']['t'](_0x17b3f4(0x26b)));case _0x17b3f4(0x355):return _0x31c821[_0x17b3f4(0x282)][_0x17b3f4(0x175)](_0x31c821[_0x17b3f4(0x2db)]['t']('sheets-print.headerFooter.timeD'));}}const re=Object['values'](b);function L(_0x4da4b6,_0x3fd88d){const _0xe3581c=_0x17c546;let _0x53a31b=_0x4da4b6;return re[_0xe3581c(0x38c)](_0x30d5e0=>{_0x53a31b=_0x53a31b['replaceAll'](_0x30d5e0,I(_0x30d5e0,_0x3fd88d));}),_0x53a31b;}const R=_0x17c546(0x283);function ie(_0x23000a,_0x5b964f){const _0x1314c9=_0x17c546;let _0x3c527a=_0x23000a;_0x5b964f[_0x1314c9(0x38c)](_0xa2b54d=>{const _0x5f54c1=_0x1314c9;_0x3c527a=_0x3c527a['replaceAll'](_0xa2b54d[_0x5f54c1(0x2d3)],''+R+_0xa2b54d[_0x5f54c1(0x385)]+R);});let _0x458b4b=_0x3c527a[_0x1314c9(0x2cc)](R),_0x1f00d3=t[_0x1314c9(0xf6)][_0x1314c9(0x313)]();return _0x458b4b[_0x1314c9(0x38c)]((_0x279c4e,_0xd45179)=>{const _0x2e8057=_0x1314c9;if(_0x279c4e){if(_0xd45179%0x2==0x1){let _0x3dbf0b=_0x279c4e,_0x360afb={'id':'d','documentStyle':{},'drawings':{},'drawingsOrder':[],'body':{'dataStream':_0x279c4e,'customBlocks':[],'customRanges':[{'startIndex':0x0,'endIndex':_0x279c4e[_0x2e8057(0x394)]-0x1,'rangeId':(0x0,t['generateRandomId'])(),'rangeType':t['CustomRangeType'][_0x2e8057(0x2c0)],'properties':{'value':_0x5b964f[_0x2e8057(0x12d)](_0x5ea186=>_0x5ea186[_0x2e8057(0x385)]===_0x3dbf0b)[_0x2e8057(0x2d3)]}}]}};_0x1f00d3[_0x2e8057(0x1ce)](_0x360afb);}else _0x1f00d3[_0x2e8057(0x22a)](_0x279c4e);}}),_0x1f00d3[_0x1314c9(0x318)]();}function ae(_0x545bd0){const _0x5bb694=_0x17c546;var _0x280195;if(!(_0x545bd0!=null&&_0x545bd0[_0x5bb694(0x372)]))return'';let _0x33777a=t['RichTextBuilder'][_0x5bb694(0x313)](t[_0x5bb694(0x232)][_0x5bb694(0x2a7)](_0x545bd0));for(;(_0x280195=_0x33777a[_0x5bb694(0x318)]()[_0x5bb694(0x372)][_0x5bb694(0x1b9)])!=null&&_0x280195[_0x5bb694(0x394)];){let _0x4b432b=_0x33777a[_0x5bb694(0x318)]()[_0x5bb694(0x372)][_0x5bb694(0x1b9)][0x0];if(!_0x4b432b)break;_0x33777a[_0x5bb694(0x391)](_0x4b432b[_0x5bb694(0x1fa)],_0x4b432b[_0x5bb694(0x1d6)]+0x1-_0x4b432b[_0x5bb694(0x1fa)]),_0x33777a[_0x5bb694(0x22a)](_0x4b432b[_0x5bb694(0x1fa)],_0x4b432b[_0x5bb694(0x145)][_0x5bb694(0x2d3)]);}return _0x33777a[_0x5bb694(0x318)]()[_0x5bb694(0x372)][_0x5bb694(0x331)];}const z=({icon:_0x41b37e,items:_0x211bb6,active:_0x57143a,onChange:_0x1f457e,onHover:_0x4c9c63,popupDirection:_0x163d44=_0x17c546(0xf9)})=>(0x0,p[_0x17c546(0x295)])(_0x17c546(0x34d),{'className':_0x17c546(0x215),'onMouseEnter':()=>_0x4c9c63==null?void 0x0:_0x4c9c63(!0x0),'onMouseLeave':()=>_0x4c9c63==null?void 0x0:_0x4c9c63(!0x1),'children':[(0x0,p[_0x17c546(0x317)])('div',{'className':'univer-flex\x20univer-size-5\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-900\x20dark:!univer-text-white','children':_0x41b37e}),(0x0,p[_0x17c546(0x317)])(l[_0x17c546(0x2f5)],{'className':_0x17c546(0x21e)}),_0x57143a&&(0x0,p[_0x17c546(0x317)])(_0x17c546(0x34d),{'style':{[_0x163d44]:_0x17c546(0x330)},'className':'univer-absolute\x20univer-left-0\x20univer-z-[1000]\x20univer-min-w-[200px]\x20univer-px-0\x20univer-py-2','children':(0x0,p['jsx'])(_0x17c546(0x34d),{'className':_0x17c546(0x241),'children':_0x211bb6['map'](_0x2b8773=>(0x0,p['jsxs'])(_0x17c546(0x34d),{'className':_0x17c546(0x18a),'onClick':()=>{const _0x1b1e9f=_0x17c546;_0x1f457e==null||_0x1f457e(_0x2b8773[_0x1b1e9f(0x2d3)]),_0x4c9c63==null||_0x4c9c63(!0x1);},'children':[(0x0,p[_0x17c546(0x317)])(_0x17c546(0x34d),{'className':'univer-text-base\x20univer-text-gray-900\x20dark:!univer-text-white','children':_0x2b8773['label']}),(0x0,p['jsx'])(_0x17c546(0x34d),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x2b8773['desc']})]},_0x2b8773['value']))})})]}),oe=_0x359cf=>{const _0x459f7c=_0x17c546;let {onSelect:_0x255d2e,popupDirection:_0x44e192}=_0x359cf,[_0x3ba1c7,_0x43226f]=(0x0,u[_0x459f7c(0x21b)])(),_0x590d89=(0x0,r[_0x459f7c(0x380)])(t[_0x459f7c(0x3a2)]),_0x1f61be=_0x590d89[_0x459f7c(0x131)](),_0x1368b4=(0x0,r[_0x459f7c(0x380)])(t[_0x459f7c(0x368)])[_0x459f7c(0x1c2)](t[_0x459f7c(0x35a)][_0x459f7c(0x18c)]),_0x10827b=_0x1368b4[_0x459f7c(0x1f2)](),_0x5a7936=(0x0,u[_0x459f7c(0x182)])(()=>(0x0,t[_0x459f7c(0x20d)])(),[]),_0x3558f7=(0x0,u[_0x459f7c(0x182)])(()=>[{'value':_0x459f7c(0x2dd),'label':_0x590d89['t']('sheets-print.headerFooter.display.page'),'desc':I(_0x459f7c(0x2dd),{'workbook':_0x1368b4,'worksheet':_0x10827b,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x590d89,'now':_0x5a7936})},{'value':_0x459f7c(0x230),'label':_0x590d89['t'](_0x459f7c(0x2f0)),'desc':I('@SheetPage',{'workbook':_0x1368b4,'worksheet':_0x10827b,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x590d89,'now':_0x5a7936})},{'value':_0x459f7c(0x1b1),'label':_0x590d89['t']('sheets-print.headerFooter.display.pageTotal'),'desc':I(_0x459f7c(0x1b1),{'workbook':_0x1368b4,'worksheet':_0x10827b,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x590d89,'now':_0x5a7936})},{'value':_0x459f7c(0xe1),'label':_0x590d89['t']('sheets-print.headerFooter.display.sheetPageTotal'),'desc':I(_0x459f7c(0xe1),{'workbook':_0x1368b4,'worksheet':_0x10827b,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x590d89,'now':_0x5a7936})}],[_0x590d89,_0x1f61be]),_0xd50c88=(0x0,u[_0x459f7c(0x182)])(()=>[{'value':'@WorkbookTitle','label':_0x590d89['t']('sheets-print.headerFooter.display.title'),'desc':I(_0x459f7c(0x15a),{'workbook':_0x1368b4,'worksheet':_0x10827b,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x590d89,'now':_0x5a7936})},{'value':_0x459f7c(0x1e6),'label':_0x590d89['t']('sheets-print.headerFooter.display.sheet'),'desc':I(_0x459f7c(0x1e6),{'workbook':_0x1368b4,'worksheet':_0x10827b,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x590d89,'now':_0x5a7936})}],[_0x590d89,_0x1f61be]),_0x296b4d=(0x0,u[_0x459f7c(0x182)])(()=>[{'value':'@DateA','label':_0x590d89['t'](_0x459f7c(0x38a)),'desc':I(_0x459f7c(0x35c),{'workbook':_0x1368b4,'worksheet':_0x10827b,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x590d89,'now':_0x5a7936})},{'value':_0x459f7c(0x24e),'label':_0x590d89['t'](_0x459f7c(0x3a4)),'desc':I(_0x459f7c(0x24e),{'workbook':_0x1368b4,'worksheet':_0x10827b,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x590d89,'now':_0x5a7936})},{'value':_0x459f7c(0x249),'label':_0x590d89['t']('sheets-print.headerFooter.display.dateC'),'desc':I('@DateC',{'workbook':_0x1368b4,'worksheet':_0x10827b,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x590d89,'now':_0x5a7936})},{'value':_0x459f7c(0x2c8),'label':_0x590d89['t']('sheets-print.headerFooter.display.dateD'),'desc':I(_0x459f7c(0x2c8),{'workbook':_0x1368b4,'worksheet':_0x10827b,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x590d89,'now':_0x5a7936})}],[_0x590d89,_0x1f61be]),_0x3a9e2d=(0x0,u[_0x459f7c(0x182)])(()=>[{'value':_0x459f7c(0x361),'label':_0x590d89['t'](_0x459f7c(0x25f)),'desc':I(_0x459f7c(0x361),{'workbook':_0x1368b4,'worksheet':_0x10827b,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x590d89,'now':_0x5a7936})},{'value':_0x459f7c(0x382),'label':_0x590d89['t'](_0x459f7c(0x243)),'desc':I(_0x459f7c(0x382),{'workbook':_0x1368b4,'worksheet':_0x10827b,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x590d89,'now':_0x5a7936})},{'value':_0x459f7c(0x324),'label':_0x590d89['t'](_0x459f7c(0x238)),'desc':I(_0x459f7c(0x324),{'workbook':_0x1368b4,'worksheet':_0x10827b,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x590d89,'now':_0x5a7936})},{'value':_0x459f7c(0x355),'label':_0x590d89['t'](_0x459f7c(0x136)),'desc':I('@TimeD',{'workbook':_0x1368b4,'worksheet':_0x10827b,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x590d89,'now':_0x5a7936})}],[_0x590d89,_0x1f61be]);return(0x0,p[_0x459f7c(0x295)])(_0x459f7c(0x34d),{'className':(0x0,c[_0x459f7c(0x228)])(_0x459f7c(0x39d),c['borderClassName']),'children':[(0x0,p['jsx'])(z,{'icon':(0x0,p[_0x459f7c(0x317)])(l['SheetIcon'],{}),'items':_0x3558f7,'onHover':_0x3d4669=>_0x43226f(_0x3d4669?_0x459f7c(0x125):''),'active':_0x3ba1c7===_0x459f7c(0x125),'onChange':_0x255d2e,'popupDirection':_0x44e192}),(0x0,p['jsx'])(z,{'icon':(0x0,p[_0x459f7c(0x317)])(l[_0x459f7c(0x358)],{}),'items':_0xd50c88,'onHover':_0x41cd67=>_0x43226f(_0x41cd67?'text':''),'active':_0x3ba1c7===_0x459f7c(0x140),'onChange':_0x255d2e,'popupDirection':_0x44e192}),(0x0,p['jsx'])(z,{'icon':(0x0,p[_0x459f7c(0x317)])(l[_0x459f7c(0x28b)],{}),'items':_0x296b4d,'onHover':_0x2630f2=>_0x43226f(_0x2630f2?'date':''),'active':_0x3ba1c7===_0x459f7c(0x190),'onChange':_0x255d2e,'popupDirection':_0x44e192}),(0x0,p['jsx'])(z,{'icon':(0x0,p[_0x459f7c(0x317)])(l[_0x459f7c(0x1e1)],{}),'items':_0x3a9e2d,'onHover':_0x553163=>_0x43226f(_0x553163?'time':''),'active':_0x3ba1c7===_0x459f7c(0x251),'onChange':_0x255d2e,'popupDirection':_0x44e192})]});};function se({width:_0x1c8bdc=0x2b9,height:_0x3ac6a7=0x229,cols:_0x3f3b2d=0x8,rows:_0x106616=0x18,cellWidth:_0x3e1f69=0x57,cellHeight:_0x3b644d=0x17,strokeColor:_0x375d14='#E5E5E5'}){const _0x1a7344=_0x17c546;let _0x302f42=(0x0,u[_0x1a7344(0x182)])(()=>{const _0x511e88=_0x1a7344;let _0x385d06=[];for(let _0x27478e=0x0;_0x27478e<_0x106616;_0x27478e++)for(let _0x2b881f=0x0;_0x2b881f<_0x3f3b2d;_0x2b881f++)_0x385d06['push']((0x0,p[_0x511e88(0x317)])('rect',{'x':_0x2b881f*_0x3e1f69+0.5,'y':_0x27478e*_0x3b644d+0.5,'width':_0x3e1f69,'height':_0x3b644d,'stroke':_0x375d14},_0x27478e+'-'+_0x2b881f));return _0x385d06;},[_0x106616,_0x3f3b2d,_0x3e1f69,_0x3b644d,_0x375d14]);return(0x0,p[_0x1a7344(0x317)])(_0x1a7344(0x33b),{'width':_0x1c8bdc,'height':_0x3ac6a7,'viewBox':'0\x200\x20'+_0x1c8bdc+'\x20'+_0x3ac6a7,'fill':'none','xmlns':'http://www.w3.org/2000/svg','children':_0x302f42});}const B=_0x9dcbf=>{const _0x88b4ff=_0x17c546;var _0x31df97;let {value:_0x3ad5c4,onChange:_0x1480b2,popupDirection:_0x336dc8=_0x88b4ff(0xf9)}=_0x9dcbf,_0x2d679a=(0x0,r[_0x88b4ff(0x380)])(t[_0x88b4ff(0x3a2)]),_0x49c2e4=_0x2d679a['getCurrentLocale'](),_0x40345a=(0x0,r[_0x88b4ff(0x380)])(f['IEditorService']),[_0x3eea7f,_0x35d788]=(0x0,u[_0x88b4ff(0x21b)])(!0x1),_0x55978e=(0x0,u[_0x88b4ff(0x2ab)])(null),_0x2b2038=(0x0,r['useDependency'])(t[_0x88b4ff(0x257)]),_0x5c8456=_0x40345a[_0x88b4ff(0x322)](),_0x1ac891=_0x55978e['current']&&_0x5c8456===((_0x31df97=_0x55978e[_0x88b4ff(0x1ac)])==null?void 0x0:_0x31df97['getEditorId']());(0x0,r['useObservable'])(_0x40345a[_0x88b4ff(0x2d7)]),(0x0,r[_0x88b4ff(0x246)])(_0x40345a[_0x88b4ff(0x1ef)]);let _0x8937a9=(0x0,u['useMemo'])(()=>[{'value':_0x88b4ff(0x2dd),'label':_0x2d679a['t'](_0x88b4ff(0xf5))},{'value':'@SheetPage','label':_0x2d679a['t'](_0x88b4ff(0x2f0))},{'value':_0x88b4ff(0x1b1),'label':_0x2d679a['t'](_0x88b4ff(0x1ad))},{'value':_0x88b4ff(0xe1),'label':_0x2d679a['t'](_0x88b4ff(0x17d))}],[_0x2d679a,_0x49c2e4]),_0x5e10d7=(0x0,u['useMemo'])(()=>[{'value':_0x88b4ff(0x15a),'label':_0x2d679a['t'](_0x88b4ff(0x15e))},{'value':'@WorksheetTitle','label':_0x2d679a['t'](_0x88b4ff(0x151))}],[_0x2d679a,_0x49c2e4]),_0x400810=(0x0,u[_0x88b4ff(0x182)])(()=>[{'value':_0x88b4ff(0x35c),'label':_0x2d679a['t'](_0x88b4ff(0x38a))},{'value':'@DateB','label':_0x2d679a['t'](_0x88b4ff(0x3a4))},{'value':_0x88b4ff(0x249),'label':_0x2d679a['t'](_0x88b4ff(0x383))},{'value':'@DateD','label':_0x2d679a['t'](_0x88b4ff(0x307))}],[_0x2d679a,_0x49c2e4]),_0x7bdf8d=(0x0,u['useMemo'])(()=>[{'value':'@TimeA','label':_0x2d679a['t']('sheets-print.headerFooter.display.timeA')},{'value':_0x88b4ff(0x382),'label':_0x2d679a['t'](_0x88b4ff(0x243))},{'value':_0x88b4ff(0x324),'label':_0x2d679a['t'](_0x88b4ff(0x238))},{'value':_0x88b4ff(0x355),'label':_0x2d679a['t'](_0x88b4ff(0x136))}],[_0x2d679a,_0x49c2e4]),_0x429251=(0x0,u[_0x88b4ff(0x182)])(()=>[..._0x8937a9,..._0x5e10d7,..._0x400810,..._0x7bdf8d],[_0x8937a9,_0x5e10d7,_0x400810,_0x7bdf8d]),[_0xf732d2]=(0x0,u[_0x88b4ff(0x21b)])(()=>ie(_0x3ad5c4,_0x429251));return(0x0,p[_0x88b4ff(0x295)])(_0x88b4ff(0x34d),{'className':'univer-relative\x20univer-mx-2\x20univer-my-0\x20univer-flex-grow','children':[(0x0,p[_0x88b4ff(0x317)])(f[_0x88b4ff(0x2d4)],{'editorRef':_0x55978e,'initialValue':_0xf732d2,'onChange':_0x2a72ce=>{_0x1480b2==null||_0x1480b2(ae(_0x2a72ce));},'onFocusChange':_0x37c167=>{_0x35d788(!!_0x37c167);},'onClickOutside':()=>{const _0x207d48=_0x88b4ff;var _0x28c9ce;(_0x28c9ce=_0x55978e['current'])==null||_0x28c9ce[_0x207d48(0x192)]([]),_0x40345a['blur']();},'placeholder':_0x2d679a['t'](_0x88b4ff(0x129))}),(0x0,p[_0x88b4ff(0x317)])(_0x88b4ff(0x34d),{'className':'univer-absolute\x20univer-left-0\x20univer-z-[100]','style':{[_0x336dc8]:0x24},'children':_0x1ac891&&(0x0,p[_0x88b4ff(0x317)])(oe,{'popupDirection':_0x336dc8,'onSelect':async _0x40072b=>{const _0x1e94a1=_0x88b4ff;var _0x16e0a7;let _0x3b0113=(_0x16e0a7=_0x55978e['current'])==null?void 0x0:_0x16e0a7[_0x1e94a1(0x37d)]();if(!_0x55978e['current'])return;let _0x36851d=_0x55978e[_0x1e94a1(0x1ac)]['getCursorPosition']();if(_0x36851d<0x0)return;let _0x43dba4=_0x429251[_0x1e94a1(0x12d)](_0x17679c=>_0x17679c['value']===_0x40072b);if(!_0x43dba4)return;let _0x40617a={'dataStream':_0x43dba4[_0x1e94a1(0x385)],'customRanges':[{'startIndex':0x0,'endIndex':_0x43dba4[_0x1e94a1(0x385)][_0x1e94a1(0x394)]-0x1,'rangeId':(0x0,t[_0x1e94a1(0x176)])(),'rangeType':t[_0x1e94a1(0x14c)][_0x1e94a1(0x2c0)],'properties':{'value':_0x43dba4[_0x1e94a1(0x2d3)]},'wholeEntity':!0x0}]};await(0x0,t['awaitTime'])(0x0);let _0x3d04a6=t['BuildTextUtils']['selection'][_0x1e94a1(0x253)]({'selection':{'startOffset':_0x36851d,'endOffset':_0x36851d,'collapsed':!0x0},'body':_0x40617a,'doc':_0x55978e['current']['getDocumentDataModel']()});if(!_0x3d04a6)return;let _0x110bf1={'id':d['RichTextEditingMutation']['id'],'params':{'unitId':_0x3b0113,'actions':[],'textRanges':[{'startOffset':_0x36851d+_0x40617a[_0x1e94a1(0x331)][_0x1e94a1(0x394)],'endOffset':_0x36851d+_0x40617a['dataStream']['length'],'collapsed':!0x0}],'trigger':_0x1e94a1(0x183)}},_0x4d8e9a=t[_0x1e94a1(0x392)][_0x1e94a1(0x15b)]();_0x110bf1[_0x1e94a1(0x242)][_0x1e94a1(0x33d)]=_0x4d8e9a['editOp'](_0x3d04a6[_0x1e94a1(0xed)]()),_0x2b2038[_0x1e94a1(0x2f2)](_0x110bf1['id'],_0x110bf1[_0x1e94a1(0x242)]),setTimeout(()=>{_0x40345a['focus'](_0x3b0113);},0x0);}})})]});},ce=_0x3e9d3e=>{const _0x428b65=_0x17c546;var _0x4dffab;let {onClose:_0x1d78c0}=_0x3e9d3e,_0x5e7011=(0x0,r[_0x428b65(0x380)])(O),_0x241f0e=(_0x4dffab=_0x5e7011[_0x428b65(0x234)][_0x428b65(0x2a1)])==null?x:_0x4dffab,[_0x588647,_0x330660]=(0x0,u[_0x428b65(0x21b)])(_0x241f0e['topLeft']),[_0x23a6f5,_0x266054]=(0x0,u[_0x428b65(0x21b)])(_0x241f0e[_0x428b65(0x14f)]),[_0x1e6260,_0x292568]=(0x0,u[_0x428b65(0x21b)])(_0x241f0e['topRight']),[_0x494516,_0x1fbe12]=(0x0,u[_0x428b65(0x21b)])(_0x241f0e[_0x428b65(0xdb)]),[_0xd2f223,_0x2116df]=(0x0,u[_0x428b65(0x21b)])(_0x241f0e[_0x428b65(0x31d)]),[_0x12d58b,_0x3d72d4]=(0x0,u[_0x428b65(0x21b)])(_0x241f0e[_0x428b65(0x381)]),_0x5f56d1=(0x0,r[_0x428b65(0x380)])(t['LocaleService']);return(0x0,p[_0x428b65(0x295)])(_0x428b65(0x34d),{'className':'univer-absolute\x20univer-inset-0\x20univer-z-[100]\x20univer-flex\x20univer-size-full\x20univer-flex-col\x20univer-overflow-hidden\x20univer-bg-white\x20dark:!univer-bg-gray-900','children':[(0x0,p[_0x428b65(0x295)])('div',{'className':(0x0,c[_0x428b65(0x228)])('univer-box-border\x20univer-flex\x20univer-h-16\x20univer-w-full\x20univer-flex-none\x20univer-flex-row\x20univer-items-center\x20univer-justify-between\x20univer-bg-white\x20univer-px-4\x20dark:!univer-bg-gray-900',c[_0x428b65(0x26c)]),'children':[(0x0,p['jsx'])(_0x428b65(0x34d),{'className':_0x428b65(0xe5),'children':_0x5f56d1['t'](_0x428b65(0xf1))}),(0x0,p['jsxs'])(_0x428b65(0x34d),{'className':_0x428b65(0x13c),'children':[(0x0,p[_0x428b65(0x317)])(c[_0x428b65(0x21a)],{'className':_0x428b65(0x30a),'onClick':()=>{_0x1d78c0();},'children':_0x5f56d1['t'](_0x428b65(0x39c))}),(0x0,p['jsx'])(c['Button'],{'variant':_0x428b65(0x2e3),'onClick':()=>{const _0x55ac2a=_0x428b65;_0x1d78c0(),_0x5e7011[_0x55ac2a(0x393)]({'headerFooterSetting':{'topLeft':_0x588647,'topCenter':_0x23a6f5,'topRight':_0x1e6260,'bottomLeft':_0x494516,'bottomCenter':_0xd2f223,'bottomRight':_0x12d58b}});},'children':_0x5f56d1['t'](_0x428b65(0x23d))})]})]}),(0x0,p[_0x428b65(0x317)])('div',{'className':'univer-flex\x20univer-flex-1\x20univer-flex-col\x20univer-overflow-hidden','children':(0x0,p[_0x428b65(0x317)])(_0x428b65(0x34d),{'className':_0x428b65(0x17c),'children':(0x0,p[_0x428b65(0x295)])('div',{'className':_0x428b65(0x109),'children':[(0x0,p['jsxs'])('div',{'className':'univer-flex\x20univer-w-full','children':[(0x0,p[_0x428b65(0x317)])(B,{'value':_0x588647,'onChange':_0x495470=>_0x330660(_0x495470)}),(0x0,p[_0x428b65(0x317)])(B,{'value':_0x23a6f5,'onChange':_0x52e147=>_0x266054(_0x52e147)}),(0x0,p[_0x428b65(0x317)])(B,{'value':_0x1e6260,'onChange':_0x4999eb=>_0x292568(_0x4999eb)})]}),(0x0,p[_0x428b65(0x317)])('div',{'className':'univer-mx-2\x20univer-my-5','children':(0x0,p['jsx'])(se,{})}),(0x0,p[_0x428b65(0x295)])('div',{'className':_0x428b65(0x2f8),'children':[(0x0,p['jsx'])(B,{'popupDirection':_0x428b65(0x1da),'value':_0x494516,'onChange':_0x44eb51=>_0x1fbe12(_0x44eb51)}),(0x0,p[_0x428b65(0x317)])(B,{'popupDirection':_0x428b65(0x1da),'value':_0xd2f223,'onChange':_0x4e9d13=>_0x2116df(_0x4e9d13)}),(0x0,p[_0x428b65(0x317)])(B,{'popupDirection':_0x428b65(0x1da),'value':_0x12d58b,'onChange':_0x2782c6=>_0x3d72d4(_0x2782c6)})]})]})})})]});};function _0x2a04(_0x5b5b0c,_0x25029f){_0x5b5b0c=_0x5b5b0c-0xd9;const _0x402b22=_0x402b();let _0x2a04a9=_0x402b22[_0x5b5b0c];return _0x2a04a9;}var V=class extends t[_0x17c546(0x17a)]{get[_0x17c546(0x2ea)](){const _0xef7b04=_0x17c546;return this['_renderConfig'][_0xef7b04(0x2b4)];}get[_0x17c546(0x11d)](){return this['_key'];}get['engine'](){const _0x10fa8f=_0x17c546;return this[_0x10fa8f(0x300)];}get[_0x17c546(0x1e2)](){return this['_container'];}get['root'](){const _0x12f0b6=_0x17c546;return this[_0x12f0b6(0x387)];}get[_0x17c546(0x234)](){const _0x30e5a9=_0x17c546;return this[_0x30e5a9(0x327)];}set[_0x17c546(0x234)](_0x17252a){const _0x5bd459=_0x17c546;this[_0x5bd459(0x327)]=_0x17252a;}constructor(_0x58cb91,_0x7154b,_0x179910,_0x49365a=!0x0,_0x2ff464=0x1){const _0x4655de=_0x17c546;super(),this['_accessor']=_0x58cb91,this['_config']=_0x7154b,this[_0x4655de(0x327)]=_0x179910,this['_isPreview']=_0x49365a,this[_0x4655de(0x1ed)]=_0x2ff464,T(this,'_engine',void 0x0),T(this,_0x4655de(0x130),void 0x0),T(this,_0x4655de(0x263),void 0x0),T(this,'_unitId',void 0x0),T(this,_0x4655de(0x22f),void 0x0),T(this,_0x4655de(0x1a7),void 0x0),T(this,_0x4655de(0x121),void 0x0),T(this,_0x4655de(0x29b),void 0x0),T(this,'_viewLeftTop',void 0x0),T(this,_0x4655de(0x2c3),null),T(this,'_viewColumnRight',null),T(this,_0x4655de(0x2aa),document[_0x4655de(0x108)](_0x4655de(0x34d))),T(this,_0x4655de(0x387),document['createElement'](_0x4655de(0x34d))),T(this,_0x4655de(0x103),void 0x0),T(this,_0x4655de(0x2fd),void 0x0),T(this,'_dirty',!0x0),T(this,_0x4655de(0x2ac),void 0x0),T(this,_0x4655de(0x163),new t[(_0x4655de(0x320))]()),T(this,_0x4655de(0x31e),void 0x0),T(this,_0x4655de(0x2b2),0x0),T(this,_0x4655de(0x20f),0x0);let {unitId:_0x5b43dc,subUnitId:_0x494c6e}=this[_0x4655de(0x124)];this[_0x4655de(0x314)]=_0x5b43dc,this[_0x4655de(0x22f)]=_0x494c6e,this[_0x4655de(0x263)]=_0x5b43dc+'_'+_0x494c6e,this['_univerInstanceService']=this['_accessor'][_0x4655de(0x198)](t[_0x4655de(0x368)]);let _0x51fa32=this['_accessor'][_0x4655de(0x198)](a[_0x4655de(0x25b)]);this[_0x4655de(0x2ac)]=_0x51fa32[_0x4655de(0x346)](_0x5b43dc);let _0xf53cc0=this['_targetRender'][_0x4655de(0x2d6)](o[_0x4655de(0x1ee)])['ensureSkeleton'](_0x494c6e);this['_skeleton']=_0xf53cc0,this[_0x4655de(0x387)][_0x4655de(0xde)]=_0x4655de(0x202),this[_0x4655de(0x12c)]();}[_0x17c546(0x288)](){const _0x15a40d=_0x17c546;var _0x2db72c;super[_0x15a40d(0x288)](),this['_effects']['dispose'](),(_0x2db72c=this['_container'][_0x15a40d(0x135)])==null||_0x2db72c['removeChild'](this[_0x15a40d(0x2aa)]);}get[_0x17c546(0x119)](){const _0x2b327d=_0x17c546;let {w:_0x3f8624,h:_0x29d43b}=this[_0x2b327d(0x124)][_0x2b327d(0x25d)];return{'w':_0x3f8624*this[_0x2b327d(0x1ed)],'h':_0x29d43b*this[_0x2b327d(0x1ed)]};}get[_0x17c546(0x1c0)](){const _0x241026=_0x17c546;let _0x117605=this['_config'][_0x241026(0x1c0)];return{'top':_0x117605[_0x241026(0xf9)]*this[_0x241026(0x1ed)],'bottom':_0x117605['bottom']*this[_0x241026(0x1ed)],'left':_0x117605[_0x241026(0x36d)]*this[_0x241026(0x1ed)],'right':_0x117605[_0x241026(0x33a)]*this[_0x241026(0x1ed)]};}[_0x17c546(0x12c)](){const _0x549a18=_0x17c546;let _0x2786e6=this[_0x549a18(0x119)],_0x37f9c6=this[_0x549a18(0x124)][_0x549a18(0x3a5)]*this[_0x549a18(0x1ed)],_0x577b68=this['_isPreview']?Math[_0x549a18(0x2f9)](0x1,window[_0x549a18(0x367)]):0x1;this[_0x549a18(0x300)]=new a[(_0x549a18(0xfb))]('',{'elementWidth':_0x2786e6['w'],'elementHeight':_0x2786e6['h'],'dpr':_0x577b68,'renderMode':a[_0x549a18(0x2a4)][_0x549a18(0x2de)]}),this[_0x549a18(0x130)]=new a[(_0x549a18(0x275))](this[_0x549a18(0x263)],this['_engine']),this[_0x549a18(0x130)]['scale'](_0x37f9c6,_0x37f9c6),this[_0x549a18(0x300)][_0x549a18(0x2d1)](this['_container'],this['_isPreview']),this[_0x549a18(0x300)][_0x549a18(0x365)]()[_0x549a18(0x304)]()[_0x549a18(0x16c)](this[_0x549a18(0x263)]+'_'+(0x0,t[_0x549a18(0x176)])(0x4)),this[_0x549a18(0x302)](),this[_0x549a18(0x329)](),this[_0x549a18(0xf3)]({'dispose':()=>{const _0x2a3436=_0x549a18;this[_0x2a3436(0x300)][_0x2a3436(0x288)](),this['_scene'][_0x2a3436(0x288)](),this[_0x2a3436(0x1f5)]();}});}['clearMemory'](){const _0xe9c6e=_0x17c546;this['_skeleton'][_0xe9c6e(0x2df)]();}['setPreviewScale'](_0x272d92){const _0x2f1273=_0x17c546;this[_0x2f1273(0x130)]['scale'](this[_0x2f1273(0x124)][_0x2f1273(0x3a5)]*_0x272d92,this[_0x2f1273(0x124)][_0x2f1273(0x3a5)]*_0x272d92),this[_0x2f1273(0x1ed)]=_0x272d92,this[_0x2f1273(0x335)](!0x0);}[_0x17c546(0x336)](_0x1e1756){const _0x2b3f94=_0x17c546;this[_0x2b3f94(0x124)]=_0x1e1756,this[_0x2b3f94(0x335)](!0x0);}['markDirty'](_0x7bdcaf){this['_dirty']=_0x7bdcaf;}['_addComponent'](){const _0x243982=_0x17c546;let _0x104ac0=new a[(_0x243982(0x13a))](_0x243982(0x200),this['_skeleton'],!0x1);if(_0x104ac0[_0x243982(0x366)]=!0x0,this['_scene'][_0x243982(0x1e3)](_0x104ac0),this[_0x243982(0x31e)]=_0x104ac0,this['_config'][_0x243982(0x375)]){let _0x42c0d1=new a[(_0x243982(0x260))]('__RowHeaderPrint__',this['_skeleton']),_0x3f9c7b=new a[(_0x243982(0x22e))]('__ColumnHeaderPrint__',this[_0x243982(0x103)]);this[_0x243982(0x130)][_0x243982(0x30d)]([_0x42c0d1,_0x3f9c7b],0x1);}let _0x3288ca=this[_0x243982(0x25a)][_0x243982(0x198)](o[_0x243982(0x29f)]);_0x3288ca['interceptor'][_0x243982(0x19a)](_0x3288ca[_0x243982(0x281)]['getInterceptPoints']()[_0x243982(0x20e)])(void 0x0,{'unitId':this[_0x243982(0x314)],'subUnitId':this[_0x243982(0x22f)],'scene':this['_scene'],'engine':this[_0x243982(0x300)],'root':this[_0x243982(0x387)],'worksheet':this[_0x243982(0x103)][_0x243982(0x384)],'skeleton':this[_0x243982(0x103)],'offset':this['_getTranslateOffset'](),'spreadsheet':this[_0x243982(0x31e)]});}['_addViewport'](){const _0x119ea6=_0x17c546;this[_0x119ea6(0x1a7)]=new a[(_0x119ea6(0x37b))](a[_0x119ea6(0x32e)][_0x119ea6(0x127)],this[_0x119ea6(0x130)],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this[_0x119ea6(0x121)]=new a[(_0x119ea6(0x37b))](a[_0x119ea6(0x32e)][_0x119ea6(0x389)],this[_0x119ea6(0x130)],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this[_0x119ea6(0x29b)]=new a[(_0x119ea6(0x37b))](a['SHEET_VIEWPORT_KEY'][_0x119ea6(0x126)],this['_scene'],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this[_0x119ea6(0x22b)]=new a[(_0x119ea6(0x37b))](a[_0x119ea6(0x32e)][_0x119ea6(0x338)],this['_scene'],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this[_0x119ea6(0x124)][_0x119ea6(0x375)]&&(this['_viewRowBottom']=new a[(_0x119ea6(0x37b))](a['SHEET_VIEWPORT_KEY'][_0x119ea6(0x116)],this[_0x119ea6(0x130)],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this['_viewColumnRight']=new a[(_0x119ea6(0x37b))](a['SHEET_VIEWPORT_KEY'][_0x119ea6(0x2cb)],this['_scene'],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}));}[_0x17c546(0x2cd)](){const _0xd8c8a=_0x17c546;let {freeze:_0x3448e8,range:_0x1d0905}=this[_0xd8c8a(0x124)],{xSplit:_0xc298a8,ySplit:_0x12d24f,startColumn:_0x2d13c5,startRow:_0x592a62}=_0x3448e8,{rowHeaderWidth:_0x17850c,columnHeaderHeight:_0x2e3b6a}=this['_skeleton'];this[_0xd8c8a(0x130)][_0xd8c8a(0x3a5)](this[_0xd8c8a(0x124)][_0xd8c8a(0x3a5)]*this[_0xd8c8a(0x1ed)],this[_0xd8c8a(0x124)]['scale']*this[_0xd8c8a(0x1ed)]);let _0x3bd739=this['_skeleton']['getNoMergeCellWithCoordByIndex'](_0x592a62-_0x12d24f,_0x2d13c5-_0xc298a8,!0x1),_0x4638b9=this[_0xd8c8a(0x103)][_0xd8c8a(0x269)](_0x592a62,_0x2d13c5,!0x1),_0x39ffd1=_0xc298a8>0x0?_0x4638b9[_0xd8c8a(0x18b)]-_0x3bd739[_0xd8c8a(0x18b)]:0x0,_0x552a1a=_0x12d24f>0x0?_0x4638b9[_0xd8c8a(0x217)]-_0x3bd739['startY']:0x0,_0x4b444b={'startX':_0xc298a8>0x0?_0x3bd739['startX']:0x0,'endX':_0xc298a8>0x0?_0x4638b9[_0xd8c8a(0x18b)]:0x0,'startY':_0x12d24f>0x0?_0x3bd739['startY']:0x0,'endY':_0x12d24f>0x0?_0x4638b9[_0xd8c8a(0x217)]:0x0},_0x5648ec=this[_0xd8c8a(0x103)][_0xd8c8a(0x269)](_0x1d0905[_0xd8c8a(0x280)],_0x1d0905['startColumn'],!0x1),_0x3640f9=this['_scene'][_0xd8c8a(0x1fd)](),_0x144c16=_0x3d0922=>(0x0,a[_0xd8c8a(0xdf)])(_0x3d0922,_0x3640f9[_0xd8c8a(0x1bd)]),_0x89401c=_0x3b576c=>(0x0,a[_0xd8c8a(0xdf)])(_0x3b576c,_0x3640f9[_0xd8c8a(0x323)]),_0x43f713=this[_0xd8c8a(0x103)]['getNoMergeCellWithCoordByIndex'](_0x1d0905[_0xd8c8a(0x207)],_0x1d0905[_0xd8c8a(0x193)],!0x1),_0x1288f5=Math['max'](0x0,_0x144c16(_0x43f713[_0xd8c8a(0x209)])-Math[_0xd8c8a(0x2f9)](_0x5648ec[_0xd8c8a(0x18b)],_0x4b444b['endX'])),_0x558266=Math[_0xd8c8a(0x2f9)](0x0,_0x89401c(_0x43f713[_0xd8c8a(0x2ee)])-_0x89401c(Math[_0xd8c8a(0x2f9)](_0x5648ec[_0xd8c8a(0x217)],_0x4b444b['endY']))),_0x24f6d0=0x1/Math[_0xd8c8a(0x2f9)](_0x3640f9[_0xd8c8a(0x1bd)],_0x3640f9['scaleY']),_0x8c010=this[_0xd8c8a(0x124)][_0xd8c8a(0x375)]?_0x17850c:0x0,_0x45ae7e=this[_0xd8c8a(0x124)]['includeHeaderDimensions']?_0x2e3b6a:0x0,_0x32182c=_0x8c010+_0x39ffd1+_0x1288f5+_0x24f6d0,_0x4737b2=_0x45ae7e+_0x552a1a+_0x558266+_0x24f6d0;this[_0xd8c8a(0x2b2)]=_0x32182c,this[_0xd8c8a(0x20f)]=_0x4737b2;let _0x4f72b9={'x':_0x39ffd1,'y':_0x552a1a},_0xb8017b=_0x24f6d0,_0x1d9100=_0x24f6d0,_0x42f193={'x':_0x144c16(_0x43f713[_0xd8c8a(0x209)])-_0x144c16(_0x1288f5)-_0x144c16(Math[_0xd8c8a(0x2f9)](_0x5648ec[_0xd8c8a(0x18b)],_0x4b444b[_0xd8c8a(0x209)])),'y':_0x89401c(_0x43f713[_0xd8c8a(0x2ee)])-_0x89401c(_0x558266)-_0x89401c(Math[_0xd8c8a(0x2f9)](_0x5648ec['startY'],_0x4b444b['endY']))};if(_0xc298a8>0x0&&_0x12d24f>0x0?(this['_viewLeftTop'][_0xd8c8a(0x22c)](),this[_0xd8c8a(0x22b)]['resizeWhenFreezeChange']({'top':0x0,'left':0x0,'height':_0x89401c(_0x4f72b9['y']),'width':_0x144c16(_0x4f72b9['x'])}),this[_0xd8c8a(0x22b)][_0xd8c8a(0x256)]({'viewportScrollX':_0x144c16(_0x4b444b[_0xd8c8a(0x18b)])+_0x144c16(_0x17850c),'viewportScrollY':_0x89401c(_0x4b444b[_0xd8c8a(0x217)])+_0x89401c(_0x2e3b6a)})):this['_viewLeftTop'][_0xd8c8a(0x316)](),_0xc298a8>0x0?(this[_0xd8c8a(0x121)][_0xd8c8a(0x22c)](),this[_0xd8c8a(0x121)]['resizeWhenFreezeChange']({'top':_0x144c16(_0x4f72b9['y']),'left':0x0,'height':_0x89401c(_0x558266)+_0xb8017b+_0x42f193['y'],'width':_0x144c16(_0x4f72b9['x'])}),this[_0xd8c8a(0x121)]['updateScrollVal']({'viewportScrollX':_0x144c16(_0x4b444b['startX'])+_0x144c16(_0x17850c),'viewportScrollY':_0x89401c(_0x5648ec[_0xd8c8a(0x217)])+_0x89401c(_0x2e3b6a)-_0x89401c(_0x4f72b9['y'])})):this['_viewLeft'][_0xd8c8a(0x316)](),_0x12d24f>0x0?(this[_0xd8c8a(0x29b)][_0xd8c8a(0x22c)](),this[_0xd8c8a(0x29b)][_0xd8c8a(0x2ff)]({'top':0x0,'left':_0x144c16(_0x4f72b9['x']),'height':_0x89401c(_0x4f72b9['y']),'width':_0x144c16(_0x1288f5)+_0x1d9100+_0x42f193['x']}),this['_viewTop'][_0xd8c8a(0x256)]({'viewportScrollX':_0x144c16(_0x5648ec['startX'])+_0x144c16(_0x17850c)-_0x144c16(_0x4f72b9['x']),'viewportScrollY':_0x89401c(_0x4b444b[_0xd8c8a(0x217)])+_0x89401c(_0x2e3b6a)})):this[_0xd8c8a(0x29b)][_0xd8c8a(0x316)](),this[_0xd8c8a(0x124)][_0xd8c8a(0x375)]){let _0x19d8e0=_0x144c16(_0x17850c),_0x1ce284=_0x89401c(_0x2e3b6a),_0x164e1e=_0x144c16(_0x1288f5)+_0x1d9100+_0x42f193['x'],_0x4dc0bf=_0x89401c(_0x558266)+_0xb8017b+_0x42f193['y'];this[_0xd8c8a(0x1a7)]['resizeWhenFreezeChange']({'top':_0x1ce284,'left':_0x19d8e0,'height':_0x4dc0bf,'width':_0x164e1e}),this['_viewMain'][_0xd8c8a(0x256)]({'viewportScrollX':_0x144c16(_0x5648ec[_0xd8c8a(0x18b)]),'viewportScrollY':_0x89401c(_0x5648ec[_0xd8c8a(0x217)])}),this[_0xd8c8a(0x2c3)]&&this['_viewColumnRight']&&(this['_viewColumnRight'][_0xd8c8a(0x22c)](),this['_viewColumnRight'][_0xd8c8a(0x2ff)]({'top':0x0,'left':_0x19d8e0,'height':_0x1ce284,'width':_0x164e1e}),this[_0xd8c8a(0x2c5)]['updateScrollVal']({'viewportScrollX':_0x144c16(_0x5648ec[_0xd8c8a(0x18b)]),'viewportScrollY':0x0}),this['_viewRowBottom'][_0xd8c8a(0x22c)](),this[_0xd8c8a(0x2c3)][_0xd8c8a(0x2ff)]({'top':_0x1ce284,'left':0x0,'height':_0x4dc0bf,'width':_0x19d8e0}),this[_0xd8c8a(0x2c3)]['updateScrollVal']({'viewportScrollX':0x0,'viewportScrollY':_0x89401c(_0x5648ec[_0xd8c8a(0x217)])}));}else this['_viewMain'][_0xd8c8a(0x2ff)]({'top':_0x89401c(_0x4f72b9['y']),'left':_0x144c16(_0x4f72b9['x']),'height':_0x89401c(_0x558266)+_0xb8017b+_0x42f193['y'],'width':_0x144c16(_0x1288f5)+_0x1d9100+_0x42f193['x']}),this[_0xd8c8a(0x1a7)][_0xd8c8a(0x256)]({'viewportScrollX':_0x144c16(_0x5648ec['startX'])+_0x144c16(_0x17850c)-_0x144c16(_0x4f72b9['x']),'viewportScrollY':_0x89401c(_0x5648ec[_0xd8c8a(0x217)])+_0x89401c(_0x2e3b6a)-_0x89401c(_0x4f72b9['y'])});}[_0x17c546(0x214)](){const _0x1e02aa=_0x17c546;let _0x334993=this[_0x1e02aa(0x1c0)],{vAlign:_0x14d41c,hAlign:_0x361720}=this[_0x1e02aa(0x327)],_0x3c6980=Math[_0x1e02aa(0x2f9)](this[_0x1e02aa(0x130)][_0x1e02aa(0x1bd)],this['_scene'][_0x1e02aa(0x323)]),_0x1753af;switch(_0x361720){case i[_0x1e02aa(0x36a)]['Start']:_0x1753af=_0x334993[_0x1e02aa(0x36d)];break;case i[_0x1e02aa(0x36a)][_0x1e02aa(0x1bc)]:_0x1753af=this['paperSize']['w']-this[_0x1e02aa(0x2b2)]*_0x3c6980-_0x334993['right'];break;default:_0x1753af=_0x334993[_0x1e02aa(0x36d)]+(this[_0x1e02aa(0x119)]['w']-this[_0x1e02aa(0x2b2)]*_0x3c6980-_0x334993[_0x1e02aa(0x36d)]-_0x334993['right'])/0x2;break;}let _0x7fef;switch(_0x14d41c){case i[_0x1e02aa(0x36a)][_0x1e02aa(0x155)]:_0x7fef=_0x334993[_0x1e02aa(0xf9)];break;case i[_0x1e02aa(0x36a)]['End']:_0x7fef=this[_0x1e02aa(0x119)]['h']-this[_0x1e02aa(0x20f)]*_0x3c6980-_0x334993[_0x1e02aa(0x1da)];break;default:_0x7fef=(this[_0x1e02aa(0x119)]['h']-this[_0x1e02aa(0x20f)]*_0x3c6980-_0x334993['top']-_0x334993[_0x1e02aa(0x1da)])/0x2+_0x334993['top'];break;}return{'offsetX':Math[_0x1e02aa(0x258)](_0x1753af),'offsetY':Math[_0x1e02aa(0x258)](_0x7fef),'scale':_0x3c6980};}[_0x17c546(0x37f)](){const _0x54325d=_0x17c546;this[_0x54325d(0x2cd)](),this[_0x54325d(0x163)][_0x54325d(0x288)](),this[_0x54325d(0x163)]=new t[(_0x54325d(0x320))]();let _0x280904=this[_0x54325d(0x25a)][_0x54325d(0x198)](o[_0x54325d(0x29f)]),{offsetX:_0x10ef64,offsetY:_0x55d187,scale:_0x6e319f}=this[_0x54325d(0x214)](),_0x30751b=_0x10ef64,_0x3829f4=_0x55d187;this[_0x54325d(0x387)][_0x54325d(0x161)][_0x54325d(0x36d)]=_0x30751b+'px',this[_0x54325d(0x387)][_0x54325d(0x161)][_0x54325d(0xf9)]=_0x3829f4+'px';let _0x418a75=this[_0x54325d(0x2b2)]*_0x6e319f,_0x2558c4=this[_0x54325d(0x20f)]*_0x6e319f;this['_root']['style'][_0x54325d(0x34c)]=_0x418a75+'px',this['_root']['style'][_0x54325d(0x2e0)]=_0x2558c4+'px',this[_0x54325d(0x387)][_0x54325d(0x161)][_0x54325d(0x2cf)]=_0x54325d(0x342),this['_root'][_0x54325d(0x161)][_0x54325d(0x354)]=_0x54325d(0x199),_0x280904[_0x54325d(0x281)][_0x54325d(0x19a)](_0x280904[_0x54325d(0x281)][_0x54325d(0x20c)]()[_0x54325d(0x1a2)])(this[_0x54325d(0x163)],{'unitId':this[_0x54325d(0x314)],'subUnitId':this[_0x54325d(0x22f)],'scene':this[_0x54325d(0x130)],'engine':this[_0x54325d(0x300)],'root':this['_root'],'worksheet':this[_0x54325d(0x103)]['worksheet'],'skeleton':this['_skeleton'],'offset':this[_0x54325d(0x214)]()});}['_renderMainScene'](){const _0x46d3ff=_0x17c546;this[_0x46d3ff(0x2b6)]&&this['prepare']();let _0xf27f7b=this[_0x46d3ff(0x300)][_0x46d3ff(0x365)]()[_0x46d3ff(0x304)](),{gridlines:_0x4c61da}=this['_renderConfig'],{offsetX:_0x5b7d2d,offsetY:_0x3656f2}=this[_0x46d3ff(0x214)]();this[_0x46d3ff(0x31e)][_0x46d3ff(0x1ae)](!_0x4c61da),this[_0x46d3ff(0x31e)]['makeForceDirty'](),this[_0x46d3ff(0x130)]['makeDirty'](),_0xf27f7b[_0x46d3ff(0x24b)](),_0xf27f7b[_0x46d3ff(0x1e0)](_0x5b7d2d,_0x3656f2),this['_scene'][_0x46d3ff(0x2bb)](),_0xf27f7b[_0x46d3ff(0x19f)]();}['_renderHeaderFooterByCustom'](_0x336332,_0x1ce832,_0x63ac57){const _0x2c6f96=_0x17c546;let {w:_0x3bc26b,h:_0x305e4b}=this['paperSize'],_0x2c88ff=this[_0x2c6f96(0x300)][_0x2c6f96(0x365)]()[_0x2c6f96(0x304)]();_0x2c88ff[_0x2c6f96(0x24b)](),_0x2c88ff['font']=_0x2c6f96(0x315)+a[_0x2c6f96(0x298)];let _0x59efee=0x13*this[_0x2c6f96(0x1ed)],_0x233c7b=0x14*this['_previewScale'],_0x528eda={'workbook':_0x1ce832,'worksheet':_0x63ac57,'now':(0x0,t['dateKit'])(),'localeService':this[_0x2c6f96(0x25a)][_0x2c6f96(0x198)](t['LocaleService']),'page':this['_config']['page'],'pageTotal':this[_0x2c6f96(0x124)][_0x2c6f96(0xd9)],'sheetPageTotal':this['_config'][_0x2c6f96(0x357)],'sheetPage':this[_0x2c6f96(0x124)][_0x2c6f96(0x154)]};if(_0x336332[_0x2c6f96(0xf2)]){let _0xdd417a=L(_0x336332['topLeft'],_0x528eda);_0x2c88ff[_0x2c6f96(0xec)](_0xdd417a,_0x59efee,_0x233c7b);}if(_0x336332['topCenter']){let _0x586fda=L(_0x336332['topCenter'],_0x528eda),_0x5ba56c=_0x2c88ff[_0x2c6f96(0x2f6)](_0x586fda);_0x2c88ff[_0x2c6f96(0xec)](_0x586fda,(_0x3bc26b-_0x5ba56c[_0x2c6f96(0x34c)])/0x2,_0x233c7b);}if(_0x336332[_0x2c6f96(0x10c)]){let _0x5e4bb8=L(_0x336332[_0x2c6f96(0x10c)],_0x528eda),_0x3dd200=_0x2c88ff['measureText'](_0x5e4bb8);_0x2c88ff[_0x2c6f96(0xec)](_0x5e4bb8,_0x3bc26b-_0x3dd200[_0x2c6f96(0x34c)]-_0x59efee,_0x233c7b);}if(_0x336332[_0x2c6f96(0xdb)]){let _0x5ecbe1=L(_0x336332[_0x2c6f96(0xdb)],_0x528eda);_0x2c88ff[_0x2c6f96(0xec)](_0x5ecbe1,_0x59efee,_0x305e4b-_0x233c7b);}if(_0x336332[_0x2c6f96(0x31d)]){let _0x27e323=L(_0x336332[_0x2c6f96(0x31d)],_0x528eda),_0x297150=_0x2c88ff[_0x2c6f96(0x2f6)](_0x27e323);_0x2c88ff[_0x2c6f96(0xec)](_0x27e323,(_0x3bc26b-_0x297150['width'])/0x2,_0x305e4b-_0x233c7b);}if(_0x336332[_0x2c6f96(0x381)]){let _0x5021b4=L(_0x336332['bottomRight'],_0x528eda),_0xed76da=_0x2c88ff[_0x2c6f96(0x2f6)](_0x5021b4);_0x2c88ff['fillText'](_0x5021b4,_0x3bc26b-_0xed76da['width']-_0x59efee,_0x305e4b-_0x233c7b);}_0x2c88ff[_0x2c6f96(0x19f)]();}[_0x17c546(0x2ad)](){const _0x3896f0=_0x17c546;let _0x2de838=this[_0x3896f0(0x2fd)]['getUniverSheetInstance'](this[_0x3896f0(0x124)][_0x3896f0(0x224)]),_0x1428e5=_0x2de838==null?void 0x0:_0x2de838[_0x3896f0(0x294)](this[_0x3896f0(0x124)][_0x3896f0(0x216)]),{headerFooter:_0x349073,isCustomHeaderFooter:_0xcd42f1,headerFooterSetting:_0x469e9a}=this[_0x3896f0(0x327)],{w:_0x311f93,h:_0x3d896f}=this[_0x3896f0(0x119)],_0x435044=this[_0x3896f0(0x300)][_0x3896f0(0x365)]()[_0x3896f0(0x304)]();if(!_0x2de838||!_0x1428e5)return;if(_0xcd42f1&&_0x469e9a){this[_0x3896f0(0x240)](_0x469e9a,_0x2de838,_0x1428e5);return;}_0x435044[_0x3896f0(0x24b)](),_0x435044[_0x3896f0(0x10b)]=_0x3896f0(0x315)+a[_0x3896f0(0x298)];let _0x256261=0x13*this[_0x3896f0(0x1ed)],_0x2ce6a8=0x14*this[_0x3896f0(0x1ed)];if(_0x349073['includes']('Date')||_0x349073[_0x3896f0(0x11b)](_0x3896f0(0x36e))){let _0xdcc1d6=new Date()[_0x3896f0(0x153)]();_0x349073[_0x3896f0(0x11b)](_0x3896f0(0x39e))?_0x349073['includes']('Time')||(_0xdcc1d6=new Date()[_0x3896f0(0x178)]()):_0xdcc1d6=new Date()[_0x3896f0(0x279)](),_0x435044[_0x3896f0(0xec)](_0xdcc1d6,_0x256261,_0x3d896f-_0x2ce6a8);}_0x349073[_0x3896f0(0x38c)](_0xcb83d0=>{const _0x1fb3a6=_0x3896f0;switch(_0xcb83d0){case _0x1fb3a6(0x107):{let _0xf9c8de=_0x2de838[_0x1fb3a6(0x222)](),_0x165474=_0x435044[_0x1fb3a6(0x2f6)](_0xf9c8de),_0x32a6cf=_0x165474['fontBoundingBoxAscent']+_0x165474[_0x1fb3a6(0x397)];_0x435044[_0x1fb3a6(0xec)](_0xf9c8de,_0x256261,_0x2ce6a8+_0x32a6cf);break;}case _0x1fb3a6(0x1ea):{let _0x4a1fbb=_0x1428e5[_0x1fb3a6(0x222)](),_0x55437f=_0x435044[_0x1fb3a6(0x2f6)](_0x4a1fbb),_0x75311f=_0x55437f[_0x1fb3a6(0x1d4)]+_0x55437f['fontBoundingBoxDescent'];_0x435044[_0x1fb3a6(0xec)](_0x4a1fbb,_0x311f93-(_0x55437f[_0x1fb3a6(0x34c)]+_0x256261),_0x2ce6a8+_0x75311f);break;}case'PageSize':{let _0x1cfd14=''+this[_0x1fb3a6(0x124)][_0x1fb3a6(0x1d9)],_0x3031f3=_0x435044[_0x1fb3a6(0x2f6)](_0x1cfd14);_0x435044[_0x1fb3a6(0xec)](_0x1cfd14,_0x311f93-(_0x3031f3['width']+_0x256261),_0x3d896f-_0x2ce6a8);break;}default:break;}}),_0x435044[_0x3896f0(0x19f)]();}[_0x17c546(0x2a8)](){const _0x171c33=_0x17c546;let _0x4e3156=this[_0x171c33(0x25a)]['get'](t[_0x171c33(0x3a2)]),_0x121878=this[_0x171c33(0x300)][_0x171c33(0x365)]()[_0x171c33(0x304)]();_0x121878[_0x171c33(0x24b)]();let _0xd1e7c6=0x14*this['_previewScale'];_0x121878[_0x171c33(0x23f)]='rgba(0,0,0,0.3)',_0x121878[_0x171c33(0x10b)]=_0x171c33(0x30f)+a[_0x171c33(0x298)];let _0xbb39aa=_0x121878[_0x171c33(0x2f6)](_0x4e3156['t'](_0x171c33(0x235))),_0xb600ec=(this[_0x171c33(0x119)]['w']-_0xbb39aa[_0x171c33(0x34c)])/0x2,_0x13ebad=_0xbb39aa[_0x171c33(0x1d4)]+_0xbb39aa[_0x171c33(0x397)];_0x121878[_0x171c33(0xec)](_0x4e3156['t'](_0x171c33(0x235)),_0xb600ec,_0xd1e7c6+_0x13ebad),_0x121878[_0x171c33(0xec)](_0x4e3156['t'](_0x171c33(0x235)),_0xb600ec,this[_0x171c33(0x119)]['h']-_0xd1e7c6),_0x121878['restore']();}[_0x17c546(0x2bb)](){const _0x1a50f5=_0x17c546;this['_engine']['clearCanvas'](),this['_renderMainScene'](),this[_0x1a50f5(0x2ad)](),this[_0x1a50f5(0x2ea)]&&(0x0,a['renderWatermark'])(this[_0x1a50f5(0x300)]['getCanvas']()[_0x1a50f5(0x304)](),this[_0x1a50f5(0x2ea)],this[_0x1a50f5(0x2ea)][_0x1a50f5(0xfa)],this[_0x1a50f5(0x25a)][_0x1a50f5(0x198)](t[_0x1a50f5(0x33e)])[_0x1a50f5(0x2eb)]());}[_0x17c546(0x356)](){const _0x5c149b=_0x17c546;let _0x3d201e=this[_0x5c149b(0x101)]['onTransformChange$'][_0x5c149b(0x30e)](()=>{const _0x22d183=_0x5c149b;this[_0x22d183(0x2bb)]();});this[_0x5c149b(0xf3)](_0x3d201e);}['getImage'](){const _0xe356c2=_0x17c546;return this[_0xe356c2(0x300)][_0xe356c2(0x365)]()[_0xe356c2(0x208)]('image/png',0x1);}};const H=(_0x591a2f,_0x379414)=>{const _0x59c05f=_0x17c546;let _0x5c25d3=(0x0,u['useRef'])(!0x1);(0x0,u[_0x59c05f(0x2e1)])(()=>{const _0x2bb4cc=_0x59c05f;if(_0x5c25d3[_0x2bb4cc(0x1ac)])return _0x591a2f();_0x5c25d3[_0x2bb4cc(0x1ac)]=!0x0;},_0x379414);},le=(0x0,u[_0x17c546(0x1c4)])((_0x7a0d3d,_0x359acc)=>{const _0x28db96=_0x17c546;let {config:_0x4e1a40,previewScale:_0x329823}=_0x7a0d3d,_0x4fb9b4=(0x0,r[_0x28db96(0x380)])(O),_0x537e14=(0x0,r[_0x28db96(0x380)])(t[_0x28db96(0x21c)]),_0x579960=(0x0,u[_0x28db96(0x2ab)])(null),_0x1e2c13=_0x4fb9b4[_0x28db96(0x119)],_0x921502=(0x0,r[_0x28db96(0x246)])(_0x4fb9b4[_0x28db96(0x37c)],_0x4fb9b4[_0x28db96(0x234)]),_0x5696e1=(0x0,r[_0x28db96(0x246)])(_0x4fb9b4[_0x28db96(0x223)],_0x4fb9b4[_0x28db96(0x309)]),_0x33d248=Math['round'](_0x329823*(0x31a/_0x1e2c13['w'])*0xa)/0xa,[_0x2ee643]=(0x0,u['useState'])(()=>new V(_0x537e14,_0x4e1a40,_0x921502,!0x0,_0x33d248));return(0x0,u[_0x28db96(0x2e1)])(()=>(_0x579960[_0x28db96(0x1ac)]&&(_0x2ee643[_0x28db96(0x1e2)][_0x28db96(0x161)][_0x28db96(0x34c)]=_0x28db96(0x330),_0x2ee643[_0x28db96(0x1e2)]['style'][_0x28db96(0x2e0)]=_0x28db96(0x330),_0x2ee643[_0x28db96(0x1e2)][_0x28db96(0x161)][_0x28db96(0x2cf)]=_0x28db96(0x34e),_0x579960[_0x28db96(0x1ac)]['appendChild'](_0x2ee643[_0x28db96(0x1e2)]),_0x2ee643[_0x28db96(0x1e2)][_0x28db96(0x1c8)](_0x2ee643[_0x28db96(0x14e)])),_0x2ee643[_0x28db96(0x2bb)](),_0x2ee643[_0x28db96(0x356)](),()=>{const _0x32b4ff=_0x28db96;var _0x4c23b2;_0x2ee643[_0x32b4ff(0x288)](),(_0x4c23b2=_0x579960['current'])==null||_0x4c23b2[_0x32b4ff(0x12f)](_0x2ee643[_0x32b4ff(0x1e2)]);}),[_0x2ee643]),H(()=>{const _0x5c78c3=_0x28db96;_0x2ee643[_0x5c78c3(0x234)]=_0x921502,_0x2ee643[_0x5c78c3(0x2bb)]();},[_0x921502]),H(()=>{const _0x3bc67a=_0x28db96;_0x2ee643[_0x3bc67a(0x28c)](_0x33d248),_0x2ee643['engine'][_0x3bc67a(0xe4)](),_0x2ee643['render']();},[_0x33d248]),H(()=>{const _0x29a7d0=_0x28db96;_0x2ee643[_0x29a7d0(0x336)](_0x4e1a40),_0x2ee643['render']();},[_0x4e1a40['freeze'][_0x28db96(0x280)],_0x4e1a40[_0x28db96(0x1f4)]['startColumn'],_0x4e1a40[_0x28db96(0x1f4)][_0x28db96(0x31c)],_0x4e1a40[_0x28db96(0x1f4)]['ySplit'],_0x4e1a40[_0x28db96(0x28f)]['startRow'],_0x4e1a40['range'][_0x28db96(0x207)],_0x4e1a40[_0x28db96(0x28f)][_0x28db96(0xff)],_0x4e1a40[_0x28db96(0x28f)][_0x28db96(0x193)],_0x4e1a40[_0x28db96(0x3a5)],_0x5696e1['margin']]),(0x0,p[_0x28db96(0x317)])(_0x28db96(0x34d),{'ref':_0x359acc,'children':(0x0,p[_0x28db96(0x317)])(_0x28db96(0x34d),{'ref':_0x579960,'className':_0x28db96(0x188),'style':{'width':_0x1e2c13['w']*_0x33d248,'height':_0x1e2c13['h']*_0x33d248}})});}),ue=(0x0,u[_0x17c546(0x13b)])(({onShowFooterHeaderEditor:_0x371d5a})=>{const _0x1d205c=_0x17c546;var _0x471a06,_0x10690f,_0x24353,_0x8fc6bc,_0x3bacce,_0x364fe4;let _0x2a2b59=(0x0,r[_0x1d205c(0x380)])(O),_0x591982=(0x0,r[_0x1d205c(0x246)])(_0x2a2b59[_0x1d205c(0x223)],_0x2a2b59[_0x1d205c(0x309)]),_0x576d20=(0x0,r[_0x1d205c(0x246)])(_0x2a2b59[_0x1d205c(0x37c)],_0x2a2b59['renderConfig']),_0x54d3dc=(0x0,r['useDependency'])(t[_0x1d205c(0x3a2)]),_0x1de0ea=(0x0,r[_0x1d205c(0x380)])(t['IUniverInstanceService']),_0x3f0be9=(0x0,r[_0x1d205c(0x380)])(t[_0x1d205c(0xda)]),[_0x5e56a7,_0x161ab4]=(0x0,u[_0x1d205c(0x21b)])(null),_0x286d2a=(_0x471a06=(_0x10690f=(0x0,r[_0x1d205c(0x380)])(t[_0x1d205c(0x333)])[_0x1d205c(0x17e)]('sheets-print.config'))==null?void 0x0:_0x10690f[_0x1d205c(0x170)])==null?!0x1:_0x471a06;(0x0,u['useEffect'])(()=>{const _0x1f05ab=_0x1d205c;_0x3f0be9[_0x1f05ab(0x225)](a['UNIVER_WATERMARK_STORAGE_KEY'])['then'](_0x4ea56c=>{const _0x1a0ca1=_0x1f05ab;let _0x712c08,_0xb1237b;(_0x4ea56c==null?void 0x0:_0x4ea56c[_0x1a0ca1(0x2c2)])===a[_0x1a0ca1(0x377)]['Image']&&_0x4ea56c['config'][_0x1a0ca1(0xfa)]&&(_0x712c08=new Image(),_0x712c08['src']=_0x4ea56c[_0x1a0ca1(0x1ab)][_0x1a0ca1(0xfa)][_0x1a0ca1(0x31a)]),(_0x4ea56c==null?void 0x0:_0x4ea56c[_0x1a0ca1(0x2c2)])===a[_0x1a0ca1(0x377)][_0x1a0ca1(0xf4)]&&_0x4ea56c!=null&&_0x4ea56c['config']['userInfo']&&(_0xb1237b=_0x4ea56c['config'][_0x1a0ca1(0x2c6)]);let _0x2cd5b9=_0x4ea56c?{..._0x4ea56c,'user':_0xb1237b,'image':_0x712c08}:null;_0x161ab4(_0x2cd5b9),_0x286d2a&&(_0x576d20[_0x1a0ca1(0x2b4)]=_0x2cd5b9);});},[]);let _0x3f79f4=_0x1de0ea[_0x1d205c(0x1c2)](t[_0x1d205c(0x35a)]['UNIVER_SHEET']),_0x2f6232=_0x3f79f4[_0x1d205c(0x344)]()[_0x1d205c(0x28d)](_0x243e92=>!_0x243e92[_0x1d205c(0x164)]()),_0x3945e7=_0x3f79f4[_0x1d205c(0x1f2)]();if(!_0x3945e7)return console[_0x1d205c(0x261)](_0x1d205c(0x37e)),null;let _0x5c1bd1=(_0x56a5b9,_0x1a04b2)=>{const _0x20af70=_0x1d205c;let _0x5ae64b=Math[_0x20af70(0x2f9)](0x0,_0x1a04b2||0x0),_0x28ad6c=_0x591982[_0x20af70(0x36b)]||{'top':0x0,'left':0x0,'right':0x0,'bottom':0x0};_0x2a2b59[_0x20af70(0x210)]({'marginCustom':{..._0x28ad6c,[_0x56a5b9]:_0x5ae64b}});},_0xf32611=_0x3945e7[_0x1d205c(0x1d1)](),_0x17bb8c=_0x591982[_0x1d205c(0x2c1)]!==_0x1d205c(0x2a2)&&_0xf32611[_0x1d205c(0x31c)]<=0x0,_0x565167=_0x591982[_0x1d205c(0x2c1)]!==_0x1d205c(0x2a2)&&_0xf32611['ySplit']<=0x0;return(0x0,p[_0x1d205c(0x317)])(_0x1d205c(0x34d),{'className':(0x0,c['clsx'])(_0x1d205c(0x16b),c[_0x1d205c(0x1e8)]),'children':(0x0,p['jsxs'])(_0x1d205c(0x34d),{'className':_0x1d205c(0x239),'children':[(0x0,p['jsx'])(c['FormLayout'],{'label':_0x54d3dc['t'](_0x1d205c(0x112)),'children':(0x0,p[_0x1d205c(0x317)])(c[_0x1d205c(0x1cf)],{'className':_0x1d205c(0x2f1),'value':''+_0x591982['area'],'onChange':_0x4ece91=>{const _0x3f36c0=_0x1d205c;_0x4ece91===_0x3f36c0(0x2a2)?_0x2a2b59['updateLayoutConfig']({'area':_0x4ece91,'subUnitIds':_0x2f6232[_0x3f36c0(0x2c9)](_0x30dc97=>_0x30dc97['getSheetId']())}):_0x2a2b59['updateLayoutConfig']({'area':_0x4ece91});},'options':[{'label':_0x54d3dc['t'](_0x1d205c(0x25e)),'value':_0x1d205c(0x32b)},{'label':_0x54d3dc['t'](_0x1d205c(0x227)),'value':_0x1d205c(0x2a2)},{'label':_0x54d3dc['t']('sheets-print.area.currentSelection'),'value':_0x1d205c(0x2fe)},{'label':_0x54d3dc['t'](_0x1d205c(0x250)),'value':_0x1d205c(0xf7)}]})}),_0x591982[_0x1d205c(0x2c1)]===_0x1d205c(0x2a2)?(0x0,p['jsx'])(c[_0x1d205c(0x351)],{'label':_0x54d3dc['t'](_0x1d205c(0x15f)),'children':(0x0,p[_0x1d205c(0x317)])(c[_0x1d205c(0x147)],{'overlay':(0x0,p['jsx'])(_0x1d205c(0x34d),{'className':(0x0,c[_0x1d205c(0x228)])(_0x1d205c(0x117),c[_0x1d205c(0x1e8)]),'children':(0x0,p[_0x1d205c(0x317)])(c[_0x1d205c(0x180)],{'direction':_0x1d205c(0x137),'className':_0x1d205c(0x187),'value':_0x591982['subUnitIds'][_0x1d205c(0x2c9)](_0x403d36=>typeof _0x403d36==_0x1d205c(0x205)?_0x403d36:_0x403d36['id']),'onChange':_0x1ddcbc=>{const _0x13aaa4=_0x1d205c;let _0x1f693c=new Set(_0x1ddcbc);if(_0x1f693c[_0x13aaa4(0x1d7)]===0x0)_0x2a2b59[_0x13aaa4(0x210)]({'subUnitIds':_0x2f6232[_0x13aaa4(0x2c9)](_0x1c25fd=>_0x1c25fd['getSheetId']())});else{let _0x416596=[];_0x2f6232[_0x13aaa4(0x38c)](_0x3294fc=>{const _0xee4992=_0x13aaa4;let _0x42be82=_0x3294fc[_0xee4992(0x1e9)]();_0x1f693c[_0xee4992(0x292)](_0x42be82)&&_0x416596[_0xee4992(0x195)](_0x42be82);}),_0x2a2b59['updateLayoutConfig']({'subUnitIds':_0x416596});}},'children':_0x2f6232['map'](_0x554777=>(0x0,p['jsx'])(c[_0x1d205c(0x334)],{'value':_0x554777[_0x1d205c(0x1e9)](),'children':_0x554777[_0x1d205c(0x222)]()},_0x554777[_0x1d205c(0x1e9)]()))})}),'children':(0x0,p[_0x1d205c(0x295)])(_0x1d205c(0x34d),{'className':(0x0,c['clsx'])(_0x1d205c(0x189),c['borderClassName']),'children':[(0x0,p[_0x1d205c(0x317)])(_0x1d205c(0x157),{'className':_0x1d205c(0x388),'children':_0x591982[_0x1d205c(0x26e)]['length']===_0x2f6232[_0x1d205c(0x394)]||_0x591982[_0x1d205c(0x26e)][_0x1d205c(0x394)]===0x0?_0x54d3dc['t'](_0x1d205c(0x2e7)):''+_0x591982[_0x1d205c(0x26e)][_0x1d205c(0x394)]+_0x54d3dc['t'](_0x1d205c(0x11e))}),(0x0,p[_0x1d205c(0x317)])(l['MoreDownIcon'],{})]})})}):null,(0x0,p[_0x1d205c(0x317)])(c['FormLayout'],{'label':_0x54d3dc['t'](_0x1d205c(0x2f3)),'children':(0x0,p[_0x1d205c(0x317)])(c['Select'],{'className':_0x1d205c(0x2f1),'value':_0x591982[_0x1d205c(0x119)],'options':[{'label':_0x54d3dc['t'](_0x1d205c(0x12e)),'value':t[_0x1d205c(0x39a)][_0x1d205c(0x2a3)]},{'label':_0x54d3dc['t'](_0x1d205c(0x1a3)),'value':t[_0x1d205c(0x39a)][_0x1d205c(0x1b4)]},{'label':_0x54d3dc['t']('sheets-print.size.legal'),'value':t[_0x1d205c(0x39a)][_0x1d205c(0x325)]},{'label':_0x54d3dc['t'](_0x1d205c(0x296)),'value':t[_0x1d205c(0x39a)]['Statement']},{'label':_0x54d3dc['t']('sheets-print.size.executive'),'value':t['PaperType'][_0x1d205c(0x14b)]},{'label':_0x54d3dc['t'](_0x1d205c(0x184)),'value':t[_0x1d205c(0x39a)][_0x1d205c(0xe9)]},{'label':_0x54d3dc['t']('sheets-print.size.a3'),'value':t[_0x1d205c(0x39a)]['A3']},{'label':_0x54d3dc['t'](_0x1d205c(0x1d3)),'value':t['PaperType']['A4']},{'label':_0x54d3dc['t'](_0x1d205c(0x166)),'value':t['PaperType']['A5']},{'label':_0x54d3dc['t']('sheets-print.size.b4'),'value':t['PaperType']['B4']},{'label':_0x54d3dc['t']('sheets-print.size.b5'),'value':t['PaperType']['B5']}],'onChange':_0x381efd=>{const _0x29bdd1=_0x1d205c;_0x2a2b59[_0x29bdd1(0x210)]({'paperSize':_0x381efd});}})}),(0x0,p[_0x1d205c(0x317)])(c[_0x1d205c(0x351)],{'label':_0x54d3dc['t'](_0x1d205c(0x1f0)),'children':(0x0,p['jsx'])(c[_0x1d205c(0x1cf)],{'className':_0x1d205c(0x2f1),'value':_0x591982['margin'],'options':[{'label':_0x54d3dc['t'](_0x1d205c(0x21f)),'value':i[_0x1d205c(0x1df)][_0x1d205c(0x395)]},{'label':_0x54d3dc['t'](_0x1d205c(0x34f)),'value':i[_0x1d205c(0x1df)]['Narrow']},{'label':_0x54d3dc['t']('sheets-print.margin.wide'),'value':i[_0x1d205c(0x1df)][_0x1d205c(0x186)]},{'label':_0x54d3dc['t'](_0x1d205c(0x18f)),'value':i[_0x1d205c(0x1df)][_0x1d205c(0x353)]}],'onChange':_0x44829d=>{const _0x2ff5f3=_0x1d205c;let _0x49a63d=i['PaperMarginMap'][_0x591982[_0x2ff5f3(0x1c0)]];_0x2a2b59[_0x2ff5f3(0x210)]({'margin':_0x44829d,'marginCustom':_0x44829d===i[_0x2ff5f3(0x1df)][_0x2ff5f3(0x353)]?_0x49a63d:i[_0x2ff5f3(0x278)][_0x44829d]});}})}),_0x591982['margin']===i[_0x1d205c(0x1df)][_0x1d205c(0x353)]&&(0x0,p[_0x1d205c(0x317)])(c['FormLayout'],{'children':(0x0,p[_0x1d205c(0x295)])(_0x1d205c(0x34d),{'className':_0x1d205c(0x286),'children':[(0x0,p[_0x1d205c(0x295)])('div',{'children':[(0x0,p[_0x1d205c(0x317)])('label',{'className':_0x1d205c(0x18e),'children':_0x54d3dc['t'](_0x1d205c(0x1e5))}),(0x0,p[_0x1d205c(0x317)])(c[_0x1d205c(0x179)],{'type':_0x1d205c(0x27c),'value':String(((_0x24353=_0x591982['marginCustom'])==null?void 0x0:_0x24353[_0x1d205c(0xf9)])||0x0),'onChange':_0x49ebde=>_0x5c1bd1(_0x1d205c(0xf9),Number(_0x49ebde))})]}),(0x0,p[_0x1d205c(0x295)])(_0x1d205c(0x34d),{'children':[(0x0,p[_0x1d205c(0x317)])(_0x1d205c(0x385),{'className':_0x1d205c(0x18e),'children':_0x54d3dc['t'](_0x1d205c(0x191))}),(0x0,p[_0x1d205c(0x317)])(c['Input'],{'type':_0x1d205c(0x27c),'value':String(((_0x8fc6bc=_0x591982['marginCustom'])==null?void 0x0:_0x8fc6bc['bottom'])||0x0),'onChange':_0x4ecc1c=>_0x5c1bd1('bottom',Number(_0x4ecc1c))})]}),(0x0,p[_0x1d205c(0x295)])(_0x1d205c(0x34d),{'children':[(0x0,p['jsx'])('label',{'className':_0x1d205c(0x18e),'children':_0x54d3dc['t'](_0x1d205c(0x310))}),(0x0,p['jsx'])(c[_0x1d205c(0x179)],{'type':'number','value':String(((_0x3bacce=_0x591982['marginCustom'])==null?void 0x0:_0x3bacce[_0x1d205c(0x36d)])||0x0),'onChange':_0x29fa07=>_0x5c1bd1(_0x1d205c(0x36d),Number(_0x29fa07))})]}),(0x0,p[_0x1d205c(0x295)])(_0x1d205c(0x34d),{'children':[(0x0,p['jsx'])(_0x1d205c(0x385),{'className':'univer-mb-1\x20univer-block\x20univer-text-xs\x20univer-text-gray-500','children':_0x54d3dc['t'](_0x1d205c(0x100))}),(0x0,p[_0x1d205c(0x317)])(c[_0x1d205c(0x179)],{'type':_0x1d205c(0x27c),'value':String(((_0x364fe4=_0x591982[_0x1d205c(0x36b)])==null?void 0x0:_0x364fe4[_0x1d205c(0x33a)])||0x0),'onChange':_0x57c003=>_0x5c1bd1(_0x1d205c(0x33a),Number(_0x57c003))})]})]})}),(0x0,p['jsx'])(c[_0x1d205c(0x351)],{'label':_0x54d3dc['t'](_0x1d205c(0x1b3)),'children':(0x0,p[_0x1d205c(0x295)])(c['RadioGroup'],{'value':_0x591982[_0x1d205c(0x265)],'onChange':_0x295e98=>{const _0x1d8123=_0x1d205c;_0x2a2b59[_0x1d8123(0x210)]({'direction':_0x295e98});},'children':[(0x0,p['jsx'])(c['Radio'],{'value':i['PrintDirection'][_0x1d205c(0x149)],'children':_0x54d3dc['t']('sheets-print.orientation.portrait')}),(0x0,p[_0x1d205c(0x317)])(c[_0x1d205c(0x165)],{'value':i[_0x1d205c(0x2b8)][_0x1d205c(0xe0)],'children':_0x54d3dc['t'](_0x1d205c(0x399))})]})}),(0x0,p[_0x1d205c(0x317)])(c[_0x1d205c(0x351)],{'label':_0x54d3dc['t'](_0x1d205c(0x379)),'children':(0x0,p[_0x1d205c(0x317)])(c[_0x1d205c(0x1cf)],{'className':'univer-w-full','value':_0x591982[_0x1d205c(0x3a5)],'options':[{'label':_0x54d3dc['t']('sheets-print.scale.normal'),'value':i[_0x1d205c(0x289)][_0x1d205c(0x1e7)]},{'label':_0x54d3dc['t']('sheets-print.scale.fitWidth'),'value':i['PrintScale'][_0x1d205c(0x264)]},{'label':_0x54d3dc['t']('sheets-print.scale.fitHeight'),'value':i['PrintScale'][_0x1d205c(0x2d2)]},{'label':_0x54d3dc['t'](_0x1d205c(0x24d)),'value':i[_0x1d205c(0x289)][_0x1d205c(0x2d9)]}],'onChange':_0x3fed0c=>{const _0x37afc0=_0x1d205c;_0x2a2b59[_0x37afc0(0x210)]({'scale':_0x3fed0c});}})}),(0x0,p[_0x1d205c(0x295)])(c[_0x1d205c(0x351)],{'label':_0x54d3dc['t'](_0x1d205c(0x34a)),'children':[(0x0,p['jsx'])(c[_0x1d205c(0x334)],{'checked':_0x576d20[_0x1d205c(0x272)],'onChange':_0x169ef3=>{const _0x29c029=_0x1d205c;_0x2a2b59[_0x29c029(0x393)]({'gridlines':_0x169ef3});},'children':_0x54d3dc['t'](_0x1d205c(0x27f))}),_0x5e56a7&&!_0x286d2a?(0x0,p[_0x1d205c(0x317)])('div',{'className':_0x1d205c(0xee),'children':(0x0,p[_0x1d205c(0x317)])(c[_0x1d205c(0x334)],{'checked':!!_0x576d20[_0x1d205c(0x2b4)],'onChange':async _0x2a9f74=>{const _0x3001c6=_0x1d205c;_0x2a9f74?_0x2a2b59[_0x3001c6(0x393)]({'watermark':_0x5e56a7}):_0x2a2b59[_0x3001c6(0x393)]({'watermark':void 0x0});},'children':_0x54d3dc['t']('sheets-print.formatting.waterMark')})}):null]}),(0x0,p['jsx'])(c[_0x1d205c(0x351)],{'label':_0x54d3dc['t'](_0x1d205c(0x299)),'children':(0x0,p[_0x1d205c(0x295)])('div',{'className':_0x1d205c(0x259),'children':[(0x0,p[_0x1d205c(0x317)])(c[_0x1d205c(0x1cf)],{'className':_0x1d205c(0x10d),'value':_0x576d20[_0x1d205c(0x38e)],'options':[{'label':_0x54d3dc['t']('sheets-print.align.horizontal.middle'),'value':i[_0x1d205c(0x36a)][_0x1d205c(0x2c4)]},{'label':_0x54d3dc['t'](_0x1d205c(0x10f)),'value':i[_0x1d205c(0x36a)][_0x1d205c(0x155)]},{'label':_0x54d3dc['t'](_0x1d205c(0x206)),'value':i[_0x1d205c(0x36a)]['End']}],'onChange':_0x4b91fc=>{_0x2a2b59['updateRenderConfig']({'hAlign':_0x4b91fc});}}),(0x0,p['jsx'])(c[_0x1d205c(0x1cf)],{'className':_0x1d205c(0x10d),'value':_0x576d20[_0x1d205c(0x15d)],'options':[{'label':_0x54d3dc['t'](_0x1d205c(0x1b7)),'value':i['PrintAlign']['Start']},{'label':_0x54d3dc['t'](_0x1d205c(0x362)),'value':i[_0x1d205c(0x36a)][_0x1d205c(0x1bc)]},{'label':_0x54d3dc['t'](_0x1d205c(0x13e)),'value':i[_0x1d205c(0x36a)][_0x1d205c(0x2c4)]}],'onChange':_0x4264a2=>{const _0x480192=_0x1d205c;_0x2a2b59[_0x480192(0x393)]({'vAlign':_0x4264a2});}})]})}),(0x0,p['jsxs'])(c[_0x1d205c(0x351)],{'collapsable':!0x0,'label':_0x54d3dc['t'](_0x1d205c(0x39b)),'children':[(0x0,p[_0x1d205c(0x295)])(c['CheckboxGroup'],{'direction':_0x1d205c(0x137),'disabled':_0x576d20[_0x1d205c(0x1fc)],'value':_0x576d20[_0x1d205c(0x30b)],'onChange':_0x348263=>{const _0x1c714c=_0x1d205c;_0x2a2b59[_0x1c714c(0x393)]({'headerFooter':_0x348263});},'children':[(0x0,p[_0x1d205c(0x317)])(c[_0x1d205c(0x334)],{'value':'PageSize','children':_0x54d3dc['t']('sheets-print.headerFooter.page')}),(0x0,p[_0x1d205c(0x317)])(c[_0x1d205c(0x334)],{'value':'WorkbookTitle','children':_0x54d3dc['t'](_0x1d205c(0x311))}),(0x0,p[_0x1d205c(0x317)])(c[_0x1d205c(0x334)],{'value':'WorksheetTitle','children':_0x54d3dc['t']('sheets-print.headerFooter.sheet')}),(0x0,p[_0x1d205c(0x317)])(c[_0x1d205c(0x334)],{'value':_0x1d205c(0x39e),'children':_0x54d3dc['t'](_0x1d205c(0x22d))}),(0x0,p['jsx'])(c[_0x1d205c(0x334)],{'value':_0x1d205c(0x36e),'children':_0x54d3dc['t']('sheets-print.headerFooter.time')})]}),(0x0,p[_0x1d205c(0x317)])(c['FormLayout'],{'className':_0x1d205c(0xee),'label':(0x0,p['jsx'])(c[_0x1d205c(0x334)],{'checked':_0x576d20['isCustomHeaderFooter'],'onChange':()=>{const _0x52dc54=_0x1d205c;_0x2a2b59[_0x52dc54(0x393)]({'isCustomHeaderFooter':!_0x576d20[_0x52dc54(0x1fc)]});},'children':_0x54d3dc['t'](_0x1d205c(0x350))}),'children':_0x576d20[_0x1d205c(0x1fc)]?(0x0,p[_0x1d205c(0x317)])(c[_0x1d205c(0x21a)],{'className':_0x1d205c(0x35f),'size':_0x1d205c(0x2a5),'variant':_0x1d205c(0x13f),'onClick':()=>{_0x371d5a();},'children':_0x54d3dc['t'](_0x1d205c(0xf1))}):null})]}),(0x0,p[_0x1d205c(0x317)])(c[_0x1d205c(0x351)],{'collapsable':!0x0,'label':_0x54d3dc['t'](_0x1d205c(0x1a1)),'children':(0x0,p['jsxs'])(c[_0x1d205c(0x180)],{'direction':_0x1d205c(0x137),'value':_0x591982[_0x1d205c(0x1f4)],'onChange':_0x1d8b35=>{const _0x47cccb=_0x1d205c;_0x2a2b59[_0x47cccb(0x210)]({'freeze':_0x1d8b35});},'children':[(0x0,p[_0x1d205c(0x317)])(c[_0x1d205c(0x334)],{'disabled':_0x565167,'value':_0x1d205c(0x138),'children':_0x54d3dc['t'](_0x1d205c(0x27d))}),(0x0,p[_0x1d205c(0x317)])(c[_0x1d205c(0x334)],{'disabled':_0x17bb8c,'value':_0x1d205c(0x270),'children':_0x54d3dc['t'](_0x1d205c(0x352))})]})}),(0x0,p[_0x1d205c(0x295)])(c[_0x1d205c(0x351)],{'collapsable':!0x0,'defaultCollapsed':!0x0,'label':_0x54d3dc['t']('sheets-print.area.limit'),'children':[(0x0,p['jsx'])(c['FormLayout'],{'className':_0x1d205c(0x1a4),'label':_0x54d3dc['t'](_0x1d205c(0x2f4)),'children':(0x0,p['jsx'])(c[_0x1d205c(0x179)],{'value':_0x591982[_0x1d205c(0x345)]===0x1/0x0?'':''+_0x591982[_0x1d205c(0x345)],'onChange':_0x12c24a=>{const _0x15dd8b=_0x1d205c;_0x2a2b59[_0x15dd8b(0x210)]({'maxRowsEachPage':!_0x12c24a||Number[_0x15dd8b(0x196)](Number(_0x12c24a))?0x1/0x0:Number(_0x12c24a)});}})}),(0x0,p[_0x1d205c(0x317)])(c['FormLayout'],{'label':_0x54d3dc['t'](_0x1d205c(0x233)),'children':(0x0,p[_0x1d205c(0x317)])(c[_0x1d205c(0x179)],{'value':_0x591982[_0x1d205c(0x1e4)]===0x1/0x0?'':''+_0x591982[_0x1d205c(0x1e4)],'onChange':_0x47271b=>{const _0x128459=_0x1d205c;_0x2a2b59[_0x128459(0x210)]({'maxColumnsEachPage':!_0x47271b||Number[_0x128459(0x196)](Number(_0x47271b))?0x1/0x0:Number(_0x47271b)});}})})]})]})});}),de=0.1,fe=()=>{const _0x210d00=_0x17c546;var _0x58abf2;let [_0x489b7b,_0x1d6b45]=(0x0,u[_0x210d00(0x21b)])(!0x1),_0x11fc30=(0x0,r[_0x210d00(0x380)])(O),_0xef95ca=(0x0,r['useDependency'])(t[_0x210d00(0x257)]),_0x174913=(0x0,r[_0x210d00(0x246)])(_0x11fc30[_0x210d00(0x2dc)],[]),[_0x5cc731,_0x1b899d]=(0x0,u[_0x210d00(0x21b)])(0x1),[_0x47f872,_0x3c6583]=(0x0,u['useState'])(!0x1),_0x59551e=(0x0,u[_0x210d00(0x2ab)])(0x0),_0x255c25=(0x0,r[_0x210d00(0x380)])(t['IUniverInstanceService']),_0x39f9ea=(0x0,r[_0x210d00(0x380)])(t[_0x210d00(0x3a2)]),_0x4fdc4d=(0x0,r[_0x210d00(0x380)])(t[_0x210d00(0x21c)]),{ls:_0x1161fc,pbk:_0x218b58}=(_0x58abf2=(0x0,r['useDependency'])(t[_0x210d00(0x333)])[_0x210d00(0x17e)](e[_0x210d00(0x34b)]))==null?{}:_0x58abf2,{limit:_0x3c52b8,isPro:_0x29f154}=(0x0,u['useMemo'])(()=>{let {page:_0x16cbab,isPro:_0x4a48e4}=N(0x3,_0x1161fc,_0x218b58);return{'limit':_0x16cbab,'isPro':_0x4a48e4};},[_0x1161fc,_0x218b58]),_0xe9e902=(0x0,u[_0x210d00(0x2ab)])(void 0x0),_0x338112=(0x0,r['useDependency'])(r['IMessageService']),_0x2f7f29=te(import(`@univerjs-pro/collaboration-client`).then(_0x24867c=>_0x24867c[_0x210d00(0x25c)],()=>void 0x0));(0x0,u[_0x210d00(0x2e1)])(()=>{const _0x108127=_0x210d00;var _0x24c41b;if(!_0x2f7f29)return;let _0x36dc0a=_0x255c25[_0x108127(0x1c2)](t[_0x108127(0x35a)][_0x108127(0x18c)])[_0x108127(0x14d)](),_0x1e8ca2=_0x4fdc4d[_0x108127(0x198)](_0x2f7f29,t['Quantity'][_0x108127(0x213)]),_0x510c0f=_0x1e8ca2==null||(_0x24c41b=_0x1e8ca2[_0x108127(0x19d)](_0x36dc0a))==null?void 0x0:_0x24c41b[_0x108127(0x171)]();return()=>{const _0x406476=_0x108127;_0x510c0f==null||_0x510c0f[_0x406476(0x288)]();};},[_0x2f7f29,_0x4fdc4d,_0x255c25]);let _0x309c50=(0x0,u['useMemo'])(()=>(_0x59551e[_0x210d00(0x1ac)]++,ne(_0x174913)),[_0x174913]),_0x101a10=(0x0,u[_0x210d00(0x182)])(()=>_0x309c50['slice'](0x0,_0x3c52b8),[_0x309c50,_0x3c52b8]),_0x4655bb=_0x11fc30[_0x210d00(0x119)],_0x405810=Math[_0x210d00(0x258)](_0x5cc731*(0x31a/_0x4655bb['w'])*0xa)/0xa,[_0x28117a,{wrapperStyle:_0xdf584b,containerProps:_0x4f1fe1}]=(0x0,r[_0x210d00(0x1db)])(_0x101a10,{'containerTarget':_0xe9e902,'itemHeight':_0x4655bb['h']*_0x405810+0x1c,'overscan':0x5}),_0x3d60f1=()=>{const _0x5a0f4b=_0x210d00;_0xef95ca[_0x5a0f4b(0xfc)](W['id']);},_0x489ff2=()=>{const _0x181fe0=_0x210d00;_0x3c6583(!0x0),_0x338112[_0x181fe0(0x1ff)]({'content':_0x39f9ea['t']('sheets-print.header.printing'),'type':c[_0x181fe0(0x32c)][_0x181fe0(0x148)]}),setTimeout(()=>{const _0x26f606=_0x181fe0;_0xef95ca[_0x26f606(0xfc)](G['id']);},0x12c);},_0x49c83e=(0x0,r[_0x210d00(0x23c)])(()=>{_0x1d6b45(!0x0);});return(0x0,p['jsxs'])('div',{'className':_0x210d00(0x268),'children':[_0x489b7b&&(0x0,p[_0x210d00(0x317)])(ce,{'onClose':()=>_0x1d6b45(!0x1)}),_0x47f872&&(0x0,p[_0x210d00(0x317)])(_0x210d00(0x34d),{'className':_0x210d00(0x262)}),(0x0,p[_0x210d00(0x295)])(_0x210d00(0x34d),{'className':(0x0,c[_0x210d00(0x228)])('univer-flex\x20univer-h-16\x20univer-items-center\x20univer-justify-between\x20univer-bg-white\x20univer-px-4\x20dark:!univer-bg-gray-900',c[_0x210d00(0x26c)]),'children':[(0x0,p[_0x210d00(0x295)])(_0x210d00(0x34d),{'className':'univer-ml-2\x20univer-text-base\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-white','children':[_0x39f9ea['t'](_0x210d00(0x373)),_0x101a10[_0x210d00(0x394)],_0x39f9ea['t'](_0x210d00(0xf8))]}),(0x0,p[_0x210d00(0x295)])(_0x210d00(0x34d),{'className':'univer-flex\x20univer-gap-2','children':[(0x0,p[_0x210d00(0x317)])(c[_0x210d00(0x21a)],{'onClick':_0x3d60f1,'children':_0x39f9ea['t']('sheets-print.header.cancel')}),(0x0,p[_0x210d00(0x317)])(c['Button'],{'variant':_0x210d00(0x2e3),'onClick':_0x489ff2,'children':_0x39f9ea['t'](_0x210d00(0x16e))})]})]}),(0x0,p[_0x210d00(0x295)])('div',{'className':_0x210d00(0x1f1),'children':[(0x0,p[_0x210d00(0x295)])(_0x210d00(0x34d),{'className':'univer-relative\x20univer-box-border\x20univer-flex\x20univer-flex-1\x20univer-flex-col\x20univer-overflow-hidden','children':[(0x0,p[_0x210d00(0x317)])(_0x210d00(0x34d),{'ref':_0xe9e902,'className':(0x0,c[_0x210d00(0x228)])('univer-flex-1\x20univer-overflow-auto',c[_0x210d00(0x1e8)]),..._0x4f1fe1,'children':(0x0,p[_0x210d00(0x317)])(_0x210d00(0x34d),{'style':_0xdf584b,'children':_0x28117a['map'](_0x35a951=>(0x0,p[_0x210d00(0x317)])(le,{'config':_0x35a951[_0x210d00(0x290)],'page':_0x35a951[_0x210d00(0x290)][_0x210d00(0x1d9)],'previewScale':_0x5cc731},_0x59551e[_0x210d00(0x1ac)]+'-'+_0x35a951[_0x210d00(0x290)][_0x210d00(0x25d)]['h']+'-'+_0x35a951['data'][_0x210d00(0x25d)]['w']+'-'+_0x35a951[_0x210d00(0x290)][_0x210d00(0x224)]+'-'+_0x35a951[_0x210d00(0x290)][_0x210d00(0x216)]+'-'+_0x35a951['index']))},_0x59551e['current'])}),!_0x29f154&&(0x0,p[_0x210d00(0x317)])(_0x210d00(0x34d),{'className':_0x210d00(0x134),'children':(0x0,p[_0x210d00(0x317)])('a',{'href':_0x39f9ea['t']('sheets-print.limit.link'),'target':_0x210d00(0x369),'rel':_0x210d00(0x284),'children':_0x39f9ea['t'](_0x210d00(0x10a))['replace']('{limit}',''+_0x3c52b8)})}),!_0x489b7b&&(0x0,p[_0x210d00(0x295)])('div',{'className':_0x210d00(0x23a),'children':[(0x0,p[_0x210d00(0x317)])(_0x210d00(0x34d),{'className':_0x210d00(0x1ec),'onClick':()=>{const _0xe7fff2=_0x210d00;_0x1b899d(Math[_0xe7fff2(0x226)](_0x5cc731+de,0x2));},'children':(0x0,p[_0x210d00(0x317)])(l[_0x210d00(0x1a6)],{})}),(0x0,p[_0x210d00(0x317)])(_0x210d00(0x34d),{'className':_0x210d00(0x1ec),'onClick':()=>{const _0x57892e=_0x210d00;_0x1b899d(Math[_0x57892e(0x2f9)](_0x5cc731-de,0.5));},'children':(0x0,p[_0x210d00(0x317)])(l[_0x210d00(0x142)],{})})]})]}),(0x0,p['jsx'])(_0x210d00(0x34d),{'className':_0x210d00(0x312),'children':(0x0,p[_0x210d00(0x317)])(ue,{'onShowFooterHeaderEditor':_0x49c83e})})]})]});},U={'id':'sheet.operation.print-open','type':t[_0x17c546(0x244)]['OPERATION'],'handler':_0x4eadf7=>{const _0x484663=_0x17c546;var _0xaed0a7,_0x258f47;let _0x45df84=_0x4eadf7['get'](r[_0x484663(0x370)]),_0xf82aff=_0x4eadf7[_0x484663(0x198)](t['IPermissionService']),_0x3113ff=_0x4eadf7[_0x484663(0x198)](t[_0x484663(0x3a2)]),_0x3ee70d=_0x4eadf7[_0x484663(0x198)](t[_0x484663(0x368)]),_0x55e835=_0x4eadf7[_0x484663(0x198)](r[_0x484663(0x23b)]),{ls:_0x25337d,pbk:_0x314f80}=(_0xaed0a7=_0x4eadf7[_0x484663(0x198)](t['IConfigService'])[_0x484663(0x17e)](e[_0x484663(0x34b)]))==null?{}:_0xaed0a7;if(!ee(_0x25337d,_0x314f80))return!0x1;_0x45df84[_0x484663(0x2be)](_0x484663(0x26f),fe);let _0x1ed6a2=_0x3ee70d[_0x484663(0x1c2)](t[_0x484663(0x35a)]['UNIVER_SHEET'])['getUnitId']();if(!((_0x258f47=_0xf82aff[_0x484663(0x2da)](new n[(_0x484663(0x203))](_0x1ed6a2)['id']))!=null&&_0x258f47)){let _0x5e4275={'id':g,'title':{'title':''},'children':{'label':'UNIVER_SHEET_PERMISSION_ALERT_DIALOG','errorMsg':_0x3113ff['t']('sheets-print.permission.printErr')},'width':0x140,'destroyOnClose':!0x0,'onClose':()=>_0x55e835[_0x484663(0x1b6)](g),'className':'sheet-permission-user-dialog'};throw _0x55e835[_0x484663(0x2b1)](_0x5e4275),Error(_0x484663(0x2b9));}return _0x45df84[_0x484663(0x2b1)](),!0x0;}},W={'type':t[_0x17c546(0x244)]['OPERATION'],'id':'sheet.operation.cancel-print','handler'(_0x3e62f0){const _0x32de81=_0x17c546;let _0x51aab0=_0x3e62f0[_0x32de81(0x198)](r[_0x32de81(0x370)]),_0x439dcc=_0x3e62f0[_0x32de81(0x198)](O);return _0x51aab0[_0x32de81(0x1b6)](),_0x439dcc[_0x32de81(0x2e5)](),!0x0;}},G={'type':t[_0x17c546(0x244)][_0x17c546(0x271)],'id':_0x17c546(0x156),'handler'(){return!0x0;}},K={'id':_0x17c546(0x17f),'type':t['CommandType'][_0x17c546(0x110)],'handler'(_0x4fa083,_0x1c54a7){const _0x568162=_0x17c546;if(!_0x1c54a7)return!0x1;let _0x2a6e31=_0x4fa083[_0x568162(0x198)](t[_0x568162(0x257)]),_0x309ed9=_0x4fa083[_0x568162(0x198)](O);return _0x309ed9[_0x568162(0x2bf)](_0x1c54a7[_0x568162(0x309)]),_0x309ed9[_0x568162(0x2d5)](_0x1c54a7['renderConfig']),_0x2a6e31[_0x568162(0x2f2)](G['id']);}};let pe=0x0,q=class{constructor(_0x43fa3f,_0x48d808,_0x4e82f4,_0x49d487,_0x3394ed){const _0x110b80=_0x17c546;this[_0x110b80(0x28e)]=_0x43fa3f,this['_globalZoneService']=_0x48d808,this[_0x110b80(0x306)]=_0x4e82f4,this[_0x110b80(0x339)]=_0x49d487,this[_0x110b80(0x1c5)]=_0x3394ed;}async[_0x17c546(0x11a)](_0x423b59,_0x5a41a4){const _0x557338=_0x17c546;var _0xeca184;let _0x294f56=ne(_0x423b59),{ls:_0x362388,pbk:_0x4e551e}=(_0xeca184=this[_0x557338(0x28e)][_0x557338(0x198)](t[_0x557338(0x333)])[_0x557338(0x17e)](e[_0x557338(0x34b)]))==null?{}:_0xeca184,_0x11d5be=(0x0,e['isLocalCheck'])()?0x1/0x0:N(0x3,_0x362388,_0x4e551e)[_0x557338(0x1d9)];_0x294f56=_0x294f56[_0x557338(0x27e)](0x0,_0x11d5be);let _0x1f3774=document['createElement'](_0x557338(0x34d));_0x1f3774[_0x557338(0xde)]=i['PRINT_CONTAINER_CLASS'];let _0x25cf06=_0x294f56['map'](_0x526e74=>{const _0x35db2d=_0x557338;let _0x2995f4=new V(this[_0x35db2d(0x28e)],_0x526e74,_0x5a41a4,!0x1);return _0x2995f4[_0x35db2d(0x1e2)][_0x35db2d(0xde)]=i[_0x35db2d(0x172)],_0x2995f4;});_0x25cf06[_0x557338(0x38c)](_0x458a2f=>{const _0x1b29b4=_0x557338;_0x1f3774[_0x1b29b4(0x1c8)](_0x458a2f[_0x1b29b4(0x1e2)]),_0x458a2f['container']['appendChild'](_0x458a2f[_0x1b29b4(0x14e)]),_0x458a2f[_0x1b29b4(0x37f)](),_0x458a2f[_0x1b29b4(0x335)](!0x1);});let _0x123ac4=this[_0x557338(0x306)][_0x557338(0x309)],_0x2aa8f4=t[_0x557338(0x1bb)][_0x123ac4[_0x557338(0x119)]],_0x45c117=(0x0,i[_0x557338(0xfd)])(_0x2aa8f4[_0x557338(0x34c)],_0x2aa8f4[_0x557338(0x2e0)],_0x123ac4[_0x557338(0x265)]);return document[_0x557338(0x372)][_0x557338(0x1c8)](_0x45c117),document[_0x557338(0x372)][_0x557338(0x1c8)](_0x1f3774),new Promise(_0x292d7b=>{setTimeout(()=>{const _0x38a1be=_0x2a04;window[_0x38a1be(0x319)]=()=>{const _0xe225ec=_0x38a1be;_0x25cf06[_0xe225ec(0x38c)](_0xc12722=>{const _0x5e4ff4=_0xe225ec;_0xc12722[_0x5e4ff4(0x2bb)](),_0xc12722[_0x5e4ff4(0x1f5)]();});},window[_0x38a1be(0x105)]=()=>{const _0xd80a39=_0x38a1be;_0x25cf06[_0xd80a39(0x38c)](_0x6f43f2=>{const _0x425507=_0xd80a39;_0x6f43f2[_0x425507(0x288)]();}),document[_0xd80a39(0x372)]['removeChild'](_0x1f3774),document[_0xd80a39(0x372)][_0xd80a39(0x12f)](_0x45c117),this[_0xd80a39(0x30c)]['close'](),this[_0xd80a39(0x306)][_0xd80a39(0x2e5)](),this[_0xd80a39(0x1c5)]['removeAll'](),_0x25cf06=[],_0x292d7b(!0x0);},window['print']();},0x64);});}['getRangeImage'](_0x547b4e,_0x461e93,_0x521288,_0x312eee){const _0x545838=_0x17c546;if(!P(this[_0x545838(0x28e)])){let _0x21903f=(Date[_0x545838(0x282)]()-pe)/0x3e8;if(pe=Date[_0x545838(0x282)](),_0x21903f<=0x1e)return!0x1;}let _0x3eea4d=this[_0x545838(0x339)][_0x545838(0x346)](_0x547b4e);if(!_0x3eea4d)return!0x1;let _0x4c0e5f=_0x3eea4d['with'](o[_0x545838(0x1ee)])[_0x545838(0x1b2)](_0x461e93);if(!_0x4c0e5f)return!0x1;let _0x4e4e9c=_0x4c0e5f[_0x545838(0x1c1)][_0x521288['endColumn']]-(_0x4c0e5f['columnWidthAccumulation'][_0x521288[_0x545838(0xff)]-0x1]||0x0),_0xffd683=_0x4c0e5f[_0x545838(0x293)][_0x521288[_0x545838(0x207)]]-(_0x4c0e5f[_0x545838(0x293)][_0x521288['startRow']-0x1]||0x0),_0x130f23=_0x4c0e5f[_0x545838(0x360)],_0x1923c4=_0x4c0e5f['rowHeaderWidth'],_0x56d0a=1.5,_0x2c6658=new V(this[_0x545838(0x28e)],{'unitId':_0x547b4e,'subUnitId':_0x461e93,'range':_0x521288,'freeze':j,'scale':_0x56d0a,'page':0x1,'pageSize':_0x312eee?{'w':(_0x4e4e9c+_0x1923c4)*_0x56d0a+0x1,'h':(_0xffd683+_0x130f23)*_0x56d0a+0x1}:{'w':_0x4e4e9c*_0x56d0a+0x1,'h':_0xffd683*_0x56d0a+0x1},'margin':i[_0x545838(0x278)][i['PrintPaperMargin'][_0x545838(0x185)]],'pageTotal':0x1,'sheetPageTotal':0x1,'sheetPage':0x1,'includeHeaderDimensions':_0x312eee==null?!0x1:_0x312eee},{'gridlines':!0x0,'hAlign':i[_0x545838(0x36a)][_0x545838(0x2c4)],'vAlign':i[_0x545838(0x36a)]['Middle'],'headerFooter':[],'headerFooterSetting':x,'isCustomHeaderFooter':!0x1},!0x1),_0x158d73=document[_0x545838(0x108)](_0x545838(0x34d));_0x158d73[_0x545838(0xde)]=i['PRINT_CONTAINER_CLASS'],_0x2c6658[_0x545838(0x1e2)][_0x545838(0xde)]=i['PRINT_CANVAS_CLASS'],_0x158d73['appendChild'](_0x2c6658[_0x545838(0x1e2)]),document['body'][_0x545838(0x1c8)](_0x158d73),_0x2c6658[_0x545838(0x37f)](),_0x2c6658[_0x545838(0x2bb)]();let _0x101b12=_0x2c6658[_0x545838(0x118)]();return _0x2c6658[_0x545838(0x288)](),document[_0x545838(0x372)][_0x545838(0x12f)](_0x158d73),_0x101b12;}};q=D([E(0x0,(0x0,t[_0x17c546(0x12b)])(t['Injector'])),E(0x1,r[_0x17c546(0x370)]),E(0x2,O),E(0x3,a[_0x17c546(0x25b)]),E(0x4,r['IMessageService'])],q);function me(_0xfecbdb,_0x1c8aca){const _0x421543=_0x17c546;let _0x1fe1c2=atob(_0xfecbdb['split'](',')[0x1]),_0x106767=new ArrayBuffer(_0x1fe1c2[_0x421543(0x394)]),_0x3eb177=new Uint8Array(_0x106767);for(let _0x3514cd=0x0;_0x3514cd<_0x1fe1c2[_0x421543(0x394)];_0x3514cd++)_0x3eb177[_0x3514cd]=_0x1fe1c2['charCodeAt'](_0x3514cd);return new Blob([_0x106767],{'type':_0x1c8aca});}const J={'type':t[_0x17c546(0x244)]['OPERATION'],'id':_0x17c546(0x2e4),async 'handler'(_0x54de43){const _0x9444cb=_0x17c546;var _0x1ee078;let _0x34f95e=_0x54de43['get'](n[_0x9444cb(0x111)]),_0x2ba44f=(_0x1ee078=_0x34f95e[_0x9444cb(0xe3)]())==null?void 0x0:_0x1ee078[0x0],_0x18639c=_0x54de43[_0x9444cb(0x198)](q),_0x2bce64=_0x34f95e[_0x9444cb(0x38f)](),_0x3cc3c4=_0x54de43[_0x9444cb(0x198)](r[_0x9444cb(0x2e9)]),_0x29fd94=_0x54de43[_0x9444cb(0x198)](t[_0x9444cb(0x368)]),_0x38b1cf=_0x54de43[_0x9444cb(0x198)](t[_0x9444cb(0x3a2)]);if(!_0x2ba44f||!_0x2bce64)return!0x1;let _0x5a199a=(0x0,n[_0x9444cb(0x340)])(_0x29fd94);if(!_0x5a199a)return!0x1;let {unitId:_0x1b7267,subUnitId:_0x2115c8}=_0x5a199a,_0x3fa25a=_0x18639c[_0x9444cb(0x219)](_0x1b7267,_0x2115c8,_0x2ba44f[_0x9444cb(0x28f)]);if(!_0x3fa25a)return!0x1;try{return await navigator['clipboard'][_0x9444cb(0x15c)]([new ClipboardItem({'image/png':me(_0x3fa25a,_0x9444cb(0x169))})]),_0x3cc3c4[_0x9444cb(0x1ff)]({'type':c['MessageType']['Success'],'content':_0x38b1cf['t'](_0x9444cb(0x120))}),!0x0;}catch{return _0x3cc3c4['show']({'type':c[_0x9444cb(0x32c)][_0x9444cb(0x31b)],'content':_0x38b1cf['t'](_0x9444cb(0x2ca))}),!0x1;}}};var he=_0x17c546(0x29e),ge=_0x17c546(0xdd);const Y=(0x0,t[_0x17c546(0x2ef)])(_0x17c546(0x2b0));var _e=class extends t[_0x17c546(0x17a)]{constructor(..._0x2ce38e){const _0x20d7db=_0x17c546;super(..._0x2ce38e),T(this,'_visible$',new s['BehaviorSubject'](!0x1)),T(this,_0x20d7db(0x177),this['_visible$']);}get['visible'](){const _0x1e1e93=_0x17c546;return this[_0x1e1e93(0x31f)][_0x1e1e93(0x2d3)];}[_0x17c546(0x1ff)](){const _0x397129=_0x17c546;this[_0x397129(0x31f)]['next'](!0x0);}[_0x17c546(0x2a0)](){const _0x16c2c5=_0x17c546;this[_0x16c2c5(0x31f)]['next'](!0x1);}['dispose'](){const _0x1b58a0=_0x17c546;super[_0x1b58a0(0x288)](),this[_0x1b58a0(0x31f)][_0x1b58a0(0x2bd)]();}};const ve=_0x17c546(0x1c9),X={'id':_0x17c546(0x150),'type':t['CommandType'][_0x17c546(0x271)],'handler':_0x52811d=>{const _0x3548d6=_0x17c546;let _0x2aa1cc=_0x52811d[_0x3548d6(0x198)](r[_0x3548d6(0x106)]),_0x126988=_0x52811d[_0x3548d6(0x198)](Y),_0x519d7b=_0x52811d[_0x3548d6(0x198)](O),_0x460fd9=_0x52811d['get'](t[_0x3548d6(0x3a2)]);return _0x519d7b[_0x3548d6(0x2bc)](),_0x126988['show'](),_0x2aa1cc[_0x3548d6(0x2b1)]({'header':{'title':_0x460fd9['t']('sheets-print.grid.title')},'children':{'label':ve},'onClose':()=>{},'width':0x138}),!0x0;}},ye={'id':_0x17c546(0x221),'type':t[_0x17c546(0x244)][_0x17c546(0x271)],'handler':_0x2f7996=>{const _0x46f22e=_0x17c546;let _0x35af11=_0x2f7996[_0x46f22e(0x198)](r[_0x46f22e(0x106)]);return _0x2f7996[_0x46f22e(0x198)](Y)[_0x46f22e(0x2a0)](),_0x35af11[_0x46f22e(0x1b6)](),!0x0;}},be=(0x0,u['memo'])(function(){const _0x57c4e7=_0x17c546;var _0x4d253b,_0x2b3afb,_0xf87d89,_0x22a425;let _0x32f28d=(0x0,r[_0x57c4e7(0x380)])(O),_0x472f22=(0x0,r[_0x57c4e7(0x380)])(t[_0x57c4e7(0x257)]),_0x3e36da=(0x0,r[_0x57c4e7(0x246)])(_0x32f28d[_0x57c4e7(0x223)],_0x32f28d[_0x57c4e7(0x309)]),_0x3b061b=(0x0,r[_0x57c4e7(0x380)])(t[_0x57c4e7(0x3a2)]),_0x590d38=(0x0,r[_0x57c4e7(0x380)])(t['IUniverInstanceService'])['getCurrentUnitOfType'](t['UniverInstanceType'][_0x57c4e7(0x18c)]);if(!_0x590d38)return console[_0x57c4e7(0x261)]('No\x20workbook\x20found'),null;let _0x38f799=_0x590d38[_0x57c4e7(0x1f2)]();if(!_0x38f799)return console[_0x57c4e7(0x261)]('No\x20active\x20sheet\x20found'),null;let _0x515c06=(_0x398eed,_0x57272a)=>{const _0x35f94c=_0x57c4e7;let _0x5a11be=Math[_0x35f94c(0x2f9)](0x0,_0x57272a||0x0),_0x45baf1=_0x3e36da[_0x35f94c(0x36b)]||{'top':0x0,'left':0x0,'right':0x0,'bottom':0x0};_0x32f28d['updateLayoutConfig']({'marginCustom':{..._0x45baf1,[_0x398eed]:_0x5a11be}});},_0x4265aa=_0x38f799['getFreeze'](),_0x39e724=_0x4265aa['xSplit']<=0x0,_0x5eb7b1=_0x4265aa[_0x57c4e7(0x2fb)]<=0x0,_0x32664a=()=>{const _0x9b3449=_0x57c4e7;_0x472f22[_0x9b3449(0xfc)](ye['id']);};return(0x0,p[_0x57c4e7(0x295)])(_0x57c4e7(0x34d),{'className':(0x0,c[_0x57c4e7(0x228)])(_0x57c4e7(0x35d),c['scrollbarClassName']),'children':[(0x0,p[_0x57c4e7(0x295)])('div',{'className':_0x57c4e7(0x305),'children':[(0x0,p[_0x57c4e7(0x317)])(c['FormLayout'],{'label':_0x3b061b['t']('sheets-print.area.title'),'children':(0x0,p[_0x57c4e7(0x317)])(c[_0x57c4e7(0x1cf)],{'className':_0x57c4e7(0x2f1),'value':''+_0x3e36da[_0x57c4e7(0x2c1)],'onChange':_0x5eba3f=>{_0x32f28d['updateLayoutConfig']({'area':_0x5eba3f});},'options':[{'label':_0x3b061b['t'](_0x57c4e7(0x25e)),'value':_0x57c4e7(0x32b)},{'label':_0x3b061b['t'](_0x57c4e7(0x113)),'value':_0x57c4e7(0x2fe)}]})}),(0x0,p[_0x57c4e7(0x317)])(c['FormLayout'],{'label':_0x3b061b['t']('sheets-print.size.title'),'children':(0x0,p[_0x57c4e7(0x317)])(c[_0x57c4e7(0x1cf)],{'className':_0x57c4e7(0x2f1),'value':_0x3e36da[_0x57c4e7(0x119)],'options':[{'label':_0x3b061b['t']('sheets-print.size.letter'),'value':t[_0x57c4e7(0x39a)][_0x57c4e7(0x2a3)]},{'label':_0x3b061b['t']('sheets-print.size.tabloid'),'value':t[_0x57c4e7(0x39a)][_0x57c4e7(0x1b4)]},{'label':_0x3b061b['t']('sheets-print.size.legal'),'value':t['PaperType'][_0x57c4e7(0x325)]},{'label':_0x3b061b['t'](_0x57c4e7(0x296)),'value':t['PaperType'][_0x57c4e7(0xe2)]},{'label':_0x3b061b['t']('sheets-print.size.executive'),'value':t[_0x57c4e7(0x39a)][_0x57c4e7(0x14b)]},{'label':_0x3b061b['t'](_0x57c4e7(0x184)),'value':t[_0x57c4e7(0x39a)]['Folio']},{'label':_0x3b061b['t'](_0x57c4e7(0x363)),'value':t[_0x57c4e7(0x39a)]['A3']},{'label':_0x3b061b['t'](_0x57c4e7(0x1d3)),'value':t[_0x57c4e7(0x39a)]['A4']},{'label':_0x3b061b['t'](_0x57c4e7(0x166)),'value':t[_0x57c4e7(0x39a)]['A5']},{'label':_0x3b061b['t'](_0x57c4e7(0x245)),'value':t[_0x57c4e7(0x39a)]['B4']},{'label':_0x3b061b['t'](_0x57c4e7(0x2d0)),'value':t['PaperType']['B5']}],'onChange':_0x34ae64=>{const _0x378126=_0x57c4e7;_0x32f28d[_0x378126(0x210)]({'paperSize':_0x34ae64});}})}),(0x0,p[_0x57c4e7(0x317)])(c[_0x57c4e7(0x351)],{'label':_0x3b061b['t'](_0x57c4e7(0x1f0)),'children':(0x0,p[_0x57c4e7(0x317)])(c['Select'],{'className':_0x57c4e7(0x2f1),'value':_0x3e36da['margin'],'options':[{'label':_0x3b061b['t'](_0x57c4e7(0x21f)),'value':i[_0x57c4e7(0x1df)][_0x57c4e7(0x395)]},{'label':_0x3b061b['t'](_0x57c4e7(0x34f)),'value':i[_0x57c4e7(0x1df)][_0x57c4e7(0x1d8)]},{'label':_0x3b061b['t'](_0x57c4e7(0x2a9)),'value':i['PrintPaperMargin'][_0x57c4e7(0x186)]},{'label':_0x3b061b['t'](_0x57c4e7(0x18f)),'value':i[_0x57c4e7(0x1df)][_0x57c4e7(0x353)]}],'onChange':_0x3be678=>{const _0x4e86ff=_0x57c4e7;let _0x1f3877=i['PaperMarginMap'][_0x3e36da[_0x4e86ff(0x1c0)]];_0x32f28d['updateLayoutConfig']({'margin':_0x3be678,'marginCustom':_0x3be678===i[_0x4e86ff(0x1df)][_0x4e86ff(0x353)]?_0x1f3877:i[_0x4e86ff(0x278)][_0x3be678]});}})}),_0x3e36da['margin']===i[_0x57c4e7(0x1df)][_0x57c4e7(0x353)]&&(0x0,p[_0x57c4e7(0x317)])(c[_0x57c4e7(0x351)],{'children':(0x0,p[_0x57c4e7(0x295)])(_0x57c4e7(0x34d),{'className':_0x57c4e7(0x286),'children':[(0x0,p['jsxs'])(_0x57c4e7(0x34d),{'children':[(0x0,p[_0x57c4e7(0x317)])(_0x57c4e7(0x385),{'className':_0x57c4e7(0x18e),'children':_0x3b061b['t']('sheets-print.margin.top')}),(0x0,p[_0x57c4e7(0x317)])(c[_0x57c4e7(0x179)],{'type':_0x57c4e7(0x27c),'value':String(((_0x4d253b=_0x3e36da[_0x57c4e7(0x36b)])==null?void 0x0:_0x4d253b['top'])||0x0),'onChange':_0x1ecbdd=>_0x515c06('top',Number(_0x1ecbdd))})]}),(0x0,p['jsxs'])('div',{'children':[(0x0,p[_0x57c4e7(0x317)])(_0x57c4e7(0x385),{'className':_0x57c4e7(0x18e),'children':_0x3b061b['t']('sheets-print.margin.bottom')}),(0x0,p[_0x57c4e7(0x317)])(c[_0x57c4e7(0x179)],{'type':_0x57c4e7(0x27c),'value':String(((_0x2b3afb=_0x3e36da[_0x57c4e7(0x36b)])==null?void 0x0:_0x2b3afb[_0x57c4e7(0x1da)])||0x0),'onChange':_0x4d14c1=>_0x515c06(_0x57c4e7(0x1da),Number(_0x4d14c1))})]}),(0x0,p[_0x57c4e7(0x295)])(_0x57c4e7(0x34d),{'children':[(0x0,p[_0x57c4e7(0x317)])('label',{'className':_0x57c4e7(0x18e),'children':_0x3b061b['t'](_0x57c4e7(0x310))}),(0x0,p[_0x57c4e7(0x317)])(c['Input'],{'type':_0x57c4e7(0x27c),'value':String(((_0xf87d89=_0x3e36da[_0x57c4e7(0x36b)])==null?void 0x0:_0xf87d89['left'])||0x0),'onChange':_0x419b9d=>_0x515c06('left',Number(_0x419b9d))})]}),(0x0,p['jsxs'])(_0x57c4e7(0x34d),{'children':[(0x0,p[_0x57c4e7(0x317)])('label',{'className':'univer-mb-1\x20univer-block\x20univer-text-xs\x20univer-text-gray-500','children':_0x3b061b['t'](_0x57c4e7(0x100))}),(0x0,p[_0x57c4e7(0x317)])(c[_0x57c4e7(0x179)],{'type':_0x57c4e7(0x27c),'value':String(((_0x22a425=_0x3e36da[_0x57c4e7(0x36b)])==null?void 0x0:_0x22a425['right'])||0x0),'onChange':_0x25dbef=>_0x515c06(_0x57c4e7(0x33a),Number(_0x25dbef))})]})]})}),(0x0,p['jsx'])(c[_0x57c4e7(0x351)],{'label':_0x3b061b['t']('sheets-print.orientation.title'),'children':(0x0,p[_0x57c4e7(0x295)])(c[_0x57c4e7(0x1d2)],{'value':_0x3e36da[_0x57c4e7(0x265)],'onChange':_0x53a53b=>{_0x32f28d['updateLayoutConfig']({'direction':_0x53a53b});},'children':[(0x0,p[_0x57c4e7(0x317)])(c['Radio'],{'value':i['PrintDirection'][_0x57c4e7(0x149)],'children':_0x3b061b['t']('sheets-print.orientation.portrait')}),(0x0,p[_0x57c4e7(0x317)])(c[_0x57c4e7(0x165)],{'value':i['PrintDirection'][_0x57c4e7(0xe0)],'children':_0x3b061b['t'](_0x57c4e7(0x399))})]})}),(0x0,p[_0x57c4e7(0x317)])(c[_0x57c4e7(0x351)],{'collapsable':!0x0,'label':_0x3b061b['t'](_0x57c4e7(0x1a1)),'children':(0x0,p['jsxs'])(c['CheckboxGroup'],{'direction':'vertical','value':_0x3e36da[_0x57c4e7(0x1f4)],'onChange':_0x4676e2=>{_0x32f28d['updateLayoutConfig']({'freeze':_0x4676e2});},'children':[(0x0,p['jsx'])(c['Checkbox'],{'disabled':_0x5eb7b1,'value':_0x57c4e7(0x138),'children':_0x3b061b['t'](_0x57c4e7(0x27d))}),(0x0,p[_0x57c4e7(0x317)])(c[_0x57c4e7(0x334)],{'disabled':_0x39e724,'value':'Column','children':_0x3b061b['t']('sheets-print.freeze.column')})]})}),(0x0,p['jsxs'])(c[_0x57c4e7(0x351)],{'collapsable':!0x0,'defaultCollapsed':!0x0,'label':_0x3b061b['t']('sheets-print.area.limit'),'children':[(0x0,p[_0x57c4e7(0x317)])(c[_0x57c4e7(0x351)],{'className':_0x57c4e7(0x1a4),'label':_0x3b061b['t'](_0x57c4e7(0x2f4)),'children':(0x0,p[_0x57c4e7(0x317)])(c[_0x57c4e7(0x179)],{'value':_0x3e36da[_0x57c4e7(0x345)]===0x1/0x0?'':''+_0x3e36da['maxRowsEachPage'],'onChange':_0x455c48=>{const _0x18219d=_0x57c4e7;_0x32f28d['updateLayoutConfig']({'maxRowsEachPage':!_0x455c48||Number[_0x18219d(0x196)](Number(_0x455c48))?0x1/0x0:Number(_0x455c48)});}})}),(0x0,p[_0x57c4e7(0x317)])(c[_0x57c4e7(0x351)],{'label':_0x3b061b['t']('sheets-print.area.maxColumnsEachPage'),'children':(0x0,p[_0x57c4e7(0x317)])(c[_0x57c4e7(0x179)],{'value':_0x3e36da[_0x57c4e7(0x1e4)]===0x1/0x0?'':''+_0x3e36da['maxColumnsEachPage'],'onChange':_0xed46f8=>{const _0x5de7c4=_0x57c4e7;_0x32f28d[_0x5de7c4(0x210)]({'maxColumnsEachPage':!_0xed46f8||Number['isNaN'](Number(_0xed46f8))?0x1/0x0:Number(_0xed46f8)});}})})]})]}),(0x0,p[_0x57c4e7(0x295)])(_0x57c4e7(0x34d),{'className':_0x57c4e7(0x104),'children':[(0x0,p[_0x57c4e7(0x317)])(c[_0x57c4e7(0x21a)],{'type':_0x57c4e7(0x1ca),'variant':_0x57c4e7(0x2e3),'size':_0x57c4e7(0x32d),'className':_0x57c4e7(0x2f1),'onClick':()=>{_0x472f22['executeCommand'](U['id']),_0x32664a();},'children':_0x3b061b['t'](_0x57c4e7(0x19b))}),(0x0,p['jsx'])(c[_0x57c4e7(0x21a)],{'type':_0x57c4e7(0x2ba),'size':_0x57c4e7(0x32d),'className':_0x57c4e7(0x2f1),'onClick':_0x32664a,'children':_0x3b061b['t']('sheets-print.grid.closeAndHide')})]})]});}),xe=[0x6,0x4];var Z=class e extends a[_0x17c546(0x396)]{constructor(..._0xdb3d04){const _0xbab6a0=_0x17c546;super(..._0xdb3d04),T(this,_0xbab6a0(0x1c3),_0xbab6a0(0x2c7)),T(this,_0xbab6a0(0x144),0x3d);}[_0x17c546(0x343)](_0x5b64d,_0x3ef93a,_0x52e90e,_0xa92b65){const _0x231ede=_0x17c546;if(_0x5b64d['__mode']===_0x231ede(0x364)||!e['printGridService']||!e[_0x231ede(0xfe)]||!e[_0x231ede(0x1dd)][_0x231ede(0x247)])return;let {worksheet:_0x17a6a3}=_0x52e90e;if(!_0x17a6a3)return;let _0x1cb340=e['printManagerService'][_0x231ede(0x1c6)],_0x1377ab=_0x17a6a3['getSheetId'](),_0x302041=_0x1cb340['find'](_0x3c20fa=>_0x3c20fa[_0x231ede(0x216)]===_0x1377ab);_0x302041&&this[_0x231ede(0x285)](_0x5b64d,_0x52e90e,_0x302041);}[_0x17c546(0x285)](_0x227902,_0x566042,_0x2de10b){const _0x213b11=_0x17c546;let {pages:_0x406bc0}=_0x2de10b,{rowHeightAccumulation:_0x56e37f,columnWidthAccumulation:_0x4331b1}=_0x566042;_0x227902[_0x213b11(0x24b)](),_0x227902['strokeStyle']=_0x213b11(0x37a),_0x227902['lineWidth']=0x2,_0x227902[_0x213b11(0x1f7)](xe);let _0x473fbf=new Set(),_0x82fec5=new Set();_0x406bc0['forEach'](_0x16efd5=>{const _0x513d0b=_0x213b11;let {startRow:_0x157763,endRow:_0x3f0099,startColumn:_0x481cc0,endColumn:_0xe40660}=_0x16efd5,_0x4cfb1b=_0x157763===0x0?0x0:_0x56e37f[_0x157763-0x1],_0x23f35e=_0x56e37f[_0x3f0099],_0x2b1b6d=_0x481cc0===0x0?0x0:_0x4331b1[_0x481cc0-0x1],_0x3af5e4=_0x4331b1[_0xe40660];_0x473fbf['add'](_0x4cfb1b),_0x473fbf[_0x513d0b(0x220)](_0x23f35e),_0x82fec5['add'](_0x2b1b6d),_0x82fec5[_0x513d0b(0x220)](_0x3af5e4);});let _0x5cf949=Math[_0x213b11(0x226)](...Array[_0x213b11(0x1fe)](_0x82fec5)),_0x505452=Math[_0x213b11(0x2f9)](...Array[_0x213b11(0x1fe)](_0x82fec5)),_0x585fed=Math[_0x213b11(0x226)](...Array[_0x213b11(0x1fe)](_0x473fbf)),_0x40ca49=Math['max'](...Array[_0x213b11(0x1fe)](_0x473fbf));_0x473fbf['forEach'](_0x5a7694=>{const _0x1c1786=_0x213b11;_0x227902['beginPath'](),_0x227902['moveTo'](_0x5cf949,_0x5a7694),_0x227902[_0x1c1786(0xef)](_0x505452,_0x5a7694),_0x227902[_0x1c1786(0x33c)]();}),_0x82fec5[_0x213b11(0x38c)](_0x9063d5=>{const _0x40e7=_0x213b11;_0x227902[_0x40e7(0x2e6)](),_0x227902['moveTo'](_0x9063d5,_0x585fed),_0x227902[_0x40e7(0xef)](_0x9063d5,_0x40ca49),_0x227902[_0x40e7(0x33c)]();}),_0x227902['restore']();}};T(Z,_0x17c546(0x1dd),null),T(Z,_0x17c546(0xfe),null),a[_0x17c546(0x337)][_0x17c546(0x220)](Z);const Se=_0x17c546(0x10e);function Ce(_0x1b0f25){const _0x171720=_0x17c546;return{'id':Se,'type':r['MenuItemType']['SUBITEMS'],'icon':_0x171720(0x255),'tooltip':_0x171720(0x19b),'hidden$':(0x0,r[_0x171720(0x1de)])(_0x1b0f25,t['UniverInstanceType'][_0x171720(0x18c)]),'disabled$':(0x0,o[_0x171720(0x1d5)])(_0x1b0f25,{'workbookTypes':[n['WorkbookPrintPermission']]})};}function we(_0x3b98cb){const _0x1d1a06=_0x17c546;return{'id':U['id'],'type':r[_0x1d1a06(0x1bf)][_0x1d1a06(0x1b8)],'title':'sheets-print.menu'};}function Te(_0x352341){const _0x3b6561=_0x17c546;return{'id':J['id'],'type':r['MenuItemType'][_0x3b6561(0x1b8)],'title':_0x3b6561(0x20a),'icon':_0x3b6561(0x326),'tooltip':_0x3b6561(0x20a),'hidden$':(0x0,r[_0x3b6561(0x1de)])(_0x352341,t[_0x3b6561(0x35a)]['UNIVER_SHEET']),'disabled$':(0x0,o[_0x3b6561(0x1d5)])(_0x352341,{'workbookTypes':[n[_0x3b6561(0x203)],n[_0x3b6561(0x36c)],n[_0x3b6561(0x146)]],'worksheetTypes':[n['WorksheetCopyPermission'],n['WorksheetViewPermission']],'rangeTypes':[n[_0x3b6561(0x16d)]]})};}function Ee(_0x1187a5){const _0x46f59a=_0x17c546;return{'id':X['id'],'type':r[_0x46f59a(0x1bf)][_0x46f59a(0x1b8)],'title':'sheets-print.grid.title'};}const De={[r[_0x17c546(0x1a8)][_0x17c546(0x32f)]]:{[Se]:{'order':0.1,'menuItemFactory':Ce,[U['id']]:{'order':0x0,'menuItemFactory':we},[X['id']]:{'order':0x1,'menuItemFactory':Ee}}},[r[_0x17c546(0x237)][_0x17c546(0x3a1)]]:{[r[_0x17c546(0x248)]['OTHERS']]:{[J['id']]:{'order':2.1,'menuItemFactory':Te}}}},Oe={'id':U['id'],'binding':r['KeyCode']['P']|r[_0x17c546(0x273)][_0x17c546(0x359)],'preconditions':o[_0x17c546(0x291)]};let Q=class extends t[_0x17c546(0x17a)]{constructor(_0x3ba82c,_0x526fe0,_0x314c83,_0x432a1d,_0x2f4449,_0x29ca13,_0x2bc148,_0x375d0f,_0x1a1629,_0x2eb35f){const _0x3ab3ed=_0x17c546;super(),this[_0x3ab3ed(0x328)]=_0x3ba82c,this[_0x3ab3ed(0x1d0)]=_0x526fe0,this[_0x3ab3ed(0x306)]=_0x314c83,this[_0x3ab3ed(0x115)]=_0x432a1d,this[_0x3ab3ed(0x349)]=_0x2f4449,this[_0x3ab3ed(0x348)]=_0x29ca13,this[_0x3ab3ed(0x1aa)]=_0x2bc148,this[_0x3ab3ed(0x28e)]=_0x375d0f,this[_0x3ab3ed(0x2fd)]=_0x1a1629,this['_renderManagerService']=_0x2eb35f,this[_0x3ab3ed(0x231)]();}['_initialize'](){const _0x59a5f2=_0x17c546;this[_0x59a5f2(0x38b)](),this[_0x59a5f2(0x2d8)](),this[_0x59a5f2(0x308)](),this[_0x59a5f2(0x1f6)](),this[_0x59a5f2(0x26d)](),this[_0x59a5f2(0x29a)](),this[_0x59a5f2(0xf0)](),this[_0x59a5f2(0x19c)]();}[_0x17c546(0x38b)](){const _0x40fcd5=_0x17c546;[U,W,G,J,K,X,ye][_0x40fcd5(0x38c)](_0x15b2c2=>this[_0x40fcd5(0x1d0)][_0x40fcd5(0x114)](_0x15b2c2));}[_0x17c546(0x2d8)](){const _0x2f1c61=_0x17c546;[[_0x2f1c61(0x255),l['PrintIcon']]][_0x2f1c61(0x38c)](([_0x5626f3,_0x5352a9])=>{const _0x1aff0f=_0x2f1c61;this['_componentManager'][_0x1aff0f(0x212)](_0x5626f3,_0x5352a9);}),this[_0x2f1c61(0x349)][_0x2f1c61(0x212)](ve,be);}[_0x17c546(0x1f6)](){const _0x2f6c7c=_0x17c546;[Oe][_0x2f6c7c(0x38c)](_0x27d54f=>{const _0x1437fc=_0x2f6c7c;this[_0x1437fc(0x1aa)][_0x1437fc(0x2b7)](_0x27d54f);});}['_initMenus'](){const _0x33a2fb=_0x17c546;this[_0x33a2fb(0x348)][_0x33a2fb(0x139)](De);}[_0x17c546(0x29a)](){const _0x939903=_0x17c546;this[_0x939903(0xf3)](this[_0x939903(0x328)][_0x939903(0x177)][_0x939903(0x390)](_0x3501e5=>{const _0x31dd37=_0x939903;_0x3501e5&&this[_0x31dd37(0x306)][_0x31dd37(0x2bc)]();}));}['_print'](){const _0x35b1ca=_0x17c546;let _0x1e9ab5=this[_0x35b1ca(0x306)][_0x35b1ca(0x1c6)],_0x5cd05e=this[_0x35b1ca(0x306)][_0x35b1ca(0x234)];return this['_sheetPrintClientService']['print'](_0x1e9ab5,_0x5cd05e);}[_0x17c546(0x26d)](){const _0x338f9d=_0x17c546;this[_0x338f9d(0xf3)](this[_0x338f9d(0x1d0)][_0x338f9d(0x11c)](_0x4deadd=>{const _0x3a1b7d=_0x338f9d;_0x4deadd['id']===G['id']&&this[_0x3a1b7d(0x287)]();}));}[_0x17c546(0xf0)](){const _0x5dfc63=_0x17c546;let _0x2908ef=this['_injector'][_0x5dfc63(0x198)](Y),_0x486823=this[_0x5dfc63(0x28e)]['get'](O);Z[_0x5dfc63(0x1dd)]=_0x2908ef,Z[_0x5dfc63(0xfe)]=_0x486823;}[_0x17c546(0x19c)](){const _0x1491fb=_0x17c546;let _0x158eb9=this[_0x1491fb(0x28e)][_0x1491fb(0x198)](Y);this[_0x1491fb(0xf3)](_0x158eb9[_0x1491fb(0x177)][_0x1491fb(0x390)](()=>{const _0x11f083=_0x1491fb;let _0x376246=this['_univerInstanceService'][_0x11f083(0x1c2)](0x2);if(_0x376246){let _0x4f5c35=_0x376246[_0x11f083(0x14d)](),_0x455245=this['_renderManagerService'][_0x11f083(0x346)](_0x4f5c35);if(_0x455245){var _0x243f99;(_0x243f99=_0x455245[_0x11f083(0x122)])==null||_0x243f99[_0x11f083(0x132)]();}}})),this[_0x1491fb(0xf3)](this['_sheetPrintManagerService'][_0x1491fb(0x223)][_0x1491fb(0x390)](()=>{const _0x532a72=_0x1491fb;if(!_0x158eb9[_0x532a72(0x247)])return;this[_0x532a72(0x306)][_0x532a72(0x2bc)]();let _0x364d71=this[_0x532a72(0x2fd)][_0x532a72(0x1c2)](0x2);if(_0x364d71){let _0x2161fb=_0x364d71['getUnitId'](),_0x499054=this[_0x532a72(0x339)][_0x532a72(0x346)](_0x2161fb);if(_0x499054){var _0x3f8006;(_0x3f8006=_0x499054[_0x532a72(0x122)])==null||_0x3f8006['makeDirty']();}}})),this[_0x1491fb(0xf3)](this[_0x1491fb(0x1d0)]['onCommandExecuted'](_0x3c95fc=>{const _0x52c58d=_0x1491fb;if(!_0x158eb9[_0x52c58d(0x247)]||[U['id'],W['id'],G['id'],K['id'],X['id'],ye['id']]['includes'](_0x3c95fc['id']))return;this[_0x52c58d(0x306)]['reLayout']();let _0x134932=this[_0x52c58d(0x2fd)]['getCurrentUnitOfType'](0x2);if(_0x134932){let _0x229aeb=_0x134932[_0x52c58d(0x14d)](),_0x1afaf5=this['_renderManagerService'][_0x52c58d(0x346)](_0x229aeb);if(_0x1afaf5){var _0x557d83;(_0x557d83=_0x1afaf5[_0x52c58d(0x122)])==null||_0x557d83['makeDirty']();}}}));}};Q=D([E(0x0,r[_0x17c546(0x370)]),E(0x1,t[_0x17c546(0x257)]),E(0x2,O),E(0x3,(0x0,t[_0x17c546(0x12b)])(q)),E(0x4,(0x0,t[_0x17c546(0x12b)])(r[_0x17c546(0x2fc)])),E(0x5,r[_0x17c546(0x11f)]),E(0x6,r[_0x17c546(0x19e)]),E(0x7,(0x0,t[_0x17c546(0x12b)])(t[_0x17c546(0x21c)])),E(0x8,t[_0x17c546(0x368)]),E(0x9,a['IRenderManagerService'])],Q);let $=class extends t[_0x17c546(0x123)]{constructor(_0x6bf57f=F,_0x501d7e,_0x1ff67e){const _0x5658b0=_0x17c546;super(),this[_0x5658b0(0x124)]=_0x6bf57f,this[_0x5658b0(0x28e)]=_0x501d7e,this[_0x5658b0(0x158)]=_0x1ff67e;let {menu:_0x4d38d0,..._0xb636e5}=(0x0,t['merge'])({},F,this['_config']);_0x4d38d0&&this[_0x5658b0(0x158)][_0x5658b0(0x276)](_0x5658b0(0x2b3),_0x4d38d0,{'merge':!0x0}),this[_0x5658b0(0x158)][_0x5658b0(0x276)]('sheets-print.config',_0xb636e5);}[_0x17c546(0x1fb)](){const _0x434ba0=_0x17c546;(0x0,t[_0x434ba0(0xe8)])(this[_0x434ba0(0x28e)],[[O,{'useClass':M}],[Y,{'useClass':_e}],[q],[Q]]),(0x0,t[_0x434ba0(0x1f8)])(this[_0x434ba0(0x28e)],[[Q]]);}};T($,_0x17c546(0x1f9),_0x17c546(0x2e8)),T($,_0x17c546(0x266),he),T($,'version',ge),T($,_0x17c546(0x2c2),t['UniverInstanceType']['UNIVER_SHEET']),$=D([(0x0,t[_0x17c546(0x1a5)])(m[_0x17c546(0x3a3)],e[_0x17c546(0x21d)]),E(0x1,(0x0,t['Inject'])(t[_0x17c546(0x21c)])),E(0x2,t[_0x17c546(0x333)])],$),exports[_0x17c546(0x133)]=W,exports[_0x17c546(0x1c7)]=G,exports[_0x17c546(0x32a)]=O,exports['PrintArea']=_,exports['PrintFreeze']=y,exports['PrintHeaderFooter']=v,exports[_0x17c546(0x39f)]=b,exports[_0x17c546(0x229)]=V,Object[_0x17c546(0x17b)](exports,'SheetPrintClientService',{'enumerable':!0x0,'get':function(){return q;}}),Object['defineProperty'](exports,_0x17c546(0x14a),{'enumerable':!0x0,'get':function(){return M;}}),exports['SheetPrintOpenOperation']=U,exports[_0x17c546(0x2af)]=K,exports['SheetScreenShotOperation']=J,Object[_0x17c546(0x17b)](exports,_0x17c546(0x29d),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x17c546(0x27b)]=x,exports[_0x17c546(0x24a)]=P;
1
+ const _0x9572bf=_0x1d24;(function(_0x192b12,_0x5b448e){const _0xdae987=_0x1d24,_0x322c9c=_0x192b12();while(!![]){try{const _0x23a54e=-parseInt(_0xdae987(0x2c7))/0x1+parseInt(_0xdae987(0x38c))/0x2*(parseInt(_0xdae987(0x3b5))/0x3)+-parseInt(_0xdae987(0x403))/0x4*(-parseInt(_0xdae987(0x260))/0x5)+-parseInt(_0xdae987(0x2e5))/0x6*(parseInt(_0xdae987(0x375))/0x7)+parseInt(_0xdae987(0x201))/0x8+-parseInt(_0xdae987(0x16c))/0x9+-parseInt(_0xdae987(0x3c2))/0xa*(-parseInt(_0xdae987(0x21a))/0xb);if(_0x23a54e===_0x5b448e)break;else _0x322c9c['push'](_0x322c9c['shift']());}catch(_0x6fac0b){_0x322c9c['push'](_0x322c9c['shift']());}}}(_0x3555,0xb9d42),Object[_0x9572bf(0x369)](exports,Symbol[_0x9572bf(0x1b2)],{'value':_0x9572bf(0x22e)}));let e=require('@univerjs-pro/license'),t=require('@univerjs/core'),n=require('@univerjs/sheets'),r=require('@univerjs/ui'),i=require('@univerjs-pro/print'),a=require('@univerjs/engine-render'),o=require('@univerjs/sheets-ui'),s=require('rxjs'),c=require('@univerjs/design'),l=require('@univerjs/icons'),u=require('react'),d=require('@univerjs/docs'),f=require('@univerjs/docs-ui'),p=require('react/jsx-runtime'),m=require('@univerjs/network');const h=Number[_0x9572bf(0x25d)](0x6a3f475e),g=_0x9572bf(0x2d5);let _=function(_0x276e9b){const _0x27040e=_0x9572bf;return _0x276e9b[_0x27040e(0x144)]='CurrentSheet',_0x276e9b[_0x27040e(0x2f3)]=_0x27040e(0x298),_0x276e9b['CurrentSelection']=_0x27040e(0x23c),_0x276e9b[_0x27040e(0x36a)]='AllSelection',_0x276e9b;}({}),v=function(_0xe302f6){const _0x2a0bcf=_0x9572bf;return _0xe302f6[_0x2a0bcf(0x219)]='PageSize',_0xe302f6[_0x2a0bcf(0x213)]='WorkbookTitle',_0xe302f6[_0x2a0bcf(0x172)]=_0x2a0bcf(0x172),_0xe302f6[_0x2a0bcf(0x40d)]=_0x2a0bcf(0x40d),_0xe302f6['Time']=_0x2a0bcf(0x20e),_0xe302f6;}({}),y=function(_0x2d6db1){const _0x31ad09=_0x9572bf;return _0x2d6db1['Row']=_0x31ad09(0x2bc),_0x2d6db1['Column']=_0x31ad09(0x39b),_0x2d6db1;}({}),b=function(_0x1bde4a){const _0x34c322=_0x9572bf;return _0x1bde4a[_0x34c322(0x213)]='@WorkbookTitle',_0x1bde4a[_0x34c322(0x172)]=_0x34c322(0x19d),_0x1bde4a[_0x34c322(0x277)]='@DateA',_0x1bde4a[_0x34c322(0x295)]=_0x34c322(0x1f1),_0x1bde4a['DateC']=_0x34c322(0x1a1),_0x1bde4a[_0x34c322(0x372)]=_0x34c322(0x3bf),_0x1bde4a[_0x34c322(0x2a4)]=_0x34c322(0x32f),_0x1bde4a[_0x34c322(0x156)]=_0x34c322(0x282),_0x1bde4a[_0x34c322(0x31a)]='@TimeB',_0x1bde4a[_0x34c322(0x182)]='@TimeC',_0x1bde4a[_0x34c322(0x2e4)]='@TimeD',_0x1bde4a[_0x34c322(0x364)]=_0x34c322(0x2bd),_0x1bde4a[_0x34c322(0x2a8)]=_0x34c322(0x306),_0x1bde4a[_0x34c322(0x3f5)]='@TotalPage',_0x1bde4a[_0x34c322(0x391)]=_0x34c322(0x3aa),_0x1bde4a;}({});const x={'topLeft':'','topCenter':'','topRight':'','bottomLeft':'','bottomCenter':'','bottomRight':''};function S(_0x435815){'@babel/helpers - typeof';const _0x5e3e7c=_0x9572bf;return S=typeof Symbol==_0x5e3e7c(0x20c)&&typeof Symbol[_0x5e3e7c(0x327)]==_0x5e3e7c(0x1ec)?function(_0x5f0b48){return typeof _0x5f0b48;}:function(_0x2278d3){const _0x30ff1f=_0x5e3e7c;return _0x2278d3&&typeof Symbol==_0x30ff1f(0x20c)&&_0x2278d3[_0x30ff1f(0x2ed)]===Symbol&&_0x2278d3!==Symbol[_0x30ff1f(0x2af)]?_0x30ff1f(0x1ec):typeof _0x2278d3;},S(_0x435815);}function C(_0x1f93c8,_0x3e2def){const _0x336cb0=_0x9572bf;if(S(_0x1f93c8)!=_0x336cb0(0x27f)||!_0x1f93c8)return _0x1f93c8;var _0x22ecb4=_0x1f93c8[Symbol[_0x336cb0(0x1cb)]];if(_0x22ecb4!==void 0x0){var _0x3b29a3=_0x22ecb4[_0x336cb0(0x250)](_0x1f93c8,_0x3e2def||_0x336cb0(0x316));if(S(_0x3b29a3)!=_0x336cb0(0x27f))return _0x3b29a3;throw TypeError(_0x336cb0(0x2ea));}return(_0x3e2def===_0x336cb0(0x28b)?String:Number)(_0x1f93c8);}function w(_0x220f09){const _0x521ec0=_0x9572bf;var _0x1b5e2e=C(_0x220f09,_0x521ec0(0x28b));return S(_0x1b5e2e)==_0x521ec0(0x1ec)?_0x1b5e2e:_0x1b5e2e+'';}function T(_0x56ee9d,_0x4e7946,_0x2f4223){const _0x69e5f=_0x9572bf;return(_0x4e7946=w(_0x4e7946))in _0x56ee9d?Object[_0x69e5f(0x369)](_0x56ee9d,_0x4e7946,{'value':_0x2f4223,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x56ee9d[_0x4e7946]=_0x2f4223,_0x56ee9d;}function E(_0x37c604,_0x827a64){return function(_0x129d09,_0x5941c1){_0x827a64(_0x129d09,_0x5941c1,_0x37c604);};}function D(_0x264f8e,_0x41945d,_0x16dd40,_0x2cd081){const _0x52eea7=_0x9572bf;var _0x52f350=arguments['length'],_0x4dfee7=_0x52f350<0x3?_0x41945d:_0x2cd081===null?_0x2cd081=Object[_0x52eea7(0x252)](_0x41945d,_0x16dd40):_0x2cd081,_0x59760b;if(typeof Reflect==_0x52eea7(0x27f)&&typeof Reflect[_0x52eea7(0x3c4)]==_0x52eea7(0x20c))_0x4dfee7=Reflect['decorate'](_0x264f8e,_0x41945d,_0x16dd40,_0x2cd081);else{for(var _0x66000f=_0x264f8e[_0x52eea7(0x362)]-0x1;_0x66000f>=0x0;_0x66000f--)(_0x59760b=_0x264f8e[_0x66000f])&&(_0x4dfee7=(_0x52f350<0x3?_0x59760b(_0x4dfee7):_0x52f350>0x3?_0x59760b(_0x41945d,_0x16dd40,_0x4dfee7):_0x59760b(_0x41945d,_0x16dd40))||_0x4dfee7);}return _0x52f350>0x3&&_0x4dfee7&&Object[_0x52eea7(0x369)](_0x41945d,_0x16dd40,_0x4dfee7),_0x4dfee7;}const O=(0x0,t[_0x9572bf(0x3e9)])('univer-pro.sheet-print-manager.service'),k=_0x17c516=>Math[_0x9572bf(0x3cb)](_0x17c516*0x64)/0x64,A={'startColumn':0x0,'endColumn':0x0,'startRow':0x0,'endRow':0x0},j={'startColumn':-0x1,'startRow':-0x1,'xSplit':0x0,'ySplit':0x0};let M=class{constructor(_0x37b49a,_0x5a5da5,_0xd1f2e2,_0x9ba33f){const _0x2eae25=_0x9572bf;this[_0x2eae25(0x1e7)]=_0x37b49a,this[_0x2eae25(0x158)]=_0x5a5da5,this['_sheetPrintInterceptorService']=_0xd1f2e2,this[_0x2eae25(0x2f7)]=_0x9ba33f,T(this,_0x2eae25(0x186),{'area':_0x2eae25(0x144),'subUnitIds':[],'paperSize':t[_0x2eae25(0x235)]['A4'],'direction':i[_0x2eae25(0x197)][_0x2eae25(0x1a2)],'scale':i[_0x2eae25(0x269)][_0x2eae25(0x416)],'customScale':0x1,'freeze':[_0x2eae25(0x2bc),_0x2eae25(0x39b)],'margin':i[_0x2eae25(0x18d)][_0x2eae25(0x3f3)],'maxRowsEachPage':0x1/0x0,'maxColumnsEachPage':0x1/0x0,'marginCustom':{'top':0x0,'bottom':0x0,'left':0x0,'right':0x0}}),T(this,_0x2eae25(0x2ae),{'gridlines':!0x0,'hAlign':i[_0x2eae25(0x1e1)][_0x2eae25(0x342)],'vAlign':i[_0x2eae25(0x1e1)][_0x2eae25(0x2e6)],'headerFooter':[],'headerFooterSetting':x,'isCustomHeaderFooter':!0x1}),T(this,'_layoutInfos',[]),T(this,_0x2eae25(0x341),new s[(_0x2eae25(0x169))](this[_0x2eae25(0x2e2)])),T(this,'_layoutConfig$',new s[(_0x2eae25(0x169))](this['_layoutConfig'])),T(this,_0x2eae25(0x198),new s[(_0x2eae25(0x169))](this[_0x2eae25(0x2ae)])),T(this,_0x2eae25(0x177),null),T(this,_0x2eae25(0x1eb),this['_layoutConfig$'][_0x2eae25(0x1db)]()),T(this,'renderConfig$',this[_0x2eae25(0x198)][_0x2eae25(0x1db)]()),T(this,_0x2eae25(0x23a),this[_0x2eae25(0x341)][_0x2eae25(0x1db)]()[_0x2eae25(0x2d2)]((0x0,s['debounceTime'])(0x12c)));}get[_0x9572bf(0x38b)](){const _0x2ac8dd=_0x9572bf;return this[_0x2ac8dd(0x2e2)];}get[_0x9572bf(0x280)](){const _0x1ba040=_0x9572bf;return this[_0x1ba040(0x2ae)];}get[_0x9572bf(0x3d8)](){const _0x31dae8=_0x9572bf;return this[_0x31dae8(0x186)];}get[_0x9572bf(0x1c9)](){const _0xa67e53=_0x9572bf;let {paperSize:_0x109bda,direction:_0x5b8d7c,pageSizeCustom:_0x425b7d}=this[_0xa67e53(0x186)];if(_0x425b7d)return _0x425b7d;let _0x11e732=t[_0xa67e53(0x1b0)][_0x109bda];return _0x5b8d7c===i[_0xa67e53(0x197)][_0xa67e53(0x1a2)]?{'w':_0x11e732[_0xa67e53(0x1d2)],'h':_0x11e732[_0xa67e53(0x373)]}:{'w':_0x11e732[_0xa67e53(0x373)],'h':_0x11e732[_0xa67e53(0x1d2)]};}get['paperMargin'](){const _0x27d562=_0x9572bf;return this[_0x27d562(0x186)]['margin']===i[_0x27d562(0x18d)][_0x27d562(0x1fd)]?this[_0x27d562(0x186)][_0x27d562(0x29d)]:i[_0x27d562(0x3ba)][this[_0x27d562(0x186)][_0x27d562(0x231)]];}[_0x9572bf(0x15b)](_0xad913d){const _0x8bd991=_0x9572bf;this[_0x8bd991(0x186)]={...this[_0x8bd991(0x186)],..._0xad913d},this[_0x8bd991(0x359)]['next'](this[_0x8bd991(0x186)]),this[_0x8bd991(0x367)]();}[_0x9572bf(0x3d6)](_0x285510){const _0x14d729=_0x9572bf;this[_0x14d729(0x186)]=_0x285510,this[_0x14d729(0x359)][_0x14d729(0x36f)](this[_0x14d729(0x186)]),this['reLayout']();}[_0x9572bf(0x216)](_0x42b60a){const _0x22781c=_0x9572bf;this[_0x22781c(0x2ae)]={...this[_0x22781c(0x2ae)],..._0x42b60a},this['_renderConfig$']['next'](this[_0x22781c(0x2ae)]);}['replaceRenderConfig'](_0x10266d){const _0xcba461=_0x9572bf;this[_0xcba461(0x2ae)]=_0x10266d,this[_0xcba461(0x198)][_0xcba461(0x36f)](this[_0xcba461(0x2ae)]);}[_0x9572bf(0x367)](){const _0x33336c=_0x9572bf;this[_0x33336c(0x2e2)]=this[_0x33336c(0x162)](),this['_layoutInfos$'][_0x33336c(0x36f)](this[_0x33336c(0x2e2)]);}[_0x9572bf(0x3a7)](){const _0x236a87=_0x9572bf;this[_0x236a87(0x2e2)]=[],this['_layoutInfos$'][_0x236a87(0x36f)](this[_0x236a87(0x2e2)]),this[_0x236a87(0x186)]={...this[_0x236a87(0x186)],'area':_0x236a87(0x144),'maxRowsEachPage':0x1/0x0,'maxColumnsEachPage':0x1/0x0},this[_0x236a87(0x359)][_0x236a87(0x36f)](this[_0x236a87(0x186)]);}['setPrintViewDisposable'](_0x928aa){const _0x3e9cab=_0x9572bf;var _0x4186f0;(_0x4186f0=this[_0x3e9cab(0x177)])==null||_0x4186f0[_0x3e9cab(0x2c5)](),this['_printViewDisposable']=_0x928aa;}['disposePrintView'](){const _0x409ec2=_0x9572bf;var _0xa9e069;(_0xa9e069=this[_0x409ec2(0x177)])==null||_0xa9e069[_0x409ec2(0x2c5)](),this[_0x409ec2(0x177)]=null;}[_0x9572bf(0x162)](){const _0x1514c6=_0x9572bf;let _0x46861c=this[_0x1514c6(0x135)](),_0x4f3530=[];return _0x46861c[_0x1514c6(0x307)](_0x12e8cb=>{const _0x368c98=_0x1514c6;if(_0x12e8cb){let _0x2a23fb=this[_0x368c98(0x3ff)](_0x12e8cb);_0x2a23fb&&_0x4f3530[_0x368c98(0x278)](_0x2a23fb);}}),_0x4f3530;}[_0x9572bf(0x273)](_0x56eb13,_0x409150,_0x28dd4f){const _0x251acc=_0x9572bf;var _0x500ff7;let _0x3ff075=this[_0x251acc(0x1e7)][_0x251acc(0x199)](t[_0x251acc(0x21d)][_0x251acc(0x3ac)])[_0x251acc(0x21b)](_0x409150);if(!_0x3ff075)return;let _0x5e94b8=_0x3ff075['getFreeze'](),_0x2c0c32=_0x28dd4f==null?_0x3ff075[_0x251acc(0x1f6)]():_0x28dd4f,_0x55eed2=(_0x500ff7=this[_0x251acc(0x2f7)][_0x251acc(0x36e)](_0x56eb13))==null?void 0x0:_0x500ff7['with'](o[_0x251acc(0x3f1)])['ensureSkeleton'](_0x409150);if(!_0x55eed2)return;if(_0x2c0c32){var _0x31a18f;_0x55eed2==null||(_0x31a18f=_0x55eed2[_0x251acc(0x2ef)])==null||_0x31a18f[_0x251acc(0x370)]((_0x70fc68,_0x203f82,_0x5a7fa8)=>{const _0x302ef2=_0x251acc;let {endColumn:_0xb67077}=_0x5a7fa8;_0xb67077>_0x2c0c32[_0x302ef2(0x344)]&&(_0x2c0c32[_0x302ef2(0x344)]=_0xb67077);});}let _0x15a1d2=this[_0x251acc(0x392)]['interceptor'][_0x251acc(0x30c)](this[_0x251acc(0x392)][_0x251acc(0x3c3)][_0x251acc(0x2be)]()[_0x251acc(0x25c)])(_0x2c0c32,{'unitId':_0x56eb13,'subUnitId':_0x409150});return _0x15a1d2?this[_0x251acc(0x190)](_0x409150,{..._0x15a1d2,'startColumn':Math[_0x251acc(0x19b)](_0x5e94b8[_0x251acc(0x159)]-_0x5e94b8[_0x251acc(0x21e)],0x0),'startRow':Math[_0x251acc(0x19b)](_0x5e94b8[_0x251acc(0x20d)]-_0x5e94b8[_0x251acc(0x3cd)],0x0)}):null;}[_0x9572bf(0x140)](_0x3ee511,_0x4de71e){const _0x4ce104=_0x9572bf;let _0x6f221a=this['_sheetsSelectionsSrv']['getWorkbookSelections'](_0x3ee511)[_0x4ce104(0x1f3)](_0x4de71e);return _0x6f221a?_0x6f221a[_0x4ce104(0x32e)](_0x71358d=>this[_0x4ce104(0x190)](_0x4de71e,_0x71358d['range'])):[];}['_calculateFinalRange'](_0x3aeb07,_0x53e2d9){const _0x2415e5=_0x9572bf;let _0x520e4e=this[_0x2415e5(0x1e7)][_0x2415e5(0x199)](t[_0x2415e5(0x21d)][_0x2415e5(0x3ac)]),_0x4eb2aa=_0x520e4e[_0x2415e5(0x21b)](_0x3aeb07),_0x7f5567=this[_0x2415e5(0x186)],_0x4afa1e=_0x520e4e['getUnitId'](),_0x37025a=this['paperSize'],{top:_0xc5480e,right:_0x54724e,bottom:_0x5d8873,left:_0x3c321f}=this[_0x2415e5(0x3d3)];_0x37025a['h']-=_0xc5480e+_0x5d8873,_0x37025a['w']-=_0x3c321f+_0x54724e;let _0x3db61e=this[_0x2415e5(0x2f7)][_0x2415e5(0x36e)](_0x4afa1e)[_0x2415e5(0x3b2)](o[_0x2415e5(0x3f1)]);if(_0x53e2d9[_0x2415e5(0x20d)]>-0x1&&_0x53e2d9[_0x2415e5(0x159)]>-0x1){let _0x1491b2=_0x3db61e[_0x2415e5(0x164)](_0x3aeb07);if(!_0x4eb2aa||!_0x1491b2)return null;let _0x36ea3d=_0x53e2d9[_0x2415e5(0x20d)],_0x283813=_0x53e2d9[_0x2415e5(0x3c6)],_0x3940b3=_0x53e2d9[_0x2415e5(0x159)],_0x439516=_0x53e2d9['endColumn'],_0x30af6e=_0x4eb2aa['getFreeze'](),_0x245291=k(this[_0x2415e5(0x1d6)](_0x1491b2,_0x53e2d9,_0x30af6e)),_0x1a9080=-0x1,_0x2e6bbf=0x0,_0x2b2b7d=-0x1,_0x57289b=0x0,_0x5ec1ac=_0x1491b2['columnWidthAccumulation'],_0x5eb402=_0x1491b2[_0x2415e5(0x3c8)];if(_0x30af6e['xSplit']&&_0x7f5567[_0x2415e5(0x3ef)][_0x2415e5(0x3af)]('Column')){if(_0x439516>=_0x30af6e[_0x2415e5(0x159)]){let _0x145e5b=_0x245291*(_0x5ec1ac[_0x30af6e[_0x2415e5(0x159)]-0x1]-(_0x5ec1ac[_0x30af6e[_0x2415e5(0x159)]-_0x30af6e[_0x2415e5(0x21e)]-0x1]||0x0));_0x145e5b<_0x37025a['w']&&(_0x2b2b7d=_0x30af6e[_0x2415e5(0x159)],_0x57289b=_0x30af6e['xSplit'],_0x37025a['w']-=_0x145e5b);}else{let _0x310489=_0x439516+0x1,_0x3037ea=_0x439516+0x1-(_0x30af6e[_0x2415e5(0x159)]-_0x30af6e['xSplit']),_0x124559=_0x245291*(_0x5ec1ac[_0x2b2b7d-0x1]-(_0x5ec1ac[_0x2b2b7d-_0x57289b]-0x1||0x0));_0x124559<_0x37025a['w']&&(_0x2b2b7d=_0x310489,_0x57289b=_0x3037ea,_0x37025a['w']-=_0x124559);}}if(_0x3940b3=Math[_0x2415e5(0x19b)](_0x2b2b7d,_0x3940b3),_0x30af6e[_0x2415e5(0x3cd)]&&_0x7f5567['freeze'][_0x2415e5(0x3af)]('Row')){if(_0x283813>=_0x30af6e['startRow']){let _0x5dadb7=_0x5eb402[_0x30af6e['startRow']]-_0x5eb402[_0x30af6e['startRow']-_0x30af6e[_0x2415e5(0x3cd)]];_0x5dadb7<_0x37025a['h']&&(_0x1a9080=_0x30af6e[_0x2415e5(0x20d)],_0x2e6bbf=_0x30af6e[_0x2415e5(0x3cd)],_0x37025a['h']-=_0x5dadb7);}else _0x1a9080=_0x283813+0x1,_0x2e6bbf=_0x283813+0x1-(_0x30af6e[_0x2415e5(0x20d)]-_0x30af6e[_0x2415e5(0x3cd)]),_0x37025a['h']=_0x37025a['h']-_0x5eb402[_0x1a9080]-_0x5eb402[_0x1a9080-_0x2e6bbf];}return _0x36ea3d=Math[_0x2415e5(0x19b)](_0x1a9080,_0x36ea3d),{'unitId':_0x4afa1e,'subUnitId':_0x3aeb07,'range':{'startRow':_0x36ea3d,'endRow':_0x283813,'startColumn':_0x3940b3,'endColumn':_0x439516},'freeze':{'startRow':_0x1a9080,'startColumn':_0x2b2b7d,'xSplit':_0x57289b,'ySplit':_0x2e6bbf},'contentSize':_0x37025a,'scale':_0x245291};}return{'unitId':_0x4afa1e,'subUnitId':_0x3aeb07,'range':A,'freeze':j,'contentSize':_0x37025a,'scale':0x1};}[_0x9572bf(0x1d6)](_0x2005d0,_0xf477a4,_0x5abd47){const _0x3be784=_0x9572bf;let _0x2e0def=_0x2005d0[_0x3be784(0x25a)],_0x5d5924=_0x2005d0[_0x3be784(0x3c8)],{xSplit:_0x35a426,ySplit:_0xafdae9,startColumn:_0x286d56,startRow:_0xc1e745}=_0x5abd47,{startRow:_0x398068,startColumn:_0x156413}=_0xf477a4,{endColumn:_0xd822b5,endRow:_0x3e6ea5}=_0xf477a4;_0x398068=_0x3e6ea5<_0xc1e745?_0x398068:Math[_0x3be784(0x19b)](_0xc1e745,_0x398068),_0x156413=_0xd822b5<_0x286d56?_0x156413:Math[_0x3be784(0x19b)](_0x286d56,_0x156413);let {scale:_0x38278c,customScale:_0xafb1f7}=this['_layoutConfig'],_0x30cb96=this[_0x3be784(0x1c9)],_0x4f7cac=this[_0x3be784(0x3d3)],_0x1c8869=_0x35a426>0x0?(_0x2e0def[_0x286d56-0x1]||0x0)-(_0x2e0def[_0x286d56-_0x35a426-0x1]||0x0):0x0,_0x349149=_0xafdae9>0x0?(_0x5d5924[_0xc1e745-0x1]||0x0)-(_0x5d5924[_0xc1e745-_0xafdae9-0x1]||0x0):0x0,_0x91fabc=_0x5d5924[_0x3e6ea5]-(_0x5d5924[_0x398068-0x1]||0x0),_0x30e27e=_0x2e0def[_0xd822b5]-(_0x2e0def[_0x156413-0x1]||0x0),_0x5586db=_0x91fabc+_0x349149,_0x16e9cd=_0x30e27e+_0x1c8869;switch(_0x38278c){case i[_0x3be784(0x269)]['Custom']:return _0xafb1f7;case i['PrintScale'][_0x3be784(0x227)]:return Math['min'](0x1,(_0x30cb96['w']-_0x4f7cac[_0x3be784(0x408)]-_0x4f7cac[_0x3be784(0x3cf)])/_0x16e9cd);case i[_0x3be784(0x269)][_0x3be784(0x155)]:return Math[_0x3be784(0x418)](0x1,(_0x30cb96['h']-_0x4f7cac[_0x3be784(0x1ee)]-_0x4f7cac['bottom'])/_0x5586db);case i[_0x3be784(0x269)][_0x3be784(0x151)]:return Math[_0x3be784(0x418)](0x1,(_0x30cb96['w']-_0x4f7cac['left']-_0x4f7cac[_0x3be784(0x3cf)])/_0x16e9cd,(_0x30cb96['h']-_0x4f7cac[_0x3be784(0x1ee)]-_0x4f7cac[_0x3be784(0x412)])/_0x5586db);default:return 0x1;}}[_0x9572bf(0x135)](){const _0x40b577=_0x9572bf;let {area:_0x390767,subUnitIds:_0x1b35f0}=this[_0x40b577(0x186)],_0x2d3668=this['_univerInstanceService'][_0x40b577(0x199)](t['UniverInstanceType'][_0x40b577(0x3ac)]),_0x608cf4=_0x2d3668[_0x40b577(0x415)]();switch(_0x390767){case _0x40b577(0x144):{var _0x8cad3e;let _0x17ff58=(_0x8cad3e=_0x2d3668[_0x40b577(0x1c0)]())==null?void 0x0:_0x8cad3e[_0x40b577(0x1a0)]();if(_0x17ff58!=null){let _0x347693=this[_0x40b577(0x273)](_0x608cf4,_0x17ff58);if(_0x347693)return[_0x347693];let _0x2392e6=this['_univerInstanceService'][_0x40b577(0x199)](t[_0x40b577(0x21d)][_0x40b577(0x3ac)]),_0x23a793=_0x2392e6['getActiveSheet']();return _0x23a793?this[_0x40b577(0x140)](_0x2392e6[_0x40b577(0x415)](),_0x23a793[_0x40b577(0x1a0)]()):(console['warn'](_0x40b577(0x228)),[]);}return[];}case _0x40b577(0x23c):{let _0x2eec8e=this[_0x40b577(0x1e7)][_0x40b577(0x199)](t[_0x40b577(0x21d)][_0x40b577(0x3ac)]),_0x139f96=_0x2eec8e[_0x40b577(0x1c0)]();return _0x139f96?this[_0x40b577(0x140)](_0x2eec8e[_0x40b577(0x415)](),_0x139f96[_0x40b577(0x1a0)]()):(console[_0x40b577(0x340)](_0x40b577(0x228)),[]);}case _0x40b577(0x36a):return this[_0x40b577(0x1e7)][_0x40b577(0x199)](t[_0x40b577(0x21d)][_0x40b577(0x3ac)])[_0x40b577(0x30a)]()[_0x40b577(0x32e)](_0x3964bd=>this[_0x40b577(0x140)](_0x608cf4,_0x3964bd[_0x40b577(0x1a0)]()))[_0x40b577(0x399)]();default:return(_0x1b35f0['length']?_0x1b35f0:_0x2d3668[_0x40b577(0x30a)]()[_0x40b577(0x134)](_0x3b1d46=>!_0x3b1d46[_0x40b577(0x38f)]())[_0x40b577(0x32e)](_0x36b6aa=>_0x36b6aa[_0x40b577(0x1a0)]()))[_0x40b577(0x32e)](_0x251670=>this[_0x40b577(0x273)](_0x608cf4,typeof _0x251670==_0x40b577(0x28b)?_0x251670:_0x251670['id'],typeof _0x251670==_0x40b577(0x28b)?void 0x0:_0x251670[_0x40b577(0x1c2)]))[_0x40b577(0x134)](Boolean);}}['_calculateSheetPages'](_0x5a399c){const _0x2506ac=_0x9572bf;let {subUnitId:_0x477429,range:_0x5c81e1,freeze:_0x174d2,unitId:_0x5cf00a,scale:_0x3d3e99,contentSize:_0x5839ac}=_0x5a399c,_0x13fe20=this['_renderManagerService']['getRenderById'](_0x5cf00a)[_0x2506ac(0x3b2)](o['SheetSkeletonManagerService'])[_0x2506ac(0x164)](_0x477429);if(!_0x13fe20)return;let {rowHeightAccumulation:_0x140b67,columnWidthAccumulation:_0x401261}=_0x13fe20,{w:_0x408733,h:_0x25b508}=_0x5839ac,{startRow:_0x37459b,startColumn:_0x5178ef,endColumn:_0x4e4a62,endRow:_0x1499f1}=_0x5c81e1,_0x3685f4=_0x192827=>{const _0x17f188=_0x2506ac;let _0x485b6f=_0x192827,_0x10c9bb=this[_0x17f188(0x186)]['maxRowsEachPage']<=_0x174d2[_0x17f188(0x3cd)]?0x1/0x0:this[_0x17f188(0x186)]['maxRowsEachPage']-0x1-_0x174d2[_0x17f188(0x3cd)]+_0x192827,_0x106e2f=_0x192827===0x0?0x0:_0x140b67[_0x192827-0x1];for(;_0x485b6f<_0x1499f1;){let _0x31d821=(_0x140b67[_0x485b6f]-_0x106e2f)*_0x3d3e99,_0x32289d=(_0x140b67[_0x485b6f+0x1]-_0x106e2f)*_0x3d3e99;if(_0x485b6f++,_0x31d821>=_0x25b508||_0x31d821<_0x25b508&&_0x32289d>_0x25b508)return{'startRow':_0x192827,'endRow':Math[_0x17f188(0x418)](_0x485b6f-0x1,_0x10c9bb)};}return{'startRow':_0x192827,'endRow':Math[_0x17f188(0x418)](_0x485b6f,_0x10c9bb)};},_0x1fc3e1=_0x310a61=>{const _0x300f6b=_0x2506ac;let _0x2ab956=_0x310a61,_0x1cd1e4=_0x310a61===0x0?0x0:_0x401261[_0x310a61-0x1],_0x33c070=this[_0x300f6b(0x186)]['maxColumnsEachPage']<=_0x174d2[_0x300f6b(0x21e)]?0x1/0x0:this[_0x300f6b(0x186)]['maxColumnsEachPage']-0x1-_0x174d2[_0x300f6b(0x21e)]+_0x310a61;for(;_0x2ab956<_0x4e4a62;){let _0x418b1b=(_0x401261[_0x2ab956]-_0x1cd1e4)*_0x3d3e99,_0x579778=(_0x401261[_0x2ab956+0x1]-_0x1cd1e4)*_0x3d3e99;if(_0x2ab956++,_0x418b1b<_0x408733&&_0x579778>_0x408733||_0x418b1b>=_0x408733)return{'startColumn':_0x310a61,'endColumn':Math['min'](_0x2ab956-0x1,_0x33c070)};}return{'startColumn':_0x310a61,'endColumn':Math[_0x300f6b(0x418)](_0x2ab956,_0x33c070)};},_0x442fc6=[],_0xcb73e2=_0x37459b;for(;_0xcb73e2<=_0x1499f1;){let _0x20ff80=_0x3685f4(_0xcb73e2);_0x442fc6[_0x2506ac(0x278)](_0x20ff80),_0xcb73e2=_0x20ff80['endRow']+0x1;}let _0x268366=[],_0x157ebb=_0x5178ef;for(;_0x157ebb<=_0x4e4a62;){let _0x1589d3=_0x1fc3e1(_0x157ebb);_0x268366[_0x2506ac(0x278)](_0x1589d3),_0x157ebb=_0x1589d3['endColumn']+0x1;}let _0x59c6ec=[];for(let _0x140fca=0x0;_0x140fca<_0x442fc6['length'];_0x140fca++)for(let _0x354dcd=0x0;_0x354dcd<_0x268366['length'];_0x354dcd++)_0x59c6ec[_0x2506ac(0x278)]({..._0x442fc6[_0x140fca],..._0x268366[_0x354dcd]});return{'unitId':_0x5cf00a,'subUnitId':_0x477429,'pages':_0x59c6ec,'freeze':_0x174d2,'scale':_0x3d3e99,'pageSize':this[_0x2506ac(0x1c9)],'margin':this[_0x2506ac(0x3d3)]};}};M=D([E(0x0,t[_0x9572bf(0x21f)]),E(0x1,(0x0,t[_0x9572bf(0x395)])(n[_0x9572bf(0x239)])),E(0x2,(0x0,t[_0x9572bf(0x395)])(o[_0x9572bf(0x1dd)])),E(0x3,a[_0x9572bf(0x358)])],M);const ee=(_0x20b403,_0x143afd)=>{const _0x28dac6=_0x9572bf;if(!_0x20b403||!_0x143afd)return!0x0;let _0x498ff1=(0x0,e[_0x28dac6(0x2b3)])(_0x20b403,_0x143afd)[_0x28dac6(0x400)],_0x3efd29=(0x0,e[_0x28dac6(0x257)])(_0x498ff1,'sf',h);return!((_0x498ff1==null?void 0x0:_0x498ff1['rt'])===e[_0x28dac6(0x206)][_0x28dac6(0x350)]&&!_0x3efd29);},N=(_0x73fce4,_0x34023f,_0x4761a4)=>{const _0x2a9232=_0x9572bf;let _0x27eaca={'page':_0x73fce4,'isPro':!0x1,'timeValid':!0x1};if(!_0x34023f||!_0x4761a4)return _0x27eaca;let _0x1e25b8=(0x0,e['getLicenseInfo'])(_0x34023f,_0x4761a4);if(_0x1e25b8[_0x2a9232(0x2b6)]){let _0x32314b=_0x1e25b8[_0x2a9232(0x400)],_0x341706=(0x0,e['isFeatureAuthorizedWithinTime'])(_0x32314b,'sf',h);_0x27eaca[_0x2a9232(0x333)]=_0x341706,_0x27eaca[_0x2a9232(0x3d4)]=_0x341706,_0x27eaca[_0x2a9232(0x1b1)]=(0x0,e[_0x2a9232(0x325)])(_0x32314b,_0x341706,_0x2a9232(0x353),_0x73fce4,_0x73fce4,0x0);}return _0x27eaca;};function P(_0x17fbd3){const _0x519a3e=_0x9572bf;var _0x50a814;let {ls:_0x2a5a08,pbk:_0xd4076e}=(_0x50a814=_0x17fbd3['get'](t[_0x519a3e(0x1f4)])[_0x519a3e(0x22a)](e[_0x519a3e(0x300)]))==null?{}:_0x50a814;return N(0x3,_0x2a5a08,_0xd4076e)[_0x519a3e(0x333)];}function te(_0x1c71eb){const _0x56f599=_0x9572bf;let [_0x1620f3,_0x26cace]=(0x0,u[_0x56f599(0x1e2)])();return(0x0,u[_0x56f599(0x259)])(()=>{_0x1c71eb['then'](_0x234437=>{_0x26cace(()=>_0x234437);});},[]),_0x1620f3;}const F={};function ne(_0x36a346){const _0x3aa3ed=_0x9572bf;let _0x2e0525=_0x36a346['reduce']((_0x3067de,_0x865034)=>_0x3067de+_0x865034[_0x3aa3ed(0x304)]['length'],0x0),_0x3b51e6=new Map(),_0x5d743d=new Map();_0x36a346[_0x3aa3ed(0x307)](_0x5be584=>{const _0x4a6fac=_0x3aa3ed;var _0x3bc651;let _0x3cc7e2=_0x5be584['pages'][_0x4a6fac(0x362)],_0x308b58=(_0x3bc651=_0x5d743d[_0x4a6fac(0x13c)](_0x5be584[_0x4a6fac(0x246)]))==null?0x0:_0x3bc651;_0x5d743d[_0x4a6fac(0x2cc)](_0x5be584[_0x4a6fac(0x246)],_0x3cc7e2+_0x308b58);});let _0x591915=0x0;return _0x36a346[_0x3aa3ed(0x32e)](_0x36d91b=>{const _0x385a6f=_0x3aa3ed;var _0x5047bc;let _0x2e14bc=_0x36d91b['pages'][_0x385a6f(0x362)],_0x4fc3e1=(_0x5047bc=_0x3b51e6[_0x385a6f(0x13c)](_0x36d91b['subUnitId']))==null?0x0:_0x5047bc,_0x394744=_0x36d91b['pages'][_0x385a6f(0x32e)]((_0x2c7264,_0x39902c)=>(_0x591915++,{..._0x36d91b,'range':_0x2c7264,'page':_0x591915,'pageTotal':_0x2e0525,'sheetPageTotal':_0x5d743d['get'](_0x36d91b[_0x385a6f(0x246)]),'sheetPage':_0x39902c+0x1+_0x4fc3e1}));return _0x3b51e6[_0x385a6f(0x251)](_0x36d91b['subUnitId'])?_0x3b51e6[_0x385a6f(0x2cc)](_0x36d91b[_0x385a6f(0x246)],_0x3b51e6['get'](_0x36d91b[_0x385a6f(0x246)])+_0x2e14bc):_0x3b51e6[_0x385a6f(0x2cc)](_0x36d91b[_0x385a6f(0x246)],_0x2e14bc),_0x394744;})[_0x3aa3ed(0x399)]();}function I(_0xcb6a86,_0xf1afd){const _0x1dd55f=_0x9572bf;switch(_0xcb6a86){case _0x1dd55f(0x18b):return _0xf1afd[_0x1dd55f(0x2f3)]['name'];case _0x1dd55f(0x19d):return _0xf1afd['worksheet'][_0x1dd55f(0x40e)]();case'@Page':return''+_0xf1afd[_0x1dd55f(0x1b1)];case'@TotalPage':return''+_0xf1afd[_0x1dd55f(0x2db)];case _0x1dd55f(0x3aa):return''+_0xf1afd['sheetPageTotal'];case'@SheetPage':return''+_0xf1afd[_0x1dd55f(0x29e)];case _0x1dd55f(0x17e):return _0xf1afd[_0x1dd55f(0x311)][_0x1dd55f(0x33d)](_0xf1afd[_0x1dd55f(0x31f)]['t'](_0x1dd55f(0x417)));case _0x1dd55f(0x1f1):return _0xf1afd[_0x1dd55f(0x311)][_0x1dd55f(0x33d)](_0xf1afd[_0x1dd55f(0x31f)]['t'](_0x1dd55f(0x14e)));case'@DateC':return _0xf1afd[_0x1dd55f(0x311)][_0x1dd55f(0x33d)](_0xf1afd['localeService']['t'](_0x1dd55f(0x366)));case _0x1dd55f(0x3bf):return _0xf1afd[_0x1dd55f(0x311)][_0x1dd55f(0x33d)](_0xf1afd[_0x1dd55f(0x31f)]['t'](_0x1dd55f(0x195)));case _0x1dd55f(0x32f):return _0xf1afd[_0x1dd55f(0x311)]['format'](_0xf1afd[_0x1dd55f(0x31f)]['t']('sheets-print.headerFooter.dateE'));case'@TimeA':return _0xf1afd[_0x1dd55f(0x311)]['format'](_0xf1afd[_0x1dd55f(0x31f)]['t']('sheets-print.headerFooter.timeA'));case'@TimeB':return _0xf1afd[_0x1dd55f(0x311)][_0x1dd55f(0x33d)](_0xf1afd[_0x1dd55f(0x31f)]['t'](_0x1dd55f(0x14a)));case _0x1dd55f(0x209):return _0xf1afd[_0x1dd55f(0x311)][_0x1dd55f(0x33d)](_0xf1afd[_0x1dd55f(0x31f)]['t'](_0x1dd55f(0x2c8)));case _0x1dd55f(0x17d):return _0xf1afd['now'][_0x1dd55f(0x33d)](_0xf1afd[_0x1dd55f(0x31f)]['t']('sheets-print.headerFooter.timeD'));}}const re=Object['values'](b);function L(_0x1a4a90,_0x25c2ec){const _0x177378=_0x9572bf;let _0xc9ce27=_0x1a4a90;return re[_0x177378(0x307)](_0x1acd1f=>{_0xc9ce27=_0xc9ce27['replaceAll'](_0x1acd1f,I(_0x1acd1f,_0x25c2ec));}),_0xc9ce27;}const R=_0x9572bf(0x149);function ie(_0x22f2bc,_0x31b95d){const _0x53e1c0=_0x9572bf;let _0x529090=_0x22f2bc;_0x31b95d['forEach'](_0x11f79b=>{const _0x482d3e=_0x1d24;_0x529090=_0x529090[_0x482d3e(0x145)](_0x11f79b[_0x482d3e(0x2cb)],''+R+_0x11f79b[_0x482d3e(0x1e3)]+R);});let _0x52f629=_0x529090['split'](R),_0x237e3a=t[_0x53e1c0(0x383)][_0x53e1c0(0x40a)]();return _0x52f629[_0x53e1c0(0x307)]((_0x2881d6,_0x473bfb)=>{const _0x368d72=_0x53e1c0;if(_0x2881d6){if(_0x473bfb%0x2==0x1){let _0x57f3df=_0x2881d6,_0x2bfa9c={'id':'d','documentStyle':{},'drawings':{},'drawingsOrder':[],'body':{'dataStream':_0x2881d6,'customBlocks':[],'customRanges':[{'startIndex':0x0,'endIndex':_0x2881d6['length']-0x1,'rangeId':(0x0,t[_0x368d72(0x18f)])(),'rangeType':t[_0x368d72(0x3ce)][_0x368d72(0x388)],'properties':{'value':_0x31b95d[_0x368d72(0x174)](_0x3fb89c=>_0x3fb89c['label']===_0x57f3df)[_0x368d72(0x2cb)]}}]}};_0x237e3a[_0x368d72(0x2fc)](_0x2bfa9c);}else _0x237e3a[_0x368d72(0x1d7)](_0x2881d6);}}),_0x237e3a['getData']();}function ae(_0x3df456){const _0x40f3ab=_0x9572bf;var _0x4d3a4a;if(!(_0x3df456!=null&&_0x3df456[_0x40f3ab(0x241)]))return'';let _0x59dede=t['RichTextBuilder']['create'](t[_0x40f3ab(0x1e6)][_0x40f3ab(0x185)](_0x3df456));for(;(_0x4d3a4a=_0x59dede[_0x40f3ab(0x3ca)]()[_0x40f3ab(0x241)][_0x40f3ab(0x218)])!=null&&_0x4d3a4a[_0x40f3ab(0x362)];){let _0x43a142=_0x59dede[_0x40f3ab(0x3ca)]()[_0x40f3ab(0x241)][_0x40f3ab(0x218)][0x0];if(!_0x43a142)break;_0x59dede[_0x40f3ab(0x360)](_0x43a142['startIndex'],_0x43a142[_0x40f3ab(0x255)]+0x1-_0x43a142[_0x40f3ab(0x326)]),_0x59dede[_0x40f3ab(0x1d7)](_0x43a142[_0x40f3ab(0x326)],_0x43a142[_0x40f3ab(0x2a9)][_0x40f3ab(0x2cb)]);}return _0x59dede['getData']()[_0x40f3ab(0x241)][_0x40f3ab(0x3e0)];}const z=({icon:_0x2cb7e7,items:_0x27f72a,active:_0x39a4b5,onChange:_0xf7b213,onHover:_0x130559,popupDirection:_0x4d7d86=_0x9572bf(0x1ee)})=>(0x0,p[_0x9572bf(0x382)])(_0x9572bf(0x2c4),{'className':_0x9572bf(0x27d),'onMouseEnter':()=>_0x130559==null?void 0x0:_0x130559(!0x0),'onMouseLeave':()=>_0x130559==null?void 0x0:_0x130559(!0x1),'children':[(0x0,p[_0x9572bf(0x2ca)])(_0x9572bf(0x2c4),{'className':_0x9572bf(0x19e),'children':_0x2cb7e7}),(0x0,p['jsx'])(l[_0x9572bf(0x1a3)],{'className':_0x9572bf(0x2eb)}),_0x39a4b5&&(0x0,p['jsx'])(_0x9572bf(0x2c4),{'style':{[_0x4d7d86]:'100%'},'className':_0x9572bf(0x349),'children':(0x0,p[_0x9572bf(0x2ca)])(_0x9572bf(0x2c4),{'className':_0x9572bf(0x20f),'children':_0x27f72a[_0x9572bf(0x32e)](_0x43e596=>(0x0,p[_0x9572bf(0x382)])(_0x9572bf(0x2c4),{'className':_0x9572bf(0x26a),'onClick':()=>{const _0x229494=_0x9572bf;_0xf7b213==null||_0xf7b213(_0x43e596[_0x229494(0x2cb)]),_0x130559==null||_0x130559(!0x1);},'children':[(0x0,p[_0x9572bf(0x2ca)])(_0x9572bf(0x2c4),{'className':_0x9572bf(0x33a),'children':_0x43e596[_0x9572bf(0x1e3)]}),(0x0,p['jsx'])(_0x9572bf(0x2c4),{'className':_0x9572bf(0x348),'children':_0x43e596[_0x9572bf(0x3e4)]})]},_0x43e596[_0x9572bf(0x2cb)]))})})]}),oe=_0x308593=>{const _0x585321=_0x9572bf;let {onSelect:_0x8fa0a0,popupDirection:_0x48e527}=_0x308593,[_0x17f017,_0x9f2ec8]=(0x0,u[_0x585321(0x1e2)])(),_0x578949=(0x0,r[_0x585321(0x355)])(t[_0x585321(0x3f4)]),_0x289a7a=_0x578949['getCurrentLocale'](),_0x274d30=(0x0,r[_0x585321(0x355)])(t[_0x585321(0x21f)])[_0x585321(0x199)](t[_0x585321(0x21d)]['UNIVER_SHEET']),_0x5d028d=_0x274d30[_0x585321(0x1c0)](),_0x167fdc=(0x0,u[_0x585321(0x2ce)])(()=>(0x0,t['dateKit'])(),[]),_0x4b3d15=(0x0,u[_0x585321(0x2ce)])(()=>[{'value':_0x585321(0x2bd),'label':_0x578949['t']('sheets-print.headerFooter.display.page'),'desc':I(_0x585321(0x2bd),{'workbook':_0x274d30,'worksheet':_0x5d028d,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x578949,'now':_0x167fdc})},{'value':'@SheetPage','label':_0x578949['t'](_0x585321(0x230)),'desc':I(_0x585321(0x306),{'workbook':_0x274d30,'worksheet':_0x5d028d,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x578949,'now':_0x167fdc})},{'value':_0x585321(0x214),'label':_0x578949['t'](_0x585321(0x193)),'desc':I(_0x585321(0x214),{'workbook':_0x274d30,'worksheet':_0x5d028d,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x578949,'now':_0x167fdc})},{'value':'@TotalSheetPage','label':_0x578949['t']('sheets-print.headerFooter.display.sheetPageTotal'),'desc':I('@TotalSheetPage',{'workbook':_0x274d30,'worksheet':_0x5d028d,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x578949,'now':_0x167fdc})}],[_0x578949,_0x289a7a]),_0x478490=(0x0,u['useMemo'])(()=>[{'value':_0x585321(0x18b),'label':_0x578949['t']('sheets-print.headerFooter.display.title'),'desc':I('@WorkbookTitle',{'workbook':_0x274d30,'worksheet':_0x5d028d,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x578949,'now':_0x167fdc})},{'value':_0x585321(0x19d),'label':_0x578949['t'](_0x585321(0x317)),'desc':I(_0x585321(0x19d),{'workbook':_0x274d30,'worksheet':_0x5d028d,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x578949,'now':_0x167fdc})}],[_0x578949,_0x289a7a]),_0x20ca39=(0x0,u['useMemo'])(()=>[{'value':_0x585321(0x17e),'label':_0x578949['t'](_0x585321(0x34a)),'desc':I('@DateA',{'workbook':_0x274d30,'worksheet':_0x5d028d,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x578949,'now':_0x167fdc})},{'value':_0x585321(0x1f1),'label':_0x578949['t'](_0x585321(0x1b7)),'desc':I(_0x585321(0x1f1),{'workbook':_0x274d30,'worksheet':_0x5d028d,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x578949,'now':_0x167fdc})},{'value':_0x585321(0x1a1),'label':_0x578949['t'](_0x585321(0x2c9)),'desc':I(_0x585321(0x1a1),{'workbook':_0x274d30,'worksheet':_0x5d028d,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x578949,'now':_0x167fdc})},{'value':'@DateD','label':_0x578949['t']('sheets-print.headerFooter.display.dateD'),'desc':I('@DateD',{'workbook':_0x274d30,'worksheet':_0x5d028d,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x578949,'now':_0x167fdc})}],[_0x578949,_0x289a7a]),_0x4c3f9f=(0x0,u[_0x585321(0x2ce)])(()=>[{'value':_0x585321(0x282),'label':_0x578949['t'](_0x585321(0x3b9)),'desc':I(_0x585321(0x282),{'workbook':_0x274d30,'worksheet':_0x5d028d,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x578949,'now':_0x167fdc})},{'value':_0x585321(0x2fe),'label':_0x578949['t'](_0x585321(0x401)),'desc':I('@TimeB',{'workbook':_0x274d30,'worksheet':_0x5d028d,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x578949,'now':_0x167fdc})},{'value':_0x585321(0x209),'label':_0x578949['t'](_0x585321(0x13f)),'desc':I('@TimeC',{'workbook':_0x274d30,'worksheet':_0x5d028d,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x578949,'now':_0x167fdc})},{'value':_0x585321(0x17d),'label':_0x578949['t'](_0x585321(0x242)),'desc':I('@TimeD',{'workbook':_0x274d30,'worksheet':_0x5d028d,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x578949,'now':_0x167fdc})}],[_0x578949,_0x289a7a]);return(0x0,p[_0x585321(0x382)])(_0x585321(0x2c4),{'className':(0x0,c['clsx'])('univer-rounded-md\x20univer-bg-white\x20univer-p-1\x20univer-shadow\x20dark:!univer-bg-gray-900',c[_0x585321(0x2d1)]),'children':[(0x0,p[_0x585321(0x2ca)])(z,{'icon':(0x0,p[_0x585321(0x2ca)])(l[_0x585321(0x17a)],{}),'items':_0x4b3d15,'onHover':_0x2e648f=>_0x9f2ec8(_0x2e648f?_0x585321(0x1d5):''),'active':_0x17f017==='sheet','onChange':_0x8fa0a0,'popupDirection':_0x48e527}),(0x0,p['jsx'])(z,{'icon':(0x0,p[_0x585321(0x2ca)])(l['TextIcon'],{}),'items':_0x478490,'onHover':_0x51f4e5=>_0x9f2ec8(_0x51f4e5?_0x585321(0x222):''),'active':_0x17f017===_0x585321(0x222),'onChange':_0x8fa0a0,'popupDirection':_0x48e527}),(0x0,p[_0x585321(0x2ca)])(z,{'icon':(0x0,p['jsx'])(l[_0x585321(0x37f)],{}),'items':_0x20ca39,'onHover':_0x47cbce=>_0x9f2ec8(_0x47cbce?_0x585321(0x205):''),'active':_0x17f017===_0x585321(0x205),'onChange':_0x8fa0a0,'popupDirection':_0x48e527}),(0x0,p[_0x585321(0x2ca)])(z,{'icon':(0x0,p[_0x585321(0x2ca)])(l['ClockIcon'],{}),'items':_0x4c3f9f,'onHover':_0x24a242=>_0x9f2ec8(_0x24a242?_0x585321(0x2f8):''),'active':_0x17f017===_0x585321(0x2f8),'onChange':_0x8fa0a0,'popupDirection':_0x48e527})]});};function _0x3555(){const _0xd215f4=['_config','DateA','push','isLocalCheck','onTransformChange$','OPERATION','sheets-print.headerFooter.editCustomHeadFooter','univer-relative\x20univer-inline-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-1\x20univer-rounded\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20hover:univer-bg-gray-200\x20dark:!univer-bg-gray-900\x20hover:dark:!univer-bg-gray-700','endX','object','renderConfig','fillText','@TimeA','_watermarkConfig','sheets-print.selection.allWorkbook','univer-ml-2\x20univer-text-lg\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-white','sheets-print.area.title','fontBoundingBoxDescent','PrintHeaderFooter','columnHeaderHeight','CheckboxGroup','string','number','from','scale','focus$','_resizeViewport','error','sheets-print.limit.link','PrintHeaderFooterSymbol','CanvasRenderMode','DateB','none','round','Workbook','pauseCollaboration','_menuManagerService','getItem','Loading','marginCustom','sheetPage','Narrow','small','0\x200\x20','Letter','area','DateE','Landscape','printManagerService','getPrecisionScale','SheetPage','properties','Legal','_printService','restore','ICommandService','_renderConfig','prototype','getNoMergeCellWithCoordByIndex','univer-flex-1\x20univer-overflow-auto','selection','getLicenseInfo','univer-box-border\x20univer-flex\x20univer-h-16\x20univer-w-full\x20univer-flex-none\x20univer-flex-row\x20univer-items-center\x20univer-justify-between\x20univer-bg-white\x20univer-px-4\x20dark:!univer-bg-gray-900','SheetScreenShotOperation','valid','sheets-print.config','sheets-print.size.tabloid','awaitTime','CommandType','isCustomHeaderFooter','Row','@Page','getInterceptPoints','sheets-print.scale.fitWidth','container','VIEW_MAIN_LEFT','useRef','getImage','div','dispose','MAIN_AREA','391883RTexbl','sheets-print.headerFooter.timeC','sheets-print.headerFooter.display.dateC','jsx','value','set','subscribe','useMemo','FormLayout','draw','borderClassName','pipe','sheets-print.margin.narrow','topCenter','UNIVER_SHEET_PERMISSION_ALERT_DIALOG_ID','getFreeze','Plugin','None','SheetPrintManagerService','PrintIcon','pageTotal','have\x20not\x20permission','bottomCenter','_configService','MessageType','univer-z-[100]\x20univer-mt-2\x20univer-flex\x20univer-size-8\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-white\x20univer-shadow\x20dark:!univer-bg-gray-900','__ColumnHeaderPrint__','_layoutInfos','_shortcutService','TimeD','948ekopis','Start','_globalZoneService','#E5E5E5','SheetPrintOperation','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','univer-size-3\x20univer-text-gray-900\x20univer-transition-transform\x20dark:!univer-text-white','sheets-print.align.horizontal.end','constructor','link','overflowCache','_scene','getFocusId','sheets-print.margin.left','workbook','Quantity','editOp','registerShortcut','_renderManagerService','time','_viewLeft','Error','sheets-print.scale.normal','insertRichText','disable','@TimeB','useObservable','LS_CONFIG_KEY','sheets-print.menu','__SpreadsheetPrintRender__','sheets-print.orientation.landscape','pages','getEditorId','@SheetPage','forEach','getUniverSheetInstance','sheets-print.align.horizontal.middle','getSheets','translateWithPrecision','fetchThroughInterceptors','sheets-print.headerFooter.submit','sheets-print.grid.title','Executive','pluginName','now','_viewMain','sheets-print.area.maxRowsEachPage','PrintGridExtension','parentElement','default','sheets-print.headerFooter.display.sheet','getCurrentLocale','syncExecuteCommand','TimeB','sheets-print.headerFooter.date','WorkbookPrintPermission','_initMutationListener','univer-relative\x20univer-box-border\x20univer-flex\x20univer-flex-1\x20univer-flex-col\x20univer-overflow-hidden','localeService','VIEW_COLUMN_RIGHT','sheets-print.size.b4','OTHERS','hide','makeDirty','getSheetFeatureLimit','startIndex','iterator','SHEET_VIEWPORT_KEY','toLocaleString','span','_renderHeaderFooter','setSelectionRanges','RichTextEditingMutation','map','@DateE','sheets-print.size.legal','ISidebarService','addObjects','isPro','_viewColumnRight','sheets-print.limit.waterMark','removeChild','sheets-print.header.printing','VIEW_MAIN_LEFT_TOP','_initMenus','univer-text-base\x20univer-text-gray-900\x20dark:!univer-text-white','univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-z-[1010]\x20univer-flex\x20univer-justify-center','includeHeaderDimensions','format','current','_visible$','warn','_layoutInfos$','Middle','isPrinting','endColumn','_renderHeaderFooterByCustom','executeCommand','packageName','univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-absolute\x20univer-left-0\x20univer-z-[1000]\x20univer-min-w-[200px]\x20univer-px-0\x20univer-py-2','sheets-print.headerFooter.display.dateA','replace','blur$','bottomLeft','IWatermarkTypeEnum','Folio','NO_COMMERCIAL','_initialize','useEvent','mpn','registerDependencies','useDependency','_sheetPrintClientService','subUnitIds','IRenderManagerService','_layoutConfig$','WorkbookViewPermission','_componentManager','DependentOn','onafterprint','univer-p-4','__mode','delete','_spreadsheetObject','length','startX','Page','resizeWhenFreezeChange','sheets-print.headerFooter.dateC','reLayout','_initCommands','defineProperty','AllSelection','setPreviewScale','sheets-print.scale.fitHeight','sheets-print.orientation.portrait','getRenderById','next','forValue','sheets-print.margin.right','DateD','height','_viewLeftTop','31507IQpLmj','sheets-print.size.a5','renderWatermark','absolute','PrintArea','font','getCollabEntity','appendChild','univer-flex\x20univer-gap-2','config','CalendarIcon','style','sheets-print.align.title','jsxs','RichTextBuilder','close','clipboard','scrollbarClassName','IMessageService','MENTION','sheets-print.size.b5','updateConfig','layoutInfos','959372tdmmUW','sheets-print.size.letter','charCodeAt','isSheetHidden','setLineDash','SheetPageTotal','_sheetPrintInterceptorService','unitId','univer-mb-1\x20univer-block\x20univer-text-xs\x20univer-text-gray-500','Inject','noreferrer\x20noopener','sheet.operation.open-print-grid-sidebar','borderBottomClassName','flat','sheet.operation.cancel-print','Column','sheetPageTotal','sheets-print.headerFooter.time','_sheetPrintManagerService','createElement','sheets-print.size.a3','getCurrentRangeDisable$','root','enable','sheets-print.screenshot.fail','DEFAULT_FONTFACE_PLANE','_initShortcuts','reset','_print','http://www.w3.org/2000/svg','@TotalSheetPage','engine','UNIVER_SHEET','univer-mx-2\x20univer-my-5','100%','includes','ILocalStorageService','sheets-print.formatting.title','with','_getTranslateOffset','13px\x20','3azyIQR','serialize','getCanvas','Scene','sheets-print.headerFooter.display.timeA','PaperMarginMap','WorksheetViewPermission','Checkbox','univer-flex\x20univer-flex-1\x20univer-overflow-hidden','_key','@DateD','position','SpreadsheetColumnHeader','10uHgCgQ','interceptor','decorate','univer-h-[200px]\x20univer-w-[--radix-popper-anchor-width]\x20univer-overflow-y-auto','endRow','Printing','rowHeightAccumulation','onbeforeprint','getData','floor','ConfirmSheetPrintOperation','ySplit','CustomRangeType','right','Dropdown','_injector','UNIVER_WATERMARK_STORAGE_KEY','paperMargin','timeValid','devicePixelRatio','replaceLayoutConfig','params','layoutConfig','sheets-print.headerFooter.customHeadFooter','getMenuHiddenObservable','defaultHeaderFooter','ContextMenuPosition','Select','sheets-print.align.vertical.middle','disposeWithMe','dataStream','removeAll','sheets-print.margin.title','sheets-print.area.currentSelection','desc','_addViewport','onCommandExecuted','_previewScale','sheets-print.formatting.skeleton','createIdentifier','Viewport','sheets-print.screenshot.success','sheets-print.headerFooter.page','UniverLicensePlugin','UserManagerService','freeze','Disposable','SheetSkeletonManagerService','hasPrintFacadePermission','Normal','LocaleService','PageTotal','sheet.operation.screenshot','userInfo','_engine','PrintFreeze','_renderMainScene','setConfig','DisposableCollection','@univerjs-pro/sheets-print','sheets-print.size.statement','_calculateSheetPages','message','sheets-print.headerFooter.display.timeB','maxColumnsEachPage','186892jvYBqf','vAlign','resize','SheetPrintCanvasView','UNIVER_SHEET_PERMISSION_ALERT_DIALOG','left','getDocumentDataModel','create','Input','sheet-permission-user-dialog','Date','getName','SheetPrintClientService','print','_commandService','bottom','render','sheet.menu.print','getUnitId','Origin','sheets-print.headerFooter.dateA','min','version','moveTo','sheets-print.headerFooter.display.page','forwardRef','fontBoundingBoxAscent','MenuItemType','filter','_calculateSubSheetRange','_initComponents','sheets-print.header.total','mergeMenu','svg','sheets-print.headerFooter.display.dateD','add','get','sheets-print.margin.bottom','Success','sheets-print.headerFooter.display.timeC','_calculateCurrentSelectionRange','rgba(0,0,0,0.3)','replaceRenderConfig','UniverSheetsPrintPlugin','CurrentSheet','replaceAll','pageSize','stroke','UniverNetworkPlugin','@[]@','sheets-print.headerFooter.timeB','updateScrollVal','Statement','OPTIONAL','sheets-print.headerFooter.dateB','className','mually','FitPage','sheets-print.align.vertical.start','printing','sheets-print.headerFooter.workbook','FitHeight','TimeA','key','_sheetsSelectionsSrv','startColumn','registerCommand','updateLayoutConfig','ComponentManager','_root','univer-mt-3','_container','univer-absolute\x20univer-inset-0\x20univer-z-[100]\x20univer-box-border\x20univer-flex\x20univer-size-full\x20univer-flex-col\x20univer-overflow-hidden\x20univer-bg-gray-100\x20dark:!univer-bg-gray-900','image/png','_calculate','register','ensureSkeleton','topRight','getCurrentSelections','univer-my-1\x20univer-p-0','sheets-print.area.currentSheet','BehaviorSubject','scaleX','MetaKeys','10963224GihWyz','beginPath','sheets-print.size.folio','measureText','sheet.operation.print','renderOnReady','WorksheetTitle','COMMAND','find','VIEW_MAIN','SpreadsheetRowHeader','_printViewDisposable','univer-absolute\x20univer-bottom-4\x20univer-right-4\x20univer-z-[1000]','SpreadsheetExtensionRegistry','SheetIcon','ZoomReduceIcon','_accessor','@TimeD','@DateA','sheets-print.margin.normal','UserInfo','maxRowsEachPage','TimeC','_initRenderer','univer-relative\x20univer-box-border\x20univer-flex\x20univer-flex-1\x20univer-items-center\x20univer-justify-center\x20univer-overflow-hidden\x20univer-bg-gray-200\x20dark:!univer-bg-gray-700','deepClone','_layoutConfig','bottomRight','direction','topLeft','hidden','@WorkbookTitle','open','PrintPaperMargin','sheets-print.size.title','generateRandomId','_calculateFinalRange','Injector','IEditorService','sheets-print.headerFooter.display.pageTotal','WorksheetCopyPermission','sheets-print.headerFooter.dateD','PRINT_CANVAS_CLASS','PrintDirection','_renderConfig$','getCurrentUnitOfType','Spreadsheet','max','BUTTON','@WorksheetTitle','univer-flex\x20univer-size-5\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-900\x20dark:!univer-text-white','getRangeImage','getSheetId','@DateC','Portrait','MoreDownIcon','data','No\x20workbook\x20found','dateKit','clsx','_addComponent','fixLineWidthByScale','univer-relative\x20univer-mx-auto\x20univer-mt-7\x20univer-flex-none\x20univer-bg-white\x20univer-shadow-lg\x20dark:!univer-bg-gray-900','setContainer','IShortcutService','univer-w-full','getCursorPosition','univer-text-gray-500','PAGE_SIZE','page','toStringTag','watermark','prepare','_initConfigChangeListener','ISheetPrintManagerService','sheets-print.headerFooter.display.dateB','sheets-print.area.maxColumnsEachPage','DownloadImageIcon','sheets-print.margin.top','sheets-print.margin.wide','renderConfig$','univer-mr-2','headerFooter','startY','getActiveSheet','_isPreview','range','visible','makeForceDirty','VIEW_MAIN_TOP','sheets-print.size.executive','PRINTING_COMPONENT_COLLECT','_viewTop','paperSize','memo','toPrimitive','_initCommandListener','enforceWatermark','split','vertical','actions','scaleY','width','button','createPrintStyle','sheet','_calculatePrintScale','insertText','sheets-print.header.cancel','isNaN','Button','asObservable','_renderLimitWaterMark','SheetPrintInterceptorService','slice','Engine','univer-space-y-2\x20univer-border-t\x20univer-pb-4','PrintAlign','useState','label','rect','sheets-print.screenshot.title','Tools','_univerInstanceService','#1890ff','Radio','univer-absolute\x20univer-left-0\x20univer-z-[100]','layoutConfig$','symbol','univer-flex\x20univer-h-full\x20univer-flex-col','top','RadioGroup','Image','@DateB','univer-box-border\x20univer-h-full\x20univer-w-[312px]\x20univer-flex-none\x20univer-bg-white\x20dark:!univer-bg-gray-900','getSelectionOfWorksheet','IConfigService','rowHeaderWidth','getCellMatrixPrintRange','clearMemory','index','uKey','_skeleton','__RowHeaderPrint__','strokeStyle','Custom','printGridService','visible$','sheets-print.align.vertical.end','8273936MfgrOJ','type','RangeProtectionPermissionViewPoint','getSheetCommandTarget','date','ReleaseType','getInstance','touchDependencies','@TimeC','IPermissionService','sheets-print.orientation.title','function','startRow','Time','univer-solid\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-white\x20univer-p-2\x20univer-shadow-lg\x20dark:!univer-border-gray-700','_effects','_totalWidth','toDataURL','WorkbookTitle','@TotalPage','endY','updateRenderConfig','univer-grid\x20univer-grid-cols-2\x20univer-gap-2','customRanges','PageSize','7487326xcQqeS','getSheetBySheetId','_unitId','UniverInstanceType','xSplit','IUniverInstanceService','useVirtualList','mainComponent','text','PRINT_CONTAINER_CLASS','blur','toLocaleDateString','_drawPrintGrid','FitWidth','No\x20active\x20sheet\x20found','CTRL_COMMAND','getConfig','resetCache','sheets-print.headerFooter.display.sheetPageTotal','focus','Module','SUBITEMS','sheets-print.headerFooter.display.sheetPage','margin','Z_INDEX','getCurrentLastSelection','univer-flex-1\x20univer-overflow-y-auto','PaperType','complete','_viewRowBottom','_totalHeight','SheetsSelectionsService','layoutInfos$','End','CurrentSelection','sheet.operation.confirm-print','sheets-print.selection.title','sheets-print.freeze.column','univer-mb-2','body','sheets-print.headerFooter.display.timeD','getCurrentUser','univer-flex\x20univer-w-full','show','subUnitId','save','_initPrintGridExtension','image','setForceDisableGridlines','sheets-print.freeze.row','worksheet','IDialogService','middle','Wide','call','has','getOwnPropertyDescriptor','sheets-print.scale.title','markDirty','endIndex','sheets-print.size.a4','isFeatureAuthorizedWithinTime','PRINT_GRID_SIDEBAR_COMPONENT','useEffect','columnWidthAccumulation','sheet.operation.print-open','PRINTING_RANGE','parseInt','_blank','getContext','95ePJCEl','univer-flex\x20univer-h-16\x20univer-items-center\x20univer-justify-between\x20univer-bg-white\x20univer-px-4\x20dark:!univer-bg-gray-900','lineTo','sheets-print.freeze.title','!univer-min-w-0\x20univer-flex-1','RibbonStartGroup','_targetRender','sheets-print.area.limit','_messageService','PrintScale','univer-flex\x20univer-cursor-pointer\x20univer-flex-row\x20univer-items-center\x20univer-justify-between\x20univer-rounded-md\x20univer-px-2\x20univer-py-1.5\x20hover:univer-rounded\x20hover:univer-bg-gray-300','unier-w-[761px]\x20univer-mx-auto\x20univer-my-4\x20univer-box-border\x20univer-flex\x20univer-flex-col\x20univer-items-center\x20univer-bg-white\x20univer-px-6\x20univer-py-7\x20univer-shadow-lg\x20dark:!univer-bg-gray-900','univer-h-full\x20univer-overflow-y-auto','IZenZoneService','SHEET_PRINT_PLUGIN','sheets-print.margin.custom','_subUnitId','univer-flex\x20univer-flex-1\x20univer-flex-col\x20univer-overflow-hidden','primary','_calculateSheetRangeById','whenSheetEditorFocused','_dirty'];_0x3555=function(){return _0xd215f4;};return _0x3555();}function se({width:_0x23e720=0x2b9,height:_0x36e226=0x229,cols:_0x1dfb34=0x8,rows:_0x4f7b2b=0x18,cellWidth:_0x45ce57=0x57,cellHeight:_0x30a1fb=0x17,strokeColor:_0x319e18=_0x9572bf(0x2e8)}){const _0x3df00e=_0x9572bf;let _0x5683b6=(0x0,u[_0x3df00e(0x2ce)])(()=>{const _0x13e220=_0x3df00e;let _0x2d4621=[];for(let _0x46c7b2=0x0;_0x46c7b2<_0x4f7b2b;_0x46c7b2++)for(let _0x2fd493=0x0;_0x2fd493<_0x1dfb34;_0x2fd493++)_0x2d4621[_0x13e220(0x278)]((0x0,p[_0x13e220(0x2ca)])(_0x13e220(0x1e4),{'x':_0x2fd493*_0x45ce57+0.5,'y':_0x46c7b2*_0x30a1fb+0.5,'width':_0x45ce57,'height':_0x30a1fb,'stroke':_0x319e18},_0x46c7b2+'-'+_0x2fd493));return _0x2d4621;},[_0x4f7b2b,_0x1dfb34,_0x45ce57,_0x30a1fb,_0x319e18]);return(0x0,p[_0x3df00e(0x2ca)])(_0x3df00e(0x139),{'width':_0x23e720,'height':_0x36e226,'viewBox':_0x3df00e(0x2a1)+_0x23e720+'\x20'+_0x36e226,'fill':_0x3df00e(0x296),'xmlns':_0x3df00e(0x3a9),'children':_0x5683b6});}const B=_0x1f08e4=>{const _0x3cc698=_0x9572bf;var _0x54609c;let {value:_0x38ea2b,onChange:_0x4cdfa0,popupDirection:_0x408b5a=_0x3cc698(0x1ee)}=_0x1f08e4,_0x13028c=(0x0,r[_0x3cc698(0x355)])(t[_0x3cc698(0x3f4)]),_0x426bc4=_0x13028c[_0x3cc698(0x318)](),_0x5cd72d=(0x0,r['useDependency'])(f[_0x3cc698(0x192)]),[_0x23d93d,_0x3b09c7]=(0x0,u[_0x3cc698(0x1e2)])(!0x1),_0x541cc5=(0x0,u[_0x3cc698(0x2c2)])(null),_0x1ee56d=(0x0,r[_0x3cc698(0x355)])(t[_0x3cc698(0x2ad)]),_0x4fdffa=_0x5cd72d[_0x3cc698(0x2f1)](),_0x263ba8=_0x541cc5[_0x3cc698(0x33e)]&&_0x4fdffa===((_0x54609c=_0x541cc5[_0x3cc698(0x33e)])==null?void 0x0:_0x54609c[_0x3cc698(0x305)]());(0x0,r[_0x3cc698(0x2ff)])(_0x5cd72d[_0x3cc698(0x28f)]),(0x0,r['useObservable'])(_0x5cd72d[_0x3cc698(0x34c)]);let _0x5ced13=(0x0,u['useMemo'])(()=>[{'value':_0x3cc698(0x2bd),'label':_0x13028c['t'](_0x3cc698(0x130))},{'value':_0x3cc698(0x306),'label':_0x13028c['t'](_0x3cc698(0x230))},{'value':'@TotalPage','label':_0x13028c['t'](_0x3cc698(0x193))},{'value':_0x3cc698(0x3aa),'label':_0x13028c['t'](_0x3cc698(0x22c))}],[_0x13028c,_0x426bc4]),_0x404968=(0x0,u[_0x3cc698(0x2ce)])(()=>[{'value':_0x3cc698(0x18b),'label':_0x13028c['t']('sheets-print.headerFooter.display.title')},{'value':_0x3cc698(0x19d),'label':_0x13028c['t'](_0x3cc698(0x317))}],[_0x13028c,_0x426bc4]),_0x59c00e=(0x0,u[_0x3cc698(0x2ce)])(()=>[{'value':_0x3cc698(0x17e),'label':_0x13028c['t'](_0x3cc698(0x34a))},{'value':_0x3cc698(0x1f1),'label':_0x13028c['t'](_0x3cc698(0x1b7))},{'value':_0x3cc698(0x1a1),'label':_0x13028c['t'](_0x3cc698(0x2c9))},{'value':_0x3cc698(0x3bf),'label':_0x13028c['t'](_0x3cc698(0x13a))}],[_0x13028c,_0x426bc4]),_0x1e8591=(0x0,u[_0x3cc698(0x2ce)])(()=>[{'value':_0x3cc698(0x282),'label':_0x13028c['t'](_0x3cc698(0x3b9))},{'value':_0x3cc698(0x2fe),'label':_0x13028c['t'](_0x3cc698(0x401))},{'value':_0x3cc698(0x209),'label':_0x13028c['t'](_0x3cc698(0x13f))},{'value':'@TimeD','label':_0x13028c['t'](_0x3cc698(0x242))}],[_0x13028c,_0x426bc4]),_0x17a929=(0x0,u[_0x3cc698(0x2ce)])(()=>[..._0x5ced13,..._0x404968,..._0x59c00e,..._0x1e8591],[_0x5ced13,_0x404968,_0x59c00e,_0x1e8591]),[_0x437190]=(0x0,u[_0x3cc698(0x1e2)])(()=>ie(_0x38ea2b,_0x17a929));return(0x0,p['jsxs'])(_0x3cc698(0x2c4),{'className':'univer-relative\x20univer-mx-2\x20univer-my-0\x20univer-flex-grow','children':[(0x0,p[_0x3cc698(0x2ca)])(f['RichTextEditor'],{'editorRef':_0x541cc5,'initialValue':_0x437190,'onChange':_0x2932cd=>{_0x4cdfa0==null||_0x4cdfa0(ae(_0x2932cd));},'onFocusChange':_0x20c864=>{_0x3b09c7(!!_0x20c864);},'onClickOutside':()=>{const _0x362907=_0x3cc698;var _0x5e4621;(_0x5e4621=_0x541cc5[_0x362907(0x33e)])==null||_0x5e4621[_0x362907(0x32c)]([]),_0x5cd72d[_0x362907(0x224)]();},'placeholder':_0x13028c['t']('sheets-print.headerFooter.placeholder')}),(0x0,p[_0x3cc698(0x2ca)])('div',{'className':_0x3cc698(0x1ea),'style':{[_0x408b5a]:0x24},'children':_0x263ba8&&(0x0,p['jsx'])(oe,{'popupDirection':_0x408b5a,'onSelect':async _0x5b6374=>{const _0x22b9c5=_0x3cc698;var _0x431cb3;let _0x4b8c15=(_0x431cb3=_0x541cc5[_0x22b9c5(0x33e)])==null?void 0x0:_0x431cb3[_0x22b9c5(0x305)]();if(!_0x541cc5['current'])return;let _0x48d207=_0x541cc5[_0x22b9c5(0x33e)][_0x22b9c5(0x1ae)]();if(_0x48d207<0x0)return;let _0x574508=_0x17a929['find'](_0x15998a=>_0x15998a[_0x22b9c5(0x2cb)]===_0x5b6374);if(!_0x574508)return;let _0x5b7ce2={'dataStream':_0x574508[_0x22b9c5(0x1e3)],'customRanges':[{'startIndex':0x0,'endIndex':_0x574508[_0x22b9c5(0x1e3)][_0x22b9c5(0x362)]-0x1,'rangeId':(0x0,t[_0x22b9c5(0x18f)])(),'rangeType':t[_0x22b9c5(0x3ce)]['MENTION'],'properties':{'value':_0x574508[_0x22b9c5(0x2cb)]},'wholeEntity':!0x0}]};await(0x0,t[_0x22b9c5(0x2b9)])(0x0);let _0x130032=t['BuildTextUtils'][_0x22b9c5(0x2b2)]['replace']({'selection':{'startOffset':_0x48d207,'endOffset':_0x48d207,'collapsed':!0x0},'body':_0x5b7ce2,'doc':_0x541cc5[_0x22b9c5(0x33e)][_0x22b9c5(0x409)]()});if(!_0x130032)return;let _0x34fab4={'id':d[_0x22b9c5(0x32d)]['id'],'params':{'unitId':_0x4b8c15,'actions':[],'textRanges':[{'startOffset':_0x48d207+_0x5b7ce2[_0x22b9c5(0x3e0)][_0x22b9c5(0x362)],'endOffset':_0x48d207+_0x5b7ce2[_0x22b9c5(0x3e0)][_0x22b9c5(0x362)],'collapsed':!0x0}],'trigger':_0x22b9c5(0x150)}},_0x1e66c7=t['JSONX'][_0x22b9c5(0x207)]();_0x34fab4['params'][_0x22b9c5(0x1d0)]=_0x1e66c7[_0x22b9c5(0x2f5)](_0x130032[_0x22b9c5(0x3b6)]()),_0x1ee56d[_0x22b9c5(0x319)](_0x34fab4['id'],_0x34fab4[_0x22b9c5(0x3d7)]),setTimeout(()=>{const _0x2946bc=_0x22b9c5;_0x5cd72d[_0x2946bc(0x22d)](_0x4b8c15);},0x0);}})})]});},ce=_0x35b2ee=>{const _0x559050=_0x9572bf;var _0x2b0420;let {onClose:_0x290a46}=_0x35b2ee,_0x1de773=(0x0,r['useDependency'])(O),_0x2e6c22=(_0x2b0420=_0x1de773[_0x559050(0x280)]['headerFooterSetting'])==null?x:_0x2b0420,[_0x2aaf6f,_0x18321a]=(0x0,u['useState'])(_0x2e6c22[_0x559050(0x189)]),[_0x4be395,_0x54f77c]=(0x0,u[_0x559050(0x1e2)])(_0x2e6c22['topCenter']),[_0x5b6cc2,_0x4760e6]=(0x0,u[_0x559050(0x1e2)])(_0x2e6c22[_0x559050(0x165)]),[_0x3e4df4,_0x4db541]=(0x0,u[_0x559050(0x1e2)])(_0x2e6c22[_0x559050(0x34d)]),[_0xfe04a1,_0x42bce1]=(0x0,u['useState'])(_0x2e6c22[_0x559050(0x2dd)]),[_0x4e4488,_0x4301a6]=(0x0,u[_0x559050(0x1e2)])(_0x2e6c22[_0x559050(0x187)]),_0x1bde42=(0x0,r[_0x559050(0x355)])(t['LocaleService']);return(0x0,p['jsxs'])('div',{'className':'univer-absolute\x20univer-inset-0\x20univer-z-[100]\x20univer-flex\x20univer-size-full\x20univer-flex-col\x20univer-overflow-hidden\x20univer-bg-white\x20dark:!univer-bg-gray-900','children':[(0x0,p[_0x559050(0x382)])(_0x559050(0x2c4),{'className':(0x0,c[_0x559050(0x1a7)])(_0x559050(0x2b4),c[_0x559050(0x398)]),'children':[(0x0,p[_0x559050(0x2ca)])(_0x559050(0x2c4),{'className':_0x559050(0x285),'children':_0x1bde42['t']('sheets-print.headerFooter.editCustomHeadFooter')}),(0x0,p[_0x559050(0x382)])(_0x559050(0x2c4),{'className':'univer-relative\x20first:univer-mr-2','children':[(0x0,p[_0x559050(0x2ca)])(c[_0x559050(0x1da)],{'className':_0x559050(0x1bd),'onClick':()=>{_0x290a46();},'children':_0x1bde42['t'](_0x559050(0x1d8))}),(0x0,p['jsx'])(c[_0x559050(0x1da)],{'variant':'primary','onClick':()=>{_0x290a46(),_0x1de773['updateRenderConfig']({'headerFooterSetting':{'topLeft':_0x2aaf6f,'topCenter':_0x4be395,'topRight':_0x5b6cc2,'bottomLeft':_0x3e4df4,'bottomCenter':_0xfe04a1,'bottomRight':_0x4e4488}});},'children':_0x1bde42['t'](_0x559050(0x30d))})]})]}),(0x0,p[_0x559050(0x2ca)])(_0x559050(0x2c4),{'className':_0x559050(0x271),'children':(0x0,p['jsx'])(_0x559050(0x2c4),{'className':_0x559050(0x184),'children':(0x0,p[_0x559050(0x382)])(_0x559050(0x2c4),{'className':_0x559050(0x26b),'children':[(0x0,p[_0x559050(0x382)])(_0x559050(0x2c4),{'className':'univer-flex\x20univer-w-full','children':[(0x0,p['jsx'])(B,{'value':_0x2aaf6f,'onChange':_0x28f710=>_0x18321a(_0x28f710)}),(0x0,p[_0x559050(0x2ca)])(B,{'value':_0x4be395,'onChange':_0x55b207=>_0x54f77c(_0x55b207)}),(0x0,p[_0x559050(0x2ca)])(B,{'value':_0x5b6cc2,'onChange':_0x47751d=>_0x4760e6(_0x47751d)})]}),(0x0,p[_0x559050(0x2ca)])(_0x559050(0x2c4),{'className':_0x559050(0x3ad),'children':(0x0,p[_0x559050(0x2ca)])(se,{})}),(0x0,p[_0x559050(0x382)])(_0x559050(0x2c4),{'className':_0x559050(0x244),'children':[(0x0,p[_0x559050(0x2ca)])(B,{'popupDirection':_0x559050(0x412),'value':_0x3e4df4,'onChange':_0x144956=>_0x4db541(_0x144956)}),(0x0,p[_0x559050(0x2ca)])(B,{'popupDirection':_0x559050(0x412),'value':_0xfe04a1,'onChange':_0x16f4e3=>_0x42bce1(_0x16f4e3)}),(0x0,p[_0x559050(0x2ca)])(B,{'popupDirection':'bottom','value':_0x4e4488,'onChange':_0x1af741=>_0x4301a6(_0x1af741)})]})]})})})]});};var V=class extends t[_0x9572bf(0x3f0)]{get[_0x9572bf(0x283)](){const _0x58b640=_0x9572bf;return this[_0x58b640(0x2ae)]['watermark'];}get[_0x9572bf(0x157)](){return this['_key'];}get[_0x9572bf(0x3ab)](){const _0x19f175=_0x9572bf;return this[_0x19f175(0x3f8)];}get['container'](){return this['_container'];}get[_0x9572bf(0x3a2)](){const _0x192635=_0x9572bf;return this[_0x192635(0x15d)];}get[_0x9572bf(0x280)](){const _0x2bcd64=_0x9572bf;return this[_0x2bcd64(0x2ae)];}set[_0x9572bf(0x280)](_0x45c9b1){this['_renderConfig']=_0x45c9b1;}constructor(_0x1be853,_0x2bea3c,_0x288543,_0x861df3=!0x0,_0x1aee34=0x1){const _0xb29401=_0x9572bf;super(),this[_0xb29401(0x17c)]=_0x1be853,this[_0xb29401(0x276)]=_0x2bea3c,this[_0xb29401(0x2ae)]=_0x288543,this[_0xb29401(0x1c1)]=_0x861df3,this[_0xb29401(0x3e7)]=_0x1aee34,T(this,_0xb29401(0x3f8),void 0x0),T(this,_0xb29401(0x2f0),void 0x0),T(this,_0xb29401(0x3be),void 0x0),T(this,'_unitId',void 0x0),T(this,'_subUnitId',void 0x0),T(this,_0xb29401(0x312),void 0x0),T(this,_0xb29401(0x2f9),void 0x0),T(this,_0xb29401(0x1c8),void 0x0),T(this,_0xb29401(0x374),void 0x0),T(this,_0xb29401(0x237),null),T(this,_0xb29401(0x334),null),T(this,'_container',document[_0xb29401(0x39f)]('div')),T(this,'_root',document[_0xb29401(0x39f)](_0xb29401(0x2c4))),T(this,_0xb29401(0x1fa),void 0x0),T(this,'_univerInstanceService',void 0x0),T(this,_0xb29401(0x275),!0x0),T(this,'_targetRender',void 0x0),T(this,_0xb29401(0x210),new t[(_0xb29401(0x3fc))]()),T(this,_0xb29401(0x361),void 0x0),T(this,'_totalWidth',0x0),T(this,_0xb29401(0x238),0x0);let {unitId:_0xb7aaf5,subUnitId:_0x36a44d}=this[_0xb29401(0x276)];this[_0xb29401(0x21c)]=_0xb7aaf5,this[_0xb29401(0x270)]=_0x36a44d,this[_0xb29401(0x3be)]=_0xb7aaf5+'_'+_0x36a44d,this['_univerInstanceService']=this[_0xb29401(0x17c)][_0xb29401(0x13c)](t['IUniverInstanceService']);let _0x14c1a1=this[_0xb29401(0x17c)][_0xb29401(0x13c)](a[_0xb29401(0x358)]);this[_0xb29401(0x266)]=_0x14c1a1[_0xb29401(0x36e)](_0xb7aaf5);let _0x168cfd=this[_0xb29401(0x266)][_0xb29401(0x3b2)](o[_0xb29401(0x3f1)])[_0xb29401(0x164)](_0x36a44d);this[_0xb29401(0x1fa)]=_0x168cfd,this[_0xb29401(0x15d)][_0xb29401(0x14f)]='__root',this[_0xb29401(0x183)]();}[_0x9572bf(0x2c5)](){const _0x8a3893=_0x9572bf;var _0x5a9a86;super[_0x8a3893(0x2c5)](),this[_0x8a3893(0x210)][_0x8a3893(0x2c5)](),(_0x5a9a86=this[_0x8a3893(0x15f)][_0x8a3893(0x315)])==null||_0x5a9a86[_0x8a3893(0x336)](this['_container']);}get[_0x9572bf(0x1c9)](){const _0x3d147=_0x9572bf;let {w:_0x1adf4e,h:_0x3dc73c}=this['_config'][_0x3d147(0x146)];return{'w':_0x1adf4e*this['_previewScale'],'h':_0x3dc73c*this[_0x3d147(0x3e7)]};}get[_0x9572bf(0x231)](){const _0x3af26b=_0x9572bf;let _0x561e8d=this[_0x3af26b(0x276)][_0x3af26b(0x231)];return{'top':_0x561e8d[_0x3af26b(0x1ee)]*this[_0x3af26b(0x3e7)],'bottom':_0x561e8d[_0x3af26b(0x412)]*this[_0x3af26b(0x3e7)],'left':_0x561e8d[_0x3af26b(0x408)]*this[_0x3af26b(0x3e7)],'right':_0x561e8d[_0x3af26b(0x3cf)]*this['_previewScale']};}[_0x9572bf(0x183)](){const _0xdeda50=_0x9572bf;let _0x409e39=this['paperSize'],_0x3a4537=this['_config']['scale']*this[_0xdeda50(0x3e7)],_0x330377=this[_0xdeda50(0x1c1)]?Math['max'](0x1,window[_0xdeda50(0x3d5)]):0x1;this[_0xdeda50(0x3f8)]=new a[(_0xdeda50(0x1df))]('',{'elementWidth':_0x409e39['w'],'elementHeight':_0x409e39['h'],'dpr':_0x330377,'renderMode':a[_0xdeda50(0x294)][_0xdeda50(0x3c7)]}),this['_scene']=new a[(_0xdeda50(0x3b8))](this[_0xdeda50(0x3be)],this[_0xdeda50(0x3f8)]),this[_0xdeda50(0x2f0)][_0xdeda50(0x28e)](_0x3a4537,_0x3a4537),this[_0xdeda50(0x3f8)][_0xdeda50(0x1ab)](this['_container'],this[_0xdeda50(0x1c1)]),this[_0xdeda50(0x3f8)][_0xdeda50(0x3b7)]()[_0xdeda50(0x25f)]()['setId'](this[_0xdeda50(0x3be)]+'_'+(0x0,t['generateRandomId'])(0x4)),this[_0xdeda50(0x1a8)](),this[_0xdeda50(0x3e5)](),this[_0xdeda50(0x3df)]({'dispose':()=>{const _0xff4f2=_0xdeda50;this[_0xff4f2(0x3f8)]['dispose'](),this[_0xff4f2(0x2f0)][_0xff4f2(0x2c5)](),this[_0xff4f2(0x1f7)]();}});}['clearMemory'](){const _0x42cbfc=_0x9572bf;this['_skeleton'][_0x42cbfc(0x22b)]();}[_0x9572bf(0x36b)](_0x58f75b){const _0x174816=_0x9572bf;this[_0x174816(0x2f0)][_0x174816(0x28e)](this[_0x174816(0x276)][_0x174816(0x28e)]*_0x58f75b,this[_0x174816(0x276)][_0x174816(0x28e)]*_0x58f75b),this[_0x174816(0x3e7)]=_0x58f75b,this[_0x174816(0x254)](!0x0);}[_0x9572bf(0x38a)](_0xb264eb){const _0x11e025=_0x9572bf;this[_0x11e025(0x276)]=_0xb264eb,this[_0x11e025(0x254)](!0x0);}['markDirty'](_0x548c3e){const _0xc7d957=_0x9572bf;this[_0xc7d957(0x275)]=_0x548c3e;}[_0x9572bf(0x1a8)](){const _0x261672=_0x9572bf;let _0x139dc5=new a[(_0x261672(0x19a))](_0x261672(0x302),this[_0x261672(0x1fa)],!0x1);if(_0x139dc5[_0x261672(0x343)]=!0x0,this['_scene']['addObject'](_0x139dc5),this[_0x261672(0x361)]=_0x139dc5,this[_0x261672(0x276)][_0x261672(0x33c)]){let _0x28abea=new a[(_0x261672(0x176))](_0x261672(0x1fb),this[_0x261672(0x1fa)]),_0x4e4acd=new a[(_0x261672(0x3c1))](_0x261672(0x2e1),this['_skeleton']);this['_scene'][_0x261672(0x332)]([_0x28abea,_0x4e4acd],0x1);}let _0x58d761=this['_accessor']['get'](o[_0x261672(0x1dd)]);_0x58d761[_0x261672(0x3c3)]['fetchThroughInterceptors'](_0x58d761[_0x261672(0x3c3)]['getInterceptPoints']()[_0x261672(0x1c7)])(void 0x0,{'unitId':this[_0x261672(0x21c)],'subUnitId':this[_0x261672(0x270)],'scene':this['_scene'],'engine':this[_0x261672(0x3f8)],'root':this[_0x261672(0x15d)],'worksheet':this[_0x261672(0x1fa)][_0x261672(0x24c)],'skeleton':this[_0x261672(0x1fa)],'offset':this['_getTranslateOffset'](),'spreadsheet':this[_0x261672(0x361)]});}[_0x9572bf(0x3e5)](){const _0x38ca82=_0x9572bf;this[_0x38ca82(0x312)]=new a[(_0x38ca82(0x3ea))](a[_0x38ca82(0x328)][_0x38ca82(0x175)],this[_0x38ca82(0x2f0)],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this[_0x38ca82(0x2f9)]=new a[(_0x38ca82(0x3ea))](a[_0x38ca82(0x328)][_0x38ca82(0x2c1)],this[_0x38ca82(0x2f0)],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this['_viewTop']=new a['Viewport'](a[_0x38ca82(0x328)][_0x38ca82(0x1c5)],this[_0x38ca82(0x2f0)],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this['_viewLeftTop']=new a[(_0x38ca82(0x3ea))](a[_0x38ca82(0x328)][_0x38ca82(0x338)],this[_0x38ca82(0x2f0)],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this[_0x38ca82(0x276)][_0x38ca82(0x33c)]&&(this[_0x38ca82(0x237)]=new a[(_0x38ca82(0x3ea))](a['SHEET_VIEWPORT_KEY']['VIEW_ROW_BOTTOM'],this[_0x38ca82(0x2f0)],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this[_0x38ca82(0x334)]=new a[(_0x38ca82(0x3ea))](a[_0x38ca82(0x328)][_0x38ca82(0x320)],this['_scene'],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}));}[_0x9572bf(0x290)](){const _0x5ce879=_0x9572bf;let {freeze:_0x48b35c,range:_0x1170ae}=this['_config'],{xSplit:_0x3e2db3,ySplit:_0x57b355,startColumn:_0xb2829d,startRow:_0x258266}=_0x48b35c,{rowHeaderWidth:_0x3845d9,columnHeaderHeight:_0x5a2d9d}=this[_0x5ce879(0x1fa)];this[_0x5ce879(0x2f0)][_0x5ce879(0x28e)](this['_config'][_0x5ce879(0x28e)]*this['_previewScale'],this[_0x5ce879(0x276)]['scale']*this[_0x5ce879(0x3e7)]);let _0x220f8e=this[_0x5ce879(0x1fa)][_0x5ce879(0x2b0)](_0x258266-_0x57b355,_0xb2829d-_0x3e2db3,!0x1),_0x57cbae=this[_0x5ce879(0x1fa)][_0x5ce879(0x2b0)](_0x258266,_0xb2829d,!0x1),_0x198e11=_0x3e2db3>0x0?_0x57cbae[_0x5ce879(0x363)]-_0x220f8e[_0x5ce879(0x363)]:0x0,_0x59b9dc=_0x57b355>0x0?_0x57cbae[_0x5ce879(0x1bf)]-_0x220f8e[_0x5ce879(0x1bf)]:0x0,_0x25ced7={'startX':_0x3e2db3>0x0?_0x220f8e[_0x5ce879(0x363)]:0x0,'endX':_0x3e2db3>0x0?_0x57cbae[_0x5ce879(0x363)]:0x0,'startY':_0x57b355>0x0?_0x220f8e[_0x5ce879(0x1bf)]:0x0,'endY':_0x57b355>0x0?_0x57cbae[_0x5ce879(0x1bf)]:0x0},_0x40a24e=this[_0x5ce879(0x1fa)][_0x5ce879(0x2b0)](_0x1170ae[_0x5ce879(0x20d)],_0x1170ae[_0x5ce879(0x159)],!0x1),_0x1bc895=this[_0x5ce879(0x2f0)][_0x5ce879(0x2a7)](),_0x1347da=_0x5ad0cd=>(0x0,a[_0x5ce879(0x1a9)])(_0x5ad0cd,_0x1bc895[_0x5ce879(0x16a)]),_0x22d708=_0x1d9b1d=>(0x0,a[_0x5ce879(0x1a9)])(_0x1d9b1d,_0x1bc895[_0x5ce879(0x1d1)]),_0x539456=this[_0x5ce879(0x1fa)][_0x5ce879(0x2b0)](_0x1170ae[_0x5ce879(0x3c6)],_0x1170ae[_0x5ce879(0x344)],!0x1),_0x49c1a9=Math[_0x5ce879(0x19b)](0x0,_0x1347da(_0x539456['endX'])-Math[_0x5ce879(0x19b)](_0x40a24e[_0x5ce879(0x363)],_0x25ced7[_0x5ce879(0x27e)])),_0x40766c=Math[_0x5ce879(0x19b)](0x0,_0x22d708(_0x539456['endY'])-_0x22d708(Math['max'](_0x40a24e[_0x5ce879(0x1bf)],_0x25ced7[_0x5ce879(0x215)]))),_0x2ef119=0x1/Math[_0x5ce879(0x19b)](_0x1bc895[_0x5ce879(0x16a)],_0x1bc895[_0x5ce879(0x1d1)]),_0x54c49d=this[_0x5ce879(0x276)][_0x5ce879(0x33c)]?_0x3845d9:0x0,_0x4c4f43=this[_0x5ce879(0x276)][_0x5ce879(0x33c)]?_0x5a2d9d:0x0,_0x1dfeb3=_0x54c49d+_0x198e11+_0x49c1a9+_0x2ef119,_0x3110aa=_0x4c4f43+_0x59b9dc+_0x40766c+_0x2ef119;this[_0x5ce879(0x211)]=_0x1dfeb3,this[_0x5ce879(0x238)]=_0x3110aa;let _0x58ad42={'x':_0x198e11,'y':_0x59b9dc},_0xa2ff9c=_0x2ef119,_0x45a536=_0x2ef119,_0x4d8562={'x':_0x1347da(_0x539456[_0x5ce879(0x27e)])-_0x1347da(_0x49c1a9)-_0x1347da(Math['max'](_0x40a24e[_0x5ce879(0x363)],_0x25ced7[_0x5ce879(0x27e)])),'y':_0x22d708(_0x539456['endY'])-_0x22d708(_0x40766c)-_0x22d708(Math[_0x5ce879(0x19b)](_0x40a24e[_0x5ce879(0x1bf)],_0x25ced7[_0x5ce879(0x215)]))};if(_0x3e2db3>0x0&&_0x57b355>0x0?(this[_0x5ce879(0x374)][_0x5ce879(0x3a3)](),this[_0x5ce879(0x374)]['resizeWhenFreezeChange']({'top':0x0,'left':0x0,'height':_0x22d708(_0x58ad42['y']),'width':_0x1347da(_0x58ad42['x'])}),this[_0x5ce879(0x374)][_0x5ce879(0x14b)]({'viewportScrollX':_0x1347da(_0x25ced7[_0x5ce879(0x363)])+_0x1347da(_0x3845d9),'viewportScrollY':_0x22d708(_0x25ced7['startY'])+_0x22d708(_0x5a2d9d)})):this[_0x5ce879(0x374)][_0x5ce879(0x2fd)](),_0x3e2db3>0x0?(this['_viewLeft']['enable'](),this[_0x5ce879(0x2f9)][_0x5ce879(0x365)]({'top':_0x1347da(_0x58ad42['y']),'left':0x0,'height':_0x22d708(_0x40766c)+_0xa2ff9c+_0x4d8562['y'],'width':_0x1347da(_0x58ad42['x'])}),this['_viewLeft'][_0x5ce879(0x14b)]({'viewportScrollX':_0x1347da(_0x25ced7[_0x5ce879(0x363)])+_0x1347da(_0x3845d9),'viewportScrollY':_0x22d708(_0x40a24e[_0x5ce879(0x1bf)])+_0x22d708(_0x5a2d9d)-_0x22d708(_0x58ad42['y'])})):this[_0x5ce879(0x2f9)][_0x5ce879(0x2fd)](),_0x57b355>0x0?(this[_0x5ce879(0x1c8)][_0x5ce879(0x3a3)](),this[_0x5ce879(0x1c8)]['resizeWhenFreezeChange']({'top':0x0,'left':_0x1347da(_0x58ad42['x']),'height':_0x22d708(_0x58ad42['y']),'width':_0x1347da(_0x49c1a9)+_0x45a536+_0x4d8562['x']}),this[_0x5ce879(0x1c8)]['updateScrollVal']({'viewportScrollX':_0x1347da(_0x40a24e[_0x5ce879(0x363)])+_0x1347da(_0x3845d9)-_0x1347da(_0x58ad42['x']),'viewportScrollY':_0x22d708(_0x25ced7[_0x5ce879(0x1bf)])+_0x22d708(_0x5a2d9d)})):this[_0x5ce879(0x1c8)][_0x5ce879(0x2fd)](),this['_config']['includeHeaderDimensions']){let _0x522233=_0x1347da(_0x3845d9),_0x419339=_0x22d708(_0x5a2d9d),_0x3752b5=_0x1347da(_0x49c1a9)+_0x45a536+_0x4d8562['x'],_0xbebc77=_0x22d708(_0x40766c)+_0xa2ff9c+_0x4d8562['y'];this[_0x5ce879(0x312)][_0x5ce879(0x365)]({'top':_0x419339,'left':_0x522233,'height':_0xbebc77,'width':_0x3752b5}),this[_0x5ce879(0x312)][_0x5ce879(0x14b)]({'viewportScrollX':_0x1347da(_0x40a24e['startX']),'viewportScrollY':_0x22d708(_0x40a24e[_0x5ce879(0x1bf)])}),this[_0x5ce879(0x237)]&&this[_0x5ce879(0x334)]&&(this[_0x5ce879(0x334)][_0x5ce879(0x3a3)](),this[_0x5ce879(0x334)][_0x5ce879(0x365)]({'top':0x0,'left':_0x522233,'height':_0x419339,'width':_0x3752b5}),this[_0x5ce879(0x334)][_0x5ce879(0x14b)]({'viewportScrollX':_0x1347da(_0x40a24e['startX']),'viewportScrollY':0x0}),this[_0x5ce879(0x237)][_0x5ce879(0x3a3)](),this[_0x5ce879(0x237)]['resizeWhenFreezeChange']({'top':_0x419339,'left':0x0,'height':_0xbebc77,'width':_0x522233}),this[_0x5ce879(0x237)][_0x5ce879(0x14b)]({'viewportScrollX':0x0,'viewportScrollY':_0x22d708(_0x40a24e[_0x5ce879(0x1bf)])}));}else this[_0x5ce879(0x312)][_0x5ce879(0x365)]({'top':_0x22d708(_0x58ad42['y']),'left':_0x1347da(_0x58ad42['x']),'height':_0x22d708(_0x40766c)+_0xa2ff9c+_0x4d8562['y'],'width':_0x1347da(_0x49c1a9)+_0x45a536+_0x4d8562['x']}),this['_viewMain']['updateScrollVal']({'viewportScrollX':_0x1347da(_0x40a24e[_0x5ce879(0x363)])+_0x1347da(_0x3845d9)-_0x1347da(_0x58ad42['x']),'viewportScrollY':_0x22d708(_0x40a24e['startY'])+_0x22d708(_0x5a2d9d)-_0x22d708(_0x58ad42['y'])});}['_getTranslateOffset'](){const _0x305c11=_0x9572bf;let _0x3266dd=this[_0x305c11(0x231)],{vAlign:_0x3e01ce,hAlign:_0x13bba5}=this['_renderConfig'],_0x589beb=Math['max'](this[_0x305c11(0x2f0)]['scaleX'],this[_0x305c11(0x2f0)][_0x305c11(0x1d1)]),_0x4772d1;switch(_0x13bba5){case i[_0x305c11(0x1e1)][_0x305c11(0x2e6)]:_0x4772d1=_0x3266dd[_0x305c11(0x408)];break;case i['PrintAlign'][_0x305c11(0x23b)]:_0x4772d1=this[_0x305c11(0x1c9)]['w']-this[_0x305c11(0x211)]*_0x589beb-_0x3266dd['right'];break;default:_0x4772d1=_0x3266dd[_0x305c11(0x408)]+(this['paperSize']['w']-this['_totalWidth']*_0x589beb-_0x3266dd['left']-_0x3266dd[_0x305c11(0x3cf)])/0x2;break;}let _0x154003;switch(_0x3e01ce){case i['PrintAlign']['Start']:_0x154003=_0x3266dd[_0x305c11(0x1ee)];break;case i[_0x305c11(0x1e1)][_0x305c11(0x23b)]:_0x154003=this['paperSize']['h']-this[_0x305c11(0x238)]*_0x589beb-_0x3266dd[_0x305c11(0x412)];break;default:_0x154003=(this[_0x305c11(0x1c9)]['h']-this[_0x305c11(0x238)]*_0x589beb-_0x3266dd[_0x305c11(0x1ee)]-_0x3266dd['bottom'])/0x2+_0x3266dd[_0x305c11(0x1ee)];break;}return{'offsetX':Math[_0x305c11(0x297)](_0x4772d1),'offsetY':Math[_0x305c11(0x297)](_0x154003),'scale':_0x589beb};}[_0x9572bf(0x1b4)](){const _0x4a4b1a=_0x9572bf;this[_0x4a4b1a(0x290)](),this[_0x4a4b1a(0x210)][_0x4a4b1a(0x2c5)](),this['_effects']=new t[(_0x4a4b1a(0x3fc))]();let _0x4d5187=this[_0x4a4b1a(0x17c)][_0x4a4b1a(0x13c)](o[_0x4a4b1a(0x1dd)]),{offsetX:_0x1d54fd,offsetY:_0x141588,scale:_0x27d5a0}=this['_getTranslateOffset'](),_0x51faa4=_0x1d54fd,_0x30b95e=_0x141588;this[_0x4a4b1a(0x15d)][_0x4a4b1a(0x380)][_0x4a4b1a(0x408)]=_0x51faa4+'px',this[_0x4a4b1a(0x15d)]['style'][_0x4a4b1a(0x1ee)]=_0x30b95e+'px';let _0x50f2c4=this[_0x4a4b1a(0x211)]*_0x27d5a0,_0x46052d=this[_0x4a4b1a(0x238)]*_0x27d5a0;this[_0x4a4b1a(0x15d)][_0x4a4b1a(0x380)][_0x4a4b1a(0x1d2)]=_0x50f2c4+'px',this[_0x4a4b1a(0x15d)][_0x4a4b1a(0x380)][_0x4a4b1a(0x373)]=_0x46052d+'px',this[_0x4a4b1a(0x15d)][_0x4a4b1a(0x380)]['position']=_0x4a4b1a(0x378),this[_0x4a4b1a(0x15d)][_0x4a4b1a(0x380)]['overflow']=_0x4a4b1a(0x18a),_0x4d5187['interceptor'][_0x4a4b1a(0x30c)](_0x4d5187[_0x4a4b1a(0x3c3)]['getInterceptPoints']()['PRINTING_DOM_COLLECT'])(this['_effects'],{'unitId':this[_0x4a4b1a(0x21c)],'subUnitId':this[_0x4a4b1a(0x270)],'scene':this[_0x4a4b1a(0x2f0)],'engine':this['_engine'],'root':this[_0x4a4b1a(0x15d)],'worksheet':this[_0x4a4b1a(0x1fa)]['worksheet'],'skeleton':this[_0x4a4b1a(0x1fa)],'offset':this[_0x4a4b1a(0x3b3)]()});}[_0x9572bf(0x3fa)](){const _0x42e75f=_0x9572bf;this[_0x42e75f(0x275)]&&this[_0x42e75f(0x1b4)]();let _0x1e86c9=this[_0x42e75f(0x3f8)]['getCanvas']()[_0x42e75f(0x25f)](),{gridlines:_0x1a38bb}=this[_0x42e75f(0x2ae)],{offsetX:_0x1a2794,offsetY:_0x4deb59}=this[_0x42e75f(0x3b3)]();this[_0x42e75f(0x361)][_0x42e75f(0x24a)](!_0x1a38bb),this[_0x42e75f(0x361)][_0x42e75f(0x1c4)](),this['_scene'][_0x42e75f(0x324)](),_0x1e86c9['save'](),_0x1e86c9[_0x42e75f(0x30b)](_0x1a2794,_0x4deb59),this['_scene']['render'](),_0x1e86c9['restore']();}[_0x9572bf(0x345)](_0x5a881a,_0x97effa,_0xc4d89d){const _0x193506=_0x9572bf;let {w:_0x18361d,h:_0x2956c0}=this[_0x193506(0x1c9)],_0x44bf71=this[_0x193506(0x3f8)][_0x193506(0x3b7)]()['getContext']();_0x44bf71['save'](),_0x44bf71[_0x193506(0x37a)]='13px\x20'+a[_0x193506(0x3a5)];let _0x522f38=0x13*this[_0x193506(0x3e7)],_0x32c849=0x14*this[_0x193506(0x3e7)],_0x2b9d27={'workbook':_0x97effa,'worksheet':_0xc4d89d,'now':(0x0,t[_0x193506(0x1a6)])(),'localeService':this[_0x193506(0x17c)][_0x193506(0x13c)](t[_0x193506(0x3f4)]),'page':this[_0x193506(0x276)][_0x193506(0x1b1)],'pageTotal':this[_0x193506(0x276)][_0x193506(0x2db)],'sheetPageTotal':this[_0x193506(0x276)][_0x193506(0x39c)],'sheetPage':this[_0x193506(0x276)][_0x193506(0x29e)]};if(_0x5a881a[_0x193506(0x189)]){let _0x602a=L(_0x5a881a['topLeft'],_0x2b9d27);_0x44bf71[_0x193506(0x281)](_0x602a,_0x522f38,_0x32c849);}if(_0x5a881a[_0x193506(0x2d4)]){let _0x8c778c=L(_0x5a881a['topCenter'],_0x2b9d27),_0x4a7d60=_0x44bf71[_0x193506(0x16f)](_0x8c778c);_0x44bf71['fillText'](_0x8c778c,(_0x18361d-_0x4a7d60[_0x193506(0x1d2)])/0x2,_0x32c849);}if(_0x5a881a[_0x193506(0x165)]){let _0x5a2c35=L(_0x5a881a[_0x193506(0x165)],_0x2b9d27),_0x127cf8=_0x44bf71[_0x193506(0x16f)](_0x5a2c35);_0x44bf71[_0x193506(0x281)](_0x5a2c35,_0x18361d-_0x127cf8[_0x193506(0x1d2)]-_0x522f38,_0x32c849);}if(_0x5a881a[_0x193506(0x34d)]){let _0x579545=L(_0x5a881a['bottomLeft'],_0x2b9d27);_0x44bf71[_0x193506(0x281)](_0x579545,_0x522f38,_0x2956c0-_0x32c849);}if(_0x5a881a[_0x193506(0x2dd)]){let _0x315eb4=L(_0x5a881a[_0x193506(0x2dd)],_0x2b9d27),_0x2349a1=_0x44bf71[_0x193506(0x16f)](_0x315eb4);_0x44bf71[_0x193506(0x281)](_0x315eb4,(_0x18361d-_0x2349a1[_0x193506(0x1d2)])/0x2,_0x2956c0-_0x32c849);}if(_0x5a881a['bottomRight']){let _0x5d5f2a=L(_0x5a881a[_0x193506(0x187)],_0x2b9d27),_0xcee7de=_0x44bf71[_0x193506(0x16f)](_0x5d5f2a);_0x44bf71[_0x193506(0x281)](_0x5d5f2a,_0x18361d-_0xcee7de['width']-_0x522f38,_0x2956c0-_0x32c849);}_0x44bf71[_0x193506(0x2ac)]();}[_0x9572bf(0x32b)](){const _0x1e0d2e=_0x9572bf;let _0x18090d=this[_0x1e0d2e(0x1e7)][_0x1e0d2e(0x308)](this[_0x1e0d2e(0x276)][_0x1e0d2e(0x393)]),_0x58be4c=_0x18090d==null?void 0x0:_0x18090d[_0x1e0d2e(0x21b)](this['_config'][_0x1e0d2e(0x246)]),{headerFooter:_0x4b24b2,isCustomHeaderFooter:_0x242be6,headerFooterSetting:_0xb7dfce}=this[_0x1e0d2e(0x2ae)],{w:_0x86ea5a,h:_0x5183c6}=this[_0x1e0d2e(0x1c9)],_0xe76491=this[_0x1e0d2e(0x3f8)][_0x1e0d2e(0x3b7)]()[_0x1e0d2e(0x25f)]();if(!_0x18090d||!_0x58be4c)return;if(_0x242be6&&_0xb7dfce){this['_renderHeaderFooterByCustom'](_0xb7dfce,_0x18090d,_0x58be4c);return;}_0xe76491['save'](),_0xe76491[_0x1e0d2e(0x37a)]=_0x1e0d2e(0x3b4)+a[_0x1e0d2e(0x3a5)];let _0x317e91=0x13*this[_0x1e0d2e(0x3e7)],_0x3e03c8=0x14*this[_0x1e0d2e(0x3e7)];if(_0x4b24b2[_0x1e0d2e(0x3af)](_0x1e0d2e(0x40d))||_0x4b24b2[_0x1e0d2e(0x3af)]('Time')){let _0x20148c=new Date()[_0x1e0d2e(0x329)]();_0x4b24b2[_0x1e0d2e(0x3af)]('Date')?_0x4b24b2[_0x1e0d2e(0x3af)](_0x1e0d2e(0x20e))||(_0x20148c=new Date()[_0x1e0d2e(0x225)]()):_0x20148c=new Date()['toLocaleTimeString'](),_0xe76491[_0x1e0d2e(0x281)](_0x20148c,_0x317e91,_0x5183c6-_0x3e03c8);}_0x4b24b2[_0x1e0d2e(0x307)](_0x494eca=>{const _0x3d8170=_0x1e0d2e;switch(_0x494eca){case'WorkbookTitle':{let _0x12625d=_0x18090d[_0x3d8170(0x40e)](),_0x121794=_0xe76491[_0x3d8170(0x16f)](_0x12625d),_0x405787=_0x121794[_0x3d8170(0x132)]+_0x121794[_0x3d8170(0x287)];_0xe76491[_0x3d8170(0x281)](_0x12625d,_0x317e91,_0x3e03c8+_0x405787);break;}case _0x3d8170(0x172):{let _0x3ae839=_0x58be4c[_0x3d8170(0x40e)](),_0x3c2088=_0xe76491[_0x3d8170(0x16f)](_0x3ae839),_0x3d4413=_0x3c2088[_0x3d8170(0x132)]+_0x3c2088[_0x3d8170(0x287)];_0xe76491[_0x3d8170(0x281)](_0x3ae839,_0x86ea5a-(_0x3c2088['width']+_0x317e91),_0x3e03c8+_0x3d4413);break;}case _0x3d8170(0x219):{let _0x3c0536=''+this[_0x3d8170(0x276)][_0x3d8170(0x1b1)],_0x15dd33=_0xe76491[_0x3d8170(0x16f)](_0x3c0536);_0xe76491[_0x3d8170(0x281)](_0x3c0536,_0x86ea5a-(_0x15dd33[_0x3d8170(0x1d2)]+_0x317e91),_0x5183c6-_0x3e03c8);break;}default:break;}}),_0xe76491[_0x1e0d2e(0x2ac)]();}[_0x9572bf(0x1dc)](){const _0x5071fb=_0x9572bf;let _0x3e5c8a=this['_accessor'][_0x5071fb(0x13c)](t[_0x5071fb(0x3f4)]),_0x110f55=this['_engine']['getCanvas']()[_0x5071fb(0x25f)]();_0x110f55[_0x5071fb(0x247)]();let _0x3c5ecb=0x14*this[_0x5071fb(0x3e7)];_0x110f55['fillStyle']=_0x5071fb(0x141),_0x110f55[_0x5071fb(0x37a)]='12px\x20'+a['DEFAULT_FONTFACE_PLANE'];let _0x218e0b=_0x110f55[_0x5071fb(0x16f)](_0x3e5c8a['t']('sheets-print.limit.waterMark')),_0x5cb6e3=(this[_0x5071fb(0x1c9)]['w']-_0x218e0b[_0x5071fb(0x1d2)])/0x2,_0xc093bf=_0x218e0b[_0x5071fb(0x132)]+_0x218e0b[_0x5071fb(0x287)];_0x110f55[_0x5071fb(0x281)](_0x3e5c8a['t'](_0x5071fb(0x335)),_0x5cb6e3,_0x3c5ecb+_0xc093bf),_0x110f55[_0x5071fb(0x281)](_0x3e5c8a['t']('sheets-print.limit.waterMark'),_0x5cb6e3,this[_0x5071fb(0x1c9)]['h']-_0x3c5ecb),_0x110f55[_0x5071fb(0x2ac)]();}[_0x9572bf(0x413)](){const _0x5ce14c=_0x9572bf;this[_0x5ce14c(0x3f8)]['clearCanvas'](),this[_0x5ce14c(0x3fa)](),this[_0x5ce14c(0x32b)](),this[_0x5ce14c(0x283)]&&(0x0,a[_0x5ce14c(0x377)])(this[_0x5ce14c(0x3f8)][_0x5ce14c(0x3b7)]()[_0x5ce14c(0x25f)](),this[_0x5ce14c(0x283)],this[_0x5ce14c(0x283)]['image'],this[_0x5ce14c(0x17c)]['get'](t[_0x5ce14c(0x3ee)])[_0x5ce14c(0x243)]());}[_0x9572bf(0x171)](){const _0x1c241c=_0x9572bf;let _0x2bfd15=this[_0x1c241c(0x3ab)][_0x1c241c(0x27a)]['subscribeEvent'](()=>{this['render']();});this[_0x1c241c(0x3df)](_0x2bfd15);}[_0x9572bf(0x2c3)](){const _0x1777f3=_0x9572bf;return this[_0x1777f3(0x3f8)]['getCanvas']()[_0x1777f3(0x212)](_0x1777f3(0x161),0x1);}};const H=(_0x3453ef,_0x43dbf7)=>{const _0x145fc8=_0x9572bf;let _0x10d1b8=(0x0,u[_0x145fc8(0x2c2)])(!0x1);(0x0,u[_0x145fc8(0x259)])(()=>{const _0x3342b9=_0x145fc8;if(_0x10d1b8[_0x3342b9(0x33e)])return _0x3453ef();_0x10d1b8[_0x3342b9(0x33e)]=!0x0;},_0x43dbf7);},le=(0x0,u[_0x9572bf(0x131)])((_0x55ac59,_0x125d12)=>{const _0x48810f=_0x9572bf;let {config:_0x433f88,previewScale:_0x58640d}=_0x55ac59,_0x281058=(0x0,r[_0x48810f(0x355)])(O),_0xac1bf3=(0x0,r[_0x48810f(0x355)])(t[_0x48810f(0x191)]),_0x1dbcdc=(0x0,u[_0x48810f(0x2c2)])(null),_0x3dfc0b=_0x281058[_0x48810f(0x1c9)],_0x16e8e5=(0x0,r[_0x48810f(0x2ff)])(_0x281058[_0x48810f(0x1bc)],_0x281058['renderConfig']),_0x4925f6=(0x0,r[_0x48810f(0x2ff)])(_0x281058[_0x48810f(0x1eb)],_0x281058[_0x48810f(0x3d8)]),_0x10a909=Math[_0x48810f(0x297)](_0x58640d*(0x31a/_0x3dfc0b['w'])*0xa)/0xa,[_0x192149]=(0x0,u[_0x48810f(0x1e2)])(()=>new V(_0xac1bf3,_0x433f88,_0x16e8e5,!0x0,_0x10a909));return(0x0,u[_0x48810f(0x259)])(()=>(_0x1dbcdc[_0x48810f(0x33e)]&&(_0x192149[_0x48810f(0x2c0)][_0x48810f(0x380)]['width']=_0x48810f(0x3ae),_0x192149[_0x48810f(0x2c0)][_0x48810f(0x380)][_0x48810f(0x373)]=_0x48810f(0x3ae),_0x192149[_0x48810f(0x2c0)]['style'][_0x48810f(0x3c0)]='relative',_0x1dbcdc[_0x48810f(0x33e)][_0x48810f(0x37c)](_0x192149[_0x48810f(0x2c0)]),_0x192149[_0x48810f(0x2c0)][_0x48810f(0x37c)](_0x192149['root'])),_0x192149[_0x48810f(0x413)](),_0x192149[_0x48810f(0x171)](),()=>{const _0x2b35b9=_0x48810f;var _0x1e919e;_0x192149['dispose'](),(_0x1e919e=_0x1dbcdc['current'])==null||_0x1e919e['removeChild'](_0x192149[_0x2b35b9(0x2c0)]);}),[_0x192149]),H(()=>{const _0x55d670=_0x48810f;_0x192149['renderConfig']=_0x16e8e5,_0x192149[_0x55d670(0x413)]();},[_0x16e8e5]),H(()=>{const _0x2ab647=_0x48810f;_0x192149['setPreviewScale'](_0x10a909),_0x192149['engine'][_0x2ab647(0x405)](),_0x192149['render']();},[_0x10a909]),H(()=>{const _0x1a01ba=_0x48810f;_0x192149[_0x1a01ba(0x38a)](_0x433f88),_0x192149[_0x1a01ba(0x413)]();},[_0x433f88[_0x48810f(0x3ef)]['startRow'],_0x433f88['freeze'][_0x48810f(0x159)],_0x433f88['freeze'][_0x48810f(0x21e)],_0x433f88[_0x48810f(0x3ef)][_0x48810f(0x3cd)],_0x433f88[_0x48810f(0x1c2)][_0x48810f(0x20d)],_0x433f88['range']['endRow'],_0x433f88[_0x48810f(0x1c2)][_0x48810f(0x159)],_0x433f88[_0x48810f(0x1c2)]['endColumn'],_0x433f88[_0x48810f(0x28e)],_0x4925f6['margin']]),(0x0,p[_0x48810f(0x2ca)])(_0x48810f(0x2c4),{'ref':_0x125d12,'children':(0x0,p['jsx'])(_0x48810f(0x2c4),{'ref':_0x1dbcdc,'className':_0x48810f(0x1aa),'style':{'width':_0x3dfc0b['w']*_0x10a909,'height':_0x3dfc0b['h']*_0x10a909}})});}),ue=(0x0,u[_0x9572bf(0x1ca)])(({onShowFooterHeaderEditor:_0x306268})=>{const _0x5abce7=_0x9572bf;var _0x293895,_0x5cffd2,_0x4961ef,_0x2f4f63,_0x1a91be,_0x14c1f6;let _0x45bf79=(0x0,r['useDependency'])(O),_0x575f24=(0x0,r['useObservable'])(_0x45bf79[_0x5abce7(0x1eb)],_0x45bf79['layoutConfig']),_0x2a85b4=(0x0,r['useObservable'])(_0x45bf79[_0x5abce7(0x1bc)],_0x45bf79[_0x5abce7(0x280)]),_0x5a2814=(0x0,r['useDependency'])(t[_0x5abce7(0x3f4)]),_0x2b32ac=(0x0,r[_0x5abce7(0x355)])(t[_0x5abce7(0x21f)]),_0x52bb5e=(0x0,r[_0x5abce7(0x355)])(t[_0x5abce7(0x3b0)]),[_0x32244c,_0x27527e]=(0x0,u[_0x5abce7(0x1e2)])(null),_0x303ba7=(_0x293895=(_0x5cffd2=(0x0,r[_0x5abce7(0x355)])(t[_0x5abce7(0x1f4)])[_0x5abce7(0x22a)](_0x5abce7(0x2b7)))==null?void 0x0:_0x5cffd2[_0x5abce7(0x1cd)])==null?!0x1:_0x293895;(0x0,u[_0x5abce7(0x259)])(()=>{const _0x5ee179=_0x5abce7;_0x52bb5e[_0x5ee179(0x29b)](a[_0x5ee179(0x3d2)])['then'](_0x1f079f=>{const _0x572d29=_0x5ee179;let _0x42170d,_0x4f88c8;(_0x1f079f==null?void 0x0:_0x1f079f[_0x572d29(0x202)])===a['IWatermarkTypeEnum'][_0x572d29(0x1f0)]&&_0x1f079f[_0x572d29(0x37e)]['image']&&(_0x42170d=new Image(),_0x42170d['src']=_0x1f079f[_0x572d29(0x37e)][_0x572d29(0x249)]['url']),(_0x1f079f==null?void 0x0:_0x1f079f[_0x572d29(0x202)])===a[_0x572d29(0x34e)][_0x572d29(0x180)]&&_0x1f079f!=null&&_0x1f079f[_0x572d29(0x37e)]['userInfo']&&(_0x4f88c8=_0x1f079f['config'][_0x572d29(0x3f7)]);let _0x5a6f42=_0x1f079f?{..._0x1f079f,'user':_0x4f88c8,'image':_0x42170d}:null;_0x27527e(_0x5a6f42),_0x303ba7&&(_0x2a85b4['watermark']=_0x5a6f42);});},[]);let _0x28b847=_0x2b32ac[_0x5abce7(0x199)](t['UniverInstanceType']['UNIVER_SHEET']),_0x160b11=_0x28b847[_0x5abce7(0x30a)]()[_0x5abce7(0x134)](_0xe7730e=>!_0xe7730e[_0x5abce7(0x38f)]()),_0x3c581b=_0x28b847[_0x5abce7(0x1c0)]();if(!_0x3c581b)return console[_0x5abce7(0x291)](_0x5abce7(0x228)),null;let _0x4d5976=(_0xfa2c64,_0x1324c8)=>{const _0x937e52=_0x5abce7;let _0x441900=Math['max'](0x0,_0x1324c8||0x0),_0x4e42fe=_0x575f24[_0x937e52(0x29d)]||{'top':0x0,'left':0x0,'right':0x0,'bottom':0x0};_0x45bf79[_0x937e52(0x15b)]({'marginCustom':{..._0x4e42fe,[_0xfa2c64]:_0x441900}});},_0x277477=_0x3c581b[_0x5abce7(0x2d6)](),_0x3d1dca=_0x575f24[_0x5abce7(0x2a3)]!==_0x5abce7(0x298)&&_0x277477[_0x5abce7(0x21e)]<=0x0,_0x5b10a4=_0x575f24[_0x5abce7(0x2a3)]!==_0x5abce7(0x298)&&_0x277477['ySplit']<=0x0;return(0x0,p['jsx'])('div',{'className':(0x0,c[_0x5abce7(0x1a7)])(_0x5abce7(0x26c),c[_0x5abce7(0x386)]),'children':(0x0,p[_0x5abce7(0x382)])(_0x5abce7(0x2c4),{'className':_0x5abce7(0x35e),'children':[(0x0,p[_0x5abce7(0x2ca)])(c['FormLayout'],{'label':_0x5a2814['t'](_0x5abce7(0x286)),'children':(0x0,p[_0x5abce7(0x2ca)])(c['Select'],{'className':_0x5abce7(0x1ad),'value':''+_0x575f24[_0x5abce7(0x2a3)],'onChange':_0x13fd56=>{const _0x404e37=_0x5abce7;_0x13fd56===_0x404e37(0x298)?_0x45bf79[_0x404e37(0x15b)]({'area':_0x13fd56,'subUnitIds':_0x160b11[_0x404e37(0x32e)](_0x208549=>_0x208549[_0x404e37(0x1a0)]())}):_0x45bf79[_0x404e37(0x15b)]({'area':_0x13fd56});},'options':[{'label':_0x5a2814['t'](_0x5abce7(0x168)),'value':_0x5abce7(0x144)},{'label':_0x5a2814['t']('sheets-print.area.workbook'),'value':_0x5abce7(0x298)},{'label':_0x5a2814['t'](_0x5abce7(0x3e3)),'value':'CurrentSelection'},{'label':_0x5a2814['t']('sheets-print.area.allSelection'),'value':_0x5abce7(0x36a)}]})}),_0x575f24['area']===_0x5abce7(0x298)?(0x0,p[_0x5abce7(0x2ca)])(c['FormLayout'],{'label':_0x5a2814['t'](_0x5abce7(0x23e)),'children':(0x0,p[_0x5abce7(0x2ca)])(c[_0x5abce7(0x3d0)],{'overlay':(0x0,p[_0x5abce7(0x2ca)])(_0x5abce7(0x2c4),{'className':(0x0,c[_0x5abce7(0x1a7)])(_0x5abce7(0x3c5),c['scrollbarClassName']),'children':(0x0,p['jsx'])(c[_0x5abce7(0x28a)],{'direction':_0x5abce7(0x1cf),'className':'univer-p-3','value':_0x575f24[_0x5abce7(0x357)][_0x5abce7(0x32e)](_0x1d124b=>typeof _0x1d124b==_0x5abce7(0x28b)?_0x1d124b:_0x1d124b['id']),'onChange':_0x57266d=>{const _0xf24b14=_0x5abce7;let _0x4ef912=new Set(_0x57266d);if(_0x4ef912['size']===0x0)_0x45bf79[_0xf24b14(0x15b)]({'subUnitIds':_0x160b11[_0xf24b14(0x32e)](_0xf9a94a=>_0xf9a94a[_0xf24b14(0x1a0)]())});else{let _0x6ebefe=[];_0x160b11[_0xf24b14(0x307)](_0x1f516e=>{const _0x5b40b0=_0xf24b14;let _0x5c307c=_0x1f516e[_0x5b40b0(0x1a0)]();_0x4ef912[_0x5b40b0(0x251)](_0x5c307c)&&_0x6ebefe[_0x5b40b0(0x278)](_0x5c307c);}),_0x45bf79[_0xf24b14(0x15b)]({'subUnitIds':_0x6ebefe});}},'children':_0x160b11[_0x5abce7(0x32e)](_0x5ad881=>(0x0,p[_0x5abce7(0x2ca)])(c[_0x5abce7(0x3bc)],{'value':_0x5ad881[_0x5abce7(0x1a0)](),'children':_0x5ad881['getName']()},_0x5ad881['getSheetId']()))})}),'children':(0x0,p[_0x5abce7(0x382)])(_0x5abce7(0x2c4),{'className':(0x0,c[_0x5abce7(0x1a7)])('univer-box-border\x20univer-inline-flex\x20univer-h-8\x20univer-w-full\x20univer-min-w-36\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-white\x20univer-px-2.5\x20univer-text-sm\x20univer-transition-colors\x20univer-duration-200\x20hover:univer-border-primary-600\x20dark:!univer-bg-gray-700\x20dark:!univer-text-white',c[_0x5abce7(0x2d1)]),'children':[(0x0,p[_0x5abce7(0x2ca)])(_0x5abce7(0x32a),{'className':_0x5abce7(0x1af),'children':_0x575f24['subUnitIds'][_0x5abce7(0x362)]===_0x160b11[_0x5abce7(0x362)]||_0x575f24[_0x5abce7(0x357)][_0x5abce7(0x362)]===0x0?_0x5a2814['t'](_0x5abce7(0x284)):''+_0x575f24['subUnitIds'][_0x5abce7(0x362)]+_0x5a2814['t']('sheets-print.selection.workbookUnit')}),(0x0,p[_0x5abce7(0x2ca)])(l[_0x5abce7(0x1a3)],{})]})})}):null,(0x0,p[_0x5abce7(0x2ca)])(c['FormLayout'],{'label':_0x5a2814['t'](_0x5abce7(0x18e)),'children':(0x0,p['jsx'])(c[_0x5abce7(0x3dd)],{'className':'univer-w-full','value':_0x575f24['paperSize'],'options':[{'label':_0x5a2814['t'](_0x5abce7(0x38d)),'value':t[_0x5abce7(0x235)][_0x5abce7(0x2a2)]},{'label':_0x5a2814['t'](_0x5abce7(0x2b8)),'value':t['PaperType']['Tabloid']},{'label':_0x5a2814['t'](_0x5abce7(0x330)),'value':t[_0x5abce7(0x235)][_0x5abce7(0x2aa)]},{'label':_0x5a2814['t'](_0x5abce7(0x3fe)),'value':t['PaperType'][_0x5abce7(0x14c)]},{'label':_0x5a2814['t'](_0x5abce7(0x1c6)),'value':t[_0x5abce7(0x235)][_0x5abce7(0x30f)]},{'label':_0x5a2814['t'](_0x5abce7(0x16e)),'value':t['PaperType'][_0x5abce7(0x34f)]},{'label':_0x5a2814['t'](_0x5abce7(0x3a0)),'value':t['PaperType']['A3']},{'label':_0x5a2814['t']('sheets-print.size.a4'),'value':t['PaperType']['A4']},{'label':_0x5a2814['t'](_0x5abce7(0x376)),'value':t[_0x5abce7(0x235)]['A5']},{'label':_0x5a2814['t'](_0x5abce7(0x321)),'value':t[_0x5abce7(0x235)]['B4']},{'label':_0x5a2814['t']('sheets-print.size.b5'),'value':t[_0x5abce7(0x235)]['B5']}],'onChange':_0x2b9c62=>{const _0xbde793=_0x5abce7;_0x45bf79[_0xbde793(0x15b)]({'paperSize':_0x2b9c62});}})}),(0x0,p[_0x5abce7(0x2ca)])(c[_0x5abce7(0x2cf)],{'label':_0x5a2814['t'](_0x5abce7(0x3e2)),'children':(0x0,p[_0x5abce7(0x2ca)])(c[_0x5abce7(0x3dd)],{'className':_0x5abce7(0x1ad),'value':_0x575f24['margin'],'options':[{'label':_0x5a2814['t']('sheets-print.margin.normal'),'value':i[_0x5abce7(0x18d)][_0x5abce7(0x3f3)]},{'label':_0x5a2814['t']('sheets-print.margin.narrow'),'value':i[_0x5abce7(0x18d)][_0x5abce7(0x29f)]},{'label':_0x5a2814['t'](_0x5abce7(0x1bb)),'value':i[_0x5abce7(0x18d)]['Wide']},{'label':_0x5a2814['t']('sheets-print.margin.custom'),'value':i['PrintPaperMargin'][_0x5abce7(0x1fd)]}],'onChange':_0x2bce62=>{const _0x43869f=_0x5abce7;let _0x3cf1fe=i[_0x43869f(0x3ba)][_0x575f24['margin']];_0x45bf79[_0x43869f(0x15b)]({'margin':_0x2bce62,'marginCustom':_0x2bce62===i[_0x43869f(0x18d)][_0x43869f(0x1fd)]?_0x3cf1fe:i[_0x43869f(0x3ba)][_0x2bce62]});}})}),_0x575f24[_0x5abce7(0x231)]===i[_0x5abce7(0x18d)][_0x5abce7(0x1fd)]&&(0x0,p['jsx'])(c[_0x5abce7(0x2cf)],{'children':(0x0,p[_0x5abce7(0x382)])(_0x5abce7(0x2c4),{'className':_0x5abce7(0x217),'children':[(0x0,p[_0x5abce7(0x382)])(_0x5abce7(0x2c4),{'children':[(0x0,p[_0x5abce7(0x2ca)])(_0x5abce7(0x1e3),{'className':_0x5abce7(0x394),'children':_0x5a2814['t'](_0x5abce7(0x1ba))}),(0x0,p[_0x5abce7(0x2ca)])(c['Input'],{'type':'number','value':String(((_0x4961ef=_0x575f24[_0x5abce7(0x29d)])==null?void 0x0:_0x4961ef[_0x5abce7(0x1ee)])||0x0),'onChange':_0x13262a=>_0x4d5976(_0x5abce7(0x1ee),Number(_0x13262a))})]}),(0x0,p['jsxs'])(_0x5abce7(0x2c4),{'children':[(0x0,p[_0x5abce7(0x2ca)])(_0x5abce7(0x1e3),{'className':_0x5abce7(0x394),'children':_0x5a2814['t']('sheets-print.margin.bottom')}),(0x0,p[_0x5abce7(0x2ca)])(c[_0x5abce7(0x40b)],{'type':_0x5abce7(0x28c),'value':String(((_0x2f4f63=_0x575f24[_0x5abce7(0x29d)])==null?void 0x0:_0x2f4f63[_0x5abce7(0x412)])||0x0),'onChange':_0x47022e=>_0x4d5976(_0x5abce7(0x412),Number(_0x47022e))})]}),(0x0,p[_0x5abce7(0x382)])(_0x5abce7(0x2c4),{'children':[(0x0,p[_0x5abce7(0x2ca)])(_0x5abce7(0x1e3),{'className':'univer-mb-1\x20univer-block\x20univer-text-xs\x20univer-text-gray-500','children':_0x5a2814['t']('sheets-print.margin.left')}),(0x0,p[_0x5abce7(0x2ca)])(c['Input'],{'type':_0x5abce7(0x28c),'value':String(((_0x1a91be=_0x575f24[_0x5abce7(0x29d)])==null?void 0x0:_0x1a91be[_0x5abce7(0x408)])||0x0),'onChange':_0x4e4fdf=>_0x4d5976('left',Number(_0x4e4fdf))})]}),(0x0,p[_0x5abce7(0x382)])('div',{'children':[(0x0,p[_0x5abce7(0x2ca)])(_0x5abce7(0x1e3),{'className':_0x5abce7(0x394),'children':_0x5a2814['t'](_0x5abce7(0x371))}),(0x0,p[_0x5abce7(0x2ca)])(c['Input'],{'type':_0x5abce7(0x28c),'value':String(((_0x14c1f6=_0x575f24['marginCustom'])==null?void 0x0:_0x14c1f6[_0x5abce7(0x3cf)])||0x0),'onChange':_0x4862ff=>_0x4d5976(_0x5abce7(0x3cf),Number(_0x4862ff))})]})]})}),(0x0,p[_0x5abce7(0x2ca)])(c[_0x5abce7(0x2cf)],{'label':_0x5a2814['t']('sheets-print.orientation.title'),'children':(0x0,p[_0x5abce7(0x382)])(c[_0x5abce7(0x1ef)],{'value':_0x575f24[_0x5abce7(0x188)],'onChange':_0x408cb9=>{const _0x28b82b=_0x5abce7;_0x45bf79[_0x28b82b(0x15b)]({'direction':_0x408cb9});},'children':[(0x0,p['jsx'])(c[_0x5abce7(0x1e9)],{'value':i['PrintDirection']['Portrait'],'children':_0x5a2814['t'](_0x5abce7(0x36d))}),(0x0,p[_0x5abce7(0x2ca)])(c['Radio'],{'value':i['PrintDirection'][_0x5abce7(0x2a5)],'children':_0x5a2814['t'](_0x5abce7(0x303))})]})}),(0x0,p[_0x5abce7(0x2ca)])(c['FormLayout'],{'label':_0x5a2814['t'](_0x5abce7(0x253)),'children':(0x0,p[_0x5abce7(0x2ca)])(c['Select'],{'className':_0x5abce7(0x1ad),'value':_0x575f24[_0x5abce7(0x28e)],'options':[{'label':_0x5a2814['t'](_0x5abce7(0x2fb)),'value':i['PrintScale']['Origin']},{'label':_0x5a2814['t'](_0x5abce7(0x2bf)),'value':i[_0x5abce7(0x269)][_0x5abce7(0x227)]},{'label':_0x5a2814['t'](_0x5abce7(0x36c)),'value':i[_0x5abce7(0x269)][_0x5abce7(0x155)]},{'label':_0x5a2814['t']('sheets-print.scale.fitPage'),'value':i[_0x5abce7(0x269)][_0x5abce7(0x151)]}],'onChange':_0x536ec6=>{const _0x2a286c=_0x5abce7;_0x45bf79[_0x2a286c(0x15b)]({'scale':_0x536ec6});}})}),(0x0,p[_0x5abce7(0x382)])(c[_0x5abce7(0x2cf)],{'label':_0x5a2814['t'](_0x5abce7(0x3b1)),'children':[(0x0,p[_0x5abce7(0x2ca)])(c[_0x5abce7(0x3bc)],{'checked':_0x2a85b4['gridlines'],'onChange':_0x13ed9f=>{_0x45bf79['updateRenderConfig']({'gridlines':_0x13ed9f});},'children':_0x5a2814['t'](_0x5abce7(0x3e8))}),_0x32244c&&!_0x303ba7?(0x0,p[_0x5abce7(0x2ca)])(_0x5abce7(0x2c4),{'className':_0x5abce7(0x15e),'children':(0x0,p[_0x5abce7(0x2ca)])(c['Checkbox'],{'checked':!!_0x2a85b4[_0x5abce7(0x1b3)],'onChange':async _0x3045fc=>{const _0x3477be=_0x5abce7;_0x3045fc?_0x45bf79['updateRenderConfig']({'watermark':_0x32244c}):_0x45bf79[_0x3477be(0x216)]({'watermark':void 0x0});},'children':_0x5a2814['t']('sheets-print.formatting.waterMark')})}):null]}),(0x0,p[_0x5abce7(0x2ca)])(c[_0x5abce7(0x2cf)],{'label':_0x5a2814['t'](_0x5abce7(0x381)),'children':(0x0,p['jsxs'])(_0x5abce7(0x2c4),{'className':_0x5abce7(0x37d),'children':[(0x0,p['jsx'])(c[_0x5abce7(0x3dd)],{'className':'!univer-min-w-0\x20univer-flex-1','value':_0x2a85b4['hAlign'],'options':[{'label':_0x5a2814['t'](_0x5abce7(0x309)),'value':i[_0x5abce7(0x1e1)][_0x5abce7(0x342)]},{'label':_0x5a2814['t']('sheets-print.align.horizontal.start'),'value':i[_0x5abce7(0x1e1)]['Start']},{'label':_0x5a2814['t'](_0x5abce7(0x2ec)),'value':i[_0x5abce7(0x1e1)][_0x5abce7(0x23b)]}],'onChange':_0x21d301=>{const _0x272dac=_0x5abce7;_0x45bf79[_0x272dac(0x216)]({'hAlign':_0x21d301});}}),(0x0,p[_0x5abce7(0x2ca)])(c[_0x5abce7(0x3dd)],{'className':_0x5abce7(0x264),'value':_0x2a85b4[_0x5abce7(0x404)],'options':[{'label':_0x5a2814['t'](_0x5abce7(0x152)),'value':i[_0x5abce7(0x1e1)][_0x5abce7(0x2e6)]},{'label':_0x5a2814['t'](_0x5abce7(0x200)),'value':i[_0x5abce7(0x1e1)][_0x5abce7(0x23b)]},{'label':_0x5a2814['t'](_0x5abce7(0x3de)),'value':i[_0x5abce7(0x1e1)][_0x5abce7(0x342)]}],'onChange':_0x26a05a=>{_0x45bf79['updateRenderConfig']({'vAlign':_0x26a05a});}})]})}),(0x0,p[_0x5abce7(0x382)])(c[_0x5abce7(0x2cf)],{'collapsable':!0x0,'label':_0x5a2814['t']('sheets-print.headerFooter.title'),'children':[(0x0,p[_0x5abce7(0x382)])(c[_0x5abce7(0x28a)],{'direction':_0x5abce7(0x1cf),'disabled':_0x2a85b4[_0x5abce7(0x2bb)],'value':_0x2a85b4[_0x5abce7(0x1be)],'onChange':_0x4d8c92=>{_0x45bf79['updateRenderConfig']({'headerFooter':_0x4d8c92});},'children':[(0x0,p[_0x5abce7(0x2ca)])(c[_0x5abce7(0x3bc)],{'value':_0x5abce7(0x219),'children':_0x5a2814['t'](_0x5abce7(0x3ec))}),(0x0,p[_0x5abce7(0x2ca)])(c[_0x5abce7(0x3bc)],{'value':'WorkbookTitle','children':_0x5a2814['t'](_0x5abce7(0x154))}),(0x0,p['jsx'])(c['Checkbox'],{'value':_0x5abce7(0x172),'children':_0x5a2814['t']('sheets-print.headerFooter.sheet')}),(0x0,p['jsx'])(c[_0x5abce7(0x3bc)],{'value':_0x5abce7(0x40d),'children':_0x5a2814['t'](_0x5abce7(0x31b))}),(0x0,p['jsx'])(c[_0x5abce7(0x3bc)],{'value':_0x5abce7(0x20e),'children':_0x5a2814['t'](_0x5abce7(0x39d))})]}),(0x0,p['jsx'])(c[_0x5abce7(0x2cf)],{'className':_0x5abce7(0x15e),'label':(0x0,p[_0x5abce7(0x2ca)])(c[_0x5abce7(0x3bc)],{'checked':_0x2a85b4['isCustomHeaderFooter'],'onChange':()=>{const _0x1cbb80=_0x5abce7;_0x45bf79[_0x1cbb80(0x216)]({'isCustomHeaderFooter':!_0x2a85b4[_0x1cbb80(0x2bb)]});},'children':_0x5a2814['t'](_0x5abce7(0x3d9))}),'children':_0x2a85b4[_0x5abce7(0x2bb)]?(0x0,p[_0x5abce7(0x2ca)])(c['Button'],{'className':_0x5abce7(0x167),'size':_0x5abce7(0x2a0),'variant':_0x5abce7(0x2ee),'onClick':()=>{_0x306268();},'children':_0x5a2814['t'](_0x5abce7(0x27c))}):null})]}),(0x0,p[_0x5abce7(0x2ca)])(c[_0x5abce7(0x2cf)],{'collapsable':!0x0,'label':_0x5a2814['t'](_0x5abce7(0x263)),'children':(0x0,p[_0x5abce7(0x382)])(c[_0x5abce7(0x28a)],{'direction':_0x5abce7(0x1cf),'value':_0x575f24[_0x5abce7(0x3ef)],'onChange':_0x353134=>{const _0x3d248e=_0x5abce7;_0x45bf79[_0x3d248e(0x15b)]({'freeze':_0x353134});},'children':[(0x0,p[_0x5abce7(0x2ca)])(c[_0x5abce7(0x3bc)],{'disabled':_0x5b10a4,'value':'Row','children':_0x5a2814['t'](_0x5abce7(0x24b))}),(0x0,p[_0x5abce7(0x2ca)])(c[_0x5abce7(0x3bc)],{'disabled':_0x3d1dca,'value':_0x5abce7(0x39b),'children':_0x5a2814['t'](_0x5abce7(0x23f))})]})}),(0x0,p[_0x5abce7(0x382)])(c[_0x5abce7(0x2cf)],{'collapsable':!0x0,'defaultCollapsed':!0x0,'label':_0x5a2814['t'](_0x5abce7(0x267)),'children':[(0x0,p['jsx'])(c[_0x5abce7(0x2cf)],{'className':_0x5abce7(0x240),'label':_0x5a2814['t']('sheets-print.area.maxRowsEachPage'),'children':(0x0,p['jsx'])(c['Input'],{'value':_0x575f24[_0x5abce7(0x181)]===0x1/0x0?'':''+_0x575f24['maxRowsEachPage'],'onChange':_0x1a5f3d=>{const _0x3a95c7=_0x5abce7;_0x45bf79[_0x3a95c7(0x15b)]({'maxRowsEachPage':!_0x1a5f3d||Number[_0x3a95c7(0x1d9)](Number(_0x1a5f3d))?0x1/0x0:Number(_0x1a5f3d)});}})}),(0x0,p[_0x5abce7(0x2ca)])(c['FormLayout'],{'label':_0x5a2814['t']('sheets-print.area.maxColumnsEachPage'),'children':(0x0,p['jsx'])(c[_0x5abce7(0x40b)],{'value':_0x575f24[_0x5abce7(0x402)]===0x1/0x0?'':''+_0x575f24['maxColumnsEachPage'],'onChange':_0x3a3588=>{const _0x529a9d=_0x5abce7;_0x45bf79[_0x529a9d(0x15b)]({'maxColumnsEachPage':!_0x3a3588||Number[_0x529a9d(0x1d9)](Number(_0x3a3588))?0x1/0x0:Number(_0x3a3588)});}})})]})]})});}),de=0.1,fe=()=>{const _0x2a98cb=_0x9572bf;var _0x271424;let [_0x570e14,_0x52a259]=(0x0,u[_0x2a98cb(0x1e2)])(!0x1),_0x212fe3=(0x0,r[_0x2a98cb(0x355)])(O),_0x29d567=(0x0,r['useDependency'])(t[_0x2a98cb(0x2ad)]),_0x254f52=(0x0,r['useObservable'])(_0x212fe3[_0x2a98cb(0x23a)],[]),[_0x2d5c8c,_0x5d407e]=(0x0,u[_0x2a98cb(0x1e2)])(0x1),[_0x215ca9,_0x225f2a]=(0x0,u[_0x2a98cb(0x1e2)])(!0x1),_0x4c0627=(0x0,u[_0x2a98cb(0x2c2)])(0x0),_0x58b88c=(0x0,r['useDependency'])(t[_0x2a98cb(0x21f)]),_0x582ba5=(0x0,r['useDependency'])(t['LocaleService']),_0x79c3e5=(0x0,r[_0x2a98cb(0x355)])(t[_0x2a98cb(0x191)]),{ls:_0x20e536,pbk:_0x1b1a10}=(_0x271424=(0x0,r[_0x2a98cb(0x355)])(t['IConfigService'])[_0x2a98cb(0x22a)](e['LS_CONFIG_KEY']))==null?{}:_0x271424,{limit:_0x186b29,isPro:_0x1d0639}=(0x0,u[_0x2a98cb(0x2ce)])(()=>{let {page:_0x5c57a2,isPro:_0xdf735}=N(0x3,_0x20e536,_0x1b1a10);return{'limit':_0x5c57a2,'isPro':_0xdf735};},[_0x20e536,_0x1b1a10]),_0x2ca4dd=(0x0,u[_0x2a98cb(0x2c2)])(void 0x0),_0x15f03c=(0x0,r['useDependency'])(r[_0x2a98cb(0x387)]),_0x3cd6ce=te(import(`@univerjs-pro/collaboration-client`).then(_0xe9e925=>_0xe9e925['CollaborationController'],()=>void 0x0));(0x0,u['useEffect'])(()=>{const _0x5221ef=_0x2a98cb;var _0x356b52;if(!_0x3cd6ce)return;let _0x44c0c4=_0x58b88c[_0x5221ef(0x199)](t[_0x5221ef(0x21d)][_0x5221ef(0x3ac)])['getUnitId'](),_0x5725df=_0x79c3e5[_0x5221ef(0x13c)](_0x3cd6ce,t[_0x5221ef(0x2f4)][_0x5221ef(0x14d)]),_0x3e7fd0=_0x5725df==null||(_0x356b52=_0x5725df[_0x5221ef(0x37b)](_0x44c0c4))==null?void 0x0:_0x356b52[_0x5221ef(0x299)]();return()=>{const _0x54b4e2=_0x5221ef;_0x3e7fd0==null||_0x3e7fd0[_0x54b4e2(0x2c5)]();};},[_0x3cd6ce,_0x79c3e5,_0x58b88c]);let _0x4b0d8c=(0x0,u[_0x2a98cb(0x2ce)])(()=>(_0x4c0627['current']++,ne(_0x254f52)),[_0x254f52]),_0x5cf8bf=(0x0,u[_0x2a98cb(0x2ce)])(()=>_0x4b0d8c['slice'](0x0,_0x186b29),[_0x4b0d8c,_0x186b29]),_0x245ee2=_0x212fe3[_0x2a98cb(0x1c9)],_0x4dbb9b=Math[_0x2a98cb(0x297)](_0x2d5c8c*(0x31a/_0x245ee2['w'])*0xa)/0xa,[_0x5742aa,{wrapperStyle:_0x2cffd9,containerProps:_0x27fd1f}]=(0x0,r[_0x2a98cb(0x220)])(_0x5cf8bf,{'containerTarget':_0x2ca4dd,'itemHeight':_0x245ee2['h']*_0x4dbb9b+0x1c,'overscan':0x5}),_0xc6668b=()=>{const _0x21f79c=_0x2a98cb;_0x29d567[_0x21f79c(0x346)](W['id']);},_0x476c10=()=>{const _0x2f2bc0=_0x2a98cb;_0x225f2a(!0x0),_0x15f03c[_0x2f2bc0(0x245)]({'content':_0x582ba5['t'](_0x2f2bc0(0x337)),'type':c[_0x2f2bc0(0x2df)][_0x2f2bc0(0x29c)]}),setTimeout(()=>{const _0x14445e=_0x2f2bc0;_0x29d567[_0x14445e(0x346)](G['id']);},0x12c);},_0x44703e=(0x0,r[_0x2a98cb(0x352)])(()=>{_0x52a259(!0x0);});return(0x0,p[_0x2a98cb(0x382)])(_0x2a98cb(0x2c4),{'className':_0x2a98cb(0x160),'children':[_0x570e14&&(0x0,p[_0x2a98cb(0x2ca)])(ce,{'onClose':()=>_0x52a259(!0x1)}),_0x215ca9&&(0x0,p['jsx'])('div',{'className':_0x2a98cb(0x33b)}),(0x0,p[_0x2a98cb(0x382)])(_0x2a98cb(0x2c4),{'className':(0x0,c[_0x2a98cb(0x1a7)])(_0x2a98cb(0x261),c[_0x2a98cb(0x398)]),'children':[(0x0,p[_0x2a98cb(0x382)])(_0x2a98cb(0x2c4),{'className':'univer-ml-2\x20univer-text-base\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-white','children':[_0x582ba5['t'](_0x2a98cb(0x137)),_0x5cf8bf[_0x2a98cb(0x362)],_0x582ba5['t']('sheets-print.header.pages')]}),(0x0,p['jsxs'])(_0x2a98cb(0x2c4),{'className':_0x2a98cb(0x37d),'children':[(0x0,p[_0x2a98cb(0x2ca)])(c[_0x2a98cb(0x1da)],{'onClick':_0xc6668b,'children':_0x582ba5['t'](_0x2a98cb(0x1d8))}),(0x0,p['jsx'])(c[_0x2a98cb(0x1da)],{'variant':_0x2a98cb(0x272),'onClick':_0x476c10,'children':_0x582ba5['t']('sheets-print.header.next')})]})]}),(0x0,p[_0x2a98cb(0x382)])(_0x2a98cb(0x2c4),{'className':_0x2a98cb(0x3bd),'children':[(0x0,p[_0x2a98cb(0x382)])('div',{'className':_0x2a98cb(0x31e),'children':[(0x0,p[_0x2a98cb(0x2ca)])(_0x2a98cb(0x2c4),{'ref':_0x2ca4dd,'className':(0x0,c[_0x2a98cb(0x1a7)])(_0x2a98cb(0x2b1),c['scrollbarClassName']),..._0x27fd1f,'children':(0x0,p['jsx'])('div',{'style':_0x2cffd9,'children':_0x5742aa[_0x2a98cb(0x32e)](_0x467cac=>(0x0,p['jsx'])(le,{'config':_0x467cac[_0x2a98cb(0x1a4)],'page':_0x467cac[_0x2a98cb(0x1a4)][_0x2a98cb(0x1b1)],'previewScale':_0x2d5c8c},_0x4c0627[_0x2a98cb(0x33e)]+'-'+_0x467cac[_0x2a98cb(0x1a4)][_0x2a98cb(0x146)]['h']+'-'+_0x467cac[_0x2a98cb(0x1a4)][_0x2a98cb(0x146)]['w']+'-'+_0x467cac[_0x2a98cb(0x1a4)][_0x2a98cb(0x393)]+'-'+_0x467cac['data'][_0x2a98cb(0x246)]+'-'+_0x467cac[_0x2a98cb(0x1f8)]))},_0x4c0627[_0x2a98cb(0x33e)])}),!_0x1d0639&&(0x0,p['jsx'])(_0x2a98cb(0x2c4),{'className':'univer-my-4\x20univer-text-center','children':(0x0,p[_0x2a98cb(0x2ca)])('a',{'href':_0x582ba5['t'](_0x2a98cb(0x292)),'target':_0x2a98cb(0x25e),'rel':_0x2a98cb(0x396),'children':_0x582ba5['t']('sheets-print.limit.page')[_0x2a98cb(0x34b)]('{limit}',''+_0x186b29)})}),!_0x570e14&&(0x0,p[_0x2a98cb(0x382)])(_0x2a98cb(0x2c4),{'className':_0x2a98cb(0x178),'children':[(0x0,p[_0x2a98cb(0x2ca)])('div',{'className':_0x2a98cb(0x2e0),'onClick':()=>{const _0x22a57b=_0x2a98cb;_0x5d407e(Math[_0x22a57b(0x418)](_0x2d5c8c+de,0x2));},'children':(0x0,p[_0x2a98cb(0x2ca)])(l['ZoomIncreaseIcon'],{})}),(0x0,p[_0x2a98cb(0x2ca)])(_0x2a98cb(0x2c4),{'className':_0x2a98cb(0x2e0),'onClick':()=>{const _0x20592b=_0x2a98cb;_0x5d407e(Math[_0x20592b(0x19b)](_0x2d5c8c-de,0.5));},'children':(0x0,p['jsx'])(l[_0x2a98cb(0x17b)],{})})]})]}),(0x0,p['jsx'])(_0x2a98cb(0x2c4),{'className':_0x2a98cb(0x1f2),'children':(0x0,p[_0x2a98cb(0x2ca)])(ue,{'onShowFooterHeaderEditor':_0x44703e})})]})]});},U={'id':_0x9572bf(0x25b),'type':t[_0x9572bf(0x2ba)]['OPERATION'],'handler':_0x1b94dd=>{const _0x2a2a20=_0x9572bf;var _0x118954,_0x404e07;let _0x34e2dd=_0x1b94dd[_0x2a2a20(0x13c)](r[_0x2a2a20(0x26d)]),_0x27fd7b=_0x1b94dd[_0x2a2a20(0x13c)](t[_0x2a2a20(0x20a)]),_0x405168=_0x1b94dd[_0x2a2a20(0x13c)](t[_0x2a2a20(0x3f4)]),_0x308128=_0x1b94dd[_0x2a2a20(0x13c)](t[_0x2a2a20(0x21f)]),_0x3884b7=_0x1b94dd[_0x2a2a20(0x13c)](r[_0x2a2a20(0x24d)]),{ls:_0x7ef2b9,pbk:_0x27c837}=(_0x118954=_0x1b94dd[_0x2a2a20(0x13c)](t[_0x2a2a20(0x1f4)])[_0x2a2a20(0x22a)](e[_0x2a2a20(0x300)]))==null?{}:_0x118954;if(!ee(_0x7ef2b9,_0x27c837))return!0x1;_0x34e2dd[_0x2a2a20(0x2cc)]('PRINT_PLUGIN_PRINT_COMPONENT',fe);let _0x2eb587=_0x308128[_0x2a2a20(0x199)](t[_0x2a2a20(0x21d)][_0x2a2a20(0x3ac)])[_0x2a2a20(0x415)]();if(!((_0x404e07=_0x27fd7b['getPermissionPoint'](new n[(_0x2a2a20(0x31c))](_0x2eb587)['id']))!=null&&_0x404e07)){let _0x21fa9e={'id':g,'title':{'title':''},'children':{'label':_0x2a2a20(0x407),'errorMsg':_0x405168['t']('sheets-print.permission.printErr')},'width':0x140,'destroyOnClose':!0x0,'onClose':()=>_0x3884b7[_0x2a2a20(0x384)](g),'className':_0x2a2a20(0x40c)};throw _0x3884b7[_0x2a2a20(0x18c)](_0x21fa9e),Error(_0x2a2a20(0x2dc));}return _0x34e2dd[_0x2a2a20(0x18c)](),!0x0;}},W={'type':t['CommandType']['OPERATION'],'id':_0x9572bf(0x39a),'handler'(_0x3cb8b8){const _0x532264=_0x9572bf;let _0x4ef3b5=_0x3cb8b8[_0x532264(0x13c)](r[_0x532264(0x26d)]),_0x60f75a=_0x3cb8b8[_0x532264(0x13c)](O);return _0x4ef3b5[_0x532264(0x384)](),_0x60f75a[_0x532264(0x3a7)](),!0x0;}},G={'type':t[_0x9572bf(0x2ba)][_0x9572bf(0x27b)],'id':_0x9572bf(0x23d),'handler'(){return!0x0;}},K={'id':_0x9572bf(0x170),'type':t[_0x9572bf(0x2ba)][_0x9572bf(0x173)],'handler'(_0x3164c9,_0x2a5ae8){const _0x14640c=_0x9572bf;if(!_0x2a5ae8)return!0x1;let _0xd88ba6=_0x3164c9['get'](t[_0x14640c(0x2ad)]),_0x2bba61=_0x3164c9[_0x14640c(0x13c)](O);return _0x2bba61[_0x14640c(0x3d6)](_0x2a5ae8['layoutConfig']),_0x2bba61[_0x14640c(0x142)](_0x2a5ae8[_0x14640c(0x280)]),_0xd88ba6[_0x14640c(0x319)](G['id']);}};let pe=0x0,q=class{constructor(_0x5b1c19,_0xcf7b42,_0xd95c5b,_0x2ad0b5,_0x431742){const _0xff7df1=_0x9572bf;this[_0xff7df1(0x3d1)]=_0x5b1c19,this[_0xff7df1(0x2e7)]=_0xcf7b42,this[_0xff7df1(0x39e)]=_0xd95c5b,this['_renderManagerService']=_0x2ad0b5,this[_0xff7df1(0x268)]=_0x431742;}async['print'](_0x2d740f,_0x361d62){const _0x4a054f=_0x9572bf;var _0x3381b6;let _0x5173c2=ne(_0x2d740f),{ls:_0x286b94,pbk:_0x4727fd}=(_0x3381b6=this[_0x4a054f(0x3d1)][_0x4a054f(0x13c)](t[_0x4a054f(0x1f4)])[_0x4a054f(0x22a)](e[_0x4a054f(0x300)]))==null?{}:_0x3381b6,_0x56be69=(0x0,e[_0x4a054f(0x279)])()?0x1/0x0:N(0x3,_0x286b94,_0x4727fd)['page'];_0x5173c2=_0x5173c2[_0x4a054f(0x1de)](0x0,_0x56be69);let _0x26e8dc=document['createElement'](_0x4a054f(0x2c4));_0x26e8dc[_0x4a054f(0x14f)]=i[_0x4a054f(0x223)];let _0x186f6d=_0x5173c2[_0x4a054f(0x32e)](_0x13adfd=>{const _0x519a10=_0x4a054f;let _0x33cb2c=new V(this[_0x519a10(0x3d1)],_0x13adfd,_0x361d62,!0x1);return _0x33cb2c[_0x519a10(0x2c0)][_0x519a10(0x14f)]=i[_0x519a10(0x196)],_0x33cb2c;});_0x186f6d[_0x4a054f(0x307)](_0xa0975a=>{const _0x3e69f3=_0x4a054f;_0x26e8dc[_0x3e69f3(0x37c)](_0xa0975a[_0x3e69f3(0x2c0)]),_0xa0975a[_0x3e69f3(0x2c0)][_0x3e69f3(0x37c)](_0xa0975a[_0x3e69f3(0x3a2)]),_0xa0975a[_0x3e69f3(0x1b4)](),_0xa0975a[_0x3e69f3(0x254)](!0x1);});let _0x50cd98=this['_sheetPrintManagerService']['layoutConfig'],_0x1d1ad8=t[_0x4a054f(0x1b0)][_0x50cd98['paperSize']],_0xe5d7fa=(0x0,i[_0x4a054f(0x1d4)])(_0x1d1ad8[_0x4a054f(0x1d2)],_0x1d1ad8[_0x4a054f(0x373)],_0x50cd98[_0x4a054f(0x188)]);return document['body']['appendChild'](_0xe5d7fa),document['body'][_0x4a054f(0x37c)](_0x26e8dc),new Promise(_0x366b33=>{setTimeout(()=>{const _0x4017b4=_0x1d24;window[_0x4017b4(0x3c9)]=()=>{_0x186f6d['forEach'](_0x2bb41c=>{const _0x3254f1=_0x1d24;_0x2bb41c[_0x3254f1(0x413)](),_0x2bb41c['clearMemory']();});},window[_0x4017b4(0x35d)]=()=>{const _0x4002c5=_0x4017b4;_0x186f6d[_0x4002c5(0x307)](_0xcca9fa=>{const _0x55b2d6=_0x4002c5;_0xcca9fa[_0x55b2d6(0x2c5)]();}),document[_0x4002c5(0x241)][_0x4002c5(0x336)](_0x26e8dc),document[_0x4002c5(0x241)][_0x4002c5(0x336)](_0xe5d7fa),this[_0x4002c5(0x2e7)][_0x4002c5(0x384)](),this[_0x4002c5(0x39e)][_0x4002c5(0x3a7)](),this[_0x4002c5(0x268)][_0x4002c5(0x3e1)](),_0x186f6d=[],_0x366b33(!0x0);},window[_0x4017b4(0x410)]();},0x64);});}['getRangeImage'](_0x4db37a,_0x25c4a8,_0xd614d8,_0x189c61){const _0x1e7ca9=_0x9572bf;if(!P(this[_0x1e7ca9(0x3d1)])){let _0x28fae9=(Date[_0x1e7ca9(0x311)]()-pe)/0x3e8;if(pe=Date[_0x1e7ca9(0x311)](),_0x28fae9<=0x1e)return!0x1;}let _0x2e16d2=this[_0x1e7ca9(0x2f7)]['getRenderById'](_0x4db37a);if(!_0x2e16d2)return!0x1;let _0x14fae8=_0x2e16d2[_0x1e7ca9(0x3b2)](o[_0x1e7ca9(0x3f1)])[_0x1e7ca9(0x164)](_0x25c4a8);if(!_0x14fae8)return!0x1;let _0x592076=_0x14fae8[_0x1e7ca9(0x25a)][_0xd614d8[_0x1e7ca9(0x344)]]-(_0x14fae8['columnWidthAccumulation'][_0xd614d8[_0x1e7ca9(0x159)]-0x1]||0x0),_0x2f6f45=_0x14fae8['rowHeightAccumulation'][_0xd614d8[_0x1e7ca9(0x3c6)]]-(_0x14fae8[_0x1e7ca9(0x3c8)][_0xd614d8[_0x1e7ca9(0x20d)]-0x1]||0x0),_0x41cfe4=_0x14fae8[_0x1e7ca9(0x289)],_0x5bf7de=_0x14fae8[_0x1e7ca9(0x1f5)],_0x2519a5=1.5,_0x4f284f=new V(this[_0x1e7ca9(0x3d1)],{'unitId':_0x4db37a,'subUnitId':_0x25c4a8,'range':_0xd614d8,'freeze':j,'scale':_0x2519a5,'page':0x1,'pageSize':_0x189c61?{'w':(_0x592076+_0x5bf7de)*_0x2519a5+0x1,'h':(_0x2f6f45+_0x41cfe4)*_0x2519a5+0x1}:{'w':_0x592076*_0x2519a5+0x1,'h':_0x2f6f45*_0x2519a5+0x1},'margin':i[_0x1e7ca9(0x3ba)][i[_0x1e7ca9(0x18d)][_0x1e7ca9(0x2d8)]],'pageTotal':0x1,'sheetPageTotal':0x1,'sheetPage':0x1,'includeHeaderDimensions':_0x189c61==null?!0x1:_0x189c61},{'gridlines':!0x0,'hAlign':i[_0x1e7ca9(0x1e1)][_0x1e7ca9(0x342)],'vAlign':i['PrintAlign'][_0x1e7ca9(0x342)],'headerFooter':[],'headerFooterSetting':x,'isCustomHeaderFooter':!0x1},!0x1),_0x5c1f97=document[_0x1e7ca9(0x39f)](_0x1e7ca9(0x2c4));_0x5c1f97['className']=i[_0x1e7ca9(0x223)],_0x4f284f['container'][_0x1e7ca9(0x14f)]=i[_0x1e7ca9(0x196)],_0x5c1f97[_0x1e7ca9(0x37c)](_0x4f284f[_0x1e7ca9(0x2c0)]),document[_0x1e7ca9(0x241)][_0x1e7ca9(0x37c)](_0x5c1f97),_0x4f284f[_0x1e7ca9(0x1b4)](),_0x4f284f[_0x1e7ca9(0x413)]();let _0x59b86f=_0x4f284f['getImage']();return _0x4f284f[_0x1e7ca9(0x2c5)](),document[_0x1e7ca9(0x241)][_0x1e7ca9(0x336)](_0x5c1f97),_0x59b86f;}};q=D([E(0x0,(0x0,t[_0x9572bf(0x395)])(t[_0x9572bf(0x191)])),E(0x1,r['IZenZoneService']),E(0x2,O),E(0x3,a[_0x9572bf(0x358)]),E(0x4,r[_0x9572bf(0x387)])],q);function me(_0x41d732,_0x5e71c3){const _0x2b50e3=_0x9572bf;let _0x1158da=atob(_0x41d732[_0x2b50e3(0x1ce)](',')[0x1]),_0x1ad99e=new ArrayBuffer(_0x1158da[_0x2b50e3(0x362)]),_0x4ef0be=new Uint8Array(_0x1ad99e);for(let _0x2c6990=0x0;_0x2c6990<_0x1158da[_0x2b50e3(0x362)];_0x2c6990++)_0x4ef0be[_0x2c6990]=_0x1158da[_0x2b50e3(0x38e)](_0x2c6990);return new Blob([_0x1ad99e],{'type':_0x5e71c3});}const J={'type':t['CommandType'][_0x9572bf(0x27b)],'id':_0x9572bf(0x3f6),async 'handler'(_0x269671){const _0x37dd51=_0x9572bf;var _0x40811c;let _0x33c66b=_0x269671[_0x37dd51(0x13c)](n[_0x37dd51(0x239)]),_0x17c542=(_0x40811c=_0x33c66b[_0x37dd51(0x166)]())==null?void 0x0:_0x40811c[0x0],_0x4b7a91=_0x269671[_0x37dd51(0x13c)](q),_0x17dd67=_0x33c66b[_0x37dd51(0x233)](),_0x30b3b1=_0x269671['get'](r[_0x37dd51(0x387)]),_0x51ac05=_0x269671[_0x37dd51(0x13c)](t[_0x37dd51(0x21f)]),_0x2dfbba=_0x269671[_0x37dd51(0x13c)](t['LocaleService']);if(!_0x17c542||!_0x17dd67)return!0x1;let _0x420526=(0x0,n[_0x37dd51(0x204)])(_0x51ac05);if(!_0x420526)return!0x1;let {unitId:_0x5369d4,subUnitId:_0x3ee645}=_0x420526,_0x54fc27=_0x4b7a91[_0x37dd51(0x19f)](_0x5369d4,_0x3ee645,_0x17c542[_0x37dd51(0x1c2)]);if(!_0x54fc27)return!0x1;try{return await navigator[_0x37dd51(0x385)]['write']([new ClipboardItem({'image/png':me(_0x54fc27,_0x37dd51(0x161))})]),_0x30b3b1[_0x37dd51(0x245)]({'type':c['MessageType'][_0x37dd51(0x13e)],'content':_0x2dfbba['t'](_0x37dd51(0x3eb))}),!0x0;}catch{return _0x30b3b1[_0x37dd51(0x245)]({'type':c['MessageType'][_0x37dd51(0x2fa)],'content':_0x2dfbba['t'](_0x37dd51(0x3a4))}),!0x1;}}};var he=_0x9572bf(0x3fd),ge='0.25.1';const Y=(0x0,t['createIdentifier'])('univer-pro.print-grid.service');var _e=class extends t[_0x9572bf(0x3f0)]{constructor(..._0x9adecd){const _0x3ab34c=_0x9572bf;super(..._0x9adecd),T(this,_0x3ab34c(0x33f),new s[(_0x3ab34c(0x169))](!0x1)),T(this,_0x3ab34c(0x1ff),this[_0x3ab34c(0x33f)]);}get[_0x9572bf(0x1c3)](){const _0x175bdb=_0x9572bf;return this[_0x175bdb(0x33f)][_0x175bdb(0x2cb)];}[_0x9572bf(0x245)](){const _0x2fff47=_0x9572bf;this[_0x2fff47(0x33f)]['next'](!0x0);}[_0x9572bf(0x323)](){const _0xd94d74=_0x9572bf;this[_0xd94d74(0x33f)][_0xd94d74(0x36f)](!0x1);}[_0x9572bf(0x2c5)](){const _0xd238fe=_0x9572bf;super[_0xd238fe(0x2c5)](),this[_0xd238fe(0x33f)][_0xd238fe(0x236)]();}};const ve=_0x9572bf(0x258),X={'id':_0x9572bf(0x397),'type':t[_0x9572bf(0x2ba)][_0x9572bf(0x27b)],'handler':_0x3f377d=>{const _0x34bcda=_0x9572bf;let _0x195459=_0x3f377d[_0x34bcda(0x13c)](r[_0x34bcda(0x331)]),_0x121c44=_0x3f377d[_0x34bcda(0x13c)](Y),_0x306cf3=_0x3f377d['get'](O),_0x1c5e32=_0x3f377d[_0x34bcda(0x13c)](t['LocaleService']);return _0x306cf3[_0x34bcda(0x367)](),_0x121c44[_0x34bcda(0x245)](),_0x195459[_0x34bcda(0x18c)]({'header':{'title':_0x1c5e32['t'](_0x34bcda(0x30e))},'children':{'label':ve},'onClose':()=>{},'width':0x138}),!0x0;}},ye={'id':'sheet.operation.close-print-grid-sidebar','type':t[_0x9572bf(0x2ba)][_0x9572bf(0x27b)],'handler':_0x2cb305=>{const _0x41763c=_0x9572bf;let _0x9993f7=_0x2cb305['get'](r['ISidebarService']);return _0x2cb305[_0x41763c(0x13c)](Y)[_0x41763c(0x323)](),_0x9993f7[_0x41763c(0x384)](),!0x0;}},be=(0x0,u[_0x9572bf(0x1ca)])(function(){const _0x272171=_0x9572bf;var _0x213bf6,_0x478369,_0x70fdbc,_0x465b66;let _0x175f29=(0x0,r['useDependency'])(O),_0x99d637=(0x0,r[_0x272171(0x355)])(t[_0x272171(0x2ad)]),_0x4244df=(0x0,r[_0x272171(0x2ff)])(_0x175f29[_0x272171(0x1eb)],_0x175f29[_0x272171(0x3d8)]),_0xe7bdbd=(0x0,r[_0x272171(0x355)])(t[_0x272171(0x3f4)]),_0x4edf23=(0x0,r[_0x272171(0x355)])(t[_0x272171(0x21f)])[_0x272171(0x199)](t[_0x272171(0x21d)][_0x272171(0x3ac)]);if(!_0x4edf23)return console[_0x272171(0x291)](_0x272171(0x1a5)),null;let _0x27b066=_0x4edf23[_0x272171(0x1c0)]();if(!_0x27b066)return console[_0x272171(0x291)]('No\x20active\x20sheet\x20found'),null;let _0x1196e5=(_0x263fff,_0x37d3b9)=>{const _0x4bc84c=_0x272171;let _0x121eac=Math[_0x4bc84c(0x19b)](0x0,_0x37d3b9||0x0),_0x18f881=_0x4244df['marginCustom']||{'top':0x0,'left':0x0,'right':0x0,'bottom':0x0};_0x175f29[_0x4bc84c(0x15b)]({'marginCustom':{..._0x18f881,[_0x263fff]:_0x121eac}});},_0x1cc9d8=_0x27b066['getFreeze'](),_0x5c72ec=_0x1cc9d8[_0x272171(0x21e)]<=0x0,_0x279893=_0x1cc9d8[_0x272171(0x3cd)]<=0x0,_0x3396e0=()=>{const _0x4b58b4=_0x272171;_0x99d637[_0x4b58b4(0x346)](ye['id']);};return(0x0,p[_0x272171(0x382)])(_0x272171(0x2c4),{'className':(0x0,c[_0x272171(0x1a7)])(_0x272171(0x1ed),c[_0x272171(0x386)]),'children':[(0x0,p[_0x272171(0x382)])(_0x272171(0x2c4),{'className':_0x272171(0x234),'children':[(0x0,p[_0x272171(0x2ca)])(c[_0x272171(0x2cf)],{'label':_0xe7bdbd['t'](_0x272171(0x286)),'children':(0x0,p[_0x272171(0x2ca)])(c[_0x272171(0x3dd)],{'className':_0x272171(0x1ad),'value':''+_0x4244df[_0x272171(0x2a3)],'onChange':_0x218535=>{const _0x2de978=_0x272171;_0x175f29[_0x2de978(0x15b)]({'area':_0x218535});},'options':[{'label':_0xe7bdbd['t']('sheets-print.area.currentSheet'),'value':'CurrentSheet'},{'label':_0xe7bdbd['t']('sheets-print.area.currentSelection'),'value':'CurrentSelection'}]})}),(0x0,p[_0x272171(0x2ca)])(c[_0x272171(0x2cf)],{'label':_0xe7bdbd['t'](_0x272171(0x18e)),'children':(0x0,p['jsx'])(c[_0x272171(0x3dd)],{'className':'univer-w-full','value':_0x4244df[_0x272171(0x1c9)],'options':[{'label':_0xe7bdbd['t'](_0x272171(0x38d)),'value':t[_0x272171(0x235)][_0x272171(0x2a2)]},{'label':_0xe7bdbd['t'](_0x272171(0x2b8)),'value':t['PaperType']['Tabloid']},{'label':_0xe7bdbd['t']('sheets-print.size.legal'),'value':t[_0x272171(0x235)]['Legal']},{'label':_0xe7bdbd['t'](_0x272171(0x3fe)),'value':t[_0x272171(0x235)]['Statement']},{'label':_0xe7bdbd['t'](_0x272171(0x1c6)),'value':t[_0x272171(0x235)][_0x272171(0x30f)]},{'label':_0xe7bdbd['t'](_0x272171(0x16e)),'value':t['PaperType'][_0x272171(0x34f)]},{'label':_0xe7bdbd['t']('sheets-print.size.a3'),'value':t[_0x272171(0x235)]['A3']},{'label':_0xe7bdbd['t'](_0x272171(0x256)),'value':t['PaperType']['A4']},{'label':_0xe7bdbd['t']('sheets-print.size.a5'),'value':t['PaperType']['A5']},{'label':_0xe7bdbd['t'](_0x272171(0x321)),'value':t[_0x272171(0x235)]['B4']},{'label':_0xe7bdbd['t'](_0x272171(0x389)),'value':t[_0x272171(0x235)]['B5']}],'onChange':_0x3cf3b1=>{const _0x230c11=_0x272171;_0x175f29[_0x230c11(0x15b)]({'paperSize':_0x3cf3b1});}})}),(0x0,p[_0x272171(0x2ca)])(c['FormLayout'],{'label':_0xe7bdbd['t'](_0x272171(0x3e2)),'children':(0x0,p[_0x272171(0x2ca)])(c[_0x272171(0x3dd)],{'className':_0x272171(0x1ad),'value':_0x4244df[_0x272171(0x231)],'options':[{'label':_0xe7bdbd['t'](_0x272171(0x17f)),'value':i[_0x272171(0x18d)]['Normal']},{'label':_0xe7bdbd['t'](_0x272171(0x2d3)),'value':i[_0x272171(0x18d)][_0x272171(0x29f)]},{'label':_0xe7bdbd['t'](_0x272171(0x1bb)),'value':i['PrintPaperMargin'][_0x272171(0x24f)]},{'label':_0xe7bdbd['t'](_0x272171(0x26f)),'value':i[_0x272171(0x18d)][_0x272171(0x1fd)]}],'onChange':_0x208950=>{const _0x1b7531=_0x272171;let _0x1c7751=i['PaperMarginMap'][_0x4244df['margin']];_0x175f29[_0x1b7531(0x15b)]({'margin':_0x208950,'marginCustom':_0x208950===i['PrintPaperMargin'][_0x1b7531(0x1fd)]?_0x1c7751:i[_0x1b7531(0x3ba)][_0x208950]});}})}),_0x4244df[_0x272171(0x231)]===i[_0x272171(0x18d)][_0x272171(0x1fd)]&&(0x0,p[_0x272171(0x2ca)])(c[_0x272171(0x2cf)],{'children':(0x0,p[_0x272171(0x382)])(_0x272171(0x2c4),{'className':_0x272171(0x217),'children':[(0x0,p[_0x272171(0x382)])(_0x272171(0x2c4),{'children':[(0x0,p[_0x272171(0x2ca)])(_0x272171(0x1e3),{'className':_0x272171(0x394),'children':_0xe7bdbd['t'](_0x272171(0x1ba))}),(0x0,p[_0x272171(0x2ca)])(c[_0x272171(0x40b)],{'type':_0x272171(0x28c),'value':String(((_0x213bf6=_0x4244df[_0x272171(0x29d)])==null?void 0x0:_0x213bf6[_0x272171(0x1ee)])||0x0),'onChange':_0x348707=>_0x1196e5(_0x272171(0x1ee),Number(_0x348707))})]}),(0x0,p[_0x272171(0x382)])(_0x272171(0x2c4),{'children':[(0x0,p['jsx'])(_0x272171(0x1e3),{'className':_0x272171(0x394),'children':_0xe7bdbd['t'](_0x272171(0x13d))}),(0x0,p['jsx'])(c[_0x272171(0x40b)],{'type':_0x272171(0x28c),'value':String(((_0x478369=_0x4244df[_0x272171(0x29d)])==null?void 0x0:_0x478369[_0x272171(0x412)])||0x0),'onChange':_0x5a46c9=>_0x1196e5(_0x272171(0x412),Number(_0x5a46c9))})]}),(0x0,p['jsxs'])(_0x272171(0x2c4),{'children':[(0x0,p[_0x272171(0x2ca)])(_0x272171(0x1e3),{'className':_0x272171(0x394),'children':_0xe7bdbd['t'](_0x272171(0x2f2))}),(0x0,p['jsx'])(c[_0x272171(0x40b)],{'type':'number','value':String(((_0x70fdbc=_0x4244df['marginCustom'])==null?void 0x0:_0x70fdbc[_0x272171(0x408)])||0x0),'onChange':_0x15c1ea=>_0x1196e5(_0x272171(0x408),Number(_0x15c1ea))})]}),(0x0,p[_0x272171(0x382)])(_0x272171(0x2c4),{'children':[(0x0,p['jsx'])(_0x272171(0x1e3),{'className':'univer-mb-1\x20univer-block\x20univer-text-xs\x20univer-text-gray-500','children':_0xe7bdbd['t'](_0x272171(0x371))}),(0x0,p['jsx'])(c[_0x272171(0x40b)],{'type':_0x272171(0x28c),'value':String(((_0x465b66=_0x4244df[_0x272171(0x29d)])==null?void 0x0:_0x465b66[_0x272171(0x3cf)])||0x0),'onChange':_0x50f439=>_0x1196e5(_0x272171(0x3cf),Number(_0x50f439))})]})]})}),(0x0,p[_0x272171(0x2ca)])(c['FormLayout'],{'label':_0xe7bdbd['t'](_0x272171(0x20b)),'children':(0x0,p[_0x272171(0x382)])(c[_0x272171(0x1ef)],{'value':_0x4244df[_0x272171(0x188)],'onChange':_0x8961ab=>{const _0x27862b=_0x272171;_0x175f29[_0x27862b(0x15b)]({'direction':_0x8961ab});},'children':[(0x0,p['jsx'])(c['Radio'],{'value':i[_0x272171(0x197)]['Portrait'],'children':_0xe7bdbd['t']('sheets-print.orientation.portrait')}),(0x0,p['jsx'])(c[_0x272171(0x1e9)],{'value':i[_0x272171(0x197)][_0x272171(0x2a5)],'children':_0xe7bdbd['t']('sheets-print.orientation.landscape')})]})}),(0x0,p[_0x272171(0x2ca)])(c[_0x272171(0x2cf)],{'collapsable':!0x0,'label':_0xe7bdbd['t'](_0x272171(0x263)),'children':(0x0,p['jsxs'])(c[_0x272171(0x28a)],{'direction':_0x272171(0x1cf),'value':_0x4244df[_0x272171(0x3ef)],'onChange':_0xcc8550=>{_0x175f29['updateLayoutConfig']({'freeze':_0xcc8550});},'children':[(0x0,p[_0x272171(0x2ca)])(c[_0x272171(0x3bc)],{'disabled':_0x279893,'value':_0x272171(0x2bc),'children':_0xe7bdbd['t'](_0x272171(0x24b))}),(0x0,p[_0x272171(0x2ca)])(c[_0x272171(0x3bc)],{'disabled':_0x5c72ec,'value':_0x272171(0x39b),'children':_0xe7bdbd['t'](_0x272171(0x23f))})]})}),(0x0,p[_0x272171(0x382)])(c[_0x272171(0x2cf)],{'collapsable':!0x0,'defaultCollapsed':!0x0,'label':_0xe7bdbd['t'](_0x272171(0x267)),'children':[(0x0,p['jsx'])(c[_0x272171(0x2cf)],{'className':_0x272171(0x240),'label':_0xe7bdbd['t'](_0x272171(0x313)),'children':(0x0,p[_0x272171(0x2ca)])(c[_0x272171(0x40b)],{'value':_0x4244df[_0x272171(0x181)]===0x1/0x0?'':''+_0x4244df[_0x272171(0x181)],'onChange':_0x341dc0=>{const _0x480398=_0x272171;_0x175f29['updateLayoutConfig']({'maxRowsEachPage':!_0x341dc0||Number[_0x480398(0x1d9)](Number(_0x341dc0))?0x1/0x0:Number(_0x341dc0)});}})}),(0x0,p[_0x272171(0x2ca)])(c[_0x272171(0x2cf)],{'label':_0xe7bdbd['t'](_0x272171(0x1b8)),'children':(0x0,p[_0x272171(0x2ca)])(c['Input'],{'value':_0x4244df[_0x272171(0x402)]===0x1/0x0?'':''+_0x4244df[_0x272171(0x402)],'onChange':_0x49888a=>{const _0x3e11f5=_0x272171;_0x175f29[_0x3e11f5(0x15b)]({'maxColumnsEachPage':!_0x49888a||Number['isNaN'](Number(_0x49888a))?0x1/0x0:Number(_0x49888a)});}})})]})]}),(0x0,p[_0x272171(0x382)])(_0x272171(0x2c4),{'className':_0x272171(0x1e0),'children':[(0x0,p[_0x272171(0x2ca)])(c[_0x272171(0x1da)],{'type':'submit','variant':_0x272171(0x272),'size':_0x272171(0x24e),'className':_0x272171(0x1ad),'onClick':()=>{_0x99d637['executeCommand'](U['id']),_0x3396e0();},'children':_0xe7bdbd['t']('sheets-print.menu')}),(0x0,p[_0x272171(0x2ca)])(c['Button'],{'type':_0x272171(0x1d3),'size':_0x272171(0x24e),'className':_0x272171(0x1ad),'onClick':_0x3396e0,'children':_0xe7bdbd['t']('sheets-print.grid.closeAndHide')})]})]});}),xe=[0x6,0x4];var Z=class e extends a['SheetExtension']{constructor(..._0x19ee98){const _0xff4b63=_0x9572bf;super(..._0x19ee98),T(this,_0xff4b63(0x1f9),_0xff4b63(0x314)),T(this,_0xff4b63(0x232),0x3d);}[_0x9572bf(0x2d0)](_0x47d109,_0x2ff92c,_0x1d8e97,_0x1687f6){const _0x33c396=_0x9572bf;if(_0x47d109[_0x33c396(0x35f)]===_0x33c396(0x153)||!e['printGridService']||!e[_0x33c396(0x2a6)]||!e['printGridService'][_0x33c396(0x1c3)])return;let {worksheet:_0x370267}=_0x1d8e97;if(!_0x370267)return;let _0x1abf74=e[_0x33c396(0x2a6)]['layoutInfos'],_0x555d2e=_0x370267[_0x33c396(0x1a0)](),_0x17d37d=_0x1abf74[_0x33c396(0x174)](_0x339ee3=>_0x339ee3[_0x33c396(0x246)]===_0x555d2e);_0x17d37d&&this[_0x33c396(0x226)](_0x47d109,_0x1d8e97,_0x17d37d);}['_drawPrintGrid'](_0x5898e4,_0x1195ad,_0x54797d){const _0x405377=_0x9572bf;let {pages:_0x284357}=_0x54797d,{rowHeightAccumulation:_0x5c2a27,columnWidthAccumulation:_0x2293c3}=_0x1195ad;_0x5898e4[_0x405377(0x247)](),_0x5898e4[_0x405377(0x1fc)]=_0x405377(0x1e8),_0x5898e4['lineWidth']=0x2,_0x5898e4[_0x405377(0x390)](xe);let _0x2fd2e6=new Set(),_0x8de1c7=new Set();_0x284357['forEach'](_0x4eb7fb=>{const _0x3582f3=_0x405377;let {startRow:_0x3e4412,endRow:_0x1f61f1,startColumn:_0x46b07c,endColumn:_0x510ee5}=_0x4eb7fb,_0x43b28f=_0x3e4412===0x0?0x0:_0x5c2a27[_0x3e4412-0x1],_0x3b8574=_0x5c2a27[_0x1f61f1],_0x2609d2=_0x46b07c===0x0?0x0:_0x2293c3[_0x46b07c-0x1],_0x4299be=_0x2293c3[_0x510ee5];_0x2fd2e6[_0x3582f3(0x13b)](_0x43b28f),_0x2fd2e6[_0x3582f3(0x13b)](_0x3b8574),_0x8de1c7[_0x3582f3(0x13b)](_0x2609d2),_0x8de1c7['add'](_0x4299be);});let _0x47dccc=Math[_0x405377(0x418)](...Array[_0x405377(0x28d)](_0x8de1c7)),_0x539a35=Math['max'](...Array[_0x405377(0x28d)](_0x8de1c7)),_0x142b0b=Math[_0x405377(0x418)](...Array[_0x405377(0x28d)](_0x2fd2e6)),_0x10ab5=Math[_0x405377(0x19b)](...Array[_0x405377(0x28d)](_0x2fd2e6));_0x2fd2e6['forEach'](_0x2770ee=>{const _0x52e1b9=_0x405377;_0x5898e4[_0x52e1b9(0x16d)](),_0x5898e4[_0x52e1b9(0x12f)](_0x47dccc,_0x2770ee),_0x5898e4[_0x52e1b9(0x262)](_0x539a35,_0x2770ee),_0x5898e4[_0x52e1b9(0x147)]();}),_0x8de1c7['forEach'](_0x4e209e=>{const _0x4162ba=_0x405377;_0x5898e4[_0x4162ba(0x16d)](),_0x5898e4[_0x4162ba(0x12f)](_0x4e209e,_0x142b0b),_0x5898e4[_0x4162ba(0x262)](_0x4e209e,_0x10ab5),_0x5898e4[_0x4162ba(0x147)]();}),_0x5898e4['restore']();}};T(Z,_0x9572bf(0x1fe),null),T(Z,_0x9572bf(0x2a6),null),a[_0x9572bf(0x179)]['add'](Z);const Se=_0x9572bf(0x414);function Ce(_0x586f8d){const _0x1062c5=_0x9572bf;return{'id':Se,'type':r[_0x1062c5(0x133)][_0x1062c5(0x22f)],'icon':_0x1062c5(0x2da),'tooltip':_0x1062c5(0x301),'hidden$':(0x0,r[_0x1062c5(0x3da)])(_0x586f8d,t['UniverInstanceType'][_0x1062c5(0x3ac)]),'disabled$':(0x0,o[_0x1062c5(0x3a1)])(_0x586f8d,{'workbookTypes':[n[_0x1062c5(0x31c)]]})};}function we(_0x3d7c8c){const _0x5e7334=_0x9572bf;return{'id':U['id'],'type':r[_0x5e7334(0x133)][_0x5e7334(0x19c)],'title':_0x5e7334(0x301)};}function Te(_0x53b20f){const _0x177bca=_0x9572bf;return{'id':J['id'],'type':r[_0x177bca(0x133)][_0x177bca(0x19c)],'title':_0x177bca(0x1e5),'icon':_0x177bca(0x1b9),'tooltip':_0x177bca(0x1e5),'hidden$':(0x0,r[_0x177bca(0x3da)])(_0x53b20f,t[_0x177bca(0x21d)][_0x177bca(0x3ac)]),'disabled$':(0x0,o['getCurrentRangeDisable$'])(_0x53b20f,{'workbookTypes':[n['WorkbookPrintPermission'],n['WorkbookCopyPermission'],n[_0x177bca(0x35a)]],'worksheetTypes':[n[_0x177bca(0x194)],n[_0x177bca(0x3bb)]],'rangeTypes':[n[_0x177bca(0x203)]]})};}function Ee(_0x2b56da){const _0x1c9579=_0x9572bf;return{'id':X['id'],'type':r[_0x1c9579(0x133)][_0x1c9579(0x19c)],'title':'sheets-print.grid.title'};}const De={[r[_0x9572bf(0x265)][_0x9572bf(0x322)]]:{[Se]:{'order':0.1,'menuItemFactory':Ce,[U['id']]:{'order':0x0,'menuItemFactory':we},[X['id']]:{'order':0x1,'menuItemFactory':Ee}}},[r[_0x9572bf(0x3dc)][_0x9572bf(0x2c6)]]:{[r['ContextMenuGroup']['OTHERS']]:{[J['id']]:{'order':2.1,'menuItemFactory':Te}}}},Oe={'id':U['id'],'binding':r['KeyCode']['P']|r[_0x9572bf(0x16b)][_0x9572bf(0x229)],'preconditions':o[_0x9572bf(0x274)]};let Q=class extends t['Disposable']{constructor(_0x13384e,_0x1759fc,_0x42e453,_0x2f6a27,_0x190db7,_0x362bd8,_0x3261bf,_0xbae365,_0x73576,_0x298581){const _0xabea6c=_0x9572bf;super(),this[_0xabea6c(0x2ab)]=_0x13384e,this[_0xabea6c(0x411)]=_0x1759fc,this['_sheetPrintManagerService']=_0x42e453,this[_0xabea6c(0x356)]=_0x2f6a27,this[_0xabea6c(0x35b)]=_0x190db7,this[_0xabea6c(0x29a)]=_0x362bd8,this[_0xabea6c(0x2e3)]=_0x3261bf,this[_0xabea6c(0x3d1)]=_0xbae365,this['_univerInstanceService']=_0x73576,this['_renderManagerService']=_0x298581,this[_0xabea6c(0x351)]();}[_0x9572bf(0x351)](){const _0x44a86c=_0x9572bf;this[_0x44a86c(0x368)](),this[_0x44a86c(0x136)](),this[_0x44a86c(0x339)](),this['_initShortcuts'](),this['_initCommandListener'](),this[_0x44a86c(0x1b5)](),this[_0x44a86c(0x248)](),this['_initMutationListener']();}[_0x9572bf(0x368)](){const _0x205970=_0x9572bf;[U,W,G,J,K,X,ye][_0x205970(0x307)](_0xcb98a4=>this[_0x205970(0x411)][_0x205970(0x15a)](_0xcb98a4));}[_0x9572bf(0x136)](){const _0x7fa567=_0x9572bf;[['PrintIcon',l[_0x7fa567(0x2da)]]][_0x7fa567(0x307)](([_0x5559be,_0x463d22])=>{const _0x43a093=_0x7fa567;this[_0x43a093(0x35b)][_0x43a093(0x163)](_0x5559be,_0x463d22);}),this[_0x7fa567(0x35b)]['register'](ve,be);}[_0x9572bf(0x3a6)](){const _0x50805d=_0x9572bf;[Oe][_0x50805d(0x307)](_0x3954c2=>{const _0x1766f3=_0x50805d;this[_0x1766f3(0x2e3)][_0x1766f3(0x2f6)](_0x3954c2);});}[_0x9572bf(0x339)](){const _0xd2c0af=_0x9572bf;this['_menuManagerService'][_0xd2c0af(0x138)](De);}[_0x9572bf(0x1b5)](){const _0x382bbf=_0x9572bf;this[_0x382bbf(0x3df)](this['_printService']['visible$']['subscribe'](_0x4d8abb=>{const _0x3ea36d=_0x382bbf;_0x4d8abb&&this['_sheetPrintManagerService'][_0x3ea36d(0x367)]();}));}[_0x9572bf(0x3a8)](){const _0x59a134=_0x9572bf;let _0x562f78=this[_0x59a134(0x39e)][_0x59a134(0x38b)],_0x36e1fb=this[_0x59a134(0x39e)][_0x59a134(0x280)];return this['_sheetPrintClientService'][_0x59a134(0x410)](_0x562f78,_0x36e1fb);}[_0x9572bf(0x1cc)](){const _0xa61392=_0x9572bf;this['disposeWithMe'](this[_0xa61392(0x411)][_0xa61392(0x3e6)](_0x24fe9c=>{_0x24fe9c['id']===G['id']&&this['_print']();}));}[_0x9572bf(0x248)](){const _0x36a6c6=_0x9572bf;let _0x181bfa=this[_0x36a6c6(0x3d1)][_0x36a6c6(0x13c)](Y),_0x32d54c=this[_0x36a6c6(0x3d1)][_0x36a6c6(0x13c)](O);Z[_0x36a6c6(0x1fe)]=_0x181bfa,Z[_0x36a6c6(0x2a6)]=_0x32d54c;}[_0x9572bf(0x31d)](){const _0x24358a=_0x9572bf;let _0x560663=this['_injector'][_0x24358a(0x13c)](Y);this['disposeWithMe'](_0x560663[_0x24358a(0x1ff)][_0x24358a(0x2cd)](()=>{const _0x4ae6b8=_0x24358a;let _0x1b3208=this[_0x4ae6b8(0x1e7)][_0x4ae6b8(0x199)](0x2);if(_0x1b3208){let _0x1c7a17=_0x1b3208['getUnitId'](),_0x54d581=this['_renderManagerService'][_0x4ae6b8(0x36e)](_0x1c7a17);if(_0x54d581){var _0x9a87ea;(_0x9a87ea=_0x54d581['mainComponent'])==null||_0x9a87ea['makeDirty']();}}})),this[_0x24358a(0x3df)](this[_0x24358a(0x39e)][_0x24358a(0x1eb)][_0x24358a(0x2cd)](()=>{const _0xd19df9=_0x24358a;if(!_0x560663[_0xd19df9(0x1c3)])return;this['_sheetPrintManagerService'][_0xd19df9(0x367)]();let _0x525b5c=this[_0xd19df9(0x1e7)]['getCurrentUnitOfType'](0x2);if(_0x525b5c){let _0x36283c=_0x525b5c[_0xd19df9(0x415)](),_0x3b63cd=this['_renderManagerService'][_0xd19df9(0x36e)](_0x36283c);if(_0x3b63cd){var _0x10ccb3;(_0x10ccb3=_0x3b63cd[_0xd19df9(0x221)])==null||_0x10ccb3[_0xd19df9(0x324)]();}}})),this[_0x24358a(0x3df)](this[_0x24358a(0x411)][_0x24358a(0x3e6)](_0x5e4bc3=>{const _0x92d6a1=_0x24358a;if(!_0x560663[_0x92d6a1(0x1c3)]||[U['id'],W['id'],G['id'],K['id'],X['id'],ye['id']][_0x92d6a1(0x3af)](_0x5e4bc3['id']))return;this[_0x92d6a1(0x39e)][_0x92d6a1(0x367)]();let _0x23bce8=this[_0x92d6a1(0x1e7)]['getCurrentUnitOfType'](0x2);if(_0x23bce8){let _0x30a370=_0x23bce8['getUnitId'](),_0x189a32=this[_0x92d6a1(0x2f7)][_0x92d6a1(0x36e)](_0x30a370);if(_0x189a32){var _0xdacc5b;(_0xdacc5b=_0x189a32[_0x92d6a1(0x221)])==null||_0xdacc5b['makeDirty']();}}}));}};Q=D([E(0x0,r['IZenZoneService']),E(0x1,t['ICommandService']),E(0x2,O),E(0x3,(0x0,t['Inject'])(q)),E(0x4,(0x0,t[_0x9572bf(0x395)])(r[_0x9572bf(0x15c)])),E(0x5,r['IMenuManagerService']),E(0x6,r[_0x9572bf(0x1ac)]),E(0x7,(0x0,t['Inject'])(t[_0x9572bf(0x191)])),E(0x8,t[_0x9572bf(0x21f)]),E(0x9,a[_0x9572bf(0x358)])],Q);function _0x1d24(_0x57e07f,_0x2f326f){_0x57e07f=_0x57e07f-0x12f;const _0x3555b0=_0x3555();let _0x1d2437=_0x3555b0[_0x57e07f];return _0x1d2437;}let $=class extends t[_0x9572bf(0x2d7)]{constructor(_0x5c8867=F,_0x4bb0c3,_0x5a996b){const _0x483e06=_0x9572bf;super(),this['_config']=_0x5c8867,this['_injector']=_0x4bb0c3,this[_0x483e06(0x2de)]=_0x5a996b;let {menu:_0x2a1ff9,..._0x463c43}=(0x0,t['merge'])({},F,this[_0x483e06(0x276)]);_0x2a1ff9&&this['_configService'][_0x483e06(0x3fb)]('menu',_0x2a1ff9,{'merge':!0x0}),this['_configService'][_0x483e06(0x3fb)](_0x483e06(0x2b7),_0x463c43);}['onReady'](){const _0xd5821f=_0x9572bf;(0x0,t[_0xd5821f(0x354)])(this[_0xd5821f(0x3d1)],[[O,{'useClass':M}],[Y,{'useClass':_e}],[q],[Q]]),(0x0,t[_0xd5821f(0x208)])(this[_0xd5821f(0x3d1)],[[Q]]);}};T($,_0x9572bf(0x310),_0x9572bf(0x26e)),T($,_0x9572bf(0x347),he),T($,_0x9572bf(0x419),ge),T($,_0x9572bf(0x202),t[_0x9572bf(0x21d)][_0x9572bf(0x3ac)]),$=D([(0x0,t[_0x9572bf(0x35c)])(m[_0x9572bf(0x148)],e[_0x9572bf(0x3ed)]),E(0x1,(0x0,t[_0x9572bf(0x395)])(t['Injector'])),E(0x2,t[_0x9572bf(0x1f4)])],$),exports['CancelSheetPrintOperation']=W,exports[_0x9572bf(0x3cc)]=G,exports[_0x9572bf(0x1b6)]=O,exports[_0x9572bf(0x379)]=_,exports[_0x9572bf(0x3f9)]=y,exports[_0x9572bf(0x288)]=v,exports[_0x9572bf(0x293)]=b,exports[_0x9572bf(0x406)]=V,Object[_0x9572bf(0x369)](exports,_0x9572bf(0x40f),{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x9572bf(0x369)](exports,_0x9572bf(0x2d9),{'enumerable':!0x0,'get':function(){return M;}}),exports['SheetPrintOpenOperation']=U,exports[_0x9572bf(0x2e9)]=K,exports[_0x9572bf(0x2b5)]=J,Object[_0x9572bf(0x369)](exports,_0x9572bf(0x143),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x9572bf(0x3db)]=x,exports[_0x9572bf(0x3f2)]=P;