UNPKG

itk

Version:

High performance spatial analysis in a JavaScript runtime environment.

8 lines 64 kB
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="https://unpkg.com/itk@13.0.1",n(n.s=78)}([function(e,t,n){var r={itkModulesPath:n.p};e.exports=r},function(e,t){e.exports={Text:"Text",Binary:"Binary",Image:"Image",Mesh:"Mesh",vtkPolyData:"vtkPolyData"}},function(e,t){e.exports=function(e){var t=e.slice(2+(e.lastIndexOf(".")-1>>>0));if("gz"===t.toLowerCase()){var n=e.slice(0,-3).lastIndexOf(".");t=e.slice(2+(n-1>>>0))}return t}},function(e,t,n){e.exports=n(30)},function(e,t){function n(e,t){if(!(e instanceof Blob))throw new TypeError("Must be a File or Blob");return new Promise((function(n,r){var o=new FileReader;o.onload=function(e){n(e.target.result)},o.onerror=function(t){r(new Error("Error reading"+e.name+": "+t.target.result))},o["readAs"+t](e)}))}e.exports={readAsDataURL:function(e){return n(e,"DataURL")},readAsText:function(e){return n(e,"Text")},readAsArrayBuffer:function(e){return n(e,"ArrayBuffer")}}},function(e,t,n){"use strict";function r(e){return(r="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})(e)}var o=n(22),a=n(54),i=Object.prototype.toString;function s(e){return"[object Array]"===i.call(e)}function u(e){return null!==e&&"object"===r(e)}function c(e){return"[object Function]"===i.call(e)}function f(e,t){if(null!=e)if("object"!==r(e)&&(e=[e]),s(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}e.exports={isArray:s,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:a,isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:u,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:c,isStream:function(e){return u(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:f,merge:function e(){var t={};function n(n,o){"object"===r(t[o])&&"object"===r(n)?t[o]=e(t[o],n):t[o]=n}for(var o=0,a=arguments.length;o<a;o++)f(arguments[o],n);return t},deepMerge:function e(){var t={};function n(n,o){"object"===r(t[o])&&"object"===r(n)?t[o]=e(t[o],n):"object"===r(n)?t[o]=e({},n):t[o]=n}for(var o=0,a=arguments.length;o<a;o++)f(arguments[o],n);return t},extend:function(e,t,n){return f(t,(function(t,r){e[r]=n&&"function"==typeof t?o(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t){var n=new Map([["gen","VTKExodusFileReader"],["e","VTKExodusFileReader"],["exo","VTKExodusFileReader"],["exii","VTKExodusFileReader"],["ex2","VTKExodusFileReader"],["vtk","VTKLegacyFileReader"],["VTK","VTKLegacyFileReader"],["vtp","VTKXMLFileReader"],["VTP","VTKXMLFileReader"],["vtu","VTKXMLFileReader"],["VTU","VTKXMLFileReader"]]);e.exports=n},function(e,t){var n=new Map([["vtk","itkVTKPolyDataMeshIOJSBinding"],["VTK","itkVTKPolyDataMeshIOJSBinding"],["byu","itkBYUMeshIOJSBinding"],["BYU","itkBYUMeshIOJSBinding"],["fsa","itkFreeSurferAsciiMeshIOJSBinding"],["FSA","itkFreeSurferAsciiMeshIOJSBinding"],["fsb","itkFreeSurferBinaryMeshIOJSBinding"],["FSB","itkFreeSurferBinaryMeshIOJSBinding"],["obj","itkOBJMeshIOJSBinding"],["OBJ","itkOBJMeshIOJSBinding"],["off","itkOFFMeshIOJSBinding"],["OFF","itkOFFMeshIOJSBinding"],["stl","itkSTLMeshIOJSBinding"],["STL","itkSTLMeshIOJSBinding"]]);e.exports=n},function(e,t){function n(e,t,n,r,o,a,i){try{var s=e[a](i),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,a){var i=e.apply(t,r);function s(e){n(i,o,a,s,u,"next",e)}function u(e){n(i,o,a,s,u,"throw",e)}s(void 0)}))}}},function(e,t){e.exports={Int8:"int8_t",UInt8:"uint8_t",Int16:"int16_t",UInt16:"uint16_t",Int32:"int32_t",UInt32:"uint32_t",Int64:"int64_t",UInt64:"uint64_t",SizeValueType:"uint64_t",IdentifierType:"uint64_t",IndexValueType:"int64_t",OffsetValueType:"int64_t"}},function(e,t){var n=new Map([]);e.exports=n},function(e,t){e.exports={Float32:"float",Float64:"double",SpacePrecisionType:"double"}},function(e,t){e.exports={Unknown:0,Scalar:1,RGB:2,RGBA:3,Offset:4,Vector:5,Point:6,CovariantVector:7,SymmetricSecondRankTensor:8,DiffusionTensor3D:9,Complex:10,FixedArray:11,Array:12,Matrix:13,VariableLengthVector:14,VariableSizeMatrix:15}},function(e,t){var n=new Map([]);e.exports=n},function(e,t,n){e.exports=n(53)},function(e,t){function n(e,t){if(e instanceof n){var r=e;this.rows=r.rows,this.columns=r.columns,this.data=r.data.slice()}else this.rows=e,this.columns=t,this.data=new Array(e*t),this.data.fill(0)}n.prototype.setIdentity=function(){for(var e=0;e<this.rows;++e)for(var t=0;t<this.columns;++t)this.data[t+e*this.columns]=e===t?1:0},n.prototype.setElement=function(e,t,n){this.data[t+e*this.columns]=n},n.prototype.getElement=function(e,t){return this.data[t+e*this.columns]},e.exports=n},function(e,t,n){"use strict";function r(e){return(r="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})(e)}var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var s=n(52),u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n._messageId=1,n._messages=new Map,n._worker=e,n._worker.onmessage=n._onMessage.bind(n),n._id=Math.ceil(1e7*Math.random()),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"terminate",value:function(){this._worker.terminate()}},{key:"isFree",value:function(){return 0===this._messages.size}},{key:"jobsLength",value:function(){return this._messages.size}},{key:"exec",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments[3];return new Promise((function(a,i){var s=n._messageId++;n._messages.set(s,[a,i,o]),n._worker.postMessage([s,t,e],r||[])}))}},{key:"postMessage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments[2];return new Promise((function(o,a){var i=t._messageId++;t._messages.set(i,[o,a,r]),t._worker.postMessage([i,e],n||[])}))}},{key:"emit",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this._worker.postMessage({eventName:e,args:n})}},{key:"_onMessage",value:function(e){var n;if(!Array.isArray(e.data)&&e.data.eventName)return(n=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in o)return o.value;var i=o.get;return void 0!==i?i.call(r):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this)).call.apply(n,[this,e.data.eventName].concat(i(e.data.args)));var r,o=(r=e.data,Array.isArray(r)?r:Array.from(r)),a=o[0],s=o.slice(1);if(1===a)this._onEvent.apply(this,i(s));else{if(0!==a)throw new Error("Wrong message type '"+a+"'");this._onResult.apply(this,i(s))}}},{key:"_onResult",value:function(e,t,n){var r=this._messages.get(e),a=o(r,2),i=a[0],s=a[1];return this._messages.delete(e),1===t?i(n):s(n)}},{key:"_onEvent",value:function(e,t,n){var r=this._messages.get(e),a=o(r,3)[2];a&&a(t,n)}}]),t}(s);e.exports=u},function(e,t,n){var r=n(18),o=n(15);e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new r;this.imageType=e,this.name="Image";var t=e.dimension;this.origin=new Array(t),this.origin.fill(0),this.spacing=new Array(t),this.spacing.fill(1),this.direction=new o(t,t),this.direction.setIdentity(),this.size=new Array(t),this.size.fill(0),this.data=null}},function(e,t,n){var r=n(9),o=n(12);e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.UInt8,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.Scalar,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;this.dimension=e,this.componentType=t,this.pixelType=n,this.components=a}},function(e,t,n){var r=n(9),o=n(11),a=n(12);e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Float32,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.Float32,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a.Scalar,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:r.Int32,c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:o.Float32,f=arguments.length>7&&void 0!==arguments[7]?arguments[7]:a.Scalar,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1;this.dimension=e,this.pointComponentType=t,this.pointPixelComponentType=n,this.pointPixelType=i,this.pointPixelComponents=s,this.cellComponentType=u,this.cellPixelComponentType=c,this.cellPixelType=f,this.cellPixelComponents=l}},function(e,t,n){var r=n(9),o=n(11);e.exports=function(e,t){var n=null;switch(e){case r.UInt8:n=new Uint8Array(t);break;case r.Int8:n=new Int8Array(t);break;case r.UInt16:n=new Uint16Array(t);break;case r.Int16:n=new Int16Array(t);break;case r.UInt32:n=new Uint32Array(t);break;case r.Int32:n=new Int32Array(t);break;case r.UInt64:case r.Int64:throw new Error("Type is not supported as a TypedArray");case o.Float32:n=new Float32Array(t);break;case o.Float64:n=new Float64Array(t);break;case"null":case null:n=null;break;default:throw new Error("Type is not supported as a TypedArray")}return n}},function(e,t,n){var r=n(73),o=n(74),a=n(75),i=n(76);e.exports=function(e){return r(e)||o(e)||a(e)||i()}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(5);function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(r.isURLSearchParams(t))a=t.toString();else{var i=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),i.push(o(t)+"="+o(e))})))})),a=i.join("&")}if(a){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";(function(t){var r=n(5),o=n(60),a={"Content-Type":"application/x-www-form-urlencoded"};function i(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,u={adapter:((void 0!==t&&"[object process]"===Object.prototype.toString.call(t)||"undefined"!=typeof XMLHttpRequest)&&(s=n(26)),s),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(i(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(i(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(a)})),e.exports=u}).call(this,n(59))},function(e,t,n){"use strict";var r=n(5),o=n(61),a=n(23),i=n(63),s=n(64),u=n(27);e.exports=function(e){return new Promise((function(t,c){var f=e.data,l=e.headers;r.isFormData(f)&&delete l["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var d=e.auth.username||"",h=e.auth.password||"";l.Authorization="Basic "+btoa(d+":"+h)}if(p.open(e.method.toUpperCase(),a(e.url,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in p?i(p.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:n,config:e,request:p};o(t,c,r),p=null}},p.onabort=function(){p&&(c(u("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){c(u("Network Error",e,null,p)),p=null},p.ontimeout=function(){c(u("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var y=n(65),m=(e.withCredentials||s(e.url))&&e.xsrfCookieName?y.read(e.xsrfCookieName):void 0;m&&(l[e.xsrfHeaderName]=m)}if("setRequestHeader"in p&&r.forEach(l,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete l[t]:p.setRequestHeader(t,e)})),e.withCredentials&&(p.withCredentials=!0),e.responseType)try{p.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),c(e),p=null)})),void 0===f&&(f=null),p.send(f)}))}},function(e,t,n){"use strict";var r=n(62);e.exports=function(e,t,n,o,a){var i=new Error(e);return r(i,t,n,o,a)}},function(e,t,n){"use strict";var r=n(5);e.exports=function(e,t){t=t||{};var n={};return r.forEach(["url","method","params","data"],(function(e){void 0!==t[e]&&(n[e]=t[e])})),r.forEach(["headers","auth","proxy"],(function(o){r.isObject(t[o])?n[o]=r.deepMerge(e[o],t[o]):void 0!==t[o]?n[o]=t[o]:r.isObject(e[o])?n[o]=r.deepMerge(e[o]):void 0!==e[o]&&(n[o]=e[o])})),r.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])})),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){var r=function(){return this}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,a=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n(70),o)r.regeneratorRuntime=a;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t){var n=new Map([["bmp","itkBMPImageIOJSBinding"],["BMP","itkBMPImageIOJSBinding"],["dcm","itkGDCMImageIOJSBinding"],["DCM","itkGDCMImageIOJSBinding"],["gipl","itkGiplImageIOJSBinding"],["gipl.gz","itkGiplImageIOJSBinding"],["hdf5","itkHDF5ImageIOJSBinding"],["jpg","itkJPEGImageIOJSBinding"],["JPG","itkJPEGImageIOJSBinding"],["jpeg","itkJPEGImageIOJSBinding"],["JPEG","itkJPEGImageIOJSBinding"],["json","itkJSONImageIOJSBinding"],["lsm","itkLSMImageIOJSBinding"],["mnc","itkMINCImageIOJSBinding"],["MNC","itkMINCImageIOJSBinding"],["mnc.gz","itkMINCImageIOJSBinding"],["MNC.GZ","itkMINCImageIOJSBinding"],["mnc2","itkMINCImageIOJSBinding"],["MNC2","itkMINCImageIOJSBinding"],["mgh","itkMGHImageIOJSBinding"],["mgz","itkMGHImageIOJSBinding"],["mgh.gz","itkMGHImageIOJSBinding"],["mha","itkMetaImageIOJSBinding"],["mhd","itkMetaImageIOJSBinding"],["mrc","itkMRCImageIOJSBinding"],["nia","itkNiftiImageIOJSBinding"],["nii","itkNiftiImageIOJSBinding"],["nii.gz","itkNiftiImageIOJSBinding"],["hdr","itkNiftiImageIOJSBinding"],["nrrd","itkNrrdImageIOJSBinding"],["NRRD","itkNrrdImageIOJSBinding"],["nhdr","itkNrrdImageIOJSBinding"],["NHDR","itkNrrdImageIOJSBinding"],["png","itkPNGImageIOJSBinding"],["PNG","itkPNGImageIOJSBinding"],["pic","itkBioRadImageIOJSBinding"],["PIC","itkBioRadImageIOJSBinding"],["tif","itkTIFFImageIOJSBinding"],["TIF","itkTIFFImageIOJSBinding"],["tiff","itkTIFFImageIOJSBinding"],["TIFF","itkTIFFImageIOJSBinding"],["vtk","itkVTKImageIOJSBinding"],["VTK","itkVTKImageIOJSBinding"]]);e.exports=n},function(e,t){e.exports=function(e,t,n){return e.data[n+t*e.columns]}},function(e,t,n){var r=n(9),o=n(11);e.exports=function(e,t){var n=null;switch(t){case e.IOComponentType.UCHAR:n=r.UInt8;break;case e.IOComponentType.CHAR:n=r.Int8;break;case e.IOComponentType.USHORT:n=r.UInt16;break;case e.IOComponentType.SHORT:n=r.Int16;break;case e.IOComponentType.UINT:n=r.UInt32;break;case e.IOComponentType.INT:n=r.Int32;break;case e.IOComponentType.ULONG:n=r.UInt64;break;case e.IOComponentType.LONG:n=r.Int64;break;case e.IOComponentType.ULONGLONG:n=r.UInt64;break;case e.IOComponentType.LONGLONG:n=r.Int64;break;case e.IOComponentType.FLOAT:n=o.Float32;break;case e.IOComponentType.DOUBLE:n=o.Float64;break;default:throw new Error("Unknown IO component type")}return n}},function(e,t){e.exports=["itkPNGImageIOJSBinding","itkMetaImageIOJSBinding","itkDCMTKImageIOJSBinding","itkTIFFImageIOJSBinding","itkNiftiImageIOJSBinding","itkJPEGImageIOJSBinding","itkNrrdImageIOJSBinding","itkVTKImageIOJSBinding","itkBMPImageIOJSBinding","itkHDF5ImageIOJSBinding","itkMINCImageIOJSBinding","itkMRCImageIOJSBinding","itkLSMImageIOJSBinding","itkMGHImageIOJSBinding","itkBioRadImageIOJSBinding","itkGiplImageIOJSBinding","itkGEAdwImageIOJSBinding","itkGE4ImageIOJSBinding","itkGE5ImageIOJSBinding","itkGDCMImageIOJSBinding","itkJSONImageIOJSBinding"]},function(e,t,n){var r=n(12);e.exports=function(e,t){var n=null;switch(t){case e.IOPixelType.UNKNOWNPIXELTYPE:n=r.Unknown;break;case e.IOPixelType.SCALAR:n=r.Scalar;break;case e.IOPixelType.RGB:n=r.RGB;break;case e.IOPixelType.RGBA:n=r.RGBA;break;case e.IOPixelType.OFFSET:n=r.Offset;break;case e.IOPixelType.VECTOR:n=r.Vector;break;case e.IOPixelType.POINT:n=r.Point;break;case e.IOPixelType.COVARIANTVECTOR:n=r.CovariantVector;break;case e.IOPixelType.SYMMETRICSECONDRANKTENSOR:n=r.SymmetricSecondRankTensor;break;case e.IOPixelType.DIFFUSIONTENSOR3D:n=r.DiffusionTensor3D;break;case e.IOPixelType.COMPLEX:n=r.Complex;break;case e.IOPixelType.FIXEDARRAY:n=r.FixedArray;break;case e.IOPixelType.MATRIX:n=r.Matrix;break;default:throw new Error("Unknown IO pixel type")}return n}},function(e,t,n){var r=n(9),o=n(11);e.exports=function(e,t){var n=null;switch(t){case r.UInt8:n=e.IOComponentType.UCHAR;break;case r.Int8:n=e.IOComponentType.CHAR;break;case r.UInt16:n=e.IOComponentType.USHORT;break;case r.Int16:n=e.IOComponentType.SHORT;break;case r.UInt32:n=e.IOComponentType.UINT;break;case r.Int32:n=e.IOComponentType.INT;break;case r.UInt64:n=e.IOComponentType.ULONGLONG;break;case r.Int64:n=e.IOComponentType.LONGLONG;break;case o.Float32:n=e.IOComponentType.FLOAT;break;case o.Float64:n=e.IOComponentType.DOUBLE;break;default:throw new Error("Unknown IO component type")}return n}},function(e,t,n){var r=n(12);e.exports=function(e,t){var n=null;switch(t){case r.Unknown:n=e.IOPixelType.UNKNOWNPIXELTYPE;break;case r.Scalar:n=e.IOPixelType.SCALAR;break;case r.RGB:n=e.IOPixelType.RGB;break;case r.RGBA:n=e.IOPixelType.RGBA;break;case r.Offset:n=e.IOPixelType.OFFSET;break;case r.Vector:n=e.IOPixelType.VECTOR;break;case r.Point:n=e.IOPixelType.POINT;break;case r.CovariantVector:n=e.IOPixelType.COVARIANTVECTOR;break;case r.SymmetricSecondRankTensor:n=e.IOPixelType.SYMMETRICSECONDRANKTENSOR;break;case r.DiffusionTensor3D:n=e.IOPixelType.DIFFUSIONTENSOR3D;break;case r.Complex:n=e.IOPixelType.COMPLEX;break;case r.FixedArray:n=e.IOPixelType.FIXEDARRAY;break;case r.Matrix:n=e.IOPixelType.MATRIX;break;default:throw new Error("Unknown IO pixel type")}return n}},function(e,t,n){var r=n(9),o=n(11);e.exports=function(e,t){var n=null;switch(t){case e.IOComponentType.UNKNOWNCOMPONENTTYPE:n=null;break;case e.IOComponentType.UCHAR:n=r.UInt8;break;case e.IOComponentType.CHAR:n=r.Int8;break;case e.IOComponentType.USHORT:n=r.UInt16;break;case e.IOComponentType.SHORT:n=r.Int16;break;case e.IOComponentType.UINT:n=r.UInt32;break;case e.IOComponentType.INT:n=r.Int32;break;case e.IOComponentType.ULONG:n=r.UInt64;break;case e.IOComponentType.LONG:n=r.Int64;break;case e.IOComponentType.ULONGLONG:n=r.UInt64;break;case e.IOComponentType.LONGLONG:n=r.Int64;break;case e.IOComponentType.FLOAT:n=o.Float32;break;case e.IOComponentType.DOUBLE:n=o.Float64;break;default:throw new Error("Unknown IO component type")}return n}},function(e,t){e.exports=["itkBYUMeshIOJSBinding","itkFreeSurferAsciiMeshIOJSBinding","itkFreeSurferBinaryMeshIOJSBinding","itkOBJMeshIOJSBinding","itkOFFMeshIOJSBinding","itkSTLMeshIOJSBinding","itkVTKPolyDataMeshIOJSBinding"]},function(e,t,n){var r=n(12);e.exports=function(e,t){var n=null;switch(t){case e.IOPixelType.UNKNOWNPIXELTYPE:n=r.Unknown;break;case e.IOPixelType.SCALAR:n=r.Scalar;break;case e.IOPixelType.RGB:n=r.RGB;break;case e.IOPixelType.RGBA:n=r.RGBA;break;case e.IOPixelType.OFFSET:n=r.Offset;break;case e.IOPixelType.VECTOR:n=r.Vector;break;case e.IOPixelType.POINT:n=r.Point;break;case e.IOPixelType.COVARIANTVECTOR:n=r.CovariantVector;break;case e.IOPixelType.SYMMETRICSECONDRANKTENSOR:n=r.SymmetricSecondRankTensor;break;case e.IOPixelType.DIFFUSIONTENSOR3D:n=r.DiffusionTensor3D;break;case e.IOPixelType.COMPLEX:n=r.Complex;break;case e.IOPixelType.FIXEDARRAY:n=r.FixedArray;break;case e.IOPixelType.ARRAY:n=r.Array;break;case e.IOPixelType.MATRIX:n=r.Matrix;break;case e.IOPixelType.VARIABLELENGTHVECTOR:n=r.VariableLengthVector;break;case e.IOPixelType.VARIABLESIZEMATRIX:n=r.VariableSizeMatrix;break;default:throw new Error("Unknown IO pixel type")}return n}},function(e,t,n){var r=n(19);e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new r;this.meshType=e,this.name="Mesh",this.numberOfPoints=0,this.points=null,this.numberOfPointPixels=0,this.pointData=null,this.numberOfCells=0,this.cells=null,this.numberOfCellPixels=0,this.cellData=null,this.cellBufferSize=0}},function(e,t,n){var r=n(9),o=n(11);e.exports=function(e,t){var n=null;switch(t){case null:n=e.IOComponentType.UNKNOWNCOMPONENTTYPE;break;case r.UInt8:n=e.IOComponentType.UCHAR;break;case r.Int8:n=e.IOComponentType.CHAR;break;case r.UInt16:n=e.IOComponentType.USHORT;break;case r.Int16:n=e.IOComponentType.SHORT;break;case r.UInt32:n=e.IOComponentType.UINT;break;case r.Int32:n=e.IOComponentType.INT;break;case r.UInt64:n=e.IOComponentType.ULONGLONG;break;case r.Int64:n=e.IOComponentType.LONGLONG;break;case o.Float32:n=e.IOComponentType.FLOAT;break;case o.Float64:n=e.IOComponentType.DOUBLE;break;default:throw new Error("Unknown IO component type")}return n}},function(e,t,n){var r=n(12);e.exports=function(e,t){var n=null;switch(t){case r.Unknown:n=e.IOPixelType.UNKNOWNPIXELTYPE;break;case r.Scalar:n=e.IOPixelType.SCALAR;break;case r.RGB:n=e.IOPixelType.RGB;break;case r.RGBA:n=e.IOPixelType.RGBA;break;case r.Offset:n=e.IOPixelType.OFFSET;break;case r.Vector:n=e.IOPixelType.VECTOR;break;case r.Point:n=e.IOPixelType.POINT;break;case r.CovariantVector:n=e.IOPixelType.COVARIANTVECTOR;break;case r.SymmetricSecondRankTensor:n=e.IOPixelType.SYMMETRICSECONDRANKTENSOR;break;case r.DiffusionTensor3D:n=e.IOPixelType.DIFFUSIONTENSOR3D;break;case r.Complex:n=e.IOPixelType.COMPLEX;break;case r.FixedArray:n=e.IOPixelType.FIXEDARRAY;break;case r.Array:n=e.IOPixelType.ARRAY;break;case r.Matrix:n=e.IOPixelType.MATRIX;break;case r.VariableLengthVector:n=e.IOPixelType.VARIABLELENGTHVECTOR;break;case r.VariableSizeMatrix:n=e.IOPixelType.VARIABLESIZEMATRIX;break;default:throw new Error("Unknown IO pixel type")}return n}},function(e,t){var n=new Map([["image/jpeg","itkJPEGImageIOJSBinding"],["image/png","itkPNGImageIOJSBinding"],["image/tiff","itkTIFFImageIOJSBinding"],["image/x-ms-bmp","itkBMPImageIOJSBinding"],["image/x-bmp","itkBMPImageIOJSBinding"],["image/bmp","itkBMPImageIOJSBinding"],["application/dicom","itkGDCMImageIOJSBinding"]]);e.exports=n},function(e,t,n){var r=n(72);e.exports=function(e,t){if(null==e)return{};var n,o,a=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t){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})(e)}function r(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(e){return n(e)}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},r(t)}e.exports=r},function(e,t,n){(function(t){var r=n(1),o=n(20),a=function(e,n){return new("undefined"!=typeof window?window[e]:t[e])(n)};e.exports=function(e,t,n,i){i&&i.forEach((function(t){switch(t.type){case r.Text:case r.Binary:e.writeFile(t.path,t.data);break;case r.Image:var n={};for(var o in t.data)Object.prototype.hasOwnProperty.call(t.data,o)&&"data"!==o&&(n[o]=t.data[o]);n.data=t.path+".data",e.writeFile(t.path,JSON.stringify(n)),e.writeFile(n.data,new Uint8Array(t.data.data.buffer));break;case r.Mesh:var a={};for(var i in t.data)Object.prototype.hasOwnProperty.call(t.data,i)&&"points"!==i&&"pointData"!==i&&"cells"!==i&&"cellData"!==i&&(a[i]=t.data[i]);a.points=t.path+".points.data",a.pointData=t.path+".pointData.data",a.cells=t.path+".cells.data",a.cellData=t.path+".cellData.data",e.writeFile(t.path,JSON.stringify(a)),a.numberOfPoints&&e.writeFile(a.points,new Uint8Array(t.data.points.buffer)),a.numberOfPointPixels&&e.writeFile(a.pointData,new Uint8Array(t.data.pointData.buffer)),a.numberOfCells&&e.writeFile(a.cells,new Uint8Array(t.data.cells.buffer)),a.numberOfCellPixels&&e.writeFile(a.cellData,new Uint8Array(t.data.cellData.buffer));break;default:throw Error("Unsupported input IOType")}})),e.resetModuleStdout(),e.resetModuleStderr(),e.callMain(t);var s=e.getModuleStdout(),u=e.getModuleStderr(),c=[];return n&&n.forEach((function(t){var n={};switch(Object.assign(n,t),t.type){case r.Text:n.data=e.readFile(t.path,{encoding:"utf8"});break;case r.Binary:n.data=e.readFile(t.path,{encoding:"binary"});break;case r.Image:var i=e.readFile(t.path,{encoding:"utf8"}),s=JSON.parse(i),u=e.readFile(s.data,{encoding:"binary"});s.data=o(s.imageType.componentType,u.buffer),n.data=s;break;case r.Mesh:var f=e.readFile(t.path,{encoding:"utf8"}),l=JSON.parse(f);if(l.numberOfPoints){var p=e.readFile(l.points,{encoding:"binary"});l.points=o(l.meshType.pointComponentType,p.buffer)}else l.points=o(l.meshType.pointComponentType,new ArrayBuffer(0));if(l.numberOfPointPixels){var d=e.readFile(l.pointData,{encoding:"binary"});l.pointData=o(l.meshType.pointPixelComponentType,d.buffer)}else l.pointData=o(l.meshType.pointPixelComponentType,new ArrayBuffer(0));if(l.numberOfCells){var h=e.readFile(l.cells,{encoding:"binary"});l.cells=o(l.meshType.cellComponentType,h.buffer)}else l.cells=o(l.meshType.cellComponentType,new ArrayBuffer(0));if(l.numberOfCellPixels){var y=e.readFile(l.cellData,{encoding:"binary"});l.cellData=o(l.meshType.cellPixelComponentType,y.buffer)}else l.cellData=o(l.meshType.cellPixelComponentType,new ArrayBuffer(0));n.data=l;break;case r.vtkPolyData:var m=e.readFile("".concat(t.path,"/index.json"),{encoding:"utf8"}),g=JSON.parse(m);["points","verts","lines","polys","strips"].forEach((function(n){if(g[n]){var r=g[n];if(r.ref){var o=e.readFile("".concat(t.path,"/").concat(r.ref.basepath,"/").concat(r.ref.id),{encoding:"binary"});g[n].buffer=o.buffer,g[n].values=a(g[n].dataType,o.buffer),delete r.ref}}}));["pointData","cellData","fieldData"].forEach((function(n){g[n]&&g[n].arrays.forEach((function(n){if(n.data.ref){var r=e.readFile("".concat(t.path,"/").concat(n.data.ref.basepath,"/").concat(n.data.ref.id),{encoding:"binary"});n.data.buffer=r.buffer,n.data.values=a(n.data.dataType,r.buffer),delete n.data.ref}}))})),n.data=g;break;default:throw Error("Unsupported output IOType")}c.push(n)})),{stdout:s,stderr:u,outputs:c}}}).call(this,n(77))},function(e,t,n){var r=n(15);e.exports=function(e,t,n,o){var a=new r(e);return a.data[n+t*a.columns]=o,a}},function(e,t,n){"use strict";var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Object.defineProperty(this,"__listeners",{value:{},enumerable:!1,writable:!1})}return r(e,[{key:"emit",value:function(e){if(!this.__listeners[e])return this;for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=!0,a=!1,i=void 0;try{for(var s,u=this.__listeners[e][Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var c=s.value;c.apply(void 0,n)}}catch(e){a=!0,i=e}finally{try{!o&&u.return&&u.return()}finally{if(a)throw i}}return this}},{key:"once",value:function(e,t){var n=this,r=function r(){n.off(e,r),t.apply(void 0,arguments)};return this.on(e,r)}},{key:"on",value:function(e,t){return this.__listeners[e]||(this.__listeners[e]=[]),this.__listeners[e].push(t),this}},{key:"off",value:function(e,t){return this.__listeners[e]=t?this.__listeners[e].filter((function(e){return e!==t})):[],this}}]),e}();e.exports=o},function(e,t,n){"use strict";var r=n(5),o=n(22),a=n(55),i=n(28);function s(e){var t=new a(e),n=o(a.prototype.request,t);return r.extend(n,a.prototype,t),r.extend(n,t),n}var u=s(n(25));u.Axios=a,u.create=function(e){return s(i(u.defaults,e))},u.Cancel=n(29),u.CancelToken=n(68),u.isCancel=n(24),u.all=function(e){return Promise.all(e)},u.spread=n(69),e.exports=u,e.exports.default=u},function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)} /*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh <https://feross.org> * @license MIT */ e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t,n){"use strict";var r=n(5),o=n(23),a=n(56),i=n(57),s=n(28);function u(e){this.defaults=e,this.interceptors={request:new a,response:new a}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method=e.method?e.method.toLowerCase():"get";var t=[i,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},u.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,o){return this.request(r.merge(o||{},{method:e,url:t,data:n}))}})),e.exports=u},function(e,t,n){"use strict";var r=n(5);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},function(e,t,n){"use strict";var r=n(5),o=n(58),a=n(24),i=n(25),s=n(66),u=n(67);function c(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return c(e),e.baseURL&&!s(e.url)&&(e.url=u(e.baseURL,e.url)),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||i.adapter)(e).then((function(t){return c(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(c(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(5);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var u,c=[],f=!1,l=-1;function p(){f&&u&&(f=!1,u.length?c=u.concat(c):l=-1,c.length&&d())}function d(){if(!f){var e=s(p);f=!0;for(var t=c.length;t;){for(u=c,c=[];++l<t;)u&&u[l].run();l=-1,t=c.length}u=null,f=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function y(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||f||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(5);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(27);e.exports=function(e,t,n){var o=n.config.validateStatus;!o||o(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(5),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,i={};return e?(r.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(i[t]&&o.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}},function(e,t,n){"use strict";var r=n(5);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(5);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,a,i){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(a)&&s.push("domain="+a),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(29);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){(function(e){function t(e){return(t="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})(e)}!function(n){"use strict";var r=Object.prototype,o=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag",c="object"===t(e),f=n.regeneratorRuntime;if(f)c&&(e.exports=f);else{(f=n.regeneratorRuntime=c?e.exports:{}).wrap=m;var l={},p={};p[i]=function(){return this};var d=Object.getPrototypeOf,h=d&&d(d(P([])));h&&h!==r&&o.call(h,i)&&(p=h);var y=b.prototype=I.prototype=Object.create(p);v.prototype=y.constructor=b,b.constructor=v,b[u]=v.displayName="GeneratorFunction",f.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},f.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u in e||(e[u]="GeneratorFunction")),e.prototype=Object.create(y),e},f.awrap=function(e){return{__await:e}},O(k.prototype),k.prototype[s]=function(){return this},f.AsyncIterator=k,f.async=function(e,t,n,r){var o=new k(m(e,t,n,r));return f.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},O(y),y[u]="Generator",y[i]=function(){return this},y.toString=function(){return"[object Generator]"},f.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},f.values=P,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,l):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}}}function m(e,t,n,r){var o=t&&t.prototype instanceof I?t:I,a=Object.create(o.prototype),i=new S(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return B()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=w(i,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=g(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,i),a}function g(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function I(){}function v(){}function b(){}function O(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function k(e){var n;this._invoke=function(r,a){function i(){return new Promise((function(n,i){!function n(r,a,i,s){var u=g(e[r],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"===t(f)&&o.call(f,"__await")?Promise.resolve(f.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):Promise.resolve(f).then((function(e){c.value=e,i(c)}),s)}s(u.arg)}(r,a,n,i)}))}return n=n?n.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=g(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function P(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(o.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:B}}function B(){return{value:void 0,done:!0}}}(function(){return this}()||Function("return this")())}).call(this,n(71)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t,n){var r=n(31);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t,n){var r=n(31);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){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})(e)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},function(e,t,n){"use strict";n.r(t);var r=n(32),o=n.n(r),a=n(7),i=n.n(a),s=n(11),u=n.n(s),c=n(2),f=n.n(c),l=n(33),p=n.n(l),d=n(34),h=n.n(d),y=n(35),m=n.n(y),g=n(36),I=n.n(g),v=n(17),b=n.n(v),O=n(37),k=n.n(O),w=n(38),T=n.n(w),x=n(18),S=n.n(x),P=n(9),B=n.n(P),A=n(1),C=n.n(A),E=n(15),R=n.n(E),M=n(39),N=n.n(M),F=n(40),L=n.n(F),J=n(41),U=n.n(J),D=n(42),j=n.n(D),_=n(43),G=n.n(_),V=n(44),W=n.n(V),H=n(19),K=n.n(H),z=n(45),X=n.n(z),Y=n(13),q=n.n(Y),Q=n(12),$=n.n(Q),Z=n(16),ee=n.n(Z),te=n(14),ne=n.n(te),re=n(0),oe=n.n(re),ae=function(e,t){if(t){var n=new ee.a(t);return Promise.resolve({webworkerPromise:n,worker:t})}var r="".concat(oe.a.it