@univerjs-pro/exchange-client 0.22.1 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/sk-SK.js +1 -1
  12. package/lib/cjs/locale/vi-VN.js +1 -1
  13. package/lib/cjs/locale/zh-CN.js +1 -1
  14. package/lib/cjs/locale/zh-TW.js +1 -1
  15. package/lib/es/facade.js +1 -1
  16. package/lib/es/index.js +1 -1
  17. package/lib/es/locale/ca-ES.js +1 -1
  18. package/lib/es/locale/en-US.js +1 -1
  19. package/lib/es/locale/es-ES.js +1 -1
  20. package/lib/es/locale/fa-IR.js +1 -1
  21. package/lib/es/locale/fr-FR.js +1 -1
  22. package/lib/es/locale/ja-JP.js +1 -1
  23. package/lib/es/locale/ko-KR.js +1 -1
  24. package/lib/es/locale/ru-RU.js +1 -1
  25. package/lib/es/locale/sk-SK.js +1 -1
  26. package/lib/es/locale/vi-VN.js +1 -1
  27. package/lib/es/locale/zh-CN.js +1 -1
  28. package/lib/es/locale/zh-TW.js +1 -1
  29. package/lib/facade.js +1 -1
  30. package/lib/index.js +1 -1
  31. package/lib/locale/ca-ES.js +1 -1
  32. package/lib/locale/en-US.js +1 -1
  33. package/lib/locale/es-ES.js +1 -1
  34. package/lib/locale/fa-IR.js +1 -1
  35. package/lib/locale/fr-FR.js +1 -1
  36. package/lib/locale/ja-JP.js +1 -1
  37. package/lib/locale/ko-KR.js +1 -1
  38. package/lib/locale/ru-RU.js +1 -1
  39. package/lib/locale/sk-SK.js +1 -1
  40. package/lib/locale/vi-VN.js +1 -1
  41. package/lib/locale/zh-CN.js +1 -1
  42. package/lib/locale/zh-TW.js +1 -1
  43. package/lib/umd/facade.js +1 -1
  44. package/lib/umd/index.js +1 -1
  45. package/lib/umd/locale/ca-ES.js +1 -1
  46. package/lib/umd/locale/en-US.js +1 -1
  47. package/lib/umd/locale/es-ES.js +1 -1
  48. package/lib/umd/locale/fa-IR.js +1 -1
  49. package/lib/umd/locale/fr-FR.js +1 -1
  50. package/lib/umd/locale/ja-JP.js +1 -1
  51. package/lib/umd/locale/ko-KR.js +1 -1
  52. package/lib/umd/locale/ru-RU.js +1 -1
  53. package/lib/umd/locale/sk-SK.js +1 -1
  54. package/lib/umd/locale/vi-VN.js +1 -1
  55. package/lib/umd/locale/zh-CN.js +1 -1
  56. package/lib/umd/locale/zh-TW.js +1 -1
  57. package/package.json +9 -9
@@ -1 +1 @@
1
- function _0x2859(_0x4f56be,_0x5e9e26){_0x4f56be=_0x4f56be-0x1ac;const _0x399869=_0x3998();let _0x285954=_0x399869[_0x4f56be];return _0x285954;}const _0x35c450=_0x2859;(function(_0x5cb9f0,_0x41254d){const _0x1ac91b=_0x2859,_0x922cf2=_0x5cb9f0();while(!![]){try{const _0x2afe81=parseInt(_0x1ac91b(0x1bb))/0x1*(parseInt(_0x1ac91b(0x1b4))/0x2)+parseInt(_0x1ac91b(0x1af))/0x3*(parseInt(_0x1ac91b(0x1b2))/0x4)+-parseInt(_0x1ac91b(0x1b8))/0x5+-parseInt(_0x1ac91b(0x1b9))/0x6+-parseInt(_0x1ac91b(0x1be))/0x7+parseInt(_0x1ac91b(0x1b6))/0x8+-parseInt(_0x1ac91b(0x1b7))/0x9*(-parseInt(_0x1ac91b(0x1b0))/0xa);if(_0x2afe81===_0x41254d)break;else _0x922cf2['push'](_0x922cf2['shift']());}catch(_0x3d6b55){_0x922cf2['push'](_0x922cf2['shift']());}}}(_0x3998,0xc9833));function _0x3998(){const _0x527369=['6760855WkyPOA','5761482cBOpAI','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','7FaXNzc','Tải\x20lên\x20tệp\x20thành\x20công','Lưu\x20dưới\x20dạng','10930486uuQcAi','Luồng\x20dữ\x20liệu\x20quá\x20lớn','Đang\x20tải\x20xuống','Mở\x20(Tệp)','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','Hủy\x20bỏ','exports','28914nMoLfL','6110WBFwwx','Tải\x20lên\x20lại','464jAJbqC','Đang\x20tải\x20lên','375404OVnuQI','Vui\x20lòng\x20đợi...','4614016MfBClE','24903ThMMUV'];_0x3998=function(){return _0x527369;};return _0x3998();}const locale={'exchange':{'file':'Tệp','upload':_0x35c450(0x1c1),'download':_0x35c450(0x1bd),'uploading':_0x35c450(0x1b3),'uploadSuccess':_0x35c450(0x1bc),'uploadSuccessTip':'{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','downloading':_0x35c450(0x1c0),'downloadSuccess':'Tải\x20xuống\x20thành\x20công','unknownMistake':'Lỗi\x20không\x20xác\x20định','networkError':'Lỗi\x20mạng','tooLarge':_0x35c450(0x1bf),'internalError':_0x35c450(0x1ac),'interrupt':_0x35c450(0x1ba),'fileTypeError':'Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','wait':_0x35c450(0x1b5),'cancel':_0x35c450(0x1ad),'uploadAgain':_0x35c450(0x1b1)}};module[_0x35c450(0x1ae)]=locale;
1
+ function _0x7749(_0x386591,_0x33547d){_0x386591=_0x386591-0x1e1;const _0x29c39d=_0x29c3();let _0x77497f=_0x29c39d[_0x386591];return _0x77497f;}function _0x29c3(){const _0x5ce0ce=['exports','91734xRBkDJ','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','Hủy\x20bỏ','Luồng\x20dữ\x20liệu\x20quá\x20lớn','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','Tệp','2282404rEwQJn','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','Đang\x20tải\x20lên','9kjKfuW','1326802kWsiFp','414277pSOVLW','Lưu\x20dưới\x20dạng','70GIgKFh','4107404OgZrJT','3togipR','Tải\x20xuống\x20thành\x20công','Lỗi\x20mạng','10AYeAaD','6110357OmBvUl','Vui\x20lòng\x20đợi...','Tải\x20lên\x20tệp\x20thành\x20công','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','Đang\x20tải\x20xuống','2208632OVemgL','Tải\x20lên\x20lại','Mở\x20(Tệp)'];_0x29c3=function(){return _0x5ce0ce;};return _0x29c3();}const _0x5811dc=_0x7749;(function(_0x19cc8b,_0x38ab55){const _0x3bb23c=_0x7749,_0x27730f=_0x19cc8b();while(!![]){try{const _0x4aa919=parseInt(_0x3bb23c(0x1e7))/0x1+parseInt(_0x3bb23c(0x1e6))/0x2+-parseInt(_0x3bb23c(0x1eb))/0x3*(parseInt(_0x3bb23c(0x1e2))/0x4)+-parseInt(_0x3bb23c(0x1e9))/0x5*(-parseInt(_0x3bb23c(0x1f8))/0x6)+-parseInt(_0x3bb23c(0x1ea))/0x7+-parseInt(_0x3bb23c(0x1f4))/0x8*(parseInt(_0x3bb23c(0x1e5))/0x9)+-parseInt(_0x3bb23c(0x1ee))/0xa*(-parseInt(_0x3bb23c(0x1ef))/0xb);if(_0x4aa919===_0x38ab55)break;else _0x27730f['push'](_0x27730f['shift']());}catch(_0x14cccd){_0x27730f['push'](_0x27730f['shift']());}}}(_0x29c3,0x6503f));const e={'exchange':{'file':_0x5811dc(0x1e1),'upload':_0x5811dc(0x1f6),'download':_0x5811dc(0x1e8),'uploading':_0x5811dc(0x1e4),'uploadSuccess':_0x5811dc(0x1f1),'uploadSuccessTip':_0x5811dc(0x1f2),'downloading':_0x5811dc(0x1f3),'downloadSuccess':_0x5811dc(0x1ec),'unknownMistake':'Lỗi\x20không\x20xác\x20định','networkError':_0x5811dc(0x1ed),'tooLarge':_0x5811dc(0x1fb),'internalError':_0x5811dc(0x1f9),'interrupt':_0x5811dc(0x1fc),'fileTypeError':_0x5811dc(0x1e3),'wait':_0x5811dc(0x1f0),'cancel':_0x5811dc(0x1fa),'uploadAgain':_0x5811dc(0x1f5)}};module[_0x5811dc(0x1f7)]=e;
@@ -1 +1 @@
1
- function _0x3273(){const _0x574602=['7766bundQK','打开(文件)','exports','108EYDFDC','下载中','15nZKmVT','3483293cXKVXh','3oaVXBj','再次上传','221928PlfNVT','未知错误','{0}个文件上传成功','440972EbHDzp','36XfBWCn','577800rvqLnx','25866MAKKvk','91338hYErDP','35hxAfvT','下载成功','数据流过大','上传中','内部未知错误','另存为','115GHNAjI'];_0x3273=function(){return _0x574602;};return _0x3273();}const _0x381bee=_0x5b02;(function(_0x3dd0e7,_0x3586e7){const _0x1cceaf=_0x5b02,_0x3f1c75=_0x3dd0e7();while(!![]){try{const _0x1992c2=-parseInt(_0x1cceaf(0x12b))/0x1*(parseInt(_0x1cceaf(0x126))/0x2)+-parseInt(_0x1cceaf(0x12d))/0x3*(parseInt(_0x1cceaf(0x132))/0x4)+-parseInt(_0x1cceaf(0x13d))/0x5*(-parseInt(_0x1cceaf(0x135))/0x6)+parseInt(_0x1cceaf(0x137))/0x7*(parseInt(_0x1cceaf(0x12f))/0x8)+-parseInt(_0x1cceaf(0x133))/0x9*(parseInt(_0x1cceaf(0x134))/0xa)+parseInt(_0x1cceaf(0x12c))/0xb+parseInt(_0x1cceaf(0x129))/0xc*(parseInt(_0x1cceaf(0x136))/0xd);if(_0x1992c2===_0x3586e7)break;else _0x3f1c75['push'](_0x3f1c75['shift']());}catch(_0x1780ad){_0x3f1c75['push'](_0x3f1c75['shift']());}}}(_0x3273,0x35423));const locale={'exchange':{'file':'文件','upload':_0x381bee(0x127),'download':_0x381bee(0x13c),'uploading':_0x381bee(0x13a),'uploadSuccess':'文件上传成功','uploadSuccessTip':_0x381bee(0x131),'downloading':_0x381bee(0x12a),'downloadSuccess':_0x381bee(0x138),'unknownMistake':_0x381bee(0x130),'networkError':'网络异常','tooLarge':_0x381bee(0x139),'internalError':_0x381bee(0x13b),'interrupt':'网络连接中断,文件上传失败','fileTypeError':'所选文件\x20[{0}]\x20不支持上传','wait':'请稍等...','cancel':'取消','uploadAgain':_0x381bee(0x12e)}};function _0x5b02(_0xd40b2b,_0x322fa8){_0xd40b2b=_0xd40b2b-0x126;const _0x3273dc=_0x3273();let _0x5b021a=_0x3273dc[_0xd40b2b];return _0x5b021a;}module[_0x381bee(0x128)]=locale;
1
+ const _0x468fef=_0x5571;(function(_0x1f3fea,_0x1080ca){const _0x2c31c9=_0x5571,_0x285fc7=_0x1f3fea();while(!![]){try{const _0x593d9f=parseInt(_0x2c31c9(0x8e))/0x1+-parseInt(_0x2c31c9(0x8d))/0x2+-parseInt(_0x2c31c9(0x89))/0x3+-parseInt(_0x2c31c9(0x84))/0x4+-parseInt(_0x2c31c9(0x7e))/0x5+parseInt(_0x2c31c9(0x83))/0x6+parseInt(_0x2c31c9(0x82))/0x7;if(_0x593d9f===_0x1080ca)break;else _0x285fc7['push'](_0x285fc7['shift']());}catch(_0x537866){_0x285fc7['push'](_0x285fc7['shift']());}}}(_0x3861,0xb391b));function _0x5571(_0x5a42c9,_0x4d0f72){_0x5a42c9=_0x5a42c9-0x7c;const _0x38610d=_0x3861();let _0x557127=_0x38610d[_0x5a42c9];return _0x557127;}const e={'exchange':{'file':'文件','upload':_0x468fef(0x7f),'download':_0x468fef(0x86),'uploading':_0x468fef(0x80),'uploadSuccess':_0x468fef(0x8c),'uploadSuccessTip':_0x468fef(0x7c),'downloading':_0x468fef(0x81),'downloadSuccess':_0x468fef(0x8b),'unknownMistake':'未知错误','networkError':_0x468fef(0x87),'tooLarge':_0x468fef(0x85),'internalError':_0x468fef(0x8a),'interrupt':_0x468fef(0x8f),'fileTypeError':'所选文件\x20[{0}]\x20不支持上传','wait':_0x468fef(0x7d),'cancel':'取消','uploadAgain':'再次上传'}};module[_0x468fef(0x88)]=e;function _0x3861(){const _0x4d9223=['exports','1317870FqrBkE','内部未知错误','下载成功','文件上传成功','1790888XuiXWa','1011726HxObTG','网络连接中断,文件上传失败','{0}个文件上传成功','请稍等...','5941845FLTATW','打开(文件)','上传中','下载中','7745710AFiwCP','8178924ycrtYS','891168TvCKJS','数据流过大','另存为','网络异常'];_0x3861=function(){return _0x4d9223;};return _0x3861();}
@@ -1 +1 @@
1
- const _0x2492ce=_0x4a91;(function(_0x13ebc1,_0xb171b5){const _0x4e3f77=_0x4a91,_0x514491=_0x13ebc1();while(!![]){try{const _0x5485f8=parseInt(_0x4e3f77(0x90))/0x1*(parseInt(_0x4e3f77(0x91))/0x2)+parseInt(_0x4e3f77(0x87))/0x3+parseInt(_0x4e3f77(0x88))/0x4+-parseInt(_0x4e3f77(0x93))/0x5*(-parseInt(_0x4e3f77(0x8d))/0x6)+-parseInt(_0x4e3f77(0x86))/0x7*(parseInt(_0x4e3f77(0x85))/0x8)+parseInt(_0x4e3f77(0x8a))/0x9*(-parseInt(_0x4e3f77(0x97))/0xa)+-parseInt(_0x4e3f77(0x84))/0xb;if(_0x5485f8===_0xb171b5)break;else _0x514491['push'](_0x514491['shift']());}catch(_0x2b9db0){_0x514491['push'](_0x514491['shift']());}}}(_0x4877,0x94a69));function _0x4877(){const _0x7e8ae4=['157167YviEjN','另存為','內部未知錯誤','114puIUOX','網路異常','網路連線中斷,檔案上傳失敗','11254HNDyHC','188JrShpI','所選檔案\x20[{0}]\x20不支援上傳','89630PLynzJ','下載成功','{0}個檔案上傳成功','未知錯誤','150FfPrba','請稍等...','資料流過大','exports','檔案上傳成功','20399555MEmeiW','87144WCixzN','238JzVRDE','2990682aBINmr','2801284pANzLo','下載中'];_0x4877=function(){return _0x7e8ae4;};return _0x4877();}const locale={'exchange':{'file':'檔案','upload':'開啟(檔案)','download':_0x2492ce(0x8b),'uploading':'上傳中','uploadSuccess':_0x2492ce(0x83),'uploadSuccessTip':_0x2492ce(0x95),'downloading':_0x2492ce(0x89),'downloadSuccess':_0x2492ce(0x94),'unknownMistake':_0x2492ce(0x96),'networkError':_0x2492ce(0x8e),'tooLarge':_0x2492ce(0x81),'internalError':_0x2492ce(0x8c),'interrupt':_0x2492ce(0x8f),'fileTypeError':_0x2492ce(0x92),'wait':_0x2492ce(0x80),'cancel':'取消','uploadAgain':'再次上傳'}};function _0x4a91(_0x429430,_0x7ac1ee){_0x429430=_0x429430-0x80;const _0x487722=_0x4877();let _0x4a91c6=_0x487722[_0x429430];return _0x4a91c6;}module[_0x2492ce(0x82)]=locale;
1
+ function _0x4c54(){const _0x4c71a0=['43623jIQyjN','所選檔案\x20[{0}]\x20不支援上傳','30euHKIO','開啟(檔案)','227ywwctb','檔案上傳成功','1059738esqtLk','1080wtBwDz','再次上傳','另存為','974BZxQtx','資料流過大','1276099lQvFje','21768KKpRwx','130ntqnUx','{0}個檔案上傳成功','網路連線中斷,檔案上傳失敗','4JnuQET','未知錯誤','下載成功','網路異常','10554brBzoT','exports','403GownmT','1404571jSlBpY'];_0x4c54=function(){return _0x4c71a0;};return _0x4c54();}const _0x63d74c=_0x8b9e;(function(_0x4d883d,_0x4608c3){const _0x30f9d5=_0x8b9e,_0x1e8112=_0x4d883d();while(!![]){try{const _0x39ecbb=-parseInt(_0x30f9d5(0x190))/0x1*(-parseInt(_0x30f9d5(0x196))/0x2)+parseInt(_0x30f9d5(0x192))/0x3*(parseInt(_0x30f9d5(0x184))/0x4)+parseInt(_0x30f9d5(0x181))/0x5*(-parseInt(_0x30f9d5(0x188))/0x6)+-parseInt(_0x30f9d5(0x18b))/0x7+-parseInt(_0x30f9d5(0x193))/0x8*(-parseInt(_0x30f9d5(0x18c))/0x9)+parseInt(_0x30f9d5(0x18e))/0xa*(-parseInt(_0x30f9d5(0x17f))/0xb)+-parseInt(_0x30f9d5(0x180))/0xc*(parseInt(_0x30f9d5(0x18a))/0xd);if(_0x39ecbb===_0x4608c3)break;else _0x1e8112['push'](_0x1e8112['shift']());}catch(_0x6eed54){_0x1e8112['push'](_0x1e8112['shift']());}}}(_0x4c54,0x72224));const e={'exchange':{'file':'檔案','upload':_0x63d74c(0x18f),'download':_0x63d74c(0x195),'uploading':'上傳中','uploadSuccess':_0x63d74c(0x191),'uploadSuccessTip':_0x63d74c(0x182),'downloading':'下載中','downloadSuccess':_0x63d74c(0x186),'unknownMistake':_0x63d74c(0x185),'networkError':_0x63d74c(0x187),'tooLarge':_0x63d74c(0x17e),'internalError':'內部未知錯誤','interrupt':_0x63d74c(0x183),'fileTypeError':_0x63d74c(0x18d),'wait':'請稍等...','cancel':'取消','uploadAgain':_0x63d74c(0x194)}};function _0x8b9e(_0x16072b,_0xe4fcb2){_0x16072b=_0x16072b-0x17e;const _0x4c54c6=_0x4c54();let _0x8b9eb8=_0x4c54c6[_0x16072b];return _0x8b9eb8;}module[_0x63d74c(0x189)]=e;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x3591ed=_0x8e1d;function _0x3331(){const _0x2e661e=['extend','importDOCXToSnapshotAsync','223194xwuIEv','importXLSXToUnitIdAsync','1062306fwJoga','7088024aDAmzW','2260010pxGYwB','UNIVER_SHEET','exportXLSXByUnitId','The\x20exchange\x20service\x20is\x20not\x20available','45psRPKV','_injector','get','exportDOCXByUnitId','exportXLSXByUnitIdAsync','2128054Siexjh','170jlosRi','3jWYKLz','exportDOCXBySnapshotAsync','importFileToUnitId','exportXLSXBySnapshotAsync','957668IfOvqm','142924UzUwtK','UNIVER_DOC','importDOCXToSnapshot','importDOCXToUnitIdAsync'];_0x3331=function(){return _0x2e661e;};return _0x3331();}(function(_0x4305fc,_0x26e3c8){const _0x300cae=_0x8e1d,_0x4d3948=_0x4305fc();while(!![]){try{const _0x223ebc=-parseInt(_0x300cae(0x191))/0x1+-parseInt(_0x300cae(0x18b))/0x2*(-parseInt(_0x300cae(0x18d))/0x3)+parseInt(_0x300cae(0x192))/0x4+-parseInt(_0x300cae(0x18c))/0x5*(parseInt(_0x300cae(0x198))/0x6)+-parseInt(_0x300cae(0x19a))/0x7+parseInt(_0x300cae(0x19b))/0x8+-parseInt(_0x300cae(0x1a0))/0x9*(-parseInt(_0x300cae(0x19c))/0xa);if(_0x223ebc===_0x26e3c8)break;else _0x4d3948['push'](_0x4d3948['shift']());}catch(_0x513bf2){_0x4d3948['push'](_0x4d3948['shift']());}}}(_0x3331,0xb50c6));function _0x8e1d(_0x54439f,_0x248f31){_0x54439f=_0x54439f-0x18b;const _0x333122=_0x3331();let _0x8e1d5f=_0x333122[_0x54439f];return _0x8e1d5f;}import{IExchangeService}from'@univerjs-pro/exchange-client';import{UniverInstanceType}from'@univerjs/core';import{FUniver}from'@univerjs/core/facade';var FUniverExchangeClientMixin=class extends FUniver{async[_0x3591ed(0x199)](_0x38660c){const _0x1a1c9e=_0x3591ed,_0x26df50=this[_0x1a1c9e(0x1a1)][_0x1a1c9e(0x1a2)](IExchangeService);if(!_0x26df50)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x26df50[_0x1a1c9e(0x18f)](_0x38660c,UniverInstanceType[_0x1a1c9e(0x19d)]);}async['importXLSXToSnapshotAsync'](_0x444641){const _0x4561db=_0x3591ed,_0x468680=this['_injector']['get'](IExchangeService);if(!_0x468680)throw new Error(_0x4561db(0x19f));return _0x468680['importXLSXToSnapshot'](_0x444641);}async[_0x3591ed(0x1a4)](_0x61fa7a){const _0x1f1fc3=_0x3591ed,_0x173895=this[_0x1f1fc3(0x1a1)]['get'](IExchangeService);if(!_0x173895)throw new Error(_0x1f1fc3(0x19f));return _0x173895[_0x1f1fc3(0x19e)](_0x61fa7a);}async[_0x3591ed(0x190)](_0x7c0897){const _0x9b551a=_0x3591ed,_0x127e8c=this[_0x9b551a(0x1a1)][_0x9b551a(0x1a2)](IExchangeService);if(!_0x127e8c)throw new Error(_0x9b551a(0x19f));return _0x127e8c['exportXLSXBySnapshot'](_0x7c0897);}async[_0x3591ed(0x195)](_0x1f6837){const _0x580237=_0x3591ed,_0x4ad778=this['_injector']['get'](IExchangeService);if(!_0x4ad778)throw new Error(_0x580237(0x19f));return _0x4ad778[_0x580237(0x18f)](_0x1f6837,UniverInstanceType[_0x580237(0x193)]);}async[_0x3591ed(0x197)](_0x139397){const _0x43f590=_0x3591ed,_0x11ba9d=this[_0x43f590(0x1a1)][_0x43f590(0x1a2)](IExchangeService);if(!_0x11ba9d)throw new Error(_0x43f590(0x19f));return _0x11ba9d[_0x43f590(0x194)](_0x139397);}async[_0x3591ed(0x18e)](_0x1a9762){const _0x2ee2b1=_0x3591ed,_0x3a478f=this['_injector'][_0x2ee2b1(0x1a2)](IExchangeService);if(!_0x3a478f)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x3a478f['exportDOCXBySnapshot'](_0x1a9762);}async['exportDOCXByUnitIdAsync'](_0x146b34){const _0x25f834=_0x3591ed,_0x3809e0=this[_0x25f834(0x1a1)]['get'](IExchangeService);if(!_0x3809e0)throw new Error(_0x25f834(0x19f));return _0x3809e0[_0x25f834(0x1a3)](_0x146b34);}};FUniver[_0x3591ed(0x196)](FUniverExchangeClientMixin);export{};
1
+ const _0x1e809e=_0x5908;(function(_0x2c4ae2,_0x1e9a80){const _0x83997b=_0x5908,_0x5165ec=_0x2c4ae2();while(!![]){try{const _0x320cdb=parseInt(_0x83997b(0x90))/0x1*(-parseInt(_0x83997b(0x92))/0x2)+-parseInt(_0x83997b(0x97))/0x3*(-parseInt(_0x83997b(0x8f))/0x4)+parseInt(_0x83997b(0x95))/0x5+-parseInt(_0x83997b(0x99))/0x6+parseInt(_0x83997b(0x88))/0x7*(parseInt(_0x83997b(0x93))/0x8)+-parseInt(_0x83997b(0x86))/0x9*(-parseInt(_0x83997b(0x94))/0xa)+parseInt(_0x83997b(0x9a))/0xb*(-parseInt(_0x83997b(0x80))/0xc);if(_0x320cdb===_0x1e9a80)break;else _0x5165ec['push'](_0x5165ec['shift']());}catch(_0x10eb90){_0x5165ec['push'](_0x5165ec['shift']());}}}(_0x2116,0x9df4f));import{IExchangeService as _0x2f74ac}from'@univerjs-pro/exchange-client';function _0x5908(_0x2fe1cc,_0x52e4fc){_0x2fe1cc=_0x2fe1cc-0x80;const _0x211690=_0x2116();let _0x59084d=_0x211690[_0x2fe1cc];return _0x59084d;}function _0x2116(){const _0x50f3d2=['exportXLSXBySnapshot','exportXLSXBySnapshotAsync','importFileToUnitId','12pGYtsa','importXLSXToSnapshotAsync','UNIVER_DOC','The\x20exchange\x20service\x20is\x20not\x20available','exportDOCXBySnapshotAsync','importDOCXToSnapshotAsync','648360EMMXEt','get','7vDLknl','importDOCXToUnitIdAsync','exportDOCXBySnapshot','importDOCXToSnapshot','exportDOCXByUnitId','importXLSXToUnitIdAsync','_injector','76kzFRWc','553417oPKLHh','UNIVER_SHEET','2qnIfBR','5812264dGyLmj','10qmwKgh','1766905azWBJq','exportXLSXByUnitId','138993PVPkon','exportDOCXByUnitIdAsync','4440918sVZvOj','1008502EVSsgj'];_0x2116=function(){return _0x50f3d2;};return _0x2116();}import{UniverInstanceType as _0x1dc836}from'@univerjs/core';import{FUniver as _0x517705}from'@univerjs/core/facade';var r=class extends _0x517705{async[_0x1e809e(0x8d)](_0x43dee9){const _0x3f3d30=_0x1e809e;let _0x40d5d8=this[_0x3f3d30(0x8e)]['get'](_0x2f74ac);if(!_0x40d5d8)throw Error(_0x3f3d30(0x83));return _0x40d5d8[_0x3f3d30(0x9d)](_0x43dee9,_0x1dc836[_0x3f3d30(0x91)]);}async[_0x1e809e(0x81)](_0x394ba1){const _0x21d69c=_0x1e809e;let _0x1d6d0c=this[_0x21d69c(0x8e)][_0x21d69c(0x87)](_0x2f74ac);if(!_0x1d6d0c)throw Error(_0x21d69c(0x83));return _0x1d6d0c['importXLSXToSnapshot'](_0x394ba1);}async['exportXLSXByUnitIdAsync'](_0x25e884){const _0xdcd7ac=_0x1e809e;let _0x5ea27b=this[_0xdcd7ac(0x8e)]['get'](_0x2f74ac);if(!_0x5ea27b)throw Error(_0xdcd7ac(0x83));return _0x5ea27b[_0xdcd7ac(0x96)](_0x25e884);}async[_0x1e809e(0x9c)](_0x2b48af){const _0x501c80=_0x1e809e;let _0x5557bf=this['_injector'][_0x501c80(0x87)](_0x2f74ac);if(!_0x5557bf)throw Error(_0x501c80(0x83));return _0x5557bf[_0x501c80(0x9b)](_0x2b48af);}async[_0x1e809e(0x89)](_0x222b35){const _0x33da51=_0x1e809e;let _0x33e1cc=this[_0x33da51(0x8e)][_0x33da51(0x87)](_0x2f74ac);if(!_0x33e1cc)throw Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x33e1cc[_0x33da51(0x9d)](_0x222b35,_0x1dc836[_0x33da51(0x82)]);}async[_0x1e809e(0x85)](_0x3a96df){const _0x2ad3a8=_0x1e809e;let _0x43e5b0=this['_injector'][_0x2ad3a8(0x87)](_0x2f74ac);if(!_0x43e5b0)throw Error(_0x2ad3a8(0x83));return _0x43e5b0[_0x2ad3a8(0x8b)](_0x3a96df);}async[_0x1e809e(0x84)](_0x3b220e){const _0x4ea538=_0x1e809e;let _0x236d5a=this[_0x4ea538(0x8e)][_0x4ea538(0x87)](_0x2f74ac);if(!_0x236d5a)throw Error(_0x4ea538(0x83));return _0x236d5a[_0x4ea538(0x8a)](_0x3b220e);}async[_0x1e809e(0x98)](_0x21ba87){const _0x4f160c=_0x1e809e;let _0x1a9d37=this['_injector'][_0x4f160c(0x87)](_0x2f74ac);if(!_0x1a9d37)throw Error(_0x4f160c(0x83));return _0x1a9d37[_0x4f160c(0x8c)](_0x21ba87);}};_0x517705['extend'](r);export{};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4a1936=_0x3e7a;(function(_0x40af13,_0x4be039){const _0x38066c=_0x3e7a,_0x32da11=_0x40af13();while(!![]){try{const _0x1872fa=parseInt(_0x38066c(0x2c1))/0x1*(-parseInt(_0x38066c(0x1e1))/0x2)+-parseInt(_0x38066c(0x234))/0x3*(parseInt(_0x38066c(0x2b8))/0x4)+parseInt(_0x38066c(0x21b))/0x5*(-parseInt(_0x38066c(0x2bb))/0x6)+parseInt(_0x38066c(0x200))/0x7*(parseInt(_0x38066c(0x1fb))/0x8)+-parseInt(_0x38066c(0x2bc))/0x9+parseInt(_0x38066c(0x212))/0xa+parseInt(_0x38066c(0x21c))/0xb*(parseInt(_0x38066c(0x294))/0xc);if(_0x1872fa===_0x4be039)break;else _0x32da11['push'](_0x32da11['shift']());}catch(_0x28a63a){_0x32da11['push'](_0x32da11['shift']());}}}(_0x4b1f,0x8e97d));import{UniverLicensePlugin}from'@univerjs-pro/license';import{DependentOn,Disposable,IConfigService,ILogService,IUniverInstanceService,Inject,Injector,LocaleService,Plugin,UniverInstanceType,createIdentifier,merge,registerDependencies,resolveWithBasePath,toDisposable,touchDependencies}from'@univerjs/core';import{HTTPResponseError,HTTPService,UniverNetworkPlugin}from'@univerjs/network';import{BuiltInUIPart,IMessageService,IUIPartsService,connectInjector,useDependency,useObservable}from'@univerjs/ui';import{ClockIcon,CloseIcon,DocMultiIcon,ErrorIcon,ShareRangeIcon,SlideMultiIcon,SuccessIcon,XlsxMultiIcon}from'@univerjs/icons';import{useEffect,useState}from'react';import{BehaviorSubject,Subject}from'rxjs';import{MessageType,Tooltip,clsx,scrollbarClassName}from'@univerjs/design';import{jsx,jsxs}from'react/jsx-runtime';import{ErrorCode,FileSource}from'@univerjs/protocol';import{b64DecodeUnicode,b64EncodeUnicode,getSheetBlocksFromSnapshot,textDecoder,textEncoder,transformDocumentDataToSnapshot,transformSnapshotToDocumentData,transformSnapshotToWorkbookData,transformWorkbookDataToSnapshot}from'@univerjs-pro/collaboration';import{deflateSync}from'fflate';const EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY=_0x4a1936(0x1f1),configSymbol=Symbol(EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY),defaultPluginConfig={};var name=_0x4a1936(0x2b1),version=_0x4a1936(0x1a8);function _typeof(_0x39f4d2){'@babel/helpers - typeof';const _0x1dfdf4=_0x4a1936;return _typeof='function'==typeof Symbol&&_0x1dfdf4(0x2d7)==typeof Symbol[_0x1dfdf4(0x289)]?function(_0x5f0de5){return typeof _0x5f0de5;}:function(_0x5434eb){const _0x324810=_0x1dfdf4;return _0x5434eb&&_0x324810(0x26a)==typeof Symbol&&_0x5434eb[_0x324810(0x2df)]===Symbol&&_0x5434eb!==Symbol[_0x324810(0x2c2)]?_0x324810(0x2d7):typeof _0x5434eb;},_typeof(_0x39f4d2);}function toPrimitive(_0x15b5e9,_0x4ffa3f){const _0x58390c=_0x4a1936;if(_0x58390c(0x1e2)!=_typeof(_0x15b5e9)||!_0x15b5e9)return _0x15b5e9;var _0x49a95e=_0x15b5e9[Symbol['toPrimitive']];if(void 0x0!==_0x49a95e){var _0x12e6a6=_0x49a95e[_0x58390c(0x29e)](_0x15b5e9,_0x4ffa3f||_0x58390c(0x215));if(_0x58390c(0x1e2)!=_typeof(_0x12e6a6))return _0x12e6a6;throw new TypeError(_0x58390c(0x25b));}return('string'===_0x4ffa3f?String:Number)(_0x15b5e9);}function toPropertyKey(_0x4a8043){var _0x29154a=toPrimitive(_0x4a8043,'string');return'symbol'==_typeof(_0x29154a)?_0x29154a:_0x29154a+'';}function _defineProperty(_0x4027bd,_0x52b68b,_0xc2d65f){const _0x3328bf=_0x4a1936;return(_0x52b68b=toPropertyKey(_0x52b68b))in _0x4027bd?Object[_0x3328bf(0x29d)](_0x4027bd,_0x52b68b,{'value':_0xc2d65f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4027bd[_0x52b68b]=_0xc2d65f,_0x4027bd;}let UploadNotificationState=function(_0x52cb5f){const _0x116c78=_0x4a1936;return _0x52cb5f[_0x52cb5f['UPLOADING']=0x0]=_0x116c78(0x2d4),_0x52cb5f[_0x52cb5f[_0x116c78(0x2ba)]=0x1]=_0x116c78(0x2ba),_0x52cb5f[_0x52cb5f[_0x116c78(0x2a4)]=0x2]=_0x116c78(0x2a4),_0x52cb5f;}({});const IUploadNotificationService=createIdentifier(_0x4a1936(0x2aa));var UploadNotificationService=class extends Disposable{constructor(){const _0x736cbb=_0x4a1936;super(),_defineProperty(this,'_visible$',new Subject()),_defineProperty(this,_0x736cbb(0x218),new Subject()),_defineProperty(this,'_list$',new Subject()),_defineProperty(this,_0x736cbb(0x2ae),this[_0x736cbb(0x1a1)]['asObservable']()),_defineProperty(this,_0x736cbb(0x26c),this[_0x736cbb(0x218)][_0x736cbb(0x25f)]()),_defineProperty(this,_0x736cbb(0x23a),this[_0x736cbb(0x27c)][_0x736cbb(0x25f)]()),_defineProperty(this,_0x736cbb(0x2be),[]);}[_0x4a1936(0x243)](){const _0x2f8edc=_0x4a1936;super[_0x2f8edc(0x243)](),this[_0x2f8edc(0x1a1)][_0x2f8edc(0x1b7)](),this[_0x2f8edc(0x218)]['complete'](),this[_0x2f8edc(0x27c)]['complete']();}['show'](){const _0x299eda=_0x4a1936;this[_0x299eda(0x1a1)][_0x299eda(0x2b4)](!![]);}[_0x4a1936(0x28b)](){const _0x5f342b=_0x4a1936;this[_0x5f342b(0x1a1)][_0x5f342b(0x2b4)](![]);}[_0x4a1936(0x1d7)](_0x7b9137){const _0x213cee=_0x4a1936;this[_0x213cee(0x218)][_0x213cee(0x2b4)](_0x7b9137);}[_0x4a1936(0x287)](_0x16ce91){const _0x1fcea0=_0x4a1936;this['_list'][_0x1fcea0(0x2d2)](_0x16ce91),this[_0x1fcea0(0x27c)][_0x1fcea0(0x2b4)](this[_0x1fcea0(0x2be)]);}};function LinkList(_0x44cba7){const _0xc0b795=_0x4a1936,{list:_0x2e3e27}=_0x44cba7;function _0x3a2bea(_0x5ced56){switch(_0x5ced56){case 0x1:return jsx(DocMultiIcon,{});case 0x2:return jsx(XlsxMultiIcon,{});case 0x3:return jsx(SlideMultiIcon,{});default:return null;}}return jsx(_0xc0b795(0x276),{'className':clsx(_0xc0b795(0x207),scrollbarClassName),'children':jsx('ul',{'className':_0xc0b795(0x2e0),'children':_0x2e3e27['map']((_0x186944,_0x44001f)=>{const _0xc21e4=_0xc0b795;return jsx('li',{'children':jsxs('a',{'className':_0xc21e4(0x1c1),'href':_0x186944[_0xc21e4(0x1b6)],'target':_0xc21e4(0x21d),'rel':_0xc21e4(0x2b0),'children':[jsxs(_0xc21e4(0x1ab),{'className':_0xc21e4(0x264),'children':[jsx(_0xc21e4(0x1ab),{'className':'univer-flex\x20univer-h-5\x20univer-text-xl','children':_0x3a2bea(_0x186944[_0xc21e4(0x2e4)])}),jsx(Tooltip,{'showIfEllipsis':!![],'title':_0x186944['name'],'asChild':!![],'children':jsx(_0xc21e4(0x1ab),{'className':_0xc21e4(0x229),'children':_0x186944[_0xc21e4(0x1b5)]})})]}),jsx(_0xc21e4(0x1ab),{'className':_0xc21e4(0x255),'children':jsx(ShareRangeIcon,{})})]})},_0x44001f);})})});}const DOCX='application/vnd.openxmlformats-officedocument.wordprocessingml.document',XLSX=_0x4a1936(0x222),XLSM=_0x4a1936(0x2ad),XLTX=_0x4a1936(0x299),PPTX=_0x4a1936(0x21a),UNIT_CONTENT_TYPE={[UniverInstanceType[_0x4a1936(0x2c7)]]:[''],[UniverInstanceType[_0x4a1936(0x2a7)]]:[DOCX],[UniverInstanceType[_0x4a1936(0x1c7)]]:[XLSX,XLSM,XLTX],[UniverInstanceType['UNIVER_SLIDE']]:[PPTX],[UniverInstanceType[_0x4a1936(0x1de)]]:[''],[UniverInstanceType[_0x4a1936(0x1a9)]]:['']},CONTENT_TYPE_EXTNAME={[DOCX]:_0x4a1936(0x2a0),[XLSX]:_0x4a1936(0x284),[XLSM]:_0x4a1936(0x1f3),[XLTX]:_0x4a1936(0x267),[PPTX]:_0x4a1936(0x22a)};function downloadFileByURL(_0x56f3fb,_0x48eb86,_0x1fb463){const _0x16e8d9=_0x4a1936,_0x3e5145=document[_0x16e8d9(0x216)]('a');_0x3e5145[_0x16e8d9(0x238)]=_0x56f3fb,_0x3e5145['style'][_0x16e8d9(0x226)]=_0x16e8d9(0x1d3),_0x3e5145[_0x16e8d9(0x1e3)]=_0x48eb86+'.'+_0x1fb463,document[_0x16e8d9(0x24d)]['appendChild'](_0x3e5145),_0x3e5145[_0x16e8d9(0x1ad)](),document[_0x16e8d9(0x24d)][_0x16e8d9(0x1ee)](_0x3e5145);}function downloadFile(_0x3b2343,_0x5305a5,_0xee9604){const _0x202772=_0x4a1936,_0x10eba5=URL[_0x202772(0x260)](_0x3b2343);downloadFileByURL(_0x10eba5,_0x5305a5,_0xee9604),URL[_0x202772(0x279)](_0x10eba5);}function getUniverInstanceTypeByFile(_0x5bf7f6){const _0x5f2fca=_0x4a1936,_0x2325f5=_0x5bf7f6[_0x5f2fca(0x1b5)]['split']('.')[_0x5f2fca(0x1f7)]();if(!_0x2325f5)return UniverInstanceType[_0x5f2fca(0x2c7)];const _0x37c6a0=getUnitTypeList();let _0x245503=UniverInstanceType[_0x5f2fca(0x2c7)];return _0x37c6a0['some'](_0x30711e=>{if(isUniverInstanceTypeFileByExt(_0x2325f5,_0x30711e))return _0x245503=_0x30711e,!![];return![];}),_0x245503;}function getUnitTypeList(){const _0x24a554=_0x4a1936;return Object['values'](UniverInstanceType)[_0x24a554(0x277)](_0x48aa9f=>typeof _0x48aa9f===_0x24a554(0x29f));}function isUniverInstanceTypeFileByExt(_0x1db9cb,_0x29e1b4){const _0x3945c4=_0x4a1936;return UNIT_CONTENT_TYPE[_0x29e1b4][_0x3945c4(0x28a)](_0x5a3402=>(CONTENT_TYPE_EXTNAME[_0x5a3402]||'')[_0x3945c4(0x1f2)]())[_0x3945c4(0x2d9)](_0x1db9cb[_0x3945c4(0x1f2)]());}function getUploadFile(_0x561b51,_0x4d49b6=![]){const _0x24ab58=_0x4a1936,_0x282c2f=_0x561b51[_0x24ab58(0x28a)](_0x5c35b9=>UNIT_CONTENT_TYPE[_0x5c35b9])['join'](',');return new Promise((_0x353e29,_0x596927)=>{const _0x438474=_0x24ab58,_0x30d887=document[_0x438474(0x216)](_0x438474(0x219));_0x30d887[_0x438474(0x2e4)]=_0x438474(0x2d8),_0x30d887[_0x438474(0x1e9)]=_0x282c2f,_0x30d887[_0x438474(0x21f)]=_0x4d49b6,_0x30d887[_0x438474(0x22d)]('change',_0x20c593=>{const _0x529aae=_0x438474,_0xfb65df=_0x20c593[_0x529aae(0x247)];if(!_0xfb65df[_0x529aae(0x1c8)]||_0xfb65df[_0x529aae(0x1c8)][_0x529aae(0x1a6)]===0x0){_0x596927(null);throw new Error(_0x529aae(0x24c));}_0x353e29(_0xfb65df[_0x529aae(0x1c8)]);}),_0x30d887[_0x438474(0x1ad)]();});}async function getFileByURL(_0x776d4b,_0x1c5736){const _0xc478d6=_0x4a1936;try{var _0x2eb774,_0x25e975,_0x41180a;const _0x1b01de=await _0x1c5736[_0xc478d6(0x256)](_0x776d4b,{'responseType':_0xc478d6(0x1a2)}),_0x20b670=_0x1b01de[_0xc478d6(0x24d)],_0xbc70e9=(_0x2eb774=(_0x25e975=_0x1b01de['headers'][_0xc478d6(0x256)](_0xc478d6(0x206)))===null||_0x25e975===void 0x0?void 0x0:_0x25e975[_0xc478d6(0x223)](',\x20'))!==null&&_0x2eb774!==void 0x0?_0x2eb774:_0xc478d6(0x1bd);let _0x3e31d8=_0xc478d6(0x1f5)+(CONTENT_TYPE_EXTNAME[_0xbc70e9]||_0xc478d6(0x284));const _0x4130a5=(_0x41180a=_0x1b01de[_0xc478d6(0x227)]['get']('content-disposition'))===null||_0x41180a===void 0x0?void 0x0:_0x41180a['join'](',\x20');if(_0x4130a5){const _0x3bddc3=_0x4130a5[_0xc478d6(0x225)](/filename=(.+)/);if(_0x3bddc3&&_0x3bddc3[0x1])_0x3e31d8=_0x3bddc3[0x1];}else _0x3e31d8=getFileNameFromURL(_0x776d4b)||_0x3e31d8;return new File([_0x20b670],_0x3e31d8,{'type':_0xbc70e9});}catch(_0xc672dd){console[_0xc478d6(0x236)](_0xc478d6(0x293),_0xc672dd);return;}}function getFileNameFromURL(_0x5a593a){const _0x2781a0=_0x4a1936;try{return new URL(_0x5a593a)[_0x2781a0(0x27d)][_0x2781a0(0x214)]('/')[_0x2781a0(0x1f7)]();}catch(_0x54429e){console[_0x2781a0(0x236)](_0x2781a0(0x1d9),_0x54429e);return;}}function bufferToFile(_0x51d00e){const _0x2385e5=new Blob([_0x51d00e['buffer']],{'type':'application/json'});return new File([_0x2385e5],'file.json');}function replaceType(_0x45d2fd,_0x495d03){const _0x1e5f1d=_0x4a1936;return _0x45d2fd[_0x1e5f1d(0x1ca)](_0x1e5f1d(0x235),_0x495d03);}function replaceTaskID(_0x5eaa51,_0x512b34){return _0x5eaa51['replace']('{taskID}',_0x512b34);}function replaceFileID(_0x5c5ed1,_0x5e3e8b){const _0x46c73=_0x4a1936;return _0x5c5ed1[_0x46c73(0x1ca)](_0x46c73(0x2b5),_0x5e3e8b);}function __decorateParam(_0x33a333,_0x585645){return function(_0x547c2a,_0x29268b){_0x585645(_0x547c2a,_0x29268b,_0x33a333);};}function __decorate(_0xb2bb88,_0x5afc35,_0x14d49b,_0x247e1f){const _0x57fae8=_0x4a1936;var _0x2b0f62=arguments[_0x57fae8(0x1a6)],_0x20d666=_0x2b0f62<0x3?_0x5afc35:_0x247e1f===null?_0x247e1f=Object[_0x57fae8(0x261)](_0x5afc35,_0x14d49b):_0x247e1f,_0x147cb6;if(typeof Reflect===_0x57fae8(0x1e2)&&typeof Reflect['decorate']==='function')_0x20d666=Reflect[_0x57fae8(0x258)](_0xb2bb88,_0x5afc35,_0x14d49b,_0x247e1f);else{for(var _0x1146cc=_0xb2bb88['length']-0x1;_0x1146cc>=0x0;_0x1146cc--)if(_0x147cb6=_0xb2bb88[_0x1146cc])_0x20d666=(_0x2b0f62<0x3?_0x147cb6(_0x20d666):_0x2b0f62>0x3?_0x147cb6(_0x5afc35,_0x14d49b,_0x20d666):_0x147cb6(_0x5afc35,_0x14d49b))||_0x20d666;}return _0x2b0f62>0x3&&_0x20d666&&Object[_0x57fae8(0x29d)](_0x5afc35,_0x14d49b,_0x20d666),_0x20d666;}const DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY='/universer-api/stream/file/upload',DEFAULT_EXCHANGE_IMPORT_SERVER_URL_KEY=_0x4a1936(0x224),DEFAULT_EXCHANGE_EXPORT_SERVER_URL_KEY=_0x4a1936(0x290),DEFAULT_EXCHANGE_GET_TASK_SERVER_URL_KEY='/universer-api/exchange/task/{taskID}',DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY=_0x4a1936(0x2ab),DEFAULT_EXCHANGE_MAX_TIMEOUT_TIME_KEY=0x1d4c0,IRequestService=createIdentifier(_0x4a1936(0x2cc));let RequestService=class RequestService{constructor(_0x5a854d,_0x381fcf){const _0xc35d59=_0x4a1936;this['_configService']=_0x5a854d,this[_0xc35d59(0x257)]=_0x381fcf,_defineProperty(this,_0xc35d59(0x1cf),new Set());}[_0x4a1936(0x243)](){}['setTaskInterrupted'](_0x23d062){const _0x331c0e=_0x4a1936;this['_taskInterrupted'][_0x331c0e(0x244)](_0x23d062);}[_0x4a1936(0x2b2)](){const _0x250328=_0x4a1936;this['_taskInterrupted'][_0x250328(0x291)]();}async[_0x4a1936(0x1e7)](_0x420108,_0x337d4d=0x0,_0x5a9f30=![]){const _0x30d732=_0x4a1936;if(typeof _0x420108==='string'){const _0x1152cb=await getFileByURL(_0x420108,this[_0x30d732(0x257)]);if(!_0x1152cb)throw new Error('upload\x20request\x20failed:\x20failed\x20to\x20read\x20source\x20file\x20from\x20url');_0x420108=_0x1152cb;}_0x337d4d=_0x337d4d||_0x420108[_0x30d732(0x2e2)];const _0xb3f2=new FormData();_0xb3f2[_0x30d732(0x2da)]('file',_0x420108);try{const _0x15d2ba=this[_0x30d732(0x240)]()+_0x30d732(0x292)+_0x337d4d+_0x30d732(0x1a4)+FileSource[_0x30d732(0x1d4)]+'&flate='+_0x5a9f30,_0xc56b45={'body':_0xb3f2},_0x5d1672=(await this[_0x30d732(0x257)][_0x30d732(0x239)](_0x15d2ba,_0xc56b45))[_0x30d732(0x24d)];if(_0x5d1672[_0x30d732(0x236)]&&_0x5d1672[_0x30d732(0x236)][_0x30d732(0x2af)]!==ErrorCode['OK'])throw new Error(this[_0x30d732(0x28e)](_0x30d732(0x2b7),_0x5d1672[_0x30d732(0x236)]));return _0x5d1672;}catch(_0x2b9a3a){if(_0x2b9a3a instanceof Error)throw _0x2b9a3a;throw new Error(this['_buildHttpErrorMessage']('upload\x20request\x20failed',_0x2b9a3a));}}async['import'](_0x5b0a29){const _0x59ff8e=_0x4a1936,{fileID:_0x2d763b,type:_0x5d67b8,outputType:_0x142be9,minSheetColumnCount:_0x4cba99,minSheetRowCount:_0x597c16}=_0x5b0a29;try{const _0x210367=replaceType(this[_0x59ff8e(0x265)](),''+_0x5d67b8),_0xbbf74f={'body':{'fileID':_0x2d763b,'outputType':_0x142be9,'minSheetColumnCount':_0x4cba99,'minSheetRowCount':_0x597c16}},_0x2e0a92=(await this['_httpService'][_0x59ff8e(0x239)](_0x210367,_0xbbf74f))['body'];if(_0x2e0a92['error']&&_0x2e0a92[_0x59ff8e(0x236)][_0x59ff8e(0x2af)]!==ErrorCode['OK'])return;return _0x2e0a92;}catch(_0x3e643c){return;}}async['export'](_0x1e04ab){const _0x47ba4d=_0x4a1936,{unitID:_0x3036a2,jsonID:_0x54b832,type:_0x595327,sscSwitch:_0x1b26e1,useImageUrl:_0x4cd050,ignoreTableExport:_0x59ddea}=_0x1e04ab;try{const _0x20a144=replaceType(this['_getExportURL'](),''+_0x595327),_0x5816a1={'body':{'unitID':_0x3036a2,'jsonID':_0x54b832,'type':_0x595327,'sscSwitch':_0x1b26e1,'useImageUrl':_0x4cd050,'ignoreTableExport':_0x59ddea}},_0x10d457=(await this[_0x47ba4d(0x257)][_0x47ba4d(0x239)](_0x20a144,_0x5816a1))['body'];if(_0x10d457[_0x47ba4d(0x236)]&&_0x10d457['error']['code']!==ErrorCode['OK'])return;return _0x10d457;}catch(_0x55abab){return;}}async[_0x4a1936(0x2d1)](_0x407e2a){return new Promise((_0x1e764f,_0x5958a9)=>{const _0xd30176=_0x3e7a;try{let _0x278f91=0x0;const _0x33f720=replaceTaskID(this[_0xd30176(0x20c)](),''+_0x407e2a),_0xbc1f54=this[_0xd30176(0x1f8)](),_0x269812=async()=>{const _0x2ae777=_0xd30176;if(this[_0x2ae777(0x1cf)]['has'](_0x407e2a))return;const _0x6f99b3=(await this[_0x2ae777(0x257)]['get'](_0x33f720))[_0x2ae777(0x24d)];if(_0x6f99b3['error']&&_0x6f99b3[_0x2ae777(0x236)][_0x2ae777(0x2af)]===ErrorCode['OK']){if(_0x6f99b3[_0x2ae777(0x1ea)]==='done')_0x1e764f(_0x6f99b3);else{if(_0x6f99b3[_0x2ae777(0x1ea)]===_0x2ae777(0x1cd)){let _0x424fd7=0x3e8;if(_0x278f91>=_0xbc1f54){_0x5958a9(_0x6f99b3);return;}else{if(_0x278f91>=0x7530)_0x424fd7=0x1388;}_0x278f91+=_0x424fd7,setTimeout(_0x269812,_0x424fd7);}else _0x5958a9(_0x6f99b3);}}else _0x5958a9(_0x6f99b3);};_0x269812();}catch(_0x4f72d7){_0x5958a9(_0x4f72d7 instanceof Error?_0x4f72d7:new Error(String(_0x4f72d7)));}});}async['signUrl'](_0x4f140d){try{const _0xd3124d=replaceFileID(this['_getSignURL'](),''+_0x4f140d);return(await this['_httpService']['get'](_0xd3124d))['body'];}catch(_0x70511b){return;}}async[_0x4a1936(0x20b)](_0x31133d){const _0x3bc376=_0x4a1936;try{return(await this['_httpService']['get'](_0x31133d,{'responseType':_0x3bc376(0x23f)}))[_0x3bc376(0x24d)];}catch(_0x34a7f9){return;}}[_0x4a1936(0x28e)](_0x4ffb18,_0x58495c){const _0x4a2687=_0x4a1936,_0x127cb2=this[_0x4a2687(0x1f6)](_0x58495c);if(!_0x127cb2)return _0x4ffb18;return _0x4ffb18+':\x20'+_0x127cb2;}[_0x4a1936(0x1aa)](_0x440067,_0x3ca920){const _0x229125=_0x4a1936;if(_0x3ca920 instanceof HTTPResponseError){const _0x777218=typeof _0x3ca920[_0x229125(0x1ea)]===_0x229125(0x29f)?''+_0x3ca920['status']+(_0x3ca920[_0x229125(0x213)]?'\x20'+_0x3ca920[_0x229125(0x213)]:''):void 0x0,_0x10c1b7=this['_extractErrorDetail'](_0x3ca920[_0x229125(0x236)]);if(_0x777218&&_0x10c1b7)return _0x440067+_0x229125(0x2d0)+_0x777218+_0x229125(0x1b1)+_0x10c1b7;if(_0x777218)return _0x440067+_0x229125(0x2d0)+_0x777218;if(_0x10c1b7)return _0x440067+':\x20'+_0x10c1b7;return _0x440067;}const _0x657340=this[_0x229125(0x1f6)](_0x3ca920);if(!_0x657340)return _0x440067;return _0x440067+':\x20'+_0x657340;}[_0x4a1936(0x1f6)](_0xc9bd80){const _0x51e0ae=_0x4a1936;if(typeof _0xc9bd80===_0x51e0ae(0x1eb)){const _0x2a833d=_0xc9bd80[_0x51e0ae(0x1b0)]();return _0x2a833d['length']>0x0?_0x2a833d:void 0x0;}if(_0xc9bd80 instanceof Error)return this['_extractErrorDetail'](_0xc9bd80[_0x51e0ae(0x1f4)]);if(!_0xc9bd80||typeof _0xc9bd80!=='object'||Array['isArray'](_0xc9bd80))return;const _0x1d4400=_0xc9bd80,_0x1d681b=this[_0x51e0ae(0x1f6)](_0x1d4400[_0x51e0ae(0x1f4)]);if(_0x1d681b)return _0x1d681b;if(_0x1d4400[_0x51e0ae(0x236)]&&typeof _0x1d4400[_0x51e0ae(0x236)]===_0x51e0ae(0x1e2)&&!Array['isArray'](_0x1d4400[_0x51e0ae(0x236)])){const _0x20a17e=this['_extractErrorDetail'](_0x1d4400['error']);if(_0x20a17e)return _0x20a17e;}}[_0x4a1936(0x240)](){const _0x2896bf=_0x4a1936;var _0x235ec9;const _0x26b925=this['_configService'][_0x2896bf(0x205)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x235ec9=_0x26b925===null||_0x26b925===void 0x0?void 0x0:_0x26b925[_0x2896bf(0x211)])!==null&&_0x235ec9!==void 0x0?_0x235ec9:DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY;}['_getImportURL'](){const _0x56ab34=_0x4a1936;var _0x1d3dda;const _0x490efb=this['_configService'][_0x56ab34(0x205)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1d3dda=_0x490efb===null||_0x490efb===void 0x0?void 0x0:_0x490efb['importServerUrl'])!==null&&_0x1d3dda!==void 0x0?_0x1d3dda:DEFAULT_EXCHANGE_IMPORT_SERVER_URL_KEY;}[_0x4a1936(0x2ca)](){const _0x398582=_0x4a1936;var _0x511412;const _0x360ac8=this[_0x398582(0x2e1)][_0x398582(0x205)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x511412=_0x360ac8===null||_0x360ac8===void 0x0?void 0x0:_0x360ac8['exportServerUrl'])!==null&&_0x511412!==void 0x0?_0x511412:DEFAULT_EXCHANGE_EXPORT_SERVER_URL_KEY;}['_getTaskURL'](){const _0x4190c4=_0x4a1936;var _0x191c18;const _0x319045=this[_0x4190c4(0x2e1)]['getConfig'](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x191c18=_0x319045===null||_0x319045===void 0x0?void 0x0:_0x319045[_0x4190c4(0x2a1)])!==null&&_0x191c18!==void 0x0?_0x191c18:DEFAULT_EXCHANGE_GET_TASK_SERVER_URL_KEY;}[_0x4a1936(0x1dd)](){const _0x161c5a=_0x4a1936;var _0x580c2b;const _0xbaf671=this[_0x161c5a(0x2e1)][_0x161c5a(0x205)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x580c2b=_0xbaf671===null||_0xbaf671===void 0x0?void 0x0:_0xbaf671[_0x161c5a(0x1a0)])!==null&&_0x580c2b!==void 0x0?_0x580c2b:DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY;}[_0x4a1936(0x1f8)](){const _0xa2398b=_0x4a1936;var _0x1be9e3;const _0x33c0c5=this[_0xa2398b(0x2e1)]['getConfig'](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1be9e3=_0x33c0c5===null||_0x33c0c5===void 0x0?void 0x0:_0x33c0c5[_0xa2398b(0x27a)])!==null&&_0x1be9e3!==void 0x0?_0x1be9e3:DEFAULT_EXCHANGE_MAX_TIMEOUT_TIME_KEY;}};RequestService=__decorate([__decorateParam(0x0,IConfigService),__decorateParam(0x1,Inject(HTTPService))],RequestService);function transformWorkbookSnapshotMetaToString(_0x2cf10a){const _0x468c67=_0x4a1936,_0x256afd=_0x2cf10a['workbook'];if(!_0x256afd)return null;const _0x3865e8={};if(_0x256afd[_0x468c67(0x266)])Object[_0x468c67(0x281)](_0x256afd[_0x468c67(0x266)])['forEach'](_0x56aa53=>{const _0x5eaed3=_0x468c67,_0x20ed34=_0x256afd[_0x5eaed3(0x266)][_0x56aa53];_0x3865e8[_0x56aa53]={..._0x20ed34,'originalMeta':b64EncodeUnicode(textDecoder[_0x5eaed3(0x1ff)](_0x20ed34[_0x5eaed3(0x2b6)]))};});const _0x960ddc=b64EncodeUnicode(textDecoder['decode'](_0x256afd[_0x468c67(0x2b6)]));return{..._0x2cf10a,'workbook':{..._0x256afd,'originalMeta':_0x960ddc,'sheets':_0x3865e8},'doc':{}};}function _0x4b1f(){const _0x2edff0=['_addTotalCount','_getUnitIDDoc','button','text','_getUploadFileURL','exchange.tooLarge','exchange.networkError','dispose','add','taskID','importDOCXToSnapshot','currentTarget','univer-h-7\x20univer-cursor-pointer\x20univer-select-none\x20univer-rounded-md\x20univer-border-0\x20univer-border-transparent\x20univer-bg-transparent\x20univer-px-2\x20univer-py-0\x20univer-text-sm\x20univer-text-primary-600\x20univer-transition-all\x20univer-duration-150\x20hover:univer-bg-primary-50','pluginName','success','_progress$','No\x20file\x20selected','body','origin','copyFileMeta','FileId','_getIgnoreTableExport','blockID','Failed\x20to\x20get\x20unitID\x20from\x20task','Method\x20not\x20implemented.','univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-border-none\x20univer-bg-transparent\x20univer-p-0\x20univer-text-base\x20univer-text-gray-600\x20univer-outline-none\x20univer-transition-colors\x20hover:univer-bg-gray-200\x20dark:!univer-text-gray-200\x20dark:hover:!univer-bg-gray-600','get','_httpService','decorate','fileID','INTERNAL_ERROR','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_sheetBlockCache','Failed\x20to\x20get\x20taskID\x20from\x20import\x20response','getCurrentUnitForType','asObservable','createObjectURL','getOwnPropertyDescriptor','data','minSheetColumnCount','univer-flex\x20univer-w-[calc(100%-48px)]\x20univer-items-center','_getImportURL','sheets','xltx','unitID','_getMinSheetColumnCount','function','outputType','state$','importXLSXToUnitId','_importTaskId','sign\x20url\x20error','univer-h-1.5\x20univer-rounded-lg\x20univer-bg-primary-600\x20univer-transition-[width]\x20univer-duration-500','exchange.downloading','_showUploadMessage','_exchangeService','univer-flex\x20univer-size-6\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-border-none\x20univer-bg-transparent\x20univer-text-gray-500\x20univer-transition-colors\x20hover:univer-bg-gray-200\x20dark:!univer-bg-gray-600','exchange.uploading','div','filter','upload\x20failed:\x20FileId\x20is\x20empty','revokeObjectURL','maxTimeoutTime','getResourcesRequest','_list$','pathname','upload\x20failed:\x20missing\x20FileId\x20in\x20response','catch','exportXLSXByUnitId','keys','CONNECTOR_DATA_TOO_LARGE','univer-text-red-500','xlsx','_completeProgress','interruptImportTask','pushLink','_uploadNotificationService','iterator','map','hide','_uiPartsService','_signUrl','_buildProtocolErrorMessage','Success','/universer-api/exchange/{type}/export','clear','?size=','Error\x20fetching\x20file\x20from\x20URL:','1812NNctVm','jsonID','disableCellImageConversion','exchange.internalError','getCurrentUnitOfType','application/vnd.openxmlformats-officedocument.spreadsheetml.template','setTaskInterrupted','_registerComponents','importFileToUnitId','defineProperty','call','number','docx','getTaskServerUrl','rev','_exportBySnapshot','ERROR','options','_getUnitDocJson','UNIVER_DOC','disposeUnit','UNDEFINED','univer-pro.exchange-client.upload-notification.service','/universer-api/file/{fileID}/sign-url','UNIVER_EXCHANGE_CLIENT_PLUGIN','application/vnd.ms-excel.sheet.macroEnabled.12','visible$','code','noreferrer','@univerjs-pro/exchange-client','clearTaskInterrupted','snapshot','next','{fileID}','originalMeta','upload\x20request\x20failed','8UZkXMy','exchange.wait','SUCCESS','48LPNpDa','2913003Scqyjb','exportXLSXBySnapshot','_list','resolve','registerComponent','17mSvqOs','prototype','progress$','import\x20error','exchange.cancel','show','UNIVER_UNKNOWN','_importToSnapshot','importXLSXToSnapshot','_getExportURL','Get\x20outputType\x20error','univer-pro.exchange-client.request.service','floor','_totalUploadTaskCount','getUnitOnRev',':\x20HTTP\x20','getTask','unshift','searchParams','UPLOADING','_addDoneTask','_requestState$','symbol','file','includes','append','doc','exchange.uploadSuccessTip','onStarting','_import','constructor','univer-m-0\x20univer-flex\x20univer-list-none\x20univer-flex-col\x20univer-gap-2\x20univer-p-0','_configService','size','sheetBlocks','type','downloadEndpointUrl','signUrlServerUrl','_visible$','blob','getUnitId','&source=','exchange.interrupt','length','univer-pl-2\x20univer-pr-4','0.22.1','UNRECOGNIZED','_buildHttpErrorMessage','span','_getLinkByUnitId','click','univer-text-green-500','parse','trim','\x20-\x20','enableServerSideComputing','encode','_getDisableCellImageConversion','name','link','complete','title','_getEnableServerSideComputing','_clearProgress','exchange.fileTypeError','onReady','application/octet-stream','_getUnitID','block\x20is\x20required','packageName','univer-flex\x20univer-justify-between\x20univer-rounded\x20univer-border-none\x20univer-bg-transparent\x20univer-px-2\x20univer-py-1\x20univer-text-gray-900\x20univer-no-underline\x20univer-outline-none\x20univer-transition-colors\x20hover:univer-bg-gray-200\x20dark:!univer-text-white\x20dark:hover:!univer-bg-gray-600','_export','saveSheetBlock','univer-pro.exchange-client.operate.service','url','set','UNIVER_SHEET','files','workbook.json','replace','univer-mx-0\x20univer-mb-3\x20univer-mt-4\x20univer-h-1.5\x20univer-w-[324px]\x20univer-rounded-lg\x20univer-bg-gray-200','_getUnitName','pending','_getUnitJson','_taskInterrupted','unsubscribe','_uploadTaskNotDone','_messageService','none','HttpImport','import','interrupt','updateState','version','Error\x20getting\x20file\x20name\x20from\x20URL:','_fileTypeError','_univerInstanceService','Failed\x20to\x20get\x20fileID\x20from\x20task','_getSignURL','UNIVER_PROJECT','subscribe','univer-ml-1.5\x20univer-font-semibold\x20univer-leading-6\x20univer-text-gray-900\x20dark:!univer-text-white','127934GSXTYm','object','download','_getMinSheetRowCount','_upload','getDeserializedSheetBlock','upload','fetchMissingChangesets','accept','status','string','Failed\x20to\x20get\x20jsonID\x20from\x20task','application/json','removeChild','getSheetBlock','Error','exchange-client.config','toLowerCase','xlsm','message','file.','_extractErrorDetail','pop','_getMaxPollingTime','toString','_doneUploadTaskCount','8CtzhbK','exportDOCXByUnitId','univer-h-6\x20univer-text-2xl','_importFileToUnitId','decode','1312689zGPWLr','export','updateSnapshot','exchange.uploadSuccess','Failed\x20to\x20transform\x20snapshot\x20to\x20string','getConfig','Content-Type','univer-mt-5\x20univer-max-h-72\x20univer-overflow-y-auto\x20univer-overflow-x-hidden','_showNetworkError','_injector','requestState$','getTextFromUrl','_getTaskURL','saveSnapshot','_requestService','registerLink','importDOCXToUnitId','uploadFileServerUrl','3950790GvITIb','statusText','split','default','createElement','Info','_state$','input','application/vnd.openxmlformats-officedocument.presentationml.presentation','444565dTNqIf','182941EzkbGs','_blank','exportDOCXBySnapshot','multiple','univer-mt-3\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-2\x20univer-pr-1','_emitProgress','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','join','/universer-api/exchange/{type}/import','match','display','headers','_config','univer-ml-1\x20univer-truncate\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','pptx','_showDownloadMessage','export\x20error','addEventListener','minSheetRowCount','univer-fixed\x20univer-bottom-12\x20univer-right-3\x20univer-z-[1000]\x20univer-box-border\x20univer-flex\x20univer-w-[372px]\x20univer-flex-col\x20univer-rounded-md\x20univer-bg-white\x20univer-px-3\x20univer-pb-4\x20univer-pt-5\x20univer-shadow-md','.json','getSnapshot','_localeService','Warning','581124lFPnqw','{type}','error','stringify','href','post','list$','disposeWithMe'];_0x4b1f=function(){return _0x2edff0;};return _0x4b1f();}function transformDocumentSnapshotMetaToString(_0x2183a0){const _0x272bc3=_0x4a1936,_0x14764d=_0x2183a0[_0x272bc3(0x2db)];if(!_0x14764d)return null;const _0x30fd91=b64EncodeUnicode(textDecoder[_0x272bc3(0x1ff)](_0x14764d[_0x272bc3(0x2b6)]));return{..._0x2183a0,'workbook':{},'doc':{..._0x14764d,'originalMeta':_0x30fd91}};}function transformSheetBlockMetaToString(_0x4a65f7){const _0x14ccfe={};return _0x4a65f7['forEach'](_0x474588=>{const _0x4b0375=_0x3e7a;_0x14ccfe[_0x474588['id']]={..._0x474588,'data':b64EncodeUnicode(textDecoder[_0x4b0375(0x1ff)](_0x474588['data']))};}),_0x14ccfe;}async function transformWorkbookDataToSnapshotJson(_0x469553){const _0x52cf0d=_0x4a1936;var _0x1af96c;const _0x5cce2e={'metadata':void 0x0},_0x3570cd=_0x469553['id'],_0x56200d=(_0x1af96c=_0x469553[_0x52cf0d(0x2a2)])!==null&&_0x1af96c!==void 0x0?_0x1af96c:0x0,_0x1aa259=new ClientSnapshotServerService(),{snapshot:_0xecb05}=await transformWorkbookDataToSnapshot(_0x5cce2e,_0x469553,_0x3570cd,_0x56200d,_0x1aa259),_0x5dba9a=await getSheetBlocksFromSnapshot(_0xecb05,_0x1aa259),_0x5d2a65=transformWorkbookSnapshotMetaToString(_0xecb05);if(!_0x5d2a65)throw new Error(_0x52cf0d(0x204));return{'snapshot':_0x5d2a65,'sheetBlocks':transformSheetBlockMetaToString(_0x5dba9a)};}async function transformDocumentDataToSnapshotJson(_0x2850d9){const _0x4795fa=_0x4a1936;var _0x3e5ba3;const _0x30b2a7={'metadata':void 0x0},_0x445d02=_0x2850d9['id'],{snapshot:_0x2a796e}=await transformDocumentDataToSnapshot(_0x30b2a7,_0x2850d9,_0x445d02,(_0x3e5ba3=_0x2850d9[_0x4795fa(0x2a2)])!==null&&_0x3e5ba3!==void 0x0?_0x3e5ba3:0x0,new ClientSnapshotServerService()),_0x24375b=transformDocumentSnapshotMetaToString(_0x2a796e);if(!_0x24375b)throw new Error(_0x4795fa(0x204));return{'snapshot':_0x24375b,'sheetBlocks':{}};}async function transformSnapshotJsonToWorkbookData(_0x522318){const _0x2f4087=_0x4a1936,_0x4587ab=_0x522318['snapshot'],_0x236e32=_0x522318[_0x2f4087(0x2e3)]||{};return await transformSnapshotToWorkbookData(_0x4587ab,Object[_0x2f4087(0x281)](_0x236e32)[_0x2f4087(0x28a)](_0x2a52f8=>_0x236e32[_0x2a52f8])[_0x2f4087(0x28a)](_0x13fc13=>{const _0x35ac6e=_0x2f4087;return{..._0x13fc13,'data':_0x13fc13[_0x35ac6e(0x262)]?JSON['parse'](b64DecodeUnicode(_0x13fc13[_0x35ac6e(0x262)])):void 0x0};}));}function transformSnapshotJsonToDocumentData(_0x11d843){const _0x310ca5=_0x4a1936,_0x217868=_0x11d843[_0x310ca5(0x2b3)];return transformSnapshotToDocumentData(_0x217868);}var ClientSnapshotServerService=class{constructor(){const _0x1e5b9e=_0x4a1936;_defineProperty(this,_0x1e5b9e(0x25c),new Map());}[_0x4a1936(0x2cf)](){const _0xc41f35=_0x4a1936;return Promise[_0xc41f35(0x2bf)]({'snapshot':{'unitID':'','type':UniverInstanceType['UNIVER_SHEET'],'rev':0x0,'workbook':void 0x0,'doc':void 0x0},'changesets':[],'error':{'code':ErrorCode['OK'],'message':''}});}[_0x4a1936(0x1ef)](_0x2aa779,_0x44defe){const _0x3f9755=_0x4a1936,_0x1b9dbd=this[_0x3f9755(0x25c)]['get'](_0x44defe[_0x3f9755(0x252)]);return Promise[_0x3f9755(0x2bf)]({'block':_0x1b9dbd,'error':{'code':ErrorCode['OK'],'message':''}});}[_0x4a1936(0x1e6)](_0x46f728,_0xba415d){const _0x27e595=_0x4a1936,_0x482f8c=this['_sheetBlockCache'][_0x27e595(0x256)](_0xba415d['blockID']);return Promise[_0x27e595(0x2bf)]({'block':_0x482f8c===void 0x0?void 0x0:{..._0x482f8c,'data':JSON[_0x27e595(0x1af)](textDecoder[_0x27e595(0x1ff)](_0x482f8c[_0x27e595(0x262)]))},'error':{'code':ErrorCode['OK'],'message':''}});}[_0x4a1936(0x1e8)](){const _0x3ff9d4=_0x4a1936;return Promise[_0x3ff9d4(0x2bf)]({'changesets':[],'error':{'code':ErrorCode['OK'],'message':''}});}[_0x4a1936(0x27b)](){return Promise['resolve']({'resources':{},'error':{'code':ErrorCode['OK'],'message':''}});}[_0x4a1936(0x20d)](){const _0x5cf8db=_0x4a1936;return Promise[_0x5cf8db(0x2bf)]({'error':{'code':ErrorCode['OK'],'message':''}});}[_0x4a1936(0x202)](){const _0x44a79d=_0x4a1936;return Promise[_0x44a79d(0x2bf)]({'error':{'code':ErrorCode['OK'],'message':''}});}[_0x4a1936(0x1c3)](_0x309a83,_0x51800b){const _0xe9dfe5=_0x4a1936,{block:_0x50a7f5}=_0x51800b;if(!_0x50a7f5)return Promise[_0xe9dfe5(0x2bf)]({'error':{'code':ErrorCode[_0xe9dfe5(0x2a9)],'message':_0xe9dfe5(0x1bf)},'blockID':''});return this[_0xe9dfe5(0x25c)][_0xe9dfe5(0x1c6)](_0x50a7f5['id'],_0x50a7f5),Promise[_0xe9dfe5(0x2bf)]({'error':{'code':ErrorCode['OK'],'message':''},'blockID':_0x50a7f5['id']});}['saveChangeset'](){return Promise['resolve']({'error':{'code':ErrorCode['OK'],'message':''},'concurrent':[]});}[_0x4a1936(0x24f)](){return Promise['resolve']({'error':void 0x0,'fileMetaId':''});}['getLatestCsReqIdBySid'](){return Promise['resolve']({'error':void 0x0,'latestReqID':0x0});}};const IExchangeService=createIdentifier('univer-pro.exchange-client.exchange.service');let ExchangeService=class ExchangeService extends Disposable{constructor(_0x94064c,_0x287221,_0x437f92){const _0x33f70a=_0x4a1936;super(),this[_0x33f70a(0x2e1)]=_0x94064c,this[_0x33f70a(0x257)]=_0x287221,this['_requestService']=_0x437f92,_defineProperty(this,_0x33f70a(0x26e),null),_defineProperty(this,_0x33f70a(0x2d6),new Subject()),_defineProperty(this,_0x33f70a(0x20a),this['_requestState$'][_0x33f70a(0x25f)]());}[_0x4a1936(0x243)](){const _0x1c6ed9=_0x4a1936;super[_0x1c6ed9(0x243)](),this[_0x1c6ed9(0x2d6)][_0x1c6ed9(0x1b7)]();}async['importDOCXToSnapshot'](_0x442fb7){const _0x4fd9fa=_0x4a1936,_0x843c04=await this[_0x4fd9fa(0x2c8)](_0x442fb7,UniverInstanceType[_0x4fd9fa(0x2a7)]);if(!_0x843c04||!_0x843c04[_0x4fd9fa(0x2b3)])return;const _0x816caa=transformSnapshotJsonToDocumentData(_0x843c04);if(!_0x816caa)return;return _0x816caa;}async[_0x4a1936(0x1fc)](_0x52dc7f){const _0x5ef902=_0x4a1936;return this[_0x5ef902(0x1c2)](_0x52dc7f,0x1,UniverInstanceType[_0x5ef902(0x2a7)]);}async[_0x4a1936(0x21e)](_0x5ad9f2){const _0x2fdf91=_0x4a1936,_0x45df7e=await transformDocumentDataToSnapshotJson(_0x5ad9f2);return this[_0x2fdf91(0x2a3)](_0x45df7e,UniverInstanceType[_0x2fdf91(0x2a7)]);}async['importXLSXToSnapshot'](_0x18c259){const _0x5b53f1=_0x4a1936,_0x287187=await this[_0x5b53f1(0x2c8)](_0x18c259,UniverInstanceType[_0x5b53f1(0x1c7)]);if(!_0x287187)return;const _0x817c90=await transformSnapshotJsonToWorkbookData(_0x287187);if(!_0x817c90)return;return _0x817c90;}async[_0x4a1936(0x280)](_0x40b0d3){const _0x16e08c=_0x4a1936;return this[_0x16e08c(0x1c2)](_0x40b0d3,0x1,UniverInstanceType[_0x16e08c(0x1c7)]);}async['exportXLSXBySnapshot'](_0x42d59e){const _0x15a483=_0x4a1936,_0x1dc120=await transformWorkbookDataToSnapshotJson(_0x42d59e);return this['_exportBySnapshot'](_0x1dc120,UniverInstanceType[_0x15a483(0x1c7)]);}async[_0x4a1936(0x29c)](_0x1cc24f,_0xf4154a){const _0x1494bf=_0x4a1936;var _0x4d9654,_0x44c467;const _0x3df3cc=await this[_0x1494bf(0x1e5)](_0x1cc24f);if(!_0x3df3cc)return;const _0xe91513=await this[_0x1494bf(0x2de)](_0x3df3cc,0x1,_0xf4154a);if(!_0xe91513)return;this['_importTaskId']=_0xe91513,this[_0x1494bf(0x20e)][_0x1494bf(0x2b2)]();const _0x1ad608=await this[_0x1494bf(0x20e)][_0x1494bf(0x2d1)](_0xe91513)[_0x1494bf(0x27f)](_0x462707=>{const _0x585bd6=_0x1494bf;var _0x2bf487;const _0x3c0490=_0x462707 instanceof Error?_0x462707[_0x585bd6(0x1f4)]:(_0x2bf487=_0x462707[_0x585bd6(0x236)])===null||_0x2bf487===void 0x0?void 0x0:_0x2bf487['message'];this[_0x585bd6(0x2d6)][_0x585bd6(0x2b4)]({'error':{'code':ErrorCode[_0x585bd6(0x1a9)],'message':_0x3c0490||''},'state':0x3});});if(!_0x1ad608)return;const _0x1e3983=(_0x4d9654=_0x1ad608[_0x1494bf(0x1d5)])===null||_0x4d9654===void 0x0?void 0x0:_0x4d9654[_0x1494bf(0x26b)],_0x1607b4=((_0x44c467=_0x1ad608[_0x1494bf(0x1d5)])===null||_0x44c467===void 0x0?void 0x0:_0x44c467[_0x1494bf(0x268)])||'';if(_0x1e3983!==0x1){this[_0x1494bf(0x2d6)][_0x1494bf(0x2b4)]({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':_0x1494bf(0x2cb)},'state':0x3});return;}if(_0x1607b4[_0x1494bf(0x1a6)]===0x0){this[_0x1494bf(0x2d6)][_0x1494bf(0x2b4)]({'error':{'code':ErrorCode[_0x1494bf(0x1a9)],'message':_0x1494bf(0x253)},'state':0x3});return;}return this[_0x1494bf(0x2d6)][_0x1494bf(0x2b4)]({'error':_0x1ad608[_0x1494bf(0x236)],'state':0x3}),_0x1607b4;}async['importWorkbookDataToUnitId'](_0x3b493a){const _0x491908=_0x4a1936,_0x3f7c2f=await transformWorkbookDataToSnapshotJson(_0x3b493a),_0x260432=typeof _0x3b493a['id']===_0x491908(0x1eb)&&_0x3b493a['id']['trim']()?_0x3b493a['id'][_0x491908(0x1b0)]()+_0x491908(0x230):_0x491908(0x1c9),_0x7fe281=new File([JSON['stringify'](_0x3f7c2f)],_0x260432,{'type':_0x491908(0x1ed)});return this['importFileToUnitId'](_0x7fe281,UniverInstanceType[_0x491908(0x1c7)]);}[_0x4a1936(0x286)](){const _0x45be2c=_0x4a1936;if(this[_0x45be2c(0x26e)])this['_requestService'][_0x45be2c(0x29a)](this[_0x45be2c(0x26e)]);}async[_0x4a1936(0x2c8)](_0x16d475,_0x234fc5){const _0x513f7d=_0x4a1936;var _0x5e0d46,_0x33d8e9;const _0x5090f3=await this['_upload'](_0x16d475);if(!_0x5090f3)return;const _0x5a764b=await this['_import'](_0x5090f3,0x2,_0x234fc5);if(!_0x5a764b)return;this['_importTaskId']=_0x5a764b,this[_0x513f7d(0x20e)]['clearTaskInterrupted']();const _0x5f4ce2=await this['_requestService'][_0x513f7d(0x2d1)](_0x5a764b)[_0x513f7d(0x27f)](_0x5a3f38=>{const _0x16b445=_0x513f7d;var _0x196b89;const _0x1aeb7f=_0x5a3f38 instanceof Error?_0x5a3f38[_0x16b445(0x1f4)]:(_0x196b89=_0x5a3f38[_0x16b445(0x236)])===null||_0x196b89===void 0x0?void 0x0:_0x196b89[_0x16b445(0x1f4)];this[_0x16b445(0x2d6)][_0x16b445(0x2b4)]({'error':{'code':ErrorCode[_0x16b445(0x1a9)],'message':_0x1aeb7f||''},'state':0x3});});if(!_0x5f4ce2)return;const _0x1f6bab=(_0x5e0d46=_0x5f4ce2[_0x513f7d(0x1d5)])===null||_0x5e0d46===void 0x0?void 0x0:_0x5e0d46[_0x513f7d(0x26b)],_0x7f57cc=((_0x33d8e9=_0x5f4ce2[_0x513f7d(0x1d5)])===null||_0x33d8e9===void 0x0?void 0x0:_0x33d8e9[_0x513f7d(0x295)])||'';if(_0x1f6bab!==0x2){this[_0x513f7d(0x2d6)][_0x513f7d(0x2b4)]({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':_0x513f7d(0x2cb)},'state':0x3});return;}if(_0x7f57cc[_0x513f7d(0x1a6)]===0x0){this[_0x513f7d(0x2d6)]['next']({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':_0x513f7d(0x1ec)},'state':0x3});return;}this['_requestState$']['next']({'error':_0x5f4ce2['error'],'state':0x3});const _0x12b0a0=await this[_0x513f7d(0x28d)](_0x7f57cc);if(!_0x12b0a0)return;const _0x3036ee=await this[_0x513f7d(0x20e)][_0x513f7d(0x20b)](_0x12b0a0);if(!_0x3036ee){this['_requestState$'][_0x513f7d(0x2b4)]({'error':{'code':ErrorCode[_0x513f7d(0x1a9)],'message':'Failed\x20to\x20get\x20text\x20from\x20url'},'state':0x5});return;}try{const _0x5c982d=JSON[_0x513f7d(0x1af)](_0x3036ee);return this[_0x513f7d(0x2d6)][_0x513f7d(0x2b4)]({'error':{'code':ErrorCode['OK'],'message':_0x513f7d(0x24a)},'state':0x5}),_0x5c982d;}catch{this[_0x513f7d(0x2d6)]['next']({'error':{'code':ErrorCode[_0x513f7d(0x1a9)],'message':'Failed\x20to\x20parse\x20json'},'state':0x5});}}async[_0x4a1936(0x2a3)](_0x50b8cf,_0x212c4c){const _0x4d73fe=_0x4a1936,_0x16ea77=JSON[_0x4d73fe(0x237)](_0x50b8cf),_0x21cff5=textEncoder[_0x4d73fe(0x1b3)](_0x16ea77),_0x65a4db=deflateSync(_0x21cff5),_0x4621a4=_0x21cff5[_0x4d73fe(0x1a6)],_0x489181=bufferToFile(_0x65a4db),_0x2eccb9=await this[_0x4d73fe(0x1e5)](_0x489181,_0x4621a4,!![]);if(!_0x2eccb9)return;return this[_0x4d73fe(0x1c2)](_0x2eccb9,0x2,_0x212c4c);}async[_0x4a1936(0x1c2)](_0x511db6,_0x289b51,_0x6f6564){const _0x2b6d0f=_0x4a1936;var _0x354ef7;const _0x4ca64d=await this[_0x2b6d0f(0x20e)]['export']({'unitID':_0x289b51===0x1?_0x511db6:'','jsonID':_0x289b51===0x2?_0x511db6:'','type':_0x6f6564,'sscSwitch':this[_0x2b6d0f(0x1b9)](),'useImageUrl':this[_0x2b6d0f(0x1b4)](),'ignoreTableExport':this[_0x2b6d0f(0x251)]()});if(!_0x4ca64d){this[_0x2b6d0f(0x2d6)][_0x2b6d0f(0x2b4)]({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':_0x2b6d0f(0x22c)},'state':0x2});return;}this[_0x2b6d0f(0x2d6)]['next']({'error':_0x4ca64d[_0x2b6d0f(0x236)],'state':0x2});if(_0x4ca64d[_0x2b6d0f(0x236)]&&_0x4ca64d[_0x2b6d0f(0x236)]['code']!==ErrorCode['OK'])return;const _0x1b7809=_0x4ca64d[_0x2b6d0f(0x245)],_0x538c40=await this[_0x2b6d0f(0x20e)][_0x2b6d0f(0x2d1)](_0x1b7809)[_0x2b6d0f(0x27f)](_0x301b18=>{const _0x2dc25b=_0x2b6d0f;var _0x4f4201;const _0x47cb95=_0x301b18 instanceof Error?_0x301b18['message']:(_0x4f4201=_0x301b18[_0x2dc25b(0x236)])===null||_0x4f4201===void 0x0?void 0x0:_0x4f4201[_0x2dc25b(0x1f4)];this[_0x2dc25b(0x2d6)][_0x2dc25b(0x2b4)]({'error':{'code':ErrorCode[_0x2dc25b(0x1a9)],'message':_0x47cb95||''},'state':0x3});});if(!_0x538c40)return;const _0x2f524c=((_0x354ef7=_0x538c40[_0x2b6d0f(0x201)])===null||_0x354ef7===void 0x0?void 0x0:_0x354ef7[_0x2b6d0f(0x259)])||'';if(_0x2f524c[_0x2b6d0f(0x1a6)]===0x0){this['_requestState$'][_0x2b6d0f(0x2b4)]({'error':{'code':ErrorCode[_0x2b6d0f(0x1a9)],'message':_0x2b6d0f(0x1dc)},'state':0x3});return;}this['_requestState$'][_0x2b6d0f(0x2b4)]({'error':_0x538c40['error'],'state':0x3});const _0x54cff1=await this[_0x2b6d0f(0x28d)](_0x2f524c);if(!_0x54cff1)return;const _0x544eaa=await getFileByURL(_0x54cff1,this['_httpService']);if(!_0x544eaa){this[_0x2b6d0f(0x2d6)][_0x2b6d0f(0x2b4)]({'error':{'code':ErrorCode[_0x2b6d0f(0x1a9)],'message':'Failed\x20to\x20get\x20file\x20from\x20url'},'state':0x6});return;}return this[_0x2b6d0f(0x2d6)][_0x2b6d0f(0x2b4)]({'error':{'code':ErrorCode['OK'],'message':_0x2b6d0f(0x24a)},'state':0x6}),_0x544eaa;}async['_upload'](_0x6c6505,_0x1e4ea5,_0x4da550){const _0x4daebd=_0x4a1936;let _0x38142a;try{_0x38142a=await this[_0x4daebd(0x20e)]['upload'](_0x6c6505,_0x1e4ea5,_0x4da550);}catch(_0x57ddf2){const _0xb32365=_0x57ddf2 instanceof Error?_0x57ddf2[_0x4daebd(0x1f4)]:String(_0x57ddf2);this[_0x4daebd(0x2d6)][_0x4daebd(0x2b4)]({'error':{'code':ErrorCode[_0x4daebd(0x1a9)],'message':_0xb32365},'state':0x0});return;}if(!_0x38142a||typeof _0x38142a['FileId']!==_0x4daebd(0x1eb)){this[_0x4daebd(0x2d6)][_0x4daebd(0x2b4)]({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':_0x4daebd(0x27e)},'state':0x0});return;}const _0x4beaf0=_0x38142a[_0x4daebd(0x250)];if(_0x4beaf0[_0x4daebd(0x1a6)]===0x0){this[_0x4daebd(0x2d6)][_0x4daebd(0x2b4)]({'error':{'code':ErrorCode[_0x4daebd(0x1a9)],'message':_0x4daebd(0x278)},'state':0x0});return;}return this[_0x4daebd(0x2d6)][_0x4daebd(0x2b4)]({'error':{'code':ErrorCode['OK'],'message':_0x4daebd(0x24a)},'state':0x0}),_0x4beaf0;}async[_0x4a1936(0x2de)](_0x38f646,_0x47d26d,_0x3e72cc){const _0x5b9144=_0x4a1936,_0x3ba97e={'fileID':_0x38f646,'type':_0x3e72cc,'outputType':_0x47d26d,'fileUrl':'','minSheetRowCount':this[_0x5b9144(0x1e4)](),'minSheetColumnCount':this[_0x5b9144(0x269)]()},_0x1a9120=await this[_0x5b9144(0x20e)][_0x5b9144(0x1d5)](_0x3ba97e);if(!_0x1a9120){this['_requestState$'][_0x5b9144(0x2b4)]({'error':{'code':ErrorCode[_0x5b9144(0x1a9)],'message':_0x5b9144(0x2c4)},'state':0x1});return;}if(_0x1a9120[_0x5b9144(0x236)]&&_0x1a9120[_0x5b9144(0x236)][_0x5b9144(0x2af)]!==ErrorCode['OK']){this[_0x5b9144(0x2d6)][_0x5b9144(0x2b4)]({'error':_0x1a9120[_0x5b9144(0x236)],'state':0x1});return;}const _0x407584=_0x1a9120[_0x5b9144(0x245)];if(_0x407584[_0x5b9144(0x1a6)]===0x0){this['_requestState$'][_0x5b9144(0x2b4)]({'error':{'code':ErrorCode[_0x5b9144(0x1a9)],'message':_0x5b9144(0x25d)},'state':0x1});return;}return this['_requestState$'][_0x5b9144(0x2b4)]({'error':_0x1a9120[_0x5b9144(0x236)],'state':0x1}),_0x407584;}async[_0x4a1936(0x28d)](_0x46daa2){const _0x11e8b9=_0x4a1936,_0x46f26f=await this[_0x11e8b9(0x20e)]['signUrl'](_0x46daa2);if(!_0x46f26f){this[_0x11e8b9(0x2d6)][_0x11e8b9(0x2b4)]({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':'sign\x20url\x20error'},'state':0x4});return;}if(_0x46f26f[_0x11e8b9(0x236)]&&_0x46f26f['error'][_0x11e8b9(0x2af)]!==ErrorCode['OK']){this[_0x11e8b9(0x2d6)][_0x11e8b9(0x2b4)]({'error':_0x46f26f[_0x11e8b9(0x236)],'state':0x4});return;}const _0x628bf4=resolveWithBasePath(_0x46f26f[_0x11e8b9(0x1c5)],this['_getDownloadEndpointURL']());if(_0x628bf4[_0x11e8b9(0x1a6)]===0x0){this[_0x11e8b9(0x2d6)][_0x11e8b9(0x2b4)]({'error':{'code':ErrorCode[_0x11e8b9(0x1a9)],'message':_0x11e8b9(0x26f)},'state':0x4});return;}return this[_0x11e8b9(0x2d6)][_0x11e8b9(0x2b4)]({'error':_0x46f26f['error'],'state':0x4}),_0x628bf4;}['_getDownloadEndpointURL'](){const _0x496502=_0x4a1936;var _0x47b21c;const _0x5b1fda=this[_0x496502(0x2e1)][_0x496502(0x205)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x47b21c=_0x5b1fda===null||_0x5b1fda===void 0x0?void 0x0:_0x5b1fda[_0x496502(0x19f)])!==null&&_0x47b21c!==void 0x0?_0x47b21c:location[_0x496502(0x24e)];}[_0x4a1936(0x1e4)](){const _0x216009=_0x4a1936;var _0x16fe5b,_0x42f433;const _0x4b51dc=this[_0x216009(0x2e1)][_0x216009(0x205)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x16fe5b=_0x4b51dc===null||_0x4b51dc===void 0x0||(_0x42f433=_0x4b51dc['options'])===null||_0x42f433===void 0x0?void 0x0:_0x42f433[_0x216009(0x22e)])!==null&&_0x16fe5b!==void 0x0?_0x16fe5b:0x1;}[_0x4a1936(0x269)](){const _0x563ba2=_0x4a1936;var _0x628211,_0x540091;const _0xa160af=this[_0x563ba2(0x2e1)][_0x563ba2(0x205)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x628211=_0xa160af===null||_0xa160af===void 0x0||(_0x540091=_0xa160af[_0x563ba2(0x2a5)])===null||_0x540091===void 0x0?void 0x0:_0x540091[_0x563ba2(0x263)])!==null&&_0x628211!==void 0x0?_0x628211:0x1;}['_getEnableServerSideComputing'](){const _0x25b443=_0x4a1936;var _0x75369b,_0x56d599;const _0x1d8d8d=this['_configService'][_0x25b443(0x205)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x75369b=_0x1d8d8d===null||_0x1d8d8d===void 0x0||(_0x56d599=_0x1d8d8d[_0x25b443(0x2a5)])===null||_0x56d599===void 0x0?void 0x0:_0x56d599[_0x25b443(0x1b2)])!==null&&_0x75369b!==void 0x0?_0x75369b:![];}[_0x4a1936(0x1b4)](){const _0x221fe9=_0x4a1936;var _0x44c499,_0x38a906;const _0x1a6696=this[_0x221fe9(0x2e1)][_0x221fe9(0x205)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x44c499=_0x1a6696===null||_0x1a6696===void 0x0||(_0x38a906=_0x1a6696['options'])===null||_0x38a906===void 0x0?void 0x0:_0x38a906[_0x221fe9(0x296)])!==null&&_0x44c499!==void 0x0?_0x44c499:!![];}[_0x4a1936(0x251)](){const _0x58478c=_0x4a1936;var _0x228f06,_0x4daaf8;const _0x3653ad=this[_0x58478c(0x2e1)][_0x58478c(0x205)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x228f06=_0x3653ad===null||_0x3653ad===void 0x0||(_0x4daaf8=_0x3653ad[_0x58478c(0x2a5)])===null||_0x4daaf8===void 0x0?void 0x0:_0x4daaf8['ignoreTableExport'])!==null&&_0x228f06!==void 0x0?_0x228f06:![];}};ExchangeService=__decorate([__decorateParam(0x0,IConfigService),__decorateParam(0x1,Inject(HTTPService)),__decorateParam(0x2,Inject(IRequestService))],ExchangeService);const NilProgress={'done':0x0,'count':0x0},IExchangeOperateService=createIdentifier(_0x4a1936(0x1c4));let ExchangeOperateService=class ExchangeOperateService extends Disposable{constructor(_0x5dc2eb,_0x16ba09,_0x13527f,_0x17bfea,_0x532c69,_0x2178a0){const _0x43e0fc=_0x4a1936;super(),this[_0x43e0fc(0x1db)]=_0x5dc2eb,this[_0x43e0fc(0x1d2)]=_0x16ba09,this['_localeService']=_0x13527f,this[_0x43e0fc(0x273)]=_0x17bfea,this['_uploadNotificationService']=_0x532c69,this['_logService']=_0x2178a0,_defineProperty(this,_0x43e0fc(0x24b),new BehaviorSubject(NilProgress)),_defineProperty(this,_0x43e0fc(0x2c3),this[_0x43e0fc(0x24b)][_0x43e0fc(0x25f)]()),_defineProperty(this,_0x43e0fc(0x2ce),0x0),_defineProperty(this,_0x43e0fc(0x1fa),0x0),this[_0x43e0fc(0x23b)](toDisposable(this[_0x43e0fc(0x273)][_0x43e0fc(0x20a)][_0x43e0fc(0x1df)](_0x3840be=>{const _0x55d661=_0x43e0fc;var _0x4a21e8;if(((_0x4a21e8=_0x3840be[_0x55d661(0x236)])===null||_0x4a21e8===void 0x0?void 0x0:_0x4a21e8[_0x55d661(0x2af)])===ErrorCode['OK'])this['_addDoneTask'](0x1);else this[_0x55d661(0x208)](_0x3840be['error']);})));}[_0x4a1936(0x1d6)](){const _0x414515=_0x4a1936;this[_0x414515(0x1ba)](),this[_0x414515(0x288)][_0x414515(0x1d7)](0x2),this[_0x414515(0x273)][_0x414515(0x286)]();}async['uploadFileToUnitId'](_0x3276fe){throw new Error('Method\x20not\x20implemented.');}async[_0x4a1936(0x210)](){const _0x215b2e=_0x4a1936,_0x27fe38=await getUploadFile([UniverInstanceType[_0x215b2e(0x2a7)]]);if(!_0x27fe38)return;if(this[_0x215b2e(0x1da)](_0x27fe38,UniverInstanceType[_0x215b2e(0x2a7)]))return;return this['_importFileToUnitId'](_0x27fe38[0x0],UniverInstanceType['UNIVER_DOC']);}[_0x4a1936(0x246)](){const _0x26140d=_0x4a1936;throw new Error(_0x26140d(0x254));}async[_0x4a1936(0x1fc)](_0x24e867,_0x4d1908,_0x89b6b5){const _0x49d922=_0x4a1936;this[_0x49d922(0x22b)](MessageType['Info']);const _0x2d5c2a=await this[_0x49d922(0x273)]['exportDOCXByUnitId'](_0x24e867||this['_getUnitIDDoc']());if(!_0x2d5c2a)return;downloadFile(_0x2d5c2a,_0x4d1908||this[_0x49d922(0x1cc)](_0x2d5c2a),_0x49d922(0x2a0)),this[_0x49d922(0x22b)](MessageType['Success']);}async[_0x4a1936(0x21e)](){const _0x2d222a=_0x4a1936;this[_0x2d222a(0x22b)](MessageType[_0x2d222a(0x217)]);const _0x2eb9a7=await this[_0x2d222a(0x2a6)](),_0x41c150=await this[_0x2d222a(0x273)][_0x2d222a(0x21e)](_0x2eb9a7);if(!_0x41c150)return;downloadFile(_0x41c150,this[_0x2d222a(0x1cc)](_0x41c150),'docx'),this[_0x2d222a(0x22b)](MessageType[_0x2d222a(0x28f)]);}async[_0x4a1936(0x26d)](){const _0x3fa51f=_0x4a1936;if(this[_0x3fa51f(0x1d1)]()){this[_0x3fa51f(0x1d2)]['show']({'type':MessageType[_0x3fa51f(0x233)],'content':this['_localeService']['t'](_0x3fa51f(0x275))});return;}const _0x156e10=await getUploadFile([UniverInstanceType[_0x3fa51f(0x1c7)]]);if(!_0x156e10)return;if(this[_0x3fa51f(0x1da)](_0x156e10,UniverInstanceType[_0x3fa51f(0x1c7)]))return;return this[_0x3fa51f(0x1fe)](_0x156e10[0x0],UniverInstanceType[_0x3fa51f(0x1c7)]);}async[_0x4a1936(0x2c9)](){const _0x2584e1=_0x4a1936;if(this[_0x2584e1(0x1d1)]()){this[_0x2584e1(0x1d2)]['show']({'type':MessageType['Warning'],'content':this[_0x2584e1(0x232)]['t'](_0x2584e1(0x275))});return;}const _0x1d6cb9=await getUploadFile([UniverInstanceType[_0x2584e1(0x1c7)]]);if(!_0x1d6cb9)return;this[_0x2584e1(0x272)](MessageType[_0x2584e1(0x217)]);const _0x289a50=await this[_0x2584e1(0x273)][_0x2584e1(0x2c9)](_0x1d6cb9[0x0]);if(!_0x289a50)return;this['_refresh'](_0x289a50),this[_0x2584e1(0x272)](MessageType[_0x2584e1(0x28f)]);}async[_0x4a1936(0x280)](_0x499000,_0x102ce8,_0x51c3a1){const _0x1a5952=_0x4a1936;this[_0x1a5952(0x22b)](MessageType[_0x1a5952(0x217)]);const _0x348752=await this[_0x1a5952(0x273)][_0x1a5952(0x280)](_0x499000||this[_0x1a5952(0x1be)]());if(!_0x348752)return;downloadFile(_0x348752,_0x102ce8||this[_0x1a5952(0x1cc)](_0x348752),_0x1a5952(0x284)),this[_0x1a5952(0x22b)](MessageType[_0x1a5952(0x28f)]);}async[_0x4a1936(0x2bd)](){const _0x2c794b=_0x4a1936;this[_0x2c794b(0x22b)](MessageType[_0x2c794b(0x217)]);const _0x5aaafc=await this[_0x2c794b(0x1ce)](),_0x8562b9=await this['_exchangeService'][_0x2c794b(0x2bd)](_0x5aaafc);if(!_0x8562b9)return;downloadFile(_0x8562b9,this[_0x2c794b(0x1cc)](_0x8562b9),_0x2c794b(0x284)),this[_0x2c794b(0x22b)](MessageType['Success']);}[_0x4a1936(0x20f)](_0x156027){const _0xc4a95f=_0x4a1936;this[_0xc4a95f(0x1ac)]=_0x156027;}async['_importFileToUnitId'](_0x2b9c6b,_0x4892e3){const _0x2111f0=_0x4a1936;this[_0x2111f0(0x288)][_0x2111f0(0x2c6)](),this['_uploadNotificationService'][_0x2111f0(0x1d7)](0x0),this[_0x2111f0(0x23c)](0x4),this[_0x2111f0(0x2d5)](0x1);const _0x5b55fd=await this[_0x2111f0(0x273)]['importFileToUnitId'](_0x2b9c6b,_0x4892e3);if(!_0x5b55fd){this[_0x2111f0(0x1ba)](),this[_0x2111f0(0x288)][_0x2111f0(0x1d7)](0x2);return;}const _0x101715={'link':this[_0x2111f0(0x1ac)](_0x5b55fd,_0x4892e3),'name':_0x2b9c6b[_0x2111f0(0x1b5)],'type':_0x4892e3};return this[_0x2111f0(0x288)][_0x2111f0(0x287)](_0x101715),this['_completeProgress'](),this[_0x2111f0(0x288)][_0x2111f0(0x1d7)](0x1),_0x5b55fd;}['_getUnitID'](){const _0x2f028b=_0x4a1936;return this[_0x2f028b(0x1db)][_0x2f028b(0x298)](UniverInstanceType[_0x2f028b(0x1c7)])['getUnitId']();}[_0x4a1936(0x23d)](){const _0x49f8fb=_0x4a1936;return this[_0x49f8fb(0x1db)][_0x49f8fb(0x298)](UniverInstanceType[_0x49f8fb(0x2a7)])[_0x49f8fb(0x1a3)]();}[_0x4a1936(0x1cc)](_0x4781f3){const _0x56fa05=_0x4a1936;var _0x58b4ec;return((_0x58b4ec=this[_0x56fa05(0x1db)][_0x56fa05(0x298)](UniverInstanceType['UNIVER_SHEET']))===null||_0x58b4ec===void 0x0?void 0x0:_0x58b4ec['name'])||_0x4781f3[_0x56fa05(0x1b5)][_0x56fa05(0x214)]('.')['shift']()||document[_0x56fa05(0x1b8)];}async[_0x4a1936(0x1ce)](){const _0x304dc3=_0x4a1936;return this['_univerInstanceService'][_0x304dc3(0x298)](UniverInstanceType[_0x304dc3(0x1c7)])[_0x304dc3(0x231)]();}async[_0x4a1936(0x2a6)](){const _0x44d1c1=_0x4a1936;return this[_0x44d1c1(0x1db)][_0x44d1c1(0x298)](UniverInstanceType[_0x44d1c1(0x2a7)])[_0x44d1c1(0x231)]();}['_getLinkByUnitId'](_0x3dd774,_0x306e97){const _0x3c76a6=_0x4a1936,_0xddbc5f=new URL(window['location'][_0x3c76a6(0x238)]);return _0xddbc5f[_0x3c76a6(0x2d3)][_0x3c76a6(0x1c6)]('unit',_0x3dd774),_0xddbc5f[_0x3c76a6(0x2d3)][_0x3c76a6(0x1c6)](_0x3c76a6(0x2e4),''+_0x306e97),_0xddbc5f[_0x3c76a6(0x1f9)]();}['_refresh'](_0x380167){const _0x133b76=_0x4a1936,_0x318603=this[_0x133b76(0x1db)][_0x133b76(0x25e)](UniverInstanceType[_0x133b76(0x1c7)])[_0x133b76(0x1a3)]();this['_univerInstanceService'][_0x133b76(0x2a8)](_0x318603),this[_0x133b76(0x1db)]['createUnit'](UniverInstanceType[_0x133b76(0x1c7)],_0x380167);}[_0x4a1936(0x208)](_0x523295){const _0x7a04e6=_0x4a1936;if(_0x523295){const {code:_0x4b426c}=_0x523295;switch(_0x4b426c){case ErrorCode[_0x7a04e6(0x282)]:this[_0x7a04e6(0x1d2)][_0x7a04e6(0x2c6)]({'type':MessageType['Error'],'content':this['_localeService']['t'](_0x7a04e6(0x241))});break;case ErrorCode[_0x7a04e6(0x25a)]:this[_0x7a04e6(0x1d2)][_0x7a04e6(0x2c6)]({'type':MessageType[_0x7a04e6(0x1f0)],'content':this[_0x7a04e6(0x232)]['t'](_0x7a04e6(0x297))});break;default:this[_0x7a04e6(0x1d2)]['show']({'type':MessageType[_0x7a04e6(0x1f0)],'content':this[_0x7a04e6(0x232)]['t'](_0x7a04e6(0x242))});break;}return null;}return this[_0x7a04e6(0x1d2)]['show']({'type':MessageType[_0x7a04e6(0x1f0)],'content':this['_localeService']['t'](_0x7a04e6(0x242))}),null;}[_0x4a1936(0x22b)](_0x352040){const _0xf6d842=_0x4a1936;let _0x306c91='';switch(_0x352040){case MessageType[_0xf6d842(0x28f)]:_0x306c91=this['_localeService']['t']('exchange.downloadSuccess');break;case MessageType['Info']:_0x306c91=this[_0xf6d842(0x232)]['t'](_0xf6d842(0x271));break;default:break;}this['_messageService']['show']({'type':_0x352040,'content':_0x306c91});}['_showUploadMessage'](_0x1ccc4d){const _0x55bc4f=_0x4a1936;let _0x4fd48a='';switch(_0x1ccc4d){case MessageType[_0x55bc4f(0x28f)]:_0x4fd48a=this[_0x55bc4f(0x232)]['t'](_0x55bc4f(0x203));break;case MessageType[_0x55bc4f(0x217)]:_0x4fd48a=this['_localeService']['t'](_0x55bc4f(0x275));break;default:break;}this[_0x55bc4f(0x1d2)]['show']({'type':_0x1ccc4d,'content':_0x4fd48a});}[_0x4a1936(0x221)](){const _0x343535=_0x4a1936;this[_0x343535(0x24b)][_0x343535(0x2b4)]({'done':this[_0x343535(0x1fa)],'count':this[_0x343535(0x2ce)]});}['_addTotalCount'](_0x82e915){const _0x5302c6=_0x4a1936;this[_0x5302c6(0x2ce)]+=_0x82e915,this[_0x5302c6(0x221)]();}['_addDoneTask'](_0x5f05cf){const _0x10f95a=_0x4a1936;this['_doneUploadTaskCount']+=_0x5f05cf,this[_0x10f95a(0x1fa)]=Math['min'](this[_0x10f95a(0x1fa)],this['_totalUploadTaskCount']),this['_emitProgress']();}[_0x4a1936(0x285)](){const _0x283556=_0x4a1936;this[_0x283556(0x1fa)]=this[_0x283556(0x2ce)],this[_0x283556(0x221)]();}[_0x4a1936(0x1ba)](){const _0x1252e9=_0x4a1936;this[_0x1252e9(0x1fa)]=0x0,this[_0x1252e9(0x2ce)]=0x0,this[_0x1252e9(0x221)]();}['_fileTypeError'](_0x3e58ca,_0x1bc5c8){const _0x36521c=_0x4a1936,_0x3d8a15=_0x3e58ca[0x0],_0x954f95=_0x3d8a15[_0x36521c(0x1b5)];if(getUniverInstanceTypeByFile(_0x3d8a15)!==_0x1bc5c8)return this[_0x36521c(0x1d2)]['show']({'type':MessageType[_0x36521c(0x1f0)],'content':this['_localeService']['t'](_0x36521c(0x1bb),_0x954f95)}),!![];return![];}[_0x4a1936(0x1d1)](){const _0x16f1e0=_0x4a1936;return this[_0x16f1e0(0x2ce)]!==0x0&&this[_0x16f1e0(0x1fa)]!==this[_0x16f1e0(0x2ce)];}};ExchangeOperateService=__decorate([__decorateParam(0x0,Inject(IUniverInstanceService)),__decorateParam(0x1,IMessageService),__decorateParam(0x2,Inject(LocaleService)),__decorateParam(0x3,Inject(IExchangeService)),__decorateParam(0x4,Inject(IUploadNotificationService)),__decorateParam(0x5,ILogService)],ExchangeOperateService);function UploadButton(_0x312c2b){const _0x35677b=_0x4a1936,{onClick:_0x4200ed,children:_0x3d09ec,className:_0xfc9041}=_0x312c2b;return jsx('button',{'className':clsx(_0x35677b(0x248),_0xfc9041),'type':_0x35677b(0x23e),'onClick':_0x4200ed,'children':_0x3d09ec});}function UploadAgain(){const _0x4d23e1=useDependency(IExchangeOperateService),_0x17e110=useDependency(LocaleService);function _0x491d47(){const _0x46d9e1=_0x3e7a;_0x4d23e1[_0x46d9e1(0x26d)]();}return jsx(UploadButton,{'onClick':_0x491d47,'children':_0x17e110['t']('exchange.uploadAgain')});}function UploadError(){const _0x1dff37=_0x4a1936;return jsxs('div',{'className':'univer-mt-5\x20univer-flex\x20univer-flex-col','children':[jsx(_0x1dff37(0x1ab),{'className':'univer-mb-3\x20univer-py-0\x20univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','children':useDependency(LocaleService)['t'](_0x1dff37(0x1a5))}),jsx(UploadAgain,{})]});}function UploadSuccess(_0x1ea303){const _0x60e689=_0x4a1936,{count:_0x9c793d}=_0x1ea303;return jsxs(_0x60e689(0x276),{'className':_0x60e689(0x220),'children':[jsx(_0x60e689(0x1ab),{'className':'univer-text-sm\x20univer-text-gray-500','children':useDependency(LocaleService)['t'](_0x60e689(0x2dc),''+_0x9c793d)}),jsx(UploadAgain,{})]});}function UploadCancel(){const _0x3fd32f=_0x4a1936,_0xa3a521=useDependency(IExchangeOperateService),_0x49c35e=useDependency(LocaleService);function _0xda16ff(){_0xa3a521['interrupt']();}return jsx(UploadButton,{'onClick':_0xda16ff,'children':_0x49c35e['t'](_0x3fd32f(0x2c5))});}function UploadProgress(){const _0xe831f2=_0x4a1936,{count:_0x1155d8,done:_0xd58f4e}=useObservable(useDependency(IExchangeOperateService)[_0xe831f2(0x2c3)]),[_0x5169cc,_0x2dd5f3]=useState(_0x1155d8>0x0?_0xd58f4e/_0x1155d8:0x0);return useEffect(()=>{_0x2dd5f3(_0x1155d8>0x0?_0xd58f4e/_0x1155d8:0x0);},[_0x1155d8,_0xd58f4e]),jsx('div',{'className':_0xe831f2(0x1cb),'children':jsx(_0xe831f2(0x276),{'className':_0xe831f2(0x270),'style':{'width':Math[_0xe831f2(0x2cd)](_0x5169cc*0x64)+'%'}})});}function _0x3e7a(_0x3489af,_0x30bbfe){_0x3489af=_0x3489af-0x19f;const _0x4b1f8c=_0x4b1f();let _0x3e7a89=_0x4b1f8c[_0x3489af];return _0x3e7a89;}function Uploading(){const _0x21b4e3=_0x4a1936;return jsxs(_0x21b4e3(0x276),{'className':'univer-mt-5\x20univer-flex\x20univer-flex-col','children':[jsx(_0x21b4e3(0x1ab),{'className':'univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','children':useDependency(LocaleService)['t'](_0x21b4e3(0x2b9))}),jsx(_0x21b4e3(0x276),{'className':_0x21b4e3(0x1a7),'children':jsx(UploadProgress,{})}),jsx(UploadCancel,{})]});}const iconMap={[0x1]:jsx(SuccessIcon,{'className':_0x4a1936(0x1ae)}),[0x0]:jsx(ClockIcon,{'className':'univer-text-blue-500'}),[0x2]:jsx(ErrorIcon,{'className':_0x4a1936(0x283)})};function UploadNotification(){const _0x21d220=_0x4a1936,[_0x2c37d5,_0x48243d]=useState(0x0),[_0x23a93d,_0xa4afa7]=useState(![]),[_0x19c246,_0x3f1988]=useState([]),_0x4af461=useDependency(IUploadNotificationService),_0x402f56=useDependency(LocaleService);useEffect(()=>{const _0x1ed389=_0x3e7a,_0x4817ce=_0x4af461['visible$']['subscribe'](_0xe012b7=>{_0xa4afa7(_0xe012b7);}),_0x4877b6=_0x4af461['list$'][_0x1ed389(0x1df)](_0x3b4c46=>{_0x3f1988(_0x3b4c46);}),_0xeaee05=_0x4af461[_0x1ed389(0x26c)]['subscribe'](_0x57afb8=>{_0x48243d(_0x57afb8);});return()=>{const _0x1ca4c1=_0x1ed389;_0x4817ce[_0x1ca4c1(0x1d0)](),_0x4877b6[_0x1ca4c1(0x1d0)](),_0xeaee05['unsubscribe']();};},[]);function _0x359b99(){_0xa4afa7(![]);}function _0x316b9d(_0x442274){const _0x44593c=_0x3e7a;switch(_0x442274){case 0x1:return _0x402f56['t'](_0x44593c(0x203));case 0x0:return _0x402f56['t'](_0x44593c(0x275));case 0x2:return _0x402f56['t']('exchange.unknownMistake');default:return'';}}return _0x23a93d&&jsxs(_0x21d220(0x276),{'className':_0x21d220(0x22f),'children':[jsxs('div',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-1.5\x20univer-pr-2','children':[jsxs(_0x21d220(0x1ab),{'className':'univer-flex','children':[jsx(_0x21d220(0x1ab),{'className':_0x21d220(0x1fd),'children':iconMap[_0x2c37d5]}),jsx(_0x21d220(0x1ab),{'className':_0x21d220(0x1e0),'children':_0x316b9d(_0x2c37d5)})]}),jsx('span',{'className':_0x21d220(0x274),'onClick':_0x359b99,'children':jsx(CloseIcon,{})})]}),jsxs(_0x21d220(0x276),{'children':[_0x2c37d5===0x0&&jsx(Uploading,{}),_0x2c37d5===0x2&&jsx(UploadError,{}),_0x19c246[_0x21d220(0x1a6)]>0x0&&jsx(LinkList,{'list':_0x19c246}),_0x2c37d5===0x1&&jsx(UploadSuccess,{'count':_0x19c246[_0x21d220(0x1a6)]})]})]});}function UploadNotificationContainer(){return jsx(UploadNotification,{});}let ExchangeClientController=class ExchangeClientController extends Disposable{constructor(_0x47b298,_0x642d25){const _0x2ce372=_0x4a1936;super(),this[_0x2ce372(0x209)]=_0x47b298,this['_uiPartsService']=_0x642d25,this[_0x2ce372(0x29b)]();}[_0x4a1936(0x29b)](){const _0x4ae54f=_0x4a1936;this[_0x4ae54f(0x23b)](this[_0x4ae54f(0x28c)][_0x4ae54f(0x2c0)](BuiltInUIPart['CONTENT'],()=>connectInjector(UploadNotificationContainer,this[_0x4ae54f(0x209)])));}};ExchangeClientController=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,IUIPartsService)],ExchangeClientController);let UniverExchangeClientPlugin=class UniverExchangeClientPlugin extends Plugin{constructor(_0x258afc=defaultPluginConfig,_0x1ac60e,_0xe2d0d1){const _0x15a41b=_0x4a1936;super(),this[_0x15a41b(0x228)]=_0x258afc,this[_0x15a41b(0x209)]=_0x1ac60e,this['_configService']=_0xe2d0d1;const {..._0x1440a1}=merge({},defaultPluginConfig,this[_0x15a41b(0x228)]);this[_0x15a41b(0x2e1)]['setConfig'](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY,_0x1440a1);}[_0x4a1936(0x2dd)](){registerDependencies(this['_injector'],[[ExchangeClientController],[IExchangeOperateService,{'useClass':ExchangeOperateService}],[IExchangeService,{'useClass':ExchangeService}],[IRequestService,{'useClass':RequestService}],[IUploadNotificationService,{'useClass':UploadNotificationService}]]);}[_0x4a1936(0x1bc)](){const _0x161d53=_0x4a1936;touchDependencies(this[_0x161d53(0x209)],[[ExchangeClientController],[IExchangeOperateService]]);}};_defineProperty(UniverExchangeClientPlugin,_0x4a1936(0x249),_0x4a1936(0x2ac)),_defineProperty(UniverExchangeClientPlugin,_0x4a1936(0x1c0),name),_defineProperty(UniverExchangeClientPlugin,_0x4a1936(0x1d8),version),UniverExchangeClientPlugin=__decorate([DependentOn(UniverNetworkPlugin,UniverLicensePlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,IConfigService)],UniverExchangeClientPlugin);export{EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY,ExchangeOperateService,ExchangeService,IExchangeOperateService,IExchangeService,IRequestService,IUploadNotificationService,RequestService,UniverExchangeClientPlugin,UploadNotificationContainer,UploadNotificationService,UploadNotificationState,downloadFile,getUniverInstanceTypeByFile,getUploadFile,transformDocumentDataToSnapshotJson,transformSnapshotJsonToDocumentData,transformSnapshotJsonToWorkbookData,transformWorkbookDataToSnapshotJson};
1
+ function _0x4120(){const _0x55e4c3=['unit','symbol','SUCCESS','interruptImportTask','UPLOADING','_addTotalCount','searchParams','_refresh','_getSignURL','upload\x20request\x20failed:\x20failed\x20to\x20read\x20source\x20file\x20from\x20url','_list$','univer-pro.exchange-client.exchange.service','catch','status','application/octet-stream','number','blob','_requestService','trim','Warning','clearTaskInterrupted','list$','join','\x20-\x20','exportDOCXByUnitId','_getMinSheetColumnCount','_importTaskId','exchange.unknownMistake','sheetBlocks','Failed\x20to\x20get\x20jsonID\x20from\x20task','_getLinkByUnitId','stringify','decode','jsonID','_getUploadFileURL','importWorkbookDataToUnitId','Get\x20outputType\x20error','sign\x20url\x20error','add','encode','floor','_visible$','complete','success','done','file.json','message','getDeserializedSheetBlock','exportXLSXBySnapshot','exchange.downloading','univer-h-6\x20univer-text-2xl','pop','_getMaxPollingTime','9471FRCxHE','headers','get','.json','map','constructor','updateState','_exchangeService','workbook.json','22664qNaRtt','_getEnableServerSideComputing','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-1.5\x20univer-pr-2','registerComponent','toString','getLatestCsReqIdBySid','hide','291635meCQPl','originalMeta','import','_doneUploadTaskCount','style','accept','univer-mt-3\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-2\x20univer-pr-1','min','upload\x20failed:\x20missing\x20FileId\x20in\x20response','FileId','getResourcesRequest','getSnapshot','replace','state$','error','click','has','fetchMissingChangesets','_state$','maxTimeoutTime','onReady','exchange.uploading','decorate','_sheetBlockCache','name','univer-mb-3\x20univer-py-0\x20univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','getTextFromUrl','_getDownloadEndpointURL','Info','text','setConfig','saveChangeset','univer-flex\x20univer-size-6\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-border-none\x20univer-bg-transparent\x20univer-text-gray-500\x20univer-transition-colors\x20hover:univer-bg-gray-200\x20dark:!univer-bg-gray-600','match','@univerjs-pro/exchange-client','_fileTypeError','application/vnd.openxmlformats-officedocument.spreadsheetml.template','split','_uploadNotificationService','getCurrentUnitOfType','_importFileToUnitId','onStarting','pushLink','createUnit','{type}','&flate=','shift','application/vnd.openxmlformats-officedocument.presentationml.presentation','getOwnPropertyDescriptor','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','10434152hoKpWq','UNIVER_SHEET','xltx','exchange.wait','parse','unitID','_getUnitIDDoc','Error\x20fetching\x20file\x20from\x20URL:','importDOCXToUnitId','_registerComponents','keys','updateSnapshot','snapshot','disableCellImageConversion','unsubscribe','CONTENT','UNIVER_SLIDE','exchange.internalError','exchange.networkError','exchange.uploadSuccess','_getUnitName','UNIVER_UNKNOWN','title','span','body','univer-ml-1\x20univer-truncate\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','_logService','visible$','upload\x20failed:\x20FileId\x20is\x20empty','Failed\x20to\x20get\x20fileID\x20from\x20task','_showDownloadMessage','call','Failed\x20to\x20get\x20unitID\x20from\x20task','workbook','setTaskInterrupted','_getTaskURL','block\x20is\x20required','univer-pro.exchange-client.operate.service','_univerInstanceService','getSheetBlock','appendChild','univer-text-blue-500','application/json',':\x20HTTP\x20','display','disposeWithMe','files','export\x20error','xlsx','minSheetRowCount','univer-mt-5\x20univer-max-h-72\x20univer-overflow-y-auto\x20univer-overflow-x-hidden','createElement','code','UNIVER_DOC','univer-mt-5\x20univer-flex\x20univer-flex-col','Error\x20getting\x20file\x20name\x20from\x20URL:','_showNetworkError','currentTarget','exchange.downloadSuccess','8626848xizswg','univer-flex\x20univer-h-5\x20univer-text-xl','univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-border-none\x20univer-bg-transparent\x20univer-p-0\x20univer-text-base\x20univer-text-gray-600\x20univer-outline-none\x20univer-transition-colors\x20hover:univer-bg-gray-200\x20dark:!univer-text-gray-200\x20dark:hover:!univer-bg-gray-600','_upload','origin','univer-flex','disposeUnit','getTaskServerUrl','getConfig','set','application/vnd.ms-excel.sheet.macroEnabled.12','application/vnd.openxmlformats-officedocument.wordprocessingml.document','exchange.uploadAgain','univer-text-green-500','rev','univer-mx-0\x20univer-mb-3\x20univer-mt-4\x20univer-h-1.5\x20univer-w-[324px]\x20univer-rounded-lg\x20univer-bg-gray-200','data','object','_httpService','INTERNAL_ERROR','import\x20error','sheets','exchange.tooLarge','9uQeJLK','minSheetColumnCount','_progress$','univer-text-sm\x20univer-text-gray-500','Content-Type','download','copyFileMeta','_getUnitJson','signUrlServerUrl','48fOVYwr','_messageService','upload\x20request\x20failed','_totalUploadTaskCount','isArray','string','{fileID}','ERROR','UNIVER_EXCHANGE_CLIENT_PLUGIN','unshift','exportXLSXByUnitId','univer-pl-2\x20univer-pr-4','_getImportURL','next','_showUploadMessage','subscribe','type','Error','getUnitId','removeChild','upload','Failed\x20to\x20transform\x20snapshot\x20to\x20string','div','version','asObservable','length','location','docx','_getDisableCellImageConversion','exchange.cancel','_emitProgress','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','uploadFileToUnitId','interrupt','_clearProgress','doc','_uiPartsService','CONNECTOR_DATA_TOO_LARGE','univer-m-0\x20univer-flex\x20univer-list-none\x20univer-flex-col\x20univer-gap-2\x20univer-p-0','univer-h-7\x20univer-cursor-pointer\x20univer-select-none\x20univer-rounded-md\x20univer-border-0\x20univer-border-transparent\x20univer-bg-transparent\x20univer-px-2\x20univer-py-0\x20univer-text-sm\x20univer-text-primary-600\x20univer-transition-all\x20univer-duration-150\x20hover:univer-bg-primary-50','_import','dispose','resolve','url','_importToSnapshot','univer-ml-1.5\x20univer-font-semibold\x20univer-leading-6\x20univer-text-gray-900\x20dark:!univer-text-white','options','_getMinSheetRowCount','statusText','_taskInterrupted','default','_list','_getExportURL','file.','16980sRnvSi','_requestState$','downloadEndpointUrl','registerLink','_buildProtocolErrorMessage','exchange.fileTypeError','_export','exchange.interrupt','revokeObjectURL','Failed\x20to\x20get\x20taskID\x20from\x20import\x20response','post','_buildHttpErrorMessage','function','No\x20file\x20selected','pptx','/universer-api/exchange/{type}/export','importFileToUnitId','signUrl','multiple','_configService','blockID','_localeService','2URZlTU','_extractErrorDetail','2597952dXzsCJ','_signUrl','taskID','univer-flex\x20univer-justify-between\x20univer-rounded\x20univer-border-none\x20univer-bg-transparent\x20univer-px-2\x20univer-py-1\x20univer-text-gray-900\x20univer-no-underline\x20univer-outline-none\x20univer-transition-colors\x20hover:univer-bg-gray-200\x20dark:!univer-text-white\x20dark:hover:!univer-bg-gray-600','/universer-api/exchange/task/{taskID}','/universer-api/stream/file/upload','outputType','exportDOCXBySnapshot','filter','importXLSXToSnapshot','_addDoneTask','export','_getUnitID','_exportBySnapshot','append','_blank','content-disposition','UNIVER_PROJECT','getUnitOnRev','file','link','Method\x20not\x20implemented.','univer-text-red-500','_getIgnoreTableExport','Success','show','/universer-api/exchange/{type}/import','getTask','?size=','_injector','UNRECOGNIZED','3280405evRbHu','_uploadTaskNotDone'];_0x4120=function(){return _0x55e4c3;};return _0x4120();}const _0x2c5c7c=_0x3fb5;function _0x3fb5(_0xdb834d,_0x36f3d3){_0xdb834d=_0xdb834d-0x141;const _0x412046=_0x4120();let _0x3fb54e=_0x412046[_0xdb834d];return _0x3fb54e;}(function(_0x58540f,_0x6bc1c0){const _0x54f570=_0x3fb5,_0x1cec0d=_0x58540f();while(!![]){try{const _0x3221b5=parseInt(_0x54f570(0x251))/0x1*(-parseInt(_0x54f570(0x1e9))/0x2)+-parseInt(_0x54f570(0x19d))/0x3*(-parseInt(_0x54f570(0x24a))/0x4)+-parseInt(_0x54f570(0x20a))/0x5+parseInt(_0x54f570(0x17d))/0x6+parseInt(_0x54f570(0x1eb))/0x7+parseInt(_0x54f570(0x142))/0x8*(parseInt(_0x54f570(0x194))/0x9)+parseInt(_0x54f570(0x1d3))/0xa*(-parseInt(_0x54f570(0x241))/0xb);if(_0x3221b5===_0x6bc1c0)break;else _0x1cec0d['push'](_0x1cec0d['shift']());}catch(_0x512183){_0x1cec0d['push'](_0x1cec0d['shift']());}}}(_0x4120,0xc1e3f));import{UniverLicensePlugin as _0x8ec379}from'@univerjs-pro/license';import{DependentOn as _0x15b6d6,Disposable as _0x10915a,IConfigService as _0xdac8e4,ILogService as _0x42c6ae,IUniverInstanceService as _0xb7242e,Inject as _0x15c27f,Injector as _0x338992,LocaleService as _0x1cbf82,Plugin as _0x357741,UniverInstanceType as _0x578700,createIdentifier as _0x3bbcbc,merge as _0x4cb4de,registerDependencies as _0x1ade79,resolveWithBasePath as _0x369498,toDisposable as _0x49a60b,touchDependencies as _0x68876e}from'@univerjs/core';import{HTTPResponseError as _0x48e33b,HTTPService as _0x126653,UniverNetworkPlugin as _0x3d8172}from'@univerjs/network';import{BuiltInUIPart as _0x22e86c,IMessageService as _0x2d908b,IUIPartsService as _0x1f07ed,connectInjector as _0xe15941,useDependency as _0x40406a,useObservable as _0x18c5e8}from'@univerjs/ui';import{ClockIcon as _0x519ac9,CloseIcon as _0x4c698b,DocMultiIcon as _0x57c3b1,ErrorIcon as _0x3565b9,ShareRangeIcon as _0x6e6da1,SlideMultiIcon as _0x3d2c14,SuccessIcon as _0x57b05e,XlsxMultiIcon as _0x11134e}from'@univerjs/icons';import{useEffect as _0x226f9e,useState as _0x162abd}from'react';import{BehaviorSubject as _0x7fd868,Subject as _0x1f8116}from'rxjs';import{MessageType as _0x3bd852,Tooltip as _0x745f60,clsx as _0x20b7ca,scrollbarClassName as _0x5d06c6}from'@univerjs/design';import{jsx as _0x1746ec,jsxs as _0x38f36c}from'react/jsx-runtime';import{ErrorCode as _0x114573,FileSource as _0x2a1497}from'@univerjs/protocol';import{b64DecodeUnicode as _0x538009,b64EncodeUnicode as _0x8cdf50,getSheetBlocksFromSnapshot as _0x351546,textDecoder as _0x580ebc,textEncoder as _0x4899df,transformDocumentDataToSnapshot as _0x1e33db,transformSnapshotToDocumentData as _0xa041f7,transformSnapshotToWorkbookData as _0x3997f7,transformWorkbookDataToSnapshot as _0x3c59e4}from'@univerjs-pro/collaboration';import{deflateSync as _0x28c47b}from'fflate';const w='exchange-client.config';Symbol(w);const Me={};var Ne=_0x2c5c7c(0x273),Pe='0.23.0';function T(_0x4b74ff){'@babel/helpers - typeof';const _0x3f9535=_0x2c5c7c;return T=typeof Symbol==_0x3f9535(0x1df)&&typeof Symbol['iterator']=='symbol'?function(_0x1de091){return typeof _0x1de091;}:function(_0x525864){const _0x24bdaa=_0x3f9535;return _0x525864&&typeof Symbol==_0x24bdaa(0x1df)&&_0x525864[_0x24bdaa(0x246)]===Symbol&&_0x525864!==Symbol['prototype']?'symbol':typeof _0x525864;},T(_0x4b74ff);}function Fe(_0x34a923,_0x793dc5){const _0x426ebb=_0x2c5c7c;if(T(_0x34a923)!=_0x426ebb(0x18e)||!_0x34a923)return _0x34a923;var _0x4e27b9=_0x34a923[Symbol['toPrimitive']];if(_0x4e27b9!==void 0x0){var _0x4cb264=_0x4e27b9[_0x426ebb(0x161)](_0x34a923,_0x793dc5||_0x426ebb(0x1cf));if(T(_0x4cb264)!=_0x426ebb(0x18e))return _0x4cb264;throw TypeError(_0x426ebb(0x141));}return(_0x793dc5===_0x426ebb(0x1a2)?String:Number)(_0x34a923);}function Ie(_0x3c349e){const _0x3eeafa=_0x2c5c7c;var _0x7c9513=Fe(_0x3c349e,_0x3eeafa(0x1a2));return T(_0x7c9513)==_0x3eeafa(0x20d)?_0x7c9513:_0x7c9513+'';}function E(_0x22bd50,_0x46612a,_0xbde5f4){return(_0x46612a=Ie(_0x46612a))in _0x22bd50?Object['defineProperty'](_0x22bd50,_0x46612a,{'value':_0xbde5f4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x22bd50[_0x46612a]=_0xbde5f4,_0x22bd50;}let Le=function(_0x4c5f83){const _0x3bfc37=_0x2c5c7c;return _0x4c5f83[_0x4c5f83['UPLOADING']=0x0]=_0x3bfc37(0x210),_0x4c5f83[_0x4c5f83[_0x3bfc37(0x20e)]=0x1]='SUCCESS',_0x4c5f83[_0x4c5f83['ERROR']=0x2]=_0x3bfc37(0x1a4),_0x4c5f83;}({});const D=_0x3bbcbc('univer-pro.exchange-client.upload-notification.service');var O=class extends _0x10915a{constructor(){const _0x2b1aa4=_0x2c5c7c;super(),E(this,'_visible$',new _0x1f8116()),E(this,_0x2b1aa4(0x263),new _0x1f8116()),E(this,_0x2b1aa4(0x216),new _0x1f8116()),E(this,'visible$',this[_0x2b1aa4(0x235)][_0x2b1aa4(0x1b5)]()),E(this,_0x2b1aa4(0x25e),this[_0x2b1aa4(0x263)][_0x2b1aa4(0x1b5)]()),E(this,'list$',this[_0x2b1aa4(0x216)]['asObservable']()),E(this,_0x2b1aa4(0x1d0),[]);}[_0x2c5c7c(0x1c6)](){const _0x279294=_0x2c5c7c;super[_0x279294(0x1c6)](),this[_0x279294(0x235)][_0x279294(0x236)](),this[_0x279294(0x263)][_0x279294(0x236)](),this[_0x279294(0x216)][_0x279294(0x236)]();}['show'](){const _0x4ee153=_0x2c5c7c;this[_0x4ee153(0x235)]['next'](!0x0);}[_0x2c5c7c(0x250)](){const _0x33936f=_0x2c5c7c;this[_0x33936f(0x235)][_0x33936f(0x1aa)](!0x1);}[_0x2c5c7c(0x247)](_0x2fb917){const _0x93b8cc=_0x2c5c7c;this[_0x93b8cc(0x263)][_0x93b8cc(0x1aa)](_0x2fb917);}[_0x2c5c7c(0x27b)](_0x2ddeba){const _0x27bf56=_0x2c5c7c;this[_0x27bf56(0x1d0)][_0x27bf56(0x1a6)](_0x2ddeba),this[_0x27bf56(0x216)][_0x27bf56(0x1aa)](this[_0x27bf56(0x1d0)]);}};function Re(_0xbed4a9){const _0x200f64=_0x2c5c7c;let {list:_0x1f8271}=_0xbed4a9;function _0x16965a(_0x1c69d3){switch(_0x1c69d3){case 0x1:return _0x1746ec(_0x57c3b1,{});case 0x2:return _0x1746ec(_0x11134e,{});case 0x3:return _0x1746ec(_0x3d2c14,{});default:return null;}}return _0x1746ec('div',{'className':_0x20b7ca(_0x200f64(0x174),_0x5d06c6),'children':_0x1746ec('ul',{'className':_0x200f64(0x1c3),'children':_0x1f8271['map']((_0x403bdc,_0x1a20ec)=>_0x1746ec('li',{'children':_0x38f36c('a',{'className':_0x200f64(0x1ee),'href':_0x403bdc[_0x200f64(0x1ff)],'target':_0x200f64(0x1fa),'rel':'noreferrer','children':[_0x38f36c(_0x200f64(0x159),{'className':'univer-flex\x20univer-w-[calc(100%-48px)]\x20univer-items-center','children':[_0x1746ec(_0x200f64(0x159),{'className':_0x200f64(0x17e),'children':_0x16965a(_0x403bdc['type'])}),_0x1746ec(_0x745f60,{'showIfEllipsis':!0x0,'title':_0x403bdc[_0x200f64(0x269)],'asChild':!0x0,'children':_0x1746ec(_0x200f64(0x159),{'className':_0x200f64(0x15b),'children':_0x403bdc[_0x200f64(0x269)]})})]}),_0x1746ec(_0x200f64(0x159),{'className':_0x200f64(0x17f),'children':_0x1746ec(_0x6e6da1,{})})]})},_0x1a20ec))})});}const k=_0x2c5c7c(0x188),A=_0x2c5c7c(0x1bc),j=_0x2c5c7c(0x187),M=_0x2c5c7c(0x275),N=_0x2c5c7c(0x280),P={[_0x578700[_0x2c5c7c(0x157)]]:[''],[_0x578700['UNIVER_DOC']]:[k],[_0x578700[_0x2c5c7c(0x143)]]:[A,j,M],[_0x578700[_0x2c5c7c(0x152)]]:[N],[_0x578700[_0x2c5c7c(0x1fc)]]:[''],[_0x578700['UNRECOGNIZED']]:['']},ze={[k]:_0x2c5c7c(0x1b8),[A]:_0x2c5c7c(0x172),[j]:'xlsm',[M]:_0x2c5c7c(0x144),[N]:_0x2c5c7c(0x1e1)};function Be(_0xa38700,_0x9a4957,_0x4073f5){const _0x54cb38=_0x2c5c7c;let _0x5d960a=document[_0x54cb38(0x175)]('a');_0x5d960a['href']=_0xa38700,_0x5d960a[_0x54cb38(0x255)][_0x54cb38(0x16e)]='none',_0x5d960a[_0x54cb38(0x199)]=_0x9a4957+'.'+_0x4073f5,document['body'][_0x54cb38(0x16a)](_0x5d960a),_0x5d960a[_0x54cb38(0x260)](),document['body'][_0x54cb38(0x1b0)](_0x5d960a);}function F(_0x33feef,_0x1ead1d,_0x3ac746){const _0x2fb549=_0x2c5c7c;let _0x39fa15=URL['createObjectURL'](_0x33feef);Be(_0x39fa15,_0x1ead1d,_0x3ac746),URL[_0x2fb549(0x1db)](_0x39fa15);}function Ve(_0x39f578){const _0x2afec5=_0x2c5c7c;let _0x35493c=_0x39f578[_0x2afec5(0x269)][_0x2afec5(0x276)]('.')[_0x2afec5(0x23f)]();if(!_0x35493c)return _0x578700['UNIVER_UNKNOWN'];let _0x5d0575=He(),_0x41ddde=_0x578700['UNIVER_UNKNOWN'];return _0x5d0575['some'](_0x1e3a4e=>Ue(_0x35493c,_0x1e3a4e)?(_0x41ddde=_0x1e3a4e,!0x0):!0x1),_0x41ddde;}function He(){const _0x1a7ef6=_0x2c5c7c;return Object['values'](_0x578700)[_0x1a7ef6(0x1f3)](_0x1bf731=>typeof _0x1bf731==_0x1a7ef6(0x21b));}function Ue(_0x3aa434,_0x574336){return P[_0x574336]['map'](_0x277b3f=>(ze[_0x277b3f]||'')['toLowerCase']())['includes'](_0x3aa434['toLowerCase']());}function I(_0x3c1941,_0x216b87=!0x1){const _0x505959=_0x2c5c7c;let _0x5ba1e1=_0x3c1941[_0x505959(0x245)](_0x120f8a=>P[_0x120f8a])['join'](',');return new Promise((_0x298c53,_0x3609cf)=>{const _0x4c037a=_0x505959;let _0x1b44e3=document[_0x4c037a(0x175)]('input');_0x1b44e3[_0x4c037a(0x1ad)]=_0x4c037a(0x1fe),_0x1b44e3[_0x4c037a(0x256)]=_0x5ba1e1,_0x1b44e3[_0x4c037a(0x1e5)]=_0x216b87,_0x1b44e3['addEventListener']('change',_0x5b8841=>{const _0x5c415f=_0x4c037a;let _0xd17b1d=_0x5b8841[_0x5c415f(0x17b)];if(!_0xd17b1d[_0x5c415f(0x170)]||_0xd17b1d['files'][_0x5c415f(0x1b6)]===0x0)throw _0x3609cf(null),Error(_0x5c415f(0x1e0));_0x298c53(_0xd17b1d[_0x5c415f(0x170)]);}),_0x1b44e3['click']();});}async function L(_0xc58b8,_0x3fc24e){const _0x543497=_0x2c5c7c;try{var _0x1d6783,_0x2f515d,_0x1b06d7;let _0x1d7e45=await _0x3fc24e[_0x543497(0x243)](_0xc58b8,{'responseType':_0x543497(0x21c)}),_0x707d68=_0x1d7e45[_0x543497(0x15a)],_0x79e4f2=(_0x1d6783=(_0x2f515d=_0x1d7e45[_0x543497(0x242)][_0x543497(0x243)](_0x543497(0x198)))==null?void 0x0:_0x2f515d[_0x543497(0x222)](',\x20'))==null?_0x543497(0x21a):_0x1d6783,_0x529b0d=_0x543497(0x1d2)+(ze[_0x79e4f2]||_0x543497(0x172)),_0x3faaf8=(_0x1b06d7=_0x1d7e45[_0x543497(0x242)][_0x543497(0x243)](_0x543497(0x1fb)))==null?void 0x0:_0x1b06d7['join'](',\x20');if(_0x3faaf8){let _0x256167=_0x3faaf8[_0x543497(0x272)](/filename=(.+)/);_0x256167&&_0x256167[0x1]&&(_0x529b0d=_0x256167[0x1]);}else _0x529b0d=We(_0xc58b8)||_0x529b0d;return new File([_0x707d68],_0x529b0d,{'type':_0x79e4f2});}catch(_0x130179){console[_0x543497(0x25f)](_0x543497(0x149),_0x130179);return;}}function We(_0x2c83d6){const _0x3758e8=_0x2c5c7c;try{return new URL(_0x2c83d6)['pathname'][_0x3758e8(0x276)]('/')['pop']();}catch(_0x40076e){console[_0x3758e8(0x25f)](_0x3758e8(0x179),_0x40076e);return;}}function Ge(_0x1b8c96){const _0x1cd144=_0x2c5c7c;let _0x574db1=new Blob([_0x1b8c96['buffer']],{'type':_0x1cd144(0x16c)});return new File([_0x574db1],_0x1cd144(0x239));}function R(_0x4c8b7b,_0x1b1e21){const _0x3a7a0d=_0x2c5c7c;return _0x4c8b7b['replace'](_0x3a7a0d(0x27d),_0x1b1e21);}function Ke(_0x4c2eff,_0x2fa221){const _0x2b499c=_0x2c5c7c;return _0x4c2eff[_0x2b499c(0x25d)]('{taskID}',_0x2fa221);}function qe(_0x51717a,_0x27d107){const _0xe954d5=_0x2c5c7c;return _0x51717a['replace'](_0xe954d5(0x1a3),_0x27d107);}function z(_0x497833,_0x3d46db){return function(_0x484252,_0x37afb2){_0x3d46db(_0x484252,_0x37afb2,_0x497833);};}function B(_0x114223,_0x5b2a00,_0x4cae38,_0x262385){const _0x51e306=_0x2c5c7c;var _0x2b4d23=arguments[_0x51e306(0x1b6)],_0x3affa8=_0x2b4d23<0x3?_0x5b2a00:_0x262385===null?_0x262385=Object[_0x51e306(0x281)](_0x5b2a00,_0x4cae38):_0x262385,_0x49c55a;if(typeof Reflect==_0x51e306(0x18e)&&typeof Reflect[_0x51e306(0x267)]==_0x51e306(0x1df))_0x3affa8=Reflect[_0x51e306(0x267)](_0x114223,_0x5b2a00,_0x4cae38,_0x262385);else{for(var _0x2e7183=_0x114223[_0x51e306(0x1b6)]-0x1;_0x2e7183>=0x0;_0x2e7183--)(_0x49c55a=_0x114223[_0x2e7183])&&(_0x3affa8=(_0x2b4d23<0x3?_0x49c55a(_0x3affa8):_0x2b4d23>0x3?_0x49c55a(_0x5b2a00,_0x4cae38,_0x3affa8):_0x49c55a(_0x5b2a00,_0x4cae38))||_0x3affa8);}return _0x2b4d23>0x3&&_0x3affa8&&Object['defineProperty'](_0x5b2a00,_0x4cae38,_0x3affa8),_0x3affa8;}const V=_0x3bbcbc('univer-pro.exchange-client.request.service');let H=class{constructor(_0xccbd48,_0x3c12b7){const _0x342a8b=_0x2c5c7c;this['_configService']=_0xccbd48,this[_0x342a8b(0x18f)]=_0x3c12b7,E(this,'_taskInterrupted',new Set());}[_0x2c5c7c(0x1c6)](){}[_0x2c5c7c(0x164)](_0x1bacd6){const _0x3f1d86=_0x2c5c7c;this[_0x3f1d86(0x1ce)][_0x3f1d86(0x232)](_0x1bacd6);}['clearTaskInterrupted'](){const _0x5cfd0a=_0x2c5c7c;this[_0x5cfd0a(0x1ce)]['clear']();}async[_0x2c5c7c(0x1b1)](_0x2f4ada,_0x1fa976=0x0,_0x45554d=!0x1){const _0x282397=_0x2c5c7c;if(typeof _0x2f4ada=='string'){let _0x500b7d=await L(_0x2f4ada,this['_httpService']);if(!_0x500b7d)throw Error(_0x282397(0x215));_0x2f4ada=_0x500b7d;}_0x1fa976=_0x1fa976||_0x2f4ada['size'];let _0x4516ff=new FormData();_0x4516ff[_0x282397(0x1f9)]('file',_0x2f4ada);try{let _0x18d6b0=this[_0x282397(0x22e)]()+_0x282397(0x207)+_0x1fa976+'&source='+_0x2a1497['HttpImport']+_0x282397(0x27e)+_0x45554d,_0x3d7aba={'body':_0x4516ff},_0x300e76=(await this[_0x282397(0x18f)][_0x282397(0x1dd)](_0x18d6b0,_0x3d7aba))[_0x282397(0x15a)];if(_0x300e76[_0x282397(0x25f)]&&_0x300e76[_0x282397(0x25f)][_0x282397(0x176)]!==_0x114573['OK'])throw Error(this[_0x282397(0x1d7)]('upload\x20request\x20failed',_0x300e76[_0x282397(0x25f)]));return _0x300e76;}catch(_0x3bb3bd){throw _0x3bb3bd instanceof Error?_0x3bb3bd:Error(this['_buildHttpErrorMessage'](_0x282397(0x19f),_0x3bb3bd));}}async['import'](_0x114779){const _0x6beed3=_0x2c5c7c;let {fileID:_0x1b15d2,type:_0x4602b4,outputType:_0x53bfe0,minSheetColumnCount:_0x285a18,minSheetRowCount:_0x105972}=_0x114779;try{let _0x489283=R(this[_0x6beed3(0x1a9)](),''+_0x4602b4),_0x4546cb={'body':{'fileID':_0x1b15d2,'outputType':_0x53bfe0,'minSheetColumnCount':_0x285a18,'minSheetRowCount':_0x105972}},_0x46ab7d=(await this['_httpService'][_0x6beed3(0x1dd)](_0x489283,_0x4546cb))['body'];return _0x46ab7d[_0x6beed3(0x25f)]&&_0x46ab7d[_0x6beed3(0x25f)][_0x6beed3(0x176)]!==_0x114573['OK']?void 0x0:_0x46ab7d;}catch{return;}}async[_0x2c5c7c(0x1f6)](_0x87eda5){const _0x1a47fa=_0x2c5c7c;let {unitID:_0x47893a,jsonID:_0x5e448c,type:_0x17d0c4,sscSwitch:_0x50a532,useImageUrl:_0x442b17,ignoreTableExport:_0x1155dd}=_0x87eda5;try{let _0x2465ce=R(this[_0x1a47fa(0x1d1)](),''+_0x17d0c4),_0x79d1fe={'body':{'unitID':_0x47893a,'jsonID':_0x5e448c,'type':_0x17d0c4,'sscSwitch':_0x50a532,'useImageUrl':_0x442b17,'ignoreTableExport':_0x1155dd}},_0x2fde94=(await this[_0x1a47fa(0x18f)][_0x1a47fa(0x1dd)](_0x2465ce,_0x79d1fe))[_0x1a47fa(0x15a)];return _0x2fde94[_0x1a47fa(0x25f)]&&_0x2fde94[_0x1a47fa(0x25f)][_0x1a47fa(0x176)]!==_0x114573['OK']?void 0x0:_0x2fde94;}catch{return;}}async[_0x2c5c7c(0x206)](_0x3d18e8){return new Promise((_0x2cc744,_0x1f1267)=>{const _0x471059=_0x3fb5;try{let _0x450474=0x0,_0x4b1f2b=Ke(this[_0x471059(0x165)](),''+_0x3d18e8),_0x1b9116=this[_0x471059(0x240)](),_0x110f70=async()=>{const _0x38f299=_0x471059;if(this['_taskInterrupted'][_0x38f299(0x261)](_0x3d18e8))return;let _0x39afa4=(await this[_0x38f299(0x18f)][_0x38f299(0x243)](_0x4b1f2b))[_0x38f299(0x15a)];if(_0x39afa4['error']&&_0x39afa4[_0x38f299(0x25f)][_0x38f299(0x176)]===_0x114573['OK']){if(_0x39afa4['status']===_0x38f299(0x238))_0x2cc744(_0x39afa4);else{if(_0x39afa4[_0x38f299(0x219)]==='pending'){let _0x145bd7=0x3e8;if(_0x450474>=_0x1b9116){_0x1f1267(_0x39afa4);return;}else _0x450474>=0x7530&&(_0x145bd7=0x1388);_0x450474+=_0x145bd7,setTimeout(_0x110f70,_0x145bd7);}else _0x1f1267(_0x39afa4);}}else _0x1f1267(_0x39afa4);};_0x110f70();}catch(_0x2c12ce){_0x1f1267(_0x2c12ce instanceof Error?_0x2c12ce:Error(String(_0x2c12ce)));}});}async[_0x2c5c7c(0x1e4)](_0x496a7e){const _0x46d9c2=_0x2c5c7c;try{let _0xea5873=qe(this[_0x46d9c2(0x214)](),''+_0x496a7e);return(await this['_httpService'][_0x46d9c2(0x243)](_0xea5873))[_0x46d9c2(0x15a)];}catch{return;}}async[_0x2c5c7c(0x26b)](_0x1b0038){const _0x5e0492=_0x2c5c7c;try{return(await this[_0x5e0492(0x18f)][_0x5e0492(0x243)](_0x1b0038,{'responseType':_0x5e0492(0x26e)}))[_0x5e0492(0x15a)];}catch{return;}}[_0x2c5c7c(0x1d7)](_0x39a074,_0x1b010d){let _0x44c47d=this['_extractErrorDetail'](_0x1b010d);return _0x44c47d?_0x39a074+':\x20'+_0x44c47d:_0x39a074;}[_0x2c5c7c(0x1de)](_0x39f722,_0x1571df){const _0x6db875=_0x2c5c7c;if(_0x1571df instanceof _0x48e33b){let _0x221df6=typeof _0x1571df[_0x6db875(0x219)]=='number'?''+_0x1571df[_0x6db875(0x219)]+(_0x1571df[_0x6db875(0x1cd)]?'\x20'+_0x1571df['statusText']:''):void 0x0,_0x1e05f9=this[_0x6db875(0x1ea)](_0x1571df[_0x6db875(0x25f)]);return _0x221df6&&_0x1e05f9?_0x39f722+':\x20HTTP\x20'+_0x221df6+_0x6db875(0x223)+_0x1e05f9:_0x221df6?_0x39f722+_0x6db875(0x16d)+_0x221df6:_0x1e05f9?_0x39f722+':\x20'+_0x1e05f9:_0x39f722;}let _0x4e4a7f=this[_0x6db875(0x1ea)](_0x1571df);return _0x4e4a7f?_0x39f722+':\x20'+_0x4e4a7f:_0x39f722;}[_0x2c5c7c(0x1ea)](_0x1dc674){const _0x51b138=_0x2c5c7c;if(typeof _0x1dc674=='string'){let _0x28d4aa=_0x1dc674[_0x51b138(0x21e)]();return _0x28d4aa['length']>0x0?_0x28d4aa:void 0x0;}if(_0x1dc674 instanceof Error)return this[_0x51b138(0x1ea)](_0x1dc674['message']);if(!_0x1dc674||typeof _0x1dc674!=_0x51b138(0x18e)||Array[_0x51b138(0x1a1)](_0x1dc674))return;let _0x4b51bf=_0x1dc674,_0x2ef27a=this['_extractErrorDetail'](_0x4b51bf[_0x51b138(0x23a)]);if(_0x2ef27a)return _0x2ef27a;if(_0x4b51bf[_0x51b138(0x25f)]&&typeof _0x4b51bf[_0x51b138(0x25f)]=='object'&&!Array[_0x51b138(0x1a1)](_0x4b51bf[_0x51b138(0x25f)])){let _0x555064=this[_0x51b138(0x1ea)](_0x4b51bf['error']);if(_0x555064)return _0x555064;}}[_0x2c5c7c(0x22e)](){const _0x4c6db3=_0x2c5c7c;var _0x5aa14d;let _0x468acd=this[_0x4c6db3(0x1e6)]['getConfig'](w);return(_0x5aa14d=_0x468acd==null?void 0x0:_0x468acd['uploadFileServerUrl'])==null?_0x4c6db3(0x1f0):_0x5aa14d;}[_0x2c5c7c(0x1a9)](){const _0x58b074=_0x2c5c7c;var _0x3ee6a5;let _0x5523ff=this[_0x58b074(0x1e6)][_0x58b074(0x185)](w);return(_0x3ee6a5=_0x5523ff==null?void 0x0:_0x5523ff['importServerUrl'])==null?_0x58b074(0x205):_0x3ee6a5;}['_getExportURL'](){const _0x271e6a=_0x2c5c7c;var _0x5b7355;let _0x586101=this[_0x271e6a(0x1e6)][_0x271e6a(0x185)](w);return(_0x5b7355=_0x586101==null?void 0x0:_0x586101['exportServerUrl'])==null?_0x271e6a(0x1e2):_0x5b7355;}['_getTaskURL'](){const _0x2b1fe9=_0x2c5c7c;var _0x3cae7c;let _0x459359=this['_configService'][_0x2b1fe9(0x185)](w);return(_0x3cae7c=_0x459359==null?void 0x0:_0x459359[_0x2b1fe9(0x184)])==null?_0x2b1fe9(0x1ef):_0x3cae7c;}['_getSignURL'](){const _0x3a37c8=_0x2c5c7c;var _0xa0f77e;let _0x4a27e3=this[_0x3a37c8(0x1e6)]['getConfig'](w);return(_0xa0f77e=_0x4a27e3==null?void 0x0:_0x4a27e3[_0x3a37c8(0x19c)])==null?'/universer-api/file/{fileID}/sign-url':_0xa0f77e;}[_0x2c5c7c(0x240)](){const _0x1007f2=_0x2c5c7c;var _0x444a7b;let _0x3514dd=this['_configService'][_0x1007f2(0x185)](w);return(_0x444a7b=_0x3514dd==null?void 0x0:_0x3514dd[_0x1007f2(0x264)])==null?0x1d4c0:_0x444a7b;}};H=B([z(0x0,_0xdac8e4),z(0x1,_0x15c27f(_0x126653))],H);function Je(_0x9fd8cf){const _0x5be797=_0x2c5c7c;let _0x464133=_0x9fd8cf[_0x5be797(0x163)];if(!_0x464133)return null;let _0x96fb6d={};_0x464133[_0x5be797(0x192)]&&Object[_0x5be797(0x14c)](_0x464133['sheets'])['forEach'](_0x328034=>{const _0x2fdb98=_0x5be797;let _0x4d7db7=_0x464133[_0x2fdb98(0x192)][_0x328034];_0x96fb6d[_0x328034]={..._0x4d7db7,'originalMeta':_0x8cdf50(_0x580ebc['decode'](_0x4d7db7['originalMeta']))};});let _0x409628=_0x8cdf50(_0x580ebc[_0x5be797(0x22c)](_0x464133[_0x5be797(0x252)]));return{..._0x9fd8cf,'workbook':{..._0x464133,'originalMeta':_0x409628,'sheets':_0x96fb6d},'doc':{}};}function Ye(_0x13e692){const _0x1123d4=_0x2c5c7c;let _0x4a3a3a=_0x13e692[_0x1123d4(0x1c0)];if(!_0x4a3a3a)return null;let _0x136276=_0x8cdf50(_0x580ebc[_0x1123d4(0x22c)](_0x4a3a3a[_0x1123d4(0x252)]));return{..._0x13e692,'workbook':{},'doc':{..._0x4a3a3a,'originalMeta':_0x136276}};}function Xe(_0x334654){let _0x1b4982={};return _0x334654['forEach'](_0x43897e=>{const _0x404b0e=_0x3fb5;_0x1b4982[_0x43897e['id']]={..._0x43897e,'data':_0x8cdf50(_0x580ebc[_0x404b0e(0x22c)](_0x43897e['data']))};}),_0x1b4982;}async function U(_0x241db4){const _0x3d7118=_0x2c5c7c;var _0x356b6d;let _0x38ae7a={'metadata':void 0x0},_0x2ded20=_0x241db4['id'],_0x1e438a=(_0x356b6d=_0x241db4['rev'])==null?0x0:_0x356b6d,_0x1c1f76=new q(),{snapshot:_0x3953b8}=await _0x3c59e4(_0x38ae7a,_0x241db4,_0x2ded20,_0x1e438a,_0x1c1f76),_0x5468c3=await _0x351546(_0x3953b8,_0x1c1f76),_0xbd9e71=Je(_0x3953b8);if(!_0xbd9e71)throw Error(_0x3d7118(0x1b2));return{'snapshot':_0xbd9e71,'sheetBlocks':Xe(_0x5468c3)};}async function W(_0x510772){const _0x57dba2=_0x2c5c7c;var _0x48c60d;let _0x4ec76c={'metadata':void 0x0},_0x2ba258=_0x510772['id'],{snapshot:_0x1592cd}=await _0x1e33db(_0x4ec76c,_0x510772,_0x2ba258,(_0x48c60d=_0x510772[_0x57dba2(0x18b)])==null?0x0:_0x48c60d,new q()),_0x42fdc4=Ye(_0x1592cd);if(!_0x42fdc4)throw Error(_0x57dba2(0x1b2));return{'snapshot':_0x42fdc4,'sheetBlocks':{}};}async function G(_0x578a59){const _0x23be5e=_0x2c5c7c;let _0x240a32=_0x578a59[_0x23be5e(0x14e)],_0x40dd53=_0x578a59[_0x23be5e(0x228)]||{};return await _0x3997f7(_0x240a32,Object[_0x23be5e(0x14c)](_0x40dd53)[_0x23be5e(0x245)](_0x447ec0=>_0x40dd53[_0x447ec0])[_0x23be5e(0x245)](_0x3627bd=>({..._0x3627bd,'data':_0x3627bd[_0x23be5e(0x18d)]?JSON[_0x23be5e(0x146)](_0x538009(_0x3627bd[_0x23be5e(0x18d)])):void 0x0})));}function K(_0x48ba5b){let _0x2fafb2=_0x48ba5b['snapshot'];return _0xa041f7(_0x2fafb2);}var q=class{constructor(){const _0x46898d=_0x2c5c7c;E(this,_0x46898d(0x268),new Map());}[_0x2c5c7c(0x1fd)](){const _0x44f9ae=_0x2c5c7c;return Promise[_0x44f9ae(0x1c7)]({'snapshot':{'unitID':'','type':_0x578700[_0x44f9ae(0x143)],'rev':0x0,'workbook':void 0x0,'doc':void 0x0},'changesets':[],'error':{'code':_0x114573['OK'],'message':''}});}[_0x2c5c7c(0x169)](_0x3b5dc1,_0x5ca78c){const _0x5f5448=_0x2c5c7c;let _0x1de17e=this[_0x5f5448(0x268)][_0x5f5448(0x243)](_0x5ca78c[_0x5f5448(0x1e7)]);return Promise['resolve']({'block':_0x1de17e,'error':{'code':_0x114573['OK'],'message':''}});}[_0x2c5c7c(0x23b)](_0xf04d13,_0x4c1876){const _0x26633b=_0x2c5c7c;let _0x400d02=this[_0x26633b(0x268)][_0x26633b(0x243)](_0x4c1876[_0x26633b(0x1e7)]);return Promise['resolve']({'block':_0x400d02===void 0x0?void 0x0:{..._0x400d02,'data':JSON['parse'](_0x580ebc[_0x26633b(0x22c)](_0x400d02['data']))},'error':{'code':_0x114573['OK'],'message':''}});}[_0x2c5c7c(0x262)](){const _0x2451f8=_0x2c5c7c;return Promise[_0x2451f8(0x1c7)]({'changesets':[],'error':{'code':_0x114573['OK'],'message':''}});}[_0x2c5c7c(0x25b)](){const _0x277c0a=_0x2c5c7c;return Promise[_0x277c0a(0x1c7)]({'resources':{},'error':{'code':_0x114573['OK'],'message':''}});}['saveSnapshot'](){const _0x3aa4c9=_0x2c5c7c;return Promise[_0x3aa4c9(0x1c7)]({'error':{'code':_0x114573['OK'],'message':''}});}[_0x2c5c7c(0x14d)](){const _0x5b74ff=_0x2c5c7c;return Promise[_0x5b74ff(0x1c7)]({'error':{'code':_0x114573['OK'],'message':''}});}['saveSheetBlock'](_0x36dd0d,_0x43349d){const _0x55b3a4=_0x2c5c7c;let {block:_0x3fb41b}=_0x43349d;return _0x3fb41b?(this[_0x55b3a4(0x268)]['set'](_0x3fb41b['id'],_0x3fb41b),Promise[_0x55b3a4(0x1c7)]({'error':{'code':_0x114573['OK'],'message':''},'blockID':_0x3fb41b['id']})):Promise[_0x55b3a4(0x1c7)]({'error':{'code':_0x114573['UNDEFINED'],'message':_0x55b3a4(0x166)},'blockID':''});}[_0x2c5c7c(0x270)](){const _0x773e60=_0x2c5c7c;return Promise[_0x773e60(0x1c7)]({'error':{'code':_0x114573['OK'],'message':''},'concurrent':[]});}[_0x2c5c7c(0x19a)](){const _0x54c33b=_0x2c5c7c;return Promise[_0x54c33b(0x1c7)]({'error':void 0x0,'fileMetaId':''});}[_0x2c5c7c(0x24f)](){const _0x5c53eb=_0x2c5c7c;return Promise[_0x5c53eb(0x1c7)]({'error':void 0x0,'latestReqID':0x0});}};const J=_0x3bbcbc(_0x2c5c7c(0x217));let Y=class extends _0x10915a{constructor(_0x1c4176,_0x4dcebb,_0x3b68dc){const _0x2e57fe=_0x2c5c7c;super(),this[_0x2e57fe(0x1e6)]=_0x1c4176,this[_0x2e57fe(0x18f)]=_0x4dcebb,this[_0x2e57fe(0x21d)]=_0x3b68dc,E(this,_0x2e57fe(0x226),null),E(this,'_requestState$',new _0x1f8116()),E(this,'requestState$',this[_0x2e57fe(0x1d4)][_0x2e57fe(0x1b5)]());}[_0x2c5c7c(0x1c6)](){const _0x51cc05=_0x2c5c7c;super['dispose'](),this[_0x51cc05(0x1d4)][_0x51cc05(0x236)]();}async['importDOCXToSnapshot'](_0xa6919a){const _0x12512a=_0x2c5c7c;let _0x2051fc=await this['_importToSnapshot'](_0xa6919a,_0x578700[_0x12512a(0x177)]);if(!_0x2051fc||!_0x2051fc['snapshot'])return;let _0x590413=K(_0x2051fc);if(_0x590413)return _0x590413;}async[_0x2c5c7c(0x224)](_0x5363bc){const _0x226d91=_0x2c5c7c;return this['_export'](_0x5363bc,0x1,_0x578700[_0x226d91(0x177)]);}async[_0x2c5c7c(0x1f2)](_0x5c2898){const _0xf9ff30=_0x2c5c7c;let _0x28028e=await W(_0x5c2898);return this[_0xf9ff30(0x1f8)](_0x28028e,_0x578700['UNIVER_DOC']);}async[_0x2c5c7c(0x1f4)](_0x59b96e){const _0x387379=_0x2c5c7c;let _0x2206be=await this[_0x387379(0x1c9)](_0x59b96e,_0x578700['UNIVER_SHEET']);if(!_0x2206be)return;let _0x42fdc3=await G(_0x2206be);if(_0x42fdc3)return _0x42fdc3;}async['exportXLSXByUnitId'](_0x20351c){const _0x1feb22=_0x2c5c7c;return this[_0x1feb22(0x1d9)](_0x20351c,0x1,_0x578700[_0x1feb22(0x143)]);}async[_0x2c5c7c(0x23c)](_0x1052c3){const _0x1d8ab9=_0x2c5c7c;let _0x2461ba=await U(_0x1052c3);return this[_0x1d8ab9(0x1f8)](_0x2461ba,_0x578700[_0x1d8ab9(0x143)]);}async[_0x2c5c7c(0x1e3)](_0x49e211,_0x3fc250){const _0x4237ba=_0x2c5c7c;var _0x24cffa,_0x10ed40;let _0xb34186=await this[_0x4237ba(0x180)](_0x49e211);if(!_0xb34186)return;let _0x4b0905=await this['_import'](_0xb34186,0x1,_0x3fc250);if(!_0x4b0905)return;this['_importTaskId']=_0x4b0905,this[_0x4237ba(0x21d)][_0x4237ba(0x220)]();let _0x87d632=await this[_0x4237ba(0x21d)][_0x4237ba(0x206)](_0x4b0905)[_0x4237ba(0x218)](_0x28ff7e=>{const _0x54c40b=_0x4237ba;var _0x23512a;let _0x47a193=_0x28ff7e instanceof Error?_0x28ff7e['message']:(_0x23512a=_0x28ff7e[_0x54c40b(0x25f)])==null?void 0x0:_0x23512a[_0x54c40b(0x23a)];this['_requestState$'][_0x54c40b(0x1aa)]({'error':{'code':_0x114573[_0x54c40b(0x209)],'message':_0x47a193||''},'state':0x3});});if(!_0x87d632)return;let _0x1e7789=(_0x24cffa=_0x87d632[_0x4237ba(0x253)])==null?void 0x0:_0x24cffa['outputType'],_0x3572fe=((_0x10ed40=_0x87d632[_0x4237ba(0x253)])==null?void 0x0:_0x10ed40[_0x4237ba(0x147)])||'';if(_0x1e7789!==0x1){this[_0x4237ba(0x1d4)]['next']({'error':{'code':_0x114573[_0x4237ba(0x209)],'message':_0x4237ba(0x230)},'state':0x3});return;}if(_0x3572fe['length']===0x0){this['_requestState$'][_0x4237ba(0x1aa)]({'error':{'code':_0x114573[_0x4237ba(0x209)],'message':_0x4237ba(0x162)},'state':0x3});return;}return this[_0x4237ba(0x1d4)][_0x4237ba(0x1aa)]({'error':_0x87d632['error'],'state':0x3}),_0x3572fe;}async[_0x2c5c7c(0x22f)](_0x4339d7){const _0x4595e0=_0x2c5c7c;let _0x4fd871=await U(_0x4339d7),_0x5aa5a6=typeof _0x4339d7['id']=='string'&&_0x4339d7['id'][_0x4595e0(0x21e)]()?_0x4339d7['id']['trim']()+_0x4595e0(0x244):_0x4595e0(0x249),_0x516a2e=new File([JSON['stringify'](_0x4fd871)],_0x5aa5a6,{'type':_0x4595e0(0x16c)});return this[_0x4595e0(0x1e3)](_0x516a2e,_0x578700[_0x4595e0(0x143)]);}[_0x2c5c7c(0x20f)](){const _0x5ac366=_0x2c5c7c;this['_importTaskId']&&this[_0x5ac366(0x21d)][_0x5ac366(0x164)](this[_0x5ac366(0x226)]);}async['_importToSnapshot'](_0x1f601e,_0x210982){const _0x3f080a=_0x2c5c7c;var _0x455ae5,_0x145034;let _0x33e02f=await this[_0x3f080a(0x180)](_0x1f601e);if(!_0x33e02f)return;let _0x330138=await this[_0x3f080a(0x1c5)](_0x33e02f,0x2,_0x210982);if(!_0x330138)return;this[_0x3f080a(0x226)]=_0x330138,this[_0x3f080a(0x21d)][_0x3f080a(0x220)]();let _0x4477c5=await this[_0x3f080a(0x21d)][_0x3f080a(0x206)](_0x330138)['catch'](_0x46f5fc=>{const _0x895bb1=_0x3f080a;var _0x2e2553;let _0x243857=_0x46f5fc instanceof Error?_0x46f5fc[_0x895bb1(0x23a)]:(_0x2e2553=_0x46f5fc[_0x895bb1(0x25f)])==null?void 0x0:_0x2e2553[_0x895bb1(0x23a)];this[_0x895bb1(0x1d4)][_0x895bb1(0x1aa)]({'error':{'code':_0x114573[_0x895bb1(0x209)],'message':_0x243857||''},'state':0x3});});if(!_0x4477c5)return;let _0x11e304=(_0x455ae5=_0x4477c5[_0x3f080a(0x253)])==null?void 0x0:_0x455ae5[_0x3f080a(0x1f1)],_0x47dfbb=((_0x145034=_0x4477c5[_0x3f080a(0x253)])==null?void 0x0:_0x145034[_0x3f080a(0x22d)])||'';if(_0x11e304!==0x2){this[_0x3f080a(0x1d4)]['next']({'error':{'code':_0x114573['UNRECOGNIZED'],'message':_0x3f080a(0x230)},'state':0x3});return;}if(_0x47dfbb[_0x3f080a(0x1b6)]===0x0){this[_0x3f080a(0x1d4)]['next']({'error':{'code':_0x114573[_0x3f080a(0x209)],'message':_0x3f080a(0x229)},'state':0x3});return;}this[_0x3f080a(0x1d4)]['next']({'error':_0x4477c5[_0x3f080a(0x25f)],'state':0x3});let _0x2f41d6=await this[_0x3f080a(0x1ec)](_0x47dfbb);if(!_0x2f41d6)return;let _0x4a3677=await this[_0x3f080a(0x21d)][_0x3f080a(0x26b)](_0x2f41d6);if(!_0x4a3677){this[_0x3f080a(0x1d4)][_0x3f080a(0x1aa)]({'error':{'code':_0x114573[_0x3f080a(0x209)],'message':'Failed\x20to\x20get\x20text\x20from\x20url'},'state':0x5});return;}try{let _0xf47c6b=JSON[_0x3f080a(0x146)](_0x4a3677);return this[_0x3f080a(0x1d4)]['next']({'error':{'code':_0x114573['OK'],'message':_0x3f080a(0x237)},'state':0x5}),_0xf47c6b;}catch{this[_0x3f080a(0x1d4)][_0x3f080a(0x1aa)]({'error':{'code':_0x114573['UNRECOGNIZED'],'message':'Failed\x20to\x20parse\x20json'},'state':0x5});}}async[_0x2c5c7c(0x1f8)](_0x5ba2a9,_0xa0ca65){const _0x150c6c=_0x2c5c7c;let _0x46c440=JSON[_0x150c6c(0x22b)](_0x5ba2a9),_0x2a363c=_0x4899df[_0x150c6c(0x233)](_0x46c440),_0x511719=_0x28c47b(_0x2a363c),_0x290d9c=_0x2a363c[_0x150c6c(0x1b6)],_0x56e876=Ge(_0x511719),_0x474d21=await this[_0x150c6c(0x180)](_0x56e876,_0x290d9c,!0x0);if(_0x474d21)return this['_export'](_0x474d21,0x2,_0xa0ca65);}async[_0x2c5c7c(0x1d9)](_0x45bdda,_0x546d73,_0x2ba0cc){const _0x29fa10=_0x2c5c7c;var _0x557665;let _0x5d5e96=await this[_0x29fa10(0x21d)][_0x29fa10(0x1f6)]({'unitID':_0x546d73===0x1?_0x45bdda:'','jsonID':_0x546d73===0x2?_0x45bdda:'','type':_0x2ba0cc,'sscSwitch':this[_0x29fa10(0x24b)](),'useImageUrl':this[_0x29fa10(0x1b9)](),'ignoreTableExport':this[_0x29fa10(0x202)]()});if(!_0x5d5e96){this[_0x29fa10(0x1d4)][_0x29fa10(0x1aa)]({'error':{'code':_0x114573[_0x29fa10(0x209)],'message':_0x29fa10(0x171)},'state':0x2});return;}if(this[_0x29fa10(0x1d4)][_0x29fa10(0x1aa)]({'error':_0x5d5e96[_0x29fa10(0x25f)],'state':0x2}),_0x5d5e96[_0x29fa10(0x25f)]&&_0x5d5e96[_0x29fa10(0x25f)]['code']!==_0x114573['OK'])return;let _0x38531a=_0x5d5e96[_0x29fa10(0x1ed)],_0x3f2d2c=await this['_requestService'][_0x29fa10(0x206)](_0x38531a)['catch'](_0x153818=>{const _0x31aec9=_0x29fa10;var _0x4a04e0;let _0x82c3c5=_0x153818 instanceof Error?_0x153818[_0x31aec9(0x23a)]:(_0x4a04e0=_0x153818[_0x31aec9(0x25f)])==null?void 0x0:_0x4a04e0[_0x31aec9(0x23a)];this[_0x31aec9(0x1d4)]['next']({'error':{'code':_0x114573[_0x31aec9(0x209)],'message':_0x82c3c5||''},'state':0x3});});if(!_0x3f2d2c)return;let _0x1d7d78=((_0x557665=_0x3f2d2c[_0x29fa10(0x1f6)])==null?void 0x0:_0x557665['fileID'])||'';if(_0x1d7d78[_0x29fa10(0x1b6)]===0x0){this[_0x29fa10(0x1d4)][_0x29fa10(0x1aa)]({'error':{'code':_0x114573['UNRECOGNIZED'],'message':_0x29fa10(0x15f)},'state':0x3});return;}this[_0x29fa10(0x1d4)]['next']({'error':_0x3f2d2c[_0x29fa10(0x25f)],'state':0x3});let _0x89d85c=await this['_signUrl'](_0x1d7d78);if(!_0x89d85c)return;let _0x5de839=await L(_0x89d85c,this[_0x29fa10(0x18f)]);if(!_0x5de839){this[_0x29fa10(0x1d4)][_0x29fa10(0x1aa)]({'error':{'code':_0x114573[_0x29fa10(0x209)],'message':'Failed\x20to\x20get\x20file\x20from\x20url'},'state':0x6});return;}return this[_0x29fa10(0x1d4)][_0x29fa10(0x1aa)]({'error':{'code':_0x114573['OK'],'message':_0x29fa10(0x237)},'state':0x6}),_0x5de839;}async[_0x2c5c7c(0x180)](_0x497851,_0x516520,_0x4a2adf){const _0x5918ed=_0x2c5c7c;let _0xf39f58;try{_0xf39f58=await this[_0x5918ed(0x21d)][_0x5918ed(0x1b1)](_0x497851,_0x516520,_0x4a2adf);}catch(_0x51287b){let _0x303c5c=_0x51287b instanceof Error?_0x51287b['message']:String(_0x51287b);this[_0x5918ed(0x1d4)][_0x5918ed(0x1aa)]({'error':{'code':_0x114573[_0x5918ed(0x209)],'message':_0x303c5c},'state':0x0});return;}if(!_0xf39f58||typeof _0xf39f58[_0x5918ed(0x25a)]!='string'){this[_0x5918ed(0x1d4)][_0x5918ed(0x1aa)]({'error':{'code':_0x114573['UNRECOGNIZED'],'message':_0x5918ed(0x259)},'state':0x0});return;}let _0x510883=_0xf39f58['FileId'];if(_0x510883[_0x5918ed(0x1b6)]===0x0){this[_0x5918ed(0x1d4)][_0x5918ed(0x1aa)]({'error':{'code':_0x114573[_0x5918ed(0x209)],'message':_0x5918ed(0x15e)},'state':0x0});return;}return this[_0x5918ed(0x1d4)][_0x5918ed(0x1aa)]({'error':{'code':_0x114573['OK'],'message':_0x5918ed(0x237)},'state':0x0}),_0x510883;}async['_import'](_0x2b6dd0,_0x405ae3,_0x531900){const _0x29ab09=_0x2c5c7c;let _0x99f99c={'fileID':_0x2b6dd0,'type':_0x531900,'outputType':_0x405ae3,'fileUrl':'','minSheetRowCount':this[_0x29ab09(0x1cc)](),'minSheetColumnCount':this[_0x29ab09(0x225)]()},_0x4eb16a=await this['_requestService'][_0x29ab09(0x253)](_0x99f99c);if(!_0x4eb16a){this['_requestState$'][_0x29ab09(0x1aa)]({'error':{'code':_0x114573[_0x29ab09(0x209)],'message':_0x29ab09(0x191)},'state':0x1});return;}if(_0x4eb16a['error']&&_0x4eb16a[_0x29ab09(0x25f)][_0x29ab09(0x176)]!==_0x114573['OK']){this['_requestState$'][_0x29ab09(0x1aa)]({'error':_0x4eb16a['error'],'state':0x1});return;}let _0xdcd8be=_0x4eb16a[_0x29ab09(0x1ed)];if(_0xdcd8be[_0x29ab09(0x1b6)]===0x0){this[_0x29ab09(0x1d4)][_0x29ab09(0x1aa)]({'error':{'code':_0x114573[_0x29ab09(0x209)],'message':_0x29ab09(0x1dc)},'state':0x1});return;}return this[_0x29ab09(0x1d4)][_0x29ab09(0x1aa)]({'error':_0x4eb16a[_0x29ab09(0x25f)],'state':0x1}),_0xdcd8be;}async['_signUrl'](_0x51bb6e){const _0x3067ab=_0x2c5c7c;let _0x100139=await this[_0x3067ab(0x21d)][_0x3067ab(0x1e4)](_0x51bb6e);if(!_0x100139){this[_0x3067ab(0x1d4)][_0x3067ab(0x1aa)]({'error':{'code':_0x114573[_0x3067ab(0x209)],'message':_0x3067ab(0x231)},'state':0x4});return;}if(_0x100139['error']&&_0x100139[_0x3067ab(0x25f)][_0x3067ab(0x176)]!==_0x114573['OK']){this[_0x3067ab(0x1d4)][_0x3067ab(0x1aa)]({'error':_0x100139['error'],'state':0x4});return;}let _0x1856e5=_0x369498(_0x100139[_0x3067ab(0x1c8)],this[_0x3067ab(0x26c)]());if(_0x1856e5[_0x3067ab(0x1b6)]===0x0){this['_requestState$'][_0x3067ab(0x1aa)]({'error':{'code':_0x114573[_0x3067ab(0x209)],'message':_0x3067ab(0x231)},'state':0x4});return;}return this[_0x3067ab(0x1d4)]['next']({'error':_0x100139[_0x3067ab(0x25f)],'state':0x4}),_0x1856e5;}['_getDownloadEndpointURL'](){const _0x45cc26=_0x2c5c7c;var _0x220a4d;let _0x2e77d7=this[_0x45cc26(0x1e6)]['getConfig'](w);return(_0x220a4d=_0x2e77d7==null?void 0x0:_0x2e77d7[_0x45cc26(0x1d5)])==null?location[_0x45cc26(0x181)]:_0x220a4d;}[_0x2c5c7c(0x1cc)](){const _0x47e591=_0x2c5c7c;var _0x30048e,_0x41c385;let _0x4cc810=this[_0x47e591(0x1e6)][_0x47e591(0x185)](w);return(_0x30048e=_0x4cc810==null||(_0x41c385=_0x4cc810[_0x47e591(0x1cb)])==null?void 0x0:_0x41c385[_0x47e591(0x173)])==null?0x1:_0x30048e;}[_0x2c5c7c(0x225)](){const _0x4e87ec=_0x2c5c7c;var _0x307b60,_0x57920c;let _0x22fbe7=this[_0x4e87ec(0x1e6)][_0x4e87ec(0x185)](w);return(_0x307b60=_0x22fbe7==null||(_0x57920c=_0x22fbe7[_0x4e87ec(0x1cb)])==null?void 0x0:_0x57920c[_0x4e87ec(0x195)])==null?0x1:_0x307b60;}[_0x2c5c7c(0x24b)](){const _0x1396c3=_0x2c5c7c;var _0xb81e80,_0x2cfea7;let _0x24f800=this[_0x1396c3(0x1e6)][_0x1396c3(0x185)](w);return(_0xb81e80=_0x24f800==null||(_0x2cfea7=_0x24f800[_0x1396c3(0x1cb)])==null?void 0x0:_0x2cfea7['enableServerSideComputing'])==null?!0x1:_0xb81e80;}[_0x2c5c7c(0x1b9)](){const _0x1ee85c=_0x2c5c7c;var _0x4c34e1,_0x26d739;let _0x431e6a=this['_configService']['getConfig'](w);return(_0x4c34e1=_0x431e6a==null||(_0x26d739=_0x431e6a[_0x1ee85c(0x1cb)])==null?void 0x0:_0x26d739[_0x1ee85c(0x14f)])==null?!0x0:_0x4c34e1;}[_0x2c5c7c(0x202)](){const _0x6c937=_0x2c5c7c;var _0x19b57e,_0x34952a;let _0x595f59=this[_0x6c937(0x1e6)][_0x6c937(0x185)](w);return(_0x19b57e=_0x595f59==null||(_0x34952a=_0x595f59[_0x6c937(0x1cb)])==null?void 0x0:_0x34952a['ignoreTableExport'])==null?!0x1:_0x19b57e;}};Y=B([z(0x0,_0xdac8e4),z(0x1,_0x15c27f(_0x126653)),z(0x2,_0x15c27f(V))],Y);const Ze={'done':0x0,'count':0x0},X=_0x3bbcbc(_0x2c5c7c(0x167));let Z=class extends _0x10915a{constructor(_0xefc776,_0x2ce982,_0x1a94ca,_0x4e0218,_0x1d3a05,_0x25bbb9){const _0x473cfc=_0x2c5c7c;super(),this['_univerInstanceService']=_0xefc776,this[_0x473cfc(0x19e)]=_0x2ce982,this[_0x473cfc(0x1e8)]=_0x1a94ca,this[_0x473cfc(0x248)]=_0x4e0218,this['_uploadNotificationService']=_0x1d3a05,this[_0x473cfc(0x15c)]=_0x25bbb9,E(this,'_progress$',new _0x7fd868(Ze)),E(this,'progress$',this['_progress$']['asObservable']()),E(this,_0x473cfc(0x1a0),0x0),E(this,_0x473cfc(0x254),0x0),this['disposeWithMe'](_0x49a60b(this['_exchangeService']['requestState$'][_0x473cfc(0x1ac)](_0xd87aee=>{const _0x3c4d75=_0x473cfc;var _0x10c221;((_0x10c221=_0xd87aee[_0x3c4d75(0x25f)])==null?void 0x0:_0x10c221['code'])===_0x114573['OK']?this[_0x3c4d75(0x1f5)](0x1):this[_0x3c4d75(0x17a)](_0xd87aee['error']);})));}[_0x2c5c7c(0x1be)](){const _0x372003=_0x2c5c7c;this['_clearProgress'](),this[_0x372003(0x277)][_0x372003(0x247)](0x2),this[_0x372003(0x248)]['interruptImportTask']();}async[_0x2c5c7c(0x1bd)](_0x5a8160){const _0x3d4c1b=_0x2c5c7c;throw Error(_0x3d4c1b(0x200));}async[_0x2c5c7c(0x14a)](){const _0x5c7523=_0x2c5c7c;let _0x5254b9=await I([_0x578700[_0x5c7523(0x177)]]);if(_0x5254b9&&!this['_fileTypeError'](_0x5254b9,_0x578700['UNIVER_DOC']))return this[_0x5c7523(0x279)](_0x5254b9[0x0],_0x578700[_0x5c7523(0x177)]);}['importDOCXToSnapshot'](){throw Error('Method\x20not\x20implemented.');}async[_0x2c5c7c(0x224)](_0x22847c,_0x4b9000,_0x2d4e54){const _0x5dc302=_0x2c5c7c;this[_0x5dc302(0x160)](_0x3bd852[_0x5dc302(0x26d)]);let _0x18cd94=await this[_0x5dc302(0x248)]['exportDOCXByUnitId'](_0x22847c||this[_0x5dc302(0x148)]());_0x18cd94&&(F(_0x18cd94,_0x4b9000||this[_0x5dc302(0x156)](_0x18cd94),_0x5dc302(0x1b8)),this[_0x5dc302(0x160)](_0x3bd852[_0x5dc302(0x203)]));}async[_0x2c5c7c(0x1f2)](){const _0x2ccda1=_0x2c5c7c;this[_0x2ccda1(0x160)](_0x3bd852[_0x2ccda1(0x26d)]);let _0x2153ab=await this['_getUnitDocJson'](),_0x141a0a=await this['_exchangeService']['exportDOCXBySnapshot'](_0x2153ab);_0x141a0a&&(F(_0x141a0a,this['_getUnitName'](_0x141a0a),_0x2ccda1(0x1b8)),this[_0x2ccda1(0x160)](_0x3bd852[_0x2ccda1(0x203)]));}async['importXLSXToUnitId'](){const _0x298e39=_0x2c5c7c;if(this[_0x298e39(0x20b)]()){this[_0x298e39(0x19e)]['show']({'type':_0x3bd852[_0x298e39(0x21f)],'content':this[_0x298e39(0x1e8)]['t'](_0x298e39(0x266))});return;}let _0x48438d=await I([_0x578700[_0x298e39(0x143)]]);if(_0x48438d&&!this[_0x298e39(0x274)](_0x48438d,_0x578700['UNIVER_SHEET']))return this['_importFileToUnitId'](_0x48438d[0x0],_0x578700[_0x298e39(0x143)]);}async[_0x2c5c7c(0x1f4)](){const _0x1166ef=_0x2c5c7c;if(this[_0x1166ef(0x20b)]()){this[_0x1166ef(0x19e)][_0x1166ef(0x204)]({'type':_0x3bd852[_0x1166ef(0x21f)],'content':this[_0x1166ef(0x1e8)]['t'](_0x1166ef(0x266))});return;}let _0x54a297=await I([_0x578700[_0x1166ef(0x143)]]);if(!_0x54a297)return;this['_showUploadMessage'](_0x3bd852[_0x1166ef(0x26d)]);let _0x2b5560=await this[_0x1166ef(0x248)][_0x1166ef(0x1f4)](_0x54a297[0x0]);_0x2b5560&&(this[_0x1166ef(0x213)](_0x2b5560),this[_0x1166ef(0x1ab)](_0x3bd852[_0x1166ef(0x203)]));}async[_0x2c5c7c(0x1a7)](_0x228709,_0x1a9c9d,_0x177c71){const _0x35ce8d=_0x2c5c7c;this[_0x35ce8d(0x160)](_0x3bd852[_0x35ce8d(0x26d)]);let _0x58e508=await this[_0x35ce8d(0x248)][_0x35ce8d(0x1a7)](_0x228709||this[_0x35ce8d(0x1f7)]());_0x58e508&&(F(_0x58e508,_0x1a9c9d||this[_0x35ce8d(0x156)](_0x58e508),'xlsx'),this[_0x35ce8d(0x160)](_0x3bd852['Success']));}async['exportXLSXBySnapshot'](){const _0x35591e=_0x2c5c7c;this[_0x35591e(0x160)](_0x3bd852[_0x35591e(0x26d)]);let _0x4d1669=await this[_0x35591e(0x19b)](),_0xee7ce7=await this[_0x35591e(0x248)][_0x35591e(0x23c)](_0x4d1669);_0xee7ce7&&(F(_0xee7ce7,this[_0x35591e(0x156)](_0xee7ce7),'xlsx'),this[_0x35591e(0x160)](_0x3bd852[_0x35591e(0x203)]));}[_0x2c5c7c(0x1d6)](_0x59e04b){const _0x325702=_0x2c5c7c;this[_0x325702(0x22a)]=_0x59e04b;}async[_0x2c5c7c(0x279)](_0x2de889,_0x3c3d50){const _0x8a1de4=_0x2c5c7c;this[_0x8a1de4(0x277)][_0x8a1de4(0x204)](),this[_0x8a1de4(0x277)][_0x8a1de4(0x247)](0x0),this[_0x8a1de4(0x211)](0x4),this['_addDoneTask'](0x1);let _0x54cc7c=await this[_0x8a1de4(0x248)][_0x8a1de4(0x1e3)](_0x2de889,_0x3c3d50);if(!_0x54cc7c){this[_0x8a1de4(0x1bf)](),this[_0x8a1de4(0x277)][_0x8a1de4(0x247)](0x2);return;}let _0x2587ce={'link':this[_0x8a1de4(0x22a)](_0x54cc7c,_0x3c3d50),'name':_0x2de889[_0x8a1de4(0x269)],'type':_0x3c3d50};return this[_0x8a1de4(0x277)][_0x8a1de4(0x27b)](_0x2587ce),this['_completeProgress'](),this[_0x8a1de4(0x277)]['updateState'](0x1),_0x54cc7c;}[_0x2c5c7c(0x1f7)](){const _0x12e449=_0x2c5c7c;return this[_0x12e449(0x168)][_0x12e449(0x278)](_0x578700[_0x12e449(0x143)])[_0x12e449(0x1af)]();}[_0x2c5c7c(0x148)](){const _0x5e33f8=_0x2c5c7c;return this[_0x5e33f8(0x168)]['getCurrentUnitOfType'](_0x578700[_0x5e33f8(0x177)])[_0x5e33f8(0x1af)]();}[_0x2c5c7c(0x156)](_0x12e336){const _0x31f5df=_0x2c5c7c;var _0xf30dbc;return((_0xf30dbc=this['_univerInstanceService'][_0x31f5df(0x278)](_0x578700[_0x31f5df(0x143)]))==null?void 0x0:_0xf30dbc[_0x31f5df(0x269)])||_0x12e336[_0x31f5df(0x269)][_0x31f5df(0x276)]('.')[_0x31f5df(0x27f)]()||document[_0x31f5df(0x158)];}async['_getUnitJson'](){const _0x26510f=_0x2c5c7c;return this[_0x26510f(0x168)][_0x26510f(0x278)](_0x578700[_0x26510f(0x143)])[_0x26510f(0x25c)]();}async['_getUnitDocJson'](){const _0x5892a3=_0x2c5c7c;return this['_univerInstanceService'][_0x5892a3(0x278)](_0x578700[_0x5892a3(0x177)])[_0x5892a3(0x25c)]();}[_0x2c5c7c(0x22a)](_0x692a0f,_0x478a18){const _0x1b8541=_0x2c5c7c;let _0x58148a=new URL(window[_0x1b8541(0x1b7)]['href']);return _0x58148a['searchParams'][_0x1b8541(0x186)](_0x1b8541(0x20c),_0x692a0f),_0x58148a[_0x1b8541(0x212)][_0x1b8541(0x186)](_0x1b8541(0x1ad),''+_0x478a18),_0x58148a[_0x1b8541(0x24e)]();}['_refresh'](_0x50e3ef){const _0x4761d2=_0x2c5c7c;let _0x289da7=this[_0x4761d2(0x168)]['getCurrentUnitForType'](_0x578700['UNIVER_SHEET'])[_0x4761d2(0x1af)]();this[_0x4761d2(0x168)][_0x4761d2(0x183)](_0x289da7),this[_0x4761d2(0x168)][_0x4761d2(0x27c)](_0x578700[_0x4761d2(0x143)],_0x50e3ef);}['_showNetworkError'](_0x32aaf9){const _0xcca1a7=_0x2c5c7c;if(_0x32aaf9){let {code:_0x2925d5}=_0x32aaf9;switch(_0x2925d5){case _0x114573[_0xcca1a7(0x1c2)]:this['_messageService'][_0xcca1a7(0x204)]({'type':_0x3bd852[_0xcca1a7(0x1ae)],'content':this[_0xcca1a7(0x1e8)]['t'](_0xcca1a7(0x193))});break;case _0x114573[_0xcca1a7(0x190)]:this[_0xcca1a7(0x19e)][_0xcca1a7(0x204)]({'type':_0x3bd852[_0xcca1a7(0x1ae)],'content':this[_0xcca1a7(0x1e8)]['t'](_0xcca1a7(0x153))});break;default:this[_0xcca1a7(0x19e)][_0xcca1a7(0x204)]({'type':_0x3bd852['Error'],'content':this['_localeService']['t'](_0xcca1a7(0x154))});break;}return null;}return this['_messageService'][_0xcca1a7(0x204)]({'type':_0x3bd852[_0xcca1a7(0x1ae)],'content':this[_0xcca1a7(0x1e8)]['t'](_0xcca1a7(0x154))}),null;}[_0x2c5c7c(0x160)](_0x3813f2){const _0x53f4ac=_0x2c5c7c;let _0x4a9fe8='';switch(_0x3813f2){case _0x3bd852[_0x53f4ac(0x203)]:_0x4a9fe8=this[_0x53f4ac(0x1e8)]['t'](_0x53f4ac(0x17c));break;case _0x3bd852['Info']:_0x4a9fe8=this[_0x53f4ac(0x1e8)]['t'](_0x53f4ac(0x23d));break;default:break;}this['_messageService'][_0x53f4ac(0x204)]({'type':_0x3813f2,'content':_0x4a9fe8});}[_0x2c5c7c(0x1ab)](_0x1a71a4){const _0x480c99=_0x2c5c7c;let _0x5d6602='';switch(_0x1a71a4){case _0x3bd852[_0x480c99(0x203)]:_0x5d6602=this[_0x480c99(0x1e8)]['t'](_0x480c99(0x155));break;case _0x3bd852[_0x480c99(0x26d)]:_0x5d6602=this['_localeService']['t'](_0x480c99(0x266));break;default:break;}this[_0x480c99(0x19e)][_0x480c99(0x204)]({'type':_0x1a71a4,'content':_0x5d6602});}[_0x2c5c7c(0x1bb)](){const _0xd18673=_0x2c5c7c;this[_0xd18673(0x196)][_0xd18673(0x1aa)]({'done':this[_0xd18673(0x254)],'count':this[_0xd18673(0x1a0)]});}['_addTotalCount'](_0x26a8b6){const _0x1ec9d7=_0x2c5c7c;this[_0x1ec9d7(0x1a0)]+=_0x26a8b6,this[_0x1ec9d7(0x1bb)]();}['_addDoneTask'](_0x435001){const _0x509c2d=_0x2c5c7c;this[_0x509c2d(0x254)]+=_0x435001,this[_0x509c2d(0x254)]=Math[_0x509c2d(0x258)](this[_0x509c2d(0x254)],this['_totalUploadTaskCount']),this['_emitProgress']();}['_completeProgress'](){const _0x3e0c0c=_0x2c5c7c;this['_doneUploadTaskCount']=this['_totalUploadTaskCount'],this[_0x3e0c0c(0x1bb)]();}['_clearProgress'](){const _0x324aa2=_0x2c5c7c;this[_0x324aa2(0x254)]=0x0,this[_0x324aa2(0x1a0)]=0x0,this[_0x324aa2(0x1bb)]();}[_0x2c5c7c(0x274)](_0xf687ce,_0x173958){const _0x378a1d=_0x2c5c7c;let _0x51f3fb=_0xf687ce[0x0],_0x2ba956=_0x51f3fb['name'];return Ve(_0x51f3fb)===_0x173958?!0x1:(this[_0x378a1d(0x19e)][_0x378a1d(0x204)]({'type':_0x3bd852[_0x378a1d(0x1ae)],'content':this[_0x378a1d(0x1e8)]['t'](_0x378a1d(0x1d8),_0x2ba956)}),!0x0);}['_uploadTaskNotDone'](){const _0x39bc7f=_0x2c5c7c;return this[_0x39bc7f(0x1a0)]!==0x0&&this[_0x39bc7f(0x254)]!==this['_totalUploadTaskCount'];}};Z=B([z(0x0,_0x15c27f(_0xb7242e)),z(0x1,_0x2d908b),z(0x2,_0x15c27f(_0x1cbf82)),z(0x3,_0x15c27f(J)),z(0x4,_0x15c27f(D)),z(0x5,_0x42c6ae)],Z);function Qe(_0x5799bb){const _0x5c63ff=_0x2c5c7c;let {onClick:_0xf63f63,children:_0x49c2f3,className:_0x56e9c9}=_0x5799bb;return _0x1746ec('button',{'className':_0x20b7ca(_0x5c63ff(0x1c4),_0x56e9c9),'type':'button','onClick':_0xf63f63,'children':_0x49c2f3});}function $e(){const _0x17944d=_0x2c5c7c;let _0x50cc55=_0x40406a(X),_0xd78c7a=_0x40406a(_0x1cbf82);function _0x4abd47(){_0x50cc55['importXLSXToUnitId']();}return _0x1746ec(Qe,{'onClick':_0x4abd47,'children':_0xd78c7a['t'](_0x17944d(0x189))});}function et(){const _0x14a8ce=_0x2c5c7c;return _0x38f36c('div',{'className':_0x14a8ce(0x178),'children':[_0x1746ec('span',{'className':_0x14a8ce(0x26a),'children':_0x40406a(_0x1cbf82)['t'](_0x14a8ce(0x1da))}),_0x1746ec($e,{})]});}function tt(_0x56cd1d){const _0x294be8=_0x2c5c7c;let {count:_0x3261d5}=_0x56cd1d;return _0x38f36c(_0x294be8(0x1b3),{'className':_0x294be8(0x257),'children':[_0x1746ec('span',{'className':_0x294be8(0x197),'children':_0x40406a(_0x1cbf82)['t']('exchange.uploadSuccessTip',''+_0x3261d5)}),_0x1746ec($e,{})]});}function nt(){const _0x586ef7=_0x2c5c7c;let _0x55383a=_0x40406a(X),_0x48f419=_0x40406a(_0x1cbf82);function _0x2bc651(){_0x55383a['interrupt']();}return _0x1746ec(Qe,{'onClick':_0x2bc651,'children':_0x48f419['t'](_0x586ef7(0x1ba))});}function rt(){const _0x6fe00f=_0x2c5c7c;let {count:_0x4fcb24,done:_0x4f3dd7}=_0x18c5e8(_0x40406a(X)['progress$']),[_0x25e861,_0x1a0f7e]=_0x162abd(_0x4fcb24>0x0?_0x4f3dd7/_0x4fcb24:0x0);return _0x226f9e(()=>{_0x1a0f7e(_0x4fcb24>0x0?_0x4f3dd7/_0x4fcb24:0x0);},[_0x4fcb24,_0x4f3dd7]),_0x1746ec('div',{'className':_0x6fe00f(0x18c),'children':_0x1746ec(_0x6fe00f(0x1b3),{'className':'univer-h-1.5\x20univer-rounded-lg\x20univer-bg-primary-600\x20univer-transition-[width]\x20univer-duration-500','style':{'width':Math[_0x6fe00f(0x234)](_0x25e861*0x64)+'%'}})});}function it(){const _0x464759=_0x2c5c7c;return _0x38f36c(_0x464759(0x1b3),{'className':_0x464759(0x178),'children':[_0x1746ec(_0x464759(0x159),{'className':'univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','children':_0x40406a(_0x1cbf82)['t'](_0x464759(0x145))}),_0x1746ec('div',{'className':_0x464759(0x1a8),'children':_0x1746ec(rt,{})}),_0x1746ec(nt,{})]});}const at={0x1:_0x1746ec(_0x57b05e,{'className':_0x2c5c7c(0x18a)}),0x0:_0x1746ec(_0x519ac9,{'className':_0x2c5c7c(0x16b)}),0x2:_0x1746ec(_0x3565b9,{'className':_0x2c5c7c(0x201)})};function ot(){const _0x4bd093=_0x2c5c7c;let [_0x1b515b,_0x12e256]=_0x162abd(0x0),[_0x1d0959,_0x16e0b4]=_0x162abd(!0x1),[_0xfca387,_0x3a31ac]=_0x162abd([]),_0x2731a3=_0x40406a(D),_0x27c699=_0x40406a(_0x1cbf82);_0x226f9e(()=>{const _0x123ce8=_0x3fb5;let _0xfc417d=_0x2731a3[_0x123ce8(0x15d)][_0x123ce8(0x1ac)](_0x17d85c=>{_0x16e0b4(_0x17d85c);}),_0x493eaa=_0x2731a3[_0x123ce8(0x221)][_0x123ce8(0x1ac)](_0xb3de35=>{_0x3a31ac(_0xb3de35);}),_0x43805d=_0x2731a3[_0x123ce8(0x25e)][_0x123ce8(0x1ac)](_0x26248b=>{_0x12e256(_0x26248b);});return()=>{const _0x28376b=_0x123ce8;_0xfc417d[_0x28376b(0x150)](),_0x493eaa[_0x28376b(0x150)](),_0x43805d['unsubscribe']();};},[]);function _0x2fb1dd(){_0x16e0b4(!0x1);}function _0x2409c3(_0x43e1a7){const _0x2d360e=_0x3fb5;switch(_0x43e1a7){case 0x1:return _0x27c699['t']('exchange.uploadSuccess');case 0x0:return _0x27c699['t'](_0x2d360e(0x266));case 0x2:return _0x27c699['t'](_0x2d360e(0x227));default:return'';}}return _0x1d0959&&_0x38f36c(_0x4bd093(0x1b3),{'className':'univer-fixed\x20univer-bottom-12\x20univer-right-3\x20univer-z-[1000]\x20univer-box-border\x20univer-flex\x20univer-w-[372px]\x20univer-flex-col\x20univer-rounded-md\x20univer-bg-white\x20univer-px-3\x20univer-pb-4\x20univer-pt-5\x20univer-shadow-md','children':[_0x38f36c(_0x4bd093(0x1b3),{'className':_0x4bd093(0x24c),'children':[_0x38f36c(_0x4bd093(0x159),{'className':_0x4bd093(0x182),'children':[_0x1746ec(_0x4bd093(0x159),{'className':_0x4bd093(0x23e),'children':at[_0x1b515b]}),_0x1746ec(_0x4bd093(0x159),{'className':_0x4bd093(0x1ca),'children':_0x2409c3(_0x1b515b)})]}),_0x1746ec(_0x4bd093(0x159),{'className':_0x4bd093(0x271),'onClick':_0x2fb1dd,'children':_0x1746ec(_0x4c698b,{})})]}),_0x38f36c(_0x4bd093(0x1b3),{'children':[_0x1b515b===0x0&&_0x1746ec(it,{}),_0x1b515b===0x2&&_0x1746ec(et,{}),_0xfca387['length']>0x0&&_0x1746ec(Re,{'list':_0xfca387}),_0x1b515b===0x1&&_0x1746ec(tt,{'count':_0xfca387['length']})]})]});}function st(){return _0x1746ec(ot,{});}let Q=class extends _0x10915a{constructor(_0x5973b8,_0x259345){const _0x19e3aa=_0x2c5c7c;super(),this[_0x19e3aa(0x208)]=_0x5973b8,this[_0x19e3aa(0x1c1)]=_0x259345,this[_0x19e3aa(0x14b)]();}[_0x2c5c7c(0x14b)](){const _0x44fd88=_0x2c5c7c;this[_0x44fd88(0x16f)](this[_0x44fd88(0x1c1)][_0x44fd88(0x24d)](_0x22e86c[_0x44fd88(0x151)],()=>_0xe15941(st,this['_injector'])));}};Q=B([z(0x0,_0x15c27f(_0x338992)),z(0x1,_0x1f07ed)],Q);let $=class extends _0x357741{constructor(_0x4e4e0e=Me,_0xca7d4e,_0x354caa){const _0x2fb30e=_0x2c5c7c;super(),this['_config']=_0x4e4e0e,this[_0x2fb30e(0x208)]=_0xca7d4e,this[_0x2fb30e(0x1e6)]=_0x354caa;let {..._0x308419}=_0x4cb4de({},Me,this['_config']);this[_0x2fb30e(0x1e6)][_0x2fb30e(0x26f)](w,_0x308419);}[_0x2c5c7c(0x27a)](){const _0x5b9f13=_0x2c5c7c;_0x1ade79(this[_0x5b9f13(0x208)],[[Q],[X,{'useClass':Z}],[J,{'useClass':Y}],[V,{'useClass':H}],[D,{'useClass':O}]]);}[_0x2c5c7c(0x265)](){const _0x530249=_0x2c5c7c;_0x68876e(this[_0x530249(0x208)],[[Q],[X]]);}};E($,'pluginName',_0x2c5c7c(0x1a5)),E($,'packageName',Ne),E($,_0x2c5c7c(0x1b4),Pe),$=B([_0x15b6d6(_0x3d8172,_0x8ec379),z(0x1,_0x15c27f(_0x338992)),z(0x2,_0xdac8e4)],$);export{w as EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY,Z as ExchangeOperateService,Y as ExchangeService,X as IExchangeOperateService,J as IExchangeService,V as IRequestService,D as IUploadNotificationService,H as RequestService,$ as UniverExchangeClientPlugin,st as UploadNotificationContainer,O as UploadNotificationService,Le as UploadNotificationState,F as downloadFile,Ve as getUniverInstanceTypeByFile,I as getUploadFile,W as transformDocumentDataToSnapshotJson,K as transformSnapshotJsonToDocumentData,G as transformSnapshotJsonToWorkbookData,U as transformWorkbookDataToSnapshotJson};
@@ -1 +1 @@
1
- const _0x3ae7cc=_0x4dcc;function _0x4609(){const _0x5548ac=['File\x20uploaded\x20successfully','Uploading','Upload\x20again','23258631qOEkXo','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','Cancel','584793cZPIDz','Please\x20wait...','11355nEirAb','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','{0}\x20file(s)\x20uploaded\x20successfully','12HqcAIz','1388eSyhXg','1894797MVBjrP','Unknown\x20mistake','6326660fvuJJZ','Downloading','5227873DKIPye','Network\x20error','6rXDRiY','Open(File)','9xLhPPg','File','24GYyoQs','294928IeEsEg','Internal\x20unknown\x20error'];_0x4609=function(){return _0x5548ac;};return _0x4609();}(function(_0x2e5329,_0x5504f7){const _0x283caf=_0x4dcc,_0x234068=_0x2e5329();while(!![]){try{const _0x38e1ae=parseInt(_0x283caf(0x171))/0x1+-parseInt(_0x283caf(0x169))/0x2*(-parseInt(_0x283caf(0x166))/0x3)+parseInt(_0x283caf(0x177))/0x4*(parseInt(_0x283caf(0x173))/0x5)+-parseInt(_0x283caf(0x164))/0x6*(-parseInt(_0x283caf(0x162))/0x7)+parseInt(_0x283caf(0x168))/0x8*(parseInt(_0x283caf(0x15e))/0x9)+-parseInt(_0x283caf(0x160))/0xa+parseInt(_0x283caf(0x16e))/0xb*(-parseInt(_0x283caf(0x176))/0xc);if(_0x38e1ae===_0x5504f7)break;else _0x234068['push'](_0x234068['shift']());}catch(_0x43c0d){_0x234068['push'](_0x234068['shift']());}}}(_0x4609,0x6d06d));function _0x4dcc(_0x4ad964,_0x3f6bb9){_0x4ad964=_0x4ad964-0x15e;const _0x460920=_0x4609();let _0x4dcc87=_0x460920[_0x4ad964];return _0x4dcc87;}const locale$1={'exchange':{'file':_0x3ae7cc(0x167),'upload':_0x3ae7cc(0x165),'download':'Save\x20As','uploading':_0x3ae7cc(0x16c),'uploadSuccess':_0x3ae7cc(0x16b),'uploadSuccessTip':_0x3ae7cc(0x175),'downloading':_0x3ae7cc(0x161),'downloadSuccess':'Download\x20success','unknownMistake':_0x3ae7cc(0x15f),'networkError':_0x3ae7cc(0x163),'tooLarge':'Data\x20is\x20too\x20large','internalError':_0x3ae7cc(0x16a),'interrupt':_0x3ae7cc(0x16f),'fileTypeError':_0x3ae7cc(0x174),'wait':_0x3ae7cc(0x172),'cancel':_0x3ae7cc(0x170),'uploadAgain':_0x3ae7cc(0x16d)}},locale=locale$1;export{locale as default};
1
+ function _0x3911(_0x78acab,_0x501c29){_0x78acab=_0x78acab-0xd1;const _0x3cfbd7=_0x3cfb();let _0x3911da=_0x3cfbd7[_0x78acab];return _0x3911da;}const _0x204ff9=_0x3911;function _0x3cfb(){const _0x193a5c=['277630TXxppp','Open(File)','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','Network\x20error','Downloading','370EGZUnb','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','Download\x20success','Save\x20As','File\x20uploaded\x20successfully','66rlsRVu','3lpYtob','8356uGTuxS','Please\x20wait...','1435768EArGfK','File','Data\x20is\x20too\x20large','98861LTsUpA','Unknown\x20mistake','{0}\x20file(s)\x20uploaded\x20successfully','2795150JwtWNy','168355zJSjkE','1531134AkBjwY','Internal\x20unknown\x20error'];_0x3cfb=function(){return _0x193a5c;};return _0x3cfb();}(function(_0x38d0cf,_0x164676){const _0x127edd=_0x3911,_0x22c4c1=_0x38d0cf();while(!![]){try{const _0x56b22c=parseInt(_0x127edd(0xdc))/0x1+-parseInt(_0x127edd(0xdf))/0x2*(parseInt(_0x127edd(0xd2))/0x3)+-parseInt(_0x127edd(0xd3))/0x4*(parseInt(_0x127edd(0xe4))/0x5)+parseInt(_0x127edd(0xd1))/0x6*(parseInt(_0x127edd(0xd8))/0x7)+parseInt(_0x127edd(0xd5))/0x8+parseInt(_0x127edd(0xdd))/0x9+-parseInt(_0x127edd(0xdb))/0xa;if(_0x56b22c===_0x164676)break;else _0x22c4c1['push'](_0x22c4c1['shift']());}catch(_0x3d0c01){_0x22c4c1['push'](_0x22c4c1['shift']());}}}(_0x3cfb,0x18825));const e={'exchange':{'file':_0x204ff9(0xd6),'upload':_0x204ff9(0xe0),'download':_0x204ff9(0xe7),'uploading':'Uploading','uploadSuccess':_0x204ff9(0xe8),'uploadSuccessTip':_0x204ff9(0xda),'downloading':_0x204ff9(0xe3),'downloadSuccess':_0x204ff9(0xe6),'unknownMistake':_0x204ff9(0xd9),'networkError':_0x204ff9(0xe2),'tooLarge':_0x204ff9(0xd7),'internalError':_0x204ff9(0xde),'interrupt':_0x204ff9(0xe5),'fileTypeError':_0x204ff9(0xe1),'wait':_0x204ff9(0xd4),'cancel':'Cancel','uploadAgain':'Upload\x20again'}};export{e as default};
@@ -1 +1 @@
1
- const _0x22e63a=_0x1492;(function(_0x507a61,_0x3f009e){const _0x3b5871=_0x1492,_0x225de5=_0x507a61();while(!![]){try{const _0xc7f687=-parseInt(_0x3b5871(0x1c7))/0x1*(parseInt(_0x3b5871(0x1c9))/0x2)+-parseInt(_0x3b5871(0x1b4))/0x3*(-parseInt(_0x3b5871(0x1b6))/0x4)+parseInt(_0x3b5871(0x1ba))/0x5*(-parseInt(_0x3b5871(0x1bf))/0x6)+parseInt(_0x3b5871(0x1c6))/0x7+parseInt(_0x3b5871(0x1c8))/0x8*(-parseInt(_0x3b5871(0x1b3))/0x9)+-parseInt(_0x3b5871(0x1c4))/0xa+parseInt(_0x3b5871(0x1b9))/0xb;if(_0xc7f687===_0x3f009e)break;else _0x225de5['push'](_0x225de5['shift']());}catch(_0x20033d){_0x225de5['push'](_0x225de5['shift']());}}}(_0x28b1,0xcf269));function _0x28b1(){const _0xbd4e4=['190435eQHSfy','1bhtkPK','8bRFuIS','3039836RqIXzd','1056249ObVcZL','4671iqrbmc','Data\x20is\x20too\x20large','2396tLZwug','Unknown\x20mistake','Please\x20wait...','35303389WHHcOn','45pPLzrM','Download\x20success','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','Network\x20error','{0}\x20file(s)\x20uploaded\x20successfully','382602ZbpDrQ','File','File\x20uploaded\x20successfully','Uploading','Downloading','11095760TKNJao','Cancel'];_0x28b1=function(){return _0xbd4e4;};return _0x28b1();}const locale={'exchange':{'file':_0x22e63a(0x1c0),'upload':'Open(File)','download':'Save\x20As','uploading':_0x22e63a(0x1c2),'uploadSuccess':_0x22e63a(0x1c1),'uploadSuccessTip':_0x22e63a(0x1be),'downloading':_0x22e63a(0x1c3),'downloadSuccess':_0x22e63a(0x1bb),'unknownMistake':_0x22e63a(0x1b7),'networkError':_0x22e63a(0x1bd),'tooLarge':_0x22e63a(0x1b5),'internalError':'Internal\x20unknown\x20error','interrupt':'The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','fileTypeError':_0x22e63a(0x1bc),'wait':_0x22e63a(0x1b8),'cancel':_0x22e63a(0x1c5),'uploadAgain':'Upload\x20again'}};function _0x1492(_0x27d89b,_0x841c8f){_0x27d89b=_0x27d89b-0x1b3;const _0x28b159=_0x28b1();let _0x149260=_0x28b159[_0x27d89b];return _0x149260;}export{locale as default};
1
+ function _0x3287(_0x35ea17,_0x1a898f){_0x35ea17=_0x35ea17-0x137;const _0x67dc44=_0x67dc();let _0x3287b8=_0x67dc44[_0x35ea17];return _0x3287b8;}const _0x4480b4=_0x3287;function _0x67dc(){const _0x56a267=['{0}\x20file(s)\x20uploaded\x20successfully','Upload\x20again','4156610DQULBN','908476Rorwwf','1749501VyDbGh','9DybCiw','Network\x20error','5584600IfNxHK','Uploading','Please\x20wait...','1dfgfnl','Save\x20As','Open(File)','Unknown\x20mistake','45565cshKvi','351700TtLNMa','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','File','Internal\x20unknown\x20error','Download\x20success','112875CBdLFu','288zhgYFt','Cancel'];_0x67dc=function(){return _0x56a267;};return _0x67dc();}(function(_0x467c90,_0x482a2c){const _0x1e33f8=_0x3287,_0x36f8a0=_0x467c90();while(!![]){try{const _0x95294a=parseInt(_0x1e33f8(0x140))/0x1*(parseInt(_0x1e33f8(0x139))/0x2)+-parseInt(_0x1e33f8(0x13a))/0x3+-parseInt(_0x1e33f8(0x145))/0x4+parseInt(_0x1e33f8(0x144))/0x5*(-parseInt(_0x1e33f8(0x14b))/0x6)+parseInt(_0x1e33f8(0x14a))/0x7+parseInt(_0x1e33f8(0x13d))/0x8+-parseInt(_0x1e33f8(0x13b))/0x9*(-parseInt(_0x1e33f8(0x138))/0xa);if(_0x95294a===_0x482a2c)break;else _0x36f8a0['push'](_0x36f8a0['shift']());}catch(_0x454c27){_0x36f8a0['push'](_0x36f8a0['shift']());}}}(_0x67dc,0x741bf));const e={'exchange':{'file':_0x4480b4(0x147),'upload':_0x4480b4(0x142),'download':_0x4480b4(0x141),'uploading':_0x4480b4(0x13e),'uploadSuccess':'File\x20uploaded\x20successfully','uploadSuccessTip':_0x4480b4(0x14d),'downloading':'Downloading','downloadSuccess':_0x4480b4(0x149),'unknownMistake':_0x4480b4(0x143),'networkError':_0x4480b4(0x13c),'tooLarge':'Data\x20is\x20too\x20large','internalError':_0x4480b4(0x148),'interrupt':_0x4480b4(0x146),'fileTypeError':'Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','wait':_0x4480b4(0x13f),'cancel':_0x4480b4(0x14c),'uploadAgain':_0x4480b4(0x137)}};export{e as default};
@@ -1 +1 @@
1
- const _0x409bce=_0x5332;(function(_0xf973fe,_0x60f692){const _0x56128f=_0x5332,_0xedfe41=_0xf973fe();while(!![]){try{const _0x38e7f5=parseInt(_0x56128f(0x133))/0x1*(parseInt(_0x56128f(0x126))/0x2)+parseInt(_0x56128f(0x12e))/0x3*(parseInt(_0x56128f(0x125))/0x4)+-parseInt(_0x56128f(0x130))/0x5+-parseInt(_0x56128f(0x127))/0x6*(parseInt(_0x56128f(0x120))/0x7)+-parseInt(_0x56128f(0x134))/0x8+-parseInt(_0x56128f(0x128))/0x9+-parseInt(_0x56128f(0x132))/0xa*(-parseInt(_0x56128f(0x12a))/0xb);if(_0x38e7f5===_0x60f692)break;else _0xedfe41['push'](_0xedfe41['shift']());}catch(_0x4c3b78){_0xedfe41['push'](_0xedfe41['shift']());}}}(_0x20b0,0x7bbb1));const locale$1={'exchange':{'file':'File','upload':_0x409bce(0x123),'download':_0x409bce(0x135),'uploading':'Uploading','uploadSuccess':_0x409bce(0x12b),'uploadSuccessTip':_0x409bce(0x131),'downloading':_0x409bce(0x121),'downloadSuccess':_0x409bce(0x122),'unknownMistake':'Unknown\x20mistake','networkError':_0x409bce(0x124),'tooLarge':_0x409bce(0x12d),'internalError':'Internal\x20unknown\x20error','interrupt':_0x409bce(0x129),'fileTypeError':'Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','wait':_0x409bce(0x12c),'cancel':_0x409bce(0x12f),'uploadAgain':'Upload\x20again'}},locale=locale$1;function _0x5332(_0x231599,_0x5dbd2f){_0x231599=_0x231599-0x120;const _0x20b078=_0x20b0();let _0x53328a=_0x20b078[_0x231599];return _0x53328a;}export{locale as default};function _0x20b0(){const _0x4781c2=['732408UsnRBe','Save\x20As','997157XmFUnL','Downloading','Download\x20success','Open(File)','Network\x20error','32KCyGGJ','362506RUfxsb','30zxpqdP','5385303DOZocK','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','82258hcdIdW','File\x20uploaded\x20successfully','Please\x20wait...','Data\x20is\x20too\x20large','275223kPGKic','Cancel','1106025vsRevd','{0}\x20file(s)\x20uploaded\x20successfully','1140ZASLuW','3yqElBw'];_0x20b0=function(){return _0x4781c2;};return _0x20b0();}
1
+ function _0x536b(){const _0x13d754=['4968390GOxRbk','Download\x20success','5407577KCEgLx','2914602oTUuTI','File','3080024yvncZE','7116544rDtSjk','File\x20uploaded\x20successfully','Data\x20is\x20too\x20large','Network\x20error','Uploading','2HTQoTi','Open(File)','Upload\x20again','Cancel','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','Internal\x20unknown\x20error','1138491AiiqRL','{0}\x20file(s)\x20uploaded\x20successfully','1534944xIGzhe'];_0x536b=function(){return _0x13d754;};return _0x536b();}function _0x4401(_0x157f74,_0x5b90cd){_0x157f74=_0x157f74-0x16e;const _0x536bcf=_0x536b();let _0x4401e3=_0x536bcf[_0x157f74];return _0x4401e3;}const _0x48d0ca=_0x4401;(function(_0x2f6deb,_0x195e96){const _0x349037=_0x4401,_0x293c8e=_0x2f6deb();while(!![]){try{const _0x523114=-parseInt(_0x349037(0x171))/0x1*(-parseInt(_0x349037(0x17f))/0x2)+parseInt(_0x349037(0x173))/0x3+-parseInt(_0x349037(0x17a))/0x4+parseInt(_0x349037(0x174))/0x5+parseInt(_0x349037(0x177))/0x6+-parseInt(_0x349037(0x176))/0x7+parseInt(_0x349037(0x179))/0x8;if(_0x523114===_0x195e96)break;else _0x293c8e['push'](_0x293c8e['shift']());}catch(_0x2a9ab5){_0x293c8e['push'](_0x293c8e['shift']());}}}(_0x536b,0xeb17c));const e={'exchange':{'file':_0x48d0ca(0x178),'upload':_0x48d0ca(0x180),'download':'Save\x20As','uploading':_0x48d0ca(0x17e),'uploadSuccess':_0x48d0ca(0x17b),'uploadSuccessTip':_0x48d0ca(0x172),'downloading':'Downloading','downloadSuccess':_0x48d0ca(0x175),'unknownMistake':'Unknown\x20mistake','networkError':_0x48d0ca(0x17d),'tooLarge':_0x48d0ca(0x17c),'internalError':_0x48d0ca(0x170),'interrupt':_0x48d0ca(0x16f),'fileTypeError':'Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','wait':'Please\x20wait...','cancel':_0x48d0ca(0x16e),'uploadAgain':_0x48d0ca(0x181)}};export{e as default};
@@ -1 +1 @@
1
- const _0x5492fd=_0x55fc;function _0x1f16(){const _0x4c6e3e=['4997559chMxed','609492XqfTBy','1218915gyjpad','دانلود\x20موفقیت\x20آمیز','خطای\x20شبکه','فایل','خطای\x20داخلی\x20ناشناخته','لطفا\x20صبر\x20کنید...','ذخیره\x20به\x20عنوان','25189YDsYHi','فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمی‌شود','بارگذاری\x20مجدد','1694wXLTot','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','2312514euRCGK','داده\x20خیلی\x20بزرگ\x20است','لغو','خطای\x20ناشناخته','38660mRmjgu','1739328xHPSJw','در\x20حال\x20بارگذاری','38MCoxlw','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','بازکردن(فایل)','10qvnHSP','8FGipFn'];_0x1f16=function(){return _0x4c6e3e;};return _0x1f16();}(function(_0xafde53,_0xbf45ea){const _0x533588=_0x55fc,_0x476037=_0xafde53();while(!![]){try{const _0x4d8d09=-parseInt(_0x533588(0xdb))/0x1*(-parseInt(_0x533588(0xe8))/0x2)+parseInt(_0x533588(0xe6))/0x3+parseInt(_0x533588(0xd3))/0x4*(-parseInt(_0x533588(0xeb))/0x5)+-parseInt(_0x533588(0xe1))/0x6+-parseInt(_0x533588(0xd2))/0x7+-parseInt(_0x533588(0xd1))/0x8*(-parseInt(_0x533588(0xd4))/0x9)+-parseInt(_0x533588(0xe5))/0xa*(-parseInt(_0x533588(0xde))/0xb);if(_0x4d8d09===_0xbf45ea)break;else _0x476037['push'](_0x476037['shift']());}catch(_0x266409){_0x476037['push'](_0x476037['shift']());}}}(_0x1f16,0x5e028));const locale={'exchange':{'file':_0x5492fd(0xd7),'upload':_0x5492fd(0xea),'download':_0x5492fd(0xda),'uploading':_0x5492fd(0xe7),'uploadSuccess':_0x5492fd(0xdf),'uploadSuccessTip':_0x5492fd(0xe0),'downloading':'در\x20حال\x20دانلود','downloadSuccess':_0x5492fd(0xd5),'unknownMistake':_0x5492fd(0xe4),'networkError':_0x5492fd(0xd6),'tooLarge':_0x5492fd(0xe2),'internalError':_0x5492fd(0xd8),'interrupt':_0x5492fd(0xe9),'fileTypeError':_0x5492fd(0xdc),'wait':_0x5492fd(0xd9),'cancel':_0x5492fd(0xe3),'uploadAgain':_0x5492fd(0xdd)}};function _0x55fc(_0x41a9bf,_0x38f521){_0x41a9bf=_0x41a9bf-0xd1;const _0x1f16b5=_0x1f16();let _0x55fc8d=_0x1f16b5[_0x41a9bf];return _0x55fc8d;}export{locale as default};
1
+ const _0x1b2999=_0x4907;(function(_0x583b34,_0x3440f8){const _0x47855a=_0x4907,_0x11d9bc=_0x583b34();while(!![]){try{const _0x4d3a55=-parseInt(_0x47855a(0xfc))/0x1+parseInt(_0x47855a(0xf5))/0x2+parseInt(_0x47855a(0x100))/0x3+-parseInt(_0x47855a(0xed))/0x4*(parseInt(_0x47855a(0xf2))/0x5)+-parseInt(_0x47855a(0x101))/0x6*(parseInt(_0x47855a(0xef))/0x7)+parseInt(_0x47855a(0xf0))/0x8+-parseInt(_0x47855a(0xf6))/0x9*(-parseInt(_0x47855a(0xf1))/0xa);if(_0x4d3a55===_0x3440f8)break;else _0x11d9bc['push'](_0x11d9bc['shift']());}catch(_0x357fcd){_0x11d9bc['push'](_0x11d9bc['shift']());}}}(_0x4537,0x418bb));function _0x4537(){const _0x316d95=['بارگذاری\x20مجدد','635181nlwaDp','6nUgTuM','فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمی‌شود','دانلود\x20موفقیت\x20آمیز','10808bkStVJ','خطای\x20شبکه','1416709UqhzrE','1256696JHZVyV','1069670leLKOa','470yglhOu','در\x20حال\x20دانلود','لطفا\x20صبر\x20کنید...','161078YSSQfe','63hyEBWj','فایل','ذخیره\x20به\x20عنوان','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','داده\x20خیلی\x20بزرگ\x20است','473272nmGItq','خطای\x20داخلی\x20ناشناخته','خطای\x20ناشناخته'];_0x4537=function(){return _0x316d95;};return _0x4537();}function _0x4907(_0x464128,_0x398293){_0x464128=_0x464128-0xec;const _0x45370f=_0x4537();let _0x490797=_0x45370f[_0x464128];return _0x490797;}const e={'exchange':{'file':_0x1b2999(0xf7),'upload':'بازکردن(فایل)','download':_0x1b2999(0xf8),'uploading':'در\x20حال\x20بارگذاری','uploadSuccess':'فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','uploadSuccessTip':_0x1b2999(0xfa),'downloading':_0x1b2999(0xf3),'downloadSuccess':_0x1b2999(0xec),'unknownMistake':_0x1b2999(0xfe),'networkError':_0x1b2999(0xee),'tooLarge':_0x1b2999(0xfb),'internalError':_0x1b2999(0xfd),'interrupt':_0x1b2999(0xf9),'fileTypeError':_0x1b2999(0x102),'wait':_0x1b2999(0xf4),'cancel':'لغو','uploadAgain':_0x1b2999(0xff)}};export{e as default};
@@ -1 +1 @@
1
- const _0x422847=_0x56d1;function _0x4d9e(){const _0x1c910f=['Fichier\x20téléchargé\x20avec\x20succès','Annuler','29666prWWew','Téléchargement\x20en\x20cours','1628fOuIfB','1331308KhoNcK','3155FytVeO','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','Erreur\x20interne\x20inconnue','Ouvrir\x20(Fichier)','450954lKYzHv','18720405wGHmWD','Les\x20données\x20sont\x20trop\x20volumineuses','5123144GSymYm','Erreur\x20réseau','972TBWdOL','Enregistrer\x20sous','687712EYMZSW','Erreur\x20inconnue','Veuillez\x20patienter...','Téléchargement'];_0x4d9e=function(){return _0x1c910f;};return _0x4d9e();}function _0x56d1(_0x3d4ff9,_0x532622){_0x3d4ff9=_0x3d4ff9-0x191;const _0x4d9e7d=_0x4d9e();let _0x56d15c=_0x4d9e7d[_0x3d4ff9];return _0x56d15c;}(function(_0x53ce2e,_0x4ecb68){const _0x2c42bb=_0x56d1,_0x242cd2=_0x53ce2e();while(!![]){try{const _0x207966=parseInt(_0x2c42bb(0x1a1))/0x1+-parseInt(_0x2c42bb(0x195))/0x2+-parseInt(_0x2c42bb(0x19a))/0x3+parseInt(_0x2c42bb(0x194))/0x4*(-parseInt(_0x2c42bb(0x196))/0x5)+-parseInt(_0x2c42bb(0x19f))/0x6*(parseInt(_0x2c42bb(0x192))/0x7)+-parseInt(_0x2c42bb(0x19d))/0x8+parseInt(_0x2c42bb(0x19b))/0x9;if(_0x207966===_0x4ecb68)break;else _0x242cd2['push'](_0x242cd2['shift']());}catch(_0x39fe47){_0x242cd2['push'](_0x242cd2['shift']());}}}(_0x4d9e,0x59d93));const locale={'exchange':{'file':'Fichier','upload':_0x422847(0x199),'download':_0x422847(0x1a0),'uploading':_0x422847(0x193),'uploadSuccess':_0x422847(0x1a5),'uploadSuccessTip':_0x422847(0x197),'downloading':_0x422847(0x1a4),'downloadSuccess':'Téléchargement\x20réussi','unknownMistake':_0x422847(0x1a2),'networkError':_0x422847(0x19e),'tooLarge':_0x422847(0x19c),'internalError':_0x422847(0x198),'interrupt':'La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','fileTypeError':'Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','wait':_0x422847(0x1a3),'cancel':_0x422847(0x191),'uploadAgain':'Télécharger\x20à\x20nouveau'}};export{locale as default};
1
+ const _0x32216c=_0x15e4;function _0x34f3(){const _0x1c42ed=['Fichier','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','Erreur\x20interne\x20inconnue','133705STRqBQ','Enregistrer\x20sous','223050ljCMtc','Erreur\x20réseau','Téléchargement','Téléchargement\x20en\x20cours','Télécharger\x20à\x20nouveau','771448UfiZcl','129962bzHxhz','9HGVCyG','4463870XeTLyB','2483478SkJltH','Téléchargement\x20réussi','Les\x20données\x20sont\x20trop\x20volumineuses','Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','Erreur\x20inconnue','12YlJcbC','Fichier\x20téléchargé\x20avec\x20succès','Veuillez\x20patienter...','214446yfsuHs','7iHwjWu'];_0x34f3=function(){return _0x1c42ed;};return _0x34f3();}function _0x15e4(_0x37bd2b,_0x1e8424){_0x37bd2b=_0x37bd2b-0x146;const _0x34f36d=_0x34f3();let _0x15e460=_0x34f36d[_0x37bd2b];return _0x15e460;}(function(_0x5060d4,_0x451b43){const _0x1185bc=_0x15e4,_0x3384b6=_0x5060d4();while(!![]){try{const _0x191eda=parseInt(_0x1185bc(0x159))/0x1+-parseInt(_0x1185bc(0x14c))/0x2+-parseInt(_0x1185bc(0x153))/0x3*(-parseInt(_0x1185bc(0x149))/0x4)+-parseInt(_0x1185bc(0x151))/0x5+-parseInt(_0x1185bc(0x15c))/0x6+parseInt(_0x1185bc(0x14d))/0x7*(parseInt(_0x1185bc(0x158))/0x8)+parseInt(_0x1185bc(0x15a))/0x9*(parseInt(_0x1185bc(0x15b))/0xa);if(_0x191eda===_0x451b43)break;else _0x3384b6['push'](_0x3384b6['shift']());}catch(_0x3982e1){_0x3384b6['push'](_0x3384b6['shift']());}}}(_0x34f3,0x54f31));const e={'exchange':{'file':_0x32216c(0x14e),'upload':'Ouvrir\x20(Fichier)','download':_0x32216c(0x152),'uploading':_0x32216c(0x156),'uploadSuccess':_0x32216c(0x14a),'uploadSuccessTip':_0x32216c(0x14f),'downloading':_0x32216c(0x155),'downloadSuccess':_0x32216c(0x15d),'unknownMistake':_0x32216c(0x148),'networkError':_0x32216c(0x154),'tooLarge':_0x32216c(0x146),'internalError':_0x32216c(0x150),'interrupt':'La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','fileTypeError':_0x32216c(0x147),'wait':_0x32216c(0x14b),'cancel':'Annuler','uploadAgain':_0x32216c(0x157)}};export{e as default};
@@ -1 +1 @@
1
- const _0x45e90b=_0x596c;(function(_0x37657b,_0x586b0b){const _0x43c99b=_0x596c,_0x1fab2a=_0x37657b();while(!![]){try{const _0x3e73f5=parseInt(_0x43c99b(0xd6))/0x1+-parseInt(_0x43c99b(0xd1))/0x2*(parseInt(_0x43c99b(0xcc))/0x3)+-parseInt(_0x43c99b(0xbf))/0x4+parseInt(_0x43c99b(0xca))/0x5+parseInt(_0x43c99b(0xd3))/0x6*(parseInt(_0x43c99b(0xd0))/0x7)+parseInt(_0x43c99b(0xbe))/0x8*(parseInt(_0x43c99b(0xcb))/0x9)+parseInt(_0x43c99b(0xc5))/0xa*(-parseInt(_0x43c99b(0xc9))/0xb);if(_0x3e73f5===_0x586b0b)break;else _0x1fab2a['push'](_0x1fab2a['shift']());}catch(_0x5d217f){_0x1fab2a['push'](_0x1fab2a['shift']());}}}(_0x48a6,0xee39d));function _0x596c(_0x590942,_0x57595d){_0x590942=_0x590942-0xbe;const _0x48a610=_0x48a6();let _0x596c1a=_0x48a610[_0x590942];return _0x596c1a;}const locale={'exchange':{'file':_0x45e90b(0xcf),'upload':_0x45e90b(0xc7),'download':'名前を付けて保存','uploading':_0x45e90b(0xd4),'uploadSuccess':_0x45e90b(0xc6),'uploadSuccessTip':'{0}\x20個のファイルが正常にアップロードされました','downloading':_0x45e90b(0xc0),'downloadSuccess':_0x45e90b(0xd5),'unknownMistake':_0x45e90b(0xcd),'networkError':_0x45e90b(0xce),'tooLarge':_0x45e90b(0xc2),'internalError':_0x45e90b(0xd2),'interrupt':_0x45e90b(0xc3),'fileTypeError':_0x45e90b(0xc8),'wait':_0x45e90b(0xc1),'cancel':_0x45e90b(0xc4),'uploadAgain':'再度アップロード'}};function _0x48a6(){const _0x1bb33c=['不明なエラー','ネットワークエラー','ファイル','77Snchsk','162GuDtXe','内部エラーが発生しました','744882qacRbq','アップロード中','ダウンロードが完了しました','835209eqDitg','8enUeAl','3446372dHUFTD','ダウンロード中','お待ちください...','データが大きすぎます','ネットワーク接続が中断され、ファイルのアップロードに失敗しました','キャンセル','39070OSpNbd','ファイルが正常にアップロードされました','開く(ファイル)','選択されたファイル\x20[{0}]\x20はアップロードがサポートされていません','5423BqkixY','8498705xjuJjz','9448587IhJHpR','43959pGyQwM'];_0x48a6=function(){return _0x1bb33c;};return _0x48a6();}export{locale as default};
1
+ function _0x5ef2(){const _0x5794d1=['{0}\x20個のファイルが正常にアップロードされました','ファイル','キャンセル','お待ちください...','2137420NizuUn','328916mCBMGS','ネットワークエラー','205lkteCQ','3490800eJyVwL','966990lTUQwt','184HaeGXV','ダウンロード中','ファイルが正常にアップロードされました','5yErlnW','不明なエラー','ネットワーク接続が中断され、ファイルのアップロードに失敗しました','856716rLGUNt','734346vuQViB','選択されたファイル\x20[{0}]\x20はアップロードがサポートされていません','データが大きすぎます'];_0x5ef2=function(){return _0x5794d1;};return _0x5ef2();}const _0x32e102=_0x2ac1;(function(_0x29b7e6,_0x1b7cf0){const _0x10d543=_0x2ac1,_0x3c6d71=_0x29b7e6();while(!![]){try{const _0x3da969=-parseInt(_0x10d543(0x1cb))/0x1*(-parseInt(_0x10d543(0x1ce))/0x2)+parseInt(_0x10d543(0x1d4))/0x3+parseInt(_0x10d543(0x1c8))/0x4*(parseInt(_0x10d543(0x1d1))/0x5)+-parseInt(_0x10d543(0x1cd))/0x6+-parseInt(_0x10d543(0x1c9))/0x7+-parseInt(_0x10d543(0x1cc))/0x8+parseInt(_0x10d543(0x1c1))/0x9;if(_0x3da969===_0x1b7cf0)break;else _0x3c6d71['push'](_0x3c6d71['shift']());}catch(_0xad28d1){_0x3c6d71['push'](_0x3c6d71['shift']());}}}(_0x5ef2,0x435a6));const e={'exchange':{'file':_0x32e102(0x1c5),'upload':'開く(ファイル)','download':'名前を付けて保存','uploading':'アップロード中','uploadSuccess':_0x32e102(0x1d0),'uploadSuccessTip':_0x32e102(0x1c4),'downloading':_0x32e102(0x1cf),'downloadSuccess':'ダウンロードが完了しました','unknownMistake':_0x32e102(0x1d2),'networkError':_0x32e102(0x1ca),'tooLarge':_0x32e102(0x1c3),'internalError':'内部エラーが発生しました','interrupt':_0x32e102(0x1d3),'fileTypeError':_0x32e102(0x1c2),'wait':_0x32e102(0x1c7),'cancel':_0x32e102(0x1c6),'uploadAgain':'再度アップロード'}};function _0x2ac1(_0x2532e6,_0x311be9){_0x2532e6=_0x2532e6-0x1c1;const _0x5ef22f=_0x5ef2();let _0x2ac138=_0x5ef22f[_0x2532e6];return _0x2ac138;}export{e as default};
@@ -1 +1 @@
1
- function _0x5622(){const _0x30be12=['90031XnJZmM','5355132eoSlhc','2816191LYMswi','16ussbQo','데이터가\x20너무\x20큽니다','잠시만\x20기다려\x20주세요...','알\x20수\x20없는\x20오류','789990XhRRIA','파일이\x20성공적으로\x20업로드되었습니다','다운로드\x20중','332APIGyD','6927VeGhCp','다시\x20업로드','열기(파일)','다운로드가\x20완료되었습니다','11RYmSsf','선택한\x20파일\x20[{0}]은(는)\x20업로드가\x20지원되지\x20않습니다','다른\x20이름으로\x20저장','84WijkRh','1616652xUMebl','{0}개의\x20파일이\x20성공적으로\x20업로드되었습니다','65dPeLvT','254910NngkEe','6VjMfHe'];_0x5622=function(){return _0x30be12;};return _0x5622();}function _0x3462(_0x5830d2,_0x292793){_0x5830d2=_0x5830d2-0x13a;const _0x562256=_0x5622();let _0x3462fc=_0x562256[_0x5830d2];return _0x3462fc;}const _0x46b6bd=_0x3462;(function(_0x3b003f,_0x3ee024){const _0x5b1555=_0x3462,_0x457155=_0x3b003f();while(!![]){try{const _0x468ec8=-parseInt(_0x5b1555(0x151))/0x1*(parseInt(_0x5b1555(0x150))/0x2)+-parseInt(_0x5b1555(0x144))/0x3*(-parseInt(_0x5b1555(0x143))/0x4)+-parseInt(_0x5b1555(0x14f))/0x5*(parseInt(_0x5b1555(0x14b))/0x6)+parseInt(_0x5b1555(0x13b))/0x7*(-parseInt(_0x5b1555(0x13c))/0x8)+-parseInt(_0x5b1555(0x14c))/0x9+parseInt(_0x5b1555(0x140))/0xa*(parseInt(_0x5b1555(0x148))/0xb)+parseInt(_0x5b1555(0x13a))/0xc*(parseInt(_0x5b1555(0x14e))/0xd);if(_0x468ec8===_0x3ee024)break;else _0x457155['push'](_0x457155['shift']());}catch(_0x57e561){_0x457155['push'](_0x457155['shift']());}}}(_0x5622,0x82560));const locale={'exchange':{'file':'파일','upload':_0x46b6bd(0x146),'download':_0x46b6bd(0x14a),'uploading':'업로드\x20','uploadSuccess':_0x46b6bd(0x141),'uploadSuccessTip':_0x46b6bd(0x14d),'downloading':_0x46b6bd(0x142),'downloadSuccess':_0x46b6bd(0x147),'unknownMistake':_0x46b6bd(0x13f),'networkError':'네트워크\x20오류','tooLarge':_0x46b6bd(0x13d),'internalError':'내부\x20오류가\x20발생했습니다','interrupt':'네트워크\x20연결이\x20중단되어\x20파일\x20업로드에\x20실패했습니다','fileTypeError':_0x46b6bd(0x149),'wait':_0x46b6bd(0x13e),'cancel':'취소','uploadAgain':_0x46b6bd(0x145)}};export{locale as default};
1
+ const _0x3d64d4=_0x1d96;(function(_0x3d9a33,_0x10bddb){const _0x3f911f=_0x1d96,_0x38c2e6=_0x3d9a33();while(!![]){try{const _0x1b1f29=-parseInt(_0x3f911f(0x1d4))/0x1*(-parseInt(_0x3f911f(0x1dd))/0x2)+-parseInt(_0x3f911f(0x1e0))/0x3*(-parseInt(_0x3f911f(0x1dc))/0x4)+-parseInt(_0x3f911f(0x1d9))/0x5+-parseInt(_0x3f911f(0x1d3))/0x6*(parseInt(_0x3f911f(0x1e1))/0x7)+-parseInt(_0x3f911f(0x1df))/0x8*(-parseInt(_0x3f911f(0x1d7))/0x9)+parseInt(_0x3f911f(0x1d5))/0xa*(-parseInt(_0x3f911f(0x1d8))/0xb)+parseInt(_0x3f911f(0x1d1))/0xc;if(_0x1b1f29===_0x10bddb)break;else _0x38c2e6['push'](_0x38c2e6['shift']());}catch(_0x336778){_0x38c2e6['push'](_0x38c2e6['shift']());}}}(_0x4c23,0x2c1d6));const e={'exchange':{'file':'파일','upload':'열기(파일)','download':_0x3d64d4(0x1d6),'uploading':_0x3d64d4(0x1d2),'uploadSuccess':'파일이\x20성공적으로\x20업로드되었습니다','uploadSuccessTip':_0x3d64d4(0x1d0),'downloading':_0x3d64d4(0x1cf),'downloadSuccess':'다운로드가\x20완료되었습니다','unknownMistake':_0x3d64d4(0x1e3),'networkError':_0x3d64d4(0x1de),'tooLarge':_0x3d64d4(0x1db),'internalError':_0x3d64d4(0x1da),'interrupt':_0x3d64d4(0x1e2),'fileTypeError':'선택한\x20파일\x20[{0}]은()\x20업로드가\x20지원되지\x20않습니다','wait':'잠시만\x20기다려\x20주세요...','cancel':'취소','uploadAgain':'다시\x20업로드'}};export{e as default};function _0x1d96(_0x49c0e8,_0x5cf96a){_0x49c0e8=_0x49c0e8-0x1cf;const _0x4c2321=_0x4c23();let _0x1d9678=_0x4c2321[_0x49c0e8];return _0x1d9678;}function _0x4c23(){const _0x539a3c=['1016915CLLdeu','내부\x20오류가\x20발생했습니다','데이터가\x20너무\x20큽니다','676uBPiGD','68nhzLMP','네트워크\x20오류','200SNwPkw','3726gYzFpO','2475319HthlCe','네트워크\x20연결이\x20중단되어\x20파일\x20업로드에\x20실패했습니다','알\x20수\x20없는\x20오류','다운로드\x20중','{0}개의\x20파일이\x20성공적으로\x20업로드되었습니다','4901076HPqpyi','업로드\x20중','6YnRqyZ','5755gflVdM','158370ullwTZ','다른\x20이름으로\x20저장','6741jKPxDW','66IMArgf'];_0x4c23=function(){return _0x539a3c;};return _0x4c23();}
@@ -1 +1 @@
1
- function _0xd160(){const _0x243d34=['13353728OsBsfe','1529664wuhdVl','Загрузить\x20снова','Скачивание','Сохранить\x20как','1998789oTKteI','Данные\x20слишком\x20большие','4504545SRcjLp','Файл','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','Файл\x20успешно\x20загружен','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','Внутренняя\x20неизвестная\x20ошибка','40FkYaPF','14650605DrMeWG','Неизвестная\x20ошибка','Пожалуйста,\x20подождите...','16193ycTwft','Отмена','Скачивание\x20успешно','4FdsrIq','7313390HFsoQB','Открыть(Файл)','7QkTOHV'];_0xd160=function(){return _0x243d34;};return _0xd160();}const _0x1dcd97=_0x471c;(function(_0x6e892f,_0x1366cd){const _0x5bc0af=_0x471c,_0x1ab385=_0x6e892f();while(!![]){try{const _0x42eeed=parseInt(_0x5bc0af(0xfe))/0x1*(parseInt(_0x5bc0af(0xfa))/0x2)+parseInt(_0x5bc0af(0x10a))/0x3*(parseInt(_0x5bc0af(0x101))/0x4)+parseInt(_0x5bc0af(0x10c))/0x5+parseInt(_0x5bc0af(0x106))/0x6*(-parseInt(_0x5bc0af(0x104))/0x7)+-parseInt(_0x5bc0af(0x105))/0x8+parseInt(_0x5bc0af(0xfb))/0x9+-parseInt(_0x5bc0af(0x102))/0xa;if(_0x42eeed===_0x1366cd)break;else _0x1ab385['push'](_0x1ab385['shift']());}catch(_0x4d4998){_0x1ab385['push'](_0x1ab385['shift']());}}}(_0xd160,0xd2c92));function _0x471c(_0x340865,_0x1c4a85){_0x340865=_0x340865-0xf5;const _0xd16073=_0xd160();let _0x471cf4=_0xd16073[_0x340865];return _0x471cf4;}const locale={'exchange':{'file':_0x1dcd97(0xf5),'upload':_0x1dcd97(0x103),'download':_0x1dcd97(0x109),'uploading':'Загрузка','uploadSuccess':_0x1dcd97(0xf7),'uploadSuccessTip':'{0}\x20файл(ов)\x20успешно\x20загружен(о)','downloading':_0x1dcd97(0x108),'downloadSuccess':_0x1dcd97(0x100),'unknownMistake':_0x1dcd97(0xfc),'networkError':'Сетевая\x20ошибка','tooLarge':_0x1dcd97(0x10b),'internalError':_0x1dcd97(0xf9),'interrupt':_0x1dcd97(0xf6),'fileTypeError':_0x1dcd97(0xf8),'wait':_0x1dcd97(0xfd),'cancel':_0x1dcd97(0xff),'uploadAgain':_0x1dcd97(0x107)}};export{locale as default};
1
+ const _0x5a7e06=_0xa3d4;(function(_0x4fccc0,_0x106f84){const _0x70a6dd=_0xa3d4,_0x56f2d5=_0x4fccc0();while(!![]){try{const _0x44f2af=parseInt(_0x70a6dd(0x1d0))/0x1*(parseInt(_0x70a6dd(0x1c0))/0x2)+-parseInt(_0x70a6dd(0x1cc))/0x3+parseInt(_0x70a6dd(0x1ca))/0x4*(-parseInt(_0x70a6dd(0x1c9))/0x5)+parseInt(_0x70a6dd(0x1c4))/0x6+-parseInt(_0x70a6dd(0x1c7))/0x7+-parseInt(_0x70a6dd(0x1c3))/0x8+parseInt(_0x70a6dd(0x1bf))/0x9;if(_0x44f2af===_0x106f84)break;else _0x56f2d5['push'](_0x56f2d5['shift']());}catch(_0x47e7e7){_0x56f2d5['push'](_0x56f2d5['shift']());}}}(_0x5bc5,0x3bbf5));function _0xa3d4(_0x4ccb88,_0x47fe6a){_0x4ccb88=_0x4ccb88-0x1bd;const _0x5bc57e=_0x5bc5();let _0xa3d41c=_0x5bc57e[_0x4ccb88];return _0xa3d41c;}function _0x5bc5(){const _0x4d2e32=['4762MvzaLk','Загрузка','Отмена','4421520USruvn','58jWifeO','Скачивание','Сетевая\x20ошибка','333472LqCzvA','1838430rnxpCq','Открыть(Файл)','Внутренняя\x20неизвестная\x20ошибка','1261484IBFzCX','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','5aQGcAP','276868UYqgDV','{0}\x20файл(ов)\x20успешно\x20загружен(о)','1199835yGwXSA','Загрузить\x20снова','Сохранить\x20как','Файл'];_0x5bc5=function(){return _0x4d2e32;};return _0x5bc5();}const e={'exchange':{'file':_0x5a7e06(0x1cf),'upload':_0x5a7e06(0x1c5),'download':_0x5a7e06(0x1ce),'uploading':_0x5a7e06(0x1bd),'uploadSuccess':'Файл\x20успешно\x20загружен','uploadSuccessTip':_0x5a7e06(0x1cb),'downloading':_0x5a7e06(0x1c1),'downloadSuccess':'Скачивание\x20успешно','unknownMistake':'Неизвестная\x20ошибка','networkError':_0x5a7e06(0x1c2),'tooLarge':'Данные\x20слишком\x20большие','internalError':_0x5a7e06(0x1c6),'interrupt':'Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','fileTypeError':_0x5a7e06(0x1c8),'wait':'Пожалуйста,\x20подождите...','cancel':_0x5a7e06(0x1be),'uploadAgain':_0x5a7e06(0x1cd)}};export{e as default};