@ibm-aspera/sdk 0.2.29 → 0.2.30

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 (112) hide show
  1. package/dist/commonjs/app/core.d.ts +191 -0
  2. package/dist/commonjs/app/core.js +682 -0
  3. package/dist/commonjs/app/installer.d.ts +9 -0
  4. package/dist/commonjs/app/installer.js +50 -0
  5. package/dist/commonjs/connect/core.d.ts +11 -0
  6. package/dist/commonjs/connect/core.js +73 -0
  7. package/dist/commonjs/constants/constants.d.ts +8 -0
  8. package/dist/commonjs/constants/constants.js +11 -0
  9. package/dist/commonjs/constants/messages.d.ts +35 -0
  10. package/dist/commonjs/constants/messages.js +38 -0
  11. package/dist/commonjs/helpers/client/client.d.ts +5 -0
  12. package/dist/commonjs/helpers/client/client.js +7 -0
  13. package/dist/commonjs/helpers/client/http-client.d.ts +42 -0
  14. package/dist/commonjs/helpers/client/http-client.js +84 -0
  15. package/dist/commonjs/helpers/client/safari-client.d.ts +101 -0
  16. package/dist/commonjs/helpers/client/safari-client.js +264 -0
  17. package/dist/commonjs/helpers/helpers.d.ts +109 -0
  18. package/dist/commonjs/helpers/helpers.js +249 -0
  19. package/dist/commonjs/helpers/http.d.ts +16 -0
  20. package/dist/commonjs/helpers/http.js +42 -0
  21. package/dist/commonjs/helpers/ws.d.ts +62 -0
  22. package/dist/commonjs/helpers/ws.js +161 -0
  23. package/dist/commonjs/http-gateway/core.d.ts +76 -0
  24. package/dist/commonjs/http-gateway/core.js +254 -0
  25. package/dist/commonjs/http-gateway/download.d.ts +14 -0
  26. package/dist/commonjs/http-gateway/download.js +187 -0
  27. package/dist/commonjs/http-gateway/index.d.ts +11 -0
  28. package/dist/commonjs/http-gateway/index.js +11 -0
  29. package/dist/commonjs/http-gateway/models.d.ts +16 -0
  30. package/dist/commonjs/http-gateway/models.js +2 -0
  31. package/dist/commonjs/http-gateway/upload.d.ts +14 -0
  32. package/dist/commonjs/http-gateway/upload.js +124 -0
  33. package/dist/commonjs/index.d.ts +8 -0
  34. package/dist/commonjs/index.js +100 -0
  35. package/dist/commonjs/models/aspera-sdk.model.d.ts +245 -0
  36. package/dist/commonjs/models/aspera-sdk.model.js +345 -0
  37. package/dist/commonjs/models/models.d.ts +712 -0
  38. package/dist/commonjs/models/models.js +2 -0
  39. package/dist/js/aspera-sdk.js +3 -0
  40. package/dist/js/aspera-sdk.js.LICENSE.txt +15 -0
  41. package/dist/js/aspera-sdk.js.map +1 -0
  42. package/package.json +5 -1
  43. package/.editorconfig +0 -13
  44. package/.github/CODEOWNERS +0 -1
  45. package/.github/CODE_OF_CONDUCT.md +0 -128
  46. package/.github/CONTRIBUTING.md +0 -147
  47. package/.github/dependabot.yml +0 -10
  48. package/.github/workflows/ci.yml +0 -39
  49. package/.github/workflows/documentation.yml +0 -44
  50. package/.github/workflows/publish.yml +0 -23
  51. package/.github/workflows/version.yml +0 -32
  52. package/.whitesource +0 -3
  53. package/CHANGELOG.md +0 -204
  54. package/docs/DEVELOPMENT.md +0 -38
  55. package/eslint.config.js +0 -104
  56. package/example/README.md +0 -7
  57. package/example/index.html +0 -14
  58. package/example/package-lock.json +0 -2989
  59. package/example/package.json +0 -30
  60. package/example/public/404.html +0 -5
  61. package/example/public/sdk-code.js +0 -326
  62. package/example/src/App/App.scss +0 -40
  63. package/example/src/App/index.tsx +0 -196
  64. package/example/src/Views/AllTogether.tsx +0 -26
  65. package/example/src/Views/DragDrop.tsx +0 -23
  66. package/example/src/Views/Home.tsx +0 -10
  67. package/example/src/Views/Initialize.tsx +0 -31
  68. package/example/src/Views/Installer.tsx +0 -154
  69. package/example/src/Views/MonitorTransfers.tsx +0 -88
  70. package/example/src/Views/Other.tsx +0 -24
  71. package/example/src/Views/SelectItems.tsx +0 -46
  72. package/example/src/Views/StartTransfer.tsx +0 -37
  73. package/example/src/Views/Test.tsx +0 -20
  74. package/example/src/Views/Views.scss +0 -111
  75. package/example/src/helpers/index.ts +0 -19
  76. package/example/src/index.scss +0 -47
  77. package/example/src/main.tsx +0 -17
  78. package/example/src/vite-env.d.ts +0 -2
  79. package/example/tsconfig.json +0 -30
  80. package/example/vite.config.ts +0 -23
  81. package/jest.config.js +0 -19
  82. package/jest.setup.js +0 -0
  83. package/renovate.json +0 -12
  84. package/src/app/core.ts +0 -765
  85. package/src/app/installer.ts +0 -53
  86. package/src/connect/core.ts +0 -83
  87. package/src/constants/constants.ts +0 -19
  88. package/src/constants/messages.ts +0 -35
  89. package/src/helpers/client/client.ts +0 -11
  90. package/src/helpers/client/http-client.ts +0 -92
  91. package/src/helpers/client/safari-client.ts +0 -334
  92. package/src/helpers/helpers.ts +0 -253
  93. package/src/helpers/http.ts +0 -39
  94. package/src/helpers/ws.ts +0 -191
  95. package/src/http-gateway/core.ts +0 -273
  96. package/src/http-gateway/download.ts +0 -217
  97. package/src/http-gateway/index.ts +0 -19
  98. package/src/http-gateway/models.ts +0 -20
  99. package/src/http-gateway/upload.ts +0 -148
  100. package/src/index.ts +0 -72
  101. package/src/models/aspera-sdk.model.ts +0 -446
  102. package/src/models/models.ts +0 -740
  103. package/tests/client.spec.ts +0 -52
  104. package/tests/core.spec.ts +0 -13
  105. package/tests/helpers.spec.ts +0 -127
  106. package/tests/http.spec.ts +0 -14
  107. package/tests/installer.spec.ts +0 -135
  108. package/tests/mocks.ts +0 -11
  109. package/tsconfig.json +0 -14
  110. package/tsconfig.module.json +0 -16
  111. package/typedoc.js +0 -7
  112. package/webpack.config.js +0 -35
@@ -0,0 +1,3 @@
1
+ /*! For license information please see aspera-sdk.js.LICENSE.txt */
2
+ (()=>{var e={82(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.download=void 0;var r=n(400),o=n(159),i=n(211),a=n(888),s=n(521);t.download=function(e,t){if(void 0===t&&(t={}),!o.asperaHttpGateway.isReady)return(0,i.errorLog)(a.messages.serverNotVerified),new Promise((function(e,t){t((0,i.generateErrorBody)(a.messages.serverNotVerified))}));if(!(0,i.isValidTransferSpec)(e))return(0,i.errorLog)(a.messages.notValidTransferSpec),new Promise((function(t,n){n((0,i.generateErrorBody)(a.messages.notValidTransferSpec,{transferSpec:e}))}));var n=(0,i.generatePromiseObjects)();"boolean"==typeof t.zipRequire&&(e.zip_required=t.zipRequire);var l={transfer_spec:e},u=t.serverUrlOverride?(0,s.cleanupServerUrl)(t.serverUrlOverride):o.asperaHttpGateway.globals.serverUrl;return(0,r.apiPost)("".concat(u,"/v1/download"),l).then((function(e){e.json().then((function(e){if(e.transfer_spec_id){var r="".concat(u,"/v1/download/").concat(e.transfer_spec_id);if(o.asperaHttpGateway.globals.softwareMode||(null==t?void 0:t.disableAutoDownload))return void n.resolver({transfer_spec_id:e.transfer_spec_id,url:r});o.asperaHttpGateway.globals.triggerDownloadFromUrl(r),n.resolver()}else(0,i.errorLog)(a.messages.failedToGetDownloadUrl,{response:e}),n.rejecter((0,i.generateErrorBody)(a.messages.failedToGetDownloadUrl,{response:e}))}))})).catch((function(e){(0,i.errorLog)(a.messages.downloadFailed,e),n.rejecter((0,i.generateErrorBody)(a.messages.downloadFailed,e))})),n.promise},t.default={download:t.download}},94(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.JSONRPCClient=void 0;var i=n(287),a=n(616),s=function(){function e(e,t){this._send=e,this.createID=t,this.idToResolveMap=new Map,this.id=0}return e.prototype._createID=function(){return this.createID?this.createID():++this.id},e.prototype.timeout=function(e,t){var n=this;void 0===t&&(t=function(e){return(0,i.createJSONRPCErrorResponse)(e,a.DefaultErrorCode,"Request timeout")});var r=function(r,o){var i=setTimeout((function(){r.forEach((function(e){var r=n.idToResolveMap.get(e);r&&(n.idToResolveMap.delete(e),r(t(e)))}))}),e);return o().then((function(e){return clearTimeout(i),e}),(function(e){return clearTimeout(i),Promise.reject(e)}))};return{request:function(e,t,o){var i=n._createID();return r([i],(function(){return n.requestWithID(e,t,o,i)}))},requestAdvanced:function(e,t){return function(e,t){var o=(Array.isArray(e)?e:[e]).map((function(e){return e.id})).filter(l);return r(o,(function(){return n.requestAdvanced(e,t)}))}(e,t)}}},e.prototype.request=function(e,t,n){return this.requestWithID(e,t,n,this._createID())},e.prototype.requestWithID=function(e,t,n,a){return r(this,void 0,void 0,(function(){var r,s;return o(this,(function(o){switch(o.label){case 0:return r=(0,i.createJSONRPCRequest)(a,e,t),[4,this.requestAdvanced(r,n)];case 1:return void 0===(s=o.sent()).result||s.error?void 0===s.result&&s.error?[2,Promise.reject(new i.JSONRPCErrorException(s.error.message,s.error.code,s.error.data))]:[2,Promise.reject(new Error("An unexpected error occurred"))]:[2,s.result]}}))}))},e.prototype.requestAdvanced=function(e,t){var n=this,r=Array.isArray(e);Array.isArray(e)||(e=[e]);var o=e.filter((function(e){return l(e.id)})),s=o.map((function(e){return new Promise((function(t){return n.idToResolveMap.set(e.id,t)}))})),u=Promise.all(s).then((function(e){return r||!e.length?e:e[0]}));return this.send(r?e:e[0],t).then((function(){return u}),(function(e){return o.forEach((function(t){n.receive((0,i.createJSONRPCErrorResponse)(t.id,a.DefaultErrorCode,e&&e.message||"Failed to send a request"))})),u}))},e.prototype.notify=function(e,t,n){var r=(0,i.createJSONRPCNotification)(e,t);this.send(r,n).then(void 0,(function(){}))},e.prototype.send=function(e,t){return r(this,void 0,void 0,(function(){return o(this,(function(n){return[2,this._send(e,t)]}))}))},e.prototype.rejectAllPendingRequests=function(e){this.idToResolveMap.forEach((function(t,n){return t((0,i.createJSONRPCErrorResponse)(n,a.DefaultErrorCode,e))})),this.idToResolveMap.clear()},e.prototype.receive=function(e){var t=this;Array.isArray(e)||(e=[e]),e.forEach((function(e){var n=t.idToResolveMap.get(e.id);n&&(t.idToResolveMap.delete(e.id),n(e))}))},e}();t.JSONRPCClient=s;var l=function(e){return null!=e}},120(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.safariClient=t.SafariClient=void 0;var r,o,i=n(851),a=n(156);!function(e){e.Monitor="Monitor",e.Ping="Ping",e.Request="Request"}(r||(r={}));var s=function(){function e(){var e=this;this.keepAliveInterval=1e3,this.lastPing=null,this.lastPong=null,this.safariExtensionEnabled=!1,this.subscribedTransferActivity=!1,this.request=function(t,n){return void 0===n&&(n={}),e.dispatchPromiseEvent(r.Request,t,n)},this.promiseExecutors=new Map,this.listenResponseEvents(),this.listenTransferActivityEvents(),this.listenStatusEvents(),this.listenClientStatusEvents(),this.listenPongEvents(),o&&clearTimeout(o),this.keepAlive()}return e.prototype.monitorTransferActivity=function(){var e=this,t=function(){return e.dispatchPromiseEvent(r.Monitor,"subscribe_transfer_activity",[a.asperaSdk.globals.appId]).then((function(){e.subscribedTransferActivity=!0}))};return this.safariExtensionEnabled?t():new Promise((function(n,r){var o=setInterval((function(){e.safariExtensionEnabled&&(t().then(n).catch(r),clearInterval(o))}),1e3)}))},e.prototype.buildRPCRequest=function(e,t){return{jsonrpc:"2.0",method:e,params:t,id:(0,i.randomUUID)()}},e.prototype.dispatchEvent=function(e,t){var n={detail:null!=t?t:{}};document.dispatchEvent(new CustomEvent("AsperaDesktop.".concat(e),n))},e.prototype.dispatchPromiseEvent=function(e,t,n){var r=this,o=this.buildRPCRequest(t,n);return new Promise((function(t,n){r.safariExtensionEnabled?(r.promiseExecutors.set(o.id,{resolve:t,reject:n}),r.dispatchEvent(e,o)):(console.warn("The Safari extension is disabled or unresponsive (dispatch event)"),console.warn("Failed event: ".concat((0,i.safeJsonString)(o))),n("The Safari extension is disabled or unresponsive (dispatch event)"))}))},e.prototype.handleResponse=function(e){var t=e.id,n=this.promiseExecutors.get(t);if(!n)return console.warn("Unable to find a promise executor for ".concat(t)),void console.warn("Response: ".concat(e));this.promiseExecutors.delete(t),e.error?n.reject(e.error):n.resolve(e.result)},e.prototype.listenResponseEvents=function(){var e=this;document.addEventListener("AsperaDesktop.Response",(function(t){t.detail&&e.handleResponse(t.detail)}))},e.prototype.listenTransferActivityEvents=function(){document.addEventListener("AsperaDesktop.TransferActivity",(function(e){e.detail&&a.asperaSdk.activityTracking.handleTransferActivity(e.detail)}))},e.prototype.listenStatusEvents=function(){document.addEventListener("AsperaDesktop.Status",(function(e){e.detail&&a.asperaSdk.activityTracking.handleWebSocketEvents(e.detail)}))},e.prototype.listenClientStatusEvents=function(){document.addEventListener("isAppAlive",(function(e){var t;(null===(t=e.detail)||void 0===t?void 0:t.running)&&a.asperaSdk.activityTracking.handleClientEvents(e.detail.running)}))},e.prototype.listenPongEvents=function(){var e=this;document.addEventListener("AsperaDesktop.Pong",(function(){e.lastPong=Date.now(),e.safariExtensionStatusChanged(!0)}))},e.prototype.keepAlive=function(){var e=this;this.lastPing=Date.now(),this.dispatchEvent(r.Ping),o=setTimeout((function(){e.keepAlive()}),this.keepAliveInterval)},e.prototype.safariExtensionStatusChanged=function(e){var t=this;if(e!==this.safariExtensionEnabled){if(this.safariExtensionEnabled=e,e){if(this.subscribedTransferActivity){var n=function(){t.monitorTransferActivity().catch((function(){console.error("Failed to resume transfer activity, will try again in 1s"),setTimeout((function(){n()}),1e3)}))};n()}}else a.asperaSdk.activityTracking.handleWebSocketEvents("CLOSED"),this.promiseExecutors.forEach((function(e){e.reject("The Safari extension is disabled or unresponsive (extension status)")})),this.promiseExecutors.clear();a.asperaSdk.activityTracking.handleSafariExtensionEvents(this.safariExtensionEnabled?"ENABLED":"DISABLED")}},e.prototype.checkSafariExtensionStatus=function(){var e=this.lastPong-this.lastPing;(null==this.lastPong||e<0||e>500)&&this.safariExtensionStatusChanged(!1)},e}();t.SafariClient=s,t.safariClient=new s,t.default={safariClient:t.safariClient}},131(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dropContainerName=t.keySplit=t.hiddenStyleList=void 0,t.hiddenStyleList="\n display: none !important;\n width: 1px !important;\n height: 1px !important;\n position: fixed !important;\n z-index: -99 !important;\n bottom: 0px !important;\n right: 0px !important;\n",t.keySplit="-*ASPGTW*-",t.dropContainerName="http-dropzone-container"},156(e,t,n){"use strict";var r,o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a<n.length;a++)"default"!==n[a]&&o(t,e,n[a]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.getInstallerUrls=t.getInfo=t.setBranding=t.deregisterStatusCallback=t.registerStatusCallback=t.getInstallerInfo=t.initDragDrop=t.removeDropzone=t.createDropzone=t.modifyTransfer=t.showPreferences=t.showSelectFolderDialog=t.showSelectFileDialog=t.getTransfer=t.getAllTransfers=t.resumeTransfer=t.stopTransfer=t.showDirectory=t.removeTransfer=t.deregisterActivityCallback=t.registerActivityCallback=t.launch=t.startTransfer=t.testConnection=t.init=t.isSafari=t.asperaSdk=void 0;var s=n(907),l=n(309);Object.defineProperty(t,"createDropzone",{enumerable:!0,get:function(){return l.createDropzone}}),Object.defineProperty(t,"deregisterActivityCallback",{enumerable:!0,get:function(){return l.deregisterActivityCallback}}),Object.defineProperty(t,"deregisterStatusCallback",{enumerable:!0,get:function(){return l.deregisterStatusCallback}}),Object.defineProperty(t,"getAllTransfers",{enumerable:!0,get:function(){return l.getAllTransfers}}),Object.defineProperty(t,"getInfo",{enumerable:!0,get:function(){return l.getInfo}}),Object.defineProperty(t,"getTransfer",{enumerable:!0,get:function(){return l.getTransfer}}),Object.defineProperty(t,"init",{enumerable:!0,get:function(){return l.init}}),Object.defineProperty(t,"initDragDrop",{enumerable:!0,get:function(){return l.initDragDrop}}),Object.defineProperty(t,"modifyTransfer",{enumerable:!0,get:function(){return l.modifyTransfer}}),Object.defineProperty(t,"registerActivityCallback",{enumerable:!0,get:function(){return l.registerActivityCallback}}),Object.defineProperty(t,"registerStatusCallback",{enumerable:!0,get:function(){return l.registerStatusCallback}}),Object.defineProperty(t,"removeDropzone",{enumerable:!0,get:function(){return l.removeDropzone}}),Object.defineProperty(t,"removeTransfer",{enumerable:!0,get:function(){return l.removeTransfer}}),Object.defineProperty(t,"resumeTransfer",{enumerable:!0,get:function(){return l.resumeTransfer}}),Object.defineProperty(t,"setBranding",{enumerable:!0,get:function(){return l.setBranding}}),Object.defineProperty(t,"showDirectory",{enumerable:!0,get:function(){return l.showDirectory}}),Object.defineProperty(t,"showPreferences",{enumerable:!0,get:function(){return l.showPreferences}}),Object.defineProperty(t,"showSelectFileDialog",{enumerable:!0,get:function(){return l.showSelectFileDialog}}),Object.defineProperty(t,"showSelectFolderDialog",{enumerable:!0,get:function(){return l.showSelectFolderDialog}}),Object.defineProperty(t,"startTransfer",{enumerable:!0,get:function(){return l.startTransfer}}),Object.defineProperty(t,"stopTransfer",{enumerable:!0,get:function(){return l.stopTransfer}}),Object.defineProperty(t,"testConnection",{enumerable:!0,get:function(){return l.testConnection}});var u=n(656);Object.defineProperty(t,"getInstallerInfo",{enumerable:!0,get:function(){return u.getInstallerInfo}});var c=n(851);Object.defineProperty(t,"getInstallerUrls",{enumerable:!0,get:function(){return c.getInstallerUrls}}),Object.defineProperty(t,"isSafari",{enumerable:!0,get:function(){return c.isSafari}});var d=a(n(466));t.asperaSdk=new s.AsperaSdk,t.asperaSdk.init=l.init,t.asperaSdk.testConnection=l.testConnection,t.asperaSdk.startTransfer=l.startTransfer,t.asperaSdk.registerActivityCallback=l.registerActivityCallback,t.asperaSdk.deregisterActivityCallback=l.deregisterActivityCallback,t.asperaSdk.removeTransfer=l.removeTransfer,t.asperaSdk.showDirectory=l.showDirectory,t.asperaSdk.stopTransfer=l.stopTransfer,t.asperaSdk.resumeTransfer=l.resumeTransfer,t.asperaSdk.getAllTransfers=l.getAllTransfers,t.asperaSdk.getTransfer=l.getTransfer,t.asperaSdk.showSelectFileDialog=l.showSelectFileDialog,t.asperaSdk.showSelectFolderDialog=l.showSelectFolderDialog,t.asperaSdk.showPreferences=l.showPreferences,t.asperaSdk.modifyTransfer=l.modifyTransfer,t.asperaSdk.createDropzone=l.createDropzone,t.asperaSdk.removeDropzone=l.removeDropzone,t.asperaSdk.getInstallerInfo=u.getInstallerInfo,t.asperaSdk.registerStatusCallback=l.registerStatusCallback,t.asperaSdk.deregisterStatusCallback=l.deregisterStatusCallback,t.asperaSdk.initDragDrop=l.initDragDrop,t.asperaSdk.setBranding=l.setBranding,t.asperaSdk.getInfo=l.getInfo,t.asperaSdk.isSafari=c.isSafari,t.asperaSdk.getInstallerUrls=c.getInstallerUrls,t.asperaSdk.httpGatewayCalls=d;var f=t.asperaSdk.globals.launch;t.launch=f,t.asperaSdk.launch=f,"object"==typeof window&&(window.asperaSdk=t.asperaSdk),t.default=t.asperaSdk},159(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.startStream=t.injectStreamToDom=t.removeDropzone=t.createDropzone=t.getFoldersForUploadPromise=t.getFoldersForUpload=t.getFilesForUploadPromise=t.getFilesForUpload=t.upload=t.download=t.removeTransfer=t.cancelTransfer=t.clearNonActiveTransfers=t.getAllTransfers=t.getTransferById=t.deregisterActivityCallback=t.registerActivityCallback=t.testHttpGatewayConnection=t.initHttpGateway=t.asperaHttpGateway=void 0,n(964).polyfill();var r=n(885),o=n(521),i=n(82),a=n(771),s=n(704);t.asperaHttpGateway=new r.HttpGateway,t.asperaHttpGateway.initHttpGateway=o.initHttpGateway,t.asperaHttpGateway.testHttpGatewayConnection=o.testHttpGatewayConnection,t.asperaHttpGateway.download=i.download,t.asperaHttpGateway.upload=a.upload,t.asperaHttpGateway.getFilesForUpload=a.getFilesForUpload,t.asperaHttpGateway.getFilesForUploadPromise=a.getFilesForUploadPromise,t.asperaHttpGateway.getFoldersForUpload=a.getFoldersForUpload,t.asperaHttpGateway.getFoldersForUploadPromise=a.getFoldersForUploadPromise,t.asperaHttpGateway.createDropzone=a.createDropzone,t.asperaHttpGateway.removeDropzone=a.removeDropzone,t.asperaHttpGateway.registerActivityCallback=o.registerActivityCallback,t.asperaHttpGateway.deregisterActivityCallback=o.deregisterActivityCallback,t.asperaHttpGateway.getTransferById=o.getTransferById,t.asperaHttpGateway.getAllTransfers=o.getAllTransfers,t.asperaHttpGateway.clearNonActiveTransfers=o.clearNonActiveTransfers,t.asperaHttpGateway.removeTransfer=o.removeTransfer,t.asperaHttpGateway.cancelTransfer=o.cancelTransfer,t.asperaHttpGateway.startStream=s.startStream,t.asperaHttpGateway.injectStreamToDom=s.injectStreamToDom,"object"==typeof window&&(window.onbeforeunload=t.asperaHttpGateway.checkForPageLeave,window.addEventListener("beforeunload",t.asperaHttpGateway.checkForPageLeave),window.asperaHttpGateway=t.asperaHttpGateway);var l=n(521);Object.defineProperty(t,"initHttpGateway",{enumerable:!0,get:function(){return l.initHttpGateway}}),Object.defineProperty(t,"testHttpGatewayConnection",{enumerable:!0,get:function(){return l.testHttpGatewayConnection}}),Object.defineProperty(t,"registerActivityCallback",{enumerable:!0,get:function(){return l.registerActivityCallback}}),Object.defineProperty(t,"deregisterActivityCallback",{enumerable:!0,get:function(){return l.deregisterActivityCallback}}),Object.defineProperty(t,"getTransferById",{enumerable:!0,get:function(){return l.getTransferById}}),Object.defineProperty(t,"getAllTransfers",{enumerable:!0,get:function(){return l.getAllTransfers}}),Object.defineProperty(t,"clearNonActiveTransfers",{enumerable:!0,get:function(){return l.clearNonActiveTransfers}}),Object.defineProperty(t,"cancelTransfer",{enumerable:!0,get:function(){return l.cancelTransfer}}),Object.defineProperty(t,"removeTransfer",{enumerable:!0,get:function(){return l.removeTransfer}});var u=n(82);Object.defineProperty(t,"download",{enumerable:!0,get:function(){return u.download}});var c=n(771);Object.defineProperty(t,"upload",{enumerable:!0,get:function(){return c.upload}}),Object.defineProperty(t,"getFilesForUpload",{enumerable:!0,get:function(){return c.getFilesForUpload}}),Object.defineProperty(t,"getFilesForUploadPromise",{enumerable:!0,get:function(){return c.getFilesForUploadPromise}}),Object.defineProperty(t,"getFoldersForUpload",{enumerable:!0,get:function(){return c.getFoldersForUpload}}),Object.defineProperty(t,"getFoldersForUploadPromise",{enumerable:!0,get:function(){return c.getFoldersForUploadPromise}}),Object.defineProperty(t,"createDropzone",{enumerable:!0,get:function(){return c.createDropzone}}),Object.defineProperty(t,"removeDropzone",{enumerable:!0,get:function(){return c.removeDropzone}});var d=n(704);Object.defineProperty(t,"injectStreamToDom",{enumerable:!0,get:function(){return d.injectStreamToDom}}),Object.defineProperty(t,"startStream",{enumerable:!0,get:function(){return d.startStream}}),t.default={asperaHttpGateway:t.asperaHttpGateway,initHttpGateway:o.initHttpGateway,testHttpGatewayConnection:o.testHttpGatewayConnection,download:i.download,upload:a.upload,getFilesForUpload:a.getFilesForUpload,getFilesForUploadPromise:a.getFilesForUploadPromise,getFoldersForUpload:a.getFoldersForUpload,getFoldersForUploadPromise:a.getFoldersForUploadPromise,createDropzone:a.createDropzone,removeDropzone:a.removeDropzone,registerActivityCallback:o.registerActivityCallback,deregisterActivityCallback:o.deregisterActivityCallback,getTransferById:o.getTransferById,getAllTransfers:o.getAllTransfers,clearNonActiveTransfers:o.clearNonActiveTransfers,removeTransfer:o.removeTransfer,cancelTransfer:o.cancelTransfer,startStream:s.startStream,injectStreamToDom:s.injectStreamToDom}},211(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getWebsocketUrl=t.getFeatureFlag=t.iterableToArray=t.getFilesForTransfer=t.folderTransferSpecExplode=t.parseFilesFromSpec=t.isValidForm=t.checkChildrenForFiles=t.isValidTransferSpec=t.isValidUrl=t.generateErrorBody=t.errorLog=t.generatePromiseObjects=void 0;var r=n(159),o=n(131),i=n(888);t.generatePromiseObjects=function(){var e,t;return{promise:new Promise((function(n,r){e=n,t=r})),resolver:e,rejecter:t}},t.errorLog=function(e,t){"object"==typeof window&&(Array.isArray(window.httpGatewayLogs)||(window.httpGatewayLogs=[]),window.httpGatewayLogs.push({message:e,debugData:t})),console.warn("Aspera HTTP Gateway SDK: ".concat(e),t)},t.generateErrorBody=function(e,t){var n={error:!0,message:e};return t&&(n.debugData=t),n},t.isValidUrl=function(e){return!!(e&&"string"==typeof e&&e.indexOf("//")>-1)},t.isValidTransferSpec=function(e){return!(!e||"object"!=typeof e||"string"!=typeof e.direction||"string"!=typeof e.remote_host||!Array.isArray(e.paths))},t.checkChildrenForFiles=function(e){var t=[];return e.forEach((function(e){if(e.files)for(var n=0;n<e.files.length;n++)t.push(e.files[n])})),t},t.isValidForm=function(e){return!(!e||"object"!=typeof e||!e.nodeType||"FORM"!==e.tagName)},t.parseFilesFromSpec=function(e,t){var n=new Map,r=new Map;return t.paths.forEach((function(e){n.set(e.source,e)})),e.filter((function(e){if(r.get(e.name))return!1;var t=n.get(e.name);return t&&(t.file_size=e.size,r.set(e.name,!0)),!!t}))},t.folderTransferSpecExplode=function(e,t){var n,i=r.asperaHttpGateway.globals.getOrCreateFolderDataList(e),a=r.asperaHttpGateway.globals.getOrCreateFolderDataList(o.dropContainerName),s=[],l=[],u=function(e,t){l.push(e),s.push({source:e.asperaDropPath||e.webkitRelativePath||e.name,destination:t.destination})};return null===(n=t.paths)||void 0===n||n.forEach((function(e){i.get(e.source)?i.get(e.source).files.forEach((function(t){u(t,e)})):a.get(e.source)?a.get(e.source).files.forEach((function(t){u(t,e)})):s.push(e)})),{files:l,newPath:s}},t.getFilesForTransfer=function(e,n){var i=r.asperaHttpGateway.globals.createOrUseForm(e);if(!(0,t.isValidForm)(i))return[];var a=(0,t.checkChildrenForFiles)(i.childNodes);return r.asperaHttpGateway.globals.getOrCreateFormFileListFromDrop(o.dropContainerName).forEach((function(e){a.push(e)})),(0,t.parseFilesFromSpec)(a,n)},t.iterableToArray=function(e){var t=[];return function n(){var r=e.next();r.done||(t.push(r.value),n())}(),t},t.getFeatureFlag=function(e){var n;if(!(null===(n=r.asperaHttpGateway.globals.serverInfo)||void 0===n?void 0:n.version))return(0,t.errorLog)(i.messages.serverNotVerified),!1;var o=r.asperaHttpGateway.globals.serverInfo.version.split("."),a=o[0]?Number(o[0]):0,s=o[1]?Number(o[1]):0,l=o[2]?Number(o[2]):0;return"noBase64Encoding"===e?1e10*a+1e5*s+l>=200003e5:void 0},t.getWebsocketUrl=function(e,n){var r;r=0===e.indexOf("http:")?"ws":0===e.indexOf("https:")||"https:"===n?"wss":"ws";var o=e.replace("http://","//").replace("https://","//");return"".concat(r,":").concat(o,"/").concat((0,t.getFeatureFlag)("noBase64Encoding")?"v2":"v1","/upload")},t.default={generatePromiseObjects:t.generatePromiseObjects,errorLog:t.errorLog,generateErrorBody:t.generateErrorBody,isValidUrl:t.isValidUrl,isValidTransferSpec:t.isValidTransferSpec,checkChildrenForFiles:t.checkChildrenForFiles,isValidForm:t.isValidForm,getFilesForTransfer:t.getFilesForTransfer,folderTransferSpecExplode:t.folderTransferSpecExplode,parseFilesFromSpec:t.parseFilesFromSpec,iterableToArray:t.iterableToArray,getFeatureFlag:t.getFeatureFlag}},287(e,t){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.createJSONRPCNotification=t.createJSONRPCRequest=t.createJSONRPCSuccessResponse=t.createJSONRPCErrorResponse=t.JSONRPCErrorCode=t.JSONRPCErrorException=t.isJSONRPCResponses=t.isJSONRPCResponse=t.isJSONRPCRequests=t.isJSONRPCRequest=t.isJSONRPCID=t.JSONRPC=void 0,t.JSONRPC="2.0",t.isJSONRPCID=function(e){return"string"==typeof e||"number"==typeof e||null===e},t.isJSONRPCRequest=function(e){return e.jsonrpc===t.JSONRPC&&void 0!==e.method&&void 0===e.result&&void 0===e.error},t.isJSONRPCRequests=function(e){return Array.isArray(e)&&e.every(t.isJSONRPCRequest)},t.isJSONRPCResponse=function(e){return e.jsonrpc===t.JSONRPC&&void 0!==e.id&&(void 0!==e.result||void 0!==e.error)},t.isJSONRPCResponses=function(e){return Array.isArray(e)&&e.every(t.isJSONRPCResponse)};var o,i=function(e,t,n){var r={code:e,message:t};return null!=n&&(r.data=n),r},a=function(e){function t(n,r,o){var i=e.call(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i.code=r,i.data=o,i}return r(t,e),t.prototype.toObject=function(){return i(this.code,this.message,this.data)},t}(Error);t.JSONRPCErrorException=a,(o=t.JSONRPCErrorCode||(t.JSONRPCErrorCode={}))[o.ParseError=-32700]="ParseError",o[o.InvalidRequest=-32600]="InvalidRequest",o[o.MethodNotFound=-32601]="MethodNotFound",o[o.InvalidParams=-32602]="InvalidParams",o[o.InternalError=-32603]="InternalError",t.createJSONRPCErrorResponse=function(e,n,r,o){return{jsonrpc:t.JSONRPC,id:e,error:i(n,r,o)}},t.createJSONRPCSuccessResponse=function(e,n){return{jsonrpc:t.JSONRPC,id:e,result:null!=n?n:null}},t.createJSONRPCRequest=function(e,n,r){return{jsonrpc:t.JSONRPC,id:e,method:n,params:r}},t.createJSONRPCNotification=function(e,n){return{jsonrpc:t.JSONRPC,method:e,params:n}}},308(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.apiGet=t.handlePromiseErrors=void 0;var r=n(851);t.handlePromiseErrors=function(e){var t=(0,r.generatePromiseObjects)();return e.then((function(e){return e.ok?t.resolver(e):t.rejecter(e),e})).catch((function(e){t.rejecter(e)})),t.promise},t.apiGet=function(e){return(0,t.handlePromiseErrors)(fetch(e,{headers:{"Content-Type":"application/json"}}))}},309(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getInfo=t.removeDropzone=t.createDropzone=t.setBranding=t.modifyTransfer=t.showDirectory=t.getTransfer=t.getAllTransfers=t.showPreferences=t.showSelectFolderDialog=t.showSelectFileDialog=t.resumeTransfer=t.stopTransfer=t.removeTransfer=t.deregisterStatusCallback=t.registerStatusCallback=t.deregisterActivityCallback=t.registerActivityCallback=t.startTransfer=t.init=t.initDragDrop=t.testConnection=void 0;var r=n(540),o=n(573),i=n(851),a=n(466),s=n(751),l=n(156),u=n(159),c=n(794),d=n(610);t.testConnection=function(){return l.asperaSdk.useHttpGateway||l.asperaSdk.useConnect?Promise.resolve(l.asperaSdk.globals.sdkResponseData):o.client.request("get_info").then((function(e){return l.asperaSdk.globals.asperaSdkInfo=e,l.asperaSdk.globals.asperaAppVerified=!0,l.asperaSdk.globals.sdkResponseData}))},t.initDragDrop=function(e){if(l.asperaSdk.useHttpGateway||l.asperaSdk.useConnect)return Promise.resolve(!0);if(!l.asperaSdk.isReady)return(0,i.throwError)(r.messages.serverNotVerified);var t=(0,i.generatePromiseObjects)();return o.client.request("init_drag_drop").then((function(e){return t.resolver(e)})).catch((function(n){(0,i.errorLog)(r.messages.dragDropInitFailed,n),e?(t.resolver(!1),(0,i.errorLog)(r.messages.dragDropInitFailedInit,n)):t.rejecter((0,i.generateErrorBody)(r.messages.dragDropInitFailed,n))})),t.promise},t.init=function(e){var n,o,a,f=null!==(n=null==e?void 0:e.appId)&&void 0!==n?n:(0,i.randomUUID)();l.asperaSdk.globals.appId=f,(0,u.registerActivityCallback)((function(e){e.transfers.forEach((function(e){(0,s.sendTransferUpdate)(e)}))})),(null==e?void 0:e.supportMultipleUsers)&&!(0,i.isSafari)()&&(l.asperaSdk.globals.supportMultipleUsers=!0,l.asperaSdk.globals.sessionId=(0,i.randomUUID)());var p=function(e){throw(0,i.errorLog)(r.messages.serverError,e),l.asperaSdk.globals.asperaAppVerified=!1,(0,i.generateErrorBody)(r.messages.serverError,e)},h=function(){return l.asperaSdk.globals.connect=new c.Connect({minVersion:e.connectSettings.minVersion||"3.10.1",dragDropEnabled:e.connectSettings.dragDropEnabled,connectMethod:e.connectSettings.method}),l.asperaSdk.globals.connectInstaller=new c.ConnectInstaller({sdkLocation:e.connectSettings.sdkLocation,correlationId:e.connectSettings.correlationId,style:"carbon"}),l.asperaSdk.globals.connectAW4={Connect:c.Connect,ConnectInstaller:c.ConnectInstaller},(0,d.initConnect)(!e.connectSettings.hideIncludedInstaller)},g=function(){return l.asperaSdk.activityTracking.setup().then((function(){return(0,t.testConnection)()})).then((function(){return(0,t.initDragDrop)(!0)})).then((function(){return l.asperaSdk.globals.sdkResponseData})).catch(p)};if((null===(o=null==e?void 0:e.httpGatewaySettings)||void 0===o?void 0:o.url)&&!l.asperaSdk.globals.httpGatewayVerified){var m=e.httpGatewaySettings.url.trim();return 0!==m.indexOf("http")&&(m="https://".concat(m)),m.endsWith("/")&&(m=m.slice(0,-1)),l.asperaSdk.globals.httpGatewayUrl=m,fetch("".concat(l.asperaSdk.globals.httpGatewayUrl,"/info"),{method:"GET"}).then((function(e){return e.json().then((function(t){if(e.status>=400)throw Error(t);return t}))})).then((function(t){var n,r;l.asperaSdk.globals.httpGatewayInfo=t,l.asperaSdk.globals.httpGatewayVerified=!0;var o=document.createElement("div");return o.id="aspera-http-gateway-iframes",o.style="display: none;",document.body.appendChild(o),l.asperaSdk.globals.httpGatewayIframeContainer=o,(null===(n=null==e?void 0:e.httpGatewaySettings)||void 0===n?void 0:n.forceGateway)?Promise.resolve(l.asperaSdk.globals.sdkResponseData):(null===(r=null==e?void 0:e.connectSettings)||void 0===r?void 0:r.useConnect)?h():g()})).catch((function(t){var n;return(0,i.errorLog)(r.messages.httpInitFail,t),(null===(n=null==e?void 0:e.connectSettings)||void 0===n?void 0:n.useConnect)?h():g()}))}return(null===(a=null==e?void 0:e.connectSettings)||void 0===a?void 0:a.useConnect)?h():g()},t.startTransfer=function(e,t){if(!(0,i.isValidTransferSpec)(e))return(0,i.throwError)(r.messages.notValidTransferSpec,{transferSpec:e});if(l.asperaSdk.useHttpGateway)return"receive"===e.direction?(0,a.httpDownload)(e,t):(0,a.httpUpload)(e,t);if(l.asperaSdk.useConnect)return l.asperaSdk.globals.connect.startTransferPromise(e,t).then((function(e){return e.transfer_specs[0]}));if(!l.asperaSdk.isReady)return(0,i.throwError)(r.messages.serverNotVerified);var n=(0,i.generatePromiseObjects)(),s={transfer_spec:e,desktop_spec:t,app_id:l.asperaSdk.globals.appId};return o.client.request("start_transfer",s).then((function(e){return n.resolver(e)})).catch((function(e){(0,i.errorLog)(r.messages.transferFailed,e),n.rejecter((0,i.generateErrorBody)(r.messages.transferFailed,e))})),n.promise},t.registerActivityCallback=function(e){return l.asperaSdk.activityTracking.setCallback(e)},t.deregisterActivityCallback=function(e){l.asperaSdk.activityTracking.removeCallback(e)},t.registerStatusCallback=function(e){return l.asperaSdk.activityTracking.setWebSocketEventCallback(e)},t.deregisterStatusCallback=function(e){l.asperaSdk.activityTracking.removeWebSocketEventCallback(e)},t.removeTransfer=function(e){if(l.asperaSdk.useHttpGateway)return(0,s.httpRemoveTransfer)(e);if(l.asperaSdk.useConnect)return l.asperaSdk.globals.connect.removeTransfer(e);if(!l.asperaSdk.isReady)return(0,i.throwError)(r.messages.serverNotVerified);var t=(0,i.generatePromiseObjects)(),n={transfer_id:e};return o.client.request("remove_transfer",n).then((function(e){return t.resolver(e)})).catch((function(e){(0,i.errorLog)(r.messages.removeTransferFailed,e),t.rejecter((0,i.generateErrorBody)(r.messages.removeTransferFailed,e))})),t.promise},t.stopTransfer=function(e){if(l.asperaSdk.useConnect)return l.asperaSdk.globals.connect.stopTransfer(e);if(!l.asperaSdk.isReady)return(0,i.throwError)(r.messages.serverNotVerified);var t=(0,i.generatePromiseObjects)(),n={transfer_id:e};return o.client.request("stop_transfer",n).then((function(e){return t.resolver(e)})).catch((function(e){(0,i.errorLog)(r.messages.stopTransferFailed,e),t.rejecter((0,i.generateErrorBody)(r.messages.stopTransferFailed,e))})),t.promise},t.resumeTransfer=function(e,t){if(l.asperaSdk.useConnect)return l.asperaSdk.globals.connect.resumeTransfer(e,t).then((function(e){return e.transfer_spec}));if(!l.asperaSdk.isReady)return(0,i.throwError)(r.messages.serverNotVerified);var n=(0,i.generatePromiseObjects)(),a={transfer_id:e,transfer_spec:t};return o.client.request("resume_transfer",a).then((function(e){return n.resolver(e)})).catch((function(e){(0,i.errorLog)(r.messages.resumeTransferFailed,e),n.rejecter((0,i.generateErrorBody)(r.messages.resumeTransferFailed,e))})),n.promise},t.showSelectFileDialog=function(e){if(l.asperaSdk.useHttpGateway)return(0,s.httpGatewaySelectFileFolderDialog)(e,!1);if(l.asperaSdk.useConnect)return l.asperaSdk.globals.connect.showSelectFileDialogPromise(e).then((function(e){return e}));if(!l.asperaSdk.isReady)return(0,i.throwError)(r.messages.serverNotVerified);var t=(0,i.generatePromiseObjects)(),n={options:e||{},app_id:l.asperaSdk.globals.appId};return o.client.request("show_file_dialog",n).then((function(e){return t.resolver(e)})).catch((function(e){(0,i.errorLog)(r.messages.showSelectFileDialogFailed,e),t.rejecter((0,i.generateErrorBody)(r.messages.showSelectFileDialogFailed,e))})),t.promise},t.showSelectFolderDialog=function(e){if(l.asperaSdk.useHttpGateway)return(0,s.httpGatewaySelectFileFolderDialog)(e,!0);if(l.asperaSdk.useConnect)return l.asperaSdk.globals.connect.showSelectFolderDialogPromise(e).then((function(e){return e}));if(!l.asperaSdk.isReady)return(0,i.throwError)(r.messages.serverNotVerified);var t=(0,i.generatePromiseObjects)(),n={options:e||{},app_id:l.asperaSdk.globals.appId};return o.client.request("show_folder_dialog",n).then((function(e){return t.resolver(e)})).catch((function(e){(0,i.errorLog)(r.messages.showSelectFolderDialogFailed,e),t.rejecter((0,i.generateErrorBody)(r.messages.showSelectFolderDialogFailed,e))})),t.promise},t.showPreferences=function(){if(l.asperaSdk.useConnect)return l.asperaSdk.globals.connect.showPreferences();if(!l.asperaSdk.isReady)return(0,i.throwError)(r.messages.serverNotVerified);var e=(0,i.generatePromiseObjects)();return o.client.request("open_preferences").then((function(t){return e.resolver(t)})).catch((function(t){(0,i.errorLog)(r.messages.showPreferencesFailed,t),e.rejecter((0,i.generateErrorBody)(r.messages.showPreferencesFailed,t))})),e.promise},t.getAllTransfers=function(){var e=(0,i.generatePromiseObjects)();if(l.asperaSdk.useHttpGateway)return Promise.resolve((0,s.httpGetAllTransfers)());if(l.asperaSdk.useConnect)return l.asperaSdk.globals.connect.getAllTransfers({success:function(t){e.resolver(t.transfers)},error:function(t){e.rejecter(t)}}),e.promise;if(!l.asperaSdk.isReady)return(0,i.throwError)(r.messages.serverNotVerified);var t={app_id:l.asperaSdk.globals.appId};return o.client.request("get_all_transfers",t).then((function(t){return e.resolver(t)})).catch((function(t){(0,i.errorLog)(r.messages.getAllTransfersFailed,t),e.rejecter((0,i.generateErrorBody)(r.messages.getAllTransfersFailed,t))})),e.promise},t.getTransfer=function(e){if(l.asperaSdk.useHttpGateway){var t=(0,s.httpGetTransfer)(e);return t?Promise.resolve(t):Promise.reject((0,i.generateErrorBody)(r.messages.getTransferFailed,{reason:"Not found"}))}if(l.asperaSdk.useConnect)return l.asperaSdk.globals.connect.getTransfer(e).then((function(e){return e.transfer_info}));if(!l.asperaSdk.isReady)return(0,i.throwError)(r.messages.serverNotVerified);var n=(0,i.generatePromiseObjects)(),a={transfer_id:e};return o.client.request("get_transfer",a).then((function(e){return n.resolver(e)})).catch((function(e){(0,i.errorLog)(r.messages.getTransferFailed,e),n.rejecter((0,i.generateErrorBody)(r.messages.getTransferFailed,e))})),n.promise},t.showDirectory=function(e){if(l.asperaSdk.useConnect)return l.asperaSdk.globals.connect.showDirectory(e);if(!l.asperaSdk.isReady)return(0,i.throwError)(r.messages.serverNotVerified);var t=(0,i.generatePromiseObjects)(),n={transfer_id:e};return o.client.request("show_directory",n).then((function(e){return t.resolver(e)})).catch((function(e){(0,i.errorLog)(r.messages.showDirectoryFailed,e),t.rejecter((0,i.generateErrorBody)(r.messages.showDirectoryFailed,e))})),t.promise},t.modifyTransfer=function(e,t){if(l.asperaSdk.useConnect)return l.asperaSdk.globals.connect.modifyTransfer(e,t).then((function(e){return e}));if(!l.asperaSdk.isReady)return(0,i.throwError)(r.messages.serverNotVerified);var n=(0,i.generatePromiseObjects)(),a={transfer_id:e,transfer_spec:t};return o.client.request("modify_transfer",a).then((function(e){return n.resolver(e)})).catch((function(e){(0,i.errorLog)(r.messages.modifyTransferFailed,e),n.rejecter((0,i.generateErrorBody)(r.messages.modifyTransferFailed,e))})),n.promise},t.setBranding=function(e,t){if(!l.asperaSdk.isReady)return(0,i.throwError)(r.messages.serverNotVerified);var n=(0,i.generatePromiseObjects)(),a={branding:{id:e,name:t.name,theme:t.theme}};return o.client.request("update_branding",a).then((function(e){return n.resolver(e)})).catch((function(e){(0,i.errorLog)(r.messages.setBrandingFailed,e),n.rejecter((0,i.generateErrorBody)(r.messages.setBrandingFailed,e))})),n.promise},t.createDropzone=function(e,t,n){if(l.asperaSdk.useConnect)l.asperaSdk.globals.connect.setDragDropTargets(t,n,(function(t){e({event:t.event,files:t.files})}));else{var a=document.querySelectorAll(t);if(a&&a.length){var u=function(e){e.preventDefault()},c=function(t){if(t.preventDefault(),t.dataTransfer&&t.dataTransfer.files&&t.dataTransfer.files.length&&t.dataTransfer.files[0]){for(var n=[],a=0;a<t.dataTransfer.files.length;a++){var u=t.dataTransfer.files[a];n.push({lastModified:u.lastModified,name:u.name,size:u.size,type:u.type})}var c={files:n,app_id:l.asperaSdk.globals.appId};l.asperaSdk.isReady?o.client.request("dropped_files",c).then((function(n){return e({event:t,files:n})})).catch((function(e){(0,i.errorLog)(r.messages.unableToReadDropped,e)})):l.asperaSdk.httpGatewayIsReady&&(0,s.handleHttpGatewayDrop)(t.dataTransfer.items,e,t)}};a.forEach((function(e){e.addEventListener("dragover",u),e.addEventListener("drop",c),l.asperaSdk.globals.dropZonesCreated.set(t,[{event:"dragover",callback:u},{event:"drop",callback:c}])}))}else(0,i.errorLog)(r.messages.unableToFindElementOnPage)}},t.removeDropzone=function(e){var t=l.asperaSdk.globals.dropZonesCreated.get(e);t&&t.forEach((function(t){var n=document.querySelectorAll(e);n&&n.length&&n.forEach((function(e){e.removeEventListener(t.event,t.callback)}))}))},t.getInfo=function(){return l.asperaSdk.useHttpGateway||l.asperaSdk.useConnect?Promise.resolve(l.asperaSdk.globals.sdkResponseData):l.asperaSdk.isReady?new Promise((function(e,t){e(l.asperaSdk.globals.sdkResponseData)})):(0,i.throwError)(r.messages.serverNotVerified)}},400(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.apiDelete=t.apiPut=t.apiPost=t.apiGet=t.getHeaders=t.getUrlWithQueryParams=t.getQueryString=t.handlePromiseErrors=void 0;var r=n(211);t.handlePromiseErrors=function(e){var t=(0,r.generatePromiseObjects)();return e.then((function(e){return e.ok?t.resolver(e):t.rejecter(e),e})).catch((function(e){t.rejecter(e)})),t.promise},t.getQueryString=function(e){var t="";return Object.keys(e||{}).forEach((function(n){var r=e[n];t+="".concat(n,"=").concat(encodeURIComponent(r),"&")})),t.slice(0,-1)},t.getUrlWithQueryParams=function(e,n){if(n){var r=(0,t.getQueryString)(n);e+=r?"?".concat(r):""}return e},t.getHeaders=function(e){var t={"Content-Type":"application/json"};return Object.keys(e||{}).forEach((function(n){t[n]=e[n]})),t},t.apiGet=function(e,n,r){return(0,t.handlePromiseErrors)(fetch((0,t.getUrlWithQueryParams)(e,n),{headers:(0,t.getHeaders)(r)}))},t.apiPost=function(e,n,r,o){return(0,t.handlePromiseErrors)(fetch((0,t.getUrlWithQueryParams)(e,r),{method:"POST",body:JSON.stringify(n),headers:(0,t.getHeaders)(o)}))},t.apiPut=function(e,n,r,o){return(0,t.handlePromiseErrors)(fetch((0,t.getUrlWithQueryParams)(e,r),{method:"PUT",body:JSON.stringify(n),headers:(0,t.getHeaders)(o)}))},t.apiDelete=function(e,n,r){return(0,t.handlePromiseErrors)(fetch((0,t.getUrlWithQueryParams)(e,n),{method:"DELETE",headers:(0,t.getHeaders)(r)}))},t.default={apiGet:t.apiGet,apiPost:t.apiPost,apiPut:t.apiPut,apiDelete:t.apiDelete,getHeaders:t.getHeaders,getUrlWithQueryParams:t.getUrlWithQueryParams,getQueryString:t.getQueryString,handlePromiseErrors:t.handlePromiseErrors}},445(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.httpUpload=void 0;var r=n(156),o=n(851),i=n(540),a=n(751),s=n(159);t.httpUpload=function(e,t){if(!r.asperaSdk.httpGatewayIsReady)return(0,o.throwError)(i.messages.serverNotVerified,{type:"upload"});if(r.asperaSdk.useOldHttpGateway)return(0,s.upload)(e,(null==t?void 0:t.http_gateway_v2_transfer_id)||"");var n=(0,o.generatePromiseObjects)(),l=new XMLHttpRequest,u=new FormData;u.append("x-aspera-spec",(0,o.safeJsonString)(e));var c=[];if(e.paths.forEach((function(e){var t=r.asperaSdk.httpGatewaySelectedFiles.get(e.source);t?(u.append("Content-Length",String(t.size)),u.append("file",t)):c.push(e.source)})),c.length)return(0,o.throwError)(i.messages.fileNotAllowed,{type:"upload",invalidFiles:c,transferSpec:e});var d=(0,a.getSdkTransfer)(e);(null==t?void 0:t.http_gateway_authentication)&&(l.setRequestHeader("Authorization","Bearer ".concat(t.http_gateway_authentication.token)),l.setRequestHeader("X-Aspera-AccessKey",t.http_gateway_authentication.access_key)),l.open("POST","".concat((null==t?void 0:t.http_gateway_override_server_url)||r.asperaSdk.globals.httpGatewayUrl,"/upload"),!0);var f=function(){(0,a.sendTransferUpdate)(d)},p=function(){var e=(0,a.getMessageFromError)(l.response);d.httpRequestId=l.getResponseHeader("X-Request-Id"),d.status="failed",d.error_code=e.code,d.error_desc=e.message,f()};return l.upload.addEventListener("progress",(function(e){"failed"!==d.status&&(d.status="running",d.elapsed_usec=1e3*((new Date).getTime()-new Date(d.add_time).getTime()),e.lengthComputable&&(d.bytes_expected=e.total,d.bytes_written=e.loaded,d.percentage=e.loaded/e.total),f())})),l.addEventListener("load",(function(){d.httpRequestId=l.getResponseHeader("X-Request-Id")})),l.upload.addEventListener("load",(function(e){"failed"!==d.status&&(d.status="completed",d.elapsed_usec=1e3*((new Date).getTime()-new Date(d.add_time).getTime()),e.lengthComputable&&(d.bytes_expected=e.total,d.bytes_written=e.loaded,d.percentage=e.loaded/e.total),f())})),l.upload.addEventListener("loadstart",(function(){"failed"!==d.status&&(d.status="running",n.resolver(d),f())})),l.addEventListener("readystatechange",(function(){l.status>=400&&p()})),l.upload.addEventListener("error",(function(e){p(),n.rejecter(e)})),l.upload.addEventListener("abort",(function(e){p(),n.rejecter(e)})),l.addEventListener("error",(function(e){p(),n.rejecter(e)})),l.addEventListener("abort",(function(e){p(),n.rejecter(e)})),l.send(u),n.promise}},466(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHtmlInputElement=t.httpGatewaySelectFileFolderDialog=t.handleHttpGatewayDrop=t.httpDownload=t.httpUpload=void 0;var r=n(736);Object.defineProperty(t,"httpDownload",{enumerable:!0,get:function(){return r.httpDownload}});var o=n(445);Object.defineProperty(t,"httpUpload",{enumerable:!0,get:function(){return o.httpUpload}});var i=n(751);Object.defineProperty(t,"handleHttpGatewayDrop",{enumerable:!0,get:function(){return i.handleHttpGatewayDrop}}),Object.defineProperty(t,"httpGatewaySelectFileFolderDialog",{enumerable:!0,get:function(){return i.httpGatewaySelectFileFolderDialog}}),Object.defineProperty(t,"createHtmlInputElement",{enumerable:!0,get:function(){return i.createHtmlInputElement}})},490(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},a=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.JSONRPCServer=void 0;var s=n(287),l=n(616),u=function(e){return(0,s.createJSONRPCErrorResponse)((0,s.isJSONRPCID)(e.id)?e.id:null,s.JSONRPCErrorCode.InvalidRequest,"Invalid Request")},c=function(){function e(e){var t;void 0===e&&(e={}),this.mapErrorToJSONRPCErrorResponse=h,this.nameToMethodDictionary={},this.middleware=null,this.errorListener=null!==(t=e.errorListener)&&void 0!==t?t:console.warn}return e.prototype.hasMethod=function(e){return!!this.nameToMethodDictionary[e]},e.prototype.addMethod=function(e,t){this.addMethodAdvanced(e,this.toJSONRPCMethod(t))},e.prototype.removeMethod=function(e){delete this.nameToMethodDictionary[e]},e.prototype.toJSONRPCMethod=function(e){return function(t,n){var r=e(t.params,n);return Promise.resolve(r).then((function(e){return p(t.id,e)}))}},e.prototype.addMethodAdvanced=function(e,t){var n;this.nameToMethodDictionary=r(r({},this.nameToMethodDictionary),((n={})[e]=t,n))},e.prototype.receiveJSON=function(e,t){var n=this.tryParseRequestJSON(e);return n?this.receive(n,t):Promise.resolve((0,s.createJSONRPCErrorResponse)(null,s.JSONRPCErrorCode.ParseError,"Parse error"))},e.prototype.tryParseRequestJSON=function(e){try{return JSON.parse(e)}catch(e){return null}},e.prototype.receive=function(e,t){return Array.isArray(e)?this.receiveMultiple(e,t):this.receiveSingle(e,t)},e.prototype.receiveMultiple=function(e,t){return o(this,void 0,void 0,(function(){var n,r=this;return i(this,(function(o){switch(o.label){case 0:return[4,Promise.all(e.map((function(e){return r.receiveSingle(e,t)})))];case 1:return 1===(n=o.sent().filter(d)).length?[2,n[0]]:n.length?[2,n]:[2,null]}}))}))},e.prototype.receiveSingle=function(e,t){return o(this,void 0,void 0,(function(){var n,r;return i(this,(function(o){switch(o.label){case 0:return n=this.nameToMethodDictionary[e.method],(0,s.isJSONRPCRequest)(e)?[3,1]:[2,u(e)];case 1:return[4,this.callMethod(n,e,t)];case 2:return r=o.sent(),[2,g(e,r)]}}))}))},e.prototype.applyMiddleware=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.middleware?this.middleware=this.combineMiddlewares(a([this.middleware],e,!0)):this.middleware=this.combineMiddlewares(e)},e.prototype.combineMiddlewares=function(e){return e.length?e.reduce(this.middlewareReducer):null},e.prototype.middlewareReducer=function(e,t){return function(n,r,o){return e((function(e,r){return t(n,e,r)}),r,o)}},e.prototype.callMethod=function(e,t,n){var r=this,o=function(e){return r.errorListener('An unexpected error occurred while executing "'.concat(t.method,'" JSON-RPC method:'),e),Promise.resolve(r.mapErrorToJSONRPCErrorResponseIfNecessary(t.id,e))};try{return(this.middleware||f)((function(t,n){return e?e(t,n):void 0!==t.id?Promise.resolve((r=t.id,(0,s.createJSONRPCErrorResponse)(r,s.JSONRPCErrorCode.MethodNotFound,"Method not found"))):Promise.resolve(null);var r}),t,n).then(void 0,o)}catch(e){return o(e)}},e.prototype.mapErrorToJSONRPCErrorResponseIfNecessary=function(e,t){return void 0!==e?this.mapErrorToJSONRPCErrorResponse(e,t):null},e}();t.JSONRPCServer=c;var d=function(e){return null!==e},f=function(e,t,n){return e(t,n)},p=function(e,t){return void 0!==e?(0,s.createJSONRPCSuccessResponse)(e,t):null},h=function(e,t){var n,r,o=null!==(n=null==t?void 0:t.message)&&void 0!==n?n:"An unexpected error occurred",i=l.DefaultErrorCode;return t instanceof s.JSONRPCErrorException&&(i=t.code,r=t.data),(0,s.createJSONRPCErrorResponse)(e,i,o,r)},g=function(e,t){return t||(void 0!==e.id?(0,s.createJSONRPCErrorResponse)(e.id,s.JSONRPCErrorCode.InternalError,"Internal error"):null)}},521(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cancelTransfer=t.removeTransfer=t.clearNonActiveTransfers=t.getAllTransfers=t.getTransferById=t.deregisterActivityCallback=t.registerActivityCallback=t.initHttpGateway=t.cleanupServerUrl=t.testHttpGatewayConnection=void 0;var r=n(159),o=n(211),i=n(888),a=n(400);t.testHttpGatewayConnection=function(){if(!r.asperaHttpGateway.globals.serverUrl&&!r.asperaHttpGateway.globals.supportMultipleServers)return(0,o.errorLog)(i.messages.serverUrlNotSet),new Promise((function(e,t){t((0,o.generateErrorBody)(i.messages.serverUrlNotSet))}));var e=(0,o.generatePromiseObjects)(),t={endpoints:["/aspera/http-gwy/v1/info","/aspera/http-gwy/v1/upload","/aspera/http-gwy/v2/upload","/aspera/http-gwy/v1/download"],name:"IBM Aspera HTTP Gateway",version:"2.3.0",sdkVerificationFailed:!0};return(0,a.apiGet)("".concat(r.asperaHttpGateway.globals.serverUrl||"","/v1/info")).then((function(t){t.json().then((function(t){r.asperaHttpGateway.globals.serverInfo=t,r.asperaHttpGateway.globals.serverVerified=!0,e.resolver(t)}))})).catch((function(n){(0,o.errorLog)(i.messages.serverError,n),r.asperaHttpGateway.globals.supportMultipleServers?(r.asperaHttpGateway.globals.serverInfo=t,r.asperaHttpGateway.globals.serverVerified=!0,e.resolver(t)):(r.asperaHttpGateway.globals.serverVerified=!1,e.rejecter((0,o.generateErrorBody)(i.messages.serverError,n)))})),e.promise},t.cleanupServerUrl=function(e){return"string"!=typeof e?"":("/"===e[e.length-1]&&(e=e.slice(0,-1)),e.replace("/v1","/").replace(/\/$/,"").replace(/\/$/,""))},t.initHttpGateway=function(e,n,a){return(0,o.isValidUrl)(e)?(r.asperaHttpGateway.globals.setUpServer((0,t.cleanupServerUrl)(e),n,a),(0,t.testHttpGatewayConnection)()):new Promise((function(e,t){t((0,o.generateErrorBody)(i.messages.invalidServerUrl))}))},t.registerActivityCallback=function(e){return r.asperaHttpGateway.activityTracking.setCallback(e)},t.deregisterActivityCallback=function(e){r.asperaHttpGateway.activityTracking.removeCallback(e)},t.getTransferById=function(e){return{transfer_info:r.asperaHttpGateway.activityTracking.getTransferById(e)}},t.getAllTransfers=function(){return r.asperaHttpGateway.activityTracking.getAllTransfersResponse()},t.clearNonActiveTransfers=function(){r.asperaHttpGateway.activityTracking.clearNonActiveTransfers()},t.removeTransfer=function(e){r.asperaHttpGateway.activityTracking.removeTransfer(e)},t.cancelTransfer=function(e){var t=r.asperaHttpGateway.activityTracking.getTransferById(e);t&&(t.status="canceled")},t.default={initHttpGateway:t.initHttpGateway,testHttpGatewayConnection:t.testHttpGatewayConnection,registerActivityCallback:t.registerActivityCallback,cleanupServerUrl:t.cleanupServerUrl,deregisterActivityCallback:t.deregisterActivityCallback,getTransferById:t.getTransferById,getAllTransfers:t.getAllTransfers,clearNonActiveTransfers:t.clearNonActiveTransfers,removeTransfer:t.removeTransfer,cancelTransfer:t.cancelTransfer}},540(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.messages=void 0,t.messages={callbackIsNotFunction:"The provided callback is not a function",dragDropInitFailed:"Unable to initialize drag-drop",dragDropInitFailedInit:"Unable to initialize drag-drop as part of init flow",failedToGenerateIframe:"Unable to generate IFRAME for download. Using new window",getInstallerError:"Unable to get latest installers",getAllTransfersFailed:"Unable to get all transfers",getTransferFailed:"Unable to get transfer",invalidEndpoint:"The specified endpoint is not a valid URL",loadingProtocol:"Launching IBM Aspera for Desktop",modifyTransferFailed:"Unable to modify transfer",notValidTransferSpec:"The supplied transferSpec is not valid",removeTransferFailed:"Unable to remove transfer",resumeTransferFailed:"Unable to resume transfer",serverError:"Unable to connect to IBM Aspera for Desktop server",serverNotVerified:"IBM Aspera SDK has not been verified. Run test or init first",setBrandingFailed:"Unable to set custom branding",showDirectoryFailed:"Unable to show transfer directory",showSelectFileDialogFailed:"Unable to show select file dialog",showSelectFolderDialogFailed:"Unable to show select folder dialog",showPreferencesFailed:"Unable to show preferences",stopTransferFailed:"Unable to stop transfer",transferFailed:"The transfer failed to initiate",unableToFindElementOnPage:"Unable to find the element on the current page",unableToReadDropped:"The dropped item could not be parsed. Please try selecting via the select file/folder option",websocketClosedError:"The websocket was closed due to an error",websocketClosedUnexpect:"The websocket was closed unexpectedly",websocketNotReady:"The websocket is not ready. Run init first",httpNotAvailable:"IBM Aspera HTTP Gateway is not available",httpInitFail:"IBM Aspera HTTP Gateway could not be started",filePickerCancel:"User canceled the select file or folder dialog.",fileNotAllowed:"TransferSpec contained file not selected by user.",httpNetworkFail:"HTTP network encountered unknown error."}},542(e,t,n){"use strict";e.exports=n(964).polyfill()},556(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.JSONRPCServerAndClient=void 0;var i=n(287),a=function(){function e(e,t,n){var r;void 0===n&&(n={}),this.server=e,this.client=t,this.errorListener=null!==(r=n.errorListener)&&void 0!==r?r:console.warn}return e.prototype.applyServerMiddleware=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this.server).applyMiddleware.apply(e,t)},e.prototype.hasMethod=function(e){return this.server.hasMethod(e)},e.prototype.addMethod=function(e,t){this.server.addMethod(e,t)},e.prototype.addMethodAdvanced=function(e,t){this.server.addMethodAdvanced(e,t)},e.prototype.removeMethod=function(e){this.server.removeMethod(e)},e.prototype.timeout=function(e){return this.client.timeout(e)},e.prototype.request=function(e,t,n){return this.client.request(e,t,n)},e.prototype.requestAdvanced=function(e,t){return this.client.requestAdvanced(e,t)},e.prototype.notify=function(e,t,n){this.client.notify(e,t,n)},e.prototype.rejectAllPendingRequests=function(e){this.client.rejectAllPendingRequests(e)},e.prototype.receiveAndSend=function(e,t,n){return r(this,void 0,void 0,(function(){var r,a;return o(this,(function(o){switch(o.label){case 0:return(0,i.isJSONRPCResponse)(e)||(0,i.isJSONRPCResponses)(e)?(this.client.receive(e),[3,4]):[3,1];case 1:return(0,i.isJSONRPCRequest)(e)||(0,i.isJSONRPCRequests)(e)?[4,this.server.receive(e,t)]:[3,3];case 2:return(r=o.sent())?[2,this.client.send(r,n)]:[3,4];case 3:return a="Received an invalid JSON-RPC message",this.errorListener(a,e),[2,Promise.reject(new Error(a))];case 4:return[2]}}))}))},e}();t.JSONRPCServerAndClient=a},563(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.installerUrl=t.baseInstallerUrl=t.protocol=t.hiddenStyleList=void 0,t.hiddenStyleList="\n display: none !important;\n width: 1px !important;\n height: 1px !important;\n position: fixed !important;\n z-index: -99 !important;\n bottom: 0px !important;\n right: 0px !important;\n",t.protocol="aspera://",t.baseInstallerUrl="https://downloads.ibmaspera.com/downloads/desktop",t.installerUrl="".concat(t.baseInstallerUrl,"/latest/stable")},573(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.client=void 0;var r=n(584),o=n(120),i=n(851);t.client=(0,i.isSafari)()?o.safariClient:r.httpClient},584(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.httpClient=t.handlePromiseLikeErrors=t.getRpcServerUrl=void 0;var r=n(773),o=n(851),i=n(156);t.getRpcServerUrl=function(){return"".concat(i.asperaSdk.globals.asperaAppUrl,":").concat(i.asperaSdk.globals.rpcPort)},t.handlePromiseLikeErrors=function(e){var t=(0,o.generatePromiseObjects)();return e.then((function(e){t.resolver(e)}),(function(e){t.rejecter(e)})),t.promise};var a=function(){var e=this;this.handleRequest=function(n){var r={method:"POST",headers:{"content-type":"application/json"},body:(0,o.safeJsonString)(n)},i=(0,t.getRpcServerUrl)();return fetch(i,r).then((function(t){if(t.ok)return t.json().then((function(t){return e.client.receive(t)}));if(void 0!==n.id)throw Promise.reject(t.statusText)}))},this.request=function(t,n){return e.client.request(t,n)},this.client=new r.JSONRPCClient(this.handleRequest)};t.httpClient=new function(){var e=this;this.request=function(n,r){return void 0===r&&(r={}),(0,t.handlePromiseLikeErrors)(e.httpClient.request(n,r))},this.httpClient=new a},t.default={httpClient:t.httpClient,handlePromiseLikeErrors:t.handlePromiseLikeErrors}},610(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initConnect=t.connectInstallationFlow=t.handleTransfers=void 0;var r=n(156),o=n(794),i=!1,a=!1;t.handleTransfers=function(e){r.asperaSdk.activityTracking.handleTransferActivity({type:"transferUpdated",data:{transfers:e}})},t.connectInstallationFlow=function(){a||(a=!0,r.asperaSdk.globals.connect.addEventListener(r.asperaSdk.globals.connectAW4.Connect.EVENT.STATUS,(function(e,t){if(r.asperaSdk.globals.connectAW4.Connect.EVENT.STATUS===e)switch(t){case r.asperaSdk.globals.connectAW4.Connect.STATUS.INITIALIZING:r.asperaSdk.globals.connectInstaller.showLaunching();break;case r.asperaSdk.globals.connectAW4.Connect.STATUS.EXTENSION_INSTALL:r.asperaSdk.globals.connectInstaller.showExtensionInstall();break;case r.asperaSdk.globals.connectAW4.Connect.STATUS.FAILED:r.asperaSdk.globals.connectInstaller.showDownload();break;case r.asperaSdk.globals.connectAW4.Connect.STATUS.OUTDATED:r.asperaSdk.globals.connectInstaller.showUpdate();break;case r.asperaSdk.globals.connectAW4.Connect.STATUS.RUNNING:r.asperaSdk.globals.connectInstaller.connected()}})))},t.initConnect=function(e){return r.asperaSdk.globals.connect.addEventListener(o.Connect.EVENT.STATUS,(function(e,n){e===o.Connect.EVENT.STATUS&&(r.asperaSdk.globals.connectStatus=n,r.asperaSdk.activityTracking.sendManualEventCallback(n),"RUNNING"!==n||i||(i=!0,r.asperaSdk.globals.connect.addEventListener(o.Connect.EVENT.TRANSFER,(function(e,n){(0,t.handleTransfers)(n.transfers)}))))})),r.asperaSdk.globals.connect.initSession(r.asperaSdk.globals.appId),e&&(0,t.connectInstallationFlow)(),Promise.resolve({connectMode:!0})}},616(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultErrorCode=void 0,t.DefaultErrorCode=0},656(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getInstallerInfo=void 0;var r=n(156),o=n(851),i=n(308),a=n(540);t.getInstallerInfo=function(e){void 0===e&&(e={});var t=e.endpoint||r.asperaSdk.globals.installerUrl;if(t.endsWith("/latest.json")&&(t=t.replace("/latest.json","")),!(0,o.isValidURL)(t))return(0,o.throwError)(a.messages.invalidEndpoint,{url:t});var n=(0,o.generatePromiseObjects)();return(0,i.apiGet)("".concat(t,"/latest.json")).then((function(t){t.json().then((function(t){if(e.endpoint)for(var r=0,i=t.entries;r<i.length;r++){var a=i[r];(0,o.isValidURL)(a.url)||(a.url="".concat(e.endpoint,"/").concat(a.url))}if(e.all)n.resolver(t);else{var s=(0,o.getCurrentPlatform)();t.entries=t.entries.filter((function(e){return e.platform===s})),n.resolver(t)}}))})).catch((function(e){(0,o.errorLog)(a.messages.getInstallerError,e),n.rejecter((0,o.generateErrorBody)(a.messages.getInstallerError,e))})),n.promise}},704(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.startStream=t.injectStreamToDom=void 0;var r=n(400),o=n(159),i=n(211),a=n(888),s=n(521);t.injectStreamToDom=function(e,t,n){void 0===n&&(n={});var r=document.querySelector(t);if(r){for(;r.firstChild;)r.removeChild(r.firstChild);var o=document.createElement("video");if(o.classList.add("aspera-http-gateway-video"),o.controls=!0,void 0!==n.controls&&(o.controls=n.controls),void 0!==n.autoplay&&(o.autoplay=n.autoplay),void 0!==n.loop&&(o.loop=n.loop),void 0!==n.muted&&(o.muted=n.muted),void 0!==n.poster&&(o.poster=n.poster),void 0!==n.height&&(o.height=n.height),void 0!==n.width?o.width=n.width:o.setAttribute("style","width: 100%;"),r.appendChild(o),o.canPlayType("application/vnd.apple.mpegurl"))o.src=e,o.addEventListener("loadedmetadata",(function(){o.play()}));else if(window.Hls.isSupported()){var s=new window.Hls;s.loadSource(e),s.attachMedia(o),s.on(window.Hls.Events.MANIFEST_PARSED,(function(){o.play()}))}}else(0,i.errorLog)(a.messages.streamInjectDomInvalid,{query:t})},t.startStream=function(e,n,l){if(void 0===l&&(l={}),!o.asperaHttpGateway.isReady)return(0,i.errorLog)(a.messages.serverNotVerified),new Promise((function(e,t){t((0,i.generateErrorBody)(a.messages.serverNotVerified))}));if(!(0,i.isValidTransferSpec)(e))return(0,i.errorLog)(a.messages.notValidTransferSpec),new Promise((function(t,n){n((0,i.generateErrorBody)(a.messages.notValidTransferSpec,{transferSpec:e}))}));if(1!==e.paths.length)return(0,i.errorLog)(a.messages.streamingTooManyFiles),new Promise((function(t,n){n((0,i.generateErrorBody)(a.messages.streamingTooManyFiles,{transferSpec:e}))}));var u=(0,i.generatePromiseObjects)(),c={transfer_spec:e},d=l.serverUrlOverride?(0,s.cleanupServerUrl)(l.serverUrlOverride):o.asperaHttpGateway.globals.serverUrl;return(0,r.apiPost)("".concat(d,"/v1/start-stream"),c).then((function(e){e.json().then((function(e){if(e.transfer_spec_id){var r="".concat(d,"/v1/stream/").concat(e.transfer_spec_id,"/").concat(e.transfer_spec_id,".m3u8");if(o.asperaHttpGateway.globals.softwareMode)return void u.resolver({transfer_spec_id:e.transfer_spec_id,url:r});n&&(0,t.injectStreamToDom)(r,n,l),u.resolver()}else(0,i.errorLog)(a.messages.failedToGetStreamUrl,{response:e}),u.rejecter((0,i.generateErrorBody)(a.messages.failedToGetStreamUrl,{response:e}))}))})).catch((function(e){(0,i.errorLog)(a.messages.streamFailed,e),u.rejecter((0,i.generateErrorBody)(a.messages.streamFailed,e))})),u.promise},t.default={startStream:t.startStream,injectStreamToDom:t.injectStreamToDom}},736(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.httpDownload=void 0;var r=n(156),o=n(851),i=n(540),a=n(751),s=n(159);t.httpDownload=function(e,t){return r.asperaSdk.httpGatewayIsReady?r.asperaSdk.useOldHttpGateway?(0,s.download)(e):e.tags&&e.tags.aspera&&e.tags.aspera["http-gateway"]&&e.tags.aspera["http-gateway"].expected_size<=r.asperaSdk.httpGatewayInBrowserDownloadThreshold?function(e,t){var n=(0,a.getSdkTransfer)(e),i=function(e){var t=(0,a.getMessageFromError)(e.response||e);n.status="failed",n.error_code=t.code,n.error_desc=t.message,(0,a.sendTransferUpdate)(n)};(0,a.sendTransferUpdate)(n);var s={"X-Aspera-Spec":(0,a.base64Encoding)((0,o.safeJsonString)(e))};return(null==t?void 0:t.http_gateway_authentication)&&(s.Authorization="Bearer ".concat(t.http_gateway_authentication.token),s["X-Aspera-AccessKey"]=t.http_gateway_authentication.access_key),fetch("".concat((null==t?void 0:t.http_gateway_override_server_url)||r.asperaSdk.globals.httpGatewayUrl,"/download"),{method:"GET",headers:s}).then((function(e){var t=e.headers;n.httpRequestId=t.get("X-Request-Id");var r=[],o=e.body.getReader();n.status="running",(0,a.sendTransferUpdate)(n),n.bytes_expected=Number(t.get("Content-Length")||0);var s=function(){o.read().then((function(o){var l;if(o.done){if(e.status>=400||!n.bytes_written)return void i(e.body);n.status="completed",(0,a.sendTransferUpdate)(n);var u=new Blob(r,{type:t.get("Content-Type")}),c=URL.createObjectURL(u),d=document.createElement("a");d.href=c,d.setAttribute("style","display: none;"),d.download=(t.get("Content-Disposition")||"download").replace('attachment; filename="',"").replace('"',""),document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(c)}else r.push(o.value),n.status="running",n.bytes_written+=(null===(l=o.value)||void 0===l?void 0:l.length)||0,n.percentage=n.bytes_written/n.bytes_expected,(0,a.sendTransferUpdate)(n),s()})).catch((function(e){i(e)}))};s()})).catch((function(e){i(e)})),Promise.resolve(n)}(e,t):function(e,t){var n=(0,a.getSdkTransfer)(e);n.httpDownloadExternalHandle=!0,(0,a.sendTransferUpdate)(n);var i=function(e){var t=(0,a.getMessageFromError)(e.response||e);n.status="failed",n.error_code=t.code,n.error_desc=t.message,(0,a.sendTransferUpdate)(n)},s=new URL((null==t?void 0:t.http_gateway_override_server_url)||r.asperaSdk.globals.httpGatewayUrl),l={"Content-Type":"application/json",accept:"application/json"};(null==t?void 0:t.http_gateway_authentication)&&(l.Authorization="Bearer ".concat(t.http_gateway_authentication.token),l["X-Aspera-AccessKey"]=t.http_gateway_authentication.access_key);var u="https:"===s.protocol?"https":"http";return fetch("".concat(s.toString(),"/presign"),{method:"POST",headers:l,body:(0,o.safeJsonString)({transfer_spec:e,method:"GET",protocol:u,headers:{host:s.host}})}).then((function(e){return e.json().then((function(t){return{headers:e.headers,body:t,status:e.status}}))})).then((function(e){if(e.status>=400)return i(e.body),n;n.httpRequestId=e.headers.get("X-Request-Id"),n.status="running",(0,a.sendTransferUpdate)(n);var t=document.createElement("iframe");return t.src=e.body.signed_url,t.width="1px",t.height="1px",r.asperaSdk.globals.httpGatewayIframeContainer.appendChild(t),n})).catch((function(e){return i(e),n}))}(e,t):(0,o.throwError)(i.messages.serverNotVerified,{type:"download"})}},751(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.base64Encoding=t.getMessageFromError=t.sendTransferUpdate=t.getSdkTransfer=t.httpGatewaySelectFileFolderDialog=t.handleHttpGatewayDrop=t.createHtmlInputElement=t.httpGetTransfer=t.httpGetAllTransfers=t.httpRemoveTransfer=void 0;var r=n(540),o=n(851),i=n(156),a=n(159);t.httpRemoveTransfer=function(e){return i.asperaSdk.useOldHttpGateway?((0,a.removeTransfer)(e),Promise.resolve({removed:!0})):i.asperaSdk.httpGatewayTransferStore.get(e)?(i.asperaSdk.httpGatewayTransferStore.delete(e),Promise.resolve({removed:!0})):Promise.reject((0,o.generateErrorBody)(r.messages.removeTransferFailed,{reason:"Not found"}))},t.httpGetAllTransfers=function(){return i.asperaSdk.useOldHttpGateway?(0,a.getAllTransfers)().transfers:Array.from(i.asperaSdk.httpGatewayTransferStore.values())},t.httpGetTransfer=function(e){return i.asperaSdk.useOldHttpGateway?(0,a.getTransferById)(e):i.asperaSdk.httpGatewayTransferStore.get(e)},t.createHtmlInputElement=function(){var e=window.document.createElement("input");return e.type="file",e.style="display: none;",window.document.body.appendChild(e),e},t.handleHttpGatewayDrop=function(e,t,n){for(var r=[],o=0,a=0,s=function(){if(a>=o){var e=r.map((function(e){return i.asperaSdk.httpGatewaySelectedFiles.set(e.name,e),{lastModified:e.lastModified,name:e.name,size:e.size,type:e.type}}));t({event:n,files:{dataTransfer:{files:e}}})}},l=function(e){e.isFile?e.file((function(e){r.push(e),a++,s()})):e.isDirectory?(e.createReader().readEntries((function(e){for(var t=0;t<e.length;t++)o++,l(e[t])})),a++):(a++,s())},u=0;u<e.length;u++){var c=e[u].webkitGetAsEntry();c&&(o++,l(c))}},t.httpGatewaySelectFileFolderDialog=function(e,n){if(i.asperaSdk.useOldHttpGateway)return n?(0,a.getFoldersForUploadPromise)((null==e?void 0:e.http_gateway_v2_transfer_id)||""):(0,a.getFilesForUploadPromise)((null==e?void 0:e.http_gateway_v2_transfer_id)||"");var s=(0,o.generatePromiseObjects)(),l=s.promise,u=s.rejecter,c=s.resolver,d=(0,t.createHtmlInputElement)();return d.multiple=!!(null==e?void 0:e.multiple),n&&(d.webkitdirectory=!0),d.oncancel=function(){u({debugData:{code:-32002,message:r.messages.filePickerCancel}})},d.onchange=function(){for(var e=[],t=0;t<d.files.length;t++){var n=d.files[t];e.push(n),i.asperaSdk.httpGatewaySelectedFiles.set(n.name,n)}c({dataTransfer:{files:e.map((function(e){return{size:e.size,lastModified:e.lastModified,name:e.webkitRelativePath||e.name,type:e.type}}))}})},d.click(),l},t.getSdkTransfer=function(e){return{uuid:(0,o.randomUUID)(),transfer_spec:e,current_file:"",add_time:(new Date).toISOString(),file_counts:{attempted:0,completed:0,failed:0,skipped:0},end_time:"",explorer_path:"",status:"queued",bytes_written:0,bytes_expected:0,calculated_rate_kbps:0,elapsed_usec:0,percentage:0,title:"",remaining_usec:0,httpGatewayTransfer:!0,httpDownloadExternalHandle:!1}},t.sendTransferUpdate=function(e){i.asperaSdk.httpGatewayTransferStore.set(e.uuid,e),i.asperaSdk.activityTracking.handleTransferActivity({type:"transferUpdated",data:{transfers:[e]}})},t.getMessageFromError=function(e){var t=(0,o.safeJsonParse)(e),n=r.messages.httpNetworkFail,i=500;return t&&"object"==typeof t?(n=t.message||t.description||r.messages.httpNetworkFail,i=t.code||500):e&&"object"==typeof e?(n=e.message||e.description||r.messages.httpNetworkFail,i=e.code||500):"string"==typeof e&&(n=e),{message:n,code:i}},t.base64Encoding=function(e){var t=(new TextEncoder).encode(e),n=Array.from(t,(function(e){return String.fromCodePoint(e)})).join("");return btoa(n)}},771(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeDropzone=t.createDropzone=t.upload=t.startWebSocketTransfer=t.getFoldersForUploadPromise=t.getFoldersForUpload=t.getFilesForUploadPromise=t.getFilesForUpload=t.addFolderPickerToForm=t.addFilePickerToForm=t.startSendingData=t.handleSoftwareModeSlicing=t.handleBlobSlicing=t.updateTransferActivity=void 0;var r=n(159),o=n(211),i=n(888),a=n(869),s=n(131),l=n(521);t.updateTransferActivity=function(e,n,o,i,a,l){var u=r.asperaHttpGateway.activityTracking.getTransferById(e);if(u&&"canceled"!==u.status&&"completed"!==u.status){if(u.status=n,u.bytes_expected=o||u.bytes_expected,u.bytes_written=i||u.bytes_written,l&&(u.current_file=l.name),("completed"===n||"failed"===n)&&r.asperaHttpGateway.activityTracking.queuedUploads.length){var c=r.asperaHttpGateway.activityTracking.queuedUploads.shift();(0,t.startWebSocketTransfer)(c.id,c.transferSpec,c.files,void 0,{serverUrlOverride:u.serverUrlOverride||void 0})}"completed"===n?(u.setEndTime(),r.asperaHttpGateway.globals.deleteFormFromContainer(e.split(s.keySplit)[0])):"failed"===n&&(u.error_desc=a.reason,u.error_code=a.code,r.asperaHttpGateway.globals.deleteFormFromContainer(e.split(s.keySplit)[0])),r.asperaHttpGateway.activityTracking.triggerActivityCallbacks()}},t.handleBlobSlicing=function(e,t,n,r,i){var a;"function"==typeof e.slice?a=e.slice(t,t+n):"function"==typeof e.mozSlice?a=e.mozSlice(t,t+n):"function"==typeof e.webkitSlice&&(a=e.webkitSlice(t,t+n)),i.onload=r,i[(0,o.getFeatureFlag)("noBase64Encoding")?"readAsArrayBuffer":"readAsDataURL"](a)},t.handleSoftwareModeSlicing=function(e,t,n,r){var i=e.data.slice(t,t+n);r({total:i.length,target:{result:(0,o.getFeatureFlag)("noBase64Encoding")?i:Buffer.from(i).toString("base64")}})},t.startSendingData=function(e,n,a,s,l,u){var c=0,d=0;a.forEach((function(e){c+=e.size})),(0,t.updateTransferActivity)(s,"running",c),a.forEach((function(n,a){for(var c=0,f=Math.ceil(n.size/r.asperaHttpGateway.globals.chunkSize),p=function(p){l.push((function(){var h=function(u){var p=r.asperaHttpGateway.activityTracking.getTransferById(s);if(!p||"failed"!==p.status)if(p&&"canceled"===p.status)e.close();else{var h=u.target.result;try{(0,o.getFeatureFlag)("noBase64Encoding")?(0===c&&e.send(JSON.stringify({slice_upload:{name:n.asperaDropPath||n.webkitRelativePath||n.name,type:n.type,size:n.size,slice:c,total_slices:f,fileIndex:a}})),e.send(h),c===f-1&&e.send(JSON.stringify({slice_upload:{name:n.asperaDropPath||n.webkitRelativePath||n.name,type:n.type,size:n.size,slice:c,total_slices:f,fileIndex:a}}))):("string"==typeof u.target.result&&u.target.result.indexOf("base64,")>-1&&(h=u.target.result.split("base64,")[1]),e.send(JSON.stringify({slice_upload:{name:n.asperaDropPath||n.webkitRelativePath||n.name,type:n.type,size:n.size,data:h,slice:c,total_slices:f,fileIndex:a}})))}catch(e){throw(0,t.updateTransferActivity)(s,"failed"),(0,o.errorLog)(i.messages.unableToParseDataForUpload,e),Error()}c++,u.total&&(d+=u.total);var g=r.asperaHttpGateway.activityTracking.getTransferById(s);g&&g.recentPacketTransfer(u.total),(0,t.updateTransferActivity)(s,"running",void 0,d,void 0,n),l.shift()}};r.asperaHttpGateway.globals.softwareMode?(0,t.handleSoftwareModeSlicing)(n,p,r.asperaHttpGateway.globals.chunkSize,h):(0,t.handleBlobSlicing)(n,p,r.asperaHttpGateway.globals.chunkSize,h,u)}))},h=0;h<n.size;h+=r.asperaHttpGateway.globals.chunkSize)p(h)}));try{e.send(JSON.stringify({transfer_spec:n}))}catch(e){throw(0,t.updateTransferActivity)(s,"failed"),(0,o.errorLog)(i.messages.unableToParseDataForUpload,e),Error()}},t.addFilePickerToForm=function(e){var t=document.createElement("input");return t.type="file",t.multiple=!0,t.name="file-"+e.children.length,e.appendChild(t),t},t.addFolderPickerToForm=function(e){var t=document.createElement("input");return t.type="file",t.multiple=!0,t.webkitdirectory=!0,t.mozdirectory=!0,t.msdirectory=!0,t.odirectory=!0,t.directory=!0,t.name="file-"+e.children.length,e.appendChild(t),t},t.getFilesForUpload=function(e,n){if(r.asperaHttpGateway.isReady){var s=r.asperaHttpGateway.globals.createOrUseForm(n),l=(0,t.addFilePickerToForm)(s);l.onchange=function(){var t=[];if(l.files){for(var n=0;n<l.files.length;n++)t.push(new a.FileSelected(l.files[n]));e({dataTransfer:{files:t}})}else e({dataTransfer:{files:t}})},l.click()}else(0,o.errorLog)(i.messages.serverNotVerified)},t.getFilesForUploadPromise=function(e){var n=(0,o.generatePromiseObjects)();return(0,t.getFilesForUpload)((function(e){n.resolver(e)}),e),n.promise},t.getFoldersForUpload=function(e,n){if(r.asperaHttpGateway.isReady){var s=r.asperaHttpGateway.globals.createOrUseForm(n),l=(0,t.addFolderPickerToForm)(s);l.onchange=function(){var t=[],i=new Map;if(l.files){for(var s=0;s<l.files.length;s++){var u=l.files[s];if(u.webkitRelativePath){var c=u.webkitRelativePath.split("/")[0];i.get(c)||i.set(c,{path:c,files:[]}),i.get(c).files.push(u)}else t.push(new a.FileSelected(l.files[s]))}var d=r.asperaHttpGateway.globals.getOrCreateFolderDataList(n);(0,o.iterableToArray)(i.values()).forEach((function(e){d.set(e.path,e),t.push(new a.FileSelected({name:e.path,size:0,type:"inode/directory"}))})),e({dataTransfer:{files:t}})}else e({dataTransfer:{files:t}})},l.click()}else(0,o.errorLog)(i.messages.serverNotVerified)},t.getFoldersForUploadPromise=function(e){var n=(0,o.generatePromiseObjects)();return(0,t.getFoldersForUpload)((function(e){n.resolver(e)}),e),n.promise},t.startWebSocketTransfer=function(e,n,s,u,c){void 0===c&&(c={});var d=[],f="function"==typeof FileReader?new FileReader:null,p=c.serverUrlOverride?(0,l.cleanupServerUrl)(c.serverUrlOverride):r.asperaHttpGateway.globals.serverUrl,h=new WebSocket((0,o.getWebsocketUrl)(p,location.protocol));h.onopen=function(o){u&&u.resolver(o),r.asperaHttpGateway.activityTracking.setTransfer(e,new a.HttpTransfer(e,n,s,void 0,{serverUrlOverride:c.serverUrlOverride})),(0,t.startSendingData)(h,n,s,e,d,f)},h.onclose=function(n){var a=r.asperaHttpGateway.activityTracking.getTransferById(e);a&&"completed"!==a.status&&((0,t.updateTransferActivity)(e,"failed",void 0,void 0,n),(0,o.errorLog)(i.messages.websocketClosedUnexpect,{error:n}))},h.onmessage=function(n){"end upload"===n.data&&(d.length?d[0]():(setTimeout((function(){h.close(1e3)}),5e3),(0,t.updateTransferActivity)(e,"completed")))},h.onerror=function(n){(0,o.errorLog)(i.messages.websocketClosedUnexpect,n),(0,t.updateTransferActivity)(e,"failed",void 0,void 0,n),u&&u.rejecter(n)}},t.upload=function(e,n,l,u){if(void 0===u&&(u={}),!r.asperaHttpGateway.isReady)return(0,o.errorLog)(i.messages.serverNotVerified),new Promise((function(e,t){t((0,o.generateErrorBody)(i.messages.serverNotVerified))}));if(!(0,o.isValidTransferSpec)(e))return(0,o.errorLog)(i.messages.notValidTransferSpec),new Promise((function(t,n){n((0,o.generateErrorBody)(i.messages.notValidTransferSpec,{transferSpec:e}))}));var c=(0,o.getFilesForTransfer)(n,e);l&&l.forEach((function(e){c.push(e)}));var d=(0,o.folderTransferSpecExplode)(n,e);if(d.files.length&&(d.files.forEach((function(e){c.push(e)})),e.paths=d.newPath),!c.length)return(0,o.errorLog)(i.messages.unableToGetFilesForUpload),new Promise((function(t,n){n((0,o.generateErrorBody)(i.messages.unableToGetFilesForUpload,{transferSpec:e,files:c}))}));if(c.length!==e.paths.length)return(0,o.errorLog)(i.messages.unauthorizedFilesForUpload),new Promise((function(t,n){n((0,o.generateErrorBody)(i.messages.unauthorizedFilesForUpload,{transferSpec:e,files:c}))}));var f=(0,o.generatePromiseObjects)();return n="".concat(n).concat(s.keySplit).concat((1e7*Math.random()).toFixed()),r.asperaHttpGateway.activityTracking.getActiveTransfers().length>=r.asperaHttpGateway.globals.concurrentUploads?(r.asperaHttpGateway.activityTracking.queuedUploads.push({id:n,transferSpec:e,files:c}),r.asperaHttpGateway.activityTracking.setTransfer(n,new a.HttpTransfer(n,e,c,"queued",{serverUrlOverride:u.serverUrlOverride})),setTimeout((function(){f.resolver({})}),100)):(0,t.startWebSocketTransfer)(n,e,c,f,u),f.promise},t.createDropzone=function(e,t){var n=document.querySelectorAll(t);if(n&&n.length){r.asperaHttpGateway.globals.createOrUseForm(s.dropContainerName);var a=r.asperaHttpGateway.globals.getOrCreateFormFileListFromDrop(s.dropContainerName),l=r.asperaHttpGateway.globals.getOrCreateFolderDataList(s.dropContainerName),u=function(e){e.preventDefault()},c=function(t){t.preventDefault();var n=[];if(t.dataTransfer&&t.dataTransfer.items&&t.dataTransfer.items.length&&t.dataTransfer.items[0]&&"string"!==t.dataTransfer.items[0].kind)try{for(var r=function(e){var r=t.dataTransfer.items[e].webkitGetAsEntry();if(r.isFile){var o=t.dataTransfer.items[e].getAsFile();a.push(o),n.push({lastModified:o.lastModified,name:o.name,size:o.size,type:o.type})}else if(r.isDirectory){var i={path:r.name,files:[]};n.push({lastModified:0,name:r.name,size:0,type:"inode/directory"});var s=function(e){e.createReader().readEntries((function(e){e.forEach((function(e){e.isFile?e.file((function(t){t.asperaDropPath=e.fullPath,i.files.push(t)})):e.isDirectory&&s(e)})),l.set(i.path,i)}))};s(r)}},s=0;s<t.dataTransfer.items.length;s++)r(s)}catch(e){(0,o.errorLog)(i.messages.unableToReadFolder,{event:t,error:e}),alert(i.messages.unableToReadFolder)}else if(t.dataTransfer.files)for(s=0;s<t.dataTransfer.files.length;s++)a.push(t.dataTransfer.files[s]),n.push(t.dataTransfer.files[s]);e({event:t,files:{dataTransfer:{files:n}}})};n.forEach((function(e){e.addEventListener("dragover",u),e.addEventListener("drop",c),r.asperaHttpGateway.globals.dropzonesCreated.set(t,[{event:"dragover",callback:u},{event:"drop",callback:c}])}))}else(0,o.errorLog)(i.messages.unableToFindElementOnPage)},t.removeDropzone=function(e){var t=r.asperaHttpGateway.globals.dropzonesCreated.get(e);t&&t.forEach((function(t){var n=document.querySelectorAll(e);n&&n.length&&n.forEach((function(e){e.removeEventListener(t.event,t.callback)}))}))},t.default={upload:t.upload,updateTransferActivity:t.updateTransferActivity,startSendingData:t.startSendingData,addFilePickerToForm:t.addFilePickerToForm,createDropzone:t.createDropzone,removeDropzone:t.removeDropzone,getFilesForUploadPromise:t.getFilesForUploadPromise,getFilesForUpload:t.getFilesForUpload,getFoldersForUploadPromise:t.getFoldersForUploadPromise,getFoldersForUpload:t.getFoldersForUpload}},773(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(94),t),o(n(989),t),o(n(287),t),o(n(490),t),o(n(556),t)},794(e,t,n){"use strict";n.r(t),n.d(t,{Connect:()=>ve,ConnectInstaller:()=>$,Logger:()=>T,Utils:()=>J});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function s(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function u(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError,n(542);var c={DOWNLOAD_CONNECT:"downloadconnect",REFRESH_PAGE:"refresh",IFRAME_REMOVED:"removeiframe",IFRAME_LOADED:"iframeloaded",TROUBLESHOOT:"troubleshoot",CONTINUE:"continue",RESIZE:"px",RETRY:"retry",EXTENSION_INSTALL:"extension_install",DOWNLOAD_EXTENSION:"download_extension"},d={CONNECT_BAR_VISIBLE:"connect_bar_visible",CLICKED_INSTALL_EXTENSION:"clicked_install_extension",CLICKED_ENABLE_EXTENSION:"clicked_enable_extension",CLICKED_INSTALL_ADDON:"clicked_install_addon",CLICKED_DOWNLOAD_APP:"clicked_download_app",CLICKED_INSTALL_APP:"clicked_install_app",CLICKED_TROUBLESHOOT:"clicked_troubleshoot",CLICKED_DOWNLOAD_INDICATOR:"clicked_download_indicator",DOWNLOAD_INDICATOR_VISIBLE:"download_indicator_visible",CLICKED_HOW_LINK:"clicked_how_link",CONNECT_BAR_REMOVED:"connect_bar_removed",CLICKED_RETRY:"mitigate_with_tab"},f={CONNECT_BAR_EVENT:"connect_bar_event"},p="connect-version-continued",h="connect-app-id",g="aspera-log-level",m="3.9.0",v={GET:"GET",POST:"POST",DELETE:"DELETE",REVERT:"REVERT"},y={INITIALIZING:"INITIALIZING",RETRYING:"RETRYING",RUNNING:"RUNNING",OUTDATED:"OUTDATED",FAILED:"FAILED",EXTENSION_INSTALL:"EXTENSION_INSTALL",STOPPED:"STOPPED",WAITING:"WAITING",DEGRADED:"DEGRADED"},b={ALL:"all",TRANSFER:"transfer",STATUS:"status"},w={activity:{route:"activity",prefix:"/connect/transfers/"},authenticate:{route:"authenticate",prefix:"/connect/info/"},droppedFiles:{route:"dropped-files",prefix:"/connect/file/"},getTransfer:{route:"info/${id}",prefix:"/connect/transfers/"},initDragDrop:{route:"initialize-drag-drop",prefix:"/connect/file/"},modifyTransfer:{route:"modify/${id}",prefix:"/connect/transfers/"},ping:{route:"ping",prefix:"/connect/info/"},readAsArrayBuffer:{route:"read-as-array-buffer/",prefix:"/connect/file/"},readChunkAsArrayBuffer:{route:"read-chunk-as-array-buffer/",prefix:"/connect/file/"},getChecksum:{route:"checksum/",prefix:"/connect/file/"},removeTransfer:{route:"remove/${id}",prefix:"/connect/transfers/"},resumeTransfer:{route:"resume/${id}",prefix:"/connect/transfers/"},showAbout:{route:"about",prefix:"/connect/windows/"},showDirectory:{route:"finder/${id}",prefix:"/connect/windows/"},showPreferences:{route:"preferences",prefix:"/connect/windows/"},showPreferencesPage:{route:"preferences/${id}",prefix:"/connect/windows/"},showSaveFileDialog:{route:"select-save-file-dialog/",prefix:"/connect/windows/"},showSelectFileDialog:{route:"select-open-file-dialog/",prefix:"/connect/windows/"},showSelectFolderDialog:{route:"select-open-folder-dialog/",prefix:"/connect/windows/"},showTransferManager:{route:"transfer-manager",prefix:"/connect/windows/"},showTransferMonitor:{route:"transfer-monitor/${id}",prefix:"/connect/windows/"},startTransfer:{route:"start",prefix:"/connect/transfers/"},stopTransfer:{route:"stop/${id}",prefix:"/connect/transfers/"},testSshPorts:{route:"ports",prefix:"/connect/info/"},version:{route:"version",prefix:"/connect/info/"}},S=0;function E(e,t){var n;void 0!==window.console&&(n=window.console)[e].apply(n,u([],l(t),!1))}"undefined"!=typeof localStorage&&Object.prototype.hasOwnProperty.call(localStorage,g)&&(S=Number(localStorage.getItem(g)));var T={debug:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];S>=1&&E("log",e)},error:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];E("error",e)},log:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];E("log",e)},setLevel:function(e){S=e,localStorage[g]=e},trace:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];S>=2&&E("log",e)},warn:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];E("warn",e)}},k="undefined"!=typeof navigator?navigator.userAgent:"",C=function(e,t){var n=e.match(/(?:Edge)[/](\d+(\.\d+)?)/i);return parseInt(n&&n.length>1&&n[1]||"0",10)>=t},_=function(e,t){var n=e.match(/(?:Firefox)[/](\d+(\.\d+)?)/i);return parseInt(n&&n.length>1&&n[1]||"0",10)>=t};const x={ANDROID:/(android)/i.test(k),OPERA:/opera|opr/i.test(k)&&!/edge/i.test(k),IE:/msie|trident/i.test(k)&&!/edge/i.test(k),IOS:/iPad|iPhone|iPod/.test(k)&&!window.MSStream,CHROME:/chrome|crios|crmo/i.test(k)&&!/opera|opr/i.test(k)&&!/edge/i.test(k),FIREFOX:/firefox|iceweasel/i.test(k)&&!/edge/i.test(k)&&_(k,50),FIREFOX_LEGACY:/firefox|iceweasel/i.test(k)&&!/edge/i.test(k)&&!_(k,50),EDGE_CHROMIUM:/edg/i.test(k)&&!/edge/i.test(k),EDGE_WITH_EXTENSION:/edge/i.test(k)&&C(k,14),EDGE_LEGACY:/edge/i.test(k)&&!C(k,14),SAFARI:/safari/i.test(k)&&!/chrome|crios|crmo/i.test(k)&&!/edge/i.test(k),SAFARI_NO_NPAPI:/safari/i.test(k)&&!/chrome|crios|crmo/i.test(k)&&!/edge/i.test(k)&&function(e){var t=e.match(/(?:Version)[/](\d+(\.\d+)?)/i);return parseInt(t&&t.length>1&&t[1]||"0",10)>=10}(k)};var P={connectVersion:"",minVersion:"",sessionId:"",sessionKey:""};P.sessionId=M(),P.sessionKey=function(){for(var e="",t=0;t<32;t++)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return e}();var I=0;function A(e,t){var n="";return-1===e&&(n="Invalid request"),{error:{code:e,internal_message:n,user_message:t}}}function N(e){var t;"string"==typeof e&&(0===e.length||e.replace(/\s/g,""));try{t=JSON.parse(e)}catch(e){t=A(-1,e)}return t}function O(e){var t={};if(!R(e))for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function R(e){return""===e||null==e}function F(e,t){var n,r=function(e){for(var t=e.split("."),n=[],r=0;r<t.length;r++){var o=parseInt(t[r],10);isNaN(o)||n.push(o)}return n},o=r(e),i=r(t);for(n=0;n<Math.min(o.length,i.length);n++){if(o[n]<i[n])return!0;if(o[n]>i[n])return!1}return!1}function D(){if("undefined"==typeof localStorage)return!1;var e=localStorage.getItem(p);return null!=e&&Math.round((new Date).getTime()/1e3)-Number(e)<1440&&(T.debug("User opted out of update"),!0)}function L(){var e,t;return{promise:new Promise((function(n,r){e=n,t=r})),resolver:e,rejecter:t}}function M(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n;return n=((e+16)*Math.random()).toFixed()%16,"x"!==t&&(n=3&n|8),n.toString(16)}))}function U(e){var t=!1,n="fasp://initialize";if(T.debug("Starting Connect session: "+n),x.CHROME||x.OPERA)document.body.focus(),document.body.onblur=function(){t=!0},document.location.href=n,setTimeout((function(){document.body.onblur=null,"function"==typeof e&&e(t)}),500);else if(x.EDGE_LEGACY||x.EDGE_WITH_EXTENSION)document.location.href=n;else if(x.FIREFOX_LEGACY||x.FIREFOX||x.SAFARI_NO_NPAPI){var r=document.createElement("IFRAME");r.src=n,r.style.visibility="hidden",r.style.position="absolute",r.style.width="0px",r.style.height="0px",r.style.border="0px",document.body.appendChild(r)}}function j(e){if("string"==typeof e){var t=e,n=document.createElement("a");n.href=t;var r=n.href;return-1!==r.indexOf("/",r.length-1)&&(r=r.slice(0,-1)),r}}function G(e){return window.btoa?window.btoa(unescape(encodeURIComponent(e))):e}function z(e){return window.atob?decodeURIComponent(escape(window.atob(e))):e}function B(e){return e>=200&&e<300}function H(e){try{if("undefined"!=typeof localStorage)return localStorage.getItem(e)}catch(e){T.error("Error accessing localStorage: ",JSON.stringify(e))}return""}function V(e,t){try{"undefined"!=typeof localStorage&&localStorage.setItem(e,t)}catch(e){T.error("Error accessing localStorage: ",JSON.stringify(e))}}function q(e){return e&&void 0!==e.error}function W(){return x.IOS||x.ANDROID}var J={atou:z,getFullURI:j,launchConnect:U,utoa:G,BROWSER:x};const X=function(e){var t=this;this.outstandingRequests={},this.connectStatus=y.INITIALIZING,this.defaultDialogTimeout=864e5,this.changeConnectStatus=function(e){t.connectStatus!==e&&(t.connectStatus=e,t.options.requestStatusCallback(e))},this.httpRequest=function(e,n){var r=L();(e.path.indexOf("/v5/")>-1||e.path.indexOf("/v6/")>-1)&&(e.path=e.path.replace("/v5","").replace("/v6","")),R(e.body)&&(e.body="");var o={request_id:n,min_version:t.options.minVersion||"",method:e.method,uri_reference:e.path,body:e.body};return/select/i.test(e.path)&&(t.options.extensionRequestTimeout?o.timeout=t.options.extensionRequestTimeout:o.timeout=t.defaultDialogTimeout),T.debug(o),t.outstandingRequests[n]={req:o,response:"",resolve:r.resolver},document.dispatchEvent(new CustomEvent("AsperaConnectRequest",{detail:o})),r.promise},this.options=e};var Q=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._extensionDetected=!1,t.name="nmh",t.handleDisconnect=function(e){return a(t,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return T.debug("Native host disconnected. Detail: "+e.detail),this.connectStatus===y.OUTDATED?[2]:e&&e.detail&&(t=!1,["native messaging host not found","Error when communicating with the native messaging host","Access to the specified native messaging host is forbidden","No such native application"].forEach((function(n){-1!==e.detail.indexOf(n)&&(t=!0)})),t)?(this.changeConnectStatus(y.FAILED),document.removeEventListener("AsperaConnectDisconnect",this.handleDisconnect),[2]):this.connectStatus===y.DEGRADED?[3,2]:(this.changeConnectStatus(y.DEGRADED),[4,this.detectConnect(this.options.connectLaunchWaitTimeoutMs)]);case 1:n.sent()?this.changeConnectStatus(y.RUNNING):this.changeConnectStatus(y.FAILED),n.label=2;case 2:return[2]}}))}))},t.resolveExtensionResponse=function(e){var n;if("message"===e.type&&"object"==typeof e.data&&"type"in e.data&&"AsperaConnectResponse"===e.data.type&&"detail"in e.data?n=e.data.detail:"detail"in e&&(n=e.detail),n){T.trace("Native host impl received response: "+JSON.stringify(n));var r=n.request_id;if(!(r in t.outstandingRequests))return;var o=t.outstandingRequests[r].resolve;if("body64"in n){if(t.outstandingRequests[r].response+=n.body64,!0===n.complete){var i=z(t.outstandingRequests[r].response);delete t.outstandingRequests[r],o({status:n.status,body:i,requestId:r})}}else delete t.outstandingRequests[r],o({status:n.status,body:n.body,requestId:r})}},t.detectionLoop=function(e,n){return void 0===e&&(e=-1),a(t,void 0,void 0,(function(){var t,r;return s(this,(function(o){switch(o.label){case 0:return t=new Promise((function(t){setTimeout(t,e,!1)})),[4,Promise.race(u(u([],l(-1!==e?[t]:[]),!1),[n()],!1))];case 1:return r=o.sent(),clearInterval(this._detectionRetry),[2,r]}}))}))},t.detectConnect=function(e){return void 0===e&&(e=-1),a(t,void 0,void 0,(function(){var t,n=this;return s(this,(function(r){return t=function(){return new Promise((function(e){var t=1,r=function(){return a(n,void 0,void 0,(function(){var n,r;return s(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),T.debug("Detecting Connect installation via extension. Attempt "+t),t++,n={method:"GET",path:"/connect/info/version"},r=10500*this.options.objectId,[4,this.httpRequest(n,r)];case 1:return 503===o.sent().status?(T.debug("Detected old version of Connect via extension."),this.changeConnectStatus(y.OUTDATED)):(T.debug("Detected Connect installation via extension."),window.localStorage.setItem("aspera-last-detected",Date.now().toString()),this.changeConnectStatus(y.RUNNING),clearInterval(this._detectionRetry),e(!0)),[3,3];case 2:return o.sent(),clearInterval(this._detectionRetry),e(!1),[3,3];case 3:return[2]}}))}))};n._detectionRetry=setInterval(r,1e3),r()}))},[2,this.detectionLoop(e,t)]}))}))},t.detectExtension=function(e){return void 0===e&&(e=-1),a(t,void 0,void 0,(function(){var t,n=this;return s(this,(function(r){return this._extensionDetected?[2,!0]:(t=function(){return new Promise((function(t){var r=1,o=function(){T.debug("Detecting Connect extension. Attempt "+r),r++,document.dispatchEvent(new CustomEvent("AsperaConnectCheck",{}))},i=function(e){"message"===e.type&&"object"==typeof e.data&&"type"in e.data&&"AsperaConnectCheckResponse"===e.data.type&&(window.removeEventListener("message",i),T.debug("Extension detected: "+JSON.stringify(e.data)),n._extensionDetected=!0,clearInterval(n._detectionRetry),t(!0))};window.addEventListener("message",i);var a=-1===e?1e3:200;n._detectionRetry=setInterval(o,a),o()}))},[2,this.detectionLoop(e,t)])}))}))},t.stop=function(){clearInterval(t._detectionRetry)},t.startup=function(){return a(t,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return document.addEventListener("AsperaConnectResponse",this.resolveExtensionResponse),window.addEventListener("message",this.resolveExtensionResponse),document.addEventListener("AsperaConnectDisconnect",this.handleDisconnect),[4,this.detectExtension()];case 1:return e.sent(),[4,this.detectConnect()];case 2:return e.sent(),T.debug("nmh init finished"),[2]}}))}))},t}return o(t,e),t}(X);const K=Q;var Y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.pollingRequestErrors=0,t.extensionDetected=!1,t.name="safari",t.resolveHttpResponse=function(e){if(e.detail){T.trace("Safari extension impl received response: "+JSON.stringify(e));var n=e.detail.request_id;if(!(n in t.outstandingRequests))return;var r=t.outstandingRequests[n].req.uri_reference,o=t.outstandingRequests[n].resolve;if(delete t.outstandingRequests[n],0===e.detail.status&&r.indexOf("/connect/transfers/activity")>0&&t.pollingRequestErrors<3)return void t.pollingRequestErrors++;t.pollingRequestErrors=0,o({status:e.detail.status,body:e.detail.body,requestId:n})}},t.checkEvent=function(){document.dispatchEvent(new CustomEvent("AsperaConnectCheck",{}))},t.detectExtension=function(e){return void 0===e&&(e=-1),a(t,void 0,void 0,(function(){var t,n,r,o=this;return s(this,(function(i){switch(i.label){case 0:return this.extensionDetected?(T.debug("Skipping extension check - already detected."),[2,!0]):(t=new Promise((function(t){setTimeout(t,e,!1)})),n=function(){return new Promise((function(t){var n=1,r=function(){T.debug("Detecting Connect extension. Attempt "+n),n++,o.checkEvent();var e=document.getElementById("aspera-connect-detector");if(e&&"true"===e.getAttribute("extension-enable")&&(T.debug("Detected extension"),clearInterval(o.detectionRetry),o.checkEvent(),setTimeout((function(){o.extensionDetected?(o.changeConnectStatus(y.RUNNING),t(!0)):(window.postMessage("show_safari_mitigate","*"),t(!1))}),1e3)),!e){T.debug("Creating detector in sdk...");var r=document.createElement("div");r.id="aspera-connect-detector",r.setAttribute("extension-enable","false"),document.body.appendChild(r)}},i=function(e){"AsperaConnectCheckResponse"===e.type&&"detail"in e&&"object"==typeof e.detail&&(document.removeEventListener("AsperaConnectCheckResponse",i),T.debug("Got response from Connect: "+JSON.stringify(e.detail)),clearInterval(o.detectionRetry),o.extensionDetected=!0,t(!0))};document.addEventListener("AsperaConnectCheckResponse",i);var a=-1===e?500:200;o.detectionRetry=setInterval(r,a),r()}))},[4,Promise.race(u(u([],l(-1!==e?[t]:[]),!1),[n()],!1))]);case 1:return r=i.sent(),clearInterval(this.detectionRetry),[2,r]}}))}))},t.stop=function(){clearTimeout(t.detectionRetry)},t.startup=function(){return a(t,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return T.debug("startup()"),document.addEventListener("AsperaConnectResponse",this.resolveHttpResponse),[4,this.detectExtension()];case 1:return e.sent(),T.debug("safari init finished"),[2]}}))}))},t}return o(t,e),t.prototype.triggerExtensionCheck=function(){var e=document.createElement("IFRAME");e.src="fasp://initialize?checkextensions",e.style.visibility="hidden",e.style.position="absolute",e.style.width="0px",e.style.height="0px",e.style.border="0px",document.body.appendChild(e)},t}(X);const Z=Y;var $=function e(t){var n=this&&this instanceof e?this.constructor:void 0,r=this;if(!n)throw new Error("ConnectInstaller() must be called with new");var o,i="//d3gcli72yxqn2z.cloudfront.net/downloads/connect",a={},s=[],l=0,u=!1,h=[],g=!x.IE;if(R(t)&&(t={}),R(H("aspera-install-attempted"))&&V("aspera-install-attempted","true"),R(H("aspera-last-detected"))&&V("aspera-last-detected",""),a.version=t.version||"latest",a.iframeId=t.iframeId||"aspera-iframe-container",a.sdkLocation=R(t.sdkLocation)?"".concat(i,"/").concat(a.version):j(t.sdkLocation),a.stylesheetLocation=j(t.stylesheetLocation),a.correlationId=t.correlationId,a.style=t.style||"carbon","undefined"!=typeof Storage){var m=H("aspera-connect-install-style");m&&(a.style=m)}"carbon"===a.style&&(e.supportsInstallingExtensions=!0);var v=function(e){for(var t=0;t<s.length;t++)s[t](e)};this.addEventListener=function(e){"function"==typeof e&&s.push(e)},this.addActivityListener=function(e,t){"function"==typeof t&&e===f.CONNECT_BAR_EVENT&&h.push(t)},this.installationJSON=function(e){var t=this;if("function"==typeof e)if(void 0===o){var n=a.sdkLocation;!function(e,t,n){if(null!=e&&e instanceof Array){var r=0,o=document.getElementsByTagName("head")[0]||document.documentElement,i=function(e){var i,a=!1;if("js"===t.toLowerCase())(i=document.createElement("script")).setAttribute("type","text/javascript"),i.setAttribute("src",e);else{if("css"!==t.toLowerCase())return;(i=document.createElement("link")).setAttribute("rel","stylesheet"),i.setAttribute("type","text/css"),i.setAttribute("href",e)}i.onload=i.onreadystatechange=function(){a||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(a=!1,i.onload=i.onreadystatechange=null,o&&i.parentNode&&o.removeChild(i),--r<=0&&n(!0))},i.onerror=function(){n(!1)},o.insertBefore(i,o.firstChild)};r=e.length;for(var a=0;a<r;a++)"string"==typeof e[a]&&i(e[a])}}([n+"/versions.js"],"js",(function(r){var s="".concat(i,"/").concat(a.version);r&&void 0!==window.connectVersions?function(n){for(var r,i=window.connectVersions.entries,a=function(){var e="unsupported";if(/Win/.test(navigator.platform))e="win64";else{if(/CrOS/.test(navigator.userAgent))return e;/Mac/.test(navigator.platform)?e="macOS":/Linux/.test(navigator.platform)&&(e="linux")}return e}(),s=0;s<i.length;s++){var l=i[s];if(a===l.platform.os)return function(e,t){for(var n=0;n<t.links.length;n++){var r=t.links[n].href;/^https?:\/\//i.test(r)||/^\/\//.test(r)||(t.links[n].hrefAbsolute=e+"/"+r)}}(n,r=l),o=r,void e(r)}T.error("Unable to find installer info for current platform: ".concat(a)),t.showUnsupportedBrowser()}(n):n!==s&&(n=s)}))}else e(o)},this.isExtensionInstalled=function(e,t){var n,r,o=x.SAFARI_NO_NPAPI?new Z:new K;if(x.CHROME||x.EDGE_WITH_EXTENSION||x.FIREFOX||x.SAFARI_NO_NPAPI)return t?void(null===(n=o.detectExtension)||void 0===n||n.call(o,e).then((function(e){e&&"function"==typeof t.success&&t.success(),e||"function"!=typeof t.timedout||t.timedout()})).catch((function(e){T.debug("Error trying to detect extension:",e),"function"==typeof t.timedout&&t.timedout()}))):null===(r=o.detectExtension)||void 0===r?void 0:r.call(o,e);T.debug("This browser does not use extensions.")},this.doesBrowserNeedExtensionStore=function(){return!0===x.CHROME||!0===x.FIREFOX||!0===x.EDGE_WITH_EXTENSION},this.getExtensionStoreLink=function(){return!0===x.FIREFOX?"https://addons.mozilla.org/en-US/firefox/addon/ibm-aspera-connect":!0===x.EDGE_WITH_EXTENSION?"ms-windows-store://pdp/?productid=9N6XL57H8BMG":!0===x.EDGE_CHROMIUM?"https://microsoftedge.microsoft.com/addons/detail/ibm-aspera-connect/kbffkbiljjejklcpnfmoiaehplhcifki":!0===x.CHROME?"https://chrome.google.com/webstore/detail/ibm-aspera-connect/kpoecbkildamnnchnlgoboipnblgikpn":(T.debug("This browser does not use extensions."),"")},this.startExtensionInstall=function(){var e=this.getExtensionStoreLink();""!==e&&window.open(e,"_blank")};var y=function(){var e=!1;try{e=window.self!==window.top}catch(t){e=!0}if(e){var t=document.getElementById(a.iframeId);if(t.contentWindow)return t.contentWindow}return window},b=function(e,t){e.style.position="fixed",e.style.border="none",e.style.outline="none",e.style.overflow="hidden",e.style.top="0",e.style.right="0",e.style.left="0",e.style.zIndex="9999",e.style.boxShadow="0 12px 24px 0 rgba(0, 0, 0, 0.1)",t?(e.style.height="80px",e.style.width="100%",e.style.margin="0 auto",e.style.maxWidth="600px"):(e.style.height="100%",e.style.width="100%",e.style.margin="0",e.style.maxWidth="100%",e.style.backgroundColor="rgba(223, 227, 230, 0.75)")},w=function(e){var t=document.getElementById(a.iframeId);t&&(t.style.display=e?"none":"",t.style.visibility=e?"hidden":"")},S=function(e){var t,n;0!==l&&clearTimeout(l);var o=document.getElementById(a.iframeId);void 0===String.prototype.endsWith&&(String.prototype.endsWith=function(e){return-1!==this.indexOf(e,this.length-e.length)});var i=function(e){var t;(function(e){for(var t in d)if(d[t]===e)return!0;return!1})(e.data)&&(T.debug("Connect bar activity: ",e.data),function(e){for(var t=0;t<h.length;t++)h[t](e)}(e.data),e.data===d.CLICKED_DOWNLOAD_APP?V("aspera-connect-app-download",Date.now().toString()):e.data===d.CLICKED_INSTALL_APP?(x.SAFARI||x.IE)&&r.showExtensionInstall():e.data===d.CLICKED_RETRY&&(t=window.top.location.href,window.open(t,"_blank"))),e.data===c.DOWNLOAD_CONNECT?(v(e.data),r.showInstall()):e.data===c.DOWNLOAD_EXTENSION?(v(e.data),r.showDownload()):e.data===c.REFRESH_PAGE?(v(e.data),y().location.reload(!0)):e.data===c.IFRAME_REMOVED?(v(e.data),r.dismiss()):e.data===c.TROUBLESHOOT?(v(e.data),y().location.href="https://test-connect.ibmaspera.com"):e.data===c.CONTINUE?("undefined"!=typeof localStorage&&localStorage.setItem(p,String(Math.round((new Date).getTime()/1e3))),v(e.data),x.SAFARI&&!x.SAFARI_NO_NPAPI||x.IE?y().location.reload(!0):r.showLaunching()):e.data===c.RETRY?(v(e.data),r.showLaunching()):"100%"===e.data?b(o,!1):"string"==typeof e.data&&e.data.endsWith(c.RESIZE)?(o.style.height=e.data,o.style.maxWidth="600px"):e.data===c.EXTENSION_INSTALL&&(v(e.data),r.startExtensionInstall())},s=function(){var t,n,o;u=!0,v(c.IFRAME_LOADED);var i=document.getElementById(a.iframeId);if(x.SAFARI||x.IE){var s=H("aspera-connect-app-download");R(s)||null===(t=i.contentWindow)||void 0===t||t.postMessage("downloadTimestamp="+s,"*")}r.installationJSON((function(t){var n,r,o;if(t)for(var a=0;a<t.links.length;a++){var s=t.links[a];"enclosure-one-click"===s.rel&&null!=i&&(null===(n=i.contentWindow)||void 0===n||n.postMessage("downloadlink="+s.hrefAbsolute,"*"),null===(r=i.contentWindow)||void 0===r||r.postMessage("downloadVersion="+t.version,"*"))}else T.error("Could not load Connect installation json!");null===(o=i.contentWindow)||void 0===o||o.postMessage(e,"*")})),a.stylesheetLocation&&null!=i&&(null===(n=i.contentWindow)||void 0===n||n.postMessage("insertstylesheet="+a.stylesheetLocation,"*")),a.correlationId&&(null===(o=i.contentWindow)||void 0===o||o.postMessage("correlationId="+a.correlationId,"*"))};if(!o){if("none"===a.style)return void T.debug("style=none specified, will not load banner.");if((o=document.createElement("iframe")).id=a.iframeId,o.className=a.iframeId,o.frameBorder="0",b(o,!0),o.srcdoc='<!doctype html><html lang="en"> <head> <title>IBM Aspera Connect</title> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <script type=\'module\'>(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll(\'link[rel="modulepreload"]\'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();function Ka(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tu={exports:{}},Nn={},ku={exports:{}},R={};/*object-assign(c) Sindre Sorhus@license MIT*/var uo=Object.getOwnPropertySymbols,Xa=Object.prototype.hasOwnProperty,Ya=Object.prototype.propertyIsEnumerable;function Ga(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Za(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(l){return t[l]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(l){i[l]=l}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var _u=Za()?Object.assign:function(e,t){for(var n,r=Ga(e),i,l=1;l<arguments.length;l++){n=Object(arguments[l]);for(var o in n)Xa.call(n,o)&&(r[o]=n[o]);if(uo){i=uo(n);for(var u=0;u<i.length;u++)Ya.call(n,i[u])&&(r[i[u]]=n[i[u]])}}return r};/** @license React v16.14.0 * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var al=_u,Ee=typeof Symbol=="function"&&Symbol.for,Pn=Ee?Symbol.for("react.element"):60103,Ja=Ee?Symbol.for("react.portal"):60106,qa=Ee?Symbol.for("react.fragment"):60107,ba=Ee?Symbol.for("react.strict_mode"):60108,ec=Ee?Symbol.for("react.profiler"):60114,tc=Ee?Symbol.for("react.provider"):60109,nc=Ee?Symbol.for("react.context"):60110,rc=Ee?Symbol.for("react.forward_ref"):60112,ic=Ee?Symbol.for("react.suspense"):60113,lc=Ee?Symbol.for("react.memo"):60115,oc=Ee?Symbol.for("react.lazy"):60116,so=typeof Symbol=="function"&&Symbol.iterator;function In(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Su={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Nu={};function Xt(e,t,n){this.props=e,this.context=t,this.refs=Nu,this.updater=n||Su}Xt.prototype.isReactComponent={};Xt.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(In(85));this.updater.enqueueSetState(this,e,t,"setState")};Xt.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Pu(){}Pu.prototype=Xt.prototype;function cl(e,t,n){this.props=e,this.context=t,this.refs=Nu,this.updater=n||Su}var fl=cl.prototype=new Pu;fl.constructor=cl;al(fl,Xt.prototype);fl.isPureReactComponent=!0;var dl={current:null},Iu=Object.prototype.hasOwnProperty,Lu={key:!0,ref:!0,__self:!0,__source:!0};function Ou(e,t,n){var r,i={},l=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(l=""+t.key),t)Iu.call(t,r)&&!Lu.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1<u){for(var c=Array(u),f=0;f<u;f++)c[f]=arguments[f+2];i.children=c}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)i[r]===void 0&&(i[r]=u[r]);return{$$typeof:Pn,type:e,key:l,ref:o,props:i,_owner:dl.current}}function uc(e,t){return{$$typeof:Pn,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function pl(e){return typeof e=="object"&&e!==null&&e.$$typeof===Pn}function sc(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(n){return t[n]})}var Ru=/\\/+/g,cr=[];function ju(e,t,n,r){if(cr.length){var i=cr.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function Mu(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>cr.length&&cr.push(e)}function vi(e,t,n,r){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case Pn:case Ja:l=!0}}if(l)return n(r,e,t===""?"."+ei(e,0):t),1;if(l=0,t=t===""?".":t+":",Array.isArray(e))for(var o=0;o<e.length;o++){i=e[o];var u=t+ei(i,o);l+=vi(i,u,n,r)}else if(e===null||typeof e!="object"?u=null:(u=so&&e[so]||e["@@iterator"],u=typeof u=="function"?u:null),typeof u=="function")for(e=u.call(e),o=0;!(i=e.next()).done;)i=i.value,u=t+ei(i,o++),l+=vi(i,u,n,r);else if(i==="object")throw n=""+e,Error(In(31,n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return l}function yi(e,t,n){return e==null?0:vi(e,"",t,n)}function ei(e,t){return typeof e=="object"&&e!==null&&e.key!=null?sc(e.key):t.toString(36)}function ac(e,t){e.func.call(e.context,t,e.count++)}function cc(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?wi(e,r,n,function(l){return l}):e!=null&&(pl(e)&&(e=uc(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(Ru,"$&/")+"/")+n)),r.push(e))}function wi(e,t,n,r,i){var l="";n!=null&&(l=(""+n).replace(Ru,"$&/")+"/"),t=ju(t,l,r,i),yi(e,cc,t),Mu(t)}var Au={current:null};function Be(){var e=Au.current;if(e===null)throw Error(In(321));return e}var fc={ReactCurrentDispatcher:Au,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:dl,IsSomeRendererActing:{current:!1},assign:al};R.Children={map:function(e,t,n){if(e==null)return e;var r=[];return wi(e,r,null,t,n),r},forEach:function(e,t,n){if(e==null)return e;t=ju(null,null,t,n),yi(e,ac,t),Mu(t)},count:function(e){return yi(e,function(){return null},null)},toArray:function(e){var t=[];return wi(e,t,null,function(n){return n}),t},only:function(e){if(!pl(e))throw Error(In(143));return e}};R.Component=Xt;R.Fragment=qa;R.Profiler=ec;R.PureComponent=cl;R.StrictMode=ba;R.Suspense=ic;R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fc;R.cloneElement=function(e,t,n){if(e==null)throw Error(In(267,e));var r=al({},e.props),i=e.key,l=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,o=dl.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)Iu.call(t,c)&&!Lu.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&u!==void 0?u[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){u=Array(c);for(var f=0;f<c;f++)u[f]=arguments[f+2];r.children=u}return{$$typeof:Pn,type:e.type,key:i,ref:l,props:r,_owner:o}};R.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:nc,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:tc,_context:e},e.Consumer=e};R.createElement=Ou;R.createFactory=function(e){var t=Ou.bind(null,e);return t.type=e,t};R.createRef=function(){return{current:null}};R.forwardRef=function(e){return{$$typeof:rc,render:e}};R.isValidElement=pl;R.lazy=function(e){return{$$typeof:oc,_ctor:e,_status:-1,_result:null}};R.memo=function(e,t){return{$$typeof:lc,type:e,compare:t===void 0?null:t}};R.useCallback=function(e,t){return Be().useCallback(e,t)};R.useContext=function(e,t){return Be().useContext(e,t)};R.useDebugValue=function(){};R.useEffect=function(e,t){return Be().useEffect(e,t)};R.useImperativeHandle=function(e,t,n){return Be().useImperativeHandle(e,t,n)};R.useLayoutEffect=function(e,t){return Be().useLayoutEffect(e,t)};R.useMemo=function(e,t){return Be().useMemo(e,t)};R.useReducer=function(e,t,n){return Be().useReducer(e,t,n)};R.useRef=function(e){return Be().useRef(e)};R.useState=function(e){return Be().useState(e)};R.version="16.14.0";ku.exports=R;var zr=ku.exports;/** @license React v16.14.0 * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var dc=zr,Fu=60103;Nn.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var ao=Symbol.for;Fu=ao("react.element"),Nn.Fragment=ao("react.fragment")}var pc=dc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,mc=Object.prototype.hasOwnProperty,hc={key:!0,ref:!0,__self:!0,__source:!0};function Du(e,t,n){var r,i={},l=null,o=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)mc.call(t,r)&&!hc.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Fu,type:e,key:l,ref:o,props:i,_owner:pc.current}}Nn.jsx=Du;Nn.jsxs=Du;Tu.exports=Nn;var y=Tu.exports,zu={exports:{}},ve={},Bu={exports:{}},Uu={};/** @license React v0.19.1 * scheduler.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */(function(e){var t,n,r,i,l;if(typeof window>"u"||typeof MessageChannel!="function"){var o=null,u=null,c=function(){if(o!==null)try{var g=e.unstable_now();o(!0,g),o=null}catch(T){throw setTimeout(c,0),T}},f=Date.now();e.unstable_now=function(){return Date.now()-f},t=function(g){o!==null?setTimeout(t,0,g):(o=g,setTimeout(c,0))},n=function(g,T){u=setTimeout(g,T)},r=function(){clearTimeout(u)},i=function(){return!1},l=e.unstable_forceFrameRate=function(){}}else{var v=window.performance,w=window.Date,N=window.setTimeout,O=window.clearTimeout;if(typeof console<"u"){var te=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn\'t support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),typeof te!="function"&&console.error("This browser doesn\'t support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if(typeof v=="object"&&typeof v.now=="function")e.unstable_now=function(){return v.now()};else{var V=w.now();e.unstable_now=function(){return w.now()-V}}var a=!1,s=null,d=-1,p=5,h=0;i=function(){return e.unstable_now()>=h},l=function(){},e.unstable_forceFrameRate=function(g){0>g||125<g?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):p=0<g?Math.floor(1e3/g):5};var x=new MessageChannel,C=x.port2;x.port1.onmessage=function(){if(s!==null){var g=e.unstable_now();h=g+p;try{s(!0,g)?C.postMessage(null):(a=!1,s=null)}catch(T){throw C.postMessage(null),T}}else a=!1},t=function(g){s=g,a||(a=!0,C.postMessage(null))},n=function(g,T){d=N(function(){g(e.unstable_now())},T)},r=function(){O(d),d=-1}}function P(g,T){var L=g.length;g.push(T);e:for(;;){var B=L-1>>>1,$=g[B];if($!==void 0&&0<oe($,T))g[B]=T,g[L]=$,L=B;else break e}}function I(g){return g=g[0],g===void 0?null:g}function _(g){var T=g[0];if(T!==void 0){var L=g.pop();if(L!==T){g[0]=L;e:for(var B=0,$=g.length;B<$;){var ut=2*(B+1)-1,st=g[ut],Jt=ut+1,St=g[Jt];if(st!==void 0&&0>oe(st,L))St!==void 0&&0>oe(St,st)?(g[B]=St,g[Jt]=L,B=Jt):(g[B]=st,g[ut]=L,B=ut);else if(St!==void 0&&0>oe(St,L))g[B]=St,g[Jt]=L,B=Jt;else break e}}return T}return null}function oe(g,T){var L=g.sortIndex-T.sortIndex;return L!==0?L:g.id-T.id}var ue=[],Ue=[],Ha=1,q=null,Y=3,Dn=!1,ot=!1,Zt=!1;function zn(g){for(var T=I(Ue);T!==null;){if(T.callback===null)_(Ue);else if(T.startTime<=g)_(Ue),T.sortIndex=T.expirationTime,P(ue,T);else break;T=I(Ue)}}function qr(g){if(Zt=!1,zn(g),!ot)if(I(ue)!==null)ot=!0,t(br);else{var T=I(Ue);T!==null&&n(qr,T.startTime-g)}}function br(g,T){ot=!1,Zt&&(Zt=!1,r()),Dn=!0;var L=Y;try{for(zn(T),q=I(ue);q!==null&&(!(q.expirationTime>T)||g&&!i());){var B=q.callback;if(B!==null){q.callback=null,Y=q.priorityLevel;var $=B(q.expirationTime<=T);T=e.unstable_now(),typeof $=="function"?q.callback=$:q===I(ue)&&_(ue),zn(T)}else _(ue);q=I(ue)}if(q!==null)var ut=!0;else{var st=I(Ue);st!==null&&n(qr,st.startTime-T),ut=!1}return ut}finally{q=null,Y=L,Dn=!1}}function oo(g){switch(g){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var Qa=l;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(g){g.callback=null},e.unstable_continueExecution=function(){ot||Dn||(ot=!0,t(br))},e.unstable_getCurrentPriorityLevel=function(){return Y},e.unstable_getFirstCallbackNode=function(){return I(ue)},e.unstable_next=function(g){switch(Y){case 1:case 2:case 3:var T=3;break;default:T=Y}var L=Y;Y=T;try{return g()}finally{Y=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=Qa,e.unstable_runWithPriority=function(g,T){switch(g){case 1:case 2:case 3:case 4:case 5:break;default:g=3}var L=Y;Y=g;try{return T()}finally{Y=L}},e.unstable_scheduleCallback=function(g,T,L){var B=e.unstable_now();if(typeof L=="object"&&L!==null){var $=L.delay;$=typeof $=="number"&&0<$?B+$:B,L=typeof L.timeout=="number"?L.timeout:oo(g)}else L=oo(g),$=B;return L=$+L,g={id:Ha++,callback:T,priorityLevel:g,startTime:$,expirationTime:L,sortIndex:-1},$>B?(g.sortIndex=$,P(Ue,g),I(ue)===null&&g===I(Ue)&&(Zt?r():Zt=!0,n(qr,$-B))):(g.sortIndex=L,P(ue,g),ot||Dn||(ot=!0,t(br))),g},e.unstable_shouldYield=function(){var g=e.unstable_now();zn(g);var T=I(ue);return T!==q&&q!==null&&T!==null&&T.callback!==null&&T.startTime<=g&&T.expirationTime<q.expirationTime||i()},e.unstable_wrapCallback=function(g){var T=Y;return function(){var L=Y;Y=T;try{return g.apply(this,arguments)}finally{Y=L}}}})(Uu);Bu.exports=Uu;var gc=Bu.exports;/** @license React v16.14.0 * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Br=zr,b=_u,K=gc;function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!Br)throw Error(m(227));function vc(e,t,n,r,i,l,o,u,c){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(v){this.onError(v)}}var an=!1,fr=null,dr=!1,xi=null,yc={onError:function(e){an=!0,fr=e}};function wc(e,t,n,r,i,l,o,u,c){an=!1,fr=null,vc.apply(yc,arguments)}function xc(e,t,n,r,i,l,o,u,c){if(wc.apply(this,arguments),an){if(an){var f=fr;an=!1,fr=null}else throw Error(m(198));dr||(dr=!0,xi=f)}}var ml=null,Vu=null,$u=null;function co(e,t,n){var r=e.type||"unknown-event";e.currentTarget=$u(n),xc(r,t,void 0,e),e.currentTarget=null}var pr=null,Nt={};function Wu(){if(pr)for(var e in Nt){var t=Nt[e],n=pr.indexOf(e);if(!(-1<n))throw Error(m(96,e));if(!mr[n]){if(!t.extractEvents)throw Error(m(97,e));mr[n]=t,n=t.eventTypes;for(var r in n){var i=void 0,l=n[r],o=t,u=r;if(Ei.hasOwnProperty(u))throw Error(m(99,u));Ei[u]=l;var c=l.phasedRegistrationNames;if(c){for(i in c)c.hasOwnProperty(i)&&fo(c[i],o,u);i=!0}else l.registrationName?(fo(l.registrationName,o,u),i=!0):i=!1;if(!i)throw Error(m(98,r,e))}}}}function fo(e,t,n){if(Vt[e])throw Error(m(100,e));Vt[e]=t,hl[e]=t.eventTypes[n].dependencies}var mr=[],Ei={},Vt={},hl={};function Hu(e){var t=!1,n;for(n in e)if(e.hasOwnProperty(n)){var r=e[n];if(!Nt.hasOwnProperty(n)||Nt[n]!==r){if(Nt[n])throw Error(m(102,n));Nt[n]=r,t=!0}}t&&Wu()}var it=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ci=null,At=null,Ft=null;function po(e){if(e=Vu(e)){if(typeof Ci!="function")throw Error(m(280));var t=e.stateNode;t&&(t=ml(t),Ci(e.stateNode,e.type,t))}}function Qu(e){At?Ft?Ft.push(e):Ft=[e]:At=e}function Ku(){if(At){var e=At,t=Ft;if(Ft=At=null,po(e),t)for(e=0;e<t.length;e++)po(t[e])}}function gl(e,t){return e(t)}function Xu(e,t,n,r,i){return e(t,n,r,i)}function vl(){}var Yu=gl,ft=!1,ti=!1;function yl(){(At!==null||Ft!==null)&&(vl(),Ku())}function Gu(e,t,n){if(ti)return e(t,n);ti=!0;try{return Yu(e,t,n)}finally{ti=!1,yl()}}var Ec=/^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$/,mo=Object.prototype.hasOwnProperty,ho={},go={};function Cc(e){return mo.call(go,e)?!0:mo.call(ho,e)?!1:Ec.test(e)?go[e]=!0:(ho[e]=!0,!1)}function Tc(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function kc(e,t,n,r){if(t===null||typeof t>"u"||Tc(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ee(e,t,n,r,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l}var X={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){X[e]=new ee(e,0,!1,e,null,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];X[t]=new ee(t,1,!1,e[1],null,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){X[e]=new ee(e,2,!1,e.toLowerCase(),null,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){X[e]=new ee(e,2,!1,e,null,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){X[e]=new ee(e,3,!1,e.toLowerCase(),null,!1)});["checked","multiple","muted","selected"].forEach(function(e){X[e]=new ee(e,3,!0,e,null,!1)});["capture","download"].forEach(function(e){X[e]=new ee(e,4,!1,e,null,!1)});["cols","rows","size","span"].forEach(function(e){X[e]=new ee(e,6,!1,e,null,!1)});["rowSpan","start"].forEach(function(e){X[e]=new ee(e,5,!1,e.toLowerCase(),null,!1)});var wl=/[\\-:]([a-z])/g;function xl(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(wl,xl);X[t]=new ee(t,1,!1,e,null,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(wl,xl);X[t]=new ee(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(wl,xl);X[t]=new ee(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)});["tabIndex","crossOrigin"].forEach(function(e){X[e]=new ee(e,1,!1,e.toLowerCase(),null,!1)});X.xlinkHref=new ee("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach(function(e){X[e]=new ee(e,1,!1,e.toLowerCase(),null,!0)});var we=Br.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;we.hasOwnProperty("ReactCurrentDispatcher")||(we.ReactCurrentDispatcher={current:null});we.hasOwnProperty("ReactCurrentBatchConfig")||(we.ReactCurrentBatchConfig={suspense:null});function El(e,t,n,r){var i=X.hasOwnProperty(t)?X[t]:null,l=i!==null?i.type===0:r?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");l||(kc(t,n,i,r)&&(n=null),r||i===null?Cc(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var _c=/^(.*)[\\\\\\/]/,le=typeof Symbol=="function"&&Symbol.for,Bn=le?Symbol.for("react.element"):60103,Pt=le?Symbol.for("react.portal"):60106,ct=le?Symbol.for("react.fragment"):60107,Zu=le?Symbol.for("react.strict_mode"):60108,Zn=le?Symbol.for("react.profiler"):60114,Ju=le?Symbol.for("react.provider"):60109,qu=le?Symbol.for("react.context"):60110,Sc=le?Symbol.for("react.concurrent_mode"):60111,Cl=le?Symbol.for("react.forward_ref"):60112,Jn=le?Symbol.for("react.suspense"):60113,Ti=le?Symbol.for("react.suspense_list"):60120,Tl=le?Symbol.for("react.memo"):60115,bu=le?Symbol.for("react.lazy"):60116,es=le?Symbol.for("react.block"):60121,vo=typeof Symbol=="function"&&Symbol.iterator;function qt(e){return e===null||typeof e!="object"?null:(e=vo&&e[vo]||e["@@iterator"],typeof e=="function"?e:null)}function Nc(e){if(e._status===-1){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then(function(n){e._status===0&&(n=n.default,e._status=1,e._result=n)},function(n){e._status===0&&(e._status=2,e._result=n)})}}function ze(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ct:return"Fragment";case Pt:return"Portal";case Zn:return"Profiler";case Zu:return"StrictMode";case Jn:return"Suspense";case Ti:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qu:return"Context.Consumer";case Ju:return"Context.Provider";case Cl:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Tl:return ze(e.type);case es:return ze(e.render);case bu:if(e=e._status===1?e._result:null)return ze(e)}return null}function kl(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,l=ze(e.type);n=null,r&&(n=ze(r.type)),r=l,l="",i?l=" (at "+i.fileName.replace(_c,"")+":"+i.lineNumber+")":n&&(l=" (created by "+n+")"),n=` in `+(r||"Unknown")+l}t+=n,e=e.return}while(e);return t}function tt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ts(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Pc(e){var t=ts(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Un(e){e._valueTracker||(e._valueTracker=Pc(e))}function ns(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ts(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ki(e,t){var n=t.checked;return b({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function yo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=tt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function rs(e,t){t=t.checked,t!=null&&El(e,"checked",t,!1)}function _i(e,t){rs(e,t);var n=tt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Si(e,t.type,n):t.hasOwnProperty("defaultValue")&&Si(e,t.type,tt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function wo(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Si(e,t,n){(t!=="number"||e.ownerDocument.activeElement!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Ic(e){var t="";return Br.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function Ni(e,t){return e=b({children:void 0},t),(t=Ic(t.children))&&(e.children=t),e}function Dt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+tt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Pi(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(m(91));return b({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function xo(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(m(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(m(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:tt(n)}}function is(e,t){var n=tt(t.value),r=tt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Eo(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var ls={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function os(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ii(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?os(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Vn,us=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==ls.svg||"innerHTML"in e)e.innerHTML=t;else{for(Vn=Vn||document.createElement("div"),Vn.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Vn.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function vn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}function $n(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var It={animationend:$n("Animation","AnimationEnd"),animationiteration:$n("Animation","AnimationIteration"),animationstart:$n("Animation","AnimationStart"),transitionend:$n("Transition","TransitionEnd")},ni={},ss={};it&&(ss=document.createElement("div").style,"AnimationEvent"in window||(delete It.animationend.animation,delete It.animationiteration.animation,delete It.animationstart.animation),"TransitionEvent"in window||delete It.transitionend.transition);function Ur(e){if(ni[e])return ni[e];if(!It[e])return e;var t=It[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ss)return ni[e]=t[n];return e}var as=Ur("animationend"),cs=Ur("animationiteration"),fs=Ur("animationstart"),ds=Ur("transitionend"),on="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Co=new(typeof WeakMap=="function"?WeakMap:Map);function _l(e){var t=Co.get(e);return t===void 0&&(t=new Map,Co.set(e,t)),t}function _t(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.effectTag&1026&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ps(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function To(e){if(_t(e)!==e)throw Error(m(188))}function Lc(e){var t=e.alternate;if(!t){if(t=_t(e),t===null)throw Error(m(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var l=i.alternate;if(l===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===n)return To(i),e;if(l===r)return To(i),t;l=l.sibling}throw Error(m(188))}if(n.return!==r.return)n=i,r=l;else{for(var o=!1,u=i.child;u;){if(u===n){o=!0,n=i,r=l;break}if(u===r){o=!0,r=i,n=l;break}u=u.sibling}if(!o){for(u=l.child;u;){if(u===n){o=!0,n=l,r=i;break}if(u===r){o=!0,r=l,n=i;break}u=u.sibling}if(!o)throw Error(m(189))}}if(n.alternate!==r)throw Error(m(190))}if(n.tag!==3)throw Error(m(188));return n.stateNode.current===n?e:t}function ms(e){if(e=Lc(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function $t(e,t){if(t==null)throw Error(m(30));return e==null?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function Sl(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var bt=null;function Oc(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)co(e,t[r],n[r]);else t&&co(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function Vr(e){if(e!==null&&(bt=$t(bt,e)),e=bt,bt=null,e){if(Sl(e,Oc),bt)throw Error(m(95));if(dr)throw e=xi,dr=!1,xi=null,e}}function Nl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function hs(e){if(!it)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}var hr=[];function gs(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>hr.length&&hr.push(e)}function vs(e,t,n,r){if(hr.length){var i=hr.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function ys(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(r.tag===3)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=r.tag!==3?null:r.stateNode.containerInfo}if(!r)break;t=n.tag,t!==5&&t!==6||e.ancestors.push(n),n=On(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=Nl(e.nativeEvent);r=e.topLevelType;var l=e.nativeEvent,o=e.eventSystemFlags;n===0&&(o|=64);for(var u=null,c=0;c<mr.length;c++){var f=mr[c];f&&(f=f.extractEvents(r,t,l,i,o))&&(u=$t(u,f))}Vr(u)}}function Li(e,t,n){if(!n.has(e)){switch(e){case"scroll":un(t,"scroll",!0);break;case"focus":case"blur":un(t,"focus",!0),un(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":hs(e)&&un(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:on.indexOf(e)===-1&&D(e,t)}n.set(e,null)}}var ws,Pl,xs,Oi=!1,Ce=[],Ye=null,Ge=null,Ze=null,yn=new Map,wn=new Map,en=[],Ri="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Rc="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function jc(e,t){var n=_l(t);Ri.forEach(function(r){Li(r,t,n)}),Rc.forEach(function(r){Li(r,t,n)})}function ji(e,t,n,r,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:n|32,nativeEvent:i,container:r}}function ko(e,t){switch(e){case"focus":case"blur":Ye=null;break;case"dragenter":case"dragleave":Ge=null;break;case"mouseover":case"mouseout":Ze=null;break;case"pointerover":case"pointerout":yn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wn.delete(t.pointerId)}}function tn(e,t,n,r,i,l){return e===null||e.nativeEvent!==l?(e=ji(t,n,r,i,l),t!==null&&(t=Rn(t),t!==null&&Pl(t)),e):(e.eventSystemFlags|=r,e)}function Mc(e,t,n,r,i){switch(t){case"focus":return Ye=tn(Ye,e,t,n,r,i),!0;case"dragenter":return Ge=tn(Ge,e,t,n,r,i),!0;case"mouseover":return Ze=tn(Ze,e,t,n,r,i),!0;case"pointerover":var l=i.pointerId;return yn.set(l,tn(yn.get(l)||null,e,t,n,r,i)),!0;case"gotpointercapture":return l=i.pointerId,wn.set(l,tn(wn.get(l)||null,e,t,n,r,i)),!0}return!1}function Ac(e){var t=On(e.target);if(t!==null){var n=_t(t);if(n!==null){if(t=n.tag,t===13){if(t=ps(n),t!==null){e.blockedOn=t,K.unstable_runWithPriority(e.priority,function(){xs(n)});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function qn(e){if(e.blockedOn!==null)return!1;var t=Ol(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(t!==null){var n=Rn(t);return n!==null&&Pl(n),e.blockedOn=t,!1}return!0}function _o(e,t,n){qn(e)&&n.delete(t)}function Fc(){for(Oi=!1;0<Ce.length;){var e=Ce[0];if(e.blockedOn!==null){e=Rn(e.blockedOn),e!==null&&ws(e);break}var t=Ol(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);t!==null?e.blockedOn=t:Ce.shift()}Ye!==null&&qn(Ye)&&(Ye=null),Ge!==null&&qn(Ge)&&(Ge=null),Ze!==null&&qn(Ze)&&(Ze=null),yn.forEach(_o),wn.forEach(_o)}function nn(e,t){e.blockedOn===t&&(e.blockedOn=null,Oi||(Oi=!0,K.unstable_scheduleCallback(K.unstable_NormalPriority,Fc)))}function Es(e){function t(i){return nn(i,e)}if(0<Ce.length){nn(Ce[0],e);for(var n=1;n<Ce.length;n++){var r=Ce[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ye!==null&&nn(Ye,e),Ge!==null&&nn(Ge,e),Ze!==null&&nn(Ze,e),yn.forEach(t),wn.forEach(t),n=0;n<en.length;n++)r=en[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<en.length&&(n=en[0],n.blockedOn===null);)Ac(n),n.blockedOn===null&&en.shift()}var Cs={},Ts=new Map,Il=new Map,Dc=["abort","abort",as,"animationEnd",cs,"animationIteration",fs,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",ds,"transitionEnd","waiting","waiting"];function Ll(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1],l="on"+(i[0].toUpperCase()+i.slice(1));l={phasedRegistrationNames:{bubbled:l,captured:l+"Capture"},dependencies:[r],eventPriority:t},Il.set(r,t),Ts.set(r,l),Cs[i]=l}}Ll("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0);Ll("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1);Ll(Dc,2);for(var So="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),ri=0;ri<So.length;ri++)Il.set(So[ri],0);var zc=K.unstable_UserBlockingPriority,Bc=K.unstable_runWithPriority,bn=!0;function D(e,t){un(t,e,!1)}function un(e,t,n){var r=Il.get(t);switch(r===void 0?2:r){case 0:r=Uc.bind(null,t,1,e);break;case 1:r=Vc.bind(null,t,1,e);break;default:r=$r.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Uc(e,t,n,r){ft||vl();var i=$r,l=ft;ft=!0;try{Xu(i,e,t,n,r)}finally{(ft=l)||yl()}}function Vc(e,t,n,r){Bc(zc,$r.bind(null,e,t,n,r))}function $r(e,t,n,r){if(bn)if(0<Ce.length&&-1<Ri.indexOf(e))e=ji(null,e,t,n,r),Ce.push(e);else{var i=Ol(e,t,n,r);if(i===null)ko(e,r);else if(-1<Ri.indexOf(e))e=ji(i,e,t,n,r),Ce.push(e);else if(!Mc(i,e,t,n,r)){ko(e,r),e=vs(e,r,null,t);try{Gu(ys,e)}finally{gs(e)}}}}function Ol(e,t,n,r){if(n=Nl(r),n=On(n),n!==null){var i=_t(n);if(i===null)n=null;else{var l=i.tag;if(l===13){if(n=ps(i),n!==null)return n;n=null}else if(l===3){if(i.stateNode.hydrate)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}e=vs(e,r,n,t);try{Gu(ys,e)}finally{gs(e)}return null}var cn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$c=["Webkit","ms","Moz","O"];Object.keys(cn).forEach(function(e){$c.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),cn[t]=cn[e]})});function ks(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||cn.hasOwnProperty(e)&&cn[e]?(""+t).trim():t+"px"}function _s(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ks(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Wc=b({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Mi(e,t){if(t){if(Wc[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(m(137,e,""));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(m(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(m(61))}if(t.style!=null&&typeof t.style!="object")throw Error(m(62,""))}}function Ai(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var No=ls.html;function Oe(e,t){e=e.nodeType===9||e.nodeType===11?e:e.ownerDocument;var n=_l(e);t=hl[t];for(var r=0;r<t.length;r++)Li(t[r],e,n)}function gr(){}function Fi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Po(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Io(e,t){var n=Po(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Po(n)}}function Ss(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ss(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lo(){for(var e=window,t=Fi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fi(e.document)}return t}function Di(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Ns="$",Ps="/$",Rl="$?",jl="$!",ii=null,li=null;function Is(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function zi(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var oi=typeof setTimeout=="function"?setTimeout:void 0,Hc=typeof clearTimeout=="function"?clearTimeout:void 0;function zt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function Oo(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===Ns||n===jl||n===Rl){if(t===0)return e;t--}else n===Ps&&t++}e=e.previousSibling}return null}var Ml=Math.random().toString(36).slice(2),We="__reactInternalInstance$"+Ml,vr="__reactEventHandlers$"+Ml,Ln="__reactContainere$"+Ml;function On(e){var t=e[We];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ln]||n[We]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Oo(e);e!==null;){if(n=e[We])return n;e=Oo(e)}return t}e=n,n=e.parentNode}return null}function Rn(e){return e=e[We]||e[Ln],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Et(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(m(33))}function Al(e){return e[vr]||null}function Re(e){do e=e.return;while(e&&e.tag!==5);return e||null}function Ls(e,t){var n=e.stateNode;if(!n)return null;var r=ml(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(m(231,t,typeof n));return n}function Ro(e,t,n){(t=Ls(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=$t(n._dispatchListeners,t),n._dispatchInstances=$t(n._dispatchInstances,e))}function Qc(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Re(t);for(t=n.length;0<t--;)Ro(n[t],"captured",e);for(t=0;t<n.length;t++)Ro(n[t],"bubbled",e)}}function Bi(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Ls(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=$t(n._dispatchListeners,t),n._dispatchInstances=$t(n._dispatchInstances,e))}function Kc(e){e&&e.dispatchConfig.registrationName&&Bi(e._targetInst,null,e)}function Wt(e){Sl(e,Qc)}var He=null,Fl=null,er=null;function Os(){if(er)return er;var e,t=Fl,n=t.length,r,i="value"in He?He.value:He.textContent,l=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[l-r];r++);return er=i.slice(e,1<r?1-r:void 0)}function tr(){return!0}function yr(){return!1}function de(e,t,n,r){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface;for(var i in e)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):i==="target"?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?tr:yr,this.isPropagationStopped=yr,this}b(de.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!="unknown"&&(e.returnValue=!1),this.isDefaultPrevented=tr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!="unknown"&&(e.cancelBubble=!0),this.isPropagationStopped=tr)},persist:function(){this.isPersistent=tr},isPersistent:yr,destructor:function(){var e=this.constructor.Interface,t;for(t in e)this[t]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=yr,this._dispatchInstances=this._dispatchListeners=null}});de.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};de.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return b(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=b({},r.Interface,e),n.extend=r.extend,Rs(n),n};Rs(de);function Xc(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function Yc(e){if(!(e instanceof this))throw Error(m(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Rs(e){e.eventPool=[],e.getPooled=Xc,e.release=Yc}var Gc=de.extend({data:null}),Zc=de.extend({data:null}),Jc=[9,13,27,32],Dl=it&&"CompositionEvent"in window,fn=null;it&&"documentMode"in document&&(fn=document.documentMode);var qc=it&&"TextEvent"in window&&!fn,js=it&&(!Dl||fn&&8<fn&&11>=fn),jo=" ",Le={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Mo=!1;function Ms(e,t){switch(e){case"keyup":return Jc.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function As(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Lt=!1;function bc(e,t){switch(e){case"compositionend":return As(t);case"keypress":return t.which!==32?null:(Mo=!0,jo);case"textInput":return e=t.data,e===jo&&Mo?null:e;default:return null}}function ef(e,t){if(Lt)return e==="compositionend"||!Dl&&Ms(e,t)?(e=Os(),er=Fl=He=null,Lt=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return js&&t.locale!=="ko"?null:t.data;default:return null}}var tf={eventTypes:Le,extractEvents:function(e,t,n,r){var i;if(Dl)e:{switch(e){case"compositionstart":var l=Le.compositionStart;break e;case"compositionend":l=Le.compositionEnd;break e;case"compositionupdate":l=Le.compositionUpdate;break e}l=void 0}else Lt?Ms(e,n)&&(l=Le.compositionEnd):e==="keydown"&&n.keyCode===229&&(l=Le.compositionStart);return l?(js&&n.locale!=="ko"&&(Lt||l!==Le.compositionStart?l===Le.compositionEnd&&Lt&&(i=Os()):(He=r,Fl="value"in He?He.value:He.textContent,Lt=!0)),l=Gc.getPooled(l,t,n,r),i?l.data=i:(i=As(n),i!==null&&(l.data=i)),Wt(l),i=l):i=null,(e=qc?bc(e,n):ef(e,n))?(t=Zc.getPooled(Le.beforeInput,t,n,r),t.data=e,Wt(t)):t=null,i===null?t:t===null?i:[i,t]}},nf={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Fs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!nf[e.type]:t==="textarea"}var Ds={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function zs(e,t,n){return e=de.getPooled(Ds.change,e,t,n),e.type="change",Qu(n),Wt(e),e}var dn=null,xn=null;function rf(e){Vr(e)}function Wr(e){var t=Et(e);if(ns(t))return e}function lf(e,t){if(e==="change")return t}var Ui=!1;it&&(Ui=hs("input")&&(!document.documentMode||9<document.documentMode));function Ao(){dn&&(dn.detachEvent("onpropertychange",Bs),xn=dn=null)}function Bs(e){if(e.propertyName==="value"&&Wr(xn))if(e=zs(xn,e,Nl(e)),ft)Vr(e);else{ft=!0;try{gl(rf,e)}finally{ft=!1,yl()}}}function of(e,t,n){e==="focus"?(Ao(),dn=t,xn=n,dn.attachEvent("onpropertychange",Bs)):e==="blur"&&Ao()}function uf(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Wr(xn)}function sf(e,t){if(e==="click")return Wr(t)}function af(e,t){if(e==="input"||e==="change")return Wr(t)}var cf={eventTypes:Ds,_isInputEventSupported:Ui,extractEvents:function(e,t,n,r){var i=t?Et(t):window,l=i.nodeName&&i.nodeName.toLowerCase();if(l==="select"||l==="input"&&i.type==="file")var o=lf;else if(Fs(i))if(Ui)o=af;else{o=uf;var u=of}else(l=i.nodeName)&&l.toLowerCase()==="input"&&(i.type==="checkbox"||i.type==="radio")&&(o=sf);if(o&&(o=o(e,t)))return zs(o,n,r);u&&u(e,i,t),e==="blur"&&(e=i._wrapperState)&&e.controlled&&i.type==="number"&&Si(i,"number",i.value)}},jn=de.extend({view:null,detail:null}),ff={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function df(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ff[e])?!!t[e]:!1}function zl(){return df}var Fo=0,Do=0,zo=!1,Bo=!1,Mn=jn.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:zl,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Fo;return Fo=e.screenX,zo?e.type==="mousemove"?e.screenX-t:0:(zo=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Do;return Do=e.screenY,Bo?e.type==="mousemove"?e.screenY-t:0:(Bo=!0,0)}}),Us=Mn.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),rn={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},pf={eventTypes:rn,extractEvents:function(e,t,n,r,i){var l=e==="mouseover"||e==="pointerover",o=e==="mouseout"||e==="pointerout";if(l&&!(i&32)&&(n.relatedTarget||n.fromElement)||!o&&!l)return null;if(l=r.window===r?r:(l=r.ownerDocument)?l.defaultView||l.parentWindow:window,o){if(o=t,t=(t=n.relatedTarget||n.toElement)?On(t):null,t!==null){var u=_t(t);(t!==u||t.tag!==5&&t.tag!==6)&&(t=null)}}else o=null;if(o===t)return null;if(e==="mouseout"||e==="mouseover")var c=Mn,f=rn.mouseLeave,v=rn.mouseEnter,w="mouse";else(e==="pointerout"||e==="pointerover")&&(c=Us,f=rn.pointerLeave,v=rn.pointerEnter,w="pointer");if(e=o==null?l:Et(o),l=t==null?l:Et(t),f=c.getPooled(f,o,n,r),f.type=w+"leave",f.target=e,f.relatedTarget=l,n=c.getPooled(v,t,n,r),n.type=w+"enter",n.target=l,n.relatedTarget=e,r=o,w=t,r&&w)e:{for(c=r,v=w,o=0,e=c;e;e=Re(e))o++;for(e=0,t=v;t;t=Re(t))e++;for(;0<o-e;)c=Re(c),o--;for(;0<e-o;)v=Re(v),e--;for(;o--;){if(c===v||c===v.alternate)break e;c=Re(c),v=Re(v)}c=null}else c=null;for(v=c,c=[];r&&r!==v&&(o=r.alternate,!(o!==null&&o===v));)c.push(r),r=Re(r);for(r=[];w&&w!==v&&(o=w.alternate,!(o!==null&&o===v));)r.push(w),w=Re(w);for(w=0;w<c.length;w++)Bi(c[w],"bubbled",f);for(w=r.length;0<w--;)Bi(r[w],"captured",n);return i&64?[f,n]:[f]}};function mf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:mf,hf=Object.prototype.hasOwnProperty;function En(e,t){if(Ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!hf.call(t,n[r])||!Ct(e[n[r]],t[n[r]]))return!1;return!0}var gf=it&&"documentMode"in document&&11>=document.documentMode,Vs={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Ot=null,Vi=null,pn=null,$i=!1;function Uo(e,t){var n=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;return $i||Ot==null||Ot!==Fi(n)?null:(n=Ot,"selectionStart"in n&&Di(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),pn&&En(pn,n)?null:(pn=n,e=de.getPooled(Vs.select,Vi,e,t),e.type="select",e.target=Ot,Wt(e),e))}var vf={eventTypes:Vs,extractEvents:function(e,t,n,r,i,l){if(i=l||(r.window===r?r.document:r.nodeType===9?r:r.ownerDocument),!(l=!i)){e:{i=_l(i),l=hl.onSelect;for(var o=0;o<l.length;o++)if(!i.has(l[o])){i=!1;break e}i=!0}l=!i}if(l)return null;switch(i=t?Et(t):window,e){case"focus":(Fs(i)||i.contentEditable==="true")&&(Ot=i,Vi=t,pn=null);break;case"blur":pn=Vi=Ot=null;break;case"mousedown":$i=!0;break;case"contextmenu":case"mouseup":case"dragend":return $i=!1,Uo(n,r);case"selectionchange":if(gf)break;case"keydown":case"keyup":return Uo(n,r)}return null}},yf=de.extend({animationName:null,elapsedTime:null,pseudoElement:null}),wf=de.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xf=jn.extend({relatedTarget:null});function nr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}var Ef={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cf={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Tf=jn.extend({key:function(e){if(e.key){var t=Ef[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=nr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Cf[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:zl,charCode:function(e){return e.type==="keypress"?nr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?nr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),kf=Mn.extend({dataTransfer:null}),_f=jn.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:zl}),Sf=de.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),Nf=Mn.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),Pf={eventTypes:Cs,extractEvents:function(e,t,n,r){var i=Ts.get(e);if(!i)return null;switch(e){case"keypress":if(nr(n)===0)return null;case"keydown":case"keyup":e=Tf;break;case"blur":case"focus":e=xf;break;case"click":if(n.button===2)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=kf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=_f;break;case as:case cs:case fs:e=yf;break;case ds:e=Sf;break;case"scroll":e=jn;break;case"wheel":e=Nf;break;case"copy":case"cut":case"paste":e=wf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Us;break;default:e=de}return t=e.getPooled(i,t,n,r),Wt(t),t}};if(pr)throw Error(m(101));pr=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" "));Wu();var If=Rn;ml=Al;Vu=If;$u=Et;Hu({SimpleEventPlugin:Pf,EnterLeaveEventPlugin:pf,ChangeEventPlugin:cf,SelectEventPlugin:vf,BeforeInputEventPlugin:tf});var Wi=[],Rt=-1;function F(e){0>Rt||(e.current=Wi[Rt],Wi[Rt]=null,Rt--)}function U(e,t){Rt++,Wi[Rt]=e.current,e.current=t}var nt={},J={current:nt},ne={current:!1},Tt=nt;function Ht(e,t){var n=e.type.contextTypes;if(!n)return nt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function re(e){return e=e.childContextTypes,e!=null}function wr(){F(ne),F(J)}function Vo(e,t,n){if(J.current!==nt)throw Error(m(168));U(J,t),U(ne,n)}function $s(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(m(108,ze(t)||"Unknown",i));return b({},n,{},r)}function rr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nt,Tt=J.current,U(J,e),U(ne,ne.current),!0}function $o(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=$s(e,t,Tt),r.__reactInternalMemoizedMergedChildContext=e,F(ne),F(J),U(J,e)):F(ne),U(ne,n)}var Lf=K.unstable_runWithPriority,Bl=K.unstable_scheduleCallback,Ws=K.unstable_cancelCallback,Wo=K.unstable_requestPaint,Hi=K.unstable_now,Of=K.unstable_getCurrentPriorityLevel,Hr=K.unstable_ImmediatePriority,Hs=K.unstable_UserBlockingPriority,Qs=K.unstable_NormalPriority,Ks=K.unstable_LowPriority,Xs=K.unstable_IdlePriority,Ys={},Rf=K.unstable_shouldYield,jf=Wo!==void 0?Wo:function(){},je=null,ir=null,ui=!1,Ho=Hi(),me=1e4>Ho?Hi:function(){return Hi()-Ho};function Qr(){switch(Of()){case Hr:return 99;case Hs:return 98;case Qs:return 97;case Ks:return 96;case Xs:return 95;default:throw Error(m(332))}}function Gs(e){switch(e){case 99:return Hr;case 98:return Hs;case 97:return Qs;case 96:return Ks;case 95:return Xs;default:throw Error(m(332))}}function rt(e,t){return e=Gs(e),Lf(e,t)}function Zs(e,t,n){return e=Gs(e),Bl(e,t,n)}function Qo(e){return je===null?(je=[e],ir=Bl(Hr,Js)):je.push(e),Ys}function Ie(){if(ir!==null){var e=ir;ir=null,Ws(e)}Js()}function Js(){if(!ui&&je!==null){ui=!0;var e=0;try{var t=je;rt(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),je=null}catch(n){throw je!==null&&(je=je.slice(e+1)),Bl(Hr,Ie),n}finally{ui=!1}}}function lr(e,t,n){return n/=10,1073741821-(((1073741821-e+t/10)/n|0)+1)*n}function ye(e,t){if(e&&e.defaultProps){t=b({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n])}return t}var xr={current:null},Er=null,jt=null,Cr=null;function Ul(){Cr=jt=Er=null}function Vl(e){var t=xr.current;F(xr),e.type._context._currentValue=t}function qs(e,t){for(;e!==null;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,n!==null&&n.childExpirationTime<t&&(n.childExpirationTime=t);else if(n!==null&&n.childExpirationTime<t)n.childExpirationTime=t;else break;e=e.return}}function Bt(e,t){Er=e,Cr=jt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.expirationTime>=t&&(Te=!0),e.firstContext=null)}function ge(e,t){if(Cr!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(Cr=e,t=1073741823),t={context:e,observedBits:t,next:null},jt===null){if(Er===null)throw Error(m(308));jt=t,Er.dependencies={expirationTime:0,firstContext:t,responders:null}}else jt=jt.next=t;return e._currentValue}var $e=!1;function $l(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function Wl(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function Je(e,t){return e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null},e.next=e}function qe(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function Ko(e,t){var n=e.alternate;n!==null&&Wl(n,e),e=e.updateQueue,n=e.baseQueue,n===null?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function Cn(e,t,n,r){var i=e.updateQueue;$e=!1;var l=i.baseQueue,o=i.shared.pending;if(o!==null){if(l!==null){var u=l.next;l.next=o.next,o.next=u}l=o,i.shared.pending=null,u=e.alternate,u!==null&&(u=u.updateQueue,u!==null&&(u.baseQueue=o))}if(l!==null){u=l.next;var c=i.baseState,f=0,v=null,w=null,N=null;if(u!==null){var O=u;do{if(o=O.expirationTime,o<r){var te={expirationTime:O.expirationTime,suspenseConfig:O.suspenseConfig,tag:O.tag,payload:O.payload,callback:O.callback,next:null};N===null?(w=N=te,v=c):N=N.next=te,o>f&&(f=o)}else{N!==null&&(N=N.next={expirationTime:1073741823,suspenseConfig:O.suspenseConfig,tag:O.tag,payload:O.payload,callback:O.callback,next:null}),Pa(o,O.suspenseConfig);e:{var V=e,a=O;switch(o=t,te=n,a.tag){case 1:if(V=a.payload,typeof V=="function"){c=V.call(te,c,o);break e}c=V;break e;case 3:V.effectTag=V.effectTag&-4097|64;case 0:if(V=a.payload,o=typeof V=="function"?V.call(te,c,o):V,o==null)break e;c=b({},c,o);break e;case 2:$e=!0}}O.callback!==null&&(e.effectTag|=32,o=i.effects,o===null?i.effects=[O]:o.push(O))}if(O=O.next,O===null||O===u){if(o=i.shared.pending,o===null)break;O=l.next=o.next,o.next=u,i.baseQueue=l=o,i.shared.pending=null}}while(!0)}N===null?v=c:N.next=w,i.baseState=v,i.baseQueue=N,Zr(f),e.expirationTime=f,e.memoizedState=c}}function Xo(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=i,i=n,typeof r!="function")throw Error(m(191,r));r.call(i)}}}var mn=we.ReactCurrentBatchConfig,bs=new Br.Component().refs;function Tr(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.expirationTime===0&&(e.updateQueue.baseState=n)}var Kr={isMounted:function(e){return(e=e._reactInternalFiber)?_t(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Se(),i=mn.suspense;r=wt(r,e,i),i=Je(r,i),i.payload=t,n!=null&&(i.callback=n),qe(e,i),et(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Se(),i=mn.suspense;r=wt(r,e,i),i=Je(r,i),i.tag=1,i.payload=t,n!=null&&(i.callback=n),qe(e,i),et(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Se(),r=mn.suspense;n=wt(n,e,r),r=Je(n,r),r.tag=2,t!=null&&(r.callback=t),qe(e,r),et(e,n)}};function Yo(e,t,n,r,i,l,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,o):t.prototype&&t.prototype.isPureReactComponent?!En(n,r)||!En(i,l):!0}function ea(e,t,n){var r=!1,i=nt,l=t.contextType;return typeof l=="object"&&l!==null?l=ge(l):(i=re(t)?Tt:J.current,r=t.contextTypes,l=(r=r!=null)?Ht(e,i):nt),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Kr,e.stateNode=t,t._reactInternalFiber=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=l),t}function Go(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Kr.enqueueReplaceState(t,t.state,null)}function Qi(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=bs,$l(e);var l=t.contextType;typeof l=="object"&&l!==null?i.context=ge(l):(l=re(t)?Tt:J.current,i.context=Ht(e,l)),Cn(e,n,i,r),i.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(Tr(e,t,l,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Kr.enqueueReplaceState(i,i.state,null),Cn(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.effectTag|=4)}var Wn=Array.isArray;function ln(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(m(309));var r=n.stateNode}if(!r)throw Error(m(147,e));var i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(l){var o=r.refs;o===bs&&(o=r.refs={}),l===null?delete o[i]:o[i]=l},t._stringRef=i,t)}if(typeof e!="string")throw Error(m(284));if(!n._owner)throw Error(m(290,e))}return e}function Hn(e,t){if(e.type!=="textarea")throw Error(m(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function ta(e){function t(a,s){if(e){var d=a.lastEffect;d!==null?(d.nextEffect=s,a.lastEffect=s):a.firstEffect=a.lastEffect=s,s.nextEffect=null,s.effectTag=8}}function n(a,s){if(!e)return null;for(;s!==null;)t(a,s),s=s.sibling;return null}function r(a,s){for(a=new Map;s!==null;)s.key!==null?a.set(s.key,s):a.set(s.index,s),s=s.sibling;return a}function i(a,s){return a=kt(a,s),a.index=0,a.sibling=null,a}function l(a,s,d){return a.index=d,e?(d=a.alternate,d!==null?(d=d.index,d<s?(a.effectTag=2,s):d):(a.effectTag=2,s)):s}function o(a){return e&&a.alternate===null&&(a.effectTag=2),a}function u(a,s,d,p){return s===null||s.tag!==6?(s=pi(d,a.mode,p),s.return=a,s):(s=i(s,d),s.return=a,s)}function c(a,s,d,p){return s!==null&&s.elementType===d.type?(p=i(s,d.props),p.ref=ln(a,s,d),p.return=a,p):(p=ar(d.type,d.key,d.props,null,a.mode,p),p.ref=ln(a,s,d),p.return=a,p)}function f(a,s,d,p){return s===null||s.tag!==4||s.stateNode.containerInfo!==d.containerInfo||s.stateNode.implementation!==d.implementation?(s=mi(d,a.mode,p),s.return=a,s):(s=i(s,d.children||[]),s.return=a,s)}function v(a,s,d,p,h){return s===null||s.tag!==7?(s=Xe(d,a.mode,p,h),s.return=a,s):(s=i(s,d),s.return=a,s)}function w(a,s,d){if(typeof s=="string"||typeof s=="number")return s=pi(""+s,a.mode,d),s.return=a,s;if(typeof s=="object"&&s!==null){switch(s.$$typeof){case Bn:return d=ar(s.type,s.key,s.props,null,a.mode,d),d.ref=ln(a,null,s),d.return=a,d;case Pt:return s=mi(s,a.mode,d),s.return=a,s}if(Wn(s)||qt(s))return s=Xe(s,a.mode,d,null),s.return=a,s;Hn(a,s)}return null}function N(a,s,d,p){var h=s!==null?s.key:null;if(typeof d=="string"||typeof d=="number")return h!==null?null:u(a,s,""+d,p);if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Bn:return d.key===h?d.type===ct?v(a,s,d.props.children,p,h):c(a,s,d,p):null;case Pt:return d.key===h?f(a,s,d,p):null}if(Wn(d)||qt(d))return h!==null?null:v(a,s,d,p,null);Hn(a,d)}return null}function O(a,s,d,p,h){if(typeof p=="string"||typeof p=="number")return a=a.get(d)||null,u(s,a,""+p,h);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Bn:return a=a.get(p.key===null?d:p.key)||null,p.type===ct?v(s,a,p.props.children,h,p.key):c(s,a,p,h);case Pt:return a=a.get(p.key===null?d:p.key)||null,f(s,a,p,h)}if(Wn(p)||qt(p))return a=a.get(d)||null,v(s,a,p,h,null);Hn(s,p)}return null}function te(a,s,d,p){for(var h=null,x=null,C=s,P=s=0,I=null;C!==null&&P<d.length;P++){C.index>P?(I=C,C=null):I=C.sibling;var _=N(a,C,d[P],p);if(_===null){C===null&&(C=I);break}e&&C&&_.alternate===null&&t(a,C),s=l(_,s,P),x===null?h=_:x.sibling=_,x=_,C=I}if(P===d.length)return n(a,C),h;if(C===null){for(;P<d.length;P++)C=w(a,d[P],p),C!==null&&(s=l(C,s,P),x===null?h=C:x.sibling=C,x=C);return h}for(C=r(a,C);P<d.length;P++)I=O(C,a,P,d[P],p),I!==null&&(e&&I.alternate!==null&&C.delete(I.key===null?P:I.key),s=l(I,s,P),x===null?h=I:x.sibling=I,x=I);return e&&C.forEach(function(oe){return t(a,oe)}),h}function V(a,s,d,p){var h=qt(d);if(typeof h!="function")throw Error(m(150));if(d=h.call(d),d==null)throw Error(m(151));for(var x=h=null,C=s,P=s=0,I=null,_=d.next();C!==null&&!_.done;P++,_=d.next()){C.index>P?(I=C,C=null):I=C.sibling;var oe=N(a,C,_.value,p);if(oe===null){C===null&&(C=I);break}e&&C&&oe.alternate===null&&t(a,C),s=l(oe,s,P),x===null?h=oe:x.sibling=oe,x=oe,C=I}if(_.done)return n(a,C),h;if(C===null){for(;!_.done;P++,_=d.next())_=w(a,_.value,p),_!==null&&(s=l(_,s,P),x===null?h=_:x.sibling=_,x=_);return h}for(C=r(a,C);!_.done;P++,_=d.next())_=O(C,a,P,_.value,p),_!==null&&(e&&_.alternate!==null&&C.delete(_.key===null?P:_.key),s=l(_,s,P),x===null?h=_:x.sibling=_,x=_);return e&&C.forEach(function(ue){return t(a,ue)}),h}return function(a,s,d,p){var h=typeof d=="object"&&d!==null&&d.type===ct&&d.key===null;h&&(d=d.props.children);var x=typeof d=="object"&&d!==null;if(x)switch(d.$$typeof){case Bn:e:{for(x=d.key,h=s;h!==null;){if(h.key===x){switch(h.tag){case 7:if(d.type===ct){n(a,h.sibling),s=i(h,d.props.children),s.return=a,a=s;break e}break;default:if(h.elementType===d.type){n(a,h.sibling),s=i(h,d.props),s.ref=ln(a,h,d),s.return=a,a=s;break e}}n(a,h);break}else t(a,h);h=h.sibling}d.type===ct?(s=Xe(d.props.children,a.mode,p,d.key),s.return=a,a=s):(p=ar(d.type,d.key,d.props,null,a.mode,p),p.ref=ln(a,s,d),p.return=a,a=p)}return o(a);case Pt:e:{for(h=d.key;s!==null;){if(s.key===h)if(s.tag===4&&s.stateNode.containerInfo===d.containerInfo&&s.stateNode.implementation===d.implementation){n(a,s.sibling),s=i(s,d.children||[]),s.return=a,a=s;break e}else{n(a,s);break}else t(a,s);s=s.sibling}s=mi(d,a.mode,p),s.return=a,a=s}return o(a)}if(typeof d=="string"||typeof d=="number")return d=""+d,s!==null&&s.tag===6?(n(a,s.sibling),s=i(s,d),s.return=a,a=s):(n(a,s),s=pi(d,a.mode,p),s.return=a,a=s),o(a);if(Wn(d))return te(a,s,d,p);if(qt(d))return V(a,s,d,p);if(x&&Hn(a,d),typeof d>"u"&&!h)switch(a.tag){case 1:case 0:throw a=a.type,Error(m(152,a.displayName||a.name||"Component"))}return n(a,s)}}var Qt=ta(!0),Hl=ta(!1),An={},_e={current:An},Tn={current:An},kn={current:An};function dt(e){if(e===An)throw Error(m(174));return e}function Ki(e,t){switch(U(kn,t),U(Tn,e),U(_e,An),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ii(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ii(t,e)}F(_e),U(_e,t)}function Kt(){F(_e),F(Tn),F(kn)}function Zo(e){dt(kn.current);var t=dt(_e.current),n=Ii(t,e.type);t!==n&&(U(Tn,e),U(_e,n))}function Ql(e){Tn.current===e&&(F(_e),F(Tn))}var z={current:0};function kr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===Rl||n.data===jl))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.effectTag&64)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Kl(e,t){return{responder:e,props:t}}var or=we.ReactCurrentDispatcher,he=we.ReactCurrentBatchConfig,Qe=0,W=null,G=null,Z=null,_r=!1;function se(){throw Error(m(321))}function Xl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ct(e[n],t[n]))return!1;return!0}function Yl(e,t,n,r,i,l){if(Qe=l,W=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,or.current=e===null||e.memoizedState===null?Mf:Af,e=n(r,i),t.expirationTime===Qe){l=0;do{if(t.expirationTime=0,!(25>l))throw Error(m(301));l+=1,Z=G=null,t.updateQueue=null,or.current=Ff,e=n(r,i)}while(t.expirationTime===Qe)}if(or.current=Pr,t=G!==null&&G.next!==null,Qe=0,Z=G=W=null,_r=!1,t)throw Error(m(300));return e}function Ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Z===null?W.memoizedState=Z=e:Z=Z.next=e,Z}function Yt(){if(G===null){var e=W.alternate;e=e!==null?e.memoizedState:null}else e=G.next;var t=Z===null?W.memoizedState:Z.next;if(t!==null)Z=t,G=e;else{if(e===null)throw Error(m(310));G=e,e={memoizedState:G.memoizedState,baseState:G.baseState,baseQueue:G.baseQueue,queue:G.queue,next:null},Z===null?W.memoizedState=Z=e:Z=Z.next=e}return Z}function gt(e,t){return typeof t=="function"?t(e):t}function Qn(e){var t=Yt(),n=t.queue;if(n===null)throw Error(m(311));n.lastRenderedReducer=e;var r=G,i=r.baseQueue,l=n.pending;if(l!==null){if(i!==null){var o=i.next;i.next=l.next,l.next=o}r.baseQueue=i=l,n.pending=null}if(i!==null){i=i.next,r=r.baseState;var u=o=l=null,c=i;do{var f=c.expirationTime;if(f<Qe){var v={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};u===null?(o=u=v,l=r):u=u.next=v,f>W.expirationTime&&(W.expirationTime=f,Zr(f))}else u!==null&&(u=u.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),Pa(f,c.suspenseConfig),r=c.eagerReducer===e?c.eagerState:e(r,c.action);c=c.next}while(c!==null&&c!==i);u===null?l=r:u.next=o,Ct(r,t.memoizedState)||(Te=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Kn(e){var t=Yt(),n=t.queue;if(n===null)throw Error(m(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,l=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do l=e(l,o.action),o=o.next;while(o!==i);Ct(l,t.memoizedState)||(Te=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function si(e){var t=Ut();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:gt,lastRenderedState:e},e=e.dispatch=ua.bind(null,W,e),[t.memoizedState,e]}function Xi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=W.updateQueue,t===null?(t={lastEffect:null},W.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function na(){return Yt().memoizedState}function Yi(e,t,n,r){var i=Ut();W.effectTag|=e,i.memoizedState=Xi(1|t,n,void 0,r===void 0?null:r)}function Gl(e,t,n,r){var i=Yt();r=r===void 0?null:r;var l=void 0;if(G!==null){var o=G.memoizedState;if(l=o.destroy,r!==null&&Xl(r,o.deps)){Xi(t,n,l,r);return}}W.effectTag|=e,i.memoizedState=Xi(1|t,n,l,r)}function Jo(e,t){return Yi(516,4,e,t)}function Sr(e,t){return Gl(516,4,e,t)}function ra(e,t){return Gl(4,2,e,t)}function ia(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function la(e,t,n){return n=n!=null?n.concat([e]):null,Gl(4,2,ia.bind(null,t,e),n)}function Zl(){}function qo(e,t){return Ut().memoizedState=[e,t===void 0?null:t],e}function Nr(e,t){var n=Yt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Xl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function oa(e,t){var n=Yt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Xl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Jl(e,t,n){var r=Qr();rt(98>r?98:r,function(){e(!0)}),rt(97<r?97:r,function(){var i=he.suspense;he.suspense=t===void 0?null:t;try{e(!1),n()}finally{he.suspense=i}})}function ua(e,t,n){var r=Se(),i=mn.suspense;r=wt(r,e,i),i={expirationTime:r,suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var l=t.pending;if(l===null?i.next=i:(i.next=l.next,l.next=i),t.pending=i,l=e.alternate,e===W||l!==null&&l===W)_r=!0,i.expirationTime=Qe,W.expirationTime=Qe;else{if(e.expirationTime===0&&(l===null||l.expirationTime===0)&&(l=t.lastRenderedReducer,l!==null))try{var o=t.lastRenderedState,u=l(o,n);if(i.eagerReducer=l,i.eagerState=u,Ct(u,o))return}catch{}finally{}et(e,r)}}var Pr={readContext:ge,useCallback:se,useContext:se,useEffect:se,useImperativeHandle:se,useLayoutEffect:se,useMemo:se,useReducer:se,useRef:se,useState:se,useDebugValue:se,useResponder:se,useDeferredValue:se,useTransition:se},Mf={readContext:ge,useCallback:qo,useContext:ge,useEffect:Jo,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yi(4,2,ia.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yi(4,2,e,t)},useMemo:function(e,t){var n=Ut();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ut();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=ua.bind(null,W,e),[r.memoizedState,e]},useRef:function(e){var t=Ut();return e={current:e},t.memoizedState=e},useState:si,useDebugValue:Zl,useResponder:Kl,useDeferredValue:function(e,t){var n=si(e),r=n[0],i=n[1];return Jo(function(){var l=he.suspense;he.suspense=t===void 0?null:t;try{i(e)}finally{he.suspense=l}},[e,t]),r},useTransition:function(e){var t=si(!1),n=t[0];return t=t[1],[qo(Jl.bind(null,t,e),[t,e]),n]}},Af={readContext:ge,useCallback:Nr,useContext:ge,useEffect:Sr,useImperativeHandle:la,useLayoutEffect:ra,useMemo:oa,useReducer:Qn,useRef:na,useState:function(){return Qn(gt)},useDebugValue:Zl,useResponder:Kl,useDeferredValue:function(e,t){var n=Qn(gt),r=n[0],i=n[1];return Sr(function(){var l=he.suspense;he.suspense=t===void 0?null:t;try{i(e)}finally{he.suspense=l}},[e,t]),r},useTransition:function(e){var t=Qn(gt),n=t[0];return t=t[1],[Nr(Jl.bind(null,t,e),[t,e]),n]}},Ff={readContext:ge,useCallback:Nr,useContext:ge,useEffect:Sr,useImperativeHandle:la,useLayoutEffect:ra,useMemo:oa,useReducer:Kn,useRef:na,useState:function(){return Kn(gt)},useDebugValue:Zl,useResponder:Kl,useDeferredValue:function(e,t){var n=Kn(gt),r=n[0],i=n[1];return Sr(function(){var l=he.suspense;he.suspense=t===void 0?null:t;try{i(e)}finally{he.suspense=l}},[e,t]),r},useTransition:function(e){var t=Kn(gt),n=t[0];return t=t[1],[Nr(Jl.bind(null,t,e),[t,e]),n]}},Fe=null,Ke=null,vt=!1;function sa(e,t){var n=ke(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,e.lastEffect!==null?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function bo(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function Gi(e){if(vt){var t=Ke;if(t){var n=t;if(!bo(e,t)){if(t=zt(n.nextSibling),!t||!bo(e,t)){e.effectTag=e.effectTag&-1025|2,vt=!1,Fe=e;return}sa(Fe,n)}Fe=e,Ke=zt(t.firstChild)}else e.effectTag=e.effectTag&-1025|2,vt=!1,Fe=e}}function eu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Fe=e}function Xn(e){if(e!==Fe)return!1;if(!vt)return eu(e),vt=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!zi(t,e.memoizedProps))for(t=Ke;t;)sa(e,t),t=zt(t.nextSibling);if(eu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(m(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===Ps){if(t===0){Ke=zt(e.nextSibling);break e}t--}else n!==Ns&&n!==jl&&n!==Rl||t++}e=e.nextSibling}Ke=null}}else Ke=Fe?zt(e.stateNode.nextSibling):null;return!0}function ai(){Ke=Fe=null,vt=!1}var Df=we.ReactCurrentOwner,Te=!1;function ae(e,t,n,r){t.child=e===null?Hl(t,null,n,r):Qt(t,e.child,n,r)}function tu(e,t,n,r,i){n=n.render;var l=t.ref;return Bt(t,i),r=Yl(e,t,n,r,l,i),e!==null&&!Te?(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),De(e,t,i)):(t.effectTag|=1,ae(e,t,r,i),t.child)}function nu(e,t,n,r,i,l){if(e===null){var o=n.type;return typeof o=="function"&&!no(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,aa(e,t,o,r,i,l)):(e=ar(n.type,null,r,null,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}return o=e.child,i<l&&(i=o.memoizedProps,n=n.compare,n=n!==null?n:En,n(i,r)&&e.ref===t.ref)?De(e,t,l):(t.effectTag|=1,e=kt(o,r),e.ref=t.ref,e.return=t,t.child=e)}function aa(e,t,n,r,i,l){return e!==null&&En(e.memoizedProps,r)&&e.ref===t.ref&&(Te=!1,i<l)?(t.expirationTime=e.expirationTime,De(e,t,l)):Zi(e,t,n,r,l)}function ca(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.effectTag|=128)}function Zi(e,t,n,r,i){var l=re(n)?Tt:J.current;return l=Ht(t,l),Bt(t,i),n=Yl(e,t,n,r,l,i),e!==null&&!Te?(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),De(e,t,i)):(t.effectTag|=1,ae(e,t,n,i),t.child)}function ru(e,t,n,r,i){if(re(n)){var l=!0;rr(t)}else l=!1;if(Bt(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.effectTag|=2),ea(t,n,r),Qi(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,u=t.memoizedProps;o.props=u;var c=o.context,f=n.contextType;typeof f=="object"&&f!==null?f=ge(f):(f=re(n)?Tt:J.current,f=Ht(t,f));var v=n.getDerivedStateFromProps,w=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function";w||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==r||c!==f)&&Go(t,o,r,f),$e=!1;var N=t.memoizedState;o.state=N,Cn(t,r,o,i),c=t.memoizedState,u!==r||N!==c||ne.current||$e?(typeof v=="function"&&(Tr(t,n,v,r),c=t.memoizedState),(u=$e||Yo(t,n,u,r,N,c,f))?(w||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.effectTag|=4)):(typeof o.componentDidMount=="function"&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=f,r=u):(typeof o.componentDidMount=="function"&&(t.effectTag|=4),r=!1)}else o=t.stateNode,Wl(e,t),u=t.memoizedProps,o.props=t.type===t.elementType?u:ye(t.type,u),c=o.context,f=n.contextType,typeof f=="object"&&f!==null?f=ge(f):(f=re(n)?Tt:J.current,f=Ht(t,f)),v=n.getDerivedStateFromProps,(w=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==r||c!==f)&&Go(t,o,r,f),$e=!1,c=t.memoizedState,o.state=c,Cn(t,r,o,i),N=t.memoizedState,u!==r||c!==N||ne.current||$e?(typeof v=="function"&&(Tr(t,n,v,r),N=t.memoizedState),(v=$e||Yo(t,n,u,r,c,N,f))?(w||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,N,f),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,N,f)),typeof o.componentDidUpdate=="function"&&(t.effectTag|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.effectTag|=256)):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=N),o.props=r,o.state=N,o.context=f,r=v):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),r=!1);return Ji(e,t,n,r,l,i)}function Ji(e,t,n,r,i,l){ca(e,t);var o=(t.effectTag&64)!==0;if(!r&&!o)return i&&$o(t,n,!1),De(e,t,l);r=t.stateNode,Df.current=t;var u=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.effectTag|=1,e!==null&&o?(t.child=Qt(t,e.child,null,l),t.child=Qt(t,null,u,l)):ae(e,t,u,l),t.memoizedState=r.state,i&&$o(t,n,!0),t.child}function iu(e){var t=e.stateNode;t.pendingContext?Vo(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Vo(e,t.context,!1),Ki(e,t.containerInfo)}var ci={dehydrated:null,retryTime:0};function lu(e,t,n){var r=t.mode,i=t.pendingProps,l=z.current,o=!1,u;if((u=(t.effectTag&64)!==0)||(u=(l&2)!==0&&(e===null||e.memoizedState!==null)),u?(o=!0,t.effectTag&=-65):e!==null&&e.memoizedState===null||i.fallback===void 0||i.unstable_avoidThisFallback===!0||(l|=1),U(z,l&1),e===null){if(i.fallback!==void 0&&Gi(t),o){if(o=i.fallback,i=Xe(null,r,0,null),i.return=t,!(t.mode&2))for(e=t.memoizedState!==null?t.child.child:t.child,i.child=e;e!==null;)e.return=i,e=e.sibling;return n=Xe(o,r,n,null),n.return=t,i.sibling=n,t.memoizedState=ci,t.child=i,n}return r=i.children,t.memoizedState=null,t.child=Hl(t,null,r,n)}if(e.memoizedState!==null){if(e=e.child,r=e.sibling,o){if(i=i.fallback,n=kt(e,e.pendingProps),n.return=t,!(t.mode&2)&&(o=t.memoizedState!==null?t.child.child:t.child,o!==e.child))for(n.child=o;o!==null;)o.return=n,o=o.sibling;return r=kt(r,i),r.return=t,n.sibling=r,n.childExpirationTime=0,t.memoizedState=ci,t.child=n,r}return n=Qt(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,o){if(o=i.fallback,i=Xe(null,r,0,null),i.return=t,i.child=e,e!==null&&(e.return=i),!(t.mode&2))for(e=t.memoizedState!==null?t.child.child:t.child,i.child=e;e!==null;)e.return=i,e=e.sibling;return n=Xe(o,r,n,null),n.return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=ci,t.child=i,n}return t.memoizedState=null,t.child=Qt(t,e,i.children,n)}function ou(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;n!==null&&n.expirationTime<t&&(n.expirationTime=t),qs(e.return,t)}function fi(e,t,n,r,i,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailExpiration=0,o.tailMode=i,o.lastEffect=l)}function uu(e,t,n){var r=t.pendingProps,i=r.revealOrder,l=r.tail;if(ae(e,t,r.children,n),r=z.current,r&2)r=r&1|2,t.effectTag|=64;else{if(e!==null&&e.effectTag&64)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ou(e,n);else if(e.tag===19)ou(e,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(U(z,r),!(t.mode&2))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&kr(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),fi(t,!1,i,n,l,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&kr(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}fi(t,!0,n,null,l,t.lastEffect);break;case"together":fi(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function De(e,t,n){e!==null&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(r!==0&&Zr(r),t.childExpirationTime<n)return null;if(e!==null&&t.child!==e.child)throw Error(m(153));if(t.child!==null){for(e=t.child,n=kt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=kt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}var fa,qi,da,pa;fa=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};qi=function(){};da=function(e,t,n,r,i){var l=e.memoizedProps;if(l!==r){var o=t.stateNode;switch(dt(_e.current),e=null,n){case"input":l=ki(o,l),r=ki(o,r),e=[];break;case"option":l=Ni(o,l),r=Ni(o,r),e=[];break;case"select":l=b({},l,{value:void 0}),r=b({},r,{value:void 0}),e=[];break;case"textarea":l=Pi(o,l),r=Pi(o,r),e=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(o.onclick=gr)}Mi(n,r);var u,c;n=null;for(u in l)if(!r.hasOwnProperty(u)&&l.hasOwnProperty(u)&&l[u]!=null)if(u==="style")for(c in o=l[u],o)o.hasOwnProperty(c)&&(n||(n={}),n[c]="");else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Vt.hasOwnProperty(u)?e||(e=[]):(e=e||[]).push(u,null));for(u in r){var f=r[u];if(o=l!=null?l[u]:void 0,r.hasOwnProperty(u)&&f!==o&&(f!=null||o!=null))if(u==="style")if(o){for(c in o)!o.hasOwnProperty(c)||f&&f.hasOwnProperty(c)||(n||(n={}),n[c]="");for(c in f)f.hasOwnProperty(c)&&o[c]!==f[c]&&(n||(n={}),n[c]=f[c])}else n||(e||(e=[]),e.push(u,n)),n=f;else u==="dangerouslySetInnerHTML"?(f=f?f.__html:void 0,o=o?o.__html:void 0,f!=null&&o!==f&&(e=e||[]).push(u,f)):u==="children"?o===f||typeof f!="string"&&typeof f!="number"||(e=e||[]).push(u,""+f):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Vt.hasOwnProperty(u)?(f!=null&&Oe(i,u),e||o===f||(e=[])):(e=e||[]).push(u,f))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}};pa=function(e,t,n,r){n!==r&&(t.effectTag|=4)};function Yn(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function zf(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return re(t.type)&&wr(),null;case 3:return Kt(),F(ne),F(J),n=t.stateNode,n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),e!==null&&e.child!==null||!Xn(t)||(t.effectTag|=4),qi(t),null;case 5:Ql(t),n=dt(kn.current);var i=t.type;if(e!==null&&t.stateNode!=null)da(e,t,i,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(t.stateNode===null)throw Error(m(166));return null}if(e=dt(_e.current),Xn(t)){r=t.stateNode,i=t.type;var l=t.memoizedProps;switch(r[We]=t,r[vr]=l,i){case"iframe":case"object":case"embed":D("load",r);break;case"video":case"audio":for(e=0;e<on.length;e++)D(on[e],r);break;case"source":D("error",r);break;case"img":case"image":case"link":D("error",r),D("load",r);break;case"form":D("reset",r),D("submit",r);break;case"details":D("toggle",r);break;case"input":yo(r,l),D("invalid",r),Oe(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!l.multiple},D("invalid",r),Oe(n,"onChange");break;case"textarea":xo(r,l),D("invalid",r),Oe(n,"onChange")}Mi(i,l),e=null;for(var o in l)if(l.hasOwnProperty(o)){var u=l[o];o==="children"?typeof u=="string"?r.textContent!==u&&(e=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(e=["children",""+u]):Vt.hasOwnProperty(o)&&u!=null&&Oe(n,o)}switch(i){case"input":Un(r),wo(r,l,!0);break;case"textarea":Un(r),Eo(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=gr)}n=e,t.updateQueue=n,n!==null&&(t.effectTag|=4)}else{switch(o=n.nodeType===9?n:n.ownerDocument,e===No&&(e=os(i)),e===No?i==="script"?(e=o.createElement("div"),e.innerHTML="<script type=\'module\'><\\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(i,{is:r.is}):(e=o.createElement(i),i==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,i),e[We]=t,e[vr]=r,fa(e,t,!1,!1),t.stateNode=e,o=Ai(i,r),i){case"iframe":case"object":case"embed":D("load",e),u=r;break;case"video":case"audio":for(u=0;u<on.length;u++)D(on[u],e);u=r;break;case"source":D("error",e),u=r;break;case"img":case"image":case"link":D("error",e),D("load",e),u=r;break;case"form":D("reset",e),D("submit",e),u=r;break;case"details":D("toggle",e),u=r;break;case"input":yo(e,r),u=ki(e,r),D("invalid",e),Oe(n,"onChange");break;case"option":u=Ni(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},u=b({},r,{value:void 0}),D("invalid",e),Oe(n,"onChange");break;case"textarea":xo(e,r),u=Pi(e,r),D("invalid",e),Oe(n,"onChange");break;default:u=r}Mi(i,u);var c=u;for(l in c)if(c.hasOwnProperty(l)){var f=c[l];l==="style"?_s(e,f):l==="dangerouslySetInnerHTML"?(f=f?f.__html:void 0,f!=null&&us(e,f)):l==="children"?typeof f=="string"?(i!=="textarea"||f!=="")&&vn(e,f):typeof f=="number"&&vn(e,""+f):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Vt.hasOwnProperty(l)?f!=null&&Oe(n,l):f!=null&&El(e,l,f,o))}switch(i){case"input":Un(e),wo(e,r,!1);break;case"textarea":Un(e),Eo(e);break;case"option":r.value!=null&&e.setAttribute("value",""+tt(r.value));break;case"select":e.multiple=!!r.multiple,n=r.value,n!=null?Dt(e,!!r.multiple,n,!1):r.defaultValue!=null&&Dt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof u.onClick=="function"&&(e.onclick=gr)}Is(i,r)&&(t.effectTag|=4)}t.ref!==null&&(t.effectTag|=128)}return null;case 6:if(e&&t.stateNode!=null)pa(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(m(166));n=dt(kn.current),dt(_e.current),Xn(t)?(n=t.stateNode,r=t.memoizedProps,n[We]=t,n.nodeValue!==r&&(t.effectTag|=4)):(n=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),n[We]=t,t.stateNode=n)}return null;case 13:return F(z),r=t.memoizedState,t.effectTag&64?(t.expirationTime=n,t):(n=r!==null,r=!1,e===null?t.memoizedProps.fallback!==void 0&&Xn(t):(i=e.memoizedState,r=i!==null,n||i===null||(i=e.child.sibling,i!==null&&(l=t.firstEffect,l!==null?(t.firstEffect=i,i.nextEffect=l):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8))),n&&!r&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||z.current&1?H===yt&&(H=Or):((H===yt||H===Or)&&(H=Xr),Sn!==0&&ce!==null&&(ht(ce,ie),ja(ce,Sn)))),(n||r)&&(t.effectTag|=4),null);case 4:return Kt(),qi(t),null;case 10:return Vl(t),null;case 17:return re(t.type)&&wr(),null;case 19:if(F(z),r=t.memoizedState,r===null)return null;if(i=(t.effectTag&64)!==0,l=r.rendering,l===null){if(i)Yn(r,!1);else if(H!==yt||e!==null&&e.effectTag&64)for(l=t.child;l!==null;){if(e=kr(l),e!==null){for(t.effectTag|=64,Yn(r,!1),i=e.updateQueue,i!==null&&(t.updateQueue=i,t.effectTag|=4),r.lastEffect===null&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;r!==null;)i=r,l=n,i.effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,e=i.alternate,e===null?(i.childExpirationTime=0,i.expirationTime=l,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,l=e.dependencies,i.dependencies=l===null?null:{expirationTime:l.expirationTime,firstContext:l.firstContext,responders:l.responders}),r=r.sibling;return U(z,z.current&1|2),t.child}l=l.sibling}}else{if(!i)if(e=kr(l),e!==null){if(t.effectTag|=64,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.effectTag|=4),Yn(r,!0),r.tail===null&&r.tailMode==="hidden"&&!l.alternate)return t=t.lastEffect=r.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*me()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,i=!0,Yn(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(l.sibling=t.child,t.child=l):(n=r.last,n!==null?n.sibling=l:t.child=l,r.last=l)}return r.tail!==null?(r.tailExpiration===0&&(r.tailExpiration=me()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=me(),n.sibling=null,t=z.current,U(z,i?t&1|2:t&1),n):null}throw Error(m(156,t.tag))}function Bf(e){switch(e.tag){case 1:re(e.type)&&wr();var t=e.effectTag;return t&4096?(e.effectTag=t&-4097|64,e):null;case 3:if(Kt(),F(ne),F(J),t=e.effectTag,t&64)throw Error(m(285));return e.effectTag=t&-4097|64,e;case 5:return Ql(e),null;case 13:return F(z),t=e.effectTag,t&4096?(e.effectTag=t&-4097|64,e):null;case 19:return F(z),null;case 4:return Kt(),null;case 10:return Vl(e),null;default:return null}}function ql(e,t){return{value:e,source:t,stack:kl(t)}}var Uf=typeof WeakSet=="function"?WeakSet:Set;function bi(e,t){var n=t.source,r=t.stack;r===null&&n!==null&&(r=kl(n)),n!==null&&ze(n.type),t=t.value,e!==null&&e.tag===1&&ze(e.type);try{console.error(t)}catch(i){setTimeout(function(){throw i})}}function Vf(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(n){xt(e,n)}}function su(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){xt(e,n)}else t.current=null}function $f(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.effectTag&256&&e!==null){var n=e.memoizedProps,r=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:ye(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(m(163))}function ma(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,r!==void 0&&r()}n=n.next}while(n!==t)}}function ha(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Wf(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:ha(3,n);return;case 1:if(e=n.stateNode,n.effectTag&4)if(t===null)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:ye(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}t=n.updateQueue,t!==null&&Xo(n,t,e);return;case 3:if(t=n.updateQueue,t!==null){if(e=null,n.child!==null)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}Xo(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.effectTag&4&&Is(n.type,n.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&Es(n))));return;case 19:case 17:case 20:case 21:return}throw Error(m(163))}function au(e,t,n){switch(typeof ul=="function"&&ul(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e.next;rt(97<n?97:n,function(){var i=r;do{var l=i.destroy;if(l!==void 0){var o=t;try{l()}catch(u){xt(o,u)}}i=i.next}while(i!==r)})}break;case 1:su(t),n=t.stateNode,typeof n.componentWillUnmount=="function"&&Vf(t,n);break;case 5:su(t);break;case 4:va(e,t,n)}}function ga(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,t!==null&&ga(t)}function cu(e){return e.tag===5||e.tag===3||e.tag===4}function fu(e){e:{for(var t=e.return;t!==null;){if(cu(t)){var n=t;break e}t=t.return}throw Error(m(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:t=t.containerInfo,r=!0;break;case 4:t=t.containerInfo,r=!0;break;default:throw Error(m(161))}n.effectTag&16&&(vn(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||cu(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.effectTag&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.effectTag&2)){n=n.stateNode;break e}}r?el(e,n,t):tl(e,n,t)}function el(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=gr));else if(r!==4&&(e=e.child,e!==null))for(el(e,t,n),e=e.sibling;e!==null;)el(e,t,n),e=e.sibling}function tl(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(tl(e,t,n),e=e.sibling;e!==null;)tl(e,t,n),e=e.sibling}function va(e,t,n){for(var r=t,i=!1,l,o;;){if(!i){i=r.return;e:for(;;){if(i===null)throw Error(m(160));switch(l=i.stateNode,i.tag){case 5:o=!1;break e;case 3:l=l.containerInfo,o=!0;break e;case 4:l=l.containerInfo,o=!0;break e}i=i.return}i=!0}if(r.tag===5||r.tag===6){e:for(var u=e,c=r,f=n,v=c;;)if(au(u,v,f),v.child!==null&&v.tag!==4)v.child.return=v,v=v.child;else{if(v===c)break e;for(;v.sibling===null;){if(v.return===null||v.return===c)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}o?(u=l,c=r.stateNode,u.nodeType===8?u.parentNode.removeChild(c):u.removeChild(c)):l.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){l=r.stateNode.containerInfo,o=!0,r.child.return=r,r=r.child;continue}}else if(au(e,r,n),r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return,r.tag===4&&(i=!1)}r.sibling.return=r.return,r=r.sibling}}function di(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:ma(3,t);return;case 1:return;case 5:var n=t.stateNode;if(n!=null){var r=t.memoizedProps,i=e!==null?e.memoizedProps:r;e=t.type;var l=t.updateQueue;if(t.updateQueue=null,l!==null){for(n[vr]=r,e==="input"&&r.type==="radio"&&r.name!=null&&rs(n,r),Ai(e,i),t=Ai(e,r),i=0;i<l.length;i+=2){var o=l[i],u=l[i+1];o==="style"?_s(n,u):o==="dangerouslySetInnerHTML"?us(n,u):o==="children"?vn(n,u):El(n,o,u,t)}switch(e){case"input":_i(n,r);break;case"textarea":is(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,e=r.value,e!=null?Dt(n,!!r.multiple,e,!1):t!==!!r.multiple&&(r.defaultValue!=null?Dt(n,!!r.multiple,r.defaultValue,!0):Dt(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(m(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:t=t.stateNode,t.hydrate&&(t.hydrate=!1,Es(t.containerInfo));return;case 12:return;case 13:if(n=t,t.memoizedState===null?r=!1:(r=!0,n=t.child,to=me()),n!==null)e:for(e=n;;){if(e.tag===5)l=e.stateNode,r?(l=l.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(l=e.stateNode,i=e.memoizedProps.style,i=i!=null&&i.hasOwnProperty("display")?i.display:null,l.style.display=ks("display",i));else if(e.tag===6)e.stateNode.nodeValue=r?"":e.memoizedProps;else if(e.tag===13&&e.memoizedState!==null&&e.memoizedState.dehydrated===null){l=e.child.sibling,l.return=e,e=l;continue}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}du(t);return;case 19:du(t);return;case 17:return}throw Error(m(163))}function du(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Uf),t.forEach(function(r){var i=bf.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}var Hf=typeof WeakMap=="function"?WeakMap:Map;function ya(e,t,n){n=Je(n,null),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Mr||(Mr=!0,nl=r),bi(e,t)},n}function wa(e,t,n){n=Je(n,null),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return bi(e,t),r(i)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){typeof r!="function"&&(be===null?be=new Set([this]):be.add(this),bi(e,t));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}var Qf=Math.ceil,Ir=we.ReactCurrentDispatcher,xa=we.ReactCurrentOwner,Q=0,bl=8,xe=16,Pe=32,yt=0,Lr=1,Ea=2,Or=3,Xr=4,eo=5,k=Q,ce=null,S=null,ie=0,H=yt,Yr=null,Me=1073741823,_n=1073741823,Rr=null,Sn=0,jr=!1,to=0,Ca=500,E=null,Mr=!1,nl=null,be=null,Ar=!1,hn=null,sn=90,pt=null,gn=0,rl=null,ur=0;function Se(){return(k&(xe|Pe))!==Q?1073741821-(me()/10|0):ur!==0?ur:ur=1073741821-(me()/10|0)}function wt(e,t,n){if(t=t.mode,!(t&2))return 1073741823;var r=Qr();if(!(t&4))return r===99?1073741823:1073741822;if((k&xe)!==Q)return ie;if(n!==null)e=lr(e,n.timeoutMs|0||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=lr(e,150,100);break;case 97:case 96:e=lr(e,5e3,250);break;case 95:e=2;break;default:throw Error(m(326))}return ce!==null&&e===ie&&--e,e}function et(e,t){if(50<gn)throw gn=0,rl=null,Error(m(185));if(e=Gr(e,t),e!==null){var n=Qr();t===1073741823?(k&bl)!==Q&&(k&(xe|Pe))===Q?il(e):(fe(e),k===Q&&Ie()):fe(e),(k&4)===Q||n!==98&&n!==99||(pt===null?pt=new Map([[e,t]]):(n=pt.get(e),(n===void 0||n>t)&&pt.set(e,t)))}}function Gr(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;n!==null&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(r===null&&e.tag===3)i=e.stateNode;else for(;r!==null;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),n!==null&&n.childExpirationTime<t&&(n.childExpirationTime=t),r.return===null&&r.tag===3){i=r.stateNode;break}r=r.return}return i!==null&&(ce===i&&(Zr(t),H===Xr&&ht(i,ie)),ja(i,t)),i}function sr(e){var t=e.lastExpiredTime;if(t!==0||(t=e.firstPendingTime,!Ra(e,t)))return t;var n=e.lastPingedTime;return e=e.nextKnownPendingLevel,e=n>e?n:e,2>=e&&t!==e?0:e}function fe(e){if(e.lastExpiredTime!==0)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Qo(il.bind(null,e));else{var t=sr(e),n=e.callbackNode;if(t===0)n!==null&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Se();if(t===1073741823?r=99:t===1||t===2?r=95:(r=10*(1073741821-t)-10*(1073741821-r),r=0>=r?99:250>=r?98:5250>=r?97:95),n!==null){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==Ys&&Ws(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=t===1073741823?Qo(il.bind(null,e)):Zs(r,Ta.bind(null,e),{timeout:10*(1073741821-t)-me()}),e.callbackNode=t}}}function Ta(e,t){if(ur=0,t)return t=Se(),sl(e,t),fe(e),null;var n=sr(e);if(n!==0){if(t=e.callbackNode,(k&(xe|Pe))!==Q)throw Error(m(327));if(Gt(),e===ce&&n===ie||mt(e,n),S!==null){var r=k;k|=xe;var i=Na();do try{Yf();break}catch(u){Sa(e,u)}while(!0);if(Ul(),k=r,Ir.current=i,H===Lr)throw t=Yr,mt(e,n),ht(e,n),fe(e),t;if(S===null)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=H,ce=null,r){case yt:case Lr:throw Error(m(345));case Ea:sl(e,2<n?2:n);break;case Or:if(ht(e,n),r=e.lastSuspendedTime,n===r&&(e.nextKnownPendingLevel=ll(i)),Me===1073741823&&(i=to+Ca-me(),10<i)){if(jr){var l=e.lastPingedTime;if(l===0||l>=n){e.lastPingedTime=n,mt(e,n);break}}if(l=sr(e),l!==0&&l!==n)break;if(r!==0&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=oi(at.bind(null,e),i);break}at(e);break;case Xr:if(ht(e,n),r=e.lastSuspendedTime,n===r&&(e.nextKnownPendingLevel=ll(i)),jr&&(i=e.lastPingedTime,i===0||i>=n)){e.lastPingedTime=n,mt(e,n);break}if(i=sr(e),i!==0&&i!==n)break;if(r!==0&&r!==n){e.lastPingedTime=r;break}if(_n!==1073741823?r=10*(1073741821-_n)-me():Me===1073741823?r=0:(r=10*(1073741821-Me)-5e3,i=me(),n=10*(1073741821-n)-i,r=i-r,0>r&&(r=0),r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Qf(r/1960))-r,n<r&&(r=n)),10<r){e.timeoutHandle=oi(at.bind(null,e),r);break}at(e);break;case eo:if(Me!==1073741823&&Rr!==null){l=Me;var o=Rr;if(r=o.busyMinDurationMs|0,0>=r?r=0:(i=o.busyDelayMs|0,l=me()-(10*(1073741821-l)-(o.timeoutMs|0||5e3)),r=l<=i?0:i+r-l),10<r){ht(e,n),e.timeoutHandle=oi(at.bind(null,e),r);break}}at(e);break;default:throw Error(m(329))}if(fe(e),e.callbackNode===t)return Ta.bind(null,e)}}return null}function il(e){var t=e.lastExpiredTime;if(t=t!==0?t:1073741823,(k&(xe|Pe))!==Q)throw Error(m(327));if(Gt(),e===ce&&t===ie||mt(e,t),S!==null){var n=k;k|=xe;var r=Na();do try{Xf();break}catch(i){Sa(e,i)}while(!0);if(Ul(),k=n,Ir.current=r,H===Lr)throw n=Yr,mt(e,t),ht(e,t),fe(e),n;if(S!==null)throw Error(m(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,ce=null,at(e),fe(e)}return null}function Kf(){if(pt!==null){var e=pt;pt=null,e.forEach(function(t,n){sl(n,t),fe(n)}),Ie()}}function ka(e,t){var n=k;k|=1;try{return e(t)}finally{k=n,k===Q&&Ie()}}function _a(e,t){var n=k;k&=-2,k|=bl;try{return e(t)}finally{k=n,k===Q&&Ie()}}function mt(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Hc(n)),S!==null)for(n=S.return;n!==null;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,r!=null&&wr();break;case 3:Kt(),F(ne),F(J);break;case 5:Ql(r);break;case 4:Kt();break;case 13:F(z);break;case 19:F(z);break;case 10:Vl(r)}n=n.return}ce=e,S=kt(e.current,null),ie=t,H=yt,Yr=null,_n=Me=1073741823,Rr=null,Sn=0,jr=!1}function Sa(e,t){do{try{if(Ul(),or.current=Pr,_r)for(var n=W.memoizedState;n!==null;){var r=n.queue;r!==null&&(r.pending=null),n=n.next}if(Qe=0,Z=G=W=null,_r=!1,S===null||S.return===null)return H=Lr,Yr=t,S=null;e:{var i=e,l=S.return,o=S,u=t;if(t=ie,o.effectTag|=2048,o.firstEffect=o.lastEffect=null,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u;if(!(o.mode&2)){var f=o.alternate;f?(o.updateQueue=f.updateQueue,o.memoizedState=f.memoizedState,o.expirationTime=f.expirationTime):(o.updateQueue=null,o.memoizedState=null)}var v=(z.current&1)!==0,w=l;do{var N;if(N=w.tag===13){var O=w.memoizedState;if(O!==null)N=O.dehydrated!==null;else{var te=w.memoizedProps;N=te.fallback===void 0?!1:te.unstable_avoidThisFallback!==!0?!0:!v}}if(N){var V=w.updateQueue;if(V===null){var a=new Set;a.add(c),w.updateQueue=a}else V.add(c);if(!(w.mode&2)){if(w.effectTag|=64,o.effectTag&=-2981,o.tag===1)if(o.alternate===null)o.tag=17;else{var s=Je(1073741823,null);s.tag=2,qe(o,s)}o.expirationTime=1073741823;break e}u=void 0,o=t;var d=i.pingCache;if(d===null?(d=i.pingCache=new Hf,u=new Set,d.set(c,u)):(u=d.get(c),u===void 0&&(u=new Set,d.set(c,u))),!u.has(o)){u.add(o);var p=qf.bind(null,i,c,o);c.then(p,p)}w.effectTag|=4096,w.expirationTime=t;break e}w=w.return}while(w!==null);u=Error((ze(o.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`+kl(o))}H!==eo&&(H=Ea),u=ql(u,o),w=l;do{switch(w.tag){case 3:c=u,w.effectTag|=4096,w.expirationTime=t;var h=ya(w,c,t);Ko(w,h);break e;case 1:c=u;var x=w.type,C=w.stateNode;if(!(w.effectTag&64)&&(typeof x.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(be===null||!be.has(C)))){w.effectTag|=4096,w.expirationTime=t;var P=wa(w,c,t);Ko(w,P);break e}}w=w.return}while(w!==null)}S=La(S)}catch(I){t=I;continue}break}while(!0)}function Na(){var e=Ir.current;return Ir.current=Pr,e===null?Pr:e}function Pa(e,t){e<Me&&2<e&&(Me=e),t!==null&&e<_n&&2<e&&(_n=e,Rr=t)}function Zr(e){e>Sn&&(Sn=e)}function Xf(){for(;S!==null;)S=Ia(S)}function Yf(){for(;S!==null&&!Rf();)S=Ia(S)}function Ia(e){var t=Oa(e.alternate,e,ie);return e.memoizedProps=e.pendingProps,t===null&&(t=La(e)),xa.current=null,t}function La(e){S=e;do{var t=S.alternate;if(e=S.return,S.effectTag&2048){if(t=Bf(S),t!==null)return t.effectTag&=2047,t;e!==null&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}else{if(t=zf(t,S,ie),ie===1||S.childExpirationTime!==1){for(var n=0,r=S.child;r!==null;){var i=r.expirationTime,l=r.childExpirationTime;i>n&&(n=i),l>n&&(n=l),r=r.sibling}S.childExpirationTime=n}if(t!==null)return t;e!==null&&!(e.effectTag&2048)&&(e.firstEffect===null&&(e.firstEffect=S.firstEffect),S.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=S.firstEffect),e.lastEffect=S.lastEffect),1<S.effectTag&&(e.lastEffect!==null?e.lastEffect.nextEffect=S:e.firstEffect=S,e.lastEffect=S))}if(t=S.sibling,t!==null)return t;S=e}while(S!==null);return H===yt&&(H=eo),null}function ll(e){var t=e.expirationTime;return e=e.childExpirationTime,t>e?t:e}function at(e){var t=Qr();return rt(99,Gf.bind(null,e,t)),null}function Gf(e,t){do Gt();while(hn!==null);if((k&(xe|Pe))!==Q)throw Error(m(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(n===null)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(m(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=ll(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===ce&&(S=ce=null,ie=0),1<n.effectTag?n.lastEffect!==null?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,i!==null){var l=k;k|=Pe,xa.current=null,ii=bn;var o=Lo();if(Di(o)){if("selectionStart"in o)var u={start:o.selectionStart,end:o.selectionEnd};else e:{u=(u=o.ownerDocument)&&u.defaultView||window;var c=u.getSelection&&u.getSelection();if(c&&c.rangeCount!==0){u=c.anchorNode;var f=c.anchorOffset,v=c.focusNode;c=c.focusOffset;try{u.nodeType,v.nodeType}catch{u=null;break e}var w=0,N=-1,O=-1,te=0,V=0,a=o,s=null;t:for(;;){for(var d;a!==u||f!==0&&a.nodeType!==3||(N=w+f),a!==v||c!==0&&a.nodeType!==3||(O=w+c),a.nodeType===3&&(w+=a.nodeValue.length),(d=a.firstChild)!==null;)s=a,a=d;for(;;){if(a===o)break t;if(s===u&&++te===f&&(N=w),s===v&&++V===c&&(O=w),(d=a.nextSibling)!==null)break;a=s,s=a.parentNode}a=d}u=N===-1||O===-1?null:{start:N,end:O}}else u=null}u=u||{start:0,end:0}}else u=null;li={activeElementDetached:null,focusedElem:o,selectionRange:u},bn=!1,E=i;do try{Zf()}catch(_){if(E===null)throw Error(m(330));xt(E,_),E=E.nextEffect}while(E!==null);E=i;do try{for(o=e,u=t;E!==null;){var p=E.effectTag;if(p&16&&vn(E.stateNode,""),p&128){var h=E.alternate;if(h!==null){var x=h.ref;x!==null&&(typeof x=="function"?x(null):x.current=null)}}switch(p&1038){case 2:fu(E),E.effectTag&=-3;break;case 6:fu(E),E.effectTag&=-3,di(E.alternate,E);break;case 1024:E.effectTag&=-1025;break;case 1028:E.effectTag&=-1025,di(E.alternate,E);break;case 4:di(E.alternate,E);break;case 8:f=E,va(o,f,u),ga(f)}E=E.nextEffect}}catch(_){if(E===null)throw Error(m(330));xt(E,_),E=E.nextEffect}while(E!==null);if(x=li,h=Lo(),p=x.focusedElem,u=x.selectionRange,h!==p&&p&&p.ownerDocument&&Ss(p.ownerDocument.documentElement,p)){for(u!==null&&Di(p)&&(h=u.start,x=u.end,x===void 0&&(x=h),"selectionStart"in p?(p.selectionStart=h,p.selectionEnd=Math.min(x,p.value.length)):(x=(h=p.ownerDocument||document)&&h.defaultView||window,x.getSelection&&(x=x.getSelection(),f=p.textContent.length,o=Math.min(u.start,f),u=u.end===void 0?o:Math.min(u.end,f),!x.extend&&o>u&&(f=u,u=o,o=f),f=Io(p,o),v=Io(p,u),f&&v&&(x.rangeCount!==1||x.anchorNode!==f.node||x.anchorOffset!==f.offset||x.focusNode!==v.node||x.focusOffset!==v.offset)&&(h=h.createRange(),h.setStart(f.node,f.offset),x.removeAllRanges(),o>u?(x.addRange(h),x.extend(v.node,v.offset)):(h.setEnd(v.node,v.offset),x.addRange(h)))))),h=[],x=p;x=x.parentNode;)x.nodeType===1&&h.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<h.length;p++)x=h[p],x.element.scrollLeft=x.left,x.element.scrollTop=x.top}bn=!!ii,li=ii=null,e.current=n,E=i;do try{for(p=e;E!==null;){var C=E.effectTag;if(C&36&&Wf(p,E.alternate,E),C&128){h=void 0;var P=E.ref;if(P!==null){var I=E.stateNode;switch(E.tag){case 5:h=I;break;default:h=I}typeof P=="function"?P(h):P.current=h}}E=E.nextEffect}}catch(_){if(E===null)throw Error(m(330));xt(E,_),E=E.nextEffect}while(E!==null);E=null,jf(),k=l}else e.current=n;if(Ar)Ar=!1,hn=e,sn=t;else for(E=i;E!==null;)t=E.nextEffect,E.nextEffect=null,E=t;if(t=e.firstPendingTime,t===0&&(be=null),t===1073741823?e===rl?gn++:(gn=0,rl=e):gn=0,typeof ol=="function"&&ol(n.stateNode,r),fe(e),Mr)throw Mr=!1,e=nl,nl=null,e;return(k&bl)!==Q||Ie(),null}function Zf(){for(;E!==null;){var e=E.effectTag;e&256&&$f(E.alternate,E),!(e&512)||Ar||(Ar=!0,Zs(97,function(){return Gt(),null})),E=E.nextEffect}}function Gt(){if(sn!==90){var e=97<sn?97:sn;return sn=90,rt(e,Jf)}}function Jf(){if(hn===null)return!1;var e=hn;if(hn=null,(k&(xe|Pe))!==Q)throw Error(m(331));var t=k;for(k|=Pe,e=e.current.firstEffect;e!==null;){try{var n=e;if(n.effectTag&512)switch(n.tag){case 0:case 11:case 15:case 22:ma(5,n),ha(5,n)}}catch(r){if(e===null)throw Error(m(330));xt(e,r)}n=e.nextEffect,e.nextEffect=null,e=n}return k=t,Ie(),!0}function pu(e,t,n){t=ql(n,t),t=ya(e,t,1073741823),qe(e,t),e=Gr(e,1073741823),e!==null&&fe(e)}function xt(e,t){if(e.tag===3)pu(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){pu(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(be===null||!be.has(r))){e=ql(t,e),e=wa(n,e,1073741823),qe(n,e),n=Gr(n,1073741823),n!==null&&fe(n);break}}n=n.return}}function qf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),ce===e&&ie===n?H===Xr||H===Or&&Me===1073741823&&me()-to<Ca?mt(e,ie):jr=!0:Ra(e,n)&&(t=e.lastPingedTime,t!==0&&t<n||(e.lastPingedTime=n,fe(e)))}function bf(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=Se(),t=wt(t,e,null)),e=Gr(e,t),e!==null&&fe(e)}var Oa;Oa=function(e,t,n){var r=t.expirationTime;if(e!==null){var i=t.pendingProps;if(e.memoizedProps!==i||ne.current)Te=!0;else{if(r<n){switch(Te=!1,t.tag){case 3:iu(t),ai();break;case 5:if(Zo(t),t.mode&4&&n!==1&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:re(t.type)&&rr(t);break;case 4:Ki(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,i=t.type._context,U(xr,i._currentValue),i._currentValue=r;break;case 13:if(t.memoizedState!==null)return r=t.child.childExpirationTime,r!==0&&r>=n?lu(e,t,n):(U(z,z.current&1),t=De(e,t,n),t!==null?t.sibling:null);U(z,z.current&1);break;case 19:if(r=t.childExpirationTime>=n,e.effectTag&64){if(r)return uu(e,t,n);t.effectTag|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null),U(z,z.current),!r)return null}return De(e,t,n)}Te=!1}}else Te=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=Ht(t,J.current),Bt(t,n),i=Yl(null,t,r,e,i,n),t.effectTag|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,re(r)){var l=!0;rr(t)}else l=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,$l(t);var o=r.getDerivedStateFromProps;typeof o=="function"&&Tr(t,r,o,e),i.updater=Kr,t.stateNode=i,i._reactInternalFiber=t,Qi(t,r,e,n),t=Ji(null,t,r,!0,l,n)}else t.tag=0,ae(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,e!==null&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,Nc(i),i._status!==1)throw i._result;switch(i=i._result,t.type=i,l=t.tag=nd(i),e=ye(i,e),l){case 0:t=Zi(null,t,i,e,n);break e;case 1:t=ru(null,t,i,e,n);break e;case 11:t=tu(null,t,i,e,n);break e;case 14:t=nu(null,t,i,ye(i.type,e),r,n);break e}throw Error(m(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ye(r,i),Zi(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ye(r,i),ru(e,t,r,i,n);case 3:if(iu(t),r=t.updateQueue,e===null||r===null)throw Error(m(282));if(r=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,Wl(e,t),Cn(t,r,null,n),r=t.memoizedState.element,r===i)ai(),t=De(e,t,n);else{if((i=t.stateNode.hydrate)&&(Ke=zt(t.stateNode.containerInfo.firstChild),Fe=t,i=vt=!0),i)for(n=Hl(t,null,r,n),t.child=n;n;)n.effectTag=n.effectTag&-3|1024,n=n.sibling;else ae(e,t,r,n),ai();t=t.child}return t;case 5:return Zo(t),e===null&&Gi(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,zi(r,i)?o=null:l!==null&&zi(r,l)&&(t.effectTag|=16),ca(e,t),t.mode&4&&n!==1&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(ae(e,t,o,n),t=t.child),t;case 6:return e===null&&Gi(t),null;case 13:return lu(e,t,n);case 4:return Ki(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Qt(t,null,r,n):ae(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ye(r,i),tu(e,t,r,i,n);case 7:return ae(e,t,t.pendingProps,n),t.child;case 8:return ae(e,t,t.pendingProps.children,n),t.child;case 12:return ae(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value;var u=t.type._context;if(U(xr,u._currentValue),u._currentValue=l,o!==null)if(u=o.value,l=Ct(u,l)?0:(typeof r._calculateChangedBits=="function"?r._calculateChangedBits(u,l):1073741823)|0,l===0){if(o.children===i.children&&!ne.current){t=De(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var c=u.dependencies;if(c!==null){o=u.child;for(var f=c.firstContext;f!==null;){if(f.context===r&&f.observedBits&l){u.tag===1&&(f=Je(n,null),f.tag=2,qe(u,f)),u.expirationTime<n&&(u.expirationTime=n),f=u.alternate,f!==null&&f.expirationTime<n&&(f.expirationTime=n),qs(u.return,n),c.expirationTime<n&&(c.expirationTime=n);break}f=f.next}}else o=u.tag===10&&u.type===t.type?null:u.child;if(o!==null)o.return=u;else for(o=u;o!==null;){if(o===t){o=null;break}if(u=o.sibling,u!==null){u.return=o.return,o=u;break}o=o.return}u=o}ae(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,l=t.pendingProps,r=l.children,Bt(t,n),i=ge(i,l.unstable_observedBits),r=r(i),t.effectTag|=1,ae(e,t,r,n),t.child;case 14:return i=t.type,l=ye(i,t.pendingProps),l=ye(i.type,l),nu(e,t,i,l,r,n);case 15:return aa(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ye(r,i),e!==null&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,re(r)?(e=!0,rr(t)):e=!1,Bt(t,n),ea(t,r,i),Qi(t,r,i,n),Ji(null,t,r,!0,e,n);case 19:return uu(e,t,n)}throw Error(m(156,t.tag))};var ol=null,ul=null;function ed(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);ol=function(r){try{t.onCommitFiberRoot(n,r,void 0,(r.current.effectTag&64)===64)}catch{}},ul=function(r){try{t.onCommitFiberUnmount(n,r)}catch{}}}catch{}return!0}function td(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function ke(e,t,n,r){return new td(e,t,n,r)}function no(e){return e=e.prototype,!(!e||!e.isReactComponent)}function nd(e){if(typeof e=="function")return no(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Cl)return 11;if(e===Tl)return 14}return 2}function kt(e,t){var n=e.alternate;return n===null?(n=ke(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ar(e,t,n,r,i,l){var o=2;if(r=e,typeof e=="function")no(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ct:return Xe(n.children,i,l,t);case Sc:o=8,i|=7;break;case Zu:o=8,i|=1;break;case Zn:return e=ke(12,n,t,i|8),e.elementType=Zn,e.type=Zn,e.expirationTime=l,e;case Jn:return e=ke(13,n,t,i),e.type=Jn,e.elementType=Jn,e.expirationTime=l,e;case Ti:return e=ke(19,n,t,i),e.elementType=Ti,e.expirationTime=l,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ju:o=10;break e;case qu:o=9;break e;case Cl:o=11;break e;case Tl:o=14;break e;case bu:o=16,r=null;break e;case es:o=22;break e}throw Error(m(130,e==null?e:typeof e,""))}return t=ke(o,n,t,i),t.elementType=e,t.type=r,t.expirationTime=l,t}function Xe(e,t,n,r){return e=ke(7,e,r,t),e.expirationTime=n,e}function pi(e,t,n){return e=ke(6,e,null,t),e.expirationTime=n,e}function mi(e,t,n){return t=ke(4,e.children!==null?e.children:[],e.key,t),t.expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function rd(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Ra(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,n!==0&&n>=t&&e<=t}function ht(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||n===0)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function ja(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;n!==0&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function sl(e,t){var n=e.lastExpiredTime;(n===0||n>t)&&(e.lastExpiredTime=t)}function Fr(e,t,n,r){var i=t.current,l=Se(),o=mn.suspense;l=wt(l,i,o);e:if(n){n=n._reactInternalFiber;t:{if(_t(n)!==n||n.tag!==1)throw Error(m(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(re(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(u!==null);throw Error(m(171))}if(n.tag===1){var c=n.type;if(re(c)){n=$s(n,c,u);break e}}n=u}else n=nt;return t.context===null?t.context=n:t.pendingContext=n,t=Je(l,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),qe(i,t),et(i,l),l}function hi(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function mu(e,t){e=e.memoizedState,e!==null&&e.dehydrated!==null&&e.retryTime<t&&(e.retryTime=t)}function ro(e,t){mu(e,t),(e=e.alternate)&&mu(e,t)}function io(e,t,n){n=n!=null&&n.hydrate===!0;var r=new rd(e,t,n),i=ke(3,null,null,t===2?7:t===1?3:0);r.current=i,i.stateNode=r,$l(i),e[Ln]=r.current,n&&t!==0&&jc(e,e.nodeType===9?e:e.ownerDocument),this._internalRoot=r}io.prototype.render=function(e){Fr(e,this._internalRoot,null,null)};io.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Fr(null,e,null,function(){t[Ln]=null})};function Fn(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function id(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new io(e,0,t?{hydrate:!0}:void 0)}function Jr(e,t,n,r,i){var l=n._reactRootContainer;if(l){var o=l._internalRoot;if(typeof i=="function"){var u=i;i=function(){var f=hi(o);u.call(f)}}Fr(t,o,e,i)}else{if(l=n._reactRootContainer=id(n,r),o=l._internalRoot,typeof i=="function"){var c=i;i=function(){var f=hi(o);c.call(f)}}_a(function(){Fr(t,o,e,i)})}return hi(o)}function ld(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Pt,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}ws=function(e){if(e.tag===13){var t=lr(Se(),150,100);et(e,t),ro(e,t)}};Pl=function(e){e.tag===13&&(et(e,3),ro(e,3))};xs=function(e){if(e.tag===13){var t=Se();t=wt(t,e,null),et(e,t),ro(e,t)}};Ci=function(e,t,n){switch(t){case"input":if(_i(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+\'][type="radio"]\'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Al(r);if(!i)throw Error(m(90));ns(r),_i(r,i)}}}break;case"textarea":is(e,n);break;case"select":t=n.value,t!=null&&Dt(e,!!n.multiple,t,!1)}};gl=ka;Xu=function(e,t,n,r,i){var l=k;k|=4;try{return rt(98,e.bind(null,t,n,r,i))}finally{k=l,k===Q&&Ie()}};vl=function(){(k&(1|xe|Pe))===Q&&(Kf(),Gt())};Yu=function(e,t){var n=k;k|=2;try{return e(t)}finally{k=n,k===Q&&Ie()}};function Ma(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Fn(t))throw Error(m(200));return ld(e,t,null,n)}var od={Events:[Rn,Et,Al,Hu,Ei,Wt,function(e){Sl(e,Kc)},Qu,Ku,$r,Vr,Gt,{current:!1}]};(function(e){var t=e.findFiberByHostInstance;return ed(b({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:we.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=ms(n),n===null?null:n.stateNode},findFiberByHostInstance:function(n){return t?t(n):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))})({findFiberByHostInstance:On,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"});ve.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=od;ve.createPortal=Ma;ve.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternalFiber;if(t===void 0)throw typeof e.render=="function"?Error(m(188)):Error(m(268,Object.keys(e)));return e=ms(t),e=e===null?null:e.stateNode,e};ve.flushSync=function(e,t){if((k&(xe|Pe))!==Q)throw Error(m(187));var n=k;k|=1;try{return rt(99,e.bind(null,t))}finally{k=n,Ie()}};ve.hydrate=function(e,t,n){if(!Fn(t))throw Error(m(200));return Jr(null,e,t,!0,n)};ve.render=function(e,t,n){if(!Fn(t))throw Error(m(200));return Jr(null,e,t,!1,n)};ve.unmountComponentAtNode=function(e){if(!Fn(e))throw Error(m(40));return e._reactRootContainer?(_a(function(){Jr(null,null,e,!1,function(){e._reactRootContainer=null,e[Ln]=null})}),!0):!1};ve.unstable_batchedUpdates=ka;ve.unstable_createPortal=function(e,t){return Ma(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};ve.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Fn(n))throw Error(m(200));if(e==null||e._reactInternalFiber===void 0)throw Error(m(38));return Jr(e,t,n,!1,r)};ve.version="16.14.0";function Aa(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Aa)}catch(e){console.error(e)}}Aa(),zu.exports=ve;var ud=zu.exports;const sd=Ka(ud),ad={launching:"正在启动 IBM Aspera Connect...",restartBanner:"IBM Aspera Connect 安装完成后,请重新启动浏览器。",restartFooter:"Restart the browser once the upgrade is complete.",retryButton:"重试",retry:"无法连接 Connect",running:"IBM Aspera Connect 正在运行!",alreadyInstalled:"已安装?",troubleshoot:"疑难解答",refreshButton:"刷新",bannerTitle:"要启用 Aspera 上传和下载,您需要安装或升级至 IBM Aspera Connect {3.9.1}。",tryRestarting:"或者,请尝试重新启动浏览器。",pleaseDownload:"请稍等。正在下载 Connect 应用安装程序...",runInstaller:"请运行 Connect 应用安装程序",stepOne:"第 1 步",stepTwo:"第 2 步",stepThree:"第 3 步",how:"如何?",new:"新的",installAddon:"安装附加组件",installExtension:"安装扩展",enableExtension:"启用扩展",required:"必要步骤",downloadConnect:"下载 Connect",downloadApp:"下载应用",installConnect:"安装 Connect",upgradeConnect:"升级 Connect",notSupported:"IBM Aspera Connect 不支持此浏览器。要获取受支持浏览器列表,请<a>单击此处</a>。",previousVersion:"尝试返回至先前版本。"},cd={launching:"Launching IBM Aspera Connect...",restartBanner:"Once IBM Aspera Connect is installed, please restart the browser.",restartFooter:"Restart the browser once the upgrade is complete.",retryButton:"Retry",retry:"Cannot reach Connect",running:"IBM Aspera Connect is running!",alreadyInstalled:"Already installed?",troubleshoot:"Troubleshoot",refreshButton:"Refresh",bannerTitle:"To enable Aspera uploads and downloads, you need to install or upgrade to IBM Aspera Connect {3.9.1}.",tryRestarting:"Or, try restarting the browser.",pleaseDownload:"Please wait. Downloading the Connect app installer...",runInstaller:"Please run the Connect app installer",stepOne:"Step 1",stepTwo:"Step 2",stepThree:"Step 3",how:"How?",new:"New",installAddon:"Install add-on",installExtension:"Install Extension",enableExtension:"Enable Extension",required:"Required Steps",downloadConnect:"Download Connect",downloadApp:"Download the App",installConnect:"Install Connect",upgradeConnect:"Upgrade Connect",notSupported:"This browser is not supported by IBM Aspera Connect. For a list of supported browsers, <a>click here</a>.",previousVersion:"Try returning to previous version."},fd={launching:"Lancement d\'IBM Aspera Connect...",restartBanner:"Une fois IBM Aspera Connect installé, redémarrez le navigateur.",restartFooter:"Restart the browser once the upgrade is complete.",retryButton:"Nouvelle tentative",retry:"Impossible d\'atteindre Connect",running:"IBM Aspera Connect est en cours d\'exécution !",alreadyInstalled:"Déjà installé ?",troubleshoot:"Traitement des incidents",refreshButton:"Actualiser",bannerTitle:"Pour activer les envois et réceptions par téléchargement d\'Aspera, vous devez installer ou mettre à niveau IBM Aspera Connect {3.9.1}.",tryRestarting:"Vous pouvez aussi essayer de redémarrer le navigateur.",pleaseDownload:"Veuillez patienter. Téléchargement du programme d\'installation de l\'application Connect...",runInstaller:"Veuillez exécuter le programme d\'installation de l\'application Connect.",stepOne:"Etape 1",stepTwo:"Etape 2",stepThree:"Etape 3",how:"Comment ?",new:"Nouveau",installAddon:"Installer le module complémentaire",installExtension:"Installer l\'extension",enableExtension:"Activer l\'extension",required:"Etapes obligatoires",downloadConnect:"Télécharger Connect",downloadApp:"Télécharger l\'application",installConnect:"Installer Connect",upgradeConnect:"Mettre à niveau Connect",notSupported:"Ce navigateur n\'est pas pris en charge par IBM Aspera Connect. <a>Cliquez ici</a> pour voir la liste des navigateurs pris en charge.",previousVersion:"Essayez de revenir à la version précédente."},dd={launching:"IBM Aspera Connect を起動しています...",restartBanner:"IBM Aspera Connect がインストールされたら、ブラウザーを再始動してください。",restartFooter:"Restart the browser once the upgrade is complete.",retryButton:"リトライ",retry:"Connect に到達できません",running:"IBM Aspera Connect は実行中です!",alreadyInstalled:"インストール済みですか?",troubleshoot:"トラブルシューティング",refreshButton:"更新",bannerTitle:"Aspera のアップロードとダウンロードを有効にするには、IBM Aspera Connect {3.9.1} をインストールするか、このバージョンにアップグレードする必要があります。",tryRestarting:"または、ブラウザーを再始動してください。",pleaseDownload:"お待ちください。 Connect アプリケーション・インストーラーをダウンロードしています...",runInstaller:"Connect アプリケーション・インストーラーを実行してください。",stepOne:"ステップ 1",stepTwo:"ステップ 2",stepThree:"ステップ 3",how:"方法",new:"新規",installAddon:"アドオンのインストール",installExtension:"拡張機能のインストール",enableExtension:"拡張機能の有効化",required:"必須ステップ",downloadConnect:"Connect のダウンロード",downloadApp:"アプリケーションのダウンロード",installConnect:"Connect のインストール",upgradeConnect:"Connect のアップグレード",notSupported:"このブラウザーは、IBM Aspera Connect でサポートされていません。 サポートされるブラウザーのリストについては、<a>ここをクリック</a>してください。",previousVersion:"前のバージョンに戻す"},pd={launching:"IBM Aspera Connect 시작 중...",restartBanner:"IBM Aspera Connect가 설치되면 브라우저를 다시 시작하십시오.",restartFooter:"Restart the browser once the upgrade is complete.",retryButton:"재시도",retry:"Connect에 연결할 수 없음",running:"IBM Aspera Connect가 실행 중입니다!",alreadyInstalled:"이미 설치하셨습니까?",troubleshoot:"문제점 해결",refreshButton:"새로 고치기",bannerTitle:"Aspera 업로드 및 다운로드를 사용하려면 IBM Aspera Connect {3.9.1}을 설치하거나 해당 버전으로 업그레이드해야 합니다.",tryRestarting:"브라우저를 다시 시작해 보십시오.",pleaseDownload:"잠시 기다려 주십시오. Connect 앱 설치 프로그램을 다운로드하는 중입니다...",runInstaller:"Connect 앱 설치 프로그램을 실행하십시오.",stepOne:"1단계",stepTwo:"2단계",stepThree:"3단계",how:"방법",new:"신규",installAddon:"추가 기능 설치",installExtension:"확장 기능 설치",enableExtension:"확장 기능 사용",required:"필수 단계",downloadConnect:"Connect 다운로드",downloadApp:"앱 다운로드",installConnect:"Connect 설치",upgradeConnect:"Connect 업그레이드",notSupported:"이 브라우저는 IBM Aspera Connect에서 지원하지 않습니다. 지원되는 브라우저 목록은 <a>여기를 클릭</a>하십시오.",previousVersion:"이전 버전으로 돌아가십시오."},md={launching:"Iniciando IBM Aspera Connect...",restartBanner:"Una vez que IBM Aspera Connect esté instalada, reinicie el navegador.",restartFooter:"Restart the browser once the upgrade is complete.",retryButton:"Reintentar",retry:"No se puede acceder a Connect",running:"IBM Aspera Connect se está ejecutando",alreadyInstalled:"¿Ya está instalado?",troubleshoot:"Resolver problemas",refreshButton:"Renovar",bannerTitle:"Para habilitar las cargas y descargas de Aspera, debe instalar o actualizar IBM Aspera Connect {3.9.1}.",tryRestarting:"O bien, reinicie el navegador.",pleaseDownload:"Espere. Descargando el instalador de la aplicación Connect...",runInstaller:"Ejecute el instalador de la aplicación Connect",stepOne:"Paso 1",stepTwo:"Paso 2",stepThree:"Paso 3",how:"¿Cómo?",new:"Nuevo",installAddon:"Instalar el complemento",installExtension:"Instalar la extensión",enableExtension:"Habilitar la extensión",required:"Pasos necesarios",downloadConnect:"Descargar Connect",downloadApp:"Descargar la aplicación",installConnect:"Instalar Connect",upgradeConnect:"Actualizar Connect",notSupported:"Este navegador no tiene el soporte de IBM Aspera Connect. Para ver una lista de los navegadores soportados, <a>pulse aquí</a>.",previousVersion:"Intente volver a la versión anterior."},hd={launching:"IBM Aspera Connect wordt gestart ...",restartBanner:"Start de browser opnieuw zodra IBM Aspera Connect geïnstalleerd is.",restartFooter:"Restart the browser once the upgrade is complete.",retryButton:"Opnieuw proberen",retry:"Connect is niet bereikbaar",running:"IBM Aspera Connect is actief!",alreadyInstalled:"Al geïnstalleerd?",troubleshoot:"Problemen oplossen",refreshButton:"Vernieuwen",bannerTitle:"Om uploads en downloads van Aspera in te schakelen, moet u IBM Aspera Connect {3.9.1} installeren of upgraden.",tryRestarting:"Of probeer de browser opnieuw te starten.",pleaseDownload:"Even geduld a.u.b. Het installatieprogramma voor de Connect-app wordt gedownload ...",runInstaller:"Voer het programma voor installatie van de app Connect uit",stepOne:"Stap 1",stepTwo:"Stap 2",stepThree:"Stap 3",how:"Hoe?",new:"Nieuw",installAddon:"Addon installeren",installExtension:"Extensie installeren",enableExtension:"Extensie inschakelen",required:"Vereiste stappen",downloadConnect:"Connect downloaden",downloadApp:"App downloaden",installConnect:"Connect installeren",upgradeConnect:"Connect upgraden",notSupported:"Deze browser wordt niet ondersteund door IBM Aspera Connect. Voor een lijst van ondersteunde browsers <a>klikt u hier</a>.",previousVersion:"Probeer terug te keren naar de vorige versie."},Ve={zhCN:ad,enUS:cd,frFR:fd,koKR:pd,jaJP:dd,esES:md,nlNL:hd};class gd{constructor(){this.availableLanguages={"en-us":{name:"English (US)",dictionary:Ve.enUS,code:"en"},"es-es":{name:"Español (España)",dictionary:Ve.esES,code:"es"},"fr-fr":{name:"Français (France)",dictionary:Ve.frFR,code:"fr"},"ja-jp":{name:"日本語 (日本)",dictionary:Ve.jaJP,code:"ja"},"ko-kr":{name:"한국어 (대한민국)",dictionary:Ve.koKR,code:"ko"},"nl-nl":{name:"Dutch (Netherlands)",dictionary:Ve.nlNL,code:"nl"},"zh-cn":{name:"简体中文",dictionary:Ve.zhCN,code:"zh"}},this.languageToUse=this.findClosestLanguage(this.getBrowserLanguage()||this.defaultLanguage()),this.currentLanguage=this.availableLanguages[this.languageToUse],this.dictionary=this.currentLanguage.dictionary}defaultLanguage(){return console.log("Defaulting to English (US)."),"en-us"}findClosestLanguage(t){if(this.availableLanguages[t])return t;if(t){const n=t.split("-")[0];return Object.keys(this.availableLanguages).filter(i=>i.indexOf(`${n}-`)>-1)[0]||this.defaultLanguage()}else return this.defaultLanguage()}get(t){if(!this.currentLanguage)return console.log("Dictionary not loaded."),t;let n=this.dictionary[t]||Ve.enUS[t];return n||(console.log(`Could not find ${t} in any language.`),"")}getBrowserLanguage(){if(navigator&&typeof navigator.language=="string")return navigator.language.toLowerCase();console.log("Could not detect browser language. Defaulting to English (US).")}getCurrentLanguage(){return this.currentLanguage}getCurrentLanguageCode(){return this.currentLanguage.code}}const A=new gd;let M=typeof navigator<"u"?navigator.userAgent:"",vd=function(e,t){var n=e.match(/(?:Version)[\\/](\\d+(\\.\\d+)?)/i),r=parseInt(n&&n.length>1&&n[1]||"0");return r>=t},hu=function(e,t){var n=e.match(/(?:Edge)[\\/](\\d+(\\.\\d+)?)/i),r=parseInt(n&&n.length>1&&n[1]||"0");return r>=t},gu=function(e,t){var n=e.match(/(?:Firefox)[\\/](\\d+(\\.\\d+)?)/i),r=parseInt(n&&n.length>1&&n[1]||"0");return r>=t};const Ne={CLICKED_DOWNLOAD_APP:"clicked_download_app",CLICKED_ENABLE_EXTENSION:"clicked_enable_extension",CLICKED_INSTALL_ADDON:"clicked_install_addon",CLICKED_INSTALL_APP:"clicked_install_app",CLICKED_INSTALL_EXTENSION:"clicked_install_extension",CLICKED_TROUBLESHOOT:"clicked_troubleshoot",CONNECT_BAR_VISIBLE:"connect_bar_visible",CONTINUE:"continue",DOWNLOAD_CONNECT:"downloadconnect",DOWNLOAD_INDICATOR_VISIBLE:"download_indicator_visible",REFRESH:"refresh",REMOVE_IFRAME:"removeiframe",RESIZE:"100%",SAFARI_MITIGATE:"mitigate_with_tab"},j={OPERA:/opera|opr/i.test(M)&&!/edge/i.test(M),IE:/msie|trident/i.test(M)&&!/edge/i.test(M),CHROME:/chrome|crios|crmo/i.test(M)&&!/opera|opr/i.test(M)&&!/edge/i.test(M),FIREFOX:/firefox|iceweasel/i.test(M)&&!/edge/i.test(M)&&gu(M,50),FIREFOX_LEGACY:/firefox|iceweasel/i.test(M)&&!/edge/i.test(M)&&!gu(M,50),EDGE_CHROMIUM:/edg/i.test(M)&&!/edge/i.test(M),EDGE_WITH_EXTENSION:/edge/i.test(M)&&hu(M,14),EDGE_LEGACY:/edge/i.test(M)&&!hu(M,14),SAFARI:/safari/i.test(M)&&!/chrome|crios|crmo/i.test(M)&&!/edge/i.test(M),SAFARI_NO_NPAPI:/safari/i.test(M)&&!/chrome|crios|crmo/i.test(M)&&!/edge/i.test(M)&&vd(M,10)},lo=j.SAFARI||j.IE||j.EDGE_LEGACY||j.FIREFOX_LEGACY,Mt=!lo;let Dr={};function yd(){let e="";return window&&window.btoa&&Object.keys(Dr).map(function(t,n){let r=Dr[t];return e+=(n===0?"?":"&")+t+"="+window.btoa(r),console.log("getQueryString(): ",e),e}),e}function wd(){let e;return/Win/.test(navigator.platform)?e="windows":/Mac OS X 10[._]6/.test(navigator.userAgent)||/Mac/.test(navigator.platform)?e="macos":(/Linux x86_64/.test(navigator.platform)||/Linux/.test(navigator.platform))&&(e="linux"),e}function Fa(){return wd()==="windows"}function Da(){let e="https://test-connect.ibmaspera.com",t=yd();return t&&(e+=t),e}function za(e){let t=window.open(e,"_blank");t&&t.focus()}function xd(){lt(Ne.REMOVE_IFRAME)}function Ed(){lt(Ne.CONNECT_BAR_VISIBLE)}function Cd(){lt(Ne.CLICKED_DOWNLOAD_APP)}function lt(e){e&&kd(e)}function Td(){let e;j.CHROME||j.EDGE_WITH_EXTENSION?e=Ne.CLICKED_INSTALL_EXTENSION:j.FIREFOX?e=Ne.CLICKED_INSTALL_ADDON:(j.IE||j.SAFARI)&&(e=Ne.CLICKED_ENABLE_EXTENSION),lt(e)}function kd(e){window.parent.postMessage(e,"*")}function Ba(){lt(Ne.REFRESH)}function _d(){lt(Ne.RESIZE)}function Sd(){lt(Ne.SAFARI_MITIGATE)}function Nd(){lt(Ne.CLICKED_TROUBLESHOOT)}function Pd(e){Dr.id=e}function Id(e){Dr.ver=e}function Ua(){Nd();let e=Da();return za(e),!1}const Ld="_checkmark_1e6df_1",Od="_visible_1e6df_9 _checkmark_1e6df_1",Rd="_hidden_1e6df_14 _checkmark_1e6df_1",vu={checkmark:Ld,visible:Od,hidden:Rd},yu=({isVisible:e})=>y.jsx("span",{className:e?vu.visible:vu.hidden,children:y.jsxs("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[y.jsxs("defs",{children:[y.jsx("circle",{id:"path-1",cx:"10",cy:"10",r:"8.75"}),y.jsx("polygon",{id:"path-3",points:"8.75 13.4375 5.625 10.3125 6.61875 9.375 8.75 11.46875 13.38125 6.875 14.375 7.8625"})]}),y.jsx("g",{id:"Extension-Experience",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:y.jsx("g",{id:"Welcome-1-Copy-46",transform:"translate(-556.000000, -188.000000)",children:y.jsxs("g",{id:"icon/status/checkmark/filled/20",transform:"translate(555.000000, 187.000000)",children:[y.jsx("mask",{id:"mask-2",fill:"white",children:y.jsx("use",{xlinkHref:"#path-1"})}),y.jsx("use",{id:"icon-color",fill:"#24A148",fillRule:"evenodd",xlinkHref:"#path-1"}),y.jsx("mask",{id:"mask-4",fill:"white",children:y.jsx("use",{xlinkHref:"#path-3"})}),y.jsx("use",{id:"icon-color",fill:"#FFFFFF",fillRule:"evenodd",xlinkHref:"#path-3"})]})})})]})}),jd="_notActive_2texh_1",Md="_active_2texh_1",wu={notActive:jd,active:Md},Va=({children:e,disabled:t,href:n,...r})=>{const l={className:t?wu.notActive:wu.active};let o={...r};return y.jsx("div",{...l,children:y.jsx("a",{...o,href:n,children:e})})},xu=({href:e,isActive:t=!1,isOutdated:n=!1,setState:r})=>{let i=n?A.get("upgradeConnect"):A.get("installConnect");const l=()=>{if(Cd(),t&&r&&lo){let o=4e3;if(j.SAFARI){if(n)return;o=3e4}r("extension_install",o)}};return y.jsx(Va,{onClick:l,href:e,download:"",disabled:!t,children:i})},Ad="_pictograms_17gjx_1",Fd="_downloadBox_17gjx_10",Dd="_puzzle_17gjx_16",zd={pictograms:Ad,downloadBox:Fd,puzzle:Dd},$a=()=>y.jsx("svg",{className:"downloadBox",width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:y.jsx("g",{id:"Extension-Experience",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:y.jsx("g",{id:"Welcome-1-Copy-45",transform:"translate(-644.000000, -249.000000)",fill:"#152935",children:y.jsx("g",{id:"Fill-5",transform:"translate(644.000000, 249.000000)",children:y.jsx("path",{d:"M15.6251042,24.0943322 L15.6251042,0 L16.3751042,0 L16.3751042,24.0940625 L22.3635417,18.105625 L22.89375,18.6358333 L16,25.530625 L9.10520833,18.6358333 L9.63541667,18.105625 L15.6251042,24.0943322 Z M31.625,31.625 L0.375,31.625 C0.167708333,31.625 0,31.4572917 0,31.25 L0,9.375 C0,9.16770833 0.167708333,9 0.375,9 L8.70833333,9 L8.70833333,9.75 L0.75,9.75 L0.75,30.875 L31.25,30.875 L31.25,9.75 L23.2916667,9.75 L23.2916667,9 L31.625,9 C31.8322917,9 32,9.16770833 32,9.375 L32,31.25 C32,31.4572917 31.8322917,31.625 31.625,31.625 Z",id:"Fill-2"})})})})}),Wa=()=>y.jsx("svg",{className:"puzzle",width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:y.jsx("g",{id:"Extension-Experience",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:y.jsx("g",{id:"Welcome-1-Copy-45",transform:"translate(-644.000000, -181.000000)",fill:"#152935",children:y.jsx("path",{d:"M673.53125,204.981753 C672.963542,204.981753 672.407292,204.651222 672.080208,204.11841 C672.0125,204.006843 671.890625,203.939068 671.760417,203.939068 L671.458333,203.939068 C671.252083,203.939068 671.083333,204.10694 671.083333,204.314435 L671.083333,208.109808 L664.166667,208.109808 C663.960417,208.109808 663.791667,208.27768 663.791667,208.485174 L663.791667,208.724992 C663.791667,208.862626 663.866667,208.988791 663.986458,209.053438 C664.534375,209.354774 664.875,209.92408 664.875,210.539264 C664.875,211.481851 664.109375,212.249267 663.166667,212.249267 C662.225,212.249267 661.458333,211.481851 661.458333,210.539264 C661.458333,209.95536 661.772917,209.397524 662.280208,209.086804 C662.390625,209.017986 662.458333,208.897035 662.458333,208.766699 L662.458333,208.485174 C662.458333,208.27768 662.290625,208.109808 662.083333,208.109808 L658.291667,208.109808 L658.291667,205.011991 C658.753125,205.466601 659.364583,205.733529 659.992708,205.733529 C661.352083,205.733529 662.458333,204.629326 662.458333,203.27175 C662.458333,201.915217 661.352083,200.811013 659.992708,200.811013 C659.335417,200.811013 658.736458,201.048746 658.291667,201.465819 L658.291667,197.39205 L671.083333,197.39205 L671.083333,202.229065 C671.083333,202.437602 671.252083,202.605474 671.458333,202.605474 L671.708333,202.605474 C671.844792,202.605474 671.970833,202.529358 672.036458,202.409449 C672.328125,201.878723 672.886458,201.562789 673.53125,201.562789 C674.479167,201.562789 675.25,202.329163 675.25,203.27175 C675.25,204.21538 674.479167,204.981753 673.53125,204.981753 Z M649.625,203.939068 C648.269792,203.939068 647.166667,205.043271 647.166667,206.399804 C647.166667,207.05044 647.419792,207.657283 647.863542,208.109808 L644.75,208.109808 L644.75,197.39205 L648.541667,197.39205 C648.748958,197.39205 648.916667,197.224177 648.916667,197.01564 L648.916667,196.70492 C648.916667,196.574585 648.848958,196.45259 648.7375,196.384816 C648.223958,196.068882 647.916667,195.525644 647.916667,194.93027 C647.916667,193.987683 648.683333,193.22131 649.625,193.22131 C650.566667,193.22131 651.333333,193.987683 651.333333,194.93027 C651.333333,195.546497 650.992708,196.116846 650.44375,196.420267 C650.325,196.486999 650.25,196.613164 650.25,196.748713 L650.25,197.01564 C650.25,197.224177 650.41875,197.39205 650.625,197.39205 L657.541667,197.39205 L657.541667,202.229065 C657.541667,202.437602 657.710417,202.605474 657.916667,202.605474 L658.16875,202.605474 C658.305208,202.605474 658.43125,202.530401 658.496875,202.411535 C658.791667,201.878723 659.35,201.562789 659.992708,201.562789 C660.938542,201.562789 661.708333,202.329163 661.708333,203.27175 C661.708333,204.21538 660.938542,204.981753 659.992708,204.981753 C659.419792,204.981753 658.860417,204.651222 658.533333,204.11841 C658.465625,204.006843 658.34375,203.939068 658.213542,203.939068 L657.916667,203.939068 C657.710417,203.939068 657.541667,204.10694 657.541667,204.314435 L657.541667,208.109808 L651.38125,208.109808 C651.825,207.657283 652.083333,207.045226 652.083333,206.399804 C652.083333,205.043271 650.980208,203.939068 649.625,203.939068 Z M644.75,185.922515 L648.541667,185.922515 C648.748958,185.922515 648.916667,185.754643 648.916667,185.546106 L648.916667,185.234343 C648.916667,185.104008 648.848958,184.982014 648.738542,184.914239 C648.23125,184.602476 647.916667,184.045683 647.916667,183.460736 C647.916667,182.518149 648.683333,181.751776 649.625,181.751776 C650.567708,181.751776 651.333333,182.518149 651.333333,183.460736 C651.333333,184.07592 650.992708,184.645226 650.444792,184.946562 C650.325,185.013294 650.25,185.139459 650.25,185.276051 L650.25,185.546106 C650.25,185.754643 650.41875,185.922515 650.625,185.922515 L657.541667,185.922515 L657.541667,190.759531 C657.541667,190.968068 657.710417,191.13594 657.916667,191.13594 L658.166667,191.13594 C658.303125,191.13594 658.429167,191.059824 658.494792,190.939915 C658.786458,190.409189 659.344792,190.093255 659.989583,190.093255 C660.9375,190.093255 661.708333,190.859629 661.708333,191.802216 C661.708333,192.745846 660.9375,193.512219 659.989583,193.512219 C659.421875,193.512219 658.865625,193.181688 658.538542,192.648876 C658.470833,192.537309 658.348958,192.469534 658.21875,192.469534 L657.916667,192.469534 C657.710417,192.469534 657.541667,192.637406 657.541667,192.844901 L657.541667,196.640274 L651.38125,196.640274 C651.825,196.187748 652.083333,195.575692 652.083333,194.93027 C652.083333,193.573737 650.980208,192.469534 649.625,192.469534 C648.269792,192.469534 647.166667,193.573737 647.166667,194.93027 C647.166667,195.580906 647.419792,196.187748 647.863542,196.640274 L644.75,196.640274 L644.75,185.922515 Z M662.083333,185.922515 C662.290625,185.922515 662.458333,185.754643 662.458333,185.546106 L662.458333,185.234343 C662.458333,185.104008 662.390625,184.982014 662.280208,184.914239 C661.772917,184.602476 661.458333,184.045683 661.458333,183.460736 C661.458333,182.518149 662.225,181.751776 663.166667,181.751776 C664.109375,181.751776 664.875,182.518149 664.875,183.460736 C664.875,184.07592 664.534375,184.645226 663.986458,184.946562 C663.866667,185.013294 663.791667,185.139459 663.791667,185.276051 L663.791667,185.546106 C663.791667,185.754643 663.960417,185.922515 664.166667,185.922515 L671.083333,185.922515 L671.083333,189.997328 C670.638542,189.58234 670.033333,189.341479 669.385417,189.341479 C668.023958,189.341479 666.916667,190.445683 666.916667,191.802216 C666.916667,193.159791 668.023958,194.263995 669.385417,194.263995 C670.00625,194.263995 670.617708,193.996025 671.083333,193.540371 L671.083333,196.640274 L658.291667,196.640274 L658.291667,193.537243 C658.752083,193.994982 659.363542,194.263995 659.989583,194.263995 C661.351042,194.263995 662.458333,193.159791 662.458333,191.802216 C662.458333,190.445683 661.351042,189.341479 659.989583,189.341479 C659.341667,189.341479 658.7375,189.58234 658.291667,189.997328 L658.291667,185.922515 L662.083333,185.922515 Z M673.53125,200.811013 C672.883333,200.811013 672.279167,201.051874 671.833333,201.466862 L671.833333,197.01564 L671.833333,192.844901 C671.833333,192.637406 671.665625,192.469534 671.458333,192.469534 L671.166667,192.469534 C671.038542,192.469534 670.91875,192.535223 670.85,192.644705 C670.511458,193.180645 669.95,193.512219 669.385417,193.512219 C668.4375,193.512219 667.666667,192.745846 667.666667,191.802216 C667.666667,190.859629 668.4375,190.093255 669.385417,190.093255 C670.030208,190.093255 670.588542,190.409189 670.879167,190.939915 C670.945833,191.059824 671.071875,191.13594 671.208333,191.13594 L671.458333,191.13594 C671.665625,191.13594 671.833333,190.968068 671.833333,190.759531 L671.833333,185.546106 C671.833333,185.338612 671.665625,185.17074 671.458333,185.17074 L664.920833,185.17074 C665.365625,184.719257 665.625,184.107201 665.625,183.460736 C665.625,182.104203 664.522917,181 663.166667,181 C661.811458,181 660.708333,182.104203 660.708333,183.460736 C660.708333,184.100945 660.967708,184.715086 661.410417,185.17074 L657.916667,185.17074 L651.379167,185.17074 C651.823958,184.719257 652.083333,184.107201 652.083333,183.460736 C652.083333,182.104203 650.98125,181 649.625,181 C648.269792,181 647.166667,182.104203 647.166667,183.460736 C647.166667,184.100945 647.426042,184.715086 647.86875,185.17074 L644.375,185.17074 C644.16875,185.17074 644,185.338612 644,185.546106 L644,197.01564 L644,208.485174 C644,208.693711 644.16875,208.861584 644.375,208.861584 L648.541667,208.861584 C648.748958,208.861584 648.916667,208.693711 648.916667,208.485174 L648.916667,208.174454 C648.916667,208.044119 648.848958,207.922124 648.7375,207.85435 C648.223958,207.538416 647.916667,206.995178 647.916667,206.399804 C647.916667,205.457217 648.683333,204.690844 649.625,204.690844 C650.566667,204.690844 651.333333,205.457217 651.333333,206.399804 C651.333333,207.016031 650.992708,207.58638 650.44375,207.889801 C650.325,207.956533 650.25,208.082698 650.25,208.218247 L650.25,208.485174 C650.25,208.693711 650.41875,208.861584 650.625,208.861584 L657.916667,208.861584 L661.380208,208.861584 C660.95625,209.313066 660.708333,209.914695 660.708333,210.539264 C660.708333,211.896839 661.811458,213 663.166667,213 C664.522917,213 665.625,211.896839 665.625,210.539264 C665.625,209.907397 665.378125,209.308895 664.952083,208.861584 L671.458333,208.861584 C671.665625,208.861584 671.833333,208.693711 671.833333,208.485174 L671.833333,205.006777 C672.294792,205.464516 672.905208,205.733529 673.53125,205.733529 C674.892708,205.733529 676,204.629326 676,203.27175 C676,201.915217 674.892708,200.811013 673.53125,200.811013 Z",id:"Fill-1"})})})}),Bd={one:Wa,two:$a},Ud={one:$a,two:Wa},Vd=Mt?Bd:Ud,Eu=({step:e})=>{const t=Vd[e];return y.jsx("span",{className:zd.pictograms,children:y.jsx(t,{})})},$d="_link_na21z_1",Wd="_footer_na21z_15",Hd="_spacing_na21z_30",Gn={link:$d,footer:Wd,spacing:Hd},Qd=({isOutdated:e})=>{let t,n,r;if(j.SAFARI){let i=A.get("tryRestarting");e&&(i=A.get("restartFooter")),t=y.jsx("div",{children:i})}else Fa()&&e&&(t=y.jsx("div",{children:A.get("restartFooter")}));return e||(n=y.jsx("button",{className:Gn.link,type:"button",onClick:()=>{Ba()},children:A.get("refreshButton")}),r=y.jsx("span",{className:Gn.spacing,children:"/"})),y.jsxs("div",{className:Gn.footer,children:[y.jsx("span",{style:{marginRight:"3px"},children:A.get("alreadyInstalled")}),n,r,y.jsx("button",{className:Gn.link,type:"button",onClick:()=>{Ua()},children:A.get("troubleshoot")}),t]})};let Kd=()=>{let e=A.get("installExtension");return j.IE||j.SAFARI?e=A.get("enableExtension"):j.FIREFOX&&(e=A.get("installAddon")),e},Xd=()=>j.FIREFOX===!0?"https://addons.mozilla.org/en-US/firefox/addon/ibm-aspera-connect":j.EDGE_WITH_EXTENSION===!0?"ms-windows-store://pdp/?productid=9N6XL57H8BMG":j.EDGE_CHROMIUM===!0?"https://microsoftedge.microsoft.com/addons/detail/ibm-aspera-connect/kbffkbiljjejklcpnfmoiaehplhcifki":j.CHROME===!0?"https://chrome.google.com/webstore/detail/ibm-aspera-connect/kpoecbkildamnnchnlgoboipnblgikpn":"",Yd=()=>{Td();let e=Xd();e&&za(e),j.SAFARI?Gd():j.IE&&Ba()},Gd=()=>{let e=document.createElement("IFRAME");e.src="fasp://initialize?checkextensions",e.style.visibility="hidden",e.style.position="absolute",e.style.width="0px",e.style.height="0px",e.style.border="0px",document.body.appendChild(e)};const Cu=({isActive:e=!1})=>{let t=Kd();return y.jsx(Va,{target:"_blank",onClick:Yd,disabled:!e,children:t})},Zd="_banner_wvb4m_1",Jd="_howText_wvb4m_11",qd="_newText_wvb4m_28",bd="_required_wvb4m_44",ep="_step_wvb4m_60",tp="_stepContainer_wvb4m_81",np="_stepOne_wvb4m_88 _stepContainer_wvb4m_81",rp="_stepText_wvb4m_94",ip="_stepNewText_wvb4m_108 _stepText_wvb4m_94",lp="_title_wvb4m_113",op="_tooltip_wvb4m_129",pe={banner:Zd,howText:Jd,newText:qd,required:bd,step:ep,stepContainer:tp,stepOne:np,stepText:rp,stepNewText:ip,title:lp,tooltip:op};class up extends zr.Component{constructor(t){super(t),this.setStateCallback=this.setStateCallback.bind(this)}componentWillUnmount(){this.stateChangeTimer&&clearTimeout(this.stateChangeTimer)}setStateCallback(t,n){n?!this.stateChangeTimer&&t&&(this.stateChangeTimer=window.setTimeout(()=>{this.props.currentState!==t&&this.props.changeState(t),this.stateChangeTimer=void 0},n)):this.props.changeState(t)}getAllButtons(){return Mt?[y.jsx(Cu,{isActive:this.props.currentState==="extension_install"}),y.jsx(xu,{href:this.props.href,isOutdated:this.props.isOutdated,setState:this.setStateCallback,isActive:this.props.currentState==="install"})]:[y.jsx(xu,{href:this.props.href,isOutdated:this.props.isOutdated,setState:this.setStateCallback,isActive:this.props.currentState==="install"}),y.jsx(Cu,{isActive:this.props.currentState==="extension_install"})]}shouldActivateCheckmark(t){if(t!=="one")return!1;switch(this.props.currentState){case"running_with_green_checkmarks":return!0;case"extension_install":return lo;case"install":return Mt;default:return!1}}render(){let t=A.get("bannerTitle");(Fa()&&this.props.isOutdated||j.SAFARI)&&(t=A.get("restartBanner")),this.props.majorVersion&&(t=t.replace(/{.*}/,this.props.majorVersion));let[n,r]=this.getAllButtons(),i=y.jsx("span",{className:pe.newText,children:A.get("new")});this.props.currentState!=="running_with_green_checkmarks"&&(_d(),Ed());const l=j.SAFARI&&this.props.isOutdated;return y.jsxs("div",{id:"three-step",className:pe.banner,children:[y.jsx("div",{className:pe.required,children:A.get("required")}),y.jsx("div",{className:pe.title,children:t}),y.jsxs("div",{id:"step-one",className:pe.stepOne,children:[y.jsx(yu,{isVisible:this.shouldActivateCheckmark("one")}),l?null:y.jsxs("div",{className:pe.step,children:[Mt?i:null,y.jsx("span",{className:Mt?pe.stepNewText:pe.stepText,children:A.get("stepOne")})]}),y.jsx(Eu,{step:"one"}),n]}),l?null:y.jsxs("div",{id:"step-two",className:pe.stepContainer,children:[y.jsx(yu,{isVisible:this.shouldActivateCheckmark("two")}),y.jsxs("div",{className:pe.step,children:[j.SAFARI?i:null,y.jsx("span",{className:j.SAFARI?pe.stepNewText:pe.stepText,children:A.get("stepTwo")})]}),y.jsx(Eu,{step:"two"}),r]}),y.jsx(Qd,{isOutdated:this.props.isOutdated})]})}}const sp="_message_mg4mm_1",ap="_text_mg4mm_12",cp="_unsupported_mg4mm_23 _text_mg4mm_12",fp="_troubleshootLink_mg4mm_35",dp="_retry_mg4mm_48",pp="_mitigateText_mg4mm_79",Ae={message:sp,text:ap,unsupported:cp,troubleshootLink:fp,retry:dp,mitigateText:pp};let mp=()=>y.jsxs("div",{className:Ae.message,children:[y.jsx("span",{className:`${Ae.text} ${Ae.mitigateText}`,children:A.get("retry")}),y.jsx("button",{className:Ae.retry,type:"button",onClick:()=>{Sd()},children:A.get("retryButton")}),y.jsx("button",{className:Ae.troubleshootLink,type:"button",onClick:()=>{Ua()},children:A.get("troubleshoot")})]}),hp=()=>{let e=A.get("notSupported"),t=Da();e=e.replace(/<a>/,`<a href="${t}" target="_blank">`);let n={__html:e};return y.jsx("div",{className:Ae.message,children:y.jsx("span",{className:Ae.unsupported,dangerouslySetInnerHTML:n})})};const gp=({currentState:e})=>{if(e==="safari_mitigate")return mp();if(e==="unsupported_browser")return hp();let t=e==="running"?A.get("running"):A.get("launching");return y.jsx("div",{className:Ae.message,children:y.jsx("span",{className:Ae.text,children:t})})},vp="_close_1o8j5_1",yp="_logo_1o8j5_20",wp="_statusBanner_1o8j5_30",xp="_bump_1o8j5_1",gi={close:vp,logo:yp,statusBanner:wp,bump:xp},Ep=["launching","running","update","retry","extension_install","download","install","unsupported_browser","safari_mitigate","previous"];class Cp extends zr.Component{constructor(t){super(t),this.isDownloadRecent=!1,this.isOutdated=!1,this.state={banner:"launching",href:void 0,majorVersion:void 0,correlationId:void 0,sdkVersion:void 0}}componentDidMount(){window.addEventListener("message",this.handleMessage.bind(this))}changeState(t){this.setState({banner:t})}handleMessage(t){let n=t.data.toString();if(/downloadlink/.test(n)){let r=n.split("=")[1];this.href=r,this.setState({href:r})}else if(/downloadVersion/.test(n)){let i=n.substring(n.indexOf("=")+1).replace(/\\.\\d+$/,"");this.setState({majorVersion:i})}else if(/downloadTimestamp/.test(n)){let r=n.substring(n.indexOf("=")+1);Date.now()-Number(r)<3e5&&(this.isDownloadRecent=!0)}else if(/correlationId/.test(n)){let r=n.substring(n.indexOf("=")+1);Pd(r)}else if(/sdkVersion/.test(n)){let r=n.substring(n.indexOf("=")+1);Id(r)}Ep.indexOf(n)!==-1&&this.setState(r=>r.banner==="unsupported_browser"&&n!=="running"?this.state:(n==="previous"&&(r.banner?n=r.banner:j.SAFARI||j.IE?n="download":n="extension_install"),n==="retry"&&(n="download"),n==="download"&&this.isDownloadRecent&&(console.log("Recent downloaded detected!"),(j.SAFARI||j.IE)&&(n="extension_install")),n==="running"&&r.banner==="install"&&Mt&&(console.log("Showing all checkmarks!"),n="running_with_green_checkmarks"),n==="update"&&(this.isOutdated=!0,n="install"),n==="download"&&(n="install"),{banner:n}))}renderBanner(){console.log(`rendering state: ${this.state.banner}`);let t=y.jsx(up,{currentState:this.state.banner,href:this.state.href,majorVersion:this.state.majorVersion,isOutdated:this.isOutdated,changeState:this.changeState.bind(this)});return this.useStatusBanner()?y.jsx(gp,{currentState:this.state.banner}):t}useStatusBanner(){return["launching","running","unsupported_browser","safari_mitigate"].indexOf(this.state.banner)>-1}render(){return y.jsxs("div",{lang:A.getCurrentLanguageCode(),children:[y.jsxs("div",{className:gi.statusBanner,children:[y.jsx("button",{className:gi.close,type:"button",onClick:()=>{xd()},children:"x"}),this.useStatusBanner()?y.jsx("div",{className:gi.logo}):null,this.renderBanner()]}),y.jsx("div",{id:"indicator"})]})}}sd.render(y.jsx(Cp,{}),document.getElementById("aspera-connect-ui-root"));<\/script> <style>@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:400;src:local("IBM Plex Sans"),local("IBMPlexSans"),url(~@ibm/plex/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Regular-Latin1.woff2) format("woff2");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:600;src:local("IBM Plex Sans SemiBold"),local("IBMPlexSans-SemiBold"),url(~@ibm/plex/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBold-Latin1.woff2) format("woff2");unicode-range:U+0000,U+000D,U+0020-007E,U+00A0-00A3,U+00A4-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+2074,U+20AC,U+2122,U+2212,U+FB01-FB02}body{margin:0;padding:0;font-weight:400;overflow-y:hidden;height:100%}body,button{font-family:IBM Plex Sans,Open-Sans,Helvetica Neue,Arial,sans-serif}@-moz-document url-prefix(){#extension-button:lang(fr){font-size:.8em;white-space:normal;line-height:13px}}._checkmark_1e6df_1{margin-left:110px;height:18px;width:18px;vertical-align:middle;display:inline-block}._visible_1e6df_9{visibility:visible}._hidden_1e6df_14{visibility:hidden}._notActive_2texh_1,._active_2texh_1{margin-left:39px;background-color:#fff;vertical-align:middle;display:inline-block}._active_2texh_1{border:solid 1px #3d70b2;width:180px;height:30px}._notActive_2texh_1{opacity:.5;border:solid 2px #3d70b2;width:178px;height:28px}._notActive_2texh_1 a,._active_2texh_1 a{height:26px;margin:2px;border:none;font-size:14px;font-weight:600;font-style:normal;font-stretch:normal;line-height:26px;letter-spacing:normal;text-align:center;vertical-align:middle;text-decoration:none;cursor:pointer;display:inline-block}._notActive_2texh_1 a:lang(ja),._active_2texh_1 a:lang(ja){font-size:.7em}._active_2texh_1 a{background-color:#3d70b2;color:#fff;width:176px}._notActive_2texh_1 a{background-color:#fff;color:#3d70b2;width:173px}._pictograms_17gjx_1{height:32px;width:32px;position:relative;margin-left:18px;vertical-align:middle;display:inline-block}._downloadBox_17gjx_10,._puzzle_17gjx_16{display:inline;width:32px;height:32px}._link_na21z_1{color:#3d70b2;font-weight:600;font-size:12px;padding:0;text-decoration:none;display:inline-block;background-color:transparent;background-repeat:no-repeat;border:none;cursor:pointer;outline:none}._footer_na21z_15{margin-top:40px;margin-bottom:52px;height:15px;text-decoration:none;font-size:12px;font-weight:400;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal;color:#152935;text-align:center}._spacing_na21z_30{margin-right:3px;margin-left:3px}._banner_wvb4m_1{background-color:#fff;height:100%;overflow:hidden;position:relative;width:600px;margin:0 auto;display:inline-block}._howText_wvb4m_11{display:inline-block;overflow:visible;position:relative;cursor:pointer;margin-left:10px;width:37px;height:18px;font-size:14px;font-weight:600;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal;color:#3d70b2}._newText_wvb4m_28{vertical-align:middle;float:left;clear:left;margin-top:-5px;margin-left:0;margin-bottom:7px;font-size:10px;font-weight:600;font-style:normal;font-stretch:normal;line-height:1;letter-spacing:normal;color:#5596e6}._required_wvb4m_44{display:block;position:relative;line-height:32px;margin-top:34px;margin-left:48px;width:504px;font-size:24px;font-weight:400;font-style:normal;font-stretch:normal;line-height:1.33;letter-spacing:normal;color:#152935}._step_wvb4m_60{height:32px;position:relative;margin-left:17px;width:41px;font-size:14px;font-weight:400;font-style:normal;font-stretch:normal;line-height:32px;letter-spacing:normal;text-align:center;vertical-align:middle;color:#5a6872;display:inline-block}._step_wvb4m_60:lang(ja){margin-right:20px}._stepContainer_wvb4m_81{position:relative;white-space:nowrap;vertical-align:middle;margin-top:32px}._stepOne_wvb4m_88{margin-top:19px;padding-top:5px}._stepText_wvb4m_94{float:left;font-size:14px;font-weight:400;font-style:normal;font-stretch:normal;letter-spacing:normal;text-align:center;vertical-align:middle;color:#5a6872;display:inline-block}._stepNewText_wvb4m_108{line-height:1}._title_wvb4m_113{display:block;position:relative;width:450px;height:50px;font-size:16px;font-weight:400;font-style:normal;font-stretch:normal;line-height:1.5;letter-spacing:normal;color:#152935;margin-top:9px;margin-left:48px}._tooltip_wvb4m_129 img{display:none;width:600px;position:relative;left:50%;margin-left:-200px;margin-top:20px;border:1px solid #344766}._tooltip_wvb4m_129:hover img{display:block;position:fixed;text-decoration:none}._message_mg4mm_1{line-height:24px;vertical-align:top;width:90%;height:100%;position:absolute;left:0;padding-left:10%;display:inline-block}._text_mg4mm_12{width:55%;display:inline-flex;height:100%;text-align:left;line-height:1.5;vertical-align:middle;align-items:center;justify-content:center}._unsupported_mg4mm_23{width:90%;display:inline-block;margin-top:15px;font-size:14px}._unsupported_mg4mm_23 a{color:#3d70b2;text-decoration:none}._troubleshootLink_mg4mm_35{color:#3d70b2;font-weight:600;text-decoration:none;display:inline-block;font-size:.9em;background-color:transparent;background-repeat:no-repeat;border:none;cursor:pointer;outline:none}._retry_mg4mm_48{text-decoration:none;color:#3d70b2;padding:7px 18px;border:2px solid rgb(61,112,178);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:50px;font-size:14px;display:inline-block;vertical-align:middle;margin-right:1em;background-color:transparent;background-repeat:no-repeat;cursor:pointer;outline:none}._retry_mg4mm_48:hover{color:#fff;border:2px solid #3d70b2;background-color:#30588c}._retry_mg4mm_48:active{color:#00b2ef;border:1px solid #3d70b2;background-color:#3d70b2}._mitigateText_mg4mm_79{width:45%}._mitigateText_mg4mm_79:lang(nl){width:40%}._mitigateText_mg4mm_79:lang(fr){width:32%}._close_1o8j5_1{display:inline-block;position:relative;float:right;overflow:hidden;margin-right:16px;margin-top:16px;width:12px;height:14px;font-size:12px;z-index:10;color:#8c9ba5;background-color:transparent;background-repeat:no-repeat;border:none;cursor:pointer;outline:none}._logo_1o8j5_20{width:32px;height:32px;margin:24px 0 24px 20px;background-repeat:no-repeat;background-position:center;display:inline-block;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH4wMOExsBOyooSgAACrFJREFUWMOdl2lwVNeVx39v6X1TL6hbjXZAYtGKJJCFBQLHCTHBjiF2Ak4qKS9Z5kMqcVzO1NRUquKpicdVyXgq/kCSmbicimeInQUvWewYMLENZpFsIgwSWlm0opZE78tbbj40yBAnZU9u3fvpvXvP7517zv+cJ/ERx949n62MlkU3+YOBHkVW2txud1RVVRNA13U5lUpNGYbRt7iwcGRqeuro/+1/7tJHOVf6sBfuunPntubmpoeqq2s+VlNbGyqLRPF6vdgdDiSpuF0IQS6bJZFIMD09xdjYaGx8fPzQmTNnfvLiSy8f/ocAtm//RLi5qemxhoaGPc0trZ7y8gokSbphwbmBEQDWrFkJAoQwMU2BEIKJicv8+fTp5Nmz7+3/c3//d1555dXZjwzw5Yce7Kqvr9/XsWFjU339aqxWK6lUmtcOv8Vrrx/lZF8/mWweWZZBkjANA5fTTsf6Rm7ftonbt3XjdjkpFAqcHxzg5MkT/UNDQ1/7yX//z7EPBXjkW9/sbmho/HVnZ9ey0nAYWZb54b5neOZ/f4NmQDBcRmkkij8QxGqzIoBcLs/VhXliszMsxK5gkUy+uPfTfP1rX8IwDK7MznL8+NtzZ8+e2f39Hzz55t8F+PJDD3Z1dXW90LP1tmVer5fzw2M8+q//wcjFGSLlVdQ3NnPLxnYaVpVTFnAWPQAYpslkLM258VlO9J7mfP+7zE6Ms6KilCcee5T6VbXE43EOHfzj/KHDh3ft3/+LN67bVG68846Ojue2brutNhAIMDQyzn0PPMxi1mRtRzd7997DV+7pYcPacsoCLtwOCy67isuu4nFYiAZdNNaE6GqtxxNdSUY4GRsb58CBl9m8qYNoWQS/3+9MJhJtiqocGBkZTd8EsOvuXf/Zs3XbHTU1tZwfHuPzD34L2Rng1k/u5hsP7GJrczlOu3Up8v96CAQSEg6ryrpKP2vX1ZOxlTFx+TLP//LXbO5qp6qyAovFEk4k4p6jx479dgngrjt3btuyZfO/b9jYabNYLDzwT98mpUls/dRuHv3S7dSGXUiyBOJ9g6ZpLi0hig8kSSqCSBJBl4WG2jAxs4SR8wOcOH6Svffeic9XQiIRr1dU+eDAwOCUDNDY1PhQU3OLx2q18NS+Z7gwOUfzhi7u372FUp/9+icihMAwTTRJISU5SKs+koqPuLCTR0HXdcS1NBQIQh4Ln9/eQkP7JsYm5njqRz/DarXS2NTsWb169cMAyt49n61sbV3/REfHRmcmk+Xhf3mcssoa9tz7aTrXRG8SG10IpnUXQzGDqfkcscUM0/MZLsVyTKQkcLjxKhrSNY8gwG2TiWVMhoeG6et7lz2f2UEgEGBmeibi8bieUyORsk1V1TUhSZI4+PpRdCFTt66RzS01RZcKgQA0UzCYdjJ8eYF0MouiKLisKhZFYj5VoKCnmJ5Pk14ZYp0nh6nr5ITKdNpKNlfA5/ezODfLwSPH2PnJbVRVV4cikcgm1e/390QiEa4DeEsCrF27GrfTsnS3pmkyZ3oYubzApek4YZ+du9eX4LEV07Cgw7GxFL1jCQYvxPDWhchk84zPpojPThFfjGF3OrE6nBw88jZ37riNSCRCSYm/R5Vlpc3j8SBJcLKvn0D5ClZWRpCQlgA02crAZIoLU4v4XDbuaSvBpoChG0u5vHmFE003OX0xTi6dIZ5MMj01g5FJkEumMYWMrFo49c4ZZEnG4/GiyHKb6nI5o3a7AySJZDqLX7ERCbqWjAshmNUURiZjzKc0djSHUDHRdbGUfsUp2FTrRFUEqjBIOk0cpo+5OQ1N0bFLZQRcCrnEAgBOpxOnyx1Vr5fUwcHRoq5LKgL5JvdfycJELElWF0imjq6zFOnXjRenRnuZjEAC4UWs9AA1SwVMlmUURcEwDSxWCxaLaqiCYtrEEwlAQlxLtxs9kNcNMjmdvC5R0DQ0/dpzwd+AuHnvdX1QZAWhiJtgZEVB1TVdFkKwob0FhEDX8sV8Fu+72GsVSKpCNpOn92KSCq/7A0aEEPxpNEP/RJZCLoOeS6Nn02jZJHo2iZ5JoGeTmLkUz+z7HrqmIwFqOp2eymYzZapFxe1ykEslGJ5YYGXUu5TLyx06y4JeFq7O8vaFHC1lCpV+601SfGmhwCvn82RzOjZFwSxYuBrLkl5YIJ+cJ5+YJx+PYTUyIASmMBEIVMMw+uKJRJvL5WZDWyPHTo/SN3CRT7RVFuUXsBtZbl2zjHgyy/SVJPveztC2PE9jxALAmRmN3gmNvGbidVnZcUs1qiQ42l/KwDunuBKfw9Q1TL1AR1sDhmleU1ZQWluaPeFweHdpOIyhGxw8coyC7KRn4zqcNnVJ/8NWDcMTIpHViCfSXFg06Zs06J3QuHTVwNANvG4LW1oruW25TtSSY125F1uwnJnZGIvTl9DSce6/7y5W1BS7q8GBcwl5dnb26Pj42LxhGGzd0onTJjN3aYgXjo5i6MZSQErCoDuY4u5bqqirjeB1KKgUUNBwKCYVES+f6a5le4WOqWlIEvhUjTtWKWy5pRlZAqdNZWt3J4ZhFKNLCJQz752NNzc1rS6LRltDwRC6pnH8xDskDDv1a9cSdL1ffmUEITlDa4WbFeV+VlaEaKwJ0V3v5/Y6B+VqCmEWD78eP1Mpid+9NcjF907xxXu3s7GjGV3XURSFgXNnEwpAuLR0yuvxfK6yssrW1dnGocNvMDkxQdIaYU1VCJdVXqqGQghko0CJnCdiyRG15wmoGorQbu4PhGAubbL/zcucePVXLPfbeOKxRyjkC8WzzALazB+LAAMDg1N1dauqfSUlbcFgkNaWtbz08h+YmZxkWvcTDocIOPnIwzRNRmM6Pz80xMnXXiA/f5knH/82TqsgPtGH6vAx+afvUVqqJpY6Ip/Pd8pqVT8eCoXCVZUVbNnUwYHfvMjFkSGGZrJkFR9Rvw2bKt0kVH/91fGswavvxdn/8hu8e/gltMQMTz/1b5RH/Mwd/S6pkd8SH3kDIzOHa1nkfYCRkdF0KBg8ZbPZdoVLw85IpJTNXe30nepl+Fw/g4PDHB9aZCrvImeqmKZJWpNI5gULqQLnpvMcOrvI86/28tZrf+DyuV4qSz381+P/THXVckxTIr84jBG/QCGbQFZtuJZFEh9o8L75ja93V1ZVv9TRsaFkeXk5NpuNH/90P88+/ztyOjhLQrhKQjg8JdidHpAgl0mRS14lk1gkczWGTTG57547+Or9nyOXuYo29CQFKUz6yjD52Ci5bAHF5mHZmuaJv9lh7ty5o7O9vf2HbW3tHatW1WG3O8jl8xx58wSvv3mS3nfPksrkkWT5Wv0wcTtttLeuY2v3Rnpu3YDdbkXTNMx4P7bJp0kns6STObLp/IcDXG/TV9TWfqeuvu4LzS3rPZFIBJvViqKqKIqCLMsMnh8FYHX9CkzTxDCKgqQbN9QSPYvlwvfJLU59AMC9cv2U8vcARkZG06dO9f4+4PcfiMXm7DPT05XpdMqpaRqGYWAaJj6fB6/XTaFQoFAooGkahmksGZdFDt/iTxGZGQp5Da2go2sGum4gZCujmbJnpf/P73kwGLrV7XH3WCzWekWRKxVFsaqqakqSdK0Uc4MICTqrxnAY88QXU2SS+WIbb5jEs5I8Mqe8OJoMP/IXmctT7VIu8T0AAAAASUVORK5CYII=)}._statusBanner_1o8j5_30{background-color:#fff;height:99%;overflow:hidden;position:relative;max-width:600px;margin:0 auto;border-top:4px solid #3D70B2;box-shadow:0 12px 24px #0000001a;animation-name:_bump_1o8j5_1;animation-duration:.8s;animation-iteration-count:1;transform-origin:center top}</style> </head> <body> <div id="aspera-connect-ui-root" class="small-window"></div> </body></html>',document.body.appendChild(o),!(null===(t=o.contentWindow)||void 0===t?void 0:t.postMessage))return;window.attachEvent?window.attachEvent("onmessage",i):window.addEventListener("message",i,!1)}w(!1),u?null===(n=o.contentWindow)||void 0===n||n.postMessage(e,"*"):o.attachEvent?o.attachEvent("onload",s):o.onload=s};window.addEventListener("message",(function(e){"show_extension_install"===e.data?r.showExtensionInstall():"show_safari_mitigate"===e.data&&S("safari_mitigate")}),!1),this.showLaunching=function(e){void 0===e&&(e=3500),0!==l&&clearTimeout(l),l=setTimeout((function(){S("launching")}),e)},this.showDownload=function(){g?S("download"):this.showUnsupportedBrowser()},this.showInstall=function(){g?(S("install"),V("aspera-install-attempted","true")):this.showUnsupportedBrowser()},this.showUpdate=function(){g?S("update"):this.showUnsupportedBrowser()},this.showRetry=function(){S("retry")},this.showExtensionInstall=function(){if(S("extension_install"),!x.IE){var e=document.createElement("div");e.className="aspera-connect-ext-locator",e.style.display="none",document.body.appendChild(e)}},this.showPrevious=function(){S("previous")},this.showUnsupportedBrowser=function(){S("unsupported_browser")},this.connected=function(e){void 0===e&&(e=2e3),clearTimeout(l),null!=document.getElementById(a.iframeId)&&(S("running"),setTimeout(r.dismiss,e),V("aspera-last-detected",String(Date.now().toString())))},this.dismiss=function(){0!==l&&clearTimeout(l),w(!0)}};$.EVENT=c,$.ACTIVITY_EVENT=d,$.EVENT_TYPE=f,$.supportsInstallingExtensions=!1;const ee=function(e){var t=this;this.options=e,this.VERSION_PREFIX="/v5",this.pluginId="",this.listenerId="",this.name="npapi",this.createNPAPIPlugin=function(e){var n=document.getElementById(t.listenerId);if(R(n))(n=document.createElement("div")).setAttribute("id",t.listenerId),n.setAttribute("style","display:inline-block;height:1px;width:1px;");else for(;n.firstChild;)n.removeChild(n.firstChild);t.npapiPlugin=document.createElement("object"),t.npapiPlugin.setAttribute("name",t.pluginId),t.npapiPlugin.setAttribute("id",t.pluginId),t.npapiPlugin.setAttribute("type","application/x-aspera-web"),t.npapiPlugin.setAttribute("width","1"),t.npapiPlugin.setAttribute("height","1");var r=document.createElement("param");r.setAttribute("name","connect-launch-wait-timeout-ms"),r.setAttribute("value",String(e)),t.npapiPlugin.appendChild(r),n.appendChild(t.npapiPlugin),document.body.appendChild(n)},this.httpRequest=function(e,n){var r=L();R(e.body)&&(e.body="");var o="".concat(t.VERSION_PREFIX).concat(e.path);return R(t.npapiPlugin)?r.rejecter(new Error("Plugin not detected.")):t.npapiPlugin.httpRequestImplementation(e.method,o,e.body,(function(e){var t=N(e);q(t)?r.resolver({status:t.error.code,body:e,requestId:n}):r.resolver({status:200,body:e,requestId:n})})),r.promise},this.startup=function(){return a(t,void 0,void 0,(function(){var e,t,n=this;return s(this,(function(r){e=this.options.requestStatusCallback;try{if(R(this.npapiPlugin))if(x.IE&&new ActiveXObject("Aspera.AsperaWebCtrl.1")||"application/x-aspera-web"in navigator.mimeTypes)this.listenerId=this.options.containerId,this.pluginId=this.options.id,this.createNPAPIPlugin(this.options.connectLaunchWaitTimeoutMs),t=setInterval((function(){if(n.npapiPlugin&&n.npapiPlugin.queryBuildVersion)return clearInterval(t),F(n.npapiPlugin.queryBuildVersion(),"3.6")?(n.npapiPlugin=void 0,e(y.FAILED),A(-1,"Plugin too old. Version less than 3.6")):void 0}),500);else if(R(this.npapiPlugin))return e(y.FAILED),[2,A(-1,"Plugin not detected. Either not installed or enabled.")]}catch(t){return e(y.FAILED),T.debug(JSON.stringify(t)),[2,A(-1,"Plugin load error. Make sure plugin is enabled. Details: ".concat(t))]}return[2]}))}))}},te=function(e){var t=this;this.options=e,this.connectStatus=y.INITIALIZING,this.connectPort=33003,this.scanRetryTimeValues=[0,1],this.objectId=0,this.nextId=0,this.pollingRequestErrors=0,this.windowUnloading=!1,this.VERSION_PREFIX="/v5",this.name="http",this.changeConnectStatus=function(e){t.connectStatus!==e&&(T.debug("["+t.objectId+"] Http request handler status changing from["+t.connectStatus+"] to["+e+"]"),t.connectStatus=e,t.requestStatusCallback&&t.requestStatusCallback(e))},this.check=function(){return a(t,void 0,void 0,(function(){var e,t,n,r,o=this;return s(this,(function(i){for(e=[],t=new Map,n=33003;n<33023;n++)r=this.nextId++,t.set(r,n),this.connectPort=n,e.push(this.ping(r));return[2,Promise.all(e).then((function(e){for(var n=0;n<e.length;n++){var r=e[n],i=r.requestId;if(B(r.status)){var a=t.get(i);if(a)return o.connectPort=a,!0}}return!1}))]}))}))},this.detectConnect=function(e){return a(t,void 0,void 0,(function(){var t,n=this;return s(this,(function(r){switch(r.label){case 0:return this.connectStatus===y.RUNNING||this.connectStatus===y.STOPPED?[2,!0]:(this.connectStatus!==y.INITIALIZING||e||(U(),this.changeConnectStatus(y.RETRYING)),[4,this.check()]);case 1:return r.sent()?[3,3]:(t=this.scanRetryTimeValues[0]+this.scanRetryTimeValues[1],this.scanRetryTimeValues[0]=this.scanRetryTimeValues[1],this.scanRetryTimeValues[1]=t,[4,new Promise((function(e){setTimeout((function(){return a(n,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.detectConnect(!1)];case 1:return t.sent(),this.changeConnectStatus(y.RUNNING),e(),[2]}}))}))}),1e3*t)}))]);case 2:r.sent(),r.label=3;case 3:return[2,!0]}}))}))},this.ping=function(e){return a(t,void 0,void 0,(function(){var t;return s(this,(function(n){return t={method:"GET",path:"/connect/info/ping"},[2,this.httpRequest(t,e)]}))}))},this.reconnect=function(){return a(t,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return this.changeConnectStatus(y.RETRYING),U(),[4,this.detectConnect(!1)];case 1:return e.sent(),T.debug("Reconnect successful!"),this.changeConnectStatus(y.RUNNING),[2]}}))}))},this.send=function(e,n){var r=L(),o=("undefined"==typeof XMLHttpRequest&&(XMLHttpRequest=function(){try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}),new XMLHttpRequest);return o.onreadystatechange=function(){if(t.connectStatus===y.STOPPED||t.windowUnloading)return T.debug("Connect stopped or page unloading. Skipping xhr processing."),r.rejecter(A(-1,"Connect stopped or page unloading. Skipping xhr processing."));if(4===o.readyState){if(0===o.status&&t.connectStatus===y.RUNNING){if(t.pollingRequestErrors<3&&e.path.indexOf("activity")>0)return void t.pollingRequestErrors++;if(-1===e.path.indexOf(t.connectPort.toString())&&e.path.indexOf("ping")>0)return;t.reconnect()}var i=o.responseText;T.trace("HttpRequest processed["+e.path+"] postData["+e.body+"] status["+o.status+"] response["+i+"]"),r.resolver({status:o.status,body:i,requestId:n})}},o.open(e.method,e.path,!0),"GET"===e.method.toUpperCase()?o.send():o.send(e.body),r.promise},this.httpRequest=function(e,n){return a(t,void 0,void 0,(function(){var t;return s(this,(function(r){switch(r.label){case 0:return t="".concat("http://127.0.0.1:").concat(this.connectPort).concat(this.VERSION_PREFIX).concat(e.path),e.path=t,[4,this.send(e,n)];case 1:return[2,r.sent()]}}))}))},this.stop=function(){t.changeConnectStatus(y.STOPPED)},this.startup=function(){return a(t,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return this.requestStatusCallback=this.options.requestStatusCallback,[4,this.detectConnect(!0)];case 1:return e.sent(),T.debug("Finished http init"),[2]}}))}))},x.SAFARI_NO_NPAPI&&window.addEventListener("beforeunload",(function(){t.windowUnloading=!0})),e.objectId&&(this.objectId=e.objectId,this.nextId=1e4*this.objectId)},ne=function(e){var t=this;this._options=e,this.create=function(e){return new e(t._options)},this.getHttpStrategy=function(){return t.create(te)},this.getStrategy=function(){return a(t,void 0,void 0,(function(){var e,t,n,r;return s(this,(function(o){switch(o.label){case 0:return o.trys.push([0,5,,6]),this.supportsNpapi()?(T.debug("Using npapi strategy"),this.strategy=this.create(ee),[3,4]):[3,1];case 1:return this.requiresHttp()?(this.setHttpStrategy(),[3,4]):[3,2];case 2:return T.debug("Attempting extension strategy"),this.strategy=this.supportsNativeHost()?this.create(K):this.create(Z),T.debug("Checking if extension installed..."),[4,null===(r=(n=this.strategy).detectExtension)||void 0===r?void 0:r.call(n,1e3)];case 3:o.sent()||(e=!0===$.supportsInstallingExtensions,"extension"===this._options.connectMethod||e?this.supportsSafariAppExt()||(this._options.requestStatusCallback(y.EXTENSION_INSTALL),window.postMessage("show_extension_install","*")):this.supportsHttp()&&(T.debug("Falling back to http strategy"),this.setHttpStrategy())),o.label=4;case 4:return[2,this.strategy];case 5:throw t=o.sent(),new Error("Unexpected error while determining the request implementation: ".concat(t));case 6:return[2]}}))}))},this.requiresHttp=function(){return"http"===t._options.connectMethod||!t.supportsExtensions()||D()},this.setHttpStrategy=function(){T.debug("Using http strategy"),t.strategy=t.getHttpStrategy()},this.supportsExtensions=function(){return t.supportsNativeHost()||t.supportsSafariAppExt()},this.supportsHttp=function(){return!x.SAFARI},this.supportsNativeHost=function(){return x.CHROME||x.EDGE_WITH_EXTENSION||x.FIREFOX},this.supportsNpapi=function(){return x.IE||x.SAFARI&&!x.SAFARI_NO_NPAPI},this.supportsSafariAppExt=function(){return x.SAFARI_NO_NPAPI}};const re=function(){function e(e){var t=this;this._options=e,this._objectId=0,this._nextId=0,this.versionChecked=!1,this._idRequestHash={},this._queue=[],this._pollingRequestErrors=0,this._handlerStatus="",this.processQueue=function(){for(var e=function(){var e=t._queue.pop();if(e){var n={method:e.method,path:e.path,body:e.body};T.debug("Processing request queue for endpoint: ".concat(n.path)),t._strategy.httpRequest(n,e.requestId).then((function(e){return t.handleResponse(e)})).then((function(t){e&&e.resolve&&e.resolve(t)})).catch((function(t){e&&e.reject&&e.reject(t)}))}};t._queue.length>0;)e();T.debug("Request queue empty.")},this.changeConnectStatus=function(e){t.versionChecked||e!==y.RUNNING?x.SAFARI&&t.connectStatus===y.OUTDATED&&e===y.RUNNING?t.checkVersion():t.connectStatus!==e&&(T.debug("["+t._objectId+"] Request handler status changing from["+t.connectStatus+"] to["+e+"]"),t.connectStatus=e,t.connectStatus===y.RUNNING&&t.processQueue(),t._handlerStatus!==y.DEGRADED?e!==y.WAITING&&e!==y.STOPPED&&t._options.statusListener(t.connectStatus):t.checkVersion()):t.checkVersion()},this.checkVersionCallback=function(e){if(t.versionChecked=!0,delete t._idRequestHash[e.requestId],B(e.status)){var n=N(e.body);if(q(n))return void T.error("Failed to parse version response: "+e);P.connectVersion=n.version}else if(0===e.status)return T.debug("Bad check version response. Retrying..."),t.versionChecked=!1,void setTimeout((function(){t.checkVersion()}),500);if(D()||((""===t._options.minVersion||F(t._options.minVersion,m))&&(t._options.minVersion=m),!F(P.connectVersion,t._options.minVersion)))t.changeConnectStatus(y.RUNNING);else{if(t.connectStatus!==y.OUTDATED){t.changeConnectStatus(y.OUTDATED);var r=t._nextId++,o={min_version:t._options.minVersion,sdk_location:t._options.sdkLocation},i={method:"POST",path:"/connect/update/require",body:JSON.stringify(o)};t.cacheRequest(i,r),t._strategy.httpRequest(i,r)}var a=1,s=setInterval((function(){if(T.debug("Checking for Connect upgrade. Attempt "+a),x.SAFARI&&T.debug("Safari upgrade requires a page refresh. Extension context becomes invalidated."),a++,t.connectStatus!==y.RUNNING&&t._handlerStatus!==y.STOPPED){var e=t._nextId++;t._strategy.httpRequest({method:"GET",path:"/connect/info/version"},e).then((function(e){var n=N(e.body);q(n)?T.error("Failed to parse version response: "+e):F(n.version,t._options.minVersion)||(T.debug("Updated Connect found."),clearInterval(s),t.checkVersion())})).catch((function(e){throw new Error(e)}))}else clearInterval(s)}),1e3)}},this.cacheRequest=function(e,n,r){var o={method:e.method,path:e.path,body:e.body,requestId:n};return r&&(o.resolve=r.resolve,o.reject=r.reject),t._idRequestHash[n]=o,o},this.checkVersion=function(){return a(t,void 0,void 0,(function(){var e,t,n;return s(this,(function(r){switch(r.label){case 0:return e={method:"GET",path:"/connect/info/version"},t=this._nextId++,this.cacheRequest(e,t),[4,this._strategy.httpRequest(e,t)];case 1:return(n=r.sent())&&this.checkVersionCallback(n),[2]}}))}))},this.handleResponse=function(e){return new Promise((function(n,r){if(t._handlerStatus===y.STOPPED)return T.debug("Connect stopped. Skipping request processing."),r(A(-1,"Connect is stopped. Skipping request processing."));var o=t._idRequestHash[e.requestId];if(0===e.status)return t._pollingRequestErrors<3&&o.path.indexOf("/connect/transfers/activity")>0?(t._pollingRequestErrors++,r(A(-1,"Error processing transfer activity request"))):void t._queue.push(o);t.connectStatus!==y.RUNNING&&t.changeConnectStatus(y.RUNNING);var i=N(e.body);delete t._idRequestHash[e.requestId],q(i)||!B(e.status)?r(i):n(i)}))},this.start=function(e){return new Promise((function(n,r){if(t._handlerStatus===y.STOPPED)return r(A(-1,"Connect is stopped. Call #start to resume session."));if(t._handlerStatus===y.DEGRADED)return t.checkVersion();var o=t._nextId++,i=t.cacheRequest(e,o,{resolve:n,reject:r});if(t.connectStatus!==y.RUNNING)return T.debug("Queueing request. Connect is currently ".concat(t.connectStatus,".")),void t._queue.push(i);t._strategy.httpRequest(e,o).then((function(e){return t.handleResponse(e)})).then((function(e){n(e)})).catch((function(e){r(e)}))}))},this.handleFallback=function(e){if(0!==e.status){var n=N(e.body);return delete t._idRequestHash[e.requestId],q(n)?void 0:n}},this.stopRequests=function(){return t._handlerStatus=y.STOPPED,"function"==typeof t._strategy.stop&&t._strategy.stop(),!0},this._provider=new ne(i(i({},e),{requestStatusCallback:this.changeConnectStatus})),this._objectId=e.objectId,this._nextId=1e4*this._objectId,window.addEventListener("message",(function(e){t.connectStatus!==y.RUNNING&&"continue"===e.data&&t._strategy&&t._strategy.stop&&(t._strategy.stop(),t._strategy=t._provider.getHttpStrategy())}))}return e.prototype.httpFallback=function(e){return a(this,void 0,void 0,(function(){var t,n,r,o;return s(this,(function(i){switch(i.label){case 0:return t=this._provider.getHttpStrategy(),n={path:"/connect/info/"+e,method:"GET"},r=this._nextId++,this.cacheRequest(n,r),[4,t.httpRequest(n,r)];case 1:return o=i.sent(),[2,this.handleFallback(o)]}}))}))},e.prototype.handleTimeout=function(e){return a(this,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:if("timeout"!==e.error.user_message)throw new Error(e.error.user_message);if(this._handlerStatus===y.STOPPED)throw new Error("stop() was called");return this.connectStatus===y.RUNNING||this.connectStatus===y.OUTDATED||this.connectStatus===y.EXTENSION_INSTALL?[3,3]:(T.debug("Connect detection timed out after: ".concat(this._options.connectLaunchWaitTimeoutMs,"ms")),"http"!==this._strategy.name&&"safari"!==this._strategy.name&&"npapi"!==this._strategy.name&&"nmh"!==this._strategy.name||this.changeConnectStatus(y.FAILED),"nmh"!==this._strategy.name||this.connectStatus!==y.FAILED?[3,2]:[4,this.httpFallback("version")]);case 1:throw(t=n.sent())&&F(t.version,"3.9")?new Error("Incompatible version of Connect detected. You must upgrade to 3.9+."):t&&!F(t.version,"3.9")?new Error("Connect 3.9+ was detected but is not responding to extension requests. Check native message host registration."):new Error("Check that Connect 3.9+ is installed.");case 2:throw new Error("Timeout reached");case 3:if(this.connectStatus===y.EXTENSION_INSTALL)throw new Error("Browser extension was not detected. Make sure it is enabled if already installed.");return[2]}}))}))},e.prototype.init=function(){return a(this,void 0,void 0,(function(){var e,t,n,r=this;return s(this,(function(o){switch(o.label){case 0:return this.changeConnectStatus(y.INITIALIZING),this._handlerStatus="",T.debug("Determining request strategy..."),e=this,[4,this._provider.getStrategy()];case 1:return e._strategy=o.sent(),t=new Promise((function(e){setTimeout(e,r._options.connectLaunchWaitTimeoutMs,A(-1,"timeout"))})),[4,Promise.race([t,this._strategy.startup()])];case 2:return q(n=o.sent())?[2,this.handleTimeout(n)]:(T.debug("Connect initialized. Checking version now."),[4,this.checkVersion()]);case 3:return o.sent(),[2]}}))}))},e}(),oe=function(){function e(e){var t=this;this.requestHandler=e,this.send=function(e){var n=t.getEndpointUrl(e.name,e.param);return t.httpRequest(e.method,n,"POST"===e.method?JSON.stringify(e.body):void 0)},this.httpRequest=function(e,n,r){var o={method:e,path:n,body:r};return t.requestHandler.start(o)}}return e.prototype.getEndpointUrl=function(e,t){var n=w[e];if(!n)throw new Error("Connect API (".concat(e,") not known"));var r=n.route,o=n.prefix;return t&&(r=r.replace("${id}",t)),"".concat(o).concat(r)},e}();var ie=function(e){pe(e),fe(e,"authSpec",["remote_host"])},ae=function(e){pe(e),fe(e,"#readChunkAsArrayBuffer options",["path","offset","chunkSize"])},se=function(e){pe(e),fe(e,"#getChecksum options",["path"]);var t=e.body;t&&t.checksumMethod&&-1===["md5","sha1","sha256","sha512"].indexOf(t.checksumMethod)&&he("".concat(t.checksumMethod," is not a supported checksum method"))},le=function(e){if(!e.method)throw new Error("Request is missing property: method")},ue=function(e){if(!e.name)throw new Error("Request is missing property: name")},ce=function(e){pe(e),fe(e,"#readAsArrayBuffer options",["path"])},de=function(e){R(e.param)&&he("Must provide transfer id.")},fe=function(e,t,n){n.forEach((function(n){if(R(e.body[n])){var r="Invalid ".concat(t," parameter: ").concat(n," is missing or invalid");he(r)}}))},pe=function(e){!function(e){R(e.body)&&he("Must provide options parameter.")}(e)},he=function(e){var t=new Error(e);throw t.name="ValidationError",t},ge=function(){function e(){this.validators=[]}return e.prototype.addSettings=function(e){var t=O(this.body);if(t=e(t),"startTransfer"===this.name&&this.requestId)for(var n=void 0,r=0;r<t.transfer_specs.length;r++)(n=e(n=t.transfer_specs[r])).aspera_connect_settings.request_id=this.requestId,R(n.aspera_connect_settings.back_link)&&(n.aspera_connect_settings.back_link=window.location.href);this.body=t},e.prototype.setBody=function(e){return this.body=e,this},e.prototype.setMethod=function(e){return this.method=e,this},e.prototype.setName=function(e){return this.name=e,this},e.prototype.setParam=function(e){return this.param=e,this},e.prototype.setRequestId=function(e){return this.requestId=e,this},e.prototype.setValidator=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.validators=u(u([],l(this.validators),!1),l(e),!1),this},e.prototype.validate=function(){var e=this;this.validators.push(ue,le),this.validators.forEach((function(t){t(e)}))},e.prototype.send=function(e){return this.validate(),e.send(this)},e}();const me=ge;var ve=function e(t){if(!(this&&this instanceof e?this.constructor:void 0))throw new Error("Connect() must be called with new");R(t)&&(t={});var n=t.connectLaunchWaitTimeoutMs||5e3,r=t.id||"aspera-web",o=t.containerId||"aspera-web-container",i="",a=t.authorizationKey||"",s=t.pollingTime||2e3,l=t.minVersion||"",u=t.connectMethod||"",c=t.dragDropEnabled||!1,d=t.maxActivityOutstanding||2,f=j(t.sdkLocation)||"//d3gcli72yxqn2z.cloudfront.net/connect/v4",p=t.extensionRequestTimeout;if("undefined"!=typeof Storage){var g=H("aspera-connect-method");g&&(u=g);var m=H("aspera-min-version");m&&(l=m)}l&&(P.minVersion=l);var w=[],S=0,E=0,k=[],C=y.INITIALIZING,_=++I,x=0,N=!1,O=!1,F=new re({id:r,containerId:o,connectLaunchWaitTimeoutMs:n,sdkLocation:f,connectMethod:u,minVersion:l,extensionRequestTimeout:p,objectId:_,statusListener:function(e){if(e===y.INITIALIZING)J(y.INITIALIZING);else if(e===y.RETRYING)J(y.RETRYING);else if(e===y.FAILED)N=!1,J(y.FAILED);else if(e===y.EXTENSION_INSTALL)J(y.EXTENSION_INSTALL);else if(e===y.WAITING);else if(e===y.OUTDATED)C!==y.OUTDATED&&J(y.OUTDATED);else{if(e===y.DEGRADED)return;T.debug("Resetting max activity outstanding."),x=0,J(y.RUNNING)}!function(e){for(var t=0;t<k.length;t++)k[t](b.STATUS,e)}(C)}}),D=new oe(F);function L(e){return 0!==a.length&&(e.authorization_key=a),R(e.aspera_connect_settings)&&(e.aspera_connect_settings={}),e.aspera_connect_settings.app_id=i,e}function U(){T.debug("Connect API is ready."),W()?O=!0:(N=!0,c&&X((new me).setName("initDragDrop").setMethod(v.GET)).catch((function(){})))}function z(){x>=d?T.debug("Skipping activity request. Reached maximum number of outstanding polling requests."):(x++,Q({success:function(e){x--,function(e){E=e.iteration_token;for(var t=0;t<w.length;t++)w[t](b.TRANSFER,e)}(e)},error:function(){x--}},E))}function B(e,t){for(var n=!1,r=t.indexOf(e);r>-1;)t.splice(r,1),n=!0,r=t.indexOf(e);return n}function J(e){C!==e&&(T.debug("["+_+"] Connect status changing from["+C+"] to["+e+"]"),e===y.RUNNING&&U(),C=e)}function X(e,t){if(e.method===v.POST&&e.addSettings(L),!t)return e.send(D);e.send(D).then((function(e){"function"==typeof t.success&&t.success(e)})).catch((function(e){"function"==typeof t.error&&(T.debug("Calling error callback."),t.error(e))}))}function Q(e,t){if(void 0===t&&(t=0),N)return function(e,t){var n={iteration_token:e},r=(new me).setName("activity").setMethod(v.POST).setBody(n);if(!t)return X(r);X(r,t)}(t,e);O&&window.AsperaMobile?window.AsperaMobile.getAllTransfers(t).then((function(t){e.success&&e.success(t)})).catch((function(t){e.error&&e.error(t)})):T.warn("getAllTransfers: No method is available for getting all transfers")}function K(e,t){if(!c)return A(-1,"Drop is not enabled in the initialization options, please instantiate Connect again with the dragDropEnabled option set to true.");X((new me).setName("droppedFiles").setMethod(v.POST).setBody(e),t)}function Y(e,t){var n=M(),r=(new me).setName("startTransfer").setMethod(v.POST).setBody(e).setRequestId(n);if(N)return t?(X(r,t),{request_id:n}):X(r);throw new Error("startTransfers: No transfer method is available for starting a transfer")}this.addEventListener=function(e,t){return typeof e!=typeof b.ALL?A(-1,"Invalid EVENT parameter"):"function"!=typeof t?A(-1,"Invalid Listener parameter"):(e!==b.TRANSFER&&e!==b.ALL||(0===S&&(S=setInterval(z,s)),w.push(t)),void(e!==b.STATUS&&e!==b.ALL||k.push(t)))},this.authenticate=function(e,t){var n=(new me).setName("authenticate").setMethod(v.POST).setBody(e).setValidator(ie);if(N){if(!t)return X(n);X(n,t)}},this.getAllTransfers=Q,this.getStatus=function(){return C},this.getTransfer=function(e,t){var n=(new me).setName("getTransfer").setMethod(v.POST).setParam(e).setValidator(de);if(!N){if(O&&window.AsperaMobile)return window.AsperaMobile.getTransfer(e);throw new Error("getTransfer: No transfer method is available for retrieving a transfer")}if(!t)return X(n);X(n,t)},this.initSession=function(e){if(void 0===e&&(e=""),!R(i))return A(-1,"Session was already initialized.");if(R(e)){var t=H(h);t||(t=G(M())),i=t}else i=e;V(h,i),function(e){var t=0,n=e.length,r=Object.create({});for(var o in e.split("").forEach((function(e){r[e]?r[e]+=1:r[e]=1})),r){var i=r[o]/n;t-=i*(Math.log(i)/Math.log(2))}return t>3.8}(i)||T.warn("WARNING: app_id field entropy might be too low.");var n=this.start();return n&&q(n)?A(-1,n):{app_id:i}},this.modifyTransfer=function(e,t,n){var r=(new me).setName("modifyTransfer").setMethod(v.POST).setParam(e).setBody(t).setValidator(de);if(N){if(!n)return X(r);X(r,n)}},this.readAsArrayBuffer=function(e,t){var n=(new me).setName("readAsArrayBuffer").setMethod(v.POST).setBody(e).setValidator(ce);if(!N)throw new Error("readAsArrayBuffer: No method is available for reading a file");if(!t)return X(n);X(n,t)},this.readChunkAsArrayBuffer=function(e,t){var n=(new me).setName("readChunkAsArrayBuffer").setMethod(v.POST).setBody(e).setValidator(ae);if(!N)throw new Error("readChunkAsArrayBuffer: No method is available for reading a file");if(!t)return X(n);X(n,t)},this.getChecksum=function(e,t){if(!e)throw new Error("#getChecksum options argument is either missing or incorrect");var n={path:e.path,offset:e.offset||0,chunkSize:e.chunkSize||0,checksumMethod:e.checksumMethod||"md5"},r=(new me).setName("getChecksum").setMethod(v.POST).setBody(n).setValidator(se);if(!N)throw new Error("getChecksum: No method is available for retrieving a checksum");if(!t)return X(r);X(r,t)},this.removeEventListener=function(e,t){var n=!1;return void 0===e?(w.length>0&&(w=[],n=!0),k.length>0&&(k=[],n=!0)):typeof e!=typeof b.ALL?n=(n=n||B(e,w))||B(e,k):"function"!=typeof t?(e!==b.TRANSFER&&e!==b.ALL||w.length>0&&(w=[],n=!0),e!==b.STATUS&&e!==b.ALL||k.length>0&&(k=[],n=!0)):(e!==b.TRANSFER&&e!==b.ALL||(n=n||B(t,w)),e!==b.STATUS&&e!==b.ALL||(n=n||B(t,k))),0===w.length&&(clearInterval(S),S=0),n},this.removeTransfer=function(e,t){var n=(new me).setName("removeTransfer").setMethod(v.POST).setParam(e).setValidator(de);if(!N)throw new Error("removeTransfer: No transfer method is available for removing a transfer");if(!t)return X(n);X(n,t)},this.resumeTransfer=function(e,t,n){var r=(new me).setName("resumeTransfer").setMethod(v.POST).setParam(e).setBody(t).setValidator(de);if(!N){if(O&&window.AsperaMobile)return window.AsperaMobile.resumeTransfer(e,{});throw new Error("resumeTransfer: No transfer method is available for resuming a transfer")}if(!n)return X(r);X(r,n)},this.setDragDropTargets=function(e,t,n){if(!c)return A(-1,"Drop is not enabled in the initialization options, please instantiate Connect again with the dragDropEnabled option set to true.");if("function"!=typeof n)return A(-1,"You must provide a valid listener");if(R(t))return A(-1,"You must provide a valid options object");var r=document.querySelectorAll(e);if(0===r.length)return A(-1,"No valid elements for the selector given");for(var o=function(e){t.allowPropagation||e.stopPropagation(),e.preventDefault(),n({event:e})},i=function(e){t.allowPropagation||e.stopPropagation(),e.preventDefault(),!0===t.dragOver&&n({event:e})},a=function(e){t.allowPropagation||e.stopPropagation(),t.disablePreventDefault||e.preventDefault();for(var r=e.dataTransfer.files,o={dataTransfer:{files:[]}},i=0;i<r.length;i++){var a={lastModifiedDate:r[i].lastModifiedDate,name:r[i].name,size:r[i].size,type:r[i].type};o.dataTransfer.files.push(a)}K(o,{success:function(t){n({event:e,files:t})}})},s=0;s<r.length;s++)!0===t.dragEnter&&r[s].addEventListener("dragenter",o),!0===t.dragLeave&&r[s].addEventListener("dragleave",o),!0!==t.dragOver&&!1===t.drop||r[s].addEventListener("dragover",i),!1!==t.drop&&r[s].addEventListener("drop",a)},this.getDroppedFiles=K,this.showAbout=function(e){var t=(new me).setName("showAbout").setMethod(v.GET);if(!N)throw new Error("showAbout: No method is available for opening the about window");if(!e)return X(t);X(t,e)},this.showDirectory=function(e,t){var n=(new me).setName("showDirectory").setMethod(v.GET).setParam(e).setValidator(de);if(!N)throw new Error("showDirectory: No method is available for opening directory");if(!t)return X(n);X(n,t)},this.showPreferences=function(e){var t=(new me).setName("showPreferences").setMethod(v.GET);if(!e)return X(t);X(t,e)},this.showPreferencesPage=function(e,t){if(!(e&&e.page&&["general","transfers","bandwidth","network","security"].indexOf(e.page)>-1))throw new Error("#showPreferencesPage options argument is either missing or incorrect.");var n=(new me).setName("showPreferencesPage").setMethod(v.GET).setParam(e.page);if(!t)return X(n);X(n,t)},this.showSaveFileDialog=function(e,t){var n={};R(t)&&(t={}),n.title=t.title||"",n.suggestedName=t.suggestedName||"",n.allowedFileTypes=t.allowedFileTypes||"";var r=(new me).setName("showSaveFileDialog").setMethod(v.POST).setBody(n);if(!e)throw new Error("Must provide callbacks.");X(r,e)},this.showSelectFileDialog=function(e,t){var n={};R(t)&&(t={}),n.title=t.title||"",n.suggestedName=t.suggestedName||"",n.allowMultipleSelection=R(t.allowMultipleSelection)||t.allowMultipleSelection,n.allowedFileTypes=t.allowedFileTypes||"";var r=(new me).setName("showSelectFileDialog").setMethod(v.POST).setBody(n);if(!e)throw new Error("Must provide callbacks.");X(r,e)},this.showSelectFileDialogPromise=function(e){var t={};R(e)&&(e={}),t.title=e.title||"",t.suggestedName=e.suggestedName||"",t.allowMultipleSelection=R(e.allowMultipleSelection)||e.allowMultipleSelection,t.allowedFileTypes=e.allowedFileTypes||"";var n=(new me).setName("showSelectFileDialog").setMethod(v.POST).setBody(t);if(N)return X(n);if(O&&window.AsperaMobile)return window.AsperaMobile.showSelectFileDialog();throw new Error("showSelectFileDialogPromise: No method is available for opening the file dialog")},this.showSelectFolderDialog=function(e,t){var n={};R(t)&&(t={}),n.title=t.title||"",n.allowMultipleSelection=R(t.allowMultipleSelection)||t.allowMultipleSelection;var r=(new me).setName("showSelectFolderDialog").setMethod(v.POST).setBody(n);if(!e)throw new Error("Must provide callbacks.");X(r,e)},this.showSelectFolderDialogPromise=function(e){var t={};R(e)&&(e={}),t.title=e.title||"",t.allowMultipleSelection=R(e.allowMultipleSelection)||e.allowMultipleSelection;var n=(new me).setName("showSelectFolderDialog").setMethod(v.POST).setBody(t);if(N)return X(n);throw new Error("showSelectFolderDialogPromise: No method is available for opening the folder dialog")},this.showTransferManager=function(e){var t=(new me).setName("showTransferManager").setMethod(v.GET);if(!N)throw new Error("showTransferManager: No method is available for opening the transfer manager");if(!e)return X(t);X(t,e)},this.showTransferMonitor=function(e,t){var n=(new me).setName("showTransferMonitor").setMethod(v.GET).setParam(e).setValidator(de);if(!N)throw new Error("showTransferMonitor: No method is available for opening the transfer monitor");if(!t)return X(n);X(n,t)},this.start=function(){if(R(i))return A(-1,"Please call #initSession first.");if(W()&&window.AsperaMobile){var e=window.AsperaMobile.version();return T.debug("Detected mobile app version: ".concat(e)),void(e?(J(y.RUNNING),U()):J(y.FAILED))}F.init().then((function(){T.debug("Initialization finished. Connect status: ".concat(C)),N||C!==y.RUNNING||U(),C!==y.RUNNING&&T.debug("Connect API is not ready.")})).catch((function(e){T.error("Could not initialize Connect.",e)}))},this.startTransfer=function(e,t,n){if(R(e))throw new Error("#startTransfer transferSpec is missing or invalid");return Y({transfer_specs:[{transfer_spec:e,aspera_connect_settings:t||{}}]},n||{})},this.startTransferPromise=function(e,t){if(R(e))throw new Error("#startTransfer transferSpec is missing or invalid");if(N)return Y({transfer_specs:[{transfer_spec:e,aspera_connect_settings:t||{}}]});if(O&&window.AsperaMobile)return window.AsperaMobile.startTransfer(e);throw new Error("startTransferPromise: No transfer method is available for starting a transfer")},this.startTransfers=Y,this.stop=function(){return F.stopRequests()},this.stopTransfer=function(e,t){var n=(new me).setName("stopTransfer").setMethod(v.POST).setParam(e).setValidator(de);if(!N){if(O&&window.AsperaMobile)return window.AsperaMobile.stopTransfer(e);throw new Error("stopTransfer: No method is available for stopping a transfer")}if(!t)return X(n);X(n,t)},this.testSshPorts=function(e,t){var n={};n.remote_host=e.remote_host,n.ssh_port=e.ssh_port||33001,n.timeout_sec=e.timeout_sec||3;var r=(new me).setName("testSshPorts").setMethod(v.POST).setBody(n);if(!N){if(O&&window.AsperaMobile)return window.AsperaMobile.testSshPorts(n);throw new Error("testSshPorts: No method is available for testing ports")}if(!t)return X(r);X(r,t)},this.version=function(e){var t=(new me).setName("version").setMethod(v.GET);if(!N){if(O&&window.AsperaMobile)return new Promise((function(e){var t;e(null===(t=window.AsperaMobile)||void 0===t?void 0:t.version())}));throw new Error("version: No method is available for checking Connect version")}if(!e)return X(t);X(t,e)}};ve.EVENT=b,ve.HTTP_METHOD=v;var ye=O(y);delete ye.DEGRADED,delete ye.STOPPED,delete ye.WAITING,ve.STATUS=ye,ve.TRANSFER_STATUS={CANCELLED:"cancelled",COMPLETED:"completed",FAILED:"failed",INITIATING:"initiating",QUEUED:"queued",REMOVED:"removed",RUNNING:"running",WILLRETRY:"willretry"};var be={Connect:ve,ConnectInstaller:$,Logger:T,Utils:J},we={},Se="object"==typeof window?window:{};Se.AW4&&(we=Se.AW4),window.AW4=i(i({},be),we)},830(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.websocketService=t.WebsocketService=void 0;var r=n(851),o=n(540),i=n(156),a=function(){function e(){var e=this;this.sockets=new Map,this.isConnected=!1,this.initPromise=(0,r.generatePromiseObjects)(),this.handleOpen=function(){!e.isConnected&&e.joinChannel()&&(e.isConnected=!0,e.updateRpcPort(),e.notifyEvent("RECONNECT"))},this.handleClose=function(){e.isConnected&&(e.isConnected=!1,e.notifyEvent("CLOSED")),e.globalSocket?e.reconnect():e.handleNotReady()},this.handleError=function(){(0,r.errorLog)(o.messages.websocketClosedError)},this.handleMessage=function(t){var n=(0,r.safeJsonParse)(t.data);if(n&&1===n.id)e.initPromise.resolver(n);else{var o=e.sockets.get(n.method);"function"==typeof o&&n.params&&o(n.params)}}}return e.prototype.handleNotReady=function(){(0,r.errorLog)(o.messages.websocketNotReady)},e.prototype.joinChannel=function(){return this.globalSocket?(this.globalSocket.send((0,r.safeJsonString)({jsonrpc:"2.0",method:"subscribe_transfer_activity",params:[i.asperaSdk.globals.appId],id:1})),!0):(this.handleNotReady(),!1)},e.prototype.registerMessage=function(e,t){this.sockets.get(e)||this.sockets.set(e,(function(e){t(e.result)}))},e.prototype.registerEvent=function(e){this.eventListener=e,this.eventListener(this.isConnected?"RECONNECT":"CLOSED")},e.prototype.init=function(){return this.connect(),this.initPromise.promise},e.prototype.connect=function(){var e=this;this.getWebSocketConnection(i.asperaSdk.globals.rpcPort).then((function(t){e.globalSocket=t,e.globalSocket.onerror=e.handleError,e.globalSocket.onclose=e.handleClose,e.globalSocket.onopen=e.handleOpen,e.globalSocket.onmessage=e.handleMessage,e.handleOpen()})).catch((function(){e.reconnect()}))},e.prototype.reconnect=function(){var e=this;this.globalSocket&&this.globalSocket.close(),setTimeout((function(){e.connect()}),1e3)},e.prototype.getWebSocketConnection=function(e){var t=(0,r.getWebsocketUrl)(i.asperaSdk.globals.asperaAppUrl);return new Promise((function(n,r){var o=new WebSocket("".concat(t,":").concat(e));o.onopen=function(){n(o)},o.onerror=function(){r("Connection failed on port ".concat(e))}}))},e.prototype.notifyEvent=function(e){"function"==typeof this.eventListener&&this.eventListener(e)},e.prototype.updateRpcPort=function(){if(this.globalSocket){var e=new URL(this.globalSocket.url);i.asperaSdk.globals.rpcPort=Number(e.port)}},e}();t.WebsocketService=a,t.websocketService=new a,t.default=a},851(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.safeJsonParse=t.safeJsonString=t.getInstallerUrls=t.isSafari=t.isValidURL=t.throwError=t.randomUUID=t.getCurrentPlatform=t.getWebsocketUrl=t.isValidTransferSpec=t.generateErrorBody=t.errorLog=t.generatePromiseObjects=void 0;var r=n(563);t.generatePromiseObjects=function(){var e,t;return{promise:new Promise((function(n,r){e=n,t=r})),resolver:e,rejecter:t}},t.errorLog=function(e,t){t&&t.code&&t.message&&(t={code:t.code,message:t.message,data:t.data}),"object"==typeof window&&(Array.isArray(window.asperaSdkLogs)||(window.asperaSdkLogs=[]),window.asperaSdkLogs.push({message:e,debugData:t})),console.warn("Aspera SDK: ".concat(e),t)},t.generateErrorBody=function(e,t){var n={error:!0,message:e};return t&&t.code&&t.message&&(n.debugData={code:t.code,message:t.message,data:t.data}),n},t.isValidTransferSpec=function(e){return!(!e||"object"!=typeof e||"string"!=typeof e.direction||"string"!=typeof e.remote_host||!Array.isArray(e.paths))},t.getWebsocketUrl=function(e){var t;0===e.indexOf("http:")?t="ws":0===e.indexOf("https:")&&(t="wss");var n=e.replace("http://","//").replace("https://","//");return"".concat(t,":").concat(n)},t.getCurrentPlatform=function(){var e=navigator.userAgent;return/Mac/.test(e)?"macos":/Win/.test(e)?"windows":/Linux/.test(e)?"linux":"unknown"},t.randomUUID=function(){var e;return(null===(e=window.crypto)||void 0===e?void 0:e.randomUUID)?window.crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=Number((((new Date).getTime()+16)*Math.random()).toFixed())%16;return"x"!==e&&(t=3&t|8),t.toString(16)}))},t.throwError=function(e,n){return(0,t.errorLog)(e,n),new Promise((function(r,o){o((0,t.generateErrorBody)(e,n))}))},t.isValidURL=function(e){try{return new URL(e),!0}catch(e){return!1}},t.isSafari=function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream},t.getInstallerUrls=function(){return{base:r.baseInstallerUrl,latest:r.installerUrl}},t.safeJsonString=function(e){try{return JSON.stringify(e)}catch(n){return(0,t.errorLog)("safeJsonString: unable to stringify JSON",{error:n,json:e}),""}},t.safeJsonParse=function(e){if(e&&"object"==typeof e)return e;try{return JSON.parse(e)}catch(n){return void(0,t.errorLog)("safeJsonParse: unable to parse JSON",{error:n,json:e})}},t.default={errorLog:t.errorLog,generateErrorBody:t.generateErrorBody,generatePromiseObjects:t.generatePromiseObjects,getCurrentPlatform:t.getCurrentPlatform,getWebsocketUrl:t.getWebsocketUrl,isSafari:t.isSafari,isValidURL:t.isValidURL,isValidTransferSpec:t.isValidTransferSpec,randomUUID:t.randomUUID,throwError:t.throwError,getInstallerUrls:t.getInstallerUrls,safeJsonString:t.safeJsonString,safeJsonParse:t.safeJsonParse}},869(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileSelected=t.HttpTransfer=void 0;var n=function(){function e(e,t,n,r,o){this.httpGatewayTransfer=!0,this.recentPackets=[],this.uuid=e,this.status=r||"initiating",this.add_time=(new Date).toISOString(),this.transfer_spec=t,this.transport="http_gateway",o&&"object"==typeof o&&o.serverUrlOverride&&(this.serverUrlOverride=o.serverUrlOverride),this.files=n.map((function(e){return{lastModified:e.lastModified,name:e.name,size:e.size,type:e.type}})),this.current_file=this.files[0]?this.files[0].name:""}return e.prototype.setEndTime=function(){this.end_time=(new Date).toISOString()},Object.defineProperty(e.prototype,"calculated_rate_kbps",{get:function(){if(this.recentPackets.length){var e=this.recentPackets[this.recentPackets.length-1].timeStamp-this.recentPackets[0].timeStamp,t=0;if(this.recentPackets.forEach((function(e){t+=e.bytes})),e&&t)return 8*t/(e/1e6)/1e3}return 0},enumerable:!1,configurable:!0}),e.prototype.recentPacketTransfer=function(e){this.recentPackets.length>=5&&this.recentPackets.shift(),this.recentPackets.push({timeStamp:1e3*(new Date).getTime(),bytes:e})},Object.defineProperty(e.prototype,"elapsed_usec",{get:function(){return 1e3*((this.end_time?new Date(this.end_time).getTime():(new Date).getTime())-new Date(this.add_time).getTime())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"percentage",{get:function(){return this.bytes_written>0&&this.bytes_written<=this.bytes_expected?this.bytes_written/this.bytes_expected:this.bytes_written>this.bytes_expected?1:0},enumerable:!1,configurable:!0}),e}();t.HttpTransfer=n;t.FileSelected=function(e){this.name=e.name,this.size=e.size,this.type=e.type}},885(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HttpGateway=t.ActivityTracking=t.TransferResponse=t.ServerInfo=void 0;var r=n(131),o=n(888),i=n(211),a=function(){function e(){this.chunkSize=64e3,this.mainContainerId="aspera-httpgateway",this.formContainerId="aspera-httpgateway-form-container",this.downloadsContainerId="aspera-httpgateway-downloads-container",this.formsAvailable=new Map,this.formsFilesFromDrop=new Map,this.folderFiles=new Map,this.softwareMode=!1,this.supportMultipleServers=!1,this.concurrentUploads=3,this.dropzonesCreated=new Map}return e.prototype.createOrUseForm=function(e){if(this.formsAvailable.get(e))return this.formsAvailable.get(e);var t=document.createElement("form");return t.id=e,this.formsAvailable.set(e,t),this.formContainer.appendChild(t),this.formsAvailable.get(e)},e.prototype.deleteFormFromContainer=function(e){var t=this.formsAvailable.get(e);this.formsFilesFromDrop.delete(e),t&&(this.formContainer.removeChild(t),this.formsAvailable.delete(e))},e.prototype.removeAllFormsFromContainer=function(){for(;this.formContainer.firstChild;)this.formContainer.removeChild(this.formContainer.firstChild)},e.prototype.getOrCreateFormFileListFromDrop=function(e){return this.formsFilesFromDrop.get(e)||this.formsFilesFromDrop.set(e,[]),this.formsFilesFromDrop.get(e)},e.prototype.getOrCreateFolderDataList=function(e){return this.folderFiles.get(e)||this.folderFiles.set(e,new Map),this.folderFiles.get(e)},e.prototype.setUpServer=function(e,t,n){"string"==typeof e&&(this.serverUrl=e),this.softwareMode=!!t,this.supportMultipleServers=!!n,this.softwareMode||(this.mainContainer||(this.mainContainer=document.createElement("div"),this.mainContainer.id=this.mainContainerId,this.mainContainer.setAttribute("style",r.hiddenStyleList),document.querySelector("body").appendChild(this.mainContainer)),this.formContainer||(this.formsAvailable.clear(),this.formContainer=document.createElement("div"),this.formContainer.id=this.formContainerId,document.querySelector("#".concat(this.mainContainerId)).appendChild(this.formContainer)),this.downloadsContainer||(this.downloadsContainer=document.createElement("div"),this.downloadsContainer.id=this.downloadsContainerId,document.querySelector("#".concat(this.mainContainerId)).appendChild(this.downloadsContainer)))},e.prototype.backupDownloadMethod=function(e){window.alert(o.messages.loadingDownload),window.location.href=e},e.prototype.triggerDownloadFromUrl=function(e){var t=this;try{var n=document.createElement("iframe");n.src=e,n.onerror=function(n){(0,i.errorLog)(o.messages.failedToGenerateIframe,n),t.backupDownloadMethod(e)},document.querySelector("#".concat(this.downloadsContainerId)).appendChild(n)}catch(t){(0,i.errorLog)(o.messages.failedToGenerateIframe,t),this.backupDownloadMethod(e)}},e}();t.ServerInfo=function(){};t.TransferResponse=function(){};var s=function(){function e(){this.transfers=new Map,this.callbacks=new Map,this.needCallback=!1,this.queuedUploads=[],this.pollCallbacks()}return e.prototype.getAllTransfersResponse=function(){var e=this.getAllTransfers();return{iteration_token:"",result_count:e.length,transfers:e}},e.prototype.clearNonActiveTransfers=function(){var e=this;this.getAllTransfers().filter((function(e){return"completed"===e.status||"failed"===e.status})).map((function(e){return e.uuid})).forEach((function(t){e.removeTransfer(t)}))},e.prototype.pollCallbacks=function(){var e=this;setTimeout((function(){e.needCallback&&e.callbacks.forEach((function(t){"function"==typeof t&&t(e.getAllTransfersResponse())})),e.needCallback=!1,e.pollCallbacks()}),2e3)},e.prototype.triggerActivityCallbacks=function(){this.needCallback=!0},e.prototype.setCallback=function(e){if("function"==typeof e){var t="callback-".concat(this.callbacks.size+1);return this.callbacks.set(t,e),t}(0,i.errorLog)(o.messages.callbackIsNotFunction)},e.prototype.removeCallback=function(e){this.callbacks.delete(e)},e.prototype.setTransfer=function(e,t){this.transfers.set(e,t),this.triggerActivityCallbacks()},e.prototype.getTransferById=function(e){return this.transfers.get(e)},e.prototype.getActiveTransfers=function(){return(0,i.iterableToArray)(this.transfers.values()).filter((function(e){return"completed"!==e.status&&"failed"!==e.status}))},e.prototype.removeTransfer=function(e){this.transfers.delete(e),this.triggerActivityCallbacks()},e.prototype.getAllTransfers=function(e){var t=[],n=new Map;return this.transfers.forEach((function(e,r){t.push(e),n.set(r,e)})),e?n:t},e}();t.ActivityTracking=s;var l=function(){function e(){var e=this;this.globals=new a,this.activityTracking=new s,this.checkForPageLeave=function(t){if(e.activityTracking.getActiveTransfers().length)return t.preventDefault(),t.returnValue=o.messages.leavingWhileUploading,o.messages.leavingWhileUploading;delete t.returnValue}}return Object.defineProperty(e.prototype,"isReady",{get:function(){return this.globals.serverVerified||this.globals.supportMultipleServers},enumerable:!1,configurable:!0}),e.prototype.overwriteDefaultChunkSize=function(e){e&&e>0?this.globals.chunkSize=e:(0,i.errorLog)(o.messages.invalidChunkSize,{requestedSize:e})},e.prototype.overwriteDefaultConcurrentUploads=function(e){e&&e>0?this.globals.concurrentUploads=e:(0,i.errorLog)(o.messages.invalidConcurrentUploads,{requestedSize:e})},e}();t.HttpGateway=l},888(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.messages=void 0,t.messages={serverUrlNotSet:"Server URL not set. Call init function",serverError:"Unable to communicate with HTTP Gateway server",serverNotVerified:"The HTTP Gateway server has not been verified. Run test or init first",downloadFailed:"The download failed to initiate",streamFailed:"The stream failed to initiate",notValidTransferSpec:"The supplied transferSpec is not valid",invalidServerUrl:"The supplied server URL is invalid",unableToGetFilesForUpload:"Unable to get files for upload based on transferSpec",unableToUpload:"Unable to upload. Server encountered an error",failedToGetDownloadUrl:"Unable to retrieve HTTP download URL",failedToGetStreamUrl:"Unable to retrieve HTTP stream URL",streamInjectDomInvalid:"Unable to find injection point for video player",failedToGenerateIframe:"Unable to generate IFRAME for download. Using new window",callbackIsNotFunction:"The provided callback is not a function",websocketClosedUnexpect:"The websocket was closed unexpectedly",invalidChunkSize:"The provided chunk size for uploads is invalid",invalidConcurrentUploads:"The provided number for concurrent uploads is invalid",unableToParseDataForUpload:"Unable to parse data for uploading",unableToDeepCopyObject:"Unable to deep copy object or array",unableToFindElementOnPage:"Unable to find the element on the current page",unauthorizedFilesForUpload:"Unauthorized files included in the transferSpec. All files for upload must be picked via getFilesForUpload",startDownload:"Start HTTP download?",dropFoldersNotAllowed:"Dropping folders is not currently allowed",yes:"Yes",no:"No",close:"Close",leavingWhileUploading:"An upload is in progress. If you leave the upload will be canceled.",unableToReadFolder:"The dropped item could not be parsed. Please try selecting via the select file/folder option",streamingTooManyFiles:"Too many files requested for a stream. Only one video file is allowed in the transferSpec",loadingDownload:"The download will now open in this window."}},907(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.AsperaSdk=t.ActivityTracking=void 0;var o=n(563),i=n(540),a=n(120),s=n(573),l=n(851),u=n(830),c=n(156),d=function(){function e(){this.asperaAppUrl="http://127.0.0.1",this.rpcPort=33024,this.installerUrl=o.installerUrl,this.asperaAppVerified=!1,this.supportMultipleUsers=!1,this.dropZonesCreated=new Map,this.httpGatewayVerified=!1,this.connectStatus="WAITING"}return e.prototype.backupLaunchMethod=function(e){window.alert(i.messages.loadingProtocol),window.location.href=e},e.prototype.launch=function(){var e=this;try{var t=document.createElement("iframe");t.src=o.protocol,t.onerror=function(t){(0,l.errorLog)(i.messages.failedToGenerateIframe,t),e.backupLaunchMethod(o.protocol)},t.setAttribute("style",o.hiddenStyleList),document.body.appendChild(t)}catch(e){(0,l.errorLog)(i.messages.failedToGenerateIframe,e),this.backupLaunchMethod(o.protocol)}},Object.defineProperty(e.prototype,"sdkResponseData",{get:function(){return r(r({verified:this.asperaAppVerified},this.asperaSdkInfo),{httpGateway:{verified:this.httpGatewayVerified,url:this.httpGatewayUrl,info:this.httpGatewayInfo},connect:{active:"RUNNING"===this.connectStatus,status:this.connectStatus}})},enumerable:!1,configurable:!0}),e}(),f=function(){function e(){this.activity_callbacks=new Map,this.event_callbacks=new Map,this.lastWebSocketEvent="CLOSED",this.lastNotifiedWebSocketEvent=void 0}return e.prototype.handleTransferActivity=function(e){"transferUpdated"!==e.type&&"transferRemoved"!==e.type||this.activity_callbacks.forEach((function(t){"function"==typeof t&&t(e.data)}))},e.prototype.handleWebSocketEvents=function(e){this.lastWebSocketEvent!==e&&(this.lastWebSocketEvent=e,this.notifyWebSocketEvent(e))},e.prototype.notifyWebSocketEvent=function(e){this.lastNotifiedWebSocketEvent!==e&&(this.lastNotifiedWebSocketEvent=e,this.event_callbacks.forEach((function(t){"function"==typeof t&&t(e)})))},e.prototype.sendManualEventCallback=function(e){this.event_callbacks.forEach((function(t){"function"==typeof t&&t(e)}))},e.prototype.handleClientEvents=function(e){var t;t=e?this.lastWebSocketEvent:"CLOSED",this.notifyWebSocketEvent(t)},e.prototype.handleSafariExtensionEvents=function(e){c.asperaSdk.SAFARI_EXTENSION_STATUS=e},e.prototype.setup=function(){var e=this;c.asperaSdk.globals.sessionId&&this.registerDesktopAppSession();var t=function(){return(0,l.isSafari)()?a.safariClient.monitorTransferActivity():u.websocketService.init().then((function(){u.websocketService.registerMessage("transfer_activity",(function(t){return e.handleTransferActivity(t)})),u.websocketService.registerEvent((function(t){return e.handleWebSocketEvents(t)}))}))};if(c.asperaSdk.globals.supportMultipleUsers){var n=0,r=function(e){return e&&(c.asperaSdk.globals.rpcPort=c.asperaSdk.globals.rpcPort+1),c.asperaSdk.globals.rpcPort>33029?(n++,c.asperaSdk.globals.rpcPort=33024,new Promise((function(e){return setTimeout(e,1050*n)})).then((function(){return r(!1)}))):s.client.request("verify_session",{app_id:c.asperaSdk.globals.appId,session_id:c.asperaSdk.globals.sessionId}).then((function(e){return e.result?t():r(!0)})).catch((function(){return n>5?(c.asperaSdk.globals.rpcPort=33024,Promise.reject("Unable to find port running for session")):r(!0)}))};return r(!1)}return t()},e.prototype.setCallback=function(e){if("function"==typeof e){var t="callback-".concat(this.activity_callbacks.size+1);return this.activity_callbacks.set(t,e),t}(0,l.errorLog)(i.messages.callbackIsNotFunction)},e.prototype.removeCallback=function(e){this.activity_callbacks.delete(e)},e.prototype.setWebSocketEventCallback=function(e){if("function"==typeof e){var t="callback-".concat(this.event_callbacks.size+1);return this.event_callbacks.set(t,e),e(this.lastWebSocketEvent),t}(0,l.errorLog)(i.messages.callbackIsNotFunction)},e.prototype.removeWebSocketEventCallback=function(e){this.event_callbacks.delete(e)},e.prototype.registerDesktopAppSession=function(){var e=document.createElement("iframe");e.style.display="none",e.src="aspera://initialize?app_id=".concat(c.asperaSdk.globals.appId,"&session_id=").concat(c.asperaSdk.globals.sessionId),document.body.appendChild(e),setTimeout((function(){document.body.removeChild(e)}),1e3)},e}();t.ActivityTracking=f;var p=function(){function e(){this.globals=new d,this.activityTracking=new f,this.httpGatewaySelectedFiles=new Map,this.SAFARI_EXTENSION_STATUS="DISABLED",this.httpGatewayTransferStore=new Map,this.httpGatewayInBrowserDownloadThreshold=1e9}return Object.defineProperty(e.prototype,"isReady",{get:function(){return this.globals.asperaAppVerified&&""!==this.globals.appId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"useConnect",{get:function(){return"RUNNING"===this.globals.connectStatus},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"httpGatewayIsReady",{get:function(){return!!this.globals.httpGatewayVerified},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"useHttpGateway",{get:function(){return this.httpGatewayIsReady&&!this.isReady&&!this.useConnect},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"useOldHttpGateway",{get:function(){return!!this.useHttpGateway&&Number(this.globals.httpGatewayInfo.version.split(".")[0]||3)<=2},enumerable:!1,configurable:!0}),e}();t.AsperaSdk=p},964(e,t,n){e.exports=function(){"use strict";function e(e){return"function"==typeof e}var t=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=0,o=void 0,i=void 0,a=function(e,t){p[r]=e,p[r+1]=t,2===(r+=2)&&(i?i(h):b())};var s="undefined"!=typeof window?window:void 0,l=s||{},u=l.MutationObserver||l.WebKitMutationObserver,c="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function f(){var e=setTimeout;return function(){return e(h,1)}}var p=new Array(1e3);function h(){for(var e=0;e<r;e+=2)(0,p[e])(p[e+1]),p[e]=void 0,p[e+1]=void 0;r=0}var g,m,v,y,b=void 0;function w(e,t){var n=this,r=new this.constructor(T);void 0===r[E]&&L(r);var o=n._state;if(o){var i=arguments[o-1];a((function(){return F(o,r,i,n._result)}))}else O(n,r,e,t);return r}function S(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(T);return P(t,e),t}b=c?function(){return process.nextTick(h)}:u?(m=0,v=new u(h),y=document.createTextNode(""),v.observe(y,{characterData:!0}),function(){y.data=m=++m%2}):d?((g=new MessageChannel).port1.onmessage=h,function(){return g.port2.postMessage(0)}):void 0===s?function(){try{var e=Function("return this")().require("vertx");return void 0!==(o=e.runOnLoop||e.runOnContext)?function(){o(h)}:f()}catch(e){return f()}}():f();var E=Math.random().toString(36).substring(2);function T(){}var k=void 0,C=1,_=2;function x(t,n,r){n.constructor===t.constructor&&r===w&&n.constructor.resolve===S?function(e,t){t._state===C?A(e,t._result):t._state===_?N(e,t._result):O(t,void 0,(function(t){return P(e,t)}),(function(t){return N(e,t)}))}(t,n):void 0===r?A(t,n):e(r)?function(e,t,n){a((function(e){var r=!1,o=function(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}(n,t,(function(n){r||(r=!0,t!==n?P(e,n):A(e,n))}),(function(t){r||(r=!0,N(e,t))}),e._label);!r&&o&&(r=!0,N(e,o))}),e)}(t,n,r):A(t,n)}function P(e,t){if(e===t)N(e,new TypeError("You cannot resolve a promise with itself"));else if(o=typeof(r=t),null===r||"object"!==o&&"function"!==o)A(e,t);else{var n=void 0;try{n=t.then}catch(t){return void N(e,t)}x(e,t,n)}var r,o}function I(e){e._onerror&&e._onerror(e._result),R(e)}function A(e,t){e._state===k&&(e._result=t,e._state=C,0!==e._subscribers.length&&a(R,e))}function N(e,t){e._state===k&&(e._state=_,e._result=t,a(I,e))}function O(e,t,n,r){var o=e._subscribers,i=o.length;e._onerror=null,o[i]=t,o[i+C]=n,o[i+_]=r,0===i&&e._state&&a(R,e)}function R(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,o=void 0,i=e._result,a=0;a<t.length;a+=3)r=t[a],o=t[a+n],r?F(n,r,o,i):o(i);e._subscribers.length=0}}function F(t,n,r,o){var i=e(r),a=void 0,s=void 0,l=!0;if(i){try{a=r(o)}catch(e){l=!1,s=e}if(n===a)return void N(n,new TypeError("A promises callback cannot return that same promise."))}else a=o;n._state!==k||(i&&l?P(n,a):!1===l?N(n,s):t===C?A(n,a):t===_&&N(n,a))}var D=0;function L(e){e[E]=D++,e._state=void 0,e._result=void 0,e._subscribers=[]}var M=function(){function e(e,n){this._instanceConstructor=e,this.promise=new e(T),this.promise[E]||L(this.promise),t(n)?(this.length=n.length,this._remaining=n.length,this._result=new Array(this.length),0===this.length?A(this.promise,this._result):(this.length=this.length||0,this._enumerate(n),0===this._remaining&&A(this.promise,this._result))):N(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;this._state===k&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===S){var o=void 0,i=void 0,a=!1;try{o=e.then}catch(e){a=!0,i=e}if(o===w&&e._state!==k)this._settledAt(e._state,t,e._result);else if("function"!=typeof o)this._remaining--,this._result[t]=e;else if(n===U){var s=new n(T);a?N(s,i):x(s,e,o),this._willSettleAt(s,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===k&&(this._remaining--,e===_?N(r,n):this._result[t]=n),0===this._remaining&&A(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;O(e,void 0,(function(e){return n._settledAt(C,t,e)}),(function(e){return n._settledAt(_,t,e)}))},e}();var U=function(){function t(e){this[E]=D++,this._result=this._state=void 0,this._subscribers=[],T!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t((function(t){P(e,t)}),(function(t){N(e,t)}))}catch(t){N(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var n=this,r=n.constructor;return e(t)?n.then((function(e){return r.resolve(t()).then((function(){return e}))}),(function(e){return r.resolve(t()).then((function(){throw e}))})):n.then(t,t)},t}();return U.prototype.then=w,U.all=function(e){return new M(this,e).promise},U.race=function(e){var n=this;return t(e)?new n((function(t,r){for(var o=e.length,i=0;i<o;i++)n.resolve(e[i]).then(t,r)})):new n((function(e,t){return t(new TypeError("You must pass an array to race."))}))},U.resolve=S,U.reject=function(e){var t=new this(T);return N(t,e),t},U._setScheduler=function(e){i=e},U._setAsap=function(e){a=e},U._asap=a,U.polyfill=function(){var e=void 0;if(void 0!==n.g)e=n.g;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=U},U.Promise=U,U}()},989(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(156)})();
3
+ //# sourceMappingURL=aspera-sdk.js.map