@univerjs-pro/exchange-client 1.0.4 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/es/facade.js +1 -1
  4. package/lib/es/index.js +1 -1
  5. package/lib/facade.js +1 -1
  6. package/lib/index.js +1 -1
  7. package/lib/types/index.d.ts +0 -5
  8. package/lib/types/plugin.d.ts +0 -1
  9. package/lib/types/services/utils/tool.d.ts +0 -1
  10. package/lib/umd/facade.js +1 -1
  11. package/lib/umd/index.js +1 -1
  12. package/package.json +11 -18
  13. package/lib/cjs/locale/ar-SA.js +0 -1
  14. package/lib/cjs/locale/ca-ES.js +0 -1
  15. package/lib/cjs/locale/de-DE.js +0 -1
  16. package/lib/cjs/locale/en-US.js +0 -1
  17. package/lib/cjs/locale/es-ES.js +0 -1
  18. package/lib/cjs/locale/fa-IR.js +0 -1
  19. package/lib/cjs/locale/fr-FR.js +0 -1
  20. package/lib/cjs/locale/id-ID.js +0 -1
  21. package/lib/cjs/locale/it-IT.js +0 -1
  22. package/lib/cjs/locale/ja-JP.js +0 -1
  23. package/lib/cjs/locale/ko-KR.js +0 -1
  24. package/lib/cjs/locale/pl-PL.js +0 -1
  25. package/lib/cjs/locale/pt-BR.js +0 -1
  26. package/lib/cjs/locale/ru-RU.js +0 -1
  27. package/lib/cjs/locale/sk-SK.js +0 -1
  28. package/lib/cjs/locale/vi-VN.js +0 -1
  29. package/lib/cjs/locale/zh-CN.js +0 -1
  30. package/lib/cjs/locale/zh-HK.js +0 -1
  31. package/lib/cjs/locale/zh-TW.js +0 -1
  32. package/lib/es/locale/ar-SA.js +0 -1
  33. package/lib/es/locale/ca-ES.js +0 -1
  34. package/lib/es/locale/de-DE.js +0 -1
  35. package/lib/es/locale/en-US.js +0 -1
  36. package/lib/es/locale/es-ES.js +0 -1
  37. package/lib/es/locale/fa-IR.js +0 -1
  38. package/lib/es/locale/fr-FR.js +0 -1
  39. package/lib/es/locale/id-ID.js +0 -1
  40. package/lib/es/locale/it-IT.js +0 -1
  41. package/lib/es/locale/ja-JP.js +0 -1
  42. package/lib/es/locale/ko-KR.js +0 -1
  43. package/lib/es/locale/pl-PL.js +0 -1
  44. package/lib/es/locale/pt-BR.js +0 -1
  45. package/lib/es/locale/ru-RU.js +0 -1
  46. package/lib/es/locale/sk-SK.js +0 -1
  47. package/lib/es/locale/vi-VN.js +0 -1
  48. package/lib/es/locale/zh-CN.js +0 -1
  49. package/lib/es/locale/zh-HK.js +0 -1
  50. package/lib/es/locale/zh-TW.js +0 -1
  51. package/lib/index.css +0 -459
  52. package/lib/locale/ar-SA.js +0 -1
  53. package/lib/locale/ca-ES.js +0 -1
  54. package/lib/locale/de-DE.js +0 -1
  55. package/lib/locale/en-US.js +0 -1
  56. package/lib/locale/es-ES.js +0 -1
  57. package/lib/locale/fa-IR.js +0 -1
  58. package/lib/locale/fr-FR.js +0 -1
  59. package/lib/locale/id-ID.js +0 -1
  60. package/lib/locale/it-IT.js +0 -1
  61. package/lib/locale/ja-JP.js +0 -1
  62. package/lib/locale/ko-KR.js +0 -1
  63. package/lib/locale/pl-PL.js +0 -1
  64. package/lib/locale/pt-BR.js +0 -1
  65. package/lib/locale/ru-RU.js +0 -1
  66. package/lib/locale/sk-SK.js +0 -1
  67. package/lib/locale/vi-VN.js +0 -1
  68. package/lib/locale/zh-CN.js +0 -1
  69. package/lib/locale/zh-HK.js +0 -1
  70. package/lib/locale/zh-TW.js +0 -1
  71. package/lib/types/controllers/components.controller.d.ts +0 -9
  72. package/lib/types/controllers/exchange.controller.d.ts +0 -8
  73. package/lib/types/controllers/mobile/components.controller.d.ts +0 -7
  74. package/lib/types/controllers/mobile/exchange.controller.d.ts +0 -7
  75. package/lib/types/locale/ar-SA.d.ts +0 -3
  76. package/lib/types/locale/ca-ES.d.ts +0 -3
  77. package/lib/types/locale/de-DE.d.ts +0 -3
  78. package/lib/types/locale/en-US.d.ts +0 -20
  79. package/lib/types/locale/es-ES.d.ts +0 -3
  80. package/lib/types/locale/fa-IR.d.ts +0 -3
  81. package/lib/types/locale/fr-FR.d.ts +0 -3
  82. package/lib/types/locale/id-ID.d.ts +0 -3
  83. package/lib/types/locale/it-IT.d.ts +0 -3
  84. package/lib/types/locale/ja-JP.d.ts +0 -3
  85. package/lib/types/locale/ko-KR.d.ts +0 -3
  86. package/lib/types/locale/pl-PL.d.ts +0 -3
  87. package/lib/types/locale/pt-BR.d.ts +0 -3
  88. package/lib/types/locale/ru-RU.d.ts +0 -3
  89. package/lib/types/locale/sk-SK.d.ts +0 -3
  90. package/lib/types/locale/types.d.ts +0 -3
  91. package/lib/types/locale/vi-VN.d.ts +0 -3
  92. package/lib/types/locale/zh-CN.d.ts +0 -3
  93. package/lib/types/locale/zh-HK.d.ts +0 -3
  94. package/lib/types/locale/zh-TW.d.ts +0 -3
  95. package/lib/types/mobile-plugin.d.ts +0 -13
  96. package/lib/types/services/operate.service.d.ts +0 -73
  97. package/lib/types/services/upload-notification.service.d.ts +0 -52
  98. package/lib/types/services/utils/collaboration.d.ts +0 -2
  99. package/lib/types/views/UploadNotificationContainer.d.ts +0 -2
  100. package/lib/types/views/export-format-dialog/ExportFormatDialog.d.ts +0 -14
  101. package/lib/types/views/link-list/LinkList.d.ts +0 -5
  102. package/lib/types/views/mobile/MobileExportFormatDialog.d.ts +0 -14
  103. package/lib/types/views/mobile/MobileUploadNotification.d.ts +0 -1
  104. package/lib/types/views/upload-again/UploadAgain.d.ts +0 -1
  105. package/lib/types/views/upload-button/UploadButton.d.ts +0 -7
  106. package/lib/types/views/upload-error/UploadError.d.ts +0 -1
  107. package/lib/types/views/upload-notification/UploadNotification.d.ts +0 -1
  108. package/lib/types/views/upload-success/UploadSuccess.d.ts +0 -4
  109. package/lib/types/views/uploading/Uploading.d.ts +0 -1
  110. package/lib/types/views/uploading/upload-cancel/UploadCancel.d.ts +0 -1
  111. package/lib/types/views/uploading/upload-progress/UploadProgress.d.ts +0 -1
  112. package/lib/umd/locale/ar-SA.js +0 -1
  113. package/lib/umd/locale/ca-ES.js +0 -1
  114. package/lib/umd/locale/de-DE.js +0 -1
  115. package/lib/umd/locale/en-US.js +0 -1
  116. package/lib/umd/locale/es-ES.js +0 -1
  117. package/lib/umd/locale/fa-IR.js +0 -1
  118. package/lib/umd/locale/fr-FR.js +0 -1
  119. package/lib/umd/locale/id-ID.js +0 -1
  120. package/lib/umd/locale/it-IT.js +0 -1
  121. package/lib/umd/locale/ja-JP.js +0 -1
  122. package/lib/umd/locale/ko-KR.js +0 -1
  123. package/lib/umd/locale/pl-PL.js +0 -1
  124. package/lib/umd/locale/pt-BR.js +0 -1
  125. package/lib/umd/locale/ru-RU.js +0 -1
  126. package/lib/umd/locale/sk-SK.js +0 -1
  127. package/lib/umd/locale/vi-VN.js +0 -1
  128. package/lib/umd/locale/zh-CN.js +0 -1
  129. package/lib/umd/locale/zh-HK.js +0 -1
  130. package/lib/umd/locale/zh-TW.js +0 -1
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4903ec=_0x1f4c;(function(_0x16f14c,_0xcc02d5){const _0x5c3f79=_0x1f4c,_0x1b2c15=_0x16f14c();while(!![]){try{const _0x50e523=-parseInt(_0x5c3f79(0x118))/0x1*(-parseInt(_0x5c3f79(0xcf))/0x2)+parseInt(_0x5c3f79(0x103))/0x3*(-parseInt(_0x5c3f79(0x1e4))/0x4)+parseInt(_0x5c3f79(0x194))/0x5*(parseInt(_0x5c3f79(0x101))/0x6)+-parseInt(_0x5c3f79(0x203))/0x7*(-parseInt(_0x5c3f79(0x1b0))/0x8)+-parseInt(_0x5c3f79(0x131))/0x9+parseInt(_0x5c3f79(0x182))/0xa*(-parseInt(_0x5c3f79(0x1b4))/0xb)+-parseInt(_0x5c3f79(0xb4))/0xc;if(_0x50e523===_0xcc02d5)break;else _0x1b2c15['push'](_0x1b2c15['shift']());}catch(_0x35a9cc){_0x1b2c15['push'](_0x1b2c15['shift']());}}}(_0x30db,0x4099f));function _0x30db(){const _0x3316ec=['progress$','UNIVER_BASE','join','MODERN','next','unshift','toString','TSV','fetchMissingChangesets','mobile-upload-notification','getConfig','noreferrer','count','_iconManager','error','docx','getFileById','defineProperty','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','export\x20error','_getExportURL','forEach','150OSbqTt','importFileToJson','_signUrl','_injector','_buildHttpErrorMessage',':\x20HTTP\x20','exportFileByUnitId','uploadFileServerUrl','_clearProgress','retryImportFileToUnitId','application/vnd.ms-excel','univer-ml-1\x20univer-truncate\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-gray-0','_httpService','isArray','saveSnapshot','_upload','setTaskInterrupted','univer-animate-spin','345UygXRB','HttpImport','pending','univer-truncate','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-1.5\x20univer-pr-2','/universer-api/file/{fileID}/sign-url','_localeService','fileID','toLowerCase','univer-flex\x20univer-justify-end\x20univer-gap-2','exchange-client.networkError','_emitProgress','style','unitID','resolve','call','CONNECTOR_DATA_TOO_LARGE','downloadFile','sheets','_config','subscribe','interruptImportTask','blockID','show','catch','exchange-client.uploading','ranges','files','8072yrbWYW','univer-grid\x20univer-gap-4','_showUploadMessage','?size=','80575mXsCjj','importFileToUnitId','UNIVER_EXCHANGE_CLIENT_PLUGIN','univer-text-sm\x20univer-text-gray-500','entries','_importTaskId','hide','univer-w-full\x20!univer-min-w-0','UNIVER_BOARD','aborted','_registerComponents','exchange-client.confirm','_refreshUnit','_blank','data','getTextFromUrl','1.0.4','title','traditional','_getLinkByUnitId','univer-text-sm\x20univer-text-gray-700\x20dark:!univer-text-gray-200','importer','No\x20unit\x20of\x20type\x20','file.json','disposeWithMe','outputType','UNIVER_PROJECT','univer-m-0\x20univer-grid\x20univer-list-none\x20univer-gap-2\x20univer-p-0','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-50\x20univer-px-3\x20univer-py-2\x20univer-text-gray-900\x20univer-no-underline\x20dark:!univer-bg-gray-800\x20dark:!univer-text-gray-0','GET','univer-pro.exchange-client.upload-notification.service','Failed\x20to\x20get\x20taskID\x20from\x20import\x20response','File\x20request\x20completed\x20without\x20a\x20response.','_progress$','upload\x20request\x20failed:\x20failed\x20to\x20read\x20source\x20file\x20from\x20url','multiple','convert-then-values','_list$','UNIVER_SHEET','href','auto','headers','createElement','Failed\x20to\x20get\x20fileID\x20from\x20task','map','_requestState$','none','Failed\x20to\x20parse\x20json','216ZeMLvv','\x20-\x20','/universer-api/exchange/{type}/export','exchange-client.unknownMistake','_state$','has','floor','onReady','sign\x20url\x20error','application/vnd.openxmlformats-officedocument.presentationml.presentation','Response','pluginName','_sheetBlockCache','UNDEFINED','fail','parse','univer-h-1.5\x20univer-rounded-lg\x20univer-bg-primary-600\x20univer-transition-[width]\x20univer-duration-500','status','statusText','register','application/msword','link','_getSignURL','stringify','_registerUIParts','createUnit','string','getTask','current','FAIL','exchange-client.uploadSuccess','399nucKdN','CSV','span','_extractErrorDetail','UNIVER_SLIDE','accept','exchange-client.cancel','set','&flate=','type','tables','Success','primary','univer-w-10','univer-mb-3\x20univer-py-0\x20univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-gray-0','Failed\x20to\x20get\x20jsonID\x20from\x20task','pdf','XLSX','_getTaskURL','_taskInterrupted','_buildProtocolErrorMessage','univer-m-0\x20univer-flex\x20univer-list-none\x20univer-flex-col\x20univer-gap-2\x20univer-p-0','updateState','location','append','PDF','univer-h-full\x20univer-rounded-lg\x20univer-bg-primary-600\x20univer-transition-[width]\x20univer-duration-500','body','file','UNIVER_PDF','getDeserializedSheetBlock','exchange-client.downloading','tsv','abort','function','univer-flex\x20univer-w-[calc(100%-48px)]\x20univer-items-center','split','unsubscribe','div','header','univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-gray-0','packageName','univer-mt-5\x20univer-max-h-72\x20univer-overflow-y-auto\x20univer-overflow-x-hidden','Warning','_uiPartsService','99684KfQGog','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-gray-0\x20univer-px-3\x20univer-pb-4\x20univer-pt-5\x20univer-shadow-md','upload\x20request\x20failed','icon','encode','{fileID}','version','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm','interrupt','maxTimeoutTime','application/octet-stream','pptx','list$','_totalUploadTaskCount','display','univer-mt-3\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-2\x20univer-pr-1','signUrl','univer-flex\x20univer-flex-col\x20univer-gap-4','registerComponent','signUrlServerUrl','message','input','saveSheetBlock','setConfig','Get\x20outputType\x20error','UNIVER_DOC','url','8SMRutZ','\x20is\x20currently\x20active.','export','_export','import','univer-h-1.5\x20univer-w-full\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-bg-gray-200','_getUploadFileURL','exchange-client.config','univer-text-red-500','_addTotalCount','getOwnPropertyDescriptor','dispose','AUTO','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','text/tab-separated-values','toUpperCase','complete','replace','Failed\x20to\x20get\x20unitID\x20from\x20task','_lastUnitImportContext','download','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-gray-0\x20dark:hover:!univer-bg-gray-600','exchange-client.uploadAgain','univer-sticky\x20univer-bottom-0\x20univer-bg-gray-0\x20univer-py-3\x20dark:!univer-bg-gray-900','_doneUploadTaskCount','_componentManager','DOCX','{taskID}','CONVERT_THEN_VALUES','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','button','getResourcesRequest','_uploadTaskNotDone','{type}','_showNetworkError','_visible$','prototype','appendChild','univer-fixed\x20univer-bottom-16\x20univer-left-3\x20univer-right-3\x20univer-z-[1000]\x20univer-box-border\x20univer-grid\x20univer-max-h-[50vh]\x20univer-gap-3\x20univer-overflow-y-auto\x20univer-rounded-xl\x20univer-bg-gray-0\x20univer-p-4\x20univer-shadow-lg\x20dark:!univer-bg-gray-900','univer-text-blue-500','code','&source=','getTaskServerUrl','addEventListener','/universer-api/exchange/task/{taskID}','Error\x20getting\x20file\x20name\x20from\x20URL:','small','Info','trim','pathname','38928NBmyXT','focusUnit','24639BsgcwM','univer-flex\x20univer-flex-col\x20univer-gap-5\x20univer-p-1','RANGES','FileId','success','constructor','_requestService','JSON','values','HYBRID','univer-grid\x20univer-gap-3','post','univer-pro.exchange-client.exchange.service','originalMeta','buffer','upload\x20failed:\x20FileId\x20is\x20empty','xls','_exchangeService','_registerIcons','filter','get','92604KgjfNI','UNIT','onStarting','_completeProgress','default','univer-flex\x20univer-h-5\x20univer-text-xl','change','decorate','univer-text-green-500','length','iterator','_getDownloadEndpointURL','univer-flex\x20univer-size-5\x20univer-shrink-0\x20univer-items-center','_messageService','Error','_configService','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','match','clearTaskInterrupted','_list','Failed\x20to\x20get\x20text\x20from\x20url','UNRECOGNIZED','exchange-client.wait','exchange-client.tooLarge','exportFile','443790JTfAjo','import\x20error','symbol','getSheetBlock','origin','application/pdf','INTERNAL_ERROR','searchParams','text','univer-flex\x20univer-size-6\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-text-xl','blob','_exportBySnapshot','univer-grid\x20univer-gap-2\x20univer-rounded-xl\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-bg-gray-800','univer-w-48','object','copyFileMeta','file.','createObjectURL','asObservable','state$','csv','univer-ml-1.5\x20univer-font-semibold\x20univer-text-gray-900\x20dark:!univer-text-gray-0','TRADITIONAL','xlsx','_showDownloadMessage','_importFileToUnitId','Failed\x20to\x20get\x20file\x20from\x20url','unit','content-disposition','Content-Type','requestState$','visible$','hybrid','PPTX','_univerInstanceService','jsonID','add','_uploadNotificationService','_isSelectingUnitImportFile','upload\x20failed:\x20missing\x20FileId\x20in\x20response','pop','done','application/vnd.openxmlformats-officedocument.wordprocessingml.document','univer-mt-5\x20univer-flex\x20univer-flex-col','_import','exchange-client.interrupt','CONTENT','taskID','keys','upload','univer-flex\x20univer-size-6\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-text-2xl','pushLink','getUnitOnRev','_addDoneTask','decode','univer-grid\x20univer-gap-2','stream','importServerUrl','name'];_0x30db=function(){return _0x3316ec;};return _0x30db();}import{UniverLicensePlugin as _0x56b9c8}from'@univerjs-pro/license';import{DependentOn as _0x1dbe2a,Disposable as _0x332c69,IConfigService as _0x1f74df,ILogService as _0x3bb871,IUniverInstanceService as _0x45c5cd,Inject as _0x2f697a,Injector as _0x3ac7ad,LocaleService as _0xba597a,Plugin as _0x256c29,UniverInstanceType as _0x2cfd86,createIdentifier as _0x54d699,merge as _0x1460d9,registerDependencies as _0x2718c1,resolveWithBasePath as _0x2a8fd0,toDisposable as _0x5e5517,touchDependencies as _0x5ada79}from'@univerjs/core';import{HTTPEventType as _0x1fbf08,HTTPResponseError as _0x17fb66,HTTPService as _0xb3a54c,UniverNetworkPlugin as _0xef202d}from'@univerjs/network';import{BuiltInUIPart as _0x402cca,ComponentManager as _0x4dba84,IMessageService as _0x1fc736,IUIPartsService as _0xa08f42,IconManager as _0x2a3388,UniverMobileUIPlugin as _0x37d249,connectInjector as _0x2f1d93,useDependency as _0x19a164,useObservable as _0x4b9619}from'@univerjs/ui';import{ClockIcon as _0x1a031f,CloseIcon as _0x506d7a,DirectExportIcon as _0x2a5e1e,DocsMultiIcon as _0x182bfa,ErrorIcon as _0x2ece5e,ExportIcon as _0x19c606,FolderIcon as _0x5801db,LoadingMultiIcon as _0x49221f,ShareRangeIcon as _0x55603c,SheetsMultiIcon as _0x16d2ee,SlidesMultiIcon as _0x237d9d,SuccessIcon as _0x2b98bc}from'@univerjs/icons';function _0x1f4c(_0x7e7ee7,_0x2a4fdb){_0x7e7ee7=_0x7e7ee7-0xb3;const _0x30db5c=_0x30db();let _0x1f4ca2=_0x30db5c[_0x7e7ee7];return _0x1f4ca2;}import{Button as _0x3a173d,MessageType as _0x3bebf0,MobileActionRowGroup as _0x267a35,MobileSelect as _0x4321de,Radio as _0x42fc16,Select as _0x34c44a,Tooltip as _0xa440b5,clsx as _0x5bef70,scrollbarClassName as _0x2fea5c}from'@univerjs/design';import{useRef as _0x4125a2,useState as _0x1aedcb}from'react';import{ErrorCode as _0x6f2d17,FileSource as _0x546636}from'@univerjs/protocol';import{jsx as _0x4fb351,jsxs as _0x2ca7b1}from'react/jsx-runtime';import{BehaviorSubject as _0x47de39,Subject as _0x5594f5}from'rxjs';import{ISnapshotServerService as _0x936458,SnapshotService as _0x24a705,b64EncodeUnicode as _0x51219f,textDecoder as _0x41a199,textEncoder as _0x14b9f5}from'@univerjs-pro/collaboration';import{deflateSync as _0x4f71f7}from'fflate';var D='@univerjs-pro/exchange-client',O=_0x4903ec(0x1c4);const k=_0x4903ec(0xd6),A={},Re=_0x4903ec(0x15b),ze=_0x4903ec(0x1f8),j=_0x4903ec(0x18c),M=_0x4903ec(0xdc),N='text/csv',P=_0x4903ec(0xdd),Be='application/vnd.ms-powerpoint',Ve=_0x4903ec(0x1ed),He=_0x4903ec(0x136),Ue={[_0x2cfd86['UNIVER_UNKNOWN']]:[''],[_0x2cfd86[_0x4903ec(0xcd)]]:[ze,Re],[_0x2cfd86[_0x4903ec(0x1da)]]:[j,M,N,P],[_0x2cfd86[_0x4903ec(0x207)]]:[Be,Ve],[_0x2cfd86[_0x4903ec(0x220)]]:[He],[_0x2cfd86[_0x4903ec(0x16d)]]:[j,M,N,P],[_0x2cfd86[_0x4903ec(0x1bc)]]:[''],[_0x2cfd86[_0x4903ec(0x1ce)]]:[''],[_0x2cfd86[_0x4903ec(0x12d)]]:['']},We={[ze]:'doc',[Re]:_0x4903ec(0x17b),[j]:_0x4903ec(0x113),[M]:_0x4903ec(0x148),[N]:_0x4903ec(0x145),[P]:_0x4903ec(0x223),[Be]:'ppt',[Ve]:_0x4903ec(0xbf),[He]:'pdf'},Ge=Object['fromEntries'](Object[_0x4903ec(0x1b8)](Ue)[_0x4903ec(0x1e0)](([_0x398dac,_0x464299])=>[_0x398dac,_0x464299[_0x4903ec(0x1e0)](_0x518563=>We[_0x518563])[_0x4903ec(0x116)](Boolean)]));function Ke(_0x353032,_0x2a4a5c,_0x4f97dd){const _0xc9cd65=_0x4903ec;let _0x5c3646=document[_0xc9cd65(0x1de)]('a');_0x5c3646[_0xc9cd65(0x1db)]=_0x353032,_0x5c3646[_0xc9cd65(0x1a0)][_0xc9cd65(0xc2)]=_0xc9cd65(0x1e2),_0x5c3646[_0xc9cd65(0xe3)]=_0x2a4a5c+'.'+_0x4f97dd,document[_0xc9cd65(0x21e)][_0xc9cd65(0xf4)](_0x5c3646),_0x5c3646['click'](),document[_0xc9cd65(0x21e)]['removeChild'](_0x5c3646);}function qe(_0x44b26c,_0x584f33){const _0xec1ea1=_0x4903ec;var _0x1655b9;let _0xf46a51=(_0x1655b9=_0x44b26c[_0xec1ea1(0x16b)][_0xec1ea1(0x227)]('.')[_0xec1ea1(0x159)]())==null?void 0x0:_0x1655b9[_0xec1ea1(0x19c)]();return!!(_0xf46a51&&(Ge[_0x584f33]??[])['includes'](_0xf46a51));}function F(_0x11e5b1,_0x3674f3=!0x1){const _0x136156=_0x4903ec;let _0x526ff5=_0x11e5b1['flatMap'](_0x16710e=>Ge[_0x16710e]??[])[_0x136156(0x1e0)](_0x73ebc1=>'.'+_0x73ebc1)[_0x136156(0x16e)](',');return new Promise(_0x1d6e68=>{const _0x3b9c85=_0x136156;let _0x2bd763=document[_0x3b9c85(0x1de)](_0x3b9c85(0xc9));_0x2bd763['type']=_0x3b9c85(0x21f),_0x2bd763[_0x3b9c85(0x208)]=_0x526ff5,_0x2bd763[_0x3b9c85(0x1d7)]=_0x3674f3;let _0x9993d2=()=>{const _0x2857bc=_0x3b9c85;var _0x1a12c7;return _0x1d6e68((_0x1a12c7=_0x2bd763[_0x2857bc(0x1af)])!=null&&_0x1a12c7[_0x2857bc(0x121)]?_0x2bd763[_0x2857bc(0x1af)]:null);};_0x2bd763[_0x3b9c85(0xfa)](_0x3b9c85(0x11e),_0x9993d2,{'once':!0x0}),_0x2bd763[_0x3b9c85(0xfa)]('cancel',_0x9993d2,{'once':!0x0}),_0x2bd763['click']();});}async function Je(_0x52dfce,_0x19fd4c){const _0x2ed50f=_0x4903ec;try{return await Ye(_0x52dfce,_0x19fd4c);}catch(_0xddcc6c){console[_0x2ed50f(0x17a)]('Error\x20fetching\x20file\x20from\x20URL:',_0xddcc6c);return;}}async function Ye(_0x16ce86,_0x2e79bc,_0x4d46f8){const _0x1631d5=_0x4903ec;var _0x41245a,_0x4cb147;let _0x112ff0=_0x4d46f8?await Xe(_0x16ce86,_0x2e79bc,_0x4d46f8):await _0x2e79bc[_0x1631d5(0x117)](_0x16ce86,{'responseType':_0x1631d5(0x13b)}),_0x1a38d7=_0x112ff0[_0x1631d5(0x21e)],_0x4f6502=((_0x41245a=_0x112ff0['headers'][_0x1631d5(0x117)](_0x1631d5(0x14e)))==null?void 0x0:_0x41245a[_0x1631d5(0x16e)](',\x20'))??_0x1631d5(0xbe),_0x37b51a=_0x1631d5(0x141)+(We[_0x4f6502]||_0x1631d5(0x148)),_0x46e9d4=(_0x4cb147=_0x112ff0[_0x1631d5(0x1dd)]['get'](_0x1631d5(0x14d)))==null?void 0x0:_0x4cb147[_0x1631d5(0x16e)](',\x20');if(_0x46e9d4){let _0x46f050=_0x46e9d4[_0x1631d5(0x129)](/filename=(.+)/);_0x46f050&&_0x46f050[0x1]&&(_0x37b51a=_0x46f050[0x1]);}else _0x37b51a=Ze(_0x16ce86)||_0x37b51a;return new File([_0x1a38d7],_0x37b51a,{'type':_0x4f6502});}function Xe(_0x5eb0b2,_0x343601,_0x133c7e){return new Promise((_0x5ed696,_0xb0ce41)=>{const _0x2d87c4=_0x1f4c;let _0x582c42=!0x1,_0x18c480,_0x43303c=()=>_0x133c7e['removeEventListener'](_0x2d87c4(0x224),_0x1181b7),_0x1181b7=()=>{const _0x1809a1=_0x2d87c4;if(_0x582c42)return;_0x582c42=!0x0,_0x18c480==null||_0x18c480[_0x1809a1(0x228)](),_0x43303c();let _0x406378=Error('File\x20request\x20aborted.');_0x406378[_0x1809a1(0x16b)]='AbortError',_0xb0ce41(_0x406378);};if(_0x133c7e['addEventListener']('abort',_0x1181b7,{'once':!0x0}),_0x133c7e[_0x2d87c4(0x1bd)]){_0x1181b7();return;}_0x18c480=_0x343601[_0x2d87c4(0x169)](_0x2d87c4(0x1d1),_0x5eb0b2,{'responseType':_0x2d87c4(0x13b)})[_0x2d87c4(0x1a8)]({'next'(_0x312a9d){const _0x2030d8=_0x2d87c4;_0x582c42||_0x312a9d[_0x2030d8(0x20c)]!==_0x1fbf08[_0x2030d8(0x1ee)]||(_0x582c42=!0x0,_0x43303c(),_0x18c480==null||_0x18c480[_0x2030d8(0x228)](),_0x5ed696(_0x312a9d));},'error'(_0xd724ab){_0x582c42||(_0x582c42=!0x0,_0x43303c(),_0xb0ce41(_0xd724ab));},'complete'(){const _0x28811e=_0x2d87c4;_0x582c42||(_0x582c42=!0x0,_0x43303c(),_0xb0ce41(Error(_0x28811e(0x1d4))));}}),_0x582c42&&_0x18c480[_0x2d87c4(0x228)]();});}function Ze(_0x39b4f7){const _0x2a0676=_0x4903ec;try{return new URL(_0x39b4f7)[_0x2a0676(0x100)][_0x2a0676(0x227)]('/')[_0x2a0676(0x159)]();}catch(_0x38a2cd){console[_0x2a0676(0x17a)](_0x2a0676(0xfc),_0x38a2cd);return;}}function Qe(_0x2fa5e0){const _0x191031=_0x4903ec;let _0x4ad4bd=new Blob([_0x2fa5e0[_0x191031(0x111)]],{'type':'application/json'});return new File([_0x4ad4bd],_0x191031(0x1cb));}function $e(_0x3553cd,_0x1988f9){const _0x381955=_0x4903ec;return _0x3553cd[_0x381955(0xe0)](_0x381955(0xf0),_0x1988f9);}function et(_0x1544cc,_0x4e166f){const _0x101fd2=_0x4903ec;return _0x1544cc[_0x101fd2(0xe0)](_0x101fd2(0xea),_0x4e166f);}function tt(_0x5b971b,_0x3bab81){const _0x204da2=_0x4903ec;return _0x5b971b['replace'](_0x204da2(0xb9),_0x3bab81);}function I(_0x1e9721){'@babel/helpers - typeof';const _0x45743c=_0x4903ec;return I=typeof Symbol==_0x45743c(0x225)&&typeof Symbol[_0x45743c(0x122)]==_0x45743c(0x133)?function(_0x391986){return typeof _0x391986;}:function(_0x345581){const _0x30c340=_0x45743c;return _0x345581&&typeof Symbol==_0x30c340(0x225)&&_0x345581[_0x30c340(0x108)]===Symbol&&_0x345581!==Symbol[_0x30c340(0xf3)]?'symbol':typeof _0x345581;},I(_0x1e9721);}function nt(_0x38f6cd,_0x4881e3){const _0x1eda14=_0x4903ec;if(I(_0x38f6cd)!='object'||!_0x38f6cd)return _0x38f6cd;var _0xb101f5=_0x38f6cd[Symbol['toPrimitive']];if(_0xb101f5!==void 0x0){var _0xc9e726=_0xb101f5[_0x1eda14(0x1a3)](_0x38f6cd,_0x4881e3||_0x1eda14(0x11c));if(I(_0xc9e726)!=_0x1eda14(0x13f))return _0xc9e726;throw TypeError(_0x1eda14(0x17e));}return(_0x4881e3===_0x1eda14(0x1fe)?String:Number)(_0x38f6cd);}function rt(_0x255f9b){const _0x5d16f6=_0x4903ec;var _0x1117eb=nt(_0x255f9b,_0x5d16f6(0x1fe));return I(_0x1117eb)==_0x5d16f6(0x133)?_0x1117eb:_0x1117eb+'';}function L(_0x491104,_0x537db,_0x4b991a){const _0x20eec7=_0x4903ec;return(_0x537db=rt(_0x537db))in _0x491104?Object[_0x20eec7(0x17d)](_0x491104,_0x537db,{'value':_0x4b991a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x491104[_0x537db]=_0x4b991a,_0x491104;}function R(_0x3e4d70,_0x33d08f){return function(_0x373cb4,_0x58648a){_0x33d08f(_0x373cb4,_0x58648a,_0x3e4d70);};}function z(_0x2c8972,_0x381424,_0x25f6e9,_0x98be9f){const _0x344730=_0x4903ec;var _0x1cf846=arguments[_0x344730(0x121)],_0x1551a2=_0x1cf846<0x3?_0x381424:_0x98be9f===null?_0x98be9f=Object[_0x344730(0xd9)](_0x381424,_0x25f6e9):_0x98be9f,_0x15fe58;if(typeof Reflect==_0x344730(0x13f)&&typeof Reflect[_0x344730(0x11f)]=='function')_0x1551a2=Reflect[_0x344730(0x11f)](_0x2c8972,_0x381424,_0x25f6e9,_0x98be9f);else{for(var _0xa51dc7=_0x2c8972['length']-0x1;_0xa51dc7>=0x0;_0xa51dc7--)(_0x15fe58=_0x2c8972[_0xa51dc7])&&(_0x1551a2=(_0x1cf846<0x3?_0x15fe58(_0x1551a2):_0x1cf846>0x3?_0x15fe58(_0x381424,_0x25f6e9,_0x1551a2):_0x15fe58(_0x381424,_0x25f6e9))||_0x1551a2);}return _0x1cf846>0x3&&_0x1551a2&&Object[_0x344730(0x17d)](_0x381424,_0x25f6e9,_0x1551a2),_0x1551a2;}let it=function(_0x1405ec){const _0x12296a=_0x4903ec;return _0x1405ec[_0x1405ec[_0x12296a(0x1f1)]=0x0]=_0x12296a(0x1f1),_0x1405ec[_0x1405ec[_0x12296a(0x119)]=0x1]='UNIT',_0x1405ec[_0x1405ec[_0x12296a(0x10a)]=0x2]=_0x12296a(0x10a),_0x1405ec[_0x1405ec[_0x12296a(0x12d)]=-0x1]=_0x12296a(0x12d),_0x1405ec;}({}),at=function(_0x1db3f7){const _0x1e455f=_0x4903ec;return _0x1db3f7[_0x1e455f(0x214)]=_0x1e455f(0x148),_0x1db3f7[_0x1e455f(0x204)]=_0x1e455f(0x145),_0x1db3f7[_0x1e455f(0x173)]=_0x1e455f(0x223),_0x1db3f7[_0x1e455f(0xe9)]=_0x1e455f(0x17b),_0x1db3f7[_0x1e455f(0x152)]=_0x1e455f(0xbf),_0x1db3f7[_0x1e455f(0x21c)]=_0x1e455f(0x213),_0x1db3f7;}({}),ot=function(_0x16f15f){const _0x4a7c40=_0x4903ec;return _0x16f15f[_0x4a7c40(0x16f)]='modern',_0x16f15f[_0x4a7c40(0x147)]=_0x4a7c40(0x1c6),_0x16f15f;}({}),st=function(_0x5a3b45){const _0x5a7339=_0x4903ec;return _0x5a3b45[_0x5a7339(0xdb)]=_0x5a7339(0x1dc),_0x5a3b45['TABLES']='tables',_0x5a3b45['SHEETS']=_0x5a7339(0x1a6),_0x5a3b45[_0x5a7339(0x10c)]=_0x5a7339(0x151),_0x5a3b45;}({}),ct=function(_0x22501d){const _0x706efa=_0x4903ec;return _0x22501d[_0x706efa(0xeb)]=_0x706efa(0x1d8),_0x22501d['VALUES']=_0x706efa(0x10b),_0x22501d['TEXT']='text',_0x22501d[_0x706efa(0x201)]=_0x706efa(0x1f2),_0x22501d;}({}),lt=function(_0x11e193){const _0xf73ca3=_0x4903ec;return _0x11e193['TABLES']=_0xf73ca3(0x20d),_0x11e193[_0xf73ca3(0x105)]=_0xf73ca3(0x1ae),_0x11e193;}({});const B=_0x54d699('univer-pro.exchange-client.request.service');let V=class{constructor(_0x52a1f3,_0x5aaaed){const _0x3edd93=_0x4903ec;this[_0x3edd93(0x127)]=_0x52a1f3,this['_httpService']=_0x5aaaed,L(this,_0x3edd93(0x216),new Set());}[_0x4903ec(0xda)](){}[_0x4903ec(0x192)](_0x33505f){const _0x1e53fb=_0x4903ec;this[_0x1e53fb(0x216)][_0x1e53fb(0x155)](_0x33505f);}[_0x4903ec(0x12a)](){const _0x562f3d=_0x4903ec;this[_0x562f3d(0x216)]['clear']();}async[_0x4903ec(0x162)](_0x2ecb84,_0x1ce4fb=0x0,_0x59dd14=!0x1){const _0x3994c9=_0x4903ec;if(typeof _0x2ecb84=='string'){let _0x1e0062=await Je(_0x2ecb84,this[_0x3994c9(0x18e)]);if(!_0x1e0062)throw Error(_0x3994c9(0x1d6));_0x2ecb84=_0x1e0062;}_0x1ce4fb||=_0x2ecb84['size'];let _0x1a5119=new FormData();_0x1a5119[_0x3994c9(0x21b)](_0x3994c9(0x21f),_0x2ecb84);try{let _0xe4780e=this['_getUploadFileURL']()+_0x3994c9(0x1b3)+_0x1ce4fb+_0x3994c9(0xf8)+_0x546636[_0x3994c9(0x195)]+_0x3994c9(0x20b)+_0x59dd14,_0x4a42f9={'body':_0x1a5119},_0x1f3c9a=(await this[_0x3994c9(0x18e)][_0x3994c9(0x10e)](_0xe4780e,_0x4a42f9))[_0x3994c9(0x21e)];if(_0x1f3c9a['error']&&_0x1f3c9a[_0x3994c9(0x17a)]['code']!==_0x6f2d17['OK'])throw Error(this[_0x3994c9(0x217)](_0x3994c9(0xb6),_0x1f3c9a[_0x3994c9(0x17a)]));return _0x1f3c9a;}catch(_0x5abf8b){throw _0x5abf8b instanceof Error?_0x5abf8b:Error(this['_buildHttpErrorMessage'](_0x3994c9(0xb6),_0x5abf8b));}}async['import'](_0x7cac8c){const _0x3f494f=_0x4903ec;let {type:_0x106fdd,..._0x46cd82}=_0x7cac8c;try{let _0x35b03d=$e(this['_getImportURL'](),''+_0x106fdd),_0x56898b={'body':_0x46cd82},_0xe4a87e=(await this[_0x3f494f(0x18e)]['post'](_0x35b03d,_0x56898b))[_0x3f494f(0x21e)];return _0xe4a87e[_0x3f494f(0x17a)]&&_0xe4a87e[_0x3f494f(0x17a)][_0x3f494f(0xf7)]!==_0x6f2d17['OK']?void 0x0:_0xe4a87e;}catch{return;}}async[_0x4903ec(0xd1)](_0x6e0bad){const _0x4557dc=_0x4903ec;let {type:_0x1d5710}=_0x6e0bad;try{let _0x237379=$e(this['_getExportURL'](),''+_0x1d5710),_0x58a675={'body':_0x6e0bad},_0x3ae242=(await this[_0x4557dc(0x18e)][_0x4557dc(0x10e)](_0x237379,_0x58a675))['body'];return _0x3ae242[_0x4557dc(0x17a)]&&_0x3ae242[_0x4557dc(0x17a)][_0x4557dc(0xf7)]!==_0x6f2d17['OK']?void 0x0:_0x3ae242;}catch{return;}}async[_0x4903ec(0x1ff)](_0x19cba3){return new Promise((_0x443619,_0x50e9d4)=>{const _0x6b0389=_0x1f4c;try{let _0x4978f8=0x0,_0x3001c8=et(this[_0x6b0389(0x215)](),''+_0x19cba3),_0x4506f3=this['_getMaxPollingTime'](),_0x585d00=async()=>{const _0x163d53=_0x6b0389;if(this[_0x163d53(0x216)]['has'](_0x19cba3))return;let _0x2e23a0=(await this[_0x163d53(0x18e)][_0x163d53(0x117)](_0x3001c8))[_0x163d53(0x21e)];if(_0x2e23a0['error']&&_0x2e23a0['error'][_0x163d53(0xf7)]===_0x6f2d17['OK']){if(_0x2e23a0['status']===_0x163d53(0x15a))_0x443619(_0x2e23a0);else{if(_0x2e23a0[_0x163d53(0x1f5)]===_0x163d53(0x196)){let _0x3eb7a6=0x3e8;if(_0x4978f8>=_0x4506f3){_0x50e9d4(_0x2e23a0);return;}_0x4978f8>=0x7530&&(_0x3eb7a6=0x1388),_0x4978f8+=_0x3eb7a6,setTimeout(_0x585d00,_0x3eb7a6);}else _0x50e9d4(_0x2e23a0);}}else _0x50e9d4(_0x2e23a0);};_0x585d00();}catch(_0x3387aa){_0x50e9d4(_0x3387aa instanceof Error?_0x3387aa:Error(String(_0x3387aa)));}});}async[_0x4903ec(0xc4)](_0x3c2776){const _0xfc9835=_0x4903ec;try{let _0x589e89=tt(this[_0xfc9835(0x1fa)](),''+_0x3c2776);return(await this[_0xfc9835(0x18e)][_0xfc9835(0x117)](_0x589e89))[_0xfc9835(0x21e)];}catch{return;}}async['getTextFromUrl'](_0x213189){const _0x45f521=_0x4903ec;try{return(await this[_0x45f521(0x18e)][_0x45f521(0x117)](_0x213189,{'responseType':'text'}))['body'];}catch{return;}}[_0x4903ec(0x217)](_0x193337,_0xed0b16){let _0x162fc0=this['_extractErrorDetail'](_0xed0b16);return _0x162fc0?_0x193337+':\x20'+_0x162fc0:_0x193337;}[_0x4903ec(0x186)](_0x56dab0,_0x4666e6){const _0x3ba352=_0x4903ec;if(_0x4666e6 instanceof _0x17fb66){let _0x25183d=typeof _0x4666e6[_0x3ba352(0x1f5)]=='number'?''+_0x4666e6[_0x3ba352(0x1f5)]+(_0x4666e6[_0x3ba352(0x1f6)]?'\x20'+_0x4666e6[_0x3ba352(0x1f6)]:''):void 0x0,_0x3a0515=this[_0x3ba352(0x206)](_0x4666e6[_0x3ba352(0x17a)]);return _0x25183d&&_0x3a0515?_0x56dab0+':\x20HTTP\x20'+_0x25183d+_0x3ba352(0x1e5)+_0x3a0515:_0x25183d?_0x56dab0+_0x3ba352(0x187)+_0x25183d:_0x3a0515?_0x56dab0+':\x20'+_0x3a0515:_0x56dab0;}let _0x89c031=this[_0x3ba352(0x206)](_0x4666e6);return _0x89c031?_0x56dab0+':\x20'+_0x89c031:_0x56dab0;}[_0x4903ec(0x206)](_0x109484){const _0x3a30c9=_0x4903ec;if(typeof _0x109484==_0x3a30c9(0x1fe)){let _0x36c014=_0x109484[_0x3a30c9(0xff)]();return _0x36c014['length']>0x0?_0x36c014:void 0x0;}if(_0x109484 instanceof Error)return this[_0x3a30c9(0x206)](_0x109484[_0x3a30c9(0xc8)]);if(!_0x109484||typeof _0x109484!=_0x3a30c9(0x13f)||Array[_0x3a30c9(0x18f)](_0x109484))return;let _0x393da6=_0x109484,_0x22c6d9=this['_extractErrorDetail'](_0x393da6[_0x3a30c9(0xc8)]);if(_0x22c6d9)return _0x22c6d9;if(_0x393da6[_0x3a30c9(0x17a)]&&typeof _0x393da6['error']=='object'&&!Array[_0x3a30c9(0x18f)](_0x393da6[_0x3a30c9(0x17a)])){let _0x4ca938=this['_extractErrorDetail'](_0x393da6['error']);if(_0x4ca938)return _0x4ca938;}}[_0x4903ec(0xd5)](){const _0x249a8b=_0x4903ec;let _0x5091ae=this['_configService'][_0x249a8b(0x176)](k);return(_0x5091ae==null?void 0x0:_0x5091ae[_0x249a8b(0x189)])??'/universer-api/stream/file/upload';}['_getImportURL'](){const _0x1a9557=_0x4903ec;let _0x18b827=this[_0x1a9557(0x127)]['getConfig'](k);return(_0x18b827==null?void 0x0:_0x18b827[_0x1a9557(0x16a)])??'/universer-api/exchange/{type}/import';}[_0x4903ec(0x180)](){const _0x5b333f=_0x4903ec;let _0x1cb62c=this[_0x5b333f(0x127)]['getConfig'](k);return(_0x1cb62c==null?void 0x0:_0x1cb62c['exportServerUrl'])??_0x5b333f(0x1e6);}[_0x4903ec(0x215)](){const _0x51317e=_0x4903ec;let _0x389ce6=this[_0x51317e(0x127)]['getConfig'](k);return(_0x389ce6==null?void 0x0:_0x389ce6[_0x51317e(0xf9)])??_0x51317e(0xfb);}[_0x4903ec(0x1fa)](){const _0x5e9735=_0x4903ec;let _0x4cb819=this[_0x5e9735(0x127)]['getConfig'](k);return(_0x4cb819==null?void 0x0:_0x4cb819[_0x5e9735(0xc7)])??_0x5e9735(0x199);}['_getMaxPollingTime'](){const _0x1b161a=_0x4903ec;let _0x78593a=this[_0x1b161a(0x127)][_0x1b161a(0x176)](k);return(_0x78593a==null?void 0x0:_0x78593a[_0x1b161a(0xbd)])??0x1d4c0;}};V=z([R(0x0,_0x1f74df),R(0x1,_0x2f697a(_0xb3a54c))],V);const H='exchange-client.export-format-dialog';function ut({formats:_0x3c76bb,items:_0x1be8ed,selectedId:_0x3a4a4f,onCancel:_0x41f747,onConfirm:_0x165edb}){const _0x53896f=_0x4903ec;let _0xc1d6a7=_0x19a164(_0xba597a),[_0x3b029c,_0x4d80f1]=_0x1aedcb(_0x3c76bb[0x0]),[_0x2c3fb6,_0x18e1c5]=_0x1aedcb(_0x3a4a4f),[_0x493174,_0x23a71b]=_0x1aedcb(!0x1),_0x4a5c4d=_0x4125a2(!0x1);return _0x2ca7b1(_0x53896f(0x229),{'className':_0x53896f(0x104),'children':[_0x4fb351(_0x53896f(0x229),{'className':_0x53896f(0xc5),'children':_0x3c76bb[_0x53896f(0x1e0)](_0x99ff93=>_0x2ca7b1(_0x53896f(0x229),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x4fb351(_0x42fc16,{'value':_0x99ff93,'checked':_0x3b029c===_0x99ff93,'onChange':_0x1d3adf=>_0x4d80f1(_0x1d3adf),'children':_0x4fb351(_0x53896f(0x205),{'className':_0x53896f(0x210),'children':_0x99ff93[_0x53896f(0xde)]()})}),_0x99ff93!==_0x53896f(0x148)&&_0x4fb351(_0x34c44a,{'className':_0x53896f(0x13e),'value':_0x2c3fb6,'options':_0x1be8ed,'onChange':_0x28b751=>_0x18e1c5(String(_0x28b751))})]},_0x99ff93))}),_0x2ca7b1('div',{'className':_0x53896f(0x19d),'children':[_0x4fb351(_0x3a173d,{'type':_0x53896f(0xed),'variant':_0x53896f(0x11c),'onClick':_0x41f747,'children':_0xc1d6a7['t']('exchange-client.cancel')}),_0x2ca7b1(_0x3a173d,{'type':_0x53896f(0xed),'variant':_0x53896f(0x20f),'aria-busy':_0x493174,'disabled':_0x493174||!_0x3b029c||_0x3b029c!=='xlsx'&&!_0x2c3fb6,'onClick':async()=>{const _0x1f6c7f=_0x53896f;if(!_0x4a5c4d[_0x1f6c7f(0x200)]){_0x4a5c4d[_0x1f6c7f(0x200)]=!0x0,_0x23a71b(!0x0);try{await _0x165edb(_0x3b029c,_0x2c3fb6);}finally{_0x4a5c4d[_0x1f6c7f(0x200)]=!0x1,_0x23a71b(!0x1);}}},'children':[_0x493174&&_0x4fb351(_0x49221f,{'className':'univer-animate-spin'}),_0xc1d6a7['t'](_0x53896f(0x1bf))]})]})]});}function dt({formats:_0x47cae2,items:_0x282d63,selectedId:_0x33326b,onCancel:_0xcd7469,onConfirm:_0x56bd71}){const _0x1525dc=_0x4903ec;let _0x49d137=_0x19a164(_0xba597a),[_0x43ab46,_0x5ed6ce]=_0x1aedcb(_0x47cae2[0x0]),[_0x10a1e0,_0x1d1f31]=_0x1aedcb(_0x33326b),[_0x22065b,_0x3a1a66]=_0x1aedcb(!0x1),_0x468cdd=_0x4125a2(!0x1);async function _0x19ad3a(){const _0x4d7e92=_0x1f4c;if(!_0x468cdd[_0x4d7e92(0x200)]){_0x468cdd[_0x4d7e92(0x200)]=!0x0,_0x3a1a66(!0x0);try{await _0x56bd71(_0x43ab46,_0x10a1e0);}finally{_0x468cdd[_0x4d7e92(0x200)]=!0x1,_0x3a1a66(!0x1);}}}return _0x2ca7b1(_0x1525dc(0x229),{'className':_0x1525dc(0x1b1),'children':[_0x4fb351(_0x1525dc(0x229),{'className':_0x1525dc(0x10d),'children':_0x47cae2[_0x1525dc(0x1e0)](_0x18d312=>_0x2ca7b1(_0x1525dc(0x229),{'className':_0x1525dc(0x13d),'children':[_0x4fb351(_0x42fc16,{'value':_0x18d312,'checked':_0x43ab46===_0x18d312,'onChange':_0x1b3b84=>_0x5ed6ce(_0x1b3b84),'children':_0x18d312[_0x1525dc(0xde)]()}),_0x18d312!==_0x1525dc(0x148)&&_0x43ab46===_0x18d312&&_0x4fb351(_0x4321de,{'className':_0x1525dc(0x1bb),'value':_0x10a1e0,'options':_0x282d63,'onChange':_0x4a6592=>_0x1d1f31(String(_0x4a6592))})]},_0x18d312))}),_0x2ca7b1(_0x267a35,{'className':_0x1525dc(0xe6),'children':[_0x4fb351(_0x3a173d,{'type':_0x1525dc(0xed),'onClick':_0xcd7469,'children':_0x49d137['t'](_0x1525dc(0x209))}),_0x2ca7b1(_0x3a173d,{'type':_0x1525dc(0xed),'variant':_0x1525dc(0x20f),'aria-busy':_0x22065b,'disabled':_0x22065b||!_0x43ab46||_0x43ab46!=='xlsx'&&!_0x10a1e0,'onClick':_0x19ad3a,'children':[_0x22065b&&_0x4fb351(_0x49221f,{'className':_0x1525dc(0x193)}),_0x49d137['t'](_0x1525dc(0x1bf))]})]})]});}let U=class extends _0x332c69{constructor(_0x5ba754,_0x500293){const _0x818e1a=_0x4903ec;super(),this['_iconManager']=_0x5ba754,this[_0x818e1a(0xe8)]=_0x500293,this[_0x818e1a(0x1cc)](this[_0x818e1a(0x179)][_0x818e1a(0x1f7)]({'DirectExportIcon':_0x2a5e1e,'ExportIcon':_0x19c606,'FolderIcon':_0x5801db})),this[_0x818e1a(0x1cc)](this[_0x818e1a(0xe8)][_0x818e1a(0x1f7)](H,dt));}};U=z([R(0x0,_0x2f697a(_0x2a3388)),R(0x1,_0x2f697a(_0x4dba84))],U);const W=_0x54d699(_0x4903ec(0x10f));let G=class extends _0x332c69{constructor(_0x2749dd,_0x58be3b,_0x8f6c06){const _0x57f8e0=_0x4903ec;super(),this[_0x57f8e0(0x127)]=_0x2749dd,this[_0x57f8e0(0x18e)]=_0x58be3b,this[_0x57f8e0(0x109)]=_0x8f6c06,L(this,_0x57f8e0(0x1b9),null),L(this,_0x57f8e0(0x1e1),new _0x5594f5()),L(this,'requestState$',this['_requestState$'][_0x57f8e0(0x143)]());}[_0x4903ec(0xda)](){const _0x23c6c2=_0x4903ec;super['dispose'](),this[_0x23c6c2(0x1e1)]['complete']();}[_0x4903ec(0x1a5)](_0x46b68e,_0x548deb,_0x134968){const _0x36ca0c=_0x4903ec;let _0xc8844f=URL[_0x36ca0c(0x142)](_0x46b68e);Ke(_0xc8844f,_0x548deb,_0x134968),URL['revokeObjectURL'](_0xc8844f);}async[_0x4903ec(0x17c)](_0x14fcfb,_0x33a0a4){const _0x4ba416=_0x4903ec;if(_0x33a0a4!=null&&_0x33a0a4[_0x4ba416(0x1bd)])return;let _0x40470c=await this[_0x4ba416(0x184)](_0x14fcfb);if(!(!_0x40470c||_0x33a0a4!=null&&_0x33a0a4[_0x4ba416(0x1bd)]))return Ye(_0x40470c,this['_httpService'],_0x33a0a4);}async[_0x4903ec(0x1b5)](_0x2a59ce,_0xeeaef5,_0x5ea56b){const _0x1547e6=_0x4903ec;var _0x35df2f,_0x1de8ce;let _0x5d42a6=await this[_0x1547e6(0x191)](_0x2a59ce);if(!_0x5d42a6)return;let _0x57db97=await this[_0x1547e6(0x15d)](_0x5d42a6,0x1,_0xeeaef5,_0x5ea56b);if(!_0x57db97)return;this['_importTaskId']=_0x57db97,this['_requestService'][_0x1547e6(0x12a)]();let _0x4dc10c=await this[_0x1547e6(0x109)]['getTask'](_0x57db97)[_0x1547e6(0x1ac)](_0x3e0444=>{const _0x4069bc=_0x1547e6;var _0x16108b;let _0x5ac0f5=_0x3e0444 instanceof Error?_0x3e0444[_0x4069bc(0xc8)]:(_0x16108b=_0x3e0444[_0x4069bc(0x17a)])==null?void 0x0:_0x16108b[_0x4069bc(0xc8)];this['_requestState$']['next']({'error':{'code':_0x6f2d17[_0x4069bc(0x12d)],'message':_0x5ac0f5||''},'state':0x3});});if(!_0x4dc10c)return;let _0x22249b=(_0x35df2f=_0x4dc10c[_0x1547e6(0xd3)])==null?void 0x0:_0x35df2f[_0x1547e6(0x1cd)],_0x23ff60=((_0x1de8ce=_0x4dc10c['import'])==null?void 0x0:_0x1de8ce[_0x1547e6(0x1a1)])||'';if(_0x22249b!==0x1){this[_0x1547e6(0x1e1)][_0x1547e6(0x170)]({'error':{'code':_0x6f2d17[_0x1547e6(0x12d)],'message':_0x1547e6(0xcc)},'state':0x3});return;}if(_0x23ff60['length']===0x0){this[_0x1547e6(0x1e1)][_0x1547e6(0x170)]({'error':{'code':_0x6f2d17[_0x1547e6(0x12d)],'message':_0x1547e6(0xe1)},'state':0x3});return;}return this[_0x1547e6(0x1e1)][_0x1547e6(0x170)]({'error':_0x4dc10c[_0x1547e6(0x17a)],'state':0x3}),_0x23ff60;}async[_0x4903ec(0x183)](_0x5a4e39,_0x2d402a,_0x1b1363){return this['_importToJson'](_0x5a4e39,_0x2d402a,_0x1b1363);}async[_0x4903ec(0x188)](_0x299a45,_0x16f75c,_0x35ec23,_0x1415d4){const _0x5289b6=_0x4903ec;return this[_0x5289b6(0xd2)](_0x299a45,0x1,_0x16f75c,_0x35ec23,_0x1415d4);}async['exportFileBySnapshot'](_0x351ed2,_0x1b89a8,_0x30ec7e,_0x2f09dd){const _0x2e1feb=_0x4903ec;return this[_0x2e1feb(0x13c)](_0x351ed2,_0x1b89a8,_0x30ec7e,_0x2f09dd);}['interruptImportTask'](){const _0x1c5981=_0x4903ec;this['_importTaskId']&&this[_0x1c5981(0x109)]['setTaskInterrupted'](this[_0x1c5981(0x1b9)]);}async['_importToJson'](_0xacc978,_0x42cdab,_0xf37c66){const _0x1ac129=_0x4903ec;var _0x439a53,_0x7738b5;let _0x2d13a6=await this['_upload'](_0xacc978);if(!_0x2d13a6)return;let _0x1c06ff=await this[_0x1ac129(0x15d)](_0x2d13a6,0x2,_0x42cdab,_0xf37c66);if(!_0x1c06ff)return;this['_importTaskId']=_0x1c06ff,this['_requestService'][_0x1ac129(0x12a)]();let _0x5e8c2b=await this['_requestService'][_0x1ac129(0x1ff)](_0x1c06ff)[_0x1ac129(0x1ac)](_0x5170b2=>{const _0x3179d6=_0x1ac129;var _0x2cf2ad;let _0x509aa4=_0x5170b2 instanceof Error?_0x5170b2[_0x3179d6(0xc8)]:(_0x2cf2ad=_0x5170b2[_0x3179d6(0x17a)])==null?void 0x0:_0x2cf2ad[_0x3179d6(0xc8)];this[_0x3179d6(0x1e1)][_0x3179d6(0x170)]({'error':{'code':_0x6f2d17[_0x3179d6(0x12d)],'message':_0x509aa4||''},'state':0x3});});if(!_0x5e8c2b)return;let _0x21711e=(_0x439a53=_0x5e8c2b[_0x1ac129(0xd3)])==null?void 0x0:_0x439a53[_0x1ac129(0x1cd)],_0x535efa=((_0x7738b5=_0x5e8c2b['import'])==null?void 0x0:_0x7738b5[_0x1ac129(0x154)])||'';if(_0x21711e!==0x2){this['_requestState$'][_0x1ac129(0x170)]({'error':{'code':_0x6f2d17[_0x1ac129(0x12d)],'message':_0x1ac129(0xcc)},'state':0x3});return;}if(_0x535efa['length']===0x0){this[_0x1ac129(0x1e1)][_0x1ac129(0x170)]({'error':{'code':_0x6f2d17['UNRECOGNIZED'],'message':_0x1ac129(0x212)},'state':0x3});return;}this[_0x1ac129(0x1e1)]['next']({'error':_0x5e8c2b[_0x1ac129(0x17a)],'state':0x3});let _0x2e2613=await this[_0x1ac129(0x184)](_0x535efa);if(!_0x2e2613)return;let _0x3deef2=await this['_requestService'][_0x1ac129(0x1c3)](_0x2e2613);if(!_0x3deef2){this[_0x1ac129(0x1e1)][_0x1ac129(0x170)]({'error':{'code':_0x6f2d17[_0x1ac129(0x12d)],'message':_0x1ac129(0x12c)},'state':0x5});return;}try{let _0x1359b8=JSON['parse'](_0x3deef2);return this['_requestState$'][_0x1ac129(0x170)]({'error':{'code':_0x6f2d17['OK'],'message':_0x1ac129(0x107)},'state':0x5}),_0x1359b8;}catch{this['_requestState$'][_0x1ac129(0x170)]({'error':{'code':_0x6f2d17[_0x1ac129(0x12d)],'message':_0x1ac129(0x1e3)},'state':0x5});}}async[_0x4903ec(0x13c)](_0x3af8b1,_0x21ed88,_0x384e90,_0x92a7fe){const _0x3976c4=_0x4903ec;let _0x4ab396=JSON[_0x3976c4(0x1fb)](_0x3af8b1),_0x1d427f=_0x14b9f5[_0x3976c4(0xb8)](_0x4ab396),_0x38c7c5=_0x4f71f7(_0x1d427f),_0x595a1f=_0x1d427f['length'],_0x42341e=Qe(_0x38c7c5),_0x2d15ea=await this['_upload'](_0x42341e,_0x595a1f,!0x0);if(_0x2d15ea)return this['_export'](_0x2d15ea,0x2,_0x21ed88,_0x384e90,_0x92a7fe);}async['_export'](_0x565d35,_0x5563a5,_0x10836f,_0x24d0a6,_0x187262){const _0x7f4e6a=_0x4903ec;var _0x3303b2;let _0x552072=await this[_0x7f4e6a(0x109)][_0x7f4e6a(0xd1)]({..._0x5563a5===0x1?{'unitID':_0x565d35}:{'jsonID':_0x565d35},'type':_0x10836f,'format':_0x24d0a6,'options':_0x187262});if(!_0x552072){this[_0x7f4e6a(0x1e1)][_0x7f4e6a(0x170)]({'error':{'code':_0x6f2d17[_0x7f4e6a(0x12d)],'message':_0x7f4e6a(0x17f)},'state':0x2});return;}if(this[_0x7f4e6a(0x1e1)][_0x7f4e6a(0x170)]({'error':_0x552072[_0x7f4e6a(0x17a)],'state':0x2}),_0x552072[_0x7f4e6a(0x17a)]&&_0x552072[_0x7f4e6a(0x17a)]['code']!==_0x6f2d17['OK'])return;let _0x20a9ff=_0x552072['taskID'],_0x445745=await this['_requestService'][_0x7f4e6a(0x1ff)](_0x20a9ff)[_0x7f4e6a(0x1ac)](_0xad4e37=>{const _0xa81fef=_0x7f4e6a;var _0xe79f25;let _0x5210a0=_0xad4e37 instanceof Error?_0xad4e37[_0xa81fef(0xc8)]:(_0xe79f25=_0xad4e37[_0xa81fef(0x17a)])==null?void 0x0:_0xe79f25[_0xa81fef(0xc8)];this[_0xa81fef(0x1e1)][_0xa81fef(0x170)]({'error':{'code':_0x6f2d17[_0xa81fef(0x12d)],'message':_0x5210a0||''},'state':0x3});});if(!_0x445745)return;let _0x31467d=((_0x3303b2=_0x445745[_0x7f4e6a(0xd1)])==null?void 0x0:_0x3303b2[_0x7f4e6a(0x19b)])||'';if(_0x31467d[_0x7f4e6a(0x121)]===0x0){this[_0x7f4e6a(0x1e1)][_0x7f4e6a(0x170)]({'error':{'code':_0x6f2d17['UNRECOGNIZED'],'message':_0x7f4e6a(0x1df)},'state':0x3});return;}this[_0x7f4e6a(0x1e1)][_0x7f4e6a(0x170)]({'error':_0x445745['error'],'state':0x3});let _0x4906ce=await this[_0x7f4e6a(0x184)](_0x31467d);if(!_0x4906ce)return;let _0x1c1da2=await Je(_0x4906ce,this[_0x7f4e6a(0x18e)]);if(!_0x1c1da2){this[_0x7f4e6a(0x1e1)]['next']({'error':{'code':_0x6f2d17[_0x7f4e6a(0x12d)],'message':_0x7f4e6a(0x14b)},'state':0x6});return;}return this['_requestState$']['next']({'error':{'code':_0x6f2d17['OK'],'message':_0x7f4e6a(0x107)},'state':0x6}),_0x1c1da2;}async[_0x4903ec(0x191)](_0x453479,_0x2d5bbb,_0x15aee9){const _0x39b1cc=_0x4903ec;let _0x3db67c;try{_0x3db67c=await this[_0x39b1cc(0x109)][_0x39b1cc(0x162)](_0x453479,_0x2d5bbb,_0x15aee9);}catch(_0x5c42c2){let _0x324992=_0x5c42c2 instanceof Error?_0x5c42c2[_0x39b1cc(0xc8)]:String(_0x5c42c2);this['_requestState$'][_0x39b1cc(0x170)]({'error':{'code':_0x6f2d17[_0x39b1cc(0x12d)],'message':_0x324992},'state':0x0});return;}if(!_0x3db67c||typeof _0x3db67c[_0x39b1cc(0x106)]!=_0x39b1cc(0x1fe)){this['_requestState$'][_0x39b1cc(0x170)]({'error':{'code':_0x6f2d17['UNRECOGNIZED'],'message':_0x39b1cc(0x158)},'state':0x0});return;}let _0x36abd2=_0x3db67c['FileId'];if(_0x36abd2['length']===0x0){this[_0x39b1cc(0x1e1)]['next']({'error':{'code':_0x6f2d17['UNRECOGNIZED'],'message':_0x39b1cc(0x112)},'state':0x0});return;}return this['_requestState$'][_0x39b1cc(0x170)]({'error':{'code':_0x6f2d17['OK'],'message':'success'},'state':0x0}),_0x36abd2;}async[_0x4903ec(0x15d)](_0x33a15d,_0xaa75d7,_0x5ef5d1,_0x5b74a1){const _0x405812=_0x4903ec;let _0x193a84={'fileID':_0x33a15d,'type':_0x5ef5d1,'outputType':_0xaa75d7,'options':_0x5b74a1},_0x159ddc=await this[_0x405812(0x109)][_0x405812(0xd3)](_0x193a84);if(!_0x159ddc){this[_0x405812(0x1e1)][_0x405812(0x170)]({'error':{'code':_0x6f2d17[_0x405812(0x12d)],'message':_0x405812(0x132)},'state':0x1});return;}if(_0x159ddc[_0x405812(0x17a)]&&_0x159ddc[_0x405812(0x17a)][_0x405812(0xf7)]!==_0x6f2d17['OK']){this[_0x405812(0x1e1)][_0x405812(0x170)]({'error':_0x159ddc[_0x405812(0x17a)],'state':0x1});return;}let _0x7c1c35=_0x159ddc[_0x405812(0x160)];if(_0x7c1c35[_0x405812(0x121)]===0x0){this[_0x405812(0x1e1)][_0x405812(0x170)]({'error':{'code':_0x6f2d17[_0x405812(0x12d)],'message':_0x405812(0x1d3)},'state':0x1});return;}return this[_0x405812(0x1e1)][_0x405812(0x170)]({'error':_0x159ddc[_0x405812(0x17a)],'state':0x1}),_0x7c1c35;}async['_signUrl'](_0x18bfe4){const _0x20d42c=_0x4903ec;let _0x285c51=await this[_0x20d42c(0x109)]['signUrl'](_0x18bfe4);if(!_0x285c51){this[_0x20d42c(0x1e1)][_0x20d42c(0x170)]({'error':{'code':_0x6f2d17[_0x20d42c(0x12d)],'message':_0x20d42c(0x1ec)},'state':0x4});return;}if(_0x285c51[_0x20d42c(0x17a)]&&_0x285c51[_0x20d42c(0x17a)][_0x20d42c(0xf7)]!==_0x6f2d17['OK']){this[_0x20d42c(0x1e1)]['next']({'error':_0x285c51[_0x20d42c(0x17a)],'state':0x4});return;}let _0x1b62c6=_0x2a8fd0(_0x285c51[_0x20d42c(0xce)],this['_getDownloadEndpointURL']());if(_0x1b62c6[_0x20d42c(0x121)]===0x0){this[_0x20d42c(0x1e1)][_0x20d42c(0x170)]({'error':{'code':_0x6f2d17[_0x20d42c(0x12d)],'message':'sign\x20url\x20error'},'state':0x4});return;}return this[_0x20d42c(0x1e1)][_0x20d42c(0x170)]({'error':_0x285c51[_0x20d42c(0x17a)],'state':0x4}),_0x1b62c6;}[_0x4903ec(0x123)](){const _0xafc42f=_0x4903ec;let _0x1ef490=this['_configService'][_0xafc42f(0x176)](k);return(_0x1ef490==null?void 0x0:_0x1ef490['downloadEndpointUrl'])??location[_0xafc42f(0x135)];}};G=z([R(0x0,_0x1f74df),R(0x1,_0x2f697a(_0xb3a54c)),R(0x2,_0x2f697a(B))],G);const K=_0x54d699(_0x4903ec(0x1d2));var ft=class extends _0x332c69{constructor(){const _0x46b2b4=_0x4903ec;super(),L(this,_0x46b2b4(0xf2),new _0x5594f5()),L(this,'_state$',new _0x5594f5()),L(this,'_list$',new _0x5594f5()),L(this,_0x46b2b4(0x150),this[_0x46b2b4(0xf2)][_0x46b2b4(0x143)]()),L(this,_0x46b2b4(0x144),this[_0x46b2b4(0x1e8)]['asObservable']()),L(this,_0x46b2b4(0xc0),this[_0x46b2b4(0x1d9)]['asObservable']()),L(this,'_list',[]);}['dispose'](){const _0x352250=_0x4903ec;super[_0x352250(0xda)](),this[_0x352250(0xf2)]['complete'](),this['_state$']['complete'](),this['_list$'][_0x352250(0xdf)]();}[_0x4903ec(0x1ab)](){const _0x24158e=_0x4903ec;this['_visible$'][_0x24158e(0x170)](!0x0);}['hide'](){const _0x3b2e98=_0x4903ec;this[_0x3b2e98(0xf2)]['next'](!0x1);}[_0x4903ec(0x219)](_0x4be156){const _0x192884=_0x4903ec;this[_0x192884(0x1e8)][_0x192884(0x170)](_0x4be156);}['pushLink'](_0x48d762){const _0x4f8f34=_0x4903ec;this[_0x4f8f34(0x12b)][_0x4f8f34(0x171)](_0x48d762),this['_list$'][_0x4f8f34(0x170)](this[_0x4f8f34(0x12b)]);}};const pt={'done':0x0,'count':0x0},q=_0x54d699('univer-pro.exchange-client.operate.service');let J=class extends _0x332c69{constructor(_0x15eab4,_0xb2509c,_0xf712b4,_0x197144,_0xf67703,_0x2355a9){const _0x560b03=_0x4903ec;super(),this[_0x560b03(0x153)]=_0x15eab4,this[_0x560b03(0x125)]=_0xb2509c,this['_localeService']=_0xf712b4,this[_0x560b03(0x114)]=_0x197144,this[_0x560b03(0x156)]=_0xf67703,this['_logService']=_0x2355a9,L(this,_0x560b03(0x1d5),new _0x47de39(pt)),L(this,_0x560b03(0x16c),this[_0x560b03(0x1d5)][_0x560b03(0x143)]()),L(this,_0x560b03(0xc1),0x0),L(this,'_doneUploadTaskCount',0x0),L(this,_0x560b03(0x157),!0x1),L(this,_0x560b03(0xe2),null),this[_0x560b03(0x1cc)](_0x5e5517(this[_0x560b03(0x114)][_0x560b03(0x14f)]['subscribe'](_0x4f495e=>{const _0x466ad8=_0x560b03;var _0x73154c;((_0x73154c=_0x4f495e[_0x466ad8(0x17a)])==null?void 0x0:_0x73154c[_0x466ad8(0xf7)])===_0x6f2d17['OK']?this['_addDoneTask'](0x1):this['_showNetworkError'](_0x4f495e[_0x466ad8(0x17a)]);})));}[_0x4903ec(0xbc)](){const _0x5e1f25=_0x4903ec;this[_0x5e1f25(0x18a)](),this[_0x5e1f25(0x156)]['updateState'](0x2),this[_0x5e1f25(0x114)][_0x5e1f25(0x1a9)]();}async[_0x4903ec(0x1b5)](_0x56c860,_0x354f01){const _0x294015=_0x4903ec;if(this['_isSelectingUnitImportFile']||this[_0x294015(0xef)]()){this[_0x294015(0x125)][_0x294015(0x1ab)]({'type':_0x3bebf0[_0x294015(0x22e)],'content':this['_localeService']['t'](_0x294015(0x1ad))});return;}let _0x3de2af;this[_0x294015(0x157)]=!0x0;try{_0x3de2af=await F([_0x56c860]);}finally{this[_0x294015(0x157)]=!0x1;}if(_0x3de2af&&!this['_fileTypeError'](_0x3de2af,_0x56c860))return this[_0x294015(0xe2)]={'type':_0x56c860,'importer':_0x354f01},this[_0x294015(0x14a)](_0x3de2af[0x0],_0x56c860,_0x354f01);}async[_0x4903ec(0x18b)](){const _0x377fce=_0x4903ec;let _0x152eb9=this[_0x377fce(0xe2)];if(_0x152eb9)return this[_0x377fce(0x1b5)](_0x152eb9[_0x377fce(0x20c)],_0x152eb9[_0x377fce(0x1c9)]);}async['importFileToSnapshot'](_0x51c497,_0x22bc0c){const _0x1a7d09=_0x4903ec;if(this[_0x1a7d09(0xef)]()){this[_0x1a7d09(0x125)][_0x1a7d09(0x1ab)]({'type':_0x3bebf0['Warning'],'content':this[_0x1a7d09(0x19a)]['t'](_0x1a7d09(0x1ad))});return;}let _0x1c8658=await F([_0x51c497]);if(!_0x1c8658||this['_fileTypeError'](_0x1c8658,_0x51c497))return;this[_0x1a7d09(0x1b2)](_0x3bebf0[_0x1a7d09(0xfe)]);let _0x45ebb6=await _0x22bc0c(_0x1c8658[0x0]);_0x45ebb6&&(this[_0x1a7d09(0x1c0)](_0x51c497,_0x45ebb6),this[_0x1a7d09(0x1b2)](_0x3bebf0[_0x1a7d09(0x20e)]));}async['importFileAsSnapshot'](_0x509cd9,_0x11294a){const _0x3c0e6f=_0x4903ec;if(this[_0x3c0e6f(0xef)]()){this['_messageService'][_0x3c0e6f(0x1ab)]({'type':_0x3bebf0['Warning'],'content':this[_0x3c0e6f(0x19a)]['t'](_0x3c0e6f(0x1ad))});return;}let _0x22751c=await F([_0x509cd9]);if(!_0x22751c||this['_fileTypeError'](_0x22751c,_0x509cd9))return;this[_0x3c0e6f(0x1b2)](_0x3bebf0[_0x3c0e6f(0xfe)]);let _0x1da9c3=await _0x11294a(_0x22751c[0x0]);if(_0x1da9c3)return this[_0x3c0e6f(0x1b2)](_0x3bebf0[_0x3c0e6f(0x20e)]),_0x1da9c3;}async[_0x4903ec(0x130)](_0x598d10,_0x8d5051,_0x55652e){const _0x2cc6e5=_0x4903ec;this[_0x2cc6e5(0x149)](_0x3bebf0[_0x2cc6e5(0xfe)]);let _0x30216c=await _0x598d10();_0x30216c&&(this[_0x2cc6e5(0x114)][_0x2cc6e5(0x1a5)](_0x30216c,_0x8d5051||_0x30216c['name'][_0x2cc6e5(0x227)]('.')['shift']()||document[_0x2cc6e5(0x1c5)],_0x55652e),this[_0x2cc6e5(0x149)](_0x3bebf0[_0x2cc6e5(0x20e)]));}['registerLink'](_0x27d567){const _0x45b698=_0x4903ec;this[_0x45b698(0x1c7)]=_0x27d567;}async[_0x4903ec(0x14a)](_0x57cc7e,_0x96786a,_0x581964){const _0x43faee=_0x4903ec;this['_uploadNotificationService'][_0x43faee(0x1ab)](),this[_0x43faee(0x156)][_0x43faee(0x219)](0x0),this[_0x43faee(0xd8)](0x4),this[_0x43faee(0x166)](0x1);let _0x420293=await _0x581964(_0x57cc7e);if(!_0x420293){this[_0x43faee(0x18a)](),this[_0x43faee(0x156)][_0x43faee(0x219)](0x2);return;}let _0x4d3139={'link':this[_0x43faee(0x1c7)](_0x420293,_0x96786a),'name':_0x57cc7e['name'],'type':_0x96786a};return this[_0x43faee(0x156)][_0x43faee(0x164)](_0x4d3139),this[_0x43faee(0x11b)](),this[_0x43faee(0x156)][_0x43faee(0x219)](0x1),_0x420293;}[_0x4903ec(0x1c0)](_0x40fd5f,_0x1898ae){const _0xf8cc4d=_0x4903ec;let _0x10287c=this[_0xf8cc4d(0x153)]['getCurrentUnitOfType'](_0x40fd5f);if(!_0x10287c)throw Error(_0xf8cc4d(0x1ca)+_0x40fd5f+_0xf8cc4d(0xd0));this[_0xf8cc4d(0x153)]['disposeUnit'](_0x10287c['getUnitId']());let _0x1035b1=this[_0xf8cc4d(0x153)][_0xf8cc4d(0x1fd)](_0x40fd5f,_0x1898ae);this[_0xf8cc4d(0x153)][_0xf8cc4d(0x102)](_0x1035b1['getUnitId']());}['_getLinkByUnitId'](_0xa5f51a,_0x27a855){const _0xe1df2f=_0x4903ec;let _0x470d80=new URL(window[_0xe1df2f(0x21a)][_0xe1df2f(0x1db)]);return _0x470d80[_0xe1df2f(0x138)][_0xe1df2f(0x20a)](_0xe1df2f(0x14c),_0xa5f51a),_0x470d80['searchParams'][_0xe1df2f(0x20a)](_0xe1df2f(0x20c),''+_0x27a855),_0x470d80[_0xe1df2f(0x172)]();}[_0x4903ec(0xf1)](_0x3ff59f){const _0x407e21=_0x4903ec;if(_0x3ff59f){let {code:_0x21c127}=_0x3ff59f;switch(_0x21c127){case _0x6f2d17[_0x407e21(0x1a4)]:this['_messageService']['show']({'type':_0x3bebf0['Error'],'content':this[_0x407e21(0x19a)]['t'](_0x407e21(0x12f))});break;case _0x6f2d17[_0x407e21(0x137)]:this[_0x407e21(0x125)][_0x407e21(0x1ab)]({'type':_0x3bebf0['Error'],'content':this[_0x407e21(0x19a)]['t']('exchange-client.internalError')});break;default:this['_messageService']['show']({'type':_0x3bebf0[_0x407e21(0x126)],'content':this[_0x407e21(0x19a)]['t'](_0x407e21(0x19e))});}return null;}return this[_0x407e21(0x125)][_0x407e21(0x1ab)]({'type':_0x3bebf0['Error'],'content':this[_0x407e21(0x19a)]['t'](_0x407e21(0x19e))}),null;}[_0x4903ec(0x149)](_0x36ad4d){const _0x4decb6=_0x4903ec;let _0x4d5128='';switch(_0x36ad4d){case _0x3bebf0['Success']:_0x4d5128=this[_0x4decb6(0x19a)]['t']('exchange-client.downloadSuccess');break;case _0x3bebf0[_0x4decb6(0xfe)]:_0x4d5128=this[_0x4decb6(0x19a)]['t'](_0x4decb6(0x222));}this[_0x4decb6(0x125)]['show']({'type':_0x36ad4d,'content':_0x4d5128});}[_0x4903ec(0x1b2)](_0x13bf72){const _0x57a4a8=_0x4903ec;let _0x33a8cf='';switch(_0x13bf72){case _0x3bebf0[_0x57a4a8(0x20e)]:_0x33a8cf=this['_localeService']['t']('exchange-client.uploadSuccess');break;case _0x3bebf0['Info']:_0x33a8cf=this[_0x57a4a8(0x19a)]['t'](_0x57a4a8(0x1ad));}this[_0x57a4a8(0x125)]['show']({'type':_0x13bf72,'content':_0x33a8cf});}[_0x4903ec(0x19f)](){const _0x4d988e=_0x4903ec;this[_0x4d988e(0x1d5)][_0x4d988e(0x170)]({'done':this[_0x4d988e(0xe7)],'count':this[_0x4d988e(0xc1)]});}['_addTotalCount'](_0x130528){const _0x20a4c8=_0x4903ec;this[_0x20a4c8(0xc1)]+=_0x130528,this[_0x20a4c8(0x19f)]();}[_0x4903ec(0x166)](_0x9adc79){const _0x3c6db8=_0x4903ec;this[_0x3c6db8(0xe7)]+=_0x9adc79,this[_0x3c6db8(0xe7)]=Math['min'](this[_0x3c6db8(0xe7)],this['_totalUploadTaskCount']),this[_0x3c6db8(0x19f)]();}[_0x4903ec(0x11b)](){const _0x44ce88=_0x4903ec;this[_0x44ce88(0xe7)]=this[_0x44ce88(0xc1)],this[_0x44ce88(0x19f)]();}[_0x4903ec(0x18a)](){const _0x65c93=_0x4903ec;this[_0x65c93(0xe7)]=0x0,this[_0x65c93(0xc1)]=0x0,this[_0x65c93(0x19f)]();}['_fileTypeError'](_0x286e5c,_0x39a33c){const _0x22f5cf=_0x4903ec;let _0x433722=_0x286e5c[0x0],_0x9a3227=_0x433722['name'];return!qe(_0x433722,_0x39a33c)&&(this[_0x22f5cf(0x125)]['show']({'type':_0x3bebf0[_0x22f5cf(0x126)],'content':this[_0x22f5cf(0x19a)]['t']('exchange-client.fileTypeError',_0x9a3227)}),!0x0);}[_0x4903ec(0xef)](){const _0x16f885=_0x4903ec;return this['_totalUploadTaskCount']!==0x0&&this[_0x16f885(0xe7)]!==this['_totalUploadTaskCount'];}};J=z([R(0x0,_0x2f697a(_0x45c5cd)),R(0x1,_0x1fc736),R(0x2,_0x2f697a(_0xba597a)),R(0x3,_0x2f697a(W)),R(0x4,_0x2f697a(K)),R(0x5,_0x3bb871)],J);const mt={0x1:_0x4fb351(_0x2b98bc,{'className':_0x4903ec(0x120)}),0x0:_0x4fb351(_0x1a031f,{'className':_0x4903ec(0xf6)}),0x2:_0x4fb351(_0x2ece5e,{'className':_0x4903ec(0xd7)})};function ht(){const _0x1f95dd=_0x4903ec;let _0x673bf1=_0x19a164(K),_0x119e9b=_0x19a164(_0xba597a),_0x2907b7=_0x19a164(q),_0x16d127=_0x4b9619(_0x673bf1[_0x1f95dd(0x150)],!0x1),_0xd56957=_0x4b9619(_0x673bf1['state$'],0x0),_0x5d5349=_0x4b9619(_0x673bf1['list$'],[]),_0x5a931e=_0x4b9619(_0x2907b7[_0x1f95dd(0x16c)],{'done':0x0,'count':0x0});if(!_0x16d127)return null;function _0x1c3581(_0x149d29){const _0x5af024=_0x1f95dd;switch(_0x149d29){case _0x2cfd86[_0x5af024(0xcd)]:return _0x4fb351(_0x182bfa,{});case _0x2cfd86[_0x5af024(0x1da)]:case _0x2cfd86[_0x5af024(0x16d)]:return _0x4fb351(_0x16d2ee,{});case _0x2cfd86['UNIVER_SLIDE']:return _0x4fb351(_0x237d9d,{});default:return null;}}function _0x580477(){const _0x3ebeca=_0x1f95dd;switch(_0xd56957){case 0x1:return _0x119e9b['t'](_0x3ebeca(0x202));case 0x2:return _0x119e9b['t'](_0x3ebeca(0x1e7));default:return _0x119e9b['t'](_0x3ebeca(0x1ad));}}let _0x2a3b38=_0x5a931e[_0x1f95dd(0x178)]>0x0?Math[_0x1f95dd(0x1ea)](_0x5a931e[_0x1f95dd(0x15a)]/_0x5a931e[_0x1f95dd(0x178)]*0x64):0x0;return _0x2ca7b1('section',{'data-u-comp':_0x1f95dd(0x175),'className':_0x1f95dd(0xf5),'children':[_0x2ca7b1(_0x1f95dd(0x22a),{'className':_0x1f95dd(0xec),'children':[_0x2ca7b1(_0x1f95dd(0x205),{'className':'univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2\x20univer-font-semibold','children':[_0x4fb351(_0x1f95dd(0x205),{'className':_0x1f95dd(0x13a),'children':mt[_0xd56957]}),_0x4fb351(_0x1f95dd(0x205),{'className':_0x1f95dd(0x197),'children':_0x580477()})]}),_0x4fb351(_0x3a173d,{'size':_0x1f95dd(0xb7),'variant':_0x1f95dd(0x139),'aria-label':_0x119e9b['t'](_0x1f95dd(0x209)),'onClick':()=>_0x673bf1[_0x1f95dd(0x1ba)](),'children':_0x4fb351(_0x506d7a,{})})]}),_0xd56957===0x0&&_0x2ca7b1(_0x1f95dd(0x229),{'className':_0x1f95dd(0x10d),'children':[_0x4fb351(_0x1f95dd(0x205),{'className':'univer-text-sm\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':_0x119e9b['t'](_0x1f95dd(0x12e))}),_0x4fb351(_0x1f95dd(0x229),{'className':_0x1f95dd(0xd4),'children':_0x4fb351(_0x1f95dd(0x229),{'className':_0x1f95dd(0x21d),'style':{'width':_0x2a3b38+'%'}})}),_0x4fb351(_0x3a173d,{'variant':_0x1f95dd(0x139),'onClick':()=>_0x2907b7[_0x1f95dd(0xbc)](),'children':_0x119e9b['t'](_0x1f95dd(0x209))})]}),_0xd56957===0x2&&_0x2ca7b1('div',{'className':_0x1f95dd(0x168),'children':[_0x4fb351(_0x1f95dd(0x205),{'className':_0x1f95dd(0x1c8),'children':_0x119e9b['t']('exchange-client.interrupt')}),_0x4fb351(_0x3a173d,{'variant':_0x1f95dd(0x139),'onClick':()=>_0x2907b7[_0x1f95dd(0x18b)](),'children':_0x119e9b['t'](_0x1f95dd(0xe5))})]}),_0x5d5349[_0x1f95dd(0x121)]>0x0&&_0x4fb351('ul',{'className':_0x1f95dd(0x1cf),'children':_0x5d5349[_0x1f95dd(0x1e0)](_0x4cdbd4=>_0x4fb351('li',{'children':_0x2ca7b1('a',{'className':_0x1f95dd(0x1d0),'href':_0x4cdbd4[_0x1f95dd(0x1f9)],'target':_0x1f95dd(0x1c1),'rel':_0x1f95dd(0x177),'children':[_0x4fb351(_0x1f95dd(0x205),{'className':_0x1f95dd(0x124),'children':_0x1c3581(_0x4cdbd4[_0x1f95dd(0x20c)])}),_0x4fb351(_0x1f95dd(0x205),{'className':_0x1f95dd(0xbb),'children':_0x4cdbd4[_0x1f95dd(0x16b)]}),_0x4fb351(_0x55603c,{'className':'univer-shrink-0'})]})},_0x4cdbd4[_0x1f95dd(0x1f9)]))}),_0xd56957===0x1&&_0x2ca7b1(_0x1f95dd(0x229),{'className':_0x1f95dd(0xec),'children':[_0x4fb351(_0x1f95dd(0x205),{'className':_0x1f95dd(0x1b7),'children':_0x119e9b['t']('exchange-client.uploadSuccessTip',''+_0x5d5349['length'])}),_0x4fb351(_0x3a173d,{'variant':_0x1f95dd(0x139),'onClick':()=>_0x2907b7[_0x1f95dd(0x18b)](),'children':_0x119e9b['t'](_0x1f95dd(0xe5))})]})]});}let Y=class extends _0x332c69{constructor(_0x10525a,_0xd4c806){const _0x192708=_0x4903ec;super(),this[_0x192708(0x185)]=_0x10525a,this[_0x192708(0xb3)]=_0xd4c806,this['disposeWithMe'](this['_uiPartsService'][_0x192708(0xc6)](_0x402cca[_0x192708(0x15f)],()=>_0x2f1d93(ht,this[_0x192708(0x185)])));}};Y=z([R(0x0,_0x2f697a(_0x3ac7ad)),R(0x1,_0xa08f42)],Y);let X=class extends _0x256c29{constructor(_0x3a5d13=A,_0xd28e48,_0x49fe69){const _0x2fa265=_0x4903ec;super(),this[_0x2fa265(0x1a7)]=_0x3a5d13,this['_injector']=_0xd28e48,this[_0x2fa265(0x127)]=_0x49fe69;let {..._0x187b97}=_0x1460d9({},A,this[_0x2fa265(0x1a7)]);this[_0x2fa265(0x127)][_0x2fa265(0xcb)](k,_0x187b97);}[_0x4903ec(0x11a)](){_0x2718c1(this['_injector'],[[U],[Y],[q,{'useClass':J}],[W,{'useClass':G}],[B,{'useClass':V}],[K,{'useClass':ft}]]);}['onReady'](){_0x5ada79(this['_injector'],[[U],[Y],[q]]);}};L(X,_0x4903ec(0x1ef),_0x4903ec(0x1b6)),L(X,'packageName',D),L(X,_0x4903ec(0xba),O),X=z([_0x1dbe2a(_0x56b9c8,_0xef202d,_0x37d249),R(0x1,_0x2f697a(_0x3ac7ad)),R(0x2,_0x1f74df)],X);let Z=class extends _0x332c69{constructor(_0x3656ba,_0x3729d6){const _0x3c6c59=_0x4903ec;super(),this[_0x3c6c59(0x179)]=_0x3656ba,this[_0x3c6c59(0xe8)]=_0x3729d6,this[_0x3c6c59(0x115)](),this[_0x3c6c59(0x1be)]();}['_registerIcons'](){const _0x233db9=_0x4903ec;this[_0x233db9(0x1cc)](this[_0x233db9(0x179)][_0x233db9(0x1f7)]({'DirectExportIcon':_0x2a5e1e,'ExportIcon':_0x19c606,'FolderIcon':_0x5801db}));}[_0x4903ec(0x1be)](){const _0x1a11a0=_0x4903ec;this[_0x1a11a0(0x1cc)](this[_0x1a11a0(0xe8)][_0x1a11a0(0x1f7)](H,ut));}};Z=z([R(0x0,_0x2f697a(_0x2a3388)),R(0x1,_0x2f697a(_0x4dba84))],Z);function gt(_0xa0cb2f){const _0x3fd84c=_0x4903ec;let {list:_0x5c32d5}=_0xa0cb2f;function _0x4ccd4d(_0x427904){const _0x4c50a1=_0x1f4c;switch(_0x427904){case _0x2cfd86[_0x4c50a1(0xcd)]:return _0x4fb351(_0x182bfa,{});case _0x2cfd86['UNIVER_SHEET']:case _0x2cfd86[_0x4c50a1(0x16d)]:return _0x4fb351(_0x16d2ee,{});case _0x2cfd86[_0x4c50a1(0x207)]:return _0x4fb351(_0x237d9d,{});default:return null;}}return _0x4fb351('div',{'className':_0x5bef70(_0x3fd84c(0x22d),_0x2fea5c),'children':_0x4fb351('ul',{'className':_0x3fd84c(0x218),'children':_0x5c32d5[_0x3fd84c(0x1e0)]((_0x165860,_0x2643b8)=>_0x4fb351('li',{'children':_0x2ca7b1('a',{'className':_0x3fd84c(0xe4),'href':_0x165860[_0x3fd84c(0x1f9)],'target':_0x3fd84c(0x1c1),'rel':_0x3fd84c(0x177),'children':[_0x2ca7b1(_0x3fd84c(0x205),{'className':_0x3fd84c(0x226),'children':[_0x4fb351(_0x3fd84c(0x205),{'className':_0x3fd84c(0x11d),'children':_0x4ccd4d(_0x165860[_0x3fd84c(0x20c)])}),_0x4fb351(_0xa440b5,{'showIfEllipsis':!0x0,'title':_0x165860[_0x3fd84c(0x16b)],'asChild':!0x0,'children':_0x4fb351('span',{'className':_0x3fd84c(0x18d),'children':_0x165860[_0x3fd84c(0x16b)]})})]}),_0x4fb351(_0x3fd84c(0x205),{'className':_0x3fd84c(0x128),'children':_0x4fb351(_0x55603c,{})})]})},_0x2643b8))})});}function _t(_0x574658){const _0xc8cb80=_0x4903ec;let {onClick:_0x3a2466,children:_0x28ccea,className:_0x57e024}=_0x574658;return _0x4fb351(_0x3a173d,{'size':_0xc8cb80(0xfd),'variant':_0xc8cb80(0x139),'className':_0x5bef70('univer-text-primary-600',_0x57e024),'type':_0xc8cb80(0xed),'onClick':_0x3a2466,'children':_0x28ccea});}function vt(){const _0x48e9d3=_0x4903ec;let _0x3b48b8=_0x19a164(q),_0x205248=_0x19a164(_0xba597a);function _0x14307b(){return _0x3b48b8['retryImportFileToUnitId']();}return _0x4fb351(_t,{'onClick':_0x14307b,'children':_0x205248['t'](_0x48e9d3(0xe5))});}function yt(){const _0x3f22ee=_0x4903ec;let _0x54b747=_0x19a164(_0xba597a);return _0x2ca7b1(_0x3f22ee(0x229),{'className':_0x3f22ee(0x15c),'children':[_0x4fb351(_0x3f22ee(0x205),{'className':_0x3f22ee(0x211),'children':_0x54b747['t'](_0x3f22ee(0x15e))}),_0x4fb351(vt,{})]});}function bt(_0x580e51){const _0x2d8cf7=_0x4903ec;let {count:_0x240f33}=_0x580e51,_0x40e038=_0x19a164(_0xba597a);return _0x2ca7b1(_0x2d8cf7(0x229),{'className':_0x2d8cf7(0xc3),'children':[_0x4fb351(_0x2d8cf7(0x205),{'className':_0x2d8cf7(0x1b7),'children':_0x40e038['t']('exchange-client.uploadSuccessTip',''+_0x240f33)}),_0x4fb351(vt,{})]});}function xt(){const _0x51fba5=_0x4903ec;let _0x38dba1=_0x19a164(q),_0x2fe630=_0x19a164(_0xba597a);function _0x444305(){const _0x259013=_0x1f4c;_0x38dba1[_0x259013(0xbc)]();}return _0x4fb351(_t,{'onClick':_0x444305,'children':_0x2fe630['t'](_0x51fba5(0x209))});}function St(){const _0x1e2a10=_0x4903ec;let _0x89d273=_0x19a164(q),{count:_0x3f6c56,done:_0x1f5dba}=_0x4b9619(_0x89d273[_0x1e2a10(0x16c)]),_0x29ef87=_0x3f6c56>0x0?_0x1f5dba/_0x3f6c56:0x0;return _0x4fb351(_0x1e2a10(0x229),{'className':'univer-mx-0\x20univer-mb-3\x20univer-mt-4\x20univer-h-1.5\x20univer-w-[324px]\x20univer-rounded-lg\x20univer-bg-gray-200','children':_0x4fb351('div',{'className':_0x1e2a10(0x1f4),'style':{'width':Math['floor'](_0x29ef87*0x64)+'%'}})});}function Ct(){const _0x159884=_0x4903ec;let _0x1f9daa=_0x19a164(_0xba597a);return _0x2ca7b1(_0x159884(0x229),{'className':_0x159884(0x15c),'children':[_0x4fb351(_0x159884(0x205),{'className':_0x159884(0x22b),'children':_0x1f9daa['t']('exchange-client.wait')}),_0x4fb351(_0x159884(0x229),{'className':'univer-pl-2\x20univer-pr-4','children':_0x4fb351(St,{})}),_0x4fb351(xt,{})]});}const wt={0x1:_0x4fb351(_0x2b98bc,{'className':'univer-text-green-500'}),0x0:_0x4fb351(_0x1a031f,{'className':_0x4903ec(0xf6)}),0x2:_0x4fb351(_0x2ece5e,{'className':_0x4903ec(0xd7)})};function Tt(){const _0x5c2dbf=_0x4903ec;let _0x5a5e5c=_0x19a164(K),_0x269e50=_0x19a164(_0xba597a),_0x420795=_0x4b9619(_0x5a5e5c[_0x5c2dbf(0x144)],0x0),_0xf020df=_0x4b9619(_0x5a5e5c['visible$'],!0x1),_0x47a934=_0x4b9619(_0x5a5e5c[_0x5c2dbf(0xc0)],[]);function _0x554b62(){const _0x59745c=_0x5c2dbf;_0x5a5e5c[_0x59745c(0x1ba)]();}function _0x5cf23b(_0xa0e88b){const _0x12e237=_0x5c2dbf;switch(_0xa0e88b){case 0x1:return _0x269e50['t'](_0x12e237(0x202));case 0x0:return _0x269e50['t']('exchange-client.uploading');case 0x2:return _0x269e50['t']('exchange-client.unknownMistake');default:return'';}}return _0xf020df&&_0x2ca7b1(_0x5c2dbf(0x229),{'className':_0x5c2dbf(0xb5),'children':[_0x2ca7b1(_0x5c2dbf(0x229),{'className':_0x5c2dbf(0x198),'children':[_0x2ca7b1(_0x5c2dbf(0x205),{'className':'univer-flex\x20univer-items-center','children':[_0x4fb351(_0x5c2dbf(0x205),{'className':_0x5c2dbf(0x163),'children':wt[_0x420795]}),_0x4fb351('span',{'className':_0x5c2dbf(0x146),'children':_0x5cf23b(_0x420795)})]}),_0x4fb351(_0x5c2dbf(0x205),{'className':'univer-flex\x20univer-size-6\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-border-none\x20univer-bg-transparent\x20univer-text-gray-500\x20univer-transition-colors\x20hover:univer-bg-gray-200\x20dark:!univer-bg-gray-600','onClick':_0x554b62,'children':_0x4fb351(_0x506d7a,{})})]}),_0x2ca7b1(_0x5c2dbf(0x229),{'children':[_0x420795===0x0&&_0x4fb351(Ct,{}),_0x420795===0x2&&_0x4fb351(yt,{}),_0x47a934[_0x5c2dbf(0x121)]>0x0&&_0x4fb351(gt,{'list':_0x47a934}),_0x420795===0x1&&_0x4fb351(bt,{'count':_0x47a934[_0x5c2dbf(0x121)]})]})]});}let Q=class extends _0x332c69{constructor(_0x132bde,_0x215cdb){const _0x5175c0=_0x4903ec;super(),this[_0x5175c0(0x185)]=_0x132bde,this['_uiPartsService']=_0x215cdb,this[_0x5175c0(0x1fc)]();}['_registerUIParts'](){const _0x4f46d1=_0x4903ec;this['disposeWithMe'](this[_0x4f46d1(0xb3)][_0x4f46d1(0xc6)](_0x402cca[_0x4f46d1(0x15f)],()=>_0x2f1d93(Tt,this[_0x4f46d1(0x185)])));}};Q=z([R(0x0,_0x2f697a(_0x3ac7ad)),R(0x1,_0xa08f42)],Q);let $=class extends _0x256c29{constructor(_0x171ed4=A,_0x16557d,_0x41f824){const _0x35b08a=_0x4903ec;super(),this[_0x35b08a(0x1a7)]=_0x171ed4,this[_0x35b08a(0x185)]=_0x16557d,this['_configService']=_0x41f824;let {..._0x1baadc}=_0x1460d9({},A,this[_0x35b08a(0x1a7)]);this['_configService'][_0x35b08a(0xcb)](k,_0x1baadc);}[_0x4903ec(0x11a)](){const _0x245e1c=_0x4903ec;_0x2718c1(this[_0x245e1c(0x185)],[[Z],[Q],[q,{'useClass':J}],[W,{'useClass':G}],[B,{'useClass':V}],[K,{'useClass':ft}]]);}[_0x4903ec(0x1eb)](){const _0xa05bcc=_0x4903ec;_0x5ada79(this[_0xa05bcc(0x185)],[[Z],[Q],[q]]);}};L($,_0x4903ec(0x1ef),_0x4903ec(0x1b6)),L($,_0x4903ec(0x22c),D),L($,_0x4903ec(0xba),O),$=z([_0x1dbe2a(_0x56b9c8,_0xef202d),R(0x1,_0x2f697a(_0x3ac7ad)),R(0x2,_0x1f74df)],$);function Et(_0x341171,_0x92dc5c){const _0x53248d=_0x4903ec;let _0x1b3db3=_0x341171['get'](_0x45c5cd)['getCurrentUnitOfType'](_0x92dc5c);return!_0x1b3db3||!_0x341171[_0x53248d(0x1e9)](_0x24a705)||!_0x341171[_0x53248d(0x1e9)](_0x936458)?!0x1:_0x341171[_0x53248d(0x117)](_0x24a705)['isUnitLoadedFromServer'](_0x1b3db3);}function Dt(_0x19481d){const _0x53c4eb=_0x4903ec;let _0x5e196c=_0x19481d['workbook'];if(!_0x5e196c)return null;let _0x3dd93d={};_0x5e196c[_0x53c4eb(0x1a6)]&&Object[_0x53c4eb(0x161)](_0x5e196c['sheets'])[_0x53c4eb(0x181)](_0x165907=>{const _0x25dd67=_0x53c4eb;let _0x5a5443=_0x5e196c[_0x25dd67(0x1a6)][_0x165907];_0x3dd93d[_0x165907]={..._0x5a5443,'originalMeta':_0x51219f(_0x41a199[_0x25dd67(0x167)](_0x5a5443[_0x25dd67(0x110)]))};});let _0x559479=_0x51219f(_0x41a199[_0x53c4eb(0x167)](_0x5e196c[_0x53c4eb(0x110)]));return{..._0x19481d,'workbook':{..._0x5e196c,'originalMeta':_0x559479,'sheets':_0x3dd93d},'doc':{},'slide':void 0x0,'board':void 0x0,'pdf':void 0x0};}function Ot(_0x2b1407){const _0x4c7173=_0x4903ec;let _0x4c567={};return _0x2b1407[_0x4c7173(0x181)](_0x5699be=>{const _0x1d1cdc=_0x4c7173;_0x4c567[_0x5699be['id']]={..._0x5699be,'data':_0x51219f(_0x41a199[_0x1d1cdc(0x167)](_0x5699be[_0x1d1cdc(0x1c2)]))};}),_0x4c567;}var kt=class{constructor(){const _0x2f8cc8=_0x4903ec;L(this,_0x2f8cc8(0x1f0),new Map());}[_0x4903ec(0x165)](){const _0x48dfef=_0x4903ec;return Promise[_0x48dfef(0x1a2)]({'snapshot':{'unitID':'','type':_0x2cfd86[_0x48dfef(0x1da)],'rev':0x0,'workbook':void 0x0,'doc':void 0x0,'slide':void 0x0,'board':void 0x0},'changesets':[],'error':{'code':_0x6f2d17['OK'],'message':''}});}[_0x4903ec(0x134)](_0x3f9f1a,_0x270d6d){const _0x2acc16=_0x4903ec;let _0x2017fb=this[_0x2acc16(0x1f0)][_0x2acc16(0x117)](_0x270d6d[_0x2acc16(0x1aa)]);return Promise['resolve']({'block':_0x2017fb,'error':{'code':_0x6f2d17['OK'],'message':''}});}[_0x4903ec(0x221)](_0x58521c,_0x1e326f){const _0x5ddd40=_0x4903ec;let _0x223a74=this[_0x5ddd40(0x1f0)]['get'](_0x1e326f[_0x5ddd40(0x1aa)]);return Promise['resolve']({'block':_0x223a74===void 0x0?void 0x0:{..._0x223a74,'data':JSON[_0x5ddd40(0x1f3)](_0x41a199[_0x5ddd40(0x167)](_0x223a74[_0x5ddd40(0x1c2)]))},'error':{'code':_0x6f2d17['OK'],'message':''}});}[_0x4903ec(0x174)](){return Promise['resolve']({'changesets':[],'error':{'code':_0x6f2d17['OK'],'message':''}});}[_0x4903ec(0xee)](){const _0x1ebe0b=_0x4903ec;return Promise[_0x1ebe0b(0x1a2)]({'resources':{},'error':{'code':_0x6f2d17['OK'],'message':''}});}[_0x4903ec(0x190)](){const _0x3c3667=_0x4903ec;return Promise[_0x3c3667(0x1a2)]({'error':{'code':_0x6f2d17['OK'],'message':''}});}['updateSnapshot'](){const _0x3150f7=_0x4903ec;return Promise[_0x3150f7(0x1a2)]({'error':{'code':_0x6f2d17['OK'],'message':''}});}[_0x4903ec(0xca)](_0x136b34,_0x152175){const _0x40bfba=_0x4903ec;let {block:_0x39db8a}=_0x152175;return _0x39db8a?(this[_0x40bfba(0x1f0)][_0x40bfba(0x20a)](_0x39db8a['id'],_0x39db8a),Promise['resolve']({'error':{'code':_0x6f2d17['OK'],'message':''},'blockID':_0x39db8a['id']})):Promise['resolve']({'error':{'code':_0x6f2d17['UNDEFINED'],'message':'block\x20is\x20required'},'blockID':''});}['saveChangeset'](){const _0x16ba1b=_0x4903ec;return Promise[_0x16ba1b(0x1a2)]({'error':{'code':_0x6f2d17['OK'],'message':''},'concurrent':[]});}[_0x4903ec(0x140)](){const _0x129001=_0x4903ec;return Promise[_0x129001(0x1a2)]({'error':void 0x0,'fileMetaId':''});}['getLatestCsReqIdBySid'](){return Promise['resolve']({'error':void 0x0,'latestReqID':0x0});}};export{kt as ClientSnapshotServerService,H as EXPORT_FORMAT_DIALOG,lt as ExchangeBaseExportMode,ct as ExchangeBaseFormulaPolicy,st as ExchangeBaseImportMode,ot as ExchangeDocType,at as ExchangeFormat,q as IExchangeOperateService,W as IExchangeService,it as ImportOutputType,X as UniverExchangeClientMobileUIPlugin,$ as UniverExchangeClientPlugin,Et as isCurrentUnitLoadedFromServer,Ot as transformSheetBlockMetaToString,Dt as transformWorkbookSnapshotMetaToString};
1
+ const _0x524650=_0x3d1e;(function(_0x2c7568,_0x1ae85e){const _0x5af104=_0x3d1e,_0x1488d5=_0x2c7568();while(!![]){try{const _0x275c7a=-parseInt(_0x5af104(0x1df))/0x1+-parseInt(_0x5af104(0x1e1))/0x2+-parseInt(_0x5af104(0x172))/0x3+parseInt(_0x5af104(0x15e))/0x4+-parseInt(_0x5af104(0x186))/0x5+-parseInt(_0x5af104(0x175))/0x6*(parseInt(_0x5af104(0x158))/0x7)+parseInt(_0x5af104(0x17b))/0x8;if(_0x275c7a===_0x1ae85e)break;else _0x1488d5['push'](_0x1488d5['shift']());}catch(_0x338403){_0x1488d5['push'](_0x1488d5['shift']());}}}(_0x2322,0x9f900));import{UniverLicensePlugin as _0x4b875e}from'@univerjs-pro/license';import{DependentOn as _0x188883,Disposable as _0x5e593b,IConfigService as _0x54f9cd,Inject as _0x58ff1a,Injector as _0x29f00d,Plugin as _0x551cab,UniverInstanceType as _0x378b3c,createIdentifier as _0x2bb6c2,merge as _0x3c783e,registerDependencies as _0x5b5d4b,resolveWithBasePath as _0x419213}from'@univerjs/core';import{HTTPEventType as _0x4ca73f,HTTPResponseError as _0x5e60a6,HTTPService as _0x4b3b22,UniverNetworkPlugin as _0x24fb05}from'@univerjs/network';import{b64EncodeUnicode as _0x4d2ca6,textDecoder as _0x2c0e79,textEncoder as _0x504420}from'@univerjs-pro/collaboration';import{ErrorCode as _0x4c5264,FileSource as _0x864920}from'@univerjs/protocol';import{deflateSync as _0x17b490}from'fflate';import{Subject as _0x503d55}from'rxjs';var ie='@univerjs-pro/exchange-client',y=_0x524650(0x12e);const b=_0x524650(0x12a),x={},S=_0x524650(0x19a),C=_0x524650(0x154),w='application/vnd.ms-excel',T=_0x524650(0x12b),E=_0x524650(0x1ff),D='text/tab-separated-values',O=_0x524650(0x13b),k='application/vnd.openxmlformats-officedocument.presentationml.presentation',A=_0x524650(0x1d0),j={[_0x378b3c[_0x524650(0x199)]]:[''],[_0x378b3c[_0x524650(0x1c0)]]:[C,S],[_0x378b3c[_0x524650(0x1e4)]]:[w,T,E,D],[_0x378b3c[_0x524650(0x1de)]]:[O,k],[_0x378b3c[_0x524650(0x17d)]]:[A],[_0x378b3c[_0x524650(0x179)]]:[w,T,E,D],[_0x378b3c[_0x524650(0x138)]]:[''],[_0x378b3c['UNIVER_PROJECT']]:[''],[_0x378b3c['UNRECOGNIZED']]:['']},M={[C]:'doc',[S]:_0x524650(0x20b),[w]:_0x524650(0x1c1),[T]:_0x524650(0x1a6),[E]:_0x524650(0x180),[D]:_0x524650(0x147),[O]:_0x524650(0x209),[k]:_0x524650(0x188),[A]:_0x524650(0x182)};Object[_0x524650(0x19f)](Object[_0x524650(0x1b0)](j)['map'](([_0x32b5e8,_0x29af14])=>[_0x32b5e8,_0x29af14[_0x524650(0x1a7)](_0x140d29=>M[_0x140d29])[_0x524650(0x183)](Boolean)]));function N(_0x583a60,_0x5db5b1,_0x4ff0d7){const _0x18586c=_0x524650;let _0x79406d=document['createElement']('a');_0x79406d['href']=_0x583a60,_0x79406d['style'][_0x18586c(0x17e)]='none',_0x79406d['download']=_0x5db5b1+'.'+_0x4ff0d7,document['body'][_0x18586c(0x15c)](_0x79406d),_0x79406d[_0x18586c(0x1c5)](),document[_0x18586c(0x192)][_0x18586c(0x187)](_0x79406d);}async function P(_0x59b91c,_0x1bd975){const _0x291aaa=_0x524650;try{return await F(_0x59b91c,_0x1bd975);}catch(_0x145428){console[_0x291aaa(0x1e9)](_0x291aaa(0x1b5),_0x145428);return;}}async function F(_0xeb38d6,_0x600a42,_0x4db280){const _0xa99c99=_0x524650;var _0x5a8d82,_0xf98d49;let _0x3093c9=_0x4db280?await ae(_0xeb38d6,_0x600a42,_0x4db280):await _0x600a42['get'](_0xeb38d6,{'responseType':'blob'}),_0x591f02=_0x3093c9['body'],_0x12bd49=((_0x5a8d82=_0x3093c9['headers'][_0xa99c99(0x1d4)](_0xa99c99(0x193)))==null?void 0x0:_0x5a8d82[_0xa99c99(0x1aa)](',\x20'))??_0xa99c99(0x1b9),_0x2dda13=_0xa99c99(0x201)+(M[_0x12bd49]||'xlsx'),_0x4de5ee=(_0xf98d49=_0x3093c9[_0xa99c99(0x14e)][_0xa99c99(0x1d4)](_0xa99c99(0x1c7)))==null?void 0x0:_0xf98d49['join'](',\x20');if(_0x4de5ee){let _0x1d02ff=_0x4de5ee[_0xa99c99(0x1c6)](/filename=(.+)/);_0x1d02ff&&_0x1d02ff[0x1]&&(_0x2dda13=_0x1d02ff[0x1]);}else _0x2dda13=I(_0xeb38d6)||_0x2dda13;return new File([_0x591f02],_0x2dda13,{'type':_0x12bd49});}function ae(_0x3023d5,_0x4de4b6,_0x232c96){return new Promise((_0x3d9e8e,_0x26dc3d)=>{const _0x362a6e=_0x3d1e;let _0x324abb=!0x1,_0x1bdb79,_0x1d15b1=()=>_0x232c96[_0x362a6e(0x204)](_0x362a6e(0x203),_0x3cfe3a),_0x3cfe3a=()=>{const _0x52ba4a=_0x362a6e;if(_0x324abb)return;_0x324abb=!0x0,_0x1bdb79==null||_0x1bdb79[_0x52ba4a(0x1f3)](),_0x1d15b1();let _0x986d21=Error(_0x52ba4a(0x1f2));_0x986d21['name']=_0x52ba4a(0x141),_0x26dc3d(_0x986d21);};_0x232c96[_0x362a6e(0x14a)](_0x362a6e(0x203),_0x3cfe3a,{'once':!0x0}),_0x232c96[_0x362a6e(0x157)]?_0x3cfe3a():(_0x1bdb79=_0x4de4b6[_0x362a6e(0x1e8)]('GET',_0x3023d5,{'responseType':_0x362a6e(0x1c8)})[_0x362a6e(0x1af)]({'next'(_0x46b8ec){const _0x3da9c3=_0x362a6e;_0x324abb||_0x46b8ec[_0x3da9c3(0x16f)]!==_0x4ca73f['Response']||(_0x324abb=!0x0,_0x1d15b1(),_0x1bdb79==null||_0x1bdb79[_0x3da9c3(0x1f3)](),_0x3d9e8e(_0x46b8ec));},'error'(_0x3c2b2c){_0x324abb||(_0x324abb=!0x0,_0x1d15b1(),_0x26dc3d(_0x3c2b2c));},'complete'(){const _0x4d5319=_0x362a6e;_0x324abb||(_0x324abb=!0x0,_0x1d15b1(),_0x26dc3d(Error(_0x4d5319(0x1a3))));}}),_0x324abb&&_0x1bdb79['unsubscribe']());});}function _0x3d1e(_0x223012,_0x573436){_0x223012=_0x223012-0x125;const _0x2322a8=_0x2322();let _0x3d1e65=_0x2322a8[_0x223012];return _0x3d1e65;}function I(_0x4e8b23){const _0xf566c8=_0x524650;try{return new URL(_0x4e8b23)[_0xf566c8(0x191)][_0xf566c8(0x1a5)]('/')[_0xf566c8(0x1d9)]();}catch(_0x5de4c1){console[_0xf566c8(0x1e9)](_0xf566c8(0x19c),_0x5de4c1);return;}}function L(_0x4a9637){const _0x195bd7=_0x524650;let _0xde5e9=new Blob([_0x4a9637[_0x195bd7(0x189)]],{'type':'application/json'});return new File([_0xde5e9],_0x195bd7(0x1d5));}function R(_0x21ec86,_0x445e86){const _0x5043d7=_0x524650;return _0x21ec86[_0x5043d7(0x1ee)](_0x5043d7(0x1f0),_0x445e86);}function z(_0x15a661,_0x165dcd){const _0x8a619c=_0x524650;return _0x15a661[_0x8a619c(0x1ee)](_0x8a619c(0x177),_0x165dcd);}function B(_0x5b77f3,_0x40b3bd){const _0x18b940=_0x524650;return _0x5b77f3['replace'](_0x18b940(0x171),_0x40b3bd);}function V(_0x3150b1){'@babel/helpers - typeof';const _0xe5220f=_0x524650;return V=typeof Symbol=='function'&&typeof Symbol['iterator']==_0xe5220f(0x127)?function(_0x41c430){return typeof _0x41c430;}:function(_0x29ab04){const _0x92d9e7=_0xe5220f;return _0x29ab04&&typeof Symbol==_0x92d9e7(0x13f)&&_0x29ab04[_0x92d9e7(0x15f)]===Symbol&&_0x29ab04!==Symbol[_0x92d9e7(0x16c)]?_0x92d9e7(0x127):typeof _0x29ab04;},V(_0x3150b1);}function H(_0x5504b2,_0x22f56d){const _0x502d4f=_0x524650;if(V(_0x5504b2)!=_0x502d4f(0x1fa)||!_0x5504b2)return _0x5504b2;var _0x5a1e99=_0x5504b2[Symbol[_0x502d4f(0x1fb)]];if(_0x5a1e99!==void 0x0){var _0xd3c792=_0x5a1e99[_0x502d4f(0x161)](_0x5504b2,_0x22f56d||_0x502d4f(0x1cf));if(V(_0xd3c792)!=_0x502d4f(0x1fa))return _0xd3c792;throw TypeError(_0x502d4f(0x1e7));}return(_0x22f56d===_0x502d4f(0x149)?String:Number)(_0x5504b2);}function U(_0x11cec5){const _0x4a9b1d=_0x524650;var _0x1275b1=H(_0x11cec5,'string');return V(_0x1275b1)==_0x4a9b1d(0x127)?_0x1275b1:_0x1275b1+'';}function W(_0xdef296,_0xb0ca3c,_0x501749){return(_0xb0ca3c=U(_0xb0ca3c))in _0xdef296?Object['defineProperty'](_0xdef296,_0xb0ca3c,{'value':_0x501749,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xdef296[_0xb0ca3c]=_0x501749,_0xdef296;}function G(_0x5ea1e9,_0x1efcf2){return function(_0x4e5c79,_0x59d699){_0x1efcf2(_0x4e5c79,_0x59d699,_0x5ea1e9);};}function K(_0x28f1e2,_0x18672f,_0x3dcf6c,_0xdc1985){const _0x28d822=_0x524650;var _0x42779d=arguments[_0x28d822(0x1e0)],_0x423949=_0x42779d<0x3?_0x18672f:_0xdc1985===null?_0xdc1985=Object[_0x28d822(0x126)](_0x18672f,_0x3dcf6c):_0xdc1985,_0x37cdc7;if(typeof Reflect==_0x28d822(0x1fa)&&typeof Reflect[_0x28d822(0x1ed)]==_0x28d822(0x13f))_0x423949=Reflect[_0x28d822(0x1ed)](_0x28f1e2,_0x18672f,_0x3dcf6c,_0xdc1985);else{for(var _0x2dd859=_0x28f1e2['length']-0x1;_0x2dd859>=0x0;_0x2dd859--)(_0x37cdc7=_0x28f1e2[_0x2dd859])&&(_0x423949=(_0x42779d<0x3?_0x37cdc7(_0x423949):_0x42779d>0x3?_0x37cdc7(_0x18672f,_0x3dcf6c,_0x423949):_0x37cdc7(_0x18672f,_0x3dcf6c))||_0x423949);}return _0x42779d>0x3&&_0x423949&&Object[_0x28d822(0x13a)](_0x18672f,_0x3dcf6c,_0x423949),_0x423949;}let q=function(_0x4c3db3){const _0x595221=_0x524650;return _0x4c3db3[_0x4c3db3[_0x595221(0x18f)]=0x0]='UNDEFINED',_0x4c3db3[_0x4c3db3['UNIT']=0x1]='UNIT',_0x4c3db3[_0x4c3db3[_0x595221(0x150)]=0x2]='JSON',_0x4c3db3[_0x4c3db3['UNRECOGNIZED']=-0x1]=_0x595221(0x200),_0x4c3db3;}({}),oe=function(_0xfda09a){const _0x16ff4a=_0x524650;return _0xfda09a[_0x16ff4a(0x19e)]=_0x16ff4a(0x1a6),_0xfda09a['CSV']='csv',_0xfda09a[_0x16ff4a(0x168)]=_0x16ff4a(0x147),_0xfda09a['DOCX']=_0x16ff4a(0x20b),_0xfda09a['PPTX']=_0x16ff4a(0x188),_0xfda09a[_0x16ff4a(0x207)]='pdf',_0xfda09a;}({}),J=function(_0x20c855){const _0x5cd626=_0x524650;return _0x20c855[_0x5cd626(0x136)]=_0x5cd626(0x1f8),_0x20c855[_0x5cd626(0x1d3)]=_0x5cd626(0x1ae),_0x20c855;}({}),se=function(_0x24fd13){const _0x3c39ea=_0x524650;return _0x24fd13[_0x3c39ea(0x16a)]=_0x3c39ea(0x1eb),_0x24fd13[_0x3c39ea(0x1b7)]='tables',_0x24fd13[_0x3c39ea(0x1e5)]=_0x3c39ea(0x170),_0x24fd13[_0x3c39ea(0x13c)]=_0x3c39ea(0x1be),_0x24fd13;}({}),ce=function(_0x445997){const _0x44ec65=_0x524650;return _0x445997[_0x44ec65(0x12c)]='convert-then-values',_0x445997[_0x44ec65(0x1db)]=_0x44ec65(0x156),_0x445997[_0x44ec65(0x17a)]=_0x44ec65(0x1dc),_0x445997[_0x44ec65(0x1d7)]=_0x44ec65(0x1f7),_0x445997;}({}),le=function(_0x204891){const _0x500a60=_0x524650;return _0x204891[_0x500a60(0x1b7)]=_0x500a60(0x14c),_0x204891[_0x500a60(0x1a4)]=_0x500a60(0x151),_0x204891;}({});const Y=_0x2bb6c2('univer-pro.exchange-client.request.service');let X=class{constructor(_0x22bc78,_0x346ee5){this['_configService']=_0x22bc78,this['_httpService']=_0x346ee5,W(this,'_taskInterrupted',new Set());}[_0x524650(0x142)](){}[_0x524650(0x176)](_0x32a6fa){const _0xbf5b6e=_0x524650;this[_0xbf5b6e(0x17c)]['add'](_0x32a6fa);}['clearTaskInterrupted'](){const _0x4066a8=_0x524650;this['_taskInterrupted'][_0x4066a8(0x152)]();}async['upload'](_0x1c999a,_0x75bcf1=0x0,_0x48d37a=!0x1){const _0x13e1bf=_0x524650;if(typeof _0x1c999a=='string'){let _0x54b8dc=await P(_0x1c999a,this[_0x13e1bf(0x18a)]);if(!_0x54b8dc)throw Error(_0x13e1bf(0x1ab));_0x1c999a=_0x54b8dc;}_0x75bcf1||=_0x1c999a['size'];let _0x48d90b=new FormData();_0x48d90b['append'](_0x13e1bf(0x1ce),_0x1c999a);try{let _0x3a980d=this['_getUploadFileURL']()+_0x13e1bf(0x20d)+_0x75bcf1+_0x13e1bf(0x1c3)+_0x864920['HttpImport']+_0x13e1bf(0x1c2)+_0x48d37a,_0x5c9b2d={'body':_0x48d90b},_0x51daa9=(await this['_httpService'][_0x13e1bf(0x196)](_0x3a980d,_0x5c9b2d))[_0x13e1bf(0x192)];if(_0x51daa9[_0x13e1bf(0x1e9)]&&_0x51daa9['error'][_0x13e1bf(0x1b2)]!==_0x4c5264['OK'])throw Error(this[_0x13e1bf(0x1e6)](_0x13e1bf(0x1f4),_0x51daa9['error']));return _0x51daa9;}catch(_0xf30951){throw _0xf30951 instanceof Error?_0xf30951:Error(this[_0x13e1bf(0x1d6)]('upload\x20request\x20failed',_0xf30951));}}async['import'](_0x27c84d){const _0x3b0763=_0x524650;let {type:_0x34d15e,..._0x4e227f}=_0x27c84d;try{let _0x4eb28f=R(this[_0x3b0763(0x14b)](),''+_0x34d15e),_0x48f329={'body':_0x4e227f},_0x1c9314=(await this[_0x3b0763(0x18a)][_0x3b0763(0x196)](_0x4eb28f,_0x48f329))[_0x3b0763(0x192)];return _0x1c9314[_0x3b0763(0x1e9)]&&_0x1c9314['error'][_0x3b0763(0x1b2)]!==_0x4c5264['OK']?void 0x0:_0x1c9314;}catch{return;}}async[_0x524650(0x1b1)](_0x3d4743){const _0x5b4e69=_0x524650;let {type:_0x4faba4}=_0x3d4743;try{let _0x4eeb3b=R(this[_0x5b4e69(0x14f)](),''+_0x4faba4),_0xd1a6e2={'body':_0x3d4743},_0x1a20ad=(await this[_0x5b4e69(0x18a)][_0x5b4e69(0x196)](_0x4eeb3b,_0xd1a6e2))[_0x5b4e69(0x192)];return _0x1a20ad['error']&&_0x1a20ad[_0x5b4e69(0x1e9)][_0x5b4e69(0x1b2)]!==_0x4c5264['OK']?void 0x0:_0x1a20ad;}catch{return;}}async[_0x524650(0x206)](_0x1673a4){return new Promise((_0x155062,_0x5d80f8)=>{const _0x2da1e0=_0x3d1e;try{let _0x277878=0x0,_0x431e21=z(this['_getTaskURL'](),''+_0x1673a4),_0x158c0d=this[_0x2da1e0(0x1ba)](),_0x4f9e0d=async()=>{const _0x36aa58=_0x2da1e0;if(this['_taskInterrupted'][_0x36aa58(0x1e2)](_0x1673a4))return;let _0x197828=(await this[_0x36aa58(0x18a)][_0x36aa58(0x1d4)](_0x431e21))[_0x36aa58(0x192)];if(_0x197828[_0x36aa58(0x1e9)]&&_0x197828[_0x36aa58(0x1e9)]['code']===_0x4c5264['OK']){if(_0x197828[_0x36aa58(0x1fc)]===_0x36aa58(0x16e))_0x155062(_0x197828);else{if(_0x197828[_0x36aa58(0x1fc)]===_0x36aa58(0x15b)){let _0x1a11f4=0x3e8;if(_0x277878>=_0x158c0d){_0x5d80f8(_0x197828);return;}_0x277878>=0x7530&&(_0x1a11f4=0x1388),_0x277878+=_0x1a11f4,setTimeout(_0x4f9e0d,_0x1a11f4);}else _0x5d80f8(_0x197828);}}else _0x5d80f8(_0x197828);};_0x4f9e0d();}catch(_0x8969d4){_0x5d80f8(_0x8969d4 instanceof Error?_0x8969d4:Error(String(_0x8969d4)));}});}async[_0x524650(0x1ec)](_0x3aeca7){const _0x5463c1=_0x524650;try{let _0x50dcc0=B(this[_0x5463c1(0x164)](),''+_0x3aeca7);return(await this[_0x5463c1(0x18a)][_0x5463c1(0x1d4)](_0x50dcc0))[_0x5463c1(0x192)];}catch{return;}}async[_0x524650(0x17f)](_0x1bc816){const _0x28fc4e=_0x524650;try{return(await this['_httpService'][_0x28fc4e(0x1d4)](_0x1bc816,{'responseType':_0x28fc4e(0x1dc)}))['body'];}catch{return;}}[_0x524650(0x1e6)](_0x4ebe2f,_0x3c78c5){const _0x15b6cb=_0x524650;let _0x5aee0e=this[_0x15b6cb(0x1f5)](_0x3c78c5);return _0x5aee0e?_0x4ebe2f+':\x20'+_0x5aee0e:_0x4ebe2f;}['_buildHttpErrorMessage'](_0x566c9d,_0x5a634a){const _0x429f6f=_0x524650;if(_0x5a634a instanceof _0x5e60a6){let _0x599a97=typeof _0x5a634a[_0x429f6f(0x1fc)]==_0x429f6f(0x20a)?''+_0x5a634a[_0x429f6f(0x1fc)]+(_0x5a634a[_0x429f6f(0x13e)]?'\x20'+_0x5a634a['statusText']:''):void 0x0,_0x485ef1=this[_0x429f6f(0x1f5)](_0x5a634a['error']);return _0x599a97&&_0x485ef1?_0x566c9d+_0x429f6f(0x166)+_0x599a97+_0x429f6f(0x198)+_0x485ef1:_0x599a97?_0x566c9d+_0x429f6f(0x166)+_0x599a97:_0x485ef1?_0x566c9d+':\x20'+_0x485ef1:_0x566c9d;}let _0x9e3bdb=this[_0x429f6f(0x1f5)](_0x5a634a);return _0x9e3bdb?_0x566c9d+':\x20'+_0x9e3bdb:_0x566c9d;}[_0x524650(0x1f5)](_0xe626ca){const _0x35ed00=_0x524650;if(typeof _0xe626ca==_0x35ed00(0x149)){let _0x4c5aec=_0xe626ca[_0x35ed00(0x195)]();return _0x4c5aec['length']>0x0?_0x4c5aec:void 0x0;}if(_0xe626ca instanceof Error)return this[_0x35ed00(0x1f5)](_0xe626ca[_0x35ed00(0x18e)]);if(!_0xe626ca||typeof _0xe626ca!=_0x35ed00(0x1fa)||Array[_0x35ed00(0x1b4)](_0xe626ca))return;let _0x1fbcab=_0xe626ca,_0x6db038=this[_0x35ed00(0x1f5)](_0x1fbcab[_0x35ed00(0x18e)]);if(_0x6db038)return _0x6db038;if(_0x1fbcab[_0x35ed00(0x1e9)]&&typeof _0x1fbcab[_0x35ed00(0x1e9)]=='object'&&!Array['isArray'](_0x1fbcab[_0x35ed00(0x1e9)])){let _0x1bd1e2=this[_0x35ed00(0x1f5)](_0x1fbcab[_0x35ed00(0x1e9)]);if(_0x1bd1e2)return _0x1bd1e2;}}[_0x524650(0x16d)](){const _0x5566f1=_0x524650;let _0x4bdb95=this[_0x5566f1(0x1d1)][_0x5566f1(0x18d)](b);return(_0x4bdb95==null?void 0x0:_0x4bdb95[_0x5566f1(0x15a)])??_0x5566f1(0x146);}[_0x524650(0x14b)](){const _0x590e40=_0x524650;let _0x485840=this[_0x590e40(0x1d1)][_0x590e40(0x18d)](b);return(_0x485840==null?void 0x0:_0x485840['importServerUrl'])??_0x590e40(0x155);}[_0x524650(0x14f)](){const _0x2da4b8=_0x524650;let _0x49ed5e=this[_0x2da4b8(0x1d1)][_0x2da4b8(0x18d)](b);return(_0x49ed5e==null?void 0x0:_0x49ed5e['exportServerUrl'])??_0x2da4b8(0x19d);}[_0x524650(0x174)](){const _0x1c6a40=_0x524650;let _0x57bdba=this[_0x1c6a40(0x1d1)]['getConfig'](b);return(_0x57bdba==null?void 0x0:_0x57bdba['getTaskServerUrl'])??_0x1c6a40(0x1bc);}[_0x524650(0x164)](){const _0xd4cb51=_0x524650;let _0x3b9871=this[_0xd4cb51(0x1d1)][_0xd4cb51(0x18d)](b);return(_0x3b9871==null?void 0x0:_0x3b9871[_0xd4cb51(0x159)])??_0xd4cb51(0x12f);}[_0x524650(0x1ba)](){const _0x363694=_0x524650;let _0x3fde76=this['_configService'][_0x363694(0x18d)](b);return(_0x3fde76==null?void 0x0:_0x3fde76[_0x363694(0x173)])??0x1d4c0;}};X=K([G(0x0,_0x54f9cd),G(0x1,_0x58ff1a(_0x4b3b22))],X);const Z=_0x2bb6c2(_0x524650(0x132));let Q=class extends _0x5e593b{constructor(_0x2cb779,_0x558896,_0x35a43d){const _0xa7ea19=_0x524650;super(),this[_0xa7ea19(0x1d1)]=_0x2cb779,this[_0xa7ea19(0x18a)]=_0x558896,this[_0xa7ea19(0x1bb)]=_0x35a43d,W(this,_0xa7ea19(0x202),null),W(this,_0xa7ea19(0x1da),new _0x503d55()),W(this,_0xa7ea19(0x19b),this[_0xa7ea19(0x1da)][_0xa7ea19(0x1a1)]());}[_0x524650(0x142)](){const _0x110dd3=_0x524650;super['dispose'](),this[_0x110dd3(0x1da)][_0x110dd3(0x205)]();}['downloadFile'](_0x843598,_0x561ce5,_0x39ce84){const _0x29e6f4=_0x524650;let _0x36b716=URL[_0x29e6f4(0x133)](_0x843598);N(_0x36b716,_0x561ce5,_0x39ce84),URL[_0x29e6f4(0x153)](_0x36b716);}async['getFileById'](_0x5ae420,_0x1269dc){const _0x335dc5=_0x524650;if(_0x1269dc!=null&&_0x1269dc['aborted'])return;let _0x5222ff=await this[_0x335dc5(0x163)](_0x5ae420);if(!(!_0x5222ff||_0x1269dc!=null&&_0x1269dc['aborted']))return F(_0x5222ff,this[_0x335dc5(0x18a)],_0x1269dc);}async[_0x524650(0x1cd)](_0x29b6d3,_0x2d68c3,_0xe76209){const _0x43c9b8=_0x524650;var _0x5df2b7,_0x384049;let _0x5ddb67=await this[_0x43c9b8(0x130)](_0x29b6d3);if(!_0x5ddb67)return;let _0x39d79c=await this['_import'](_0x5ddb67,0x1,_0x2d68c3,_0xe76209);if(!_0x39d79c)return;this['_importTaskId']=_0x39d79c,this[_0x43c9b8(0x1bb)][_0x43c9b8(0x1b6)]();let _0x12c7fc=await this[_0x43c9b8(0x1bb)][_0x43c9b8(0x206)](_0x39d79c)[_0x43c9b8(0x169)](_0x138da3=>{const _0x3912bf=_0x43c9b8;var _0x5af144;let _0x51cf45=_0x138da3 instanceof Error?_0x138da3[_0x3912bf(0x18e)]:(_0x5af144=_0x138da3[_0x3912bf(0x1e9)])==null?void 0x0:_0x5af144[_0x3912bf(0x18e)];this[_0x3912bf(0x1da)][_0x3912bf(0x162)]({'error':{'code':_0x4c5264[_0x3912bf(0x200)],'message':_0x51cf45||''},'state':0x3});});if(!_0x12c7fc)return;let _0x1697ec=(_0x5df2b7=_0x12c7fc['import'])==null?void 0x0:_0x5df2b7[_0x43c9b8(0x129)],_0xc4ffd4=((_0x384049=_0x12c7fc[_0x43c9b8(0x1a2)])==null?void 0x0:_0x384049[_0x43c9b8(0x1b8)])||'';if(_0x1697ec!==0x1)this['_requestState$']['next']({'error':{'code':_0x4c5264[_0x43c9b8(0x200)],'message':_0x43c9b8(0x1a0)},'state':0x3});else{if(_0xc4ffd4[_0x43c9b8(0x1e0)]===0x0)this[_0x43c9b8(0x1da)]['next']({'error':{'code':_0x4c5264[_0x43c9b8(0x200)],'message':_0x43c9b8(0x128)},'state':0x3});else return this['_requestState$'][_0x43c9b8(0x162)]({'error':_0x12c7fc['error'],'state':0x3}),_0xc4ffd4;}}async[_0x524650(0x1ad)](_0x1dd49d,_0x448a46,_0x3592a0){return this['_importToJson'](_0x1dd49d,_0x448a46,_0x3592a0);}async[_0x524650(0x1a8)](_0x5c469f,_0x52bae1,_0x3ab8dd,_0x425da9){const _0x2a0e0c=_0x524650;return this[_0x2a0e0c(0x1e3)](_0x5c469f,0x1,_0x52bae1,_0x3ab8dd,_0x425da9);}async[_0x524650(0x1fe)](_0x334a08,_0xa02550,_0x55d0ba,_0x4c0a16){const _0x4581bd=_0x524650;return this[_0x4581bd(0x145)](_0x334a08,_0xa02550,_0x55d0ba,_0x4c0a16);}['interruptImportTask'](){const _0x5943eb=_0x524650;this[_0x5943eb(0x202)]&&this[_0x5943eb(0x1bb)][_0x5943eb(0x176)](this[_0x5943eb(0x202)]);}async[_0x524650(0x181)](_0x21aba7,_0x32761e,_0x3f4739){const _0x5067ed=_0x524650;var _0x121f2d,_0x34bfda;let _0x5e9554=await this[_0x5067ed(0x130)](_0x21aba7);if(!_0x5e9554)return;let _0x264202=await this['_import'](_0x5e9554,0x2,_0x32761e,_0x3f4739);if(!_0x264202)return;this[_0x5067ed(0x202)]=_0x264202,this[_0x5067ed(0x1bb)]['clearTaskInterrupted']();let _0x10e4f8=await this[_0x5067ed(0x1bb)]['getTask'](_0x264202)[_0x5067ed(0x169)](_0x229a31=>{const _0x53a798=_0x5067ed;var _0x17107b;let _0x184e6b=_0x229a31 instanceof Error?_0x229a31['message']:(_0x17107b=_0x229a31[_0x53a798(0x1e9)])==null?void 0x0:_0x17107b[_0x53a798(0x18e)];this[_0x53a798(0x1da)][_0x53a798(0x162)]({'error':{'code':_0x4c5264[_0x53a798(0x200)],'message':_0x184e6b||''},'state':0x3});});if(!_0x10e4f8)return;let _0x744da5=(_0x121f2d=_0x10e4f8[_0x5067ed(0x1a2)])==null?void 0x0:_0x121f2d[_0x5067ed(0x129)],_0x3c1e80=((_0x34bfda=_0x10e4f8[_0x5067ed(0x1a2)])==null?void 0x0:_0x34bfda[_0x5067ed(0x1ef)])||'';if(_0x744da5!==0x2){this[_0x5067ed(0x1da)][_0x5067ed(0x162)]({'error':{'code':_0x4c5264[_0x5067ed(0x200)],'message':'Get\x20outputType\x20error'},'state':0x3});return;}if(_0x3c1e80[_0x5067ed(0x1e0)]===0x0){this[_0x5067ed(0x1da)][_0x5067ed(0x162)]({'error':{'code':_0x4c5264[_0x5067ed(0x200)],'message':_0x5067ed(0x160)},'state':0x3});return;}this['_requestState$'][_0x5067ed(0x162)]({'error':_0x10e4f8[_0x5067ed(0x1e9)],'state':0x3});let _0x135752=await this[_0x5067ed(0x163)](_0x3c1e80);if(!_0x135752)return;let _0x4c13b7=await this[_0x5067ed(0x1bb)]['getTextFromUrl'](_0x135752);if(!_0x4c13b7)this[_0x5067ed(0x1da)]['next']({'error':{'code':_0x4c5264[_0x5067ed(0x200)],'message':_0x5067ed(0x1bf)},'state':0x5});else try{let _0xa3f2b7=JSON[_0x5067ed(0x178)](_0x4c13b7);return this['_requestState$'][_0x5067ed(0x162)]({'error':{'code':_0x4c5264['OK'],'message':_0x5067ed(0x1ac)},'state':0x5}),_0xa3f2b7;}catch{this[_0x5067ed(0x1da)][_0x5067ed(0x162)]({'error':{'code':_0x4c5264['UNRECOGNIZED'],'message':_0x5067ed(0x1c9)},'state':0x5});}}async['_exportBySnapshot'](_0x1a4824,_0x4f945e,_0x4d347a,_0x459cd2){const _0x535c4b=_0x524650;let _0x1a0482=JSON['stringify'](_0x1a4824),_0x3d306d=_0x504420[_0x535c4b(0x139)](_0x1a0482),_0x4a940c=_0x17b490(_0x3d306d),_0x3308b0=_0x3d306d[_0x535c4b(0x1e0)],_0x31609e=L(_0x4a940c),_0x50c630=await this[_0x535c4b(0x130)](_0x31609e,_0x3308b0,!0x0);if(_0x50c630)return this[_0x535c4b(0x1e3)](_0x50c630,0x2,_0x4f945e,_0x4d347a,_0x459cd2);}async['_export'](_0x5251cf,_0x3d592a,_0x30aebb,_0x366bb9,_0x3f504f){const _0x2fe3fc=_0x524650;var _0x153cf0;let _0xb3794b=await this[_0x2fe3fc(0x1bb)][_0x2fe3fc(0x1b1)]({..._0x3d592a===0x1?{'unitID':_0x5251cf}:{'jsonID':_0x5251cf},'type':_0x30aebb,'format':_0x366bb9,'options':_0x3f504f});if(!_0xb3794b){this[_0x2fe3fc(0x1da)][_0x2fe3fc(0x162)]({'error':{'code':_0x4c5264['UNRECOGNIZED'],'message':_0x2fe3fc(0x1ea)},'state':0x2});return;}if(this[_0x2fe3fc(0x1da)][_0x2fe3fc(0x162)]({'error':_0xb3794b[_0x2fe3fc(0x1e9)],'state':0x2}),_0xb3794b[_0x2fe3fc(0x1e9)]&&_0xb3794b[_0x2fe3fc(0x1e9)][_0x2fe3fc(0x1b2)]!==_0x4c5264['OK'])return;let _0x2977b2=_0xb3794b[_0x2fe3fc(0x1bd)],_0x23f149=await this[_0x2fe3fc(0x1bb)][_0x2fe3fc(0x206)](_0x2977b2)[_0x2fe3fc(0x169)](_0x569f4c=>{const _0x36ba58=_0x2fe3fc;var _0x4c3844;let _0x2c6aa6=_0x569f4c instanceof Error?_0x569f4c[_0x36ba58(0x18e)]:(_0x4c3844=_0x569f4c[_0x36ba58(0x1e9)])==null?void 0x0:_0x4c3844['message'];this[_0x36ba58(0x1da)][_0x36ba58(0x162)]({'error':{'code':_0x4c5264[_0x36ba58(0x200)],'message':_0x2c6aa6||''},'state':0x3});});if(!_0x23f149)return;let _0x2ad761=((_0x153cf0=_0x23f149[_0x2fe3fc(0x1b1)])==null?void 0x0:_0x153cf0['fileID'])||'';if(_0x2ad761['length']===0x0){this['_requestState$'][_0x2fe3fc(0x162)]({'error':{'code':_0x4c5264[_0x2fe3fc(0x200)],'message':_0x2fe3fc(0x1cc)},'state':0x3});return;}this[_0x2fe3fc(0x1da)][_0x2fe3fc(0x162)]({'error':_0x23f149['error'],'state':0x3});let _0x247474=await this['_signUrl'](_0x2ad761);if(!_0x247474)return;let _0x439538=await P(_0x247474,this['_httpService']);if(!_0x439538)this[_0x2fe3fc(0x1da)][_0x2fe3fc(0x162)]({'error':{'code':_0x4c5264[_0x2fe3fc(0x200)],'message':_0x2fe3fc(0x140)},'state':0x6});else return this['_requestState$'][_0x2fe3fc(0x162)]({'error':{'code':_0x4c5264['OK'],'message':'success'},'state':0x6}),_0x439538;}async[_0x524650(0x130)](_0x47e728,_0x2d3b2a,_0x3eb20f){const _0x23efb7=_0x524650;let _0x2362a1;try{_0x2362a1=await this[_0x23efb7(0x1bb)]['upload'](_0x47e728,_0x2d3b2a,_0x3eb20f);}catch(_0x1d2b20){let _0x1bf0fa=_0x1d2b20 instanceof Error?_0x1d2b20[_0x23efb7(0x18e)]:String(_0x1d2b20);this['_requestState$'][_0x23efb7(0x162)]({'error':{'code':_0x4c5264[_0x23efb7(0x200)],'message':_0x1bf0fa},'state':0x0});return;}if(!_0x2362a1||typeof _0x2362a1[_0x23efb7(0x135)]!=_0x23efb7(0x149)){this['_requestState$']['next']({'error':{'code':_0x4c5264[_0x23efb7(0x200)],'message':_0x23efb7(0x12d)},'state':0x0});return;}let _0x3da58d=_0x2362a1[_0x23efb7(0x135)];if(_0x3da58d[_0x23efb7(0x1e0)]===0x0)this[_0x23efb7(0x1da)][_0x23efb7(0x162)]({'error':{'code':_0x4c5264[_0x23efb7(0x200)],'message':_0x23efb7(0x137)},'state':0x0});else return this['_requestState$']['next']({'error':{'code':_0x4c5264['OK'],'message':_0x23efb7(0x1ac)},'state':0x0}),_0x3da58d;}async[_0x524650(0x194)](_0x42e793,_0x1e247d,_0x2b0a3d,_0x5693bf){const _0x2ca3c3=_0x524650;let _0x12fed6={'fileID':_0x42e793,'type':_0x2b0a3d,'outputType':_0x1e247d,'options':_0x5693bf},_0x5cc22a=await this[_0x2ca3c3(0x1bb)]['import'](_0x12fed6);if(!_0x5cc22a){this[_0x2ca3c3(0x1da)][_0x2ca3c3(0x162)]({'error':{'code':_0x4c5264[_0x2ca3c3(0x200)],'message':_0x2ca3c3(0x1f9)},'state':0x1});return;}if(_0x5cc22a[_0x2ca3c3(0x1e9)]&&_0x5cc22a['error']['code']!==_0x4c5264['OK']){this[_0x2ca3c3(0x1da)][_0x2ca3c3(0x162)]({'error':_0x5cc22a[_0x2ca3c3(0x1e9)],'state':0x1});return;}let _0x4b21ad=_0x5cc22a[_0x2ca3c3(0x1bd)];if(_0x4b21ad['length']===0x0)this[_0x2ca3c3(0x1da)][_0x2ca3c3(0x162)]({'error':{'code':_0x4c5264['UNRECOGNIZED'],'message':_0x2ca3c3(0x148)},'state':0x1});else return this['_requestState$']['next']({'error':_0x5cc22a[_0x2ca3c3(0x1e9)],'state':0x1}),_0x4b21ad;}async['_signUrl'](_0x83fc48){const _0x4909fa=_0x524650;let _0x57e60e=await this['_requestService'][_0x4909fa(0x1ec)](_0x83fc48);if(!_0x57e60e){this[_0x4909fa(0x1da)][_0x4909fa(0x162)]({'error':{'code':_0x4c5264['UNRECOGNIZED'],'message':'sign\x20url\x20error'},'state':0x4});return;}if(_0x57e60e[_0x4909fa(0x1e9)]&&_0x57e60e[_0x4909fa(0x1e9)][_0x4909fa(0x1b2)]!==_0x4c5264['OK']){this[_0x4909fa(0x1da)][_0x4909fa(0x162)]({'error':_0x57e60e[_0x4909fa(0x1e9)],'state':0x4});return;}let _0xcb3a03=_0x419213(_0x57e60e[_0x4909fa(0x167)],this[_0x4909fa(0x131)]());if(_0xcb3a03['length']===0x0)this[_0x4909fa(0x1da)][_0x4909fa(0x162)]({'error':{'code':_0x4c5264[_0x4909fa(0x200)],'message':'sign\x20url\x20error'},'state':0x4});else return this[_0x4909fa(0x1da)][_0x4909fa(0x162)]({'error':_0x57e60e['error'],'state':0x4}),_0xcb3a03;}[_0x524650(0x131)](){const _0x41e5c1=_0x524650;let _0x5d5f81=this[_0x41e5c1(0x1d1)][_0x41e5c1(0x18d)](b);return(_0x5d5f81==null?void 0x0:_0x5d5f81[_0x41e5c1(0x14d)])??location[_0x41e5c1(0x15d)];}};function _0x2322(){const _0x296fb4=['content-disposition','blob','Failed\x20to\x20parse\x20json','_config','updateSnapshot','Failed\x20to\x20get\x20fileID\x20from\x20task','importFileToUnitId','file','default','application/pdf','_configService','fetchMissingChangesets','TRADITIONAL','get','file.json','_buildHttpErrorMessage','FAIL','onStarting','pop','_requestState$','VALUES','text','forEach','UNIVER_SLIDE','527749yBDDwJ','length','2463188rUSQhD','has','_export','UNIVER_SHEET','SHEETS','_buildProtocolErrorMessage','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','stream','error','export\x20error','auto','signUrl','decorate','replace','jsonID','{type}','data','File\x20request\x20aborted.','unsubscribe','upload\x20request\x20failed','_extractErrorDetail','getDeserializedSheetBlock','fail','modern','import\x20error','object','toPrimitive','status','resolve','exportFileBySnapshot','text/csv','UNRECOGNIZED','file.','_importTaskId','abort','removeEventListener','complete','getTask','PDF','set','ppt','number','docx','copyFileMeta','?size=','_injector','getOwnPropertyDescriptor','symbol','Failed\x20to\x20get\x20unitID\x20from\x20task','outputType','exchange-client.config','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','CONVERT_THEN_VALUES','upload\x20failed:\x20missing\x20FileId\x20in\x20response','1.2.0','/universer-api/file/{fileID}/sign-url','_upload','_getDownloadEndpointURL','univer-pro.exchange-client.exchange.service','createObjectURL','getLatestCsReqIdBySid','FileId','MODERN','upload\x20failed:\x20FileId\x20is\x20empty','UNIVER_BOARD','encode','defineProperty','application/vnd.ms-powerpoint','HYBRID','workbook','statusText','function','Failed\x20to\x20get\x20file\x20from\x20url','AbortError','dispose','decode','getResourcesRequest','_exportBySnapshot','/universer-api/stream/file/upload','tsv','Failed\x20to\x20get\x20taskID\x20from\x20import\x20response','string','addEventListener','_getImportURL','tables','downloadEndpointUrl','headers','_getExportURL','JSON','ranges','clear','revokeObjectURL','application/msword','/universer-api/exchange/{type}/import','values','aborted','21GLVxUb','signUrlServerUrl','uploadFileServerUrl','pending','appendChild','origin','4593432kbzADE','constructor','Failed\x20to\x20get\x20jsonID\x20from\x20task','call','next','_signUrl','_getSignURL','UNIVER_EXCHANGE_CLIENT_PLUGIN',':\x20HTTP\x20','url','TSV','catch','AUTO','setConfig','prototype','_getUploadFileURL','done','type','sheets','{fileID}','330774iXaRBG','maxTimeoutTime','_getTaskURL','2275644ZavCzw','setTaskInterrupted','{taskID}','parse','UNIVER_BASE','TEXT','28691880giEjfH','_taskInterrupted','UNIVER_PDF','display','getTextFromUrl','csv','_importToJson','pdf','filter','pluginName','_sheetBlockCache','5369260NyOIkl','removeChild','pptx','buffer','_httpService','originalMeta','block\x20is\x20required','getConfig','message','UNDEFINED','saveSnapshot','pathname','body','Content-Type','_import','trim','post','getUnitOnRev','\x20-\x20','UNIVER_UNKNOWN','application/vnd.openxmlformats-officedocument.wordprocessingml.document','requestState$','Error\x20getting\x20file\x20name\x20from\x20URL:','/universer-api/exchange/{type}/export','XLSX','fromEntries','Get\x20outputType\x20error','asObservable','import','File\x20request\x20completed\x20without\x20a\x20response.','RANGES','split','xlsx','map','exportFileByUnitId','saveChangeset','join','upload\x20request\x20failed:\x20failed\x20to\x20read\x20source\x20file\x20from\x20url','success','importFileToJson','traditional','subscribe','entries','export','code','version','isArray','Error\x20fetching\x20file\x20from\x20URL:','clearTaskInterrupted','TABLES','unitID','application/octet-stream','_getMaxPollingTime','_requestService','/universer-api/exchange/task/{taskID}','taskID','hybrid','Failed\x20to\x20get\x20text\x20from\x20url','UNIVER_DOC','xls','&flate=','&source=','saveSheetBlock','click','match'];_0x2322=function(){return _0x296fb4;};return _0x2322();}Q=K([G(0x0,_0x54f9cd),G(0x1,_0x58ff1a(_0x4b3b22)),G(0x2,_0x58ff1a(Y))],Q);let $=class extends _0x551cab{constructor(_0x48fe1e=x,_0x5a34aa,_0x5ef525){const _0x190276=_0x524650;super(),this[_0x190276(0x1ca)]=_0x48fe1e,this[_0x190276(0x125)]=_0x5a34aa,this[_0x190276(0x1d1)]=_0x5ef525;let {..._0x33ac0d}=_0x3c783e({},x,this['_config']);this[_0x190276(0x1d1)][_0x190276(0x16b)](b,_0x33ac0d);}[_0x524650(0x1d8)](){const _0x289069=_0x524650;_0x5b5d4b(this[_0x289069(0x125)],[[Z,{'useClass':Q}],[Y,{'useClass':X}]]);}};W($,_0x524650(0x184),_0x524650(0x165)),W($,'packageName',ie),W($,_0x524650(0x1b3),y),$=K([_0x188883(_0x4b875e,_0x24fb05),G(0x1,_0x58ff1a(_0x29f00d)),G(0x2,_0x54f9cd)],$);function ue(_0x874e06){const _0x4dca6d=_0x524650;let _0x4109b3=_0x874e06[_0x4dca6d(0x13d)];if(!_0x4109b3)return null;let _0x1107a8={};_0x4109b3[_0x4dca6d(0x170)]&&Object['keys'](_0x4109b3['sheets'])[_0x4dca6d(0x1dd)](_0x171e3e=>{const _0x48d2ab=_0x4dca6d;let _0xc424fa=_0x4109b3[_0x48d2ab(0x170)][_0x171e3e];_0x1107a8[_0x171e3e]={..._0xc424fa,'originalMeta':_0x4d2ca6(_0x2c0e79['decode'](_0xc424fa['originalMeta']))};});let _0x250d1f=_0x4d2ca6(_0x2c0e79[_0x4dca6d(0x143)](_0x4109b3[_0x4dca6d(0x18b)]));return{..._0x874e06,'workbook':{..._0x4109b3,'originalMeta':_0x250d1f,'sheets':_0x1107a8},'doc':{},'slide':void 0x0,'board':void 0x0,'pdf':void 0x0};}function de(_0x476b56){const _0x407b00=_0x524650;let _0x361acc={};return _0x476b56[_0x407b00(0x1dd)](_0x3f6c5f=>{const _0x4fbebd=_0x407b00;_0x361acc[_0x3f6c5f['id']]={..._0x3f6c5f,'data':_0x4d2ca6(_0x2c0e79[_0x4fbebd(0x143)](_0x3f6c5f[_0x4fbebd(0x1f1)]))};}),_0x361acc;}var fe=class{constructor(){const _0x53c3b3=_0x524650;W(this,_0x53c3b3(0x185),new Map());}[_0x524650(0x197)](){const _0x4c2c56=_0x524650;return Promise[_0x4c2c56(0x1fd)]({'snapshot':{'unitID':'','type':_0x378b3c['UNIVER_SHEET'],'rev':0x0,'workbook':void 0x0,'doc':void 0x0,'slide':void 0x0,'board':void 0x0},'changesets':[],'error':{'code':_0x4c5264['OK'],'message':''}});}['getSheetBlock'](_0x50bf93,_0x52c550){const _0x215ec2=_0x524650;let _0x3f18f4=this[_0x215ec2(0x185)][_0x215ec2(0x1d4)](_0x52c550['blockID']);return Promise[_0x215ec2(0x1fd)]({'block':_0x3f18f4,'error':{'code':_0x4c5264['OK'],'message':''}});}[_0x524650(0x1f6)](_0x1094e6,_0x4b3e14){const _0x53b8e7=_0x524650;let _0x2d4324=this[_0x53b8e7(0x185)][_0x53b8e7(0x1d4)](_0x4b3e14['blockID']);return Promise['resolve']({'block':_0x2d4324===void 0x0?void 0x0:{..._0x2d4324,'data':JSON[_0x53b8e7(0x178)](_0x2c0e79[_0x53b8e7(0x143)](_0x2d4324[_0x53b8e7(0x1f1)]))},'error':{'code':_0x4c5264['OK'],'message':''}});}[_0x524650(0x1d2)](){const _0x9c8f03=_0x524650;return Promise[_0x9c8f03(0x1fd)]({'changesets':[],'error':{'code':_0x4c5264['OK'],'message':''}});}[_0x524650(0x144)](){return Promise['resolve']({'resources':{},'error':{'code':_0x4c5264['OK'],'message':''}});}[_0x524650(0x190)](){const _0x254496=_0x524650;return Promise[_0x254496(0x1fd)]({'error':{'code':_0x4c5264['OK'],'message':''}});}[_0x524650(0x1cb)](){const _0x153364=_0x524650;return Promise[_0x153364(0x1fd)]({'error':{'code':_0x4c5264['OK'],'message':''}});}[_0x524650(0x1c4)](_0x3a882e,_0x26cda4){const _0x4aa558=_0x524650;let {block:_0x4b0bb4}=_0x26cda4;return _0x4b0bb4?(this[_0x4aa558(0x185)][_0x4aa558(0x208)](_0x4b0bb4['id'],_0x4b0bb4),Promise[_0x4aa558(0x1fd)]({'error':{'code':_0x4c5264['OK'],'message':''},'blockID':_0x4b0bb4['id']})):Promise[_0x4aa558(0x1fd)]({'error':{'code':_0x4c5264['UNDEFINED'],'message':_0x4aa558(0x18c)},'blockID':''});}[_0x524650(0x1a9)](){const _0x294ff3=_0x524650;return Promise[_0x294ff3(0x1fd)]({'error':{'code':_0x4c5264['OK'],'message':''},'concurrent':[]});}[_0x524650(0x20c)](){const _0x73cbd=_0x524650;return Promise[_0x73cbd(0x1fd)]({'error':void 0x0,'fileMetaId':''});}[_0x524650(0x134)](){const _0x15d4cc=_0x524650;return Promise[_0x15d4cc(0x1fd)]({'error':void 0x0,'latestReqID':0x0});}};export{fe as ClientSnapshotServerService,le as ExchangeBaseExportMode,ce as ExchangeBaseFormulaPolicy,se as ExchangeBaseImportMode,J as ExchangeDocType,oe as ExchangeFormat,Z as IExchangeService,q as ImportOutputType,$ as UniverExchangeClientPlugin,de as transformSheetBlockMetaToString,ue as transformWorkbookSnapshotMetaToString};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x22906b=_0x499d;function _0x499d(_0x5124db,_0x223abe){_0x5124db=_0x5124db-0x1e5;var _0x3e5454=_0x3e54();var _0x499de1=_0x3e5454[_0x5124db];return _0x499de1;}(function(_0x3929ac,_0x548fce){var _0x2ab984=_0x499d,_0x195086=_0x3929ac();while(!![]){try{var _0x49be0c=parseInt(_0x2ab984(0x1e9))/0x1+-parseInt(_0x2ab984(0x1e8))/0x2*(-parseInt(_0x2ab984(0x1eb))/0x3)+parseInt(_0x2ab984(0x1f2))/0x4*(-parseInt(_0x2ab984(0x1ea))/0x5)+parseInt(_0x2ab984(0x1ec))/0x6+parseInt(_0x2ab984(0x1e6))/0x7*(-parseInt(_0x2ab984(0x1f0))/0x8)+parseInt(_0x2ab984(0x1ee))/0x9+-parseInt(_0x2ab984(0x1ed))/0xa*(parseInt(_0x2ab984(0x1e7))/0xb);if(_0x49be0c===_0x548fce)break;else _0x195086['push'](_0x195086['shift']());}catch(_0x1a6632){_0x195086['push'](_0x195086['shift']());}}}(_0x3e54,0xc3fae));import{IExchangeService as _0x1559fd}from'@univerjs-pro/exchange-client';import{FUniver as _0x5b9cd6}from'@univerjs/core/facade';var n=class extends _0x5b9cd6{['downloadFile'](_0x259205,_0x6d6686,_0x572c18){var _0xb29d10=_0x499d;this[_0xb29d10(0x1e5)]['get'](_0x1559fd)[_0xb29d10(0x1f1)](_0x259205,_0x6d6686,_0x572c18);}};_0x5b9cd6[_0x22906b(0x1ef)](n);export{};function _0x3e54(){var _0x509a5d=['7ORWkXL','4373985BwOtpg','2787028KmOHPj','27977IvTzdq','3340vSWgtk','3uMLUnP','1381938JqUZoW','10SAHzCO','10321272AFsJyy','extend','5021192nBVmrI','downloadFile','5812LZwshq','_injector'];_0x3e54=function(){return _0x509a5d;};return _0x3e54();}
1
+ var _0x53cb70=_0x55da;(function(_0x1a997a,_0x454b61){var _0x5bc8bc=_0x55da,_0x3d7e9b=_0x1a997a();while(!![]){try{var _0x1e7481=parseInt(_0x5bc8bc(0x140))/0x1+parseInt(_0x5bc8bc(0x141))/0x2*(parseInt(_0x5bc8bc(0x13e))/0x3)+-parseInt(_0x5bc8bc(0x13b))/0x4*(-parseInt(_0x5bc8bc(0x136))/0x5)+-parseInt(_0x5bc8bc(0x142))/0x6+parseInt(_0x5bc8bc(0x13a))/0x7+parseInt(_0x5bc8bc(0x137))/0x8+-parseInt(_0x5bc8bc(0x13d))/0x9;if(_0x1e7481===_0x454b61)break;else _0x3d7e9b['push'](_0x3d7e9b['shift']());}catch(_0x5b1368){_0x3d7e9b['push'](_0x3d7e9b['shift']());}}}(_0x13d1,0x8340a));import{IExchangeService as _0x27bed5}from'@univerjs-pro/exchange-client';import{FUniver as _0x1dc6e3}from'@univerjs/core/facade';var n=class extends _0x1dc6e3{['downloadFile'](_0x34c4ea,_0x4195b9,_0x1bba1a){var _0x1d86b=_0x55da;this[_0x1d86b(0x13f)][_0x1d86b(0x138)](_0x27bed5)[_0x1d86b(0x13c)](_0x34c4ea,_0x4195b9,_0x1bba1a);}};function _0x55da(_0x4b3765,_0x51025d){_0x4b3765=_0x4b3765-0x136;var _0x13d158=_0x13d1();var _0x55da4c=_0x13d158[_0x4b3765];return _0x55da4c;}_0x1dc6e3[_0x53cb70(0x139)](n);export{};function _0x13d1(){var _0x42eb83=['11928240TNbZPC','3pPIEuz','_injector','763030GFqZUG','618356BkyAYi','1517814atoeMs','14185kBEWlQ','7232360EqlSyK','get','extend','878507wmSrQF','20iXagsp','downloadFile'];_0x13d1=function(){return _0x42eb83;};return _0x13d1();}
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4903ec=_0x1f4c;(function(_0x16f14c,_0xcc02d5){const _0x5c3f79=_0x1f4c,_0x1b2c15=_0x16f14c();while(!![]){try{const _0x50e523=-parseInt(_0x5c3f79(0x118))/0x1*(-parseInt(_0x5c3f79(0xcf))/0x2)+parseInt(_0x5c3f79(0x103))/0x3*(-parseInt(_0x5c3f79(0x1e4))/0x4)+parseInt(_0x5c3f79(0x194))/0x5*(parseInt(_0x5c3f79(0x101))/0x6)+-parseInt(_0x5c3f79(0x203))/0x7*(-parseInt(_0x5c3f79(0x1b0))/0x8)+-parseInt(_0x5c3f79(0x131))/0x9+parseInt(_0x5c3f79(0x182))/0xa*(-parseInt(_0x5c3f79(0x1b4))/0xb)+-parseInt(_0x5c3f79(0xb4))/0xc;if(_0x50e523===_0xcc02d5)break;else _0x1b2c15['push'](_0x1b2c15['shift']());}catch(_0x35a9cc){_0x1b2c15['push'](_0x1b2c15['shift']());}}}(_0x30db,0x4099f));function _0x30db(){const _0x3316ec=['progress$','UNIVER_BASE','join','MODERN','next','unshift','toString','TSV','fetchMissingChangesets','mobile-upload-notification','getConfig','noreferrer','count','_iconManager','error','docx','getFileById','defineProperty','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','export\x20error','_getExportURL','forEach','150OSbqTt','importFileToJson','_signUrl','_injector','_buildHttpErrorMessage',':\x20HTTP\x20','exportFileByUnitId','uploadFileServerUrl','_clearProgress','retryImportFileToUnitId','application/vnd.ms-excel','univer-ml-1\x20univer-truncate\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-gray-0','_httpService','isArray','saveSnapshot','_upload','setTaskInterrupted','univer-animate-spin','345UygXRB','HttpImport','pending','univer-truncate','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-1.5\x20univer-pr-2','/universer-api/file/{fileID}/sign-url','_localeService','fileID','toLowerCase','univer-flex\x20univer-justify-end\x20univer-gap-2','exchange-client.networkError','_emitProgress','style','unitID','resolve','call','CONNECTOR_DATA_TOO_LARGE','downloadFile','sheets','_config','subscribe','interruptImportTask','blockID','show','catch','exchange-client.uploading','ranges','files','8072yrbWYW','univer-grid\x20univer-gap-4','_showUploadMessage','?size=','80575mXsCjj','importFileToUnitId','UNIVER_EXCHANGE_CLIENT_PLUGIN','univer-text-sm\x20univer-text-gray-500','entries','_importTaskId','hide','univer-w-full\x20!univer-min-w-0','UNIVER_BOARD','aborted','_registerComponents','exchange-client.confirm','_refreshUnit','_blank','data','getTextFromUrl','1.0.4','title','traditional','_getLinkByUnitId','univer-text-sm\x20univer-text-gray-700\x20dark:!univer-text-gray-200','importer','No\x20unit\x20of\x20type\x20','file.json','disposeWithMe','outputType','UNIVER_PROJECT','univer-m-0\x20univer-grid\x20univer-list-none\x20univer-gap-2\x20univer-p-0','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-50\x20univer-px-3\x20univer-py-2\x20univer-text-gray-900\x20univer-no-underline\x20dark:!univer-bg-gray-800\x20dark:!univer-text-gray-0','GET','univer-pro.exchange-client.upload-notification.service','Failed\x20to\x20get\x20taskID\x20from\x20import\x20response','File\x20request\x20completed\x20without\x20a\x20response.','_progress$','upload\x20request\x20failed:\x20failed\x20to\x20read\x20source\x20file\x20from\x20url','multiple','convert-then-values','_list$','UNIVER_SHEET','href','auto','headers','createElement','Failed\x20to\x20get\x20fileID\x20from\x20task','map','_requestState$','none','Failed\x20to\x20parse\x20json','216ZeMLvv','\x20-\x20','/universer-api/exchange/{type}/export','exchange-client.unknownMistake','_state$','has','floor','onReady','sign\x20url\x20error','application/vnd.openxmlformats-officedocument.presentationml.presentation','Response','pluginName','_sheetBlockCache','UNDEFINED','fail','parse','univer-h-1.5\x20univer-rounded-lg\x20univer-bg-primary-600\x20univer-transition-[width]\x20univer-duration-500','status','statusText','register','application/msword','link','_getSignURL','stringify','_registerUIParts','createUnit','string','getTask','current','FAIL','exchange-client.uploadSuccess','399nucKdN','CSV','span','_extractErrorDetail','UNIVER_SLIDE','accept','exchange-client.cancel','set','&flate=','type','tables','Success','primary','univer-w-10','univer-mb-3\x20univer-py-0\x20univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-gray-0','Failed\x20to\x20get\x20jsonID\x20from\x20task','pdf','XLSX','_getTaskURL','_taskInterrupted','_buildProtocolErrorMessage','univer-m-0\x20univer-flex\x20univer-list-none\x20univer-flex-col\x20univer-gap-2\x20univer-p-0','updateState','location','append','PDF','univer-h-full\x20univer-rounded-lg\x20univer-bg-primary-600\x20univer-transition-[width]\x20univer-duration-500','body','file','UNIVER_PDF','getDeserializedSheetBlock','exchange-client.downloading','tsv','abort','function','univer-flex\x20univer-w-[calc(100%-48px)]\x20univer-items-center','split','unsubscribe','div','header','univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-gray-0','packageName','univer-mt-5\x20univer-max-h-72\x20univer-overflow-y-auto\x20univer-overflow-x-hidden','Warning','_uiPartsService','99684KfQGog','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-gray-0\x20univer-px-3\x20univer-pb-4\x20univer-pt-5\x20univer-shadow-md','upload\x20request\x20failed','icon','encode','{fileID}','version','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm','interrupt','maxTimeoutTime','application/octet-stream','pptx','list$','_totalUploadTaskCount','display','univer-mt-3\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-2\x20univer-pr-1','signUrl','univer-flex\x20univer-flex-col\x20univer-gap-4','registerComponent','signUrlServerUrl','message','input','saveSheetBlock','setConfig','Get\x20outputType\x20error','UNIVER_DOC','url','8SMRutZ','\x20is\x20currently\x20active.','export','_export','import','univer-h-1.5\x20univer-w-full\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-bg-gray-200','_getUploadFileURL','exchange-client.config','univer-text-red-500','_addTotalCount','getOwnPropertyDescriptor','dispose','AUTO','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','text/tab-separated-values','toUpperCase','complete','replace','Failed\x20to\x20get\x20unitID\x20from\x20task','_lastUnitImportContext','download','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-gray-0\x20dark:hover:!univer-bg-gray-600','exchange-client.uploadAgain','univer-sticky\x20univer-bottom-0\x20univer-bg-gray-0\x20univer-py-3\x20dark:!univer-bg-gray-900','_doneUploadTaskCount','_componentManager','DOCX','{taskID}','CONVERT_THEN_VALUES','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','button','getResourcesRequest','_uploadTaskNotDone','{type}','_showNetworkError','_visible$','prototype','appendChild','univer-fixed\x20univer-bottom-16\x20univer-left-3\x20univer-right-3\x20univer-z-[1000]\x20univer-box-border\x20univer-grid\x20univer-max-h-[50vh]\x20univer-gap-3\x20univer-overflow-y-auto\x20univer-rounded-xl\x20univer-bg-gray-0\x20univer-p-4\x20univer-shadow-lg\x20dark:!univer-bg-gray-900','univer-text-blue-500','code','&source=','getTaskServerUrl','addEventListener','/universer-api/exchange/task/{taskID}','Error\x20getting\x20file\x20name\x20from\x20URL:','small','Info','trim','pathname','38928NBmyXT','focusUnit','24639BsgcwM','univer-flex\x20univer-flex-col\x20univer-gap-5\x20univer-p-1','RANGES','FileId','success','constructor','_requestService','JSON','values','HYBRID','univer-grid\x20univer-gap-3','post','univer-pro.exchange-client.exchange.service','originalMeta','buffer','upload\x20failed:\x20FileId\x20is\x20empty','xls','_exchangeService','_registerIcons','filter','get','92604KgjfNI','UNIT','onStarting','_completeProgress','default','univer-flex\x20univer-h-5\x20univer-text-xl','change','decorate','univer-text-green-500','length','iterator','_getDownloadEndpointURL','univer-flex\x20univer-size-5\x20univer-shrink-0\x20univer-items-center','_messageService','Error','_configService','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','match','clearTaskInterrupted','_list','Failed\x20to\x20get\x20text\x20from\x20url','UNRECOGNIZED','exchange-client.wait','exchange-client.tooLarge','exportFile','443790JTfAjo','import\x20error','symbol','getSheetBlock','origin','application/pdf','INTERNAL_ERROR','searchParams','text','univer-flex\x20univer-size-6\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-text-xl','blob','_exportBySnapshot','univer-grid\x20univer-gap-2\x20univer-rounded-xl\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-bg-gray-800','univer-w-48','object','copyFileMeta','file.','createObjectURL','asObservable','state$','csv','univer-ml-1.5\x20univer-font-semibold\x20univer-text-gray-900\x20dark:!univer-text-gray-0','TRADITIONAL','xlsx','_showDownloadMessage','_importFileToUnitId','Failed\x20to\x20get\x20file\x20from\x20url','unit','content-disposition','Content-Type','requestState$','visible$','hybrid','PPTX','_univerInstanceService','jsonID','add','_uploadNotificationService','_isSelectingUnitImportFile','upload\x20failed:\x20missing\x20FileId\x20in\x20response','pop','done','application/vnd.openxmlformats-officedocument.wordprocessingml.document','univer-mt-5\x20univer-flex\x20univer-flex-col','_import','exchange-client.interrupt','CONTENT','taskID','keys','upload','univer-flex\x20univer-size-6\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-text-2xl','pushLink','getUnitOnRev','_addDoneTask','decode','univer-grid\x20univer-gap-2','stream','importServerUrl','name'];_0x30db=function(){return _0x3316ec;};return _0x30db();}import{UniverLicensePlugin as _0x56b9c8}from'@univerjs-pro/license';import{DependentOn as _0x1dbe2a,Disposable as _0x332c69,IConfigService as _0x1f74df,ILogService as _0x3bb871,IUniverInstanceService as _0x45c5cd,Inject as _0x2f697a,Injector as _0x3ac7ad,LocaleService as _0xba597a,Plugin as _0x256c29,UniverInstanceType as _0x2cfd86,createIdentifier as _0x54d699,merge as _0x1460d9,registerDependencies as _0x2718c1,resolveWithBasePath as _0x2a8fd0,toDisposable as _0x5e5517,touchDependencies as _0x5ada79}from'@univerjs/core';import{HTTPEventType as _0x1fbf08,HTTPResponseError as _0x17fb66,HTTPService as _0xb3a54c,UniverNetworkPlugin as _0xef202d}from'@univerjs/network';import{BuiltInUIPart as _0x402cca,ComponentManager as _0x4dba84,IMessageService as _0x1fc736,IUIPartsService as _0xa08f42,IconManager as _0x2a3388,UniverMobileUIPlugin as _0x37d249,connectInjector as _0x2f1d93,useDependency as _0x19a164,useObservable as _0x4b9619}from'@univerjs/ui';import{ClockIcon as _0x1a031f,CloseIcon as _0x506d7a,DirectExportIcon as _0x2a5e1e,DocsMultiIcon as _0x182bfa,ErrorIcon as _0x2ece5e,ExportIcon as _0x19c606,FolderIcon as _0x5801db,LoadingMultiIcon as _0x49221f,ShareRangeIcon as _0x55603c,SheetsMultiIcon as _0x16d2ee,SlidesMultiIcon as _0x237d9d,SuccessIcon as _0x2b98bc}from'@univerjs/icons';function _0x1f4c(_0x7e7ee7,_0x2a4fdb){_0x7e7ee7=_0x7e7ee7-0xb3;const _0x30db5c=_0x30db();let _0x1f4ca2=_0x30db5c[_0x7e7ee7];return _0x1f4ca2;}import{Button as _0x3a173d,MessageType as _0x3bebf0,MobileActionRowGroup as _0x267a35,MobileSelect as _0x4321de,Radio as _0x42fc16,Select as _0x34c44a,Tooltip as _0xa440b5,clsx as _0x5bef70,scrollbarClassName as _0x2fea5c}from'@univerjs/design';import{useRef as _0x4125a2,useState as _0x1aedcb}from'react';import{ErrorCode as _0x6f2d17,FileSource as _0x546636}from'@univerjs/protocol';import{jsx as _0x4fb351,jsxs as _0x2ca7b1}from'react/jsx-runtime';import{BehaviorSubject as _0x47de39,Subject as _0x5594f5}from'rxjs';import{ISnapshotServerService as _0x936458,SnapshotService as _0x24a705,b64EncodeUnicode as _0x51219f,textDecoder as _0x41a199,textEncoder as _0x14b9f5}from'@univerjs-pro/collaboration';import{deflateSync as _0x4f71f7}from'fflate';var D='@univerjs-pro/exchange-client',O=_0x4903ec(0x1c4);const k=_0x4903ec(0xd6),A={},Re=_0x4903ec(0x15b),ze=_0x4903ec(0x1f8),j=_0x4903ec(0x18c),M=_0x4903ec(0xdc),N='text/csv',P=_0x4903ec(0xdd),Be='application/vnd.ms-powerpoint',Ve=_0x4903ec(0x1ed),He=_0x4903ec(0x136),Ue={[_0x2cfd86['UNIVER_UNKNOWN']]:[''],[_0x2cfd86[_0x4903ec(0xcd)]]:[ze,Re],[_0x2cfd86[_0x4903ec(0x1da)]]:[j,M,N,P],[_0x2cfd86[_0x4903ec(0x207)]]:[Be,Ve],[_0x2cfd86[_0x4903ec(0x220)]]:[He],[_0x2cfd86[_0x4903ec(0x16d)]]:[j,M,N,P],[_0x2cfd86[_0x4903ec(0x1bc)]]:[''],[_0x2cfd86[_0x4903ec(0x1ce)]]:[''],[_0x2cfd86[_0x4903ec(0x12d)]]:['']},We={[ze]:'doc',[Re]:_0x4903ec(0x17b),[j]:_0x4903ec(0x113),[M]:_0x4903ec(0x148),[N]:_0x4903ec(0x145),[P]:_0x4903ec(0x223),[Be]:'ppt',[Ve]:_0x4903ec(0xbf),[He]:'pdf'},Ge=Object['fromEntries'](Object[_0x4903ec(0x1b8)](Ue)[_0x4903ec(0x1e0)](([_0x398dac,_0x464299])=>[_0x398dac,_0x464299[_0x4903ec(0x1e0)](_0x518563=>We[_0x518563])[_0x4903ec(0x116)](Boolean)]));function Ke(_0x353032,_0x2a4a5c,_0x4f97dd){const _0xc9cd65=_0x4903ec;let _0x5c3646=document[_0xc9cd65(0x1de)]('a');_0x5c3646[_0xc9cd65(0x1db)]=_0x353032,_0x5c3646[_0xc9cd65(0x1a0)][_0xc9cd65(0xc2)]=_0xc9cd65(0x1e2),_0x5c3646[_0xc9cd65(0xe3)]=_0x2a4a5c+'.'+_0x4f97dd,document[_0xc9cd65(0x21e)][_0xc9cd65(0xf4)](_0x5c3646),_0x5c3646['click'](),document[_0xc9cd65(0x21e)]['removeChild'](_0x5c3646);}function qe(_0x44b26c,_0x584f33){const _0xec1ea1=_0x4903ec;var _0x1655b9;let _0xf46a51=(_0x1655b9=_0x44b26c[_0xec1ea1(0x16b)][_0xec1ea1(0x227)]('.')[_0xec1ea1(0x159)]())==null?void 0x0:_0x1655b9[_0xec1ea1(0x19c)]();return!!(_0xf46a51&&(Ge[_0x584f33]??[])['includes'](_0xf46a51));}function F(_0x11e5b1,_0x3674f3=!0x1){const _0x136156=_0x4903ec;let _0x526ff5=_0x11e5b1['flatMap'](_0x16710e=>Ge[_0x16710e]??[])[_0x136156(0x1e0)](_0x73ebc1=>'.'+_0x73ebc1)[_0x136156(0x16e)](',');return new Promise(_0x1d6e68=>{const _0x3b9c85=_0x136156;let _0x2bd763=document[_0x3b9c85(0x1de)](_0x3b9c85(0xc9));_0x2bd763['type']=_0x3b9c85(0x21f),_0x2bd763[_0x3b9c85(0x208)]=_0x526ff5,_0x2bd763[_0x3b9c85(0x1d7)]=_0x3674f3;let _0x9993d2=()=>{const _0x2857bc=_0x3b9c85;var _0x1a12c7;return _0x1d6e68((_0x1a12c7=_0x2bd763[_0x2857bc(0x1af)])!=null&&_0x1a12c7[_0x2857bc(0x121)]?_0x2bd763[_0x2857bc(0x1af)]:null);};_0x2bd763[_0x3b9c85(0xfa)](_0x3b9c85(0x11e),_0x9993d2,{'once':!0x0}),_0x2bd763[_0x3b9c85(0xfa)]('cancel',_0x9993d2,{'once':!0x0}),_0x2bd763['click']();});}async function Je(_0x52dfce,_0x19fd4c){const _0x2ed50f=_0x4903ec;try{return await Ye(_0x52dfce,_0x19fd4c);}catch(_0xddcc6c){console[_0x2ed50f(0x17a)]('Error\x20fetching\x20file\x20from\x20URL:',_0xddcc6c);return;}}async function Ye(_0x16ce86,_0x2e79bc,_0x4d46f8){const _0x1631d5=_0x4903ec;var _0x41245a,_0x4cb147;let _0x112ff0=_0x4d46f8?await Xe(_0x16ce86,_0x2e79bc,_0x4d46f8):await _0x2e79bc[_0x1631d5(0x117)](_0x16ce86,{'responseType':_0x1631d5(0x13b)}),_0x1a38d7=_0x112ff0[_0x1631d5(0x21e)],_0x4f6502=((_0x41245a=_0x112ff0['headers'][_0x1631d5(0x117)](_0x1631d5(0x14e)))==null?void 0x0:_0x41245a[_0x1631d5(0x16e)](',\x20'))??_0x1631d5(0xbe),_0x37b51a=_0x1631d5(0x141)+(We[_0x4f6502]||_0x1631d5(0x148)),_0x46e9d4=(_0x4cb147=_0x112ff0[_0x1631d5(0x1dd)]['get'](_0x1631d5(0x14d)))==null?void 0x0:_0x4cb147[_0x1631d5(0x16e)](',\x20');if(_0x46e9d4){let _0x46f050=_0x46e9d4[_0x1631d5(0x129)](/filename=(.+)/);_0x46f050&&_0x46f050[0x1]&&(_0x37b51a=_0x46f050[0x1]);}else _0x37b51a=Ze(_0x16ce86)||_0x37b51a;return new File([_0x1a38d7],_0x37b51a,{'type':_0x4f6502});}function Xe(_0x5eb0b2,_0x343601,_0x133c7e){return new Promise((_0x5ed696,_0xb0ce41)=>{const _0x2d87c4=_0x1f4c;let _0x582c42=!0x1,_0x18c480,_0x43303c=()=>_0x133c7e['removeEventListener'](_0x2d87c4(0x224),_0x1181b7),_0x1181b7=()=>{const _0x1809a1=_0x2d87c4;if(_0x582c42)return;_0x582c42=!0x0,_0x18c480==null||_0x18c480[_0x1809a1(0x228)](),_0x43303c();let _0x406378=Error('File\x20request\x20aborted.');_0x406378[_0x1809a1(0x16b)]='AbortError',_0xb0ce41(_0x406378);};if(_0x133c7e['addEventListener']('abort',_0x1181b7,{'once':!0x0}),_0x133c7e[_0x2d87c4(0x1bd)]){_0x1181b7();return;}_0x18c480=_0x343601[_0x2d87c4(0x169)](_0x2d87c4(0x1d1),_0x5eb0b2,{'responseType':_0x2d87c4(0x13b)})[_0x2d87c4(0x1a8)]({'next'(_0x312a9d){const _0x2030d8=_0x2d87c4;_0x582c42||_0x312a9d[_0x2030d8(0x20c)]!==_0x1fbf08[_0x2030d8(0x1ee)]||(_0x582c42=!0x0,_0x43303c(),_0x18c480==null||_0x18c480[_0x2030d8(0x228)](),_0x5ed696(_0x312a9d));},'error'(_0xd724ab){_0x582c42||(_0x582c42=!0x0,_0x43303c(),_0xb0ce41(_0xd724ab));},'complete'(){const _0x28811e=_0x2d87c4;_0x582c42||(_0x582c42=!0x0,_0x43303c(),_0xb0ce41(Error(_0x28811e(0x1d4))));}}),_0x582c42&&_0x18c480[_0x2d87c4(0x228)]();});}function Ze(_0x39b4f7){const _0x2a0676=_0x4903ec;try{return new URL(_0x39b4f7)[_0x2a0676(0x100)][_0x2a0676(0x227)]('/')[_0x2a0676(0x159)]();}catch(_0x38a2cd){console[_0x2a0676(0x17a)](_0x2a0676(0xfc),_0x38a2cd);return;}}function Qe(_0x2fa5e0){const _0x191031=_0x4903ec;let _0x4ad4bd=new Blob([_0x2fa5e0[_0x191031(0x111)]],{'type':'application/json'});return new File([_0x4ad4bd],_0x191031(0x1cb));}function $e(_0x3553cd,_0x1988f9){const _0x381955=_0x4903ec;return _0x3553cd[_0x381955(0xe0)](_0x381955(0xf0),_0x1988f9);}function et(_0x1544cc,_0x4e166f){const _0x101fd2=_0x4903ec;return _0x1544cc[_0x101fd2(0xe0)](_0x101fd2(0xea),_0x4e166f);}function tt(_0x5b971b,_0x3bab81){const _0x204da2=_0x4903ec;return _0x5b971b['replace'](_0x204da2(0xb9),_0x3bab81);}function I(_0x1e9721){'@babel/helpers - typeof';const _0x45743c=_0x4903ec;return I=typeof Symbol==_0x45743c(0x225)&&typeof Symbol[_0x45743c(0x122)]==_0x45743c(0x133)?function(_0x391986){return typeof _0x391986;}:function(_0x345581){const _0x30c340=_0x45743c;return _0x345581&&typeof Symbol==_0x30c340(0x225)&&_0x345581[_0x30c340(0x108)]===Symbol&&_0x345581!==Symbol[_0x30c340(0xf3)]?'symbol':typeof _0x345581;},I(_0x1e9721);}function nt(_0x38f6cd,_0x4881e3){const _0x1eda14=_0x4903ec;if(I(_0x38f6cd)!='object'||!_0x38f6cd)return _0x38f6cd;var _0xb101f5=_0x38f6cd[Symbol['toPrimitive']];if(_0xb101f5!==void 0x0){var _0xc9e726=_0xb101f5[_0x1eda14(0x1a3)](_0x38f6cd,_0x4881e3||_0x1eda14(0x11c));if(I(_0xc9e726)!=_0x1eda14(0x13f))return _0xc9e726;throw TypeError(_0x1eda14(0x17e));}return(_0x4881e3===_0x1eda14(0x1fe)?String:Number)(_0x38f6cd);}function rt(_0x255f9b){const _0x5d16f6=_0x4903ec;var _0x1117eb=nt(_0x255f9b,_0x5d16f6(0x1fe));return I(_0x1117eb)==_0x5d16f6(0x133)?_0x1117eb:_0x1117eb+'';}function L(_0x491104,_0x537db,_0x4b991a){const _0x20eec7=_0x4903ec;return(_0x537db=rt(_0x537db))in _0x491104?Object[_0x20eec7(0x17d)](_0x491104,_0x537db,{'value':_0x4b991a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x491104[_0x537db]=_0x4b991a,_0x491104;}function R(_0x3e4d70,_0x33d08f){return function(_0x373cb4,_0x58648a){_0x33d08f(_0x373cb4,_0x58648a,_0x3e4d70);};}function z(_0x2c8972,_0x381424,_0x25f6e9,_0x98be9f){const _0x344730=_0x4903ec;var _0x1cf846=arguments[_0x344730(0x121)],_0x1551a2=_0x1cf846<0x3?_0x381424:_0x98be9f===null?_0x98be9f=Object[_0x344730(0xd9)](_0x381424,_0x25f6e9):_0x98be9f,_0x15fe58;if(typeof Reflect==_0x344730(0x13f)&&typeof Reflect[_0x344730(0x11f)]=='function')_0x1551a2=Reflect[_0x344730(0x11f)](_0x2c8972,_0x381424,_0x25f6e9,_0x98be9f);else{for(var _0xa51dc7=_0x2c8972['length']-0x1;_0xa51dc7>=0x0;_0xa51dc7--)(_0x15fe58=_0x2c8972[_0xa51dc7])&&(_0x1551a2=(_0x1cf846<0x3?_0x15fe58(_0x1551a2):_0x1cf846>0x3?_0x15fe58(_0x381424,_0x25f6e9,_0x1551a2):_0x15fe58(_0x381424,_0x25f6e9))||_0x1551a2);}return _0x1cf846>0x3&&_0x1551a2&&Object[_0x344730(0x17d)](_0x381424,_0x25f6e9,_0x1551a2),_0x1551a2;}let it=function(_0x1405ec){const _0x12296a=_0x4903ec;return _0x1405ec[_0x1405ec[_0x12296a(0x1f1)]=0x0]=_0x12296a(0x1f1),_0x1405ec[_0x1405ec[_0x12296a(0x119)]=0x1]='UNIT',_0x1405ec[_0x1405ec[_0x12296a(0x10a)]=0x2]=_0x12296a(0x10a),_0x1405ec[_0x1405ec[_0x12296a(0x12d)]=-0x1]=_0x12296a(0x12d),_0x1405ec;}({}),at=function(_0x1db3f7){const _0x1e455f=_0x4903ec;return _0x1db3f7[_0x1e455f(0x214)]=_0x1e455f(0x148),_0x1db3f7[_0x1e455f(0x204)]=_0x1e455f(0x145),_0x1db3f7[_0x1e455f(0x173)]=_0x1e455f(0x223),_0x1db3f7[_0x1e455f(0xe9)]=_0x1e455f(0x17b),_0x1db3f7[_0x1e455f(0x152)]=_0x1e455f(0xbf),_0x1db3f7[_0x1e455f(0x21c)]=_0x1e455f(0x213),_0x1db3f7;}({}),ot=function(_0x16f15f){const _0x4a7c40=_0x4903ec;return _0x16f15f[_0x4a7c40(0x16f)]='modern',_0x16f15f[_0x4a7c40(0x147)]=_0x4a7c40(0x1c6),_0x16f15f;}({}),st=function(_0x5a3b45){const _0x5a7339=_0x4903ec;return _0x5a3b45[_0x5a7339(0xdb)]=_0x5a7339(0x1dc),_0x5a3b45['TABLES']='tables',_0x5a3b45['SHEETS']=_0x5a7339(0x1a6),_0x5a3b45[_0x5a7339(0x10c)]=_0x5a7339(0x151),_0x5a3b45;}({}),ct=function(_0x22501d){const _0x706efa=_0x4903ec;return _0x22501d[_0x706efa(0xeb)]=_0x706efa(0x1d8),_0x22501d['VALUES']=_0x706efa(0x10b),_0x22501d['TEXT']='text',_0x22501d[_0x706efa(0x201)]=_0x706efa(0x1f2),_0x22501d;}({}),lt=function(_0x11e193){const _0xf73ca3=_0x4903ec;return _0x11e193['TABLES']=_0xf73ca3(0x20d),_0x11e193[_0xf73ca3(0x105)]=_0xf73ca3(0x1ae),_0x11e193;}({});const B=_0x54d699('univer-pro.exchange-client.request.service');let V=class{constructor(_0x52a1f3,_0x5aaaed){const _0x3edd93=_0x4903ec;this[_0x3edd93(0x127)]=_0x52a1f3,this['_httpService']=_0x5aaaed,L(this,_0x3edd93(0x216),new Set());}[_0x4903ec(0xda)](){}[_0x4903ec(0x192)](_0x33505f){const _0x1e53fb=_0x4903ec;this[_0x1e53fb(0x216)][_0x1e53fb(0x155)](_0x33505f);}[_0x4903ec(0x12a)](){const _0x562f3d=_0x4903ec;this[_0x562f3d(0x216)]['clear']();}async[_0x4903ec(0x162)](_0x2ecb84,_0x1ce4fb=0x0,_0x59dd14=!0x1){const _0x3994c9=_0x4903ec;if(typeof _0x2ecb84=='string'){let _0x1e0062=await Je(_0x2ecb84,this[_0x3994c9(0x18e)]);if(!_0x1e0062)throw Error(_0x3994c9(0x1d6));_0x2ecb84=_0x1e0062;}_0x1ce4fb||=_0x2ecb84['size'];let _0x1a5119=new FormData();_0x1a5119[_0x3994c9(0x21b)](_0x3994c9(0x21f),_0x2ecb84);try{let _0xe4780e=this['_getUploadFileURL']()+_0x3994c9(0x1b3)+_0x1ce4fb+_0x3994c9(0xf8)+_0x546636[_0x3994c9(0x195)]+_0x3994c9(0x20b)+_0x59dd14,_0x4a42f9={'body':_0x1a5119},_0x1f3c9a=(await this[_0x3994c9(0x18e)][_0x3994c9(0x10e)](_0xe4780e,_0x4a42f9))[_0x3994c9(0x21e)];if(_0x1f3c9a['error']&&_0x1f3c9a[_0x3994c9(0x17a)]['code']!==_0x6f2d17['OK'])throw Error(this[_0x3994c9(0x217)](_0x3994c9(0xb6),_0x1f3c9a[_0x3994c9(0x17a)]));return _0x1f3c9a;}catch(_0x5abf8b){throw _0x5abf8b instanceof Error?_0x5abf8b:Error(this['_buildHttpErrorMessage'](_0x3994c9(0xb6),_0x5abf8b));}}async['import'](_0x7cac8c){const _0x3f494f=_0x4903ec;let {type:_0x106fdd,..._0x46cd82}=_0x7cac8c;try{let _0x35b03d=$e(this['_getImportURL'](),''+_0x106fdd),_0x56898b={'body':_0x46cd82},_0xe4a87e=(await this[_0x3f494f(0x18e)]['post'](_0x35b03d,_0x56898b))[_0x3f494f(0x21e)];return _0xe4a87e[_0x3f494f(0x17a)]&&_0xe4a87e[_0x3f494f(0x17a)][_0x3f494f(0xf7)]!==_0x6f2d17['OK']?void 0x0:_0xe4a87e;}catch{return;}}async[_0x4903ec(0xd1)](_0x6e0bad){const _0x4557dc=_0x4903ec;let {type:_0x1d5710}=_0x6e0bad;try{let _0x237379=$e(this['_getExportURL'](),''+_0x1d5710),_0x58a675={'body':_0x6e0bad},_0x3ae242=(await this[_0x4557dc(0x18e)][_0x4557dc(0x10e)](_0x237379,_0x58a675))['body'];return _0x3ae242[_0x4557dc(0x17a)]&&_0x3ae242[_0x4557dc(0x17a)][_0x4557dc(0xf7)]!==_0x6f2d17['OK']?void 0x0:_0x3ae242;}catch{return;}}async[_0x4903ec(0x1ff)](_0x19cba3){return new Promise((_0x443619,_0x50e9d4)=>{const _0x6b0389=_0x1f4c;try{let _0x4978f8=0x0,_0x3001c8=et(this[_0x6b0389(0x215)](),''+_0x19cba3),_0x4506f3=this['_getMaxPollingTime'](),_0x585d00=async()=>{const _0x163d53=_0x6b0389;if(this[_0x163d53(0x216)]['has'](_0x19cba3))return;let _0x2e23a0=(await this[_0x163d53(0x18e)][_0x163d53(0x117)](_0x3001c8))[_0x163d53(0x21e)];if(_0x2e23a0['error']&&_0x2e23a0['error'][_0x163d53(0xf7)]===_0x6f2d17['OK']){if(_0x2e23a0['status']===_0x163d53(0x15a))_0x443619(_0x2e23a0);else{if(_0x2e23a0[_0x163d53(0x1f5)]===_0x163d53(0x196)){let _0x3eb7a6=0x3e8;if(_0x4978f8>=_0x4506f3){_0x50e9d4(_0x2e23a0);return;}_0x4978f8>=0x7530&&(_0x3eb7a6=0x1388),_0x4978f8+=_0x3eb7a6,setTimeout(_0x585d00,_0x3eb7a6);}else _0x50e9d4(_0x2e23a0);}}else _0x50e9d4(_0x2e23a0);};_0x585d00();}catch(_0x3387aa){_0x50e9d4(_0x3387aa instanceof Error?_0x3387aa:Error(String(_0x3387aa)));}});}async[_0x4903ec(0xc4)](_0x3c2776){const _0xfc9835=_0x4903ec;try{let _0x589e89=tt(this[_0xfc9835(0x1fa)](),''+_0x3c2776);return(await this[_0xfc9835(0x18e)][_0xfc9835(0x117)](_0x589e89))[_0xfc9835(0x21e)];}catch{return;}}async['getTextFromUrl'](_0x213189){const _0x45f521=_0x4903ec;try{return(await this[_0x45f521(0x18e)][_0x45f521(0x117)](_0x213189,{'responseType':'text'}))['body'];}catch{return;}}[_0x4903ec(0x217)](_0x193337,_0xed0b16){let _0x162fc0=this['_extractErrorDetail'](_0xed0b16);return _0x162fc0?_0x193337+':\x20'+_0x162fc0:_0x193337;}[_0x4903ec(0x186)](_0x56dab0,_0x4666e6){const _0x3ba352=_0x4903ec;if(_0x4666e6 instanceof _0x17fb66){let _0x25183d=typeof _0x4666e6[_0x3ba352(0x1f5)]=='number'?''+_0x4666e6[_0x3ba352(0x1f5)]+(_0x4666e6[_0x3ba352(0x1f6)]?'\x20'+_0x4666e6[_0x3ba352(0x1f6)]:''):void 0x0,_0x3a0515=this[_0x3ba352(0x206)](_0x4666e6[_0x3ba352(0x17a)]);return _0x25183d&&_0x3a0515?_0x56dab0+':\x20HTTP\x20'+_0x25183d+_0x3ba352(0x1e5)+_0x3a0515:_0x25183d?_0x56dab0+_0x3ba352(0x187)+_0x25183d:_0x3a0515?_0x56dab0+':\x20'+_0x3a0515:_0x56dab0;}let _0x89c031=this[_0x3ba352(0x206)](_0x4666e6);return _0x89c031?_0x56dab0+':\x20'+_0x89c031:_0x56dab0;}[_0x4903ec(0x206)](_0x109484){const _0x3a30c9=_0x4903ec;if(typeof _0x109484==_0x3a30c9(0x1fe)){let _0x36c014=_0x109484[_0x3a30c9(0xff)]();return _0x36c014['length']>0x0?_0x36c014:void 0x0;}if(_0x109484 instanceof Error)return this[_0x3a30c9(0x206)](_0x109484[_0x3a30c9(0xc8)]);if(!_0x109484||typeof _0x109484!=_0x3a30c9(0x13f)||Array[_0x3a30c9(0x18f)](_0x109484))return;let _0x393da6=_0x109484,_0x22c6d9=this['_extractErrorDetail'](_0x393da6[_0x3a30c9(0xc8)]);if(_0x22c6d9)return _0x22c6d9;if(_0x393da6[_0x3a30c9(0x17a)]&&typeof _0x393da6['error']=='object'&&!Array[_0x3a30c9(0x18f)](_0x393da6[_0x3a30c9(0x17a)])){let _0x4ca938=this['_extractErrorDetail'](_0x393da6['error']);if(_0x4ca938)return _0x4ca938;}}[_0x4903ec(0xd5)](){const _0x249a8b=_0x4903ec;let _0x5091ae=this['_configService'][_0x249a8b(0x176)](k);return(_0x5091ae==null?void 0x0:_0x5091ae[_0x249a8b(0x189)])??'/universer-api/stream/file/upload';}['_getImportURL'](){const _0x1a9557=_0x4903ec;let _0x18b827=this[_0x1a9557(0x127)]['getConfig'](k);return(_0x18b827==null?void 0x0:_0x18b827[_0x1a9557(0x16a)])??'/universer-api/exchange/{type}/import';}[_0x4903ec(0x180)](){const _0x5b333f=_0x4903ec;let _0x1cb62c=this[_0x5b333f(0x127)]['getConfig'](k);return(_0x1cb62c==null?void 0x0:_0x1cb62c['exportServerUrl'])??_0x5b333f(0x1e6);}[_0x4903ec(0x215)](){const _0x51317e=_0x4903ec;let _0x389ce6=this[_0x51317e(0x127)]['getConfig'](k);return(_0x389ce6==null?void 0x0:_0x389ce6[_0x51317e(0xf9)])??_0x51317e(0xfb);}[_0x4903ec(0x1fa)](){const _0x5e9735=_0x4903ec;let _0x4cb819=this[_0x5e9735(0x127)]['getConfig'](k);return(_0x4cb819==null?void 0x0:_0x4cb819[_0x5e9735(0xc7)])??_0x5e9735(0x199);}['_getMaxPollingTime'](){const _0x1b161a=_0x4903ec;let _0x78593a=this[_0x1b161a(0x127)][_0x1b161a(0x176)](k);return(_0x78593a==null?void 0x0:_0x78593a[_0x1b161a(0xbd)])??0x1d4c0;}};V=z([R(0x0,_0x1f74df),R(0x1,_0x2f697a(_0xb3a54c))],V);const H='exchange-client.export-format-dialog';function ut({formats:_0x3c76bb,items:_0x1be8ed,selectedId:_0x3a4a4f,onCancel:_0x41f747,onConfirm:_0x165edb}){const _0x53896f=_0x4903ec;let _0xc1d6a7=_0x19a164(_0xba597a),[_0x3b029c,_0x4d80f1]=_0x1aedcb(_0x3c76bb[0x0]),[_0x2c3fb6,_0x18e1c5]=_0x1aedcb(_0x3a4a4f),[_0x493174,_0x23a71b]=_0x1aedcb(!0x1),_0x4a5c4d=_0x4125a2(!0x1);return _0x2ca7b1(_0x53896f(0x229),{'className':_0x53896f(0x104),'children':[_0x4fb351(_0x53896f(0x229),{'className':_0x53896f(0xc5),'children':_0x3c76bb[_0x53896f(0x1e0)](_0x99ff93=>_0x2ca7b1(_0x53896f(0x229),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x4fb351(_0x42fc16,{'value':_0x99ff93,'checked':_0x3b029c===_0x99ff93,'onChange':_0x1d3adf=>_0x4d80f1(_0x1d3adf),'children':_0x4fb351(_0x53896f(0x205),{'className':_0x53896f(0x210),'children':_0x99ff93[_0x53896f(0xde)]()})}),_0x99ff93!==_0x53896f(0x148)&&_0x4fb351(_0x34c44a,{'className':_0x53896f(0x13e),'value':_0x2c3fb6,'options':_0x1be8ed,'onChange':_0x28b751=>_0x18e1c5(String(_0x28b751))})]},_0x99ff93))}),_0x2ca7b1('div',{'className':_0x53896f(0x19d),'children':[_0x4fb351(_0x3a173d,{'type':_0x53896f(0xed),'variant':_0x53896f(0x11c),'onClick':_0x41f747,'children':_0xc1d6a7['t']('exchange-client.cancel')}),_0x2ca7b1(_0x3a173d,{'type':_0x53896f(0xed),'variant':_0x53896f(0x20f),'aria-busy':_0x493174,'disabled':_0x493174||!_0x3b029c||_0x3b029c!=='xlsx'&&!_0x2c3fb6,'onClick':async()=>{const _0x1f6c7f=_0x53896f;if(!_0x4a5c4d[_0x1f6c7f(0x200)]){_0x4a5c4d[_0x1f6c7f(0x200)]=!0x0,_0x23a71b(!0x0);try{await _0x165edb(_0x3b029c,_0x2c3fb6);}finally{_0x4a5c4d[_0x1f6c7f(0x200)]=!0x1,_0x23a71b(!0x1);}}},'children':[_0x493174&&_0x4fb351(_0x49221f,{'className':'univer-animate-spin'}),_0xc1d6a7['t'](_0x53896f(0x1bf))]})]})]});}function dt({formats:_0x47cae2,items:_0x282d63,selectedId:_0x33326b,onCancel:_0xcd7469,onConfirm:_0x56bd71}){const _0x1525dc=_0x4903ec;let _0x49d137=_0x19a164(_0xba597a),[_0x43ab46,_0x5ed6ce]=_0x1aedcb(_0x47cae2[0x0]),[_0x10a1e0,_0x1d1f31]=_0x1aedcb(_0x33326b),[_0x22065b,_0x3a1a66]=_0x1aedcb(!0x1),_0x468cdd=_0x4125a2(!0x1);async function _0x19ad3a(){const _0x4d7e92=_0x1f4c;if(!_0x468cdd[_0x4d7e92(0x200)]){_0x468cdd[_0x4d7e92(0x200)]=!0x0,_0x3a1a66(!0x0);try{await _0x56bd71(_0x43ab46,_0x10a1e0);}finally{_0x468cdd[_0x4d7e92(0x200)]=!0x1,_0x3a1a66(!0x1);}}}return _0x2ca7b1(_0x1525dc(0x229),{'className':_0x1525dc(0x1b1),'children':[_0x4fb351(_0x1525dc(0x229),{'className':_0x1525dc(0x10d),'children':_0x47cae2[_0x1525dc(0x1e0)](_0x18d312=>_0x2ca7b1(_0x1525dc(0x229),{'className':_0x1525dc(0x13d),'children':[_0x4fb351(_0x42fc16,{'value':_0x18d312,'checked':_0x43ab46===_0x18d312,'onChange':_0x1b3b84=>_0x5ed6ce(_0x1b3b84),'children':_0x18d312[_0x1525dc(0xde)]()}),_0x18d312!==_0x1525dc(0x148)&&_0x43ab46===_0x18d312&&_0x4fb351(_0x4321de,{'className':_0x1525dc(0x1bb),'value':_0x10a1e0,'options':_0x282d63,'onChange':_0x4a6592=>_0x1d1f31(String(_0x4a6592))})]},_0x18d312))}),_0x2ca7b1(_0x267a35,{'className':_0x1525dc(0xe6),'children':[_0x4fb351(_0x3a173d,{'type':_0x1525dc(0xed),'onClick':_0xcd7469,'children':_0x49d137['t'](_0x1525dc(0x209))}),_0x2ca7b1(_0x3a173d,{'type':_0x1525dc(0xed),'variant':_0x1525dc(0x20f),'aria-busy':_0x22065b,'disabled':_0x22065b||!_0x43ab46||_0x43ab46!=='xlsx'&&!_0x10a1e0,'onClick':_0x19ad3a,'children':[_0x22065b&&_0x4fb351(_0x49221f,{'className':_0x1525dc(0x193)}),_0x49d137['t'](_0x1525dc(0x1bf))]})]})]});}let U=class extends _0x332c69{constructor(_0x5ba754,_0x500293){const _0x818e1a=_0x4903ec;super(),this['_iconManager']=_0x5ba754,this[_0x818e1a(0xe8)]=_0x500293,this[_0x818e1a(0x1cc)](this[_0x818e1a(0x179)][_0x818e1a(0x1f7)]({'DirectExportIcon':_0x2a5e1e,'ExportIcon':_0x19c606,'FolderIcon':_0x5801db})),this[_0x818e1a(0x1cc)](this[_0x818e1a(0xe8)][_0x818e1a(0x1f7)](H,dt));}};U=z([R(0x0,_0x2f697a(_0x2a3388)),R(0x1,_0x2f697a(_0x4dba84))],U);const W=_0x54d699(_0x4903ec(0x10f));let G=class extends _0x332c69{constructor(_0x2749dd,_0x58be3b,_0x8f6c06){const _0x57f8e0=_0x4903ec;super(),this[_0x57f8e0(0x127)]=_0x2749dd,this[_0x57f8e0(0x18e)]=_0x58be3b,this[_0x57f8e0(0x109)]=_0x8f6c06,L(this,_0x57f8e0(0x1b9),null),L(this,_0x57f8e0(0x1e1),new _0x5594f5()),L(this,'requestState$',this['_requestState$'][_0x57f8e0(0x143)]());}[_0x4903ec(0xda)](){const _0x23c6c2=_0x4903ec;super['dispose'](),this[_0x23c6c2(0x1e1)]['complete']();}[_0x4903ec(0x1a5)](_0x46b68e,_0x548deb,_0x134968){const _0x36ca0c=_0x4903ec;let _0xc8844f=URL[_0x36ca0c(0x142)](_0x46b68e);Ke(_0xc8844f,_0x548deb,_0x134968),URL['revokeObjectURL'](_0xc8844f);}async[_0x4903ec(0x17c)](_0x14fcfb,_0x33a0a4){const _0x4ba416=_0x4903ec;if(_0x33a0a4!=null&&_0x33a0a4[_0x4ba416(0x1bd)])return;let _0x40470c=await this[_0x4ba416(0x184)](_0x14fcfb);if(!(!_0x40470c||_0x33a0a4!=null&&_0x33a0a4[_0x4ba416(0x1bd)]))return Ye(_0x40470c,this['_httpService'],_0x33a0a4);}async[_0x4903ec(0x1b5)](_0x2a59ce,_0xeeaef5,_0x5ea56b){const _0x1547e6=_0x4903ec;var _0x35df2f,_0x1de8ce;let _0x5d42a6=await this[_0x1547e6(0x191)](_0x2a59ce);if(!_0x5d42a6)return;let _0x57db97=await this[_0x1547e6(0x15d)](_0x5d42a6,0x1,_0xeeaef5,_0x5ea56b);if(!_0x57db97)return;this['_importTaskId']=_0x57db97,this['_requestService'][_0x1547e6(0x12a)]();let _0x4dc10c=await this[_0x1547e6(0x109)]['getTask'](_0x57db97)[_0x1547e6(0x1ac)](_0x3e0444=>{const _0x4069bc=_0x1547e6;var _0x16108b;let _0x5ac0f5=_0x3e0444 instanceof Error?_0x3e0444[_0x4069bc(0xc8)]:(_0x16108b=_0x3e0444[_0x4069bc(0x17a)])==null?void 0x0:_0x16108b[_0x4069bc(0xc8)];this['_requestState$']['next']({'error':{'code':_0x6f2d17[_0x4069bc(0x12d)],'message':_0x5ac0f5||''},'state':0x3});});if(!_0x4dc10c)return;let _0x22249b=(_0x35df2f=_0x4dc10c[_0x1547e6(0xd3)])==null?void 0x0:_0x35df2f[_0x1547e6(0x1cd)],_0x23ff60=((_0x1de8ce=_0x4dc10c['import'])==null?void 0x0:_0x1de8ce[_0x1547e6(0x1a1)])||'';if(_0x22249b!==0x1){this[_0x1547e6(0x1e1)][_0x1547e6(0x170)]({'error':{'code':_0x6f2d17[_0x1547e6(0x12d)],'message':_0x1547e6(0xcc)},'state':0x3});return;}if(_0x23ff60['length']===0x0){this[_0x1547e6(0x1e1)][_0x1547e6(0x170)]({'error':{'code':_0x6f2d17[_0x1547e6(0x12d)],'message':_0x1547e6(0xe1)},'state':0x3});return;}return this[_0x1547e6(0x1e1)][_0x1547e6(0x170)]({'error':_0x4dc10c[_0x1547e6(0x17a)],'state':0x3}),_0x23ff60;}async[_0x4903ec(0x183)](_0x5a4e39,_0x2d402a,_0x1b1363){return this['_importToJson'](_0x5a4e39,_0x2d402a,_0x1b1363);}async[_0x4903ec(0x188)](_0x299a45,_0x16f75c,_0x35ec23,_0x1415d4){const _0x5289b6=_0x4903ec;return this[_0x5289b6(0xd2)](_0x299a45,0x1,_0x16f75c,_0x35ec23,_0x1415d4);}async['exportFileBySnapshot'](_0x351ed2,_0x1b89a8,_0x30ec7e,_0x2f09dd){const _0x2e1feb=_0x4903ec;return this[_0x2e1feb(0x13c)](_0x351ed2,_0x1b89a8,_0x30ec7e,_0x2f09dd);}['interruptImportTask'](){const _0x1c5981=_0x4903ec;this['_importTaskId']&&this[_0x1c5981(0x109)]['setTaskInterrupted'](this[_0x1c5981(0x1b9)]);}async['_importToJson'](_0xacc978,_0x42cdab,_0xf37c66){const _0x1ac129=_0x4903ec;var _0x439a53,_0x7738b5;let _0x2d13a6=await this['_upload'](_0xacc978);if(!_0x2d13a6)return;let _0x1c06ff=await this[_0x1ac129(0x15d)](_0x2d13a6,0x2,_0x42cdab,_0xf37c66);if(!_0x1c06ff)return;this['_importTaskId']=_0x1c06ff,this['_requestService'][_0x1ac129(0x12a)]();let _0x5e8c2b=await this['_requestService'][_0x1ac129(0x1ff)](_0x1c06ff)[_0x1ac129(0x1ac)](_0x5170b2=>{const _0x3179d6=_0x1ac129;var _0x2cf2ad;let _0x509aa4=_0x5170b2 instanceof Error?_0x5170b2[_0x3179d6(0xc8)]:(_0x2cf2ad=_0x5170b2[_0x3179d6(0x17a)])==null?void 0x0:_0x2cf2ad[_0x3179d6(0xc8)];this[_0x3179d6(0x1e1)][_0x3179d6(0x170)]({'error':{'code':_0x6f2d17[_0x3179d6(0x12d)],'message':_0x509aa4||''},'state':0x3});});if(!_0x5e8c2b)return;let _0x21711e=(_0x439a53=_0x5e8c2b[_0x1ac129(0xd3)])==null?void 0x0:_0x439a53[_0x1ac129(0x1cd)],_0x535efa=((_0x7738b5=_0x5e8c2b['import'])==null?void 0x0:_0x7738b5[_0x1ac129(0x154)])||'';if(_0x21711e!==0x2){this['_requestState$'][_0x1ac129(0x170)]({'error':{'code':_0x6f2d17[_0x1ac129(0x12d)],'message':_0x1ac129(0xcc)},'state':0x3});return;}if(_0x535efa['length']===0x0){this[_0x1ac129(0x1e1)][_0x1ac129(0x170)]({'error':{'code':_0x6f2d17['UNRECOGNIZED'],'message':_0x1ac129(0x212)},'state':0x3});return;}this[_0x1ac129(0x1e1)]['next']({'error':_0x5e8c2b[_0x1ac129(0x17a)],'state':0x3});let _0x2e2613=await this[_0x1ac129(0x184)](_0x535efa);if(!_0x2e2613)return;let _0x3deef2=await this['_requestService'][_0x1ac129(0x1c3)](_0x2e2613);if(!_0x3deef2){this[_0x1ac129(0x1e1)][_0x1ac129(0x170)]({'error':{'code':_0x6f2d17[_0x1ac129(0x12d)],'message':_0x1ac129(0x12c)},'state':0x5});return;}try{let _0x1359b8=JSON['parse'](_0x3deef2);return this['_requestState$'][_0x1ac129(0x170)]({'error':{'code':_0x6f2d17['OK'],'message':_0x1ac129(0x107)},'state':0x5}),_0x1359b8;}catch{this['_requestState$'][_0x1ac129(0x170)]({'error':{'code':_0x6f2d17[_0x1ac129(0x12d)],'message':_0x1ac129(0x1e3)},'state':0x5});}}async[_0x4903ec(0x13c)](_0x3af8b1,_0x21ed88,_0x384e90,_0x92a7fe){const _0x3976c4=_0x4903ec;let _0x4ab396=JSON[_0x3976c4(0x1fb)](_0x3af8b1),_0x1d427f=_0x14b9f5[_0x3976c4(0xb8)](_0x4ab396),_0x38c7c5=_0x4f71f7(_0x1d427f),_0x595a1f=_0x1d427f['length'],_0x42341e=Qe(_0x38c7c5),_0x2d15ea=await this['_upload'](_0x42341e,_0x595a1f,!0x0);if(_0x2d15ea)return this['_export'](_0x2d15ea,0x2,_0x21ed88,_0x384e90,_0x92a7fe);}async['_export'](_0x565d35,_0x5563a5,_0x10836f,_0x24d0a6,_0x187262){const _0x7f4e6a=_0x4903ec;var _0x3303b2;let _0x552072=await this[_0x7f4e6a(0x109)][_0x7f4e6a(0xd1)]({..._0x5563a5===0x1?{'unitID':_0x565d35}:{'jsonID':_0x565d35},'type':_0x10836f,'format':_0x24d0a6,'options':_0x187262});if(!_0x552072){this[_0x7f4e6a(0x1e1)][_0x7f4e6a(0x170)]({'error':{'code':_0x6f2d17[_0x7f4e6a(0x12d)],'message':_0x7f4e6a(0x17f)},'state':0x2});return;}if(this[_0x7f4e6a(0x1e1)][_0x7f4e6a(0x170)]({'error':_0x552072[_0x7f4e6a(0x17a)],'state':0x2}),_0x552072[_0x7f4e6a(0x17a)]&&_0x552072[_0x7f4e6a(0x17a)]['code']!==_0x6f2d17['OK'])return;let _0x20a9ff=_0x552072['taskID'],_0x445745=await this['_requestService'][_0x7f4e6a(0x1ff)](_0x20a9ff)[_0x7f4e6a(0x1ac)](_0xad4e37=>{const _0xa81fef=_0x7f4e6a;var _0xe79f25;let _0x5210a0=_0xad4e37 instanceof Error?_0xad4e37[_0xa81fef(0xc8)]:(_0xe79f25=_0xad4e37[_0xa81fef(0x17a)])==null?void 0x0:_0xe79f25[_0xa81fef(0xc8)];this[_0xa81fef(0x1e1)][_0xa81fef(0x170)]({'error':{'code':_0x6f2d17[_0xa81fef(0x12d)],'message':_0x5210a0||''},'state':0x3});});if(!_0x445745)return;let _0x31467d=((_0x3303b2=_0x445745[_0x7f4e6a(0xd1)])==null?void 0x0:_0x3303b2[_0x7f4e6a(0x19b)])||'';if(_0x31467d[_0x7f4e6a(0x121)]===0x0){this[_0x7f4e6a(0x1e1)][_0x7f4e6a(0x170)]({'error':{'code':_0x6f2d17['UNRECOGNIZED'],'message':_0x7f4e6a(0x1df)},'state':0x3});return;}this[_0x7f4e6a(0x1e1)][_0x7f4e6a(0x170)]({'error':_0x445745['error'],'state':0x3});let _0x4906ce=await this[_0x7f4e6a(0x184)](_0x31467d);if(!_0x4906ce)return;let _0x1c1da2=await Je(_0x4906ce,this[_0x7f4e6a(0x18e)]);if(!_0x1c1da2){this[_0x7f4e6a(0x1e1)]['next']({'error':{'code':_0x6f2d17[_0x7f4e6a(0x12d)],'message':_0x7f4e6a(0x14b)},'state':0x6});return;}return this['_requestState$']['next']({'error':{'code':_0x6f2d17['OK'],'message':_0x7f4e6a(0x107)},'state':0x6}),_0x1c1da2;}async[_0x4903ec(0x191)](_0x453479,_0x2d5bbb,_0x15aee9){const _0x39b1cc=_0x4903ec;let _0x3db67c;try{_0x3db67c=await this[_0x39b1cc(0x109)][_0x39b1cc(0x162)](_0x453479,_0x2d5bbb,_0x15aee9);}catch(_0x5c42c2){let _0x324992=_0x5c42c2 instanceof Error?_0x5c42c2[_0x39b1cc(0xc8)]:String(_0x5c42c2);this['_requestState$'][_0x39b1cc(0x170)]({'error':{'code':_0x6f2d17[_0x39b1cc(0x12d)],'message':_0x324992},'state':0x0});return;}if(!_0x3db67c||typeof _0x3db67c[_0x39b1cc(0x106)]!=_0x39b1cc(0x1fe)){this['_requestState$'][_0x39b1cc(0x170)]({'error':{'code':_0x6f2d17['UNRECOGNIZED'],'message':_0x39b1cc(0x158)},'state':0x0});return;}let _0x36abd2=_0x3db67c['FileId'];if(_0x36abd2['length']===0x0){this[_0x39b1cc(0x1e1)]['next']({'error':{'code':_0x6f2d17['UNRECOGNIZED'],'message':_0x39b1cc(0x112)},'state':0x0});return;}return this['_requestState$'][_0x39b1cc(0x170)]({'error':{'code':_0x6f2d17['OK'],'message':'success'},'state':0x0}),_0x36abd2;}async[_0x4903ec(0x15d)](_0x33a15d,_0xaa75d7,_0x5ef5d1,_0x5b74a1){const _0x405812=_0x4903ec;let _0x193a84={'fileID':_0x33a15d,'type':_0x5ef5d1,'outputType':_0xaa75d7,'options':_0x5b74a1},_0x159ddc=await this[_0x405812(0x109)][_0x405812(0xd3)](_0x193a84);if(!_0x159ddc){this[_0x405812(0x1e1)][_0x405812(0x170)]({'error':{'code':_0x6f2d17[_0x405812(0x12d)],'message':_0x405812(0x132)},'state':0x1});return;}if(_0x159ddc[_0x405812(0x17a)]&&_0x159ddc[_0x405812(0x17a)][_0x405812(0xf7)]!==_0x6f2d17['OK']){this[_0x405812(0x1e1)][_0x405812(0x170)]({'error':_0x159ddc[_0x405812(0x17a)],'state':0x1});return;}let _0x7c1c35=_0x159ddc[_0x405812(0x160)];if(_0x7c1c35[_0x405812(0x121)]===0x0){this[_0x405812(0x1e1)][_0x405812(0x170)]({'error':{'code':_0x6f2d17[_0x405812(0x12d)],'message':_0x405812(0x1d3)},'state':0x1});return;}return this[_0x405812(0x1e1)][_0x405812(0x170)]({'error':_0x159ddc[_0x405812(0x17a)],'state':0x1}),_0x7c1c35;}async['_signUrl'](_0x18bfe4){const _0x20d42c=_0x4903ec;let _0x285c51=await this[_0x20d42c(0x109)]['signUrl'](_0x18bfe4);if(!_0x285c51){this[_0x20d42c(0x1e1)][_0x20d42c(0x170)]({'error':{'code':_0x6f2d17[_0x20d42c(0x12d)],'message':_0x20d42c(0x1ec)},'state':0x4});return;}if(_0x285c51[_0x20d42c(0x17a)]&&_0x285c51[_0x20d42c(0x17a)][_0x20d42c(0xf7)]!==_0x6f2d17['OK']){this[_0x20d42c(0x1e1)]['next']({'error':_0x285c51[_0x20d42c(0x17a)],'state':0x4});return;}let _0x1b62c6=_0x2a8fd0(_0x285c51[_0x20d42c(0xce)],this['_getDownloadEndpointURL']());if(_0x1b62c6[_0x20d42c(0x121)]===0x0){this[_0x20d42c(0x1e1)][_0x20d42c(0x170)]({'error':{'code':_0x6f2d17[_0x20d42c(0x12d)],'message':'sign\x20url\x20error'},'state':0x4});return;}return this[_0x20d42c(0x1e1)][_0x20d42c(0x170)]({'error':_0x285c51[_0x20d42c(0x17a)],'state':0x4}),_0x1b62c6;}[_0x4903ec(0x123)](){const _0xafc42f=_0x4903ec;let _0x1ef490=this['_configService'][_0xafc42f(0x176)](k);return(_0x1ef490==null?void 0x0:_0x1ef490['downloadEndpointUrl'])??location[_0xafc42f(0x135)];}};G=z([R(0x0,_0x1f74df),R(0x1,_0x2f697a(_0xb3a54c)),R(0x2,_0x2f697a(B))],G);const K=_0x54d699(_0x4903ec(0x1d2));var ft=class extends _0x332c69{constructor(){const _0x46b2b4=_0x4903ec;super(),L(this,_0x46b2b4(0xf2),new _0x5594f5()),L(this,'_state$',new _0x5594f5()),L(this,'_list$',new _0x5594f5()),L(this,_0x46b2b4(0x150),this[_0x46b2b4(0xf2)][_0x46b2b4(0x143)]()),L(this,_0x46b2b4(0x144),this[_0x46b2b4(0x1e8)]['asObservable']()),L(this,_0x46b2b4(0xc0),this[_0x46b2b4(0x1d9)]['asObservable']()),L(this,'_list',[]);}['dispose'](){const _0x352250=_0x4903ec;super[_0x352250(0xda)](),this[_0x352250(0xf2)]['complete'](),this['_state$']['complete'](),this['_list$'][_0x352250(0xdf)]();}[_0x4903ec(0x1ab)](){const _0x24158e=_0x4903ec;this['_visible$'][_0x24158e(0x170)](!0x0);}['hide'](){const _0x3b2e98=_0x4903ec;this[_0x3b2e98(0xf2)]['next'](!0x1);}[_0x4903ec(0x219)](_0x4be156){const _0x192884=_0x4903ec;this[_0x192884(0x1e8)][_0x192884(0x170)](_0x4be156);}['pushLink'](_0x48d762){const _0x4f8f34=_0x4903ec;this[_0x4f8f34(0x12b)][_0x4f8f34(0x171)](_0x48d762),this['_list$'][_0x4f8f34(0x170)](this[_0x4f8f34(0x12b)]);}};const pt={'done':0x0,'count':0x0},q=_0x54d699('univer-pro.exchange-client.operate.service');let J=class extends _0x332c69{constructor(_0x15eab4,_0xb2509c,_0xf712b4,_0x197144,_0xf67703,_0x2355a9){const _0x560b03=_0x4903ec;super(),this[_0x560b03(0x153)]=_0x15eab4,this[_0x560b03(0x125)]=_0xb2509c,this['_localeService']=_0xf712b4,this[_0x560b03(0x114)]=_0x197144,this[_0x560b03(0x156)]=_0xf67703,this['_logService']=_0x2355a9,L(this,_0x560b03(0x1d5),new _0x47de39(pt)),L(this,_0x560b03(0x16c),this[_0x560b03(0x1d5)][_0x560b03(0x143)]()),L(this,_0x560b03(0xc1),0x0),L(this,'_doneUploadTaskCount',0x0),L(this,_0x560b03(0x157),!0x1),L(this,_0x560b03(0xe2),null),this[_0x560b03(0x1cc)](_0x5e5517(this[_0x560b03(0x114)][_0x560b03(0x14f)]['subscribe'](_0x4f495e=>{const _0x466ad8=_0x560b03;var _0x73154c;((_0x73154c=_0x4f495e[_0x466ad8(0x17a)])==null?void 0x0:_0x73154c[_0x466ad8(0xf7)])===_0x6f2d17['OK']?this['_addDoneTask'](0x1):this['_showNetworkError'](_0x4f495e[_0x466ad8(0x17a)]);})));}[_0x4903ec(0xbc)](){const _0x5e1f25=_0x4903ec;this[_0x5e1f25(0x18a)](),this[_0x5e1f25(0x156)]['updateState'](0x2),this[_0x5e1f25(0x114)][_0x5e1f25(0x1a9)]();}async[_0x4903ec(0x1b5)](_0x56c860,_0x354f01){const _0x294015=_0x4903ec;if(this['_isSelectingUnitImportFile']||this[_0x294015(0xef)]()){this[_0x294015(0x125)][_0x294015(0x1ab)]({'type':_0x3bebf0[_0x294015(0x22e)],'content':this['_localeService']['t'](_0x294015(0x1ad))});return;}let _0x3de2af;this[_0x294015(0x157)]=!0x0;try{_0x3de2af=await F([_0x56c860]);}finally{this[_0x294015(0x157)]=!0x1;}if(_0x3de2af&&!this['_fileTypeError'](_0x3de2af,_0x56c860))return this[_0x294015(0xe2)]={'type':_0x56c860,'importer':_0x354f01},this[_0x294015(0x14a)](_0x3de2af[0x0],_0x56c860,_0x354f01);}async[_0x4903ec(0x18b)](){const _0x377fce=_0x4903ec;let _0x152eb9=this[_0x377fce(0xe2)];if(_0x152eb9)return this[_0x377fce(0x1b5)](_0x152eb9[_0x377fce(0x20c)],_0x152eb9[_0x377fce(0x1c9)]);}async['importFileToSnapshot'](_0x51c497,_0x22bc0c){const _0x1a7d09=_0x4903ec;if(this[_0x1a7d09(0xef)]()){this[_0x1a7d09(0x125)][_0x1a7d09(0x1ab)]({'type':_0x3bebf0['Warning'],'content':this[_0x1a7d09(0x19a)]['t'](_0x1a7d09(0x1ad))});return;}let _0x1c8658=await F([_0x51c497]);if(!_0x1c8658||this['_fileTypeError'](_0x1c8658,_0x51c497))return;this[_0x1a7d09(0x1b2)](_0x3bebf0[_0x1a7d09(0xfe)]);let _0x45ebb6=await _0x22bc0c(_0x1c8658[0x0]);_0x45ebb6&&(this[_0x1a7d09(0x1c0)](_0x51c497,_0x45ebb6),this[_0x1a7d09(0x1b2)](_0x3bebf0[_0x1a7d09(0x20e)]));}async['importFileAsSnapshot'](_0x509cd9,_0x11294a){const _0x3c0e6f=_0x4903ec;if(this[_0x3c0e6f(0xef)]()){this['_messageService'][_0x3c0e6f(0x1ab)]({'type':_0x3bebf0['Warning'],'content':this[_0x3c0e6f(0x19a)]['t'](_0x3c0e6f(0x1ad))});return;}let _0x22751c=await F([_0x509cd9]);if(!_0x22751c||this['_fileTypeError'](_0x22751c,_0x509cd9))return;this[_0x3c0e6f(0x1b2)](_0x3bebf0[_0x3c0e6f(0xfe)]);let _0x1da9c3=await _0x11294a(_0x22751c[0x0]);if(_0x1da9c3)return this[_0x3c0e6f(0x1b2)](_0x3bebf0[_0x3c0e6f(0x20e)]),_0x1da9c3;}async[_0x4903ec(0x130)](_0x598d10,_0x8d5051,_0x55652e){const _0x2cc6e5=_0x4903ec;this[_0x2cc6e5(0x149)](_0x3bebf0[_0x2cc6e5(0xfe)]);let _0x30216c=await _0x598d10();_0x30216c&&(this[_0x2cc6e5(0x114)][_0x2cc6e5(0x1a5)](_0x30216c,_0x8d5051||_0x30216c['name'][_0x2cc6e5(0x227)]('.')['shift']()||document[_0x2cc6e5(0x1c5)],_0x55652e),this[_0x2cc6e5(0x149)](_0x3bebf0[_0x2cc6e5(0x20e)]));}['registerLink'](_0x27d567){const _0x45b698=_0x4903ec;this[_0x45b698(0x1c7)]=_0x27d567;}async[_0x4903ec(0x14a)](_0x57cc7e,_0x96786a,_0x581964){const _0x43faee=_0x4903ec;this['_uploadNotificationService'][_0x43faee(0x1ab)](),this[_0x43faee(0x156)][_0x43faee(0x219)](0x0),this[_0x43faee(0xd8)](0x4),this[_0x43faee(0x166)](0x1);let _0x420293=await _0x581964(_0x57cc7e);if(!_0x420293){this[_0x43faee(0x18a)](),this[_0x43faee(0x156)][_0x43faee(0x219)](0x2);return;}let _0x4d3139={'link':this[_0x43faee(0x1c7)](_0x420293,_0x96786a),'name':_0x57cc7e['name'],'type':_0x96786a};return this[_0x43faee(0x156)][_0x43faee(0x164)](_0x4d3139),this[_0x43faee(0x11b)](),this[_0x43faee(0x156)][_0x43faee(0x219)](0x1),_0x420293;}[_0x4903ec(0x1c0)](_0x40fd5f,_0x1898ae){const _0xf8cc4d=_0x4903ec;let _0x10287c=this[_0xf8cc4d(0x153)]['getCurrentUnitOfType'](_0x40fd5f);if(!_0x10287c)throw Error(_0xf8cc4d(0x1ca)+_0x40fd5f+_0xf8cc4d(0xd0));this[_0xf8cc4d(0x153)]['disposeUnit'](_0x10287c['getUnitId']());let _0x1035b1=this[_0xf8cc4d(0x153)][_0xf8cc4d(0x1fd)](_0x40fd5f,_0x1898ae);this[_0xf8cc4d(0x153)][_0xf8cc4d(0x102)](_0x1035b1['getUnitId']());}['_getLinkByUnitId'](_0xa5f51a,_0x27a855){const _0xe1df2f=_0x4903ec;let _0x470d80=new URL(window[_0xe1df2f(0x21a)][_0xe1df2f(0x1db)]);return _0x470d80[_0xe1df2f(0x138)][_0xe1df2f(0x20a)](_0xe1df2f(0x14c),_0xa5f51a),_0x470d80['searchParams'][_0xe1df2f(0x20a)](_0xe1df2f(0x20c),''+_0x27a855),_0x470d80[_0xe1df2f(0x172)]();}[_0x4903ec(0xf1)](_0x3ff59f){const _0x407e21=_0x4903ec;if(_0x3ff59f){let {code:_0x21c127}=_0x3ff59f;switch(_0x21c127){case _0x6f2d17[_0x407e21(0x1a4)]:this['_messageService']['show']({'type':_0x3bebf0['Error'],'content':this[_0x407e21(0x19a)]['t'](_0x407e21(0x12f))});break;case _0x6f2d17[_0x407e21(0x137)]:this[_0x407e21(0x125)][_0x407e21(0x1ab)]({'type':_0x3bebf0['Error'],'content':this[_0x407e21(0x19a)]['t']('exchange-client.internalError')});break;default:this['_messageService']['show']({'type':_0x3bebf0[_0x407e21(0x126)],'content':this[_0x407e21(0x19a)]['t'](_0x407e21(0x19e))});}return null;}return this[_0x407e21(0x125)][_0x407e21(0x1ab)]({'type':_0x3bebf0['Error'],'content':this[_0x407e21(0x19a)]['t'](_0x407e21(0x19e))}),null;}[_0x4903ec(0x149)](_0x36ad4d){const _0x4decb6=_0x4903ec;let _0x4d5128='';switch(_0x36ad4d){case _0x3bebf0['Success']:_0x4d5128=this[_0x4decb6(0x19a)]['t']('exchange-client.downloadSuccess');break;case _0x3bebf0[_0x4decb6(0xfe)]:_0x4d5128=this[_0x4decb6(0x19a)]['t'](_0x4decb6(0x222));}this[_0x4decb6(0x125)]['show']({'type':_0x36ad4d,'content':_0x4d5128});}[_0x4903ec(0x1b2)](_0x13bf72){const _0x57a4a8=_0x4903ec;let _0x33a8cf='';switch(_0x13bf72){case _0x3bebf0[_0x57a4a8(0x20e)]:_0x33a8cf=this['_localeService']['t']('exchange-client.uploadSuccess');break;case _0x3bebf0['Info']:_0x33a8cf=this[_0x57a4a8(0x19a)]['t'](_0x57a4a8(0x1ad));}this[_0x57a4a8(0x125)]['show']({'type':_0x13bf72,'content':_0x33a8cf});}[_0x4903ec(0x19f)](){const _0x4d988e=_0x4903ec;this[_0x4d988e(0x1d5)][_0x4d988e(0x170)]({'done':this[_0x4d988e(0xe7)],'count':this[_0x4d988e(0xc1)]});}['_addTotalCount'](_0x130528){const _0x20a4c8=_0x4903ec;this[_0x20a4c8(0xc1)]+=_0x130528,this[_0x20a4c8(0x19f)]();}[_0x4903ec(0x166)](_0x9adc79){const _0x3c6db8=_0x4903ec;this[_0x3c6db8(0xe7)]+=_0x9adc79,this[_0x3c6db8(0xe7)]=Math['min'](this[_0x3c6db8(0xe7)],this['_totalUploadTaskCount']),this[_0x3c6db8(0x19f)]();}[_0x4903ec(0x11b)](){const _0x44ce88=_0x4903ec;this[_0x44ce88(0xe7)]=this[_0x44ce88(0xc1)],this[_0x44ce88(0x19f)]();}[_0x4903ec(0x18a)](){const _0x65c93=_0x4903ec;this[_0x65c93(0xe7)]=0x0,this[_0x65c93(0xc1)]=0x0,this[_0x65c93(0x19f)]();}['_fileTypeError'](_0x286e5c,_0x39a33c){const _0x22f5cf=_0x4903ec;let _0x433722=_0x286e5c[0x0],_0x9a3227=_0x433722['name'];return!qe(_0x433722,_0x39a33c)&&(this[_0x22f5cf(0x125)]['show']({'type':_0x3bebf0[_0x22f5cf(0x126)],'content':this[_0x22f5cf(0x19a)]['t']('exchange-client.fileTypeError',_0x9a3227)}),!0x0);}[_0x4903ec(0xef)](){const _0x16f885=_0x4903ec;return this['_totalUploadTaskCount']!==0x0&&this[_0x16f885(0xe7)]!==this['_totalUploadTaskCount'];}};J=z([R(0x0,_0x2f697a(_0x45c5cd)),R(0x1,_0x1fc736),R(0x2,_0x2f697a(_0xba597a)),R(0x3,_0x2f697a(W)),R(0x4,_0x2f697a(K)),R(0x5,_0x3bb871)],J);const mt={0x1:_0x4fb351(_0x2b98bc,{'className':_0x4903ec(0x120)}),0x0:_0x4fb351(_0x1a031f,{'className':_0x4903ec(0xf6)}),0x2:_0x4fb351(_0x2ece5e,{'className':_0x4903ec(0xd7)})};function ht(){const _0x1f95dd=_0x4903ec;let _0x673bf1=_0x19a164(K),_0x119e9b=_0x19a164(_0xba597a),_0x2907b7=_0x19a164(q),_0x16d127=_0x4b9619(_0x673bf1[_0x1f95dd(0x150)],!0x1),_0xd56957=_0x4b9619(_0x673bf1['state$'],0x0),_0x5d5349=_0x4b9619(_0x673bf1['list$'],[]),_0x5a931e=_0x4b9619(_0x2907b7[_0x1f95dd(0x16c)],{'done':0x0,'count':0x0});if(!_0x16d127)return null;function _0x1c3581(_0x149d29){const _0x5af024=_0x1f95dd;switch(_0x149d29){case _0x2cfd86[_0x5af024(0xcd)]:return _0x4fb351(_0x182bfa,{});case _0x2cfd86[_0x5af024(0x1da)]:case _0x2cfd86[_0x5af024(0x16d)]:return _0x4fb351(_0x16d2ee,{});case _0x2cfd86['UNIVER_SLIDE']:return _0x4fb351(_0x237d9d,{});default:return null;}}function _0x580477(){const _0x3ebeca=_0x1f95dd;switch(_0xd56957){case 0x1:return _0x119e9b['t'](_0x3ebeca(0x202));case 0x2:return _0x119e9b['t'](_0x3ebeca(0x1e7));default:return _0x119e9b['t'](_0x3ebeca(0x1ad));}}let _0x2a3b38=_0x5a931e[_0x1f95dd(0x178)]>0x0?Math[_0x1f95dd(0x1ea)](_0x5a931e[_0x1f95dd(0x15a)]/_0x5a931e[_0x1f95dd(0x178)]*0x64):0x0;return _0x2ca7b1('section',{'data-u-comp':_0x1f95dd(0x175),'className':_0x1f95dd(0xf5),'children':[_0x2ca7b1(_0x1f95dd(0x22a),{'className':_0x1f95dd(0xec),'children':[_0x2ca7b1(_0x1f95dd(0x205),{'className':'univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2\x20univer-font-semibold','children':[_0x4fb351(_0x1f95dd(0x205),{'className':_0x1f95dd(0x13a),'children':mt[_0xd56957]}),_0x4fb351(_0x1f95dd(0x205),{'className':_0x1f95dd(0x197),'children':_0x580477()})]}),_0x4fb351(_0x3a173d,{'size':_0x1f95dd(0xb7),'variant':_0x1f95dd(0x139),'aria-label':_0x119e9b['t'](_0x1f95dd(0x209)),'onClick':()=>_0x673bf1[_0x1f95dd(0x1ba)](),'children':_0x4fb351(_0x506d7a,{})})]}),_0xd56957===0x0&&_0x2ca7b1(_0x1f95dd(0x229),{'className':_0x1f95dd(0x10d),'children':[_0x4fb351(_0x1f95dd(0x205),{'className':'univer-text-sm\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':_0x119e9b['t'](_0x1f95dd(0x12e))}),_0x4fb351(_0x1f95dd(0x229),{'className':_0x1f95dd(0xd4),'children':_0x4fb351(_0x1f95dd(0x229),{'className':_0x1f95dd(0x21d),'style':{'width':_0x2a3b38+'%'}})}),_0x4fb351(_0x3a173d,{'variant':_0x1f95dd(0x139),'onClick':()=>_0x2907b7[_0x1f95dd(0xbc)](),'children':_0x119e9b['t'](_0x1f95dd(0x209))})]}),_0xd56957===0x2&&_0x2ca7b1('div',{'className':_0x1f95dd(0x168),'children':[_0x4fb351(_0x1f95dd(0x205),{'className':_0x1f95dd(0x1c8),'children':_0x119e9b['t']('exchange-client.interrupt')}),_0x4fb351(_0x3a173d,{'variant':_0x1f95dd(0x139),'onClick':()=>_0x2907b7[_0x1f95dd(0x18b)](),'children':_0x119e9b['t'](_0x1f95dd(0xe5))})]}),_0x5d5349[_0x1f95dd(0x121)]>0x0&&_0x4fb351('ul',{'className':_0x1f95dd(0x1cf),'children':_0x5d5349[_0x1f95dd(0x1e0)](_0x4cdbd4=>_0x4fb351('li',{'children':_0x2ca7b1('a',{'className':_0x1f95dd(0x1d0),'href':_0x4cdbd4[_0x1f95dd(0x1f9)],'target':_0x1f95dd(0x1c1),'rel':_0x1f95dd(0x177),'children':[_0x4fb351(_0x1f95dd(0x205),{'className':_0x1f95dd(0x124),'children':_0x1c3581(_0x4cdbd4[_0x1f95dd(0x20c)])}),_0x4fb351(_0x1f95dd(0x205),{'className':_0x1f95dd(0xbb),'children':_0x4cdbd4[_0x1f95dd(0x16b)]}),_0x4fb351(_0x55603c,{'className':'univer-shrink-0'})]})},_0x4cdbd4[_0x1f95dd(0x1f9)]))}),_0xd56957===0x1&&_0x2ca7b1(_0x1f95dd(0x229),{'className':_0x1f95dd(0xec),'children':[_0x4fb351(_0x1f95dd(0x205),{'className':_0x1f95dd(0x1b7),'children':_0x119e9b['t']('exchange-client.uploadSuccessTip',''+_0x5d5349['length'])}),_0x4fb351(_0x3a173d,{'variant':_0x1f95dd(0x139),'onClick':()=>_0x2907b7[_0x1f95dd(0x18b)](),'children':_0x119e9b['t'](_0x1f95dd(0xe5))})]})]});}let Y=class extends _0x332c69{constructor(_0x10525a,_0xd4c806){const _0x192708=_0x4903ec;super(),this[_0x192708(0x185)]=_0x10525a,this[_0x192708(0xb3)]=_0xd4c806,this['disposeWithMe'](this['_uiPartsService'][_0x192708(0xc6)](_0x402cca[_0x192708(0x15f)],()=>_0x2f1d93(ht,this[_0x192708(0x185)])));}};Y=z([R(0x0,_0x2f697a(_0x3ac7ad)),R(0x1,_0xa08f42)],Y);let X=class extends _0x256c29{constructor(_0x3a5d13=A,_0xd28e48,_0x49fe69){const _0x2fa265=_0x4903ec;super(),this[_0x2fa265(0x1a7)]=_0x3a5d13,this['_injector']=_0xd28e48,this[_0x2fa265(0x127)]=_0x49fe69;let {..._0x187b97}=_0x1460d9({},A,this[_0x2fa265(0x1a7)]);this[_0x2fa265(0x127)][_0x2fa265(0xcb)](k,_0x187b97);}[_0x4903ec(0x11a)](){_0x2718c1(this['_injector'],[[U],[Y],[q,{'useClass':J}],[W,{'useClass':G}],[B,{'useClass':V}],[K,{'useClass':ft}]]);}['onReady'](){_0x5ada79(this['_injector'],[[U],[Y],[q]]);}};L(X,_0x4903ec(0x1ef),_0x4903ec(0x1b6)),L(X,'packageName',D),L(X,_0x4903ec(0xba),O),X=z([_0x1dbe2a(_0x56b9c8,_0xef202d,_0x37d249),R(0x1,_0x2f697a(_0x3ac7ad)),R(0x2,_0x1f74df)],X);let Z=class extends _0x332c69{constructor(_0x3656ba,_0x3729d6){const _0x3c6c59=_0x4903ec;super(),this[_0x3c6c59(0x179)]=_0x3656ba,this[_0x3c6c59(0xe8)]=_0x3729d6,this[_0x3c6c59(0x115)](),this[_0x3c6c59(0x1be)]();}['_registerIcons'](){const _0x233db9=_0x4903ec;this[_0x233db9(0x1cc)](this[_0x233db9(0x179)][_0x233db9(0x1f7)]({'DirectExportIcon':_0x2a5e1e,'ExportIcon':_0x19c606,'FolderIcon':_0x5801db}));}[_0x4903ec(0x1be)](){const _0x1a11a0=_0x4903ec;this[_0x1a11a0(0x1cc)](this[_0x1a11a0(0xe8)][_0x1a11a0(0x1f7)](H,ut));}};Z=z([R(0x0,_0x2f697a(_0x2a3388)),R(0x1,_0x2f697a(_0x4dba84))],Z);function gt(_0xa0cb2f){const _0x3fd84c=_0x4903ec;let {list:_0x5c32d5}=_0xa0cb2f;function _0x4ccd4d(_0x427904){const _0x4c50a1=_0x1f4c;switch(_0x427904){case _0x2cfd86[_0x4c50a1(0xcd)]:return _0x4fb351(_0x182bfa,{});case _0x2cfd86['UNIVER_SHEET']:case _0x2cfd86[_0x4c50a1(0x16d)]:return _0x4fb351(_0x16d2ee,{});case _0x2cfd86[_0x4c50a1(0x207)]:return _0x4fb351(_0x237d9d,{});default:return null;}}return _0x4fb351('div',{'className':_0x5bef70(_0x3fd84c(0x22d),_0x2fea5c),'children':_0x4fb351('ul',{'className':_0x3fd84c(0x218),'children':_0x5c32d5[_0x3fd84c(0x1e0)]((_0x165860,_0x2643b8)=>_0x4fb351('li',{'children':_0x2ca7b1('a',{'className':_0x3fd84c(0xe4),'href':_0x165860[_0x3fd84c(0x1f9)],'target':_0x3fd84c(0x1c1),'rel':_0x3fd84c(0x177),'children':[_0x2ca7b1(_0x3fd84c(0x205),{'className':_0x3fd84c(0x226),'children':[_0x4fb351(_0x3fd84c(0x205),{'className':_0x3fd84c(0x11d),'children':_0x4ccd4d(_0x165860[_0x3fd84c(0x20c)])}),_0x4fb351(_0xa440b5,{'showIfEllipsis':!0x0,'title':_0x165860[_0x3fd84c(0x16b)],'asChild':!0x0,'children':_0x4fb351('span',{'className':_0x3fd84c(0x18d),'children':_0x165860[_0x3fd84c(0x16b)]})})]}),_0x4fb351(_0x3fd84c(0x205),{'className':_0x3fd84c(0x128),'children':_0x4fb351(_0x55603c,{})})]})},_0x2643b8))})});}function _t(_0x574658){const _0xc8cb80=_0x4903ec;let {onClick:_0x3a2466,children:_0x28ccea,className:_0x57e024}=_0x574658;return _0x4fb351(_0x3a173d,{'size':_0xc8cb80(0xfd),'variant':_0xc8cb80(0x139),'className':_0x5bef70('univer-text-primary-600',_0x57e024),'type':_0xc8cb80(0xed),'onClick':_0x3a2466,'children':_0x28ccea});}function vt(){const _0x48e9d3=_0x4903ec;let _0x3b48b8=_0x19a164(q),_0x205248=_0x19a164(_0xba597a);function _0x14307b(){return _0x3b48b8['retryImportFileToUnitId']();}return _0x4fb351(_t,{'onClick':_0x14307b,'children':_0x205248['t'](_0x48e9d3(0xe5))});}function yt(){const _0x3f22ee=_0x4903ec;let _0x54b747=_0x19a164(_0xba597a);return _0x2ca7b1(_0x3f22ee(0x229),{'className':_0x3f22ee(0x15c),'children':[_0x4fb351(_0x3f22ee(0x205),{'className':_0x3f22ee(0x211),'children':_0x54b747['t'](_0x3f22ee(0x15e))}),_0x4fb351(vt,{})]});}function bt(_0x580e51){const _0x2d8cf7=_0x4903ec;let {count:_0x240f33}=_0x580e51,_0x40e038=_0x19a164(_0xba597a);return _0x2ca7b1(_0x2d8cf7(0x229),{'className':_0x2d8cf7(0xc3),'children':[_0x4fb351(_0x2d8cf7(0x205),{'className':_0x2d8cf7(0x1b7),'children':_0x40e038['t']('exchange-client.uploadSuccessTip',''+_0x240f33)}),_0x4fb351(vt,{})]});}function xt(){const _0x51fba5=_0x4903ec;let _0x38dba1=_0x19a164(q),_0x2fe630=_0x19a164(_0xba597a);function _0x444305(){const _0x259013=_0x1f4c;_0x38dba1[_0x259013(0xbc)]();}return _0x4fb351(_t,{'onClick':_0x444305,'children':_0x2fe630['t'](_0x51fba5(0x209))});}function St(){const _0x1e2a10=_0x4903ec;let _0x89d273=_0x19a164(q),{count:_0x3f6c56,done:_0x1f5dba}=_0x4b9619(_0x89d273[_0x1e2a10(0x16c)]),_0x29ef87=_0x3f6c56>0x0?_0x1f5dba/_0x3f6c56:0x0;return _0x4fb351(_0x1e2a10(0x229),{'className':'univer-mx-0\x20univer-mb-3\x20univer-mt-4\x20univer-h-1.5\x20univer-w-[324px]\x20univer-rounded-lg\x20univer-bg-gray-200','children':_0x4fb351('div',{'className':_0x1e2a10(0x1f4),'style':{'width':Math['floor'](_0x29ef87*0x64)+'%'}})});}function Ct(){const _0x159884=_0x4903ec;let _0x1f9daa=_0x19a164(_0xba597a);return _0x2ca7b1(_0x159884(0x229),{'className':_0x159884(0x15c),'children':[_0x4fb351(_0x159884(0x205),{'className':_0x159884(0x22b),'children':_0x1f9daa['t']('exchange-client.wait')}),_0x4fb351(_0x159884(0x229),{'className':'univer-pl-2\x20univer-pr-4','children':_0x4fb351(St,{})}),_0x4fb351(xt,{})]});}const wt={0x1:_0x4fb351(_0x2b98bc,{'className':'univer-text-green-500'}),0x0:_0x4fb351(_0x1a031f,{'className':_0x4903ec(0xf6)}),0x2:_0x4fb351(_0x2ece5e,{'className':_0x4903ec(0xd7)})};function Tt(){const _0x5c2dbf=_0x4903ec;let _0x5a5e5c=_0x19a164(K),_0x269e50=_0x19a164(_0xba597a),_0x420795=_0x4b9619(_0x5a5e5c[_0x5c2dbf(0x144)],0x0),_0xf020df=_0x4b9619(_0x5a5e5c['visible$'],!0x1),_0x47a934=_0x4b9619(_0x5a5e5c[_0x5c2dbf(0xc0)],[]);function _0x554b62(){const _0x59745c=_0x5c2dbf;_0x5a5e5c[_0x59745c(0x1ba)]();}function _0x5cf23b(_0xa0e88b){const _0x12e237=_0x5c2dbf;switch(_0xa0e88b){case 0x1:return _0x269e50['t'](_0x12e237(0x202));case 0x0:return _0x269e50['t']('exchange-client.uploading');case 0x2:return _0x269e50['t']('exchange-client.unknownMistake');default:return'';}}return _0xf020df&&_0x2ca7b1(_0x5c2dbf(0x229),{'className':_0x5c2dbf(0xb5),'children':[_0x2ca7b1(_0x5c2dbf(0x229),{'className':_0x5c2dbf(0x198),'children':[_0x2ca7b1(_0x5c2dbf(0x205),{'className':'univer-flex\x20univer-items-center','children':[_0x4fb351(_0x5c2dbf(0x205),{'className':_0x5c2dbf(0x163),'children':wt[_0x420795]}),_0x4fb351('span',{'className':_0x5c2dbf(0x146),'children':_0x5cf23b(_0x420795)})]}),_0x4fb351(_0x5c2dbf(0x205),{'className':'univer-flex\x20univer-size-6\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-border-none\x20univer-bg-transparent\x20univer-text-gray-500\x20univer-transition-colors\x20hover:univer-bg-gray-200\x20dark:!univer-bg-gray-600','onClick':_0x554b62,'children':_0x4fb351(_0x506d7a,{})})]}),_0x2ca7b1(_0x5c2dbf(0x229),{'children':[_0x420795===0x0&&_0x4fb351(Ct,{}),_0x420795===0x2&&_0x4fb351(yt,{}),_0x47a934[_0x5c2dbf(0x121)]>0x0&&_0x4fb351(gt,{'list':_0x47a934}),_0x420795===0x1&&_0x4fb351(bt,{'count':_0x47a934[_0x5c2dbf(0x121)]})]})]});}let Q=class extends _0x332c69{constructor(_0x132bde,_0x215cdb){const _0x5175c0=_0x4903ec;super(),this[_0x5175c0(0x185)]=_0x132bde,this['_uiPartsService']=_0x215cdb,this[_0x5175c0(0x1fc)]();}['_registerUIParts'](){const _0x4f46d1=_0x4903ec;this['disposeWithMe'](this[_0x4f46d1(0xb3)][_0x4f46d1(0xc6)](_0x402cca[_0x4f46d1(0x15f)],()=>_0x2f1d93(Tt,this[_0x4f46d1(0x185)])));}};Q=z([R(0x0,_0x2f697a(_0x3ac7ad)),R(0x1,_0xa08f42)],Q);let $=class extends _0x256c29{constructor(_0x171ed4=A,_0x16557d,_0x41f824){const _0x35b08a=_0x4903ec;super(),this[_0x35b08a(0x1a7)]=_0x171ed4,this[_0x35b08a(0x185)]=_0x16557d,this['_configService']=_0x41f824;let {..._0x1baadc}=_0x1460d9({},A,this[_0x35b08a(0x1a7)]);this['_configService'][_0x35b08a(0xcb)](k,_0x1baadc);}[_0x4903ec(0x11a)](){const _0x245e1c=_0x4903ec;_0x2718c1(this[_0x245e1c(0x185)],[[Z],[Q],[q,{'useClass':J}],[W,{'useClass':G}],[B,{'useClass':V}],[K,{'useClass':ft}]]);}[_0x4903ec(0x1eb)](){const _0xa05bcc=_0x4903ec;_0x5ada79(this[_0xa05bcc(0x185)],[[Z],[Q],[q]]);}};L($,_0x4903ec(0x1ef),_0x4903ec(0x1b6)),L($,_0x4903ec(0x22c),D),L($,_0x4903ec(0xba),O),$=z([_0x1dbe2a(_0x56b9c8,_0xef202d),R(0x1,_0x2f697a(_0x3ac7ad)),R(0x2,_0x1f74df)],$);function Et(_0x341171,_0x92dc5c){const _0x53248d=_0x4903ec;let _0x1b3db3=_0x341171['get'](_0x45c5cd)['getCurrentUnitOfType'](_0x92dc5c);return!_0x1b3db3||!_0x341171[_0x53248d(0x1e9)](_0x24a705)||!_0x341171[_0x53248d(0x1e9)](_0x936458)?!0x1:_0x341171[_0x53248d(0x117)](_0x24a705)['isUnitLoadedFromServer'](_0x1b3db3);}function Dt(_0x19481d){const _0x53c4eb=_0x4903ec;let _0x5e196c=_0x19481d['workbook'];if(!_0x5e196c)return null;let _0x3dd93d={};_0x5e196c[_0x53c4eb(0x1a6)]&&Object[_0x53c4eb(0x161)](_0x5e196c['sheets'])[_0x53c4eb(0x181)](_0x165907=>{const _0x25dd67=_0x53c4eb;let _0x5a5443=_0x5e196c[_0x25dd67(0x1a6)][_0x165907];_0x3dd93d[_0x165907]={..._0x5a5443,'originalMeta':_0x51219f(_0x41a199[_0x25dd67(0x167)](_0x5a5443[_0x25dd67(0x110)]))};});let _0x559479=_0x51219f(_0x41a199[_0x53c4eb(0x167)](_0x5e196c[_0x53c4eb(0x110)]));return{..._0x19481d,'workbook':{..._0x5e196c,'originalMeta':_0x559479,'sheets':_0x3dd93d},'doc':{},'slide':void 0x0,'board':void 0x0,'pdf':void 0x0};}function Ot(_0x2b1407){const _0x4c7173=_0x4903ec;let _0x4c567={};return _0x2b1407[_0x4c7173(0x181)](_0x5699be=>{const _0x1d1cdc=_0x4c7173;_0x4c567[_0x5699be['id']]={..._0x5699be,'data':_0x51219f(_0x41a199[_0x1d1cdc(0x167)](_0x5699be[_0x1d1cdc(0x1c2)]))};}),_0x4c567;}var kt=class{constructor(){const _0x2f8cc8=_0x4903ec;L(this,_0x2f8cc8(0x1f0),new Map());}[_0x4903ec(0x165)](){const _0x48dfef=_0x4903ec;return Promise[_0x48dfef(0x1a2)]({'snapshot':{'unitID':'','type':_0x2cfd86[_0x48dfef(0x1da)],'rev':0x0,'workbook':void 0x0,'doc':void 0x0,'slide':void 0x0,'board':void 0x0},'changesets':[],'error':{'code':_0x6f2d17['OK'],'message':''}});}[_0x4903ec(0x134)](_0x3f9f1a,_0x270d6d){const _0x2acc16=_0x4903ec;let _0x2017fb=this[_0x2acc16(0x1f0)][_0x2acc16(0x117)](_0x270d6d[_0x2acc16(0x1aa)]);return Promise['resolve']({'block':_0x2017fb,'error':{'code':_0x6f2d17['OK'],'message':''}});}[_0x4903ec(0x221)](_0x58521c,_0x1e326f){const _0x5ddd40=_0x4903ec;let _0x223a74=this[_0x5ddd40(0x1f0)]['get'](_0x1e326f[_0x5ddd40(0x1aa)]);return Promise['resolve']({'block':_0x223a74===void 0x0?void 0x0:{..._0x223a74,'data':JSON[_0x5ddd40(0x1f3)](_0x41a199[_0x5ddd40(0x167)](_0x223a74[_0x5ddd40(0x1c2)]))},'error':{'code':_0x6f2d17['OK'],'message':''}});}[_0x4903ec(0x174)](){return Promise['resolve']({'changesets':[],'error':{'code':_0x6f2d17['OK'],'message':''}});}[_0x4903ec(0xee)](){const _0x1ebe0b=_0x4903ec;return Promise[_0x1ebe0b(0x1a2)]({'resources':{},'error':{'code':_0x6f2d17['OK'],'message':''}});}[_0x4903ec(0x190)](){const _0x3c3667=_0x4903ec;return Promise[_0x3c3667(0x1a2)]({'error':{'code':_0x6f2d17['OK'],'message':''}});}['updateSnapshot'](){const _0x3150f7=_0x4903ec;return Promise[_0x3150f7(0x1a2)]({'error':{'code':_0x6f2d17['OK'],'message':''}});}[_0x4903ec(0xca)](_0x136b34,_0x152175){const _0x40bfba=_0x4903ec;let {block:_0x39db8a}=_0x152175;return _0x39db8a?(this[_0x40bfba(0x1f0)][_0x40bfba(0x20a)](_0x39db8a['id'],_0x39db8a),Promise['resolve']({'error':{'code':_0x6f2d17['OK'],'message':''},'blockID':_0x39db8a['id']})):Promise['resolve']({'error':{'code':_0x6f2d17['UNDEFINED'],'message':'block\x20is\x20required'},'blockID':''});}['saveChangeset'](){const _0x16ba1b=_0x4903ec;return Promise[_0x16ba1b(0x1a2)]({'error':{'code':_0x6f2d17['OK'],'message':''},'concurrent':[]});}[_0x4903ec(0x140)](){const _0x129001=_0x4903ec;return Promise[_0x129001(0x1a2)]({'error':void 0x0,'fileMetaId':''});}['getLatestCsReqIdBySid'](){return Promise['resolve']({'error':void 0x0,'latestReqID':0x0});}};export{kt as ClientSnapshotServerService,H as EXPORT_FORMAT_DIALOG,lt as ExchangeBaseExportMode,ct as ExchangeBaseFormulaPolicy,st as ExchangeBaseImportMode,ot as ExchangeDocType,at as ExchangeFormat,q as IExchangeOperateService,W as IExchangeService,it as ImportOutputType,X as UniverExchangeClientMobileUIPlugin,$ as UniverExchangeClientPlugin,Et as isCurrentUnitLoadedFromServer,Ot as transformSheetBlockMetaToString,Dt as transformWorkbookSnapshotMetaToString};
1
+ const _0x524650=_0x3d1e;(function(_0x2c7568,_0x1ae85e){const _0x5af104=_0x3d1e,_0x1488d5=_0x2c7568();while(!![]){try{const _0x275c7a=-parseInt(_0x5af104(0x1df))/0x1+-parseInt(_0x5af104(0x1e1))/0x2+-parseInt(_0x5af104(0x172))/0x3+parseInt(_0x5af104(0x15e))/0x4+-parseInt(_0x5af104(0x186))/0x5+-parseInt(_0x5af104(0x175))/0x6*(parseInt(_0x5af104(0x158))/0x7)+parseInt(_0x5af104(0x17b))/0x8;if(_0x275c7a===_0x1ae85e)break;else _0x1488d5['push'](_0x1488d5['shift']());}catch(_0x338403){_0x1488d5['push'](_0x1488d5['shift']());}}}(_0x2322,0x9f900));import{UniverLicensePlugin as _0x4b875e}from'@univerjs-pro/license';import{DependentOn as _0x188883,Disposable as _0x5e593b,IConfigService as _0x54f9cd,Inject as _0x58ff1a,Injector as _0x29f00d,Plugin as _0x551cab,UniverInstanceType as _0x378b3c,createIdentifier as _0x2bb6c2,merge as _0x3c783e,registerDependencies as _0x5b5d4b,resolveWithBasePath as _0x419213}from'@univerjs/core';import{HTTPEventType as _0x4ca73f,HTTPResponseError as _0x5e60a6,HTTPService as _0x4b3b22,UniverNetworkPlugin as _0x24fb05}from'@univerjs/network';import{b64EncodeUnicode as _0x4d2ca6,textDecoder as _0x2c0e79,textEncoder as _0x504420}from'@univerjs-pro/collaboration';import{ErrorCode as _0x4c5264,FileSource as _0x864920}from'@univerjs/protocol';import{deflateSync as _0x17b490}from'fflate';import{Subject as _0x503d55}from'rxjs';var ie='@univerjs-pro/exchange-client',y=_0x524650(0x12e);const b=_0x524650(0x12a),x={},S=_0x524650(0x19a),C=_0x524650(0x154),w='application/vnd.ms-excel',T=_0x524650(0x12b),E=_0x524650(0x1ff),D='text/tab-separated-values',O=_0x524650(0x13b),k='application/vnd.openxmlformats-officedocument.presentationml.presentation',A=_0x524650(0x1d0),j={[_0x378b3c[_0x524650(0x199)]]:[''],[_0x378b3c[_0x524650(0x1c0)]]:[C,S],[_0x378b3c[_0x524650(0x1e4)]]:[w,T,E,D],[_0x378b3c[_0x524650(0x1de)]]:[O,k],[_0x378b3c[_0x524650(0x17d)]]:[A],[_0x378b3c[_0x524650(0x179)]]:[w,T,E,D],[_0x378b3c[_0x524650(0x138)]]:[''],[_0x378b3c['UNIVER_PROJECT']]:[''],[_0x378b3c['UNRECOGNIZED']]:['']},M={[C]:'doc',[S]:_0x524650(0x20b),[w]:_0x524650(0x1c1),[T]:_0x524650(0x1a6),[E]:_0x524650(0x180),[D]:_0x524650(0x147),[O]:_0x524650(0x209),[k]:_0x524650(0x188),[A]:_0x524650(0x182)};Object[_0x524650(0x19f)](Object[_0x524650(0x1b0)](j)['map'](([_0x32b5e8,_0x29af14])=>[_0x32b5e8,_0x29af14[_0x524650(0x1a7)](_0x140d29=>M[_0x140d29])[_0x524650(0x183)](Boolean)]));function N(_0x583a60,_0x5db5b1,_0x4ff0d7){const _0x18586c=_0x524650;let _0x79406d=document['createElement']('a');_0x79406d['href']=_0x583a60,_0x79406d['style'][_0x18586c(0x17e)]='none',_0x79406d['download']=_0x5db5b1+'.'+_0x4ff0d7,document['body'][_0x18586c(0x15c)](_0x79406d),_0x79406d[_0x18586c(0x1c5)](),document[_0x18586c(0x192)][_0x18586c(0x187)](_0x79406d);}async function P(_0x59b91c,_0x1bd975){const _0x291aaa=_0x524650;try{return await F(_0x59b91c,_0x1bd975);}catch(_0x145428){console[_0x291aaa(0x1e9)](_0x291aaa(0x1b5),_0x145428);return;}}async function F(_0xeb38d6,_0x600a42,_0x4db280){const _0xa99c99=_0x524650;var _0x5a8d82,_0xf98d49;let _0x3093c9=_0x4db280?await ae(_0xeb38d6,_0x600a42,_0x4db280):await _0x600a42['get'](_0xeb38d6,{'responseType':'blob'}),_0x591f02=_0x3093c9['body'],_0x12bd49=((_0x5a8d82=_0x3093c9['headers'][_0xa99c99(0x1d4)](_0xa99c99(0x193)))==null?void 0x0:_0x5a8d82[_0xa99c99(0x1aa)](',\x20'))??_0xa99c99(0x1b9),_0x2dda13=_0xa99c99(0x201)+(M[_0x12bd49]||'xlsx'),_0x4de5ee=(_0xf98d49=_0x3093c9[_0xa99c99(0x14e)][_0xa99c99(0x1d4)](_0xa99c99(0x1c7)))==null?void 0x0:_0xf98d49['join'](',\x20');if(_0x4de5ee){let _0x1d02ff=_0x4de5ee[_0xa99c99(0x1c6)](/filename=(.+)/);_0x1d02ff&&_0x1d02ff[0x1]&&(_0x2dda13=_0x1d02ff[0x1]);}else _0x2dda13=I(_0xeb38d6)||_0x2dda13;return new File([_0x591f02],_0x2dda13,{'type':_0x12bd49});}function ae(_0x3023d5,_0x4de4b6,_0x232c96){return new Promise((_0x3d9e8e,_0x26dc3d)=>{const _0x362a6e=_0x3d1e;let _0x324abb=!0x1,_0x1bdb79,_0x1d15b1=()=>_0x232c96[_0x362a6e(0x204)](_0x362a6e(0x203),_0x3cfe3a),_0x3cfe3a=()=>{const _0x52ba4a=_0x362a6e;if(_0x324abb)return;_0x324abb=!0x0,_0x1bdb79==null||_0x1bdb79[_0x52ba4a(0x1f3)](),_0x1d15b1();let _0x986d21=Error(_0x52ba4a(0x1f2));_0x986d21['name']=_0x52ba4a(0x141),_0x26dc3d(_0x986d21);};_0x232c96[_0x362a6e(0x14a)](_0x362a6e(0x203),_0x3cfe3a,{'once':!0x0}),_0x232c96[_0x362a6e(0x157)]?_0x3cfe3a():(_0x1bdb79=_0x4de4b6[_0x362a6e(0x1e8)]('GET',_0x3023d5,{'responseType':_0x362a6e(0x1c8)})[_0x362a6e(0x1af)]({'next'(_0x46b8ec){const _0x3da9c3=_0x362a6e;_0x324abb||_0x46b8ec[_0x3da9c3(0x16f)]!==_0x4ca73f['Response']||(_0x324abb=!0x0,_0x1d15b1(),_0x1bdb79==null||_0x1bdb79[_0x3da9c3(0x1f3)](),_0x3d9e8e(_0x46b8ec));},'error'(_0x3c2b2c){_0x324abb||(_0x324abb=!0x0,_0x1d15b1(),_0x26dc3d(_0x3c2b2c));},'complete'(){const _0x4d5319=_0x362a6e;_0x324abb||(_0x324abb=!0x0,_0x1d15b1(),_0x26dc3d(Error(_0x4d5319(0x1a3))));}}),_0x324abb&&_0x1bdb79['unsubscribe']());});}function _0x3d1e(_0x223012,_0x573436){_0x223012=_0x223012-0x125;const _0x2322a8=_0x2322();let _0x3d1e65=_0x2322a8[_0x223012];return _0x3d1e65;}function I(_0x4e8b23){const _0xf566c8=_0x524650;try{return new URL(_0x4e8b23)[_0xf566c8(0x191)][_0xf566c8(0x1a5)]('/')[_0xf566c8(0x1d9)]();}catch(_0x5de4c1){console[_0xf566c8(0x1e9)](_0xf566c8(0x19c),_0x5de4c1);return;}}function L(_0x4a9637){const _0x195bd7=_0x524650;let _0xde5e9=new Blob([_0x4a9637[_0x195bd7(0x189)]],{'type':'application/json'});return new File([_0xde5e9],_0x195bd7(0x1d5));}function R(_0x21ec86,_0x445e86){const _0x5043d7=_0x524650;return _0x21ec86[_0x5043d7(0x1ee)](_0x5043d7(0x1f0),_0x445e86);}function z(_0x15a661,_0x165dcd){const _0x8a619c=_0x524650;return _0x15a661[_0x8a619c(0x1ee)](_0x8a619c(0x177),_0x165dcd);}function B(_0x5b77f3,_0x40b3bd){const _0x18b940=_0x524650;return _0x5b77f3['replace'](_0x18b940(0x171),_0x40b3bd);}function V(_0x3150b1){'@babel/helpers - typeof';const _0xe5220f=_0x524650;return V=typeof Symbol=='function'&&typeof Symbol['iterator']==_0xe5220f(0x127)?function(_0x41c430){return typeof _0x41c430;}:function(_0x29ab04){const _0x92d9e7=_0xe5220f;return _0x29ab04&&typeof Symbol==_0x92d9e7(0x13f)&&_0x29ab04[_0x92d9e7(0x15f)]===Symbol&&_0x29ab04!==Symbol[_0x92d9e7(0x16c)]?_0x92d9e7(0x127):typeof _0x29ab04;},V(_0x3150b1);}function H(_0x5504b2,_0x22f56d){const _0x502d4f=_0x524650;if(V(_0x5504b2)!=_0x502d4f(0x1fa)||!_0x5504b2)return _0x5504b2;var _0x5a1e99=_0x5504b2[Symbol[_0x502d4f(0x1fb)]];if(_0x5a1e99!==void 0x0){var _0xd3c792=_0x5a1e99[_0x502d4f(0x161)](_0x5504b2,_0x22f56d||_0x502d4f(0x1cf));if(V(_0xd3c792)!=_0x502d4f(0x1fa))return _0xd3c792;throw TypeError(_0x502d4f(0x1e7));}return(_0x22f56d===_0x502d4f(0x149)?String:Number)(_0x5504b2);}function U(_0x11cec5){const _0x4a9b1d=_0x524650;var _0x1275b1=H(_0x11cec5,'string');return V(_0x1275b1)==_0x4a9b1d(0x127)?_0x1275b1:_0x1275b1+'';}function W(_0xdef296,_0xb0ca3c,_0x501749){return(_0xb0ca3c=U(_0xb0ca3c))in _0xdef296?Object['defineProperty'](_0xdef296,_0xb0ca3c,{'value':_0x501749,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xdef296[_0xb0ca3c]=_0x501749,_0xdef296;}function G(_0x5ea1e9,_0x1efcf2){return function(_0x4e5c79,_0x59d699){_0x1efcf2(_0x4e5c79,_0x59d699,_0x5ea1e9);};}function K(_0x28f1e2,_0x18672f,_0x3dcf6c,_0xdc1985){const _0x28d822=_0x524650;var _0x42779d=arguments[_0x28d822(0x1e0)],_0x423949=_0x42779d<0x3?_0x18672f:_0xdc1985===null?_0xdc1985=Object[_0x28d822(0x126)](_0x18672f,_0x3dcf6c):_0xdc1985,_0x37cdc7;if(typeof Reflect==_0x28d822(0x1fa)&&typeof Reflect[_0x28d822(0x1ed)]==_0x28d822(0x13f))_0x423949=Reflect[_0x28d822(0x1ed)](_0x28f1e2,_0x18672f,_0x3dcf6c,_0xdc1985);else{for(var _0x2dd859=_0x28f1e2['length']-0x1;_0x2dd859>=0x0;_0x2dd859--)(_0x37cdc7=_0x28f1e2[_0x2dd859])&&(_0x423949=(_0x42779d<0x3?_0x37cdc7(_0x423949):_0x42779d>0x3?_0x37cdc7(_0x18672f,_0x3dcf6c,_0x423949):_0x37cdc7(_0x18672f,_0x3dcf6c))||_0x423949);}return _0x42779d>0x3&&_0x423949&&Object[_0x28d822(0x13a)](_0x18672f,_0x3dcf6c,_0x423949),_0x423949;}let q=function(_0x4c3db3){const _0x595221=_0x524650;return _0x4c3db3[_0x4c3db3[_0x595221(0x18f)]=0x0]='UNDEFINED',_0x4c3db3[_0x4c3db3['UNIT']=0x1]='UNIT',_0x4c3db3[_0x4c3db3[_0x595221(0x150)]=0x2]='JSON',_0x4c3db3[_0x4c3db3['UNRECOGNIZED']=-0x1]=_0x595221(0x200),_0x4c3db3;}({}),oe=function(_0xfda09a){const _0x16ff4a=_0x524650;return _0xfda09a[_0x16ff4a(0x19e)]=_0x16ff4a(0x1a6),_0xfda09a['CSV']='csv',_0xfda09a[_0x16ff4a(0x168)]=_0x16ff4a(0x147),_0xfda09a['DOCX']=_0x16ff4a(0x20b),_0xfda09a['PPTX']=_0x16ff4a(0x188),_0xfda09a[_0x16ff4a(0x207)]='pdf',_0xfda09a;}({}),J=function(_0x20c855){const _0x5cd626=_0x524650;return _0x20c855[_0x5cd626(0x136)]=_0x5cd626(0x1f8),_0x20c855[_0x5cd626(0x1d3)]=_0x5cd626(0x1ae),_0x20c855;}({}),se=function(_0x24fd13){const _0x3c39ea=_0x524650;return _0x24fd13[_0x3c39ea(0x16a)]=_0x3c39ea(0x1eb),_0x24fd13[_0x3c39ea(0x1b7)]='tables',_0x24fd13[_0x3c39ea(0x1e5)]=_0x3c39ea(0x170),_0x24fd13[_0x3c39ea(0x13c)]=_0x3c39ea(0x1be),_0x24fd13;}({}),ce=function(_0x445997){const _0x44ec65=_0x524650;return _0x445997[_0x44ec65(0x12c)]='convert-then-values',_0x445997[_0x44ec65(0x1db)]=_0x44ec65(0x156),_0x445997[_0x44ec65(0x17a)]=_0x44ec65(0x1dc),_0x445997[_0x44ec65(0x1d7)]=_0x44ec65(0x1f7),_0x445997;}({}),le=function(_0x204891){const _0x500a60=_0x524650;return _0x204891[_0x500a60(0x1b7)]=_0x500a60(0x14c),_0x204891[_0x500a60(0x1a4)]=_0x500a60(0x151),_0x204891;}({});const Y=_0x2bb6c2('univer-pro.exchange-client.request.service');let X=class{constructor(_0x22bc78,_0x346ee5){this['_configService']=_0x22bc78,this['_httpService']=_0x346ee5,W(this,'_taskInterrupted',new Set());}[_0x524650(0x142)](){}[_0x524650(0x176)](_0x32a6fa){const _0xbf5b6e=_0x524650;this[_0xbf5b6e(0x17c)]['add'](_0x32a6fa);}['clearTaskInterrupted'](){const _0x4066a8=_0x524650;this['_taskInterrupted'][_0x4066a8(0x152)]();}async['upload'](_0x1c999a,_0x75bcf1=0x0,_0x48d37a=!0x1){const _0x13e1bf=_0x524650;if(typeof _0x1c999a=='string'){let _0x54b8dc=await P(_0x1c999a,this[_0x13e1bf(0x18a)]);if(!_0x54b8dc)throw Error(_0x13e1bf(0x1ab));_0x1c999a=_0x54b8dc;}_0x75bcf1||=_0x1c999a['size'];let _0x48d90b=new FormData();_0x48d90b['append'](_0x13e1bf(0x1ce),_0x1c999a);try{let _0x3a980d=this['_getUploadFileURL']()+_0x13e1bf(0x20d)+_0x75bcf1+_0x13e1bf(0x1c3)+_0x864920['HttpImport']+_0x13e1bf(0x1c2)+_0x48d37a,_0x5c9b2d={'body':_0x48d90b},_0x51daa9=(await this['_httpService'][_0x13e1bf(0x196)](_0x3a980d,_0x5c9b2d))[_0x13e1bf(0x192)];if(_0x51daa9[_0x13e1bf(0x1e9)]&&_0x51daa9['error'][_0x13e1bf(0x1b2)]!==_0x4c5264['OK'])throw Error(this[_0x13e1bf(0x1e6)](_0x13e1bf(0x1f4),_0x51daa9['error']));return _0x51daa9;}catch(_0xf30951){throw _0xf30951 instanceof Error?_0xf30951:Error(this[_0x13e1bf(0x1d6)]('upload\x20request\x20failed',_0xf30951));}}async['import'](_0x27c84d){const _0x3b0763=_0x524650;let {type:_0x34d15e,..._0x4e227f}=_0x27c84d;try{let _0x4eb28f=R(this[_0x3b0763(0x14b)](),''+_0x34d15e),_0x48f329={'body':_0x4e227f},_0x1c9314=(await this[_0x3b0763(0x18a)][_0x3b0763(0x196)](_0x4eb28f,_0x48f329))[_0x3b0763(0x192)];return _0x1c9314[_0x3b0763(0x1e9)]&&_0x1c9314['error'][_0x3b0763(0x1b2)]!==_0x4c5264['OK']?void 0x0:_0x1c9314;}catch{return;}}async[_0x524650(0x1b1)](_0x3d4743){const _0x5b4e69=_0x524650;let {type:_0x4faba4}=_0x3d4743;try{let _0x4eeb3b=R(this[_0x5b4e69(0x14f)](),''+_0x4faba4),_0xd1a6e2={'body':_0x3d4743},_0x1a20ad=(await this[_0x5b4e69(0x18a)][_0x5b4e69(0x196)](_0x4eeb3b,_0xd1a6e2))[_0x5b4e69(0x192)];return _0x1a20ad['error']&&_0x1a20ad[_0x5b4e69(0x1e9)][_0x5b4e69(0x1b2)]!==_0x4c5264['OK']?void 0x0:_0x1a20ad;}catch{return;}}async[_0x524650(0x206)](_0x1673a4){return new Promise((_0x155062,_0x5d80f8)=>{const _0x2da1e0=_0x3d1e;try{let _0x277878=0x0,_0x431e21=z(this['_getTaskURL'](),''+_0x1673a4),_0x158c0d=this[_0x2da1e0(0x1ba)](),_0x4f9e0d=async()=>{const _0x36aa58=_0x2da1e0;if(this['_taskInterrupted'][_0x36aa58(0x1e2)](_0x1673a4))return;let _0x197828=(await this[_0x36aa58(0x18a)][_0x36aa58(0x1d4)](_0x431e21))[_0x36aa58(0x192)];if(_0x197828[_0x36aa58(0x1e9)]&&_0x197828[_0x36aa58(0x1e9)]['code']===_0x4c5264['OK']){if(_0x197828[_0x36aa58(0x1fc)]===_0x36aa58(0x16e))_0x155062(_0x197828);else{if(_0x197828[_0x36aa58(0x1fc)]===_0x36aa58(0x15b)){let _0x1a11f4=0x3e8;if(_0x277878>=_0x158c0d){_0x5d80f8(_0x197828);return;}_0x277878>=0x7530&&(_0x1a11f4=0x1388),_0x277878+=_0x1a11f4,setTimeout(_0x4f9e0d,_0x1a11f4);}else _0x5d80f8(_0x197828);}}else _0x5d80f8(_0x197828);};_0x4f9e0d();}catch(_0x8969d4){_0x5d80f8(_0x8969d4 instanceof Error?_0x8969d4:Error(String(_0x8969d4)));}});}async[_0x524650(0x1ec)](_0x3aeca7){const _0x5463c1=_0x524650;try{let _0x50dcc0=B(this[_0x5463c1(0x164)](),''+_0x3aeca7);return(await this[_0x5463c1(0x18a)][_0x5463c1(0x1d4)](_0x50dcc0))[_0x5463c1(0x192)];}catch{return;}}async[_0x524650(0x17f)](_0x1bc816){const _0x28fc4e=_0x524650;try{return(await this['_httpService'][_0x28fc4e(0x1d4)](_0x1bc816,{'responseType':_0x28fc4e(0x1dc)}))['body'];}catch{return;}}[_0x524650(0x1e6)](_0x4ebe2f,_0x3c78c5){const _0x15b6cb=_0x524650;let _0x5aee0e=this[_0x15b6cb(0x1f5)](_0x3c78c5);return _0x5aee0e?_0x4ebe2f+':\x20'+_0x5aee0e:_0x4ebe2f;}['_buildHttpErrorMessage'](_0x566c9d,_0x5a634a){const _0x429f6f=_0x524650;if(_0x5a634a instanceof _0x5e60a6){let _0x599a97=typeof _0x5a634a[_0x429f6f(0x1fc)]==_0x429f6f(0x20a)?''+_0x5a634a[_0x429f6f(0x1fc)]+(_0x5a634a[_0x429f6f(0x13e)]?'\x20'+_0x5a634a['statusText']:''):void 0x0,_0x485ef1=this[_0x429f6f(0x1f5)](_0x5a634a['error']);return _0x599a97&&_0x485ef1?_0x566c9d+_0x429f6f(0x166)+_0x599a97+_0x429f6f(0x198)+_0x485ef1:_0x599a97?_0x566c9d+_0x429f6f(0x166)+_0x599a97:_0x485ef1?_0x566c9d+':\x20'+_0x485ef1:_0x566c9d;}let _0x9e3bdb=this[_0x429f6f(0x1f5)](_0x5a634a);return _0x9e3bdb?_0x566c9d+':\x20'+_0x9e3bdb:_0x566c9d;}[_0x524650(0x1f5)](_0xe626ca){const _0x35ed00=_0x524650;if(typeof _0xe626ca==_0x35ed00(0x149)){let _0x4c5aec=_0xe626ca[_0x35ed00(0x195)]();return _0x4c5aec['length']>0x0?_0x4c5aec:void 0x0;}if(_0xe626ca instanceof Error)return this[_0x35ed00(0x1f5)](_0xe626ca[_0x35ed00(0x18e)]);if(!_0xe626ca||typeof _0xe626ca!=_0x35ed00(0x1fa)||Array[_0x35ed00(0x1b4)](_0xe626ca))return;let _0x1fbcab=_0xe626ca,_0x6db038=this[_0x35ed00(0x1f5)](_0x1fbcab[_0x35ed00(0x18e)]);if(_0x6db038)return _0x6db038;if(_0x1fbcab[_0x35ed00(0x1e9)]&&typeof _0x1fbcab[_0x35ed00(0x1e9)]=='object'&&!Array['isArray'](_0x1fbcab[_0x35ed00(0x1e9)])){let _0x1bd1e2=this[_0x35ed00(0x1f5)](_0x1fbcab[_0x35ed00(0x1e9)]);if(_0x1bd1e2)return _0x1bd1e2;}}[_0x524650(0x16d)](){const _0x5566f1=_0x524650;let _0x4bdb95=this[_0x5566f1(0x1d1)][_0x5566f1(0x18d)](b);return(_0x4bdb95==null?void 0x0:_0x4bdb95[_0x5566f1(0x15a)])??_0x5566f1(0x146);}[_0x524650(0x14b)](){const _0x590e40=_0x524650;let _0x485840=this[_0x590e40(0x1d1)][_0x590e40(0x18d)](b);return(_0x485840==null?void 0x0:_0x485840['importServerUrl'])??_0x590e40(0x155);}[_0x524650(0x14f)](){const _0x2da4b8=_0x524650;let _0x49ed5e=this[_0x2da4b8(0x1d1)][_0x2da4b8(0x18d)](b);return(_0x49ed5e==null?void 0x0:_0x49ed5e['exportServerUrl'])??_0x2da4b8(0x19d);}[_0x524650(0x174)](){const _0x1c6a40=_0x524650;let _0x57bdba=this[_0x1c6a40(0x1d1)]['getConfig'](b);return(_0x57bdba==null?void 0x0:_0x57bdba['getTaskServerUrl'])??_0x1c6a40(0x1bc);}[_0x524650(0x164)](){const _0xd4cb51=_0x524650;let _0x3b9871=this[_0xd4cb51(0x1d1)][_0xd4cb51(0x18d)](b);return(_0x3b9871==null?void 0x0:_0x3b9871[_0xd4cb51(0x159)])??_0xd4cb51(0x12f);}[_0x524650(0x1ba)](){const _0x363694=_0x524650;let _0x3fde76=this['_configService'][_0x363694(0x18d)](b);return(_0x3fde76==null?void 0x0:_0x3fde76[_0x363694(0x173)])??0x1d4c0;}};X=K([G(0x0,_0x54f9cd),G(0x1,_0x58ff1a(_0x4b3b22))],X);const Z=_0x2bb6c2(_0x524650(0x132));let Q=class extends _0x5e593b{constructor(_0x2cb779,_0x558896,_0x35a43d){const _0xa7ea19=_0x524650;super(),this[_0xa7ea19(0x1d1)]=_0x2cb779,this[_0xa7ea19(0x18a)]=_0x558896,this[_0xa7ea19(0x1bb)]=_0x35a43d,W(this,_0xa7ea19(0x202),null),W(this,_0xa7ea19(0x1da),new _0x503d55()),W(this,_0xa7ea19(0x19b),this[_0xa7ea19(0x1da)][_0xa7ea19(0x1a1)]());}[_0x524650(0x142)](){const _0x110dd3=_0x524650;super['dispose'](),this[_0x110dd3(0x1da)][_0x110dd3(0x205)]();}['downloadFile'](_0x843598,_0x561ce5,_0x39ce84){const _0x29e6f4=_0x524650;let _0x36b716=URL[_0x29e6f4(0x133)](_0x843598);N(_0x36b716,_0x561ce5,_0x39ce84),URL[_0x29e6f4(0x153)](_0x36b716);}async['getFileById'](_0x5ae420,_0x1269dc){const _0x335dc5=_0x524650;if(_0x1269dc!=null&&_0x1269dc['aborted'])return;let _0x5222ff=await this[_0x335dc5(0x163)](_0x5ae420);if(!(!_0x5222ff||_0x1269dc!=null&&_0x1269dc['aborted']))return F(_0x5222ff,this[_0x335dc5(0x18a)],_0x1269dc);}async[_0x524650(0x1cd)](_0x29b6d3,_0x2d68c3,_0xe76209){const _0x43c9b8=_0x524650;var _0x5df2b7,_0x384049;let _0x5ddb67=await this[_0x43c9b8(0x130)](_0x29b6d3);if(!_0x5ddb67)return;let _0x39d79c=await this['_import'](_0x5ddb67,0x1,_0x2d68c3,_0xe76209);if(!_0x39d79c)return;this['_importTaskId']=_0x39d79c,this[_0x43c9b8(0x1bb)][_0x43c9b8(0x1b6)]();let _0x12c7fc=await this[_0x43c9b8(0x1bb)][_0x43c9b8(0x206)](_0x39d79c)[_0x43c9b8(0x169)](_0x138da3=>{const _0x3912bf=_0x43c9b8;var _0x5af144;let _0x51cf45=_0x138da3 instanceof Error?_0x138da3[_0x3912bf(0x18e)]:(_0x5af144=_0x138da3[_0x3912bf(0x1e9)])==null?void 0x0:_0x5af144[_0x3912bf(0x18e)];this[_0x3912bf(0x1da)][_0x3912bf(0x162)]({'error':{'code':_0x4c5264[_0x3912bf(0x200)],'message':_0x51cf45||''},'state':0x3});});if(!_0x12c7fc)return;let _0x1697ec=(_0x5df2b7=_0x12c7fc['import'])==null?void 0x0:_0x5df2b7[_0x43c9b8(0x129)],_0xc4ffd4=((_0x384049=_0x12c7fc[_0x43c9b8(0x1a2)])==null?void 0x0:_0x384049[_0x43c9b8(0x1b8)])||'';if(_0x1697ec!==0x1)this['_requestState$']['next']({'error':{'code':_0x4c5264[_0x43c9b8(0x200)],'message':_0x43c9b8(0x1a0)},'state':0x3});else{if(_0xc4ffd4[_0x43c9b8(0x1e0)]===0x0)this[_0x43c9b8(0x1da)]['next']({'error':{'code':_0x4c5264[_0x43c9b8(0x200)],'message':_0x43c9b8(0x128)},'state':0x3});else return this['_requestState$'][_0x43c9b8(0x162)]({'error':_0x12c7fc['error'],'state':0x3}),_0xc4ffd4;}}async[_0x524650(0x1ad)](_0x1dd49d,_0x448a46,_0x3592a0){return this['_importToJson'](_0x1dd49d,_0x448a46,_0x3592a0);}async[_0x524650(0x1a8)](_0x5c469f,_0x52bae1,_0x3ab8dd,_0x425da9){const _0x2a0e0c=_0x524650;return this[_0x2a0e0c(0x1e3)](_0x5c469f,0x1,_0x52bae1,_0x3ab8dd,_0x425da9);}async[_0x524650(0x1fe)](_0x334a08,_0xa02550,_0x55d0ba,_0x4c0a16){const _0x4581bd=_0x524650;return this[_0x4581bd(0x145)](_0x334a08,_0xa02550,_0x55d0ba,_0x4c0a16);}['interruptImportTask'](){const _0x5943eb=_0x524650;this[_0x5943eb(0x202)]&&this[_0x5943eb(0x1bb)][_0x5943eb(0x176)](this[_0x5943eb(0x202)]);}async[_0x524650(0x181)](_0x21aba7,_0x32761e,_0x3f4739){const _0x5067ed=_0x524650;var _0x121f2d,_0x34bfda;let _0x5e9554=await this[_0x5067ed(0x130)](_0x21aba7);if(!_0x5e9554)return;let _0x264202=await this['_import'](_0x5e9554,0x2,_0x32761e,_0x3f4739);if(!_0x264202)return;this[_0x5067ed(0x202)]=_0x264202,this[_0x5067ed(0x1bb)]['clearTaskInterrupted']();let _0x10e4f8=await this[_0x5067ed(0x1bb)]['getTask'](_0x264202)[_0x5067ed(0x169)](_0x229a31=>{const _0x53a798=_0x5067ed;var _0x17107b;let _0x184e6b=_0x229a31 instanceof Error?_0x229a31['message']:(_0x17107b=_0x229a31[_0x53a798(0x1e9)])==null?void 0x0:_0x17107b[_0x53a798(0x18e)];this[_0x53a798(0x1da)][_0x53a798(0x162)]({'error':{'code':_0x4c5264[_0x53a798(0x200)],'message':_0x184e6b||''},'state':0x3});});if(!_0x10e4f8)return;let _0x744da5=(_0x121f2d=_0x10e4f8[_0x5067ed(0x1a2)])==null?void 0x0:_0x121f2d[_0x5067ed(0x129)],_0x3c1e80=((_0x34bfda=_0x10e4f8[_0x5067ed(0x1a2)])==null?void 0x0:_0x34bfda[_0x5067ed(0x1ef)])||'';if(_0x744da5!==0x2){this[_0x5067ed(0x1da)][_0x5067ed(0x162)]({'error':{'code':_0x4c5264[_0x5067ed(0x200)],'message':'Get\x20outputType\x20error'},'state':0x3});return;}if(_0x3c1e80[_0x5067ed(0x1e0)]===0x0){this[_0x5067ed(0x1da)][_0x5067ed(0x162)]({'error':{'code':_0x4c5264[_0x5067ed(0x200)],'message':_0x5067ed(0x160)},'state':0x3});return;}this['_requestState$'][_0x5067ed(0x162)]({'error':_0x10e4f8[_0x5067ed(0x1e9)],'state':0x3});let _0x135752=await this[_0x5067ed(0x163)](_0x3c1e80);if(!_0x135752)return;let _0x4c13b7=await this[_0x5067ed(0x1bb)]['getTextFromUrl'](_0x135752);if(!_0x4c13b7)this[_0x5067ed(0x1da)]['next']({'error':{'code':_0x4c5264[_0x5067ed(0x200)],'message':_0x5067ed(0x1bf)},'state':0x5});else try{let _0xa3f2b7=JSON[_0x5067ed(0x178)](_0x4c13b7);return this['_requestState$'][_0x5067ed(0x162)]({'error':{'code':_0x4c5264['OK'],'message':_0x5067ed(0x1ac)},'state':0x5}),_0xa3f2b7;}catch{this[_0x5067ed(0x1da)][_0x5067ed(0x162)]({'error':{'code':_0x4c5264['UNRECOGNIZED'],'message':_0x5067ed(0x1c9)},'state':0x5});}}async['_exportBySnapshot'](_0x1a4824,_0x4f945e,_0x4d347a,_0x459cd2){const _0x535c4b=_0x524650;let _0x1a0482=JSON['stringify'](_0x1a4824),_0x3d306d=_0x504420[_0x535c4b(0x139)](_0x1a0482),_0x4a940c=_0x17b490(_0x3d306d),_0x3308b0=_0x3d306d[_0x535c4b(0x1e0)],_0x31609e=L(_0x4a940c),_0x50c630=await this[_0x535c4b(0x130)](_0x31609e,_0x3308b0,!0x0);if(_0x50c630)return this[_0x535c4b(0x1e3)](_0x50c630,0x2,_0x4f945e,_0x4d347a,_0x459cd2);}async['_export'](_0x5251cf,_0x3d592a,_0x30aebb,_0x366bb9,_0x3f504f){const _0x2fe3fc=_0x524650;var _0x153cf0;let _0xb3794b=await this[_0x2fe3fc(0x1bb)][_0x2fe3fc(0x1b1)]({..._0x3d592a===0x1?{'unitID':_0x5251cf}:{'jsonID':_0x5251cf},'type':_0x30aebb,'format':_0x366bb9,'options':_0x3f504f});if(!_0xb3794b){this[_0x2fe3fc(0x1da)][_0x2fe3fc(0x162)]({'error':{'code':_0x4c5264['UNRECOGNIZED'],'message':_0x2fe3fc(0x1ea)},'state':0x2});return;}if(this[_0x2fe3fc(0x1da)][_0x2fe3fc(0x162)]({'error':_0xb3794b[_0x2fe3fc(0x1e9)],'state':0x2}),_0xb3794b[_0x2fe3fc(0x1e9)]&&_0xb3794b[_0x2fe3fc(0x1e9)][_0x2fe3fc(0x1b2)]!==_0x4c5264['OK'])return;let _0x2977b2=_0xb3794b[_0x2fe3fc(0x1bd)],_0x23f149=await this[_0x2fe3fc(0x1bb)][_0x2fe3fc(0x206)](_0x2977b2)[_0x2fe3fc(0x169)](_0x569f4c=>{const _0x36ba58=_0x2fe3fc;var _0x4c3844;let _0x2c6aa6=_0x569f4c instanceof Error?_0x569f4c[_0x36ba58(0x18e)]:(_0x4c3844=_0x569f4c[_0x36ba58(0x1e9)])==null?void 0x0:_0x4c3844['message'];this[_0x36ba58(0x1da)][_0x36ba58(0x162)]({'error':{'code':_0x4c5264[_0x36ba58(0x200)],'message':_0x2c6aa6||''},'state':0x3});});if(!_0x23f149)return;let _0x2ad761=((_0x153cf0=_0x23f149[_0x2fe3fc(0x1b1)])==null?void 0x0:_0x153cf0['fileID'])||'';if(_0x2ad761['length']===0x0){this['_requestState$'][_0x2fe3fc(0x162)]({'error':{'code':_0x4c5264[_0x2fe3fc(0x200)],'message':_0x2fe3fc(0x1cc)},'state':0x3});return;}this[_0x2fe3fc(0x1da)][_0x2fe3fc(0x162)]({'error':_0x23f149['error'],'state':0x3});let _0x247474=await this['_signUrl'](_0x2ad761);if(!_0x247474)return;let _0x439538=await P(_0x247474,this['_httpService']);if(!_0x439538)this[_0x2fe3fc(0x1da)][_0x2fe3fc(0x162)]({'error':{'code':_0x4c5264[_0x2fe3fc(0x200)],'message':_0x2fe3fc(0x140)},'state':0x6});else return this['_requestState$'][_0x2fe3fc(0x162)]({'error':{'code':_0x4c5264['OK'],'message':'success'},'state':0x6}),_0x439538;}async[_0x524650(0x130)](_0x47e728,_0x2d3b2a,_0x3eb20f){const _0x23efb7=_0x524650;let _0x2362a1;try{_0x2362a1=await this[_0x23efb7(0x1bb)]['upload'](_0x47e728,_0x2d3b2a,_0x3eb20f);}catch(_0x1d2b20){let _0x1bf0fa=_0x1d2b20 instanceof Error?_0x1d2b20[_0x23efb7(0x18e)]:String(_0x1d2b20);this['_requestState$'][_0x23efb7(0x162)]({'error':{'code':_0x4c5264[_0x23efb7(0x200)],'message':_0x1bf0fa},'state':0x0});return;}if(!_0x2362a1||typeof _0x2362a1[_0x23efb7(0x135)]!=_0x23efb7(0x149)){this['_requestState$']['next']({'error':{'code':_0x4c5264[_0x23efb7(0x200)],'message':_0x23efb7(0x12d)},'state':0x0});return;}let _0x3da58d=_0x2362a1[_0x23efb7(0x135)];if(_0x3da58d[_0x23efb7(0x1e0)]===0x0)this[_0x23efb7(0x1da)][_0x23efb7(0x162)]({'error':{'code':_0x4c5264[_0x23efb7(0x200)],'message':_0x23efb7(0x137)},'state':0x0});else return this['_requestState$']['next']({'error':{'code':_0x4c5264['OK'],'message':_0x23efb7(0x1ac)},'state':0x0}),_0x3da58d;}async[_0x524650(0x194)](_0x42e793,_0x1e247d,_0x2b0a3d,_0x5693bf){const _0x2ca3c3=_0x524650;let _0x12fed6={'fileID':_0x42e793,'type':_0x2b0a3d,'outputType':_0x1e247d,'options':_0x5693bf},_0x5cc22a=await this[_0x2ca3c3(0x1bb)]['import'](_0x12fed6);if(!_0x5cc22a){this[_0x2ca3c3(0x1da)][_0x2ca3c3(0x162)]({'error':{'code':_0x4c5264[_0x2ca3c3(0x200)],'message':_0x2ca3c3(0x1f9)},'state':0x1});return;}if(_0x5cc22a[_0x2ca3c3(0x1e9)]&&_0x5cc22a['error']['code']!==_0x4c5264['OK']){this[_0x2ca3c3(0x1da)][_0x2ca3c3(0x162)]({'error':_0x5cc22a[_0x2ca3c3(0x1e9)],'state':0x1});return;}let _0x4b21ad=_0x5cc22a[_0x2ca3c3(0x1bd)];if(_0x4b21ad['length']===0x0)this[_0x2ca3c3(0x1da)][_0x2ca3c3(0x162)]({'error':{'code':_0x4c5264['UNRECOGNIZED'],'message':_0x2ca3c3(0x148)},'state':0x1});else return this['_requestState$']['next']({'error':_0x5cc22a[_0x2ca3c3(0x1e9)],'state':0x1}),_0x4b21ad;}async['_signUrl'](_0x83fc48){const _0x4909fa=_0x524650;let _0x57e60e=await this['_requestService'][_0x4909fa(0x1ec)](_0x83fc48);if(!_0x57e60e){this[_0x4909fa(0x1da)][_0x4909fa(0x162)]({'error':{'code':_0x4c5264['UNRECOGNIZED'],'message':'sign\x20url\x20error'},'state':0x4});return;}if(_0x57e60e[_0x4909fa(0x1e9)]&&_0x57e60e[_0x4909fa(0x1e9)][_0x4909fa(0x1b2)]!==_0x4c5264['OK']){this[_0x4909fa(0x1da)][_0x4909fa(0x162)]({'error':_0x57e60e[_0x4909fa(0x1e9)],'state':0x4});return;}let _0xcb3a03=_0x419213(_0x57e60e[_0x4909fa(0x167)],this[_0x4909fa(0x131)]());if(_0xcb3a03['length']===0x0)this[_0x4909fa(0x1da)][_0x4909fa(0x162)]({'error':{'code':_0x4c5264[_0x4909fa(0x200)],'message':'sign\x20url\x20error'},'state':0x4});else return this[_0x4909fa(0x1da)][_0x4909fa(0x162)]({'error':_0x57e60e['error'],'state':0x4}),_0xcb3a03;}[_0x524650(0x131)](){const _0x41e5c1=_0x524650;let _0x5d5f81=this[_0x41e5c1(0x1d1)][_0x41e5c1(0x18d)](b);return(_0x5d5f81==null?void 0x0:_0x5d5f81[_0x41e5c1(0x14d)])??location[_0x41e5c1(0x15d)];}};function _0x2322(){const _0x296fb4=['content-disposition','blob','Failed\x20to\x20parse\x20json','_config','updateSnapshot','Failed\x20to\x20get\x20fileID\x20from\x20task','importFileToUnitId','file','default','application/pdf','_configService','fetchMissingChangesets','TRADITIONAL','get','file.json','_buildHttpErrorMessage','FAIL','onStarting','pop','_requestState$','VALUES','text','forEach','UNIVER_SLIDE','527749yBDDwJ','length','2463188rUSQhD','has','_export','UNIVER_SHEET','SHEETS','_buildProtocolErrorMessage','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','stream','error','export\x20error','auto','signUrl','decorate','replace','jsonID','{type}','data','File\x20request\x20aborted.','unsubscribe','upload\x20request\x20failed','_extractErrorDetail','getDeserializedSheetBlock','fail','modern','import\x20error','object','toPrimitive','status','resolve','exportFileBySnapshot','text/csv','UNRECOGNIZED','file.','_importTaskId','abort','removeEventListener','complete','getTask','PDF','set','ppt','number','docx','copyFileMeta','?size=','_injector','getOwnPropertyDescriptor','symbol','Failed\x20to\x20get\x20unitID\x20from\x20task','outputType','exchange-client.config','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','CONVERT_THEN_VALUES','upload\x20failed:\x20missing\x20FileId\x20in\x20response','1.2.0','/universer-api/file/{fileID}/sign-url','_upload','_getDownloadEndpointURL','univer-pro.exchange-client.exchange.service','createObjectURL','getLatestCsReqIdBySid','FileId','MODERN','upload\x20failed:\x20FileId\x20is\x20empty','UNIVER_BOARD','encode','defineProperty','application/vnd.ms-powerpoint','HYBRID','workbook','statusText','function','Failed\x20to\x20get\x20file\x20from\x20url','AbortError','dispose','decode','getResourcesRequest','_exportBySnapshot','/universer-api/stream/file/upload','tsv','Failed\x20to\x20get\x20taskID\x20from\x20import\x20response','string','addEventListener','_getImportURL','tables','downloadEndpointUrl','headers','_getExportURL','JSON','ranges','clear','revokeObjectURL','application/msword','/universer-api/exchange/{type}/import','values','aborted','21GLVxUb','signUrlServerUrl','uploadFileServerUrl','pending','appendChild','origin','4593432kbzADE','constructor','Failed\x20to\x20get\x20jsonID\x20from\x20task','call','next','_signUrl','_getSignURL','UNIVER_EXCHANGE_CLIENT_PLUGIN',':\x20HTTP\x20','url','TSV','catch','AUTO','setConfig','prototype','_getUploadFileURL','done','type','sheets','{fileID}','330774iXaRBG','maxTimeoutTime','_getTaskURL','2275644ZavCzw','setTaskInterrupted','{taskID}','parse','UNIVER_BASE','TEXT','28691880giEjfH','_taskInterrupted','UNIVER_PDF','display','getTextFromUrl','csv','_importToJson','pdf','filter','pluginName','_sheetBlockCache','5369260NyOIkl','removeChild','pptx','buffer','_httpService','originalMeta','block\x20is\x20required','getConfig','message','UNDEFINED','saveSnapshot','pathname','body','Content-Type','_import','trim','post','getUnitOnRev','\x20-\x20','UNIVER_UNKNOWN','application/vnd.openxmlformats-officedocument.wordprocessingml.document','requestState$','Error\x20getting\x20file\x20name\x20from\x20URL:','/universer-api/exchange/{type}/export','XLSX','fromEntries','Get\x20outputType\x20error','asObservable','import','File\x20request\x20completed\x20without\x20a\x20response.','RANGES','split','xlsx','map','exportFileByUnitId','saveChangeset','join','upload\x20request\x20failed:\x20failed\x20to\x20read\x20source\x20file\x20from\x20url','success','importFileToJson','traditional','subscribe','entries','export','code','version','isArray','Error\x20fetching\x20file\x20from\x20URL:','clearTaskInterrupted','TABLES','unitID','application/octet-stream','_getMaxPollingTime','_requestService','/universer-api/exchange/task/{taskID}','taskID','hybrid','Failed\x20to\x20get\x20text\x20from\x20url','UNIVER_DOC','xls','&flate=','&source=','saveSheetBlock','click','match'];_0x2322=function(){return _0x296fb4;};return _0x2322();}Q=K([G(0x0,_0x54f9cd),G(0x1,_0x58ff1a(_0x4b3b22)),G(0x2,_0x58ff1a(Y))],Q);let $=class extends _0x551cab{constructor(_0x48fe1e=x,_0x5a34aa,_0x5ef525){const _0x190276=_0x524650;super(),this[_0x190276(0x1ca)]=_0x48fe1e,this[_0x190276(0x125)]=_0x5a34aa,this[_0x190276(0x1d1)]=_0x5ef525;let {..._0x33ac0d}=_0x3c783e({},x,this['_config']);this[_0x190276(0x1d1)][_0x190276(0x16b)](b,_0x33ac0d);}[_0x524650(0x1d8)](){const _0x289069=_0x524650;_0x5b5d4b(this[_0x289069(0x125)],[[Z,{'useClass':Q}],[Y,{'useClass':X}]]);}};W($,_0x524650(0x184),_0x524650(0x165)),W($,'packageName',ie),W($,_0x524650(0x1b3),y),$=K([_0x188883(_0x4b875e,_0x24fb05),G(0x1,_0x58ff1a(_0x29f00d)),G(0x2,_0x54f9cd)],$);function ue(_0x874e06){const _0x4dca6d=_0x524650;let _0x4109b3=_0x874e06[_0x4dca6d(0x13d)];if(!_0x4109b3)return null;let _0x1107a8={};_0x4109b3[_0x4dca6d(0x170)]&&Object['keys'](_0x4109b3['sheets'])[_0x4dca6d(0x1dd)](_0x171e3e=>{const _0x48d2ab=_0x4dca6d;let _0xc424fa=_0x4109b3[_0x48d2ab(0x170)][_0x171e3e];_0x1107a8[_0x171e3e]={..._0xc424fa,'originalMeta':_0x4d2ca6(_0x2c0e79['decode'](_0xc424fa['originalMeta']))};});let _0x250d1f=_0x4d2ca6(_0x2c0e79[_0x4dca6d(0x143)](_0x4109b3[_0x4dca6d(0x18b)]));return{..._0x874e06,'workbook':{..._0x4109b3,'originalMeta':_0x250d1f,'sheets':_0x1107a8},'doc':{},'slide':void 0x0,'board':void 0x0,'pdf':void 0x0};}function de(_0x476b56){const _0x407b00=_0x524650;let _0x361acc={};return _0x476b56[_0x407b00(0x1dd)](_0x3f6c5f=>{const _0x4fbebd=_0x407b00;_0x361acc[_0x3f6c5f['id']]={..._0x3f6c5f,'data':_0x4d2ca6(_0x2c0e79[_0x4fbebd(0x143)](_0x3f6c5f[_0x4fbebd(0x1f1)]))};}),_0x361acc;}var fe=class{constructor(){const _0x53c3b3=_0x524650;W(this,_0x53c3b3(0x185),new Map());}[_0x524650(0x197)](){const _0x4c2c56=_0x524650;return Promise[_0x4c2c56(0x1fd)]({'snapshot':{'unitID':'','type':_0x378b3c['UNIVER_SHEET'],'rev':0x0,'workbook':void 0x0,'doc':void 0x0,'slide':void 0x0,'board':void 0x0},'changesets':[],'error':{'code':_0x4c5264['OK'],'message':''}});}['getSheetBlock'](_0x50bf93,_0x52c550){const _0x215ec2=_0x524650;let _0x3f18f4=this[_0x215ec2(0x185)][_0x215ec2(0x1d4)](_0x52c550['blockID']);return Promise[_0x215ec2(0x1fd)]({'block':_0x3f18f4,'error':{'code':_0x4c5264['OK'],'message':''}});}[_0x524650(0x1f6)](_0x1094e6,_0x4b3e14){const _0x53b8e7=_0x524650;let _0x2d4324=this[_0x53b8e7(0x185)][_0x53b8e7(0x1d4)](_0x4b3e14['blockID']);return Promise['resolve']({'block':_0x2d4324===void 0x0?void 0x0:{..._0x2d4324,'data':JSON[_0x53b8e7(0x178)](_0x2c0e79[_0x53b8e7(0x143)](_0x2d4324[_0x53b8e7(0x1f1)]))},'error':{'code':_0x4c5264['OK'],'message':''}});}[_0x524650(0x1d2)](){const _0x9c8f03=_0x524650;return Promise[_0x9c8f03(0x1fd)]({'changesets':[],'error':{'code':_0x4c5264['OK'],'message':''}});}[_0x524650(0x144)](){return Promise['resolve']({'resources':{},'error':{'code':_0x4c5264['OK'],'message':''}});}[_0x524650(0x190)](){const _0x254496=_0x524650;return Promise[_0x254496(0x1fd)]({'error':{'code':_0x4c5264['OK'],'message':''}});}[_0x524650(0x1cb)](){const _0x153364=_0x524650;return Promise[_0x153364(0x1fd)]({'error':{'code':_0x4c5264['OK'],'message':''}});}[_0x524650(0x1c4)](_0x3a882e,_0x26cda4){const _0x4aa558=_0x524650;let {block:_0x4b0bb4}=_0x26cda4;return _0x4b0bb4?(this[_0x4aa558(0x185)][_0x4aa558(0x208)](_0x4b0bb4['id'],_0x4b0bb4),Promise[_0x4aa558(0x1fd)]({'error':{'code':_0x4c5264['OK'],'message':''},'blockID':_0x4b0bb4['id']})):Promise[_0x4aa558(0x1fd)]({'error':{'code':_0x4c5264['UNDEFINED'],'message':_0x4aa558(0x18c)},'blockID':''});}[_0x524650(0x1a9)](){const _0x294ff3=_0x524650;return Promise[_0x294ff3(0x1fd)]({'error':{'code':_0x4c5264['OK'],'message':''},'concurrent':[]});}[_0x524650(0x20c)](){const _0x73cbd=_0x524650;return Promise[_0x73cbd(0x1fd)]({'error':void 0x0,'fileMetaId':''});}[_0x524650(0x134)](){const _0x15d4cc=_0x524650;return Promise[_0x15d4cc(0x1fd)]({'error':void 0x0,'latestReqID':0x0});}};export{fe as ClientSnapshotServerService,le as ExchangeBaseExportMode,ce as ExchangeBaseFormulaPolicy,se as ExchangeBaseImportMode,J as ExchangeDocType,oe as ExchangeFormat,Z as IExchangeService,q as ImportOutputType,$ as UniverExchangeClientPlugin,de as transformSheetBlockMetaToString,ue as transformWorkbookSnapshotMetaToString};
@@ -1,11 +1,6 @@
1
- import './global.css';
2
- export { UniverExchangeClientMobileUIPlugin } from './mobile-plugin';
3
1
  export { UniverExchangeClientPlugin } from './plugin';
4
2
  export { IExchangeService } from './services/exchange.service';
5
- export { IExchangeOperateService } from './services/operate.service';
6
3
  export { ExchangeBaseExportMode, ExchangeBaseFormulaPolicy, ExchangeBaseImportMode, ExchangeDocType, ExchangeFormat, ImportOutputType, } from './services/request.service';
7
4
  export type { IExchangeBaseExportOption, IExchangeBaseImportOption, IExchangeDocImportOption, IExchangeExportOptions, IExchangeImportOptions, IExchangeSheetExportOption, IExchangeSheetImportOption, IExportRequest, IImportRequest, } from './services/request.service';
8
- export { isCurrentUnitLoadedFromServer } from './services/utils/collaboration';
9
5
  export { ClientSnapshotServerService, transformSheetBlockMetaToString, transformWorkbookSnapshotMetaToString, } from './services/utils/snapshot';
10
6
  export type { ISnapshotBlockJson, ISnapshotBlockJsonResponse, ISnapshotJson, } from './services/utils/snapshot';
11
- export { EXPORT_FORMAT_DIALOG } from './views/export-format-dialog/ExportFormatDialog';
@@ -9,5 +9,4 @@ export declare class UniverExchangeClientPlugin extends Plugin {
9
9
  static version: string;
10
10
  constructor(_config: IUniverExchangeClientConfig | undefined, _injector: Injector, _configService: IConfigService);
11
11
  onStarting(): void;
12
- onReady(): void;
13
12
  }