@univerjs-pro/exchange-client 0.21.1 → 0.22.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 (59) hide show
  1. package/README.md +26 -10
  2. package/lib/cjs/facade.js +1 -1
  3. package/lib/cjs/index.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/ja-JP.js +1 -1
  10. package/lib/cjs/locale/ko-KR.js +1 -1
  11. package/lib/cjs/locale/ru-RU.js +1 -1
  12. package/lib/cjs/locale/sk-SK.js +1 -1
  13. package/lib/cjs/locale/vi-VN.js +1 -1
  14. package/lib/cjs/locale/zh-CN.js +1 -1
  15. package/lib/cjs/locale/zh-TW.js +1 -1
  16. package/lib/es/facade.js +1 -1
  17. package/lib/es/index.js +1 -1
  18. package/lib/es/locale/ca-ES.js +1 -1
  19. package/lib/es/locale/en-US.js +1 -1
  20. package/lib/es/locale/es-ES.js +1 -1
  21. package/lib/es/locale/fa-IR.js +1 -1
  22. package/lib/es/locale/fr-FR.js +1 -1
  23. package/lib/es/locale/ja-JP.js +1 -1
  24. package/lib/es/locale/ko-KR.js +1 -1
  25. package/lib/es/locale/ru-RU.js +1 -1
  26. package/lib/es/locale/sk-SK.js +1 -1
  27. package/lib/es/locale/vi-VN.js +1 -1
  28. package/lib/es/locale/zh-CN.js +1 -1
  29. package/lib/es/locale/zh-TW.js +1 -1
  30. package/lib/facade.js +1 -1
  31. package/lib/index.js +1 -1
  32. package/lib/locale/ca-ES.js +1 -1
  33. package/lib/locale/en-US.js +1 -1
  34. package/lib/locale/es-ES.js +1 -1
  35. package/lib/locale/fa-IR.js +1 -1
  36. package/lib/locale/fr-FR.js +1 -1
  37. package/lib/locale/ja-JP.js +1 -1
  38. package/lib/locale/ko-KR.js +1 -1
  39. package/lib/locale/ru-RU.js +1 -1
  40. package/lib/locale/sk-SK.js +1 -1
  41. package/lib/locale/vi-VN.js +1 -1
  42. package/lib/locale/zh-CN.js +1 -1
  43. package/lib/locale/zh-TW.js +1 -1
  44. package/lib/types/services/utils/tool.d.ts +0 -1
  45. package/lib/umd/facade.js +1 -1
  46. package/lib/umd/index.js +1 -1
  47. package/lib/umd/locale/ca-ES.js +1 -1
  48. package/lib/umd/locale/en-US.js +1 -1
  49. package/lib/umd/locale/es-ES.js +1 -1
  50. package/lib/umd/locale/fa-IR.js +1 -1
  51. package/lib/umd/locale/fr-FR.js +1 -1
  52. package/lib/umd/locale/ja-JP.js +1 -1
  53. package/lib/umd/locale/ko-KR.js +1 -1
  54. package/lib/umd/locale/ru-RU.js +1 -1
  55. package/lib/umd/locale/sk-SK.js +1 -1
  56. package/lib/umd/locale/vi-VN.js +1 -1
  57. package/lib/umd/locale/zh-CN.js +1 -1
  58. package/lib/umd/locale/zh-TW.js +1 -1
  59. package/package.json +18 -12
@@ -1 +1 @@
1
- const _0x2b0817=_0x2497;function _0x2497(_0x21fead,_0x166d19){_0x21fead=_0x21fead-0x14f;const _0x3b50aa=_0x3b50();let _0x2497a4=_0x3b50aa[_0x21fead];return _0x2497a4;}(function(_0x2f078d,_0x59377f){const _0x3c758f=_0x2497,_0x41063d=_0x2f078d();while(!![]){try{const _0x4a9ebb=parseInt(_0x3c758f(0x151))/0x1+-parseInt(_0x3c758f(0x150))/0x2+parseInt(_0x3c758f(0x156))/0x3+parseInt(_0x3c758f(0x15b))/0x4*(-parseInt(_0x3c758f(0x160))/0x5)+parseInt(_0x3c758f(0x15f))/0x6+parseInt(_0x3c758f(0x157))/0x7+-parseInt(_0x3c758f(0x15c))/0x8*(parseInt(_0x3c758f(0x15d))/0x9);if(_0x4a9ebb===_0x59377f)break;else _0x41063d['push'](_0x41063d['shift']());}catch(_0x469eae){_0x41063d['push'](_0x41063d['shift']());}}}(_0x3b50,0x62998));function _0x3b50(){const _0x69e1a7=['9aFhDIo','Les\x20données\x20sont\x20trop\x20volumineuses','3838758WfeblX','885pKxdvD','Téléchargement','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','Téléchargement\x20en\x20cours','Erreur\x20inconnue','824900tczpNu','669222bbDaBG','Téléchargement\x20réussi','Erreur\x20interne\x20inconnue','Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','Annuler','327612yLGbAg','2604728NsBnaP','Télécharger\x20à\x20nouveau','Fichier\x20téléchargé\x20avec\x20succès','Enregistrer\x20sous','13100KtRdLC','3154672EyPVHW'];_0x3b50=function(){return _0x69e1a7;};return _0x3b50();}const locale={'exchange':{'file':'Fichier','upload':'Ouvrir\x20(Fichier)','download':_0x2b0817(0x15a),'uploading':_0x2b0817(0x163),'uploadSuccess':_0x2b0817(0x159),'uploadSuccessTip':_0x2b0817(0x162),'downloading':_0x2b0817(0x161),'downloadSuccess':_0x2b0817(0x152),'unknownMistake':_0x2b0817(0x14f),'networkError':'Erreur\x20réseau','tooLarge':_0x2b0817(0x15e),'internalError':_0x2b0817(0x153),'interrupt':'La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','fileTypeError':_0x2b0817(0x154),'wait':'Veuillez\x20patienter...','cancel':_0x2b0817(0x155),'uploadAgain':_0x2b0817(0x158)}};export{locale as default};
1
+ function _0x1005(){const _0x4584dd=['4389920jRljBF','Les\x20données\x20sont\x20trop\x20volumineuses','165FOalUe','96786PUqnkY','Télécharger\x20à\x20nouveau','Fichier','Veuillez\x20patienter...','Enregistrer\x20sous','Erreur\x20réseau','Annuler','Erreur\x20interne\x20inconnue','5094licHrm','1661094RIDGOm','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','Téléchargement','4631865MlIeiE','44aTgaDf','42ZkDGwL','262ogIkzR','Téléchargement\x20en\x20cours','Téléchargement\x20réussi','4121340dJPVLn','Erreur\x20inconnue','160396lVxWok','La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué'];_0x1005=function(){return _0x4584dd;};return _0x1005();}const _0x53b0d9=_0xb7e0;(function(_0x551a7e,_0x44b16f){const _0x412222=_0xb7e0,_0x3d0d72=_0x551a7e();while(!![]){try{const _0x47e659=-parseInt(_0x412222(0x10d))/0x1*(-parseInt(_0x412222(0x106))/0x2)+parseInt(_0x412222(0x10c))/0x3*(parseInt(_0x412222(0x112))/0x4)+parseInt(_0x412222(0x116))/0x5*(-parseInt(_0x412222(0x117))/0x6)+parseInt(_0x412222(0x10a))/0x7+parseInt(_0x412222(0x114))/0x8+parseInt(_0x412222(0x107))/0x9+parseInt(_0x412222(0x110))/0xa*(-parseInt(_0x412222(0x10b))/0xb);if(_0x47e659===_0x44b16f)break;else _0x3d0d72['push'](_0x3d0d72['shift']());}catch(_0xa7144c){_0x3d0d72['push'](_0x3d0d72['shift']());}}}(_0x1005,0x6c1da));const locale={'exchange':{'file':_0x53b0d9(0x119),'upload':'Ouvrir\x20(Fichier)','download':_0x53b0d9(0x11b),'uploading':_0x53b0d9(0x10e),'uploadSuccess':'Fichier\x20téléchargé\x20avec\x20succès','uploadSuccessTip':_0x53b0d9(0x108),'downloading':_0x53b0d9(0x109),'downloadSuccess':_0x53b0d9(0x10f),'unknownMistake':_0x53b0d9(0x111),'networkError':_0x53b0d9(0x11c),'tooLarge':_0x53b0d9(0x115),'internalError':_0x53b0d9(0x105),'interrupt':_0x53b0d9(0x113),'fileTypeError':'Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','wait':_0x53b0d9(0x11a),'cancel':_0x53b0d9(0x11d),'uploadAgain':_0x53b0d9(0x118)}};function _0xb7e0(_0x481c4c,_0xbd1d4c){_0x481c4c=_0x481c4c-0x105;const _0x1005bf=_0x1005();let _0xb7e05f=_0x1005bf[_0x481c4c];return _0xb7e05f;}export{locale as default};
@@ -1 +1 @@
1
- function _0x47cc(){const _0x507ce8=['不明なエラー','ダウンロード中','296748XJohKH','3787oEjLZJ','3660AzXzDJ','ファイル','2lSFnYi','内部エラーが発生しました','17622cPaikQ','474018joEywp','20qzwWUQ','データが大きすぎます','{0}\x20個のファイルが正常にアップロードされました','1057635gWWQSK','アップロード中','ファイルが正常にアップロードされました','1080cWJuDR','開く(ファイル)','キャンセル','ダウンロードが完了しました','2829160zmeFOb','再度アップロード','ネットワーク接続が中断され、ファイルのアップロードに失敗しました','名前を付けて保存','80HaGEEs','3087138VKwqyU','選択されたファイル\x20[{0}]\x20はアップロードがサポートされていません'];_0x47cc=function(){return _0x507ce8;};return _0x47cc();}const _0x2e57cb=_0xb7e8;(function(_0x55b8e3,_0x43d2ce){const _0x509628=_0xb7e8,_0x431119=_0x55b8e3();while(!![]){try{const _0x45b691=parseInt(_0x509628(0x191))/0x1+-parseInt(_0x509628(0x18e))/0x2*(-parseInt(_0x509628(0x186))/0x3)+-parseInt(_0x509628(0x181))/0x4+parseInt(_0x509628(0x185))/0x5*(-parseInt(_0x509628(0x18a))/0x6)+parseInt(_0x509628(0x18b))/0x7*(-parseInt(_0x509628(0x198))/0x8)+parseInt(_0x509628(0x195))/0x9*(parseInt(_0x509628(0x192))/0xa)+-parseInt(_0x509628(0x190))/0xb*(-parseInt(_0x509628(0x18c))/0xc);if(_0x45b691===_0x43d2ce)break;else _0x431119['push'](_0x431119['shift']());}catch(_0x29fd2f){_0x431119['push'](_0x431119['shift']());}}}(_0x47cc,0x9fecb));function _0xb7e8(_0x1c6b41,_0x4eb576){_0x1c6b41=_0x1c6b41-0x17f;const _0x47cc13=_0x47cc();let _0xb7e839=_0x47cc13[_0x1c6b41];return _0xb7e839;}const locale={'exchange':{'file':_0x2e57cb(0x18d),'upload':_0x2e57cb(0x199),'download':_0x2e57cb(0x184),'uploading':_0x2e57cb(0x196),'uploadSuccess':_0x2e57cb(0x197),'uploadSuccessTip':_0x2e57cb(0x194),'downloading':_0x2e57cb(0x189),'downloadSuccess':_0x2e57cb(0x180),'unknownMistake':_0x2e57cb(0x188),'networkError':'ネットワークエラー','tooLarge':_0x2e57cb(0x193),'internalError':_0x2e57cb(0x18f),'interrupt':_0x2e57cb(0x183),'fileTypeError':_0x2e57cb(0x187),'wait':'お待ちください...','cancel':_0x2e57cb(0x17f),'uploadAgain':_0x2e57cb(0x182)}};export{locale as default};
1
+ const _0x370e0a=_0x7db9;function _0x7db9(_0x3fc677,_0x366844){_0x3fc677=_0x3fc677-0x68;const _0x4e5bb5=_0x4e5b();let _0x7db9a=_0x4e5bb5[_0x3fc677];return _0x7db9a;}(function(_0x38a527,_0x386815){const _0x2987af=_0x7db9,_0x378fd3=_0x38a527();while(!![]){try{const _0x24ded7=-parseInt(_0x2987af(0x79))/0x1*(-parseInt(_0x2987af(0x6a))/0x2)+parseInt(_0x2987af(0x6f))/0x3+-parseInt(_0x2987af(0x73))/0x4*(parseInt(_0x2987af(0x6c))/0x5)+parseInt(_0x2987af(0x6b))/0x6*(parseInt(_0x2987af(0x78))/0x7)+-parseInt(_0x2987af(0x74))/0x8+parseInt(_0x2987af(0x71))/0x9+-parseInt(_0x2987af(0x7b))/0xa*(parseInt(_0x2987af(0x7a))/0xb);if(_0x24ded7===_0x386815)break;else _0x378fd3['push'](_0x378fd3['shift']());}catch(_0x255f1b){_0x378fd3['push'](_0x378fd3['shift']());}}}(_0x4e5b,0xcd336));const locale={'exchange':{'file':_0x370e0a(0x76),'upload':_0x370e0a(0x80),'download':'名前を付けて保存','uploading':_0x370e0a(0x7d),'uploadSuccess':_0x370e0a(0x6d),'uploadSuccessTip':'{0}\x20個のファイルが正常にアップロードされました','downloading':_0x370e0a(0x72),'downloadSuccess':_0x370e0a(0x7c),'unknownMistake':_0x370e0a(0x69),'networkError':_0x370e0a(0x68),'tooLarge':_0x370e0a(0x7e),'internalError':'内部エラーが発生しました','interrupt':_0x370e0a(0x70),'fileTypeError':_0x370e0a(0x77),'wait':_0x370e0a(0x7f),'cancel':_0x370e0a(0x6e),'uploadAgain':_0x370e0a(0x75)}};function _0x4e5b(){const _0x3b9a85=['2kwDcBN','11kjHHcP','7778620AfAPdu','ダウンロードが完了しました','アップロード中','データが大きすぎます','お待ちください...','開く(ファイル)','ネットワークエラー','不明なエラー','765662dPGbyn','654UjnTHQ','48630cZogsz','ファイルが正常にアップロードされました','キャンセル','3111696ydwSBH','ネットワーク接続が中断され、ファイルのアップロードに失敗しました','9448362DcnvrK','ダウンロード中','348frEtCn','6894328pZDihj','再度アップロード','ファイル','選択されたファイル\x20[{0}]\x20はアップロードがサポートされていません','30415XnMgLU'];_0x4e5b=function(){return _0x3b9a85;};return _0x4e5b();}export{locale as default};
@@ -1 +1 @@
1
- const _0x579e29=_0xe953;function _0xe953(_0x28ffad,_0x5123ad){_0x28ffad=_0x28ffad-0x9b;const _0x5dab99=_0x5dab();let _0xe95394=_0x5dab99[_0x28ffad];return _0xe95394;}(function(_0x2f8db2,_0x3b7266){const _0x536a52=_0xe953,_0x39cd53=_0x2f8db2();while(!![]){try{const _0x33497a=-parseInt(_0x536a52(0x9e))/0x1+parseInt(_0x536a52(0xa2))/0x2+-parseInt(_0x536a52(0xaa))/0x3+parseInt(_0x536a52(0xa9))/0x4+-parseInt(_0x536a52(0x9b))/0x5+parseInt(_0x536a52(0x9c))/0x6+parseInt(_0x536a52(0xac))/0x7;if(_0x33497a===_0x3b7266)break;else _0x39cd53['push'](_0x39cd53['shift']());}catch(_0x158373){_0x39cd53['push'](_0x39cd53['shift']());}}}(_0x5dab,0x6a857));const locale={'exchange':{'file':'파일','upload':_0x579e29(0xa5),'download':_0x579e29(0xa3),'uploading':_0x579e29(0xa7),'uploadSuccess':_0x579e29(0xad),'uploadSuccessTip':'{0}개의\x20파일이\x20성공적으로\x20업로드되었습니다','downloading':_0x579e29(0xa0),'downloadSuccess':_0x579e29(0xa8),'unknownMistake':'알\x20수\x20없는\x20오류','networkError':_0x579e29(0xa1),'tooLarge':_0x579e29(0x9d),'internalError':_0x579e29(0x9f),'interrupt':_0x579e29(0xa4),'fileTypeError':_0x579e29(0xab),'wait':_0x579e29(0xa6),'cancel':'취소','uploadAgain':'다시\x20업로드'}};export{locale as default};function _0x5dab(){const _0x554d6a=['네트워크\x20오류','424242lhRNxn','다른\x20이름으로\x20저장','네트워크\x20연결이\x20중단되어\x20파일\x20업로드에\x20실패했습니다','열기(파일)','잠시만\x20기다려\x20주세요...','업로드\x20중','다운로드가\x20완료되었습니다','2802940VoIZNj','2278200mFNKkF','선택한\x20파일\x20[{0}]은(는)\x20업로드가\x20지원되지\x20않습니다','4080594MCITHS','파일이\x20성공적으로\x20업로드되었습니다','268180YlWFFm','2349372jtOSXW','데이터가\x20너무\x20큽니다','638013WBBzjY','내부\x20오류가\x20발생했습니다','다운로드\x20중'];_0x5dab=function(){return _0x554d6a;};return _0x5dab();}
1
+ const _0x2fa534=_0x1685;(function(_0x570774,_0x35c19e){const _0x49666f=_0x1685,_0x18c70e=_0x570774();while(!![]){try{const _0x5b1a88=parseInt(_0x49666f(0x1bf))/0x1*(parseInt(_0x49666f(0x1c6))/0x2)+-parseInt(_0x49666f(0x1bb))/0x3+-parseInt(_0x49666f(0x1b9))/0x4*(-parseInt(_0x49666f(0x1bd))/0x5)+-parseInt(_0x49666f(0x1b3))/0x6*(parseInt(_0x49666f(0x1c0))/0x7)+parseInt(_0x49666f(0x1c3))/0x8+-parseInt(_0x49666f(0x1c5))/0x9+parseInt(_0x49666f(0x1b6))/0xa;if(_0x5b1a88===_0x35c19e)break;else _0x18c70e['push'](_0x18c70e['shift']());}catch(_0x2860f6){_0x18c70e['push'](_0x18c70e['shift']());}}}(_0x3559,0x5ef62));const locale={'exchange':{'file':'파일','upload':_0x2fa534(0x1b4),'download':_0x2fa534(0x1b5),'uploading':_0x2fa534(0x1bc),'uploadSuccess':_0x2fa534(0x1b1),'uploadSuccessTip':_0x2fa534(0x1b2),'downloading':_0x2fa534(0x1be),'downloadSuccess':_0x2fa534(0x1b7),'unknownMistake':_0x2fa534(0x1c2),'networkError':'네트워크\x20오류','tooLarge':'데이터가\x20너무\x20큽니다','internalError':'내부\x20오류가\x20발생했습니다','interrupt':_0x2fa534(0x1b8),'fileTypeError':_0x2fa534(0x1c1),'wait':_0x2fa534(0x1c4),'cancel':'취소','uploadAgain':_0x2fa534(0x1ba)}};export{locale as default};function _0x1685(_0xa366d4,_0x22a10d){_0xa366d4=_0xa366d4-0x1b1;const _0x355907=_0x3559();let _0x16857d=_0x355907[_0xa366d4];return _0x16857d;}function _0x3559(){const _0x12350a=['선택한\x20파일\x20[{0}]은(는)\x20업로드가\x20지원되지\x20않습니다','알\x20수\x20없는\x20오류','4763504kvKDdq','잠시만\x20기다려\x20주세요...','1828665yBiFeq','8mFrGHS','파일이\x20성공적으로\x20업로드되었습니다','{0}개의\x20파일이\x20성공적으로\x20업로드되었습니다','7134KtqHta','열기(파일)','다른\x20이름으로\x20저장','28460FCgFqT','다운로드가\x20완료되었습니다','네트워크\x20연결이\x20중단되어\x20파일\x20업로드에\x20실패했습니다','44xPrqcn','다시\x20업로드','1872102Xnoweb','업로드\x20중','209105SbCDSr','다운로드\x20중','57896jGOqNi','434JMXIuS'];_0x3559=function(){return _0x12350a;};return _0x3559();}
@@ -1 +1 @@
1
- function _0x1414(){const _0x7c4451=['2jdagyU','Скачивание','Файл','156780puTDdY','351066sWTReF','Внутренняя\x20неизвестная\x20ошибка','1123923xaVpve','Скачивание\x20успешно','1200fdgBix','Данные\x20слишком\x20большие','81564HQOJxU','10criYEj','Неизвестная\x20ошибка','2741590HCZGtE','{0}\x20файл(ов)\x20успешно\x20загружен(о)','Сохранить\x20как','2066355hytOFD','13349bKzaRD','Файл\x20успешно\x20загружен'];_0x1414=function(){return _0x7c4451;};return _0x1414();}const _0x37e29f=_0x2a53;function _0x2a53(_0xb80702,_0x4fc2cc){_0xb80702=_0xb80702-0x18a;const _0x141450=_0x1414();let _0x2a533f=_0x141450[_0xb80702];return _0x2a533f;}(function(_0x410d68,_0x12c8fd){const _0x599038=_0x2a53,_0x4966a4=_0x410d68();while(!![]){try{const _0x5f2832=-parseInt(_0x599038(0x18f))/0x1*(-parseInt(_0x599038(0x199))/0x2)+parseInt(_0x599038(0x195))/0x3+-parseInt(_0x599038(0x192))/0x4+parseInt(_0x599038(0x19a))/0x5*(parseInt(_0x599038(0x193))/0x6)+parseInt(_0x599038(0x18d))/0x7*(-parseInt(_0x599038(0x197))/0x8)+parseInt(_0x599038(0x18c))/0x9+-parseInt(_0x599038(0x19c))/0xa;if(_0x5f2832===_0x12c8fd)break;else _0x4966a4['push'](_0x4966a4['shift']());}catch(_0x24bf31){_0x4966a4['push'](_0x4966a4['shift']());}}}(_0x1414,0x31a9a));const locale={'exchange':{'file':_0x37e29f(0x191),'upload':'Открыть(Файл)','download':_0x37e29f(0x18b),'uploading':'Загрузка','uploadSuccess':_0x37e29f(0x18e),'uploadSuccessTip':_0x37e29f(0x18a),'downloading':_0x37e29f(0x190),'downloadSuccess':_0x37e29f(0x196),'unknownMistake':_0x37e29f(0x19b),'networkError':'Сетевая\x20ошибка','tooLarge':_0x37e29f(0x198),'internalError':_0x37e29f(0x194),'interrupt':'Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','fileTypeError':'Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','wait':'Пожалуйста,\x20подождите...','cancel':'Отмена','uploadAgain':'Загрузить\x20снова'}};export{locale as default};
1
+ const _0x40c489=_0x3145;function _0x181b(){const _0x1531d3=['{0}\x20файл(ов)\x20успешно\x20загружен(о)','Неизвестная\x20ошибка','30eDjBRK','Внутренняя\x20неизвестная\x20ошибка','Файл','9523619DiSIxE','692290GeliWB','Пожалуйста,\x20подождите...','Файл\x20успешно\x20загружен','130252VDFCpP','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','Скачивание','34346142FSiYrm','1204304bexTfg','4335498YvoWIu','5450240cyhoeL','Отмена','17EJzXoC','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','Сохранить\x20как'];_0x181b=function(){return _0x1531d3;};return _0x181b();}(function(_0x22bb04,_0x4fa243){const _0x29de93=_0x3145,_0x2ca0f5=_0x22bb04();while(!![]){try{const _0x1d1c35=-parseInt(_0x29de93(0x1ec))/0x1*(parseInt(_0x29de93(0x1e4))/0x2)+-parseInt(_0x29de93(0x1e9))/0x3+parseInt(_0x29de93(0x1ea))/0x4+-parseInt(_0x29de93(0x1e1))/0x5*(parseInt(_0x29de93(0x1f1))/0x6)+-parseInt(_0x29de93(0x1e0))/0x7+parseInt(_0x29de93(0x1e8))/0x8+parseInt(_0x29de93(0x1e7))/0x9;if(_0x1d1c35===_0x4fa243)break;else _0x2ca0f5['push'](_0x2ca0f5['shift']());}catch(_0x5c2ba7){_0x2ca0f5['push'](_0x2ca0f5['shift']());}}}(_0x181b,0xb0cfd));function _0x3145(_0x3018a3,_0x58b183){_0x3018a3=_0x3018a3-0x1de;const _0x181b18=_0x181b();let _0x31450e=_0x181b18[_0x3018a3];return _0x31450e;}const locale={'exchange':{'file':_0x40c489(0x1df),'upload':'Открыть(Файл)','download':_0x40c489(0x1ee),'uploading':'Загрузка','uploadSuccess':_0x40c489(0x1e3),'uploadSuccessTip':_0x40c489(0x1ef),'downloading':_0x40c489(0x1e6),'downloadSuccess':'Скачивание\x20успешно','unknownMistake':_0x40c489(0x1f0),'networkError':'Сетевая\x20ошибка','tooLarge':'Данные\x20слишком\x20большие','internalError':_0x40c489(0x1de),'interrupt':_0x40c489(0x1ed),'fileTypeError':_0x40c489(0x1e5),'wait':_0x40c489(0x1e2),'cancel':_0x40c489(0x1eb),'uploadAgain':'Загрузить\x20снова'}};export{locale as default};
@@ -1 +1 @@
1
- function _0x4ac6(_0x344906,_0x44db62){_0x344906=_0x344906-0xbf;const _0x709aef=_0x709a();let _0x4ac68b=_0x709aef[_0x344906];return _0x4ac68b;}const _0x4fac98=_0x4ac6;(function(_0x855228,_0x21bfdf){const _0x27f475=_0x4ac6,_0x322e63=_0x855228();while(!![]){try{const _0x18e015=-parseInt(_0x27f475(0xcf))/0x1*(-parseInt(_0x27f475(0xc9))/0x2)+-parseInt(_0x27f475(0xc8))/0x3*(-parseInt(_0x27f475(0xd0))/0x4)+-parseInt(_0x27f475(0xc5))/0x5*(parseInt(_0x27f475(0xc0))/0x6)+parseInt(_0x27f475(0xbf))/0x7+parseInt(_0x27f475(0xcc))/0x8+-parseInt(_0x27f475(0xcb))/0x9+-parseInt(_0x27f475(0xc6))/0xa*(parseInt(_0x27f475(0xc2))/0xb);if(_0x18e015===_0x21bfdf)break;else _0x322e63['push'](_0x322e63['shift']());}catch(_0x3e1638){_0x322e63['push'](_0x322e63['shift']());}}}(_0x709a,0x1e659));const locale={'exchange':{'file':'Súbor','upload':'Otvoriť\x20(súbor)','download':_0x4fac98(0xce),'uploading':'Nahrávanie','uploadSuccess':'Súbor\x20bol\x20úspešne\x20nahraný','uploadSuccessTip':_0x4fac98(0xd1),'downloading':'Sťahovanie','downloadSuccess':'Sťahovanie\x20úspešné','unknownMistake':_0x4fac98(0xc3),'networkError':_0x4fac98(0xc7),'tooLarge':_0x4fac98(0xc1),'internalError':_0x4fac98(0xcd),'interrupt':_0x4fac98(0xca),'fileTypeError':'Vybraný\x20súbor\x20[{0}]\x20nie\x20je\x20podporovaný\x20na\x20nahrávanie','wait':_0x4fac98(0xc4),'cancel':'Zrušiť','uploadAgain':'Nahrať\x20znova'}};function _0x709a(){const _0xea7f46=['Neznáma\x20chyba','Prosím\x20počkajte...','13435UMeJJu','10EhioQA','Sieťová\x20chyba','515388lIRDci','574GzybjR','Sieťové\x20pripojenie\x20bolo\x20prerušené\x20a\x20nahrávanie\x20súboru\x20zlyhalo','815958fLczts','50992PWQmhz','Interná\x20neznáma\x20chyba','Uložiť\x20ako','159SFUukt','4anNZnG','Úspešne\x20nahraných\x20{0}\x20súborov','1328355gZaUeU','30ObMlIE','Dáta\x20sú\x20príliš\x20veľké','2034626HNSWHM'];_0x709a=function(){return _0xea7f46;};return _0x709a();}export{locale as default};
1
+ const _0x53c0de=_0x1abb;(function(_0x22e85d,_0x46ae57){const _0x450c59=_0x1abb,_0x469a44=_0x22e85d();while(!![]){try{const _0x31f7b1=-parseInt(_0x450c59(0x132))/0x1*(parseInt(_0x450c59(0x131))/0x2)+parseInt(_0x450c59(0x130))/0x3*(parseInt(_0x450c59(0x13b))/0x4)+-parseInt(_0x450c59(0x137))/0x5+-parseInt(_0x450c59(0x127))/0x6+-parseInt(_0x450c59(0x12b))/0x7+parseInt(_0x450c59(0x139))/0x8*(parseInt(_0x450c59(0x128))/0x9)+parseInt(_0x450c59(0x125))/0xa;if(_0x31f7b1===_0x46ae57)break;else _0x469a44['push'](_0x469a44['shift']());}catch(_0x29a537){_0x469a44['push'](_0x469a44['shift']());}}}(_0x22b3,0x82395));const locale={'exchange':{'file':_0x53c0de(0x12a),'upload':_0x53c0de(0x12f),'download':_0x53c0de(0x12e),'uploading':_0x53c0de(0x126),'uploadSuccess':_0x53c0de(0x136),'uploadSuccessTip':'Úspešne\x20nahraných\x20{0}\x20súborov','downloading':_0x53c0de(0x13a),'downloadSuccess':_0x53c0de(0x12c),'unknownMistake':_0x53c0de(0x138),'networkError':_0x53c0de(0x134),'tooLarge':_0x53c0de(0x12d),'internalError':_0x53c0de(0x135),'interrupt':_0x53c0de(0x133),'fileTypeError':'Vybraný\x20súbor\x20[{0}]\x20nie\x20je\x20podporovaný\x20na\x20nahrávanie','wait':'Prosím\x20počkajte...','cancel':_0x53c0de(0x129),'uploadAgain':'Nahrať\x20znova'}};function _0x1abb(_0x11b26f,_0x915d2b){_0x11b26f=_0x11b26f-0x125;const _0x22b38b=_0x22b3();let _0x1abb03=_0x22b38b[_0x11b26f];return _0x1abb03;}export{locale as default};function _0x22b3(){const _0x6e23e8=['Súbor\x20bol\x20úspešne\x20nahraný','1004310NEfXne','Neznáma\x20chyba','8FyDdyU','Sťahovanie','4022708NCzilT','9509470neVTLd','Nahrávanie','5807934gwGcOo','9047151FFAiPV','Zrušiť','Súbor','7291340KVkSMM','Sťahovanie\x20úspešné','Dáta\x20sú\x20príliš\x20veľké','Uložiť\x20ako','Otvoriť\x20(súbor)','3gUaVSS','145330GKADiF','3PRMTXm','Sieťové\x20pripojenie\x20bolo\x20prerušené\x20a\x20nahrávanie\x20súboru\x20zlyhalo','Sieťová\x20chyba','Interná\x20neznáma\x20chyba'];_0x22b3=function(){return _0x6e23e8;};return _0x22b3();}
@@ -1 +1 @@
1
- const _0x3a1380=_0x34b6;function _0x5156(){const _0x54ce25=['459QcdzND','Đang\x20tải\x20xuống','147333KNZFGY','37226MfFVuu','67045pqbXcX','Đang\x20tải\x20lên','2435BMBXcS','12nYaLSi','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','Luồng\x20dữ\x20liệu\x20quá\x20lớn','34050KdwTKR','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','11VJeVhh','72588zaDNhD','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','2fSpLMe','Lưu\x20dưới\x20dạng','77obXhQk','1014JoOAGY','Tải\x20lên\x20lại','2004Hunjqc','142360IyMUlm','Mở\x20(Tệp)','Vui\x20lòng\x20đợi...'];_0x5156=function(){return _0x54ce25;};return _0x5156();}function _0x34b6(_0x17ed59,_0x54abfa){_0x17ed59=_0x17ed59-0xa4;const _0x5156ad=_0x5156();let _0x34b60c=_0x5156ad[_0x17ed59];return _0x34b60c;}(function(_0xdf7af5,_0x39560e){const _0x3b8964=_0x34b6,_0x398cb3=_0xdf7af5();while(!![]){try{const _0x458fe2=parseInt(_0x3b8964(0xb1))/0x1*(-parseInt(_0x3b8964(0xa4))/0x2)+parseInt(_0x3b8964(0xaf))/0x3*(parseInt(_0x3b8964(0xb4))/0x4)+-parseInt(_0x3b8964(0xb3))/0x5*(parseInt(_0x3b8964(0xa9))/0x6)+parseInt(_0x3b8964(0xa6))/0x7*(-parseInt(_0x3b8964(0xaa))/0x8)+parseInt(_0x3b8964(0xad))/0x9*(parseInt(_0x3b8964(0xb7))/0xa)+-parseInt(_0x3b8964(0xb9))/0xb*(-parseInt(_0x3b8964(0xba))/0xc)+-parseInt(_0x3b8964(0xa7))/0xd*(-parseInt(_0x3b8964(0xb0))/0xe);if(_0x458fe2===_0x39560e)break;else _0x398cb3['push'](_0x398cb3['shift']());}catch(_0x5d9c7c){_0x398cb3['push'](_0x398cb3['shift']());}}}(_0x5156,0x1a9bf));const locale={'exchange':{'file':'Tệp','upload':_0x3a1380(0xab),'download':_0x3a1380(0xa5),'uploading':_0x3a1380(0xb2),'uploadSuccess':'Tải\x20lên\x20tệp\x20thành\x20công','uploadSuccessTip':_0x3a1380(0xb8),'downloading':_0x3a1380(0xae),'downloadSuccess':'Tải\x20xuống\x20thành\x20công','unknownMistake':'Lỗi\x20không\x20xác\x20định','networkError':'Lỗi\x20mạng','tooLarge':_0x3a1380(0xb6),'internalError':_0x3a1380(0xb5),'interrupt':_0x3a1380(0xbb),'fileTypeError':'Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','wait':_0x3a1380(0xac),'cancel':'Hủy\x20bỏ','uploadAgain':_0x3a1380(0xa8)}};export{locale as default};
1
+ const _0x128356=_0x2501;function _0x2501(_0xe44281,_0x14fe1f){_0xe44281=_0xe44281-0xe1;const _0x5230d9=_0x5230();let _0x250140=_0x5230d9[_0xe44281];return _0x250140;}function _0x5230(){const _0x4eb5e3=['Lỗi\x20mạng','472728qdQdxk','4284EjAOWa','Mở\x20(Tệp)','1NQrogk','Tải\x20lên\x20lại','Luồng\x20dữ\x20liệu\x20quá\x20lớn','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','42714uUVTZT','Lưu\x20dưới\x20dạng','Đang\x20tải\x20lên','Lỗi\x20không\x20xác\x20định','Hủy\x20bỏ','36Xisezw','Tệp','1020312mDHonH','518382dFmSLm','60tDrbNM','4905NEEUUD','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','517726yVmdQb','6xnIXEL','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','1720984RMeVpQ','Tải\x20lên\x20tệp\x20thành\x20công','Đang\x20tải\x20xuống','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên'];_0x5230=function(){return _0x4eb5e3;};return _0x5230();}(function(_0x56aa0d,_0x38fff6){const _0x4267b7=_0x2501,_0x468335=_0x56aa0d();while(!![]){try{const _0x5980d9=parseInt(_0x4267b7(0xf3))/0x1*(parseInt(_0x4267b7(0xe4))/0x2)+parseInt(_0x4267b7(0xe9))/0x3*(parseInt(_0x4267b7(0xeb))/0x4)+-parseInt(_0x4267b7(0xe6))/0x5*(parseInt(_0x4267b7(0xf1))/0x6)+parseInt(_0x4267b7(0xf7))/0x7+parseInt(_0x4267b7(0xf0))/0x8*(parseInt(_0x4267b7(0xe1))/0x9)+parseInt(_0x4267b7(0xe5))/0xa*(-parseInt(_0x4267b7(0xe8))/0xb)+parseInt(_0x4267b7(0xe3))/0xc;if(_0x5980d9===_0x38fff6)break;else _0x468335['push'](_0x468335['shift']());}catch(_0x1122da){_0x468335['push'](_0x468335['shift']());}}}(_0x5230,0x715d9));const locale={'exchange':{'file':_0x128356(0xe2),'upload':_0x128356(0xf2),'download':_0x128356(0xf8),'uploading':_0x128356(0xf9),'uploadSuccess':_0x128356(0xec),'uploadSuccessTip':_0x128356(0xea),'downloading':_0x128356(0xed),'downloadSuccess':'Tải\x20xuống\x20thành\x20công','unknownMistake':_0x128356(0xfa),'networkError':_0x128356(0xef),'tooLarge':_0x128356(0xf5),'internalError':_0x128356(0xf6),'interrupt':_0x128356(0xe7),'fileTypeError':_0x128356(0xee),'wait':'Vui\x20lòng\x20đợi...','cancel':_0x128356(0xfb),'uploadAgain':_0x128356(0xf4)}};export{locale as default};
@@ -1 +1 @@
1
- function _0x188c(){const _0x1bb922=['20yTgqhD','762593Zceogl','5355rBHZHd','文件上传成功','数据流过大','2935PapPQG','14YYwDja','26GWoVvk','6908abEwdR','上传中','109232vcoQtk','打开(文件)','另存为','23279ASdbgA','2328xjpvQM','294276LdvtzY','请稍等...','1180RkrHMB','{0}个文件上传成功','3366VEJCHq','所选文件\x20[{0}]\x20不支持上传'];_0x188c=function(){return _0x1bb922;};return _0x188c();}const _0x1accb1=_0x1b35;function _0x1b35(_0x25f5fd,_0x5015ef){_0x25f5fd=_0x25f5fd-0x1ae;const _0x188ca4=_0x188c();let _0x1b3535=_0x188ca4[_0x25f5fd];return _0x1b3535;}(function(_0x46085b,_0x357913){const _0x3774a6=_0x1b35,_0x356224=_0x46085b();while(!![]){try{const _0x315433=parseInt(_0x3774a6(0x1c0))/0x1*(parseInt(_0x3774a6(0x1ba))/0x2)+-parseInt(_0x3774a6(0x1c2))/0x3*(parseInt(_0x3774a6(0x1b3))/0x4)+parseInt(_0x3774a6(0x1b8))/0x5*(parseInt(_0x3774a6(0x1b1))/0x6)+parseInt(_0x3774a6(0x1b9))/0x7*(-parseInt(_0x3774a6(0x1bd))/0x8)+parseInt(_0x3774a6(0x1b5))/0x9*(parseInt(_0x3774a6(0x1af))/0xa)+parseInt(_0x3774a6(0x1bb))/0xb*(parseInt(_0x3774a6(0x1c1))/0xc)+parseInt(_0x3774a6(0x1b4))/0xd;if(_0x315433===_0x357913)break;else _0x356224['push'](_0x356224['shift']());}catch(_0x5e64ea){_0x356224['push'](_0x356224['shift']());}}}(_0x188c,0x59145));const locale={'exchange':{'file':'文件','upload':_0x1accb1(0x1be),'download':_0x1accb1(0x1bf),'uploading':_0x1accb1(0x1bc),'uploadSuccess':_0x1accb1(0x1b6),'uploadSuccessTip':_0x1accb1(0x1b0),'downloading':'下载中','downloadSuccess':'下载成功','unknownMistake':'未知错误','networkError':'网络异常','tooLarge':_0x1accb1(0x1b7),'internalError':'内部未知错误','interrupt':'网络连接中断,文件上传失败','fileTypeError':_0x1accb1(0x1b2),'wait':_0x1accb1(0x1ae),'cancel':'取消','uploadAgain':'再次上传'}};export{locale as default};
1
+ const _0x26e7bb=_0x4ccd;function _0x2272(){const _0x43ff7a=['上传中','18QpVnHp','20568724dGPAns','12275oyxLbH','2396632exnqtX','190qwYtai','再次上传','内部未知错误','打开(文件)','1678640mixIEZ','网络连接中断,文件上传失败','所选文件\x20[{0}]\x20不支持上传','下载中','8TWoJwk','文件上传成功','1664244ywzAIK','数据流过大','下载成功','337593TrxrCF','{0}个文件上传成功','56OyaFlP','4970730dXCOex','另存为'];_0x2272=function(){return _0x43ff7a;};return _0x2272();}(function(_0x3fbf35,_0x294cbc){const _0x5db783=_0x4ccd,_0x30674f=_0x3fbf35();while(!![]){try{const _0x3107fb=-parseInt(_0x5db783(0x188))/0x1*(-parseInt(_0x5db783(0x18a))/0x2)+-parseInt(_0x5db783(0x180))/0x3*(-parseInt(_0x5db783(0x182))/0x4)+-parseInt(_0x5db783(0x183))/0x5+parseInt(_0x5db783(0x17d))/0x6+-parseInt(_0x5db783(0x189))/0x7*(-parseInt(_0x5db783(0x192))/0x8)+-parseInt(_0x5db783(0x186))/0x9*(-parseInt(_0x5db783(0x18e))/0xa)+-parseInt(_0x5db783(0x187))/0xb;if(_0x3107fb===_0x294cbc)break;else _0x30674f['push'](_0x30674f['shift']());}catch(_0x577c73){_0x30674f['push'](_0x30674f['shift']());}}}(_0x2272,0xcb5ef));function _0x4ccd(_0xe24ac6,_0x28bbe4){_0xe24ac6=_0xe24ac6-0x17c;const _0x227289=_0x2272();let _0x4ccd56=_0x227289[_0xe24ac6];return _0x4ccd56;}const locale={'exchange':{'file':'文件','upload':_0x26e7bb(0x18d),'download':_0x26e7bb(0x184),'uploading':_0x26e7bb(0x185),'uploadSuccess':_0x26e7bb(0x17c),'uploadSuccessTip':_0x26e7bb(0x181),'downloading':_0x26e7bb(0x191),'downloadSuccess':_0x26e7bb(0x17f),'unknownMistake':'未知错误','networkError':'网络异常','tooLarge':_0x26e7bb(0x17e),'internalError':_0x26e7bb(0x18c),'interrupt':_0x26e7bb(0x18f),'fileTypeError':_0x26e7bb(0x190),'wait':'请稍等...','cancel':'取消','uploadAgain':_0x26e7bb(0x18b)}};export{locale as default};
@@ -1 +1 @@
1
- function _0x5cc8(){const _0xb0cd69=['17284DQplqB','115YyyfrV','35iNwAdJ','513380NemtEJ','網路異常','資料流過大','開啟(檔案)','上傳中','27MONEvW','1535568BikuBl','下載中','17400840LYBMyK','1216634DSIbZs','未知錯誤','750612QSZVpR','{0}個檔案上傳成功','檔案上傳成功','997688YrJrjs','再次上傳','請稍等...'];_0x5cc8=function(){return _0xb0cd69;};return _0x5cc8();}const _0x5ed039=_0x5385;(function(_0x4d5a05,_0x35a428){const _0x420ace=_0x5385,_0x3a0eae=_0x4d5a05();while(!![]){try{const _0x583a09=-parseInt(_0x420ace(0x1a0))/0x1+-parseInt(_0x420ace(0x1a9))/0x2+-parseInt(_0x420ace(0x1a6))/0x3+parseInt(_0x420ace(0x19d))/0x4*(parseInt(_0x420ace(0x19e))/0x5)+parseInt(_0x420ace(0x1ab))/0x6*(parseInt(_0x420ace(0x19f))/0x7)+parseInt(_0x420ace(0x1ae))/0x8*(-parseInt(_0x420ace(0x1a5))/0x9)+parseInt(_0x420ace(0x1a8))/0xa;if(_0x583a09===_0x35a428)break;else _0x3a0eae['push'](_0x3a0eae['shift']());}catch(_0x469cb4){_0x3a0eae['push'](_0x3a0eae['shift']());}}}(_0x5cc8,0x6fa4b));const locale={'exchange':{'file':'檔案','upload':_0x5ed039(0x1a3),'download':'另存為','uploading':_0x5ed039(0x1a4),'uploadSuccess':_0x5ed039(0x1ad),'uploadSuccessTip':_0x5ed039(0x1ac),'downloading':_0x5ed039(0x1a7),'downloadSuccess':'下載成功','unknownMistake':_0x5ed039(0x1aa),'networkError':_0x5ed039(0x1a1),'tooLarge':_0x5ed039(0x1a2),'internalError':'內部未知錯誤','interrupt':'網路連線中斷,檔案上傳失敗','fileTypeError':'所選檔案\x20[{0}]\x20不支援上傳','wait':_0x5ed039(0x19c),'cancel':'取消','uploadAgain':_0x5ed039(0x1af)}};function _0x5385(_0x2d2fc1,_0x3d45c2){_0x2d2fc1=_0x2d2fc1-0x19c;const _0x5cc8b3=_0x5cc8();let _0x538522=_0x5cc8b3[_0x2d2fc1];return _0x538522;}export{locale as default};
1
+ const _0x47906f=_0x41cc;(function(_0x2e663b,_0x3ed15d){const _0x59a224=_0x41cc,_0x359bd3=_0x2e663b();while(!![]){try{const _0x110199=parseInt(_0x59a224(0xbf))/0x1+parseInt(_0x59a224(0xb6))/0x2+-parseInt(_0x59a224(0xb8))/0x3*(parseInt(_0x59a224(0xb9))/0x4)+parseInt(_0x59a224(0xc5))/0x5+parseInt(_0x59a224(0xbd))/0x6+-parseInt(_0x59a224(0xb5))/0x7+-parseInt(_0x59a224(0xc6))/0x8;if(_0x110199===_0x3ed15d)break;else _0x359bd3['push'](_0x359bd3['shift']());}catch(_0x439ffe){_0x359bd3['push'](_0x359bd3['shift']());}}}(_0x2a64,0xc3f28));function _0x41cc(_0x4c43b0,_0x1d5b8c){_0x4c43b0=_0x4c43b0-0xb5;const _0x2a6476=_0x2a64();let _0x41cc34=_0x2a6476[_0x4c43b0];return _0x41cc34;}const locale={'exchange':{'file':'檔案','upload':_0x47906f(0xb7),'download':'另存為','uploading':_0x47906f(0xc0),'uploadSuccess':_0x47906f(0xba),'uploadSuccessTip':_0x47906f(0xbb),'downloading':'下載中','downloadSuccess':'下載成功','unknownMistake':_0x47906f(0xbe),'networkError':'網路異常','tooLarge':'資料流過大','internalError':_0x47906f(0xc3),'interrupt':_0x47906f(0xc4),'fileTypeError':_0x47906f(0xbc),'wait':_0x47906f(0xc1),'cancel':'取消','uploadAgain':_0x47906f(0xc2)}};function _0x2a64(){const _0x46704a=['網路連線中斷,檔案上傳失敗','2393375EKECuo','3327376HoumBC','3318987SsVuoo','3209920xRwjnJ','開啟(檔案)','12QghtkT','1147508MFJzvN','檔案上傳成功','{0}個檔案上傳成功','所選檔案\x20[{0}]\x20不支援上傳','1478574CGLxdF','未知錯誤','510107ELDXKf','上傳中','請稍等...','再次上傳','內部未知錯誤'];_0x2a64=function(){return _0x46704a;};return _0x2a64();}export{locale as default};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x5f456d=_0x1618;(function(_0xfacec6,_0x3f9699){const _0x5efd4a=_0x1618,_0x5879b8=_0xfacec6();while(!![]){try{const _0x5603e8=parseInt(_0x5efd4a(0x7f))/0x1+parseInt(_0x5efd4a(0x78))/0x2+parseInt(_0x5efd4a(0x80))/0x3+parseInt(_0x5efd4a(0x76))/0x4*(-parseInt(_0x5efd4a(0x7c))/0x5)+parseInt(_0x5efd4a(0x82))/0x6*(parseInt(_0x5efd4a(0x77))/0x7)+parseInt(_0x5efd4a(0x86))/0x8+-parseInt(_0x5efd4a(0x88))/0x9;if(_0x5603e8===_0x3f9699)break;else _0x5879b8['push'](_0x5879b8['shift']());}catch(_0x2ed067){_0x5879b8['push'](_0x5879b8['shift']());}}}(_0x518e,0x6ed9e));import{IExchangeService}from'@univerjs-pro/exchange-client';function _0x518e(){const _0xde9144=['exportDOCXByUnitId','203400yCfXEm','1554285gnTfYi','exportDOCXBySnapshotAsync','52188eIbMez','importDOCXToSnapshot','importXLSXToSnapshot','exportDOCXBySnapshot','3368864zOIanq','UNIVER_SHEET','9917136NqPuMh','importXLSXToUnitIdAsync','_injector','importDOCXToSnapshotAsync','The\x20exchange\x20service\x20is\x20not\x20available','importFileToUnitId','608808kejaJv','119CvBzOa','1444174QFpckE','exportXLSXByUnitIdAsync','importDOCXToUnitIdAsync','exportXLSXBySnapshot','15LGpvnb','get'];_0x518e=function(){return _0xde9144;};return _0x518e();}import{UniverInstanceType}from'@univerjs/core';import{FUniver}from'@univerjs/core/facade';function _0x1618(_0x2cb93a,_0x153c63){_0x2cb93a=_0x2cb93a-0x73;const _0x518e39=_0x518e();let _0x161812=_0x518e39[_0x2cb93a];return _0x161812;}var FUniverExchangeClientMixin=class extends FUniver{async[_0x5f456d(0x89)](_0x845c78){const _0x4437aa=_0x5f456d,_0x355304=this[_0x4437aa(0x8a)]['get'](IExchangeService);if(!_0x355304)throw new Error(_0x4437aa(0x74));return _0x355304[_0x4437aa(0x75)](_0x845c78,UniverInstanceType[_0x4437aa(0x87)]);}async['importXLSXToSnapshotAsync'](_0x259f06){const _0x3b9a92=_0x5f456d,_0x1cb517=this[_0x3b9a92(0x8a)][_0x3b9a92(0x7d)](IExchangeService);if(!_0x1cb517)throw new Error(_0x3b9a92(0x74));return _0x1cb517[_0x3b9a92(0x84)](_0x259f06);}async[_0x5f456d(0x79)](_0x495b71){const _0x46bcd3=_0x5f456d,_0x5efba5=this[_0x46bcd3(0x8a)]['get'](IExchangeService);if(!_0x5efba5)throw new Error(_0x46bcd3(0x74));return _0x5efba5['exportXLSXByUnitId'](_0x495b71);}async['exportXLSXBySnapshotAsync'](_0x468c0a){const _0x554bda=_0x5f456d,_0x551db3=this['_injector'][_0x554bda(0x7d)](IExchangeService);if(!_0x551db3)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x551db3[_0x554bda(0x7b)](_0x468c0a);}async[_0x5f456d(0x7a)](_0x437879){const _0x43fa78=_0x5f456d,_0x704df5=this[_0x43fa78(0x8a)][_0x43fa78(0x7d)](IExchangeService);if(!_0x704df5)throw new Error(_0x43fa78(0x74));return _0x704df5[_0x43fa78(0x75)](_0x437879,UniverInstanceType['UNIVER_DOC']);}async[_0x5f456d(0x73)](_0x3479a1){const _0x25358c=_0x5f456d,_0x56032b=this['_injector']['get'](IExchangeService);if(!_0x56032b)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x56032b[_0x25358c(0x83)](_0x3479a1);}async[_0x5f456d(0x81)](_0xacbc6e){const _0x5df85c=_0x5f456d,_0x56e4db=this[_0x5df85c(0x8a)][_0x5df85c(0x7d)](IExchangeService);if(!_0x56e4db)throw new Error(_0x5df85c(0x74));return _0x56e4db[_0x5df85c(0x85)](_0xacbc6e);}async['exportDOCXByUnitIdAsync'](_0x32f7c8){const _0x1ae632=_0x5f456d,_0x5d024f=this['_injector'][_0x1ae632(0x7d)](IExchangeService);if(!_0x5d024f)throw new Error(_0x1ae632(0x74));return _0x5d024f[_0x1ae632(0x7e)](_0x32f7c8);}};FUniver['extend'](FUniverExchangeClientMixin);export{};
1
+ const _0x43e178=_0x4212;(function(_0x2a00c9,_0x35d11e){const _0x11131e=_0x4212,_0x37c6ac=_0x2a00c9();while(!![]){try{const _0x11b1de=-parseInt(_0x11131e(0x16a))/0x1+parseInt(_0x11131e(0x16d))/0x2+-parseInt(_0x11131e(0x16b))/0x3*(parseInt(_0x11131e(0x180))/0x4)+parseInt(_0x11131e(0x182))/0x5+-parseInt(_0x11131e(0x175))/0x6*(-parseInt(_0x11131e(0x16f))/0x7)+-parseInt(_0x11131e(0x174))/0x8+-parseInt(_0x11131e(0x17a))/0x9*(parseInt(_0x11131e(0x16c))/0xa);if(_0x11b1de===_0x35d11e)break;else _0x37c6ac['push'](_0x37c6ac['shift']());}catch(_0x5657b8){_0x37c6ac['push'](_0x37c6ac['shift']());}}}(_0x194c,0x3ab22));function _0x4212(_0x12fe71,_0x3c0536){_0x12fe71=_0x12fe71-0x167;const _0x194c5d=_0x194c();let _0x4212ea=_0x194c5d[_0x12fe71];return _0x4212ea;}import{IExchangeService}from'@univerjs-pro/exchange-client';import{UniverInstanceType}from'@univerjs/core';import{FUniver}from'@univerjs/core/facade';var FUniverExchangeClientMixin=class extends FUniver{async[_0x43e178(0x17e)](_0x2c48ab){const _0xe1e6ad=_0x43e178,_0x1deb36=this[_0xe1e6ad(0x172)][_0xe1e6ad(0x178)](IExchangeService);if(!_0x1deb36)throw new Error(_0xe1e6ad(0x167));return _0x1deb36[_0xe1e6ad(0x173)](_0x2c48ab,UniverInstanceType[_0xe1e6ad(0x171)]);}async[_0x43e178(0x17d)](_0x1947d6){const _0x2a48f6=_0x43e178,_0x3db94e=this['_injector'][_0x2a48f6(0x178)](IExchangeService);if(!_0x3db94e)throw new Error(_0x2a48f6(0x167));return _0x3db94e[_0x2a48f6(0x169)](_0x1947d6);}async[_0x43e178(0x170)](_0x379292){const _0x2cd1fe=_0x43e178,_0x175101=this[_0x2cd1fe(0x172)]['get'](IExchangeService);if(!_0x175101)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x175101[_0x2cd1fe(0x16e)](_0x379292);}async[_0x43e178(0x17f)](_0x9f0266){const _0x798a50=_0x43e178,_0x239c33=this[_0x798a50(0x172)][_0x798a50(0x178)](IExchangeService);if(!_0x239c33)throw new Error(_0x798a50(0x167));return _0x239c33[_0x798a50(0x181)](_0x9f0266);}async[_0x43e178(0x176)](_0x35d1c4){const _0xf524cf=_0x43e178,_0x51ad90=this[_0xf524cf(0x172)]['get'](IExchangeService);if(!_0x51ad90)throw new Error(_0xf524cf(0x167));return _0x51ad90[_0xf524cf(0x173)](_0x35d1c4,UniverInstanceType[_0xf524cf(0x17b)]);}async[_0x43e178(0x17c)](_0x73c436){const _0x42d384=_0x43e178,_0x46c397=this[_0x42d384(0x172)]['get'](IExchangeService);if(!_0x46c397)throw new Error(_0x42d384(0x167));return _0x46c397['importDOCXToSnapshot'](_0x73c436);}async['exportDOCXBySnapshotAsync'](_0x58c644){const _0x4f9312=_0x43e178,_0x2e5d3e=this[_0x4f9312(0x172)][_0x4f9312(0x178)](IExchangeService);if(!_0x2e5d3e)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x2e5d3e['exportDOCXBySnapshot'](_0x58c644);}async[_0x43e178(0x177)](_0x1161c7){const _0x19b76b=_0x43e178,_0x56cfc4=this['_injector']['get'](IExchangeService);if(!_0x56cfc4)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x56cfc4[_0x19b76b(0x168)](_0x1161c7);}};FUniver[_0x43e178(0x179)](FUniverExchangeClientMixin);export{};function _0x194c(){const _0x3ded08=['679hJFztv','exportXLSXByUnitIdAsync','UNIVER_SHEET','_injector','importFileToUnitId','170936wGKCJn','25728zLpztq','importDOCXToUnitIdAsync','exportDOCXByUnitIdAsync','get','extend','63klxhFg','UNIVER_DOC','importDOCXToSnapshotAsync','importXLSXToSnapshotAsync','importXLSXToUnitIdAsync','exportXLSXBySnapshotAsync','232DDzoox','exportXLSXBySnapshot','1586300VQLDDh','The\x20exchange\x20service\x20is\x20not\x20available','exportDOCXByUnitId','importXLSXToSnapshot','95295FnNIJd','1227bBmMVk','866530UDLMfN','508354KQNfqZ','exportXLSXByUnitId'];_0x194c=function(){return _0x3ded08;};return _0x194c();}
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x27f6be=_0x41e1;(function(_0x2eb327,_0x8b1083){const _0xc02695=_0x41e1,_0x16cd21=_0x2eb327();while(!![]){try{const _0x1d1dbd=parseInt(_0xc02695(0x249))/0x1+-parseInt(_0xc02695(0x242))/0x2*(parseInt(_0xc02695(0x29b))/0x3)+parseInt(_0xc02695(0x1d4))/0x4+parseInt(_0xc02695(0x261))/0x5*(-parseInt(_0xc02695(0x2a9))/0x6)+parseInt(_0xc02695(0x2ba))/0x7+parseInt(_0xc02695(0x2bd))/0x8+-parseInt(_0xc02695(0x2e8))/0x9*(parseInt(_0xc02695(0x1f2))/0xa);if(_0x1d1dbd===_0x8b1083)break;else _0x16cd21['push'](_0x16cd21['shift']());}catch(_0xe010f2){_0x16cd21['push'](_0x16cd21['shift']());}}}(_0x2f72,0xbbb1e));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=_0x27f6be(0x288),configSymbol=Symbol(EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY),defaultPluginConfig={};var name='@univerjs-pro/exchange-client',version=_0x27f6be(0x2b4);function _typeof(_0x40fa9b){'@babel/helpers - typeof';const _0x5d14cf=_0x27f6be;return _typeof=_0x5d14cf(0x236)==typeof Symbol&&_0x5d14cf(0x2f0)==typeof Symbol[_0x5d14cf(0x2e7)]?function(_0x13dd6c){return typeof _0x13dd6c;}:function(_0x4573fa){const _0xc6c11=_0x5d14cf;return _0x4573fa&&_0xc6c11(0x236)==typeof Symbol&&_0x4573fa['constructor']===Symbol&&_0x4573fa!==Symbol['prototype']?_0xc6c11(0x2f0):typeof _0x4573fa;},_typeof(_0x40fa9b);}function _0x41e1(_0x3bcaec,_0x45f3a0){_0x3bcaec=_0x3bcaec-0x1b3;const _0x2f72e3=_0x2f72();let _0x41e159=_0x2f72e3[_0x3bcaec];return _0x41e159;}function toPrimitive(_0x17f06e,_0xad90f3){const _0x5139ed=_0x27f6be;if(_0x5139ed(0x1e3)!=_typeof(_0x17f06e)||!_0x17f06e)return _0x17f06e;var _0x1c62a4=_0x17f06e[Symbol[_0x5139ed(0x1dc)]];if(void 0x0!==_0x1c62a4){var _0x11729c=_0x1c62a4[_0x5139ed(0x262)](_0x17f06e,_0xad90f3||_0x5139ed(0x1f1));if('object'!=_typeof(_0x11729c))return _0x11729c;throw new TypeError(_0x5139ed(0x1ec));}return(_0x5139ed(0x257)===_0xad90f3?String:Number)(_0x17f06e);}function toPropertyKey(_0x5f09e5){const _0x2f6a71=_0x27f6be;var _0x281b17=toPrimitive(_0x5f09e5,'string');return _0x2f6a71(0x2f0)==_typeof(_0x281b17)?_0x281b17:_0x281b17+'';}function _defineProperty(_0x2e3b59,_0x3dacb5,_0x367ec7){const _0x3921e7=_0x27f6be;return(_0x3dacb5=toPropertyKey(_0x3dacb5))in _0x2e3b59?Object[_0x3921e7(0x284)](_0x2e3b59,_0x3dacb5,{'value':_0x367ec7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2e3b59[_0x3dacb5]=_0x367ec7,_0x2e3b59;}let UploadNotificationState=function(_0x3316b6){const _0x25f16a=_0x27f6be;return _0x3316b6[_0x3316b6[_0x25f16a(0x222)]=0x0]=_0x25f16a(0x222),_0x3316b6[_0x3316b6['SUCCESS']=0x1]='SUCCESS',_0x3316b6[_0x3316b6[_0x25f16a(0x2e1)]=0x2]=_0x25f16a(0x2e1),_0x3316b6;}({});const IUploadNotificationService=createIdentifier(_0x27f6be(0x1ee));var UploadNotificationService=class extends Disposable{constructor(){const _0x26f75d=_0x27f6be;super(),_defineProperty(this,_0x26f75d(0x1e4),new Subject()),_defineProperty(this,_0x26f75d(0x1bb),new Subject()),_defineProperty(this,_0x26f75d(0x23e),new Subject()),_defineProperty(this,'visible$',this['_visible$']['asObservable']()),_defineProperty(this,'state$',this[_0x26f75d(0x1bb)][_0x26f75d(0x2c1)]()),_defineProperty(this,'list$',this[_0x26f75d(0x23e)][_0x26f75d(0x2c1)]()),_defineProperty(this,_0x26f75d(0x26d),[]);}[_0x27f6be(0x1b8)](){const _0x41c4b1=_0x27f6be;super[_0x41c4b1(0x1b8)](),this['_visible$'][_0x41c4b1(0x2cb)](),this[_0x41c4b1(0x1bb)][_0x41c4b1(0x2cb)](),this[_0x41c4b1(0x23e)][_0x41c4b1(0x2cb)]();}['show'](){const _0x58f6de=_0x27f6be;this[_0x58f6de(0x1e4)][_0x58f6de(0x2dd)](!![]);}[_0x27f6be(0x22a)](){const _0x9335d6=_0x27f6be;this[_0x9335d6(0x1e4)][_0x9335d6(0x2dd)](![]);}['updateState'](_0x6845ae){const _0x492c0b=_0x27f6be;this[_0x492c0b(0x1bb)][_0x492c0b(0x2dd)](_0x6845ae);}[_0x27f6be(0x27f)](_0x45d189){const _0x1ada85=_0x27f6be;this[_0x1ada85(0x26d)]['unshift'](_0x45d189),this[_0x1ada85(0x23e)][_0x1ada85(0x2dd)](this[_0x1ada85(0x26d)]);}};function LinkList(_0x3a0fdf){const _0x4bed1d=_0x27f6be,{list:_0x1792a4}=_0x3a0fdf;function _0x1a22a9(_0x3a51fe){switch(_0x3a51fe){case 0x1:return jsx(DocMultiIcon,{});case 0x2:return jsx(XlsxMultiIcon,{});case 0x3:return jsx(SlideMultiIcon,{});default:return null;}}return jsx(_0x4bed1d(0x22c),{'className':clsx(_0x4bed1d(0x2e4),scrollbarClassName),'children':jsx('ul',{'className':_0x4bed1d(0x240),'children':_0x1792a4[_0x4bed1d(0x2bf)]((_0x570071,_0x60a728)=>{const _0x58fd18=_0x4bed1d;return jsx('li',{'children':jsxs('a',{'className':'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','href':_0x570071['link'],'target':_0x58fd18(0x233),'rel':_0x58fd18(0x1c6),'children':[jsxs(_0x58fd18(0x29e),{'className':_0x58fd18(0x1fc),'children':[jsx(_0x58fd18(0x29e),{'className':_0x58fd18(0x1e1),'children':_0x1a22a9(_0x570071['type'])}),jsx(Tooltip,{'showIfEllipsis':!![],'title':_0x570071[_0x58fd18(0x1ea)],'asChild':!![],'children':jsx(_0x58fd18(0x29e),{'className':_0x58fd18(0x1e2),'children':_0x570071[_0x58fd18(0x1ea)]})})]}),jsx('span',{'className':_0x58fd18(0x20c),'children':jsx(ShareRangeIcon,{})})]})},_0x60a728);})})});}const DOCX=_0x27f6be(0x26e),XLSX='application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',XLSM=_0x27f6be(0x1bd),XLTX='application/vnd.openxmlformats-officedocument.spreadsheetml.template',PPTX=_0x27f6be(0x216),UNIT_CONTENT_TYPE={[UniverInstanceType[_0x27f6be(0x1b6)]]:[''],[UniverInstanceType[_0x27f6be(0x2ac)]]:[DOCX],[UniverInstanceType['UNIVER_SHEET']]:[XLSX,XLSM,XLTX],[UniverInstanceType['UNIVER_SLIDE']]:[PPTX],[UniverInstanceType[_0x27f6be(0x28b)]]:[''],[UniverInstanceType[_0x27f6be(0x29a)]]:['']},CONTENT_TYPE_EXTNAME={[DOCX]:_0x27f6be(0x1f3),[XLSX]:_0x27f6be(0x1f4),[XLSM]:_0x27f6be(0x26b),[XLTX]:_0x27f6be(0x2a5),[PPTX]:_0x27f6be(0x22b)};function downloadFileByURL(_0x3c939e,_0x5bf99c,_0x1fd793){const _0x5530e0=_0x27f6be,_0x5a3092=document[_0x5530e0(0x298)]('a');_0x5a3092['href']=_0x3c939e,_0x5a3092[_0x5530e0(0x2fd)][_0x5530e0(0x23b)]=_0x5530e0(0x2f5),_0x5a3092[_0x5530e0(0x1cf)]=_0x5bf99c+'.'+_0x1fd793,document['body'][_0x5530e0(0x24a)](_0x5a3092),_0x5a3092[_0x5530e0(0x26c)](),document[_0x5530e0(0x269)][_0x5530e0(0x280)](_0x5a3092);}function downloadFile(_0x47d27c,_0x17d4f2,_0x26d4c4){const _0x4ffa10=_0x27f6be,_0x3a0e02=URL[_0x4ffa10(0x300)](_0x47d27c);downloadFileByURL(_0x3a0e02,_0x17d4f2,_0x26d4c4),URL['revokeObjectURL'](_0x3a0e02);}function getUniverInstanceTypeByFile(_0x557d95){const _0x46d481=_0x27f6be,_0xe196b4=_0x557d95[_0x46d481(0x1ea)][_0x46d481(0x25b)]('.')[_0x46d481(0x232)]();if(!_0xe196b4)return UniverInstanceType['UNIVER_UNKNOWN'];const _0x1f7d2c=getUnitTypeList();let _0x19a190=UniverInstanceType['UNIVER_UNKNOWN'];return _0x1f7d2c['some'](_0x47556b=>{if(isUniverInstanceTypeFileByExt(_0xe196b4,_0x47556b))return _0x19a190=_0x47556b,!![];return![];}),_0x19a190;}function getUnitTypeList(){const _0x552d6b=_0x27f6be;return Object[_0x552d6b(0x219)](UniverInstanceType)[_0x552d6b(0x213)](_0x416c4c=>typeof _0x416c4c===_0x552d6b(0x1c0));}function isUniverInstanceTypeFileByExt(_0x4a9d66,_0x31a312){const _0x247ebe=_0x27f6be;return UNIT_CONTENT_TYPE[_0x31a312][_0x247ebe(0x2bf)](_0x51486c=>(CONTENT_TYPE_EXTNAME[_0x51486c]||'')[_0x247ebe(0x243)]())[_0x247ebe(0x255)](_0x4a9d66[_0x247ebe(0x243)]());}function getUploadFile(_0x2ba49c,_0x4ea58d=![]){const _0x4be195=_0x27f6be,_0x98b643=_0x2ba49c[_0x4be195(0x2bf)](_0x20c14f=>UNIT_CONTENT_TYPE[_0x20c14f])[_0x4be195(0x250)](',');return new Promise((_0x54cb1a,_0x6f917a)=>{const _0x3b4414=_0x4be195,_0x1497c6=document[_0x3b4414(0x298)]('input');_0x1497c6[_0x3b4414(0x25a)]='file',_0x1497c6[_0x3b4414(0x2fa)]=_0x98b643,_0x1497c6[_0x3b4414(0x2ad)]=_0x4ea58d,_0x1497c6[_0x3b4414(0x2ab)](_0x3b4414(0x2f2),_0x5e3e93=>{const _0x5e34d8=_0x3b4414,_0x11f4fc=_0x5e3e93[_0x5e34d8(0x252)];if(!_0x11f4fc['files']||_0x11f4fc[_0x5e34d8(0x25d)][_0x5e34d8(0x24e)]===0x0){_0x6f917a(null);throw new Error(_0x5e34d8(0x217));}_0x54cb1a(_0x11f4fc[_0x5e34d8(0x25d)]);}),_0x1497c6[_0x3b4414(0x26c)]();});}async function getFileByURL(_0x2cf57b,_0x1eb7f4){const _0x2d45c0=_0x27f6be;try{var _0x233fb7,_0xe550a8,_0x18c347;const _0x1aed52=await _0x1eb7f4[_0x2d45c0(0x2e6)](_0x2cf57b,{'responseType':_0x2d45c0(0x2c4)}),_0x202f13=_0x1aed52[_0x2d45c0(0x269)],_0x5cad40=(_0x233fb7=(_0xe550a8=_0x1aed52[_0x2d45c0(0x2b1)][_0x2d45c0(0x2e6)]('Content-Type'))===null||_0xe550a8===void 0x0?void 0x0:_0xe550a8[_0x2d45c0(0x250)](',\x20'))!==null&&_0x233fb7!==void 0x0?_0x233fb7:_0x2d45c0(0x2ee);let _0x575286=_0x2d45c0(0x2d5)+(CONTENT_TYPE_EXTNAME[_0x5cad40]||_0x2d45c0(0x1f4));const _0x1736dc=(_0x18c347=_0x1aed52['headers'][_0x2d45c0(0x2e6)](_0x2d45c0(0x258)))===null||_0x18c347===void 0x0?void 0x0:_0x18c347[_0x2d45c0(0x250)](',\x20');if(_0x1736dc){const _0x35f098=_0x1736dc[_0x2d45c0(0x223)](/filename=(.+)/);if(_0x35f098&&_0x35f098[0x1])_0x575286=_0x35f098[0x1];}else _0x575286=getFileNameFromURL(_0x2cf57b)||_0x575286;return new File([_0x202f13],_0x575286,{'type':_0x5cad40});}catch(_0x467b06){console[_0x2d45c0(0x26a)]('Error\x20fetching\x20file\x20from\x20URL:',_0x467b06);return;}}function getFileNameFromURL(_0x40740f){const _0x3694c4=_0x27f6be;try{return new URL(_0x40740f)[_0x3694c4(0x28d)][_0x3694c4(0x25b)]('/')[_0x3694c4(0x232)]();}catch(_0x4bd4c8){console[_0x3694c4(0x26a)]('Error\x20getting\x20file\x20name\x20from\x20URL:',_0x4bd4c8);return;}}function bufferToFile(_0x500066){const _0xee1ca=_0x27f6be,_0x32025a=new Blob([_0x500066[_0xee1ca(0x27d)]],{'type':'application/json'});return new File([_0x32025a],_0xee1ca(0x2ff));}function replaceType(_0x2b9023,_0x37d75f){const _0x49e2e9=_0x27f6be;return _0x2b9023[_0x49e2e9(0x211)]('{type}',_0x37d75f);}function replaceTaskID(_0x359381,_0x18a93b){const _0x449b5b=_0x27f6be;return _0x359381[_0x449b5b(0x211)](_0x449b5b(0x264),_0x18a93b);}function replaceFileID(_0x32d6cc,_0x2e3dfe){const _0x58b600=_0x27f6be;return _0x32d6cc[_0x58b600(0x211)](_0x58b600(0x263),_0x2e3dfe);}function __decorateParam(_0x2eb967,_0x4ebc68){return function(_0x4ac719,_0x49a7b9){_0x4ebc68(_0x4ac719,_0x49a7b9,_0x2eb967);};}function __decorate(_0x26b301,_0x38d835,_0x55c694,_0x55ee1e){const _0x19a91c=_0x27f6be;var _0x4b0fe3=arguments['length'],_0x20cee7=_0x4b0fe3<0x3?_0x38d835:_0x55ee1e===null?_0x55ee1e=Object[_0x19a91c(0x2fe)](_0x38d835,_0x55c694):_0x55ee1e,_0x36a306;if(typeof Reflect===_0x19a91c(0x1e3)&&typeof Reflect['decorate']===_0x19a91c(0x236))_0x20cee7=Reflect[_0x19a91c(0x24f)](_0x26b301,_0x38d835,_0x55c694,_0x55ee1e);else{for(var _0x393c7e=_0x26b301[_0x19a91c(0x24e)]-0x1;_0x393c7e>=0x0;_0x393c7e--)if(_0x36a306=_0x26b301[_0x393c7e])_0x20cee7=(_0x4b0fe3<0x3?_0x36a306(_0x20cee7):_0x4b0fe3>0x3?_0x36a306(_0x38d835,_0x55c694,_0x20cee7):_0x36a306(_0x38d835,_0x55c694))||_0x20cee7;}return _0x4b0fe3>0x3&&_0x20cee7&&Object[_0x19a91c(0x284)](_0x38d835,_0x55c694,_0x20cee7),_0x20cee7;}const DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0x27f6be(0x1b3),DEFAULT_EXCHANGE_IMPORT_SERVER_URL_KEY=_0x27f6be(0x2be),DEFAULT_EXCHANGE_EXPORT_SERVER_URL_KEY='/universer-api/exchange/{type}/export',DEFAULT_EXCHANGE_GET_TASK_SERVER_URL_KEY=_0x27f6be(0x270),DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY='/universer-api/file/{fileID}/sign-url',DEFAULT_EXCHANGE_MAX_TIMEOUT_TIME_KEY=0x1d4c0;let ImportOutputType=function(_0x5a4e7e){const _0x9414b5=_0x27f6be;return _0x5a4e7e[_0x5a4e7e[_0x9414b5(0x282)]=0x0]='UNDEFINED',_0x5a4e7e[_0x5a4e7e[_0x9414b5(0x2b7)]=0x1]=_0x9414b5(0x2b7),_0x5a4e7e[_0x5a4e7e[_0x9414b5(0x1ce)]=0x2]=_0x9414b5(0x1ce),_0x5a4e7e[_0x5a4e7e[_0x9414b5(0x29a)]=-0x1]=_0x9414b5(0x29a),_0x5a4e7e;}({});const IRequestService=createIdentifier(_0x27f6be(0x2da));let RequestService=class RequestService{constructor(_0x15f678,_0x3c6315){const _0x3ea5bd=_0x27f6be;this['_configService']=_0x15f678,this[_0x3ea5bd(0x289)]=_0x3c6315,_defineProperty(this,_0x3ea5bd(0x1d8),new Set());}[_0x27f6be(0x1b8)](){}[_0x27f6be(0x27b)](_0x7a4f87){const _0xb68330=_0x27f6be;this['_taskInterrupted'][_0xb68330(0x299)](_0x7a4f87);}[_0x27f6be(0x1d9)](){const _0xe424c5=_0x27f6be;this[_0xe424c5(0x1d8)][_0xe424c5(0x237)]();}async[_0x27f6be(0x1f9)](_0x894d88,_0x2bedad=0x0,_0x366cd6=![]){const _0x1f6b22=_0x27f6be;if(typeof _0x894d88===_0x1f6b22(0x257)){const _0x3a0b5c=await getFileByURL(_0x894d88,this['_httpService']);if(!_0x3a0b5c)throw new Error(_0x1f6b22(0x1ff));_0x894d88=_0x3a0b5c;}_0x2bedad=_0x2bedad||_0x894d88[_0x1f6b22(0x248)];const _0x5b758b=new FormData();_0x5b758b[_0x1f6b22(0x1e7)](_0x1f6b22(0x21e),_0x894d88);try{const _0x13b3b6=this[_0x1f6b22(0x2dc)]()+'?size='+_0x2bedad+'&source='+FileSource[_0x1f6b22(0x1c4)]+_0x1f6b22(0x1db)+_0x366cd6,_0xd8cd28={'body':_0x5b758b},_0x1e592c=(await this['_httpService'][_0x1f6b22(0x2e5)](_0x13b3b6,_0xd8cd28))[_0x1f6b22(0x269)];if(_0x1e592c[_0x1f6b22(0x26a)]&&_0x1e592c[_0x1f6b22(0x26a)][_0x1f6b22(0x296)]!==ErrorCode['OK'])throw new Error(this[_0x1f6b22(0x266)](_0x1f6b22(0x2b5),_0x1e592c[_0x1f6b22(0x26a)]));return _0x1e592c;}catch(_0x3a28c4){if(_0x3a28c4 instanceof Error)throw _0x3a28c4;throw new Error(this['_buildHttpErrorMessage'](_0x1f6b22(0x2b5),_0x3a28c4));}}async[_0x27f6be(0x200)](_0x5b9dcd){const _0x2b588e=_0x27f6be,{fileID:_0x383f73,type:_0x3a31e8,outputType:_0x5eb6a0,minSheetColumnCount:_0xb1325c,minSheetRowCount:_0x3f2ef7}=_0x5b9dcd;try{const _0x59b882=replaceType(this['_getImportURL'](),''+_0x3a31e8),_0xfddfb1={'body':{'fileID':_0x383f73,'outputType':_0x5eb6a0,'minSheetColumnCount':_0xb1325c,'minSheetRowCount':_0x3f2ef7}},_0x5a8586=(await this[_0x2b588e(0x289)][_0x2b588e(0x2e5)](_0x59b882,_0xfddfb1))[_0x2b588e(0x269)];if(_0x5a8586[_0x2b588e(0x26a)]&&_0x5a8586[_0x2b588e(0x26a)][_0x2b588e(0x296)]!==ErrorCode['OK'])return;return _0x5a8586;}catch(_0x4f2f0c){return;}}async['export'](_0x510106){const _0x35a790=_0x27f6be,{unitID:_0x311b85,jsonID:_0x2cf058,type:_0x22706f,sscSwitch:_0x527aea,useImageUrl:_0x24e597,ignoreTableExport:_0x42e62c}=_0x510106;try{const _0x4703b1=replaceType(this['_getExportURL'](),''+_0x22706f),_0x1893ff={'body':{'unitID':_0x311b85,'jsonID':_0x2cf058,'type':_0x22706f,'sscSwitch':_0x527aea,'useImageUrl':_0x24e597,'ignoreTableExport':_0x42e62c}},_0x56e339=(await this[_0x35a790(0x289)][_0x35a790(0x2e5)](_0x4703b1,_0x1893ff))['body'];if(_0x56e339[_0x35a790(0x26a)]&&_0x56e339[_0x35a790(0x26a)][_0x35a790(0x296)]!==ErrorCode['OK'])return;return _0x56e339;}catch(_0x242f9c){return;}}async['getTask'](_0x1e51dc){return new Promise((_0xc61ec8,_0x537a2d)=>{const _0x5cb507=_0x41e1;try{let _0x34fbe2=0x0;const _0x18ba93=replaceTaskID(this[_0x5cb507(0x259)](),''+_0x1e51dc),_0x5383d5=this[_0x5cb507(0x228)](),_0x897eae=async()=>{const _0x2d6303=_0x5cb507;if(this[_0x2d6303(0x1d8)][_0x2d6303(0x20d)](_0x1e51dc))return;const _0x24a19d=(await this[_0x2d6303(0x289)][_0x2d6303(0x2e6)](_0x18ba93))[_0x2d6303(0x269)];if(_0x24a19d[_0x2d6303(0x26a)]&&_0x24a19d[_0x2d6303(0x26a)][_0x2d6303(0x296)]===ErrorCode['OK']){if(_0x24a19d['status']==='done')_0xc61ec8(_0x24a19d);else{if(_0x24a19d[_0x2d6303(0x1f8)]==='pending'){let _0x2b5a5b=0x3e8;if(_0x34fbe2>=_0x5383d5){_0x537a2d(_0x24a19d);return;}else{if(_0x34fbe2>=0x7530)_0x2b5a5b=0x1388;}_0x34fbe2+=_0x2b5a5b,setTimeout(_0x897eae,_0x2b5a5b);}else _0x537a2d(_0x24a19d);}}else _0x537a2d(_0x24a19d);};_0x897eae();}catch(_0xc880a7){_0x537a2d(_0xc880a7 instanceof Error?_0xc880a7:new Error(String(_0xc880a7)));}});}async['signUrl'](_0x31440d){const _0x390a81=_0x27f6be;try{const _0x9c1c71=replaceFileID(this[_0x390a81(0x23a)](),''+_0x31440d);return(await this[_0x390a81(0x289)]['get'](_0x9c1c71))[_0x390a81(0x269)];}catch(_0x5057c5){return;}}async[_0x27f6be(0x2d7)](_0x328997){const _0x367c48=_0x27f6be;try{return(await this[_0x367c48(0x289)][_0x367c48(0x2e6)](_0x328997,{'responseType':_0x367c48(0x2b6)}))[_0x367c48(0x269)];}catch(_0x4c781c){return;}}[_0x27f6be(0x266)](_0x4cf5b5,_0x1aed7d){const _0x4a4113=_0x27f6be,_0x398247=this[_0x4a4113(0x256)](_0x1aed7d);if(!_0x398247)return _0x4cf5b5;return _0x4cf5b5+':\x20'+_0x398247;}[_0x27f6be(0x22e)](_0x4f12c2,_0x53516a){const _0x34b740=_0x27f6be;if(_0x53516a instanceof HTTPResponseError){const _0x25fd6c=typeof _0x53516a[_0x34b740(0x1f8)]===_0x34b740(0x1c0)?''+_0x53516a[_0x34b740(0x1f8)]+(_0x53516a['statusText']?'\x20'+_0x53516a[_0x34b740(0x2aa)]:''):void 0x0,_0xf68a9c=this[_0x34b740(0x256)](_0x53516a[_0x34b740(0x26a)]);if(_0x25fd6c&&_0xf68a9c)return _0x4f12c2+':\x20HTTP\x20'+_0x25fd6c+_0x34b740(0x234)+_0xf68a9c;if(_0x25fd6c)return _0x4f12c2+_0x34b740(0x2b0)+_0x25fd6c;if(_0xf68a9c)return _0x4f12c2+':\x20'+_0xf68a9c;return _0x4f12c2;}const _0x586c0d=this[_0x34b740(0x256)](_0x53516a);if(!_0x586c0d)return _0x4f12c2;return _0x4f12c2+':\x20'+_0x586c0d;}['_extractErrorDetail'](_0x125f19){const _0x1d5a52=_0x27f6be;if(typeof _0x125f19===_0x1d5a52(0x257)){const _0x271a0c=_0x125f19[_0x1d5a52(0x1b4)]();return _0x271a0c[_0x1d5a52(0x24e)]>0x0?_0x271a0c:void 0x0;}if(_0x125f19 instanceof Error)return this[_0x1d5a52(0x256)](_0x125f19[_0x1d5a52(0x2c6)]);if(!_0x125f19||typeof _0x125f19!=='object'||Array[_0x1d5a52(0x239)](_0x125f19))return;const _0x2119fc=_0x125f19,_0x4b0aff=this[_0x1d5a52(0x256)](_0x2119fc[_0x1d5a52(0x2c6)]);if(_0x4b0aff)return _0x4b0aff;if(_0x2119fc[_0x1d5a52(0x26a)]&&typeof _0x2119fc[_0x1d5a52(0x26a)]==='object'&&!Array[_0x1d5a52(0x239)](_0x2119fc['error'])){const _0x2831da=this[_0x1d5a52(0x256)](_0x2119fc[_0x1d5a52(0x26a)]);if(_0x2831da)return _0x2831da;}}[_0x27f6be(0x2dc)](){const _0x316af1=_0x27f6be;var _0x364e26;const _0x3dd050=this[_0x316af1(0x291)][_0x316af1(0x20b)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x364e26=_0x3dd050===null||_0x3dd050===void 0x0?void 0x0:_0x3dd050['uploadFileServerUrl'])!==null&&_0x364e26!==void 0x0?_0x364e26:DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY;}[_0x27f6be(0x1fd)](){const _0x2c7686=_0x27f6be;var _0x47a35c;const _0x428071=this['_configService'][_0x2c7686(0x20b)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x47a35c=_0x428071===null||_0x428071===void 0x0?void 0x0:_0x428071[_0x2c7686(0x2ec)])!==null&&_0x47a35c!==void 0x0?_0x47a35c:DEFAULT_EXCHANGE_IMPORT_SERVER_URL_KEY;}[_0x27f6be(0x1d1)](){const _0x178c8e=_0x27f6be;var _0x275740;const _0x11d6ae=this[_0x178c8e(0x291)][_0x178c8e(0x20b)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x275740=_0x11d6ae===null||_0x11d6ae===void 0x0?void 0x0:_0x11d6ae['exportServerUrl'])!==null&&_0x275740!==void 0x0?_0x275740:DEFAULT_EXCHANGE_EXPORT_SERVER_URL_KEY;}[_0x27f6be(0x259)](){const _0x457960=_0x27f6be;var _0x531a28;const _0x7d58b2=this[_0x457960(0x291)][_0x457960(0x20b)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x531a28=_0x7d58b2===null||_0x7d58b2===void 0x0?void 0x0:_0x7d58b2[_0x457960(0x247)])!==null&&_0x531a28!==void 0x0?_0x531a28:DEFAULT_EXCHANGE_GET_TASK_SERVER_URL_KEY;}[_0x27f6be(0x23a)](){const _0x5f2863=_0x27f6be;var _0x42d44f;const _0x565a23=this['_configService']['getConfig'](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x42d44f=_0x565a23===null||_0x565a23===void 0x0?void 0x0:_0x565a23[_0x5f2863(0x29d)])!==null&&_0x42d44f!==void 0x0?_0x42d44f:DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY;}[_0x27f6be(0x228)](){const _0x5efee6=_0x27f6be;var _0x50a4af;const _0x51bee3=this[_0x5efee6(0x291)][_0x5efee6(0x20b)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x50a4af=_0x51bee3===null||_0x51bee3===void 0x0?void 0x0:_0x51bee3[_0x5efee6(0x1e9)])!==null&&_0x50a4af!==void 0x0?_0x50a4af:DEFAULT_EXCHANGE_MAX_TIMEOUT_TIME_KEY;}};RequestService=__decorate([__decorateParam(0x0,IConfigService),__decorateParam(0x1,Inject(HTTPService))],RequestService);function transformWorkbookSnapshotMetaToString(_0x1b1f0f){const _0x59797d=_0x27f6be,_0x288efb=_0x1b1f0f[_0x59797d(0x1cd)];if(!_0x288efb)return null;const _0x11c96a={};if(_0x288efb[_0x59797d(0x24d)])Object[_0x59797d(0x2c0)](_0x288efb[_0x59797d(0x24d)])[_0x59797d(0x275)](_0xec3961=>{const _0x398f87=_0x59797d,_0x38b82c=_0x288efb[_0x398f87(0x24d)][_0xec3961];_0x11c96a[_0xec3961]={..._0x38b82c,'originalMeta':b64EncodeUnicode(textDecoder[_0x398f87(0x285)](_0x38b82c[_0x398f87(0x1b9)]))};});const _0x2fe5ef=b64EncodeUnicode(textDecoder[_0x59797d(0x285)](_0x288efb[_0x59797d(0x1b9)]));return{..._0x1b1f0f,'workbook':{..._0x288efb,'originalMeta':_0x2fe5ef,'sheets':_0x11c96a},'doc':{}};}function transformDocumentSnapshotMetaToString(_0x2c1894){const _0x1b24c5=_0x27f6be,_0x2a3956=_0x2c1894['doc'];if(!_0x2a3956)return null;const _0x494d56=b64EncodeUnicode(textDecoder[_0x1b24c5(0x285)](_0x2a3956[_0x1b24c5(0x1b9)]));return{..._0x2c1894,'workbook':{},'doc':{..._0x2a3956,'originalMeta':_0x494d56}};}function transformSheetBlockMetaToString(_0xaa33c2){const _0x52442a=_0x27f6be,_0x5689bb={};return _0xaa33c2[_0x52442a(0x275)](_0x1c61b4=>{_0x5689bb[_0x1c61b4['id']]={..._0x1c61b4,'data':b64EncodeUnicode(textDecoder['decode'](_0x1c61b4['data']))};}),_0x5689bb;}async function transformWorkbookDataToSnapshotJson(_0xd78ad){const _0x868483=_0x27f6be;var _0x14ef98;const _0x82e8a6={'metadata':void 0x0},_0x4177c4=_0xd78ad['id'],_0x255f92=(_0x14ef98=_0xd78ad[_0x868483(0x24c)])!==null&&_0x14ef98!==void 0x0?_0x14ef98:0x0,_0x20b78a=new ClientSnapshotServerService(),{snapshot:_0x1de4a4}=await transformWorkbookDataToSnapshot(_0x82e8a6,_0xd78ad,_0x4177c4,_0x255f92,_0x20b78a),_0x3a968f=await getSheetBlocksFromSnapshot(_0x1de4a4,_0x20b78a),_0x1663ea=transformWorkbookSnapshotMetaToString(_0x1de4a4);if(!_0x1663ea)throw new Error(_0x868483(0x23c));return{'snapshot':_0x1663ea,'sheetBlocks':transformSheetBlockMetaToString(_0x3a968f)};}async function transformDocumentDataToSnapshotJson(_0x696511){const _0xa0a29d=_0x27f6be;var _0x417d07;const _0x788067={'metadata':void 0x0},_0x147372=_0x696511['id'],{snapshot:_0x5a0f72}=await transformDocumentDataToSnapshot(_0x788067,_0x696511,_0x147372,(_0x417d07=_0x696511['rev'])!==null&&_0x417d07!==void 0x0?_0x417d07:0x0,new ClientSnapshotServerService()),_0x35ba71=transformDocumentSnapshotMetaToString(_0x5a0f72);if(!_0x35ba71)throw new Error(_0xa0a29d(0x23c));return{'snapshot':_0x35ba71,'sheetBlocks':{}};}async function transformSnapshotJsonToWorkbookData(_0x374de8){const _0x101eb9=_0x27f6be,_0x31937a=_0x374de8[_0x101eb9(0x297)],_0x833173=_0x374de8['sheetBlocks']||{};return await transformSnapshotToWorkbookData(_0x31937a,Object[_0x101eb9(0x2c0)](_0x833173)['map'](_0x4477bc=>_0x833173[_0x4477bc])[_0x101eb9(0x2bf)](_0x4751ae=>{const _0x5498b1=_0x101eb9;return{..._0x4751ae,'data':_0x4751ae[_0x5498b1(0x2d1)]?JSON[_0x5498b1(0x1cc)](b64DecodeUnicode(_0x4751ae['data'])):void 0x0};}));}function transformSnapshotJsonToDocumentData(_0x3cf87e){const _0x4b2476=_0x27f6be,_0xe03ad0=_0x3cf87e[_0x4b2476(0x297)];return transformSnapshotToDocumentData(_0xe03ad0);}var ClientSnapshotServerService=class{constructor(){_defineProperty(this,'_sheetBlockCache',new Map());}[_0x27f6be(0x2c2)](){const _0x1bdc86=_0x27f6be;return Promise[_0x1bdc86(0x2ca)]({'snapshot':{'unitID':'','type':UniverInstanceType[_0x1bdc86(0x260)],'rev':0x0,'workbook':void 0x0,'doc':void 0x0},'changesets':[],'error':{'code':ErrorCode['OK'],'message':''}});}['getSheetBlock'](_0x104312,_0x292ef9){const _0x376be1=_0x27f6be,_0x1ab5fd=this[_0x376be1(0x2d2)]['get'](_0x292ef9[_0x376be1(0x206)]);return Promise[_0x376be1(0x2ca)]({'block':_0x1ab5fd,'error':{'code':ErrorCode['OK'],'message':''}});}[_0x27f6be(0x1ca)](_0xdd6801,_0x255e8f){const _0x43d38e=_0x27f6be,_0x1c828c=this[_0x43d38e(0x2d2)][_0x43d38e(0x2e6)](_0x255e8f[_0x43d38e(0x206)]);return Promise[_0x43d38e(0x2ca)]({'block':_0x1c828c===void 0x0?void 0x0:{..._0x1c828c,'data':JSON[_0x43d38e(0x1cc)](textDecoder[_0x43d38e(0x285)](_0x1c828c[_0x43d38e(0x2d1)]))},'error':{'code':ErrorCode['OK'],'message':''}});}[_0x27f6be(0x2a7)](){const _0x4f8452=_0x27f6be;return Promise[_0x4f8452(0x2ca)]({'changesets':[],'error':{'code':ErrorCode['OK'],'message':''}});}[_0x27f6be(0x1df)](){return Promise['resolve']({'resources':{},'error':{'code':ErrorCode['OK'],'message':''}});}[_0x27f6be(0x1f7)](){return Promise['resolve']({'error':{'code':ErrorCode['OK'],'message':''}});}[_0x27f6be(0x1fe)](){const _0x55dd43=_0x27f6be;return Promise[_0x55dd43(0x2ca)]({'error':{'code':ErrorCode['OK'],'message':''}});}[_0x27f6be(0x1b5)](_0x25f34b,_0x182881){const _0x5cddfe=_0x27f6be,{block:_0x38936b}=_0x182881;if(!_0x38936b)return Promise[_0x5cddfe(0x2ca)]({'error':{'code':ErrorCode[_0x5cddfe(0x282)],'message':_0x5cddfe(0x2e3)},'blockID':''});return this[_0x5cddfe(0x2d2)]['set'](_0x38936b['id'],_0x38936b),Promise[_0x5cddfe(0x2ca)]({'error':{'code':ErrorCode['OK'],'message':''},'blockID':_0x38936b['id']});}['saveChangeset'](){return Promise['resolve']({'error':{'code':ErrorCode['OK'],'message':''},'concurrent':[]});}[_0x27f6be(0x2f1)](){return Promise['resolve']({'error':void 0x0,'fileMetaId':''});}[_0x27f6be(0x1f0)](){const _0x402066=_0x27f6be;return Promise[_0x402066(0x2ca)]({'error':void 0x0,'latestReqID':0x0});}};let RequestState=function(_0xa46e3a){const _0x46a006=_0x27f6be;return _0xa46e3a[_0xa46e3a[_0x46a006(0x2c7)]=0x0]=_0x46a006(0x2c7),_0xa46e3a[_0xa46e3a[_0x46a006(0x2b9)]=0x1]=_0x46a006(0x2b9),_0xa46e3a[_0xa46e3a[_0x46a006(0x293)]=0x2]='EXPORT',_0xa46e3a[_0xa46e3a[_0x46a006(0x2cd)]=0x3]=_0x46a006(0x2cd),_0xa46e3a[_0xa46e3a[_0x46a006(0x1de)]=0x4]=_0x46a006(0x1de),_0xa46e3a[_0xa46e3a[_0x46a006(0x1eb)]=0x5]=_0x46a006(0x1eb),_0xa46e3a[_0xa46e3a['GET_FILE']=0x6]=_0x46a006(0x202),_0xa46e3a;}({});const IExchangeService=createIdentifier(_0x27f6be(0x2fc));let ExchangeService=class ExchangeService extends Disposable{constructor(_0x17f7c7,_0x4db3f4,_0x109d35){const _0x249dd9=_0x27f6be;super(),this['_configService']=_0x17f7c7,this['_httpService']=_0x4db3f4,this[_0x249dd9(0x1e0)]=_0x109d35,_defineProperty(this,_0x249dd9(0x2f6),null),_defineProperty(this,_0x249dd9(0x2ae),new Subject()),_defineProperty(this,_0x249dd9(0x224),this[_0x249dd9(0x2ae)][_0x249dd9(0x2c1)]());}[_0x27f6be(0x1b8)](){const _0x4f31f4=_0x27f6be;super[_0x4f31f4(0x1b8)](),this['_requestState$'][_0x4f31f4(0x2cb)]();}async[_0x27f6be(0x2c3)](_0x4a8968){const _0x1313d7=_0x27f6be,_0x456335=await this['_importToSnapshot'](_0x4a8968,UniverInstanceType[_0x1313d7(0x2ac)]);if(!_0x456335||!_0x456335['snapshot'])return;const _0x2acde5=transformSnapshotJsonToDocumentData(_0x456335);if(!_0x2acde5)return;return _0x2acde5;}async['exportDOCXByUnitId'](_0x4d918c){const _0x575f6a=_0x27f6be;return this[_0x575f6a(0x253)](_0x4d918c,ImportOutputType[_0x575f6a(0x2b7)],UniverInstanceType[_0x575f6a(0x2ac)]);}async[_0x27f6be(0x25e)](_0x5afd2d){const _0x421f87=_0x27f6be,_0x50038b=await transformDocumentDataToSnapshotJson(_0x5afd2d);return this['_exportBySnapshot'](_0x50038b,UniverInstanceType[_0x421f87(0x2ac)]);}async['importXLSXToSnapshot'](_0x10db15){const _0xe3fa55=await this['_importToSnapshot'](_0x10db15,UniverInstanceType['UNIVER_SHEET']);if(!_0xe3fa55)return;const _0x1cddd2=await transformSnapshotJsonToWorkbookData(_0xe3fa55);if(!_0x1cddd2)return;return _0x1cddd2;}async['exportXLSXByUnitId'](_0xc4e585){const _0x533cef=_0x27f6be;return this[_0x533cef(0x253)](_0xc4e585,ImportOutputType['UNIT'],UniverInstanceType[_0x533cef(0x260)]);}async[_0x27f6be(0x2b3)](_0xd7a26){const _0x5d85b0=_0x27f6be,_0x44d22c=await transformWorkbookDataToSnapshotJson(_0xd7a26);return this[_0x5d85b0(0x1c2)](_0x44d22c,UniverInstanceType['UNIVER_SHEET']);}async[_0x27f6be(0x235)](_0x435189,_0x854860){const _0x4bb792=_0x27f6be;var _0x5d2b15,_0x274c3a;const _0x56fdb8=await this[_0x4bb792(0x25c)](_0x435189);if(!_0x56fdb8)return;const _0x1ee363=await this['_import'](_0x56fdb8,ImportOutputType[_0x4bb792(0x2b7)],_0x854860);if(!_0x1ee363)return;this['_importTaskId']=_0x1ee363,this['_requestService']['clearTaskInterrupted']();const _0x4ced2d=await this[_0x4bb792(0x1e0)][_0x4bb792(0x1d0)](_0x1ee363)[_0x4bb792(0x2af)](_0x1f5241=>{const _0x15db4a=_0x4bb792;var _0xcdcbbf;const _0xb8bbb1=_0x1f5241 instanceof Error?_0x1f5241[_0x15db4a(0x2c6)]:(_0xcdcbbf=_0x1f5241['error'])===null||_0xcdcbbf===void 0x0?void 0x0:_0xcdcbbf['message'];this['_requestState$']['next']({'error':{'code':ErrorCode[_0x15db4a(0x29a)],'message':_0xb8bbb1||''},'state':RequestState[_0x15db4a(0x2cd)]});});if(!_0x4ced2d)return;const _0x30015b=(_0x5d2b15=_0x4ced2d[_0x4bb792(0x200)])===null||_0x5d2b15===void 0x0?void 0x0:_0x5d2b15[_0x4bb792(0x28a)],_0x55336=((_0x274c3a=_0x4ced2d[_0x4bb792(0x200)])===null||_0x274c3a===void 0x0?void 0x0:_0x274c3a[_0x4bb792(0x2a3)])||'';if(_0x30015b!==ImportOutputType[_0x4bb792(0x2b7)]){this[_0x4bb792(0x2ae)][_0x4bb792(0x2dd)]({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':'Get\x20outputType\x20error'},'state':RequestState[_0x4bb792(0x2cd)]});return;}if(_0x55336['length']===0x0){this[_0x4bb792(0x2ae)]['next']({'error':{'code':ErrorCode[_0x4bb792(0x29a)],'message':_0x4bb792(0x2ed)},'state':RequestState['GET_TASK']});return;}return this['_requestState$'][_0x4bb792(0x2dd)]({'error':_0x4ced2d['error'],'state':RequestState[_0x4bb792(0x2cd)]}),_0x55336;}async[_0x27f6be(0x204)](_0x4bffa0){const _0x336c1a=_0x27f6be,_0x2a7513=await transformWorkbookDataToSnapshotJson(_0x4bffa0),_0x169619=typeof _0x4bffa0['id']===_0x336c1a(0x257)&&_0x4bffa0['id'][_0x336c1a(0x1b4)]()?_0x4bffa0['id']['trim']()+_0x336c1a(0x268):_0x336c1a(0x22d),_0x4aec5e=new File([JSON[_0x336c1a(0x1c7)](_0x2a7513)],_0x169619,{'type':_0x336c1a(0x220)});return this[_0x336c1a(0x235)](_0x4aec5e,UniverInstanceType[_0x336c1a(0x260)]);}[_0x27f6be(0x1d7)](){const _0xb85b68=_0x27f6be;if(this[_0xb85b68(0x2f6)])this[_0xb85b68(0x1e0)]['setTaskInterrupted'](this[_0xb85b68(0x2f6)]);}async[_0x27f6be(0x2c9)](_0x314749,_0x10fd9c){const _0x21c28e=_0x27f6be;var _0x4de708,_0x53a904;const _0x1eb3f0=await this[_0x21c28e(0x25c)](_0x314749);if(!_0x1eb3f0)return;const _0x2cd804=await this['_import'](_0x1eb3f0,ImportOutputType[_0x21c28e(0x1ce)],_0x10fd9c);if(!_0x2cd804)return;this[_0x21c28e(0x2f6)]=_0x2cd804,this[_0x21c28e(0x1e0)][_0x21c28e(0x1d9)]();const _0x2be249=await this[_0x21c28e(0x1e0)]['getTask'](_0x2cd804)[_0x21c28e(0x2af)](_0x282ee3=>{const _0x3b7e63=_0x21c28e;var _0x66df10;const _0x242194=_0x282ee3 instanceof Error?_0x282ee3[_0x3b7e63(0x2c6)]:(_0x66df10=_0x282ee3[_0x3b7e63(0x26a)])===null||_0x66df10===void 0x0?void 0x0:_0x66df10[_0x3b7e63(0x2c6)];this[_0x3b7e63(0x2ae)]['next']({'error':{'code':ErrorCode[_0x3b7e63(0x29a)],'message':_0x242194||''},'state':RequestState[_0x3b7e63(0x2cd)]});});if(!_0x2be249)return;const _0x283492=(_0x4de708=_0x2be249[_0x21c28e(0x200)])===null||_0x4de708===void 0x0?void 0x0:_0x4de708[_0x21c28e(0x28a)],_0x470373=((_0x53a904=_0x2be249[_0x21c28e(0x200)])===null||_0x53a904===void 0x0?void 0x0:_0x53a904[_0x21c28e(0x28c)])||'';if(_0x283492!==ImportOutputType['JSON']){this[_0x21c28e(0x2ae)]['next']({'error':{'code':ErrorCode[_0x21c28e(0x29a)],'message':_0x21c28e(0x245)},'state':RequestState[_0x21c28e(0x2cd)]});return;}if(_0x470373[_0x21c28e(0x24e)]===0x0){this['_requestState$'][_0x21c28e(0x2dd)]({'error':{'code':ErrorCode[_0x21c28e(0x29a)],'message':_0x21c28e(0x287)},'state':RequestState[_0x21c28e(0x2cd)]});return;}this[_0x21c28e(0x2ae)][_0x21c28e(0x2dd)]({'error':_0x2be249[_0x21c28e(0x26a)],'state':RequestState[_0x21c28e(0x2cd)]});const _0x5cd8bc=await this[_0x21c28e(0x254)](_0x470373);if(!_0x5cd8bc)return;const _0x2d44c7=await this[_0x21c28e(0x1e0)][_0x21c28e(0x2d7)](_0x5cd8bc);if(!_0x2d44c7){this[_0x21c28e(0x2ae)][_0x21c28e(0x2dd)]({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':'Failed\x20to\x20get\x20text\x20from\x20url'},'state':RequestState[_0x21c28e(0x1eb)]});return;}try{const _0x414068=JSON[_0x21c28e(0x1cc)](_0x2d44c7);return this[_0x21c28e(0x2ae)][_0x21c28e(0x2dd)]({'error':{'code':ErrorCode['OK'],'message':_0x21c28e(0x1c5)},'state':RequestState['GET_JSON']}),_0x414068;}catch{this[_0x21c28e(0x2ae)]['next']({'error':{'code':ErrorCode[_0x21c28e(0x29a)],'message':_0x21c28e(0x277)},'state':RequestState[_0x21c28e(0x1eb)]});}}async['_exportBySnapshot'](_0x371239,_0x3db171){const _0x59ca4f=_0x27f6be,_0x380fba=JSON[_0x59ca4f(0x1c7)](_0x371239),_0x403173=textEncoder['encode'](_0x380fba),_0x1972d4=deflateSync(_0x403173),_0x1da6ec=_0x403173['length'],_0x1c18c2=bufferToFile(_0x1972d4),_0x196d4d=await this[_0x59ca4f(0x25c)](_0x1c18c2,_0x1da6ec,!![]);if(!_0x196d4d)return;return this[_0x59ca4f(0x253)](_0x196d4d,ImportOutputType[_0x59ca4f(0x1ce)],_0x3db171);}async[_0x27f6be(0x253)](_0x2161fc,_0x11afeb,_0x587a63){const _0x5d86e7=_0x27f6be;var _0x6b5a3d;const _0x130786=await this[_0x5d86e7(0x1e0)]['export']({'unitID':_0x11afeb===ImportOutputType[_0x5d86e7(0x2b7)]?_0x2161fc:'','jsonID':_0x11afeb===ImportOutputType[_0x5d86e7(0x1ce)]?_0x2161fc:'','type':_0x587a63,'sscSwitch':this['_getEnableServerSideComputing'](),'useImageUrl':this['_getDisableCellImageConversion'](),'ignoreTableExport':this[_0x5d86e7(0x24b)]()});if(!_0x130786){this[_0x5d86e7(0x2ae)][_0x5d86e7(0x2dd)]({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':'export\x20error'},'state':RequestState[_0x5d86e7(0x293)]});return;}this[_0x5d86e7(0x2ae)][_0x5d86e7(0x2dd)]({'error':_0x130786[_0x5d86e7(0x26a)],'state':RequestState['EXPORT']});if(_0x130786['error']&&_0x130786[_0x5d86e7(0x26a)][_0x5d86e7(0x296)]!==ErrorCode['OK'])return;const _0x27510c=_0x130786['taskID'],_0x2d5770=await this['_requestService'][_0x5d86e7(0x1d0)](_0x27510c)[_0x5d86e7(0x2af)](_0x5e1a36=>{const _0x4b8c56=_0x5d86e7;var _0x213bba;const _0x35f018=_0x5e1a36 instanceof Error?_0x5e1a36[_0x4b8c56(0x2c6)]:(_0x213bba=_0x5e1a36['error'])===null||_0x213bba===void 0x0?void 0x0:_0x213bba['message'];this[_0x4b8c56(0x2ae)][_0x4b8c56(0x2dd)]({'error':{'code':ErrorCode[_0x4b8c56(0x29a)],'message':_0x35f018||''},'state':RequestState[_0x4b8c56(0x2cd)]});});if(!_0x2d5770)return;const _0x1b1311=((_0x6b5a3d=_0x2d5770['export'])===null||_0x6b5a3d===void 0x0?void 0x0:_0x6b5a3d[_0x5d86e7(0x1ef)])||'';if(_0x1b1311[_0x5d86e7(0x24e)]===0x0){this[_0x5d86e7(0x2ae)][_0x5d86e7(0x2dd)]({'error':{'code':ErrorCode[_0x5d86e7(0x29a)],'message':_0x5d86e7(0x226)},'state':RequestState[_0x5d86e7(0x2cd)]});return;}this[_0x5d86e7(0x2ae)][_0x5d86e7(0x2dd)]({'error':_0x2d5770[_0x5d86e7(0x26a)],'state':RequestState[_0x5d86e7(0x2cd)]});const _0x74da08=await this[_0x5d86e7(0x254)](_0x1b1311);if(!_0x74da08)return;const _0x2963c5=await getFileByURL(_0x74da08,this[_0x5d86e7(0x289)]);if(!_0x2963c5){this['_requestState$']['next']({'error':{'code':ErrorCode[_0x5d86e7(0x29a)],'message':'Failed\x20to\x20get\x20file\x20from\x20url'},'state':RequestState[_0x5d86e7(0x202)]});return;}return this[_0x5d86e7(0x2ae)][_0x5d86e7(0x2dd)]({'error':{'code':ErrorCode['OK'],'message':_0x5d86e7(0x1c5)},'state':RequestState['GET_FILE']}),_0x2963c5;}async['_upload'](_0x4e1b2e,_0x2c44fa,_0x485827){const _0x537840=_0x27f6be;let _0x57476e;try{_0x57476e=await this[_0x537840(0x1e0)][_0x537840(0x1f9)](_0x4e1b2e,_0x2c44fa,_0x485827);}catch(_0x200c1a){const _0x19dc83=_0x200c1a instanceof Error?_0x200c1a[_0x537840(0x2c6)]:String(_0x200c1a);this[_0x537840(0x2ae)][_0x537840(0x2dd)]({'error':{'code':ErrorCode[_0x537840(0x29a)],'message':_0x19dc83},'state':RequestState[_0x537840(0x2c7)]});return;}if(!_0x57476e||typeof _0x57476e[_0x537840(0x1be)]!==_0x537840(0x257)){this[_0x537840(0x2ae)][_0x537840(0x2dd)]({'error':{'code':ErrorCode[_0x537840(0x29a)],'message':_0x537840(0x1e5)},'state':RequestState[_0x537840(0x2c7)]});return;}const _0x227e30=_0x57476e['FileId'];if(_0x227e30[_0x537840(0x24e)]===0x0){this['_requestState$']['next']({'error':{'code':ErrorCode[_0x537840(0x29a)],'message':_0x537840(0x246)},'state':RequestState[_0x537840(0x2c7)]});return;}return this[_0x537840(0x2ae)]['next']({'error':{'code':ErrorCode['OK'],'message':_0x537840(0x1c5)},'state':RequestState[_0x537840(0x2c7)]}),_0x227e30;}async[_0x27f6be(0x244)](_0x1a5d08,_0x3ddaa5,_0x566366){const _0x22d97e=_0x27f6be,_0x2d2c86={'fileID':_0x1a5d08,'type':_0x566366,'outputType':_0x3ddaa5,'fileUrl':'','minSheetRowCount':this['_getMinSheetRowCount'](),'minSheetColumnCount':this[_0x22d97e(0x251)]()},_0x284f8c=await this[_0x22d97e(0x1e0)][_0x22d97e(0x200)](_0x2d2c86);if(!_0x284f8c){this[_0x22d97e(0x2ae)][_0x22d97e(0x2dd)]({'error':{'code':ErrorCode[_0x22d97e(0x29a)],'message':_0x22d97e(0x28e)},'state':RequestState[_0x22d97e(0x2b9)]});return;}if(_0x284f8c['error']&&_0x284f8c[_0x22d97e(0x26a)][_0x22d97e(0x296)]!==ErrorCode['OK']){this[_0x22d97e(0x2ae)][_0x22d97e(0x2dd)]({'error':_0x284f8c[_0x22d97e(0x26a)],'state':RequestState['IMPORT']});return;}const _0x2f885e=_0x284f8c['taskID'];if(_0x2f885e[_0x22d97e(0x24e)]===0x0){this['_requestState$'][_0x22d97e(0x2dd)]({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':_0x22d97e(0x1d6)},'state':RequestState[_0x22d97e(0x2b9)]});return;}return this[_0x22d97e(0x2ae)][_0x22d97e(0x2dd)]({'error':_0x284f8c[_0x22d97e(0x26a)],'state':RequestState[_0x22d97e(0x2b9)]}),_0x2f885e;}async[_0x27f6be(0x254)](_0x16a538){const _0x23f355=_0x27f6be,_0x566070=await this[_0x23f355(0x1e0)][_0x23f355(0x1f5)](_0x16a538);if(!_0x566070){this[_0x23f355(0x2ae)][_0x23f355(0x2dd)]({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':_0x23f355(0x225)},'state':RequestState[_0x23f355(0x1de)]});return;}if(_0x566070[_0x23f355(0x26a)]&&_0x566070[_0x23f355(0x26a)][_0x23f355(0x296)]!==ErrorCode['OK']){this[_0x23f355(0x2ae)]['next']({'error':_0x566070[_0x23f355(0x26a)],'state':RequestState[_0x23f355(0x1de)]});return;}const _0x179545=resolveWithBasePath(_0x566070['url'],this[_0x23f355(0x2e0)]());if(_0x179545[_0x23f355(0x24e)]===0x0){this['_requestState$'][_0x23f355(0x2dd)]({'error':{'code':ErrorCode[_0x23f355(0x29a)],'message':_0x23f355(0x225)},'state':RequestState[_0x23f355(0x1de)]});return;}return this[_0x23f355(0x2ae)]['next']({'error':_0x566070[_0x23f355(0x26a)],'state':RequestState[_0x23f355(0x1de)]}),_0x179545;}[_0x27f6be(0x2e0)](){const _0x10b4ef=_0x27f6be;var _0x4168a3;const _0x162473=this['_configService'][_0x10b4ef(0x20b)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x4168a3=_0x162473===null||_0x162473===void 0x0?void 0x0:_0x162473[_0x10b4ef(0x2d0)])!==null&&_0x4168a3!==void 0x0?_0x4168a3:location[_0x10b4ef(0x279)];}['_getMinSheetRowCount'](){const _0x4a0412=_0x27f6be;var _0x2016ca,_0x1fd3f2;const _0x44df68=this[_0x4a0412(0x291)][_0x4a0412(0x20b)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x2016ca=_0x44df68===null||_0x44df68===void 0x0||(_0x1fd3f2=_0x44df68[_0x4a0412(0x294)])===null||_0x1fd3f2===void 0x0?void 0x0:_0x1fd3f2[_0x4a0412(0x201)])!==null&&_0x2016ca!==void 0x0?_0x2016ca:0x1;}[_0x27f6be(0x251)](){const _0x3f65ea=_0x27f6be;var _0x215b9b,_0x443fe2;const _0x11b415=this[_0x3f65ea(0x291)][_0x3f65ea(0x20b)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x215b9b=_0x11b415===null||_0x11b415===void 0x0||(_0x443fe2=_0x11b415['options'])===null||_0x443fe2===void 0x0?void 0x0:_0x443fe2['minSheetColumnCount'])!==null&&_0x215b9b!==void 0x0?_0x215b9b:0x1;}[_0x27f6be(0x2fb)](){const _0x229843=_0x27f6be;var _0x50c92a,_0x500bbb;const _0x32122d=this[_0x229843(0x291)][_0x229843(0x20b)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x50c92a=_0x32122d===null||_0x32122d===void 0x0||(_0x500bbb=_0x32122d[_0x229843(0x294)])===null||_0x500bbb===void 0x0?void 0x0:_0x500bbb[_0x229843(0x214)])!==null&&_0x50c92a!==void 0x0?_0x50c92a:![];}[_0x27f6be(0x2d6)](){const _0x2c9d88=_0x27f6be;var _0x3bc598,_0x1c90fc;const _0x4abdeb=this['_configService'][_0x2c9d88(0x20b)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x3bc598=_0x4abdeb===null||_0x4abdeb===void 0x0||(_0x1c90fc=_0x4abdeb['options'])===null||_0x1c90fc===void 0x0?void 0x0:_0x1c90fc[_0x2c9d88(0x1fb)])!==null&&_0x3bc598!==void 0x0?_0x3bc598:!![];}[_0x27f6be(0x24b)](){const _0xefb6fe=_0x27f6be;var _0xe78c31,_0x4c3c43;const _0x3eb481=this[_0xefb6fe(0x291)][_0xefb6fe(0x20b)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0xe78c31=_0x3eb481===null||_0x3eb481===void 0x0||(_0x4c3c43=_0x3eb481[_0xefb6fe(0x294)])===null||_0x4c3c43===void 0x0?void 0x0:_0x4c3c43[_0xefb6fe(0x221)])!==null&&_0xe78c31!==void 0x0?_0xe78c31:![];}};ExchangeService=__decorate([__decorateParam(0x0,IConfigService),__decorateParam(0x1,Inject(HTTPService)),__decorateParam(0x2,Inject(IRequestService))],ExchangeService);const NilProgress={'done':0x0,'count':0x0},IExchangeOperateService=createIdentifier(_0x27f6be(0x2c8));let ExchangeOperateService=class ExchangeOperateService extends Disposable{constructor(_0x6c8dd9,_0x45d153,_0x490c61,_0x58609e,_0x1ea075,_0x2dc228){const _0x442cb9=_0x27f6be;super(),this[_0x442cb9(0x26f)]=_0x6c8dd9,this['_messageService']=_0x45d153,this[_0x442cb9(0x278)]=_0x490c61,this[_0x442cb9(0x209)]=_0x58609e,this['_uploadNotificationService']=_0x1ea075,this[_0x442cb9(0x273)]=_0x2dc228,_defineProperty(this,_0x442cb9(0x2f3),new BehaviorSubject(NilProgress)),_defineProperty(this,_0x442cb9(0x2e9),this['_progress$']['asObservable']()),_defineProperty(this,_0x442cb9(0x230),0x0),_defineProperty(this,_0x442cb9(0x20e),0x0),this[_0x442cb9(0x21a)](toDisposable(this['_exchangeService'][_0x442cb9(0x224)]['subscribe'](_0x11badf=>{var _0x475763;if(((_0x475763=_0x11badf['error'])===null||_0x475763===void 0x0?void 0x0:_0x475763['code'])===ErrorCode['OK'])this['_addDoneTask'](0x1);else this['_showNetworkError'](_0x11badf['error']);})));}[_0x27f6be(0x2ce)](){const _0x3393f2=_0x27f6be;this[_0x3393f2(0x22f)](),this[_0x3393f2(0x1da)][_0x3393f2(0x23d)](UploadNotificationState['ERROR']),this[_0x3393f2(0x209)]['interruptImportTask']();}async[_0x27f6be(0x2de)](_0x2e3ffa){const _0x3c707b=_0x27f6be;throw new Error(_0x3c707b(0x203));}async[_0x27f6be(0x2d9)](){const _0x1ad0f1=_0x27f6be,_0x5f0824=await getUploadFile([UniverInstanceType[_0x1ad0f1(0x2ac)]]);if(!_0x5f0824)return;if(this[_0x1ad0f1(0x2ef)](_0x5f0824,UniverInstanceType[_0x1ad0f1(0x2ac)]))return;return this[_0x1ad0f1(0x2bb)](_0x5f0824[0x0],UniverInstanceType[_0x1ad0f1(0x2ac)]);}[_0x27f6be(0x2c3)](){throw new Error('Method\x20not\x20implemented.');}async[_0x27f6be(0x1e8)](_0x21d89d,_0x12ebe4,_0x1e3ac4){const _0x3101e4=_0x27f6be;this['_showDownloadMessage'](MessageType['Info']);const _0x3f3b40=await this['_exchangeService'][_0x3101e4(0x1e8)](_0x21d89d||this[_0x3101e4(0x2a6)]());if(!_0x3f3b40)return;downloadFile(_0x3f3b40,_0x12ebe4||this[_0x3101e4(0x23f)](_0x3f3b40),_0x3101e4(0x1f3)),this[_0x3101e4(0x28f)](MessageType['Success']);}async[_0x27f6be(0x25e)](){const _0xd02e96=_0x27f6be;this[_0xd02e96(0x28f)](MessageType[_0xd02e96(0x295)]);const _0x47b04c=await this[_0xd02e96(0x1d5)](),_0x54c327=await this['_exchangeService']['exportDOCXBySnapshot'](_0x47b04c);if(!_0x54c327)return;downloadFile(_0x54c327,this[_0xd02e96(0x23f)](_0x54c327),_0xd02e96(0x1f3)),this[_0xd02e96(0x28f)](MessageType[_0xd02e96(0x2f7)]);}async[_0x27f6be(0x271)](){const _0x2b9248=_0x27f6be;if(this['_uploadTaskNotDone']()){this['_messageService'][_0x2b9248(0x27a)]({'type':MessageType[_0x2b9248(0x227)],'content':this[_0x2b9248(0x278)]['t'](_0x2b9248(0x20f))});return;}const _0x377cf8=await getUploadFile([UniverInstanceType[_0x2b9248(0x260)]]);if(!_0x377cf8)return;if(this[_0x2b9248(0x2ef)](_0x377cf8,UniverInstanceType[_0x2b9248(0x260)]))return;return this['_importFileToUnitId'](_0x377cf8[0x0],UniverInstanceType[_0x2b9248(0x260)]);}async[_0x27f6be(0x2a1)](){const _0x2f27dc=_0x27f6be;if(this[_0x2f27dc(0x292)]()){this[_0x2f27dc(0x2a4)][_0x2f27dc(0x27a)]({'type':MessageType[_0x2f27dc(0x227)],'content':this[_0x2f27dc(0x278)]['t'](_0x2f27dc(0x20f))});return;}const _0xd45c81=await getUploadFile([UniverInstanceType['UNIVER_SHEET']]);if(!_0xd45c81)return;this['_showUploadMessage'](MessageType[_0x2f27dc(0x295)]);const _0x2df984=await this[_0x2f27dc(0x209)][_0x2f27dc(0x2a1)](_0xd45c81[0x0]);if(!_0x2df984)return;this[_0x2f27dc(0x25f)](_0x2df984),this[_0x2f27dc(0x212)](MessageType[_0x2f27dc(0x2f7)]);}async[_0x27f6be(0x1c3)](_0x3f5db6,_0x2b9406,_0x2eb6f4){const _0xa5c310=_0x27f6be;this[_0xa5c310(0x28f)](MessageType[_0xa5c310(0x295)]);const _0x45c8c6=await this[_0xa5c310(0x209)][_0xa5c310(0x1c3)](_0x3f5db6||this[_0xa5c310(0x21d)]());if(!_0x45c8c6)return;downloadFile(_0x45c8c6,_0x2b9406||this['_getUnitName'](_0x45c8c6),'xlsx'),this[_0xa5c310(0x28f)](MessageType['Success']);}async[_0x27f6be(0x2b3)](){const _0x3e95b9=_0x27f6be;this[_0x3e95b9(0x28f)](MessageType[_0x3e95b9(0x295)]);const _0x4e0cd7=await this[_0x3e95b9(0x215)](),_0x166cc3=await this[_0x3e95b9(0x209)]['exportXLSXBySnapshot'](_0x4e0cd7);if(!_0x166cc3)return;downloadFile(_0x166cc3,this[_0x3e95b9(0x23f)](_0x166cc3),_0x3e95b9(0x1f4)),this['_showDownloadMessage'](MessageType[_0x3e95b9(0x2f7)]);}[_0x27f6be(0x21f)](_0x3815ad){const _0x57d5b6=_0x27f6be;this[_0x57d5b6(0x2df)]=_0x3815ad;}async['_importFileToUnitId'](_0x5a6999,_0x429248){const _0x4981b1=_0x27f6be;this[_0x4981b1(0x1da)][_0x4981b1(0x27a)](),this[_0x4981b1(0x1da)][_0x4981b1(0x23d)](UploadNotificationState[_0x4981b1(0x222)]),this[_0x4981b1(0x2b2)](0x4),this[_0x4981b1(0x265)](0x1);const _0x2fe585=await this[_0x4981b1(0x209)]['importFileToUnitId'](_0x5a6999,_0x429248);if(!_0x2fe585){this[_0x4981b1(0x22f)](),this['_uploadNotificationService'][_0x4981b1(0x23d)](UploadNotificationState['ERROR']);return;}const _0x22c9a2={'link':this[_0x4981b1(0x2df)](_0x2fe585,_0x429248),'name':_0x5a6999[_0x4981b1(0x1ea)],'type':_0x429248};return this[_0x4981b1(0x1da)][_0x4981b1(0x27f)](_0x22c9a2),this[_0x4981b1(0x2e2)](),this[_0x4981b1(0x1da)][_0x4981b1(0x23d)](UploadNotificationState['SUCCESS']),_0x2fe585;}[_0x27f6be(0x21d)](){const _0x3769b7=_0x27f6be;return this[_0x3769b7(0x26f)][_0x3769b7(0x1dd)](UniverInstanceType[_0x3769b7(0x260)])['getUnitId']();}[_0x27f6be(0x2a6)](){const _0x15704f=_0x27f6be;return this['_univerInstanceService'][_0x15704f(0x1dd)](UniverInstanceType[_0x15704f(0x2ac)])[_0x15704f(0x2d3)]();}[_0x27f6be(0x23f)](_0x218cd6){const _0x2f82af=_0x27f6be;var _0x33aeb8;return((_0x33aeb8=this[_0x2f82af(0x26f)]['getCurrentUnitOfType'](UniverInstanceType[_0x2f82af(0x260)]))===null||_0x33aeb8===void 0x0?void 0x0:_0x33aeb8[_0x2f82af(0x1ea)])||_0x218cd6[_0x2f82af(0x1ea)]['split']('.')[_0x2f82af(0x2d8)]()||document[_0x2f82af(0x1fa)];}async[_0x27f6be(0x215)](){const _0x425d4d=_0x27f6be;return this['_univerInstanceService']['getCurrentUnitOfType'](UniverInstanceType[_0x425d4d(0x260)])['getSnapshot']();}async[_0x27f6be(0x1d5)](){const _0x258614=_0x27f6be;return this[_0x258614(0x26f)]['getCurrentUnitOfType'](UniverInstanceType[_0x258614(0x2ac)])[_0x258614(0x1ed)]();}[_0x27f6be(0x2df)](_0x4e0c7c,_0x5d3791){const _0x226f73=_0x27f6be,_0xb27df=new URL(window[_0x226f73(0x2a2)][_0x226f73(0x2c5)]);return _0xb27df[_0x226f73(0x1e6)][_0x226f73(0x2f8)](_0x226f73(0x27e),_0x4e0c7c),_0xb27df[_0x226f73(0x1e6)][_0x226f73(0x2f8)](_0x226f73(0x25a),''+_0x5d3791),_0xb27df[_0x226f73(0x1c9)]();}[_0x27f6be(0x25f)](_0x264caa){const _0x4a0dd3=_0x27f6be,_0x553e05=this[_0x4a0dd3(0x26f)]['getCurrentUnitForType'](UniverInstanceType[_0x4a0dd3(0x260)])['getUnitId']();this[_0x4a0dd3(0x26f)][_0x4a0dd3(0x2d4)](_0x553e05),this['_univerInstanceService'][_0x4a0dd3(0x276)](UniverInstanceType[_0x4a0dd3(0x260)],_0x264caa);}['_showNetworkError'](_0x70ba21){const _0x4fe124=_0x27f6be;if(_0x70ba21){const {code:_0x284b8b}=_0x70ba21;switch(_0x284b8b){case ErrorCode[_0x4fe124(0x1b7)]:this[_0x4fe124(0x2a4)][_0x4fe124(0x27a)]({'type':MessageType['Error'],'content':this[_0x4fe124(0x278)]['t'](_0x4fe124(0x1bf))});break;case ErrorCode[_0x4fe124(0x2bc)]:this['_messageService']['show']({'type':MessageType[_0x4fe124(0x29c)],'content':this[_0x4fe124(0x278)]['t'](_0x4fe124(0x2ea))});break;default:this[_0x4fe124(0x2a4)][_0x4fe124(0x27a)]({'type':MessageType[_0x4fe124(0x29c)],'content':this[_0x4fe124(0x278)]['t']('exchange.networkError')});break;}return null;}return this['_messageService'][_0x4fe124(0x27a)]({'type':MessageType[_0x4fe124(0x29c)],'content':this[_0x4fe124(0x278)]['t']('exchange.networkError')}),null;}[_0x27f6be(0x28f)](_0x45083d){const _0x3a4aa2=_0x27f6be;let _0x219287='';switch(_0x45083d){case MessageType[_0x3a4aa2(0x2f7)]:_0x219287=this[_0x3a4aa2(0x278)]['t'](_0x3a4aa2(0x1cb));break;case MessageType[_0x3a4aa2(0x295)]:_0x219287=this['_localeService']['t'](_0x3a4aa2(0x27c));break;default:break;}this[_0x3a4aa2(0x2a4)][_0x3a4aa2(0x27a)]({'type':_0x45083d,'content':_0x219287});}[_0x27f6be(0x212)](_0x29f4c4){const _0x214aae=_0x27f6be;let _0xb5c588='';switch(_0x29f4c4){case MessageType[_0x214aae(0x2f7)]:_0xb5c588=this[_0x214aae(0x278)]['t']('exchange.uploadSuccess');break;case MessageType[_0x214aae(0x295)]:_0xb5c588=this[_0x214aae(0x278)]['t'](_0x214aae(0x20f));break;default:break;}this[_0x214aae(0x2a4)][_0x214aae(0x27a)]({'type':_0x29f4c4,'content':_0xb5c588});}[_0x27f6be(0x21c)](){const _0x5601e3=_0x27f6be;this['_progress$'][_0x5601e3(0x2dd)]({'done':this[_0x5601e3(0x20e)],'count':this[_0x5601e3(0x230)]});}[_0x27f6be(0x2b2)](_0x5282b3){const _0x3bfb45=_0x27f6be;this['_totalUploadTaskCount']+=_0x5282b3,this[_0x3bfb45(0x21c)]();}[_0x27f6be(0x265)](_0x316711){const _0x5e8c90=_0x27f6be;this['_doneUploadTaskCount']+=_0x316711,this['_doneUploadTaskCount']=Math[_0x5e8c90(0x1bc)](this[_0x5e8c90(0x20e)],this[_0x5e8c90(0x230)]),this[_0x5e8c90(0x21c)]();}[_0x27f6be(0x2e2)](){const _0x135ce1=_0x27f6be;this['_doneUploadTaskCount']=this[_0x135ce1(0x230)],this[_0x135ce1(0x21c)]();}[_0x27f6be(0x22f)](){const _0x583c4a=_0x27f6be;this[_0x583c4a(0x20e)]=0x0,this[_0x583c4a(0x230)]=0x0,this[_0x583c4a(0x21c)]();}['_fileTypeError'](_0x1f3d02,_0x478a38){const _0x3e4bf1=_0x27f6be,_0x5c709c=_0x1f3d02[0x0],_0x4662c2=_0x5c709c[_0x3e4bf1(0x1ea)];if(getUniverInstanceTypeByFile(_0x5c709c)!==_0x478a38)return this['_messageService'][_0x3e4bf1(0x27a)]({'type':MessageType['Error'],'content':this[_0x3e4bf1(0x278)]['t'](_0x3e4bf1(0x2cf),_0x4662c2)}),!![];return![];}[_0x27f6be(0x292)](){const _0x4eb32e=_0x27f6be;return this[_0x4eb32e(0x230)]!==0x0&&this[_0x4eb32e(0x20e)]!==this['_totalUploadTaskCount'];}};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(_0x346f6c){const _0x454817=_0x27f6be,{onClick:_0x4e32b9,children:_0x13bc91,className:_0xb13ee2}=_0x346f6c;return jsx('button',{'className':clsx(_0x454817(0x241),_0xb13ee2),'type':_0x454817(0x286),'onClick':_0x4e32b9,'children':_0x13bc91});}function UploadAgain(){const _0x357820=_0x27f6be,_0x4498a3=useDependency(IExchangeOperateService),_0x4ceb95=useDependency(LocaleService);function _0xea986d(){_0x4498a3['importXLSXToUnitId']();}return jsx(UploadButton,{'onClick':_0xea986d,'children':_0x4ceb95['t'](_0x357820(0x274))});}function UploadError(){const _0x24b0f1=_0x27f6be;return jsxs('div',{'className':_0x24b0f1(0x1ba),'children':[jsx('span',{'className':_0x24b0f1(0x2a8),'children':useDependency(LocaleService)['t'](_0x24b0f1(0x205))}),jsx(UploadAgain,{})]});}function UploadSuccess(_0xd3e444){const _0x2abd34=_0x27f6be,{count:_0x18946c}=_0xd3e444;return jsxs(_0x2abd34(0x22c),{'className':_0x2abd34(0x1d3),'children':[jsx(_0x2abd34(0x29e),{'className':_0x2abd34(0x1c8),'children':useDependency(LocaleService)['t'](_0x2abd34(0x2f4),''+_0x18946c)}),jsx(UploadAgain,{})]});}function UploadCancel(){const _0x42c1a3=useDependency(IExchangeOperateService),_0x9fc53=useDependency(LocaleService);function _0x3ed4bc(){const _0x36d340=_0x41e1;_0x42c1a3[_0x36d340(0x2ce)]();}return jsx(UploadButton,{'onClick':_0x3ed4bc,'children':_0x9fc53['t']('exchange.cancel')});}function UploadProgress(){const _0xf9830a=_0x27f6be,{count:_0x4057e0,done:_0x4aace7}=useObservable(useDependency(IExchangeOperateService)[_0xf9830a(0x2e9)]),[_0x2f263e,_0x5acdad]=useState(_0x4057e0>0x0?_0x4aace7/_0x4057e0:0x0);return useEffect(()=>{_0x5acdad(_0x4057e0>0x0?_0x4aace7/_0x4057e0:0x0);},[_0x4057e0,_0x4aace7]),jsx(_0xf9830a(0x22c),{'className':_0xf9830a(0x1f6),'children':jsx(_0xf9830a(0x22c),{'className':'univer-h-1.5\x20univer-rounded-lg\x20univer-bg-primary-600\x20univer-transition-[width]\x20univer-duration-500','style':{'width':Math[_0xf9830a(0x21b)](_0x2f263e*0x64)+'%'}})});}function Uploading(){const _0x3bcc83=_0x27f6be;return jsxs(_0x3bcc83(0x22c),{'className':_0x3bcc83(0x1ba),'children':[jsx(_0x3bcc83(0x29e),{'className':'univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','children':useDependency(LocaleService)['t']('exchange.wait')}),jsx(_0x3bcc83(0x22c),{'className':_0x3bcc83(0x267),'children':jsx(UploadProgress,{})}),jsx(UploadCancel,{})]});}function _0x2f72(){const _0x5d253f=['_getEnableServerSideComputing','univer-pro.exchange-client.exchange.service','style','getOwnPropertyDescriptor','file.json','createObjectURL','/universer-api/stream/file/upload','trim','saveSheetBlock','UNIVER_UNKNOWN','CONNECTOR_DATA_TOO_LARGE','dispose','originalMeta','univer-mt-5\x20univer-flex\x20univer-flex-col','_state$','min','application/vnd.ms-excel.sheet.macroEnabled.12','FileId','exchange.tooLarge','number','_injector','_exportBySnapshot','exportXLSXByUnitId','HttpImport','success','noreferrer','stringify','univer-text-sm\x20univer-text-gray-500','toString','getDeserializedSheetBlock','exchange.downloadSuccess','parse','workbook','JSON','download','getTask','_getExportURL','version','univer-mt-3\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-2\x20univer-pr-1','4305484XsLGJV','_getUnitDocJson','Failed\x20to\x20get\x20taskID\x20from\x20import\x20response','interruptImportTask','_taskInterrupted','clearTaskInterrupted','_uploadNotificationService','&flate=','toPrimitive','getCurrentUnitOfType','SIGN_URL','getResourcesRequest','_requestService','univer-flex\x20univer-h-5\x20univer-text-xl','univer-ml-1\x20univer-truncate\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','object','_visible$','upload\x20failed:\x20missing\x20FileId\x20in\x20response','searchParams','append','exportDOCXByUnitId','maxTimeoutTime','name','GET_JSON','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getSnapshot','univer-pro.exchange-client.upload-notification.service','fileID','getLatestCsReqIdBySid','default','5082170UmkVyS','docx','xlsx','signUrl','univer-mx-0\x20univer-mb-3\x20univer-mt-4\x20univer-h-1.5\x20univer-w-[324px]\x20univer-rounded-lg\x20univer-bg-gray-200','saveSnapshot','status','upload','title','disableCellImageConversion','univer-flex\x20univer-w-[calc(100%-48px)]\x20univer-items-center','_getImportURL','updateSnapshot','upload\x20request\x20failed:\x20failed\x20to\x20read\x20source\x20file\x20from\x20url','import','minSheetRowCount','GET_FILE','Method\x20not\x20implemented.','importWorkbookDataToUnitId','exchange.interrupt','blockID','univer-text-green-500','setConfig','_exchangeService','UNIVER_EXCHANGE_CLIENT_PLUGIN','getConfig','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','has','_doneUploadTaskCount','exchange.uploading','univer-h-6\x20univer-text-2xl','replace','_showUploadMessage','filter','enableServerSideComputing','_getUnitJson','application/vnd.openxmlformats-officedocument.presentationml.presentation','No\x20file\x20selected','pluginName','values','disposeWithMe','floor','_emitProgress','_getUnitID','file','registerLink','application/json','ignoreTableExport','UPLOADING','match','requestState$','sign\x20url\x20error','Failed\x20to\x20get\x20fileID\x20from\x20task','Warning','_getMaxPollingTime','subscribe','hide','pptx','div','workbook.json','_buildHttpErrorMessage','_clearProgress','_totalUploadTaskCount','unsubscribe','pop','_blank','\x20-\x20','importFileToUnitId','function','clear','_config','isArray','_getSignURL','display','Failed\x20to\x20transform\x20snapshot\x20to\x20string','updateState','_list$','_getUnitName','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','2103842ZNGvGV','toLowerCase','_import','Get\x20outputType\x20error','upload\x20failed:\x20FileId\x20is\x20empty','getTaskServerUrl','size','745039bjhhwd','appendChild','_getIgnoreTableExport','rev','sheets','length','decorate','join','_getMinSheetColumnCount','currentTarget','_export','_signUrl','includes','_extractErrorDetail','string','content-disposition','_getTaskURL','type','split','_upload','files','exportDOCXBySnapshot','_refresh','UNIVER_SHEET','17965KFlZLw','call','{fileID}','{taskID}','_addDoneTask','_buildProtocolErrorMessage','univer-pl-2\x20univer-pr-4','.json','body','error','xlsm','click','_list','application/vnd.openxmlformats-officedocument.wordprocessingml.document','_univerInstanceService','/universer-api/exchange/task/{taskID}','importXLSXToUnitId','CONTENT','_logService','exchange.uploadAgain','forEach','createUnit','Failed\x20to\x20parse\x20json','_localeService','origin','show','setTaskInterrupted','exchange.downloading','buffer','unit','pushLink','removeChild','univer-text-blue-500','UNDEFINED','_registerComponents','defineProperty','decode','button','Failed\x20to\x20get\x20jsonID\x20from\x20task','exchange-client.config','_httpService','outputType','UNIVER_PROJECT','jsonID','pathname','import\x20error','_showDownloadMessage','visible$','_configService','_uploadTaskNotDone','EXPORT','options','Info','code','snapshot','createElement','add','UNRECOGNIZED','3BIqmjv','Error','signUrlServerUrl','span','univer-ml-1.5\x20univer-font-semibold\x20univer-leading-6\x20univer-text-gray-900\x20dark:!univer-text-white','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-1.5\x20univer-pr-2','importXLSXToSnapshot','location','unitID','_messageService','xltx','_getUnitIDDoc','fetchMissingChangesets','univer-mb-3\x20univer-py-0\x20univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','1950pftMVu','statusText','addEventListener','UNIVER_DOC','multiple','_requestState$','catch',':\x20HTTP\x20','headers','_addTotalCount','exportXLSXBySnapshot','0.21.1','upload\x20request\x20failed','text','UNIT','_uiPartsService','IMPORT','6762714LsTvES','_importFileToUnitId','INTERNAL_ERROR','9738928tNbdeR','/universer-api/exchange/{type}/import','map','keys','asObservable','getUnitOnRev','importDOCXToSnapshot','blob','href','message','UPLOAD','univer-pro.exchange-client.operate.service','_importToSnapshot','resolve','complete','exchange.unknownMistake','GET_TASK','interrupt','exchange.fileTypeError','downloadEndpointUrl','data','_sheetBlockCache','getUnitId','disposeUnit','file.','_getDisableCellImageConversion','getTextFromUrl','shift','importDOCXToUnitId','univer-pro.exchange-client.request.service','exchange.uploadSuccess','_getUploadFileURL','next','uploadFileToUnitId','_getLinkByUnitId','_getDownloadEndpointURL','ERROR','_completeProgress','block\x20is\x20required','univer-mt-5\x20univer-max-h-72\x20univer-overflow-y-auto\x20univer-overflow-x-hidden','post','get','iterator','18fJjMUi','progress$','exchange.internalError','SUCCESS','importServerUrl','Failed\x20to\x20get\x20unitID\x20from\x20task','application/octet-stream','_fileTypeError','symbol','copyFileMeta','change','_progress$','exchange.uploadSuccessTip','none','_importTaskId','Success','set','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','accept'];_0x2f72=function(){return _0x5d253f;};return _0x2f72();}const iconMap={[UploadNotificationState[_0x27f6be(0x2eb)]]:jsx(SuccessIcon,{'className':_0x27f6be(0x207)}),[UploadNotificationState[_0x27f6be(0x222)]]:jsx(ClockIcon,{'className':_0x27f6be(0x281)}),[UploadNotificationState[_0x27f6be(0x2e1)]]:jsx(ErrorIcon,{'className':'univer-text-red-500'})};function UploadNotification(){const _0x14c3c4=_0x27f6be,[_0x49ea31,_0x37a83f]=useState(UploadNotificationState[_0x14c3c4(0x222)]),[_0x186b14,_0x1d4555]=useState(![]),[_0x3d8e2c,_0xa0917e]=useState([]),_0x589284=useDependency(IUploadNotificationService),_0x1fc83b=useDependency(LocaleService);useEffect(()=>{const _0x575791=_0x14c3c4,_0x246d80=_0x589284[_0x575791(0x290)][_0x575791(0x229)](_0x29045e=>{_0x1d4555(_0x29045e);}),_0x1bf7b4=_0x589284['list$']['subscribe'](_0x36282e=>{_0xa0917e(_0x36282e);}),_0x180c09=_0x589284['state$']['subscribe'](_0x43957e=>{_0x37a83f(_0x43957e);});return()=>{const _0x2705c8=_0x575791;_0x246d80['unsubscribe'](),_0x1bf7b4['unsubscribe'](),_0x180c09[_0x2705c8(0x231)]();};},[]);function _0x5c2ae2(){_0x1d4555(![]);}function _0x5591cc(_0x1bb1c9){const _0x392d6d=_0x14c3c4;switch(_0x1bb1c9){case UploadNotificationState[_0x392d6d(0x2eb)]:return _0x1fc83b['t'](_0x392d6d(0x2db));case UploadNotificationState[_0x392d6d(0x222)]:return _0x1fc83b['t'](_0x392d6d(0x20f));case UploadNotificationState[_0x392d6d(0x2e1)]:return _0x1fc83b['t'](_0x392d6d(0x2cc));default:return'';}}return _0x186b14&&jsxs(_0x14c3c4(0x22c),{'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':[jsxs(_0x14c3c4(0x22c),{'className':_0x14c3c4(0x2a0),'children':[jsxs(_0x14c3c4(0x29e),{'className':'univer-flex','children':[jsx(_0x14c3c4(0x29e),{'className':_0x14c3c4(0x210),'children':iconMap[_0x49ea31]}),jsx(_0x14c3c4(0x29e),{'className':_0x14c3c4(0x29f),'children':_0x5591cc(_0x49ea31)})]}),jsx(_0x14c3c4(0x29e),{'className':_0x14c3c4(0x2f9),'onClick':_0x5c2ae2,'children':jsx(CloseIcon,{})})]}),jsxs(_0x14c3c4(0x22c),{'children':[_0x49ea31===UploadNotificationState['UPLOADING']&&jsx(Uploading,{}),_0x49ea31===UploadNotificationState[_0x14c3c4(0x2e1)]&&jsx(UploadError,{}),_0x3d8e2c[_0x14c3c4(0x24e)]>0x0&&jsx(LinkList,{'list':_0x3d8e2c}),_0x49ea31===UploadNotificationState[_0x14c3c4(0x2eb)]&&jsx(UploadSuccess,{'count':_0x3d8e2c['length']})]})]});}function UploadNotificationContainer(){return jsx(UploadNotification,{});}let ExchangeClientController=class ExchangeClientController extends Disposable{constructor(_0x17bba5,_0x464ad9){const _0x362bb4=_0x27f6be;super(),this[_0x362bb4(0x1c1)]=_0x17bba5,this['_uiPartsService']=_0x464ad9,this[_0x362bb4(0x283)]();}['_registerComponents'](){const _0x5128fe=_0x27f6be;this[_0x5128fe(0x21a)](this[_0x5128fe(0x2b8)]['registerComponent'](BuiltInUIPart[_0x5128fe(0x272)],()=>connectInjector(UploadNotificationContainer,this[_0x5128fe(0x1c1)])));}};ExchangeClientController=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,IUIPartsService)],ExchangeClientController);let UniverExchangeClientPlugin=class UniverExchangeClientPlugin extends Plugin{constructor(_0x14a507=defaultPluginConfig,_0x48b232,_0x443f4f){const _0x53c1bd=_0x27f6be;super(),this[_0x53c1bd(0x238)]=_0x14a507,this[_0x53c1bd(0x1c1)]=_0x48b232,this[_0x53c1bd(0x291)]=_0x443f4f;const {..._0x274d04}=merge({},defaultPluginConfig,this[_0x53c1bd(0x238)]);this[_0x53c1bd(0x291)][_0x53c1bd(0x208)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY,_0x274d04);}['onStarting'](){registerDependencies(this['_injector'],[[ExchangeClientController],[IExchangeOperateService,{'useClass':ExchangeOperateService}],[IExchangeService,{'useClass':ExchangeService}],[IRequestService,{'useClass':RequestService}],[IUploadNotificationService,{'useClass':UploadNotificationService}]]);}['onReady'](){const _0x5ccea0=_0x27f6be;touchDependencies(this[_0x5ccea0(0x1c1)],[[ExchangeClientController],[IExchangeOperateService]]);}};_defineProperty(UniverExchangeClientPlugin,_0x27f6be(0x218),_0x27f6be(0x20a)),_defineProperty(UniverExchangeClientPlugin,'packageName',name),_defineProperty(UniverExchangeClientPlugin,_0x27f6be(0x1d2),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
+ const _0x2cae4a=_0xc00b;(function(_0x235c98,_0x459fb5){const _0x4a8684=_0xc00b,_0x2b4bfa=_0x235c98();while(!![]){try{const _0x13847b=parseInt(_0x4a8684(0x1c2))/0x1*(parseInt(_0x4a8684(0x1ab))/0x2)+parseInt(_0x4a8684(0x2b2))/0x3+parseInt(_0x4a8684(0x284))/0x4*(parseInt(_0x4a8684(0x207))/0x5)+parseInt(_0x4a8684(0x20a))/0x6+parseInt(_0x4a8684(0x192))/0x7*(parseInt(_0x4a8684(0x25b))/0x8)+parseInt(_0x4a8684(0x1f7))/0x9+-parseInt(_0x4a8684(0x265))/0xa*(parseInt(_0x4a8684(0x216))/0xb);if(_0x13847b===_0x459fb5)break;else _0x2b4bfa['push'](_0x2b4bfa['shift']());}catch(_0x18d7eb){_0x2b4bfa['push'](_0x2b4bfa['shift']());}}}(_0x2c1b,0x9d2da));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=_0x2cae4a(0x2cb),configSymbol=Symbol(EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY),defaultPluginConfig={};var name='@univerjs-pro/exchange-client',version=_0x2cae4a(0x2ab);function _typeof(_0x3ed468){'@babel/helpers - typeof';const _0x3d3bb2=_0x2cae4a;return _typeof='function'==typeof Symbol&&_0x3d3bb2(0x1b6)==typeof Symbol[_0x3d3bb2(0x218)]?function(_0x726253){return typeof _0x726253;}:function(_0x4cb868){const _0x8d6947=_0x3d3bb2;return _0x4cb868&&_0x8d6947(0x258)==typeof Symbol&&_0x4cb868['constructor']===Symbol&&_0x4cb868!==Symbol[_0x8d6947(0x299)]?'symbol':typeof _0x4cb868;},_typeof(_0x3ed468);}function toPrimitive(_0x4a1bb2,_0x29419b){const _0x46506a=_0x2cae4a;if(_0x46506a(0x194)!=_typeof(_0x4a1bb2)||!_0x4a1bb2)return _0x4a1bb2;var _0x1c90d0=_0x4a1bb2[Symbol['toPrimitive']];if(void 0x0!==_0x1c90d0){var _0x170537=_0x1c90d0[_0x46506a(0x1d6)](_0x4a1bb2,_0x29419b||'default');if(_0x46506a(0x194)!=_typeof(_0x170537))return _0x170537;throw new TypeError(_0x46506a(0x250));}return('string'===_0x29419b?String:Number)(_0x4a1bb2);}function toPropertyKey(_0x23bbdd){const _0x5b0498=_0x2cae4a;var _0x7ee037=toPrimitive(_0x23bbdd,_0x5b0498(0x221));return'symbol'==_typeof(_0x7ee037)?_0x7ee037:_0x7ee037+'';}function _defineProperty(_0x4f55e3,_0x193bc6,_0x12ec2e){const _0x192e68=_0x2cae4a;return(_0x193bc6=toPropertyKey(_0x193bc6))in _0x4f55e3?Object[_0x192e68(0x1cf)](_0x4f55e3,_0x193bc6,{'value':_0x12ec2e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f55e3[_0x193bc6]=_0x12ec2e,_0x4f55e3;}let UploadNotificationState=function(_0x2c22a3){const _0x208155=_0x2cae4a;return _0x2c22a3[_0x2c22a3['UPLOADING']=0x0]='UPLOADING',_0x2c22a3[_0x2c22a3[_0x208155(0x2ba)]=0x1]=_0x208155(0x2ba),_0x2c22a3[_0x2c22a3[_0x208155(0x2c2)]=0x2]=_0x208155(0x2c2),_0x2c22a3;}({});const IUploadNotificationService=createIdentifier(_0x2cae4a(0x26b));var UploadNotificationService=class extends Disposable{constructor(){const _0x5ddcf9=_0x2cae4a;super(),_defineProperty(this,_0x5ddcf9(0x226),new Subject()),_defineProperty(this,'_state$',new Subject()),_defineProperty(this,_0x5ddcf9(0x2b1),new Subject()),_defineProperty(this,_0x5ddcf9(0x2a9),this['_visible$'][_0x5ddcf9(0x1b1)]()),_defineProperty(this,_0x5ddcf9(0x1a1),this[_0x5ddcf9(0x255)]['asObservable']()),_defineProperty(this,_0x5ddcf9(0x264),this[_0x5ddcf9(0x2b1)][_0x5ddcf9(0x1b1)]()),_defineProperty(this,_0x5ddcf9(0x22d),[]);}[_0x2cae4a(0x2c0)](){const _0x54a60a=_0x2cae4a;super[_0x54a60a(0x2c0)](),this[_0x54a60a(0x226)][_0x54a60a(0x2bb)](),this[_0x54a60a(0x255)][_0x54a60a(0x2bb)](),this['_list$'][_0x54a60a(0x2bb)]();}[_0x2cae4a(0x20f)](){const _0x480af7=_0x2cae4a;this[_0x480af7(0x226)][_0x480af7(0x1af)](!![]);}['hide'](){const _0x24084a=_0x2cae4a;this['_visible$'][_0x24084a(0x1af)](![]);}[_0x2cae4a(0x268)](_0x535fbc){const _0xe85aa2=_0x2cae4a;this[_0xe85aa2(0x255)]['next'](_0x535fbc);}[_0x2cae4a(0x224)](_0x1885ad){const _0x222362=_0x2cae4a;this['_list'][_0x222362(0x201)](_0x1885ad),this[_0x222362(0x2b1)][_0x222362(0x1af)](this[_0x222362(0x22d)]);}};function LinkList(_0xd7ed7d){const _0x5a1c6f=_0x2cae4a,{list:_0x433ab4}=_0xd7ed7d;function _0xd7fd90(_0x4d599a){switch(_0x4d599a){case 0x1:return jsx(DocMultiIcon,{});case 0x2:return jsx(XlsxMultiIcon,{});case 0x3:return jsx(SlideMultiIcon,{});default:return null;}}return jsx('div',{'className':clsx(_0x5a1c6f(0x208),scrollbarClassName),'children':jsx('ul',{'className':_0x5a1c6f(0x247),'children':_0x433ab4[_0x5a1c6f(0x1a0)]((_0x31ad52,_0x31b517)=>{const _0x3efb10=_0x5a1c6f;return jsx('li',{'children':jsxs('a',{'className':'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','href':_0x31ad52[_0x3efb10(0x191)],'target':'_blank','rel':'noreferrer','children':[jsxs(_0x3efb10(0x235),{'className':_0x3efb10(0x1cd),'children':[jsx(_0x3efb10(0x235),{'className':_0x3efb10(0x1c4),'children':_0xd7fd90(_0x31ad52[_0x3efb10(0x1dd)])}),jsx(Tooltip,{'showIfEllipsis':!![],'title':_0x31ad52[_0x3efb10(0x27f)],'asChild':!![],'children':jsx(_0x3efb10(0x235),{'className':_0x3efb10(0x1e9),'children':_0x31ad52[_0x3efb10(0x27f)]})})]}),jsx(_0x3efb10(0x235),{'className':'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','children':jsx(ShareRangeIcon,{})})]})},_0x31b517);})})});}const DOCX=_0x2cae4a(0x2c1),XLSX=_0x2cae4a(0x1d8),XLSM=_0x2cae4a(0x26a),XLTX=_0x2cae4a(0x1fe),PPTX='application/vnd.openxmlformats-officedocument.presentationml.presentation',UNIT_CONTENT_TYPE={[UniverInstanceType[_0x2cae4a(0x1c7)]]:[''],[UniverInstanceType[_0x2cae4a(0x199)]]:[DOCX],[UniverInstanceType['UNIVER_SHEET']]:[XLSX,XLSM,XLTX],[UniverInstanceType[_0x2cae4a(0x1a3)]]:[PPTX],[UniverInstanceType[_0x2cae4a(0x203)]]:[''],[UniverInstanceType[_0x2cae4a(0x1db)]]:['']},CONTENT_TYPE_EXTNAME={[DOCX]:_0x2cae4a(0x246),[XLSX]:'xlsx',[XLSM]:'xlsm',[XLTX]:_0x2cae4a(0x245),[PPTX]:_0x2cae4a(0x2b6)};function downloadFileByURL(_0x44c4c6,_0x1c64dc,_0x63cfd5){const _0xb5696d=_0x2cae4a,_0xcdf7f9=document[_0xb5696d(0x24b)]('a');_0xcdf7f9[_0xb5696d(0x198)]=_0x44c4c6,_0xcdf7f9['style'][_0xb5696d(0x18c)]=_0xb5696d(0x22b),_0xcdf7f9[_0xb5696d(0x26c)]=_0x1c64dc+'.'+_0x63cfd5,document[_0xb5696d(0x23b)][_0xb5696d(0x1a2)](_0xcdf7f9),_0xcdf7f9[_0xb5696d(0x275)](),document[_0xb5696d(0x23b)][_0xb5696d(0x256)](_0xcdf7f9);}function downloadFile(_0x4b5f19,_0x30cf64,_0x1db79a){const _0x16c14d=URL['createObjectURL'](_0x4b5f19);downloadFileByURL(_0x16c14d,_0x30cf64,_0x1db79a),URL['revokeObjectURL'](_0x16c14d);}function getUniverInstanceTypeByFile(_0x1829c9){const _0x3b5865=_0x2cae4a,_0x15079e=_0x1829c9[_0x3b5865(0x27f)][_0x3b5865(0x27c)]('.')[_0x3b5865(0x222)]();if(!_0x15079e)return UniverInstanceType[_0x3b5865(0x1c7)];const _0x49564e=getUnitTypeList();let _0x13da4d=UniverInstanceType['UNIVER_UNKNOWN'];return _0x49564e['some'](_0x1593a7=>{if(isUniverInstanceTypeFileByExt(_0x15079e,_0x1593a7))return _0x13da4d=_0x1593a7,!![];return![];}),_0x13da4d;}function getUnitTypeList(){const _0x3cea87=_0x2cae4a;return Object[_0x3cea87(0x25e)](UniverInstanceType)['filter'](_0x2daf87=>typeof _0x2daf87==='number');}function isUniverInstanceTypeFileByExt(_0x1a55c2,_0x5575f5){const _0x3e5940=_0x2cae4a;return UNIT_CONTENT_TYPE[_0x5575f5][_0x3e5940(0x1a0)](_0x44468c=>(CONTENT_TYPE_EXTNAME[_0x44468c]||'')['toLowerCase']())[_0x3e5940(0x1ba)](_0x1a55c2[_0x3e5940(0x1ed)]());}function getUploadFile(_0x6cfba0,_0x52d6db=![]){const _0x65e9d8=_0x2cae4a,_0x4b4c5b=_0x6cfba0[_0x65e9d8(0x1a0)](_0x173999=>UNIT_CONTENT_TYPE[_0x173999])[_0x65e9d8(0x232)](',');return new Promise((_0x4dd3b9,_0x3f4380)=>{const _0x26ad76=_0x65e9d8,_0x1c3e68=document[_0x26ad76(0x24b)](_0x26ad76(0x1a4));_0x1c3e68[_0x26ad76(0x1dd)]=_0x26ad76(0x1ae),_0x1c3e68[_0x26ad76(0x1ce)]=_0x4b4c5b,_0x1c3e68[_0x26ad76(0x225)]=_0x52d6db,_0x1c3e68[_0x26ad76(0x2ca)]('change',_0x4b11bb=>{const _0x57fc63=_0x26ad76,_0x31fe91=_0x4b11bb[_0x57fc63(0x19c)];if(!_0x31fe91[_0x57fc63(0x274)]||_0x31fe91['files'][_0x57fc63(0x279)]===0x0){_0x3f4380(null);throw new Error(_0x57fc63(0x251));}_0x4dd3b9(_0x31fe91[_0x57fc63(0x274)]);}),_0x1c3e68[_0x26ad76(0x275)]();});}async function getFileByURL(_0x18ce2b,_0x22a77d){const _0x49d529=_0x2cae4a;try{var _0x2ba7eb,_0x2872d5,_0x5f071b;const _0x5178a4=await _0x22a77d[_0x49d529(0x2a1)](_0x18ce2b,{'responseType':_0x49d529(0x22a)}),_0xf0a016=_0x5178a4[_0x49d529(0x23b)],_0x5a1b64=(_0x2ba7eb=(_0x2872d5=_0x5178a4[_0x49d529(0x249)][_0x49d529(0x2a1)](_0x49d529(0x290)))===null||_0x2872d5===void 0x0?void 0x0:_0x2872d5[_0x49d529(0x232)](',\x20'))!==null&&_0x2ba7eb!==void 0x0?_0x2ba7eb:'application/octet-stream';let _0x150828=_0x49d529(0x280)+(CONTENT_TYPE_EXTNAME[_0x5a1b64]||_0x49d529(0x188));const _0x5cf275=(_0x5f071b=_0x5178a4[_0x49d529(0x249)][_0x49d529(0x2a1)](_0x49d529(0x29b)))===null||_0x5f071b===void 0x0?void 0x0:_0x5f071b[_0x49d529(0x232)](',\x20');if(_0x5cf275){const _0x49eafa=_0x5cf275['match'](/filename=(.+)/);if(_0x49eafa&&_0x49eafa[0x1])_0x150828=_0x49eafa[0x1];}else _0x150828=getFileNameFromURL(_0x18ce2b)||_0x150828;return new File([_0xf0a016],_0x150828,{'type':_0x5a1b64});}catch(_0xea791e){console[_0x49d529(0x20d)]('Error\x20fetching\x20file\x20from\x20URL:',_0xea791e);return;}}function getFileNameFromURL(_0x3a21b8){const _0x20d5eb=_0x2cae4a;try{return new URL(_0x3a21b8)[_0x20d5eb(0x1fa)][_0x20d5eb(0x27c)]('/')[_0x20d5eb(0x222)]();}catch(_0x4df1b5){console[_0x20d5eb(0x20d)](_0x20d5eb(0x1b8),_0x4df1b5);return;}}function bufferToFile(_0x44df9e){const _0x3b754d=_0x2cae4a,_0x2dbc2a=new Blob([_0x44df9e[_0x3b754d(0x1c3)]],{'type':_0x3b754d(0x1d9)});return new File([_0x2dbc2a],_0x3b754d(0x24a));}function replaceType(_0x450e0a,_0x22df48){const _0x381acb=_0x2cae4a;return _0x450e0a['replace'](_0x381acb(0x1cc),_0x22df48);}function replaceTaskID(_0x578faa,_0x569b3e){const _0x2a0c04=_0x2cae4a;return _0x578faa[_0x2a0c04(0x1b5)](_0x2a0c04(0x196),_0x569b3e);}function replaceFileID(_0x336370,_0x1706f3){const _0x366604=_0x2cae4a;return _0x336370[_0x366604(0x1b5)](_0x366604(0x231),_0x1706f3);}function __decorateParam(_0x2c83f4,_0x587122){return function(_0x15b457,_0x588a25){_0x587122(_0x15b457,_0x588a25,_0x2c83f4);};}function __decorate(_0x2aba61,_0x4af094,_0x1caf65,_0x17202f){const _0x273844=_0x2cae4a;var _0x15b384=arguments['length'],_0x29f3f1=_0x15b384<0x3?_0x4af094:_0x17202f===null?_0x17202f=Object['getOwnPropertyDescriptor'](_0x4af094,_0x1caf65):_0x17202f,_0x499d20;if(typeof Reflect==='object'&&typeof Reflect[_0x273844(0x2c9)]==='function')_0x29f3f1=Reflect['decorate'](_0x2aba61,_0x4af094,_0x1caf65,_0x17202f);else{for(var _0x1fe614=_0x2aba61[_0x273844(0x279)]-0x1;_0x1fe614>=0x0;_0x1fe614--)if(_0x499d20=_0x2aba61[_0x1fe614])_0x29f3f1=(_0x15b384<0x3?_0x499d20(_0x29f3f1):_0x15b384>0x3?_0x499d20(_0x4af094,_0x1caf65,_0x29f3f1):_0x499d20(_0x4af094,_0x1caf65))||_0x29f3f1;}return _0x15b384>0x3&&_0x29f3f1&&Object[_0x273844(0x1cf)](_0x4af094,_0x1caf65,_0x29f3f1),_0x29f3f1;}const DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0x2cae4a(0x29a),DEFAULT_EXCHANGE_IMPORT_SERVER_URL_KEY=_0x2cae4a(0x282),DEFAULT_EXCHANGE_EXPORT_SERVER_URL_KEY=_0x2cae4a(0x20c),DEFAULT_EXCHANGE_GET_TASK_SERVER_URL_KEY=_0x2cae4a(0x209),DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY=_0x2cae4a(0x230),DEFAULT_EXCHANGE_MAX_TIMEOUT_TIME_KEY=0x1d4c0,IRequestService=createIdentifier('univer-pro.exchange-client.request.service');function _0x2c1b(){const _0x5a1d9c=['isArray','exchange.tooLarge','_sheetBlockCache','getTextFromUrl','_list$','1761885mvhNSL','univer-mx-0\x20univer-mb-3\x20univer-mt-4\x20univer-h-1.5\x20univer-w-[324px]\x20univer-rounded-lg\x20univer-bg-gray-200','_showDownloadMessage','success','pptx','saveChangeset','options','_injector','SUCCESS','complete','sign\x20url\x20error','exchange.internalError','Failed\x20to\x20get\x20fileID\x20from\x20task','set','dispose','application/vnd.openxmlformats-officedocument.wordprocessingml.document','ERROR','disposeWithMe','saveSheetBlock','_getUnitName','_importTaskId','_requestState$','fetchMissingChangesets','decorate','addEventListener','exchange-client.config','_getDisableCellImageConversion','_getUnitDocJson','enableServerSideComputing','_totalUploadTaskCount','upload','_upload','xlsx','\x20-\x20','parse','subscribe','display','jsonID','_doneUploadTaskCount','_getUnitJson','exportXLSXByUnitId','link','658OygafN','importFileToUnitId','object','snapshot','{taskID}','searchParams','href','UNIVER_DOC','exchange.fileTypeError','registerComponent','currentTarget','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','upload\x20request\x20failed','_buildProtocolErrorMessage','map','state$','appendChild','UNIVER_SLIDE','input','exchange.uploadAgain','url','workbook','_registerComponents','code','createUnit','10GqYYfF','block\x20is\x20required','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','file','next','_import','asObservable','&source=','clearTaskInterrupted','importDOCXToSnapshot','replace','symbol','registerLink','Error\x20getting\x20file\x20name\x20from\x20URL:','exchange.networkError','includes','text','import\x20error','_getUploadFileURL','univer-ml-1.5\x20univer-font-semibold\x20univer-leading-6\x20univer-text-gray-900\x20dark:!univer-text-white','pluginName','statusText','univer-h-1.5\x20univer-rounded-lg\x20univer-bg-primary-600\x20univer-transition-[width]\x20univer-duration-500','15137JkXmiN','buffer','univer-flex\x20univer-h-5\x20univer-text-xl','Info','add','UNIVER_UNKNOWN','exportDOCXBySnapshot','_config','_fileTypeError','_signUrl','{type}','univer-flex\x20univer-w-[calc(100%-48px)]\x20univer-items-center','accept','defineProperty','getResourcesRequest','Failed\x20to\x20get\x20unitID\x20from\x20task','Success','onReady','CONNECTOR_DATA_TOO_LARGE','export\x20error','call','Warning','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','application/json','_getMaxPollingTime','UNRECOGNIZED','signUrl','type','getUnitOnRev','unit','_clearProgress','_configService','_requestService','exportDOCXByUnitId','univer-text-green-500','append','_addDoneTask','setConfig','disposeUnit','univer-ml-1\x20univer-truncate\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','univer-pro.exchange-client.operate.service','exchange.downloading','univer-mt-5\x20univer-flex\x20univer-flex-col','toLowerCase','interruptImportTask','signUrlServerUrl','taskID','Method\x20not\x20implemented.','version','minSheetColumnCount','clear','encode','CONTENT','709884PlDAlE','fileID','UNIVER_EXCHANGE_CLIENT_PLUGIN','pathname','button','exchange.uploadSuccessTip','_getMinSheetRowCount','application/vnd.openxmlformats-officedocument.spreadsheetml.template','_emitProgress','Failed\x20to\x20get\x20file\x20from\x20url','unshift','_getEnableServerSideComputing','UNIVER_PROJECT','_getIgnoreTableExport','status','getUnitId','10HrfHpG','univer-mt-5\x20univer-max-h-72\x20univer-overflow-y-auto\x20univer-overflow-x-hidden','/universer-api/exchange/task/{taskID}','5611182HXQhuX','data','/universer-api/exchange/{type}/export','error','exchange.downloadSuccess','show','importXLSXToSnapshot','upload\x20failed:\x20missing\x20FileId\x20in\x20response','UNIVER_SHEET','_exchangeService','Get\x20outputType\x20error','_export','2496307IrysAv','univer-mt-3\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-2\x20univer-pr-1','iterator','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','_uploadTaskNotDone','_getSignURL','_completeProgress','downloadEndpointUrl','_buildHttpErrorMessage','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-1.5\x20univer-pr-2','forEach','string','pop','message','pushLink','multiple','_visible$','getSheetBlock','keys','_getTaskURL','blob','none','exchange.unknownMistake','_list','univer-text-red-500','importServerUrl','/universer-api/file/{fileID}/sign-url','{fileID}','join','_httpService','minSheetRowCount','span','exchange.cancel','number','INTERNAL_ERROR','univer-h-6\x20univer-text-2xl','originalMeta','body','_extractErrorDetail','sheetBlocks','getLatestCsReqIdBySid','_getDownloadEndpointURL','.json','_addTotalCount','Error','disableCellImageConversion','univer-pro.exchange-client.exchange.service','xltx','docx','univer-m-0\x20univer-flex\x20univer-list-none\x20univer-flex-col\x20univer-gap-2\x20univer-p-0','getDeserializedSheetBlock','headers','file.json','createElement','Failed\x20to\x20parse\x20json','_showNetworkError','_uiPartsService','Failed\x20to\x20transform\x20snapshot\x20to\x20string','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','No\x20file\x20selected','requestState$','size','decode','_state$','removeChild','toString','function','_uploadNotificationService','post','32200eMGsHQ','unitID','Failed\x20to\x20get\x20jsonID\x20from\x20task','values','_getImportURL','origin','Failed\x20to\x20get\x20taskID\x20from\x20import\x20response','saveSnapshot','resolve','list$','110pYPNWt','getCurrentUnitOfType','exchange.uploading','updateState','importWorkbookDataToUnitId','application/vnd.ms-excel.sheet.macroEnabled.12','univer-pro.exchange-client.upload-notification.service','download','FileId','div','outputType','unsubscribe','importXLSXToUnitId','export','_taskInterrupted','files','click','uploadFileServerUrl','_localeService','uploadFileToUnitId','length','min','_progress$','split','updateSnapshot','sheets','name','file.','has','/universer-api/exchange/{type}/import','shift','2169412URHidR',':\x20HTTP\x20','exportXLSXBySnapshot','location','exchange.uploadSuccess','getConfig','getTask','trim','done','import','_showUploadMessage','_univerInstanceService','Content-Type','exportServerUrl','_getUnitIDDoc','univer-pl-2\x20univer-pr-4','_exportBySnapshot','_getLinkByUnitId','copyFileMeta','_getMinSheetColumnCount','_getExportURL','prototype','/universer-api/stream/file/upload','content-disposition','getSnapshot','_importFileToUnitId','univer-flex','setTaskInterrupted','onStarting','get','packageName','interrupt','floor','progress$','maxTimeoutTime','blockID','?size=','visible$','catch','0.22.0','_messageService'];_0x2c1b=function(){return _0x5a1d9c;};return _0x2c1b();}let RequestService=class RequestService{constructor(_0x50a501,_0x2f5185){const _0x45f1e1=_0x2cae4a;this[_0x45f1e1(0x1e1)]=_0x50a501,this[_0x45f1e1(0x233)]=_0x2f5185,_defineProperty(this,_0x45f1e1(0x273),new Set());}[_0x2cae4a(0x2c0)](){}['setTaskInterrupted'](_0x372bd3){const _0x5175b5=_0x2cae4a;this[_0x5175b5(0x273)][_0x5175b5(0x1c6)](_0x372bd3);}[_0x2cae4a(0x1b3)](){const _0x424e1e=_0x2cae4a;this[_0x424e1e(0x273)][_0x424e1e(0x1f4)]();}async[_0x2cae4a(0x186)](_0x381410,_0x22ce16=0x0,_0x3ba66d=![]){const _0xd9ddb2=_0x2cae4a;if(typeof _0x381410===_0xd9ddb2(0x221)){const _0x37981c=await getFileByURL(_0x381410,this[_0xd9ddb2(0x233)]);if(!_0x37981c)throw new Error('upload\x20request\x20failed:\x20failed\x20to\x20read\x20source\x20file\x20from\x20url');_0x381410=_0x37981c;}_0x22ce16=_0x22ce16||_0x381410[_0xd9ddb2(0x253)];const _0x31696d=new FormData();_0x31696d[_0xd9ddb2(0x1e5)](_0xd9ddb2(0x1ae),_0x381410);try{const _0x46d688=this[_0xd9ddb2(0x1bd)]()+_0xd9ddb2(0x2a8)+_0x22ce16+_0xd9ddb2(0x1b2)+FileSource['HttpImport']+'&flate='+_0x3ba66d,_0x2eef5e={'body':_0x31696d},_0x5b5ba1=(await this['_httpService'][_0xd9ddb2(0x25a)](_0x46d688,_0x2eef5e))[_0xd9ddb2(0x23b)];if(_0x5b5ba1[_0xd9ddb2(0x20d)]&&_0x5b5ba1['error'][_0xd9ddb2(0x1a9)]!==ErrorCode['OK'])throw new Error(this[_0xd9ddb2(0x19f)]('upload\x20request\x20failed',_0x5b5ba1[_0xd9ddb2(0x20d)]));return _0x5b5ba1;}catch(_0x5ee117){if(_0x5ee117 instanceof Error)throw _0x5ee117;throw new Error(this[_0xd9ddb2(0x21e)](_0xd9ddb2(0x19e),_0x5ee117));}}async[_0x2cae4a(0x28d)](_0x2e9128){const _0xc21aa1=_0x2cae4a,{fileID:_0x42b76b,type:_0x6cb495,outputType:_0x548445,minSheetColumnCount:_0xe9a918,minSheetRowCount:_0x1148d6}=_0x2e9128;try{const _0x26cbbc=replaceType(this[_0xc21aa1(0x25f)](),''+_0x6cb495),_0x6e8bef={'body':{'fileID':_0x42b76b,'outputType':_0x548445,'minSheetColumnCount':_0xe9a918,'minSheetRowCount':_0x1148d6}},_0x1396d7=(await this[_0xc21aa1(0x233)][_0xc21aa1(0x25a)](_0x26cbbc,_0x6e8bef))['body'];if(_0x1396d7[_0xc21aa1(0x20d)]&&_0x1396d7[_0xc21aa1(0x20d)][_0xc21aa1(0x1a9)]!==ErrorCode['OK'])return;return _0x1396d7;}catch(_0x4c349f){return;}}async[_0x2cae4a(0x272)](_0xee7070){const _0x26679c=_0x2cae4a,{unitID:_0x39b4f3,jsonID:_0x47ee03,type:_0x2affd6,sscSwitch:_0x3bac2c,useImageUrl:_0xb44c24,ignoreTableExport:_0x19af83}=_0xee7070;try{const _0x199629=replaceType(this[_0x26679c(0x298)](),''+_0x2affd6),_0x240998={'body':{'unitID':_0x39b4f3,'jsonID':_0x47ee03,'type':_0x2affd6,'sscSwitch':_0x3bac2c,'useImageUrl':_0xb44c24,'ignoreTableExport':_0x19af83}},_0x989fd4=(await this['_httpService'][_0x26679c(0x25a)](_0x199629,_0x240998))[_0x26679c(0x23b)];if(_0x989fd4[_0x26679c(0x20d)]&&_0x989fd4[_0x26679c(0x20d)][_0x26679c(0x1a9)]!==ErrorCode['OK'])return;return _0x989fd4;}catch(_0x21b09a){return;}}async[_0x2cae4a(0x28a)](_0x18329f){return new Promise((_0x1ac3a4,_0x4c9f7d)=>{const _0x16cebe=_0xc00b;try{let _0xcc3d11=0x0;const _0x3ea15a=replaceTaskID(this[_0x16cebe(0x229)](),''+_0x18329f),_0x290f17=this[_0x16cebe(0x1da)](),_0x3610cf=async()=>{const _0x57b181=_0x16cebe;if(this[_0x57b181(0x273)][_0x57b181(0x281)](_0x18329f))return;const _0x2fc527=(await this[_0x57b181(0x233)][_0x57b181(0x2a1)](_0x3ea15a))[_0x57b181(0x23b)];if(_0x2fc527[_0x57b181(0x20d)]&&_0x2fc527['error']['code']===ErrorCode['OK']){if(_0x2fc527[_0x57b181(0x205)]===_0x57b181(0x28c))_0x1ac3a4(_0x2fc527);else{if(_0x2fc527[_0x57b181(0x205)]==='pending'){let _0x86f4eb=0x3e8;if(_0xcc3d11>=_0x290f17){_0x4c9f7d(_0x2fc527);return;}else{if(_0xcc3d11>=0x7530)_0x86f4eb=0x1388;}_0xcc3d11+=_0x86f4eb,setTimeout(_0x3610cf,_0x86f4eb);}else _0x4c9f7d(_0x2fc527);}}else _0x4c9f7d(_0x2fc527);};_0x3610cf();}catch(_0x1d72b0){_0x4c9f7d(_0x1d72b0 instanceof Error?_0x1d72b0:new Error(String(_0x1d72b0)));}});}async[_0x2cae4a(0x1dc)](_0x150706){const _0x396acf=_0x2cae4a;try{const _0x4b3bcd=replaceFileID(this[_0x396acf(0x21b)](),''+_0x150706);return(await this[_0x396acf(0x233)]['get'](_0x4b3bcd))[_0x396acf(0x23b)];}catch(_0x47f0cc){return;}}async['getTextFromUrl'](_0x4ad2a4){const _0x40fd94=_0x2cae4a;try{return(await this[_0x40fd94(0x233)][_0x40fd94(0x2a1)](_0x4ad2a4,{'responseType':_0x40fd94(0x1bb)}))['body'];}catch(_0x56a2b3){return;}}[_0x2cae4a(0x19f)](_0x24aed1,_0x1ad94a){const _0x2552d1=_0x2cae4a,_0x5bfc75=this[_0x2552d1(0x23c)](_0x1ad94a);if(!_0x5bfc75)return _0x24aed1;return _0x24aed1+':\x20'+_0x5bfc75;}[_0x2cae4a(0x21e)](_0x4cfe20,_0xaa4a40){const _0x1ab530=_0x2cae4a;if(_0xaa4a40 instanceof HTTPResponseError){const _0x16dbde=typeof _0xaa4a40['status']===_0x1ab530(0x237)?''+_0xaa4a40[_0x1ab530(0x205)]+(_0xaa4a40['statusText']?'\x20'+_0xaa4a40[_0x1ab530(0x1c0)]:''):void 0x0,_0x2fc2a8=this[_0x1ab530(0x23c)](_0xaa4a40['error']);if(_0x16dbde&&_0x2fc2a8)return _0x4cfe20+':\x20HTTP\x20'+_0x16dbde+_0x1ab530(0x189)+_0x2fc2a8;if(_0x16dbde)return _0x4cfe20+_0x1ab530(0x285)+_0x16dbde;if(_0x2fc2a8)return _0x4cfe20+':\x20'+_0x2fc2a8;return _0x4cfe20;}const _0x58c837=this[_0x1ab530(0x23c)](_0xaa4a40);if(!_0x58c837)return _0x4cfe20;return _0x4cfe20+':\x20'+_0x58c837;}[_0x2cae4a(0x23c)](_0x5da22c){const _0x6ccab0=_0x2cae4a;if(typeof _0x5da22c==='string'){const _0x675e71=_0x5da22c[_0x6ccab0(0x28b)]();return _0x675e71[_0x6ccab0(0x279)]>0x0?_0x675e71:void 0x0;}if(_0x5da22c instanceof Error)return this[_0x6ccab0(0x23c)](_0x5da22c[_0x6ccab0(0x223)]);if(!_0x5da22c||typeof _0x5da22c!==_0x6ccab0(0x194)||Array[_0x6ccab0(0x2ad)](_0x5da22c))return;const _0x850fdc=_0x5da22c,_0x307e17=this['_extractErrorDetail'](_0x850fdc[_0x6ccab0(0x223)]);if(_0x307e17)return _0x307e17;if(_0x850fdc['error']&&typeof _0x850fdc[_0x6ccab0(0x20d)]===_0x6ccab0(0x194)&&!Array[_0x6ccab0(0x2ad)](_0x850fdc[_0x6ccab0(0x20d)])){const _0x4e9990=this[_0x6ccab0(0x23c)](_0x850fdc[_0x6ccab0(0x20d)]);if(_0x4e9990)return _0x4e9990;}}[_0x2cae4a(0x1bd)](){const _0x27e3a8=_0x2cae4a;var _0x242d3a;const _0x5881=this[_0x27e3a8(0x1e1)][_0x27e3a8(0x289)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x242d3a=_0x5881===null||_0x5881===void 0x0?void 0x0:_0x5881[_0x27e3a8(0x276)])!==null&&_0x242d3a!==void 0x0?_0x242d3a:DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY;}[_0x2cae4a(0x25f)](){const _0x38250a=_0x2cae4a;var _0x1259e1;const _0x334901=this[_0x38250a(0x1e1)][_0x38250a(0x289)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1259e1=_0x334901===null||_0x334901===void 0x0?void 0x0:_0x334901[_0x38250a(0x22f)])!==null&&_0x1259e1!==void 0x0?_0x1259e1:DEFAULT_EXCHANGE_IMPORT_SERVER_URL_KEY;}['_getExportURL'](){const _0x34b1ec=_0x2cae4a;var _0x3888d9;const _0x12d1ad=this[_0x34b1ec(0x1e1)][_0x34b1ec(0x289)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x3888d9=_0x12d1ad===null||_0x12d1ad===void 0x0?void 0x0:_0x12d1ad[_0x34b1ec(0x291)])!==null&&_0x3888d9!==void 0x0?_0x3888d9:DEFAULT_EXCHANGE_EXPORT_SERVER_URL_KEY;}[_0x2cae4a(0x229)](){const _0x15b5c9=_0x2cae4a;var _0x4b1a4f;const _0x32743c=this['_configService'][_0x15b5c9(0x289)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x4b1a4f=_0x32743c===null||_0x32743c===void 0x0?void 0x0:_0x32743c['getTaskServerUrl'])!==null&&_0x4b1a4f!==void 0x0?_0x4b1a4f:DEFAULT_EXCHANGE_GET_TASK_SERVER_URL_KEY;}[_0x2cae4a(0x21b)](){const _0x1d997b=_0x2cae4a;var _0x5162d8;const _0x2b749f=this['_configService']['getConfig'](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x5162d8=_0x2b749f===null||_0x2b749f===void 0x0?void 0x0:_0x2b749f[_0x1d997b(0x1ef)])!==null&&_0x5162d8!==void 0x0?_0x5162d8:DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY;}[_0x2cae4a(0x1da)](){const _0x3c81ca=_0x2cae4a;var _0x39464d;const _0x40f44e=this['_configService'][_0x3c81ca(0x289)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x39464d=_0x40f44e===null||_0x40f44e===void 0x0?void 0x0:_0x40f44e[_0x3c81ca(0x2a6)])!==null&&_0x39464d!==void 0x0?_0x39464d:DEFAULT_EXCHANGE_MAX_TIMEOUT_TIME_KEY;}};RequestService=__decorate([__decorateParam(0x0,IConfigService),__decorateParam(0x1,Inject(HTTPService))],RequestService);function transformWorkbookSnapshotMetaToString(_0x3a30a1){const _0x346d26=_0x2cae4a,_0x52fc3b=_0x3a30a1[_0x346d26(0x1a7)];if(!_0x52fc3b)return null;const _0x4d7b04={};if(_0x52fc3b['sheets'])Object[_0x346d26(0x228)](_0x52fc3b[_0x346d26(0x27e)])['forEach'](_0x28a6e4=>{const _0x2c2dd6=_0x346d26,_0x5808db=_0x52fc3b[_0x2c2dd6(0x27e)][_0x28a6e4];_0x4d7b04[_0x28a6e4]={..._0x5808db,'originalMeta':b64EncodeUnicode(textDecoder[_0x2c2dd6(0x254)](_0x5808db[_0x2c2dd6(0x23a)]))};});const _0xb6cd1a=b64EncodeUnicode(textDecoder[_0x346d26(0x254)](_0x52fc3b['originalMeta']));return{..._0x3a30a1,'workbook':{..._0x52fc3b,'originalMeta':_0xb6cd1a,'sheets':_0x4d7b04},'doc':{}};}function transformDocumentSnapshotMetaToString(_0x3035d0){const _0x436bf6=_0x2cae4a,_0x533334=_0x3035d0['doc'];if(!_0x533334)return null;const _0x18c379=b64EncodeUnicode(textDecoder[_0x436bf6(0x254)](_0x533334[_0x436bf6(0x23a)]));return{..._0x3035d0,'workbook':{},'doc':{..._0x533334,'originalMeta':_0x18c379}};}function transformSheetBlockMetaToString(_0x3134ad){const _0x5601fa=_0x2cae4a,_0x58d1c7={};return _0x3134ad[_0x5601fa(0x220)](_0x39f161=>{_0x58d1c7[_0x39f161['id']]={..._0x39f161,'data':b64EncodeUnicode(textDecoder['decode'](_0x39f161['data']))};}),_0x58d1c7;}async function transformWorkbookDataToSnapshotJson(_0x1e5323){const _0x11d924=_0x2cae4a;var _0x5e9cfb;const _0xd95cd5={'metadata':void 0x0},_0x15c423=_0x1e5323['id'],_0x5afd40=(_0x5e9cfb=_0x1e5323['rev'])!==null&&_0x5e9cfb!==void 0x0?_0x5e9cfb:0x0,_0x296952=new ClientSnapshotServerService(),{snapshot:_0x4599bc}=await transformWorkbookDataToSnapshot(_0xd95cd5,_0x1e5323,_0x15c423,_0x5afd40,_0x296952),_0x3622a2=await getSheetBlocksFromSnapshot(_0x4599bc,_0x296952),_0x5b5e67=transformWorkbookSnapshotMetaToString(_0x4599bc);if(!_0x5b5e67)throw new Error(_0x11d924(0x24f));return{'snapshot':_0x5b5e67,'sheetBlocks':transformSheetBlockMetaToString(_0x3622a2)};}async function transformDocumentDataToSnapshotJson(_0x489c4b){const _0x378110=_0x2cae4a;var _0x36ba1d;const _0x58a6c4={'metadata':void 0x0},_0xe59e8d=_0x489c4b['id'],{snapshot:_0x362366}=await transformDocumentDataToSnapshot(_0x58a6c4,_0x489c4b,_0xe59e8d,(_0x36ba1d=_0x489c4b['rev'])!==null&&_0x36ba1d!==void 0x0?_0x36ba1d:0x0,new ClientSnapshotServerService()),_0x549c02=transformDocumentSnapshotMetaToString(_0x362366);if(!_0x549c02)throw new Error(_0x378110(0x24f));return{'snapshot':_0x549c02,'sheetBlocks':{}};}async function transformSnapshotJsonToWorkbookData(_0x1cae27){const _0x461065=_0x2cae4a,_0x56186b=_0x1cae27[_0x461065(0x195)],_0x5a9599=_0x1cae27[_0x461065(0x23d)]||{};return await transformSnapshotToWorkbookData(_0x56186b,Object[_0x461065(0x228)](_0x5a9599)[_0x461065(0x1a0)](_0x2d8280=>_0x5a9599[_0x2d8280])['map'](_0x3c56c0=>{const _0x73f0b6=_0x461065;return{..._0x3c56c0,'data':_0x3c56c0[_0x73f0b6(0x20b)]?JSON[_0x73f0b6(0x18a)](b64DecodeUnicode(_0x3c56c0[_0x73f0b6(0x20b)])):void 0x0};}));}function transformSnapshotJsonToDocumentData(_0x3b71bd){const _0x8dcbf9=_0x2cae4a,_0x274b8f=_0x3b71bd[_0x8dcbf9(0x195)];return transformSnapshotToDocumentData(_0x274b8f);}var ClientSnapshotServerService=class{constructor(){const _0x780e1f=_0x2cae4a;_defineProperty(this,_0x780e1f(0x2af),new Map());}[_0x2cae4a(0x1de)](){return Promise['resolve']({'snapshot':{'unitID':'','type':UniverInstanceType['UNIVER_SHEET'],'rev':0x0,'workbook':void 0x0,'doc':void 0x0},'changesets':[],'error':{'code':ErrorCode['OK'],'message':''}});}[_0x2cae4a(0x227)](_0x50cf2f,_0x6a5eb8){const _0x2a0a34=_0x2cae4a,_0x5096e1=this[_0x2a0a34(0x2af)][_0x2a0a34(0x2a1)](_0x6a5eb8[_0x2a0a34(0x2a7)]);return Promise[_0x2a0a34(0x263)]({'block':_0x5096e1,'error':{'code':ErrorCode['OK'],'message':''}});}[_0x2cae4a(0x248)](_0x3d74d0,_0x1599aa){const _0x199524=_0x2cae4a,_0x20b882=this[_0x199524(0x2af)][_0x199524(0x2a1)](_0x1599aa[_0x199524(0x2a7)]);return Promise[_0x199524(0x263)]({'block':_0x20b882===void 0x0?void 0x0:{..._0x20b882,'data':JSON[_0x199524(0x18a)](textDecoder[_0x199524(0x254)](_0x20b882['data']))},'error':{'code':ErrorCode['OK'],'message':''}});}[_0x2cae4a(0x2c8)](){return Promise['resolve']({'changesets':[],'error':{'code':ErrorCode['OK'],'message':''}});}[_0x2cae4a(0x1d0)](){const _0x2dbf8f=_0x2cae4a;return Promise[_0x2dbf8f(0x263)]({'resources':{},'error':{'code':ErrorCode['OK'],'message':''}});}[_0x2cae4a(0x262)](){const _0xfca540=_0x2cae4a;return Promise[_0xfca540(0x263)]({'error':{'code':ErrorCode['OK'],'message':''}});}[_0x2cae4a(0x27d)](){const _0x3c2f96=_0x2cae4a;return Promise[_0x3c2f96(0x263)]({'error':{'code':ErrorCode['OK'],'message':''}});}[_0x2cae4a(0x2c4)](_0x2ece5f,_0x1f8581){const _0x567580=_0x2cae4a,{block:_0xb7d7e4}=_0x1f8581;if(!_0xb7d7e4)return Promise[_0x567580(0x263)]({'error':{'code':ErrorCode['UNDEFINED'],'message':_0x567580(0x1ac)},'blockID':''});return this['_sheetBlockCache'][_0x567580(0x2bf)](_0xb7d7e4['id'],_0xb7d7e4),Promise[_0x567580(0x263)]({'error':{'code':ErrorCode['OK'],'message':''},'blockID':_0xb7d7e4['id']});}[_0x2cae4a(0x2b7)](){const _0x1c032b=_0x2cae4a;return Promise[_0x1c032b(0x263)]({'error':{'code':ErrorCode['OK'],'message':''},'concurrent':[]});}[_0x2cae4a(0x296)](){const _0x19f92f=_0x2cae4a;return Promise[_0x19f92f(0x263)]({'error':void 0x0,'fileMetaId':''});}[_0x2cae4a(0x23e)](){const _0x4a126c=_0x2cae4a;return Promise[_0x4a126c(0x263)]({'error':void 0x0,'latestReqID':0x0});}};const IExchangeService=createIdentifier(_0x2cae4a(0x244));let ExchangeService=class ExchangeService extends Disposable{constructor(_0x108be6,_0xca7476,_0x529cdd){const _0x1cfd7f=_0x2cae4a;super(),this[_0x1cfd7f(0x1e1)]=_0x108be6,this['_httpService']=_0xca7476,this[_0x1cfd7f(0x1e2)]=_0x529cdd,_defineProperty(this,_0x1cfd7f(0x2c6),null),_defineProperty(this,'_requestState$',new Subject()),_defineProperty(this,_0x1cfd7f(0x252),this['_requestState$']['asObservable']());}[_0x2cae4a(0x2c0)](){const _0x11742c=_0x2cae4a;super[_0x11742c(0x2c0)](),this['_requestState$'][_0x11742c(0x2bb)]();}async['importDOCXToSnapshot'](_0x480c17){const _0x927e3e=_0x2cae4a,_0x5271f1=await this['_importToSnapshot'](_0x480c17,UniverInstanceType[_0x927e3e(0x199)]);if(!_0x5271f1||!_0x5271f1[_0x927e3e(0x195)])return;const _0x1cbc40=transformSnapshotJsonToDocumentData(_0x5271f1);if(!_0x1cbc40)return;return _0x1cbc40;}async['exportDOCXByUnitId'](_0x54b4de){const _0x2d3698=_0x2cae4a;return this[_0x2d3698(0x215)](_0x54b4de,0x1,UniverInstanceType[_0x2d3698(0x199)]);}async[_0x2cae4a(0x1c8)](_0x330485){const _0xd5563d=_0x2cae4a,_0x1f4398=await transformDocumentDataToSnapshotJson(_0x330485);return this[_0xd5563d(0x294)](_0x1f4398,UniverInstanceType['UNIVER_DOC']);}async['importXLSXToSnapshot'](_0x54285a){const _0x307df4=_0x2cae4a,_0x1f917b=await this['_importToSnapshot'](_0x54285a,UniverInstanceType[_0x307df4(0x212)]);if(!_0x1f917b)return;const _0x3212dd=await transformSnapshotJsonToWorkbookData(_0x1f917b);if(!_0x3212dd)return;return _0x3212dd;}async[_0x2cae4a(0x190)](_0x3c7a14){const _0xa71e1c=_0x2cae4a;return this[_0xa71e1c(0x215)](_0x3c7a14,0x1,UniverInstanceType[_0xa71e1c(0x212)]);}async[_0x2cae4a(0x286)](_0x529003){const _0x5c4832=_0x2cae4a,_0x58744a=await transformWorkbookDataToSnapshotJson(_0x529003);return this['_exportBySnapshot'](_0x58744a,UniverInstanceType[_0x5c4832(0x212)]);}async[_0x2cae4a(0x193)](_0x1f2839,_0x163bf0){const _0x32cf51=_0x2cae4a;var _0x4a3fb3,_0x1ad629;const _0x1c8063=await this[_0x32cf51(0x187)](_0x1f2839);if(!_0x1c8063)return;const _0xea53bf=await this[_0x32cf51(0x1b0)](_0x1c8063,0x1,_0x163bf0);if(!_0xea53bf)return;this[_0x32cf51(0x2c6)]=_0xea53bf,this[_0x32cf51(0x1e2)][_0x32cf51(0x1b3)]();const _0x134e00=await this[_0x32cf51(0x1e2)][_0x32cf51(0x28a)](_0xea53bf)[_0x32cf51(0x2aa)](_0x229fc7=>{const _0x42c128=_0x32cf51;var _0x5931ba;const _0x149098=_0x229fc7 instanceof Error?_0x229fc7['message']:(_0x5931ba=_0x229fc7[_0x42c128(0x20d)])===null||_0x5931ba===void 0x0?void 0x0:_0x5931ba[_0x42c128(0x223)];this[_0x42c128(0x2c7)]['next']({'error':{'code':ErrorCode[_0x42c128(0x1db)],'message':_0x149098||''},'state':0x3});});if(!_0x134e00)return;const _0x4b9248=(_0x4a3fb3=_0x134e00[_0x32cf51(0x28d)])===null||_0x4a3fb3===void 0x0?void 0x0:_0x4a3fb3[_0x32cf51(0x26f)],_0x44ea83=((_0x1ad629=_0x134e00[_0x32cf51(0x28d)])===null||_0x1ad629===void 0x0?void 0x0:_0x1ad629[_0x32cf51(0x25c)])||'';if(_0x4b9248!==0x1){this[_0x32cf51(0x2c7)][_0x32cf51(0x1af)]({'error':{'code':ErrorCode[_0x32cf51(0x1db)],'message':'Get\x20outputType\x20error'},'state':0x3});return;}if(_0x44ea83['length']===0x0){this[_0x32cf51(0x2c7)][_0x32cf51(0x1af)]({'error':{'code':ErrorCode[_0x32cf51(0x1db)],'message':_0x32cf51(0x1d1)},'state':0x3});return;}return this[_0x32cf51(0x2c7)][_0x32cf51(0x1af)]({'error':_0x134e00[_0x32cf51(0x20d)],'state':0x3}),_0x44ea83;}async[_0x2cae4a(0x269)](_0x3fb753){const _0x12f334=_0x2cae4a,_0x49c86d=await transformWorkbookDataToSnapshotJson(_0x3fb753),_0x5c075f=typeof _0x3fb753['id']===_0x12f334(0x221)&&_0x3fb753['id'][_0x12f334(0x28b)]()?_0x3fb753['id'][_0x12f334(0x28b)]()+_0x12f334(0x240):'workbook.json',_0x5b1127=new File([JSON['stringify'](_0x49c86d)],_0x5c075f,{'type':_0x12f334(0x1d9)});return this[_0x12f334(0x193)](_0x5b1127,UniverInstanceType['UNIVER_SHEET']);}[_0x2cae4a(0x1ee)](){const _0x4da398=_0x2cae4a;if(this[_0x4da398(0x2c6)])this['_requestService'][_0x4da398(0x29f)](this['_importTaskId']);}async['_importToSnapshot'](_0x5468e6,_0x17ab66){const _0x19b713=_0x2cae4a;var _0x4fcbb7,_0x5e5913;const _0x5cb21d=await this[_0x19b713(0x187)](_0x5468e6);if(!_0x5cb21d)return;const _0x2b0831=await this[_0x19b713(0x1b0)](_0x5cb21d,0x2,_0x17ab66);if(!_0x2b0831)return;this['_importTaskId']=_0x2b0831,this['_requestService']['clearTaskInterrupted']();const _0x85aec5=await this[_0x19b713(0x1e2)]['getTask'](_0x2b0831)[_0x19b713(0x2aa)](_0x5d06e4=>{const _0x30aa14=_0x19b713;var _0x3c6673;const _0x4d1813=_0x5d06e4 instanceof Error?_0x5d06e4[_0x30aa14(0x223)]:(_0x3c6673=_0x5d06e4['error'])===null||_0x3c6673===void 0x0?void 0x0:_0x3c6673[_0x30aa14(0x223)];this[_0x30aa14(0x2c7)]['next']({'error':{'code':ErrorCode[_0x30aa14(0x1db)],'message':_0x4d1813||''},'state':0x3});});if(!_0x85aec5)return;const _0x110c13=(_0x4fcbb7=_0x85aec5[_0x19b713(0x28d)])===null||_0x4fcbb7===void 0x0?void 0x0:_0x4fcbb7[_0x19b713(0x26f)],_0x14e96a=((_0x5e5913=_0x85aec5['import'])===null||_0x5e5913===void 0x0?void 0x0:_0x5e5913[_0x19b713(0x18d)])||'';if(_0x110c13!==0x2){this[_0x19b713(0x2c7)][_0x19b713(0x1af)]({'error':{'code':ErrorCode[_0x19b713(0x1db)],'message':_0x19b713(0x214)},'state':0x3});return;}if(_0x14e96a[_0x19b713(0x279)]===0x0){this[_0x19b713(0x2c7)][_0x19b713(0x1af)]({'error':{'code':ErrorCode[_0x19b713(0x1db)],'message':_0x19b713(0x25d)},'state':0x3});return;}this[_0x19b713(0x2c7)]['next']({'error':_0x85aec5[_0x19b713(0x20d)],'state':0x3});const _0x2bf6ae=await this['_signUrl'](_0x14e96a);if(!_0x2bf6ae)return;const _0x6d4e94=await this[_0x19b713(0x1e2)][_0x19b713(0x2b0)](_0x2bf6ae);if(!_0x6d4e94){this['_requestState$'][_0x19b713(0x1af)]({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':'Failed\x20to\x20get\x20text\x20from\x20url'},'state':0x5});return;}try{const _0x5cebf4=JSON['parse'](_0x6d4e94);return this[_0x19b713(0x2c7)][_0x19b713(0x1af)]({'error':{'code':ErrorCode['OK'],'message':_0x19b713(0x2b5)},'state':0x5}),_0x5cebf4;}catch{this[_0x19b713(0x2c7)]['next']({'error':{'code':ErrorCode[_0x19b713(0x1db)],'message':_0x19b713(0x24c)},'state':0x5});}}async['_exportBySnapshot'](_0x36e294,_0x51eedd){const _0x37d003=_0x2cae4a,_0x379c96=JSON['stringify'](_0x36e294),_0x4ad2f5=textEncoder[_0x37d003(0x1f5)](_0x379c96),_0x1046bc=deflateSync(_0x4ad2f5),_0x3a8baf=_0x4ad2f5[_0x37d003(0x279)],_0x56a919=bufferToFile(_0x1046bc),_0x34eeba=await this[_0x37d003(0x187)](_0x56a919,_0x3a8baf,!![]);if(!_0x34eeba)return;return this[_0x37d003(0x215)](_0x34eeba,0x2,_0x51eedd);}async[_0x2cae4a(0x215)](_0x10714e,_0x362f79,_0x4327ca){const _0x39e503=_0x2cae4a;var _0x1fb173;const _0x15601f=await this[_0x39e503(0x1e2)][_0x39e503(0x272)]({'unitID':_0x362f79===0x1?_0x10714e:'','jsonID':_0x362f79===0x2?_0x10714e:'','type':_0x4327ca,'sscSwitch':this[_0x39e503(0x202)](),'useImageUrl':this[_0x39e503(0x2cc)](),'ignoreTableExport':this[_0x39e503(0x204)]()});if(!_0x15601f){this['_requestState$'][_0x39e503(0x1af)]({'error':{'code':ErrorCode[_0x39e503(0x1db)],'message':_0x39e503(0x1d5)},'state':0x2});return;}this[_0x39e503(0x2c7)][_0x39e503(0x1af)]({'error':_0x15601f['error'],'state':0x2});if(_0x15601f[_0x39e503(0x20d)]&&_0x15601f['error']['code']!==ErrorCode['OK'])return;const _0x3dc0ba=_0x15601f['taskID'],_0x4583bb=await this[_0x39e503(0x1e2)]['getTask'](_0x3dc0ba)['catch'](_0x243220=>{const _0x44af8e=_0x39e503;var _0xc4c9f7;const _0x4205a4=_0x243220 instanceof Error?_0x243220[_0x44af8e(0x223)]:(_0xc4c9f7=_0x243220[_0x44af8e(0x20d)])===null||_0xc4c9f7===void 0x0?void 0x0:_0xc4c9f7[_0x44af8e(0x223)];this[_0x44af8e(0x2c7)][_0x44af8e(0x1af)]({'error':{'code':ErrorCode[_0x44af8e(0x1db)],'message':_0x4205a4||''},'state':0x3});});if(!_0x4583bb)return;const _0x434ef6=((_0x1fb173=_0x4583bb[_0x39e503(0x272)])===null||_0x1fb173===void 0x0?void 0x0:_0x1fb173[_0x39e503(0x1f8)])||'';if(_0x434ef6['length']===0x0){this[_0x39e503(0x2c7)][_0x39e503(0x1af)]({'error':{'code':ErrorCode[_0x39e503(0x1db)],'message':_0x39e503(0x2be)},'state':0x3});return;}this[_0x39e503(0x2c7)][_0x39e503(0x1af)]({'error':_0x4583bb['error'],'state':0x3});const _0x1d1e99=await this['_signUrl'](_0x434ef6);if(!_0x1d1e99)return;const _0x5a7e2f=await getFileByURL(_0x1d1e99,this[_0x39e503(0x233)]);if(!_0x5a7e2f){this[_0x39e503(0x2c7)][_0x39e503(0x1af)]({'error':{'code':ErrorCode[_0x39e503(0x1db)],'message':_0x39e503(0x200)},'state':0x6});return;}return this[_0x39e503(0x2c7)][_0x39e503(0x1af)]({'error':{'code':ErrorCode['OK'],'message':_0x39e503(0x2b5)},'state':0x6}),_0x5a7e2f;}async[_0x2cae4a(0x187)](_0x2473b2,_0x43e074,_0x37af7d){const _0x1b63cd=_0x2cae4a;let _0x29120c;try{_0x29120c=await this['_requestService'][_0x1b63cd(0x186)](_0x2473b2,_0x43e074,_0x37af7d);}catch(_0x559a34){const _0x480c6c=_0x559a34 instanceof Error?_0x559a34[_0x1b63cd(0x223)]:String(_0x559a34);this[_0x1b63cd(0x2c7)]['next']({'error':{'code':ErrorCode[_0x1b63cd(0x1db)],'message':_0x480c6c},'state':0x0});return;}if(!_0x29120c||typeof _0x29120c[_0x1b63cd(0x26d)]!==_0x1b63cd(0x221)){this[_0x1b63cd(0x2c7)][_0x1b63cd(0x1af)]({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':_0x1b63cd(0x211)},'state':0x0});return;}const _0x2cb7ca=_0x29120c['FileId'];if(_0x2cb7ca[_0x1b63cd(0x279)]===0x0){this[_0x1b63cd(0x2c7)][_0x1b63cd(0x1af)]({'error':{'code':ErrorCode[_0x1b63cd(0x1db)],'message':'upload\x20failed:\x20FileId\x20is\x20empty'},'state':0x0});return;}return this[_0x1b63cd(0x2c7)][_0x1b63cd(0x1af)]({'error':{'code':ErrorCode['OK'],'message':_0x1b63cd(0x2b5)},'state':0x0}),_0x2cb7ca;}async[_0x2cae4a(0x1b0)](_0x2b01cc,_0x41a435,_0xf56dd4){const _0x247903=_0x2cae4a,_0x3be86f={'fileID':_0x2b01cc,'type':_0xf56dd4,'outputType':_0x41a435,'fileUrl':'','minSheetRowCount':this[_0x247903(0x1fd)](),'minSheetColumnCount':this[_0x247903(0x297)]()},_0x5876cf=await this['_requestService'][_0x247903(0x28d)](_0x3be86f);if(!_0x5876cf){this[_0x247903(0x2c7)]['next']({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':_0x247903(0x1bc)},'state':0x1});return;}if(_0x5876cf[_0x247903(0x20d)]&&_0x5876cf[_0x247903(0x20d)]['code']!==ErrorCode['OK']){this[_0x247903(0x2c7)]['next']({'error':_0x5876cf[_0x247903(0x20d)],'state':0x1});return;}const _0x18be36=_0x5876cf[_0x247903(0x1f0)];if(_0x18be36[_0x247903(0x279)]===0x0){this[_0x247903(0x2c7)][_0x247903(0x1af)]({'error':{'code':ErrorCode[_0x247903(0x1db)],'message':_0x247903(0x261)},'state':0x1});return;}return this[_0x247903(0x2c7)][_0x247903(0x1af)]({'error':_0x5876cf[_0x247903(0x20d)],'state':0x1}),_0x18be36;}async[_0x2cae4a(0x1cb)](_0xc4cdef){const _0x125548=_0x2cae4a,_0x5ce59a=await this[_0x125548(0x1e2)][_0x125548(0x1dc)](_0xc4cdef);if(!_0x5ce59a){this[_0x125548(0x2c7)]['next']({'error':{'code':ErrorCode[_0x125548(0x1db)],'message':_0x125548(0x2bc)},'state':0x4});return;}if(_0x5ce59a['error']&&_0x5ce59a[_0x125548(0x20d)]['code']!==ErrorCode['OK']){this[_0x125548(0x2c7)][_0x125548(0x1af)]({'error':_0x5ce59a[_0x125548(0x20d)],'state':0x4});return;}const _0x1df25a=resolveWithBasePath(_0x5ce59a[_0x125548(0x1a6)],this[_0x125548(0x23f)]());if(_0x1df25a[_0x125548(0x279)]===0x0){this[_0x125548(0x2c7)][_0x125548(0x1af)]({'error':{'code':ErrorCode[_0x125548(0x1db)],'message':'sign\x20url\x20error'},'state':0x4});return;}return this[_0x125548(0x2c7)][_0x125548(0x1af)]({'error':_0x5ce59a['error'],'state':0x4}),_0x1df25a;}[_0x2cae4a(0x23f)](){const _0x494aca=_0x2cae4a;var _0x1226ae;const _0x99ac3c=this[_0x494aca(0x1e1)]['getConfig'](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1226ae=_0x99ac3c===null||_0x99ac3c===void 0x0?void 0x0:_0x99ac3c[_0x494aca(0x21d)])!==null&&_0x1226ae!==void 0x0?_0x1226ae:location[_0x494aca(0x260)];}[_0x2cae4a(0x1fd)](){const _0xc52dd3=_0x2cae4a;var _0x23b431,_0x2da23d;const _0xda11d4=this['_configService']['getConfig'](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x23b431=_0xda11d4===null||_0xda11d4===void 0x0||(_0x2da23d=_0xda11d4[_0xc52dd3(0x2b8)])===null||_0x2da23d===void 0x0?void 0x0:_0x2da23d[_0xc52dd3(0x234)])!==null&&_0x23b431!==void 0x0?_0x23b431:0x1;}[_0x2cae4a(0x297)](){const _0xe7d0c=_0x2cae4a;var _0x309604,_0x3c9e91;const _0x15b5c4=this[_0xe7d0c(0x1e1)]['getConfig'](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x309604=_0x15b5c4===null||_0x15b5c4===void 0x0||(_0x3c9e91=_0x15b5c4[_0xe7d0c(0x2b8)])===null||_0x3c9e91===void 0x0?void 0x0:_0x3c9e91[_0xe7d0c(0x1f3)])!==null&&_0x309604!==void 0x0?_0x309604:0x1;}[_0x2cae4a(0x202)](){const _0x38282d=_0x2cae4a;var _0x33a9d6,_0x1c9417;const _0x220777=this[_0x38282d(0x1e1)][_0x38282d(0x289)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x33a9d6=_0x220777===null||_0x220777===void 0x0||(_0x1c9417=_0x220777[_0x38282d(0x2b8)])===null||_0x1c9417===void 0x0?void 0x0:_0x1c9417[_0x38282d(0x184)])!==null&&_0x33a9d6!==void 0x0?_0x33a9d6:![];}[_0x2cae4a(0x2cc)](){const _0xb95f54=_0x2cae4a;var _0x1564f3,_0x270c31;const _0x2e307f=this[_0xb95f54(0x1e1)]['getConfig'](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1564f3=_0x2e307f===null||_0x2e307f===void 0x0||(_0x270c31=_0x2e307f[_0xb95f54(0x2b8)])===null||_0x270c31===void 0x0?void 0x0:_0x270c31[_0xb95f54(0x243)])!==null&&_0x1564f3!==void 0x0?_0x1564f3:!![];}[_0x2cae4a(0x204)](){const _0x3c2452=_0x2cae4a;var _0x122087,_0x5ddbc6;const _0x2d8de4=this['_configService'][_0x3c2452(0x289)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x122087=_0x2d8de4===null||_0x2d8de4===void 0x0||(_0x5ddbc6=_0x2d8de4[_0x3c2452(0x2b8)])===null||_0x5ddbc6===void 0x0?void 0x0:_0x5ddbc6['ignoreTableExport'])!==null&&_0x122087!==void 0x0?_0x122087:![];}};ExchangeService=__decorate([__decorateParam(0x0,IConfigService),__decorateParam(0x1,Inject(HTTPService)),__decorateParam(0x2,Inject(IRequestService))],ExchangeService);const NilProgress={'done':0x0,'count':0x0},IExchangeOperateService=createIdentifier(_0x2cae4a(0x1ea));let ExchangeOperateService=class ExchangeOperateService extends Disposable{constructor(_0x42c282,_0x3f5b53,_0x1a59c8,_0x28eb1b,_0x1af66d,_0x4e853c){const _0x44786e=_0x2cae4a;super(),this[_0x44786e(0x28f)]=_0x42c282,this[_0x44786e(0x2ac)]=_0x3f5b53,this[_0x44786e(0x277)]=_0x1a59c8,this[_0x44786e(0x213)]=_0x28eb1b,this['_uploadNotificationService']=_0x1af66d,this['_logService']=_0x4e853c,_defineProperty(this,_0x44786e(0x27b),new BehaviorSubject(NilProgress)),_defineProperty(this,_0x44786e(0x2a5),this[_0x44786e(0x27b)][_0x44786e(0x1b1)]()),_defineProperty(this,_0x44786e(0x185),0x0),_defineProperty(this,_0x44786e(0x18e),0x0),this[_0x44786e(0x2c3)](toDisposable(this[_0x44786e(0x213)]['requestState$'][_0x44786e(0x18b)](_0x264df3=>{const _0x26c433=_0x44786e;var _0x409b34;if(((_0x409b34=_0x264df3[_0x26c433(0x20d)])===null||_0x409b34===void 0x0?void 0x0:_0x409b34[_0x26c433(0x1a9)])===ErrorCode['OK'])this[_0x26c433(0x1e6)](0x1);else this[_0x26c433(0x24d)](_0x264df3[_0x26c433(0x20d)]);})));}[_0x2cae4a(0x2a3)](){const _0x3e8ac3=_0x2cae4a;this[_0x3e8ac3(0x1e0)](),this[_0x3e8ac3(0x259)][_0x3e8ac3(0x268)](0x2),this['_exchangeService'][_0x3e8ac3(0x1ee)]();}async[_0x2cae4a(0x278)](_0x32c021){const _0x197bcd=_0x2cae4a;throw new Error(_0x197bcd(0x1f1));}async['importDOCXToUnitId'](){const _0x26be23=_0x2cae4a,_0x5f41a6=await getUploadFile([UniverInstanceType[_0x26be23(0x199)]]);if(!_0x5f41a6)return;if(this['_fileTypeError'](_0x5f41a6,UniverInstanceType[_0x26be23(0x199)]))return;return this[_0x26be23(0x29d)](_0x5f41a6[0x0],UniverInstanceType[_0x26be23(0x199)]);}[_0x2cae4a(0x1b4)](){const _0xbf09c=_0x2cae4a;throw new Error(_0xbf09c(0x1f1));}async[_0x2cae4a(0x1e3)](_0x2f1244,_0x40fa1b,_0x22c9c6){const _0x40c605=_0x2cae4a;this[_0x40c605(0x2b4)](MessageType[_0x40c605(0x1c5)]);const _0x1036fd=await this['_exchangeService'][_0x40c605(0x1e3)](_0x2f1244||this[_0x40c605(0x292)]());if(!_0x1036fd)return;downloadFile(_0x1036fd,_0x40fa1b||this[_0x40c605(0x2c5)](_0x1036fd),_0x40c605(0x246)),this[_0x40c605(0x2b4)](MessageType['Success']);}async[_0x2cae4a(0x1c8)](){const _0x4b3f2a=_0x2cae4a;this[_0x4b3f2a(0x2b4)](MessageType[_0x4b3f2a(0x1c5)]);const _0x374b7b=await this[_0x4b3f2a(0x183)](),_0x4c092c=await this['_exchangeService'][_0x4b3f2a(0x1c8)](_0x374b7b);if(!_0x4c092c)return;downloadFile(_0x4c092c,this[_0x4b3f2a(0x2c5)](_0x4c092c),_0x4b3f2a(0x246)),this['_showDownloadMessage'](MessageType[_0x4b3f2a(0x1d2)]);}async[_0x2cae4a(0x271)](){const _0x40da53=_0x2cae4a;if(this[_0x40da53(0x21a)]()){this[_0x40da53(0x2ac)]['show']({'type':MessageType[_0x40da53(0x1d7)],'content':this[_0x40da53(0x277)]['t'](_0x40da53(0x267))});return;}const _0x2fe7b1=await getUploadFile([UniverInstanceType[_0x40da53(0x212)]]);if(!_0x2fe7b1)return;if(this[_0x40da53(0x1ca)](_0x2fe7b1,UniverInstanceType[_0x40da53(0x212)]))return;return this[_0x40da53(0x29d)](_0x2fe7b1[0x0],UniverInstanceType[_0x40da53(0x212)]);}async[_0x2cae4a(0x210)](){const _0xf9c687=_0x2cae4a;if(this[_0xf9c687(0x21a)]()){this['_messageService'][_0xf9c687(0x20f)]({'type':MessageType[_0xf9c687(0x1d7)],'content':this[_0xf9c687(0x277)]['t'](_0xf9c687(0x267))});return;}const _0x242d20=await getUploadFile([UniverInstanceType[_0xf9c687(0x212)]]);if(!_0x242d20)return;this[_0xf9c687(0x28e)](MessageType[_0xf9c687(0x1c5)]);const _0x44c1c5=await this[_0xf9c687(0x213)]['importXLSXToSnapshot'](_0x242d20[0x0]);if(!_0x44c1c5)return;this['_refresh'](_0x44c1c5),this[_0xf9c687(0x28e)](MessageType[_0xf9c687(0x1d2)]);}async[_0x2cae4a(0x190)](_0x19796b,_0x3984df,_0x3d7bd6){const _0x13ae20=_0x2cae4a;this[_0x13ae20(0x2b4)](MessageType[_0x13ae20(0x1c5)]);const _0x4d72bd=await this['_exchangeService']['exportXLSXByUnitId'](_0x19796b||this['_getUnitID']());if(!_0x4d72bd)return;downloadFile(_0x4d72bd,_0x3984df||this[_0x13ae20(0x2c5)](_0x4d72bd),_0x13ae20(0x188)),this[_0x13ae20(0x2b4)](MessageType[_0x13ae20(0x1d2)]);}async[_0x2cae4a(0x286)](){const _0x95ce17=_0x2cae4a;this[_0x95ce17(0x2b4)](MessageType['Info']);const _0x1480b0=await this[_0x95ce17(0x18f)](),_0x42e3fa=await this[_0x95ce17(0x213)][_0x95ce17(0x286)](_0x1480b0);if(!_0x42e3fa)return;downloadFile(_0x42e3fa,this['_getUnitName'](_0x42e3fa),_0x95ce17(0x188)),this[_0x95ce17(0x2b4)](MessageType[_0x95ce17(0x1d2)]);}[_0x2cae4a(0x1b7)](_0x1d5023){this['_getLinkByUnitId']=_0x1d5023;}async[_0x2cae4a(0x29d)](_0x1f3892,_0x169c52){const _0x3d0483=_0x2cae4a;this[_0x3d0483(0x259)][_0x3d0483(0x20f)](),this['_uploadNotificationService'][_0x3d0483(0x268)](0x0),this[_0x3d0483(0x241)](0x4),this[_0x3d0483(0x1e6)](0x1);const _0x388d3a=await this[_0x3d0483(0x213)][_0x3d0483(0x193)](_0x1f3892,_0x169c52);if(!_0x388d3a){this[_0x3d0483(0x1e0)](),this[_0x3d0483(0x259)][_0x3d0483(0x268)](0x2);return;}const _0x315cb4={'link':this[_0x3d0483(0x295)](_0x388d3a,_0x169c52),'name':_0x1f3892[_0x3d0483(0x27f)],'type':_0x169c52};return this[_0x3d0483(0x259)]['pushLink'](_0x315cb4),this[_0x3d0483(0x21c)](),this[_0x3d0483(0x259)]['updateState'](0x1),_0x388d3a;}['_getUnitID'](){const _0x36dfe7=_0x2cae4a;return this[_0x36dfe7(0x28f)]['getCurrentUnitOfType'](UniverInstanceType[_0x36dfe7(0x212)])[_0x36dfe7(0x206)]();}['_getUnitIDDoc'](){const _0x4a2ec1=_0x2cae4a;return this[_0x4a2ec1(0x28f)]['getCurrentUnitOfType'](UniverInstanceType[_0x4a2ec1(0x199)])[_0x4a2ec1(0x206)]();}[_0x2cae4a(0x2c5)](_0x5cd329){const _0x3a4335=_0x2cae4a;var _0x95b0ef;return((_0x95b0ef=this[_0x3a4335(0x28f)]['getCurrentUnitOfType'](UniverInstanceType[_0x3a4335(0x212)]))===null||_0x95b0ef===void 0x0?void 0x0:_0x95b0ef['name'])||_0x5cd329[_0x3a4335(0x27f)][_0x3a4335(0x27c)]('.')[_0x3a4335(0x283)]()||document['title'];}async['_getUnitJson'](){const _0x4bdc9a=_0x2cae4a;return this['_univerInstanceService'][_0x4bdc9a(0x266)](UniverInstanceType[_0x4bdc9a(0x212)])[_0x4bdc9a(0x29c)]();}async['_getUnitDocJson'](){const _0x3ea1f2=_0x2cae4a;return this[_0x3ea1f2(0x28f)][_0x3ea1f2(0x266)](UniverInstanceType[_0x3ea1f2(0x199)])[_0x3ea1f2(0x29c)]();}[_0x2cae4a(0x295)](_0x125768,_0xca9af7){const _0x4e8c6a=_0x2cae4a,_0x1c4c1a=new URL(window[_0x4e8c6a(0x287)]['href']);return _0x1c4c1a[_0x4e8c6a(0x197)]['set'](_0x4e8c6a(0x1df),_0x125768),_0x1c4c1a[_0x4e8c6a(0x197)][_0x4e8c6a(0x2bf)](_0x4e8c6a(0x1dd),''+_0xca9af7),_0x1c4c1a[_0x4e8c6a(0x257)]();}['_refresh'](_0x298c4c){const _0x369e9f=_0x2cae4a,_0x26e9a3=this[_0x369e9f(0x28f)]['getCurrentUnitForType'](UniverInstanceType[_0x369e9f(0x212)])['getUnitId']();this[_0x369e9f(0x28f)][_0x369e9f(0x1e8)](_0x26e9a3),this['_univerInstanceService'][_0x369e9f(0x1aa)](UniverInstanceType['UNIVER_SHEET'],_0x298c4c);}[_0x2cae4a(0x24d)](_0x37978f){const _0x131f9e=_0x2cae4a;if(_0x37978f){const {code:_0x1ea84b}=_0x37978f;switch(_0x1ea84b){case ErrorCode[_0x131f9e(0x1d4)]:this[_0x131f9e(0x2ac)][_0x131f9e(0x20f)]({'type':MessageType[_0x131f9e(0x242)],'content':this[_0x131f9e(0x277)]['t'](_0x131f9e(0x2ae))});break;case ErrorCode[_0x131f9e(0x238)]:this[_0x131f9e(0x2ac)][_0x131f9e(0x20f)]({'type':MessageType[_0x131f9e(0x242)],'content':this[_0x131f9e(0x277)]['t'](_0x131f9e(0x2bd))});break;default:this[_0x131f9e(0x2ac)][_0x131f9e(0x20f)]({'type':MessageType[_0x131f9e(0x242)],'content':this['_localeService']['t'](_0x131f9e(0x1b9))});break;}return null;}return this[_0x131f9e(0x2ac)][_0x131f9e(0x20f)]({'type':MessageType['Error'],'content':this[_0x131f9e(0x277)]['t'](_0x131f9e(0x1b9))}),null;}[_0x2cae4a(0x2b4)](_0x1ed7bf){const _0x398e84=_0x2cae4a;let _0x47f836='';switch(_0x1ed7bf){case MessageType[_0x398e84(0x1d2)]:_0x47f836=this[_0x398e84(0x277)]['t'](_0x398e84(0x20e));break;case MessageType[_0x398e84(0x1c5)]:_0x47f836=this['_localeService']['t'](_0x398e84(0x1eb));break;default:break;}this[_0x398e84(0x2ac)][_0x398e84(0x20f)]({'type':_0x1ed7bf,'content':_0x47f836});}[_0x2cae4a(0x28e)](_0x53e479){const _0xf49142=_0x2cae4a;let _0x54c8f3='';switch(_0x53e479){case MessageType[_0xf49142(0x1d2)]:_0x54c8f3=this[_0xf49142(0x277)]['t'](_0xf49142(0x288));break;case MessageType[_0xf49142(0x1c5)]:_0x54c8f3=this['_localeService']['t']('exchange.uploading');break;default:break;}this['_messageService'][_0xf49142(0x20f)]({'type':_0x53e479,'content':_0x54c8f3});}[_0x2cae4a(0x1ff)](){const _0x43101d=_0x2cae4a;this[_0x43101d(0x27b)][_0x43101d(0x1af)]({'done':this[_0x43101d(0x18e)],'count':this[_0x43101d(0x185)]});}[_0x2cae4a(0x241)](_0x341058){const _0x4893b9=_0x2cae4a;this[_0x4893b9(0x185)]+=_0x341058,this[_0x4893b9(0x1ff)]();}[_0x2cae4a(0x1e6)](_0x392224){const _0x29c03e=_0x2cae4a;this[_0x29c03e(0x18e)]+=_0x392224,this[_0x29c03e(0x18e)]=Math[_0x29c03e(0x27a)](this[_0x29c03e(0x18e)],this[_0x29c03e(0x185)]),this[_0x29c03e(0x1ff)]();}['_completeProgress'](){const _0x13c817=_0x2cae4a;this[_0x13c817(0x18e)]=this[_0x13c817(0x185)],this[_0x13c817(0x1ff)]();}['_clearProgress'](){const _0x52712c=_0x2cae4a;this[_0x52712c(0x18e)]=0x0,this[_0x52712c(0x185)]=0x0,this[_0x52712c(0x1ff)]();}[_0x2cae4a(0x1ca)](_0x58e600,_0x546ed5){const _0x7d64de=_0x2cae4a,_0x227753=_0x58e600[0x0],_0x3965d8=_0x227753[_0x7d64de(0x27f)];if(getUniverInstanceTypeByFile(_0x227753)!==_0x546ed5)return this[_0x7d64de(0x2ac)][_0x7d64de(0x20f)]({'type':MessageType[_0x7d64de(0x242)],'content':this['_localeService']['t'](_0x7d64de(0x19a),_0x3965d8)}),!![];return![];}[_0x2cae4a(0x21a)](){const _0x16479e=_0x2cae4a;return this[_0x16479e(0x185)]!==0x0&&this[_0x16479e(0x18e)]!==this['_totalUploadTaskCount'];}};function _0xc00b(_0x27e229,_0x1183ac){_0x27e229=_0x27e229-0x183;const _0x2c1b37=_0x2c1b();let _0xc00b35=_0x2c1b37[_0x27e229];return _0xc00b35;}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(_0x1e15a6){const _0x668d36=_0x2cae4a,{onClick:_0x87413,children:_0x597e86,className:_0x49e1e3}=_0x1e15a6;return jsx(_0x668d36(0x1fb),{'className':clsx(_0x668d36(0x219),_0x49e1e3),'type':_0x668d36(0x1fb),'onClick':_0x87413,'children':_0x597e86});}function UploadAgain(){const _0x78df37=_0x2cae4a,_0x14eb97=useDependency(IExchangeOperateService),_0xb762b=useDependency(LocaleService);function _0x6158b3(){const _0x5c670=_0xc00b;_0x14eb97[_0x5c670(0x271)]();}return jsx(UploadButton,{'onClick':_0x6158b3,'children':_0xb762b['t'](_0x78df37(0x1a5))});}function UploadError(){const _0x10f9c8=_0x2cae4a;return jsxs(_0x10f9c8(0x26e),{'className':_0x10f9c8(0x1ec),'children':[jsx('span',{'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']('exchange.interrupt')}),jsx(UploadAgain,{})]});}function UploadSuccess(_0x3fb10b){const _0x2d5444=_0x2cae4a,{count:_0x28c9eb}=_0x3fb10b;return jsxs('div',{'className':_0x2d5444(0x217),'children':[jsx(_0x2d5444(0x235),{'className':'univer-text-sm\x20univer-text-gray-500','children':useDependency(LocaleService)['t'](_0x2d5444(0x1fc),''+_0x28c9eb)}),jsx(UploadAgain,{})]});}function UploadCancel(){const _0x42369f=_0x2cae4a,_0x1e4ea7=useDependency(IExchangeOperateService),_0x4eaa10=useDependency(LocaleService);function _0x8f53a7(){const _0x4f7ca9=_0xc00b;_0x1e4ea7[_0x4f7ca9(0x2a3)]();}return jsx(UploadButton,{'onClick':_0x8f53a7,'children':_0x4eaa10['t'](_0x42369f(0x236))});}function UploadProgress(){const _0x42624a=_0x2cae4a,{count:_0x1adffe,done:_0x21e2b2}=useObservable(useDependency(IExchangeOperateService)[_0x42624a(0x2a5)]),[_0x332beb,_0x17b35f]=useState(_0x1adffe>0x0?_0x21e2b2/_0x1adffe:0x0);return useEffect(()=>{_0x17b35f(_0x1adffe>0x0?_0x21e2b2/_0x1adffe:0x0);},[_0x1adffe,_0x21e2b2]),jsx(_0x42624a(0x26e),{'className':_0x42624a(0x2b3),'children':jsx(_0x42624a(0x26e),{'className':_0x42624a(0x1c1),'style':{'width':Math[_0x42624a(0x2a4)](_0x332beb*0x64)+'%'}})});}function Uploading(){const _0x2c81bf=_0x2cae4a;return jsxs(_0x2c81bf(0x26e),{'className':_0x2c81bf(0x1ec),'children':[jsx(_0x2c81bf(0x235),{'className':'univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','children':useDependency(LocaleService)['t']('exchange.wait')}),jsx('div',{'className':_0x2c81bf(0x293),'children':jsx(UploadProgress,{})}),jsx(UploadCancel,{})]});}const iconMap={[0x1]:jsx(SuccessIcon,{'className':_0x2cae4a(0x1e4)}),[0x0]:jsx(ClockIcon,{'className':'univer-text-blue-500'}),[0x2]:jsx(ErrorIcon,{'className':_0x2cae4a(0x22e)})};function UploadNotification(){const _0x29e6a9=_0x2cae4a,[_0x4574cf,_0xc81917]=useState(0x0),[_0x424304,_0x5cc028]=useState(![]),[_0xac6bd7,_0x24f8dd]=useState([]),_0x599952=useDependency(IUploadNotificationService),_0x152d5b=useDependency(LocaleService);useEffect(()=>{const _0x54e0ed=_0xc00b,_0x216926=_0x599952[_0x54e0ed(0x2a9)]['subscribe'](_0x19c02a=>{_0x5cc028(_0x19c02a);}),_0x41c21b=_0x599952[_0x54e0ed(0x264)][_0x54e0ed(0x18b)](_0x1abe78=>{_0x24f8dd(_0x1abe78);}),_0x216d2f=_0x599952['state$']['subscribe'](_0x3d61c5=>{_0xc81917(_0x3d61c5);});return()=>{const _0x514533=_0x54e0ed;_0x216926[_0x514533(0x270)](),_0x41c21b[_0x514533(0x270)](),_0x216d2f[_0x514533(0x270)]();};},[]);function _0x3c7b78(){_0x5cc028(![]);}function _0x4103c5(_0x1a7284){const _0x3e4d58=_0xc00b;switch(_0x1a7284){case 0x1:return _0x152d5b['t']('exchange.uploadSuccess');case 0x0:return _0x152d5b['t'](_0x3e4d58(0x267));case 0x2:return _0x152d5b['t'](_0x3e4d58(0x22c));default:return'';}}return _0x424304&&jsxs('div',{'className':_0x29e6a9(0x19d),'children':[jsxs(_0x29e6a9(0x26e),{'className':_0x29e6a9(0x21f),'children':[jsxs(_0x29e6a9(0x235),{'className':_0x29e6a9(0x29e),'children':[jsx('span',{'className':_0x29e6a9(0x239),'children':iconMap[_0x4574cf]}),jsx(_0x29e6a9(0x235),{'className':_0x29e6a9(0x1be),'children':_0x4103c5(_0x4574cf)})]}),jsx(_0x29e6a9(0x235),{'className':_0x29e6a9(0x1ad),'onClick':_0x3c7b78,'children':jsx(CloseIcon,{})})]}),jsxs('div',{'children':[_0x4574cf===0x0&&jsx(Uploading,{}),_0x4574cf===0x2&&jsx(UploadError,{}),_0xac6bd7[_0x29e6a9(0x279)]>0x0&&jsx(LinkList,{'list':_0xac6bd7}),_0x4574cf===0x1&&jsx(UploadSuccess,{'count':_0xac6bd7[_0x29e6a9(0x279)]})]})]});}function UploadNotificationContainer(){return jsx(UploadNotification,{});}let ExchangeClientController=class ExchangeClientController extends Disposable{constructor(_0x124084,_0x69e44){const _0x47b84e=_0x2cae4a;super(),this['_injector']=_0x124084,this['_uiPartsService']=_0x69e44,this[_0x47b84e(0x1a8)]();}['_registerComponents'](){const _0xfc3763=_0x2cae4a;this[_0xfc3763(0x2c3)](this[_0xfc3763(0x24e)][_0xfc3763(0x19b)](BuiltInUIPart[_0xfc3763(0x1f6)],()=>connectInjector(UploadNotificationContainer,this[_0xfc3763(0x2b9)])));}};ExchangeClientController=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,IUIPartsService)],ExchangeClientController);let UniverExchangeClientPlugin=class UniverExchangeClientPlugin extends Plugin{constructor(_0x28110b=defaultPluginConfig,_0x1bb7f5,_0x35e9f7){const _0x4ebb19=_0x2cae4a;super(),this[_0x4ebb19(0x1c9)]=_0x28110b,this[_0x4ebb19(0x2b9)]=_0x1bb7f5,this[_0x4ebb19(0x1e1)]=_0x35e9f7;const {..._0x1c2b41}=merge({},defaultPluginConfig,this[_0x4ebb19(0x1c9)]);this[_0x4ebb19(0x1e1)][_0x4ebb19(0x1e7)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY,_0x1c2b41);}[_0x2cae4a(0x2a0)](){const _0xd54899=_0x2cae4a;registerDependencies(this[_0xd54899(0x2b9)],[[ExchangeClientController],[IExchangeOperateService,{'useClass':ExchangeOperateService}],[IExchangeService,{'useClass':ExchangeService}],[IRequestService,{'useClass':RequestService}],[IUploadNotificationService,{'useClass':UploadNotificationService}]]);}[_0x2cae4a(0x1d3)](){const _0xcfd5d6=_0x2cae4a;touchDependencies(this[_0xcfd5d6(0x2b9)],[[ExchangeClientController],[IExchangeOperateService]]);}};_defineProperty(UniverExchangeClientPlugin,_0x2cae4a(0x1bf),_0x2cae4a(0x1f9)),_defineProperty(UniverExchangeClientPlugin,_0x2cae4a(0x2a2),name),_defineProperty(UniverExchangeClientPlugin,_0x2cae4a(0x1f2),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 +1 @@
1
- const _0x330e36=_0x5a34;function _0x380b(){const _0x4ae13b=['Open(File)','Upload\x20again','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','882JqjktM','326898PAYZdE','File\x20uploaded\x20successfully','15TyyMID','560632WujayH','Cancel','{0}\x20file(s)\x20uploaded\x20successfully','4mBOKdv','115944jncziO','13181322MCsXCx','329fOMNAy','114030HRMGvA','Internal\x20unknown\x20error','Downloading','5otCbLB','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','5771028bFONMX','Download\x20success','Save\x20As','27552132tMUJKq'];_0x380b=function(){return _0x4ae13b;};return _0x380b();}function _0x5a34(_0x25358c,_0x54ae95){_0x25358c=_0x25358c-0x1a1;const _0x380be9=_0x380b();let _0x5a34aa=_0x380be9[_0x25358c];return _0x5a34aa;}(function(_0x3439fd,_0x5eb9b8){const _0x5788a0=_0x5a34,_0x4d3d5d=_0x3439fd();while(!![]){try{const _0x4f13df=parseInt(_0x5788a0(0x1a4))/0x1*(parseInt(_0x5788a0(0x1aa))/0x2)+-parseInt(_0x5788a0(0x1a6))/0x3*(-parseInt(_0x5788a0(0x1a7))/0x4)+parseInt(_0x5788a0(0x1b1))/0x5*(parseInt(_0x5788a0(0x1b3))/0x6)+parseInt(_0x5788a0(0x1ad))/0x7*(parseInt(_0x5788a0(0x1ab))/0x8)+-parseInt(_0x5788a0(0x1a3))/0x9*(-parseInt(_0x5788a0(0x1ae))/0xa)+-parseInt(_0x5788a0(0x1ac))/0xb+-parseInt(_0x5788a0(0x1b6))/0xc;if(_0x4f13df===_0x5eb9b8)break;else _0x4d3d5d['push'](_0x4d3d5d['shift']());}catch(_0x3ecc40){_0x4d3d5d['push'](_0x4d3d5d['shift']());}}}(_0x380b,0x978e8));const locale$1={'exchange':{'file':'File','upload':_0x330e36(0x1b7),'download':_0x330e36(0x1b5),'uploading':'Uploading','uploadSuccess':_0x330e36(0x1a5),'uploadSuccessTip':_0x330e36(0x1a9),'downloading':_0x330e36(0x1b0),'downloadSuccess':_0x330e36(0x1b4),'unknownMistake':'Unknown\x20mistake','networkError':'Network\x20error','tooLarge':'Data\x20is\x20too\x20large','internalError':_0x330e36(0x1af),'interrupt':_0x330e36(0x1a2),'fileTypeError':_0x330e36(0x1b2),'wait':'Please\x20wait...','cancel':_0x330e36(0x1a8),'uploadAgain':_0x330e36(0x1a1)}},locale=locale$1;export{locale as default};
1
+ const _0x4cb49a=_0x3bfe;function _0x3fdb(){const _0x11c0c4=['Uploading','33079585osoSrX','Internal\x20unknown\x20error','6913298yOZCxY','1195OyCuoQ','4IFMiaM','Network\x20error','Data\x20is\x20too\x20large','Open(File)','Downloading','Cancel','File\x20uploaded\x20successfully','577851RRUuuG','Download\x20success','24osAvUN','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','1vOdHDv','{0}\x20file(s)\x20uploaded\x20successfully','15126zqXHEA','Unknown\x20mistake','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','8780590SLHbfQ','Please\x20wait...','1797165LvbcuG','1595794MgmWxs'];_0x3fdb=function(){return _0x11c0c4;};return _0x3fdb();}(function(_0x11b540,_0x44703e){const _0x1eb1ed=_0x3bfe,_0x13168c=_0x11b540();while(!![]){try{const _0xdc09ca=-parseInt(_0x1eb1ed(0xeb))/0x1*(-parseInt(_0x1eb1ed(0xda))/0x2)+-parseInt(_0x1eb1ed(0xe7))/0x3*(parseInt(_0x1eb1ed(0xe0))/0x4)+parseInt(_0x1eb1ed(0xdf))/0x5*(-parseInt(_0x1eb1ed(0xd4))/0x6)+-parseInt(_0x1eb1ed(0xde))/0x7+parseInt(_0x1eb1ed(0xe9))/0x8*(-parseInt(_0x1eb1ed(0xd9))/0x9)+-parseInt(_0x1eb1ed(0xd7))/0xa+parseInt(_0x1eb1ed(0xdc))/0xb;if(_0xdc09ca===_0x44703e)break;else _0x13168c['push'](_0x13168c['shift']());}catch(_0x400273){_0x13168c['push'](_0x13168c['shift']());}}}(_0x3fdb,0x851f4));function _0x3bfe(_0x3f5c36,_0xd993e9){_0x3f5c36=_0x3f5c36-0xd3;const _0x3fdb51=_0x3fdb();let _0x3bfeff=_0x3fdb51[_0x3f5c36];return _0x3bfeff;}const locale$1={'exchange':{'file':'File','upload':_0x4cb49a(0xe3),'download':'Save\x20As','uploading':_0x4cb49a(0xdb),'uploadSuccess':_0x4cb49a(0xe6),'uploadSuccessTip':_0x4cb49a(0xd3),'downloading':_0x4cb49a(0xe4),'downloadSuccess':_0x4cb49a(0xe8),'unknownMistake':_0x4cb49a(0xd5),'networkError':_0x4cb49a(0xe1),'tooLarge':_0x4cb49a(0xe2),'internalError':_0x4cb49a(0xdd),'interrupt':_0x4cb49a(0xea),'fileTypeError':_0x4cb49a(0xd6),'wait':_0x4cb49a(0xd8),'cancel':_0x4cb49a(0xe5),'uploadAgain':'Upload\x20again'}},locale=locale$1;export{locale as default};
@@ -1 +1 @@
1
- const _0x1fbd7c=_0x4f7c;function _0x4f7c(_0x1fda84,_0x16dfea){_0x1fda84=_0x1fda84-0x99;const _0x4d312c=_0x4d31();let _0x4f7cd3=_0x4d312c[_0x1fda84];return _0x4f7cd3;}(function(_0x28c358,_0x295167){const _0x4d4b22=_0x4f7c,_0x51d134=_0x28c358();while(!![]){try{const _0x538561=-parseInt(_0x4d4b22(0xac))/0x1*(parseInt(_0x4d4b22(0xa0))/0x2)+-parseInt(_0x4d4b22(0x9d))/0x3*(parseInt(_0x4d4b22(0xa6))/0x4)+-parseInt(_0x4d4b22(0xab))/0x5+-parseInt(_0x4d4b22(0x9a))/0x6+-parseInt(_0x4d4b22(0x9e))/0x7*(-parseInt(_0x4d4b22(0xa7))/0x8)+-parseInt(_0x4d4b22(0xa2))/0x9+parseInt(_0x4d4b22(0xae))/0xa;if(_0x538561===_0x295167)break;else _0x51d134['push'](_0x51d134['shift']());}catch(_0x2d34b0){_0x51d134['push'](_0x51d134['shift']());}}}(_0x4d31,0xb8a29));const locale={'exchange':{'file':_0x1fbd7c(0xa1),'upload':'Open(File)','download':'Save\x20As','uploading':_0x1fbd7c(0x9f),'uploadSuccess':'File\x20uploaded\x20successfully','uploadSuccessTip':_0x1fbd7c(0x99),'downloading':_0x1fbd7c(0xa3),'downloadSuccess':'Download\x20success','unknownMistake':_0x1fbd7c(0xaa),'networkError':_0x1fbd7c(0xa5),'tooLarge':_0x1fbd7c(0xa4),'internalError':_0x1fbd7c(0xa8),'interrupt':_0x1fbd7c(0x9c),'fileTypeError':_0x1fbd7c(0xa9),'wait':_0x1fbd7c(0x9b),'cancel':'Cancel','uploadAgain':_0x1fbd7c(0xad)}};function _0x4d31(){const _0x175b5b=['8402412DyevHf','Please\x20wait...','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','1544745wnazEe','224CHVUKJ','Uploading','48154yFXmSn','File','3852405YnftBz','Downloading','Data\x20is\x20too\x20large','Network\x20error','4miWBIc','132536SCAQlJ','Internal\x20unknown\x20error','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','Unknown\x20mistake','3843275BpYHRt','55wqWafE','Upload\x20again','46623730PFgEQr','{0}\x20file(s)\x20uploaded\x20successfully'];_0x4d31=function(){return _0x175b5b;};return _0x4d31();}export{locale as default};
1
+ function _0x29ec(_0x437455,_0x4b640d){_0x437455=_0x437455-0x96;const _0x6079e5=_0x6079();let _0x29ecd7=_0x6079e5[_0x437455];return _0x29ecd7;}function _0x6079(){const _0x3c0165=['Save\x20As','Network\x20error','629722mmUsrL','104610rtNONn','11xUZYqi','Download\x20success','Uploading','891970MCsNCZ','49taxvRp','4797378BvPAGA','Downloading','Upload\x20again','4UYBJUM','603609qFDaeh','75uqIHfO','224880CuPWSv','Open(File)','1382384hfsePh','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','File','File\x20uploaded\x20successfully','Cancel','Please\x20wait...'];_0x6079=function(){return _0x3c0165;};return _0x6079();}const _0x33b040=_0x29ec;(function(_0x36a660,_0x1af93a){const _0x4d4e57=_0x29ec,_0x2448d5=_0x36a660();while(!![]){try{const _0x2ef4ce=-parseInt(_0x4d4e57(0x97))/0x1+parseInt(_0x4d4e57(0xa1))/0x2*(parseInt(_0x4d4e57(0xa2))/0x3)+-parseInt(_0x4d4e57(0xa6))/0x4+-parseInt(_0x4d4e57(0xa3))/0x5*(-parseInt(_0x4d4e57(0x98))/0x6)+parseInt(_0x4d4e57(0x9d))/0x7*(parseInt(_0x4d4e57(0xa4))/0x8)+parseInt(_0x4d4e57(0x9e))/0x9+-parseInt(_0x4d4e57(0x9c))/0xa*(parseInt(_0x4d4e57(0x99))/0xb);if(_0x2ef4ce===_0x1af93a)break;else _0x2448d5['push'](_0x2448d5['shift']());}catch(_0x472c97){_0x2448d5['push'](_0x2448d5['shift']());}}}(_0x6079,0x5060c));const locale={'exchange':{'file':_0x33b040(0xa8),'upload':_0x33b040(0xa5),'download':_0x33b040(0xac),'uploading':_0x33b040(0x9b),'uploadSuccess':_0x33b040(0xa9),'uploadSuccessTip':'{0}\x20file(s)\x20uploaded\x20successfully','downloading':_0x33b040(0x9f),'downloadSuccess':_0x33b040(0x9a),'unknownMistake':'Unknown\x20mistake','networkError':_0x33b040(0x96),'tooLarge':'Data\x20is\x20too\x20large','internalError':'Internal\x20unknown\x20error','interrupt':_0x33b040(0xa7),'fileTypeError':'Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','wait':_0x33b040(0xab),'cancel':_0x33b040(0xaa),'uploadAgain':_0x33b040(0xa0)}};export{locale as default};