filestack-js 4.3.7 → 4.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see filestack.esm.js.LICENSE.txt */
2
- var __webpack_modules__={2:e=>{e.exports={extensions:["jpg","png","apng","gif","webp","flif","xcf","cr2","cr3","orf","arw","dng","nef","rw2","raf","tif","bmp","icns","jxr","psd","indd","zip","tar","rar","gz","bz2","7z","dmg","mp4","mid","mkv","webm","mov","avi","mpg","mp2","mp3","m4a","oga","ogg","ogv","opus","flac","wav","spx","amr","pdf","epub","exe","swf","rtf","wasm","woff","woff2","eot","ttf","otf","ico","flv","ps","xz","sqlite","nes","crx","xpi","cab","deb","ar","rpm","Z","lz","cfb","mxf","mts","blend","bpg","docx","pptx","xlsx","3gp","3g2","jp2","jpm","jpx","mj2","aif","qcp","odt","ods","odp","xml","mobi","heic","cur","ktx","ape","wv","dcm","ics","glb","pcap","dsf","lnk","alias","voc","ac3","m4v","m4p","m4b","f4v","f4p","f4b","f4a","mie","asf","ogm","ogx","mpc","arrow","shp","aac","mp1","it","s3m","xm","ai","skp","avif","eps","lzh","pgp","asar","stl","chm","3mf","zst","jxl","vcf"],mimeTypes:["image/jpeg","image/png","image/gif","image/webp","image/flif","image/x-xcf","image/x-canon-cr2","image/x-canon-cr3","image/tiff","image/bmp","image/vnd.ms-photo","image/vnd.adobe.photoshop","application/x-indesign","application/epub+zip","application/x-xpinstall","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/zip","application/x-tar","application/x-rar-compressed","application/gzip","application/x-bzip2","application/x-7z-compressed","application/x-apple-diskimage","application/x-apache-arrow","video/mp4","audio/midi","video/x-matroska","video/webm","video/quicktime","video/vnd.avi","audio/vnd.wave","audio/qcelp","audio/x-ms-asf","video/x-ms-asf","application/vnd.ms-asf","video/mpeg","video/3gpp","audio/mpeg","audio/mp4","audio/opus","video/ogg","audio/ogg","application/ogg","audio/x-flac","audio/ape","audio/wavpack","audio/amr","application/pdf","application/x-msdownload","application/x-shockwave-flash","application/rtf","application/wasm","font/woff","font/woff2","application/vnd.ms-fontobject","font/ttf","font/otf","image/x-icon","video/x-flv","application/postscript","application/eps","application/x-xz","application/x-sqlite3","application/x-nintendo-nes-rom","application/x-google-chrome-extension","application/vnd.ms-cab-compressed","application/x-deb","application/x-unix-archive","application/x-rpm","application/x-compress","application/x-lzip","application/x-cfb","application/x-mie","application/mxf","video/mp2t","application/x-blender","image/bpg","image/jp2","image/jpx","image/jpm","image/mj2","audio/aiff","application/xml","application/x-mobipocket-ebook","image/heif","image/heif-sequence","image/heic","image/heic-sequence","image/icns","image/ktx","application/dicom","audio/x-musepack","text/calendar","text/vcard","model/gltf-binary","application/vnd.tcpdump.pcap","audio/x-dsf","application/x.ms.shortcut","application/x.apple.alias","audio/x-voc","audio/vnd.dolby.dd-raw","audio/x-m4a","image/apng","image/x-olympus-orf","image/x-sony-arw","image/x-adobe-dng","image/x-nikon-nef","image/x-panasonic-rw2","image/x-fujifilm-raf","video/x-m4v","video/3gpp2","application/x-esri-shape","audio/aac","audio/x-it","audio/x-s3m","audio/x-xm","video/MP1S","video/MP2P","application/vnd.sketchup.skp","image/avif","application/x-lzh-compressed","application/pgp-encrypted","application/x-asar","model/stl","application/vnd.ms-htmlhelp","model/3mf","image/jxl","application/zstd"]}},15:e=>{e.exports=EvalError},157:e=>{e.exports=Error},249:(module,__unused_webpack_exports,__webpack_require__)=>{var Buffer=__webpack_require__(1545).hp;function _typeof(e){return _typeof="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},_typeof(e)}function _regeneratorRuntime(){_regeneratorRuntime=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),s=new A(n||[]);return o(a,"_invoke",{value:F(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var f="suspendedStart",d="suspendedYield",m="executing",h="completed",y={};function g(){}function v(){}function b(){}var _={};u(_,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(T([])));w&&w!==r&&n.call(w,a)&&(_=w);var k=b.prototype=g.prototype=Object.create(_);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(o,i,a,s){var c=l(e[o],e,i);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==_typeof(p)&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function F(t,r,n){var o=f;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var u=l(t,r,n);if("normal"===u.type){if(o=n.done?h:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=h,n.method="throw",n.arg=u.arg)}}}function O(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=l(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function j(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 P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(_typeof(t)+" is not iterable")}return v.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=u(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,c,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},E(S.prototype),u(S.prototype,s,(function(){return this})),t.AsyncIterator=S,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new S(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(k),u(k,c,"Generator"),u(k,a,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=T,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},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),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _createForOfIteratorHelper(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ownKeys(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 _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:String(t)}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function asyncGeneratorStep(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 _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){asyncGeneratorStep(i,n,o,a,s,"next",e)}function s(e){asyncGeneratorStep(i,n,o,a,s,"throw",e)}a(void 0)}))}}var Token=__webpack_require__(4872),strtok3=__webpack_require__(4021),_require=__webpack_require__(1690),stringToBytes=_require.stringToBytes,tarHeaderChecksumMatches=_require.tarHeaderChecksumMatches,uint32SyncSafeToken=_require.uint32SyncSafeToken,supported=__webpack_require__(2),minimumBytes=4100;function fromStream(e){return _fromStream.apply(this,arguments)}function _fromStream(){return _fromStream=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,strtok3.fromStream(t);case 2:return r=e.sent,e.prev=3,e.next=6,fromTokenizer(r);case 6:return e.abrupt("return",e.sent);case 7:return e.prev=7,e.next=10,r.close();case 10:return e.finish(7);case 11:case"end":return e.stop()}}),e,null,[[3,,7,11]])}))),_fromStream.apply(this,arguments)}function fromBuffer(e){return _fromBuffer.apply(this,arguments)}function _fromBuffer(){return(_fromBuffer=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r,n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t instanceof Uint8Array||t instanceof ArrayBuffer||Buffer.isBuffer(t)){e.next=2;break}throw new TypeError("Expected the `input` argument to be of type `Uint8Array` or `Buffer` or `ArrayBuffer`, got `".concat(_typeof(t),"`"));case 2:if((r=t instanceof Buffer?t:Buffer.from(t))&&r.length>1){e.next=5;break}return e.abrupt("return");case 5:return n=strtok3.fromBuffer(r),e.abrupt("return",fromTokenizer(n));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _check(e,t,r){r=_objectSpread({offset:0},r);var n,o=_createForOfIteratorHelper(t.entries());try{for(o.s();!(n=o.n()).done;){var i=_slicedToArray(n.value,2),a=i[0],s=i[1];if(r.mask){if(s!==(r.mask[a]&e[a+r.offset]))return!1}else if(s!==e[a+r.offset])return!1}}catch(e){o.e(e)}finally{o.f()}return!0}function fromTokenizer(e){return _fromTokenizer2.apply(this,arguments)}function _fromTokenizer2(){return(_fromTokenizer2=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",_fromTokenizer(t));case 4:if(e.prev=4,e.t0=e.catch(0),e.t0 instanceof strtok3.EndOfStreamError){e.next=8;break}throw e.t0;case 8:case"end":return e.stop()}}),e,null,[[0,4]])})))).apply(this,arguments)}function _fromTokenizer(e){return _fromTokenizer3.apply(this,arguments)}function _fromTokenizer3(){return _fromTokenizer3=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r,n,o,i,a,s,c,u,p,l,f,d,m,h,y,g,v,b,_,x,w,k,E,S,F,O,j,P,A,T;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Buffer.alloc(minimumBytes),n=function(e,t){return _check(r,e,t)},o=function(e,t){return n(stringToBytes(e),t)},t.fileInfo.size||(t.fileInfo.size=Number.MAX_SAFE_INTEGER),e.next=7,t.peekBuffer(r,{length:12,mayBeLess:!0});case 7:if(!n([66,77])){e.next=9;break}return e.abrupt("return",{ext:"bmp",mime:"image/bmp"});case 9:if(!n([11,119])){e.next=11;break}return e.abrupt("return",{ext:"ac3",mime:"audio/vnd.dolby.dd-raw"});case 11:if(!n([120,1])){e.next=13;break}return e.abrupt("return",{ext:"dmg",mime:"application/x-apple-diskimage"});case 13:if(!n([77,90])){e.next=15;break}return e.abrupt("return",{ext:"exe",mime:"application/x-msdownload"});case 15:if(!n([37,33])){e.next=21;break}return e.next=18,t.peekBuffer(r,{length:24,mayBeLess:!0});case 18:if(!o("PS-Adobe-",{offset:2})||!o(" EPSF-",{offset:14})){e.next=20;break}return e.abrupt("return",{ext:"eps",mime:"application/eps"});case 20:return e.abrupt("return",{ext:"ps",mime:"application/postscript"});case 21:if(!n([31,160])&&!n([31,157])){e.next=23;break}return e.abrupt("return",{ext:"Z",mime:"application/x-compress"});case 23:if(!n([255,216,255])){e.next=25;break}return e.abrupt("return",{ext:"jpg",mime:"image/jpeg"});case 25:if(!n([73,73,188])){e.next=27;break}return e.abrupt("return",{ext:"jxr",mime:"image/vnd.ms-photo"});case 27:if(!n([31,139,8])){e.next=29;break}return e.abrupt("return",{ext:"gz",mime:"application/gzip"});case 29:if(!n([66,90,104])){e.next=31;break}return e.abrupt("return",{ext:"bz2",mime:"application/x-bzip2"});case 31:if(!o("ID3")){e.next=42;break}return e.next=34,t.ignore(6);case 34:return e.next=36,t.readToken(uint32SyncSafeToken);case 36:if(i=e.sent,!(t.position+i>t.fileInfo.size)){e.next=39;break}return e.abrupt("return",{ext:"mp3",mime:"audio/mpeg"});case 39:return e.next=41,t.ignore(i);case 41:return e.abrupt("return",fromTokenizer(t));case 42:if(!o("MP+")){e.next=44;break}return e.abrupt("return",{ext:"mpc",mime:"audio/x-musepack"});case 44:if(67!==r[0]&&70!==r[0]||!n([87,83],{offset:1})){e.next=46;break}return e.abrupt("return",{ext:"swf",mime:"application/x-shockwave-flash"});case 46:if(!n([71,73,70])){e.next=48;break}return e.abrupt("return",{ext:"gif",mime:"image/gif"});case 48:if(!o("FLIF")){e.next=50;break}return e.abrupt("return",{ext:"flif",mime:"image/flif"});case 50:if(!o("8BPS")){e.next=52;break}return e.abrupt("return",{ext:"psd",mime:"image/vnd.adobe.photoshop"});case 52:if(!o("WEBP",{offset:8})){e.next=54;break}return e.abrupt("return",{ext:"webp",mime:"image/webp"});case 54:if(!o("MPCK")){e.next=56;break}return e.abrupt("return",{ext:"mpc",mime:"audio/x-musepack"});case 56:if(!o("FORM")){e.next=58;break}return e.abrupt("return",{ext:"aif",mime:"audio/aiff"});case 58:if(!o("icns",{offset:0})){e.next=60;break}return e.abrupt("return",{ext:"icns",mime:"image/icns"});case 60:if(!n([80,75,3,4])){e.next=121;break}e.prev=61;case 62:if(!(t.position+30<t.fileInfo.size)){e.next=114;break}return e.next=65,t.readBuffer(r,{length:30});case 65:return a={compressedSize:r.readUInt32LE(18),uncompressedSize:r.readUInt32LE(22),filenameLength:r.readUInt16LE(26),extraFieldLength:r.readUInt16LE(28)},e.next=68,t.readToken(new Token.StringType(a.filenameLength,"utf-8"));case 68:return a.filename=e.sent,e.next=71,t.ignore(a.extraFieldLength);case 71:if("META-INF/mozilla.rsa"!==a.filename){e.next=73;break}return e.abrupt("return",{ext:"xpi",mime:"application/x-xpinstall"});case 73:if(!a.filename.endsWith(".rels")&&!a.filename.endsWith(".xml")){e.next=83;break}s=a.filename.split("/")[0],e.t0=s,e.next="_rels"===e.t0?78:"word"===e.t0?79:"ppt"===e.t0?80:"xl"===e.t0?81:82;break;case 78:return e.abrupt("break",83);case 79:return e.abrupt("return",{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"});case 80:return e.abrupt("return",{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"});case 81:return e.abrupt("return",{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});case 82:return e.abrupt("break",83);case 83:if(!a.filename.startsWith("xl/")){e.next=85;break}return e.abrupt("return",{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});case 85:if(!a.filename.startsWith("3D/")||!a.filename.endsWith(".model")){e.next=87;break}return e.abrupt("return",{ext:"3mf",mime:"model/3mf"});case 87:if("mimetype"!==a.filename||a.compressedSize!==a.uncompressedSize){e.next=98;break}return e.next=90,t.readToken(new Token.StringType(a.compressedSize,"utf-8"));case 90:c=e.sent,e.t1=c,e.next="application/epub+zip"===e.t1?94:"application/vnd.oasis.opendocument.text"===e.t1?95:"application/vnd.oasis.opendocument.spreadsheet"===e.t1?96:"application/vnd.oasis.opendocument.presentation"===e.t1?97:98;break;case 94:return e.abrupt("return",{ext:"epub",mime:"application/epub+zip"});case 95:return e.abrupt("return",{ext:"odt",mime:"application/vnd.oasis.opendocument.text"});case 96:return e.abrupt("return",{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"});case 97:return e.abrupt("return",{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"});case 98:if(0!==a.compressedSize){e.next=110;break}u=-1;case 100:if(!(u<0&&t.position<t.fileInfo.size)){e.next=108;break}return e.next=103,t.peekBuffer(r,{mayBeLess:!0});case 103:return u=r.indexOf("504B0304",0,"hex"),e.next=106,t.ignore(u>=0?u:r.length);case 106:e.next=100;break;case 108:e.next=112;break;case 110:return e.next=112,t.ignore(a.compressedSize);case 112:e.next=62;break;case 114:e.next=120;break;case 116:if(e.prev=116,e.t2=e.catch(61),e.t2 instanceof strtok3.EndOfStreamError){e.next=120;break}throw e.t2;case 120:return e.abrupt("return",{ext:"zip",mime:"application/zip"});case 121:if(!o("OggS")){e.next=140;break}return e.next=124,t.ignore(28);case 124:return p=Buffer.alloc(8),e.next=127,t.readBuffer(p);case 127:if(!_check(p,[79,112,117,115,72,101,97,100])){e.next=129;break}return e.abrupt("return",{ext:"opus",mime:"audio/opus"});case 129:if(!_check(p,[128,116,104,101,111,114,97])){e.next=131;break}return e.abrupt("return",{ext:"ogv",mime:"video/ogg"});case 131:if(!_check(p,[1,118,105,100,101,111,0])){e.next=133;break}return e.abrupt("return",{ext:"ogm",mime:"video/ogg"});case 133:if(!_check(p,[127,70,76,65,67])){e.next=135;break}return e.abrupt("return",{ext:"oga",mime:"audio/ogg"});case 135:if(!_check(p,[83,112,101,101,120,32,32])){e.next=137;break}return e.abrupt("return",{ext:"spx",mime:"audio/ogg"});case 137:if(!_check(p,[1,118,111,114,98,105,115])){e.next=139;break}return e.abrupt("return",{ext:"ogg",mime:"audio/ogg"});case 139:return e.abrupt("return",{ext:"ogx",mime:"application/ogg"});case 140:if(!n([80,75])||3!==r[2]&&5!==r[2]&&7!==r[2]||4!==r[3]&&6!==r[3]&&8!==r[3]){e.next=142;break}return e.abrupt("return",{ext:"zip",mime:"application/zip"});case 142:if(!(o("ftyp",{offset:4})&&96&r[8])){e.next=167;break}l=r.toString("binary",8,12).replace("\0"," ").trim(),e.t3=l,e.next="avif"===e.t3?147:"mif1"===e.t3?148:"msf1"===e.t3?149:"heic"===e.t3||"heix"===e.t3?150:"hevc"===e.t3||"hevx"===e.t3?151:"qt"===e.t3?152:"M4V"===e.t3||"M4VH"===e.t3||"M4VP"===e.t3?153:"M4P"===e.t3?154:"M4B"===e.t3?155:"M4A"===e.t3?156:"F4V"===e.t3?157:"F4P"===e.t3?158:"F4A"===e.t3?159:"F4B"===e.t3?160:"crx"===e.t3?161:162;break;case 147:return e.abrupt("return",{ext:"avif",mime:"image/avif"});case 148:return e.abrupt("return",{ext:"heic",mime:"image/heif"});case 149:return e.abrupt("return",{ext:"heic",mime:"image/heif-sequence"});case 150:return e.abrupt("return",{ext:"heic",mime:"image/heic"});case 151:return e.abrupt("return",{ext:"heic",mime:"image/heic-sequence"});case 152:return e.abrupt("return",{ext:"mov",mime:"video/quicktime"});case 153:return e.abrupt("return",{ext:"m4v",mime:"video/x-m4v"});case 154:return e.abrupt("return",{ext:"m4p",mime:"video/mp4"});case 155:return e.abrupt("return",{ext:"m4b",mime:"audio/mp4"});case 156:return e.abrupt("return",{ext:"m4a",mime:"audio/x-m4a"});case 157:return e.abrupt("return",{ext:"f4v",mime:"video/mp4"});case 158:return e.abrupt("return",{ext:"f4p",mime:"video/mp4"});case 159:return e.abrupt("return",{ext:"f4a",mime:"audio/mp4"});case 160:return e.abrupt("return",{ext:"f4b",mime:"audio/mp4"});case 161:return e.abrupt("return",{ext:"cr3",mime:"image/x-canon-cr3"});case 162:if(!l.startsWith("3g")){e.next=166;break}if(!l.startsWith("3g2")){e.next=165;break}return e.abrupt("return",{ext:"3g2",mime:"video/3gpp2"});case 165:return e.abrupt("return",{ext:"3gp",mime:"video/3gpp"});case 166:return e.abrupt("return",{ext:"mp4",mime:"video/mp4"});case 167:if(!o("MThd")){e.next=169;break}return e.abrupt("return",{ext:"mid",mime:"audio/midi"});case 169:if(!o("wOFF")||!n([0,1,0,0],{offset:4})&&!o("OTTO",{offset:4})){e.next=171;break}return e.abrupt("return",{ext:"woff",mime:"font/woff"});case 171:if(!o("wOF2")||!n([0,1,0,0],{offset:4})&&!o("OTTO",{offset:4})){e.next=173;break}return e.abrupt("return",{ext:"woff2",mime:"font/woff2"});case 173:if(!n([212,195,178,161])&&!n([161,178,195,212])){e.next=175;break}return e.abrupt("return",{ext:"pcap",mime:"application/vnd.tcpdump.pcap"});case 175:if(!o("DSD ")){e.next=177;break}return e.abrupt("return",{ext:"dsf",mime:"audio/x-dsf"});case 177:if(!o("LZIP")){e.next=179;break}return e.abrupt("return",{ext:"lz",mime:"application/x-lzip"});case 179:if(!o("fLaC")){e.next=181;break}return e.abrupt("return",{ext:"flac",mime:"audio/x-flac"});case 181:if(!n([66,80,71,251])){e.next=183;break}return e.abrupt("return",{ext:"bpg",mime:"image/bpg"});case 183:if(!o("wvpk")){e.next=185;break}return e.abrupt("return",{ext:"wv",mime:"audio/wavpack"});case 185:if(!o("%PDF")){e.next=195;break}return e.next=188,t.ignore(1350);case 188:return f=Buffer.alloc(Math.min(10485760,t.fileInfo.size)),e.next=192,t.readBuffer(f,{mayBeLess:!0});case 192:if(!f.includes(Buffer.from("AIPrivateData"))){e.next=194;break}return e.abrupt("return",{ext:"ai",mime:"application/postscript"});case 194:return e.abrupt("return",{ext:"pdf",mime:"application/pdf"});case 195:if(!n([0,97,115,109])){e.next=197;break}return e.abrupt("return",{ext:"wasm",mime:"application/wasm"});case 197:if(!n([73,73,42,0])){e.next=210;break}if(!o("CR",{offset:8})){e.next=200;break}return e.abrupt("return",{ext:"cr2",mime:"image/x-canon-cr2"});case 200:if(!n([28,0,254,0],{offset:8})&&!n([31,0,11,0],{offset:8})){e.next=202;break}return e.abrupt("return",{ext:"nef",mime:"image/x-nikon-nef"});case 202:if(!n([8,0,0,0],{offset:4})||!n([45,0,254,0],{offset:8})&&!n([39,0,254,0],{offset:8})){e.next=204;break}return e.abrupt("return",{ext:"dng",mime:"image/x-adobe-dng"});case 204:return r=Buffer.alloc(24),e.next=207,t.peekBuffer(r);case 207:if(!n([16,251,134,1],{offset:4})&&!n([8,0,0,0],{offset:4})||!n([0,254,0,4,0,1,0,0,0,1,0,0,0,3,1],{offset:9})){e.next=209;break}return e.abrupt("return",{ext:"arw",mime:"image/x-sony-arw"});case 209:return e.abrupt("return",{ext:"tif",mime:"image/tiff"});case 210:if(!n([77,77,0,42])){e.next=212;break}return e.abrupt("return",{ext:"tif",mime:"image/tiff"});case 212:if(!o("MAC ")){e.next=214;break}return e.abrupt("return",{ext:"ape",mime:"audio/ape"});case 214:if(!n([26,69,223,163])){e.next=233;break}return v=function(){return(v=_asyncToGenerator(_regeneratorRuntime().mark((function e(r,n){var o;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n>0)){e.next=11;break}return e.next=3,h();case 3:if(17026!==(o=e.sent).id){e.next=6;break}return e.abrupt("return",t.readToken(new Token.StringType(o.len,"utf-8")));case 6:return e.next=8,t.ignore(o.len);case 8:--n,e.next=0;break;case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)},g=function(e,t){return v.apply(this,arguments)},y=function(){return(y=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d();case 2:return t=e.sent,e.next=5,d();case 5:return(r=e.sent)[0]^=128>>r.length-1,n=Math.min(6,r.length),e.abrupt("return",{id:t.readUIntBE(0,t.length),len:r.readUIntBE(r.length-n,n)});case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)},h=function(){return y.apply(this,arguments)},m=function(){return(m=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var r,n,o,i;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.peekNumber(Token.UINT8);case 2:for(r=e.sent,n=128,o=0;!(r&n)&&0!==n;)++o,n>>=1;return i=Buffer.alloc(o+1),e.next=9,t.readBuffer(i);case 9:return e.abrupt("return",i);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)},d=function(){return m.apply(this,arguments)},e.next=223,h();case 223:return b=e.sent,e.next=226,g(1,b.len);case 226:_=e.sent,e.t4=_,e.next="webm"===e.t4?230:"matroska"===e.t4?231:232;break;case 230:return e.abrupt("return",{ext:"webm",mime:"video/webm"});case 231:return e.abrupt("return",{ext:"mkv",mime:"video/x-matroska"});case 232:return e.abrupt("return");case 233:if(!n([82,73,70,70])){e.next=240;break}if(!n([65,86,73],{offset:8})){e.next=236;break}return e.abrupt("return",{ext:"avi",mime:"video/vnd.avi"});case 236:if(!n([87,65,86,69],{offset:8})){e.next=238;break}return e.abrupt("return",{ext:"wav",mime:"audio/vnd.wave"});case 238:if(!n([81,76,67,77],{offset:8})){e.next=240;break}return e.abrupt("return",{ext:"qcp",mime:"audio/qcelp"});case 240:if(!o("SQLi")){e.next=242;break}return e.abrupt("return",{ext:"sqlite",mime:"application/x-sqlite3"});case 242:if(!n([78,69,83,26])){e.next=244;break}return e.abrupt("return",{ext:"nes",mime:"application/x-nintendo-nes-rom"});case 244:if(!o("Cr24")){e.next=246;break}return e.abrupt("return",{ext:"crx",mime:"application/x-google-chrome-extension"});case 246:if(!o("MSCF")&&!o("ISc(")){e.next=248;break}return e.abrupt("return",{ext:"cab",mime:"application/vnd.ms-cab-compressed"});case 248:if(!n([237,171,238,219])){e.next=250;break}return e.abrupt("return",{ext:"rpm",mime:"application/x-rpm"});case 250:if(!n([197,208,211,198])){e.next=252;break}return e.abrupt("return",{ext:"eps",mime:"application/eps"});case 252:if(!n([40,181,47,253])){e.next=254;break}return e.abrupt("return",{ext:"zst",mime:"application/zstd"});case 254:if(!n([79,84,84,79,0])){e.next=256;break}return e.abrupt("return",{ext:"otf",mime:"font/otf"});case 256:if(!o("#!AMR")){e.next=258;break}return e.abrupt("return",{ext:"amr",mime:"audio/amr"});case 258:if(!o("{\\rtf")){e.next=260;break}return e.abrupt("return",{ext:"rtf",mime:"application/rtf"});case 260:if(!n([70,76,86,1])){e.next=262;break}return e.abrupt("return",{ext:"flv",mime:"video/x-flv"});case 262:if(!o("IMPM")){e.next=264;break}return e.abrupt("return",{ext:"it",mime:"audio/x-it"});case 264:if(!(o("-lh0-",{offset:2})||o("-lh1-",{offset:2})||o("-lh2-",{offset:2})||o("-lh3-",{offset:2})||o("-lh4-",{offset:2})||o("-lh5-",{offset:2})||o("-lh6-",{offset:2})||o("-lh7-",{offset:2})||o("-lzs-",{offset:2})||o("-lz4-",{offset:2})||o("-lz5-",{offset:2})||o("-lhd-",{offset:2}))){e.next=266;break}return e.abrupt("return",{ext:"lzh",mime:"application/x-lzh-compressed"});case 266:if(!n([0,0,1,186])){e.next=271;break}if(!n([33],{offset:4,mask:[241]})){e.next=269;break}return e.abrupt("return",{ext:"mpg",mime:"video/MP1S"});case 269:if(!n([68],{offset:4,mask:[196]})){e.next=271;break}return e.abrupt("return",{ext:"mpg",mime:"video/MP2P"});case 271:if(!o("ITSF")){e.next=273;break}return e.abrupt("return",{ext:"chm",mime:"application/vnd.ms-htmlhelp"});case 273:if(!n([253,55,122,88,90,0])){e.next=275;break}return e.abrupt("return",{ext:"xz",mime:"application/x-xz"});case 275:if(!o("<?xml ")){e.next=277;break}return e.abrupt("return",{ext:"xml",mime:"application/xml"});case 277:if(!n([55,122,188,175,39,28])){e.next=279;break}return e.abrupt("return",{ext:"7z",mime:"application/x-7z-compressed"});case 279:if(!n([82,97,114,33,26,7])||0!==r[6]&&1!==r[6]){e.next=281;break}return e.abrupt("return",{ext:"rar",mime:"application/x-rar-compressed"});case 281:if(!o("solid ")){e.next=283;break}return e.abrupt("return",{ext:"stl",mime:"model/stl"});case 283:if(!o("BLENDER")){e.next=285;break}return e.abrupt("return",{ext:"blend",mime:"application/x-blender"});case 285:if(!o("!<arch>")){e.next=294;break}return e.next=288,t.ignore(8);case 288:return e.next=290,t.readToken(new Token.StringType(13,"ascii"));case 290:if("debian-binary"!==e.sent){e.next=293;break}return e.abrupt("return",{ext:"deb",mime:"application/x-deb"});case 293:return e.abrupt("return",{ext:"ar",mime:"application/x-unix-archive"});case 294:if(!n([137,80,78,71,13,10,26,10])){e.next=313;break}return w=function(){return(w=_asyncToGenerator(_regeneratorRuntime().mark((function e(){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.readToken(Token.INT32_BE);case 2:return e.t0=e.sent,e.next=5,t.readToken(new Token.StringType(4,"binary"));case 5:return e.t1=e.sent,e.abrupt("return",{length:e.t0,type:e.t1});case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)},x=function(){return w.apply(this,arguments)},e.next=299,t.ignore(8);case 299:return e.next=301,x();case 301:if(!((k=e.sent).length<0)){e.next=304;break}return e.abrupt("return");case 304:e.t5=k.type,e.next="IDAT"===e.t5?307:"acTL"===e.t5?308:309;break;case 307:return e.abrupt("return",{ext:"png",mime:"image/png"});case 308:return e.abrupt("return",{ext:"apng",mime:"image/apng"});case 309:return e.next=311,t.ignore(k.length+4);case 311:if(t.position+8<t.fileInfo.size){e.next=299;break}case 312:return e.abrupt("return",{ext:"png",mime:"image/png"});case 313:if(!n([65,82,82,79,87,49,0,0])){e.next=315;break}return e.abrupt("return",{ext:"arrow",mime:"application/x-apache-arrow"});case 315:if(!n([103,108,84,70,2,0,0,0])){e.next=317;break}return e.abrupt("return",{ext:"glb",mime:"model/gltf-binary"});case 317:if(!(n([102,114,101,101],{offset:4})||n([109,100,97,116],{offset:4})||n([109,111,111,118],{offset:4})||n([119,105,100,101],{offset:4}))){e.next=319;break}return e.abrupt("return",{ext:"mov",mime:"video/quicktime"});case 319:if(!n([73,73,82,79,8,0,0,0,24])){e.next=321;break}return e.abrupt("return",{ext:"orf",mime:"image/x-olympus-orf"});case 321:if(!o("gimp xcf ")){e.next=323;break}return e.abrupt("return",{ext:"xcf",mime:"image/x-xcf"});case 323:if(!n([73,73,85,0,24,0,0,0,136,231,116,216])){e.next=325;break}return e.abrupt("return",{ext:"rw2",mime:"image/x-panasonic-rw2"});case 325:if(!n([48,38,178,117,142,102,207,17,166,217])){e.next=351;break}return S=function(){return(S=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var r;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Buffer.alloc(16),e.next=3,t.readBuffer(r);case 3:return e.t0=r,e.t1=Number,e.next=7,t.readToken(Token.UINT64_LE);case 7:return e.t2=e.sent,e.t3=(0,e.t1)(e.t2),e.abrupt("return",{id:e.t0,size:e.t3});case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)},E=function(){return S.apply(this,arguments)},e.next=330,t.ignore(30);case 330:if(!(t.position+24<t.fileInfo.size)){e.next=350;break}return e.next=333,E();case 333:if(F=e.sent,O=F.size-24,!_check(F.id,[145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101])){e.next=346;break}return j=Buffer.alloc(16),e.t6=O,e.next=340,t.readBuffer(j);case 340:if(O=e.t6-=e.sent,!_check(j,[64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43])){e.next=343;break}return e.abrupt("return",{ext:"asf",mime:"audio/x-ms-asf"});case 343:if(!_check(j,[192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43])){e.next=345;break}return e.abrupt("return",{ext:"asf",mime:"video/x-ms-asf"});case 345:return e.abrupt("break",350);case 346:return e.next=348,t.ignore(O);case 348:e.next=330;break;case 350:return e.abrupt("return",{ext:"asf",mime:"application/vnd.ms-asf"});case 351:if(!n([171,75,84,88,32,49,49,187,13,10,26,10])){e.next=353;break}return e.abrupt("return",{ext:"ktx",mime:"image/ktx"});case 353:if(!n([126,16,4])&&!n([126,24,4])||!n([48,77,73,69],{offset:4})){e.next=355;break}return e.abrupt("return",{ext:"mie",mime:"application/x-mie"});case 355:if(!n([39,10,0,0,0,0,0,0,0,0,0,0],{offset:2})){e.next=357;break}return e.abrupt("return",{ext:"shp",mime:"application/x-esri-shape"});case 357:if(!n([0,0,0,12,106,80,32,32,13,10,135,10])){e.next=371;break}return e.next=360,t.ignore(20);case 360:return e.next=362,t.readToken(new Token.StringType(4,"ascii"));case 362:P=e.sent,e.t7=P,e.next="jp2 "===e.t7?366:"jpx "===e.t7?367:"jpm "===e.t7?368:"mjp2"===e.t7?369:370;break;case 366:return e.abrupt("return",{ext:"jp2",mime:"image/jp2"});case 367:return e.abrupt("return",{ext:"jpx",mime:"image/jpx"});case 368:return e.abrupt("return",{ext:"jpm",mime:"image/jpm"});case 369:return e.abrupt("return",{ext:"mj2",mime:"image/mj2"});case 370:return e.abrupt("return");case 371:if(!n([255,10])&&!n([0,0,0,12,74,88,76,32,13,10,135,10])){e.next=373;break}return e.abrupt("return",{ext:"jxl",mime:"image/jxl"});case 373:if(!n([0,0,1,186])&&!n([0,0,1,179])){e.next=375;break}return e.abrupt("return",{ext:"mpg",mime:"video/mpeg"});case 375:if(!n([0,1,0,0,0])){e.next=377;break}return e.abrupt("return",{ext:"ttf",mime:"font/ttf"});case 377:if(!n([0,0,1,0])){e.next=379;break}return e.abrupt("return",{ext:"ico",mime:"image/x-icon"});case 379:if(!n([0,0,2,0])){e.next=381;break}return e.abrupt("return",{ext:"cur",mime:"image/x-icon"});case 381:if(!n([208,207,17,224,161,177,26,225])){e.next=383;break}return e.abrupt("return",{ext:"cfb",mime:"application/x-cfb"});case 383:return e.next=385,t.peekBuffer(r,{length:Math.min(256,t.fileInfo.size),mayBeLess:!0});case 385:if(!o("BEGIN:")){e.next=390;break}if(!o("VCARD",{offset:6})){e.next=388;break}return e.abrupt("return",{ext:"vcf",mime:"text/vcard"});case 388:if(!o("VCALENDAR",{offset:6})){e.next=390;break}return e.abrupt("return",{ext:"ics",mime:"text/calendar"});case 390:if(!o("FUJIFILMCCD-RAW")){e.next=392;break}return e.abrupt("return",{ext:"raf",mime:"image/x-fujifilm-raf"});case 392:if(!o("Extended Module:")){e.next=394;break}return e.abrupt("return",{ext:"xm",mime:"audio/x-xm"});case 394:if(!o("Creative Voice File")){e.next=396;break}return e.abrupt("return",{ext:"voc",mime:"audio/x-voc"});case 396:if(!(n([4,0,0,0])&&r.length>=16)){e.next=408;break}if(!((A=r.readUInt32LE(12))>12&&r.length>=A+16)){e.next=408;break}if(e.prev=399,T=r.slice(16,A+16).toString(),!JSON.parse(T).files){e.next=404;break}return e.abrupt("return",{ext:"asar",mime:"application/x-asar"});case 404:e.next=408;break;case 406:e.prev=406,e.t8=e.catch(399);case 408:if(!n([6,14,43,52,2,5,1,1,13,1,2,1,1,2])){e.next=410;break}return e.abrupt("return",{ext:"mxf",mime:"application/mxf"});case 410:if(!o("SCRM",{offset:44})){e.next=412;break}return e.abrupt("return",{ext:"s3m",mime:"audio/x-s3m"});case 412:if(!n([71],{offset:4})||!n([71],{offset:192})&&!n([71],{offset:196})){e.next=414;break}return e.abrupt("return",{ext:"mts",mime:"video/mp2t"});case 414:if(!n([66,79,79,75,77,79,66,73],{offset:60})){e.next=416;break}return e.abrupt("return",{ext:"mobi",mime:"application/x-mobipocket-ebook"});case 416:if(!n([68,73,67,77],{offset:128})){e.next=418;break}return e.abrupt("return",{ext:"dcm",mime:"application/dicom"});case 418:if(!n([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70])){e.next=420;break}return e.abrupt("return",{ext:"lnk",mime:"application/x.ms.shortcut"});case 420:if(!n([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0])){e.next=422;break}return e.abrupt("return",{ext:"alias",mime:"application/x.apple.alias"});case 422:if(!n([76,80],{offset:34})||!(n([0,0,1],{offset:8})||n([1,0,2],{offset:8})||n([2,0,2],{offset:8}))){e.next=424;break}return e.abrupt("return",{ext:"eot",mime:"application/vnd.ms-fontobject"});case 424:if(!n([6,6,237,245,216,29,70,229,189,49,239,231,254,116,183,29])){e.next=426;break}return e.abrupt("return",{ext:"indd",mime:"application/x-indesign"});case 426:return e.next=428,t.peekBuffer(r,{length:Math.min(512,t.fileInfo.size),mayBeLess:!0});case 428:if(!tarHeaderChecksumMatches(r)){e.next=430;break}return e.abrupt("return",{ext:"tar",mime:"application/x-tar"});case 430:if(!n([255,254,255,14,83,0,107,0,101,0,116,0,99,0,104,0,85,0,112,0,32,0,77,0,111,0,100,0,101,0,108,0])){e.next=432;break}return e.abrupt("return",{ext:"skp",mime:"application/vnd.sketchup.skp"});case 432:if(!o("-----BEGIN PGP MESSAGE-----")){e.next=434;break}return e.abrupt("return",{ext:"pgp",mime:"application/pgp-encrypted"});case 434:if(!(r.length>=2&&n([255,224],{offset:0,mask:[255,224]}))){e.next=445;break}if(!n([16],{offset:1,mask:[22]})){e.next=439;break}if(!n([8],{offset:1,mask:[8]})){e.next=438;break}return e.abrupt("return",{ext:"aac",mime:"audio/aac"});case 438:return e.abrupt("return",{ext:"aac",mime:"audio/aac"});case 439:if(!n([2],{offset:1,mask:[6]})){e.next=441;break}return e.abrupt("return",{ext:"mp3",mime:"audio/mpeg"});case 441:if(!n([4],{offset:1,mask:[6]})){e.next=443;break}return e.abrupt("return",{ext:"mp2",mime:"audio/mpeg"});case 443:if(!n([6],{offset:1,mask:[6]})){e.next=445;break}return e.abrupt("return",{ext:"mp1",mime:"audio/mpeg"});case 445:case"end":return e.stop()}}),e,null,[[61,116],[399,406]])}))),_fromTokenizer3.apply(this,arguments)}var stream=function stream(readableStream){return new Promise((function(resolve,reject){var stream=eval("require")("stream");readableStream.on("error",reject),readableStream.once("readable",_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,n,o;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new stream.PassThrough,r=stream.pipeline?stream.pipeline(readableStream,t,(function(){})):readableStream.pipe(t),n=readableStream.read(minimumBytes)||readableStream.read()||Buffer.alloc(0),e.prev=3,e.next=6,fromBuffer(n);case 6:o=e.sent,t.fileType=o,e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),reject(e.t0);case 13:resolve(r);case 14:case"end":return e.stop()}}),e,null,[[3,10]])}))))}))},fileType={fromStream,fromTokenizer,fromBuffer,stream};Object.defineProperty(fileType,"extensions",{get:function(){return new Set(supported.extensions)}}),Object.defineProperty(fileType,"mimeTypes",{get:function(){return new Set(supported.mimeTypes)}}),module.exports=fileType},377:(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)}var o="undefined"!=typeof Symbol&&Symbol,i=r(4379);e.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"===n(o("foo"))&&"symbol"===n(Symbol("bar"))&&i()}},395:(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)}e=r.nmd(e);var o="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",s="[object Boolean]",c="[object Date]",u="[object Function]",p="[object GeneratorFunction]",l="[object Map]",f="[object Number]",d="[object Object]",m="[object Promise]",h="[object RegExp]",y="[object Set]",g="[object String]",v="[object Symbol]",b="[object WeakMap]",_="[object ArrayBuffer]",x="[object DataView]",w="[object Float32Array]",k="[object Float64Array]",E="[object Int8Array]",S="[object Int16Array]",F="[object Int32Array]",O="[object Uint8Array]",j="[object Uint8ClampedArray]",P="[object Uint16Array]",A="[object Uint32Array]",T=/\w*$/,C=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,D={};D[a]=D["[object Array]"]=D[_]=D[x]=D[s]=D[c]=D[w]=D[k]=D[E]=D[S]=D[F]=D[l]=D[f]=D[d]=D[h]=D[y]=D[g]=D[v]=D[O]=D[j]=D[P]=D[A]=!0,D["[object Error]"]=D[u]=D[b]=!1;var L="object"==(void 0===r.g?"undefined":n(r.g))&&r.g&&r.g.Object===Object&&r.g,B="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,R=L||B||Function("return this")(),N="object"==n(t)&&t&&!t.nodeType&&t,M=N&&"object"==n(e)&&e&&!e.nodeType&&e,z=M&&M.exports===N;function U(e,t){return e.set(t[0],t[1]),e}function q(e,t){return e.add(t),e}function $(e,t,r,n){var o=-1,i=e?e.length:0;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}function V(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function G(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function H(e,t){return function(r){return e(t(r))}}function Z(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var K,W=Array.prototype,Y=Function.prototype,Q=Object.prototype,J=R["__core-js_shared__"],X=(K=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||""))?"Symbol(src)_1."+K:"",ee=Y.toString,te=Q.hasOwnProperty,re=Q.toString,ne=RegExp("^"+ee.call(te).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),oe=z?R.Buffer:void 0,ie=R.Symbol,ae=R.Uint8Array,se=H(Object.getPrototypeOf,Object),ce=Object.create,ue=Q.propertyIsEnumerable,pe=W.splice,le=Object.getOwnPropertySymbols,fe=oe?oe.isBuffer:void 0,de=H(Object.keys,Object),me=Re(R,"DataView"),he=Re(R,"Map"),ye=Re(R,"Promise"),ge=Re(R,"Set"),ve=Re(R,"WeakMap"),be=Re(Object,"create"),_e=qe(me),xe=qe(he),we=qe(ye),ke=qe(ge),Ee=qe(ve),Se=ie?ie.prototype:void 0,Fe=Se?Se.valueOf:void 0;function Oe(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function je(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Pe(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Ae(e){this.__data__=new je(e)}function Te(e,t,r){var n=e[t];te.call(e,t)&&$e(n,r)&&(void 0!==r||t in e)||(e[t]=r)}function Ce(e,t){for(var r=e.length;r--;)if($e(e[r][0],t))return r;return-1}function Ie(e,t,r,n,o,i,m){var b;if(n&&(b=i?n(e,o,i,m):n(e)),void 0!==b)return b;if(!Ke(e))return e;var C=Ve(e);if(C){if(b=function(e){var t=e.length,r=e.constructor(t);return t&&"string"==typeof e[0]&&te.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!t)return function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(e,b)}else{var I=Me(e),L=I==u||I==p;if(He(e))return function(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}(e,t);if(I==d||I==a||L&&!i){if(V(e))return i?e:{};if(b=function(e){return"function"!=typeof e.constructor||Ue(e)?{}:Ke(t=se(e))?ce(t):{};var t}(L?{}:e),!t)return function(e,t){return Le(e,Ne(e),t)}(e,function(e,t){return e&&Le(t,We(t),e)}(b,e))}else{if(!D[I])return i?e:{};b=function(e,t,r,n){var o,i=e.constructor;switch(t){case _:return De(e);case s:case c:return new i(+e);case x:return function(e,t){var r=t?De(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,n);case w:case k:case E:case S:case F:case O:case j:case P:case A:return function(e,t){var r=t?De(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,n);case l:return function(e,t,r){return $(t?r(G(e),!0):G(e),U,new e.constructor)}(e,n,r);case f:case g:return new i(e);case h:return function(e){var t=new e.constructor(e.source,T.exec(e));return t.lastIndex=e.lastIndex,t}(e);case y:return function(e,t,r){return $(t?r(Z(e),!0):Z(e),q,new e.constructor)}(e,n,r);case v:return o=e,Fe?Object(Fe.call(o)):{}}}(e,I,Ie,t)}}m||(m=new Ae);var B=m.get(e);if(B)return B;if(m.set(e,b),!C)var R=r?function(e){return function(e,t,r){var n=t(e);return Ve(e)?n:function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}(n,r(e))}(e,We,Ne)}(e):We(e);return function(e,t){for(var r=-1,n=e?e.length:0;++r<n&&!1!==t(e[r],r););}(R||e,(function(o,i){R&&(o=e[i=o]),Te(b,i,Ie(o,t,r,n,i,e,m))})),b}function De(e){var t=new e.constructor(e.byteLength);return new ae(t).set(new ae(e)),t}function Le(e,t,r,n){r||(r={});for(var o=-1,i=t.length;++o<i;){var a=t[o],s=n?n(r[a],e[a],a,r,e):void 0;Te(r,a,void 0===s?e[a]:s)}return r}function Be(e,t){var r,o,i=e.__data__;return("string"==(o=n(r=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function Re(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ke(e)||(t=e,X&&X in t))&&(Ze(e)||V(e)?ne:C).test(qe(e));var t}(r)?r:void 0}Oe.prototype.clear=function(){this.__data__=be?be(null):{}},Oe.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Oe.prototype.get=function(e){var t=this.__data__;if(be){var r=t[e];return r===o?void 0:r}return te.call(t,e)?t[e]:void 0},Oe.prototype.has=function(e){var t=this.__data__;return be?void 0!==t[e]:te.call(t,e)},Oe.prototype.set=function(e,t){return this.__data__[e]=be&&void 0===t?o:t,this},je.prototype.clear=function(){this.__data__=[]},je.prototype.delete=function(e){var t=this.__data__,r=Ce(t,e);return!(r<0||(r==t.length-1?t.pop():pe.call(t,r,1),0))},je.prototype.get=function(e){var t=this.__data__,r=Ce(t,e);return r<0?void 0:t[r][1]},je.prototype.has=function(e){return Ce(this.__data__,e)>-1},je.prototype.set=function(e,t){var r=this.__data__,n=Ce(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Pe.prototype.clear=function(){this.__data__={hash:new Oe,map:new(he||je),string:new Oe}},Pe.prototype.delete=function(e){return Be(this,e).delete(e)},Pe.prototype.get=function(e){return Be(this,e).get(e)},Pe.prototype.has=function(e){return Be(this,e).has(e)},Pe.prototype.set=function(e,t){return Be(this,e).set(e,t),this},Ae.prototype.clear=function(){this.__data__=new je},Ae.prototype.delete=function(e){return this.__data__.delete(e)},Ae.prototype.get=function(e){return this.__data__.get(e)},Ae.prototype.has=function(e){return this.__data__.has(e)},Ae.prototype.set=function(e,t){var r=this.__data__;if(r instanceof je){var n=r.__data__;if(!he||n.length<199)return n.push([e,t]),this;r=this.__data__=new Pe(n)}return r.set(e,t),this};var Ne=le?H(le,Object):function(){return[]},Me=function(e){return re.call(e)};function ze(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||I.test(e))&&e>-1&&e%1==0&&e<t}function Ue(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Q)}function qe(e){if(null!=e){try{return ee.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function $e(e,t){return e===t||e!=e&&t!=t}(me&&Me(new me(new ArrayBuffer(1)))!=x||he&&Me(new he)!=l||ye&&Me(ye.resolve())!=m||ge&&Me(new ge)!=y||ve&&Me(new ve)!=b)&&(Me=function(e){var t=re.call(e),r=t==d?e.constructor:void 0,n=r?qe(r):void 0;if(n)switch(n){case _e:return x;case xe:return l;case we:return m;case ke:return y;case Ee:return b}return t});var Ve=Array.isArray;function Ge(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}(e.length)&&!Ze(e)}var He=fe||function(){return!1};function Ze(e){var t=Ke(e)?re.call(e):"";return t==u||t==p}function Ke(e){var t=n(e);return!!e&&("object"==t||"function"==t)}function We(e){return Ge(e)?function(e,t){var r=Ve(e)||function(e){return function(e){return function(e){return!!e&&"object"==n(e)}(e)&&Ge(e)}(e)&&te.call(e,"callee")&&(!ue.call(e,"callee")||re.call(e)==a)}(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],o=r.length,i=!!o;for(var s in e)!t&&!te.call(e,s)||i&&("length"==s||ze(s,o))||r.push(s);return r}(e):function(e){if(!Ue(e))return de(e);var t=[];for(var r in Object(e))te.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}e.exports=function(e){return Ie(e,!0,!0)}},428:(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)}var o=r(1837),i=r(6234),a=r(1371),s=r(5605).S,c=a.ValidatorResult,u=a.ValidatorResultError,p=a.SchemaError,l=a.SchemaContext,f=function e(){this.customFormats=Object.create(e.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(m),this.attributes=Object.create(i.validators)};function d(e){var t="string"==typeof e?e:e.$ref;return"string"==typeof t&&t}f.prototype.customFormats={},f.prototype.schemas=null,f.prototype.types=null,f.prototype.attributes=null,f.prototype.unresolvedRefs=null,f.prototype.addSchema=function(e,t){var r=this;if(!e)return null;var n=s(t||"/",e),o=t||e.$id||e.id;for(var i in n.id)this.schemas[i]=n.id[i];for(var i in n.ref)this.unresolvedRefs.push(i);return this.unresolvedRefs=this.unresolvedRefs.filter((function(e){return void 0===r.schemas[e]})),this.schemas[o]},f.prototype.addSubSchemaArray=function(e,t){if(Array.isArray(t))for(var r=0;r<t.length;r++)this.addSubSchema(e,t[r])},f.prototype.addSubSchemaObject=function(e,t){if(t&&"object"==n(t))for(var r in t)this.addSubSchema(e,t[r])},f.prototype.setSchemas=function(e){this.schemas=e},f.prototype.getSchema=function(e){return this.schemas[e]},f.prototype.validate=function(e,t,r,i){if("boolean"!=typeof t&&"object"!==n(t)||null===t)throw new p("Expected `schema` to be an object or boolean");r||(r={});var a,f=t.$id||t.id,d=o.resolve(r.base||"/",f||"");if(!i){(i=new l(t,r,[],d,Object.create(this.schemas))).schemas[d]||(i.schemas[d]=t);var m=s(d,t);for(var h in m.id){var y=m.id[h];i.schemas[h]=y}}if(r.required&&void 0===e)return(a=new c(e,t,r,i)).addError("is required, but is undefined"),a;if(!(a=this.validateSchema(e,t,r,i)))throw new Error("Result undefined");if(r.throwAll&&a.errors.length)throw new u(a);return a},f.prototype.validateSchema=function(e,t,r,n){var o=new c(e,t,r,n);if("boolean"==typeof t)!0===t?t={}:!1===t&&(t={type:[]});else if(!t)throw new Error("schema is undefined");if(t.extends)if(Array.isArray(t.extends)){var s={schema:t,ctx:n};t.extends.forEach(this.schemaTraverser.bind(this,s)),t=s.schema,s.schema=null,s.ctx=null,s=null}else t=a.deepMerge(t,this.superResolve(t.extends,n));var u=d(t);if(u){var f=this.resolve(t,u,n),m=new l(f.subschema,r,n.path,f.switchSchema,n.schemas);return this.validateSchema(e,f.subschema,r,m)}var h=r&&r.skipAttributes||[];for(var y in t)if(!i.ignoreProperties[y]&&h.indexOf(y)<0){var g=null,v=this.attributes[y];if(v)g=v.call(this,e,t,r,n);else if(!1===r.allowUnknownAttributes)throw new p("Unsupported attribute: "+y,t);g&&o.importErrors(g)}if("function"==typeof r.rewrite){var b=r.rewrite.call(this,e,t,r,n);o.instance=b}return o},f.prototype.schemaTraverser=function(e,t){e.schema=a.deepMerge(e.schema,this.superResolve(t,e.ctx))},f.prototype.superResolve=function(e,t){var r=d(e);return r?this.resolve(e,r,t).subschema:e},f.prototype.resolve=function(e,t,r){if(t=r.resolve(t),r.schemas[t])return{subschema:r.schemas[t],switchSchema:t};var n=o.parse(t),i=n&&n.hash,s=i&&i.length&&t.substr(0,t.length-i.length);if(!s||!r.schemas[s])throw new p("no such schema <"+t+">",e);var c=a.objectGetPath(r.schemas[s],i.substr(1));if(void 0===c)throw new p("no such schema "+i+" located in <"+s+">",e);return{subschema:c,switchSchema:t}},f.prototype.testType=function(e,t,r,o,i){if(void 0!==i){if(null===i)throw new p('Unexpected null in "type" keyword');if("function"==typeof this.types[i])return this.types[i].call(this,e);if(i&&"object"==n(i)){var a=this.validateSchema(e,i,r,o);return void 0===a||!(a&&a.errors.length)}return!0}};var m=f.prototype.types={};m.string=function(e){return"string"==typeof e},m.number=function(e){return"number"==typeof e&&isFinite(e)},m.integer=function(e){return"number"==typeof e&&e%1==0},m.boolean=function(e){return"boolean"==typeof e},m.array=function(e){return Array.isArray(e)},m.null=function(e){return null===e},m.date=function(e){return e instanceof Date},m.any=function(e){return!0},m.object=function(e){return e&&"object"===n(e)&&!Array.isArray(e)&&!(e instanceof Date)},e.exports=f},830:(e,t,r)=>{r.d(t,{D6:()=>Be,qg:()=>i,xp:()=>Le,cN:()=>Ie,Sc:()=>Ne.S});var n=r(3186),o=["expires","from","host","if-modified-since","if-unmodified-since","age","authorization","content-length","content-type","etag","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],i=function(e){var t,r,i,a={};return e?(e.split("\n").forEach((function(e){i=e.indexOf(":"),t=(0,n.Bq)(e.substr(0,i)).toLowerCase(),r=(0,n.Bq)(e.substr(i+1)),t&&(a[t]&&o.indexOf(t)>=0||(a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r))})),a):a},a=function(e,t,r,n){void 0===n&&(n=!1);var o=s(t);return e||(e={}),void 0===(e=JSON.parse(JSON.stringify(e)))[t]&&void 0===e[o]?e[o]=r:n&&(delete e[t],e[o]=r),e},s=function(e){return{"content-md5":"Content-MD5",dnt:"DNT",etag:"ETag","last-event-id":"Last-Event-ID",tcn:"TCN",te:"TE","www-authenticate":"WWW-Authenticate","x-dnsprefetch-control":"X-DNSPrefetch-Control"}[e.toLowerCase()]||e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})).join("-")},c=r(1635),u=r(9414),p=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",l=new RegExp("^["+p+"]["+p+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function f(e,t){for(var r=[],n=t.exec(e);n;){var o=[];o.startIndex=t.lastIndex-n[0].length;for(var i=n.length,a=0;a<i;a++)o.push(n[a]);r.push(o),n=t.exec(e)}return r}var d=function(e){return!(null==l.exec(e))},m={allowBooleanAttributes:!1,unpairedTags:[]};function h(e,t){t=Object.assign({},m,t);var r=[],n=!1,o=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(var i=0;i<e.length;i++)if("<"===e[i]&&"?"===e[i+1]){if((i=g(e,i+=2)).err)return i}else{if("<"!==e[i]){if(y(e[i]))continue;return S("InvalidChar","char '"+e[i]+"' is not expected.",O(e,i))}var a=i;if("!"===e[++i]){i=v(e,i);continue}var s=!1;"/"===e[i]&&(s=!0,i++);for(var c="";i<e.length&&">"!==e[i]&&" "!==e[i]&&"\t"!==e[i]&&"\n"!==e[i]&&"\r"!==e[i];i++)c+=e[i];if("/"===(c=c.trim())[c.length-1]&&(c=c.substring(0,c.length-1),i--),!d(c))return S("InvalidTag",0===c.trim().length?"Invalid space after '<'.":"Tag '"+c+"' is an invalid name.",O(e,i));var u=x(e,i);if(!1===u)return S("InvalidAttr","Attributes for '"+c+"' have open quote.",O(e,i));var p=u.value;if(i=u.index,"/"===p[p.length-1]){var l=i-p.length,f=k(p=p.substring(0,p.length-1),t);if(!0!==f)return S(f.err.code,f.err.msg,O(e,l+f.err.line));n=!0}else if(s){if(!u.tagClosed)return S("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",O(e,i));if(p.trim().length>0)return S("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",O(e,a));if(0===r.length)return S("InvalidTag","Closing tag '"+c+"' has not been opened.",O(e,a));var h=r.pop();if(c!==h.tagName){var b=O(e,h.tagStartPos);return S("InvalidTag","Expected closing tag '"+h.tagName+"' (opened in line "+b.line+", col "+b.col+") instead of closing tag '"+c+"'.",O(e,a))}0==r.length&&(o=!0)}else{var _=k(p,t);if(!0!==_)return S(_.err.code,_.err.msg,O(e,i-p.length+_.err.line));if(!0===o)return S("InvalidXml","Multiple possible root nodes found.",O(e,i));-1!==t.unpairedTags.indexOf(c)||r.push({tagName:c,tagStartPos:a}),n=!0}for(i++;i<e.length;i++)if("<"===e[i]){if("!"===e[i+1]){i=v(e,++i);continue}if("?"!==e[i+1])break;if((i=g(e,++i)).err)return i}else if("&"===e[i]){var w=E(e,i);if(-1==w)return S("InvalidChar","char '&' is not expected.",O(e,i));i=w}else if(!0===o&&!y(e[i]))return S("InvalidXml","Extra text at the end",O(e,i));"<"===e[i]&&i--}return n?1==r.length?S("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",O(e,r[0].tagStartPos)):!(r.length>0)||S("InvalidXml","Invalid '"+JSON.stringify(r.map((function(e){return e.tagName})),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):S("InvalidXml","Start tag expected.",1)}function y(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function g(e,t){for(var r=t;t<e.length;t++)if("?"!=e[t]&&" "!=e[t]);else{var n=e.substr(r,t-r);if(t>5&&"xml"===n)return S("InvalidXml","XML declaration allowed only at the start of the document.",O(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function v(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){var r=1;for(t+=8;t<e.length;t++)if("<"===e[t])r++;else if(">"===e[t]&&0==--r)break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}var b='"',_="'";function x(e,t){for(var r="",n="",o=!1;t<e.length;t++){if(e[t]===b||e[t]===_)""===n?n=e[t]:n!==e[t]||(n="");else if(">"===e[t]&&""===n){o=!0;break}r+=e[t]}return""===n&&{value:r,index:t,tagClosed:o}}var w=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function k(e,t){for(var r=f(e,w),n={},o=0;o<r.length;o++){if(0===r[o][1].length)return S("InvalidAttr","Attribute '"+r[o][2]+"' has no space in starting.",j(r[o]));if(void 0!==r[o][3]&&void 0===r[o][4])return S("InvalidAttr","Attribute '"+r[o][2]+"' is without value.",j(r[o]));if(void 0===r[o][3]&&!t.allowBooleanAttributes)return S("InvalidAttr","boolean attribute '"+r[o][2]+"' is not allowed.",j(r[o]));var i=r[o][2];if(!F(i))return S("InvalidAttr","Attribute '"+i+"' is an invalid name.",j(r[o]));if(n.hasOwnProperty(i))return S("InvalidAttr","Attribute '"+i+"' is repeated.",j(r[o]));n[i]=1}return!0}function E(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){var r=/\d/;for("x"===e[t]&&(t++,r=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(r))break}return-1}(e,++t);for(var r=0;t<e.length;t++,r++)if(!(e[t].match(/\w/)&&r<20)){if(";"===e[t])break;return-1}return t}function S(e,t,r){return{err:{code:e,msg:t,line:r.line||r,col:r.col}}}function F(e){return d(e)}function O(e,t){var r=e.substring(0,t).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function j(e){return e.startIndex+e[1].length}var P={validate:h};function A(e){return A="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},A(e)}var T={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:function(){return!1},commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,r){return e},captureMetaData:!1};function C(e){return"boolean"==typeof e?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,allowedTags:null,tagFilter:null}:"object"===A(e)&&null!==e?{enabled:!1!==e.enabled,maxEntitySize:null!==(t=e.maxEntitySize)&&void 0!==t?t:1e4,maxExpansionDepth:null!==(r=e.maxExpansionDepth)&&void 0!==r?r:10,maxTotalExpansions:null!==(n=e.maxTotalExpansions)&&void 0!==n?n:1e3,maxExpandedLength:null!==(o=e.maxExpandedLength)&&void 0!==o?o:1e5,allowedTags:null!==(i=e.allowedTags)&&void 0!==i?i:null,tagFilter:null!==(a=e.tagFilter)&&void 0!==a?a:null}:C(!0);var t,r,n,o,i,a}var I,D=function(e){var t=Object.assign({},T,e);return t.processEntities=C(t.processEntities),t};function L(e){return L="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},L(e)}function B(e,t,r){return(t=N(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R(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(n.key),n)}}function N(e){var t=function(e){if("object"!=L(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=L(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==L(t)?t:String(t)}I="function"!=typeof Symbol?"@@xmlMetadata":Symbol("XML Node Metadata");var M=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.tagname=t,this.child=[],this[":@"]={}}var t,r,n;return t=e,n=[{key:"getMetaDataSymbol",value:function(){return I}}],(r=[{key:"add",value:function(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push(B({},e,t))}},{key:"addChild",value:function(e,t){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push(B(B({},e.tagname,e.child),":@",e[":@"])):this.child.push(B({},e.tagname,e.child)),void 0!==t&&(this.child[this.child.length-1][I]={startIndex:t})}}])&&R(t.prototype,r),n&&R(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function z(e){return z="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},z(e)}function U(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return q(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?q(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $(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,V(n.key),n)}}function V(e){var t=function(e){if("object"!=z(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=z(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==z(t)?t:String(t)}var G=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.suppressValidationErr=!t,this.options=t}var t,r;return t=e,(r=[{key:"readDocType",value:function(e,t){var r={};if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");t+=9;for(var n=1,o=!1,i=!1;t<e.length;t++)if("<"!==e[t]||i)if(">"===e[t]){if(i?"-"===e[t-1]&&"-"===e[t-2]&&(i=!1,n--):n--,0===n)break}else"["===e[t]?o=!0:e[t];else{if(o&&Z(e,"!ENTITY",t)){t+=7;var a=void 0,s=void 0,c=U(this.readEntityExp(e,t+1,this.suppressValidationErr),3);if(a=c[0],s=c[1],t=c[2],-1===s.indexOf("&")){var u=a.replace(/[.\-+*:]/g,"\\.");r[a]={regx:RegExp("&".concat(u,";"),"g"),val:s}}}else if(o&&Z(e,"!ELEMENT",t))t+=8,t=this.readElementExp(e,t+1).index;else if(o&&Z(e,"!ATTLIST",t))t+=8;else if(o&&Z(e,"!NOTATION",t))t+=9,t=this.readNotationExp(e,t+1,this.suppressValidationErr).index;else{if(!Z(e,"!--",t))throw new Error("Invalid DOCTYPE");i=!0}n++}if(0!==n)throw new Error("Unclosed DOCTYPE");return{entities:r,i:t}}},{key:"readEntityExp",value:function(e,t){t=H(e,t);for(var r="";t<e.length&&!/\s/.test(e[t])&&'"'!==e[t]&&"'"!==e[t];)r+=e[t],t++;if(K(r),t=H(e,t),!this.suppressValidationErr){if("SYSTEM"===e.substring(t,t+6).toUpperCase())throw new Error("External entities are not supported");if("%"===e[t])throw new Error("Parameter entities are not supported")}var n,o=U(this.readIdentifierVal(e,t,"entity"),2);if(t=o[0],n=o[1],!1!==this.options.enabled&&this.options.maxEntitySize&&n.length>this.options.maxEntitySize)throw new Error('Entity "'.concat(r,'" size (').concat(n.length,") exceeds maximum allowed size (").concat(this.options.maxEntitySize,")"));return[r,n,--t]}},{key:"readNotationExp",value:function(e,t){t=H(e,t);for(var r="";t<e.length&&!/\s/.test(e[t]);)r+=e[t],t++;!this.suppressValidationErr&&K(r),t=H(e,t);var n=e.substring(t,t+6).toUpperCase();if(!this.suppressValidationErr&&"SYSTEM"!==n&&"PUBLIC"!==n)throw new Error('Expected SYSTEM or PUBLIC, found "'.concat(n,'"'));t+=n.length,t=H(e,t);var o=null,i=null;if("PUBLIC"===n){var a=U(this.readIdentifierVal(e,t,"publicIdentifier"),2);if(t=a[0],o=a[1],'"'===e[t=H(e,t)]||"'"===e[t]){var s=U(this.readIdentifierVal(e,t,"systemIdentifier"),2);t=s[0],i=s[1]}}else if("SYSTEM"===n){var c=U(this.readIdentifierVal(e,t,"systemIdentifier"),2);if(t=c[0],i=c[1],!this.suppressValidationErr&&!i)throw new Error("Missing mandatory system identifier for SYSTEM notation")}return{notationName:r,publicIdentifier:o,systemIdentifier:i,index:--t}}},{key:"readIdentifierVal",value:function(e,t,r){var n="",o=e[t];if('"'!==o&&"'"!==o)throw new Error('Expected quoted string, found "'.concat(o,'"'));for(t++;t<e.length&&e[t]!==o;)n+=e[t],t++;if(e[t]!==o)throw new Error("Unterminated ".concat(r," value"));return[++t,n]}},{key:"readElementExp",value:function(e,t){t=H(e,t);for(var r="";t<e.length&&!/\s/.test(e[t]);)r+=e[t],t++;if(!this.suppressValidationErr&&!d(r))throw new Error('Invalid element name: "'.concat(r,'"'));var n="";if("E"===e[t=H(e,t)]&&Z(e,"MPTY",t))t+=4;else if("A"===e[t]&&Z(e,"NY",t))t+=2;else if("("===e[t]){for(t++;t<e.length&&")"!==e[t];)n+=e[t],t++;if(")"!==e[t])throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error('Invalid Element Expression, found "'.concat(e[t],'"'));return{elementName:r,contentModel:n.trim(),index:t}}},{key:"readAttlistExp",value:function(e,t){t=H(e,t);for(var r="";t<e.length&&!/\s/.test(e[t]);)r+=e[t],t++;K(r),t=H(e,t);for(var n="";t<e.length&&!/\s/.test(e[t]);)n+=e[t],t++;if(!K(n))throw new Error('Invalid attribute name: "'.concat(n,'"'));t=H(e,t);var o="";if("NOTATION"===e.substring(t,t+8).toUpperCase()){if(o="NOTATION","("!==e[t=H(e,t+=8)])throw new Error("Expected '(', found \"".concat(e[t],'"'));t++;for(var i=[];t<e.length&&")"!==e[t];){for(var a="";t<e.length&&"|"!==e[t]&&")"!==e[t];)a+=e[t],t++;if(!K(a=a.trim()))throw new Error('Invalid notation name: "'.concat(a,'"'));i.push(a),"|"===e[t]&&(t++,t=H(e,t))}if(")"!==e[t])throw new Error("Unterminated list of notations");t++,o+=" ("+i.join("|")+")"}else{for(;t<e.length&&!/\s/.test(e[t]);)o+=e[t],t++;if(!this.suppressValidationErr&&!["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"].includes(o.toUpperCase()))throw new Error('Invalid attribute type: "'.concat(o,'"'))}t=H(e,t);var s="";if("#REQUIRED"===e.substring(t,t+8).toUpperCase())s="#REQUIRED",t+=8;else if("#IMPLIED"===e.substring(t,t+7).toUpperCase())s="#IMPLIED",t+=7;else{var c=U(this.readIdentifierVal(e,t,"ATTLIST"),2);t=c[0],s=c[1]}return{elementName:r,attributeName:n,attributeType:o,defaultValue:s,index:t}}}])&&$(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),H=function(e,t){for(;t<e.length&&/\s/.test(e[t]);)t++;return t};function Z(e,t,r){for(var n=0;n<t.length;n++)if(t[n]!==e[r+n+1])return!1;return!0}function K(e){if(d(e))return e;throw new Error("Invalid entity name ".concat(e))}var W=/^[-+]?0x[a-fA-F0-9]+$/,Y=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,Q={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};var J=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ee(e,t,r){return(t=oe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function te(e){return te="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},te(e)}function re(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,oe(n.key),n)}}function ne(e,t,r){return t&&re(e.prototype,t),r&&re(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function oe(e){var t=function(e){if("object"!=te(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=te(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==te(t)?t:String(t)}var ie=ne((function e(t){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:function(e,t){return _e(t,10,"&#")}},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:function(e,t){return _e(t,16,"&#x")}}},this.addExternalEntities=ae,this.parseXml=le,this.parseTextData=se,this.resolveNameSpace=ce,this.buildAttributesMap=pe,this.isItStopNode=he,this.replaceEntitiesValue=de,this.readStopNodeData=ve,this.saveTextToParentTag=me,this.addChild=fe,this.ignoreAttributesFn="function"==typeof(r=this.options.ignoreAttributes)?r:Array.isArray(r)?function(e){var t,n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return X(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?X(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(r);try{for(n.s();!(t=n.n()).done;){var o=t.value;if("string"==typeof o&&e===o)return!0;if(o instanceof RegExp&&o.test(e))return!0}}catch(e){n.e(e)}finally{n.f()}}:function(){return!1},this.entityExpansionCount=0,this.currentExpandedLength=0,this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodesExact=new Set,this.stopNodesWildcard=new Set;for(var n=0;n<this.options.stopNodes.length;n++){var o=this.options.stopNodes[n];"string"==typeof o&&(o.startsWith("*.")?this.stopNodesWildcard.add(o.substring(2)):this.stopNodesExact.add(o))}}}));function ae(e){for(var t=Object.keys(e),r=0;r<t.length;r++){var n=t[r],o=n.replace(/[.\-+*:]/g,"\\.");this.lastEntities[n]={regex:new RegExp("&"+o+";","g"),val:e[n]}}}function se(e,t,r,n,o,i,a){if(void 0!==e&&(this.options.trimValues&&!n&&(e=e.trim()),e.length>0)){a||(e=this.replaceEntitiesValue(e,t,r));var s=this.options.tagValueProcessor(t,e,r,o,i);return null==s?e:te(s)!==te(e)||s!==e?s:this.options.trimValues||e.trim()===e?be(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function ce(e){if(this.options.removeNSPrefix){var t=e.split(":"),r="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=r+t[1])}return e}var ue=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function pe(e,t,r){if(!0!==this.options.ignoreAttributes&&"string"==typeof e){for(var n=f(e,ue),o=n.length,i={},a=0;a<o;a++){var s=this.resolveNameSpace(n[a][1]);if(!this.ignoreAttributesFn(s,t)){var c=n[a][4],u=this.options.attributeNamePrefix+s;if(s.length)if(this.options.transformAttributeName&&(u=this.options.transformAttributeName(u)),"__proto__"===u&&(u="#__proto__"),void 0!==c){this.options.trimValues&&(c=c.trim()),c=this.replaceEntitiesValue(c,r,t);var p=this.options.attributeValueProcessor(s,c,t);null==p?i[u]=c:te(p)!==te(c)||p!==c?i[u]=p:i[u]=be(c,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(i[u]=!0)}}if(!Object.keys(i).length)return;if(this.options.attributesGroupName){var l={};return l[this.options.attributesGroupName]=i,l}return i}}var le=function(e){e=e.replace(/\r\n?/g,"\n");var t=new M("!xml"),r=t,n="",o="";this.entityExpansionCount=0,this.currentExpandedLength=0;for(var i=new G(this.options.processEntities),a=0;a<e.length;a++)if("<"===e[a])if("/"===e[a+1]){var s=ye(e,">",a,"Closing Tag is not closed."),c=e.substring(a+2,s).trim();if(this.options.removeNSPrefix){var u=c.indexOf(":");-1!==u&&(c=c.substr(u+1))}this.options.transformTagName&&(c=this.options.transformTagName(c)),r&&(n=this.saveTextToParentTag(n,r,o));var p=o.substring(o.lastIndexOf(".")+1);if(c&&-1!==this.options.unpairedTags.indexOf(c))throw new Error("Unpaired tag can not be used as closing tag: </".concat(c,">"));var l=0;p&&-1!==this.options.unpairedTags.indexOf(p)?(l=o.lastIndexOf(".",o.lastIndexOf(".")-1),this.tagsNodeStack.pop()):l=o.lastIndexOf("."),o=o.substring(0,l),r=this.tagsNodeStack.pop(),n="",a=s}else if("?"===e[a+1]){var f=ge(e,a,!1,"?>");if(!f)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,o),this.options.ignoreDeclaration&&"?xml"===f.tagName||this.options.ignorePiTags);else{var d=new M(f.tagName);d.add(this.options.textNodeName,""),f.tagName!==f.tagExp&&f.attrExpPresent&&(d[":@"]=this.buildAttributesMap(f.tagExp,o,f.tagName)),this.addChild(r,d,o,a)}a=f.closeIndex+1}else if("!--"===e.substr(a+1,3)){var m=ye(e,"--\x3e",a+4,"Comment is not closed.");if(this.options.commentPropName){var h=e.substring(a+4,m-2);n=this.saveTextToParentTag(n,r,o),r.add(this.options.commentPropName,[ee({},this.options.textNodeName,h)])}a=m}else if("!D"===e.substr(a+1,2)){var y=i.readDocType(e,a);this.docTypeEntities=y.entities,a=y.i}else if("!["===e.substr(a+1,2)){var g=ye(e,"]]>",a,"CDATA is not closed.")-2,v=e.substring(a+9,g);n=this.saveTextToParentTag(n,r,o);var b=this.parseTextData(v,r.tagname,o,!0,!1,!0,!0);null==b&&(b=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[ee({},this.options.textNodeName,v)]):r.add(this.options.textNodeName,b),a=g+2}else{var _=ge(e,a,this.options.removeNSPrefix),x=_.tagName,w=_.rawTagName,k=_.tagExp,E=_.attrExpPresent,S=_.closeIndex;if(this.options.transformTagName){var F=this.options.transformTagName(x);k===x&&(k=F),x=F}r&&n&&"!xml"!==r.tagname&&(n=this.saveTextToParentTag(n,r,o,!1));var O=r;O&&-1!==this.options.unpairedTags.indexOf(O.tagname)&&(r=this.tagsNodeStack.pop(),o=o.substring(0,o.lastIndexOf("."))),x!==t.tagname&&(o+=o?"."+x:x);var j=a;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,o,x)){var P="";if(k.length>0&&k.lastIndexOf("/")===k.length-1)"/"===x[x.length-1]?(x=x.substr(0,x.length-1),o=o.substr(0,o.length-1),k=x):k=k.substr(0,k.length-1),a=_.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(x))a=_.closeIndex;else{var A=this.readStopNodeData(e,w,S+1);if(!A)throw new Error("Unexpected end of ".concat(w));a=A.i,P=A.tagContent}var T=new M(x);x!==k&&E&&(T[":@"]=this.buildAttributesMap(k,o,x)),P&&(P=this.parseTextData(P,x,o,!0,E,!0,!0)),o=o.substr(0,o.lastIndexOf(".")),T.add(this.options.textNodeName,P),this.addChild(r,T,o,j)}else{if(k.length>0&&k.lastIndexOf("/")===k.length-1){if("/"===x[x.length-1]?(x=x.substr(0,x.length-1),o=o.substr(0,o.length-1),k=x):k=k.substr(0,k.length-1),this.options.transformTagName){var C=this.options.transformTagName(x);k===x&&(k=C),x=C}var I=new M(x);x!==k&&E&&(I[":@"]=this.buildAttributesMap(k,o,x)),this.addChild(r,I,o,j),o=o.substr(0,o.lastIndexOf("."))}else{var D=new M(x);this.tagsNodeStack.push(r),x!==k&&E&&(D[":@"]=this.buildAttributesMap(k,o,x)),this.addChild(r,D,o,j),r=D}n="",a=S}}else n+=e[a];return t.child};function fe(e,t,r,n){this.options.captureMetaData||(n=void 0);var o=this.options.updateTag(t.tagname,r,t[":@"]);!1===o||("string"==typeof o?(t.tagname=o,e.addChild(t,n)):e.addChild(t,n))}var de=function(e,t,r){if(-1===e.indexOf("&"))return e;var n=this.options.processEntities;if(!n.enabled)return e;if(n.allowedTags&&!n.allowedTags.includes(t))return e;if(n.tagFilter&&!n.tagFilter(t,r))return e;for(var o in this.docTypeEntities){var i=this.docTypeEntities[o],a=e.match(i.regx);if(a){if(this.entityExpansionCount+=a.length,n.maxTotalExpansions&&this.entityExpansionCount>n.maxTotalExpansions)throw new Error("Entity expansion limit exceeded: ".concat(this.entityExpansionCount," > ").concat(n.maxTotalExpansions));var s=e.length;if(e=e.replace(i.regx,i.val),n.maxExpandedLength&&(this.currentExpandedLength+=e.length-s,this.currentExpandedLength>n.maxExpandedLength))throw new Error("Total expanded content size exceeded: ".concat(this.currentExpandedLength," > ").concat(n.maxExpandedLength))}}if(-1===e.indexOf("&"))return e;for(var c in this.lastEntities){var u=this.lastEntities[c];e=e.replace(u.regex,u.val)}if(-1===e.indexOf("&"))return e;if(this.options.htmlEntities)for(var p in this.htmlEntities){var l=this.htmlEntities[p];e=e.replace(l.regex,l.val)}return e.replace(this.ampEntity.regex,this.ampEntity.val)};function me(e,t,r,n){return e&&(void 0===n&&(n=0===t.child.length),void 0!==(e=this.parseTextData(e,t.tagname,r,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,n))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function he(e,t,r,n){return!(!t||!t.has(n))||!(!e||!e.has(r))}function ye(e,t,r,n){var o=e.indexOf(t,r);if(-1===o)throw new Error(n);return o+t.length-1}function ge(e,t,r){var n=function(e,t){for(var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:">",o="",i=t;i<e.length;i++){var a=e[i];if(r)a===r&&(r="");else if('"'===a||"'"===a)r=a;else if(a===n[0]){if(!n[1])return{data:o,index:i};if(e[i+1]===n[1])return{data:o,index:i}}else"\t"===a&&(a=" ");o+=a}}(e,t+1,arguments.length>3&&void 0!==arguments[3]?arguments[3]:">");if(n){var o=n.data,i=n.index,a=o.search(/\s/),s=o,c=!0;-1!==a&&(s=o.substring(0,a),o=o.substring(a+1).trimStart());var u=s;if(r){var p=s.indexOf(":");-1!==p&&(c=(s=s.substr(p+1))!==n.data.substr(p+1))}return{tagName:s,tagExp:o,closeIndex:i,attrExpPresent:c,rawTagName:u}}}function ve(e,t,r){for(var n=r,o=1;r<e.length;r++)if("<"===e[r])if("/"===e[r+1]){var i=ye(e,">",r,"".concat(t," is not closed"));if(e.substring(r+2,i).trim()===t&&0==--o)return{tagContent:e.substring(n,r),i};r=i}else if("?"===e[r+1])r=ye(e,"?>",r+1,"StopNode is not closed.");else if("!--"===e.substr(r+1,3))r=ye(e,"--\x3e",r+3,"StopNode is not closed.");else if("!["===e.substr(r+1,2))r=ye(e,"]]>",r,"StopNode is not closed.")-2;else{var a=ge(e,r,">");a&&((a&&a.tagName)===t&&"/"!==a.tagExp[a.tagExp.length-1]&&o++,r=a.closeIndex)}}function be(e,t,r){if(t&&"string"==typeof e){var n=e.trim();return"true"===n||"false"!==n&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t=Object.assign({},Q,t),!e||"string"!=typeof e)return e;var r=e.trim();if(void 0!==t.skipLike&&t.skipLike.test(r))return e;if("0"===e)return 0;if(t.hex&&W.test(r))return function(e){if(parseInt)return parseInt(e,16);if(Number.parseInt)return Number.parseInt(e,16);if(window&&window.parseInt)return window.parseInt(e,16);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}(r);if(r.includes("e")||r.includes("E"))return function(e,t,r){if(!r.eNotation)return e;var n=t.match(J);if(n){var o=n[1]||"",i=-1===n[3].indexOf("e")?"E":"e",a=n[2],s=o?e[a.length+1]===i:e[a.length]===i;return a.length>1&&s?e:1!==a.length||!n[3].startsWith(".".concat(i))&&n[3][0]!==i?r.leadingZeros&&!s?(t=(n[1]||"")+n[3],Number(t)):e:Number(t)}return e}(e,r,t);var n,o=Y.exec(r);if(o){var i=o[1]||"",a=o[2],s=(n=o[3])&&-1!==n.indexOf(".")?("."===(n=n.replace(/0+$/,""))?n="0":"."===n[0]?n="0"+n:"."===n[n.length-1]&&(n=n.substring(0,n.length-1)),n):n,c=i?"."===e[a.length+1]:"."===e[a.length];if(!t.leadingZeros&&(a.length>1||1===a.length&&!c))return e;var u=Number(r),p=String(u);if(0===u)return u;if(-1!==p.search(/[eE]/))return t.eNotation?u:e;if(-1!==r.indexOf("."))return"0"===p||p===s||p==="".concat(i).concat(s)?u:e;var l=a?s:r;return a?l===p||i+l===p?u:e:l===p||l===i+p?u:e}return e}(e,r)}return function(e){return void 0!==e}(e)?e:""}function _e(e,t,r){var n=Number.parseInt(e,t);return n>=0&&n<=1114111?String.fromCodePoint(n):r+e+";"}var xe=M.getMetaDataSymbol();function we(e,t){return ke(e,t)}function ke(e,t,r){for(var n,o={},i=0;i<e.length;i++){var a,s=e[i],c=Ee(s);if(a=void 0===r?c:r+"."+c,c===t.textNodeName)void 0===n?n=s[c]:n+=""+s[c];else{if(void 0===c)continue;if(s[c]){var u=ke(s[c],t,a),p=Fe(u,t);void 0!==s[xe]&&(u[xe]=s[xe]),s[":@"]?Se(u,s[":@"],a,t):1!==Object.keys(u).length||void 0===u[t.textNodeName]||t.alwaysCreateTextNode?0===Object.keys(u).length&&(t.alwaysCreateTextNode?u[t.textNodeName]="":u=""):u=u[t.textNodeName],void 0!==o[c]&&o.hasOwnProperty(c)?(Array.isArray(o[c])||(o[c]=[o[c]]),o[c].push(u)):t.isArray(c,a,p)?o[c]=[u]:o[c]=u}}}return"string"==typeof n?n.length>0&&(o[t.textNodeName]=n):void 0!==n&&(o[t.textNodeName]=n),o}function Ee(e){for(var t=Object.keys(e),r=0;r<t.length;r++){var n=t[r];if(":@"!==n)return n}}function Se(e,t,r,n){if(t)for(var o=Object.keys(t),i=o.length,a=0;a<i;a++){var s=o[a];n.isArray(s,r+"."+s,!0,!0)?e[s]=[t[s]]:e[s]=t[s]}}function Fe(e,t){var r=t.textNodeName,n=Object.keys(e).length;return 0===n||!(1!==n||!e[r]&&"boolean"!=typeof e[r]&&0!==e[r])}function Oe(e){return Oe="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},Oe(e)}function je(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,Pe(n.key),n)}}function Pe(e){var t=function(e){if("object"!=Oe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Oe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Oe(t)?t:String(t)}var Ae=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.externalEntities={},this.options=D(t)}var t,r,n;return t=e,n=[{key:"getMetaDataSymbol",value:function(){return M.getMetaDataSymbol()}}],(r=[{key:"parse",value:function(e,t){if("string"!=typeof e&&e.toString)e=e.toString();else if("string"!=typeof e)throw new Error("XML data is accepted in String or Bytes[] form.");if(t){!0===t&&(t={});var r=h(e,t);if(!0!==r)throw Error("".concat(r.err.msg,":").concat(r.err.line,":").concat(r.err.col))}var n=new ie(this.options);n.addExternalEntities(this.externalEntities);var o=n.parseXml(e);return this.options.preserveOrder||void 0===o?o:we(o,this.options)}},{key:"addEntity",value:function(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}}])&&je(t.prototype,r),n&&je(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Te=r(1227),Ce=r.n(Te)()("fs:request:data"),Ie=function(e){return e=De(e),(0,n.V1)(e.data)||(e.data,0)||(e.data,0)||(0,n.fo)(e.data)||(0,n.qf)(e.data)||(0,n.mw)(e.data)||((0,n.OU)(e.data)?(e.headers=a(e.headers,"content-type","application/x-www-form-urlencoded;charset=utf-8"),e.data=e.data.toString()):(0,n.Gv)(e.data)&&(e.headers=a(e.headers,"content-type","application/json",!0),e.data=JSON.stringify(e.data))),e},De=function(e){return e.filestackHeaders?(e.headers=a(e.headers,"filestack-source",(0,u.getVersion)()),e.headers=a(e.headers,"filestack-trace-id","".concat(Math.floor(Date.now()/1e3),"-").concat((0,u.uniqueId)())),e.headers=a(e.headers,"filestack-trace-span","jssdk-".concat((0,u.uniqueId)())),e):e},Le=function(e){return(0,c.sH)(void 0,void 0,void 0,(function(){var t,r;return(0,c.YH)(this,(function(n){if(!e.headers||!e.headers["content-type"])return[2,Promise.resolve(e)];if(t=e.headers["content-type"],/application\/json/.test(t))try{e.data=JSON.parse(e.data)}catch(t){Ce("Cannot parse response %O - %O",e.data,e.headers)}else/text\/(plain|html)/.test(t)?e.data:/application\/xml/.test(t)&&(r=e.data,e.data,!0===P.validate(r)&&(e.data=new Ae({ignoreDeclaration:!0,ignoreAttributes:!0,trimValues:!0}).parse(r)));return[2,Promise.resolve(e)]}))}))},Be=function(e,t){if(!t)return e;var r=Re(t),n=e.indexOf("#");return-1!==n&&(e=e.slice(0,n)),e+(-1===e.indexOf("?")?"?":"&")+r},Re=function(e){return Object.keys(e).filter((function(t){return t&&void 0!==e[t]})).map((function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))})).join("&")},Ne=r(6854)},863:(e,t,r)=>{var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(5465);e.exports=i.call(n,o)},1090:(e,t,r)=>{var n=r(1545).hp;function o(e){return o="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},o(e)}function i(){i=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",p=s.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:j(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var m="suspendedStart",h="suspendedYield",y="executing",g="completed",v={};function b(){}function _(){}function x(){}var w={};l(w,c,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(I([])));E&&E!==r&&n.call(E,c)&&(w=E);var S=x.prototype=b.prototype=Object.create(w);function F(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(i,a,s,c){var u=d(e[i],e,a);if("throw"!==u.type){var p=u.arg,l=p.value;return l&&"object"==o(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(l).then((function(e){p.value=e,s(p)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=m;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=P(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var u=d(t,r,n);if("normal"===u.type){if(o=n.done?g:h,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=g,n.method="throw",n.arg=u.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function A(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function I(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(o(t)+" is not iterable")}return _.prototype=x,a(S,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:_,configurable:!0}),_.displayName=l(x,p,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,l(e,p,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},F(O.prototype),l(O.prototype,u,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},F(S),l(S,p,"Generator"),l(S,c,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=I,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},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),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function a(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 s(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function s(e){a(i,n,o,s,c,"next",e)}function c(e){a(i,n,o,s,c,"throw",e)}s(void 0)}))}}function c(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,u(n.key),n)}}function u(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:String(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractTokenizer=void 0;var p=r(1787),l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.position=0,this.numBuffer=new Uint8Array(8),this.fileInfo=t||{}}var t,r,o,a,u,l,f,d;return t=e,r=[{key:"readToken",value:(d=s(i().mark((function e(t){var r,o,a=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:this.position,o=n.alloc(t.len),e.next=4,this.readBuffer(o,{position:r});case 4:if(!(e.sent<t.len)){e.next=7;break}throw new p.EndOfStreamError;case 7:return e.abrupt("return",t.get(o,0));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"peekToken",value:(f=s(i().mark((function e(t){var r,o,a=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:this.position,o=n.alloc(t.len),e.next=4,this.peekBuffer(o,{position:r});case 4:if(!(e.sent<t.len)){e.next=7;break}throw new p.EndOfStreamError;case 7:return e.abrupt("return",t.get(o,0));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},{key:"readNumber",value:(l=s(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.readBuffer(this.numBuffer,{length:t.len});case 2:if(!(e.sent<t.len)){e.next=5;break}throw new p.EndOfStreamError;case 5:return e.abrupt("return",t.get(this.numBuffer,0));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"peekNumber",value:(u=s(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.peekBuffer(this.numBuffer,{length:t.len});case 2:if(!(e.sent<t.len)){e.next=5;break}throw new p.EndOfStreamError;case 5:return e.abrupt("return",t.get(this.numBuffer,0));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"ignore",value:(a=s(i().mark((function e(t){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===this.fileInfo.size){e.next=5;break}if(r=this.fileInfo.size-this.position,!(t>r)){e.next=5;break}return this.position+=r,e.abrupt("return",r);case 5:return this.position+=t,e.abrupt("return",t);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"close",value:(o=s(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})},{key:"normalizeOptions",value:function(e,t){if(t&&void 0!==t.position&&t.position<this.position)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");return t?{mayBeLess:!0===t.mayBeLess,offset:t.offset?t.offset:0,length:t.length?t.length:e.length-(t.offset?t.offset:0),position:t.position?t.position:this.position}:{mayBeLess:!1,offset:0,length:e.length,position:this.position}}}],r&&c(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.AbstractTokenizer=l},1226:e=>{e.exports=SyntaxError},1227:(e,t,r)=>{var n;t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),this.useColors){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var n=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(n++,"%c"===e&&(o=n))})),t.splice(o,0,r)}},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(n=!1,function(){n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=r(8630)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},1310:e=>{var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new o(n,i||e,a),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,o,i,a){var s=r?r+e:e;if(!this._events[s])return!1;var c,u,p=this._events[s],l=arguments.length;if(p.fn){switch(p.once&&this.removeListener(e,p.fn,void 0,!0),l){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,t),!0;case 3:return p.fn.call(p.context,t,n),!0;case 4:return p.fn.call(p.context,t,n,o),!0;case 5:return p.fn.call(p.context,t,n,o,i),!0;case 6:return p.fn.call(p.context,t,n,o,i,a),!0}for(u=1,c=new Array(l-1);u<l;u++)c[u-1]=arguments[u];p.fn.apply(p.context,c)}else{var f,d=p.length;for(u=0;u<d;u++)switch(p[u].once&&this.removeListener(e,p[u].fn,void 0,!0),l){case 1:p[u].fn.call(p[u].context);break;case 2:p[u].fn.call(p[u].context,t);break;case 3:p[u].fn.call(p[u].context,t,n);break;case 4:p[u].fn.call(p[u].context,t,n,o);break;default:if(!c)for(f=1,c=new Array(l-1);f<l;f++)c[f-1]=arguments[f];p[u].fn.apply(p[u].context,c)}}return!0},s.prototype.on=function(e,t,r){return i(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,o){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||n&&s.context!==n||a(this,i);else{for(var c=0,u=[],p=s.length;c<p;c++)(s[c].fn!==t||o&&!s[c].once||n&&s[c].context!==n)&&u.push(s[c]);u.length?this._events[i]=1===u.length?u[0]:u:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s},1371:(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)}var o=r(1837),i=t.ValidationError=function(e,t,r,n,o,i){if(Array.isArray(n)?(this.path=n,this.property=n.reduce((function(e,t){return e+f(t)}),"instance")):void 0!==n&&(this.property=n),e&&(this.message=e),r){var a=r.$id||r.id;this.schema=a||r}void 0!==t&&(this.instance=t),this.name=o,this.argument=i,this.stack=this.toString()};i.prototype.toString=function(){return this.property+" "+this.message};var a=t.ValidatorResult=function(e,t,r,n){this.instance=e,this.schema=t,this.options=r,this.path=n.path,this.propertyPath=n.propertyPath,this.errors=[],this.throwError=r&&r.throwError,this.throwFirst=r&&r.throwFirst,this.throwAll=r&&r.throwAll,this.disableFormat=r&&!0===r.disableFormat};function s(e,t){return t+": "+e.toString()+"\n"}function c(e){Error.captureStackTrace&&Error.captureStackTrace(this,c),this.instance=e.instance,this.schema=e.schema,this.options=e.options,this.errors=e.errors}a.prototype.addError=function(e){var t;if("string"==typeof e)t=new i(e,this.instance,this.schema,this.path);else{if(!e)throw new Error("Missing error detail");if(!e.message)throw new Error("Missing error message");if(!e.name)throw new Error("Missing validator type");t=new i(e.message,this.instance,this.schema,this.path,e.name,e.argument)}if(this.errors.push(t),this.throwFirst)throw new c(this);if(this.throwError)throw t;return t},a.prototype.importErrors=function(e){"string"==typeof e||e&&e.validatorType?this.addError(e):e&&e.errors&&(this.errors=this.errors.concat(e.errors))},a.prototype.toString=function(e){return this.errors.map(s).join("")},Object.defineProperty(a.prototype,"valid",{get:function(){return!this.errors.length}}),e.exports.ValidatorResultError=c,c.prototype=new Error,c.prototype.constructor=c,c.prototype.name="Validation Error";var u=t.SchemaError=function e(t,r){this.message=t,this.schema=r,Error.call(this,t),Error.captureStackTrace(this,e)};u.prototype=Object.create(Error.prototype,{constructor:{value:u,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var p=t.SchemaContext=function(e,t,r,n,o){this.schema=e,this.options=t,Array.isArray(r)?(this.path=r,this.propertyPath=r.reduce((function(e,t){return e+f(t)}),"instance")):this.propertyPath=r,this.base=n,this.schemas=o};p.prototype.resolve=function(e){return o.resolve(this.base,e)},p.prototype.makeChild=function(e,t){var r=void 0===t?this.path:this.path.concat([t]),n=e.$id||e.id,i=o.resolve(this.base,n||""),a=new p(e,this.options,r,i,Object.create(this.schemas));return n&&!a.schemas[i]&&(a.schemas[i]=e),a};var l=t.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:(?:[!#-\[\]-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])|\\(?:[\t -\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*"|(?:[!#-'\*\+\x2D\/-9=\?A-Z\^-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])(?:\.?(?:[!#-'\*\+\x2D\/-9=\?A-Z\^-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*)@((?:[!#-'\*\+\x2D\/-9=\?A-Z\^-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])(?:\.?(?:[!#-'\*\+\x2D\/-9=\?A-Z\^-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*|\[(?:[!-Z\^-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*\])$/,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][\+\x2D\.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:(?:[!\$&-\.0-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])|[\/\?])|\?)(%[0-9A-Fa-f]{2}|(?:[!\$&-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*|([A-Za-z][\+\x2D\.0-9A-Za-z]*:?)?)|([A-Za-z][\+\x2D\.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|(?:[!\$&-\.0-9;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))+|(\[(([Vv][0-9A-Fa-f]+\.(?:[!\$&-\.0-;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)?|[\.0-:A-Fa-f]+)\])?)(:[0-9]*)?[\/\?]|(?:[!\$&-\.0-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))(%[0-9A-Fa-f]{2}|(?:[!\$&-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*|(\/((%[0-9A-Fa-f]{2}|(?:[!\$&-\.0-9;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))+|(\[(([Vv][0-9A-Fa-f]+\.(?:[!\$&-\.0-;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)?|[\.0-:A-Fa-f]+)\])?)(:[0-9]*)?)?))#(%[0-9A-Fa-f]{2}|(?:[!\$&-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*|(([A-Za-z][\+\x2D\.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|(?:[!\$&-\.0-9;=@_~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])|[A-Za-z][\+\x2D\.0-9A-Za-z]*(?:[!\$&-\*,;=@_~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))(%[0-9A-Fa-f]{2}|(?:[!\$&-\.0-9;=@-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*((([\/\?](%[0-9A-Fa-f]{2}|(?:[!\$&-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*)?#|[\/\?])(%[0-9A-Fa-f]{2}|(?:[!\$&-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*)?|([A-Za-z][\+\x2D\.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:(?:[!\$&-\.0-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])|[\/\?])|\?)(%[0-9A-Fa-f]{2}|(?:[!\$&-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*|([A-Za-z][\+\x2D\.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|(?:[!\$&-\.0-9;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))+|(\[(([Vv][0-9A-Fa-f]+\.(?:[!\$&-\.0-;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)?|[\.0-:A-Fa-f]+)\])?)(:[0-9]*)?[\/\?]|(?:[!\$&-\.0-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))(%[0-9A-Fa-f]{2}|(?:[!\$&-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*|\/((%[0-9A-Fa-f]{2}|(?:[!\$&-\.0-9;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))+(:[0-9]*)?|(\[(([Vv][0-9A-Fa-f]+\.(?:[!\$&-\.0-;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)?|[\.0-:A-Fa-f]+)\])?:[0-9]*|\[(([Vv][0-9A-Fa-f]+\.(?:[!\$&-\.0-;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)?|[\.0-:A-Fa-f]+)\])?)?|[A-Za-z][\+\x2D\.0-9A-Za-z]*:?)?$/,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#\$&\(-;=\?@\[\]_a-z~\u017F\u212A]|\{[!#&\+,\.\/;=\?@\|]?(%[0-9a-f]{2}|[0-9_a-z\u017F\u212A])(\.?(%[0-9a-f]{2}|[0-9_a-z\u017F\u212A]))*(:[1-9][0-9]{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z\u017F\u212A])(\.?(%[0-9a-f]{2}|[0-9_a-z\u017F\u212A]))*(:[1-9][0-9]{0,3}|\*)?)*\})*/i,"json-pointer":/^(\/([\0-\.0-@\[-\}\x7F\u017F\u212A]|~[01])*)*$/i,"relative-json-pointer":/^[0-9]+(#|(\/([\0-\.0-@\[-\}\x7F\u017F\u212A]|~[01])*)*)$/i,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(e){return"string"==typeof e&&parseFloat(e)===parseInt(e,10)&&!isNaN(e)},regex:function(e){var t=!0;try{new RegExp(e)}catch(e){t=!1}return t},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};l.regexp=l.regex,l.pattern=l.regex,l.ipv4=l["ip-address"],t.isFormat=function(e,t,r){if("string"==typeof e&&void 0!==l[t]){if(l[t]instanceof RegExp)return l[t].test(e);if("function"==typeof l[t])return l[t](e)}else if(r&&r.customFormats&&"function"==typeof r.customFormats[t])return r.customFormats[t](e);return!0};var f=t.makeSuffix=function(e){return(e=e.toString()).match(/[.\s\[\]]/)||e.match(/^[\d]/)?e.match(/^\d+$/)?"["+e+"]":"["+JSON.stringify(e)+"]":"."+e};function d(e,t,r,o){"object"===n(r)?t[o]=y(e[o],r):-1===e.indexOf(r)&&t.push(r)}function m(e,t,r){t[r]=e[r]}function h(e,t,r,o){"object"===n(t[o])&&t[o]&&e[o]?r[o]=y(e[o],t[o]):r[o]=t[o]}function y(e,t){var r=Array.isArray(t),o=r&&[]||{};return r?(e=e||[],o=o.concat(e),t.forEach(d.bind(null,e,o))):(e&&"object"===n(e)&&Object.keys(e).forEach(m.bind(null,e,o)),Object.keys(t).forEach(h.bind(null,e,t,o))),o}function g(e){return"/"+encodeURIComponent(e).replace(/~/g,"%7E")}t.deepCompareStrict=function e(t,r){if(n(t)!==n(r))return!1;if(Array.isArray(t))return!!Array.isArray(r)&&t.length===r.length&&t.every((function(n,o){return e(t[o],r[o])}));if("object"===n(t)){if(!t||!r)return t===r;var o=Object.keys(t),i=Object.keys(r);return o.length===i.length&&o.every((function(n){return e(t[n],r[n])}))}return t===r},e.exports.deepMerge=y,t.objectGetPath=function(e,t){for(var r,n=t.split("/").slice(1);"string"==typeof(r=n.shift());){var o=decodeURIComponent(r.replace(/~0/,"~").replace(/~1/g,"/"));if(!(o in e))return;e=e[o]}return e},t.encodePath=function(e){return e.map(g).join("")},t.getDecimalPlaces=function(e){var t=0;if(isNaN(e))return t;"number"!=typeof e&&(e=Number(e));var r=e.toString().split("e");if(2===r.length){if("-"!==r[1][0])return t;t=Number(r[1].slice(1))}var n=r[0].split(".");return 2===n.length&&(t+=n[1].length),t},t.isSchema=function(e){return"object"===n(e)&&e||"boolean"==typeof e}},1424:(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(){o=function(){return t};var e,t={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",p=s.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:j(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var m="suspendedStart",h="suspendedYield",y="executing",g="completed",v={};function b(){}function _(){}function x(){}var w={};l(w,c,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(I([])));E&&E!==r&&i.call(E,c)&&(w=E);var S=x.prototype=b.prototype=Object.create(w);function F(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,a,s,c){var u=d(e[o],e,a);if("throw"!==u.type){var p=u.arg,l=p.value;return l&&"object"==n(l)&&i.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(l).then((function(e){p.value=e,s(p)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function j(t,r,n){var o=m;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=P(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var u=d(t,r,n);if("normal"===u.type){if(o=n.done?g:h,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=g,n.method="throw",n.arg=u.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function A(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function I(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(i.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return _.prototype=x,a(S,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:_,configurable:!0}),_.displayName=l(x,p,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,l(e,p,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},F(O.prototype),l(O.prototype,u,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},F(S),l(S,p,"Generator"),l(S,c,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=I,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){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 r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},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),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}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)}var a=r(4397),s=r(249);function c(){var e;return e=o().mark((function e(t){var r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.fromFile(t);case 2:return r=e.sent,e.prev=3,e.next=6,s.fromTokenizer(r);case 6:return e.abrupt("return",e.sent);case 7:return e.prev=7,e.next=10,r.close();case 10:return e.finish(7);case 11:case"end":return e.stop()}}),e,null,[[3,,7,11]])})),c=function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function s(e){i(a,n,o,s,c,"next",e)}function c(e){i(a,n,o,s,c,"throw",e)}s(void 0)}))},c.apply(this,arguments)}var u={fromFile:function(e){return c.apply(this,arguments)}};Object.assign(u,s),Object.defineProperty(u,"extensions",{get:function(){return s.extensions}}),Object.defineProperty(u,"mimeTypes",{get:function(){return s.mimeTypes}}),e.exports=u},1545:(e,t,r)=>{function n(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,o(n.key),n)}}function o(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:String(t)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function c(e){return c="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},c(e)}var u=r(5768),p=r(6773),l="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=m,t.IS=50;var f=2147483647;function d(e){if(e>f)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,m.prototype),t}function m(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return g(e)}return h(e,t,r)}function h(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!m.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|x(e,t),n=d(r),o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(te(e,Uint8Array)){var t=new Uint8Array(e);return b(t.buffer,t.byteOffset,t.byteLength)}return v(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+c(e));if(te(e,ArrayBuffer)||e&&te(e.buffer,ArrayBuffer))return b(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(te(e,SharedArrayBuffer)||e&&te(e.buffer,SharedArrayBuffer)))return b(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return m.from(n,t,r);var o=function(e){if(m.isBuffer(e)){var t=0|_(e.length),r=d(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||re(e.length)?d(0):v(e):"Buffer"===e.type&&Array.isArray(e.data)?v(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return m.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+c(e))}function y(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function g(e){return y(e),d(e<0?0:0|_(e))}function v(e){for(var t=e.length<0?0:0|_(e.length),r=d(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function b(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,m.prototype),n}function _(e){if(e>=f)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f.toString(16)+" bytes");return 0|e}function x(e,t){if(m.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||te(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+c(e));var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return X(e).length;default:if(o)return n?-1:J(e).length;t=(""+t).toLowerCase(),o=!0}}function w(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return B(this,t,r);case"utf8":case"utf-8":return C(this,t,r);case"ascii":return D(this,t,r);case"latin1":case"binary":return L(this,t,r);case"base64":return T(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function k(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function E(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),re(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=m.from(t,n)),m.isBuffer(t))return 0===t.length?-1:S(e,t,r,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):S(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function S(e,t,r,n,o){var i,a=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var p=-1;for(i=r;i<s;i++)if(u(e,i)===u(t,-1===p?0:i-p)){if(-1===p&&(p=i),i-p+1===c)return p*a}else-1!==p&&(i-=i-p),p=-1}else for(r+c>s&&(r=s-c),i=r;i>=0;i--){for(var l=!0,f=0;f<c;f++)if(u(e,i+f)!==u(t,f)){l=!1;break}if(l)return i}return-1}function F(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i,a=t.length;for(n>a/2&&(n=a/2),i=0;i<n;++i){var s=parseInt(t.substr(2*i,2),16);if(re(s))return i;e[r+i]=s}return i}function O(e,t,r,n){return ee(J(t,e.length-r),e,r,n)}function j(e,t,r,n){return ee(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function P(e,t,r,n){return ee(X(t),e,r,n)}function A(e,t,r,n){return ee(function(e,t){for(var r,n,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function T(e,t,r){return 0===t&&r===e.length?u.fromByteArray(e):u.fromByteArray(e.slice(t,r))}function C(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i=e[o],a=null,s=i>239?4:i>223?3:i>191?2:1;if(o+s<=r){var c=void 0,u=void 0,p=void 0,l=void 0;switch(s){case 1:i<128&&(a=i);break;case 2:128==(192&(c=e[o+1]))&&(l=(31&i)<<6|63&c)>127&&(a=l);break;case 3:c=e[o+1],u=e[o+2],128==(192&c)&&128==(192&u)&&(l=(15&i)<<12|(63&c)<<6|63&u)>2047&&(l<55296||l>57343)&&(a=l);break;case 4:c=e[o+1],u=e[o+2],p=e[o+3],128==(192&c)&&128==(192&u)&&128==(192&p)&&(l=(15&i)<<18|(63&c)<<12|(63&u)<<6|63&p)>65535&&l<1114112&&(a=l)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),o+=s}return function(e){var t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=I));return r}(n)}m.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),m.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(m.prototype,"parent",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.buffer}}),Object.defineProperty(m.prototype,"offset",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.byteOffset}}),m.poolSize=8192,m.from=function(e,t,r){return h(e,t,r)},Object.setPrototypeOf(m.prototype,Uint8Array.prototype),Object.setPrototypeOf(m,Uint8Array),m.alloc=function(e,t,r){return function(e,t,r){return y(e),e<=0?d(e):void 0!==t?"string"==typeof r?d(e).fill(t,r):d(e).fill(t):d(e)}(e,t,r)},m.allocUnsafe=function(e){return g(e)},m.allocUnsafeSlow=function(e){return g(e)},m.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==m.prototype},m.compare=function(e,t){if(te(e,Uint8Array)&&(e=m.from(e,e.offset,e.byteLength)),te(t,Uint8Array)&&(t=m.from(t,t.offset,t.byteLength)),!m.isBuffer(e)||!m.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},m.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},m.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return m.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=m.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var i=e[r];if(te(i,Uint8Array))o+i.length>n.length?(m.isBuffer(i)||(i=m.from(i)),i.copy(n,o)):Uint8Array.prototype.set.call(n,i,o);else{if(!m.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o)}o+=i.length}return n},m.byteLength=x,m.prototype._isBuffer=!0,m.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)k(this,t,t+1);return this},m.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)k(this,t,t+3),k(this,t+1,t+2);return this},m.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)k(this,t,t+7),k(this,t+1,t+6),k(this,t+2,t+5),k(this,t+3,t+4);return this},m.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?C(this,0,e):w.apply(this,arguments)},m.prototype.toLocaleString=m.prototype.toString,m.prototype.equals=function(e){if(!m.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===m.compare(this,e)},m.prototype.inspect=function(){var e="",r=t.IS;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},l&&(m.prototype[l]=m.prototype.inspect),m.prototype.compare=function(e,t,r,n,o){if(te(e,Uint8Array)&&(e=m.from(e,e.offset,e.byteLength)),!m.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+c(e));if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(i,a),u=this.slice(n,o),p=e.slice(t,r),l=0;l<s;++l)if(u[l]!==p[l]){i=u[l],a=p[l];break}return i<a?-1:a<i?1:0},m.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},m.prototype.indexOf=function(e,t,r){return E(this,e,t,r,!0)},m.prototype.lastIndexOf=function(e,t,r){return E(this,e,t,r,!1)},m.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return F(this,e,t,r);case"utf8":case"utf-8":return O(this,e,t,r);case"ascii":case"latin1":case"binary":return j(this,e,t,r);case"base64":return P(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function D(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function L(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function B(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=ne[e[i]];return o}function R(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function N(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,r,n,o,i){if(!m.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function z(e,t,r,n,o){K(t,n,o,e,r,7);var i=Number(t&BigInt(4294967295));e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i;var a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function U(e,t,r,n,o){K(t,n,o,e,r,7);var i=Number(t&BigInt(4294967295));e[r+7]=i,i>>=8,e[r+6]=i,i>>=8,e[r+5]=i,i>>=8,e[r+4]=i;var a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function q(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function $(e,t,r,n,o){return t=+t,r>>>=0,o||q(e,0,r,4),p.write(e,t,r,n,23,4),r+4}function V(e,t,r,n,o){return t=+t,r>>>=0,o||q(e,0,r,8),p.write(e,t,r,n,52,8),r+8}m.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,m.prototype),n},m.prototype.readUintLE=m.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||N(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},m.prototype.readUintBE=m.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||N(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},m.prototype.readUint8=m.prototype.readUInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]},m.prototype.readUint16LE=m.prototype.readUInt16LE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]|this[e+1]<<8},m.prototype.readUint16BE=m.prototype.readUInt16BE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]<<8|this[e+1]},m.prototype.readUint32LE=m.prototype.readUInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},m.prototype.readUint32BE=m.prototype.readUInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},m.prototype.readBigUInt64LE=oe((function(e){W(e>>>=0,"offset");var t=this[e],r=this[e+7];void 0!==t&&void 0!==r||Y(e,this.length-8);var n=t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24),o=this[++e]+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+r*Math.pow(2,24);return BigInt(n)+(BigInt(o)<<BigInt(32))})),m.prototype.readBigUInt64BE=oe((function(e){W(e>>>=0,"offset");var t=this[e],r=this[e+7];void 0!==t&&void 0!==r||Y(e,this.length-8);var n=t*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e],o=this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+r;return(BigInt(n)<<BigInt(32))+BigInt(o)})),m.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||N(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},m.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||N(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},m.prototype.readInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},m.prototype.readInt16LE=function(e,t){e>>>=0,t||N(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},m.prototype.readInt16BE=function(e,t){e>>>=0,t||N(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},m.prototype.readInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},m.prototype.readInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},m.prototype.readBigInt64LE=oe((function(e){W(e>>>=0,"offset");var t=this[e],r=this[e+7];void 0!==t&&void 0!==r||Y(e,this.length-8);var n=this[e+4]+this[e+5]*Math.pow(2,8)+this[e+6]*Math.pow(2,16)+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24))})),m.prototype.readBigInt64BE=oe((function(e){W(e>>>=0,"offset");var t=this[e],r=this[e+7];void 0!==t&&void 0!==r||Y(e,this.length-8);var n=(t<<24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+r)})),m.prototype.readFloatLE=function(e,t){return e>>>=0,t||N(e,4,this.length),p.read(this,e,!0,23,4)},m.prototype.readFloatBE=function(e,t){return e>>>=0,t||N(e,4,this.length),p.read(this,e,!1,23,4)},m.prototype.readDoubleLE=function(e,t){return e>>>=0,t||N(e,8,this.length),p.read(this,e,!0,52,8)},m.prototype.readDoubleBE=function(e,t){return e>>>=0,t||N(e,8,this.length),p.read(this,e,!1,52,8)},m.prototype.writeUintLE=m.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||M(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},m.prototype.writeUintBE=m.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||M(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},m.prototype.writeUint8=m.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,1,255,0),this[t]=255&e,t+1},m.prototype.writeUint16LE=m.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},m.prototype.writeUint16BE=m.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},m.prototype.writeUint32LE=m.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},m.prototype.writeUint32BE=m.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},m.prototype.writeBigUInt64LE=oe((function(e){return z(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),m.prototype.writeBigUInt64BE=oe((function(e){return U(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),m.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);M(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+r},m.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);M(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+r},m.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},m.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},m.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},m.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},m.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},m.prototype.writeBigInt64LE=oe((function(e){return z(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),m.prototype.writeBigInt64BE=oe((function(e){return U(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),m.prototype.writeFloatLE=function(e,t,r){return $(this,e,t,!0,r)},m.prototype.writeFloatBE=function(e,t,r){return $(this,e,t,!1,r)},m.prototype.writeDoubleLE=function(e,t,r){return V(this,e,t,!0,r)},m.prototype.writeDoubleBE=function(e,t,r){return V(this,e,t,!1,r)},m.prototype.copy=function(e,t,r,n){if(!m.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),o},m.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!m.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=m.isBuffer(e)?e:m.from(e,n),s=a.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=a[i%s]}return this};var G={};function H(e,t,r){G[e]=function(r){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(d,r);var o,u,p,l,f=(p=d,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(p);if(l){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return a(e)}(this,e)});function d(){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),r=f.call(this),Object.defineProperty(a(r),"message",{value:t.apply(a(r),arguments),writable:!0,configurable:!0}),r.name="".concat(r.name," [").concat(e,"]"),r.stack,delete r.name,r}return o=d,(u=[{key:"code",get:function(){return e},set:function(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(e,"]: ").concat(this.message)}}])&&n(o.prototype,u),Object.defineProperty(o,"prototype",{writable:!1}),d}(r)}function Z(e){for(var t="",r=e.length,n="-"===e[0]?1:0;r>=n+4;r-=3)t="_".concat(e.slice(r-3,r)).concat(t);return"".concat(e.slice(0,r)).concat(t)}function K(e,t,r,n,o,i){if(e>r||e<t){var a,s="bigint"==typeof t?"n":"";throw a=i>3?0===t||t===BigInt(0)?">= 0".concat(s," and < 2").concat(s," ** ").concat(8*(i+1)).concat(s):">= -(2".concat(s," ** ").concat(8*(i+1)-1).concat(s,") and < 2 ** ")+"".concat(8*(i+1)-1).concat(s):">= ".concat(t).concat(s," and <= ").concat(r).concat(s),new G.ERR_OUT_OF_RANGE("value",a,e)}!function(e,t,r){W(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||Y(t,e.length-(r+1))}(n,o,i)}function W(e,t){if("number"!=typeof e)throw new G.ERR_INVALID_ARG_TYPE(t,"number",e)}function Y(e,t,r){if(Math.floor(e)!==e)throw W(e,r),new G.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new G.ERR_BUFFER_OUT_OF_BOUNDS;throw new G.ERR_OUT_OF_RANGE(r||"offset",">= ".concat(r?1:0," and <= ").concat(t),e)}H("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),H("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(c(t))}),TypeError),H("ERR_OUT_OF_RANGE",(function(e,t,r){var n='The value of "'.concat(e,'" is out of range.'),o=r;return Number.isInteger(r)&&Math.abs(r)>Math.pow(2,32)?o=Z(String(r)):"bigint"==typeof r&&(o=String(r),(r>Math.pow(BigInt(2),BigInt(32))||r<-Math.pow(BigInt(2),BigInt(32)))&&(o=Z(o)),o+="n"),n+" It must be ".concat(t,". Received ").concat(o)}),RangeError);var Q=/[^+/0-9A-Za-z-_]/g;function J(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function X(e){return u.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function ee(e,t,r,n){var o;for(o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function te(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function re(e){return e!=e}var ne=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)t[n+o]=e[r]+e[o];return t}();function oe(e){return"undefined"==typeof BigInt?ie:e}function ie(){throw new Error("BigInt not supported")}},1622:e=>{e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},1635:(e,t,r)=>{r.d(t,{C6:()=>o,Cl:()=>i,YH:()=>s,sH:()=>a});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))}function s(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},1690:(e,t)=>{function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}t.stringToBytes=function(e){return(t=e,function(e){if(Array.isArray(e))return r(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(t)||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.")}()).map((function(e){return e.charCodeAt(0)}));var t},t.tarHeaderChecksumMatches=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=parseInt(e.toString("utf8",148,154).replace(/\0.*$/,"").trim(),8);if(isNaN(r))return!1;for(var n=256,o=t;o<t+148;o++)n+=e[o];for(var i=t+156;i<t+512;i++)n+=e[i];return r===n},t.uint32SyncSafeToken={get:function(e,t){return 127&e[t+3]|e[t+2]<<7|e[t+1]<<14|e[t]<<21},len:4}},1787:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StreamReader=t.EndOfStreamError=void 0;var n=r(6273);Object.defineProperty(t,"EndOfStreamError",{enumerable:!0,get:function(){return n.EndOfStreamError}});var o=r(3216);Object.defineProperty(t,"StreamReader",{enumerable:!0,get:function(){return o.StreamReader}})},1837:(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)}var o=r(5417);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),p=["'"].concat(u),l=["%","/","?",";","#"].concat(p),f=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(3988);function b(e,t,r){if(e&&"object"===n(e)&&e instanceof i)return e;var o=new i;return o.parse(e,t,r),o}i.prototype.parse=function(e,t,r){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+n(e));var i=e.indexOf("?"),s=-1!==i&&i<e.indexOf("#")?"?":"#",u=e.split(s);u[0]=u[0].replace(/\\/g,"/");var b=e=u.join(s);if(b=b.trim(),!r&&1===e.split("#").length){var _=c.exec(b);if(_)return this.path=b,this.href=b,this.pathname=_[1],_[2]?(this.search=_[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var x=a.exec(b);if(x){var w=(x=x[0]).toLowerCase();this.protocol=w,b=b.substr(x.length)}if(r||x||b.match(/^\/\/[^@/]+@[^@/]+/)){var k="//"===b.substr(0,2);!k||x&&y[x]||(b=b.substr(2),this.slashes=!0)}if(!y[x]&&(k||x&&!g[x])){for(var E,S,F=-1,O=0;O<f.length;O++)-1!==(j=b.indexOf(f[O]))&&(-1===F||j<F)&&(F=j);for(-1!==(S=-1===F?b.lastIndexOf("@"):b.lastIndexOf("@",F))&&(E=b.slice(0,S),b=b.slice(S+1),this.auth=decodeURIComponent(E)),F=-1,O=0;O<l.length;O++){var j;-1!==(j=b.indexOf(l[O]))&&(-1===F||j<F)&&(F=j)}-1===F&&(F=b.length),this.host=b.slice(0,F),b=b.slice(F),this.parseHost(),this.hostname=this.hostname||"";var P="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!P)for(var A=this.hostname.split(/\./),T=(O=0,A.length);O<T;O++){var C=A[O];if(C&&!C.match(d)){for(var I="",D=0,L=C.length;D<L;D++)C.charCodeAt(D)>127?I+="x":I+=C[D];if(!I.match(d)){var B=A.slice(0,O),R=A.slice(O+1),N=C.match(m);N&&(B.push(N[1]),R.unshift(N[2])),R.length&&(b="/"+R.join(".")+b),this.hostname=B.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=o.toASCII(this.hostname));var M=this.port?":"+this.port:"",z=this.hostname||"";this.host=z+M,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!h[w])for(O=0,T=p.length;O<T;O++){var U=p[O];if(-1!==b.indexOf(U)){var q=encodeURIComponent(U);q===U&&(q=escape(U)),b=b.split(U).join(q)}}var $=b.indexOf("#");-1!==$&&(this.hash=b.substr($),b=b.slice(0,$));var V=b.indexOf("?");if(-1!==V?(this.search=b.substr(V),this.query=b.substr(V+1),t&&(this.query=v.parse(this.query)),b=b.slice(0,V)):t&&(this.search="",this.query={}),b&&(this.pathname=b),g[w]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){M=this.pathname||"";var G=this.search||"";this.path=M+G}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",o=this.hash||"",i=!1,a="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&"object"===n(this.query)&&Object.keys(this.query).length&&(a=v.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),o&&"#"!==o.charAt(0)&&(o="#"+o),s&&"?"!==s.charAt(0)&&(s="?"+s),t+i+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+o},i.prototype.resolve=function(e){return this.resolveObject(b(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if("string"==typeof e){var t=new i;t.parse(e,!1,!0),e=t}for(var r=new i,n=Object.keys(this),o=0;o<n.length;o++){var a=n[o];r[a]=this[a]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),c=0;c<s.length;c++){var u=s[c];"protocol"!==u&&(r[u]=e[u])}return g[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!g[e.protocol]){for(var p=Object.keys(e),l=0;l<p.length;l++){var f=p[l];r[f]=e[f]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||y[e.protocol])r.pathname=e.pathname;else{for(var d=(e.pathname||"").split("/");d.length&&!(e.host=d.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),r.pathname=d.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var m=r.pathname||"",h=r.search||"";r.path=m+h}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var v=r.pathname&&"/"===r.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),_=b||v||r.host&&e.pathname,x=_,w=r.pathname&&r.pathname.split("/")||[],k=(d=e.pathname&&e.pathname.split("/")||[],r.protocol&&!g[r.protocol]);if(k&&(r.hostname="",r.port=null,r.host&&(""===w[0]?w[0]=r.host:w.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===d[0]?d[0]=e.host:d.unshift(e.host)),e.host=null),_=_&&(""===d[0]||""===w[0])),b)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,w=d;else if(d.length)w||(w=[]),w.pop(),w=w.concat(d),r.search=e.search,r.query=e.query;else if(null!=e.search)return k&&(r.host=w.shift(),r.hostname=r.host,(j=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=j.shift(),r.hostname=j.shift(),r.host=r.hostname)),r.search=e.search,r.query=e.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!w.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var E=w.slice(-1)[0],S=(r.host||e.host||w.length>1)&&("."===E||".."===E)||""===E,F=0,O=w.length;O>=0;O--)"."===(E=w[O])?w.splice(O,1):".."===E?(w.splice(O,1),F++):F&&(w.splice(O,1),F--);if(!_&&!x)for(;F--;F)w.unshift("..");!_||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),S&&"/"!==w.join("/").substr(-1)&&w.push("");var j,P=""===w[0]||w[0]&&"/"===w[0].charAt(0);return k&&(r.hostname=P?"":w.length?w.shift():"",r.host=r.hostname,(j=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=j.shift(),r.hostname=j.shift(),r.host=r.hostname)),(_=_||r.host&&w.length)&&!P&&w.unshift(""),w.length>0?r.pathname=w.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){return"string"==typeof e&&(e=b(e)),e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i},1953:e=>{e.exports=TypeError},1976:(e,t)=>{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},r(e)}function n(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,i(n.key),n)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:String(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Deferred=void 0;var a=o((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolve=function(){return null},this.reject=function(){return null},this.promise=new Promise((function(e,r){t.reject=r,t.resolve=e}))}));t.Deferred=a},1978:(e,t,r)=>{var n=r(5465),o=r(7052),i=r(5118),a=r(2069);e.exports=a||n.call(i,o)},2069:e=>{e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},2104:e=>{e.exports=RangeError},2593:(e,t,r)=>{var n,o,i;function a(e){return a="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},a(e)}i=function(e){var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(e,t){var r=e[0],n=e[1],o=e[2],i=e[3];n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&o|~n&i)+t[0]-680876936|0)<<7|r>>>25)+n|0)&n|~r&o)+t[1]-389564586|0)<<12|i>>>20)+r|0)&r|~i&n)+t[2]+606105819|0)<<17|o>>>15)+i|0)&i|~o&r)+t[3]-1044525330|0)<<22|n>>>10)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&o|~n&i)+t[4]-176418897|0)<<7|r>>>25)+n|0)&n|~r&o)+t[5]+1200080426|0)<<12|i>>>20)+r|0)&r|~i&n)+t[6]-1473231341|0)<<17|o>>>15)+i|0)&i|~o&r)+t[7]-45705983|0)<<22|n>>>10)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&o|~n&i)+t[8]+1770035416|0)<<7|r>>>25)+n|0)&n|~r&o)+t[9]-1958414417|0)<<12|i>>>20)+r|0)&r|~i&n)+t[10]-42063|0)<<17|o>>>15)+i|0)&i|~o&r)+t[11]-1990404162|0)<<22|n>>>10)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&o|~n&i)+t[12]+1804603682|0)<<7|r>>>25)+n|0)&n|~r&o)+t[13]-40341101|0)<<12|i>>>20)+r|0)&r|~i&n)+t[14]-1502002290|0)<<17|o>>>15)+i|0)&i|~o&r)+t[15]+1236535329|0)<<22|n>>>10)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&i|o&~i)+t[1]-165796510|0)<<5|r>>>27)+n|0)&o|n&~o)+t[6]-1069501632|0)<<9|i>>>23)+r|0)&n|r&~n)+t[11]+643717713|0)<<14|o>>>18)+i|0)&r|i&~r)+t[0]-373897302|0)<<20|n>>>12)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&i|o&~i)+t[5]-701558691|0)<<5|r>>>27)+n|0)&o|n&~o)+t[10]+38016083|0)<<9|i>>>23)+r|0)&n|r&~n)+t[15]-660478335|0)<<14|o>>>18)+i|0)&r|i&~r)+t[4]-405537848|0)<<20|n>>>12)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&i|o&~i)+t[9]+568446438|0)<<5|r>>>27)+n|0)&o|n&~o)+t[14]-1019803690|0)<<9|i>>>23)+r|0)&n|r&~n)+t[3]-187363961|0)<<14|o>>>18)+i|0)&r|i&~r)+t[8]+1163531501|0)<<20|n>>>12)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&i|o&~i)+t[13]-1444681467|0)<<5|r>>>27)+n|0)&o|n&~o)+t[2]-51403784|0)<<9|i>>>23)+r|0)&n|r&~n)+t[7]+1735328473|0)<<14|o>>>18)+i|0)&r|i&~r)+t[12]-1926607734|0)<<20|n>>>12)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n^o^i)+t[5]-378558|0)<<4|r>>>28)+n|0)^n^o)+t[8]-2022574463|0)<<11|i>>>21)+r|0)^r^n)+t[11]+1839030562|0)<<16|o>>>16)+i|0)^i^r)+t[14]-35309556|0)<<23|n>>>9)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n^o^i)+t[1]-1530992060|0)<<4|r>>>28)+n|0)^n^o)+t[4]+1272893353|0)<<11|i>>>21)+r|0)^r^n)+t[7]-155497632|0)<<16|o>>>16)+i|0)^i^r)+t[10]-1094730640|0)<<23|n>>>9)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n^o^i)+t[13]+681279174|0)<<4|r>>>28)+n|0)^n^o)+t[0]-358537222|0)<<11|i>>>21)+r|0)^r^n)+t[3]-722521979|0)<<16|o>>>16)+i|0)^i^r)+t[6]+76029189|0)<<23|n>>>9)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n^o^i)+t[9]-640364487|0)<<4|r>>>28)+n|0)^n^o)+t[12]-421815835|0)<<11|i>>>21)+r|0)^r^n)+t[15]+530742520|0)<<16|o>>>16)+i|0)^i^r)+t[2]-995338651|0)<<23|n>>>9)+o|0,n=((n+=((i=((i+=(n^((r=((r+=(o^(n|~i))+t[0]-198630844|0)<<6|r>>>26)+n|0)|~o))+t[7]+1126891415|0)<<10|i>>>22)+r|0)^((o=((o+=(r^(i|~n))+t[14]-1416354905|0)<<15|o>>>17)+i|0)|~r))+t[5]-57434055|0)<<21|n>>>11)+o|0,n=((n+=((i=((i+=(n^((r=((r+=(o^(n|~i))+t[12]+1700485571|0)<<6|r>>>26)+n|0)|~o))+t[3]-1894986606|0)<<10|i>>>22)+r|0)^((o=((o+=(r^(i|~n))+t[10]-1051523|0)<<15|o>>>17)+i|0)|~r))+t[1]-2054922799|0)<<21|n>>>11)+o|0,n=((n+=((i=((i+=(n^((r=((r+=(o^(n|~i))+t[8]+1873313359|0)<<6|r>>>26)+n|0)|~o))+t[15]-30611744|0)<<10|i>>>22)+r|0)^((o=((o+=(r^(i|~n))+t[6]-1560198380|0)<<15|o>>>17)+i|0)|~r))+t[13]+1309151649|0)<<21|n>>>11)+o|0,n=((n+=((i=((i+=(n^((r=((r+=(o^(n|~i))+t[4]-145523070|0)<<6|r>>>26)+n|0)|~o))+t[11]-1120210379|0)<<10|i>>>22)+r|0)^((o=((o+=(r^(i|~n))+t[2]+718787259|0)<<15|o>>>17)+i|0)|~r))+t[9]-343485551|0)<<21|n>>>11)+o|0,e[0]=r+e[0]|0,e[1]=n+e[1]|0,e[2]=o+e[2]|0,e[3]=i+e[3]|0}function n(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}function o(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return r}function i(e){var t,o,i,a,s,c,u=e.length,p=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=u;t+=64)r(p,n(e.substring(t-64,t)));for(o=(e=e.substring(t-64)).length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<o;t+=1)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(r(p,i),t=0;t<16;t+=1)i[t]=0;return a=(a=8*u).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),c=parseInt(a[1],16)||0,i[14]=s,i[15]=c,r(p,i),p}function a(e){var r,n="";for(r=0;r<4;r+=1)n+=t[e>>8*r+4&15]+t[e>>8*r&15];return n}function s(e){var t;for(t=0;t<e.length;t+=1)e[t]=a(e[t]);return e.join("")}function c(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function u(e){var t,r=[],n=e.length;for(t=0;t<n-1;t+=2)r.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,r)}function p(){this.reset()}return s(i("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(r,n){var o,i,a,s,c=this.byteLength,u=t(r,c),p=c;return n!==e&&(p=t(n,c)),u>p?new ArrayBuffer(0):(o=p-u,i=new ArrayBuffer(o),a=new Uint8Array(i),s=new Uint8Array(this,u,o),a.set(s),i)}}(),p.prototype.append=function(e){return this.appendBinary(c(e)),this},p.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,o=this._buff.length;for(t=64;t<=o;t+=64)r(this._hash,n(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},p.prototype.end=function(e){var t,r,n=this._buff,o=n.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<o;t+=1)i[t>>2]|=n.charCodeAt(t)<<(t%4<<3);return this._finish(i,o),r=s(this._hash),e&&(r=u(r)),this.reset(),r},p.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},p.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},p.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},p.prototype._finish=function(e,t){var n,o,i,a=t;if(e[a>>2]|=128<<(a%4<<3),a>55)for(r(this._hash,e),a=0;a<16;a+=1)e[a]=0;n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(n[2],16),i=parseInt(n[1],16)||0,e[14]=o,e[15]=i,r(this._hash,e)},p.hash=function(e,t){return p.hashBinary(c(e),t)},p.hashBinary=function(e,t){var r=s(i(e));return t?u(r):r},p.ArrayBuffer=function(){this.reset()},p.ArrayBuffer.prototype.append=function(e){var t,n,i,a,s=(n=this._buff.buffer,i=e,(a=new Uint8Array(n.byteLength+i.byteLength)).set(new Uint8Array(n)),a.set(new Uint8Array(i),n.byteLength),a),c=s.length;for(this._length+=e.byteLength,t=64;t<=c;t+=64)r(this._hash,o(s.subarray(t-64,t)));return this._buff=t-64<c?new Uint8Array(s.buffer.slice(t-64)):new Uint8Array(0),this},p.ArrayBuffer.prototype.end=function(e){var t,r,n=this._buff,o=n.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<o;t+=1)i[t>>2]|=n[t]<<(t%4<<3);return this._finish(i,o),r=s(this._hash),e&&(r=u(r)),this.reset(),r},p.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.ArrayBuffer.prototype.getState=function(){var e,t=p.prototype.getState.call(this);return t.buff=(e=t.buff,String.fromCharCode.apply(null,new Uint8Array(e))),t},p.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e){var t,r=e.length,n=new ArrayBuffer(r),o=new Uint8Array(n);for(t=0;t<r;t+=1)o[t]=e.charCodeAt(t);return o}(e.buff),p.prototype.setState.call(this,e)},p.ArrayBuffer.prototype.destroy=p.prototype.destroy,p.ArrayBuffer.prototype._finish=p.prototype._finish,p.ArrayBuffer.hash=function(e,t){var n=s(function(e){var t,n,i,a,s,c,u=e.length,p=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=u;t+=64)r(p,o(e.subarray(t-64,t)));for(n=(e=t-64<u?e.subarray(t-64):new Uint8Array(0)).length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<n;t+=1)i[t>>2]|=e[t]<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(r(p,i),t=0;t<16;t+=1)i[t]=0;return a=(a=8*u).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),c=parseInt(a[1],16)||0,i[14]=s,i[15]=c,r(p,i),p}(new Uint8Array(e)));return t?u(n):n},p},"object"===a(t)?e.exports=i():void 0===(o="function"==typeof(n=i)?n.call(t,r,t,e):n)||(e.exports=o)},2629:(e,t,r)=>{var n=r(8657),o=r(1953),i=function(e,t,r){for(var n,o=e;null!=(n=o.next);o=n)if(n.key===t)return o.next=n.next,r||(n.next=e.next,e.next=n),n};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+n(e))},delete:function(t){var r=e&&e.next,n=function(e,t){if(e)return i(e,t,!0)}(e,t);return n&&r&&r===n&&(e=void 0),!!n},get:function(t){return function(e,t){if(e){var r=i(e,t);return r&&r.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!i(e,t)}(e,t)},set:function(t,r){e||(e={next:void 0}),function(e,t,r){var n=i(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(e,t,r)}};return t}},2634:()=>{},2703:e=>{var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e){for(var t=[],r=1,n=0;r<e.length;r+=1,n+=1)t[n]=e[r];return t}(arguments),s=r(0,o.length-a.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(i=Function("binder","return function ("+function(e){for(var t="",r=0;r<e.length;r+=1)t+=e[r],r+1<e.length&&(t+=",");return t}(c)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,n(a,arguments));return Object(t)===t?t:this}return o.apply(e,n(a,arguments))})),o.prototype){var p=function(){};p.prototype=o.prototype,i.prototype=new p,p.prototype=null}return i}},3186:(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)}r.d(t,{Bq:()=>p,Gv:()=>i,OU:()=>c,V1:()=>u,fo:()=>a,mw:()=>o,qf:()=>s});var o=function(e){return"[object ArrayBuffer]"===Object.prototype.toString.call(e)},i=function(e){return null!==e&&"object"===n(e)},a=function(e){return"[object File]"===Object.prototype.toString.call(e)},s=function(e){return"[object Blob]"===Object.prototype.toString.call(e)},c=function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},u=function(e){return"undefined"!=typeof FormData&&e instanceof FormData},p=function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}},3190:(e,t,r)=>{var n=r(8299),o=r(9472),i=o([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o([r]):r}},3216:(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(){o=function(){return t};var e,t={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",p=s.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:j(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var m="suspendedStart",h="suspendedYield",y="executing",g="completed",v={};function b(){}function _(){}function x(){}var w={};l(w,c,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(I([])));E&&E!==r&&i.call(E,c)&&(w=E);var S=x.prototype=b.prototype=Object.create(w);function F(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,a,s,c){var u=d(e[o],e,a);if("throw"!==u.type){var p=u.arg,l=p.value;return l&&"object"==n(l)&&i.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(l).then((function(e){p.value=e,s(p)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function j(t,r,n){var o=m;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=P(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var u=d(t,r,n);if("normal"===u.type){if(o=n.done?g:h,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=g,n.method="throw",n.arg=u.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function A(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function I(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(i.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return _.prototype=x,a(S,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:_,configurable:!0}),_.displayName=l(x,p,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,l(e,p,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},F(O.prototype),l(O.prototype,u,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},F(S),l(S,p,"Generator"),l(S,c,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=I,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){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 r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},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),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}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){var a=e.apply(t,r);function s(e){i(a,n,o,s,c,"next",e)}function c(e){i(a,n,o,s,c,"throw",e)}s(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,c(n.key),n)}}function c(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:String(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.StreamReader=t.EndOfStreamError=void 0;var u=r(6273),p=r(1976),l=r(6273);Object.defineProperty(t,"EndOfStreamError",{enumerable:!0,get:function(){return l.EndOfStreamError}});var f=function(){function e(t){var r=this;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.s=t,this.deferred=null,this.endOfStream=!1,this.peekQueue=[],!t.read||!t.once)throw new Error("Expected an instance of stream.Readable");this.s.once("end",(function(){return r.reject(new u.EndOfStreamError)})),this.s.once("error",(function(e){return r.reject(e)})),this.s.once("close",(function(){return r.reject(new Error("Stream closed"))}))}var t,r,n,i,c;return t=e,r=[{key:"peek",value:(c=a(o().mark((function e(t,r,n){var i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.read(t,r,n);case 2:return i=e.sent,this.peekQueue.push(t.subarray(r,r+i)),e.abrupt("return",i);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return c.apply(this,arguments)})},{key:"read",value:(i=a(o().mark((function e(t,r,n){var i,a,s,c,p,l;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==n){e.next=2;break}return e.abrupt("return",0);case 2:if(0!==this.peekQueue.length||!this.endOfStream){e.next=4;break}throw new u.EndOfStreamError;case 4:i=n,a=0;case 6:if(!(this.peekQueue.length>0&&i>0)){e.next=17;break}if(s=this.peekQueue.pop()){e.next=10;break}throw new Error("peekData should be defined");case 10:c=Math.min(s.length,i),t.set(s.subarray(0,c),r+a),a+=c,i-=c,c<s.length&&this.peekQueue.push(s.subarray(c)),e.next=6;break;case 17:if(!(i>0)||this.endOfStream){e.next=28;break}return p=Math.min(i,1048576),e.next=21,this.readFromStream(t,r+a,p);case 21:if(l=e.sent,a+=l,!(l<p)){e.next=25;break}return e.abrupt("break",28);case 25:i-=l,e.next=17;break;case 28:return e.abrupt("return",a);case 29:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return i.apply(this,arguments)})},{key:"readFromStream",value:(n=a(o().mark((function e(t,r,n){var i,a,s=this;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(i=this.s.read(n))){e.next=6;break}return t.set(i,r),e.abrupt("return",i.length);case 6:return a={buffer:t,offset:r,length:n,deferred:new p.Deferred},this.deferred=a.deferred,this.s.once("readable",(function(){s.readDeferred(a)})),e.abrupt("return",a.deferred.promise);case 10:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return n.apply(this,arguments)})},{key:"readDeferred",value:function(e){var t=this,r=this.s.read(e.length);r?(e.buffer.set(r,e.offset),e.deferred.resolve(r.length),this.deferred=null):this.s.once("readable",(function(){t.readDeferred(e)}))}},{key:"reject",value:function(e){this.endOfStream=!0,this.deferred&&(this.deferred.reject(e),this.deferred=null)}}],r&&s(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.StreamReader=f},3221:(e,t,r)=>{var n=r(8299),o=r(3190),i=r(8657),a=r(1953),s=n("%Map%",!0),c=o("Map.prototype.get",!0),u=o("Map.prototype.set",!0),p=o("Map.prototype.has",!0),l=o("Map.prototype.delete",!0),f=o("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+i(e))},delete:function(t){if(e){var r=l(e,t);return 0===f(e)&&(e=void 0),r}return!1},get:function(t){if(e)return c(e,t)},has:function(t){return!!e&&p(e,t)},set:function(t,r){e||(e=new s),u(e,t,r)}};return t}},3284:(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){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,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:String(t)}Object.defineProperty(t,"__esModule",{value:!0});var a=r(8796),s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._queue=[]}var t,r;return t=e,(r=[{key:"enqueue",value:function(e,t){var r={priority:(t=Object.assign({priority:0},t)).priority,run:e};if(this.size&&this._queue[this.size-1].priority>=t.priority)this._queue.push(r);else{var n=a.default(this._queue,r,(function(e,t){return t.priority-e.priority}));this._queue.splice(n,0,r)}}},{key:"dequeue",value:function(){var e=this._queue.shift();return null==e?void 0:e.run}},{key:"filter",value:function(e){return this._queue.filter((function(t){return t.priority===e.priority})).map((function(e){return e.run}))}},{key:"size",get:function(){return this._queue.length}}])&&o(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=s},3441:(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)}var o=r(8299),i=r(3190),a=r(8657),s=r(3221),c=r(1953),u=o("%WeakMap%",!0),p=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),d=i("WeakMap.prototype.delete",!0);e.exports=u?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new c("Side channel does not contain "+a(e))},delete:function(r){if(u&&r&&("object"===n(r)||"function"==typeof r)){if(e)return d(e,r)}else if(s&&t)return t.delete(r);return!1},get:function(r){return u&&r&&("object"===n(r)||"function"==typeof r)&&e?p(e,r):t&&t.get(r)},has:function(r){return u&&r&&("object"===n(r)||"function"==typeof r)&&e?f(e,r):!!t&&t.has(r)},set:function(r,o){u&&r&&("object"===n(r)||"function"==typeof r)?(e||(e=new u),l(e,r,o)):s&&(t||(t=s()),t.set(r,o))}};return r}:s},3574:(e,t,r)=>{r.d(t,{U:()=>l});var n=r(1635),o=r(1227),i=r.n(o),a=r(3186),s=r(5934),c=r(9653),u=r(830),p=i()("fs:request:xhr"),l=function(){function e(){}return e.prototype.request=function(e){var t=this;void 0===e.filestackHeaders&&(e.filestackHeaders=!0),(e=(0,u.cN)(e)).headers=e.headers||{};var r=e.data,o=e.headers;a.V1(r)&&delete o["Content-Type"];var i=new XMLHttpRequest;if(e.blobResponse&&(i.responseType="blob"),e.auth){if(!e.auth.username||0===e.auth.username.length||!e.auth.password||0===e.auth.password.length)return Promise.reject(new c.d("Basic auth: username and password are required ".concat(e.auth),e));o.Authorization="Basic "+btoa(unescape(encodeURIComponent("".concat(e.auth.username,":").concat(e.auth.password)))),p("Set request authorization to %s",e.auth.username+e.auth.password)}var l=e.url.trim();return/^http(s)?:\/\//.test(l)||(l="https://".concat(l)),l=(0,u.D6)(l,e.params),p("Starting request to %s with options %O",l,e),i.open(e.method.toUpperCase(),l,!0),i.timeout=e.timeout,new Promise((function(a,f){var d;if(e.cancelToken&&(d=function(t){return i&&(i.abort(),i=null),p("Request canceled by user %s, config: %O",t,e),f(new c.d("Request aborted. Reason: ".concat(t),e,null,c.E.ABORTED))},e.cancelToken.once("cancel",d)),i.onreadystatechange=function(){return(0,n.sH)(t,void 0,void 0,(function(){var t,r,o;return(0,n.YH)(this,(function(n){switch(n.label){case 0:return i&&4===i.readyState&&(0!==i.status||i.responseURL)?(t=(0,u.qg)(i.getAllResponseHeaders()),r=i.response,o={data:r,status:i.status,statusText:i.statusText,headers:t,config:e},i=null,[4,(0,u.xp)(o)]):[2];case 1:return 500<=(o=n.sent()).status&&o.status<=599?(p("Server error(5xx) - %O",o),[2,f(new c.d("Server error ".concat(l),e,o,c.E.SERVER))]):400<=o.status&&o.status<=499?(p("Request error(4xx) - %O",o),[2,f(new c.d("Request error ".concat(l),e,o,c.E.REQUEST))]):(e.cancelToken&&(e.cancelToken.removeListener("cancel",d),d=null),[2,a(o)])}}))}))},i.onabort=function(){i&&(i=null,f(new c.d("Request aborted",e,null,c.E.ABORTED)))},i.onerror=function(t){i=null,p("Request error! %O",t),f(new c.d("Network Error",e,null,c.E.NETWORK))},i.ontimeout=function(){i=null,p("Request timed out. %O",e),f(new c.d("Request timeout",e,null,c.E.TIMEOUT))},"setRequestHeader"in i&&o&&Object.keys(o).length)for(var m in o)void 0!==o[m]&&(p("Set request header %s to %s",m,o[m]),i.setRequestHeader(m,o[m]));"function"==typeof e.onProgress&&[s.j.POST,s.j.PUT].indexOf(e.method)>-1&&(i.upload?(p("Bind to upload progress event"),i.upload.addEventListener("progress",e.onProgress)):(p("Bind to progress event"),i.addEventListener("progress",e.onProgress))),void 0===r&&(r=null),i.send(r)}))},e}()},3581:(e,t,r)=>{var n=r(5759);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},3772:(e,t,r)=>{function n(){n=function(){return t};var e,t={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",p=s.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new C(n||[]);return i(a,"_invoke",{value:j(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var m="suspendedStart",h="suspendedYield",y="executing",g="completed",v={};function b(){}function _(){}function x(){}var w={};l(w,c,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(I([])));E&&E!==r&&o.call(E,c)&&(w=E);var S=x.prototype=b.prototype=Object.create(w);function F(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(n,i,s,c){var u=d(e[n],e,i);if("throw"!==u.type){var p=u.arg,l=p.value;return l&&"object"==a(l)&&o.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(l).then((function(e){p.value=e,s(p)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var n;i(this,"_invoke",{value:function(e,o){function i(){return new t((function(t,n){r(e,o,t,n)}))}return n=n?n.then(i,i):i()}})}function j(t,r,n){var o=m;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=P(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var u=d(t,r,n);if("normal"===u.type){if(o=n.done?g:h,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=g,n.method="throw",n.arg=u.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function A(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function I(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(o.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(a(t)+" is not iterable")}return _.prototype=x,i(S,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:_,configurable:!0}),_.displayName=l(x,p,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,l(e,p,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},F(O.prototype),l(O.prototype,u,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},F(S),l(S,p,"Generator"),l(S,c,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=I,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){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 r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},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),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}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){var a=e.apply(t,r);function s(e){o(a,n,i,s,c,"next",e)}function c(e){o(a,n,i,s,c,"throw",e)}s(void 0)}))}}function a(e){return a="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},a(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,c(n.key),n)}}function c(e){var t=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:String(t)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var l=r(1310),f=r(4419),d=r(3284),m=function(){},h=new f.TimeoutError,y=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(_,e);var t,r,o,c,l,y,g,v,b=(g=_,v=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(g);if(v){var r=p(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function _(e){var t,r,n,o,i;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,_),(t=b.call(this))._intervalCount=0,t._intervalEnd=0,t._pendingCount=0,t._resolveEmpty=m,t._resolveIdle=m,!("number"==typeof(e=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:d.default},e)).intervalCap&&e.intervalCap>=1))throw new TypeError("Expected `intervalCap` to be a number from 1 and up, got `".concat(null!==(n=null===(r=e.intervalCap)||void 0===r?void 0:r.toString())&&void 0!==n?n:"","` (").concat(a(e.intervalCap),")"));if(void 0===e.interval||!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError("Expected `interval` to be a finite number >= 0, got `".concat(null!==(i=null===(o=e.interval)||void 0===o?void 0:o.toString())&&void 0!==i?i:"","` (").concat(a(e.interval),")"));return t._carryoverConcurrencyCount=e.carryoverConcurrencyCount,t._isIntervalIgnored=e.intervalCap===1/0||0===e.interval,t._intervalCap=e.intervalCap,t._interval=e.interval,t._queue=new e.queueClass,t._queueClass=e.queueClass,t.concurrency=e.concurrency,t._timeout=e.timeout,t._throwOnTimeout=!0===e.throwOnTimeout,t._isPaused=!1===e.autoStart,t}return t=_,r=[{key:"_doesIntervalAllowAnother",get:function(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}},{key:"_doesConcurrentAllowAnother",get:function(){return this._pendingCount<this._concurrency}},{key:"_next",value:function(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}},{key:"_resolvePromises",value:function(){this._resolveEmpty(),this._resolveEmpty=m,0===this._pendingCount&&(this._resolveIdle(),this._resolveIdle=m,this.emit("idle"))}},{key:"_onResumeInterval",value:function(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}},{key:"_isIntervalPaused",value:function(){var e=this,t=Date.now();if(void 0===this._intervalId){var r=this._intervalEnd-t;if(!(r<0))return void 0===this._timeoutId&&(this._timeoutId=setTimeout((function(){e._onResumeInterval()}),r)),!0;this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0}return!1}},{key:"_tryToStartAnother",value:function(){if(0===this._queue.size)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){var e=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){var t=this._queue.dequeue();return!!t&&(this.emit("active"),t(),e&&this._initializeIntervalIfNeeded(),!0)}}return!1}},{key:"_initializeIntervalIfNeeded",value:function(){var e=this;this._isIntervalIgnored||void 0!==this._intervalId||(this._intervalId=setInterval((function(){e._onInterval()}),this._interval),this._intervalEnd=Date.now()+this._interval)}},{key:"_onInterval",value:function(){0===this._intervalCount&&0===this._pendingCount&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}},{key:"_processQueue",value:function(){for(;this._tryToStartAnother(););}},{key:"concurrency",get:function(){return this._concurrency},set:function(e){if(!("number"==typeof e&&e>=1))throw new TypeError("Expected `concurrency` to be a number from 1 and up, got `".concat(e,"` (").concat(a(e),")"));this._concurrency=e,this._processQueue()}},{key:"add",value:(y=i(n().mark((function e(t){var r,o=this,a=arguments;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},e.abrupt("return",new Promise((function(e,a){var s=function(){var s=i(n().mark((function i(){var s;return n().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o._pendingCount++,o._intervalCount++,n.prev=2,s=void 0===o._timeout&&void 0===r.timeout?t():f.default(Promise.resolve(t()),void 0===r.timeout?o._timeout:r.timeout,(function(){(void 0===r.throwOnTimeout?o._throwOnTimeout:r.throwOnTimeout)&&a(h)})),n.t0=e,n.next=7,s;case 7:n.t1=n.sent,(0,n.t0)(n.t1),n.next=14;break;case 11:n.prev=11,n.t2=n.catch(2),a(n.t2);case 14:o._next();case 15:case"end":return n.stop()}}),i,null,[[2,11]])})));return function(){return s.apply(this,arguments)}}();o._queue.enqueue(s,r),o._tryToStartAnother(),o.emit("add")})));case 2:case"end":return e.stop()}}),e)}))),function(e){return y.apply(this,arguments)})},{key:"addAll",value:(l=i(n().mark((function e(t,r){var o=this;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t.map(function(){var e=i(n().mark((function e(t){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",o.add(t,r));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())));case 1:case"end":return e.stop()}}),e)}))),function(e,t){return l.apply(this,arguments)})},{key:"start",value:function(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}},{key:"pause",value:function(){this._isPaused=!0}},{key:"clear",value:function(){this._queue=new this._queueClass}},{key:"onEmpty",value:(c=i(n().mark((function e(){var t=this;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this._queue.size){e.next=2;break}return e.abrupt("return");case 2:return e.abrupt("return",new Promise((function(e){var r=t._resolveEmpty;t._resolveEmpty=function(){r(),e()}})));case 3:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"onIdle",value:(o=i(n().mark((function e(){var t=this;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this._pendingCount||0!==this._queue.size){e.next=2;break}return e.abrupt("return");case 2:return e.abrupt("return",new Promise((function(e){var r=t._resolveIdle;t._resolveIdle=function(){r(),e()}})));case 3:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"size",get:function(){return this._queue.size}},{key:"sizeBy",value:function(e){return this._queue.filter(e).length}},{key:"pending",get:function(){return this._pendingCount}},{key:"isPaused",get:function(){return this._isPaused}},{key:"timeout",get:function(){return this._timeout},set:function(e){this._timeout=e}}],r&&s(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),_}(l);t.A=y},3988:(e,t,r)=>{var n=r(6889),o=r(9367),i=r(9292);e.exports={formats:i,parse:o,stringify:n}},4021:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fromBuffer=t.fromStream=t.EndOfStreamError=void 0;var n=r(4256),o=r(4974),i=r(1787);Object.defineProperty(t,"EndOfStreamError",{enumerable:!0,get:function(){return i.EndOfStreamError}}),t.fromStream=function(e,t){return t=t||{},new n.ReadStreamTokenizer(e,t)},t.fromBuffer=function(e,t){return new o.BufferTokenizer(e,t)}},4218:e=>{e.exports=Math.floor},4256:(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(){o=function(){return t};var e,t={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",p=s.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:j(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var m="suspendedStart",h="suspendedYield",y="executing",g="completed",v={};function b(){}function _(){}function x(){}var w={};l(w,c,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(I([])));E&&E!==r&&i.call(E,c)&&(w=E);var S=x.prototype=b.prototype=Object.create(w);function F(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,a,s,c){var u=d(e[o],e,a);if("throw"!==u.type){var p=u.arg,l=p.value;return l&&"object"==n(l)&&i.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(l).then((function(e){p.value=e,s(p)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function j(t,r,n){var o=m;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=P(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var u=d(t,r,n);if("normal"===u.type){if(o=n.done?g:h,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=g,n.method="throw",n.arg=u.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function A(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function I(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(i.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return _.prototype=x,a(S,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:_,configurable:!0}),_.displayName=l(x,p,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,l(e,p,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},F(O.prototype),l(O.prototype,u,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},F(S),l(S,p,"Generator"),l(S,c,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=I,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){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 r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},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),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}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){var a=e.apply(t,r);function s(e){i(a,n,o,s,c,"next",e)}function c(e){i(a,n,o,s,c,"throw",e)}s(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,c(n.key),n)}}function c(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:String(t)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.ReadStreamTokenizer=void 0;var l=r(1090),f=r(1787),d=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(g,e);var t,r,i,c,l,d,m,h,y=(m=g,h=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(m);if(h){var r=p(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function g(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),(r=y.call(this,t)).streamReader=new f.StreamReader(e),r}return t=g,r=[{key:"getFileInfo",value:(d=a(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.fileInfo);case 1:case"end":return e.stop()}}),e,this)}))),function(){return d.apply(this,arguments)})},{key:"readBuffer",value:(l=a(o().mark((function e(t,r){var n,i,a;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.normalizeOptions(t,r),!((i=n.position-this.position)>0)){e.next=8;break}return e.next=5,this.ignore(i);case 5:return e.abrupt("return",this.readBuffer(t,r));case 8:if(!(i<0)){e.next=10;break}throw new Error("`options.position` must be equal or greater than `tokenizer.position`");case 10:if(0!==n.length){e.next=12;break}return e.abrupt("return",0);case 12:return e.next=14,this.streamReader.read(t,n.offset,n.length);case 14:if(a=e.sent,this.position+=a,r&&r.mayBeLess||!(a<n.length)){e.next=18;break}throw new f.EndOfStreamError;case 18:return e.abrupt("return",a);case 19:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"peekBuffer",value:(c=a(o().mark((function e(t,r){var n,i,a,s;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.normalizeOptions(t,r),i=0,!n.position){e.next=15;break}if(!((a=n.position-this.position)>0)){e.next=13;break}return s=new Uint8Array(n.length+a),e.next=8,this.peekBuffer(s,{mayBeLess:n.mayBeLess});case 8:return i=e.sent,t.set(s.subarray(a),n.offset),e.abrupt("return",i-a);case 13:if(!(a<0)){e.next=15;break}throw new Error("Cannot peek from a negative offset in a stream");case 15:if(!(n.length>0)){e.next=29;break}return e.prev=16,e.next=19,this.streamReader.peek(t,n.offset,n.length);case 19:i=e.sent,e.next=27;break;case 22:if(e.prev=22,e.t0=e.catch(16),!(r&&r.mayBeLess&&e.t0 instanceof f.EndOfStreamError)){e.next=26;break}return e.abrupt("return",0);case 26:throw e.t0;case 27:if(n.mayBeLess||!(i<n.length)){e.next=29;break}throw new f.EndOfStreamError;case 29:return e.abrupt("return",i);case 30:case"end":return e.stop()}}),e,this,[[16,22]])}))),function(e,t){return c.apply(this,arguments)})},{key:"ignore",value:(i=a(o().mark((function e(t){var r,n,i,a,s;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=Math.min(256e3,t),n=new Uint8Array(r),i=0;case 3:if(!(i<t)){e.next=13;break}return a=t-i,e.next=7,this.readBuffer(n,{length:Math.min(r,a)});case 7:if(!((s=e.sent)<0)){e.next=10;break}return e.abrupt("return",s);case 10:i+=s,e.next=3;break;case 13:return e.abrupt("return",i);case 14:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})}],r&&s(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),g}(l.AbstractTokenizer);t.ReadStreamTokenizer=d},4282:(e,t,r)=>{e.exports.Validator=r(428);r(1371).ValidatorResult,r(1371).ValidatorResultError,r(1371).ValidationError,r(1371).SchemaError,r(5605),r(5605).S},4379: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},t(e)}e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"===t(Symbol.iterator))return!0;var e={},r=Symbol("test"),n=Object(r);if("string"==typeof r)return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var o in e[r]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==r)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,r);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},4397:(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(){o=function(){return t};var e,t={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",p=s.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:j(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var m="suspendedStart",h="suspendedYield",y="executing",g="completed",v={};function b(){}function _(){}function x(){}var w={};l(w,c,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(I([])));E&&E!==r&&i.call(E,c)&&(w=E);var S=x.prototype=b.prototype=Object.create(w);function F(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,a,s,c){var u=d(e[o],e,a);if("throw"!==u.type){var p=u.arg,l=p.value;return l&&"object"==n(l)&&i.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(l).then((function(e){p.value=e,s(p)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function j(t,r,n){var o=m;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=P(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var u=d(t,r,n);if("normal"===u.type){if(o=n.done?g:h,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=g,n.method="throw",n.arg=u.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function A(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function I(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(i.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return _.prototype=x,a(S,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:_,configurable:!0}),_.displayName=l(x,p,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,l(e,p,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},F(O.prototype),l(O.prototype,u,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},F(S),l(S,p,"Generator"),l(S,c,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=I,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){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 r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},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),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}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)}Object.defineProperty(t,"__esModule",{value:!0}),t.fromStream=t.fromBuffer=t.EndOfStreamError=t.fromFile=void 0;var a=r(6665),s=r(4021),c=r(5158);Object.defineProperty(t,"fromFile",{enumerable:!0,get:function(){return c.fromFile}});var u=r(4021);function p(){var e;return e=o().mark((function e(t,r){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=r||{},!t.path){e.next=7;break}return e.next=4,a.stat(t.path);case 4:n=e.sent,r.path=t.path,r.size=n.size;case 7:return e.abrupt("return",s.fromStream(t,r));case 8:case"end":return e.stop()}}),e)})),p=function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function s(e){i(a,n,o,s,c,"next",e)}function c(e){i(a,n,o,s,c,"throw",e)}s(void 0)}))},p.apply(this,arguments)}Object.defineProperty(t,"EndOfStreamError",{enumerable:!0,get:function(){return u.EndOfStreamError}}),Object.defineProperty(t,"fromBuffer",{enumerable:!0,get:function(){return u.fromBuffer}}),t.fromStream=function(e,t){return p.apply(this,arguments)}},4419:(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){var t="function"==typeof Map?new Map:void 0;return o=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return i(e,arguments,c(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,e)},o(e)}function i(e,t,r){return i=a()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&s(o,r.prototype),o},i.apply(null,arguments)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var u=r(9927),p=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(u,e);var t,r,o,i=(r=u,o=a(),function(){var e,t=c(r);if(o){var i=c(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=i.call(this,e)).name="TimeoutError",t}return t=u,Object.defineProperty(t,"prototype",{writable:!1}),t}(o(Error)),l=function(e,t,r){return new Promise((function(n,o){if("number"!=typeof t||t<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(t!==1/0){var i=setTimeout((function(){if("function"!=typeof r){var i="string"==typeof r?r:"Promise timed out after ".concat(t," milliseconds"),a=r instanceof Error?r:new p(i);"function"==typeof e.cancel&&e.cancel(),o(a)}else try{n(r())}catch(e){o(e)}}),t);u(e.then(n,o),(function(){clearTimeout(i)}))}else n(e)}))};e.exports=l,e.exports.default=l,e.exports.TimeoutError=p},4428:()=>{},4509:(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)}var o=r(9292),i=Object.prototype.hasOwnProperty,a=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),c=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},u=1024;e.exports={arrayToObject:c,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(var i=t[o],s=i.obj[i.prop],c=Object.keys(s),u=0;u<c.length;++u){var p=c[u],l=s[p];"object"===n(l)&&null!==l&&-1===r.indexOf(l)&&(t.push({obj:s,prop:p}),r.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(a(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,i,a){if(0===e.length)return e;var c=e;if("symbol"===n(e)?c=Symbol.prototype.toString.call(e):"string"!=typeof e&&(c=String(e)),"iso-8859-1"===r)return escape(c).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var p="",l=0;l<c.length;l+=u){for(var f=c.length>=u?c.slice(l,l+u):c,d=[],m=0;m<f.length;++m){var h=f.charCodeAt(m);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||a===o.RFC1738&&(40===h||41===h)?d[d.length]=f.charAt(m):h<128?d[d.length]=s[h]:h<2048?d[d.length]=s[192|h>>6]+s[128|63&h]:h<55296||h>=57344?d[d.length]=s[224|h>>12]+s[128|h>>6&63]+s[128|63&h]:(m+=1,h=65536+((1023&h)<<10|1023&f.charCodeAt(m)),d[d.length]=s[240|h>>18]+s[128|h>>12&63]+s[128|h>>6&63]+s[128|63&h])}p+=d.join("")}return p},isBuffer:function(e){return!(!e||"object"!==n(e)||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(a(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,o){if(!r)return t;if("object"!==n(r)&&"function"!=typeof r){if(a(t))t.push(r);else{if(!t||"object"!==n(t))return[t,r];(o&&(o.plainObjects||o.allowPrototypes)||!i.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!==n(t))return[t].concat(r);var s=t;return a(t)&&!a(r)&&(s=c(t,o)),a(t)&&a(r)?(r.forEach((function(r,a){if(i.call(t,a)){var s=t[a];s&&"object"===n(s)&&r&&"object"===n(r)?t[a]=e(s,r,o):t.push(r)}else t[a]=r})),t):Object.keys(r).reduce((function(t,n){var a=r[n];return i.call(t,n)?t[n]=e(t[n],a,o):t[n]=a,t}),s)}}},4872:(e,t,r)=>{var n=r(1545).hp;function o(e){return o="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},o(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,c(n.key),n)}}function s(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:String(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.AnsiStringType=t.StringType=t.BufferType=t.Uint8ArrayType=t.IgnoreType=t.Float80_LE=t.Float80_BE=t.Float64_LE=t.Float64_BE=t.Float32_LE=t.Float32_BE=t.Float16_LE=t.Float16_BE=t.INT64_BE=t.UINT64_BE=t.INT64_LE=t.UINT64_LE=t.INT32_LE=t.INT32_BE=t.INT24_BE=t.INT24_LE=t.INT16_LE=t.INT16_BE=t.INT8=t.UINT32_BE=t.UINT32_LE=t.UINT24_BE=t.UINT24_LE=t.UINT16_BE=t.UINT16_LE=t.UINT8=void 0;var u=r(6773);function p(e){return new DataView(e.buffer,e.byteOffset)}t.UINT8={len:1,get:function(e,t){return p(e).getUint8(t)},put:function(e,t,r){return p(e).setUint8(t,r),t+1}},t.UINT16_LE={len:2,get:function(e,t){return p(e).getUint16(t,!0)},put:function(e,t,r){return p(e).setUint16(t,r,!0),t+2}},t.UINT16_BE={len:2,get:function(e,t){return p(e).getUint16(t)},put:function(e,t,r){return p(e).setUint16(t,r),t+2}},t.UINT24_LE={len:3,get:function(e,t){var r=p(e);return r.getUint8(t)+(r.getUint16(t+1,!0)<<8)},put:function(e,t,r){var n=p(e);return n.setUint8(t,255&r),n.setUint16(t+1,r>>8,!0),t+3}},t.UINT24_BE={len:3,get:function(e,t){var r=p(e);return(r.getUint16(t)<<8)+r.getUint8(t+2)},put:function(e,t,r){var n=p(e);return n.setUint16(t,r>>8),n.setUint8(t+2,255&r),t+3}},t.UINT32_LE={len:4,get:function(e,t){return p(e).getUint32(t,!0)},put:function(e,t,r){return p(e).setUint32(t,r,!0),t+4}},t.UINT32_BE={len:4,get:function(e,t){return p(e).getUint32(t)},put:function(e,t,r){return p(e).setUint32(t,r),t+4}},t.INT8={len:1,get:function(e,t){return p(e).getInt8(t)},put:function(e,t,r){return p(e).setInt8(t,r),t+1}},t.INT16_BE={len:2,get:function(e,t){return p(e).getInt16(t)},put:function(e,t,r){return p(e).setInt16(t,r),t+2}},t.INT16_LE={len:2,get:function(e,t){return p(e).getInt16(t,!0)},put:function(e,t,r){return p(e).setInt16(t,r,!0),t+2}},t.INT24_LE={len:3,get:function(e,r){var n=t.UINT24_LE.get(e,r);return n>8388607?n-16777216:n},put:function(e,t,r){var n=p(e);return n.setUint8(t,255&r),n.setUint16(t+1,r>>8,!0),t+3}},t.INT24_BE={len:3,get:function(e,r){var n=t.UINT24_BE.get(e,r);return n>8388607?n-16777216:n},put:function(e,t,r){var n=p(e);return n.setUint16(t,r>>8),n.setUint8(t+2,255&r),t+3}},t.INT32_BE={len:4,get:function(e,t){return p(e).getInt32(t)},put:function(e,t,r){return p(e).setInt32(t,r),t+4}},t.INT32_LE={len:4,get:function(e,t){return p(e).getInt32(t,!0)},put:function(e,t,r){return p(e).setInt32(t,r,!0),t+4}},t.UINT64_LE={len:8,get:function(e,t){return p(e).getBigUint64(t,!0)},put:function(e,t,r){return p(e).setBigUint64(t,r,!0),t+8}},t.INT64_LE={len:8,get:function(e,t){return p(e).getBigInt64(t,!0)},put:function(e,t,r){return p(e).setBigInt64(t,r,!0),t+8}},t.UINT64_BE={len:8,get:function(e,t){return p(e).getBigUint64(t)},put:function(e,t,r){return p(e).setBigUint64(t,r),t+8}},t.INT64_BE={len:8,get:function(e,t){return p(e).getBigInt64(t)},put:function(e,t,r){return p(e).setBigInt64(t,r),t+8}},t.Float16_BE={len:2,get:function(e,t){return u.read(e,t,!1,10,this.len)},put:function(e,t,r){return u.write(e,r,t,!1,10,this.len),t+this.len}},t.Float16_LE={len:2,get:function(e,t){return u.read(e,t,!0,10,this.len)},put:function(e,t,r){return u.write(e,r,t,!0,10,this.len),t+this.len}},t.Float32_BE={len:4,get:function(e,t){return p(e).getFloat32(t)},put:function(e,t,r){return p(e).setFloat32(t,r),t+4}},t.Float32_LE={len:4,get:function(e,t){return p(e).getFloat32(t,!0)},put:function(e,t,r){return p(e).setFloat32(t,r,!0),t+4}},t.Float64_BE={len:8,get:function(e,t){return p(e).getFloat64(t)},put:function(e,t,r){return p(e).setFloat64(t,r),t+8}},t.Float64_LE={len:8,get:function(e,t){return p(e).getFloat64(t,!0)},put:function(e,t,r){return p(e).setFloat64(t,r,!0),t+8}},t.Float80_BE={len:10,get:function(e,t){return u.read(e,t,!1,63,this.len)},put:function(e,t,r){return u.write(e,r,t,!1,63,this.len),t+this.len}},t.Float80_LE={len:10,get:function(e,t){return u.read(e,t,!0,63,this.len)},put:function(e,t,r){return u.write(e,r,t,!0,63,this.len),t+this.len}};var l=function(){function e(t){i(this,e),this.len=t}return s(e,[{key:"get",value:function(e,t){}}]),e}();t.IgnoreType=l;var f=function(){function e(t){i(this,e),this.len=t}return s(e,[{key:"get",value:function(e,t){return e.subarray(t,t+this.len)}}]),e}();t.Uint8ArrayType=f;var d=function(){function e(t){i(this,e),this.len=t}return s(e,[{key:"get",value:function(e,t){return n.from(e.subarray(t,t+this.len))}}]),e}();t.BufferType=d;var m=function(){function e(t,r){i(this,e),this.len=t,this.encoding=r}return s(e,[{key:"get",value:function(e,t){return n.from(e).toString(this.encoding,t,t+this.len)}}]),e}();t.StringType=m;var h=function(){function e(t){i(this,e),this.len=t}return s(e,[{key:"get",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.decode(t,r,r+this.len)}}],[{key:"decode",value:function(t,r,n){for(var o="",i=r;i<n;++i)o+=e.codePointToString(e.singleByteDecoder(t[i]));return o}},{key:"inRange",value:function(e,t,r){return t<=e&&e<=r}},{key:"codePointToString",value:function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}},{key:"singleByteDecoder",value:function(t){if(e.inRange(t,0,127))return t;var r=e.windows1252[t-128];if(null===r)throw Error("invaliding encoding");return r}}]),e}();t.AnsiStringType=h,h.windows1252=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]},4940:e=>{e.exports=Math.abs},4974:(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(){o=function(){return t};var e,t={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",p=s.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:j(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var m="suspendedStart",h="suspendedYield",y="executing",g="completed",v={};function b(){}function _(){}function x(){}var w={};l(w,c,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(I([])));E&&E!==r&&i.call(E,c)&&(w=E);var S=x.prototype=b.prototype=Object.create(w);function F(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,a,s,c){var u=d(e[o],e,a);if("throw"!==u.type){var p=u.arg,l=p.value;return l&&"object"==n(l)&&i.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(l).then((function(e){p.value=e,s(p)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function j(t,r,n){var o=m;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=P(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var u=d(t,r,n);if("normal"===u.type){if(o=n.done?g:h,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=g,n.method="throw",n.arg=u.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function A(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function I(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(i.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return _.prototype=x,a(S,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:_,configurable:!0}),_.displayName=l(x,p,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,l(e,p,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},F(O.prototype),l(O.prototype,u,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},F(S),l(S,p,"Generator"),l(S,c,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=I,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){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 r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},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),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}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){var a=e.apply(t,r);function s(e){i(a,n,o,s,c,"next",e)}function c(e){i(a,n,o,s,c,"throw",e)}s(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,c(n.key),n)}}function c(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:String(t)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.BufferTokenizer=void 0;var l=r(1787),f=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(y,e);var t,r,i,c,f,d,m,h=(d=y,m=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(d);if(m){var r=p(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function y(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),(r=h.call(this,t)).uint8Array=e,r.fileInfo.size=r.fileInfo.size?r.fileInfo.size:e.length,r}return t=y,r=[{key:"readBuffer",value:(f=a(o().mark((function e(t,r){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r||!r.position){e.next=4;break}if(!(r.position<this.position)){e.next=3;break}throw new Error("`options.position` must be equal or greater than `tokenizer.position`");case 3:this.position=r.position;case 4:return e.next=6,this.peekBuffer(t,r);case 6:return n=e.sent,this.position+=n,e.abrupt("return",n);case 9:case"end":return e.stop()}}),e,this)}))),function(e,t){return f.apply(this,arguments)})},{key:"peekBuffer",value:(c=a(o().mark((function e(t,r){var n,i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.normalizeOptions(t,r),i=Math.min(this.uint8Array.length-n.position,n.length),n.mayBeLess||!(i<n.length)){e.next=6;break}throw new l.EndOfStreamError;case 6:return t.set(this.uint8Array.subarray(n.position,n.position+i),n.offset),e.abrupt("return",i);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})},{key:"close",value:(i=a(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return i.apply(this,arguments)})}],r&&s(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),y}(r(1090).AbstractTokenizer);t.BufferTokenizer=f},5049:e=>{var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},5118:e=>{e.exports=Function.prototype.call},5158:(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(){o=function(){return t};var e,t={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",p=s.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:j(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var m="suspendedStart",h="suspendedYield",y="executing",g="completed",v={};function b(){}function _(){}function x(){}var w={};l(w,c,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(I([])));E&&E!==r&&i.call(E,c)&&(w=E);var S=x.prototype=b.prototype=Object.create(w);function F(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,a,s,c){var u=d(e[o],e,a);if("throw"!==u.type){var p=u.arg,l=p.value;return l&&"object"==n(l)&&i.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(l).then((function(e){p.value=e,s(p)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function j(t,r,n){var o=m;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=P(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var u=d(t,r,n);if("normal"===u.type){if(o=n.done?g:h,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=g,n.method="throw",n.arg=u.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function A(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function I(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(i.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return _.prototype=x,a(S,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:_,configurable:!0}),_.displayName=l(x,p,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,l(e,p,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},F(O.prototype),l(O.prototype,u,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},F(S),l(S,p,"Generator"),l(S,c,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=I,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){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 r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},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),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}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){var a=e.apply(t,r);function s(e){i(a,n,o,s,c,"next",e)}function c(e){i(a,n,o,s,c,"throw",e)}s(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,c(n.key),n)}}function c(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:String(t)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.fromFile=t.FileTokenizer=void 0;var l=r(1090),f=r(1787),d=r(6665),m=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(g,e);var t,r,i,c,l,m,h,y=(m=g,h=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(m);if(h){var r=p(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function g(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),(r=y.call(this,t)).fd=e,r}return t=g,r=[{key:"readBuffer",value:(l=a(o().mark((function e(t,r){var n,i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.normalizeOptions(t,r),this.position=n.position,e.next=4,d.read(this.fd,t,n.offset,n.length,n.position);case 4:if(i=e.sent,this.position+=i.bytesRead,!(i.bytesRead<n.length)||r&&r.mayBeLess){e.next=8;break}throw new f.EndOfStreamError;case 8:return e.abrupt("return",i.bytesRead);case 9:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"peekBuffer",value:(c=a(o().mark((function e(t,r){var n,i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.normalizeOptions(t,r),e.next=3,d.read(this.fd,t,n.offset,n.length,n.position);case 3:if(i=e.sent,n.mayBeLess||!(i.bytesRead<n.length)){e.next=6;break}throw new f.EndOfStreamError;case 6:return e.abrupt("return",i.bytesRead);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})},{key:"close",value:(i=a(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",d.close(this.fd));case 1:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})}],r&&s(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),g}(l.AbstractTokenizer);function h(){return(h=a(o().mark((function e(t){var r,n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d.stat(t);case 2:if((r=e.sent).isFile){e.next=5;break}throw new Error("File not a file: ".concat(t));case 5:return e.next=7,d.open(t,"r");case 7:return n=e.sent,e.abrupt("return",new m(n,{path:t,size:r.size}));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.FileTokenizer=m,t.fromFile=function(e){return h.apply(this,arguments)}},5417:function(e,t,r){var n;function o(e){return o="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},o(e)}e=r.nmd(e),function(i){var a="object"==o(t)&&t&&!t.nodeType&&t,s="object"==o(e)&&e&&!e.nodeType&&e,c="object"==(void 0===r.g?"undefined":o(r.g))&&r.g;c.global!==c&&c.window!==c&&c.self!==c||(i=c);var u,p,l=2147483647,f=36,d=/^xn--/,m=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},g=Math.floor,v=String.fromCharCode;function b(e){throw new RangeError(y[e])}function _(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function x(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+_((e=e.replace(h,".")).split("."),t).join(".")}function w(e){for(var t,r,n=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(r=e.charCodeAt(o++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),o--):n.push(t);return n}function k(e){return _(e,(function(e){var t="";return e>65535&&(t+=v((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+v(e)})).join("")}function E(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function S(e,t,r){var n=0;for(e=r?g(e/700):e>>1,e+=g(e/t);e>455;n+=f)e=g(e/35);return g(n+36*e/(e+38))}function F(e){var t,r,n,o,i,a,s,c,u,p,d,m=[],h=e.length,y=0,v=128,_=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&b("not-basic"),m.push(e.charCodeAt(n));for(o=r>0?r+1:0;o<h;){for(i=y,a=1,s=f;o>=h&&b("invalid-input"),((c=(d=e.charCodeAt(o++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:f)>=f||c>g((l-y)/a))&&b("overflow"),y+=c*a,!(c<(u=s<=_?1:s>=_+26?26:s-_));s+=f)a>g(l/(p=f-u))&&b("overflow"),a*=p;_=S(y-i,t=m.length+1,0==i),g(y/t)>l-v&&b("overflow"),v+=g(y/t),y%=t,m.splice(y++,0,v)}return k(m)}function O(e){var t,r,n,o,i,a,s,c,u,p,d,m,h,y,_,x=[];for(m=(e=w(e)).length,t=128,r=0,i=72,a=0;a<m;++a)(d=e[a])<128&&x.push(v(d));for(n=o=x.length,o&&x.push("-");n<m;){for(s=l,a=0;a<m;++a)(d=e[a])>=t&&d<s&&(s=d);for(s-t>g((l-r)/(h=n+1))&&b("overflow"),r+=(s-t)*h,t=s,a=0;a<m;++a)if((d=e[a])<t&&++r>l&&b("overflow"),d==t){for(c=r,u=f;!(c<(p=u<=i?1:u>=i+26?26:u-i));u+=f)_=c-p,y=f-p,x.push(v(E(p+_%y,0))),c=g(_/y);x.push(v(E(c,0))),i=S(r,h,n==o),r=0,++n}++r,++t}return x.join("")}if(u={version:"1.4.1",ucs2:{decode:w,encode:k},decode:F,encode:O,toASCII:function(e){return x(e,(function(e){return m.test(e)?"xn--"+O(e):e}))},toUnicode:function(e){return x(e,(function(e){return d.test(e)?F(e.slice(4).toLowerCase()):e}))}},"object"==o(r.amdO)&&r.amdO)void 0===(n=function(){return u}.call(t,r,t,e))||(e.exports=n);else if(a&&s)if(e.exports==a)s.exports=u;else for(p in u)u.hasOwnProperty(p)&&(a[p]=u[p]);else i.punycode=u}(this)},5465:(e,t,r)=>{var n=r(2703);e.exports=Function.prototype.bind||n},5586:(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)}var o=r(1622),i=r(9302),a=r(8950);e.exports=o?function(e){return o(e)}:i?function(e){if(!e||"object"!==n(e)&&"function"!=typeof e)throw new TypeError("getProto: not an object");return i(e)}:a?function(e){return a(e)}:null},5605:(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)}var o=r(1837),i=r(1371);function a(e,t){this.id=e,this.ref=t}e.exports.S=function(e,t){function r(e,t){if(t&&"object"==n(t))if(t.$ref){var a=o.resolve(e,t.$ref);p[a]=p[a]?p[a]+1:0}else{var l=t.$id||t.id,f=l?o.resolve(e,l):e;if(f){if(f.indexOf("#")<0&&(f+="#"),u[f]){if(!i.deepCompareStrict(u[f],t))throw new Error("Schema <"+f+"> already exists with different definition");return u[f]}u[f]=t,"#"==f[f.length-1]&&(u[f.substring(0,f.length-1)]=t)}s(f+"/items",Array.isArray(t.items)?t.items:[t.items]),s(f+"/extends",Array.isArray(t.extends)?t.extends:[t.extends]),r(f+"/additionalItems",t.additionalItems),c(f+"/properties",t.properties),r(f+"/additionalProperties",t.additionalProperties),c(f+"/definitions",t.definitions),c(f+"/patternProperties",t.patternProperties),c(f+"/dependencies",t.dependencies),s(f+"/disallow",t.disallow),s(f+"/allOf",t.allOf),s(f+"/anyOf",t.anyOf),s(f+"/oneOf",t.oneOf),r(f+"/not",t.not)}}function s(e,t){if(Array.isArray(t))for(var n=0;n<t.length;n++)r(e+"/"+n,t[n])}function c(e,t){if(t&&"object"==n(t))for(var o in t)r(e+"/"+o,t[o])}var u={},p={};return r(e,t),new a(u,p)}},5759:e=>{e.exports=Object.getOwnPropertyDescriptor},5768:(e,t)=>{t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,i=s(e),a=i[0],c=i[1],u=new o(function(e,t,r){return 3*(t+r)/4-r}(0,a,c)),p=0,l=c>0?a-4:a;for(r=0;r<l;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[p++]=t>>16&255,u[p++]=t>>8&255,u[p++]=255&t;return 2===c&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[p++]=255&t),1===c&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[p++]=t>>8&255,u[p++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=16383,s=0,u=n-o;s<u;s+=a)i.push(c(e,s,s+a>u?u:s+a));return 1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=i[a],n[i.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,n){for(var o,i,a=[],s=t;s<n;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},5934:(e,t,r)=>{var n;r.d(t,{j:()=>n}),function(e){e.GET="GET",e.DELETE="DELETE",e.HEAD="HEAD",e.PURGE="PURGE",e.OPTIONS="OPTIONS",e.POST="POST",e.PUT="PUT",e.PATH="PATH"}(n||(n={}))},6076:e=>{e.exports=ReferenceError},6114:e=>{e.exports=Math.pow},6234:(e,t,r)=>{var n=r(1371),o=n.ValidatorResult,i=n.SchemaError,a={ignoreProperties:{id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0}},s=a.validators={};function c(e,t,r,n,o){var i=t.throwError,a=t.throwAll;t.throwError=!1,t.throwAll=!1;var s=this.validateSchema(e,o,t,r);return t.throwError=i,t.throwAll=a,!s.valid&&n instanceof Function&&n(s),s.valid}function u(e,t){if(Object.hasOwnProperty.call(e,t))return e[t];if(t in e)for(;e=Object.getPrototypeOf(e);)if(Object.propertyIsEnumerable.call(e,t))return e[t]}function p(e,t,r,n,o,i){if(this.types.object(e)&&(!t.properties||void 0===t.properties[o]))if(!1===t.additionalProperties)i.addError({name:"additionalProperties",argument:o,message:"is not allowed to have the additional property "+JSON.stringify(o)});else{var a=t.additionalProperties||{};"function"==typeof r.preValidateProperty&&r.preValidateProperty(e,o,a,r,n);var s=this.validateSchema(e[o],a,r,n.makeChild(a,o));s.instance!==i.instance[o]&&(i.instance[o]=s.instance),i.importErrors(s)}}s.type=function(e,t,r,n){if(void 0===e)return null;var i=new o(e,t,r,n),a=Array.isArray(t.type)?t.type:[t.type];if(!a.some(this.testType.bind(this,e,t,r,n))){var s=a.map((function(e){if(e){var t=e.$id||e.id;return t?"<"+t+">":e+""}}));i.addError({name:"type",argument:s,message:"is not of a type(s) "+s})}return i},s.anyOf=function(e,t,r,n){if(void 0===e)return null;var a=new o(e,t,r,n),s=new o(e,t,r,n);if(!Array.isArray(t.anyOf))throw new i("anyOf must be an array");if(!t.anyOf.some(c.bind(this,e,r,n,(function(e){s.importErrors(e)})))){var u=t.anyOf.map((function(e,t){var r=e.$id||e.id;return r?"<"+r+">":e.title&&JSON.stringify(e.title)||e.$ref&&"<"+e.$ref+">"||"[subschema "+t+"]"}));r.nestedErrors&&a.importErrors(s),a.addError({name:"anyOf",argument:u,message:"is not any of "+u.join(",")})}return a},s.allOf=function(e,t,r,n){if(void 0===e)return null;if(!Array.isArray(t.allOf))throw new i("allOf must be an array");var a=new o(e,t,r,n),s=this;return t.allOf.forEach((function(t,o){var i=s.validateSchema(e,t,r,n);if(!i.valid){var c=t.$id||t.id||t.title&&JSON.stringify(t.title)||t.$ref&&"<"+t.$ref+">"||"[subschema "+o+"]";a.addError({name:"allOf",argument:{id:c,length:i.errors.length,valid:i},message:"does not match allOf schema "+c+" with "+i.errors.length+" error[s]:"}),a.importErrors(i)}})),a},s.oneOf=function(e,t,r,n){if(void 0===e)return null;if(!Array.isArray(t.oneOf))throw new i("oneOf must be an array");var a=new o(e,t,r,n),s=new o(e,t,r,n),u=t.oneOf.filter(c.bind(this,e,r,n,(function(e){s.importErrors(e)}))).length,p=t.oneOf.map((function(e,t){return e.$id||e.id||e.title&&JSON.stringify(e.title)||e.$ref&&"<"+e.$ref+">"||"[subschema "+t+"]"}));return 1!==u&&(r.nestedErrors&&a.importErrors(s),a.addError({name:"oneOf",argument:p,message:"is not exactly one from "+p.join(",")})),a},s.if=function(e,t,r,i){if(void 0===e)return null;if(!n.isSchema(t.if))throw new Error('Expected "if" keyword to be a schema');var a,s=c.call(this,e,r,i,null,t.if),u=new o(e,t,r,i);if(s){if(void 0===t.then)return;if(!n.isSchema(t.then))throw new Error('Expected "then" keyword to be a schema');a=this.validateSchema(e,t.then,r,i.makeChild(t.then)),u.importErrors(a)}else{if(void 0===t.else)return;if(!n.isSchema(t.else))throw new Error('Expected "else" keyword to be a schema');a=this.validateSchema(e,t.else,r,i.makeChild(t.else)),u.importErrors(a)}return u},s.propertyNames=function(e,t,r,a){if(this.types.object(e)){var s=new o(e,t,r,a),c=void 0!==t.propertyNames?t.propertyNames:{};if(!n.isSchema(c))throw new i('Expected "propertyNames" to be a schema (object or boolean)');for(var p in e)if(void 0!==u(e,p)){var l=this.validateSchema(p,c,r,a.makeChild(c));s.importErrors(l)}return s}},s.properties=function(e,t,r,n){if(this.types.object(e)){var a=new o(e,t,r,n),s=t.properties||{};for(var c in s){var p=s[c];if(void 0!==p){if(null===p)throw new i('Unexpected null, expected schema in "properties"');"function"==typeof r.preValidateProperty&&r.preValidateProperty(e,c,p,r,n);var l=u(e,c),f=this.validateSchema(l,p,r,n.makeChild(p,c));f.instance!==a.instance[c]&&(a.instance[c]=f.instance),a.importErrors(f)}}return a}},s.patternProperties=function(e,t,r,n){if(this.types.object(e)){var a=new o(e,t,r,n),s=t.patternProperties||{};for(var c in e){var u=!0;for(var l in s){var f=s[l];if(void 0!==f){if(null===f)throw new i('Unexpected null, expected schema in "patternProperties"');try{var d=new RegExp(l,"u")}catch(e){d=new RegExp(l)}if(d.test(c)){u=!1,"function"==typeof r.preValidateProperty&&r.preValidateProperty(e,c,f,r,n);var m=this.validateSchema(e[c],f,r,n.makeChild(f,c));m.instance!==a.instance[c]&&(a.instance[c]=m.instance),a.importErrors(m)}}}u&&p.call(this,e,t,r,n,c,a)}return a}},s.additionalProperties=function(e,t,r,n){if(this.types.object(e)){if(t.patternProperties)return null;var i=new o(e,t,r,n);for(var a in e)p.call(this,e,t,r,n,a,i);return i}},s.minProperties=function(e,t,r,n){if(this.types.object(e)){var i=new o(e,t,r,n);return Object.keys(e).length>=t.minProperties||i.addError({name:"minProperties",argument:t.minProperties,message:"does not meet minimum property length of "+t.minProperties}),i}},s.maxProperties=function(e,t,r,n){if(this.types.object(e)){var i=new o(e,t,r,n);return Object.keys(e).length<=t.maxProperties||i.addError({name:"maxProperties",argument:t.maxProperties,message:"does not meet maximum property length of "+t.maxProperties}),i}},s.items=function(e,t,r,n){var i=this;if(this.types.array(e)&&void 0!==t.items){var a=new o(e,t,r,n);return e.every((function(e,o){if(Array.isArray(t.items))var s=void 0===t.items[o]?t.additionalItems:t.items[o];else s=t.items;if(void 0===s)return!0;if(!1===s)return a.addError({name:"items",message:"additionalItems not permitted"}),!1;var c=i.validateSchema(e,s,r,n.makeChild(s,o));return c.instance!==a.instance[o]&&(a.instance[o]=c.instance),a.importErrors(c),!0})),a}},s.contains=function(e,t,r,i){var a=this;if(this.types.array(e)&&void 0!==t.contains){if(!n.isSchema(t.contains))throw new Error('Expected "contains" keyword to be a schema');var s=new o(e,t,r,i);return!1===e.some((function(e,n){return 0===a.validateSchema(e,t.contains,r,i.makeChild(t.contains,n)).errors.length}))&&s.addError({name:"contains",argument:t.contains,message:"must contain an item matching given schema"}),s}},s.minimum=function(e,t,r,n){if(this.types.number(e)){var i=new o(e,t,r,n);return t.exclusiveMinimum&&!0===t.exclusiveMinimum?e>t.minimum||i.addError({name:"minimum",argument:t.minimum,message:"must be greater than "+t.minimum}):e>=t.minimum||i.addError({name:"minimum",argument:t.minimum,message:"must be greater than or equal to "+t.minimum}),i}},s.maximum=function(e,t,r,n){if(this.types.number(e)){var i=new o(e,t,r,n);return t.exclusiveMaximum&&!0===t.exclusiveMaximum?e<t.maximum||i.addError({name:"maximum",argument:t.maximum,message:"must be less than "+t.maximum}):e<=t.maximum||i.addError({name:"maximum",argument:t.maximum,message:"must be less than or equal to "+t.maximum}),i}},s.exclusiveMinimum=function(e,t,r,n){if("boolean"!=typeof t.exclusiveMinimum&&this.types.number(e)){var i=new o(e,t,r,n);return e>t.exclusiveMinimum||i.addError({name:"exclusiveMinimum",argument:t.exclusiveMinimum,message:"must be strictly greater than "+t.exclusiveMinimum}),i}},s.exclusiveMaximum=function(e,t,r,n){if("boolean"!=typeof t.exclusiveMaximum&&this.types.number(e)){var i=new o(e,t,r,n);return e<t.exclusiveMaximum||i.addError({name:"exclusiveMaximum",argument:t.exclusiveMaximum,message:"must be strictly less than "+t.exclusiveMaximum}),i}};var l=function(e,t,r,a,s,c){if(this.types.number(e)){var u=t[s];if(0==u)throw new i(s+" cannot be zero");var p=new o(e,t,r,a),l=n.getDecimalPlaces(e),f=n.getDecimalPlaces(u),d=Math.max(l,f),m=Math.pow(10,d);return Math.round(e*m)%Math.round(u*m)!=0&&p.addError({name:s,argument:u,message:c+JSON.stringify(u)}),p}};function f(e,t,r){var o,i=r.length;for(o=t+1;o<i;o++)if(n.deepCompareStrict(e,r[o]))return!1;return!0}s.multipleOf=function(e,t,r,n){return l.call(this,e,t,r,n,"multipleOf","is not a multiple of (divisible by) ")},s.divisibleBy=function(e,t,r,n){return l.call(this,e,t,r,n,"divisibleBy","is not divisible by (multiple of) ")},s.required=function(e,t,r,n){var i=new o(e,t,r,n);return void 0===e&&!0===t.required?i.addError({name:"required",message:"is required"}):this.types.object(e)&&Array.isArray(t.required)&&t.required.forEach((function(t){void 0===u(e,t)&&i.addError({name:"required",argument:t,message:"requires property "+JSON.stringify(t)})})),i},s.pattern=function(e,t,r,n){if(this.types.string(e)){var i=new o(e,t,r,n),a=t.pattern;try{var s=new RegExp(a,"u")}catch(e){s=new RegExp(a)}return e.match(s)||i.addError({name:"pattern",argument:t.pattern,message:"does not match pattern "+JSON.stringify(t.pattern.toString())}),i}},s.format=function(e,t,r,i){if(void 0!==e){var a=new o(e,t,r,i);return a.disableFormat||n.isFormat(e,t.format,this)||a.addError({name:"format",argument:t.format,message:"does not conform to the "+JSON.stringify(t.format)+" format"}),a}},s.minLength=function(e,t,r,n){if(this.types.string(e)){var i=new o(e,t,r,n),a=e.match(/[\uDC00-\uDFFF]/g);return e.length-(a?a.length:0)>=t.minLength||i.addError({name:"minLength",argument:t.minLength,message:"does not meet minimum length of "+t.minLength}),i}},s.maxLength=function(e,t,r,n){if(this.types.string(e)){var i=new o(e,t,r,n),a=e.match(/[\uDC00-\uDFFF]/g);return e.length-(a?a.length:0)<=t.maxLength||i.addError({name:"maxLength",argument:t.maxLength,message:"does not meet maximum length of "+t.maxLength}),i}},s.minItems=function(e,t,r,n){if(this.types.array(e)){var i=new o(e,t,r,n);return e.length>=t.minItems||i.addError({name:"minItems",argument:t.minItems,message:"does not meet minimum length of "+t.minItems}),i}},s.maxItems=function(e,t,r,n){if(this.types.array(e)){var i=new o(e,t,r,n);return e.length<=t.maxItems||i.addError({name:"maxItems",argument:t.maxItems,message:"does not meet maximum length of "+t.maxItems}),i}},s.uniqueItems=function(e,t,r,n){if(!0===t.uniqueItems&&this.types.array(e)){var i=new o(e,t,r,n);return e.every(f)||i.addError({name:"uniqueItems",message:"contains duplicate item"}),i}},s.dependencies=function(e,t,r,n){if(this.types.object(e)){var i=new o(e,t,r,n);for(var a in t.dependencies)if(void 0!==e[a]){var s=t.dependencies[a],c=n.makeChild(s,a);if("string"==typeof s&&(s=[s]),Array.isArray(s))s.forEach((function(t){void 0===e[t]&&i.addError({name:"dependencies",argument:c.propertyPath,message:"property "+t+" not found, required by "+c.propertyPath})}));else{var u=this.validateSchema(e,s,r,c);i.instance!==u.instance&&(i.instance=u.instance),u&&u.errors.length&&(i.addError({name:"dependencies",argument:c.propertyPath,message:"does not meet dependency required by "+c.propertyPath}),i.importErrors(u))}}return i}},s.enum=function(e,t,r,a){if(void 0===e)return null;if(!Array.isArray(t.enum))throw new i("enum expects an array",t);var s=new o(e,t,r,a);return t.enum.some(n.deepCompareStrict.bind(null,e))||s.addError({name:"enum",argument:t.enum,message:"is not one of enum values: "+t.enum.map(String).join(",")}),s},s.const=function(e,t,r,i){if(void 0===e)return null;var a=new o(e,t,r,i);return n.deepCompareStrict(t.const,e)||a.addError({name:"const",argument:t.const,message:"does not exactly match expected constant: "+t.const}),a},s.not=s.disallow=function(e,t,r,n){var i=this;if(void 0===e)return null;var a=new o(e,t,r,n),s=t.not||t.disallow;return s?(Array.isArray(s)||(s=[s]),s.forEach((function(o){if(i.testType(e,t,r,n,o)){var s=o&&(o.$id||o.id)||o;a.addError({name:"not",argument:s,message:"is of prohibited type "+s})}})),a):null},e.exports=a},6273:(e,t)=>{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},r(e)}function n(e){var t="function"==typeof Map?new Map:void 0;return n=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return o(e,arguments,s(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),a(r,e)},n(e)}function o(e,t,r){return o=i()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&a(o,r.prototype),o},o.apply(null,arguments)}function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.EndOfStreamError=t.defaultMessages=void 0,t.defaultMessages="End-Of-Stream";var c=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(p,e);var n,o,c,u=(o=p,c=i(),function(){var e,t=s(o);if(c){var n=s(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),u.call(this,t.defaultMessages)}return n=p,Object.defineProperty(n,"prototype",{writable:!1}),n}(n(Error));t.EndOfStreamError=c},6274:e=>{var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new o(n,i||e,a),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,o,i,a){var s=r?r+e:e;if(!this._events[s])return!1;var c,u,p=this._events[s],l=arguments.length;if(p.fn){switch(p.once&&this.removeListener(e,p.fn,void 0,!0),l){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,t),!0;case 3:return p.fn.call(p.context,t,n),!0;case 4:return p.fn.call(p.context,t,n,o),!0;case 5:return p.fn.call(p.context,t,n,o,i),!0;case 6:return p.fn.call(p.context,t,n,o,i,a),!0}for(u=1,c=new Array(l-1);u<l;u++)c[u-1]=arguments[u];p.fn.apply(p.context,c)}else{var f,d=p.length;for(u=0;u<d;u++)switch(p[u].once&&this.removeListener(e,p[u].fn,void 0,!0),l){case 1:p[u].fn.call(p[u].context);break;case 2:p[u].fn.call(p[u].context,t);break;case 3:p[u].fn.call(p[u].context,t,n);break;case 4:p[u].fn.call(p[u].context,t,n,o);break;default:if(!c)for(f=1,c=new Array(l-1);f<l;f++)c[f-1]=arguments[f];p[u].fn.apply(p[u].context,c)}}return!0},s.prototype.on=function(e,t,r){return i(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,o){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||n&&s.context!==n||a(this,i);else{for(var c=0,u=[],p=s.length;c<p;c++)(s[c].fn!==t||o&&!s[c].once||n&&s[c].context!==n)&&u.push(s[c]);u.length?this._events[i]=1===u.length?u[0]:u:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s},6402:(e,t,r)=>{var n=r(1953),o=r(8657),i=r(2629),a=r(3221),s=r(3441)||a||i;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+o(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=s()),e.set(t,r)}};return t}},6665:(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(){o=function(){return t};var e,t={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",p=s.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:j(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var m="suspendedStart",h="suspendedYield",y="executing",g="completed",v={};function b(){}function _(){}function x(){}var w={};l(w,c,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(I([])));E&&E!==r&&i.call(E,c)&&(w=E);var S=x.prototype=b.prototype=Object.create(w);function F(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,a,s,c){var u=d(e[o],e,a);if("throw"!==u.type){var p=u.arg,l=p.value;return l&&"object"==n(l)&&i.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(l).then((function(e){p.value=e,s(p)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function j(t,r,n){var o=m;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=P(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var u=d(t,r,n);if("normal"===u.type){if(o=n.done?g:h,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=g,n.method="throw",n.arg=u.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function A(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function I(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(i.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return _.prototype=x,a(S,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:_,configurable:!0}),_.displayName=l(x,p,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,l(e,p,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},F(O.prototype),l(O.prototype,u,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},F(S),l(S,p,"Generator"),l(S,c,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=I,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){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 r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},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),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}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){var a=e.apply(t,r);function s(e){i(a,n,o,s,c,"next",e)}function c(e){i(a,n,o,s,c,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}),t.readFile=t.writeFileSync=t.writeFile=t.read=t.open=t.close=t.stat=t.createReadStream=t.pathExists=void 0;var s=r(4428);function c(){return(c=a(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){s.stat(t,(function(t,n){t?r(t):e(n)}))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function u(){return(u=a(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){s.close(t,(function(t){t?r(t):e()}))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(){return(p=a(o().mark((function e(t,r){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){s.open(t,r,(function(t,r){t?n(t):e(r)}))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function l(){return(l=a(o().mark((function e(t,r,n,i,a){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,o){s.read(t,r,n,i,a,(function(t,r,n){t?o(t):e({bytesRead:r,buffer:n})}))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(){return(f=a(o().mark((function e(t,r){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){s.writeFile(t,r,(function(t){t?n(t):e()}))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function d(){return(d=a(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){s.readFile(t,(function(t,n){t?r(t):e(n)}))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.pathExists=s.existsSync,t.createReadStream=s.createReadStream,t.stat=function(e){return c.apply(this,arguments)},t.close=function(e){return u.apply(this,arguments)},t.open=function(e,t){return p.apply(this,arguments)},t.read=function(e,t,r,n,o){return l.apply(this,arguments)},t.writeFile=function(e,t){return f.apply(this,arguments)},t.writeFileSync=function(e,t){s.writeFileSync(e,t)},t.readFile=function(e){return d.apply(this,arguments)}},6681:e=>{e.exports=Number.isNaN||function(e){return e!=e}},6773:(e,t)=>{t.read=function(e,t,r,n,o){var i,a,s=8*o-n-1,c=(1<<s)-1,u=c>>1,p=-7,l=r?o-1:0,f=r?-1:1,d=e[t+l];for(l+=f,i=d&(1<<-p)-1,d>>=-p,p+=s;p>0;i=256*i+e[t+l],l+=f,p-=8);for(a=i&(1<<-p)-1,i>>=-p,p+=n;p>0;a=256*a+e[t+l],l+=f,p-=8);if(0===i)i=1-u;else{if(i===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),i-=u}return(d?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,s,c,u=8*i-o-1,p=(1<<u)-1,l=p>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:i-1,m=n?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=p):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+l>=1?f/c:f*Math.pow(2,1-l))*c>=2&&(a++,c/=2),a+l>=p?(s=0,a=p):a+l>=1?(s=(t*c-1)*Math.pow(2,o),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,o),a=0));o>=8;e[r+d]=255&s,d+=m,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;e[r+d]=255&a,d+=m,a/=256,u-=8);e[r+d-m]|=128*h}},6854:(e,t,r)=>{r.d(t,{S:()=>a});var n=r(9653),o=r(1227),i=r.n(o)()("fs:request:shouldRetry"),a=function(e){switch(i("Checking error for retry. Code: %n, type: %s",e.response?e.response.status:"Malformed response",e.code),e.code){case n.E.NETWORK:case n.E.SERVER:case n.E.TIMEOUT:return!0;case n.E.ABORTED:return!1}return!!e.response&&500<=e.response.status&&e.response.status<=599}},6889:(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)}var o=r(6402),i=r(4509),a=r(9292),s=Object.prototype.hasOwnProperty,c={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,p=Array.prototype.push,l=function(e,t){p.apply(e,u(t)?t:[t])},f=Date.prototype.toISOString,d=a.default,m={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:a.formatters[d],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},h={},y=function e(t,r,a,s,c,p,f,d,y,g,v,b,_,x,w,k,E,S){for(var F=t,O=S,j=0,P=!1;void 0!==(O=O.get(h))&&!P;){var A=O.get(t);if(j+=1,void 0!==A){if(A===j)throw new RangeError("Cyclic object value");P=!0}void 0===O.get(h)&&(j=0)}if("function"==typeof g?F=g(r,F):F instanceof Date?F=_(F):"comma"===a&&u(F)&&(F=i.maybeMap(F,(function(e){return e instanceof Date?_(e):e}))),null===F){if(p)return y&&!k?y(r,m.encoder,E,"key",x):r;F=""}if(function(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"===n(e)||"bigint"==typeof e}(F)||i.isBuffer(F))return y?[w(k?r:y(r,m.encoder,E,"key",x))+"="+w(y(F,m.encoder,E,"value",x))]:[w(r)+"="+w(String(F))];var T,C=[];if(void 0===F)return C;if("comma"===a&&u(F))k&&y&&(F=i.maybeMap(F,y)),T=[{value:F.length>0?F.join(",")||null:void 0}];else if(u(g))T=g;else{var I=Object.keys(F);T=v?I.sort(v):I}var D=d?String(r).replace(/\./g,"%2E"):String(r),L=s&&u(F)&&1===F.length?D+"[]":D;if(c&&u(F)&&0===F.length)return L+"[]";for(var B=0;B<T.length;++B){var R=T[B],N="object"===n(R)&&R&&void 0!==R.value?R.value:F[R];if(!f||null!==N){var M=b&&d?String(R).replace(/\./g,"%2E"):String(R),z=u(F)?"function"==typeof a?a(L,M):L:L+(b?"."+M:"["+M+"]");S.set(t,j);var U=o();U.set(h,S),l(C,e(N,z,a,s,c,p,f,d,"comma"===a&&k&&u(F)?null:y,g,v,b,_,x,w,k,E,U))}}return C};e.exports=function(e,t){var r,i=e,p=function(e){if(!e)return m;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||m.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=a.default;if(void 0!==e.format){if(!s.call(a.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n,o=a.formatters[r],i=m.filter;if(("function"==typeof e.filter||u(e.filter))&&(i=e.filter),n=e.arrayFormat in c?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":m.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var p=void 0===e.allowDots?!0===e.encodeDotInKeys||m.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:m.addQueryPrefix,allowDots:p,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:m.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:m.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?m.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:m.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:m.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:m.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:m.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:m.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:m.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:m.strictNullHandling}}(t);"function"==typeof p.filter?i=(0,p.filter)("",i):u(p.filter)&&(r=p.filter);var f=[];if("object"!==n(i)||null===i)return"";var d=c[p.arrayFormat],h="comma"===d&&p.commaRoundTrip;r||(r=Object.keys(i)),p.sort&&r.sort(p.sort);for(var g=o(),v=0;v<r.length;++v){var b=r[v],_=i[b];p.skipNulls&&null===_||l(f,y(_,b,d,h,p.allowEmptyArrays,p.strictNullHandling,p.skipNulls,p.encodeDotInKeys,p.encode?p.encoder:null,p.filter,p.sort,p.allowDots,p.serializeDate,p.format,p.formatter,p.encodeValuesOnly,p.charset,g))}var x=f.join(p.delimiter),w=!0===p.addQueryPrefix?"?":"";return p.charsetSentinel&&("iso-8859-1"===p.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),x.length>0?w+x:""}},7047:e=>{e.exports=URIError},7052:e=>{e.exports=Function.prototype.apply},7548:e=>{e.exports=Math.round},8299:(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)}var o,i=r(9142),a=r(157),s=r(15),c=r(2104),u=r(6076),p=r(1226),l=r(1953),f=r(7047),d=r(4940),m=r(4218),h=r(9406),y=r(8624),g=r(6114),v=r(7548),b=r(9063),_=Function,x=function(e){try{return _('"use strict"; return ('+e+").constructor;")()}catch(e){}},w=r(3581),k=r(5049),E=function(){throw new l},S=w?function(){try{return E}catch(e){try{return w(arguments,"callee").get}catch(e){return E}}}():E,F=r(377)(),O=r(5586),j=r(9302),P=r(1622),A=r(7052),T=r(5118),C={},I="undefined"!=typeof Uint8Array&&O?O(Uint8Array):o,D={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":F&&O?O([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":C,"%AsyncGenerator%":C,"%AsyncGeneratorFunction%":C,"%AsyncIteratorPrototype%":C,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":s,"%Float16Array%":"undefined"==typeof Float16Array?o:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":_,"%GeneratorFunction%":C,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":F&&O?O(O([][Symbol.iterator]())):o,"%JSON%":"object"===("undefined"==typeof JSON?"undefined":n(JSON))?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&F&&O?O((new Map)[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":c,"%ReferenceError%":u,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&F&&O?O((new Set)[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":F&&O?O(""[Symbol.iterator]()):o,"%Symbol%":F?Symbol:o,"%SyntaxError%":p,"%ThrowTypeError%":S,"%TypedArray%":I,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet,"%Function.prototype.call%":T,"%Function.prototype.apply%":A,"%Object.defineProperty%":k,"%Object.getPrototypeOf%":j,"%Math.abs%":d,"%Math.floor%":m,"%Math.max%":h,"%Math.min%":y,"%Math.pow%":g,"%Math.round%":v,"%Math.sign%":b,"%Reflect.getPrototypeOf%":P};if(O)try{null.error}catch(e){var L=O(O(e));D["%Error.prototype%"]=L}var B=function e(t){var r;if("%AsyncFunction%"===t)r=x("async function () {}");else if("%GeneratorFunction%"===t)r=x("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=x("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&O&&(r=O(o.prototype))}return D[t]=r,r},R={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},N=r(5465),M=r(863),z=N.call(T,Array.prototype.concat),U=N.call(A,Array.prototype.splice),q=N.call(T,String.prototype.replace),$=N.call(T,String.prototype.slice),V=N.call(T,RegExp.prototype.exec),G=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,Z=function(e,t){var r,n=e;if(M(R,n)&&(n="%"+(r=R[n])[0]+"%"),M(D,n)){var o=D[n];if(o===C&&(o=B(n)),void 0===o&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new p("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===V(/^%?[^%]*%?$/,e))throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=$(e,0,1),r=$(e,-1);if("%"===t&&"%"!==r)throw new p("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new p("invalid intrinsic syntax, expected opening `%`");var n=[];return q(e,G,(function(e,t,r,o){n[n.length]=r?q(o,H,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=Z("%"+n+"%",t),i=o.name,a=o.value,s=!1,c=o.alias;c&&(n=c[0],U(r,z([0,1],c)));for(var u=1,f=!0;u<r.length;u+=1){var d=r[u],m=$(d,0,1),h=$(d,-1);if(('"'===m||"'"===m||"`"===m||'"'===h||"'"===h||"`"===h)&&m!==h)throw new p("property names with quotes must have matching quotes");if("constructor"!==d&&f||(s=!0),M(D,i="%"+(n+="."+d)+"%"))a=D[i];else if(null!=a){if(!(d in a)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(w&&u+1>=r.length){var y=w(a,d);a=(f=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[d]}else f=M(a,d),a=a[d];f&&!s&&(D[i]=a)}}return a}},8624:e=>{e.exports=Math.min},8630:(e,t,r)=>{function n(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e)||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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}e.exports=function(e){function t(e){var r,n,i,a=null;function s(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];if(s.enabled){var i=s,a=Number(new Date),c=a-(r||a);i.diff=c,i.prev=r,i.curr=a,r=a,n[0]=t.coerce(n[0]),"string"!=typeof n[0]&&n.unshift("%O");var u=0;n[0]=n[0].replace(/%([a-zA-Z%])/g,(function(e,r){if("%%"===e)return"%";u++;var o=t.formatters[r];if("function"==typeof o){var a=n[u];e=o.call(i,a),n.splice(u,1),u--}return e})),t.formatArgs.call(i,n),(i.log||t.log).apply(i,n)}}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=o,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:function(){return null!==a?a:(n!==t.namespaces&&(n=t.namespaces,i=t.enabled(e)),i)},set:function(e){a=e}}),"function"==typeof t.init&&t.init(s),s}function o(e,r){var n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){var e=[].concat(n(t.names.map(i)),n(t.skips.map(i).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),o=n.length;for(r=0;r<o;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;var r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(9527),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((function(r){t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var r=0,n=0;n<e.length;n++)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},8657:(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)}var o="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=o&&i&&"function"==typeof i.get?i.get:null,s=o&&Map.prototype.forEach,c="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,p=c&&u&&"function"==typeof u.get?u.get:null,l=c&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,m="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,y=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,b=String.prototype.slice,_=String.prototype.replace,x=String.prototype.toUpperCase,w=String.prototype.toLowerCase,k=RegExp.prototype.test,E=Array.prototype.concat,S=Array.prototype.join,F=Array.prototype.slice,O=Math.floor,j="function"==typeof BigInt?BigInt.prototype.valueOf:null,P=Object.getOwnPropertySymbols,A="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?Symbol.prototype.toString:null,T="function"==typeof Symbol&&"object"===n(Symbol.iterator),C="function"==typeof Symbol&&Symbol.toStringTag&&(n(Symbol.toStringTag),1)?Symbol.toStringTag:null,I=Object.prototype.propertyIsEnumerable,D=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function L(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||k.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-O(-e):O(e);if(n!==e){var o=String(n),i=b.call(t,o.length+1);return _.call(o,r,"$&_")+"."+_.call(_.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(t,r,"$&_")}var B=r(2634),R=B.custom,N=H(R)?R:null,M={__proto__:null,double:'"',single:"'"},z={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function U(e,t,r){var n=r.quoteStyle||t,o=M[n];return o+e+o}function q(e){return _.call(String(e),/"/g,"&quot;")}function $(e){return!C||!("object"===n(e)&&(C in e||void 0!==e[C]))}function V(e){return"[object Array]"===W(e)&&$(e)}function G(e){return"[object RegExp]"===W(e)&&$(e)}function H(e){if(T)return e&&"object"===n(e)&&e instanceof Symbol;if("symbol"===n(e))return!0;if(!e||"object"!==n(e)||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}e.exports=function e(t,o,i,c){var u=o||{};if(K(u,"quoteStyle")&&!K(M,u.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(K(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var y=!K(u,"customInspect")||u.customInspect;if("boolean"!=typeof y&&"symbol"!==y)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(K(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(K(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var x=u.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Q(t,u);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var k=String(t);return x?L(t,k):k}if("bigint"==typeof t){var O=String(t)+"n";return x?L(t,O):O}var P=void 0===u.depth?5:u.depth;if(void 0===i&&(i=0),i>=P&&P>0&&"object"===n(t))return V(t)?"[Array]":"[Object]";var R,z=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=S.call(Array(e.indent+1)," ")}return{base:r,prev:S.call(Array(t+1),r)}}(u,i);if(void 0===c)c=[];else if(Y(c,t)>=0)return"[Circular]";function Z(t,r,n){if(r&&(c=F.call(c)).push(r),n){var o={depth:u.depth};return K(u,"quoteStyle")&&(o.quoteStyle=u.quoteStyle),e(t,o,i+1,c)}return e(t,u,i+1,c)}if("function"==typeof t&&!G(t)){var J=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),oe=ne(t,Z);return"[Function"+(J?": "+J:" (anonymous)")+"]"+(oe.length>0?" { "+S.call(oe,", ")+" }":"")}if(H(t)){var ie=T?_.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):A.call(t);return"object"!==n(t)||T?ie:X(ie)}if((R=t)&&"object"===n(R)&&("undefined"!=typeof HTMLElement&&R instanceof HTMLElement||"string"==typeof R.nodeName&&"function"==typeof R.getAttribute)){for(var ae="<"+w.call(String(t.nodeName)),se=t.attributes||[],ce=0;ce<se.length;ce++)ae+=" "+se[ce].name+"="+U(q(se[ce].value),"double",u);return ae+=">",t.childNodes&&t.childNodes.length&&(ae+="..."),ae+"</"+w.call(String(t.nodeName))+">"}if(V(t)){if(0===t.length)return"[]";var ue=ne(t,Z);return z&&!function(e){for(var t=0;t<e.length;t++)if(Y(e[t],"\n")>=0)return!1;return!0}(ue)?"["+re(ue,z)+"]":"[ "+S.call(ue,", ")+" ]"}if(function(e){return"[object Error]"===W(e)&&$(e)}(t)){var pe=ne(t,Z);return"cause"in Error.prototype||!("cause"in t)||I.call(t,"cause")?0===pe.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(pe,", ")+" }":"{ ["+String(t)+"] "+S.call(E.call("[cause]: "+Z(t.cause),pe),", ")+" }"}if("object"===n(t)&&y){if(N&&"function"==typeof t[N]&&B)return B(t,{depth:P-i});if("symbol"!==y&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!==n(e))return!1;try{a.call(e);try{p.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var le=[];return s&&s.call(t,(function(e,r){le.push(Z(r,t,!0)+" => "+Z(e,t))})),te("Map",a.call(t),le,z)}if(function(e){if(!p||!e||"object"!==n(e))return!1;try{p.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var fe=[];return l&&l.call(t,(function(e){fe.push(Z(e,t))})),te("Set",p.call(t),fe,z)}if(function(e){if(!f||!e||"object"!==n(e))return!1;try{f.call(e,f);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return ee("WeakMap");if(function(e){if(!d||!e||"object"!==n(e))return!1;try{d.call(e,d);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return ee("WeakSet");if(function(e){if(!m||!e||"object"!==n(e))return!1;try{return m.call(e),!0}catch(e){}return!1}(t))return ee("WeakRef");if(function(e){return"[object Number]"===W(e)&&$(e)}(t))return X(Z(Number(t)));if(function(e){if(!e||"object"!==n(e)||!j)return!1;try{return j.call(e),!0}catch(e){}return!1}(t))return X(Z(j.call(t)));if(function(e){return"[object Boolean]"===W(e)&&$(e)}(t))return X(h.call(t));if(function(e){return"[object String]"===W(e)&&$(e)}(t))return X(Z(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===W(e)&&$(e)}(t)&&!G(t)){var de=ne(t,Z),me=D?D(t)===Object.prototype:t instanceof Object||t.constructor===Object,he=t instanceof Object?"":"null prototype",ye=!me&&C&&Object(t)===t&&C in t?b.call(W(t),8,-1):he?"Object":"",ge=(me||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ye||he?"["+S.call(E.call([],ye||[],he||[]),": ")+"] ":"");return 0===de.length?ge+"{}":z?ge+"{"+re(de,z)+"}":ge+"{ "+S.call(de,", ")+" }"}return String(t)};var Z=Object.prototype.hasOwnProperty||function(e){return e in this};function K(e,t){return Z.call(e,t)}function W(e){return y.call(e)}function Y(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function Q(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Q(b.call(e,0,t.maxStringLength),t)+n}var o=z[t.quoteStyle||"single"];return o.lastIndex=0,U(_.call(_.call(e,o,"\\$1"),/[\x00-\x1f]/g,J),"single",t)}function J(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+x.call(t.toString(16))}function X(e){return"Object("+e+")"}function ee(e){return e+" { ? }"}function te(e,t,r,n){return e+" ("+t+") {"+(n?re(r,n):S.call(r,", "))+"}"}function re(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+S.call(e,","+r)+"\n"+t.prev}function ne(e,t){var r=V(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=K(e,o)?t(e[o],e):""}var i,a="function"==typeof P?P(e):[];if(T){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var c in e)K(e,c)&&(r&&String(Number(c))===c&&c<e.length||T&&i["$"+c]instanceof Symbol||(k.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof P)for(var u=0;u<a.length;u++)I.call(e,a[u])&&n.push("["+t(a[u])+"]: "+t(e[a[u]],e));return n}},8796:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){for(var n=0,o=e.length;o>0;){var i=o/2|0,a=n+i;r(e[a],t)<=0?(n=++a,o-=i+1):o=i}return n}},8950:(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)}var o,i=r(9472),a=r(3581);try{o=[].__proto__===Array.prototype}catch(e){if(!e||"object"!==n(e)||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var s=!!o&&a&&a(Object.prototype,"__proto__"),c=Object,u=c.getPrototypeOf;e.exports=s&&"function"==typeof s.get?i([s.get]):"function"==typeof u&&function(e){return u(null==e?e:c(e))}},9063:(e,t,r)=>{var n=r(6681);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},9142:e=>{e.exports=Object},9292:e=>{var t=String.prototype.replace,r=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},9302:(e,t,r)=>{var n=r(9142);e.exports=n.getPrototypeOf||null},9367:(e,t,r)=>{var n=r(4509),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},u=function(e,t,r,i){if(e){var a=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,u=r.depth>0&&/(\[[^[\]]*])/.exec(a),p=u?a.slice(0,u.index):a,l=[];if(p){if(!r.plainObjects&&o.call(Object.prototype,p)&&!r.allowPrototypes)return;l.push(p)}for(var f=0;r.depth>0&&null!==(u=s.exec(a))&&f<r.depth;){if(f+=1,!r.plainObjects&&o.call(Object.prototype,u[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(u[1])}if(u){if(!0===r.strictDepth)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");l.push("["+a.slice(u.index)+"]")}return function(e,t,r,o){var i=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");i=Array.isArray(t)&&t[a]?t[a].length:0}for(var s=o?t:c(t,r,i),u=e.length-1;u>=0;--u){var p,l=e[u];if("[]"===l&&r.parseArrays)p=r.allowEmptyArrays&&(""===s||r.strictNullHandling&&null===s)?[]:n.combine([],s);else{p=r.plainObjects?{__proto__:null}:{};var f="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,d=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,m=parseInt(d,10);r.parseArrays||""!==d?!isNaN(m)&&l!==d&&String(m)===d&&m>=0&&r.parseArrays&&m<=r.arrayLimit?(p=[])[m]=s:"__proto__"!==d&&(p[d]=s):p={0:s}}s=p}return s}(l,t,r,i)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?a.charset:e.charset,r=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var p="string"==typeof e?function(e,t){var r={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;u=u.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var p=t.parameterLimit===1/0?void 0:t.parameterLimit,l=u.split(t.delimiter,t.throwOnLimitExceeded?p+1:p);if(t.throwOnLimitExceeded&&l.length>p)throw new RangeError("Parameter limit exceeded. Only "+p+" parameter"+(1===p?"":"s")+" allowed.");var f,d=-1,m=t.charset;if(t.charsetSentinel)for(f=0;f<l.length;++f)0===l[f].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[f]?m="utf-8":"utf8=%26%2310003%3B"===l[f]&&(m="iso-8859-1"),d=f,f=l.length);for(f=0;f<l.length;++f)if(f!==d){var h,y,g=l[f],v=g.indexOf("]="),b=-1===v?g.indexOf("="):v+1;-1===b?(h=t.decoder(g,a.decoder,m,"key"),y=t.strictNullHandling?null:""):(h=t.decoder(g.slice(0,b),a.decoder,m,"key"),y=n.maybeMap(c(g.slice(b+1),t,i(r[h])?r[h].length:0),(function(e){return t.decoder(e,a.decoder,m,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===m&&(y=s(String(y))),g.indexOf("[]=")>-1&&(y=i(y)?[y]:y);var _=o.call(r,h);_&&"combine"===t.duplicates?r[h]=n.combine(r[h],y):_&&"last"!==t.duplicates||(r[h]=y)}return r}(e,r):e,l=r.plainObjects?{__proto__:null}:{},f=Object.keys(p),d=0;d<f.length;++d){var m=f[d],h=u(m,p[m],r,"string"==typeof e);l=n.merge(l,h,r)}return!0===r.allowSparse?l:n.compact(l)}},9406:e=>{e.exports=Math.max},9414:(e,t,r)=>{r.r(t),r.d(t,{b64:()=>p,cleanUpCallbacks:()=>k,extensionToMime:()=>_,filterObject:()=>w,getMimetype:()=>b,getVersion:()=>l,isFacebook:()=>d,isMobile:()=>f,md5:()=>u,removeEmpty:()=>y,resolveCdnUrl:()=>m,resolveHost:()=>h,sanitizeName:()=>x,uniqueId:()=>v,uniqueTime:()=>g});var n,o=r(1635),i={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomsvc+xml":["atomsvc"],"application/bdoc":["bdoc"],"application/ccxml+xml":["ccxml"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma","es"],"application/emma+xml":["emma"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/octet-stream":["bin","dms","tdms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","msp","buffer","psdata","indt","hpd","mxd","indd","vsm","hpt"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-diff+xml":["xdf"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jpg":["jpeg","jpg","jpe"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"application/font-ttf":"ttf","application/vnd.ms-fontobject":"eot","application/font-otf":"otf","text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard","vcr"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"],"application/prs.cww":["cww"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["keynote","key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.key":["key"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.ms-visio.drawing.main+xml":["vsdx"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/vnd.avi":["avi"],"video/x-msvideo":["avi"],"video/avi":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"],"application/x-msi":"msi","application/x-ms":"ms","application/vnd.geo+json":"geojson","application/vnd.debian.binary-package":"deb","application/font-woff":"woff","application/font-woff2":"woff2","application/x-font-ttf":["ttc","ttf"],"font/opentype":"otf","application/x-bb-appworld":"bbaw","application/x-cd-image":"iso","application/x-opera-extension":"oex","application/x-ms-dos-executable":"exe","text/vnd.rim.location.xloc":"xloc","application/x-desktop":"desktop","application/x-typescript":"ts","application/x-java-archive":"jar","application/x-sharedlib":"so","image/avif":"avif"},a=r(1424),s=r(2593),c=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i,u=function(e){return btoa(s.ArrayBuffer.hash(e,!0))},p=function(e,t){void 0===t&&(t=!1);var r=btoa(e);return t?r.replace(/\//g,"_").replace(/\+/g,"-"):r},l=function(){return"JS-4.3.7"},f=function(){return navigator&&navigator.userAgent&&c.test(navigator.userAgent)},d=function(){return navigator&&navigator.userAgent&&/\[FB.*;/i.test(navigator.userAgent)},m=function(e,t){var r=e.urls.cdnUrl;if(t&&(0===t.indexOf("src:")||0===t.indexOf("http"))){if(!e.apikey)throw new Error("Api key is required when storage alias is provided");return"".concat(r,"/").concat(e.apikey)}return r},h=function(e,t){if(!t)return e;var r=/filestackapi.com|filestackcontent.com/i;return Object.keys(e).forEach((function(n){e[n]=e[n].replace(r,t)})),e},y=function(e){var t=(0,o.Cl)({},e);return Object.keys(t).forEach((function(e){return!t[e]&&"boolean"!=typeof t[e]&&delete t[e]})),t},g=function(){var e=Date.now();return n=e===n?e+1:e},v=function(e){return void 0===e&&(e=10),new Array(e).join().replace(/(.|$)/g,(function(){return(36*Math.random()|0).toString(36)[Math.random()<.5?"toString":"toUpperCase"]()}))},b=function(e,t){return(0,o.sH)(void 0,void 0,void 0,(function(){var r,n,i,s;return(0,o.YH)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,(0,a.fromBuffer)(e)];case 1:return r=o.sent(),[3,3];case 2:return n=o.sent(),console.warn("An exception occurred while processing the buffer:",n.message),[3,3];case 3:if(i=["text/plain","application/octet-stream","application/x-ms","application/x-msi","application/zip","audio/x-m4a"],r&&-1===i.indexOf(r.mime))return[2,r.mime];if(t&&t.indexOf(".")>-1&&(s=_(t)))return[2,s];try{if(function(e){if(!e)return!1;for(var t=0,r=e.length;t<r;)if(e[t]<=127)t++;else{if(e[t]>=194&&e[t]<=223){if(e[t+1]>>6==2){t+=2;continue}return!1}if((224===e[t]&&e[t+1]>=160&&e[t+1]<=191||237===e[t]&&e[t+1]>=128&&e[t+1]<=159)&&e[t+2]>>6==2)t+=3;else if((e[t]>=225&&e[t]<=236||e[t]>=238&&e[t]<=239)&&e[t+1]>>6==2&&e[t+2]>>6==2)t+=3;else{if(!(240===e[t]&&e[t+1]>=144&&e[t+1]<=191||e[t]>=241&&e[t]<=243&&e[t+1]>>6==2||244===e[t]&&e[t+1]>=128&&e[t+1]<=143)||e[t+2]>>6!=2||e[t+3]>>6!=2)return!1;t+=4}}return!0}(e))return[2,"text/plain"]}catch(e){console.warn("Additional mimetype checks (text/plain) are currently not supported for browsers")}return r?[2,r.mime]:[2,"application/octet-stream"]}}))}))},_=function(e){if(e&&0!==e.length){if(2===e.split("/").length)return e;e.indexOf(".")>-1&&(e=e.split(".").pop()),e=e.toLocaleLowerCase();for(var t=Object.keys(i),r=t.length,n=0;n<r;n++)if(i[t[n]].indexOf(e)>-1)return t[n]}},x=function(e,t){if(void 0===t&&(t=!0),"boolean"==typeof t&&!t)return e;var r,n="boolean"!=typeof t&&t.replacement?t.replacement:"-",o="boolean"!=typeof t&&t.exclude?t.exclude:["\\","{","}","|","%","`",'"',"'","~","[","]","#","|","^","<",">"];if(!e||0===e.length)return"undefined";var i=e.split(".");return i.length>1&&(r=i.pop()),"".concat(i.join(".").split("").map((function(e){return o.indexOf(e)>-1?n:e})).join("")).concat(r?"."+r:"")},w=function(e,t){return t&&0!==t.length?0===Object.keys(e).length?e:Object.keys(e).filter((function(e){return t.indexOf(e)>-1})).reduce((function(t,r){var n;return(0,o.Cl)((0,o.Cl)({},t),((n={})[r]=e[r],n))}),{}):e},k=function e(t){return t&&0!==Object.keys(t).length?(Object.keys(t).forEach((function(r){"function"==typeof t[r]&&(t[r]=void 0),t[r]===Object(t[r])&&(t[r]=e(t[r]))})),t):t}},9472:(e,t,r)=>{var n=r(5465),o=r(1953),i=r(5118),a=r(1978);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return a(n,i,e)}},9527: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},t(e)}var r=1e3,n=60*r,o=60*n,i=24*o,a=7*i;function s(e,t,r,n){var o=t>=1.5*r;return Math.round(e/r)+" "+n+(o?"s":"")}e.exports=function(e,c){c=c||{};var u,p,l=t(e);if("string"===l&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return s*a;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*o;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===l&&isFinite(e))return c.long?(u=e,(p=Math.abs(u))>=i?s(u,p,i,"day"):p>=o?s(u,p,o,"hour"):p>=n?s(u,p,n,"minute"):p>=r?s(u,p,r,"second"):u+" ms"):function(e){var t=Math.abs(e);return t>=i?Math.round(e/i)+"d":t>=o?Math.round(e/o)+"h":t>=n?Math.round(e/n)+"m":t>=r?Math.round(e/r)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},9653:(e,t,r)=>{r.d(t,{E:()=>n,d:()=>i});var n,o=r(1635);!function(e){e.ABORTED="ABORTED",e.NETWORK="NETWORK",e.TIMEOUT="TIMEDOUT",e.SERVER="SERVER",e.REQUEST="REQUEST",e.OTHER="OTHER",e.REDIRECT="REDIRECT"}(n||(n={}));var i=function(e){function t(t,r,n,o){var i,a,s,c=this.constructor,u=e.call(this,t)||this;return u.config=r,u.response=n,u.code=o,i=u,a=c.prototype,(s=Object.setPrototypeOf)?s(i,a):i.__proto__=a,u}return(0,o.C6)(t,e),t}(Error)},9927:e=>{e.exports=function(e,t){return t=t||function(){},e.then((function(e){return new Promise((function(e){e(t())})).then((function(){return e}))}),(function(e){return new Promise((function(e){e(t())})).then((function(){throw e}))}))}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.amdO={},__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__={};function _typeof(e){return _typeof="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},_typeof(e)}__webpack_require__.d(__webpack_exports__,{W3:()=>Align,Ew:()=>AudioTypes,PK:()=>BlurMode,Kj:()=>Client,Ay:()=>ColorspaceType,Rl:()=>CropfacesType,HD:()=>EAlignFacesOptions,FK:()=>EAlignOptions,lX:()=>EAudioTypes,m5:()=>EBlurMode,Bj:()=>EColorspaceType,uK:()=>ECropfacesType,Nx:()=>EFitOptions,Us:()=>EImageWatermarkPosition,uZ:()=>ENoiseType,X5:()=>EShapeType,wb:()=>ESmartCropMode,zf:()=>EStyleType,QS:()=>EUrlscreenshotAgent,ar:()=>EUrlscreenshotMode,pg:()=>EUrlscreenshotOrientation,Pd:()=>EVideoAccess,Yq:()=>EVideoAccessMode,zb:()=>EVideoLocations,sz:()=>EVideoTypes,WT:()=>EnhancePreset,XM:()=>Filelink,rv:()=>Filestack,p_:()=>FilestackError,tm:()=>FilestackErrorType,_7:()=>FitOptions,hs:()=>FsCancelToken,jC:()=>types.j,bK:()=>FsRequest,d1:()=>error.d,EK:()=>error.E,z:()=>ImageWatermarkPosition,Hc:()=>Locations,VA:()=>NoiseType,kX:()=>PickerDisplayMode,pv:()=>PrefetchEvents,IO:()=>ShapeType,HQ:()=>SmartCropMode,s4:()=>StyleType,QV:()=>TransformSchema,Dy:()=>URLScreenshotAgent,rR:()=>URLScreenshotMode,IB:()=>URLScreenshotOrientation,yp:()=>VideoAccess,Lt:()=>VideoAccessMode,Nu:()=>VideoTypes,Ly:()=>utils.b64,SC:()=>utils.cleanUpCallbacks,Nr:()=>utils.extensionToMime,kJ:()=>utils.filterObject,vm:()=>utils.getMimetype,RK:()=>getSecurity,HF:()=>utils.getVersion,Ts:()=>init,rB:()=>utils.isFacebook,Fr:()=>utils.isMobile,Fx:()=>utils.md5,ef:()=>utils.removeEmpty,T0:()=>utils.resolveCdnUrl,p0:()=>utils.resolveHost,rh:()=>utils.sanitizeName,pd:()=>transform,NF:()=>utils.uniqueId,tp:()=>utils.uniqueTime,qB:()=>validateWebhookSignature,rE:()=>version});var FilestackLoader=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==_typeof(e)&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){r.r(t),r.d(t,"loadModules",(function(){return c})),r.d(t,"loadModule",(function(){return u})),r.d(t,"registerModule",(function(){return p})),r.d(t,"loadCss",(function(){return l})),r.d(t,"FILESTACK_MODULES",(function(){return n}));var n,o={},i=function(){var e,t=(e="undefined"==typeof window?o:window).filestackInternals;return t||(t={modules:{}},e.filestackInternals=t),t.modules||(t.modules={}),t}(),a=i&&i.modules,s=function(e,t,r){e.detachEvent?e.detachEvent("onreadystatechange",t):e.removeEventListener(r,t,!1)},c=function(e){return Promise.all(e.map((function(e){var t=e.id,r=e.url;return u(t,r)}))).then((function(t){var r={};return t.forEach((function(t,n){var o=e[n];r[o.id]=t})),r}))},u=function(e,t){if("undefined"==typeof window)return Promise.reject(new Error("Load module is working only on browser env"));if(!e)throw new Error("Module id is required");var r=a[e="fs-loader-"+e];return r||(a[e]={},r=a[e]),r.instance?Promise.resolve(r.instance):r.promise?r.promise:r.promise=new Promise((function(r,n){var o=function t(o){if("load"===o.type||/^(complete|loaded)$/.test((o.currentTarget||o.srcElement).readyState)){var i=o.currentTarget||o.srcElement;s(i,t,"load"),s(i,n,"error"),setTimeout((function(){return r(a[e]?a[e].instance:void 0)}),10)}},i=document.createElement("script");i.id=e,!i.attachEvent||i.attachEvent.toString&&i.attachEvent.toString().indexOf("[native code")<0?(i.addEventListener("load",o,!1),i.addEventListener("onerror",n,!1)):i.attachEvent("onreadystatechange",o),i.setAttribute("crossorigin","anonymous"),i.setAttribute("charset","utf-8"),i.setAttribute("async","true"),i.src=t,document.body.appendChild(i)}))},p=function(e,t,r){if("undefined"!=typeof window){if(!e)throw new Error("Module id is required");if(!a)throw new Error("Loader is not initialized");a[e="fs-loader-"+e]&&(a[e]={instance:t,metadata:r})}},l=function(e){return null!==document.querySelector('link[href="'.concat(e,'"]'))?Promise.resolve():new Promise((function(t){var r=document.getElementsByTagName("head")[0],n=document.createElement("link");n.rel="stylesheet",n.href=e,n.addEventListener("load",(function e(){t(),n.removeEventListener("load",e)})),r.appendChild(n)}))};!function(e){e.FILESTACK_SDK="filestack-sdk",e.TRANSFORMS_UI="transforms-ui",e.PICKER="picker"}(n||(n={}))}]),_FilestackLoader$loadModules=FilestackLoader.loadModules,_FilestackLoader$loadModule=FilestackLoader.loadModule,_FilestackLoader$registerModule=FilestackLoader.registerModule,_FilestackLoader$loadCss=FilestackLoader.loadCss,_FilestackLoader$FILESTACK_MODULES=FilestackLoader.FILESTACK_MODULES,getSecurity=function(e,t){throw new Error("getSecurity is only supported in nodejs")},validateWebhookSignature=function(e,t,r){throw new Error("validateWebhookSignature is only supported in nodejs")},tslib_es6=__webpack_require__(1635),eventemitter3=__webpack_require__(6274);const node_modules_eventemitter3=eventemitter3;var SDK_VERSION="8.55.0",GLOBAL_OBJ=globalThis;function worldwide_getGlobalSingleton(e,t,r){var n=r||GLOBAL_OBJ,o=n.__SENTRY__=n.__SENTRY__||{},i=o[SDK_VERSION]=o[SDK_VERSION]||{};return i[e]||(i[e]=t())}function carrier_getMainCarrier(){return carrier_getSentryCarrier(GLOBAL_OBJ),GLOBAL_OBJ}function carrier_getSentryCarrier(e){var t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||SDK_VERSION,t[SDK_VERSION]=t[SDK_VERSION]||{}}var ONE_SECOND_IN_MS=1e3;function dateTimestampInSeconds(){return Date.now()/ONE_SECOND_IN_MS}function createUnixTimestampInSecondsFunc(){var e=GLOBAL_OBJ.performance;if(!e||!e.now)return dateTimestampInSeconds;var t=Date.now()-e.now(),r=null==e.timeOrigin?t:e.timeOrigin;return function(){return(r+e.now())/ONE_SECOND_IN_MS}}var time_timestampInSeconds=createUnixTimestampInSecondsFunc(),_browserPerformanceTimeOriginMode,browserPerformanceTimeOrigin=function(){var e=GLOBAL_OBJ.performance;if(e&&e.now){var t=36e5,r=e.now(),n=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+r-n):t,i=o<t,a=e.timing&&e.timing.navigationStart,s="number"==typeof a?Math.abs(a+r-n):t;return i||s<t?o<=s?(_browserPerformanceTimeOriginMode="timeOrigin",e.timeOrigin):(_browserPerformanceTimeOriginMode="navigationStart",a):(_browserPerformanceTimeOriginMode="dateNow",n)}_browserPerformanceTimeOriginMode="none"}();function misc_typeof(e){return misc_typeof="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},misc_typeof(e)}function ownKeys(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 _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==misc_typeof(t)?t:String(t)}function _toPrimitive(e,t){if("object"!=misc_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=misc_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function misc_uuid4(){var e=GLOBAL_OBJ,t=e.crypto||e.msCrypto,r=function(){return 16*Math.random()};try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(r=function(){var e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(function(e){return(e^(15&r())>>e/4).toString(16)}))}function getFirstException(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function getEventDescription(e){var t=e.message,r=e.event_id;if(t)return t;var n=getFirstException(e);return n?n.type&&n.value?"".concat(n.type,": ").concat(n.value):n.type||n.value||r||"<unknown>":r||"<unknown>"}function addExceptionTypeValue(e,t,r){var n=e.exception=e.exception||{},o=n.values=n.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=r||"Error")}function addExceptionMechanism(e,t){var r=getFirstException(e);if(r){var n=r.mechanism;if(r.mechanism=_objectSpread(_objectSpread(_objectSpread({},{type:"generic",handled:!0}),n),t),t&&"data"in t){var o=_objectSpread(_objectSpread({},n&&n.data),t.data);r.mechanism.data=o}}}var SEMVER_REGEXP=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function _parseInt(e){return parseInt(e||"",10)}function parseSemver(e){var t=e.match(SEMVER_REGEXP)||[],r=_parseInt(t[1]),n=_parseInt(t[2]),o=_parseInt(t[3]);return{buildmetadata:t[5],major:isNaN(r)?void 0:r,minor:isNaN(n)?void 0:n,patch:isNaN(o)?void 0:o,prerelease:t[4]}}function addContextToFrame(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;if(void 0!==t.lineno){var n=e.length,o=Math.max(Math.min(n-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,o-r),o).map((function(e){return snipLine(e,0)}));var i=Math.min(n-1,o);t.context_line=snipLine(e[i],t.colno||0),t.post_context=e.slice(Math.min(o+1,n),o+1+r).map((function(e){return snipLine(e,0)}))}}function checkOrSetAlreadyCaught(e){if(isAlreadyCaptured(e))return!0;try{addNonEnumerableProperty(e,"__sentry_captured__",!0)}catch(e){}return!1}function isAlreadyCaptured(e){try{return e.__sentry_captured__}catch(e){}}function arrayify(e){return Array.isArray(e)?e:[e]}function makeSession(e){var t=timestampInSeconds(),r={sid:uuid4(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:function(){return sessionToJSON(r)}};return e&&updateSession(r,e),r}function updateSession(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||time_timestampInSeconds(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:misc_uuid4()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did="".concat(t.did)),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{var r=e.timestamp-e.started;e.duration=r>=0?r:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function closeSession(e,t){var r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),updateSession(e,r)}function sessionToJSON(e){return dropUndefinedKeys({sid:"".concat(e.sid),init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?"".concat(e.did):void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}function is_typeof(e){return is_typeof="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},is_typeof(e)}var objectToString=Object.prototype.toString;function is_isError(e){switch(objectToString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return is_isInstanceOf(e,Error)}}function isBuiltin(e,t){return objectToString.call(e)==="[object ".concat(t,"]")}function isErrorEvent(e){return isBuiltin(e,"ErrorEvent")}function isDOMError(e){return isBuiltin(e,"DOMError")}function isDOMException(e){return isBuiltin(e,"DOMException")}function isString(e){return isBuiltin(e,"String")}function isParameterizedString(e){return"object"===is_typeof(e)&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function is_isPrimitive(e){return null===e||isParameterizedString(e)||"object"!==is_typeof(e)&&"function"!=typeof e}function is_isPlainObject(e){return isBuiltin(e,"Object")}function is_isEvent(e){return"undefined"!=typeof Event&&is_isInstanceOf(e,Event)}function is_isElement(e){return"undefined"!=typeof Element&&is_isInstanceOf(e,Element)}function isRegExp(e){return isBuiltin(e,"RegExp")}function isThenable(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function isSyntheticEvent(e){return is_isPlainObject(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function is_isInstanceOf(e,t){try{return e instanceof t}catch(e){return!1}}function isVueViewModel(e){return!("object"!==is_typeof(e)||null===e||!e.__isVue&&!e._isVue)}var debug_build_DEBUG_BUILD="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,PREFIX="Sentry Logger ",CONSOLE_LEVELS=["debug","info","warn","error","log","assert","trace"],originalConsoleMethods={};function consoleSandbox(e){if(!("console"in GLOBAL_OBJ))return e();var t=GLOBAL_OBJ.console,r={},n=Object.keys(originalConsoleMethods);n.forEach((function(e){var n=originalConsoleMethods[e];r[e]=t[e],t[e]=n}));try{return e()}finally{n.forEach((function(e){t[e]=r[e]}))}}function makeLogger(){var e=!1,t={enable:function(){e=!0},disable:function(){e=!1},isEnabled:function(){return e}};return debug_build_DEBUG_BUILD?CONSOLE_LEVELS.forEach((function(r){t[r]=function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e&&consoleSandbox((function(){var e;(e=GLOBAL_OBJ.console)[r].apply(e,["".concat(PREFIX,"[").concat(r,"]:")].concat(n))}))}})):CONSOLE_LEVELS.forEach((function(e){t[e]=function(){}})),t}var logger_logger=worldwide_getGlobalSingleton("logger",makeLogger);function generatePropagationContext(){return{traceId:generateTraceId(),spanId:generateSpanId()}}function generateTraceId(){return misc_uuid4()}function generateSpanId(){return misc_uuid4().substring(16)}function merge_ownKeys(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 merge_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?merge_ownKeys(Object(r),!0).forEach((function(t){merge_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):merge_ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function merge_defineProperty(e,t,r){return(t=merge_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function merge_toPropertyKey(e){var t=merge_toPrimitive(e,"string");return"symbol"==merge_typeof(t)?t:String(t)}function merge_toPrimitive(e,t){if("object"!=merge_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=merge_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function merge_typeof(e){return merge_typeof="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},merge_typeof(e)}function merge(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(!t||"object"!==merge_typeof(t)||r<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;var n=merge_objectSpread({},e);for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=merge(n[o],t[o],r-1));return n}function _createForOfIteratorHelper(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function object_typeof(e){return object_typeof="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},object_typeof(e)}function object_ownKeys(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 object_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?object_ownKeys(Object(r),!0).forEach((function(t){object_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):object_ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function object_defineProperty(e,t,r){return(t=object_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function object_toPropertyKey(e){var t=object_toPrimitive(e,"string");return"symbol"==object_typeof(t)?t:String(t)}function object_toPrimitive(e,t){if("object"!=object_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=object_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function fill(e,t,r){if(t in e){var n=e[t],o=r(n);"function"==typeof o&&markFunctionWrapped(o,n);try{e[t]=o}catch(r){DEBUG_BUILD&&logger.log('Failed to replace method "'.concat(t,'" in object'),e)}}}function object_addNonEnumerableProperty(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch(r){debug_build_DEBUG_BUILD&&logger_logger.log('Failed to add non-enumerable property "'.concat(t,'" to object'),e)}}function markFunctionWrapped(e,t){try{var r=t.prototype||{};e.prototype=t.prototype=r,object_addNonEnumerableProperty(e,"__sentry_original__",t)}catch(e){}}function getOriginalFunction(e){return e.__sentry_original__}function urlEncode(e){return Object.entries(e).map((function(e){var t=_slicedToArray(e,2),r=t[0],n=t[1];return"".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(n))})).join("&")}function convertToPlainObject(e){if(isError(e))return object_objectSpread({message:e.message,name:e.name,stack:e.stack},getOwnProperties(e));if(isEvent(e)){var t=object_objectSpread({type:e.type,target:serializeEventTarget(e.target),currentTarget:serializeEventTarget(e.currentTarget)},getOwnProperties(e));return"undefined"!=typeof CustomEvent&&isInstanceOf(e,CustomEvent)&&(t.detail=e.detail),t}return e}function serializeEventTarget(e){try{return isElement(e)?htmlTreeAsString(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function getOwnProperties(e){if("object"===object_typeof(e)&&null!==e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}return{}}function extractExceptionKeysForMessage(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,r=Object.keys(convertToPlainObject(e));r.sort();var n=r[0];if(!n)return"[object has no keys]";if(n.length>=t)return truncate(n,t);for(var o=r.length;o>0;o--){var i=r.slice(0,o).join(", ");if(!(i.length>t))return o===r.length?i:truncate(i,t)}return""}function object_dropUndefinedKeys(e){return _dropUndefinedKeys(e,new Map)}function _dropUndefinedKeys(e,t){if(isPojo(e)){var r=t.get(e);if(void 0!==r)return r;var n={};t.set(e,n);var o,i=_createForOfIteratorHelper(Object.getOwnPropertyNames(e));try{for(i.s();!(o=i.n()).done;){var a=o.value;void 0!==e[a]&&(n[a]=_dropUndefinedKeys(e[a],t))}}catch(e){i.e(e)}finally{i.f()}return n}if(Array.isArray(e)){var s=t.get(e);if(void 0!==s)return s;var c=[];return t.set(e,c),e.forEach((function(e){c.push(_dropUndefinedKeys(e,t))})),c}return e}function isPojo(e){if(!isPlainObject(e))return!1;try{var t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}function objectify(e){var t;switch(!0){case null==e:t=new String(e);break;case"symbol"===object_typeof(e)||"bigint"==typeof e:t=Object(e);break;case isPrimitive(e):t=new e.constructor(e);break;default:t=e}return t}var SCOPE_SPAN_FIELD="_sentrySpan";function _setSpanForScope(e,t){t?object_addNonEnumerableProperty(e,SCOPE_SPAN_FIELD,t):delete e[SCOPE_SPAN_FIELD]}function _getSpanForScope(e){return e[SCOPE_SPAN_FIELD]}function scope_typeof(e){return scope_typeof="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},scope_typeof(e)}function scope_slicedToArray(e,t){return scope_arrayWithHoles(e)||scope_iterableToArrayLimit(e,t)||scope_unsupportedIterableToArray(e,t)||scope_nonIterableRest()}function scope_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function scope_iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function scope_arrayWithHoles(e){if(Array.isArray(e))return e}function scope_ownKeys(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 scope_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?scope_ownKeys(Object(r),!0).forEach((function(t){scope_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):scope_ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function scope_defineProperty(e,t,r){return(t=scope_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||scope_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){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 scope_unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return scope_arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?scope_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return scope_arrayLikeToArray(e)}function scope_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(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,scope_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function scope_toPropertyKey(e){var t=scope_toPrimitive(e,"string");return"symbol"==scope_typeof(t)?t:String(t)}function scope_toPrimitive(e,t){if("object"!=scope_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=scope_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var DEFAULT_MAX_BREADCRUMBS=100,ScopeClass=function(){function e(){_classCallCheck(this,e),this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:generateTraceId(),spanId:generateSpanId()}}return _createClass(e,[{key:"clone",value:function(){var t=new e;return t._breadcrumbs=_toConsumableArray(this._breadcrumbs),t._tags=scope_objectSpread({},this._tags),t._extra=scope_objectSpread({},this._extra),t._contexts=scope_objectSpread({},this._contexts),this._contexts.flags&&(t._contexts.flags={values:_toConsumableArray(this._contexts.flags.values)}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=_toConsumableArray(this._eventProcessors),t._requestSession=this._requestSession,t._attachments=_toConsumableArray(this._attachments),t._sdkProcessingMetadata=scope_objectSpread({},this._sdkProcessingMetadata),t._propagationContext=scope_objectSpread({},this._propagationContext),t._client=this._client,t._lastEventId=this._lastEventId,_setSpanForScope(t,_getSpanForScope(this)),t}},{key:"setClient",value:function(e){this._client=e}},{key:"setLastEventId",value:function(e){this._lastEventId=e}},{key:"getClient",value:function(){return this._client}},{key:"lastEventId",value:function(){return this._lastEventId}},{key:"addScopeListener",value:function(e){this._scopeListeners.push(e)}},{key:"addEventProcessor",value:function(e){return this._eventProcessors.push(e),this}},{key:"setUser",value:function(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&updateSession(this._session,{user:e}),this._notifyScopeListeners(),this}},{key:"getUser",value:function(){return this._user}},{key:"getRequestSession",value:function(){return this._requestSession}},{key:"setRequestSession",value:function(e){return this._requestSession=e,this}},{key:"setTags",value:function(e){return this._tags=scope_objectSpread(scope_objectSpread({},this._tags),e),this._notifyScopeListeners(),this}},{key:"setTag",value:function(e,t){return this._tags=scope_objectSpread(scope_objectSpread({},this._tags),{},scope_defineProperty({},e,t)),this._notifyScopeListeners(),this}},{key:"setExtras",value:function(e){return this._extra=scope_objectSpread(scope_objectSpread({},this._extra),e),this._notifyScopeListeners(),this}},{key:"setExtra",value:function(e,t){return this._extra=scope_objectSpread(scope_objectSpread({},this._extra),{},scope_defineProperty({},e,t)),this._notifyScopeListeners(),this}},{key:"setFingerprint",value:function(e){return this._fingerprint=e,this._notifyScopeListeners(),this}},{key:"setLevel",value:function(e){return this._level=e,this._notifyScopeListeners(),this}},{key:"setTransactionName",value:function(e){return this._transactionName=e,this._notifyScopeListeners(),this}},{key:"setContext",value:function(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}},{key:"setSession",value:function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}},{key:"getSession",value:function(){return this._session}},{key:"update",value:function(e){if(!e)return this;var t="function"==typeof e?e(this):e,r=scope_slicedToArray(t instanceof scope_Scope?[t.getScopeData(),t.getRequestSession()]:is_isPlainObject(t)?[e,e.requestSession]:[],2),n=r[0],o=r[1],i=n||{},a=i.tags,s=i.extra,c=i.user,u=i.contexts,p=i.level,l=i.fingerprint,f=void 0===l?[]:l,d=i.propagationContext;return this._tags=scope_objectSpread(scope_objectSpread({},this._tags),a),this._extra=scope_objectSpread(scope_objectSpread({},this._extra),s),this._contexts=scope_objectSpread(scope_objectSpread({},this._contexts),u),c&&Object.keys(c).length&&(this._user=c),p&&(this._level=p),f.length&&(this._fingerprint=f),d&&(this._propagationContext=d),o&&(this._requestSession=o),this}},{key:"clear",value:function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,_setSpanForScope(this,void 0),this._attachments=[],this.setPropagationContext({traceId:generateTraceId()}),this._notifyScopeListeners(),this}},{key:"addBreadcrumb",value:function(e,t){var r="number"==typeof t?t:DEFAULT_MAX_BREADCRUMBS;if(r<=0)return this;var n=scope_objectSpread({timestamp:dateTimestampInSeconds()},e);return this._breadcrumbs.push(n),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client&&this._client.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}},{key:"getLastBreadcrumb",value:function(){return this._breadcrumbs[this._breadcrumbs.length-1]}},{key:"clearBreadcrumbs",value:function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}},{key:"addAttachment",value:function(e){return this._attachments.push(e),this}},{key:"clearAttachments",value:function(){return this._attachments=[],this}},{key:"getScopeData",value:function(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:_getSpanForScope(this)}}},{key:"setSDKProcessingMetadata",value:function(e){return this._sdkProcessingMetadata=merge(this._sdkProcessingMetadata,e,2),this}},{key:"setPropagationContext",value:function(e){return this._propagationContext=scope_objectSpread({spanId:generateSpanId()},e),this}},{key:"getPropagationContext",value:function(){return this._propagationContext}},{key:"captureException",value:function(e,t){var r=t&&t.event_id?t.event_id:misc_uuid4();if(!this._client)return logger_logger.warn("No client configured on scope - will not capture exception!"),r;var n=new Error("Sentry syntheticException");return this._client.captureException(e,scope_objectSpread(scope_objectSpread({originalException:e,syntheticException:n},t),{},{event_id:r}),this),r}},{key:"captureMessage",value:function(e,t,r){var n=r&&r.event_id?r.event_id:misc_uuid4();if(!this._client)return logger_logger.warn("No client configured on scope - will not capture message!"),n;var o=new Error(e);return this._client.captureMessage(e,t,scope_objectSpread(scope_objectSpread({originalException:e,syntheticException:o},r),{},{event_id:n}),this),n}},{key:"captureEvent",value:function(e,t){var r=t&&t.event_id?t.event_id:misc_uuid4();return this._client?(this._client.captureEvent(e,scope_objectSpread(scope_objectSpread({},t),{},{event_id:r}),this),r):(logger_logger.warn("No client configured on scope - will not capture event!"),r)}},{key:"_notifyScopeListeners",value:function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)}}]),e}(),scope_Scope=ScopeClass;function getDefaultCurrentScope(){return worldwide_getGlobalSingleton("defaultCurrentScope",(function(){return new scope_Scope}))}function getDefaultIsolationScope(){return worldwide_getGlobalSingleton("defaultIsolationScope",(function(){return new scope_Scope}))}function stackStrategy_typeof(e){return stackStrategy_typeof="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},stackStrategy_typeof(e)}function stackStrategy_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function stackStrategy_defineProperties(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,stackStrategy_toPropertyKey(n.key),n)}}function stackStrategy_createClass(e,t,r){return t&&stackStrategy_defineProperties(e.prototype,t),r&&stackStrategy_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function stackStrategy_toPropertyKey(e){var t=stackStrategy_toPrimitive(e,"string");return"symbol"==stackStrategy_typeof(t)?t:String(t)}function stackStrategy_toPrimitive(e,t){if("object"!=stackStrategy_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=stackStrategy_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var AsyncContextStack=function(){function e(t,r){var n,o;stackStrategy_classCallCheck(this,e),n=t||new scope_Scope,o=r||new scope_Scope,this._stack=[{scope:n}],this._isolationScope=o}return stackStrategy_createClass(e,[{key:"withScope",value:function(e){var t,r=this,n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}return isThenable(t)?t.then((function(e){return r._popScope(),e}),(function(e){throw r._popScope(),e})):(this._popScope(),t)}},{key:"getClient",value:function(){return this.getStackTop().client}},{key:"getScope",value:function(){return this.getStackTop().scope}},{key:"getIsolationScope",value:function(){return this._isolationScope}},{key:"getStackTop",value:function(){return this._stack[this._stack.length-1]}},{key:"_pushScope",value:function(){var e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}},{key:"_popScope",value:function(){return!(this._stack.length<=1||!this._stack.pop())}}]),e}();function getAsyncContextStack(){var e=carrier_getSentryCarrier(carrier_getMainCarrier());return e.stack=e.stack||new AsyncContextStack(getDefaultCurrentScope(),getDefaultIsolationScope())}function withScope(e){return getAsyncContextStack().withScope(e)}function withSetScope(e,t){var r=getAsyncContextStack();return r.withScope((function(){return r.getStackTop().scope=e,t(e)}))}function withIsolationScope(e){return getAsyncContextStack().withScope((function(){return e(getAsyncContextStack().getIsolationScope())}))}function getStackAsyncContextStrategy(){return{withIsolationScope,withScope,withSetScope,withSetIsolationScope:function(e,t){return withIsolationScope(t)},getCurrentScope:function(){return getAsyncContextStack().getScope()},getIsolationScope:function(){return getAsyncContextStack().getIsolationScope()}}}function setAsyncContextStrategy(e){var t=getMainCarrier();getSentryCarrier(t).acs=e}function asyncContext_getAsyncContextStrategy(e){var t=carrier_getSentryCarrier(e);return t.acs?t.acs:getStackAsyncContextStrategy()}function getCurrentScope(){return asyncContext_getAsyncContextStrategy(carrier_getMainCarrier()).getCurrentScope()}function getIsolationScope(){return asyncContext_getAsyncContextStrategy(carrier_getMainCarrier()).getIsolationScope()}function getGlobalScope(){return getGlobalSingleton("globalScope",(function(){return new Scope}))}function currentScopes_withScope(){for(var e=asyncContext_getAsyncContextStrategy(carrier_getMainCarrier()),t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(2===r.length){var o=r[0],i=r[1];return o?e.withSetScope(o,i):e.withScope(i)}return e.withScope(r[0])}function currentScopes_withIsolationScope(){for(var e=getMainCarrier(),t=getAsyncContextStrategy(e),r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];if(2===n.length){var i=n[0],a=n[1];return i?t.withSetIsolationScope(i,a):t.withIsolationScope(a)}return t.withIsolationScope(n[0])}function getClient(){return getCurrentScope().getClient()}function getTraceContextFromScope(e){var t=e.getPropagationContext(),r=t.traceId,n=t.spanId,o=t.parentSpanId;return dropUndefinedKeys({trace_id:r,span_id:n,parent_span_id:o})}function breadcrumbs_typeof(e){return breadcrumbs_typeof="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},breadcrumbs_typeof(e)}function breadcrumbs_ownKeys(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 breadcrumbs_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?breadcrumbs_ownKeys(Object(r),!0).forEach((function(t){breadcrumbs_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):breadcrumbs_ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function breadcrumbs_defineProperty(e,t,r){return(t=breadcrumbs_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function breadcrumbs_toPropertyKey(e){var t=breadcrumbs_toPrimitive(e,"string");return"symbol"==breadcrumbs_typeof(t)?t:String(t)}function breadcrumbs_toPrimitive(e,t){if("object"!=breadcrumbs_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=breadcrumbs_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var DEFAULT_BREADCRUMBS=100;function addBreadcrumb(e,t){var r=getClient(),n=getIsolationScope();if(r){var o=r.getOptions(),i=o.beforeBreadcrumb,a=void 0===i?null:i,s=o.maxBreadcrumbs,c=void 0===s?DEFAULT_BREADCRUMBS:s;if(!(c<=0)){var u=breadcrumbs_objectSpread({timestamp:dateTimestampInSeconds()},e),p=a?consoleSandbox((function(){return a(u,t)})):u;null!==p&&(r.emit&&r.emit("beforeAddBreadcrumb",p,t),n.addBreadcrumb(p,c))}}}var PICKER_VERSION="4.5.2",config={urls:{processUrl:"https://process.filestackapi.com",fileApiUrl:"https://www.filestackapi.com/api/file",uploadApiUrl:"https://upload.filestackapi.com",cloudApiUrl:"https://cloud.filestackapi.com",cdnUrl:"https://cdn.filestackcontent.com",pickerUrl:"https://static.filestackapi.com/picker/".concat(PICKER_VERSION,"/picker.js")}},FilestackErrorType;!function(e){e.VALIDATION="validation",e.REQUEST="request",e.ABORTED="aborted",e.OTHER="other"}(FilestackErrorType||(FilestackErrorType={}));var FilestackError=function(e){function t(r,n,o){var i=e.call(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i.details=n,i.type=o,i}return(0,tslib_es6.C6)(t,e),t}(Error),TransformSchema={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Transformations",description:"Filestack transformations parameters",type:"object",additionalProperties:!1,properties:{flip:{type:"boolean",additionalProperties:!1},auto_image:{type:"boolean",additionalProperties:!1},no_metadata:{type:"boolean",additionalProperties:!1},compress:{additionalProperties:!1,oneOf:[{type:"boolean"},{type:"object",properties:{metadata:{type:"boolean",default:!1}}}]},flop:{type:"boolean",additionalProperties:!1},enhance:{default:!0,oneOf:[{type:"boolean"},{type:"object",additionalProperties:!1,properties:{preset:{type:"string",enum:["auto","vivid","beautify","beautify_plus","fix_dark","fix_noise","fix_tint","outdoor","fireworks"]}}}]},redeye:{type:"boolean",additionalProperties:!1},monochrome:{type:"boolean",additionalProperties:!1},negative:{type:"boolean",additionalProperties:!1},tags:{type:"boolean",additionalProperties:!1},sfw:{type:"boolean",additionalProperties:!1},imagesize:{type:"boolean",additionalProperties:!1},smart_crop:{width:{type:"integer",minimum:0,maximum:1e4},height:{type:"integer",minimum:0,maximum:1e4},mode:{type:"string",default:"auto",enum:["face","auto"]}},animate:{type:"object",properties:{delay:{type:"integer",minimum:0,maximum:1e4,default:1e3},loop:{type:"integer",minimum:0,maximum:1e3,default:0},width:{type:"integer",minimum:1,maximum:1800},height:{type:"integer",minimum:1,maximum:1800},fit:{type:"string",default:"clip",enum:["clip","scale","crop"]},background:{$ref:"colorDef",default:"transparent"},align:{$ref:"positionDef",default:"center"}}},metadata:{type:"object",params:{type:"array",items:{type:"string",enum:["filename","mimetype","size","width","height","writeable","path","container","cloud","exif","source_url","md5","sha256","sha1","sha512"]},minItems:0,uniqueItems:!0,additionalItems:!1},additionalProperties:!1},resize:{type:"object",properties:{width:{type:"number",minimum:0,maximum:1e4},height:{type:"number",minimum:0,maximum:1e4},fit:{type:"string",enum:["clip","crop","scale","max"],default:"clip"},align:{$ref:"positionDef",default:"center"}},additionalProperties:!1,anyOf:[{required:["width"]},{required:["height"]}]},crop:{type:"object",properties:{dim:{type:"array",additionalItems:!1,minItems:4,items:[{type:"integer",minimum:0,maximum:1e5},{type:"integer",minimum:0,maximum:1e5},{type:"integer",minimum:1,maximum:1e5},{type:"integer",minimum:1,maximum:1e5}]}},required:["dim"]},rotate:{type:"object",properties:{deg:{oneOf:[{type:"string",enum:["exif"]},{type:"number",minimum:0,maximum:359}]},exif:{type:"boolean"},background:{$ref:"colorDef",default:"FFFFFFFF"}},additionalProperties:!1},detect_faces:{oneOf:[{type:"boolean"},{type:"object",properties:{maxsize:{type:"number",minimum:0,maximum:1e4,default:.35},minsize:{type:"number",minimum:0,maximum:1e4,default:.35},export:{type:"boolean"},color:{$ref:"colorDef",default:"000000FF"}},additionalProperties:!1}]},crop_faces:{oneOf:[{type:"boolean"},{type:"object",properties:{faces:{default:1,$ref:"facesDef"},width:{type:"number",minimum:1,maximum:1e4},height:{type:"number",minimum:1,maximum:1e4},maxsize:{type:"number",minimum:0,maximum:1e4,default:.35},minsize:{type:"number",minimum:0,maximum:1e4,default:.35},buffer:{type:"integer",minimum:0,maximum:1e4},mode:{type:"string",enum:["crop","thumb","fill"],default:"thumb"}},additionalProperties:!1}]},pixelate_faces:{oneOf:[{type:"boolean"},{type:"object",properties:{faces:{$ref:"facesDef",default:"all"},maxsize:{type:"number",minimum:0,maximum:1e4,default:.35},minsize:{type:"number",minimum:0,maximum:1e4,default:.35},buffer:{type:"integer",minimum:0,maximum:1e4},amount:{type:"integer",minimum:2,maximum:100,default:10},blur:{type:"number",minimum:0,maximum:20,default:4},type:{type:"string",enum:["rect","oval"],default:"rect"}},additionalProperties:!1}]},blur_faces:{oneOf:[{type:"boolean"},{type:"object",properties:{faces:{$ref:"facesDef",default:"all"},maxsize:{type:"number",minimum:0,maximum:1e4,default:.35},minsize:{type:"number",minimum:0,maximum:1e4,default:.35},buffer:{type:"integer",minimum:0,maximum:1e4},amount:{type:"number",minimum:0,maximum:10,default:10},blur:{type:"number",minimum:0,maximum:20,default:4},type:{type:"string",enum:["rect","oval"],default:"rect"}},additionalProperties:!1}]},rounded_corners:{oneOf:[{type:"boolean"},{type:"object",properties:{radius:{oneOf:[{type:"integer",minimum:1,maximum:1e4},{type:"string",enum:["max"]}]},blur:{type:"number",minimum:0,maximum:20,default:.3},background:{$ref:"colorDef"}},additionalProperties:!1}]},vignette:{oneOf:[{type:"boolean"},{type:"object",properties:{amount:{type:"integer",minimum:0,maximum:100,default:20},blurmode:{type:"string",enum:["gaussian","linear"],default:"gaussian"},background:{$ref:"colorDef"}},additionalProperties:!1}]},polaroid:{oneOf:[{type:"boolean"},{type:"object",properties:{rotate:{type:"integer",minimum:0,maximum:359},color:{$ref:"colorDef",default:"snow"},background:{$ref:"colorDef"}},additionalProperties:!1}]},torn_edges:{oneOf:[{type:"boolean"},{type:"object",properties:{spread:{type:"array",additionalItems:!1,minItems:2,items:[{type:"integer",minimum:1,maximum:1e4,default:1},{type:"integer",minimum:1,maximum:1e4,default:10}]},background:{$ref:"colorDef"}},additionalProperties:!1}]},shadow:{oneOf:[{type:"boolean"},{type:"object",properties:{blur:{type:"number",minimum:0,maximum:20,default:100},opacity:{type:"integer",minimum:0,maximum:100,default:60},vector:{type:"array",additionalItems:!1,minItems:2,items:[{type:"integer",minimum:-1e3,maximum:1e3,default:4},{type:"integer",minimum:-1e3,maximum:1e3,default:4}]},color:{$ref:"colorDef"},background:{$ref:"colorDef"}},additionalProperties:!1}]},circle:{oneOf:[{type:"boolean"},{type:"object",properties:{background:{$ref:"colorDef"}},additionalProperties:!1}]},border:{oneOf:[{type:"boolean"},{type:"object",properties:{color:{$ref:"colorDef"},background:{$ref:"colorDef"},width:{type:"integer",minimum:0,maximum:1e3}},additionalProperties:!1}]},sharpen:{oneOf:[{type:"boolean"},{type:"object",properties:{amount:{type:"integer",minimum:0,maximum:20,default:2}},additionalProperties:!1}]},blur:{oneOf:[{type:"boolean"},{type:"object",properties:{amount:{type:"integer",minimum:0,maximum:20,default:2}},additionalProperties:!1}]},blackwhite:{oneOf:[{type:"boolean"},{type:"object",properties:{threshold:{type:"integer",minimum:0,maximum:100,default:50}},additionalProperties:!1}]},sepia:{oneOf:[{type:"boolean"},{type:"object",properties:{tone:{type:"integer",minimum:0,maximum:100,default:80}},additionalProperties:!1}]},pixelate:{oneOf:[{type:"boolean"},{type:"object",properties:{amount:{type:"integer",minimum:2,maximum:100,default:2}},additionalProperties:!1}]},oil_paint:{oneOf:[{type:"boolean"},{type:"object",properties:{amount:{type:"integer",minimum:2,maximum:100,default:2}},additionalProperties:!1}]},modulate:{oneOf:[{type:"boolean"},{type:"object",properties:{brightness:{type:"integer",minimum:0,maximum:1e4,default:100},saturation:{type:"integer",minimum:0,maximum:1e4,default:100},hue:{type:"integer",minimum:0,maximum:359,default:0}},additionalProperties:!1}]},ascii:{oneOf:[{type:"boolean"},{type:"object",properties:{foreground:{$ref:"colorDef",default:"000000FF"},background:{$ref:"colorDef",default:"FFFFFFFF"},colored:{type:"boolean",default:!1},size:{type:"integer",minimum:10,maximum:100,default:100},reverse:{type:"boolean",default:!1}},additionalProperties:!1}]},collage:{type:"object",properties:{files:{type:"array",minItems:1,items:[{type:"string"}]},margin:{type:"integer",minimum:1,maximum:100,default:10},width:{type:"integer",minimum:0,maximum:1e4},height:{type:"integer",minimum:0,maximum:1e4},color:{$ref:"colorDef",default:"FFFFFFFF"},fit:{type:"string",enum:["auto","crop"]},autorotate:{type:"boolean",default:!1}},required:["width","height","files"],additionalProperties:!1},urlscreenshot:{oneOf:[{type:"boolean"},{type:"object",properties:{agent:{type:"string",enum:["desktop","mobile"],default:"desktop"},width:{type:"integer",minimum:1,maximum:1920,default:1024},height:{type:"integer",minimum:1,maximum:8e3,default:768},mode:{type:"string",enum:["all","window"],default:"all"},delay:{type:"integer",minimum:0,maximum:2e4,default:1e3},orientation:{type:"string",enum:["portrait","landscape"],default:"portrait"},device:{type:"string",default:""}},additionalProperties:!1}]},upscale:{oneOf:[{type:"boolean"},{type:"object",properties:{noise:{type:"string",enum:["none","low","medium","high"],default:"none"},upscale:{type:"boolean",default:!0},style:{type:"string",enum:["artwork","photo"],default:"photo"}},additionalProperties:!1}]},output:{type:"object",additionalProperties:!1,properties:{format:{type:"string",enum:["doc","docx","html","jpg","odp","ods","odt","pjpg","pdf","png","ppt","pptx","svg","txt","webp","xls","xlsx"]},page:{type:"integer",minimum:1,maximum:99999},density:{type:"integer",minimum:1,maximum:500},compress:{type:"boolean"},quality:{oneOf:[{type:"string",enum:["input"]},{type:"integer",minimum:1,maximum:100,default:95}]},secure:{type:"boolean",default:!1},docinfo:{type:"boolean",default:!1},strip:{type:"boolean",default:!1},colorspace:{type:"string",enum:["rgb","cmyk","input"],default:"rgb"},background:{$ref:"colorDef"},pageformat:{type:"string",enum:["a2","a3","a4","a5","b4","b5","letter","legal","tabloid"]},pageorientation:{type:"string",enum:["landscape","portrait"]}}},pjpg:{oneOf:[{type:"boolean"},{type:"object",additionalProperties:!1,properties:{quality:{type:"integer",minimum:0,maximum:100},metadata:{type:"boolean",default:!1}}}]},quality:{type:"object",additionalProperties:!1,properties:{value:{type:"integer",minimum:1,maximum:100}}},cache:{oneOf:[{type:"boolean"},{type:"object",properties:{expiry:{type:"integer"}}}]},video_convert:{type:"object",additionalProperties:!1,properties:{width:{type:"integer",minimum:1,maximum:4096},height:{type:"integer",minimum:1,maximum:4096},preset:{type:"string"},force:{type:"boolean"},title:{type:"string"},extname:{type:"string"},upscale:{type:"boolean"},aspect_mode:{type:"string",enum:["letterbox","pad","crop","preserve","constrain"],default:"letterbox"},audio_sample_rate:{type:"integer",minimum:1,maximum:99999},two_pass:{type:"boolean"},video_bitrate:{type:"integer",minimum:1,maximum:5e3},fps:{type:"integer",minimum:1,maximum:300},keyframe_interval:{type:"integer",minimum:250,maximum:250},audio_bitrate:{type:"integer",minimum:1,maximum:999},audio_codec:{type:"string"},audio_channels:{type:"integer",minimum:1,maximum:12},clip_length:{type:"string",pattern:"^([0-1]?\\d|2[0-3])(?::([0-5]?\\d))?(?::([0-5]?\\d))?$"},clip_offset:{type:"string",pattern:"^([0-1]?\\d|2[0-3])(?::([0-5]?\\d))?(?::([0-5]?\\d))?$"},watermark_url:{type:"string"},watermark_top:{type:"integer",minimum:0,maximum:9999},watermark_right:{type:"integer",minimum:0,maximum:9999},watermark_bottom:{type:"integer",minimum:0,maximum:9999},watermark_left:{type:"integer",minimum:0,maximum:9999},frame_count:{type:"integer",minimum:1,maximum:1,default:1},filename:{type:"string"},location:{$ref:"locationsDef"},path:{type:"string"},container:{type:"string"},access:{type:"string",enum:["public","private"],default:"public"}}},store:{oneOf:[{type:"boolean"},{type:"object",additionalProperties:!1,properties:{filename:{type:"string"},location:{$ref:"locationsDef"},path:{type:"string"},container:{type:"string"},region:{$ref:"regionsDef"},access:{type:"string",enum:["public","private"],default:"private"},base64decode:{type:"boolean"},workflows:{$ref:"workflowsDef"}}}]},watermark:{type:"object",properties:{file:{type:"string"},size:{type:"number",minimum:0,maximum:500},position:{$ref:"positionDef"}},required:["file"],additionalProperties:!1},partial_blur:{type:"object",properties:{objects:{$ref:"objectsDef"},amount:{type:"number",minimum:0,maximum:20},blur:{type:"number",minimum:0,maximum:20},type:{type:"string",enum:["rect","oval"]}},required:["objects"]},partial_pixelate:{type:"object",properties:{objects:{$ref:"objectsDef"},amount:{type:"number",minimum:2,maximum:100},blur:{type:"number",minimum:0,maximum:20},type:{type:"string",enum:["rect","oval"]}},required:["objects"]},security:{type:"object",additionalProperties:!1,properties:{policy:{type:"string"},signature:{type:"string"}},required:["policy","signature"]},pdfinfo:{oneOf:[{type:"boolean"},{type:"object",properties:{colorinfo:{type:"boolean"}}}]},pdfconvert:{type:"object",additionalProperties:!1,properties:{pageorientation:{type:"string",enum:["portrait","landscape"]},pageformat:{$ref:"pageFormatDef"},pages:{$ref:"pageRangeDef"}},anyOf:[{required:["pageorientation"]},{required:["pageformat"]},{required:["pages"]}]},fallback:{type:"object",additionalProperties:!1,properties:{handle:{type:"string"},cache:{type:"integer",minimum:1,maximum:31536e3}},required:["handle"]},zip:{type:"string"},minify_css:{type:"object",additionalProperties:!1,properties:{gzip:{type:"boolean"},level:{type:"number",enum:[1,2]}}},minify_js:{type:"object",additionalProperties:!1,properties:{gzip:{type:"boolean"},use_babel_polyfill:{type:"boolean"},keep_fn_name:{type:"boolean"},keep_class_name:{type:"boolean"},mangle:{type:"boolean"},merge_vars:{type:"boolean"},remove_console:{type:"boolean"},remove_undefined:{type:"boolean"},targets:{type:"string"}}}}},lib=__webpack_require__(4282),DefinitionsSchema={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack",description:"Filestack common definitions",type:"object",additionalProperties:!1,definitions:{workflowsDef:{id:"/workflowsDef",type:"array",additionalItems:!1,minItems:1,maxItems:20,items:[{oneOf:[{type:"string"},{type:"object",additionalProperties:!1,properties:{id:{type:"string"}}}]}]},securityCallDef:{id:"/securityCallDef",oneOf:[{additionalProperties:!1,type:"string",enum:["pick","read","stat","write","writeUrl","store","convert","remove","exif","runWorkflow"]},{type:"array",additionalProperties:!1,items:[{minItems:1,maxItems:10,type:"string",additionalProperties:!1,enum:["pick","read","stat","write","writeUrl","store","convert","remove","exif","runWorkflow"]}]}]},regionsDef:{id:"/regionsDef",type:"string"},locationsDef:{id:"/locationsDef",type:"string",enum:["s3","S3","rackspace","gcs","azure","dropbox"]},colorDef:{id:"colorDef",oneOf:[{type:"string",pattern:"^([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$"},{type:"string",enum:["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fractal","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray0","gray1","gray2","gray3","gray4","gray5","gray6","gray7","gray8","gray9","gray10","gray11","gray12","gray13","gray14","gray15","gray16","gray17","gray18","gray19","gray20","gray21","gray22","gray23","gray24","gray25","gray26","gray27","gray28","gray29","gray30","gray31","gray32","gray33","gray34","gray35","gray36","gray37","gray38","gray39","gray40","gray41","gray42","gray43","gray44","gray45","gray46","gray47","gray48","gray49","gray50","gray51","gray52","gray53","gray54","gray55","gray56","gray57","gray58","gray59","gray60","gray61","gray62","gray63","gray64","gray65","gray66","gray67","gray68","gray69","gray70","gray71","gray72","gray73","gray74","gray75","gray76","gray77","gray78","gray79","gray80","gray81","gray82","gray83","gray84","gray85","gray86","gray87","gray88","gray89","gray90","gray91","gray92","gray93","gray94","gray95","gray96","gray97","gray98","gray99","gray100","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","none","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen","transparent"]}]},pageFormatDef:{id:"/pageFormatDef",type:"string",enum:["a2","a3","a4","a5","b4","b5","letter","legal","tabloid"]},pageRangeDef:{id:"/pageRangeDef",type:"array",uniqueItems:!0,items:[{oneOf:[{type:"integer",minimum:1},{type:"string",pattern:"^(\\d+(?:-\\d+)?)$|^(-\\d+)$|^(\\d+-)$",errorMessage:'Param should be provided in one of the following formats: "1,2,3,5", "1-3", "1-", "-2" '}]}]},facesDef:{id:"/facesDef",oneOf:[{type:"string",enum:["all"]},{type:"integer",minimum:1,maximum:1e3},{type:"array",uniqueItems:!0,items:[{type:"integer",minimum:1,maximum:1e3}]}]},objectsDef:{id:"/objectsDef",type:"array",minItems:1,maxItems:50,items:[{type:"array",additionalItems:!1,minItems:4,items:[{type:"integer",minimum:0,maximum:1e4},{type:"integer",minimum:0,maximum:1e4},{type:"integer",minimum:1,maximum:1e4},{type:"integer",minimum:1,maximum:1e4}]}]},positionDef:{id:"/positionDef",default:["middle","center"],oneOf:[{type:"string",enum:["top","middle","bottom","left","center","right","faces"]},{type:"array",uniqueItems:!0,additionalItems:!1,minItems:2,maxItems:2,default:["middle","center"],items:[{type:"string",enum:["top","middle","bottom"]},{type:"string",enum:["left","center","right"]}]}]}}},v=new lib.Validator;lib.Validator.prototype.customFormats.callback=function(e){return"function"==typeof e},lib.Validator.prototype.customFormats.HTMLContainer=function(e){return"string"==typeof e||e.toString&&e.toString().indexOf("HTML")>-1};var getValidator=function(e){return function(t){return v.addSchema(DefinitionsSchema),v.validate(t,e)}},utils=__webpack_require__(9414),browser=__webpack_require__(1227),browser_default=__webpack_require__.n(browser);function filelink_typeof(e){return filelink_typeof="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},filelink_typeof(e)}var debug=browser_default()("fs:filelink"),Align,FitOptions,BlurMode,ShapeType,NoiseType,StyleType,ColorspaceType,CropfacesType,ImageWatermarkPosition,SmartCropMode,AudioTypes,VideoTypes,URLScreenshotAgent,URLScreenshotMode,URLScreenshotOrientation,Locations,VideoAccess,VideoAccessMode,EnhancePreset;!function(e){e.left="left",e.right="right",e.center="center",e.bottom="bottom",e.top="top",e.faces="faces",e.middle="middle"}(Align||(Align={})),function(e){e.clip="clip",e.crop="crop",e.scale="scale",e.max="max"}(FitOptions||(FitOptions={})),function(e){e.linear="linear",e.gaussian="gaussian"}(BlurMode||(BlurMode={})),function(e){e.oval="oval",e.rect="rect"}(ShapeType||(ShapeType={})),function(e){e.none="none",e.low="low",e.medium="medium",e.high="high"}(NoiseType||(NoiseType={})),function(e){e.artwork="artwork",e.photo="photo"}(StyleType||(StyleType={})),function(e){e.RGB="RGB",e.CMYK="CMYK",e.Input="Input"}(ColorspaceType||(ColorspaceType={})),function(e){e.thumb="thumb",e.crop="crop",e.fill="fill"}(CropfacesType||(CropfacesType={})),function(e){e.top="top",e.middle="middle",e.bottom="bottom",e.left="left",e.center="center",e.right="right"}(ImageWatermarkPosition||(ImageWatermarkPosition={})),function(e){e.face="face",e.auto="auto"}(SmartCropMode||(SmartCropMode={})),function(e){e.libmp3lame="libmp3lame",e.libvorbis="libvorbis",e.libfdk_aac="libfdk_aac",e.dib_ac3="dib_ac3",e.pcm_s16le="pcm_s16le",e.mp2="mp2",e.ac3="ac3",e.eac3="eac3"}(AudioTypes||(AudioTypes={})),function(e){e.h264="h264",e.h264_hi="h264.hi",e.webm="webm",e["webm-hi"]="webm.hi",e.ogg="ogg",e["ogg-hi"]="ogg.hi",e["hls-variant"]="hls.variant",e.mp3="mp3",e.oga="oga",e.m4a="m4a",e.aac="aac",e.hls="hls.variant.audio"}(VideoTypes||(VideoTypes={})),function(e){e.desktop="desktop",e.mobile="mobile"}(URLScreenshotAgent||(URLScreenshotAgent={})),function(e){e.all="all",e.window="window"}(URLScreenshotMode||(URLScreenshotMode={})),function(e){e.portrait="portrait",e.landscape="landscape"}(URLScreenshotOrientation||(URLScreenshotOrientation={})),function(e){e.s3="s3",e.azure="azure",e.gcs="gcs",e.rackspace="rackspace",e.dropbox="dropbox"}(Locations||(Locations={})),function(e){e.private="private",e.public="public"}(VideoAccess||(VideoAccess={})),function(e){e.preserve="preserve",e.constrain="constrain",e.letterbox="letterbox",e.pad="pad",e.crop="crop"}(VideoAccessMode||(VideoAccessMode={})),function(e){e.auto="auto",e.vivid="vivid",e.beautify="beautify",e.beautifyPlus="beautify_plus",e.fixDark="fix_dark",e.fixNoise="fix_noise",e.fixTint="fix_tint",e.outdor="outdoor",e.fireworks="fireworks"}(EnhancePreset||(EnhancePreset={}));var handleRegexp=/^[\w\-]{20}|wf:\/\/[\w\-\/]{106}$/,Filelink=function(){function e(e,t){this.transforms=[],this.b64=!1,this.useValidator=!0,this.arrayToObject=function(e,t,r){return void 0===e&&(e=[]),e.reduce((function(e,n){return e[n[t]]=n[r],e}),{})},this.apikey=t,this.setSource(e)}return e.prototype.setBase64=function(e){return this.b64=e,this},e.prototype.setUseValidator=function(e){return this.useValidator=e,this},e.prototype.setCname=function(e){return this.cname=e,this},e.prototype.setCustomDomain=function(e){return this.customDomain=e,this},e.prototype.setSource=function(e){this.source=e;var t=this.isSourceExternal();if(debug("Source ".concat(e," - isExternal? ").concat(t)),t&&!this.apikey)throw new FilestackError("External sources requires apikey to handle transforms");if(!t&&"string"==typeof this.source&&!handleRegexp.test(this.source)&&-1===this.source.indexOf("filestackcontent"))throw new FilestackError("Invalid filestack source provided")},e.prototype.getValidationSchema=function(){return TransformSchema},e.prototype.getTransformations=function(){return this.useValidator&&this.validateTasks(this.transforms),this.transforms},e.prototype.toString=function(){var e=[];e.push(this.getCdnHost()),this.useValidator&&this.validateTasks(this.transforms),this.apikey&&e.push(this.apikey);var t=this.generateTransformString(),r=this.source;return this.b64?(this.transforms.length>0&&(t="b64/".concat((0,utils.b64)(JSON.stringify(this.transforms),!0))),Array.isArray(r)&&(r=this.arrayToString(r)),r="b64://".concat((0,utils.b64)(r,!0))):r=Array.isArray(r)?this.arrayToString(r):this.escapeValue(r),t.length&&e.push(t),e.push(r),e.join("/")},e.prototype.addTask=function(e,t){if(browser_default()("Add task ".concat(e," with params %O"),t),"cache"!==e&&"boolean"==typeof t){if(!t)return this;t=void 0}else"object"!==filelink_typeof(t)||Object.keys(t).length||(t=void 0);return this.transforms.push({name:e,params:t}),this},e.prototype.getTasks=function(){return this.transforms},e.prototype.reset=function(){return this.transforms=[],this},e.prototype.autoImage=function(){return this.addTask("auto_image",!0)},e.prototype.flip=function(){return this.addTask("flip",!0)},e.prototype.flop=function(){return this.addTask("flop",!0)},e.prototype.imagesize=function(){return this.addTask("imagesize",!0)},e.prototype.noMetadata=function(){return this.addTask("no_metadata",!0)},e.prototype.pjpg=function(e){return this.addTask("pjpg",e)},e.prototype.smartCrop=function(e){return this.addTask("smart_crop",e)},e.prototype.watermark=function(e){return this.addTask("watermark",e)},e.prototype.enhance=function(e){return this.addTask("enhance",e||!0)},e.prototype.redeye=function(){return this.addTask("redeye",!0)},e.prototype.monochrome=function(){return this.addTask("monochrome",!0)},e.prototype.compress=function(e){return this.addTask("compress",e||!0)},e.prototype.negative=function(){return this.addTask("negative",!0)},e.prototype.tags=function(){return this.addTask("tags",!0)},e.prototype.sfw=function(){return this.addTask("sfw",!0)},e.prototype.animate=function(e){return this.addTask("animate",e)},e.prototype.store=function(e){return this.addTask("store",e)},e.prototype.cache=function(e){return this.addTask("cache",e)},e.prototype.resize=function(e){return this.addTask("resize",e)},e.prototype.crop=function(e){return this.addTask("crop",e)},e.prototype.rotate=function(e){return this.addTask("rotate",e)},e.prototype.detectFaces=function(e){return this.addTask("detect_faces",e)},e.prototype.cropFaces=function(e){return this.addTask("crop_faces",e)},e.prototype.pixelateFaces=function(e){return this.addTask("pixelate_faces",e)},e.prototype.blurFaces=function(e){return this.addTask("blur_faces",e)},e.prototype.roundedCorners=function(e){return this.addTask("rounded_corners",e)},e.prototype.polaroid=function(e){return this.addTask("polaroid",e)},e.prototype.vignette=function(e){return this.addTask("vignette",e)},e.prototype.tornEdges=function(e){return this.addTask("torn_edges",e)},e.prototype.shadow=function(e){return this.addTask("shadow",e)},e.prototype.circle=function(e){return this.addTask("circle",e)},e.prototype.border=function(e){return this.addTask("border",e)},e.prototype.sharpen=function(e){return this.addTask("sharpen",e)},e.prototype.blur=function(e){return this.addTask("blur",e)},e.prototype.blackwhite=function(e){return this.addTask("blackwhite",e)},e.prototype.sepia=function(e){return this.addTask("sepia",e)},e.prototype.pixelate=function(e){return this.addTask("pixelate",e)},e.prototype.oilPaint=function(e){return this.addTask("oil_paint",e)},e.prototype.modulate=function(e){return this.addTask("modulate",e)},e.prototype.partialPixelate=function(e){return this.addTask("partial_pixelate",e)},e.prototype.partialBlur=function(e){return this.addTask("partial_blur",e)},e.prototype.collage=function(e){return this.addTask("collage",e)},e.prototype.upscale=function(e){return this.addTask("upscale",e)},e.prototype.ascii=function(e){return this.addTask("ascii",e)},e.prototype.quality=function(e){return this.addTask("quality",e)},e.prototype.security=function(e){return this.addTask("security",e)},e.prototype.output=function(e){return this.addTask("output",e)},e.prototype.videoConvert=function(e){return this.addTask("video_convert",e)},e.prototype.URLScreenshot=function(e){return this.addTask("urlscreenshot",e)},e.prototype.PDFInfo=function(e){return this.addTask("pdfinfo",e)},e.prototype.PDFConvert=function(e){return this.addTask("pdfconvert",e)},e.prototype.fallback=function(e){return this.addTask("fallback",e)},e.prototype.zip=function(){return this.addTask("zip",!0)},e.prototype.minifyCss=function(e){return this.addTask("minify_css",e)},e.prototype.minifyJs=function(e){return this.addTask("minify_js",e)},e.prototype.isSourceExternal=function(){if(!this.source)throw new FilestackError("Source not Set");var e=Array.isArray(this.source)?this.source:[this.source];for(var t in e)if(e.hasOwnProperty(t)&&(0===e[t].indexOf("src:")||0===e[t].indexOf("http")&&-1===e[t].indexOf("filestackcontent")))return!0;return!1},e.prototype.validateTasks=function(t){var r=e.validator(this.arrayToObject(t,"name","params"));if(r.errors.length)throw new FilestackError("Params validation error",r.errors,FilestackErrorType.VALIDATION)},e.prototype.getCdnHost=function(){var e=Object.assign({},config.urls);return this.customDomain&&(e.cdnUrl=this.customDomain),(e=(0,utils.resolveHost)(e,this.cname)).cdnUrl},e.prototype.generateTransformString=function(){var e=this,t=[];return this.transforms.forEach((function(r){t.push(e.optionToString(r.name,r.params))})),t.join("/")},e.prototype.optionToString=function(e,t){var r=this,n=[];return void 0===t?e:"boolean"==typeof t?t||"cache"!==e?e:"cache=false":(Object.keys(t).forEach((function(e){Array.isArray(t[e])?n.push("".concat(e,":").concat(r.arrayToString(t[e]))):n.push("".concat(e,":").concat(r.escapeValue(t[e])))})),"".concat(e,"=").concat(n.join(",")))},e.prototype.escapeValue=function(e){return"string"!=typeof e?e:e.indexOf("/")>-1||e.indexOf(",")>-1?'"'.concat(e,'"'):e},e.prototype.arrayToString=function(e){var t=this,r=e.map((function(e){return Array.isArray(e)?t.arrayToString(e):t.escapeValue(e)}));return"[".concat(r,"]")},e.validator=getValidator(TransformSchema),e}(),StoreParamsSchema={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Store",description:"Filestack Store Options",type:"object",additionalProperties:!1,properties:{filename:{oneOf:[{type:"string"},{format:"callback"}]},mimetype:{type:["string","null"],maxLength:255},altText:{type:["string","null"],maxLength:125},location:{$ref:"locationsDef"},path:{type:"string"},container:{type:"string"},region:{$ref:"regionsDef"},access:{type:"string",enum:["public","private"],default:"private"},base64decode:{type:"boolean"},workflows:{$ref:"workflowsDef"},disableStorageKey:{type:"boolean"},tags:{type:"object",additionalProperties:{type:"string"}},sanitizer:{oneOf:[{type:"boolean"},{type:"object",additionalProperties:!1,properties:{exclude:{type:"array",items:[{type:"string"}]},replacement:{type:"string"}}}]}}},SecurityParamsSchema={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Security",description:"Filestack Security Options",type:"object",additionalProperties:!1,properties:{expiry:{type:"number"},call:{$ref:"securityCallDef"},handle:{type:"string"},url:{type:"string"},maxSize:{type:"number"},minSize:{type:"number"},path:{type:"string"},container:{type:"string"}}},PreviewParamsSchema={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Preview",description:"Filestack Preview Options",type:"object",additionalProperties:!1,properties:{id:{type:"string"},css:{type:"string"}}},UploadParamsSchema={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Upload",description:"Filestack Upload Options",type:"object",additionalProperties:!1,properties:{partSize:{type:"integer",minimum:5242880},concurrency:{type:"integer",minimum:1,maximum:20},progressInterval:{type:"integer",minimum:1},retry:{type:"integer",minimum:0,maximum:20},retryFactor:{type:"integer"},retryMaxTime:{type:"integer"},timeout:{type:"integer",minimum:1,maximum:36e5},intelligent:{oneOf:[{type:"boolean"},{type:"string",enum:["fallback"]}]},intelligentChunkSize:{type:"integer"},onProgress:{format:"callback"},onRetry:{format:"callback"},disableIntegrityCheck:{type:"boolean"},tags:{type:"object",maxItems:10,additionalProperties:{type:"string",maxlength:256}}}},PickerParamsSchema={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Picker",description:"Filestack Picker Options",type:"object",additionalProperties:!1,properties:{allowManualRetry:{type:"boolean"},accept:{additionalProperties:!1,oneOf:[{type:"string"},{type:"array",minItems:1,items:[{type:"string"}]}]},acceptFn:{format:"callback"},websearch:{type:"object",properties:{predefinedText:{type:"string"}}},fromSources:{type:"array",items:{anyOf:[{type:"string",enum:["local_file_system","url","imagesearch","facebook","instagram","googledrive","picasa","unsplash","dropbox","webcam","video","audio","box","github","gmail","googlephotos","onedrive","onedriveforbusiness","clouddrive","customsource","tint"]},{type:"object"}]}},container:{format:"HTMLContainer"},cleanupImageExif:{oneOf:[{type:"boolean"},{type:"object",additionalProperties:!1,properties:{keepOrientation:{type:"boolean"},keepICCandAPP:{type:"boolean"}}}]},displayMode:{type:"string",enum:["inline","overlay","dropPane"]},concurrency:{type:"integer",minimum:1,maximum:20},supportEmail:{type:"string"},customSourceContainer:{type:"string"},customSourcePath:{type:"string"},customSourceName:{type:"string"},disableStorageKey:{type:"boolean"},disableTransformer:{type:"boolean"},disableAltText:{type:"boolean"},disableThumbnails:{type:"boolean"},exposeOriginalFile:{type:"boolean"},globalDropZone:{type:"boolean"},hideModalWhenUploading:{type:"boolean"},imageDim:{type:"array",minItems:2,maxItems:2,items:[{type:"integer",minimum:1}]},imageMax:{type:"array",minItems:2,maxItems:2,items:[{type:"integer",minimum:1}]},imageMin:{type:"array",minItems:2,maxItems:2,items:[{type:"integer",minimum:1}]},imageMinMaxBlock:{type:"boolean",default:!1},lang:{type:"string",enum:["ca","da","de","en","es","fr","he","it","ja","ko","nl","no","pl","pt","sv","ru","vi","zh","tr","ar"]},minFiles:{type:"integer",minimum:1,maximum:1e6},maxFiles:{type:"integer",minimum:1,maximum:1e6},maxSize:{type:"integer",minimum:1},modalSize:{type:"array",minItems:2,maxItems:2,items:[{type:"integer",minimum:1,maximum:1e6}]},rootId:{type:"string"},startUploadingWhenMaxFilesReached:{type:"boolean"},uploadInBackground:{type:"boolean"},videoResolution:{type:"string"},onCancel:{format:"callback"},onClose:{format:"callback"},onOpen:{format:"callback"},onFileSelected:{format:"callback"},onFileUploadCancel:{format:"callback"},onFileUploadStarted:{format:"callback"},onFileUploadFinished:{format:"callback"},onFileUploadFailed:{format:"callback"},onFileUploadProgress:{format:"callback"},onUploadStarted:{format:"callback"},onUploadDone:{format:"callback"},onFileCropped:{format:"callback"},storeTo:{additionalProperties:!1,type:"object",properties:{filename:{type:"string"},location:{$ref:"locationsDef"},container:{type:"string"},path:{type:"string"},region:{type:"string"},access:{type:"string",enum:["public","private"]},workflows:{$ref:"workflowsDef"}}},viewType:{type:"string",enum:["grid","list"]},transformations:{type:"object",additionalProperties:!1,properties:{config:{type:"object"},circle:{type:"boolean"},rotate:{type:"boolean"},force:{type:"boolean"},crop:{oneOf:[{type:"boolean"},{type:"object",additionalProperties:!1,properties:{force:{type:"boolean"},aspectRatio:{type:"number"}}}]}}},customText:{type:"object",patternProperties:{".*":{type:"string"}}},cropFiles:{type:"array",minItems:1},loadCss:{type:"string"},failOverMaxFiles:{type:"boolean"},dropPane:{type:"object",properties:{cropFiles:{type:"array",minItems:1},customText:{type:"string"},disableClick:{type:"boolean"},overlay:{type:"boolean"},showIcon:{type:"boolean"},showProgress:{type:"boolean"},onDragEnter:{format:"callback"},onProgress:{format:"callback"},onDragLeave:{format:"callback"},onDragOver:{format:"callback"},onDrop:{format:"callback"},onSuccess:{format:"callback"},onError:{format:"callback"},onClick:{format:"callback"}}},errorsTimeout:{type:"number",minimum:0},customAuthText:{type:"object",patternProperties:{".*":{additionalProperties:!1,type:"object",required:["top","bottom"],properties:{top:{type:"string"},bottom:{type:"string"}}}}},uploadConfig:{type:"object",additionalProperties:!1,properties:(0,tslib_es6.Cl)((0,tslib_es6.Cl)({},UploadParamsSchema.properties),{tags:{type:"object",additionalProperties:{anyOf:[{type:"string"},{format:"callback"}]}}})},useSentryBreadcrumbs:{type:"boolean"},transformationsUI:{type:"boolean"},pasteMode:{type:"object",additionalProperties:!1,properties:{pasteToFirstInViewPort:{type:"boolean"},pasteToFirstInstance:{type:"boolean"}}},disableDirectoryUpload:{type:"boolean"},miniUploader:{type:"boolean"},multipleFileUpload:{type:"boolean"},googleDriveAppID:{type:"string"}}},MetadataParamsSchema={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Metadata",description:"Filestack Metadata Options",type:"object",additionalProperties:!1,properties:{size:{type:"boolean"},mimetype:{type:"boolean"},filename:{type:"boolean"},width:{type:"boolean"},metadata:{type:"boolean"},height:{type:"boolean"},uploaded:{type:"boolean"},writeable:{type:"boolean"},cloud:{type:"boolean"},sourceUrl:{type:"boolean"},md5:{type:"boolean"},sha1:{type:"boolean"},sha224:{type:"boolean"},sha256:{type:"boolean"},sha384:{type:"boolean"},sha512:{type:"boolean"},location:{type:"boolean"},path:{type:"boolean"},container:{type:"boolean"},exif:{type:"boolean"}}},RetrieveParamsSchema={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Retrieve",description:"Filestack Retrieve Options",type:"object",additionalProperties:!1,properties:{metadata:{type:"boolean"},head:{type:"boolean"},dl:{type:"boolean"},cache:{type:"boolean"},extension:{type:"string"}}},types=__webpack_require__(5934),shouldRetry=__webpack_require__(6854),dispatch_debug=browser_default()("fs:request:dispatch"),Dispatch=function(){function e(e){this.adapter=e}return e.prototype.request=function(e){var t=this;return e.headers=e.headers||{},dispatch_debug("Dispatching request %O",e),this.adapter.request(e).catch((function(e){return dispatch_debug('Request error "%s": %O',e,e.response),t.retry(e)}))},e.prototype.retry=function(e){var t=this,r=e.config;if(!(0,shouldRetry.S)(e))return dispatch_debug("[Retry] Request error is not retriable. Exiting"),Promise.reject(e);if(!r.retry)return dispatch_debug("[Retry] Retry config not found. Exiting"),Promise.reject(e);var n=r.retry,o=r.runtime&&r.runtime.retryCount?r.runtime.retryCount:0;if(n.retry&&n.retry<=o)return dispatch_debug("[Retry] Retry attempts reached %d. Exiting",o),Promise.reject(e);var i=Math.max(Math.min(n.retryMaxTime,1e3*Math.pow(n.retryFactor,o)),1);return r.runtime=(0,tslib_es6.Cl)((0,tslib_es6.Cl)({},r.runtime),{retryCount:o+1}),dispatch_debug("[Retry] Retrying request to ".concat(r.url,", count ").concat(o," of ").concat(n.retry," - Delay: ").concat(i)),new Promise((function(e){setTimeout((function(){return e(t.request(r))}),i)}))},e}(),RequestAdapter=__webpack_require__(3574).U,FsRequest=function(){function e(e){this.defaults=e,this.dispatcher=new Dispatch(new RequestAdapter)}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.dispatch=function(e){return e.method||(e.method=types.j.GET),this.dispatcher.request(Object.assign({},this.defaults,e))},e.dispatch=function(t,r){return e.getInstance().dispatch(Object.assign({},r||{},{url:t}))},e.get=function(t,r){return e.getInstance().dispatch(Object.assign({},r||{},{method:types.j.GET,url:t}))},e.head=function(t,r){return e.getInstance().dispatch(Object.assign({},r||{},{method:types.j.HEAD,url:t}))},e.options=function(t,r){return e.getInstance().dispatch(Object.assign({},r||{},{method:types.j.OPTIONS,url:t}))},e.purge=function(t,r){return e.getInstance().dispatch(Object.assign({},r||{},{method:types.j.PURGE,url:t}))},e.delete=function(t,r){return e.getInstance().dispatch(Object.assign({},r||{},{method:types.j.DELETE,url:t}))},e.post=function(t,r,n){return e.getInstance().dispatch(Object.assign({},n||{},{method:types.j.POST,url:t,data:r}))},e.put=function(t,r,n){return e.getInstance().dispatch(Object.assign({},n||{},{method:types.j.PUT,url:t,data:r}))},e.path=function(t,r,n){return e.getInstance().dispatch(Object.assign({},n||{},{method:types.j.PATH,url:t,data:r}))},e}();const request=null;var error=__webpack_require__(9653),FsCancelToken=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,tslib_es6.C6)(t,e),t.prototype.cancel=function(e){this.emit("cancel",e),this.removeAllListeners()},t}(eventemitter3),remove=function(e,t,r,n){if(!t||"string"!=typeof t)throw new FilestackError("A valid Filestack handle is required for remove");if(!(e.policy&&e.signature||n&&n.policy&&n.signature))throw new FilestackError("Security policy and signature are required for remove");var o=e.urls.fileApiUrl,i="".concat(o,"/").concat(t),a={key:e.apikey,policy:n&&n.policy||e.policy,signature:n&&n.signature||e.signature};return r&&(a.skip_storage=!0),FsRequest.delete(i,{filestackHeaders:!1,params:(0,utils.removeEmpty)(a)})},metadata=function(e,t,r,n){if(!t||"string"!=typeof t)throw new FilestackError("A valid Filestack handle is required for metadata");var o=getValidator(MetadataParamsSchema)(r);if(o.errors.length)throw new FilestackError("Invalid metadata params",o.errors);var i=(0,tslib_es6.Cl)({},r);i.source_url=i.sourceUrl,i.policy=n&&n.policy||e.policy,i.signature=n&&n.signature||e.signature;var a="".concat(e.urls.fileApiUrl,"/").concat(t,"/metadata");return new Promise((function(e,r){FsRequest.get(a,{params:(0,utils.removeEmpty)(i),filestackHeaders:!1}).then((function(r){return e((0,tslib_es6.Cl)((0,tslib_es6.Cl)({},r.data),{handle:t}))})).catch(r)}))},download=function(e,t,r){var n=new Filelink(t,e.apikey),o=r&&r.policy||e.policy,i=r&&r.signature||e.signature;return o&&i&&n.security({signature:i,policy:o}),FsRequest.dispatch(n.toString(),{method:types.j.GET,blobResponse:!0})},retrieve=function(e,t,r,n){if(void 0===r&&(r={}),!t||0===t.length||"string"!=typeof t)throw new FilestackError("File handle is required");console.info("Retrieve method is deprecated and it will be removed. Please use metadata or download");var o=getValidator(RetrieveParamsSchema)(r);if(o.errors.length)throw new FilestackError("Invalid retrieve params",o.errors);var i=(0,tslib_es6.Cl)({},r);i.key=e.apikey,i.policy=n&&n.policy||e.policy,i.signature=n&&n.signature||e.signature;var a,s,c=types.j.GET;if(i.head&&(c=types.j.HEAD,delete i.head),i.extension&&i.extension.length&&(a=i.extension,delete i.extension),i.metadata){if(c===types.j.HEAD)throw new FilestackError("Head and metadata options cannot be used together");s=i.metadata,delete i.metadata}var u="".concat(e.urls.fileApiUrl,"/").concat(t)+(a?"+".concat(a):"")+(s?"/metadata":"");return new Promise((function(e,t){FsRequest.dispatch(u,{method:c,filestackHeaders:!1,params:(0,utils.removeEmpty)(i)}).then((function(t){return e(c===types.j.HEAD?t.headers:t.data)})).catch(t)}))};function transform_typeof(e){return transform_typeof="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},transform_typeof(e)}var toSnakeCase=function e(t){for(var r={},n=Object.keys(t),o=0;o<n.length;o++){var i=n[o].split(/(?=[A-Z])/).join("_").toLowerCase();"object"!==transform_typeof(t[n[o]])||Array.isArray(t[n[o]])?r[i]=t[n[o]]:r[i]=e(t[n[o]])}return r},EAlignOptions,EAlignFacesOptions,EFitOptions,EBlurMode,EShapeType,ENoiseType,EStyleType,EColorspaceType,ECropfacesType,ESmartCropMode,EImageWatermarkPosition,EAudioTypes,EVideoTypes,EUrlscreenshotAgent,EUrlscreenshotMode,EUrlscreenshotOrientation,EVideoLocations,EVideoAccess,EVideoAccessMode;!function(e){e.left="left",e.right="right",e.center="center",e.bottom="bottom",e.top="top"}(EAlignOptions||(EAlignOptions={})),function(e){e.left="left",e.right="right",e.center="center",e.bottom="bottom",e.top="top",e.faces="faces"}(EAlignFacesOptions||(EAlignFacesOptions={})),function(e){e.clip="clip",e.crop="crop",e.scale="scale",e.max="max"}(EFitOptions||(EFitOptions={})),function(e){e.linear="linear",e.gaussian="gaussian"}(EBlurMode||(EBlurMode={})),function(e){e.oval="oval",e.rect="rect"}(EShapeType||(EShapeType={})),function(e){e.none="none",e.low="low",e.medium="medium",e.high="high"}(ENoiseType||(ENoiseType={})),function(e){e.artwork="artwork",e.photo="photo"}(EStyleType||(EStyleType={})),function(e){e.RGB="RGB",e.CMYK="CMYK",e.Input="Input"}(EColorspaceType||(EColorspaceType={})),function(e){e.thumb="thumb",e.crop="crop",e.fill="fill"}(ECropfacesType||(ECropfacesType={})),function(e){e.fit="fit",e.auto="auto"}(ESmartCropMode||(ESmartCropMode={})),function(e){e.top="top",e.middle="middle",e.bottom="bottom",e.left="left",e.center="center",e.right="right"}(EImageWatermarkPosition||(EImageWatermarkPosition={})),function(e){e.libmp3lame="libmp3lame",e.libvorbis="libvorbis",e.libfdk_aac="libfdk_aac",e.dib_ac3="dib_ac3",e.pcm_s16le="pcm_s16le",e.mp2="mp2",e.ac3="ac3",e.eac3="eac3"}(EAudioTypes||(EAudioTypes={})),function(e){e.h264="h264",e.h264_hi="h264.hi",e.webm="webm",e["webm-hi"]="webm.hi",e.ogg="ogg",e["ogg-hi"]="ogg.hi",e["hls-variant"]="hls.variant",e.mp3="mp3",e.oga="oga",e.m4a="m4a",e.aac="aac",e.hls="hls.variant.audio"}(EVideoTypes||(EVideoTypes={})),function(e){e.desktop="desktop",e.mobile="mobile"}(EUrlscreenshotAgent||(EUrlscreenshotAgent={})),function(e){e.all="all",e.window="window"}(EUrlscreenshotMode||(EUrlscreenshotMode={})),function(e){e.portrait="portrait",e.landscape="landscape"}(EUrlscreenshotOrientation||(EUrlscreenshotOrientation={})),function(e){e.s3="s3",e.azure="azure",e.gcs="gcs",e.rackspace="rackspace",e.dropbox="dropbox"}(EVideoLocations||(EVideoLocations={})),function(e){e.private="private",e.public="public"}(EVideoAccess||(EVideoAccess={})),function(e){e.preserve="preserve",e.constrain="constrain",e.letterbox="letterbox",e.pad="pad",e.crop="crop"}(EVideoAccessMode||(EVideoAccessMode={}));var transform=function(e,t,r,n){void 0===r&&(r={}),void 0===n&&(n=!1),r=toSnakeCase(r),e.policy&&e.signature&&(r.security={policy:e.policy,signature:e.signature});var o=new Filelink(t,e.apikey);return o.setCname(e.cname),o.setBase64(n),Object.keys(r).forEach((function(e){("boolean"!=typeof r[e]||r[e]||"cache"===e)&&o.addTask(e,r[e])})),o.toString()};function store_typeof(e){return store_typeof="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},store_typeof(e)}var storeURL=function(e){var t=e.session,r=e.url,n=e.storeParams,o=e.token,i=e.security,a=e.uploadTags,s=e.headers,c=e.workflowIds;if(!r||"string"!=typeof r)return Promise.reject(new FilestackError("url is required for storeURL"));var u=getValidator(StoreParamsSchema)(n);if(u.errors.length)return Promise.reject(new FilestackError("Invalid store params",u.errors));t.policy=i&&i.policy||t.policy,t.signature=i&&i.signature||t.signature;var p=new Filelink(r,t.apikey);r&&"object"===store_typeof(n)&&null!==n&&(n.mimetype&&delete n.mimetype,n.altText&&delete n.altText),p.store(n),t.policy&&t.signature&&p.security({policy:t.policy,signature:t.signature});var l={};if(o){var f=new FsCancelToken;o.cancel=f.cancel.bind(f),l.cancelToken=f}var d=[r];return s&&(d=[{source:r,headers:s}]),c&&c.length>0&&p.addTask("store",{workflows:c}),FsRequest.post("".concat(t.urls.processUrl,"/process"),{apikey:t.apikey,sources:d,tasks:p.getTasks(),upload_tags:a},l).then((function(e){if(e.data&&e.data.handle)return e.data.upload_tags&&(e.data.uploadTags=e.data.upload_tags,delete e.data.upload_tags),(0,tslib_es6.Cl)((0,tslib_es6.Cl)({},e.data),{mimetype:e.data.type});throw new FilestackError("Invalid store response ".concat(JSON.stringify(e.data)))}))};function file_typeof(e){return file_typeof="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},file_typeof(e)}var file_File=function(){function e(e,t){this._file=e,this._sanitizeOptions=t,this._file.name=(0,utils.sanitizeName)(this._file.name,this._sanitizeOptions)}return Object.defineProperty(e.prototype,"name",{get:function(){return this._file.name},set:function(e){this._file.name=(0,utils.sanitizeName)(e,this._sanitizeOptions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filename",{get:function(){return this.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"customName",{set:function(e){switch(file_typeof(e)){case"string":this.name=e;break;case"function":if("string"!=typeof e(this))throw new Error("Name function must return a string. Current return type is ".concat(file_typeof(e)));this.name=e(this)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._file.type||"application/octet-stream"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mimetype",{get:function(){return this.type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._file.size},enumerable:!1,configurable:!0}),e.prototype.getPartsCount=function(e,t){var r=t?84825604096:63350767616;if(this._file.size>=r){var n=Math.ceil(this._file.size/1e4);return{partsCount:Math.ceil(this._file.size/n),chunkSize:n}}return{partsCount:Math.ceil(this._file.size/e),chunkSize:e}},e.prototype.getPartMetadata=function(e,t){var r=t*e;if(r>this._file.size)throw new Error("Start byte of the part is higher than buffer size");var n=Math.min(r+t,this._file.size);return{partNumber:e,startByte:r,endByte:n,size:n-r}},e.prototype.getPartByMetadata=function(e,t){return void 0===t&&(t=!0),(0,tslib_es6.sH)(this,void 0,void 0,(function(){var r;return(0,tslib_es6.YH)(this,(function(n){switch(n.label){case 0:return[4,this._file.slice(e.startByte,e.endByte)];case 1:return r=n.sent(),[2,Promise.resolve((0,tslib_es6.Cl)((0,tslib_es6.Cl)({},e),{buffer:r,md5:t?(0,utils.md5)(r):void 0}))]}}))}))},e.prototype.getChunkByMetadata=function(e,t,r,n){return void 0===n&&(n=!0),(0,tslib_es6.sH)(this,void 0,void 0,(function(){var o,i,a;return(0,tslib_es6.YH)(this,(function(s){switch(s.label){case 0:return o=e.startByte+t,i=Math.min(o+r,e.endByte),[4,this._file.slice(o,i)];case 1:return a=s.sent(),[2,Promise.resolve((0,tslib_es6.Cl)((0,tslib_es6.Cl)({},e),{buffer:a,md5:n?(0,utils.md5)(a):void 0,size:a.byteLength,startByte:o,endByte:i,offset:t}))]}}))}))},e.prototype.release=function(){this._file.release&&this._file.release()},e.prototype.toJSON=function(){return{name:this.name,status:this.status,type:this.type,size:this.size,url:this.url,handle:this.handle,uploadTags:this.uploadTags}},e}(),base64Regexp=/data:([a-zA-Z]*\/[a-zA-Z]*);base64,([^\"]*)/i,isFileBlob=function(e){return"[object Blob]"===e.toString()},isFileBrowser=function(e){return e instanceof File},isFileBase=function(e){if("string"!=typeof e)return!1;e.indexOf("base64")>-1&&(e=e.match(base64Regexp).pop());try{return btoa(atob(e))===e}catch(e){return!1}},isFileNamed=function(e){return e&&e.file&&e.name},b64toBlob=function(e,t){void 0===t&&(t=512);var r="";if(e.indexOf("base64")>-1){var n=e.match(base64Regexp);e=n.pop(),r=n[1]}for(var o=atob(e),i=[],a=0;a<o.length;a+=t){for(var s=o.slice(a,a+t),c=new Array(s.length),u=0;u<s.length;u+=1)c[u]=s.charCodeAt(u);i.push(new Uint8Array(c))}return new Blob(i,{type:r})},readFile=function(e){return(0,tslib_es6.sH)(void 0,void 0,void 0,(function(){return(0,tslib_es6.YH)(this,(function(t){return File&&FileReader&&Blob?[2,Promise.resolve({slice:function(t,r){return readPart(t,r,e)},release:function(){e=null}})]:[2,Promise.reject(new FilestackError("The File APIs are not fully supported by your browser"))]}))}))},readPart=function(e,t,r){return new Promise((function(n,o){var i=new FileReader,a=r.slice(e,t);i.onload=function(){return n(i.result)},i.onerror=o,i.readAsArrayBuffer(a)}))},getFile=function(e,t,r){var n,o;if(isFileNamed(e)&&(n=e.name,e=e.file),isFileBrowser(e))o=e,n=e.name;else if(isFileBase(e))o=b64toBlob(e);else{if(!isFileBlob(e))return Promise.reject(new FilestackError("Unsupported input file type"));o=e}return readFile(o).then((function(e){return(0,tslib_es6.sH)(void 0,void 0,void 0,(function(){var i,a;return(0,tslib_es6.YH)(this,(function(s){switch(s.label){case 0:return i=o.type,o.type&&0!==o.type.length&&"text/plain"!==o.type?[3,3]:(a=utils.getMimetype,[4,e.slice(0,4100)]);case 1:return[4,a.apply(void 0,[s.sent(),n])];case 2:i=s.sent(),s.label=3;case 3:return[2,new file_File({name:n,size:o.size,type:r||i,slice:e.slice,release:e.release},t)]}}))}))}))},file_tools_base64Regexp=/data:([a-zA-Z]*\/[a-zA-Z+]*);base64,([^\"]*)/i,file_tools_isFileBlob=function(e){return"[object Blob]"===e.toString()},file_tools_isFileNamed=function(e){return e&&e.file&&e.name},dist=__webpack_require__(3772),helpers=__webpack_require__(830),DEFAULT_PART_SIZE=6291456,MIN_PART_SIZE=5242880,INTELLIGENT_CHUNK_SIZE=8388608,INTELLIGENT_MOBILE_CHUNK_SIZE=1048576,MIN_CHUNK_SIZE=32768,DEFAULT_STORE_LOCATION="s3",abstract_debug=browser_default()("fs:upload:abstract"),UploaderAbstract=function(e){function t(t,r){void 0===r&&(r=3);var n=e.call(this)||this;return n.storeOptions=t,n.concurrency=r,n.partSize=DEFAULT_PART_SIZE,n.intelligentChunkSize=(0,utils.isMobile)()?INTELLIGENT_MOBILE_CHUNK_SIZE:INTELLIGENT_CHUNK_SIZE,n.timeout=3e4,n.uploadMode="default",n.isModeLocked=!1,n.integrityCheck=!0,n.uploadTags=null,n}return(0,tslib_es6.C6)(t,e),t.prototype.setSecurity=function(e){abstract_debug("Set security %O",e),this.security=e},t.prototype.setApikey=function(e){abstract_debug("Set apikey to ".concat(e)),this.apikey=e},t.prototype.setTimeout=function(e){abstract_debug("Set request timeout to ".concat(e)),this.timeout=e},t.prototype.setRetryConfig=function(e){abstract_debug("Set retry config to ".concat(e)),this.retryConfig=e},t.prototype.setUrl=function(e){abstract_debug("Set upload url to ".concat(e)),this.url=e},t.prototype.setUploadTags=function(e){abstract_debug("Set tags to %O",e),this.uploadTags=e},t.prototype.setIntegrityCheck=function(e){this.integrityCheck=e},t.prototype.setUploadMode=function(e,t){void 0===t&&(t=!1),!0!==this.isModeLocked?(this.isModeLocked=t,abstract_debug("Set upload mode to ".concat(e)),this.uploadMode=e):abstract_debug("Cannot switch mode to ".concat(e,". Locked! Probably mode is not supported at this apikey"))},t.prototype.setPartSize=function(e){if("default"===this.uploadMode){if(abstract_debug("Set part size to ".concat(e)),e<MIN_PART_SIZE)throw new FilestackError("Minimum part size is 5MB");this.partSize=e}else abstract_debug("Cannot set part size because upload mode is other than default. ")},t.prototype.getPartSize=function(){return this.partSize},t.prototype.setIntelligentChunkSize=function(e){if(abstract_debug("Set inteligent chunk size to ".concat(e)),e<MIN_CHUNK_SIZE)throw new FilestackError("Minimum intelligent chunk size is ".concat(MIN_CHUNK_SIZE));this.intelligentChunkSize=e},t.prototype.getIntelligentChunkSize=function(){return this.intelligentChunkSize},t.prototype.getUrl=function(){if(!this.url)throw new FilestackError("Upload url not set");return this.url},t}(node_modules_eventemitter3),s3_debug=browser_default()("fs:upload:s3"),COMPLETE_TIMEOUT=1e3,S3Uploader=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.payloads={},n.partsQueue=new dist.A({autoStart:!1,concurrency:n.concurrency}),n.cancelToken=new FsCancelToken,n}return(0,tslib_es6.C6)(t,e),t.prototype.pause=function(){this.partsQueue.pause()},t.prototype.resume=function(){this.partsQueue.isPaused&&this.partsQueue.start()},t.prototype.abort=function(e){this.partsQueue.pause(),this.partsQueue.clear(),this.cancelToken.cancel(e||"Aborted by user")},t.prototype.execute=function(){return(0,tslib_es6.sH)(this,void 0,void 0,(function(){var e,t=this;return(0,tslib_es6.YH)(this,(function(r){return e=Object.keys(this.payloads).map((function(e){return new Promise((function(r){return(0,tslib_es6.sH)(t,void 0,void 0,(function(){var t,n;return(0,tslib_es6.YH)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,5,,6]),[4,this.startRequest(e)];case 1:return o.sent(),[4,this.prepareParts(e)];case 2:return o.sent(),[4,this.startPartsQueue(e)];case 3:return o.sent(),[4,this.completeRequest(e)];case 4:return o.sent(),[3,6];case 5:return t=o.sent(),this.emit("error",t),s3_debug("[".concat(e,"] File upload failed. %O, \nDetails: %O "),t.message,t.details),[3,6];case 6:return(n=this.getPayloadById(e).file).release(),delete this.payloads[e],r(n),[2]}}))}))}))})),[2,Promise.all(e)]}))}))},t.prototype.addFile=function(e){s3_debug("Add file to queue: \n %o",e);var t="".concat((0,utils.uniqueId)(15),"_").concat((0,utils.uniqueTime)());return e.status="Initialized",this.payloads[t]={file:e,parts:[]},t},t.prototype.getUploadUrl=function(e){var t=this.getDefaultFields(e,["location_url"]).location_url;return 0===t.indexOf("http")?t:"https://".concat(t)},t.prototype.getStoreOptions=function(e){var t=(0,tslib_es6.Cl)({location:DEFAULT_STORE_LOCATION},this.storeOptions);if(this.storeOptions.disableStorageKey){var r=this.getPayloadById(e);t.path&&"/"!==t.path.substr(-1)&&(t.path="".concat(t.path,"/")),t.path="".concat(t.path?t.path:"/").concat(r.file.name),delete t.disableStorageKey}return t},t.prototype.getDefaultFields=function(e,t,r){void 0===r&&(r=!1);var n=this.getPayloadById(e),o=(0,tslib_es6.Cl)((0,tslib_es6.Cl)({},this.security),{apikey:this.apikey,uri:n.uri,location_url:n.location_url,upload_id:n.upload_id,region:n.region,alt:n.file.alt});return("intelligent"===this.uploadMode||"fallback"===this.uploadMode&&r)&&(o.fii=!0),(0,tslib_es6.Cl)((0,tslib_es6.Cl)({},(0,utils.filterObject)(o,t)),{store:this.getStoreOptions(e)})},t.prototype.getDefaultHeaders=function(e){var t={},r=this.getPayloadById(e);return r.location_region&&(t["Filestack-Upload-Region"]=r.location_region),t},t.prototype.getPayloadById=function(e){return this.payloads[e]},t.prototype.prepareParts=function(e){var t=this.getPayloadById(e).file,r=!1;["intelligent","fallback"].indexOf(this.uploadMode)>-1&&(this.partSize=INTELLIGENT_CHUNK_SIZE,r=!0);for(var n=t.getPartsCount(this.partSize,r),o=n.partsCount,i=n.chunkSize,a=[],s=0;s<o;s++)a[s]=(0,tslib_es6.Cl)((0,tslib_es6.Cl)({},t.getPartMetadata(s,i)),{offset:0});return this.payloads[e].parts=a,Promise.resolve()},t.prototype.startRequest=function(e){var t=this,r=this.getPayloadById(e);return 0===r.file.size?(this.setPayloadStatus(e,"Failed"),Promise.reject(new FilestackError('Invalid file "'.concat(r.file.name,'" size - 0'),{},FilestackErrorType.VALIDATION))):(s3_debug("[".concat(e,"] Make start request")),FsRequest.post("".concat(this.getUrl(),"/multipart/start"),(0,tslib_es6.Cl)({filename:r.file.name,mimetype:r.file.type,size:r.file.size},this.getDefaultFields(e,["apikey","policy","signature","fii"],!0)),{timeout:this.timeout,cancelToken:this.cancelToken,headers:this.getDefaultHeaders(e),retry:this.retryConfig}).then((function(r){var n=r.data;return n&&n.location_url&&n.region&&n.upload_id&&n.uri?(s3_debug("[".concat(e,"] Assign payload data: \n%O\n"),n),t.updatePayload(e,n),["intelligent","fallback"].indexOf(t.uploadMode)>-1&&(!n.upload_type||"intelligent_ingestion"!==n.upload_type)&&(s3_debug("[".concat(e,"] Intelligent Ingestion is not enabled on account, switch back to regular upload and lock mode change")),t.setUploadMode("default",!0)),n):(s3_debug("[".concat(e,"] Incorrect start response: \n%O\n"),n),t.setPayloadStatus(e,"Failed"),Promise.reject(new FilestackError("Incorrect start response",n,FilestackErrorType.REQUEST)))})).catch((function(r){return s3_debug("[".concat(e,"] Start request error %O"),r),t.setPayloadStatus(e,"Failed"),t.rejectUpload("Cannot upload file. Start request failed",r)})))},t.prototype.startPartsQueue=function(e){return(0,tslib_es6.sH)(this,void 0,void 0,(function(){var t,r,n,o=this;return(0,tslib_es6.YH)(this,(function(i){return t=this.getPayloadById(e),r=t.parts,n=r.length,s3_debug("[".concat(e,"] Create uploading queue from file. parts count - %d"),n),[2,new Promise((function(t,n){return(0,tslib_es6.sH)(o,void 0,void 0,(function(){var o,i=this;return(0,tslib_es6.YH)(this,(function(a){switch(a.label){case 0:return r.forEach((function(t){return i.partsQueue.add((function(){return i.startPart(e,t.partNumber)})).catch((function(t){return i.setPayloadStatus(e,"Failed"),s3_debug("[".concat(e,"] Failed to upload part %s"),t.message),i.partsQueue.pause(),i.partsQueue.clear(),n(t)}))})),s3_debug("[".concat(e,"] All tasks for %s enqueued. Start processing main upload queue"),e),this.emit("start"),this.partsQueue.start(),o=t,[4,this.partsQueue.onIdle()];case 1:return o.apply(void 0,[a.sent()]),[2]}}))}))}))]}))}))},t.prototype.startPart=function(e,t){return s3_debug("[".concat(e,"] Start processing part ").concat(t," with mode ").concat(this.uploadMode)),this.getPayloadById(e).file.status="Progress",("intelligent"!==this.uploadMode?this.uploadRegular:this.uploadIntelligent).apply(this,[e,t])},t.prototype.getS3PartMetadata=function(e,t,r){var n=this,o=this.getUploadUrl(e);s3_debug("[".concat(e,"] Get data for part ").concat(t.partNumber,", url ").concat(o,", Md5: ").concat(t.md5,", Size: ").concat(t.size));var i=(0,tslib_es6.Cl)((0,tslib_es6.Cl)({},this.getDefaultFields(e,["apikey","uri","region","signature","policy","upload_id","fii"])),{part:t.partNumber+1,size:t.size,offset:r});return this.integrityCheck&&t.md5&&(i.md5=t.md5),FsRequest.post("".concat(o,"/multipart/upload"),i,{headers:this.getDefaultHeaders(e),cancelToken:this.cancelToken,timeout:this.timeout,retry:this.retryConfig}).catch((function(t){return n.setPayloadStatus(e,"Failed"),n.rejectUpload("Cannot get part metadata",t)}))},t.prototype.uploadRegular=function(e,t){return(0,tslib_es6.sH)(this,void 0,void 0,(function(){var r,n,o,i,a,s,c=this;return(0,tslib_es6.YH)(this,(function(u){switch(u.label){case 0:return r=this.getPayloadById(e),n=r.parts[t],[4,r.file.getPartByMetadata(n,this.integrityCheck)];case 1:return o=u.sent(),[4,this.getS3PartMetadata(e,o)];case 2:return i=u.sent(),a=i.data,s=i.headers,s3_debug("[".concat(e,"] Received part ").concat(t," info body: \n%O\n headers: \n%O\n"),a,s),[2,FsRequest.put(a.url,o.buffer,{cancelToken:this.cancelToken,timeout:this.timeout,headers:a.headers,filestackHeaders:!1,onProgress:function(r){return c.onProgressUpdate(e,t,r.loaded)},retry:this.retryConfig&&"fallback"!==this.uploadMode?this.retryConfig:void 0}).then((function(r){if(!r.headers.etag)throw o=null,new FilestackError("Cannot upload file, check S3 bucket settings","Etag header is not exposed in CORS settings",FilestackErrorType.REQUEST);return c.setPartETag(e,t,r.headers.etag),s3_debug("[".concat(e,"] S3 Upload response headers for ").concat(t,": \n%O\n"),r.headers),c.onProgressUpdate(e,t,o.size),o=null,r})).catch((function(r){var n=r&&r.response?r.response:null;if(n&&403===n.status&&n.data&&n.data.Error&&n.data.Error.code){var i=n.data.Error.code;return Array.isArray(i)&&(i=i.pop()),"RequestTimeTooSkewed"===i?c.startPart(e,t):Promise.reject(new FilestackError("Cannot upload file",n.data.Error,FilestackErrorType.REQUEST))}return o=null,r instanceof FilestackError?Promise.reject(r):(c.onProgressUpdate(e,t,0),"fallback"===c.uploadMode&&!c.isModeLocked||"intelligent"===c.uploadMode?(s3_debug("[".concat(e,"] Regular upload failed. Switching to intelligent ingestion mode")),c.setUploadMode("intelligent"),c.startPart(e,t)):c.rejectUpload("Cannot upload file part",r))}))]}}))}))},t.prototype.uploadIntelligent=function(e,t){return(0,tslib_es6.sH)(this,void 0,void 0,(function(){var r=this;return(0,tslib_es6.YH)(this,(function(n){return[2,this.uploadNextChunk(e,t).then((function(){return r.commitPart(e,t)}))]}))}))},t.prototype.uploadNextChunk=function(e,t,r){return void 0===r&&(r=this.intelligentChunkSize),(0,tslib_es6.sH)(this,void 0,void 0,(function(){var n,o,i,a,s=this;return(0,tslib_es6.YH)(this,(function(c){switch(c.label){case 0:return n=this.getPayloadById(e),o=n.parts[t],r=o.size-o.offset,[4,n.file.getChunkByMetadata(o,o.offset,r,this.integrityCheck)];case 1:return i=c.sent(),s3_debug("[".concat(e,"] PartNum: ").concat(t,", PartSize: ").concat(o.size,", StartByte: ").concat(o.startByte,", Offset: ").concat(o.offset,", ChunkSize: ").concat(i.size,",\n Left: ").concat(o.size-o.offset-i.size)),[4,this.getS3PartMetadata(e,i,o.offset).catch((function(n){return s3_debug("[".concat(e,"] Getting chunk data for ii failed %O, Chunk size: ").concat(r,", offset ").concat(o.offset,", part ").concat(t),n),Promise.reject(n)}))];case 2:return a=c.sent().data,[2,FsRequest.put(a.url,i.buffer,{cancelToken:this.cancelToken,timeout:this.timeout,headers:a.headers,filestackHeaders:!1,onProgress:function(r){return o?s.onProgressUpdate(e,t,o.offset+r.loaded):null}}).then((function(n){s.onProgressUpdate(e,t,o.offset+i.size);var a=Math.min(o.offset+r,o.size);return s3_debug("[".concat(e,"] S3 Chunk uploaded! offset: ").concat(o.offset,", part ").concat(t,"! response headers for ").concat(t,": \n%O\n"),n.headers),s.setPartData(e,t,"offset",a),a===o.size?Promise.resolve(n):(o=null,i=null,s.uploadNextChunk(e,t,r))})).catch((function(n){var a=n&&n.response?n.response:null;if(a&&403===a.status&&a.data&&a.data.Error&&a.data.Error.code){var c=a.data.Error.code;return Array.isArray(c)&&(c=c.pop()),"RequestTimeTooSkewed"===c?s.startPart(e,t):Promise.reject(new FilestackError("Cannot upload file",a.data.Error,FilestackErrorType.REQUEST))}s.onProgressUpdate(e,t,o.offset);var u=Math.ceil(r/2);return u<MIN_CHUNK_SIZE?(s3_debug("[".concat(e,"] Minimal chunk size limit. Upload file failed!")),Promise.reject(new FilestackError("Min chunk size reached",n.data,FilestackErrorType.REQUEST))):(0,helpers.Sc)(n)?(s3_debug("[".concat(e,"] Request network error. Retry with new chunk size: ").concat(u)),s.uploadNextChunk(e,t,u)):(o=null,i=null,s.rejectUpload("Cannot upload file part (FII)",n))}))]}}))}))},t.prototype.commitPart=function(e,t){var r=this,n=this.getPayloadById(e),o=n.parts[t];return FsRequest.post("".concat(this.getUploadUrl(e),"/multipart/commit"),(0,tslib_es6.Cl)((0,tslib_es6.Cl)({},this.getDefaultFields(e,["apikey","region","upload_id","policy","signature","uri"])),{size:n.file.size,part:o.partNumber+1}),{cancelToken:this.cancelToken,timeout:this.timeout,headers:this.getDefaultHeaders(e),retry:this.retryConfig}).then((function(t){return s3_debug("[".concat(e,"] Commit Part number ").concat(o.partNumber,". Response: %O"),t.data),t})).catch((function(e){return r.rejectUpload("Cannot commit file part metadata",e)}))},t.prototype.completeRequest=function(e){var t=this,r=this.getPayloadById(e),n=[];s3_debug("[".concat(e,"] Run complete request"));for(var o=r.parts,i=o.length,a=0;a<i;a++)o[a].etag&&n.push({part_number:a+1,etag:o[a].etag});return s3_debug("[".concat(e,"] Etags %O"),n),FsRequest.post("".concat(this.getUploadUrl(e),"/multipart/complete"),(0,tslib_es6.Cl)((0,tslib_es6.Cl)({},this.getDefaultFields(e,["apikey","policy","signature","uri","region","upload_id","fii","alt"],!0)),{filename:r.file.name,mimetype:r.file.type,size:r.file.size,upload_tags:this.uploadTags&&Object.keys(this.uploadTags).length?this.uploadTags:void 0,parts:n.length?n:void 0}),{timeout:this.timeout,cancelToken:this.cancelToken,headers:this.getDefaultHeaders(e),retry:this.retryConfig}).then((function(r){if(202===r.status)return new Promise((function(r,n){setTimeout((function(){return t.completeRequest(e).then(r).catch(n)}),COMPLETE_TIMEOUT)}));var n=t.getPayloadById(e).file;return n.handle=r.data.handle,n.url=r.data.url,n.container=r.data.container,n.key=r.data.key,n.uploadTags=r.data.upload_tags,n.workflows=r.data.workflows,n.status=r.data.status,n})).catch((function(r){return t.setPayloadStatus(e,"Failed"),t.rejectUpload("Cannot complete file",r)}))},t.prototype.onProgressUpdate=function(e,t,r){this.setPartData(e,t,"progress",r),this.emitProgress()},t.prototype.emitProgress=function(){var e=0,t=0,r={};for(var n in this.payloads){var o=this.payloads[n];if("Failed"!==o.file.status){var i=o.parts.map((function(e){return e.progress||0})).reduce((function(e,t){return e+t}),0);t+=i,r[n]={totalBytes:i,totalPercent:Math.round(100*i/o.file.size)||0},e+=o.file.size}}var a={totalBytes:t||0,totalPercent:Math.round(100*t/e)||0,files:r};s3_debug("Upload progress %O",a),this.emit("progress",a)},t.prototype.updatePayload=function(e,t){this.payloads[e]=(0,tslib_es6.Cl)((0,tslib_es6.Cl)({},this.payloads[e]),t)},t.prototype.setPartETag=function(e,t,r){s3_debug("[".concat(e,"] Set ").concat(r," etag for part ").concat(t)),this.getPayloadById(e).parts[t].etag=r},t.prototype.setPartData=function(e,t,r,n){s3_debug("[".concat(e,"] Set ").concat(r," = ").concat(n," for part ").concat(t));var o=this.getPayloadById(e);o?o.parts[t][r]=n:s3_debug("[".concat(e,"] Cannot set ").concat(r," = ").concat(n," for part ").concat(t))},t.prototype.setPayloadStatus=function(e,t){s3_debug("[".concat(e,"] Set payload status to ").concat(t)),this.payloads[e]&&(this.payloads[e].file.status=t)},t.prototype.parseError=function(e){return e.response?{code:e.response.status,data:e.response.data,headers:e.response.headers}:{}},t.prototype.rejectUpload=function(e,t){return t instanceof error.d&&t.code===error.E.ABORTED?Promise.reject(new FilestackError(e,{reason:t.message},FilestackErrorType.ABORTED)):Promise.reject(new FilestackError(e,this.parseError(t),FilestackErrorType.REQUEST))},t}(UploaderAbstract),DEFAULT_PROGRESS_INTERVAL=1e3,normalizeProgress=function(e,t){return e.totalBytes=Math.max(e.totalBytes,t.totalBytes),e.totalPercent=Math.max(e.totalPercent,t.totalPercent),e},Upload=function(e){function t(t,r){void 0===t&&(t={}),void 0===r&&(r={});var n=e.call(this)||this;n.options=t,n.storeOptions=r,n.lastProgress={totalBytes:0,totalPercent:0},n.storeOptions=Object.assign({},r);var o=getValidator(UploadParamsSchema)(t);if(o.errors.length)throw new FilestackError("Invalid upload params",o.errors,FilestackErrorType.VALIDATION);var i=getValidator(StoreParamsSchema)(r);if(i.errors.length)throw new FilestackError("Invalid store upload params",i.errors,FilestackErrorType.VALIDATION);return r.filename&&(n.overrideFileName=r.filename,delete n.storeOptions.filename),n.storeOptions.sanitizer&&(n.sanitizerOptions=n.storeOptions.sanitizer,delete n.storeOptions.sanitizer),r.altText&&(n.altText=r.altText,delete n.storeOptions.altText),r.mimetype&&(n.mimetype=r.mimetype,delete n.storeOptions.mimetype),n.uploader=new S3Uploader(n.storeOptions,t.concurrency),n.uploader.setRetryConfig({retry:t.retry||10,onRetry:t.onRetry,retryFactor:t.retryFactor||2,retryMaxTime:t.retryMaxTime||15e3}),n.uploader.setTimeout(t.timeout||12e4),t.partSize&&n.uploader.setPartSize(t.partSize),t.intelligentChunkSize&&n.uploader.setIntelligentChunkSize(t.intelligentChunkSize),t.disableIntegrityCheck&&n.uploader.setIntegrityCheck(!1),t.intelligent&&n.uploader.setUploadMode("fallback"===t.intelligent?"fallback":"intelligent"),n.uploader.setUploadTags(t.tags),n.uploader.on("start",(function(){return n.emit("start")})),n.uploader.on("error",(function(e){return n.emit("error",e)})),n.uploader.on("progress",n.handleProgress.bind(n)),n}return(0,tslib_es6.C6)(t,e),t.prototype.setSession=function(e){this.uploader.setApikey(e.apikey),e.policy&&e.signature&&this.uploader.setSecurity({policy:e.policy,signature:e.signature}),this.uploader.setUrl(e.urls.uploadApiUrl)},t.prototype.setToken=function(e){var t=this;if(!e||e!==Object(e))throw new Error("Incorrect upload token. Must be instance of object");return e.pause=function(){return t.uploader.pause()},e.resume=function(){return t.uploader.resume()},e.cancel=function(){return t.uploader.abort()},e},t.prototype.setSecurity=function(e){this.uploader.setSecurity(e)},t.prototype.setUploadTags=function(e){this.uploader.setUploadTags(e)},t.prototype.upload=function(e){return(0,tslib_es6.sH)(this,void 0,void 0,(function(){var t,r;return(0,tslib_es6.YH)(this,(function(n){switch(n.label){case 0:return[4,getFile(e,this.sanitizerOptions,this.mimetype)];case 1:return(t=n.sent()).customName=this.overrideFileName,this.altText&&(t.alt=this.altText),this.uploader.addFile(t),this.startProgressInterval(),[4,this.uploader.execute()];case 2:return r=n.sent().shift(),this.stopProgressInterval(),this.uploader.removeAllListeners(),"Failed"===r.status?[2,Promise.reject(r)]:[2,Promise.resolve(r)]}}))}))},t.prototype.multiupload=function(e){return(0,tslib_es6.sH)(this,void 0,void 0,(function(){var t,r,n,o,i,a,s;return(0,tslib_es6.YH)(this,(function(c){switch(c.label){case 0:for(n in r=[],t=e)r.push(n);o=0,c.label=1;case 1:return o<r.length?(n=r[o])in t?(i=n,e.hasOwnProperty(i)?[4,getFile(e[i],this.sanitizerOptions,this.mimetype)]:[3,3]):[3,3]:[3,4];case 2:(a=c.sent()).customName=this.overrideFileName,this.altText&&(a.alt=this.altText),this.uploader.addFile(a),c.label=3;case 3:return o++,[3,1];case 4:return this.startProgressInterval(),[4,this.uploader.execute()];case 5:return s=c.sent(),this.stopProgressInterval(),this.uploader.removeAllListeners(),[2,Promise.resolve(s)]}}))}))},t.prototype.startProgressInterval=function(){var e=this;"function"==typeof this.options.onProgress&&(this.progressIntervalHandler=setInterval((function(){e.options.onProgress(e.lastProgress)}),this.options.progressInterval||DEFAULT_PROGRESS_INTERVAL),this.options.onProgress(this.lastProgress))},t.prototype.stopProgressInterval=function(){clearInterval(this.progressIntervalHandler)},t.prototype.handleProgress=function(e){if(e=normalizeProgress(e,this.lastProgress),this.lastProgress.files)for(var t in e.files)this.lastProgress.files[t]&&(e.files[t]=normalizeProgress(e.files[t],this.lastProgress.files[t]));this.lastProgress=e},t}(eventemitter3),getUrl=function(e,t,r,n){var o=(0,tslib_es6.Cl)({},r),i=n&&n.policy||e.policy,a=n&&n.signature||e.signature,s=a&&i,c=[e.urls.cdnUrl],u=o.css&&encodeURIComponent('"'.concat(o.css,'"')),p=u?"preview=css:".concat(u):"preview";return-1!==t.indexOf("src:")?c.push("".concat(e.apikey,"/").concat(p)):c.push(p),s&&c.push("security=policy:".concat(i,",signature:").concat(a)),c.push(t),c.join("/")},preview=function(e,t,r){if(!t||"string"!=typeof t)throw new Error("A valid Filestack handle or storage alias is required for preview");var n=getValidator(PreviewParamsSchema)(r);if(n.errors.length)throw new FilestackError("Invalid preview params",n.errors,FilestackErrorType.VALIDATION);var o=(0,utils.removeEmpty)(r||{}),i=getUrl(e,t,o);if(o&&o.id){var a=o.id,s=document.createElement("iframe"),c=document.getElementById(a);if(s.src=i,s.width="100%",s.height="100%",!c)throw new Error('DOM Element with id "'.concat(a,'" not found.'));return c.appendChild(s)}return window.open(i,t)},store_browser_debug=browser_default()("fs:storage"),Store=function(){function e(){this.availableTypes=[],void 0!==window.localStorage&&(this.availableTypes.push(STORE_TYPE.LOCAL),store_browser_debug("Local storage exists")),void 0!==window.sessionStorage&&(this.availableTypes.push(STORE_TYPE.SESSION),store_browser_debug("Session storage exists")),store_browser_debug("availableTypes - %O",this.availableTypes)}return e.prototype.hasAccess=function(e){return store_browser_debug("Checking access to storage for %s. Available types: %O",e,this.availableTypes),e?this.availableTypes.indexOf(e)>-1:!!this.availableTypes.length},e.prototype.getItem=function(e,t){var r=this.getStore(t);if(store_browser_debug("getItem %s from %O",e,r),r)return r.getItem(e)},e.prototype.setItem=function(e,t,r){var n=this.getStore(r);if(store_browser_debug("setItem %s to %O",e,n),n)return n.setItem(e,t)},e.prototype.removeItem=function(e,t){var r=this.getStore(t);if(store_browser_debug("removeItem %s from %O",e,r),r)return r.removeItem(e)},e.prototype.getStore=function(e){if(store_browser_debug("get store with pref type - %s",e),this.hasAccess(e))switch(e){case STORE_TYPE.LOCAL:return window.localStorage;case STORE_TYPE.SESSION:return window.sessionStorage;default:return window[this.availableTypes[0]]}else store_browser_debug("User dont have access to any storage")},e}(),STORE_TYPE;!function(e){e.SESSION="sessionStorage",e.LOCAL="localStorage"}(STORE_TYPE||(STORE_TYPE={}));var PICKER_KEY="__fs_picker_token",CALLBACK_URL_KEY="fs-tab",CloudClient=function(){function e(e,t){this.cache=!1,this.session=e,this.storeAdapter=new Store,this.cloudApiUrl=e.urls.cloudApiUrl,t&&t.sessionCache&&(this.cache=t.sessionCache)}return Object.defineProperty(e.prototype,"token",{get:function(){if(this.cache){var e=this.storeAdapter.getItem(PICKER_KEY,STORE_TYPE.LOCAL);if(e)return e}return this.isInAppBrowser?this.storeAdapter.getItem(PICKER_KEY,STORE_TYPE.SESSION):this._token},set:function(e){this.cache&&this.storeAdapter.setItem(PICKER_KEY,e,STORE_TYPE.LOCAL),this.isInAppBrowser&&this.storeAdapter.setItem(PICKER_KEY,e,STORE_TYPE.SESSION),this._token=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInAppBrowser",{get:function(){return!!(this.session&&this.session.prefetch&&this.session.prefetch.settings&&this.session.prefetch.settings.inapp_browser)&&this.session.prefetch.settings.inapp_browser},enumerable:!1,configurable:!0}),e.prototype.list=function(e,t,r){var n=this,o={apikey:this.session.apikey,clouds:e,flow:"web",token:this.token};r&&(Array.isArray(r)||(r=[r]),r.includes("application/x-subrip")&&!r.includes("application/octet-stream")&&r.push("application/octet-stream"),o.accept=r),this.isInAppBrowser&&(o.appurl=this.currentAppUrl()),this.session.policy&&this.session.signature&&(o.policy=this.session.policy,o.signature=this.session.signature);var i={};if(t){var a=new FsCancelToken;t.cancel=a.cancel.bind(a),i.cancelToken=a}return FsRequest.post("".concat(this.cloudApiUrl,"/folder/list"),o,i).then((function(e){return e.data&&e.data.token&&(n.token=e.data.token),e.data}))},e.prototype.store=function(e,t,r,n,o,i,a){var s,c=this;void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=null),void 0===r.location&&(r.location="s3");var u={apikey:this.session.apikey,token:this.token,flow:"web",upload_tags:i||void 0,clouds:(s={},s[e]={path:t,picker_session_id:a,store:(0,utils.removeEmpty)(r)},s)};"customsource"===e&&n.customSourcePath&&(u.clouds.customsource.customSourcePath=n.customSourcePath),"customsource"===e&&n.customSourceContainer&&(u.clouds.customsource.customSourceContainer=n.customSourceContainer),this.session.policy&&this.session.signature&&(u.policy=this.session.policy,u.signature=this.session.signature);var p={};if(o){var l=new FsCancelToken;o.cancel=l.cancel.bind(l),p.cancelToken=l}return FsRequest.post("".concat(this.cloudApiUrl,"/store/"),u,p).then((function(t){return t.data&&t.data.token&&(c.token=t.data.token),t.data&&t.data[e]?t.data[e]:t.data}))},e.prototype.logout=function(e){var t,r={apikey:this.session.apikey,flow:"web",token:this.token};return e?r.clouds=((t={})[e]={},t):(this.cache&&this.storeAdapter.removeItem(PICKER_KEY,STORE_TYPE.LOCAL),this.isInAppBrowser&&this.storeAdapter.removeItem(PICKER_KEY,STORE_TYPE.SESSION)),FsRequest.post("".concat(this.cloudApiUrl,"/auth/logout"),r).then((function(t){return t.data&&t.data[e]?t.data[e]:t.data}))},e.prototype.metadata=function(e,t){var r={apikey:this.session.apikey,url:e,headers:t};return this.session.policy&&this.session.signature&&(r.policy=this.session.policy,r.signature=this.session.signature),FsRequest.post("".concat(this.cloudApiUrl,"/metadata"),r).then((function(e){return e.data}))},e.prototype.tokInit=function(e){if("video"!==e&&"audio"!==e)throw new FilestackError("Type must be one of video or audio.");return FsRequest.post("".concat(this.cloudApiUrl,"/recording/").concat(e,"/init")).then((function(e){return e.data}))},e.prototype.tokStart=function(e,t,r){if("video"!==e&&"audio"!==e)throw new FilestackError("Type must be one of video or audio.");var n={apikey:t,session_id:r};return FsRequest.post("".concat(this.cloudApiUrl,"/recording/").concat(e,"/start"),n).then((function(e){return e.data}))},e.prototype.tokStop=function(e,t,r,n){if("video"!==e&&"audio"!==e)throw new FilestackError("Type must be one of video or audio.");var o={apikey:t,session_id:r,archive_id:n};return FsRequest.post("".concat(this.cloudApiUrl,"/recording/").concat(e,"/stop"),o).then((function(e){return e.data}))},e.prototype.currentAppUrl=function(){if(window.URLSearchParams){var e=new URLSearchParams(window.location.search);return e.set(CALLBACK_URL_KEY,"init"),"".concat(window.location.protocol,"//").concat(window.location.host).concat(window.location.pathname,"?").concat(e.toString())}},e}(),lodash_clonedeep=__webpack_require__(395),lodash_clonedeep_default=__webpack_require__.n(lodash_clonedeep),PrefetchEvents;!function(e){e.PICKER="picker",e.TRANSFORM_UI="transform_ui"}(PrefetchEvents||(PrefetchEvents={}));var Prefetch=function(){function e(e){this.session=e instanceof Client?e.session:e}return e.prototype.getConfig=function(e){var t=e.pickerOptions,r=e.settings,n=e.permissions,o=e.events;return(0,tslib_es6.sH)(this,void 0,void 0,(function(){var e,i,a=this;return(0,tslib_es6.YH)(this,(function(s){return e={apikey:this.session.apikey},this.session.policy&&this.session.signature&&(e.security={policy:this.session.policy,signature:this.session.signature}),r=r?(r=r.concat(["inapp_browser"])).filter((function(e,t){return r.indexOf(e)===t})):["inapp_browser"],t&&Object.keys(t).length&&(i=(0,utils.cleanUpCallbacks)(lodash_clonedeep_default()((0,tslib_es6.Cl)({},t)))),e=(0,tslib_es6.Cl)((0,tslib_es6.Cl)({},e),{permissions:n,settings:r,picker_config:i,events:o}),this.session.prefetch=null,[2,FsRequest.post("".concat(this.session.urls.uploadApiUrl,"/prefetch"),e).then((function(e){if(200!==e.status)throw new FilestackError("There is a problem with prefetch request");var r=e.data;return r.updated_config?(r.pickerOptions=a.reassignCallbacks(t,r.updated_config||{}),delete r.updated_config):r.pickerOptions=t,a.session.prefetch=r,r}))]}))}))},e.prototype.reassignCallbacks=function(e,t){if(!e||0===Object.keys(e).length)return e;for(var r in e)"function"==typeof e[r]&&(t[r]=e[r]),e[r]===Object(e[r])&&(t[r]=this.reassignCallbacks(e[r],t[r]));return t},e}(),RotateDirection,PickerDisplayMode;!function(e){e.cw="CW",e.ccw="CCW"}(RotateDirection||(RotateDirection={})),function(e){e.inline="inline",e.overlay="overlay",e.dropPane="dropPane"}(PickerDisplayMode||(PickerDisplayMode={}));var PickerLoader=function(){function e(e,t){var r=getValidator(PickerParamsSchema)(t);r.errors.length&&(r.errors.forEach((function(e){if(!e.path.includes("fromSources"))throw new FilestackError("Invalid picker params",r.errors,FilestackErrorType.VALIDATION);console.warn('Warning: Invalid source "'.concat(e.instance,'" found and removed!')),t.fromSources=t.fromSources.filter((function(t){return t!==e.instance}))})),t.fromSources.length||delete t.fromSources),this._initialized=this.loadModule(e,t)}return e.prototype.open=function(){return(0,tslib_es6.sH)(this,void 0,void 0,(function(){return(0,tslib_es6.YH)(this,(function(e){switch(e.label){case 0:return[4,this._initialized];case 1:return[4,e.sent().open()];case 2:return e.sent(),[2]}}))}))},e.prototype.crop=function(e){return(0,tslib_es6.sH)(this,void 0,void 0,(function(){return(0,tslib_es6.YH)(this,(function(t){switch(t.label){case 0:return[4,this._initialized];case 1:return[4,t.sent().crop(e)];case 2:return t.sent(),[2]}}))}))},e.prototype.close=function(){return(0,tslib_es6.sH)(this,void 0,void 0,(function(){return(0,tslib_es6.YH)(this,(function(e){switch(e.label){case 0:return[4,this._initialized];case 1:return[4,e.sent().close()];case 2:return e.sent(),[2]}}))}))},e.prototype.cancel=function(){return(0,tslib_es6.sH)(this,void 0,void 0,(function(){return(0,tslib_es6.YH)(this,(function(e){switch(e.label){case 0:return[4,this._initialized];case 1:return[4,e.sent().cancel()];case 2:return e.sent(),[2]}}))}))},e.prototype.loadModule=function(e,t){return(0,tslib_es6.sH)(this,void 0,void 0,(function(){var r;return(0,tslib_es6.YH)(this,(function(n){switch(n.label){case 0:return r=e.session.urls.pickerUrl,[4,_FilestackLoader$loadModule(_FilestackLoader$FILESTACK_MODULES.PICKER,r)];case 1:return[2,new(n.sent())(e,t)]}}))}))},e}(),picker=function(e,t){return new PickerLoader(e,t)};addBreadcrumb({category:"sdk",message:"filestack-js-sdk scope"});var Client=function(e){function t(t,r){var n=e.call(this)||this;if(n.options=r,n.forwardErrors=!0,r&&r.forwardErrors&&(n.forwardErrors=r.forwardErrors),!t||"string"!=typeof t||0===t.length)throw new Error("An apikey is required to initialize the Filestack client");var o=config.urls;if(n.session={apikey:t,urls:o},r){var i=r.cname,a=r.security;n.setSecurity(a),n.setCname(i)}return n.prefetchInstance=new Prefetch(n.session),n.cloud=new CloudClient(n.session,r),n}return(0,tslib_es6.C6)(t,e),Object.defineProperty(t.prototype,"utils",{get:function(){return utils},enumerable:!1,configurable:!0}),t.prototype.prefetch=function(e){return this.prefetchInstance.getConfig(e)},t.prototype.setSecurity=function(e){if(e&&(!e.policy||!e.signature))throw new FilestackError("Both policy and signature are required for client security");e&&e.policy&&e.signature&&(this.session.policy=e.policy,this.session.signature=e.signature)},t.prototype.setCname=function(e){e&&0!==e.length&&(this.session.cname=e,this.session.urls=utils.resolveHost(this.session.urls,e))},t.prototype.logout=function(e){return this.cloud.logout(e)},t.prototype.metadata=function(e,t,r){return metadata(this.session,e,t,r)},t.prototype.picker=function(e){return picker(this,e)},t.prototype.preview=function(e,t){return preview(this.session,e,t)},t.prototype.remove=function(e,t){return remove(this.session,e,!1,t)},t.prototype.removeMetadata=function(e,t){return remove(this.session,e,!0,t)},t.prototype.storeURL=function(e,t,r,n,o,i,a){return storeURL({session:this.session,url:e,storeParams:t,token:r,security:n,uploadTags:o,headers:i,workflowIds:a})},t.prototype.retrieve=function(e,t,r){return retrieve(this.session,e,t,r)},t.prototype.download=function(e,t){return download(this.session,e,t)},t.prototype.transform=function(e,t,r){return void 0===r&&(r=!1),transform(this.session,e,t,r)},t.prototype.upload=function(e,t,r,n,o){var i=this,a=new Upload(t,r);return a.setSession(this.session),n&&a.setToken(n),o&&a.setSecurity(o),a.on("start",(function(){return i.emit("upload.start")})),a.on("error",(function(e){i.forwardErrors&&currentScopes_withScope((function(n){n.setTag("filestack-apikey",i.session.apikey),n.setTag("filestack-version",utils.getVersion()),n.setExtra("filestack-options",i.options),n.setExtras({uploadOptions:t,storeOptions:r,details:e.details}),e.message="FS-".concat(e.message),n.captureException(e)})),i.emit("upload.error",e)})),a.upload(e)},t.prototype.multiupload=function(e,t,r,n,o){var i=this,a=new Upload(t,r);return a.setSession(this.session),n&&a.setToken(n),o&&a.setSecurity(o),a.on("start",(function(){return i.emit("upload.start")})),a.on("error",(function(e){currentScopes_withScope((function(n){n.setTag("filestack-apikey",i.session.apikey),n.setTag("filestack-version",utils.getVersion()),n.setExtra("filestack-options",i.options),n.setExtras(e.details),n.setExtras({uploadOptions:t,storeOptions:r}),n.captureException(e)})),i.emit("upload.error",e)})),a.multiupload(e)},t}(eventemitter3),Filestack=function(e,t){return new Client(e,t)},init=Filestack,version="4.3.7";_FilestackLoader$registerModule(_FilestackLoader$FILESTACK_MODULES.FILESTACK_SDK,Filestack,{version:"4.3.7"});var __webpack_exports__Align=__webpack_exports__.W3,__webpack_exports__AudioTypes=__webpack_exports__.Ew,__webpack_exports__BlurMode=__webpack_exports__.PK,__webpack_exports__Client=__webpack_exports__.Kj,__webpack_exports__ColorspaceType=__webpack_exports__.Ay,__webpack_exports__CropfacesType=__webpack_exports__.Rl,__webpack_exports__EAlignFacesOptions=__webpack_exports__.HD,__webpack_exports__EAlignOptions=__webpack_exports__.FK,__webpack_exports__EAudioTypes=__webpack_exports__.lX,__webpack_exports__EBlurMode=__webpack_exports__.m5,__webpack_exports__EColorspaceType=__webpack_exports__.Bj,__webpack_exports__ECropfacesType=__webpack_exports__.uK,__webpack_exports__EFitOptions=__webpack_exports__.Nx,__webpack_exports__EImageWatermarkPosition=__webpack_exports__.Us,__webpack_exports__ENoiseType=__webpack_exports__.uZ,__webpack_exports__EShapeType=__webpack_exports__.X5,__webpack_exports__ESmartCropMode=__webpack_exports__.wb,__webpack_exports__EStyleType=__webpack_exports__.zf,__webpack_exports__EUrlscreenshotAgent=__webpack_exports__.QS,__webpack_exports__EUrlscreenshotMode=__webpack_exports__.ar,__webpack_exports__EUrlscreenshotOrientation=__webpack_exports__.pg,__webpack_exports__EVideoAccess=__webpack_exports__.Pd,__webpack_exports__EVideoAccessMode=__webpack_exports__.Yq,__webpack_exports__EVideoLocations=__webpack_exports__.zb,__webpack_exports__EVideoTypes=__webpack_exports__.sz,__webpack_exports__EnhancePreset=__webpack_exports__.WT,__webpack_exports__Filelink=__webpack_exports__.XM,__webpack_exports__Filestack=__webpack_exports__.rv,__webpack_exports__FilestackError=__webpack_exports__.p_,__webpack_exports__FilestackErrorType=__webpack_exports__.tm,__webpack_exports__FitOptions=__webpack_exports__._7,__webpack_exports__FsCancelToken=__webpack_exports__.hs,__webpack_exports__FsHttpMethod=__webpack_exports__.jC,__webpack_exports__FsRequest=__webpack_exports__.bK,__webpack_exports__FsRequestError=__webpack_exports__.d1,__webpack_exports__FsRequestErrorCode=__webpack_exports__.EK,__webpack_exports__ImageWatermarkPosition=__webpack_exports__.z,__webpack_exports__Locations=__webpack_exports__.Hc,__webpack_exports__NoiseType=__webpack_exports__.VA,__webpack_exports__PickerDisplayMode=__webpack_exports__.kX,__webpack_exports__PrefetchEvents=__webpack_exports__.pv,__webpack_exports__ShapeType=__webpack_exports__.IO,__webpack_exports__SmartCropMode=__webpack_exports__.HQ,__webpack_exports__StyleType=__webpack_exports__.s4,__webpack_exports__TransformSchema=__webpack_exports__.QV,__webpack_exports__URLScreenshotAgent=__webpack_exports__.Dy,__webpack_exports__URLScreenshotMode=__webpack_exports__.rR,__webpack_exports__URLScreenshotOrientation=__webpack_exports__.IB,__webpack_exports__VideoAccess=__webpack_exports__.yp,__webpack_exports__VideoAccessMode=__webpack_exports__.Lt,__webpack_exports__VideoTypes=__webpack_exports__.Nu,__webpack_exports__b64=__webpack_exports__.Ly,__webpack_exports__cleanUpCallbacks=__webpack_exports__.SC,__webpack_exports__extensionToMime=__webpack_exports__.Nr,__webpack_exports__filterObject=__webpack_exports__.kJ,__webpack_exports__getMimetype=__webpack_exports__.vm,__webpack_exports__getSecurity=__webpack_exports__.RK,__webpack_exports__getVersion=__webpack_exports__.HF,__webpack_exports__init=__webpack_exports__.Ts,__webpack_exports__isFacebook=__webpack_exports__.rB,__webpack_exports__isMobile=__webpack_exports__.Fr,__webpack_exports__md5=__webpack_exports__.Fx,__webpack_exports__removeEmpty=__webpack_exports__.ef,__webpack_exports__resolveCdnUrl=__webpack_exports__.T0,__webpack_exports__resolveHost=__webpack_exports__.p0,__webpack_exports__sanitizeName=__webpack_exports__.rh,__webpack_exports__transform=__webpack_exports__.pd,__webpack_exports__uniqueId=__webpack_exports__.NF,__webpack_exports__uniqueTime=__webpack_exports__.tp,__webpack_exports__validateWebhookSignature=__webpack_exports__.qB,__webpack_exports__version=__webpack_exports__.rE;export{__webpack_exports__Align as Align,__webpack_exports__AudioTypes as AudioTypes,__webpack_exports__BlurMode as BlurMode,__webpack_exports__Client as Client,__webpack_exports__ColorspaceType as ColorspaceType,__webpack_exports__CropfacesType as CropfacesType,__webpack_exports__EAlignFacesOptions as EAlignFacesOptions,__webpack_exports__EAlignOptions as EAlignOptions,__webpack_exports__EAudioTypes as EAudioTypes,__webpack_exports__EBlurMode as EBlurMode,__webpack_exports__EColorspaceType as EColorspaceType,__webpack_exports__ECropfacesType as ECropfacesType,__webpack_exports__EFitOptions as EFitOptions,__webpack_exports__EImageWatermarkPosition as EImageWatermarkPosition,__webpack_exports__ENoiseType as ENoiseType,__webpack_exports__EShapeType as EShapeType,__webpack_exports__ESmartCropMode as ESmartCropMode,__webpack_exports__EStyleType as EStyleType,__webpack_exports__EUrlscreenshotAgent as EUrlscreenshotAgent,__webpack_exports__EUrlscreenshotMode as EUrlscreenshotMode,__webpack_exports__EUrlscreenshotOrientation as EUrlscreenshotOrientation,__webpack_exports__EVideoAccess as EVideoAccess,__webpack_exports__EVideoAccessMode as EVideoAccessMode,__webpack_exports__EVideoLocations as EVideoLocations,__webpack_exports__EVideoTypes as EVideoTypes,__webpack_exports__EnhancePreset as EnhancePreset,__webpack_exports__Filelink as Filelink,__webpack_exports__Filestack as Filestack,__webpack_exports__FilestackError as FilestackError,__webpack_exports__FilestackErrorType as FilestackErrorType,__webpack_exports__FitOptions as FitOptions,__webpack_exports__FsCancelToken as FsCancelToken,__webpack_exports__FsHttpMethod as FsHttpMethod,__webpack_exports__FsRequest as FsRequest,__webpack_exports__FsRequestError as FsRequestError,__webpack_exports__FsRequestErrorCode as FsRequestErrorCode,__webpack_exports__ImageWatermarkPosition as ImageWatermarkPosition,__webpack_exports__Locations as Locations,__webpack_exports__NoiseType as NoiseType,__webpack_exports__PickerDisplayMode as PickerDisplayMode,__webpack_exports__PrefetchEvents as PrefetchEvents,__webpack_exports__ShapeType as ShapeType,__webpack_exports__SmartCropMode as SmartCropMode,__webpack_exports__StyleType as StyleType,__webpack_exports__TransformSchema as TransformSchema,__webpack_exports__URLScreenshotAgent as URLScreenshotAgent,__webpack_exports__URLScreenshotMode as URLScreenshotMode,__webpack_exports__URLScreenshotOrientation as URLScreenshotOrientation,__webpack_exports__VideoAccess as VideoAccess,__webpack_exports__VideoAccessMode as VideoAccessMode,__webpack_exports__VideoTypes as VideoTypes,__webpack_exports__b64 as b64,__webpack_exports__cleanUpCallbacks as cleanUpCallbacks,__webpack_exports__extensionToMime as extensionToMime,__webpack_exports__filterObject as filterObject,__webpack_exports__getMimetype as getMimetype,__webpack_exports__getSecurity as getSecurity,__webpack_exports__getVersion as getVersion,__webpack_exports__init as init,__webpack_exports__isFacebook as isFacebook,__webpack_exports__isMobile as isMobile,__webpack_exports__md5 as md5,__webpack_exports__removeEmpty as removeEmpty,__webpack_exports__resolveCdnUrl as resolveCdnUrl,__webpack_exports__resolveHost as resolveHost,__webpack_exports__sanitizeName as sanitizeName,__webpack_exports__transform as transform,__webpack_exports__uniqueId as uniqueId,__webpack_exports__uniqueTime as uniqueTime,__webpack_exports__validateWebhookSignature as validateWebhookSignature,__webpack_exports__version as version};
2
+ var t,e,r={15:t=>{t.exports=EvalError},157:t=>{t.exports=Error},377:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o="undefined"!=typeof Symbol&&Symbol,i=r(4379);t.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"===n(o("foo"))&&"symbol"===n(Symbol("bar"))&&i()}},395:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}t=r.nmd(t);var o="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",c="[object Boolean]",s="[object Date]",u="[object Function]",p="[object GeneratorFunction]",l="[object Map]",f="[object Number]",h="[object Object]",d="[object Promise]",m="[object RegExp]",y="[object Set]",v="[object String]",g="[object Symbol]",b="[object WeakMap]",x="[object ArrayBuffer]",w="[object DataView]",k="[object Float32Array]",S="[object Float64Array]",E="[object Int8Array]",O="[object Int16Array]",j="[object Int32Array]",F="[object Uint8Array]",_="[object Uint8ClampedArray]",P="[object Uint16Array]",A="[object Uint32Array]",T=/\w*$/,D=/^\[object .+?Constructor\]$/,L=/^(?:0|[1-9]\d*)$/,C={};C[a]=C["[object Array]"]=C[x]=C[w]=C[c]=C[s]=C[k]=C[S]=C[E]=C[O]=C[j]=C[l]=C[f]=C[h]=C[m]=C[y]=C[v]=C[g]=C[F]=C[_]=C[P]=C[A]=!0,C["[object Error]"]=C[u]=C[b]=!1;var I="object"==(void 0===r.g?"undefined":n(r.g))&&r.g&&r.g.Object===Object&&r.g,z="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,N=I||z||Function("return this")(),R="object"==n(e)&&e&&!e.nodeType&&e,M=R&&"object"==n(t)&&t&&!t.nodeType&&t,B=M&&M.exports===R;function U(t,e){return t.set(e[0],e[1]),t}function q(t,e){return t.add(e),t}function G(t,e,r,n){var o=-1,i=t?t.length:0;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}function $(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function Z(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function V(t,e){return function(r){return t(e(r))}}function H(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var Y,W=Array.prototype,K=Function.prototype,Q=Object.prototype,J=N["__core-js_shared__"],X=(Y=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||""))?"Symbol(src)_1."+Y:"",tt=K.toString,et=Q.hasOwnProperty,rt=Q.toString,nt=RegExp("^"+tt.call(et).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ot=B?N.Buffer:void 0,it=N.Symbol,at=N.Uint8Array,ct=V(Object.getPrototypeOf,Object),st=Object.create,ut=Q.propertyIsEnumerable,pt=W.splice,lt=Object.getOwnPropertySymbols,ft=ot?ot.isBuffer:void 0,ht=V(Object.keys,Object),dt=Nt(N,"DataView"),mt=Nt(N,"Map"),yt=Nt(N,"Promise"),vt=Nt(N,"Set"),gt=Nt(N,"WeakMap"),bt=Nt(Object,"create"),xt=qt(dt),wt=qt(mt),kt=qt(yt),St=qt(vt),Et=qt(gt),Ot=it?it.prototype:void 0,jt=Ot?Ot.valueOf:void 0;function Ft(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function _t(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Pt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function At(t){this.__data__=new _t(t)}function Tt(t,e,r){var n=t[e];et.call(t,e)&&Gt(n,r)&&(void 0!==r||e in t)||(t[e]=r)}function Dt(t,e){for(var r=t.length;r--;)if(Gt(t[r][0],e))return r;return-1}function Lt(t,e,r,n,o,i,d){var b;if(n&&(b=i?n(t,o,i,d):n(t)),void 0!==b)return b;if(!Yt(t))return t;var D=$t(t);if(D){if(b=function(t){var e=t.length,r=t.constructor(e);return e&&"string"==typeof t[0]&&et.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!e)return function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}(t,b)}else{var L=Mt(t),I=L==u||L==p;if(Vt(t))return function(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}(t,e);if(L==h||L==a||I&&!i){if($(t))return i?t:{};if(b=function(t){return"function"!=typeof t.constructor||Ut(t)?{}:Yt(e=ct(t))?st(e):{};var e}(I?{}:t),!e)return function(t,e){return It(t,Rt(t),e)}(t,function(t,e){return t&&It(e,Wt(e),t)}(b,t))}else{if(!C[L])return i?t:{};b=function(t,e,r,n){var o,i=t.constructor;switch(e){case x:return Ct(t);case c:case s:return new i(+t);case w:return function(t,e){var r=e?Ct(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,n);case k:case S:case E:case O:case j:case F:case _:case P:case A:return function(t,e){var r=e?Ct(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,n);case l:return function(t,e,r){return G(e?r(Z(t),!0):Z(t),U,new t.constructor)}(t,n,r);case f:case v:return new i(t);case m:return function(t){var e=new t.constructor(t.source,T.exec(t));return e.lastIndex=t.lastIndex,e}(t);case y:return function(t,e,r){return G(e?r(H(t),!0):H(t),q,new t.constructor)}(t,n,r);case g:return o=t,jt?Object(jt.call(o)):{}}}(t,L,Lt,e)}}d||(d=new At);var z=d.get(t);if(z)return z;if(d.set(t,b),!D)var N=r?function(t){return function(t,e,r){var n=e(t);return $t(t)?n:function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}(n,r(t))}(t,Wt,Rt)}(t):Wt(t);return function(t,e){for(var r=-1,n=t?t.length:0;++r<n&&!1!==e(t[r],r););}(N||t,(function(o,i){N&&(o=t[i=o]),Tt(b,i,Lt(o,e,r,n,i,t,d))})),b}function Ct(t){var e=new t.constructor(t.byteLength);return new at(e).set(new at(t)),e}function It(t,e,r,n){r||(r={});for(var o=-1,i=e.length;++o<i;){var a=e[o],c=n?n(r[a],t[a],a,r,t):void 0;Tt(r,a,void 0===c?t[a]:c)}return r}function zt(t,e){var r,o,i=t.__data__;return("string"==(o=n(r=e))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==r:null===r)?i["string"==typeof e?"string":"hash"]:i.map}function Nt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!Yt(t)||(e=t,X&&X in e))&&(Ht(t)||$(t)?nt:D).test(qt(t));var e}(r)?r:void 0}Ft.prototype.clear=function(){this.__data__=bt?bt(null):{}},Ft.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Ft.prototype.get=function(t){var e=this.__data__;if(bt){var r=e[t];return r===o?void 0:r}return et.call(e,t)?e[t]:void 0},Ft.prototype.has=function(t){var e=this.__data__;return bt?void 0!==e[t]:et.call(e,t)},Ft.prototype.set=function(t,e){return this.__data__[t]=bt&&void 0===e?o:e,this},_t.prototype.clear=function(){this.__data__=[]},_t.prototype.delete=function(t){var e=this.__data__,r=Dt(e,t);return!(r<0||(r==e.length-1?e.pop():pt.call(e,r,1),0))},_t.prototype.get=function(t){var e=this.__data__,r=Dt(e,t);return r<0?void 0:e[r][1]},_t.prototype.has=function(t){return Dt(this.__data__,t)>-1},_t.prototype.set=function(t,e){var r=this.__data__,n=Dt(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},Pt.prototype.clear=function(){this.__data__={hash:new Ft,map:new(mt||_t),string:new Ft}},Pt.prototype.delete=function(t){return zt(this,t).delete(t)},Pt.prototype.get=function(t){return zt(this,t).get(t)},Pt.prototype.has=function(t){return zt(this,t).has(t)},Pt.prototype.set=function(t,e){return zt(this,t).set(t,e),this},At.prototype.clear=function(){this.__data__=new _t},At.prototype.delete=function(t){return this.__data__.delete(t)},At.prototype.get=function(t){return this.__data__.get(t)},At.prototype.has=function(t){return this.__data__.has(t)},At.prototype.set=function(t,e){var r=this.__data__;if(r instanceof _t){var n=r.__data__;if(!mt||n.length<199)return n.push([t,e]),this;r=this.__data__=new Pt(n)}return r.set(t,e),this};var Rt=lt?V(lt,Object):function(){return[]},Mt=function(t){return rt.call(t)};function Bt(t,e){return!!(e=null==e?i:e)&&("number"==typeof t||L.test(t))&&t>-1&&t%1==0&&t<e}function Ut(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Q)}function qt(t){if(null!=t){try{return tt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Gt(t,e){return t===e||t!=t&&e!=e}(dt&&Mt(new dt(new ArrayBuffer(1)))!=w||mt&&Mt(new mt)!=l||yt&&Mt(yt.resolve())!=d||vt&&Mt(new vt)!=y||gt&&Mt(new gt)!=b)&&(Mt=function(t){var e=rt.call(t),r=e==h?t.constructor:void 0,n=r?qt(r):void 0;if(n)switch(n){case xt:return w;case wt:return l;case kt:return d;case St:return y;case Et:return b}return e});var $t=Array.isArray;function Zt(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}(t.length)&&!Ht(t)}var Vt=ft||function(){return!1};function Ht(t){var e=Yt(t)?rt.call(t):"";return e==u||e==p}function Yt(t){var e=n(t);return!!t&&("object"==e||"function"==e)}function Wt(t){return Zt(t)?function(t,e){var r=$t(t)||function(t){return function(t){return function(t){return!!t&&"object"==n(t)}(t)&&Zt(t)}(t)&&et.call(t,"callee")&&(!ut.call(t,"callee")||rt.call(t)==a)}(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],o=r.length,i=!!o;for(var c in t)!e&&!et.call(t,c)||i&&("length"==c||Bt(c,o))||r.push(c);return r}(t):function(t){if(!Ut(t))return ht(t);var e=[];for(var r in Object(t))et.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}t.exports=function(t){return Lt(t,!0,!0)}},428:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o=r(1837),i=r(6234),a=r(1371),c=r(5605).S,s=a.ValidatorResult,u=a.ValidatorResultError,p=a.SchemaError,l=a.SchemaContext,f=function t(){this.customFormats=Object.create(t.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(d),this.attributes=Object.create(i.validators)};function h(t){var e="string"==typeof t?t:t.$ref;return"string"==typeof e&&e}f.prototype.customFormats={},f.prototype.schemas=null,f.prototype.types=null,f.prototype.attributes=null,f.prototype.unresolvedRefs=null,f.prototype.addSchema=function(t,e){var r=this;if(!t)return null;var n=c(e||"/",t),o=e||t.$id||t.id;for(var i in n.id)this.schemas[i]=n.id[i];for(var i in n.ref)this.unresolvedRefs.push(i);return this.unresolvedRefs=this.unresolvedRefs.filter((function(t){return void 0===r.schemas[t]})),this.schemas[o]},f.prototype.addSubSchemaArray=function(t,e){if(Array.isArray(e))for(var r=0;r<e.length;r++)this.addSubSchema(t,e[r])},f.prototype.addSubSchemaObject=function(t,e){if(e&&"object"==n(e))for(var r in e)this.addSubSchema(t,e[r])},f.prototype.setSchemas=function(t){this.schemas=t},f.prototype.getSchema=function(t){return this.schemas[t]},f.prototype.validate=function(t,e,r,i){if("boolean"!=typeof e&&"object"!==n(e)||null===e)throw new p("Expected `schema` to be an object or boolean");r||(r={});var a,f=e.$id||e.id,h=o.resolve(r.base||"/",f||"");if(!i){(i=new l(e,r,[],h,Object.create(this.schemas))).schemas[h]||(i.schemas[h]=e);var d=c(h,e);for(var m in d.id){var y=d.id[m];i.schemas[m]=y}}if(r.required&&void 0===t)return(a=new s(t,e,r,i)).addError("is required, but is undefined"),a;if(!(a=this.validateSchema(t,e,r,i)))throw new Error("Result undefined");if(r.throwAll&&a.errors.length)throw new u(a);return a},f.prototype.validateSchema=function(t,e,r,n){var o=new s(t,e,r,n);if("boolean"==typeof e)!0===e?e={}:!1===e&&(e={type:[]});else if(!e)throw new Error("schema is undefined");if(e.extends)if(Array.isArray(e.extends)){var c={schema:e,ctx:n};e.extends.forEach(this.schemaTraverser.bind(this,c)),e=c.schema,c.schema=null,c.ctx=null,c=null}else e=a.deepMerge(e,this.superResolve(e.extends,n));var u=h(e);if(u){var f=this.resolve(e,u,n),d=new l(f.subschema,r,n.path,f.switchSchema,n.schemas);return this.validateSchema(t,f.subschema,r,d)}var m=r&&r.skipAttributes||[];for(var y in e)if(!i.ignoreProperties[y]&&m.indexOf(y)<0){var v=null,g=this.attributes[y];if(g)v=g.call(this,t,e,r,n);else if(!1===r.allowUnknownAttributes)throw new p("Unsupported attribute: "+y,e);v&&o.importErrors(v)}if("function"==typeof r.rewrite){var b=r.rewrite.call(this,t,e,r,n);o.instance=b}return o},f.prototype.schemaTraverser=function(t,e){t.schema=a.deepMerge(t.schema,this.superResolve(e,t.ctx))},f.prototype.superResolve=function(t,e){var r=h(t);return r?this.resolve(t,r,e).subschema:t},f.prototype.resolve=function(t,e,r){if(e=r.resolve(e),r.schemas[e])return{subschema:r.schemas[e],switchSchema:e};var n=o.parse(e),i=n&&n.hash,c=i&&i.length&&e.substr(0,e.length-i.length);if(!c||!r.schemas[c])throw new p("no such schema <"+e+">",t);var s=a.objectGetPath(r.schemas[c],i.substr(1));if(void 0===s)throw new p("no such schema "+i+" located in <"+c+">",t);return{subschema:s,switchSchema:e}},f.prototype.testType=function(t,e,r,o,i){if(void 0!==i){if(null===i)throw new p('Unexpected null in "type" keyword');if("function"==typeof this.types[i])return this.types[i].call(this,t);if(i&&"object"==n(i)){var a=this.validateSchema(t,i,r,o);return void 0===a||!(a&&a.errors.length)}return!0}};var d=f.prototype.types={};d.string=function(t){return"string"==typeof t},d.number=function(t){return"number"==typeof t&&isFinite(t)},d.integer=function(t){return"number"==typeof t&&t%1==0},d.boolean=function(t){return"boolean"==typeof t},d.array=function(t){return Array.isArray(t)},d.null=function(t){return null===t},d.date=function(t){return t instanceof Date},d.any=function(t){return!0},d.object=function(t){return t&&"object"===n(t)&&!Array.isArray(t)&&!(t instanceof Date)},t.exports=f},830:(t,e,r)=>{r.d(e,{D6:()=>zt,qg:()=>i,xp:()=>It,cN:()=>Lt,Sc:()=>Rt.S});var n=r(3186),o=["expires","from","host","if-modified-since","if-unmodified-since","age","authorization","content-length","content-type","etag","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],i=function(t){var e,r,i,a={};return t?(t.split("\n").forEach((function(t){i=t.indexOf(":"),e=(0,n.Bq)(t.substr(0,i)).toLowerCase(),r=(0,n.Bq)(t.substr(i+1)),e&&(a[e]&&o.indexOf(e)>=0||(a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([r]):a[e]?a[e]+", "+r:r))})),a):a},a=function(t,e,r,n){void 0===n&&(n=!1);var o=c(e);return t||(t={}),void 0===(t=JSON.parse(JSON.stringify(t)))[e]&&void 0===t[o]?t[o]=r:n&&(delete t[e],t[o]=r),t},c=function(t){return{"content-md5":"Content-MD5",dnt:"DNT",etag:"ETag","last-event-id":"Last-Event-ID",tcn:"TCN",te:"TE","www-authenticate":"WWW-Authenticate","x-dnsprefetch-control":"X-DNSPrefetch-Control"}[t.toLowerCase()]||t.split("-").map((function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()})).join("-")},s=r(1635),u=r(6947),p=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",l=new RegExp("^["+p+"]["+p+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function f(t,e){for(var r=[],n=e.exec(t);n;){var o=[];o.startIndex=e.lastIndex-n[0].length;for(var i=n.length,a=0;a<i;a++)o.push(n[a]);r.push(o),n=e.exec(t)}return r}var h=function(t){return!(null==l.exec(t))},d={allowBooleanAttributes:!1,unpairedTags:[]};function m(t,e){e=Object.assign({},d,e);var r=[],n=!1,o=!1;"\ufeff"===t[0]&&(t=t.substr(1));for(var i=0;i<t.length;i++)if("<"===t[i]&&"?"===t[i+1]){if((i=v(t,i+=2)).err)return i}else{if("<"!==t[i]){if(y(t[i]))continue;return O("InvalidChar","char '"+t[i]+"' is not expected.",F(t,i))}var a=i;if("!"===t[++i]){i=g(t,i);continue}var c=!1;"/"===t[i]&&(c=!0,i++);for(var s="";i<t.length&&">"!==t[i]&&" "!==t[i]&&"\t"!==t[i]&&"\n"!==t[i]&&"\r"!==t[i];i++)s+=t[i];if("/"===(s=s.trim())[s.length-1]&&(s=s.substring(0,s.length-1),i--),!h(s))return O("InvalidTag",0===s.trim().length?"Invalid space after '<'.":"Tag '"+s+"' is an invalid name.",F(t,i));var u=w(t,i);if(!1===u)return O("InvalidAttr","Attributes for '"+s+"' have open quote.",F(t,i));var p=u.value;if(i=u.index,"/"===p[p.length-1]){var l=i-p.length,f=S(p=p.substring(0,p.length-1),e);if(!0!==f)return O(f.err.code,f.err.msg,F(t,l+f.err.line));n=!0}else if(c){if(!u.tagClosed)return O("InvalidTag","Closing tag '"+s+"' doesn't have proper closing.",F(t,i));if(p.trim().length>0)return O("InvalidTag","Closing tag '"+s+"' can't have attributes or invalid starting.",F(t,a));if(0===r.length)return O("InvalidTag","Closing tag '"+s+"' has not been opened.",F(t,a));var m=r.pop();if(s!==m.tagName){var b=F(t,m.tagStartPos);return O("InvalidTag","Expected closing tag '"+m.tagName+"' (opened in line "+b.line+", col "+b.col+") instead of closing tag '"+s+"'.",F(t,a))}0==r.length&&(o=!0)}else{var x=S(p,e);if(!0!==x)return O(x.err.code,x.err.msg,F(t,i-p.length+x.err.line));if(!0===o)return O("InvalidXml","Multiple possible root nodes found.",F(t,i));-1!==e.unpairedTags.indexOf(s)||r.push({tagName:s,tagStartPos:a}),n=!0}for(i++;i<t.length;i++)if("<"===t[i]){if("!"===t[i+1]){i=g(t,++i);continue}if("?"!==t[i+1])break;if((i=v(t,++i)).err)return i}else if("&"===t[i]){var k=E(t,i);if(-1==k)return O("InvalidChar","char '&' is not expected.",F(t,i));i=k}else if(!0===o&&!y(t[i]))return O("InvalidXml","Extra text at the end",F(t,i));"<"===t[i]&&i--}return n?1==r.length?O("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",F(t,r[0].tagStartPos)):!(r.length>0)||O("InvalidXml","Invalid '"+JSON.stringify(r.map((function(t){return t.tagName})),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):O("InvalidXml","Start tag expected.",1)}function y(t){return" "===t||"\t"===t||"\n"===t||"\r"===t}function v(t,e){for(var r=e;e<t.length;e++)if("?"!=t[e]&&" "!=t[e]);else{var n=t.substr(r,e-r);if(e>5&&"xml"===n)return O("InvalidXml","XML declaration allowed only at the start of the document.",F(t,e));if("?"==t[e]&&">"==t[e+1]){e++;break}}return e}function g(t,e){if(t.length>e+5&&"-"===t[e+1]&&"-"===t[e+2]){for(e+=3;e<t.length;e++)if("-"===t[e]&&"-"===t[e+1]&&">"===t[e+2]){e+=2;break}}else if(t.length>e+8&&"D"===t[e+1]&&"O"===t[e+2]&&"C"===t[e+3]&&"T"===t[e+4]&&"Y"===t[e+5]&&"P"===t[e+6]&&"E"===t[e+7]){var r=1;for(e+=8;e<t.length;e++)if("<"===t[e])r++;else if(">"===t[e]&&0==--r)break}else if(t.length>e+9&&"["===t[e+1]&&"C"===t[e+2]&&"D"===t[e+3]&&"A"===t[e+4]&&"T"===t[e+5]&&"A"===t[e+6]&&"["===t[e+7])for(e+=8;e<t.length;e++)if("]"===t[e]&&"]"===t[e+1]&&">"===t[e+2]){e+=2;break}return e}var b='"',x="'";function w(t,e){for(var r="",n="",o=!1;e<t.length;e++){if(t[e]===b||t[e]===x)""===n?n=t[e]:n!==t[e]||(n="");else if(">"===t[e]&&""===n){o=!0;break}r+=t[e]}return""===n&&{value:r,index:e,tagClosed:o}}var k=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function S(t,e){for(var r=f(t,k),n={},o=0;o<r.length;o++){if(0===r[o][1].length)return O("InvalidAttr","Attribute '"+r[o][2]+"' has no space in starting.",_(r[o]));if(void 0!==r[o][3]&&void 0===r[o][4])return O("InvalidAttr","Attribute '"+r[o][2]+"' is without value.",_(r[o]));if(void 0===r[o][3]&&!e.allowBooleanAttributes)return O("InvalidAttr","boolean attribute '"+r[o][2]+"' is not allowed.",_(r[o]));var i=r[o][2];if(!j(i))return O("InvalidAttr","Attribute '"+i+"' is an invalid name.",_(r[o]));if(n.hasOwnProperty(i))return O("InvalidAttr","Attribute '"+i+"' is repeated.",_(r[o]));n[i]=1}return!0}function E(t,e){if(";"===t[++e])return-1;if("#"===t[e])return function(t,e){var r=/\d/;for("x"===t[e]&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(";"===t[e])return e;if(!t[e].match(r))break}return-1}(t,++e);for(var r=0;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(";"===t[e])break;return-1}return e}function O(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function j(t){return h(t)}function F(t,e){var r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function _(t){return t.startIndex+t[1].length}var P={validate:m};function A(t){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A(t)}var T={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:function(){return!1},commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t},captureMetaData:!1};function D(t){return"boolean"==typeof t?{enabled:t,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,allowedTags:null,tagFilter:null}:"object"===A(t)&&null!==t?{enabled:!1!==t.enabled,maxEntitySize:null!==(e=t.maxEntitySize)&&void 0!==e?e:1e4,maxExpansionDepth:null!==(r=t.maxExpansionDepth)&&void 0!==r?r:10,maxTotalExpansions:null!==(n=t.maxTotalExpansions)&&void 0!==n?n:1e3,maxExpandedLength:null!==(o=t.maxExpandedLength)&&void 0!==o?o:1e5,allowedTags:null!==(i=t.allowedTags)&&void 0!==i?i:null,tagFilter:null!==(a=t.tagFilter)&&void 0!==a?a:null}:D(!0);var e,r,n,o,i,a}var L,C=function(t){var e=Object.assign({},T,t);return e.processEntities=D(e.processEntities),e};function I(t){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I(t)}function z(t,e,r){return(e=R(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function N(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,R(n.key),n)}}function R(t){var e=function(t){if("object"!=I(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==I(e)?e:String(e)}L="function"!=typeof Symbol?"@@xmlMetadata":Symbol("XML Node Metadata");var M=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.tagname=e,this.child=[],this[":@"]={}}var e,r,n;return e=t,n=[{key:"getMetaDataSymbol",value:function(){return L}}],(r=[{key:"add",value:function(t,e){"__proto__"===t&&(t="#__proto__"),this.child.push(z({},t,e))}},{key:"addChild",value:function(t,e){"__proto__"===t.tagname&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push(z(z({},t.tagname,t.child),":@",t[":@"])):this.child.push(z({},t.tagname,t.child)),void 0!==e&&(this.child[this.child.length-1][L]={startIndex:e})}}])&&N(e.prototype,r),n&&N(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function B(t){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},B(t)}function U(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);s=!0);}catch(t){u=!0,o=t}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return q(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?q(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function G(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,$(n.key),n)}}function $(t){var e=function(t){if("object"!=B(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=B(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==B(e)?e:String(e)}var Z=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.suppressValidationErr=!e,this.options=e}var e,r;return e=t,(r=[{key:"readDocType",value:function(t,e){var r={};if("O"!==t[e+3]||"C"!==t[e+4]||"T"!==t[e+5]||"Y"!==t[e+6]||"P"!==t[e+7]||"E"!==t[e+8])throw new Error("Invalid Tag instead of DOCTYPE");e+=9;for(var n=1,o=!1,i=!1;e<t.length;e++)if("<"!==t[e]||i)if(">"===t[e]){if(i?"-"===t[e-1]&&"-"===t[e-2]&&(i=!1,n--):n--,0===n)break}else"["===t[e]?o=!0:t[e];else{if(o&&H(t,"!ENTITY",e)){e+=7;var a=void 0,c=void 0,s=U(this.readEntityExp(t,e+1,this.suppressValidationErr),3);if(a=s[0],c=s[1],e=s[2],-1===c.indexOf("&")){var u=a.replace(/[.\-+*:]/g,"\\.");r[a]={regx:RegExp("&".concat(u,";"),"g"),val:c}}}else if(o&&H(t,"!ELEMENT",e))e+=8,e=this.readElementExp(t,e+1).index;else if(o&&H(t,"!ATTLIST",e))e+=8;else if(o&&H(t,"!NOTATION",e))e+=9,e=this.readNotationExp(t,e+1,this.suppressValidationErr).index;else{if(!H(t,"!--",e))throw new Error("Invalid DOCTYPE");i=!0}n++}if(0!==n)throw new Error("Unclosed DOCTYPE");return{entities:r,i:e}}},{key:"readEntityExp",value:function(t,e){e=V(t,e);for(var r="";e<t.length&&!/\s/.test(t[e])&&'"'!==t[e]&&"'"!==t[e];)r+=t[e],e++;if(Y(r),e=V(t,e),!this.suppressValidationErr){if("SYSTEM"===t.substring(e,e+6).toUpperCase())throw new Error("External entities are not supported");if("%"===t[e])throw new Error("Parameter entities are not supported")}var n,o=U(this.readIdentifierVal(t,e,"entity"),2);if(e=o[0],n=o[1],!1!==this.options.enabled&&this.options.maxEntitySize&&n.length>this.options.maxEntitySize)throw new Error('Entity "'.concat(r,'" size (').concat(n.length,") exceeds maximum allowed size (").concat(this.options.maxEntitySize,")"));return[r,n,--e]}},{key:"readNotationExp",value:function(t,e){e=V(t,e);for(var r="";e<t.length&&!/\s/.test(t[e]);)r+=t[e],e++;!this.suppressValidationErr&&Y(r),e=V(t,e);var n=t.substring(e,e+6).toUpperCase();if(!this.suppressValidationErr&&"SYSTEM"!==n&&"PUBLIC"!==n)throw new Error('Expected SYSTEM or PUBLIC, found "'.concat(n,'"'));e+=n.length,e=V(t,e);var o=null,i=null;if("PUBLIC"===n){var a=U(this.readIdentifierVal(t,e,"publicIdentifier"),2);if(e=a[0],o=a[1],'"'===t[e=V(t,e)]||"'"===t[e]){var c=U(this.readIdentifierVal(t,e,"systemIdentifier"),2);e=c[0],i=c[1]}}else if("SYSTEM"===n){var s=U(this.readIdentifierVal(t,e,"systemIdentifier"),2);if(e=s[0],i=s[1],!this.suppressValidationErr&&!i)throw new Error("Missing mandatory system identifier for SYSTEM notation")}return{notationName:r,publicIdentifier:o,systemIdentifier:i,index:--e}}},{key:"readIdentifierVal",value:function(t,e,r){var n="",o=t[e];if('"'!==o&&"'"!==o)throw new Error('Expected quoted string, found "'.concat(o,'"'));for(e++;e<t.length&&t[e]!==o;)n+=t[e],e++;if(t[e]!==o)throw new Error("Unterminated ".concat(r," value"));return[++e,n]}},{key:"readElementExp",value:function(t,e){e=V(t,e);for(var r="";e<t.length&&!/\s/.test(t[e]);)r+=t[e],e++;if(!this.suppressValidationErr&&!h(r))throw new Error('Invalid element name: "'.concat(r,'"'));var n="";if("E"===t[e=V(t,e)]&&H(t,"MPTY",e))e+=4;else if("A"===t[e]&&H(t,"NY",e))e+=2;else if("("===t[e]){for(e++;e<t.length&&")"!==t[e];)n+=t[e],e++;if(")"!==t[e])throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error('Invalid Element Expression, found "'.concat(t[e],'"'));return{elementName:r,contentModel:n.trim(),index:e}}},{key:"readAttlistExp",value:function(t,e){e=V(t,e);for(var r="";e<t.length&&!/\s/.test(t[e]);)r+=t[e],e++;Y(r),e=V(t,e);for(var n="";e<t.length&&!/\s/.test(t[e]);)n+=t[e],e++;if(!Y(n))throw new Error('Invalid attribute name: "'.concat(n,'"'));e=V(t,e);var o="";if("NOTATION"===t.substring(e,e+8).toUpperCase()){if(o="NOTATION","("!==t[e=V(t,e+=8)])throw new Error("Expected '(', found \"".concat(t[e],'"'));e++;for(var i=[];e<t.length&&")"!==t[e];){for(var a="";e<t.length&&"|"!==t[e]&&")"!==t[e];)a+=t[e],e++;if(!Y(a=a.trim()))throw new Error('Invalid notation name: "'.concat(a,'"'));i.push(a),"|"===t[e]&&(e++,e=V(t,e))}if(")"!==t[e])throw new Error("Unterminated list of notations");e++,o+=" ("+i.join("|")+")"}else{for(;e<t.length&&!/\s/.test(t[e]);)o+=t[e],e++;if(!this.suppressValidationErr&&!["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"].includes(o.toUpperCase()))throw new Error('Invalid attribute type: "'.concat(o,'"'))}e=V(t,e);var c="";if("#REQUIRED"===t.substring(e,e+8).toUpperCase())c="#REQUIRED",e+=8;else if("#IMPLIED"===t.substring(e,e+7).toUpperCase())c="#IMPLIED",e+=7;else{var s=U(this.readIdentifierVal(t,e,"ATTLIST"),2);e=s[0],c=s[1]}return{elementName:r,attributeName:n,attributeType:o,defaultValue:c,index:e}}}])&&G(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),V=function(t,e){for(;e<t.length&&/\s/.test(t[e]);)e++;return e};function H(t,e,r){for(var n=0;n<e.length;n++)if(e[n]!==t[r+n+1])return!1;return!0}function Y(t){if(h(t))return t;throw new Error("Invalid entity name ".concat(t))}var W=/^[-+]?0x[a-fA-F0-9]+$/,K=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,Q={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};var J=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function X(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function tt(t,e,r){return(e=ot(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function et(t){return et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},et(t)}function rt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ot(n.key),n)}}function nt(t,e,r){return e&&rt(t.prototype,e),r&&rt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ot(t){var e=function(t){if("object"!=et(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=et(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==et(e)?e:String(e)}var it=nt((function t(e){var r;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:function(t,e){return xt(e,10,"&#")}},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:function(t,e){return xt(e,16,"&#x")}}},this.addExternalEntities=at,this.parseXml=lt,this.parseTextData=ct,this.resolveNameSpace=st,this.buildAttributesMap=pt,this.isItStopNode=mt,this.replaceEntitiesValue=ht,this.readStopNodeData=gt,this.saveTextToParentTag=dt,this.addChild=ft,this.ignoreAttributesFn="function"==typeof(r=this.options.ignoreAttributes)?r:Array.isArray(r)?function(t){var e,n=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return X(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?X(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}(r);try{for(n.s();!(e=n.n()).done;){var o=e.value;if("string"==typeof o&&t===o)return!0;if(o instanceof RegExp&&o.test(t))return!0}}catch(t){n.e(t)}finally{n.f()}}:function(){return!1},this.entityExpansionCount=0,this.currentExpandedLength=0,this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodesExact=new Set,this.stopNodesWildcard=new Set;for(var n=0;n<this.options.stopNodes.length;n++){var o=this.options.stopNodes[n];"string"==typeof o&&(o.startsWith("*.")?this.stopNodesWildcard.add(o.substring(2)):this.stopNodesExact.add(o))}}}));function at(t){for(var e=Object.keys(t),r=0;r<e.length;r++){var n=e[r],o=n.replace(/[.\-+*:]/g,"\\.");this.lastEntities[n]={regex:new RegExp("&"+o+";","g"),val:t[n]}}}function ct(t,e,r,n,o,i,a){if(void 0!==t&&(this.options.trimValues&&!n&&(t=t.trim()),t.length>0)){a||(t=this.replaceEntitiesValue(t,e,r));var c=this.options.tagValueProcessor(e,t,r,o,i);return null==c?t:et(c)!==et(t)||c!==t?c:this.options.trimValues||t.trim()===t?bt(t,this.options.parseTagValue,this.options.numberParseOptions):t}}function st(t){if(this.options.removeNSPrefix){var e=t.split(":"),r="/"===t.charAt(0)?"/":"";if("xmlns"===e[0])return"";2===e.length&&(t=r+e[1])}return t}var ut=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function pt(t,e,r){if(!0!==this.options.ignoreAttributes&&"string"==typeof t){for(var n=f(t,ut),o=n.length,i={},a=0;a<o;a++){var c=this.resolveNameSpace(n[a][1]);if(!this.ignoreAttributesFn(c,e)){var s=n[a][4],u=this.options.attributeNamePrefix+c;if(c.length)if(this.options.transformAttributeName&&(u=this.options.transformAttributeName(u)),"__proto__"===u&&(u="#__proto__"),void 0!==s){this.options.trimValues&&(s=s.trim()),s=this.replaceEntitiesValue(s,r,e);var p=this.options.attributeValueProcessor(c,s,e);null==p?i[u]=s:et(p)!==et(s)||p!==s?i[u]=p:i[u]=bt(s,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(i[u]=!0)}}if(!Object.keys(i).length)return;if(this.options.attributesGroupName){var l={};return l[this.options.attributesGroupName]=i,l}return i}}var lt=function(t){t=t.replace(/\r\n?/g,"\n");var e=new M("!xml"),r=e,n="",o="";this.entityExpansionCount=0,this.currentExpandedLength=0;for(var i=new Z(this.options.processEntities),a=0;a<t.length;a++)if("<"===t[a])if("/"===t[a+1]){var c=yt(t,">",a,"Closing Tag is not closed."),s=t.substring(a+2,c).trim();if(this.options.removeNSPrefix){var u=s.indexOf(":");-1!==u&&(s=s.substr(u+1))}this.options.transformTagName&&(s=this.options.transformTagName(s)),r&&(n=this.saveTextToParentTag(n,r,o));var p=o.substring(o.lastIndexOf(".")+1);if(s&&-1!==this.options.unpairedTags.indexOf(s))throw new Error("Unpaired tag can not be used as closing tag: </".concat(s,">"));var l=0;p&&-1!==this.options.unpairedTags.indexOf(p)?(l=o.lastIndexOf(".",o.lastIndexOf(".")-1),this.tagsNodeStack.pop()):l=o.lastIndexOf("."),o=o.substring(0,l),r=this.tagsNodeStack.pop(),n="",a=c}else if("?"===t[a+1]){var f=vt(t,a,!1,"?>");if(!f)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,o),this.options.ignoreDeclaration&&"?xml"===f.tagName||this.options.ignorePiTags);else{var h=new M(f.tagName);h.add(this.options.textNodeName,""),f.tagName!==f.tagExp&&f.attrExpPresent&&(h[":@"]=this.buildAttributesMap(f.tagExp,o,f.tagName)),this.addChild(r,h,o,a)}a=f.closeIndex+1}else if("!--"===t.substr(a+1,3)){var d=yt(t,"--\x3e",a+4,"Comment is not closed.");if(this.options.commentPropName){var m=t.substring(a+4,d-2);n=this.saveTextToParentTag(n,r,o),r.add(this.options.commentPropName,[tt({},this.options.textNodeName,m)])}a=d}else if("!D"===t.substr(a+1,2)){var y=i.readDocType(t,a);this.docTypeEntities=y.entities,a=y.i}else if("!["===t.substr(a+1,2)){var v=yt(t,"]]>",a,"CDATA is not closed.")-2,g=t.substring(a+9,v);n=this.saveTextToParentTag(n,r,o);var b=this.parseTextData(g,r.tagname,o,!0,!1,!0,!0);null==b&&(b=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[tt({},this.options.textNodeName,g)]):r.add(this.options.textNodeName,b),a=v+2}else{var x=vt(t,a,this.options.removeNSPrefix),w=x.tagName,k=x.rawTagName,S=x.tagExp,E=x.attrExpPresent,O=x.closeIndex;if(this.options.transformTagName){var j=this.options.transformTagName(w);S===w&&(S=j),w=j}r&&n&&"!xml"!==r.tagname&&(n=this.saveTextToParentTag(n,r,o,!1));var F=r;F&&-1!==this.options.unpairedTags.indexOf(F.tagname)&&(r=this.tagsNodeStack.pop(),o=o.substring(0,o.lastIndexOf("."))),w!==e.tagname&&(o+=o?"."+w:w);var _=a;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,o,w)){var P="";if(S.length>0&&S.lastIndexOf("/")===S.length-1)"/"===w[w.length-1]?(w=w.substr(0,w.length-1),o=o.substr(0,o.length-1),S=w):S=S.substr(0,S.length-1),a=x.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(w))a=x.closeIndex;else{var A=this.readStopNodeData(t,k,O+1);if(!A)throw new Error("Unexpected end of ".concat(k));a=A.i,P=A.tagContent}var T=new M(w);w!==S&&E&&(T[":@"]=this.buildAttributesMap(S,o,w)),P&&(P=this.parseTextData(P,w,o,!0,E,!0,!0)),o=o.substr(0,o.lastIndexOf(".")),T.add(this.options.textNodeName,P),this.addChild(r,T,o,_)}else{if(S.length>0&&S.lastIndexOf("/")===S.length-1){if("/"===w[w.length-1]?(w=w.substr(0,w.length-1),o=o.substr(0,o.length-1),S=w):S=S.substr(0,S.length-1),this.options.transformTagName){var D=this.options.transformTagName(w);S===w&&(S=D),w=D}var L=new M(w);w!==S&&E&&(L[":@"]=this.buildAttributesMap(S,o,w)),this.addChild(r,L,o,_),o=o.substr(0,o.lastIndexOf("."))}else{var C=new M(w);this.tagsNodeStack.push(r),w!==S&&E&&(C[":@"]=this.buildAttributesMap(S,o,w)),this.addChild(r,C,o,_),r=C}n="",a=O}}else n+=t[a];return e.child};function ft(t,e,r,n){this.options.captureMetaData||(n=void 0);var o=this.options.updateTag(e.tagname,r,e[":@"]);!1===o||("string"==typeof o?(e.tagname=o,t.addChild(e,n)):t.addChild(e,n))}var ht=function(t,e,r){if(-1===t.indexOf("&"))return t;var n=this.options.processEntities;if(!n.enabled)return t;if(n.allowedTags&&!n.allowedTags.includes(e))return t;if(n.tagFilter&&!n.tagFilter(e,r))return t;for(var o in this.docTypeEntities){var i=this.docTypeEntities[o],a=t.match(i.regx);if(a){if(this.entityExpansionCount+=a.length,n.maxTotalExpansions&&this.entityExpansionCount>n.maxTotalExpansions)throw new Error("Entity expansion limit exceeded: ".concat(this.entityExpansionCount," > ").concat(n.maxTotalExpansions));var c=t.length;if(t=t.replace(i.regx,i.val),n.maxExpandedLength&&(this.currentExpandedLength+=t.length-c,this.currentExpandedLength>n.maxExpandedLength))throw new Error("Total expanded content size exceeded: ".concat(this.currentExpandedLength," > ").concat(n.maxExpandedLength))}}if(-1===t.indexOf("&"))return t;for(var s in this.lastEntities){var u=this.lastEntities[s];t=t.replace(u.regex,u.val)}if(-1===t.indexOf("&"))return t;if(this.options.htmlEntities)for(var p in this.htmlEntities){var l=this.htmlEntities[p];t=t.replace(l.regex,l.val)}return t.replace(this.ampEntity.regex,this.ampEntity.val)};function dt(t,e,r,n){return t&&(void 0===n&&(n=0===e.child.length),void 0!==(t=this.parseTextData(t,e.tagname,r,!1,!!e[":@"]&&0!==Object.keys(e[":@"]).length,n))&&""!==t&&e.add(this.options.textNodeName,t),t=""),t}function mt(t,e,r,n){return!(!e||!e.has(n))||!(!t||!t.has(r))}function yt(t,e,r,n){var o=t.indexOf(e,r);if(-1===o)throw new Error(n);return o+e.length-1}function vt(t,e,r){var n=function(t,e){for(var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:">",o="",i=e;i<t.length;i++){var a=t[i];if(r)a===r&&(r="");else if('"'===a||"'"===a)r=a;else if(a===n[0]){if(!n[1])return{data:o,index:i};if(t[i+1]===n[1])return{data:o,index:i}}else"\t"===a&&(a=" ");o+=a}}(t,e+1,arguments.length>3&&void 0!==arguments[3]?arguments[3]:">");if(n){var o=n.data,i=n.index,a=o.search(/\s/),c=o,s=!0;-1!==a&&(c=o.substring(0,a),o=o.substring(a+1).trimStart());var u=c;if(r){var p=c.indexOf(":");-1!==p&&(s=(c=c.substr(p+1))!==n.data.substr(p+1))}return{tagName:c,tagExp:o,closeIndex:i,attrExpPresent:s,rawTagName:u}}}function gt(t,e,r){for(var n=r,o=1;r<t.length;r++)if("<"===t[r])if("/"===t[r+1]){var i=yt(t,">",r,"".concat(e," is not closed"));if(t.substring(r+2,i).trim()===e&&0==--o)return{tagContent:t.substring(n,r),i};r=i}else if("?"===t[r+1])r=yt(t,"?>",r+1,"StopNode is not closed.");else if("!--"===t.substr(r+1,3))r=yt(t,"--\x3e",r+3,"StopNode is not closed.");else if("!["===t.substr(r+1,2))r=yt(t,"]]>",r,"StopNode is not closed.")-2;else{var a=vt(t,r,">");a&&((a&&a.tagName)===e&&"/"!==a.tagExp[a.tagExp.length-1]&&o++,r=a.closeIndex)}}function bt(t,e,r){if(e&&"string"==typeof t){var n=t.trim();return"true"===n||"false"!==n&&function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e=Object.assign({},Q,e),!t||"string"!=typeof t)return t;var r=t.trim();if(void 0!==e.skipLike&&e.skipLike.test(r))return t;if("0"===t)return 0;if(e.hex&&W.test(r))return function(t){if(parseInt)return parseInt(t,16);if(Number.parseInt)return Number.parseInt(t,16);if(window&&window.parseInt)return window.parseInt(t,16);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}(r);if(r.includes("e")||r.includes("E"))return function(t,e,r){if(!r.eNotation)return t;var n=e.match(J);if(n){var o=n[1]||"",i=-1===n[3].indexOf("e")?"E":"e",a=n[2],c=o?t[a.length+1]===i:t[a.length]===i;return a.length>1&&c?t:1!==a.length||!n[3].startsWith(".".concat(i))&&n[3][0]!==i?r.leadingZeros&&!c?(e=(n[1]||"")+n[3],Number(e)):t:Number(e)}return t}(t,r,e);var n,o=K.exec(r);if(o){var i=o[1]||"",a=o[2],c=(n=o[3])&&-1!==n.indexOf(".")?("."===(n=n.replace(/0+$/,""))?n="0":"."===n[0]?n="0"+n:"."===n[n.length-1]&&(n=n.substring(0,n.length-1)),n):n,s=i?"."===t[a.length+1]:"."===t[a.length];if(!e.leadingZeros&&(a.length>1||1===a.length&&!s))return t;var u=Number(r),p=String(u);if(0===u)return u;if(-1!==p.search(/[eE]/))return e.eNotation?u:t;if(-1!==r.indexOf("."))return"0"===p||p===c||p==="".concat(i).concat(c)?u:t;var l=a?c:r;return a?l===p||i+l===p?u:t:l===p||l===i+p?u:t}return t}(t,r)}return function(t){return void 0!==t}(t)?t:""}function xt(t,e,r){var n=Number.parseInt(t,e);return n>=0&&n<=1114111?String.fromCodePoint(n):r+t+";"}var wt=M.getMetaDataSymbol();function kt(t,e){return St(t,e)}function St(t,e,r){for(var n,o={},i=0;i<t.length;i++){var a,c=t[i],s=Et(c);if(a=void 0===r?s:r+"."+s,s===e.textNodeName)void 0===n?n=c[s]:n+=""+c[s];else{if(void 0===s)continue;if(c[s]){var u=St(c[s],e,a),p=jt(u,e);void 0!==c[wt]&&(u[wt]=c[wt]),c[":@"]?Ot(u,c[":@"],a,e):1!==Object.keys(u).length||void 0===u[e.textNodeName]||e.alwaysCreateTextNode?0===Object.keys(u).length&&(e.alwaysCreateTextNode?u[e.textNodeName]="":u=""):u=u[e.textNodeName],void 0!==o[s]&&o.hasOwnProperty(s)?(Array.isArray(o[s])||(o[s]=[o[s]]),o[s].push(u)):e.isArray(s,a,p)?o[s]=[u]:o[s]=u}}}return"string"==typeof n?n.length>0&&(o[e.textNodeName]=n):void 0!==n&&(o[e.textNodeName]=n),o}function Et(t){for(var e=Object.keys(t),r=0;r<e.length;r++){var n=e[r];if(":@"!==n)return n}}function Ot(t,e,r,n){if(e)for(var o=Object.keys(e),i=o.length,a=0;a<i;a++){var c=o[a];n.isArray(c,r+"."+c,!0,!0)?t[c]=[e[c]]:t[c]=e[c]}}function jt(t,e){var r=e.textNodeName,n=Object.keys(t).length;return 0===n||!(1!==n||!t[r]&&"boolean"!=typeof t[r]&&0!==t[r])}function Ft(t){return Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ft(t)}function _t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Pt(n.key),n)}}function Pt(t){var e=function(t){if("object"!=Ft(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Ft(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ft(e)?e:String(e)}var At=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.externalEntities={},this.options=C(e)}var e,r,n;return e=t,n=[{key:"getMetaDataSymbol",value:function(){return M.getMetaDataSymbol()}}],(r=[{key:"parse",value:function(t,e){if("string"!=typeof t&&t.toString)t=t.toString();else if("string"!=typeof t)throw new Error("XML data is accepted in String or Bytes[] form.");if(e){!0===e&&(e={});var r=m(t,e);if(!0!==r)throw Error("".concat(r.err.msg,":").concat(r.err.line,":").concat(r.err.col))}var n=new it(this.options);n.addExternalEntities(this.externalEntities);var o=n.parseXml(t);return this.options.preserveOrder||void 0===o?o:kt(o,this.options)}},{key:"addEntity",value:function(t,e){if(-1!==e.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==t.indexOf("&")||-1!==t.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if("&"===e)throw new Error("An entity with value '&' is not permitted");this.externalEntities[t]=e}}])&&_t(e.prototype,r),n&&_t(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Tt=r(1227),Dt=r.n(Tt)()("fs:request:data"),Lt=function(t){return t=Ct(t),(0,n.V1)(t.data)||(t.data,0)||(t.data,0)||(0,n.fo)(t.data)||(0,n.qf)(t.data)||(0,n.mw)(t.data)||((0,n.OU)(t.data)?(t.headers=a(t.headers,"content-type","application/x-www-form-urlencoded;charset=utf-8"),t.data=t.data.toString()):(0,n.Gv)(t.data)&&(t.headers=a(t.headers,"content-type","application/json",!0),t.data=JSON.stringify(t.data))),t},Ct=function(t){return t.filestackHeaders?(t.headers=a(t.headers,"filestack-source",(0,u.getVersion)()),t.headers=a(t.headers,"filestack-trace-id","".concat(Math.floor(Date.now()/1e3),"-").concat((0,u.uniqueId)())),t.headers=a(t.headers,"filestack-trace-span","jssdk-".concat((0,u.uniqueId)())),t):t},It=function(t){return(0,s.sH)(void 0,void 0,void 0,(function(){var e,r;return(0,s.YH)(this,(function(n){if(!t.headers||!t.headers["content-type"])return[2,Promise.resolve(t)];if(e=t.headers["content-type"],/application\/json/.test(e))try{t.data=JSON.parse(t.data)}catch(e){Dt("Cannot parse response %O - %O",t.data,t.headers)}else/text\/(plain|html)/.test(e)?t.data:/application\/xml/.test(e)&&(r=t.data,t.data,!0===P.validate(r)&&(t.data=new At({ignoreDeclaration:!0,ignoreAttributes:!0,trimValues:!0}).parse(r)));return[2,Promise.resolve(t)]}))}))},zt=function(t,e){if(!e)return t;var r=Nt(e),n=t.indexOf("#");return-1!==n&&(t=t.slice(0,n)),t+(-1===t.indexOf("?")?"?":"&")+r},Nt=function(t){return Object.keys(t).filter((function(e){return e&&void 0!==t[e]})).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t[e]))})).join("&")},Rt=r(6854)},863:(t,e,r)=>{var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(5465);t.exports=i.call(n,o)},1226:t=>{t.exports=SyntaxError},1227:(t,e,r)=>{var n;e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),this.useColors){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(n++,"%c"===t&&(o=n))})),e.splice(o,0,r)}},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){var t;try{t=e.storage.getItem("debug")||e.storage.getItem("DEBUG")}catch(t){}return!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG),t},e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));var t},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(n=!1,function(){n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||function(){},t.exports=r(8630)(e),t.exports.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},1304:()=>{},1310:t=>{var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new o(n,i||t,a),s=r?r+e:e;return t._events[s]?t._events[s].fn?t._events[s]=[t._events[s],c]:t._events[s].push(c):(t._events[s]=c,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function c(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),c.prototype.eventNames=function(){var t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},c.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},c.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},c.prototype.emit=function(t,e,n,o,i,a){var c=r?r+t:t;if(!this._events[c])return!1;var s,u,p=this._events[c],l=arguments.length;if(p.fn){switch(p.once&&this.removeListener(t,p.fn,void 0,!0),l){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,e),!0;case 3:return p.fn.call(p.context,e,n),!0;case 4:return p.fn.call(p.context,e,n,o),!0;case 5:return p.fn.call(p.context,e,n,o,i),!0;case 6:return p.fn.call(p.context,e,n,o,i,a),!0}for(u=1,s=new Array(l-1);u<l;u++)s[u-1]=arguments[u];p.fn.apply(p.context,s)}else{var f,h=p.length;for(u=0;u<h;u++)switch(p[u].once&&this.removeListener(t,p[u].fn,void 0,!0),l){case 1:p[u].fn.call(p[u].context);break;case 2:p[u].fn.call(p[u].context,e);break;case 3:p[u].fn.call(p[u].context,e,n);break;case 4:p[u].fn.call(p[u].context,e,n,o);break;default:if(!s)for(f=1,s=new Array(l-1);f<l;f++)s[f-1]=arguments[f];p[u].fn.apply(p[u].context,s)}}return!0},c.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,n,o){var i=r?r+t:t;if(!this._events[i])return this;if(!e)return a(this,i),this;var c=this._events[i];if(c.fn)c.fn!==e||o&&!c.once||n&&c.context!==n||a(this,i);else{for(var s=0,u=[],p=c.length;s<p;s++)(c[s].fn!==e||o&&!c[s].once||n&&c[s].context!==n)&&u.push(c[s]);u.length?this._events[i]=1===u.length?u[0]:u:a(this,i)}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t.exports=c},1371:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o=r(1837),i=e.ValidationError=function(t,e,r,n,o,i){if(Array.isArray(n)?(this.path=n,this.property=n.reduce((function(t,e){return t+f(e)}),"instance")):void 0!==n&&(this.property=n),t&&(this.message=t),r){var a=r.$id||r.id;this.schema=a||r}void 0!==e&&(this.instance=e),this.name=o,this.argument=i,this.stack=this.toString()};i.prototype.toString=function(){return this.property+" "+this.message};var a=e.ValidatorResult=function(t,e,r,n){this.instance=t,this.schema=e,this.options=r,this.path=n.path,this.propertyPath=n.propertyPath,this.errors=[],this.throwError=r&&r.throwError,this.throwFirst=r&&r.throwFirst,this.throwAll=r&&r.throwAll,this.disableFormat=r&&!0===r.disableFormat};function c(t,e){return e+": "+t.toString()+"\n"}function s(t){Error.captureStackTrace&&Error.captureStackTrace(this,s),this.instance=t.instance,this.schema=t.schema,this.options=t.options,this.errors=t.errors}a.prototype.addError=function(t){var e;if("string"==typeof t)e=new i(t,this.instance,this.schema,this.path);else{if(!t)throw new Error("Missing error detail");if(!t.message)throw new Error("Missing error message");if(!t.name)throw new Error("Missing validator type");e=new i(t.message,this.instance,this.schema,this.path,t.name,t.argument)}if(this.errors.push(e),this.throwFirst)throw new s(this);if(this.throwError)throw e;return e},a.prototype.importErrors=function(t){"string"==typeof t||t&&t.validatorType?this.addError(t):t&&t.errors&&(this.errors=this.errors.concat(t.errors))},a.prototype.toString=function(t){return this.errors.map(c).join("")},Object.defineProperty(a.prototype,"valid",{get:function(){return!this.errors.length}}),t.exports.ValidatorResultError=s,s.prototype=new Error,s.prototype.constructor=s,s.prototype.name="Validation Error";var u=e.SchemaError=function t(e,r){this.message=e,this.schema=r,Error.call(this,e),Error.captureStackTrace(this,t)};u.prototype=Object.create(Error.prototype,{constructor:{value:u,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var p=e.SchemaContext=function(t,e,r,n,o){this.schema=t,this.options=e,Array.isArray(r)?(this.path=r,this.propertyPath=r.reduce((function(t,e){return t+f(e)}),"instance")):this.propertyPath=r,this.base=n,this.schemas=o};p.prototype.resolve=function(t){return o.resolve(this.base,t)},p.prototype.makeChild=function(t,e){var r=void 0===e?this.path:this.path.concat([e]),n=t.$id||t.id,i=o.resolve(this.base,n||""),a=new p(t,this.options,r,i,Object.create(this.schemas));return n&&!a.schemas[i]&&(a.schemas[i]=t),a};var l=e.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:(?:[!#-\[\]-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])|\\(?:[\t -\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*"|(?:[!#-'\*\+\x2D\/-9=\?A-Z\^-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])(?:\.?(?:[!#-'\*\+\x2D\/-9=\?A-Z\^-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*)@((?:[!#-'\*\+\x2D\/-9=\?A-Z\^-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])(?:\.?(?:[!#-'\*\+\x2D\/-9=\?A-Z\^-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*|\[(?:[!-Z\^-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*\])$/,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][\+\x2D\.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:(?:[!\$&-\.0-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])|[\/\?])|\?)(%[0-9A-Fa-f]{2}|(?:[!\$&-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*|([A-Za-z][\+\x2D\.0-9A-Za-z]*:?)?)|([A-Za-z][\+\x2D\.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|(?:[!\$&-\.0-9;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))+|(\[(([Vv][0-9A-Fa-f]+\.(?:[!\$&-\.0-;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)?|[\.0-:A-Fa-f]+)\])?)(:[0-9]*)?[\/\?]|(?:[!\$&-\.0-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))(%[0-9A-Fa-f]{2}|(?:[!\$&-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*|(\/((%[0-9A-Fa-f]{2}|(?:[!\$&-\.0-9;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))+|(\[(([Vv][0-9A-Fa-f]+\.(?:[!\$&-\.0-;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)?|[\.0-:A-Fa-f]+)\])?)(:[0-9]*)?)?))#(%[0-9A-Fa-f]{2}|(?:[!\$&-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*|(([A-Za-z][\+\x2D\.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|(?:[!\$&-\.0-9;=@_~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])|[A-Za-z][\+\x2D\.0-9A-Za-z]*(?:[!\$&-\*,;=@_~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))(%[0-9A-Fa-f]{2}|(?:[!\$&-\.0-9;=@-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*((([\/\?](%[0-9A-Fa-f]{2}|(?:[!\$&-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*)?#|[\/\?])(%[0-9A-Fa-f]{2}|(?:[!\$&-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*)?|([A-Za-z][\+\x2D\.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:(?:[!\$&-\.0-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])|[\/\?])|\?)(%[0-9A-Fa-f]{2}|(?:[!\$&-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*|([A-Za-z][\+\x2D\.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|(?:[!\$&-\.0-9;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))+|(\[(([Vv][0-9A-Fa-f]+\.(?:[!\$&-\.0-;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)?|[\.0-:A-Fa-f]+)\])?)(:[0-9]*)?[\/\?]|(?:[!\$&-\.0-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))(%[0-9A-Fa-f]{2}|(?:[!\$&-;=\?-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*|\/((%[0-9A-Fa-f]{2}|(?:[!\$&-\.0-9;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))+(:[0-9]*)?|(\[(([Vv][0-9A-Fa-f]+\.(?:[!\$&-\.0-;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)?|[\.0-:A-Fa-f]+)\])?:[0-9]*|\[(([Vv][0-9A-Fa-f]+\.(?:[!\$&-\.0-;=A-Z_a-z~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)?|[\.0-:A-Fa-f]+)\])?)?|[A-Za-z][\+\x2D\.0-9A-Za-z]*:?)?$/,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#\$&\(-;=\?@\[\]_a-z~\u017F\u212A]|\{[!#&\+,\.\/;=\?@\|]?(%[0-9a-f]{2}|[0-9_a-z\u017F\u212A])(\.?(%[0-9a-f]{2}|[0-9_a-z\u017F\u212A]))*(:[1-9][0-9]{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z\u017F\u212A])(\.?(%[0-9a-f]{2}|[0-9_a-z\u017F\u212A]))*(:[1-9][0-9]{0,3}|\*)?)*\})*/i,"json-pointer":/^(\/([\0-\.0-@\[-\}\x7F\u017F\u212A]|~[01])*)*$/i,"relative-json-pointer":/^[0-9]+(#|(\/([\0-\.0-@\[-\}\x7F\u017F\u212A]|~[01])*)*)$/i,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(t){return"string"==typeof t&&parseFloat(t)===parseInt(t,10)&&!isNaN(t)},regex:function(t){var e=!0;try{new RegExp(t)}catch(t){e=!1}return e},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};l.regexp=l.regex,l.pattern=l.regex,l.ipv4=l["ip-address"],e.isFormat=function(t,e,r){if("string"==typeof t&&void 0!==l[e]){if(l[e]instanceof RegExp)return l[e].test(t);if("function"==typeof l[e])return l[e](t)}else if(r&&r.customFormats&&"function"==typeof r.customFormats[e])return r.customFormats[e](t);return!0};var f=e.makeSuffix=function(t){return(t=t.toString()).match(/[.\s\[\]]/)||t.match(/^[\d]/)?t.match(/^\d+$/)?"["+t+"]":"["+JSON.stringify(t)+"]":"."+t};function h(t,e,r,o){"object"===n(r)?e[o]=y(t[o],r):-1===t.indexOf(r)&&e.push(r)}function d(t,e,r){e[r]=t[r]}function m(t,e,r,o){"object"===n(e[o])&&e[o]&&t[o]?r[o]=y(t[o],e[o]):r[o]=e[o]}function y(t,e){var r=Array.isArray(e),o=r&&[]||{};return r?(t=t||[],o=o.concat(t),e.forEach(h.bind(null,t,o))):(t&&"object"===n(t)&&Object.keys(t).forEach(d.bind(null,t,o)),Object.keys(e).forEach(m.bind(null,t,e,o))),o}function v(t){return"/"+encodeURIComponent(t).replace(/~/g,"%7E")}e.deepCompareStrict=function t(e,r){if(n(e)!==n(r))return!1;if(Array.isArray(e))return!!Array.isArray(r)&&e.length===r.length&&e.every((function(n,o){return t(e[o],r[o])}));if("object"===n(e)){if(!e||!r)return e===r;var o=Object.keys(e),i=Object.keys(r);return o.length===i.length&&o.every((function(n){return t(e[n],r[n])}))}return e===r},t.exports.deepMerge=y,e.objectGetPath=function(t,e){for(var r,n=e.split("/").slice(1);"string"==typeof(r=n.shift());){var o=decodeURIComponent(r.replace(/~0/,"~").replace(/~1/g,"/"));if(!(o in t))return;t=t[o]}return t},e.encodePath=function(t){return t.map(v).join("")},e.getDecimalPlaces=function(t){var e=0;if(isNaN(t))return e;"number"!=typeof t&&(t=Number(t));var r=t.toString().split("e");if(2===r.length){if("-"!==r[1][0])return e;e=Number(r[1].slice(1))}var n=r[0].split(".");return 2===n.length&&(e+=n[1].length),e},e.isSchema=function(t){return"object"===n(t)&&t||"boolean"==typeof t}},1622:t=>{t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},1635:(t,e,r)=>{r.d(e,{C6:()=>o,Cl:()=>i,YH:()=>c,sH:()=>a});var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)};function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var i=function(){return i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)};function a(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{s(n.next(t))}catch(t){i(t)}}function c(t){try{s(n.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}s((n=n.apply(t,e||[])).next())}))}function c(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(s){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(t){c=[6,t],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},1837:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o=r(5417);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var a=/^([a-z0-9.+-]+:)/i,c=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),p=["'"].concat(u),l=["%","/","?",";","#"].concat(p),f=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=r(3988);function b(t,e,r){if(t&&"object"===n(t)&&t instanceof i)return t;var o=new i;return o.parse(t,e,r),o}i.prototype.parse=function(t,e,r){if("string"!=typeof t)throw new TypeError("Parameter 'url' must be a string, not "+n(t));var i=t.indexOf("?"),c=-1!==i&&i<t.indexOf("#")?"?":"#",u=t.split(c);u[0]=u[0].replace(/\\/g,"/");var b=t=u.join(c);if(b=b.trim(),!r&&1===t.split("#").length){var x=s.exec(b);if(x)return this.path=b,this.href=b,this.pathname=x[1],x[2]?(this.search=x[2],this.query=e?g.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var w=a.exec(b);if(w){var k=(w=w[0]).toLowerCase();this.protocol=k,b=b.substr(w.length)}if(r||w||b.match(/^\/\/[^@/]+@[^@/]+/)){var S="//"===b.substr(0,2);!S||w&&y[w]||(b=b.substr(2),this.slashes=!0)}if(!y[w]&&(S||w&&!v[w])){for(var E,O,j=-1,F=0;F<f.length;F++)-1!==(_=b.indexOf(f[F]))&&(-1===j||_<j)&&(j=_);for(-1!==(O=-1===j?b.lastIndexOf("@"):b.lastIndexOf("@",j))&&(E=b.slice(0,O),b=b.slice(O+1),this.auth=decodeURIComponent(E)),j=-1,F=0;F<l.length;F++){var _;-1!==(_=b.indexOf(l[F]))&&(-1===j||_<j)&&(j=_)}-1===j&&(j=b.length),this.host=b.slice(0,j),b=b.slice(j),this.parseHost(),this.hostname=this.hostname||"";var P="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!P)for(var A=this.hostname.split(/\./),T=(F=0,A.length);F<T;F++){var D=A[F];if(D&&!D.match(h)){for(var L="",C=0,I=D.length;C<I;C++)D.charCodeAt(C)>127?L+="x":L+=D[C];if(!L.match(h)){var z=A.slice(0,F),N=A.slice(F+1),R=D.match(d);R&&(z.push(R[1]),N.unshift(R[2])),N.length&&(b="/"+N.join(".")+b),this.hostname=z.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=o.toASCII(this.hostname));var M=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+M,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[k])for(F=0,T=p.length;F<T;F++){var U=p[F];if(-1!==b.indexOf(U)){var q=encodeURIComponent(U);q===U&&(q=escape(U)),b=b.split(U).join(q)}}var G=b.indexOf("#");-1!==G&&(this.hash=b.substr(G),b=b.slice(0,G));var $=b.indexOf("?");if(-1!==$?(this.search=b.substr($),this.query=b.substr($+1),e&&(this.query=g.parse(this.query)),b=b.slice(0,$)):e&&(this.search="",this.query={}),b&&(this.pathname=b),v[k]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){M=this.pathname||"";var Z=this.search||"";this.path=M+Z}return this.href=this.format(),this},i.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",o=this.hash||"",i=!1,a="";this.host?i=t+this.host:this.hostname&&(i=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&"object"===n(this.query)&&Object.keys(this.query).length&&(a=g.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var c=this.search||a&&"?"+a||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||v[e])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),o&&"#"!==o.charAt(0)&&(o="#"+o),c&&"?"!==c.charAt(0)&&(c="?"+c),e+i+(r=r.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(c=c.replace("#","%23"))+o},i.prototype.resolve=function(t){return this.resolveObject(b(t,!1,!0)).format()},i.prototype.resolveObject=function(t){if("string"==typeof t){var e=new i;e.parse(t,!1,!0),t=e}for(var r=new i,n=Object.keys(this),o=0;o<n.length;o++){var a=n[o];r[a]=this[a]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var c=Object.keys(t),s=0;s<c.length;s++){var u=c[s];"protocol"!==u&&(r[u]=t[u])}return v[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!v[t.protocol]){for(var p=Object.keys(t),l=0;l<p.length;l++){var f=p[l];r[f]=t[f]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||y[t.protocol])r.pathname=t.pathname;else{for(var h=(t.pathname||"").split("/");h.length&&!(t.host=h.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),r.pathname=h.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var d=r.pathname||"",m=r.search||"";r.path=d+m}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var g=r.pathname&&"/"===r.pathname.charAt(0),b=t.host||t.pathname&&"/"===t.pathname.charAt(0),x=b||g||r.host&&t.pathname,w=x,k=r.pathname&&r.pathname.split("/")||[],S=(h=t.pathname&&t.pathname.split("/")||[],r.protocol&&!v[r.protocol]);if(S&&(r.hostname="",r.port=null,r.host&&(""===k[0]?k[0]=r.host:k.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===h[0]?h[0]=t.host:h.unshift(t.host)),t.host=null),x=x&&(""===h[0]||""===k[0])),b)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,k=h;else if(h.length)k||(k=[]),k.pop(),k=k.concat(h),r.search=t.search,r.query=t.query;else if(null!=t.search)return S&&(r.host=k.shift(),r.hostname=r.host,(_=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=_.shift(),r.hostname=_.shift(),r.host=r.hostname)),r.search=t.search,r.query=t.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!k.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var E=k.slice(-1)[0],O=(r.host||t.host||k.length>1)&&("."===E||".."===E)||""===E,j=0,F=k.length;F>=0;F--)"."===(E=k[F])?k.splice(F,1):".."===E?(k.splice(F,1),j++):j&&(k.splice(F,1),j--);if(!x&&!w)for(;j--;j)k.unshift("..");!x||""===k[0]||k[0]&&"/"===k[0].charAt(0)||k.unshift(""),O&&"/"!==k.join("/").substr(-1)&&k.push("");var _,P=""===k[0]||k[0]&&"/"===k[0].charAt(0);return S&&(r.hostname=P?"":k.length?k.shift():"",r.host=r.hostname,(_=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=_.shift(),r.hostname=_.shift(),r.host=r.hostname)),(x=x||r.host&&k.length)&&!P&&k.unshift(""),k.length>0?r.pathname=k.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var t=this.host,e=c.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)},e.parse=b,e.resolve=function(t,e){return b(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?b(t,!1,!0).resolveObject(e):e},e.format=function(t){return"string"==typeof t&&(t=b(t)),t instanceof i?t.format():i.prototype.format.call(t)},e.Url=i},1953:t=>{t.exports=TypeError},1978:(t,e,r)=>{var n=r(5465),o=r(7052),i=r(5118),a=r(2069);t.exports=a||n.call(i,o)},2069:t=>{t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},2104:t=>{t.exports=RangeError},2593:(t,e,r)=>{var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}i=function(t){var e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(t,e){var r=t[0],n=t[1],o=t[2],i=t[3];n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&o|~n&i)+e[0]-680876936|0)<<7|r>>>25)+n|0)&n|~r&o)+e[1]-389564586|0)<<12|i>>>20)+r|0)&r|~i&n)+e[2]+606105819|0)<<17|o>>>15)+i|0)&i|~o&r)+e[3]-1044525330|0)<<22|n>>>10)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&o|~n&i)+e[4]-176418897|0)<<7|r>>>25)+n|0)&n|~r&o)+e[5]+1200080426|0)<<12|i>>>20)+r|0)&r|~i&n)+e[6]-1473231341|0)<<17|o>>>15)+i|0)&i|~o&r)+e[7]-45705983|0)<<22|n>>>10)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&o|~n&i)+e[8]+1770035416|0)<<7|r>>>25)+n|0)&n|~r&o)+e[9]-1958414417|0)<<12|i>>>20)+r|0)&r|~i&n)+e[10]-42063|0)<<17|o>>>15)+i|0)&i|~o&r)+e[11]-1990404162|0)<<22|n>>>10)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&o|~n&i)+e[12]+1804603682|0)<<7|r>>>25)+n|0)&n|~r&o)+e[13]-40341101|0)<<12|i>>>20)+r|0)&r|~i&n)+e[14]-1502002290|0)<<17|o>>>15)+i|0)&i|~o&r)+e[15]+1236535329|0)<<22|n>>>10)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&i|o&~i)+e[1]-165796510|0)<<5|r>>>27)+n|0)&o|n&~o)+e[6]-1069501632|0)<<9|i>>>23)+r|0)&n|r&~n)+e[11]+643717713|0)<<14|o>>>18)+i|0)&r|i&~r)+e[0]-373897302|0)<<20|n>>>12)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&i|o&~i)+e[5]-701558691|0)<<5|r>>>27)+n|0)&o|n&~o)+e[10]+38016083|0)<<9|i>>>23)+r|0)&n|r&~n)+e[15]-660478335|0)<<14|o>>>18)+i|0)&r|i&~r)+e[4]-405537848|0)<<20|n>>>12)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&i|o&~i)+e[9]+568446438|0)<<5|r>>>27)+n|0)&o|n&~o)+e[14]-1019803690|0)<<9|i>>>23)+r|0)&n|r&~n)+e[3]-187363961|0)<<14|o>>>18)+i|0)&r|i&~r)+e[8]+1163531501|0)<<20|n>>>12)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&i|o&~i)+e[13]-1444681467|0)<<5|r>>>27)+n|0)&o|n&~o)+e[2]-51403784|0)<<9|i>>>23)+r|0)&n|r&~n)+e[7]+1735328473|0)<<14|o>>>18)+i|0)&r|i&~r)+e[12]-1926607734|0)<<20|n>>>12)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n^o^i)+e[5]-378558|0)<<4|r>>>28)+n|0)^n^o)+e[8]-2022574463|0)<<11|i>>>21)+r|0)^r^n)+e[11]+1839030562|0)<<16|o>>>16)+i|0)^i^r)+e[14]-35309556|0)<<23|n>>>9)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n^o^i)+e[1]-1530992060|0)<<4|r>>>28)+n|0)^n^o)+e[4]+1272893353|0)<<11|i>>>21)+r|0)^r^n)+e[7]-155497632|0)<<16|o>>>16)+i|0)^i^r)+e[10]-1094730640|0)<<23|n>>>9)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n^o^i)+e[13]+681279174|0)<<4|r>>>28)+n|0)^n^o)+e[0]-358537222|0)<<11|i>>>21)+r|0)^r^n)+e[3]-722521979|0)<<16|o>>>16)+i|0)^i^r)+e[6]+76029189|0)<<23|n>>>9)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n^o^i)+e[9]-640364487|0)<<4|r>>>28)+n|0)^n^o)+e[12]-421815835|0)<<11|i>>>21)+r|0)^r^n)+e[15]+530742520|0)<<16|o>>>16)+i|0)^i^r)+e[2]-995338651|0)<<23|n>>>9)+o|0,n=((n+=((i=((i+=(n^((r=((r+=(o^(n|~i))+e[0]-198630844|0)<<6|r>>>26)+n|0)|~o))+e[7]+1126891415|0)<<10|i>>>22)+r|0)^((o=((o+=(r^(i|~n))+e[14]-1416354905|0)<<15|o>>>17)+i|0)|~r))+e[5]-57434055|0)<<21|n>>>11)+o|0,n=((n+=((i=((i+=(n^((r=((r+=(o^(n|~i))+e[12]+1700485571|0)<<6|r>>>26)+n|0)|~o))+e[3]-1894986606|0)<<10|i>>>22)+r|0)^((o=((o+=(r^(i|~n))+e[10]-1051523|0)<<15|o>>>17)+i|0)|~r))+e[1]-2054922799|0)<<21|n>>>11)+o|0,n=((n+=((i=((i+=(n^((r=((r+=(o^(n|~i))+e[8]+1873313359|0)<<6|r>>>26)+n|0)|~o))+e[15]-30611744|0)<<10|i>>>22)+r|0)^((o=((o+=(r^(i|~n))+e[6]-1560198380|0)<<15|o>>>17)+i|0)|~r))+e[13]+1309151649|0)<<21|n>>>11)+o|0,n=((n+=((i=((i+=(n^((r=((r+=(o^(n|~i))+e[4]-145523070|0)<<6|r>>>26)+n|0)|~o))+e[11]-1120210379|0)<<10|i>>>22)+r|0)^((o=((o+=(r^(i|~n))+e[2]+718787259|0)<<15|o>>>17)+i|0)|~r))+e[9]-343485551|0)<<21|n>>>11)+o|0,t[0]=r+t[0]|0,t[1]=n+t[1]|0,t[2]=o+t[2]|0,t[3]=i+t[3]|0}function n(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return r}function o(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t[e]+(t[e+1]<<8)+(t[e+2]<<16)+(t[e+3]<<24);return r}function i(t){var e,o,i,a,c,s,u=t.length,p=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=u;e+=64)r(p,n(t.substring(e-64,e)));for(o=(t=t.substring(e-64)).length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<o;e+=1)i[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(r(p,i),e=0;e<16;e+=1)i[e]=0;return a=(a=8*u).toString(16).match(/(.*?)(.{0,8})$/),c=parseInt(a[2],16),s=parseInt(a[1],16)||0,i[14]=c,i[15]=s,r(p,i),p}function a(t){var r,n="";for(r=0;r<4;r+=1)n+=e[t>>8*r+4&15]+e[t>>8*r&15];return n}function c(t){var e;for(e=0;e<t.length;e+=1)t[e]=a(t[e]);return t.join("")}function s(t){return/[\u0080-\uFFFF]/.test(t)&&(t=unescape(encodeURIComponent(t))),t}function u(t){var e,r=[],n=t.length;for(e=0;e<n-1;e+=2)r.push(parseInt(t.substr(e,2),16));return String.fromCharCode.apply(String,r)}function p(){this.reset()}return c(i("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function e(t,e){return(t=0|t||0)<0?Math.max(t+e,0):Math.min(t,e)}ArrayBuffer.prototype.slice=function(r,n){var o,i,a,c,s=this.byteLength,u=e(r,s),p=s;return n!==t&&(p=e(n,s)),u>p?new ArrayBuffer(0):(o=p-u,i=new ArrayBuffer(o),a=new Uint8Array(i),c=new Uint8Array(this,u,o),a.set(c),i)}}(),p.prototype.append=function(t){return this.appendBinary(s(t)),this},p.prototype.appendBinary=function(t){this._buff+=t,this._length+=t.length;var e,o=this._buff.length;for(e=64;e<=o;e+=64)r(this._hash,n(this._buff.substring(e-64,e)));return this._buff=this._buff.substring(e-64),this},p.prototype.end=function(t){var e,r,n=this._buff,o=n.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<o;e+=1)i[e>>2]|=n.charCodeAt(e)<<(e%4<<3);return this._finish(i,o),r=c(this._hash),t&&(r=u(r)),this.reset(),r},p.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},p.prototype.setState=function(t){return this._buff=t.buff,this._length=t.length,this._hash=t.hash,this},p.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},p.prototype._finish=function(t,e){var n,o,i,a=e;if(t[a>>2]|=128<<(a%4<<3),a>55)for(r(this._hash,t),a=0;a<16;a+=1)t[a]=0;n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(n[2],16),i=parseInt(n[1],16)||0,t[14]=o,t[15]=i,r(this._hash,t)},p.hash=function(t,e){return p.hashBinary(s(t),e)},p.hashBinary=function(t,e){var r=c(i(t));return e?u(r):r},p.ArrayBuffer=function(){this.reset()},p.ArrayBuffer.prototype.append=function(t){var e,n,i,a,c=(n=this._buff.buffer,i=t,(a=new Uint8Array(n.byteLength+i.byteLength)).set(new Uint8Array(n)),a.set(new Uint8Array(i),n.byteLength),a),s=c.length;for(this._length+=t.byteLength,e=64;e<=s;e+=64)r(this._hash,o(c.subarray(e-64,e)));return this._buff=e-64<s?new Uint8Array(c.buffer.slice(e-64)):new Uint8Array(0),this},p.ArrayBuffer.prototype.end=function(t){var e,r,n=this._buff,o=n.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<o;e+=1)i[e>>2]|=n[e]<<(e%4<<3);return this._finish(i,o),r=c(this._hash),t&&(r=u(r)),this.reset(),r},p.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.ArrayBuffer.prototype.getState=function(){var t,e=p.prototype.getState.call(this);return e.buff=(t=e.buff,String.fromCharCode.apply(null,new Uint8Array(t))),e},p.ArrayBuffer.prototype.setState=function(t){return t.buff=function(t){var e,r=t.length,n=new ArrayBuffer(r),o=new Uint8Array(n);for(e=0;e<r;e+=1)o[e]=t.charCodeAt(e);return o}(t.buff),p.prototype.setState.call(this,t)},p.ArrayBuffer.prototype.destroy=p.prototype.destroy,p.ArrayBuffer.prototype._finish=p.prototype._finish,p.ArrayBuffer.hash=function(t,e){var n=c(function(t){var e,n,i,a,c,s,u=t.length,p=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=u;e+=64)r(p,o(t.subarray(e-64,e)));for(n=(t=e-64<u?t.subarray(e-64):new Uint8Array(0)).length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<n;e+=1)i[e>>2]|=t[e]<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(r(p,i),e=0;e<16;e+=1)i[e]=0;return a=(a=8*u).toString(16).match(/(.*?)(.{0,8})$/),c=parseInt(a[2],16),s=parseInt(a[1],16)||0,i[14]=c,i[15]=s,r(p,i),p}(new Uint8Array(t)));return e?u(n):n},p},"object"===a(e)?t.exports=i():void 0===(o="function"==typeof(n=i)?n.call(e,r,e,t):n)||(t.exports=o)},2629:(t,e,r)=>{var n=r(8657),o=r(1953),i=function(t,e,r){for(var n,o=t;null!=(n=o.next);o=n)if(n.key===e)return o.next=n.next,r||(n.next=t.next,t.next=n),n};t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new o("Side channel does not contain "+n(t))},delete:function(e){var r=t&&t.next,n=function(t,e){if(t)return i(t,e,!0)}(t,e);return n&&r&&r===n&&(t=void 0),!!n},get:function(e){return function(t,e){if(t){var r=i(t,e);return r&&r.value}}(t,e)},has:function(e){return function(t,e){return!!t&&!!i(t,e)}(t,e)},set:function(e,r){t||(t={next:void 0}),function(t,e,r){var n=i(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(t,e,r)}};return e}},2634:()=>{},2703:t=>{var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var o=0;o<e.length;o+=1)r[o+t.length]=e[o];return r};t.exports=function(t){var o=this;if("function"!=typeof o||"[object Function]"!==e.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(t){for(var e=[],r=1,n=0;r<t.length;r+=1,n+=1)e[n]=t[r];return e}(arguments),c=r(0,o.length-a.length),s=[],u=0;u<c;u++)s[u]="$"+u;if(i=Function("binder","return function ("+function(t){for(var e="",r=0;r<t.length;r+=1)e+=t[r],r+1<t.length&&(e+=",");return e}(s)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var e=o.apply(this,n(a,arguments));return Object(e)===e?e:this}return o.apply(t,n(a,arguments))})),o.prototype){var p=function(){};p.prototype=o.prototype,i.prototype=new p,p.prototype=null}return i}},3186:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}r.d(e,{Bq:()=>p,Gv:()=>i,OU:()=>s,V1:()=>u,fo:()=>a,mw:()=>o,qf:()=>c});var o=function(t){return"[object ArrayBuffer]"===Object.prototype.toString.call(t)},i=function(t){return null!==t&&"object"===n(t)},a=function(t){return"[object File]"===Object.prototype.toString.call(t)},c=function(t){return"[object Blob]"===Object.prototype.toString.call(t)},s=function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},u=function(t){return"undefined"!=typeof FormData&&t instanceof FormData},p=function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}},3190:(t,e,r)=>{var n=r(8299),o=r(9472),i=o([n("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?o([r]):r}},3221:(t,e,r)=>{var n=r(8299),o=r(3190),i=r(8657),a=r(1953),c=n("%Map%",!0),s=o("Map.prototype.get",!0),u=o("Map.prototype.set",!0),p=o("Map.prototype.has",!0),l=o("Map.prototype.delete",!0),f=o("Map.prototype.size",!0);t.exports=!!c&&function(){var t,e={assert:function(t){if(!e.has(t))throw new a("Side channel does not contain "+i(t))},delete:function(e){if(t){var r=l(t,e);return 0===f(t)&&(t=void 0),r}return!1},get:function(e){if(t)return s(t,e)},has:function(e){return!!t&&p(t,e)},set:function(e,r){t||(t=new c),u(t,e,r)}};return e}},3284:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function i(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:String(e)}Object.defineProperty(e,"__esModule",{value:!0});var a=r(8796),c=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._queue=[]}var e,r;return e=t,(r=[{key:"enqueue",value:function(t,e){var r={priority:(e=Object.assign({priority:0},e)).priority,run:t};if(this.size&&this._queue[this.size-1].priority>=e.priority)this._queue.push(r);else{var n=a.default(this._queue,r,(function(t,e){return e.priority-t.priority}));this._queue.splice(n,0,r)}}},{key:"dequeue",value:function(){var t=this._queue.shift();return null==t?void 0:t.run}},{key:"filter",value:function(t){return this._queue.filter((function(e){return e.priority===t.priority})).map((function(t){return t.run}))}},{key:"size",get:function(){return this._queue.length}}])&&o(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.default=c},3441:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o=r(8299),i=r(3190),a=r(8657),c=r(3221),s=r(1953),u=o("%WeakMap%",!0),p=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),h=i("WeakMap.prototype.delete",!0);t.exports=u?function(){var t,e,r={assert:function(t){if(!r.has(t))throw new s("Side channel does not contain "+a(t))},delete:function(r){if(u&&r&&("object"===n(r)||"function"==typeof r)){if(t)return h(t,r)}else if(c&&e)return e.delete(r);return!1},get:function(r){return u&&r&&("object"===n(r)||"function"==typeof r)&&t?p(t,r):e&&e.get(r)},has:function(r){return u&&r&&("object"===n(r)||"function"==typeof r)&&t?f(t,r):!!e&&e.has(r)},set:function(r,o){u&&r&&("object"===n(r)||"function"==typeof r)?(t||(t=new u),l(t,r,o)):c&&(e||(e=c()),e.set(r,o))}};return r}:c},3574:(t,e,r)=>{r.d(e,{U:()=>l});var n=r(1635),o=r(1227),i=r.n(o),a=r(3186),c=r(5934),s=r(9653),u=r(830),p=i()("fs:request:xhr"),l=function(){function t(){}return t.prototype.request=function(t){var e=this;void 0===t.filestackHeaders&&(t.filestackHeaders=!0),(t=(0,u.cN)(t)).headers=t.headers||{};var r=t.data,o=t.headers;a.V1(r)&&delete o["Content-Type"];var i=new XMLHttpRequest;if(t.blobResponse&&(i.responseType="blob"),t.auth){if(!t.auth.username||0===t.auth.username.length||!t.auth.password||0===t.auth.password.length)return Promise.reject(new s.d("Basic auth: username and password are required ".concat(t.auth),t));o.Authorization="Basic "+btoa(unescape(encodeURIComponent("".concat(t.auth.username,":").concat(t.auth.password)))),p("Set request authorization to %s",t.auth.username+t.auth.password)}var l=t.url.trim();return/^http(s)?:\/\//.test(l)||(l="https://".concat(l)),l=(0,u.D6)(l,t.params),p("Starting request to %s with options %O",l,t),i.open(t.method.toUpperCase(),l,!0),i.timeout=t.timeout,new Promise((function(a,f){var h;if(t.cancelToken&&(h=function(e){return i&&(i.abort(),i=null),p("Request canceled by user %s, config: %O",e,t),f(new s.d("Request aborted. Reason: ".concat(e),t,null,s.E.ABORTED))},t.cancelToken.once("cancel",h)),i.onreadystatechange=function(){return(0,n.sH)(e,void 0,void 0,(function(){var e,r,o;return(0,n.YH)(this,(function(n){switch(n.label){case 0:return i&&4===i.readyState&&(0!==i.status||i.responseURL)?(e=(0,u.qg)(i.getAllResponseHeaders()),r=i.response,o={data:r,status:i.status,statusText:i.statusText,headers:e,config:t},i=null,[4,(0,u.xp)(o)]):[2];case 1:return 500<=(o=n.sent()).status&&o.status<=599?(p("Server error(5xx) - %O",o),[2,f(new s.d("Server error ".concat(l),t,o,s.E.SERVER))]):400<=o.status&&o.status<=499?(p("Request error(4xx) - %O",o),[2,f(new s.d("Request error ".concat(l),t,o,s.E.REQUEST))]):(t.cancelToken&&(t.cancelToken.removeListener("cancel",h),h=null),[2,a(o)])}}))}))},i.onabort=function(){i&&(i=null,f(new s.d("Request aborted",t,null,s.E.ABORTED)))},i.onerror=function(e){i=null,p("Request error! %O",e),f(new s.d("Network Error",t,null,s.E.NETWORK))},i.ontimeout=function(){i=null,p("Request timed out. %O",t),f(new s.d("Request timeout",t,null,s.E.TIMEOUT))},"setRequestHeader"in i&&o&&Object.keys(o).length)for(var d in o)void 0!==o[d]&&(p("Set request header %s to %s",d,o[d]),i.setRequestHeader(d,o[d]));"function"==typeof t.onProgress&&[c.j.POST,c.j.PUT].indexOf(t.method)>-1&&(i.upload?(p("Bind to upload progress event"),i.upload.addEventListener("progress",t.onProgress)):(p("Bind to progress event"),i.addEventListener("progress",t.onProgress))),void 0===r&&(r=null),i.send(r)}))},t}()},3581:(t,e,r)=>{var n=r(5759);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},3772:(t,e,r)=>{function n(){n=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",p=c.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),c=new D(n||[]);return i(a,"_invoke",{value:_(t,r,c)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var d="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function x(){}function w(){}var k={};l(k,s,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(L([])));E&&E!==r&&o.call(E,s)&&(k=E);var O=w.prototype=b.prototype=Object.create(k);function j(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function F(t,e){function r(n,i,c,s){var u=h(t[n],t,i);if("throw"!==u.type){var p=u.arg,l=p.value;return l&&"object"==a(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,c,s)}),(function(t){r("throw",t,c,s)})):e.resolve(l).then((function(t){p.value=t,c(p)}),(function(t){return r("throw",t,c,s)}))}s(u.arg)}var n;i(this,"_invoke",{value:function(t,o){function i(){return new e((function(e,n){r(t,o,e,n)}))}return n=n?n.then(i,i):i()}})}function _(e,r,n){var o=d;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var s=P(c,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var u=h(e,r,n);if("normal"===u.type){if(o=n.done?v:m,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=v,n.method="throw",n.arg=u.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function L(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function r(){for(;++n<e.length;)if(o.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(a(e)+" is not iterable")}return x.prototype=w,i(O,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:x,configurable:!0}),x.displayName=l(w,p,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,p,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},j(F.prototype),l(F.prototype,u,(function(){return this})),e.AsyncIterator=F,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new F(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(O),l(O,p,"Generator"),l(O,s,(function(){return this})),l(O,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=L,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=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(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function c(t){o(a,n,i,c,s,"next",t)}function s(t){o(a,n,i,c,s,"throw",t)}c(void 0)}))}}function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function s(t){var e=function(t){if("object"!=a(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:String(e)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var l=r(1310),f=r(4419),h=r(3284),d=function(){},m=new f.TimeoutError,y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(x,t);var e,r,o,s,l,y,v,g,b=(v=x,g=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=p(v);if(g){var r=p(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function x(t){var e,r,n,o,i;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,x),(e=b.call(this))._intervalCount=0,e._intervalEnd=0,e._pendingCount=0,e._resolveEmpty=d,e._resolveIdle=d,!("number"==typeof(t=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:h.default},t)).intervalCap&&t.intervalCap>=1))throw new TypeError("Expected `intervalCap` to be a number from 1 and up, got `".concat(null!==(n=null===(r=t.intervalCap)||void 0===r?void 0:r.toString())&&void 0!==n?n:"","` (").concat(a(t.intervalCap),")"));if(void 0===t.interval||!(Number.isFinite(t.interval)&&t.interval>=0))throw new TypeError("Expected `interval` to be a finite number >= 0, got `".concat(null!==(i=null===(o=t.interval)||void 0===o?void 0:o.toString())&&void 0!==i?i:"","` (").concat(a(t.interval),")"));return e._carryoverConcurrencyCount=t.carryoverConcurrencyCount,e._isIntervalIgnored=t.intervalCap===1/0||0===t.interval,e._intervalCap=t.intervalCap,e._interval=t.interval,e._queue=new t.queueClass,e._queueClass=t.queueClass,e.concurrency=t.concurrency,e._timeout=t.timeout,e._throwOnTimeout=!0===t.throwOnTimeout,e._isPaused=!1===t.autoStart,e}return e=x,r=[{key:"_doesIntervalAllowAnother",get:function(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}},{key:"_doesConcurrentAllowAnother",get:function(){return this._pendingCount<this._concurrency}},{key:"_next",value:function(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}},{key:"_resolvePromises",value:function(){this._resolveEmpty(),this._resolveEmpty=d,0===this._pendingCount&&(this._resolveIdle(),this._resolveIdle=d,this.emit("idle"))}},{key:"_onResumeInterval",value:function(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}},{key:"_isIntervalPaused",value:function(){var t=this,e=Date.now();if(void 0===this._intervalId){var r=this._intervalEnd-e;if(!(r<0))return void 0===this._timeoutId&&(this._timeoutId=setTimeout((function(){t._onResumeInterval()}),r)),!0;this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0}return!1}},{key:"_tryToStartAnother",value:function(){if(0===this._queue.size)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){var t=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){var e=this._queue.dequeue();return!!e&&(this.emit("active"),e(),t&&this._initializeIntervalIfNeeded(),!0)}}return!1}},{key:"_initializeIntervalIfNeeded",value:function(){var t=this;this._isIntervalIgnored||void 0!==this._intervalId||(this._intervalId=setInterval((function(){t._onInterval()}),this._interval),this._intervalEnd=Date.now()+this._interval)}},{key:"_onInterval",value:function(){0===this._intervalCount&&0===this._pendingCount&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}},{key:"_processQueue",value:function(){for(;this._tryToStartAnother(););}},{key:"concurrency",get:function(){return this._concurrency},set:function(t){if(!("number"==typeof t&&t>=1))throw new TypeError("Expected `concurrency` to be a number from 1 and up, got `".concat(t,"` (").concat(a(t),")"));this._concurrency=t,this._processQueue()}},{key:"add",value:(y=i(n().mark((function t(e){var r,o=this,a=arguments;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},t.abrupt("return",new Promise((function(t,a){var c=function(){var c=i(n().mark((function i(){var c;return n().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o._pendingCount++,o._intervalCount++,n.prev=2,c=void 0===o._timeout&&void 0===r.timeout?e():f.default(Promise.resolve(e()),void 0===r.timeout?o._timeout:r.timeout,(function(){(void 0===r.throwOnTimeout?o._throwOnTimeout:r.throwOnTimeout)&&a(m)})),n.t0=t,n.next=7,c;case 7:n.t1=n.sent,(0,n.t0)(n.t1),n.next=14;break;case 11:n.prev=11,n.t2=n.catch(2),a(n.t2);case 14:o._next();case 15:case"end":return n.stop()}}),i,null,[[2,11]])})));return function(){return c.apply(this,arguments)}}();o._queue.enqueue(c,r),o._tryToStartAnother(),o.emit("add")})));case 2:case"end":return t.stop()}}),t)}))),function(t){return y.apply(this,arguments)})},{key:"addAll",value:(l=i(n().mark((function t(e,r){var o=this;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Promise.all(e.map(function(){var t=i(n().mark((function t(e){return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o.add(e,r));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())));case 1:case"end":return t.stop()}}),t)}))),function(t,e){return l.apply(this,arguments)})},{key:"start",value:function(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}},{key:"pause",value:function(){this._isPaused=!0}},{key:"clear",value:function(){this._queue=new this._queueClass}},{key:"onEmpty",value:(s=i(n().mark((function t(){var e=this;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==this._queue.size){t.next=2;break}return t.abrupt("return");case 2:return t.abrupt("return",new Promise((function(t){var r=e._resolveEmpty;e._resolveEmpty=function(){r(),t()}})));case 3:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"onIdle",value:(o=i(n().mark((function t(){var e=this;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==this._pendingCount||0!==this._queue.size){t.next=2;break}return t.abrupt("return");case 2:return t.abrupt("return",new Promise((function(t){var r=e._resolveIdle;e._resolveIdle=function(){r(),t()}})));case 3:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"size",get:function(){return this._queue.size}},{key:"sizeBy",value:function(t){return this._queue.filter(t).length}},{key:"pending",get:function(){return this._pendingCount}},{key:"isPaused",get:function(){return this._isPaused}},{key:"timeout",get:function(){return this._timeout},set:function(t){this._timeout=t}}],r&&c(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),x}(l);e.A=y},3988:(t,e,r)=>{var n=r(6889),o=r(9367),i=r(9292);t.exports={formats:i,parse:o,stringify:n}},4218:t=>{t.exports=Math.floor},4282:(t,e,r)=>{t.exports.Validator=r(428);r(1371).ValidatorResult,r(1371).ValidatorResultError,r(1371).ValidationError,r(1371).SchemaError,r(5605),r(5605).S},4379:t=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"===e(Symbol.iterator))return!0;var t={},r=Symbol("test"),n=Object(r);if("string"==typeof r)return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var o in t[r]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==r)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(t,r);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},4419:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t){var e="function"==typeof Map?new Map:void 0;return o=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return i(t,arguments,s(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,t)},o(t)}function i(t,e,r){return i=a()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&c(o,r.prototype),o},i.apply(null,arguments)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var u=r(9927),p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(u,t);var e,r,o,i=(r=u,o=a(),function(){var t,e=s(r);if(o){var i=s(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(e=i.call(this,t)).name="TimeoutError",e}return e=u,Object.defineProperty(e,"prototype",{writable:!1}),e}(o(Error)),l=function(t,e,r){return new Promise((function(n,o){if("number"!=typeof e||e<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(e!==1/0){var i=setTimeout((function(){if("function"!=typeof r){var i="string"==typeof r?r:"Promise timed out after ".concat(e," milliseconds"),a=r instanceof Error?r:new p(i);"function"==typeof t.cancel&&t.cancel(),o(a)}else try{n(r())}catch(t){o(t)}}),e);u(t.then(n,o),(function(){clearTimeout(i)}))}else n(t)}))};t.exports=l,t.exports.default=l,t.exports.TimeoutError=p},4509:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o=r(9292),i=Object.prototype.hasOwnProperty,a=Array.isArray,c=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t,e){for(var r=e&&e.plainObjects?{__proto__:null}:{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r},u=1024;t.exports={arrayToObject:s,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],o=0;o<e.length;++o)for(var i=e[o],c=i.obj[i.prop],s=Object.keys(c),u=0;u<s.length;++u){var p=s[u],l=c[p];"object"===n(l)&&null!==l&&-1===r.indexOf(l)&&(e.push({obj:c,prop:p}),r.push(l))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(a(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(t,e,r,i,a){if(0===t.length)return t;var s=t;if("symbol"===n(t)?s=Symbol.prototype.toString.call(t):"string"!=typeof t&&(s=String(t)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var p="",l=0;l<s.length;l+=u){for(var f=s.length>=u?s.slice(l,l+u):s,h=[],d=0;d<f.length;++d){var m=f.charCodeAt(d);45===m||46===m||95===m||126===m||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||a===o.RFC1738&&(40===m||41===m)?h[h.length]=f.charAt(d):m<128?h[h.length]=c[m]:m<2048?h[h.length]=c[192|m>>6]+c[128|63&m]:m<55296||m>=57344?h[h.length]=c[224|m>>12]+c[128|m>>6&63]+c[128|63&m]:(d+=1,m=65536+((1023&m)<<10|1023&f.charCodeAt(d)),h[h.length]=c[240|m>>18]+c[128|m>>12&63]+c[128|m>>6&63]+c[128|63&m])}p+=h.join("")}return p},isBuffer:function(t){return!(!t||"object"!==n(t)||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(a(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,o){if(!r)return e;if("object"!==n(r)&&"function"!=typeof r){if(a(e))e.push(r);else{if(!e||"object"!==n(e))return[e,r];(o&&(o.plainObjects||o.allowPrototypes)||!i.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!==n(e))return[e].concat(r);var c=e;return a(e)&&!a(r)&&(c=s(e,o)),a(e)&&a(r)?(r.forEach((function(r,a){if(i.call(e,a)){var c=e[a];c&&"object"===n(c)&&r&&"object"===n(r)?e[a]=t(c,r,o):e.push(r)}else e[a]=r})),e):Object.keys(r).reduce((function(e,n){var a=r[n];return i.call(e,n)?e[n]=t(e[n],a,o):e[n]=a,e}),c)}}},4940:t=>{t.exports=Math.abs},5049:t=>{var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},5118:t=>{t.exports=Function.prototype.call},5417:function(t,e,r){var n;function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}t=r.nmd(t),function(i){var a="object"==o(e)&&e&&!e.nodeType&&e,c="object"==o(t)&&t&&!t.nodeType&&t,s="object"==(void 0===r.g?"undefined":o(r.g))&&r.g;s.global!==s&&s.window!==s&&s.self!==s||(i=s);var u,p,l=2147483647,f=36,h=/^xn--/,d=/[^\x20-\x7E]/,m=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},v=Math.floor,g=String.fromCharCode;function b(t){throw new RangeError(y[t])}function x(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function w(t,e){var r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+x((t=t.replace(m,".")).split("."),e).join(".")}function k(t){for(var e,r,n=[],o=0,i=t.length;o<i;)(e=t.charCodeAt(o++))>=55296&&e<=56319&&o<i?56320==(64512&(r=t.charCodeAt(o++)))?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),o--):n.push(e);return n}function S(t){return x(t,(function(t){var e="";return t>65535&&(e+=g((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+g(t)})).join("")}function E(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function O(t,e,r){var n=0;for(t=r?v(t/700):t>>1,t+=v(t/e);t>455;n+=f)t=v(t/35);return v(n+36*t/(t+38))}function j(t){var e,r,n,o,i,a,c,s,u,p,h,d=[],m=t.length,y=0,g=128,x=72;for((r=t.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)t.charCodeAt(n)>=128&&b("not-basic"),d.push(t.charCodeAt(n));for(o=r>0?r+1:0;o<m;){for(i=y,a=1,c=f;o>=m&&b("invalid-input"),((s=(h=t.charCodeAt(o++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:f)>=f||s>v((l-y)/a))&&b("overflow"),y+=s*a,!(s<(u=c<=x?1:c>=x+26?26:c-x));c+=f)a>v(l/(p=f-u))&&b("overflow"),a*=p;x=O(y-i,e=d.length+1,0==i),v(y/e)>l-g&&b("overflow"),g+=v(y/e),y%=e,d.splice(y++,0,g)}return S(d)}function F(t){var e,r,n,o,i,a,c,s,u,p,h,d,m,y,x,w=[];for(d=(t=k(t)).length,e=128,r=0,i=72,a=0;a<d;++a)(h=t[a])<128&&w.push(g(h));for(n=o=w.length,o&&w.push("-");n<d;){for(c=l,a=0;a<d;++a)(h=t[a])>=e&&h<c&&(c=h);for(c-e>v((l-r)/(m=n+1))&&b("overflow"),r+=(c-e)*m,e=c,a=0;a<d;++a)if((h=t[a])<e&&++r>l&&b("overflow"),h==e){for(s=r,u=f;!(s<(p=u<=i?1:u>=i+26?26:u-i));u+=f)x=s-p,y=f-p,w.push(g(E(p+x%y,0))),s=v(x/y);w.push(g(E(s,0))),i=O(r,m,n==o),r=0,++n}++r,++e}return w.join("")}if(u={version:"1.4.1",ucs2:{decode:k,encode:S},decode:j,encode:F,toASCII:function(t){return w(t,(function(t){return d.test(t)?"xn--"+F(t):t}))},toUnicode:function(t){return w(t,(function(t){return h.test(t)?j(t.slice(4).toLowerCase()):t}))}},"object"==o(r.amdO)&&r.amdO)void 0===(n=function(){return u}.call(e,r,e,t))||(t.exports=n);else if(a&&c)if(t.exports==a)c.exports=u;else for(p in u)u.hasOwnProperty(p)&&(a[p]=u[p]);else i.punycode=u}(this)},5465:(t,e,r)=>{var n=r(2703);t.exports=Function.prototype.bind||n},5586:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o=r(1622),i=r(9302),a=r(8950);t.exports=o?function(t){return o(t)}:i?function(t){if(!t||"object"!==n(t)&&"function"!=typeof t)throw new TypeError("getProto: not an object");return i(t)}:a?function(t){return a(t)}:null},5605:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o=r(1837),i=r(1371);function a(t,e){this.id=t,this.ref=e}t.exports.S=function(t,e){function r(t,e){if(e&&"object"==n(e))if(e.$ref){var a=o.resolve(t,e.$ref);p[a]=p[a]?p[a]+1:0}else{var l=e.$id||e.id,f=l?o.resolve(t,l):t;if(f){if(f.indexOf("#")<0&&(f+="#"),u[f]){if(!i.deepCompareStrict(u[f],e))throw new Error("Schema <"+f+"> already exists with different definition");return u[f]}u[f]=e,"#"==f[f.length-1]&&(u[f.substring(0,f.length-1)]=e)}c(f+"/items",Array.isArray(e.items)?e.items:[e.items]),c(f+"/extends",Array.isArray(e.extends)?e.extends:[e.extends]),r(f+"/additionalItems",e.additionalItems),s(f+"/properties",e.properties),r(f+"/additionalProperties",e.additionalProperties),s(f+"/definitions",e.definitions),s(f+"/patternProperties",e.patternProperties),s(f+"/dependencies",e.dependencies),c(f+"/disallow",e.disallow),c(f+"/allOf",e.allOf),c(f+"/anyOf",e.anyOf),c(f+"/oneOf",e.oneOf),r(f+"/not",e.not)}}function c(t,e){if(Array.isArray(e))for(var n=0;n<e.length;n++)r(t+"/"+n,e[n])}function s(t,e){if(e&&"object"==n(e))for(var o in e)r(t+"/"+o,e[o])}var u={},p={};return r(t,e),new a(u,p)}},5759:t=>{t.exports=Object.getOwnPropertyDescriptor},5934:(t,e,r)=>{var n;r.d(e,{j:()=>n}),function(t){t.GET="GET",t.DELETE="DELETE",t.HEAD="HEAD",t.PURGE="PURGE",t.OPTIONS="OPTIONS",t.POST="POST",t.PUT="PUT",t.PATH="PATH"}(n||(n={}))},6076:t=>{t.exports=ReferenceError},6114:t=>{t.exports=Math.pow},6234:(t,e,r)=>{var n=r(1371),o=n.ValidatorResult,i=n.SchemaError,a={ignoreProperties:{id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0}},c=a.validators={};function s(t,e,r,n,o){var i=e.throwError,a=e.throwAll;e.throwError=!1,e.throwAll=!1;var c=this.validateSchema(t,o,e,r);return e.throwError=i,e.throwAll=a,!c.valid&&n instanceof Function&&n(c),c.valid}function u(t,e){if(Object.hasOwnProperty.call(t,e))return t[e];if(e in t)for(;t=Object.getPrototypeOf(t);)if(Object.propertyIsEnumerable.call(t,e))return t[e]}function p(t,e,r,n,o,i){if(this.types.object(t)&&(!e.properties||void 0===e.properties[o]))if(!1===e.additionalProperties)i.addError({name:"additionalProperties",argument:o,message:"is not allowed to have the additional property "+JSON.stringify(o)});else{var a=e.additionalProperties||{};"function"==typeof r.preValidateProperty&&r.preValidateProperty(t,o,a,r,n);var c=this.validateSchema(t[o],a,r,n.makeChild(a,o));c.instance!==i.instance[o]&&(i.instance[o]=c.instance),i.importErrors(c)}}c.type=function(t,e,r,n){if(void 0===t)return null;var i=new o(t,e,r,n),a=Array.isArray(e.type)?e.type:[e.type];if(!a.some(this.testType.bind(this,t,e,r,n))){var c=a.map((function(t){if(t){var e=t.$id||t.id;return e?"<"+e+">":t+""}}));i.addError({name:"type",argument:c,message:"is not of a type(s) "+c})}return i},c.anyOf=function(t,e,r,n){if(void 0===t)return null;var a=new o(t,e,r,n),c=new o(t,e,r,n);if(!Array.isArray(e.anyOf))throw new i("anyOf must be an array");if(!e.anyOf.some(s.bind(this,t,r,n,(function(t){c.importErrors(t)})))){var u=e.anyOf.map((function(t,e){var r=t.$id||t.id;return r?"<"+r+">":t.title&&JSON.stringify(t.title)||t.$ref&&"<"+t.$ref+">"||"[subschema "+e+"]"}));r.nestedErrors&&a.importErrors(c),a.addError({name:"anyOf",argument:u,message:"is not any of "+u.join(",")})}return a},c.allOf=function(t,e,r,n){if(void 0===t)return null;if(!Array.isArray(e.allOf))throw new i("allOf must be an array");var a=new o(t,e,r,n),c=this;return e.allOf.forEach((function(e,o){var i=c.validateSchema(t,e,r,n);if(!i.valid){var s=e.$id||e.id||e.title&&JSON.stringify(e.title)||e.$ref&&"<"+e.$ref+">"||"[subschema "+o+"]";a.addError({name:"allOf",argument:{id:s,length:i.errors.length,valid:i},message:"does not match allOf schema "+s+" with "+i.errors.length+" error[s]:"}),a.importErrors(i)}})),a},c.oneOf=function(t,e,r,n){if(void 0===t)return null;if(!Array.isArray(e.oneOf))throw new i("oneOf must be an array");var a=new o(t,e,r,n),c=new o(t,e,r,n),u=e.oneOf.filter(s.bind(this,t,r,n,(function(t){c.importErrors(t)}))).length,p=e.oneOf.map((function(t,e){return t.$id||t.id||t.title&&JSON.stringify(t.title)||t.$ref&&"<"+t.$ref+">"||"[subschema "+e+"]"}));return 1!==u&&(r.nestedErrors&&a.importErrors(c),a.addError({name:"oneOf",argument:p,message:"is not exactly one from "+p.join(",")})),a},c.if=function(t,e,r,i){if(void 0===t)return null;if(!n.isSchema(e.if))throw new Error('Expected "if" keyword to be a schema');var a,c=s.call(this,t,r,i,null,e.if),u=new o(t,e,r,i);if(c){if(void 0===e.then)return;if(!n.isSchema(e.then))throw new Error('Expected "then" keyword to be a schema');a=this.validateSchema(t,e.then,r,i.makeChild(e.then)),u.importErrors(a)}else{if(void 0===e.else)return;if(!n.isSchema(e.else))throw new Error('Expected "else" keyword to be a schema');a=this.validateSchema(t,e.else,r,i.makeChild(e.else)),u.importErrors(a)}return u},c.propertyNames=function(t,e,r,a){if(this.types.object(t)){var c=new o(t,e,r,a),s=void 0!==e.propertyNames?e.propertyNames:{};if(!n.isSchema(s))throw new i('Expected "propertyNames" to be a schema (object or boolean)');for(var p in t)if(void 0!==u(t,p)){var l=this.validateSchema(p,s,r,a.makeChild(s));c.importErrors(l)}return c}},c.properties=function(t,e,r,n){if(this.types.object(t)){var a=new o(t,e,r,n),c=e.properties||{};for(var s in c){var p=c[s];if(void 0!==p){if(null===p)throw new i('Unexpected null, expected schema in "properties"');"function"==typeof r.preValidateProperty&&r.preValidateProperty(t,s,p,r,n);var l=u(t,s),f=this.validateSchema(l,p,r,n.makeChild(p,s));f.instance!==a.instance[s]&&(a.instance[s]=f.instance),a.importErrors(f)}}return a}},c.patternProperties=function(t,e,r,n){if(this.types.object(t)){var a=new o(t,e,r,n),c=e.patternProperties||{};for(var s in t){var u=!0;for(var l in c){var f=c[l];if(void 0!==f){if(null===f)throw new i('Unexpected null, expected schema in "patternProperties"');try{var h=new RegExp(l,"u")}catch(t){h=new RegExp(l)}if(h.test(s)){u=!1,"function"==typeof r.preValidateProperty&&r.preValidateProperty(t,s,f,r,n);var d=this.validateSchema(t[s],f,r,n.makeChild(f,s));d.instance!==a.instance[s]&&(a.instance[s]=d.instance),a.importErrors(d)}}}u&&p.call(this,t,e,r,n,s,a)}return a}},c.additionalProperties=function(t,e,r,n){if(this.types.object(t)){if(e.patternProperties)return null;var i=new o(t,e,r,n);for(var a in t)p.call(this,t,e,r,n,a,i);return i}},c.minProperties=function(t,e,r,n){if(this.types.object(t)){var i=new o(t,e,r,n);return Object.keys(t).length>=e.minProperties||i.addError({name:"minProperties",argument:e.minProperties,message:"does not meet minimum property length of "+e.minProperties}),i}},c.maxProperties=function(t,e,r,n){if(this.types.object(t)){var i=new o(t,e,r,n);return Object.keys(t).length<=e.maxProperties||i.addError({name:"maxProperties",argument:e.maxProperties,message:"does not meet maximum property length of "+e.maxProperties}),i}},c.items=function(t,e,r,n){var i=this;if(this.types.array(t)&&void 0!==e.items){var a=new o(t,e,r,n);return t.every((function(t,o){if(Array.isArray(e.items))var c=void 0===e.items[o]?e.additionalItems:e.items[o];else c=e.items;if(void 0===c)return!0;if(!1===c)return a.addError({name:"items",message:"additionalItems not permitted"}),!1;var s=i.validateSchema(t,c,r,n.makeChild(c,o));return s.instance!==a.instance[o]&&(a.instance[o]=s.instance),a.importErrors(s),!0})),a}},c.contains=function(t,e,r,i){var a=this;if(this.types.array(t)&&void 0!==e.contains){if(!n.isSchema(e.contains))throw new Error('Expected "contains" keyword to be a schema');var c=new o(t,e,r,i);return!1===t.some((function(t,n){return 0===a.validateSchema(t,e.contains,r,i.makeChild(e.contains,n)).errors.length}))&&c.addError({name:"contains",argument:e.contains,message:"must contain an item matching given schema"}),c}},c.minimum=function(t,e,r,n){if(this.types.number(t)){var i=new o(t,e,r,n);return e.exclusiveMinimum&&!0===e.exclusiveMinimum?t>e.minimum||i.addError({name:"minimum",argument:e.minimum,message:"must be greater than "+e.minimum}):t>=e.minimum||i.addError({name:"minimum",argument:e.minimum,message:"must be greater than or equal to "+e.minimum}),i}},c.maximum=function(t,e,r,n){if(this.types.number(t)){var i=new o(t,e,r,n);return e.exclusiveMaximum&&!0===e.exclusiveMaximum?t<e.maximum||i.addError({name:"maximum",argument:e.maximum,message:"must be less than "+e.maximum}):t<=e.maximum||i.addError({name:"maximum",argument:e.maximum,message:"must be less than or equal to "+e.maximum}),i}},c.exclusiveMinimum=function(t,e,r,n){if("boolean"!=typeof e.exclusiveMinimum&&this.types.number(t)){var i=new o(t,e,r,n);return t>e.exclusiveMinimum||i.addError({name:"exclusiveMinimum",argument:e.exclusiveMinimum,message:"must be strictly greater than "+e.exclusiveMinimum}),i}},c.exclusiveMaximum=function(t,e,r,n){if("boolean"!=typeof e.exclusiveMaximum&&this.types.number(t)){var i=new o(t,e,r,n);return t<e.exclusiveMaximum||i.addError({name:"exclusiveMaximum",argument:e.exclusiveMaximum,message:"must be strictly less than "+e.exclusiveMaximum}),i}};var l=function(t,e,r,a,c,s){if(this.types.number(t)){var u=e[c];if(0==u)throw new i(c+" cannot be zero");var p=new o(t,e,r,a),l=n.getDecimalPlaces(t),f=n.getDecimalPlaces(u),h=Math.max(l,f),d=Math.pow(10,h);return Math.round(t*d)%Math.round(u*d)!=0&&p.addError({name:c,argument:u,message:s+JSON.stringify(u)}),p}};function f(t,e,r){var o,i=r.length;for(o=e+1;o<i;o++)if(n.deepCompareStrict(t,r[o]))return!1;return!0}c.multipleOf=function(t,e,r,n){return l.call(this,t,e,r,n,"multipleOf","is not a multiple of (divisible by) ")},c.divisibleBy=function(t,e,r,n){return l.call(this,t,e,r,n,"divisibleBy","is not divisible by (multiple of) ")},c.required=function(t,e,r,n){var i=new o(t,e,r,n);return void 0===t&&!0===e.required?i.addError({name:"required",message:"is required"}):this.types.object(t)&&Array.isArray(e.required)&&e.required.forEach((function(e){void 0===u(t,e)&&i.addError({name:"required",argument:e,message:"requires property "+JSON.stringify(e)})})),i},c.pattern=function(t,e,r,n){if(this.types.string(t)){var i=new o(t,e,r,n),a=e.pattern;try{var c=new RegExp(a,"u")}catch(t){c=new RegExp(a)}return t.match(c)||i.addError({name:"pattern",argument:e.pattern,message:"does not match pattern "+JSON.stringify(e.pattern.toString())}),i}},c.format=function(t,e,r,i){if(void 0!==t){var a=new o(t,e,r,i);return a.disableFormat||n.isFormat(t,e.format,this)||a.addError({name:"format",argument:e.format,message:"does not conform to the "+JSON.stringify(e.format)+" format"}),a}},c.minLength=function(t,e,r,n){if(this.types.string(t)){var i=new o(t,e,r,n),a=t.match(/[\uDC00-\uDFFF]/g);return t.length-(a?a.length:0)>=e.minLength||i.addError({name:"minLength",argument:e.minLength,message:"does not meet minimum length of "+e.minLength}),i}},c.maxLength=function(t,e,r,n){if(this.types.string(t)){var i=new o(t,e,r,n),a=t.match(/[\uDC00-\uDFFF]/g);return t.length-(a?a.length:0)<=e.maxLength||i.addError({name:"maxLength",argument:e.maxLength,message:"does not meet maximum length of "+e.maxLength}),i}},c.minItems=function(t,e,r,n){if(this.types.array(t)){var i=new o(t,e,r,n);return t.length>=e.minItems||i.addError({name:"minItems",argument:e.minItems,message:"does not meet minimum length of "+e.minItems}),i}},c.maxItems=function(t,e,r,n){if(this.types.array(t)){var i=new o(t,e,r,n);return t.length<=e.maxItems||i.addError({name:"maxItems",argument:e.maxItems,message:"does not meet maximum length of "+e.maxItems}),i}},c.uniqueItems=function(t,e,r,n){if(!0===e.uniqueItems&&this.types.array(t)){var i=new o(t,e,r,n);return t.every(f)||i.addError({name:"uniqueItems",message:"contains duplicate item"}),i}},c.dependencies=function(t,e,r,n){if(this.types.object(t)){var i=new o(t,e,r,n);for(var a in e.dependencies)if(void 0!==t[a]){var c=e.dependencies[a],s=n.makeChild(c,a);if("string"==typeof c&&(c=[c]),Array.isArray(c))c.forEach((function(e){void 0===t[e]&&i.addError({name:"dependencies",argument:s.propertyPath,message:"property "+e+" not found, required by "+s.propertyPath})}));else{var u=this.validateSchema(t,c,r,s);i.instance!==u.instance&&(i.instance=u.instance),u&&u.errors.length&&(i.addError({name:"dependencies",argument:s.propertyPath,message:"does not meet dependency required by "+s.propertyPath}),i.importErrors(u))}}return i}},c.enum=function(t,e,r,a){if(void 0===t)return null;if(!Array.isArray(e.enum))throw new i("enum expects an array",e);var c=new o(t,e,r,a);return e.enum.some(n.deepCompareStrict.bind(null,t))||c.addError({name:"enum",argument:e.enum,message:"is not one of enum values: "+e.enum.map(String).join(",")}),c},c.const=function(t,e,r,i){if(void 0===t)return null;var a=new o(t,e,r,i);return n.deepCompareStrict(e.const,t)||a.addError({name:"const",argument:e.const,message:"does not exactly match expected constant: "+e.const}),a},c.not=c.disallow=function(t,e,r,n){var i=this;if(void 0===t)return null;var a=new o(t,e,r,n),c=e.not||e.disallow;return c?(Array.isArray(c)||(c=[c]),c.forEach((function(o){if(i.testType(t,e,r,n,o)){var c=o&&(o.$id||o.id)||o;a.addError({name:"not",argument:c,message:"is of prohibited type "+c})}})),a):null},t.exports=a},6274:t=>{var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new o(n,i||t,a),s=r?r+e:e;return t._events[s]?t._events[s].fn?t._events[s]=[t._events[s],c]:t._events[s].push(c):(t._events[s]=c,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function c(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),c.prototype.eventNames=function(){var t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},c.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},c.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},c.prototype.emit=function(t,e,n,o,i,a){var c=r?r+t:t;if(!this._events[c])return!1;var s,u,p=this._events[c],l=arguments.length;if(p.fn){switch(p.once&&this.removeListener(t,p.fn,void 0,!0),l){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,e),!0;case 3:return p.fn.call(p.context,e,n),!0;case 4:return p.fn.call(p.context,e,n,o),!0;case 5:return p.fn.call(p.context,e,n,o,i),!0;case 6:return p.fn.call(p.context,e,n,o,i,a),!0}for(u=1,s=new Array(l-1);u<l;u++)s[u-1]=arguments[u];p.fn.apply(p.context,s)}else{var f,h=p.length;for(u=0;u<h;u++)switch(p[u].once&&this.removeListener(t,p[u].fn,void 0,!0),l){case 1:p[u].fn.call(p[u].context);break;case 2:p[u].fn.call(p[u].context,e);break;case 3:p[u].fn.call(p[u].context,e,n);break;case 4:p[u].fn.call(p[u].context,e,n,o);break;default:if(!s)for(f=1,s=new Array(l-1);f<l;f++)s[f-1]=arguments[f];p[u].fn.apply(p[u].context,s)}}return!0},c.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,n,o){var i=r?r+t:t;if(!this._events[i])return this;if(!e)return a(this,i),this;var c=this._events[i];if(c.fn)c.fn!==e||o&&!c.once||n&&c.context!==n||a(this,i);else{for(var s=0,u=[],p=c.length;s<p;s++)(c[s].fn!==e||o&&!c[s].once||n&&c[s].context!==n)&&u.push(c[s]);u.length?this._events[i]=1===u.length?u[0]:u:a(this,i)}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t.exports=c},6402:(t,e,r)=>{var n=r(1953),o=r(8657),i=r(2629),a=r(3221),c=r(3441)||a||i;t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new n("Side channel does not contain "+o(t))},delete:function(e){return!!t&&t.delete(e)},get:function(e){return t&&t.get(e)},has:function(e){return!!t&&t.has(e)},set:function(e,r){t||(t=c()),t.set(e,r)}};return e}},6681:t=>{t.exports=Number.isNaN||function(t){return t!=t}},6773:(t,e)=>{e.L=function(t,e,r,n,o){var i,a,c=8*o-n-1,s=(1<<c)-1,u=s>>1,p=-7,l=r?o-1:0,f=r?-1:1,h=t[e+l];for(l+=f,i=h&(1<<-p)-1,h>>=-p,p+=c;p>0;i=256*i+t[e+l],l+=f,p-=8);for(a=i&(1<<-p)-1,i>>=-p,p+=n;p>0;a=256*a+t[e+l],l+=f,p-=8);if(0===i)i=1-u;else{if(i===s)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=u}return(h?-1:1)*a*Math.pow(2,i-n)},e.M=function(t,e,r,n,o,i){var a,c,s,u=8*i-o-1,p=(1<<u)-1,l=p>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,d=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,a=p):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),(e+=a+l>=1?f/s:f*Math.pow(2,1-l))*s>=2&&(a++,s/=2),a+l>=p?(c=0,a=p):a+l>=1?(c=(e*s-1)*Math.pow(2,o),a+=l):(c=e*Math.pow(2,l-1)*Math.pow(2,o),a=0));o>=8;t[r+h]=255&c,h+=d,c/=256,o-=8);for(a=a<<o|c,u+=o;u>0;t[r+h]=255&a,h+=d,a/=256,u-=8);t[r+h-d]|=128*m}},6854:(t,e,r)=>{r.d(e,{S:()=>a});var n=r(9653),o=r(1227),i=r.n(o)()("fs:request:shouldRetry"),a=function(t){switch(i("Checking error for retry. Code: %n, type: %s",t.response?t.response.status:"Malformed response",t.code),t.code){case n.E.NETWORK:case n.E.SERVER:case n.E.TIMEOUT:return!0;case n.E.ABORTED:return!1}return!!t.response&&500<=t.response.status&&t.response.status<=599}},6889:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o=r(6402),i=r(4509),a=r(9292),c=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},u=Array.isArray,p=Array.prototype.push,l=function(t,e){p.apply(t,u(e)?e:[e])},f=Date.prototype.toISOString,h=a.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:h,formatter:a.formatters[h],indices:!1,serializeDate:function(t){return f.call(t)},skipNulls:!1,strictNullHandling:!1},m={},y=function t(e,r,a,c,s,p,f,h,y,v,g,b,x,w,k,S,E,O){for(var j=e,F=O,_=0,P=!1;void 0!==(F=F.get(m))&&!P;){var A=F.get(e);if(_+=1,void 0!==A){if(A===_)throw new RangeError("Cyclic object value");P=!0}void 0===F.get(m)&&(_=0)}if("function"==typeof v?j=v(r,j):j instanceof Date?j=x(j):"comma"===a&&u(j)&&(j=i.maybeMap(j,(function(t){return t instanceof Date?x(t):t}))),null===j){if(p)return y&&!S?y(r,d.encoder,E,"key",w):r;j=""}if(function(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t||"symbol"===n(t)||"bigint"==typeof t}(j)||i.isBuffer(j))return y?[k(S?r:y(r,d.encoder,E,"key",w))+"="+k(y(j,d.encoder,E,"value",w))]:[k(r)+"="+k(String(j))];var T,D=[];if(void 0===j)return D;if("comma"===a&&u(j))S&&y&&(j=i.maybeMap(j,y)),T=[{value:j.length>0?j.join(",")||null:void 0}];else if(u(v))T=v;else{var L=Object.keys(j);T=g?L.sort(g):L}var C=h?String(r).replace(/\./g,"%2E"):String(r),I=c&&u(j)&&1===j.length?C+"[]":C;if(s&&u(j)&&0===j.length)return I+"[]";for(var z=0;z<T.length;++z){var N=T[z],R="object"===n(N)&&N&&void 0!==N.value?N.value:j[N];if(!f||null!==R){var M=b&&h?String(N).replace(/\./g,"%2E"):String(N),B=u(j)?"function"==typeof a?a(I,M):I:I+(b?"."+M:"["+M+"]");O.set(e,_);var U=o();U.set(m,O),l(D,t(R,B,a,c,s,p,f,h,"comma"===a&&S&&u(j)?null:y,v,g,b,x,w,k,S,E,U))}}return D};t.exports=function(t,e){var r,i=t,p=function(t){if(!t)return d;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.encodeDotInKeys&&"boolean"!=typeof t.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||d.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=a.default;if(void 0!==t.format){if(!c.call(a.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n,o=a.formatters[r],i=d.filter;if(("function"==typeof t.filter||u(t.filter))&&(i=t.filter),n=t.arrayFormat in s?t.arrayFormat:"indices"in t?t.indices?"indices":"repeat":d.arrayFormat,"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var p=void 0===t.allowDots?!0===t.encodeDotInKeys||d.allowDots:!!t.allowDots;return{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:d.addQueryPrefix,allowDots:p,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:n,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:d.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:void 0===t.delimiter?d.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:d.encode,encodeDotInKeys:"boolean"==typeof t.encodeDotInKeys?t.encodeDotInKeys:d.encodeDotInKeys,encoder:"function"==typeof t.encoder?t.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:d.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:d.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:d.strictNullHandling}}(e);"function"==typeof p.filter?i=(0,p.filter)("",i):u(p.filter)&&(r=p.filter);var f=[];if("object"!==n(i)||null===i)return"";var h=s[p.arrayFormat],m="comma"===h&&p.commaRoundTrip;r||(r=Object.keys(i)),p.sort&&r.sort(p.sort);for(var v=o(),g=0;g<r.length;++g){var b=r[g],x=i[b];p.skipNulls&&null===x||l(f,y(x,b,h,m,p.allowEmptyArrays,p.strictNullHandling,p.skipNulls,p.encodeDotInKeys,p.encode?p.encoder:null,p.filter,p.sort,p.allowDots,p.serializeDate,p.format,p.formatter,p.encodeValuesOnly,p.charset,v))}var w=f.join(p.delimiter),k=!0===p.addQueryPrefix?"?":"";return p.charsetSentinel&&("iso-8859-1"===p.charset?k+="utf8=%26%2310003%3B&":k+="utf8=%E2%9C%93&"),w.length>0?k+w:""}},6947:(t,e,r)=>{r.r(e),r.d(e,{b64:()=>vr,cleanUpCallbacks:()=>Ar,extensionToMime:()=>Fr,filterObject:()=>Pr,getMimetype:()=>jr,getVersion:()=>gr,isFacebook:()=>xr,isMobile:()=>br,md5:()=>yr,removeEmpty:()=>Sr,resolveCdnUrl:()=>wr,resolveHost:()=>kr,sanitizeName:()=>_r,uniqueId:()=>Or,uniqueTime:()=>Er});var n,o,i=r(1635),a={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomsvc+xml":["atomsvc"],"application/bdoc":["bdoc"],"application/ccxml+xml":["ccxml"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma","es"],"application/emma+xml":["emma"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/octet-stream":["bin","dms","tdms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","msp","buffer","psdata","indt","hpd","mxd","indd","vsm","hpt"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-diff+xml":["xdf"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jpg":["jpeg","jpg","jpe"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"application/font-ttf":"ttf","application/vnd.ms-fontobject":"eot","application/font-otf":"otf","text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard","vcr"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"],"application/prs.cww":["cww"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["keynote","key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.key":["key"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.ms-visio.drawing.main+xml":["vsdx"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/vnd.avi":["avi"],"video/x-msvideo":["avi"],"video/avi":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"],"application/x-msi":"msi","application/x-ms":"ms","application/vnd.geo+json":"geojson","application/vnd.debian.binary-package":"deb","application/font-woff":"woff","application/font-woff2":"woff2","application/x-font-ttf":["ttc","ttf"],"font/opentype":"otf","application/x-bb-appworld":"bbaw","application/x-cd-image":"iso","application/x-opera-extension":"oex","application/x-ms-dos-executable":"exe","text/vnd.rim.location.xloc":"xloc","application/x-desktop":"desktop","application/x-typescript":"ts","application/x-java-archive":"jar","application/x-sharedlib":"so","image/avif":"avif"};function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}r(6773);for(var s,u={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},p={},l=0,f=Object.entries(u);l<f.length;l++){var h=(n=f[l],o=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);s=!0);}catch(t){u=!0,o=t}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(n,o)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(t,e):void 0}}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=h[0];p[h[1]]=Number.parseInt(d,10)}var m=32768,y=65533;function v(t,e){0!==e.length&&(t.push(String.fromCharCode.apply(null,e)),e.length=0)}function g(t,e,r){e.push(r),e.length>=m&&v(t,e)}function b(t,e,r){r<=65535?g(t,e,r):(g(t,e,55296+((r-=65536)>>10)),g(t,e,56320+(1023&r)))}function x(t){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},x(t)}function w(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,k(n.key),n)}}function k(t){var e=function(t){if("object"!=x(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=x(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==x(e)?e:String(e)}function S(t){return new DataView(t.buffer,t.byteOffset)}var E={len:1,get:function(t,e){return S(t).getUint8(e)},put:function(t,e,r){return S(t).setUint8(e,r),e+1}},O={len:2,get:function(t,e){return S(t).getUint16(e,!0)},put:function(t,e,r){return S(t).setUint16(e,r,!0),e+2}},j={len:2,get:function(t,e){return S(t).getUint16(e)},put:function(t,e,r){return S(t).setUint16(e,r),e+2}},F={len:4,get:function(t,e){return S(t).getUint32(e,!0)},put:function(t,e,r){return S(t).setUint32(e,r,!0),e+4}},_={len:4,get:function(t,e){return S(t).getUint32(e)},put:function(t,e,r){return S(t).setUint32(e,r),e+4}},P={len:4,get:function(t,e){return S(t).getInt32(e)},put:function(t,e,r){return S(t).setInt32(e,r),e+4}},A={len:8,get:function(t,e){return S(t).getBigUint64(e,!0)},put:function(t,e,r){return S(t).setBigUint64(e,r,!0),e+8}},T=function(){function t(e,r){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.len=e,this.encoding=r}return e=t,r=[{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf-8";switch(e.toLowerCase()){case"utf-8":case"utf8":var r=function(){if(void 0!==globalThis.TextDecoder)return null!=s?s:s=new globalThis.TextDecoder("utf-8")}();return r?r.decode(t):function(t){var e=[],r=[],n=0;for(t.length>=3&&239===t[0]&&187===t[1]&&191===t[2]&&(n=3);n<t.length;){var o=t[n];if(o<=127)g(e,r,o),n++;else if(o<194||o>244)g(e,r,y),n++;else if(o<=223){if(n+1>=t.length){g(e,r,y),n++;continue}var i=t[n+1];if(128!=(192&i)){g(e,r,y),n++;continue}g(e,r,(31&o)<<6|63&i),n+=2}else if(o<=239){if(n+2>=t.length){g(e,r,y),n++;continue}var a=t[n+1],c=t[n+2];if(128!=(192&a)||128!=(192&c)||224===o&&a<160||237===o&&a>=160){g(e,r,y),n++;continue}g(e,r,(15&o)<<12|(63&a)<<6|63&c),n+=3}else if(n+3>=t.length)g(e,r,y),n++;else{var s=t[n+1],u=t[n+2],p=t[n+3];128!=(192&s)||128!=(192&u)||128!=(192&p)||240===o&&s<144||244===o&&s>143?(g(e,r,y),n++):(b(e,r,(7&o)<<18|(63&s)<<12|(63&u)<<6|63&p),n+=4)}}return v(e,r),e.join("")}(t);case"utf-16le":return function(t){for(var e=[],r=[],n=t.length,o=0;o+1<n;){var i=t[o]|t[o+1]<<8;if(o+=2,i>=55296&&i<=56319)if(o+1<n){var a=t[o]|t[o+1]<<8;a>=56320&&a<=57343?(g(e,r,i),g(e,r,a),o+=2):g(e,r,y)}else g(e,r,y);else g(e,r,i>=56320&&i<=57343?y:i)}return o<n&&g(e,r,y),v(e,r),e.join("")}(t);case"us-ascii":case"ascii":return function(t){for(var e=[],r=0;r<t.length;r+=m){for(var n=Math.min(t.length,r+m),o=new Array(n-r),i=r,a=0;i<n;i++,a++)o[a]=127&t[i];e.push(String.fromCharCode.apply(null,o))}return e.join("")}(t);case"latin1":case"iso-8859-1":return function(t){for(var e=[],r=0;r<t.length;r+=m){for(var n=Math.min(t.length,r+m),o=new Array(n-r),i=r,a=0;i<n;i++,a++)o[a]=t[i];e.push(String.fromCharCode.apply(null,o))}return e.join("")}(t);case"windows-1252":return function(t){for(var e=[],r="",n=0;n<t.length;n++){var o=t[n],i=o>=128&&o<=159?u[o]:void 0;(r+=null!=i?i:String.fromCharCode(o)).length>=m&&(e.push(r),r="")}return r&&e.push(r),e.join("")}(t);default:throw new RangeError("Encoding '".concat(e,"' not supported"))}}(t.subarray(e,e+this.len),this.encoding)}}],r&&w(e.prototype,r),n&&w(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t;var e,r,n}(),D=r(7680),L=r(9971),C=r(1227),I=67324752,z=33639248,N={get:function(t){return{signature:F.get(t,0),compressedSize:F.get(t,8),uncompressedSize:F.get(t,12)}},len:16},R={get:function(t){var e=O.get(t,6);return{signature:F.get(t,0),minVersion:O.get(t,4),dataDescriptor:!!(8&e),compressedMethod:O.get(t,8),compressedSize:F.get(t,18),uncompressedSize:F.get(t,22),filenameLength:O.get(t,26),extraFieldLength:O.get(t,28),filename:null}},len:30},M={get:function(t){return{signature:F.get(t,0),nrOfThisDisk:O.get(t,4),nrOfThisDiskWithTheStart:O.get(t,6),nrOfEntriesOnThisDisk:O.get(t,8),nrOfEntriesOfSize:O.get(t,10),sizeOfCd:F.get(t,12),offsetOfStartOfCd:F.get(t,16),zipFileCommentLength:O.get(t,20)}},len:22},B={get:function(t){var e=O.get(t,8);return{signature:F.get(t,0),minVersion:O.get(t,6),dataDescriptor:!!(8&e),compressedMethod:O.get(t,10),compressedSize:F.get(t,20),uncompressedSize:F.get(t,24),filenameLength:O.get(t,28),extraFieldLength:O.get(t,30),fileCommentLength:O.get(t,32),relativeOffsetOfLocalHeader:F.get(t,42),filename:null}},len:46};function U(t){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U(t)}function q(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return G(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?G(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function G(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function $(){$=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new A(n||[]);return o(a,"_invoke",{value:j(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var f="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var x={};u(x,a,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(T([])));k&&k!==r&&n.call(k,a)&&(x=k);var S=b.prototype=v.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==U(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function j(e,r,n){var o=f;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var s=F(c,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=l(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function F(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,F(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(U(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,s,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),u(S,s,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Z(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function V(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Z(i,n,o,a,c,"next",t)}function c(t){Z(i,n,o,a,c,"throw",t)}a(void 0)}))}}function H(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Y(n.key),n)}}function Y(t){var e=function(t){if("object"!=U(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=U(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==U(e)?e:String(e)}function W(t){var e=new Uint8Array(F.len);return F.put(e,0,t),e}var K=C("tokenizer:inflate"),Q=262144,J=W(134695760),X=W(101010256),tt=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.tokenizer=e,this.syncBuffer=new Uint8Array(Q)}var e,r,n,o,i,a,c,s,u,p,l;return e=t,r=[{key:"isZip",value:(l=V($().mark((function t(){return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.peekSignature();case 2:return t.t0=t.sent,t.t1=I,t.abrupt("return",t.t0===t.t1);case 5:case"end":return t.stop()}}),t,this)}))),function(){return l.apply(this,arguments)})},{key:"peekSignature",value:function(){return this.tokenizer.peekToken(F)}},{key:"findEndOfCentralDirectoryLocator",value:(p=V($().mark((function t(){var e,r,n,o;return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.tokenizer,r=Math.min(16384,e.fileInfo.size),n=this.syncBuffer.subarray(0,r),t.next=5,this.tokenizer.readBuffer(n,{position:e.fileInfo.size-r});case 5:o=n.length-4;case 6:if(!(o>=0)){t.next=12;break}if(n[o]!==X[0]||n[o+1]!==X[1]||n[o+2]!==X[2]||n[o+3]!==X[3]){t.next=9;break}return t.abrupt("return",e.fileInfo.size-r+o);case 9:o--,t.next=6;break;case 12:return t.abrupt("return",-1);case 13:case"end":return t.stop()}}),t,this)}))),function(){return p.apply(this,arguments)})},{key:"readCentralDirectory",value:(u=V($().mark((function t(){var e,r,n,o,i,a;return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.tokenizer.supportsRandomAccess()){t.next=3;break}return K("Cannot reading central-directory without random-read support"),t.abrupt("return");case 3:return K("Reading central-directory..."),e=this.tokenizer.position,t.next=7,this.findEndOfCentralDirectoryLocator();case 7:if(!((r=t.sent)>0)){t.next=36;break}return K("Central-directory 32-bit signature found"),t.next=12,this.tokenizer.readToken(M,r);case 12:n=t.sent,o=[],this.tokenizer.setPosition(n.offsetOfStartOfCd),i=0;case 16:if(!(i<n.nrOfEntriesOfSize)){t.next=34;break}return t.next=19,this.tokenizer.readToken(B);case 19:if((a=t.sent).signature===z){t.next=22;break}throw new Error("Expected Central-File-Header signature");case 22:return t.next=24,this.tokenizer.readToken(new T(a.filenameLength,"utf-8"));case 24:return a.filename=t.sent,t.next=27,this.tokenizer.ignore(a.extraFieldLength);case 27:return t.next=29,this.tokenizer.ignore(a.fileCommentLength);case 29:o.push(a),K("Add central-directory file-entry: n=".concat(i+1,"/").concat(o.length,": filename=").concat(o[i].filename));case 31:++i,t.next=16;break;case 34:return this.tokenizer.setPosition(e),t.abrupt("return",o);case 36:this.tokenizer.setPosition(e);case 37:case"end":return t.stop()}}),t,this)}))),function(){return u.apply(this,arguments)})},{key:"unzip",value:(s=V($().mark((function t(e){var r,n,o,i,a,c,s,u,p,l;return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.readCentralDirectory();case 2:if(!(r=t.sent)){t.next=5;break}return t.abrupt("return",this.iterateOverCentralDirectory(r,e));case 5:n=!1;case 6:return t.next=8,this.readLocalFileHeader();case 8:if(o=t.sent){t.next=11;break}return t.abrupt("break",64);case 11:return i=e(o),n=!!i.stop,a=void 0,t.next=16,this.tokenizer.ignore(o.extraFieldLength);case 16:if(!o.dataDescriptor||0!==o.compressedSize){t.next=44;break}c=[],s=Q,K("Compressed-file-size unknown, scanning for next data-descriptor-signature...."),u=-1;case 21:if(!(u<0&&s===Q)){t.next=38;break}return t.next=24,this.tokenizer.peekBuffer(this.syncBuffer,{mayBeLess:!0});case 24:if(s=t.sent,u=et(this.syncBuffer.subarray(0,s),J),p=u>=0?u:s,!i.handler){t.next=34;break}return l=new Uint8Array(p),t.next=31,this.tokenizer.readBuffer(l);case 31:c.push(l),t.next=36;break;case 34:return t.next=36,this.tokenizer.ignore(p);case 36:t.next=21;break;case 38:if(K("Found data-descriptor-signature at pos=".concat(this.tokenizer.position)),!i.handler){t.next=42;break}return t.next=42,this.inflate(o,rt(c),i.handler);case 42:t.next=56;break;case 44:if(!i.handler){t.next=53;break}return K("Reading compressed-file-data: ".concat(o.compressedSize," bytes")),a=new Uint8Array(o.compressedSize),t.next=49,this.tokenizer.readBuffer(a);case 49:return t.next=51,this.inflate(o,a,i.handler);case 51:t.next=56;break;case 53:return K("Ignoring compressed-file-data: ".concat(o.compressedSize," bytes")),t.next=56,this.tokenizer.ignore(o.compressedSize);case 56:if(K("Reading data-descriptor at pos=".concat(this.tokenizer.position)),!o.dataDescriptor){t.next=63;break}return t.next=60,this.tokenizer.readToken(N);case 60:if(134695760===t.sent.signature){t.next=63;break}throw new Error("Expected data-descriptor-signature at position ".concat(this.tokenizer.position-N.len));case 63:if(!n){t.next=6;break}case 64:case"end":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"iterateOverCentralDirectory",value:(c=V($().mark((function t(e,r){var n,o,i,a,c,s;return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=q(e),t.prev=1,n.s();case 3:if((o=n.n()).done){t.next=23;break}if(i=o.value,!(a=r(i)).handler){t.next=19;break}return this.tokenizer.setPosition(i.relativeOffsetOfLocalHeader),t.next=10,this.readLocalFileHeader();case 10:if(!(c=t.sent)){t.next=19;break}return t.next=14,this.tokenizer.ignore(c.extraFieldLength);case 14:return s=new Uint8Array(i.compressedSize),t.next=17,this.tokenizer.readBuffer(s);case 17:return t.next=19,this.inflate(c,s,a.handler);case 19:if(!a.stop){t.next=21;break}return t.abrupt("break",23);case 21:t.next=3;break;case 23:t.next=28;break;case 25:t.prev=25,t.t0=t.catch(1),n.e(t.t0);case 28:return t.prev=28,n.f(),t.finish(28);case 31:case"end":return t.stop()}}),t,this,[[1,25,28,31]])}))),function(t,e){return c.apply(this,arguments)})},{key:"inflate",value:(a=V($().mark((function e(r,n,o){var i;return $().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==r.compressedMethod){e.next=2;break}return e.abrupt("return",o(n));case 2:if(8===r.compressedMethod){e.next=4;break}throw new Error("Unsupported ZIP compression method: ".concat(r.compressedMethod));case 4:return K("Decompress filename=".concat(r.filename,", compressed-size=").concat(n.length)),e.next=7,t.decompressDeflateRaw(n);case 7:return i=e.sent,e.abrupt("return",o(i));case 9:case"end":return e.stop()}}),e)}))),function(t,e,r){return a.apply(this,arguments)})},{key:"readLocalFileHeader",value:(i=V($().mark((function t(){var e,r;return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.tokenizer.peekToken(F);case 2:if((e=t.sent)!==I){t.next=11;break}return t.next=6,this.tokenizer.readToken(R);case 6:return r=t.sent,t.next=9,this.tokenizer.readToken(new T(r.filenameLength,"utf-8"));case 9:return r.filename=t.sent,t.abrupt("return",r);case 11:if(e!==z){t.next=13;break}return t.abrupt("return",!1);case 13:if(3759263696!==e){t.next=15;break}throw new Error("Encrypted ZIP");case 15:throw new Error("Unexpected signature");case 16:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})}],n=[{key:"decompressDeflateRaw",value:(o=V($().mark((function t(e){var r,n,o,i,a,c;return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=new ReadableStream({start:function(t){t.enqueue(e),t.close()}}),n=new DecompressionStream("deflate-raw"),o=r.pipeThrough(n),t.prev=3,i=new Response(o),t.next=7,i.arrayBuffer();case 7:return a=t.sent,t.abrupt("return",new Uint8Array(a));case 11:throw t.prev=11,t.t0=t.catch(3),c=t.t0 instanceof Error?"Failed to deflate ZIP entry: ".concat(t.t0.message):"Unknown decompression error in ZIP entry",new TypeError(c);case 15:case"end":return t.stop()}}),t,null,[[3,11]])}))),function(t){return o.apply(this,arguments)})}],r&&H(e.prototype,r),n&&H(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function et(t,e){var r=t.length,n=e.length;if(n>r)return-1;for(var o=0;o<=r-n;o++){for(var i=!0,a=0;a<n;a++)if(t[o+a]!==e[a]){i=!1;break}if(i)return o}return-1}function rt(t){var e,r=t.reduce((function(t,e){return t+e.length}),0),n=new Uint8Array(r),o=0,i=q(t);try{for(i.s();!(e=i.n()).done;){var a=e.value;n.set(a,o),o+=a.length}}catch(t){i.e(t)}finally{i.f()}return n}function nt(t){return nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nt(t)}function ot(){ot=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new A(n||[]);return o(a,"_invoke",{value:j(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var f="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var x={};u(x,a,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(T([])));k&&k!==r&&n.call(k,a)&&(x=k);var S=b.prototype=v.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==nt(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function j(e,r,n){var o=f;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var s=F(c,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=l(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function F(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,F(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(nt(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,s,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),u(S,s,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function it(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function at(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ct(n.key),n)}}function ct(t){var e=function(t){if("object"!=nt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=nt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==nt(e)?e:String(e)}var st=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.tokenizer=e}var e,r;return e=t,r=[{key:"inflate",value:function(){var t=this.tokenizer;return new ReadableStream({pull:function(e){return(r=ot().mark((function r(){var n,o;return ot().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=new Uint8Array(1024),r.next=3,t.readBuffer(n,{mayBeLess:!0});case 3:if(0!==(o=r.sent)){r.next=7;break}return e.close(),r.abrupt("return");case 7:e.enqueue(n.subarray(0,o));case 8:case"end":return r.stop()}}),r)})),function(){var t=this,e=arguments;return new Promise((function(n,o){var i=r.apply(t,e);function a(t){it(i,n,o,a,c,"next",t)}function c(t){it(i,n,o,a,c,"throw",t)}a(void 0)}))})();var r}}).pipeThrough(new DecompressionStream("gzip"))}}],r&&at(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function ut(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function pt(t){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pt(t)}var lt=Object.prototype.toString;function ft(t){return function(t,e,r){return!!t&&(t.constructor===e||lt.call(t)===r)}(t,Uint8Array,"[object Uint8Array]")}function ht(t){if(!ft(t))throw new TypeError("Expected `Uint8Array`, got `".concat(pt(t),"`"))}function dt(t,e){var r;if(0===t.length)return new Uint8Array(0);null!==(r=e)&&void 0!==r||(e=t.reduce((function(t,e){return t+e.length}),0));var n,o=new Uint8Array(e),i=0,a=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return ut(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ut(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}(t);try{for(a.s();!(n=a.n()).done;){var c=n.value;ht(c),o.set(c,i),i+=c.length}}catch(t){a.e(t)}finally{a.f()}return o}function mt(t){var e=t.byteLength;return 6===e?t.getUint16(0)*Math.pow(2,32)+t.getUint32(2):5===e?t.getUint8(0)*Math.pow(2,32)+t.getUint32(1):4===e?t.getUint32(0):3===e?t.getUint8(0)*Math.pow(2,16)+t.getUint16(1):2===e?t.getUint16(0):1===e?t.getUint8(0):void 0}function yt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function vt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=Number.parseInt(new T(6).get(t,148).replace(/\0(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$/,"").trim(),8);if(Number.isNaN(r))return!1;for(var n=256,o=e;o<e+148;o++)n+=t[o];for(var i=e+156;i<e+512;i++)n+=t[i];return r===n}new globalThis.TextDecoder("utf8"),new globalThis.TextEncoder,Array.from({length:256},(function(t,e){return e.toString(16).padStart(2,"0")}));var gt={get:function(t,e){return 127&t[e+3]|(127&t[e+2])<<7|(127&t[e+1])<<14|(127&t[e])<<21},len:4};function bt(t){return bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bt(t)}function xt(){xt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new A(n||[]);return o(a,"_invoke",{value:j(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var f="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var x={};u(x,a,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(T([])));k&&k!==r&&n.call(k,a)&&(x=k);var S=b.prototype=v.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==bt(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function j(e,r,n){var o=f;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var s=F(c,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=l(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function F(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,F(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(bt(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,s,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),u(S,s,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function wt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);s=!0);}catch(t){u=!0,o=t}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||kt(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kt(t,e){if(t){if("string"==typeof t)return St(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?St(t,e):void 0}}function St(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Et(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ot(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Et(Object(r),!0).forEach((function(e){var n,o,i;n=t,o=e,i=r[e],(o=_t(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Et(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function jt(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function Ft(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){jt(i,n,o,a,c,"next",t)}function c(t){jt(i,n,o,a,c,"throw",t)}a(void 0)}))}}function _t(t){var e=function(t){if("object"!=bt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=bt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==bt(e)?e:String(e)}function Pt(t){var e="function"==typeof Map?new Map:void 0;return Pt=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return At(t,arguments,Lt(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Dt(r,t)},Pt(t)}function At(t,e,r){return At=Tt()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&Dt(o,r.prototype),o},At.apply(null,arguments)}function Tt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function Dt(t,e){return Dt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Dt(t,e)}function Lt(t){return Lt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Lt(t)}var Ct=16777216,It=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Dt(t,e)}(i,t);var e,r,n,o=(r=i,n=Tt(),function(){var t,e=Lt(r);if(n){var o=Lt(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===bt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return e=i,Object.defineProperty(e,"prototype",{writable:!1}),e}(Pt(Error));function zt(t,e,r){if(!Number.isFinite(t)||t<0||t>e)throw new It("".concat(r," has invalid size ").concat(t," (maximum ").concat(e," bytes)"));return t}function Nt(t,e){return Rt.apply(this,arguments)}function Rt(){return Rt=Ft(xt().mark((function t(e,r){var n,o,i,a,c,s=arguments;return xt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=(n=s.length>2&&void 0!==s[2]?s[2]:{}).maximumLength,i=void 0===o?Ct:o,a=n.reason,c=zt(r,i,void 0===a?"skip":a),t.next=4,e.ignore(c);case 4:case"end":return t.stop()}}),t)}))),Rt.apply(this,arguments)}function Mt(t,e,r){return Bt.apply(this,arguments)}function Bt(){return Bt=Ft(xt().mark((function t(e,r,n){var o,i,a,c,s,u,p,l,f=arguments;return xt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=(i=f.length>3&&void 0!==f[3]?f[3]:{}).maximumLength,c=void 0===a?r.length:a,s=i.reason,u=void 0===s?"read":s,p=null!==(o=null==n?void 0:n.length)&&void 0!==o?o:r.length,l=zt(p,c,u),t.abrupt("return",e.readBuffer(r,Ot(Ot({},n),{},{length:l})));case 4:case"end":return t.stop()}}),t)}))),Bt.apply(this,arguments)}function Ut(t,e,r){r=Ot({offset:0},r);var n,o=function(t){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=kt(t))){e&&(t=e);var r=0,n=function(){};return{s:n,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return i=t.done,t},e:function(t){a=!0,o=t},f:function(){try{i||null==e.return||e.return()}finally{if(a)throw o}}}}(e.entries());try{for(o.s();!(n=o.n()).done;){var i=wt(n.value,2),a=i[0],c=i[1];if(r.mask){if(c!==(r.mask[a]&t[a+r.offset]))return!1}else if(c!==t[a+r.offset])return!1}}catch(t){o.e(t)}finally{o.f()}return!0}function qt(t){var e=t.fileInfo.size;return!Number.isFinite(e)||e===Number.MAX_SAFE_INTEGER}function Gt(t,e,r){return qt(t)&&t.position-e>r}function $t(t){return $t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$t(t)}function Zt(){Zt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new A(n||[]);return o(a,"_invoke",{value:j(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var f="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var x={};u(x,a,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(T([])));k&&k!==r&&n.call(k,a)&&(x=k);var S=b.prototype=v.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==$t(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function j(e,r,n){var o=f;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var s=F(c,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=l(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function F(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,F(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError($t(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,s,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),u(S,s,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Vt(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return Ht(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ht(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function Ht(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Yt(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function Wt(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Yt(i,n,o,a,c,"next",t)}function c(t){Yt(i,n,o,a,c,"throw",t)}a(void 0)}))}}var Kt=1048576,Qt=Math.pow(2,31)-1,Jt=Kt,Xt=new Set(["Unexpected signature","Encrypted ZIP","Expected Central-File-Header signature"]),te=["ZIP entry count exceeds ","Unsupported ZIP compression method:","ZIP entry compressed data exceeds ","ZIP entry decompressed data exceeds ","Expected data-descriptor-signature at position "],ee=new Set(["Z_BUF_ERROR","Z_DATA_ERROR","ERR_INVALID_STATE"]);function re(t){return ne.apply(this,arguments)}function ne(){return ne=Wt(Zt().mark((function t(e){var r,n,o,i,a,c,s,u,p,l,f,h,d,m,y,v=arguments;return Zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=(v.length>1&&void 0!==v[1]?v[1]:{}).maximumLength,n=void 0===r?Kt:r,o=new ReadableStream({start:function(t){t.enqueue(e),t.close()}}),i=o.pipeThrough(new DecompressionStream("deflate-raw")),a=i.getReader(),c=[],s=0,t.prev=6;case 7:return t.next=9,a.read();case 9:if(u=t.sent,p=u.done,l=u.value,!p){t.next=14;break}return t.abrupt("break",22);case 14:if(!((s+=l.length)>n)){t.next=19;break}return t.next=18,a.cancel();case 18:throw new Error("ZIP entry decompressed data exceeds ".concat(n," bytes"));case 19:c.push(l);case 20:t.next=7;break;case 22:return t.prev=22,a.releaseLock(),t.finish(22);case 25:for(f=new Uint8Array(s),h=0,d=0,m=c;d<m.length;d++)y=m[d],f.set(y,h),h+=y.length;return t.abrupt("return",f);case 29:case"end":return t.stop()}}),t,null,[[6,,22,25]])}))),ne.apply(this,arguments)}function oe(t,e){var r,n=new Uint8Array(e),o=0,i=Vt(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;n.set(a,o),o+=a.length}}catch(t){i.e(t)}finally{i.f()}return n}function ie(t){if(t instanceof D.d1)return!0;if(t instanceof It)return!0;if(!(t instanceof Error))return!1;if(Xt.has(t.message))return!0;if(ee.has(t.code))return!0;var e,r=Vt(te);try{for(r.s();!(e=r.n()).done;){var n=e.value;if(t.message.startsWith(n))return!0}}catch(t){r.e(t)}finally{r.f()}return!1}function ae(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Kt,r=0,n=[t.compressedSize,t.uncompressedSize];r<n.length;r++){var o=n[r];if(!Number.isFinite(o)||o<0||o>e)return!1}return!0}function ce(t,e){"Index/Document.iwa"===e&&(t.hasDocumentEntry=!0),e.startsWith("Index/MasterSlide")&&(t.hasMasterSlideEntry=!0),e.startsWith("Index/Tables/")&&(t.hasTablesEntry=!0),"Index/CalculationEngine.iwa"===e&&(t.hasCalculationEngineEntry=!0)}function se(t){if(t.hasDocumentEntry)return t.hasMasterSlideEntry?{ext:"key",mime:"application/vnd.apple.keynote"}:t.hasTablesEntry?{ext:"numbers",mime:"application/vnd.apple.numbers"}:{ext:"pages",mime:"application/vnd.apple.pages"}}function ue(t){switch(t=t.toLowerCase()){case"application/epub+zip":return{ext:"epub",mime:t};case"application/vnd.oasis.opendocument.text":return{ext:"odt",mime:t};case"application/vnd.oasis.opendocument.text-template":return{ext:"ott",mime:t};case"application/vnd.oasis.opendocument.spreadsheet":return{ext:"ods",mime:t};case"application/vnd.oasis.opendocument.spreadsheet-template":return{ext:"ots",mime:t};case"application/vnd.oasis.opendocument.presentation":return{ext:"odp",mime:t};case"application/vnd.oasis.opendocument.presentation-template":return{ext:"otp",mime:t};case"application/vnd.oasis.opendocument.graphics":return{ext:"odg",mime:t};case"application/vnd.oasis.opendocument.graphics-template":return{ext:"otg",mime:t};case"application/vnd.openxmlformats-officedocument.presentationml.slideshow":return{ext:"ppsx",mime:t};case"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":return{ext:"xlsx",mime:t};case"application/vnd.ms-excel.sheet.macroenabled":return{ext:"xlsm",mime:"application/vnd.ms-excel.sheet.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.spreadsheetml.template":return{ext:"xltx",mime:t};case"application/vnd.ms-excel.template.macroenabled":return{ext:"xltm",mime:"application/vnd.ms-excel.template.macroenabled.12"};case"application/vnd.ms-powerpoint.slideshow.macroenabled":return{ext:"ppsm",mime:"application/vnd.ms-powerpoint.slideshow.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.wordprocessingml.document":return{ext:"docx",mime:t};case"application/vnd.ms-word.document.macroenabled":return{ext:"docm",mime:"application/vnd.ms-word.document.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.wordprocessingml.template":return{ext:"dotx",mime:t};case"application/vnd.ms-word.template.macroenabledtemplate":return{ext:"dotm",mime:"application/vnd.ms-word.template.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.presentationml.template":return{ext:"potx",mime:t};case"application/vnd.ms-powerpoint.template.macroenabled":return{ext:"potm",mime:"application/vnd.ms-powerpoint.template.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.presentationml.presentation":return{ext:"pptx",mime:t};case"application/vnd.ms-powerpoint.presentation.macroenabled":return{ext:"pptm",mime:"application/vnd.ms-powerpoint.presentation.macroenabled.12"};case"application/vnd.ms-visio.drawing":return{ext:"vsdx",mime:"application/vnd.visio"};case"application/vnd.ms-package.3dmanufacturing-3dmodel+xml":return{ext:"3mf",mime:"model/3mf"}}}function pe(t,e){e.startsWith("word/")&&(t.hasWordDirectory=!0),e.startsWith("ppt/")&&(t.hasPresentationDirectory=!0),e.startsWith("xl/")&&(t.hasSpreadsheetDirectory=!0),e.startsWith("3D/")&&e.endsWith(".model")&&(t.hasThreeDimensionalModelEntry=!0)}function le(t){return t.hasWordDirectory?{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"}:t.hasPresentationDirectory?{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}:t.hasSpreadsheetDirectory?{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}:t.hasThreeDimensionalModelEntry?{ext:"3mf",mime:"model/3mf"}:void 0}function fe(t){if(t.hasContentTypesEntry&&!t.hasUnparseableContentTypes&&!t.isParsingContentTypes&&!t.hasParsedContentTypesEntry)return le(t)}function he(t){var e=t.indexOf('.main+xml"');if(-1===e){var r="application/vnd.ms-package.3dmanufacturing-3dmodel+xml";return t.includes('ContentType="'.concat(r,'"'))?r:void 0}var n=t.slice(0,e),o=n.lastIndexOf('"');return n.slice(o+1)}var de=134695760;function me(t,e){if(t.length<16)return-1;for(var r=t.length-16,n=0;n<=r;n++)if(F.get(t,n)===de&&F.get(t,n+8)===e+n)return n;return-1}function ye(t){return ve.apply(this,arguments)}function ve(){return ve=Wt(Zt().mark((function t(e){var r,n,o,i,a,c,s,u,p,l,f,h,d,m=arguments;return Zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=(r=m.length>1&&void 0!==m[1]?m[1]:{}).shouldBuffer,o=r.maximumLength,i=void 0===o?Kt:o,a=e.syncBuffer,c=a.length,s=[],u=0;case 5:return t.next=7,e.tokenizer.peekBuffer(a,{mayBeLess:!0});case 7:if(p=t.sent,l=me(a.subarray(0,p),u),f=l>=0?0:p===c?Math.min(15,p-1):0,0!==(h=l>=0?l:p-f)){t.next=13;break}return t.abrupt("break",29);case 13:if(!((u+=h)>i)){t.next=16;break}throw new Error("ZIP entry compressed data exceeds ".concat(i," bytes"));case 16:if(!n){t.next=23;break}return d=new Uint8Array(h),t.next=20,e.tokenizer.readBuffer(d);case 20:s.push(d),t.next=25;break;case 23:return t.next=25,e.tokenizer.ignore(h);case 25:if(!(l>=0)){t.next=27;break}return t.abrupt("break",29);case 27:t.next=5;break;case 29:if(qt(e.tokenizer)||(e.knownSizeDescriptorScannedBytes+=u),n){t.next=32;break}return t.abrupt("return");case 32:return t.abrupt("return",oe(s,u));case 33:case"end":return t.stop()}}),t)}))),ve.apply(this,arguments)}function ge(t,e){return be.apply(this,arguments)}function be(){return be=Wt(Zt().mark((function t(e,r){var n,o,i,a,c,s,u=arguments;return Zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=(n=u.length>2&&void 0!==u[2]?u[2]:{}).shouldBuffer,i=n.maximumDescriptorLength,a=void 0===i?Kt:i,!r.dataDescriptor||0!==r.compressedSize){t.next=3;break}return t.abrupt("return",ye(e,{shouldBuffer:o,maximumLength:a}));case 3:if(o){t.next=7;break}return t.next=6,Nt(e.tokenizer,r.compressedSize,{maximumLength:qt(e.tokenizer)?Kt:e.tokenizer.fileInfo.size,reason:"ZIP entry compressed data"});case 6:return t.abrupt("return");case 7:if(void 0,void 0,l=(p=e.tokenizer).fileInfo.size,f=Number.isFinite(l)?Math.max(0,l-p.position):Number.MAX_SAFE_INTEGER,c=Math.min(f,Qt),!(!Number.isFinite(r.compressedSize)||r.compressedSize<0||r.compressedSize>c)){t.next=10;break}throw new Error("ZIP entry compressed data exceeds ".concat(c," bytes"));case 10:return s=new Uint8Array(r.compressedSize),t.next=13,e.tokenizer.readBuffer(s);case 13:return t.abrupt("return",s);case 14:case"end":return t.stop()}var p,l,f}),t)}))),be.apply(this,arguments)}function xe(t){return we.apply(this,arguments)}function we(){return(we=Wt(Zt().mark((function t(e){var r,n,o,i,a,c,s;return Zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={hasContentTypesEntry:!1,hasParsedContentTypesEntry:!1,isParsingContentTypes:!1,hasUnparseableContentTypes:!1,hasWordDirectory:!1,hasPresentationDirectory:!1,hasSpreadsheetDirectory:!1,hasThreeDimensionalModelEntry:!1},c={hasDocumentEntry:!1,hasMasterSlideEntry:!1,hasTablesEntry:!1,hasCalculationEngineEntry:!1},t.prev=2,t.next=5,new tt(e).unzip((function(t){if(pe(a,t.filename),ce(c,t.filename),c.hasDocumentEntry&&(c.hasMasterSlideEntry||c.hasTablesEntry))return i=se(c),{stop:!0};var e="[Content_Types].xml"===t.filename,r=fe(a);if(!e&&r)return i=r,{stop:!0};switch(t.filename){case"META-INF/mozilla.rsa":return i={ext:"xpi",mime:"application/x-xpinstall"},{stop:!0};case"META-INF/MANIFEST.MF":return i={ext:"jar",mime:"application/java-archive"},{stop:!0};case"mimetype":return ae(t,Jt)?{handler:function(t){return Wt(Zt().mark((function e(){var r;return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=new TextDecoder("utf-8").decode(t).trim(),i=ue(r);case 2:case"end":return e.stop()}}),e)})))()},stop:!0}:{};case"[Content_Types].xml":return a.hasContentTypesEntry=!0,ae(t,Jt)?(a.isParsingContentTypes=!0,{handler:function(t){return Wt(Zt().mark((function e(){var r,n;return Zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=new TextDecoder("utf-8").decode(t),(n=he(r))&&(i=ue(n)),a.hasParsedContentTypesEntry=!0,a.isParsingContentTypes=!1;case 5:case"end":return e.stop()}}),e)})))()},stop:!0}):(a.hasUnparseableContentTypes=!0,{});default:return/classes[0-9]*\.dex/.test(t.filename)?(i={ext:"apk",mime:"application/vnd.android.package-archive"},{stop:!0}):{}}}));case 5:t.next=13;break;case 7:if(t.prev=7,t.t0=t.catch(2),ie(t.t0)){t.next=11;break}throw t.t0;case 11:a.isParsingContentTypes&&(a.isParsingContentTypes=!1,a.hasUnparseableContentTypes=!0),!i&&t.t0 instanceof D.d1&&!a.hasContentTypesEntry&&(i=le(a));case 13:return s=!qt(e)||!c.hasDocumentEntry||c.hasMasterSlideEntry||c.hasTablesEntry||c.hasCalculationEngineEntry?se(c):void 0,t.abrupt("return",null!==(r=null!==(n=null!==(o=i)&&void 0!==o?o:fe(a))&&void 0!==n?n:s)&&void 0!==r?r:{ext:"zip",mime:"application/zip"});case 15:case"end":return t.stop()}}),t,null,[[2,7]])})))).apply(this,arguments)}function ke(t){return ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ke(t)}function Se(){Se=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new A(n||[]);return o(a,"_invoke",{value:j(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var f="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var x={};u(x,a,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(T([])));k&&k!==r&&n.call(k,a)&&(x=k);var S=b.prototype=v.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==ke(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function j(e,r,n){var o=f;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var s=F(c,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=l(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function F(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,F(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(ke(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,s,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),u(S,s,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Ee(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function Oe(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Ee(i,n,o,a,c,"next",t)}function c(t){Ee(i,n,o,a,c,"throw",t)}a(void 0)}))}}tt.prototype.inflate=function(){var t=Wt(Zt().mark((function t(e,r,n){var o;return Zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==e.compressedMethod){t.next=2;break}return t.abrupt("return",n(r));case 2:if(8===e.compressedMethod){t.next=4;break}throw new Error("Unsupported ZIP compression method: ".concat(e.compressedMethod));case 4:return t.next=6,re(r,{maximumLength:Kt});case 6:return o=t.sent,t.abrupt("return",n(o));case 8:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}(),tt.prototype.unzip=function(){var t=Wt(Zt().mark((function t(e){var r,n,o,i,a,c,s;return Zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=!1,n=0,o=this.tokenizer.position,this.knownSizeDescriptorScannedBytes=0;case 4:if(!Gt(this.tokenizer,o,Ct)){t.next=6;break}throw new It("ZIP stream probing exceeds ".concat(Ct," bytes"));case 6:return t.next=8,this.readLocalFileHeader();case 8:if(i=t.sent){t.next=11;break}return t.abrupt("break",33);case 11:if(!(++n>1024)){t.next=14;break}throw new Error("ZIP entry count exceeds ".concat(1024));case 14:return a=e(i),r=Boolean(a.stop),t.next=18,this.tokenizer.ignore(i.extraFieldLength);case 18:return t.next=20,ge(this,i,{shouldBuffer:Boolean(a.handler),maximumDescriptorLength:Math.min(Kt,(u=this,p=o,qt(u.tokenizer)?Math.max(0,Ct-(u.tokenizer.position-p)):Math.max(0,Kt-u.knownSizeDescriptorScannedBytes)))});case 20:if(c=t.sent,!a.handler){t.next=24;break}return t.next=24,this.inflate(i,c,a.handler);case 24:if(!i.dataDescriptor){t.next=30;break}return s=new Uint8Array(16),t.next=28,this.tokenizer.readBuffer(s);case 28:if(F.get(s,0)===de){t.next=30;break}throw new Error("Expected data-descriptor-signature at position ".concat(this.tokenizer.position-s.length));case 30:if(!Gt(this.tokenizer,o,Ct)){t.next=32;break}throw new It("ZIP stream probing exceeds ".concat(Ct," bytes"));case 32:if(!r){t.next=4;break}case 33:case"end":return t.stop()}var u,p}),t,this)})));return function(e){return t.apply(this,arguments)}}();var je=1048576;function Fe(t){return _e.apply(this,arguments)}function _e(){return _e=Oe(Se().mark((function t(e){var r,n,o,i,a,c,s,u,p;return Se().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=function(){return(c=Oe(Se().mark((function t(r){var n,i,a,c,s;return Se().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=0;case 1:if(!(r>0)){t.next=28;break}if(!(++n>256)){t.next=5;break}return t.abrupt("return");case 5:if(!Gt(e,u,Ct)){t.next=7;break}return t.abrupt("return");case 7:return i=e.position,t.next=10,o();case 10:if(17026!==(a=t.sent).id){t.next=19;break}if(!(a.len>64)){t.next=14;break}return t.abrupt("return");case 14:return c=zt(a.len,64,"EBML DocType"),t.next=17,e.readToken(new T(c));case 17:return s=t.sent,t.abrupt("return",s.replaceAll(/\0(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$/g,""));case 19:if(!qt(e)||!(!Number.isFinite(a.len)||a.len<0||a.len>je)){t.next=21;break}return t.abrupt("return");case 21:return t.next=23,Nt(e,a.len,{maximumLength:qt(e)?je:e.fileInfo.size,reason:"EBML payload"});case 23:if(--r,!(e.position<=i)){t.next=26;break}return t.abrupt("return");case 26:t.next=1;break;case 28:case"end":return t.stop()}}),t)})))).apply(this,arguments)},a=function(t){return c.apply(this,arguments)},i=function(){return(i=Oe(Se().mark((function t(){var e,n,o,i,a;return Se().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r();case 2:return e=t.sent,t.next=5,r();case 5:return(n=t.sent)[0]^=128>>n.length-1,o=Math.min(6,n.length),i=new DataView(e.buffer),a=new DataView(n.buffer,n.length-o,o),t.abrupt("return",{id:mt(i),len:mt(a)});case 11:case"end":return t.stop()}}),t)})))).apply(this,arguments)},o=function(){return i.apply(this,arguments)},n=function(){return(n=Oe(Se().mark((function t(){var r,n,o,i;return Se().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.peekNumber(E);case 2:for(r=t.sent,n=128,o=0;!(r&n)&&0!==n;)++o,n>>=1;return i=new Uint8Array(o+1),t.next=9,Mt(e,i,void 0,{maximumLength:i.length,reason:"EBML field"});case 9:return t.abrupt("return",i);case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)},r=function(){return n.apply(this,arguments)},t.next=8,o();case 8:return s=t.sent,u=e.position,t.next=12,a(s.len);case 12:p=t.sent,t.t0=p,t.next="webm"===t.t0?16:"matroska"===t.t0?17:18;break;case 16:return t.abrupt("return",{ext:"webm",mime:"video/webm"});case 17:return t.abrupt("return",{ext:"mkv",mime:"video/matroska"});case 18:case"end":return t.stop()}}),t)}))),_e.apply(this,arguments)}function Pe(t){return Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pe(t)}function Ae(){Ae=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new A(n||[]);return o(a,"_invoke",{value:j(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var f="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var x={};u(x,a,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(T([])));k&&k!==r&&n.call(k,a)&&(x=k);var S=b.prototype=v.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==Pe(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function j(e,r,n){var o=f;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var s=F(c,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=l(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function F(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,F(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Pe(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,s,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),u(S,s,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Te(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function De(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Te(i,n,o,a,c,"next",t)}function c(t){Te(i,n,o,a,c,"throw",t)}a(void 0)}))}}function Le(t){return Ce.apply(this,arguments)}function Ce(){return Ce=De(Ae().mark((function t(e){var r,n,o,i,a,c,s,u,p,l;return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=function(){return(i=De(Ae().mark((function t(){return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.readToken(P);case 2:return t.t0=t.sent,t.next=5,e.readToken(new T(4,"latin1"));case 5:return t.t1=t.sent,t.abrupt("return",{length:t.t0,type:t.t1});case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)},o=function(){return i.apply(this,arguments)},r={ext:"png",mime:"image/png"},n={ext:"apng",mime:"image/apng"},t.next=6,e.ignore(8);case 6:a=qt(e),c=e.position,s=0,u=!1;case 10:if(!(++s>512)){t.next=13;break}return t.abrupt("break",47);case 13:if(!Gt(e,c,16777216)){t.next=15;break}return t.abrupt("break",47);case 15:return p=e.position,t.next=18,o();case 18:if(!((l=t.sent).length<0)){t.next=21;break}return t.abrupt("return");case 21:if("IHDR"!==l.type){t.next=25;break}if(13===l.length){t.next=24;break}return t.abrupt("return");case 24:u=!0;case 25:t.t0=l.type,t.next="IDAT"===t.t0?28:"acTL"===t.t0?29:30;break;case 28:return t.abrupt("return",r);case 29:return t.abrupt("return",n);case 30:if(u||"CgBI"===l.type){t.next=32;break}return t.abrupt("return");case 32:if(!(a&&l.length>1048576)){t.next=34;break}return t.abrupt("return",u&&32&l.type.codePointAt(0)?r:void 0);case 34:return t.prev=34,t.next=37,Nt(e,l.length+4,{maximumLength:a?1048580:e.fileInfo.size,reason:"PNG chunk payload"});case 37:t.next=44;break;case 39:if(t.prev=39,t.t1=t.catch(34),a||!(t.t1 instanceof It||t.t1 instanceof D.d1)){t.next=43;break}return t.abrupt("return",r);case 43:throw t.t1;case 44:if(!(e.position<=p)){t.next=46;break}return t.abrupt("break",47);case 46:if(e.position+8<e.fileInfo.size){t.next=10;break}case 47:return t.abrupt("return",r);case 48:case"end":return t.stop()}}),t,null,[[34,39]])}))),Ce.apply(this,arguments)}function Ie(t){return Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ie(t)}function ze(){ze=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new A(n||[]);return o(a,"_invoke",{value:j(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var f="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var x={};u(x,a,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(T([])));k&&k!==r&&n.call(k,a)&&(x=k);var S=b.prototype=v.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==Ie(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function j(e,r,n){var o=f;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var s=F(c,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=l(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function F(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,F(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Ie(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,s,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),u(S,s,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Ne(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function Re(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Ne(i,n,o,a,c,"next",t)}function c(t){Ne(i,n,o,a,c,"throw",t)}a(void 0)}))}}var Me,Be=1048576;function Ue(t){return qe.apply(this,arguments)}function qe(){return qe=Re(ze().mark((function t(e){var r,n,o,i,a,c,s,u,p,l;return ze().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=!1,t.prev=1,o=function(){return(o=Re(ze().mark((function t(){var r;return ze().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=new Uint8Array(16),t.next=3,Mt(e,r,void 0,{maximumLength:r.length,reason:"ASF header GUID"});case 3:return t.t0=r,t.t1=Number,t.next=7,e.readToken(A);case 7:return t.t2=t.sent,t.t3=(0,t.t1)(t.t2),t.abrupt("return",{id:t.t0,size:t.t3});case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)},n=function(){return o.apply(this,arguments)},t.next=6,Nt(e,30,{maximumLength:30,reason:"ASF header prelude"});case 6:i=qt(e),a=e.position,c=0;case 9:if(!(e.position+24<e.fileInfo.size)){t.next=44;break}if(!(++c>512)){t.next=13;break}return t.abrupt("break",44);case 13:if(!Gt(e,a,Ct)){t.next=15;break}return t.abrupt("break",44);case 15:return s=e.position,t.next=18,n();case 18:if(u=t.sent,p=u.size-24,Number.isFinite(p)&&!(p<0)){t.next=23;break}return r=!0,t.abrupt("break",44);case 23:if(!Ut(u.id,[145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101])){t.next=34;break}return l=new Uint8Array(16),t.t0=p,t.next=28,Mt(e,l,void 0,{maximumLength:l.length,reason:"ASF stream type GUID"});case 28:if(p=t.t0-=t.sent,!Ut(l,[64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43])){t.next=31;break}return t.abrupt("return",{ext:"asf",mime:"audio/x-ms-asf"});case 31:if(!Ut(l,[192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43])){t.next=33;break}return t.abrupt("return",{ext:"asf",mime:"video/x-ms-asf"});case 33:return t.abrupt("break",44);case 34:if(!(i&&p>Be)){t.next=37;break}return r=!0,t.abrupt("break",44);case 37:return t.next=39,Nt(e,p,{maximumLength:i?Be:e.fileInfo.size,reason:"ASF header payload"});case 39:if(!(e.position<=s)){t.next=42;break}return r=!0,t.abrupt("break",44);case 42:t.next=9;break;case 44:t.next=53;break;case 46:if(t.prev=46,t.t1=t.catch(1),!(t.t1 instanceof D.d1||t.t1 instanceof It)){t.next=52;break}qt(e)&&(r=!0),t.next=53;break;case 52:throw t.t1;case 53:if(!r){t.next=55;break}return t.abrupt("return");case 55:return t.abrupt("return",{ext:"asf",mime:"application/vnd.ms-asf"});case 56:case"end":return t.stop()}}),t,null,[[1,46]])}))),qe.apply(this,arguments)}function Ge(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);s=!0);}catch(t){u=!0,o=t}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||Ve(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $e(t){return $e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$e(t)}function Ze(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Ve(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function Ve(t,e){if(t){if("string"==typeof t)return He(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?He(t,e):void 0}}function He(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ye(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function We(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ye(Object(r),!0).forEach((function(e){Qe(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ye(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ke(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Je(n.key),n)}}function Qe(t,e,r){return(e=Je(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Je(t){var e=function(t){if("object"!=$e(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=$e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==$e(e)?e:String(e)}function Xe(){Xe=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new A(n||[]);return o(a,"_invoke",{value:j(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var f="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var x={};u(x,a,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(T([])));k&&k!==r&&n.call(k,a)&&(x=k);var S=b.prototype=v.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==$e(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function j(e,r,n){var o=f;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var s=F(c,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=l(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function F(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,F(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError($e(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,s,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),u(S,s,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function tr(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function er(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){tr(i,n,o,a,c,"next",t)}function c(t){tr(i,n,o,a,c,"throw",t)}a(void 0)}))}}var rr=4100,nr=Ct,or=Ct,ir=Ct;function ar(t){return Number.isFinite(t)?Math.max(1,Math.trunc(t)):rr}function cr(t){return Number.isFinite(t)?Math.max(0,t):Number.MAX_SAFE_INTEGER}function sr(t,e){return void 0===e?t.read():(e.throwIfAborted(),Promise.race([t.read(),new Promise((function(r,n){e.addEventListener("abort",(function(){n(e.reason),t.cancel(e.reason).catch((function(){}))}),{once:!0})}))]))}function ur(t,e){var r=t.getReader(),n=0,o=!1,i=!1,a=function(){var t=er(Xe().mark((function t(e){return Xe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!o&&!i){t.next=2;break}return t.abrupt("return");case 2:return i=!0,t.next=5,r.cancel(e);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return new ReadableStream({pull:function(t){return er(Xe().mark((function i(){var c,s,u,p;return Xe().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!(n>=e)){i.next=5;break}return t.close(),i.next=4,a();case 4:return i.abrupt("return");case 5:return i.next=7,r.read();case 7:if(c=i.sent,s=c.done,u=c.value,!s&&u){i.next=14;break}return o=!0,t.close(),i.abrupt("return");case 14:if(p=e-n,!(u.length>p)){i.next=22;break}return t.enqueue(u.subarray(0,p)),n+=p,t.close(),i.next=21,a();case 21:return i.abrupt("return");case 22:t.enqueue(u),n+=u.length;case 24:case"end":return i.stop()}}),i)})))()},cancel:function(t){return er(Xe().mark((function e(){return Xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a(t);case 2:case"end":return e.stop()}}),e)})))()}})}function pr(t,e){return lr.apply(this,arguments)}function lr(){return(lr=er(Xe().mark((function t(e,r){return Xe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new fr(r).fromBuffer(e));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var fr=function(){function t(e){var r,n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Qe(this,"detectConfident",function(){var t=er(Xe().mark((function t(e){var r,o,i,a,c,s,u,p,l,f,h,d,m;return Xe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.buffer=new Uint8Array(rr),void 0===e.fileInfo.size&&(e.fileInfo.size=Number.MAX_SAFE_INTEGER),n.tokenizer=e,!qt(e)){t.next=8;break}return t.next=6,e.peekBuffer(n.buffer,{length:3,mayBeLess:!0});case 6:if(!n.check([31,139,8])){t.next=8;break}return t.abrupt("return",n.detectGzip(e));case 8:return t.next=10,e.peekBuffer(n.buffer,{length:32,mayBeLess:!0});case 10:if(!n.check([66,77])){t.next=12;break}return t.abrupt("return",{ext:"bmp",mime:"image/bmp"});case 12:if(!n.check([11,119])){t.next=14;break}return t.abrupt("return",{ext:"ac3",mime:"audio/vnd.dolby.dd-raw"});case 14:if(!n.check([120,1])){t.next=16;break}return t.abrupt("return",{ext:"dmg",mime:"application/x-apple-diskimage"});case 16:if(!n.check([77,90])){t.next=18;break}return t.abrupt("return",{ext:"exe",mime:"application/x-msdownload"});case 18:if(!n.check([37,33])){t.next=24;break}return t.next=21,e.peekBuffer(n.buffer,{length:24,mayBeLess:!0});case 21:if(!n.checkString("PS-Adobe-",{offset:2})||!n.checkString(" EPSF-",{offset:14})){t.next=23;break}return t.abrupt("return",{ext:"eps",mime:"application/eps"});case 23:return t.abrupt("return",{ext:"ps",mime:"application/postscript"});case 24:if(!n.check([31,160])&&!n.check([31,157])){t.next=26;break}return t.abrupt("return",{ext:"Z",mime:"application/x-compress"});case 26:if(!n.check([199,113])){t.next=28;break}return t.abrupt("return",{ext:"cpio",mime:"application/x-cpio"});case 28:if(!n.check([96,234])){t.next=30;break}return t.abrupt("return",{ext:"arj",mime:"application/x-arj"});case 30:if(!n.check([239,187,191])){t.next=37;break}if(!(n.detectionReentryCount>=256)){t.next=33;break}return t.abrupt("return");case 33:return n.detectionReentryCount++,t.next=36,n.tokenizer.ignore(3);case 36:return t.abrupt("return",n.detectConfident(e));case 37:if(!n.check([71,73,70])){t.next=39;break}return t.abrupt("return",{ext:"gif",mime:"image/gif"});case 39:if(!n.check([73,73,188])){t.next=41;break}return t.abrupt("return",{ext:"jxr",mime:"image/vnd.ms-photo"});case 41:if(!n.check([31,139,8])){t.next=43;break}return t.abrupt("return",n.detectGzip(e));case 43:if(!n.check([66,90,104])){t.next=45;break}return t.abrupt("return",{ext:"bz2",mime:"application/x-bzip2"});case 45:if(!n.checkString("ID3")){t.next=72;break}return t.next=48,Nt(e,6,{maximumLength:6,reason:"ID3 header prefix"});case 48:return t.next=50,e.readToken(gt);case 50:if(r=t.sent,o=qt(e),!(!Number.isFinite(r)||r<0||o&&(r>or||e.position+r>or))){t.next=54;break}return t.abrupt("return");case 54:if(!(e.position+r>e.fileInfo.size)){t.next=58;break}if(!o){t.next=57;break}return t.abrupt("return");case 57:return t.abrupt("return",{ext:"mp3",mime:"audio/mpeg"});case 58:return t.prev=58,t.next=61,Nt(e,r,{maximumLength:o?or:e.fileInfo.size,reason:"ID3 payload"});case 61:t.next=68;break;case 63:if(t.prev=63,t.t0=t.catch(58),!(t.t0 instanceof D.d1)){t.next=67;break}return t.abrupt("return");case 67:throw t.t0;case 68:if(!(n.detectionReentryCount>=256)){t.next=70;break}return t.abrupt("return");case 70:return n.detectionReentryCount++,t.abrupt("return",n.parseTokenizer(e,n.detectionReentryCount));case 72:if(!n.checkString("MP+")){t.next=74;break}return t.abrupt("return",{ext:"mpc",mime:"audio/x-musepack"});case 74:if(67!==n.buffer[0]&&70!==n.buffer[0]||!n.check([87,83],{offset:1})){t.next=76;break}return t.abrupt("return",{ext:"swf",mime:"application/x-shockwave-flash"});case 76:if(!n.check([255,216,255])){t.next=80;break}if(!n.check([247],{offset:3})){t.next=79;break}return t.abrupt("return",{ext:"jls",mime:"image/jls"});case 79:return t.abrupt("return",{ext:"jpg",mime:"image/jpeg"});case 80:if(!n.check([79,98,106,1])){t.next=82;break}return t.abrupt("return",{ext:"avro",mime:"application/avro"});case 82:if(!n.checkString("FLIF")){t.next=84;break}return t.abrupt("return",{ext:"flif",mime:"image/flif"});case 84:if(!n.checkString("8BPS")){t.next=86;break}return t.abrupt("return",{ext:"psd",mime:"image/vnd.adobe.photoshop"});case 86:if(!n.checkString("MPCK")){t.next=88;break}return t.abrupt("return",{ext:"mpc",mime:"audio/x-musepack"});case 88:if(!n.checkString("FORM")){t.next=90;break}return t.abrupt("return",{ext:"aif",mime:"audio/aiff"});case 90:if(!n.checkString("icns",{offset:0})){t.next=92;break}return t.abrupt("return",{ext:"icns",mime:"image/icns"});case 92:if(!n.check([80,75,3,4])){t.next=94;break}return t.abrupt("return",xe(e));case 94:if(!n.checkString("OggS")){t.next=113;break}return t.next=97,e.ignore(28);case 97:return i=new Uint8Array(8),t.next=100,e.readBuffer(i);case 100:if(!Ut(i,[79,112,117,115,72,101,97,100])){t.next=102;break}return t.abrupt("return",{ext:"opus",mime:"audio/ogg; codecs=opus"});case 102:if(!Ut(i,[128,116,104,101,111,114,97])){t.next=104;break}return t.abrupt("return",{ext:"ogv",mime:"video/ogg"});case 104:if(!Ut(i,[1,118,105,100,101,111,0])){t.next=106;break}return t.abrupt("return",{ext:"ogm",mime:"video/ogg"});case 106:if(!Ut(i,[127,70,76,65,67])){t.next=108;break}return t.abrupt("return",{ext:"oga",mime:"audio/ogg"});case 108:if(!Ut(i,[83,112,101,101,120,32,32])){t.next=110;break}return t.abrupt("return",{ext:"spx",mime:"audio/ogg"});case 110:if(!Ut(i,[1,118,111,114,98,105,115])){t.next=112;break}return t.abrupt("return",{ext:"ogg",mime:"audio/ogg"});case 112:return t.abrupt("return",{ext:"ogx",mime:"application/ogg"});case 113:if(!n.check([80,75])||3!==n.buffer[2]&&5!==n.buffer[2]&&7!==n.buffer[2]||4!==n.buffer[3]&&6!==n.buffer[3]&&8!==n.buffer[3]){t.next=115;break}return t.abrupt("return",{ext:"zip",mime:"application/zip"});case 115:if(!n.checkString("MThd")){t.next=117;break}return t.abrupt("return",{ext:"mid",mime:"audio/midi"});case 117:if(!n.checkString("wOFF")||!n.check([0,1,0,0],{offset:4})&&!n.checkString("OTTO",{offset:4})){t.next=119;break}return t.abrupt("return",{ext:"woff",mime:"font/woff"});case 119:if(!n.checkString("wOF2")||!n.check([0,1,0,0],{offset:4})&&!n.checkString("OTTO",{offset:4})){t.next=121;break}return t.abrupt("return",{ext:"woff2",mime:"font/woff2"});case 121:if(!n.check([212,195,178,161])&&!n.check([161,178,195,212])){t.next=123;break}return t.abrupt("return",{ext:"pcap",mime:"application/vnd.tcpdump.pcap"});case 123:if(!n.checkString("DSD ")){t.next=125;break}return t.abrupt("return",{ext:"dsf",mime:"audio/x-dsf"});case 125:if(!n.checkString("LZIP")){t.next=127;break}return t.abrupt("return",{ext:"lz",mime:"application/lzip"});case 127:if(!n.checkString("fLaC")){t.next=129;break}return t.abrupt("return",{ext:"flac",mime:"audio/flac"});case 129:if(!n.check([66,80,71,251])){t.next=131;break}return t.abrupt("return",{ext:"bpg",mime:"image/bpg"});case 131:if(!n.checkString("wvpk")){t.next=133;break}return t.abrupt("return",{ext:"wv",mime:"audio/wavpack"});case 133:if(!n.checkString("%PDF")){t.next=135;break}return t.abrupt("return",{ext:"pdf",mime:"application/pdf"});case 135:if(!n.check([0,97,115,109])){t.next=137;break}return t.abrupt("return",{ext:"wasm",mime:"application/wasm"});case 137:if(!n.check([73,73])){t.next=143;break}return t.next=140,n.readTiffHeader(!1);case 140:if(!(a=t.sent)){t.next=143;break}return t.abrupt("return",a);case 143:if(!n.check([77,77])){t.next=149;break}return t.next=146,n.readTiffHeader(!0);case 146:if(!(c=t.sent)){t.next=149;break}return t.abrupt("return",c);case 149:if(!n.checkString("MAC ")){t.next=151;break}return t.abrupt("return",{ext:"ape",mime:"audio/ape"});case 151:if(!n.check([26,69,223,163])){t.next=153;break}return t.abrupt("return",Fe(e));case 153:if(!n.checkString("SQLi")){t.next=155;break}return t.abrupt("return",{ext:"sqlite",mime:"application/x-sqlite3"});case 155:if(!n.check([78,69,83,26])){t.next=157;break}return t.abrupt("return",{ext:"nes",mime:"application/x-nintendo-nes-rom"});case 157:if(!n.checkString("Cr24")){t.next=159;break}return t.abrupt("return",{ext:"crx",mime:"application/x-google-chrome-extension"});case 159:if(!n.checkString("MSCF")&&!n.checkString("ISc(")){t.next=161;break}return t.abrupt("return",{ext:"cab",mime:"application/vnd.ms-cab-compressed"});case 161:if(!n.check([237,171,238,219])){t.next=163;break}return t.abrupt("return",{ext:"rpm",mime:"application/x-rpm"});case 163:if(!n.check([197,208,211,198])){t.next=165;break}return t.abrupt("return",{ext:"eps",mime:"application/eps"});case 165:if(!n.check([40,181,47,253])){t.next=167;break}return t.abrupt("return",{ext:"zst",mime:"application/zstd"});case 167:if(!n.check([127,69,76,70])){t.next=169;break}return t.abrupt("return",{ext:"elf",mime:"application/x-elf"});case 169:if(!n.check([33,66,68,78])){t.next=171;break}return t.abrupt("return",{ext:"pst",mime:"application/vnd.ms-outlook"});case 171:if(!n.checkString("PAR1")&&!n.checkString("PARE")){t.next=173;break}return t.abrupt("return",{ext:"parquet",mime:"application/vnd.apache.parquet"});case 173:if(!n.checkString("ttcf")){t.next=175;break}return t.abrupt("return",{ext:"ttc",mime:"font/collection"});case 175:if(!(n.check([254,237,250,206])||n.check([254,237,250,207])||n.check([206,250,237,254])||n.check([207,250,237,254]))){t.next=177;break}return t.abrupt("return",{ext:"macho",mime:"application/x-mach-binary"});case 177:if(!n.check([4,34,77,24])){t.next=179;break}return t.abrupt("return",{ext:"lz4",mime:"application/x-lz4"});case 179:if(!n.checkString("regf")){t.next=181;break}return t.abrupt("return",{ext:"dat",mime:"application/x-ft-windows-registry-hive"});case 181:if(!n.checkString("$FL2")&&!n.checkString("$FL3")){t.next=183;break}return t.abrupt("return",{ext:"sav",mime:"application/x-spss-sav"});case 183:if(!n.check([79,84,84,79,0])){t.next=185;break}return t.abrupt("return",{ext:"otf",mime:"font/otf"});case 185:if(!n.checkString("#!AMR")){t.next=187;break}return t.abrupt("return",{ext:"amr",mime:"audio/amr"});case 187:if(!n.checkString(String.raw(Me||(y=["{\rtf"],v=["{\\rtf"],v||(v=y.slice(0)),Me=Object.freeze(Object.defineProperties(y,{raw:{value:Object.freeze(v)}})))))){t.next=189;break}return t.abrupt("return",{ext:"rtf",mime:"application/rtf"});case 189:if(!n.check([70,76,86,1])){t.next=191;break}return t.abrupt("return",{ext:"flv",mime:"video/x-flv"});case 191:if(!n.checkString("IMPM")){t.next=193;break}return t.abrupt("return",{ext:"it",mime:"audio/x-it"});case 193:if(!(n.checkString("-lh0-",{offset:2})||n.checkString("-lh1-",{offset:2})||n.checkString("-lh2-",{offset:2})||n.checkString("-lh3-",{offset:2})||n.checkString("-lh4-",{offset:2})||n.checkString("-lh5-",{offset:2})||n.checkString("-lh6-",{offset:2})||n.checkString("-lh7-",{offset:2})||n.checkString("-lzs-",{offset:2})||n.checkString("-lz4-",{offset:2})||n.checkString("-lz5-",{offset:2})||n.checkString("-lhd-",{offset:2}))){t.next=195;break}return t.abrupt("return",{ext:"lzh",mime:"application/x-lzh-compressed"});case 195:if(!n.check([0,0,1,186])){t.next=200;break}if(!n.check([33],{offset:4,mask:[241]})){t.next=198;break}return t.abrupt("return",{ext:"mpg",mime:"video/MP1S"});case 198:if(!n.check([68],{offset:4,mask:[196]})){t.next=200;break}return t.abrupt("return",{ext:"mpg",mime:"video/MP2P"});case 200:if(!n.checkString("ITSF")){t.next=202;break}return t.abrupt("return",{ext:"chm",mime:"application/vnd.ms-htmlhelp"});case 202:if(!n.check([202,254,186,190])){t.next=209;break}if(s=_.get(n.buffer,4),u=j.get(n.buffer,6),!(s>0&&s<=30)){t.next=207;break}return t.abrupt("return",{ext:"macho",mime:"application/x-mach-binary"});case 207:if(!(u>30)){t.next=209;break}return t.abrupt("return",{ext:"class",mime:"application/java-vm"});case 209:if(!n.checkString(".RMF")){t.next=211;break}return t.abrupt("return",{ext:"rm",mime:"application/vnd.rn-realmedia"});case 211:if(!n.checkString("DRACO")){t.next=213;break}return t.abrupt("return",{ext:"drc",mime:"application/x-ft-draco"});case 213:if(!n.check([253,55,122,88,90,0])){t.next=215;break}return t.abrupt("return",{ext:"xz",mime:"application/x-xz"});case 215:if(!n.checkString("<?xml ")){t.next=217;break}return t.abrupt("return",{ext:"xml",mime:"application/xml"});case 217:if(!n.check([55,122,188,175,39,28])){t.next=219;break}return t.abrupt("return",{ext:"7z",mime:"application/x-7z-compressed"});case 219:if(!n.check([82,97,114,33,26,7])||0!==n.buffer[6]&&1!==n.buffer[6]){t.next=221;break}return t.abrupt("return",{ext:"rar",mime:"application/x-rar-compressed"});case 221:if(!n.checkString("solid ")){t.next=223;break}return t.abrupt("return",{ext:"stl",mime:"model/stl"});case 223:if(!n.checkString("AC")){t.next=227;break}if(p=new T(4,"latin1").get(n.buffer,2),!(/^[0-9]+$/.test(p)&&p>=1e3&&p<=1050)){t.next=227;break}return t.abrupt("return",{ext:"dwg",mime:"image/vnd.dwg"});case 227:if(!n.checkString("070707")){t.next=229;break}return t.abrupt("return",{ext:"cpio",mime:"application/x-cpio"});case 229:if(!n.checkString("BLENDER")){t.next=231;break}return t.abrupt("return",{ext:"blend",mime:"application/x-blender"});case 231:if(!n.checkString("!<arch>")){t.next=240;break}return t.next=234,e.ignore(8);case 234:return t.next=236,e.readToken(new T(13,"ascii"));case 236:if("debian-binary"!==t.sent){t.next=239;break}return t.abrupt("return",{ext:"deb",mime:"application/x-deb"});case 239:return t.abrupt("return",{ext:"ar",mime:"application/x-unix-archive"});case 240:if(!n.checkString("WEBVTT")||!["\n","\r","\t"," ","\0"].some((function(t){return n.checkString(t,{offset:6})}))){t.next=242;break}return t.abrupt("return",{ext:"vtt",mime:"text/vtt"});case 242:if(!n.check([137,80,78,71,13,10,26,10])){t.next=244;break}return t.abrupt("return",Le(e));case 244:if(!n.check([65,82,82,79,87,49,0,0])){t.next=246;break}return t.abrupt("return",{ext:"arrow",mime:"application/vnd.apache.arrow.file"});case 246:if(!n.check([103,108,84,70,2,0,0,0])){t.next=248;break}return t.abrupt("return",{ext:"glb",mime:"model/gltf-binary"});case 248:if(!(n.check([102,114,101,101],{offset:4})||n.check([109,100,97,116],{offset:4})||n.check([109,111,111,118],{offset:4})||n.check([119,105,100,101],{offset:4}))){t.next=250;break}return t.abrupt("return",{ext:"mov",mime:"video/quicktime"});case 250:if(!n.check([73,73,82,79,8,0,0,0,24])){t.next=252;break}return t.abrupt("return",{ext:"orf",mime:"image/x-olympus-orf"});case 252:if(!n.checkString("gimp xcf ")){t.next=254;break}return t.abrupt("return",{ext:"xcf",mime:"image/x-xcf"});case 254:if(!(n.checkString("ftyp",{offset:4})&&96&n.buffer[8])){t.next=279;break}l=new T(4,"latin1").get(n.buffer,8).replace("\0"," ").trim(),t.t1=l,t.next="avif"===t.t1||"avis"===t.t1?259:"mif1"===t.t1?260:"msf1"===t.t1?261:"heic"===t.t1||"heix"===t.t1?262:"hevc"===t.t1||"hevx"===t.t1?263:"qt"===t.t1?264:"M4V"===t.t1||"M4VH"===t.t1||"M4VP"===t.t1?265:"M4P"===t.t1?266:"M4B"===t.t1?267:"M4A"===t.t1?268:"F4V"===t.t1?269:"F4P"===t.t1?270:"F4A"===t.t1?271:"F4B"===t.t1?272:"crx"===t.t1?273:274;break;case 259:return t.abrupt("return",{ext:"avif",mime:"image/avif"});case 260:return t.abrupt("return",{ext:"heic",mime:"image/heif"});case 261:return t.abrupt("return",{ext:"heic",mime:"image/heif-sequence"});case 262:return t.abrupt("return",{ext:"heic",mime:"image/heic"});case 263:return t.abrupt("return",{ext:"heic",mime:"image/heic-sequence"});case 264:return t.abrupt("return",{ext:"mov",mime:"video/quicktime"});case 265:return t.abrupt("return",{ext:"m4v",mime:"video/x-m4v"});case 266:return t.abrupt("return",{ext:"m4p",mime:"video/mp4"});case 267:return t.abrupt("return",{ext:"m4b",mime:"audio/mp4"});case 268:return t.abrupt("return",{ext:"m4a",mime:"audio/x-m4a"});case 269:return t.abrupt("return",{ext:"f4v",mime:"video/mp4"});case 270:return t.abrupt("return",{ext:"f4p",mime:"video/mp4"});case 271:return t.abrupt("return",{ext:"f4a",mime:"audio/mp4"});case 272:return t.abrupt("return",{ext:"f4b",mime:"audio/mp4"});case 273:return t.abrupt("return",{ext:"cr3",mime:"image/x-canon-cr3"});case 274:if(!l.startsWith("3g")){t.next=278;break}if(!l.startsWith("3g2")){t.next=277;break}return t.abrupt("return",{ext:"3g2",mime:"video/3gpp2"});case 277:return t.abrupt("return",{ext:"3gp",mime:"video/3gpp"});case 278:return t.abrupt("return",{ext:"mp4",mime:"video/mp4"});case 279:if(!n.checkString("REGEDIT4\r\n")){t.next=281;break}return t.abrupt("return",{ext:"reg",mime:"application/x-ms-regedit"});case 281:if(!n.check([82,73,70,70])){t.next=290;break}if(!n.checkString("WEBP",{offset:8})){t.next=284;break}return t.abrupt("return",{ext:"webp",mime:"image/webp"});case 284:if(!n.check([65,86,73],{offset:8})){t.next=286;break}return t.abrupt("return",{ext:"avi",mime:"video/vnd.avi"});case 286:if(!n.check([87,65,86,69],{offset:8})){t.next=288;break}return t.abrupt("return",{ext:"wav",mime:"audio/wav"});case 288:if(!n.check([81,76,67,77],{offset:8})){t.next=290;break}return t.abrupt("return",{ext:"qcp",mime:"audio/qcelp"});case 290:if(!n.check([73,73,85,0,24,0,0,0,136,231,116,216])){t.next=292;break}return t.abrupt("return",{ext:"rw2",mime:"image/x-panasonic-rw2"});case 292:if(!n.check([48,38,178,117,142,102,207,17,166,217])){t.next=294;break}return t.abrupt("return",Ue(e));case 294:if(!n.check([171,75,84,88,32,49,49,187,13,10,26,10])){t.next=296;break}return t.abrupt("return",{ext:"ktx",mime:"image/ktx"});case 296:if(!n.check([126,16,4])&&!n.check([126,24,4])||!n.check([48,77,73,69],{offset:4})){t.next=298;break}return t.abrupt("return",{ext:"mie",mime:"application/x-mie"});case 298:if(!n.check([39,10,0,0,0,0,0,0,0,0,0,0],{offset:2})){t.next=300;break}return t.abrupt("return",{ext:"shp",mime:"application/x-esri-shape"});case 300:if(!n.check([255,79,255,81])){t.next=302;break}return t.abrupt("return",{ext:"j2c",mime:"image/j2c"});case 302:if(!n.check([0,0,0,12,106,80,32,32,13,10,135,10])){t.next=316;break}return t.next=305,e.ignore(20);case 305:return t.next=307,e.readToken(new T(4,"ascii"));case 307:f=t.sent,t.t2=f,t.next="jp2 "===t.t2?311:"jpx "===t.t2?312:"jpm "===t.t2?313:"mjp2"===t.t2?314:315;break;case 311:return t.abrupt("return",{ext:"jp2",mime:"image/jp2"});case 312:return t.abrupt("return",{ext:"jpx",mime:"image/jpx"});case 313:return t.abrupt("return",{ext:"jpm",mime:"image/jpm"});case 314:return t.abrupt("return",{ext:"mj2",mime:"image/mj2"});case 315:return t.abrupt("return");case 316:if(!n.check([255,10])&&!n.check([0,0,0,12,74,88,76,32,13,10,135,10])){t.next=318;break}return t.abrupt("return",{ext:"jxl",mime:"image/jxl"});case 318:if(!n.check([254,255])){t.next=322;break}if(!n.checkString("<?xml ",{offset:2,encoding:"utf-16be"})){t.next=321;break}return t.abrupt("return",{ext:"xml",mime:"application/xml"});case 321:return t.abrupt("return",void 0);case 322:if(!n.check([208,207,17,224,161,177,26,225])){t.next=324;break}return t.abrupt("return",{ext:"cfb",mime:"application/x-cfb"});case 324:return t.next=326,e.peekBuffer(n.buffer,{length:Math.min(256,e.fileInfo.size),mayBeLess:!0});case 326:if(!n.check([97,99,115,112],{offset:36})){t.next=328;break}return t.abrupt("return",{ext:"icc",mime:"application/vnd.iccprofile"});case 328:if(!n.checkString("**ACE",{offset:7})||!n.checkString("**",{offset:12})){t.next=330;break}return t.abrupt("return",{ext:"ace",mime:"application/x-ace-compressed"});case 330:if(!n.checkString("BEGIN:")){t.next=335;break}if(!n.checkString("VCARD",{offset:6})){t.next=333;break}return t.abrupt("return",{ext:"vcf",mime:"text/vcard"});case 333:if(!n.checkString("VCALENDAR",{offset:6})){t.next=335;break}return t.abrupt("return",{ext:"ics",mime:"text/calendar"});case 335:if(!n.checkString("FUJIFILMCCD-RAW")){t.next=337;break}return t.abrupt("return",{ext:"raf",mime:"image/x-fujifilm-raf"});case 337:if(!n.checkString("Extended Module:")){t.next=339;break}return t.abrupt("return",{ext:"xm",mime:"audio/x-xm"});case 339:if(!n.checkString("Creative Voice File")){t.next=341;break}return t.abrupt("return",{ext:"voc",mime:"audio/x-voc"});case 341:if(!(n.check([4,0,0,0])&&n.buffer.length>=16)){t.next=353;break}if(!((h=new DataView(n.buffer.buffer).getUint32(12,!0))>12&&n.buffer.length>=h+16)){t.next=353;break}if(t.prev=344,d=(new TextDecoder).decode(n.buffer.subarray(16,h+16)),!JSON.parse(d).files){t.next=349;break}return t.abrupt("return",{ext:"asar",mime:"application/x-asar"});case 349:t.next=353;break;case 351:t.prev=351,t.t3=t.catch(344);case 353:if(!n.check([6,14,43,52,2,5,1,1,13,1,2,1,1,2])){t.next=355;break}return t.abrupt("return",{ext:"mxf",mime:"application/mxf"});case 355:if(!n.checkString("SCRM",{offset:44})){t.next=357;break}return t.abrupt("return",{ext:"s3m",mime:"audio/x-s3m"});case 357:if(!n.check([71])||!n.check([71],{offset:188})){t.next=359;break}return t.abrupt("return",{ext:"mts",mime:"video/mp2t"});case 359:if(!n.check([71],{offset:4})||!n.check([71],{offset:196})){t.next=361;break}return t.abrupt("return",{ext:"mts",mime:"video/mp2t"});case 361:if(!n.check([66,79,79,75,77,79,66,73],{offset:60})){t.next=363;break}return t.abrupt("return",{ext:"mobi",mime:"application/x-mobipocket-ebook"});case 363:if(!n.check([68,73,67,77],{offset:128})){t.next=365;break}return t.abrupt("return",{ext:"dcm",mime:"application/dicom"});case 365:if(!n.check([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70])){t.next=367;break}return t.abrupt("return",{ext:"lnk",mime:"application/x-ms-shortcut"});case 367:if(!n.check([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0])){t.next=369;break}return t.abrupt("return",{ext:"alias",mime:"application/x-ft-apple.alias"});case 369:if(!n.checkString("Kaydara FBX Binary \0")){t.next=371;break}return t.abrupt("return",{ext:"fbx",mime:"application/x-ft-fbx"});case 371:if(!n.check([76,80],{offset:34})||!(n.check([0,0,1],{offset:8})||n.check([1,0,2],{offset:8})||n.check([2,0,2],{offset:8}))){t.next=373;break}return t.abrupt("return",{ext:"eot",mime:"application/vnd.ms-fontobject"});case 373:if(!n.check([6,6,237,245,216,29,70,229,189,49,239,231,254,116,183,29])){t.next=375;break}return t.abrupt("return",{ext:"indd",mime:"application/x-indesign"});case 375:if(!n.check([255,255,0,0,7,0,0,0,4,0,0,0,1,0,1,0])&&!n.check([0,0,255,255,0,0,0,7,0,0,0,4,0,1,0,1])){t.next=377;break}return t.abrupt("return",{ext:"jmp",mime:"application/x-jmp-data"});case 377:return t.next=379,e.peekBuffer(n.buffer,{length:Math.min(512,e.fileInfo.size),mayBeLess:!0});case 379:if(!(n.checkString("ustar",{offset:257})&&(n.checkString("\0",{offset:262})||n.checkString(" ",{offset:262}))||n.check([0,0,0,0,0,0],{offset:257})&&vt(n.buffer))){t.next=381;break}return t.abrupt("return",{ext:"tar",mime:"application/x-tar"});case 381:if(!n.check([255,254])){t.next=390;break}if(m="utf-16le",!n.checkString("<?xml ",{offset:2,encoding:m})){t.next=385;break}return t.abrupt("return",{ext:"xml",mime:"application/xml"});case 385:if(!n.check([255,14],{offset:2})||!n.checkString("SketchUp Model",{offset:4,encoding:m})){t.next=387;break}return t.abrupt("return",{ext:"skp",mime:"application/vnd.sketchup.skp"});case 387:if(!n.checkString("Windows Registry Editor Version 5.00\r\n",{offset:2,encoding:m})){t.next=389;break}return t.abrupt("return",{ext:"reg",mime:"application/x-ms-regedit"});case 389:return t.abrupt("return",void 0);case 390:if(!n.checkString("-----BEGIN PGP MESSAGE-----")){t.next=392;break}return t.abrupt("return",{ext:"pgp",mime:"application/pgp-encrypted"});case 392:case"end":return t.stop()}var y,v}),t,null,[[58,63],[344,351]])})));return function(e){return t.apply(this,arguments)}}()),Qe(this,"detectImprecise",function(){var t=er(Xe().mark((function t(e){var r,o,i;return Xe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.buffer=new Uint8Array(rr),r=cr(e.fileInfo.size),t.next=4,e.peekBuffer(n.buffer,{length:Math.min(8,r),mayBeLess:!0});case 4:if(!n.check([0,0,1,186])&&!n.check([0,0,1,179])){t.next=6;break}return t.abrupt("return",{ext:"mpg",mime:"video/mpeg"});case 6:if(!n.check([0,1,0,0,0])){t.next=8;break}return t.abrupt("return",{ext:"ttf",mime:"font/ttf"});case 8:if(!n.check([0,0,1,0])){t.next=10;break}return t.abrupt("return",{ext:"ico",mime:"image/x-icon"});case 10:if(!n.check([0,0,2,0])){t.next=12;break}return t.abrupt("return",{ext:"cur",mime:"image/x-icon"});case 12:return t.next=14,e.peekBuffer(n.buffer,{length:Math.min(2+n.options.mpegOffsetTolerance,r),mayBeLess:!0});case 14:if(!(n.buffer.length>=2+n.options.mpegOffsetTolerance)){t.next=23;break}o=0;case 16:if(!(o<=n.options.mpegOffsetTolerance)){t.next=23;break}if(!(i=n.scanMpeg(o))){t.next=20;break}return t.abrupt("return",i);case 20:++o,t.next=16;break;case 23:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());var o,i=(o=null==e?void 0:e.mpegOffsetTolerance,Number.isFinite(o)?Math.max(0,Math.min(4098,Math.trunc(o))):0);this.options=We(We({},e),{},{mpegOffsetTolerance:i}),this.detectors=[].concat(function(t){return function(t){if(Array.isArray(t))return He(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Ve(t)||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.")}()}(null!==(r=this.options.customDetectors)&&void 0!==r?r:[]),[{id:"core",detect:this.detectConfident},{id:"core.imprecise",detect:this.detectImprecise}]),this.tokenizerOptions={abortSignal:this.options.signal},this.gzipProbeDepth=0}var e,n,o,i,a,c,s,u,p,l,f,h,d;return e=t,n=[{key:"getTokenizerOptions",value:function(){return We({},this.tokenizerOptions)}},{key:"createTokenizerFromWebStream",value:function(t){return L.fromWebStream(function(t){return t.pipeThrough(new TransformStream)}(t),this.getTokenizerOptions())}},{key:"parseTokenizer",value:(d=er(Xe().mark((function t(e){var r,n,o,i,a,c,s=arguments;return Xe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=s.length>1&&void 0!==s[1]?s[1]:0,this.detectionReentryCount=r,n=e.position,o=Ze(this.detectors),t.prev=4,o.s();case 6:if((i=o.n()).done){t.next=28;break}return a=i.value,c=void 0,t.prev=9,t.next=12,a.detect(e);case 12:c=t.sent,t.next=22;break;case 15:if(t.prev=15,t.t0=t.catch(9),!(t.t0 instanceof D.d1)){t.next=19;break}return t.abrupt("return");case 19:if(!(t.t0 instanceof It)){t.next=21;break}return t.abrupt("return");case 21:throw t.t0;case 22:if(!c){t.next=24;break}return t.abrupt("return",c);case 24:if(n===e.position){t.next=26;break}return t.abrupt("return",void 0);case 26:t.next=6;break;case 28:t.next=33;break;case 30:t.prev=30,t.t1=t.catch(4),o.e(t.t1);case 33:return t.prev=33,o.f(),t.finish(33);case 36:case"end":return t.stop()}}),t,this,[[4,30,33,36],[9,15]])}))),function(t){return d.apply(this,arguments)})},{key:"fromTokenizer",value:(h=er(Xe().mark((function t(e){return Xe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.parseTokenizer(e);case 3:return t.abrupt("return",t.sent);case 4:return t.prev=4,t.next=7,e.close();case 7:return t.finish(4);case 8:case"end":return t.stop()}}),t,this,[[0,,4,8]])}))),function(t){return h.apply(this,arguments)})},{key:"fromBuffer",value:(f=er(Xe().mark((function t(e){var r;return Xe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e instanceof Uint8Array||e instanceof ArrayBuffer){t.next=2;break}throw new TypeError("Expected the `input` argument to be of type `Uint8Array` or `ArrayBuffer`, got `".concat($e(e),"`"));case 2:if((null==(r=e instanceof Uint8Array?e:new Uint8Array(e))?void 0:r.length)>1){t.next=5;break}return t.abrupt("return");case 5:return t.abrupt("return",this.fromTokenizer(L.fromBuffer(r,this.getTokenizerOptions())));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"fromBlob",value:(l=er(Xe().mark((function t(e){var r,n;return Xe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return null===(r=this.options.signal)||void 0===r||r.throwIfAborted(),n=L.fromBlob(e,this.getTokenizerOptions()),t.abrupt("return",this.fromTokenizer(n));case 3:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"fromStream",value:(p=er(Xe().mark((function t(e){var r,n;return Xe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return null===(r=this.options.signal)||void 0===r||r.throwIfAborted(),n=this.createTokenizerFromWebStream(e),t.abrupt("return",this.fromTokenizer(n));case 3:case"end":return t.stop()}}),t,this)}))),function(t){return p.apply(this,arguments)})},{key:"fromFile",value:(u=er(Xe().mark((function t(e){var n,o,i,a,c,s,u,p;return Xe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return null===(n=this.options.signal)||void 0===n||n.throwIfAborted(),t.next=3,Promise.all([Promise.resolve().then(r.t.bind(r,1304,19)),Promise.resolve().then(r.bind(r,9971))]);case 3:return o=t.sent,i=Ge(o,2),a=i[0].default,c=i[1].FileTokenizer,t.next=9,a.open(e,a.constants.O_RDONLY|a.constants.O_NONBLOCK);case 9:return s=t.sent,t.next=12,s.stat();case 12:if((u=t.sent).isFile()){t.next=17;break}return t.next=16,s.close();case 16:return t.abrupt("return");case 17:return p=new c(s,We(We({},this.getTokenizerOptions()),{},{fileInfo:{path:e,size:u.size}})),t.abrupt("return",this.fromTokenizer(p));case 19:case"end":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:"toDetectionStream",value:(s=er(Xe().mark((function t(e,r){var n,o,i,a,c,s,u,p,l,f,h,d,m,y,v,g;return Xe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:null===(n=this.options.signal)||void 0===n||n.throwIfAborted(),i=ar(null!==(o=null==r?void 0:r.sampleSize)&&void 0!==o?o:rr),c=!1,s=e.getReader(),u=[],p=0,t.prev=6;case 7:if(!(p<i)){t.next=20;break}return t.next=10,sr(s,this.options.signal);case 10:if(l=t.sent,f=l.value,!l.done&&f){t.next=16;break}return c=!0,t.abrupt("break",20);case 16:u.push(f),p+=f.length,t.next=7;break;case 20:if(c||p!==i){t.next=27;break}return t.next=23,sr(s,this.options.signal);case 23:h=t.sent,d=h.value,h.done||!d?c=!0:(u.push(d),p+=d.length);case 27:return t.prev=27,s.releaseLock(),t.finish(27);case 30:if(!(p>0)){t.next=44;break}return y=1===u.length?u[0]:dt(u),t.prev=32,t.next=35,this.fromBuffer(y.subarray(0,i));case 35:a=t.sent,t.next=43;break;case 38:if(t.prev=38,t.t0=t.catch(32),t.t0 instanceof D.d1){t.next=42;break}throw t.t0;case 42:a=void 0;case 43:c||"pages"!==(null===(m=a)||void 0===m?void 0:m.ext)||(a={ext:"zip",mime:"application/zip"});case 44:return v=new TransformStream({start:function(t){for(var e=0,r=u;e<r.length;e++){var n=r[e];t.enqueue(n)}},transform:function(t,e){e.enqueue(t)}}),(g=e.pipeThrough(v)).fileType=a,t.abrupt("return",g);case 48:case"end":return t.stop()}}),t,this,[[6,,27,30],[32,38]])}))),function(t,e){return s.apply(this,arguments)})},{key:"detectGzip",value:(c=er(Xe().mark((function e(r){var n,o,i,a,c,s,u,p,l,f,h;return Xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(this.gzipProbeDepth>=1)){e.next=2;break}return e.abrupt("return",{ext:"gz",mime:"application/gzip"});case 2:return o=new st(r),i=ur(o.inflate(),nr),(a=qt(r))?(l=new AbortController,c=setTimeout((function(){l.abort(new DOMException("Operation timed out after ".concat(100," ms"),"TimeoutError"))}),100),s=void 0===this.options.signal?l.signal:AbortSignal.any([this.options.signal,l.signal]),(u=new t(We(We({},this.options),{},{signal:s}))).gzipProbeDepth=this.gzipProbeDepth+1):this.gzipProbeDepth++,e.prev=6,e.next=9,(null!==(f=u)&&void 0!==f?f:this).fromStream(i);case 9:p=e.sent,e.next=16;break;case 12:if(e.prev=12,e.t0=e.catch(6),"AbortError"!==(null===e.t0||void 0===e.t0?void 0:e.t0.name)||"TimeoutError"===(null===(h=s)||void 0===h||null===(h=h.reason)||void 0===h?void 0:h.name)){e.next=16;break}throw e.t0;case 16:return e.prev=16,clearTimeout(c),a||this.gzipProbeDepth--,e.finish(16);case 20:if("tar"!==(null===(n=p)||void 0===n?void 0:n.ext)){e.next=22;break}return e.abrupt("return",{ext:"tar.gz",mime:"application/gzip"});case 22:return e.abrupt("return",{ext:"gz",mime:"application/gzip"});case 23:case"end":return e.stop()}}),e,this,[[6,12,16,20]])}))),function(t){return c.apply(this,arguments)})},{key:"check",value:function(t,e){return Ut(this.buffer,t,e)}},{key:"checkString",value:function(t,e){return this.check(function(t,e){if("utf-16le"===e){for(var r=[],n=0;n<t.length;n++){var o=t.charCodeAt(n);r.push(255&o,o>>8&255)}return r}if("utf-16be"===e){for(var i=[],a=0;a<t.length;a++){var c=t.charCodeAt(a);i.push(c>>8&255,255&c)}return i}return function(t){return function(t){if(Array.isArray(t))return yt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return yt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yt(t,e):void 0}}(t)||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.")}()}(t).map((function(t){return t.charCodeAt(0)}))}(t,null==e?void 0:e.encoding),e)}},{key:"readTiffTag",value:(a=er(Xe().mark((function t(e){var r;return Xe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.tokenizer.readToken(e?j:O);case 2:return r=t.sent,t.next=5,this.tokenizer.ignore(10);case 5:t.t0=r,t.next=50341===t.t0?8:50706===t.t0?9:10;break;case 8:return t.abrupt("return",{ext:"arw",mime:"image/x-sony-arw"});case 9:return t.abrupt("return",{ext:"dng",mime:"image/x-adobe-dng"});case 10:case"end":return t.stop()}}),t,this)}))),function(t){return a.apply(this,arguments)})},{key:"readTiffIFD",value:(i=er(Xe().mark((function t(e){var r,n,o;return Xe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.tokenizer.readToken(e?j:O);case 2:if(!((r=t.sent)>512)){t.next=5;break}return t.abrupt("return");case 5:if(!(qt(this.tokenizer)&&2+12*r>ir)){t.next=7;break}return t.abrupt("return");case 7:n=0;case 8:if(!(n<r)){t.next=17;break}return t.next=11,this.readTiffTag(e);case 11:if(!(o=t.sent)){t.next=14;break}return t.abrupt("return",o);case 14:++n,t.next=8;break;case 17:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"readTiffHeader",value:(o=er(Xe().mark((function t(e){var r,n,o,i,a,c,s,u;return Xe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r={ext:"tif",mime:"image/tiff"},n=(e?j:O).get(this.buffer,2),o=(e?_:F).get(this.buffer,4),42!==n){t.next=37;break}if(!(o>=6)){t.next=12;break}if(!this.checkString("CR",{offset:8})){t.next=7;break}return t.abrupt("return",{ext:"cr2",mime:"image/x-canon-cr2"});case 7:if(!(o>=8)){t.next=12;break}if(a=(e?j:O).get(this.buffer,8),c=(e?j:O).get(this.buffer,10),!(28===a&&254===c||31===a&&11===c)){t.next=12;break}return t.abrupt("return",{ext:"nef",mime:"image/x-nikon-nef"});case 12:if(!(qt(this.tokenizer)&&o>1048576)){t.next=14;break}return t.abrupt("return",r);case 14:return s=qt(this.tokenizer)?ir:this.tokenizer.fileInfo.size,t.prev=15,t.next=18,Nt(this.tokenizer,o,{maximumLength:s,reason:"TIFF IFD offset"});case 18:t.next=25;break;case 20:if(t.prev=20,t.t0=t.catch(15),!(t.t0 instanceof D.d1)){t.next=24;break}return t.abrupt("return");case 24:throw t.t0;case 25:return t.prev=25,t.next=28,this.readTiffIFD(e);case 28:u=t.sent,t.next=36;break;case 31:if(t.prev=31,t.t1=t.catch(25),!(t.t1 instanceof D.d1)){t.next=35;break}return t.abrupt("return");case 35:throw t.t1;case 36:return t.abrupt("return",null!==(i=u)&&void 0!==i?i:r);case 37:if(43!==n){t.next=39;break}return t.abrupt("return",r);case 39:case"end":return t.stop()}}),t,this,[[15,20],[25,31]])}))),function(t){return o.apply(this,arguments)})},{key:"scanMpeg",value:function(t){if(this.check([255,224],{offset:t,mask:[255,224]})){if(this.check([16],{offset:t+1,mask:[22]}))return this.check([8],{offset:t+1,mask:[8]}),{ext:"aac",mime:"audio/aac"};if(this.check([2],{offset:t+1,mask:[6]}))return{ext:"mp3",mime:"audio/mpeg"};if(this.check([4],{offset:t+1,mask:[6]}))return{ext:"mp2",mime:"audio/mpeg"};if(this.check([6],{offset:t+1,mask:[6]}))return{ext:"mp1",mime:"audio/mpeg"}}}}],n&&Ke(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();new Set(["jpg","png","apng","gif","webp","flif","xcf","cr2","cr3","orf","arw","dng","nef","rw2","raf","tif","bmp","icns","jxr","psd","indd","zip","tar","rar","gz","bz2","7z","dmg","mp4","mid","mkv","webm","mov","avi","mpg","mp2","mp3","m4a","oga","ogg","ogv","opus","flac","wav","spx","amr","pdf","epub","elf","macho","exe","swf","rtf","wasm","woff","woff2","eot","ttf","otf","ttc","ico","flv","ps","xz","sqlite","nes","crx","xpi","cab","deb","ar","rpm","Z","lz","cfb","mxf","mts","blend","bpg","docx","pptx","xlsx","3gp","3g2","j2c","jp2","jpm","jpx","mj2","aif","qcp","odt","ods","odp","xml","mobi","heic","cur","ktx","ape","wv","dcm","ics","glb","pcap","dsf","lnk","alias","voc","ac3","m4v","m4p","m4b","f4v","f4p","f4b","f4a","mie","asf","ogm","ogx","mpc","arrow","shp","aac","mp1","it","s3m","xm","skp","avif","eps","lzh","pgp","asar","stl","chm","3mf","zst","jxl","vcf","jls","pst","dwg","parquet","class","arj","cpio","ace","avro","icc","fbx","vsdx","vtt","apk","drc","lz4","potx","xltx","dotx","xltm","ott","ots","otp","odg","otg","xlsm","docm","dotm","potm","pptm","jar","jmp","rm","sav","ppsm","ppsx","tar.gz","reg","dat","key","numbers","pages"]),new Set(["image/jpeg","image/png","image/gif","image/webp","image/flif","image/x-xcf","image/x-canon-cr2","image/x-canon-cr3","image/tiff","image/bmp","image/vnd.ms-photo","image/vnd.adobe.photoshop","application/x-indesign","application/epub+zip","application/x-xpinstall","application/vnd.ms-powerpoint.slideshow.macroenabled.12","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/zip","application/x-tar","application/x-rar-compressed","application/gzip","application/x-bzip2","application/x-7z-compressed","application/x-apple-diskimage","application/vnd.apache.arrow.file","video/mp4","audio/midi","video/matroska","video/webm","video/quicktime","video/vnd.avi","audio/wav","audio/qcelp","audio/x-ms-asf","video/x-ms-asf","application/vnd.ms-asf","video/mpeg","video/3gpp","audio/mpeg","audio/mp4","video/ogg","audio/ogg","audio/ogg; codecs=opus","application/ogg","audio/flac","audio/ape","audio/wavpack","audio/amr","application/pdf","application/x-elf","application/x-mach-binary","application/x-msdownload","application/x-shockwave-flash","application/rtf","application/wasm","font/woff","font/woff2","application/vnd.ms-fontobject","font/ttf","font/otf","font/collection","image/x-icon","video/x-flv","application/postscript","application/eps","application/x-xz","application/x-sqlite3","application/x-nintendo-nes-rom","application/x-google-chrome-extension","application/vnd.ms-cab-compressed","application/x-deb","application/x-unix-archive","application/x-rpm","application/x-compress","application/lzip","application/x-cfb","application/x-mie","application/mxf","video/mp2t","application/x-blender","image/bpg","image/j2c","image/jp2","image/jpx","image/jpm","image/mj2","audio/aiff","application/xml","application/x-mobipocket-ebook","image/heif","image/heif-sequence","image/heic","image/heic-sequence","image/icns","image/ktx","application/dicom","audio/x-musepack","text/calendar","text/vcard","text/vtt","model/gltf-binary","application/vnd.tcpdump.pcap","audio/x-dsf","application/x-ms-shortcut","application/x-ft-apple.alias","audio/x-voc","audio/vnd.dolby.dd-raw","audio/x-m4a","image/apng","image/x-olympus-orf","image/x-sony-arw","image/x-adobe-dng","image/x-nikon-nef","image/x-panasonic-rw2","image/x-fujifilm-raf","video/x-m4v","video/3gpp2","application/x-esri-shape","audio/aac","audio/x-it","audio/x-s3m","audio/x-xm","video/MP1S","video/MP2P","application/vnd.sketchup.skp","image/avif","application/x-lzh-compressed","application/pgp-encrypted","application/x-asar","model/stl","application/vnd.ms-htmlhelp","model/3mf","image/jxl","application/zstd","image/jls","application/vnd.ms-outlook","image/vnd.dwg","application/vnd.apache.parquet","application/java-vm","application/x-arj","application/x-cpio","application/x-ace-compressed","application/avro","application/vnd.iccprofile","application/x-ft-fbx","application/vnd.visio","application/vnd.android.package-archive","application/x-ft-draco","application/x-lz4","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-excel.template.macroenabled.12","application/vnd.oasis.opendocument.text-template","application/vnd.oasis.opendocument.spreadsheet-template","application/vnd.oasis.opendocument.presentation-template","application/vnd.oasis.opendocument.graphics","application/vnd.oasis.opendocument.graphics-template","application/vnd.ms-excel.sheet.macroenabled.12","application/vnd.ms-word.document.macroenabled.12","application/vnd.ms-word.template.macroenabled.12","application/vnd.ms-powerpoint.template.macroenabled.12","application/vnd.ms-powerpoint.presentation.macroenabled.12","application/java-archive","application/vnd.rn-realmedia","application/x-spss-sav","application/x-ms-regedit","application/x-ft-windows-registry-hive","application/x-jmp-data","application/vnd.apple.keynote","application/vnd.apple.numbers","application/vnd.apple.pages"]);var hr,dr=r(2593),mr=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i,yr=function(t){return btoa(dr.ArrayBuffer.hash(t,!0))},vr=function(t,e){void 0===e&&(e=!1);var r=btoa(t);return e?r.replace(/\//g,"_").replace(/\+/g,"-"):r},gr=function(){return"JS-4.3.8"},br=function(){return navigator&&navigator.userAgent&&mr.test(navigator.userAgent)},xr=function(){return navigator&&navigator.userAgent&&/\[FB.*;/i.test(navigator.userAgent)},wr=function(t,e){var r=t.urls.cdnUrl;if(e&&(0===e.indexOf("src:")||0===e.indexOf("http"))){if(!t.apikey)throw new Error("Api key is required when storage alias is provided");return"".concat(r,"/").concat(t.apikey)}return r},kr=function(t,e){if(!e)return t;var r=/filestackapi.com|filestackcontent.com/i;return Object.keys(t).forEach((function(n){t[n]=t[n].replace(r,e)})),t},Sr=function(t){var e=(0,i.Cl)({},t);return Object.keys(e).forEach((function(t){return!e[t]&&"boolean"!=typeof e[t]&&delete e[t]})),e},Er=function(){var t=Date.now();return hr=t===hr?t+1:t},Or=function(t){return void 0===t&&(t=10),new Array(t).join().replace(/(.|$)/g,(function(){return(36*Math.random()|0).toString(36)[Math.random()<.5?"toString":"toUpperCase"]()}))},jr=function(t,e){return(0,i.sH)(void 0,void 0,void 0,(function(){var r,n,o,a;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,pr(t)];case 1:return r=i.sent(),[3,3];case 2:return n=i.sent(),console.warn("An exception occurred while processing the buffer:",n.message),[3,3];case 3:if(o=["text/plain","application/octet-stream","application/x-ms","application/x-msi","application/zip","audio/x-m4a"],r&&-1===o.indexOf(r.mime))return[2,r.mime];if(e&&e.indexOf(".")>-1&&(a=Fr(e)))return[2,a];try{if(function(t){if(!t)return!1;for(var e=0,r=t.length;e<r;)if(t[e]<=127)e++;else{if(t[e]>=194&&t[e]<=223){if(t[e+1]>>6==2){e+=2;continue}return!1}if((224===t[e]&&t[e+1]>=160&&t[e+1]<=191||237===t[e]&&t[e+1]>=128&&t[e+1]<=159)&&t[e+2]>>6==2)e+=3;else if((t[e]>=225&&t[e]<=236||t[e]>=238&&t[e]<=239)&&t[e+1]>>6==2&&t[e+2]>>6==2)e+=3;else{if(!(240===t[e]&&t[e+1]>=144&&t[e+1]<=191||t[e]>=241&&t[e]<=243&&t[e+1]>>6==2||244===t[e]&&t[e+1]>=128&&t[e+1]<=143)||t[e+2]>>6!=2||t[e+3]>>6!=2)return!1;e+=4}}return!0}(t))return[2,"text/plain"]}catch(t){console.warn("Additional mimetype checks (text/plain) are currently not supported for browsers")}return r?[2,r.mime]:[2,"application/octet-stream"]}}))}))},Fr=function(t){if(t&&0!==t.length){if(2===t.split("/").length)return t;t.indexOf(".")>-1&&(t=t.split(".").pop()),t=t.toLocaleLowerCase();for(var e=Object.keys(a),r=e.length,n=0;n<r;n++)if(a[e[n]].indexOf(t)>-1)return e[n]}},_r=function(t,e){if(void 0===e&&(e=!0),"boolean"==typeof e&&!e)return t;var r,n="boolean"!=typeof e&&e.replacement?e.replacement:"-",o="boolean"!=typeof e&&e.exclude?e.exclude:["\\","{","}","|","%","`",'"',"'","~","[","]","#","|","^","<",">"];if(!t||0===t.length)return"undefined";var i=t.split(".");return i.length>1&&(r=i.pop()),"".concat(i.join(".").split("").map((function(t){return o.indexOf(t)>-1?n:t})).join("")).concat(r?"."+r:"")},Pr=function(t,e){return e&&0!==e.length?0===Object.keys(t).length?t:Object.keys(t).filter((function(t){return e.indexOf(t)>-1})).reduce((function(e,r){var n;return(0,i.Cl)((0,i.Cl)({},e),((n={})[r]=t[r],n))}),{}):t},Ar=function t(e){return e&&0!==Object.keys(e).length?(Object.keys(e).forEach((function(r){"function"==typeof e[r]&&(e[r]=void 0),e[r]===Object(e[r])&&(e[r]=t(e[r]))})),e):e}},7047:t=>{t.exports=URIError},7052:t=>{t.exports=Function.prototype.apply},7548:t=>{t.exports=Math.round},7680:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function i(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:String(e)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}function u(t){var e=f();return function(){var r,o=d(t);if(e){var i=d(this).constructor;r=Reflect.construct(o,arguments,i)}else r=o.apply(this,arguments);return function(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function p(t){var e="function"==typeof Map?new Map:void 0;return p=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return l(t,arguments,d(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),h(r,t)},p(t)}function l(t,e,r){return l=f()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&h(o,r.prototype),o},l.apply(null,arguments)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}r.d(e,{d1:()=>m,lc:()=>y});var m=function(t){s(r,t);var e=u(r);function r(){var t;return c(this,r),(t=e.call(this,"End-Of-Stream")).name="EndOfStreamError",t}return i(r)}(p(Error)),y=function(t){s(r,t);var e=u(r);function r(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"The operation was aborted";return c(this,r),(t=e.call(this,n)).name="AbortError",t}return i(r)}(p(Error))},8299:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o,i=r(9142),a=r(157),c=r(15),s=r(2104),u=r(6076),p=r(1226),l=r(1953),f=r(7047),h=r(4940),d=r(4218),m=r(9406),y=r(8624),v=r(6114),g=r(7548),b=r(9063),x=Function,w=function(t){try{return x('"use strict"; return ('+t+").constructor;")()}catch(t){}},k=r(3581),S=r(5049),E=function(){throw new l},O=k?function(){try{return E}catch(t){try{return k(arguments,"callee").get}catch(t){return E}}}():E,j=r(377)(),F=r(5586),_=r(9302),P=r(1622),A=r(7052),T=r(5118),D={},L="undefined"!=typeof Uint8Array&&F?F(Uint8Array):o,C={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":j&&F?F([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":D,"%AsyncGenerator%":D,"%AsyncGeneratorFunction%":D,"%AsyncIteratorPrototype%":D,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":c,"%Float16Array%":"undefined"==typeof Float16Array?o:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":x,"%GeneratorFunction%":D,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":j&&F?F(F([][Symbol.iterator]())):o,"%JSON%":"object"===("undefined"==typeof JSON?"undefined":n(JSON))?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&j&&F?F((new Map)[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":k,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":s,"%ReferenceError%":u,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&j&&F?F((new Set)[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":j&&F?F(""[Symbol.iterator]()):o,"%Symbol%":j?Symbol:o,"%SyntaxError%":p,"%ThrowTypeError%":O,"%TypedArray%":L,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet,"%Function.prototype.call%":T,"%Function.prototype.apply%":A,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":_,"%Math.abs%":h,"%Math.floor%":d,"%Math.max%":m,"%Math.min%":y,"%Math.pow%":v,"%Math.round%":g,"%Math.sign%":b,"%Reflect.getPrototypeOf%":P};if(F)try{null.error}catch(t){var I=F(F(t));C["%Error.prototype%"]=I}var z=function t(e){var r;if("%AsyncFunction%"===e)r=w("async function () {}");else if("%GeneratorFunction%"===e)r=w("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=w("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&F&&(r=F(o.prototype))}return C[e]=r,r},N={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},R=r(5465),M=r(863),B=R.call(T,Array.prototype.concat),U=R.call(A,Array.prototype.splice),q=R.call(T,String.prototype.replace),G=R.call(T,String.prototype.slice),$=R.call(T,RegExp.prototype.exec),Z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,H=function(t,e){var r,n=t;if(M(N,n)&&(n="%"+(r=N[n])[0]+"%"),M(C,n)){var o=C[n];if(o===D&&(o=z(n)),void 0===o&&!e)throw new l("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new p("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new l('"allowMissing" argument must be a boolean');if(null===$(/^%?[^%]*%?$/,t))throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=G(t,0,1),r=G(t,-1);if("%"===e&&"%"!==r)throw new p("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new p("invalid intrinsic syntax, expected opening `%`");var n=[];return q(t,Z,(function(t,e,r,o){n[n.length]=r?q(o,V,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",o=H("%"+n+"%",e),i=o.name,a=o.value,c=!1,s=o.alias;s&&(n=s[0],U(r,B([0,1],s)));for(var u=1,f=!0;u<r.length;u+=1){var h=r[u],d=G(h,0,1),m=G(h,-1);if(('"'===d||"'"===d||"`"===d||'"'===m||"'"===m||"`"===m)&&d!==m)throw new p("property names with quotes must have matching quotes");if("constructor"!==h&&f||(c=!0),M(C,i="%"+(n+="."+h)+"%"))a=C[i];else if(null!=a){if(!(h in a)){if(!e)throw new l("base intrinsic for "+t+" exists, but the property is not available.");return}if(k&&u+1>=r.length){var y=k(a,h);a=(f=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[h]}else f=M(a,h),a=a[h];f&&!c&&(C[i]=a)}}return a}},8624:t=>{t.exports=Math.min},8630:(t,e,r)=>{function n(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||i(t)||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 o(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=i(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return c=t.done,t},e:function(t){s=!0,a=t},f:function(){try{c||null==r.return||r.return()}finally{if(s)throw a}}}}function i(t,e){if(t){if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}t.exports=function(t){function e(t){var r,n,o,a=null;function c(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];if(c.enabled){var i=c,a=Number(new Date),s=a-(r||a);i.diff=s,i.prev=r,i.curr=a,r=a,n[0]=e.coerce(n[0]),"string"!=typeof n[0]&&n.unshift("%O");var u=0;n[0]=n[0].replace(/%([a-zA-Z%])/g,(function(t,r){if("%%"===t)return"%";u++;var o=e.formatters[r];if("function"==typeof o){var a=n[u];t=o.call(i,a),n.splice(u,1),u--}return t})),e.formatArgs.call(i,n),(i.log||e.log).apply(i,n)}}return c.namespace=t,c.useColors=e.useColors(),c.color=e.selectColor(t),c.extend=i,c.destroy=e.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:function(){return null!==a?a:(n!==e.namespaces&&(n=e.namespaces,o=e.enabled(t)),o)},set:function(t){a=t}}),"function"==typeof e.init&&e.init(c),c}function i(t,r){var n=e(this.namespace+(void 0===r?":":r)+t);return n.log=this.log,n}function a(t,e){for(var r=0,n=0,o=-1,i=0;r<t.length;)if(n<e.length&&(e[n]===t[r]||"*"===e[n]))"*"===e[n]?(o=n,i=r,n++):(r++,n++);else{if(-1===o)return!1;n=o+1,r=++i}for(;n<e.length&&"*"===e[n];)n++;return n===e.length}return e.debug=e,e.default=e,e.coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){var t=[].concat(n(e.names),n(e.skips.map((function(t){return"-"+t})))).join(",");return e.enable(""),t},e.enable=function(t){e.save(t),e.namespaces=t,e.names=[],e.skips=[];var r,n=o(("string"==typeof t?t:"").trim().replace(/\s+/g,",").split(",").filter(Boolean));try{for(n.s();!(r=n.n()).done;){var i=r.value;"-"===i[0]?e.skips.push(i.slice(1)):e.names.push(i)}}catch(t){n.e(t)}finally{n.f()}},e.enabled=function(t){var r,n=o(e.skips);try{for(n.s();!(r=n.n()).done;)if(a(t,r.value))return!1}catch(t){n.e(t)}finally{n.f()}var i,c=o(e.names);try{for(c.s();!(i=c.n()).done;)if(a(t,i.value))return!0}catch(t){c.e(t)}finally{c.f()}return!1},e.humanize=r(9527),e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((function(r){e[r]=t[r]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){for(var r=0,n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n),r|=0;return e.colors[Math.abs(r)%e.colors.length]},e.enable(e.load()),e}},8657:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=o&&i&&"function"==typeof i.get?i.get:null,c=o&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,p=s&&u&&"function"==typeof u.get?u.get:null,l=s&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,y=Object.prototype.toString,v=Function.prototype.toString,g=String.prototype.match,b=String.prototype.slice,x=String.prototype.replace,w=String.prototype.toUpperCase,k=String.prototype.toLowerCase,S=RegExp.prototype.test,E=Array.prototype.concat,O=Array.prototype.join,j=Array.prototype.slice,F=Math.floor,_="function"==typeof BigInt?BigInt.prototype.valueOf:null,P=Object.getOwnPropertySymbols,A="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?Symbol.prototype.toString:null,T="function"==typeof Symbol&&"object"===n(Symbol.iterator),D="function"==typeof Symbol&&Symbol.toStringTag&&(n(Symbol.toStringTag),1)?Symbol.toStringTag:null,L=Object.prototype.propertyIsEnumerable,C=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function I(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||S.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-F(-t):F(t);if(n!==t){var o=String(n),i=b.call(e,o.length+1);return x.call(o,r,"$&_")+"."+x.call(x.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return x.call(e,r,"$&_")}var z=r(2634),N=z.custom,R=V(N)?N:null,M={__proto__:null,double:'"',single:"'"},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function U(t,e,r){var n=r.quoteStyle||e,o=M[n];return o+t+o}function q(t){return x.call(String(t),/"/g,"&quot;")}function G(t){return!D||!("object"===n(t)&&(D in t||void 0!==t[D]))}function $(t){return"[object Array]"===W(t)&&G(t)}function Z(t){return"[object RegExp]"===W(t)&&G(t)}function V(t){if(T)return t&&"object"===n(t)&&t instanceof Symbol;if("symbol"===n(t))return!0;if(!t||"object"!==n(t)||!A)return!1;try{return A.call(t),!0}catch(t){}return!1}t.exports=function t(e,o,i,s){var u=o||{};if(Y(u,"quoteStyle")&&!Y(M,u.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Y(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var y=!Y(u,"customInspect")||u.customInspect;if("boolean"!=typeof y&&"symbol"!==y)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Y(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Y(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=u.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return Q(e,u);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var S=String(e);return w?I(e,S):S}if("bigint"==typeof e){var F=String(e)+"n";return w?I(e,F):F}var P=void 0===u.depth?5:u.depth;if(void 0===i&&(i=0),i>=P&&P>0&&"object"===n(e))return $(e)?"[Array]":"[Object]";var N,B=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=O.call(Array(t.indent+1)," ")}return{base:r,prev:O.call(Array(e+1),r)}}(u,i);if(void 0===s)s=[];else if(K(s,e)>=0)return"[Circular]";function H(e,r,n){if(r&&(s=j.call(s)).push(r),n){var o={depth:u.depth};return Y(u,"quoteStyle")&&(o.quoteStyle=u.quoteStyle),t(e,o,i+1,s)}return t(e,u,i+1,s)}if("function"==typeof e&&!Z(e)){var J=function(t){if(t.name)return t.name;var e=g.call(v.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),ot=nt(e,H);return"[Function"+(J?": "+J:" (anonymous)")+"]"+(ot.length>0?" { "+O.call(ot,", ")+" }":"")}if(V(e)){var it=T?x.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):A.call(e);return"object"!==n(e)||T?it:X(it)}if((N=e)&&"object"===n(N)&&("undefined"!=typeof HTMLElement&&N instanceof HTMLElement||"string"==typeof N.nodeName&&"function"==typeof N.getAttribute)){for(var at="<"+k.call(String(e.nodeName)),ct=e.attributes||[],st=0;st<ct.length;st++)at+=" "+ct[st].name+"="+U(q(ct[st].value),"double",u);return at+=">",e.childNodes&&e.childNodes.length&&(at+="..."),at+"</"+k.call(String(e.nodeName))+">"}if($(e)){if(0===e.length)return"[]";var ut=nt(e,H);return B&&!function(t){for(var e=0;e<t.length;e++)if(K(t[e],"\n")>=0)return!1;return!0}(ut)?"["+rt(ut,B)+"]":"[ "+O.call(ut,", ")+" ]"}if(function(t){return"[object Error]"===W(t)&&G(t)}(e)){var pt=nt(e,H);return"cause"in Error.prototype||!("cause"in e)||L.call(e,"cause")?0===pt.length?"["+String(e)+"]":"{ ["+String(e)+"] "+O.call(pt,", ")+" }":"{ ["+String(e)+"] "+O.call(E.call("[cause]: "+H(e.cause),pt),", ")+" }"}if("object"===n(e)&&y){if(R&&"function"==typeof e[R]&&z)return z(e,{depth:P-i});if("symbol"!==y&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!a||!t||"object"!==n(t))return!1;try{a.call(t);try{p.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var lt=[];return c&&c.call(e,(function(t,r){lt.push(H(r,e,!0)+" => "+H(t,e))})),et("Map",a.call(e),lt,B)}if(function(t){if(!p||!t||"object"!==n(t))return!1;try{p.call(t);try{a.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var ft=[];return l&&l.call(e,(function(t){ft.push(H(t,e))})),et("Set",p.call(e),ft,B)}if(function(t){if(!f||!t||"object"!==n(t))return!1;try{f.call(t,f);try{h.call(t,h)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return tt("WeakMap");if(function(t){if(!h||!t||"object"!==n(t))return!1;try{h.call(t,h);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return tt("WeakSet");if(function(t){if(!d||!t||"object"!==n(t))return!1;try{return d.call(t),!0}catch(t){}return!1}(e))return tt("WeakRef");if(function(t){return"[object Number]"===W(t)&&G(t)}(e))return X(H(Number(e)));if(function(t){if(!t||"object"!==n(t)||!_)return!1;try{return _.call(t),!0}catch(t){}return!1}(e))return X(H(_.call(e)));if(function(t){return"[object Boolean]"===W(t)&&G(t)}(e))return X(m.call(e));if(function(t){return"[object String]"===W(t)&&G(t)}(e))return X(H(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&e===globalThis||void 0!==r.g&&e===r.g)return"{ [object globalThis] }";if(!function(t){return"[object Date]"===W(t)&&G(t)}(e)&&!Z(e)){var ht=nt(e,H),dt=C?C(e)===Object.prototype:e instanceof Object||e.constructor===Object,mt=e instanceof Object?"":"null prototype",yt=!dt&&D&&Object(e)===e&&D in e?b.call(W(e),8,-1):mt?"Object":"",vt=(dt||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(yt||mt?"["+O.call(E.call([],yt||[],mt||[]),": ")+"] ":"");return 0===ht.length?vt+"{}":B?vt+"{"+rt(ht,B)+"}":vt+"{ "+O.call(ht,", ")+" }"}return String(e)};var H=Object.prototype.hasOwnProperty||function(t){return t in this};function Y(t,e){return H.call(t,e)}function W(t){return y.call(t)}function K(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function Q(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Q(b.call(t,0,e.maxStringLength),e)+n}var o=B[e.quoteStyle||"single"];return o.lastIndex=0,U(x.call(x.call(t,o,"\\$1"),/[\x00-\x1f]/g,J),"single",e)}function J(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+w.call(e.toString(16))}function X(t){return"Object("+t+")"}function tt(t){return t+" { ? }"}function et(t,e,r,n){return t+" ("+e+") {"+(n?rt(r,n):O.call(r,", "))+"}"}function rt(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+O.call(t,","+r)+"\n"+e.prev}function nt(t,e){var r=$(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=Y(t,o)?e(t[o],t):""}var i,a="function"==typeof P?P(t):[];if(T){i={};for(var c=0;c<a.length;c++)i["$"+a[c]]=a[c]}for(var s in t)Y(t,s)&&(r&&String(Number(s))===s&&s<t.length||T&&i["$"+s]instanceof Symbol||(S.call(/[^\w$]/,s)?n.push(e(s,t)+": "+e(t[s],t)):n.push(s+": "+e(t[s],t))));if("function"==typeof P)for(var u=0;u<a.length;u++)L.call(t,a[u])&&n.push("["+e(a[u])+"]: "+e(t[a[u]],t));return n}},8796:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r){for(var n=0,o=t.length;o>0;){var i=o/2|0,a=n+i;r(t[a],e)<=0?(n=++a,o-=i+1):o=i}return n}},8950:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o,i=r(9472),a=r(3581);try{o=[].__proto__===Array.prototype}catch(t){if(!t||"object"!==n(t)||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var c=!!o&&a&&a(Object.prototype,"__proto__"),s=Object,u=s.getPrototypeOf;t.exports=c&&"function"==typeof c.get?i([c.get]):"function"==typeof u&&function(t){return u(null==t?t:s(t))}},9063:(t,e,r)=>{var n=r(6681);t.exports=function(t){return n(t)||0===t?t:t<0?-1:1}},9142:t=>{t.exports=Object},9292:t=>{var e=String.prototype.replace,r=/%20/g,n="RFC3986";t.exports={default:n,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:n}},9302:(t,e,r)=>{var n=r(9142);t.exports=n.getPrototypeOf||null},9367:(t,e,r)=>{var n=r(4509),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},c=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},s=function(t,e,r){if(t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(1===e.arrayLimit?"":"s")+" allowed in an array.");return t},u=function(t,e,r,i){if(t){var a=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,c=/(\[[^[\]]*])/g,u=r.depth>0&&/(\[[^[\]]*])/.exec(a),p=u?a.slice(0,u.index):a,l=[];if(p){if(!r.plainObjects&&o.call(Object.prototype,p)&&!r.allowPrototypes)return;l.push(p)}for(var f=0;r.depth>0&&null!==(u=c.exec(a))&&f<r.depth;){if(f+=1,!r.plainObjects&&o.call(Object.prototype,u[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(u[1])}if(u){if(!0===r.strictDepth)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");l.push("["+a.slice(u.index)+"]")}return function(t,e,r,o){var i=0;if(t.length>0&&"[]"===t[t.length-1]){var a=t.slice(0,-1).join("");i=Array.isArray(e)&&e[a]?e[a].length:0}for(var c=o?e:s(e,r,i),u=t.length-1;u>=0;--u){var p,l=t[u];if("[]"===l&&r.parseArrays)p=r.allowEmptyArrays&&(""===c||r.strictNullHandling&&null===c)?[]:n.combine([],c);else{p=r.plainObjects?{__proto__:null}:{};var f="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,h=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,d=parseInt(h,10);r.parseArrays||""!==h?!isNaN(d)&&l!==h&&String(d)===h&&d>=0&&r.parseArrays&&d<=r.arrayLimit?(p=[])[d]=c:"__proto__"!==h&&(p[h]=c):p={0:c}}c=p}return c}(l,e,r,i)}};t.exports=function(t,e){var r=function(t){if(!t)return a;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.decodeDotInKeys&&"boolean"!=typeof t.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==t.throwOnLimitExceeded&&"boolean"!=typeof t.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var e=void 0===t.charset?a.charset:t.charset,r=void 0===t.duplicates?a.duplicates:t.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===t.allowDots?!0===t.decodeDotInKeys||a.allowDots:!!t.allowDots,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decodeDotInKeys:"boolean"==typeof t.decodeDotInKeys?t.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof t.strictDepth?!!t.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof t.throwOnLimitExceeded&&t.throwOnLimitExceeded}}(e);if(""===t||null==t)return r.plainObjects?{__proto__:null}:{};for(var p="string"==typeof t?function(t,e){var r={__proto__:null},u=e.ignoreQueryPrefix?t.replace(/^\?/,""):t;u=u.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var p=e.parameterLimit===1/0?void 0:e.parameterLimit,l=u.split(e.delimiter,e.throwOnLimitExceeded?p+1:p);if(e.throwOnLimitExceeded&&l.length>p)throw new RangeError("Parameter limit exceeded. Only "+p+" parameter"+(1===p?"":"s")+" allowed.");var f,h=-1,d=e.charset;if(e.charsetSentinel)for(f=0;f<l.length;++f)0===l[f].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[f]?d="utf-8":"utf8=%26%2310003%3B"===l[f]&&(d="iso-8859-1"),h=f,f=l.length);for(f=0;f<l.length;++f)if(f!==h){var m,y,v=l[f],g=v.indexOf("]="),b=-1===g?v.indexOf("="):g+1;-1===b?(m=e.decoder(v,a.decoder,d,"key"),y=e.strictNullHandling?null:""):(m=e.decoder(v.slice(0,b),a.decoder,d,"key"),y=n.maybeMap(s(v.slice(b+1),e,i(r[m])?r[m].length:0),(function(t){return e.decoder(t,a.decoder,d,"value")}))),y&&e.interpretNumericEntities&&"iso-8859-1"===d&&(y=c(String(y))),v.indexOf("[]=")>-1&&(y=i(y)?[y]:y);var x=o.call(r,m);x&&"combine"===e.duplicates?r[m]=n.combine(r[m],y):x&&"last"!==e.duplicates||(r[m]=y)}return r}(t,r):t,l=r.plainObjects?{__proto__:null}:{},f=Object.keys(p),h=0;h<f.length;++h){var d=f[h],m=u(d,p[d],r,"string"==typeof t);l=n.merge(l,m,r)}return!0===r.allowSparse?l:n.compact(l)}},9406:t=>{t.exports=Math.max},9472:(t,e,r)=>{var n=r(5465),o=r(1953),i=r(5118),a=r(1978);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new o("a function is required");return a(n,i,t)}},9527:t=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}var r=1e3,n=60*r,o=60*n,i=24*o,a=7*i;function c(t,e,r,n){var o=e>=1.5*r;return Math.round(t/r)+" "+n+(o?"s":"")}t.exports=function(t,s){s=s||{};var u,p,l=e(t);if("string"===l&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var c=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*c;case"weeks":case"week":case"w":return c*a;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*o;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}(t);if("number"===l&&isFinite(t))return s.long?(u=t,(p=Math.abs(u))>=i?c(u,p,i,"day"):p>=o?c(u,p,o,"hour"):p>=n?c(u,p,n,"minute"):p>=r?c(u,p,r,"second"):u+" ms"):function(t){var e=Math.abs(t);return e>=i?Math.round(t/i)+"d":e>=o?Math.round(t/o)+"h":e>=n?Math.round(t/n)+"m":e>=r?Math.round(t/r)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},9653:(t,e,r)=>{r.d(e,{E:()=>n,d:()=>i});var n,o=r(1635);!function(t){t.ABORTED="ABORTED",t.NETWORK="NETWORK",t.TIMEOUT="TIMEDOUT",t.SERVER="SERVER",t.REQUEST="REQUEST",t.OTHER="OTHER",t.REDIRECT="REDIRECT"}(n||(n={}));var i=function(t){function e(e,r,n,o){var i,a,c,s=this.constructor,u=t.call(this,e)||this;return u.config=r,u.response=n,u.code=o,i=u,a=s.prototype,(c=Object.setPrototypeOf)?c(i,a):i.__proto__=a,u}return(0,o.C6)(e,t),e}(Error)},9927:t=>{t.exports=function(t,e){return e=e||function(){},t.then((function(t){return new Promise((function(t){t(e())})).then((function(){return t}))}),(function(t){return new Promise((function(t){t(e())})).then((function(){throw t}))}))}},9971:(t,e,r)=>{r.r(e),r.d(e,{AbortError:()=>n.lc,AbstractTokenizer:()=>ot,EndOfStreamError:()=>n.d1,fromBlob:()=>Zt,fromBuffer:()=>$t,fromStream:()=>qt,fromWebStream:()=>Gt});var n=r(7680);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,c(n.key),n)}}function a(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t){var e=function(t){if("object"!=o(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(e)?e:String(e)}var s=a((function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.resolve=function(){return null},this.reject=function(){return null},this.promise=new Promise((function(t,r){e.reject=r,e.resolve=t}))}));function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function p(){p=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new D(n||[]);return o(a,"_invoke",{value:_(t,r,c)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var d="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function x(){}function w(){}var k={};l(k,a,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(L([])));E&&E!==r&&n.call(E,a)&&(k=E);var O=w.prototype=b.prototype=Object.create(k);function j(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function F(t,e){function r(o,i,a,c){var s=h(t[o],t,i);if("throw"!==s.type){var p=s.arg,l=p.value;return l&&"object"==u(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){p.value=t,a(p)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function _(e,r,n){var o=d;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var s=P(c,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var u=h(e,r,n);if("normal"===u.type){if(o=n.done?v:m,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=v,n.method="throw",n.arg=u.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function L(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(u(e)+" is not iterable")}return x.prototype=w,o(O,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:x,configurable:!0}),x.displayName=l(w,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,s,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},j(F.prototype),l(F.prototype,c,(function(){return this})),e.AsyncIterator=F,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new F(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(O),l(O,s,"Generator"),l(O,a,(function(){return this})),l(O,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=L,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function l(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function f(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){l(i,n,o,a,c,"next",t)}function c(t){l(i,n,o,a,c,"throw",t)}a(void 0)}))}}function h(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,d(n.key),n)}}function d(t){var e=function(t){if("object"!=u(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:String(e)}var m=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.endOfStream=!1,this.interrupted=!1,this.peekQueue=[]}var e,r,o,i,a;return e=t,r=[{key:"peek",value:(a=f(p().mark((function t(e){var r,n,o=arguments;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>1&&void 0!==o[1]&&o[1],t.next=3,this.read(e,r);case 3:return n=t.sent,this.peekQueue.push(e.subarray(0,n)),t.abrupt("return",n);case 6:case"end":return t.stop()}}),t,this)}))),function(t){return a.apply(this,arguments)})},{key:"read",value:(i=f(p().mark((function t(e){var r,o,i=arguments;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=i.length>1&&void 0!==i[1]&&i[1],0!==e.length){t.next=3;break}return t.abrupt("return",0);case 3:if(o=this.readFromPeekBuffer(e),this.endOfStream){t.next=9;break}return t.t0=o,t.next=8,this.readRemainderFromStream(e.subarray(o),r);case 8:o=t.t0+=t.sent;case 9:if(0!==o||r){t.next=11;break}throw new n.d1;case 11:return t.abrupt("return",o);case 12:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"readFromPeekBuffer",value:function(t){for(var e=t.length,r=0;this.peekQueue.length>0&&e>0;){var n=this.peekQueue.pop();if(!n)throw new Error("peekData should be defined");var o=Math.min(n.length,e);t.set(n.subarray(0,o),r),r+=o,e-=o,o<n.length&&this.peekQueue.push(n.subarray(o))}return r}},{key:"readRemainderFromStream",value:(o=f(p().mark((function t(e,r){var o,i;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=0;case 1:if(!(o<e.length)||this.endOfStream){t.next=12;break}if(!this.interrupted){t.next=4;break}throw new n.lc;case 4:return t.next=6,this.readFromStream(e.subarray(o),r);case 6:if(0!==(i=t.sent)){t.next=9;break}return t.abrupt("break",12);case 9:o+=i,t.next=1;break;case 12:if(r||!(o<e.length)){t.next=14;break}throw new n.d1;case 14:return t.abrupt("return",o);case 15:case"end":return t.stop()}}),t,this)}))),function(t,e){return o.apply(this,arguments)})}],r&&h(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}function v(){v=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new D(n||[]);return o(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var f="suspendedStart",h="suspendedYield",d="executing",m="completed",g={};function b(){}function x(){}function w(){}var k={};u(k,a,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(L([])));E&&E!==r&&n.call(E,a)&&(k=E);var O=w.prototype=b.prototype=Object.create(k);function j(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function F(t,e){function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==y(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function _(e,r,n){var o=f;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var s=P(c,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=l(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function L(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(y(e)+" is not iterable")}return x.prototype=w,o(O,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:x,configurable:!0}),x.displayName=u(w,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,u(t,s,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},j(F.prototype),u(F.prototype,c,(function(){return this})),e.AsyncIterator=F,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new F(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(O),u(O,s,"Generator"),u(O,a,(function(){return this})),u(O,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=L,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function g(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function b(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){g(i,n,o,a,c,"next",t)}function c(t){g(i,n,o,a,c,"throw",t)}a(void 0)}))}}function x(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,w(n.key),n)}}function w(t){var e=function(t){if("object"!=y(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==y(e)?e:String(e)}function k(t,e){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},k(t,e)}function S(t){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},S(t)}var E=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&k(t,e)}(l,t);var e,r,o,i,a,c,u,p=(c=l,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=S(c);if(u){var r=S(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===y(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function l(t){var e;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(e=p.call(this)).s=t,e.deferred=null,!t.read||!t.once)throw new Error("Expected an instance of stream.Readable");return e.s.once("end",(function(){e.endOfStream=!0,e.deferred&&e.deferred.resolve(0)})),e.s.once("error",(function(t){return e.reject(t)})),e.s.once("close",(function(){return e.abort()})),e}return e=l,r=[{key:"readFromStream",value:(a=b(v().mark((function t(e,r){var n,o,i=this;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==e.length){t.next=2;break}return t.abrupt("return",0);case 2:if(!(n=this.s.read(e.length))){t.next=6;break}return e.set(n),t.abrupt("return",n.length);case 6:return o={buffer:e,mayBeLess:r,deferred:new s},this.deferred=o.deferred,this.s.once("readable",(function(){i.readDeferred(o)})),t.abrupt("return",o.deferred.promise);case 10:case"end":return t.stop()}}),t,this)}))),function(t,e){return a.apply(this,arguments)})},{key:"readDeferred",value:function(t){var e=this,r=this.s.read(t.buffer.length);r?(t.buffer.set(r),t.deferred.resolve(r.length),this.deferred=null):this.s.once("readable",(function(){e.readDeferred(t)}))}},{key:"reject",value:function(t){this.interrupted=!0,this.deferred&&(this.deferred.reject(t),this.deferred=null)}},{key:"abort",value:(i=b(v().mark((function t(){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.reject(new n.lc);case 1:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"close",value:(o=b(v().mark((function t(){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.abort());case 1:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})}],r&&x(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),l}(m);function O(t){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(t)}function j(){j=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new D(n||[]);return o(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var f="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var x={};u(x,a,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(L([])));k&&k!==r&&n.call(k,a)&&(x=k);var S=b.prototype=v.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function F(t,e){function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==O(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function _(e,r,n){var o=f;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var s=P(c,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=l(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function L(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(O(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,s,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(F.prototype),u(F.prototype,c,(function(){return this})),e.AsyncIterator=F,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new F(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),u(S,s,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=L,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function F(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function _(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){F(i,n,o,a,c,"next",t)}function c(t){F(i,n,o,a,c,"throw",t)}a(void 0)}))}}function P(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,A(n.key),n)}}function A(t){var e=function(t){if("object"!=O(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=O(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==O(e)?e:String(e)}function T(t,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},T(t,e)}function D(t){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},D(t)}function L(t){return L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},L(t)}function C(){C=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new A(n||[]);return o(a,"_invoke",{value:j(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var f="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var x={};u(x,a,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(T([])));k&&k!==r&&n.call(k,a)&&(x=k);var S=b.prototype=v.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==L(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function j(e,r,n){var o=f;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var s=F(c,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=l(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function F(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,F(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(L(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,s,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),u(S,s,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function I(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function z(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,N(n.key),n)}}function N(t){var e=function(t){if("object"!=L(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=L(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==L(e)?e:String(e)}function R(t,e){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},R(t,e)}function M(t){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},M(t)}var B=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&R(t,e)}(s,t);var e,r,n,o,i,a,c=(i=s,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=M(i);if(a){var r=M(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===L(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),c.apply(this,arguments)}return e=s,r=[{key:"readFromStream",value:(n=C().mark((function t(e,r){var n;return C().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==e.length){t.next=2;break}return t.abrupt("return",0);case 2:return t.next=4,this.reader.read(new Uint8Array(e.length),{min:r?void 0:e.length});case 4:if((n=t.sent).done&&(this.endOfStream=n.done),!n.value){t.next=9;break}return e.set(n.value),t.abrupt("return",n.value.length);case 9:return t.abrupt("return",0);case 10:case"end":return t.stop()}}),t,this)})),o=function(){var t=this,e=arguments;return new Promise((function(r,o){var i=n.apply(t,e);function a(t){I(i,r,o,a,c,"next",t)}function c(t){I(i,r,o,a,c,"throw",t)}a(void 0)}))},function(t,e){return o.apply(this,arguments)})}],r&&z(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),s}(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&T(t,e)}(s,t);var e,r,n,o,i,a,c=(i=s,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=D(i);if(a){var r=D(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===O(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(e=c.call(this)).reader=t,e}return e=s,r=[{key:"abort",value:(o=_(j().mark((function t(){return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.close());case 1:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"close",value:(n=_(j().mark((function t(){return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.reader.releaseLock();case 1:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})}],r&&P(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),s}(m));function U(t){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U(t)}function q(){q=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new A(n||[]);return o(a,"_invoke",{value:j(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var f="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var x={};u(x,a,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(T([])));k&&k!==r&&n.call(k,a)&&(x=k);var S=b.prototype=v.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==U(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function j(e,r,n){var o=f;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var s=F(c,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=l(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function F(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,F(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(U(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,s,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),u(S,s,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function G(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function $(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){G(i,n,o,a,c,"next",t)}function c(t){G(i,n,o,a,c,"throw",t)}a(void 0)}))}}function Z(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,V(n.key),n)}}function V(t){var e=function(t){if("object"!=U(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=U(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==U(e)?e:String(e)}function H(t,e){return H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},H(t,e)}function Y(t){return Y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Y(t)}var W=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&H(t,e)}(u,t);var e,r,o,i,a,c,s=(a=u,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Y(a);if(c){var r=Y(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===U(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(e=s.call(this)).reader=t,e.buffer=null,e}return e=u,r=[{key:"writeChunk",value:function(t,e){var r=Math.min(e.length,t.length);return t.set(e.subarray(0,r)),r<e.length?this.buffer=e.subarray(r):this.buffer=null,r}},{key:"readFromStream",value:(i=$(q().mark((function t(e,r){var o,i;return q().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==e.length){t.next=2;break}return t.abrupt("return",0);case 2:o=0,this.buffer&&(o+=this.writeChunk(e,this.buffer));case 4:if(!(o<e.length)||this.endOfStream){t.next=14;break}return t.next=7,this.reader.read();case 7:if(!(i=t.sent).done){t.next=11;break}return this.endOfStream=!0,t.abrupt("break",14);case 11:i.value&&(o+=this.writeChunk(e.subarray(o),i.value)),t.next=4;break;case 14:if(r||0!==o||!this.endOfStream){t.next=16;break}throw new n.d1;case 16:return t.abrupt("return",o);case 17:case"end":return t.stop()}}),t,this)}))),function(t,e){return i.apply(this,arguments)})},{key:"abort",value:function(){return this.interrupted=!0,this.reader.cancel()}},{key:"close",value:(o=$(q().mark((function t(){return q().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.abort();case 2:this.reader.releaseLock();case 3:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})}],r&&Z(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(m);function K(t){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K(t)}function Q(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function J(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Q(Object(r),!0).forEach((function(e){var n,o,i;n=t,o=e,i=r[e],(o=nt(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function X(){X=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new A(n||[]);return o(a,"_invoke",{value:j(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var f="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var x={};u(x,a,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(T([])));k&&k!==r&&n.call(k,a)&&(x=k);var S=b.prototype=v.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==K(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function j(e,r,n){var o=f;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var s=F(c,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=l(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function F(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,F(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(K(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,s,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),u(S,s,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function tt(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function et(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){tt(i,n,o,a,c,"next",t)}function c(t){tt(i,n,o,a,c,"throw",t)}a(void 0)}))}}function rt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,nt(n.key),n)}}function nt(t){var e=function(t){if("object"!=K(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=K(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==K(e)?e:String(e)}var ot=function(){function t(e){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.numBuffer=new Uint8Array(8),this.position=0,this.onClose=null==e?void 0:e.onClose,null!=e&&e.abortSignal&&e.abortSignal.addEventListener("abort",(function(){r.abort()}))}var e,r,o,i,a,c,s,u;return e=t,r=[{key:"readToken",value:(u=et(X().mark((function t(e){var r,o,i=arguments;return X().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:this.position,o=new Uint8Array(e.len),t.next=4,this.readBuffer(o,{position:r});case 4:if(!(t.sent<e.len)){t.next=7;break}throw new n.d1;case 7:return t.abrupt("return",e.get(o,0));case 8:case"end":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:"peekToken",value:(s=et(X().mark((function t(e){var r,o,i=arguments;return X().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:this.position,o=new Uint8Array(e.len),t.next=4,this.peekBuffer(o,{position:r});case 4:if(!(t.sent<e.len)){t.next=7;break}throw new n.d1;case 7:return t.abrupt("return",e.get(o,0));case 8:case"end":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"readNumber",value:(c=et(X().mark((function t(e){return X().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.readBuffer(this.numBuffer,{length:e.len});case 2:if(!(t.sent<e.len)){t.next=5;break}throw new n.d1;case 5:return t.abrupt("return",e.get(this.numBuffer,0));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"peekNumber",value:(a=et(X().mark((function t(e){return X().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.peekBuffer(this.numBuffer,{length:e.len});case 2:if(!(t.sent<e.len)){t.next=5;break}throw new n.d1;case 5:return t.abrupt("return",e.get(this.numBuffer,0));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return a.apply(this,arguments)})},{key:"ignore",value:(i=et(X().mark((function t(e){var r;return X().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e<0)){t.next=2;break}throw new RangeError("ignore length must be ≥ 0 bytes");case 2:if(void 0===this.fileInfo.size){t.next=7;break}if(r=this.fileInfo.size-this.position,!(e>r)){t.next=7;break}return this.position+=r,t.abrupt("return",r);case 7:return this.position+=e,t.abrupt("return",e);case 9:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"close",value:(o=et(X().mark((function t(){var e;return X().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.abort();case 2:return t.next=4,null===(e=this.onClose)||void 0===e?void 0:e.call(this);case 4:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"normalizeOptions",value:function(t,e){if(!this.supportsRandomAccess()&&e&&void 0!==e.position&&e.position<this.position)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");return J(J({},{mayBeLess:!1,offset:0,length:t.length,position:this.position}),e)}},{key:"abort",value:function(){return Promise.resolve()}}],r&&rt(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function it(t){return it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},it(t)}function at(){at=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new A(n||[]);return o(a,"_invoke",{value:j(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var f="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var x={};u(x,a,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(T([])));k&&k!==r&&n.call(k,a)&&(x=k);var S=b.prototype=v.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==it(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function j(e,r,n){var o=f;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var s=F(c,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=l(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function F(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,F(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(it(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,s,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),u(S,s,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function ct(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function st(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){ct(i,n,o,a,c,"next",t)}function c(t){ct(i,n,o,a,c,"throw",t)}a(void 0)}))}}function ut(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,pt(n.key),n)}}function pt(t){var e=function(t){if("object"!=it(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=it(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==it(e)?e:String(e)}function lt(t,e){return lt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},lt(t,e)}function ft(t){return ft=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ft(t)}var ht=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&lt(t,e)}(l,t);var e,r,o,i,a,c,s,u,p=(s=l,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=ft(s);if(u){var r=ft(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===it(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function l(t,e){var r,n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(n=p.call(this,e)).streamReader=t,n.fileInfo=null!==(r=null==e?void 0:e.fileInfo)&&void 0!==r?r:{},n}return e=l,r=[{key:"readBuffer",value:(c=st(at().mark((function t(e,r){var o,i,a;return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=this.normalizeOptions(e,r),!((i=o.position-this.position)>0)){t.next=6;break}return t.next=5,this.ignore(i);case 5:return t.abrupt("return",this.readBuffer(e,r));case 6:if(!(i<0)){t.next=8;break}throw new Error("`options.position` must be equal or greater than `tokenizer.position`");case 8:if(0!==o.length){t.next=10;break}return t.abrupt("return",0);case 10:return t.next=12,this.streamReader.read(e.subarray(0,o.length),o.mayBeLess);case 12:if(a=t.sent,this.position+=a,r&&r.mayBeLess||!(a<o.length)){t.next=16;break}throw new n.d1;case 16:return t.abrupt("return",a);case 17:case"end":return t.stop()}}),t,this)}))),function(t,e){return c.apply(this,arguments)})},{key:"peekBuffer",value:(a=st(at().mark((function t(e,r){var o,i,a,c;return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=this.normalizeOptions(e,r),i=0,!o.position){t.next=13;break}if(!((a=o.position-this.position)>0)){t.next=11;break}return c=new Uint8Array(o.length+a),t.next=8,this.peekBuffer(c,{mayBeLess:o.mayBeLess});case 8:return i=t.sent,e.set(c.subarray(a)),t.abrupt("return",i-a);case 11:if(!(a<0)){t.next=13;break}throw new Error("Cannot peek from a negative offset in a stream");case 13:if(!(o.length>0)){t.next=27;break}return t.prev=14,t.next=17,this.streamReader.peek(e.subarray(0,o.length),o.mayBeLess);case 17:i=t.sent,t.next=25;break;case 20:if(t.prev=20,t.t0=t.catch(14),!(null!=r&&r.mayBeLess&&t.t0 instanceof n.d1)){t.next=24;break}return t.abrupt("return",0);case 24:throw t.t0;case 25:if(o.mayBeLess||!(i<o.length)){t.next=27;break}throw new n.d1;case 27:return t.abrupt("return",i);case 28:case"end":return t.stop()}}),t,this,[[14,20]])}))),function(t,e){return a.apply(this,arguments)})},{key:"ignore",value:(i=st(at().mark((function t(e){var r,n,o,i,a;return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e<0)){t.next=2;break}throw new RangeError("ignore length must be ≥ 0 bytes");case 2:r=Math.min(256e3,e),n=new Uint8Array(r),o=0;case 5:if(!(o<e)){t.next=15;break}return i=e-o,t.next=9,this.readBuffer(n,{length:Math.min(r,i)});case 9:if(!((a=t.sent)<0)){t.next=12;break}return t.abrupt("return",a);case 12:o+=a,t.next=5;break;case 15:return t.abrupt("return",o);case 16:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"abort",value:function(){return this.streamReader.abort()}},{key:"close",value:(o=st(at().mark((function t(){return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.streamReader.close());case 1:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"supportsRandomAccess",value:function(){return!1}}],r&&ut(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),l}(ot);function dt(t){return dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dt(t)}function mt(){mt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new A(n||[]);return o(a,"_invoke",{value:j(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var f="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var x={};u(x,a,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(T([])));k&&k!==r&&n.call(k,a)&&(x=k);var S=b.prototype=v.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==dt(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function j(e,r,n){var o=f;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var s=F(c,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=l(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function F(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,F(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(dt(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,s,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),u(S,s,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function yt(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function vt(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){yt(i,n,o,a,c,"next",t)}function c(t){yt(i,n,o,a,c,"throw",t)}a(void 0)}))}}function gt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function bt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?gt(Object(r),!0).forEach((function(e){var n,o,i;n=t,o=e,i=r[e],(o=wt(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function xt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,wt(n.key),n)}}function wt(t){var e=function(t){if("object"!=dt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=dt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==dt(e)?e:String(e)}function kt(){return kt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Et(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},kt.apply(this,arguments)}function St(t,e){return St=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},St(t,e)}function Et(t){return Et=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Et(t)}var Ot=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&St(t,e)}(u,t);var e,r,o,i,a,c,s=(a=u,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Et(a);if(c){var r=Et(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===dt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(t,e){var r,n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(n=s.call(this,e)).uint8Array=t,n.fileInfo=bt(bt({},null!==(r=null==e?void 0:e.fileInfo)&&void 0!==r?r:{}),{size:t.length}),n}return e=u,r=[{key:"readBuffer",value:(i=vt(mt().mark((function t(e,r){var n;return mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return null!=r&&r.position&&(this.position=r.position),t.next=3,this.peekBuffer(e,r);case 3:return n=t.sent,this.position+=n,t.abrupt("return",n);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return i.apply(this,arguments)})},{key:"peekBuffer",value:(o=vt(mt().mark((function t(e,r){var o,i;return mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=this.normalizeOptions(e,r),i=Math.min(this.uint8Array.length-o.position,o.length),o.mayBeLess||!(i<o.length)){t.next=4;break}throw new n.d1;case 4:return e.set(this.uint8Array.subarray(o.position,o.position+i)),t.abrupt("return",i);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return o.apply(this,arguments)})},{key:"close",value:function(){return kt(Et(u.prototype),"close",this).call(this)}},{key:"supportsRandomAccess",value:function(){return!0}},{key:"setPosition",value:function(t){this.position=t}}],r&&xt(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(ot);function jt(t){return jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jt(t)}function Ft(){Ft=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new A(n||[]);return o(a,"_invoke",{value:j(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var f="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var x={};u(x,a,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(T([])));k&&k!==r&&n.call(k,a)&&(x=k);var S=b.prototype=v.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==jt(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function j(e,r,n){var o=f;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var s=F(c,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=l(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function F(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,F(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(jt(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,s,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),u(S,s,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function _t(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function Pt(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){_t(i,n,o,a,c,"next",t)}function c(t){_t(i,n,o,a,c,"throw",t)}a(void 0)}))}}function At(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Tt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?At(Object(r),!0).forEach((function(e){var n,o,i;n=t,o=e,i=r[e],(o=Lt(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):At(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Dt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Lt(n.key),n)}}function Lt(t){var e=function(t){if("object"!=jt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=jt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==jt(e)?e:String(e)}function Ct(){return Ct="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=zt(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},Ct.apply(this,arguments)}function It(t,e){return It=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},It(t,e)}function zt(t){return zt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},zt(t)}var Nt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&It(t,e)}(u,t);var e,r,o,i,a,c,s=(a=u,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=zt(a);if(c){var r=zt(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===jt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(t,e){var r,n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(n=s.call(this,e)).blob=t,n.fileInfo=Tt(Tt({},null!==(r=null==e?void 0:e.fileInfo)&&void 0!==r?r:{}),{size:t.size,mimeType:t.type}),n}return e=u,r=[{key:"readBuffer",value:(i=Pt(Ft().mark((function t(e,r){var n;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return null!=r&&r.position&&(this.position=r.position),t.next=3,this.peekBuffer(e,r);case 3:return n=t.sent,this.position+=n,t.abrupt("return",n);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return i.apply(this,arguments)})},{key:"peekBuffer",value:(o=Pt(Ft().mark((function t(e,r){var o,i,a;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=this.normalizeOptions(e,r),i=Math.min(this.blob.size-o.position,o.length),o.mayBeLess||!(i<o.length)){t.next=4;break}throw new n.d1;case 4:return t.next=6,this.blob.slice(o.position,o.position+i).arrayBuffer();case 6:return a=t.sent,e.set(new Uint8Array(a)),t.abrupt("return",i);case 9:case"end":return t.stop()}}),t,this)}))),function(t,e){return o.apply(this,arguments)})},{key:"close",value:function(){return Ct(zt(u.prototype),"close",this).call(this)}},{key:"supportsRandomAccess",value:function(){return!0}},{key:"setPosition",value:function(t){this.position=t}}],r&&Dt(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(ot);function Rt(t){return Rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rt(t)}function Mt(){Mt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new A(n||[]);return o(a,"_invoke",{value:j(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var f="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var x={};u(x,a,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(T([])));k&&k!==r&&n.call(k,a)&&(x=k);var S=b.prototype=v.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==Rt(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function j(e,r,n){var o=f;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var s=F(c,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=l(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function F(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,F(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Rt(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,s,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),u(S,s,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Bt(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function Ut(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Bt(i,n,o,a,c,"next",t)}function c(t){Bt(i,n,o,a,c,"throw",t)}a(void 0)}))}}function qt(t,e){var r=new E(t),n=null!=e?e:{},o=n.onClose;return n.onClose=Ut(Mt().mark((function t(){return Mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.close();case 2:if(!o){t.next=4;break}return t.abrupt("return",o());case 4:case"end":return t.stop()}}),t)}))),new ht(r,n)}function Gt(t,e){var r=function(t){try{var e=t.getReader({mode:"byob"});return e instanceof ReadableStreamDefaultReader?new W(e):new B(e)}catch(e){if(e instanceof TypeError)return new W(t.getReader());throw e}}(t),n=null!=e?e:{},o=n.onClose;return n.onClose=Ut(Mt().mark((function t(){return Mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.close();case 2:if(!o){t.next=4;break}return t.abrupt("return",o());case 4:case"end":return t.stop()}}),t)}))),new ht(r,n)}function $t(t,e){return new Ot(t,e)}function Zt(t,e){return new Nt(t,e)}}},n={};function o(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={id:t,loaded:!1,exports:{}};return r[t].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.amdO={},o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,o.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var i=Object.create(null);o.r(i);var a={};t=t||[null,e({}),e([]),e(e)];for(var c=2&n&&r;"object"==typeof c&&!~t.indexOf(c);c=e(c))Object.getOwnPropertyNames(c).forEach((t=>a[t]=()=>r[t]));return a.default=()=>r,o.d(i,a),i},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var i={};function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}o.d(i,{W3:()=>xt,Ew:()=>At,PK:()=>kt,Kj:()=>Je,Ay:()=>jt,Rl:()=>Ft,HD:()=>ie,FK:()=>oe,lX:()=>me,m5:()=>ce,Bj:()=>le,uK:()=>fe,Nx:()=>ae,Us:()=>de,uZ:()=>ue,X5:()=>se,wb:()=>he,zf:()=>pe,QS:()=>ve,ar:()=>ge,pg:()=>be,Pd:()=>we,Yq:()=>ke,zb:()=>xe,sz:()=>ye,WT:()=>Rt,XM:()=>Ut,rv:()=>Xe,p_:()=>pt,tm:()=>st,_7:()=>wt,hs:()=>ee,jC:()=>Yt.j,bK:()=>Xt,d1:()=>te.d,EK:()=>te.E,z:()=>_t,Hc:()=>It,VA:()=>Et,kX:()=>We,pv:()=>Ge,IO:()=>St,HQ:()=>Pt,s4:()=>Ot,QV:()=>lt,Dy:()=>Dt,rR:()=>Lt,IB:()=>Ct,yp:()=>zt,Lt:()=>Nt,Nu:()=>Tt,Ly:()=>yt.b64,SC:()=>yt.cleanUpCallbacks,Nr:()=>yt.extensionToMime,kJ:()=>yt.filterObject,vm:()=>yt.getMimetype,RK:()=>l,HF:()=>yt.getVersion,Ts:()=>tr,rB:()=>yt.isFacebook,Fr:()=>yt.isMobile,Fx:()=>yt.md5,ef:()=>yt.removeEmpty,T0:()=>yt.resolveCdnUrl,p0:()=>yt.resolveHost,rh:()=>yt.sanitizeName,pd:()=>Ee,NF:()=>yt.uniqueId,tp:()=>yt.uniqueTime,qB:()=>f,rE:()=>er});var c=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==a(t)&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,r){r.r(e),r.d(e,"loadModules",(function(){return s})),r.d(e,"loadModule",(function(){return u})),r.d(e,"registerModule",(function(){return p})),r.d(e,"loadCss",(function(){return l})),r.d(e,"FILESTACK_MODULES",(function(){return n}));var n,o={},i=function(){var t,e=(t="undefined"==typeof window?o:window).filestackInternals;return e||(e={modules:{}},t.filestackInternals=e),e.modules||(e.modules={}),e}(),a=i&&i.modules,c=function(t,e,r){t.detachEvent?t.detachEvent("onreadystatechange",e):t.removeEventListener(r,e,!1)},s=function(t){return Promise.all(t.map((function(t){var e=t.id,r=t.url;return u(e,r)}))).then((function(e){var r={};return e.forEach((function(e,n){var o=t[n];r[o.id]=e})),r}))},u=function(t,e){if("undefined"==typeof window)return Promise.reject(new Error("Load module is working only on browser env"));if(!t)throw new Error("Module id is required");var r=a[t="fs-loader-"+t];return r||(a[t]={},r=a[t]),r.instance?Promise.resolve(r.instance):r.promise?r.promise:r.promise=new Promise((function(r,n){var o=function e(o){if("load"===o.type||/^(complete|loaded)$/.test((o.currentTarget||o.srcElement).readyState)){var i=o.currentTarget||o.srcElement;c(i,e,"load"),c(i,n,"error"),setTimeout((function(){return r(a[t]?a[t].instance:void 0)}),10)}},i=document.createElement("script");i.id=t,!i.attachEvent||i.attachEvent.toString&&i.attachEvent.toString().indexOf("[native code")<0?(i.addEventListener("load",o,!1),i.addEventListener("onerror",n,!1)):i.attachEvent("onreadystatechange",o),i.setAttribute("crossorigin","anonymous"),i.setAttribute("charset","utf-8"),i.setAttribute("async","true"),i.src=e,document.body.appendChild(i)}))},p=function(t,e,r){if("undefined"!=typeof window){if(!t)throw new Error("Module id is required");if(!a)throw new Error("Loader is not initialized");a[t="fs-loader-"+t]&&(a[t]={instance:e,metadata:r})}},l=function(t){return null!==document.querySelector('link[href="'.concat(t,'"]'))?Promise.resolve():new Promise((function(e){var r=document.getElementsByTagName("head")[0],n=document.createElement("link");n.rel="stylesheet",n.href=t,n.addEventListener("load",(function t(){e(),n.removeEventListener("load",t)})),r.appendChild(n)}))};!function(t){t.FILESTACK_SDK="filestack-sdk",t.TRANSFORMS_UI="transforms-ui",t.PICKER="picker"}(n||(n={}))}]),s=(c.loadModules,c.loadModule),u=c.registerModule,p=(c.loadCss,c.FILESTACK_MODULES),l=function(t,e){throw new Error("getSecurity is only supported in nodejs")},f=function(t,e,r){throw new Error("validateWebhookSignature is only supported in nodejs")},h=o(1635),d=o(6274);const m=d;var y="8.55.0",v=globalThis;function g(t,e,r){var n=r||v,o=n.__SENTRY__=n.__SENTRY__||{},i=o[y]=o[y]||{};return i[t]||(i[t]=e())}function b(){return x(v),v}function x(t){var e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||y,e[y]=e[y]||{}}function w(){return Date.now()/1e3}var k=function(){var t=v.performance;if(!t||!t.now)return w;var e=Date.now()-t.now(),r=null==t.timeOrigin?e:t.timeOrigin;return function(){return(r+t.now())/1e3}}();function S(){var t=v,e=t.crypto||t.msCrypto,r=function(){return 16*Math.random()};try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(r=function(){var t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(function(t){return(t^(15&r())>>t/4).toString(16)}))}!function(){var t=v.performance;if(t&&t.now){var e=36e5,r=t.now(),n=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+r-n):e,i=o<e,a=t.timing&&t.timing.navigationStart,c="number"==typeof a?Math.abs(a+r-n):e;(i||c<e)&&(o<=c&&t.timeOrigin)}}();var E=Object.prototype.toString;function O(t){return function(t,e){return E.call(t)==="[object ".concat(e,"]")}(t,"Object")}var j="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,F=["debug","info","warn","error","log","assert","trace"],_={};function P(t){if(!("console"in v))return t();var e=v.console,r={},n=Object.keys(_);n.forEach((function(t){var n=_[t];r[t]=e[t],e[t]=n}));try{return t()}finally{n.forEach((function(t){e[t]=r[t]}))}}var A=g("logger",(function(){var t=!1,e={enable:function(){t=!0},disable:function(){t=!1},isEnabled:function(){return t}};return j?F.forEach((function(r){e[r]=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];t&&P((function(){var t;(t=v.console)[r].apply(t,["".concat("Sentry Logger ","[").concat(r,"]:")].concat(n))}))}})):F.forEach((function(t){e[t]=function(){}})),e}));function T(){return S()}function D(){return S().substring(16)}function L(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function C(t,e,r){var n;return n=function(t){if("object"!=I(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==I(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function I(t){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I(t)}function z(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(!e||"object"!==I(e)||r<=0)return e;if(t&&e&&0===Object.keys(e).length)return t;var n=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?L(Object(r),!0).forEach((function(e){C(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=z(n[o],e[o],r-1));return n}var N="_sentrySpan";function R(t,e){e?function(t,e,r){try{Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0})}catch(r){j&&A.log('Failed to add non-enumerable property "'.concat(e,'" to object'),t)}}(t,N,e):delete t[N]}function M(t){return t[N]}function B(t){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},B(t)}function U(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function q(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?U(Object(r),!0).forEach((function(e){G(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function G(t,e,r){return(e=Y(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $(t){return function(t){if(Array.isArray(t))return V(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Z(t)||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 Z(t,e){if(t){if("string"==typeof t)return V(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?V(t,e):void 0}}function V(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function H(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Y(n.key),n)}}function Y(t){var e=function(t){if("object"!=B(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=B(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==B(e)?e:String(e)}var W=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:T(),spanId:D()}}var e,r;return e=t,(r=[{key:"clone",value:function(){var e=new t;return e._breadcrumbs=$(this._breadcrumbs),e._tags=q({},this._tags),e._extra=q({},this._extra),e._contexts=q({},this._contexts),this._contexts.flags&&(e._contexts.flags={values:$(this._contexts.flags.values)}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=$(this._eventProcessors),e._requestSession=this._requestSession,e._attachments=$(this._attachments),e._sdkProcessingMetadata=q({},this._sdkProcessingMetadata),e._propagationContext=q({},this._propagationContext),e._client=this._client,e._lastEventId=this._lastEventId,R(e,M(this)),e}},{key:"setClient",value:function(t){this._client=t}},{key:"setLastEventId",value:function(t){this._lastEventId=t}},{key:"getClient",value:function(){return this._client}},{key:"lastEventId",value:function(){return this._lastEventId}},{key:"addScopeListener",value:function(t){this._scopeListeners.push(t)}},{key:"addEventProcessor",value:function(t){return this._eventProcessors.push(t),this}},{key:"setUser",value:function(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||k(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:S()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did="".concat(e.did)),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{var r=t.timestamp-t.started;t.duration=r>=0?r:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}(this._session,{user:t}),this._notifyScopeListeners(),this}},{key:"getUser",value:function(){return this._user}},{key:"getRequestSession",value:function(){return this._requestSession}},{key:"setRequestSession",value:function(t){return this._requestSession=t,this}},{key:"setTags",value:function(t){return this._tags=q(q({},this._tags),t),this._notifyScopeListeners(),this}},{key:"setTag",value:function(t,e){return this._tags=q(q({},this._tags),{},G({},t,e)),this._notifyScopeListeners(),this}},{key:"setExtras",value:function(t){return this._extra=q(q({},this._extra),t),this._notifyScopeListeners(),this}},{key:"setExtra",value:function(t,e){return this._extra=q(q({},this._extra),{},G({},t,e)),this._notifyScopeListeners(),this}},{key:"setFingerprint",value:function(t){return this._fingerprint=t,this._notifyScopeListeners(),this}},{key:"setLevel",value:function(t){return this._level=t,this._notifyScopeListeners(),this}},{key:"setTransactionName",value:function(t){return this._transactionName=t,this._notifyScopeListeners(),this}},{key:"setContext",value:function(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}},{key:"setSession",value:function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}},{key:"getSession",value:function(){return this._session}},{key:"update",value:function(t){if(!t)return this;var e,r,n="function"==typeof t?t(this):t,o=(e=n instanceof W?[n.getScopeData(),n.getRequestSession()]:O(n)?[t,t.requestSession]:[],r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);s=!0);}catch(t){u=!0,o=t}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,r)||Z(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1],c=i||{},s=c.tags,u=c.extra,p=c.user,l=c.contexts,f=c.level,h=c.fingerprint,d=void 0===h?[]:h,m=c.propagationContext;return this._tags=q(q({},this._tags),s),this._extra=q(q({},this._extra),u),this._contexts=q(q({},this._contexts),l),p&&Object.keys(p).length&&(this._user=p),f&&(this._level=f),d.length&&(this._fingerprint=d),m&&(this._propagationContext=m),a&&(this._requestSession=a),this}},{key:"clear",value:function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,R(this,void 0),this._attachments=[],this.setPropagationContext({traceId:T()}),this._notifyScopeListeners(),this}},{key:"addBreadcrumb",value:function(t,e){var r="number"==typeof e?e:100;if(r<=0)return this;var n=q({timestamp:w()},t);return this._breadcrumbs.push(n),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client&&this._client.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}},{key:"getLastBreadcrumb",value:function(){return this._breadcrumbs[this._breadcrumbs.length-1]}},{key:"clearBreadcrumbs",value:function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}},{key:"addAttachment",value:function(t){return this._attachments.push(t),this}},{key:"clearAttachments",value:function(){return this._attachments=[],this}},{key:"getScopeData",value:function(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:M(this)}}},{key:"setSDKProcessingMetadata",value:function(t){return this._sdkProcessingMetadata=z(this._sdkProcessingMetadata,t,2),this}},{key:"setPropagationContext",value:function(t){return this._propagationContext=q({spanId:D()},t),this}},{key:"getPropagationContext",value:function(){return this._propagationContext}},{key:"captureException",value:function(t,e){var r=e&&e.event_id?e.event_id:S();if(!this._client)return A.warn("No client configured on scope - will not capture exception!"),r;var n=new Error("Sentry syntheticException");return this._client.captureException(t,q(q({originalException:t,syntheticException:n},e),{},{event_id:r}),this),r}},{key:"captureMessage",value:function(t,e,r){var n=r&&r.event_id?r.event_id:S();if(!this._client)return A.warn("No client configured on scope - will not capture message!"),n;var o=new Error(t);return this._client.captureMessage(t,e,q(q({originalException:t,syntheticException:o},r),{},{event_id:n}),this),n}},{key:"captureEvent",value:function(t,e){var r=e&&e.event_id?e.event_id:S();return this._client?(this._client.captureEvent(t,q(q({},e),{},{event_id:r}),this),r):(A.warn("No client configured on scope - will not capture event!"),r)}},{key:"_notifyScopeListeners",value:function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(e){e(t)})),this._notifyingListeners=!1)}}])&&H(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function K(t){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K(t)}function Q(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,J(n.key),n)}}function J(t){var e=function(t){if("object"!=K(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=K(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==K(e)?e:String(e)}var X=function(){function t(e,r){var n,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=e||new W,o=r||new W,this._stack=[{scope:n}],this._isolationScope=o}var e,r;return e=t,(r=[{key:"withScope",value:function(t){var e,r,n=this,o=this._pushScope();try{e=t(o)}catch(t){throw this._popScope(),t}return r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then((function(t){return n._popScope(),t}),(function(t){throw n._popScope(),t})):(this._popScope(),e)}},{key:"getClient",value:function(){return this.getStackTop().client}},{key:"getScope",value:function(){return this.getStackTop().scope}},{key:"getIsolationScope",value:function(){return this._isolationScope}},{key:"getStackTop",value:function(){return this._stack[this._stack.length-1]}},{key:"_pushScope",value:function(){var t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}},{key:"_popScope",value:function(){return!(this._stack.length<=1||!this._stack.pop())}}])&&Q(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function tt(){var t=x(b());return t.stack=t.stack||new X(g("defaultCurrentScope",(function(){return new W})),g("defaultIsolationScope",(function(){return new W})))}function et(t){return tt().withScope(t)}function rt(t,e){var r=tt();return r.withScope((function(){return r.getStackTop().scope=t,e(t)}))}function nt(t){return tt().withScope((function(){return t(tt().getIsolationScope())}))}function ot(t){var e=x(t);return e.acs?e.acs:{withIsolationScope:nt,withScope:et,withSetScope:rt,withSetIsolationScope:function(t,e){return nt(e)},getCurrentScope:function(){return tt().getScope()},getIsolationScope:function(){return tt().getIsolationScope()}}}function it(){for(var t=ot(b()),e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(2===r.length){var o=r[0],i=r[1];return o?t.withSetScope(o,i):t.withScope(i)}return t.withScope(r[0])}function at(t){return at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},at(t)}function ct(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}var st,ut={urls:{processUrl:"https://process.filestackapi.com",fileApiUrl:"https://www.filestackapi.com/api/file",uploadApiUrl:"https://upload.filestackapi.com",cloudApiUrl:"https://cloud.filestackapi.com",cdnUrl:"https://cdn.filestackcontent.com",pickerUrl:"https://static.filestackapi.com/picker/".concat("4.5.2","/picker.js")}};!function(t){t.VALIDATION="validation",t.REQUEST="request",t.ABORTED="aborted",t.OTHER="other"}(st||(st={}));var pt=function(t){function e(r,n,o){var i=t.call(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i.details=n,i.type=o,i}return(0,h.C6)(e,t),e}(Error),lt={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Transformations",description:"Filestack transformations parameters",type:"object",additionalProperties:!1,properties:{flip:{type:"boolean",additionalProperties:!1},auto_image:{type:"boolean",additionalProperties:!1},no_metadata:{type:"boolean",additionalProperties:!1},compress:{additionalProperties:!1,oneOf:[{type:"boolean"},{type:"object",properties:{metadata:{type:"boolean",default:!1}}}]},flop:{type:"boolean",additionalProperties:!1},enhance:{default:!0,oneOf:[{type:"boolean"},{type:"object",additionalProperties:!1,properties:{preset:{type:"string",enum:["auto","vivid","beautify","beautify_plus","fix_dark","fix_noise","fix_tint","outdoor","fireworks"]}}}]},redeye:{type:"boolean",additionalProperties:!1},monochrome:{type:"boolean",additionalProperties:!1},negative:{type:"boolean",additionalProperties:!1},tags:{type:"boolean",additionalProperties:!1},sfw:{type:"boolean",additionalProperties:!1},imagesize:{type:"boolean",additionalProperties:!1},smart_crop:{width:{type:"integer",minimum:0,maximum:1e4},height:{type:"integer",minimum:0,maximum:1e4},mode:{type:"string",default:"auto",enum:["face","auto"]}},animate:{type:"object",properties:{delay:{type:"integer",minimum:0,maximum:1e4,default:1e3},loop:{type:"integer",minimum:0,maximum:1e3,default:0},width:{type:"integer",minimum:1,maximum:1800},height:{type:"integer",minimum:1,maximum:1800},fit:{type:"string",default:"clip",enum:["clip","scale","crop"]},background:{$ref:"colorDef",default:"transparent"},align:{$ref:"positionDef",default:"center"}}},metadata:{type:"object",params:{type:"array",items:{type:"string",enum:["filename","mimetype","size","width","height","writeable","path","container","cloud","exif","source_url","md5","sha256","sha1","sha512"]},minItems:0,uniqueItems:!0,additionalItems:!1},additionalProperties:!1},resize:{type:"object",properties:{width:{type:"number",minimum:0,maximum:1e4},height:{type:"number",minimum:0,maximum:1e4},fit:{type:"string",enum:["clip","crop","scale","max"],default:"clip"},align:{$ref:"positionDef",default:"center"}},additionalProperties:!1,anyOf:[{required:["width"]},{required:["height"]}]},crop:{type:"object",properties:{dim:{type:"array",additionalItems:!1,minItems:4,items:[{type:"integer",minimum:0,maximum:1e5},{type:"integer",minimum:0,maximum:1e5},{type:"integer",minimum:1,maximum:1e5},{type:"integer",minimum:1,maximum:1e5}]}},required:["dim"]},rotate:{type:"object",properties:{deg:{oneOf:[{type:"string",enum:["exif"]},{type:"number",minimum:0,maximum:359}]},exif:{type:"boolean"},background:{$ref:"colorDef",default:"FFFFFFFF"}},additionalProperties:!1},detect_faces:{oneOf:[{type:"boolean"},{type:"object",properties:{maxsize:{type:"number",minimum:0,maximum:1e4,default:.35},minsize:{type:"number",minimum:0,maximum:1e4,default:.35},export:{type:"boolean"},color:{$ref:"colorDef",default:"000000FF"}},additionalProperties:!1}]},crop_faces:{oneOf:[{type:"boolean"},{type:"object",properties:{faces:{default:1,$ref:"facesDef"},width:{type:"number",minimum:1,maximum:1e4},height:{type:"number",minimum:1,maximum:1e4},maxsize:{type:"number",minimum:0,maximum:1e4,default:.35},minsize:{type:"number",minimum:0,maximum:1e4,default:.35},buffer:{type:"integer",minimum:0,maximum:1e4},mode:{type:"string",enum:["crop","thumb","fill"],default:"thumb"}},additionalProperties:!1}]},pixelate_faces:{oneOf:[{type:"boolean"},{type:"object",properties:{faces:{$ref:"facesDef",default:"all"},maxsize:{type:"number",minimum:0,maximum:1e4,default:.35},minsize:{type:"number",minimum:0,maximum:1e4,default:.35},buffer:{type:"integer",minimum:0,maximum:1e4},amount:{type:"integer",minimum:2,maximum:100,default:10},blur:{type:"number",minimum:0,maximum:20,default:4},type:{type:"string",enum:["rect","oval"],default:"rect"}},additionalProperties:!1}]},blur_faces:{oneOf:[{type:"boolean"},{type:"object",properties:{faces:{$ref:"facesDef",default:"all"},maxsize:{type:"number",minimum:0,maximum:1e4,default:.35},minsize:{type:"number",minimum:0,maximum:1e4,default:.35},buffer:{type:"integer",minimum:0,maximum:1e4},amount:{type:"number",minimum:0,maximum:10,default:10},blur:{type:"number",minimum:0,maximum:20,default:4},type:{type:"string",enum:["rect","oval"],default:"rect"}},additionalProperties:!1}]},rounded_corners:{oneOf:[{type:"boolean"},{type:"object",properties:{radius:{oneOf:[{type:"integer",minimum:1,maximum:1e4},{type:"string",enum:["max"]}]},blur:{type:"number",minimum:0,maximum:20,default:.3},background:{$ref:"colorDef"}},additionalProperties:!1}]},vignette:{oneOf:[{type:"boolean"},{type:"object",properties:{amount:{type:"integer",minimum:0,maximum:100,default:20},blurmode:{type:"string",enum:["gaussian","linear"],default:"gaussian"},background:{$ref:"colorDef"}},additionalProperties:!1}]},polaroid:{oneOf:[{type:"boolean"},{type:"object",properties:{rotate:{type:"integer",minimum:0,maximum:359},color:{$ref:"colorDef",default:"snow"},background:{$ref:"colorDef"}},additionalProperties:!1}]},torn_edges:{oneOf:[{type:"boolean"},{type:"object",properties:{spread:{type:"array",additionalItems:!1,minItems:2,items:[{type:"integer",minimum:1,maximum:1e4,default:1},{type:"integer",minimum:1,maximum:1e4,default:10}]},background:{$ref:"colorDef"}},additionalProperties:!1}]},shadow:{oneOf:[{type:"boolean"},{type:"object",properties:{blur:{type:"number",minimum:0,maximum:20,default:100},opacity:{type:"integer",minimum:0,maximum:100,default:60},vector:{type:"array",additionalItems:!1,minItems:2,items:[{type:"integer",minimum:-1e3,maximum:1e3,default:4},{type:"integer",minimum:-1e3,maximum:1e3,default:4}]},color:{$ref:"colorDef"},background:{$ref:"colorDef"}},additionalProperties:!1}]},circle:{oneOf:[{type:"boolean"},{type:"object",properties:{background:{$ref:"colorDef"}},additionalProperties:!1}]},border:{oneOf:[{type:"boolean"},{type:"object",properties:{color:{$ref:"colorDef"},background:{$ref:"colorDef"},width:{type:"integer",minimum:0,maximum:1e3}},additionalProperties:!1}]},sharpen:{oneOf:[{type:"boolean"},{type:"object",properties:{amount:{type:"integer",minimum:0,maximum:20,default:2}},additionalProperties:!1}]},blur:{oneOf:[{type:"boolean"},{type:"object",properties:{amount:{type:"integer",minimum:0,maximum:20,default:2}},additionalProperties:!1}]},blackwhite:{oneOf:[{type:"boolean"},{type:"object",properties:{threshold:{type:"integer",minimum:0,maximum:100,default:50}},additionalProperties:!1}]},sepia:{oneOf:[{type:"boolean"},{type:"object",properties:{tone:{type:"integer",minimum:0,maximum:100,default:80}},additionalProperties:!1}]},pixelate:{oneOf:[{type:"boolean"},{type:"object",properties:{amount:{type:"integer",minimum:2,maximum:100,default:2}},additionalProperties:!1}]},oil_paint:{oneOf:[{type:"boolean"},{type:"object",properties:{amount:{type:"integer",minimum:2,maximum:100,default:2}},additionalProperties:!1}]},modulate:{oneOf:[{type:"boolean"},{type:"object",properties:{brightness:{type:"integer",minimum:0,maximum:1e4,default:100},saturation:{type:"integer",minimum:0,maximum:1e4,default:100},hue:{type:"integer",minimum:0,maximum:359,default:0}},additionalProperties:!1}]},ascii:{oneOf:[{type:"boolean"},{type:"object",properties:{foreground:{$ref:"colorDef",default:"000000FF"},background:{$ref:"colorDef",default:"FFFFFFFF"},colored:{type:"boolean",default:!1},size:{type:"integer",minimum:10,maximum:100,default:100},reverse:{type:"boolean",default:!1}},additionalProperties:!1}]},collage:{type:"object",properties:{files:{type:"array",minItems:1,items:[{type:"string"}]},margin:{type:"integer",minimum:1,maximum:100,default:10},width:{type:"integer",minimum:0,maximum:1e4},height:{type:"integer",minimum:0,maximum:1e4},color:{$ref:"colorDef",default:"FFFFFFFF"},fit:{type:"string",enum:["auto","crop"]},autorotate:{type:"boolean",default:!1}},required:["width","height","files"],additionalProperties:!1},urlscreenshot:{oneOf:[{type:"boolean"},{type:"object",properties:{agent:{type:"string",enum:["desktop","mobile"],default:"desktop"},width:{type:"integer",minimum:1,maximum:1920,default:1024},height:{type:"integer",minimum:1,maximum:8e3,default:768},mode:{type:"string",enum:["all","window"],default:"all"},delay:{type:"integer",minimum:0,maximum:2e4,default:1e3},orientation:{type:"string",enum:["portrait","landscape"],default:"portrait"},device:{type:"string",default:""}},additionalProperties:!1}]},upscale:{oneOf:[{type:"boolean"},{type:"object",properties:{noise:{type:"string",enum:["none","low","medium","high"],default:"none"},upscale:{type:"boolean",default:!0},style:{type:"string",enum:["artwork","photo"],default:"photo"}},additionalProperties:!1}]},output:{type:"object",additionalProperties:!1,properties:{format:{type:"string",enum:["doc","docx","html","jpg","odp","ods","odt","pjpg","pdf","png","ppt","pptx","svg","txt","webp","xls","xlsx"]},page:{type:"integer",minimum:1,maximum:99999},density:{type:"integer",minimum:1,maximum:500},compress:{type:"boolean"},quality:{oneOf:[{type:"string",enum:["input"]},{type:"integer",minimum:1,maximum:100,default:95}]},secure:{type:"boolean",default:!1},docinfo:{type:"boolean",default:!1},strip:{type:"boolean",default:!1},colorspace:{type:"string",enum:["rgb","cmyk","input"],default:"rgb"},background:{$ref:"colorDef"},pageformat:{type:"string",enum:["a2","a3","a4","a5","b4","b5","letter","legal","tabloid"]},pageorientation:{type:"string",enum:["landscape","portrait"]}}},pjpg:{oneOf:[{type:"boolean"},{type:"object",additionalProperties:!1,properties:{quality:{type:"integer",minimum:0,maximum:100},metadata:{type:"boolean",default:!1}}}]},quality:{type:"object",additionalProperties:!1,properties:{value:{type:"integer",minimum:1,maximum:100}}},cache:{oneOf:[{type:"boolean"},{type:"object",properties:{expiry:{type:"integer"}}}]},video_convert:{type:"object",additionalProperties:!1,properties:{width:{type:"integer",minimum:1,maximum:4096},height:{type:"integer",minimum:1,maximum:4096},preset:{type:"string"},force:{type:"boolean"},title:{type:"string"},extname:{type:"string"},upscale:{type:"boolean"},aspect_mode:{type:"string",enum:["letterbox","pad","crop","preserve","constrain"],default:"letterbox"},audio_sample_rate:{type:"integer",minimum:1,maximum:99999},two_pass:{type:"boolean"},video_bitrate:{type:"integer",minimum:1,maximum:5e3},fps:{type:"integer",minimum:1,maximum:300},keyframe_interval:{type:"integer",minimum:250,maximum:250},audio_bitrate:{type:"integer",minimum:1,maximum:999},audio_codec:{type:"string"},audio_channels:{type:"integer",minimum:1,maximum:12},clip_length:{type:"string",pattern:"^([0-1]?\\d|2[0-3])(?::([0-5]?\\d))?(?::([0-5]?\\d))?$"},clip_offset:{type:"string",pattern:"^([0-1]?\\d|2[0-3])(?::([0-5]?\\d))?(?::([0-5]?\\d))?$"},watermark_url:{type:"string"},watermark_top:{type:"integer",minimum:0,maximum:9999},watermark_right:{type:"integer",minimum:0,maximum:9999},watermark_bottom:{type:"integer",minimum:0,maximum:9999},watermark_left:{type:"integer",minimum:0,maximum:9999},frame_count:{type:"integer",minimum:1,maximum:1,default:1},filename:{type:"string"},location:{$ref:"locationsDef"},path:{type:"string"},container:{type:"string"},access:{type:"string",enum:["public","private"],default:"public"}}},store:{oneOf:[{type:"boolean"},{type:"object",additionalProperties:!1,properties:{filename:{type:"string"},location:{$ref:"locationsDef"},path:{type:"string"},container:{type:"string"},region:{$ref:"regionsDef"},access:{type:"string",enum:["public","private"],default:"private"},base64decode:{type:"boolean"},workflows:{$ref:"workflowsDef"}}}]},watermark:{type:"object",properties:{file:{type:"string"},size:{type:"number",minimum:0,maximum:500},position:{$ref:"positionDef"}},required:["file"],additionalProperties:!1},partial_blur:{type:"object",properties:{objects:{$ref:"objectsDef"},amount:{type:"number",minimum:0,maximum:20},blur:{type:"number",minimum:0,maximum:20},type:{type:"string",enum:["rect","oval"]}},required:["objects"]},partial_pixelate:{type:"object",properties:{objects:{$ref:"objectsDef"},amount:{type:"number",minimum:2,maximum:100},blur:{type:"number",minimum:0,maximum:20},type:{type:"string",enum:["rect","oval"]}},required:["objects"]},security:{type:"object",additionalProperties:!1,properties:{policy:{type:"string"},signature:{type:"string"}},required:["policy","signature"]},pdfinfo:{oneOf:[{type:"boolean"},{type:"object",properties:{colorinfo:{type:"boolean"}}}]},pdfconvert:{type:"object",additionalProperties:!1,properties:{pageorientation:{type:"string",enum:["portrait","landscape"]},pageformat:{$ref:"pageFormatDef"},pages:{$ref:"pageRangeDef"}},anyOf:[{required:["pageorientation"]},{required:["pageformat"]},{required:["pages"]}]},fallback:{type:"object",additionalProperties:!1,properties:{handle:{type:"string"},cache:{type:"integer",minimum:1,maximum:31536e3}},required:["handle"]},zip:{type:"string"},minify_css:{type:"object",additionalProperties:!1,properties:{gzip:{type:"boolean"},level:{type:"number",enum:[1,2]}}},minify_js:{type:"object",additionalProperties:!1,properties:{gzip:{type:"boolean"},use_babel_polyfill:{type:"boolean"},keep_fn_name:{type:"boolean"},keep_class_name:{type:"boolean"},mangle:{type:"boolean"},merge_vars:{type:"boolean"},remove_console:{type:"boolean"},remove_undefined:{type:"boolean"},targets:{type:"string"}}}}},ft=o(4282),ht={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack",description:"Filestack common definitions",type:"object",additionalProperties:!1,definitions:{workflowsDef:{id:"/workflowsDef",type:"array",additionalItems:!1,minItems:1,maxItems:20,items:[{oneOf:[{type:"string"},{type:"object",additionalProperties:!1,properties:{id:{type:"string"}}}]}]},securityCallDef:{id:"/securityCallDef",oneOf:[{additionalProperties:!1,type:"string",enum:["pick","read","stat","write","writeUrl","store","convert","remove","exif","runWorkflow"]},{type:"array",additionalProperties:!1,items:[{minItems:1,maxItems:10,type:"string",additionalProperties:!1,enum:["pick","read","stat","write","writeUrl","store","convert","remove","exif","runWorkflow"]}]}]},regionsDef:{id:"/regionsDef",type:"string"},locationsDef:{id:"/locationsDef",type:"string",enum:["s3","S3","rackspace","gcs","azure","dropbox"]},colorDef:{id:"colorDef",oneOf:[{type:"string",pattern:"^([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$"},{type:"string",enum:["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fractal","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray0","gray1","gray2","gray3","gray4","gray5","gray6","gray7","gray8","gray9","gray10","gray11","gray12","gray13","gray14","gray15","gray16","gray17","gray18","gray19","gray20","gray21","gray22","gray23","gray24","gray25","gray26","gray27","gray28","gray29","gray30","gray31","gray32","gray33","gray34","gray35","gray36","gray37","gray38","gray39","gray40","gray41","gray42","gray43","gray44","gray45","gray46","gray47","gray48","gray49","gray50","gray51","gray52","gray53","gray54","gray55","gray56","gray57","gray58","gray59","gray60","gray61","gray62","gray63","gray64","gray65","gray66","gray67","gray68","gray69","gray70","gray71","gray72","gray73","gray74","gray75","gray76","gray77","gray78","gray79","gray80","gray81","gray82","gray83","gray84","gray85","gray86","gray87","gray88","gray89","gray90","gray91","gray92","gray93","gray94","gray95","gray96","gray97","gray98","gray99","gray100","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","none","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen","transparent"]}]},pageFormatDef:{id:"/pageFormatDef",type:"string",enum:["a2","a3","a4","a5","b4","b5","letter","legal","tabloid"]},pageRangeDef:{id:"/pageRangeDef",type:"array",uniqueItems:!0,items:[{oneOf:[{type:"integer",minimum:1},{type:"string",pattern:"^(\\d+(?:-\\d+)?)$|^(-\\d+)$|^(\\d+-)$",errorMessage:'Param should be provided in one of the following formats: "1,2,3,5", "1-3", "1-", "-2" '}]}]},facesDef:{id:"/facesDef",oneOf:[{type:"string",enum:["all"]},{type:"integer",minimum:1,maximum:1e3},{type:"array",uniqueItems:!0,items:[{type:"integer",minimum:1,maximum:1e3}]}]},objectsDef:{id:"/objectsDef",type:"array",minItems:1,maxItems:50,items:[{type:"array",additionalItems:!1,minItems:4,items:[{type:"integer",minimum:0,maximum:1e4},{type:"integer",minimum:0,maximum:1e4},{type:"integer",minimum:1,maximum:1e4},{type:"integer",minimum:1,maximum:1e4}]}]},positionDef:{id:"/positionDef",default:["middle","center"],oneOf:[{type:"string",enum:["top","middle","bottom","left","center","right","faces"]},{type:"array",uniqueItems:!0,additionalItems:!1,minItems:2,maxItems:2,default:["middle","center"],items:[{type:"string",enum:["top","middle","bottom"]},{type:"string",enum:["left","center","right"]}]}]}}},dt=new ft.Validator;ft.Validator.prototype.customFormats.callback=function(t){return"function"==typeof t},ft.Validator.prototype.customFormats.HTMLContainer=function(t){return"string"==typeof t||t.toString&&t.toString().indexOf("HTML")>-1};var mt=function(t){return function(e){return dt.addSchema(ht),dt.validate(e,t)}},yt=o(6947),vt=o(1227),gt=o.n(vt);function bt(t){return bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bt(t)}var xt,wt,kt,St,Et,Ot,jt,Ft,_t,Pt,At,Tt,Dt,Lt,Ct,It,zt,Nt,Rt,Mt=gt()("fs:filelink");!function(t){t.left="left",t.right="right",t.center="center",t.bottom="bottom",t.top="top",t.faces="faces",t.middle="middle"}(xt||(xt={})),function(t){t.clip="clip",t.crop="crop",t.scale="scale",t.max="max"}(wt||(wt={})),function(t){t.linear="linear",t.gaussian="gaussian"}(kt||(kt={})),function(t){t.oval="oval",t.rect="rect"}(St||(St={})),function(t){t.none="none",t.low="low",t.medium="medium",t.high="high"}(Et||(Et={})),function(t){t.artwork="artwork",t.photo="photo"}(Ot||(Ot={})),function(t){t.RGB="RGB",t.CMYK="CMYK",t.Input="Input"}(jt||(jt={})),function(t){t.thumb="thumb",t.crop="crop",t.fill="fill"}(Ft||(Ft={})),function(t){t.top="top",t.middle="middle",t.bottom="bottom",t.left="left",t.center="center",t.right="right"}(_t||(_t={})),function(t){t.face="face",t.auto="auto"}(Pt||(Pt={})),function(t){t.libmp3lame="libmp3lame",t.libvorbis="libvorbis",t.libfdk_aac="libfdk_aac",t.dib_ac3="dib_ac3",t.pcm_s16le="pcm_s16le",t.mp2="mp2",t.ac3="ac3",t.eac3="eac3"}(At||(At={})),function(t){t.h264="h264",t.h264_hi="h264.hi",t.webm="webm",t["webm-hi"]="webm.hi",t.ogg="ogg",t["ogg-hi"]="ogg.hi",t["hls-variant"]="hls.variant",t.mp3="mp3",t.oga="oga",t.m4a="m4a",t.aac="aac",t.hls="hls.variant.audio"}(Tt||(Tt={})),function(t){t.desktop="desktop",t.mobile="mobile"}(Dt||(Dt={})),function(t){t.all="all",t.window="window"}(Lt||(Lt={})),function(t){t.portrait="portrait",t.landscape="landscape"}(Ct||(Ct={})),function(t){t.s3="s3",t.azure="azure",t.gcs="gcs",t.rackspace="rackspace",t.dropbox="dropbox"}(It||(It={})),function(t){t.private="private",t.public="public"}(zt||(zt={})),function(t){t.preserve="preserve",t.constrain="constrain",t.letterbox="letterbox",t.pad="pad",t.crop="crop"}(Nt||(Nt={})),function(t){t.auto="auto",t.vivid="vivid",t.beautify="beautify",t.beautifyPlus="beautify_plus",t.fixDark="fix_dark",t.fixNoise="fix_noise",t.fixTint="fix_tint",t.outdor="outdoor",t.fireworks="fireworks"}(Rt||(Rt={}));var Bt=/^[\w\-]{20}|wf:\/\/[\w\-\/]{106}$/,Ut=function(){function t(t,e){this.transforms=[],this.b64=!1,this.useValidator=!0,this.arrayToObject=function(t,e,r){return void 0===t&&(t=[]),t.reduce((function(t,n){return t[n[e]]=n[r],t}),{})},this.apikey=e,this.setSource(t)}return t.prototype.setBase64=function(t){return this.b64=t,this},t.prototype.setUseValidator=function(t){return this.useValidator=t,this},t.prototype.setCname=function(t){return this.cname=t,this},t.prototype.setCustomDomain=function(t){return this.customDomain=t,this},t.prototype.setSource=function(t){this.source=t;var e=this.isSourceExternal();if(Mt("Source ".concat(t," - isExternal? ").concat(e)),e&&!this.apikey)throw new pt("External sources requires apikey to handle transforms");if(!e&&"string"==typeof this.source&&!Bt.test(this.source)&&-1===this.source.indexOf("filestackcontent"))throw new pt("Invalid filestack source provided")},t.prototype.getValidationSchema=function(){return lt},t.prototype.getTransformations=function(){return this.useValidator&&this.validateTasks(this.transforms),this.transforms},t.prototype.toString=function(){var t=[];t.push(this.getCdnHost()),this.useValidator&&this.validateTasks(this.transforms),this.apikey&&t.push(this.apikey);var e=this.generateTransformString(),r=this.source;return this.b64?(this.transforms.length>0&&(e="b64/".concat((0,yt.b64)(JSON.stringify(this.transforms),!0))),Array.isArray(r)&&(r=this.arrayToString(r)),r="b64://".concat((0,yt.b64)(r,!0))):r=Array.isArray(r)?this.arrayToString(r):this.escapeValue(r),e.length&&t.push(e),t.push(r),t.join("/")},t.prototype.addTask=function(t,e){if(gt()("Add task ".concat(t," with params %O"),e),"cache"!==t&&"boolean"==typeof e){if(!e)return this;e=void 0}else"object"!==bt(e)||Object.keys(e).length||(e=void 0);return this.transforms.push({name:t,params:e}),this},t.prototype.getTasks=function(){return this.transforms},t.prototype.reset=function(){return this.transforms=[],this},t.prototype.autoImage=function(){return this.addTask("auto_image",!0)},t.prototype.flip=function(){return this.addTask("flip",!0)},t.prototype.flop=function(){return this.addTask("flop",!0)},t.prototype.imagesize=function(){return this.addTask("imagesize",!0)},t.prototype.noMetadata=function(){return this.addTask("no_metadata",!0)},t.prototype.pjpg=function(t){return this.addTask("pjpg",t)},t.prototype.smartCrop=function(t){return this.addTask("smart_crop",t)},t.prototype.watermark=function(t){return this.addTask("watermark",t)},t.prototype.enhance=function(t){return this.addTask("enhance",t||!0)},t.prototype.redeye=function(){return this.addTask("redeye",!0)},t.prototype.monochrome=function(){return this.addTask("monochrome",!0)},t.prototype.compress=function(t){return this.addTask("compress",t||!0)},t.prototype.negative=function(){return this.addTask("negative",!0)},t.prototype.tags=function(){return this.addTask("tags",!0)},t.prototype.sfw=function(){return this.addTask("sfw",!0)},t.prototype.animate=function(t){return this.addTask("animate",t)},t.prototype.store=function(t){return this.addTask("store",t)},t.prototype.cache=function(t){return this.addTask("cache",t)},t.prototype.resize=function(t){return this.addTask("resize",t)},t.prototype.crop=function(t){return this.addTask("crop",t)},t.prototype.rotate=function(t){return this.addTask("rotate",t)},t.prototype.detectFaces=function(t){return this.addTask("detect_faces",t)},t.prototype.cropFaces=function(t){return this.addTask("crop_faces",t)},t.prototype.pixelateFaces=function(t){return this.addTask("pixelate_faces",t)},t.prototype.blurFaces=function(t){return this.addTask("blur_faces",t)},t.prototype.roundedCorners=function(t){return this.addTask("rounded_corners",t)},t.prototype.polaroid=function(t){return this.addTask("polaroid",t)},t.prototype.vignette=function(t){return this.addTask("vignette",t)},t.prototype.tornEdges=function(t){return this.addTask("torn_edges",t)},t.prototype.shadow=function(t){return this.addTask("shadow",t)},t.prototype.circle=function(t){return this.addTask("circle",t)},t.prototype.border=function(t){return this.addTask("border",t)},t.prototype.sharpen=function(t){return this.addTask("sharpen",t)},t.prototype.blur=function(t){return this.addTask("blur",t)},t.prototype.blackwhite=function(t){return this.addTask("blackwhite",t)},t.prototype.sepia=function(t){return this.addTask("sepia",t)},t.prototype.pixelate=function(t){return this.addTask("pixelate",t)},t.prototype.oilPaint=function(t){return this.addTask("oil_paint",t)},t.prototype.modulate=function(t){return this.addTask("modulate",t)},t.prototype.partialPixelate=function(t){return this.addTask("partial_pixelate",t)},t.prototype.partialBlur=function(t){return this.addTask("partial_blur",t)},t.prototype.collage=function(t){return this.addTask("collage",t)},t.prototype.upscale=function(t){return this.addTask("upscale",t)},t.prototype.ascii=function(t){return this.addTask("ascii",t)},t.prototype.quality=function(t){return this.addTask("quality",t)},t.prototype.security=function(t){return this.addTask("security",t)},t.prototype.output=function(t){return this.addTask("output",t)},t.prototype.videoConvert=function(t){return this.addTask("video_convert",t)},t.prototype.URLScreenshot=function(t){return this.addTask("urlscreenshot",t)},t.prototype.PDFInfo=function(t){return this.addTask("pdfinfo",t)},t.prototype.PDFConvert=function(t){return this.addTask("pdfconvert",t)},t.prototype.fallback=function(t){return this.addTask("fallback",t)},t.prototype.zip=function(){return this.addTask("zip",!0)},t.prototype.minifyCss=function(t){return this.addTask("minify_css",t)},t.prototype.minifyJs=function(t){return this.addTask("minify_js",t)},t.prototype.isSourceExternal=function(){if(!this.source)throw new pt("Source not Set");var t=Array.isArray(this.source)?this.source:[this.source];for(var e in t)if(t.hasOwnProperty(e)&&(0===t[e].indexOf("src:")||0===t[e].indexOf("http")&&-1===t[e].indexOf("filestackcontent")))return!0;return!1},t.prototype.validateTasks=function(e){var r=t.validator(this.arrayToObject(e,"name","params"));if(r.errors.length)throw new pt("Params validation error",r.errors,st.VALIDATION)},t.prototype.getCdnHost=function(){var t=Object.assign({},ut.urls);return this.customDomain&&(t.cdnUrl=this.customDomain),(t=(0,yt.resolveHost)(t,this.cname)).cdnUrl},t.prototype.generateTransformString=function(){var t=this,e=[];return this.transforms.forEach((function(r){e.push(t.optionToString(r.name,r.params))})),e.join("/")},t.prototype.optionToString=function(t,e){var r=this,n=[];return void 0===e?t:"boolean"==typeof e?e||"cache"!==t?t:"cache=false":(Object.keys(e).forEach((function(t){Array.isArray(e[t])?n.push("".concat(t,":").concat(r.arrayToString(e[t]))):n.push("".concat(t,":").concat(r.escapeValue(e[t])))})),"".concat(t,"=").concat(n.join(",")))},t.prototype.escapeValue=function(t){return"string"!=typeof t?t:t.indexOf("/")>-1||t.indexOf(",")>-1?'"'.concat(t,'"'):t},t.prototype.arrayToString=function(t){var e=this,r=t.map((function(t){return Array.isArray(t)?e.arrayToString(t):e.escapeValue(t)}));return"[".concat(r,"]")},t.validator=mt(lt),t}(),qt={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Store",description:"Filestack Store Options",type:"object",additionalProperties:!1,properties:{filename:{oneOf:[{type:"string"},{format:"callback"}]},mimetype:{type:["string","null"],maxLength:255},altText:{type:["string","null"],maxLength:125},location:{$ref:"locationsDef"},path:{type:"string"},container:{type:"string"},region:{$ref:"regionsDef"},access:{type:"string",enum:["public","private"],default:"private"},base64decode:{type:"boolean"},workflows:{$ref:"workflowsDef"},disableStorageKey:{type:"boolean"},tags:{type:"object",additionalProperties:{type:"string"}},sanitizer:{oneOf:[{type:"boolean"},{type:"object",additionalProperties:!1,properties:{exclude:{type:"array",items:[{type:"string"}]},replacement:{type:"string"}}}]}}},Gt={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Preview",description:"Filestack Preview Options",type:"object",additionalProperties:!1,properties:{id:{type:"string"},css:{type:"string"}}},$t={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Upload",description:"Filestack Upload Options",type:"object",additionalProperties:!1,properties:{partSize:{type:"integer",minimum:5242880},concurrency:{type:"integer",minimum:1,maximum:20},progressInterval:{type:"integer",minimum:1},retry:{type:"integer",minimum:0,maximum:20},retryFactor:{type:"integer"},retryMaxTime:{type:"integer"},timeout:{type:"integer",minimum:1,maximum:36e5},intelligent:{oneOf:[{type:"boolean"},{type:"string",enum:["fallback"]}]},intelligentChunkSize:{type:"integer"},onProgress:{format:"callback"},onRetry:{format:"callback"},disableIntegrityCheck:{type:"boolean"},tags:{type:"object",maxItems:10,additionalProperties:{type:"string",maxlength:256}}}},Zt={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Picker",description:"Filestack Picker Options",type:"object",additionalProperties:!1,properties:{allowManualRetry:{type:"boolean"},accept:{additionalProperties:!1,oneOf:[{type:"string"},{type:"array",minItems:1,items:[{type:"string"}]}]},acceptFn:{format:"callback"},websearch:{type:"object",properties:{predefinedText:{type:"string"}}},fromSources:{type:"array",items:{anyOf:[{type:"string",enum:["local_file_system","url","imagesearch","facebook","instagram","googledrive","picasa","unsplash","dropbox","webcam","video","audio","box","github","gmail","googlephotos","onedrive","onedriveforbusiness","clouddrive","customsource","tint"]},{type:"object"}]}},container:{format:"HTMLContainer"},cleanupImageExif:{oneOf:[{type:"boolean"},{type:"object",additionalProperties:!1,properties:{keepOrientation:{type:"boolean"},keepICCandAPP:{type:"boolean"}}}]},displayMode:{type:"string",enum:["inline","overlay","dropPane"]},concurrency:{type:"integer",minimum:1,maximum:20},supportEmail:{type:"string"},customSourceContainer:{type:"string"},customSourcePath:{type:"string"},customSourceName:{type:"string"},disableStorageKey:{type:"boolean"},disableTransformer:{type:"boolean"},disableAltText:{type:"boolean"},disableThumbnails:{type:"boolean"},exposeOriginalFile:{type:"boolean"},globalDropZone:{type:"boolean"},hideModalWhenUploading:{type:"boolean"},imageDim:{type:"array",minItems:2,maxItems:2,items:[{type:"integer",minimum:1}]},imageMax:{type:"array",minItems:2,maxItems:2,items:[{type:"integer",minimum:1}]},imageMin:{type:"array",minItems:2,maxItems:2,items:[{type:"integer",minimum:1}]},imageMinMaxBlock:{type:"boolean",default:!1},lang:{type:"string",enum:["ca","da","de","en","es","fr","he","it","ja","ko","nl","no","pl","pt","sv","ru","vi","zh","tr","ar"]},minFiles:{type:"integer",minimum:1,maximum:1e6},maxFiles:{type:"integer",minimum:1,maximum:1e6},maxSize:{type:"integer",minimum:1},modalSize:{type:"array",minItems:2,maxItems:2,items:[{type:"integer",minimum:1,maximum:1e6}]},rootId:{type:"string"},startUploadingWhenMaxFilesReached:{type:"boolean"},uploadInBackground:{type:"boolean"},videoResolution:{type:"string"},onCancel:{format:"callback"},onClose:{format:"callback"},onOpen:{format:"callback"},onFileSelected:{format:"callback"},onFileUploadCancel:{format:"callback"},onFileUploadStarted:{format:"callback"},onFileUploadFinished:{format:"callback"},onFileUploadFailed:{format:"callback"},onFileUploadProgress:{format:"callback"},onUploadStarted:{format:"callback"},onUploadDone:{format:"callback"},onFileCropped:{format:"callback"},storeTo:{additionalProperties:!1,type:"object",properties:{filename:{type:"string"},location:{$ref:"locationsDef"},container:{type:"string"},path:{type:"string"},region:{type:"string"},access:{type:"string",enum:["public","private"]},workflows:{$ref:"workflowsDef"}}},viewType:{type:"string",enum:["grid","list"]},transformations:{type:"object",additionalProperties:!1,properties:{config:{type:"object"},circle:{type:"boolean"},rotate:{type:"boolean"},force:{type:"boolean"},crop:{oneOf:[{type:"boolean"},{type:"object",additionalProperties:!1,properties:{force:{type:"boolean"},aspectRatio:{type:"number"}}}]}}},customText:{type:"object",patternProperties:{".*":{type:"string"}}},cropFiles:{type:"array",minItems:1},loadCss:{type:"string"},failOverMaxFiles:{type:"boolean"},dropPane:{type:"object",properties:{cropFiles:{type:"array",minItems:1},customText:{type:"string"},disableClick:{type:"boolean"},overlay:{type:"boolean"},showIcon:{type:"boolean"},showProgress:{type:"boolean"},onDragEnter:{format:"callback"},onProgress:{format:"callback"},onDragLeave:{format:"callback"},onDragOver:{format:"callback"},onDrop:{format:"callback"},onSuccess:{format:"callback"},onError:{format:"callback"},onClick:{format:"callback"}}},errorsTimeout:{type:"number",minimum:0},customAuthText:{type:"object",patternProperties:{".*":{additionalProperties:!1,type:"object",required:["top","bottom"],properties:{top:{type:"string"},bottom:{type:"string"}}}}},uploadConfig:{type:"object",additionalProperties:!1,properties:(0,h.Cl)((0,h.Cl)({},$t.properties),{tags:{type:"object",additionalProperties:{anyOf:[{type:"string"},{format:"callback"}]}}})},useSentryBreadcrumbs:{type:"boolean"},transformationsUI:{type:"boolean"},pasteMode:{type:"object",additionalProperties:!1,properties:{pasteToFirstInViewPort:{type:"boolean"},pasteToFirstInstance:{type:"boolean"}}},disableDirectoryUpload:{type:"boolean"},miniUploader:{type:"boolean"},multipleFileUpload:{type:"boolean"},googleDriveAppID:{type:"string"}}},Vt={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Metadata",description:"Filestack Metadata Options",type:"object",additionalProperties:!1,properties:{size:{type:"boolean"},mimetype:{type:"boolean"},filename:{type:"boolean"},width:{type:"boolean"},metadata:{type:"boolean"},height:{type:"boolean"},uploaded:{type:"boolean"},writeable:{type:"boolean"},cloud:{type:"boolean"},sourceUrl:{type:"boolean"},md5:{type:"boolean"},sha1:{type:"boolean"},sha224:{type:"boolean"},sha256:{type:"boolean"},sha384:{type:"boolean"},sha512:{type:"boolean"},location:{type:"boolean"},path:{type:"boolean"},container:{type:"boolean"},exif:{type:"boolean"}}},Ht={$schema:"http://json-schema.org/draft-07/schema#",title:"Filestack Retrieve",description:"Filestack Retrieve Options",type:"object",additionalProperties:!1,properties:{metadata:{type:"boolean"},head:{type:"boolean"},dl:{type:"boolean"},cache:{type:"boolean"},extension:{type:"string"}}},Yt=o(5934),Wt=o(6854),Kt=gt()("fs:request:dispatch"),Qt=function(){function t(t){this.adapter=t}return t.prototype.request=function(t){var e=this;return t.headers=t.headers||{},Kt("Dispatching request %O",t),this.adapter.request(t).catch((function(t){return Kt('Request error "%s": %O',t,t.response),e.retry(t)}))},t.prototype.retry=function(t){var e=this,r=t.config;if(!(0,Wt.S)(t))return Kt("[Retry] Request error is not retriable. Exiting"),Promise.reject(t);if(!r.retry)return Kt("[Retry] Retry config not found. Exiting"),Promise.reject(t);var n=r.retry,o=r.runtime&&r.runtime.retryCount?r.runtime.retryCount:0;if(n.retry&&n.retry<=o)return Kt("[Retry] Retry attempts reached %d. Exiting",o),Promise.reject(t);var i=Math.max(Math.min(n.retryMaxTime,1e3*Math.pow(n.retryFactor,o)),1);return r.runtime=(0,h.Cl)((0,h.Cl)({},r.runtime),{retryCount:o+1}),Kt("[Retry] Retrying request to ".concat(r.url,", count ").concat(o," of ").concat(n.retry," - Delay: ").concat(i)),new Promise((function(t){setTimeout((function(){return t(e.request(r))}),i)}))},t}(),Jt=o(3574).U,Xt=function(){function t(t){this.defaults=t,this.dispatcher=new Qt(new Jt)}return t.getInstance=function(){return t.instance||(t.instance=new t),t.instance},t.prototype.dispatch=function(t){return t.method||(t.method=Yt.j.GET),this.dispatcher.request(Object.assign({},this.defaults,t))},t.dispatch=function(e,r){return t.getInstance().dispatch(Object.assign({},r||{},{url:e}))},t.get=function(e,r){return t.getInstance().dispatch(Object.assign({},r||{},{method:Yt.j.GET,url:e}))},t.head=function(e,r){return t.getInstance().dispatch(Object.assign({},r||{},{method:Yt.j.HEAD,url:e}))},t.options=function(e,r){return t.getInstance().dispatch(Object.assign({},r||{},{method:Yt.j.OPTIONS,url:e}))},t.purge=function(e,r){return t.getInstance().dispatch(Object.assign({},r||{},{method:Yt.j.PURGE,url:e}))},t.delete=function(e,r){return t.getInstance().dispatch(Object.assign({},r||{},{method:Yt.j.DELETE,url:e}))},t.post=function(e,r,n){return t.getInstance().dispatch(Object.assign({},n||{},{method:Yt.j.POST,url:e,data:r}))},t.put=function(e,r,n){return t.getInstance().dispatch(Object.assign({},n||{},{method:Yt.j.PUT,url:e,data:r}))},t.path=function(e,r,n){return t.getInstance().dispatch(Object.assign({},n||{},{method:Yt.j.PATH,url:e,data:r}))},t}(),te=o(9653),ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,h.C6)(e,t),e.prototype.cancel=function(t){this.emit("cancel",t),this.removeAllListeners()},e}(d),re=function(t,e,r,n){if(!e||"string"!=typeof e)throw new pt("A valid Filestack handle is required for remove");if(!(t.policy&&t.signature||n&&n.policy&&n.signature))throw new pt("Security policy and signature are required for remove");var o=t.urls.fileApiUrl,i="".concat(o,"/").concat(e),a={key:t.apikey,policy:n&&n.policy||t.policy,signature:n&&n.signature||t.signature};return r&&(a.skip_storage=!0),Xt.delete(i,{filestackHeaders:!1,params:(0,yt.removeEmpty)(a)})};function ne(t){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ne(t)}var oe,ie,ae,ce,se,ue,pe,le,fe,he,de,me,ye,ve,ge,be,xe,we,ke,Se=function t(e){for(var r={},n=Object.keys(e),o=0;o<n.length;o++){var i=n[o].split(/(?=[A-Z])/).join("_").toLowerCase();"object"!==ne(e[n[o]])||Array.isArray(e[n[o]])?r[i]=e[n[o]]:r[i]=t(e[n[o]])}return r};!function(t){t.left="left",t.right="right",t.center="center",t.bottom="bottom",t.top="top"}(oe||(oe={})),function(t){t.left="left",t.right="right",t.center="center",t.bottom="bottom",t.top="top",t.faces="faces"}(ie||(ie={})),function(t){t.clip="clip",t.crop="crop",t.scale="scale",t.max="max"}(ae||(ae={})),function(t){t.linear="linear",t.gaussian="gaussian"}(ce||(ce={})),function(t){t.oval="oval",t.rect="rect"}(se||(se={})),function(t){t.none="none",t.low="low",t.medium="medium",t.high="high"}(ue||(ue={})),function(t){t.artwork="artwork",t.photo="photo"}(pe||(pe={})),function(t){t.RGB="RGB",t.CMYK="CMYK",t.Input="Input"}(le||(le={})),function(t){t.thumb="thumb",t.crop="crop",t.fill="fill"}(fe||(fe={})),function(t){t.fit="fit",t.auto="auto"}(he||(he={})),function(t){t.top="top",t.middle="middle",t.bottom="bottom",t.left="left",t.center="center",t.right="right"}(de||(de={})),function(t){t.libmp3lame="libmp3lame",t.libvorbis="libvorbis",t.libfdk_aac="libfdk_aac",t.dib_ac3="dib_ac3",t.pcm_s16le="pcm_s16le",t.mp2="mp2",t.ac3="ac3",t.eac3="eac3"}(me||(me={})),function(t){t.h264="h264",t.h264_hi="h264.hi",t.webm="webm",t["webm-hi"]="webm.hi",t.ogg="ogg",t["ogg-hi"]="ogg.hi",t["hls-variant"]="hls.variant",t.mp3="mp3",t.oga="oga",t.m4a="m4a",t.aac="aac",t.hls="hls.variant.audio"}(ye||(ye={})),function(t){t.desktop="desktop",t.mobile="mobile"}(ve||(ve={})),function(t){t.all="all",t.window="window"}(ge||(ge={})),function(t){t.portrait="portrait",t.landscape="landscape"}(be||(be={})),function(t){t.s3="s3",t.azure="azure",t.gcs="gcs",t.rackspace="rackspace",t.dropbox="dropbox"}(xe||(xe={})),function(t){t.private="private",t.public="public"}(we||(we={})),function(t){t.preserve="preserve",t.constrain="constrain",t.letterbox="letterbox",t.pad="pad",t.crop="crop"}(ke||(ke={}));var Ee=function(t,e,r,n){void 0===r&&(r={}),void 0===n&&(n=!1),r=Se(r),t.policy&&t.signature&&(r.security={policy:t.policy,signature:t.signature});var o=new Ut(e,t.apikey);return o.setCname(t.cname),o.setBase64(n),Object.keys(r).forEach((function(t){("boolean"!=typeof r[t]||r[t]||"cache"===t)&&o.addTask(t,r[t])})),o.toString()};function Oe(t){return Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oe(t)}function je(t){return je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},je(t)}var Fe,_e=function(){function t(t,e){this._file=t,this._sanitizeOptions=e,this._file.name=(0,yt.sanitizeName)(this._file.name,this._sanitizeOptions)}return Object.defineProperty(t.prototype,"name",{get:function(){return this._file.name},set:function(t){this._file.name=(0,yt.sanitizeName)(t,this._sanitizeOptions)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filename",{get:function(){return this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"customName",{set:function(t){switch(je(t)){case"string":this.name=t;break;case"function":if("string"!=typeof t(this))throw new Error("Name function must return a string. Current return type is ".concat(je(t)));this.name=t(this)}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._file.type||"application/octet-stream"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mimetype",{get:function(){return this.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._file.size},enumerable:!1,configurable:!0}),t.prototype.getPartsCount=function(t,e){var r=e?84825604096:63350767616;if(this._file.size>=r){var n=Math.ceil(this._file.size/1e4);return{partsCount:Math.ceil(this._file.size/n),chunkSize:n}}return{partsCount:Math.ceil(this._file.size/t),chunkSize:t}},t.prototype.getPartMetadata=function(t,e){var r=e*t;if(r>this._file.size)throw new Error("Start byte of the part is higher than buffer size");var n=Math.min(r+e,this._file.size);return{partNumber:t,startByte:r,endByte:n,size:n-r}},t.prototype.getPartByMetadata=function(t,e){return void 0===e&&(e=!0),(0,h.sH)(this,void 0,void 0,(function(){var r;return(0,h.YH)(this,(function(n){switch(n.label){case 0:return[4,this._file.slice(t.startByte,t.endByte)];case 1:return r=n.sent(),[2,Promise.resolve((0,h.Cl)((0,h.Cl)({},t),{buffer:r,md5:e?(0,yt.md5)(r):void 0}))]}}))}))},t.prototype.getChunkByMetadata=function(t,e,r,n){return void 0===n&&(n=!0),(0,h.sH)(this,void 0,void 0,(function(){var o,i,a;return(0,h.YH)(this,(function(c){switch(c.label){case 0:return o=t.startByte+e,i=Math.min(o+r,t.endByte),[4,this._file.slice(o,i)];case 1:return a=c.sent(),[2,Promise.resolve((0,h.Cl)((0,h.Cl)({},t),{buffer:a,md5:n?(0,yt.md5)(a):void 0,size:a.byteLength,startByte:o,endByte:i,offset:e}))]}}))}))},t.prototype.release=function(){this._file.release&&this._file.release()},t.prototype.toJSON=function(){return{name:this.name,status:this.status,type:this.type,size:this.size,url:this.url,handle:this.handle,uploadTags:this.uploadTags}},t}(),Pe=/data:([a-zA-Z]*\/[a-zA-Z]*);base64,([^\"]*)/i,Ae=function(t,e,r){var n,o;if(function(t){return t&&t.file&&t.name}(t)&&(n=t.name,t=t.file),function(t){return t instanceof File}(t))o=t,n=t.name;else if(function(t){if("string"!=typeof t)return!1;t.indexOf("base64")>-1&&(t=t.match(Pe).pop());try{return btoa(atob(t))===t}catch(t){return!1}}(t))o=function(t,e){void 0===e&&(e=512);var r="";if(t.indexOf("base64")>-1){var n=t.match(Pe);t=n.pop(),r=n[1]}for(var o=atob(t),i=[],a=0;a<o.length;a+=e){for(var c=o.slice(a,a+e),s=new Array(c.length),u=0;u<c.length;u+=1)s[u]=c.charCodeAt(u);i.push(new Uint8Array(s))}return new Blob(i,{type:r})}(t);else{if(!function(t){return"[object Blob]"===t.toString()}(t))return Promise.reject(new pt("Unsupported input file type"));o=t}return function(t){return(0,h.sH)(void 0,void 0,void 0,(function(){return(0,h.YH)(this,(function(e){return File&&FileReader&&Blob?[2,Promise.resolve({slice:function(e,r){return function(t,e,r){return new Promise((function(n,o){var i=new FileReader,a=r.slice(t,e);i.onload=function(){return n(i.result)},i.onerror=o,i.readAsArrayBuffer(a)}))}(e,r,t)},release:function(){t=null}})]:[2,Promise.reject(new pt("The File APIs are not fully supported by your browser"))]}))}))}(o).then((function(t){return(0,h.sH)(void 0,void 0,void 0,(function(){var i,a;return(0,h.YH)(this,(function(c){switch(c.label){case 0:return i=o.type,o.type&&0!==o.type.length&&"text/plain"!==o.type?[3,3]:(a=yt.getMimetype,[4,t.slice(0,4100)]);case 1:return[4,a.apply(void 0,[c.sent(),n])];case 2:i=c.sent(),c.label=3;case 3:return[2,new _e({name:n,size:o.size,type:r||i,slice:t.slice,release:t.release},e)]}}))}))}))},Te=o(3772),De=o(830),Le=8388608,Ce=32768,Ie=gt()("fs:upload:abstract"),ze=function(t){function e(e,r){void 0===r&&(r=3);var n=t.call(this)||this;return n.storeOptions=e,n.concurrency=r,n.partSize=6291456,n.intelligentChunkSize=(0,yt.isMobile)()?1048576:Le,n.timeout=3e4,n.uploadMode="default",n.isModeLocked=!1,n.integrityCheck=!0,n.uploadTags=null,n}return(0,h.C6)(e,t),e.prototype.setSecurity=function(t){Ie("Set security %O",t),this.security=t},e.prototype.setApikey=function(t){Ie("Set apikey to ".concat(t)),this.apikey=t},e.prototype.setTimeout=function(t){Ie("Set request timeout to ".concat(t)),this.timeout=t},e.prototype.setRetryConfig=function(t){Ie("Set retry config to ".concat(t)),this.retryConfig=t},e.prototype.setUrl=function(t){Ie("Set upload url to ".concat(t)),this.url=t},e.prototype.setUploadTags=function(t){Ie("Set tags to %O",t),this.uploadTags=t},e.prototype.setIntegrityCheck=function(t){this.integrityCheck=t},e.prototype.setUploadMode=function(t,e){void 0===e&&(e=!1),!0!==this.isModeLocked?(this.isModeLocked=e,Ie("Set upload mode to ".concat(t)),this.uploadMode=t):Ie("Cannot switch mode to ".concat(t,". Locked! Probably mode is not supported at this apikey"))},e.prototype.setPartSize=function(t){if("default"===this.uploadMode){if(Ie("Set part size to ".concat(t)),t<5242880)throw new pt("Minimum part size is 5MB");this.partSize=t}else Ie("Cannot set part size because upload mode is other than default. ")},e.prototype.getPartSize=function(){return this.partSize},e.prototype.setIntelligentChunkSize=function(t){if(Ie("Set inteligent chunk size to ".concat(t)),t<Ce)throw new pt("Minimum intelligent chunk size is ".concat(Ce));this.intelligentChunkSize=t},e.prototype.getIntelligentChunkSize=function(){return this.intelligentChunkSize},e.prototype.getUrl=function(){if(!this.url)throw new pt("Upload url not set");return this.url},e}(m),Ne=gt()("fs:upload:s3"),Re=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.payloads={},n.partsQueue=new Te.A({autoStart:!1,concurrency:n.concurrency}),n.cancelToken=new ee,n}return(0,h.C6)(e,t),e.prototype.pause=function(){this.partsQueue.pause()},e.prototype.resume=function(){this.partsQueue.isPaused&&this.partsQueue.start()},e.prototype.abort=function(t){this.partsQueue.pause(),this.partsQueue.clear(),this.cancelToken.cancel(t||"Aborted by user")},e.prototype.execute=function(){return(0,h.sH)(this,void 0,void 0,(function(){var t,e=this;return(0,h.YH)(this,(function(r){return t=Object.keys(this.payloads).map((function(t){return new Promise((function(r){return(0,h.sH)(e,void 0,void 0,(function(){var e,n;return(0,h.YH)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,5,,6]),[4,this.startRequest(t)];case 1:return o.sent(),[4,this.prepareParts(t)];case 2:return o.sent(),[4,this.startPartsQueue(t)];case 3:return o.sent(),[4,this.completeRequest(t)];case 4:return o.sent(),[3,6];case 5:return e=o.sent(),this.emit("error",e),Ne("[".concat(t,"] File upload failed. %O, \nDetails: %O "),e.message,e.details),[3,6];case 6:return(n=this.getPayloadById(t).file).release(),delete this.payloads[t],r(n),[2]}}))}))}))})),[2,Promise.all(t)]}))}))},e.prototype.addFile=function(t){Ne("Add file to queue: \n %o",t);var e="".concat((0,yt.uniqueId)(15),"_").concat((0,yt.uniqueTime)());return t.status="Initialized",this.payloads[e]={file:t,parts:[]},e},e.prototype.getUploadUrl=function(t){var e=this.getDefaultFields(t,["location_url"]).location_url;return 0===e.indexOf("http")?e:"https://".concat(e)},e.prototype.getStoreOptions=function(t){var e=(0,h.Cl)({location:"s3"},this.storeOptions);if(this.storeOptions.disableStorageKey){var r=this.getPayloadById(t);e.path&&"/"!==e.path.substr(-1)&&(e.path="".concat(e.path,"/")),e.path="".concat(e.path?e.path:"/").concat(r.file.name),delete e.disableStorageKey}return e},e.prototype.getDefaultFields=function(t,e,r){void 0===r&&(r=!1);var n=this.getPayloadById(t),o=(0,h.Cl)((0,h.Cl)({},this.security),{apikey:this.apikey,uri:n.uri,location_url:n.location_url,upload_id:n.upload_id,region:n.region,alt:n.file.alt});return("intelligent"===this.uploadMode||"fallback"===this.uploadMode&&r)&&(o.fii=!0),(0,h.Cl)((0,h.Cl)({},(0,yt.filterObject)(o,e)),{store:this.getStoreOptions(t)})},e.prototype.getDefaultHeaders=function(t){var e={},r=this.getPayloadById(t);return r.location_region&&(e["Filestack-Upload-Region"]=r.location_region),e},e.prototype.getPayloadById=function(t){return this.payloads[t]},e.prototype.prepareParts=function(t){var e=this.getPayloadById(t).file,r=!1;["intelligent","fallback"].indexOf(this.uploadMode)>-1&&(this.partSize=Le,r=!0);for(var n=e.getPartsCount(this.partSize,r),o=n.partsCount,i=n.chunkSize,a=[],c=0;c<o;c++)a[c]=(0,h.Cl)((0,h.Cl)({},e.getPartMetadata(c,i)),{offset:0});return this.payloads[t].parts=a,Promise.resolve()},e.prototype.startRequest=function(t){var e=this,r=this.getPayloadById(t);return 0===r.file.size?(this.setPayloadStatus(t,"Failed"),Promise.reject(new pt('Invalid file "'.concat(r.file.name,'" size - 0'),{},st.VALIDATION))):(Ne("[".concat(t,"] Make start request")),Xt.post("".concat(this.getUrl(),"/multipart/start"),(0,h.Cl)({filename:r.file.name,mimetype:r.file.type,size:r.file.size},this.getDefaultFields(t,["apikey","policy","signature","fii"],!0)),{timeout:this.timeout,cancelToken:this.cancelToken,headers:this.getDefaultHeaders(t),retry:this.retryConfig}).then((function(r){var n=r.data;return n&&n.location_url&&n.region&&n.upload_id&&n.uri?(Ne("[".concat(t,"] Assign payload data: \n%O\n"),n),e.updatePayload(t,n),["intelligent","fallback"].indexOf(e.uploadMode)>-1&&(!n.upload_type||"intelligent_ingestion"!==n.upload_type)&&(Ne("[".concat(t,"] Intelligent Ingestion is not enabled on account, switch back to regular upload and lock mode change")),e.setUploadMode("default",!0)),n):(Ne("[".concat(t,"] Incorrect start response: \n%O\n"),n),e.setPayloadStatus(t,"Failed"),Promise.reject(new pt("Incorrect start response",n,st.REQUEST)))})).catch((function(r){return Ne("[".concat(t,"] Start request error %O"),r),e.setPayloadStatus(t,"Failed"),e.rejectUpload("Cannot upload file. Start request failed",r)})))},e.prototype.startPartsQueue=function(t){return(0,h.sH)(this,void 0,void 0,(function(){var e,r,n,o=this;return(0,h.YH)(this,(function(i){return e=this.getPayloadById(t),r=e.parts,n=r.length,Ne("[".concat(t,"] Create uploading queue from file. parts count - %d"),n),[2,new Promise((function(e,n){return(0,h.sH)(o,void 0,void 0,(function(){var o,i=this;return(0,h.YH)(this,(function(a){switch(a.label){case 0:return r.forEach((function(e){return i.partsQueue.add((function(){return i.startPart(t,e.partNumber)})).catch((function(e){return i.setPayloadStatus(t,"Failed"),Ne("[".concat(t,"] Failed to upload part %s"),e.message),i.partsQueue.pause(),i.partsQueue.clear(),n(e)}))})),Ne("[".concat(t,"] All tasks for %s enqueued. Start processing main upload queue"),t),this.emit("start"),this.partsQueue.start(),o=e,[4,this.partsQueue.onIdle()];case 1:return o.apply(void 0,[a.sent()]),[2]}}))}))}))]}))}))},e.prototype.startPart=function(t,e){return Ne("[".concat(t,"] Start processing part ").concat(e," with mode ").concat(this.uploadMode)),this.getPayloadById(t).file.status="Progress",("intelligent"!==this.uploadMode?this.uploadRegular:this.uploadIntelligent).apply(this,[t,e])},e.prototype.getS3PartMetadata=function(t,e,r){var n=this,o=this.getUploadUrl(t);Ne("[".concat(t,"] Get data for part ").concat(e.partNumber,", url ").concat(o,", Md5: ").concat(e.md5,", Size: ").concat(e.size));var i=(0,h.Cl)((0,h.Cl)({},this.getDefaultFields(t,["apikey","uri","region","signature","policy","upload_id","fii"])),{part:e.partNumber+1,size:e.size,offset:r});return this.integrityCheck&&e.md5&&(i.md5=e.md5),Xt.post("".concat(o,"/multipart/upload"),i,{headers:this.getDefaultHeaders(t),cancelToken:this.cancelToken,timeout:this.timeout,retry:this.retryConfig}).catch((function(e){return n.setPayloadStatus(t,"Failed"),n.rejectUpload("Cannot get part metadata",e)}))},e.prototype.uploadRegular=function(t,e){return(0,h.sH)(this,void 0,void 0,(function(){var r,n,o,i,a,c,s=this;return(0,h.YH)(this,(function(u){switch(u.label){case 0:return r=this.getPayloadById(t),n=r.parts[e],[4,r.file.getPartByMetadata(n,this.integrityCheck)];case 1:return o=u.sent(),[4,this.getS3PartMetadata(t,o)];case 2:return i=u.sent(),a=i.data,c=i.headers,Ne("[".concat(t,"] Received part ").concat(e," info body: \n%O\n headers: \n%O\n"),a,c),[2,Xt.put(a.url,o.buffer,{cancelToken:this.cancelToken,timeout:this.timeout,headers:a.headers,filestackHeaders:!1,onProgress:function(r){return s.onProgressUpdate(t,e,r.loaded)},retry:this.retryConfig&&"fallback"!==this.uploadMode?this.retryConfig:void 0}).then((function(r){if(!r.headers.etag)throw o=null,new pt("Cannot upload file, check S3 bucket settings","Etag header is not exposed in CORS settings",st.REQUEST);return s.setPartETag(t,e,r.headers.etag),Ne("[".concat(t,"] S3 Upload response headers for ").concat(e,": \n%O\n"),r.headers),s.onProgressUpdate(t,e,o.size),o=null,r})).catch((function(r){var n=r&&r.response?r.response:null;if(n&&403===n.status&&n.data&&n.data.Error&&n.data.Error.code){var i=n.data.Error.code;return Array.isArray(i)&&(i=i.pop()),"RequestTimeTooSkewed"===i?s.startPart(t,e):Promise.reject(new pt("Cannot upload file",n.data.Error,st.REQUEST))}return o=null,r instanceof pt?Promise.reject(r):(s.onProgressUpdate(t,e,0),"fallback"===s.uploadMode&&!s.isModeLocked||"intelligent"===s.uploadMode?(Ne("[".concat(t,"] Regular upload failed. Switching to intelligent ingestion mode")),s.setUploadMode("intelligent"),s.startPart(t,e)):s.rejectUpload("Cannot upload file part",r))}))]}}))}))},e.prototype.uploadIntelligent=function(t,e){return(0,h.sH)(this,void 0,void 0,(function(){var r=this;return(0,h.YH)(this,(function(n){return[2,this.uploadNextChunk(t,e).then((function(){return r.commitPart(t,e)}))]}))}))},e.prototype.uploadNextChunk=function(t,e,r){return void 0===r&&(r=this.intelligentChunkSize),(0,h.sH)(this,void 0,void 0,(function(){var n,o,i,a,c=this;return(0,h.YH)(this,(function(s){switch(s.label){case 0:return n=this.getPayloadById(t),o=n.parts[e],r=o.size-o.offset,[4,n.file.getChunkByMetadata(o,o.offset,r,this.integrityCheck)];case 1:return i=s.sent(),Ne("[".concat(t,"] PartNum: ").concat(e,", PartSize: ").concat(o.size,", StartByte: ").concat(o.startByte,", Offset: ").concat(o.offset,", ChunkSize: ").concat(i.size,",\n Left: ").concat(o.size-o.offset-i.size)),[4,this.getS3PartMetadata(t,i,o.offset).catch((function(n){return Ne("[".concat(t,"] Getting chunk data for ii failed %O, Chunk size: ").concat(r,", offset ").concat(o.offset,", part ").concat(e),n),Promise.reject(n)}))];case 2:return a=s.sent().data,[2,Xt.put(a.url,i.buffer,{cancelToken:this.cancelToken,timeout:this.timeout,headers:a.headers,filestackHeaders:!1,onProgress:function(r){return o?c.onProgressUpdate(t,e,o.offset+r.loaded):null}}).then((function(n){c.onProgressUpdate(t,e,o.offset+i.size);var a=Math.min(o.offset+r,o.size);return Ne("[".concat(t,"] S3 Chunk uploaded! offset: ").concat(o.offset,", part ").concat(e,"! response headers for ").concat(e,": \n%O\n"),n.headers),c.setPartData(t,e,"offset",a),a===o.size?Promise.resolve(n):(o=null,i=null,c.uploadNextChunk(t,e,r))})).catch((function(n){var a=n&&n.response?n.response:null;if(a&&403===a.status&&a.data&&a.data.Error&&a.data.Error.code){var s=a.data.Error.code;return Array.isArray(s)&&(s=s.pop()),"RequestTimeTooSkewed"===s?c.startPart(t,e):Promise.reject(new pt("Cannot upload file",a.data.Error,st.REQUEST))}c.onProgressUpdate(t,e,o.offset);var u=Math.ceil(r/2);return u<Ce?(Ne("[".concat(t,"] Minimal chunk size limit. Upload file failed!")),Promise.reject(new pt("Min chunk size reached",n.data,st.REQUEST))):(0,De.Sc)(n)?(Ne("[".concat(t,"] Request network error. Retry with new chunk size: ").concat(u)),c.uploadNextChunk(t,e,u)):(o=null,i=null,c.rejectUpload("Cannot upload file part (FII)",n))}))]}}))}))},e.prototype.commitPart=function(t,e){var r=this,n=this.getPayloadById(t),o=n.parts[e];return Xt.post("".concat(this.getUploadUrl(t),"/multipart/commit"),(0,h.Cl)((0,h.Cl)({},this.getDefaultFields(t,["apikey","region","upload_id","policy","signature","uri"])),{size:n.file.size,part:o.partNumber+1}),{cancelToken:this.cancelToken,timeout:this.timeout,headers:this.getDefaultHeaders(t),retry:this.retryConfig}).then((function(e){return Ne("[".concat(t,"] Commit Part number ").concat(o.partNumber,". Response: %O"),e.data),e})).catch((function(t){return r.rejectUpload("Cannot commit file part metadata",t)}))},e.prototype.completeRequest=function(t){var e=this,r=this.getPayloadById(t),n=[];Ne("[".concat(t,"] Run complete request"));for(var o=r.parts,i=o.length,a=0;a<i;a++)o[a].etag&&n.push({part_number:a+1,etag:o[a].etag});return Ne("[".concat(t,"] Etags %O"),n),Xt.post("".concat(this.getUploadUrl(t),"/multipart/complete"),(0,h.Cl)((0,h.Cl)({},this.getDefaultFields(t,["apikey","policy","signature","uri","region","upload_id","fii","alt"],!0)),{filename:r.file.name,mimetype:r.file.type,size:r.file.size,upload_tags:this.uploadTags&&Object.keys(this.uploadTags).length?this.uploadTags:void 0,parts:n.length?n:void 0}),{timeout:this.timeout,cancelToken:this.cancelToken,headers:this.getDefaultHeaders(t),retry:this.retryConfig}).then((function(r){if(202===r.status)return new Promise((function(r,n){setTimeout((function(){return e.completeRequest(t).then(r).catch(n)}),1e3)}));var n=e.getPayloadById(t).file;return n.handle=r.data.handle,n.url=r.data.url,n.container=r.data.container,n.key=r.data.key,n.uploadTags=r.data.upload_tags,n.workflows=r.data.workflows,n.status=r.data.status,n})).catch((function(r){return e.setPayloadStatus(t,"Failed"),e.rejectUpload("Cannot complete file",r)}))},e.prototype.onProgressUpdate=function(t,e,r){this.setPartData(t,e,"progress",r),this.emitProgress()},e.prototype.emitProgress=function(){var t=0,e=0,r={};for(var n in this.payloads){var o=this.payloads[n];if("Failed"!==o.file.status){var i=o.parts.map((function(t){return t.progress||0})).reduce((function(t,e){return t+e}),0);e+=i,r[n]={totalBytes:i,totalPercent:Math.round(100*i/o.file.size)||0},t+=o.file.size}}var a={totalBytes:e||0,totalPercent:Math.round(100*e/t)||0,files:r};Ne("Upload progress %O",a),this.emit("progress",a)},e.prototype.updatePayload=function(t,e){this.payloads[t]=(0,h.Cl)((0,h.Cl)({},this.payloads[t]),e)},e.prototype.setPartETag=function(t,e,r){Ne("[".concat(t,"] Set ").concat(r," etag for part ").concat(e)),this.getPayloadById(t).parts[e].etag=r},e.prototype.setPartData=function(t,e,r,n){Ne("[".concat(t,"] Set ").concat(r," = ").concat(n," for part ").concat(e));var o=this.getPayloadById(t);o?o.parts[e][r]=n:Ne("[".concat(t,"] Cannot set ").concat(r," = ").concat(n," for part ").concat(e))},e.prototype.setPayloadStatus=function(t,e){Ne("[".concat(t,"] Set payload status to ").concat(e)),this.payloads[t]&&(this.payloads[t].file.status=e)},e.prototype.parseError=function(t){return t.response?{code:t.response.status,data:t.response.data,headers:t.response.headers}:{}},e.prototype.rejectUpload=function(t,e){return e instanceof te.d&&e.code===te.E.ABORTED?Promise.reject(new pt(t,{reason:e.message},st.ABORTED)):Promise.reject(new pt(t,this.parseError(e),st.REQUEST))},e}(ze),Me=function(t,e){return t.totalBytes=Math.max(t.totalBytes,e.totalBytes),t.totalPercent=Math.max(t.totalPercent,e.totalPercent),t},Be=function(t){function e(e,r){void 0===e&&(e={}),void 0===r&&(r={});var n=t.call(this)||this;n.options=e,n.storeOptions=r,n.lastProgress={totalBytes:0,totalPercent:0},n.storeOptions=Object.assign({},r);var o=mt($t)(e);if(o.errors.length)throw new pt("Invalid upload params",o.errors,st.VALIDATION);var i=mt(qt)(r);if(i.errors.length)throw new pt("Invalid store upload params",i.errors,st.VALIDATION);return r.filename&&(n.overrideFileName=r.filename,delete n.storeOptions.filename),n.storeOptions.sanitizer&&(n.sanitizerOptions=n.storeOptions.sanitizer,delete n.storeOptions.sanitizer),r.altText&&(n.altText=r.altText,delete n.storeOptions.altText),r.mimetype&&(n.mimetype=r.mimetype,delete n.storeOptions.mimetype),n.uploader=new Re(n.storeOptions,e.concurrency),n.uploader.setRetryConfig({retry:e.retry||10,onRetry:e.onRetry,retryFactor:e.retryFactor||2,retryMaxTime:e.retryMaxTime||15e3}),n.uploader.setTimeout(e.timeout||12e4),e.partSize&&n.uploader.setPartSize(e.partSize),e.intelligentChunkSize&&n.uploader.setIntelligentChunkSize(e.intelligentChunkSize),e.disableIntegrityCheck&&n.uploader.setIntegrityCheck(!1),e.intelligent&&n.uploader.setUploadMode("fallback"===e.intelligent?"fallback":"intelligent"),n.uploader.setUploadTags(e.tags),n.uploader.on("start",(function(){return n.emit("start")})),n.uploader.on("error",(function(t){return n.emit("error",t)})),n.uploader.on("progress",n.handleProgress.bind(n)),n}return(0,h.C6)(e,t),e.prototype.setSession=function(t){this.uploader.setApikey(t.apikey),t.policy&&t.signature&&this.uploader.setSecurity({policy:t.policy,signature:t.signature}),this.uploader.setUrl(t.urls.uploadApiUrl)},e.prototype.setToken=function(t){var e=this;if(!t||t!==Object(t))throw new Error("Incorrect upload token. Must be instance of object");return t.pause=function(){return e.uploader.pause()},t.resume=function(){return e.uploader.resume()},t.cancel=function(){return e.uploader.abort()},t},e.prototype.setSecurity=function(t){this.uploader.setSecurity(t)},e.prototype.setUploadTags=function(t){this.uploader.setUploadTags(t)},e.prototype.upload=function(t){return(0,h.sH)(this,void 0,void 0,(function(){var e,r;return(0,h.YH)(this,(function(n){switch(n.label){case 0:return[4,Ae(t,this.sanitizerOptions,this.mimetype)];case 1:return(e=n.sent()).customName=this.overrideFileName,this.altText&&(e.alt=this.altText),this.uploader.addFile(e),this.startProgressInterval(),[4,this.uploader.execute()];case 2:return r=n.sent().shift(),this.stopProgressInterval(),this.uploader.removeAllListeners(),"Failed"===r.status?[2,Promise.reject(r)]:[2,Promise.resolve(r)]}}))}))},e.prototype.multiupload=function(t){return(0,h.sH)(this,void 0,void 0,(function(){var e,r,n,o,i,a,c;return(0,h.YH)(this,(function(s){switch(s.label){case 0:for(n in r=[],e=t)r.push(n);o=0,s.label=1;case 1:return o<r.length?(n=r[o])in e?(i=n,t.hasOwnProperty(i)?[4,Ae(t[i],this.sanitizerOptions,this.mimetype)]:[3,3]):[3,3]:[3,4];case 2:(a=s.sent()).customName=this.overrideFileName,this.altText&&(a.alt=this.altText),this.uploader.addFile(a),s.label=3;case 3:return o++,[3,1];case 4:return this.startProgressInterval(),[4,this.uploader.execute()];case 5:return c=s.sent(),this.stopProgressInterval(),this.uploader.removeAllListeners(),[2,Promise.resolve(c)]}}))}))},e.prototype.startProgressInterval=function(){var t=this;"function"==typeof this.options.onProgress&&(this.progressIntervalHandler=setInterval((function(){t.options.onProgress(t.lastProgress)}),this.options.progressInterval||1e3),this.options.onProgress(this.lastProgress))},e.prototype.stopProgressInterval=function(){clearInterval(this.progressIntervalHandler)},e.prototype.handleProgress=function(t){if(t=Me(t,this.lastProgress),this.lastProgress.files)for(var e in t.files)this.lastProgress.files[e]&&(t.files[e]=Me(t.files[e],this.lastProgress.files[e]));this.lastProgress=t},e}(d),Ue=gt()("fs:storage"),qe=function(){function t(){this.availableTypes=[],void 0!==window.localStorage&&(this.availableTypes.push(Fe.LOCAL),Ue("Local storage exists")),void 0!==window.sessionStorage&&(this.availableTypes.push(Fe.SESSION),Ue("Session storage exists")),Ue("availableTypes - %O",this.availableTypes)}return t.prototype.hasAccess=function(t){return Ue("Checking access to storage for %s. Available types: %O",t,this.availableTypes),t?this.availableTypes.indexOf(t)>-1:!!this.availableTypes.length},t.prototype.getItem=function(t,e){var r=this.getStore(e);if(Ue("getItem %s from %O",t,r),r)return r.getItem(t)},t.prototype.setItem=function(t,e,r){var n=this.getStore(r);if(Ue("setItem %s to %O",t,n),n)return n.setItem(t,e)},t.prototype.removeItem=function(t,e){var r=this.getStore(e);if(Ue("removeItem %s from %O",t,r),r)return r.removeItem(t)},t.prototype.getStore=function(t){if(Ue("get store with pref type - %s",t),this.hasAccess(t))switch(t){case Fe.LOCAL:return window.localStorage;case Fe.SESSION:return window.sessionStorage;default:return window[this.availableTypes[0]]}else Ue("User dont have access to any storage")},t}();!function(t){t.SESSION="sessionStorage",t.LOCAL="localStorage"}(Fe||(Fe={}));var Ge,$e="__fs_picker_token",Ze=function(){function t(t,e){this.cache=!1,this.session=t,this.storeAdapter=new qe,this.cloudApiUrl=t.urls.cloudApiUrl,e&&e.sessionCache&&(this.cache=e.sessionCache)}return Object.defineProperty(t.prototype,"token",{get:function(){if(this.cache){var t=this.storeAdapter.getItem($e,Fe.LOCAL);if(t)return t}return this.isInAppBrowser?this.storeAdapter.getItem($e,Fe.SESSION):this._token},set:function(t){this.cache&&this.storeAdapter.setItem($e,t,Fe.LOCAL),this.isInAppBrowser&&this.storeAdapter.setItem($e,t,Fe.SESSION),this._token=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInAppBrowser",{get:function(){return!!(this.session&&this.session.prefetch&&this.session.prefetch.settings&&this.session.prefetch.settings.inapp_browser)&&this.session.prefetch.settings.inapp_browser},enumerable:!1,configurable:!0}),t.prototype.list=function(t,e,r){var n=this,o={apikey:this.session.apikey,clouds:t,flow:"web",token:this.token};r&&(Array.isArray(r)||(r=[r]),r.includes("application/x-subrip")&&!r.includes("application/octet-stream")&&r.push("application/octet-stream"),o.accept=r),this.isInAppBrowser&&(o.appurl=this.currentAppUrl()),this.session.policy&&this.session.signature&&(o.policy=this.session.policy,o.signature=this.session.signature);var i={};if(e){var a=new ee;e.cancel=a.cancel.bind(a),i.cancelToken=a}return Xt.post("".concat(this.cloudApiUrl,"/folder/list"),o,i).then((function(t){return t.data&&t.data.token&&(n.token=t.data.token),t.data}))},t.prototype.store=function(t,e,r,n,o,i,a){var c,s=this;void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=null),void 0===r.location&&(r.location="s3");var u={apikey:this.session.apikey,token:this.token,flow:"web",upload_tags:i||void 0,clouds:(c={},c[t]={path:e,picker_session_id:a,store:(0,yt.removeEmpty)(r)},c)};"customsource"===t&&n.customSourcePath&&(u.clouds.customsource.customSourcePath=n.customSourcePath),"customsource"===t&&n.customSourceContainer&&(u.clouds.customsource.customSourceContainer=n.customSourceContainer),this.session.policy&&this.session.signature&&(u.policy=this.session.policy,u.signature=this.session.signature);var p={};if(o){var l=new ee;o.cancel=l.cancel.bind(l),p.cancelToken=l}return Xt.post("".concat(this.cloudApiUrl,"/store/"),u,p).then((function(e){return e.data&&e.data.token&&(s.token=e.data.token),e.data&&e.data[t]?e.data[t]:e.data}))},t.prototype.logout=function(t){var e,r={apikey:this.session.apikey,flow:"web",token:this.token};return t?r.clouds=((e={})[t]={},e):(this.cache&&this.storeAdapter.removeItem($e,Fe.LOCAL),this.isInAppBrowser&&this.storeAdapter.removeItem($e,Fe.SESSION)),Xt.post("".concat(this.cloudApiUrl,"/auth/logout"),r).then((function(e){return e.data&&e.data[t]?e.data[t]:e.data}))},t.prototype.metadata=function(t,e){var r={apikey:this.session.apikey,url:t,headers:e};return this.session.policy&&this.session.signature&&(r.policy=this.session.policy,r.signature=this.session.signature),Xt.post("".concat(this.cloudApiUrl,"/metadata"),r).then((function(t){return t.data}))},t.prototype.tokInit=function(t){if("video"!==t&&"audio"!==t)throw new pt("Type must be one of video or audio.");return Xt.post("".concat(this.cloudApiUrl,"/recording/").concat(t,"/init")).then((function(t){return t.data}))},t.prototype.tokStart=function(t,e,r){if("video"!==t&&"audio"!==t)throw new pt("Type must be one of video or audio.");var n={apikey:e,session_id:r};return Xt.post("".concat(this.cloudApiUrl,"/recording/").concat(t,"/start"),n).then((function(t){return t.data}))},t.prototype.tokStop=function(t,e,r,n){if("video"!==t&&"audio"!==t)throw new pt("Type must be one of video or audio.");var o={apikey:e,session_id:r,archive_id:n};return Xt.post("".concat(this.cloudApiUrl,"/recording/").concat(t,"/stop"),o).then((function(t){return t.data}))},t.prototype.currentAppUrl=function(){if(window.URLSearchParams){var t=new URLSearchParams(window.location.search);return t.set("fs-tab","init"),"".concat(window.location.protocol,"//").concat(window.location.host).concat(window.location.pathname,"?").concat(t.toString())}},t}(),Ve=o(395),He=o.n(Ve);!function(t){t.PICKER="picker",t.TRANSFORM_UI="transform_ui"}(Ge||(Ge={}));var Ye,We,Ke=function(){function t(t){this.session=t instanceof Je?t.session:t}return t.prototype.getConfig=function(t){var e=t.pickerOptions,r=t.settings,n=t.permissions,o=t.events;return(0,h.sH)(this,void 0,void 0,(function(){var t,i,a=this;return(0,h.YH)(this,(function(c){return t={apikey:this.session.apikey},this.session.policy&&this.session.signature&&(t.security={policy:this.session.policy,signature:this.session.signature}),r=r?(r=r.concat(["inapp_browser"])).filter((function(t,e){return r.indexOf(t)===e})):["inapp_browser"],e&&Object.keys(e).length&&(i=(0,yt.cleanUpCallbacks)(He()((0,h.Cl)({},e)))),t=(0,h.Cl)((0,h.Cl)({},t),{permissions:n,settings:r,picker_config:i,events:o}),this.session.prefetch=null,[2,Xt.post("".concat(this.session.urls.uploadApiUrl,"/prefetch"),t).then((function(t){if(200!==t.status)throw new pt("There is a problem with prefetch request");var r=t.data;return r.updated_config?(r.pickerOptions=a.reassignCallbacks(e,r.updated_config||{}),delete r.updated_config):r.pickerOptions=e,a.session.prefetch=r,r}))]}))}))},t.prototype.reassignCallbacks=function(t,e){if(!t||0===Object.keys(t).length)return t;for(var r in t)"function"==typeof t[r]&&(e[r]=t[r]),t[r]===Object(t[r])&&(e[r]=this.reassignCallbacks(t[r],e[r]));return e},t}();!function(t){t.cw="CW",t.ccw="CCW"}(Ye||(Ye={})),function(t){t.inline="inline",t.overlay="overlay",t.dropPane="dropPane"}(We||(We={}));var Qe=function(){function t(t,e){var r=mt(Zt)(e);r.errors.length&&(r.errors.forEach((function(t){if(!t.path.includes("fromSources"))throw new pt("Invalid picker params",r.errors,st.VALIDATION);console.warn('Warning: Invalid source "'.concat(t.instance,'" found and removed!')),e.fromSources=e.fromSources.filter((function(e){return e!==t.instance}))})),e.fromSources.length||delete e.fromSources),this._initialized=this.loadModule(t,e)}return t.prototype.open=function(){return(0,h.sH)(this,void 0,void 0,(function(){return(0,h.YH)(this,(function(t){switch(t.label){case 0:return[4,this._initialized];case 1:return[4,t.sent().open()];case 2:return t.sent(),[2]}}))}))},t.prototype.crop=function(t){return(0,h.sH)(this,void 0,void 0,(function(){return(0,h.YH)(this,(function(e){switch(e.label){case 0:return[4,this._initialized];case 1:return[4,e.sent().crop(t)];case 2:return e.sent(),[2]}}))}))},t.prototype.close=function(){return(0,h.sH)(this,void 0,void 0,(function(){return(0,h.YH)(this,(function(t){switch(t.label){case 0:return[4,this._initialized];case 1:return[4,t.sent().close()];case 2:return t.sent(),[2]}}))}))},t.prototype.cancel=function(){return(0,h.sH)(this,void 0,void 0,(function(){return(0,h.YH)(this,(function(t){switch(t.label){case 0:return[4,this._initialized];case 1:return[4,t.sent().cancel()];case 2:return t.sent(),[2]}}))}))},t.prototype.loadModule=function(t,e){return(0,h.sH)(this,void 0,void 0,(function(){var r;return(0,h.YH)(this,(function(n){switch(n.label){case 0:return r=t.session.urls.pickerUrl,[4,s(p.PICKER,r)];case 1:return[2,new(n.sent())(t,e)]}}))}))},t}();!function(t,e){var r=ot(b()).getCurrentScope().getClient(),n=ot(b()).getIsolationScope();if(r){var o=r.getOptions(),i=o.beforeBreadcrumb,a=void 0===i?null:i,c=o.maxBreadcrumbs,s=void 0===c?100:c;if(!(s<=0)){var u=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ct(Object(r),!0).forEach((function(e){var n,o,i,a;n=t,o=e,i=r[e],a=function(t){if("object"!=at(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=at(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o),(o="symbol"==at(a)?a:String(a))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ct(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({timestamp:w()},{category:"sdk",message:"filestack-js-sdk scope"}),p=a?P((function(){return a(u,e)})):u;null!==p&&(r.emit&&r.emit("beforeAddBreadcrumb",p,e),n.addBreadcrumb(p,s))}}}();var Je=function(t){function e(e,r){var n=t.call(this)||this;if(n.options=r,n.forwardErrors=!0,r&&r.forwardErrors&&(n.forwardErrors=r.forwardErrors),!e||"string"!=typeof e||0===e.length)throw new Error("An apikey is required to initialize the Filestack client");var o=ut.urls;if(n.session={apikey:e,urls:o},r){var i=r.cname,a=r.security;n.setSecurity(a),n.setCname(i)}return n.prefetchInstance=new Ke(n.session),n.cloud=new Ze(n.session,r),n}return(0,h.C6)(e,t),Object.defineProperty(e.prototype,"utils",{get:function(){return yt},enumerable:!1,configurable:!0}),e.prototype.prefetch=function(t){return this.prefetchInstance.getConfig(t)},e.prototype.setSecurity=function(t){if(t&&(!t.policy||!t.signature))throw new pt("Both policy and signature are required for client security");t&&t.policy&&t.signature&&(this.session.policy=t.policy,this.session.signature=t.signature)},e.prototype.setCname=function(t){t&&0!==t.length&&(this.session.cname=t,this.session.urls=yt.resolveHost(this.session.urls,t))},e.prototype.logout=function(t){return this.cloud.logout(t)},e.prototype.metadata=function(t,e,r){return function(t,e,r,n){if(!e||"string"!=typeof e)throw new pt("A valid Filestack handle is required for metadata");var o=mt(Vt)(r);if(o.errors.length)throw new pt("Invalid metadata params",o.errors);var i=(0,h.Cl)({},r);i.source_url=i.sourceUrl,i.policy=n&&n.policy||t.policy,i.signature=n&&n.signature||t.signature;var a="".concat(t.urls.fileApiUrl,"/").concat(e,"/metadata");return new Promise((function(t,r){Xt.get(a,{params:(0,yt.removeEmpty)(i),filestackHeaders:!1}).then((function(r){return t((0,h.Cl)((0,h.Cl)({},r.data),{handle:e}))})).catch(r)}))}(this.session,t,e,r)},e.prototype.picker=function(t){return function(t,e){return new Qe(t,e)}(this,t)},e.prototype.preview=function(t,e){return function(t,e,r){if(!e||"string"!=typeof e)throw new Error("A valid Filestack handle or storage alias is required for preview");var n=mt(Gt)(r);if(n.errors.length)throw new pt("Invalid preview params",n.errors,st.VALIDATION);var o=(0,yt.removeEmpty)(r||{}),i=function(t,e,r){var n=(0,h.Cl)({},r),o=t.policy,i=t.signature,a=i&&o,c=[t.urls.cdnUrl],s=n.css&&encodeURIComponent('"'.concat(n.css,'"')),u=s?"preview=css:".concat(s):"preview";return-1!==e.indexOf("src:")?c.push("".concat(t.apikey,"/").concat(u)):c.push(u),a&&c.push("security=policy:".concat(o,",signature:").concat(i)),c.push(e),c.join("/")}(t,e,o);if(o&&o.id){var a=o.id,c=document.createElement("iframe"),s=document.getElementById(a);if(c.src=i,c.width="100%",c.height="100%",!s)throw new Error('DOM Element with id "'.concat(a,'" not found.'));return s.appendChild(c)}return window.open(i,e)}(this.session,t,e)},e.prototype.remove=function(t,e){return re(this.session,t,!1,e)},e.prototype.removeMetadata=function(t,e){return re(this.session,t,!0,e)},e.prototype.storeURL=function(t,e,r,n,o,i,a){return function(t){var e=t.session,r=t.url,n=t.storeParams,o=t.token,i=t.security,a=t.uploadTags,c=t.headers,s=t.workflowIds;if(!r||"string"!=typeof r)return Promise.reject(new pt("url is required for storeURL"));var u=mt(qt)(n);if(u.errors.length)return Promise.reject(new pt("Invalid store params",u.errors));e.policy=i&&i.policy||e.policy,e.signature=i&&i.signature||e.signature;var p=new Ut(r,e.apikey);r&&"object"===Oe(n)&&null!==n&&(n.mimetype&&delete n.mimetype,n.altText&&delete n.altText),p.store(n),e.policy&&e.signature&&p.security({policy:e.policy,signature:e.signature});var l={};if(o){var f=new ee;o.cancel=f.cancel.bind(f),l.cancelToken=f}var d=[r];return c&&(d=[{source:r,headers:c}]),s&&s.length>0&&p.addTask("store",{workflows:s}),Xt.post("".concat(e.urls.processUrl,"/process"),{apikey:e.apikey,sources:d,tasks:p.getTasks(),upload_tags:a},l).then((function(t){if(t.data&&t.data.handle)return t.data.upload_tags&&(t.data.uploadTags=t.data.upload_tags,delete t.data.upload_tags),(0,h.Cl)((0,h.Cl)({},t.data),{mimetype:t.data.type});throw new pt("Invalid store response ".concat(JSON.stringify(t.data)))}))}({session:this.session,url:t,storeParams:e,token:r,security:n,uploadTags:o,headers:i,workflowIds:a})},e.prototype.retrieve=function(t,e,r){return function(t,e,r,n){if(void 0===r&&(r={}),!e||0===e.length||"string"!=typeof e)throw new pt("File handle is required");console.info("Retrieve method is deprecated and it will be removed. Please use metadata or download");var o=mt(Ht)(r);if(o.errors.length)throw new pt("Invalid retrieve params",o.errors);var i=(0,h.Cl)({},r);i.key=t.apikey,i.policy=n&&n.policy||t.policy,i.signature=n&&n.signature||t.signature;var a,c,s=Yt.j.GET;if(i.head&&(s=Yt.j.HEAD,delete i.head),i.extension&&i.extension.length&&(a=i.extension,delete i.extension),i.metadata){if(s===Yt.j.HEAD)throw new pt("Head and metadata options cannot be used together");c=i.metadata,delete i.metadata}var u="".concat(t.urls.fileApiUrl,"/").concat(e)+(a?"+".concat(a):"")+(c?"/metadata":"");return new Promise((function(t,e){Xt.dispatch(u,{method:s,filestackHeaders:!1,params:(0,yt.removeEmpty)(i)}).then((function(e){return t(s===Yt.j.HEAD?e.headers:e.data)})).catch(e)}))}(this.session,t,e,r)},e.prototype.download=function(t,e){return function(t,e,r){var n=new Ut(e,t.apikey),o=r&&r.policy||t.policy,i=r&&r.signature||t.signature;return o&&i&&n.security({signature:i,policy:o}),Xt.dispatch(n.toString(),{method:Yt.j.GET,blobResponse:!0})}(this.session,t,e)},e.prototype.transform=function(t,e,r){return void 0===r&&(r=!1),Ee(this.session,t,e,r)},e.prototype.upload=function(t,e,r,n,o){var i=this,a=new Be(e,r);return a.setSession(this.session),n&&a.setToken(n),o&&a.setSecurity(o),a.on("start",(function(){return i.emit("upload.start")})),a.on("error",(function(t){i.forwardErrors&&it((function(n){n.setTag("filestack-apikey",i.session.apikey),n.setTag("filestack-version",yt.getVersion()),n.setExtra("filestack-options",i.options),n.setExtras({uploadOptions:e,storeOptions:r,details:t.details}),t.message="FS-".concat(t.message),n.captureException(t)})),i.emit("upload.error",t)})),a.upload(t)},e.prototype.multiupload=function(t,e,r,n,o){var i=this,a=new Be(e,r);return a.setSession(this.session),n&&a.setToken(n),o&&a.setSecurity(o),a.on("start",(function(){return i.emit("upload.start")})),a.on("error",(function(t){it((function(n){n.setTag("filestack-apikey",i.session.apikey),n.setTag("filestack-version",yt.getVersion()),n.setExtra("filestack-options",i.options),n.setExtras(t.details),n.setExtras({uploadOptions:e,storeOptions:r}),n.captureException(t)})),i.emit("upload.error",t)})),a.multiupload(t)},e}(d),Xe=function(t,e){return new Je(t,e)},tr=Xe,er="4.3.8";u(p.FILESTACK_SDK,Xe,{version:"4.3.8"});var rr=i.W3,nr=i.Ew,or=i.PK,ir=i.Kj,ar=i.Ay,cr=i.Rl,sr=i.HD,ur=i.FK,pr=i.lX,lr=i.m5,fr=i.Bj,hr=i.uK,dr=i.Nx,mr=i.Us,yr=i.uZ,vr=i.X5,gr=i.wb,br=i.zf,xr=i.QS,wr=i.ar,kr=i.pg,Sr=i.Pd,Er=i.Yq,Or=i.zb,jr=i.sz,Fr=i.WT,_r=i.XM,Pr=i.rv,Ar=i.p_,Tr=i.tm,Dr=i._7,Lr=i.hs,Cr=i.jC,Ir=i.bK,zr=i.d1,Nr=i.EK,Rr=i.z,Mr=i.Hc,Br=i.VA,Ur=i.kX,qr=i.pv,Gr=i.IO,$r=i.HQ,Zr=i.s4,Vr=i.QV,Hr=i.Dy,Yr=i.rR,Wr=i.IB,Kr=i.yp,Qr=i.Lt,Jr=i.Nu,Xr=i.Ly,tn=i.SC,en=i.Nr,rn=i.kJ,nn=i.vm,on=i.RK,an=i.HF,cn=i.Ts,sn=i.rB,un=i.Fr,pn=i.Fx,ln=i.ef,fn=i.T0,hn=i.p0,dn=i.rh,mn=i.pd,yn=i.NF,vn=i.tp,gn=i.qB,bn=i.rE;export{rr as Align,nr as AudioTypes,or as BlurMode,ir as Client,ar as ColorspaceType,cr as CropfacesType,sr as EAlignFacesOptions,ur as EAlignOptions,pr as EAudioTypes,lr as EBlurMode,fr as EColorspaceType,hr as ECropfacesType,dr as EFitOptions,mr as EImageWatermarkPosition,yr as ENoiseType,vr as EShapeType,gr as ESmartCropMode,br as EStyleType,xr as EUrlscreenshotAgent,wr as EUrlscreenshotMode,kr as EUrlscreenshotOrientation,Sr as EVideoAccess,Er as EVideoAccessMode,Or as EVideoLocations,jr as EVideoTypes,Fr as EnhancePreset,_r as Filelink,Pr as Filestack,Ar as FilestackError,Tr as FilestackErrorType,Dr as FitOptions,Lr as FsCancelToken,Cr as FsHttpMethod,Ir as FsRequest,zr as FsRequestError,Nr as FsRequestErrorCode,Rr as ImageWatermarkPosition,Mr as Locations,Br as NoiseType,Ur as PickerDisplayMode,qr as PrefetchEvents,Gr as ShapeType,$r as SmartCropMode,Zr as StyleType,Vr as TransformSchema,Hr as URLScreenshotAgent,Yr as URLScreenshotMode,Wr as URLScreenshotOrientation,Kr as VideoAccess,Qr as VideoAccessMode,Jr as VideoTypes,Xr as b64,tn as cleanUpCallbacks,en as extensionToMime,rn as filterObject,nn as getMimetype,on as getSecurity,an as getVersion,cn as init,sn as isFacebook,un as isMobile,pn as md5,ln as removeEmpty,fn as resolveCdnUrl,hn as resolveHost,dn as sanitizeName,mn as transform,yn as uniqueId,vn as uniqueTime,gn as validateWebhookSignature,bn as version};
3
3
  //# sourceMappingURL=filestack.esm.js.map