@univerjs-pro/exchange-client 1.0.0-alpha.7 → 1.0.0-alpha.8
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.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/index.d.ts +2 -3
- package/lib/types/services/exchange.service.d.ts +10 -17
- package/lib/types/services/operate.service.d.ts +33 -44
- package/lib/types/services/utils/collaboration.d.ts +2 -0
- package/lib/types/services/utils/snapshot.d.ts +14 -15
- package/lib/types/services/utils/tool.d.ts +0 -7
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +11 -10
package/lib/es/locale/pl-PL.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x16cd58=_0x3fb0;(function(_0x44ac02,_0x4e9192){const _0x32fcbf=_0x3fb0,_0x53f3e3=_0x44ac02();while(!![]){try{const _0x2209cf=-parseInt(_0x32fcbf(0xc8))/0x1+-parseInt(_0x32fcbf(0xca))/0x2*(parseInt(_0x32fcbf(0xd2))/0x3)+parseInt(_0x32fcbf(0xc2))/0x4*(-parseInt(_0x32fcbf(0xcd))/0x5)+parseInt(_0x32fcbf(0xd6))/0x6*(parseInt(_0x32fcbf(0xcb))/0x7)+-parseInt(_0x32fcbf(0xd8))/0x8+-parseInt(_0x32fcbf(0xc3))/0x9*(parseInt(_0x32fcbf(0xc7))/0xa)+parseInt(_0x32fcbf(0xce))/0xb*(parseInt(_0x32fcbf(0xc6))/0xc);if(_0x2209cf===_0x4e9192)break;else _0x53f3e3['push'](_0x53f3e3['shift']());}catch(_0x3c6b6d){_0x53f3e3['push'](_0x53f3e3['shift']());}}}(_0x1f29,0x6b406));function _0x3fb0(_0x374149,_0x1fe37e){_0x374149=_0x374149-0xc2;const _0x1f2980=_0x1f29();let _0x3fb083=_0x1f2980[_0x374149];return _0x3fb083;}const e={'exchange-client':{'uploading':'Przesyłanie','uploadSuccess':_0x16cd58(0xd5),'uploadSuccessTip':_0x16cd58(0xcc),'downloading':'Pobieranie','downloadSuccess':_0x16cd58(0xcf),'unknownMistake':_0x16cd58(0xc5),'networkError':_0x16cd58(0xd0),'tooLarge':_0x16cd58(0xc4),'internalError':'Wewnętrzny\x20nieznany\x20błąd','interrupt':_0x16cd58(0xc9),'fileTypeError':_0x16cd58(0xd3),'wait':_0x16cd58(0xd4),'cancel':_0x16cd58(0xd7),'uploadAgain':_0x16cd58(0xd1)}};export{e as default};function _0x1f29(){const _0x5236ae=['Połączenie\x20sieciowe\x20zostało\x20przerwane\x20i\x20przesyłanie\x20pliku\x20nie\x20powiodło\x20się','24lIejHw','1869StJczj','Pomyślnie\x20przesłano\x20{0}\x20plik(ów)','3121295sGgIIu','28036602nPTAwT','Pobieranie\x20zakończone\x20sukcesem','Błąd\x20sieci','Prześlij\x20ponownie','118254BPAGOa','Wybrany\x20plik\x20[{0}]\x20nie\x20jest\x20obsługiwany\x20do\x20przesyłania','Proszę\x20czekać...','Plik\x20przesłany\x20pomyślnie','18132OVpBLm','Anuluj','2963184zWDgkC','4qfIbhf','58257DBINxb','Dane\x20są\x20zbyt\x20duże','Nieznany\x20błąd','12RTmCgE','1150PrVDEx','704286zstUVv'];_0x1f29=function(){return _0x5236ae;};return _0x1f29();}
|
package/lib/es/locale/pt-BR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x4733a3=_0x592a;(function(_0x35e2e5,_0x2cfe19){const _0x48581c=_0x592a,_0x4ca606=_0x35e2e5();while(!![]){try{const _0x1947d2=parseInt(_0x48581c(0x1d1))/0x1+-parseInt(_0x48581c(0x1d0))/0x2+-parseInt(_0x48581c(0x1d9))/0x3+parseInt(_0x48581c(0x1d4))/0x4*(parseInt(_0x48581c(0x1da))/0x5)+-parseInt(_0x48581c(0x1db))/0x6*(parseInt(_0x48581c(0x1d8))/0x7)+parseInt(_0x48581c(0x1d6))/0x8*(parseInt(_0x48581c(0x1de))/0x9)+-parseInt(_0x48581c(0x1dd))/0xa;if(_0x1947d2===_0x2cfe19)break;else _0x4ca606['push'](_0x4ca606['shift']());}catch(_0x59761e){_0x4ca606['push'](_0x4ca606['shift']());}}}(_0x283d,0xf3b1a));function _0x592a(_0x5c42f6,_0x56a198){_0x5c42f6=_0x5c42f6-0x1cb;const _0x283d03=_0x283d();let _0x592a1c=_0x283d03[_0x5c42f6];return _0x592a1c;}const e={'exchange-client':{'uploading':_0x4733a3(0x1d3),'uploadSuccess':'Arquivo\x20enviado\x20com\x20sucesso','uploadSuccessTip':_0x4733a3(0x1dc),'downloading':_0x4733a3(0x1d7),'downloadSuccess':_0x4733a3(0x1cc),'unknownMistake':_0x4733a3(0x1cb),'networkError':_0x4733a3(0x1cf),'tooLarge':_0x4733a3(0x1cd),'internalError':'Erro\x20interno\x20desconhecido','interrupt':_0x4733a3(0x1ce),'fileTypeError':_0x4733a3(0x1d2),'wait':'Aguarde...','cancel':_0x4733a3(0x1d5),'uploadAgain':'Enviar\x20novamente'}};function _0x283d(){const _0x4f65f6=['O\x20arquivo\x20selecionado\x20[{0}]\x20não\x20é\x20suportado\x20para\x20envio','Enviando','4PMwvWO','Cancelar','8DQORUZ','Baixando','350hhqPfq','1614843SPrFmy','8015HMXWrJ','52728lJSHRa','{0}\x20arquivo(s)\x20enviado(s)\x20com\x20sucesso','7143480AaNGLq','12756213ANJLCI','Erro\x20desconhecido','Download\x20concluído\x20com\x20sucesso','Os\x20dados\x20são\x20muito\x20grandes','A\x20conexão\x20de\x20rede\x20foi\x20interrompida\x20e\x20o\x20envio\x20do\x20arquivo\x20falhou','Erro\x20de\x20rede','1099120BuWfbs','1820799TbTiDt'];_0x283d=function(){return _0x4f65f6;};return _0x283d();}export{e as default};
|
package/lib/es/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x3c6c4c=_0x670a;(function(_0x404e72,_0x569404){const _0x24ef9f=_0x670a,_0xa59449=_0x404e72();while(!![]){try{const _0x4b0e41=parseInt(_0x24ef9f(0x16e))/0x1*(-parseInt(_0x24ef9f(0x16c))/0x2)+parseInt(_0x24ef9f(0x166))/0x3+-parseInt(_0x24ef9f(0x15f))/0x4*(parseInt(_0x24ef9f(0x168))/0x5)+-parseInt(_0x24ef9f(0x173))/0x6*(parseInt(_0x24ef9f(0x164))/0x7)+-parseInt(_0x24ef9f(0x163))/0x8+parseInt(_0x24ef9f(0x16b))/0x9+parseInt(_0x24ef9f(0x174))/0xa*(parseInt(_0x24ef9f(0x162))/0xb);if(_0x4b0e41===_0x569404)break;else _0xa59449['push'](_0xa59449['shift']());}catch(_0x329b9d){_0xa59449['push'](_0xa59449['shift']());}}}(_0x2fc8,0x2d543));function _0x670a(_0x619781,_0x4c5ae3){_0x619781=_0x619781-0x15f;const _0x2fc86c=_0x2fc8();let _0x670a40=_0x2fc86c[_0x619781];return _0x670a40;}function _0x2fc8(){const _0x31d4a8=['495mdykkX','2793072DzDWkf','7231ymyVwT','Скачивание','172161ZdPYaL','Сетевая\x20ошибка','5vIeyTx','{0}\x20файл(ов)\x20успешно\x20загружен(о)','Пожалуйста,\x20подождите...','2646441ubYVln','36230vfekBO','Загрузка','13UaCnHF','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','Скачивание\x20успешно','Данные\x20слишком\x20большие','1254FiBEgW','176140svaKWT','Внутренняя\x20неизвестная\x20ошибка','631492yCOZga','Файл\x20успешно\x20загружен','Загрузить\x20снова'];_0x2fc8=function(){return _0x31d4a8;};return _0x2fc8();}const e={'exchange-client':{'uploading':_0x3c6c4c(0x16d),'uploadSuccess':_0x3c6c4c(0x160),'uploadSuccessTip':_0x3c6c4c(0x169),'downloading':_0x3c6c4c(0x165),'downloadSuccess':_0x3c6c4c(0x171),'unknownMistake':'Неизвестная\x20ошибка','networkError':_0x3c6c4c(0x167),'tooLarge':_0x3c6c4c(0x172),'internalError':_0x3c6c4c(0x175),'interrupt':_0x3c6c4c(0x170),'fileTypeError':_0x3c6c4c(0x16f),'wait':_0x3c6c4c(0x16a),'cancel':'Отмена','uploadAgain':_0x3c6c4c(0x161)}};export{e as default};
|
package/lib/es/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2fbc9b=_0x53d2;function _0x299a(){const _0x20ad34=['24WIwzRz','139746vzsXOR','Sieťová\x20chyba','Vybraný\x20súbor\x20[{0}]\x20nie\x20je\x20podporovaný\x20na\x20nahrávanie','3492896cysgMZ','Sieťové\x20pripojenie\x20bolo\x20prerušené\x20a\x20nahrávanie\x20súboru\x20zlyhalo','3221410exCVsE','14XwXsYx','Sťahovanie','9kQJkrJ','Prosím\x20počkajte...','Nahrať\x20znova','2907785nTUots','7557BxZpVc','1864afLPtQ','Interná\x20neznáma\x20chyba','244tmUHSA','Nahrávanie','Neznáma\x20chyba','Dáta\x20sú\x20príliš\x20veľké','1044942Uibcep','Súbor\x20bol\x20úspešne\x20nahraný'];_0x299a=function(){return _0x20ad34;};return _0x299a();}(function(_0x4d1f40,_0x4d599c){const _0x4c20e8=_0x53d2,_0x1c344a=_0x4d1f40();while(!![]){try{const _0x3030f7=parseInt(_0x4c20e8(0x9f))/0x1*(-parseInt(_0x4c20e8(0xa1))/0x2)+parseInt(_0x4c20e8(0xa8))/0x3*(parseInt(_0x4c20e8(0xa7))/0x4)+parseInt(_0x4c20e8(0x9d))/0x5+-parseInt(_0x4c20e8(0xa5))/0x6*(parseInt(_0x4c20e8(0x98))/0x7)+parseInt(_0x4c20e8(0x95))/0x8*(parseInt(_0x4c20e8(0x9a))/0x9)+-parseInt(_0x4c20e8(0x97))/0xa+-parseInt(_0x4c20e8(0x9e))/0xb;if(_0x3030f7===_0x4d599c)break;else _0x1c344a['push'](_0x1c344a['shift']());}catch(_0x26192d){_0x1c344a['push'](_0x1c344a['shift']());}}}(_0x299a,0x61707));function _0x53d2(_0x3ec542,_0x5b61ff){_0x3ec542=_0x3ec542-0x93;const _0x299aa6=_0x299a();let _0x53d2be=_0x299aa6[_0x3ec542];return _0x53d2be;}const e={'exchange-client':{'uploading':_0x2fbc9b(0xa2),'uploadSuccess':_0x2fbc9b(0xa6),'uploadSuccessTip':'Úspešne\x20nahraných\x20{0}\x20súborov','downloading':_0x2fbc9b(0x99),'downloadSuccess':'Sťahovanie\x20úspešné','unknownMistake':_0x2fbc9b(0xa3),'networkError':_0x2fbc9b(0x93),'tooLarge':_0x2fbc9b(0xa4),'internalError':_0x2fbc9b(0xa0),'interrupt':_0x2fbc9b(0x96),'fileTypeError':_0x2fbc9b(0x94),'wait':_0x2fbc9b(0x9b),'cancel':'Zrušiť','uploadAgain':_0x2fbc9b(0x9c)}};export{e as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1285(){const _0x4f2d4c=['24521OxPBTd','52773lsSARH','45NOOsbh','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','Đang\x20tải\x20xuống','86884RtuqmX','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','237462htiHte','15846kRelwa','Hủy\x20bỏ','923292dHtupt','Vui\x20lòng\x20đợi...','Tải\x20lên\x20tệp\x20thành\x20công','Lỗi\x20mạng','152cWOMhr','1181010XWPFPD','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','Tải\x20lên\x20lại','395oGKRWO','Tải\x20xuống\x20thành\x20công'];_0x1285=function(){return _0x4f2d4c;};return _0x1285();}const _0x5df3c6=_0x582d;(function(_0x5b9c12,_0x529d8d){const _0x1bbb44=_0x582d,_0x514647=_0x5b9c12();while(!![]){try{const _0x10c06d=parseInt(_0x1bbb44(0x180))/0x1+-parseInt(_0x1bbb44(0x17e))/0x2+parseInt(_0x1bbb44(0x17a))/0x3+parseInt(_0x1bbb44(0x16f))/0x4+-parseInt(_0x1bbb44(0x177))/0x5*(-parseInt(_0x1bbb44(0x181))/0x6)+parseInt(_0x1bbb44(0x179))/0x7*(parseInt(_0x1bbb44(0x173))/0x8)+-parseInt(_0x1bbb44(0x17b))/0x9*(parseInt(_0x1bbb44(0x174))/0xa);if(_0x10c06d===_0x529d8d)break;else _0x514647['push'](_0x514647['shift']());}catch(_0x38df48){_0x514647['push'](_0x514647['shift']());}}}(_0x1285,0x1f095));function _0x582d(_0xea8c10,_0x1fbfe2){_0xea8c10=_0xea8c10-0x16f;const _0x128523=_0x1285();let _0x582dfa=_0x128523[_0xea8c10];return _0x582dfa;}const e={'exchange-client':{'uploading':'Đang\x20tải\x20lên','uploadSuccess':_0x5df3c6(0x171),'uploadSuccessTip':_0x5df3c6(0x17c),'downloading':_0x5df3c6(0x17d),'downloadSuccess':_0x5df3c6(0x178),'unknownMistake':'Lỗi\x20không\x20xác\x20định','networkError':_0x5df3c6(0x172),'tooLarge':'Luồng\x20dữ\x20liệu\x20quá\x20lớn','internalError':'Lỗi\x20không\x20xác\x20định\x20bên\x20trong','interrupt':_0x5df3c6(0x17f),'fileTypeError':_0x5df3c6(0x175),'wait':_0x5df3c6(0x170),'cancel':_0x5df3c6(0x182),'uploadAgain':_0x5df3c6(0x176)}};export{e as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x242af7=_0x5b1a;function _0x5b1a(_0x2bd721,_0x45f881){_0x2bd721=_0x2bd721-0xc0;const _0x85c1d8=_0x85c1();let _0x5b1a6f=_0x85c1d8[_0x2bd721];return _0x5b1a6f;}function _0x85c1(){const _0x50d596=['请稍等...','1359896BOcRpX','5278860UYoKMU','未知错误','2964928jtQDPd','文件上传成功','内部未知错误','14954233vPIzpZ','7074010evczOM','网络异常','下载成功','下载中','586558nKtLjt','再次上传','8534436yiIKZK','所选文件\x20[{0}]\x20不支持上传'];_0x85c1=function(){return _0x50d596;};return _0x85c1();}(function(_0xb22067,_0x132f57){const _0x22be40=_0x5b1a,_0x1bf78f=_0xb22067();while(!![]){try{const _0x38cfb7=-parseInt(_0x22be40(0xcb))/0x1+parseInt(_0x22be40(0xc3))/0x2+-parseInt(_0x22be40(0xc1))/0x3+-parseInt(_0x22be40(0xc0))/0x4+-parseInt(_0x22be40(0xc7))/0x5+parseInt(_0x22be40(0xcd))/0x6+parseInt(_0x22be40(0xc6))/0x7;if(_0x38cfb7===_0x132f57)break;else _0x1bf78f['push'](_0x1bf78f['shift']());}catch(_0x242278){_0x1bf78f['push'](_0x1bf78f['shift']());}}}(_0x85c1,0xe58cb));const e={'exchange-client':{'uploading':'上传中','uploadSuccess':_0x242af7(0xc4),'uploadSuccessTip':'{0}个文件上传成功','downloading':_0x242af7(0xca),'downloadSuccess':_0x242af7(0xc9),'unknownMistake':_0x242af7(0xc2),'networkError':_0x242af7(0xc8),'tooLarge':'数据流过大','internalError':_0x242af7(0xc5),'interrupt':'网络连接中断,文件上传失败','fileTypeError':_0x242af7(0xce),'wait':_0x242af7(0xcf),'cancel':'取消','uploadAgain':_0x242af7(0xcc)}};export{e as default};
|
package/lib/es/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3debc8=_0x30f3;(function(_0x4f70a8,_0x5a06f7){const _0x1b642b=_0x30f3,_0x413a57=_0x4f70a8();while(!![]){try{const _0x2439d0=-parseInt(_0x1b642b(0x143))/0x1*(-parseInt(_0x1b642b(0x13d))/0x2)+-parseInt(_0x1b642b(0x147))/0x3*(-parseInt(_0x1b642b(0x142))/0x4)+parseInt(_0x1b642b(0x140))/0x5+parseInt(_0x1b642b(0x146))/0x6*(-parseInt(_0x1b642b(0x14a))/0x7)+-parseInt(_0x1b642b(0x149))/0x8*(parseInt(_0x1b642b(0x14c))/0x9)+-parseInt(_0x1b642b(0x145))/0xa+parseInt(_0x1b642b(0x14e))/0xb;if(_0x2439d0===_0x5a06f7)break;else _0x413a57['push'](_0x413a57['shift']());}catch(_0x1e1741){_0x413a57['push'](_0x413a57['shift']());}}}(_0x3337,0xb264a));function _0x30f3(_0x342412,_0x30fc3a){_0x342412=_0x342412-0x13b;const _0x33371d=_0x3337();let _0x30f397=_0x33371d[_0x342412];return _0x30f397;}function _0x3337(){const _0x5e6759=['資料流過大','1048912aHyFIb','10051WjkFSn','所選檔案\x20[{0}]\x20不支援上傳','665260WmVEcG','16782bWpena','6GLAPNj','下載成功','692352jQzgQj','2828oERgva','{0}個檔案上傳成功','108VLXajl','請稍等...','13496670mpnIrr','再次上傳','網絡異常','108raDeFp','下載中','檔案上傳成功','3357800hTYuPa'];_0x3337=function(){return _0x5e6759;};return _0x3337();}const e={'exchange-client':{'uploading':'上傳中','uploadSuccess':_0x3debc8(0x13f),'uploadSuccessTip':_0x3debc8(0x14b),'downloading':_0x3debc8(0x13e),'downloadSuccess':_0x3debc8(0x148),'unknownMistake':'未知錯誤','networkError':_0x3debc8(0x13c),'tooLarge':_0x3debc8(0x141),'internalError':'內部未知錯誤','interrupt':'網絡連線中斷,檔案上傳失敗','fileTypeError':_0x3debc8(0x144),'wait':_0x3debc8(0x14d),'cancel':'取消','uploadAgain':_0x3debc8(0x13b)}};export{e as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x4746(_0x1d2261,_0x310531){_0x1d2261=_0x1d2261-0xd7;const _0x190e63=_0x190e();let _0x47468b=_0x190e63[_0x1d2261];return _0x47468b;}const _0x155241=_0x4746;(function(_0x426a5b,_0x86b4c6){const _0x5417c7=_0x4746,_0x53f1b0=_0x426a5b();while(!![]){try{const _0x59b225=-parseInt(_0x5417c7(0xe2))/0x1*(-parseInt(_0x5417c7(0xdc))/0x2)+parseInt(_0x5417c7(0xdd))/0x3+-parseInt(_0x5417c7(0xe9))/0x4*(-parseInt(_0x5417c7(0xe4))/0x5)+parseInt(_0x5417c7(0xd7))/0x6+-parseInt(_0x5417c7(0xde))/0x7*(parseInt(_0x5417c7(0xe0))/0x8)+parseInt(_0x5417c7(0xe5))/0x9*(parseInt(_0x5417c7(0xdb))/0xa)+-parseInt(_0x5417c7(0xd8))/0xb;if(_0x59b225===_0x86b4c6)break;else _0x53f1b0['push'](_0x53f1b0['shift']());}catch(_0x5ad2f2){_0x53f1b0['push'](_0x53f1b0['shift']());}}}(_0x190e,0xe7385));function _0x190e(){const _0x2ddd85=['{0}個檔案上傳成功','再次上傳','未知錯誤','2174820urFNMA','檔案上傳成功','2998362Hlmmyu','24053700aeoJkw','上傳中','資料流過大','20XHuBnn','24FNwxGm','1031955hEOMHj','35xirvhO','下載中','1498088PiBxuV','網路異常','27428oCKBND','所選檔案\x20[{0}]\x20不支援上傳','10Yjdjxo','8144208ydIJAG'];_0x190e=function(){return _0x2ddd85;};return _0x190e();}const e={'exchange-client':{'uploading':_0x155241(0xd9),'uploadSuccess':_0x155241(0xea),'uploadSuccessTip':_0x155241(0xe6),'downloading':_0x155241(0xdf),'downloadSuccess':'下載成功','unknownMistake':_0x155241(0xe8),'networkError':_0x155241(0xe1),'tooLarge':_0x155241(0xda),'internalError':'內部未知錯誤','interrupt':'網路連線中斷,檔案上傳失敗','fileTypeError':_0x155241(0xe3),'wait':'請稍等...','cancel':'取消','uploadAgain':_0x155241(0xe7)}};export{e as default};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var _0x56fc14=_0x24d9;(function(_0x2378a1,_0x25820e){var _0x27b4ae=_0x24d9,_0x26330b=_0x2378a1();while(!![]){try{var _0x3eb287=parseInt(_0x27b4ae(0x121))/0x1*(parseInt(_0x27b4ae(0x111))/0x2)+-parseInt(_0x27b4ae(0x11a))/0x3*(parseInt(_0x27b4ae(0x11c))/0x4)+parseInt(_0x27b4ae(0x109))/0x5+parseInt(_0x27b4ae(0x10e))/0x6+-parseInt(_0x27b4ae(0x10c))/0x7*(-parseInt(_0x27b4ae(0x116))/0x8)+-parseInt(_0x27b4ae(0x115))/0x9*(parseInt(_0x27b4ae(0x106))/0xa)+parseInt(_0x27b4ae(0x118))/0xb;if(_0x3eb287===_0x25820e)break;else _0x26330b['push'](_0x26330b['shift']());}catch(_0x194277){_0x26330b['push'](_0x26330b['shift']());}}}(_0xd350,0xad96d));import{IExchangeService as _0x28c189}from'@univerjs-pro/exchange-client';import{UniverInstanceType as _0x2d688f}from'@univerjs/core';function _0xd350(){var _0x416cf6=['exportDOCXBySnapshotAsync','UNIVER_SHEET','UNIVER_DOC','importPPTXToUnitIdAsync','importPPTXToSnapshot','exportPPTXBySnapshot','130oVXhGE','exportXLSXBySnapshotAsync','exportPPTXByUnitId','1667170bxytCN','downloadFile','importPPTXToSnapshotAsync','35SSTCdx','get','125490PNNKHw','exportXLSXByUnitId','importXLSXToSnapshot','2jdVCLR','transformWorkbookDataToSnapshotJsonAsync','exportPPTXByUnitIdAsync','exportDOCXByUnitIdAsync','641655McJpeJ','483176bTXVRy','exportDOCXByUnitId','1886170cgePKG','exportXLSXBySnapshot','2181qDJyvv','importFileToUnitId','3192Etxuhg','exportDOCXBySnapshot','importDOCXToSnapshotAsync','transformSnapshotJsonToWorkbookData','importDOCXToUnitIdAsync','1390198lOZddm','_injector','transformSnapshotJsonToWorkbookDataAsync','UNIVER_SLIDE'];_0xd350=function(){return _0x416cf6;};return _0xd350();}function _0x24d9(_0x17ff38,_0x1dcb6f){_0x17ff38=_0x17ff38-0x103;var _0xd35042=_0xd350();var _0x24d968=_0xd35042[_0x17ff38];return _0x24d968;}import{FUniver as _0x87f6a}from'@univerjs/core/facade';var r=class extends _0x87f6a{[_0x56fc14(0x10a)](_0x44d9fe,_0x1a1107,_0x3382a1){var _0x1f5420=_0x56fc14;this['_injector'][_0x1f5420(0x10d)](_0x28c189)[_0x1f5420(0x10a)](_0x44d9fe,_0x1a1107,_0x3382a1);}async[_0x56fc14(0x123)](_0x3c5ddf){var _0x2b1113=_0x56fc14;return this['_injector'][_0x2b1113(0x10d)](_0x28c189)[_0x2b1113(0x11f)](_0x3c5ddf);}async[_0x56fc14(0x112)](_0x4306bc){var _0x275faf=_0x56fc14;return this[_0x275faf(0x122)][_0x275faf(0x10d)](_0x28c189)['transformWorkbookDataToSnapshotJson'](_0x4306bc);}async['importXLSXToUnitIdAsync'](_0x54c71c){var _0x230294=_0x56fc14;return this[_0x230294(0x122)]['get'](_0x28c189)[_0x230294(0x11b)](_0x54c71c,_0x2d688f[_0x230294(0x126)]);}async['importXLSXToSnapshotAsync'](_0x3ce04f){var _0x31b2c5=_0x56fc14;return this[_0x31b2c5(0x122)][_0x31b2c5(0x10d)](_0x28c189)[_0x31b2c5(0x110)](_0x3ce04f);}async['exportXLSXByUnitIdAsync'](_0x599aec){var _0x4ac91f=_0x56fc14;return this[_0x4ac91f(0x122)][_0x4ac91f(0x10d)](_0x28c189)[_0x4ac91f(0x10f)](_0x599aec);}async[_0x56fc14(0x107)](_0xffca6c){var _0x357961=_0x56fc14;return this[_0x357961(0x122)]['get'](_0x28c189)[_0x357961(0x119)](_0xffca6c);}async[_0x56fc14(0x120)](_0x4fa81c){var _0x4649a7=_0x56fc14;return this[_0x4649a7(0x122)][_0x4649a7(0x10d)](_0x28c189)['importFileToUnitId'](_0x4fa81c,_0x2d688f[_0x4649a7(0x127)]);}async[_0x56fc14(0x11e)](_0x49234f){var _0x16eae6=_0x56fc14;return this[_0x16eae6(0x122)]['get'](_0x28c189)['importDOCXToSnapshot'](_0x49234f);}async[_0x56fc14(0x125)](_0x28b118){var _0x6c722a=_0x56fc14;return this['_injector'][_0x6c722a(0x10d)](_0x28c189)[_0x6c722a(0x11d)](_0x28b118);}async[_0x56fc14(0x114)](_0x16e2d9){var _0x3d32f2=_0x56fc14;return this['_injector'][_0x3d32f2(0x10d)](_0x28c189)[_0x3d32f2(0x117)](_0x16e2d9);}async[_0x56fc14(0x103)](_0x3e0ff3){var _0x4ca536=_0x56fc14;return this[_0x4ca536(0x122)][_0x4ca536(0x10d)](_0x28c189)['importFileToUnitId'](_0x3e0ff3,_0x2d688f[_0x4ca536(0x124)]);}async[_0x56fc14(0x10b)](_0x2057b8){var _0x227378=_0x56fc14;return this[_0x227378(0x122)]['get'](_0x28c189)[_0x227378(0x104)](_0x2057b8);}async[_0x56fc14(0x113)](_0x5a3d64){var _0x11b2d2=_0x56fc14;return this[_0x11b2d2(0x122)]['get'](_0x28c189)[_0x11b2d2(0x108)](_0x5a3d64);}async['exportPPTXBySnapshotAsync'](_0x2b722e){var _0x1b0d17=_0x56fc14;return this['_injector'][_0x1b0d17(0x10d)](_0x28c189)[_0x1b0d17(0x105)](_0x2b722e);}};_0x87f6a['extend'](r);export{};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x33286a=_0x5cad;(function(_0x31bdc8,_0x5e038a){const _0x1615aa=_0x5cad,_0x4de0c8=_0x31bdc8();while(!![]){try{const _0xdb03c6=parseInt(_0x1615aa(0x1d7))/0x1*(parseInt(_0x1615aa(0x264))/0x2)+parseInt(_0x1615aa(0x265))/0x3+parseInt(_0x1615aa(0x17c))/0x4*(-parseInt(_0x1615aa(0x2ca))/0x5)+parseInt(_0x1615aa(0x209))/0x6*(-parseInt(_0x1615aa(0x1b1))/0x7)+-parseInt(_0x1615aa(0x1ab))/0x8+parseInt(_0x1615aa(0x251))/0x9+-parseInt(_0x1615aa(0x2b3))/0xa*(-parseInt(_0x1615aa(0x29e))/0xb);if(_0xdb03c6===_0x5e038a)break;else _0x4de0c8['push'](_0x4de0c8['shift']());}catch(_0x397ae7){_0x4de0c8['push'](_0x4de0c8['shift']());}}}(_0x1136,0x2e0f9));import{UniverLicensePlugin as _0x36cae2}from'@univerjs-pro/license';import{DependentOn as _0x20a1e0,Disposable as _0x1e19cc,IConfigService as _0x3789d5,ILogService as _0x2c9d1d,IResourceLoaderService as _0x3d1c83,IUniverInstanceService as _0x2143ae,Inject as _0x42e024,Injector as _0x33c4f6,LocaleService as _0xcd31af,Plugin as _0x18db66,UniverInstanceType as _0x127a83,createIdentifier as _0x9aec77,merge as _0x53c4af,registerDependencies as _0x594ee9,resolveWithBasePath as _0x510b26,toDisposable as _0xb125b6,touchDependencies as _0x48beab}from'@univerjs/core';import{HTTPResponseError as _0x291a0a,HTTPService as _0x4d5109,UniverNetworkPlugin as _0x47c91a}from'@univerjs/network';import{ClockIcon as _0x3bbb8f,CloseIcon as _0xd5e3c,DirectExportIcon as _0x3dc1a4,DocsMultiIcon as _0xf37990,ErrorIcon as _0x6f3282,ShareRangeIcon as _0x2bd829,SheetsMultiIcon as _0x1837c8,SlidesMultiIcon as _0x5198b7,SuccessIcon as _0x3359c4}from'@univerjs/icons';import{BuiltInUIPart as _0x531cab,IMessageService as _0x4dc66a,IUIPartsService as _0x9de50e,IconManager as _0x2eb222,connectInjector as _0x4c45b1,useDependency as _0x56b32c,useObservable as _0x45108c}from'@univerjs/ui';import{BehaviorSubject as _0x4a0dc3,Subject as _0x4199e8}from'rxjs';import{MessageType as _0x414fd5,Tooltip as _0x4cffd7,clsx as _0x1ca27a,scrollbarClassName as _0x773f00}from'@univerjs/design';import{jsx as _0x5b1a45,jsxs as _0x552aae}from'react/jsx-runtime';import{ErrorCode as _0x3ff13f,FileSource as _0x1e2956}from'@univerjs/protocol';import{b64DecodeUnicode as _0x1a32f4,b64EncodeUnicode as _0x579ae6,getSheetBlocksFromSnapshot as _0x1a32f6,textDecoder as _0x32efdf,textEncoder as _0x329011,transformDocumentDataToSnapshot as _0x512f3d,transformSlideDataToSnapshot as _0x25c6ac,transformSnapshotToDocumentData as _0xdd8a4e,transformSnapshotToSlideData as _0x4e517c,transformSnapshotToWorkbookData as _0x2b2a85,transformWorkbookDataToSnapshot as _0x39d91f}from'@univerjs-pro/collaboration';import{deflateSync as _0x268b7d}from'fflate';var Pe=_0x33286a(0x24c),Fe=_0x33286a(0x295);const T=_0x33286a(0x236),Ie={};function E(_0x4959e9,_0x180e68){return function(_0x39d3ac,_0x1aafa3){_0x180e68(_0x39d3ac,_0x1aafa3,_0x4959e9);};}function D(_0x19f3ae,_0x19f5b3,_0x2a45bd,_0x3a8349){const _0xeacaca=_0x33286a;var _0x3a1213=arguments[_0xeacaca(0x1a0)],_0x4f2310=_0x3a1213<0x3?_0x19f5b3:_0x3a8349===null?_0x3a8349=Object[_0xeacaca(0x1bf)](_0x19f5b3,_0x2a45bd):_0x3a8349,_0x5b2cc4;if(typeof Reflect=='object'&&typeof Reflect[_0xeacaca(0x173)]==_0xeacaca(0x2c5))_0x4f2310=Reflect[_0xeacaca(0x173)](_0x19f3ae,_0x19f5b3,_0x2a45bd,_0x3a8349);else{for(var _0x28ca49=_0x19f3ae[_0xeacaca(0x1a0)]-0x1;_0x28ca49>=0x0;_0x28ca49--)(_0x5b2cc4=_0x19f3ae[_0x28ca49])&&(_0x4f2310=(_0x3a1213<0x3?_0x5b2cc4(_0x4f2310):_0x3a1213>0x3?_0x5b2cc4(_0x19f5b3,_0x2a45bd,_0x4f2310):_0x5b2cc4(_0x19f5b3,_0x2a45bd))||_0x4f2310);}return _0x3a1213>0x3&&_0x4f2310&&Object[_0xeacaca(0x2bb)](_0x19f5b3,_0x2a45bd,_0x4f2310),_0x4f2310;}let O=class extends _0x1e19cc{constructor(_0x323fcb){const _0x5d244e=_0x33286a;super(),this[_0x5d244e(0x244)]=_0x323fcb,this[_0x5d244e(0x1c2)]();}['_registerIcons'](){const _0xd9f34c=_0x33286a;this[_0xd9f34c(0x20a)](this[_0xd9f34c(0x244)]['register']({'DirectExportIcon':_0x3dc1a4}));}};O=D([E(0x0,_0x42e024(_0x2eb222))],O);function k(_0x418b38){'@babel/helpers - typeof';const _0x1a0be4=_0x33286a;return k=typeof Symbol==_0x1a0be4(0x2c5)&&typeof Symbol[_0x1a0be4(0x24f)]==_0x1a0be4(0x2b9)?function(_0x114446){return typeof _0x114446;}:function(_0x2de18a){return _0x2de18a&&typeof Symbol=='function'&&_0x2de18a['constructor']===Symbol&&_0x2de18a!==Symbol['prototype']?'symbol':typeof _0x2de18a;},k(_0x418b38);}function Le(_0x45ba3b,_0x5eb78d){const _0x4a209c=_0x33286a;if(k(_0x45ba3b)!=_0x4a209c(0x1c3)||!_0x45ba3b)return _0x45ba3b;var _0x49dfb2=_0x45ba3b[Symbol[_0x4a209c(0x230)]];if(_0x49dfb2!==void 0x0){var _0x2f7b85=_0x49dfb2[_0x4a209c(0x240)](_0x45ba3b,_0x5eb78d||_0x4a209c(0x1bc));if(k(_0x2f7b85)!=_0x4a209c(0x1c3))return _0x2f7b85;throw TypeError(_0x4a209c(0x221));}return(_0x5eb78d===_0x4a209c(0x1d4)?String:Number)(_0x45ba3b);}function Re(_0x3c2ef6){const _0x4cff5a=_0x33286a;var _0x17813b=Le(_0x3c2ef6,_0x4cff5a(0x1d4));return k(_0x17813b)==_0x4cff5a(0x2b9)?_0x17813b:_0x17813b+'';}function A(_0xf5f2ce,_0x54ac6b,_0x31f833){return(_0x54ac6b=Re(_0x54ac6b))in _0xf5f2ce?Object['defineProperty'](_0xf5f2ce,_0x54ac6b,{'value':_0x31f833,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xf5f2ce[_0x54ac6b]=_0x31f833,_0xf5f2ce;}const j=_0x9aec77(_0x33286a(0x291));var ze=class extends _0x1e19cc{constructor(){const _0x35209a=_0x33286a;super(),A(this,'_visible$',new _0x4199e8()),A(this,_0x35209a(0x198),new _0x4199e8()),A(this,'_list$',new _0x4199e8()),A(this,_0x35209a(0x220),this[_0x35209a(0x1b2)][_0x35209a(0x223)]()),A(this,_0x35209a(0x171),this[_0x35209a(0x198)][_0x35209a(0x223)]()),A(this,'list$',this['_list$']['asObservable']()),A(this,'_list',[]);}[_0x33286a(0x282)](){const _0x49ca3b=_0x33286a;super['dispose'](),this[_0x49ca3b(0x1b2)][_0x49ca3b(0x2c6)](),this[_0x49ca3b(0x198)]['complete'](),this[_0x49ca3b(0x269)][_0x49ca3b(0x2c6)]();}['show'](){const _0x29410f=_0x33286a;this[_0x29410f(0x1b2)][_0x29410f(0x189)](!0x0);}[_0x33286a(0x245)](){const _0x8bf0e6=_0x33286a;this['_visible$'][_0x8bf0e6(0x189)](!0x1);}[_0x33286a(0x193)](_0x378c83){const _0x5439d0=_0x33286a;this['_state$'][_0x5439d0(0x189)](_0x378c83);}[_0x33286a(0x280)](_0x35f6f3){const _0x3cf1eb=_0x33286a;this[_0x3cf1eb(0x2a7)][_0x3cf1eb(0x1be)](_0x35f6f3),this['_list$'][_0x3cf1eb(0x189)](this[_0x3cf1eb(0x2a7)]);}};function Be(_0x10e613){const _0x262bcc=_0x33286a;let {list:_0x4294c9}=_0x10e613;function _0xd2a21d(_0x45b052){switch(_0x45b052){case 0x1:return _0x5b1a45(_0xf37990,{});case 0x2:return _0x5b1a45(_0x1837c8,{});case 0x3:return _0x5b1a45(_0x5198b7,{});default:return null;}}return _0x5b1a45(_0x262bcc(0x1dd),{'className':_0x1ca27a('univer-mt-5\x20univer-max-h-72\x20univer-overflow-y-auto\x20univer-overflow-x-hidden',_0x773f00),'children':_0x5b1a45('ul',{'className':_0x262bcc(0x164),'children':_0x4294c9[_0x262bcc(0x1d1)]((_0x3bf5bf,_0xa676a8)=>_0x5b1a45('li',{'children':_0x552aae('a',{'className':_0x262bcc(0x25f),'href':_0x3bf5bf[_0x262bcc(0x29b)],'target':_0x262bcc(0x1ee),'rel':_0x262bcc(0x290),'children':[_0x552aae(_0x262bcc(0x235),{'className':_0x262bcc(0x169),'children':[_0x5b1a45(_0x262bcc(0x235),{'className':_0x262bcc(0x1cf),'children':_0xd2a21d(_0x3bf5bf[_0x262bcc(0x224)])}),_0x5b1a45(_0x4cffd7,{'showIfEllipsis':!0x0,'title':_0x3bf5bf[_0x262bcc(0x2c8)],'asChild':!0x0,'children':_0x5b1a45(_0x262bcc(0x235),{'className':_0x262bcc(0x271),'children':_0x3bf5bf['name']})})]}),_0x5b1a45(_0x262bcc(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':_0x5b1a45(_0x2bd829,{})})]})},_0xa676a8))})});}const M=_0x33286a(0x225),N='application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',P=_0x33286a(0x26c),F=_0x33286a(0x1e6),I='application/vnd.openxmlformats-officedocument.presentationml.presentation',L=_0x33286a(0x1d9),R={[_0x127a83[_0x33286a(0x1af)]]:[''],[_0x127a83[_0x33286a(0x2c0)]]:[M],[_0x127a83[_0x33286a(0x268)]]:[N,P,F],[_0x127a83[_0x33286a(0x16d)]]:[I],[_0x127a83[_0x33286a(0x26f)]]:[''],[_0x127a83[_0x33286a(0x2b4)]]:[''],[_0x127a83[_0x33286a(0x19e)]]:[''],[_0x127a83[_0x33286a(0x2a2)]]:[L],[_0x127a83['UNRECOGNIZED']]:['']},z={[M]:'docx',[N]:_0x33286a(0x21c),[P]:'xlsm',[F]:'xltx',[I]:_0x33286a(0x29c),[L]:_0x33286a(0x215)};function B(_0x59f9d7,_0x5e83d0,_0x158296){const _0x5500d0=_0x33286a;let _0x3124b9=document[_0x5500d0(0x2a0)]('a');_0x3124b9[_0x5500d0(0x25c)]=_0x59f9d7,_0x3124b9[_0x5500d0(0x1d3)][_0x5500d0(0x1e8)]='none',_0x3124b9[_0x5500d0(0x196)]=_0x5e83d0+'.'+_0x158296,document['body']['appendChild'](_0x3124b9),_0x3124b9[_0x5500d0(0x1b8)](),document['body'][_0x5500d0(0x1a6)](_0x3124b9);}function Ve(_0x27e279,_0x1d3fb3,_0x35f8d1){const _0x456357=_0x33286a;let _0x2c8ae2=URL[_0x456357(0x16e)](_0x27e279);B(_0x2c8ae2,_0x1d3fb3,_0x35f8d1),URL[_0x456357(0x2ac)](_0x2c8ae2);}function He(_0xfe9fb){const _0x7f341f=_0x33286a;let _0x1a7648=_0xfe9fb['name'][_0x7f341f(0x167)]('.')[_0x7f341f(0x1c9)]();if(!_0x1a7648)return _0x127a83[_0x7f341f(0x1af)];let _0x4d829a=Ue(),_0x547aa5=_0x127a83[_0x7f341f(0x1af)];return _0x4d829a['some'](_0x59d44c=>We(_0x1a7648,_0x59d44c)?(_0x547aa5=_0x59d44c,!0x0):!0x1),_0x547aa5;}function Ue(){const _0x277ca8=_0x33286a;return Object[_0x277ca8(0x2ae)](_0x127a83)[_0x277ca8(0x1d5)](_0x402a7e=>typeof _0x402a7e==_0x277ca8(0x228));}function We(_0x44c01e,_0x35b89f){const _0x37081d=_0x33286a;var _0x193b29;return((_0x193b29=R[_0x35b89f])==null?[]:_0x193b29)[_0x37081d(0x1d1)](_0x41570e=>(z[_0x41570e]||'')[_0x37081d(0x16a)]())[_0x37081d(0x2ab)](_0x44c01e[_0x37081d(0x16a)]());}function V(_0x940220,_0x31aa26=!0x1){const _0x4057d8=_0x33286a;let _0x2710c3=_0x940220[_0x4057d8(0x1d1)](_0x3a24cf=>{var _0x19ffca;return(_0x19ffca=R[_0x3a24cf])==null?[]:_0x19ffca;})['join'](',');return new Promise((_0x40e709,_0x3259d6)=>{const _0x1ba2ce=_0x4057d8;let _0x398a3d=document[_0x1ba2ce(0x2a0)]('input');_0x398a3d[_0x1ba2ce(0x224)]=_0x1ba2ce(0x1b9),_0x398a3d[_0x1ba2ce(0x239)]=_0x2710c3,_0x398a3d['multiple']=_0x31aa26,_0x398a3d[_0x1ba2ce(0x1f5)](_0x1ba2ce(0x179),_0x1a54bd=>{const _0x2a10e3=_0x1ba2ce;let _0x230671=_0x1a54bd['currentTarget'];if(!_0x230671['files']||_0x230671[_0x2a10e3(0x1d8)][_0x2a10e3(0x1a0)]===0x0)throw _0x3259d6(null),Error(_0x2a10e3(0x1e1));_0x40e709(_0x230671[_0x2a10e3(0x1d8)]);}),_0x398a3d[_0x1ba2ce(0x1b8)]();});}async function H(_0x1f70dd,_0x5256de){const _0x4548d4=_0x33286a;try{var _0x481a71,_0x3ced0d,_0x12922f;let _0x2e65e3=await _0x5256de['get'](_0x1f70dd,{'responseType':_0x4548d4(0x1e7)}),_0xe10ceb=_0x2e65e3[_0x4548d4(0x1ed)],_0x2a6fde=(_0x481a71=(_0x3ced0d=_0x2e65e3[_0x4548d4(0x2c1)][_0x4548d4(0x2a6)](_0x4548d4(0x1a2)))==null?void 0x0:_0x3ced0d[_0x4548d4(0x2a5)](',\x20'))==null?_0x4548d4(0x28e):_0x481a71,_0x2c1578=_0x4548d4(0x2b7)+(z[_0x2a6fde]||_0x4548d4(0x21c)),_0x1a7f74=(_0x12922f=_0x2e65e3[_0x4548d4(0x2c1)][_0x4548d4(0x2a6)](_0x4548d4(0x25b)))==null?void 0x0:_0x12922f['join'](',\x20');if(_0x1a7f74){let _0x5b36d2=_0x1a7f74[_0x4548d4(0x1e4)](/filename=(.+)/);_0x5b36d2&&_0x5b36d2[0x1]&&(_0x2c1578=_0x5b36d2[0x1]);}else _0x2c1578=Ge(_0x1f70dd)||_0x2c1578;return new File([_0xe10ceb],_0x2c1578,{'type':_0x2a6fde});}catch(_0x31eccd){console[_0x4548d4(0x19f)](_0x4548d4(0x175),_0x31eccd);return;}}function Ge(_0x49c812){const _0x4564a6=_0x33286a;try{return new URL(_0x49c812)[_0x4564a6(0x181)][_0x4564a6(0x167)]('/')[_0x4564a6(0x1c9)]();}catch(_0x89148b){console[_0x4564a6(0x19f)]('Error\x20getting\x20file\x20name\x20from\x20URL:',_0x89148b);return;}}function Ke(_0x4549c5){const _0xde1231=_0x33286a;let _0x3fad54=new Blob([_0x4549c5[_0xde1231(0x288)]],{'type':'application/json'});return new File([_0x3fad54],_0xde1231(0x28a));}function U(_0x2df066,_0x2dbb45){const _0x363006=_0x33286a;return _0x2df066[_0x363006(0x21b)](_0x363006(0x1c6),_0x2dbb45);}function qe(_0x3f96a4,_0x19d260){const _0x5690fc=_0x33286a;return _0x3f96a4[_0x5690fc(0x21b)](_0x5690fc(0x258),_0x19d260);}function Je(_0x4fbf97,_0x18a84c){const _0x333035=_0x33286a;return _0x4fbf97['replace'](_0x333035(0x22c),_0x18a84c);}const W=_0x9aec77(_0x33286a(0x211));let G=class{constructor(_0xa4a73c,_0x1fd6ae){const _0x447142=_0x33286a;this['_configService']=_0xa4a73c,this['_httpService']=_0x1fd6ae,A(this,_0x447142(0x1a3),new Set());}[_0x33286a(0x282)](){}[_0x33286a(0x1a5)](_0xc1ba5e){const _0x26e90e=_0x33286a;this['_taskInterrupted'][_0x26e90e(0x227)](_0xc1ba5e);}[_0x33286a(0x1b4)](){const _0x17c29f=_0x33286a;this[_0x17c29f(0x1a3)][_0x17c29f(0x266)]();}async[_0x33286a(0x1ad)](_0x5c9852,_0x5ddda0=0x0,_0xc08583=!0x1){const _0x416a52=_0x33286a;if(typeof _0x5c9852==_0x416a52(0x1d4)){let _0x15002b=await H(_0x5c9852,this[_0x416a52(0x1e3)]);if(!_0x15002b)throw Error(_0x416a52(0x165));_0x5c9852=_0x15002b;}_0x5ddda0=_0x5ddda0||_0x5c9852[_0x416a52(0x285)];let _0x3aebf5=new FormData();_0x3aebf5[_0x416a52(0x246)]('file',_0x5c9852);try{let _0x3b1ea4=this[_0x416a52(0x218)]()+_0x416a52(0x2a4)+_0x5ddda0+_0x416a52(0x292)+_0x1e2956[_0x416a52(0x177)]+'&flate='+_0xc08583,_0x1e2e94={'body':_0x3aebf5},_0x11e6f1=(await this[_0x416a52(0x1e3)][_0x416a52(0x256)](_0x3b1ea4,_0x1e2e94))['body'];if(_0x11e6f1[_0x416a52(0x19f)]&&_0x11e6f1['error']['code']!==_0x3ff13f['OK'])throw Error(this['_buildProtocolErrorMessage'](_0x416a52(0x1fe),_0x11e6f1['error']));return _0x11e6f1;}catch(_0x548b9f){throw _0x548b9f instanceof Error?_0x548b9f:Error(this['_buildHttpErrorMessage'](_0x416a52(0x1fe),_0x548b9f));}}async[_0x33286a(0x238)](_0x13e7a5){const _0xc6a407=_0x33286a;let {fileID:_0x15281e,type:_0x387e85,outputType:_0xb98206,minSheetColumnCount:_0x27882f,minSheetRowCount:_0x1dc536}=_0x13e7a5;try{let _0x23292d=U(this['_getImportURL'](),''+_0x387e85),_0x25fe2e={'body':{'fileID':_0x15281e,'outputType':_0xb98206,'minSheetColumnCount':_0x27882f,'minSheetRowCount':_0x1dc536}},_0xb4c31c=(await this[_0xc6a407(0x1e3)][_0xc6a407(0x256)](_0x23292d,_0x25fe2e))['body'];return _0xb4c31c[_0xc6a407(0x19f)]&&_0xb4c31c[_0xc6a407(0x19f)]['code']!==_0x3ff13f['OK']?void 0x0:_0xb4c31c;}catch{return;}}async[_0x33286a(0x2c2)](_0x6b8cfd){const _0x3aa6d2=_0x33286a;let {unitID:_0x1aa0b5,jsonID:_0x25fc82,type:_0x4fbc55,useImageUrl:_0x1acd04,ignoreTableExport:_0x2eb5cf}=_0x6b8cfd;try{let _0x5d05c7=U(this[_0x3aa6d2(0x2af)](),''+_0x4fbc55),_0x4650d7={'body':{'unitID':_0x1aa0b5,'jsonID':_0x25fc82,'type':_0x4fbc55,'useImageUrl':_0x1acd04,'ignoreTableExport':_0x2eb5cf}},_0x122fc2=(await this['_httpService']['post'](_0x5d05c7,_0x4650d7))['body'];return _0x122fc2[_0x3aa6d2(0x19f)]&&_0x122fc2['error'][_0x3aa6d2(0x21d)]!==_0x3ff13f['OK']?void 0x0:_0x122fc2;}catch{return;}}async[_0x33286a(0x1a4)](_0x366480){return new Promise((_0x2df89e,_0x39febb)=>{const _0x64e2b9=_0x5cad;try{let _0x34840a=0x0,_0xec5211=qe(this[_0x64e2b9(0x1b6)](),''+_0x366480),_0x43f5da=this['_getMaxPollingTime'](),_0x3bf96e=async()=>{const _0x4f8ebd=_0x64e2b9;if(this['_taskInterrupted'][_0x4f8ebd(0x212)](_0x366480))return;let _0x5a071b=(await this['_httpService'][_0x4f8ebd(0x2a6)](_0xec5211))[_0x4f8ebd(0x1ed)];if(_0x5a071b[_0x4f8ebd(0x19f)]&&_0x5a071b[_0x4f8ebd(0x19f)]['code']===_0x3ff13f['OK']){if(_0x5a071b[_0x4f8ebd(0x1de)]===_0x4f8ebd(0x2be))_0x2df89e(_0x5a071b);else{if(_0x5a071b[_0x4f8ebd(0x1de)]===_0x4f8ebd(0x1ac)){let _0x34593c=0x3e8;if(_0x34840a>=_0x43f5da){_0x39febb(_0x5a071b);return;}else _0x34840a>=0x7530&&(_0x34593c=0x1388);_0x34840a+=_0x34593c,setTimeout(_0x3bf96e,_0x34593c);}else _0x39febb(_0x5a071b);}}else _0x39febb(_0x5a071b);};_0x3bf96e();}catch(_0x422d7a){_0x39febb(_0x422d7a instanceof Error?_0x422d7a:Error(String(_0x422d7a)));}});}async[_0x33286a(0x1d2)](_0x45bcb5){const _0x38f65a=_0x33286a;try{let _0x18c35e=Je(this[_0x38f65a(0x17f)](),''+_0x45bcb5);return(await this[_0x38f65a(0x1e3)][_0x38f65a(0x2a6)](_0x18c35e))[_0x38f65a(0x1ed)];}catch{return;}}async['getTextFromUrl'](_0x33f4ab){const _0x24c10c=_0x33286a;try{return(await this['_httpService'][_0x24c10c(0x2a6)](_0x33f4ab,{'responseType':_0x24c10c(0x19d)}))[_0x24c10c(0x1ed)];}catch{return;}}['_buildProtocolErrorMessage'](_0x4c306c,_0x150086){let _0x57a705=this['_extractErrorDetail'](_0x150086);return _0x57a705?_0x4c306c+':\x20'+_0x57a705:_0x4c306c;}['_buildHttpErrorMessage'](_0x30e859,_0x47eca1){const _0x58370c=_0x33286a;if(_0x47eca1 instanceof _0x291a0a){let _0x464057=typeof _0x47eca1[_0x58370c(0x1de)]==_0x58370c(0x228)?''+_0x47eca1[_0x58370c(0x1de)]+(_0x47eca1[_0x58370c(0x29d)]?'\x20'+_0x47eca1[_0x58370c(0x29d)]:''):void 0x0,_0x229d27=this[_0x58370c(0x27e)](_0x47eca1['error']);return _0x464057&&_0x229d27?_0x30e859+':\x20HTTP\x20'+_0x464057+_0x58370c(0x2c7)+_0x229d27:_0x464057?_0x30e859+_0x58370c(0x29f)+_0x464057:_0x229d27?_0x30e859+':\x20'+_0x229d27:_0x30e859;}let _0x46edd8=this['_extractErrorDetail'](_0x47eca1);return _0x46edd8?_0x30e859+':\x20'+_0x46edd8:_0x30e859;}[_0x33286a(0x27e)](_0x22bfc5){const _0x830cf7=_0x33286a;if(typeof _0x22bfc5==_0x830cf7(0x1d4)){let _0x204a95=_0x22bfc5['trim']();return _0x204a95[_0x830cf7(0x1a0)]>0x0?_0x204a95:void 0x0;}if(_0x22bfc5 instanceof Error)return this[_0x830cf7(0x27e)](_0x22bfc5[_0x830cf7(0x277)]);if(!_0x22bfc5||typeof _0x22bfc5!='object'||Array[_0x830cf7(0x1ff)](_0x22bfc5))return;let _0x512d4a=_0x22bfc5,_0x1929a1=this[_0x830cf7(0x27e)](_0x512d4a['message']);if(_0x1929a1)return _0x1929a1;if(_0x512d4a[_0x830cf7(0x19f)]&&typeof _0x512d4a[_0x830cf7(0x19f)]==_0x830cf7(0x1c3)&&!Array[_0x830cf7(0x1ff)](_0x512d4a[_0x830cf7(0x19f)])){let _0xde0bbb=this[_0x830cf7(0x27e)](_0x512d4a['error']);if(_0xde0bbb)return _0xde0bbb;}}[_0x33286a(0x218)](){const _0x413b04=_0x33286a;var _0x1bdf1b;let _0x357f69=this[_0x413b04(0x1e0)][_0x413b04(0x289)](T);return(_0x1bdf1b=_0x357f69==null?void 0x0:_0x357f69[_0x413b04(0x252)])==null?'/universer-api/stream/file/upload':_0x1bdf1b;}[_0x33286a(0x1df)](){const _0x56fd4d=_0x33286a;var _0x19bd16;let _0x33f557=this[_0x56fd4d(0x1e0)][_0x56fd4d(0x289)](T);return(_0x19bd16=_0x33f557==null?void 0x0:_0x33f557[_0x56fd4d(0x187)])==null?'/universer-api/exchange/{type}/import':_0x19bd16;}[_0x33286a(0x2af)](){const _0x5de4b5=_0x33286a;var _0x236800;let _0x547bec=this[_0x5de4b5(0x1e0)]['getConfig'](T);return(_0x236800=_0x547bec==null?void 0x0:_0x547bec[_0x5de4b5(0x180)])==null?_0x5de4b5(0x234):_0x236800;}['_getTaskURL'](){const _0xaf29d5=_0x33286a;var _0x362a2a;let _0x369ccd=this['_configService']['getConfig'](T);return(_0x362a2a=_0x369ccd==null?void 0x0:_0x369ccd[_0xaf29d5(0x259)])==null?_0xaf29d5(0x191):_0x362a2a;}[_0x33286a(0x17f)](){const _0x106e73=_0x33286a;var _0x3c2a4e;let _0x51ef67=this[_0x106e73(0x1e0)][_0x106e73(0x289)](T);return(_0x3c2a4e=_0x51ef67==null?void 0x0:_0x51ef67['signUrlServerUrl'])==null?_0x106e73(0x185):_0x3c2a4e;}[_0x33286a(0x204)](){const _0x50e1b9=_0x33286a;var _0x9671f0;let _0x4e5839=this[_0x50e1b9(0x1e0)][_0x50e1b9(0x289)](T);return(_0x9671f0=_0x4e5839==null?void 0x0:_0x4e5839[_0x50e1b9(0x296)])==null?0x1d4c0:_0x9671f0;}};G=D([E(0x0,_0x3789d5),E(0x1,_0x42e024(_0x4d5109))],G);function Ye(_0x49682d){const _0x56fd3f=_0x33286a;let _0x4e693c=_0x49682d[_0x56fd3f(0x203)];if(!_0x4e693c)return null;let _0x32b227={};_0x4e693c['sheets']&&Object[_0x56fd3f(0x253)](_0x4e693c[_0x56fd3f(0x1fa)])[_0x56fd3f(0x276)](_0x1ec8c8=>{const _0x55a64d=_0x56fd3f;let _0x8f6a3e=_0x4e693c[_0x55a64d(0x1fa)][_0x1ec8c8];_0x32b227[_0x1ec8c8]={..._0x8f6a3e,'originalMeta':_0x579ae6(_0x32efdf[_0x55a64d(0x2a3)](_0x8f6a3e[_0x55a64d(0x20f)]))};});let _0x587c00=_0x579ae6(_0x32efdf['decode'](_0x4e693c[_0x56fd3f(0x20f)]));return{..._0x49682d,'workbook':{..._0x4e693c,'originalMeta':_0x587c00,'sheets':_0x32b227},'doc':{},'slide':void 0x0,'board':void 0x0};}function Xe(_0x306670){const _0x21c384=_0x33286a;let _0x1bbf9c=_0x306670[_0x21c384(0x298)];if(!_0x1bbf9c)return null;let _0x6fd4da=_0x579ae6(_0x32efdf[_0x21c384(0x2a3)](_0x1bbf9c[_0x21c384(0x20f)]));return{..._0x306670,'workbook':{},'doc':{..._0x1bbf9c,'originalMeta':_0x6fd4da},'slide':void 0x0,'board':void 0x0};}function Ze(_0xbeaac6){const _0x342e39=_0x33286a;var _0x1ba09c;let _0x262ed5=(_0x1ba09c=_0xbeaac6[_0x342e39(0x19a)])==null?_0xbeaac6['doc']:_0x1ba09c;if(!_0x262ed5)return null;let _0x2eb68b=typeof _0x262ed5[_0x342e39(0x20f)]==_0x342e39(0x1d4)?_0x262ed5['originalMeta']:_0x579ae6(_0x32efdf[_0x342e39(0x2a3)](_0x262ed5[_0x342e39(0x20f)]));return{..._0xbeaac6,'workbook':{},'doc':{},'slide':{..._0x262ed5,'originalMeta':_0x2eb68b},'board':void 0x0};}function _0x1136(){const _0x51ced2=['Get\x20outputType\x20error','/universer-api/exchange/{type}/export','span','exchange-client.config','_getUnitIDDoc','import','accept','_getUnitName','exportPPTXByUnitId','Failed\x20to\x20get\x20text\x20from\x20url','_getLinkByUnitId','_resourceLoaderService','UNDEFINED','call','uploadFileToUnitId','_exportBySnapshot','packageName','_iconManager','hide','append','importXLSXToSnapshot','importFileToUnitIdByCurrentType','resources','trim','_importFileToUnitId','@univerjs-pro/exchange-client','workbook.json','_emitProgress','iterator','parse','1330326bzQmLI','uploadFileServerUrl','keys','univer-text-blue-500','_export','post','data','{taskID}','getTaskServerUrl','exchange-client.tooLarge','content-disposition','href','show','_config','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','progress$','exchange-client.wait','options','_getDownloadEndpointURL','4796AaWVkR','801189vadWEX','clear','exportXLSXByUnitId','UNIVER_SHEET','_list$','univer-pro.exchange-client.operate.service','_importTaskId','application/vnd.ms-excel.sheet.macroEnabled.12','exchange-client.fileTypeError','sheetBlocks','UNIVER_BASE','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','univer-ml-1\x20univer-truncate\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','getUnitId','title','univer-text-sm\x20univer-text-gray-500','_getMinSheetRowCount','forEach','message','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','_importToJson','_doneUploadTaskCount','interrupt','exchange-client.downloadSuccess','.json','_extractErrorDetail','getDeserializedSheetBlock','pushLink','minSheetColumnCount','dispose','getSnapshot','registerComponent','size','min','origin','buffer','getConfig','file.json','_uploadTaskNotDone','_uploadNotificationService','_getMinSheetColumnCount','application/octet-stream','Warning','noreferrer','univer-pro.exchange-client.upload-notification.service','&source=','CONTENT','_addDoneTask','1.0.0-alpha.7','maxTimeoutTime','outputType','doc','exchange-client.uploadAgain','minSheetRowCount','link','pptx','statusText','2968207JfYVLh',':\x20HTTP\x20','createElement','_registerUIParts','UNIVER_PDF','decode','?size=','join','get','_list','setConfig','FileId','importFileToUnitId','includes','revokeObjectURL','onReady','values','_getExportURL','snapshot','exportPPTXBySnapshot','disposeUnit','10piRYzA','UNIVER_BOARD','version','jsonID','file.','export\x20error','symbol','_getDisableCellImageConversion','defineProperty','searchParams','exchange-client.uploading','done','rev','UNIVER_DOC','headers','export','Info','unitID','function','complete','\x20-\x20','name','_showUploadMessage','70KbHcDw','univer-m-0\x20univer-flex\x20univer-list-none\x20univer-flex-col\x20univer-gap-2\x20univer-p-0','upload\x20request\x20failed:\x20failed\x20to\x20read\x20source\x20file\x20from\x20url','importFileToJson','split','Failed\x20to\x20get\x20jsonID\x20from\x20task','univer-flex\x20univer-w-[calc(100%-48px)]\x20univer-items-center','toLowerCase','_signUrl','_showNetworkError','UNIVER_SLIDE','createObjectURL','getCurrentUnitOfType','_getUnitJson','state$','_upload','decorate','exchange-client.internalError','Error\x20fetching\x20file\x20from\x20URL:','createUnit','HttpImport','saveSnapshot','change','exchange-client.uploadSuccess','_getUnitSlideJson','102260ELUKrk','importXLSXToUnitId','importPPTXToUnitId','_getSignURL','exportServerUrl','pathname','_requestService','_import','_sheetBlockCache','/universer-api/file/{fileID}/sign-url','block\x20is\x20required','importServerUrl','_getUnitIDSlide','next','_refreshSlide','shift','getTextFromUrl','importDOCXToSnapshot','_requestState$','exchange-client.unknownMistake','encode','/universer-api/exchange/task/{taskID}','_getUnitNameByType','updateState','stringify','Failed\x20to\x20get\x20file\x20from\x20url','download','interruptImportTask','_state$','univer-mt-3\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-2\x20univer-pr-1','slide','importPPTXToSnapshot','unit','text','UNIVER_PROJECT','error','length','downloadFile','Content-Type','_taskInterrupted','getTask','setTaskInterrupted','removeChild','downloadEndpointUrl','_localeService','url','Error','1473224tHHbXE','pending','upload','univer-ml-1.5\x20univer-font-semibold\x20univer-text-gray-900\x20dark:!univer-text-white','UNIVER_UNKNOWN','upload\x20failed:\x20FileId\x20is\x20empty','7nvUCOf','_visible$','_fileTypeError','clearTaskInterrupted','ignoreTableExport','_getTaskURL','exchange-client.interrupt','click','file','registerLink','getResourcesRequest','default','Method\x20not\x20implemented.','unshift','getOwnPropertyDescriptor','subscribe','exchange-client.networkError','_registerIcons','object','exportDOCXBySnapshot','getUnitOnRev','{type}','_injector','exchange-client.cancel','pop','_uiPartsService','univer-pl-2\x20univer-pr-4','success','univer-h-6\x20univer-text-2xl','exportXLSXBySnapshot','univer-flex\x20univer-h-5\x20univer-text-xl','button','map','signUrl','style','string','filter','univer-flex','74ydJNVn','files','application/pdf','_getUnitDocJson','pluginName','sign\x20url\x20error','div','status','_getImportURL','_configService','No\x20file\x20selected','_showDownloadMessage','_httpService','match','_univerInstanceService','application/vnd.openxmlformats-officedocument.spreadsheetml.template','blob','display','univer-h-1.5\x20univer-rounded-lg\x20univer-bg-primary-600\x20univer-transition-[width]\x20univer-duration-500','onStarting','requestState$','_progress$','body','_blank','set','docx','_logService','taskID','floor','resolve','addEventListener','Failed\x20to\x20transform\x20snapshot\x20to\x20string','list$','univer-pro.exchange-client.exchange.service','saveChangeset','sheets','Failed\x20to\x20parse\x20json','_clearProgress','fileID','upload\x20request\x20failed','isArray','Success','univer-text-red-500','getFocusedUnit','workbook','_getMaxPollingTime','importDOCXToUnitId','_addTotalCount','blockID','disableCellImageConversion','788628zvSWZW','disposeWithMe','import\x20error','transformSnapshotJsonToWorkbookData','univer-mt-5\x20univer-flex\x20univer-flex-col','_refresh','originalMeta','_messageService','univer-pro.exchange-client.request.service','has','_completeProgress','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-1.5\x20univer-pr-2','pdf','saveUnit','Failed\x20to\x20get\x20unitID\x20from\x20task','_getUploadFileURL','exportDOCXByUnitId','getUnitType','replace','xlsx','code','univer-mb-3\x20univer-py-0\x20univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','catch','visible$','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','application/json','asObservable','type','application/vnd.openxmlformats-officedocument.wordprocessingml.document','univer-text-green-500','add','number','_totalUploadTaskCount','_getUnitID','UNRECOGNIZED','{fileID}','getSheetBlock','transformWorkbookDataToSnapshotJson','_exchangeService','toPrimitive','_getIgnoreTableExport','location'];_0x1136=function(){return _0x51ced2;};return _0x1136();}function K(_0x355b84){const _0x3b6722=_0x33286a;let _0x19a40b={};return _0x355b84[_0x3b6722(0x276)](_0x5ebed5=>{const _0x2d7700=_0x3b6722;_0x19a40b[_0x5ebed5['id']]={..._0x5ebed5,'data':_0x579ae6(_0x32efdf[_0x2d7700(0x2a3)](_0x5ebed5['data']))};}),_0x19a40b;}async function Qe(_0x2f1726){const _0x26e881=_0x33286a;var _0x2eeb77;let _0x4757f7={'metadata':void 0x0},_0x546379=_0x2f1726['id'],_0x9c754e=(_0x2eeb77=_0x2f1726[_0x26e881(0x2bf)])==null?0x0:_0x2eeb77,_0x2d2cfe=new q(),{snapshot:_0x1218ae}=await _0x39d91f(_0x4757f7,_0x2f1726,_0x546379,_0x9c754e,_0x2d2cfe),_0x20f558=await _0x1a32f6(_0x1218ae,_0x2d2cfe),_0x2cd596=Ye(_0x1218ae);if(!_0x2cd596)throw Error('Failed\x20to\x20transform\x20snapshot\x20to\x20string');return{'snapshot':_0x2cd596,'sheetBlocks':K(_0x20f558)};}async function $e(_0x2cf4ad){const _0x55f9bc=_0x33286a;var _0x13251d;let _0x4b8edc={'metadata':void 0x0},_0x45a8d4=_0x2cf4ad['id'],{snapshot:_0x1aba9b}=await _0x512f3d(_0x4b8edc,_0x2cf4ad,_0x45a8d4,(_0x13251d=_0x2cf4ad[_0x55f9bc(0x2bf)])==null?0x0:_0x13251d,new q()),_0x1695e3=Xe(_0x1aba9b);if(!_0x1695e3)throw Error(_0x55f9bc(0x1f6));return{'snapshot':_0x1695e3,'sheetBlocks':{}};}async function et(_0x59761f){const _0x5aaf7f=_0x33286a;var _0x1ce646;let _0xfe35dc=_0x59761f['id'],_0x937d6a=(_0x1ce646=_0x59761f['rev'])==null?0x0:_0x1ce646,_0x503231=new q(),{snapshot:_0x4835e5}=await _0x25c6ac(_0x59761f[_0x5aaf7f(0x249)],_0x59761f,_0xfe35dc,_0x937d6a,_0x503231),_0x30c72e=Ze(_0x4835e5);if(!_0x30c72e)throw Error(_0x5aaf7f(0x1f6));return{'snapshot':_0x30c72e,'sheetBlocks':{}};}async function tt(_0x3f16f7){const _0x9274dc=_0x33286a;let _0x1db87b=_0x3f16f7[_0x9274dc(0x2b0)],_0x563e54=_0x3f16f7[_0x9274dc(0x26e)]||{};return await _0x2b2a85(_0x1db87b,Object['keys'](_0x563e54)['map'](_0x46d4e7=>_0x563e54[_0x46d4e7])['map'](_0x29aff1=>({..._0x29aff1,'data':_0x29aff1[_0x9274dc(0x257)]?JSON['parse'](_0x1a32f4(_0x29aff1[_0x9274dc(0x257)])):void 0x0})));}function nt(_0x45e5f2){let _0x1dc777=_0x45e5f2['snapshot'];return _0xdd8a4e(_0x1dc777);}function rt(_0x3cc75b){const _0x392270=_0x33286a;let _0x2bd63b=_0x3cc75b[_0x392270(0x2b0)];return _0x4e517c(_0x2bd63b);}var q=class{constructor(){A(this,'_sheetBlockCache',new Map());}[_0x33286a(0x1c5)](){const _0x1b06cf=_0x33286a;return Promise[_0x1b06cf(0x1f4)]({'snapshot':{'unitID':'','type':_0x127a83[_0x1b06cf(0x268)],'rev':0x0,'workbook':void 0x0,'doc':void 0x0,'slide':void 0x0,'board':void 0x0},'changesets':[],'error':{'code':_0x3ff13f['OK'],'message':''}});}[_0x33286a(0x22d)](_0x1dcc9f,_0x229dfa){const _0x5c9489=_0x33286a;let _0x15ec5a=this[_0x5c9489(0x184)][_0x5c9489(0x2a6)](_0x229dfa[_0x5c9489(0x207)]);return Promise[_0x5c9489(0x1f4)]({'block':_0x15ec5a,'error':{'code':_0x3ff13f['OK'],'message':''}});}[_0x33286a(0x27f)](_0x45d4bb,_0xd2b67){const _0x33dc74=_0x33286a;let _0x28045b=this[_0x33dc74(0x184)][_0x33dc74(0x2a6)](_0xd2b67[_0x33dc74(0x207)]);return Promise[_0x33dc74(0x1f4)]({'block':_0x28045b===void 0x0?void 0x0:{..._0x28045b,'data':JSON[_0x33dc74(0x250)](_0x32efdf[_0x33dc74(0x2a3)](_0x28045b[_0x33dc74(0x257)]))},'error':{'code':_0x3ff13f['OK'],'message':''}});}['fetchMissingChangesets'](){const _0x3a7b9a=_0x33286a;return Promise[_0x3a7b9a(0x1f4)]({'changesets':[],'error':{'code':_0x3ff13f['OK'],'message':''}});}[_0x33286a(0x1bb)](){const _0x1d2be1=_0x33286a;return Promise[_0x1d2be1(0x1f4)]({'resources':{},'error':{'code':_0x3ff13f['OK'],'message':''}});}[_0x33286a(0x178)](){const _0xd2cd31=_0x33286a;return Promise[_0xd2cd31(0x1f4)]({'error':{'code':_0x3ff13f['OK'],'message':''}});}['updateSnapshot'](){return Promise['resolve']({'error':{'code':_0x3ff13f['OK'],'message':''}});}['saveSheetBlock'](_0x42b4d8,_0x31cde7){const _0x29afcd=_0x33286a;let {block:_0x23396b}=_0x31cde7;return _0x23396b?(this['_sheetBlockCache']['set'](_0x23396b['id'],_0x23396b),Promise['resolve']({'error':{'code':_0x3ff13f['OK'],'message':''},'blockID':_0x23396b['id']})):Promise[_0x29afcd(0x1f4)]({'error':{'code':_0x3ff13f[_0x29afcd(0x23f)],'message':_0x29afcd(0x186)},'blockID':''});}[_0x33286a(0x1f9)](){const _0x591b85=_0x33286a;return Promise[_0x591b85(0x1f4)]({'error':{'code':_0x3ff13f['OK'],'message':''},'concurrent':[]});}['copyFileMeta'](){const _0x21e454=_0x33286a;return Promise[_0x21e454(0x1f4)]({'error':void 0x0,'fileMetaId':''});}['getLatestCsReqIdBySid'](){const _0xd2f697=_0x33286a;return Promise[_0xd2f697(0x1f4)]({'error':void 0x0,'latestReqID':0x0});}};const J=_0x9aec77(_0x33286a(0x1f8));let Y=class extends _0x1e19cc{constructor(_0x18486b,_0x1ecbd1,_0x172343){const _0x4e0a0c=_0x33286a;super(),this[_0x4e0a0c(0x1e0)]=_0x18486b,this['_httpService']=_0x1ecbd1,this[_0x4e0a0c(0x182)]=_0x172343,A(this,'_importTaskId',null),A(this,'_requestState$',new _0x4199e8()),A(this,_0x4e0a0c(0x1eb),this['_requestState$'][_0x4e0a0c(0x223)]());}[_0x33286a(0x282)](){const _0x1543eb=_0x33286a;super[_0x1543eb(0x282)](),this[_0x1543eb(0x18e)][_0x1543eb(0x2c6)]();}[_0x33286a(0x1a1)](_0x406f9a,_0xcf744a,_0x201dc2){const _0x53af9e=_0x33286a;let _0xfe8133=URL[_0x53af9e(0x16e)](_0x406f9a);B(_0xfe8133,_0xcf744a,_0x201dc2),URL['revokeObjectURL'](_0xfe8133);}async[_0x33286a(0x20c)](_0x16818d){const _0x477810=_0x33286a;let _0x4617b9=_0x16818d[_0x477810(0x2b0)],_0x4961c6=_0x16818d[_0x477810(0x26e)]||{};return _0x2b2a85(_0x4617b9,Object[_0x477810(0x253)](_0x4961c6)[_0x477810(0x1d1)](_0x343060=>_0x4961c6[_0x343060])[_0x477810(0x1d1)](_0x148c3c=>({..._0x148c3c,'data':_0x148c3c[_0x477810(0x257)]?JSON[_0x477810(0x250)](_0x1a32f4(_0x148c3c[_0x477810(0x257)])):void 0x0})));}async[_0x33286a(0x22e)](_0x496627){const _0x45f11f=_0x33286a;var _0x322122;let _0x173ea0={'metadata':void 0x0},_0x53472d=_0x496627['id'],_0x4953e2=(_0x322122=_0x496627[_0x45f11f(0x2bf)])==null?0x0:_0x322122,_0x3e588d=new q(),{snapshot:_0x347311}=await _0x39d91f(_0x173ea0,_0x496627,_0x53472d,_0x4953e2,_0x3e588d),_0x5b7a96=await _0x1a32f6(_0x347311,_0x3e588d),_0x3491d6=Ye(_0x347311);if(!_0x3491d6)throw Error('Failed\x20to\x20transform\x20snapshot\x20to\x20string');return{'snapshot':_0x3491d6,'sheetBlocks':K(_0x5b7a96)};}async['importDOCXToSnapshot'](_0x43a34d){const _0x1d5011=_0x33286a;let _0x426924=await this[_0x1d5011(0x166)](_0x43a34d,_0x127a83[_0x1d5011(0x2c0)]);if(!_0x426924||!_0x426924[_0x1d5011(0x2b0)])return;let _0x2f6b1b=nt(_0x426924);if(_0x2f6b1b)return _0x2f6b1b;}async['exportDOCXByUnitId'](_0x5c5b7c){const _0x41fe60=_0x33286a;return this[_0x41fe60(0x255)](_0x5c5b7c,0x1,_0x127a83['UNIVER_DOC']);}async[_0x33286a(0x1c4)](_0xae3a85){const _0x17014a=_0x33286a;let _0x5050ec=await $e(_0xae3a85);return this['_exportBySnapshot'](_0x5050ec,_0x127a83[_0x17014a(0x2c0)]);}async['importPPTXToSnapshot'](_0x9679e1){const _0x5e75fe=_0x33286a;let _0x4426af=await this[_0x5e75fe(0x166)](_0x9679e1,_0x127a83[_0x5e75fe(0x16d)]);if(!(!_0x4426af||!_0x4426af[_0x5e75fe(0x2b0)]))return rt(_0x4426af);}async[_0x33286a(0x23b)](_0x552fd6){const _0x5b8057=_0x33286a;return this['_export'](_0x552fd6,0x1,_0x127a83[_0x5b8057(0x16d)]);}async[_0x33286a(0x2b1)](_0x56bb4e){const _0x8bf9b0=_0x33286a;let _0x1858c3=await et(_0x56bb4e);return this['_exportBySnapshot'](_0x1858c3,_0x127a83[_0x8bf9b0(0x16d)]);}async[_0x33286a(0x247)](_0x160a7b){const _0x2ec2a2=_0x33286a;let _0x4d6d96=await this[_0x2ec2a2(0x166)](_0x160a7b,_0x127a83['UNIVER_SHEET']);if(!_0x4d6d96)return;let _0x5051dd=await this['transformSnapshotJsonToWorkbookData'](_0x4d6d96);if(_0x5051dd)return _0x5051dd;}async[_0x33286a(0x267)](_0x360d96){const _0x410199=_0x33286a;return this['_export'](_0x360d96,0x1,_0x127a83[_0x410199(0x268)]);}async['exportXLSXBySnapshot'](_0x11f6cb){const _0x4b6897=_0x33286a;let _0xf869a=await this[_0x4b6897(0x22e)](_0x11f6cb);return this[_0x4b6897(0x242)](_0xf869a,_0x127a83[_0x4b6897(0x268)]);}async[_0x33286a(0x2aa)](_0x1200dc,_0x337dd5){const _0x5a80e2=_0x33286a;var _0xb2c2f5,_0x2cc9fc;let _0xbeda5f=await this[_0x5a80e2(0x172)](_0x1200dc);if(!_0xbeda5f)return;let _0x3ca3af=await this[_0x5a80e2(0x183)](_0xbeda5f,0x1,_0x337dd5);if(!_0x3ca3af)return;this[_0x5a80e2(0x26b)]=_0x3ca3af,this['_requestService'][_0x5a80e2(0x1b4)]();let _0x1a6e89=await this[_0x5a80e2(0x182)][_0x5a80e2(0x1a4)](_0x3ca3af)[_0x5a80e2(0x21f)](_0x29c45a=>{const _0x2edcd2=_0x5a80e2;var _0x295c57;let _0x5a8026=_0x29c45a instanceof Error?_0x29c45a['message']:(_0x295c57=_0x29c45a['error'])==null?void 0x0:_0x295c57[_0x2edcd2(0x277)];this['_requestState$'][_0x2edcd2(0x189)]({'error':{'code':_0x3ff13f[_0x2edcd2(0x22b)],'message':_0x5a8026||''},'state':0x3});});if(!_0x1a6e89)return;let _0x33627d=(_0xb2c2f5=_0x1a6e89[_0x5a80e2(0x238)])==null?void 0x0:_0xb2c2f5[_0x5a80e2(0x297)],_0x402c0a=((_0x2cc9fc=_0x1a6e89[_0x5a80e2(0x238)])==null?void 0x0:_0x2cc9fc[_0x5a80e2(0x2c4)])||'';if(_0x33627d!==0x1){this['_requestState$']['next']({'error':{'code':_0x3ff13f[_0x5a80e2(0x22b)],'message':_0x5a80e2(0x233)},'state':0x3});return;}if(_0x402c0a[_0x5a80e2(0x1a0)]===0x0){this[_0x5a80e2(0x18e)][_0x5a80e2(0x189)]({'error':{'code':_0x3ff13f[_0x5a80e2(0x22b)],'message':_0x5a80e2(0x217)},'state':0x3});return;}return this[_0x5a80e2(0x18e)][_0x5a80e2(0x189)]({'error':_0x1a6e89[_0x5a80e2(0x19f)],'state':0x3}),_0x402c0a;}async[_0x33286a(0x166)](_0x1087f8,_0x31d2c7){const _0x51788a=_0x33286a;return this[_0x51788a(0x279)](_0x1087f8,_0x31d2c7);}async['importWorkbookDataToUnitId'](_0x4ee075){const _0xd082a5=_0x33286a;let _0x4d9a78=await this['transformWorkbookDataToSnapshotJson'](_0x4ee075),_0x2acd7d=typeof _0x4ee075['id']==_0xd082a5(0x1d4)&&_0x4ee075['id'][_0xd082a5(0x24a)]()?_0x4ee075['id']['trim']()+_0xd082a5(0x27d):_0xd082a5(0x24d),_0x469d6c=new File([JSON[_0xd082a5(0x194)](_0x4d9a78)],_0x2acd7d,{'type':_0xd082a5(0x222)});return this[_0xd082a5(0x2aa)](_0x469d6c,_0x127a83[_0xd082a5(0x268)]);}[_0x33286a(0x197)](){const _0x129807=_0x33286a;this[_0x129807(0x26b)]&&this['_requestService'][_0x129807(0x1a5)](this['_importTaskId']);}async['_importToJson'](_0xbf82db,_0xb465c3){const _0x3770c4=_0x33286a;var _0x4cd10f,_0x5ed8c4;let _0x4f47ee=await this[_0x3770c4(0x172)](_0xbf82db);if(!_0x4f47ee)return;let _0x199aec=await this['_import'](_0x4f47ee,0x2,_0xb465c3);if(!_0x199aec)return;this[_0x3770c4(0x26b)]=_0x199aec,this['_requestService']['clearTaskInterrupted']();let _0x533b79=await this[_0x3770c4(0x182)][_0x3770c4(0x1a4)](_0x199aec)[_0x3770c4(0x21f)](_0x4efc3b=>{const _0x37c38a=_0x3770c4;var _0x2414d5;let _0x44c4cd=_0x4efc3b instanceof Error?_0x4efc3b[_0x37c38a(0x277)]:(_0x2414d5=_0x4efc3b['error'])==null?void 0x0:_0x2414d5[_0x37c38a(0x277)];this['_requestState$'][_0x37c38a(0x189)]({'error':{'code':_0x3ff13f[_0x37c38a(0x22b)],'message':_0x44c4cd||''},'state':0x3});});if(!_0x533b79)return;let _0x2e4b95=(_0x4cd10f=_0x533b79[_0x3770c4(0x238)])==null?void 0x0:_0x4cd10f[_0x3770c4(0x297)],_0x4f455f=((_0x5ed8c4=_0x533b79[_0x3770c4(0x238)])==null?void 0x0:_0x5ed8c4[_0x3770c4(0x2b6)])||'';if(_0x2e4b95!==0x2){this[_0x3770c4(0x18e)]['next']({'error':{'code':_0x3ff13f['UNRECOGNIZED'],'message':_0x3770c4(0x233)},'state':0x3});return;}if(_0x4f455f[_0x3770c4(0x1a0)]===0x0){this[_0x3770c4(0x18e)]['next']({'error':{'code':_0x3ff13f[_0x3770c4(0x22b)],'message':_0x3770c4(0x168)},'state':0x3});return;}this[_0x3770c4(0x18e)][_0x3770c4(0x189)]({'error':_0x533b79[_0x3770c4(0x19f)],'state':0x3});let _0x4955ad=await this[_0x3770c4(0x16b)](_0x4f455f);if(!_0x4955ad)return;let _0x23b9c9=await this[_0x3770c4(0x182)][_0x3770c4(0x18c)](_0x4955ad);if(!_0x23b9c9){this[_0x3770c4(0x18e)][_0x3770c4(0x189)]({'error':{'code':_0x3ff13f[_0x3770c4(0x22b)],'message':_0x3770c4(0x23c)},'state':0x5});return;}try{let _0x3719ce=JSON[_0x3770c4(0x250)](_0x23b9c9);return this[_0x3770c4(0x18e)][_0x3770c4(0x189)]({'error':{'code':_0x3ff13f['OK'],'message':_0x3770c4(0x1cc)},'state':0x5}),_0x3719ce;}catch{this[_0x3770c4(0x18e)][_0x3770c4(0x189)]({'error':{'code':_0x3ff13f[_0x3770c4(0x22b)],'message':_0x3770c4(0x1fb)},'state':0x5});}}async[_0x33286a(0x242)](_0x37d304,_0xbc424f){const _0x443bf2=_0x33286a;let _0x494816=JSON[_0x443bf2(0x194)](_0x37d304),_0x37de96=_0x329011[_0x443bf2(0x190)](_0x494816),_0x1e78cd=_0x268b7d(_0x37de96),_0x3dc350=_0x37de96[_0x443bf2(0x1a0)],_0x18b201=Ke(_0x1e78cd),_0x18ce3=await this[_0x443bf2(0x172)](_0x18b201,_0x3dc350,!0x0);if(_0x18ce3)return this[_0x443bf2(0x255)](_0x18ce3,0x2,_0xbc424f);}async[_0x33286a(0x255)](_0x4dfd1f,_0x26d7de,_0x2a0fcd){const _0x2b735f=_0x33286a;var _0x2caf73;let _0x52b65f=await this[_0x2b735f(0x182)][_0x2b735f(0x2c2)]({'unitID':_0x26d7de===0x1?_0x4dfd1f:'','jsonID':_0x26d7de===0x2?_0x4dfd1f:'','type':_0x2a0fcd,'useImageUrl':this[_0x2b735f(0x2ba)](),'ignoreTableExport':this[_0x2b735f(0x231)]()});if(!_0x52b65f){this[_0x2b735f(0x18e)]['next']({'error':{'code':_0x3ff13f[_0x2b735f(0x22b)],'message':_0x2b735f(0x2b8)},'state':0x2});return;}if(this[_0x2b735f(0x18e)]['next']({'error':_0x52b65f[_0x2b735f(0x19f)],'state':0x2}),_0x52b65f[_0x2b735f(0x19f)]&&_0x52b65f[_0x2b735f(0x19f)]['code']!==_0x3ff13f['OK'])return;let _0x2c8483=_0x52b65f[_0x2b735f(0x1f2)],_0x5f50e0=await this[_0x2b735f(0x182)][_0x2b735f(0x1a4)](_0x2c8483)[_0x2b735f(0x21f)](_0x5a1a0d=>{const _0x4cf499=_0x2b735f;var _0x4a325f;let _0x2e111a=_0x5a1a0d instanceof Error?_0x5a1a0d['message']:(_0x4a325f=_0x5a1a0d[_0x4cf499(0x19f)])==null?void 0x0:_0x4a325f['message'];this[_0x4cf499(0x18e)][_0x4cf499(0x189)]({'error':{'code':_0x3ff13f[_0x4cf499(0x22b)],'message':_0x2e111a||''},'state':0x3});});if(!_0x5f50e0)return;let _0x8d1a87=((_0x2caf73=_0x5f50e0[_0x2b735f(0x2c2)])==null?void 0x0:_0x2caf73[_0x2b735f(0x1fd)])||'';if(_0x8d1a87[_0x2b735f(0x1a0)]===0x0){this['_requestState$']['next']({'error':{'code':_0x3ff13f[_0x2b735f(0x22b)],'message':'Failed\x20to\x20get\x20fileID\x20from\x20task'},'state':0x3});return;}this['_requestState$'][_0x2b735f(0x189)]({'error':_0x5f50e0[_0x2b735f(0x19f)],'state':0x3});let _0x1086de=await this[_0x2b735f(0x16b)](_0x8d1a87);if(!_0x1086de)return;let _0x30e262=await H(_0x1086de,this['_httpService']);if(!_0x30e262){this[_0x2b735f(0x18e)][_0x2b735f(0x189)]({'error':{'code':_0x3ff13f[_0x2b735f(0x22b)],'message':_0x2b735f(0x195)},'state':0x6});return;}return this['_requestState$']['next']({'error':{'code':_0x3ff13f['OK'],'message':_0x2b735f(0x1cc)},'state':0x6}),_0x30e262;}async[_0x33286a(0x172)](_0x2e7004,_0x2668c,_0x59a57d){const _0x4af0df=_0x33286a;let _0x580076;try{_0x580076=await this['_requestService'][_0x4af0df(0x1ad)](_0x2e7004,_0x2668c,_0x59a57d);}catch(_0x556618){let _0x11e430=_0x556618 instanceof Error?_0x556618['message']:String(_0x556618);this['_requestState$'][_0x4af0df(0x189)]({'error':{'code':_0x3ff13f[_0x4af0df(0x22b)],'message':_0x11e430},'state':0x0});return;}if(!_0x580076||typeof _0x580076[_0x4af0df(0x2a9)]!='string'){this[_0x4af0df(0x18e)][_0x4af0df(0x189)]({'error':{'code':_0x3ff13f['UNRECOGNIZED'],'message':'upload\x20failed:\x20missing\x20FileId\x20in\x20response'},'state':0x0});return;}let _0x404670=_0x580076['FileId'];if(_0x404670[_0x4af0df(0x1a0)]===0x0){this[_0x4af0df(0x18e)]['next']({'error':{'code':_0x3ff13f[_0x4af0df(0x22b)],'message':_0x4af0df(0x1b0)},'state':0x0});return;}return this[_0x4af0df(0x18e)][_0x4af0df(0x189)]({'error':{'code':_0x3ff13f['OK'],'message':'success'},'state':0x0}),_0x404670;}async[_0x33286a(0x183)](_0x2deeee,_0x5e9eab,_0x39100c){const _0x1a56bf=_0x33286a;let _0x358b06={'fileID':_0x2deeee,'type':_0x39100c,'outputType':_0x5e9eab,'fileUrl':'','minSheetRowCount':this[_0x1a56bf(0x275)](),'minSheetColumnCount':this[_0x1a56bf(0x28d)]()},_0x195ae9=await this[_0x1a56bf(0x182)]['import'](_0x358b06);if(!_0x195ae9){this['_requestState$'][_0x1a56bf(0x189)]({'error':{'code':_0x3ff13f[_0x1a56bf(0x22b)],'message':_0x1a56bf(0x20b)},'state':0x1});return;}if(_0x195ae9[_0x1a56bf(0x19f)]&&_0x195ae9[_0x1a56bf(0x19f)][_0x1a56bf(0x21d)]!==_0x3ff13f['OK']){this[_0x1a56bf(0x18e)][_0x1a56bf(0x189)]({'error':_0x195ae9[_0x1a56bf(0x19f)],'state':0x1});return;}let _0x5b28b7=_0x195ae9[_0x1a56bf(0x1f2)];if(_0x5b28b7['length']===0x0){this['_requestState$']['next']({'error':{'code':_0x3ff13f[_0x1a56bf(0x22b)],'message':'Failed\x20to\x20get\x20taskID\x20from\x20import\x20response'},'state':0x1});return;}return this['_requestState$']['next']({'error':_0x195ae9[_0x1a56bf(0x19f)],'state':0x1}),_0x5b28b7;}async[_0x33286a(0x16b)](_0x1ca969){const _0x4cabb9=_0x33286a;let _0x1e235b=await this[_0x4cabb9(0x182)]['signUrl'](_0x1ca969);if(!_0x1e235b){this[_0x4cabb9(0x18e)][_0x4cabb9(0x189)]({'error':{'code':_0x3ff13f[_0x4cabb9(0x22b)],'message':_0x4cabb9(0x1dc)},'state':0x4});return;}if(_0x1e235b[_0x4cabb9(0x19f)]&&_0x1e235b[_0x4cabb9(0x19f)][_0x4cabb9(0x21d)]!==_0x3ff13f['OK']){this[_0x4cabb9(0x18e)][_0x4cabb9(0x189)]({'error':_0x1e235b[_0x4cabb9(0x19f)],'state':0x4});return;}let _0x1b18bb=_0x510b26(_0x1e235b[_0x4cabb9(0x1a9)],this[_0x4cabb9(0x263)]());if(_0x1b18bb[_0x4cabb9(0x1a0)]===0x0){this[_0x4cabb9(0x18e)][_0x4cabb9(0x189)]({'error':{'code':_0x3ff13f[_0x4cabb9(0x22b)],'message':_0x4cabb9(0x1dc)},'state':0x4});return;}return this[_0x4cabb9(0x18e)][_0x4cabb9(0x189)]({'error':_0x1e235b['error'],'state':0x4}),_0x1b18bb;}[_0x33286a(0x263)](){const _0x30db31=_0x33286a;var _0x570f19;let _0x107d6c=this['_configService'][_0x30db31(0x289)](T);return(_0x570f19=_0x107d6c==null?void 0x0:_0x107d6c[_0x30db31(0x1a7)])==null?location[_0x30db31(0x287)]:_0x570f19;}[_0x33286a(0x275)](){const _0x10b8c4=_0x33286a;var _0x17c6bd,_0x4c2a5f;let _0x42402f=this[_0x10b8c4(0x1e0)][_0x10b8c4(0x289)](T);return(_0x17c6bd=_0x42402f==null||(_0x4c2a5f=_0x42402f['options'])==null?void 0x0:_0x4c2a5f[_0x10b8c4(0x29a)])==null?0x1:_0x17c6bd;}['_getMinSheetColumnCount'](){const _0x3158a7=_0x33286a;var _0x4c0f93,_0x5c2312;let _0x501675=this[_0x3158a7(0x1e0)]['getConfig'](T);return(_0x4c0f93=_0x501675==null||(_0x5c2312=_0x501675[_0x3158a7(0x262)])==null?void 0x0:_0x5c2312[_0x3158a7(0x281)])==null?0x1:_0x4c0f93;}[_0x33286a(0x2ba)](){const _0x591b7c=_0x33286a;var _0x387c69,_0x271129;let _0x5772db=this[_0x591b7c(0x1e0)]['getConfig'](T);return(_0x387c69=_0x5772db==null||(_0x271129=_0x5772db[_0x591b7c(0x262)])==null?void 0x0:_0x271129[_0x591b7c(0x208)])==null?!0x0:_0x387c69;}['_getIgnoreTableExport'](){const _0xe566b1=_0x33286a;var _0x4c5f01,_0x12d9a9;let _0x1e1674=this[_0xe566b1(0x1e0)][_0xe566b1(0x289)](T);return(_0x4c5f01=_0x1e1674==null||(_0x12d9a9=_0x1e1674[_0xe566b1(0x262)])==null?void 0x0:_0x12d9a9[_0xe566b1(0x1b5)])==null?!0x1:_0x4c5f01;}};Y=D([E(0x0,_0x3789d5),E(0x1,_0x42e024(_0x4d5109)),E(0x2,_0x42e024(W))],Y);const it={'done':0x0,'count':0x0},X=_0x9aec77(_0x33286a(0x26a));let Z=class extends _0x1e19cc{constructor(_0x208d01,_0x3a0cdc,_0x4f4b89,_0x2a1f51,_0x3a4531,_0x4e0109,_0x59c94a){const _0x28261c=_0x33286a;super(),this[_0x28261c(0x1e5)]=_0x208d01,this[_0x28261c(0x210)]=_0x3a0cdc,this['_localeService']=_0x4f4b89,this[_0x28261c(0x22f)]=_0x2a1f51,this[_0x28261c(0x28c)]=_0x3a4531,this[_0x28261c(0x1f1)]=_0x4e0109,this[_0x28261c(0x23e)]=_0x59c94a,A(this,_0x28261c(0x1ec),new _0x4a0dc3(it)),A(this,_0x28261c(0x260),this[_0x28261c(0x1ec)][_0x28261c(0x223)]()),A(this,_0x28261c(0x229),0x0),A(this,_0x28261c(0x27a),0x0),this[_0x28261c(0x20a)](_0xb125b6(this[_0x28261c(0x22f)]['requestState$'][_0x28261c(0x1c0)](_0x39ec52=>{const _0x2b1920=_0x28261c;var _0x434dc3;((_0x434dc3=_0x39ec52[_0x2b1920(0x19f)])==null?void 0x0:_0x434dc3['code'])===_0x3ff13f['OK']?this[_0x2b1920(0x294)](0x1):this[_0x2b1920(0x16c)](_0x39ec52[_0x2b1920(0x19f)]);})));}[_0x33286a(0x27b)](){const _0x484129=_0x33286a;this[_0x484129(0x1fc)](),this[_0x484129(0x28c)]['updateState'](0x2),this['_exchangeService'][_0x484129(0x197)]();}async[_0x33286a(0x241)](_0x3fb49d){const _0xb5eb0=_0x33286a;throw Error(_0xb5eb0(0x1bd));}async[_0x33286a(0x248)](){const _0x31670c=_0x33286a;let _0x28b779=this['_univerInstanceService'][_0x31670c(0x202)]();switch(_0x28b779?this[_0x31670c(0x1e5)][_0x31670c(0x21a)](_0x28b779[_0x31670c(0x272)]()):_0x127a83[_0x31670c(0x22b)]){case _0x127a83['UNIVER_SLIDE']:return this['importPPTXToUnitId']();case _0x127a83['UNIVER_DOC']:return this[_0x31670c(0x205)]();case _0x127a83[_0x31670c(0x268)]:default:return this[_0x31670c(0x17d)]();}}async['importDOCXToUnitId'](){const _0x17551a=_0x33286a;let _0x24f0ca=await V([_0x127a83['UNIVER_DOC']]);if(_0x24f0ca&&!this['_fileTypeError'](_0x24f0ca,_0x127a83[_0x17551a(0x2c0)]))return this[_0x17551a(0x24b)](_0x24f0ca[0x0],_0x127a83['UNIVER_DOC']);}[_0x33286a(0x18d)](){const _0x4e786d=_0x33286a;throw Error(_0x4e786d(0x1bd));}async[_0x33286a(0x219)](_0x94355d,_0x55e0da,_0x1753df){const _0x4662f1=_0x33286a;this[_0x4662f1(0x1e2)](_0x414fd5[_0x4662f1(0x2c3)]);let _0x353d62=await this[_0x4662f1(0x22f)][_0x4662f1(0x219)](_0x94355d||this[_0x4662f1(0x237)]());_0x353d62&&(this[_0x4662f1(0x22f)][_0x4662f1(0x1a1)](_0x353d62,_0x55e0da||this[_0x4662f1(0x23a)](_0x353d62),_0x4662f1(0x1f0)),this['_showDownloadMessage'](_0x414fd5['Success']));}async['exportDOCXBySnapshot'](){const _0x23cbe7=_0x33286a;this['_showDownloadMessage'](_0x414fd5[_0x23cbe7(0x2c3)]);let _0x363fed=await this[_0x23cbe7(0x1da)](),_0x984727=await this[_0x23cbe7(0x22f)][_0x23cbe7(0x1c4)](_0x363fed);_0x984727&&(this['_exchangeService'][_0x23cbe7(0x1a1)](_0x984727,this[_0x23cbe7(0x23a)](_0x984727),_0x23cbe7(0x1f0)),this['_showDownloadMessage'](_0x414fd5[_0x23cbe7(0x200)]));}async[_0x33286a(0x17e)](){const _0x231153=_0x33286a;if(this[_0x231153(0x28b)]()){this['_messageService'][_0x231153(0x25d)]({'type':_0x414fd5[_0x231153(0x28f)],'content':this[_0x231153(0x1a8)]['t'](_0x231153(0x2bd))});return;}let _0x7c8454=await V([_0x127a83['UNIVER_SLIDE']]);if(_0x7c8454&&!this['_fileTypeError'](_0x7c8454,_0x127a83['UNIVER_SLIDE']))return this[_0x231153(0x24b)](_0x7c8454[0x0],_0x127a83[_0x231153(0x16d)]);}async[_0x33286a(0x19b)](){const _0x39c1e3=_0x33286a;if(this['_uploadTaskNotDone']()){this[_0x39c1e3(0x210)][_0x39c1e3(0x25d)]({'type':_0x414fd5[_0x39c1e3(0x28f)],'content':this['_localeService']['t'](_0x39c1e3(0x2bd))});return;}let _0xcdfc7=await V([_0x127a83['UNIVER_SLIDE']]);if(!_0xcdfc7)return;this[_0x39c1e3(0x2c9)](_0x414fd5[_0x39c1e3(0x2c3)]);let _0x1fdef7=await this[_0x39c1e3(0x22f)]['importPPTXToSnapshot'](_0xcdfc7[0x0]);_0x1fdef7&&(this['_refreshSlide'](_0x1fdef7),this[_0x39c1e3(0x2c9)](_0x414fd5[_0x39c1e3(0x200)]));}async[_0x33286a(0x23b)](_0x593b7d,_0x105280,_0x3bfd57){const _0x516e9c=_0x33286a;this[_0x516e9c(0x1e2)](_0x414fd5['Info']);let _0x113ca1=await this[_0x516e9c(0x22f)]['exportPPTXByUnitId'](_0x593b7d||this[_0x516e9c(0x188)]());_0x113ca1&&(this[_0x516e9c(0x22f)][_0x516e9c(0x1a1)](_0x113ca1,_0x105280||this['_getUnitNameByType'](_0x113ca1,_0x3bfd57==null?_0x127a83['UNIVER_SLIDE']:_0x3bfd57),_0x516e9c(0x29c)),this[_0x516e9c(0x1e2)](_0x414fd5[_0x516e9c(0x200)]));}async[_0x33286a(0x2b1)](){const _0x228edd=_0x33286a;this[_0x228edd(0x1e2)](_0x414fd5['Info']);let _0x4ef145=await this[_0x228edd(0x17b)](),_0x473adb=await this['_exchangeService']['exportPPTXBySnapshot'](_0x4ef145);_0x473adb&&(this[_0x228edd(0x22f)][_0x228edd(0x1a1)](_0x473adb,this[_0x228edd(0x192)](_0x473adb,_0x127a83[_0x228edd(0x16d)]),_0x228edd(0x29c)),this[_0x228edd(0x1e2)](_0x414fd5[_0x228edd(0x200)]));}async['importXLSXToUnitId'](){const _0x4dbc27=_0x33286a;if(this[_0x4dbc27(0x28b)]()){this['_messageService']['show']({'type':_0x414fd5[_0x4dbc27(0x28f)],'content':this[_0x4dbc27(0x1a8)]['t']('exchange-client.uploading')});return;}let _0x2c9210=await V([_0x127a83['UNIVER_SHEET']]);if(_0x2c9210&&!this[_0x4dbc27(0x1b3)](_0x2c9210,_0x127a83[_0x4dbc27(0x268)]))return this[_0x4dbc27(0x24b)](_0x2c9210[0x0],_0x127a83[_0x4dbc27(0x268)]);}async[_0x33286a(0x247)](){const _0x415c84=_0x33286a;if(this[_0x415c84(0x28b)]()){this[_0x415c84(0x210)][_0x415c84(0x25d)]({'type':_0x414fd5[_0x415c84(0x28f)],'content':this[_0x415c84(0x1a8)]['t'](_0x415c84(0x2bd))});return;}let _0x1cd482=await V([_0x127a83[_0x415c84(0x268)]]);if(!_0x1cd482)return;this[_0x415c84(0x2c9)](_0x414fd5[_0x415c84(0x2c3)]);let _0x4643b2=await this[_0x415c84(0x22f)]['importXLSXToSnapshot'](_0x1cd482[0x0]);_0x4643b2&&(this['_refresh'](_0x4643b2),this[_0x415c84(0x2c9)](_0x414fd5['Success']));}async['exportXLSXByUnitId'](_0x3598a6,_0x4ae99c,_0x19b2e1){const _0x24c73d=_0x33286a;this['_showDownloadMessage'](_0x414fd5['Info']);let _0x50017a=await this[_0x24c73d(0x22f)][_0x24c73d(0x267)](_0x3598a6||this[_0x24c73d(0x22a)]());_0x50017a&&(this['_exchangeService']['downloadFile'](_0x50017a,_0x4ae99c||this[_0x24c73d(0x23a)](_0x50017a),_0x24c73d(0x21c)),this['_showDownloadMessage'](_0x414fd5[_0x24c73d(0x200)]));}async[_0x33286a(0x1ce)](){const _0x297f04=_0x33286a;this[_0x297f04(0x1e2)](_0x414fd5[_0x297f04(0x2c3)]);let _0x379ead=await this[_0x297f04(0x170)](),_0x58b18a=await this[_0x297f04(0x22f)][_0x297f04(0x1ce)](_0x379ead);_0x58b18a&&(this[_0x297f04(0x22f)][_0x297f04(0x1a1)](_0x58b18a,this[_0x297f04(0x23a)](_0x58b18a),'xlsx'),this[_0x297f04(0x1e2)](_0x414fd5['Success']));}[_0x33286a(0x1ba)](_0x59aebe){const _0x31ce73=_0x33286a;this[_0x31ce73(0x23d)]=_0x59aebe;}async[_0x33286a(0x24b)](_0x237a30,_0x3047ab){const _0x4c1cd9=_0x33286a;this[_0x4c1cd9(0x28c)]['show'](),this[_0x4c1cd9(0x28c)][_0x4c1cd9(0x193)](0x0),this['_addTotalCount'](0x4),this[_0x4c1cd9(0x294)](0x1);let _0x2c8d4f=await this['_exchangeService'][_0x4c1cd9(0x2aa)](_0x237a30,_0x3047ab);if(!_0x2c8d4f){this[_0x4c1cd9(0x1fc)](),this[_0x4c1cd9(0x28c)]['updateState'](0x2);return;}let _0x3b7c65={'link':this[_0x4c1cd9(0x23d)](_0x2c8d4f,_0x3047ab),'name':_0x237a30['name'],'type':_0x3047ab};return this[_0x4c1cd9(0x28c)][_0x4c1cd9(0x280)](_0x3b7c65),this['_completeProgress'](),this[_0x4c1cd9(0x28c)][_0x4c1cd9(0x193)](0x1),_0x2c8d4f;}[_0x33286a(0x22a)](){const _0x398bc4=_0x33286a;return this[_0x398bc4(0x1e5)][_0x398bc4(0x16f)](_0x127a83[_0x398bc4(0x268)])['getUnitId']();}[_0x33286a(0x237)](){const _0x5a585a=_0x33286a;return this[_0x5a585a(0x1e5)]['getCurrentUnitOfType'](_0x127a83[_0x5a585a(0x2c0)])[_0x5a585a(0x272)]();}['_getUnitIDSlide'](){const _0xc1e0a5=_0x33286a;return this[_0xc1e0a5(0x1e5)]['getCurrentUnitOfType'](_0x127a83[_0xc1e0a5(0x16d)])[_0xc1e0a5(0x272)]();}[_0x33286a(0x23a)](_0x375a44){const _0x17bfa6=_0x33286a;return this['_getUnitNameByType'](_0x375a44,_0x127a83[_0x17bfa6(0x268)]);}[_0x33286a(0x192)](_0x574260,_0xb31d0b){const _0x48915b=_0x33286a;var _0x43ce6b;let _0x5e0127=(_0x43ce6b=this[_0x48915b(0x1e5)][_0x48915b(0x16f)](_0xb31d0b))==null?void 0x0:_0x43ce6b['getSnapshot'](),_0x171dbc=_0x5e0127==null?void 0x0:_0x5e0127[_0x48915b(0x2c8)];return typeof _0x171dbc==_0x48915b(0x1d4)&&_0x171dbc[_0x48915b(0x24a)]()?_0x171dbc:_0x574260[_0x48915b(0x2c8)][_0x48915b(0x167)]('.')[_0x48915b(0x18b)]()||document[_0x48915b(0x273)];}async[_0x33286a(0x170)](){const _0x5150ea=_0x33286a;let _0x18d341=this[_0x5150ea(0x1e5)]['getCurrentUnitOfType'](_0x127a83[_0x5150ea(0x268)]),_0x238afa=this[_0x5150ea(0x23e)][_0x5150ea(0x216)](_0x18d341[_0x5150ea(0x272)]());return _0x238afa==null?_0x18d341['getSnapshot']():_0x238afa;}async[_0x33286a(0x1da)](){const _0x4971c0=_0x33286a;let _0x2e0ab7=this[_0x4971c0(0x1e5)][_0x4971c0(0x16f)](_0x127a83[_0x4971c0(0x2c0)]),_0x4b3b4c=this[_0x4971c0(0x23e)][_0x4971c0(0x216)](_0x2e0ab7[_0x4971c0(0x272)]());return _0x4b3b4c==null?_0x2e0ab7['getSnapshot']():_0x4b3b4c;}async['_getUnitSlideJson'](){const _0x3b4275=_0x33286a;let _0x201568=this[_0x3b4275(0x1e5)][_0x3b4275(0x16f)](_0x127a83['UNIVER_SLIDE']),_0x4c9707=this['_resourceLoaderService']['saveUnit'](_0x201568['getUnitId']());return _0x4c9707==null?_0x201568[_0x3b4275(0x283)]():_0x4c9707;}[_0x33286a(0x23d)](_0x11bddd,_0x35b37b){const _0x243352=_0x33286a;let _0x33271b=new URL(window[_0x243352(0x232)]['href']);return _0x33271b[_0x243352(0x2bc)][_0x243352(0x1ef)](_0x243352(0x19c),_0x11bddd),_0x33271b[_0x243352(0x2bc)][_0x243352(0x1ef)](_0x243352(0x224),''+_0x35b37b),_0x33271b['toString']();}[_0x33286a(0x20e)](_0x11623d){const _0x51fc19=_0x33286a;let _0x3c84ad=this['_univerInstanceService'][_0x51fc19(0x16f)](_0x127a83['UNIVER_SHEET'])[_0x51fc19(0x272)]();this[_0x51fc19(0x1e5)]['disposeUnit'](_0x3c84ad),this['_univerInstanceService']['createUnit'](_0x127a83[_0x51fc19(0x268)],_0x11623d);}[_0x33286a(0x18a)](_0x110287){const _0x5dc97f=_0x33286a;let _0x922111=this[_0x5dc97f(0x1e5)]['getCurrentUnitOfType'](_0x127a83[_0x5dc97f(0x16d)])[_0x5dc97f(0x272)]();this[_0x5dc97f(0x1e5)][_0x5dc97f(0x2b2)](_0x922111),this[_0x5dc97f(0x1e5)][_0x5dc97f(0x176)](_0x127a83[_0x5dc97f(0x16d)],_0x110287);}[_0x33286a(0x16c)](_0x1ee9ff){const _0x436abf=_0x33286a;if(_0x1ee9ff){let {code:_0xc618f8}=_0x1ee9ff;switch(_0xc618f8){case _0x3ff13f['CONNECTOR_DATA_TOO_LARGE']:this[_0x436abf(0x210)][_0x436abf(0x25d)]({'type':_0x414fd5['Error'],'content':this['_localeService']['t'](_0x436abf(0x25a))});break;case _0x3ff13f['INTERNAL_ERROR']:this[_0x436abf(0x210)][_0x436abf(0x25d)]({'type':_0x414fd5[_0x436abf(0x1aa)],'content':this[_0x436abf(0x1a8)]['t'](_0x436abf(0x174))});break;default:this['_messageService']['show']({'type':_0x414fd5[_0x436abf(0x1aa)],'content':this[_0x436abf(0x1a8)]['t'](_0x436abf(0x1c1))});break;}return null;}return this[_0x436abf(0x210)]['show']({'type':_0x414fd5[_0x436abf(0x1aa)],'content':this['_localeService']['t'](_0x436abf(0x1c1))}),null;}[_0x33286a(0x1e2)](_0x3cf0ee){const _0x744538=_0x33286a;let _0x4a4695='';switch(_0x3cf0ee){case _0x414fd5[_0x744538(0x200)]:_0x4a4695=this[_0x744538(0x1a8)]['t'](_0x744538(0x27c));break;case _0x414fd5[_0x744538(0x2c3)]:_0x4a4695=this[_0x744538(0x1a8)]['t']('exchange-client.downloading');break;default:break;}this[_0x744538(0x210)][_0x744538(0x25d)]({'type':_0x3cf0ee,'content':_0x4a4695});}[_0x33286a(0x2c9)](_0x152201){const _0x3378fc=_0x33286a;let _0x17b524='';switch(_0x152201){case _0x414fd5['Success']:_0x17b524=this[_0x3378fc(0x1a8)]['t']('exchange-client.uploadSuccess');break;case _0x414fd5['Info']:_0x17b524=this[_0x3378fc(0x1a8)]['t'](_0x3378fc(0x2bd));break;default:break;}this[_0x3378fc(0x210)][_0x3378fc(0x25d)]({'type':_0x152201,'content':_0x17b524});}['_emitProgress'](){const _0x324d40=_0x33286a;this[_0x324d40(0x1ec)][_0x324d40(0x189)]({'done':this[_0x324d40(0x27a)],'count':this[_0x324d40(0x229)]});}[_0x33286a(0x206)](_0x44607d){const _0x2aa05d=_0x33286a;this[_0x2aa05d(0x229)]+=_0x44607d,this['_emitProgress']();}['_addDoneTask'](_0x53ddec){const _0x8e1c9a=_0x33286a;this[_0x8e1c9a(0x27a)]+=_0x53ddec,this['_doneUploadTaskCount']=Math[_0x8e1c9a(0x286)](this[_0x8e1c9a(0x27a)],this['_totalUploadTaskCount']),this[_0x8e1c9a(0x24e)]();}[_0x33286a(0x213)](){const _0x2010b5=_0x33286a;this[_0x2010b5(0x27a)]=this[_0x2010b5(0x229)],this['_emitProgress']();}[_0x33286a(0x1fc)](){this['_doneUploadTaskCount']=0x0,this['_totalUploadTaskCount']=0x0,this['_emitProgress']();}[_0x33286a(0x1b3)](_0xedebb2,_0x26bd93){const _0x5a031b=_0x33286a;let _0x50954b=_0xedebb2[0x0],_0x139949=_0x50954b[_0x5a031b(0x2c8)];return He(_0x50954b)===_0x26bd93?!0x1:(this[_0x5a031b(0x210)][_0x5a031b(0x25d)]({'type':_0x414fd5[_0x5a031b(0x1aa)],'content':this['_localeService']['t'](_0x5a031b(0x26d),_0x139949)}),!0x0);}[_0x33286a(0x28b)](){const _0x4c34fb=_0x33286a;return this['_totalUploadTaskCount']!==0x0&&this['_doneUploadTaskCount']!==this[_0x4c34fb(0x229)];}};Z=D([E(0x0,_0x42e024(_0x2143ae)),E(0x1,_0x4dc66a),E(0x2,_0x42e024(_0xcd31af)),E(0x3,_0x42e024(J)),E(0x4,_0x42e024(j)),E(0x5,_0x2c9d1d),E(0x6,_0x42e024(_0x3d1c83))],Z);function at(_0x35b476){const _0x1ed02e=_0x33286a;let {onClick:_0x2f6b1a,children:_0x5a0935,className:_0x3ffa78}=_0x35b476;return _0x5b1a45(_0x1ed02e(0x1d0),{'className':_0x1ca27a(_0x1ed02e(0x278),_0x3ffa78),'type':'button','onClick':_0x2f6b1a,'children':_0x5a0935});}function ot(){const _0x33eb25=_0x33286a;let _0x2c95e5=_0x56b32c(X),_0x52ddb0=_0x56b32c(_0xcd31af);function _0x441fa2(){const _0x3fb0b6=_0x5cad;_0x2c95e5[_0x3fb0b6(0x248)]();}return _0x5b1a45(at,{'onClick':_0x441fa2,'children':_0x52ddb0['t'](_0x33eb25(0x299))});}function st(){const _0x3b8b8b=_0x33286a;return _0x552aae(_0x3b8b8b(0x1dd),{'className':_0x3b8b8b(0x20d),'children':[_0x5b1a45(_0x3b8b8b(0x235),{'className':_0x3b8b8b(0x21e),'children':_0x56b32c(_0xcd31af)['t'](_0x3b8b8b(0x1b7))}),_0x5b1a45(ot,{})]});}function ct(_0x3df9bd){const _0x15624e=_0x33286a;let {count:_0x104824}=_0x3df9bd;return _0x552aae(_0x15624e(0x1dd),{'className':_0x15624e(0x199),'children':[_0x5b1a45(_0x15624e(0x235),{'className':_0x15624e(0x274),'children':_0x56b32c(_0xcd31af)['t']('exchange-client.uploadSuccessTip',''+_0x104824)}),_0x5b1a45(ot,{})]});}function lt(){const _0x2d95c6=_0x33286a;let _0x516c7d=_0x56b32c(X),_0x2e6c55=_0x56b32c(_0xcd31af);function _0x3c9fcc(){const _0x1cf397=_0x5cad;_0x516c7d[_0x1cf397(0x27b)]();}return _0x5b1a45(at,{'onClick':_0x3c9fcc,'children':_0x2e6c55['t'](_0x2d95c6(0x1c8))});}function ut(){const _0x32e5ea=_0x33286a;let {count:_0x45858c,done:_0x248036}=_0x45108c(_0x56b32c(X)[_0x32e5ea(0x260)]),_0x351186=_0x45858c>0x0?_0x248036/_0x45858c:0x0;return _0x5b1a45(_0x32e5ea(0x1dd),{'className':'univer-mx-0\x20univer-mb-3\x20univer-mt-4\x20univer-h-1.5\x20univer-w-[324px]\x20univer-rounded-lg\x20univer-bg-gray-200','children':_0x5b1a45(_0x32e5ea(0x1dd),{'className':_0x32e5ea(0x1e9),'style':{'width':Math[_0x32e5ea(0x1f3)](_0x351186*0x64)+'%'}})});}function dt(){const _0x4e8182=_0x33286a;return _0x552aae(_0x4e8182(0x1dd),{'className':_0x4e8182(0x20d),'children':[_0x5b1a45(_0x4e8182(0x235),{'className':'univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','children':_0x56b32c(_0xcd31af)['t'](_0x4e8182(0x261))}),_0x5b1a45(_0x4e8182(0x1dd),{'className':_0x4e8182(0x1cb),'children':_0x5b1a45(ut,{})}),_0x5b1a45(lt,{})]});}function _0x5cad(_0x4d7490,_0x2ffb02){_0x4d7490=_0x4d7490-0x164;const _0x113649=_0x1136();let _0x5cadf9=_0x113649[_0x4d7490];return _0x5cadf9;}const ft={0x1:_0x5b1a45(_0x3359c4,{'className':_0x33286a(0x226)}),0x0:_0x5b1a45(_0x3bbb8f,{'className':_0x33286a(0x254)}),0x2:_0x5b1a45(_0x6f3282,{'className':_0x33286a(0x201)})};function pt(){const _0xd95c8f=_0x33286a;let _0x30bad3=_0x56b32c(j),_0x1419ec=_0x56b32c(_0xcd31af),_0x350f38=_0x45108c(_0x30bad3[_0xd95c8f(0x171)],0x0),_0x40adbb=_0x45108c(_0x30bad3['visible$'],!0x1),_0x19113d=_0x45108c(_0x30bad3[_0xd95c8f(0x1f7)],[]);function _0x1c6aa3(){const _0x16358b=_0xd95c8f;_0x30bad3[_0x16358b(0x245)]();}function _0x53d886(_0x242ba0){const _0x213108=_0xd95c8f;switch(_0x242ba0){case 0x1:return _0x1419ec['t'](_0x213108(0x17a));case 0x0:return _0x1419ec['t']('exchange-client.uploading');case 0x2:return _0x1419ec['t'](_0x213108(0x18f));default:return'';}}return _0x40adbb&&_0x552aae(_0xd95c8f(0x1dd),{'className':_0xd95c8f(0x270),'children':[_0x552aae(_0xd95c8f(0x1dd),{'className':_0xd95c8f(0x214),'children':[_0x552aae(_0xd95c8f(0x235),{'className':_0xd95c8f(0x1d6),'children':[_0x5b1a45(_0xd95c8f(0x235),{'className':_0xd95c8f(0x1cd),'children':ft[_0x350f38]}),_0x5b1a45(_0xd95c8f(0x235),{'className':_0xd95c8f(0x1ae),'children':_0x53d886(_0x350f38)})]}),_0x5b1a45(_0xd95c8f(0x235),{'className':'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','onClick':_0x1c6aa3,'children':_0x5b1a45(_0xd5e3c,{})})]}),_0x552aae(_0xd95c8f(0x1dd),{'children':[_0x350f38===0x0&&_0x5b1a45(dt,{}),_0x350f38===0x2&&_0x5b1a45(st,{}),_0x19113d[_0xd95c8f(0x1a0)]>0x0&&_0x5b1a45(Be,{'list':_0x19113d}),_0x350f38===0x1&&_0x5b1a45(ct,{'count':_0x19113d['length']})]})]});}function mt(){return _0x5b1a45(pt,{});}let Q=class extends _0x1e19cc{constructor(_0x1d3d71,_0x57c782){const _0x161381=_0x33286a;super(),this[_0x161381(0x1c7)]=_0x1d3d71,this[_0x161381(0x1ca)]=_0x57c782,this['_registerUIParts']();}[_0x33286a(0x2a1)](){const _0x504665=_0x33286a;this['disposeWithMe'](this[_0x504665(0x1ca)][_0x504665(0x284)](_0x531cab[_0x504665(0x293)],()=>_0x4c45b1(mt,this['_injector'])));}};Q=D([E(0x0,_0x42e024(_0x33c4f6)),E(0x1,_0x9de50e)],Q);let $=class extends _0x18db66{constructor(_0xa998c=Ie,_0x4abc74,_0x1b02b0){const _0x5f5111=_0x33286a;super(),this[_0x5f5111(0x25e)]=_0xa998c,this['_injector']=_0x4abc74,this['_configService']=_0x1b02b0;let {..._0xdf1962}=_0x53c4af({},Ie,this[_0x5f5111(0x25e)]);this['_configService'][_0x5f5111(0x2a8)](T,_0xdf1962);}[_0x33286a(0x1ea)](){const _0x30a2e5=_0x33286a;_0x594ee9(this[_0x30a2e5(0x1c7)],[[O],[Q],[X,{'useClass':Z}],[J,{'useClass':Y}],[W,{'useClass':G}],[j,{'useClass':ze}]]);}[_0x33286a(0x2ad)](){const _0x21a965=_0x33286a;_0x48beab(this[_0x21a965(0x1c7)],[[O],[Q],[X]]);}};A($,_0x33286a(0x1db),'UNIVER_EXCHANGE_CLIENT_PLUGIN'),A($,_0x33286a(0x243),Pe),A($,_0x33286a(0x2b5),Fe),$=D([_0x20a1e0(_0x47c91a,_0x36cae2),E(0x1,_0x42e024(_0x33c4f6)),E(0x2,_0x3789d5)],$);export{X as IExchangeOperateService,J as IExchangeService,$ as UniverExchangeClientPlugin,Ve as downloadFile,tt as transformSnapshotJsonToWorkbookData,Qe as transformWorkbookDataToSnapshotJson};
|
|
1
|
+
const _0x222254=_0x5ef7;(function(_0x18c733,_0x294b14){const _0xfa64fe=_0x5ef7,_0x4d6216=_0x18c733();while(!![]){try{const _0x1fbf8e=parseInt(_0xfa64fe(0x18d))/0x1*(-parseInt(_0xfa64fe(0x1be))/0x2)+parseInt(_0xfa64fe(0x169))/0x3*(-parseInt(_0xfa64fe(0x226))/0x4)+-parseInt(_0xfa64fe(0x159))/0x5+parseInt(_0xfa64fe(0x257))/0x6+parseInt(_0xfa64fe(0x161))/0x7*(-parseInt(_0xfa64fe(0x1a2))/0x8)+parseInt(_0xfa64fe(0x1ff))/0x9+parseInt(_0xfa64fe(0x1a4))/0xa;if(_0x1fbf8e===_0x294b14)break;else _0x4d6216['push'](_0x4d6216['shift']());}catch(_0x4bca76){_0x4d6216['push'](_0x4d6216['shift']());}}}(_0x4aac,0xcd30e));import{UniverLicensePlugin as _0x5101d5}from'@univerjs-pro/license';import{DependentOn as _0x478567,Disposable as _0x5b5c70,IConfigService as _0x55d0d4,ILogService as _0x4ed4b7,IResourceLoaderService as _0x56b3b9,IUniverInstanceService as _0x432a12,Inject as _0x412acd,Injector as _0x328aba,LocaleService as _0x51b184,Plugin as _0x2a7ab1,UniverInstanceType as _0x151766,createIdentifier as _0x18097c,merge as _0x17799a,registerDependencies as _0x27dbb6,resolveWithBasePath as _0xd7c7a9,toDisposable as _0x1e4bdd,touchDependencies as _0x4959dc}from'@univerjs/core';import{HTTPResponseError as _0xa14227,HTTPService as _0x2c82c0,UniverNetworkPlugin as _0x417308}from'@univerjs/network';import{BuiltInUIPart as _0x552673,IMessageService as _0x4f4a53,IUIPartsService as _0x37052e,IconManager as _0x3c6ba6,UniverUIPlugin as _0x35b6ef,connectInjector as _0x1d0427,useDependency as _0x1e3628,useObservable as _0x4079b5}from'@univerjs/ui';import{ClockIcon as _0xd88cde,CloseIcon as _0x5d7771,DirectExportIcon as _0x441350,DocsMultiIcon as _0x546a32,ErrorIcon as _0x4cd45e,ShareRangeIcon as _0x256f52,SheetsMultiIcon as _0x311260,SlidesMultiIcon as _0x5ce95e,SuccessIcon as _0x5ab502}from'@univerjs/icons';import{BehaviorSubject as _0x213ee6,Subject as _0x34e63b}from'rxjs';import{MessageType as _0x30a331,Tooltip as _0x1496db,clsx as _0x2c1e21,scrollbarClassName as _0x5223d9}from'@univerjs/design';import{jsx as _0x314104,jsxs as _0x525f8d}from'react/jsx-runtime';import{ErrorCode as _0x1889ed,FileSource as _0x5723fe}from'@univerjs/protocol';import{SnapshotService as _0x1c35f5,b64DecodeUnicode as _0x3ca26b,b64EncodeUnicode as _0x117463,getSheetBlocksFromSnapshot as _0x5ca6b,textDecoder as _0x4d8b4a,textEncoder as _0x53514b,transformDocumentDataToSnapshot as _0x3600cc,transformPdfDataToSnapshot as _0x554ea5,transformSlideDataToSnapshot as _0x1b47d4,transformSnapshotToDocumentData as _0x1903a0,transformSnapshotToPdfData as _0x52625d,transformSnapshotToSlideData as _0x5f4b94,transformSnapshotToWorkbookData as _0x401a94,transformWorkbookDataToSnapshot as _0xc55962}from'@univerjs-pro/collaboration';import{deflateSync as _0xcd5c59}from'fflate';var Re=_0x222254(0x27b),ze='1.0.0-alpha.8';const T=_0x222254(0x1a7),E={};function D(_0x1ab5f3,_0x448d04){return function(_0x3d6e54,_0x22cbe5){_0x448d04(_0x3d6e54,_0x22cbe5,_0x1ab5f3);};}function O(_0x304c8b,_0xd4c64b,_0x34537d,_0x5ceef3){const _0x2f5137=_0x222254;var _0x11e5ab=arguments['length'],_0x3c7e33=_0x11e5ab<0x3?_0xd4c64b:_0x5ceef3===null?_0x5ceef3=Object[_0x2f5137(0x12c)](_0xd4c64b,_0x34537d):_0x5ceef3,_0x282807;if(typeof Reflect==_0x2f5137(0x21e)&&typeof Reflect[_0x2f5137(0x281)]==_0x2f5137(0x1d5))_0x3c7e33=Reflect[_0x2f5137(0x281)](_0x304c8b,_0xd4c64b,_0x34537d,_0x5ceef3);else{for(var _0x422843=_0x304c8b[_0x2f5137(0x194)]-0x1;_0x422843>=0x0;_0x422843--)(_0x282807=_0x304c8b[_0x422843])&&(_0x3c7e33=(_0x11e5ab<0x3?_0x282807(_0x3c7e33):_0x11e5ab>0x3?_0x282807(_0xd4c64b,_0x34537d,_0x3c7e33):_0x282807(_0xd4c64b,_0x34537d))||_0x3c7e33);}return _0x11e5ab>0x3&&_0x3c7e33&&Object[_0x2f5137(0x18a)](_0xd4c64b,_0x34537d,_0x3c7e33),_0x3c7e33;}let k=class extends _0x5b5c70{constructor(_0x1dcfa9){const _0x5e087d=_0x222254;super(),this[_0x5e087d(0x155)]=_0x1dcfa9,this['_registerIcons']();}[_0x222254(0x1a8)](){const _0x19330a=_0x222254;this[_0x19330a(0x237)](this[_0x19330a(0x155)][_0x19330a(0x1e5)]({'DirectExportIcon':_0x441350}));}};k=O([D(0x0,_0x412acd(_0x3c6ba6))],k);function A(_0x571b34){'@babel/helpers - typeof';const _0x11ead2=_0x222254;return A=typeof Symbol=='function'&&typeof Symbol[_0x11ead2(0x258)]==_0x11ead2(0x140)?function(_0x15ce47){return typeof _0x15ce47;}:function(_0xf39f6a){const _0x26ad05=_0x11ead2;return _0xf39f6a&&typeof Symbol==_0x26ad05(0x1d5)&&_0xf39f6a['constructor']===Symbol&&_0xf39f6a!==Symbol['prototype']?_0x26ad05(0x140):typeof _0xf39f6a;},A(_0x571b34);}function Be(_0x19e92f,_0x1ac037){const _0x48eed5=_0x222254;if(A(_0x19e92f)!='object'||!_0x19e92f)return _0x19e92f;var _0x544050=_0x19e92f[Symbol[_0x48eed5(0x211)]];if(_0x544050!==void 0x0){var _0x94066d=_0x544050[_0x48eed5(0x245)](_0x19e92f,_0x1ac037||_0x48eed5(0x265));if(A(_0x94066d)!=_0x48eed5(0x21e))return _0x94066d;throw TypeError(_0x48eed5(0x1ba));}return(_0x1ac037===_0x48eed5(0x27c)?String:Number)(_0x19e92f);}function Ve(_0x49647e){const _0x2933b7=_0x222254;var _0x3b409e=Be(_0x49647e,_0x2933b7(0x27c));return A(_0x3b409e)=='symbol'?_0x3b409e:_0x3b409e+'';}function j(_0x2037bf,_0x2e8d01,_0x55f5b4){const _0x14ba1e=_0x222254;return(_0x2e8d01=Ve(_0x2e8d01))in _0x2037bf?Object[_0x14ba1e(0x18a)](_0x2037bf,_0x2e8d01,{'value':_0x55f5b4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2037bf[_0x2e8d01]=_0x55f5b4,_0x2037bf;}const M=_0x18097c(_0x222254(0x18b));var He=class extends _0x5b5c70{constructor(){const _0x6123fb=_0x222254;super(),j(this,'_visible$',new _0x34e63b()),j(this,_0x6123fb(0x266),new _0x34e63b()),j(this,_0x6123fb(0x186),new _0x34e63b()),j(this,'visible$',this[_0x6123fb(0x213)][_0x6123fb(0x239)]()),j(this,_0x6123fb(0x1c9),this['_state$'][_0x6123fb(0x239)]()),j(this,_0x6123fb(0x1bd),this['_list$'][_0x6123fb(0x239)]()),j(this,_0x6123fb(0x17c),[]);}[_0x222254(0x1f4)](){const _0x5f52e4=_0x222254;super[_0x5f52e4(0x1f4)](),this[_0x5f52e4(0x213)][_0x5f52e4(0x263)](),this[_0x5f52e4(0x266)][_0x5f52e4(0x263)](),this[_0x5f52e4(0x186)][_0x5f52e4(0x263)]();}[_0x222254(0x17f)](){const _0x427151=_0x222254;this[_0x427151(0x213)][_0x427151(0x138)](!0x0);}[_0x222254(0x22e)](){const _0x2e2646=_0x222254;this[_0x2e2646(0x213)][_0x2e2646(0x138)](!0x1);}[_0x222254(0x143)](_0x4e2043){const _0x5ce012=_0x222254;this[_0x5ce012(0x266)][_0x5ce012(0x138)](_0x4e2043);}[_0x222254(0x240)](_0x551e82){const _0x2e5cd4=_0x222254;this['_list'][_0x2e5cd4(0x27d)](_0x551e82),this[_0x2e5cd4(0x186)][_0x2e5cd4(0x138)](this[_0x2e5cd4(0x17c)]);}};function Ue(_0x12e54b){const _0xb2edaf=_0x222254;let {list:_0x9f2c35}=_0x12e54b;function _0x110140(_0x3e4690){switch(_0x3e4690){case 0x1:return _0x314104(_0x546a32,{});case 0x2:return _0x314104(_0x311260,{});case 0x3:return _0x314104(_0x5ce95e,{});default:return null;}}return _0x314104(_0xb2edaf(0x26d),{'className':_0x2c1e21(_0xb2edaf(0x1a9),_0x5223d9),'children':_0x314104('ul',{'className':_0xb2edaf(0x16a),'children':_0x9f2c35[_0xb2edaf(0x196)]((_0x340c1d,_0x57bae8)=>_0x314104('li',{'children':_0x525f8d('a',{'className':_0xb2edaf(0x174),'href':_0x340c1d[_0xb2edaf(0x183)],'target':_0xb2edaf(0x1e9),'rel':_0xb2edaf(0x20b),'children':[_0x525f8d(_0xb2edaf(0x269),{'className':'univer-flex\x20univer-w-[calc(100%-48px)]\x20univer-items-center','children':[_0x314104(_0xb2edaf(0x269),{'className':_0xb2edaf(0x23c),'children':_0x110140(_0x340c1d[_0xb2edaf(0x15e)])}),_0x314104(_0x1496db,{'showIfEllipsis':!0x0,'title':_0x340c1d[_0xb2edaf(0x1b2)],'asChild':!0x0,'children':_0x314104(_0xb2edaf(0x269),{'className':_0xb2edaf(0x21c),'children':_0x340c1d['name']})})]}),_0x314104(_0xb2edaf(0x269),{'className':_0xb2edaf(0x1a6),'children':_0x314104(_0x256f52,{})})]})},_0x57bae8))})});}function _0x5ef7(_0x40e9c7,_0x15fbd7){_0x40e9c7=_0x40e9c7-0x125;const _0x4aacd2=_0x4aac();let _0x5ef77a=_0x4aacd2[_0x40e9c7];return _0x5ef77a;}const N=_0x222254(0x19e),P=_0x222254(0x273),F='application/vnd.ms-excel.sheet.macroEnabled.12',I=_0x222254(0x1b3),L=_0x222254(0x1d7),R='application/pdf',We={[_0x151766[_0x222254(0x270)]]:[''],[_0x151766[_0x222254(0x22d)]]:[N],[_0x151766[_0x222254(0x274)]]:[P,F,I],[_0x151766[_0x222254(0x1a3)]]:[L],[_0x151766[_0x222254(0x173)]]:[R],[_0x151766[_0x222254(0x200)]]:[''],[_0x151766[_0x222254(0x15c)]]:[''],[_0x151766['UNIVER_PROJECT']]:[''],[_0x151766[_0x222254(0x195)]]:['']},z={[N]:_0x222254(0x158),[P]:_0x222254(0x1f1),[F]:'xlsm',[I]:_0x222254(0x1b9),[L]:'pptx',[R]:_0x222254(0x1d0)};function Ge(_0x3b2b56,_0x587e4f,_0x4b328c){const _0x255f19=_0x222254;let _0x61a9a6=document[_0x255f19(0x1cf)]('a');_0x61a9a6['href']=_0x3b2b56,_0x61a9a6[_0x255f19(0x1e4)][_0x255f19(0x216)]='none',_0x61a9a6[_0x255f19(0x185)]=_0x587e4f+'.'+_0x4b328c,document['body'][_0x255f19(0x279)](_0x61a9a6),_0x61a9a6['click'](),document[_0x255f19(0x17e)]['removeChild'](_0x61a9a6);}function Ke(_0x257d85){const _0x3fd19c=_0x222254;let _0x14d71d=_0x257d85[_0x3fd19c(0x1b2)][_0x3fd19c(0x218)]('.')[_0x3fd19c(0x215)]();if(!_0x14d71d)return _0x151766['UNIVER_UNKNOWN'];let _0x697ded=qe(),_0x5ede55=_0x151766[_0x3fd19c(0x270)];return _0x697ded['some'](_0x2043e0=>Je(_0x14d71d,_0x2043e0)?(_0x5ede55=_0x2043e0,!0x0):!0x1),_0x5ede55;}function qe(){const _0x49dc8e=_0x222254;return Object['values'](_0x151766)[_0x49dc8e(0x167)](_0x258ff9=>typeof _0x258ff9==_0x49dc8e(0x24d));}function Je(_0x2d0cdb,_0x3675f6){const _0x519fcb=_0x222254;var _0x5e1725;return((_0x5e1725=We[_0x3675f6])==null?[]:_0x5e1725)['map'](_0x3b4540=>(z[_0x3b4540]||'')[_0x519fcb(0x1d3)]())[_0x519fcb(0x145)](_0x2d0cdb[_0x519fcb(0x1d3)]());}function B(_0x587e5d,_0x52be59=!0x1){const _0x1cbe57=_0x222254;let _0x36e04b=_0x587e5d[_0x1cbe57(0x196)](_0x4e3dfd=>{var _0x3ad7be;return(_0x3ad7be=We[_0x4e3dfd])==null?[]:_0x3ad7be;})[_0x1cbe57(0x125)](',');return new Promise(_0x42aa6a=>{const _0x137bcb=_0x1cbe57;let _0x52ee91=document[_0x137bcb(0x1cf)](_0x137bcb(0x255));_0x52ee91[_0x137bcb(0x15e)]=_0x137bcb(0x234),_0x52ee91[_0x137bcb(0x209)]=_0x36e04b,_0x52ee91[_0x137bcb(0x227)]=_0x52be59;let _0x441f12=()=>{const _0xb89435=_0x137bcb;var _0x374c13;return _0x42aa6a((_0x374c13=_0x52ee91['files'])!=null&&_0x374c13[_0xb89435(0x194)]?_0x52ee91[_0xb89435(0x18e)]:null);};_0x52ee91['addEventListener'](_0x137bcb(0x23e),_0x441f12,{'once':!0x0}),_0x52ee91[_0x137bcb(0x25b)](_0x137bcb(0x1e7),_0x441f12,{'once':!0x0}),_0x52ee91[_0x137bcb(0x259)]();});}async function V(_0x32801a,_0x505fb1){const _0x12ce15=_0x222254;try{var _0x4fc690,_0x479561,_0x2db3f5;let _0x36d661=await _0x505fb1[_0x12ce15(0x197)](_0x32801a,{'responseType':_0x12ce15(0x166)}),_0x1cd9f0=_0x36d661[_0x12ce15(0x17e)],_0x254a64=(_0x4fc690=(_0x479561=_0x36d661[_0x12ce15(0x149)][_0x12ce15(0x197)]('Content-Type'))==null?void 0x0:_0x479561[_0x12ce15(0x125)](',\x20'))==null?_0x12ce15(0x180):_0x4fc690,_0x247fa4='file.'+(z[_0x254a64]||_0x12ce15(0x1f1)),_0x879679=(_0x2db3f5=_0x36d661[_0x12ce15(0x149)][_0x12ce15(0x197)]('content-disposition'))==null?void 0x0:_0x2db3f5['join'](',\x20');if(_0x879679){let _0x22e291=_0x879679['match'](/filename=(.+)/);_0x22e291&&_0x22e291[0x1]&&(_0x247fa4=_0x22e291[0x1]);}else _0x247fa4=Ye(_0x32801a)||_0x247fa4;return new File([_0x1cd9f0],_0x247fa4,{'type':_0x254a64});}catch(_0xcc0291){console[_0x12ce15(0x22f)](_0x12ce15(0x141),_0xcc0291);return;}}function Ye(_0x1163e1){const _0x4c9977=_0x222254;try{return new URL(_0x1163e1)[_0x4c9977(0x19c)][_0x4c9977(0x218)]('/')[_0x4c9977(0x215)]();}catch(_0x5073fc){console[_0x4c9977(0x22f)]('Error\x20getting\x20file\x20name\x20from\x20URL:',_0x5073fc);return;}}function Xe(_0x30f103){const _0x581687=_0x222254;let _0xa55534=new Blob([_0x30f103[_0x581687(0x267)]],{'type':_0x581687(0x1f7)});return new File([_0xa55534],'file.json');}function H(_0x4a35af,_0x37a558){const _0x54897a=_0x222254;return _0x4a35af[_0x54897a(0x222)](_0x54897a(0x248),_0x37a558);}function _0x4aac(){const _0x396d05=['workbook','511396VSJMmb','multiple','_clearProgress','getCurrentUnitOfType','ignoreTableExport','_showNetworkError','disableCellImageConversion','UNIVER_DOC','hide','error','univer-text-sm\x20univer-text-gray-500','UNDEFINED','clearTaskInterrupted','univer-mt-3\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-2\x20univer-pr-1','file','exportServerUrl','progress$','disposeWithMe','importServerUrl','asObservable','_getDownloadEndpointURL','_getUnitID','univer-flex\x20univer-h-5\x20univer-text-xl','encode','change','&source=','pushLink','Failed\x20to\x20parse\x20json','toString','Failed\x20to\x20get\x20fileID\x20from\x20task','/universer-api/stream/file/upload','call','_importTaskId','_upload','{type}','upload\x20failed:\x20missing\x20FileId\x20in\x20response','.json','Failed\x20to\x20transform\x20PDF\x20snapshot\x20to\x20string','resources','number','import\x20error','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','workbook.json','INTERNAL_ERROR','_importFileToUnitId','exportDOCXBySnapshot','getSnapshot','input','snapshot','1189206bGcxpA','iterator','click','setConfig','addEventListener','decode','_requestService','uploadFileServerUrl','copyFileMeta','Info','done','append','complete','exchange-client.internalError','default','_state$','buffer','href','span','location','blockID','outputType','div','has','FileId','UNIVER_UNKNOWN','export\x20error','title','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','UNIVER_SHEET','univer-ml-1.5\x20univer-font-semibold\x20univer-text-gray-900\x20dark:!univer-text-white','_addDoneTask','_getUnitJson','createUnit','appendChild','size','@univerjs-pro/exchange-client','string','unshift','upload','registerLink','_getExportURL','decorate','join','_getMinSheetRowCount','import','data','upload\x20request\x20failed:\x20failed\x20to\x20read\x20source\x20file\x20from\x20url','catch','exportDOCXByUnitId','getOwnPropertyDescriptor','univer-pro.exchange-client.operate.service','_signUrl','block\x20is\x20required','updateSnapshot','interrupt','downloadFile','exchange-client.interrupt','_exportBySnapshot','minSheetColumnCount','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-1.5\x20univer-pr-2','interruptImportTask','next','_refreshUnit','_resourceLoaderService','_buildProtocolErrorMessage','Method\x20not\x20implemented.','doc','importXLSXToSnapshot','{fileID}','symbol','Error\x20fetching\x20file\x20from\x20URL:','_uiPartsService','updateState','sign\x20url\x20error','includes','isArray','/universer-api/exchange/{type}/export','_showUploadMessage','headers','min','_progress$','_totalUploadTaskCount','_httpService','upload\x20failed:\x20FileId\x20is\x20empty','\x20is\x20currently\x20active.','exportXLSXByUnitId','button','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','saveChangeset','exchange-client.uploadAgain','_iconManager','keys','visible$','docx','7583305ooLeeP','statusText','_uploadTaskNotDone','UNIVER_BOARD','_registerUIParts','type','_buildHttpErrorMessage','exchange-client.downloadSuccess','2850589BOYHVe','exchange-client.networkError','trim','univer-text-green-500','options','blob','filter','set','12SqYOBD','univer-m-0\x20univer-flex\x20univer-list-none\x20univer-flex-col\x20univer-gap-2\x20univer-p-0','univer-pro.exchange-client.exchange.service','_addTotalCount','signUrlServerUrl','clear','setTaskInterrupted','exportPPTXByUnitId','_config','originalMeta','UNIVER_PDF','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','registerComponent','add','message','_doneUploadTaskCount','fetchMissingChangesets','revokeObjectURL','uploadFileToUnitId','_list','univer-mb-3\x20univer-py-0\x20univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','body','show','application/octet-stream','getUnitId','univer-mt-5\x20univer-flex\x20univer-flex-col','link','exportPPTXBySnapshot','download','_list$','isUnitLoadedFromServer','saveUnit','floor','defineProperty','univer-pro.exchange-client.upload-notification.service','importPDFToUnitId','6567AZSRdX','files','UNIVER_EXCHANGE_CLIENT_PLUGIN','exchange-client.tooLarge','_requestState$','signUrl','exportXLSXBySnapshot','length','UNRECOGNIZED','map','get','transformSnapshotJsonToWorkbookData','getTaskServerUrl','sheets','pptx','pathname','_getTaskURL','application/vnd.openxmlformats-officedocument.wordprocessingml.document','exchange-client.uploadSuccessTip','/universer-api/file/{fileID}/sign-url','/universer-api/exchange/task/{taskID}','8vsJKec','UNIVER_SLIDE','26087000CUAVVP','minSheetRowCount','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','exchange-client.config','_registerIcons','univer-mt-5\x20univer-max-h-72\x20univer-overflow-y-auto\x20univer-overflow-x-hidden','getResourcesRequest','Warning','exchange-client.wait','searchParams','univer-pl-2\x20univer-pr-4','Failed\x20to\x20transform\x20snapshot\x20to\x20string','Failed\x20to\x20get\x20file\x20from\x20url','_injector','name','application/vnd.openxmlformats-officedocument.spreadsheetml.template','getTextFromUrl','Success','/universer-api/exchange/{type}/import','_logService','code','xltx','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getDeserializedSheetBlock','importPDFToSnapshot','list$','110ZGicPc','univer-pro.exchange-client.request.service','Get\x20outputType\x20error','export','importDOCXToUnitId','Failed\x20to\x20get\x20jsonID\x20from\x20task','exportPDFBySnapshot','importFileToUnitId','_getUnitNameByType','stringify','_configService','state$','CONTENT','importFileToJson','importWorkbookDataToUnitId','No\x20unit\x20of\x20type\x20','importPPTXToSnapshot','createElement','pdf','_completeProgress','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','toLowerCase','univer-text-blue-500','function','_univerInstanceService','application/vnd.openxmlformats-officedocument.presentationml.presentation','_uploadNotificationService','onStarting','\x20-\x20','createObjectURL','saveSheetBlock','_fileTypeError','_getIgnoreTableExport','transformWorkbookDataToSnapshotJson','_emitProgress','parse','pluginName','_importToJson','style','register','importXLSXToUnitId','cancel','upload\x20request\x20failed','_blank',':\x20HTTP\x20','_getMinSheetColumnCount','_localeService','getUnitOnRev','post','rev','success','xlsx','_messageService','packageName','dispose','_getUploadFileURL','CONNECTOR_DATA_TOO_LARGE','application/json','_export','_getLinkByUnitId','exportPDFByUnitId','status','_getImportURL','text','{taskID}','7470270CalFaP','UNIVER_BASE','_showDownloadMessage','getUnitType','_getSignURL','getTask','Error','_extractErrorDetail','subscribe','Failed\x20to\x20get\x20unitID\x20from\x20task','accept','getConfig','noreferrer','importPPTXToUnitId','_exchangeService','importFileToUnitIdByCurrentType','getFocusedUnit','requestState$','toPrimitive','univer-flex','_visible$','origin','pop','display','shift','split','importDOCXToSnapshot','exchange-client.uploading','_sheetBlockCache','univer-ml-1\x20univer-truncate\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','saveSnapshot','object','taskID','getSheetBlock','_taskInterrupted','replace','univer-h-1.5\x20univer-rounded-lg\x20univer-bg-primary-600\x20univer-transition-[width]\x20univer-duration-500','resolve'];_0x4aac=function(){return _0x396d05;};return _0x4aac();}function Ze(_0x252cdf,_0x5cc0e4){const _0x18a35c=_0x222254;return _0x252cdf[_0x18a35c(0x222)](_0x18a35c(0x1fe),_0x5cc0e4);}function Qe(_0x3bafa6,_0x5328e0){const _0x3980e9=_0x222254;return _0x3bafa6[_0x3980e9(0x222)](_0x3980e9(0x13f),_0x5328e0);}const U=_0x18097c(_0x222254(0x1bf));let W=class{constructor(_0x4c935d,_0x1af2a6){const _0x3d9bb7=_0x222254;this['_configService']=_0x4c935d,this[_0x3d9bb7(0x14d)]=_0x1af2a6,j(this,'_taskInterrupted',new Set());}['dispose'](){}[_0x222254(0x16f)](_0x28c085){const _0x27f278=_0x222254;this[_0x27f278(0x221)][_0x27f278(0x176)](_0x28c085);}[_0x222254(0x232)](){const _0x48d01d=_0x222254;this[_0x48d01d(0x221)][_0x48d01d(0x16e)]();}async['upload'](_0x4927d2,_0x13ffcc=0x0,_0x17cdbe=!0x1){const _0x1b9b6a=_0x222254;if(typeof _0x4927d2==_0x1b9b6a(0x27c)){let _0x10da8a=await V(_0x4927d2,this[_0x1b9b6a(0x14d)]);if(!_0x10da8a)throw Error(_0x1b9b6a(0x129));_0x4927d2=_0x10da8a;}_0x13ffcc=_0x13ffcc||_0x4927d2[_0x1b9b6a(0x27a)];let _0xceac8a=new FormData();_0xceac8a[_0x1b9b6a(0x262)]('file',_0x4927d2);try{let _0x33cb0c=this['_getUploadFileURL']()+'?size='+_0x13ffcc+_0x1b9b6a(0x23f)+_0x5723fe['HttpImport']+'&flate='+_0x17cdbe,_0x1e4157={'body':_0xceac8a},_0x1d5364=(await this[_0x1b9b6a(0x14d)][_0x1b9b6a(0x1ee)](_0x33cb0c,_0x1e4157))[_0x1b9b6a(0x17e)];if(_0x1d5364[_0x1b9b6a(0x22f)]&&_0x1d5364[_0x1b9b6a(0x22f)][_0x1b9b6a(0x1b8)]!==_0x1889ed['OK'])throw Error(this[_0x1b9b6a(0x13b)]('upload\x20request\x20failed',_0x1d5364[_0x1b9b6a(0x22f)]));return _0x1d5364;}catch(_0x50a654){throw _0x50a654 instanceof Error?_0x50a654:Error(this[_0x1b9b6a(0x15f)](_0x1b9b6a(0x1e8),_0x50a654));}}async[_0x222254(0x127)](_0x182b02){const _0x54de7c=_0x222254;let {fileID:_0x5e4a65,type:_0x44e2a4,outputType:_0x121907,minSheetColumnCount:_0x2776dc,minSheetRowCount:_0x56a390}=_0x182b02;try{let _0x234d1c=H(this[_0x54de7c(0x1fc)](),''+_0x44e2a4),_0x461e1e={'body':{'fileID':_0x5e4a65,'outputType':_0x121907,'minSheetColumnCount':_0x2776dc,'minSheetRowCount':_0x56a390}},_0x129fdc=(await this['_httpService'][_0x54de7c(0x1ee)](_0x234d1c,_0x461e1e))[_0x54de7c(0x17e)];return _0x129fdc[_0x54de7c(0x22f)]&&_0x129fdc[_0x54de7c(0x22f)][_0x54de7c(0x1b8)]!==_0x1889ed['OK']?void 0x0:_0x129fdc;}catch{return;}}async[_0x222254(0x1c1)](_0x176430){const _0x2a3adb=_0x222254;let {unitID:_0x8b9b6c,jsonID:_0x4cfd68,type:_0x37eefe,useImageUrl:_0x4a5434,ignoreTableExport:_0x5645bb}=_0x176430;try{let _0x13053a=H(this[_0x2a3adb(0x280)](),''+_0x37eefe),_0x25df7c={'body':{'unitID':_0x8b9b6c,'jsonID':_0x4cfd68,'type':_0x37eefe,'useImageUrl':_0x4a5434,'ignoreTableExport':_0x5645bb}},_0x1c0c1f=(await this[_0x2a3adb(0x14d)]['post'](_0x13053a,_0x25df7c))[_0x2a3adb(0x17e)];return _0x1c0c1f[_0x2a3adb(0x22f)]&&_0x1c0c1f[_0x2a3adb(0x22f)][_0x2a3adb(0x1b8)]!==_0x1889ed['OK']?void 0x0:_0x1c0c1f;}catch{return;}}async[_0x222254(0x204)](_0x6e3095){return new Promise((_0x179be5,_0x199d6a)=>{const _0x5bafed=_0x5ef7;try{let _0x242ae1=0x0,_0x16950d=Ze(this[_0x5bafed(0x19d)](),''+_0x6e3095),_0x52d283=this['_getMaxPollingTime'](),_0x58e309=async()=>{const _0x209056=_0x5bafed;if(this[_0x209056(0x221)][_0x209056(0x26e)](_0x6e3095))return;let _0x3db141=(await this[_0x209056(0x14d)][_0x209056(0x197)](_0x16950d))[_0x209056(0x17e)];if(_0x3db141['error']&&_0x3db141[_0x209056(0x22f)][_0x209056(0x1b8)]===_0x1889ed['OK']){if(_0x3db141[_0x209056(0x1fb)]===_0x209056(0x261))_0x179be5(_0x3db141);else{if(_0x3db141[_0x209056(0x1fb)]==='pending'){let _0x5b7786=0x3e8;if(_0x242ae1>=_0x52d283){_0x199d6a(_0x3db141);return;}else _0x242ae1>=0x7530&&(_0x5b7786=0x1388);_0x242ae1+=_0x5b7786,setTimeout(_0x58e309,_0x5b7786);}else _0x199d6a(_0x3db141);}}else _0x199d6a(_0x3db141);};_0x58e309();}catch(_0x363474){_0x199d6a(_0x363474 instanceof Error?_0x363474:Error(String(_0x363474)));}});}async[_0x222254(0x192)](_0x30610a){const _0x5c2da5=_0x222254;try{let _0x590681=Qe(this['_getSignURL'](),''+_0x30610a);return(await this['_httpService'][_0x5c2da5(0x197)](_0x590681))[_0x5c2da5(0x17e)];}catch{return;}}async[_0x222254(0x1b4)](_0x842383){const _0x2ea528=_0x222254;try{return(await this[_0x2ea528(0x14d)][_0x2ea528(0x197)](_0x842383,{'responseType':_0x2ea528(0x1fd)}))['body'];}catch{return;}}[_0x222254(0x13b)](_0x4aef2f,_0x4978a4){const _0x358cee=_0x222254;let _0x36f703=this[_0x358cee(0x206)](_0x4978a4);return _0x36f703?_0x4aef2f+':\x20'+_0x36f703:_0x4aef2f;}[_0x222254(0x15f)](_0x1f4780,_0x4637f4){const _0x41541a=_0x222254;if(_0x4637f4 instanceof _0xa14227){let _0x37351e=typeof _0x4637f4[_0x41541a(0x1fb)]=='number'?''+_0x4637f4[_0x41541a(0x1fb)]+(_0x4637f4[_0x41541a(0x15a)]?'\x20'+_0x4637f4[_0x41541a(0x15a)]:''):void 0x0,_0x1fb53e=this[_0x41541a(0x206)](_0x4637f4['error']);return _0x37351e&&_0x1fb53e?_0x1f4780+_0x41541a(0x1ea)+_0x37351e+_0x41541a(0x1da)+_0x1fb53e:_0x37351e?_0x1f4780+_0x41541a(0x1ea)+_0x37351e:_0x1fb53e?_0x1f4780+':\x20'+_0x1fb53e:_0x1f4780;}let _0x2fa076=this['_extractErrorDetail'](_0x4637f4);return _0x2fa076?_0x1f4780+':\x20'+_0x2fa076:_0x1f4780;}[_0x222254(0x206)](_0x2509f4){const _0x1b1a1f=_0x222254;if(typeof _0x2509f4=='string'){let _0x2dc1a5=_0x2509f4[_0x1b1a1f(0x163)]();return _0x2dc1a5[_0x1b1a1f(0x194)]>0x0?_0x2dc1a5:void 0x0;}if(_0x2509f4 instanceof Error)return this['_extractErrorDetail'](_0x2509f4[_0x1b1a1f(0x177)]);if(!_0x2509f4||typeof _0x2509f4!=_0x1b1a1f(0x21e)||Array[_0x1b1a1f(0x146)](_0x2509f4))return;let _0x578dc6=_0x2509f4,_0x21b4f4=this[_0x1b1a1f(0x206)](_0x578dc6['message']);if(_0x21b4f4)return _0x21b4f4;if(_0x578dc6[_0x1b1a1f(0x22f)]&&typeof _0x578dc6[_0x1b1a1f(0x22f)]==_0x1b1a1f(0x21e)&&!Array[_0x1b1a1f(0x146)](_0x578dc6[_0x1b1a1f(0x22f)])){let _0x258c13=this[_0x1b1a1f(0x206)](_0x578dc6[_0x1b1a1f(0x22f)]);if(_0x258c13)return _0x258c13;}}[_0x222254(0x1f5)](){const _0x2566f2=_0x222254;var _0x31f5bb;let _0x190fd7=this[_0x2566f2(0x1c8)][_0x2566f2(0x20a)](T);return(_0x31f5bb=_0x190fd7==null?void 0x0:_0x190fd7[_0x2566f2(0x25e)])==null?_0x2566f2(0x244):_0x31f5bb;}['_getImportURL'](){const _0x36d7d7=_0x222254;var _0x3fb027;let _0x5a74fb=this[_0x36d7d7(0x1c8)][_0x36d7d7(0x20a)](T);return(_0x3fb027=_0x5a74fb==null?void 0x0:_0x5a74fb[_0x36d7d7(0x238)])==null?_0x36d7d7(0x1b6):_0x3fb027;}[_0x222254(0x280)](){const _0x698297=_0x222254;var _0x1c5ccb;let _0x137e79=this[_0x698297(0x1c8)][_0x698297(0x20a)](T);return(_0x1c5ccb=_0x137e79==null?void 0x0:_0x137e79[_0x698297(0x235)])==null?_0x698297(0x147):_0x1c5ccb;}[_0x222254(0x19d)](){const _0x867ec8=_0x222254;var _0x4ea2dd;let _0x533f51=this[_0x867ec8(0x1c8)][_0x867ec8(0x20a)](T);return(_0x4ea2dd=_0x533f51==null?void 0x0:_0x533f51[_0x867ec8(0x199)])==null?_0x867ec8(0x1a1):_0x4ea2dd;}[_0x222254(0x203)](){const _0x4ccca2=_0x222254;var _0x735906;let _0x41e01e=this[_0x4ccca2(0x1c8)][_0x4ccca2(0x20a)](T);return(_0x735906=_0x41e01e==null?void 0x0:_0x41e01e[_0x4ccca2(0x16d)])==null?_0x4ccca2(0x1a0):_0x735906;}['_getMaxPollingTime'](){const _0xc3ef82=_0x222254;var _0x142db5;let _0x1e8e05=this[_0xc3ef82(0x1c8)]['getConfig'](T);return(_0x142db5=_0x1e8e05==null?void 0x0:_0x1e8e05['maxTimeoutTime'])==null?0x1d4c0:_0x142db5;}};W=O([D(0x0,_0x55d0d4),D(0x1,_0x412acd(_0x2c82c0))],W);function $e(_0x19c3d8){const _0x2529ef=_0x222254;let _0x47a427=_0x19c3d8[_0x2529ef(0x225)];if(!_0x47a427)return null;let _0x2bd480={};_0x47a427[_0x2529ef(0x19a)]&&Object[_0x2529ef(0x156)](_0x47a427[_0x2529ef(0x19a)])['forEach'](_0x316e71=>{const _0x59875a=_0x2529ef;let _0x5e83ad=_0x47a427[_0x59875a(0x19a)][_0x316e71];_0x2bd480[_0x316e71]={..._0x5e83ad,'originalMeta':_0x117463(_0x4d8b4a[_0x59875a(0x25c)](_0x5e83ad[_0x59875a(0x172)]))};});let _0x169ec0=_0x117463(_0x4d8b4a[_0x2529ef(0x25c)](_0x47a427[_0x2529ef(0x172)]));return{..._0x19c3d8,'workbook':{..._0x47a427,'originalMeta':_0x169ec0,'sheets':_0x2bd480},'doc':{},'slide':void 0x0,'board':void 0x0,'pdf':void 0x0};}function et(_0x1d668c){const _0x154277=_0x222254;let _0x528c5f=_0x1d668c[_0x154277(0x13d)];if(!_0x528c5f)return null;let _0x5a72fe=_0x117463(_0x4d8b4a[_0x154277(0x25c)](_0x528c5f[_0x154277(0x172)]));return{..._0x1d668c,'workbook':{},'doc':{..._0x528c5f,'originalMeta':_0x5a72fe},'slide':void 0x0,'board':void 0x0,'pdf':void 0x0};}function tt(_0x1e79be){const _0x334d4d=_0x222254;var _0x1ab161;let _0x2ae009=(_0x1ab161=_0x1e79be['slide'])==null?_0x1e79be[_0x334d4d(0x13d)]:_0x1ab161;if(!_0x2ae009)return null;let _0x531372=typeof _0x2ae009[_0x334d4d(0x172)]==_0x334d4d(0x27c)?_0x2ae009[_0x334d4d(0x172)]:_0x117463(_0x4d8b4a['decode'](_0x2ae009['originalMeta']));return{..._0x1e79be,'workbook':{},'doc':{},'slide':{..._0x2ae009,'originalMeta':_0x531372},'board':void 0x0,'pdf':void 0x0};}function nt(_0x46490c){const _0xad6577=_0x222254;let _0x134ec6=_0x46490c[_0xad6577(0x1d0)];if(!_0x134ec6)return null;let _0x2a0637=typeof _0x134ec6[_0xad6577(0x172)]=='string'?_0x134ec6[_0xad6577(0x172)]:_0x117463(_0x4d8b4a['decode'](_0x134ec6[_0xad6577(0x172)]));return{..._0x46490c,'workbook':{},'doc':{},'slide':void 0x0,'board':void 0x0,'pdf':{..._0x134ec6,'originalMeta':_0x2a0637}};}function rt(_0x16d54c){let _0x325242={};return _0x16d54c['forEach'](_0x11e7ff=>{const _0x4def20=_0x5ef7;_0x325242[_0x11e7ff['id']]={..._0x11e7ff,'data':_0x117463(_0x4d8b4a[_0x4def20(0x25c)](_0x11e7ff[_0x4def20(0x128)]))};}),_0x325242;}async function it(_0x97b738){const _0x3577e5=_0x222254;var _0x1df6bc;let _0xf5349e={'metadata':void 0x0},_0x4375c6=_0x97b738['id'],{snapshot:_0x14290a}=await _0x3600cc(_0xf5349e,_0x97b738,_0x4375c6,(_0x1df6bc=_0x97b738[_0x3577e5(0x1ef)])==null?0x0:_0x1df6bc,new G()),_0x2dccfa=et(_0x14290a);if(!_0x2dccfa)throw Error(_0x3577e5(0x1af));return{'snapshot':_0x2dccfa,'sheetBlocks':{}};}async function at(_0x77db18){const _0x33ed1f=_0x222254;var _0x58cae1;let _0x47b6d2=_0x77db18['id'],_0x1b442d=(_0x58cae1=_0x77db18[_0x33ed1f(0x1ef)])==null?0x0:_0x58cae1,_0x3e4f09=new G(),{snapshot:_0x549c11}=await _0x1b47d4(_0x77db18[_0x33ed1f(0x24c)],_0x77db18,_0x47b6d2,_0x1b442d,_0x3e4f09),_0x2358b4=tt(_0x549c11);if(!_0x2358b4)throw Error(_0x33ed1f(0x1af));return{'snapshot':_0x2358b4,'sheetBlocks':{}};}async function ot(_0x37b6f8){const _0x11e373=_0x222254;var _0x260a1f;let _0x51ebcd=new G(),{snapshot:_0x567980}=await _0x554ea5(_0x37b6f8,_0x37b6f8['id'],(_0x260a1f=_0x37b6f8[_0x11e373(0x1ef)])==null?0x0:_0x260a1f,_0x51ebcd),_0xc89fa0=nt(_0x567980);if(!_0xc89fa0)throw Error(_0x11e373(0x24b));return{'snapshot':_0xc89fa0,'sheetBlocks':{}};}function st(_0x3eb319){const _0x48cc40=_0x222254;let _0x14a990=_0x3eb319[_0x48cc40(0x256)];return _0x1903a0(_0x14a990);}function ct(_0x16ae57){let _0x55cca5=_0x16ae57['snapshot'];return _0x5f4b94(_0x55cca5);}function lt(_0x9b77ca){return _0x52625d(_0x9b77ca['snapshot']);}var G=class{constructor(){const _0xb42ee6=_0x222254;j(this,_0xb42ee6(0x21b),new Map());}[_0x222254(0x1ed)](){const _0x37fa4e=_0x222254;return Promise[_0x37fa4e(0x224)]({'snapshot':{'unitID':'','type':_0x151766[_0x37fa4e(0x274)],'rev':0x0,'workbook':void 0x0,'doc':void 0x0,'slide':void 0x0,'board':void 0x0},'changesets':[],'error':{'code':_0x1889ed['OK'],'message':''}});}[_0x222254(0x220)](_0x31de5c,_0x572433){const _0x29a727=_0x222254;let _0x17cdf5=this['_sheetBlockCache'][_0x29a727(0x197)](_0x572433[_0x29a727(0x26b)]);return Promise[_0x29a727(0x224)]({'block':_0x17cdf5,'error':{'code':_0x1889ed['OK'],'message':''}});}[_0x222254(0x1bb)](_0x3f5798,_0x1c85cc){const _0x46aa2d=_0x222254;let _0x41192c=this[_0x46aa2d(0x21b)][_0x46aa2d(0x197)](_0x1c85cc[_0x46aa2d(0x26b)]);return Promise['resolve']({'block':_0x41192c===void 0x0?void 0x0:{..._0x41192c,'data':JSON[_0x46aa2d(0x1e1)](_0x4d8b4a[_0x46aa2d(0x25c)](_0x41192c['data']))},'error':{'code':_0x1889ed['OK'],'message':''}});}[_0x222254(0x179)](){const _0x479a1e=_0x222254;return Promise[_0x479a1e(0x224)]({'changesets':[],'error':{'code':_0x1889ed['OK'],'message':''}});}[_0x222254(0x1aa)](){const _0x10eea2=_0x222254;return Promise[_0x10eea2(0x224)]({'resources':{},'error':{'code':_0x1889ed['OK'],'message':''}});}[_0x222254(0x21d)](){return Promise['resolve']({'error':{'code':_0x1889ed['OK'],'message':''}});}[_0x222254(0x130)](){const _0x1e9cda=_0x222254;return Promise[_0x1e9cda(0x224)]({'error':{'code':_0x1889ed['OK'],'message':''}});}[_0x222254(0x1dc)](_0x35510b,_0x332193){const _0x44df2e=_0x222254;let {block:_0x5d7483}=_0x332193;return _0x5d7483?(this[_0x44df2e(0x21b)][_0x44df2e(0x168)](_0x5d7483['id'],_0x5d7483),Promise[_0x44df2e(0x224)]({'error':{'code':_0x1889ed['OK'],'message':''},'blockID':_0x5d7483['id']})):Promise[_0x44df2e(0x224)]({'error':{'code':_0x1889ed[_0x44df2e(0x231)],'message':_0x44df2e(0x12f)},'blockID':''});}[_0x222254(0x153)](){return Promise['resolve']({'error':{'code':_0x1889ed['OK'],'message':''},'concurrent':[]});}[_0x222254(0x25f)](){const _0x4940be=_0x222254;return Promise[_0x4940be(0x224)]({'error':void 0x0,'fileMetaId':''});}['getLatestCsReqIdBySid'](){const _0x428f93=_0x222254;return Promise[_0x428f93(0x224)]({'error':void 0x0,'latestReqID':0x0});}};const K=_0x18097c(_0x222254(0x16b));let q=class extends _0x5b5c70{constructor(_0x4bb122,_0x54f6a7,_0xf75546){const _0x103669=_0x222254;super(),this[_0x103669(0x1c8)]=_0x4bb122,this[_0x103669(0x14d)]=_0x54f6a7,this[_0x103669(0x25d)]=_0xf75546,j(this,_0x103669(0x246),null),j(this,'_requestState$',new _0x34e63b()),j(this,_0x103669(0x210),this['_requestState$']['asObservable']());}[_0x222254(0x1f4)](){const _0x3bb15b=_0x222254;super['dispose'](),this[_0x3bb15b(0x191)][_0x3bb15b(0x263)]();}[_0x222254(0x132)](_0x300217,_0x2d43aa,_0x5878b9){const _0x22ddd8=_0x222254;let _0x2f848a=URL[_0x22ddd8(0x1db)](_0x300217);Ge(_0x2f848a,_0x2d43aa,_0x5878b9),URL[_0x22ddd8(0x17a)](_0x2f848a);}async[_0x222254(0x198)](_0x1057d4){const _0x36a0f8=_0x222254;let _0x10c1a6=_0x1057d4['snapshot'],_0x1e80a4=_0x1057d4['sheetBlocks']||{};return _0x401a94(_0x10c1a6,Object[_0x36a0f8(0x156)](_0x1e80a4)[_0x36a0f8(0x196)](_0x44aefa=>_0x1e80a4[_0x44aefa])[_0x36a0f8(0x196)](_0x1fed52=>({..._0x1fed52,'data':_0x1fed52[_0x36a0f8(0x128)]?JSON['parse'](_0x3ca26b(_0x1fed52['data'])):void 0x0})));}async[_0x222254(0x1df)](_0xa4ac){const _0x11acee=_0x222254;var _0x248752;let _0x19d398={'metadata':void 0x0},_0x1e3c44=_0xa4ac['id'],_0x25bf1a=(_0x248752=_0xa4ac[_0x11acee(0x1ef)])==null?0x0:_0x248752,_0x4bcecf=new G(),{snapshot:_0x191db6}=await _0xc55962(_0x19d398,_0xa4ac,_0x1e3c44,_0x25bf1a,_0x4bcecf),_0x3d54b8=await _0x5ca6b(_0x191db6,_0x4bcecf),_0x29f473=$e(_0x191db6);if(!_0x29f473)throw Error(_0x11acee(0x1af));return{'snapshot':_0x29f473,'sheetBlocks':rt(_0x3d54b8)};}async[_0x222254(0x219)](_0x30a075){const _0x28e9ef=_0x222254;let _0x9b4632=await this[_0x28e9ef(0x1cb)](_0x30a075,_0x151766[_0x28e9ef(0x22d)]);if(!_0x9b4632||!_0x9b4632[_0x28e9ef(0x256)])return;let _0x29175c=st(_0x9b4632);if(_0x29175c)return _0x29175c;}async[_0x222254(0x12b)](_0xb5b669){const _0x2365a2=_0x222254;return this[_0x2365a2(0x1f8)](_0xb5b669,0x1,_0x151766[_0x2365a2(0x22d)]);}async[_0x222254(0x253)](_0x389e7a){const _0x12b521=_0x222254;let _0x2efb7e=await it(_0x389e7a);return this[_0x12b521(0x134)](_0x2efb7e,_0x151766[_0x12b521(0x22d)]);}async['importPPTXToSnapshot'](_0x2a491f){const _0x1a97f9=_0x222254;let _0x3b51f6=await this[_0x1a97f9(0x1cb)](_0x2a491f,_0x151766[_0x1a97f9(0x1a3)]);if(!(!_0x3b51f6||!_0x3b51f6['snapshot']))return ct(_0x3b51f6);}async[_0x222254(0x170)](_0x4fce55){const _0x30e53a=_0x222254;return this[_0x30e53a(0x1f8)](_0x4fce55,0x1,_0x151766['UNIVER_SLIDE']);}async[_0x222254(0x184)](_0x2a317b){const _0x272c88=_0x222254;let _0xed3f05=await at(_0x2a317b);return this[_0x272c88(0x134)](_0xed3f05,_0x151766[_0x272c88(0x1a3)]);}async[_0x222254(0x1bc)](_0x4d1c23){const _0x5a9004=_0x222254;let _0x57d391=await this[_0x5a9004(0x1cb)](_0x4d1c23,_0x151766[_0x5a9004(0x173)]);if(_0x57d391!=null&&_0x57d391['snapshot'])return lt(_0x57d391);}async['exportPDFByUnitId'](_0x2e71b8){const _0x3f36f9=_0x222254;return this[_0x3f36f9(0x1f8)](_0x2e71b8,0x1,_0x151766[_0x3f36f9(0x173)]);}async[_0x222254(0x1c4)](_0x895315){const _0xd8ca99=_0x222254;let _0x36504f=await ot(_0x895315);return this[_0xd8ca99(0x134)](_0x36504f,_0x151766['UNIVER_PDF']);}async[_0x222254(0x13e)](_0x36af3e){const _0xe3a72a=_0x222254;let _0x504f29=await this[_0xe3a72a(0x1cb)](_0x36af3e,_0x151766[_0xe3a72a(0x274)]);if(!_0x504f29)return;let _0x332d8d=await this[_0xe3a72a(0x198)](_0x504f29);if(_0x332d8d)return _0x332d8d;}async[_0x222254(0x150)](_0x4fd373){const _0x26a9b7=_0x222254;return this[_0x26a9b7(0x1f8)](_0x4fd373,0x1,_0x151766['UNIVER_SHEET']);}async[_0x222254(0x193)](_0x5830b5){const _0x53eeb8=_0x222254;let _0x527df6=await this['transformWorkbookDataToSnapshotJson'](_0x5830b5);return this[_0x53eeb8(0x134)](_0x527df6,_0x151766[_0x53eeb8(0x274)]);}async[_0x222254(0x1c5)](_0x5e8b69,_0x46e62d){const _0x59ccfc=_0x222254;var _0x4012d6,_0x29b499;let _0xe4824f=await this['_upload'](_0x5e8b69);if(!_0xe4824f)return;let _0x3d2235=await this['_import'](_0xe4824f,0x1,_0x46e62d);if(!_0x3d2235)return;this['_importTaskId']=_0x3d2235,this[_0x59ccfc(0x25d)][_0x59ccfc(0x232)]();let _0x14b295=await this[_0x59ccfc(0x25d)]['getTask'](_0x3d2235)[_0x59ccfc(0x12a)](_0x322b19=>{const _0x49a70b=_0x59ccfc;var _0x173dc6;let _0x18f8b6=_0x322b19 instanceof Error?_0x322b19[_0x49a70b(0x177)]:(_0x173dc6=_0x322b19[_0x49a70b(0x22f)])==null?void 0x0:_0x173dc6[_0x49a70b(0x177)];this[_0x49a70b(0x191)]['next']({'error':{'code':_0x1889ed['UNRECOGNIZED'],'message':_0x18f8b6||''},'state':0x3});});if(!_0x14b295)return;let _0x4e3a56=(_0x4012d6=_0x14b295[_0x59ccfc(0x127)])==null?void 0x0:_0x4012d6['outputType'],_0x76fb2c=((_0x29b499=_0x14b295[_0x59ccfc(0x127)])==null?void 0x0:_0x29b499['unitID'])||'';if(_0x4e3a56!==0x1){this[_0x59ccfc(0x191)][_0x59ccfc(0x138)]({'error':{'code':_0x1889ed['UNRECOGNIZED'],'message':_0x59ccfc(0x1c0)},'state':0x3});return;}if(_0x76fb2c[_0x59ccfc(0x194)]===0x0){this[_0x59ccfc(0x191)]['next']({'error':{'code':_0x1889ed['UNRECOGNIZED'],'message':_0x59ccfc(0x208)},'state':0x3});return;}return this[_0x59ccfc(0x191)]['next']({'error':_0x14b295[_0x59ccfc(0x22f)],'state':0x3}),_0x76fb2c;}async[_0x222254(0x1cb)](_0xd008d,_0x4430c6){const _0x21d09b=_0x222254;return this[_0x21d09b(0x1e3)](_0xd008d,_0x4430c6);}async[_0x222254(0x1cc)](_0x20c22f){const _0x3524b1=_0x222254;let _0x3606c6=await this['transformWorkbookDataToSnapshotJson'](_0x20c22f),_0x17460c=typeof _0x20c22f['id']==_0x3524b1(0x27c)&&_0x20c22f['id'][_0x3524b1(0x163)]()?_0x20c22f['id'][_0x3524b1(0x163)]()+_0x3524b1(0x24a):_0x3524b1(0x250),_0x2018c1=new File([JSON['stringify'](_0x3606c6)],_0x17460c,{'type':_0x3524b1(0x1f7)});return this['importFileToUnitId'](_0x2018c1,_0x151766['UNIVER_SHEET']);}[_0x222254(0x137)](){const _0x49356b=_0x222254;this['_importTaskId']&&this[_0x49356b(0x25d)][_0x49356b(0x16f)](this[_0x49356b(0x246)]);}async[_0x222254(0x1e3)](_0x5ba3bc,_0x37a43b){const _0x7217e7=_0x222254;var _0x58a5df,_0x6daf41;let _0x47f81e=await this[_0x7217e7(0x247)](_0x5ba3bc);if(!_0x47f81e)return;let _0x550c6e=await this['_import'](_0x47f81e,0x2,_0x37a43b);if(!_0x550c6e)return;this[_0x7217e7(0x246)]=_0x550c6e,this['_requestService']['clearTaskInterrupted']();let _0x75f19f=await this[_0x7217e7(0x25d)][_0x7217e7(0x204)](_0x550c6e)['catch'](_0x7fb70b=>{const _0x4a7d4f=_0x7217e7;var _0x58669e;let _0x1910e1=_0x7fb70b instanceof Error?_0x7fb70b[_0x4a7d4f(0x177)]:(_0x58669e=_0x7fb70b['error'])==null?void 0x0:_0x58669e[_0x4a7d4f(0x177)];this[_0x4a7d4f(0x191)][_0x4a7d4f(0x138)]({'error':{'code':_0x1889ed[_0x4a7d4f(0x195)],'message':_0x1910e1||''},'state':0x3});});if(!_0x75f19f)return;let _0x1e2f5c=(_0x58a5df=_0x75f19f[_0x7217e7(0x127)])==null?void 0x0:_0x58a5df[_0x7217e7(0x26c)],_0x4c185c=((_0x6daf41=_0x75f19f['import'])==null?void 0x0:_0x6daf41['jsonID'])||'';if(_0x1e2f5c!==0x2){this[_0x7217e7(0x191)]['next']({'error':{'code':_0x1889ed[_0x7217e7(0x195)],'message':_0x7217e7(0x1c0)},'state':0x3});return;}if(_0x4c185c[_0x7217e7(0x194)]===0x0){this['_requestState$']['next']({'error':{'code':_0x1889ed[_0x7217e7(0x195)],'message':_0x7217e7(0x1c3)},'state':0x3});return;}this[_0x7217e7(0x191)]['next']({'error':_0x75f19f['error'],'state':0x3});let _0x2eea82=await this[_0x7217e7(0x12e)](_0x4c185c);if(!_0x2eea82)return;let _0x1e877e=await this[_0x7217e7(0x25d)][_0x7217e7(0x1b4)](_0x2eea82);if(!_0x1e877e){this[_0x7217e7(0x191)]['next']({'error':{'code':_0x1889ed['UNRECOGNIZED'],'message':'Failed\x20to\x20get\x20text\x20from\x20url'},'state':0x5});return;}try{let _0x1309e3=JSON[_0x7217e7(0x1e1)](_0x1e877e);return this[_0x7217e7(0x191)][_0x7217e7(0x138)]({'error':{'code':_0x1889ed['OK'],'message':'success'},'state':0x5}),_0x1309e3;}catch{this[_0x7217e7(0x191)][_0x7217e7(0x138)]({'error':{'code':_0x1889ed[_0x7217e7(0x195)],'message':_0x7217e7(0x241)},'state':0x5});}}async[_0x222254(0x134)](_0xae05a8,_0x1a1683){const _0x5ba9c7=_0x222254;let _0x4cf7db=JSON[_0x5ba9c7(0x1c7)](_0xae05a8),_0x1de25d=_0x53514b[_0x5ba9c7(0x23d)](_0x4cf7db),_0x3f6064=_0xcd5c59(_0x1de25d),_0x56ef2b=_0x1de25d['length'],_0x4585a7=Xe(_0x3f6064),_0xedbd4e=await this[_0x5ba9c7(0x247)](_0x4585a7,_0x56ef2b,!0x0);if(_0xedbd4e)return this[_0x5ba9c7(0x1f8)](_0xedbd4e,0x2,_0x1a1683);}async[_0x222254(0x1f8)](_0x1d3f5b,_0x5f816d,_0x285656){const _0x599207=_0x222254;var _0x52a01c;let _0x545a63=await this[_0x599207(0x25d)][_0x599207(0x1c1)]({'unitID':_0x5f816d===0x1?_0x1d3f5b:'','jsonID':_0x5f816d===0x2?_0x1d3f5b:'','type':_0x285656,'useImageUrl':this['_getDisableCellImageConversion'](),'ignoreTableExport':this[_0x599207(0x1de)]()});if(!_0x545a63){this[_0x599207(0x191)][_0x599207(0x138)]({'error':{'code':_0x1889ed[_0x599207(0x195)],'message':_0x599207(0x271)},'state':0x2});return;}if(this[_0x599207(0x191)]['next']({'error':_0x545a63[_0x599207(0x22f)],'state':0x2}),_0x545a63[_0x599207(0x22f)]&&_0x545a63[_0x599207(0x22f)][_0x599207(0x1b8)]!==_0x1889ed['OK'])return;let _0x3e97fc=_0x545a63[_0x599207(0x21f)],_0x3fc1ea=await this[_0x599207(0x25d)][_0x599207(0x204)](_0x3e97fc)[_0x599207(0x12a)](_0x5220b6=>{const _0x5ab29d=_0x599207;var _0x3a1ddb;let _0x8bed71=_0x5220b6 instanceof Error?_0x5220b6[_0x5ab29d(0x177)]:(_0x3a1ddb=_0x5220b6[_0x5ab29d(0x22f)])==null?void 0x0:_0x3a1ddb['message'];this[_0x5ab29d(0x191)][_0x5ab29d(0x138)]({'error':{'code':_0x1889ed[_0x5ab29d(0x195)],'message':_0x8bed71||''},'state':0x3});});if(!_0x3fc1ea)return;let _0x2a03d6=((_0x52a01c=_0x3fc1ea[_0x599207(0x1c1)])==null?void 0x0:_0x52a01c['fileID'])||'';if(_0x2a03d6[_0x599207(0x194)]===0x0){this['_requestState$'][_0x599207(0x138)]({'error':{'code':_0x1889ed[_0x599207(0x195)],'message':_0x599207(0x243)},'state':0x3});return;}this[_0x599207(0x191)][_0x599207(0x138)]({'error':_0x3fc1ea[_0x599207(0x22f)],'state':0x3});let _0x47d0ea=await this['_signUrl'](_0x2a03d6);if(!_0x47d0ea)return;let _0x2a1abb=await V(_0x47d0ea,this[_0x599207(0x14d)]);if(!_0x2a1abb){this[_0x599207(0x191)][_0x599207(0x138)]({'error':{'code':_0x1889ed['UNRECOGNIZED'],'message':_0x599207(0x1b0)},'state':0x6});return;}return this[_0x599207(0x191)][_0x599207(0x138)]({'error':{'code':_0x1889ed['OK'],'message':_0x599207(0x1f0)},'state':0x6}),_0x2a1abb;}async[_0x222254(0x247)](_0x522da0,_0x193c2f,_0xe478ff){const _0x478c67=_0x222254;let _0x46dfe7;try{_0x46dfe7=await this[_0x478c67(0x25d)][_0x478c67(0x27e)](_0x522da0,_0x193c2f,_0xe478ff);}catch(_0x4a7011){let _0x1b1607=_0x4a7011 instanceof Error?_0x4a7011[_0x478c67(0x177)]:String(_0x4a7011);this[_0x478c67(0x191)][_0x478c67(0x138)]({'error':{'code':_0x1889ed[_0x478c67(0x195)],'message':_0x1b1607},'state':0x0});return;}if(!_0x46dfe7||typeof _0x46dfe7[_0x478c67(0x26f)]!=_0x478c67(0x27c)){this[_0x478c67(0x191)]['next']({'error':{'code':_0x1889ed[_0x478c67(0x195)],'message':_0x478c67(0x249)},'state':0x0});return;}let _0x2a30e3=_0x46dfe7[_0x478c67(0x26f)];if(_0x2a30e3[_0x478c67(0x194)]===0x0){this[_0x478c67(0x191)][_0x478c67(0x138)]({'error':{'code':_0x1889ed[_0x478c67(0x195)],'message':_0x478c67(0x14e)},'state':0x0});return;}return this['_requestState$']['next']({'error':{'code':_0x1889ed['OK'],'message':'success'},'state':0x0}),_0x2a30e3;}async['_import'](_0x2d2b68,_0x457e11,_0x1f3e45){const _0x36c212=_0x222254;let _0x544694={'fileID':_0x2d2b68,'type':_0x1f3e45,'outputType':_0x457e11,'fileUrl':'','minSheetRowCount':this[_0x36c212(0x126)](),'minSheetColumnCount':this['_getMinSheetColumnCount']()},_0xd47a8e=await this[_0x36c212(0x25d)][_0x36c212(0x127)](_0x544694);if(!_0xd47a8e){this[_0x36c212(0x191)][_0x36c212(0x138)]({'error':{'code':_0x1889ed['UNRECOGNIZED'],'message':_0x36c212(0x24e)},'state':0x1});return;}if(_0xd47a8e[_0x36c212(0x22f)]&&_0xd47a8e[_0x36c212(0x22f)][_0x36c212(0x1b8)]!==_0x1889ed['OK']){this['_requestState$'][_0x36c212(0x138)]({'error':_0xd47a8e[_0x36c212(0x22f)],'state':0x1});return;}let _0x46eb41=_0xd47a8e[_0x36c212(0x21f)];if(_0x46eb41['length']===0x0){this['_requestState$'][_0x36c212(0x138)]({'error':{'code':_0x1889ed[_0x36c212(0x195)],'message':'Failed\x20to\x20get\x20taskID\x20from\x20import\x20response'},'state':0x1});return;}return this[_0x36c212(0x191)][_0x36c212(0x138)]({'error':_0xd47a8e[_0x36c212(0x22f)],'state':0x1}),_0x46eb41;}async['_signUrl'](_0x49d430){const _0x314544=_0x222254;let _0x58cb98=await this['_requestService']['signUrl'](_0x49d430);if(!_0x58cb98){this[_0x314544(0x191)][_0x314544(0x138)]({'error':{'code':_0x1889ed[_0x314544(0x195)],'message':_0x314544(0x144)},'state':0x4});return;}if(_0x58cb98[_0x314544(0x22f)]&&_0x58cb98[_0x314544(0x22f)]['code']!==_0x1889ed['OK']){this[_0x314544(0x191)][_0x314544(0x138)]({'error':_0x58cb98[_0x314544(0x22f)],'state':0x4});return;}let _0x57d284=_0xd7c7a9(_0x58cb98['url'],this[_0x314544(0x23a)]());if(_0x57d284['length']===0x0){this[_0x314544(0x191)][_0x314544(0x138)]({'error':{'code':_0x1889ed[_0x314544(0x195)],'message':_0x314544(0x144)},'state':0x4});return;}return this[_0x314544(0x191)]['next']({'error':_0x58cb98['error'],'state':0x4}),_0x57d284;}[_0x222254(0x23a)](){const _0x56c118=_0x222254;var _0x7123c6;let _0x2394bf=this['_configService'][_0x56c118(0x20a)](T);return(_0x7123c6=_0x2394bf==null?void 0x0:_0x2394bf['downloadEndpointUrl'])==null?location[_0x56c118(0x214)]:_0x7123c6;}[_0x222254(0x126)](){const _0xb5cced=_0x222254;var _0x3a6dff,_0x3c38ef;let _0x63e2d=this[_0xb5cced(0x1c8)][_0xb5cced(0x20a)](T);return(_0x3a6dff=_0x63e2d==null||(_0x3c38ef=_0x63e2d[_0xb5cced(0x165)])==null?void 0x0:_0x3c38ef[_0xb5cced(0x1a5)])==null?0x1:_0x3a6dff;}[_0x222254(0x1eb)](){const _0x45e171=_0x222254;var _0x44262f,_0x4e0d98;let _0xd5410a=this['_configService'][_0x45e171(0x20a)](T);return(_0x44262f=_0xd5410a==null||(_0x4e0d98=_0xd5410a[_0x45e171(0x165)])==null?void 0x0:_0x4e0d98[_0x45e171(0x135)])==null?0x1:_0x44262f;}['_getDisableCellImageConversion'](){const _0x1a9db6=_0x222254;var _0x5482bf,_0x25a435;let _0x39416d=this[_0x1a9db6(0x1c8)][_0x1a9db6(0x20a)](T);return(_0x5482bf=_0x39416d==null||(_0x25a435=_0x39416d[_0x1a9db6(0x165)])==null?void 0x0:_0x25a435[_0x1a9db6(0x22c)])==null||_0x5482bf;}[_0x222254(0x1de)](){const _0x23db99=_0x222254;var _0x351e51,_0x4e81f5;let _0x171604=this['_configService']['getConfig'](T);return(_0x351e51=_0x171604==null||(_0x4e81f5=_0x171604[_0x23db99(0x165)])==null?void 0x0:_0x4e81f5[_0x23db99(0x22a)])!=null&&_0x351e51;}};q=O([D(0x0,_0x55d0d4),D(0x1,_0x412acd(_0x2c82c0)),D(0x2,_0x412acd(U))],q);const ut={'done':0x0,'count':0x0},J=_0x18097c(_0x222254(0x12d));let Y=class extends _0x5b5c70{constructor(_0x58b087,_0x4e9704,_0x229fb4,_0x525982,_0x20f69a,_0x373528,_0x4ac9dd){const _0x4a19d9=_0x222254;super(),this[_0x4a19d9(0x1d6)]=_0x58b087,this[_0x4a19d9(0x1f2)]=_0x4e9704,this[_0x4a19d9(0x1ec)]=_0x229fb4,this[_0x4a19d9(0x20d)]=_0x525982,this[_0x4a19d9(0x1d8)]=_0x20f69a,this[_0x4a19d9(0x1b7)]=_0x373528,this['_resourceLoaderService']=_0x4ac9dd,j(this,_0x4a19d9(0x14b),new _0x213ee6(ut)),j(this,_0x4a19d9(0x236),this[_0x4a19d9(0x14b)]['asObservable']()),j(this,_0x4a19d9(0x14c),0x0),j(this,'_doneUploadTaskCount',0x0),this['disposeWithMe'](_0x1e4bdd(this['_exchangeService'][_0x4a19d9(0x210)][_0x4a19d9(0x207)](_0x2b2110=>{const _0x536c26=_0x4a19d9;var _0x12d468;((_0x12d468=_0x2b2110['error'])==null?void 0x0:_0x12d468[_0x536c26(0x1b8)])===_0x1889ed['OK']?this[_0x536c26(0x276)](0x1):this['_showNetworkError'](_0x2b2110[_0x536c26(0x22f)]);})));}[_0x222254(0x131)](){const _0x151814=_0x222254;this['_clearProgress'](),this['_uploadNotificationService'][_0x151814(0x143)](0x2),this[_0x151814(0x20d)][_0x151814(0x137)]();}async[_0x222254(0x1e6)](){const _0x50717d=_0x222254;if(this[_0x50717d(0x15b)]()){this[_0x50717d(0x1f2)][_0x50717d(0x17f)]({'type':_0x30a331[_0x50717d(0x1ab)],'content':this[_0x50717d(0x1ec)]['t'](_0x50717d(0x21a))});return;}let _0x5d5f37=await B([_0x151766['UNIVER_SHEET']]);if(_0x5d5f37&&!this[_0x50717d(0x1dd)](_0x5d5f37,_0x151766['UNIVER_SHEET']))return this['_importFileToUnitId'](_0x5d5f37[0x0],_0x151766[_0x50717d(0x274)]);}async['importXLSXToSnapshot'](){const _0x1338ad=_0x222254;if(this['_uploadTaskNotDone']()){this[_0x1338ad(0x1f2)][_0x1338ad(0x17f)]({'type':_0x30a331[_0x1338ad(0x1ab)],'content':this[_0x1338ad(0x1ec)]['t'](_0x1338ad(0x21a))});return;}let _0x4abee2=await B([_0x151766[_0x1338ad(0x274)]]);if(!_0x4abee2)return;this[_0x1338ad(0x148)](_0x30a331[_0x1338ad(0x260)]);let _0x93443b=await this[_0x1338ad(0x20d)]['importXLSXToSnapshot'](_0x4abee2[0x0]);_0x93443b&&(this[_0x1338ad(0x139)](_0x151766[_0x1338ad(0x274)],_0x93443b),this[_0x1338ad(0x148)](_0x30a331[_0x1338ad(0x1b5)]));}async[_0x222254(0x150)](_0x5f0283,_0x1fd63b){const _0x275dc9=_0x222254;this[_0x275dc9(0x201)](_0x30a331['Info']);let _0xab0d3f=await this[_0x275dc9(0x20d)]['exportXLSXByUnitId'](_0x5f0283||this[_0x275dc9(0x23b)](_0x151766['UNIVER_SHEET']));_0xab0d3f&&(this['_exchangeService']['downloadFile'](_0xab0d3f,_0x1fd63b||this[_0x275dc9(0x1c6)](_0xab0d3f,_0x151766['UNIVER_SHEET']),_0x275dc9(0x1f1)),this[_0x275dc9(0x201)](_0x30a331[_0x275dc9(0x1b5)]));}async[_0x222254(0x193)](){const _0x59fdd4=_0x222254;this[_0x59fdd4(0x201)](_0x30a331[_0x59fdd4(0x260)]);let _0x241d79=await this[_0x59fdd4(0x277)](_0x151766['UNIVER_SHEET']),_0x561e99=await this['_exchangeService']['exportXLSXBySnapshot'](_0x241d79);_0x561e99&&(this[_0x59fdd4(0x20d)][_0x59fdd4(0x132)](_0x561e99,this['_getUnitNameByType'](_0x561e99,_0x151766[_0x59fdd4(0x274)]),_0x59fdd4(0x1f1)),this['_showDownloadMessage'](_0x30a331['Success']));}async[_0x222254(0x1c2)](){const _0xbc4d0d=_0x222254;if(this[_0xbc4d0d(0x15b)]()){this[_0xbc4d0d(0x1f2)]['show']({'type':_0x30a331[_0xbc4d0d(0x1ab)],'content':this[_0xbc4d0d(0x1ec)]['t']('exchange-client.uploading')});return;}let _0x3cf0d1=await B([_0x151766[_0xbc4d0d(0x22d)]]);if(_0x3cf0d1&&!this[_0xbc4d0d(0x1dd)](_0x3cf0d1,_0x151766['UNIVER_DOC']))return this[_0xbc4d0d(0x252)](_0x3cf0d1[0x0],_0x151766[_0xbc4d0d(0x22d)]);}async[_0x222254(0x219)](){const _0x538664=_0x222254;if(this[_0x538664(0x15b)]()){this[_0x538664(0x1f2)][_0x538664(0x17f)]({'type':_0x30a331[_0x538664(0x1ab)],'content':this[_0x538664(0x1ec)]['t'](_0x538664(0x21a))});return;}let _0x167b3e=await B([_0x151766['UNIVER_DOC']]);if(!_0x167b3e||this['_fileTypeError'](_0x167b3e,_0x151766[_0x538664(0x22d)]))return;this[_0x538664(0x148)](_0x30a331['Info']);let _0x425497=await this[_0x538664(0x20d)]['importDOCXToSnapshot'](_0x167b3e[0x0]);_0x425497&&(this[_0x538664(0x139)](_0x151766[_0x538664(0x22d)],_0x425497),this[_0x538664(0x148)](_0x30a331[_0x538664(0x1b5)]));}async[_0x222254(0x12b)](_0x286cbf,_0x740a57){const _0x2f8697=_0x222254;this[_0x2f8697(0x201)](_0x30a331[_0x2f8697(0x260)]);let _0x308ed2=await this['_exchangeService'][_0x2f8697(0x12b)](_0x286cbf||this[_0x2f8697(0x23b)](_0x151766[_0x2f8697(0x22d)]));_0x308ed2&&(this[_0x2f8697(0x20d)]['downloadFile'](_0x308ed2,_0x740a57||this['_getUnitNameByType'](_0x308ed2,_0x151766[_0x2f8697(0x22d)]),_0x2f8697(0x158)),this[_0x2f8697(0x201)](_0x30a331[_0x2f8697(0x1b5)]));}async[_0x222254(0x253)](_0x3294d2){const _0x26d599=_0x222254;this[_0x26d599(0x201)](_0x30a331['Info']);let _0x4b1f84=_0x3294d2==null?await this[_0x26d599(0x277)](_0x151766[_0x26d599(0x22d)]):_0x3294d2,_0x3fc33d=await this[_0x26d599(0x20d)]['exportDOCXBySnapshot'](_0x4b1f84);_0x3fc33d&&(this[_0x26d599(0x20d)]['downloadFile'](_0x3fc33d,this[_0x26d599(0x1c6)](_0x3fc33d,_0x151766['UNIVER_DOC']),'docx'),this[_0x26d599(0x201)](_0x30a331[_0x26d599(0x1b5)]));}async[_0x222254(0x20c)](){const _0x53ef19=_0x222254;if(this[_0x53ef19(0x15b)]()){this['_messageService'][_0x53ef19(0x17f)]({'type':_0x30a331['Warning'],'content':this[_0x53ef19(0x1ec)]['t'](_0x53ef19(0x21a))});return;}let _0x35e5e7=await B([_0x151766[_0x53ef19(0x1a3)]]);if(_0x35e5e7&&!this[_0x53ef19(0x1dd)](_0x35e5e7,_0x151766[_0x53ef19(0x1a3)]))return this[_0x53ef19(0x252)](_0x35e5e7[0x0],_0x151766['UNIVER_SLIDE']);}async[_0x222254(0x18c)](){const _0x2408e4=_0x222254;if(this[_0x2408e4(0x15b)]()){this[_0x2408e4(0x1f2)][_0x2408e4(0x17f)]({'type':_0x30a331[_0x2408e4(0x1ab)],'content':this[_0x2408e4(0x1ec)]['t']('exchange-client.uploading')});return;}let _0x513e67=await B([_0x151766['UNIVER_PDF']]);if(!(!_0x513e67||this[_0x2408e4(0x1dd)](_0x513e67,_0x151766[_0x2408e4(0x173)])))return this[_0x2408e4(0x252)](_0x513e67[0x0],_0x151766[_0x2408e4(0x173)]);}async['importPDFToSnapshot'](){const _0x192eb2=_0x222254;if(this['_uploadTaskNotDone']()){this[_0x192eb2(0x1f2)][_0x192eb2(0x17f)]({'type':_0x30a331[_0x192eb2(0x1ab)],'content':this['_localeService']['t'](_0x192eb2(0x21a))});return;}let _0x4d84d3=await B([_0x151766[_0x192eb2(0x173)]]);if(!_0x4d84d3||this[_0x192eb2(0x1dd)](_0x4d84d3,_0x151766[_0x192eb2(0x173)]))return;this[_0x192eb2(0x148)](_0x30a331[_0x192eb2(0x260)]);let _0x34489f=await this[_0x192eb2(0x20d)][_0x192eb2(0x1bc)](_0x4d84d3[0x0]);if(_0x34489f)return this['_showUploadMessage'](_0x30a331[_0x192eb2(0x1b5)]),_0x34489f;}async[_0x222254(0x1fa)](_0x367a8c,_0x2b8f00,_0x3fafe7){const _0x53d47c=_0x222254;this[_0x53d47c(0x201)](_0x30a331['Info']);let _0x1b9b17=await this['_exchangeService'][_0x53d47c(0x1fa)](_0x367a8c||this[_0x53d47c(0x23b)](_0x151766[_0x53d47c(0x173)]));_0x1b9b17&&(this['_exchangeService'][_0x53d47c(0x132)](_0x1b9b17,_0x2b8f00||this['_getUnitNameByType'](_0x1b9b17,_0x3fafe7==null?_0x151766['UNIVER_PDF']:_0x3fafe7),_0x53d47c(0x1d0)),this[_0x53d47c(0x201)](_0x30a331['Success']));}async[_0x222254(0x1c4)](){const _0x2e3153=_0x222254;this['_showDownloadMessage'](_0x30a331['Info']);let _0x295c0a=await this[_0x2e3153(0x277)](_0x151766[_0x2e3153(0x173)]),_0x1cb4a7=await this[_0x2e3153(0x20d)][_0x2e3153(0x1c4)](_0x295c0a);_0x1cb4a7&&(this[_0x2e3153(0x20d)][_0x2e3153(0x132)](_0x1cb4a7,this['_getUnitNameByType'](_0x1cb4a7,_0x151766[_0x2e3153(0x173)]),_0x2e3153(0x1d0)),this[_0x2e3153(0x201)](_0x30a331['Success']));}async[_0x222254(0x1ce)](){const _0x3739fa=_0x222254;if(this[_0x3739fa(0x15b)]()){this[_0x3739fa(0x1f2)]['show']({'type':_0x30a331[_0x3739fa(0x1ab)],'content':this[_0x3739fa(0x1ec)]['t'](_0x3739fa(0x21a))});return;}let _0x42701a=await B([_0x151766[_0x3739fa(0x1a3)]]);if(!_0x42701a)return;this[_0x3739fa(0x148)](_0x30a331[_0x3739fa(0x260)]);let _0x2ca0a0=await this[_0x3739fa(0x20d)][_0x3739fa(0x1ce)](_0x42701a[0x0]);_0x2ca0a0&&(this[_0x3739fa(0x139)](_0x151766['UNIVER_SLIDE'],_0x2ca0a0),this[_0x3739fa(0x148)](_0x30a331[_0x3739fa(0x1b5)]));}async[_0x222254(0x170)](_0xf93437,_0xb0c706){const _0x4e8af4=_0x222254;this['_showDownloadMessage'](_0x30a331['Info']);let _0x2eb82b=await this[_0x4e8af4(0x20d)][_0x4e8af4(0x170)](_0xf93437||this[_0x4e8af4(0x23b)](_0x151766[_0x4e8af4(0x1a3)]));_0x2eb82b&&(this['_exchangeService'][_0x4e8af4(0x132)](_0x2eb82b,_0xb0c706||this['_getUnitNameByType'](_0x2eb82b,_0x151766['UNIVER_SLIDE']),_0x4e8af4(0x19b)),this[_0x4e8af4(0x201)](_0x30a331[_0x4e8af4(0x1b5)]));}async['exportPPTXBySnapshot'](){const _0x4d85c0=_0x222254;this[_0x4d85c0(0x201)](_0x30a331[_0x4d85c0(0x260)]);let _0x3d0b49=await this[_0x4d85c0(0x277)](_0x151766[_0x4d85c0(0x1a3)]),_0x23e893=await this[_0x4d85c0(0x20d)][_0x4d85c0(0x184)](_0x3d0b49);_0x23e893&&(this[_0x4d85c0(0x20d)][_0x4d85c0(0x132)](_0x23e893,this[_0x4d85c0(0x1c6)](_0x23e893,_0x151766[_0x4d85c0(0x1a3)]),_0x4d85c0(0x19b)),this[_0x4d85c0(0x201)](_0x30a331[_0x4d85c0(0x1b5)]));}async[_0x222254(0x17b)](_0x48d7a1){const _0x58e1b5=_0x222254;throw Error(_0x58e1b5(0x13c));}async[_0x222254(0x20e)](){const _0x3934ec=_0x222254;let _0x407e97=this[_0x3934ec(0x1d6)][_0x3934ec(0x20f)]();switch(_0x407e97?this[_0x3934ec(0x1d6)][_0x3934ec(0x202)](_0x407e97[_0x3934ec(0x181)]()):_0x151766['UNRECOGNIZED']){case _0x151766[_0x3934ec(0x173)]:return this['importPDFToUnitId']();case _0x151766['UNIVER_SLIDE']:return this['importPPTXToUnitId']();case _0x151766['UNIVER_DOC']:return this[_0x3934ec(0x1c2)]();case _0x151766['UNIVER_SHEET']:default:return this[_0x3934ec(0x1e6)]();}}[_0x222254(0x27f)](_0x3895c2){const _0x4f1a25=_0x222254;this[_0x4f1a25(0x1f9)]=_0x3895c2;}async['_importFileToUnitId'](_0x3bd246,_0x2f1d06){const _0x3ee26f=_0x222254;this['_uploadNotificationService'][_0x3ee26f(0x17f)](),this['_uploadNotificationService'][_0x3ee26f(0x143)](0x0),this[_0x3ee26f(0x16c)](0x4),this[_0x3ee26f(0x276)](0x1);let _0x2887bb=await this[_0x3ee26f(0x20d)][_0x3ee26f(0x1c5)](_0x3bd246,_0x2f1d06);if(!_0x2887bb){this[_0x3ee26f(0x228)](),this[_0x3ee26f(0x1d8)][_0x3ee26f(0x143)](0x2);return;}let _0x52da1f={'link':this[_0x3ee26f(0x1f9)](_0x2887bb,_0x2f1d06),'name':_0x3bd246[_0x3ee26f(0x1b2)],'type':_0x2f1d06};return this['_uploadNotificationService'][_0x3ee26f(0x240)](_0x52da1f),this[_0x3ee26f(0x1d1)](),this['_uploadNotificationService'][_0x3ee26f(0x143)](0x1),_0x2887bb;}['_getUnitID'](_0x3e5555){const _0xbe8cd8=_0x222254;let _0x258f1f=this[_0xbe8cd8(0x1d6)]['getCurrentUnitOfType'](_0x3e5555);if(!_0x258f1f)throw Error(_0xbe8cd8(0x1cd)+_0x3e5555+_0xbe8cd8(0x14f));return _0x258f1f['getUnitId']();}[_0x222254(0x1c6)](_0x214d44,_0x141b6a){const _0x387278=_0x222254;let _0x27db7f=this[_0x387278(0x1d6)]['getCurrentUnitOfType'](_0x141b6a);if(_0x27db7f){let _0x4de9b1='';switch(_0x141b6a){case _0x151766[_0x387278(0x274)]:_0x4de9b1=_0x27db7f[_0x387278(0x254)]()['name'];break;case _0x151766[_0x387278(0x22d)]:_0x4de9b1=_0x27db7f[_0x387278(0x254)]()[_0x387278(0x272)];break;case _0x151766[_0x387278(0x1a3)]:_0x4de9b1=_0x27db7f[_0x387278(0x254)]()[_0x387278(0x1b2)];break;case _0x151766[_0x387278(0x173)]:_0x4de9b1=_0x27db7f[_0x387278(0x254)]()['name'];break;default:break;}if(typeof _0x4de9b1==_0x387278(0x27c)&&_0x4de9b1[_0x387278(0x163)]())return _0x4de9b1;}return _0x214d44[_0x387278(0x1b2)][_0x387278(0x218)]('.')[_0x387278(0x217)]()||document[_0x387278(0x272)];}async[_0x222254(0x277)](_0x56b7ec){const _0x5340e8=_0x222254;let _0x1883de=this[_0x5340e8(0x1d6)]['getCurrentUnitOfType'](_0x56b7ec);if(!_0x1883de)throw Error(_0x5340e8(0x1cd)+_0x56b7ec+_0x5340e8(0x14f));if(_0x56b7ec===_0x151766[_0x5340e8(0x274)]){let _0x5df617=this[_0x5340e8(0x13a)][_0x5340e8(0x188)](_0x1883de[_0x5340e8(0x181)]());return _0x5df617==null?_0x1883de[_0x5340e8(0x254)]():_0x5df617;}if(_0x56b7ec===_0x151766['UNIVER_DOC']){let _0x21b928=this[_0x5340e8(0x13a)][_0x5340e8(0x188)](_0x1883de[_0x5340e8(0x181)]());return _0x21b928==null?_0x1883de['getSnapshot']():_0x21b928;}if(_0x56b7ec===_0x151766['UNIVER_SLIDE']){let _0xe05c0f=this[_0x5340e8(0x13a)]['saveUnit'](_0x1883de[_0x5340e8(0x181)]());return _0xe05c0f==null?_0x1883de[_0x5340e8(0x254)]():_0xe05c0f;}return _0x56b7ec===_0x151766[_0x5340e8(0x173)]?_0x1883de[_0x5340e8(0x254)]():null;}[_0x222254(0x139)](...[_0x41604c,_0x1907e4]){const _0x4b7ac0=_0x222254;let _0x2d1594=this[_0x4b7ac0(0x1d6)][_0x4b7ac0(0x229)](_0x41604c);if(!_0x2d1594)throw Error(_0x4b7ac0(0x1cd)+_0x41604c+_0x4b7ac0(0x14f));switch(this[_0x4b7ac0(0x1d6)]['disposeUnit'](_0x2d1594['getUnitId']()),_0x41604c){case _0x151766[_0x4b7ac0(0x274)]:this[_0x4b7ac0(0x1d6)]['createUnit'](_0x41604c,_0x1907e4);break;case _0x151766['UNIVER_DOC']:this[_0x4b7ac0(0x1d6)]['createUnit'](_0x41604c,_0x1907e4);break;case _0x151766['UNIVER_SLIDE']:this[_0x4b7ac0(0x1d6)][_0x4b7ac0(0x278)](_0x41604c,_0x1907e4);break;}}[_0x222254(0x1f9)](_0xb65d72,_0x513617){const _0x56c31c=_0x222254;let _0x5931ca=new URL(window[_0x56c31c(0x26a)][_0x56c31c(0x268)]);return _0x5931ca[_0x56c31c(0x1ad)]['set']('unit',_0xb65d72),_0x5931ca[_0x56c31c(0x1ad)][_0x56c31c(0x168)]('type',''+_0x513617),_0x5931ca[_0x56c31c(0x242)]();}[_0x222254(0x22b)](_0x50efb4){const _0x14b52c=_0x222254;if(_0x50efb4){let {code:_0x29e060}=_0x50efb4;switch(_0x29e060){case _0x1889ed[_0x14b52c(0x1f6)]:this[_0x14b52c(0x1f2)][_0x14b52c(0x17f)]({'type':_0x30a331[_0x14b52c(0x205)],'content':this[_0x14b52c(0x1ec)]['t'](_0x14b52c(0x190))});break;case _0x1889ed[_0x14b52c(0x251)]:this[_0x14b52c(0x1f2)]['show']({'type':_0x30a331['Error'],'content':this[_0x14b52c(0x1ec)]['t'](_0x14b52c(0x264))});break;default:this[_0x14b52c(0x1f2)]['show']({'type':_0x30a331[_0x14b52c(0x205)],'content':this[_0x14b52c(0x1ec)]['t']('exchange-client.networkError')});break;}return null;}return this[_0x14b52c(0x1f2)][_0x14b52c(0x17f)]({'type':_0x30a331['Error'],'content':this[_0x14b52c(0x1ec)]['t'](_0x14b52c(0x162))}),null;}[_0x222254(0x201)](_0x510c3e){const _0x3950c6=_0x222254;let _0x4f3933='';switch(_0x510c3e){case _0x30a331[_0x3950c6(0x1b5)]:_0x4f3933=this[_0x3950c6(0x1ec)]['t'](_0x3950c6(0x160));break;case _0x30a331[_0x3950c6(0x260)]:_0x4f3933=this[_0x3950c6(0x1ec)]['t']('exchange-client.downloading');break;default:break;}this[_0x3950c6(0x1f2)][_0x3950c6(0x17f)]({'type':_0x510c3e,'content':_0x4f3933});}[_0x222254(0x148)](_0x2d54c2){const _0x57d9bd=_0x222254;let _0x140b98='';switch(_0x2d54c2){case _0x30a331[_0x57d9bd(0x1b5)]:_0x140b98=this[_0x57d9bd(0x1ec)]['t']('exchange-client.uploadSuccess');break;case _0x30a331[_0x57d9bd(0x260)]:_0x140b98=this[_0x57d9bd(0x1ec)]['t'](_0x57d9bd(0x21a));break;default:break;}this[_0x57d9bd(0x1f2)]['show']({'type':_0x2d54c2,'content':_0x140b98});}[_0x222254(0x1e0)](){const _0xa81966=_0x222254;this['_progress$'][_0xa81966(0x138)]({'done':this[_0xa81966(0x178)],'count':this['_totalUploadTaskCount']});}[_0x222254(0x16c)](_0x5719fd){const _0x5618a4=_0x222254;this[_0x5618a4(0x14c)]+=_0x5719fd,this[_0x5618a4(0x1e0)]();}[_0x222254(0x276)](_0x3ddb4b){const _0x2dbb39=_0x222254;this[_0x2dbb39(0x178)]+=_0x3ddb4b,this['_doneUploadTaskCount']=Math[_0x2dbb39(0x14a)](this[_0x2dbb39(0x178)],this[_0x2dbb39(0x14c)]),this[_0x2dbb39(0x1e0)]();}[_0x222254(0x1d1)](){const _0x1da138=_0x222254;this[_0x1da138(0x178)]=this[_0x1da138(0x14c)],this['_emitProgress']();}[_0x222254(0x228)](){const _0x520f95=_0x222254;this['_doneUploadTaskCount']=0x0,this[_0x520f95(0x14c)]=0x0,this[_0x520f95(0x1e0)]();}[_0x222254(0x1dd)](_0x2963e7,_0x450957){const _0x41a20c=_0x222254;let _0x227160=_0x2963e7[0x0],_0xed5ef1=_0x227160['name'];return Ke(_0x227160)===_0x450957?!0x1:(this[_0x41a20c(0x1f2)][_0x41a20c(0x17f)]({'type':_0x30a331[_0x41a20c(0x205)],'content':this[_0x41a20c(0x1ec)]['t']('exchange-client.fileTypeError',_0xed5ef1)}),!0x0);}['_uploadTaskNotDone'](){const _0x436927=_0x222254;return this[_0x436927(0x14c)]!==0x0&&this[_0x436927(0x178)]!==this[_0x436927(0x14c)];}};Y=O([D(0x0,_0x412acd(_0x432a12)),D(0x1,_0x4f4a53),D(0x2,_0x412acd(_0x51b184)),D(0x3,_0x412acd(K)),D(0x4,_0x412acd(M)),D(0x5,_0x4ed4b7),D(0x6,_0x412acd(_0x56b3b9))],Y);function X(_0x1c6ea7){const _0x542ca3=_0x222254;let {onClick:_0x41ee4e,children:_0x53f49c,className:_0x10a0a2}=_0x1c6ea7;return _0x314104(_0x542ca3(0x151),{'className':_0x2c1e21(_0x542ca3(0x1d2),_0x10a0a2),'type':_0x542ca3(0x151),'onClick':_0x41ee4e,'children':_0x53f49c});}function Z(){const _0x18957e=_0x222254;let _0x3f22b2=_0x1e3628(J),_0x5578eb=_0x1e3628(_0x51b184);function _0x5e07ee(){_0x3f22b2['importFileToUnitIdByCurrentType']();}return _0x314104(X,{'onClick':_0x5e07ee,'children':_0x5578eb['t'](_0x18957e(0x154))});}function dt(){const _0x355536=_0x222254;return _0x525f8d(_0x355536(0x26d),{'className':_0x355536(0x182),'children':[_0x314104('span',{'className':_0x355536(0x17d),'children':_0x1e3628(_0x51b184)['t'](_0x355536(0x133))}),_0x314104(Z,{})]});}function ft(_0x3dd86d){const _0x2f929b=_0x222254;let {count:_0x29ceb3}=_0x3dd86d;return _0x525f8d(_0x2f929b(0x26d),{'className':_0x2f929b(0x233),'children':[_0x314104(_0x2f929b(0x269),{'className':_0x2f929b(0x230),'children':_0x1e3628(_0x51b184)['t'](_0x2f929b(0x19f),''+_0x29ceb3)}),_0x314104(Z,{})]});}function pt(){let _0x3c898b=_0x1e3628(J),_0x11ceaf=_0x1e3628(_0x51b184);function _0x198ead(){_0x3c898b['interrupt']();}return _0x314104(X,{'onClick':_0x198ead,'children':_0x11ceaf['t']('exchange-client.cancel')});}function mt(){const _0x48a009=_0x222254;let {count:_0x2623ef,done:_0x386dd1}=_0x4079b5(_0x1e3628(J)[_0x48a009(0x236)]),_0xedbc05=_0x2623ef>0x0?_0x386dd1/_0x2623ef:0x0;return _0x314104(_0x48a009(0x26d),{'className':'univer-mx-0\x20univer-mb-3\x20univer-mt-4\x20univer-h-1.5\x20univer-w-[324px]\x20univer-rounded-lg\x20univer-bg-gray-200','children':_0x314104(_0x48a009(0x26d),{'className':_0x48a009(0x223),'style':{'width':Math[_0x48a009(0x189)](_0xedbc05*0x64)+'%'}})});}function ht(){const _0x3c3f35=_0x222254;return _0x525f8d(_0x3c3f35(0x26d),{'className':'univer-mt-5\x20univer-flex\x20univer-flex-col','children':[_0x314104(_0x3c3f35(0x269),{'className':'univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','children':_0x1e3628(_0x51b184)['t'](_0x3c3f35(0x1ac))}),_0x314104(_0x3c3f35(0x26d),{'className':_0x3c3f35(0x1ae),'children':_0x314104(mt,{})}),_0x314104(pt,{})]});}const gt={0x1:_0x314104(_0x5ab502,{'className':_0x222254(0x164)}),0x0:_0x314104(_0xd88cde,{'className':_0x222254(0x1d4)}),0x2:_0x314104(_0x4cd45e,{'className':'univer-text-red-500'})};function _t(){const _0x227764=_0x222254;let _0x32cb0e=_0x1e3628(M),_0x2da04f=_0x1e3628(_0x51b184),_0x5966ac=_0x4079b5(_0x32cb0e[_0x227764(0x1c9)],0x0),_0x4739b8=_0x4079b5(_0x32cb0e[_0x227764(0x157)],!0x1),_0x5078ca=_0x4079b5(_0x32cb0e[_0x227764(0x1bd)],[]);function _0x52064f(){_0x32cb0e['hide']();}function _0x260a13(_0x402b17){const _0x279884=_0x227764;switch(_0x402b17){case 0x1:return _0x2da04f['t']('exchange-client.uploadSuccess');case 0x0:return _0x2da04f['t'](_0x279884(0x21a));case 0x2:return _0x2da04f['t']('exchange-client.unknownMistake');default:return'';}}return _0x4739b8&&_0x525f8d(_0x227764(0x26d),{'className':_0x227764(0x24f),'children':[_0x525f8d(_0x227764(0x26d),{'className':_0x227764(0x136),'children':[_0x525f8d('span',{'className':_0x227764(0x212),'children':[_0x314104(_0x227764(0x269),{'className':'univer-h-6\x20univer-text-2xl','children':gt[_0x5966ac]}),_0x314104('span',{'className':_0x227764(0x275),'children':_0x260a13(_0x5966ac)})]}),_0x314104(_0x227764(0x269),{'className':_0x227764(0x152),'onClick':_0x52064f,'children':_0x314104(_0x5d7771,{})})]}),_0x525f8d('div',{'children':[_0x5966ac===0x0&&_0x314104(ht,{}),_0x5966ac===0x2&&_0x314104(dt,{}),_0x5078ca['length']>0x0&&_0x314104(Ue,{'list':_0x5078ca}),_0x5966ac===0x1&&_0x314104(ft,{'count':_0x5078ca[_0x227764(0x194)]})]})]});}function vt(){return _0x314104(_t,{});}let Q=class extends _0x5b5c70{constructor(_0x12b2f0,_0x4b01ba){const _0x2196b3=_0x222254;super(),this['_injector']=_0x12b2f0,this[_0x2196b3(0x142)]=_0x4b01ba,this['_registerUIParts']();}[_0x222254(0x15d)](){const _0x30b9cf=_0x222254;this['disposeWithMe'](this[_0x30b9cf(0x142)][_0x30b9cf(0x175)](_0x552673[_0x30b9cf(0x1ca)],()=>_0x1d0427(vt,this[_0x30b9cf(0x1b1)])));}};Q=O([D(0x0,_0x412acd(_0x328aba)),D(0x1,_0x37052e)],Q);let $=class extends _0x2a7ab1{constructor(_0x309792=E,_0x51db24,_0xd3ec60){const _0x19f586=_0x222254;super(),this[_0x19f586(0x171)]=_0x309792,this[_0x19f586(0x1b1)]=_0x51db24,this[_0x19f586(0x1c8)]=_0xd3ec60;let {..._0x1ef2f4}=_0x17799a({},E,this[_0x19f586(0x171)]);this[_0x19f586(0x1c8)][_0x19f586(0x25a)](T,_0x1ef2f4);}[_0x222254(0x1d9)](){_0x27dbb6(this['_injector'],[[k],[Q],[J,{'useClass':Y}],[K,{'useClass':q}],[U,{'useClass':W}],[M,{'useClass':He}]]);}['onReady'](){const _0x4f159e=_0x222254;_0x4959dc(this[_0x4f159e(0x1b1)],[[k],[Q],[J]]);}};j($,_0x222254(0x1e2),_0x222254(0x18f)),j($,_0x222254(0x1f3),Re),j($,'version',ze),$=O([_0x478567(_0x5101d5,_0x417308,_0x35b6ef),D(0x1,_0x412acd(_0x328aba)),D(0x2,_0x55d0d4)],$);function yt(_0x419363,_0x1ea14d){const _0x35d74c=_0x222254;let _0x2e6c8e=_0x419363[_0x35d74c(0x197)](_0x432a12)[_0x35d74c(0x229)](_0x1ea14d);return!_0x2e6c8e||!_0x419363[_0x35d74c(0x26e)](_0x1c35f5)?!0x1:_0x419363[_0x35d74c(0x197)](_0x1c35f5)[_0x35d74c(0x187)](_0x2e6c8e);}export{J as IExchangeOperateService,K as IExchangeService,$ as UniverExchangeClientPlugin,yt as isCurrentUnitLoadedFromServer};
|
package/lib/locale/ar-SA.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x5ae3d0=_0x2ac6;function _0x1578(){const _0x3a8825=['1544hrGaLo','44678925ucZIqK','خطأ\x20غير\x20معروف','1868728lUvAWA','خطأ\x20في\x20الشبكة','جارٍ\x20الرفع','2871330gbPcsc','تم\x20رفع\x20{0}\x20ملف/ملفات\x20بنجاح','1704416gXRHgX','جارٍ\x20التحميل','4740165QGYlRQ','821860CUJYuy','إلغاء','يرجى\x20الانتظار...','15320SaXUhT','2XGicZz','تمت\x20مقاطعة\x20الاتصال\x20بالشبكة\x20وفشل\x20رفع\x20الملف','تم\x20التحميل\x20بنجاح','البيانات\x20كبيرة\x20جداً'];_0x1578=function(){return _0x3a8825;};return _0x1578();}(function(_0x40352b,_0x64668a){const _0x3f0e8a=_0x2ac6,_0x29b002=_0x40352b();while(!![]){try{const _0x1a247f=-parseInt(_0x3f0e8a(0x115))/0x1+parseInt(_0x3f0e8a(0x119))/0x2*(-parseInt(_0x3f0e8a(0x114))/0x3)+parseInt(_0x3f0e8a(0x11d))/0x4*(-parseInt(_0x3f0e8a(0x118))/0x5)+-parseInt(_0x3f0e8a(0x123))/0x6+parseInt(_0x3f0e8a(0x112))/0x7+-parseInt(_0x3f0e8a(0x120))/0x8+parseInt(_0x3f0e8a(0x11e))/0x9;if(_0x1a247f===_0x64668a)break;else _0x29b002['push'](_0x29b002['shift']());}catch(_0x487efd){_0x29b002['push'](_0x29b002['shift']());}}}(_0x1578,0xde6c8));const e={'exchange-client':{'uploading':_0x5ae3d0(0x122),'uploadSuccess':'تم\x20رفع\x20الملف\x20بنجاح','uploadSuccessTip':_0x5ae3d0(0x111),'downloading':_0x5ae3d0(0x113),'downloadSuccess':_0x5ae3d0(0x11b),'unknownMistake':_0x5ae3d0(0x11f),'networkError':_0x5ae3d0(0x121),'tooLarge':_0x5ae3d0(0x11c),'internalError':'خطأ\x20داخلي\x20غير\x20معروف','interrupt':_0x5ae3d0(0x11a),'fileTypeError':'نوع\x20الملف\x20المحدد\x20[{0}]\x20غير\x20مدعوم\x20للرفع','wait':_0x5ae3d0(0x117),'cancel':_0x5ae3d0(0x116),'uploadAgain':'إعادة\x20الرفع'}};function _0x2ac6(_0x655e83,_0x13aa91){_0x655e83=_0x655e83-0x111;const _0x15780d=_0x1578();let _0x2ac6f7=_0x15780d[_0x655e83];return _0x2ac6f7;}export{e as default};
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x461ae8=_0x460c;function _0x16df(){const _0x39ac8a=['3506290hVQXNe','66otNQkt','El\x20fitxer\x20seleccionat\x20[{0}]\x20no\x20és\x20compatible\x20per\x20pujar','Pujant','11sxDYxv','La\x20connexió\x20de\x20xarxa\x20s\x27ha\x20interromput\x20i\x20la\x20pujada\x20del\x20fitxer\x20ha\x20fallat','142816TEwGfk','Fitxer\x20pujat\x20correctament','Descarregant','Descàrrega\x20correcta','Error\x20intern\x20desconegut','1cPzoGS','{0}\x20fitxer(s)\x20pujat(s)\x20correctament','Tornar\x20a\x20pujar','644784Eesgvn','Cancel·lar','4494564DWRjnb','1559068VbKfyv','7KnTwFs','1503602qEUYzf','120225zWdBHf'];_0x16df=function(){return _0x39ac8a;};return _0x16df();}(function(_0x39540c,_0x5d119e){const _0x1e1021=_0x460c,_0x49be8a=_0x39540c();while(!![]){try{const _0x331e0c=-parseInt(_0x1e1021(0xca))/0x1*(parseInt(_0x1e1021(0xd2))/0x2)+parseInt(_0x1e1021(0xcd))/0x3+parseInt(_0x1e1021(0xd0))/0x4+-parseInt(_0x1e1021(0xd3))/0x5*(parseInt(_0x1e1021(0xd5))/0x6)+parseInt(_0x1e1021(0xd1))/0x7*(-parseInt(_0x1e1021(0xda))/0x8)+parseInt(_0x1e1021(0xcf))/0x9+-parseInt(_0x1e1021(0xd4))/0xa*(-parseInt(_0x1e1021(0xd8))/0xb);if(_0x331e0c===_0x5d119e)break;else _0x49be8a['push'](_0x49be8a['shift']());}catch(_0x168bb4){_0x49be8a['push'](_0x49be8a['shift']());}}}(_0x16df,0x66adc));function _0x460c(_0x3a7d5d,_0x114063){_0x3a7d5d=_0x3a7d5d-0xca;const _0x16df4f=_0x16df();let _0x460cd3=_0x16df4f[_0x3a7d5d];return _0x460cd3;}const e={'exchange-client':{'uploading':_0x461ae8(0xd7),'uploadSuccess':_0x461ae8(0xdb),'uploadSuccessTip':_0x461ae8(0xcb),'downloading':_0x461ae8(0xdc),'downloadSuccess':_0x461ae8(0xdd),'unknownMistake':'Error\x20desconegut','networkError':'Error\x20de\x20xarxa','tooLarge':'Les\x20dades\x20són\x20massa\x20grans','internalError':_0x461ae8(0xde),'interrupt':_0x461ae8(0xd9),'fileTypeError':_0x461ae8(0xd6),'wait':'Espereu...','cancel':_0x461ae8(0xce),'uploadAgain':_0x461ae8(0xcc)}};export{e as default};
|