@univerjs-pro/sheets-print 1.0.1 → 1.0.3

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 _0x199a36=_0x42e2;(function(_0x53e348,_0x144659){const _0x14f314=_0x42e2,_0x531b7d=_0x53e348();while(!![]){try{const _0x1b47fe=parseInt(_0x14f314(0x161))/0x1+-parseInt(_0x14f314(0x275))/0x2*(parseInt(_0x14f314(0x1de))/0x3)+parseInt(_0x14f314(0x262))/0x4*(-parseInt(_0x14f314(0x103))/0x5)+parseInt(_0x14f314(0x1e5))/0x6*(-parseInt(_0x14f314(0x263))/0x7)+-parseInt(_0x14f314(0x19f))/0x8*(parseInt(_0x14f314(0x16a))/0x9)+-parseInt(_0x14f314(0x27b))/0xa+parseInt(_0x14f314(0x294))/0xb;if(_0x1b47fe===_0x144659)break;else _0x531b7d['push'](_0x531b7d['shift']());}catch(_0x4c8978){_0x531b7d['push'](_0x531b7d['shift']());}}}(_0x2063,0x3e5a0),Object[_0x199a36(0x2de)](exports,Symbol['toStringTag'],{'value':_0x199a36(0x21f)}));let e=require('@univerjs-pro/license'),t=require('@univerjs-pro/print'),n=require('@univerjs/core'),r=require('@univerjs/sheets'),i=require('@univerjs/ui'),a=require('rxjs'),o=require('@univerjs/engine-render'),s=require('@univerjs/sheets-ui'),c=require('@univerjs/design'),l=require('@univerjs/icons'),u=require('react'),d=require('react/jsx-runtime'),f=require('@univerjs/docs'),p=require('@univerjs/docs-ui');const m=Number[_0x199a36(0x322)](0x6ab4de54),h=_0x199a36(0xde);function g(_0x3c23a7){'@babel/helpers - typeof';const _0x24ac20=_0x199a36;return g=typeof Symbol==_0x24ac20(0x26b)&&typeof Symbol['iterator']==_0x24ac20(0x1a4)?function(_0x3d458f){return typeof _0x3d458f;}:function(_0x78bc93){const _0x2bfd6e=_0x24ac20;return _0x78bc93&&typeof Symbol=='function'&&_0x78bc93[_0x2bfd6e(0x17c)]===Symbol&&_0x78bc93!==Symbol[_0x2bfd6e(0x3b5)]?_0x2bfd6e(0x1a4):typeof _0x78bc93;},g(_0x3c23a7);}function _(_0x2e2297,_0x562abf){const _0x5d2b15=_0x199a36;if(g(_0x2e2297)!=_0x5d2b15(0x2e3)||!_0x2e2297)return _0x2e2297;var _0x15f094=_0x2e2297[Symbol[_0x5d2b15(0x10d)]];if(_0x15f094!==void 0x0){var _0x479fac=_0x15f094[_0x5d2b15(0x1c3)](_0x2e2297,_0x562abf||'default');if(g(_0x479fac)!=_0x5d2b15(0x2e3))return _0x479fac;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x562abf===_0x5d2b15(0x3b2)?String:Number)(_0x2e2297);}function v(_0x19bf29){const _0x404728=_0x199a36;var _0x55c6fa=_(_0x19bf29,_0x404728(0x3b2));return g(_0x55c6fa)==_0x404728(0x1a4)?_0x55c6fa:_0x55c6fa+'';}function y(_0x8e331e,_0x53666a,_0x4fdb50){const _0x1aabb1=_0x199a36;return(_0x53666a=v(_0x53666a))in _0x8e331e?Object[_0x1aabb1(0x2de)](_0x8e331e,_0x53666a,{'value':_0x4fdb50,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x8e331e[_0x53666a]=_0x4fdb50,_0x8e331e;}const b=(0x0,n[_0x199a36(0x34e)])(_0x199a36(0x162));var x=class extends n[_0x199a36(0x199)]{constructor(..._0x1cb1e2){const _0x429eda=_0x199a36;super(..._0x1cb1e2),y(this,_0x429eda(0x12e),new a[(_0x429eda(0x20c))](!0x1)),y(this,_0x429eda(0x184),new a[(_0x429eda(0x20c))](!0x1));}get[_0x199a36(0x148)](){const _0x1b63cf=_0x199a36;return this[_0x1b63cf(0x12e)][_0x1b63cf(0x2bf)]();}get['preparing'](){const _0x5726bf=_0x199a36;return this[_0x5726bf(0x184)][_0x5726bf(0x2bf)]();}[_0x199a36(0x11e)](){const _0x3ab8e2=_0x199a36;this[_0x3ab8e2(0x12e)][_0x3ab8e2(0x20e)](!0x0);}[_0x199a36(0x256)](){const _0xdc24e3=_0x199a36;this[_0xdc24e3(0x12e)]['next'](!0x1);}['setPreparing'](_0x530a58){const _0x182480=_0x199a36;this[_0x182480(0x184)]['next'](_0x530a58);}[_0x199a36(0x2ff)](){const _0x5c95cd=_0x199a36;this['visible$']['complete'](),this['preparing$'][_0x5c95cd(0x28b)](),super[_0x5c95cd(0x2ff)]();}};let S=function(_0xc7493e){const _0x3f0f56=_0x199a36;return _0xc7493e[_0x3f0f56(0x22f)]=_0x3f0f56(0x22f),_0xc7493e[_0x3f0f56(0x1d0)]=_0x3f0f56(0x35c),_0xc7493e['CurrentSelection']=_0x3f0f56(0xed),_0xc7493e[_0x3f0f56(0x129)]=_0x3f0f56(0x129),_0xc7493e;}({}),C=function(_0x466180){const _0x2cff8c=_0x199a36;return _0x466180[_0x2cff8c(0x25d)]=_0x2cff8c(0x25d),_0x466180[_0x2cff8c(0x331)]='WorkbookTitle',_0x466180[_0x2cff8c(0x1bf)]='WorksheetTitle',_0x466180[_0x2cff8c(0x19c)]=_0x2cff8c(0x19c),_0x466180[_0x2cff8c(0x2e9)]='Time',_0x466180;}({}),w=function(_0x58e6ce){const _0x17291d=_0x199a36;return _0x58e6ce[_0x17291d(0x289)]='Row',_0x58e6ce[_0x17291d(0x293)]=_0x17291d(0x293),_0x58e6ce;}({}),T=function(_0x492806){const _0x6188cc=_0x199a36;return _0x492806[_0x6188cc(0x331)]=_0x6188cc(0x14e),_0x492806[_0x6188cc(0x1bf)]=_0x6188cc(0x19e),_0x492806['DateA']=_0x6188cc(0xfe),_0x492806[_0x6188cc(0x192)]=_0x6188cc(0x385),_0x492806['DateC']=_0x6188cc(0x2aa),_0x492806[_0x6188cc(0x2f6)]='@DateD',_0x492806[_0x6188cc(0x2d0)]='@DateE',_0x492806[_0x6188cc(0x1be)]=_0x6188cc(0x104),_0x492806[_0x6188cc(0x114)]=_0x6188cc(0x281),_0x492806['TimeC']=_0x6188cc(0xd6),_0x492806[_0x6188cc(0x341)]=_0x6188cc(0x169),_0x492806[_0x6188cc(0x1ba)]=_0x6188cc(0x3b1),_0x492806[_0x6188cc(0x1d3)]=_0x6188cc(0x3b8),_0x492806[_0x6188cc(0x268)]='@TotalPage',_0x492806[_0x6188cc(0x1fe)]='@TotalSheetPage',_0x492806;}({});const E={'topLeft':'','topCenter':'','topRight':'','bottomLeft':'','bottomCenter':'','bottomRight':''};function D(_0x3c2ed4,_0x5d1d2f){return function(_0x2f600d,_0x187d76){_0x5d1d2f(_0x2f600d,_0x187d76,_0x3c2ed4);};}function O(_0x42f8eb,_0x41d1c2,_0x15636c,_0x5eb1d0){const _0x426113=_0x199a36;var _0x2d9ec7=arguments[_0x426113(0x368)],_0xd49bec=_0x2d9ec7<0x3?_0x41d1c2:_0x5eb1d0===null?_0x5eb1d0=Object[_0x426113(0x371)](_0x41d1c2,_0x15636c):_0x5eb1d0,_0x33b3ce;if(typeof Reflect==_0x426113(0x2e3)&&typeof Reflect['decorate']==_0x426113(0x26b))_0xd49bec=Reflect[_0x426113(0x153)](_0x42f8eb,_0x41d1c2,_0x15636c,_0x5eb1d0);else{for(var _0x304e09=_0x42f8eb[_0x426113(0x368)]-0x1;_0x304e09>=0x0;_0x304e09--)(_0x33b3ce=_0x42f8eb[_0x304e09])&&(_0xd49bec=(_0x2d9ec7<0x3?_0x33b3ce(_0xd49bec):_0x2d9ec7>0x3?_0x33b3ce(_0x41d1c2,_0x15636c,_0xd49bec):_0x33b3ce(_0x41d1c2,_0x15636c))||_0xd49bec);}return _0x2d9ec7>0x3&&_0xd49bec&&Object[_0x426113(0x2de)](_0x41d1c2,_0x15636c,_0xd49bec),_0xd49bec;}const k=(0x0,n[_0x199a36(0x34e)])(_0x199a36(0x29d)),A=_0x34bef2=>Math[_0x199a36(0x2e8)](_0x34bef2*0x64)/0x64,j={'startColumn':0x0,'endColumn':0x0,'startRow':0x0,'endRow':0x0},M={'startColumn':-0x1,'startRow':-0x1,'xSplit':0x0,'ySplit':0x0};let N=class{constructor(_0x1041be,_0x34dd8b,_0x345810,_0x1f6d6e){const _0x29c8de=_0x199a36;this[_0x29c8de(0x1a3)]=_0x1041be,this[_0x29c8de(0x26a)]=_0x34dd8b,this['_sheetPrintInterceptorService']=_0x345810,this['_renderManagerService']=_0x1f6d6e,y(this,_0x29c8de(0x1e6),{'area':_0x29c8de(0x22f),'subUnitIds':[],'paperSize':n['PaperType']['A4'],'direction':t[_0x29c8de(0x200)]['Portrait'],'scale':t[_0x29c8de(0x34a)][_0x29c8de(0xff)],'customScale':0x1,'freeze':[_0x29c8de(0x289),_0x29c8de(0x293)],'margin':t[_0x29c8de(0x183)][_0x29c8de(0x2c7)],'maxRowsEachPage':0x1/0x0,'maxColumnsEachPage':0x1/0x0,'marginCustom':{'top':0x0,'bottom':0x0,'left':0x0,'right':0x0}}),y(this,'_renderConfig',{'gridlines':!0x0,'hAlign':t[_0x29c8de(0x180)][_0x29c8de(0x13b)],'vAlign':t[_0x29c8de(0x180)][_0x29c8de(0x230)],'headerFooter':[],'headerFooterSetting':E,'isCustomHeaderFooter':!0x1}),y(this,_0x29c8de(0x1aa),[]),y(this,_0x29c8de(0x3aa),new a['BehaviorSubject'](this['_layoutInfos'])),y(this,_0x29c8de(0x2c9),new a[(_0x29c8de(0x20c))](this[_0x29c8de(0x1e6)])),y(this,'_renderConfig$',new a[(_0x29c8de(0x20c))](this[_0x29c8de(0x394)])),y(this,_0x29c8de(0x229),null),y(this,_0x29c8de(0x2f4),this[_0x29c8de(0x2c9)][_0x29c8de(0x36a)]()),y(this,'renderConfig$',this[_0x29c8de(0x3b4)][_0x29c8de(0x36a)]()),y(this,'layoutInfos$',this[_0x29c8de(0x3aa)][_0x29c8de(0x36a)]()[_0x29c8de(0x222)]((0x0,a[_0x29c8de(0x3cc)])(0x12c)));}get[_0x199a36(0x39c)](){const _0x805718=_0x199a36;return this[_0x805718(0x1aa)];}get[_0x199a36(0x1b9)](){const _0x4810d2=_0x199a36;return this[_0x4810d2(0x394)];}get[_0x199a36(0x31b)](){return this['_layoutConfig'];}get[_0x199a36(0x2b0)](){const _0x554308=_0x199a36;let {paperSize:_0x4ce141,direction:_0x599a2f,pageSizeCustom:_0x180441}=this['_layoutConfig'];if(_0x180441)return _0x180441;let _0x11306e=n['PAGE_SIZE'][_0x4ce141];return _0x599a2f===t[_0x554308(0x200)][_0x554308(0x2cc)]?{'w':_0x11306e[_0x554308(0x26c)],'h':_0x11306e[_0x554308(0x2f0)]}:{'w':_0x11306e['height'],'h':_0x11306e[_0x554308(0x26c)]};}get[_0x199a36(0x14f)](){const _0x366506=_0x199a36;return this[_0x366506(0x1e6)][_0x366506(0xc1)]===t['PrintPaperMargin'][_0x366506(0x110)]?this['_layoutConfig'][_0x366506(0x2ba)]:t[_0x366506(0x2ee)][this[_0x366506(0x1e6)][_0x366506(0xc1)]];}[_0x199a36(0x1d8)](_0x40068a){const _0x4e711a=_0x199a36;this[_0x4e711a(0x1e6)]={...this['_layoutConfig'],..._0x40068a},this[_0x4e711a(0x2c9)][_0x4e711a(0x20e)](this[_0x4e711a(0x1e6)]),this[_0x4e711a(0x248)]();}['replaceLayoutConfig'](_0x3e42a6){const _0x5594c1=_0x199a36;this[_0x5594c1(0x1e6)]=_0x3e42a6,this[_0x5594c1(0x2c9)][_0x5594c1(0x20e)](this[_0x5594c1(0x1e6)]),this[_0x5594c1(0x248)]();}[_0x199a36(0x3b9)](_0x4ff6c9){const _0x279e89=_0x199a36;this['_renderConfig']={...this[_0x279e89(0x394)],..._0x4ff6c9},this[_0x279e89(0x3b4)]['next'](this[_0x279e89(0x394)]);}[_0x199a36(0x1e1)](_0x3f5c70){const _0x5c16dd=_0x199a36;this[_0x5c16dd(0x394)]=_0x3f5c70,this[_0x5c16dd(0x3b4)][_0x5c16dd(0x20e)](this[_0x5c16dd(0x394)]);}['reLayout'](){const _0xdaa471=_0x199a36;this[_0xdaa471(0x1aa)]=this[_0xdaa471(0x205)](),this[_0xdaa471(0x3aa)][_0xdaa471(0x20e)](this['_layoutInfos']);}[_0x199a36(0x16f)](){const _0x5e4dd8=_0x199a36;this[_0x5e4dd8(0x1aa)]=[],this[_0x5e4dd8(0x3aa)][_0x5e4dd8(0x20e)](this[_0x5e4dd8(0x1aa)]),this['_layoutConfig']={...this[_0x5e4dd8(0x1e6)],'area':_0x5e4dd8(0x22f),'maxRowsEachPage':0x1/0x0,'maxColumnsEachPage':0x1/0x0},this['_layoutConfig$'][_0x5e4dd8(0x20e)](this[_0x5e4dd8(0x1e6)]);}['setPrintViewDisposable'](_0x4ebd2d){const _0x234502=_0x199a36;var _0x34f7db;(_0x34f7db=this[_0x234502(0x229)])==null||_0x34f7db[_0x234502(0x2ff)](),this[_0x234502(0x229)]=_0x4ebd2d;}[_0x199a36(0x231)](){const _0x48bf53=_0x199a36;var _0x1f0f45;(_0x1f0f45=this[_0x48bf53(0x229)])==null||_0x1f0f45[_0x48bf53(0x2ff)](),this['_printViewDisposable']=null;}[_0x199a36(0x205)](){const _0x325e4c=_0x199a36;let _0x5216b1=this[_0x325e4c(0x36d)](),_0x474814=[];return _0x5216b1[_0x325e4c(0x18a)](_0x4390a6=>{const _0xb26a45=_0x325e4c;if(_0x4390a6){let _0x34aaf7=this[_0xb26a45(0x106)](_0x4390a6);_0x34aaf7&&_0x474814[_0xb26a45(0x36f)](_0x34aaf7);}}),_0x474814;}['_calculateSheetRangeById'](_0x4ba712,_0x508e99,_0x3cafcb){const _0x365d44=_0x199a36;var _0x2e3bc1;let _0x156735=this[_0x365d44(0x1a3)][_0x365d44(0xe8)](n['UniverInstanceType'][_0x365d44(0x3a5)])['getSheetBySheetId'](_0x508e99);if(!_0x156735)return;let _0x345468=_0x156735[_0x365d44(0x28d)](),_0x40d146=_0x3cafcb??_0x156735['getCellMatrixPrintRange'](),_0x51d767=(_0x2e3bc1=this['_renderManagerService'][_0x365d44(0x20d)](_0x4ba712))==null?void 0x0:_0x2e3bc1['with'](s[_0x365d44(0x13e)])[_0x365d44(0x23d)](_0x508e99);if(!_0x51d767)return;if(_0x40d146){var _0xb47728;_0x51d767==null||(_0xb47728=_0x51d767['overflowCache'])==null||_0xb47728['forValue']((_0x4f6de4,_0x148fea,_0x2fd184)=>{const _0x421c2c=_0x365d44;let {endColumn:_0x3f8e4c}=_0x2fd184;_0x3f8e4c>_0x40d146[_0x421c2c(0x1ce)]&&(_0x40d146[_0x421c2c(0x1ce)]=_0x3f8e4c);});}let _0x524ee1=this['_sheetPrintInterceptorService'][_0x365d44(0x117)][_0x365d44(0x320)](this['_sheetPrintInterceptorService'][_0x365d44(0x117)][_0x365d44(0x33f)]()[_0x365d44(0x327)])(_0x40d146,{'unitId':_0x4ba712,'subUnitId':_0x508e99});return _0x524ee1?this[_0x365d44(0x211)](_0x508e99,{..._0x524ee1,'startColumn':Math[_0x365d44(0x1a8)](_0x345468[_0x365d44(0x176)]-_0x345468['xSplit'],0x0),'startRow':Math[_0x365d44(0x1a8)](_0x345468[_0x365d44(0x152)]-_0x345468[_0x365d44(0x3ca)],0x0)}):null;}[_0x199a36(0x218)](_0x3a2684,_0x2c2a98){const _0x2d77e5=_0x199a36;let _0x11c8bf=this[_0x2d77e5(0x26a)][_0x2d77e5(0x325)](_0x3a2684)[_0x2d77e5(0x109)](_0x2c2a98);return _0x11c8bf?_0x11c8bf['map'](_0x3c9be2=>this[_0x2d77e5(0x211)](_0x2c2a98,_0x3c9be2[_0x2d77e5(0x21b)])):[];}[_0x199a36(0x211)](_0x14607e,_0x3ad87a){const _0x2bed8f=_0x199a36;let _0x24a5e3=this[_0x2bed8f(0x1a3)][_0x2bed8f(0xe8)](n[_0x2bed8f(0x23e)]['UNIVER_SHEET']),_0x528273=_0x24a5e3[_0x2bed8f(0x1b8)](_0x14607e),_0x2631e4=this[_0x2bed8f(0x1e6)],_0x2c6d9e=_0x24a5e3[_0x2bed8f(0x128)](),_0x392b2c=this['paperSize'],{top:_0x2bbe74,right:_0x56cc79,bottom:_0x360f23,left:_0x47b194}=this[_0x2bed8f(0x14f)];_0x392b2c['h']-=_0x2bbe74+_0x360f23,_0x392b2c['w']-=_0x47b194+_0x56cc79;let _0x3b2ec3=this[_0x2bed8f(0x310)][_0x2bed8f(0x20d)](_0x2c6d9e)[_0x2bed8f(0x397)](s[_0x2bed8f(0x13e)]);if(_0x3ad87a['startRow']>-0x1&&_0x3ad87a[_0x2bed8f(0x176)]>-0x1){let _0xf66dd6=_0x3b2ec3['ensureSkeleton'](_0x14607e);if(!_0x528273||!_0xf66dd6)return null;let _0x5278c2=_0x3ad87a[_0x2bed8f(0x152)],_0x2e5796=_0x3ad87a['endRow'],_0x3b15bb=_0x3ad87a[_0x2bed8f(0x176)],_0x1c2dd1=_0x3ad87a[_0x2bed8f(0x1ce)],_0x303f02=_0x528273[_0x2bed8f(0x28d)](),_0x4c5017=A(this[_0x2bed8f(0x1f8)](_0xf66dd6,_0x3ad87a,_0x303f02)),_0x19433c=-0x1,_0xa3bf1a=0x0,_0x17e755=-0x1,_0x1e6d68=0x0,_0x23df10=_0xf66dd6[_0x2bed8f(0x26e)],_0x91b4e6=_0xf66dd6['rowHeightAccumulation'];if(_0x303f02[_0x2bed8f(0xce)]&&_0x2631e4['freeze']['includes'](_0x2bed8f(0x293))){if(_0x1c2dd1>=_0x303f02[_0x2bed8f(0x176)]){let _0x346497=_0x4c5017*(_0x23df10[_0x303f02[_0x2bed8f(0x176)]-0x1]-(_0x23df10[_0x303f02[_0x2bed8f(0x176)]-_0x303f02['xSplit']-0x1]||0x0));_0x346497<_0x392b2c['w']&&(_0x17e755=_0x303f02[_0x2bed8f(0x176)],_0x1e6d68=_0x303f02[_0x2bed8f(0xce)],_0x392b2c['w']-=_0x346497);}else{let _0x1c3dd9=_0x1c2dd1+0x1,_0xe4fe8f=_0x1c2dd1+0x1-(_0x303f02[_0x2bed8f(0x176)]-_0x303f02[_0x2bed8f(0xce)]),_0x4617a5=_0x4c5017*(_0x23df10[_0x17e755-0x1]-(_0x23df10[_0x17e755-_0x1e6d68]-0x1||0x0));_0x4617a5<_0x392b2c['w']&&(_0x17e755=_0x1c3dd9,_0x1e6d68=_0xe4fe8f,_0x392b2c['w']-=_0x4617a5);}}if(_0x3b15bb=Math[_0x2bed8f(0x1a8)](_0x17e755,_0x3b15bb),_0x303f02['ySplit']&&_0x2631e4[_0x2bed8f(0x388)]['includes'](_0x2bed8f(0x289))){if(_0x2e5796>=_0x303f02['startRow']){let _0x196b26=_0x91b4e6[_0x303f02[_0x2bed8f(0x152)]]-_0x91b4e6[_0x303f02['startRow']-_0x303f02['ySplit']];_0x196b26<_0x392b2c['h']&&(_0x19433c=_0x303f02[_0x2bed8f(0x152)],_0xa3bf1a=_0x303f02[_0x2bed8f(0x3ca)],_0x392b2c['h']-=_0x196b26);}else _0x19433c=_0x2e5796+0x1,_0xa3bf1a=_0x2e5796+0x1-(_0x303f02['startRow']-_0x303f02[_0x2bed8f(0x3ca)]),_0x392b2c['h']=_0x392b2c['h']-_0x91b4e6[_0x19433c]-_0x91b4e6[_0x19433c-_0xa3bf1a];}return _0x5278c2=Math[_0x2bed8f(0x1a8)](_0x19433c,_0x5278c2),{'unitId':_0x2c6d9e,'subUnitId':_0x14607e,'range':{'startRow':_0x5278c2,'endRow':_0x2e5796,'startColumn':_0x3b15bb,'endColumn':_0x1c2dd1},'freeze':{'startRow':_0x19433c,'startColumn':_0x17e755,'xSplit':_0x1e6d68,'ySplit':_0xa3bf1a},'contentSize':_0x392b2c,'scale':_0x4c5017};}return{'unitId':_0x2c6d9e,'subUnitId':_0x14607e,'range':j,'freeze':M,'contentSize':_0x392b2c,'scale':0x1};}[_0x199a36(0x1f8)](_0x4a901e,_0x401668,_0x1631a8){const _0x28a7e9=_0x199a36;let _0x534b8c=_0x4a901e[_0x28a7e9(0x26e)],_0x5e5dba=_0x4a901e[_0x28a7e9(0xf6)],{xSplit:_0x5e3ebf,ySplit:_0x3eea6b,startColumn:_0x4c6eaa,startRow:_0x2c6a34}=_0x1631a8,{startRow:_0x18de9d,startColumn:_0x3135a9}=_0x401668,{endColumn:_0x9a5a05,endRow:_0x269e87}=_0x401668;_0x18de9d=_0x269e87<_0x2c6a34?_0x18de9d:Math[_0x28a7e9(0x1a8)](_0x2c6a34,_0x18de9d),_0x3135a9=_0x9a5a05<_0x4c6eaa?_0x3135a9:Math[_0x28a7e9(0x1a8)](_0x4c6eaa,_0x3135a9);let {scale:_0x161dfe,customScale:_0x322290}=this[_0x28a7e9(0x1e6)],_0x4a27fa=this[_0x28a7e9(0x2b0)],_0x559db1=this[_0x28a7e9(0x14f)],_0x446977=_0x5e3ebf>0x0?(_0x534b8c[_0x4c6eaa-0x1]||0x0)-(_0x534b8c[_0x4c6eaa-_0x5e3ebf-0x1]||0x0):0x0,_0x1378e3=_0x3eea6b>0x0?(_0x5e5dba[_0x2c6a34-0x1]||0x0)-(_0x5e5dba[_0x2c6a34-_0x3eea6b-0x1]||0x0):0x0,_0x2c1029=_0x5e5dba[_0x269e87]-(_0x5e5dba[_0x18de9d-0x1]||0x0),_0x2463f6=_0x534b8c[_0x9a5a05]-(_0x534b8c[_0x3135a9-0x1]||0x0),_0x4c730e=_0x2c1029+_0x1378e3,_0x49dbda=_0x2463f6+_0x446977;switch(_0x161dfe){case t[_0x28a7e9(0x34a)][_0x28a7e9(0x110)]:return _0x322290;case t[_0x28a7e9(0x34a)][_0x28a7e9(0x1ae)]:return Math[_0x28a7e9(0x249)](0x1,(_0x4a27fa['w']-_0x559db1[_0x28a7e9(0x2a1)]-_0x559db1[_0x28a7e9(0x3d0)])/_0x49dbda);case t[_0x28a7e9(0x34a)][_0x28a7e9(0x2ef)]:return Math['min'](0x1,(_0x4a27fa['h']-_0x559db1[_0x28a7e9(0x18c)]-_0x559db1['bottom'])/_0x4c730e);case t[_0x28a7e9(0x34a)][_0x28a7e9(0x2c0)]:return Math[_0x28a7e9(0x249)](0x1,(_0x4a27fa['w']-_0x559db1[_0x28a7e9(0x2a1)]-_0x559db1[_0x28a7e9(0x3d0)])/_0x49dbda,(_0x4a27fa['h']-_0x559db1[_0x28a7e9(0x18c)]-_0x559db1[_0x28a7e9(0x235)])/_0x4c730e);default:return 0x1;}}[_0x199a36(0x36d)](){const _0x290dd1=_0x199a36;let {area:_0x573b3b,subUnitIds:_0x33e29f}=this[_0x290dd1(0x1e6)],_0x52d9cd=this[_0x290dd1(0x1a3)][_0x290dd1(0xe8)](n[_0x290dd1(0x23e)][_0x290dd1(0x3a5)]),_0x37731f=_0x52d9cd['getUnitId']();switch(_0x573b3b){case _0x290dd1(0x22f):{var _0x2fa358;let _0x30bab2=(_0x2fa358=_0x52d9cd[_0x290dd1(0x2ec)]())==null?void 0x0:_0x2fa358[_0x290dd1(0x1c0)]();if(_0x30bab2!=null){let _0x46edb7=this['_calculateSheetRangeById'](_0x37731f,_0x30bab2);if(_0x46edb7)return[_0x46edb7];let _0x1827f1=this[_0x290dd1(0x1a3)][_0x290dd1(0xe8)](n[_0x290dd1(0x23e)][_0x290dd1(0x3a5)]),_0xdbc2d4=_0x1827f1['getActiveSheet']();return _0xdbc2d4?this[_0x290dd1(0x218)](_0x1827f1['getUnitId'](),_0xdbc2d4[_0x290dd1(0x1c0)]()):(console[_0x290dd1(0x24a)](_0x290dd1(0x1b1)),[]);}return[];}case _0x290dd1(0xed):{let _0x20a934=this[_0x290dd1(0x1a3)]['getCurrentUnitOfType'](n['UniverInstanceType'][_0x290dd1(0x3a5)]),_0x1662d7=_0x20a934[_0x290dd1(0x2ec)]();return _0x1662d7?this[_0x290dd1(0x218)](_0x20a934[_0x290dd1(0x128)](),_0x1662d7[_0x290dd1(0x1c0)]()):(console[_0x290dd1(0x24a)](_0x290dd1(0x1b1)),[]);}case _0x290dd1(0x129):return this[_0x290dd1(0x1a3)]['getCurrentUnitOfType'](n['UniverInstanceType'][_0x290dd1(0x3a5)])['getSheets']()[_0x290dd1(0x1e8)](_0x24a416=>this[_0x290dd1(0x218)](_0x37731f,_0x24a416[_0x290dd1(0x1c0)]()))[_0x290dd1(0x143)]();default:return(_0x33e29f['length']?_0x33e29f:_0x52d9cd['getSheets']()[_0x290dd1(0x1a7)](_0xd02947=>!_0xd02947['isSheetHidden']())['map'](_0x5ec0e9=>_0x5ec0e9[_0x290dd1(0x1c0)]()))[_0x290dd1(0x1e8)](_0x2c3951=>this['_calculateSheetRangeById'](_0x37731f,typeof _0x2c3951==_0x290dd1(0x3b2)?_0x2c3951:_0x2c3951['id'],typeof _0x2c3951==_0x290dd1(0x3b2)?void 0x0:_0x2c3951[_0x290dd1(0x21b)]))[_0x290dd1(0x1a7)](Boolean);}}[_0x199a36(0x106)](_0x495288){const _0x283cfb=_0x199a36;let {subUnitId:_0x5da739,range:_0x1a2283,freeze:_0x33bb5b,unitId:_0x212df4,scale:_0x2bc7c7,contentSize:_0x329b18}=_0x495288,_0x2dfb43=this['_renderManagerService'][_0x283cfb(0x20d)](_0x212df4)[_0x283cfb(0x397)](s['SheetSkeletonManagerService'])[_0x283cfb(0x23d)](_0x5da739);if(!_0x2dfb43)return;let {rowHeightAccumulation:_0x441cc6,columnWidthAccumulation:_0x40e7e1}=_0x2dfb43,{w:_0x6aa841,h:_0xd8801f}=_0x329b18,{startRow:_0x4259b4,startColumn:_0x4d37b7,endColumn:_0x4d4f13,endRow:_0x39b8ad}=_0x1a2283,_0x547fd8=_0x3a4067=>{const _0x2051ea=_0x283cfb;let _0x514369=_0x3a4067,_0x593b83=this[_0x2051ea(0x1e6)][_0x2051ea(0x1d9)]<=_0x33bb5b[_0x2051ea(0x3ca)]?0x1/0x0:this[_0x2051ea(0x1e6)][_0x2051ea(0x1d9)]-0x1-_0x33bb5b['ySplit']+_0x3a4067,_0x15997f=_0x3a4067===0x0?0x0:_0x441cc6[_0x3a4067-0x1];for(;_0x514369<_0x39b8ad;){let _0x467421=(_0x441cc6[_0x514369]-_0x15997f)*_0x2bc7c7,_0x4679a4=(_0x441cc6[_0x514369+0x1]-_0x15997f)*_0x2bc7c7;if(_0x514369++,_0x467421>=_0xd8801f||_0x467421<_0xd8801f&&_0x4679a4>_0xd8801f)return{'startRow':_0x3a4067,'endRow':Math[_0x2051ea(0x249)](_0x514369-0x1,_0x593b83)};}return{'startRow':_0x3a4067,'endRow':Math[_0x2051ea(0x249)](_0x514369,_0x593b83)};},_0x4a0920=_0x377d77=>{const _0x1421c1=_0x283cfb;let _0x1acfff=_0x377d77,_0x228d8d=_0x377d77===0x0?0x0:_0x40e7e1[_0x377d77-0x1],_0x235704=this[_0x1421c1(0x1e6)][_0x1421c1(0x35a)]<=_0x33bb5b[_0x1421c1(0xce)]?0x1/0x0:this['_layoutConfig'][_0x1421c1(0x35a)]-0x1-_0x33bb5b['xSplit']+_0x377d77;for(;_0x1acfff<_0x4d4f13;){let _0x155e49=(_0x40e7e1[_0x1acfff]-_0x228d8d)*_0x2bc7c7,_0x3cf41e=(_0x40e7e1[_0x1acfff+0x1]-_0x228d8d)*_0x2bc7c7;if(_0x1acfff++,_0x155e49<_0x6aa841&&_0x3cf41e>_0x6aa841||_0x155e49>=_0x6aa841)return{'startColumn':_0x377d77,'endColumn':Math[_0x1421c1(0x249)](_0x1acfff-0x1,_0x235704)};}return{'startColumn':_0x377d77,'endColumn':Math[_0x1421c1(0x249)](_0x1acfff,_0x235704)};},_0x5a7689=[],_0x470aa3=_0x4259b4;for(;_0x470aa3<=_0x39b8ad;){let _0x288630=_0x547fd8(_0x470aa3);_0x5a7689[_0x283cfb(0x36f)](_0x288630),_0x470aa3=_0x288630[_0x283cfb(0x1a5)]+0x1;}let _0x22fd6f=[],_0x342def=_0x4d37b7;for(;_0x342def<=_0x4d4f13;){let _0xada954=_0x4a0920(_0x342def);_0x22fd6f[_0x283cfb(0x36f)](_0xada954),_0x342def=_0xada954[_0x283cfb(0x1ce)]+0x1;}let _0x1627de=[];for(let _0x4bc576=0x0;_0x4bc576<_0x5a7689[_0x283cfb(0x368)];_0x4bc576++)for(let _0x5aad22=0x0;_0x5aad22<_0x22fd6f['length'];_0x5aad22++)_0x1627de[_0x283cfb(0x36f)]({..._0x5a7689[_0x4bc576],..._0x22fd6f[_0x5aad22]});return{'unitId':_0x212df4,'subUnitId':_0x5da739,'pages':_0x1627de,'freeze':_0x33bb5b,'scale':_0x2bc7c7,'pageSize':this[_0x283cfb(0x2b0)],'margin':this[_0x283cfb(0x14f)]};}};N=O([D(0x0,n['IUniverInstanceService']),D(0x1,(0x0,n['Inject'])(r[_0x199a36(0x137)])),D(0x2,(0x0,n[_0x199a36(0x24e)])(s[_0x199a36(0x2a3)])),D(0x3,o[_0x199a36(0x160)])],N);const P=(_0xdcf58a,_0xe65d35)=>{const _0x34fa55=_0x199a36;if(!_0xdcf58a||!_0xe65d35)return!0x0;let _0x3f5145=(0x0,e[_0x34fa55(0x1c8)])(_0xdcf58a,_0xe65d35)[_0x34fa55(0x3c5)],_0x397d7c=(0x0,e[_0x34fa55(0x343)])(_0x3f5145,'sf',m);return!((_0x3f5145==null?void 0x0:_0x3f5145['rt'])===e[_0x34fa55(0x1a1)][_0x34fa55(0x2eb)]&&!_0x397d7c);},ee=(_0x386944,_0x5dc33c,_0x14043b)=>{const _0x4358e9=_0x199a36;let _0x1bfbda={'page':_0x386944,'isPro':!0x1,'timeValid':!0x1};if(!_0x5dc33c||!_0x14043b)return _0x1bfbda;let _0x19ecce=(0x0,e[_0x4358e9(0x1c8)])(_0x5dc33c,_0x14043b);if(_0x19ecce[_0x4358e9(0x26f)]){let _0x4e1531=_0x19ecce[_0x4358e9(0x3c5)],_0x2302a0=(0x0,e['isFeatureAuthorizedWithinTime'])(_0x4e1531,'sf',m);_0x1bfbda[_0x4358e9(0x3c4)]=_0x2302a0,_0x1bfbda[_0x4358e9(0x1c4)]=_0x2302a0,_0x1bfbda[_0x4358e9(0xe7)]=(0x0,e[_0x4358e9(0x24f)])(_0x4e1531,_0x2302a0,_0x4358e9(0x1ea),_0x386944,_0x386944,0x0);}return _0x1bfbda;};function F(_0x446183){const _0xaa2336=_0x199a36;let {ls:_0x261134,pbk:_0x41b76c}=_0x446183[_0xaa2336(0x202)](n[_0xaa2336(0x383)])[_0xaa2336(0x122)](e[_0xaa2336(0x284)])??{};return ee(0x3,_0x261134,_0x41b76c)[_0xaa2336(0x3c4)];}const I={'id':_0x199a36(0x337),'type':n[_0x199a36(0x223)]['OPERATION'],'handler':async _0x5c1845=>{const _0xc7a3b8=_0x199a36;let _0x350eb8=_0x5c1845['get'](b),_0x394aa7=_0x5c1845[_0xc7a3b8(0x202)](n[_0xc7a3b8(0x173)]),_0x43d289=_0x5c1845[_0xc7a3b8(0x202)](n[_0xc7a3b8(0x2d4)]),_0x555937=_0x5c1845['get'](n[_0xc7a3b8(0x398)]),_0x133946=_0x5c1845[_0xc7a3b8(0x202)](i[_0xc7a3b8(0x27e)]),{ls:_0xb0c782,pbk:_0xa3b3e9}=_0x5c1845[_0xc7a3b8(0x202)](n[_0xc7a3b8(0x383)])[_0xc7a3b8(0x122)](e[_0xc7a3b8(0x284)])??{};if(!P(_0xb0c782,_0xa3b3e9))return!0x1;let _0x1f6f60=_0x555937[_0xc7a3b8(0xe8)](n[_0xc7a3b8(0x23e)][_0xc7a3b8(0x3a5)])[_0xc7a3b8(0x128)]();if(!(_0x394aa7[_0xc7a3b8(0x1e4)](new r[(_0xc7a3b8(0x181))](_0x1f6f60)['id'])??!0x1)){let _0x52f6af={'id':h,'title':{'title':''},'children':{'label':'UNIVER_SHEET_PERMISSION_ALERT_DIALOG','errorMsg':_0x43d289['t'](_0xc7a3b8(0x25c))},'width':0x140,'onClose':()=>_0x133946['close'](h),'className':_0xc7a3b8(0x33a)};throw _0x133946[_0xc7a3b8(0x11e)](_0x52f6af),Error(_0xc7a3b8(0x387));}_0x350eb8['setPreparing'](!0x0),_0x350eb8[_0xc7a3b8(0x11e)]();try{return await _0x5c1845[_0xc7a3b8(0x202)](t['IPrintPreparationService'])[_0xc7a3b8(0x136)]({'unitId':_0x1f6f60,'unitType':n[_0xc7a3b8(0x23e)][_0xc7a3b8(0x3a5)],'dpr':0x1}),!0x0;}catch(_0x4525cd){throw _0x350eb8[_0xc7a3b8(0x256)](),_0x4525cd;}finally{_0x350eb8[_0xc7a3b8(0x32d)](!0x1);}}},L={'type':n[_0x199a36(0x223)][_0x199a36(0x2f3)],'id':_0x199a36(0x253),'handler'(_0x552dee){const _0x365bce=_0x199a36;let _0x154725=_0x552dee[_0x365bce(0x202)](b),_0x166e0b=_0x552dee[_0x365bce(0x202)](k);return _0x154725[_0x365bce(0x256)](),_0x166e0b['reset'](),!0x0;}},R={'type':n[_0x199a36(0x223)][_0x199a36(0x2f3)],'id':_0x199a36(0x323),'handler'(){return!0x0;}},z={'id':_0x199a36(0x19d),'type':n[_0x199a36(0x223)]['COMMAND'],'handler'(_0x96c677,_0x50e5d2){const _0x4317a6=_0x199a36;if(!_0x50e5d2)return!0x1;let _0x2de49a=_0x96c677[_0x4317a6(0x202)](n['ICommandService']),_0x4d84c4=_0x96c677[_0x4317a6(0x202)](k);return _0x4d84c4[_0x4317a6(0x185)](_0x50e5d2[_0x4317a6(0x31b)]),_0x4d84c4['replaceRenderConfig'](_0x50e5d2[_0x4317a6(0x1b9)]),_0x2de49a[_0x4317a6(0x2e2)](R['id']);}};function B(_0x4cbfc9,_0x2f8612){const _0x114663=_0x199a36;switch(_0x4cbfc9){case _0x114663(0x14e):return _0x2f8612['workbook'][_0x114663(0x298)];case'@WorksheetTitle':return _0x2f8612[_0x114663(0x34d)][_0x114663(0x204)]();case'@Page':return''+_0x2f8612[_0x114663(0xe7)];case'@TotalPage':return''+_0x2f8612[_0x114663(0x33c)];case _0x114663(0x33b):return''+_0x2f8612[_0x114663(0x22b)];case _0x114663(0x3b8):return''+_0x2f8612[_0x114663(0x1a0)];case _0x114663(0xfe):return _0x2f8612[_0x114663(0x190)][_0x114663(0x3a0)](_0x2f8612['localeService']['t'](_0x114663(0x2cb)));case _0x114663(0x385):return _0x2f8612[_0x114663(0x190)]['format'](_0x2f8612['localeService']['t'](_0x114663(0x224)));case _0x114663(0x2aa):return _0x2f8612[_0x114663(0x190)]['format'](_0x2f8612[_0x114663(0x280)]['t'](_0x114663(0x2a9)));case _0x114663(0x1e3):return _0x2f8612[_0x114663(0x190)][_0x114663(0x3a0)](_0x2f8612[_0x114663(0x280)]['t'](_0x114663(0xd3)));case _0x114663(0x30f):return _0x2f8612['now'][_0x114663(0x3a0)](_0x2f8612['localeService']['t']('sheets-print.headerFooter.dateE'));case'@TimeA':return _0x2f8612[_0x114663(0x190)][_0x114663(0x3a0)](_0x2f8612[_0x114663(0x280)]['t'](_0x114663(0x147)));case'@TimeB':return _0x2f8612[_0x114663(0x190)]['format'](_0x2f8612[_0x114663(0x280)]['t'](_0x114663(0x1f3)));case _0x114663(0xd6):return _0x2f8612[_0x114663(0x190)][_0x114663(0x3a0)](_0x2f8612[_0x114663(0x280)]['t']('sheets-print.headerFooter.timeC'));case'@TimeD':return _0x2f8612['now'][_0x114663(0x3a0)](_0x2f8612[_0x114663(0x280)]['t'](_0x114663(0x17a)));}}const te=Object[_0x199a36(0x16d)](T);function V(_0x566a28,_0x58f7aa){let _0x1ec284=_0x566a28;return te['forEach'](_0x4d16f7=>{const _0xacd12b=_0x42e2;_0x1ec284=_0x1ec284[_0xacd12b(0x305)](_0x4d16f7,B(_0x4d16f7,_0x58f7aa));}),_0x1ec284;}const H=_0x199a36(0xdb);function ne(_0x3a1032,_0x57d2fc){const _0x492893=_0x199a36;let _0x6175b2=_0x3a1032;_0x57d2fc[_0x492893(0x18a)](_0x199c41=>{const _0x95e689=_0x492893;_0x6175b2=_0x6175b2['replaceAll'](_0x199c41[_0x95e689(0x282)],''+H+_0x199c41[_0x95e689(0x3c7)]+H);});let _0x1c42ce=_0x6175b2[_0x492893(0x18d)](H),_0x419362=n['RichTextBuilder'][_0x492893(0x20a)]();return _0x1c42ce[_0x492893(0x18a)]((_0x17aa0e,_0x36f226)=>{const _0x14eeae=_0x492893;if(_0x17aa0e){if(_0x36f226%0x2==0x1){let _0x57663a=_0x17aa0e,_0x415e6c={'id':'d','documentStyle':{},'drawings':{},'drawingsOrder':[],'body':{'dataStream':_0x17aa0e,'customBlocks':[],'customRanges':[{'startIndex':0x0,'endIndex':_0x17aa0e['length']-0x1,'rangeId':(0x0,n[_0x14eeae(0x272)])(),'rangeType':n[_0x14eeae(0x3a2)][_0x14eeae(0x29e)],'properties':{'value':_0x57d2fc[_0x14eeae(0x347)](_0x6bdf1=>_0x6bdf1[_0x14eeae(0x3c7)]===_0x57663a)[_0x14eeae(0x282)]}}]}};_0x419362[_0x14eeae(0x269)](_0x415e6c);}else _0x419362[_0x14eeae(0x270)](_0x17aa0e);}}),_0x419362['getData']();}function re(_0x585634){const _0x405f80=_0x199a36;var _0x48bbdf;if(!(_0x585634!=null&&_0x585634[_0x405f80(0x392)]))return'';let _0x7490f9=n[_0x405f80(0x2bc)][_0x405f80(0x20a)](n[_0x405f80(0x2fe)]['deepClone'](_0x585634));for(;(_0x48bbdf=_0x7490f9[_0x405f80(0x367)]()[_0x405f80(0x392)]['customRanges'])!=null&&_0x48bbdf[_0x405f80(0x368)];){let _0x377e4c=_0x7490f9[_0x405f80(0x367)]()[_0x405f80(0x392)][_0x405f80(0x32b)][0x0];if(!_0x377e4c)break;_0x7490f9[_0x405f80(0x376)](_0x377e4c['startIndex'],_0x377e4c[_0x405f80(0x358)]+0x1-_0x377e4c['startIndex']),_0x7490f9['insertText'](_0x377e4c[_0x405f80(0x207)],_0x377e4c[_0x405f80(0x2e7)][_0x405f80(0x282)]);}return _0x7490f9[_0x405f80(0x367)]()['body'][_0x405f80(0x1d6)];}function ie(_0x119457,_0x1fd4f9){const _0x3d6865=_0x199a36;_0x119457[_0x3d6865(0x393)]()[_0x3d6865(0x18a)](_0x323378=>{const _0xd58edd=_0x3d6865;var _0x5ef17d;let _0x814aa3=(_0x5ef17d=_0x323378[_0xd58edd(0x1b5)])==null?void 0x0:_0x5ef17d[_0xd58edd(0x1c3)](_0x323378);_0x814aa3&&_0x1fd4f9['register'](_0x814aa3);});}var ae=class extends n[_0x199a36(0x199)]{get[_0x199a36(0x2e6)](){const _0x3a5509=_0x199a36;return this[_0x3a5509(0x394)][_0x3a5509(0x25a)];}get[_0x199a36(0x391)](){return this['_key'];}get[_0x199a36(0x221)](){const _0x2df8b4=_0x199a36;return this[_0x2df8b4(0x259)];}get[_0x199a36(0x2d2)](){const _0x197c57=_0x199a36;return this[_0x197c57(0x1f1)];}get[_0x199a36(0x151)](){const _0x1e1f05=_0x199a36;return this[_0x1e1f05(0x288)];}get[_0x199a36(0x1b9)](){const _0x104743=_0x199a36;return this[_0x104743(0x394)];}set['renderConfig'](_0x1a45a5){const _0x18b0d=_0x199a36;this[_0x18b0d(0x394)]=_0x1a45a5;}constructor(_0xf0da96,_0x49d838,_0x552f2a,_0x28a8c7=!0x0,_0x4f19e9=0x1){const _0x22f568=_0x199a36;super(),this[_0x22f568(0x373)]=_0xf0da96,this['_config']=_0x49d838,this[_0x22f568(0x394)]=_0x552f2a,this[_0x22f568(0x374)]=_0x28a8c7,this[_0x22f568(0x38d)]=_0x4f19e9,y(this,_0x22f568(0x259),void 0x0),y(this,_0x22f568(0xe1),void 0x0),y(this,_0x22f568(0x2dd),void 0x0),y(this,_0x22f568(0x1d1),void 0x0),y(this,'_subUnitId',void 0x0),y(this,_0x22f568(0x2a5),void 0x0),y(this,_0x22f568(0xeb),void 0x0),y(this,'_viewTop',void 0x0),y(this,_0x22f568(0x174),void 0x0),y(this,_0x22f568(0x318),null),y(this,_0x22f568(0x133),null),y(this,_0x22f568(0x1f1),document[_0x22f568(0x351)]('div')),y(this,_0x22f568(0x288),document[_0x22f568(0x351)](_0x22f568(0x29a))),y(this,_0x22f568(0x372),void 0x0),y(this,_0x22f568(0x1a3),void 0x0),y(this,_0x22f568(0x39d),!0x0),y(this,_0x22f568(0x2da),void 0x0),y(this,_0x22f568(0x113),new n[(_0x22f568(0x30a))]()),y(this,_0x22f568(0x333),new s[(_0x22f568(0x27c))]()),y(this,'_spreadsheetObject',void 0x0),y(this,_0x22f568(0x32c),0x0),y(this,_0x22f568(0x243),0x0);let {unitId:_0x39c537,subUnitId:_0x45612f}=this['_config'];this['_unitId']=_0x39c537,this['_subUnitId']=_0x45612f,this[_0x22f568(0x2dd)]=_0x39c537+'_'+_0x45612f,this[_0x22f568(0x1a3)]=this[_0x22f568(0x373)][_0x22f568(0x202)](n[_0x22f568(0x398)]);let _0x1369c9=this[_0x22f568(0x373)][_0x22f568(0x202)](o[_0x22f568(0x160)]);this[_0x22f568(0x2da)]=_0x1369c9[_0x22f568(0x20d)](_0x39c537);let _0x2022d0=this[_0x22f568(0x2da)][_0x22f568(0x397)](s[_0x22f568(0x13e)])[_0x22f568(0x23d)](_0x45612f);this[_0x22f568(0x372)]=_0x2022d0,this[_0x22f568(0x288)][_0x22f568(0x329)]='__root',this[_0x22f568(0xd8)]();}[_0x199a36(0x2ff)](){const _0x3c306f=_0x199a36;var _0x3b7a43;super[_0x3c306f(0x2ff)](),this['_effects'][_0x3c306f(0x2ff)](),(_0x3b7a43=this[_0x3c306f(0x1f1)][_0x3c306f(0x3b6)])==null||_0x3b7a43[_0x3c306f(0x11a)](this[_0x3c306f(0x1f1)]);}get[_0x199a36(0x2b0)](){const _0x273ea0=_0x199a36;let {w:_0x3b28f9,h:_0x556118}=this[_0x273ea0(0x32e)][_0x273ea0(0x312)];return{'w':_0x3b28f9*this['_previewScale'],'h':_0x556118*this[_0x273ea0(0x38d)]};}get['margin'](){const _0x2235af=_0x199a36;let _0x7a954f=this[_0x2235af(0x32e)][_0x2235af(0xc1)];return{'top':_0x7a954f[_0x2235af(0x18c)]*this['_previewScale'],'bottom':_0x7a954f['bottom']*this[_0x2235af(0x38d)],'left':_0x7a954f[_0x2235af(0x2a1)]*this[_0x2235af(0x38d)],'right':_0x7a954f[_0x2235af(0x3d0)]*this[_0x2235af(0x38d)]};}[_0x199a36(0xd8)](){const _0x302c61=_0x199a36;let _0x2fc8e0=this[_0x302c61(0x2b0)],_0x56b989=this[_0x302c61(0x32e)]['scale']*this[_0x302c61(0x38d)],_0x3f9ed0=this[_0x302c61(0x374)]?Math[_0x302c61(0x1a8)](0x1,window[_0x302c61(0x20f)]):0x1;this['_engine']=new o[(_0x302c61(0x18e))]('',{'elementWidth':_0x2fc8e0['w'],'elementHeight':_0x2fc8e0['h'],'dpr':_0x3f9ed0,'renderMode':o[_0x302c61(0x246)][_0x302c61(0x209)]}),this[_0x302c61(0xe1)]=new o[(_0x302c61(0xf8))](this[_0x302c61(0x2dd)],this['_engine']),this[_0x302c61(0xe1)][_0x302c61(0xcb)](_0x56b989,_0x56b989),this[_0x302c61(0x259)][_0x302c61(0x125)](this[_0x302c61(0x1f1)],this[_0x302c61(0x374)]),this['_engine']['getCanvas']()[_0x302c61(0x2c5)]()[_0x302c61(0x1f6)](this[_0x302c61(0x2dd)]+'_'+(0x0,n['generateRandomId'])(0x4)),this[_0x302c61(0x3cf)](),this['_addViewport'](),this[_0x302c61(0x2c1)]({'dispose':()=>{const _0x5a97f9=_0x302c61;this[_0x5a97f9(0x259)][_0x5a97f9(0x2ff)](),this['_scene']['dispose'](),this[_0x5a97f9(0x3c2)]();}});}['clearMemory'](){const _0xf3e23f=_0x199a36;this['_skeleton'][_0xf3e23f(0x2b8)]();}[_0x199a36(0x286)](_0x16f3bc){const _0x35bbe9=_0x199a36;this['_scene'][_0x35bbe9(0xcb)](this[_0x35bbe9(0x32e)][_0x35bbe9(0xcb)]*_0x16f3bc,this['_config'][_0x35bbe9(0xcb)]*_0x16f3bc),this[_0x35bbe9(0x38d)]=_0x16f3bc,this['markDirty'](!0x0);}[_0x199a36(0xee)](_0x74d170){const _0x591197=_0x199a36;this['_config']=_0x74d170,this[_0x591197(0x366)](!0x0);}[_0x199a36(0x366)](_0x11520e){this['_dirty']=_0x11520e;}['_addComponent'](){const _0x5e565e=_0x199a36;var _0xd2d2aa;let _0x14f68b=new o[(_0x5e565e(0x2f2))](_0x5e565e(0x1fa),this[_0x5e565e(0x372)],!0x1);_0x14f68b['isPrinting']=!0x0;let _0x258e48=(_0xd2d2aa=this[_0x5e565e(0x2da)])==null?void 0x0:_0xd2d2aa[_0x5e565e(0x2ca)];if(_0x258e48&&ie(_0x258e48,_0x14f68b),this[_0x5e565e(0xe1)][_0x5e565e(0x28a)](_0x14f68b),this['_spreadsheetObject']=_0x14f68b,this[_0x5e565e(0x32e)][_0x5e565e(0x1da)]){let _0x9b9d7d=new o['SpreadsheetRowHeader'](_0x5e565e(0x38b),this[_0x5e565e(0x372)]),_0x458181=new o[(_0x5e565e(0x299))](_0x5e565e(0x3ad),this['_skeleton']);this[_0x5e565e(0xe1)][_0x5e565e(0x328)]([_0x9b9d7d,_0x458181],0x1);}let _0x4523c3=this[_0x5e565e(0x373)][_0x5e565e(0x202)](s[_0x5e565e(0x2a3)]);_0x4523c3[_0x5e565e(0x117)][_0x5e565e(0x320)](_0x4523c3[_0x5e565e(0x117)][_0x5e565e(0x33f)]()[_0x5e565e(0x3ba)])(void 0x0,{'unitId':this['_unitId'],'subUnitId':this[_0x5e565e(0x30b)],'scene':this[_0x5e565e(0xe1)],'engine':this[_0x5e565e(0x259)],'root':this['_root'],'worksheet':this[_0x5e565e(0x372)]['worksheet'],'skeleton':this[_0x5e565e(0x372)],'range':this[_0x5e565e(0x32e)][_0x5e565e(0x21b)],'offset':this[_0x5e565e(0xf7)](),'spreadsheet':this[_0x5e565e(0x2df)],'resourceCollector':this[_0x5e565e(0x333)]});}[_0x199a36(0x37f)](){const _0x15fced=_0x199a36;this['_viewMain']=new o[(_0x15fced(0x167))](o['SHEET_VIEWPORT_KEY'][_0x15fced(0x361)],this['_scene'],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this[_0x15fced(0xeb)]=new o[(_0x15fced(0x167))](o['SHEET_VIEWPORT_KEY'][_0x15fced(0x21a)],this[_0x15fced(0xe1)],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this['_viewTop']=new o[(_0x15fced(0x167))](o[_0x15fced(0xd7)][_0x15fced(0x1a6)],this[_0x15fced(0xe1)],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this['_viewLeftTop']=new o[(_0x15fced(0x167))](o[_0x15fced(0xd7)][_0x15fced(0x208)],this[_0x15fced(0xe1)],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this[_0x15fced(0x32e)][_0x15fced(0x1da)]&&(this[_0x15fced(0x318)]=new o[(_0x15fced(0x167))](o[_0x15fced(0xd7)][_0x15fced(0x2a0)],this[_0x15fced(0xe1)],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this[_0x15fced(0x133)]=new o[(_0x15fced(0x167))](o['SHEET_VIEWPORT_KEY']['VIEW_COLUMN_RIGHT'],this[_0x15fced(0xe1)],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}));}[_0x199a36(0x1dd)](){const _0x2f2b9e=_0x199a36;let {freeze:_0xbf7975,range:_0x22cca3}=this['_config'],{xSplit:_0x3a4ae8,ySplit:_0x152374,startColumn:_0x22b99b,startRow:_0x25f605}=_0xbf7975,{rowHeaderWidth:_0x2c3280,columnHeaderHeight:_0x4f9acb}=this[_0x2f2b9e(0x372)];this[_0x2f2b9e(0xe1)]['scale'](this['_config'][_0x2f2b9e(0xcb)]*this[_0x2f2b9e(0x38d)],this[_0x2f2b9e(0x32e)]['scale']*this['_previewScale']);let _0x4b18f3=this[_0x2f2b9e(0x372)][_0x2f2b9e(0x287)](_0x25f605-_0x152374,_0x22b99b-_0x3a4ae8,!0x1),_0x2a8173=this['_skeleton']['getNoMergeCellWithCoordByIndex'](_0x25f605,_0x22b99b,!0x1),_0x5b388d=_0x3a4ae8>0x0?_0x2a8173['startX']-_0x4b18f3[_0x2f2b9e(0x23c)]:0x0,_0x16ab1f=_0x152374>0x0?_0x2a8173[_0x2f2b9e(0x139)]-_0x4b18f3[_0x2f2b9e(0x139)]:0x0,_0x53c14c={'startX':_0x3a4ae8>0x0?_0x4b18f3[_0x2f2b9e(0x23c)]:0x0,'endX':_0x3a4ae8>0x0?_0x2a8173[_0x2f2b9e(0x23c)]:0x0,'startY':_0x152374>0x0?_0x4b18f3[_0x2f2b9e(0x139)]:0x0,'endY':_0x152374>0x0?_0x2a8173[_0x2f2b9e(0x139)]:0x0},_0x46087=this['_skeleton']['getNoMergeCellWithCoordByIndex'](_0x22cca3[_0x2f2b9e(0x152)],_0x22cca3['startColumn'],!0x1),_0x426018=this['_scene']['getPrecisionScale'](),_0xdb35d4=_0x116d68=>(0x0,o[_0x2f2b9e(0x338)])(_0x116d68,_0x426018[_0x2f2b9e(0xfc)]),_0x3d2d51=_0x257874=>(0x0,o[_0x2f2b9e(0x338)])(_0x257874,_0x426018[_0x2f2b9e(0x26d)]),_0x29b5c9=this[_0x2f2b9e(0x372)][_0x2f2b9e(0x287)](_0x22cca3[_0x2f2b9e(0x1a5)],_0x22cca3[_0x2f2b9e(0x1ce)],!0x1),_0x1174a0=Math[_0x2f2b9e(0x1a8)](0x0,_0xdb35d4(_0x29b5c9['endX'])-Math[_0x2f2b9e(0x1a8)](_0x46087[_0x2f2b9e(0x23c)],_0x53c14c['endX'])),_0x385881=Math[_0x2f2b9e(0x1a8)](0x0,_0x3d2d51(_0x29b5c9['endY'])-_0x3d2d51(Math[_0x2f2b9e(0x1a8)](_0x46087[_0x2f2b9e(0x139)],_0x53c14c[_0x2f2b9e(0x2d9)]))),_0x5d2a43=0x1/Math['max'](_0x426018[_0x2f2b9e(0xfc)],_0x426018[_0x2f2b9e(0x26d)]),_0x176b8b=this[_0x2f2b9e(0x32e)][_0x2f2b9e(0x1da)]?_0x2c3280:0x0,_0x2b6074=this[_0x2f2b9e(0x32e)][_0x2f2b9e(0x1da)]?_0x4f9acb:0x0,_0x4195ae=_0x176b8b+_0x5b388d+_0x1174a0+_0x5d2a43,_0x396c32=_0x2b6074+_0x16ab1f+_0x385881+_0x5d2a43;this[_0x2f2b9e(0x32c)]=_0x4195ae,this[_0x2f2b9e(0x243)]=_0x396c32;let _0x2a1cf5={'x':_0x5b388d,'y':_0x16ab1f},_0x5e9b49=_0x5d2a43,_0x55fd63=_0x5d2a43,_0x48a34d={'x':_0xdb35d4(_0x29b5c9[_0x2f2b9e(0x1d7)])-_0xdb35d4(_0x1174a0)-_0xdb35d4(Math[_0x2f2b9e(0x1a8)](_0x46087[_0x2f2b9e(0x23c)],_0x53c14c['endX'])),'y':_0x3d2d51(_0x29b5c9['endY'])-_0x3d2d51(_0x385881)-_0x3d2d51(Math[_0x2f2b9e(0x1a8)](_0x46087[_0x2f2b9e(0x139)],_0x53c14c[_0x2f2b9e(0x2d9)]))};if(_0x3a4ae8>0x0&&_0x152374>0x0?(this['_viewLeftTop'][_0x2f2b9e(0x311)](),this['_viewLeftTop'][_0x2f2b9e(0x309)]({'top':0x0,'left':0x0,'height':_0x3d2d51(_0x2a1cf5['y']),'width':_0xdb35d4(_0x2a1cf5['x'])}),this['_viewLeftTop'][_0x2f2b9e(0x187)]({'viewportScrollX':_0xdb35d4(_0x53c14c[_0x2f2b9e(0x23c)])+_0xdb35d4(_0x2c3280),'viewportScrollY':_0x3d2d51(_0x53c14c['startY'])+_0x3d2d51(_0x4f9acb)})):this[_0x2f2b9e(0x174)][_0x2f2b9e(0x2ad)](),_0x3a4ae8>0x0?(this[_0x2f2b9e(0xeb)][_0x2f2b9e(0x311)](),this['_viewLeft'][_0x2f2b9e(0x309)]({'top':_0xdb35d4(_0x2a1cf5['y']),'left':0x0,'height':_0x3d2d51(_0x385881)+_0x5e9b49+_0x48a34d['y'],'width':_0xdb35d4(_0x2a1cf5['x'])}),this[_0x2f2b9e(0xeb)][_0x2f2b9e(0x187)]({'viewportScrollX':_0xdb35d4(_0x53c14c[_0x2f2b9e(0x23c)])+_0xdb35d4(_0x2c3280),'viewportScrollY':_0x3d2d51(_0x46087[_0x2f2b9e(0x139)])+_0x3d2d51(_0x4f9acb)-_0x3d2d51(_0x2a1cf5['y'])})):this[_0x2f2b9e(0xeb)]['disable'](),_0x152374>0x0?(this['_viewTop'][_0x2f2b9e(0x311)](),this['_viewTop'][_0x2f2b9e(0x309)]({'top':0x0,'left':_0xdb35d4(_0x2a1cf5['x']),'height':_0x3d2d51(_0x2a1cf5['y']),'width':_0xdb35d4(_0x1174a0)+_0x55fd63+_0x48a34d['x']}),this['_viewTop'][_0x2f2b9e(0x187)]({'viewportScrollX':_0xdb35d4(_0x46087[_0x2f2b9e(0x23c)])+_0xdb35d4(_0x2c3280)-_0xdb35d4(_0x2a1cf5['x']),'viewportScrollY':_0x3d2d51(_0x53c14c[_0x2f2b9e(0x139)])+_0x3d2d51(_0x4f9acb)})):this['_viewTop'][_0x2f2b9e(0x2ad)](),this[_0x2f2b9e(0x32e)][_0x2f2b9e(0x1da)]){let _0x13da67=_0xdb35d4(_0x2c3280),_0x17bdfd=_0x3d2d51(_0x4f9acb),_0x2ebc22=_0xdb35d4(_0x1174a0)+_0x55fd63+_0x48a34d['x'],_0xc23107=_0x3d2d51(_0x385881)+_0x5e9b49+_0x48a34d['y'];this['_viewMain'][_0x2f2b9e(0x309)]({'top':_0x17bdfd,'left':_0x13da67,'height':_0xc23107,'width':_0x2ebc22}),this['_viewMain'][_0x2f2b9e(0x187)]({'viewportScrollX':_0xdb35d4(_0x46087[_0x2f2b9e(0x23c)]),'viewportScrollY':_0x3d2d51(_0x46087[_0x2f2b9e(0x139)])}),this[_0x2f2b9e(0x318)]&&this[_0x2f2b9e(0x133)]&&(this['_viewColumnRight'][_0x2f2b9e(0x311)](),this[_0x2f2b9e(0x133)][_0x2f2b9e(0x309)]({'top':0x0,'left':_0x13da67,'height':_0x17bdfd,'width':_0x2ebc22}),this[_0x2f2b9e(0x133)]['updateScrollVal']({'viewportScrollX':_0xdb35d4(_0x46087[_0x2f2b9e(0x23c)]),'viewportScrollY':0x0}),this[_0x2f2b9e(0x318)][_0x2f2b9e(0x311)](),this[_0x2f2b9e(0x318)][_0x2f2b9e(0x309)]({'top':_0x17bdfd,'left':0x0,'height':_0xc23107,'width':_0x13da67}),this[_0x2f2b9e(0x318)]['updateScrollVal']({'viewportScrollX':0x0,'viewportScrollY':_0x3d2d51(_0x46087[_0x2f2b9e(0x139)])}));}else this['_viewMain'][_0x2f2b9e(0x309)]({'top':_0x3d2d51(_0x2a1cf5['y']),'left':_0xdb35d4(_0x2a1cf5['x']),'height':_0x3d2d51(_0x385881)+_0x5e9b49+_0x48a34d['y'],'width':_0xdb35d4(_0x1174a0)+_0x55fd63+_0x48a34d['x']}),this[_0x2f2b9e(0x2a5)][_0x2f2b9e(0x187)]({'viewportScrollX':_0xdb35d4(_0x46087['startX'])+_0xdb35d4(_0x2c3280)-_0xdb35d4(_0x2a1cf5['x']),'viewportScrollY':_0x3d2d51(_0x46087[_0x2f2b9e(0x139)])+_0x3d2d51(_0x4f9acb)-_0x3d2d51(_0x2a1cf5['y'])});}[_0x199a36(0xf7)](){const _0x2e915e=_0x199a36;let _0x2494f5=this[_0x2e915e(0xc1)],{vAlign:_0x49f6b2,hAlign:_0x559d61}=this[_0x2e915e(0x394)],_0xf4395f=Math['max'](this[_0x2e915e(0xe1)][_0x2e915e(0xfc)],this[_0x2e915e(0xe1)]['scaleY']),_0x54e471;switch(_0x559d61){case t[_0x2e915e(0x180)]['Start']:_0x54e471=_0x2494f5[_0x2e915e(0x2a1)];break;case t[_0x2e915e(0x180)][_0x2e915e(0x352)]:_0x54e471=this[_0x2e915e(0x2b0)]['w']-this[_0x2e915e(0x32c)]*_0xf4395f-_0x2494f5[_0x2e915e(0x3d0)];break;default:_0x54e471=_0x2494f5[_0x2e915e(0x2a1)]+(this[_0x2e915e(0x2b0)]['w']-this[_0x2e915e(0x32c)]*_0xf4395f-_0x2494f5[_0x2e915e(0x2a1)]-_0x2494f5[_0x2e915e(0x3d0)])/0x2;}let _0x5eb66f;switch(_0x49f6b2){case t['PrintAlign']['Start']:_0x5eb66f=_0x2494f5[_0x2e915e(0x18c)];break;case t[_0x2e915e(0x180)][_0x2e915e(0x352)]:_0x5eb66f=this[_0x2e915e(0x2b0)]['h']-this[_0x2e915e(0x243)]*_0xf4395f-_0x2494f5['bottom'];break;default:_0x5eb66f=(this[_0x2e915e(0x2b0)]['h']-this[_0x2e915e(0x243)]*_0xf4395f-_0x2494f5['top']-_0x2494f5[_0x2e915e(0x235)])/0x2+_0x2494f5[_0x2e915e(0x18c)];}return{'offsetX':Math[_0x2e915e(0x1ed)](_0x54e471),'offsetY':Math[_0x2e915e(0x1ed)](_0x5eb66f),'scale':_0xf4395f};}[_0x199a36(0x136)](){const _0x15da4a=_0x199a36;this[_0x15da4a(0x1dd)](),this[_0x15da4a(0x113)][_0x15da4a(0x2ff)](),this['_effects']=new n[(_0x15da4a(0x30a))]();let _0x143fa1=this['_accessor'][_0x15da4a(0x202)](s['SheetPrintInterceptorService']),{offsetX:_0x297aa6,offsetY:_0x550a10,scale:_0x3cf8c3}=this[_0x15da4a(0xf7)](),_0x302083=_0x297aa6,_0x4530c7=_0x550a10;this[_0x15da4a(0x288)]['style'][_0x15da4a(0x2a1)]=_0x302083+'px',this[_0x15da4a(0x288)][_0x15da4a(0x30d)][_0x15da4a(0x18c)]=_0x4530c7+'px';let _0x360ac9=this[_0x15da4a(0x32c)]*_0x3cf8c3,_0x1b4a5a=this[_0x15da4a(0x243)]*_0x3cf8c3;this[_0x15da4a(0x288)][_0x15da4a(0x30d)][_0x15da4a(0x26c)]=_0x360ac9+'px',this[_0x15da4a(0x288)][_0x15da4a(0x30d)][_0x15da4a(0x2f0)]=_0x1b4a5a+'px',this[_0x15da4a(0x288)]['style'][_0x15da4a(0x395)]=_0x15da4a(0xf0),this[_0x15da4a(0x288)]['style'][_0x15da4a(0x27d)]=_0x15da4a(0xd9),_0x143fa1[_0x15da4a(0x117)][_0x15da4a(0x320)](_0x143fa1[_0x15da4a(0x117)][_0x15da4a(0x33f)]()[_0x15da4a(0xfa)])(this[_0x15da4a(0x113)],{'unitId':this[_0x15da4a(0x1d1)],'subUnitId':this[_0x15da4a(0x30b)],'scene':this['_scene'],'engine':this[_0x15da4a(0x259)],'root':this['_root'],'worksheet':this['_skeleton']['worksheet'],'skeleton':this[_0x15da4a(0x372)],'range':this['_config'][_0x15da4a(0x21b)],'offset':this[_0x15da4a(0xf7)](),'resourceCollector':this[_0x15da4a(0x333)]});}[_0x199a36(0x13a)](){const _0xbc7501=_0x199a36;this[_0xbc7501(0x39d)]&&this[_0xbc7501(0x136)]();let _0x116395=this[_0xbc7501(0x259)][_0xbc7501(0x179)]()[_0xbc7501(0x2c5)](),{gridlines:_0x3749d5}=this[_0xbc7501(0x394)],{offsetX:_0x447b69,offsetY:_0x3835fd}=this[_0xbc7501(0xf7)]();this[_0xbc7501(0x2df)][_0xbc7501(0x260)](!_0x3749d5),this[_0xbc7501(0x2df)][_0xbc7501(0x30c)](),this[_0xbc7501(0xe1)][_0xbc7501(0xcf)](),_0x116395['save'](),_0x116395['translateWithPrecision'](_0x447b69,_0x3835fd),this[_0xbc7501(0xe1)][_0xbc7501(0x2f5)](),_0x116395[_0xbc7501(0x252)]();}['_renderHeaderFooterByCustom'](_0x522e20,_0x15e353,_0x43cb17){const _0x1d08c2=_0x199a36;let {w:_0x3ef6a9,h:_0x12e448}=this['paperSize'],_0x32ce2b=this['_engine']['getCanvas']()[_0x1d08c2(0x2c5)]();_0x32ce2b[_0x1d08c2(0x217)](),_0x32ce2b[_0x1d08c2(0x1c7)]='13px\x20'+o[_0x1d08c2(0x2b3)];let _0x5e7138=0x13*this['_previewScale'],_0x5ef115=0x14*this[_0x1d08c2(0x38d)],_0x518428={'workbook':_0x15e353,'worksheet':_0x43cb17,'now':(0x0,n[_0x1d08c2(0x3bb)])(),'localeService':this[_0x1d08c2(0x373)][_0x1d08c2(0x202)](n[_0x1d08c2(0x2d4)]),'page':this[_0x1d08c2(0x32e)][_0x1d08c2(0xe7)],'pageTotal':this[_0x1d08c2(0x32e)][_0x1d08c2(0x33c)],'sheetPageTotal':this['_config'][_0x1d08c2(0x22b)],'sheetPage':this[_0x1d08c2(0x32e)][_0x1d08c2(0x1a0)]};if(_0x522e20[_0x1d08c2(0x2f1)]){let _0x50ffac=V(_0x522e20[_0x1d08c2(0x2f1)],_0x518428);_0x32ce2b[_0x1d08c2(0x146)](_0x50ffac,_0x5e7138,_0x5ef115);}if(_0x522e20[_0x1d08c2(0xec)]){let _0x4ed795=V(_0x522e20['topCenter'],_0x518428),_0x39dbe0=_0x32ce2b['measureText'](_0x4ed795);_0x32ce2b['fillText'](_0x4ed795,(_0x3ef6a9-_0x39dbe0['width'])/0x2,_0x5ef115);}if(_0x522e20['topRight']){let _0x17a54d=V(_0x522e20[_0x1d08c2(0x11c)],_0x518428),_0x1eff50=_0x32ce2b[_0x1d08c2(0x37a)](_0x17a54d);_0x32ce2b[_0x1d08c2(0x146)](_0x17a54d,_0x3ef6a9-_0x1eff50[_0x1d08c2(0x26c)]-_0x5e7138,_0x5ef115);}if(_0x522e20[_0x1d08c2(0x1b4)]){let _0x3827ab=V(_0x522e20['bottomLeft'],_0x518428);_0x32ce2b[_0x1d08c2(0x146)](_0x3827ab,_0x5e7138,_0x12e448-_0x5ef115);}if(_0x522e20[_0x1d08c2(0x1bd)]){let _0x454bee=V(_0x522e20[_0x1d08c2(0x1bd)],_0x518428),_0xe5d684=_0x32ce2b[_0x1d08c2(0x37a)](_0x454bee);_0x32ce2b['fillText'](_0x454bee,(_0x3ef6a9-_0xe5d684[_0x1d08c2(0x26c)])/0x2,_0x12e448-_0x5ef115);}if(_0x522e20[_0x1d08c2(0x159)]){let _0x331c27=V(_0x522e20['bottomRight'],_0x518428),_0x5b7880=_0x32ce2b[_0x1d08c2(0x37a)](_0x331c27);_0x32ce2b[_0x1d08c2(0x146)](_0x331c27,_0x3ef6a9-_0x5b7880[_0x1d08c2(0x26c)]-_0x5e7138,_0x12e448-_0x5ef115);}_0x32ce2b[_0x1d08c2(0x252)]();}[_0x199a36(0x12f)](){const _0x1ed326=_0x199a36;let _0x515456=this[_0x1ed326(0x1a3)]['getUnit'](this[_0x1ed326(0x32e)][_0x1ed326(0x1f0)],n[_0x1ed326(0x23e)][_0x1ed326(0x3a5)]),_0x367ccb=_0x515456==null?void 0x0:_0x515456[_0x1ed326(0x1b8)](this[_0x1ed326(0x32e)][_0x1ed326(0x1cf)]),{headerFooter:_0x2a0668,isCustomHeaderFooter:_0x251160,headerFooterSetting:_0x50a185}=this[_0x1ed326(0x394)],{w:_0x4be7fb,h:_0x39ad02}=this[_0x1ed326(0x2b0)],_0x376ce8=this[_0x1ed326(0x259)][_0x1ed326(0x179)]()['getContext']();if(!_0x515456||!_0x367ccb)return;if(_0x251160&&_0x50a185){this['_renderHeaderFooterByCustom'](_0x50a185,_0x515456,_0x367ccb);return;}_0x376ce8['save'](),_0x376ce8[_0x1ed326(0x1c7)]=_0x1ed326(0x12c)+o['DEFAULT_FONTFACE_PLANE'];let _0x3413f6=0x13*this[_0x1ed326(0x38d)],_0x52a821=0x14*this[_0x1ed326(0x38d)];if(_0x2a0668['includes'](_0x1ed326(0x19c))||_0x2a0668['includes']('Time')){let _0x45ab6e=new Date()[_0x1ed326(0x31e)]();_0x2a0668[_0x1ed326(0x324)](_0x1ed326(0x19c))?_0x2a0668['includes'](_0x1ed326(0x2e9))||(_0x45ab6e=new Date()[_0x1ed326(0x28e)]()):_0x45ab6e=new Date()[_0x1ed326(0x345)](),_0x376ce8[_0x1ed326(0x146)](_0x45ab6e,_0x3413f6,_0x39ad02-_0x52a821);}_0x2a0668[_0x1ed326(0x18a)](_0x4dbef5=>{const _0x5eaa98=_0x1ed326;switch(_0x4dbef5){case'WorkbookTitle':{let _0x4dc3d7=_0x515456[_0x5eaa98(0x298)],_0x46e8be=_0x376ce8[_0x5eaa98(0x37a)](_0x4dc3d7),_0x1357a5=_0x46e8be[_0x5eaa98(0x340)]+_0x46e8be[_0x5eaa98(0x330)];_0x376ce8[_0x5eaa98(0x146)](_0x4dc3d7,_0x3413f6,_0x52a821+_0x1357a5);break;}case _0x5eaa98(0x1bf):{let _0xbec024=_0x367ccb[_0x5eaa98(0x204)](),_0x3fc54e=_0x376ce8['measureText'](_0xbec024),_0x28ff34=_0x3fc54e['fontBoundingBoxAscent']+_0x3fc54e[_0x5eaa98(0x330)];_0x376ce8[_0x5eaa98(0x146)](_0xbec024,_0x4be7fb-(_0x3fc54e[_0x5eaa98(0x26c)]+_0x3413f6),_0x52a821+_0x28ff34);break;}case _0x5eaa98(0x25d):{let _0x5c6a63=''+this[_0x5eaa98(0x32e)]['page'],_0x44f0e6=_0x376ce8[_0x5eaa98(0x37a)](_0x5c6a63);_0x376ce8['fillText'](_0x5c6a63,_0x4be7fb-(_0x44f0e6[_0x5eaa98(0x26c)]+_0x3413f6),_0x39ad02-_0x52a821);break;}}}),_0x376ce8[_0x1ed326(0x252)]();}[_0x199a36(0x30e)](){const _0x36228f=_0x199a36;let _0x220309=this['_accessor']['get'](n[_0x36228f(0x2d4)]),_0x2a2bea=this['_engine'][_0x36228f(0x179)]()[_0x36228f(0x2c5)]();_0x2a2bea[_0x36228f(0x217)]();let _0x594db9=0x14*this['_previewScale'];_0x2a2bea[_0x36228f(0x29c)]='rgba(0,0,0,0.3)',_0x2a2bea[_0x36228f(0x1c7)]=_0x36228f(0xc3)+o[_0x36228f(0x2b3)];let _0x51ebb2=_0x2a2bea[_0x36228f(0x37a)](_0x220309['t']('sheets-print.limit.waterMark')),_0x14914c=(this['paperSize']['w']-_0x51ebb2[_0x36228f(0x26c)])/0x2,_0xfc8478=_0x51ebb2[_0x36228f(0x340)]+_0x51ebb2[_0x36228f(0x330)];_0x2a2bea['fillText'](_0x220309['t']('sheets-print.limit.waterMark'),_0x14914c,_0x594db9+_0xfc8478),_0x2a2bea['fillText'](_0x220309['t'](_0x36228f(0x1c9)),_0x14914c,this[_0x36228f(0x2b0)]['h']-_0x594db9),_0x2a2bea[_0x36228f(0x252)]();}[_0x199a36(0x2f5)](){const _0x5df032=_0x199a36;this[_0x5df032(0x259)][_0x5df032(0x186)](),this['_renderMainScene'](),this[_0x5df032(0x12f)](),this[_0x5df032(0x2e6)]&&(0x0,o[_0x5df032(0x277)])(this[_0x5df032(0x259)][_0x5df032(0x179)]()['getContext'](),this[_0x5df032(0x2e6)],this[_0x5df032(0x2e6)][_0x5df032(0x201)],this[_0x5df032(0x373)]['get'](n[_0x5df032(0x2e1)])[_0x5df032(0x350)]());}[_0x199a36(0x326)](){const _0x4a6f96=_0x199a36;let _0x2426f0=this[_0x4a6f96(0x221)][_0x4a6f96(0x1eb)]['subscribeEvent'](()=>{this['render']();});this['disposeWithMe'](_0x2426f0),this[_0x4a6f96(0xd5)]()['then'](()=>this[_0x4a6f96(0x2f5)]());}[_0x199a36(0xd5)](_0x3fa1c5){const _0x1f6bc7=_0x199a36;return this[_0x1f6bc7(0x333)][_0x1f6bc7(0x2a8)](_0x3fa1c5);}[_0x199a36(0x2b4)](){const _0x5c8b07=_0x199a36;return this['_engine'][_0x5c8b07(0x179)]()[_0x5c8b07(0x155)](_0x5c8b07(0x35e),0x1);}};function oe(_0x28c906){const _0x17c861=_0x199a36;let _0x2bdb00=_0x28c906[_0x17c861(0x170)]((_0x1ce1ec,_0x531e01)=>_0x1ce1ec+_0x531e01[_0x17c861(0x29f)]['length'],0x0),_0x227da0=new Map(),_0x4fc45b=new Map();_0x28c906[_0x17c861(0x18a)](_0x14f243=>{const _0xffdb1a=_0x17c861;let _0x1a4e39=_0x14f243[_0xffdb1a(0x29f)][_0xffdb1a(0x368)],_0x463816=_0x4fc45b[_0xffdb1a(0x202)](_0x14f243[_0xffdb1a(0x1cf)])??0x0;_0x4fc45b[_0xffdb1a(0x38c)](_0x14f243[_0xffdb1a(0x1cf)],_0x1a4e39+_0x463816);});let _0x386cf0=0x0;return _0x28c906[_0x17c861(0x1e8)](_0x12ac2a=>{const _0xf0f653=_0x17c861;let _0x54e6f1=_0x12ac2a['pages']['length'],_0x155bd3=_0x227da0[_0xf0f653(0x202)](_0x12ac2a[_0xf0f653(0x1cf)])??0x0,_0x8ec8cb=_0x12ac2a[_0xf0f653(0x29f)]['map']((_0x4ac864,_0x30f6b6)=>(_0x386cf0++,{..._0x12ac2a,'range':_0x4ac864,'page':_0x386cf0,'pageTotal':_0x2bdb00,'sheetPageTotal':_0x4fc45b[_0xf0f653(0x202)](_0x12ac2a[_0xf0f653(0x1cf)]),'sheetPage':_0x30f6b6+0x1+_0x155bd3}));return _0x227da0['has'](_0x12ac2a[_0xf0f653(0x1cf)])?_0x227da0['set'](_0x12ac2a[_0xf0f653(0x1cf)],_0x227da0['get'](_0x12ac2a['subUnitId'])+_0x54e6f1):_0x227da0[_0xf0f653(0x38c)](_0x12ac2a[_0xf0f653(0x1cf)],_0x54e6f1),_0x8ec8cb;})[_0x17c861(0x143)]();}let se=0x0,U=class{constructor(_0x539fed,_0x569feb,_0x377f4b,_0x53ccc,_0x72a9c8,_0x2dfd22,_0x45b7eb){const _0x1516ef=_0x199a36;this['_injector']=_0x539fed,this[_0x1516ef(0x34f)]=_0x569feb,this['_sheetPrintManagerService']=_0x377f4b,this[_0x1516ef(0x310)]=_0x53ccc,this['_messageService']=_0x72a9c8,this[_0x1516ef(0x163)]=_0x2dfd22,this['_printPreparationService']=_0x45b7eb;}async[_0x199a36(0x24b)](_0x377b95,_0x31dce9){const _0x326d6b=_0x199a36;await Promise[_0x326d6b(0xe9)](Array['from'](new Set(_0x377b95['map'](_0xa6968c=>_0xa6968c[_0x326d6b(0x1f0)])),_0x16c419=>this['_printPreparationService'][_0x326d6b(0x136)]({'unitId':_0x16c419,'unitType':n[_0x326d6b(0x23e)][_0x326d6b(0x3a5)],'dpr':0x1})));let _0x3b69f6=oe(_0x377b95),{ls:_0x277a14,pbk:_0x5c36ad}=this[_0x326d6b(0x163)]['getConfig'](e['LS_CONFIG_KEY'])??{},_0x512f46=(0x0,e[_0x326d6b(0x1d4)])()?0x1/0x0:ee(0x3,_0x277a14,_0x5c36ad)['page'];_0x3b69f6=_0x3b69f6[_0x326d6b(0x319)](0x0,_0x512f46);let _0xd1345a=document['createElement']('div');_0xd1345a[_0x326d6b(0x329)]=t['PRINT_CONTAINER_CLASS'];let _0x50ae61=_0x3b69f6[_0x326d6b(0x1e8)](_0x5aa7a5=>{const _0x236e9b=_0x326d6b;let _0x190383=new ae(this[_0x236e9b(0x2ce)],_0x5aa7a5,_0x31dce9,!0x1);return _0x190383[_0x236e9b(0x2d2)][_0x236e9b(0x329)]=t[_0x236e9b(0x291)],_0x190383;});_0x50ae61[_0x326d6b(0x18a)](_0x4a17b0=>{const _0x23a74b=_0x326d6b;_0xd1345a['appendChild'](_0x4a17b0['container']),_0x4a17b0[_0x23a74b(0x2d2)][_0x23a74b(0x27a)](_0x4a17b0[_0x23a74b(0x151)]),_0x4a17b0[_0x23a74b(0x136)](),_0x4a17b0[_0x23a74b(0x366)](!0x1);});let _0x351aea=this[_0x326d6b(0x10e)]['layoutConfig'],_0x5aece2=n[_0x326d6b(0x36c)][_0x351aea[_0x326d6b(0x2b0)]],_0x1bb713=(0x0,t[_0x326d6b(0x165)])(_0x5aece2[_0x326d6b(0x26c)],_0x5aece2[_0x326d6b(0x2f0)],_0x351aea[_0x326d6b(0x24c)]);return document[_0x326d6b(0x392)][_0x326d6b(0x27a)](_0x1bb713),document[_0x326d6b(0x392)][_0x326d6b(0x27a)](_0xd1345a),await Promise[_0x326d6b(0xe9)](_0x50ae61[_0x326d6b(0x1e8)](_0x925741=>_0x925741[_0x326d6b(0xd5)]())),new Promise(_0x4a9392=>{window['onbeforeprint']=()=>{const _0x8071e8=_0x42e2;_0x50ae61[_0x8071e8(0x18a)](_0x260fa4=>{const _0x2c9e7c=_0x8071e8;_0x260fa4[_0x2c9e7c(0x2f5)](),_0x260fa4['clearMemory']();});},window['onafterprint']=()=>{const _0x581d84=_0x42e2;_0x50ae61[_0x581d84(0x18a)](_0x27e748=>{const _0xa7f68c=_0x581d84;_0x27e748[_0xa7f68c(0x2ff)]();}),document[_0x581d84(0x392)][_0x581d84(0x11a)](_0xd1345a),document['body'][_0x581d84(0x11a)](_0x1bb713),this[_0x581d84(0x34f)][_0x581d84(0x256)](),this['_sheetPrintManagerService'][_0x581d84(0x16f)](),this[_0x581d84(0x1f2)][_0x581d84(0xca)](),_0x50ae61=[],_0x4a9392(!0x0);},window['print']();});}[_0x199a36(0x237)](_0x1097b1,_0x25494d,_0xa8c862,_0x3c06b8){const _0x494302=_0x199a36;if(!F(this[_0x494302(0x2ce)])){let _0x356c30=(Date[_0x494302(0x190)]()-se)/0x3e8;if(se=Date['now'](),_0x356c30<=0x1e)return!0x1;}let _0x52b4ef=this['_renderManagerService'][_0x494302(0x20d)](_0x1097b1);if(!_0x52b4ef)return!0x1;let _0x31f5ca=_0x52b4ef['with'](s['SheetSkeletonManagerService'])[_0x494302(0x23d)](_0x25494d);if(!_0x31f5ca)return!0x1;let _0x3ac64b=_0x31f5ca[_0x494302(0x26e)][_0xa8c862[_0x494302(0x1ce)]]-(_0x31f5ca[_0x494302(0x26e)][_0xa8c862[_0x494302(0x176)]-0x1]||0x0),_0x3875c2=_0x31f5ca['rowHeightAccumulation'][_0xa8c862['endRow']]-(_0x31f5ca[_0x494302(0xf6)][_0xa8c862['startRow']-0x1]||0x0),_0x23aee5=_0x31f5ca['columnHeaderHeight'],_0x3fc2f0=_0x31f5ca[_0x494302(0x21c)],_0xeafa68=1.5,_0x1ba083=new ae(this['_injector'],{'unitId':_0x1097b1,'subUnitId':_0x25494d,'range':_0xa8c862,'freeze':M,'scale':_0xeafa68,'page':0x1,'pageSize':_0x3c06b8?{'w':(_0x3ac64b+_0x3fc2f0)*_0xeafa68+0x1,'h':(_0x3875c2+_0x23aee5)*_0xeafa68+0x1}:{'w':_0x3ac64b*_0xeafa68+0x1,'h':_0x3875c2*_0xeafa68+0x1},'margin':t[_0x494302(0x2ee)][t[_0x494302(0x183)]['None']],'pageTotal':0x1,'sheetPageTotal':0x1,'sheetPage':0x1,'includeHeaderDimensions':_0x3c06b8??!0x1},{'gridlines':!0x0,'hAlign':t[_0x494302(0x180)][_0x494302(0x13b)],'vAlign':t[_0x494302(0x180)][_0x494302(0x13b)],'headerFooter':[],'headerFooterSetting':E,'isCustomHeaderFooter':!0x1},!0x1),_0x3389b5=document[_0x494302(0x351)]('div');_0x3389b5['className']=t[_0x494302(0x214)],_0x1ba083[_0x494302(0x2d2)]['className']=t[_0x494302(0x291)],_0x3389b5['appendChild'](_0x1ba083[_0x494302(0x2d2)]),document[_0x494302(0x392)]['appendChild'](_0x3389b5),_0x1ba083[_0x494302(0x136)](),_0x1ba083['render']();let _0x359331=_0x1ba083[_0x494302(0x2b4)]();return _0x1ba083[_0x494302(0x2ff)](),document[_0x494302(0x392)][_0x494302(0x11a)](_0x3389b5),_0x359331;}};U=O([D(0x0,(0x0,n['Inject'])(n[_0x199a36(0x31a)])),D(0x1,b),D(0x2,k),D(0x3,o[_0x199a36(0x160)]),D(0x4,i[_0x199a36(0x154)]),D(0x5,n[_0x199a36(0x383)]),D(0x6,t[_0x199a36(0xc8)])],U);function ce(_0x405e02,_0x303a94){const _0x5cfff5=_0x199a36;let _0x526e95=atob(_0x405e02[_0x5cfff5(0x18d)](',')[0x1]),_0x46b9e5=new ArrayBuffer(_0x526e95['length']),_0x10091f=new Uint8Array(_0x46b9e5);for(let _0x3f76cd=0x0;_0x3f76cd<_0x526e95[_0x5cfff5(0x368)];_0x3f76cd++)_0x10091f[_0x3f76cd]=_0x526e95[_0x5cfff5(0x2fb)](_0x3f76cd);return new Blob([_0x46b9e5],{'type':_0x303a94});}function _0x42e2(_0x334928,_0x14ca8f){_0x334928=_0x334928-0xc0;const _0x2063e6=_0x2063();let _0x42e221=_0x2063e6[_0x334928];return _0x42e221;}const le={'type':n[_0x199a36(0x223)][_0x199a36(0x2f3)],'id':_0x199a36(0x11f),async 'handler'(_0x2548dd){const _0x438f72=_0x199a36;var _0x1e3ebe;let _0x1c410d=_0x2548dd[_0x438f72(0x202)](r[_0x438f72(0x137)]),_0x322f54=(_0x1e3ebe=_0x1c410d[_0x438f72(0x255)]())==null?void 0x0:_0x1e3ebe[0x0],_0xcd792b=_0x2548dd[_0x438f72(0x202)](U),_0x1fe7dc=_0x1c410d[_0x438f72(0x112)](),_0x3e3a26=_0x2548dd['get'](i[_0x438f72(0x154)]),_0x3b538c=_0x2548dd[_0x438f72(0x202)](n[_0x438f72(0x398)]),_0x371a6e=_0x2548dd[_0x438f72(0x202)](n['LocaleService']);if(!_0x322f54||!_0x1fe7dc)return!0x1;let _0x477a11=(0x0,r[_0x438f72(0x1bc)])(_0x3b538c);if(!_0x477a11)return!0x1;let {unitId:_0x26bfa8,subUnitId:_0x384d10}=_0x477a11,_0x541574=_0xcd792b['getRangeImage'](_0x26bfa8,_0x384d10,_0x322f54[_0x438f72(0x21b)]);if(!_0x541574)return!0x1;try{return await navigator['clipboard'][_0x438f72(0x123)]([new ClipboardItem({'image/png':ce(_0x541574,'image/png')})]),_0x3e3a26[_0x438f72(0x3a3)]({'type':c[_0x438f72(0x28c)]['Success'],'content':_0x371a6e['t'](_0x438f72(0x2d6))}),!0x0;}catch{return _0x3e3a26[_0x438f72(0x3a3)]({'type':c[_0x438f72(0x28c)]['Error'],'content':_0x371a6e['t'](_0x438f72(0x150))}),!0x1;}}},W=(0x0,n[_0x199a36(0x34e)])(_0x199a36(0x3c0));var ue=class extends n['Disposable']{constructor(..._0x196e67){const _0x404da9=_0x199a36;super(..._0x196e67),y(this,_0x404da9(0x2f8),new a[(_0x404da9(0x20c))](!0x1)),y(this,_0x404da9(0x12e),this[_0x404da9(0x2f8)]);}get[_0x199a36(0x148)](){const _0x24d718=_0x199a36;return this[_0x24d718(0x2f8)][_0x24d718(0x282)];}[_0x199a36(0x3a3)](){const _0x502206=_0x199a36;this[_0x502206(0x2f8)]['next'](!0x0);}[_0x199a36(0x1a9)](){const _0x1200c8=_0x199a36;this[_0x1200c8(0x2f8)][_0x1200c8(0x20e)](!0x1);}[_0x199a36(0x2ff)](){const _0x578996=_0x199a36;super[_0x578996(0x2ff)](),this[_0x578996(0x2f8)][_0x578996(0x28b)]();}};const de=_0x199a36(0x219),G={'id':_0x199a36(0x22c),'type':n[_0x199a36(0x223)][_0x199a36(0x2f3)],'handler':_0x2ff2e9=>{const _0x45a4f4=_0x199a36;let _0x547ea9=_0x2ff2e9[_0x45a4f4(0x202)](i[_0x45a4f4(0x11b)]),_0x464c87=_0x2ff2e9['get'](W),_0xfa8173=_0x2ff2e9[_0x45a4f4(0x202)](k),_0x31bf41=_0x2ff2e9[_0x45a4f4(0x202)](n['LocaleService']);return _0xfa8173[_0x45a4f4(0x248)](),_0x464c87[_0x45a4f4(0x3a3)](),_0x547ea9[_0x45a4f4(0x11e)]({'header':{'title':_0x31bf41['t'](_0x45a4f4(0xdf))},'children':{'label':de},'onClose':()=>{},'width':0x138}),!0x0;}},fe={'id':'sheet.operation.close-print-grid-sidebar','type':n[_0x199a36(0x223)]['OPERATION'],'handler':_0x20247c=>{const _0x233204=_0x199a36;let _0x5281c7=_0x20247c[_0x233204(0x202)](i[_0x233204(0x11b)]);return _0x20247c[_0x233204(0x202)](W)[_0x233204(0x1a9)](),_0x5281c7[_0x233204(0x256)](),!0x0;}},pe=_0x199a36(0x171);function me(_0x4185c1){const _0x3a5031=_0x199a36;return{'id':pe,'type':i[_0x3a5031(0x2fd)][_0x3a5031(0xe5)],'icon':_0x3a5031(0x134),'tooltip':'sheets-print.menu','hidden$':(0x0,i['getMenuHiddenObservable'])(_0x4185c1,n[_0x3a5031(0x23e)][_0x3a5031(0x3a5)]),'disabled$':(0x0,s['getCurrentRangeDisable$'])(_0x4185c1,{'workbookTypes':[r['WorkbookPrintPermission']]})};}function he(){const _0x41c86a=_0x199a36;return{'id':I['id'],'type':i['MenuItemType']['BUTTON'],'title':_0x41c86a(0x306),'icon':'PrintIcon'};}function ge(_0x3a3a50){const _0x236684=_0x199a36;return{'id':le['id'],'type':i[_0x236684(0x2fd)][_0x236684(0x175)],'title':_0x236684(0x360),'icon':_0x236684(0x121),'tooltip':'sheets-print.screenshot.title','hidden$':(0x0,i[_0x236684(0x2e5)])(_0x3a3a50,n[_0x236684(0x23e)][_0x236684(0x3a5)]),'disabled$':(0x0,s[_0x236684(0x15a)])(_0x3a3a50,{'workbookTypes':[r[_0x236684(0x181)],r[_0x236684(0x3ab)],r[_0x236684(0x220)]],'worksheetTypes':[r[_0x236684(0x1e7)],r[_0x236684(0x210)]],'rangeTypes':[r[_0x236684(0x238)]]})};}function _e(){const _0x24e10d=_0x199a36;return{'id':G['id'],'type':i[_0x24e10d(0x2fd)][_0x24e10d(0x175)],'title':_0x24e10d(0xdf),'icon':'DocSettingIcon'};}const ve={[i[_0x199a36(0x2f7)]['OTHERS']]:{[pe]:{'order':0.01,'gridLayout':{'row':0x1,'column':0x3,'rowSpan':0x2,'columnSpan':0x2,'showLabel':!0x0},'menuItemFactory':me,[I['id']]:{'order':0x0,'menuItemFactory':he},[G['id']]:{'order':0x1,'menuItemFactory':_e}}},[i[_0x199a36(0x304)]['MAIN_AREA']]:{[i[_0x199a36(0x3cb)]['OTHERS']]:{[le['id']]:{'order':2.1,'menuItemFactory':ge}}}};var ye=_0x199a36(0x10c),be=_0x199a36(0x3c8);const xe=_0x199a36(0x283),Se=_0x199a36(0x2c4),K={};let q=class extends n[_0x199a36(0x199)]{constructor(_0xfa890b){const _0xad7d8e=_0x199a36;super(),this[_0xad7d8e(0x2c1)](_0xfa890b[_0xad7d8e(0x1e0)]({'PrintIcon':l[_0xad7d8e(0x134)]}));}};q=O([D(0x0,(0x0,n[_0x199a36(0x24e)])(i[_0x199a36(0x29b)]))],q);const Ce={[i[_0x199a36(0x2f7)][_0x199a36(0x14a)]]:{[I['id']]:{'order':0.01,'menuItemFactory':he}}};function we(_0x30faaa){const _0x142849=_0x199a36;let [_0x5b1f53,_0x280a1c]=(0x0,u[_0x142849(0x2c2)])();return(0x0,u[_0x142849(0x1c6)])(()=>{const _0x5e76e4=_0x142849;_0x30faaa[_0x5e76e4(0x216)](_0x48cfb1=>{_0x280a1c(()=>_0x48cfb1);});},[]),_0x5b1f53;}const Te=(_0xda6adf,_0x7ab095)=>{let _0x586f7b=(0x0,u['useRef'])(!0x1);(0x0,u['useEffect'])(()=>{const _0x4ce633=_0x42e2;if(_0x586f7b[_0x4ce633(0x2b9)])return _0xda6adf();_0x586f7b['current']=!0x0;},_0x7ab095);},Ee=(0x0,u[_0x199a36(0x31c)])((_0x78e089,_0x239695)=>{const _0x122971=_0x199a36;let {config:_0x5c62fa,previewScale:_0x45ccde}=_0x78e089,_0x36a631=(0x0,i[_0x122971(0xfd)])(k),_0x18d68f=(0x0,i['useDependency'])(n['Injector']),_0x575400=(0x0,u['useRef'])(null),_0x4e3363=_0x36a631[_0x122971(0x2b0)],_0x60fbc1=(0x0,i['useObservable'])(_0x36a631[_0x122971(0x2cf)],_0x36a631['renderConfig']),_0x85984c=(0x0,i[_0x122971(0x33e)])(_0x36a631[_0x122971(0x2f4)],_0x36a631[_0x122971(0x31b)]),_0x4cf5da=Math['round'](_0x45ccde*(0x31a/_0x4e3363['w'])*0xa)/0xa,[_0x2ace2a]=(0x0,u[_0x122971(0x2c2)])(()=>new ae(_0x18d68f,_0x5c62fa,_0x60fbc1,!0x0,_0x4cf5da));return(0x0,u[_0x122971(0x1c6)])(()=>(_0x575400[_0x122971(0x2b9)]&&(_0x2ace2a[_0x122971(0x2d2)][_0x122971(0x30d)][_0x122971(0x26c)]='100%',_0x2ace2a[_0x122971(0x2d2)][_0x122971(0x30d)]['height']=_0x122971(0x254),_0x2ace2a[_0x122971(0x2d2)][_0x122971(0x30d)][_0x122971(0x395)]=_0x122971(0x2b5),_0x575400[_0x122971(0x2b9)]['appendChild'](_0x2ace2a[_0x122971(0x2d2)]),_0x2ace2a['container'][_0x122971(0x27a)](_0x2ace2a['root'])),_0x2ace2a['render'](),_0x2ace2a[_0x122971(0x326)](),()=>{const _0x371858=_0x122971;var _0x209546;queueMicrotask(()=>_0x2ace2a[_0x371858(0x2ff)]()),(_0x209546=_0x575400[_0x371858(0x2b9)])==null||_0x209546['removeChild'](_0x2ace2a[_0x371858(0x2d2)]);}),[_0x2ace2a]),Te(()=>{const _0x434626=_0x122971;_0x2ace2a[_0x434626(0x1b9)]=_0x60fbc1,_0x2ace2a[_0x434626(0x2f5)]();},[_0x60fbc1]),Te(()=>{const _0x2fa040=_0x122971;_0x2ace2a[_0x2fa040(0x286)](_0x4cf5da),_0x2ace2a[_0x2fa040(0x221)][_0x2fa040(0x258)](),_0x2ace2a[_0x2fa040(0x2f5)]();},[_0x4cf5da]),Te(()=>{const _0x577dc2=_0x122971;_0x2ace2a[_0x577dc2(0xee)](_0x5c62fa),_0x2ace2a['render']();},[_0x5c62fa[_0x122971(0x388)][_0x122971(0x152)],_0x5c62fa[_0x122971(0x388)][_0x122971(0x176)],_0x5c62fa[_0x122971(0x388)][_0x122971(0xce)],_0x5c62fa[_0x122971(0x388)]['ySplit'],_0x5c62fa[_0x122971(0x21b)][_0x122971(0x152)],_0x5c62fa['range'][_0x122971(0x1a5)],_0x5c62fa[_0x122971(0x21b)]['startColumn'],_0x5c62fa[_0x122971(0x21b)][_0x122971(0x1ce)],_0x5c62fa[_0x122971(0xcb)],_0x85984c[_0x122971(0xc1)]]),(0x0,d[_0x122971(0x1c5)])('div',{'ref':_0x239695,'children':(0x0,d['jsx'])(_0x122971(0x29a),{'ref':_0x575400,'className':_0x122971(0x1ad),'style':{'width':_0x4e3363['w']*_0x4cf5da,'height':_0x4e3363['h']*_0x4cf5da}})});});function De(_0x448e1f){const _0x269872=_0x199a36;let {open:_0x333728,onClose:_0x5cfae9}=_0x448e1f,_0x1915bf=(0x0,i[_0x269872(0xfd)])(n[_0x269872(0x2d4)]),_0x5d5ad2=(0x0,i[_0x269872(0xfd)])(k),[_0x2734ad,_0x164a55]=(0x0,u['useState'])(()=>({..._0x5d5ad2[_0x269872(0x1b9)][_0x269872(0x236)]??E})),_0x23c26e=(_0x40ddac,_0x237691)=>{_0x164a55(_0x17dcaa=>({..._0x17dcaa,[_0x40ddac]:_0x237691}));};return(0x0,d[_0x269872(0x1c5)])(c[_0x269872(0x22d)],{'open':_0x333728,'title':_0x1915bf['t'](_0x269872(0x166)),'showCancel':!0x0,'showOk':!0x0,'onCancel':_0x5cfae9,'onClose':_0x5cfae9,'onOk':()=>{const _0x55ae6b=_0x269872;_0x5d5ad2[_0x55ae6b(0x3b9)]({'headerFooterSetting':_0x2734ad}),_0x5cfae9();},'children':(0x0,d[_0x269872(0x346)])(_0x269872(0x29a),{'className':'univer-grid\x20univer-max-h-[60vh]\x20univer-gap-4\x20univer-overflow-y-auto','children':[(0x0,d[_0x269872(0x346)])(_0x269872(0x39a),{'className':_0x269872(0x271),'children':[(0x0,d[_0x269872(0x1c5)])(_0x269872(0x29a),{'className':_0x269872(0x389),'children':_0x1915bf['t'](_0x269872(0xd0))}),(0x0,d[_0x269872(0x1c5)])(c['FormLayout'],{'label':_0x1915bf['t'](_0x269872(0x3ce)),'children':(0x0,d[_0x269872(0x1c5)])(c[_0x269872(0x279)],{'value':_0x2734ad[_0x269872(0x2f1)],'onChange':_0x2edcba=>_0x23c26e(_0x269872(0x2f1),_0x2edcba)})}),(0x0,d[_0x269872(0x1c5)])(c[_0x269872(0x303)],{'label':_0x1915bf['t'](_0x269872(0x38a)),'children':(0x0,d[_0x269872(0x1c5)])(c[_0x269872(0x279)],{'value':_0x2734ad[_0x269872(0xec)],'onChange':_0x2338c2=>_0x23c26e(_0x269872(0xec),_0x2338c2)})}),(0x0,d[_0x269872(0x1c5)])(c[_0x269872(0x303)],{'label':_0x1915bf['t'](_0x269872(0x1db)),'children':(0x0,d['jsx'])(c[_0x269872(0x279)],{'value':_0x2734ad['topRight'],'onChange':_0x102c0f=>_0x23c26e(_0x269872(0x11c),_0x102c0f)})})]}),(0x0,d[_0x269872(0x346)])('section',{'className':_0x269872(0x271),'children':[(0x0,d[_0x269872(0x1c5)])('div',{'className':_0x269872(0x389),'children':_0x1915bf['t'](_0x269872(0x145))}),(0x0,d[_0x269872(0x1c5)])(c[_0x269872(0x303)],{'label':_0x1915bf['t']('sheets-print.headerFooter.left'),'children':(0x0,d[_0x269872(0x1c5)])(c[_0x269872(0x279)],{'value':_0x2734ad['bottomLeft'],'onChange':_0x3eeabd=>_0x23c26e(_0x269872(0x1b4),_0x3eeabd)})}),(0x0,d[_0x269872(0x1c5)])(c[_0x269872(0x303)],{'label':_0x1915bf['t'](_0x269872(0x38a)),'children':(0x0,d['jsx'])(c[_0x269872(0x279)],{'value':_0x2734ad[_0x269872(0x1bd)],'onChange':_0x2146fa=>_0x23c26e(_0x269872(0x1bd),_0x2146fa)})}),(0x0,d[_0x269872(0x1c5)])(c['FormLayout'],{'label':_0x1915bf['t']('sheets-print.headerFooter.right'),'children':(0x0,d['jsx'])(c[_0x269872(0x279)],{'value':_0x2734ad[_0x269872(0x159)],'onChange':_0x787ebd=>_0x23c26e('bottomRight',_0x787ebd)})})]})]})});}const Oe=(0x0,u[_0x199a36(0x399)])(_0x122d4b=>{const _0x44caf1=_0x199a36;var _0x14ce1d,_0x25dea2,_0x4f07f7,_0x260b3f,_0x55e48c;let {onShowFooterHeaderEditor:_0x479b64,DropdownComponent:_0x244392=c[_0x44caf1(0x2ab)],SelectComponent:_0xda72a8=c['Select']}=_0x122d4b,_0x2afdbb=(0x0,i['useDependency'])(k),_0x819359=(0x0,i[_0x44caf1(0x33e)])(_0x2afdbb[_0x44caf1(0x2f4)],_0x2afdbb[_0x44caf1(0x31b)]),_0x5246b1=(0x0,i[_0x44caf1(0x33e)])(_0x2afdbb[_0x44caf1(0x2cf)],_0x2afdbb['renderConfig']),_0x2b3f36=(0x0,i['useDependency'])(n['LocaleService']),_0x4689f3=(0x0,i[_0x44caf1(0xfd)])(n['IUniverInstanceService']),_0x32c7b3=(0x0,i[_0x44caf1(0xfd)])(n[_0x44caf1(0x158)]),[_0x3e8842,_0x2d7435]=(0x0,u[_0x44caf1(0x2c2)])(null),_0x32032f=((_0x14ce1d=(0x0,i['useDependency'])(n[_0x44caf1(0x383)])['getConfig']('sheets-print.config'))==null?void 0x0:_0x14ce1d[_0x44caf1(0xd4)])??!0x1;(0x0,u[_0x44caf1(0x1c6)])(()=>{const _0x58d0e9=_0x44caf1;let _0x12f926=!0x1;return _0x32c7b3[_0x58d0e9(0x102)](o[_0x58d0e9(0x37e)])[_0x58d0e9(0x216)](_0x2a8b9f=>{const _0x478a2b=_0x58d0e9;if(_0x12f926)return;let _0x2df333,_0x54b42a;(_0x2a8b9f==null?void 0x0:_0x2a8b9f[_0x478a2b(0x34c)])===o['IWatermarkTypeEnum'][_0x478a2b(0x245)]&&_0x2a8b9f['config'][_0x478a2b(0x201)]&&(_0x2df333=new Image(),_0x2df333[_0x478a2b(0x27f)]=_0x2a8b9f[_0x478a2b(0x355)][_0x478a2b(0x201)][_0x478a2b(0x111)]),(_0x2a8b9f==null?void 0x0:_0x2a8b9f[_0x478a2b(0x34c)])===o[_0x478a2b(0x138)]['UserInfo']&&_0x2a8b9f!=null&&_0x2a8b9f['config']['userInfo']&&(_0x54b42a=_0x2a8b9f[_0x478a2b(0x355)][_0x478a2b(0xe3)]);let _0x16abdc=_0x2a8b9f?{..._0x2a8b9f,'user':_0x54b42a,'image':_0x2df333}:null;_0x2d7435(_0x16abdc),_0x32032f&&_0x2afdbb[_0x478a2b(0x3b9)]({'watermark':_0x16abdc});}),()=>{_0x12f926=!0x0;};},[_0x32032f,_0x32c7b3,_0x2afdbb]);let _0x4f4431=_0x4689f3['getCurrentUnitOfType'](n[_0x44caf1(0x23e)][_0x44caf1(0x3a5)]),_0x4405b4=_0x4f4431[_0x44caf1(0x276)]()[_0x44caf1(0x1a7)](_0xcfd0b4=>!_0xcfd0b4[_0x44caf1(0x132)]()),_0x406919=_0x4f4431[_0x44caf1(0x2ec)]();if(!_0x406919)return console['error'](_0x44caf1(0x1b1)),null;let _0x5b8dc2=(_0x110c00,_0x5236d8)=>{const _0x40b0f6=_0x44caf1;let _0x1e3fc9=Math[_0x40b0f6(0x1a8)](0x0,_0x5236d8||0x0),_0x11337e=_0x819359[_0x40b0f6(0x2ba)]||{'top':0x0,'left':0x0,'right':0x0,'bottom':0x0};_0x2afdbb['updateLayoutConfig']({'marginCustom':{..._0x11337e,[_0x110c00]:_0x1e3fc9}});},_0x160955=_0x406919[_0x44caf1(0x28d)](),_0x88e1c8=_0x819359[_0x44caf1(0x189)]!==_0x44caf1(0x35c)&&_0x160955[_0x44caf1(0xce)]<=0x0,_0x11c6f4=_0x819359[_0x44caf1(0x189)]!==_0x44caf1(0x35c)&&_0x160955[_0x44caf1(0x3ca)]<=0x0;return(0x0,d[_0x44caf1(0x1c5)])(_0x44caf1(0x29a),{'className':(0x0,c[_0x44caf1(0xc0)])(_0x44caf1(0x2dc),c[_0x44caf1(0x3b3)]),'children':(0x0,d[_0x44caf1(0x346)])('div',{'className':_0x44caf1(0x20b),'children':[(0x0,d[_0x44caf1(0x1c5)])(c[_0x44caf1(0x303)],{'label':_0x2b3f36['t']('sheets-print.area.title'),'children':(0x0,d[_0x44caf1(0x1c5)])(_0xda72a8,{'className':_0x44caf1(0x267),'value':''+_0x819359['area'],'onChange':_0x174ca8=>{const _0x1e43bf=_0x44caf1;_0x174ca8==='Workbook'?_0x2afdbb[_0x1e43bf(0x1d8)]({'area':_0x174ca8,'subUnitIds':_0x4405b4[_0x1e43bf(0x1e8)](_0x4ea797=>_0x4ea797[_0x1e43bf(0x1c0)]())}):_0x2afdbb[_0x1e43bf(0x1d8)]({'area':_0x174ca8});},'options':[{'label':_0x2b3f36['t'](_0x44caf1(0x178)),'value':'CurrentSheet'},{'label':_0x2b3f36['t']('sheets-print.area.workbook'),'value':_0x44caf1(0x35c)},{'label':_0x2b3f36['t'](_0x44caf1(0x1ac)),'value':_0x44caf1(0xed)},{'label':_0x2b3f36['t']('sheets-print.area.allSelection'),'value':_0x44caf1(0x129)}]})}),_0x819359[_0x44caf1(0x189)]===_0x44caf1(0x35c)?(0x0,d[_0x44caf1(0x1c5)])(c[_0x44caf1(0x303)],{'label':_0x2b3f36['t'](_0x44caf1(0x278)),'children':(0x0,d[_0x44caf1(0x1c5)])(_0x244392,{'overlay':(0x0,d[_0x44caf1(0x1c5)])('div',{'className':(0x0,c[_0x44caf1(0xc0)])(_0x44caf1(0x36b),c['scrollbarClassName']),'children':(0x0,d[_0x44caf1(0x1c5)])(c['CheckboxGroup'],{'direction':_0x44caf1(0x266),'className':_0x44caf1(0x197),'value':_0x819359['subUnitIds'][_0x44caf1(0x1e8)](_0x103cda=>typeof _0x103cda==_0x44caf1(0x3b2)?_0x103cda:_0x103cda['id']),'onChange':_0x4120b5=>{const _0x199057=_0x44caf1;let _0x3d1921=new Set(_0x4120b5);if(_0x3d1921[_0x199057(0x225)]===0x0)_0x2afdbb['updateLayoutConfig']({'subUnitIds':_0x4405b4[_0x199057(0x1e8)](_0xd16e54=>_0xd16e54['getSheetId']())});else{let _0x39c40e=[];_0x4405b4[_0x199057(0x18a)](_0x911568=>{const _0xfce9e0=_0x199057;let _0x2e7152=_0x911568[_0xfce9e0(0x1c0)]();_0x3d1921[_0xfce9e0(0x379)](_0x2e7152)&&_0x39c40e['push'](_0x2e7152);}),_0x2afdbb[_0x199057(0x1d8)]({'subUnitIds':_0x39c40e});}},'children':_0x4405b4[_0x44caf1(0x1e8)](_0x1279f5=>(0x0,d['jsx'])(c[_0x44caf1(0xea)],{'value':_0x1279f5[_0x44caf1(0x1c0)](),'children':_0x1279f5['getName']()},_0x1279f5[_0x44caf1(0x1c0)]()))})}),'children':(0x0,d[_0x44caf1(0x346)])(_0x44caf1(0x29a),{'className':(0x0,c[_0x44caf1(0xc0)])(_0x44caf1(0x168),c[_0x44caf1(0x115)]),'children':[(0x0,d[_0x44caf1(0x1c5)])('span',{'className':_0x44caf1(0x285),'children':_0x819359['subUnitIds'][_0x44caf1(0x368)]===_0x4405b4[_0x44caf1(0x368)]||_0x819359[_0x44caf1(0x19b)][_0x44caf1(0x368)]===0x0?_0x2b3f36['t'](_0x44caf1(0x15c)):''+_0x819359[_0x44caf1(0x19b)][_0x44caf1(0x368)]+_0x2b3f36['t'](_0x44caf1(0xda))}),(0x0,d[_0x44caf1(0x1c5)])(l['MoreDownIcon'],{})]})})}):null,(0x0,d[_0x44caf1(0x1c5)])(c[_0x44caf1(0x303)],{'label':_0x2b3f36['t'](_0x44caf1(0x2be)),'children':(0x0,d[_0x44caf1(0x1c5)])(_0xda72a8,{'className':_0x44caf1(0x267),'value':_0x819359[_0x44caf1(0x2b0)],'options':[{'label':_0x2b3f36['t'](_0x44caf1(0x16c)),'value':n['PaperType']['Letter']},{'label':_0x2b3f36['t'](_0x44caf1(0x14b)),'value':n['PaperType'][_0x44caf1(0x198)]},{'label':_0x2b3f36['t'](_0x44caf1(0x247)),'value':n[_0x44caf1(0x1c1)][_0x44caf1(0x274)]},{'label':_0x2b3f36['t'](_0x44caf1(0x1b2)),'value':n[_0x44caf1(0x1c1)][_0x44caf1(0x1cc)]},{'label':_0x2b3f36['t'](_0x44caf1(0x384)),'value':n[_0x44caf1(0x1c1)]['Executive']},{'label':_0x2b3f36['t'](_0x44caf1(0x39e)),'value':n[_0x44caf1(0x1c1)]['Folio']},{'label':_0x2b3f36['t'](_0x44caf1(0x321)),'value':n[_0x44caf1(0x1c1)]['A3']},{'label':_0x2b3f36['t']('sheets-print.size.a4'),'value':n[_0x44caf1(0x1c1)]['A4']},{'label':_0x2b3f36['t'](_0x44caf1(0x12b)),'value':n[_0x44caf1(0x1c1)]['A5']},{'label':_0x2b3f36['t']('sheets-print.size.b4'),'value':n['PaperType']['B4']},{'label':_0x2b3f36['t']('sheets-print.size.b5'),'value':n[_0x44caf1(0x1c1)]['B5']}],'onChange':_0x507ca3=>{const _0x4b91be=_0x44caf1;_0x2afdbb[_0x4b91be(0x1d8)]({'paperSize':_0x507ca3});}})}),(0x0,d['jsx'])(c[_0x44caf1(0x303)],{'label':_0x2b3f36['t'](_0x44caf1(0x354)),'children':(0x0,d[_0x44caf1(0x1c5)])(_0xda72a8,{'className':_0x44caf1(0x267),'value':_0x819359[_0x44caf1(0xc1)],'options':[{'label':_0x2b3f36['t'](_0x44caf1(0x23b)),'value':t[_0x44caf1(0x183)][_0x44caf1(0x2c7)]},{'label':_0x2b3f36['t'](_0x44caf1(0x301)),'value':t['PrintPaperMargin'][_0x44caf1(0x2e0)]},{'label':_0x2b3f36['t'](_0x44caf1(0x2d5)),'value':t[_0x44caf1(0x183)][_0x44caf1(0x2fa)]},{'label':_0x2b3f36['t'](_0x44caf1(0xf9)),'value':t[_0x44caf1(0x183)][_0x44caf1(0x110)]}],'onChange':_0x40d4e4=>{const _0x549897=_0x44caf1;let _0x3a270c=t[_0x549897(0x2ee)][_0x819359[_0x549897(0xc1)]];_0x2afdbb['updateLayoutConfig']({'margin':_0x40d4e4,'marginCustom':_0x40d4e4===t['PrintPaperMargin']['Custom']?_0x3a270c:t[_0x549897(0x2ee)][_0x40d4e4]});}})}),_0x819359[_0x44caf1(0xc1)]===t['PrintPaperMargin']['Custom']&&(0x0,d[_0x44caf1(0x1c5)])(c['FormLayout'],{'children':(0x0,d[_0x44caf1(0x346)])(_0x44caf1(0x29a),{'className':_0x44caf1(0x308),'children':[(0x0,d[_0x44caf1(0x346)])('div',{'children':[(0x0,d[_0x44caf1(0x1c5)])(_0x44caf1(0x3c7),{'className':_0x44caf1(0x18f),'children':_0x2b3f36['t']('sheets-print.margin.top')}),(0x0,d['jsx'])(c['Input'],{'type':_0x44caf1(0xe4),'value':String(((_0x25dea2=_0x819359[_0x44caf1(0x2ba)])==null?void 0x0:_0x25dea2[_0x44caf1(0x18c)])||0x0),'onChange':_0x3d40e8=>_0x5b8dc2(_0x44caf1(0x18c),Number(_0x3d40e8))})]}),(0x0,d[_0x44caf1(0x346)])(_0x44caf1(0x29a),{'children':[(0x0,d['jsx'])(_0x44caf1(0x3c7),{'className':_0x44caf1(0x18f),'children':_0x2b3f36['t'](_0x44caf1(0x1ee))}),(0x0,d['jsx'])(c[_0x44caf1(0x279)],{'type':_0x44caf1(0xe4),'value':String(((_0x4f07f7=_0x819359[_0x44caf1(0x2ba)])==null?void 0x0:_0x4f07f7[_0x44caf1(0x235)])||0x0),'onChange':_0x58ae69=>_0x5b8dc2('bottom',Number(_0x58ae69))})]}),(0x0,d[_0x44caf1(0x346)])(_0x44caf1(0x29a),{'children':[(0x0,d['jsx'])(_0x44caf1(0x3c7),{'className':_0x44caf1(0x18f),'children':_0x2b3f36['t'](_0x44caf1(0x18b))}),(0x0,d['jsx'])(c[_0x44caf1(0x279)],{'type':_0x44caf1(0xe4),'value':String(((_0x260b3f=_0x819359[_0x44caf1(0x2ba)])==null?void 0x0:_0x260b3f[_0x44caf1(0x2a1)])||0x0),'onChange':_0x189470=>_0x5b8dc2(_0x44caf1(0x2a1),Number(_0x189470))})]}),(0x0,d[_0x44caf1(0x346)])(_0x44caf1(0x29a),{'children':[(0x0,d['jsx'])(_0x44caf1(0x3c7),{'className':_0x44caf1(0x18f),'children':_0x2b3f36['t'](_0x44caf1(0x10a))}),(0x0,d[_0x44caf1(0x1c5)])(c['Input'],{'type':_0x44caf1(0xe4),'value':String(((_0x55e48c=_0x819359[_0x44caf1(0x2ba)])==null?void 0x0:_0x55e48c[_0x44caf1(0x3d0)])||0x0),'onChange':_0x3ee800=>_0x5b8dc2(_0x44caf1(0x3d0),Number(_0x3ee800))})]})]})}),(0x0,d[_0x44caf1(0x1c5)])(c['FormLayout'],{'label':_0x2b3f36['t'](_0x44caf1(0x1f7)),'children':(0x0,d[_0x44caf1(0x346)])(c[_0x44caf1(0x124)],{'value':_0x819359[_0x44caf1(0x24c)],'onChange':_0x59f696=>{const _0x4df846=_0x44caf1;_0x2afdbb[_0x4df846(0x1d8)]({'direction':_0x59f696});},'children':[(0x0,d[_0x44caf1(0x1c5)])(c[_0x44caf1(0x232)],{'value':t[_0x44caf1(0x200)]['Portrait'],'children':_0x2b3f36['t'](_0x44caf1(0x17b))}),(0x0,d[_0x44caf1(0x1c5)])(c[_0x44caf1(0x232)],{'value':t[_0x44caf1(0x200)]['Landscape'],'children':_0x2b3f36['t'](_0x44caf1(0x10b))})]})}),(0x0,d[_0x44caf1(0x1c5)])(c[_0x44caf1(0x303)],{'label':_0x2b3f36['t'](_0x44caf1(0x2a2)),'children':(0x0,d[_0x44caf1(0x1c5)])(_0xda72a8,{'className':_0x44caf1(0x267),'value':_0x819359[_0x44caf1(0xcb)],'options':[{'label':_0x2b3f36['t'](_0x44caf1(0x164)),'value':t[_0x44caf1(0x34a)][_0x44caf1(0xff)]},{'label':_0x2b3f36['t'](_0x44caf1(0xf5)),'value':t[_0x44caf1(0x34a)][_0x44caf1(0x1ae)]},{'label':_0x2b3f36['t']('sheets-print.scale.fitHeight'),'value':t[_0x44caf1(0x34a)][_0x44caf1(0x2ef)]},{'label':_0x2b3f36['t'](_0x44caf1(0x3a4)),'value':t[_0x44caf1(0x34a)]['FitPage']}],'onChange':_0x4ad0fd=>{const _0x26c461=_0x44caf1;_0x2afdbb[_0x26c461(0x1d8)]({'scale':_0x4ad0fd});}})}),(0x0,d[_0x44caf1(0x346)])(c['FormLayout'],{'label':_0x2b3f36['t'](_0x44caf1(0x2d7)),'children':[(0x0,d['jsx'])(c['Checkbox'],{'checked':_0x5246b1[_0x44caf1(0x381)],'onChange':_0x2677e7=>{_0x2afdbb['updateRenderConfig']({'gridlines':_0x2677e7});},'children':_0x2b3f36['t'](_0x44caf1(0x1f5))}),_0x3e8842&&!_0x32032f?(0x0,d['jsx'])(_0x44caf1(0x29a),{'className':'univer-mt-3','children':(0x0,d['jsx'])(c[_0x44caf1(0xea)],{'checked':!!_0x5246b1[_0x44caf1(0x25a)],'onChange':async _0xb913ea=>{const _0x41b0a4=_0x44caf1;_0xb913ea?_0x2afdbb['updateRenderConfig']({'watermark':_0x3e8842}):_0x2afdbb[_0x41b0a4(0x3b9)]({'watermark':void 0x0});},'children':_0x2b3f36['t'](_0x44caf1(0x39b))})}):null]}),(0x0,d[_0x44caf1(0x1c5)])(c[_0x44caf1(0x303)],{'label':_0x2b3f36['t'](_0x44caf1(0x32a)),'children':(0x0,d[_0x44caf1(0x346)])(_0x44caf1(0x29a),{'className':_0x44caf1(0x2d8),'children':[(0x0,d['jsx'])(_0xda72a8,{'className':_0x44caf1(0x3ae),'value':_0x5246b1[_0x44caf1(0x336)],'options':[{'label':_0x2b3f36['t'](_0x44caf1(0x21e)),'value':t[_0x44caf1(0x180)]['Middle']},{'label':_0x2b3f36['t'](_0x44caf1(0xfb)),'value':t[_0x44caf1(0x180)][_0x44caf1(0x230)]},{'label':_0x2b3f36['t'](_0x44caf1(0x3a7)),'value':t['PrintAlign']['End']}],'onChange':_0x32c594=>{const _0x39f30d=_0x44caf1;_0x2afdbb[_0x39f30d(0x3b9)]({'hAlign':_0x32c594});}}),(0x0,d[_0x44caf1(0x1c5)])(_0xda72a8,{'className':'!univer-min-w-0\x20univer-flex-1','value':_0x5246b1[_0x44caf1(0x37c)],'options':[{'label':_0x2b3f36['t']('sheets-print.align.vertical.start'),'value':t['PrintAlign'][_0x44caf1(0x230)]},{'label':_0x2b3f36['t'](_0x44caf1(0x149)),'value':t[_0x44caf1(0x180)]['End']},{'label':_0x2b3f36['t'](_0x44caf1(0x332)),'value':t[_0x44caf1(0x180)]['Middle']}],'onChange':_0xd3e064=>{const _0x3cddc2=_0x44caf1;_0x2afdbb[_0x3cddc2(0x3b9)]({'vAlign':_0xd3e064});}})]})}),(0x0,d[_0x44caf1(0x346)])(c[_0x44caf1(0x303)],{'collapsable':!0x0,'label':_0x2b3f36['t']('sheets-print.headerFooter.title'),'children':[(0x0,d[_0x44caf1(0x346)])(c[_0x44caf1(0x31d)],{'direction':_0x44caf1(0x266),'disabled':_0x5246b1[_0x44caf1(0x2af)],'value':_0x5246b1['headerFooter'],'onChange':_0x432018=>{const _0xf8a2f6=_0x44caf1;_0x2afdbb[_0xf8a2f6(0x3b9)]({'headerFooter':_0x432018});},'children':[(0x0,d['jsx'])(c[_0x44caf1(0xea)],{'value':_0x44caf1(0x25d),'children':_0x2b3f36['t'](_0x44caf1(0x131))}),(0x0,d[_0x44caf1(0x1c5)])(c[_0x44caf1(0xea)],{'value':_0x44caf1(0x331),'children':_0x2b3f36['t'](_0x44caf1(0x1ef))}),(0x0,d[_0x44caf1(0x1c5)])(c[_0x44caf1(0xea)],{'value':_0x44caf1(0x1bf),'children':_0x2b3f36['t'](_0x44caf1(0xc6))}),(0x0,d[_0x44caf1(0x1c5)])(c['Checkbox'],{'value':'Date','children':_0x2b3f36['t'](_0x44caf1(0x2f9))}),(0x0,d['jsx'])(c[_0x44caf1(0xea)],{'value':'Time','children':_0x2b3f36['t'](_0x44caf1(0x297))})]}),(0x0,d['jsx'])(c['FormLayout'],{'className':'univer-mt-3','label':(0x0,d[_0x44caf1(0x1c5)])(c[_0x44caf1(0xea)],{'checked':_0x5246b1['isCustomHeaderFooter'],'onChange':()=>{const _0x15d96b=_0x44caf1;_0x2afdbb[_0x15d96b(0x3b9)]({'isCustomHeaderFooter':!_0x5246b1[_0x15d96b(0x2af)]});},'children':_0x2b3f36['t'](_0x44caf1(0x120))}),'children':_0x5246b1[_0x44caf1(0x2af)]?(0x0,d[_0x44caf1(0x1c5)])(c[_0x44caf1(0x37d)],{'className':'univer-my-1\x20univer-p-0','size':_0x44caf1(0x1b6),'variant':_0x44caf1(0x1f9),'onClick':()=>{_0x479b64();},'children':_0x2b3f36['t']('sheets-print.headerFooter.editCustomHeadFooter')}):null})]}),(0x0,d[_0x44caf1(0x1c5)])(c[_0x44caf1(0x303)],{'collapsable':!0x0,'label':_0x2b3f36['t'](_0x44caf1(0x1dc)),'children':(0x0,d[_0x44caf1(0x346)])(c[_0x44caf1(0x31d)],{'direction':_0x44caf1(0x266),'value':_0x819359[_0x44caf1(0x388)],'onChange':_0x7d69d8=>{const _0x9a2b03=_0x44caf1;_0x2afdbb[_0x9a2b03(0x1d8)]({'freeze':_0x7d69d8});},'children':[(0x0,d[_0x44caf1(0x1c5)])(c[_0x44caf1(0xea)],{'disabled':_0x11c6f4,'value':_0x44caf1(0x289),'children':_0x2b3f36['t'](_0x44caf1(0x227))}),(0x0,d['jsx'])(c[_0x44caf1(0xea)],{'disabled':_0x88e1c8,'value':_0x44caf1(0x293),'children':_0x2b3f36['t'](_0x44caf1(0x1fc))})]})}),(0x0,d[_0x44caf1(0x346)])(c['FormLayout'],{'collapsable':!0x0,'defaultCollapsed':!0x0,'label':_0x2b3f36['t'](_0x44caf1(0x3af)),'children':[(0x0,d[_0x44caf1(0x1c5)])(c['FormLayout'],{'className':_0x44caf1(0x250),'label':_0x2b3f36['t']('sheets-print.area.maxRowsEachPage'),'children':(0x0,d['jsx'])(c[_0x44caf1(0x279)],{'value':_0x819359[_0x44caf1(0x1d9)]===0x1/0x0?'':''+_0x819359[_0x44caf1(0x1d9)],'onChange':_0x5d3c53=>{const _0x3ea8af=_0x44caf1;_0x2afdbb[_0x3ea8af(0x1d8)]({'maxRowsEachPage':!_0x5d3c53||Number[_0x3ea8af(0x396)](Number(_0x5d3c53))?0x1/0x0:Number(_0x5d3c53)});}})}),(0x0,d[_0x44caf1(0x1c5)])(c[_0x44caf1(0x303)],{'label':_0x2b3f36['t'](_0x44caf1(0x228)),'children':(0x0,d[_0x44caf1(0x1c5)])(c[_0x44caf1(0x279)],{'value':_0x819359[_0x44caf1(0x35a)]===0x1/0x0?'':''+_0x819359[_0x44caf1(0x35a)],'onChange':_0xf0ab55=>{const _0x3060f7=_0x44caf1;_0x2afdbb[_0x3060f7(0x1d8)]({'maxColumnsEachPage':!_0xf0ab55||Number['isNaN'](Number(_0xf0ab55))?0x1/0x0:Number(_0xf0ab55)});}})})]})]})});});function _0x2063(){const _0x2a0295=['devicePixelRatio','WorksheetViewPermission','_calculateFinalRange','UniverSheetsPrintMobileUIPlugin','univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-z-[1010]\x20univer-flex\x20univer-justify-center','PRINT_CONTAINER_CLASS','executeCommand','then','save','_calculateCurrentSelectionRange','PRINT_GRID_SIDEBAR_COMPONENT','VIEW_MAIN_LEFT','range','rowHeaderWidth','getCollabEntity','sheets-print.align.horizontal.middle','Module','WorkbookViewPermission','engine','pipe','CommandType','sheets-print.headerFooter.dateB','size','_initShortcuts','sheets-print.freeze.row','sheets-print.area.maxColumnsEachPage','_printViewDisposable','pluginName','sheetPageTotal','sheet.operation.open-print-grid-sidebar','MobileDialog','useRef','CurrentSheet','Start','disposePrintView','Radio','Plugin','univer-flex\x20univer-flex-1\x20univer-flex-col\x20univer-overflow-hidden','bottom','headerFooterSetting','getRangeImage','RangeProtectionPermissionViewPoint','Z_INDEX','mually','sheets-print.margin.normal','startX','ensureSkeleton','UniverInstanceType','uKey','DependentOn','univer-mr-2','@TotalPage','_totalHeight','date','Image','CanvasRenderMode','sheets-print.size.legal','reLayout','min','warn','print','direction','SheetExtension','Inject','getSheetFeatureLimit','univer-mb-2','univer-flex\x20univer-flex-1\x20univer-overflow-hidden','restore','sheet.operation.cancel-print','100%','getCurrentSelections','close','stroke','resize','_engine','watermark','IMenuManagerService','sheets-print.permission.printErr','PageSize','submit','lineWidth','setForceDisableGridlines','JSONX','730628fgdDCb','2282875RmbLmU','sheets-print.header.pages','sheets-print.header.printing','vertical','univer-w-full','PageTotal','insertRichText','_sheetsSelectionsSrv','function','width','scaleY','columnWidthAccumulation','valid','insertText','univer-grid\x20univer-gap-2','generateRandomId','sheets-print.headerFooter.display.dateD','Legal','38qMfBpy','getSheets','renderWatermark','sheets-print.selection.title','Input','appendChild','1564470eQUTal','SheetPrintingResourceCollector','overflow','IDialogService','src','localeService','@TimeB','value','SHEET_PRINT_PLUGIN','LS_CONFIG_KEY','univer-text-gray-500','setPreviewScale','getNoMergeCellWithCoordByIndex','_root','Row','addObject','complete','MessageType','getFreeze','toLocaleDateString','moveTo','sheets-print.headerFooter.display.timeC','PRINT_CANVAS_CLASS','Folio','Column','13766027ElOVcP','_initUIParts','sheets-print.headerFooter.display.dateA','sheets-print.headerFooter.time','name','SpreadsheetColumnHeader','div','IconManager','fillStyle','univer-pro.sheet-print-manager.service','MENTION','pages','VIEW_ROW_BOTTOM','left','sheets-print.scale.title','SheetPrintInterceptorService','UniverSheetsUIPlugin','_viewMain','PrintHeaderFooterSymbol','ICommandService','wait','sheets-print.headerFooter.dateC','@DateC','Dropdown','svg','disable','strokeStyle','isCustomHeaderFooter','paperSize','ClockIcon','ReduceIcon','DEFAULT_FONTFACE_PLANE','getImage','relative','_initCommandListener','removeEventListener','resetCache','current','marginCustom','univer-flex-1\x20univer-overflow-y-auto','RichTextBuilder','beginPath','sheets-print.size.title','getValue','FitPage','disposeWithMe','useState','true','sheets-print.config','getContext','SheetPrintCanvasView','Normal','registerComponent','_layoutConfig$','mainComponent','sheets-print.headerFooter.dateA','Portrait','univer-box-border\x20univer-h-full\x20univer-w-[312px]\x20univer-flex-none\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','_injector','renderConfig$','DateE','MoreDownIcon','container','sheets-print.headerFooter.display.title','LocaleService','sheets-print.margin.wide','sheets-print.screenshot.success','sheets-print.formatting.title','univer-flex\x20univer-gap-2','endY','_targetRender','UniverLicensePlugin','univer-h-full\x20univer-overflow-y-auto','_key','defineProperty','_spreadsheetObject','Narrow','UserManagerService','syncExecuteCommand','object','_logService','getMenuHiddenObservable','_watermarkConfig','properties','floor','Time','_registerComponents','NO_COMMERCIAL','getActiveSheet','UniverMobileUIPlugin','PaperMarginMap','FitHeight','height','topLeft','Spreadsheet','OPERATION','layoutConfig$','render','DateD','RibbonStartGroup','_visible$','sheets-print.headerFooter.date','Wide','charCodeAt','univer-absolute\x20univer-inset-0\x20univer-z-[100]\x20univer-flex\x20univer-size-full\x20univer-flex-col\x20univer-bg-gray-100\x20dark:!univer-bg-gray-900','MenuItemType','Tools','dispose','sheets-print.headerFooter.display.dateC','sheets-print.margin.narrow','awaitTime','FormLayout','ContextMenuPosition','replaceAll','sheets-print.menu','univer-flex\x20univer-shrink-0\x20univer-gap-3\x20univer-bg-gray-0\x20univer-p-4\x20dark:!univer-bg-gray-900','univer-grid\x20univer-grid-cols-2\x20univer-gap-2','resizeWhenFreezeChange','DisposableCollection','_subUnitId','makeForceDirty','style','_renderLimitWaterMark','@DateE','_renderManagerService','enable','pageSize','sheets-print.area.maxRowsEachPage','univer-size-3\x20univer-text-gray-900\x20univer-transition-transform\x20dark:!univer-text-gray-0','version','sheets-print.headerFooter.display.pageTotal','actions','_viewRowBottom','slice','Injector','layoutConfig','forwardRef','CheckboxGroup','toLocaleString','univer-absolute\x20univer-left-0\x20univer-z-[1000]\x20univer-min-w-[200px]\x20univer-px-0\x20univer-py-2','fetchThroughInterceptors','sheets-print.size.a3','parseInt','sheet.operation.confirm-print','includes','getWorkbookSelections','renderOnReady','PRINTING_RANGE','addObjects','className','sheets-print.align.title','customRanges','_totalWidth','setPreparing','_config','selection','fontBoundingBoxDescent','WorkbookTitle','sheets-print.align.vertical.middle','_resourceCollector','_print','KeyCode','hAlign','sheet.operation.print-open','fixLineWidthByScale','SheetIcon','sheet-permission-user-dialog','@TotalSheetPage','pageTotal','sheet','useObservable','getInterceptPoints','fontBoundingBoxAscent','TimeD','getCursorPosition','isFeatureAuthorizedWithinTime','CancelSheetPrintOperation','toLocaleTimeString','jsxs','find','SheetPrintClientService','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','PrintScale','_componentManager','type','worksheet','createIdentifier','_printDialogService','getCurrentUser','createElement','End','sheets-print.headerFooter.display.sheet','sheets-print.margin.title','config','ISheetPrintManagerService','PrintFreeze','endIndex','SheetScreenShotOperation','maxColumnsEachPage','UniverRenderEnginePlugin','Workbook','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center','image/png','#1890ff','sheets-print.screenshot.title','VIEW_MAIN','add','onReady','univer-relative\x20univer-mx-2\x20univer-my-0\x20univer-flex-grow','BuiltInUIPart','markDirty','getData','length','Quantity','asObservable','univer-h-[200px]\x20univer-w-[--radix-popper-anchor-width]\x20univer-overflow-y-auto','PAGE_SIZE','_calculateSubSheetRange','_registerIcons','push','sheets-print.limit.page','getOwnPropertyDescriptor','_skeleton','_accessor','_isPreview','__mode','delete','getEditorId','setLineDash','has','measureText','univer-absolute\x20univer-inset-0\x20univer-z-[100]\x20univer-flex\x20univer-size-full\x20univer-flex-col\x20univer-overflow-hidden\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','vAlign','Button','UNIVER_WATERMARK_STORAGE_KEY','_addViewport','rect','gridlines','Landscape','IConfigService','sheets-print.size.executive','@DateB','univer-my-4\x20univer-text-center','have\x20not\x20permission','freeze','univer-text-sm\x20univer-font-medium','sheets-print.headerFooter.center','__RowHeaderPrint__','set','_previewScale','sheets-print.header.total','editOp','mergeMenu','key','body','getExtensionsByOrder','_renderConfig','position','isNaN','with','IUniverInstanceService','memo','section','sheets-print.formatting.waterMark','layoutInfos','_dirty','sheets-print.size.folio','sheets-print.size.b5','format','GLOBAL','CustomRangeType','show','sheets-print.scale.fitPage','UNIVER_SHEET','hasPrintFacadePermission','sheets-print.align.horizontal.end','IShortcutService','sheets-print.title','_layoutInfos$','WorkbookCopyPermission','primary','__ColumnHeaderPrint__','!univer-min-w-0\x20univer-flex-1','sheets-print.area.limit','univer-flex-1','@Page','string','scrollbarClassName','_renderConfig$','prototype','parentElement','merge','@SheetPage','updateRenderConfig','PRINTING_COMPONENT_COLLECT','dateKit','preparing','RichTextEditor','univer-relative\x20univer-inline-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-1\x20univer-rounded\x20univer-bg-gray-0\x20univer-px-2\x20univer-py-1\x20hover:univer-bg-gray-200\x20dark:!univer-bg-gray-900\x20hover:dark:!univer-bg-gray-700','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-gray-0\x20univer-shadow\x20dark:!univer-bg-gray-900','univer-pro.print-grid.service','touchDependencies','clearMemory','PrintPreparationService','isPro','message','SheetsPrintMenuSchema','label','1.0.1','useEvent','ySplit','ContextMenuGroup','debounceTime','pauseCollaboration','sheets-print.headerFooter.left','_addComponent','right','clsx','margin','univer-text-base\x20univer-text-gray-900\x20dark:!univer-text-gray-0','12px\x20','UniverSheetsMobileUIPlugin','focus','sheets-print.headerFooter.sheet','printing','IPrintPreparationService','catch','removeAll','scale','univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-bg-gray-0\x20univer-px-4\x20dark:!univer-bg-gray-900','UniverSheetsPlugin','xSplit','makeDirty','sheets-print.headerFooter.header','0\x200\x20','innerWidth','sheets-print.headerFooter.dateD','enforceWatermark','waitForReady','@TimeC','SHEET_VIEWPORT_KEY','_initRenderer','hidden','sheets-print.selection.workbookUnit','@[]@','Loading','_initConfigChangeListener','UNIVER_SHEET_PERMISSION_ALERT_DIALOG_ID','sheets-print.grid.title','univer-relative\x20first:univer-mr-2','_scene','univer-flex-1\x20univer-overflow-auto','userInfo','number','SUBITEMS','_uiPartsService','page','getCurrentUnitOfType','all','Checkbox','_viewLeft','topCenter','CurrentSelection','updateConfig','useMemo','absolute','_printGridService','univer-rounded-md\x20univer-bg-gray-0\x20univer-p-1\x20univer-shadow\x20dark:!univer-bg-gray-900','_commandService','_blank','sheets-print.scale.fitWidth','rowHeightAccumulation','_getTranslateOffset','Scene','sheets-print.margin.custom','PRINTING_DOM_COLLECT','sheets-print.align.horizontal.start','scaleX','useDependency','@DateA','Origin','univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','ILogService','getItem','5agNnkY','@TimeA','registerShortcut','_calculateSheetPages','_context','ComponentManager','getSelectionsOfWorksheet','sheets-print.margin.right','sheets-print.orientation.landscape','@univerjs-pro/sheets-print','toPrimitive','_sheetPrintManagerService','desc','Custom','url','getCurrentLastSelection','_effects','TimeB','borderClassName','sheets-print.headerFooter.display.timeD','interceptor','_initMenus','text','removeChild','ISidebarService','topRight','packageName','open','sheet.operation.screenshot','sheets-print.headerFooter.customHeadFooter','DownloadImageIcon','getConfig','write','RadioGroup','mount','Executive','params','getUnitId','AllSelection','univer-flex\x20univer-w-full','sheets-print.size.a5','13px\x20','univer-absolute\x20univer-bottom-4\x20univer-right-4\x20univer-z-[1000]','visible$','_renderHeaderFooter','sheets-print.headerFooter.placeholder','sheets-print.headerFooter.page','isSheetHidden','_viewColumnRight','PrintIcon','[MobileSheetPrintController]','prepare','SheetsSelectionsService','IWatermarkTypeEnum','startY','_renderMainScene','Middle','subscribe','_initMutationListener','SheetSkeletonManagerService','noreferrer\x20noopener','Select','sheets-print.headerFooter.display.page','_iconManager','flat','sheets-print.header.next','sheets-print.headerFooter.footer','fillText','sheets-print.headerFooter.timeA','visible','sheets-print.align.vertical.end','OTHERS','sheets-print.size.tabloid','univer-flex\x20univer-h-full\x20univer-flex-col','CalendarIcon','@WorkbookTitle','paperMargin','sheets-print.screenshot.fail','root','startRow','decorate','IMessageService','toDataURL','sheets-print.headerFooter.display.sheetPage','_shortcutService','ILocalStorageService','bottomRight','getCurrentRangeDisable$','from','sheets-print.selection.allWorkbook','_menuManagerService','borderBottomClassName','UniverSheetsPrintPlugin','IRenderManagerService','475295oZRSEO','univer-pro.sheet-print-dialog.service','_configService','sheets-print.scale.normal','createPrintStyle','sheets-print.headerFooter.editCustomHeadFooter','Viewport','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-gray-0\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-gray-0','@TimeD','1233JjJwFy','_drawPrintGrid','sheets-print.size.letter','values','span','reset','reduce','sheet.menu.print','sheets-print.header.cancel','IPermissionService','_viewLeftTop','BUTTON','startColumn','draw','sheets-print.area.currentSheet','getCanvas','sheets-print.headerFooter.timeD','sheets-print.orientation.portrait','constructor','setConfig','layoutInfos$','lineTo','PrintAlign','WorkbookPrintPermission','time','PrintPaperMargin','preparing$','replaceLayoutConfig','clearCanvas','updateScrollVal','http://www.w3.org/2000/svg','area','forEach','sheets-print.margin.left','top','split','Engine','univer-mb-1\x20univer-block\x20univer-text-xs\x20univer-text-gray-500','now','sheets-print.headerFooter.display.timeA','DateB','univer-mx-2\x20univer-my-5','error','OPTIONAL','univer-space-y-2\x20univer-border-t\x20univer-pb-4','univer-p-3','Tabloid','Disposable','_initCommands','subUnitIds','Date','sheet.operation.print','@WorksheetTitle','23216tbxdxd','sheetPage','ReleaseType','sheets-print.size.a4','_univerInstanceService','symbol','endRow','VIEW_MAIN_TOP','filter','max','hide','_layoutInfos','sheets-print.headerFooter.display.dateB','sheets-print.area.currentSelection','univer-relative\x20univer-mx-auto\x20univer-mt-7\x20univer-flex-none\x20univer-bg-gray-0\x20univer-shadow-lg\x20dark:!univer-bg-gray-900','FitWidth','onCommandExecuted','MobileDropdown','No\x20active\x20sheet\x20found','sheets-print.size.statement','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','bottomLeft','copyForPrinting','small','univer-size-8\x20univer-animate-spin\x20univer-text-gray-500','getSheetBySheetId','renderConfig','Page','useVirtualList','getSheetCommandTarget','bottomCenter','TimeA','WorksheetTitle','getSheetId','PaperType','unier-w-[761px]\x20univer-mx-auto\x20univer-my-4\x20univer-box-border\x20univer-flex\x20univer-flex-col\x20univer-items-center\x20univer-bg-gray-0\x20univer-px-6\x20univer-py-7\x20univer-shadow-lg\x20dark:!univer-bg-gray-900','call','timeValid','jsx','useEffect','font','getLicenseInfo','sheets-print.limit.waterMark','replace','Letter','Statement','data','endColumn','subUnitId','workbook','_unitId','sheets-print.margin.top','SheetPage','isLocalCheck','none','dataStream','endX','updateLayoutConfig','maxRowsEachPage','includeHeaderDimensions','sheets-print.headerFooter.right','sheets-print.freeze.title','_resizeViewport','64509pTfZbQ','sheets-print.headerFooter.submit','register','replaceRenderConfig','sheets-print.headerFooter.display.sheetPageTotal','@DateD','getPermissionPoint','6YFAtIG','_layoutConfig','WorksheetCopyPermission','map','registerDependencies','mpn','onTransformChange$','sheets-print.grid.closeAndHide','round','sheets-print.margin.bottom','sheets-print.headerFooter.workbook','unitId','_container','_messageService','sheets-print.headerFooter.timeB','_sheetPrintClientService','sheets-print.formatting.skeleton','setId','sheets-print.orientation.title','_calculatePrintScale','link','__SpreadsheetPrintRender__','connectInjector','sheets-print.freeze.column','MobileSelect','SheetPageTotal','_printManagerService','PrintDirection','image','get','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-gray-0\x20univer-px-4\x20dark:!univer-bg-gray-900','getName','_calculate','status','startIndex','VIEW_MAIN_LEFT_TOP','Printing','create','univer-p-4','BehaviorSubject','getRenderUnitById','next'];_0x2063=function(){return _0x2a0295;};return _0x2063();}function ke(_0x3f42ab){const _0x1f6048=_0x199a36;return(0x0,d['jsx'])(Oe,{..._0x3f42ab,'DropdownComponent':c[_0x1f6048(0x1b0)],'SelectComponent':c[_0x1f6048(0x1fd)]});}function Ae(){const _0x55d4c4=_0x199a36;let [_0x460398,_0x414f1d]=(0x0,u[_0x55d4c4(0x2c2)])(!0x1),[_0x1ebf07,_0x2a9b69]=(0x0,u[_0x55d4c4(0x2c2)])(!0x1),[_0x2e62c8,_0x21fa3e]=(0x0,u[_0x55d4c4(0x2c2)])(!0x1),[_0x146ce4,_0xf01b1]=(0x0,u[_0x55d4c4(0x2c2)])(()=>window[_0x55d4c4(0xd2)]),_0x52f793=(0x0,i['useDependency'])(k),_0x4e8c50=(0x0,i['useDependency'])(n['ICommandService']),_0x4c444c=(0x0,i['useObservable'])(_0x52f793[_0x55d4c4(0x17e)],[]),_0x19dbdc=(0x0,i[_0x55d4c4(0xfd)])(b),_0x37d2da=(0x0,i[_0x55d4c4(0x33e)])(_0x19dbdc[_0x55d4c4(0x184)],_0x19dbdc[_0x55d4c4(0x3bc)]),_0x1f21cb=(0x0,i[_0x55d4c4(0xfd)])(n[_0x55d4c4(0x398)]),_0x491ee8=(0x0,i[_0x55d4c4(0xfd)])(n[_0x55d4c4(0x2d4)]),_0x393225=(0x0,i[_0x55d4c4(0xfd)])(n[_0x55d4c4(0x31a)]),_0x5c7b2e=(0x0,i[_0x55d4c4(0xfd)])(n[_0x55d4c4(0x383)]),_0x5c6729=(0x0,i[_0x55d4c4(0xfd)])(i[_0x55d4c4(0x154)]),_0x76c1c3=(0x0,u['useRef'])(null),{ls:_0xb28521,pbk:_0x2ee2dc}=_0x5c7b2e[_0x55d4c4(0x122)](e[_0x55d4c4(0x284)])??{},{limit:_0x53dc88,isPro:_0x4f9c4e}=(0x0,u[_0x55d4c4(0xef)])(()=>{let {page:_0x1382c4,isPro:_0x1d56e8}=ee(0x3,_0xb28521,_0x2ee2dc);return{'limit':_0x1382c4,'isPro':_0x1d56e8};},[_0xb28521,_0x2ee2dc]),_0x1f37ea=we(import(`@univerjs-pro/collaboration-client`).then(_0x1148c4=>_0x1148c4['CollaborationController'],()=>void 0x0));(0x0,u['useEffect'])(()=>{const _0x1ee0c2=_0x55d4c4;let _0x5090ac=()=>_0xf01b1(window['innerWidth']);return window['addEventListener'](_0x1ee0c2(0x258),_0x5090ac),()=>window[_0x1ee0c2(0x2b7)](_0x1ee0c2(0x258),_0x5090ac);},[]),(0x0,u[_0x55d4c4(0x1c6)])(()=>{const _0x187f30=_0x55d4c4;var _0x17dd12;if(!_0x1f37ea)return;let _0x3462d2=_0x1f21cb[_0x187f30(0xe8)](n[_0x187f30(0x23e)][_0x187f30(0x3a5)]);if(!_0x3462d2)return;let _0x44e46e=_0x393225[_0x187f30(0x202)](_0x1f37ea,n[_0x187f30(0x369)][_0x187f30(0x195)]),_0x4ee55f=_0x44e46e==null||(_0x17dd12=_0x44e46e[_0x187f30(0x21d)](_0x3462d2[_0x187f30(0x128)]()))==null?void 0x0:_0x17dd12[_0x187f30(0x3cd)]();return()=>_0x4ee55f==null?void 0x0:_0x4ee55f['dispose']();},[_0x1f37ea,_0x393225,_0x1f21cb]);let _0xd24a8=(0x0,u[_0x55d4c4(0xef)])(()=>oe(_0x4c444c)[_0x55d4c4(0x319)](0x0,_0x53dc88),[_0x53dc88,_0x4c444c]),_0x212836=_0x52f793[_0x55d4c4(0x2b0)],_0x5335c8=Math[_0x55d4c4(0x249)](0x31a,Math[_0x55d4c4(0x1a8)](0x1,_0x146ce4-0x20))/0x31a,_0x41f539=Math['round'](_0x5335c8*(0x31a/_0x212836['w'])*0xa)/0xa,[_0x59efdc,{wrapperStyle:_0x24c969,containerProps:_0x34c3c6}]=(0x0,i[_0x55d4c4(0x1bb)])(_0xd24a8,{'containerTarget':_0x76c1c3,'itemHeight':_0x212836['h']*_0x41f539+0x1c,'overscan':0x3}),_0x4f5fad=async()=>{const _0xc9fbe4=_0x55d4c4;await _0x4e8c50[_0xc9fbe4(0x215)](L['id']);},_0x20b049=async()=>{const _0x285d66=_0x55d4c4;_0x21fa3e(!0x0),_0x5c6729['show']({'content':_0x491ee8['t']('sheets-print.header.printing'),'type':c['MessageType'][_0x285d66(0xdc)]}),await(0x0,n[_0x285d66(0x302)])(0x12c),await _0x4e8c50[_0x285d66(0x215)](R['id']);};return(0x0,d[_0x55d4c4(0x346)])('div',{'data-u-comp':'mobile-sheet-print-view','className':_0x55d4c4(0x2fc),'children':[(0x0,d[_0x55d4c4(0x1c5)])('header',{'className':_0x55d4c4(0xcc),'children':(0x0,d[_0x55d4c4(0x346)])(_0x55d4c4(0x16e),{'className':_0x55d4c4(0x389),'children':[_0x491ee8['t'](_0x55d4c4(0x38e)),_0xd24a8[_0x55d4c4(0x368)],_0x491ee8['t'](_0x55d4c4(0x264))]})}),(0x0,d['jsx'])(_0x55d4c4(0x29a),{'ref':_0x76c1c3,'className':(0x0,c['clsx'])(_0x55d4c4(0xe2),c[_0x55d4c4(0x3b3)]),'aria-busy':_0x37d2da,..._0x34c3c6,'children':_0x37d2da?(0x0,d[_0x55d4c4(0x1c5)])(_0x55d4c4(0x29a),{'className':_0x55d4c4(0x35d),'role':_0x55d4c4(0x206),'aria-label':_0x491ee8['t'](_0x55d4c4(0x265)),'children':(0x0,d[_0x55d4c4(0x1c5)])(l['LoadingMultiIcon'],{'className':'univer-size-8\x20univer-animate-spin\x20univer-text-gray-500','aria-hidden':'true'})}):(0x0,d[_0x55d4c4(0x1c5)])(_0x55d4c4(0x29a),{'style':_0x24c969,'children':_0x59efdc[_0x55d4c4(0x1e8)](_0x3db91a=>(0x0,d[_0x55d4c4(0x1c5)])(Ee,{'config':_0x3db91a[_0x55d4c4(0x1cd)],'page':_0x3db91a['data'][_0x55d4c4(0xe7)],'previewScale':_0x5335c8},_0x3db91a[_0x55d4c4(0x1cd)][_0x55d4c4(0x1f0)]+':'+_0x3db91a[_0x55d4c4(0x1cd)][_0x55d4c4(0x1cf)]+':'+_0x3db91a[_0x55d4c4(0x1cd)][_0x55d4c4(0xe7)]+':'+_0x3db91a[_0x55d4c4(0x1cd)]['range']['startRow']+':'+_0x3db91a[_0x55d4c4(0x1cd)][_0x55d4c4(0x21b)][_0x55d4c4(0x176)]+':'+_0x3db91a['data'][_0x55d4c4(0x21b)][_0x55d4c4(0x1a5)]+':'+_0x3db91a['data'][_0x55d4c4(0x21b)][_0x55d4c4(0x1ce)]))})}),!_0x37d2da&&!_0x4f9c4e&&(0x0,d[_0x55d4c4(0x1c5)])('a',{'className':'univer-block\x20univer-shrink-0\x20univer-px-4\x20univer-py-2\x20univer-text-center\x20univer-text-xs','href':_0x491ee8['t']('sheets-print.limit.link'),'target':_0x55d4c4(0xf4),'rel':_0x55d4c4(0x13f),'children':_0x491ee8['t'](_0x55d4c4(0x370))[_0x55d4c4(0x1ca)]('{limit}',''+_0x53dc88)}),(0x0,d[_0x55d4c4(0x346)])('footer',{'className':(0x0,c[_0x55d4c4(0xc0)])(_0x55d4c4(0x307),c['borderTopClassName']),'children':[(0x0,d[_0x55d4c4(0x1c5)])(c[_0x55d4c4(0x37d)],{'className':_0x55d4c4(0x3b0),'onClick':_0x4f5fad,'children':_0x491ee8['t'](_0x55d4c4(0x172))}),(0x0,d[_0x55d4c4(0x1c5)])(c[_0x55d4c4(0x37d)],{'className':_0x55d4c4(0x3b0),'onClick':()=>_0x414f1d(!0x0),'children':_0x491ee8['t'](_0x55d4c4(0x3a9))}),(0x0,d[_0x55d4c4(0x1c5)])(c[_0x55d4c4(0x37d)],{'className':_0x55d4c4(0x3b0),'variant':'primary','disabled':_0x37d2da||_0x2e62c8,'onClick':_0x20b049,'children':_0x491ee8['t'](_0x55d4c4(0x144))})]}),(0x0,d['jsx'])(c['MobileDialog'],{'open':_0x460398,'title':_0x491ee8['t'](_0x55d4c4(0x3a9)),'onClose':()=>_0x414f1d(!0x1),'children':(0x0,d[_0x55d4c4(0x1c5)])(ke,{'onShowFooterHeaderEditor':()=>{_0x414f1d(!0x1),_0x2a9b69(!0x0);}})}),_0x1ebf07&&(0x0,d['jsx'])(De,{'open':!0x0,'onClose':()=>{_0x2a9b69(!0x1),_0x414f1d(!0x0);}})]});}function je(){const _0x5592d6=_0x199a36;let _0x3137cc=(0x0,i['useDependency'])(b);return(0x0,i[_0x5592d6(0x33e)])(_0x3137cc[_0x5592d6(0x12e)],_0x3137cc['visible'])?(0x0,d[_0x5592d6(0x1c5)])(Ae,{}):null;}let J=class extends n[_0x199a36(0x199)]{constructor(_0x3b0663,_0x2143e3,_0x503a7c,_0x46db93,_0xca613f,_0x127a83,_0x489377,_0xa39bbc){const _0x548ef7=_0x199a36;super(),this['_printDialogService']=_0x3b0663,this[_0x548ef7(0xf3)]=_0x2143e3,this['_sheetPrintManagerService']=_0x503a7c,this[_0x548ef7(0x1f4)]=_0x46db93,this[_0x548ef7(0x15d)]=_0xca613f,this[_0x548ef7(0x2ce)]=_0x127a83,this[_0x548ef7(0xe6)]=_0x489377,this['_logService']=_0xa39bbc,this[_0x548ef7(0x19a)](),this[_0x548ef7(0x295)](),this['_initMenus'](),this[_0x548ef7(0xdd)](),this[_0x548ef7(0x2b6)]();}[_0x199a36(0x19a)](){const _0x47787a=_0x199a36;[I,L,R,z][_0x47787a(0x18a)](_0x5f37c6=>this[_0x47787a(0x2c1)](this[_0x47787a(0xf3)]['registerCommand'](_0x5f37c6)));}['_initUIParts'](){const _0x37888e=_0x199a36;this['disposeWithMe'](this[_0x37888e(0xe6)][_0x37888e(0x2c8)](i[_0x37888e(0x365)][_0x37888e(0x3a1)],()=>(0x0,i[_0x37888e(0x1fb)])(je,this[_0x37888e(0x2ce)])));}['_initMenus'](){const _0x351919=_0x199a36;this[_0x351919(0x15d)][_0x351919(0x390)](Ce);}[_0x199a36(0xdd)](){const _0x1958ad=_0x199a36;this[_0x1958ad(0x2c1)](this[_0x1958ad(0x34f)][_0x1958ad(0x12e)][_0x1958ad(0x13c)](_0x3eedb0=>{const _0x2be8ce=_0x1958ad;_0x3eedb0&&this[_0x2be8ce(0x10e)]['reLayout']();}));}['_initCommandListener'](){const _0x29287b=_0x199a36;this['disposeWithMe'](this[_0x29287b(0xf3)][_0x29287b(0x1af)](_0x590226=>{const _0x484a82=_0x29287b;_0x590226['id']===R['id']&&this[_0x484a82(0x1f4)][_0x484a82(0x24b)](this[_0x484a82(0x10e)][_0x484a82(0x39c)],this[_0x484a82(0x10e)]['renderConfig'])[_0x484a82(0xc9)](_0x1dd183=>this[_0x484a82(0x2e4)]['error'](_0x484a82(0x135),'Failed\x20to\x20print\x20sheets.',_0x1dd183));}));}};J=O([D(0x0,b),D(0x1,n[_0x199a36(0x2a7)]),D(0x2,k),D(0x3,(0x0,n[_0x199a36(0x24e)])(U)),D(0x4,i[_0x199a36(0x25b)]),D(0x5,(0x0,n[_0x199a36(0x24e)])(n[_0x199a36(0x31a)])),D(0x6,i['IUIPartsService']),D(0x7,n[_0x199a36(0x101)])],J);let Y=class extends n[_0x199a36(0x233)]{constructor(_0x23ae15=K,_0xe19f5f,_0x5eb878){const _0x2ee0c7=_0x199a36;super(),this['_config']=_0x23ae15,this[_0x2ee0c7(0x2ce)]=_0xe19f5f,this['_configService']=_0x5eb878;let {menu:_0x137ad6,..._0x3f5f33}=(0x0,n[_0x2ee0c7(0x3b7)])({},K,this[_0x2ee0c7(0x32e)]);_0x137ad6&&this[_0x2ee0c7(0x163)]['setConfig']('menu',_0x137ad6,{'merge':!0x0}),this[_0x2ee0c7(0x163)]['setConfig'](Se,_0x3f5f33);}[_0x199a36(0x363)](){const _0x143a1f=_0x199a36;this[_0x143a1f(0x2ce)][_0x143a1f(0x379)](t[_0x143a1f(0xc8)])||this[_0x143a1f(0x2ce)][_0x143a1f(0x362)]([t['IPrintPreparationService'],{'useClass':t['PrintPreparationService']}]),(0x0,n[_0x143a1f(0x1e9)])(this[_0x143a1f(0x2ce)],[[k,{'useClass':N}],[b,{'useClass':x}],[U],[q],[J]]),(0x0,n[_0x143a1f(0x3c1)])(this[_0x143a1f(0x2ce)],[[q],[J]]);}};y(Y,_0x199a36(0x22a),xe),y(Y,_0x199a36(0x11d),ye),y(Y,'version',be),y(Y,_0x199a36(0x34c),n[_0x199a36(0x23e)]['UNIVER_SHEET']),Y=O([(0x0,n[_0x199a36(0x240)])(e[_0x199a36(0x2db)],o[_0x199a36(0x35b)],r['UniverSheetsPlugin'],s[_0x199a36(0xc4)],i[_0x199a36(0x2ed)]),D(0x1,(0x0,n[_0x199a36(0x24e)])(n['Injector'])),D(0x2,n[_0x199a36(0x383)])],Y);const Me=(0x0,u[_0x199a36(0x399)])(function(){const _0x486ebb=_0x199a36;var _0x3c1245,_0x4a8442,_0x1e8355,_0x1a796f;let _0x15829e=(0x0,i[_0x486ebb(0xfd)])(k),_0x177f13=(0x0,i[_0x486ebb(0xfd)])(n[_0x486ebb(0x2a7)]),_0x646445=(0x0,i[_0x486ebb(0x33e)])(_0x15829e[_0x486ebb(0x2f4)],_0x15829e[_0x486ebb(0x31b)]),_0x5a07a9=(0x0,i[_0x486ebb(0xfd)])(n[_0x486ebb(0x2d4)]),_0x2206f2=(0x0,i[_0x486ebb(0xfd)])(n[_0x486ebb(0x398)])[_0x486ebb(0xe8)](n[_0x486ebb(0x23e)][_0x486ebb(0x3a5)]);if(!_0x2206f2)return console[_0x486ebb(0x194)]('No\x20workbook\x20found'),null;let _0x3a929d=_0x2206f2[_0x486ebb(0x2ec)]();if(!_0x3a929d)return console['error'](_0x486ebb(0x1b1)),null;let _0x854dfd=(_0x3c52b6,_0x297051)=>{const _0x626bca=_0x486ebb;let _0x49954d=Math[_0x626bca(0x1a8)](0x0,_0x297051||0x0),_0x35a360=_0x646445['marginCustom']||{'top':0x0,'left':0x0,'right':0x0,'bottom':0x0};_0x15829e[_0x626bca(0x1d8)]({'marginCustom':{..._0x35a360,[_0x3c52b6]:_0x49954d}});},_0x8b0665=_0x3a929d[_0x486ebb(0x28d)](),_0x2520da=_0x8b0665[_0x486ebb(0xce)]<=0x0,_0x480152=_0x8b0665[_0x486ebb(0x3ca)]<=0x0,_0x349fd1=()=>{_0x177f13['executeCommand'](fe['id']);};return(0x0,d['jsxs'])(_0x486ebb(0x29a),{'className':(0x0,c[_0x486ebb(0xc0)])(_0x486ebb(0x14c),c[_0x486ebb(0x3b3)]),'children':[(0x0,d[_0x486ebb(0x346)])('div',{'className':_0x486ebb(0x2bb),'children':[(0x0,d['jsx'])(c[_0x486ebb(0x303)],{'label':_0x5a07a9['t']('sheets-print.area.title'),'children':(0x0,d['jsx'])(c['Select'],{'className':'univer-w-full','value':''+_0x646445[_0x486ebb(0x189)],'onChange':_0x14a5b2=>{const _0x10494a=_0x486ebb;_0x15829e[_0x10494a(0x1d8)]({'area':_0x14a5b2});},'options':[{'label':_0x5a07a9['t']('sheets-print.area.currentSheet'),'value':'CurrentSheet'},{'label':_0x5a07a9['t'](_0x486ebb(0x1ac)),'value':_0x486ebb(0xed)}]})}),(0x0,d['jsx'])(c[_0x486ebb(0x303)],{'label':_0x5a07a9['t']('sheets-print.size.title'),'children':(0x0,d['jsx'])(c[_0x486ebb(0x140)],{'className':_0x486ebb(0x267),'value':_0x646445['paperSize'],'options':[{'label':_0x5a07a9['t'](_0x486ebb(0x16c)),'value':n[_0x486ebb(0x1c1)][_0x486ebb(0x1cb)]},{'label':_0x5a07a9['t'](_0x486ebb(0x14b)),'value':n[_0x486ebb(0x1c1)]['Tabloid']},{'label':_0x5a07a9['t'](_0x486ebb(0x247)),'value':n[_0x486ebb(0x1c1)][_0x486ebb(0x274)]},{'label':_0x5a07a9['t']('sheets-print.size.statement'),'value':n[_0x486ebb(0x1c1)]['Statement']},{'label':_0x5a07a9['t'](_0x486ebb(0x384)),'value':n[_0x486ebb(0x1c1)][_0x486ebb(0x126)]},{'label':_0x5a07a9['t'](_0x486ebb(0x39e)),'value':n[_0x486ebb(0x1c1)][_0x486ebb(0x292)]},{'label':_0x5a07a9['t']('sheets-print.size.a3'),'value':n['PaperType']['A3']},{'label':_0x5a07a9['t'](_0x486ebb(0x1a2)),'value':n[_0x486ebb(0x1c1)]['A4']},{'label':_0x5a07a9['t']('sheets-print.size.a5'),'value':n[_0x486ebb(0x1c1)]['A5']},{'label':_0x5a07a9['t']('sheets-print.size.b4'),'value':n[_0x486ebb(0x1c1)]['B4']},{'label':_0x5a07a9['t'](_0x486ebb(0x39f)),'value':n[_0x486ebb(0x1c1)]['B5']}],'onChange':_0x193b53=>{const _0x277ef3=_0x486ebb;_0x15829e[_0x277ef3(0x1d8)]({'paperSize':_0x193b53});}})}),(0x0,d[_0x486ebb(0x1c5)])(c[_0x486ebb(0x303)],{'label':_0x5a07a9['t'](_0x486ebb(0x354)),'children':(0x0,d[_0x486ebb(0x1c5)])(c['Select'],{'className':_0x486ebb(0x267),'value':_0x646445[_0x486ebb(0xc1)],'options':[{'label':_0x5a07a9['t'](_0x486ebb(0x23b)),'value':t[_0x486ebb(0x183)][_0x486ebb(0x2c7)]},{'label':_0x5a07a9['t'](_0x486ebb(0x301)),'value':t['PrintPaperMargin'][_0x486ebb(0x2e0)]},{'label':_0x5a07a9['t'](_0x486ebb(0x2d5)),'value':t[_0x486ebb(0x183)][_0x486ebb(0x2fa)]},{'label':_0x5a07a9['t'](_0x486ebb(0xf9)),'value':t['PrintPaperMargin'][_0x486ebb(0x110)]}],'onChange':_0x4d6159=>{const _0xd2f376=_0x486ebb;let _0x4ccb79=t['PaperMarginMap'][_0x646445[_0xd2f376(0xc1)]];_0x15829e[_0xd2f376(0x1d8)]({'margin':_0x4d6159,'marginCustom':_0x4d6159===t[_0xd2f376(0x183)]['Custom']?_0x4ccb79:t[_0xd2f376(0x2ee)][_0x4d6159]});}})}),_0x646445[_0x486ebb(0xc1)]===t[_0x486ebb(0x183)][_0x486ebb(0x110)]&&(0x0,d[_0x486ebb(0x1c5)])(c[_0x486ebb(0x303)],{'children':(0x0,d[_0x486ebb(0x346)])(_0x486ebb(0x29a),{'className':_0x486ebb(0x308),'children':[(0x0,d['jsxs'])(_0x486ebb(0x29a),{'children':[(0x0,d[_0x486ebb(0x1c5)])('label',{'className':_0x486ebb(0x18f),'children':_0x5a07a9['t'](_0x486ebb(0x1d2))}),(0x0,d[_0x486ebb(0x1c5)])(c[_0x486ebb(0x279)],{'type':'number','value':String(((_0x3c1245=_0x646445[_0x486ebb(0x2ba)])==null?void 0x0:_0x3c1245['top'])||0x0),'onChange':_0x3f047e=>_0x854dfd('top',Number(_0x3f047e))})]}),(0x0,d['jsxs'])(_0x486ebb(0x29a),{'children':[(0x0,d[_0x486ebb(0x1c5)])(_0x486ebb(0x3c7),{'className':_0x486ebb(0x18f),'children':_0x5a07a9['t'](_0x486ebb(0x1ee))}),(0x0,d[_0x486ebb(0x1c5)])(c['Input'],{'type':_0x486ebb(0xe4),'value':String(((_0x4a8442=_0x646445['marginCustom'])==null?void 0x0:_0x4a8442[_0x486ebb(0x235)])||0x0),'onChange':_0x285598=>_0x854dfd(_0x486ebb(0x235),Number(_0x285598))})]}),(0x0,d[_0x486ebb(0x346)])(_0x486ebb(0x29a),{'children':[(0x0,d[_0x486ebb(0x1c5)])(_0x486ebb(0x3c7),{'className':_0x486ebb(0x18f),'children':_0x5a07a9['t'](_0x486ebb(0x18b))}),(0x0,d[_0x486ebb(0x1c5)])(c['Input'],{'type':_0x486ebb(0xe4),'value':String(((_0x1e8355=_0x646445[_0x486ebb(0x2ba)])==null?void 0x0:_0x1e8355[_0x486ebb(0x2a1)])||0x0),'onChange':_0x142dbb=>_0x854dfd(_0x486ebb(0x2a1),Number(_0x142dbb))})]}),(0x0,d[_0x486ebb(0x346)])(_0x486ebb(0x29a),{'children':[(0x0,d[_0x486ebb(0x1c5)])(_0x486ebb(0x3c7),{'className':_0x486ebb(0x18f),'children':_0x5a07a9['t'](_0x486ebb(0x10a))}),(0x0,d['jsx'])(c[_0x486ebb(0x279)],{'type':_0x486ebb(0xe4),'value':String(((_0x1a796f=_0x646445[_0x486ebb(0x2ba)])==null?void 0x0:_0x1a796f[_0x486ebb(0x3d0)])||0x0),'onChange':_0x18b46f=>_0x854dfd('right',Number(_0x18b46f))})]})]})}),(0x0,d[_0x486ebb(0x1c5)])(c[_0x486ebb(0x303)],{'label':_0x5a07a9['t'](_0x486ebb(0x1f7)),'children':(0x0,d[_0x486ebb(0x346)])(c[_0x486ebb(0x124)],{'value':_0x646445[_0x486ebb(0x24c)],'onChange':_0x2d67ad=>{const _0x16fb93=_0x486ebb;_0x15829e[_0x16fb93(0x1d8)]({'direction':_0x2d67ad});},'children':[(0x0,d['jsx'])(c[_0x486ebb(0x232)],{'value':t[_0x486ebb(0x200)]['Portrait'],'children':_0x5a07a9['t'](_0x486ebb(0x17b))}),(0x0,d[_0x486ebb(0x1c5)])(c[_0x486ebb(0x232)],{'value':t['PrintDirection'][_0x486ebb(0x382)],'children':_0x5a07a9['t'](_0x486ebb(0x10b))})]})}),(0x0,d[_0x486ebb(0x1c5)])(c['FormLayout'],{'collapsable':!0x0,'label':_0x5a07a9['t']('sheets-print.freeze.title'),'children':(0x0,d[_0x486ebb(0x346)])(c[_0x486ebb(0x31d)],{'direction':_0x486ebb(0x266),'value':_0x646445[_0x486ebb(0x388)],'onChange':_0x22b001=>{const _0x551518=_0x486ebb;_0x15829e[_0x551518(0x1d8)]({'freeze':_0x22b001});},'children':[(0x0,d['jsx'])(c[_0x486ebb(0xea)],{'disabled':_0x480152,'value':_0x486ebb(0x289),'children':_0x5a07a9['t'](_0x486ebb(0x227))}),(0x0,d[_0x486ebb(0x1c5)])(c[_0x486ebb(0xea)],{'disabled':_0x2520da,'value':'Column','children':_0x5a07a9['t']('sheets-print.freeze.column')})]})}),(0x0,d['jsxs'])(c[_0x486ebb(0x303)],{'collapsable':!0x0,'defaultCollapsed':!0x0,'label':_0x5a07a9['t'](_0x486ebb(0x3af)),'children':[(0x0,d[_0x486ebb(0x1c5)])(c[_0x486ebb(0x303)],{'className':_0x486ebb(0x250),'label':_0x5a07a9['t'](_0x486ebb(0x313)),'children':(0x0,d[_0x486ebb(0x1c5)])(c[_0x486ebb(0x279)],{'value':_0x646445[_0x486ebb(0x1d9)]===0x1/0x0?'':''+_0x646445[_0x486ebb(0x1d9)],'onChange':_0x527c99=>{const _0xb1c2=_0x486ebb;_0x15829e['updateLayoutConfig']({'maxRowsEachPage':!_0x527c99||Number[_0xb1c2(0x396)](Number(_0x527c99))?0x1/0x0:Number(_0x527c99)});}})}),(0x0,d[_0x486ebb(0x1c5)])(c['FormLayout'],{'label':_0x5a07a9['t'](_0x486ebb(0x228)),'children':(0x0,d[_0x486ebb(0x1c5)])(c[_0x486ebb(0x279)],{'value':_0x646445[_0x486ebb(0x35a)]===0x1/0x0?'':''+_0x646445[_0x486ebb(0x35a)],'onChange':_0x5b66da=>{const _0x1fe442=_0x486ebb;_0x15829e[_0x1fe442(0x1d8)]({'maxColumnsEachPage':!_0x5b66da||Number[_0x1fe442(0x396)](Number(_0x5b66da))?0x1/0x0:Number(_0x5b66da)});}})})]})]}),(0x0,d[_0x486ebb(0x346)])(_0x486ebb(0x29a),{'className':_0x486ebb(0x196),'children':[(0x0,d['jsx'])(c[_0x486ebb(0x37d)],{'type':_0x486ebb(0x25e),'variant':_0x486ebb(0x3ac),'className':_0x486ebb(0x267),'onClick':()=>{const _0x2db254=_0x486ebb;_0x177f13[_0x2db254(0x215)](I['id']),_0x349fd1();},'children':_0x5a07a9['t'](_0x486ebb(0x306))}),(0x0,d[_0x486ebb(0x1c5)])(c['Button'],{'type':'button','className':_0x486ebb(0x267),'onClick':_0x349fd1,'children':_0x5a07a9['t'](_0x486ebb(0x1ec))})]})]});});let X=class extends n[_0x199a36(0x199)]{constructor(_0x15b4c1,_0x1aea72){const _0x452e57=_0x199a36;super(),this[_0x452e57(0x34b)]=_0x15b4c1,this[_0x452e57(0x142)]=_0x1aea72,this[_0x452e57(0x36e)](),this[_0x452e57(0x2ea)]();}[_0x199a36(0x36e)](){const _0x54dde7=_0x199a36;this[_0x54dde7(0x2c1)](this[_0x54dde7(0x142)][_0x54dde7(0x1e0)]({'DocSettingIcon':l['DocSettingIcon'],'PrintIcon':l[_0x54dde7(0x134)]}));}[_0x199a36(0x2ea)](){const _0xe49126=_0x199a36;this['_componentManager'][_0xe49126(0x1e0)](de,Me);}};X=O([D(0x0,(0x0,n['Inject'])(i[_0x199a36(0x108)])),D(0x1,(0x0,n['Inject'])(i[_0x199a36(0x29b)]))],X);const Ne=[0x6,0x4];var Pe=class extends o[_0x199a36(0x24d)]{constructor(_0x5bede7,_0x4b6535){const _0x2ae680=_0x199a36;super(),this[_0x2ae680(0xf1)]=_0x5bede7,this[_0x2ae680(0x1ff)]=_0x4b6535,y(this,_0x2ae680(0x23f),'PrintGridExtension'),y(this,_0x2ae680(0x239),0x3d);}[_0x199a36(0x177)](_0x2797ec,_0x552f9c,_0x111c4c,_0x4f0075){const _0x4e613d=_0x199a36;if(_0x2797ec[_0x4e613d(0x375)]===_0x4e613d(0xc7)||!this[_0x4e613d(0xf1)][_0x4e613d(0x148)])return;let {worksheet:_0x18465d}=_0x111c4c;if(!_0x18465d)return;let _0x2957d7=this[_0x4e613d(0x1ff)][_0x4e613d(0x39c)],_0x4907ed=_0x18465d[_0x4e613d(0x128)](),_0xb9016f=_0x18465d[_0x4e613d(0x1c0)](),_0x3f15d2=_0x2957d7[_0x4e613d(0x347)](_0x5f0c9a=>_0x5f0c9a['unitId']===_0x4907ed&&_0x5f0c9a[_0x4e613d(0x1cf)]===_0xb9016f);_0x3f15d2&&this[_0x4e613d(0x16b)](_0x2797ec,_0x111c4c,_0x3f15d2);}['_drawPrintGrid'](_0x2705a0,_0x2d3a94,_0x1a334f){const _0x1596a8=_0x199a36;let {pages:_0x578bbf}=_0x1a334f,{rowHeightAccumulation:_0x20790a,columnWidthAccumulation:_0x6d4721}=_0x2d3a94;_0x2705a0[_0x1596a8(0x217)](),_0x2705a0[_0x1596a8(0x2ae)]=_0x1596a8(0x35f),_0x2705a0[_0x1596a8(0x25f)]=0x2,_0x2705a0[_0x1596a8(0x378)](Ne);let _0x474ee3=new Set(),_0x4893bc=new Set();_0x578bbf[_0x1596a8(0x18a)](_0x4e6c31=>{const _0xa6d196=_0x1596a8;let {startRow:_0x2cd334,endRow:_0x2fe1af,startColumn:_0x532fd2,endColumn:_0x110135}=_0x4e6c31,_0x2f505f=_0x2cd334===0x0?0x0:_0x20790a[_0x2cd334-0x1],_0x4f23af=_0x20790a[_0x2fe1af],_0x591a5c=_0x532fd2===0x0?0x0:_0x6d4721[_0x532fd2-0x1],_0x3a035c=_0x6d4721[_0x110135];_0x474ee3['add'](_0x2f505f),_0x474ee3['add'](_0x4f23af),_0x4893bc['add'](_0x591a5c),_0x4893bc[_0xa6d196(0x362)](_0x3a035c);});let _0xc00e72=Math[_0x1596a8(0x249)](...Array[_0x1596a8(0x15b)](_0x4893bc)),_0x5190b8=Math[_0x1596a8(0x1a8)](...Array['from'](_0x4893bc)),_0x159907=Math['min'](...Array[_0x1596a8(0x15b)](_0x474ee3)),_0x5c641d=Math['max'](...Array[_0x1596a8(0x15b)](_0x474ee3));_0x474ee3['forEach'](_0x5213a0=>{const _0x29e1c9=_0x1596a8;_0x2705a0[_0x29e1c9(0x2bd)](),_0x2705a0['moveTo'](_0xc00e72,_0x5213a0),_0x2705a0['lineTo'](_0x5190b8,_0x5213a0),_0x2705a0[_0x29e1c9(0x257)]();}),_0x4893bc[_0x1596a8(0x18a)](_0xd614b6=>{const _0x4ed181=_0x1596a8;_0x2705a0[_0x4ed181(0x2bd)](),_0x2705a0[_0x4ed181(0x28f)](_0xd614b6,_0x159907),_0x2705a0[_0x4ed181(0x17f)](_0xd614b6,_0x5c641d),_0x2705a0['stroke']();}),_0x2705a0[_0x1596a8(0x252)]();}};let Fe=class extends n[_0x199a36(0x199)]{constructor(_0x4989e5,_0x5cb6e8,_0x22118d){const _0x55b559=_0x199a36;super(),this[_0x55b559(0x107)]=_0x4989e5;let _0x22cda4=this[_0x55b559(0x107)][_0x55b559(0x2ca)];this['disposeWithMe'](_0x22cda4['register'](new Pe(_0x5cb6e8,_0x22118d)));}};Fe=O([D(0x1,W),D(0x2,k)],Fe);const Z=({icon:_0x37aedb,items:_0x10cd75,active:_0xa78010,onChange:_0x42c1d9,onHover:_0x536135,popupDirection:_0x219302='top'})=>(0x0,d['jsxs'])(_0x199a36(0x29a),{'className':_0x199a36(0x3be),'onMouseEnter':()=>_0x536135==null?void 0x0:_0x536135(!0x0),'onMouseLeave':()=>_0x536135==null?void 0x0:_0x536135(!0x1),'children':[(0x0,d[_0x199a36(0x1c5)])(_0x199a36(0x29a),{'className':'univer-flex\x20univer-size-5\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-900\x20dark:!univer-text-gray-0','children':_0x37aedb}),(0x0,d[_0x199a36(0x1c5)])(l[_0x199a36(0x2d1)],{'className':_0x199a36(0x314)}),_0xa78010&&(0x0,d[_0x199a36(0x1c5)])(_0x199a36(0x29a),{'style':{[_0x219302]:_0x199a36(0x254)},'className':_0x199a36(0x31f),'children':(0x0,d['jsx'])('div',{'className':'univer-solid\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-p-2\x20univer-shadow-lg\x20dark:!univer-border-gray-700','children':_0x10cd75['map'](_0x5e6c29=>(0x0,d[_0x199a36(0x346)])('div',{'className':_0x199a36(0x349),'onClick':()=>{const _0xa052dc=_0x199a36;_0x42c1d9==null||_0x42c1d9(_0x5e6c29[_0xa052dc(0x282)]),_0x536135==null||_0x536135(!0x1);},'children':[(0x0,d[_0x199a36(0x1c5)])(_0x199a36(0x29a),{'className':_0x199a36(0xc2),'children':_0x5e6c29[_0x199a36(0x3c7)]}),(0x0,d[_0x199a36(0x1c5)])(_0x199a36(0x29a),{'className':_0x199a36(0x100),'children':_0x5e6c29[_0x199a36(0x10f)]})]},_0x5e6c29['value']))})})]}),Ie=_0x219426=>{const _0x547407=_0x199a36;let {onSelect:_0xdabb83,popupDirection:_0x55eda1}=_0x219426,[_0x3cfa65,_0x196cfa]=(0x0,u[_0x547407(0x2c2)])(),_0x412681=(0x0,i[_0x547407(0xfd)])(n['LocaleService']),_0x13470e=(0x0,i[_0x547407(0xfd)])(n['IUniverInstanceService'])[_0x547407(0xe8)](n[_0x547407(0x23e)][_0x547407(0x3a5)]),_0x354918=_0x13470e[_0x547407(0x2ec)](),_0x5f52aa=(0x0,u[_0x547407(0xef)])(()=>(0x0,n['dateKit'])(),[]),_0x4634e0=(0x0,u[_0x547407(0xef)])(()=>[{'value':_0x547407(0x3b1),'label':_0x412681['t']('sheets-print.headerFooter.display.page'),'desc':B(_0x547407(0x3b1),{'workbook':_0x13470e,'worksheet':_0x354918,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x412681,'now':_0x5f52aa})},{'value':_0x547407(0x3b8),'label':_0x412681['t']('sheets-print.headerFooter.display.sheetPage'),'desc':B(_0x547407(0x3b8),{'workbook':_0x13470e,'worksheet':_0x354918,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x412681,'now':_0x5f52aa})},{'value':_0x547407(0x242),'label':_0x412681['t']('sheets-print.headerFooter.display.pageTotal'),'desc':B(_0x547407(0x242),{'workbook':_0x13470e,'worksheet':_0x354918,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x412681,'now':_0x5f52aa})},{'value':_0x547407(0x33b),'label':_0x412681['t'](_0x547407(0x1e2)),'desc':B(_0x547407(0x33b),{'workbook':_0x13470e,'worksheet':_0x354918,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x412681,'now':_0x5f52aa})}],[_0x412681]),_0x34e7ca=(0x0,u[_0x547407(0xef)])(()=>[{'value':_0x547407(0x14e),'label':_0x412681['t'](_0x547407(0x2d3)),'desc':B(_0x547407(0x14e),{'workbook':_0x13470e,'worksheet':_0x354918,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x412681,'now':_0x5f52aa})},{'value':_0x547407(0x19e),'label':_0x412681['t'](_0x547407(0x353)),'desc':B('@WorksheetTitle',{'workbook':_0x13470e,'worksheet':_0x354918,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x412681,'now':_0x5f52aa})}],[_0x412681]),_0x4820c1=(0x0,u[_0x547407(0xef)])(()=>[{'value':'@DateA','label':_0x412681['t'](_0x547407(0x296)),'desc':B(_0x547407(0xfe),{'workbook':_0x13470e,'worksheet':_0x354918,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x412681,'now':_0x5f52aa})},{'value':_0x547407(0x385),'label':_0x412681['t'](_0x547407(0x1ab)),'desc':B('@DateB',{'workbook':_0x13470e,'worksheet':_0x354918,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x412681,'now':_0x5f52aa})},{'value':_0x547407(0x2aa),'label':_0x412681['t'](_0x547407(0x300)),'desc':B('@DateC',{'workbook':_0x13470e,'worksheet':_0x354918,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x412681,'now':_0x5f52aa})},{'value':_0x547407(0x1e3),'label':_0x412681['t'](_0x547407(0x273)),'desc':B(_0x547407(0x1e3),{'workbook':_0x13470e,'worksheet':_0x354918,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x412681,'now':_0x5f52aa})}],[_0x412681]),_0x2f1b0c=(0x0,u[_0x547407(0xef)])(()=>[{'value':'@TimeA','label':_0x412681['t'](_0x547407(0x191)),'desc':B(_0x547407(0x104),{'workbook':_0x13470e,'worksheet':_0x354918,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x412681,'now':_0x5f52aa})},{'value':_0x547407(0x281),'label':_0x412681['t']('sheets-print.headerFooter.display.timeB'),'desc':B(_0x547407(0x281),{'workbook':_0x13470e,'worksheet':_0x354918,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x412681,'now':_0x5f52aa})},{'value':_0x547407(0xd6),'label':_0x412681['t']('sheets-print.headerFooter.display.timeC'),'desc':B(_0x547407(0xd6),{'workbook':_0x13470e,'worksheet':_0x354918,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x412681,'now':_0x5f52aa})},{'value':_0x547407(0x169),'label':_0x412681['t'](_0x547407(0x116)),'desc':B(_0x547407(0x169),{'workbook':_0x13470e,'worksheet':_0x354918,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x412681,'now':_0x5f52aa})}],[_0x412681]);return(0x0,d[_0x547407(0x346)])(_0x547407(0x29a),{'className':(0x0,c[_0x547407(0xc0)])(_0x547407(0xf2),c[_0x547407(0x115)]),'children':[(0x0,d[_0x547407(0x1c5)])(Z,{'icon':(0x0,d[_0x547407(0x1c5)])(l[_0x547407(0x339)],{}),'items':_0x4634e0,'onHover':_0x514086=>_0x196cfa(_0x514086?_0x547407(0x33d):''),'active':_0x3cfa65===_0x547407(0x33d),'onChange':_0xdabb83,'popupDirection':_0x55eda1}),(0x0,d['jsx'])(Z,{'icon':(0x0,d[_0x547407(0x1c5)])(l['TextIcon'],{}),'items':_0x34e7ca,'onHover':_0x8d45dc=>_0x196cfa(_0x8d45dc?_0x547407(0x119):''),'active':_0x3cfa65===_0x547407(0x119),'onChange':_0xdabb83,'popupDirection':_0x55eda1}),(0x0,d['jsx'])(Z,{'icon':(0x0,d[_0x547407(0x1c5)])(l[_0x547407(0x14d)],{}),'items':_0x4820c1,'onHover':_0x33d79e=>_0x196cfa(_0x33d79e?_0x547407(0x244):''),'active':_0x3cfa65===_0x547407(0x244),'onChange':_0xdabb83,'popupDirection':_0x55eda1}),(0x0,d[_0x547407(0x1c5)])(Z,{'icon':(0x0,d[_0x547407(0x1c5)])(l[_0x547407(0x2b1)],{}),'items':_0x2f1b0c,'onHover':_0xfeb7c2=>_0x196cfa(_0xfeb7c2?_0x547407(0x182):''),'active':_0x3cfa65===_0x547407(0x182),'onChange':_0xdabb83,'popupDirection':_0x55eda1})]});};function Le({width:_0x2a3086=0x2b9,height:_0x4ade66=0x229,cols:_0x2e55e8=0x8,rows:_0x3c91ab=0x18,cellWidth:_0x27905c=0x57,cellHeight:_0x33c64b=0x17,strokeColor:_0x553437='#E5E5E5'}){const _0x2342ab=_0x199a36;let _0x1f2eb7=(0x0,u[_0x2342ab(0xef)])(()=>{const _0x2661a7=_0x2342ab;let _0x1349c4=[];for(let _0x2f9311=0x0;_0x2f9311<_0x3c91ab;_0x2f9311++)for(let _0x40e8bc=0x0;_0x40e8bc<_0x2e55e8;_0x40e8bc++)_0x1349c4[_0x2661a7(0x36f)]((0x0,d[_0x2661a7(0x1c5)])(_0x2661a7(0x380),{'x':_0x40e8bc*_0x27905c+0.5,'y':_0x2f9311*_0x33c64b+0.5,'width':_0x27905c,'height':_0x33c64b,'stroke':_0x553437},_0x2f9311+'-'+_0x40e8bc));return _0x1349c4;},[_0x3c91ab,_0x2e55e8,_0x27905c,_0x33c64b,_0x553437]);return(0x0,d[_0x2342ab(0x1c5)])(_0x2342ab(0x2ac),{'width':_0x2a3086,'height':_0x4ade66,'viewBox':_0x2342ab(0xd1)+_0x2a3086+'\x20'+_0x4ade66,'fill':_0x2342ab(0x1d5),'xmlns':_0x2342ab(0x188),'children':_0x1f2eb7});}const Q=_0x544113=>{const _0x23a065=_0x199a36;let {value:_0x4282db,onChange:_0x2a8000,popupDirection:_0x3c467f=_0x23a065(0x18c)}=_0x544113,_0x27e50f=(0x0,i['useDependency'])(n[_0x23a065(0x2d4)]),_0x29b25c=(0x0,i[_0x23a065(0xfd)])(p['IEditorService']),[_0x2dc3b6,_0x2db2ae]=(0x0,u[_0x23a065(0x2c2)])(!0x1),_0x1e6b4f=(0x0,u[_0x23a065(0x22e)])(null),_0x39ba6a=(0x0,i[_0x23a065(0xfd)])(n[_0x23a065(0x2a7)]),_0x1054d7=[{'value':_0x23a065(0x3b1),'label':_0x27e50f['t'](_0x23a065(0x141))},{'value':'@SheetPage','label':_0x27e50f['t'](_0x23a065(0x156))},{'value':_0x23a065(0x242),'label':_0x27e50f['t'](_0x23a065(0x316))},{'value':_0x23a065(0x33b),'label':_0x27e50f['t']('sheets-print.headerFooter.display.sheetPageTotal')}],_0x196917=[{'value':_0x23a065(0x14e),'label':_0x27e50f['t']('sheets-print.headerFooter.display.title')},{'value':_0x23a065(0x19e),'label':_0x27e50f['t'](_0x23a065(0x353))}],_0xc9f047=[{'value':_0x23a065(0xfe),'label':_0x27e50f['t'](_0x23a065(0x296))},{'value':_0x23a065(0x385),'label':_0x27e50f['t'](_0x23a065(0x1ab))},{'value':_0x23a065(0x2aa),'label':_0x27e50f['t'](_0x23a065(0x300))},{'value':'@DateD','label':_0x27e50f['t'](_0x23a065(0x273))}],_0xee10c0=[{'value':'@TimeA','label':_0x27e50f['t']('sheets-print.headerFooter.display.timeA')},{'value':_0x23a065(0x281),'label':_0x27e50f['t']('sheets-print.headerFooter.display.timeB')},{'value':_0x23a065(0xd6),'label':_0x27e50f['t'](_0x23a065(0x290))},{'value':_0x23a065(0x169),'label':_0x27e50f['t']('sheets-print.headerFooter.display.timeD')}],_0x13934c=[..._0x1054d7,..._0x196917,..._0xc9f047,..._0xee10c0],[_0x40c26b]=(0x0,u[_0x23a065(0x2c2)])(()=>ne(_0x4282db,_0x13934c));return(0x0,d[_0x23a065(0x346)])(_0x23a065(0x29a),{'className':_0x23a065(0x364),'children':[(0x0,d[_0x23a065(0x1c5)])(p[_0x23a065(0x3bd)],{'editorRef':_0x1e6b4f,'initialValue':_0x40c26b,'onChange':_0x1e93a7=>{_0x2a8000==null||_0x2a8000(re(_0x1e93a7));},'onFocusChange':_0xcf645d=>{_0x2db2ae(_0xcf645d);},'onClickOutside':()=>{var _0x44c987;(_0x44c987=_0x1e6b4f['current'])==null||_0x44c987['setSelectionRanges']([]),_0x29b25c['blur']();},'placeholder':_0x27e50f['t'](_0x23a065(0x130))}),(0x0,d[_0x23a065(0x1c5)])('div',{'className':'univer-absolute\x20univer-left-0\x20univer-z-[100]','style':{[_0x3c467f]:0x24},'children':_0x2dc3b6&&(0x0,d[_0x23a065(0x1c5)])(Ie,{'popupDirection':_0x3c467f,'onSelect':async _0x12a209=>{const _0x14f702=_0x23a065;var _0x3a820b;let _0x57a30d=(_0x3a820b=_0x1e6b4f[_0x14f702(0x2b9)])==null?void 0x0:_0x3a820b[_0x14f702(0x377)]();if(!_0x1e6b4f['current'])return;let _0xea7e39=_0x1e6b4f[_0x14f702(0x2b9)][_0x14f702(0x342)]();if(_0xea7e39<0x0)return;let _0x44ade9=_0x13934c[_0x14f702(0x347)](_0x1cbfbd=>_0x1cbfbd[_0x14f702(0x282)]===_0x12a209);if(!_0x44ade9)return;let _0x646863={'dataStream':_0x44ade9[_0x14f702(0x3c7)],'customRanges':[{'startIndex':0x0,'endIndex':_0x44ade9[_0x14f702(0x3c7)]['length']-0x1,'rangeId':(0x0,n['generateRandomId'])(),'rangeType':n[_0x14f702(0x3a2)][_0x14f702(0x29e)],'properties':{'value':_0x44ade9[_0x14f702(0x282)]},'wholeEntity':!0x0}]};await(0x0,n[_0x14f702(0x302)])(0x0);let _0x22159c=n['BuildTextUtils'][_0x14f702(0x32f)]['replace']({'selection':{'startOffset':_0xea7e39,'endOffset':_0xea7e39,'collapsed':!0x0},'body':_0x646863,'doc':_0x1e6b4f['current']['getDocumentDataModel']()});if(!_0x22159c)return;let _0x9e8054={'id':f['RichTextEditingMutation']['id'],'params':{'unitId':_0x57a30d,'actions':[],'textRanges':[{'startOffset':_0xea7e39+_0x646863[_0x14f702(0x1d6)][_0x14f702(0x368)],'endOffset':_0xea7e39+_0x646863['dataStream'][_0x14f702(0x368)],'collapsed':!0x0}],'trigger':_0x14f702(0x23a)}},_0x2cc010=n[_0x14f702(0x261)]['getInstance']();_0x9e8054[_0x14f702(0x127)][_0x14f702(0x317)]=_0x2cc010[_0x14f702(0x38f)](_0x22159c['serialize']()),_0x39ba6a[_0x14f702(0x2e2)](_0x9e8054['id'],_0x9e8054[_0x14f702(0x127)]),setTimeout(()=>{const _0x2634cb=_0x14f702;_0x29b25c[_0x2634cb(0xc5)](_0x57a30d);},0x0);}})})]});},Re=_0x474202=>{const _0x414952=_0x199a36;let {onClose:_0x3a915b}=_0x474202,_0x30fe22=(0x0,i[_0x414952(0xfd)])(k),_0x55b5a5=_0x30fe22['renderConfig'][_0x414952(0x236)]??E,[_0x5dbcd3,_0x54f896]=(0x0,u[_0x414952(0x2c2)])(_0x55b5a5['topLeft']),[_0x4490b1,_0x1eced5]=(0x0,u['useState'])(_0x55b5a5[_0x414952(0xec)]),[_0x5dbd19,_0x2d2883]=(0x0,u[_0x414952(0x2c2)])(_0x55b5a5[_0x414952(0x11c)]),[_0x4345c1,_0x4bbae5]=(0x0,u[_0x414952(0x2c2)])(_0x55b5a5[_0x414952(0x1b4)]),[_0x223bad,_0x5506fe]=(0x0,u[_0x414952(0x2c2)])(_0x55b5a5[_0x414952(0x1bd)]),[_0x5549ad,_0x31bb9b]=(0x0,u[_0x414952(0x2c2)])(_0x55b5a5[_0x414952(0x159)]),_0x26c0d8=(0x0,i[_0x414952(0xfd)])(n[_0x414952(0x2d4)]);return(0x0,d[_0x414952(0x346)])(_0x414952(0x29a),{'className':_0x414952(0x37b),'children':[(0x0,d[_0x414952(0x346)])(_0x414952(0x29a),{'className':(0x0,c['clsx'])(_0x414952(0x203),c[_0x414952(0x15e)]),'children':[(0x0,d['jsx'])(_0x414952(0x29a),{'className':'univer-ml-2\x20univer-text-lg\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-gray-0','children':_0x26c0d8['t'](_0x414952(0x166))}),(0x0,d[_0x414952(0x346)])(_0x414952(0x29a),{'className':_0x414952(0xe0),'children':[(0x0,d['jsx'])(c[_0x414952(0x37d)],{'className':_0x414952(0x241),'onClick':()=>{_0x3a915b();},'children':_0x26c0d8['t'](_0x414952(0x172))}),(0x0,d[_0x414952(0x1c5)])(c[_0x414952(0x37d)],{'variant':_0x414952(0x3ac),'onClick':()=>{const _0x4bb775=_0x414952;_0x3a915b(),_0x30fe22[_0x4bb775(0x3b9)]({'headerFooterSetting':{'topLeft':_0x5dbcd3,'topCenter':_0x4490b1,'topRight':_0x5dbd19,'bottomLeft':_0x4345c1,'bottomCenter':_0x223bad,'bottomRight':_0x5549ad}});},'children':_0x26c0d8['t'](_0x414952(0x1df))})]})]}),(0x0,d['jsx'])(_0x414952(0x29a),{'className':_0x414952(0x234),'children':(0x0,d['jsx'])(_0x414952(0x29a),{'className':_0x414952(0x1b3),'children':(0x0,d[_0x414952(0x346)])('div',{'className':_0x414952(0x1c2),'children':[(0x0,d[_0x414952(0x346)])(_0x414952(0x29a),{'className':_0x414952(0x12a),'children':[(0x0,d[_0x414952(0x1c5)])(Q,{'value':_0x5dbcd3,'onChange':_0x306feb=>_0x54f896(_0x306feb)}),(0x0,d['jsx'])(Q,{'value':_0x4490b1,'onChange':_0x51fc01=>_0x1eced5(_0x51fc01)}),(0x0,d[_0x414952(0x1c5)])(Q,{'value':_0x5dbd19,'onChange':_0x20310f=>_0x2d2883(_0x20310f)})]}),(0x0,d[_0x414952(0x1c5)])(_0x414952(0x29a),{'className':_0x414952(0x193),'children':(0x0,d['jsx'])(Le,{})}),(0x0,d['jsxs'])(_0x414952(0x29a),{'className':_0x414952(0x12a),'children':[(0x0,d[_0x414952(0x1c5)])(Q,{'popupDirection':_0x414952(0x235),'value':_0x4345c1,'onChange':_0x485a0e=>_0x4bbae5(_0x485a0e)}),(0x0,d['jsx'])(Q,{'popupDirection':_0x414952(0x235),'value':_0x223bad,'onChange':_0x5436ff=>_0x5506fe(_0x5436ff)}),(0x0,d[_0x414952(0x1c5)])(Q,{'popupDirection':_0x414952(0x235),'value':_0x5549ad,'onChange':_0xa59ea2=>_0x31bb9b(_0xa59ea2)})]})]})})})]});},ze=0.1,Be=()=>{const _0x4afdc2=_0x199a36;let [_0x2cab1a,_0x118d9c]=(0x0,u[_0x4afdc2(0x2c2)])(!0x1),_0x3b07d0=(0x0,i[_0x4afdc2(0xfd)])(k),_0x2a8f38=(0x0,i['useDependency'])(n[_0x4afdc2(0x2a7)]),_0x471268=(0x0,i[_0x4afdc2(0x33e)])(_0x3b07d0[_0x4afdc2(0x17e)],[]),[_0x8f5c10,_0x1c6331]=(0x0,u[_0x4afdc2(0x2c2)])(0x1),[_0x9fedd4,_0x38a8cc]=(0x0,u[_0x4afdc2(0x2c2)])(!0x1),_0x355f3b=(0x0,i[_0x4afdc2(0xfd)])(b),_0x1b71ea=(0x0,i[_0x4afdc2(0x33e)])(_0x355f3b['preparing$'],_0x355f3b['preparing']),_0x2c6f19=(0x0,i[_0x4afdc2(0xfd)])(n['IUniverInstanceService']),_0x7e48a6=(0x0,i[_0x4afdc2(0xfd)])(n[_0x4afdc2(0x2d4)]),_0x454426=(0x0,i[_0x4afdc2(0xfd)])(n[_0x4afdc2(0x31a)]),{ls:_0x39140f,pbk:_0x5cb486}=(0x0,i[_0x4afdc2(0xfd)])(n['IConfigService'])['getConfig'](e[_0x4afdc2(0x284)])??{},{limit:_0x3af96e,isPro:_0x2151da}=(0x0,u[_0x4afdc2(0xef)])(()=>{let {page:_0x1615d9,isPro:_0x1e429a}=ee(0x3,_0x39140f,_0x5cb486);return{'limit':_0x1615d9,'isPro':_0x1e429a};},[_0x39140f,_0x5cb486]),_0x19bf5e=(0x0,u[_0x4afdc2(0x22e)])(null),_0x354216=(0x0,i[_0x4afdc2(0xfd)])(i[_0x4afdc2(0x154)]),_0xad1056=we(import(`@univerjs-pro/collaboration-client`).then(_0x4694b3=>_0x4694b3['CollaborationController'],()=>void 0x0));(0x0,u[_0x4afdc2(0x1c6)])(()=>{const _0x37b176=_0x4afdc2;var _0x5efb1d;if(!_0xad1056)return;let _0x4f0cc3=_0x2c6f19['getCurrentUnitOfType'](n['UniverInstanceType']['UNIVER_SHEET']);if(!_0x4f0cc3)return;let _0x1c0f46=_0x4f0cc3['getUnitId'](),_0x58b313=_0x454426['get'](_0xad1056,n[_0x37b176(0x369)][_0x37b176(0x195)]),_0x43875b=_0x58b313==null||(_0x5efb1d=_0x58b313[_0x37b176(0x21d)](_0x1c0f46))==null?void 0x0:_0x5efb1d[_0x37b176(0x3cd)]();return()=>{const _0x189677=_0x37b176;_0x43875b==null||_0x43875b[_0x189677(0x2ff)]();};},[_0xad1056,_0x454426,_0x2c6f19]);let _0x5157c8=(0x0,u[_0x4afdc2(0xef)])(()=>oe(_0x471268),[_0x471268]),_0xf6a0bd=(0x0,u[_0x4afdc2(0xef)])(()=>_0x5157c8[_0x4afdc2(0x319)](0x0,_0x3af96e),[_0x5157c8,_0x3af96e]),_0x4c60bc=_0x3b07d0[_0x4afdc2(0x2b0)],_0x2f282d=Math['round'](_0x8f5c10*(0x31a/_0x4c60bc['w'])*0xa)/0xa,[_0x16ee47,{wrapperStyle:_0xf6b68e,containerProps:_0x3135c9}]=(0x0,i[_0x4afdc2(0x1bb)])(_0xf6a0bd,{'containerTarget':_0x19bf5e,'itemHeight':_0x4c60bc['h']*_0x2f282d+0x1c,'overscan':0x5}),_0xa1475f=()=>{_0x2a8f38['executeCommand'](L['id']);},_0x310068=()=>{const _0x2b21bf=_0x4afdc2;_0x38a8cc(!0x0),_0x354216['show']({'content':_0x7e48a6['t'](_0x2b21bf(0x265)),'type':c[_0x2b21bf(0x28c)]['Loading']}),setTimeout(()=>{const _0x37939d=_0x2b21bf;_0x2a8f38[_0x37939d(0x215)](R['id']);},0x12c);},_0x19da16=(0x0,i[_0x4afdc2(0x3c9)])(()=>{_0x118d9c(!0x0);});return(0x0,d[_0x4afdc2(0x346)])(_0x4afdc2(0x29a),{'className':'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','children':[_0x2cab1a&&(0x0,d[_0x4afdc2(0x1c5)])(Re,{'onClose':()=>_0x118d9c(!0x1)}),_0x9fedd4&&(0x0,d[_0x4afdc2(0x1c5)])(_0x4afdc2(0x29a),{'className':_0x4afdc2(0x213)}),(0x0,d['jsxs'])(_0x4afdc2(0x29a),{'className':(0x0,c[_0x4afdc2(0xc0)])('univer-flex\x20univer-h-16\x20univer-items-center\x20univer-justify-between\x20univer-bg-gray-0\x20univer-px-4\x20dark:!univer-bg-gray-900',c[_0x4afdc2(0x15e)]),'children':[(0x0,d[_0x4afdc2(0x346)])(_0x4afdc2(0x29a),{'className':'univer-ml-2\x20univer-text-base\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-gray-0','children':[_0x7e48a6['t'](_0x4afdc2(0x38e)),_0xf6a0bd['length'],_0x7e48a6['t']('sheets-print.header.pages')]}),(0x0,d[_0x4afdc2(0x346)])(_0x4afdc2(0x29a),{'className':_0x4afdc2(0x2d8),'children':[(0x0,d[_0x4afdc2(0x1c5)])(c[_0x4afdc2(0x37d)],{'onClick':_0xa1475f,'children':_0x7e48a6['t']('sheets-print.header.cancel')}),(0x0,d[_0x4afdc2(0x1c5)])(c[_0x4afdc2(0x37d)],{'variant':_0x4afdc2(0x3ac),'disabled':_0x1b71ea,'onClick':_0x310068,'children':_0x7e48a6['t'](_0x4afdc2(0x144))})]})]}),(0x0,d[_0x4afdc2(0x346)])(_0x4afdc2(0x29a),{'className':_0x4afdc2(0x251),'children':[(0x0,d[_0x4afdc2(0x346)])('div',{'className':'univer-relative\x20univer-box-border\x20univer-flex\x20univer-flex-1\x20univer-flex-col\x20univer-overflow-hidden','children':[(0x0,d[_0x4afdc2(0x1c5)])(_0x4afdc2(0x29a),{'ref':_0x19bf5e,'className':(0x0,c[_0x4afdc2(0xc0)])(_0x4afdc2(0xe2),c[_0x4afdc2(0x3b3)]),'aria-busy':_0x1b71ea,..._0x3135c9,'children':_0x1b71ea?(0x0,d['jsx'])(_0x4afdc2(0x29a),{'className':_0x4afdc2(0x35d),'role':'status','aria-label':_0x7e48a6['t'](_0x4afdc2(0x265)),'children':(0x0,d[_0x4afdc2(0x1c5)])(l['LoadingMultiIcon'],{'className':_0x4afdc2(0x1b7),'aria-hidden':_0x4afdc2(0x2c3)})}):(0x0,d[_0x4afdc2(0x1c5)])(_0x4afdc2(0x29a),{'style':_0xf6b68e,'children':_0x16ee47[_0x4afdc2(0x1e8)](_0x4f05f1=>(0x0,d['jsx'])(Ee,{'config':_0x4f05f1[_0x4afdc2(0x1cd)],'page':_0x4f05f1['data']['page'],'previewScale':_0x8f5c10},_0x4f05f1[_0x4afdc2(0x1cd)]['unitId']+':'+_0x4f05f1[_0x4afdc2(0x1cd)][_0x4afdc2(0x1cf)]+':'+_0x4f05f1[_0x4afdc2(0x1cd)][_0x4afdc2(0xe7)]+':'+_0x4f05f1[_0x4afdc2(0x1cd)]['range'][_0x4afdc2(0x152)]+':'+_0x4f05f1['data'][_0x4afdc2(0x21b)][_0x4afdc2(0x176)]+':'+_0x4f05f1['data'][_0x4afdc2(0x21b)][_0x4afdc2(0x1a5)]+':'+_0x4f05f1[_0x4afdc2(0x1cd)][_0x4afdc2(0x21b)][_0x4afdc2(0x1ce)]))})}),!_0x1b71ea&&!_0x2151da&&(0x0,d[_0x4afdc2(0x1c5)])(_0x4afdc2(0x29a),{'className':_0x4afdc2(0x386),'children':(0x0,d[_0x4afdc2(0x1c5)])('a',{'href':_0x7e48a6['t']('sheets-print.limit.link'),'target':'_blank','rel':'noreferrer\x20noopener','children':_0x7e48a6['t']('sheets-print.limit.page')[_0x4afdc2(0x1ca)]('{limit}',''+_0x3af96e)})}),!_0x1b71ea&&!_0x2cab1a&&(0x0,d[_0x4afdc2(0x346)])(_0x4afdc2(0x29a),{'className':_0x4afdc2(0x12d),'children':[(0x0,d[_0x4afdc2(0x1c5)])(_0x4afdc2(0x29a),{'className':_0x4afdc2(0x3bf),'onClick':()=>{const _0x1920d3=_0x4afdc2;_0x1c6331(Math[_0x1920d3(0x249)](_0x8f5c10+ze,0x2));},'children':(0x0,d[_0x4afdc2(0x1c5)])(l['IncreaseIcon'],{})}),(0x0,d[_0x4afdc2(0x1c5)])(_0x4afdc2(0x29a),{'className':_0x4afdc2(0x3bf),'onClick':()=>{const _0x17edab=_0x4afdc2;_0x1c6331(Math[_0x17edab(0x1a8)](_0x8f5c10-ze,0.5));},'children':(0x0,d['jsx'])(l[_0x4afdc2(0x2b2)],{})})]})]}),(0x0,d['jsx'])(_0x4afdc2(0x29a),{'className':_0x4afdc2(0x2cd),'children':(0x0,d[_0x4afdc2(0x1c5)])(Oe,{'onShowFooterHeaderEditor':_0x19da16})})]})]});},Ve=()=>{const _0x14701d=_0x199a36;let _0x17d2c1=(0x0,i[_0x14701d(0xfd)])(b);return(0x0,i[_0x14701d(0x33e)])(_0x17d2c1[_0x14701d(0x12e)],_0x17d2c1[_0x14701d(0x148)])?(0x0,d[_0x14701d(0x1c5)])(Be,{}):null;},He={'id':I['id'],'binding':i[_0x199a36(0x335)]['P']|i['MetaKeys']['CTRL_COMMAND'],'preconditions':s['whenSheetEditorFocused']};let Ue=class extends n['Disposable']{constructor(_0x554fd3,_0x2630b1,_0x1777bd,_0x18925a,_0x39e070,_0x2097f1,_0x541a6a,_0x2ce714,_0x121c35,_0xbdad70){const _0x1b4d0a=_0x199a36;super(),this[_0x1b4d0a(0x34f)]=_0x554fd3,this[_0x1b4d0a(0xf3)]=_0x2630b1,this['_sheetPrintManagerService']=_0x1777bd,this[_0x1b4d0a(0x1f4)]=_0x18925a,this[_0x1b4d0a(0x15d)]=_0x39e070,this[_0x1b4d0a(0x157)]=_0x2097f1,this[_0x1b4d0a(0x2ce)]=_0x541a6a,this[_0x1b4d0a(0x1a3)]=_0x2ce714,this['_renderManagerService']=_0x121c35,this[_0x1b4d0a(0xe6)]=_0xbdad70,this[_0x1b4d0a(0x19a)](),this[_0x1b4d0a(0x295)](),this[_0x1b4d0a(0x118)](),this[_0x1b4d0a(0x226)](),this['_initCommandListener'](),this[_0x1b4d0a(0xdd)](),this[_0x1b4d0a(0x13d)]();}[_0x199a36(0x19a)](){const _0x11160a=_0x199a36;[I,L,R,le,z,G,fe][_0x11160a(0x18a)](_0x2b60e6=>this[_0x11160a(0xf3)]['registerCommand'](_0x2b60e6));}[_0x199a36(0x295)](){const _0x397884=_0x199a36;this[_0x397884(0x2c1)](this[_0x397884(0xe6)][_0x397884(0x2c8)](i['BuiltInUIPart'][_0x397884(0x3a1)],()=>(0x0,i[_0x397884(0x1fb)])(Ve,this['_injector'])));}[_0x199a36(0x226)](){const _0x5787f5=_0x199a36;[He][_0x5787f5(0x18a)](_0x5c05b3=>{const _0x29da92=_0x5787f5;this[_0x29da92(0x157)][_0x29da92(0x105)](_0x5c05b3);});}[_0x199a36(0x118)](){const _0x384119=_0x199a36;this[_0x384119(0x15d)][_0x384119(0x390)](ve);}[_0x199a36(0xdd)](){const _0x7565e5=_0x199a36;this[_0x7565e5(0x2c1)](this[_0x7565e5(0x34f)][_0x7565e5(0x12e)]['subscribe'](_0x2d4b3d=>{_0x2d4b3d&&this['_sheetPrintManagerService']['reLayout']();}));}[_0x199a36(0x334)](){const _0x1767c0=_0x199a36;let _0x3feacb=this[_0x1767c0(0x10e)]['layoutInfos'],_0x3913e1=this['_sheetPrintManagerService'][_0x1767c0(0x1b9)];return this[_0x1767c0(0x1f4)][_0x1767c0(0x24b)](_0x3feacb,_0x3913e1);}[_0x199a36(0x2b6)](){const _0x3ae188=_0x199a36;this[_0x3ae188(0x2c1)](this['_commandService'][_0x3ae188(0x1af)](_0x4f333e=>{_0x4f333e['id']===R['id']&&this['_print']();}));}['_initMutationListener'](){const _0x3d1fd6=_0x199a36;let _0x55a141=this[_0x3d1fd6(0x2ce)][_0x3d1fd6(0x202)](W);this[_0x3d1fd6(0x2c1)](_0x55a141[_0x3d1fd6(0x12e)][_0x3d1fd6(0x13c)](()=>{const _0x3edb72=_0x3d1fd6;let _0x225bcd=this[_0x3edb72(0x1a3)][_0x3edb72(0xe8)](0x2);if(_0x225bcd){let _0x5e379e=_0x225bcd[_0x3edb72(0x128)](),_0x3c0d2a=this[_0x3edb72(0x310)][_0x3edb72(0x20d)](_0x5e379e);if(_0x3c0d2a){var _0x1df84e;(_0x1df84e=_0x3c0d2a[_0x3edb72(0x2ca)])==null||_0x1df84e[_0x3edb72(0xcf)]();}}})),this[_0x3d1fd6(0x2c1)](this[_0x3d1fd6(0x10e)]['layoutConfig$'][_0x3d1fd6(0x13c)](()=>{const _0x2f3335=_0x3d1fd6;if(!_0x55a141[_0x2f3335(0x148)])return;this[_0x2f3335(0x10e)][_0x2f3335(0x248)]();let _0x59f7d4=this[_0x2f3335(0x1a3)]['getCurrentUnitOfType'](0x2);if(_0x59f7d4){let _0x231dbc=_0x59f7d4[_0x2f3335(0x128)](),_0x58087c=this[_0x2f3335(0x310)][_0x2f3335(0x20d)](_0x231dbc);if(_0x58087c){var _0x2cec08;(_0x2cec08=_0x58087c[_0x2f3335(0x2ca)])==null||_0x2cec08[_0x2f3335(0xcf)]();}}})),this[_0x3d1fd6(0x2c1)](this[_0x3d1fd6(0xf3)]['onCommandExecuted'](_0x1fc83e=>{const _0x3bb853=_0x3d1fd6;if(!_0x55a141[_0x3bb853(0x148)]||[I['id'],L['id'],R['id'],z['id'],G['id'],fe['id']][_0x3bb853(0x324)](_0x1fc83e['id']))return;this['_sheetPrintManagerService']['reLayout']();let _0x470390=this['_univerInstanceService'][_0x3bb853(0xe8)](0x2);if(_0x470390){let _0x34f1af=_0x470390['getUnitId'](),_0x58c058=this[_0x3bb853(0x310)][_0x3bb853(0x20d)](_0x34f1af);if(_0x58c058){var _0x5808b3;(_0x5808b3=_0x58c058[_0x3bb853(0x2ca)])==null||_0x5808b3['makeDirty']();}}}));}};Ue=O([D(0x0,b),D(0x1,n[_0x199a36(0x2a7)]),D(0x2,k),D(0x3,(0x0,n['Inject'])(U)),D(0x4,i['IMenuManagerService']),D(0x5,i[_0x199a36(0x3a8)]),D(0x6,(0x0,n[_0x199a36(0x24e)])(n['Injector'])),D(0x7,n['IUniverInstanceService']),D(0x8,o[_0x199a36(0x160)]),D(0x9,i['IUIPartsService'])],Ue);let $=class extends n[_0x199a36(0x233)]{constructor(_0x2d161f=K,_0x2fff76,_0x29b017,_0x2b3345){const _0x58f7f7=_0x199a36;super(),this[_0x58f7f7(0x32e)]=_0x2d161f,this['_injector']=_0x2fff76,this['_configService']=_0x29b017,this['_renderManagerService']=_0x2b3345;let {menu:_0x58c0f5,..._0x39dfb4}=(0x0,n[_0x58f7f7(0x3b7)])({},K,this['_config']);_0x58c0f5&&this[_0x58f7f7(0x163)]['setConfig']('menu',_0x58c0f5,{'merge':!0x0}),this[_0x58f7f7(0x163)][_0x58f7f7(0x17d)](Se,_0x39dfb4);}[_0x199a36(0x363)](){const _0x4c4fd7=_0x199a36;this['_injector'][_0x4c4fd7(0x379)](t['IPrintPreparationService'])||this[_0x4c4fd7(0x2ce)][_0x4c4fd7(0x362)]([t[_0x4c4fd7(0xc8)],{'useClass':t[_0x4c4fd7(0x3c3)]}]),(0x0,n[_0x4c4fd7(0x1e9)])(this['_injector'],[[k,{'useClass':N}],[b,{'useClass':x}],[W,{'useClass':ue}],[U],[X],[Ue]]),this[_0x4c4fd7(0x2c1)](this[_0x4c4fd7(0x310)]['registerRenderModule'](n[_0x4c4fd7(0x23e)][_0x4c4fd7(0x3a5)],[Fe])),(0x0,n[_0x4c4fd7(0x3c1)])(this[_0x4c4fd7(0x2ce)],[[X],[Ue]]);}};y($,'pluginName',xe),y($,_0x199a36(0x11d),ye),y($,_0x199a36(0x315),be),y($,'type',n[_0x199a36(0x23e)]['UNIVER_SHEET']),$=O([(0x0,n['DependentOn'])(e[_0x199a36(0x2db)],o[_0x199a36(0x35b)],r[_0x199a36(0xcd)],s[_0x199a36(0x2a4)]),D(0x1,(0x0,n[_0x199a36(0x24e)])(n[_0x199a36(0x31a)])),D(0x2,n['IConfigService']),D(0x3,o['IRenderManagerService'])],$),exports[_0x199a36(0x344)]=L,exports['ConfirmSheetPrintOperation']=R,exports[_0x199a36(0x356)]=k,exports['PrintArea']=S,exports[_0x199a36(0x357)]=w,exports['PrintHeaderFooter']=C,exports[_0x199a36(0x2a6)]=T,exports[_0x199a36(0x2c6)]=ae,Object[_0x199a36(0x2de)](exports,_0x199a36(0x348),{'enumerable':!0x0,'get':function(){return U;}}),exports['SheetPrintOpenOperation']=I,exports[_0x199a36(0x359)]=le,exports[_0x199a36(0x3c6)]=ve,Object[_0x199a36(0x2de)](exports,_0x199a36(0x212),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x199a36(0x2de)](exports,_0x199a36(0x15f),{'enumerable':!0x0,'get':function(){return $;}}),exports['defaultHeaderFooter']=E,exports[_0x199a36(0x3a6)]=F;
1
+ const _0x3bd298=_0x181a;(function(_0x14ee86,_0x1c8699){const _0x5f1635=_0x181a,_0x1246ad=_0x14ee86();while(!![]){try{const _0x1173b0=-parseInt(_0x5f1635(0x31a))/0x1+-parseInt(_0x5f1635(0x2e6))/0x2*(parseInt(_0x5f1635(0x385))/0x3)+parseInt(_0x5f1635(0x2bf))/0x4+-parseInt(_0x5f1635(0x27c))/0x5*(-parseInt(_0x5f1635(0x301))/0x6)+parseInt(_0x5f1635(0x158))/0x7*(-parseInt(_0x5f1635(0x17c))/0x8)+parseInt(_0x5f1635(0x29f))/0x9+parseInt(_0x5f1635(0x208))/0xa*(parseInt(_0x5f1635(0x17d))/0xb);if(_0x1173b0===_0x1c8699)break;else _0x1246ad['push'](_0x1246ad['shift']());}catch(_0x9fd2fe){_0x1246ad['push'](_0x1246ad['shift']());}}}(_0x57bb,0xd8fbb),Object[_0x3bd298(0x3c0)](exports,Symbol[_0x3bd298(0x32b)],{'value':_0x3bd298(0xbe)}));let e=require('@univerjs-pro/license'),t=require('@univerjs-pro/print'),n=require('@univerjs/core'),r=require('@univerjs/sheets'),i=require('@univerjs/ui'),a=require('rxjs'),o=require('@univerjs/engine-render'),s=require('@univerjs/sheets-ui'),c=require('@univerjs/design'),l=require('@univerjs/icons'),u=require('react'),d=require('react/jsx-runtime'),f=require('@univerjs/docs'),p=require('@univerjs/docs-ui');const m=Number[_0x3bd298(0x36f)](0x6abb7c7e),h=_0x3bd298(0x105);function g(_0x5566b7){'@babel/helpers - typeof';const _0x2613ee=_0x3bd298;return g=typeof Symbol==_0x2613ee(0x22b)&&typeof Symbol[_0x2613ee(0x2c4)]=='symbol'?function(_0x96d6ea){return typeof _0x96d6ea;}:function(_0x227413){const _0x599e9f=_0x2613ee;return _0x227413&&typeof Symbol==_0x599e9f(0x22b)&&_0x227413['constructor']===Symbol&&_0x227413!==Symbol[_0x599e9f(0x372)]?_0x599e9f(0xe1):typeof _0x227413;},g(_0x5566b7);}function _(_0x25776c,_0x6710c8){const _0x211cf6=_0x3bd298;if(g(_0x25776c)!=_0x211cf6(0x3b6)||!_0x25776c)return _0x25776c;var _0x15d1ac=_0x25776c[Symbol[_0x211cf6(0x269)]];if(_0x15d1ac!==void 0x0){var _0x5d2f98=_0x15d1ac[_0x211cf6(0x354)](_0x25776c,_0x6710c8||_0x211cf6(0x13a));if(g(_0x5d2f98)!=_0x211cf6(0x3b6))return _0x5d2f98;throw TypeError(_0x211cf6(0x20a));}return(_0x6710c8===_0x211cf6(0x2ae)?String:Number)(_0x25776c);}function v(_0x6f10a0){const _0x3f8cbd=_0x3bd298;var _0x11da48=_(_0x6f10a0,_0x3f8cbd(0x2ae));return g(_0x11da48)==_0x3f8cbd(0xe1)?_0x11da48:_0x11da48+'';}function y(_0x12444b,_0x21f471,_0x309c0e){const _0xc7b9d7=_0x3bd298;return(_0x21f471=v(_0x21f471))in _0x12444b?Object[_0xc7b9d7(0x3c0)](_0x12444b,_0x21f471,{'value':_0x309c0e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x12444b[_0x21f471]=_0x309c0e,_0x12444b;}const b=(0x0,n[_0x3bd298(0xb4)])(_0x3bd298(0x1cf));var x=class extends n[_0x3bd298(0x1a7)]{constructor(..._0x517e87){const _0x4d8fe6=_0x3bd298;super(..._0x517e87),y(this,_0x4d8fe6(0xb6),new a[(_0x4d8fe6(0x24f))](!0x1)),y(this,_0x4d8fe6(0xdb),new a[(_0x4d8fe6(0x24f))](!0x1));}get[_0x3bd298(0x1a5)](){const _0xcc747=_0x3bd298;return this[_0xcc747(0xb6)][_0xcc747(0x108)]();}get[_0x3bd298(0x160)](){const _0x5cf06c=_0x3bd298;return this[_0x5cf06c(0xdb)][_0x5cf06c(0x108)]();}[_0x3bd298(0x35b)](){const _0x629bfe=_0x3bd298;this[_0x629bfe(0xb6)][_0x629bfe(0x1cd)](!0x0);}[_0x3bd298(0x125)](){const _0x2c48ba=_0x3bd298;this[_0x2c48ba(0xb6)][_0x2c48ba(0x1cd)](!0x1);}[_0x3bd298(0xd7)](_0x145edd){const _0x3bd4b0=_0x3bd298;this[_0x3bd4b0(0xdb)][_0x3bd4b0(0x1cd)](_0x145edd);}[_0x3bd298(0x3bb)](){const _0x3f2a90=_0x3bd298;this['visible$'][_0x3f2a90(0x2a0)](),this[_0x3f2a90(0xdb)][_0x3f2a90(0x2a0)](),super[_0x3f2a90(0x3bb)]();}};let S=function(_0x430af3){const _0x411c92=_0x3bd298;return _0x430af3['CurrentSheet']=_0x411c92(0x374),_0x430af3[_0x411c92(0x25d)]='Workbook',_0x430af3[_0x411c92(0x174)]=_0x411c92(0x174),_0x430af3['AllSelection']='AllSelection',_0x430af3;}({}),C=function(_0x360e3e){const _0x10ef37=_0x3bd298;return _0x360e3e[_0x10ef37(0x336)]='PageSize',_0x360e3e[_0x10ef37(0x183)]=_0x10ef37(0x183),_0x360e3e[_0x10ef37(0x334)]=_0x10ef37(0x334),_0x360e3e[_0x10ef37(0x19e)]=_0x10ef37(0x19e),_0x360e3e[_0x10ef37(0xec)]=_0x10ef37(0xec),_0x360e3e;}({}),w=function(_0xe1ce3d){const _0x4af4d1=_0x3bd298;return _0xe1ce3d[_0x4af4d1(0x1fc)]=_0x4af4d1(0x1fc),_0xe1ce3d['Column']=_0x4af4d1(0xe5),_0xe1ce3d;}({}),T=function(_0x150720){const _0x1c3e6d=_0x3bd298;return _0x150720[_0x1c3e6d(0x183)]=_0x1c3e6d(0x28a),_0x150720[_0x1c3e6d(0x334)]=_0x1c3e6d(0x392),_0x150720[_0x1c3e6d(0x1de)]=_0x1c3e6d(0xe0),_0x150720['DateB']=_0x1c3e6d(0x303),_0x150720[_0x1c3e6d(0x22f)]=_0x1c3e6d(0x3b8),_0x150720[_0x1c3e6d(0x386)]=_0x1c3e6d(0x273),_0x150720[_0x1c3e6d(0x262)]=_0x1c3e6d(0x388),_0x150720[_0x1c3e6d(0x21d)]='@TimeA',_0x150720[_0x1c3e6d(0x1b0)]='@TimeB',_0x150720[_0x1c3e6d(0x37a)]='@TimeC',_0x150720[_0x1c3e6d(0x12c)]=_0x1c3e6d(0x300),_0x150720['Page']=_0x1c3e6d(0x251),_0x150720[_0x1c3e6d(0x315)]=_0x1c3e6d(0x346),_0x150720[_0x1c3e6d(0x378)]='@TotalPage',_0x150720[_0x1c3e6d(0x29a)]='@TotalSheetPage',_0x150720;}({});const E={'topLeft':'','topCenter':'','topRight':'','bottomLeft':'','bottomCenter':'','bottomRight':''};function D(_0x245ce4,_0x3d4183){return function(_0x56ec00,_0x1f4d66){_0x3d4183(_0x56ec00,_0x1f4d66,_0x245ce4);};}function O(_0x603b01,_0x2c2a90,_0x1b4866,_0x3b3e61){const _0x15da67=_0x3bd298;var _0x54a499=arguments[_0x15da67(0x213)],_0x3c9a51=_0x54a499<0x3?_0x2c2a90:_0x3b3e61===null?_0x3b3e61=Object[_0x15da67(0x2d6)](_0x2c2a90,_0x1b4866):_0x3b3e61,_0x59e2c3;if(typeof Reflect==_0x15da67(0x3b6)&&typeof Reflect[_0x15da67(0x2d0)]=='function')_0x3c9a51=Reflect[_0x15da67(0x2d0)](_0x603b01,_0x2c2a90,_0x1b4866,_0x3b3e61);else{for(var _0x16d625=_0x603b01[_0x15da67(0x213)]-0x1;_0x16d625>=0x0;_0x16d625--)(_0x59e2c3=_0x603b01[_0x16d625])&&(_0x3c9a51=(_0x54a499<0x3?_0x59e2c3(_0x3c9a51):_0x54a499>0x3?_0x59e2c3(_0x2c2a90,_0x1b4866,_0x3c9a51):_0x59e2c3(_0x2c2a90,_0x1b4866))||_0x3c9a51);}return _0x54a499>0x3&&_0x3c9a51&&Object['defineProperty'](_0x2c2a90,_0x1b4866,_0x3c9a51),_0x3c9a51;}const k=(0x0,n[_0x3bd298(0xb4)])(_0x3bd298(0x16e)),A=_0x3eb949=>Math[_0x3bd298(0x185)](_0x3eb949*0x64)/0x64,j={'startColumn':0x0,'endColumn':0x0,'startRow':0x0,'endRow':0x0},M={'startColumn':-0x1,'startRow':-0x1,'xSplit':0x0,'ySplit':0x0};let N=class{constructor(_0x4e488f,_0x33ce36,_0x62b1b0,_0x261cec){const _0x3096cd=_0x3bd298;this[_0x3096cd(0xd1)]=_0x4e488f,this[_0x3096cd(0x34a)]=_0x33ce36,this[_0x3096cd(0xcd)]=_0x62b1b0,this[_0x3096cd(0x229)]=_0x261cec,y(this,_0x3096cd(0x2c3),{'area':_0x3096cd(0x374),'subUnitIds':[],'paperSize':n['PaperType']['A4'],'direction':t[_0x3096cd(0x36e)]['Portrait'],'scale':t['PrintScale']['Origin'],'customScale':0x1,'freeze':[_0x3096cd(0x1fc),_0x3096cd(0xe5)],'margin':t[_0x3096cd(0x34c)][_0x3096cd(0x216)],'maxRowsEachPage':0x1/0x0,'maxColumnsEachPage':0x1/0x0,'marginCustom':{'top':0x0,'bottom':0x0,'left':0x0,'right':0x0}}),y(this,_0x3096cd(0x3a9),{'gridlines':!0x0,'hAlign':t[_0x3096cd(0x1a2)]['Middle'],'vAlign':t[_0x3096cd(0x1a2)][_0x3096cd(0x1f8)],'headerFooter':[],'headerFooterSetting':E,'isCustomHeaderFooter':!0x1}),y(this,'_layoutInfos',[]),y(this,_0x3096cd(0x2dc),new a['BehaviorSubject'](this[_0x3096cd(0x19f)])),y(this,_0x3096cd(0xd5),new a['BehaviorSubject'](this[_0x3096cd(0x2c3)])),y(this,'_renderConfig$',new a[(_0x3096cd(0x24f))](this[_0x3096cd(0x3a9)])),y(this,_0x3096cd(0xce),null),y(this,_0x3096cd(0x10f),this['_layoutConfig$'][_0x3096cd(0x1ad)]()),y(this,_0x3096cd(0x263),this[_0x3096cd(0x1d5)][_0x3096cd(0x1ad)]()),y(this,_0x3096cd(0x35e),this['_layoutInfos$'][_0x3096cd(0x1ad)]()['pipe']((0x0,a[_0x3096cd(0x1b3)])(0x12c)));}get['layoutInfos'](){const _0x24930f=_0x3bd298;return this[_0x24930f(0x19f)];}get[_0x3bd298(0xf7)](){const _0x1a1a6f=_0x3bd298;return this[_0x1a1a6f(0x3a9)];}get['layoutConfig'](){return this['_layoutConfig'];}get[_0x3bd298(0x257)](){const _0x33c684=_0x3bd298;let {paperSize:_0x5b8c29,direction:_0x2f9db5,pageSizeCustom:_0x51a104}=this['_layoutConfig'];if(_0x51a104)return _0x51a104;let _0x4002c3=n['PAGE_SIZE'][_0x5b8c29];return _0x2f9db5===t[_0x33c684(0x36e)][_0x33c684(0x1e3)]?{'w':_0x4002c3[_0x33c684(0x298)],'h':_0x4002c3[_0x33c684(0x3b9)]}:{'w':_0x4002c3[_0x33c684(0x3b9)],'h':_0x4002c3[_0x33c684(0x298)]};}get['paperMargin'](){const _0x3f39e7=_0x3bd298;return this[_0x3f39e7(0x2c3)]['margin']===t[_0x3f39e7(0x34c)]['Custom']?this['_layoutConfig']['marginCustom']:t[_0x3f39e7(0x2f8)][this[_0x3f39e7(0x2c3)]['margin']];}['updateLayoutConfig'](_0x3ea92c){const _0xefcbf9=_0x3bd298;this[_0xefcbf9(0x2c3)]={...this['_layoutConfig'],..._0x3ea92c},this[_0xefcbf9(0xd5)][_0xefcbf9(0x1cd)](this[_0xefcbf9(0x2c3)]),this[_0xefcbf9(0x360)]();}['replaceLayoutConfig'](_0x1db341){const _0x2f9198=_0x3bd298;this[_0x2f9198(0x2c3)]=_0x1db341,this[_0x2f9198(0xd5)]['next'](this[_0x2f9198(0x2c3)]),this[_0x2f9198(0x360)]();}[_0x3bd298(0x309)](_0x61d9b6){const _0x1106f9=_0x3bd298;this[_0x1106f9(0x3a9)]={...this[_0x1106f9(0x3a9)],..._0x61d9b6},this[_0x1106f9(0x1d5)][_0x1106f9(0x1cd)](this['_renderConfig']);}[_0x3bd298(0x22c)](_0x23671e){const _0x2db684=_0x3bd298;this[_0x2db684(0x3a9)]=_0x23671e,this[_0x2db684(0x1d5)][_0x2db684(0x1cd)](this[_0x2db684(0x3a9)]);}[_0x3bd298(0x360)](){const _0x3b95c8=_0x3bd298;this['_layoutInfos']=this['_calculate'](),this[_0x3b95c8(0x2dc)]['next'](this[_0x3b95c8(0x19f)]);}['reset'](){const _0x1f77c3=_0x3bd298;this[_0x1f77c3(0x19f)]=[],this[_0x1f77c3(0x2dc)][_0x1f77c3(0x1cd)](this[_0x1f77c3(0x19f)]),this['_layoutConfig']={...this['_layoutConfig'],'area':_0x1f77c3(0x374),'maxRowsEachPage':0x1/0x0,'maxColumnsEachPage':0x1/0x0},this['_layoutConfig$'][_0x1f77c3(0x1cd)](this['_layoutConfig']);}[_0x3bd298(0x18b)](_0x15eef5){const _0x471ce5=_0x3bd298;var _0x3f5de4;(_0x3f5de4=this[_0x471ce5(0xce)])==null||_0x3f5de4[_0x471ce5(0x3bb)](),this[_0x471ce5(0xce)]=_0x15eef5;}[_0x3bd298(0x21c)](){const _0xf83964=_0x3bd298;var _0x5ce85d;(_0x5ce85d=this['_printViewDisposable'])==null||_0x5ce85d[_0xf83964(0x3bb)](),this['_printViewDisposable']=null;}[_0x3bd298(0xb2)](){const _0x3bb5e5=_0x3bd298;let _0x2c8230=this[_0x3bb5e5(0x2eb)](),_0x249179=[];return _0x2c8230[_0x3bb5e5(0x2a5)](_0x2aa729=>{const _0x33dfad=_0x3bb5e5;if(_0x2aa729){let _0x4e2287=this[_0x33dfad(0x395)](_0x2aa729);_0x4e2287&&_0x249179[_0x33dfad(0x181)](_0x4e2287);}}),_0x249179;}['_calculateSheetRangeById'](_0x442a06,_0x4b8d2e,_0x1807da){const _0x27ab31=_0x3bd298;var _0x325486;let _0x5b284f=this[_0x27ab31(0xd1)][_0x27ab31(0x35d)](n[_0x27ab31(0x394)]['UNIVER_SHEET'])[_0x27ab31(0x172)](_0x4b8d2e);if(!_0x5b284f)return;let _0x394705=_0x5b284f[_0x27ab31(0x359)](),_0xb796b6=_0x1807da??_0x5b284f[_0x27ab31(0x166)](),_0x45c1a6=(_0x325486=this['_renderManagerService'][_0x27ab31(0x389)](_0x442a06))==null?void 0x0:_0x325486[_0x27ab31(0x3a1)](s[_0x27ab31(0x352)])[_0x27ab31(0x2d3)](_0x4b8d2e);if(!_0x45c1a6)return;if(_0xb796b6){var _0x456203;_0x45c1a6==null||(_0x456203=_0x45c1a6[_0x27ab31(0x348)])==null||_0x456203[_0x27ab31(0x1ed)]((_0xbd37b1,_0x90f743,_0x4fff2c)=>{const _0x1539a4=_0x27ab31;let {endColumn:_0x48a5c9}=_0x4fff2c;_0x48a5c9>_0xb796b6[_0x1539a4(0x2c9)]&&(_0xb796b6[_0x1539a4(0x2c9)]=_0x48a5c9);});}let _0x36ab08=this[_0x27ab31(0xcd)][_0x27ab31(0x36b)][_0x27ab31(0x39f)](this['_sheetPrintInterceptorService'][_0x27ab31(0x36b)][_0x27ab31(0x138)]()[_0x27ab31(0x1e5)])(_0xb796b6,{'unitId':_0x442a06,'subUnitId':_0x4b8d2e});return _0x36ab08?this[_0x27ab31(0x2f2)](_0x4b8d2e,{..._0x36ab08,'startColumn':Math[_0x27ab31(0x2e1)](_0x394705[_0x27ab31(0x13f)]-_0x394705[_0x27ab31(0x2e3)],0x0),'startRow':Math[_0x27ab31(0x2e1)](_0x394705[_0x27ab31(0x2ee)]-_0x394705['ySplit'],0x0)}):null;}[_0x3bd298(0x107)](_0x317e9a,_0x2c8756){const _0x1b5f36=_0x3bd298;let _0x248864=this['_sheetsSelectionsSrv'][_0x1b5f36(0x214)](_0x317e9a)[_0x1b5f36(0x20e)](_0x2c8756);return _0x248864?_0x248864[_0x1b5f36(0xc1)](_0x4c50c4=>this[_0x1b5f36(0x2f2)](_0x2c8756,_0x4c50c4[_0x1b5f36(0x10a)])):[];}['_calculateFinalRange'](_0x5efbb6,_0x3cdb83){const _0x1ba027=_0x3bd298;let _0x1c045b=this['_univerInstanceService'][_0x1ba027(0x35d)](n[_0x1ba027(0x394)][_0x1ba027(0x103)]),_0x38624d=_0x1c045b[_0x1ba027(0x172)](_0x5efbb6),_0x494898=this[_0x1ba027(0x2c3)],_0xa03cbd=_0x1c045b[_0x1ba027(0xb5)](),_0x439995=this[_0x1ba027(0x257)],{top:_0xc713be,right:_0x39da46,bottom:_0x49784c,left:_0x2cf77b}=this[_0x1ba027(0xef)];_0x439995['h']-=_0xc713be+_0x49784c,_0x439995['w']-=_0x2cf77b+_0x39da46;let _0x130253=this[_0x1ba027(0x229)][_0x1ba027(0x389)](_0xa03cbd)[_0x1ba027(0x3a1)](s[_0x1ba027(0x352)]);if(_0x3cdb83['startRow']>-0x1&&_0x3cdb83[_0x1ba027(0x13f)]>-0x1){let _0x4f5382=_0x130253[_0x1ba027(0x2d3)](_0x5efbb6);if(!_0x38624d||!_0x4f5382)return null;let _0x492884=_0x3cdb83[_0x1ba027(0x2ee)],_0x2bbb51=_0x3cdb83[_0x1ba027(0x1ab)],_0xb354b9=_0x3cdb83[_0x1ba027(0x13f)],_0x265893=_0x3cdb83['endColumn'],_0x572a5c=_0x38624d[_0x1ba027(0x359)](),_0x5a6fe4=A(this[_0x1ba027(0x2ad)](_0x4f5382,_0x3cdb83,_0x572a5c)),_0x3c2d1b=-0x1,_0x3bb70f=0x0,_0x4aa3da=-0x1,_0x10fb0b=0x0,_0x38b838=_0x4f5382[_0x1ba027(0x377)],_0x4cf702=_0x4f5382[_0x1ba027(0x312)];if(_0x572a5c[_0x1ba027(0x2e3)]&&_0x494898[_0x1ba027(0x326)][_0x1ba027(0x286)](_0x1ba027(0xe5))){if(_0x265893>=_0x572a5c['startColumn']){let _0x259c02=_0x5a6fe4*(_0x38b838[_0x572a5c['startColumn']-0x1]-(_0x38b838[_0x572a5c[_0x1ba027(0x13f)]-_0x572a5c['xSplit']-0x1]||0x0));_0x259c02<_0x439995['w']&&(_0x4aa3da=_0x572a5c[_0x1ba027(0x13f)],_0x10fb0b=_0x572a5c[_0x1ba027(0x2e3)],_0x439995['w']-=_0x259c02);}else{let _0x5feec0=_0x265893+0x1,_0x29df27=_0x265893+0x1-(_0x572a5c['startColumn']-_0x572a5c[_0x1ba027(0x2e3)]),_0x2b0cad=_0x5a6fe4*(_0x38b838[_0x4aa3da-0x1]-(_0x38b838[_0x4aa3da-_0x10fb0b]-0x1||0x0));_0x2b0cad<_0x439995['w']&&(_0x4aa3da=_0x5feec0,_0x10fb0b=_0x29df27,_0x439995['w']-=_0x2b0cad);}}if(_0xb354b9=Math[_0x1ba027(0x2e1)](_0x4aa3da,_0xb354b9),_0x572a5c[_0x1ba027(0x14b)]&&_0x494898[_0x1ba027(0x326)][_0x1ba027(0x286)](_0x1ba027(0x1fc))){if(_0x2bbb51>=_0x572a5c[_0x1ba027(0x2ee)]){let _0x148750=_0x4cf702[_0x572a5c[_0x1ba027(0x2ee)]]-_0x4cf702[_0x572a5c[_0x1ba027(0x2ee)]-_0x572a5c[_0x1ba027(0x14b)]];_0x148750<_0x439995['h']&&(_0x3c2d1b=_0x572a5c[_0x1ba027(0x2ee)],_0x3bb70f=_0x572a5c[_0x1ba027(0x14b)],_0x439995['h']-=_0x148750);}else _0x3c2d1b=_0x2bbb51+0x1,_0x3bb70f=_0x2bbb51+0x1-(_0x572a5c[_0x1ba027(0x2ee)]-_0x572a5c[_0x1ba027(0x14b)]),_0x439995['h']=_0x439995['h']-_0x4cf702[_0x3c2d1b]-_0x4cf702[_0x3c2d1b-_0x3bb70f];}return _0x492884=Math['max'](_0x3c2d1b,_0x492884),{'unitId':_0xa03cbd,'subUnitId':_0x5efbb6,'range':{'startRow':_0x492884,'endRow':_0x2bbb51,'startColumn':_0xb354b9,'endColumn':_0x265893},'freeze':{'startRow':_0x3c2d1b,'startColumn':_0x4aa3da,'xSplit':_0x10fb0b,'ySplit':_0x3bb70f},'contentSize':_0x439995,'scale':_0x5a6fe4};}return{'unitId':_0xa03cbd,'subUnitId':_0x5efbb6,'range':j,'freeze':M,'contentSize':_0x439995,'scale':0x1};}[_0x3bd298(0x2ad)](_0x1b211b,_0x2e7b2a,_0x21f21f){const _0x19e6b1=_0x3bd298;let _0x10bd04=_0x1b211b[_0x19e6b1(0x377)],_0x45ec09=_0x1b211b['rowHeightAccumulation'],{xSplit:_0x1e7df1,ySplit:_0x286444,startColumn:_0x4e765f,startRow:_0x4afdad}=_0x21f21f,{startRow:_0x1ec719,startColumn:_0x5483dd}=_0x2e7b2a,{endColumn:_0xd7824,endRow:_0x24c312}=_0x2e7b2a;_0x1ec719=_0x24c312<_0x4afdad?_0x1ec719:Math[_0x19e6b1(0x2e1)](_0x4afdad,_0x1ec719),_0x5483dd=_0xd7824<_0x4e765f?_0x5483dd:Math[_0x19e6b1(0x2e1)](_0x4e765f,_0x5483dd);let {scale:_0x35a0b0,customScale:_0x55b5cf}=this[_0x19e6b1(0x2c3)],_0x4d17a2=this['paperSize'],_0x48c8ed=this[_0x19e6b1(0xef)],_0x294061=_0x1e7df1>0x0?(_0x10bd04[_0x4e765f-0x1]||0x0)-(_0x10bd04[_0x4e765f-_0x1e7df1-0x1]||0x0):0x0,_0x580587=_0x286444>0x0?(_0x45ec09[_0x4afdad-0x1]||0x0)-(_0x45ec09[_0x4afdad-_0x286444-0x1]||0x0):0x0,_0x2bf06d=_0x45ec09[_0x24c312]-(_0x45ec09[_0x1ec719-0x1]||0x0),_0x3c0df5=_0x10bd04[_0xd7824]-(_0x10bd04[_0x5483dd-0x1]||0x0),_0x339d4f=_0x2bf06d+_0x580587,_0x85bb42=_0x3c0df5+_0x294061;switch(_0x35a0b0){case t[_0x19e6b1(0x11e)][_0x19e6b1(0x177)]:return _0x55b5cf;case t['PrintScale'][_0x19e6b1(0x167)]:return Math[_0x19e6b1(0x111)](0x1,(_0x4d17a2['w']-_0x48c8ed[_0x19e6b1(0x122)]-_0x48c8ed[_0x19e6b1(0x150)])/_0x85bb42);case t[_0x19e6b1(0x11e)]['FitHeight']:return Math['min'](0x1,(_0x4d17a2['h']-_0x48c8ed['top']-_0x48c8ed['bottom'])/_0x339d4f);case t[_0x19e6b1(0x11e)][_0x19e6b1(0xb3)]:return Math[_0x19e6b1(0x111)](0x1,(_0x4d17a2['w']-_0x48c8ed[_0x19e6b1(0x122)]-_0x48c8ed[_0x19e6b1(0x150)])/_0x85bb42,(_0x4d17a2['h']-_0x48c8ed['top']-_0x48c8ed[_0x19e6b1(0x217)])/_0x339d4f);default:return 0x1;}}['_calculateSubSheetRange'](){const _0x57497d=_0x3bd298;let {area:_0x3f50d5,subUnitIds:_0x5d57d1}=this[_0x57497d(0x2c3)],_0x5d2427=this[_0x57497d(0xd1)]['getCurrentUnitOfType'](n['UniverInstanceType']['UNIVER_SHEET']),_0x352456=_0x5d2427[_0x57497d(0xb5)]();switch(_0x3f50d5){case'CurrentSheet':{var _0x41219d;let _0x2400af=(_0x41219d=_0x5d2427[_0x57497d(0x1fb)]())==null?void 0x0:_0x41219d['getSheetId']();if(_0x2400af!=null){let _0x226279=this['_calculateSheetRangeById'](_0x352456,_0x2400af);if(_0x226279)return[_0x226279];let _0x440c89=this[_0x57497d(0xd1)][_0x57497d(0x35d)](n[_0x57497d(0x394)][_0x57497d(0x103)]),_0x4e4fe0=_0x440c89[_0x57497d(0x1fb)]();return _0x4e4fe0?this[_0x57497d(0x107)](_0x440c89[_0x57497d(0xb5)](),_0x4e4fe0[_0x57497d(0x2ff)]()):(console[_0x57497d(0x1dc)]('No\x20active\x20sheet\x20found'),[]);}return[];}case _0x57497d(0x174):{let _0x3a686b=this[_0x57497d(0xd1)][_0x57497d(0x35d)](n['UniverInstanceType'][_0x57497d(0x103)]),_0x5cc960=_0x3a686b[_0x57497d(0x1fb)]();return _0x5cc960?this[_0x57497d(0x107)](_0x3a686b[_0x57497d(0xb5)](),_0x5cc960[_0x57497d(0x2ff)]()):(console[_0x57497d(0x1dc)](_0x57497d(0x28f)),[]);}case _0x57497d(0x2ed):return this[_0x57497d(0xd1)][_0x57497d(0x35d)](n[_0x57497d(0x394)][_0x57497d(0x103)])['getSheets']()['map'](_0x30f286=>this[_0x57497d(0x107)](_0x352456,_0x30f286[_0x57497d(0x2ff)]()))['flat']();default:return(_0x5d57d1[_0x57497d(0x213)]?_0x5d57d1:_0x5d2427['getSheets']()[_0x57497d(0xcb)](_0x361f2f=>!_0x361f2f[_0x57497d(0x12a)]())[_0x57497d(0xc1)](_0x331fba=>_0x331fba[_0x57497d(0x2ff)]()))[_0x57497d(0xc1)](_0x5f4f47=>this[_0x57497d(0x11d)](_0x352456,typeof _0x5f4f47==_0x57497d(0x2ae)?_0x5f4f47:_0x5f4f47['id'],typeof _0x5f4f47==_0x57497d(0x2ae)?void 0x0:_0x5f4f47[_0x57497d(0x10a)]))[_0x57497d(0xcb)](Boolean);}}[_0x3bd298(0x395)](_0x478e9c){const _0x21e0a6=_0x3bd298;let {subUnitId:_0x57a8cc,range:_0x145ff5,freeze:_0x27ed25,unitId:_0x345638,scale:_0x2bad2c,contentSize:_0x3ac0b9}=_0x478e9c,_0x4c2137=this[_0x21e0a6(0x229)]['getRenderUnitById'](_0x345638)[_0x21e0a6(0x3a1)](s[_0x21e0a6(0x352)])[_0x21e0a6(0x2d3)](_0x57a8cc);if(!_0x4c2137)return;let {rowHeightAccumulation:_0x5418f1,columnWidthAccumulation:_0x269b65}=_0x4c2137,{w:_0x35cc43,h:_0x17b1e4}=_0x3ac0b9,{startRow:_0x37c0a1,startColumn:_0x13c530,endColumn:_0x31ca9f,endRow:_0x2a543d}=_0x145ff5,_0x4ff2d7=_0x236a2d=>{const _0x574fe1=_0x21e0a6;let _0x21faa8=_0x236a2d,_0x27aa18=this[_0x574fe1(0x2c3)][_0x574fe1(0x2f6)]<=_0x27ed25[_0x574fe1(0x14b)]?0x1/0x0:this[_0x574fe1(0x2c3)]['maxRowsEachPage']-0x1-_0x27ed25[_0x574fe1(0x14b)]+_0x236a2d,_0x9664a4=_0x236a2d===0x0?0x0:_0x5418f1[_0x236a2d-0x1];for(;_0x21faa8<_0x2a543d;){let _0x5db2d3=(_0x5418f1[_0x21faa8]-_0x9664a4)*_0x2bad2c,_0x599d7e=(_0x5418f1[_0x21faa8+0x1]-_0x9664a4)*_0x2bad2c;if(_0x21faa8++,_0x5db2d3>=_0x17b1e4||_0x5db2d3<_0x17b1e4&&_0x599d7e>_0x17b1e4)return{'startRow':_0x236a2d,'endRow':Math['min'](_0x21faa8-0x1,_0x27aa18)};}return{'startRow':_0x236a2d,'endRow':Math[_0x574fe1(0x111)](_0x21faa8,_0x27aa18)};},_0x389598=_0x4f9d84=>{const _0x5464cf=_0x21e0a6;let _0x4f3bc8=_0x4f9d84,_0x5d013d=_0x4f9d84===0x0?0x0:_0x269b65[_0x4f9d84-0x1],_0x4c4a5c=this[_0x5464cf(0x2c3)][_0x5464cf(0x1d6)]<=_0x27ed25[_0x5464cf(0x2e3)]?0x1/0x0:this['_layoutConfig'][_0x5464cf(0x1d6)]-0x1-_0x27ed25['xSplit']+_0x4f9d84;for(;_0x4f3bc8<_0x31ca9f;){let _0x346daf=(_0x269b65[_0x4f3bc8]-_0x5d013d)*_0x2bad2c,_0x159666=(_0x269b65[_0x4f3bc8+0x1]-_0x5d013d)*_0x2bad2c;if(_0x4f3bc8++,_0x346daf<_0x35cc43&&_0x159666>_0x35cc43||_0x346daf>=_0x35cc43)return{'startColumn':_0x4f9d84,'endColumn':Math[_0x5464cf(0x111)](_0x4f3bc8-0x1,_0x4c4a5c)};}return{'startColumn':_0x4f9d84,'endColumn':Math[_0x5464cf(0x111)](_0x4f3bc8,_0x4c4a5c)};},_0x3ba82b=[],_0x3df3b6=_0x37c0a1;for(;_0x3df3b6<=_0x2a543d;){let _0x3c8518=_0x4ff2d7(_0x3df3b6);_0x3ba82b[_0x21e0a6(0x181)](_0x3c8518),_0x3df3b6=_0x3c8518[_0x21e0a6(0x1ab)]+0x1;}let _0x1939a3=[],_0x1be89f=_0x13c530;for(;_0x1be89f<=_0x31ca9f;){let _0x1a8fc5=_0x389598(_0x1be89f);_0x1939a3[_0x21e0a6(0x181)](_0x1a8fc5),_0x1be89f=_0x1a8fc5[_0x21e0a6(0x2c9)]+0x1;}let _0x38cf00=[];for(let _0x440a93=0x0;_0x440a93<_0x3ba82b[_0x21e0a6(0x213)];_0x440a93++)for(let _0x4cc12d=0x0;_0x4cc12d<_0x1939a3[_0x21e0a6(0x213)];_0x4cc12d++)_0x38cf00[_0x21e0a6(0x181)]({..._0x3ba82b[_0x440a93],..._0x1939a3[_0x4cc12d]});return{'unitId':_0x345638,'subUnitId':_0x57a8cc,'pages':_0x38cf00,'freeze':_0x27ed25,'scale':_0x2bad2c,'pageSize':this[_0x21e0a6(0x257)],'margin':this[_0x21e0a6(0xef)]};}};N=O([D(0x0,n['IUniverInstanceService']),D(0x1,(0x0,n[_0x3bd298(0xff)])(r[_0x3bd298(0x323)])),D(0x2,(0x0,n[_0x3bd298(0xff)])(s[_0x3bd298(0x14c)])),D(0x3,o[_0x3bd298(0x2f7)])],N);const P=(_0x169f92,_0x1e7ee1)=>{const _0x554240=_0x3bd298;if(!_0x169f92||!_0x1e7ee1)return!0x0;let _0x2a86c0=(0x0,e[_0x554240(0x383)])(_0x169f92,_0x1e7ee1)[_0x554240(0xda)],_0x50d769=(0x0,e[_0x554240(0x123)])(_0x2a86c0,'sf',m);return!((_0x2a86c0==null?void 0x0:_0x2a86c0['rt'])===e[_0x554240(0x137)][_0x554240(0x2cd)]&&!_0x50d769);},ee=(_0x555045,_0x28e09b,_0x123e8e)=>{const _0x550a4c=_0x3bd298;let _0x20597e={'page':_0x555045,'isPro':!0x1,'timeValid':!0x1};if(!_0x28e09b||!_0x123e8e)return _0x20597e;let _0x54b599=(0x0,e[_0x550a4c(0x383)])(_0x28e09b,_0x123e8e);if(_0x54b599[_0x550a4c(0x38b)]){let _0x161bdf=_0x54b599[_0x550a4c(0xda)],_0x34116e=(0x0,e[_0x550a4c(0x123)])(_0x161bdf,'sf',m);_0x20597e[_0x550a4c(0x2aa)]=_0x34116e,_0x20597e[_0x550a4c(0x26f)]=_0x34116e,_0x20597e[_0x550a4c(0x391)]=(0x0,e[_0x550a4c(0x342)])(_0x161bdf,_0x34116e,'mpn',_0x555045,_0x555045,0x0);}return _0x20597e;};function F(_0x17cece){const _0x5b3eba=_0x3bd298;let {ls:_0xf03de4,pbk:_0x3acdbb}=_0x17cece[_0x5b3eba(0x24d)](n[_0x5b3eba(0x28b)])[_0x5b3eba(0x264)](e['LS_CONFIG_KEY'])??{};return ee(0x3,_0xf03de4,_0x3acdbb)[_0x5b3eba(0x2aa)];}const I={'id':_0x3bd298(0x29b),'type':n[_0x3bd298(0x3b3)][_0x3bd298(0x2ba)],'handler':async _0x5b4e3d=>{const _0x26b85b=_0x3bd298;let _0x1a9494=_0x5b4e3d[_0x26b85b(0x24d)](b),_0x5746c5=_0x5b4e3d[_0x26b85b(0x24d)](n[_0x26b85b(0x36d)]),_0x49b7c0=_0x5b4e3d[_0x26b85b(0x24d)](n[_0x26b85b(0x14a)]),_0x4bae28=_0x5b4e3d[_0x26b85b(0x24d)](n[_0x26b85b(0x36c)]),_0x7c0cb8=_0x5b4e3d['get'](i[_0x26b85b(0x116)]),{ls:_0x271844,pbk:_0x339833}=_0x5b4e3d['get'](n['IConfigService'])[_0x26b85b(0x264)](e[_0x26b85b(0x285)])??{};if(!P(_0x271844,_0x339833))return!0x1;let _0x328291=_0x4bae28[_0x26b85b(0x35d)](n[_0x26b85b(0x394)][_0x26b85b(0x103)])[_0x26b85b(0xb5)]();if(!(_0x5746c5[_0x26b85b(0xc8)](new r[(_0x26b85b(0x339))](_0x328291)['id'])??!0x1)){let _0x44e949={'id':h,'title':{'title':''},'children':{'label':_0x26b85b(0x165),'errorMsg':_0x49b7c0['t'](_0x26b85b(0x30e))},'width':0x140,'onClose':()=>_0x7c0cb8[_0x26b85b(0x125)](h),'className':_0x26b85b(0x13e)};throw _0x7c0cb8[_0x26b85b(0x35b)](_0x44e949),Error(_0x26b85b(0x2fe));}_0x1a9494['setPreparing'](!0x0),_0x1a9494['open']();try{return await _0x5b4e3d[_0x26b85b(0x24d)](t[_0x26b85b(0xe9)])[_0x26b85b(0x39b)]({'unitId':_0x328291,'unitType':n[_0x26b85b(0x394)][_0x26b85b(0x103)],'dpr':0x1}),!0x0;}catch(_0xdb3b66){throw _0x1a9494[_0x26b85b(0x125)](),_0xdb3b66;}finally{_0x1a9494[_0x26b85b(0xd7)](!0x1);}}},L={'type':n[_0x3bd298(0x3b3)][_0x3bd298(0x2ba)],'id':_0x3bd298(0x252),'handler'(_0x20b782){const _0x520446=_0x3bd298;let _0x549a5e=_0x20b782['get'](b),_0x4c3e18=_0x20b782[_0x520446(0x24d)](k);return _0x549a5e[_0x520446(0x125)](),_0x4c3e18['reset'](),!0x0;}},R={'type':n[_0x3bd298(0x3b3)][_0x3bd298(0x2ba)],'id':_0x3bd298(0x31f),'handler'(){return!0x0;}},z={'id':_0x3bd298(0x2b0),'type':n[_0x3bd298(0x3b3)]['COMMAND'],'handler'(_0x522073,_0x33693f){const _0x317d52=_0x3bd298;if(!_0x33693f)return!0x1;let _0x2a58d6=_0x522073[_0x317d52(0x24d)](n[_0x317d52(0x25c)]),_0x32ba83=_0x522073[_0x317d52(0x24d)](k);return _0x32ba83[_0x317d52(0x344)](_0x33693f[_0x317d52(0x23a)]),_0x32ba83[_0x317d52(0x22c)](_0x33693f[_0x317d52(0xf7)]),_0x2a58d6['syncExecuteCommand'](R['id']);}};function B(_0x41d9ba,_0x1093dc){const _0x597944=_0x3bd298;switch(_0x41d9ba){case _0x597944(0x28a):return _0x1093dc[_0x597944(0x25d)][_0x597944(0x12b)];case _0x597944(0x392):return _0x1093dc[_0x597944(0x1d8)][_0x597944(0x17a)]();case'@Page':return''+_0x1093dc[_0x597944(0x391)];case _0x597944(0x15a):return''+_0x1093dc['pageTotal'];case _0x597944(0x279):return''+_0x1093dc[_0x597944(0x316)];case _0x597944(0x346):return''+_0x1093dc[_0x597944(0x154)];case _0x597944(0xe0):return _0x1093dc[_0x597944(0x28c)]['format'](_0x1093dc[_0x597944(0x259)]['t'](_0x597944(0x349)));case _0x597944(0x303):return _0x1093dc[_0x597944(0x28c)][_0x597944(0x206)](_0x1093dc[_0x597944(0x259)]['t'](_0x597944(0x295)));case _0x597944(0x3b8):return _0x1093dc['now'][_0x597944(0x206)](_0x1093dc[_0x597944(0x259)]['t'](_0x597944(0x244)));case _0x597944(0x273):return _0x1093dc[_0x597944(0x28c)][_0x597944(0x206)](_0x1093dc[_0x597944(0x259)]['t'](_0x597944(0x186)));case _0x597944(0x388):return _0x1093dc[_0x597944(0x28c)][_0x597944(0x206)](_0x1093dc[_0x597944(0x259)]['t'](_0x597944(0x151)));case'@TimeA':return _0x1093dc[_0x597944(0x28c)][_0x597944(0x206)](_0x1093dc['localeService']['t'](_0x597944(0x212)));case _0x597944(0x237):return _0x1093dc[_0x597944(0x28c)][_0x597944(0x206)](_0x1093dc[_0x597944(0x259)]['t'](_0x597944(0xdc)));case _0x597944(0x10c):return _0x1093dc[_0x597944(0x28c)]['format'](_0x1093dc[_0x597944(0x259)]['t']('sheets-print.headerFooter.timeC'));case _0x597944(0x300):return _0x1093dc[_0x597944(0x28c)][_0x597944(0x206)](_0x1093dc[_0x597944(0x259)]['t'](_0x597944(0x179)));}}const te=Object[_0x3bd298(0x26a)](T);function V(_0x20ba2b,_0x390e31){let _0x47ea6f=_0x20ba2b;return te['forEach'](_0x24c9e0=>{const _0x59fdce=_0x181a;_0x47ea6f=_0x47ea6f[_0x59fdce(0x121)](_0x24c9e0,B(_0x24c9e0,_0x390e31));}),_0x47ea6f;}const H=_0x3bd298(0x190);function ne(_0x327cd8,_0x5174d9){const _0x50ad98=_0x3bd298;let _0xefb251=_0x327cd8;_0x5174d9[_0x50ad98(0x2a5)](_0x445eb0=>{const _0x44afa4=_0x50ad98;_0xefb251=_0xefb251['replaceAll'](_0x445eb0[_0x44afa4(0x397)],''+H+_0x445eb0['label']+H);});let _0x1f6732=_0xefb251[_0x50ad98(0x3c3)](H),_0x565aed=n[_0x50ad98(0x1f2)][_0x50ad98(0xd0)]();return _0x1f6732['forEach']((_0x30ce33,_0x273556)=>{const _0xeae20f=_0x50ad98;if(_0x30ce33){if(_0x273556%0x2==0x1){let _0xc0de6d=_0x30ce33,_0x2da8ea={'id':'d','documentStyle':{},'drawings':{},'drawingsOrder':[],'body':{'dataStream':_0x30ce33,'customBlocks':[],'customRanges':[{'startIndex':0x0,'endIndex':_0x30ce33[_0xeae20f(0x213)]-0x1,'rangeId':(0x0,n[_0xeae20f(0x2df)])(),'rangeType':n[_0xeae20f(0x358)]['MENTION'],'properties':{'value':_0x5174d9['find'](_0x3e17ef=>_0x3e17ef[_0xeae20f(0x140)]===_0xc0de6d)[_0xeae20f(0x397)]}}]}};_0x565aed[_0xeae20f(0x231)](_0x2da8ea);}else _0x565aed[_0xeae20f(0x364)](_0x30ce33);}}),_0x565aed['getData']();}function re(_0x16bb2d){const _0x46b991=_0x3bd298;var _0x258814;if(!(_0x16bb2d!=null&&_0x16bb2d[_0x46b991(0x1b2)]))return'';let _0x4d8aca=n[_0x46b991(0x1f2)][_0x46b991(0xd0)](n[_0x46b991(0x276)][_0x46b991(0x38e)](_0x16bb2d));for(;(_0x258814=_0x4d8aca['getData']()['body'][_0x46b991(0x347)])!=null&&_0x258814[_0x46b991(0x213)];){let _0x2fa905=_0x4d8aca[_0x46b991(0x23f)]()['body']['customRanges'][0x0];if(!_0x2fa905)break;_0x4d8aca[_0x46b991(0x1eb)](_0x2fa905['startIndex'],_0x2fa905[_0x46b991(0x1a0)]+0x1-_0x2fa905['startIndex']),_0x4d8aca[_0x46b991(0x364)](_0x2fa905[_0x46b991(0x17f)],_0x2fa905[_0x46b991(0x17b)]['value']);}return _0x4d8aca['getData']()[_0x46b991(0x1b2)][_0x46b991(0x126)];}function ie(_0xb6e427,_0x453910){const _0x5b7336=_0x3bd298;_0xb6e427[_0x5b7336(0x28e)]()[_0x5b7336(0x2a5)](_0x54edf0=>{const _0x173a73=_0x5b7336;var _0x596805;let _0x5cb952=(_0x596805=_0x54edf0[_0x173a73(0x351)])==null?void 0x0:_0x596805[_0x173a73(0x354)](_0x54edf0);_0x5cb952&&_0x453910[_0x173a73(0x10b)](_0x5cb952);});}var ae=class extends n[_0x3bd298(0x1a7)]{get[_0x3bd298(0x304)](){const _0x4677c7=_0x3bd298;return this[_0x4677c7(0x3a9)][_0x4677c7(0x1f1)];}get['key'](){const _0xd059aa=_0x3bd298;return this[_0xd059aa(0x163)];}get[_0x3bd298(0x1ec)](){const _0x2e2459=_0x3bd298;return this[_0x2e2459(0x2ea)];}get[_0x3bd298(0x2da)](){const _0x379f9b=_0x3bd298;return this[_0x379f9b(0x266)];}get[_0x3bd298(0x343)](){const _0x261527=_0x3bd298;return this[_0x261527(0x1cc)];}get['renderConfig'](){const _0x7c0153=_0x3bd298;return this[_0x7c0153(0x3a9)];}set[_0x3bd298(0xf7)](_0x1a884c){this['_renderConfig']=_0x1a884c;}constructor(_0x447b14,_0xf2b42f,_0x1e4ec1,_0x27f7d2=!0x0,_0x48b97a=0x1){const _0x4e4aed=_0x3bd298;super(),this[_0x4e4aed(0x130)]=_0x447b14,this[_0x4e4aed(0xca)]=_0xf2b42f,this[_0x4e4aed(0x3a9)]=_0x1e4ec1,this[_0x4e4aed(0x203)]=_0x27f7d2,this['_previewScale']=_0x48b97a,y(this,_0x4e4aed(0x2ea),void 0x0),y(this,_0x4e4aed(0x37c),void 0x0),y(this,_0x4e4aed(0x163),void 0x0),y(this,_0x4e4aed(0x195),void 0x0),y(this,_0x4e4aed(0x254),void 0x0),y(this,_0x4e4aed(0xbb),void 0x0),y(this,'_viewLeft',void 0x0),y(this,_0x4e4aed(0x1e6),void 0x0),y(this,'_viewLeftTop',void 0x0),y(this,'_viewRowBottom',null),y(this,_0x4e4aed(0xc7),null),y(this,_0x4e4aed(0x266),document[_0x4e4aed(0x1c4)](_0x4e4aed(0xbd))),y(this,_0x4e4aed(0x1cc),document[_0x4e4aed(0x1c4)](_0x4e4aed(0xbd))),y(this,_0x4e4aed(0x1ff),void 0x0),y(this,_0x4e4aed(0xd1),void 0x0),y(this,_0x4e4aed(0x320),!0x0),y(this,_0x4e4aed(0x20b),void 0x0),y(this,_0x4e4aed(0x3b4),new n[(_0x4e4aed(0x24c))]()),y(this,_0x4e4aed(0xe7),new s['SheetPrintingResourceCollector']()),y(this,_0x4e4aed(0x333),void 0x0),y(this,_0x4e4aed(0x26b),0x0),y(this,_0x4e4aed(0x30d),0x0);let {unitId:_0x17de9f,subUnitId:_0x57b45a}=this['_config'];this[_0x4e4aed(0x195)]=_0x17de9f,this['_subUnitId']=_0x57b45a,this[_0x4e4aed(0x163)]=_0x17de9f+'_'+_0x57b45a,this[_0x4e4aed(0xd1)]=this[_0x4e4aed(0x130)][_0x4e4aed(0x24d)](n[_0x4e4aed(0x36c)]);let _0x238acb=this[_0x4e4aed(0x130)][_0x4e4aed(0x24d)](o[_0x4e4aed(0x2f7)]);this[_0x4e4aed(0x20b)]=_0x238acb['getRenderUnitById'](_0x17de9f);let _0x5a4f8d=this['_targetRender'][_0x4e4aed(0x3a1)](s[_0x4e4aed(0x352)])[_0x4e4aed(0x2d3)](_0x57b45a);this[_0x4e4aed(0x1ff)]=_0x5a4f8d,this[_0x4e4aed(0x1cc)][_0x4e4aed(0x3ad)]=_0x4e4aed(0x324),this[_0x4e4aed(0x1f4)]();}['dispose'](){const _0x27cec7=_0x3bd298;var _0x437d20;super[_0x27cec7(0x3bb)](),this[_0x27cec7(0x3b4)][_0x27cec7(0x3bb)](),(_0x437d20=this['_container'][_0x27cec7(0x11a)])==null||_0x437d20[_0x27cec7(0x159)](this[_0x27cec7(0x266)]);}get[_0x3bd298(0x257)](){const _0x268097=_0x3bd298;let {w:_0x2c408e,h:_0x2bc7fc}=this[_0x268097(0xca)][_0x268097(0x16f)];return{'w':_0x2c408e*this[_0x268097(0x396)],'h':_0x2bc7fc*this[_0x268097(0x396)]};}get[_0x3bd298(0x1ea)](){const _0x2bdf90=_0x3bd298;let _0x3d9247=this[_0x2bdf90(0xca)][_0x2bdf90(0x1ea)];return{'top':_0x3d9247[_0x2bdf90(0x3a2)]*this[_0x2bdf90(0x396)],'bottom':_0x3d9247['bottom']*this[_0x2bdf90(0x396)],'left':_0x3d9247['left']*this[_0x2bdf90(0x396)],'right':_0x3d9247[_0x2bdf90(0x150)]*this['_previewScale']};}['_initRenderer'](){const _0x3264d1=_0x3bd298;let _0x53a173=this['paperSize'],_0x515049=this[_0x3264d1(0xca)][_0x3264d1(0x35c)]*this['_previewScale'],_0x4163e8=this[_0x3264d1(0x203)]?Math[_0x3264d1(0x2e1)](0x1,window[_0x3264d1(0x1a4)]):0x1;this[_0x3264d1(0x2ea)]=new o[(_0x3264d1(0x29d))]('',{'elementWidth':_0x53a173['w'],'elementHeight':_0x53a173['h'],'dpr':_0x4163e8,'renderMode':o['CanvasRenderMode'][_0x3264d1(0x24a)]}),this['_scene']=new o[(_0x3264d1(0x1c5))](this[_0x3264d1(0x163)],this[_0x3264d1(0x2ea)]),this[_0x3264d1(0x37c)][_0x3264d1(0x35c)](_0x515049,_0x515049),this['_engine'][_0x3264d1(0x184)](this[_0x3264d1(0x266)],this[_0x3264d1(0x203)]),this[_0x3264d1(0x2ea)][_0x3264d1(0x368)]()['getContext']()['setId'](this[_0x3264d1(0x163)]+'_'+(0x0,n[_0x3264d1(0x2df)])(0x4)),this[_0x3264d1(0x1e9)](),this[_0x3264d1(0x281)](),this[_0x3264d1(0x1d1)]({'dispose':()=>{const _0x5903e3=_0x3264d1;this['_engine']['dispose'](),this[_0x5903e3(0x37c)][_0x5903e3(0x3bb)](),this['clearMemory']();}});}[_0x3bd298(0x282)](){const _0x191a9c=_0x3bd298;this['_skeleton'][_0x191a9c(0x168)]();}[_0x3bd298(0x3b0)](_0x41be1a){const _0x4b2c51=_0x3bd298;this[_0x4b2c51(0x37c)][_0x4b2c51(0x35c)](this[_0x4b2c51(0xca)][_0x4b2c51(0x35c)]*_0x41be1a,this[_0x4b2c51(0xca)][_0x4b2c51(0x35c)]*_0x41be1a),this['_previewScale']=_0x41be1a,this[_0x4b2c51(0x371)](!0x0);}[_0x3bd298(0x2c1)](_0x3127b5){const _0x20b7ca=_0x3bd298;this[_0x20b7ca(0xca)]=_0x3127b5,this[_0x20b7ca(0x371)](!0x0);}['markDirty'](_0x356746){const _0x479437=_0x3bd298;this[_0x479437(0x320)]=_0x356746;}[_0x3bd298(0x1e9)](){const _0x145a66=_0x3bd298;var _0x3406aa;let _0x502040=new o['Spreadsheet'](_0x145a66(0x191),this['_skeleton'],!0x1);_0x502040[_0x145a66(0x31d)]=!0x0;let _0x55760d=(_0x3406aa=this[_0x145a66(0x20b)])==null?void 0x0:_0x3406aa[_0x145a66(0x1c6)];if(_0x55760d&&ie(_0x55760d,_0x502040),this['_scene']['addObject'](_0x502040),this['_spreadsheetObject']=_0x502040,this[_0x145a66(0xca)][_0x145a66(0x308)]){let _0x5f44a5=new o[(_0x145a66(0x223))](_0x145a66(0x10d),this[_0x145a66(0x1ff)]),_0x1877fa=new o['SpreadsheetColumnHeader'](_0x145a66(0x23e),this['_skeleton']);this['_scene'][_0x145a66(0x1cb)]([_0x5f44a5,_0x1877fa],0x1);}let _0x586919=this[_0x145a66(0x130)][_0x145a66(0x24d)](s[_0x145a66(0x14c)]);_0x586919[_0x145a66(0x36b)]['fetchThroughInterceptors'](_0x586919[_0x145a66(0x36b)][_0x145a66(0x138)]()[_0x145a66(0x2cc)])(void 0x0,{'unitId':this[_0x145a66(0x195)],'subUnitId':this[_0x145a66(0x254)],'scene':this[_0x145a66(0x37c)],'engine':this[_0x145a66(0x2ea)],'root':this[_0x145a66(0x1cc)],'worksheet':this[_0x145a66(0x1ff)][_0x145a66(0x1d8)],'skeleton':this[_0x145a66(0x1ff)],'range':this[_0x145a66(0xca)][_0x145a66(0x10a)],'offset':this[_0x145a66(0x2db)](),'spreadsheet':this[_0x145a66(0x333)],'resourceCollector':this[_0x145a66(0xe7)]});}['_addViewport'](){const _0x535333=_0x3bd298;this[_0x535333(0xbb)]=new o[(_0x535333(0x1e0))](o[_0x535333(0x2be)][_0x535333(0x205)],this[_0x535333(0x37c)],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this[_0x535333(0x1f6)]=new o[(_0x535333(0x1e0))](o[_0x535333(0x2be)][_0x535333(0x2a3)],this['_scene'],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this[_0x535333(0x1e6)]=new o[(_0x535333(0x1e0))](o[_0x535333(0x2be)][_0x535333(0x288)],this[_0x535333(0x37c)],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this[_0x535333(0x280)]=new o[(_0x535333(0x1e0))](o[_0x535333(0x2be)][_0x535333(0x294)],this['_scene'],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this['_config'][_0x535333(0x308)]&&(this[_0x535333(0x31b)]=new o[(_0x535333(0x1e0))](o['SHEET_VIEWPORT_KEY'][_0x535333(0x22a)],this[_0x535333(0x37c)],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this[_0x535333(0xc7)]=new o[(_0x535333(0x1e0))](o[_0x535333(0x2be)][_0x535333(0xba)],this[_0x535333(0x37c)],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}));}[_0x3bd298(0x164)](){const _0x5df228=_0x3bd298;let {freeze:_0x18a546,range:_0x29ca42}=this[_0x5df228(0xca)],{xSplit:_0x811dcd,ySplit:_0x93609a,startColumn:_0x3156a9,startRow:_0x25802b}=_0x18a546,{rowHeaderWidth:_0x250e6b,columnHeaderHeight:_0x5cd266}=this[_0x5df228(0x1ff)];this[_0x5df228(0x37c)]['scale'](this[_0x5df228(0xca)][_0x5df228(0x35c)]*this['_previewScale'],this[_0x5df228(0xca)]['scale']*this[_0x5df228(0x396)]);let _0x5e2f7b=this[_0x5df228(0x1ff)][_0x5df228(0x2b8)](_0x25802b-_0x93609a,_0x3156a9-_0x811dcd,!0x1),_0x57b8ea=this[_0x5df228(0x1ff)]['getNoMergeCellWithCoordByIndex'](_0x25802b,_0x3156a9,!0x1),_0x3a0086=_0x811dcd>0x0?_0x57b8ea[_0x5df228(0x2fd)]-_0x5e2f7b[_0x5df228(0x2fd)]:0x0,_0x33c166=_0x93609a>0x0?_0x57b8ea[_0x5df228(0xe4)]-_0x5e2f7b[_0x5df228(0xe4)]:0x0,_0x13457a={'startX':_0x811dcd>0x0?_0x5e2f7b[_0x5df228(0x2fd)]:0x0,'endX':_0x811dcd>0x0?_0x57b8ea[_0x5df228(0x2fd)]:0x0,'startY':_0x93609a>0x0?_0x5e2f7b[_0x5df228(0xe4)]:0x0,'endY':_0x93609a>0x0?_0x57b8ea[_0x5df228(0xe4)]:0x0},_0x4c8fe2=this['_skeleton']['getNoMergeCellWithCoordByIndex'](_0x29ca42['startRow'],_0x29ca42[_0x5df228(0x13f)],!0x1),_0x30ab60=this[_0x5df228(0x37c)][_0x5df228(0x2de)](),_0x31bf91=_0x473e35=>(0x0,o[_0x5df228(0x11f)])(_0x473e35,_0x30ab60[_0x5df228(0x2c0)]),_0x273f30=_0x80dac3=>(0x0,o[_0x5df228(0x11f)])(_0x80dac3,_0x30ab60[_0x5df228(0x3c6)]),_0x22c291=this[_0x5df228(0x1ff)][_0x5df228(0x2b8)](_0x29ca42['endRow'],_0x29ca42[_0x5df228(0x2c9)],!0x1),_0x42e4ea=Math[_0x5df228(0x2e1)](0x0,_0x31bf91(_0x22c291[_0x5df228(0x218)])-Math[_0x5df228(0x2e1)](_0x4c8fe2[_0x5df228(0x2fd)],_0x13457a['endX'])),_0x126236=Math[_0x5df228(0x2e1)](0x0,_0x273f30(_0x22c291['endY'])-_0x273f30(Math[_0x5df228(0x2e1)](_0x4c8fe2['startY'],_0x13457a[_0x5df228(0x2f9)]))),_0x23bce7=0x1/Math[_0x5df228(0x2e1)](_0x30ab60[_0x5df228(0x2c0)],_0x30ab60[_0x5df228(0x3c6)]),_0x165858=this[_0x5df228(0xca)][_0x5df228(0x308)]?_0x250e6b:0x0,_0x3ed141=this['_config'][_0x5df228(0x308)]?_0x5cd266:0x0,_0x45081a=_0x165858+_0x3a0086+_0x42e4ea+_0x23bce7,_0x1ad78f=_0x3ed141+_0x33c166+_0x126236+_0x23bce7;this[_0x5df228(0x26b)]=_0x45081a,this['_totalHeight']=_0x1ad78f;let _0x1f232c={'x':_0x3a0086,'y':_0x33c166},_0x46486d=_0x23bce7,_0x5ebb20=_0x23bce7,_0x2e693f={'x':_0x31bf91(_0x22c291['endX'])-_0x31bf91(_0x42e4ea)-_0x31bf91(Math[_0x5df228(0x2e1)](_0x4c8fe2[_0x5df228(0x2fd)],_0x13457a[_0x5df228(0x218)])),'y':_0x273f30(_0x22c291['endY'])-_0x273f30(_0x126236)-_0x273f30(Math[_0x5df228(0x2e1)](_0x4c8fe2[_0x5df228(0xe4)],_0x13457a[_0x5df228(0x2f9)]))};if(_0x811dcd>0x0&&_0x93609a>0x0?(this[_0x5df228(0x280)]['enable'](),this[_0x5df228(0x280)][_0x5df228(0x328)]({'top':0x0,'left':0x0,'height':_0x273f30(_0x1f232c['y']),'width':_0x31bf91(_0x1f232c['x'])}),this[_0x5df228(0x280)][_0x5df228(0x3b7)]({'viewportScrollX':_0x31bf91(_0x13457a['startX'])+_0x31bf91(_0x250e6b),'viewportScrollY':_0x273f30(_0x13457a[_0x5df228(0xe4)])+_0x273f30(_0x5cd266)})):this[_0x5df228(0x280)]['disable'](),_0x811dcd>0x0?(this[_0x5df228(0x1f6)][_0x5df228(0x2b9)](),this[_0x5df228(0x1f6)][_0x5df228(0x328)]({'top':_0x31bf91(_0x1f232c['y']),'left':0x0,'height':_0x273f30(_0x126236)+_0x46486d+_0x2e693f['y'],'width':_0x31bf91(_0x1f232c['x'])}),this[_0x5df228(0x1f6)][_0x5df228(0x3b7)]({'viewportScrollX':_0x31bf91(_0x13457a[_0x5df228(0x2fd)])+_0x31bf91(_0x250e6b),'viewportScrollY':_0x273f30(_0x4c8fe2[_0x5df228(0xe4)])+_0x273f30(_0x5cd266)-_0x273f30(_0x1f232c['y'])})):this['_viewLeft']['disable'](),_0x93609a>0x0?(this[_0x5df228(0x1e6)][_0x5df228(0x2b9)](),this['_viewTop'][_0x5df228(0x328)]({'top':0x0,'left':_0x31bf91(_0x1f232c['x']),'height':_0x273f30(_0x1f232c['y']),'width':_0x31bf91(_0x42e4ea)+_0x5ebb20+_0x2e693f['x']}),this[_0x5df228(0x1e6)]['updateScrollVal']({'viewportScrollX':_0x31bf91(_0x4c8fe2[_0x5df228(0x2fd)])+_0x31bf91(_0x250e6b)-_0x31bf91(_0x1f232c['x']),'viewportScrollY':_0x273f30(_0x13457a[_0x5df228(0xe4)])+_0x273f30(_0x5cd266)})):this[_0x5df228(0x1e6)][_0x5df228(0x370)](),this['_config']['includeHeaderDimensions']){let _0x22333c=_0x31bf91(_0x250e6b),_0x1b422b=_0x273f30(_0x5cd266),_0x2c0274=_0x31bf91(_0x42e4ea)+_0x5ebb20+_0x2e693f['x'],_0xcc158d=_0x273f30(_0x126236)+_0x46486d+_0x2e693f['y'];this[_0x5df228(0xbb)][_0x5df228(0x328)]({'top':_0x1b422b,'left':_0x22333c,'height':_0xcc158d,'width':_0x2c0274}),this['_viewMain'][_0x5df228(0x3b7)]({'viewportScrollX':_0x31bf91(_0x4c8fe2[_0x5df228(0x2fd)]),'viewportScrollY':_0x273f30(_0x4c8fe2[_0x5df228(0xe4)])}),this[_0x5df228(0x31b)]&&this['_viewColumnRight']&&(this['_viewColumnRight'][_0x5df228(0x2b9)](),this[_0x5df228(0xc7)][_0x5df228(0x328)]({'top':0x0,'left':_0x22333c,'height':_0x1b422b,'width':_0x2c0274}),this[_0x5df228(0xc7)][_0x5df228(0x3b7)]({'viewportScrollX':_0x31bf91(_0x4c8fe2[_0x5df228(0x2fd)]),'viewportScrollY':0x0}),this[_0x5df228(0x31b)]['enable'](),this[_0x5df228(0x31b)][_0x5df228(0x328)]({'top':_0x1b422b,'left':0x0,'height':_0xcc158d,'width':_0x22333c}),this[_0x5df228(0x31b)]['updateScrollVal']({'viewportScrollX':0x0,'viewportScrollY':_0x273f30(_0x4c8fe2[_0x5df228(0xe4)])}));}else this[_0x5df228(0xbb)][_0x5df228(0x328)]({'top':_0x273f30(_0x1f232c['y']),'left':_0x31bf91(_0x1f232c['x']),'height':_0x273f30(_0x126236)+_0x46486d+_0x2e693f['y'],'width':_0x31bf91(_0x42e4ea)+_0x5ebb20+_0x2e693f['x']}),this['_viewMain']['updateScrollVal']({'viewportScrollX':_0x31bf91(_0x4c8fe2[_0x5df228(0x2fd)])+_0x31bf91(_0x250e6b)-_0x31bf91(_0x1f232c['x']),'viewportScrollY':_0x273f30(_0x4c8fe2['startY'])+_0x273f30(_0x5cd266)-_0x273f30(_0x1f232c['y'])});}['_getTranslateOffset'](){const _0x57de43=_0x3bd298;let _0x5831f7=this[_0x57de43(0x1ea)],{vAlign:_0x3f8fc9,hAlign:_0x1ddc66}=this[_0x57de43(0x3a9)],_0x92fe81=Math['max'](this[_0x57de43(0x37c)][_0x57de43(0x2c0)],this['_scene'][_0x57de43(0x3c6)]),_0x3074ec;switch(_0x1ddc66){case t['PrintAlign'][_0x57de43(0x1f8)]:_0x3074ec=_0x5831f7[_0x57de43(0x122)];break;case t['PrintAlign']['End']:_0x3074ec=this['paperSize']['w']-this[_0x57de43(0x26b)]*_0x92fe81-_0x5831f7[_0x57de43(0x150)];break;default:_0x3074ec=_0x5831f7[_0x57de43(0x122)]+(this[_0x57de43(0x257)]['w']-this['_totalWidth']*_0x92fe81-_0x5831f7[_0x57de43(0x122)]-_0x5831f7[_0x57de43(0x150)])/0x2;}let _0xf8632f;switch(_0x3f8fc9){case t[_0x57de43(0x1a2)][_0x57de43(0x1f8)]:_0xf8632f=_0x5831f7[_0x57de43(0x3a2)];break;case t[_0x57de43(0x1a2)][_0x57de43(0x379)]:_0xf8632f=this[_0x57de43(0x257)]['h']-this[_0x57de43(0x30d)]*_0x92fe81-_0x5831f7[_0x57de43(0x217)];break;default:_0xf8632f=(this['paperSize']['h']-this[_0x57de43(0x30d)]*_0x92fe81-_0x5831f7[_0x57de43(0x3a2)]-_0x5831f7[_0x57de43(0x217)])/0x2+_0x5831f7[_0x57de43(0x3a2)];}return{'offsetX':Math['round'](_0x3074ec),'offsetY':Math[_0x57de43(0x149)](_0xf8632f),'scale':_0x92fe81};}[_0x3bd298(0x39b)](){const _0x2009f2=_0x3bd298;this[_0x2009f2(0x164)](),this['_effects'][_0x2009f2(0x3bb)](),this[_0x2009f2(0x3b4)]=new n[(_0x2009f2(0x24c))]();let _0x3198f8=this[_0x2009f2(0x130)][_0x2009f2(0x24d)](s[_0x2009f2(0x14c)]),{offsetX:_0x44b91f,offsetY:_0x11b6eb,scale:_0x14ef79}=this[_0x2009f2(0x2db)](),_0x1a6ee8=_0x44b91f,_0x1f76bb=_0x11b6eb;this[_0x2009f2(0x1cc)]['style'][_0x2009f2(0x122)]=_0x1a6ee8+'px',this['_root']['style'][_0x2009f2(0x3a2)]=_0x1f76bb+'px';let _0x5c614c=this[_0x2009f2(0x26b)]*_0x14ef79,_0x3f4d2e=this[_0x2009f2(0x30d)]*_0x14ef79;this['_root'][_0x2009f2(0x271)][_0x2009f2(0x298)]=_0x5c614c+'px',this['_root'][_0x2009f2(0x271)][_0x2009f2(0x3b9)]=_0x3f4d2e+'px',this[_0x2009f2(0x1cc)][_0x2009f2(0x271)][_0x2009f2(0x32c)]='absolute',this[_0x2009f2(0x1cc)][_0x2009f2(0x271)][_0x2009f2(0x1e7)]=_0x2009f2(0x1f7),_0x3198f8['interceptor'][_0x2009f2(0x39f)](_0x3198f8[_0x2009f2(0x36b)]['getInterceptPoints']()[_0x2009f2(0x2fb)])(this[_0x2009f2(0x3b4)],{'unitId':this[_0x2009f2(0x195)],'subUnitId':this[_0x2009f2(0x254)],'scene':this[_0x2009f2(0x37c)],'engine':this[_0x2009f2(0x2ea)],'root':this[_0x2009f2(0x1cc)],'worksheet':this[_0x2009f2(0x1ff)][_0x2009f2(0x1d8)],'skeleton':this[_0x2009f2(0x1ff)],'range':this[_0x2009f2(0xca)][_0x2009f2(0x10a)],'offset':this['_getTranslateOffset'](),'resourceCollector':this['_resourceCollector']});}['_renderMainScene'](){const _0x145d90=_0x3bd298;this[_0x145d90(0x320)]&&this['prepare']();let _0x22a505=this[_0x145d90(0x2ea)]['getCanvas']()[_0x145d90(0x221)](),{gridlines:_0x2cc518}=this[_0x145d90(0x3a9)],{offsetX:_0x994af2,offsetY:_0x24a9bc}=this['_getTranslateOffset']();this[_0x145d90(0x333)][_0x145d90(0x356)](!_0x2cc518),this[_0x145d90(0x333)][_0x145d90(0xfc)](),this['_scene']['makeDirty'](),_0x22a505[_0x145d90(0x2a1)](),_0x22a505['translateWithPrecision'](_0x994af2,_0x24a9bc),this[_0x145d90(0x37c)]['render'](),_0x22a505[_0x145d90(0x17e)]();}['_renderHeaderFooterByCustom'](_0x2662b2,_0x44898f,_0xdc288){const _0x228e9d=_0x3bd298;let {w:_0x9c09e1,h:_0x3c4f99}=this[_0x228e9d(0x257)],_0x1e4e77=this['_engine'][_0x228e9d(0x368)]()[_0x228e9d(0x221)]();_0x1e4e77['save'](),_0x1e4e77['font']=_0x228e9d(0x2e5)+o['DEFAULT_FONTFACE_PLANE'];let _0x6aa214=0x13*this[_0x228e9d(0x396)],_0x1e3377=0x14*this[_0x228e9d(0x396)],_0x2c6c59={'workbook':_0x44898f,'worksheet':_0xdc288,'now':(0x0,n['dateKit'])(),'localeService':this[_0x228e9d(0x130)]['get'](n[_0x228e9d(0x14a)]),'page':this[_0x228e9d(0xca)][_0x228e9d(0x391)],'pageTotal':this['_config']['pageTotal'],'sheetPageTotal':this[_0x228e9d(0xca)]['sheetPageTotal'],'sheetPage':this[_0x228e9d(0xca)]['sheetPage']};if(_0x2662b2[_0x228e9d(0x147)]){let _0x10ab09=V(_0x2662b2[_0x228e9d(0x147)],_0x2c6c59);_0x1e4e77[_0x228e9d(0x267)](_0x10ab09,_0x6aa214,_0x1e3377);}if(_0x2662b2['topCenter']){let _0x5dda46=V(_0x2662b2['topCenter'],_0x2c6c59),_0x5cd424=_0x1e4e77[_0x228e9d(0x18e)](_0x5dda46);_0x1e4e77[_0x228e9d(0x267)](_0x5dda46,(_0x9c09e1-_0x5cd424[_0x228e9d(0x298)])/0x2,_0x1e3377);}if(_0x2662b2[_0x228e9d(0x1fd)]){let _0x4c49ac=V(_0x2662b2[_0x228e9d(0x1fd)],_0x2c6c59),_0x389728=_0x1e4e77[_0x228e9d(0x18e)](_0x4c49ac);_0x1e4e77[_0x228e9d(0x267)](_0x4c49ac,_0x9c09e1-_0x389728[_0x228e9d(0x298)]-_0x6aa214,_0x1e3377);}if(_0x2662b2[_0x228e9d(0x3a5)]){let _0x130a95=V(_0x2662b2[_0x228e9d(0x3a5)],_0x2c6c59);_0x1e4e77[_0x228e9d(0x267)](_0x130a95,_0x6aa214,_0x3c4f99-_0x1e3377);}if(_0x2662b2[_0x228e9d(0x131)]){let _0x3fb16f=V(_0x2662b2[_0x228e9d(0x131)],_0x2c6c59),_0x1a7959=_0x1e4e77[_0x228e9d(0x18e)](_0x3fb16f);_0x1e4e77['fillText'](_0x3fb16f,(_0x9c09e1-_0x1a7959[_0x228e9d(0x298)])/0x2,_0x3c4f99-_0x1e3377);}if(_0x2662b2[_0x228e9d(0x236)]){let _0x57b6d6=V(_0x2662b2[_0x228e9d(0x236)],_0x2c6c59),_0x2cdeda=_0x1e4e77[_0x228e9d(0x18e)](_0x57b6d6);_0x1e4e77[_0x228e9d(0x267)](_0x57b6d6,_0x9c09e1-_0x2cdeda[_0x228e9d(0x298)]-_0x6aa214,_0x3c4f99-_0x1e3377);}_0x1e4e77[_0x228e9d(0x17e)]();}['_renderHeaderFooter'](){const _0x592bf0=_0x3bd298;let _0x4aec6d=this[_0x592bf0(0xd1)][_0x592bf0(0x240)](this[_0x592bf0(0xca)]['unitId'],n[_0x592bf0(0x394)]['UNIVER_SHEET']),_0x3454b0=_0x4aec6d==null?void 0x0:_0x4aec6d['getSheetBySheetId'](this[_0x592bf0(0xca)][_0x592bf0(0x1af)]),{headerFooter:_0x1b1526,isCustomHeaderFooter:_0x226015,headerFooterSetting:_0x1b7b43}=this['_renderConfig'],{w:_0x235e62,h:_0x2246fa}=this[_0x592bf0(0x257)],_0x1384e2=this[_0x592bf0(0x2ea)][_0x592bf0(0x368)]()[_0x592bf0(0x221)]();if(!_0x4aec6d||!_0x3454b0)return;if(_0x226015&&_0x1b7b43){this[_0x592bf0(0x19a)](_0x1b7b43,_0x4aec6d,_0x3454b0);return;}_0x1384e2['save'](),_0x1384e2[_0x592bf0(0x2b3)]=_0x592bf0(0x2e5)+o[_0x592bf0(0x243)];let _0x4b5975=0x13*this[_0x592bf0(0x396)],_0x66310d=0x14*this['_previewScale'];if(_0x1b1526[_0x592bf0(0x286)]('Date')||_0x1b1526['includes'](_0x592bf0(0xec))){let _0x5139e3=new Date()['toLocaleString']();_0x1b1526['includes'](_0x592bf0(0x19e))?_0x1b1526[_0x592bf0(0x286)](_0x592bf0(0xec))||(_0x5139e3=new Date()[_0x592bf0(0x2a9)]()):_0x5139e3=new Date()[_0x592bf0(0xf1)](),_0x1384e2['fillText'](_0x5139e3,_0x4b5975,_0x2246fa-_0x66310d);}_0x1b1526[_0x592bf0(0x2a5)](_0x1a80f8=>{const _0x5c0214=_0x592bf0;switch(_0x1a80f8){case _0x5c0214(0x183):{let _0x4db17d=_0x4aec6d[_0x5c0214(0x12b)],_0x723745=_0x1384e2[_0x5c0214(0x18e)](_0x4db17d),_0x1ba697=_0x723745[_0x5c0214(0x284)]+_0x723745[_0x5c0214(0x3ae)];_0x1384e2['fillText'](_0x4db17d,_0x4b5975,_0x66310d+_0x1ba697);break;}case _0x5c0214(0x334):{let _0x36d608=_0x3454b0[_0x5c0214(0x17a)](),_0x18f0c9=_0x1384e2[_0x5c0214(0x18e)](_0x36d608),_0x3919e9=_0x18f0c9[_0x5c0214(0x284)]+_0x18f0c9[_0x5c0214(0x3ae)];_0x1384e2[_0x5c0214(0x267)](_0x36d608,_0x235e62-(_0x18f0c9[_0x5c0214(0x298)]+_0x4b5975),_0x66310d+_0x3919e9);break;}case'PageSize':{let _0x21e582=''+this[_0x5c0214(0xca)]['page'],_0x479965=_0x1384e2[_0x5c0214(0x18e)](_0x21e582);_0x1384e2[_0x5c0214(0x267)](_0x21e582,_0x235e62-(_0x479965[_0x5c0214(0x298)]+_0x4b5975),_0x2246fa-_0x66310d);break;}}}),_0x1384e2['restore']();}['_renderLimitWaterMark'](){const _0x50d341=_0x3bd298;let _0x537662=this[_0x50d341(0x130)][_0x50d341(0x24d)](n[_0x50d341(0x14a)]),_0x3fd8cb=this['_engine'][_0x50d341(0x368)]()[_0x50d341(0x221)]();_0x3fd8cb[_0x50d341(0x2a1)]();let _0x5ce6cb=0x14*this[_0x50d341(0x396)];_0x3fd8cb['fillStyle']=_0x50d341(0x381),_0x3fd8cb['font']=_0x50d341(0x227)+o[_0x50d341(0x243)];let _0x1b30a5=_0x3fd8cb['measureText'](_0x537662['t']('sheets-print.limit.waterMark')),_0x2c1e05=(this[_0x50d341(0x257)]['w']-_0x1b30a5[_0x50d341(0x298)])/0x2,_0x1363bf=_0x1b30a5[_0x50d341(0x284)]+_0x1b30a5['fontBoundingBoxDescent'];_0x3fd8cb[_0x50d341(0x267)](_0x537662['t']('sheets-print.limit.waterMark'),_0x2c1e05,_0x5ce6cb+_0x1363bf),_0x3fd8cb['fillText'](_0x537662['t']('sheets-print.limit.waterMark'),_0x2c1e05,this[_0x50d341(0x257)]['h']-_0x5ce6cb),_0x3fd8cb[_0x50d341(0x17e)]();}[_0x3bd298(0x37f)](){const _0x29dd13=_0x3bd298;this[_0x29dd13(0x2ea)][_0x29dd13(0x21f)](),this[_0x29dd13(0x292)](),this[_0x29dd13(0x1d0)](),this[_0x29dd13(0x304)]&&(0x0,o[_0x29dd13(0x261)])(this['_engine'][_0x29dd13(0x368)]()['getContext'](),this[_0x29dd13(0x304)],this[_0x29dd13(0x304)][_0x29dd13(0x3ac)],this[_0x29dd13(0x130)]['get'](n['UserManagerService'])[_0x29dd13(0x36a)]());}['renderOnReady'](){const _0x370685=_0x3bd298;let _0x5549b7=this['engine'][_0x370685(0x219)][_0x370685(0x16c)](()=>{const _0x4c69cc=_0x370685;this[_0x4c69cc(0x37f)]();});this[_0x370685(0x1d1)](_0x5549b7),this[_0x370685(0xbc)]()[_0x370685(0x16b)](()=>this[_0x370685(0x37f)]());}[_0x3bd298(0xbc)](_0x3bf655){const _0x54b012=_0x3bd298;return this[_0x54b012(0xe7)][_0x54b012(0x1db)](_0x3bf655);}['getImage'](){const _0x5da361=_0x3bd298;return this['_engine'][_0x5da361(0x368)]()[_0x5da361(0x1df)](_0x5da361(0xb7),0x1);}};function oe(_0x31153a){const _0x936be1=_0x3bd298;let _0x5989b2=_0x31153a['reduce']((_0x44b0cc,_0x180034)=>_0x44b0cc+_0x180034[_0x936be1(0x2d5)][_0x936be1(0x213)],0x0),_0x47f6e6=new Map(),_0xa767de=new Map();_0x31153a[_0x936be1(0x2a5)](_0x1dcfb0=>{const _0x2ee55d=_0x936be1;let _0x5567ab=_0x1dcfb0[_0x2ee55d(0x2d5)]['length'],_0x201b28=_0xa767de[_0x2ee55d(0x24d)](_0x1dcfb0[_0x2ee55d(0x1af)])??0x0;_0xa767de[_0x2ee55d(0x272)](_0x1dcfb0['subUnitId'],_0x5567ab+_0x201b28);});let _0x4175c6=0x0;return _0x31153a[_0x936be1(0xc1)](_0x365825=>{const _0x3fdeb2=_0x936be1;let _0x4a7ce9=_0x365825[_0x3fdeb2(0x2d5)][_0x3fdeb2(0x213)],_0x37399d=_0x47f6e6[_0x3fdeb2(0x24d)](_0x365825[_0x3fdeb2(0x1af)])??0x0,_0xd6bb88=_0x365825['pages'][_0x3fdeb2(0xc1)]((_0x47fbe5,_0x320312)=>(_0x4175c6++,{..._0x365825,'range':_0x47fbe5,'page':_0x4175c6,'pageTotal':_0x5989b2,'sheetPageTotal':_0xa767de[_0x3fdeb2(0x24d)](_0x365825[_0x3fdeb2(0x1af)]),'sheetPage':_0x320312+0x1+_0x37399d}));return _0x47f6e6[_0x3fdeb2(0x178)](_0x365825[_0x3fdeb2(0x1af)])?_0x47f6e6[_0x3fdeb2(0x272)](_0x365825['subUnitId'],_0x47f6e6[_0x3fdeb2(0x24d)](_0x365825['subUnitId'])+_0x4a7ce9):_0x47f6e6[_0x3fdeb2(0x272)](_0x365825['subUnitId'],_0x4a7ce9),_0xd6bb88;})[_0x936be1(0x289)]();}let se=0x0,U=class{constructor(_0x3ccde0,_0x2b5d42,_0x24a8c1,_0x2f4c69,_0x49af85,_0x127947,_0x3ca287){const _0x61464c=_0x3bd298;this[_0x61464c(0xb8)]=_0x3ccde0,this[_0x61464c(0x10e)]=_0x2b5d42,this[_0x61464c(0x255)]=_0x24a8c1,this['_renderManagerService']=_0x2f4c69,this[_0x61464c(0x21b)]=_0x49af85,this[_0x61464c(0x1e8)]=_0x127947,this[_0x61464c(0x161)]=_0x3ca287;}async[_0x3bd298(0x2bd)](_0x5bf885,_0x57e79a){const _0x1c350e=_0x3bd298;await Promise[_0x1c350e(0x141)](Array[_0x1c350e(0x3a0)](new Set(_0x5bf885[_0x1c350e(0xc1)](_0x11f255=>_0x11f255[_0x1c350e(0x390)])),_0x5ec4d5=>this[_0x1c350e(0x161)][_0x1c350e(0x39b)]({'unitId':_0x5ec4d5,'unitType':n[_0x1c350e(0x394)][_0x1c350e(0x103)],'dpr':0x1})));let _0x17c2a8=oe(_0x5bf885),{ls:_0x322a9d,pbk:_0x469ca5}=this[_0x1c350e(0x1e8)][_0x1c350e(0x264)](e['LS_CONFIG_KEY'])??{},_0x33c333=(0x0,e[_0x1c350e(0x38c)])()?0x1/0x0:ee(0x3,_0x322a9d,_0x469ca5)['page'];_0x17c2a8=_0x17c2a8['slice'](0x0,_0x33c333);let _0x3fd04e=document['createElement']('div');_0x3fd04e[_0x1c350e(0x3ad)]=t[_0x1c350e(0x1ae)];let _0x15fba5=_0x17c2a8[_0x1c350e(0xc1)](_0x2d08ec=>{const _0x424142=_0x1c350e;let _0x3c2831=new ae(this['_injector'],_0x2d08ec,_0x57e79a,!0x1);return _0x3c2831[_0x424142(0x2da)][_0x424142(0x3ad)]=t[_0x424142(0x310)],_0x3c2831;});_0x15fba5[_0x1c350e(0x2a5)](_0x5318ce=>{const _0x2d0732=_0x1c350e;_0x3fd04e['appendChild'](_0x5318ce[_0x2d0732(0x2da)]),_0x5318ce[_0x2d0732(0x2da)]['appendChild'](_0x5318ce[_0x2d0732(0x343)]),_0x5318ce[_0x2d0732(0x39b)](),_0x5318ce[_0x2d0732(0x371)](!0x1);});let _0x592722=this[_0x1c350e(0x255)][_0x1c350e(0x23a)],_0xb7e17b=n[_0x1c350e(0xc9)][_0x592722[_0x1c350e(0x257)]],_0x4dd95c=(0x0,t['createPrintStyle'])(_0xb7e17b['width'],_0xb7e17b[_0x1c350e(0x3b9)],_0x592722[_0x1c350e(0x362)]);return document[_0x1c350e(0x1b2)][_0x1c350e(0x278)](_0x4dd95c),document[_0x1c350e(0x1b2)][_0x1c350e(0x278)](_0x3fd04e),await Promise[_0x1c350e(0x141)](_0x15fba5[_0x1c350e(0xc1)](_0x1d0d72=>_0x1d0d72[_0x1c350e(0xbc)]())),new Promise(_0x2efc0c=>{const _0x51242f=_0x1c350e;window[_0x51242f(0xe2)]=()=>{const _0x3e962b=_0x51242f;_0x15fba5[_0x3e962b(0x2a5)](_0x9ae230=>{const _0x476698=_0x3e962b;_0x9ae230[_0x476698(0x37f)](),_0x9ae230['clearMemory']();});},window[_0x51242f(0x329)]=()=>{const _0x2d3ad1=_0x51242f;_0x15fba5['forEach'](_0x225c02=>{const _0x196d3b=_0x181a;_0x225c02[_0x196d3b(0x3bb)]();}),document[_0x2d3ad1(0x1b2)][_0x2d3ad1(0x159)](_0x3fd04e),document[_0x2d3ad1(0x1b2)][_0x2d3ad1(0x159)](_0x4dd95c),this[_0x2d3ad1(0x10e)][_0x2d3ad1(0x125)](),this[_0x2d3ad1(0x255)][_0x2d3ad1(0x2f4)](),this[_0x2d3ad1(0x21b)][_0x2d3ad1(0x260)](),_0x15fba5=[],_0x2efc0c(!0x0);},window[_0x51242f(0x2bd)]();});}['getRangeImage'](_0x2d664f,_0x1c34b0,_0x1b8135,_0x4ac8a9){const _0x86774=_0x3bd298;if(!F(this[_0x86774(0xb8)])){let _0x54baa6=(Date[_0x86774(0x28c)]()-se)/0x3e8;if(se=Date['now'](),_0x54baa6<=0x1e)return!0x1;}let _0x3b2a89=this[_0x86774(0x229)]['getRenderUnitById'](_0x2d664f);if(!_0x3b2a89)return!0x1;let _0x20855e=_0x3b2a89[_0x86774(0x3a1)](s[_0x86774(0x352)])[_0x86774(0x2d3)](_0x1c34b0);if(!_0x20855e)return!0x1;let _0x443e68=_0x20855e['columnWidthAccumulation'][_0x1b8135[_0x86774(0x2c9)]]-(_0x20855e[_0x86774(0x377)][_0x1b8135[_0x86774(0x13f)]-0x1]||0x0),_0x40e2ad=_0x20855e[_0x86774(0x312)][_0x1b8135[_0x86774(0x1ab)]]-(_0x20855e[_0x86774(0x312)][_0x1b8135[_0x86774(0x2ee)]-0x1]||0x0),_0x4f8508=_0x20855e[_0x86774(0x2e7)],_0x732cf5=_0x20855e[_0x86774(0x20f)],_0x3d4af7=1.5,_0x65619b=new ae(this[_0x86774(0xb8)],{'unitId':_0x2d664f,'subUnitId':_0x1c34b0,'range':_0x1b8135,'freeze':M,'scale':_0x3d4af7,'page':0x1,'pageSize':_0x4ac8a9?{'w':(_0x443e68+_0x732cf5)*_0x3d4af7+0x1,'h':(_0x40e2ad+_0x4f8508)*_0x3d4af7+0x1}:{'w':_0x443e68*_0x3d4af7+0x1,'h':_0x40e2ad*_0x3d4af7+0x1},'margin':t['PaperMarginMap'][t['PrintPaperMargin'][_0x86774(0x268)]],'pageTotal':0x1,'sheetPageTotal':0x1,'sheetPage':0x1,'includeHeaderDimensions':_0x4ac8a9??!0x1},{'gridlines':!0x0,'hAlign':t[_0x86774(0x1a2)]['Middle'],'vAlign':t[_0x86774(0x1a2)][_0x86774(0x287)],'headerFooter':[],'headerFooterSetting':E,'isCustomHeaderFooter':!0x1},!0x1),_0xd1726c=document['createElement'](_0x86774(0xbd));_0xd1726c['className']=t[_0x86774(0x1ae)],_0x65619b['container'][_0x86774(0x3ad)]=t[_0x86774(0x310)],_0xd1726c[_0x86774(0x278)](_0x65619b[_0x86774(0x2da)]),document[_0x86774(0x1b2)][_0x86774(0x278)](_0xd1726c),_0x65619b[_0x86774(0x39b)](),_0x65619b[_0x86774(0x37f)]();let _0x1e9471=_0x65619b[_0x86774(0x270)]();return _0x65619b[_0x86774(0x3bb)](),document[_0x86774(0x1b2)][_0x86774(0x159)](_0xd1726c),_0x1e9471;}};U=O([D(0x0,(0x0,n[_0x3bd298(0xff)])(n[_0x3bd298(0x274)])),D(0x1,b),D(0x2,k),D(0x3,o[_0x3bd298(0x2f7)]),D(0x4,i[_0x3bd298(0x341)]),D(0x5,n[_0x3bd298(0x28b)]),D(0x6,t['IPrintPreparationService'])],U);function ce(_0x59f675,_0x5ce57f){const _0x55e4ea=_0x3bd298;let _0x8bc8d8=atob(_0x59f675[_0x55e4ea(0x3c3)](',')[0x1]),_0x529926=new ArrayBuffer(_0x8bc8d8[_0x55e4ea(0x213)]),_0xb7c41e=new Uint8Array(_0x529926);for(let _0x9fbc9a=0x0;_0x9fbc9a<_0x8bc8d8[_0x55e4ea(0x213)];_0x9fbc9a++)_0xb7c41e[_0x9fbc9a]=_0x8bc8d8['charCodeAt'](_0x9fbc9a);return new Blob([_0x529926],{'type':_0x5ce57f});}const le={'type':n['CommandType'][_0x3bd298(0x2ba)],'id':_0x3bd298(0x18c),async 'handler'(_0x5ba3c4){const _0x3b75d3=_0x3bd298;var _0x567831;let _0x2b014b=_0x5ba3c4[_0x3b75d3(0x24d)](r['SheetsSelectionsService']),_0x272c6b=(_0x567831=_0x2b014b[_0x3b75d3(0x33c)]())==null?void 0x0:_0x567831[0x0],_0x456074=_0x5ba3c4[_0x3b75d3(0x24d)](U),_0x1f3b45=_0x2b014b[_0x3b75d3(0x32d)](),_0x2bf7a7=_0x5ba3c4[_0x3b75d3(0x24d)](i['IMessageService']),_0x196795=_0x5ba3c4[_0x3b75d3(0x24d)](n['IUniverInstanceService']),_0x3f9a21=_0x5ba3c4[_0x3b75d3(0x24d)](n[_0x3b75d3(0x14a)]);if(!_0x272c6b||!_0x1f3b45)return!0x1;let _0x21e004=(0x0,r['getSheetCommandTarget'])(_0x196795);if(!_0x21e004)return!0x1;let {unitId:_0x4d75fd,subUnitId:_0x2b2ee8}=_0x21e004,_0x2fa964=_0x456074[_0x3b75d3(0x194)](_0x4d75fd,_0x2b2ee8,_0x272c6b[_0x3b75d3(0x10a)]);if(!_0x2fa964)return!0x1;try{return await navigator[_0x3b75d3(0x182)][_0x3b75d3(0x124)]([new ClipboardItem({'image/png':ce(_0x2fa964,_0x3b75d3(0xb7))})]),_0x2bf7a7['show']({'type':c[_0x3b75d3(0xc0)][_0x3b75d3(0x3c7)],'content':_0x3f9a21['t'](_0x3b75d3(0x30b))}),!0x0;}catch{return _0x2bf7a7[_0x3b75d3(0x1b4)]({'type':c[_0x3b75d3(0xc0)]['Error'],'content':_0x3f9a21['t']('sheets-print.screenshot.fail')}),!0x1;}}},W=(0x0,n[_0x3bd298(0xb4)])('univer-pro.print-grid.service');var ue=class extends n[_0x3bd298(0x1a7)]{constructor(..._0x32751a){const _0x150318=_0x3bd298;super(..._0x32751a),y(this,_0x150318(0x119),new a['BehaviorSubject'](!0x1)),y(this,_0x150318(0xb6),this[_0x150318(0x119)]);}get[_0x3bd298(0x1a5)](){const _0x1e5a1c=_0x3bd298;return this['_visible$'][_0x1e5a1c(0x397)];}[_0x3bd298(0x1b4)](){const _0x2b7bad=_0x3bd298;this[_0x2b7bad(0x119)][_0x2b7bad(0x1cd)](!0x0);}['hide'](){const _0x5c70aa=_0x3bd298;this[_0x5c70aa(0x119)][_0x5c70aa(0x1cd)](!0x1);}['dispose'](){const _0x17069a=_0x3bd298;super[_0x17069a(0x3bb)](),this['_visible$'][_0x17069a(0x2a0)]();}};const de='PRINT_GRID_SIDEBAR_COMPONENT',G={'id':'sheet.operation.open-print-grid-sidebar','type':n['CommandType'][_0x3bd298(0x2ba)],'handler':_0x482eb4=>{const _0x98ee6e=_0x3bd298;let _0x59c570=_0x482eb4[_0x98ee6e(0x24d)](i[_0x98ee6e(0x2bb)]),_0x51c1ec=_0x482eb4[_0x98ee6e(0x24d)](W),_0x3e59d1=_0x482eb4[_0x98ee6e(0x24d)](k),_0x346025=_0x482eb4[_0x98ee6e(0x24d)](n['LocaleService']);return _0x3e59d1[_0x98ee6e(0x360)](),_0x51c1ec[_0x98ee6e(0x1b4)](),_0x59c570[_0x98ee6e(0x35b)]({'header':{'title':_0x346025['t']('sheets-print.grid.title')},'children':{'label':de},'onClose':()=>{},'width':0x138}),!0x0;}},fe={'id':_0x3bd298(0xc4),'type':n[_0x3bd298(0x3b3)][_0x3bd298(0x2ba)],'handler':_0xfb8ffd=>{const _0x28da23=_0x3bd298;let _0x2b3468=_0xfb8ffd[_0x28da23(0x24d)](i[_0x28da23(0x2bb)]);return _0xfb8ffd[_0x28da23(0x24d)](W)[_0x28da23(0x204)](),_0x2b3468[_0x28da23(0x125)](),!0x0;}},pe=_0x3bd298(0x2d1);function me(_0x164d19){const _0x4ee491=_0x3bd298;return{'id':pe,'type':i[_0x4ee491(0x146)][_0x4ee491(0x239)],'icon':_0x4ee491(0x313),'tooltip':_0x4ee491(0xc6),'hidden$':(0x0,i[_0x4ee491(0x2bc)])(_0x164d19,n[_0x4ee491(0x394)][_0x4ee491(0x103)]),'disabled$':(0x0,s[_0x4ee491(0x3c1)])(_0x164d19,{'workbookTypes':[r[_0x4ee491(0x339)]]})};}function he(){const _0x7fab0b=_0x3bd298;return{'id':I['id'],'type':i['MenuItemType']['BUTTON'],'title':'sheets-print.menu','icon':_0x7fab0b(0x313)};}function ge(_0x4e8270){const _0x22202c=_0x3bd298;return{'id':le['id'],'type':i[_0x22202c(0x146)][_0x22202c(0x16a)],'title':'sheets-print.screenshot.title','icon':_0x22202c(0x148),'tooltip':_0x22202c(0x1d4),'hidden$':(0x0,i['getMenuHiddenObservable'])(_0x4e8270,n[_0x22202c(0x394)][_0x22202c(0x103)]),'disabled$':(0x0,s['getCurrentRangeDisable$'])(_0x4e8270,{'workbookTypes':[r[_0x22202c(0x339)],r[_0x22202c(0x249)],r['WorkbookViewPermission']],'worksheetTypes':[r[_0x22202c(0x2fc)],r['WorksheetViewPermission']],'rangeTypes':[r[_0x22202c(0x11c)]]})};}function _e(){const _0x23fff9=_0x3bd298;return{'id':G['id'],'type':i[_0x23fff9(0x146)][_0x23fff9(0x16a)],'title':'sheets-print.grid.title','icon':_0x23fff9(0x1a6)};}const ve={[i[_0x3bd298(0x1fe)]['OTHERS']]:{[pe]:{'order':0.01,'gridLayout':{'row':0x1,'column':0x3,'rowSpan':0x2,'columnSpan':0x2,'showLabel':!0x0},'menuItemFactory':me,[I['id']]:{'order':0x0,'menuItemFactory':he},[G['id']]:{'order':0x1,'menuItemFactory':_e}}},[i['ContextMenuPosition'][_0x3bd298(0x24e)]]:{[i['ContextMenuGroup'][_0x3bd298(0x1bc)]]:{[le['id']]:{'order':2.1,'menuItemFactory':ge}}}};var ye=_0x3bd298(0x22e),be=_0x3bd298(0x3bd);const xe=_0x3bd298(0x350),Se='sheets-print.config',K={};let q=class extends n[_0x3bd298(0x1a7)]{constructor(_0x45b2a7){const _0x88ee89=_0x3bd298;super(),this['disposeWithMe'](_0x45b2a7['register']({'PrintIcon':l[_0x88ee89(0x313)]}));}};q=O([D(0x0,(0x0,n[_0x3bd298(0xff)])(i[_0x3bd298(0x345)]))],q);const Ce={[i['RibbonStartGroup']['OTHERS']]:{[I['id']]:{'order':0.01,'menuItemFactory':he}}};function we(_0x1ce806){const _0x146293=_0x3bd298;let [_0x228630,_0x27b551]=(0x0,u[_0x146293(0x332)])();return(0x0,u['useEffect'])(()=>{const _0x130f1b=_0x146293;_0x1ce806[_0x130f1b(0x16b)](_0x28cee6=>{_0x27b551(()=>_0x28cee6);});},[]),_0x228630;}const Te=(_0x4ef327,_0xc08220)=>{const _0x45139e=_0x3bd298;let _0x493dbe=(0x0,u['useRef'])(!0x1);(0x0,u[_0x45139e(0x120)])(()=>{const _0x1fd513=_0x45139e;if(_0x493dbe[_0x1fd513(0x15f)])return _0x4ef327();_0x493dbe[_0x1fd513(0x15f)]=!0x0;},_0xc08220);},Ee=(0x0,u[_0x3bd298(0x353)])((_0x2b4499,_0x109679)=>{const _0x1b7bf9=_0x3bd298;let {config:_0x301b73,previewScale:_0x5be028}=_0x2b4499,_0x434e7e=(0x0,i[_0x1b7bf9(0x128)])(k),_0x17422a=(0x0,i[_0x1b7bf9(0x128)])(n['Injector']),_0x1ee213=(0x0,u[_0x1b7bf9(0x34e)])(null),_0x11550d=_0x434e7e[_0x1b7bf9(0x257)],_0x4c7fe9=(0x0,i[_0x1b7bf9(0x3a6)])(_0x434e7e['renderConfig$'],_0x434e7e[_0x1b7bf9(0xf7)]),_0x53a3d3=(0x0,i[_0x1b7bf9(0x3a6)])(_0x434e7e[_0x1b7bf9(0x10f)],_0x434e7e['layoutConfig']),_0x2d9ac4=Math[_0x1b7bf9(0x149)](_0x5be028*(0x31a/_0x11550d['w'])*0xa)/0xa,[_0x13ad5e]=(0x0,u[_0x1b7bf9(0x332)])(()=>new ae(_0x17422a,_0x301b73,_0x4c7fe9,!0x0,_0x2d9ac4));return(0x0,u[_0x1b7bf9(0x120)])(()=>(_0x1ee213[_0x1b7bf9(0x15f)]&&(_0x13ad5e[_0x1b7bf9(0x2da)][_0x1b7bf9(0x271)]['width']=_0x1b7bf9(0x133),_0x13ad5e[_0x1b7bf9(0x2da)][_0x1b7bf9(0x271)][_0x1b7bf9(0x3b9)]=_0x1b7bf9(0x133),_0x13ad5e['container'][_0x1b7bf9(0x271)][_0x1b7bf9(0x32c)]=_0x1b7bf9(0x291),_0x1ee213[_0x1b7bf9(0x15f)]['appendChild'](_0x13ad5e[_0x1b7bf9(0x2da)]),_0x13ad5e['container'][_0x1b7bf9(0x278)](_0x13ad5e[_0x1b7bf9(0x343)])),_0x13ad5e[_0x1b7bf9(0x37f)](),_0x13ad5e[_0x1b7bf9(0xd2)](),()=>{const _0x111bd0=_0x1b7bf9;var _0x4c428f;queueMicrotask(()=>_0x13ad5e[_0x111bd0(0x3bb)]()),(_0x4c428f=_0x1ee213['current'])==null||_0x4c428f['removeChild'](_0x13ad5e[_0x111bd0(0x2da)]);}),[_0x13ad5e]),Te(()=>{const _0x1525a9=_0x1b7bf9;_0x13ad5e[_0x1525a9(0xf7)]=_0x4c7fe9,_0x13ad5e[_0x1525a9(0x37f)]();},[_0x4c7fe9]),Te(()=>{const _0x118980=_0x1b7bf9;_0x13ad5e[_0x118980(0x3b0)](_0x2d9ac4),_0x13ad5e['engine'][_0x118980(0x1d7)](),_0x13ad5e[_0x118980(0x37f)]();},[_0x2d9ac4]),Te(()=>{const _0x270183=_0x1b7bf9;_0x13ad5e[_0x270183(0x2c1)](_0x301b73),_0x13ad5e['render']();},[_0x301b73[_0x1b7bf9(0x326)][_0x1b7bf9(0x2ee)],_0x301b73[_0x1b7bf9(0x326)][_0x1b7bf9(0x13f)],_0x301b73['freeze'][_0x1b7bf9(0x2e3)],_0x301b73[_0x1b7bf9(0x326)][_0x1b7bf9(0x14b)],_0x301b73[_0x1b7bf9(0x10a)][_0x1b7bf9(0x2ee)],_0x301b73['range']['endRow'],_0x301b73[_0x1b7bf9(0x10a)][_0x1b7bf9(0x13f)],_0x301b73[_0x1b7bf9(0x10a)][_0x1b7bf9(0x2c9)],_0x301b73[_0x1b7bf9(0x35c)],_0x53a3d3[_0x1b7bf9(0x1ea)]]),(0x0,d['jsx'])(_0x1b7bf9(0xbd),{'ref':_0x109679,'children':(0x0,d[_0x1b7bf9(0x382)])('div',{'ref':_0x1ee213,'className':_0x1b7bf9(0x1fa),'style':{'width':_0x11550d['w']*_0x2d9ac4,'height':_0x11550d['h']*_0x2d9ac4}})});});function De(_0x1632f9){const _0x27bc41=_0x3bd298;let {open:_0x2e72e0,onClose:_0x50452e}=_0x1632f9,_0x1a6f2b=(0x0,i[_0x27bc41(0x128)])(n[_0x27bc41(0x14a)]),_0x1cd740=(0x0,i['useDependency'])(k),[_0x88d996,_0x13c148]=(0x0,u['useState'])(()=>({..._0x1cd740['renderConfig'][_0x27bc41(0x26e)]??E})),_0x1915db=(_0x2eb566,_0x1a5d9a)=>{_0x13c148(_0x56844f=>({..._0x56844f,[_0x2eb566]:_0x1a5d9a}));};return(0x0,d['jsx'])(c[_0x27bc41(0x3c4)],{'open':_0x2e72e0,'title':_0x1a6f2b['t'](_0x27bc41(0x290)),'showCancel':!0x0,'showOk':!0x0,'onCancel':_0x50452e,'onClose':_0x50452e,'onOk':()=>{const _0x117140=_0x27bc41;_0x1cd740[_0x117140(0x309)]({'headerFooterSetting':_0x88d996}),_0x50452e();},'children':(0x0,d['jsxs'])(_0x27bc41(0xbd),{'className':'univer-grid\x20univer-max-h-[60vh]\x20univer-gap-4\x20univer-overflow-y-auto','children':[(0x0,d[_0x27bc41(0x2d8)])(_0x27bc41(0x318),{'className':_0x27bc41(0x110),'children':[(0x0,d[_0x27bc41(0x382)])(_0x27bc41(0xbd),{'className':_0x27bc41(0x2ca),'children':_0x1a6f2b['t']('sheets-print.headerFooter.header')}),(0x0,d[_0x27bc41(0x382)])(c[_0x27bc41(0x37e)],{'label':_0x1a6f2b['t'](_0x27bc41(0x2fa)),'children':(0x0,d['jsx'])(c[_0x27bc41(0xc5)],{'value':_0x88d996[_0x27bc41(0x147)],'onChange':_0x35fb07=>_0x1915db('topLeft',_0x35fb07)})}),(0x0,d[_0x27bc41(0x382)])(c[_0x27bc41(0x37e)],{'label':_0x1a6f2b['t'](_0x27bc41(0x2d7)),'children':(0x0,d[_0x27bc41(0x382)])(c[_0x27bc41(0xc5)],{'value':_0x88d996['topCenter'],'onChange':_0x14743f=>_0x1915db(_0x27bc41(0x2c2),_0x14743f)})}),(0x0,d['jsx'])(c['FormLayout'],{'label':_0x1a6f2b['t'](_0x27bc41(0x1c1)),'children':(0x0,d[_0x27bc41(0x382)])(c[_0x27bc41(0xc5)],{'value':_0x88d996[_0x27bc41(0x1fd)],'onChange':_0x3b23ef=>_0x1915db(_0x27bc41(0x1fd),_0x3b23ef)})})]}),(0x0,d[_0x27bc41(0x2d8)])(_0x27bc41(0x318),{'className':_0x27bc41(0x110),'children':[(0x0,d[_0x27bc41(0x382)])('div',{'className':_0x27bc41(0x2ca),'children':_0x1a6f2b['t'](_0x27bc41(0x307))}),(0x0,d[_0x27bc41(0x382)])(c[_0x27bc41(0x37e)],{'label':_0x1a6f2b['t']('sheets-print.headerFooter.left'),'children':(0x0,d[_0x27bc41(0x382)])(c[_0x27bc41(0xc5)],{'value':_0x88d996['bottomLeft'],'onChange':_0x511288=>_0x1915db('bottomLeft',_0x511288)})}),(0x0,d[_0x27bc41(0x382)])(c[_0x27bc41(0x37e)],{'label':_0x1a6f2b['t'](_0x27bc41(0x2d7)),'children':(0x0,d[_0x27bc41(0x382)])(c[_0x27bc41(0xc5)],{'value':_0x88d996[_0x27bc41(0x131)],'onChange':_0x362ff4=>_0x1915db(_0x27bc41(0x131),_0x362ff4)})}),(0x0,d[_0x27bc41(0x382)])(c[_0x27bc41(0x37e)],{'label':_0x1a6f2b['t'](_0x27bc41(0x1c1)),'children':(0x0,d[_0x27bc41(0x382)])(c[_0x27bc41(0xc5)],{'value':_0x88d996[_0x27bc41(0x236)],'onChange':_0x460043=>_0x1915db('bottomRight',_0x460043)})})]})]})});}const Oe=(0x0,u[_0x3bd298(0x241)])(_0x20f04b=>{const _0x22946a=_0x3bd298;var _0x326132,_0x5b259d,_0x1de9b4,_0x31d8fc,_0x88e8a8;let {onShowFooterHeaderEditor:_0x549343,DropdownComponent:_0x3a07dd=c[_0x22946a(0x192)],SelectComponent:_0x4790d4=c[_0x22946a(0x175)]}=_0x20f04b,_0x23bc99=(0x0,i['useDependency'])(k),_0x2994e1=(0x0,i[_0x22946a(0x3a6)])(_0x23bc99[_0x22946a(0x10f)],_0x23bc99[_0x22946a(0x23a)]),_0x523217=(0x0,i[_0x22946a(0x3a6)])(_0x23bc99['renderConfig$'],_0x23bc99['renderConfig']),_0x20bbcb=(0x0,i[_0x22946a(0x128)])(n[_0x22946a(0x14a)]),_0x3e3cf1=(0x0,i[_0x22946a(0x128)])(n[_0x22946a(0x36c)]),_0x38470f=(0x0,i[_0x22946a(0x128)])(n['ILocalStorageService']),[_0x9a71a8,_0x482527]=(0x0,u[_0x22946a(0x332)])(null),_0xbbbf48=((_0x326132=(0x0,i[_0x22946a(0x128)])(n[_0x22946a(0x28b)])[_0x22946a(0x264)]('sheets-print.config'))==null?void 0x0:_0x326132['enforceWatermark'])??!0x1;(0x0,u[_0x22946a(0x120)])(()=>{const _0x44d305=_0x22946a;let _0x4c9be0=!0x1;return _0x38470f[_0x44d305(0x15d)](o[_0x44d305(0x398)])[_0x44d305(0x16b)](_0xbf398a=>{const _0x27a7c9=_0x44d305;if(_0x4c9be0)return;let _0x59109e,_0x33ee3e;(_0xbf398a==null?void 0x0:_0xbf398a[_0x27a7c9(0x170)])===o[_0x27a7c9(0x3bf)]['Image']&&_0xbf398a['config'][_0x27a7c9(0x3ac)]&&(_0x59109e=new Image(),_0x59109e[_0x27a7c9(0x27e)]=_0xbf398a['config'][_0x27a7c9(0x3ac)]['url']),(_0xbf398a==null?void 0x0:_0xbf398a[_0x27a7c9(0x170)])===o['IWatermarkTypeEnum'][_0x27a7c9(0x2cb)]&&_0xbf398a!=null&&_0xbf398a[_0x27a7c9(0x2ec)][_0x27a7c9(0x1ba)]&&(_0x33ee3e=_0xbf398a[_0x27a7c9(0x2ec)][_0x27a7c9(0x1ba)]);let _0x41ac89=_0xbf398a?{..._0xbf398a,'user':_0x33ee3e,'image':_0x59109e}:null;_0x482527(_0x41ac89),_0xbbbf48&&_0x23bc99[_0x27a7c9(0x309)]({'watermark':_0x41ac89});}),()=>{_0x4c9be0=!0x0;};},[_0xbbbf48,_0x38470f,_0x23bc99]);let _0x484bc5=_0x3e3cf1[_0x22946a(0x35d)](n[_0x22946a(0x394)][_0x22946a(0x103)]),_0x16c3ef=_0x484bc5[_0x22946a(0x153)]()[_0x22946a(0xcb)](_0x1a9850=>!_0x1a9850['isSheetHidden']()),_0x3c9869=_0x484bc5[_0x22946a(0x1fb)]();if(!_0x3c9869)return console[_0x22946a(0x2dd)](_0x22946a(0x28f)),null;let _0x50dda1=(_0x1d0898,_0x27fd8d)=>{const _0x43ad73=_0x22946a;let _0x480758=Math[_0x43ad73(0x2e1)](0x0,_0x27fd8d||0x0),_0xa2d354=_0x2994e1['marginCustom']||{'top':0x0,'left':0x0,'right':0x0,'bottom':0x0};_0x23bc99[_0x43ad73(0x15e)]({'marginCustom':{..._0xa2d354,[_0x1d0898]:_0x480758}});},_0x4ad3da=_0x3c9869[_0x22946a(0x359)](),_0x5437b9=_0x2994e1[_0x22946a(0x248)]!==_0x22946a(0x187)&&_0x4ad3da[_0x22946a(0x2e3)]<=0x0,_0x56c9f5=_0x2994e1['area']!==_0x22946a(0x187)&&_0x4ad3da[_0x22946a(0x14b)]<=0x0;return(0x0,d[_0x22946a(0x382)])(_0x22946a(0xbd),{'className':(0x0,c['clsx'])('univer-h-full\x20univer-overflow-y-auto',c[_0x22946a(0x3af)]),'children':(0x0,d[_0x22946a(0x2d8)])(_0x22946a(0xbd),{'className':_0x22946a(0x1c7),'children':[(0x0,d[_0x22946a(0x382)])(c[_0x22946a(0x37e)],{'label':_0x20bbcb['t'](_0x22946a(0x156)),'children':(0x0,d[_0x22946a(0x382)])(_0x4790d4,{'className':'univer-w-full','value':''+_0x2994e1[_0x22946a(0x248)],'onChange':_0x4d2ed2=>{const _0x5d440a=_0x22946a;_0x4d2ed2==='Workbook'?_0x23bc99['updateLayoutConfig']({'area':_0x4d2ed2,'subUnitIds':_0x16c3ef['map'](_0x583453=>_0x583453[_0x5d440a(0x2ff)]())}):_0x23bc99[_0x5d440a(0x15e)]({'area':_0x4d2ed2});},'options':[{'label':_0x20bbcb['t'](_0x22946a(0x325)),'value':_0x22946a(0x374)},{'label':_0x20bbcb['t'](_0x22946a(0xf3)),'value':'Workbook'},{'label':_0x20bbcb['t'](_0x22946a(0x1f3)),'value':_0x22946a(0x174)},{'label':_0x20bbcb['t'](_0x22946a(0x297)),'value':_0x22946a(0x2ed)}]})}),_0x2994e1[_0x22946a(0x248)]===_0x22946a(0x187)?(0x0,d[_0x22946a(0x382)])(c[_0x22946a(0x37e)],{'label':_0x20bbcb['t'](_0x22946a(0x129)),'children':(0x0,d['jsx'])(_0x3a07dd,{'overlay':(0x0,d['jsx'])(_0x22946a(0xbd),{'className':(0x0,c['clsx'])(_0x22946a(0xf2),c[_0x22946a(0x3af)]),'children':(0x0,d['jsx'])(c[_0x22946a(0x22d)],{'direction':_0x22946a(0x275),'className':'univer-p-3','value':_0x2994e1[_0x22946a(0x34b)][_0x22946a(0xc1)](_0x429741=>typeof _0x429741==_0x22946a(0x2ae)?_0x429741:_0x429741['id']),'onChange':_0x330681=>{const _0x39a90a=_0x22946a;let _0x548775=new Set(_0x330681);if(_0x548775['size']===0x0)_0x23bc99[_0x39a90a(0x15e)]({'subUnitIds':_0x16c3ef[_0x39a90a(0xc1)](_0x1f64ea=>_0x1f64ea[_0x39a90a(0x2ff)]())});else{let _0x36c2a6=[];_0x16c3ef['forEach'](_0x11008c=>{const _0x2dedda=_0x39a90a;let _0x2dfa04=_0x11008c['getSheetId']();_0x548775[_0x2dedda(0x178)](_0x2dfa04)&&_0x36c2a6[_0x2dedda(0x181)](_0x2dfa04);}),_0x23bc99['updateLayoutConfig']({'subUnitIds':_0x36c2a6});}},'children':_0x16c3ef[_0x22946a(0xc1)](_0x38d686=>(0x0,d[_0x22946a(0x382)])(c['Checkbox'],{'value':_0x38d686[_0x22946a(0x2ff)](),'children':_0x38d686[_0x22946a(0x17a)]()},_0x38d686[_0x22946a(0x2ff)]()))})}),'children':(0x0,d[_0x22946a(0x2d8)])(_0x22946a(0xbd),{'className':(0x0,c[_0x22946a(0x26d)])(_0x22946a(0x232),c[_0x22946a(0x173)]),'children':[(0x0,d['jsx'])('span',{'className':'univer-text-gray-500','children':_0x2994e1[_0x22946a(0x34b)][_0x22946a(0x213)]===_0x16c3ef[_0x22946a(0x213)]||_0x2994e1['subUnitIds']['length']===0x0?_0x20bbcb['t'](_0x22946a(0x2f3)):''+_0x2994e1[_0x22946a(0x34b)]['length']+_0x20bbcb['t']('sheets-print.selection.workbookUnit')}),(0x0,d[_0x22946a(0x382)])(l[_0x22946a(0x1c8)],{})]})})}):null,(0x0,d[_0x22946a(0x382)])(c[_0x22946a(0x37e)],{'label':_0x20bbcb['t'](_0x22946a(0x104)),'children':(0x0,d[_0x22946a(0x382)])(_0x4790d4,{'className':_0x22946a(0x2f5),'value':_0x2994e1[_0x22946a(0x257)],'options':[{'label':_0x20bbcb['t'](_0x22946a(0x29c)),'value':n[_0x22946a(0x2e2)][_0x22946a(0x15b)]},{'label':_0x20bbcb['t']('sheets-print.size.tabloid'),'value':n['PaperType']['Tabloid']},{'label':_0x20bbcb['t'](_0x22946a(0x2ab)),'value':n[_0x22946a(0x2e2)]['Legal']},{'label':_0x20bbcb['t'](_0x22946a(0x115)),'value':n[_0x22946a(0x2e2)][_0x22946a(0x242)]},{'label':_0x20bbcb['t'](_0x22946a(0xdf)),'value':n[_0x22946a(0x2e2)][_0x22946a(0x209)]},{'label':_0x20bbcb['t'](_0x22946a(0x235)),'value':n[_0x22946a(0x2e2)][_0x22946a(0x21e)]},{'label':_0x20bbcb['t']('sheets-print.size.a3'),'value':n[_0x22946a(0x2e2)]['A3']},{'label':_0x20bbcb['t'](_0x22946a(0xfe)),'value':n[_0x22946a(0x2e2)]['A4']},{'label':_0x20bbcb['t'](_0x22946a(0x2b7)),'value':n['PaperType']['A5']},{'label':_0x20bbcb['t'](_0x22946a(0x3b2)),'value':n[_0x22946a(0x2e2)]['B4']},{'label':_0x20bbcb['t'](_0x22946a(0x1c9)),'value':n[_0x22946a(0x2e2)]['B5']}],'onChange':_0x379868=>{const _0x32ed43=_0x22946a;_0x23bc99[_0x32ed43(0x15e)]({'paperSize':_0x379868});}})}),(0x0,d['jsx'])(c[_0x22946a(0x37e)],{'label':_0x20bbcb['t'](_0x22946a(0x1ce)),'children':(0x0,d[_0x22946a(0x382)])(_0x4790d4,{'className':_0x22946a(0x2f5),'value':_0x2994e1[_0x22946a(0x1ea)],'options':[{'label':_0x20bbcb['t'](_0x22946a(0x1b6)),'value':t[_0x22946a(0x34c)][_0x22946a(0x216)]},{'label':_0x20bbcb['t'](_0x22946a(0x3c2)),'value':t[_0x22946a(0x34c)][_0x22946a(0x1b1)]},{'label':_0x20bbcb['t'](_0x22946a(0x211)),'value':t[_0x22946a(0x34c)][_0x22946a(0x1bb)]},{'label':_0x20bbcb['t'](_0x22946a(0x321)),'value':t[_0x22946a(0x34c)][_0x22946a(0x177)]}],'onChange':_0x30ceef=>{const _0x3474d4=_0x22946a;let _0x2aa055=t[_0x3474d4(0x2f8)][_0x2994e1[_0x3474d4(0x1ea)]];_0x23bc99['updateLayoutConfig']({'margin':_0x30ceef,'marginCustom':_0x30ceef===t[_0x3474d4(0x34c)][_0x3474d4(0x177)]?_0x2aa055:t[_0x3474d4(0x2f8)][_0x30ceef]});}})}),_0x2994e1[_0x22946a(0x1ea)]===t['PrintPaperMargin']['Custom']&&(0x0,d[_0x22946a(0x382)])(c[_0x22946a(0x37e)],{'children':(0x0,d[_0x22946a(0x2d8)])(_0x22946a(0xbd),{'className':_0x22946a(0x337),'children':[(0x0,d['jsxs'])('div',{'children':[(0x0,d[_0x22946a(0x382)])(_0x22946a(0x140),{'className':_0x22946a(0x230),'children':_0x20bbcb['t']('sheets-print.margin.top')}),(0x0,d[_0x22946a(0x382)])(c[_0x22946a(0xc5)],{'type':'number','value':String(((_0x5b259d=_0x2994e1['marginCustom'])==null?void 0x0:_0x5b259d[_0x22946a(0x3a2)])||0x0),'onChange':_0x2aa881=>_0x50dda1(_0x22946a(0x3a2),Number(_0x2aa881))})]}),(0x0,d[_0x22946a(0x2d8)])(_0x22946a(0xbd),{'children':[(0x0,d[_0x22946a(0x382)])('label',{'className':'univer-mb-1\x20univer-block\x20univer-text-xs\x20univer-text-gray-500','children':_0x20bbcb['t'](_0x22946a(0x32e))}),(0x0,d[_0x22946a(0x382)])(c[_0x22946a(0xc5)],{'type':_0x22946a(0x13d),'value':String(((_0x1de9b4=_0x2994e1[_0x22946a(0x2d2)])==null?void 0x0:_0x1de9b4[_0x22946a(0x217)])||0x0),'onChange':_0x1d2e0b=>_0x50dda1(_0x22946a(0x217),Number(_0x1d2e0b))})]}),(0x0,d[_0x22946a(0x2d8)])(_0x22946a(0xbd),{'children':[(0x0,d[_0x22946a(0x382)])(_0x22946a(0x140),{'className':'univer-mb-1\x20univer-block\x20univer-text-xs\x20univer-text-gray-500','children':_0x20bbcb['t']('sheets-print.margin.left')}),(0x0,d['jsx'])(c['Input'],{'type':_0x22946a(0x13d),'value':String(((_0x31d8fc=_0x2994e1['marginCustom'])==null?void 0x0:_0x31d8fc[_0x22946a(0x122)])||0x0),'onChange':_0x348693=>_0x50dda1('left',Number(_0x348693))})]}),(0x0,d['jsxs'])(_0x22946a(0xbd),{'children':[(0x0,d[_0x22946a(0x382)])(_0x22946a(0x140),{'className':_0x22946a(0x230),'children':_0x20bbcb['t']('sheets-print.margin.right')}),(0x0,d[_0x22946a(0x382)])(c[_0x22946a(0xc5)],{'type':_0x22946a(0x13d),'value':String(((_0x88e8a8=_0x2994e1[_0x22946a(0x2d2)])==null?void 0x0:_0x88e8a8[_0x22946a(0x150)])||0x0),'onChange':_0x4650fe=>_0x50dda1('right',Number(_0x4650fe))})]})]})}),(0x0,d[_0x22946a(0x382)])(c[_0x22946a(0x37e)],{'label':_0x20bbcb['t'](_0x22946a(0x1a8)),'children':(0x0,d[_0x22946a(0x2d8)])(c[_0x22946a(0x112)],{'value':_0x2994e1[_0x22946a(0x362)],'onChange':_0x5e80f6=>{const _0x4dfdea=_0x22946a;_0x23bc99[_0x4dfdea(0x15e)]({'direction':_0x5e80f6});},'children':[(0x0,d[_0x22946a(0x382)])(c[_0x22946a(0x27a)],{'value':t[_0x22946a(0x36e)][_0x22946a(0x1e3)],'children':_0x20bbcb['t']('sheets-print.orientation.portrait')}),(0x0,d[_0x22946a(0x382)])(c['Radio'],{'value':t[_0x22946a(0x36e)][_0x22946a(0x2c5)],'children':_0x20bbcb['t'](_0x22946a(0x39d))})]})}),(0x0,d[_0x22946a(0x382)])(c['FormLayout'],{'label':_0x20bbcb['t']('sheets-print.scale.title'),'children':(0x0,d[_0x22946a(0x382)])(_0x4790d4,{'className':_0x22946a(0x2f5),'value':_0x2994e1[_0x22946a(0x35c)],'options':[{'label':_0x20bbcb['t']('sheets-print.scale.normal'),'value':t[_0x22946a(0x11e)][_0x22946a(0x1b8)]},{'label':_0x20bbcb['t'](_0x22946a(0x250)),'value':t[_0x22946a(0x11e)][_0x22946a(0x167)]},{'label':_0x20bbcb['t'](_0x22946a(0x25b)),'value':t[_0x22946a(0x11e)][_0x22946a(0x277)]},{'label':_0x20bbcb['t']('sheets-print.scale.fitPage'),'value':t[_0x22946a(0x11e)]['FitPage']}],'onChange':_0x28755f=>{const _0x4badea=_0x22946a;_0x23bc99[_0x4badea(0x15e)]({'scale':_0x28755f});}})}),(0x0,d['jsxs'])(c['FormLayout'],{'label':_0x20bbcb['t']('sheets-print.formatting.title'),'children':[(0x0,d['jsx'])(c[_0x22946a(0x373)],{'checked':_0x523217[_0x22946a(0x265)],'onChange':_0x5ca2d5=>{const _0x59826c=_0x22946a;_0x23bc99[_0x59826c(0x309)]({'gridlines':_0x5ca2d5});},'children':_0x20bbcb['t'](_0x22946a(0x387))}),_0x9a71a8&&!_0xbbbf48?(0x0,d[_0x22946a(0x382)])(_0x22946a(0xbd),{'className':'univer-mt-3','children':(0x0,d[_0x22946a(0x382)])(c['Checkbox'],{'checked':!!_0x523217[_0x22946a(0x1f1)],'onChange':async _0x2003d2=>{const _0x573f6e=_0x22946a;_0x2003d2?_0x23bc99[_0x573f6e(0x309)]({'watermark':_0x9a71a8}):_0x23bc99[_0x573f6e(0x309)]({'watermark':void 0x0});},'children':_0x20bbcb['t'](_0x22946a(0x3ba))})}):null]}),(0x0,d['jsx'])(c[_0x22946a(0x37e)],{'label':_0x20bbcb['t']('sheets-print.align.title'),'children':(0x0,d['jsxs'])(_0x22946a(0xbd),{'className':_0x22946a(0xeb),'children':[(0x0,d[_0x22946a(0x382)])(_0x4790d4,{'className':_0x22946a(0x26c),'value':_0x523217[_0x22946a(0x2a4)],'options':[{'label':_0x20bbcb['t'](_0x22946a(0x2f0)),'value':t[_0x22946a(0x1a2)][_0x22946a(0x287)]},{'label':_0x20bbcb['t']('sheets-print.align.horizontal.start'),'value':t[_0x22946a(0x1a2)]['Start']},{'label':_0x20bbcb['t'](_0x22946a(0x33b)),'value':t[_0x22946a(0x1a2)][_0x22946a(0x379)]}],'onChange':_0xb8f845=>{_0x23bc99['updateRenderConfig']({'hAlign':_0xb8f845});}}),(0x0,d[_0x22946a(0x382)])(_0x4790d4,{'className':_0x22946a(0x26c),'value':_0x523217[_0x22946a(0xc2)],'options':[{'label':_0x20bbcb['t']('sheets-print.align.vertical.start'),'value':t[_0x22946a(0x1a2)][_0x22946a(0x1f8)]},{'label':_0x20bbcb['t']('sheets-print.align.vertical.end'),'value':t['PrintAlign'][_0x22946a(0x379)]},{'label':_0x20bbcb['t'](_0x22946a(0x14e)),'value':t['PrintAlign']['Middle']}],'onChange':_0x3f2b66=>{const _0x925e14=_0x22946a;_0x23bc99[_0x925e14(0x309)]({'vAlign':_0x3f2b66});}})]})}),(0x0,d[_0x22946a(0x2d8)])(c[_0x22946a(0x37e)],{'collapsable':!0x0,'label':_0x20bbcb['t'](_0x22946a(0x27b)),'children':[(0x0,d[_0x22946a(0x2d8)])(c[_0x22946a(0x22d)],{'direction':_0x22946a(0x275),'disabled':_0x523217[_0x22946a(0xfb)],'value':_0x523217['headerFooter'],'onChange':_0x5371fc=>{const _0x1718cf=_0x22946a;_0x23bc99[_0x1718cf(0x309)]({'headerFooter':_0x5371fc});},'children':[(0x0,d[_0x22946a(0x382)])(c[_0x22946a(0x373)],{'value':'PageSize','children':_0x20bbcb['t'](_0x22946a(0x2b1))}),(0x0,d['jsx'])(c[_0x22946a(0x373)],{'value':_0x22946a(0x183),'children':_0x20bbcb['t'](_0x22946a(0x380))}),(0x0,d[_0x22946a(0x382)])(c[_0x22946a(0x373)],{'value':_0x22946a(0x334),'children':_0x20bbcb['t'](_0x22946a(0x169))}),(0x0,d[_0x22946a(0x382)])(c[_0x22946a(0x373)],{'value':_0x22946a(0x19e),'children':_0x20bbcb['t'](_0x22946a(0x2a2))}),(0x0,d[_0x22946a(0x382)])(c[_0x22946a(0x373)],{'value':_0x22946a(0xec),'children':_0x20bbcb['t']('sheets-print.headerFooter.time')})]}),(0x0,d[_0x22946a(0x382)])(c[_0x22946a(0x37e)],{'className':_0x22946a(0x39a),'label':(0x0,d[_0x22946a(0x382)])(c[_0x22946a(0x373)],{'checked':_0x523217['isCustomHeaderFooter'],'onChange':()=>{const _0x1c9858=_0x22946a;_0x23bc99[_0x1c9858(0x309)]({'isCustomHeaderFooter':!_0x523217[_0x1c9858(0xfb)]});},'children':_0x20bbcb['t']('sheets-print.headerFooter.customHeadFooter')}),'children':_0x523217[_0x22946a(0xfb)]?(0x0,d[_0x22946a(0x382)])(c[_0x22946a(0x2a6)],{'className':'univer-my-1\x20univer-p-0','size':'small','variant':_0x22946a(0x1aa),'onClick':()=>{_0x549343();},'children':_0x20bbcb['t']('sheets-print.headerFooter.editCustomHeadFooter')}):null})]}),(0x0,d['jsx'])(c[_0x22946a(0x37e)],{'collapsable':!0x0,'label':_0x20bbcb['t'](_0x22946a(0x355)),'children':(0x0,d[_0x22946a(0x2d8)])(c[_0x22946a(0x22d)],{'direction':_0x22946a(0x275),'value':_0x2994e1[_0x22946a(0x326)],'onChange':_0x3a01e6=>{const _0x1b2566=_0x22946a;_0x23bc99[_0x1b2566(0x15e)]({'freeze':_0x3a01e6});},'children':[(0x0,d[_0x22946a(0x382)])(c[_0x22946a(0x373)],{'disabled':_0x56c9f5,'value':'Row','children':_0x20bbcb['t'](_0x22946a(0x11b))}),(0x0,d[_0x22946a(0x382)])(c[_0x22946a(0x373)],{'disabled':_0x5437b9,'value':_0x22946a(0xe5),'children':_0x20bbcb['t'](_0x22946a(0x30c))})]})}),(0x0,d[_0x22946a(0x2d8)])(c[_0x22946a(0x37e)],{'collapsable':!0x0,'defaultCollapsed':!0x0,'label':_0x20bbcb['t'](_0x22946a(0x283)),'children':[(0x0,d[_0x22946a(0x382)])(c[_0x22946a(0x37e)],{'className':_0x22946a(0x1b9),'label':_0x20bbcb['t'](_0x22946a(0x1e4)),'children':(0x0,d[_0x22946a(0x382)])(c['Input'],{'value':_0x2994e1[_0x22946a(0x2f6)]===0x1/0x0?'':''+_0x2994e1[_0x22946a(0x2f6)],'onChange':_0x26d6f5=>{_0x23bc99['updateLayoutConfig']({'maxRowsEachPage':!_0x26d6f5||Number['isNaN'](Number(_0x26d6f5))?0x1/0x0:Number(_0x26d6f5)});}})}),(0x0,d[_0x22946a(0x382)])(c['FormLayout'],{'label':_0x20bbcb['t'](_0x22946a(0x1f9)),'children':(0x0,d[_0x22946a(0x382)])(c['Input'],{'value':_0x2994e1['maxColumnsEachPage']===0x1/0x0?'':''+_0x2994e1[_0x22946a(0x1d6)],'onChange':_0x148146=>{const _0x185ca2=_0x22946a;_0x23bc99[_0x185ca2(0x15e)]({'maxColumnsEachPage':!_0x148146||Number['isNaN'](Number(_0x148146))?0x1/0x0:Number(_0x148146)});}})})]})]})});});function ke(_0x1d477c){const _0x5569bd=_0x3bd298;return(0x0,d[_0x5569bd(0x382)])(Oe,{..._0x1d477c,'DropdownComponent':c[_0x5569bd(0xd8)],'SelectComponent':c[_0x5569bd(0x376)]});}function Ae(){const _0x47b70e=_0x3bd298;let [_0x13ff91,_0x3661b3]=(0x0,u['useState'])(!0x1),[_0x40606b,_0x1b5198]=(0x0,u[_0x47b70e(0x332)])(!0x1),[_0x10f9b5,_0x47d770]=(0x0,u[_0x47b70e(0x332)])(!0x1),[_0x224b07,_0x1f7c08]=(0x0,u[_0x47b70e(0x332)])(()=>window[_0x47b70e(0x25f)]),_0x488030=(0x0,i[_0x47b70e(0x128)])(k),_0x10f90a=(0x0,i[_0x47b70e(0x128)])(n[_0x47b70e(0x25c)]),_0x37a546=(0x0,i[_0x47b70e(0x3a6)])(_0x488030['layoutInfos$'],[]),_0x326700=(0x0,i[_0x47b70e(0x128)])(b),_0xdf2f4d=(0x0,i[_0x47b70e(0x3a6)])(_0x326700[_0x47b70e(0xdb)],_0x326700[_0x47b70e(0x160)]),_0x41cbf6=(0x0,i[_0x47b70e(0x128)])(n[_0x47b70e(0x36c)]),_0x49117f=(0x0,i[_0x47b70e(0x128)])(n['LocaleService']),_0x2bcf79=(0x0,i['useDependency'])(n[_0x47b70e(0x274)]),_0x5ca59d=(0x0,i[_0x47b70e(0x128)])(n[_0x47b70e(0x28b)]),_0xe21f9d=(0x0,i['useDependency'])(i[_0x47b70e(0x341)]),_0x3b6b65=(0x0,u['useRef'])(null),{ls:_0x240a4a,pbk:_0x4a6f30}=_0x5ca59d['getConfig'](e[_0x47b70e(0x285)])??{},{limit:_0x48dad6,isPro:_0xf71d22}=(0x0,u[_0x47b70e(0x3ab)])(()=>{let {page:_0x5b16ae,isPro:_0xe48fca}=ee(0x3,_0x240a4a,_0x4a6f30);return{'limit':_0x5b16ae,'isPro':_0xe48fca};},[_0x240a4a,_0x4a6f30]),_0x1455fd=we(import(`@univerjs-pro/collaboration-client`).then(_0x3de3f4=>_0x3de3f4['CollaborationController'],()=>void 0x0));(0x0,u['useEffect'])(()=>{const _0x557882=_0x47b70e;let _0x353de5=()=>_0x1f7c08(window[_0x557882(0x25f)]);return window['addEventListener'](_0x557882(0x1d7),_0x353de5),()=>window['removeEventListener'](_0x557882(0x1d7),_0x353de5);},[]),(0x0,u[_0x47b70e(0x120)])(()=>{const _0x48dffa=_0x47b70e;var _0x43e930;if(!_0x1455fd)return;let _0x25b1c0=_0x41cbf6[_0x48dffa(0x35d)](n['UniverInstanceType']['UNIVER_SHEET']);if(!_0x25b1c0)return;let _0x4dd5ef=_0x2bcf79[_0x48dffa(0x24d)](_0x1455fd,n[_0x48dffa(0x302)][_0x48dffa(0xb9)]),_0x386311=_0x4dd5ef==null||(_0x43e930=_0x4dd5ef[_0x48dffa(0x155)](_0x25b1c0[_0x48dffa(0xb5)]()))==null?void 0x0:_0x43e930[_0x48dffa(0x200)]();return()=>_0x386311==null?void 0x0:_0x386311[_0x48dffa(0x3bb)]();},[_0x1455fd,_0x2bcf79,_0x41cbf6]);let _0x2ad6e3=(0x0,u['useMemo'])(()=>oe(_0x37a546)[_0x47b70e(0x233)](0x0,_0x48dad6),[_0x48dad6,_0x37a546]),_0x3786f6=_0x488030[_0x47b70e(0x257)],_0x5e3d30=Math[_0x47b70e(0x111)](0x31a,Math[_0x47b70e(0x2e1)](0x1,_0x224b07-0x20))/0x31a,_0x5b95e7=Math[_0x47b70e(0x149)](_0x5e3d30*(0x31a/_0x3786f6['w'])*0xa)/0xa,[_0xd20426,{wrapperStyle:_0x4c936c,containerProps:_0x42317f}]=(0x0,i['useVirtualList'])(_0x2ad6e3,{'containerTarget':_0x3b6b65,'itemHeight':_0x3786f6['h']*_0x5b95e7+0x1c,'overscan':0x3}),_0x403837=async()=>{await _0x10f90a['executeCommand'](L['id']);},_0x3fb90d=async()=>{const _0x26e8bf=_0x47b70e;_0x47d770(!0x0),_0xe21f9d[_0x26e8bf(0x1b4)]({'content':_0x49117f['t']('sheets-print.header.printing'),'type':c[_0x26e8bf(0xc0)][_0x26e8bf(0x31e)]}),await(0x0,n[_0x26e8bf(0x25a)])(0x12c),await _0x10f90a[_0x26e8bf(0x32a)](R['id']);};return(0x0,d[_0x47b70e(0x2d8)])('div',{'data-u-comp':_0x47b70e(0x18f),'className':_0x47b70e(0xf6),'children':[(0x0,d[_0x47b70e(0x382)])(_0x47b70e(0xcc),{'className':_0x47b70e(0xee),'children':(0x0,d[_0x47b70e(0x2d8)])('span',{'className':'univer-text-sm\x20univer-font-medium','children':[_0x49117f['t'](_0x47b70e(0x1a9)),_0x2ad6e3[_0x47b70e(0x213)],_0x49117f['t'](_0x47b70e(0x20d))]})}),(0x0,d[_0x47b70e(0x382)])(_0x47b70e(0xbd),{'ref':_0x3b6b65,'className':(0x0,c[_0x47b70e(0x26d)])(_0x47b70e(0x29e),c[_0x47b70e(0x3af)]),'aria-busy':_0xdf2f4d,..._0x42317f,'children':_0xdf2f4d?(0x0,d['jsx'])(_0x47b70e(0xbd),{'className':_0x47b70e(0x384),'role':_0x47b70e(0x1d2),'aria-label':_0x49117f['t']('sheets-print.header.printing'),'children':(0x0,d[_0x47b70e(0x382)])(l[_0x47b70e(0xf4)],{'className':_0x47b70e(0x365),'aria-hidden':_0x47b70e(0x25e)})}):(0x0,d[_0x47b70e(0x382)])(_0x47b70e(0xbd),{'style':_0x4c936c,'children':_0xd20426[_0x47b70e(0xc1)](_0x621901=>(0x0,d[_0x47b70e(0x382)])(Ee,{'config':_0x621901[_0x47b70e(0xd4)],'page':_0x621901[_0x47b70e(0xd4)][_0x47b70e(0x391)],'previewScale':_0x5e3d30},_0x621901['data'][_0x47b70e(0x390)]+':'+_0x621901[_0x47b70e(0xd4)]['subUnitId']+':'+_0x621901[_0x47b70e(0xd4)][_0x47b70e(0x391)]+':'+_0x621901[_0x47b70e(0xd4)]['range'][_0x47b70e(0x2ee)]+':'+_0x621901[_0x47b70e(0xd4)][_0x47b70e(0x10a)][_0x47b70e(0x13f)]+':'+_0x621901[_0x47b70e(0xd4)][_0x47b70e(0x10a)]['endRow']+':'+_0x621901[_0x47b70e(0xd4)][_0x47b70e(0x10a)][_0x47b70e(0x2c9)]))})}),!_0xdf2f4d&&!_0xf71d22&&(0x0,d[_0x47b70e(0x382)])('a',{'className':_0x47b70e(0x127),'href':_0x49117f['t'](_0x47b70e(0x2ac)),'target':_0x47b70e(0x12e),'rel':_0x47b70e(0x23c),'children':_0x49117f['t']('sheets-print.limit.page')[_0x47b70e(0x114)]('{limit}',''+_0x48dad6)}),(0x0,d[_0x47b70e(0x2d8)])('footer',{'className':(0x0,c[_0x47b70e(0x26d)])(_0x47b70e(0x238),c[_0x47b70e(0x3c5)]),'children':[(0x0,d[_0x47b70e(0x382)])(c['Button'],{'className':_0x47b70e(0x136),'onClick':_0x403837,'children':_0x49117f['t'](_0x47b70e(0xc3))}),(0x0,d[_0x47b70e(0x382)])(c[_0x47b70e(0x2a6)],{'className':'univer-flex-1','onClick':()=>_0x3661b3(!0x0),'children':_0x49117f['t'](_0x47b70e(0x1c2))}),(0x0,d[_0x47b70e(0x382)])(c[_0x47b70e(0x2a6)],{'className':_0x47b70e(0x136),'variant':_0x47b70e(0x199),'disabled':_0xdf2f4d||_0x10f9b5,'onClick':_0x3fb90d,'children':_0x49117f['t'](_0x47b70e(0x1ac))})]}),(0x0,d['jsx'])(c['MobileDialog'],{'open':_0x13ff91,'title':_0x49117f['t'](_0x47b70e(0x1c2)),'onClose':()=>_0x3661b3(!0x1),'children':(0x0,d[_0x47b70e(0x382)])(ke,{'onShowFooterHeaderEditor':()=>{_0x3661b3(!0x1),_0x1b5198(!0x0);}})}),_0x40606b&&(0x0,d[_0x47b70e(0x382)])(De,{'open':!0x0,'onClose':()=>{_0x1b5198(!0x1),_0x3661b3(!0x0);}})]});}function je(){const _0x487372=_0x3bd298;let _0xf84a59=(0x0,i[_0x487372(0x128)])(b);return(0x0,i['useObservable'])(_0xf84a59[_0x487372(0xb6)],_0xf84a59[_0x487372(0x1a5)])?(0x0,d[_0x487372(0x382)])(Ae,{}):null;}function _0x181a(_0x2ef6e7,_0xb70a65){_0x2ef6e7=_0x2ef6e7-0xb2;const _0x57bb72=_0x57bb();let _0x181aae=_0x57bb72[_0x2ef6e7];return _0x181aae;}let J=class extends n[_0x3bd298(0x1a7)]{constructor(_0x2586df,_0x5ea920,_0x50449e,_0x5dbc5f,_0x5d1dfa,_0x545065,_0x153651,_0x2ac980){const _0x5ddf19=_0x3bd298;super(),this['_printDialogService']=_0x2586df,this[_0x5ddf19(0x1ee)]=_0x5ea920,this[_0x5ddf19(0x255)]=_0x50449e,this[_0x5ddf19(0x311)]=_0x5dbc5f,this[_0x5ddf19(0xe6)]=_0x5d1dfa,this[_0x5ddf19(0xb8)]=_0x545065,this[_0x5ddf19(0x306)]=_0x153651,this[_0x5ddf19(0x24b)]=_0x2ac980,this['_initCommands'](),this['_initUIParts'](),this['_initMenus'](),this[_0x5ddf19(0x1bd)](),this['_initCommandListener']();}['_initCommands'](){const _0x1ad8c1=_0x3bd298;[I,L,R,z]['forEach'](_0x4b5e86=>this[_0x1ad8c1(0x1d1)](this[_0x1ad8c1(0x1ee)]['registerCommand'](_0x4b5e86)));}[_0x3bd298(0x15c)](){const _0x5bf86e=_0x3bd298;this[_0x5bf86e(0x1d1)](this[_0x5bf86e(0x306)]['registerComponent'](i[_0x5bf86e(0x3b1)]['GLOBAL'],()=>(0x0,i[_0x5bf86e(0x18d)])(je,this[_0x5bf86e(0xb8)])));}[_0x3bd298(0x2f1)](){const _0xc933d6=_0x3bd298;this[_0xc933d6(0xe6)][_0xc933d6(0x16d)](Ce);}[_0x3bd298(0x1bd)](){const _0x3c7305=_0x3bd298;this[_0x3c7305(0x1d1)](this[_0x3c7305(0x10e)]['visible$'][_0x3c7305(0x293)](_0x4a3895=>{const _0x2c6110=_0x3c7305;_0x4a3895&&this[_0x2c6110(0x255)][_0x2c6110(0x360)]();}));}[_0x3bd298(0x2ef)](){const _0x1e026a=_0x3bd298;this[_0x1e026a(0x1d1)](this[_0x1e026a(0x1ee)][_0x1e026a(0x215)](_0x151913=>{const _0x266466=_0x1e026a;_0x151913['id']===R['id']&&this[_0x266466(0x311)][_0x266466(0x2bd)](this[_0x266466(0x255)][_0x266466(0x3a8)],this['_sheetPrintManagerService'][_0x266466(0xf7)])[_0x266466(0x27d)](_0x39978d=>this['_logService'][_0x266466(0x2dd)](_0x266466(0x101),_0x266466(0x340),_0x39978d));}));}};function _0x57bb(){const _0x248969=['PRINT_CANVAS_CLASS','_sheetPrintClientService','rowHeightAccumulation','PrintIcon','{limit}','SheetPage','sheetPageTotal','registerShortcut','section','desc','1480364DvuHoR','_viewRowBottom','_initShortcuts','isPrinting','Loading','sheet.operation.confirm-print','_dirty','sheets-print.margin.custom','sheets-print.headerFooter.display.title','SheetsSelectionsService','__root','sheets-print.area.currentSheet','freeze','univer-flex\x20univer-flex-1\x20univer-overflow-hidden','resizeWhenFreezeChange','onafterprint','executeCommand','toStringTag','position','getCurrentLastSelection','sheets-print.margin.bottom','setLineDash','Legal','submit','useState','_spreadsheetObject','WorksheetTitle','CalendarIcon','PageSize','univer-grid\x20univer-grid-cols-2\x20univer-gap-2','PrintPreparationService','WorkbookPrintPermission','_context','sheets-print.align.horizontal.end','getCurrentSelections','PrintGridExtension','univer-my-4\x20univer-text-center','version','Failed\x20to\x20print\x20sheets.','IMessageService','getSheetFeatureLimit','root','replaceLayoutConfig','IconManager','@SheetPage','customRanges','overflowCache','sheets-print.headerFooter.dateA','_sheetsSelectionsSrv','subUnitIds','PrintPaperMargin','syncExecuteCommand','useRef','univer-absolute\x20univer-bottom-4\x20univer-right-4\x20univer-z-[1000]','SHEET_PRINT_PLUGIN','copyForPrinting','SheetSkeletonManagerService','forwardRef','call','sheets-print.freeze.title','setForceDisableGridlines','univer-mx-2\x20univer-my-5','CustomRangeType','getFreeze','sheets-print.headerFooter.display.dateA','open','scale','getCurrentUnitOfType','layoutInfos$','focus','reLayout','SheetPrintCanvasView','direction','IShortcutService','insertText','univer-size-8\x20univer-animate-spin\x20univer-text-gray-500','getDocumentDataModel','beginPath','getCanvas','univer-absolute\x20univer-inset-0\x20univer-z-[100]\x20univer-flex\x20univer-size-full\x20univer-flex-col\x20univer-overflow-hidden\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','getCurrentUser','interceptor','IUniverInstanceService','IPermissionService','PrintDirection','parseInt','disable','markDirty','prototype','Checkbox','CurrentSheet','UniverMobileUIPlugin','MobileSelect','columnWidthAccumulation','PageTotal','End','TimeC','hasPrintFacadePermission','_scene','sheets-print.headerFooter.display.sheetPageTotal','FormLayout','render','sheets-print.headerFooter.workbook','rgba(0,0,0,0.3)','jsx','getLicenseInfo','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center','15dfwPAu','DateD','sheets-print.formatting.skeleton','@DateE','getRenderUnitById','@TimeA','valid','isLocalCheck','editOp','deepClone','text','unitId','page','@WorksheetTitle','ConfirmSheetPrintOperation','UniverInstanceType','_calculateSheetPages','_previewScale','value','UNIVER_WATERMARK_STORAGE_KEY','stroke','univer-mt-3','prepare','_registerComponents','sheets-print.orientation.landscape','_iconManager','fetchThroughInterceptors','from','with','top','touchDependencies','sheets-print.header.printing','bottomLeft','useObservable','whenSheetEditorFocused','layoutInfos','_renderConfig','sheets-print.grid.closeAndHide','useMemo','image','className','fontBoundingBoxDescent','scrollbarClassName','setPreviewScale','BuiltInUIPart','sheets-print.size.b4','CommandType','_effects','CollaborationController','object','updateScrollVal','@DateC','height','sheets-print.formatting.waterMark','dispose','sheets-print.headerFooter.placeholder','1.0.3','univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-z-[1010]\x20univer-flex\x20univer-justify-center','IWatermarkTypeEnum','defineProperty','getCurrentRangeDisable$','sheets-print.margin.narrow','split','MobileDialog','borderTopClassName','scaleY','Success','_calculate','FitPage','createIdentifier','getUnitId','visible$','image/png','_injector','OPTIONAL','VIEW_COLUMN_RIGHT','_viewMain','waitForReady','div','Module','SheetPrintOpenOperation','MessageType','map','vAlign','sheets-print.header.cancel','sheet.operation.close-print-grid-sidebar','Input','sheets-print.menu','_viewColumnRight','getPermissionPoint','PAGE_SIZE','_config','filter','header','_sheetPrintInterceptorService','_printViewDisposable','SheetPrintClientService','create','_univerInstanceService','renderOnReady','_print','data','_layoutConfig$','__mode','setPreparing','MobileDropdown','_printGridService','message','preparing$','sheets-print.headerFooter.timeB','sheets-print.margin.left','SheetsPrintMenuSchema','sheets-print.size.executive','@DateA','symbol','onbeforeprint','sheets-print.headerFooter.display.timeC','startY','Column','_menuManagerService','_resourceCollector','Plugin','IPrintPreparationService','packageName','univer-flex\x20univer-gap-2','Time','univer-relative\x20univer-inline-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-1\x20univer-rounded\x20univer-bg-gray-0\x20univer-px-2\x20univer-py-1\x20hover:univer-bg-gray-200\x20dark:!univer-bg-gray-900\x20hover:dark:!univer-bg-gray-700','univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-bg-gray-0\x20univer-px-4\x20dark:!univer-bg-gray-900','paperMargin','sheets-print.margin.right','toLocaleTimeString','univer-h-[200px]\x20univer-w-[--radix-popper-anchor-width]\x20univer-overflow-y-auto','sheets-print.area.workbook','LoadingMultiIcon','UniverSheetsPrintMobileUIPlugin','univer-absolute\x20univer-inset-0\x20univer-z-[100]\x20univer-flex\x20univer-size-full\x20univer-flex-col\x20univer-bg-gray-100\x20dark:!univer-bg-gray-900','renderConfig','time','univer-relative\x20univer-box-border\x20univer-flex\x20univer-flex-1\x20univer-flex-col\x20univer-overflow-hidden','_initCommands','isCustomHeaderFooter','makeForceDirty','_initMutationListener','sheets-print.size.a4','Inject','Tabloid','[MobileSheetPrintController]','UniverSheetsPlugin','UNIVER_SHEET','sheets-print.size.title','UNIVER_SHEET_PERMISSION_ALERT_DIALOG_ID','onReady','_calculateCurrentSelectionRange','getValue','IUIPartsService','range','register','@TimeC','__RowHeaderPrint__','_printDialogService','layoutConfig$','univer-grid\x20univer-gap-2','min','RadioGroup','univer-absolute\x20univer-left-0\x20univer-z-[1000]\x20univer-min-w-[200px]\x20univer-px-0\x20univer-py-2','replace','sheets-print.size.statement','IDialogService','univer-flex\x20univer-w-full','univer-size-3\x20univer-text-gray-900\x20univer-transition-transform\x20dark:!univer-text-gray-0','_visible$','parentElement','sheets-print.freeze.row','RangeProtectionPermissionViewPoint','_calculateSheetRangeById','PrintScale','fixLineWidthByScale','useEffect','replaceAll','left','isFeatureAuthorizedWithinTime','write','close','dataStream','univer-block\x20univer-shrink-0\x20univer-px-4\x20univer-py-2\x20univer-text-center\x20univer-text-xs','useDependency','sheets-print.selection.title','isSheetHidden','name','TimeD','sheets-print.headerFooter.display.sheetPage','_blank','uKey','_accessor','bottomCenter','registerRenderModule','100%','sheets-print.headerFooter.display.timeD','JSONX','univer-flex-1','ReleaseType','getInterceptPoints','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-gray-0\x20univer-shadow\x20dark:!univer-bg-gray-900','default','univer-relative\x20univer-mx-2\x20univer-my-0\x20univer-flex-grow','#E5E5E5','number','sheet-permission-user-dialog','startColumn','label','all','sheets-print.headerFooter.display.page','ISheetPrintManagerService','lineTo','UniverSheetsMobileUIPlugin','MenuItemType','topLeft','DownloadImageIcon','round','LocaleService','ySplit','SheetPrintInterceptorService','menu','sheets-print.align.vertical.middle','find','right','sheets-print.headerFooter.dateE','lineWidth','getSheets','sheetPage','getCollabEntity','sheets-print.area.title','SheetExtension','343ADFCJi','removeChild','@TotalPage','Letter','_initUIParts','getItem','updateLayoutConfig','current','preparing','_printPreparationService','isNaN','_key','_resizeViewport','UNIVER_SHEET_PERMISSION_ALERT_DIALOG','getCellMatrixPrintRange','FitWidth','resetCache','sheets-print.headerFooter.sheet','BUTTON','then','subscribeEvent','mergeMenu','univer-pro.sheet-print-manager.service','pageSize','type','getEditorId','getSheetBySheetId','borderClassName','CurrentSelection','Select','http://www.w3.org/2000/svg','Custom','has','sheets-print.headerFooter.timeD','getName','properties','58296lxphVS','22WoKBgS','restore','startIndex','defaultHeaderFooter','push','clipboard','WorkbookTitle','mount','floor','sheets-print.headerFooter.dateD','Workbook','registerDependencies','date','registerCommand','setPrintViewDisposable','sheet.operation.screenshot','connectInjector','measureText','mobile-sheet-print-view','@[]@','__SpreadsheetPrintRender__','Dropdown','sheets-print.size.a3','getRangeImage','_unitId','ILogService','moveTo','univer-text-base\x20univer-text-gray-900\x20dark:!univer-text-gray-0','primary','_renderHeaderFooterByCustom','sheets-print.headerFooter.submit','makeDirty','UniverSheetsPrintPlugin','Date','_layoutInfos','endIndex','getCursorPosition','PrintAlign','RichTextEditor','devicePixelRatio','visible','DocSettingIcon','Disposable','sheets-print.orientation.title','sheets-print.header.total','link','endRow','sheets-print.header.next','asObservable','PRINT_CONTAINER_CLASS','subUnitId','TimeB','Narrow','body','debounceTime','show','sheets-print.margin.top','sheets-print.margin.normal','merge','Origin','univer-mb-2','userInfo','Wide','OTHERS','_initConfigChangeListener','unier-w-[761px]\x20univer-mx-auto\x20univer-my-4\x20univer-box-border\x20univer-flex\x20univer-flex-col\x20univer-items-center\x20univer-bg-gray-0\x20univer-px-6\x20univer-py-7\x20univer-shadow-lg\x20dark:!univer-bg-gray-900','sheets-print.headerFooter.display.pageTotal','univer-rounded-md\x20univer-bg-gray-0\x20univer-p-1\x20univer-shadow\x20dark:!univer-bg-gray-900','sheets-print.headerFooter.right','sheets-print.title','ComponentManager','createElement','Scene','mainComponent','univer-p-4','MoreDownIcon','sheets-print.size.b5','borderBottomClassName','addObjects','_root','next','sheets-print.margin.title','univer-pro.sheet-print-dialog.service','_renderHeaderFooter','disposeWithMe','status','strokeStyle','sheets-print.screenshot.title','_renderConfig$','maxColumnsEachPage','resize','worksheet','params','sheets-print.headerFooter.display.dateD','wait','warn','PrintArea','DateA','toDataURL','Viewport','setConfig','UniverLicensePlugin','Portrait','sheets-print.area.maxRowsEachPage','PRINTING_RANGE','_viewTop','overflow','_configService','_addComponent','margin','delete','engine','forValue','_commandService','ClockIcon','univer-flex\x20univer-size-5\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-900\x20dark:!univer-text-gray-0','watermark','RichTextBuilder','sheets-print.area.currentSelection','_initRenderer','SheetIcon','_viewLeft','hidden','Start','sheets-print.area.maxColumnsEachPage','univer-relative\x20univer-mx-auto\x20univer-mt-7\x20univer-flex-none\x20univer-bg-gray-0\x20univer-shadow-lg\x20dark:!univer-bg-gray-900','getActiveSheet','Row','topRight','RibbonStartGroup','_skeleton','pauseCollaboration','sheets-print.headerFooter.display.timeA','#1890ff','_isPreview','hide','VIEW_MAIN','format','_registerIcons','10030840WkmJRY','Executive','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_targetRender','IEditorService','sheets-print.header.pages','getSelectionsOfWorksheet','rowHeaderWidth','sheets-print.headerFooter.display.dateB','sheets-print.margin.wide','sheets-print.headerFooter.timeA','length','getWorkbookSelections','onCommandExecuted','Normal','bottom','endX','onTransformChange$','sheets-print.headerFooter.display.sheet','_messageService','disposePrintView','TimeA','Folio','clearCanvas','pluginName','getContext','univer-flex\x20univer-h-16\x20univer-items-center\x20univer-justify-between\x20univer-bg-gray-0\x20univer-px-4\x20dark:!univer-bg-gray-900','SpreadsheetRowHeader','UniverRenderEnginePlugin','_drawPrintGrid','univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','12px\x20','getInstance','_renderManagerService','VIEW_ROW_BOTTOM','function','replaceRenderConfig','CheckboxGroup','@univerjs-pro/sheets-print','DateC','univer-mb-1\x20univer-block\x20univer-text-xs\x20univer-text-gray-500','insertRichText','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-gray-0\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-gray-0','slice','univer-space-y-2\x20univer-border-t\x20univer-pb-4','sheets-print.size.folio','bottomRight','@TimeB','univer-flex\x20univer-shrink-0\x20univer-gap-3\x20univer-bg-gray-0\x20univer-p-4\x20dark:!univer-bg-gray-900','SUBITEMS','layoutConfig','setSelectionRanges','noreferrer\x20noopener','add','__ColumnHeaderPrint__','getData','getUnit','memo','Statement','DEFAULT_FONTFACE_PLANE','sheets-print.headerFooter.dateC','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','_componentManager','IncreaseIcon','area','WorkbookCopyPermission','Printing','_logService','DisposableCollection','get','MAIN_AREA','BehaviorSubject','sheets-print.scale.fitWidth','@Page','sheet.operation.cancel-print','useVirtualList','_subUnitId','_sheetPrintManagerService','DependentOn','paperSize','univer-flex-1\x20univer-overflow-y-auto','localeService','awaitTime','sheets-print.scale.fitHeight','ICommandService','workbook','true','innerWidth','removeAll','renderWatermark','DateE','renderConfig$','getConfig','gridlines','_container','fillText','None','toPrimitive','values','_totalWidth','!univer-min-w-0\x20univer-flex-1','clsx','headerFooterSetting','timeValid','getImage','style','set','@DateD','Injector','vertical','Tools','FitHeight','appendChild','@TotalSheetPage','Radio','sheets-print.headerFooter.title','163895unxmbI','catch','src','univer-flex\x20univer-h-full\x20univer-flex-col','_viewLeftTop','_addViewport','clearMemory','sheets-print.area.limit','fontBoundingBoxAscent','LS_CONFIG_KEY','includes','Middle','VIEW_MAIN_TOP','flat','@WorkbookTitle','IConfigService','now','serialize','getExtensionsByOrder','No\x20active\x20sheet\x20found','sheets-print.headerFooter.editCustomHeadFooter','relative','_renderMainScene','subscribe','VIEW_MAIN_LEFT_TOP','sheets-print.headerFooter.dateB','_printManagerService','sheets-print.area.allSelection','width','selection','SheetPageTotal','sheet.operation.print-open','sheets-print.size.letter','Engine','univer-flex-1\x20univer-overflow-auto','1016928WEyEGY','complete','save','sheets-print.headerFooter.date','VIEW_MAIN_LEFT','hAlign','forEach','Button','0\x200\x20','KeyCode','toLocaleDateString','isPro','sheets-print.size.legal','sheets-print.limit.link','_calculatePrintScale','string','BuildTextUtils','sheet.operation.print','sheets-print.headerFooter.page','PrintHeaderFooter','font','printing','CancelSheetPrintOperation','GLOBAL','sheets-print.size.a5','getNoMergeCellWithCoordByIndex','enable','OPERATION','ISidebarService','getMenuHiddenObservable','print','SHEET_VIEWPORT_KEY','5418784LFBqzE','scaleX','updateConfig','topCenter','_layoutConfig','iterator','Landscape','univer-mr-2','sheets-print.headerFooter.display.timeB','univer-ml-2\x20univer-text-lg\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-gray-0','endColumn','univer-text-sm\x20univer-font-medium','UserInfo','PRINTING_COMPONENT_COLLECT','NO_COMMERCIAL','draw','IMenuManagerService','decorate','sheet.menu.print','marginCustom','ensureSkeleton','No\x20workbook\x20found','pages','getOwnPropertyDescriptor','sheets-print.headerFooter.center','jsxs','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','container','_getTranslateOffset','_layoutInfos$','error','getPrecisionScale','generateRandomId','useEvent','max','PaperType','xSplit','sheets-print.size.tabloid','13px\x20','312178GWLMdv','columnHeaderHeight','univer-flex\x20univer-flex-1\x20univer-flex-col\x20univer-overflow-hidden','CTRL_COMMAND','_engine','_calculateSubSheetRange','config','AllSelection','startRow','_initCommandListener','sheets-print.align.horizontal.middle','_initMenus','_calculateFinalRange','sheets-print.selection.allWorkbook','reset','univer-w-full','maxRowsEachPage','IRenderManagerService','PaperMarginMap','endY','sheets-print.headerFooter.left','PRINTING_DOM_COLLECT','WorksheetCopyPermission','startX','have\x20not\x20permission','getSheetId','@TimeD','6UBNcQW','Quantity','@DateB','_watermarkConfig','_shortcutService','_uiPartsService','sheets-print.headerFooter.footer','includeHeaderDimensions','updateRenderConfig','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-gray-0\x20univer-px-4\x20dark:!univer-bg-gray-900','sheets-print.screenshot.success','sheets-print.freeze.column','_totalHeight','sheets-print.permission.printErr','sheets-print.limit.page'];_0x57bb=function(){return _0x248969;};return _0x57bb();}J=O([D(0x0,b),D(0x1,n[_0x3bd298(0x25c)]),D(0x2,k),D(0x3,(0x0,n[_0x3bd298(0xff)])(U)),D(0x4,i[_0x3bd298(0x2cf)]),D(0x5,(0x0,n['Inject'])(n[_0x3bd298(0x274)])),D(0x6,i[_0x3bd298(0x109)]),D(0x7,n[_0x3bd298(0x196)])],J);let Y=class extends n['Plugin']{constructor(_0x412b74=K,_0x2f380c,_0x44e5b3){const _0x17ccd7=_0x3bd298;super(),this[_0x17ccd7(0xca)]=_0x412b74,this['_injector']=_0x2f380c,this[_0x17ccd7(0x1e8)]=_0x44e5b3;let {menu:_0x620940,..._0x211763}=(0x0,n[_0x17ccd7(0x1b7)])({},K,this['_config']);_0x620940&&this[_0x17ccd7(0x1e8)][_0x17ccd7(0x1e1)](_0x17ccd7(0x14d),_0x620940,{'merge':!0x0}),this[_0x17ccd7(0x1e8)][_0x17ccd7(0x1e1)](Se,_0x211763);}[_0x3bd298(0x106)](){const _0x5dd112=_0x3bd298;this[_0x5dd112(0xb8)][_0x5dd112(0x178)](t['IPrintPreparationService'])||this['_injector'][_0x5dd112(0x23d)]([t[_0x5dd112(0xe9)],{'useClass':t['PrintPreparationService']}]),(0x0,n[_0x5dd112(0x188)])(this[_0x5dd112(0xb8)],[[k,{'useClass':N}],[b,{'useClass':x}],[U],[q],[J]]),(0x0,n[_0x5dd112(0x3a3)])(this[_0x5dd112(0xb8)],[[q],[J]]);}};y(Y,_0x3bd298(0x220),xe),y(Y,_0x3bd298(0xea),ye),y(Y,_0x3bd298(0x33f),be),y(Y,_0x3bd298(0x170),n[_0x3bd298(0x394)][_0x3bd298(0x103)]),Y=O([(0x0,n[_0x3bd298(0x256)])(e[_0x3bd298(0x1e2)],o[_0x3bd298(0x224)],r[_0x3bd298(0x102)],s[_0x3bd298(0x145)],i[_0x3bd298(0x375)]),D(0x1,(0x0,n[_0x3bd298(0xff)])(n[_0x3bd298(0x274)])),D(0x2,n[_0x3bd298(0x28b)])],Y);const Me=(0x0,u[_0x3bd298(0x241)])(function(){const _0x479e72=_0x3bd298;var _0x388f77,_0x1b3a4a,_0x56c6dc,_0x2fbe2f;let _0x34f813=(0x0,i[_0x479e72(0x128)])(k),_0x12a115=(0x0,i[_0x479e72(0x128)])(n['ICommandService']),_0x25b6e5=(0x0,i[_0x479e72(0x3a6)])(_0x34f813[_0x479e72(0x10f)],_0x34f813[_0x479e72(0x23a)]),_0x261064=(0x0,i[_0x479e72(0x128)])(n[_0x479e72(0x14a)]),_0x37024a=(0x0,i[_0x479e72(0x128)])(n[_0x479e72(0x36c)])[_0x479e72(0x35d)](n[_0x479e72(0x394)][_0x479e72(0x103)]);if(!_0x37024a)return console[_0x479e72(0x2dd)](_0x479e72(0x2d4)),null;let _0x54c01a=_0x37024a[_0x479e72(0x1fb)]();if(!_0x54c01a)return console['error'](_0x479e72(0x28f)),null;let _0x45c3ee=(_0x5d9951,_0x57b1fa)=>{const _0x50f1d2=_0x479e72;let _0x5a1bd6=Math['max'](0x0,_0x57b1fa||0x0),_0x185a99=_0x25b6e5[_0x50f1d2(0x2d2)]||{'top':0x0,'left':0x0,'right':0x0,'bottom':0x0};_0x34f813[_0x50f1d2(0x15e)]({'marginCustom':{..._0x185a99,[_0x5d9951]:_0x5a1bd6}});},_0x295604=_0x54c01a[_0x479e72(0x359)](),_0x53b97c=_0x295604[_0x479e72(0x2e3)]<=0x0,_0x5860be=_0x295604[_0x479e72(0x14b)]<=0x0,_0x52f069=()=>{const _0xe1058c=_0x479e72;_0x12a115[_0xe1058c(0x32a)](fe['id']);};return(0x0,d[_0x479e72(0x2d8)])(_0x479e72(0xbd),{'className':(0x0,c[_0x479e72(0x26d)])(_0x479e72(0x27f),c[_0x479e72(0x3af)]),'children':[(0x0,d['jsxs'])('div',{'className':_0x479e72(0x258),'children':[(0x0,d[_0x479e72(0x382)])(c['FormLayout'],{'label':_0x261064['t'](_0x479e72(0x156)),'children':(0x0,d[_0x479e72(0x382)])(c[_0x479e72(0x175)],{'className':_0x479e72(0x2f5),'value':''+_0x25b6e5[_0x479e72(0x248)],'onChange':_0x22e50d=>{const _0x433f10=_0x479e72;_0x34f813[_0x433f10(0x15e)]({'area':_0x22e50d});},'options':[{'label':_0x261064['t'](_0x479e72(0x325)),'value':_0x479e72(0x374)},{'label':_0x261064['t'](_0x479e72(0x1f3)),'value':_0x479e72(0x174)}]})}),(0x0,d['jsx'])(c[_0x479e72(0x37e)],{'label':_0x261064['t'](_0x479e72(0x104)),'children':(0x0,d['jsx'])(c['Select'],{'className':_0x479e72(0x2f5),'value':_0x25b6e5[_0x479e72(0x257)],'options':[{'label':_0x261064['t'](_0x479e72(0x29c)),'value':n[_0x479e72(0x2e2)][_0x479e72(0x15b)]},{'label':_0x261064['t'](_0x479e72(0x2e4)),'value':n[_0x479e72(0x2e2)][_0x479e72(0x100)]},{'label':_0x261064['t']('sheets-print.size.legal'),'value':n[_0x479e72(0x2e2)][_0x479e72(0x330)]},{'label':_0x261064['t'](_0x479e72(0x115)),'value':n[_0x479e72(0x2e2)]['Statement']},{'label':_0x261064['t'](_0x479e72(0xdf)),'value':n[_0x479e72(0x2e2)][_0x479e72(0x209)]},{'label':_0x261064['t'](_0x479e72(0x235)),'value':n[_0x479e72(0x2e2)][_0x479e72(0x21e)]},{'label':_0x261064['t'](_0x479e72(0x193)),'value':n['PaperType']['A3']},{'label':_0x261064['t'](_0x479e72(0xfe)),'value':n['PaperType']['A4']},{'label':_0x261064['t']('sheets-print.size.a5'),'value':n[_0x479e72(0x2e2)]['A5']},{'label':_0x261064['t'](_0x479e72(0x3b2)),'value':n[_0x479e72(0x2e2)]['B4']},{'label':_0x261064['t'](_0x479e72(0x1c9)),'value':n[_0x479e72(0x2e2)]['B5']}],'onChange':_0x8d4ae1=>{const _0x30b885=_0x479e72;_0x34f813[_0x30b885(0x15e)]({'paperSize':_0x8d4ae1});}})}),(0x0,d[_0x479e72(0x382)])(c[_0x479e72(0x37e)],{'label':_0x261064['t'](_0x479e72(0x1ce)),'children':(0x0,d[_0x479e72(0x382)])(c[_0x479e72(0x175)],{'className':_0x479e72(0x2f5),'value':_0x25b6e5[_0x479e72(0x1ea)],'options':[{'label':_0x261064['t'](_0x479e72(0x1b6)),'value':t['PrintPaperMargin'][_0x479e72(0x216)]},{'label':_0x261064['t'](_0x479e72(0x3c2)),'value':t[_0x479e72(0x34c)][_0x479e72(0x1b1)]},{'label':_0x261064['t']('sheets-print.margin.wide'),'value':t[_0x479e72(0x34c)]['Wide']},{'label':_0x261064['t'](_0x479e72(0x321)),'value':t['PrintPaperMargin'][_0x479e72(0x177)]}],'onChange':_0x28ab7d=>{const _0x41f7b8=_0x479e72;let _0x3b0d41=t[_0x41f7b8(0x2f8)][_0x25b6e5['margin']];_0x34f813[_0x41f7b8(0x15e)]({'margin':_0x28ab7d,'marginCustom':_0x28ab7d===t[_0x41f7b8(0x34c)][_0x41f7b8(0x177)]?_0x3b0d41:t[_0x41f7b8(0x2f8)][_0x28ab7d]});}})}),_0x25b6e5[_0x479e72(0x1ea)]===t[_0x479e72(0x34c)]['Custom']&&(0x0,d[_0x479e72(0x382)])(c[_0x479e72(0x37e)],{'children':(0x0,d[_0x479e72(0x2d8)])('div',{'className':_0x479e72(0x337),'children':[(0x0,d['jsxs'])(_0x479e72(0xbd),{'children':[(0x0,d[_0x479e72(0x382)])('label',{'className':_0x479e72(0x230),'children':_0x261064['t'](_0x479e72(0x1b5))}),(0x0,d[_0x479e72(0x382)])(c['Input'],{'type':_0x479e72(0x13d),'value':String(((_0x388f77=_0x25b6e5['marginCustom'])==null?void 0x0:_0x388f77['top'])||0x0),'onChange':_0x20a1cf=>_0x45c3ee(_0x479e72(0x3a2),Number(_0x20a1cf))})]}),(0x0,d[_0x479e72(0x2d8)])(_0x479e72(0xbd),{'children':[(0x0,d['jsx'])(_0x479e72(0x140),{'className':_0x479e72(0x230),'children':_0x261064['t'](_0x479e72(0x32e))}),(0x0,d[_0x479e72(0x382)])(c['Input'],{'type':_0x479e72(0x13d),'value':String(((_0x1b3a4a=_0x25b6e5[_0x479e72(0x2d2)])==null?void 0x0:_0x1b3a4a[_0x479e72(0x217)])||0x0),'onChange':_0xd0dc45=>_0x45c3ee(_0x479e72(0x217),Number(_0xd0dc45))})]}),(0x0,d['jsxs'])(_0x479e72(0xbd),{'children':[(0x0,d['jsx'])(_0x479e72(0x140),{'className':_0x479e72(0x230),'children':_0x261064['t'](_0x479e72(0xdd))}),(0x0,d['jsx'])(c[_0x479e72(0xc5)],{'type':'number','value':String(((_0x56c6dc=_0x25b6e5[_0x479e72(0x2d2)])==null?void 0x0:_0x56c6dc[_0x479e72(0x122)])||0x0),'onChange':_0x1952ca=>_0x45c3ee(_0x479e72(0x122),Number(_0x1952ca))})]}),(0x0,d[_0x479e72(0x2d8)])('div',{'children':[(0x0,d[_0x479e72(0x382)])('label',{'className':'univer-mb-1\x20univer-block\x20univer-text-xs\x20univer-text-gray-500','children':_0x261064['t'](_0x479e72(0xf0))}),(0x0,d[_0x479e72(0x382)])(c[_0x479e72(0xc5)],{'type':_0x479e72(0x13d),'value':String(((_0x2fbe2f=_0x25b6e5[_0x479e72(0x2d2)])==null?void 0x0:_0x2fbe2f[_0x479e72(0x150)])||0x0),'onChange':_0x5a50fd=>_0x45c3ee(_0x479e72(0x150),Number(_0x5a50fd))})]})]})}),(0x0,d[_0x479e72(0x382)])(c['FormLayout'],{'label':_0x261064['t'](_0x479e72(0x1a8)),'children':(0x0,d['jsxs'])(c['RadioGroup'],{'value':_0x25b6e5['direction'],'onChange':_0x328758=>{_0x34f813['updateLayoutConfig']({'direction':_0x328758});},'children':[(0x0,d[_0x479e72(0x382)])(c[_0x479e72(0x27a)],{'value':t['PrintDirection'][_0x479e72(0x1e3)],'children':_0x261064['t']('sheets-print.orientation.portrait')}),(0x0,d[_0x479e72(0x382)])(c[_0x479e72(0x27a)],{'value':t[_0x479e72(0x36e)]['Landscape'],'children':_0x261064['t'](_0x479e72(0x39d))})]})}),(0x0,d[_0x479e72(0x382)])(c[_0x479e72(0x37e)],{'collapsable':!0x0,'label':_0x261064['t'](_0x479e72(0x355)),'children':(0x0,d[_0x479e72(0x2d8)])(c[_0x479e72(0x22d)],{'direction':_0x479e72(0x275),'value':_0x25b6e5[_0x479e72(0x326)],'onChange':_0x43b3c4=>{const _0x423505=_0x479e72;_0x34f813[_0x423505(0x15e)]({'freeze':_0x43b3c4});},'children':[(0x0,d[_0x479e72(0x382)])(c[_0x479e72(0x373)],{'disabled':_0x5860be,'value':'Row','children':_0x261064['t']('sheets-print.freeze.row')}),(0x0,d[_0x479e72(0x382)])(c[_0x479e72(0x373)],{'disabled':_0x53b97c,'value':_0x479e72(0xe5),'children':_0x261064['t'](_0x479e72(0x30c))})]})}),(0x0,d['jsxs'])(c['FormLayout'],{'collapsable':!0x0,'defaultCollapsed':!0x0,'label':_0x261064['t'](_0x479e72(0x283)),'children':[(0x0,d[_0x479e72(0x382)])(c[_0x479e72(0x37e)],{'className':_0x479e72(0x1b9),'label':_0x261064['t'](_0x479e72(0x1e4)),'children':(0x0,d[_0x479e72(0x382)])(c[_0x479e72(0xc5)],{'value':_0x25b6e5['maxRowsEachPage']===0x1/0x0?'':''+_0x25b6e5['maxRowsEachPage'],'onChange':_0xce4ce6=>{const _0x6cbe33=_0x479e72;_0x34f813[_0x6cbe33(0x15e)]({'maxRowsEachPage':!_0xce4ce6||Number[_0x6cbe33(0x162)](Number(_0xce4ce6))?0x1/0x0:Number(_0xce4ce6)});}})}),(0x0,d[_0x479e72(0x382)])(c[_0x479e72(0x37e)],{'label':_0x261064['t'](_0x479e72(0x1f9)),'children':(0x0,d['jsx'])(c['Input'],{'value':_0x25b6e5[_0x479e72(0x1d6)]===0x1/0x0?'':''+_0x25b6e5[_0x479e72(0x1d6)],'onChange':_0x1cb65b=>{const _0x5f58ab=_0x479e72;_0x34f813[_0x5f58ab(0x15e)]({'maxColumnsEachPage':!_0x1cb65b||Number[_0x5f58ab(0x162)](Number(_0x1cb65b))?0x1/0x0:Number(_0x1cb65b)});}})})]})]}),(0x0,d[_0x479e72(0x2d8)])(_0x479e72(0xbd),{'className':_0x479e72(0x234),'children':[(0x0,d[_0x479e72(0x382)])(c[_0x479e72(0x2a6)],{'type':_0x479e72(0x331),'variant':_0x479e72(0x199),'className':_0x479e72(0x2f5),'onClick':()=>{const _0x37e2a4=_0x479e72;_0x12a115[_0x37e2a4(0x32a)](I['id']),_0x52f069();},'children':_0x261064['t']('sheets-print.menu')}),(0x0,d[_0x479e72(0x382)])(c[_0x479e72(0x2a6)],{'type':'button','className':_0x479e72(0x2f5),'onClick':_0x52f069,'children':_0x261064['t'](_0x479e72(0x3aa))})]})]});});let X=class extends n[_0x3bd298(0x1a7)]{constructor(_0x17100d,_0x431e54){const _0xe1a39f=_0x3bd298;super(),this[_0xe1a39f(0x246)]=_0x17100d,this[_0xe1a39f(0x39e)]=_0x431e54,this[_0xe1a39f(0x207)](),this[_0xe1a39f(0x39c)]();}[_0x3bd298(0x207)](){const _0x571a74=_0x3bd298;this[_0x571a74(0x1d1)](this[_0x571a74(0x39e)]['register']({'DocSettingIcon':l[_0x571a74(0x1a6)],'PrintIcon':l[_0x571a74(0x313)]}));}[_0x3bd298(0x39c)](){const _0x1476ac=_0x3bd298;this['_componentManager'][_0x1476ac(0x10b)](de,Me);}};X=O([D(0x0,(0x0,n[_0x3bd298(0xff)])(i[_0x3bd298(0x1c3)])),D(0x1,(0x0,n['Inject'])(i[_0x3bd298(0x345)]))],X);const Ne=[0x6,0x4];var Pe=class extends o[_0x3bd298(0x157)]{constructor(_0x266962,_0x42ceb9){const _0x46388b=_0x3bd298;super(),this[_0x46388b(0xd9)]=_0x266962,this['_printManagerService']=_0x42ceb9,y(this,_0x46388b(0x12f),_0x46388b(0x33d)),y(this,'Z_INDEX',0x3d);}[_0x3bd298(0x2ce)](_0x577f4e,_0x449126,_0x414b25,_0x47e5ae){const _0x54ebc0=_0x3bd298;if(_0x577f4e[_0x54ebc0(0xd6)]===_0x54ebc0(0x2b4)||!this[_0x54ebc0(0xd9)][_0x54ebc0(0x1a5)])return;let {worksheet:_0x55e954}=_0x414b25;if(!_0x55e954)return;let _0x50923a=this[_0x54ebc0(0x296)]['layoutInfos'],_0x1a6b77=_0x55e954[_0x54ebc0(0xb5)](),_0x228746=_0x55e954['getSheetId'](),_0x1d1159=_0x50923a[_0x54ebc0(0x14f)](_0x1654c3=>_0x1654c3[_0x54ebc0(0x390)]===_0x1a6b77&&_0x1654c3[_0x54ebc0(0x1af)]===_0x228746);_0x1d1159&&this[_0x54ebc0(0x225)](_0x577f4e,_0x414b25,_0x1d1159);}[_0x3bd298(0x225)](_0x57a3a8,_0x435898,_0x59e2f3){const _0x430110=_0x3bd298;let {pages:_0x250553}=_0x59e2f3,{rowHeightAccumulation:_0x151806,columnWidthAccumulation:_0x3aa824}=_0x435898;_0x57a3a8[_0x430110(0x2a1)](),_0x57a3a8[_0x430110(0x1d3)]=_0x430110(0x202),_0x57a3a8[_0x430110(0x152)]=0x2,_0x57a3a8[_0x430110(0x32f)](Ne);let _0xb974a0=new Set(),_0x134f03=new Set();_0x250553[_0x430110(0x2a5)](_0x14458a=>{const _0x11fd18=_0x430110;let {startRow:_0x39bdce,endRow:_0x44d3ad,startColumn:_0x22bdb3,endColumn:_0x4dad3f}=_0x14458a,_0x28d1ec=_0x39bdce===0x0?0x0:_0x151806[_0x39bdce-0x1],_0x3dea7f=_0x151806[_0x44d3ad],_0x57f6c8=_0x22bdb3===0x0?0x0:_0x3aa824[_0x22bdb3-0x1],_0x22a838=_0x3aa824[_0x4dad3f];_0xb974a0['add'](_0x28d1ec),_0xb974a0[_0x11fd18(0x23d)](_0x3dea7f),_0x134f03[_0x11fd18(0x23d)](_0x57f6c8),_0x134f03[_0x11fd18(0x23d)](_0x22a838);});let _0x38b1d2=Math[_0x430110(0x111)](...Array[_0x430110(0x3a0)](_0x134f03)),_0x2a4fe1=Math[_0x430110(0x2e1)](...Array[_0x430110(0x3a0)](_0x134f03)),_0xbb8de3=Math[_0x430110(0x111)](...Array[_0x430110(0x3a0)](_0xb974a0)),_0x51f903=Math[_0x430110(0x2e1)](...Array[_0x430110(0x3a0)](_0xb974a0));_0xb974a0['forEach'](_0x386c71=>{const _0x3395b3=_0x430110;_0x57a3a8[_0x3395b3(0x367)](),_0x57a3a8[_0x3395b3(0x197)](_0x38b1d2,_0x386c71),_0x57a3a8[_0x3395b3(0x144)](_0x2a4fe1,_0x386c71),_0x57a3a8[_0x3395b3(0x399)]();}),_0x134f03[_0x430110(0x2a5)](_0x408a54=>{const _0x4f28db=_0x430110;_0x57a3a8[_0x4f28db(0x367)](),_0x57a3a8['moveTo'](_0x408a54,_0xbb8de3),_0x57a3a8['lineTo'](_0x408a54,_0x51f903),_0x57a3a8[_0x4f28db(0x399)]();}),_0x57a3a8[_0x430110(0x17e)]();}};let Fe=class extends n['Disposable']{constructor(_0x432ae9,_0x5cf815,_0x5730ce){const _0x4a4a3e=_0x3bd298;super(),this[_0x4a4a3e(0x33a)]=_0x432ae9;let _0x1e8a6d=this[_0x4a4a3e(0x33a)][_0x4a4a3e(0x1c6)];this['disposeWithMe'](_0x1e8a6d[_0x4a4a3e(0x10b)](new Pe(_0x5cf815,_0x5730ce)));}};Fe=O([D(0x1,W),D(0x2,k)],Fe);const Z=({icon:_0x33e885,items:_0xad837e,active:_0x115ed8,onChange:_0x399da6,onHover:_0x27a2bb,popupDirection:_0x46bb0a=_0x3bd298(0x3a2)})=>(0x0,d[_0x3bd298(0x2d8)])('div',{'className':_0x3bd298(0xed),'onMouseEnter':()=>_0x27a2bb==null?void 0x0:_0x27a2bb(!0x0),'onMouseLeave':()=>_0x27a2bb==null?void 0x0:_0x27a2bb(!0x1),'children':[(0x0,d[_0x3bd298(0x382)])('div',{'className':_0x3bd298(0x1f0),'children':_0x33e885}),(0x0,d[_0x3bd298(0x382)])(l[_0x3bd298(0x1c8)],{'className':_0x3bd298(0x118)}),_0x115ed8&&(0x0,d[_0x3bd298(0x382)])(_0x3bd298(0xbd),{'style':{[_0x46bb0a]:'100%'},'className':_0x3bd298(0x113),'children':(0x0,d[_0x3bd298(0x382)])(_0x3bd298(0xbd),{'className':'univer-solid\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-p-2\x20univer-shadow-lg\x20dark:!univer-border-gray-700','children':_0xad837e['map'](_0x273e51=>(0x0,d[_0x3bd298(0x2d8)])(_0x3bd298(0xbd),{'className':_0x3bd298(0x2d9),'onClick':()=>{_0x399da6==null||_0x399da6(_0x273e51['value']),_0x27a2bb==null||_0x27a2bb(!0x1);},'children':[(0x0,d[_0x3bd298(0x382)])(_0x3bd298(0xbd),{'className':_0x3bd298(0x198),'children':_0x273e51[_0x3bd298(0x140)]}),(0x0,d[_0x3bd298(0x382)])(_0x3bd298(0xbd),{'className':_0x3bd298(0x226),'children':_0x273e51[_0x3bd298(0x319)]})]},_0x273e51[_0x3bd298(0x397)]))})})]}),Ie=_0x56e5f6=>{const _0x520ad7=_0x3bd298;let {onSelect:_0x3160b6,popupDirection:_0x577158}=_0x56e5f6,[_0x19cbcc,_0x5f43fa]=(0x0,u['useState'])(),_0x389205=(0x0,i['useDependency'])(n[_0x520ad7(0x14a)]),_0x291700=(0x0,i[_0x520ad7(0x128)])(n['IUniverInstanceService'])['getCurrentUnitOfType'](n[_0x520ad7(0x394)][_0x520ad7(0x103)]),_0xa43a85=_0x291700['getActiveSheet'](),_0x20d1e0=(0x0,u[_0x520ad7(0x3ab)])(()=>(0x0,n['dateKit'])(),[]),_0x3ae61e=(0x0,u['useMemo'])(()=>[{'value':'@Page','label':_0x389205['t'](_0x520ad7(0x142)),'desc':B(_0x520ad7(0x251),{'workbook':_0x291700,'worksheet':_0xa43a85,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x389205,'now':_0x20d1e0})},{'value':_0x520ad7(0x346),'label':_0x389205['t'](_0x520ad7(0x12d)),'desc':B(_0x520ad7(0x346),{'workbook':_0x291700,'worksheet':_0xa43a85,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x389205,'now':_0x20d1e0})},{'value':'@TotalPage','label':_0x389205['t'](_0x520ad7(0x1bf)),'desc':B('@TotalPage',{'workbook':_0x291700,'worksheet':_0xa43a85,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x389205,'now':_0x20d1e0})},{'value':_0x520ad7(0x279),'label':_0x389205['t'](_0x520ad7(0x37d)),'desc':B(_0x520ad7(0x279),{'workbook':_0x291700,'worksheet':_0xa43a85,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x389205,'now':_0x20d1e0})}],[_0x389205]),_0x14fe9a=(0x0,u['useMemo'])(()=>[{'value':_0x520ad7(0x28a),'label':_0x389205['t'](_0x520ad7(0x322)),'desc':B(_0x520ad7(0x28a),{'workbook':_0x291700,'worksheet':_0xa43a85,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x389205,'now':_0x20d1e0})},{'value':_0x520ad7(0x392),'label':_0x389205['t']('sheets-print.headerFooter.display.sheet'),'desc':B('@WorksheetTitle',{'workbook':_0x291700,'worksheet':_0xa43a85,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x389205,'now':_0x20d1e0})}],[_0x389205]),_0x9b6152=(0x0,u[_0x520ad7(0x3ab)])(()=>[{'value':_0x520ad7(0xe0),'label':_0x389205['t']('sheets-print.headerFooter.display.dateA'),'desc':B('@DateA',{'workbook':_0x291700,'worksheet':_0xa43a85,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x389205,'now':_0x20d1e0})},{'value':_0x520ad7(0x303),'label':_0x389205['t'](_0x520ad7(0x210)),'desc':B(_0x520ad7(0x303),{'workbook':_0x291700,'worksheet':_0xa43a85,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x389205,'now':_0x20d1e0})},{'value':_0x520ad7(0x3b8),'label':_0x389205['t']('sheets-print.headerFooter.display.dateC'),'desc':B(_0x520ad7(0x3b8),{'workbook':_0x291700,'worksheet':_0xa43a85,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x389205,'now':_0x20d1e0})},{'value':'@DateD','label':_0x389205['t'](_0x520ad7(0x1da)),'desc':B(_0x520ad7(0x273),{'workbook':_0x291700,'worksheet':_0xa43a85,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x389205,'now':_0x20d1e0})}],[_0x389205]),_0x21f712=(0x0,u[_0x520ad7(0x3ab)])(()=>[{'value':_0x520ad7(0x38a),'label':_0x389205['t'](_0x520ad7(0x201)),'desc':B(_0x520ad7(0x38a),{'workbook':_0x291700,'worksheet':_0xa43a85,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x389205,'now':_0x20d1e0})},{'value':'@TimeB','label':_0x389205['t'](_0x520ad7(0x2c7)),'desc':B('@TimeB',{'workbook':_0x291700,'worksheet':_0xa43a85,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x389205,'now':_0x20d1e0})},{'value':_0x520ad7(0x10c),'label':_0x389205['t'](_0x520ad7(0xe3)),'desc':B('@TimeC',{'workbook':_0x291700,'worksheet':_0xa43a85,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x389205,'now':_0x20d1e0})},{'value':_0x520ad7(0x300),'label':_0x389205['t'](_0x520ad7(0x134)),'desc':B('@TimeD',{'workbook':_0x291700,'worksheet':_0xa43a85,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x389205,'now':_0x20d1e0})}],[_0x389205]);return(0x0,d[_0x520ad7(0x2d8)])(_0x520ad7(0xbd),{'className':(0x0,c['clsx'])(_0x520ad7(0x1c0),c[_0x520ad7(0x173)]),'children':[(0x0,d[_0x520ad7(0x382)])(Z,{'icon':(0x0,d['jsx'])(l[_0x520ad7(0x1f5)],{}),'items':_0x3ae61e,'onHover':_0x1dcfe3=>_0x5f43fa(_0x1dcfe3?'sheet':''),'active':_0x19cbcc==='sheet','onChange':_0x3160b6,'popupDirection':_0x577158}),(0x0,d[_0x520ad7(0x382)])(Z,{'icon':(0x0,d[_0x520ad7(0x382)])(l['TextIcon'],{}),'items':_0x14fe9a,'onHover':_0x17aec1=>_0x5f43fa(_0x17aec1?'text':''),'active':_0x19cbcc===_0x520ad7(0x38f),'onChange':_0x3160b6,'popupDirection':_0x577158}),(0x0,d[_0x520ad7(0x382)])(Z,{'icon':(0x0,d['jsx'])(l[_0x520ad7(0x335)],{}),'items':_0x9b6152,'onHover':_0x1c4607=>_0x5f43fa(_0x1c4607?_0x520ad7(0x189):''),'active':_0x19cbcc===_0x520ad7(0x189),'onChange':_0x3160b6,'popupDirection':_0x577158}),(0x0,d[_0x520ad7(0x382)])(Z,{'icon':(0x0,d[_0x520ad7(0x382)])(l[_0x520ad7(0x1ef)],{}),'items':_0x21f712,'onHover':_0x3cae5c=>_0x5f43fa(_0x3cae5c?_0x520ad7(0xf8):''),'active':_0x19cbcc===_0x520ad7(0xf8),'onChange':_0x3160b6,'popupDirection':_0x577158})]});};function Le({width:_0x2fc606=0x2b9,height:_0x55f037=0x229,cols:_0x1d14eb=0x8,rows:_0x281c9f=0x18,cellWidth:_0x47922b=0x57,cellHeight:_0x253f0d=0x17,strokeColor:_0x382020=_0x3bd298(0x13c)}){const _0x1de3f5=_0x3bd298;let _0x383efd=(0x0,u['useMemo'])(()=>{const _0x243546=_0x181a;let _0x1001d9=[];for(let _0x5e198e=0x0;_0x5e198e<_0x281c9f;_0x5e198e++)for(let _0x23a338=0x0;_0x23a338<_0x1d14eb;_0x23a338++)_0x1001d9[_0x243546(0x181)]((0x0,d['jsx'])('rect',{'x':_0x23a338*_0x47922b+0.5,'y':_0x5e198e*_0x253f0d+0.5,'width':_0x47922b,'height':_0x253f0d,'stroke':_0x382020},_0x5e198e+'-'+_0x23a338));return _0x1001d9;},[_0x281c9f,_0x1d14eb,_0x47922b,_0x253f0d,_0x382020]);return(0x0,d[_0x1de3f5(0x382)])('svg',{'width':_0x2fc606,'height':_0x55f037,'viewBox':_0x1de3f5(0x2a7)+_0x2fc606+'\x20'+_0x55f037,'fill':'none','xmlns':_0x1de3f5(0x176),'children':_0x383efd});}const Q=_0xcb2329=>{const _0x5f2777=_0x3bd298;let {value:_0x14ab74,onChange:_0x2337fc,popupDirection:_0x55d5fd='top'}=_0xcb2329,_0x3cc9a8=(0x0,i[_0x5f2777(0x128)])(n[_0x5f2777(0x14a)]),_0x2a2395=(0x0,i[_0x5f2777(0x128)])(p[_0x5f2777(0x20c)]),[_0x1d03de,_0x21936c]=(0x0,u[_0x5f2777(0x332)])(!0x1),_0x4ad29a=(0x0,u['useRef'])(null),_0x16d098=(0x0,i['useDependency'])(n[_0x5f2777(0x25c)]),_0x204b50=[{'value':'@Page','label':_0x3cc9a8['t'](_0x5f2777(0x142))},{'value':_0x5f2777(0x346),'label':_0x3cc9a8['t'](_0x5f2777(0x12d))},{'value':_0x5f2777(0x15a),'label':_0x3cc9a8['t'](_0x5f2777(0x1bf))},{'value':_0x5f2777(0x279),'label':_0x3cc9a8['t'](_0x5f2777(0x37d))}],_0x19afc9=[{'value':_0x5f2777(0x28a),'label':_0x3cc9a8['t'](_0x5f2777(0x322))},{'value':_0x5f2777(0x392),'label':_0x3cc9a8['t'](_0x5f2777(0x21a))}],_0x4021bb=[{'value':'@DateA','label':_0x3cc9a8['t'](_0x5f2777(0x35a))},{'value':'@DateB','label':_0x3cc9a8['t'](_0x5f2777(0x210))},{'value':_0x5f2777(0x3b8),'label':_0x3cc9a8['t']('sheets-print.headerFooter.display.dateC')},{'value':_0x5f2777(0x273),'label':_0x3cc9a8['t'](_0x5f2777(0x1da))}],_0x4d4f00=[{'value':_0x5f2777(0x38a),'label':_0x3cc9a8['t'](_0x5f2777(0x201))},{'value':'@TimeB','label':_0x3cc9a8['t']('sheets-print.headerFooter.display.timeB')},{'value':'@TimeC','label':_0x3cc9a8['t']('sheets-print.headerFooter.display.timeC')},{'value':_0x5f2777(0x300),'label':_0x3cc9a8['t'](_0x5f2777(0x134))}],_0x5ee8ef=[..._0x204b50,..._0x19afc9,..._0x4021bb,..._0x4d4f00],[_0x4e14ce]=(0x0,u[_0x5f2777(0x332)])(()=>ne(_0x14ab74,_0x5ee8ef));return(0x0,d[_0x5f2777(0x2d8)])(_0x5f2777(0xbd),{'className':_0x5f2777(0x13b),'children':[(0x0,d[_0x5f2777(0x382)])(p[_0x5f2777(0x1a3)],{'editorRef':_0x4ad29a,'initialValue':_0x4e14ce,'onChange':_0x1799f7=>{_0x2337fc==null||_0x2337fc(re(_0x1799f7));},'onFocusChange':_0x5f33f2=>{_0x21936c(_0x5f33f2);},'onClickOutside':()=>{const _0x46e677=_0x5f2777;var _0xd312e7;(_0xd312e7=_0x4ad29a['current'])==null||_0xd312e7[_0x46e677(0x23b)]([]),_0x2a2395['blur']();},'placeholder':_0x3cc9a8['t'](_0x5f2777(0x3bc))}),(0x0,d[_0x5f2777(0x382)])('div',{'className':'univer-absolute\x20univer-left-0\x20univer-z-[100]','style':{[_0x55d5fd]:0x24},'children':_0x1d03de&&(0x0,d[_0x5f2777(0x382)])(Ie,{'popupDirection':_0x55d5fd,'onSelect':async _0x19bcb5=>{const _0x20d6b4=_0x5f2777;var _0x2b3f81;let _0x13922e=(_0x2b3f81=_0x4ad29a[_0x20d6b4(0x15f)])==null?void 0x0:_0x2b3f81[_0x20d6b4(0x171)]();if(!_0x4ad29a[_0x20d6b4(0x15f)])return;let _0x3462c7=_0x4ad29a[_0x20d6b4(0x15f)][_0x20d6b4(0x1a1)]();if(_0x3462c7<0x0)return;let _0x8c77f3=_0x5ee8ef[_0x20d6b4(0x14f)](_0x2287a1=>_0x2287a1['value']===_0x19bcb5);if(!_0x8c77f3)return;let _0x9ad6a={'dataStream':_0x8c77f3[_0x20d6b4(0x140)],'customRanges':[{'startIndex':0x0,'endIndex':_0x8c77f3[_0x20d6b4(0x140)]['length']-0x1,'rangeId':(0x0,n['generateRandomId'])(),'rangeType':n[_0x20d6b4(0x358)]['MENTION'],'properties':{'value':_0x8c77f3[_0x20d6b4(0x397)]},'wholeEntity':!0x0}]};await(0x0,n[_0x20d6b4(0x25a)])(0x0);let _0x2a0555=n[_0x20d6b4(0x2af)][_0x20d6b4(0x299)]['replace']({'selection':{'startOffset':_0x3462c7,'endOffset':_0x3462c7,'collapsed':!0x0},'body':_0x9ad6a,'doc':_0x4ad29a[_0x20d6b4(0x15f)][_0x20d6b4(0x366)]()});if(!_0x2a0555)return;let _0x3c1717={'id':f['RichTextEditingMutation']['id'],'params':{'unitId':_0x13922e,'actions':[],'textRanges':[{'startOffset':_0x3462c7+_0x9ad6a[_0x20d6b4(0x126)][_0x20d6b4(0x213)],'endOffset':_0x3462c7+_0x9ad6a['dataStream'][_0x20d6b4(0x213)],'collapsed':!0x0}],'trigger':'mually'}},_0x35d8f7=n[_0x20d6b4(0x135)][_0x20d6b4(0x228)]();_0x3c1717[_0x20d6b4(0x1d9)]['actions']=_0x35d8f7[_0x20d6b4(0x38d)](_0x2a0555[_0x20d6b4(0x28d)]()),_0x16d098[_0x20d6b4(0x34d)](_0x3c1717['id'],_0x3c1717[_0x20d6b4(0x1d9)]),setTimeout(()=>{const _0x1e96fd=_0x20d6b4;_0x2a2395[_0x1e96fd(0x35f)](_0x13922e);},0x0);}})})]});},Re=_0x486b09=>{const _0x29f37c=_0x3bd298;let {onClose:_0xb42bdd}=_0x486b09,_0x46abf4=(0x0,i[_0x29f37c(0x128)])(k),_0x38e4ac=_0x46abf4[_0x29f37c(0xf7)][_0x29f37c(0x26e)]??E,[_0x3e14af,_0xd92203]=(0x0,u[_0x29f37c(0x332)])(_0x38e4ac['topLeft']),[_0x344ca9,_0x491e92]=(0x0,u[_0x29f37c(0x332)])(_0x38e4ac[_0x29f37c(0x2c2)]),[_0x42b59,_0x4b4d2c]=(0x0,u[_0x29f37c(0x332)])(_0x38e4ac[_0x29f37c(0x1fd)]),[_0x14f175,_0x1d6ba9]=(0x0,u[_0x29f37c(0x332)])(_0x38e4ac[_0x29f37c(0x3a5)]),[_0x5f9803,_0x5796dc]=(0x0,u[_0x29f37c(0x332)])(_0x38e4ac[_0x29f37c(0x131)]),[_0x159292,_0x460420]=(0x0,u[_0x29f37c(0x332)])(_0x38e4ac[_0x29f37c(0x236)]),_0x1d1b28=(0x0,i[_0x29f37c(0x128)])(n['LocaleService']);return(0x0,d[_0x29f37c(0x2d8)])('div',{'className':_0x29f37c(0x369),'children':[(0x0,d[_0x29f37c(0x2d8)])(_0x29f37c(0xbd),{'className':(0x0,c[_0x29f37c(0x26d)])(_0x29f37c(0x30a),c[_0x29f37c(0x1ca)]),'children':[(0x0,d[_0x29f37c(0x382)])(_0x29f37c(0xbd),{'className':_0x29f37c(0x2c8),'children':_0x1d1b28['t'](_0x29f37c(0x290))}),(0x0,d[_0x29f37c(0x2d8)])(_0x29f37c(0xbd),{'className':'univer-relative\x20first:univer-mr-2','children':[(0x0,d['jsx'])(c[_0x29f37c(0x2a6)],{'className':_0x29f37c(0x2c6),'onClick':()=>{_0xb42bdd();},'children':_0x1d1b28['t'](_0x29f37c(0xc3))}),(0x0,d['jsx'])(c[_0x29f37c(0x2a6)],{'variant':_0x29f37c(0x199),'onClick':()=>{_0xb42bdd(),_0x46abf4['updateRenderConfig']({'headerFooterSetting':{'topLeft':_0x3e14af,'topCenter':_0x344ca9,'topRight':_0x42b59,'bottomLeft':_0x14f175,'bottomCenter':_0x5f9803,'bottomRight':_0x159292}});},'children':_0x1d1b28['t'](_0x29f37c(0x19b))})]})]}),(0x0,d[_0x29f37c(0x382)])(_0x29f37c(0xbd),{'className':_0x29f37c(0x2e8),'children':(0x0,d[_0x29f37c(0x382)])(_0x29f37c(0xbd),{'className':_0x29f37c(0x245),'children':(0x0,d[_0x29f37c(0x2d8)])('div',{'className':_0x29f37c(0x1be),'children':[(0x0,d['jsxs'])('div',{'className':'univer-flex\x20univer-w-full','children':[(0x0,d[_0x29f37c(0x382)])(Q,{'value':_0x3e14af,'onChange':_0x392fef=>_0xd92203(_0x392fef)}),(0x0,d[_0x29f37c(0x382)])(Q,{'value':_0x344ca9,'onChange':_0x5979b2=>_0x491e92(_0x5979b2)}),(0x0,d['jsx'])(Q,{'value':_0x42b59,'onChange':_0x22d2f9=>_0x4b4d2c(_0x22d2f9)})]}),(0x0,d[_0x29f37c(0x382)])('div',{'className':_0x29f37c(0x357),'children':(0x0,d[_0x29f37c(0x382)])(Le,{})}),(0x0,d['jsxs'])('div',{'className':_0x29f37c(0x117),'children':[(0x0,d[_0x29f37c(0x382)])(Q,{'popupDirection':_0x29f37c(0x217),'value':_0x14f175,'onChange':_0x2a166c=>_0x1d6ba9(_0x2a166c)}),(0x0,d['jsx'])(Q,{'popupDirection':_0x29f37c(0x217),'value':_0x5f9803,'onChange':_0x3bea00=>_0x5796dc(_0x3bea00)}),(0x0,d[_0x29f37c(0x382)])(Q,{'popupDirection':_0x29f37c(0x217),'value':_0x159292,'onChange':_0x57303f=>_0x460420(_0x57303f)})]})]})})})]});},ze=0.1,Be=()=>{const _0x1ef742=_0x3bd298;let [_0x33a365,_0xc24653]=(0x0,u[_0x1ef742(0x332)])(!0x1),_0x24133d=(0x0,i['useDependency'])(k),_0x9e43f9=(0x0,i['useDependency'])(n[_0x1ef742(0x25c)]),_0xfd74e5=(0x0,i[_0x1ef742(0x3a6)])(_0x24133d[_0x1ef742(0x35e)],[]),[_0x229d39,_0x2beb53]=(0x0,u['useState'])(0x1),[_0x3f8b7a,_0x24c225]=(0x0,u['useState'])(!0x1),_0x309c75=(0x0,i[_0x1ef742(0x128)])(b),_0x203b51=(0x0,i[_0x1ef742(0x3a6)])(_0x309c75[_0x1ef742(0xdb)],_0x309c75[_0x1ef742(0x160)]),_0x2c06cd=(0x0,i['useDependency'])(n[_0x1ef742(0x36c)]),_0x450520=(0x0,i[_0x1ef742(0x128)])(n[_0x1ef742(0x14a)]),_0x33eca4=(0x0,i[_0x1ef742(0x128)])(n[_0x1ef742(0x274)]),{ls:_0x4cb395,pbk:_0x4ef8eb}=(0x0,i[_0x1ef742(0x128)])(n['IConfigService'])[_0x1ef742(0x264)](e[_0x1ef742(0x285)])??{},{limit:_0x7104be,isPro:_0x4fd1d2}=(0x0,u[_0x1ef742(0x3ab)])(()=>{let {page:_0x573661,isPro:_0xff76a1}=ee(0x3,_0x4cb395,_0x4ef8eb);return{'limit':_0x573661,'isPro':_0xff76a1};},[_0x4cb395,_0x4ef8eb]),_0x42ee48=(0x0,u[_0x1ef742(0x34e)])(null),_0x4c7dc5=(0x0,i[_0x1ef742(0x128)])(i[_0x1ef742(0x341)]),_0x2bdb1b=we(import(`@univerjs-pro/collaboration-client`).then(_0x1ce72c=>_0x1ce72c[_0x1ef742(0x3b5)],()=>void 0x0));(0x0,u[_0x1ef742(0x120)])(()=>{const _0x2127e6=_0x1ef742;var _0x4e31b8;if(!_0x2bdb1b)return;let _0x3f7b3f=_0x2c06cd['getCurrentUnitOfType'](n[_0x2127e6(0x394)]['UNIVER_SHEET']);if(!_0x3f7b3f)return;let _0x1cf0bc=_0x3f7b3f['getUnitId'](),_0x1be72f=_0x33eca4['get'](_0x2bdb1b,n[_0x2127e6(0x302)][_0x2127e6(0xb9)]),_0x36407=_0x1be72f==null||(_0x4e31b8=_0x1be72f[_0x2127e6(0x155)](_0x1cf0bc))==null?void 0x0:_0x4e31b8[_0x2127e6(0x200)]();return()=>{_0x36407==null||_0x36407['dispose']();};},[_0x2bdb1b,_0x33eca4,_0x2c06cd]);let _0x5689bd=(0x0,u[_0x1ef742(0x3ab)])(()=>oe(_0xfd74e5),[_0xfd74e5]),_0x3daf41=(0x0,u[_0x1ef742(0x3ab)])(()=>_0x5689bd[_0x1ef742(0x233)](0x0,_0x7104be),[_0x5689bd,_0x7104be]),_0x2a9c0d=_0x24133d[_0x1ef742(0x257)],_0x2e820d=Math['round'](_0x229d39*(0x31a/_0x2a9c0d['w'])*0xa)/0xa,[_0x136f4a,{wrapperStyle:_0x45a6c3,containerProps:_0xff5ffe}]=(0x0,i[_0x1ef742(0x253)])(_0x3daf41,{'containerTarget':_0x42ee48,'itemHeight':_0x2a9c0d['h']*_0x2e820d+0x1c,'overscan':0x5}),_0x29428d=()=>{const _0x54f118=_0x1ef742;_0x9e43f9[_0x54f118(0x32a)](L['id']);},_0x403d4e=()=>{const _0x19b3d7=_0x1ef742;_0x24c225(!0x0),_0x4c7dc5[_0x19b3d7(0x1b4)]({'content':_0x450520['t'](_0x19b3d7(0x3a4)),'type':c[_0x19b3d7(0xc0)][_0x19b3d7(0x31e)]}),setTimeout(()=>{_0x9e43f9['executeCommand'](R['id']);},0x12c);},_0x24b302=(0x0,i[_0x1ef742(0x2e0)])(()=>{_0xc24653(!0x0);});return(0x0,d['jsxs'])(_0x1ef742(0xbd),{'className':'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','children':[_0x33a365&&(0x0,d[_0x1ef742(0x382)])(Re,{'onClose':()=>_0xc24653(!0x1)}),_0x3f8b7a&&(0x0,d[_0x1ef742(0x382)])(_0x1ef742(0xbd),{'className':_0x1ef742(0x3be)}),(0x0,d[_0x1ef742(0x2d8)])(_0x1ef742(0xbd),{'className':(0x0,c[_0x1ef742(0x26d)])(_0x1ef742(0x222),c[_0x1ef742(0x1ca)]),'children':[(0x0,d[_0x1ef742(0x2d8)])(_0x1ef742(0xbd),{'className':'univer-ml-2\x20univer-text-base\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-gray-0','children':[_0x450520['t'](_0x1ef742(0x1a9)),_0x3daf41[_0x1ef742(0x213)],_0x450520['t'](_0x1ef742(0x20d))]}),(0x0,d[_0x1ef742(0x2d8)])(_0x1ef742(0xbd),{'className':_0x1ef742(0xeb),'children':[(0x0,d[_0x1ef742(0x382)])(c[_0x1ef742(0x2a6)],{'onClick':_0x29428d,'children':_0x450520['t'](_0x1ef742(0xc3))}),(0x0,d[_0x1ef742(0x382)])(c[_0x1ef742(0x2a6)],{'variant':_0x1ef742(0x199),'disabled':_0x203b51,'onClick':_0x403d4e,'children':_0x450520['t']('sheets-print.header.next')})]})]}),(0x0,d[_0x1ef742(0x2d8)])(_0x1ef742(0xbd),{'className':_0x1ef742(0x327),'children':[(0x0,d[_0x1ef742(0x2d8)])(_0x1ef742(0xbd),{'className':_0x1ef742(0xf9),'children':[(0x0,d[_0x1ef742(0x382)])('div',{'ref':_0x42ee48,'className':(0x0,c[_0x1ef742(0x26d)])(_0x1ef742(0x29e),c[_0x1ef742(0x3af)]),'aria-busy':_0x203b51,..._0xff5ffe,'children':_0x203b51?(0x0,d[_0x1ef742(0x382)])(_0x1ef742(0xbd),{'className':_0x1ef742(0x384),'role':_0x1ef742(0x1d2),'aria-label':_0x450520['t']('sheets-print.header.printing'),'children':(0x0,d['jsx'])(l[_0x1ef742(0xf4)],{'className':_0x1ef742(0x365),'aria-hidden':_0x1ef742(0x25e)})}):(0x0,d[_0x1ef742(0x382)])(_0x1ef742(0xbd),{'style':_0x45a6c3,'children':_0x136f4a['map'](_0x34ce50=>(0x0,d[_0x1ef742(0x382)])(Ee,{'config':_0x34ce50['data'],'page':_0x34ce50[_0x1ef742(0xd4)]['page'],'previewScale':_0x229d39},_0x34ce50['data'][_0x1ef742(0x390)]+':'+_0x34ce50[_0x1ef742(0xd4)][_0x1ef742(0x1af)]+':'+_0x34ce50[_0x1ef742(0xd4)]['page']+':'+_0x34ce50[_0x1ef742(0xd4)][_0x1ef742(0x10a)][_0x1ef742(0x2ee)]+':'+_0x34ce50['data'][_0x1ef742(0x10a)][_0x1ef742(0x13f)]+':'+_0x34ce50['data'][_0x1ef742(0x10a)][_0x1ef742(0x1ab)]+':'+_0x34ce50['data']['range'][_0x1ef742(0x2c9)]))})}),!_0x203b51&&!_0x4fd1d2&&(0x0,d[_0x1ef742(0x382)])(_0x1ef742(0xbd),{'className':_0x1ef742(0x33e),'children':(0x0,d['jsx'])('a',{'href':_0x450520['t']('sheets-print.limit.link'),'target':'_blank','rel':_0x1ef742(0x23c),'children':_0x450520['t'](_0x1ef742(0x30f))['replace'](_0x1ef742(0x314),''+_0x7104be)})}),!_0x203b51&&!_0x33a365&&(0x0,d[_0x1ef742(0x2d8)])(_0x1ef742(0xbd),{'className':_0x1ef742(0x34f),'children':[(0x0,d[_0x1ef742(0x382)])(_0x1ef742(0xbd),{'className':_0x1ef742(0x139),'onClick':()=>{_0x2beb53(Math['min'](_0x229d39+ze,0x2));},'children':(0x0,d[_0x1ef742(0x382)])(l[_0x1ef742(0x247)],{})}),(0x0,d[_0x1ef742(0x382)])(_0x1ef742(0xbd),{'className':_0x1ef742(0x139),'onClick':()=>{const _0x4cdb81=_0x1ef742;_0x2beb53(Math[_0x4cdb81(0x2e1)](_0x229d39-ze,0.5));},'children':(0x0,d[_0x1ef742(0x382)])(l['ReduceIcon'],{})})]})]}),(0x0,d[_0x1ef742(0x382)])('div',{'className':'univer-box-border\x20univer-h-full\x20univer-w-[312px]\x20univer-flex-none\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':(0x0,d['jsx'])(Oe,{'onShowFooterHeaderEditor':_0x24b302})})]})]});},Ve=()=>{const _0x2bf927=_0x3bd298;let _0x26a877=(0x0,i[_0x2bf927(0x128)])(b);return(0x0,i[_0x2bf927(0x3a6)])(_0x26a877[_0x2bf927(0xb6)],_0x26a877[_0x2bf927(0x1a5)])?(0x0,d[_0x2bf927(0x382)])(Be,{}):null;},He={'id':I['id'],'binding':i[_0x3bd298(0x2a8)]['P']|i['MetaKeys'][_0x3bd298(0x2e9)],'preconditions':s[_0x3bd298(0x3a7)]};let Ue=class extends n[_0x3bd298(0x1a7)]{constructor(_0x33844b,_0x35add6,_0x514c21,_0x36a215,_0x499f3a,_0x176298,_0x9f9657,_0x43f80b,_0x29d7f0,_0x3e0d02){const _0x22760c=_0x3bd298;super(),this[_0x22760c(0x10e)]=_0x33844b,this['_commandService']=_0x35add6,this['_sheetPrintManagerService']=_0x514c21,this[_0x22760c(0x311)]=_0x36a215,this[_0x22760c(0xe6)]=_0x499f3a,this['_shortcutService']=_0x176298,this[_0x22760c(0xb8)]=_0x9f9657,this['_univerInstanceService']=_0x43f80b,this[_0x22760c(0x229)]=_0x29d7f0,this[_0x22760c(0x306)]=_0x3e0d02,this[_0x22760c(0xfa)](),this[_0x22760c(0x15c)](),this[_0x22760c(0x2f1)](),this['_initShortcuts'](),this[_0x22760c(0x2ef)](),this['_initConfigChangeListener'](),this[_0x22760c(0xfd)]();}['_initCommands'](){const _0x1a7c67=_0x3bd298;[I,L,R,le,z,G,fe][_0x1a7c67(0x2a5)](_0x3e741f=>this[_0x1a7c67(0x1ee)][_0x1a7c67(0x18a)](_0x3e741f));}['_initUIParts'](){const _0x5c8168=_0x3bd298;this[_0x5c8168(0x1d1)](this[_0x5c8168(0x306)]['registerComponent'](i[_0x5c8168(0x3b1)][_0x5c8168(0x2b6)],()=>(0x0,i[_0x5c8168(0x18d)])(Ve,this[_0x5c8168(0xb8)])));}[_0x3bd298(0x31c)](){const _0x44dcf5=_0x3bd298;[He][_0x44dcf5(0x2a5)](_0x36392b=>{const _0xfe9cab=_0x44dcf5;this[_0xfe9cab(0x305)][_0xfe9cab(0x317)](_0x36392b);});}[_0x3bd298(0x2f1)](){const _0x191476=_0x3bd298;this[_0x191476(0xe6)][_0x191476(0x16d)](ve);}[_0x3bd298(0x1bd)](){const _0x290300=_0x3bd298;this[_0x290300(0x1d1)](this['_printDialogService'][_0x290300(0xb6)][_0x290300(0x293)](_0x36cc74=>{const _0x14c5cf=_0x290300;_0x36cc74&&this[_0x14c5cf(0x255)][_0x14c5cf(0x360)]();}));}['_print'](){const _0x38c69f=_0x3bd298;let _0xb06b74=this['_sheetPrintManagerService'][_0x38c69f(0x3a8)],_0x2fe466=this[_0x38c69f(0x255)][_0x38c69f(0xf7)];return this[_0x38c69f(0x311)]['print'](_0xb06b74,_0x2fe466);}[_0x3bd298(0x2ef)](){const _0x4cc818=_0x3bd298;this[_0x4cc818(0x1d1)](this[_0x4cc818(0x1ee)][_0x4cc818(0x215)](_0x12be94=>{const _0x265ac7=_0x4cc818;_0x12be94['id']===R['id']&&this[_0x265ac7(0xd3)]();}));}['_initMutationListener'](){const _0x4e889f=_0x3bd298;let _0x4ed12d=this[_0x4e889f(0xb8)]['get'](W);this[_0x4e889f(0x1d1)](_0x4ed12d[_0x4e889f(0xb6)][_0x4e889f(0x293)](()=>{const _0x43ce22=_0x4e889f;let _0x224003=this[_0x43ce22(0xd1)][_0x43ce22(0x35d)](0x2);if(_0x224003){let _0x110f09=_0x224003[_0x43ce22(0xb5)](),_0xfe040e=this[_0x43ce22(0x229)][_0x43ce22(0x389)](_0x110f09);if(_0xfe040e){var _0x14eb1b;(_0x14eb1b=_0xfe040e[_0x43ce22(0x1c6)])==null||_0x14eb1b[_0x43ce22(0x19c)]();}}})),this[_0x4e889f(0x1d1)](this[_0x4e889f(0x255)][_0x4e889f(0x10f)][_0x4e889f(0x293)](()=>{const _0x443a24=_0x4e889f;if(!_0x4ed12d[_0x443a24(0x1a5)])return;this[_0x443a24(0x255)]['reLayout']();let _0xdc66a0=this[_0x443a24(0xd1)][_0x443a24(0x35d)](0x2);if(_0xdc66a0){let _0x2fdacb=_0xdc66a0[_0x443a24(0xb5)](),_0x5863e2=this[_0x443a24(0x229)][_0x443a24(0x389)](_0x2fdacb);if(_0x5863e2){var _0x3e0a58;(_0x3e0a58=_0x5863e2[_0x443a24(0x1c6)])==null||_0x3e0a58['makeDirty']();}}})),this['disposeWithMe'](this[_0x4e889f(0x1ee)]['onCommandExecuted'](_0x463b7d=>{const _0x3cb40b=_0x4e889f;if(!_0x4ed12d[_0x3cb40b(0x1a5)]||[I['id'],L['id'],R['id'],z['id'],G['id'],fe['id']]['includes'](_0x463b7d['id']))return;this[_0x3cb40b(0x255)][_0x3cb40b(0x360)]();let _0x4e01bd=this[_0x3cb40b(0xd1)][_0x3cb40b(0x35d)](0x2);if(_0x4e01bd){let _0x2ab6af=_0x4e01bd[_0x3cb40b(0xb5)](),_0x3554fa=this[_0x3cb40b(0x229)][_0x3cb40b(0x389)](_0x2ab6af);if(_0x3554fa){var _0x103e66;(_0x103e66=_0x3554fa[_0x3cb40b(0x1c6)])==null||_0x103e66[_0x3cb40b(0x19c)]();}}}));}};Ue=O([D(0x0,b),D(0x1,n[_0x3bd298(0x25c)]),D(0x2,k),D(0x3,(0x0,n[_0x3bd298(0xff)])(U)),D(0x4,i[_0x3bd298(0x2cf)]),D(0x5,i[_0x3bd298(0x363)]),D(0x6,(0x0,n[_0x3bd298(0xff)])(n[_0x3bd298(0x274)])),D(0x7,n[_0x3bd298(0x36c)]),D(0x8,o[_0x3bd298(0x2f7)]),D(0x9,i[_0x3bd298(0x109)])],Ue);let $=class extends n[_0x3bd298(0xe8)]{constructor(_0x58be3a=K,_0x1ee3d8,_0x32be95,_0x5535b2){const _0x3f4d76=_0x3bd298;super(),this['_config']=_0x58be3a,this[_0x3f4d76(0xb8)]=_0x1ee3d8,this['_configService']=_0x32be95,this['_renderManagerService']=_0x5535b2;let {menu:_0x22de88,..._0x1d1e50}=(0x0,n[_0x3f4d76(0x1b7)])({},K,this[_0x3f4d76(0xca)]);_0x22de88&&this[_0x3f4d76(0x1e8)]['setConfig'](_0x3f4d76(0x14d),_0x22de88,{'merge':!0x0}),this['_configService'][_0x3f4d76(0x1e1)](Se,_0x1d1e50);}[_0x3bd298(0x106)](){const _0x24507a=_0x3bd298;this[_0x24507a(0xb8)][_0x24507a(0x178)](t[_0x24507a(0xe9)])||this['_injector'][_0x24507a(0x23d)]([t[_0x24507a(0xe9)],{'useClass':t[_0x24507a(0x338)]}]),(0x0,n[_0x24507a(0x188)])(this[_0x24507a(0xb8)],[[k,{'useClass':N}],[b,{'useClass':x}],[W,{'useClass':ue}],[U],[X],[Ue]]),this[_0x24507a(0x1d1)](this[_0x24507a(0x229)][_0x24507a(0x132)](n[_0x24507a(0x394)][_0x24507a(0x103)],[Fe])),(0x0,n['touchDependencies'])(this[_0x24507a(0xb8)],[[X],[Ue]]);}};y($,_0x3bd298(0x220),xe),y($,'packageName',ye),y($,_0x3bd298(0x33f),be),y($,_0x3bd298(0x170),n['UniverInstanceType'][_0x3bd298(0x103)]),$=O([(0x0,n[_0x3bd298(0x256)])(e[_0x3bd298(0x1e2)],o['UniverRenderEnginePlugin'],r[_0x3bd298(0x102)],s['UniverSheetsUIPlugin']),D(0x1,(0x0,n['Inject'])(n[_0x3bd298(0x274)])),D(0x2,n[_0x3bd298(0x28b)]),D(0x3,o[_0x3bd298(0x2f7)])],$),exports[_0x3bd298(0x2b5)]=L,exports[_0x3bd298(0x393)]=R,exports[_0x3bd298(0x143)]=k,exports[_0x3bd298(0x1dd)]=S,exports['PrintFreeze']=w,exports[_0x3bd298(0x2b2)]=C,exports['PrintHeaderFooterSymbol']=T,exports[_0x3bd298(0x361)]=ae,Object[_0x3bd298(0x3c0)](exports,_0x3bd298(0xcf),{'enumerable':!0x0,'get':function(){return U;}}),exports[_0x3bd298(0xbf)]=I,exports['SheetScreenShotOperation']=le,exports[_0x3bd298(0xde)]=ve,Object['defineProperty'](exports,_0x3bd298(0xf5),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x3bd298(0x3c0)](exports,_0x3bd298(0x19d),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x3bd298(0x180)]=E,exports[_0x3bd298(0x37b)]=F;