PageSourceSearch

https://press.fulcrumwheels.com/chunk_e589092e.74fb4cbc576e3043119…15add473ca015c596ed42a73afca5d2fc49bcb41.js

js fulcrumwheels.com collected 2026-09-26 07:59:09 UTC 62,834 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkportals_ui=self.webpackChunkportals_ui||[]).push([[1508],{23676(e,t,r){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{A:()=>y});var f=r(90179),p=r.n(f),d=r(4797),h=r(24093),b=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,u(t).apply(this,arguments))}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,e),r=t,(n=[{key:"getUrlForTaskCollaborators",value:function(e){return"".concat(this.getBaseApiUrl(),"/undoc/tasks/").concat(e,"/task_collaborators?role=ASSIGNEE&limit=").concat(h.zYo)}},{key:"getUrlForTaskCollaboratorCreate",value:function(){return"".concat(this.getBaseApiUrl(),"/undoc/task_collaborators")}},{key:"getUrlForTaskCollaborator",value:function(e){return"".concat(this.getBaseApiUrl(),"/undoc/task_collaborators/").concat(e)}},{key:"getUrlForTaskGroupCreate",value:function(){return"".concat(this.getBaseApiUrl(),"/undoc/task_collaborators/expand_group")}},{key:"createTaskCollaborator",value:function(e){var t=e.errorCallback,r=e.file,n=e.successCallback,o=e.task,a=e.user;this.errorCode=h.dEV;var s={data:{task:{type:"task",id:o.id},target:{type:"user",id:a.id}}};this.post({id:r.id,url:this.getUrlForTaskCollaboratorCreate(),data:i({},s),successCallback:n,errorCallback:t})}},{key:"createTaskCollaboratorsforGroup",value:function(e){var t=e.errorCallback,r=e.file,n=e.successCallback,o=e.task,a=e.group;this.errorCode=h.dEV;var s={data:{task:{type:"task",id:o.id},target:{type:"group",id:a.id}}};this.post({id:r.id,url:this.getUrlForTaskGroupCreate(),data:i({},s),successCallback:n,errorCallback:t})}},{key:"getTaskCollaborators",value:function(e){var t=e.errorCallback,r=e.file,n=e.successCallback,o=e.task;this.errorCode=h.bx5;var i=this.getUrlForTaskCollaborators(o.id);this.get({id:r.id,successCallback:n,errorCallback:t,url:i})}},{key:"updateTaskCollaborator",value:function(e){var t=e.errorCallback,r=e.file,n=e.successCallback,o=e.taskCollaborator;this.errorCode=h.oHz;var a={data:p()(o,"id")};this.put({id:r.id,url:this.getUrlForTaskCollaborator(o.id),data:i({},a),successCallback:n,errorCallback:t})}},{key:"deleteTaskCollaborator",value:function(e){var t=e.errorCallback,r=e.file,n=e.successCallback,o=e.taskCollaborator;this.errorCode=h.U4A,this.delete({id:r.id,url:this.getUrlForTaskCollaborator(o.id),successCallback:n,errorCallback:t})}}])&&s(r.prototype,n),o&&s(r,o),t}(d.A);const y=b},19684(e,t,r){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?o(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{A:()=>h});var f=r(4797),p=r(24093),d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,u(t).apply(this,arguments))}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,e),r=t,(n=[{key:"getUrlForTaskLinkCreate",value:function(){return"".concat(this.getBaseApiUrl(),"/undoc/task_links")}},{key:"createTaskLink",value:function(e){var t=e.errorCallback,r=e.file,n=e.successCallback,o=e.task;this.errorCode=p.Lzg;var a={data:{target:{id:r.id,type:"file"},task:{id:o.id,type:"task"}}};this.post({id:r.id,url:this.getUrlForTaskLinkCreate(),data:i({},a),successCallback:n,errorCallback:t})}}])&&s(r.prototype,n),o&&s(r,o),t}(f.A);const h=d},4797(e,t,r){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}r.d(t,{A:()=>h});var l=r(23254),f=r(24093),p=[f.$S_,f.Hie,f.Bwp,f.Pbz,f.rNP,f.dS6],d=function(e){function t(e){var r=e.retryableStatusCodes,n=void 0===r?p:r,u=a(e,["retryableStatusCodes"]);return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,c(t).call(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},u,{retryableStatusCodes:n})))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,e),t}(l.A);const h=d},68556(e,t,r){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?o(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function c(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}r.d(t,{A:()=>y});var d=r(4797),h=r(24093),b=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),l(this,f(t).apply(this,arguments))}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),r=t,(n=[{key:"getUrlForFileTasks",value:function(e){return"".concat(this.getBaseApiUrl(),"/undoc/files/").concat(e,"/linked_tasks?limit=").concat(h.zYo)}},{key:"getUrlForTaskCreateWithDeps",value:function(){return"".concat(this.getBaseApiUrl(),"/undoc/tasks/with_dependencies")}},{key:"getUrlForTask",value:function(e){return"".concat(this.getBaseApiUrl(),"/undoc/tasks/").concat(e)}},{key:"getUrlForTaskWithDeps",value:function(e){return"".concat(this.getBaseApiUrl(),"/undoc/tasks/").concat(e,"/with_dependencies")}},{key:"updateTaskWithDeps",value:function(e){var t=e.errorCallback,r=e.file,n=e.successCallback,o=e.task;this.errorCode=h.xbi;var a=o.addedAssignees.map((function(e){return{op:e.item&&"group"===e.item.type?"add_task_collaborators_expand_group":"add_task_collaborator",payload:{target:{type:e.item&&"group"===e.item.type?"group":"user",id:e.id}}}})),u=o.removedAssignees.map((function(e){return{op:"delete_task_collaborator",id:e.id}})),l=(o.id,o.addedAssignees,o.removedAssignees,c(o,["id","addedAssignees","removedAssignees"]));this.put({id:r.id,url:this.getUrlForTaskWithDeps(o.id),data:{data:[{op:"update_task",payload:i({},l)}].concat(s(a),s(u))},successCallback:n,errorCallback:t})}},{key:"deleteTask",value:function(e){var t=e.errorCallback,r=e.file,n=e.successCallback,o=e.task;this.errorCode=h.LTW,this.delete({id:r.id,url:this.getUrlForTask(o.id),successCallback:n,errorCallback:t})}},{key:"getTasksForFile",value:function(e){var t=e.errorCallback,r=e.file,n=e.successCallback;this.errorCode=h.fpo,this.get({id:r.id,url:this.getUrlForFileTasks(r.id),successCallback:n,errorCallback:t})}},{key:"getTask",value:function(e){var t=e.errorCallback,r=e.file,n=e.id,o=e.successCallback;this.errorCode=h.fpo,this.get({id:r.id,url:this.getUrlForTask(n),successCallback:o,errorCallback:t})}},{key:"createTaskWithDeps",value:function(e){var t=e.errorCallback,r=e.file,n=e.successCallback,o=e.task,a=e.assignees;this.errorCode=h.Oq5;var s=a.map((function(e){return{target:{type:e.item&&"group"===e.item.type?"group":"user",id:e.id}}})),c=[{target:{id:r.id,type:"file"}}],u={task:i({},o),assigned_to:s,task_links:c};this.post({id:r.id,url:this.getUrlForTaskCreateWithDeps(),data:{data:i({},u)},successCallback:n,errorCallback:t})}}])&&u(r.prototype,n),o&&u(r,o),t}(d.A);const y=b},96248(e,t,r){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}
1function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{A:()=>d});var l=r(23254),f=r(24093),p=function(e){function t(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,c=new Array(i),l=0;l<i;l++)c[l]=arguments[l];return r=function(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?s(e):t}(this,(e=a(t)).call.apply(e,[this].concat(c))),u(s(r),"retryCount",0),u(s(r),"reachabilityRetryCount",0),u(s(r),"isUploadFallbackLogicEnabled",!1),u(s(r),"makePreflightRequest",(function(){if(!r.isDestroyed()){var e="".concat(r.getBaseApiUrl(),"/files/content");if(r.fileId&&(e=e.replace("content","".concat(r.fileId,"/content"))),r.isUploadFallbackLogicEnabled){var t=r.uploadsReachability.getUnreachableHostsUrls();0!==t.length&&(e+="?unreachable_hosts=".concat(t.join(",")))}var n=r.file,o=n.size,i=n.name,a={name:r.fileName||i,parent:{id:r.folderId},description:r.fileDescription,size:o};r.xhr.options({url:e,data:a,successHandler:function(e){r.isUploadFallbackLogicEnabled?r.preflightSuccessReachabilityHandler(e):r.preflightSuccessHandler(e)},errorHandler:r.preflightErrorHandler})}})),u(s(r),"preflightSuccessReachabilityHandler",function(){var e,t=(e=regeneratorRuntime.mark((function e(t){var n,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.data,!r.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:if(o=n.upload_url){e.next=7;break}return r.preflightSuccessHandler({data:n}),e.abrupt("return");case 7:if((i=r.getUploadHostFromUrl(o))!=="".concat(f.enF,"/")&&i!=="".concat(f.wUF,"/")&&i!=="".concat(f.nlQ,"/")){e.next=11;break}return r.preflightSuccessHandler({data:n}),e.abrupt("return");case 11:return e.next=13,r.uploadsReachability.isReachable(i);case 13:e.sent?r.preflightSuccessHandler({data:n}):r.reachabilityRetryCount>=10?r.preflightSuccessHandler({data:{}}):(r.reachabilityRetryCount+=1,r.makePreflightRequest());case 15:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){function a(e){o(c,n,i,a,s,"next",e)}function s(e){o(c,n,i,a,s,"throw",e)}var c=e.apply(t,r);a(void 0)}))});return function(e){return t.apply(this,arguments)}}()),u(s(r),"preflightErrorHandler",(function(e){if(!r.isDestroyed()){r.fileName=r.file?r.file.name:"";var t=e,n=e.response;if(n&&n.data&&(t=n.data),r.retryCount>=5)r.errorCallback(t);else if(t&&409===t.status){if(r.overwrite){var o=t.context_info.conflicts.id;!r.fileId&&o&&(r.fileId=o)}else if(r.conflictCallback)r.fileName=r.conflictCallback(r.fileName);else{var i=r.fileName.substr(r.fileName.lastIndexOf("."))||"";r.fileName="".concat(r.fileName.substr(0,r.fileName.lastIndexOf(".")),"-").concat(Date.now()).concat(i)}r.makePreflightRequest(),r.retryCount+=1}else if(!t||429!==t.status&&"too_many_requests"!==t.code)t&&(t.status||"Failed to fetch"===t.message)&&"function"==typeof r.errorCallback?r.errorCallback(t):(r.retryTimeout=setTimeout(r.makePreflightRequest,Math.pow(2,r.retryCount)*f.rEk),r.retryCount+=1);else{var a=f.aO7;if(t.headers){var s=parseInt(t.headers["retry-after"]||t.headers.get("Retry-After"),10);Number.isNaN(s)||(a=s*f.rEk)}r.retryTimeout=setTimeout(r.makePreflightRequest,a),r.retryCount+=1}}})),r}var r,l,p;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,e),r=t,(l=[{key:"readFile",value:function(e,t){return new Promise((function(r,n){e.readAsArrayBuffer(t),e.onload=function(){r({buffer:e.result,readCompleteTimestamp:Date.now()})},e.onerror=n}))}},{key:"getUploadHostFromUrl",value:function(e){var t=e.split("/");return"".concat(t[0],"//").concat(t[2],"/")}}])&&i(r.prototype,l),p&&i(r,p),t}(l.A);const d=p},90509(e,t,r){function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?n(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){function a(e){i(c,n,o,a,s,"next",e)}function s(e){i(c,n,o,a,s,"throw",e)}var c=e.apply(t,r);a(void 0)}))}}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){function i(e){l(s,n,o,i,a,"next",e)}function a(e){l(s,n,o,i,a,"throw",e)}var s=e.apply(t,r);i(void 0)}))}}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{A:()=>P});var h=r(55820),b=r(63950),y=r.n(b),m=r(47627),g=r(24093),v=function(){function e(t,r,n,i,s,u){var l=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,"files",[]),c(this,"folders",{}),c(this,"uploadChildFolders",function(){var e=a(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object.values(l.folders),n=r.map((function(e){return e.upload(l.folderId,t)})),e.next=4,Promise.all(n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),c(this,"createAndUploadFolder",function(){var e=a(regeneratorRuntime.mark((function e(t,r){var n,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.buildCurrentFolderFromEntry();case 2:return n=!1,o="",e.prev=4,e.next=7,l.createFolder();case 7:i=e.sent,l.folderId=i.id,e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),e.t0.code===g.rY0?l.folderId=e.t0.context_info.conflicts[0].id:r?t(e.t0):(n=!0,o=e.t0.code,t({code:g.dlQ}));case 14:if(!r){e.next=16;break}return e.abrupt("return");case 16:a={extension:"",name:l.name,status:g.lpR,isFolder:!0,size:1,progress:100},n&&(a.status=g.uDR,a.error={code:o}),l.addFolderToUploadQueue(a);case 19:case"end":return e.stop()}}),e,null,[[4,11]])})));return function(t,r){return e.apply(this,arguments)}}()),c(this,"getFormattedFiles",(function(){return l.files.map((function(e){return{file:e,options:o({},l.fileAPIOptions,{folderId:l.folderId,uploadInitTimestamp:Date.now()})}}))})),c(this,"createFolderUploadNodesFromEntries",function(){var t=a(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all(r.map(function(){var t=a(regeneratorRuntime.mark((function t(r){var n,i,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r.isFile,i=r.name,!n){t.next=7;break}return t.next=4,(0,h.NP)(r);case 4:return a=t.sent,l.files.push(a),t.abrupt("return");case 7:l.folders[i]=new e(i,l.addFilesToUploadQueue,l.addFolderToUploadQueue,l.fileAPIOptions,o({},l.baseAPIOptions,{},l.fileAPIOptions),r);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),c(this,"readEntry",(function(e,t){e.readEntries(function(){var r=a(regeneratorRuntime.mark((function r(n){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n.length){r.next=3;break}return t(),r.abrupt("return");case 3:return r.next=5,l.createFolderUploadNodesFromEntries(n);case 5:l.readEntry(e,t);case 6:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}(),y())})),c(this,"buildCurrentFolderFromEntry",(function(){return l.entry?new Promise((function(e){var t=l.entry.createReader();l.readEntry(t,e)})):Promise.resolve()})),c(this,"getFolderId",(function(){return l.folderId})),this.name=t,this.addFilesToUploadQueue=r,this.addFolderToUploadQueue=n,this.fileAPIOptions=i,this.baseAPIOptions=s,this.entry=u}var t,r,n,i;return t=e,r=[{key:"upload",value:(i=a(regeneratorRuntime.mark((function e(t,r){var n,o=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>2&&void 0!==o[2]&&o[2],this.parentFolderId=t,e.next=4,this.createAndUploadFolder(r,n);case 4:if(!this.getFolderId()){e.next=8;break}return this.addFilesToUploadQueue(this.getFormattedFiles(),y(),!0),e.next=8,this.uploadChildFolders(r);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"createFolder",value:function(){var e=this,t=new m.A(o({},this.baseAPIOptions,{id:"folder_".concat(this.parentFolderId)}));return new Promise((function(r,n){t.create(e.parentFolderId,e.name,r,n)}))}}],r&&s(t.prototype,r),n&&s(t,n),e}();const k=v;var O=function(){function e(t,r,n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,"files",[]),this.addFilesToUploadQueue=t,this.destinationFolderId=r,this.addFolderToUploadQueue=n,this.baseAPIOptions=o}var t,r,n,o,i;return t=e,r=[{key:"buildFolderTreeFromWebkitRelativePath",value:function(e){var t=this;Array.from(e).forEach((function(e){var r=(0,h.ly)(e),n=r.webkitRelativePath;if(n){var o=(0,h.T0)(e),i=n.split("/").slice(0,-1);if(!(i.length<=0)){if(!t.folder){var a=i[0];t.folder=t.createFolderUploadNode(a,o)}1===i.length&&t.folder.files.push(r);var s=t.folder.folders,c=i.slice(1);
1c.forEach((function(e,n){s[e]||(s[e]=t.createFolderUploadNode(e,o)),n===c.length-1?s[e].files.push(r):s=s[e].folders}))}}}))}},{key:"buildFolderTreeFromDataTransferItem",value:(i=f(regeneratorRuntime.mark((function e(t){var r,n,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=(0,h.b4)(t),n=(0,h.H7)(t),o=(0,h.V2)(r),i=o.name,this.folder=this.createFolderUploadNode(i,n,o);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"createFolderUploadNode",value:function(e,t,r){return new k(e,this.addFilesToUploadQueue,this.addFolderToUploadQueue,t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},this.baseAPIOptions,{},t),r)}},{key:"upload",value:(o=f(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.errorCallback,n=t.successCallback,e.next=3,this.folder.upload(this.destinationFolderId,r,!0);case 3:(o=this.folder.getFolderId())&&n([{id:o}]);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"cancel",value:function(){}}],r&&p(t.prototype,r),n&&p(t,n),e}();const P=O},4770(e,t,r){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
1function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function l(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){function i(e){l(s,n,o,i,a,"next",e)}function a(e){l(s,n,o,i,a,"throw",e)}var s=e.apply(t,r);i(void 0)}))}}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){j(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function k(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function O(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){function i(e){k(s,n,o,i,a,"next",e)}function a(e){k(s,n,o,i,a,"throw",e)}var s=e.apply(t,r);i(void 0)}))}}function P(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e,t){return C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},C(e,t)}function j(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{A:()=>X});var R=r(63950),_=r.n(R),x=r(11741),E=r.n(x),D=r(55820),T=r(94048),U=r(51709),F=r(52427),I=r(70787),N=r(32266),H=r(24093),A=r(58156),z=r.n(A),L=r(42059),M=r(96248),B={digestReadahead:5,initialRetryDelayMs:5e3,maxRetryDelayMs:6e4,parallelism:4,requestTimeoutMs:12e4,retries:5},W=function(e){function t(e,r,s){var u;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),u=function(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?a(e):t}(this,i(t).call(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e,{shouldRetry:!1}))),c(a(u),"logEvent",(function(e,t){var r={event_type:e};return t&&(r.event_info=t),u.xhr.post({url:u.sessionEndpoints.logEvent,data:r})})),u.config=s||B,u.sessionEndpoints=r,u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),t}(M.A);const J=W;var q=function(e){function t(e,r,n,o,i,a,s,c,l,p,b,m){var g;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),g=function(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?h(e):t}(this,d(t).call(this,e,s,c)),y(h(g),"toJSON",(function(){return JSON.stringify({index:g.index,offset:g.offset,partSize:g.partSize,state:g.state,uploadedBytes:g.uploadedBytes,numUploadRetriesPerformed:g.numUploadRetriesPerformed,numDigestRetriesPerformed:g.numDigestRetriesPerformed,sha256:g.sha256,timing:g.timing})})),y(h(g),"getPart",(function(){return g.data.part||{}})),y(h(g),"upload",(function(){if(!g.isDestroyedOrPaused()){if(!g.sha256)throw new Error("Part SHA-256 unavailable");if(!g.blob)throw new Error("Part blob unavailable");var e={documentHidden:document.hidden,digest_retries:g.numDigestRetriesPerformed,timing:g.timing,parts_uploading:g.getNumPartsUploading()},t={"Content-Type":"application/octet-stream",Digest:"sha-256=".concat(g.sha256),"Content-Range":"bytes ".concat(g.offset,"-").concat(g.rangeEnd,"/").concat(g.fileSize),"X-Box-Client-Event-Info":JSON.stringify(e)};g.state=2,g.startTimestamp=Date.now(),g.xhr.uploadFile({url:g.sessionEndpoints.uploadPart,data:g.blob,headers:t,method:H.Xi2,successHandler:g.uploadSuccessHandler,errorHandler:g.uploadErrorHandler,progressHandler:g.uploadProgressHandler,withIdleTimeout:!0,idleTimeoutDuration:g.config.requestTimeoutMs})}})),y(h(g),"uploadSuccessHandler",(function(e){var t=e.data;g.isDestroyedOrPaused()||(g.state=3,g.consoleLog("Upload completed: ".concat(g.toJSON(),".")),g.data=t,g.blob=null,g.timing.uploadTime=Date.now()-g.startTimestamp,g.onSuccess(h(g)),g.uploadedBytes=g.partSize)})),y(h(g),"uploadProgressHandler",(function(e){if(!g.isDestroyedOrPaused()){var t=parseInt(e.loaded,10),r=g.uploadedBytes;g.uploadedBytes=t,g.onProgress(r,t)}})),y(h(g),"uploadErrorHandler",function(){var e=f(regeneratorRuntime.mark((function e(t){var r,n,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!g.isDestroyedOrPaused()){e.next=2;break}return e.abrupt("return");
1case 2:if(r=z()(g.xhr,"xhr.readyState",null),n=z()(g.xhr,"xhr.statusText",""),g.consoleLog("Upload failure ".concat(t.message," for part ").concat(g.toJSON(),". XHR state: ").concat(r,".")),o={message:t.message,part:{uploadedBytes:g.uploadedBytes,id:g.id,index:g.index,offset:g.offset},xhr_ready_state:r,xhr_status_text:n},i=JSON.stringify(o),g.sessionEndpoints.logEvent?(0,T.y)((function(e,t){g.logEvent("part_failure",i).then(e).catch(t)}),g.config.retries,g.config.initialRetryDelayMs).catch((function(e){return g.consoleLog("Failure in logEvent: ".concat(e.message))})):g.consoleLog("logEvent endpoint not found"),!(g.numUploadRetriesPerformed>=g.config.retries)){e.next=11;break}return g.onError(t,i),e.abrupt("return");case 11:a=(0,D.K2)(g.config.initialRetryDelayMs,g.config.maxRetryDelayMs,g.numUploadRetriesPerformed),g.numUploadRetriesPerformed+=1,g.consoleLog("Retrying uploading part ".concat(g.toJSON()," in ").concat(a," ms")),g.retryTimeout=setTimeout(g.retryUpload,a);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),y(h(g),"retryUpload",f(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!g.isDestroyedOrPaused()){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,g.listParts(g.index,1);case 5:if(!(t=e.sent)||1!==t.length||t[0].offset!==g.offset||!t[0].part_id){e.next=11;break}return g.consoleLog("Part ".concat(g.toJSON()," is available on server. Not re-uploading.")),g.id=t[0].part_id,g.uploadSuccessHandler({data:{part:t[0]}}),e.abrupt("return");case 11:throw g.consoleLog("Part ".concat(g.toJSON()," is not available on server. Re-uploading.")),new Error("Part not found on the server");case 15:e.prev=15,e.t0=e.catch(2),(r=e.t0.response)&&r.status&&g.consoleLog("Error ".concat(r.status," while listing part ").concat(g.toJSON(),". Re-uploading.")),g.numUploadRetriesPerformed+=1,g.upload();case 21:case"end":return e.stop()}}),e,null,[[2,15]])})))),y(h(g),"listParts",function(){var e=f(regeneratorRuntime.mark((function e(t,r){var n,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={offset:t,limit:r},o=(0,L.W)(g.sessionEndpoints.listParts,n),e.next=4,g.xhr.get({url:o});case 4:return i=e.sent,e.abrupt("return",i.data.entries);case 6:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),g.index=r,g.numDigestRetriesPerformed=0,g.numUploadRetriesPerformed=0,g.offset=n,g.partSize=o,g.fileSize=i,g.state=0,g.timing={},g.uploadedBytes=0,g.data={},g.config=c,g.rangeEnd=n+o-1,g.rangeEnd>i-1&&(g.rangeEnd=i-1),g.isPaused=!1,g.onSuccess=p||_(),g.onError=m||_(),g.onProgress=b||_(),g.getNumPartsUploading=l,g}var r,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(t,e),r=t,(n=[{key:"cancel",value:function(){clearTimeout(this.retryTimeout),this.blob=null,this.data={},this.destroy()}},{key:"pause",value:function(){clearTimeout(this.retryTimeout),this.isPaused=!0,this.state=1,this.xhr.abort()}},{key:"unpause",value:function(){this.isPaused=!1,this.state=2,this.retryUpload()}},{key:"reset",value:function(){this.numUploadRetriesPerformed=0,this.timing={},this.uploadedBytes=0}},{key:"isDestroyedOrPaused",value:function(){return this.isDestroyed()||this.isPaused}}])&&p(r.prototype,n),o&&p(r,o),t}(J);const Q=q;var V=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?S(e):t}(this,w(t).call(this,e,{createSession:null,uploadPart:null,listParts:null,commit:null,abort:null,logEvent:null},r)),j(S(n),"getBaseUploadUrlFromPreflightResponse",(function(e){var t=e.data;if(!t||!t.upload_url)return n.getBaseUploadUrl();var r=t.upload_url.split("/");return n.uploadHost="".concat(r[0],"//").concat(r[2]),n.getBaseUploadUrl(
1)})),j(S(n),"preflightSuccessHandler",function(){var e=O(regeneratorRuntime.mark((function e(t){var r,o,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.isDestroyed()){e.next=2;break}return e.abrupt("return");case 2:return r=n.getBaseUploadUrlFromPreflightResponse(t),(o="".concat(r,"/files/upload_sessions")).includes("fupload-ec2")&&(n.config.parallelism=1),i={file_size:n.file.size,file_name:n.fileName},n.fileId?o=o.replace("upload_sessions","".concat(n.fileId,"/upload_sessions")):i.folder_id=n.folderId,e.prev=7,e.next=10,n.xhr.post({url:o,data:i});case 10:a=e.sent,n.createSessionSuccessHandler(a.data),e.next=31;break;case 14:if(e.prev=14,e.t0=e.catch(7),!((s=n.getErrorResponse(e.t0))&&s.status>=500&&s.status<600)){e.next=20;break}return n.createSessionErrorHandler(e.t0),e.abrupt("return");case 20:if(!s||409!==s.status||"session_conflict"!==s.code){e.next=23;break}return n.createSessionSuccessHandler(s.context_info.session),e.abrupt("return");case 23:if(!(s&&s.status===H.ICt&&s.code===H.$PK||s.status===H.ICt&&"access_denied_insufficient_permissions"===s.code)){e.next=26;break}return n.errorCallback(s),e.abrupt("return");case 26:if(!s||409!==s.status){e.next=30;break}return n.resolveConflict(s),n.createSessionRetry(),e.abrupt("return");case 30:n.sessionErrorHandler(e.t0,"create_session_misc_error",JSON.stringify(e.t0));case 31:case"end":return e.stop()}}),e,null,[[7,14]])})));return function(t){return e.apply(this,arguments)}}()),j(S(n),"createSessionErrorHandler",(function(e){n.isDestroyed()||(n.createSessionNumRetriesPerformed<n.config.retries?n.createSessionRetry():(n.consoleLog("Too many create session failures, failing upload"),n.sessionErrorHandler(e,"create_session_retries_exceeded",JSON.stringify(e))))})),j(S(n),"getSessionInfo",O(regeneratorRuntime.mark((function e(){var t,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.getBaseUploadUrl(),r="".concat(t,"/files/upload_sessions/").concat(n.sessionId),e.prev=2,e.next=5,n.xhr.get({url:r});case 5:o=e.sent,n.getSessionSuccessHandler(o.data),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),n.getSessionErrorHandler(e.t0);case 12:case"end":return e.stop()}}),e,null,[[2,9]])})))),j(S(n),"partUploadSuccessHandler",(function(e){n.numPartsUploading-=1,n.numPartsUploaded+=1,n.updateProgress(e.uploadedBytes,n.partSize),n.processNextParts()})),j(S(n),"partUploadErrorHandler",(function(e,t){if(n.sessionErrorHandler(e,"part_upload_retries_exceeded",t),n.isResumableUploadsEnabled)for(var r=n.firstUnuploadedPartIndex;n.numPartsUploading>0;){var o=n.parts[r];o&&2===o.state&&(o.reset(),o.pause(),n.numPartsUploading-=1,n.numPartsDigestReady+=1),r+=1}})),j(S(n),"updateProgress",(function(e,t){n.isDestroyed()||(n.totalUploadedBytes+=t-e,n.progressCallback({loaded:n.totalUploadedBytes,total:n.file.size}))})),j(S(n),"processNextParts",(function(){if(!n.failSessionIfFileChangeDetected())if(n.numPartsUploaded===n.parts.length&&n.fileSha1)n.commitSession();else{for(n.updateFirstUnuploadedPartIndex();n.canStartMorePartUploads();)n.uploadNextPart();n.shouldComputeDigestForNextPart()&&n.computeDigestForNextPart()}})),j(S(n),"onWorkerMessage",(function(e){if(!n.isDestroyed()){var t=e.data;if("partDone"===t.type){n.numPartsDigestComputing-=1;var r=t.part;n.parts[r.index].timing.fileDigestTime=t.duration,n.processNextParts()}else"done"===t.type?(n.fileSha1=(0,F.A)(t.sha1),n.sha1Worker.terminate(),n.processNextParts()):"error"===t.type&&n.sessionErrorHandler(null,"web_worker_error",JSON.stringify(t))}})),j(S(n),"sendPartToWorker",(function(e,t){if(!n.isDestroyed()){var r={index:e.index,offset:e.offset,size:e.partSize};n.sha1Worker.postMessage({part:r,fileSize:n.file.size,partContents:t},[t]),n.consoleLog("Part sent to worker: ".concat(JSON.stringify(e),".}"))}})),j(S(n),"onPartDigestError",(function(e,t){if(n.consoleLog("Error computing digest for part ".concat(JSON.stringify(t),": ").concat(JSON.stringify(e))),"NotFoundError"!==e.name&&"NOT_FOUND_ERR"!==e.name){if(!n.failSessionIfFileChangeDetected())if(t.numDigestRetriesPerformed>=n.config.retries)n.sessionErrorHandler(null,"part_digest_retries_exceeded",JSON.stringify(e));
1else{var r=(0,D.K2)(n.config.initialRetryDelayMs,n.config.maxRetryDelayMs,t.numDigestRetriesPerformed);t.numDigestRetriesPerformed+=1,n.consoleLog("Retrying digest work for part ".concat(JSON.stringify(t)," in ").concat(r," ms")),setTimeout((function(){n.computeDigestForPart(t)}),r)}}else n.sessionErrorHandler(null,"file_reader_received_not_found_error",JSON.stringify(e))})),j(S(n),"commitSession",(function(){if(!n.isDestroyed()){var e={totalPartReadTime:0,totalPartDigestTime:0,totalFileDigestTime:0,totalPartUploadTime:0},t={parts:n.parts.map((function(t){return e.totalPartReadTime+=t.timing.readTime,e.totalPartDigestTime+=t.timing.subtleCryptoTime,e.totalFileDigestTime+=t.timing.fileDigestTime,e.totalPartUploadTime+=t.timing.uploadTime,t.getPart()})).sort((function(e,t){return e.offset-t.offset})),attributes:{}},r=(0,D.eC)(n.file);r&&(t.attributes.content_modified_at=r),n.fileDescription&&(t.attributes.description=n.fileDescription);var o={avg_part_read_time:Math.round(e.totalPartReadTime/n.parts.length),avg_part_digest_time:Math.round(e.totalPartDigestTime/n.parts.length),avg_file_digest_time:Math.round(e.totalFileDigestTime/n.parts.length),avg_part_upload_time:Math.round(e.totalPartUploadTime/n.parts.length)},i=n.fileSha1,a={Digest:"sha=".concat(i),"X-Box-Client-Event-Info":JSON.stringify(o)};n.xhr.post({url:n.sessionEndpoints.commit,data:t,headers:a}).then(n.commitSessionSuccessHandler).catch(n.commitSessionErrorHandler)}})),j(S(n),"commitSessionSuccessHandler",(function(e){if(!n.isDestroyed()){var t=e.status,r=e.data;if(202!==t){var o=r.entries;!o&&r.id&&(o=[r]),n.destroy(),n.successCallback&&o&&n.successCallback(o)}else n.commitSessionRetry(e)}})),j(S(n),"commitSessionErrorHandler",(function(e){if(!n.isDestroyed()){var t=e.response;if(t)return n.commitRetryCount>=n.config.retries?(n.consoleLog("Too many commit failures, failing upload"),void n.sessionErrorHandler(e,"commit_retries_exceeded",JSON.stringify(e))):void n.commitSessionRetry(t);n.consoleError(e)}})),j(S(n),"getNumPartsUploading",(function(){return n.numPartsUploading})),n.parts=[],n.options=e,n.fileSha1=null,n.totalUploadedBytes=0,n.numPartsNotStarted=0,n.numPartsDigestComputing=0,n.numPartsDigestReady=0,n.numPartsUploading=0,n.numPartsUploaded=0,n.firstUnuploadedPartIndex=0,n.createSessionNumRetriesPerformed=0,n.partSize=0,n.commitRetryCount=0,n.clientId=null,n.isResumableUploadsEnabled=!1,n.numResumeRetries=0,n}var r,n,o,i,a,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&C(e,t)}(t,e),r=t,n=[{key:"reset",value:function(){this.parts=[],this.fileSha1=null,this.totalUploadedBytes=0,this.numPartsNotStarted=0,this.numPartsDigestComputing=0,this.numPartsDigestReady=0,this.numPartsUploading=0,this.numPartsUploaded=0,this.firstUnuploadedPartIndex=0,this.createSessionNumRetriesPerformed=0,this.partSize=0,this.commitRetryCount=0,this.numResumeRetries=0}},{key:"setFileInfo",value:function(e){var t=e.file,r=e.folderId,n=e.errorCallback,o=e.progressCallback,i=e.successCallback,a=e.overwrite,s=void 0===a||a,c=e.conflictCallback,u=e.fileId;this.file=t,this.fileName=this.file.name,this.folderId=r,this.errorCallback=n||_(),this.progressCallback=o||_(),this.successCallback=i||_(),this.overwrite=s,this.conflictCallback=c,this.fileId=u}},{key:"upload",value:function(e){var t=e.file,r=e.fileDescription,n=e.folderId,o=e.errorCallback,i=e.progressCallback,a=e.successCallback,s=e.overwrite,c=void 0===s||s,u=e.conflictCallback,l=e.fileId;this.file=t,this.fileName=this.file.name,this.initialFileSize=this.file.size,this.initialFileLastModified=(0,D.eC)(this.file),this.folderId=n,this.errorCallback=o||_(),this.progressCallback=i||_(),this.successCallback=a||_(),this.sha1Worker=(0,I.A)(),this.sha1Worker.addEventListener("message",this.onWorkerMessage),this.conflictCallback=u,this.overwrite=c,this.fileId=l,this.fileDescription=r,this.makePreflightRequest()}},{key:"createSessionRetry",value:function(){var e=(0,D.K2)(this.config.initialRetryDelayMs,this.config.maxRetryDelayMs,this.createSessionNumRetriesPerformed);this.createSessionNumRetriesPerformed+=1,this.consoleLog("Retrying create session in ".concat(e," ms")),this.createSessionTimeout=setTimeout(this.makePreflightRequest,e)}},{key:"createSessionSuccessHandler",value:function(e){if(!this.isDestroyed()){var t=e.id,r=e.part_size,n=e.session_endpoints;this.sessionId=t,this.partSize=r,this.sessionEndpoints=v({},this.sessionEndpoints,{uploadPart:n.upload_part,listParts:n.list_parts,commit:n.commit,abort:n.abort,logEvent:n.log_event}),this.populateParts(),this.processNextParts()}}},{key:"resume",value:function(e){var t=e.file,r=e.folderId,n=e.errorCallback,o=e.progressCallback,i=e.sessionId,a=e.successCallback,s=e.overwrite,c=void 0===s||s,u=e.conflictCallback,l=e.fileId;this.setFileInfo({file:t,folderId:r,errorCallback:n,progressCallback:o,successCallback:a,conflictCallback:u,overwrite:c,fileId:l}),this.sessionId=i,this.sha1Worker||(this.sha1Worker=(0,I.A)()),this.sha1Worker.addEventListener("message",this.onWorkerMessage),this.get
1SessionInfo()}},{key:"getSessionSuccessHandler",value:function(e){var t=e.part_size,r=e.session_endpoints;this.partSize=t,this.sessionEndpoints=v({},this.sessionEndpoints,{uploadPart:r.upload_part,listParts:r.list_parts,commit:r.commit,abort:r.abort,logEvent:r.log_event}),this.processNextParts()}},{key:"getSessionErrorHandler",value:function(e){if(!this.isDestroyed()){var t=this.getErrorResponse(e);if(this.numResumeRetries>this.config.retries)this.errorCallback(t);else if(t&&429===t.status){var r=H.aO7;if(t.headers){var n=parseInt(t.headers["retry-after"]||t.headers.get("Retry-After"),10);E()(n)||(r=n*H.rEk)}this.retryTimeout=setTimeout(this.getSessionInfo,r),this.numResumeRetries+=1}else if(t&&t.status>=400&&t.status<500){this.parts.forEach((function(e){e.cancel()})),this.reset(),clearTimeout(this.createSessionTimeout),clearTimeout(this.commitSessionTimeout),this.abortSession();var o={file:this.file,folderId:this.folderId,errorCallback:this.errorCallback,progressCallback:this.progressCallback,successCallback:this.successCallback,overwrite:this.overwrite,fileId:this.fileId};this.upload(o)}else this.retryTimeout=setTimeout(this.getSessionInfo,Math.pow(2,this.numResumeRetries)*H.rEk),this.numResumeRetries+=1}}},{key:"sessionErrorHandler",value:(s=O(regeneratorRuntime.mark((function e(t,r,n){var o,i=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isResumableUploadsEnabled||this.destroy(),o=this.getErrorResponse(t),this.errorCallback(o),e.prev=3,this.sessionEndpoints.logEvent){e.next=6;break}throw new Error("logEvent endpoint not found");case 6:return e.next=8,(0,T.y)((function(e,t){i.logEvent(r,n).then(e).catch(t)}),this.config.retries,this.config.initialRetryDelayMs);case 8:this.isResumableUploadsEnabled||this.abortSession(),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),this.isResumableUploadsEnabled||this.abortSession();case 14:case"end":return e.stop()}}),e,this,[[3,11]])}))),function(e,t,r){return s.apply(this,arguments)})},{key:"abortSession",value:function(){var e=this;this.sha1Worker&&this.sha1Worker.terminate(),this.sessionEndpoints.abort&&this.sessionId&&this.xhr.delete({url:this.sessionEndpoints.abort}).then((function(){e.sessionId=""}))}},{key:"shouldComputeDigestForNextPart",value:function(){return!this.isDestroyed()&&0===this.numPartsDigestComputing&&this.numPartsNotStarted>0&&this.numPartsDigestReady<this.config.digestReadahead}},{key:"computeDigestForNextPart",value:function(){for(var e=this.firstUnuploadedPartIndex;e<this.parts.length;e+=1){var t=this.parts[e];if(0===t.state)return this.numPartsNotStarted-=1,this.numPartsDigestComputing+=1,void this.computeDigestForPart(t)}}},{key:"computeDigestForPart",value:(a=O(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,s,c,u,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.file.slice(t.offset,t.offset+this.partSize),n=new window.FileReader,o=Date.now(),e.prev=3,e.next=6,this.readFile(n,r);case 6:return i=e.sent,a=i.buffer,s=i.readCompleteTimestamp,e.next=11,(0,U.br)("SHA-256",a);case 11:c=e.sent,u=btoa([].reduce.call(new Uint8Array(c),(function(e,t){return e+String.fromCharCode(t)}),"")),this.sendPartToWorker(t,a),t.sha256=u,t.state=1,t.blob=r,this.numPartsDigestReady+=1,l=Date.now(),t.timing={partDigestTime:l-o,readTime:s-o,subtleCryptoTime:l-s},this.processNextParts(),e.next=26;break;case 23:e.prev=23,e.t0=e.catch(3),this.onPartDigestError(e.t0,t);case 26:case"end":return e.stop()}}),e,this,[[3,23]])}))),function(e){return a.apply(this,arguments)})},{key:"commitSessionRetry",value:function(e){var t=e.status,r=e.headers,n=H.aO7;if(r){var o=parseInt(r["retry-after"],10);Number.isNaN(o)||(n=1e3*o)}var i=(0,D.K2)(this.config.initialRetryDelayMs,this.config.maxRetryDelayMs,this.commitRetryCount);202!==t&&(this.commitRetryCount+=1);var a=n||i;this.consoleLog("Retrying commit in ".concat(a," ms")),this.commitSessionTimeout=setTimeout(this.commitSession,a)}},{key:"uploadNextPart",value:function(){for(var e=this.firstUnuploadedPartIndex;e<this.parts.length;e+=1){var t=this.parts[e];if(1===t.state){this.numPartsDigestReady-=1,this.numPartsUploading+=1,t.isPaused?t.unpause():t.upload();break}}}},{key:"canStartMorePartUploads",value:function(){return!this.isDestroyed()&&this.numPartsUploading<this.config.parallelism&&this.numPartsDigestReady>0}},{key:"updateFirstUnuploadedPartIndex",value:function(){for(var e=this.parts[this.firstUnuploadedPartIndex];e&&3===e.state;)this.firstUnuploadedPartIndex+=1,e=this.parts[this.firstUnuploadedPartIndex]}},{key:"populateParts",value:function(){this.numPartsNotStarted=Math.ceil(this.file.size/this.partSize);for(var e=0;e<this.numPartsNotStarted;e+=1){var t=e*this.partSize,r=Math.min(t+this.partSize,this.file.size)-t,n=new Q(this.options,e,t,r,this.file.size,this.sessionId,this.sessionEndpoints,this.config,this.getNumPartsUploading,this.partUploadSuccessHandler,this.updateProgress,this.partUploadErrorHandler);this.parts.push(n)}}},{key:"failSessionIfFileChangeDetected",value:function(){var e=this.file.size,t=(0,D.eC)(this.file);if(e!==this.initialFileSize||t!==this.initialFileLastModified){var r=JSON.stringify({oldSize:this.initialFileSize,newSize:e,oldLastModified:this.initialFileLastModified,newLastModified:t});return N.A.isIE()?(this.sessionErrorHandler(null,"file_changed_during_upload",r),!0):(this.consoleLog("file properties changed during upload: ".concat(r)),!1)}return!1}},{key:"cancel",value:function(){this.isDestroyed()||(this.parts.forEac
1h((function(e){e.cancel()})),this.parts=[],clearTimeout(this.createSessionTimeout),clearTimeout(this.commitSessionTimeout),this.abortSession(),this.destroy())}},{key:"resolveConflict",value:(i=O(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.overwrite||!t.context_info){e.next=3;break}return this.fileId=t.context_info.conflicts.id,e.abrupt("return");case 3:if(!this.conflictCallback){e.next=6;break}return this.fileName=this.conflictCallback(this.fileName),e.abrupt("return");case 6:r=this.fileName.substr(this.fileName.lastIndexOf("."))||"",this.fileName="".concat(this.fileName.substr(0,this.fileName.lastIndexOf(".")),"-").concat(Date.now()).concat(r);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"getErrorResponse",value:function(e){if(!e)return{};var t=e.response;return t?401===t.status?t:t.data:{}}}],n&&P(r.prototype,n),o&&P(r,o),t}(J);const X=V},96067(e,t,r){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){function a(e){o(c,n,i,a,s,"next",e)}function s(e){o(c,n,i,a,s,"throw",e)}var c=e.apply(t,r);a(void 0)}))}}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}
1function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{A:()=>m});var f=r(63950),p=r.n(f),d=r(51709),h=r(55820),b=r(96248),y=function(e){function t(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];return r=function(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?c(e):t}(this,(e=s(t)).call.apply(e,[this].concat(a))),l(c(r),"uploadSuccessHandler",(function(e){var t=e.data.entries;r.isDestroyed()||"function"==typeof r.successCallback&&r.successCallback(t)})),l(c(r),"uploadProgressHandler",(function(e){r.isDestroyed()||"function"==typeof r.progressCallback&&r.progressCallback(e)})),l(c(r),"preflightSuccessHandler",function(){var e=i(regeneratorRuntime.mark((function e(t){var n,o,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.data,!r.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:return(o=n.upload_url)||(o="".concat(r.getBaseUploadUrl(),"/files/content"),r.fileId&&(o=o.replace("content","".concat(r.fileId,"/content")))),i=JSON.stringify({name:r.fileName,parent:{id:r.folderId},description:r.fileDescription,content_modified_at:(0,h.eC)(r.file)}),a={url:o,data:{attributes:i,file:r.file},headers:{},successHandler:r.uploadSuccessHandler,errorHandler:r.preflightErrorHandler,progressHandler:r.uploadProgressHandler},e.next=9,r.computeSHA1(r.file);case 9:(s=e.sent)&&(a.headers=l({},"Content-MD5",s)),r.xhr.uploadFile(a);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),r}var r,o,f,b;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,e),r=t,o=[{key:"upload",value:function(e){var t=e.folderId,r=e.fileId,n=e.file,o=e.fileDescription,i=e.successCallback,a=void 0===i?p():i,s=e.errorCallback,c=void 0===s?p():s,u=e.progressCallback,l=void 0===u?p():u,f=e.conflictCallback,d=e.overwrite,h=void 0===d||d;this.isDestroyed()||(this.folderId=t,this.fileId=r,this.file=n,this.fileDescription=o,this.fileName=this.file.name,this.successCallback=a,this.errorCallback=c,this.progressCallback=l,this.overwrite=h,this.conflictCallback=f,this.makePreflightRequest())}},{key:"cancel",value:function(){this.isDestroyed()||(clearTimeout(this.retryTimeout),this.destroy())}},{key:"computeSHA1",value:(b=i(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="",e.prev=1,n=new window.FileReader,e.next=5,this.readFile(n,t);case 5:return o=e.sent,i=o.buffer,e.next=9,(0,d.br)("SHA-1",i);case 9:a=e.sent,s=Array.from(new Uint8Array(a)),r=s.map((function(e){return"00".concat(e.toString(16)).slice(-2)})).join(""),e.next=16;break;case 14:e.prev=14,e.t0=e.catch(1);case 16:return e.abrupt("return",r);case 17:case"end":return e.stop()}}),e,this,[[1,14]])}))),function(e){return b.apply(this,arguments)})}],o&&a(r.prototype,o),f&&a(r,f),t}(b.A);const m=y},30203(e,t,r){function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){function a(e){o(c,n,i,a,s,"next",e)}function s(e){o(c,n,i,a,s,"throw",e)}var c=e.apply(t,r);a(void 0)}))}}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}r.d(t,{A:()=>p});var s=r(71083),c=r(21904),u=r(24093),l="bcu-uploads-reachability-cached-results",f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.localStore=new c.A,this.cachedResults={}
1,this.populateCachedResultsWithValidLocalStoreValues(),this.saveCachedResultsToLocalStore()}var t,r,o,f,p;return t=e,r=[{key:"getCachedResultsFromLocalStore",value:function(){return this.localStore.getItem(l)}},{key:"saveCachedResultsToLocalStore",value:function(){this.localStore.setItem(l,this.cachedResults)}},{key:"isCachedHostValid",value:function(e){return e.expirationTimestampMS>Date.now()}},{key:"getCachedResult",value:function(e){if(e in this.cachedResults){var t=this.cachedResults[e];if(this.isCachedHostValid(t))return t}return null}},{key:"updateCachedResult",value:function(e,t){this.cachedResults[e]={isReachable:t,expirationTimestampMS:Date.now()+864e5},this.saveCachedResultsToLocalStore()}},{key:"populateCachedResultsWithValidLocalStoreValues",value:function(){var e=this,t=this.getCachedResultsFromLocalStore();t&&Object.keys(t).forEach((function(r){var n=t[r];e.isCachedHostValid(n)&&(e.cachedResults[r]=n)}))}},{key:"getUnreachableHostsUrls",value:function(){var e=this,t=[];return this.cachedResults?(Object.keys(this.cachedResults).forEach((function(r){var n=e.cachedResults[r];e.isCachedHostValid(n)&&!n.isReachable&&t.push(r)})),t):t}},{key:"isReachable",value:(p=i(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t!=="".concat(u.enF,"/")&&t!=="".concat(u.wUF,"/")){e.next=2;break}return e.abrupt("return",!0);case 2:if(!(r=this.getCachedResult(t))){e.next=5;break}return e.abrupt("return",r.isReachable);case 5:return e.next=7,this.makeReachabilityRequest(t);case 7:return n=e.sent,this.updateCachedResult(t,n),e.abrupt("return",n);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"makeReachabilityRequest",value:(f=i(regeneratorRuntime.mark((function e(t){var r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o="".concat(t,"html5?reachability_test=run"),n(r={},u.VXz,"application/x-www-form-urlencoded; charset=UTF-8"),n(r,"X-File-Name","reachability_pseudofile.txt"),n(r,"X-File-Size","1234"),i=r,e.prev=3,e.next=6,s.A.post(o,"reachability_file=test_file_data",{headers:i});case 6:e.next=11;break;case 8:return e.prev=8,e.t0=e.catch(3),e.abrupt("return",!1);case 11:return e.abrupt("return",!0);case 12:case"end":return e.stop()}}),e,null,[[3,8]])}))),function(e){return f.apply(this,arguments)})}],r&&a(t.prototype,r),o&&a(t,o),e}();const p=f},30118(e,t,r){function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{j:()=>i});var i=function e(t){var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t,{tagged_message:t.message});return t.replies&&t.replies.length&&(r.replies=t.replies.map(e)),r}}}]);
2//# sourceMappingURL=chunk_e589092e.74fb4cbc576e3043119d.15add473ca015c596ed42a73afca5d2fc49bcb41.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.