@univerjs-pro/exchange-client 0.22.0 → 0.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.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/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.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-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.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/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.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-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.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/ja-JP.js +1 -1
- package/lib/locale/ko-KR.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-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.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/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.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-TW.js +1 -1
- package/package.json +9 -9
package/lib/cjs/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x5837f9=_0x1f65;(function(_0x2cddc5,_0x2a587e){const _0x29f45b=_0x1f65,_0x3c955a=_0x2cddc5();while(!![]){try{const _0x472f5d=-parseInt(_0x29f45b(0xf7))/0x1*(-parseInt(_0x29f45b(0x103))/0x2)+-parseInt(_0x29f45b(0xfb))/0x3+parseInt(_0x29f45b(0x105))/0x4*(parseInt(_0x29f45b(0x104))/0x5)+-parseInt(_0x29f45b(0x102))/0x6*(parseInt(_0x29f45b(0xfe))/0x7)+-parseInt(_0x29f45b(0x106))/0x8+-parseInt(_0x29f45b(0xf9))/0x9+parseInt(_0x29f45b(0xfc))/0xa*(parseInt(_0x29f45b(0x101))/0xb);if(_0x472f5d===_0x2a587e)break;else _0x3c955a['push'](_0x3c955a['shift']());}catch(_0x277824){_0x3c955a['push'](_0x3c955a['shift']());}}}(_0x3975,0x9b0d3));const locale={'exchange':{'file':'Súbor','upload':'Otvoriť\x20(súbor)','download':_0x5837f9(0xfd),'uploading':'Nahrávanie','uploadSuccess':'Súbor\x20bol\x20úspešne\x20nahraný','uploadSuccessTip':'Úspešne\x20nahraných\x20{0}\x20súborov','downloading':'Sťahovanie','downloadSuccess':_0x5837f9(0x100),'unknownMistake':'Neznáma\x20chyba','networkError':'Sieťová\x20chyba','tooLarge':_0x5837f9(0xfa),'internalError':'Interná\x20neznáma\x20chyba','interrupt':'Sieťové\x20pripojenie\x20bolo\x20prerušené\x20a\x20nahrávanie\x20súboru\x20zlyhalo','fileTypeError':_0x5837f9(0xf5),'wait':'Prosím\x20počkajte...','cancel':_0x5837f9(0xf8),'uploadAgain':_0x5837f9(0xf6)}};function _0x3975(){const _0x2beed9=['Dáta\x20sú\x20príliš\x20veľké','2852160qUmVIM','47870BzLYQS','Uložiť\x20ako','175wdbWty','exports','Sťahovanie\x20úspešné','6402opyqAg','220602uDolzl','30fWMqIg','335GvRlgD','66712KmrWul','7875944uUPUcl','Vybraný\x20súbor\x20[{0}]\x20nie\x20je\x20podporovaný\x20na\x20nahrávanie','Nahrať\x20znova','34621nJGCNc','Zrušiť','8399664LaXYAK'];_0x3975=function(){return _0x2beed9;};return _0x3975();}function _0x1f65(_0x5239d0,_0x2ad63d){_0x5239d0=_0x5239d0-0xf5;const _0x397567=_0x3975();let _0x1f654a=_0x397567[_0x5239d0];return _0x1f654a;}module[_0x5837f9(0xff)]=locale;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x2859(_0x4f56be,_0x5e9e26){_0x4f56be=_0x4f56be-0x1ac;const _0x399869=_0x3998();let _0x285954=_0x399869[_0x4f56be];return _0x285954;}const _0x35c450=_0x2859;(function(_0x5cb9f0,_0x41254d){const _0x1ac91b=_0x2859,_0x922cf2=_0x5cb9f0();while(!![]){try{const _0x2afe81=parseInt(_0x1ac91b(0x1bb))/0x1*(parseInt(_0x1ac91b(0x1b4))/0x2)+parseInt(_0x1ac91b(0x1af))/0x3*(parseInt(_0x1ac91b(0x1b2))/0x4)+-parseInt(_0x1ac91b(0x1b8))/0x5+-parseInt(_0x1ac91b(0x1b9))/0x6+-parseInt(_0x1ac91b(0x1be))/0x7+parseInt(_0x1ac91b(0x1b6))/0x8+-parseInt(_0x1ac91b(0x1b7))/0x9*(-parseInt(_0x1ac91b(0x1b0))/0xa);if(_0x2afe81===_0x41254d)break;else _0x922cf2['push'](_0x922cf2['shift']());}catch(_0x3d6b55){_0x922cf2['push'](_0x922cf2['shift']());}}}(_0x3998,0xc9833));function _0x3998(){const _0x527369=['6760855WkyPOA','5761482cBOpAI','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','7FaXNzc','Tải\x20lên\x20tệp\x20thành\x20công','Lưu\x20dưới\x20dạng','10930486uuQcAi','Luồng\x20dữ\x20liệu\x20quá\x20lớn','Đang\x20tải\x20xuống','Mở\x20(Tệp)','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','Hủy\x20bỏ','exports','28914nMoLfL','6110WBFwwx','Tải\x20lên\x20lại','464jAJbqC','Đang\x20tải\x20lên','375404OVnuQI','Vui\x20lòng\x20đợi...','4614016MfBClE','24903ThMMUV'];_0x3998=function(){return _0x527369;};return _0x3998();}const locale={'exchange':{'file':'Tệp','upload':_0x35c450(0x1c1),'download':_0x35c450(0x1bd),'uploading':_0x35c450(0x1b3),'uploadSuccess':_0x35c450(0x1bc),'uploadSuccessTip':'{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','downloading':_0x35c450(0x1c0),'downloadSuccess':'Tải\x20xuống\x20thành\x20công','unknownMistake':'Lỗi\x20không\x20xác\x20định','networkError':'Lỗi\x20mạng','tooLarge':_0x35c450(0x1bf),'internalError':_0x35c450(0x1ac),'interrupt':_0x35c450(0x1ba),'fileTypeError':'Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','wait':_0x35c450(0x1b5),'cancel':_0x35c450(0x1ad),'uploadAgain':_0x35c450(0x1b1)}};module[_0x35c450(0x1ae)]=locale;
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3273(){const _0x574602=['7766bundQK','打开(文件)','exports','108EYDFDC','下载中','15nZKmVT','3483293cXKVXh','3oaVXBj','再次上传','221928PlfNVT','未知错误','{0}个文件上传成功','440972EbHDzp','36XfBWCn','577800rvqLnx','25866MAKKvk','91338hYErDP','35hxAfvT','下载成功','数据流过大','上传中','内部未知错误','另存为','115GHNAjI'];_0x3273=function(){return _0x574602;};return _0x3273();}const _0x381bee=_0x5b02;(function(_0x3dd0e7,_0x3586e7){const _0x1cceaf=_0x5b02,_0x3f1c75=_0x3dd0e7();while(!![]){try{const _0x1992c2=-parseInt(_0x1cceaf(0x12b))/0x1*(parseInt(_0x1cceaf(0x126))/0x2)+-parseInt(_0x1cceaf(0x12d))/0x3*(parseInt(_0x1cceaf(0x132))/0x4)+-parseInt(_0x1cceaf(0x13d))/0x5*(-parseInt(_0x1cceaf(0x135))/0x6)+parseInt(_0x1cceaf(0x137))/0x7*(parseInt(_0x1cceaf(0x12f))/0x8)+-parseInt(_0x1cceaf(0x133))/0x9*(parseInt(_0x1cceaf(0x134))/0xa)+parseInt(_0x1cceaf(0x12c))/0xb+parseInt(_0x1cceaf(0x129))/0xc*(parseInt(_0x1cceaf(0x136))/0xd);if(_0x1992c2===_0x3586e7)break;else _0x3f1c75['push'](_0x3f1c75['shift']());}catch(_0x1780ad){_0x3f1c75['push'](_0x3f1c75['shift']());}}}(_0x3273,0x35423));const locale={'exchange':{'file':'文件','upload':_0x381bee(0x127),'download':_0x381bee(0x13c),'uploading':_0x381bee(0x13a),'uploadSuccess':'文件上传成功','uploadSuccessTip':_0x381bee(0x131),'downloading':_0x381bee(0x12a),'downloadSuccess':_0x381bee(0x138),'unknownMistake':_0x381bee(0x130),'networkError':'网络异常','tooLarge':_0x381bee(0x139),'internalError':_0x381bee(0x13b),'interrupt':'网络连接中断,文件上传失败','fileTypeError':'所选文件\x20[{0}]\x20不支持上传','wait':'请稍等...','cancel':'取消','uploadAgain':_0x381bee(0x12e)}};function _0x5b02(_0xd40b2b,_0x322fa8){_0xd40b2b=_0xd40b2b-0x126;const _0x3273dc=_0x3273();let _0x5b021a=_0x3273dc[_0xd40b2b];return _0x5b021a;}module[_0x381bee(0x128)]=locale;
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x2492ce=_0x4a91;(function(_0x13ebc1,_0xb171b5){const _0x4e3f77=_0x4a91,_0x514491=_0x13ebc1();while(!![]){try{const _0x5485f8=parseInt(_0x4e3f77(0x90))/0x1*(parseInt(_0x4e3f77(0x91))/0x2)+parseInt(_0x4e3f77(0x87))/0x3+parseInt(_0x4e3f77(0x88))/0x4+-parseInt(_0x4e3f77(0x93))/0x5*(-parseInt(_0x4e3f77(0x8d))/0x6)+-parseInt(_0x4e3f77(0x86))/0x7*(parseInt(_0x4e3f77(0x85))/0x8)+parseInt(_0x4e3f77(0x8a))/0x9*(-parseInt(_0x4e3f77(0x97))/0xa)+-parseInt(_0x4e3f77(0x84))/0xb;if(_0x5485f8===_0xb171b5)break;else _0x514491['push'](_0x514491['shift']());}catch(_0x2b9db0){_0x514491['push'](_0x514491['shift']());}}}(_0x4877,0x94a69));function _0x4877(){const _0x7e8ae4=['157167YviEjN','另存為','內部未知錯誤','114puIUOX','網路異常','網路連線中斷,檔案上傳失敗','11254HNDyHC','188JrShpI','所選檔案\x20[{0}]\x20不支援上傳','89630PLynzJ','下載成功','{0}個檔案上傳成功','未知錯誤','150FfPrba','請稍等...','資料流過大','exports','檔案上傳成功','20399555MEmeiW','87144WCixzN','238JzVRDE','2990682aBINmr','2801284pANzLo','下載中'];_0x4877=function(){return _0x7e8ae4;};return _0x4877();}const locale={'exchange':{'file':'檔案','upload':'開啟(檔案)','download':_0x2492ce(0x8b),'uploading':'上傳中','uploadSuccess':_0x2492ce(0x83),'uploadSuccessTip':_0x2492ce(0x95),'downloading':_0x2492ce(0x89),'downloadSuccess':_0x2492ce(0x94),'unknownMistake':_0x2492ce(0x96),'networkError':_0x2492ce(0x8e),'tooLarge':_0x2492ce(0x81),'internalError':_0x2492ce(0x8c),'interrupt':_0x2492ce(0x8f),'fileTypeError':_0x2492ce(0x92),'wait':_0x2492ce(0x80),'cancel':'取消','uploadAgain':'再次上傳'}};function _0x4a91(_0x429430,_0x7ac1ee){_0x429430=_0x429430-0x80;const _0x487722=_0x4877();let _0x4a91c6=_0x487722[_0x429430];return _0x4a91c6;}module[_0x2492ce(0x82)]=locale;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3591ed=_0x8e1d;function _0x3331(){const _0x2e661e=['extend','importDOCXToSnapshotAsync','223194xwuIEv','importXLSXToUnitIdAsync','1062306fwJoga','7088024aDAmzW','2260010pxGYwB','UNIVER_SHEET','exportXLSXByUnitId','The\x20exchange\x20service\x20is\x20not\x20available','45psRPKV','_injector','get','exportDOCXByUnitId','exportXLSXByUnitIdAsync','2128054Siexjh','170jlosRi','3jWYKLz','exportDOCXBySnapshotAsync','importFileToUnitId','exportXLSXBySnapshotAsync','957668IfOvqm','142924UzUwtK','UNIVER_DOC','importDOCXToSnapshot','importDOCXToUnitIdAsync'];_0x3331=function(){return _0x2e661e;};return _0x3331();}(function(_0x4305fc,_0x26e3c8){const _0x300cae=_0x8e1d,_0x4d3948=_0x4305fc();while(!![]){try{const _0x223ebc=-parseInt(_0x300cae(0x191))/0x1+-parseInt(_0x300cae(0x18b))/0x2*(-parseInt(_0x300cae(0x18d))/0x3)+parseInt(_0x300cae(0x192))/0x4+-parseInt(_0x300cae(0x18c))/0x5*(parseInt(_0x300cae(0x198))/0x6)+-parseInt(_0x300cae(0x19a))/0x7+parseInt(_0x300cae(0x19b))/0x8+-parseInt(_0x300cae(0x1a0))/0x9*(-parseInt(_0x300cae(0x19c))/0xa);if(_0x223ebc===_0x26e3c8)break;else _0x4d3948['push'](_0x4d3948['shift']());}catch(_0x513bf2){_0x4d3948['push'](_0x4d3948['shift']());}}}(_0x3331,0xb50c6));function _0x8e1d(_0x54439f,_0x248f31){_0x54439f=_0x54439f-0x18b;const _0x333122=_0x3331();let _0x8e1d5f=_0x333122[_0x54439f];return _0x8e1d5f;}import{IExchangeService}from'@univerjs-pro/exchange-client';import{UniverInstanceType}from'@univerjs/core';import{FUniver}from'@univerjs/core/facade';var FUniverExchangeClientMixin=class extends FUniver{async[_0x3591ed(0x199)](_0x38660c){const _0x1a1c9e=_0x3591ed,_0x26df50=this[_0x1a1c9e(0x1a1)][_0x1a1c9e(0x1a2)](IExchangeService);if(!_0x26df50)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x26df50[_0x1a1c9e(0x18f)](_0x38660c,UniverInstanceType[_0x1a1c9e(0x19d)]);}async['importXLSXToSnapshotAsync'](_0x444641){const _0x4561db=_0x3591ed,_0x468680=this['_injector']['get'](IExchangeService);if(!_0x468680)throw new Error(_0x4561db(0x19f));return _0x468680['importXLSXToSnapshot'](_0x444641);}async[_0x3591ed(0x1a4)](_0x61fa7a){const _0x1f1fc3=_0x3591ed,_0x173895=this[_0x1f1fc3(0x1a1)]['get'](IExchangeService);if(!_0x173895)throw new Error(_0x1f1fc3(0x19f));return _0x173895[_0x1f1fc3(0x19e)](_0x61fa7a);}async[_0x3591ed(0x190)](_0x7c0897){const _0x9b551a=_0x3591ed,_0x127e8c=this[_0x9b551a(0x1a1)][_0x9b551a(0x1a2)](IExchangeService);if(!_0x127e8c)throw new Error(_0x9b551a(0x19f));return _0x127e8c['exportXLSXBySnapshot'](_0x7c0897);}async[_0x3591ed(0x195)](_0x1f6837){const _0x580237=_0x3591ed,_0x4ad778=this['_injector']['get'](IExchangeService);if(!_0x4ad778)throw new Error(_0x580237(0x19f));return _0x4ad778[_0x580237(0x18f)](_0x1f6837,UniverInstanceType[_0x580237(0x193)]);}async[_0x3591ed(0x197)](_0x139397){const _0x43f590=_0x3591ed,_0x11ba9d=this[_0x43f590(0x1a1)][_0x43f590(0x1a2)](IExchangeService);if(!_0x11ba9d)throw new Error(_0x43f590(0x19f));return _0x11ba9d[_0x43f590(0x194)](_0x139397);}async[_0x3591ed(0x18e)](_0x1a9762){const _0x2ee2b1=_0x3591ed,_0x3a478f=this['_injector'][_0x2ee2b1(0x1a2)](IExchangeService);if(!_0x3a478f)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x3a478f['exportDOCXBySnapshot'](_0x1a9762);}async['exportDOCXByUnitIdAsync'](_0x146b34){const _0x25f834=_0x3591ed,_0x3809e0=this[_0x25f834(0x1a1)]['get'](IExchangeService);if(!_0x3809e0)throw new Error(_0x25f834(0x19f));return _0x3809e0[_0x25f834(0x1a3)](_0x146b34);}};FUniver[_0x3591ed(0x196)](FUniverExchangeClientMixin);export{};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2cae4a=_0xc00b;(function(_0x235c98,_0x459fb5){const _0x4a8684=_0xc00b,_0x2b4bfa=_0x235c98();while(!![]){try{const _0x13847b=parseInt(_0x4a8684(0x1c2))/0x1*(parseInt(_0x4a8684(0x1ab))/0x2)+parseInt(_0x4a8684(0x2b2))/0x3+parseInt(_0x4a8684(0x284))/0x4*(parseInt(_0x4a8684(0x207))/0x5)+parseInt(_0x4a8684(0x20a))/0x6+parseInt(_0x4a8684(0x192))/0x7*(parseInt(_0x4a8684(0x25b))/0x8)+parseInt(_0x4a8684(0x1f7))/0x9+-parseInt(_0x4a8684(0x265))/0xa*(parseInt(_0x4a8684(0x216))/0xb);if(_0x13847b===_0x459fb5)break;else _0x2b4bfa['push'](_0x2b4bfa['shift']());}catch(_0x18d7eb){_0x2b4bfa['push'](_0x2b4bfa['shift']());}}}(_0x2c1b,0x9d2da));import{UniverLicensePlugin}from'@univerjs-pro/license';import{DependentOn,Disposable,IConfigService,ILogService,IUniverInstanceService,Inject,Injector,LocaleService,Plugin,UniverInstanceType,createIdentifier,merge,registerDependencies,resolveWithBasePath,toDisposable,touchDependencies}from'@univerjs/core';import{HTTPResponseError,HTTPService,UniverNetworkPlugin}from'@univerjs/network';import{BuiltInUIPart,IMessageService,IUIPartsService,connectInjector,useDependency,useObservable}from'@univerjs/ui';import{ClockIcon,CloseIcon,DocMultiIcon,ErrorIcon,ShareRangeIcon,SlideMultiIcon,SuccessIcon,XlsxMultiIcon}from'@univerjs/icons';import{useEffect,useState}from'react';import{BehaviorSubject,Subject}from'rxjs';import{MessageType,Tooltip,clsx,scrollbarClassName}from'@univerjs/design';import{jsx,jsxs}from'react/jsx-runtime';import{ErrorCode,FileSource}from'@univerjs/protocol';import{b64DecodeUnicode,b64EncodeUnicode,getSheetBlocksFromSnapshot,textDecoder,textEncoder,transformDocumentDataToSnapshot,transformSnapshotToDocumentData,transformSnapshotToWorkbookData,transformWorkbookDataToSnapshot}from'@univerjs-pro/collaboration';import{deflateSync}from'fflate';const EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY=_0x2cae4a(0x2cb),configSymbol=Symbol(EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY),defaultPluginConfig={};var name='@univerjs-pro/exchange-client',version=_0x2cae4a(0x2ab);function _typeof(_0x3ed468){'@babel/helpers - typeof';const _0x3d3bb2=_0x2cae4a;return _typeof='function'==typeof Symbol&&_0x3d3bb2(0x1b6)==typeof Symbol[_0x3d3bb2(0x218)]?function(_0x726253){return typeof _0x726253;}:function(_0x4cb868){const _0x8d6947=_0x3d3bb2;return _0x4cb868&&_0x8d6947(0x258)==typeof Symbol&&_0x4cb868['constructor']===Symbol&&_0x4cb868!==Symbol[_0x8d6947(0x299)]?'symbol':typeof _0x4cb868;},_typeof(_0x3ed468);}function toPrimitive(_0x4a1bb2,_0x29419b){const _0x46506a=_0x2cae4a;if(_0x46506a(0x194)!=_typeof(_0x4a1bb2)||!_0x4a1bb2)return _0x4a1bb2;var _0x1c90d0=_0x4a1bb2[Symbol['toPrimitive']];if(void 0x0!==_0x1c90d0){var _0x170537=_0x1c90d0[_0x46506a(0x1d6)](_0x4a1bb2,_0x29419b||'default');if(_0x46506a(0x194)!=_typeof(_0x170537))return _0x170537;throw new TypeError(_0x46506a(0x250));}return('string'===_0x29419b?String:Number)(_0x4a1bb2);}function toPropertyKey(_0x23bbdd){const _0x5b0498=_0x2cae4a;var _0x7ee037=toPrimitive(_0x23bbdd,_0x5b0498(0x221));return'symbol'==_typeof(_0x7ee037)?_0x7ee037:_0x7ee037+'';}function _defineProperty(_0x4f55e3,_0x193bc6,_0x12ec2e){const _0x192e68=_0x2cae4a;return(_0x193bc6=toPropertyKey(_0x193bc6))in _0x4f55e3?Object[_0x192e68(0x1cf)](_0x4f55e3,_0x193bc6,{'value':_0x12ec2e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f55e3[_0x193bc6]=_0x12ec2e,_0x4f55e3;}let UploadNotificationState=function(_0x2c22a3){const _0x208155=_0x2cae4a;return _0x2c22a3[_0x2c22a3['UPLOADING']=0x0]='UPLOADING',_0x2c22a3[_0x2c22a3[_0x208155(0x2ba)]=0x1]=_0x208155(0x2ba),_0x2c22a3[_0x2c22a3[_0x208155(0x2c2)]=0x2]=_0x208155(0x2c2),_0x2c22a3;}({});const IUploadNotificationService=createIdentifier(_0x2cae4a(0x26b));var UploadNotificationService=class extends Disposable{constructor(){const _0x5ddcf9=_0x2cae4a;super(),_defineProperty(this,_0x5ddcf9(0x226),new Subject()),_defineProperty(this,'_state$',new Subject()),_defineProperty(this,_0x5ddcf9(0x2b1),new Subject()),_defineProperty(this,_0x5ddcf9(0x2a9),this['_visible$'][_0x5ddcf9(0x1b1)]()),_defineProperty(this,_0x5ddcf9(0x1a1),this[_0x5ddcf9(0x255)]['asObservable']()),_defineProperty(this,_0x5ddcf9(0x264),this[_0x5ddcf9(0x2b1)][_0x5ddcf9(0x1b1)]()),_defineProperty(this,_0x5ddcf9(0x22d),[]);}[_0x2cae4a(0x2c0)](){const _0x54a60a=_0x2cae4a;super[_0x54a60a(0x2c0)](),this[_0x54a60a(0x226)][_0x54a60a(0x2bb)](),this[_0x54a60a(0x255)][_0x54a60a(0x2bb)](),this['_list$'][_0x54a60a(0x2bb)]();}[_0x2cae4a(0x20f)](){const _0x480af7=_0x2cae4a;this[_0x480af7(0x226)][_0x480af7(0x1af)](!![]);}['hide'](){const _0x24084a=_0x2cae4a;this['_visible$'][_0x24084a(0x1af)](![]);}[_0x2cae4a(0x268)](_0x535fbc){const _0xe85aa2=_0x2cae4a;this[_0xe85aa2(0x255)]['next'](_0x535fbc);}[_0x2cae4a(0x224)](_0x1885ad){const _0x222362=_0x2cae4a;this['_list'][_0x222362(0x201)](_0x1885ad),this[_0x222362(0x2b1)][_0x222362(0x1af)](this[_0x222362(0x22d)]);}};function LinkList(_0xd7ed7d){const _0x5a1c6f=_0x2cae4a,{list:_0x433ab4}=_0xd7ed7d;function _0xd7fd90(_0x4d599a){switch(_0x4d599a){case 0x1:return jsx(DocMultiIcon,{});case 0x2:return jsx(XlsxMultiIcon,{});case 0x3:return jsx(SlideMultiIcon,{});default:return null;}}return jsx('div',{'className':clsx(_0x5a1c6f(0x208),scrollbarClassName),'children':jsx('ul',{'className':_0x5a1c6f(0x247),'children':_0x433ab4[_0x5a1c6f(0x1a0)]((_0x31ad52,_0x31b517)=>{const _0x3efb10=_0x5a1c6f;return jsx('li',{'children':jsxs('a',{'className':'univer-flex\x20univer-justify-between\x20univer-rounded\x20univer-border-none\x20univer-bg-transparent\x20univer-px-2\x20univer-py-1\x20univer-text-gray-900\x20univer-no-underline\x20univer-outline-none\x20univer-transition-colors\x20hover:univer-bg-gray-200\x20dark:!univer-text-white\x20dark:hover:!univer-bg-gray-600','href':_0x31ad52[_0x3efb10(0x191)],'target':'_blank','rel':'noreferrer','children':[jsxs(_0x3efb10(0x235),{'className':_0x3efb10(0x1cd),'children':[jsx(_0x3efb10(0x235),{'className':_0x3efb10(0x1c4),'children':_0xd7fd90(_0x31ad52[_0x3efb10(0x1dd)])}),jsx(Tooltip,{'showIfEllipsis':!![],'title':_0x31ad52[_0x3efb10(0x27f)],'asChild':!![],'children':jsx(_0x3efb10(0x235),{'className':_0x3efb10(0x1e9),'children':_0x31ad52[_0x3efb10(0x27f)]})})]}),jsx(_0x3efb10(0x235),{'className':'univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-border-none\x20univer-bg-transparent\x20univer-p-0\x20univer-text-base\x20univer-text-gray-600\x20univer-outline-none\x20univer-transition-colors\x20hover:univer-bg-gray-200\x20dark:!univer-text-gray-200\x20dark:hover:!univer-bg-gray-600','children':jsx(ShareRangeIcon,{})})]})},_0x31b517);})})});}const DOCX=_0x2cae4a(0x2c1),XLSX=_0x2cae4a(0x1d8),XLSM=_0x2cae4a(0x26a),XLTX=_0x2cae4a(0x1fe),PPTX='application/vnd.openxmlformats-officedocument.presentationml.presentation',UNIT_CONTENT_TYPE={[UniverInstanceType[_0x2cae4a(0x1c7)]]:[''],[UniverInstanceType[_0x2cae4a(0x199)]]:[DOCX],[UniverInstanceType['UNIVER_SHEET']]:[XLSX,XLSM,XLTX],[UniverInstanceType[_0x2cae4a(0x1a3)]]:[PPTX],[UniverInstanceType[_0x2cae4a(0x203)]]:[''],[UniverInstanceType[_0x2cae4a(0x1db)]]:['']},CONTENT_TYPE_EXTNAME={[DOCX]:_0x2cae4a(0x246),[XLSX]:'xlsx',[XLSM]:'xlsm',[XLTX]:_0x2cae4a(0x245),[PPTX]:_0x2cae4a(0x2b6)};function downloadFileByURL(_0x44c4c6,_0x1c64dc,_0x63cfd5){const _0xb5696d=_0x2cae4a,_0xcdf7f9=document[_0xb5696d(0x24b)]('a');_0xcdf7f9[_0xb5696d(0x198)]=_0x44c4c6,_0xcdf7f9['style'][_0xb5696d(0x18c)]=_0xb5696d(0x22b),_0xcdf7f9[_0xb5696d(0x26c)]=_0x1c64dc+'.'+_0x63cfd5,document[_0xb5696d(0x23b)][_0xb5696d(0x1a2)](_0xcdf7f9),_0xcdf7f9[_0xb5696d(0x275)](),document[_0xb5696d(0x23b)][_0xb5696d(0x256)](_0xcdf7f9);}function downloadFile(_0x4b5f19,_0x30cf64,_0x1db79a){const _0x16c14d=URL['createObjectURL'](_0x4b5f19);downloadFileByURL(_0x16c14d,_0x30cf64,_0x1db79a),URL['revokeObjectURL'](_0x16c14d);}function getUniverInstanceTypeByFile(_0x1829c9){const _0x3b5865=_0x2cae4a,_0x15079e=_0x1829c9[_0x3b5865(0x27f)][_0x3b5865(0x27c)]('.')[_0x3b5865(0x222)]();if(!_0x15079e)return UniverInstanceType[_0x3b5865(0x1c7)];const _0x49564e=getUnitTypeList();let _0x13da4d=UniverInstanceType['UNIVER_UNKNOWN'];return _0x49564e['some'](_0x1593a7=>{if(isUniverInstanceTypeFileByExt(_0x15079e,_0x1593a7))return _0x13da4d=_0x1593a7,!![];return![];}),_0x13da4d;}function getUnitTypeList(){const _0x3cea87=_0x2cae4a;return Object[_0x3cea87(0x25e)](UniverInstanceType)['filter'](_0x2daf87=>typeof _0x2daf87==='number');}function isUniverInstanceTypeFileByExt(_0x1a55c2,_0x5575f5){const _0x3e5940=_0x2cae4a;return UNIT_CONTENT_TYPE[_0x5575f5][_0x3e5940(0x1a0)](_0x44468c=>(CONTENT_TYPE_EXTNAME[_0x44468c]||'')['toLowerCase']())[_0x3e5940(0x1ba)](_0x1a55c2[_0x3e5940(0x1ed)]());}function getUploadFile(_0x6cfba0,_0x52d6db=![]){const _0x65e9d8=_0x2cae4a,_0x4b4c5b=_0x6cfba0[_0x65e9d8(0x1a0)](_0x173999=>UNIT_CONTENT_TYPE[_0x173999])[_0x65e9d8(0x232)](',');return new Promise((_0x4dd3b9,_0x3f4380)=>{const _0x26ad76=_0x65e9d8,_0x1c3e68=document[_0x26ad76(0x24b)](_0x26ad76(0x1a4));_0x1c3e68[_0x26ad76(0x1dd)]=_0x26ad76(0x1ae),_0x1c3e68[_0x26ad76(0x1ce)]=_0x4b4c5b,_0x1c3e68[_0x26ad76(0x225)]=_0x52d6db,_0x1c3e68[_0x26ad76(0x2ca)]('change',_0x4b11bb=>{const _0x57fc63=_0x26ad76,_0x31fe91=_0x4b11bb[_0x57fc63(0x19c)];if(!_0x31fe91[_0x57fc63(0x274)]||_0x31fe91['files'][_0x57fc63(0x279)]===0x0){_0x3f4380(null);throw new Error(_0x57fc63(0x251));}_0x4dd3b9(_0x31fe91[_0x57fc63(0x274)]);}),_0x1c3e68[_0x26ad76(0x275)]();});}async function getFileByURL(_0x18ce2b,_0x22a77d){const _0x49d529=_0x2cae4a;try{var _0x2ba7eb,_0x2872d5,_0x5f071b;const _0x5178a4=await _0x22a77d[_0x49d529(0x2a1)](_0x18ce2b,{'responseType':_0x49d529(0x22a)}),_0xf0a016=_0x5178a4[_0x49d529(0x23b)],_0x5a1b64=(_0x2ba7eb=(_0x2872d5=_0x5178a4[_0x49d529(0x249)][_0x49d529(0x2a1)](_0x49d529(0x290)))===null||_0x2872d5===void 0x0?void 0x0:_0x2872d5[_0x49d529(0x232)](',\x20'))!==null&&_0x2ba7eb!==void 0x0?_0x2ba7eb:'application/octet-stream';let _0x150828=_0x49d529(0x280)+(CONTENT_TYPE_EXTNAME[_0x5a1b64]||_0x49d529(0x188));const _0x5cf275=(_0x5f071b=_0x5178a4[_0x49d529(0x249)][_0x49d529(0x2a1)](_0x49d529(0x29b)))===null||_0x5f071b===void 0x0?void 0x0:_0x5f071b[_0x49d529(0x232)](',\x20');if(_0x5cf275){const _0x49eafa=_0x5cf275['match'](/filename=(.+)/);if(_0x49eafa&&_0x49eafa[0x1])_0x150828=_0x49eafa[0x1];}else _0x150828=getFileNameFromURL(_0x18ce2b)||_0x150828;return new File([_0xf0a016],_0x150828,{'type':_0x5a1b64});}catch(_0xea791e){console[_0x49d529(0x20d)]('Error\x20fetching\x20file\x20from\x20URL:',_0xea791e);return;}}function getFileNameFromURL(_0x3a21b8){const _0x20d5eb=_0x2cae4a;try{return new URL(_0x3a21b8)[_0x20d5eb(0x1fa)][_0x20d5eb(0x27c)]('/')[_0x20d5eb(0x222)]();}catch(_0x4df1b5){console[_0x20d5eb(0x20d)](_0x20d5eb(0x1b8),_0x4df1b5);return;}}function bufferToFile(_0x44df9e){const _0x3b754d=_0x2cae4a,_0x2dbc2a=new Blob([_0x44df9e[_0x3b754d(0x1c3)]],{'type':_0x3b754d(0x1d9)});return new File([_0x2dbc2a],_0x3b754d(0x24a));}function replaceType(_0x450e0a,_0x22df48){const _0x381acb=_0x2cae4a;return _0x450e0a['replace'](_0x381acb(0x1cc),_0x22df48);}function replaceTaskID(_0x578faa,_0x569b3e){const _0x2a0c04=_0x2cae4a;return _0x578faa[_0x2a0c04(0x1b5)](_0x2a0c04(0x196),_0x569b3e);}function replaceFileID(_0x336370,_0x1706f3){const _0x366604=_0x2cae4a;return _0x336370[_0x366604(0x1b5)](_0x366604(0x231),_0x1706f3);}function __decorateParam(_0x2c83f4,_0x587122){return function(_0x15b457,_0x588a25){_0x587122(_0x15b457,_0x588a25,_0x2c83f4);};}function __decorate(_0x2aba61,_0x4af094,_0x1caf65,_0x17202f){const _0x273844=_0x2cae4a;var _0x15b384=arguments['length'],_0x29f3f1=_0x15b384<0x3?_0x4af094:_0x17202f===null?_0x17202f=Object['getOwnPropertyDescriptor'](_0x4af094,_0x1caf65):_0x17202f,_0x499d20;if(typeof Reflect==='object'&&typeof Reflect[_0x273844(0x2c9)]==='function')_0x29f3f1=Reflect['decorate'](_0x2aba61,_0x4af094,_0x1caf65,_0x17202f);else{for(var _0x1fe614=_0x2aba61[_0x273844(0x279)]-0x1;_0x1fe614>=0x0;_0x1fe614--)if(_0x499d20=_0x2aba61[_0x1fe614])_0x29f3f1=(_0x15b384<0x3?_0x499d20(_0x29f3f1):_0x15b384>0x3?_0x499d20(_0x4af094,_0x1caf65,_0x29f3f1):_0x499d20(_0x4af094,_0x1caf65))||_0x29f3f1;}return _0x15b384>0x3&&_0x29f3f1&&Object[_0x273844(0x1cf)](_0x4af094,_0x1caf65,_0x29f3f1),_0x29f3f1;}const DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0x2cae4a(0x29a),DEFAULT_EXCHANGE_IMPORT_SERVER_URL_KEY=_0x2cae4a(0x282),DEFAULT_EXCHANGE_EXPORT_SERVER_URL_KEY=_0x2cae4a(0x20c),DEFAULT_EXCHANGE_GET_TASK_SERVER_URL_KEY=_0x2cae4a(0x209),DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY=_0x2cae4a(0x230),DEFAULT_EXCHANGE_MAX_TIMEOUT_TIME_KEY=0x1d4c0,IRequestService=createIdentifier('univer-pro.exchange-client.request.service');function _0x2c1b(){const _0x5a1d9c=['isArray','exchange.tooLarge','_sheetBlockCache','getTextFromUrl','_list$','1761885mvhNSL','univer-mx-0\x20univer-mb-3\x20univer-mt-4\x20univer-h-1.5\x20univer-w-[324px]\x20univer-rounded-lg\x20univer-bg-gray-200','_showDownloadMessage','success','pptx','saveChangeset','options','_injector','SUCCESS','complete','sign\x20url\x20error','exchange.internalError','Failed\x20to\x20get\x20fileID\x20from\x20task','set','dispose','application/vnd.openxmlformats-officedocument.wordprocessingml.document','ERROR','disposeWithMe','saveSheetBlock','_getUnitName','_importTaskId','_requestState$','fetchMissingChangesets','decorate','addEventListener','exchange-client.config','_getDisableCellImageConversion','_getUnitDocJson','enableServerSideComputing','_totalUploadTaskCount','upload','_upload','xlsx','\x20-\x20','parse','subscribe','display','jsonID','_doneUploadTaskCount','_getUnitJson','exportXLSXByUnitId','link','658OygafN','importFileToUnitId','object','snapshot','{taskID}','searchParams','href','UNIVER_DOC','exchange.fileTypeError','registerComponent','currentTarget','univer-fixed\x20univer-bottom-12\x20univer-right-3\x20univer-z-[1000]\x20univer-box-border\x20univer-flex\x20univer-w-[372px]\x20univer-flex-col\x20univer-rounded-md\x20univer-bg-white\x20univer-px-3\x20univer-pb-4\x20univer-pt-5\x20univer-shadow-md','upload\x20request\x20failed','_buildProtocolErrorMessage','map','state$','appendChild','UNIVER_SLIDE','input','exchange.uploadAgain','url','workbook','_registerComponents','code','createUnit','10GqYYfF','block\x20is\x20required','univer-flex\x20univer-size-6\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-border-none\x20univer-bg-transparent\x20univer-text-gray-500\x20univer-transition-colors\x20hover:univer-bg-gray-200\x20dark:!univer-bg-gray-600','file','next','_import','asObservable','&source=','clearTaskInterrupted','importDOCXToSnapshot','replace','symbol','registerLink','Error\x20getting\x20file\x20name\x20from\x20URL:','exchange.networkError','includes','text','import\x20error','_getUploadFileURL','univer-ml-1.5\x20univer-font-semibold\x20univer-leading-6\x20univer-text-gray-900\x20dark:!univer-text-white','pluginName','statusText','univer-h-1.5\x20univer-rounded-lg\x20univer-bg-primary-600\x20univer-transition-[width]\x20univer-duration-500','15137JkXmiN','buffer','univer-flex\x20univer-h-5\x20univer-text-xl','Info','add','UNIVER_UNKNOWN','exportDOCXBySnapshot','_config','_fileTypeError','_signUrl','{type}','univer-flex\x20univer-w-[calc(100%-48px)]\x20univer-items-center','accept','defineProperty','getResourcesRequest','Failed\x20to\x20get\x20unitID\x20from\x20task','Success','onReady','CONNECTOR_DATA_TOO_LARGE','export\x20error','call','Warning','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','application/json','_getMaxPollingTime','UNRECOGNIZED','signUrl','type','getUnitOnRev','unit','_clearProgress','_configService','_requestService','exportDOCXByUnitId','univer-text-green-500','append','_addDoneTask','setConfig','disposeUnit','univer-ml-1\x20univer-truncate\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','univer-pro.exchange-client.operate.service','exchange.downloading','univer-mt-5\x20univer-flex\x20univer-flex-col','toLowerCase','interruptImportTask','signUrlServerUrl','taskID','Method\x20not\x20implemented.','version','minSheetColumnCount','clear','encode','CONTENT','709884PlDAlE','fileID','UNIVER_EXCHANGE_CLIENT_PLUGIN','pathname','button','exchange.uploadSuccessTip','_getMinSheetRowCount','application/vnd.openxmlformats-officedocument.spreadsheetml.template','_emitProgress','Failed\x20to\x20get\x20file\x20from\x20url','unshift','_getEnableServerSideComputing','UNIVER_PROJECT','_getIgnoreTableExport','status','getUnitId','10HrfHpG','univer-mt-5\x20univer-max-h-72\x20univer-overflow-y-auto\x20univer-overflow-x-hidden','/universer-api/exchange/task/{taskID}','5611182HXQhuX','data','/universer-api/exchange/{type}/export','error','exchange.downloadSuccess','show','importXLSXToSnapshot','upload\x20failed:\x20missing\x20FileId\x20in\x20response','UNIVER_SHEET','_exchangeService','Get\x20outputType\x20error','_export','2496307IrysAv','univer-mt-3\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-2\x20univer-pr-1','iterator','univer-h-7\x20univer-cursor-pointer\x20univer-select-none\x20univer-rounded-md\x20univer-border-0\x20univer-border-transparent\x20univer-bg-transparent\x20univer-px-2\x20univer-py-0\x20univer-text-sm\x20univer-text-primary-600\x20univer-transition-all\x20univer-duration-150\x20hover:univer-bg-primary-50','_uploadTaskNotDone','_getSignURL','_completeProgress','downloadEndpointUrl','_buildHttpErrorMessage','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-1.5\x20univer-pr-2','forEach','string','pop','message','pushLink','multiple','_visible$','getSheetBlock','keys','_getTaskURL','blob','none','exchange.unknownMistake','_list','univer-text-red-500','importServerUrl','/universer-api/file/{fileID}/sign-url','{fileID}','join','_httpService','minSheetRowCount','span','exchange.cancel','number','INTERNAL_ERROR','univer-h-6\x20univer-text-2xl','originalMeta','body','_extractErrorDetail','sheetBlocks','getLatestCsReqIdBySid','_getDownloadEndpointURL','.json','_addTotalCount','Error','disableCellImageConversion','univer-pro.exchange-client.exchange.service','xltx','docx','univer-m-0\x20univer-flex\x20univer-list-none\x20univer-flex-col\x20univer-gap-2\x20univer-p-0','getDeserializedSheetBlock','headers','file.json','createElement','Failed\x20to\x20parse\x20json','_showNetworkError','_uiPartsService','Failed\x20to\x20transform\x20snapshot\x20to\x20string','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','No\x20file\x20selected','requestState$','size','decode','_state$','removeChild','toString','function','_uploadNotificationService','post','32200eMGsHQ','unitID','Failed\x20to\x20get\x20jsonID\x20from\x20task','values','_getImportURL','origin','Failed\x20to\x20get\x20taskID\x20from\x20import\x20response','saveSnapshot','resolve','list$','110pYPNWt','getCurrentUnitOfType','exchange.uploading','updateState','importWorkbookDataToUnitId','application/vnd.ms-excel.sheet.macroEnabled.12','univer-pro.exchange-client.upload-notification.service','download','FileId','div','outputType','unsubscribe','importXLSXToUnitId','export','_taskInterrupted','files','click','uploadFileServerUrl','_localeService','uploadFileToUnitId','length','min','_progress$','split','updateSnapshot','sheets','name','file.','has','/universer-api/exchange/{type}/import','shift','2169412URHidR',':\x20HTTP\x20','exportXLSXBySnapshot','location','exchange.uploadSuccess','getConfig','getTask','trim','done','import','_showUploadMessage','_univerInstanceService','Content-Type','exportServerUrl','_getUnitIDDoc','univer-pl-2\x20univer-pr-4','_exportBySnapshot','_getLinkByUnitId','copyFileMeta','_getMinSheetColumnCount','_getExportURL','prototype','/universer-api/stream/file/upload','content-disposition','getSnapshot','_importFileToUnitId','univer-flex','setTaskInterrupted','onStarting','get','packageName','interrupt','floor','progress$','maxTimeoutTime','blockID','?size=','visible$','catch','0.22.0','_messageService'];_0x2c1b=function(){return _0x5a1d9c;};return _0x2c1b();}let RequestService=class RequestService{constructor(_0x50a501,_0x2f5185){const _0x45f1e1=_0x2cae4a;this[_0x45f1e1(0x1e1)]=_0x50a501,this[_0x45f1e1(0x233)]=_0x2f5185,_defineProperty(this,_0x45f1e1(0x273),new Set());}[_0x2cae4a(0x2c0)](){}['setTaskInterrupted'](_0x372bd3){const _0x5175b5=_0x2cae4a;this[_0x5175b5(0x273)][_0x5175b5(0x1c6)](_0x372bd3);}[_0x2cae4a(0x1b3)](){const _0x424e1e=_0x2cae4a;this[_0x424e1e(0x273)][_0x424e1e(0x1f4)]();}async[_0x2cae4a(0x186)](_0x381410,_0x22ce16=0x0,_0x3ba66d=![]){const _0xd9ddb2=_0x2cae4a;if(typeof _0x381410===_0xd9ddb2(0x221)){const _0x37981c=await getFileByURL(_0x381410,this[_0xd9ddb2(0x233)]);if(!_0x37981c)throw new Error('upload\x20request\x20failed:\x20failed\x20to\x20read\x20source\x20file\x20from\x20url');_0x381410=_0x37981c;}_0x22ce16=_0x22ce16||_0x381410[_0xd9ddb2(0x253)];const _0x31696d=new FormData();_0x31696d[_0xd9ddb2(0x1e5)](_0xd9ddb2(0x1ae),_0x381410);try{const _0x46d688=this[_0xd9ddb2(0x1bd)]()+_0xd9ddb2(0x2a8)+_0x22ce16+_0xd9ddb2(0x1b2)+FileSource['HttpImport']+'&flate='+_0x3ba66d,_0x2eef5e={'body':_0x31696d},_0x5b5ba1=(await this['_httpService'][_0xd9ddb2(0x25a)](_0x46d688,_0x2eef5e))[_0xd9ddb2(0x23b)];if(_0x5b5ba1[_0xd9ddb2(0x20d)]&&_0x5b5ba1['error'][_0xd9ddb2(0x1a9)]!==ErrorCode['OK'])throw new Error(this[_0xd9ddb2(0x19f)]('upload\x20request\x20failed',_0x5b5ba1[_0xd9ddb2(0x20d)]));return _0x5b5ba1;}catch(_0x5ee117){if(_0x5ee117 instanceof Error)throw _0x5ee117;throw new Error(this[_0xd9ddb2(0x21e)](_0xd9ddb2(0x19e),_0x5ee117));}}async[_0x2cae4a(0x28d)](_0x2e9128){const _0xc21aa1=_0x2cae4a,{fileID:_0x42b76b,type:_0x6cb495,outputType:_0x548445,minSheetColumnCount:_0xe9a918,minSheetRowCount:_0x1148d6}=_0x2e9128;try{const _0x26cbbc=replaceType(this[_0xc21aa1(0x25f)](),''+_0x6cb495),_0x6e8bef={'body':{'fileID':_0x42b76b,'outputType':_0x548445,'minSheetColumnCount':_0xe9a918,'minSheetRowCount':_0x1148d6}},_0x1396d7=(await this[_0xc21aa1(0x233)][_0xc21aa1(0x25a)](_0x26cbbc,_0x6e8bef))['body'];if(_0x1396d7[_0xc21aa1(0x20d)]&&_0x1396d7[_0xc21aa1(0x20d)][_0xc21aa1(0x1a9)]!==ErrorCode['OK'])return;return _0x1396d7;}catch(_0x4c349f){return;}}async[_0x2cae4a(0x272)](_0xee7070){const _0x26679c=_0x2cae4a,{unitID:_0x39b4f3,jsonID:_0x47ee03,type:_0x2affd6,sscSwitch:_0x3bac2c,useImageUrl:_0xb44c24,ignoreTableExport:_0x19af83}=_0xee7070;try{const _0x199629=replaceType(this[_0x26679c(0x298)](),''+_0x2affd6),_0x240998={'body':{'unitID':_0x39b4f3,'jsonID':_0x47ee03,'type':_0x2affd6,'sscSwitch':_0x3bac2c,'useImageUrl':_0xb44c24,'ignoreTableExport':_0x19af83}},_0x989fd4=(await this['_httpService'][_0x26679c(0x25a)](_0x199629,_0x240998))[_0x26679c(0x23b)];if(_0x989fd4[_0x26679c(0x20d)]&&_0x989fd4[_0x26679c(0x20d)][_0x26679c(0x1a9)]!==ErrorCode['OK'])return;return _0x989fd4;}catch(_0x21b09a){return;}}async[_0x2cae4a(0x28a)](_0x18329f){return new Promise((_0x1ac3a4,_0x4c9f7d)=>{const _0x16cebe=_0xc00b;try{let _0xcc3d11=0x0;const _0x3ea15a=replaceTaskID(this[_0x16cebe(0x229)](),''+_0x18329f),_0x290f17=this[_0x16cebe(0x1da)](),_0x3610cf=async()=>{const _0x57b181=_0x16cebe;if(this[_0x57b181(0x273)][_0x57b181(0x281)](_0x18329f))return;const _0x2fc527=(await this[_0x57b181(0x233)][_0x57b181(0x2a1)](_0x3ea15a))[_0x57b181(0x23b)];if(_0x2fc527[_0x57b181(0x20d)]&&_0x2fc527['error']['code']===ErrorCode['OK']){if(_0x2fc527[_0x57b181(0x205)]===_0x57b181(0x28c))_0x1ac3a4(_0x2fc527);else{if(_0x2fc527[_0x57b181(0x205)]==='pending'){let _0x86f4eb=0x3e8;if(_0xcc3d11>=_0x290f17){_0x4c9f7d(_0x2fc527);return;}else{if(_0xcc3d11>=0x7530)_0x86f4eb=0x1388;}_0xcc3d11+=_0x86f4eb,setTimeout(_0x3610cf,_0x86f4eb);}else _0x4c9f7d(_0x2fc527);}}else _0x4c9f7d(_0x2fc527);};_0x3610cf();}catch(_0x1d72b0){_0x4c9f7d(_0x1d72b0 instanceof Error?_0x1d72b0:new Error(String(_0x1d72b0)));}});}async[_0x2cae4a(0x1dc)](_0x150706){const _0x396acf=_0x2cae4a;try{const _0x4b3bcd=replaceFileID(this[_0x396acf(0x21b)](),''+_0x150706);return(await this[_0x396acf(0x233)]['get'](_0x4b3bcd))[_0x396acf(0x23b)];}catch(_0x47f0cc){return;}}async['getTextFromUrl'](_0x4ad2a4){const _0x40fd94=_0x2cae4a;try{return(await this[_0x40fd94(0x233)][_0x40fd94(0x2a1)](_0x4ad2a4,{'responseType':_0x40fd94(0x1bb)}))['body'];}catch(_0x56a2b3){return;}}[_0x2cae4a(0x19f)](_0x24aed1,_0x1ad94a){const _0x2552d1=_0x2cae4a,_0x5bfc75=this[_0x2552d1(0x23c)](_0x1ad94a);if(!_0x5bfc75)return _0x24aed1;return _0x24aed1+':\x20'+_0x5bfc75;}[_0x2cae4a(0x21e)](_0x4cfe20,_0xaa4a40){const _0x1ab530=_0x2cae4a;if(_0xaa4a40 instanceof HTTPResponseError){const _0x16dbde=typeof _0xaa4a40['status']===_0x1ab530(0x237)?''+_0xaa4a40[_0x1ab530(0x205)]+(_0xaa4a40['statusText']?'\x20'+_0xaa4a40[_0x1ab530(0x1c0)]:''):void 0x0,_0x2fc2a8=this[_0x1ab530(0x23c)](_0xaa4a40['error']);if(_0x16dbde&&_0x2fc2a8)return _0x4cfe20+':\x20HTTP\x20'+_0x16dbde+_0x1ab530(0x189)+_0x2fc2a8;if(_0x16dbde)return _0x4cfe20+_0x1ab530(0x285)+_0x16dbde;if(_0x2fc2a8)return _0x4cfe20+':\x20'+_0x2fc2a8;return _0x4cfe20;}const _0x58c837=this[_0x1ab530(0x23c)](_0xaa4a40);if(!_0x58c837)return _0x4cfe20;return _0x4cfe20+':\x20'+_0x58c837;}[_0x2cae4a(0x23c)](_0x5da22c){const _0x6ccab0=_0x2cae4a;if(typeof _0x5da22c==='string'){const _0x675e71=_0x5da22c[_0x6ccab0(0x28b)]();return _0x675e71[_0x6ccab0(0x279)]>0x0?_0x675e71:void 0x0;}if(_0x5da22c instanceof Error)return this[_0x6ccab0(0x23c)](_0x5da22c[_0x6ccab0(0x223)]);if(!_0x5da22c||typeof _0x5da22c!==_0x6ccab0(0x194)||Array[_0x6ccab0(0x2ad)](_0x5da22c))return;const _0x850fdc=_0x5da22c,_0x307e17=this['_extractErrorDetail'](_0x850fdc[_0x6ccab0(0x223)]);if(_0x307e17)return _0x307e17;if(_0x850fdc['error']&&typeof _0x850fdc[_0x6ccab0(0x20d)]===_0x6ccab0(0x194)&&!Array[_0x6ccab0(0x2ad)](_0x850fdc[_0x6ccab0(0x20d)])){const _0x4e9990=this[_0x6ccab0(0x23c)](_0x850fdc[_0x6ccab0(0x20d)]);if(_0x4e9990)return _0x4e9990;}}[_0x2cae4a(0x1bd)](){const _0x27e3a8=_0x2cae4a;var _0x242d3a;const _0x5881=this[_0x27e3a8(0x1e1)][_0x27e3a8(0x289)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x242d3a=_0x5881===null||_0x5881===void 0x0?void 0x0:_0x5881[_0x27e3a8(0x276)])!==null&&_0x242d3a!==void 0x0?_0x242d3a:DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY;}[_0x2cae4a(0x25f)](){const _0x38250a=_0x2cae4a;var _0x1259e1;const _0x334901=this[_0x38250a(0x1e1)][_0x38250a(0x289)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1259e1=_0x334901===null||_0x334901===void 0x0?void 0x0:_0x334901[_0x38250a(0x22f)])!==null&&_0x1259e1!==void 0x0?_0x1259e1:DEFAULT_EXCHANGE_IMPORT_SERVER_URL_KEY;}['_getExportURL'](){const _0x34b1ec=_0x2cae4a;var _0x3888d9;const _0x12d1ad=this[_0x34b1ec(0x1e1)][_0x34b1ec(0x289)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x3888d9=_0x12d1ad===null||_0x12d1ad===void 0x0?void 0x0:_0x12d1ad[_0x34b1ec(0x291)])!==null&&_0x3888d9!==void 0x0?_0x3888d9:DEFAULT_EXCHANGE_EXPORT_SERVER_URL_KEY;}[_0x2cae4a(0x229)](){const _0x15b5c9=_0x2cae4a;var _0x4b1a4f;const _0x32743c=this['_configService'][_0x15b5c9(0x289)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x4b1a4f=_0x32743c===null||_0x32743c===void 0x0?void 0x0:_0x32743c['getTaskServerUrl'])!==null&&_0x4b1a4f!==void 0x0?_0x4b1a4f:DEFAULT_EXCHANGE_GET_TASK_SERVER_URL_KEY;}[_0x2cae4a(0x21b)](){const _0x1d997b=_0x2cae4a;var _0x5162d8;const _0x2b749f=this['_configService']['getConfig'](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x5162d8=_0x2b749f===null||_0x2b749f===void 0x0?void 0x0:_0x2b749f[_0x1d997b(0x1ef)])!==null&&_0x5162d8!==void 0x0?_0x5162d8:DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY;}[_0x2cae4a(0x1da)](){const _0x3c81ca=_0x2cae4a;var _0x39464d;const _0x40f44e=this['_configService'][_0x3c81ca(0x289)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x39464d=_0x40f44e===null||_0x40f44e===void 0x0?void 0x0:_0x40f44e[_0x3c81ca(0x2a6)])!==null&&_0x39464d!==void 0x0?_0x39464d:DEFAULT_EXCHANGE_MAX_TIMEOUT_TIME_KEY;}};RequestService=__decorate([__decorateParam(0x0,IConfigService),__decorateParam(0x1,Inject(HTTPService))],RequestService);function transformWorkbookSnapshotMetaToString(_0x3a30a1){const _0x346d26=_0x2cae4a,_0x52fc3b=_0x3a30a1[_0x346d26(0x1a7)];if(!_0x52fc3b)return null;const _0x4d7b04={};if(_0x52fc3b['sheets'])Object[_0x346d26(0x228)](_0x52fc3b[_0x346d26(0x27e)])['forEach'](_0x28a6e4=>{const _0x2c2dd6=_0x346d26,_0x5808db=_0x52fc3b[_0x2c2dd6(0x27e)][_0x28a6e4];_0x4d7b04[_0x28a6e4]={..._0x5808db,'originalMeta':b64EncodeUnicode(textDecoder[_0x2c2dd6(0x254)](_0x5808db[_0x2c2dd6(0x23a)]))};});const _0xb6cd1a=b64EncodeUnicode(textDecoder[_0x346d26(0x254)](_0x52fc3b['originalMeta']));return{..._0x3a30a1,'workbook':{..._0x52fc3b,'originalMeta':_0xb6cd1a,'sheets':_0x4d7b04},'doc':{}};}function transformDocumentSnapshotMetaToString(_0x3035d0){const _0x436bf6=_0x2cae4a,_0x533334=_0x3035d0['doc'];if(!_0x533334)return null;const _0x18c379=b64EncodeUnicode(textDecoder[_0x436bf6(0x254)](_0x533334[_0x436bf6(0x23a)]));return{..._0x3035d0,'workbook':{},'doc':{..._0x533334,'originalMeta':_0x18c379}};}function transformSheetBlockMetaToString(_0x3134ad){const _0x5601fa=_0x2cae4a,_0x58d1c7={};return _0x3134ad[_0x5601fa(0x220)](_0x39f161=>{_0x58d1c7[_0x39f161['id']]={..._0x39f161,'data':b64EncodeUnicode(textDecoder['decode'](_0x39f161['data']))};}),_0x58d1c7;}async function transformWorkbookDataToSnapshotJson(_0x1e5323){const _0x11d924=_0x2cae4a;var _0x5e9cfb;const _0xd95cd5={'metadata':void 0x0},_0x15c423=_0x1e5323['id'],_0x5afd40=(_0x5e9cfb=_0x1e5323['rev'])!==null&&_0x5e9cfb!==void 0x0?_0x5e9cfb:0x0,_0x296952=new ClientSnapshotServerService(),{snapshot:_0x4599bc}=await transformWorkbookDataToSnapshot(_0xd95cd5,_0x1e5323,_0x15c423,_0x5afd40,_0x296952),_0x3622a2=await getSheetBlocksFromSnapshot(_0x4599bc,_0x296952),_0x5b5e67=transformWorkbookSnapshotMetaToString(_0x4599bc);if(!_0x5b5e67)throw new Error(_0x11d924(0x24f));return{'snapshot':_0x5b5e67,'sheetBlocks':transformSheetBlockMetaToString(_0x3622a2)};}async function transformDocumentDataToSnapshotJson(_0x489c4b){const _0x378110=_0x2cae4a;var _0x36ba1d;const _0x58a6c4={'metadata':void 0x0},_0xe59e8d=_0x489c4b['id'],{snapshot:_0x362366}=await transformDocumentDataToSnapshot(_0x58a6c4,_0x489c4b,_0xe59e8d,(_0x36ba1d=_0x489c4b['rev'])!==null&&_0x36ba1d!==void 0x0?_0x36ba1d:0x0,new ClientSnapshotServerService()),_0x549c02=transformDocumentSnapshotMetaToString(_0x362366);if(!_0x549c02)throw new Error(_0x378110(0x24f));return{'snapshot':_0x549c02,'sheetBlocks':{}};}async function transformSnapshotJsonToWorkbookData(_0x1cae27){const _0x461065=_0x2cae4a,_0x56186b=_0x1cae27[_0x461065(0x195)],_0x5a9599=_0x1cae27[_0x461065(0x23d)]||{};return await transformSnapshotToWorkbookData(_0x56186b,Object[_0x461065(0x228)](_0x5a9599)[_0x461065(0x1a0)](_0x2d8280=>_0x5a9599[_0x2d8280])['map'](_0x3c56c0=>{const _0x73f0b6=_0x461065;return{..._0x3c56c0,'data':_0x3c56c0[_0x73f0b6(0x20b)]?JSON[_0x73f0b6(0x18a)](b64DecodeUnicode(_0x3c56c0[_0x73f0b6(0x20b)])):void 0x0};}));}function transformSnapshotJsonToDocumentData(_0x3b71bd){const _0x8dcbf9=_0x2cae4a,_0x274b8f=_0x3b71bd[_0x8dcbf9(0x195)];return transformSnapshotToDocumentData(_0x274b8f);}var ClientSnapshotServerService=class{constructor(){const _0x780e1f=_0x2cae4a;_defineProperty(this,_0x780e1f(0x2af),new Map());}[_0x2cae4a(0x1de)](){return Promise['resolve']({'snapshot':{'unitID':'','type':UniverInstanceType['UNIVER_SHEET'],'rev':0x0,'workbook':void 0x0,'doc':void 0x0},'changesets':[],'error':{'code':ErrorCode['OK'],'message':''}});}[_0x2cae4a(0x227)](_0x50cf2f,_0x6a5eb8){const _0x2a0a34=_0x2cae4a,_0x5096e1=this[_0x2a0a34(0x2af)][_0x2a0a34(0x2a1)](_0x6a5eb8[_0x2a0a34(0x2a7)]);return Promise[_0x2a0a34(0x263)]({'block':_0x5096e1,'error':{'code':ErrorCode['OK'],'message':''}});}[_0x2cae4a(0x248)](_0x3d74d0,_0x1599aa){const _0x199524=_0x2cae4a,_0x20b882=this[_0x199524(0x2af)][_0x199524(0x2a1)](_0x1599aa[_0x199524(0x2a7)]);return Promise[_0x199524(0x263)]({'block':_0x20b882===void 0x0?void 0x0:{..._0x20b882,'data':JSON[_0x199524(0x18a)](textDecoder[_0x199524(0x254)](_0x20b882['data']))},'error':{'code':ErrorCode['OK'],'message':''}});}[_0x2cae4a(0x2c8)](){return Promise['resolve']({'changesets':[],'error':{'code':ErrorCode['OK'],'message':''}});}[_0x2cae4a(0x1d0)](){const _0x2dbf8f=_0x2cae4a;return Promise[_0x2dbf8f(0x263)]({'resources':{},'error':{'code':ErrorCode['OK'],'message':''}});}[_0x2cae4a(0x262)](){const _0xfca540=_0x2cae4a;return Promise[_0xfca540(0x263)]({'error':{'code':ErrorCode['OK'],'message':''}});}[_0x2cae4a(0x27d)](){const _0x3c2f96=_0x2cae4a;return Promise[_0x3c2f96(0x263)]({'error':{'code':ErrorCode['OK'],'message':''}});}[_0x2cae4a(0x2c4)](_0x2ece5f,_0x1f8581){const _0x567580=_0x2cae4a,{block:_0xb7d7e4}=_0x1f8581;if(!_0xb7d7e4)return Promise[_0x567580(0x263)]({'error':{'code':ErrorCode['UNDEFINED'],'message':_0x567580(0x1ac)},'blockID':''});return this['_sheetBlockCache'][_0x567580(0x2bf)](_0xb7d7e4['id'],_0xb7d7e4),Promise[_0x567580(0x263)]({'error':{'code':ErrorCode['OK'],'message':''},'blockID':_0xb7d7e4['id']});}[_0x2cae4a(0x2b7)](){const _0x1c032b=_0x2cae4a;return Promise[_0x1c032b(0x263)]({'error':{'code':ErrorCode['OK'],'message':''},'concurrent':[]});}[_0x2cae4a(0x296)](){const _0x19f92f=_0x2cae4a;return Promise[_0x19f92f(0x263)]({'error':void 0x0,'fileMetaId':''});}[_0x2cae4a(0x23e)](){const _0x4a126c=_0x2cae4a;return Promise[_0x4a126c(0x263)]({'error':void 0x0,'latestReqID':0x0});}};const IExchangeService=createIdentifier(_0x2cae4a(0x244));let ExchangeService=class ExchangeService extends Disposable{constructor(_0x108be6,_0xca7476,_0x529cdd){const _0x1cfd7f=_0x2cae4a;super(),this[_0x1cfd7f(0x1e1)]=_0x108be6,this['_httpService']=_0xca7476,this[_0x1cfd7f(0x1e2)]=_0x529cdd,_defineProperty(this,_0x1cfd7f(0x2c6),null),_defineProperty(this,'_requestState$',new Subject()),_defineProperty(this,_0x1cfd7f(0x252),this['_requestState$']['asObservable']());}[_0x2cae4a(0x2c0)](){const _0x11742c=_0x2cae4a;super[_0x11742c(0x2c0)](),this['_requestState$'][_0x11742c(0x2bb)]();}async['importDOCXToSnapshot'](_0x480c17){const _0x927e3e=_0x2cae4a,_0x5271f1=await this['_importToSnapshot'](_0x480c17,UniverInstanceType[_0x927e3e(0x199)]);if(!_0x5271f1||!_0x5271f1[_0x927e3e(0x195)])return;const _0x1cbc40=transformSnapshotJsonToDocumentData(_0x5271f1);if(!_0x1cbc40)return;return _0x1cbc40;}async['exportDOCXByUnitId'](_0x54b4de){const _0x2d3698=_0x2cae4a;return this[_0x2d3698(0x215)](_0x54b4de,0x1,UniverInstanceType[_0x2d3698(0x199)]);}async[_0x2cae4a(0x1c8)](_0x330485){const _0xd5563d=_0x2cae4a,_0x1f4398=await transformDocumentDataToSnapshotJson(_0x330485);return this[_0xd5563d(0x294)](_0x1f4398,UniverInstanceType['UNIVER_DOC']);}async['importXLSXToSnapshot'](_0x54285a){const _0x307df4=_0x2cae4a,_0x1f917b=await this['_importToSnapshot'](_0x54285a,UniverInstanceType[_0x307df4(0x212)]);if(!_0x1f917b)return;const _0x3212dd=await transformSnapshotJsonToWorkbookData(_0x1f917b);if(!_0x3212dd)return;return _0x3212dd;}async[_0x2cae4a(0x190)](_0x3c7a14){const _0xa71e1c=_0x2cae4a;return this[_0xa71e1c(0x215)](_0x3c7a14,0x1,UniverInstanceType[_0xa71e1c(0x212)]);}async[_0x2cae4a(0x286)](_0x529003){const _0x5c4832=_0x2cae4a,_0x58744a=await transformWorkbookDataToSnapshotJson(_0x529003);return this['_exportBySnapshot'](_0x58744a,UniverInstanceType[_0x5c4832(0x212)]);}async[_0x2cae4a(0x193)](_0x1f2839,_0x163bf0){const _0x32cf51=_0x2cae4a;var _0x4a3fb3,_0x1ad629;const _0x1c8063=await this[_0x32cf51(0x187)](_0x1f2839);if(!_0x1c8063)return;const _0xea53bf=await this[_0x32cf51(0x1b0)](_0x1c8063,0x1,_0x163bf0);if(!_0xea53bf)return;this[_0x32cf51(0x2c6)]=_0xea53bf,this[_0x32cf51(0x1e2)][_0x32cf51(0x1b3)]();const _0x134e00=await this[_0x32cf51(0x1e2)][_0x32cf51(0x28a)](_0xea53bf)[_0x32cf51(0x2aa)](_0x229fc7=>{const _0x42c128=_0x32cf51;var _0x5931ba;const _0x149098=_0x229fc7 instanceof Error?_0x229fc7['message']:(_0x5931ba=_0x229fc7[_0x42c128(0x20d)])===null||_0x5931ba===void 0x0?void 0x0:_0x5931ba[_0x42c128(0x223)];this[_0x42c128(0x2c7)]['next']({'error':{'code':ErrorCode[_0x42c128(0x1db)],'message':_0x149098||''},'state':0x3});});if(!_0x134e00)return;const _0x4b9248=(_0x4a3fb3=_0x134e00[_0x32cf51(0x28d)])===null||_0x4a3fb3===void 0x0?void 0x0:_0x4a3fb3[_0x32cf51(0x26f)],_0x44ea83=((_0x1ad629=_0x134e00[_0x32cf51(0x28d)])===null||_0x1ad629===void 0x0?void 0x0:_0x1ad629[_0x32cf51(0x25c)])||'';if(_0x4b9248!==0x1){this[_0x32cf51(0x2c7)][_0x32cf51(0x1af)]({'error':{'code':ErrorCode[_0x32cf51(0x1db)],'message':'Get\x20outputType\x20error'},'state':0x3});return;}if(_0x44ea83['length']===0x0){this[_0x32cf51(0x2c7)][_0x32cf51(0x1af)]({'error':{'code':ErrorCode[_0x32cf51(0x1db)],'message':_0x32cf51(0x1d1)},'state':0x3});return;}return this[_0x32cf51(0x2c7)][_0x32cf51(0x1af)]({'error':_0x134e00[_0x32cf51(0x20d)],'state':0x3}),_0x44ea83;}async[_0x2cae4a(0x269)](_0x3fb753){const _0x12f334=_0x2cae4a,_0x49c86d=await transformWorkbookDataToSnapshotJson(_0x3fb753),_0x5c075f=typeof _0x3fb753['id']===_0x12f334(0x221)&&_0x3fb753['id'][_0x12f334(0x28b)]()?_0x3fb753['id'][_0x12f334(0x28b)]()+_0x12f334(0x240):'workbook.json',_0x5b1127=new File([JSON['stringify'](_0x49c86d)],_0x5c075f,{'type':_0x12f334(0x1d9)});return this[_0x12f334(0x193)](_0x5b1127,UniverInstanceType['UNIVER_SHEET']);}[_0x2cae4a(0x1ee)](){const _0x4da398=_0x2cae4a;if(this[_0x4da398(0x2c6)])this['_requestService'][_0x4da398(0x29f)](this['_importTaskId']);}async['_importToSnapshot'](_0x5468e6,_0x17ab66){const _0x19b713=_0x2cae4a;var _0x4fcbb7,_0x5e5913;const _0x5cb21d=await this[_0x19b713(0x187)](_0x5468e6);if(!_0x5cb21d)return;const _0x2b0831=await this[_0x19b713(0x1b0)](_0x5cb21d,0x2,_0x17ab66);if(!_0x2b0831)return;this['_importTaskId']=_0x2b0831,this['_requestService']['clearTaskInterrupted']();const _0x85aec5=await this[_0x19b713(0x1e2)]['getTask'](_0x2b0831)[_0x19b713(0x2aa)](_0x5d06e4=>{const _0x30aa14=_0x19b713;var _0x3c6673;const _0x4d1813=_0x5d06e4 instanceof Error?_0x5d06e4[_0x30aa14(0x223)]:(_0x3c6673=_0x5d06e4['error'])===null||_0x3c6673===void 0x0?void 0x0:_0x3c6673[_0x30aa14(0x223)];this[_0x30aa14(0x2c7)]['next']({'error':{'code':ErrorCode[_0x30aa14(0x1db)],'message':_0x4d1813||''},'state':0x3});});if(!_0x85aec5)return;const _0x110c13=(_0x4fcbb7=_0x85aec5[_0x19b713(0x28d)])===null||_0x4fcbb7===void 0x0?void 0x0:_0x4fcbb7[_0x19b713(0x26f)],_0x14e96a=((_0x5e5913=_0x85aec5['import'])===null||_0x5e5913===void 0x0?void 0x0:_0x5e5913[_0x19b713(0x18d)])||'';if(_0x110c13!==0x2){this[_0x19b713(0x2c7)][_0x19b713(0x1af)]({'error':{'code':ErrorCode[_0x19b713(0x1db)],'message':_0x19b713(0x214)},'state':0x3});return;}if(_0x14e96a[_0x19b713(0x279)]===0x0){this[_0x19b713(0x2c7)][_0x19b713(0x1af)]({'error':{'code':ErrorCode[_0x19b713(0x1db)],'message':_0x19b713(0x25d)},'state':0x3});return;}this[_0x19b713(0x2c7)]['next']({'error':_0x85aec5[_0x19b713(0x20d)],'state':0x3});const _0x2bf6ae=await this['_signUrl'](_0x14e96a);if(!_0x2bf6ae)return;const _0x6d4e94=await this[_0x19b713(0x1e2)][_0x19b713(0x2b0)](_0x2bf6ae);if(!_0x6d4e94){this['_requestState$'][_0x19b713(0x1af)]({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':'Failed\x20to\x20get\x20text\x20from\x20url'},'state':0x5});return;}try{const _0x5cebf4=JSON['parse'](_0x6d4e94);return this[_0x19b713(0x2c7)][_0x19b713(0x1af)]({'error':{'code':ErrorCode['OK'],'message':_0x19b713(0x2b5)},'state':0x5}),_0x5cebf4;}catch{this[_0x19b713(0x2c7)]['next']({'error':{'code':ErrorCode[_0x19b713(0x1db)],'message':_0x19b713(0x24c)},'state':0x5});}}async['_exportBySnapshot'](_0x36e294,_0x51eedd){const _0x37d003=_0x2cae4a,_0x379c96=JSON['stringify'](_0x36e294),_0x4ad2f5=textEncoder[_0x37d003(0x1f5)](_0x379c96),_0x1046bc=deflateSync(_0x4ad2f5),_0x3a8baf=_0x4ad2f5[_0x37d003(0x279)],_0x56a919=bufferToFile(_0x1046bc),_0x34eeba=await this[_0x37d003(0x187)](_0x56a919,_0x3a8baf,!![]);if(!_0x34eeba)return;return this[_0x37d003(0x215)](_0x34eeba,0x2,_0x51eedd);}async[_0x2cae4a(0x215)](_0x10714e,_0x362f79,_0x4327ca){const _0x39e503=_0x2cae4a;var _0x1fb173;const _0x15601f=await this[_0x39e503(0x1e2)][_0x39e503(0x272)]({'unitID':_0x362f79===0x1?_0x10714e:'','jsonID':_0x362f79===0x2?_0x10714e:'','type':_0x4327ca,'sscSwitch':this[_0x39e503(0x202)](),'useImageUrl':this[_0x39e503(0x2cc)](),'ignoreTableExport':this[_0x39e503(0x204)]()});if(!_0x15601f){this['_requestState$'][_0x39e503(0x1af)]({'error':{'code':ErrorCode[_0x39e503(0x1db)],'message':_0x39e503(0x1d5)},'state':0x2});return;}this[_0x39e503(0x2c7)][_0x39e503(0x1af)]({'error':_0x15601f['error'],'state':0x2});if(_0x15601f[_0x39e503(0x20d)]&&_0x15601f['error']['code']!==ErrorCode['OK'])return;const _0x3dc0ba=_0x15601f['taskID'],_0x4583bb=await this[_0x39e503(0x1e2)]['getTask'](_0x3dc0ba)['catch'](_0x243220=>{const _0x44af8e=_0x39e503;var _0xc4c9f7;const _0x4205a4=_0x243220 instanceof Error?_0x243220[_0x44af8e(0x223)]:(_0xc4c9f7=_0x243220[_0x44af8e(0x20d)])===null||_0xc4c9f7===void 0x0?void 0x0:_0xc4c9f7[_0x44af8e(0x223)];this[_0x44af8e(0x2c7)][_0x44af8e(0x1af)]({'error':{'code':ErrorCode[_0x44af8e(0x1db)],'message':_0x4205a4||''},'state':0x3});});if(!_0x4583bb)return;const _0x434ef6=((_0x1fb173=_0x4583bb[_0x39e503(0x272)])===null||_0x1fb173===void 0x0?void 0x0:_0x1fb173[_0x39e503(0x1f8)])||'';if(_0x434ef6['length']===0x0){this[_0x39e503(0x2c7)][_0x39e503(0x1af)]({'error':{'code':ErrorCode[_0x39e503(0x1db)],'message':_0x39e503(0x2be)},'state':0x3});return;}this[_0x39e503(0x2c7)][_0x39e503(0x1af)]({'error':_0x4583bb['error'],'state':0x3});const _0x1d1e99=await this['_signUrl'](_0x434ef6);if(!_0x1d1e99)return;const _0x5a7e2f=await getFileByURL(_0x1d1e99,this[_0x39e503(0x233)]);if(!_0x5a7e2f){this[_0x39e503(0x2c7)][_0x39e503(0x1af)]({'error':{'code':ErrorCode[_0x39e503(0x1db)],'message':_0x39e503(0x200)},'state':0x6});return;}return this[_0x39e503(0x2c7)][_0x39e503(0x1af)]({'error':{'code':ErrorCode['OK'],'message':_0x39e503(0x2b5)},'state':0x6}),_0x5a7e2f;}async[_0x2cae4a(0x187)](_0x2473b2,_0x43e074,_0x37af7d){const _0x1b63cd=_0x2cae4a;let _0x29120c;try{_0x29120c=await this['_requestService'][_0x1b63cd(0x186)](_0x2473b2,_0x43e074,_0x37af7d);}catch(_0x559a34){const _0x480c6c=_0x559a34 instanceof Error?_0x559a34[_0x1b63cd(0x223)]:String(_0x559a34);this[_0x1b63cd(0x2c7)]['next']({'error':{'code':ErrorCode[_0x1b63cd(0x1db)],'message':_0x480c6c},'state':0x0});return;}if(!_0x29120c||typeof _0x29120c[_0x1b63cd(0x26d)]!==_0x1b63cd(0x221)){this[_0x1b63cd(0x2c7)][_0x1b63cd(0x1af)]({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':_0x1b63cd(0x211)},'state':0x0});return;}const _0x2cb7ca=_0x29120c['FileId'];if(_0x2cb7ca[_0x1b63cd(0x279)]===0x0){this[_0x1b63cd(0x2c7)][_0x1b63cd(0x1af)]({'error':{'code':ErrorCode[_0x1b63cd(0x1db)],'message':'upload\x20failed:\x20FileId\x20is\x20empty'},'state':0x0});return;}return this[_0x1b63cd(0x2c7)][_0x1b63cd(0x1af)]({'error':{'code':ErrorCode['OK'],'message':_0x1b63cd(0x2b5)},'state':0x0}),_0x2cb7ca;}async[_0x2cae4a(0x1b0)](_0x2b01cc,_0x41a435,_0xf56dd4){const _0x247903=_0x2cae4a,_0x3be86f={'fileID':_0x2b01cc,'type':_0xf56dd4,'outputType':_0x41a435,'fileUrl':'','minSheetRowCount':this[_0x247903(0x1fd)](),'minSheetColumnCount':this[_0x247903(0x297)]()},_0x5876cf=await this['_requestService'][_0x247903(0x28d)](_0x3be86f);if(!_0x5876cf){this[_0x247903(0x2c7)]['next']({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':_0x247903(0x1bc)},'state':0x1});return;}if(_0x5876cf[_0x247903(0x20d)]&&_0x5876cf[_0x247903(0x20d)]['code']!==ErrorCode['OK']){this[_0x247903(0x2c7)]['next']({'error':_0x5876cf[_0x247903(0x20d)],'state':0x1});return;}const _0x18be36=_0x5876cf[_0x247903(0x1f0)];if(_0x18be36[_0x247903(0x279)]===0x0){this[_0x247903(0x2c7)][_0x247903(0x1af)]({'error':{'code':ErrorCode[_0x247903(0x1db)],'message':_0x247903(0x261)},'state':0x1});return;}return this[_0x247903(0x2c7)][_0x247903(0x1af)]({'error':_0x5876cf[_0x247903(0x20d)],'state':0x1}),_0x18be36;}async[_0x2cae4a(0x1cb)](_0xc4cdef){const _0x125548=_0x2cae4a,_0x5ce59a=await this[_0x125548(0x1e2)][_0x125548(0x1dc)](_0xc4cdef);if(!_0x5ce59a){this[_0x125548(0x2c7)]['next']({'error':{'code':ErrorCode[_0x125548(0x1db)],'message':_0x125548(0x2bc)},'state':0x4});return;}if(_0x5ce59a['error']&&_0x5ce59a[_0x125548(0x20d)]['code']!==ErrorCode['OK']){this[_0x125548(0x2c7)][_0x125548(0x1af)]({'error':_0x5ce59a[_0x125548(0x20d)],'state':0x4});return;}const _0x1df25a=resolveWithBasePath(_0x5ce59a[_0x125548(0x1a6)],this[_0x125548(0x23f)]());if(_0x1df25a[_0x125548(0x279)]===0x0){this[_0x125548(0x2c7)][_0x125548(0x1af)]({'error':{'code':ErrorCode[_0x125548(0x1db)],'message':'sign\x20url\x20error'},'state':0x4});return;}return this[_0x125548(0x2c7)][_0x125548(0x1af)]({'error':_0x5ce59a['error'],'state':0x4}),_0x1df25a;}[_0x2cae4a(0x23f)](){const _0x494aca=_0x2cae4a;var _0x1226ae;const _0x99ac3c=this[_0x494aca(0x1e1)]['getConfig'](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1226ae=_0x99ac3c===null||_0x99ac3c===void 0x0?void 0x0:_0x99ac3c[_0x494aca(0x21d)])!==null&&_0x1226ae!==void 0x0?_0x1226ae:location[_0x494aca(0x260)];}[_0x2cae4a(0x1fd)](){const _0xc52dd3=_0x2cae4a;var _0x23b431,_0x2da23d;const _0xda11d4=this['_configService']['getConfig'](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x23b431=_0xda11d4===null||_0xda11d4===void 0x0||(_0x2da23d=_0xda11d4[_0xc52dd3(0x2b8)])===null||_0x2da23d===void 0x0?void 0x0:_0x2da23d[_0xc52dd3(0x234)])!==null&&_0x23b431!==void 0x0?_0x23b431:0x1;}[_0x2cae4a(0x297)](){const _0xe7d0c=_0x2cae4a;var _0x309604,_0x3c9e91;const _0x15b5c4=this[_0xe7d0c(0x1e1)]['getConfig'](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x309604=_0x15b5c4===null||_0x15b5c4===void 0x0||(_0x3c9e91=_0x15b5c4[_0xe7d0c(0x2b8)])===null||_0x3c9e91===void 0x0?void 0x0:_0x3c9e91[_0xe7d0c(0x1f3)])!==null&&_0x309604!==void 0x0?_0x309604:0x1;}[_0x2cae4a(0x202)](){const _0x38282d=_0x2cae4a;var _0x33a9d6,_0x1c9417;const _0x220777=this[_0x38282d(0x1e1)][_0x38282d(0x289)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x33a9d6=_0x220777===null||_0x220777===void 0x0||(_0x1c9417=_0x220777[_0x38282d(0x2b8)])===null||_0x1c9417===void 0x0?void 0x0:_0x1c9417[_0x38282d(0x184)])!==null&&_0x33a9d6!==void 0x0?_0x33a9d6:![];}[_0x2cae4a(0x2cc)](){const _0xb95f54=_0x2cae4a;var _0x1564f3,_0x270c31;const _0x2e307f=this[_0xb95f54(0x1e1)]['getConfig'](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1564f3=_0x2e307f===null||_0x2e307f===void 0x0||(_0x270c31=_0x2e307f[_0xb95f54(0x2b8)])===null||_0x270c31===void 0x0?void 0x0:_0x270c31[_0xb95f54(0x243)])!==null&&_0x1564f3!==void 0x0?_0x1564f3:!![];}[_0x2cae4a(0x204)](){const _0x3c2452=_0x2cae4a;var _0x122087,_0x5ddbc6;const _0x2d8de4=this['_configService'][_0x3c2452(0x289)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x122087=_0x2d8de4===null||_0x2d8de4===void 0x0||(_0x5ddbc6=_0x2d8de4[_0x3c2452(0x2b8)])===null||_0x5ddbc6===void 0x0?void 0x0:_0x5ddbc6['ignoreTableExport'])!==null&&_0x122087!==void 0x0?_0x122087:![];}};ExchangeService=__decorate([__decorateParam(0x0,IConfigService),__decorateParam(0x1,Inject(HTTPService)),__decorateParam(0x2,Inject(IRequestService))],ExchangeService);const NilProgress={'done':0x0,'count':0x0},IExchangeOperateService=createIdentifier(_0x2cae4a(0x1ea));let ExchangeOperateService=class ExchangeOperateService extends Disposable{constructor(_0x42c282,_0x3f5b53,_0x1a59c8,_0x28eb1b,_0x1af66d,_0x4e853c){const _0x44786e=_0x2cae4a;super(),this[_0x44786e(0x28f)]=_0x42c282,this[_0x44786e(0x2ac)]=_0x3f5b53,this[_0x44786e(0x277)]=_0x1a59c8,this[_0x44786e(0x213)]=_0x28eb1b,this['_uploadNotificationService']=_0x1af66d,this['_logService']=_0x4e853c,_defineProperty(this,_0x44786e(0x27b),new BehaviorSubject(NilProgress)),_defineProperty(this,_0x44786e(0x2a5),this[_0x44786e(0x27b)][_0x44786e(0x1b1)]()),_defineProperty(this,_0x44786e(0x185),0x0),_defineProperty(this,_0x44786e(0x18e),0x0),this[_0x44786e(0x2c3)](toDisposable(this[_0x44786e(0x213)]['requestState$'][_0x44786e(0x18b)](_0x264df3=>{const _0x26c433=_0x44786e;var _0x409b34;if(((_0x409b34=_0x264df3[_0x26c433(0x20d)])===null||_0x409b34===void 0x0?void 0x0:_0x409b34[_0x26c433(0x1a9)])===ErrorCode['OK'])this[_0x26c433(0x1e6)](0x1);else this[_0x26c433(0x24d)](_0x264df3[_0x26c433(0x20d)]);})));}[_0x2cae4a(0x2a3)](){const _0x3e8ac3=_0x2cae4a;this[_0x3e8ac3(0x1e0)](),this[_0x3e8ac3(0x259)][_0x3e8ac3(0x268)](0x2),this['_exchangeService'][_0x3e8ac3(0x1ee)]();}async[_0x2cae4a(0x278)](_0x32c021){const _0x197bcd=_0x2cae4a;throw new Error(_0x197bcd(0x1f1));}async['importDOCXToUnitId'](){const _0x26be23=_0x2cae4a,_0x5f41a6=await getUploadFile([UniverInstanceType[_0x26be23(0x199)]]);if(!_0x5f41a6)return;if(this['_fileTypeError'](_0x5f41a6,UniverInstanceType[_0x26be23(0x199)]))return;return this[_0x26be23(0x29d)](_0x5f41a6[0x0],UniverInstanceType[_0x26be23(0x199)]);}[_0x2cae4a(0x1b4)](){const _0xbf09c=_0x2cae4a;throw new Error(_0xbf09c(0x1f1));}async[_0x2cae4a(0x1e3)](_0x2f1244,_0x40fa1b,_0x22c9c6){const _0x40c605=_0x2cae4a;this[_0x40c605(0x2b4)](MessageType[_0x40c605(0x1c5)]);const _0x1036fd=await this['_exchangeService'][_0x40c605(0x1e3)](_0x2f1244||this[_0x40c605(0x292)]());if(!_0x1036fd)return;downloadFile(_0x1036fd,_0x40fa1b||this[_0x40c605(0x2c5)](_0x1036fd),_0x40c605(0x246)),this[_0x40c605(0x2b4)](MessageType['Success']);}async[_0x2cae4a(0x1c8)](){const _0x4b3f2a=_0x2cae4a;this[_0x4b3f2a(0x2b4)](MessageType[_0x4b3f2a(0x1c5)]);const _0x374b7b=await this[_0x4b3f2a(0x183)](),_0x4c092c=await this['_exchangeService'][_0x4b3f2a(0x1c8)](_0x374b7b);if(!_0x4c092c)return;downloadFile(_0x4c092c,this[_0x4b3f2a(0x2c5)](_0x4c092c),_0x4b3f2a(0x246)),this['_showDownloadMessage'](MessageType[_0x4b3f2a(0x1d2)]);}async[_0x2cae4a(0x271)](){const _0x40da53=_0x2cae4a;if(this[_0x40da53(0x21a)]()){this[_0x40da53(0x2ac)]['show']({'type':MessageType[_0x40da53(0x1d7)],'content':this[_0x40da53(0x277)]['t'](_0x40da53(0x267))});return;}const _0x2fe7b1=await getUploadFile([UniverInstanceType[_0x40da53(0x212)]]);if(!_0x2fe7b1)return;if(this[_0x40da53(0x1ca)](_0x2fe7b1,UniverInstanceType[_0x40da53(0x212)]))return;return this[_0x40da53(0x29d)](_0x2fe7b1[0x0],UniverInstanceType[_0x40da53(0x212)]);}async[_0x2cae4a(0x210)](){const _0xf9c687=_0x2cae4a;if(this[_0xf9c687(0x21a)]()){this['_messageService'][_0xf9c687(0x20f)]({'type':MessageType[_0xf9c687(0x1d7)],'content':this[_0xf9c687(0x277)]['t'](_0xf9c687(0x267))});return;}const _0x242d20=await getUploadFile([UniverInstanceType[_0xf9c687(0x212)]]);if(!_0x242d20)return;this[_0xf9c687(0x28e)](MessageType[_0xf9c687(0x1c5)]);const _0x44c1c5=await this[_0xf9c687(0x213)]['importXLSXToSnapshot'](_0x242d20[0x0]);if(!_0x44c1c5)return;this['_refresh'](_0x44c1c5),this[_0xf9c687(0x28e)](MessageType[_0xf9c687(0x1d2)]);}async[_0x2cae4a(0x190)](_0x19796b,_0x3984df,_0x3d7bd6){const _0x13ae20=_0x2cae4a;this[_0x13ae20(0x2b4)](MessageType[_0x13ae20(0x1c5)]);const _0x4d72bd=await this['_exchangeService']['exportXLSXByUnitId'](_0x19796b||this['_getUnitID']());if(!_0x4d72bd)return;downloadFile(_0x4d72bd,_0x3984df||this[_0x13ae20(0x2c5)](_0x4d72bd),_0x13ae20(0x188)),this[_0x13ae20(0x2b4)](MessageType[_0x13ae20(0x1d2)]);}async[_0x2cae4a(0x286)](){const _0x95ce17=_0x2cae4a;this[_0x95ce17(0x2b4)](MessageType['Info']);const _0x1480b0=await this[_0x95ce17(0x18f)](),_0x42e3fa=await this[_0x95ce17(0x213)][_0x95ce17(0x286)](_0x1480b0);if(!_0x42e3fa)return;downloadFile(_0x42e3fa,this['_getUnitName'](_0x42e3fa),_0x95ce17(0x188)),this[_0x95ce17(0x2b4)](MessageType[_0x95ce17(0x1d2)]);}[_0x2cae4a(0x1b7)](_0x1d5023){this['_getLinkByUnitId']=_0x1d5023;}async[_0x2cae4a(0x29d)](_0x1f3892,_0x169c52){const _0x3d0483=_0x2cae4a;this[_0x3d0483(0x259)][_0x3d0483(0x20f)](),this['_uploadNotificationService'][_0x3d0483(0x268)](0x0),this[_0x3d0483(0x241)](0x4),this[_0x3d0483(0x1e6)](0x1);const _0x388d3a=await this[_0x3d0483(0x213)][_0x3d0483(0x193)](_0x1f3892,_0x169c52);if(!_0x388d3a){this[_0x3d0483(0x1e0)](),this[_0x3d0483(0x259)][_0x3d0483(0x268)](0x2);return;}const _0x315cb4={'link':this[_0x3d0483(0x295)](_0x388d3a,_0x169c52),'name':_0x1f3892[_0x3d0483(0x27f)],'type':_0x169c52};return this[_0x3d0483(0x259)]['pushLink'](_0x315cb4),this[_0x3d0483(0x21c)](),this[_0x3d0483(0x259)]['updateState'](0x1),_0x388d3a;}['_getUnitID'](){const _0x36dfe7=_0x2cae4a;return this[_0x36dfe7(0x28f)]['getCurrentUnitOfType'](UniverInstanceType[_0x36dfe7(0x212)])[_0x36dfe7(0x206)]();}['_getUnitIDDoc'](){const _0x4a2ec1=_0x2cae4a;return this[_0x4a2ec1(0x28f)]['getCurrentUnitOfType'](UniverInstanceType[_0x4a2ec1(0x199)])[_0x4a2ec1(0x206)]();}[_0x2cae4a(0x2c5)](_0x5cd329){const _0x3a4335=_0x2cae4a;var _0x95b0ef;return((_0x95b0ef=this[_0x3a4335(0x28f)]['getCurrentUnitOfType'](UniverInstanceType[_0x3a4335(0x212)]))===null||_0x95b0ef===void 0x0?void 0x0:_0x95b0ef['name'])||_0x5cd329[_0x3a4335(0x27f)][_0x3a4335(0x27c)]('.')[_0x3a4335(0x283)]()||document['title'];}async['_getUnitJson'](){const _0x4bdc9a=_0x2cae4a;return this['_univerInstanceService'][_0x4bdc9a(0x266)](UniverInstanceType[_0x4bdc9a(0x212)])[_0x4bdc9a(0x29c)]();}async['_getUnitDocJson'](){const _0x3ea1f2=_0x2cae4a;return this[_0x3ea1f2(0x28f)][_0x3ea1f2(0x266)](UniverInstanceType[_0x3ea1f2(0x199)])[_0x3ea1f2(0x29c)]();}[_0x2cae4a(0x295)](_0x125768,_0xca9af7){const _0x4e8c6a=_0x2cae4a,_0x1c4c1a=new URL(window[_0x4e8c6a(0x287)]['href']);return _0x1c4c1a[_0x4e8c6a(0x197)]['set'](_0x4e8c6a(0x1df),_0x125768),_0x1c4c1a[_0x4e8c6a(0x197)][_0x4e8c6a(0x2bf)](_0x4e8c6a(0x1dd),''+_0xca9af7),_0x1c4c1a[_0x4e8c6a(0x257)]();}['_refresh'](_0x298c4c){const _0x369e9f=_0x2cae4a,_0x26e9a3=this[_0x369e9f(0x28f)]['getCurrentUnitForType'](UniverInstanceType[_0x369e9f(0x212)])['getUnitId']();this[_0x369e9f(0x28f)][_0x369e9f(0x1e8)](_0x26e9a3),this['_univerInstanceService'][_0x369e9f(0x1aa)](UniverInstanceType['UNIVER_SHEET'],_0x298c4c);}[_0x2cae4a(0x24d)](_0x37978f){const _0x131f9e=_0x2cae4a;if(_0x37978f){const {code:_0x1ea84b}=_0x37978f;switch(_0x1ea84b){case ErrorCode[_0x131f9e(0x1d4)]:this[_0x131f9e(0x2ac)][_0x131f9e(0x20f)]({'type':MessageType[_0x131f9e(0x242)],'content':this[_0x131f9e(0x277)]['t'](_0x131f9e(0x2ae))});break;case ErrorCode[_0x131f9e(0x238)]:this[_0x131f9e(0x2ac)][_0x131f9e(0x20f)]({'type':MessageType[_0x131f9e(0x242)],'content':this[_0x131f9e(0x277)]['t'](_0x131f9e(0x2bd))});break;default:this[_0x131f9e(0x2ac)][_0x131f9e(0x20f)]({'type':MessageType[_0x131f9e(0x242)],'content':this['_localeService']['t'](_0x131f9e(0x1b9))});break;}return null;}return this[_0x131f9e(0x2ac)][_0x131f9e(0x20f)]({'type':MessageType['Error'],'content':this[_0x131f9e(0x277)]['t'](_0x131f9e(0x1b9))}),null;}[_0x2cae4a(0x2b4)](_0x1ed7bf){const _0x398e84=_0x2cae4a;let _0x47f836='';switch(_0x1ed7bf){case MessageType[_0x398e84(0x1d2)]:_0x47f836=this[_0x398e84(0x277)]['t'](_0x398e84(0x20e));break;case MessageType[_0x398e84(0x1c5)]:_0x47f836=this['_localeService']['t'](_0x398e84(0x1eb));break;default:break;}this[_0x398e84(0x2ac)][_0x398e84(0x20f)]({'type':_0x1ed7bf,'content':_0x47f836});}[_0x2cae4a(0x28e)](_0x53e479){const _0xf49142=_0x2cae4a;let _0x54c8f3='';switch(_0x53e479){case MessageType[_0xf49142(0x1d2)]:_0x54c8f3=this[_0xf49142(0x277)]['t'](_0xf49142(0x288));break;case MessageType[_0xf49142(0x1c5)]:_0x54c8f3=this['_localeService']['t']('exchange.uploading');break;default:break;}this['_messageService'][_0xf49142(0x20f)]({'type':_0x53e479,'content':_0x54c8f3});}[_0x2cae4a(0x1ff)](){const _0x43101d=_0x2cae4a;this[_0x43101d(0x27b)][_0x43101d(0x1af)]({'done':this[_0x43101d(0x18e)],'count':this[_0x43101d(0x185)]});}[_0x2cae4a(0x241)](_0x341058){const _0x4893b9=_0x2cae4a;this[_0x4893b9(0x185)]+=_0x341058,this[_0x4893b9(0x1ff)]();}[_0x2cae4a(0x1e6)](_0x392224){const _0x29c03e=_0x2cae4a;this[_0x29c03e(0x18e)]+=_0x392224,this[_0x29c03e(0x18e)]=Math[_0x29c03e(0x27a)](this[_0x29c03e(0x18e)],this[_0x29c03e(0x185)]),this[_0x29c03e(0x1ff)]();}['_completeProgress'](){const _0x13c817=_0x2cae4a;this[_0x13c817(0x18e)]=this[_0x13c817(0x185)],this[_0x13c817(0x1ff)]();}['_clearProgress'](){const _0x52712c=_0x2cae4a;this[_0x52712c(0x18e)]=0x0,this[_0x52712c(0x185)]=0x0,this[_0x52712c(0x1ff)]();}[_0x2cae4a(0x1ca)](_0x58e600,_0x546ed5){const _0x7d64de=_0x2cae4a,_0x227753=_0x58e600[0x0],_0x3965d8=_0x227753[_0x7d64de(0x27f)];if(getUniverInstanceTypeByFile(_0x227753)!==_0x546ed5)return this[_0x7d64de(0x2ac)][_0x7d64de(0x20f)]({'type':MessageType[_0x7d64de(0x242)],'content':this['_localeService']['t'](_0x7d64de(0x19a),_0x3965d8)}),!![];return![];}[_0x2cae4a(0x21a)](){const _0x16479e=_0x2cae4a;return this[_0x16479e(0x185)]!==0x0&&this[_0x16479e(0x18e)]!==this['_totalUploadTaskCount'];}};function _0xc00b(_0x27e229,_0x1183ac){_0x27e229=_0x27e229-0x183;const _0x2c1b37=_0x2c1b();let _0xc00b35=_0x2c1b37[_0x27e229];return _0xc00b35;}ExchangeOperateService=__decorate([__decorateParam(0x0,Inject(IUniverInstanceService)),__decorateParam(0x1,IMessageService),__decorateParam(0x2,Inject(LocaleService)),__decorateParam(0x3,Inject(IExchangeService)),__decorateParam(0x4,Inject(IUploadNotificationService)),__decorateParam(0x5,ILogService)],ExchangeOperateService);function UploadButton(_0x1e15a6){const _0x668d36=_0x2cae4a,{onClick:_0x87413,children:_0x597e86,className:_0x49e1e3}=_0x1e15a6;return jsx(_0x668d36(0x1fb),{'className':clsx(_0x668d36(0x219),_0x49e1e3),'type':_0x668d36(0x1fb),'onClick':_0x87413,'children':_0x597e86});}function UploadAgain(){const _0x78df37=_0x2cae4a,_0x14eb97=useDependency(IExchangeOperateService),_0xb762b=useDependency(LocaleService);function _0x6158b3(){const _0x5c670=_0xc00b;_0x14eb97[_0x5c670(0x271)]();}return jsx(UploadButton,{'onClick':_0x6158b3,'children':_0xb762b['t'](_0x78df37(0x1a5))});}function UploadError(){const _0x10f9c8=_0x2cae4a;return jsxs(_0x10f9c8(0x26e),{'className':_0x10f9c8(0x1ec),'children':[jsx('span',{'className':'univer-mb-3\x20univer-py-0\x20univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','children':useDependency(LocaleService)['t']('exchange.interrupt')}),jsx(UploadAgain,{})]});}function UploadSuccess(_0x3fb10b){const _0x2d5444=_0x2cae4a,{count:_0x28c9eb}=_0x3fb10b;return jsxs('div',{'className':_0x2d5444(0x217),'children':[jsx(_0x2d5444(0x235),{'className':'univer-text-sm\x20univer-text-gray-500','children':useDependency(LocaleService)['t'](_0x2d5444(0x1fc),''+_0x28c9eb)}),jsx(UploadAgain,{})]});}function UploadCancel(){const _0x42369f=_0x2cae4a,_0x1e4ea7=useDependency(IExchangeOperateService),_0x4eaa10=useDependency(LocaleService);function _0x8f53a7(){const _0x4f7ca9=_0xc00b;_0x1e4ea7[_0x4f7ca9(0x2a3)]();}return jsx(UploadButton,{'onClick':_0x8f53a7,'children':_0x4eaa10['t'](_0x42369f(0x236))});}function UploadProgress(){const _0x42624a=_0x2cae4a,{count:_0x1adffe,done:_0x21e2b2}=useObservable(useDependency(IExchangeOperateService)[_0x42624a(0x2a5)]),[_0x332beb,_0x17b35f]=useState(_0x1adffe>0x0?_0x21e2b2/_0x1adffe:0x0);return useEffect(()=>{_0x17b35f(_0x1adffe>0x0?_0x21e2b2/_0x1adffe:0x0);},[_0x1adffe,_0x21e2b2]),jsx(_0x42624a(0x26e),{'className':_0x42624a(0x2b3),'children':jsx(_0x42624a(0x26e),{'className':_0x42624a(0x1c1),'style':{'width':Math[_0x42624a(0x2a4)](_0x332beb*0x64)+'%'}})});}function Uploading(){const _0x2c81bf=_0x2cae4a;return jsxs(_0x2c81bf(0x26e),{'className':_0x2c81bf(0x1ec),'children':[jsx(_0x2c81bf(0x235),{'className':'univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','children':useDependency(LocaleService)['t']('exchange.wait')}),jsx('div',{'className':_0x2c81bf(0x293),'children':jsx(UploadProgress,{})}),jsx(UploadCancel,{})]});}const iconMap={[0x1]:jsx(SuccessIcon,{'className':_0x2cae4a(0x1e4)}),[0x0]:jsx(ClockIcon,{'className':'univer-text-blue-500'}),[0x2]:jsx(ErrorIcon,{'className':_0x2cae4a(0x22e)})};function UploadNotification(){const _0x29e6a9=_0x2cae4a,[_0x4574cf,_0xc81917]=useState(0x0),[_0x424304,_0x5cc028]=useState(![]),[_0xac6bd7,_0x24f8dd]=useState([]),_0x599952=useDependency(IUploadNotificationService),_0x152d5b=useDependency(LocaleService);useEffect(()=>{const _0x54e0ed=_0xc00b,_0x216926=_0x599952[_0x54e0ed(0x2a9)]['subscribe'](_0x19c02a=>{_0x5cc028(_0x19c02a);}),_0x41c21b=_0x599952[_0x54e0ed(0x264)][_0x54e0ed(0x18b)](_0x1abe78=>{_0x24f8dd(_0x1abe78);}),_0x216d2f=_0x599952['state$']['subscribe'](_0x3d61c5=>{_0xc81917(_0x3d61c5);});return()=>{const _0x514533=_0x54e0ed;_0x216926[_0x514533(0x270)](),_0x41c21b[_0x514533(0x270)](),_0x216d2f[_0x514533(0x270)]();};},[]);function _0x3c7b78(){_0x5cc028(![]);}function _0x4103c5(_0x1a7284){const _0x3e4d58=_0xc00b;switch(_0x1a7284){case 0x1:return _0x152d5b['t']('exchange.uploadSuccess');case 0x0:return _0x152d5b['t'](_0x3e4d58(0x267));case 0x2:return _0x152d5b['t'](_0x3e4d58(0x22c));default:return'';}}return _0x424304&&jsxs('div',{'className':_0x29e6a9(0x19d),'children':[jsxs(_0x29e6a9(0x26e),{'className':_0x29e6a9(0x21f),'children':[jsxs(_0x29e6a9(0x235),{'className':_0x29e6a9(0x29e),'children':[jsx('span',{'className':_0x29e6a9(0x239),'children':iconMap[_0x4574cf]}),jsx(_0x29e6a9(0x235),{'className':_0x29e6a9(0x1be),'children':_0x4103c5(_0x4574cf)})]}),jsx(_0x29e6a9(0x235),{'className':_0x29e6a9(0x1ad),'onClick':_0x3c7b78,'children':jsx(CloseIcon,{})})]}),jsxs('div',{'children':[_0x4574cf===0x0&&jsx(Uploading,{}),_0x4574cf===0x2&&jsx(UploadError,{}),_0xac6bd7[_0x29e6a9(0x279)]>0x0&&jsx(LinkList,{'list':_0xac6bd7}),_0x4574cf===0x1&&jsx(UploadSuccess,{'count':_0xac6bd7[_0x29e6a9(0x279)]})]})]});}function UploadNotificationContainer(){return jsx(UploadNotification,{});}let ExchangeClientController=class ExchangeClientController extends Disposable{constructor(_0x124084,_0x69e44){const _0x47b84e=_0x2cae4a;super(),this['_injector']=_0x124084,this['_uiPartsService']=_0x69e44,this[_0x47b84e(0x1a8)]();}['_registerComponents'](){const _0xfc3763=_0x2cae4a;this[_0xfc3763(0x2c3)](this[_0xfc3763(0x24e)][_0xfc3763(0x19b)](BuiltInUIPart[_0xfc3763(0x1f6)],()=>connectInjector(UploadNotificationContainer,this[_0xfc3763(0x2b9)])));}};ExchangeClientController=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,IUIPartsService)],ExchangeClientController);let UniverExchangeClientPlugin=class UniverExchangeClientPlugin extends Plugin{constructor(_0x28110b=defaultPluginConfig,_0x1bb7f5,_0x35e9f7){const _0x4ebb19=_0x2cae4a;super(),this[_0x4ebb19(0x1c9)]=_0x28110b,this[_0x4ebb19(0x2b9)]=_0x1bb7f5,this[_0x4ebb19(0x1e1)]=_0x35e9f7;const {..._0x1c2b41}=merge({},defaultPluginConfig,this[_0x4ebb19(0x1c9)]);this[_0x4ebb19(0x1e1)][_0x4ebb19(0x1e7)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY,_0x1c2b41);}[_0x2cae4a(0x2a0)](){const _0xd54899=_0x2cae4a;registerDependencies(this[_0xd54899(0x2b9)],[[ExchangeClientController],[IExchangeOperateService,{'useClass':ExchangeOperateService}],[IExchangeService,{'useClass':ExchangeService}],[IRequestService,{'useClass':RequestService}],[IUploadNotificationService,{'useClass':UploadNotificationService}]]);}[_0x2cae4a(0x1d3)](){const _0xcfd5d6=_0x2cae4a;touchDependencies(this[_0xcfd5d6(0x2b9)],[[ExchangeClientController],[IExchangeOperateService]]);}};_defineProperty(UniverExchangeClientPlugin,_0x2cae4a(0x1bf),_0x2cae4a(0x1f9)),_defineProperty(UniverExchangeClientPlugin,_0x2cae4a(0x2a2),name),_defineProperty(UniverExchangeClientPlugin,_0x2cae4a(0x1f2),version),UniverExchangeClientPlugin=__decorate([DependentOn(UniverNetworkPlugin,UniverLicensePlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,IConfigService)],UniverExchangeClientPlugin);export{EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY,ExchangeOperateService,ExchangeService,IExchangeOperateService,IExchangeService,IRequestService,IUploadNotificationService,RequestService,UniverExchangeClientPlugin,UploadNotificationContainer,UploadNotificationService,UploadNotificationState,downloadFile,getUniverInstanceTypeByFile,getUploadFile,transformDocumentDataToSnapshotJson,transformSnapshotJsonToDocumentData,transformSnapshotJsonToWorkbookData,transformWorkbookDataToSnapshotJson};
|
|
1
|
+
const _0x4a1936=_0x3e7a;(function(_0x40af13,_0x4be039){const _0x38066c=_0x3e7a,_0x32da11=_0x40af13();while(!![]){try{const _0x1872fa=parseInt(_0x38066c(0x2c1))/0x1*(-parseInt(_0x38066c(0x1e1))/0x2)+-parseInt(_0x38066c(0x234))/0x3*(parseInt(_0x38066c(0x2b8))/0x4)+parseInt(_0x38066c(0x21b))/0x5*(-parseInt(_0x38066c(0x2bb))/0x6)+parseInt(_0x38066c(0x200))/0x7*(parseInt(_0x38066c(0x1fb))/0x8)+-parseInt(_0x38066c(0x2bc))/0x9+parseInt(_0x38066c(0x212))/0xa+parseInt(_0x38066c(0x21c))/0xb*(parseInt(_0x38066c(0x294))/0xc);if(_0x1872fa===_0x4be039)break;else _0x32da11['push'](_0x32da11['shift']());}catch(_0x28a63a){_0x32da11['push'](_0x32da11['shift']());}}}(_0x4b1f,0x8e97d));import{UniverLicensePlugin}from'@univerjs-pro/license';import{DependentOn,Disposable,IConfigService,ILogService,IUniverInstanceService,Inject,Injector,LocaleService,Plugin,UniverInstanceType,createIdentifier,merge,registerDependencies,resolveWithBasePath,toDisposable,touchDependencies}from'@univerjs/core';import{HTTPResponseError,HTTPService,UniverNetworkPlugin}from'@univerjs/network';import{BuiltInUIPart,IMessageService,IUIPartsService,connectInjector,useDependency,useObservable}from'@univerjs/ui';import{ClockIcon,CloseIcon,DocMultiIcon,ErrorIcon,ShareRangeIcon,SlideMultiIcon,SuccessIcon,XlsxMultiIcon}from'@univerjs/icons';import{useEffect,useState}from'react';import{BehaviorSubject,Subject}from'rxjs';import{MessageType,Tooltip,clsx,scrollbarClassName}from'@univerjs/design';import{jsx,jsxs}from'react/jsx-runtime';import{ErrorCode,FileSource}from'@univerjs/protocol';import{b64DecodeUnicode,b64EncodeUnicode,getSheetBlocksFromSnapshot,textDecoder,textEncoder,transformDocumentDataToSnapshot,transformSnapshotToDocumentData,transformSnapshotToWorkbookData,transformWorkbookDataToSnapshot}from'@univerjs-pro/collaboration';import{deflateSync}from'fflate';const EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY=_0x4a1936(0x1f1),configSymbol=Symbol(EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY),defaultPluginConfig={};var name=_0x4a1936(0x2b1),version=_0x4a1936(0x1a8);function _typeof(_0x39f4d2){'@babel/helpers - typeof';const _0x1dfdf4=_0x4a1936;return _typeof='function'==typeof Symbol&&_0x1dfdf4(0x2d7)==typeof Symbol[_0x1dfdf4(0x289)]?function(_0x5f0de5){return typeof _0x5f0de5;}:function(_0x5434eb){const _0x324810=_0x1dfdf4;return _0x5434eb&&_0x324810(0x26a)==typeof Symbol&&_0x5434eb[_0x324810(0x2df)]===Symbol&&_0x5434eb!==Symbol[_0x324810(0x2c2)]?_0x324810(0x2d7):typeof _0x5434eb;},_typeof(_0x39f4d2);}function toPrimitive(_0x15b5e9,_0x4ffa3f){const _0x58390c=_0x4a1936;if(_0x58390c(0x1e2)!=_typeof(_0x15b5e9)||!_0x15b5e9)return _0x15b5e9;var _0x49a95e=_0x15b5e9[Symbol['toPrimitive']];if(void 0x0!==_0x49a95e){var _0x12e6a6=_0x49a95e[_0x58390c(0x29e)](_0x15b5e9,_0x4ffa3f||_0x58390c(0x215));if(_0x58390c(0x1e2)!=_typeof(_0x12e6a6))return _0x12e6a6;throw new TypeError(_0x58390c(0x25b));}return('string'===_0x4ffa3f?String:Number)(_0x15b5e9);}function toPropertyKey(_0x4a8043){var _0x29154a=toPrimitive(_0x4a8043,'string');return'symbol'==_typeof(_0x29154a)?_0x29154a:_0x29154a+'';}function _defineProperty(_0x4027bd,_0x52b68b,_0xc2d65f){const _0x3328bf=_0x4a1936;return(_0x52b68b=toPropertyKey(_0x52b68b))in _0x4027bd?Object[_0x3328bf(0x29d)](_0x4027bd,_0x52b68b,{'value':_0xc2d65f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4027bd[_0x52b68b]=_0xc2d65f,_0x4027bd;}let UploadNotificationState=function(_0x52cb5f){const _0x116c78=_0x4a1936;return _0x52cb5f[_0x52cb5f['UPLOADING']=0x0]=_0x116c78(0x2d4),_0x52cb5f[_0x52cb5f[_0x116c78(0x2ba)]=0x1]=_0x116c78(0x2ba),_0x52cb5f[_0x52cb5f[_0x116c78(0x2a4)]=0x2]=_0x116c78(0x2a4),_0x52cb5f;}({});const IUploadNotificationService=createIdentifier(_0x4a1936(0x2aa));var UploadNotificationService=class extends Disposable{constructor(){const _0x736cbb=_0x4a1936;super(),_defineProperty(this,'_visible$',new Subject()),_defineProperty(this,_0x736cbb(0x218),new Subject()),_defineProperty(this,'_list$',new Subject()),_defineProperty(this,_0x736cbb(0x2ae),this[_0x736cbb(0x1a1)]['asObservable']()),_defineProperty(this,_0x736cbb(0x26c),this[_0x736cbb(0x218)][_0x736cbb(0x25f)]()),_defineProperty(this,_0x736cbb(0x23a),this[_0x736cbb(0x27c)][_0x736cbb(0x25f)]()),_defineProperty(this,_0x736cbb(0x2be),[]);}[_0x4a1936(0x243)](){const _0x2f8edc=_0x4a1936;super[_0x2f8edc(0x243)](),this[_0x2f8edc(0x1a1)][_0x2f8edc(0x1b7)](),this[_0x2f8edc(0x218)]['complete'](),this[_0x2f8edc(0x27c)]['complete']();}['show'](){const _0x299eda=_0x4a1936;this[_0x299eda(0x1a1)][_0x299eda(0x2b4)](!![]);}[_0x4a1936(0x28b)](){const _0x5f342b=_0x4a1936;this[_0x5f342b(0x1a1)][_0x5f342b(0x2b4)](![]);}[_0x4a1936(0x1d7)](_0x7b9137){const _0x213cee=_0x4a1936;this[_0x213cee(0x218)][_0x213cee(0x2b4)](_0x7b9137);}[_0x4a1936(0x287)](_0x16ce91){const _0x1fcea0=_0x4a1936;this['_list'][_0x1fcea0(0x2d2)](_0x16ce91),this[_0x1fcea0(0x27c)][_0x1fcea0(0x2b4)](this[_0x1fcea0(0x2be)]);}};function LinkList(_0x44cba7){const _0xc0b795=_0x4a1936,{list:_0x2e3e27}=_0x44cba7;function _0x3a2bea(_0x5ced56){switch(_0x5ced56){case 0x1:return jsx(DocMultiIcon,{});case 0x2:return jsx(XlsxMultiIcon,{});case 0x3:return jsx(SlideMultiIcon,{});default:return null;}}return jsx(_0xc0b795(0x276),{'className':clsx(_0xc0b795(0x207),scrollbarClassName),'children':jsx('ul',{'className':_0xc0b795(0x2e0),'children':_0x2e3e27['map']((_0x186944,_0x44001f)=>{const _0xc21e4=_0xc0b795;return jsx('li',{'children':jsxs('a',{'className':_0xc21e4(0x1c1),'href':_0x186944[_0xc21e4(0x1b6)],'target':_0xc21e4(0x21d),'rel':_0xc21e4(0x2b0),'children':[jsxs(_0xc21e4(0x1ab),{'className':_0xc21e4(0x264),'children':[jsx(_0xc21e4(0x1ab),{'className':'univer-flex\x20univer-h-5\x20univer-text-xl','children':_0x3a2bea(_0x186944[_0xc21e4(0x2e4)])}),jsx(Tooltip,{'showIfEllipsis':!![],'title':_0x186944['name'],'asChild':!![],'children':jsx(_0xc21e4(0x1ab),{'className':_0xc21e4(0x229),'children':_0x186944[_0xc21e4(0x1b5)]})})]}),jsx(_0xc21e4(0x1ab),{'className':_0xc21e4(0x255),'children':jsx(ShareRangeIcon,{})})]})},_0x44001f);})})});}const DOCX='application/vnd.openxmlformats-officedocument.wordprocessingml.document',XLSX=_0x4a1936(0x222),XLSM=_0x4a1936(0x2ad),XLTX=_0x4a1936(0x299),PPTX=_0x4a1936(0x21a),UNIT_CONTENT_TYPE={[UniverInstanceType[_0x4a1936(0x2c7)]]:[''],[UniverInstanceType[_0x4a1936(0x2a7)]]:[DOCX],[UniverInstanceType[_0x4a1936(0x1c7)]]:[XLSX,XLSM,XLTX],[UniverInstanceType['UNIVER_SLIDE']]:[PPTX],[UniverInstanceType[_0x4a1936(0x1de)]]:[''],[UniverInstanceType[_0x4a1936(0x1a9)]]:['']},CONTENT_TYPE_EXTNAME={[DOCX]:_0x4a1936(0x2a0),[XLSX]:_0x4a1936(0x284),[XLSM]:_0x4a1936(0x1f3),[XLTX]:_0x4a1936(0x267),[PPTX]:_0x4a1936(0x22a)};function downloadFileByURL(_0x56f3fb,_0x48eb86,_0x1fb463){const _0x16e8d9=_0x4a1936,_0x3e5145=document[_0x16e8d9(0x216)]('a');_0x3e5145[_0x16e8d9(0x238)]=_0x56f3fb,_0x3e5145['style'][_0x16e8d9(0x226)]=_0x16e8d9(0x1d3),_0x3e5145[_0x16e8d9(0x1e3)]=_0x48eb86+'.'+_0x1fb463,document[_0x16e8d9(0x24d)]['appendChild'](_0x3e5145),_0x3e5145[_0x16e8d9(0x1ad)](),document[_0x16e8d9(0x24d)][_0x16e8d9(0x1ee)](_0x3e5145);}function downloadFile(_0x3b2343,_0x5305a5,_0xee9604){const _0x202772=_0x4a1936,_0x10eba5=URL[_0x202772(0x260)](_0x3b2343);downloadFileByURL(_0x10eba5,_0x5305a5,_0xee9604),URL[_0x202772(0x279)](_0x10eba5);}function getUniverInstanceTypeByFile(_0x5bf7f6){const _0x5f2fca=_0x4a1936,_0x2325f5=_0x5bf7f6[_0x5f2fca(0x1b5)]['split']('.')[_0x5f2fca(0x1f7)]();if(!_0x2325f5)return UniverInstanceType[_0x5f2fca(0x2c7)];const _0x37c6a0=getUnitTypeList();let _0x245503=UniverInstanceType[_0x5f2fca(0x2c7)];return _0x37c6a0['some'](_0x30711e=>{if(isUniverInstanceTypeFileByExt(_0x2325f5,_0x30711e))return _0x245503=_0x30711e,!![];return![];}),_0x245503;}function getUnitTypeList(){const _0x24a554=_0x4a1936;return Object['values'](UniverInstanceType)[_0x24a554(0x277)](_0x48aa9f=>typeof _0x48aa9f===_0x24a554(0x29f));}function isUniverInstanceTypeFileByExt(_0x1db9cb,_0x29e1b4){const _0x3945c4=_0x4a1936;return UNIT_CONTENT_TYPE[_0x29e1b4][_0x3945c4(0x28a)](_0x5a3402=>(CONTENT_TYPE_EXTNAME[_0x5a3402]||'')[_0x3945c4(0x1f2)]())[_0x3945c4(0x2d9)](_0x1db9cb[_0x3945c4(0x1f2)]());}function getUploadFile(_0x561b51,_0x4d49b6=![]){const _0x24ab58=_0x4a1936,_0x282c2f=_0x561b51[_0x24ab58(0x28a)](_0x5c35b9=>UNIT_CONTENT_TYPE[_0x5c35b9])['join'](',');return new Promise((_0x353e29,_0x596927)=>{const _0x438474=_0x24ab58,_0x30d887=document[_0x438474(0x216)](_0x438474(0x219));_0x30d887[_0x438474(0x2e4)]=_0x438474(0x2d8),_0x30d887[_0x438474(0x1e9)]=_0x282c2f,_0x30d887[_0x438474(0x21f)]=_0x4d49b6,_0x30d887[_0x438474(0x22d)]('change',_0x20c593=>{const _0x529aae=_0x438474,_0xfb65df=_0x20c593[_0x529aae(0x247)];if(!_0xfb65df[_0x529aae(0x1c8)]||_0xfb65df[_0x529aae(0x1c8)][_0x529aae(0x1a6)]===0x0){_0x596927(null);throw new Error(_0x529aae(0x24c));}_0x353e29(_0xfb65df[_0x529aae(0x1c8)]);}),_0x30d887[_0x438474(0x1ad)]();});}async function getFileByURL(_0x776d4b,_0x1c5736){const _0xc478d6=_0x4a1936;try{var _0x2eb774,_0x25e975,_0x41180a;const _0x1b01de=await _0x1c5736[_0xc478d6(0x256)](_0x776d4b,{'responseType':_0xc478d6(0x1a2)}),_0x20b670=_0x1b01de[_0xc478d6(0x24d)],_0xbc70e9=(_0x2eb774=(_0x25e975=_0x1b01de['headers'][_0xc478d6(0x256)](_0xc478d6(0x206)))===null||_0x25e975===void 0x0?void 0x0:_0x25e975[_0xc478d6(0x223)](',\x20'))!==null&&_0x2eb774!==void 0x0?_0x2eb774:_0xc478d6(0x1bd);let _0x3e31d8=_0xc478d6(0x1f5)+(CONTENT_TYPE_EXTNAME[_0xbc70e9]||_0xc478d6(0x284));const _0x4130a5=(_0x41180a=_0x1b01de[_0xc478d6(0x227)]['get']('content-disposition'))===null||_0x41180a===void 0x0?void 0x0:_0x41180a['join'](',\x20');if(_0x4130a5){const _0x3bddc3=_0x4130a5[_0xc478d6(0x225)](/filename=(.+)/);if(_0x3bddc3&&_0x3bddc3[0x1])_0x3e31d8=_0x3bddc3[0x1];}else _0x3e31d8=getFileNameFromURL(_0x776d4b)||_0x3e31d8;return new File([_0x20b670],_0x3e31d8,{'type':_0xbc70e9});}catch(_0xc672dd){console[_0xc478d6(0x236)](_0xc478d6(0x293),_0xc672dd);return;}}function getFileNameFromURL(_0x5a593a){const _0x2781a0=_0x4a1936;try{return new URL(_0x5a593a)[_0x2781a0(0x27d)][_0x2781a0(0x214)]('/')[_0x2781a0(0x1f7)]();}catch(_0x54429e){console[_0x2781a0(0x236)](_0x2781a0(0x1d9),_0x54429e);return;}}function bufferToFile(_0x51d00e){const _0x2385e5=new Blob([_0x51d00e['buffer']],{'type':'application/json'});return new File([_0x2385e5],'file.json');}function replaceType(_0x45d2fd,_0x495d03){const _0x1e5f1d=_0x4a1936;return _0x45d2fd[_0x1e5f1d(0x1ca)](_0x1e5f1d(0x235),_0x495d03);}function replaceTaskID(_0x5eaa51,_0x512b34){return _0x5eaa51['replace']('{taskID}',_0x512b34);}function replaceFileID(_0x5c5ed1,_0x5e3e8b){const _0x46c73=_0x4a1936;return _0x5c5ed1[_0x46c73(0x1ca)](_0x46c73(0x2b5),_0x5e3e8b);}function __decorateParam(_0x33a333,_0x585645){return function(_0x547c2a,_0x29268b){_0x585645(_0x547c2a,_0x29268b,_0x33a333);};}function __decorate(_0xb2bb88,_0x5afc35,_0x14d49b,_0x247e1f){const _0x57fae8=_0x4a1936;var _0x2b0f62=arguments[_0x57fae8(0x1a6)],_0x20d666=_0x2b0f62<0x3?_0x5afc35:_0x247e1f===null?_0x247e1f=Object[_0x57fae8(0x261)](_0x5afc35,_0x14d49b):_0x247e1f,_0x147cb6;if(typeof Reflect===_0x57fae8(0x1e2)&&typeof Reflect['decorate']==='function')_0x20d666=Reflect[_0x57fae8(0x258)](_0xb2bb88,_0x5afc35,_0x14d49b,_0x247e1f);else{for(var _0x1146cc=_0xb2bb88['length']-0x1;_0x1146cc>=0x0;_0x1146cc--)if(_0x147cb6=_0xb2bb88[_0x1146cc])_0x20d666=(_0x2b0f62<0x3?_0x147cb6(_0x20d666):_0x2b0f62>0x3?_0x147cb6(_0x5afc35,_0x14d49b,_0x20d666):_0x147cb6(_0x5afc35,_0x14d49b))||_0x20d666;}return _0x2b0f62>0x3&&_0x20d666&&Object[_0x57fae8(0x29d)](_0x5afc35,_0x14d49b,_0x20d666),_0x20d666;}const DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY='/universer-api/stream/file/upload',DEFAULT_EXCHANGE_IMPORT_SERVER_URL_KEY=_0x4a1936(0x224),DEFAULT_EXCHANGE_EXPORT_SERVER_URL_KEY=_0x4a1936(0x290),DEFAULT_EXCHANGE_GET_TASK_SERVER_URL_KEY='/universer-api/exchange/task/{taskID}',DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY=_0x4a1936(0x2ab),DEFAULT_EXCHANGE_MAX_TIMEOUT_TIME_KEY=0x1d4c0,IRequestService=createIdentifier(_0x4a1936(0x2cc));let RequestService=class RequestService{constructor(_0x5a854d,_0x381fcf){const _0xc35d59=_0x4a1936;this['_configService']=_0x5a854d,this[_0xc35d59(0x257)]=_0x381fcf,_defineProperty(this,_0xc35d59(0x1cf),new Set());}[_0x4a1936(0x243)](){}['setTaskInterrupted'](_0x23d062){const _0x331c0e=_0x4a1936;this['_taskInterrupted'][_0x331c0e(0x244)](_0x23d062);}[_0x4a1936(0x2b2)](){const _0x250328=_0x4a1936;this['_taskInterrupted'][_0x250328(0x291)]();}async[_0x4a1936(0x1e7)](_0x420108,_0x337d4d=0x0,_0x5a9f30=![]){const _0x30d732=_0x4a1936;if(typeof _0x420108==='string'){const _0x1152cb=await getFileByURL(_0x420108,this[_0x30d732(0x257)]);if(!_0x1152cb)throw new Error('upload\x20request\x20failed:\x20failed\x20to\x20read\x20source\x20file\x20from\x20url');_0x420108=_0x1152cb;}_0x337d4d=_0x337d4d||_0x420108[_0x30d732(0x2e2)];const _0xb3f2=new FormData();_0xb3f2[_0x30d732(0x2da)]('file',_0x420108);try{const _0x15d2ba=this[_0x30d732(0x240)]()+_0x30d732(0x292)+_0x337d4d+_0x30d732(0x1a4)+FileSource[_0x30d732(0x1d4)]+'&flate='+_0x5a9f30,_0xc56b45={'body':_0xb3f2},_0x5d1672=(await this[_0x30d732(0x257)][_0x30d732(0x239)](_0x15d2ba,_0xc56b45))[_0x30d732(0x24d)];if(_0x5d1672[_0x30d732(0x236)]&&_0x5d1672[_0x30d732(0x236)][_0x30d732(0x2af)]!==ErrorCode['OK'])throw new Error(this[_0x30d732(0x28e)](_0x30d732(0x2b7),_0x5d1672[_0x30d732(0x236)]));return _0x5d1672;}catch(_0x2b9a3a){if(_0x2b9a3a instanceof Error)throw _0x2b9a3a;throw new Error(this['_buildHttpErrorMessage']('upload\x20request\x20failed',_0x2b9a3a));}}async['import'](_0x5b0a29){const _0x59ff8e=_0x4a1936,{fileID:_0x2d763b,type:_0x5d67b8,outputType:_0x142be9,minSheetColumnCount:_0x4cba99,minSheetRowCount:_0x597c16}=_0x5b0a29;try{const _0x210367=replaceType(this[_0x59ff8e(0x265)](),''+_0x5d67b8),_0xbbf74f={'body':{'fileID':_0x2d763b,'outputType':_0x142be9,'minSheetColumnCount':_0x4cba99,'minSheetRowCount':_0x597c16}},_0x2e0a92=(await this['_httpService'][_0x59ff8e(0x239)](_0x210367,_0xbbf74f))['body'];if(_0x2e0a92['error']&&_0x2e0a92[_0x59ff8e(0x236)][_0x59ff8e(0x2af)]!==ErrorCode['OK'])return;return _0x2e0a92;}catch(_0x3e643c){return;}}async['export'](_0x1e04ab){const _0x47ba4d=_0x4a1936,{unitID:_0x3036a2,jsonID:_0x54b832,type:_0x595327,sscSwitch:_0x1b26e1,useImageUrl:_0x4cd050,ignoreTableExport:_0x59ddea}=_0x1e04ab;try{const _0x20a144=replaceType(this['_getExportURL'](),''+_0x595327),_0x5816a1={'body':{'unitID':_0x3036a2,'jsonID':_0x54b832,'type':_0x595327,'sscSwitch':_0x1b26e1,'useImageUrl':_0x4cd050,'ignoreTableExport':_0x59ddea}},_0x10d457=(await this[_0x47ba4d(0x257)][_0x47ba4d(0x239)](_0x20a144,_0x5816a1))['body'];if(_0x10d457[_0x47ba4d(0x236)]&&_0x10d457['error']['code']!==ErrorCode['OK'])return;return _0x10d457;}catch(_0x55abab){return;}}async[_0x4a1936(0x2d1)](_0x407e2a){return new Promise((_0x1e764f,_0x5958a9)=>{const _0xd30176=_0x3e7a;try{let _0x278f91=0x0;const _0x33f720=replaceTaskID(this[_0xd30176(0x20c)](),''+_0x407e2a),_0xbc1f54=this[_0xd30176(0x1f8)](),_0x269812=async()=>{const _0x2ae777=_0xd30176;if(this[_0x2ae777(0x1cf)]['has'](_0x407e2a))return;const _0x6f99b3=(await this[_0x2ae777(0x257)]['get'](_0x33f720))[_0x2ae777(0x24d)];if(_0x6f99b3['error']&&_0x6f99b3[_0x2ae777(0x236)][_0x2ae777(0x2af)]===ErrorCode['OK']){if(_0x6f99b3[_0x2ae777(0x1ea)]==='done')_0x1e764f(_0x6f99b3);else{if(_0x6f99b3[_0x2ae777(0x1ea)]===_0x2ae777(0x1cd)){let _0x424fd7=0x3e8;if(_0x278f91>=_0xbc1f54){_0x5958a9(_0x6f99b3);return;}else{if(_0x278f91>=0x7530)_0x424fd7=0x1388;}_0x278f91+=_0x424fd7,setTimeout(_0x269812,_0x424fd7);}else _0x5958a9(_0x6f99b3);}}else _0x5958a9(_0x6f99b3);};_0x269812();}catch(_0x4f72d7){_0x5958a9(_0x4f72d7 instanceof Error?_0x4f72d7:new Error(String(_0x4f72d7)));}});}async['signUrl'](_0x4f140d){try{const _0xd3124d=replaceFileID(this['_getSignURL'](),''+_0x4f140d);return(await this['_httpService']['get'](_0xd3124d))['body'];}catch(_0x70511b){return;}}async[_0x4a1936(0x20b)](_0x31133d){const _0x3bc376=_0x4a1936;try{return(await this['_httpService']['get'](_0x31133d,{'responseType':_0x3bc376(0x23f)}))[_0x3bc376(0x24d)];}catch(_0x34a7f9){return;}}[_0x4a1936(0x28e)](_0x4ffb18,_0x58495c){const _0x4a2687=_0x4a1936,_0x127cb2=this[_0x4a2687(0x1f6)](_0x58495c);if(!_0x127cb2)return _0x4ffb18;return _0x4ffb18+':\x20'+_0x127cb2;}[_0x4a1936(0x1aa)](_0x440067,_0x3ca920){const _0x229125=_0x4a1936;if(_0x3ca920 instanceof HTTPResponseError){const _0x777218=typeof _0x3ca920[_0x229125(0x1ea)]===_0x229125(0x29f)?''+_0x3ca920['status']+(_0x3ca920[_0x229125(0x213)]?'\x20'+_0x3ca920[_0x229125(0x213)]:''):void 0x0,_0x10c1b7=this['_extractErrorDetail'](_0x3ca920[_0x229125(0x236)]);if(_0x777218&&_0x10c1b7)return _0x440067+_0x229125(0x2d0)+_0x777218+_0x229125(0x1b1)+_0x10c1b7;if(_0x777218)return _0x440067+_0x229125(0x2d0)+_0x777218;if(_0x10c1b7)return _0x440067+':\x20'+_0x10c1b7;return _0x440067;}const _0x657340=this[_0x229125(0x1f6)](_0x3ca920);if(!_0x657340)return _0x440067;return _0x440067+':\x20'+_0x657340;}[_0x4a1936(0x1f6)](_0xc9bd80){const _0x51e0ae=_0x4a1936;if(typeof _0xc9bd80===_0x51e0ae(0x1eb)){const _0x2a833d=_0xc9bd80[_0x51e0ae(0x1b0)]();return _0x2a833d['length']>0x0?_0x2a833d:void 0x0;}if(_0xc9bd80 instanceof Error)return this['_extractErrorDetail'](_0xc9bd80[_0x51e0ae(0x1f4)]);if(!_0xc9bd80||typeof _0xc9bd80!=='object'||Array['isArray'](_0xc9bd80))return;const _0x1d4400=_0xc9bd80,_0x1d681b=this[_0x51e0ae(0x1f6)](_0x1d4400[_0x51e0ae(0x1f4)]);if(_0x1d681b)return _0x1d681b;if(_0x1d4400[_0x51e0ae(0x236)]&&typeof _0x1d4400[_0x51e0ae(0x236)]===_0x51e0ae(0x1e2)&&!Array['isArray'](_0x1d4400[_0x51e0ae(0x236)])){const _0x20a17e=this['_extractErrorDetail'](_0x1d4400['error']);if(_0x20a17e)return _0x20a17e;}}[_0x4a1936(0x240)](){const _0x2896bf=_0x4a1936;var _0x235ec9;const _0x26b925=this['_configService'][_0x2896bf(0x205)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x235ec9=_0x26b925===null||_0x26b925===void 0x0?void 0x0:_0x26b925[_0x2896bf(0x211)])!==null&&_0x235ec9!==void 0x0?_0x235ec9:DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY;}['_getImportURL'](){const _0x56ab34=_0x4a1936;var _0x1d3dda;const _0x490efb=this['_configService'][_0x56ab34(0x205)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1d3dda=_0x490efb===null||_0x490efb===void 0x0?void 0x0:_0x490efb['importServerUrl'])!==null&&_0x1d3dda!==void 0x0?_0x1d3dda:DEFAULT_EXCHANGE_IMPORT_SERVER_URL_KEY;}[_0x4a1936(0x2ca)](){const _0x398582=_0x4a1936;var _0x511412;const _0x360ac8=this[_0x398582(0x2e1)][_0x398582(0x205)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x511412=_0x360ac8===null||_0x360ac8===void 0x0?void 0x0:_0x360ac8['exportServerUrl'])!==null&&_0x511412!==void 0x0?_0x511412:DEFAULT_EXCHANGE_EXPORT_SERVER_URL_KEY;}['_getTaskURL'](){const _0x4190c4=_0x4a1936;var _0x191c18;const _0x319045=this[_0x4190c4(0x2e1)]['getConfig'](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x191c18=_0x319045===null||_0x319045===void 0x0?void 0x0:_0x319045[_0x4190c4(0x2a1)])!==null&&_0x191c18!==void 0x0?_0x191c18:DEFAULT_EXCHANGE_GET_TASK_SERVER_URL_KEY;}[_0x4a1936(0x1dd)](){const _0x161c5a=_0x4a1936;var _0x580c2b;const _0xbaf671=this[_0x161c5a(0x2e1)][_0x161c5a(0x205)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x580c2b=_0xbaf671===null||_0xbaf671===void 0x0?void 0x0:_0xbaf671[_0x161c5a(0x1a0)])!==null&&_0x580c2b!==void 0x0?_0x580c2b:DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY;}[_0x4a1936(0x1f8)](){const _0xa2398b=_0x4a1936;var _0x1be9e3;const _0x33c0c5=this[_0xa2398b(0x2e1)]['getConfig'](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1be9e3=_0x33c0c5===null||_0x33c0c5===void 0x0?void 0x0:_0x33c0c5[_0xa2398b(0x27a)])!==null&&_0x1be9e3!==void 0x0?_0x1be9e3:DEFAULT_EXCHANGE_MAX_TIMEOUT_TIME_KEY;}};RequestService=__decorate([__decorateParam(0x0,IConfigService),__decorateParam(0x1,Inject(HTTPService))],RequestService);function transformWorkbookSnapshotMetaToString(_0x2cf10a){const _0x468c67=_0x4a1936,_0x256afd=_0x2cf10a['workbook'];if(!_0x256afd)return null;const _0x3865e8={};if(_0x256afd[_0x468c67(0x266)])Object[_0x468c67(0x281)](_0x256afd[_0x468c67(0x266)])['forEach'](_0x56aa53=>{const _0x5eaed3=_0x468c67,_0x20ed34=_0x256afd[_0x5eaed3(0x266)][_0x56aa53];_0x3865e8[_0x56aa53]={..._0x20ed34,'originalMeta':b64EncodeUnicode(textDecoder[_0x5eaed3(0x1ff)](_0x20ed34[_0x5eaed3(0x2b6)]))};});const _0x960ddc=b64EncodeUnicode(textDecoder['decode'](_0x256afd[_0x468c67(0x2b6)]));return{..._0x2cf10a,'workbook':{..._0x256afd,'originalMeta':_0x960ddc,'sheets':_0x3865e8},'doc':{}};}function _0x4b1f(){const _0x2edff0=['_addTotalCount','_getUnitIDDoc','button','text','_getUploadFileURL','exchange.tooLarge','exchange.networkError','dispose','add','taskID','importDOCXToSnapshot','currentTarget','univer-h-7\x20univer-cursor-pointer\x20univer-select-none\x20univer-rounded-md\x20univer-border-0\x20univer-border-transparent\x20univer-bg-transparent\x20univer-px-2\x20univer-py-0\x20univer-text-sm\x20univer-text-primary-600\x20univer-transition-all\x20univer-duration-150\x20hover:univer-bg-primary-50','pluginName','success','_progress$','No\x20file\x20selected','body','origin','copyFileMeta','FileId','_getIgnoreTableExport','blockID','Failed\x20to\x20get\x20unitID\x20from\x20task','Method\x20not\x20implemented.','univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-border-none\x20univer-bg-transparent\x20univer-p-0\x20univer-text-base\x20univer-text-gray-600\x20univer-outline-none\x20univer-transition-colors\x20hover:univer-bg-gray-200\x20dark:!univer-text-gray-200\x20dark:hover:!univer-bg-gray-600','get','_httpService','decorate','fileID','INTERNAL_ERROR','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_sheetBlockCache','Failed\x20to\x20get\x20taskID\x20from\x20import\x20response','getCurrentUnitForType','asObservable','createObjectURL','getOwnPropertyDescriptor','data','minSheetColumnCount','univer-flex\x20univer-w-[calc(100%-48px)]\x20univer-items-center','_getImportURL','sheets','xltx','unitID','_getMinSheetColumnCount','function','outputType','state$','importXLSXToUnitId','_importTaskId','sign\x20url\x20error','univer-h-1.5\x20univer-rounded-lg\x20univer-bg-primary-600\x20univer-transition-[width]\x20univer-duration-500','exchange.downloading','_showUploadMessage','_exchangeService','univer-flex\x20univer-size-6\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-border-none\x20univer-bg-transparent\x20univer-text-gray-500\x20univer-transition-colors\x20hover:univer-bg-gray-200\x20dark:!univer-bg-gray-600','exchange.uploading','div','filter','upload\x20failed:\x20FileId\x20is\x20empty','revokeObjectURL','maxTimeoutTime','getResourcesRequest','_list$','pathname','upload\x20failed:\x20missing\x20FileId\x20in\x20response','catch','exportXLSXByUnitId','keys','CONNECTOR_DATA_TOO_LARGE','univer-text-red-500','xlsx','_completeProgress','interruptImportTask','pushLink','_uploadNotificationService','iterator','map','hide','_uiPartsService','_signUrl','_buildProtocolErrorMessage','Success','/universer-api/exchange/{type}/export','clear','?size=','Error\x20fetching\x20file\x20from\x20URL:','1812NNctVm','jsonID','disableCellImageConversion','exchange.internalError','getCurrentUnitOfType','application/vnd.openxmlformats-officedocument.spreadsheetml.template','setTaskInterrupted','_registerComponents','importFileToUnitId','defineProperty','call','number','docx','getTaskServerUrl','rev','_exportBySnapshot','ERROR','options','_getUnitDocJson','UNIVER_DOC','disposeUnit','UNDEFINED','univer-pro.exchange-client.upload-notification.service','/universer-api/file/{fileID}/sign-url','UNIVER_EXCHANGE_CLIENT_PLUGIN','application/vnd.ms-excel.sheet.macroEnabled.12','visible$','code','noreferrer','@univerjs-pro/exchange-client','clearTaskInterrupted','snapshot','next','{fileID}','originalMeta','upload\x20request\x20failed','8UZkXMy','exchange.wait','SUCCESS','48LPNpDa','2913003Scqyjb','exportXLSXBySnapshot','_list','resolve','registerComponent','17mSvqOs','prototype','progress$','import\x20error','exchange.cancel','show','UNIVER_UNKNOWN','_importToSnapshot','importXLSXToSnapshot','_getExportURL','Get\x20outputType\x20error','univer-pro.exchange-client.request.service','floor','_totalUploadTaskCount','getUnitOnRev',':\x20HTTP\x20','getTask','unshift','searchParams','UPLOADING','_addDoneTask','_requestState$','symbol','file','includes','append','doc','exchange.uploadSuccessTip','onStarting','_import','constructor','univer-m-0\x20univer-flex\x20univer-list-none\x20univer-flex-col\x20univer-gap-2\x20univer-p-0','_configService','size','sheetBlocks','type','downloadEndpointUrl','signUrlServerUrl','_visible$','blob','getUnitId','&source=','exchange.interrupt','length','univer-pl-2\x20univer-pr-4','0.22.1','UNRECOGNIZED','_buildHttpErrorMessage','span','_getLinkByUnitId','click','univer-text-green-500','parse','trim','\x20-\x20','enableServerSideComputing','encode','_getDisableCellImageConversion','name','link','complete','title','_getEnableServerSideComputing','_clearProgress','exchange.fileTypeError','onReady','application/octet-stream','_getUnitID','block\x20is\x20required','packageName','univer-flex\x20univer-justify-between\x20univer-rounded\x20univer-border-none\x20univer-bg-transparent\x20univer-px-2\x20univer-py-1\x20univer-text-gray-900\x20univer-no-underline\x20univer-outline-none\x20univer-transition-colors\x20hover:univer-bg-gray-200\x20dark:!univer-text-white\x20dark:hover:!univer-bg-gray-600','_export','saveSheetBlock','univer-pro.exchange-client.operate.service','url','set','UNIVER_SHEET','files','workbook.json','replace','univer-mx-0\x20univer-mb-3\x20univer-mt-4\x20univer-h-1.5\x20univer-w-[324px]\x20univer-rounded-lg\x20univer-bg-gray-200','_getUnitName','pending','_getUnitJson','_taskInterrupted','unsubscribe','_uploadTaskNotDone','_messageService','none','HttpImport','import','interrupt','updateState','version','Error\x20getting\x20file\x20name\x20from\x20URL:','_fileTypeError','_univerInstanceService','Failed\x20to\x20get\x20fileID\x20from\x20task','_getSignURL','UNIVER_PROJECT','subscribe','univer-ml-1.5\x20univer-font-semibold\x20univer-leading-6\x20univer-text-gray-900\x20dark:!univer-text-white','127934GSXTYm','object','download','_getMinSheetRowCount','_upload','getDeserializedSheetBlock','upload','fetchMissingChangesets','accept','status','string','Failed\x20to\x20get\x20jsonID\x20from\x20task','application/json','removeChild','getSheetBlock','Error','exchange-client.config','toLowerCase','xlsm','message','file.','_extractErrorDetail','pop','_getMaxPollingTime','toString','_doneUploadTaskCount','8CtzhbK','exportDOCXByUnitId','univer-h-6\x20univer-text-2xl','_importFileToUnitId','decode','1312689zGPWLr','export','updateSnapshot','exchange.uploadSuccess','Failed\x20to\x20transform\x20snapshot\x20to\x20string','getConfig','Content-Type','univer-mt-5\x20univer-max-h-72\x20univer-overflow-y-auto\x20univer-overflow-x-hidden','_showNetworkError','_injector','requestState$','getTextFromUrl','_getTaskURL','saveSnapshot','_requestService','registerLink','importDOCXToUnitId','uploadFileServerUrl','3950790GvITIb','statusText','split','default','createElement','Info','_state$','input','application/vnd.openxmlformats-officedocument.presentationml.presentation','444565dTNqIf','182941EzkbGs','_blank','exportDOCXBySnapshot','multiple','univer-mt-3\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-2\x20univer-pr-1','_emitProgress','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','join','/universer-api/exchange/{type}/import','match','display','headers','_config','univer-ml-1\x20univer-truncate\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','pptx','_showDownloadMessage','export\x20error','addEventListener','minSheetRowCount','univer-fixed\x20univer-bottom-12\x20univer-right-3\x20univer-z-[1000]\x20univer-box-border\x20univer-flex\x20univer-w-[372px]\x20univer-flex-col\x20univer-rounded-md\x20univer-bg-white\x20univer-px-3\x20univer-pb-4\x20univer-pt-5\x20univer-shadow-md','.json','getSnapshot','_localeService','Warning','581124lFPnqw','{type}','error','stringify','href','post','list$','disposeWithMe'];_0x4b1f=function(){return _0x2edff0;};return _0x4b1f();}function transformDocumentSnapshotMetaToString(_0x2183a0){const _0x272bc3=_0x4a1936,_0x14764d=_0x2183a0[_0x272bc3(0x2db)];if(!_0x14764d)return null;const _0x30fd91=b64EncodeUnicode(textDecoder[_0x272bc3(0x1ff)](_0x14764d[_0x272bc3(0x2b6)]));return{..._0x2183a0,'workbook':{},'doc':{..._0x14764d,'originalMeta':_0x30fd91}};}function transformSheetBlockMetaToString(_0x4a65f7){const _0x14ccfe={};return _0x4a65f7['forEach'](_0x474588=>{const _0x4b0375=_0x3e7a;_0x14ccfe[_0x474588['id']]={..._0x474588,'data':b64EncodeUnicode(textDecoder[_0x4b0375(0x1ff)](_0x474588['data']))};}),_0x14ccfe;}async function transformWorkbookDataToSnapshotJson(_0x469553){const _0x52cf0d=_0x4a1936;var _0x1af96c;const _0x5cce2e={'metadata':void 0x0},_0x3570cd=_0x469553['id'],_0x56200d=(_0x1af96c=_0x469553[_0x52cf0d(0x2a2)])!==null&&_0x1af96c!==void 0x0?_0x1af96c:0x0,_0x1aa259=new ClientSnapshotServerService(),{snapshot:_0xecb05}=await transformWorkbookDataToSnapshot(_0x5cce2e,_0x469553,_0x3570cd,_0x56200d,_0x1aa259),_0x5dba9a=await getSheetBlocksFromSnapshot(_0xecb05,_0x1aa259),_0x5d2a65=transformWorkbookSnapshotMetaToString(_0xecb05);if(!_0x5d2a65)throw new Error(_0x52cf0d(0x204));return{'snapshot':_0x5d2a65,'sheetBlocks':transformSheetBlockMetaToString(_0x5dba9a)};}async function transformDocumentDataToSnapshotJson(_0x2850d9){const _0x4795fa=_0x4a1936;var _0x3e5ba3;const _0x30b2a7={'metadata':void 0x0},_0x445d02=_0x2850d9['id'],{snapshot:_0x2a796e}=await transformDocumentDataToSnapshot(_0x30b2a7,_0x2850d9,_0x445d02,(_0x3e5ba3=_0x2850d9[_0x4795fa(0x2a2)])!==null&&_0x3e5ba3!==void 0x0?_0x3e5ba3:0x0,new ClientSnapshotServerService()),_0x24375b=transformDocumentSnapshotMetaToString(_0x2a796e);if(!_0x24375b)throw new Error(_0x4795fa(0x204));return{'snapshot':_0x24375b,'sheetBlocks':{}};}async function transformSnapshotJsonToWorkbookData(_0x522318){const _0x2f4087=_0x4a1936,_0x4587ab=_0x522318['snapshot'],_0x236e32=_0x522318[_0x2f4087(0x2e3)]||{};return await transformSnapshotToWorkbookData(_0x4587ab,Object[_0x2f4087(0x281)](_0x236e32)[_0x2f4087(0x28a)](_0x2a52f8=>_0x236e32[_0x2a52f8])[_0x2f4087(0x28a)](_0x13fc13=>{const _0x35ac6e=_0x2f4087;return{..._0x13fc13,'data':_0x13fc13[_0x35ac6e(0x262)]?JSON['parse'](b64DecodeUnicode(_0x13fc13[_0x35ac6e(0x262)])):void 0x0};}));}function transformSnapshotJsonToDocumentData(_0x11d843){const _0x310ca5=_0x4a1936,_0x217868=_0x11d843[_0x310ca5(0x2b3)];return transformSnapshotToDocumentData(_0x217868);}var ClientSnapshotServerService=class{constructor(){const _0x1e5b9e=_0x4a1936;_defineProperty(this,_0x1e5b9e(0x25c),new Map());}[_0x4a1936(0x2cf)](){const _0xc41f35=_0x4a1936;return Promise[_0xc41f35(0x2bf)]({'snapshot':{'unitID':'','type':UniverInstanceType['UNIVER_SHEET'],'rev':0x0,'workbook':void 0x0,'doc':void 0x0},'changesets':[],'error':{'code':ErrorCode['OK'],'message':''}});}[_0x4a1936(0x1ef)](_0x2aa779,_0x44defe){const _0x3f9755=_0x4a1936,_0x1b9dbd=this[_0x3f9755(0x25c)]['get'](_0x44defe[_0x3f9755(0x252)]);return Promise[_0x3f9755(0x2bf)]({'block':_0x1b9dbd,'error':{'code':ErrorCode['OK'],'message':''}});}[_0x4a1936(0x1e6)](_0x46f728,_0xba415d){const _0x27e595=_0x4a1936,_0x482f8c=this['_sheetBlockCache'][_0x27e595(0x256)](_0xba415d['blockID']);return Promise[_0x27e595(0x2bf)]({'block':_0x482f8c===void 0x0?void 0x0:{..._0x482f8c,'data':JSON[_0x27e595(0x1af)](textDecoder[_0x27e595(0x1ff)](_0x482f8c[_0x27e595(0x262)]))},'error':{'code':ErrorCode['OK'],'message':''}});}[_0x4a1936(0x1e8)](){const _0x3ff9d4=_0x4a1936;return Promise[_0x3ff9d4(0x2bf)]({'changesets':[],'error':{'code':ErrorCode['OK'],'message':''}});}[_0x4a1936(0x27b)](){return Promise['resolve']({'resources':{},'error':{'code':ErrorCode['OK'],'message':''}});}[_0x4a1936(0x20d)](){const _0x5cf8db=_0x4a1936;return Promise[_0x5cf8db(0x2bf)]({'error':{'code':ErrorCode['OK'],'message':''}});}[_0x4a1936(0x202)](){const _0x44a79d=_0x4a1936;return Promise[_0x44a79d(0x2bf)]({'error':{'code':ErrorCode['OK'],'message':''}});}[_0x4a1936(0x1c3)](_0x309a83,_0x51800b){const _0xe9dfe5=_0x4a1936,{block:_0x50a7f5}=_0x51800b;if(!_0x50a7f5)return Promise[_0xe9dfe5(0x2bf)]({'error':{'code':ErrorCode[_0xe9dfe5(0x2a9)],'message':_0xe9dfe5(0x1bf)},'blockID':''});return this[_0xe9dfe5(0x25c)][_0xe9dfe5(0x1c6)](_0x50a7f5['id'],_0x50a7f5),Promise[_0xe9dfe5(0x2bf)]({'error':{'code':ErrorCode['OK'],'message':''},'blockID':_0x50a7f5['id']});}['saveChangeset'](){return Promise['resolve']({'error':{'code':ErrorCode['OK'],'message':''},'concurrent':[]});}[_0x4a1936(0x24f)](){return Promise['resolve']({'error':void 0x0,'fileMetaId':''});}['getLatestCsReqIdBySid'](){return Promise['resolve']({'error':void 0x0,'latestReqID':0x0});}};const IExchangeService=createIdentifier('univer-pro.exchange-client.exchange.service');let ExchangeService=class ExchangeService extends Disposable{constructor(_0x94064c,_0x287221,_0x437f92){const _0x33f70a=_0x4a1936;super(),this[_0x33f70a(0x2e1)]=_0x94064c,this[_0x33f70a(0x257)]=_0x287221,this['_requestService']=_0x437f92,_defineProperty(this,_0x33f70a(0x26e),null),_defineProperty(this,_0x33f70a(0x2d6),new Subject()),_defineProperty(this,_0x33f70a(0x20a),this['_requestState$'][_0x33f70a(0x25f)]());}[_0x4a1936(0x243)](){const _0x1c6ed9=_0x4a1936;super[_0x1c6ed9(0x243)](),this[_0x1c6ed9(0x2d6)][_0x1c6ed9(0x1b7)]();}async['importDOCXToSnapshot'](_0x442fb7){const _0x4fd9fa=_0x4a1936,_0x843c04=await this[_0x4fd9fa(0x2c8)](_0x442fb7,UniverInstanceType[_0x4fd9fa(0x2a7)]);if(!_0x843c04||!_0x843c04[_0x4fd9fa(0x2b3)])return;const _0x816caa=transformSnapshotJsonToDocumentData(_0x843c04);if(!_0x816caa)return;return _0x816caa;}async[_0x4a1936(0x1fc)](_0x52dc7f){const _0x5ef902=_0x4a1936;return this[_0x5ef902(0x1c2)](_0x52dc7f,0x1,UniverInstanceType[_0x5ef902(0x2a7)]);}async[_0x4a1936(0x21e)](_0x5ad9f2){const _0x2fdf91=_0x4a1936,_0x45df7e=await transformDocumentDataToSnapshotJson(_0x5ad9f2);return this[_0x2fdf91(0x2a3)](_0x45df7e,UniverInstanceType[_0x2fdf91(0x2a7)]);}async['importXLSXToSnapshot'](_0x18c259){const _0x5b53f1=_0x4a1936,_0x287187=await this[_0x5b53f1(0x2c8)](_0x18c259,UniverInstanceType[_0x5b53f1(0x1c7)]);if(!_0x287187)return;const _0x817c90=await transformSnapshotJsonToWorkbookData(_0x287187);if(!_0x817c90)return;return _0x817c90;}async[_0x4a1936(0x280)](_0x40b0d3){const _0x16e08c=_0x4a1936;return this[_0x16e08c(0x1c2)](_0x40b0d3,0x1,UniverInstanceType[_0x16e08c(0x1c7)]);}async['exportXLSXBySnapshot'](_0x42d59e){const _0x15a483=_0x4a1936,_0x1dc120=await transformWorkbookDataToSnapshotJson(_0x42d59e);return this['_exportBySnapshot'](_0x1dc120,UniverInstanceType[_0x15a483(0x1c7)]);}async[_0x4a1936(0x29c)](_0x1cc24f,_0xf4154a){const _0x1494bf=_0x4a1936;var _0x4d9654,_0x44c467;const _0x3df3cc=await this[_0x1494bf(0x1e5)](_0x1cc24f);if(!_0x3df3cc)return;const _0xe91513=await this[_0x1494bf(0x2de)](_0x3df3cc,0x1,_0xf4154a);if(!_0xe91513)return;this['_importTaskId']=_0xe91513,this[_0x1494bf(0x20e)][_0x1494bf(0x2b2)]();const _0x1ad608=await this[_0x1494bf(0x20e)][_0x1494bf(0x2d1)](_0xe91513)[_0x1494bf(0x27f)](_0x462707=>{const _0x585bd6=_0x1494bf;var _0x2bf487;const _0x3c0490=_0x462707 instanceof Error?_0x462707[_0x585bd6(0x1f4)]:(_0x2bf487=_0x462707[_0x585bd6(0x236)])===null||_0x2bf487===void 0x0?void 0x0:_0x2bf487['message'];this[_0x585bd6(0x2d6)][_0x585bd6(0x2b4)]({'error':{'code':ErrorCode[_0x585bd6(0x1a9)],'message':_0x3c0490||''},'state':0x3});});if(!_0x1ad608)return;const _0x1e3983=(_0x4d9654=_0x1ad608[_0x1494bf(0x1d5)])===null||_0x4d9654===void 0x0?void 0x0:_0x4d9654[_0x1494bf(0x26b)],_0x1607b4=((_0x44c467=_0x1ad608[_0x1494bf(0x1d5)])===null||_0x44c467===void 0x0?void 0x0:_0x44c467[_0x1494bf(0x268)])||'';if(_0x1e3983!==0x1){this[_0x1494bf(0x2d6)][_0x1494bf(0x2b4)]({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':_0x1494bf(0x2cb)},'state':0x3});return;}if(_0x1607b4[_0x1494bf(0x1a6)]===0x0){this[_0x1494bf(0x2d6)][_0x1494bf(0x2b4)]({'error':{'code':ErrorCode[_0x1494bf(0x1a9)],'message':_0x1494bf(0x253)},'state':0x3});return;}return this[_0x1494bf(0x2d6)][_0x1494bf(0x2b4)]({'error':_0x1ad608[_0x1494bf(0x236)],'state':0x3}),_0x1607b4;}async['importWorkbookDataToUnitId'](_0x3b493a){const _0x491908=_0x4a1936,_0x3f7c2f=await transformWorkbookDataToSnapshotJson(_0x3b493a),_0x260432=typeof _0x3b493a['id']===_0x491908(0x1eb)&&_0x3b493a['id']['trim']()?_0x3b493a['id'][_0x491908(0x1b0)]()+_0x491908(0x230):_0x491908(0x1c9),_0x7fe281=new File([JSON['stringify'](_0x3f7c2f)],_0x260432,{'type':_0x491908(0x1ed)});return this['importFileToUnitId'](_0x7fe281,UniverInstanceType[_0x491908(0x1c7)]);}[_0x4a1936(0x286)](){const _0x45be2c=_0x4a1936;if(this[_0x45be2c(0x26e)])this['_requestService'][_0x45be2c(0x29a)](this[_0x45be2c(0x26e)]);}async[_0x4a1936(0x2c8)](_0x16d475,_0x234fc5){const _0x513f7d=_0x4a1936;var _0x5e0d46,_0x33d8e9;const _0x5090f3=await this['_upload'](_0x16d475);if(!_0x5090f3)return;const _0x5a764b=await this['_import'](_0x5090f3,0x2,_0x234fc5);if(!_0x5a764b)return;this['_importTaskId']=_0x5a764b,this[_0x513f7d(0x20e)]['clearTaskInterrupted']();const _0x5f4ce2=await this['_requestService'][_0x513f7d(0x2d1)](_0x5a764b)[_0x513f7d(0x27f)](_0x5a3f38=>{const _0x16b445=_0x513f7d;var _0x196b89;const _0x1aeb7f=_0x5a3f38 instanceof Error?_0x5a3f38[_0x16b445(0x1f4)]:(_0x196b89=_0x5a3f38[_0x16b445(0x236)])===null||_0x196b89===void 0x0?void 0x0:_0x196b89[_0x16b445(0x1f4)];this[_0x16b445(0x2d6)][_0x16b445(0x2b4)]({'error':{'code':ErrorCode[_0x16b445(0x1a9)],'message':_0x1aeb7f||''},'state':0x3});});if(!_0x5f4ce2)return;const _0x1f6bab=(_0x5e0d46=_0x5f4ce2[_0x513f7d(0x1d5)])===null||_0x5e0d46===void 0x0?void 0x0:_0x5e0d46[_0x513f7d(0x26b)],_0x7f57cc=((_0x33d8e9=_0x5f4ce2[_0x513f7d(0x1d5)])===null||_0x33d8e9===void 0x0?void 0x0:_0x33d8e9[_0x513f7d(0x295)])||'';if(_0x1f6bab!==0x2){this[_0x513f7d(0x2d6)][_0x513f7d(0x2b4)]({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':_0x513f7d(0x2cb)},'state':0x3});return;}if(_0x7f57cc[_0x513f7d(0x1a6)]===0x0){this[_0x513f7d(0x2d6)]['next']({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':_0x513f7d(0x1ec)},'state':0x3});return;}this['_requestState$']['next']({'error':_0x5f4ce2['error'],'state':0x3});const _0x12b0a0=await this[_0x513f7d(0x28d)](_0x7f57cc);if(!_0x12b0a0)return;const _0x3036ee=await this[_0x513f7d(0x20e)][_0x513f7d(0x20b)](_0x12b0a0);if(!_0x3036ee){this['_requestState$'][_0x513f7d(0x2b4)]({'error':{'code':ErrorCode[_0x513f7d(0x1a9)],'message':'Failed\x20to\x20get\x20text\x20from\x20url'},'state':0x5});return;}try{const _0x5c982d=JSON[_0x513f7d(0x1af)](_0x3036ee);return this[_0x513f7d(0x2d6)][_0x513f7d(0x2b4)]({'error':{'code':ErrorCode['OK'],'message':_0x513f7d(0x24a)},'state':0x5}),_0x5c982d;}catch{this[_0x513f7d(0x2d6)]['next']({'error':{'code':ErrorCode[_0x513f7d(0x1a9)],'message':'Failed\x20to\x20parse\x20json'},'state':0x5});}}async[_0x4a1936(0x2a3)](_0x50b8cf,_0x212c4c){const _0x4d73fe=_0x4a1936,_0x16ea77=JSON[_0x4d73fe(0x237)](_0x50b8cf),_0x21cff5=textEncoder[_0x4d73fe(0x1b3)](_0x16ea77),_0x65a4db=deflateSync(_0x21cff5),_0x4621a4=_0x21cff5[_0x4d73fe(0x1a6)],_0x489181=bufferToFile(_0x65a4db),_0x2eccb9=await this[_0x4d73fe(0x1e5)](_0x489181,_0x4621a4,!![]);if(!_0x2eccb9)return;return this[_0x4d73fe(0x1c2)](_0x2eccb9,0x2,_0x212c4c);}async[_0x4a1936(0x1c2)](_0x511db6,_0x289b51,_0x6f6564){const _0x2b6d0f=_0x4a1936;var _0x354ef7;const _0x4ca64d=await this[_0x2b6d0f(0x20e)]['export']({'unitID':_0x289b51===0x1?_0x511db6:'','jsonID':_0x289b51===0x2?_0x511db6:'','type':_0x6f6564,'sscSwitch':this[_0x2b6d0f(0x1b9)](),'useImageUrl':this[_0x2b6d0f(0x1b4)](),'ignoreTableExport':this[_0x2b6d0f(0x251)]()});if(!_0x4ca64d){this[_0x2b6d0f(0x2d6)][_0x2b6d0f(0x2b4)]({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':_0x2b6d0f(0x22c)},'state':0x2});return;}this[_0x2b6d0f(0x2d6)]['next']({'error':_0x4ca64d[_0x2b6d0f(0x236)],'state':0x2});if(_0x4ca64d[_0x2b6d0f(0x236)]&&_0x4ca64d[_0x2b6d0f(0x236)]['code']!==ErrorCode['OK'])return;const _0x1b7809=_0x4ca64d[_0x2b6d0f(0x245)],_0x538c40=await this[_0x2b6d0f(0x20e)][_0x2b6d0f(0x2d1)](_0x1b7809)[_0x2b6d0f(0x27f)](_0x301b18=>{const _0x2dc25b=_0x2b6d0f;var _0x4f4201;const _0x47cb95=_0x301b18 instanceof Error?_0x301b18['message']:(_0x4f4201=_0x301b18[_0x2dc25b(0x236)])===null||_0x4f4201===void 0x0?void 0x0:_0x4f4201[_0x2dc25b(0x1f4)];this[_0x2dc25b(0x2d6)][_0x2dc25b(0x2b4)]({'error':{'code':ErrorCode[_0x2dc25b(0x1a9)],'message':_0x47cb95||''},'state':0x3});});if(!_0x538c40)return;const _0x2f524c=((_0x354ef7=_0x538c40[_0x2b6d0f(0x201)])===null||_0x354ef7===void 0x0?void 0x0:_0x354ef7[_0x2b6d0f(0x259)])||'';if(_0x2f524c[_0x2b6d0f(0x1a6)]===0x0){this['_requestState$'][_0x2b6d0f(0x2b4)]({'error':{'code':ErrorCode[_0x2b6d0f(0x1a9)],'message':_0x2b6d0f(0x1dc)},'state':0x3});return;}this['_requestState$'][_0x2b6d0f(0x2b4)]({'error':_0x538c40['error'],'state':0x3});const _0x54cff1=await this[_0x2b6d0f(0x28d)](_0x2f524c);if(!_0x54cff1)return;const _0x544eaa=await getFileByURL(_0x54cff1,this['_httpService']);if(!_0x544eaa){this[_0x2b6d0f(0x2d6)][_0x2b6d0f(0x2b4)]({'error':{'code':ErrorCode[_0x2b6d0f(0x1a9)],'message':'Failed\x20to\x20get\x20file\x20from\x20url'},'state':0x6});return;}return this[_0x2b6d0f(0x2d6)][_0x2b6d0f(0x2b4)]({'error':{'code':ErrorCode['OK'],'message':_0x2b6d0f(0x24a)},'state':0x6}),_0x544eaa;}async['_upload'](_0x6c6505,_0x1e4ea5,_0x4da550){const _0x4daebd=_0x4a1936;let _0x38142a;try{_0x38142a=await this[_0x4daebd(0x20e)]['upload'](_0x6c6505,_0x1e4ea5,_0x4da550);}catch(_0x57ddf2){const _0xb32365=_0x57ddf2 instanceof Error?_0x57ddf2[_0x4daebd(0x1f4)]:String(_0x57ddf2);this[_0x4daebd(0x2d6)][_0x4daebd(0x2b4)]({'error':{'code':ErrorCode[_0x4daebd(0x1a9)],'message':_0xb32365},'state':0x0});return;}if(!_0x38142a||typeof _0x38142a['FileId']!==_0x4daebd(0x1eb)){this[_0x4daebd(0x2d6)][_0x4daebd(0x2b4)]({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':_0x4daebd(0x27e)},'state':0x0});return;}const _0x4beaf0=_0x38142a[_0x4daebd(0x250)];if(_0x4beaf0[_0x4daebd(0x1a6)]===0x0){this[_0x4daebd(0x2d6)][_0x4daebd(0x2b4)]({'error':{'code':ErrorCode[_0x4daebd(0x1a9)],'message':_0x4daebd(0x278)},'state':0x0});return;}return this[_0x4daebd(0x2d6)][_0x4daebd(0x2b4)]({'error':{'code':ErrorCode['OK'],'message':_0x4daebd(0x24a)},'state':0x0}),_0x4beaf0;}async[_0x4a1936(0x2de)](_0x38f646,_0x47d26d,_0x3e72cc){const _0x5b9144=_0x4a1936,_0x3ba97e={'fileID':_0x38f646,'type':_0x3e72cc,'outputType':_0x47d26d,'fileUrl':'','minSheetRowCount':this[_0x5b9144(0x1e4)](),'minSheetColumnCount':this[_0x5b9144(0x269)]()},_0x1a9120=await this[_0x5b9144(0x20e)][_0x5b9144(0x1d5)](_0x3ba97e);if(!_0x1a9120){this['_requestState$'][_0x5b9144(0x2b4)]({'error':{'code':ErrorCode[_0x5b9144(0x1a9)],'message':_0x5b9144(0x2c4)},'state':0x1});return;}if(_0x1a9120[_0x5b9144(0x236)]&&_0x1a9120[_0x5b9144(0x236)][_0x5b9144(0x2af)]!==ErrorCode['OK']){this[_0x5b9144(0x2d6)][_0x5b9144(0x2b4)]({'error':_0x1a9120[_0x5b9144(0x236)],'state':0x1});return;}const _0x407584=_0x1a9120[_0x5b9144(0x245)];if(_0x407584[_0x5b9144(0x1a6)]===0x0){this['_requestState$'][_0x5b9144(0x2b4)]({'error':{'code':ErrorCode[_0x5b9144(0x1a9)],'message':_0x5b9144(0x25d)},'state':0x1});return;}return this['_requestState$'][_0x5b9144(0x2b4)]({'error':_0x1a9120[_0x5b9144(0x236)],'state':0x1}),_0x407584;}async[_0x4a1936(0x28d)](_0x46daa2){const _0x11e8b9=_0x4a1936,_0x46f26f=await this[_0x11e8b9(0x20e)]['signUrl'](_0x46daa2);if(!_0x46f26f){this[_0x11e8b9(0x2d6)][_0x11e8b9(0x2b4)]({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':'sign\x20url\x20error'},'state':0x4});return;}if(_0x46f26f[_0x11e8b9(0x236)]&&_0x46f26f['error'][_0x11e8b9(0x2af)]!==ErrorCode['OK']){this[_0x11e8b9(0x2d6)][_0x11e8b9(0x2b4)]({'error':_0x46f26f[_0x11e8b9(0x236)],'state':0x4});return;}const _0x628bf4=resolveWithBasePath(_0x46f26f[_0x11e8b9(0x1c5)],this['_getDownloadEndpointURL']());if(_0x628bf4[_0x11e8b9(0x1a6)]===0x0){this[_0x11e8b9(0x2d6)][_0x11e8b9(0x2b4)]({'error':{'code':ErrorCode[_0x11e8b9(0x1a9)],'message':_0x11e8b9(0x26f)},'state':0x4});return;}return this[_0x11e8b9(0x2d6)][_0x11e8b9(0x2b4)]({'error':_0x46f26f['error'],'state':0x4}),_0x628bf4;}['_getDownloadEndpointURL'](){const _0x496502=_0x4a1936;var _0x47b21c;const _0x5b1fda=this[_0x496502(0x2e1)][_0x496502(0x205)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x47b21c=_0x5b1fda===null||_0x5b1fda===void 0x0?void 0x0:_0x5b1fda[_0x496502(0x19f)])!==null&&_0x47b21c!==void 0x0?_0x47b21c:location[_0x496502(0x24e)];}[_0x4a1936(0x1e4)](){const _0x216009=_0x4a1936;var _0x16fe5b,_0x42f433;const _0x4b51dc=this[_0x216009(0x2e1)][_0x216009(0x205)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x16fe5b=_0x4b51dc===null||_0x4b51dc===void 0x0||(_0x42f433=_0x4b51dc['options'])===null||_0x42f433===void 0x0?void 0x0:_0x42f433[_0x216009(0x22e)])!==null&&_0x16fe5b!==void 0x0?_0x16fe5b:0x1;}[_0x4a1936(0x269)](){const _0x563ba2=_0x4a1936;var _0x628211,_0x540091;const _0xa160af=this[_0x563ba2(0x2e1)][_0x563ba2(0x205)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x628211=_0xa160af===null||_0xa160af===void 0x0||(_0x540091=_0xa160af[_0x563ba2(0x2a5)])===null||_0x540091===void 0x0?void 0x0:_0x540091[_0x563ba2(0x263)])!==null&&_0x628211!==void 0x0?_0x628211:0x1;}['_getEnableServerSideComputing'](){const _0x25b443=_0x4a1936;var _0x75369b,_0x56d599;const _0x1d8d8d=this['_configService'][_0x25b443(0x205)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x75369b=_0x1d8d8d===null||_0x1d8d8d===void 0x0||(_0x56d599=_0x1d8d8d[_0x25b443(0x2a5)])===null||_0x56d599===void 0x0?void 0x0:_0x56d599[_0x25b443(0x1b2)])!==null&&_0x75369b!==void 0x0?_0x75369b:![];}[_0x4a1936(0x1b4)](){const _0x221fe9=_0x4a1936;var _0x44c499,_0x38a906;const _0x1a6696=this[_0x221fe9(0x2e1)][_0x221fe9(0x205)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x44c499=_0x1a6696===null||_0x1a6696===void 0x0||(_0x38a906=_0x1a6696['options'])===null||_0x38a906===void 0x0?void 0x0:_0x38a906[_0x221fe9(0x296)])!==null&&_0x44c499!==void 0x0?_0x44c499:!![];}[_0x4a1936(0x251)](){const _0x58478c=_0x4a1936;var _0x228f06,_0x4daaf8;const _0x3653ad=this[_0x58478c(0x2e1)][_0x58478c(0x205)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x228f06=_0x3653ad===null||_0x3653ad===void 0x0||(_0x4daaf8=_0x3653ad[_0x58478c(0x2a5)])===null||_0x4daaf8===void 0x0?void 0x0:_0x4daaf8['ignoreTableExport'])!==null&&_0x228f06!==void 0x0?_0x228f06:![];}};ExchangeService=__decorate([__decorateParam(0x0,IConfigService),__decorateParam(0x1,Inject(HTTPService)),__decorateParam(0x2,Inject(IRequestService))],ExchangeService);const NilProgress={'done':0x0,'count':0x0},IExchangeOperateService=createIdentifier(_0x4a1936(0x1c4));let ExchangeOperateService=class ExchangeOperateService extends Disposable{constructor(_0x5dc2eb,_0x16ba09,_0x13527f,_0x17bfea,_0x532c69,_0x2178a0){const _0x43e0fc=_0x4a1936;super(),this[_0x43e0fc(0x1db)]=_0x5dc2eb,this[_0x43e0fc(0x1d2)]=_0x16ba09,this['_localeService']=_0x13527f,this[_0x43e0fc(0x273)]=_0x17bfea,this['_uploadNotificationService']=_0x532c69,this['_logService']=_0x2178a0,_defineProperty(this,_0x43e0fc(0x24b),new BehaviorSubject(NilProgress)),_defineProperty(this,_0x43e0fc(0x2c3),this[_0x43e0fc(0x24b)][_0x43e0fc(0x25f)]()),_defineProperty(this,_0x43e0fc(0x2ce),0x0),_defineProperty(this,_0x43e0fc(0x1fa),0x0),this[_0x43e0fc(0x23b)](toDisposable(this[_0x43e0fc(0x273)][_0x43e0fc(0x20a)][_0x43e0fc(0x1df)](_0x3840be=>{const _0x55d661=_0x43e0fc;var _0x4a21e8;if(((_0x4a21e8=_0x3840be[_0x55d661(0x236)])===null||_0x4a21e8===void 0x0?void 0x0:_0x4a21e8[_0x55d661(0x2af)])===ErrorCode['OK'])this['_addDoneTask'](0x1);else this[_0x55d661(0x208)](_0x3840be['error']);})));}[_0x4a1936(0x1d6)](){const _0x414515=_0x4a1936;this[_0x414515(0x1ba)](),this[_0x414515(0x288)][_0x414515(0x1d7)](0x2),this[_0x414515(0x273)][_0x414515(0x286)]();}async['uploadFileToUnitId'](_0x3276fe){throw new Error('Method\x20not\x20implemented.');}async[_0x4a1936(0x210)](){const _0x215b2e=_0x4a1936,_0x27fe38=await getUploadFile([UniverInstanceType[_0x215b2e(0x2a7)]]);if(!_0x27fe38)return;if(this[_0x215b2e(0x1da)](_0x27fe38,UniverInstanceType[_0x215b2e(0x2a7)]))return;return this['_importFileToUnitId'](_0x27fe38[0x0],UniverInstanceType['UNIVER_DOC']);}[_0x4a1936(0x246)](){const _0x26140d=_0x4a1936;throw new Error(_0x26140d(0x254));}async[_0x4a1936(0x1fc)](_0x24e867,_0x4d1908,_0x89b6b5){const _0x49d922=_0x4a1936;this[_0x49d922(0x22b)](MessageType['Info']);const _0x2d5c2a=await this[_0x49d922(0x273)]['exportDOCXByUnitId'](_0x24e867||this['_getUnitIDDoc']());if(!_0x2d5c2a)return;downloadFile(_0x2d5c2a,_0x4d1908||this[_0x49d922(0x1cc)](_0x2d5c2a),_0x49d922(0x2a0)),this[_0x49d922(0x22b)](MessageType['Success']);}async[_0x4a1936(0x21e)](){const _0x2d222a=_0x4a1936;this[_0x2d222a(0x22b)](MessageType[_0x2d222a(0x217)]);const _0x2eb9a7=await this[_0x2d222a(0x2a6)](),_0x41c150=await this[_0x2d222a(0x273)][_0x2d222a(0x21e)](_0x2eb9a7);if(!_0x41c150)return;downloadFile(_0x41c150,this[_0x2d222a(0x1cc)](_0x41c150),'docx'),this[_0x2d222a(0x22b)](MessageType[_0x2d222a(0x28f)]);}async[_0x4a1936(0x26d)](){const _0x3fa51f=_0x4a1936;if(this[_0x3fa51f(0x1d1)]()){this[_0x3fa51f(0x1d2)]['show']({'type':MessageType[_0x3fa51f(0x233)],'content':this['_localeService']['t'](_0x3fa51f(0x275))});return;}const _0x156e10=await getUploadFile([UniverInstanceType[_0x3fa51f(0x1c7)]]);if(!_0x156e10)return;if(this[_0x3fa51f(0x1da)](_0x156e10,UniverInstanceType[_0x3fa51f(0x1c7)]))return;return this[_0x3fa51f(0x1fe)](_0x156e10[0x0],UniverInstanceType[_0x3fa51f(0x1c7)]);}async[_0x4a1936(0x2c9)](){const _0x2584e1=_0x4a1936;if(this[_0x2584e1(0x1d1)]()){this[_0x2584e1(0x1d2)]['show']({'type':MessageType['Warning'],'content':this[_0x2584e1(0x232)]['t'](_0x2584e1(0x275))});return;}const _0x1d6cb9=await getUploadFile([UniverInstanceType[_0x2584e1(0x1c7)]]);if(!_0x1d6cb9)return;this[_0x2584e1(0x272)](MessageType[_0x2584e1(0x217)]);const _0x289a50=await this[_0x2584e1(0x273)][_0x2584e1(0x2c9)](_0x1d6cb9[0x0]);if(!_0x289a50)return;this['_refresh'](_0x289a50),this[_0x2584e1(0x272)](MessageType[_0x2584e1(0x28f)]);}async[_0x4a1936(0x280)](_0x499000,_0x102ce8,_0x51c3a1){const _0x1a5952=_0x4a1936;this[_0x1a5952(0x22b)](MessageType[_0x1a5952(0x217)]);const _0x348752=await this[_0x1a5952(0x273)][_0x1a5952(0x280)](_0x499000||this[_0x1a5952(0x1be)]());if(!_0x348752)return;downloadFile(_0x348752,_0x102ce8||this[_0x1a5952(0x1cc)](_0x348752),_0x1a5952(0x284)),this[_0x1a5952(0x22b)](MessageType[_0x1a5952(0x28f)]);}async[_0x4a1936(0x2bd)](){const _0x2c794b=_0x4a1936;this[_0x2c794b(0x22b)](MessageType[_0x2c794b(0x217)]);const _0x5aaafc=await this[_0x2c794b(0x1ce)](),_0x8562b9=await this['_exchangeService'][_0x2c794b(0x2bd)](_0x5aaafc);if(!_0x8562b9)return;downloadFile(_0x8562b9,this[_0x2c794b(0x1cc)](_0x8562b9),_0x2c794b(0x284)),this[_0x2c794b(0x22b)](MessageType['Success']);}[_0x4a1936(0x20f)](_0x156027){const _0xc4a95f=_0x4a1936;this[_0xc4a95f(0x1ac)]=_0x156027;}async['_importFileToUnitId'](_0x2b9c6b,_0x4892e3){const _0x2111f0=_0x4a1936;this[_0x2111f0(0x288)][_0x2111f0(0x2c6)](),this['_uploadNotificationService'][_0x2111f0(0x1d7)](0x0),this[_0x2111f0(0x23c)](0x4),this[_0x2111f0(0x2d5)](0x1);const _0x5b55fd=await this[_0x2111f0(0x273)]['importFileToUnitId'](_0x2b9c6b,_0x4892e3);if(!_0x5b55fd){this[_0x2111f0(0x1ba)](),this[_0x2111f0(0x288)][_0x2111f0(0x1d7)](0x2);return;}const _0x101715={'link':this[_0x2111f0(0x1ac)](_0x5b55fd,_0x4892e3),'name':_0x2b9c6b[_0x2111f0(0x1b5)],'type':_0x4892e3};return this[_0x2111f0(0x288)][_0x2111f0(0x287)](_0x101715),this['_completeProgress'](),this[_0x2111f0(0x288)][_0x2111f0(0x1d7)](0x1),_0x5b55fd;}['_getUnitID'](){const _0x2f028b=_0x4a1936;return this[_0x2f028b(0x1db)][_0x2f028b(0x298)](UniverInstanceType[_0x2f028b(0x1c7)])['getUnitId']();}[_0x4a1936(0x23d)](){const _0x49f8fb=_0x4a1936;return this[_0x49f8fb(0x1db)][_0x49f8fb(0x298)](UniverInstanceType[_0x49f8fb(0x2a7)])[_0x49f8fb(0x1a3)]();}[_0x4a1936(0x1cc)](_0x4781f3){const _0x56fa05=_0x4a1936;var _0x58b4ec;return((_0x58b4ec=this[_0x56fa05(0x1db)][_0x56fa05(0x298)](UniverInstanceType['UNIVER_SHEET']))===null||_0x58b4ec===void 0x0?void 0x0:_0x58b4ec['name'])||_0x4781f3[_0x56fa05(0x1b5)][_0x56fa05(0x214)]('.')['shift']()||document[_0x56fa05(0x1b8)];}async[_0x4a1936(0x1ce)](){const _0x304dc3=_0x4a1936;return this['_univerInstanceService'][_0x304dc3(0x298)](UniverInstanceType[_0x304dc3(0x1c7)])[_0x304dc3(0x231)]();}async[_0x4a1936(0x2a6)](){const _0x44d1c1=_0x4a1936;return this[_0x44d1c1(0x1db)][_0x44d1c1(0x298)](UniverInstanceType[_0x44d1c1(0x2a7)])[_0x44d1c1(0x231)]();}['_getLinkByUnitId'](_0x3dd774,_0x306e97){const _0x3c76a6=_0x4a1936,_0xddbc5f=new URL(window['location'][_0x3c76a6(0x238)]);return _0xddbc5f[_0x3c76a6(0x2d3)][_0x3c76a6(0x1c6)]('unit',_0x3dd774),_0xddbc5f[_0x3c76a6(0x2d3)][_0x3c76a6(0x1c6)](_0x3c76a6(0x2e4),''+_0x306e97),_0xddbc5f[_0x3c76a6(0x1f9)]();}['_refresh'](_0x380167){const _0x133b76=_0x4a1936,_0x318603=this[_0x133b76(0x1db)][_0x133b76(0x25e)](UniverInstanceType[_0x133b76(0x1c7)])[_0x133b76(0x1a3)]();this['_univerInstanceService'][_0x133b76(0x2a8)](_0x318603),this[_0x133b76(0x1db)]['createUnit'](UniverInstanceType[_0x133b76(0x1c7)],_0x380167);}[_0x4a1936(0x208)](_0x523295){const _0x7a04e6=_0x4a1936;if(_0x523295){const {code:_0x4b426c}=_0x523295;switch(_0x4b426c){case ErrorCode[_0x7a04e6(0x282)]:this[_0x7a04e6(0x1d2)][_0x7a04e6(0x2c6)]({'type':MessageType['Error'],'content':this['_localeService']['t'](_0x7a04e6(0x241))});break;case ErrorCode[_0x7a04e6(0x25a)]:this[_0x7a04e6(0x1d2)][_0x7a04e6(0x2c6)]({'type':MessageType[_0x7a04e6(0x1f0)],'content':this[_0x7a04e6(0x232)]['t'](_0x7a04e6(0x297))});break;default:this[_0x7a04e6(0x1d2)]['show']({'type':MessageType[_0x7a04e6(0x1f0)],'content':this[_0x7a04e6(0x232)]['t'](_0x7a04e6(0x242))});break;}return null;}return this[_0x7a04e6(0x1d2)]['show']({'type':MessageType[_0x7a04e6(0x1f0)],'content':this['_localeService']['t'](_0x7a04e6(0x242))}),null;}[_0x4a1936(0x22b)](_0x352040){const _0xf6d842=_0x4a1936;let _0x306c91='';switch(_0x352040){case MessageType[_0xf6d842(0x28f)]:_0x306c91=this['_localeService']['t']('exchange.downloadSuccess');break;case MessageType['Info']:_0x306c91=this[_0xf6d842(0x232)]['t'](_0xf6d842(0x271));break;default:break;}this['_messageService']['show']({'type':_0x352040,'content':_0x306c91});}['_showUploadMessage'](_0x1ccc4d){const _0x55bc4f=_0x4a1936;let _0x4fd48a='';switch(_0x1ccc4d){case MessageType[_0x55bc4f(0x28f)]:_0x4fd48a=this[_0x55bc4f(0x232)]['t'](_0x55bc4f(0x203));break;case MessageType[_0x55bc4f(0x217)]:_0x4fd48a=this['_localeService']['t'](_0x55bc4f(0x275));break;default:break;}this[_0x55bc4f(0x1d2)]['show']({'type':_0x1ccc4d,'content':_0x4fd48a});}[_0x4a1936(0x221)](){const _0x343535=_0x4a1936;this[_0x343535(0x24b)][_0x343535(0x2b4)]({'done':this[_0x343535(0x1fa)],'count':this[_0x343535(0x2ce)]});}['_addTotalCount'](_0x82e915){const _0x5302c6=_0x4a1936;this[_0x5302c6(0x2ce)]+=_0x82e915,this[_0x5302c6(0x221)]();}['_addDoneTask'](_0x5f05cf){const _0x10f95a=_0x4a1936;this['_doneUploadTaskCount']+=_0x5f05cf,this[_0x10f95a(0x1fa)]=Math['min'](this[_0x10f95a(0x1fa)],this['_totalUploadTaskCount']),this['_emitProgress']();}[_0x4a1936(0x285)](){const _0x283556=_0x4a1936;this[_0x283556(0x1fa)]=this[_0x283556(0x2ce)],this[_0x283556(0x221)]();}[_0x4a1936(0x1ba)](){const _0x1252e9=_0x4a1936;this[_0x1252e9(0x1fa)]=0x0,this[_0x1252e9(0x2ce)]=0x0,this[_0x1252e9(0x221)]();}['_fileTypeError'](_0x3e58ca,_0x1bc5c8){const _0x36521c=_0x4a1936,_0x3d8a15=_0x3e58ca[0x0],_0x954f95=_0x3d8a15[_0x36521c(0x1b5)];if(getUniverInstanceTypeByFile(_0x3d8a15)!==_0x1bc5c8)return this[_0x36521c(0x1d2)]['show']({'type':MessageType[_0x36521c(0x1f0)],'content':this['_localeService']['t'](_0x36521c(0x1bb),_0x954f95)}),!![];return![];}[_0x4a1936(0x1d1)](){const _0x16f1e0=_0x4a1936;return this[_0x16f1e0(0x2ce)]!==0x0&&this[_0x16f1e0(0x1fa)]!==this[_0x16f1e0(0x2ce)];}};ExchangeOperateService=__decorate([__decorateParam(0x0,Inject(IUniverInstanceService)),__decorateParam(0x1,IMessageService),__decorateParam(0x2,Inject(LocaleService)),__decorateParam(0x3,Inject(IExchangeService)),__decorateParam(0x4,Inject(IUploadNotificationService)),__decorateParam(0x5,ILogService)],ExchangeOperateService);function UploadButton(_0x312c2b){const _0x35677b=_0x4a1936,{onClick:_0x4200ed,children:_0x3d09ec,className:_0xfc9041}=_0x312c2b;return jsx('button',{'className':clsx(_0x35677b(0x248),_0xfc9041),'type':_0x35677b(0x23e),'onClick':_0x4200ed,'children':_0x3d09ec});}function UploadAgain(){const _0x4d23e1=useDependency(IExchangeOperateService),_0x17e110=useDependency(LocaleService);function _0x491d47(){const _0x46d9e1=_0x3e7a;_0x4d23e1[_0x46d9e1(0x26d)]();}return jsx(UploadButton,{'onClick':_0x491d47,'children':_0x17e110['t']('exchange.uploadAgain')});}function UploadError(){const _0x1dff37=_0x4a1936;return jsxs('div',{'className':'univer-mt-5\x20univer-flex\x20univer-flex-col','children':[jsx(_0x1dff37(0x1ab),{'className':'univer-mb-3\x20univer-py-0\x20univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','children':useDependency(LocaleService)['t'](_0x1dff37(0x1a5))}),jsx(UploadAgain,{})]});}function UploadSuccess(_0x1ea303){const _0x60e689=_0x4a1936,{count:_0x9c793d}=_0x1ea303;return jsxs(_0x60e689(0x276),{'className':_0x60e689(0x220),'children':[jsx(_0x60e689(0x1ab),{'className':'univer-text-sm\x20univer-text-gray-500','children':useDependency(LocaleService)['t'](_0x60e689(0x2dc),''+_0x9c793d)}),jsx(UploadAgain,{})]});}function UploadCancel(){const _0x3fd32f=_0x4a1936,_0xa3a521=useDependency(IExchangeOperateService),_0x49c35e=useDependency(LocaleService);function _0xda16ff(){_0xa3a521['interrupt']();}return jsx(UploadButton,{'onClick':_0xda16ff,'children':_0x49c35e['t'](_0x3fd32f(0x2c5))});}function UploadProgress(){const _0xe831f2=_0x4a1936,{count:_0x1155d8,done:_0xd58f4e}=useObservable(useDependency(IExchangeOperateService)[_0xe831f2(0x2c3)]),[_0x5169cc,_0x2dd5f3]=useState(_0x1155d8>0x0?_0xd58f4e/_0x1155d8:0x0);return useEffect(()=>{_0x2dd5f3(_0x1155d8>0x0?_0xd58f4e/_0x1155d8:0x0);},[_0x1155d8,_0xd58f4e]),jsx('div',{'className':_0xe831f2(0x1cb),'children':jsx(_0xe831f2(0x276),{'className':_0xe831f2(0x270),'style':{'width':Math[_0xe831f2(0x2cd)](_0x5169cc*0x64)+'%'}})});}function _0x3e7a(_0x3489af,_0x30bbfe){_0x3489af=_0x3489af-0x19f;const _0x4b1f8c=_0x4b1f();let _0x3e7a89=_0x4b1f8c[_0x3489af];return _0x3e7a89;}function Uploading(){const _0x21b4e3=_0x4a1936;return jsxs(_0x21b4e3(0x276),{'className':'univer-mt-5\x20univer-flex\x20univer-flex-col','children':[jsx(_0x21b4e3(0x1ab),{'className':'univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','children':useDependency(LocaleService)['t'](_0x21b4e3(0x2b9))}),jsx(_0x21b4e3(0x276),{'className':_0x21b4e3(0x1a7),'children':jsx(UploadProgress,{})}),jsx(UploadCancel,{})]});}const iconMap={[0x1]:jsx(SuccessIcon,{'className':_0x4a1936(0x1ae)}),[0x0]:jsx(ClockIcon,{'className':'univer-text-blue-500'}),[0x2]:jsx(ErrorIcon,{'className':_0x4a1936(0x283)})};function UploadNotification(){const _0x21d220=_0x4a1936,[_0x2c37d5,_0x48243d]=useState(0x0),[_0x23a93d,_0xa4afa7]=useState(![]),[_0x19c246,_0x3f1988]=useState([]),_0x4af461=useDependency(IUploadNotificationService),_0x402f56=useDependency(LocaleService);useEffect(()=>{const _0x1ed389=_0x3e7a,_0x4817ce=_0x4af461['visible$']['subscribe'](_0xe012b7=>{_0xa4afa7(_0xe012b7);}),_0x4877b6=_0x4af461['list$'][_0x1ed389(0x1df)](_0x3b4c46=>{_0x3f1988(_0x3b4c46);}),_0xeaee05=_0x4af461[_0x1ed389(0x26c)]['subscribe'](_0x57afb8=>{_0x48243d(_0x57afb8);});return()=>{const _0x1ca4c1=_0x1ed389;_0x4817ce[_0x1ca4c1(0x1d0)](),_0x4877b6[_0x1ca4c1(0x1d0)](),_0xeaee05['unsubscribe']();};},[]);function _0x359b99(){_0xa4afa7(![]);}function _0x316b9d(_0x442274){const _0x44593c=_0x3e7a;switch(_0x442274){case 0x1:return _0x402f56['t'](_0x44593c(0x203));case 0x0:return _0x402f56['t'](_0x44593c(0x275));case 0x2:return _0x402f56['t']('exchange.unknownMistake');default:return'';}}return _0x23a93d&&jsxs(_0x21d220(0x276),{'className':_0x21d220(0x22f),'children':[jsxs('div',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-1.5\x20univer-pr-2','children':[jsxs(_0x21d220(0x1ab),{'className':'univer-flex','children':[jsx(_0x21d220(0x1ab),{'className':_0x21d220(0x1fd),'children':iconMap[_0x2c37d5]}),jsx(_0x21d220(0x1ab),{'className':_0x21d220(0x1e0),'children':_0x316b9d(_0x2c37d5)})]}),jsx('span',{'className':_0x21d220(0x274),'onClick':_0x359b99,'children':jsx(CloseIcon,{})})]}),jsxs(_0x21d220(0x276),{'children':[_0x2c37d5===0x0&&jsx(Uploading,{}),_0x2c37d5===0x2&&jsx(UploadError,{}),_0x19c246[_0x21d220(0x1a6)]>0x0&&jsx(LinkList,{'list':_0x19c246}),_0x2c37d5===0x1&&jsx(UploadSuccess,{'count':_0x19c246[_0x21d220(0x1a6)]})]})]});}function UploadNotificationContainer(){return jsx(UploadNotification,{});}let ExchangeClientController=class ExchangeClientController extends Disposable{constructor(_0x47b298,_0x642d25){const _0x2ce372=_0x4a1936;super(),this[_0x2ce372(0x209)]=_0x47b298,this['_uiPartsService']=_0x642d25,this[_0x2ce372(0x29b)]();}[_0x4a1936(0x29b)](){const _0x4ae54f=_0x4a1936;this[_0x4ae54f(0x23b)](this[_0x4ae54f(0x28c)][_0x4ae54f(0x2c0)](BuiltInUIPart['CONTENT'],()=>connectInjector(UploadNotificationContainer,this[_0x4ae54f(0x209)])));}};ExchangeClientController=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,IUIPartsService)],ExchangeClientController);let UniverExchangeClientPlugin=class UniverExchangeClientPlugin extends Plugin{constructor(_0x258afc=defaultPluginConfig,_0x1ac60e,_0xe2d0d1){const _0x15a41b=_0x4a1936;super(),this[_0x15a41b(0x228)]=_0x258afc,this[_0x15a41b(0x209)]=_0x1ac60e,this['_configService']=_0xe2d0d1;const {..._0x1440a1}=merge({},defaultPluginConfig,this[_0x15a41b(0x228)]);this[_0x15a41b(0x2e1)]['setConfig'](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY,_0x1440a1);}[_0x4a1936(0x2dd)](){registerDependencies(this['_injector'],[[ExchangeClientController],[IExchangeOperateService,{'useClass':ExchangeOperateService}],[IExchangeService,{'useClass':ExchangeService}],[IRequestService,{'useClass':RequestService}],[IUploadNotificationService,{'useClass':UploadNotificationService}]]);}[_0x4a1936(0x1bc)](){const _0x161d53=_0x4a1936;touchDependencies(this[_0x161d53(0x209)],[[ExchangeClientController],[IExchangeOperateService]]);}};_defineProperty(UniverExchangeClientPlugin,_0x4a1936(0x249),_0x4a1936(0x2ac)),_defineProperty(UniverExchangeClientPlugin,_0x4a1936(0x1c0),name),_defineProperty(UniverExchangeClientPlugin,_0x4a1936(0x1d8),version),UniverExchangeClientPlugin=__decorate([DependentOn(UniverNetworkPlugin,UniverLicensePlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,IConfigService)],UniverExchangeClientPlugin);export{EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY,ExchangeOperateService,ExchangeService,IExchangeOperateService,IExchangeService,IRequestService,IUploadNotificationService,RequestService,UniverExchangeClientPlugin,UploadNotificationContainer,UploadNotificationService,UploadNotificationState,downloadFile,getUniverInstanceTypeByFile,getUploadFile,transformDocumentDataToSnapshotJson,transformSnapshotJsonToDocumentData,transformSnapshotJsonToWorkbookData,transformWorkbookDataToSnapshotJson};
|
package/lib/es/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3ae7cc=_0x4dcc;function _0x4609(){const _0x5548ac=['File\x20uploaded\x20successfully','Uploading','Upload\x20again','23258631qOEkXo','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','Cancel','584793cZPIDz','Please\x20wait...','11355nEirAb','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','{0}\x20file(s)\x20uploaded\x20successfully','12HqcAIz','1388eSyhXg','1894797MVBjrP','Unknown\x20mistake','6326660fvuJJZ','Downloading','5227873DKIPye','Network\x20error','6rXDRiY','Open(File)','9xLhPPg','File','24GYyoQs','294928IeEsEg','Internal\x20unknown\x20error'];_0x4609=function(){return _0x5548ac;};return _0x4609();}(function(_0x2e5329,_0x5504f7){const _0x283caf=_0x4dcc,_0x234068=_0x2e5329();while(!![]){try{const _0x38e1ae=parseInt(_0x283caf(0x171))/0x1+-parseInt(_0x283caf(0x169))/0x2*(-parseInt(_0x283caf(0x166))/0x3)+parseInt(_0x283caf(0x177))/0x4*(parseInt(_0x283caf(0x173))/0x5)+-parseInt(_0x283caf(0x164))/0x6*(-parseInt(_0x283caf(0x162))/0x7)+parseInt(_0x283caf(0x168))/0x8*(parseInt(_0x283caf(0x15e))/0x9)+-parseInt(_0x283caf(0x160))/0xa+parseInt(_0x283caf(0x16e))/0xb*(-parseInt(_0x283caf(0x176))/0xc);if(_0x38e1ae===_0x5504f7)break;else _0x234068['push'](_0x234068['shift']());}catch(_0x43c0d){_0x234068['push'](_0x234068['shift']());}}}(_0x4609,0x6d06d));function _0x4dcc(_0x4ad964,_0x3f6bb9){_0x4ad964=_0x4ad964-0x15e;const _0x460920=_0x4609();let _0x4dcc87=_0x460920[_0x4ad964];return _0x4dcc87;}const locale$1={'exchange':{'file':_0x3ae7cc(0x167),'upload':_0x3ae7cc(0x165),'download':'Save\x20As','uploading':_0x3ae7cc(0x16c),'uploadSuccess':_0x3ae7cc(0x16b),'uploadSuccessTip':_0x3ae7cc(0x175),'downloading':_0x3ae7cc(0x161),'downloadSuccess':'Download\x20success','unknownMistake':_0x3ae7cc(0x15f),'networkError':_0x3ae7cc(0x163),'tooLarge':'Data\x20is\x20too\x20large','internalError':_0x3ae7cc(0x16a),'interrupt':_0x3ae7cc(0x16f),'fileTypeError':_0x3ae7cc(0x174),'wait':_0x3ae7cc(0x172),'cancel':_0x3ae7cc(0x170),'uploadAgain':_0x3ae7cc(0x16d)}},locale=locale$1;export{locale as default};
|
package/lib/es/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x22e63a=_0x1492;(function(_0x507a61,_0x3f009e){const _0x3b5871=_0x1492,_0x225de5=_0x507a61();while(!![]){try{const _0xc7f687=-parseInt(_0x3b5871(0x1c7))/0x1*(parseInt(_0x3b5871(0x1c9))/0x2)+-parseInt(_0x3b5871(0x1b4))/0x3*(-parseInt(_0x3b5871(0x1b6))/0x4)+parseInt(_0x3b5871(0x1ba))/0x5*(-parseInt(_0x3b5871(0x1bf))/0x6)+parseInt(_0x3b5871(0x1c6))/0x7+parseInt(_0x3b5871(0x1c8))/0x8*(-parseInt(_0x3b5871(0x1b3))/0x9)+-parseInt(_0x3b5871(0x1c4))/0xa+parseInt(_0x3b5871(0x1b9))/0xb;if(_0xc7f687===_0x3f009e)break;else _0x225de5['push'](_0x225de5['shift']());}catch(_0x20033d){_0x225de5['push'](_0x225de5['shift']());}}}(_0x28b1,0xcf269));function _0x28b1(){const _0xbd4e4=['190435eQHSfy','1bhtkPK','8bRFuIS','3039836RqIXzd','1056249ObVcZL','4671iqrbmc','Data\x20is\x20too\x20large','2396tLZwug','Unknown\x20mistake','Please\x20wait...','35303389WHHcOn','45pPLzrM','Download\x20success','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','Network\x20error','{0}\x20file(s)\x20uploaded\x20successfully','382602ZbpDrQ','File','File\x20uploaded\x20successfully','Uploading','Downloading','11095760TKNJao','Cancel'];_0x28b1=function(){return _0xbd4e4;};return _0x28b1();}const locale={'exchange':{'file':_0x22e63a(0x1c0),'upload':'Open(File)','download':'Save\x20As','uploading':_0x22e63a(0x1c2),'uploadSuccess':_0x22e63a(0x1c1),'uploadSuccessTip':_0x22e63a(0x1be),'downloading':_0x22e63a(0x1c3),'downloadSuccess':_0x22e63a(0x1bb),'unknownMistake':_0x22e63a(0x1b7),'networkError':_0x22e63a(0x1bd),'tooLarge':_0x22e63a(0x1b5),'internalError':'Internal\x20unknown\x20error','interrupt':'The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','fileTypeError':_0x22e63a(0x1bc),'wait':_0x22e63a(0x1b8),'cancel':_0x22e63a(0x1c5),'uploadAgain':'Upload\x20again'}};function _0x1492(_0x27d89b,_0x841c8f){_0x27d89b=_0x27d89b-0x1b3;const _0x28b159=_0x28b1();let _0x149260=_0x28b159[_0x27d89b];return _0x149260;}export{locale as default};
|
package/lib/es/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x409bce=_0x5332;(function(_0xf973fe,_0x60f692){const _0x56128f=_0x5332,_0xedfe41=_0xf973fe();while(!![]){try{const _0x38e7f5=parseInt(_0x56128f(0x133))/0x1*(parseInt(_0x56128f(0x126))/0x2)+parseInt(_0x56128f(0x12e))/0x3*(parseInt(_0x56128f(0x125))/0x4)+-parseInt(_0x56128f(0x130))/0x5+-parseInt(_0x56128f(0x127))/0x6*(parseInt(_0x56128f(0x120))/0x7)+-parseInt(_0x56128f(0x134))/0x8+-parseInt(_0x56128f(0x128))/0x9+-parseInt(_0x56128f(0x132))/0xa*(-parseInt(_0x56128f(0x12a))/0xb);if(_0x38e7f5===_0x60f692)break;else _0xedfe41['push'](_0xedfe41['shift']());}catch(_0x4c3b78){_0xedfe41['push'](_0xedfe41['shift']());}}}(_0x20b0,0x7bbb1));const locale$1={'exchange':{'file':'File','upload':_0x409bce(0x123),'download':_0x409bce(0x135),'uploading':'Uploading','uploadSuccess':_0x409bce(0x12b),'uploadSuccessTip':_0x409bce(0x131),'downloading':_0x409bce(0x121),'downloadSuccess':_0x409bce(0x122),'unknownMistake':'Unknown\x20mistake','networkError':_0x409bce(0x124),'tooLarge':_0x409bce(0x12d),'internalError':'Internal\x20unknown\x20error','interrupt':_0x409bce(0x129),'fileTypeError':'Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','wait':_0x409bce(0x12c),'cancel':_0x409bce(0x12f),'uploadAgain':'Upload\x20again'}},locale=locale$1;function _0x5332(_0x231599,_0x5dbd2f){_0x231599=_0x231599-0x120;const _0x20b078=_0x20b0();let _0x53328a=_0x20b078[_0x231599];return _0x53328a;}export{locale as default};function _0x20b0(){const _0x4781c2=['732408UsnRBe','Save\x20As','997157XmFUnL','Downloading','Download\x20success','Open(File)','Network\x20error','32KCyGGJ','362506RUfxsb','30zxpqdP','5385303DOZocK','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','82258hcdIdW','File\x20uploaded\x20successfully','Please\x20wait...','Data\x20is\x20too\x20large','275223kPGKic','Cancel','1106025vsRevd','{0}\x20file(s)\x20uploaded\x20successfully','1140ZASLuW','3yqElBw'];_0x20b0=function(){return _0x4781c2;};return _0x20b0();}
|
package/lib/es/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5492fd=_0x55fc;function _0x1f16(){const _0x4c6e3e=['4997559chMxed','609492XqfTBy','1218915gyjpad','دانلود\x20موفقیت\x20آمیز','خطای\x20شبکه','فایل','خطای\x20داخلی\x20ناشناخته','لطفا\x20صبر\x20کنید...','ذخیره\x20به\x20عنوان','25189YDsYHi','فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمیشود','بارگذاری\x20مجدد','1694wXLTot','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','2312514euRCGK','داده\x20خیلی\x20بزرگ\x20است','لغو','خطای\x20ناشناخته','38660mRmjgu','1739328xHPSJw','در\x20حال\x20بارگذاری','38MCoxlw','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','بازکردن(فایل)','10qvnHSP','8FGipFn'];_0x1f16=function(){return _0x4c6e3e;};return _0x1f16();}(function(_0xafde53,_0xbf45ea){const _0x533588=_0x55fc,_0x476037=_0xafde53();while(!![]){try{const _0x4d8d09=-parseInt(_0x533588(0xdb))/0x1*(-parseInt(_0x533588(0xe8))/0x2)+parseInt(_0x533588(0xe6))/0x3+parseInt(_0x533588(0xd3))/0x4*(-parseInt(_0x533588(0xeb))/0x5)+-parseInt(_0x533588(0xe1))/0x6+-parseInt(_0x533588(0xd2))/0x7+-parseInt(_0x533588(0xd1))/0x8*(-parseInt(_0x533588(0xd4))/0x9)+-parseInt(_0x533588(0xe5))/0xa*(-parseInt(_0x533588(0xde))/0xb);if(_0x4d8d09===_0xbf45ea)break;else _0x476037['push'](_0x476037['shift']());}catch(_0x266409){_0x476037['push'](_0x476037['shift']());}}}(_0x1f16,0x5e028));const locale={'exchange':{'file':_0x5492fd(0xd7),'upload':_0x5492fd(0xea),'download':_0x5492fd(0xda),'uploading':_0x5492fd(0xe7),'uploadSuccess':_0x5492fd(0xdf),'uploadSuccessTip':_0x5492fd(0xe0),'downloading':'در\x20حال\x20دانلود','downloadSuccess':_0x5492fd(0xd5),'unknownMistake':_0x5492fd(0xe4),'networkError':_0x5492fd(0xd6),'tooLarge':_0x5492fd(0xe2),'internalError':_0x5492fd(0xd8),'interrupt':_0x5492fd(0xe9),'fileTypeError':_0x5492fd(0xdc),'wait':_0x5492fd(0xd9),'cancel':_0x5492fd(0xe3),'uploadAgain':_0x5492fd(0xdd)}};function _0x55fc(_0x41a9bf,_0x38f521){_0x41a9bf=_0x41a9bf-0xd1;const _0x1f16b5=_0x1f16();let _0x55fc8d=_0x1f16b5[_0x41a9bf];return _0x55fc8d;}export{locale as default};
|
package/lib/es/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x422847=_0x56d1;function _0x4d9e(){const _0x1c910f=['Fichier\x20téléchargé\x20avec\x20succès','Annuler','29666prWWew','Téléchargement\x20en\x20cours','1628fOuIfB','1331308KhoNcK','3155FytVeO','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','Erreur\x20interne\x20inconnue','Ouvrir\x20(Fichier)','450954lKYzHv','18720405wGHmWD','Les\x20données\x20sont\x20trop\x20volumineuses','5123144GSymYm','Erreur\x20réseau','972TBWdOL','Enregistrer\x20sous','687712EYMZSW','Erreur\x20inconnue','Veuillez\x20patienter...','Téléchargement'];_0x4d9e=function(){return _0x1c910f;};return _0x4d9e();}function _0x56d1(_0x3d4ff9,_0x532622){_0x3d4ff9=_0x3d4ff9-0x191;const _0x4d9e7d=_0x4d9e();let _0x56d15c=_0x4d9e7d[_0x3d4ff9];return _0x56d15c;}(function(_0x53ce2e,_0x4ecb68){const _0x2c42bb=_0x56d1,_0x242cd2=_0x53ce2e();while(!![]){try{const _0x207966=parseInt(_0x2c42bb(0x1a1))/0x1+-parseInt(_0x2c42bb(0x195))/0x2+-parseInt(_0x2c42bb(0x19a))/0x3+parseInt(_0x2c42bb(0x194))/0x4*(-parseInt(_0x2c42bb(0x196))/0x5)+-parseInt(_0x2c42bb(0x19f))/0x6*(parseInt(_0x2c42bb(0x192))/0x7)+-parseInt(_0x2c42bb(0x19d))/0x8+parseInt(_0x2c42bb(0x19b))/0x9;if(_0x207966===_0x4ecb68)break;else _0x242cd2['push'](_0x242cd2['shift']());}catch(_0x39fe47){_0x242cd2['push'](_0x242cd2['shift']());}}}(_0x4d9e,0x59d93));const locale={'exchange':{'file':'Fichier','upload':_0x422847(0x199),'download':_0x422847(0x1a0),'uploading':_0x422847(0x193),'uploadSuccess':_0x422847(0x1a5),'uploadSuccessTip':_0x422847(0x197),'downloading':_0x422847(0x1a4),'downloadSuccess':'Téléchargement\x20réussi','unknownMistake':_0x422847(0x1a2),'networkError':_0x422847(0x19e),'tooLarge':_0x422847(0x19c),'internalError':_0x422847(0x198),'interrupt':'La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','fileTypeError':'Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','wait':_0x422847(0x1a3),'cancel':_0x422847(0x191),'uploadAgain':'Télécharger\x20à\x20nouveau'}};export{locale as default};
|
package/lib/es/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x45e90b=_0x596c;(function(_0x37657b,_0x586b0b){const _0x43c99b=_0x596c,_0x1fab2a=_0x37657b();while(!![]){try{const _0x3e73f5=parseInt(_0x43c99b(0xd6))/0x1+-parseInt(_0x43c99b(0xd1))/0x2*(parseInt(_0x43c99b(0xcc))/0x3)+-parseInt(_0x43c99b(0xbf))/0x4+parseInt(_0x43c99b(0xca))/0x5+parseInt(_0x43c99b(0xd3))/0x6*(parseInt(_0x43c99b(0xd0))/0x7)+parseInt(_0x43c99b(0xbe))/0x8*(parseInt(_0x43c99b(0xcb))/0x9)+parseInt(_0x43c99b(0xc5))/0xa*(-parseInt(_0x43c99b(0xc9))/0xb);if(_0x3e73f5===_0x586b0b)break;else _0x1fab2a['push'](_0x1fab2a['shift']());}catch(_0x5d217f){_0x1fab2a['push'](_0x1fab2a['shift']());}}}(_0x48a6,0xee39d));function _0x596c(_0x590942,_0x57595d){_0x590942=_0x590942-0xbe;const _0x48a610=_0x48a6();let _0x596c1a=_0x48a610[_0x590942];return _0x596c1a;}const locale={'exchange':{'file':_0x45e90b(0xcf),'upload':_0x45e90b(0xc7),'download':'名前を付けて保存','uploading':_0x45e90b(0xd4),'uploadSuccess':_0x45e90b(0xc6),'uploadSuccessTip':'{0}\x20個のファイルが正常にアップロードされました','downloading':_0x45e90b(0xc0),'downloadSuccess':_0x45e90b(0xd5),'unknownMistake':_0x45e90b(0xcd),'networkError':_0x45e90b(0xce),'tooLarge':_0x45e90b(0xc2),'internalError':_0x45e90b(0xd2),'interrupt':_0x45e90b(0xc3),'fileTypeError':_0x45e90b(0xc8),'wait':_0x45e90b(0xc1),'cancel':_0x45e90b(0xc4),'uploadAgain':'再度アップロード'}};function _0x48a6(){const _0x1bb33c=['不明なエラー','ネットワークエラー','ファイル','77Snchsk','162GuDtXe','内部エラーが発生しました','744882qacRbq','アップロード中','ダウンロードが完了しました','835209eqDitg','8enUeAl','3446372dHUFTD','ダウンロード中','お待ちください...','データが大きすぎます','ネットワーク接続が中断され、ファイルのアップロードに失敗しました','キャンセル','39070OSpNbd','ファイルが正常にアップロードされました','開く(ファイル)','選択されたファイル\x20[{0}]\x20はアップロードがサポートされていません','5423BqkixY','8498705xjuJjz','9448587IhJHpR','43959pGyQwM'];_0x48a6=function(){return _0x1bb33c;};return _0x48a6();}export{locale as default};
|