/*! For license information please see filestack.min.js.LICENSE.txt */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.filestack=e():t.filestack=e()}(self,(()=>(()=>{var __webpack_modules__={2:t=>{"use strict";t.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:t=>{"use strict";t.exports=EvalError},157:t=>{"use strict";t.exports=Error},249:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var Buffer=__webpack_require__(1545).hp;function _typeof(t){return _typeof="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},_typeof(t)}function _regeneratorRuntime(){_regeneratorRuntime=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",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=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),s=new A(n||[]);return o(a,"_invoke",{value:F(t,r,s)}),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",d="suspendedYield",h="executing",m="completed",y={};function v(){}function g(){}function b(){}var x={};c(x,a,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(T([])));k&&k!==r&&n.call(k,a)&&(x=k);var _=b.prototype=v.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,i,a,s){var u=l(t[o],t,i);if("throw"!==u.type){var c=u.arg,p=c.value;return p&&"object"==_typeof(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(p).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(u.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 F(e,r,n){var o=f;return function(i,a){if(o===h)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 s=n.delegate;if(s){var u=O(s,n);if(u){if(u===y)continue;return u}}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=h;var c=l(e,r,n);if("normal"===c.type){if(o=n.done?m:d,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=m,n.method="throw",n.arg=c.arg)}}}function O(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,O(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 j(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(j,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(_typeof(e)+" is not iterable")}return g.prototype=b,o(_,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=c(b,u,"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,c(t,u,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},E(S.prototype),c(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(_),c(_,u,"Generator"),c(_,a,(function(){return this})),c(_,"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 s.type="throw",s.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],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)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 _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_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(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _createForOfIteratorHelper(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=_unsupportedIterableToArray(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,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(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)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(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 ownKeys(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 _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach((function(e){_defineProperty(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _defineProperty(t,e,r){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==_typeof(e)?e:String(e)}function _toPrimitive(t,e){if("object"!=_typeof(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function asyncGeneratorStep(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function _asyncToGenerator(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){asyncGeneratorStep(i,n,o,a,s,"next",t)}function s(t){asyncGeneratorStep(i,n,o,a,s,"throw",t)}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(t){return _fromStream.apply(this,arguments)}function _fromStream(){return _fromStream=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,strtok3.fromStream(e);case 2:return r=t.sent,t.prev=3,t.next=6,fromTokenizer(r);case 6:return t.abrupt("return",t.sent);case 7:return t.prev=7,t.next=10,r.close();case 10:return t.finish(7);case 11:case"end":return t.stop()}}),t,null,[[3,,7,11]])}))),_fromStream.apply(this,arguments)}function fromBuffer(t){return _fromBuffer.apply(this,arguments)}function _fromBuffer(){return(_fromBuffer=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r,n;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e instanceof Uint8Array||e instanceof ArrayBuffer||Buffer.isBuffer(e)){t.next=2;break}throw new TypeError("Expected the `input` argument to be of type `Uint8Array` or `Buffer` or `ArrayBuffer`, got `".concat(_typeof(e),"`"));case 2:if((r=e instanceof Buffer?e:Buffer.from(e))&&r.length>1){t.next=5;break}return t.abrupt("return");case 5:return n=strtok3.fromBuffer(r),t.abrupt("return",fromTokenizer(n));case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function _check(t,e,r){r=_objectSpread({offset:0},r);var n,o=_createForOfIteratorHelper(e.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]&t[a+r.offset]))return!1}else if(s!==t[a+r.offset])return!1}}catch(t){o.e(t)}finally{o.f()}return!0}function fromTokenizer(t){return _fromTokenizer2.apply(this,arguments)}function _fromTokenizer2(){return(_fromTokenizer2=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.abrupt("return",_fromTokenizer(e));case 4:if(t.prev=4,t.t0=t.catch(0),t.t0 instanceof strtok3.EndOfStreamError){t.next=8;break}throw t.t0;case 8:case"end":return t.stop()}}),t,null,[[0,4]])})))).apply(this,arguments)}function _fromTokenizer(t){return _fromTokenizer3.apply(this,arguments)}function _fromTokenizer3(){return _fromTokenizer3=_asyncToGenerator(_regeneratorRuntime().mark((function t(e){var r,n,o,i,a,s,u,c,p,l,f,d,h,m,y,v,g,b,x,w,k,_,E,S,F,O,j,P,A,T;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Buffer.alloc(minimumBytes),n=function(t,e){return _check(r,t,e)},o=function(t,e){return n(stringToBytes(t),e)},e.fileInfo.size||(e.fileInfo.size=Number.MAX_SAFE_INTEGER),t.next=7,e.peekBuffer(r,{length:12,mayBeLess:!0});case 7:if(!n([66,77])){t.next=9;break}return t.abrupt("return",{ext:"bmp",mime:"image/bmp"});case 9:if(!n([11,119])){t.next=11;break}return t.abrupt("return",{ext:"ac3",mime:"audio/vnd.dolby.dd-raw"});case 11:if(!n([120,1])){t.next=13;break}return t.abrupt("return",{ext:"dmg",mime:"application/x-apple-diskimage"});case 13:if(!n([77,90])){t.next=15;break}return t.abrupt("return",{ext:"exe",mime:"application/x-msdownload"});case 15:if(!n([37,33])){t.next=21;break}return t.next=18,e.peekBuffer(r,{length:24,mayBeLess:!0});case 18:if(!o("PS-Adobe-",{offset:2})||!o(" EPSF-",{offset:14})){t.next=20;break}return t.abrupt("return",{ext:"eps",mime:"application/eps"});case 20:return t.abrupt("return",{ext:"ps",mime:"application/postscript"});case 21:if(!n([31,160])&&!n([31,157])){t.next=23;break}return t.abrupt("return",{ext:"Z",mime:"application/x-compress"});case 23:if(!n([255,216,255])){t.next=25;break}return t.abrupt("return",{ext:"jpg",mime:"image/jpeg"});case 25:if(!n([73,73,188])){t.next=27;break}return t.abrupt("return",{ext:"jxr",mime:"image/vnd.ms-photo"});case 27:if(!n([31,139,8])){t.next=29;break}return t.abrupt("return",{ext:"gz",mime:"application/gzip"});case 29:if(!n([66,90,104])){t.next=31;break}return t.abrupt("return",{ext:"bz2",mime:"application/x-bzip2"});case 31:if(!o("ID3")){t.next=42;break}return t.next=34,e.ignore(6);case 34:return t.next=36,e.readToken(uint32SyncSafeToken);case 36:if(i=t.sent,!(e.position+i>e.fileInfo.size)){t.next=39;break}return t.abrupt("return",{ext:"mp3",mime:"audio/mpeg"});case 39:return t.next=41,e.ignore(i);case 41:return t.abrupt("return",fromTokenizer(e));case 42:if(!o("MP+")){t.next=44;break}return t.abrupt("return",{ext:"mpc",mime:"audio/x-musepack"});case 44:if(67!==r[0]&&70!==r[0]||!n([87,83],{offset:1})){t.next=46;break}return t.abrupt("return",{ext:"swf",mime:"application/x-shockwave-flash"});case 46:if(!n([71,73,70])){t.next=48;break}return t.abrupt("return",{ext:"gif",mime:"image/gif"});case 48:if(!o("FLIF")){t.next=50;break}return t.abrupt("return",{ext:"flif",mime:"image/flif"});case 50:if(!o("8BPS")){t.next=52;break}return t.abrupt("return",{ext:"psd",mime:"image/vnd.adobe.photoshop"});case 52:if(!o("WEBP",{offset:8})){t.next=54;break}return t.abrupt("return",{ext:"webp",mime:"image/webp"});case 54:if(!o("MPCK")){t.next=56;break}return t.abrupt("return",{ext:"mpc",mime:"audio/x-musepack"});case 56:if(!o("FORM")){t.next=58;break}return t.abrupt("return",{ext:"aif",mime:"audio/aiff"});case 58:if(!o("icns",{offset:0})){t.next=60;break}return t.abrupt("return",{ext:"icns",mime:"image/icns"});case 60:if(!n([80,75,3,4])){t.next=121;break}t.prev=61;case 62:if(!(e.position+30<e.fileInfo.size)){t.next=114;break}return t.next=65,e.readBuffer(r,{length:30});case 65:return a={compressedSize:r.readUInt32LE(18),uncompressedSize:r.readUInt32LE(22),filenameLength:r.readUInt16LE(26),extraFieldLength:r.readUInt16LE(28)},t.next=68,e.readToken(new Token.StringType(a.filenameLength,"utf-8"));case 68:return a.filename=t.sent,t.next=71,e.ignore(a.extraFieldLength);case 71:if("META-INF/mozilla.rsa"!==a.filename){t.next=73;break}return t.abrupt("return",{ext:"xpi",mime:"application/x-xpinstall"});case 73:if(!a.filename.endsWith(".rels")&&!a.filename.endsWith(".xml")){t.next=83;break}s=a.filename.split("/")[0],t.t0=s,t.next="_rels"===t.t0?78:"word"===t.t0?79:"ppt"===t.t0?80:"xl"===t.t0?81:82;break;case 78:return t.abrupt("break",83);case 79:return t.abrupt("return",{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"});case 80:return t.abrupt("return",{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"});case 81:return t.abrupt("return",{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});case 82:return t.abrupt("break",83);case 83:if(!a.filename.startsWith("xl/")){t.next=85;break}return t.abrupt("return",{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});case 85:if(!a.filename.startsWith("3D/")||!a.filename.endsWith(".model")){t.next=87;break}return t.abrupt("return",{ext:"3mf",mime:"model/3mf"});case 87:if("mimetype"!==a.filename||a.compressedSize!==a.uncompressedSize){t.next=98;break}return t.next=90,e.readToken(new Token.StringType(a.compressedSize,"utf-8"));case 90:u=t.sent,t.t1=u,t.next="application/epub+zip"===t.t1?94:"application/vnd.oasis.opendocument.text"===t.t1?95:"application/vnd.oasis.opendocument.spreadsheet"===t.t1?96:"application/vnd.oasis.opendocument.presentation"===t.t1?97:98;break;case 94:return t.abrupt("return",{ext:"epub",mime:"application/epub+zip"});case 95:return t.abrupt("return",{ext:"odt",mime:"application/vnd.oasis.opendocument.text"});case 96:return t.abrupt("return",{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"});case 97:return t.abrupt("return",{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"});case 98:if(0!==a.compressedSize){t.next=110;break}c=-1;case 100:if(!(c<0&&e.position<e.fileInfo.size)){t.next=108;break}return t.next=103,e.peekBuffer(r,{mayBeLess:!0});case 103:return c=r.indexOf("504B0304",0,"hex"),t.next=106,e.ignore(c>=0?c:r.length);case 106:t.next=100;break;case 108:t.next=112;break;case 110:return t.next=112,e.ignore(a.compressedSize);case 112:t.next=62;break;case 114:t.next=120;break;case 116:if(t.prev=116,t.t2=t.catch(61),t.t2 instanceof strtok3.EndOfStreamError){t.next=120;break}throw t.t2;case 120:return t.abrupt("return",{ext:"zip",mime:"application/zip"});case 121:if(!o("OggS")){t.next=140;break}return t.next=124,e.ignore(28);case 124:return p=Buffer.alloc(8),t.next=127,e.readBuffer(p);case 127:if(!_check(p,[79,112,117,115,72,101,97,100])){t.next=129;break}return t.abrupt("return",{ext:"opus",mime:"audio/opus"});case 129:if(!_check(p,[128,116,104,101,111,114,97])){t.next=131;break}return t.abrupt("return",{ext:"ogv",mime:"video/ogg"});case 131:if(!_check(p,[1,118,105,100,101,111,0])){t.next=133;break}return t.abrupt("return",{ext:"ogm",mime:"video/ogg"});case 133:if(!_check(p,[127,70,76,65,67])){t.next=135;break}return t.abrupt("return",{ext:"oga",mime:"audio/ogg"});case 135:if(!_check(p,[83,112,101,101,120,32,32])){t.next=137;break}return t.abrupt("return",{ext:"spx",mime:"audio/ogg"});case 137:if(!_check(p,[1,118,111,114,98,105,115])){t.next=139;break}return t.abrupt("return",{ext:"ogg",mime:"audio/ogg"});case 139:return t.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]){t.next=142;break}return t.abrupt("return",{ext:"zip",mime:"application/zip"});case 142:if(!(o("ftyp",{offset:4})&&96&r[8])){t.next=167;break}l=r.toString("binary",8,12).replace("\0"," ").trim(),t.t3=l,t.next="avif"===t.t3?147:"mif1"===t.t3?148:"msf1"===t.t3?149:"heic"===t.t3||"heix"===t.t3?150:"hevc"===t.t3||"hevx"===t.t3?151:"qt"===t.t3?152:"M4V"===t.t3||"M4VH"===t.t3||"M4VP"===t.t3?153:"M4P"===t.t3?154:"M4B"===t.t3?155:"M4A"===t.t3?156:"F4V"===t.t3?157:"F4P"===t.t3?158:"F4A"===t.t3?159:"F4B"===t.t3?160:"crx"===t.t3?161:162;break;case 147:return t.abrupt("return",{ext:"avif",mime:"image/avif"});case 148:return t.abrupt("return",{ext:"heic",mime:"image/heif"});case 149:return t.abrupt("return",{ext:"heic",mime:"image/heif-sequence"});case 150:return t.abrupt("return",{ext:"heic",mime:"image/heic"});case 151:return t.abrupt("return",{ext:"heic",mime:"image/heic-sequence"});case 152:return t.abrupt("return",{ext:"mov",mime:"video/quicktime"});case 153:return t.abrupt("return",{ext:"m4v",mime:"video/x-m4v"});case 154:return t.abrupt("return",{ext:"m4p",mime:"video/mp4"});case 155:return t.abrupt("return",{ext:"m4b",mime:"audio/mp4"});case 156:return t.abrupt("return",{ext:"m4a",mime:"audio/x-m4a"});case 157:return t.abrupt("return",{ext:"f4v",mime:"video/mp4"});case 158:return t.abrupt("return",{ext:"f4p",mime:"video/mp4"});case 159:return t.abrupt("return",{ext:"f4a",mime:"audio/mp4"});case 160:return t.abrupt("return",{ext:"f4b",mime:"audio/mp4"});case 161:return t.abrupt("return",{ext:"cr3",mime:"image/x-canon-cr3"});case 162:if(!l.startsWith("3g")){t.next=166;break}if(!l.startsWith("3g2")){t.next=165;break}return t.abrupt("return",{ext:"3g2",mime:"video/3gpp2"});case 165:return t.abrupt("return",{ext:"3gp",mime:"video/3gpp"});case 166:return t.abrupt("return",{ext:"mp4",mime:"video/mp4"});case 167:if(!o("MThd")){t.next=169;break}return t.abrupt("return",{ext:"mid",mime:"audio/midi"});case 169:if(!o("wOFF")||!n([0,1,0,0],{offset:4})&&!o("OTTO",{offset:4})){t.next=171;break}return t.abrupt("return",{ext:"woff",mime:"font/woff"});case 171:if(!o("wOF2")||!n([0,1,0,0],{offset:4})&&!o("OTTO",{offset:4})){t.next=173;break}return t.abrupt("return",{ext:"woff2",mime:"font/woff2"});case 173:if(!n([212,195,178,161])&&!n([161,178,195,212])){t.next=175;break}return t.abrupt("return",{ext:"pcap",mime:"application/vnd.tcpdump.pcap"});case 175:if(!o("DSD ")){t.next=177;break}return t.abrupt("return",{ext:"dsf",mime:"audio/x-dsf"});case 177:if(!o("LZIP")){t.next=179;break}return t.abrupt("return",{ext:"lz",mime:"application/x-lzip"});case 179:if(!o("fLaC")){t.next=181;break}return t.abrupt("return",{ext:"flac",mime:"audio/x-flac"});case 181:if(!n([66,80,71,251])){t.next=183;break}return t.abrupt("return",{ext:"bpg",mime:"image/bpg"});case 183:if(!o("wvpk")){t.next=185;break}return t.abrupt("return",{ext:"wv",mime:"audio/wavpack"});case 185:if(!o("%PDF")){t.next=195;break}return t.next=188,e.ignore(1350);case 188:return f=Buffer.alloc(Math.min(10485760,e.fileInfo.size)),t.next=192,e.readBuffer(f,{mayBeLess:!0});case 192:if(!f.includes(Buffer.from("AIPrivateData"))){t.next=194;break}return t.abrupt("return",{ext:"ai",mime:"application/postscript"});case 194:return t.abrupt("return",{ext:"pdf",mime:"application/pdf"});case 195:if(!n([0,97,115,109])){t.next=197;break}return t.abrupt("return",{ext:"wasm",mime:"application/wasm"});case 197:if(!n([73,73,42,0])){t.next=210;break}if(!o("CR",{offset:8})){t.next=200;break}return t.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})){t.next=202;break}return t.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})){t.next=204;break}return t.abrupt("return",{ext:"dng",mime:"image/x-adobe-dng"});case 204:return r=Buffer.alloc(24),t.next=207,e.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})){t.next=209;break}return t.abrupt("return",{ext:"arw",mime:"image/x-sony-arw"});case 209:return t.abrupt("return",{ext:"tif",mime:"image/tiff"});case 210:if(!n([77,77,0,42])){t.next=212;break}return t.abrupt("return",{ext:"tif",mime:"image/tiff"});case 212:if(!o("MAC ")){t.next=214;break}return t.abrupt("return",{ext:"ape",mime:"audio/ape"});case 214:if(!n([26,69,223,163])){t.next=233;break}return g=function(){return(g=_asyncToGenerator(_regeneratorRuntime().mark((function t(r,n){var o;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n>0)){t.next=11;break}return t.next=3,m();case 3:if(17026!==(o=t.sent).id){t.next=6;break}return t.abrupt("return",e.readToken(new Token.StringType(o.len,"utf-8")));case 6:return t.next=8,e.ignore(o.len);case 8:--n,t.next=0;break;case 11:case"end":return t.stop()}}),t)})))).apply(this,arguments)},v=function(t,e){return g.apply(this,arguments)},y=function(){return(y=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var e,r,n;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,d();case 2:return e=t.sent,t.next=5,d();case 5:return(r=t.sent)[0]^=128>>r.length-1,n=Math.min(6,r.length),t.abrupt("return",{id:e.readUIntBE(0,e.length),len:r.readUIntBE(r.length-n,n)});case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)},m=function(){return y.apply(this,arguments)},h=function(){return(h=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var r,n,o,i;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.peekNumber(Token.UINT8);case 2:for(r=t.sent,n=128,o=0;!(r&n)&&0!==n;)++o,n>>=1;return i=Buffer.alloc(o+1),t.next=9,e.readBuffer(i);case 9:return t.abrupt("return",i);case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)},d=function(){return h.apply(this,arguments)},t.next=223,m();case 223:return b=t.sent,t.next=226,v(1,b.len);case 226:x=t.sent,t.t4=x,t.next="webm"===t.t4?230:"matroska"===t.t4?231:232;break;case 230:return t.abrupt("return",{ext:"webm",mime:"video/webm"});case 231:return t.abrupt("return",{ext:"mkv",mime:"video/x-matroska"});case 232:return t.abrupt("return");case 233:if(!n([82,73,70,70])){t.next=240;break}if(!n([65,86,73],{offset:8})){t.next=236;break}return t.abrupt("return",{ext:"avi",mime:"video/vnd.avi"});case 236:if(!n([87,65,86,69],{offset:8})){t.next=238;break}return t.abrupt("return",{ext:"wav",mime:"audio/vnd.wave"});case 238:if(!n([81,76,67,77],{offset:8})){t.next=240;break}return t.abrupt("return",{ext:"qcp",mime:"audio/qcelp"});case 240:if(!o("SQLi")){t.next=242;break}return t.abrupt("return",{ext:"sqlite",mime:"application/x-sqlite3"});case 242:if(!n([78,69,83,26])){t.next=244;break}return t.abrupt("return",{ext:"nes",mime:"application/x-nintendo-nes-rom"});case 244:if(!o("Cr24")){t.next=246;break}return t.abrupt("return",{ext:"crx",mime:"application/x-google-chrome-extension"});case 246:if(!o("MSCF")&&!o("ISc(")){t.next=248;break}return t.abrupt("return",{ext:"cab",mime:"application/vnd.ms-cab-compressed"});case 248:if(!n([237,171,238,219])){t.next=250;break}return t.abrupt("return",{ext:"rpm",mime:"application/x-rpm"});case 250:if(!n([197,208,211,198])){t.next=252;break}return t.abrupt("return",{ext:"eps",mime:"application/eps"});case 252:if(!n([40,181,47,253])){t.next=254;break}return t.abrupt("return",{ext:"zst",mime:"application/zstd"});case 254:if(!n([79,84,84,79,0])){t.next=256;break}return t.abrupt("return",{ext:"otf",mime:"font/otf"});case 256:if(!o("#!AMR")){t.next=258;break}return t.abrupt("return",{ext:"amr",mime:"audio/amr"});case 258:if(!o("{\\rtf")){t.next=260;break}return t.abrupt("return",{ext:"rtf",mime:"application/rtf"});case 260:if(!n([70,76,86,1])){t.next=262;break}return t.abrupt("return",{ext:"flv",mime:"video/x-flv"});case 262:if(!o("IMPM")){t.next=264;break}return t.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}))){t.next=266;break}return t.abrupt("return",{ext:"lzh",mime:"application/x-lzh-compressed"});case 266:if(!n([0,0,1,186])){t.next=271;break}if(!n([33],{offset:4,mask:[241]})){t.next=269;break}return t.abrupt("return",{ext:"mpg",mime:"video/MP1S"});case 269:if(!n([68],{offset:4,mask:[196]})){t.next=271;break}return t.abrupt("return",{ext:"mpg",mime:"video/MP2P"});case 271:if(!o("ITSF")){t.next=273;break}return t.abrupt("return",{ext:"chm",mime:"application/vnd.ms-htmlhelp"});case 273:if(!n([253,55,122,88,90,0])){t.next=275;break}return t.abrupt("return",{ext:"xz",mime:"application/x-xz"});case 275:if(!o("<?xml ")){t.next=277;break}return t.abrupt("return",{ext:"xml",mime:"application/xml"});case 277:if(!n([55,122,188,175,39,28])){t.next=279;break}return t.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]){t.next=281;break}return t.abrupt("return",{ext:"rar",mime:"application/x-rar-compressed"});case 281:if(!o("solid ")){t.next=283;break}return t.abrupt("return",{ext:"stl",mime:"model/stl"});case 283:if(!o("BLENDER")){t.next=285;break}return t.abrupt("return",{ext:"blend",mime:"application/x-blender"});case 285:if(!o("!<arch>")){t.next=294;break}return t.next=288,e.ignore(8);case 288:return t.next=290,e.readToken(new Token.StringType(13,"ascii"));case 290:if("debian-binary"!==t.sent){t.next=293;break}return t.abrupt("return",{ext:"deb",mime:"application/x-deb"});case 293:return t.abrupt("return",{ext:"ar",mime:"application/x-unix-archive"});case 294:if(!n([137,80,78,71,13,10,26,10])){t.next=313;break}return k=function(){return(k=_asyncToGenerator(_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.readToken(Token.INT32_BE);case 2:return t.t0=t.sent,t.next=5,e.readToken(new Token.StringType(4,"binary"));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)},w=function(){return k.apply(this,arguments)},t.next=299,e.ignore(8);case 299:return t.next=301,w();case 301:if(!((_=t.sent).length<0)){t.next=304;break}return t.abrupt("return");case 304:t.t5=_.type,t.next="IDAT"===t.t5?307:"acTL"===t.t5?308:309;break;case 307:return t.abrupt("return",{ext:"png",mime:"image/png"});case 308:return t.abrupt("return",{ext:"apng",mime:"image/apng"});case 309:return t.next=311,e.ignore(_.length+4);case 311:if(e.position+8<e.fileInfo.size){t.next=299;break}case 312:return t.abrupt("return",{ext:"png",mime:"image/png"});case 313:if(!n([65,82,82,79,87,49,0,0])){t.next=315;break}return t.abrupt("return",{ext:"arrow",mime:"application/x-apache-arrow"});case 315:if(!n([103,108,84,70,2,0,0,0])){t.next=317;break}return t.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}))){t.next=319;break}return t.abrupt("return",{ext:"mov",mime:"video/quicktime"});case 319:if(!n([73,73,82,79,8,0,0,0,24])){t.next=321;break}return t.abrupt("return",{ext:"orf",mime:"image/x-olympus-orf"});case 321:if(!o("gimp xcf ")){t.next=323;break}return t.abrupt("return",{ext:"xcf",mime:"image/x-xcf"});case 323:if(!n([73,73,85,0,24,0,0,0,136,231,116,216])){t.next=325;break}return t.abrupt("return",{ext:"rw2",mime:"image/x-panasonic-rw2"});case 325:if(!n([48,38,178,117,142,102,207,17,166,217])){t.next=351;break}return S=function(){return(S=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var r;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Buffer.alloc(16),t.next=3,e.readBuffer(r);case 3:return t.t0=r,t.t1=Number,t.next=7,e.readToken(Token.UINT64_LE);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)},E=function(){return S.apply(this,arguments)},t.next=330,e.ignore(30);case 330:if(!(e.position+24<e.fileInfo.size)){t.next=350;break}return t.next=333,E();case 333:if(F=t.sent,O=F.size-24,!_check(F.id,[145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101])){t.next=346;break}return j=Buffer.alloc(16),t.t6=O,t.next=340,e.readBuffer(j);case 340:if(O=t.t6-=t.sent,!_check(j,[64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43])){t.next=343;break}return t.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])){t.next=345;break}return t.abrupt("return",{ext:"asf",mime:"video/x-ms-asf"});case 345:return t.abrupt("break",350);case 346:return t.next=348,e.ignore(O);case 348:t.next=330;break;case 350:return t.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])){t.next=353;break}return t.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})){t.next=355;break}return t.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})){t.next=357;break}return t.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])){t.next=371;break}return t.next=360,e.ignore(20);case 360:return t.next=362,e.readToken(new Token.StringType(4,"ascii"));case 362:P=t.sent,t.t7=P,t.next="jp2 "===t.t7?366:"jpx "===t.t7?367:"jpm "===t.t7?368:"mjp2"===t.t7?369:370;break;case 366:return t.abrupt("return",{ext:"jp2",mime:"image/jp2"});case 367:return t.abrupt("return",{ext:"jpx",mime:"image/jpx"});case 368:return t.abrupt("return",{ext:"jpm",mime:"image/jpm"});case 369:return t.abrupt("return",{ext:"mj2",mime:"image/mj2"});case 370:return t.abrupt("return");case 371:if(!n([255,10])&&!n([0,0,0,12,74,88,76,32,13,10,135,10])){t.next=373;break}return t.abrupt("return",{ext:"jxl",mime:"image/jxl"});case 373:if(!n([0,0,1,186])&&!n([0,0,1,179])){t.next=375;break}return t.abrupt("return",{ext:"mpg",mime:"video/mpeg"});case 375:if(!n([0,1,0,0,0])){t.next=377;break}return t.abrupt("return",{ext:"ttf",mime:"font/ttf"});case 377:if(!n([0,0,1,0])){t.next=379;break}return t.abrupt("return",{ext:"ico",mime:"image/x-icon"});case 379:if(!n([0,0,2,0])){t.next=381;break}return t.abrupt("return",{ext:"cur",mime:"image/x-icon"});case 381:if(!n([208,207,17,224,161,177,26,225])){t.next=383;break}return t.abrupt("return",{ext:"cfb",mime:"application/x-cfb"});case 383:return t.next=385,e.peekBuffer(r,{length:Math.min(256,e.fileInfo.size),mayBeLess:!0});case 385:if(!o("BEGIN:")){t.next=390;break}if(!o("VCARD",{offset:6})){t.next=388;break}return t.abrupt("return",{ext:"vcf",mime:"text/vcard"});case 388:if(!o("VCALENDAR",{offset:6})){t.next=390;break}return t.abrupt("return",{ext:"ics",mime:"text/calendar"});case 390:if(!o("FUJIFILMCCD-RAW")){t.next=392;break}return t.abrupt("return",{ext:"raf",mime:"image/x-fujifilm-raf"});case 392:if(!o("Extended Module:")){t.next=394;break}return t.abrupt("return",{ext:"xm",mime:"audio/x-xm"});case 394:if(!o("Creative Voice File")){t.next=396;break}return t.abrupt("return",{ext:"voc",mime:"audio/x-voc"});case 396:if(!(n([4,0,0,0])&&r.length>=16)){t.next=408;break}if(!((A=r.readUInt32LE(12))>12&&r.length>=A+16)){t.next=408;break}if(t.prev=399,T=r.slice(16,A+16).toString(),!JSON.parse(T).files){t.next=404;break}return t.abrupt("return",{ext:"asar",mime:"application/x-asar"});case 404:t.next=408;break;case 406:t.prev=406,t.t8=t.catch(399);case 408:if(!n([6,14,43,52,2,5,1,1,13,1,2,1,1,2])){t.next=410;break}return t.abrupt("return",{ext:"mxf",mime:"application/mxf"});case 410:if(!o("SCRM",{offset:44})){t.next=412;break}return t.abrupt("return",{ext:"s3m",mime:"audio/x-s3m"});case 412:if(!n([71],{offset:4})||!n([71],{offset:192})&&!n([71],{offset:196})){t.next=414;break}return t.abrupt("return",{ext:"mts",mime:"video/mp2t"});case 414:if(!n([66,79,79,75,77,79,66,73],{offset:60})){t.next=416;break}return t.abrupt("return",{ext:"mobi",mime:"application/x-mobipocket-ebook"});case 416:if(!n([68,73,67,77],{offset:128})){t.next=418;break}return t.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])){t.next=420;break}return t.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])){t.next=422;break}return t.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}))){t.next=424;break}return t.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])){t.next=426;break}return t.abrupt("return",{ext:"indd",mime:"application/x-indesign"});case 426:return t.next=428,e.peekBuffer(r,{length:Math.min(512,e.fileInfo.size),mayBeLess:!0});case 428:if(!tarHeaderChecksumMatches(r)){t.next=430;break}return t.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])){t.next=432;break}return t.abrupt("return",{ext:"skp",mime:"application/vnd.sketchup.skp"});case 432:if(!o("-----BEGIN PGP MESSAGE-----")){t.next=434;break}return t.abrupt("return",{ext:"pgp",mime:"application/pgp-encrypted"});case 434:if(!(r.length>=2&&n([255,224],{offset:0,mask:[255,224]}))){t.next=445;break}if(!n([16],{offset:1,mask:[22]})){t.next=439;break}if(!n([8],{offset:1,mask:[8]})){t.next=438;break}return t.abrupt("return",{ext:"aac",mime:"audio/aac"});case 438:return t.abrupt("return",{ext:"aac",mime:"audio/aac"});case 439:if(!n([2],{offset:1,mask:[6]})){t.next=441;break}return t.abrupt("return",{ext:"mp3",mime:"audio/mpeg"});case 441:if(!n([4],{offset:1,mask:[6]})){t.next=443;break}return t.abrupt("return",{ext:"mp2",mime:"audio/mpeg"});case 443:if(!n([6],{offset:1,mask:[6]})){t.next=445;break}return t.abrupt("return",{ext:"mp1",mime:"audio/mpeg"});case 445:case"end":return t.stop()}}),t,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 t(){var e,r,n,o;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=new stream.PassThrough,r=stream.pipeline?stream.pipeline(readableStream,e,(function(){})):readableStream.pipe(e),n=readableStream.read(minimumBytes)||readableStream.read()||Buffer.alloc(0),t.prev=3,t.next=6,fromBuffer(n);case 6:o=t.sent,e.fileType=o,t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),reject(t.t0);case 13:resolve(r);case 14:case"end":return t.stop()}}),t,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:(t,e,r)=>{"use strict";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]",s="[object Boolean]",u="[object Date]",c="[object Function]",p="[object GeneratorFunction]",l="[object Map]",f="[object Number]",d="[object Object]",h="[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]",_="[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*$/,D=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,C={};C[a]=C["[object Array]"]=C[x]=C[w]=C[s]=C[u]=C[k]=C[_]=C[E]=C[S]=C[F]=C[l]=C[f]=C[d]=C[m]=C[y]=C[v]=C[g]=C[O]=C[j]=C[P]=C[A]=!0,C["[object Error]"]=C[c]=C[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,z=L||B||Function("return this")(),N="object"==n(e)&&e&&!e.nodeType&&e,R=N&&"object"==n(t)&&t&&!t.nodeType&&t,M=R&&R.exports===N;function U(t,e){return t.set(e[0],e[1]),t}function q(t,e){return t.add(e),t}function $(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 G(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function V(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function Z(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=z["__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=M?z.Buffer:void 0,it=z.Symbol,at=z.Uint8Array,st=Z(Object.getPrototypeOf,Object),ut=Object.create,ct=Q.propertyIsEnumerable,pt=W.splice,lt=Object.getOwnPropertySymbols,ft=ot?ot.isBuffer:void 0,dt=Z(Object.keys,Object),ht=zt(z,"DataView"),mt=zt(z,"Map"),yt=zt(z,"Promise"),vt=zt(z,"Set"),gt=zt(z,"WeakMap"),bt=zt(Object,"create"),xt=qt(ht),wt=qt(mt),kt=qt(yt),_t=qt(vt),Et=qt(gt),St=it?it.prototype:void 0,Ft=St?St.valueOf:void 0;function Ot(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 jt(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 jt(t)}function Tt(t,e,r){var n=t[e];et.call(t,e)&&$t(n,r)&&(void 0!==r||e in t)||(t[e]=r)}function Dt(t,e){for(var r=t.length;r--;)if($t(t[r][0],e))return r;return-1}function It(t,e,r,n,o,i,h){var b;if(n&&(b=i?n(t,o,i,h):n(t)),void 0!==b)return b;if(!Yt(t))return t;var D=Gt(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 I=Rt(t),L=I==c||I==p;if(Zt(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(I==d||I==a||L&&!i){if(G(t))return i?t:{};if(b=function(t){return"function"!=typeof t.constructor||Ut(t)?{}:Yt(e=st(t))?ut(e):{};var e}(L?{}:t),!e)return function(t,e){return Lt(t,Nt(t),e)}(t,function(t,e){return t&&Lt(e,Wt(e),t)}(b,t))}else{if(!C[I])return i?t:{};b=function(t,e,r,n){var o,i=t.constructor;switch(e){case x:return Ct(t);case s:case u: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 _:case E:case S:case F:case O:case j: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 $(e?r(V(t),!0):V(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 $(e?r(H(t),!0):H(t),q,new t.constructor)}(t,n,r);case g:return o=t,Ft?Object(Ft.call(o)):{}}}(t,I,It,e)}}h||(h=new At);var B=h.get(t);if(B)return B;if(h.set(t,b),!D)var z=r?function(t){return function(t,e,r){var n=e(t);return Gt(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,Nt)}(t):Wt(t);return function(t,e){for(var r=-1,n=t?t.length:0;++r<n&&!1!==e(t[r],r););}(z||t,(function(o,i){z&&(o=t[i=o]),Tt(b,i,It(o,e,r,n,i,t,h))})),b}function Ct(t){var e=new t.constructor(t.byteLength);return new at(e).set(new at(t)),e}function Lt(t,e,r,n){r||(r={});for(var o=-1,i=e.length;++o<i;){var a=e[o],s=n?n(r[a],t[a],a,r,t):void 0;Tt(r,a,void 0===s?t[a]:s)}return r}function Bt(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 zt(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)||G(t)?nt:D).test(qt(t));var e}(r)?r:void 0}Ot.prototype.clear=function(){this.__data__=bt?bt(null):{}},Ot.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Ot.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},Ot.prototype.has=function(t){var e=this.__data__;return bt?void 0!==e[t]:et.call(e,t)},Ot.prototype.set=function(t,e){return this.__data__[t]=bt&&void 0===e?o:e,this},jt.prototype.clear=function(){this.__data__=[]},jt.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))},jt.prototype.get=function(t){var e=this.__data__,r=Dt(e,t);return r<0?void 0:e[r][1]},jt.prototype.has=function(t){return Dt(this.__data__,t)>-1},jt.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 Ot,map:new(mt||jt),string:new Ot}},Pt.prototype.delete=function(t){return Bt(this,t).delete(t)},Pt.prototype.get=function(t){return Bt(this,t).get(t)},Pt.prototype.has=function(t){return Bt(this,t).has(t)},Pt.prototype.set=function(t,e){return Bt(this,t).set(t,e),this},At.prototype.clear=function(){this.__data__=new jt},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 jt){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 Nt=lt?Z(lt,Object):function(){return[]},Rt=function(t){return rt.call(t)};function Mt(t,e){return!!(e=null==e?i:e)&&("number"==typeof t||I.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 $t(t,e){return t===e||t!=t&&e!=e}(ht&&Rt(new ht(new ArrayBuffer(1)))!=w||mt&&Rt(new mt)!=l||yt&&Rt(yt.resolve())!=h||vt&&Rt(new vt)!=y||gt&&Rt(new gt)!=b)&&(Rt=function(t){var e=rt.call(t),r=e==d?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 h;case _t:return y;case Et:return b}return e});var Gt=Array.isArray;function Vt(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}(t.length)&&!Ht(t)}var Zt=ft||function(){return!1};function Ht(t){var e=Yt(t)?rt.call(t):"";return e==c||e==p}function Yt(t){var e=n(t);return!!t&&("object"==e||"function"==e)}function Wt(t){return Vt(t)?function(t,e){var r=Gt(t)||function(t){return function(t){return function(t){return!!t&&"object"==n(t)}(t)&&Vt(t)}(t)&&et.call(t,"callee")&&(!ct.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 s in t)!e&&!et.call(t,s)||i&&("length"==s||Mt(s,o))||r.push(s);return r}(t):function(t){if(!Ut(t))return dt(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 It(t,!0,!0)}},428:(t,e,r)=>{"use strict";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),s=r(5605).S,u=a.ValidatorResult,c=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(h),this.attributes=Object.create(i.validators)};function d(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=s(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,d=o.resolve(r.base||"/",f||"");if(!i){(i=new l(e,r,[],d,Object.create(this.schemas))).schemas[d]||(i.schemas[d]=e);var h=s(d,e);for(var m in h.id){var y=h.id[m];i.schemas[m]=y}}if(r.required&&void 0===t)return(a=new u(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 c(a);return a},f.prototype.validateSchema=function(t,e,r,n){var o=new u(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 s={schema:e,ctx:n};e.extends.forEach(this.schemaTraverser.bind(this,s)),e=s.schema,s.schema=null,s.ctx=null,s=null}else e=a.deepMerge(e,this.superResolve(e.extends,n));var c=d(e);if(c){var f=this.resolve(e,c,n),h=new l(f.subschema,r,n.path,f.switchSchema,n.schemas);return this.validateSchema(t,f.subschema,r,h)}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=d(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,s=i&&i.length&&e.substr(0,e.length-i.length);if(!s||!r.schemas[s])throw new p("no such schema <"+e+">",t);var u=a.objectGetPath(r.schemas[s],i.substr(1));if(void 0===u)throw new p("no such schema "+i+" located in <"+s+">",t);return{subschema:u,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 h=f.prototype.types={};h.string=function(t){return"string"==typeof t},h.number=function(t){return"number"==typeof t&&isFinite(t)},h.integer=function(t){return"number"==typeof t&&t%1==0},h.boolean=function(t){return"boolean"==typeof t},h.array=function(t){return Array.isArray(t)},h.null=function(t){return null===t},h.date=function(t){return t instanceof Date},h.any=function(t){return!0},h.object=function(t){return t&&"object"===n(t)&&!Array.isArray(t)&&!(t instanceof Date)},t.exports=f},830:(t,e,r)=>{"use strict";r.d(e,{D6:()=>Bt,qg:()=>i,xp:()=>Lt,cN:()=>It,Sc:()=>Nt.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=s(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},s=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("-")},u=r(1635),c=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(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 d=function(t){return!(null==l.exec(t))},h={allowBooleanAttributes:!1,unpairedTags:[]};function m(t,e){e=Object.assign({},h,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 S("InvalidChar","char '"+t[i]+"' is not expected.",O(t,i))}var a=i;if("!"===t[++i]){i=g(t,i);continue}var s=!1;"/"===t[i]&&(s=!0,i++);for(var u="";i<t.length&&">"!==t[i]&&" "!==t[i]&&"\t"!==t[i]&&"\n"!==t[i]&&"\r"!==t[i];i++)u+=t[i];if("/"===(u=u.trim())[u.length-1]&&(u=u.substring(0,u.length-1),i--),!d(u))return S("InvalidTag",0===u.trim().length?"Invalid space after '<'.":"Tag '"+u+"' is an invalid name.",O(t,i));var c=w(t,i);if(!1===c)return S("InvalidAttr","Attributes for '"+u+"' have open quote.",O(t,i));var p=c.value;if(i=c.index,"/"===p[p.length-1]){var l=i-p.length,f=_(p=p.substring(0,p.length-1),e);if(!0!==f)return S(f.err.code,f.err.msg,O(t,l+f.err.line));n=!0}else if(s){if(!c.tagClosed)return S("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",O(t,i));if(p.trim().length>0)return S("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",O(t,a));if(0===r.length)return S("InvalidTag","Closing tag '"+u+"' has not been opened.",O(t,a));var m=r.pop();if(u!==m.tagName){var b=O(t,m.tagStartPos);return S("InvalidTag","Expected closing tag '"+m.tagName+"' (opened in line "+b.line+", col "+b.col+") instead of closing tag '"+u+"'.",O(t,a))}0==r.length&&(o=!0)}else{var x=_(p,e);if(!0!==x)return S(x.err.code,x.err.msg,O(t,i-p.length+x.err.line));if(!0===o)return S("InvalidXml","Multiple possible root nodes found.",O(t,i));-1!==e.unpairedTags.indexOf(u)||r.push({tagName:u,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 S("InvalidChar","char '&' is not expected.",O(t,i));i=k}else if(!0===o&&!y(t[i]))return S("InvalidXml","Extra text at the end",O(t,i));"<"===t[i]&&i--}return n?1==r.length?S("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",O(t,r[0].tagStartPos)):!(r.length>0)||S("InvalidXml","Invalid '"+JSON.stringify(r.map((function(t){return t.tagName})),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):S("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 S("InvalidXml","XML declaration allowed only at the start of the document.",O(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 _(t,e){for(var r=f(t,k),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]&&!e.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(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 S(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function F(t){return d(t)}function O(t,e){var r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function j(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 I,C=function(t){var e=Object.assign({},T,t);return e.processEntities=D(e.processEntities),e};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 B(t,e,r){return(e=N(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}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)}I="function"!=typeof Symbol?"@@xmlMetadata":Symbol("XML Node Metadata");var R=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 I}}],(r=[{key:"add",value:function(t,e){"__proto__"===t&&(t="#__proto__"),this.child.push(B({},t,e))}},{key:"addChild",value:function(t,e){"__proto__"===t.tagname&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push(B(B({},t.tagname,t.child),":@",t[":@"])):this.child.push(B({},t.tagname,t.child)),void 0!==e&&(this.child[this.child.length-1][I]={startIndex:e})}}])&&z(e.prototype,r),n&&z(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function M(t){return M="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},M(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,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(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 $(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,G(n.key),n)}}function G(t){var e=function(t){if("object"!=M(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=M(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==M(e)?e:String(e)}var V=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,s=void 0,u=U(this.readEntityExp(t,e+1,this.suppressValidationErr),3);if(a=u[0],s=u[1],e=u[2],-1===s.indexOf("&")){var c=a.replace(/[.\-+*:]/g,"\\.");r[a]={regx:RegExp("&".concat(c,";"),"g"),val:s}}}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=Z(t,e);for(var r="";e<t.length&&!/\s/.test(t[e])&&'"'!==t[e]&&"'"!==t[e];)r+=t[e],e++;if(Y(r),e=Z(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=Z(t,e);for(var r="";e<t.length&&!/\s/.test(t[e]);)r+=t[e],e++;!this.suppressValidationErr&&Y(r),e=Z(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=Z(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=Z(t,e)]||"'"===t[e]){var s=U(this.readIdentifierVal(t,e,"systemIdentifier"),2);e=s[0],i=s[1]}}else if("SYSTEM"===n){var u=U(this.readIdentifierVal(t,e,"systemIdentifier"),2);if(e=u[0],i=u[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=Z(t,e);for(var r="";e<t.length&&!/\s/.test(t[e]);)r+=t[e],e++;if(!this.suppressValidationErr&&!d(r))throw new Error('Invalid element name: "'.concat(r,'"'));var n="";if("E"===t[e=Z(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=Z(t,e);for(var r="";e<t.length&&!/\s/.test(t[e]);)r+=t[e],e++;Y(r),e=Z(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=Z(t,e);var o="";if("NOTATION"===t.substring(e,e+8).toUpperCase()){if(o="NOTATION","("!==t[e=Z(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=Z(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=Z(t,e);var s="";if("#REQUIRED"===t.substring(e,e+8).toUpperCase())s="#REQUIRED",e+=8;else if("#IMPLIED"===t.substring(e,e+7).toUpperCase())s="#IMPLIED",e+=7;else{var u=U(this.readIdentifierVal(t,e,"ATTLIST"),2);e=u[0],s=u[1]}return{elementName:r,attributeName:n,attributeType:o,defaultValue:s,index:e}}}])&&$(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Z=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(d(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=st,this.resolveNameSpace=ut,this.buildAttributesMap=pt,this.isItStopNode=mt,this.replaceEntitiesValue=dt,this.readStopNodeData=gt,this.saveTextToParentTag=ht,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,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)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 st(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 s=this.options.tagValueProcessor(e,t,r,o,i);return null==s?t:et(s)!==et(t)||s!==t?s:this.options.trimValues||t.trim()===t?bt(t,this.options.parseTagValue,this.options.numberParseOptions):t}}function ut(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 ct=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,ct),o=n.length,i={},a=0;a<o;a++){var s=this.resolveNameSpace(n[a][1]);if(!this.ignoreAttributesFn(s,e)){var u=n[a][4],c=this.options.attributeNamePrefix+s;if(s.length)if(this.options.transformAttributeName&&(c=this.options.transformAttributeName(c)),"__proto__"===c&&(c="#__proto__"),void 0!==u){this.options.trimValues&&(u=u.trim()),u=this.replaceEntitiesValue(u,r,e);var p=this.options.attributeValueProcessor(s,u,e);null==p?i[c]=u:et(p)!==et(u)||p!==u?i[c]=p:i[c]=bt(u,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(i[c]=!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 R("!xml"),r=e,n="",o="";this.entityExpansionCount=0,this.currentExpandedLength=0;for(var i=new V(this.options.processEntities),a=0;a<t.length;a++)if("<"===t[a])if("/"===t[a+1]){var s=yt(t,">",a,"Closing Tag is not closed."),u=t.substring(a+2,s).trim();if(this.options.removeNSPrefix){var c=u.indexOf(":");-1!==c&&(u=u.substr(c+1))}this.options.transformTagName&&(u=this.options.transformTagName(u)),r&&(n=this.saveTextToParentTag(n,r,o));var p=o.substring(o.lastIndexOf(".")+1);if(u&&-1!==this.options.unpairedTags.indexOf(u))throw new Error("Unpaired tag can not be used as closing tag: </".concat(u,">"));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("?"===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 d=new R(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("!--"===t.substr(a+1,3)){var h=yt(t,"--\x3e",a+4,"Comment is not closed.");if(this.options.commentPropName){var m=t.substring(a+4,h-2);n=this.saveTextToParentTag(n,r,o),r.add(this.options.commentPropName,[tt({},this.options.textNodeName,m)])}a=h}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,_=x.tagExp,E=x.attrExpPresent,S=x.closeIndex;if(this.options.transformTagName){var F=this.options.transformTagName(w);_===w&&(_=F),w=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("."))),w!==e.tagname&&(o+=o?"."+w:w);var j=a;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,o,w)){var P="";if(_.length>0&&_.lastIndexOf("/")===_.length-1)"/"===w[w.length-1]?(w=w.substr(0,w.length-1),o=o.substr(0,o.length-1),_=w):_=_.substr(0,_.length-1),a=x.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(w))a=x.closeIndex;else{var A=this.readStopNodeData(t,k,S+1);if(!A)throw new Error("Unexpected end of ".concat(k));a=A.i,P=A.tagContent}var T=new R(w);w!==_&&E&&(T[":@"]=this.buildAttributesMap(_,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,j)}else{if(_.length>0&&_.lastIndexOf("/")===_.length-1){if("/"===w[w.length-1]?(w=w.substr(0,w.length-1),o=o.substr(0,o.length-1),_=w):_=_.substr(0,_.length-1),this.options.transformTagName){var D=this.options.transformTagName(w);_===w&&(_=D),w=D}var I=new R(w);w!==_&&E&&(I[":@"]=this.buildAttributesMap(_,o,w)),this.addChild(r,I,o,j),o=o.substr(0,o.lastIndexOf("."))}else{var C=new R(w);this.tagsNodeStack.push(r),w!==_&&E&&(C[":@"]=this.buildAttributesMap(_,o,w)),this.addChild(r,C,o,j),r=C}n="",a=S}}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 dt=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 s=t.length;if(t=t.replace(i.regx,i.val),n.maxExpandedLength&&(this.currentExpandedLength+=t.length-s,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 u in this.lastEntities){var c=this.lastEntities[u];t=t.replace(c.regex,c.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 ht(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/),s=o,u=!0;-1!==a&&(s=o.substring(0,a),o=o.substring(a+1).trimStart());var c=s;if(r){var p=s.indexOf(":");-1!==p&&(u=(s=s.substr(p+1))!==n.data.substr(p+1))}return{tagName:s,tagExp:o,closeIndex:i,attrExpPresent:u,rawTagName:c}}}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],s=o?t[a.length+1]===i:t[a.length]===i;return a.length>1&&s?t:1!==a.length||!n[3].startsWith(".".concat(i))&&n[3][0]!==i?r.leadingZeros&&!s?(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],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,u=i?"."===t[a.length+1]:"."===t[a.length];if(!e.leadingZeros&&(a.length>1||1===a.length&&!u))return t;var c=Number(r),p=String(c);if(0===c)return c;if(-1!==p.search(/[eE]/))return e.eNotation?c:t;if(-1!==r.indexOf("."))return"0"===p||p===s||p==="".concat(i).concat(s)?c:t;var l=a?s:r;return a?l===p||i+l===p?c:t:l===p||l===i+p?c:t}return t}(t,r)}return void 0!==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=R.getMetaDataSymbol();function kt(t,e){return _t(t,e)}function _t(t,e,r){for(var n,o={},i=0;i<t.length;i++){var a,s=t[i],u=Et(s);if(a=void 0===r?u:r+"."+u,u===e.textNodeName)void 0===n?n=s[u]:n+=""+s[u];else{if(void 0===u)continue;if(s[u]){var c=_t(s[u],e,a),p=Ft(c,e);void 0!==s[wt]&&(c[wt]=s[wt]),s[":@"]?St(c,s[":@"],a,e):1!==Object.keys(c).length||void 0===c[e.textNodeName]||e.alwaysCreateTextNode?0===Object.keys(c).length&&(e.alwaysCreateTextNode?c[e.textNodeName]="":c=""):c=c[e.textNodeName],void 0!==o[u]&&o.hasOwnProperty(u)?(Array.isArray(o[u])||(o[u]=[o[u]]),o[u].push(c)):e.isArray(u,a,p)?o[u]=[c]:o[u]=c}}}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 St(t,e,r,n){if(e)for(var o=Object.keys(e),i=o.length,a=0;a<i;a++){var s=o[a];n.isArray(s,r+"."+s,!0,!0)?t[s]=[e[s]]:t[s]=e[s]}}function Ft(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 Ot(t){return Ot="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},Ot(t)}function jt(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"!=Ot(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Ot(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ot(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 R.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}}])&&jt(e.prototype,r),n&&jt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Tt=r(1227),Dt=r.n(Tt)()("fs:request:data"),It=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,c.getVersion)()),t.headers=a(t.headers,"filestack-trace-id","".concat(Math.floor(Date.now()/1e3),"-").concat((0,c.uniqueId)())),t.headers=a(t.headers,"filestack-trace-span","jssdk-".concat((0,c.uniqueId)())),t):t},Lt=function(t){return(0,u.sH)(void 0,void 0,void 0,(function(){var e,r;return(0,u.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)]}))}))},Bt=function(t,e){if(!e)return t;var r=zt(e),n=t.indexOf("#");return-1!==n&&(t=t.slice(0,n)),t+(-1===t.indexOf("?")?"?":"&")+r},zt=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("&")},Nt=r(6854)},863:(t,e,r)=>{"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(5465);t.exports=i.call(n,o)},1090:(t,e,r)=>{"use strict";var n=r(1545).hp;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(){i=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",p=s.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,i=Object.create(o.prototype),s=new D(n||[]);return a(i,"_invoke",{value:j(t,r,s)}),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function x(){}function w(){}var k={};l(k,u,(function(){return this}));var _=Object.getPrototypeOf,E=_&&_(_(I([])));E&&E!==r&&n.call(E,u)&&(k=E);var S=w.prototype=b.prototype=Object.create(k);function F(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,s,u){var c=d(t[i],t,a);if("throw"!==c.type){var p=c.arg,l=p.value;return l&&"object"==o(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,u)}),(function(t){r("throw",t,s,u)})):e.resolve(l).then((function(t){p.value=t,s(p)}),(function(t){return r("throw",t,s,u)}))}u(c.arg)}var i;a(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=h;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 s=n.delegate;if(s){var u=P(s,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var c=d(e,r,n);if("normal"===c.type){if(o=n.done?v:m,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.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=d(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 I(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(o(e)+" is not iterable")}return x.prototype=w,a(S,"constructor",{value:w,configurable:!0}),a(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(S),t},e.awrap=function(t){return{__await:t}},F(O.prototype),l(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(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},F(S),l(S,p,"Generator"),l(S,u,(function(){return this})),l(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=I,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 s.type="throw",s.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],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)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:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function a(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function s(t){a(i,n,o,s,u,"next",t)}function u(t){a(i,n,o,s,u,"throw",t)}s(void 0)}))}}function u(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 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)}Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractTokenizer=void 0;var p=r(1787),l=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.position=0,this.numBuffer=new Uint8Array(8),this.fileInfo=e||{}}var e,r,o,a,c,l,f,d;return e=t,r=[{key:"readToken",value:(d=s(i().mark((function t(e){var r,o,a=arguments;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:this.position,o=n.alloc(e.len),t.next=4,this.readBuffer(o,{position:r});case 4:if(!(t.sent<e.len)){t.next=7;break}throw new p.EndOfStreamError;case 7:return t.abrupt("return",e.get(o,0));case 8:case"end":return t.stop()}}),t,this)}))),function(t){return d.apply(this,arguments)})},{key:"peekToken",value:(f=s(i().mark((function t(e){var r,o,a=arguments;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:this.position,o=n.alloc(e.len),t.next=4,this.peekBuffer(o,{position:r});case 4:if(!(t.sent<e.len)){t.next=7;break}throw new p.EndOfStreamError;case 7:return t.abrupt("return",e.get(o,0));case 8:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"readNumber",value:(l=s(i().mark((function t(e){return i().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 p.EndOfStreamError;case 5:return t.abrupt("return",e.get(this.numBuffer,0));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"peekNumber",value:(c=s(i().mark((function t(e){return i().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 p.EndOfStreamError;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:"ignore",value:(a=s(i().mark((function t(e){var r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===this.fileInfo.size){t.next=5;break}if(r=this.fileInfo.size-this.position,!(e>r)){t.next=5;break}return this.position+=r,t.abrupt("return",r);case 5:return this.position+=e,t.abrupt("return",e);case 7:case"end":return t.stop()}}),t,this)}))),function(t){return a.apply(this,arguments)})},{key:"close",value:(o=s(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)})},{key:"normalizeOptions",value:function(t,e){if(e&&void 0!==e.position&&e.position<this.position)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");return e?{mayBeLess:!0===e.mayBeLess,offset:e.offset?e.offset:0,length:e.length?e.length:t.length-(e.offset?e.offset:0),position:e.position?e.position:this.position}:{mayBeLess:!1,offset:0,length:t.length,position:this.position}}}],r&&u(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.AbstractTokenizer=l},1226:t=>{"use strict";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")}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&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},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}}},1310:t=>{"use strict";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 s=new o(n,i||t,a),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],s]:t._events[u].push(s):(t._events[u]=s,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}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 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},s.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},s.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},s.prototype.emit=function(t,e,n,o,i,a){var s=r?r+t:t;if(!this._events[s])return!1;var u,c,p=this._events[s],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(c=1,u=new Array(l-1);c<l;c++)u[c-1]=arguments[c];p.fn.apply(p.context,u)}else{var f,d=p.length;for(c=0;c<d;c++)switch(p[c].once&&this.removeListener(t,p[c].fn,void 0,!0),l){case 1:p[c].fn.call(p[c].context);break;case 2:p[c].fn.call(p[c].context,e);break;case 3:p[c].fn.call(p[c].context,e,n);break;case 4:p[c].fn.call(p[c].context,e,n,o);break;default:if(!u)for(f=1,u=new Array(l-1);f<l;f++)u[f-1]=arguments[f];p[c].fn.apply(p[c].context,u)}}return!0},s.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},s.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},s.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 s=this._events[i];if(s.fn)s.fn!==e||o&&!s.once||n&&s.context!==n||a(this,i);else{for(var u=0,c=[],p=s.length;u<p;u++)(s[u].fn!==e||o&&!s[u].once||n&&s[u].context!==n)&&c.push(s[u]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.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},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,t.exports=s},1371:(t,e,r)=>{"use strict";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 s(t,e){return e+": "+t.toString()+"\n"}function u(t){Error.captureStackTrace&&Error.captureStackTrace(this,u),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 u(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(s).join("")},Object.defineProperty(a.prototype,"valid",{get:function(){return!this.errors.length}}),t.exports.ValidatorResultError=u,u.prototype=new Error,u.prototype.constructor=u,u.prototype.name="Validation Error";var c=e.SchemaError=function t(e,r){this.message=e,this.schema=r,Error.call(this,e),Error.captureStackTrace(this,t)};c.prototype=Object.create(Error.prototype,{constructor:{value:c,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 d(t,e,r,o){"object"===n(r)?e[o]=y(t[o],r):-1===t.indexOf(r)&&e.push(r)}function h(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(d.bind(null,t,o))):(t&&"object"===n(t)&&Object.keys(t).forEach(h.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}},1424:(t,e,r)=>{"use strict";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(){o=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",p=s.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,i=Object.create(o.prototype),s=new D(n||[]);return a(i,"_invoke",{value:j(t,r,s)}),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function x(){}function w(){}var k={};l(k,u,(function(){return this}));var _=Object.getPrototypeOf,E=_&&_(_(I([])));E&&E!==r&&i.call(E,u)&&(k=E);var S=w.prototype=b.prototype=Object.create(k);function F(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,a,s,u){var c=d(t[o],t,a);if("throw"!==c.type){var p=c.arg,l=p.value;return l&&"object"==n(l)&&i.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,u)}),(function(t){r("throw",t,s,u)})):e.resolve(l).then((function(t){p.value=t,s(p)}),(function(t){return r("throw",t,s,u)}))}u(c.arg)}var o;a(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function j(e,r,n){var o=h;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 s=n.delegate;if(s){var u=P(s,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var c=d(e,r,n);if("normal"===c.type){if(o=n.done?v:m,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.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=d(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 I(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(i.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return x.prototype=w,a(S,"constructor",{value:w,configurable:!0}),a(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(S),t},e.awrap=function(t){return{__await:t}},F(O.prototype),l(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(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},F(S),l(S,p,"Generator"),l(S,u,(function(){return this})),l(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=I,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)&&i.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 s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!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 u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)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&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.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:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function i(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}var a=r(4397),s=r(249);function u(){var t;return t=o().mark((function t(e){var r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.fromFile(e);case 2:return r=t.sent,t.prev=3,t.next=6,s.fromTokenizer(r);case 6:return t.abrupt("return",t.sent);case 7:return t.prev=7,t.next=10,r.close();case 10:return t.finish(7);case 11:case"end":return t.stop()}}),t,null,[[3,,7,11]])})),u=function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,u,"next",t)}function u(t){i(a,n,o,s,u,"throw",t)}s(void 0)}))},u.apply(this,arguments)}var c={fromFile:function(t){return u.apply(this,arguments)}};Object.assign(c,s),Object.defineProperty(c,"extensions",{get:function(){return s.extensions}}),Object.defineProperty(c,"mimeTypes",{get:function(){return s.mimeTypes}}),t.exports=c},1545:(t,e,r)=>{"use strict";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,o(n.key),n)}}function o(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 i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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)}var c=r(5768),p=r(6773),l="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.hp=h,e.IS=50;var f=2147483647;function d(t){if(t>f)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,h.prototype),e}function h(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return v(t)}return m(t,e,r)}function m(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!h.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|w(t,e),n=d(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(et(t,Uint8Array)){var e=new Uint8Array(t);return b(e.buffer,e.byteOffset,e.byteLength)}return g(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+u(t));if(et(t,ArrayBuffer)||t&&et(t.buffer,ArrayBuffer))return b(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(et(t,SharedArrayBuffer)||t&&et(t.buffer,SharedArrayBuffer)))return b(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return h.from(n,e,r);var o=function(t){if(h.isBuffer(t)){var e=0|x(t.length),r=d(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||rt(t.length)?d(0):g(t):"Buffer"===t.type&&Array.isArray(t.data)?g(t.data):void 0}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return h.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+u(t))}function y(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function v(t){return y(t),d(t<0?0:0|x(t))}function g(t){for(var e=t.length<0?0:0|x(t.length),r=d(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function b(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(n,h.prototype),n}function x(t){if(t>=f)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f.toString(16)+" bytes");return 0|t}function w(t,e){if(h.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||et(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+u(t));var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return X(t).length;default:if(o)return n?-1:J(t).length;e=(""+e).toLowerCase(),o=!0}}function k(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return B(this,e,r);case"utf8":case"utf-8":return D(this,e,r);case"ascii":return C(this,e,r);case"latin1":case"binary":return L(this,e,r);case"base64":return T(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function _(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function E(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),rt(r=+r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=h.from(e,n)),h.isBuffer(e))return 0===e.length?-1:S(t,e,r,n,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):S(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function S(t,e,r,n,o){var i,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var p=-1;for(i=r;i<s;i++)if(c(t,i)===c(e,-1===p?0:i-p)){if(-1===p&&(p=i),i-p+1===u)return p*a}else-1!==p&&(i-=i-p),p=-1}else for(r+u>s&&(r=s-u),i=r;i>=0;i--){for(var l=!0,f=0;f<u;f++)if(c(t,i+f)!==c(e,f)){l=!1;break}if(l)return i}return-1}function F(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i,a=e.length;for(n>a/2&&(n=a/2),i=0;i<n;++i){var s=parseInt(e.substr(2*i,2),16);if(rt(s))return i;t[r+i]=s}return i}function O(t,e,r,n){return tt(J(e,t.length-r),t,r,n)}function j(t,e,r,n){return tt(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function P(t,e,r,n){return tt(X(e),t,r,n)}function A(t,e,r,n){return tt(function(t,e){for(var r,n,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)n=(r=t.charCodeAt(a))>>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function T(t,e,r){return 0===e&&r===t.length?c.fromByteArray(t):c.fromByteArray(t.slice(e,r))}function D(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i=t[o],a=null,s=i>239?4:i>223?3:i>191?2:1;if(o+s<=r){var u=void 0,c=void 0,p=void 0,l=void 0;switch(s){case 1:i<128&&(a=i);break;case 2:128==(192&(u=t[o+1]))&&(l=(31&i)<<6|63&u)>127&&(a=l);break;case 3:u=t[o+1],c=t[o+2],128==(192&u)&&128==(192&c)&&(l=(15&i)<<12|(63&u)<<6|63&c)>2047&&(l<55296||l>57343)&&(a=l);break;case 4:u=t[o+1],c=t[o+2],p=t[o+3],128==(192&u)&&128==(192&c)&&128==(192&p)&&(l=(15&i)<<18|(63&u)<<12|(63&c)<<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(t){var e=t.length;if(e<=I)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=I));return r}(n)}h.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),h.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(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}}),h.poolSize=8192,h.from=function(t,e,r){return m(t,e,r)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array),h.alloc=function(t,e,r){return function(t,e,r){return y(t),t<=0?d(t):void 0!==e?"string"==typeof r?d(t).fill(e,r):d(t).fill(e):d(t)}(t,e,r)},h.allocUnsafe=function(t){return v(t)},h.allocUnsafeSlow=function(t){return v(t)},h.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==h.prototype},h.compare=function(t,e){if(et(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),et(e,Uint8Array)&&(e=h.from(e,e.offset,e.byteLength)),!h.isBuffer(t)||!h.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},h.isEncoding=function(t){switch(String(t).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}},h.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return h.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=h.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var i=t[r];if(et(i,Uint8Array))o+i.length>n.length?(h.isBuffer(i)||(i=h.from(i)),i.copy(n,o)):Uint8Array.prototype.set.call(n,i,o);else{if(!h.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o)}o+=i.length}return n},h.byteLength=w,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)_(this,e,e+1);return this},h.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)_(this,e,e+3),_(this,e+1,e+2);return this},h.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)_(this,e,e+7),_(this,e+1,e+6),_(this,e+2,e+5),_(this,e+3,e+4);return this},h.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?D(this,0,t):k.apply(this,arguments)},h.prototype.toLocaleString=h.prototype.toString,h.prototype.equals=function(t){if(!h.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===h.compare(this,t)},h.prototype.inspect=function(){var t="",r=e.IS;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},l&&(h.prototype[l]=h.prototype.inspect),h.prototype.compare=function(t,e,r,n,o){if(et(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),!h.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+u(t));if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(i,a),c=this.slice(n,o),p=t.slice(e,r),l=0;l<s;++l)if(c[l]!==p[l]){i=c[l],a=p[l];break}return i<a?-1:a<i?1:0},h.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},h.prototype.indexOf=function(t,e,r){return E(this,t,e,r,!0)},h.prototype.lastIndexOf=function(t,e,r){return E(this,t,e,r,!1)},h.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>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,t,e,r);case"utf8":case"utf-8":return O(this,t,e,r);case"ascii":case"latin1":case"binary":return j(this,t,e,r);case"base64":return P(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function C(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function L(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function B(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=nt[t[i]];return o}function z(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function N(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,r,n,o,i){if(!h.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function M(t,e,r,n,o){Y(e,n,o,t,r,7);var i=Number(e&BigInt(4294967295));t[r++]=i,i>>=8,t[r++]=i,i>>=8,t[r++]=i,i>>=8,t[r++]=i;var a=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a,r}function U(t,e,r,n,o){Y(e,n,o,t,r,7);var i=Number(e&BigInt(4294967295));t[r+7]=i,i>>=8,t[r+6]=i,i>>=8,t[r+5]=i,i>>=8,t[r+4]=i;var a=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=a,a>>=8,t[r+2]=a,a>>=8,t[r+1]=a,a>>=8,t[r]=a,r+8}function q(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function $(t,e,r,n,o){return e=+e,r>>>=0,o||q(t,0,r,4),p.write(t,e,r,n,23,4),r+4}function G(t,e,r,n,o){return e=+e,r>>>=0,o||q(t,0,r,8),p.write(t,e,r,n,52,8),r+8}h.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,h.prototype),n},h.prototype.readUintLE=h.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||N(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},h.prototype.readUintBE=h.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||N(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},h.prototype.readUint8=h.prototype.readUInt8=function(t,e){return t>>>=0,e||N(t,1,this.length),this[t]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(t,e){return t>>>=0,e||N(t,2,this.length),this[t]|this[t+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(t,e){return t>>>=0,e||N(t,2,this.length),this[t]<<8|this[t+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(t,e){return t>>>=0,e||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(t,e){return t>>>=0,e||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},h.prototype.readBigUInt64LE=ot((function(t){W(t>>>=0,"offset");var e=this[t],r=this[t+7];void 0!==e&&void 0!==r||K(t,this.length-8);var n=e+this[++t]*Math.pow(2,8)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,24),o=this[++t]+this[++t]*Math.pow(2,8)+this[++t]*Math.pow(2,16)+r*Math.pow(2,24);return BigInt(n)+(BigInt(o)<<BigInt(32))})),h.prototype.readBigUInt64BE=ot((function(t){W(t>>>=0,"offset");var e=this[t],r=this[t+7];void 0!==e&&void 0!==r||K(t,this.length-8);var n=e*Math.pow(2,24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+this[++t],o=this[++t]*Math.pow(2,24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+r;return(BigInt(n)<<BigInt(32))+BigInt(o)})),h.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||N(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*e)),n},h.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||N(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},h.prototype.readInt8=function(t,e){return t>>>=0,e||N(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},h.prototype.readInt16LE=function(t,e){t>>>=0,e||N(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},h.prototype.readInt16BE=function(t,e){t>>>=0,e||N(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},h.prototype.readInt32LE=function(t,e){return t>>>=0,e||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},h.prototype.readInt32BE=function(t,e){return t>>>=0,e||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},h.prototype.readBigInt64LE=ot((function(t){W(t>>>=0,"offset");var e=this[t],r=this[t+7];void 0!==e&&void 0!==r||K(t,this.length-8);var n=this[t+4]+this[t+5]*Math.pow(2,8)+this[t+6]*Math.pow(2,16)+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(e+this[++t]*Math.pow(2,8)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,24))})),h.prototype.readBigInt64BE=ot((function(t){W(t>>>=0,"offset");var e=this[t],r=this[t+7];void 0!==e&&void 0!==r||K(t,this.length-8);var n=(e<<24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+this[++t];return(BigInt(n)<<BigInt(32))+BigInt(this[++t]*Math.pow(2,24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+r)})),h.prototype.readFloatLE=function(t,e){return t>>>=0,e||N(t,4,this.length),p.read(this,t,!0,23,4)},h.prototype.readFloatBE=function(t,e){return t>>>=0,e||N(t,4,this.length),p.read(this,t,!1,23,4)},h.prototype.readDoubleLE=function(t,e){return t>>>=0,e||N(t,8,this.length),p.read(this,t,!0,52,8)},h.prototype.readDoubleBE=function(t,e){return t>>>=0,e||N(t,8,this.length),p.read(this,t,!1,52,8)},h.prototype.writeUintLE=h.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||R(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},h.prototype.writeUintBE=h.prototype.writeUIntBE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||R(this,t,e,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},h.prototype.writeUint8=h.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,1,255,0),this[e]=255&t,e+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},h.prototype.writeBigUInt64LE=ot((function(t){return M(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),h.prototype.writeBigUInt64BE=ot((function(t){return U(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),h.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);R(this,t,e,r,o-1,-o)}var i=0,a=1,s=0;for(this[e]=255&t;++i<r&&(a*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/a|0)-s&255;return e+r},h.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);R(this,t,e,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/a|0)-s&255;return e+r},h.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},h.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},h.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},h.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},h.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},h.prototype.writeBigInt64LE=ot((function(t){return M(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),h.prototype.writeBigInt64BE=ot((function(t){return U(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),h.prototype.writeFloatLE=function(t,e,r){return $(this,t,e,!0,r)},h.prototype.writeFloatBE=function(t,e,r){return $(this,t,e,!1,r)},h.prototype.writeDoubleLE=function(t,e,r){return G(this,t,e,!0,r)},h.prototype.writeDoubleBE=function(t,e,r){return G(this,t,e,!1,r)},h.prototype.copy=function(t,e,r,n){if(!h.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<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),t.length-e<n-r&&(n=t.length-e+r);var o=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),o},h.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=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&&!h.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var o=t.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(t=o)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var a=h.isBuffer(t)?t:h.from(t,n),s=a.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=a[i%s]}return this};var V={};function Z(t,e,r){V[t]=function(r){!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&&i(t,e)}(d,r);var o,c,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(t){return!1}}(),function(){var t,e=s(p);if(l){var r=s(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 a(t)}(this,t)});function d(){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),r=f.call(this),Object.defineProperty(a(r),"message",{value:e.apply(a(r),arguments),writable:!0,configurable:!0}),r.name="".concat(r.name," [").concat(t,"]"),r.stack,delete r.name,r}return o=d,(c=[{key:"code",get:function(){return t},set:function(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(t,"]: ").concat(this.message)}}])&&n(o.prototype,c),Object.defineProperty(o,"prototype",{writable:!1}),d}(r)}function H(t){for(var e="",r=t.length,n="-"===t[0]?1:0;r>=n+4;r-=3)e="_".concat(t.slice(r-3,r)).concat(e);return"".concat(t.slice(0,r)).concat(e)}function Y(t,e,r,n,o,i){if(t>r||t<e){var a,s="bigint"==typeof e?"n":"";throw a=i>3?0===e||e===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(e).concat(s," and <= ").concat(r).concat(s),new V.ERR_OUT_OF_RANGE("value",a,t)}!function(t,e,r){W(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||K(e,t.length-(r+1))}(n,o,i)}function W(t,e){if("number"!=typeof t)throw new V.ERR_INVALID_ARG_TYPE(e,"number",t)}function K(t,e,r){if(Math.floor(t)!==t)throw W(t,r),new V.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new V.ERR_BUFFER_OUT_OF_BOUNDS;throw new V.ERR_OUT_OF_RANGE(r||"offset",">= ".concat(r?1:0," and <= ").concat(e),t)}Z("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?"".concat(t," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),Z("ERR_INVALID_ARG_TYPE",(function(t,e){return'The "'.concat(t,'" argument must be of type number. Received type ').concat(u(e))}),TypeError),Z("ERR_OUT_OF_RANGE",(function(t,e,r){var n='The value of "'.concat(t,'" is out of range.'),o=r;return Number.isInteger(r)&&Math.abs(r)>Math.pow(2,32)?o=H(String(r)):"bigint"==typeof r&&(o=String(r),(r>Math.pow(BigInt(2),BigInt(32))||r<-Math.pow(BigInt(2),BigInt(32)))&&(o=H(o)),o+="n"),n+" It must be ".concat(e,". Received ").concat(o)}),RangeError);var Q=/[^+/0-9A-Za-z-_]/g;function J(t,e){var r;e=e||1/0;for(var n=t.length,o=null,i=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=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((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function X(t){return c.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(Q,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function tt(t,e,r,n){var o;for(o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function et(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function rt(t){return t!=t}var nt=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)e[n+o]=t[r]+t[o];return e}();function ot(t){return"undefined"==typeof BigInt?it:t}function it(){throw new Error("BigInt not supported")}},1622:t=>{"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},1635:(t,e,r)=>{"use strict";r.d(e,{C6:()=>o,Cl:()=>i,YH:()=>s,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{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))}function s(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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){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=e.call(t,a)}catch(t){s=[6,t],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},1690:(t,e)=>{"use strict";function r(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}e.stringToBytes=function(t){return(e=t,function(t){if(Array.isArray(t))return r(t)}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):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.")}()).map((function(t){return t.charCodeAt(0)}));var e},e.tarHeaderChecksumMatches=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=parseInt(t.toString("utf8",148,154).replace(/\0.*$/,"").trim(),8);if(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},e.uint32SyncSafeToken={get:function(t,e){return 127&t[e+3]|t[e+2]<<7|t[e+1]<<14|t[e]<<21},len:4}},1787:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StreamReader=e.EndOfStreamError=void 0;var n=r(6273);Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return n.EndOfStreamError}});var o=r(3216);Object.defineProperty(e,"StreamReader",{enumerable:!0,get:function(){return o.StreamReader}})},1837:(t,e,r)=>{"use strict";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,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),p=["'"].concat(c),l=["%","/","?",";","#"].concat(p),f=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+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("?"),s=-1!==i&&i<t.indexOf("#")?"?":"#",c=t.split(s);c[0]=c[0].replace(/\\/g,"/");var b=t=c.join(s);if(b=b.trim(),!r&&1===t.split("#").length){var x=u.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 _="//"===b.substr(0,2);!_||w&&y[w]||(b=b.substr(2),this.slashes=!0)}if(!y[w]&&(_||w&&!v[w])){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 D=A[O];if(D&&!D.match(d)){for(var I="",C=0,L=D.length;C<L;C++)D.charCodeAt(C)>127?I+="x":I+=D[C];if(!I.match(d)){var B=A.slice(0,O),z=A.slice(O+1),N=D.match(h);N&&(B.push(N[1]),z.unshift(N[2])),z.length&&(b="/"+z.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 R=this.port?":"+this.port:"",M=this.hostname||"";this.host=M+R,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[k])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 G=b.indexOf("?");if(-1!==G?(this.search=b.substr(G),this.query=b.substr(G+1),e&&(this.query=g.parse(this.query)),b=b.slice(0,G)):e&&(this.search="",this.query={}),b&&(this.pathname=b),v[k]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){R=this.pathname||"";var V=this.search||"";this.path=R+V}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 s=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),s&&"?"!==s.charAt(0)&&(s="?"+s),e+i+(r=r.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(s=s.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 s=Object.keys(t),u=0;u<s.length;u++){var c=s[u];"protocol"!==c&&(r[c]=t[c])}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 d=(t.pathname||"").split("/");d.length&&!(t.host=d.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),r.pathname=d.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 h=r.pathname||"",m=r.search||"";r.path=h+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("/")||[],_=(d=t.pathname&&t.pathname.split("/")||[],r.protocol&&!v[r.protocol]);if(_&&(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&&(""===d[0]?d[0]=t.host:d.unshift(t.host)),t.host=null),x=x&&(""===d[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=d;else if(d.length)k||(k=[]),k.pop(),k=k.concat(d),r.search=t.search,r.query=t.query;else if(null!=t.search)return _&&(r.host=k.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=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],S=(r.host||t.host||k.length>1)&&("."===E||".."===E)||""===E,F=0,O=k.length;O>=0;O--)"."===(E=k[O])?k.splice(O,1):".."===E?(k.splice(O,1),F++):F&&(k.splice(O,1),F--);if(!x&&!w)for(;F--;F)k.unshift("..");!x||""===k[0]||k[0]&&"/"===k[0].charAt(0)||k.unshift(""),S&&"/"!==k.join("/").substr(-1)&&k.push("");var j,P=""===k[0]||k[0]&&"/"===k[0].charAt(0);return _&&(r.hostname=P?"":k.length?k.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)),(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=s.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=>{"use strict";t.exports=TypeError},1976:(t,e)=>{"use strict";function r(t){return r="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},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,i(n.key),n)}}function o(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function i(t){var e=function(t){if("object"!=r(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:String(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.Deferred=void 0;var a=o((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}))}));e.Deferred=a},1978:(t,e,r)=>{"use strict";var n=r(5465),o=r(7052),i=r(5118),a=r(2069);t.exports=a||n.call(i,o)},2069:t=>{"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},2104:t=>{"use strict";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){"use strict";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,s,u,c=t.length,p=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=c;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*c).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),u=parseInt(a[1],16)||0,i[14]=s,i[15]=u,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 s(t){var e;for(e=0;e<t.length;e+=1)t[e]=a(t[e]);return t.join("")}function u(t){return/[\u0080-\uFFFF]/.test(t)&&(t=unescape(encodeURIComponent(t))),t}function c(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 s(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,s,u=this.byteLength,c=e(r,u),p=u;return n!==t&&(p=e(n,u)),c>p?new ArrayBuffer(0):(o=p-c,i=new ArrayBuffer(o),a=new Uint8Array(i),s=new Uint8Array(this,c,o),a.set(s),i)}}(),p.prototype.append=function(t){return this.appendBinary(u(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=s(this._hash),t&&(r=c(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(u(t),e)},p.hashBinary=function(t,e){var r=s(i(t));return e?c(r):r},p.ArrayBuffer=function(){this.reset()},p.ArrayBuffer.prototype.append=function(t){var e,n,i,a,s=(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),u=s.length;for(this._length+=t.byteLength,e=64;e<=u;e+=64)r(this._hash,o(s.subarray(e-64,e)));return this._buff=e-64<u?new Uint8Array(s.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=s(this._hash),t&&(r=c(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=s(function(t){var e,n,i,a,s,u,c=t.length,p=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=c;e+=64)r(p,o(t.subarray(e-64,e)));for(n=(t=e-64<c?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*c).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),u=parseInt(a[1],16)||0,i[14]=s,i[15]=u,r(p,i),p}(new Uint8Array(t)));return e?c(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)=>{"use strict";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=>{"use strict";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),s=r(0,o.length-a.length),u=[],c=0;c<s;c++)u[c]="$"+c;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}(u)+"){ 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)=>{"use strict";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:()=>u,V1:()=>c,fo:()=>a,mw:()=>o,qf:()=>s});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)},s=function(t){return"[object Blob]"===Object.prototype.toString.call(t)},u=function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},c=function(t){return"undefined"!=typeof FormData&&t instanceof FormData},p=function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}},3190:(t,e,r)=>{"use strict";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}},3216:(t,e,r)=>{"use strict";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(){o=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",p=s.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,i=Object.create(o.prototype),s=new D(n||[]);return a(i,"_invoke",{value:j(t,r,s)}),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function x(){}function w(){}var k={};l(k,u,(function(){return this}));var _=Object.getPrototypeOf,E=_&&_(_(I([])));E&&E!==r&&i.call(E,u)&&(k=E);var S=w.prototype=b.prototype=Object.create(k);function F(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,a,s,u){var c=d(t[o],t,a);if("throw"!==c.type){var p=c.arg,l=p.value;return l&&"object"==n(l)&&i.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,u)}),(function(t){r("throw",t,s,u)})):e.resolve(l).then((function(t){p.value=t,s(p)}),(function(t){return r("throw",t,s,u)}))}u(c.arg)}var o;a(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function j(e,r,n){var o=h;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 s=n.delegate;if(s){var u=P(s,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var c=d(e,r,n);if("normal"===c.type){if(o=n.done?v:m,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.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=d(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 I(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(i.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return x.prototype=w,a(S,"constructor",{value:w,configurable:!0}),a(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(S),t},e.awrap=function(t){return{__await:t}},F(O.prototype),l(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(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},F(S),l(S,p,"Generator"),l(S,u,(function(){return this})),l(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=I,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)&&i.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 s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!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 u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)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&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.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:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function i(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,u,"next",t)}function u(t){i(a,n,o,s,u,"throw",t)}s(void 0)}))}}function s(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,u(n.key),n)}}function u(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}),e.StreamReader=e.EndOfStreamError=void 0;var c=r(6273),p=r(1976),l=r(6273);Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return l.EndOfStreamError}});var f=function(){function t(e){var r=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.s=e,this.deferred=null,this.endOfStream=!1,this.peekQueue=[],!e.read||!e.once)throw new Error("Expected an instance of stream.Readable");this.s.once("end",(function(){return r.reject(new c.EndOfStreamError)})),this.s.once("error",(function(t){return r.reject(t)})),this.s.once("close",(function(){return r.reject(new Error("Stream closed"))}))}var e,r,n,i,u;return e=t,r=[{key:"peek",value:(u=a(o().mark((function t(e,r,n){var i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.read(e,r,n);case 2:return i=t.sent,this.peekQueue.push(e.subarray(r,r+i)),t.abrupt("return",i);case 5:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return u.apply(this,arguments)})},{key:"read",value:(i=a(o().mark((function t(e,r,n){var i,a,s,u,p,l;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==n){t.next=2;break}return t.abrupt("return",0);case 2:if(0!==this.peekQueue.length||!this.endOfStream){t.next=4;break}throw new c.EndOfStreamError;case 4:i=n,a=0;case 6:if(!(this.peekQueue.length>0&&i>0)){t.next=17;break}if(s=this.peekQueue.pop()){t.next=10;break}throw new Error("peekData should be defined");case 10:u=Math.min(s.length,i),e.set(s.subarray(0,u),r+a),a+=u,i-=u,u<s.length&&this.peekQueue.push(s.subarray(u)),t.next=6;break;case 17:if(!(i>0)||this.endOfStream){t.next=28;break}return p=Math.min(i,1048576),t.next=21,this.readFromStream(e,r+a,p);case 21:if(l=t.sent,a+=l,!(l<p)){t.next=25;break}return t.abrupt("break",28);case 25:i-=l,t.next=17;break;case 28:return t.abrupt("return",a);case 29:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return i.apply(this,arguments)})},{key:"readFromStream",value:(n=a(o().mark((function t(e,r,n){var i,a,s=this;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(i=this.s.read(n))){t.next=6;break}return e.set(i,r),t.abrupt("return",i.length);case 6:return a={buffer:e,offset:r,length:n,deferred:new p.Deferred},this.deferred=a.deferred,this.s.once("readable",(function(){s.readDeferred(a)})),t.abrupt("return",a.deferred.promise);case 10:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return n.apply(this,arguments)})},{key:"readDeferred",value:function(t){var e=this,r=this.s.read(t.length);r?(t.buffer.set(r,t.offset),t.deferred.resolve(r.length),this.deferred=null):this.s.once("readable",(function(){e.readDeferred(t)}))}},{key:"reject",value:function(t){this.endOfStream=!0,this.deferred&&(this.deferred.reject(t),this.deferred=null)}}],r&&s(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.StreamReader=f},3221:(t,e,r)=>{"use strict";var n=r(8299),o=r(3190),i=r(8657),a=r(1953),s=n("%Map%",!0),u=o("Map.prototype.get",!0),c=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=!!s&&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 u(t,e)},has:function(e){return!!t&&p(t,e)},set:function(e,r){t||(t=new s),c(t,e,r)}};return e}},3284:(t,e,r)=>{"use strict";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),s=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=s},3441:(t,e,r)=>{"use strict";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),s=r(3221),u=r(1953),c=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);t.exports=c?function(){var t,e,r={assert:function(t){if(!r.has(t))throw new u("Side channel does not contain "+a(t))},delete:function(r){if(c&&r&&("object"===n(r)||"function"==typeof r)){if(t)return d(t,r)}else if(s&&e)return e.delete(r);return!1},get:function(r){return c&&r&&("object"===n(r)||"function"==typeof r)&&t?p(t,r):e&&e.get(r)},has:function(r){return c&&r&&("object"===n(r)||"function"==typeof r)&&t?f(t,r):!!e&&e.has(r)},set:function(r,o){c&&r&&("object"===n(r)||"function"==typeof r)?(t||(t=new c),l(t,r,o)):s&&(e||(e=s()),e.set(r,o))}};return r}:s},3574:(t,e,r)=>{"use strict";r.d(e,{U:()=>l});var n=r(1635),o=r(1227),i=r.n(o),a=r(3186),s=r(5934),u=r(9653),c=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,c.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 u.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,c.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 d;if(t.cancelToken&&(d=function(e){return i&&(i.abort(),i=null),p("Request canceled by user %s, config: %O",e,t),f(new u.d("Request aborted. Reason: ".concat(e),t,null,u.E.ABORTED))},t.cancelToken.once("cancel",d)),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,c.qg)(i.getAllResponseHeaders()),r=i.response,o={data:r,status:i.status,statusText:i.statusText,headers:e,config:t},i=null,[4,(0,c.xp)(o)]):[2];case 1:return 500<=(o=n.sent()).status&&o.status<=599?(p("Server error(5xx) - %O",o),[2,f(new u.d("Server error ".concat(l),t,o,u.E.SERVER))]):400<=o.status&&o.status<=499?(p("Request error(4xx) - %O",o),[2,f(new u.d("Request error ".concat(l),t,o,u.E.REQUEST))]):(t.cancelToken&&(t.cancelToken.removeListener("cancel",d),d=null),[2,a(o)])}}))}))},i.onabort=function(){i&&(i=null,f(new u.d("Request aborted",t,null,u.E.ABORTED)))},i.onerror=function(e){i=null,p("Request error! %O",e),f(new u.d("Network Error",t,null,u.E.NETWORK))},i.ontimeout=function(){i=null,p("Request timed out. %O",t),f(new u.d("Request timeout",t,null,u.E.TIMEOUT))},"setRequestHeader"in i&&o&&Object.keys(o).length)for(var h in o)void 0!==o[h]&&(p("Set request header %s to %s",h,o[h]),i.setRequestHeader(h,o[h]));"function"==typeof t.onProgress&&[s.j.POST,s.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)=>{"use strict";var n=r(5759);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},3772:(t,e,r)=>{"use strict";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},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",p=s.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),s=new D(n||[]);return i(a,"_invoke",{value:j(t,r,s)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function x(){}function w(){}var k={};l(k,u,(function(){return this}));var _=Object.getPrototypeOf,E=_&&_(_(I([])));E&&E!==r&&o.call(E,u)&&(k=E);var S=w.prototype=b.prototype=Object.create(k);function F(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(n,i,s,u){var c=d(t[n],t,i);if("throw"!==c.type){var p=c.arg,l=p.value;return l&&"object"==a(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,u)}),(function(t){r("throw",t,s,u)})):e.resolve(l).then((function(t){p.value=t,s(p)}),(function(t){return r("throw",t,s,u)}))}u(c.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 j(e,r,n){var o=h;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 s=n.delegate;if(s){var u=P(s,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var c=d(e,r,n);if("normal"===c.type){if(o=n.done?v:m,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.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=d(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 I(e){if(e||""===e){var r=e[u];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(S,"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(S),t},e.awrap=function(t){return{__await:t}},F(O.prototype),l(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(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},F(S),l(S,p,"Generator"),l(S,u,(function(){return this})),l(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=I,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 s.type="throw",s.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],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)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:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).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 s(t){o(a,n,i,s,u,"next",t)}function u(t){o(a,n,i,s,u,"throw",t)}s(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 s(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,u(n.key),n)}}function u(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 c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(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),d=r(3284),h=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&&c(t,e)}(x,t);var e,r,o,u,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=h,e._resolveIdle=h,!("number"==typeof(t=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:d.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=h,0===this._pendingCount&&(this._resolveIdle(),this._resolveIdle=h,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 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?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,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 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:(u=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 u.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&&s(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),x}(l);e.A=y},3988:(t,e,r)=>{"use strict";var n=r(6889),o=r(9367),i=r(9292);t.exports={formats:i,parse:o,stringify:n}},4021:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromBuffer=e.fromStream=e.EndOfStreamError=void 0;var n=r(4256),o=r(4974),i=r(1787);Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return i.EndOfStreamError}}),e.fromStream=function(t,e){return e=e||{},new n.ReadStreamTokenizer(t,e)},e.fromBuffer=function(t,e){return new o.BufferTokenizer(t,e)}},4218:t=>{"use strict";t.exports=Math.floor},4256:(t,e,r)=>{"use strict";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(){o=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",p=s.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,i=Object.create(o.prototype),s=new D(n||[]);return a(i,"_invoke",{value:j(t,r,s)}),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function x(){}function w(){}var k={};l(k,u,(function(){return this}));var _=Object.getPrototypeOf,E=_&&_(_(I([])));E&&E!==r&&i.call(E,u)&&(k=E);var S=w.prototype=b.prototype=Object.create(k);function F(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,a,s,u){var c=d(t[o],t,a);if("throw"!==c.type){var p=c.arg,l=p.value;return l&&"object"==n(l)&&i.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,u)}),(function(t){r("throw",t,s,u)})):e.resolve(l).then((function(t){p.value=t,s(p)}),(function(t){return r("throw",t,s,u)}))}u(c.arg)}var o;a(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function j(e,r,n){var o=h;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 s=n.delegate;if(s){var u=P(s,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var c=d(e,r,n);if("normal"===c.type){if(o=n.done?v:m,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.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=d(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 I(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(i.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return x.prototype=w,a(S,"constructor",{value:w,configurable:!0}),a(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(S),t},e.awrap=function(t){return{__await:t}},F(O.prototype),l(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(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},F(S),l(S,p,"Generator"),l(S,u,(function(){return this})),l(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=I,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)&&i.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 s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!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 u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)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&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.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:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function i(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,u,"next",t)}function u(t){i(a,n,o,s,u,"throw",t)}s(void 0)}))}}function s(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,u(n.key),n)}}function u(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){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.ReadStreamTokenizer=void 0;var l=r(1090),f=r(1787),d=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)}(v,t);var e,r,i,u,l,d,h,m,y=(h=v,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(t){return!1}}(),function(){var t,e=p(h);if(m){var r=p(this).constructor;t=Reflect.construct(e,arguments,r)}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 v(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,v),(r=y.call(this,e)).streamReader=new f.StreamReader(t),r}return e=v,r=[{key:"getFileInfo",value:(d=a(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.fileInfo);case 1:case"end":return t.stop()}}),t,this)}))),function(){return d.apply(this,arguments)})},{key:"readBuffer",value:(l=a(o().mark((function t(e,r){var n,i,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.normalizeOptions(e,r),!((i=n.position-this.position)>0)){t.next=8;break}return t.next=5,this.ignore(i);case 5:return t.abrupt("return",this.readBuffer(e,r));case 8:if(!(i<0)){t.next=10;break}throw new Error("`options.position` must be equal or greater than `tokenizer.position`");case 10:if(0!==n.length){t.next=12;break}return t.abrupt("return",0);case 12:return t.next=14,this.streamReader.read(e,n.offset,n.length);case 14:if(a=t.sent,this.position+=a,r&&r.mayBeLess||!(a<n.length)){t.next=18;break}throw new f.EndOfStreamError;case 18:return t.abrupt("return",a);case 19:case"end":return t.stop()}}),t,this)}))),function(t,e){return l.apply(this,arguments)})},{key:"peekBuffer",value:(u=a(o().mark((function t(e,r){var n,i,a,s;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.normalizeOptions(e,r),i=0,!n.position){t.next=15;break}if(!((a=n.position-this.position)>0)){t.next=13;break}return s=new Uint8Array(n.length+a),t.next=8,this.peekBuffer(s,{mayBeLess:n.mayBeLess});case 8:return i=t.sent,e.set(s.subarray(a),n.offset),t.abrupt("return",i-a);case 13:if(!(a<0)){t.next=15;break}throw new Error("Cannot peek from a negative offset in a stream");case 15:if(!(n.length>0)){t.next=29;break}return t.prev=16,t.next=19,this.streamReader.peek(e,n.offset,n.length);case 19:i=t.sent,t.next=27;break;case 22:if(t.prev=22,t.t0=t.catch(16),!(r&&r.mayBeLess&&t.t0 instanceof f.EndOfStreamError)){t.next=26;break}return t.abrupt("return",0);case 26:throw t.t0;case 27:if(n.mayBeLess||!(i<n.length)){t.next=29;break}throw new f.EndOfStreamError;case 29:return t.abrupt("return",i);case 30:case"end":return t.stop()}}),t,this,[[16,22]])}))),function(t,e){return u.apply(this,arguments)})},{key:"ignore",value:(i=a(o().mark((function t(e){var r,n,i,a,s;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=Math.min(256e3,e),n=new Uint8Array(r),i=0;case 3:if(!(i<e)){t.next=13;break}return a=e-i,t.next=7,this.readBuffer(n,{length:Math.min(r,a)});case 7:if(!((s=t.sent)<0)){t.next=10;break}return t.abrupt("return",s);case 10:i+=s,t.next=3;break;case 13:return t.abrupt("return",i);case 14:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})}],r&&s(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),v}(l.AbstractTokenizer);e.ReadStreamTokenizer=d},4282:(t,e,r)=>{"use strict";t.exports.Validator=r(428);r(1371).ValidatorResult,r(1371).ValidatorResultError,r(1371).ValidationError,r(1371).SchemaError,r(5605),r(5605).S},4379:t=>{"use strict";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}},4397:(t,e,r)=>{"use strict";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(){o=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",p=s.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,i=Object.create(o.prototype),s=new D(n||[]);return a(i,"_invoke",{value:j(t,r,s)}),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function x(){}function w(){}var k={};l(k,u,(function(){return this}));var _=Object.getPrototypeOf,E=_&&_(_(I([])));E&&E!==r&&i.call(E,u)&&(k=E);var S=w.prototype=b.prototype=Object.create(k);function F(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,a,s,u){var c=d(t[o],t,a);if("throw"!==c.type){var p=c.arg,l=p.value;return l&&"object"==n(l)&&i.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,u)}),(function(t){r("throw",t,s,u)})):e.resolve(l).then((function(t){p.value=t,s(p)}),(function(t){return r("throw",t,s,u)}))}u(c.arg)}var o;a(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function j(e,r,n){var o=h;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 s=n.delegate;if(s){var u=P(s,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var c=d(e,r,n);if("normal"===c.type){if(o=n.done?v:m,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.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=d(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 I(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(i.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return x.prototype=w,a(S,"constructor",{value:w,configurable:!0}),a(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(S),t},e.awrap=function(t){return{__await:t}},F(O.prototype),l(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(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},F(S),l(S,p,"Generator"),l(S,u,(function(){return this})),l(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=I,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)&&i.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 s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!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 u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)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&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.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:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function i(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}Object.defineProperty(e,"__esModule",{value:!0}),e.fromStream=e.fromBuffer=e.EndOfStreamError=e.fromFile=void 0;var a=r(6665),s=r(4021),u=r(5158);Object.defineProperty(e,"fromFile",{enumerable:!0,get:function(){return u.fromFile}});var c=r(4021);function p(){var t;return t=o().mark((function t(e,r){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=r||{},!e.path){t.next=7;break}return t.next=4,a.stat(e.path);case 4:n=t.sent,r.path=e.path,r.size=n.size;case 7:return t.abrupt("return",s.fromStream(e,r));case 8:case"end":return t.stop()}}),t)})),p=function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,u,"next",t)}function u(t){i(a,n,o,s,u,"throw",t)}s(void 0)}))},p.apply(this,arguments)}Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return c.EndOfStreamError}}),Object.defineProperty(e,"fromBuffer",{enumerable:!0,get:function(){return c.fromBuffer}}),e.fromStream=function(t,e){return p.apply(this,arguments)}},4419:(t,e,r)=>{"use strict";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,u(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(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&&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(t){return!1}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var c=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&&s(t,e)}(c,t);var e,r,o,i=(r=c,o=a(),function(){var t,e=u(r);if(o){var i=u(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 c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=i.call(this,t)).name="TimeoutError",e}return e=c,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);c(t.then(n,o),(function(){clearTimeout(i)}))}else n(t)}))};t.exports=l,t.exports.default=l,t.exports.TimeoutError=p},4428:()=>{},4509:(t,e,r)=>{"use strict";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,s=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),u=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},c=1024;t.exports={arrayToObject:u,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],s=i.obj[i.prop],u=Object.keys(s),c=0;c<u.length;++c){var p=u[c],l=s[p];"object"===n(l)&&null!==l&&-1===r.indexOf(l)&&(e.push({obj:s,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 u=t;if("symbol"===n(t)?u=Symbol.prototype.toString.call(t):"string"!=typeof t&&(u=String(t)),"iso-8859-1"===r)return escape(u).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var p="",l=0;l<u.length;l+=c){for(var f=u.length>=c?u.slice(l,l+c):u,d=[],h=0;h<f.length;++h){var m=f.charCodeAt(h);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)?d[d.length]=f.charAt(h):m<128?d[d.length]=s[m]:m<2048?d[d.length]=s[192|m>>6]+s[128|63&m]:m<55296||m>=57344?d[d.length]=s[224|m>>12]+s[128|m>>6&63]+s[128|63&m]:(h+=1,m=65536+((1023&m)<<10|1023&f.charCodeAt(h)),d[d.length]=s[240|m>>18]+s[128|m>>12&63]+s[128|m>>6&63]+s[128|63&m])}p+=d.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 s=e;return a(e)&&!a(r)&&(s=u(e,o)),a(e)&&a(r)?(r.forEach((function(r,a){if(i.call(e,a)){var s=e[a];s&&"object"===n(s)&&r&&"object"===n(r)?e[a]=t(s,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}),s)}}},4872:(t,e,r)=>{"use strict";var n=r(1545).hp;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){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(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,u(n.key),n)}}function s(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(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)}Object.defineProperty(e,"__esModule",{value:!0}),e.AnsiStringType=e.StringType=e.BufferType=e.Uint8ArrayType=e.IgnoreType=e.Float80_LE=e.Float80_BE=e.Float64_LE=e.Float64_BE=e.Float32_LE=e.Float32_BE=e.Float16_LE=e.Float16_BE=e.INT64_BE=e.UINT64_BE=e.INT64_LE=e.UINT64_LE=e.INT32_LE=e.INT32_BE=e.INT24_BE=e.INT24_LE=e.INT16_LE=e.INT16_BE=e.INT8=e.UINT32_BE=e.UINT32_LE=e.UINT24_BE=e.UINT24_LE=e.UINT16_BE=e.UINT16_LE=e.UINT8=void 0;var c=r(6773);function p(t){return new DataView(t.buffer,t.byteOffset)}e.UINT8={len:1,get:function(t,e){return p(t).getUint8(e)},put:function(t,e,r){return p(t).setUint8(e,r),e+1}},e.UINT16_LE={len:2,get:function(t,e){return p(t).getUint16(e,!0)},put:function(t,e,r){return p(t).setUint16(e,r,!0),e+2}},e.UINT16_BE={len:2,get:function(t,e){return p(t).getUint16(e)},put:function(t,e,r){return p(t).setUint16(e,r),e+2}},e.UINT24_LE={len:3,get:function(t,e){var r=p(t);return r.getUint8(e)+(r.getUint16(e+1,!0)<<8)},put:function(t,e,r){var n=p(t);return n.setUint8(e,255&r),n.setUint16(e+1,r>>8,!0),e+3}},e.UINT24_BE={len:3,get:function(t,e){var r=p(t);return(r.getUint16(e)<<8)+r.getUint8(e+2)},put:function(t,e,r){var n=p(t);return n.setUint16(e,r>>8),n.setUint8(e+2,255&r),e+3}},e.UINT32_LE={len:4,get:function(t,e){return p(t).getUint32(e,!0)},put:function(t,e,r){return p(t).setUint32(e,r,!0),e+4}},e.UINT32_BE={len:4,get:function(t,e){return p(t).getUint32(e)},put:function(t,e,r){return p(t).setUint32(e,r),e+4}},e.INT8={len:1,get:function(t,e){return p(t).getInt8(e)},put:function(t,e,r){return p(t).setInt8(e,r),e+1}},e.INT16_BE={len:2,get:function(t,e){return p(t).getInt16(e)},put:function(t,e,r){return p(t).setInt16(e,r),e+2}},e.INT16_LE={len:2,get:function(t,e){return p(t).getInt16(e,!0)},put:function(t,e,r){return p(t).setInt16(e,r,!0),e+2}},e.INT24_LE={len:3,get:function(t,r){var n=e.UINT24_LE.get(t,r);return n>8388607?n-16777216:n},put:function(t,e,r){var n=p(t);return n.setUint8(e,255&r),n.setUint16(e+1,r>>8,!0),e+3}},e.INT24_BE={len:3,get:function(t,r){var n=e.UINT24_BE.get(t,r);return n>8388607?n-16777216:n},put:function(t,e,r){var n=p(t);return n.setUint16(e,r>>8),n.setUint8(e+2,255&r),e+3}},e.INT32_BE={len:4,get:function(t,e){return p(t).getInt32(e)},put:function(t,e,r){return p(t).setInt32(e,r),e+4}},e.INT32_LE={len:4,get:function(t,e){return p(t).getInt32(e,!0)},put:function(t,e,r){return p(t).setInt32(e,r,!0),e+4}},e.UINT64_LE={len:8,get:function(t,e){return p(t).getBigUint64(e,!0)},put:function(t,e,r){return p(t).setBigUint64(e,r,!0),e+8}},e.INT64_LE={len:8,get:function(t,e){return p(t).getBigInt64(e,!0)},put:function(t,e,r){return p(t).setBigInt64(e,r,!0),e+8}},e.UINT64_BE={len:8,get:function(t,e){return p(t).getBigUint64(e)},put:function(t,e,r){return p(t).setBigUint64(e,r),e+8}},e.INT64_BE={len:8,get:function(t,e){return p(t).getBigInt64(e)},put:function(t,e,r){return p(t).setBigInt64(e,r),e+8}},e.Float16_BE={len:2,get:function(t,e){return c.read(t,e,!1,10,this.len)},put:function(t,e,r){return c.write(t,r,e,!1,10,this.len),e+this.len}},e.Float16_LE={len:2,get:function(t,e){return c.read(t,e,!0,10,this.len)},put:function(t,e,r){return c.write(t,r,e,!0,10,this.len),e+this.len}},e.Float32_BE={len:4,get:function(t,e){return p(t).getFloat32(e)},put:function(t,e,r){return p(t).setFloat32(e,r),e+4}},e.Float32_LE={len:4,get:function(t,e){return p(t).getFloat32(e,!0)},put:function(t,e,r){return p(t).setFloat32(e,r,!0),e+4}},e.Float64_BE={len:8,get:function(t,e){return p(t).getFloat64(e)},put:function(t,e,r){return p(t).setFloat64(e,r),e+8}},e.Float64_LE={len:8,get:function(t,e){return p(t).getFloat64(e,!0)},put:function(t,e,r){return p(t).setFloat64(e,r,!0),e+8}},e.Float80_BE={len:10,get:function(t,e){return c.read(t,e,!1,63,this.len)},put:function(t,e,r){return c.write(t,r,e,!1,63,this.len),e+this.len}},e.Float80_LE={len:10,get:function(t,e){return c.read(t,e,!0,63,this.len)},put:function(t,e,r){return c.write(t,r,e,!0,63,this.len),e+this.len}};var l=function(){function t(e){i(this,t),this.len=e}return s(t,[{key:"get",value:function(t,e){}}]),t}();e.IgnoreType=l;var f=function(){function t(e){i(this,t),this.len=e}return s(t,[{key:"get",value:function(t,e){return t.subarray(e,e+this.len)}}]),t}();e.Uint8ArrayType=f;var d=function(){function t(e){i(this,t),this.len=e}return s(t,[{key:"get",value:function(t,e){return n.from(t.subarray(e,e+this.len))}}]),t}();e.BufferType=d;var h=function(){function t(e,r){i(this,t),this.len=e,this.encoding=r}return s(t,[{key:"get",value:function(t,e){return n.from(t).toString(this.encoding,e,e+this.len)}}]),t}();e.StringType=h;var m=function(){function t(e){i(this,t),this.len=e}return s(t,[{key:"get",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.decode(e,r,r+this.len)}}],[{key:"decode",value:function(e,r,n){for(var o="",i=r;i<n;++i)o+=t.codePointToString(t.singleByteDecoder(e[i]));return o}},{key:"inRange",value:function(t,e,r){return e<=t&&t<=r}},{key:"codePointToString",value:function(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}},{key:"singleByteDecoder",value:function(e){if(t.inRange(e,0,127))return e;var r=t.windows1252[e-128];if(null===r)throw Error("invaliding encoding");return r}}]),t}();e.AnsiStringType=m,m.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:t=>{"use strict";t.exports=Math.abs},4974:(t,e,r)=>{"use strict";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(){o=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",p=s.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,i=Object.create(o.prototype),s=new D(n||[]);return a(i,"_invoke",{value:j(t,r,s)}),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function x(){}function w(){}var k={};l(k,u,(function(){return this}));var _=Object.getPrototypeOf,E=_&&_(_(I([])));E&&E!==r&&i.call(E,u)&&(k=E);var S=w.prototype=b.prototype=Object.create(k);function F(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,a,s,u){var c=d(t[o],t,a);if("throw"!==c.type){var p=c.arg,l=p.value;return l&&"object"==n(l)&&i.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,u)}),(function(t){r("throw",t,s,u)})):e.resolve(l).then((function(t){p.value=t,s(p)}),(function(t){return r("throw",t,s,u)}))}u(c.arg)}var o;a(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function j(e,r,n){var o=h;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 s=n.delegate;if(s){var u=P(s,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var c=d(e,r,n);if("normal"===c.type){if(o=n.done?v:m,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.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=d(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 I(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(i.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return x.prototype=w,a(S,"constructor",{value:w,configurable:!0}),a(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(S),t},e.awrap=function(t){return{__await:t}},F(O.prototype),l(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(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},F(S),l(S,p,"Generator"),l(S,u,(function(){return this})),l(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=I,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)&&i.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 s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!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 u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)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&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.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:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function i(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,u,"next",t)}function u(t){i(a,n,o,s,u,"throw",t)}s(void 0)}))}}function s(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,u(n.key),n)}}function u(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){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.BufferTokenizer=void 0;var l=r(1787),f=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)}(y,t);var e,r,i,u,f,d,h,m=(d=y,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(t){return!1}}(),function(){var t,e=p(d);if(h){var r=p(this).constructor;t=Reflect.construct(e,arguments,r)}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 y(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,y),(r=m.call(this,e)).uint8Array=t,r.fileInfo.size=r.fileInfo.size?r.fileInfo.size:t.length,r}return e=y,r=[{key:"readBuffer",value:(f=a(o().mark((function t(e,r){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r||!r.position){t.next=4;break}if(!(r.position<this.position)){t.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 t.next=6,this.peekBuffer(e,r);case 6:return n=t.sent,this.position+=n,t.abrupt("return",n);case 9:case"end":return t.stop()}}),t,this)}))),function(t,e){return f.apply(this,arguments)})},{key:"peekBuffer",value:(u=a(o().mark((function t(e,r){var n,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.normalizeOptions(e,r),i=Math.min(this.uint8Array.length-n.position,n.length),n.mayBeLess||!(i<n.length)){t.next=6;break}throw new l.EndOfStreamError;case 6:return e.set(this.uint8Array.subarray(n.position,n.position+i),n.offset),t.abrupt("return",i);case 8:case"end":return t.stop()}}),t,this)}))),function(t,e){return u.apply(this,arguments)})},{key:"close",value:(i=a(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)})}],r&&s(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),y}(r(1090).AbstractTokenizer);e.BufferTokenizer=f},5049:t=>{"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},5118:t=>{"use strict";t.exports=Function.prototype.call},5158:(t,e,r)=>{"use strict";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(){o=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",p=s.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,i=Object.create(o.prototype),s=new D(n||[]);return a(i,"_invoke",{value:j(t,r,s)}),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function x(){}function w(){}var k={};l(k,u,(function(){return this}));var _=Object.getPrototypeOf,E=_&&_(_(I([])));E&&E!==r&&i.call(E,u)&&(k=E);var S=w.prototype=b.prototype=Object.create(k);function F(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,a,s,u){var c=d(t[o],t,a);if("throw"!==c.type){var p=c.arg,l=p.value;return l&&"object"==n(l)&&i.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,u)}),(function(t){r("throw",t,s,u)})):e.resolve(l).then((function(t){p.value=t,s(p)}),(function(t){return r("throw",t,s,u)}))}u(c.arg)}var o;a(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function j(e,r,n){var o=h;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 s=n.delegate;if(s){var u=P(s,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var c=d(e,r,n);if("normal"===c.type){if(o=n.done?v:m,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.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=d(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 I(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(i.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return x.prototype=w,a(S,"constructor",{value:w,configurable:!0}),a(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(S),t},e.awrap=function(t){return{__await:t}},F(O.prototype),l(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(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},F(S),l(S,p,"Generator"),l(S,u,(function(){return this})),l(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=I,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)&&i.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 s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!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 u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)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&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.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:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function i(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,u,"next",t)}function u(t){i(a,n,o,s,u,"throw",t)}s(void 0)}))}}function s(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,u(n.key),n)}}function u(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){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.fromFile=e.FileTokenizer=void 0;var l=r(1090),f=r(1787),d=r(6665),h=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)}(v,t);var e,r,i,u,l,h,m,y=(h=v,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(t){return!1}}(),function(){var t,e=p(h);if(m){var r=p(this).constructor;t=Reflect.construct(e,arguments,r)}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 v(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,v),(r=y.call(this,e)).fd=t,r}return e=v,r=[{key:"readBuffer",value:(l=a(o().mark((function t(e,r){var n,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.normalizeOptions(e,r),this.position=n.position,t.next=4,d.read(this.fd,e,n.offset,n.length,n.position);case 4:if(i=t.sent,this.position+=i.bytesRead,!(i.bytesRead<n.length)||r&&r.mayBeLess){t.next=8;break}throw new f.EndOfStreamError;case 8:return t.abrupt("return",i.bytesRead);case 9:case"end":return t.stop()}}),t,this)}))),function(t,e){return l.apply(this,arguments)})},{key:"peekBuffer",value:(u=a(o().mark((function t(e,r){var n,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.normalizeOptions(e,r),t.next=3,d.read(this.fd,e,n.offset,n.length,n.position);case 3:if(i=t.sent,n.mayBeLess||!(i.bytesRead<n.length)){t.next=6;break}throw new f.EndOfStreamError;case 6:return t.abrupt("return",i.bytesRead);case 7:case"end":return t.stop()}}),t,this)}))),function(t,e){return u.apply(this,arguments)})},{key:"close",value:(i=a(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d.close(this.fd));case 1:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})}],r&&s(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),v}(l.AbstractTokenizer);function m(){return(m=a(o().mark((function t(e){var r,n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,d.stat(e);case 2:if((r=t.sent).isFile){t.next=5;break}throw new Error("File not a file: ".concat(e));case 5:return t.next=7,d.open(e,"r");case 7:return n=t.sent,t.abrupt("return",new h(n,{path:e,size:r.size}));case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}e.FileTokenizer=h,e.fromFile=function(t){return m.apply(this,arguments)}},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,s="object"==o(t)&&t&&!t.nodeType&&t,u="object"==(void 0===r.g?"undefined":o(r.g))&&r.g;u.global!==u&&u.window!==u&&u.self!==u||(i=u);var c,p,l=2147483647,f=36,d=/^xn--/,h=/[^\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 _(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 S(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 F(t){var e,r,n,o,i,a,s,u,c,p,d,h=[],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"),h.push(t.charCodeAt(n));for(o=r>0?r+1:0;o<m;){for(i=y,a=1,s=f;o>=m&&b("invalid-input"),((u=(d=t.charCodeAt(o++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:f)>=f||u>v((l-y)/a))&&b("overflow"),y+=u*a,!(u<(c=s<=x?1:s>=x+26?26:s-x));s+=f)a>v(l/(p=f-c))&&b("overflow"),a*=p;x=S(y-i,e=h.length+1,0==i),v(y/e)>l-g&&b("overflow"),g+=v(y/e),y%=e,h.splice(y++,0,g)}return _(h)}function O(t){var e,r,n,o,i,a,s,u,c,p,d,h,m,y,x,w=[];for(h=(t=k(t)).length,e=128,r=0,i=72,a=0;a<h;++a)(d=t[a])<128&&w.push(g(d));for(n=o=w.length,o&&w.push("-");n<h;){for(s=l,a=0;a<h;++a)(d=t[a])>=e&&d<s&&(s=d);for(s-e>v((l-r)/(m=n+1))&&b("overflow"),r+=(s-e)*m,e=s,a=0;a<h;++a)if((d=t[a])<e&&++r>l&&b("overflow"),d==e){for(u=r,c=f;!(u<(p=c<=i?1:c>=i+26?26:c-i));c+=f)x=u-p,y=f-p,w.push(g(E(p+x%y,0))),u=v(x/y);w.push(g(E(u,0))),i=S(r,m,n==o),r=0,++n}++r,++e}return w.join("")}if(c={version:"1.4.1",ucs2:{decode:k,encode:_},decode:F,encode:O,toASCII:function(t){return w(t,(function(t){return h.test(t)?"xn--"+O(t):t}))},toUnicode:function(t){return w(t,(function(t){return d.test(t)?F(t.slice(4).toLowerCase()):t}))}},"object"==o(r.amdO)&&r.amdO)void 0===(n=function(){return c}.call(e,r,e,t))||(t.exports=n);else if(a&&s)if(t.exports==a)s.exports=c;else for(p in c)c.hasOwnProperty(p)&&(a[p]=c[p]);else i.punycode=c}(this)},5465:(t,e,r)=>{"use strict";var n=r(2703);t.exports=Function.prototype.bind||n},5586:(t,e,r)=>{"use strict";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)=>{"use strict";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+="#"),c[f]){if(!i.deepCompareStrict(c[f],e))throw new Error("Schema <"+f+"> already exists with different definition");return c[f]}c[f]=e,"#"==f[f.length-1]&&(c[f.substring(0,f.length-1)]=e)}s(f+"/items",Array.isArray(e.items)?e.items:[e.items]),s(f+"/extends",Array.isArray(e.extends)?e.extends:[e.extends]),r(f+"/additionalItems",e.additionalItems),u(f+"/properties",e.properties),r(f+"/additionalProperties",e.additionalProperties),u(f+"/definitions",e.definitions),u(f+"/patternProperties",e.patternProperties),u(f+"/dependencies",e.dependencies),s(f+"/disallow",e.disallow),s(f+"/allOf",e.allOf),s(f+"/anyOf",e.anyOf),s(f+"/oneOf",e.oneOf),r(f+"/not",e.not)}}function s(t,e){if(Array.isArray(e))for(var n=0;n<e.length;n++)r(t+"/"+n,e[n])}function u(t,e){if(e&&"object"==n(e))for(var o in e)r(t+"/"+o,e[o])}var c={},p={};return r(t,e),new a(c,p)}},5759:t=>{"use strict";t.exports=Object.getOwnPropertyDescriptor},5768:(t,e)=>{"use strict";e.byteLength=function(t){var e=s(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,i=s(t),a=i[0],u=i[1],c=new o(function(t,e,r){return 3*(e+r)/4-r}(0,a,u)),p=0,l=u>0?a-4:a;for(r=0;r<l;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],c[p++]=e>>16&255,c[p++]=e>>8&255,c[p++]=255&e;return 2===u&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[p++]=255&e),1===u&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[p++]=e>>8&255,c[p++]=255&e),c},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],a=16383,s=0,c=n-o;s<c;s+=a)i.push(u(t,s,s+a>c?c:s+a));return 1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<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(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function u(t,e,n){for(var o,i,a=[],s=e;s<n;s+=3)o=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[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:(t,e,r)=>{"use strict";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=>{"use strict";t.exports=ReferenceError},6114:t=>{"use strict";t.exports=Math.pow},6234:(t,e,r)=>{"use strict";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 u(t,e,r,n,o){var i=e.throwError,a=e.throwAll;e.throwError=!1,e.throwAll=!1;var s=this.validateSchema(t,o,e,r);return e.throwError=i,e.throwAll=a,!s.valid&&n instanceof Function&&n(s),s.valid}function c(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 s=this.validateSchema(t[o],a,r,n.makeChild(a,o));s.instance!==i.instance[o]&&(i.instance[o]=s.instance),i.importErrors(s)}}s.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 s=a.map((function(t){if(t){var e=t.$id||t.id;return e?"<"+e+">":t+""}}));i.addError({name:"type",argument:s,message:"is not of a type(s) "+s})}return i},s.anyOf=function(t,e,r,n){if(void 0===t)return null;var a=new o(t,e,r,n),s=new o(t,e,r,n);if(!Array.isArray(e.anyOf))throw new i("anyOf must be an array");if(!e.anyOf.some(u.bind(this,t,r,n,(function(t){s.importErrors(t)})))){var c=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(s),a.addError({name:"anyOf",argument:c,message:"is not any of "+c.join(",")})}return a},s.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),s=this;return e.allOf.forEach((function(e,o){var i=s.validateSchema(t,e,r,n);if(!i.valid){var u=e.$id||e.id||e.title&&JSON.stringify(e.title)||e.$ref&&"<"+e.$ref+">"||"[subschema "+o+"]";a.addError({name:"allOf",argument:{id:u,length:i.errors.length,valid:i},message:"does not match allOf schema "+u+" with "+i.errors.length+" error[s]:"}),a.importErrors(i)}})),a},s.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),s=new o(t,e,r,n),c=e.oneOf.filter(u.bind(this,t,r,n,(function(t){s.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!==c&&(r.nestedErrors&&a.importErrors(s),a.addError({name:"oneOf",argument:p,message:"is not exactly one from "+p.join(",")})),a},s.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,s=u.call(this,t,r,i,null,e.if),c=new o(t,e,r,i);if(s){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)),c.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)),c.importErrors(a)}return c},s.propertyNames=function(t,e,r,a){if(this.types.object(t)){var s=new o(t,e,r,a),u=void 0!==e.propertyNames?e.propertyNames:{};if(!n.isSchema(u))throw new i('Expected "propertyNames" to be a schema (object or boolean)');for(var p in t)if(void 0!==c(t,p)){var l=this.validateSchema(p,u,r,a.makeChild(u));s.importErrors(l)}return s}},s.properties=function(t,e,r,n){if(this.types.object(t)){var a=new o(t,e,r,n),s=e.properties||{};for(var u in s){var p=s[u];if(void 0!==p){if(null===p)throw new i('Unexpected null, expected schema in "properties"');"function"==typeof r.preValidateProperty&&r.preValidateProperty(t,u,p,r,n);var l=c(t,u),f=this.validateSchema(l,p,r,n.makeChild(p,u));f.instance!==a.instance[u]&&(a.instance[u]=f.instance),a.importErrors(f)}}return a}},s.patternProperties=function(t,e,r,n){if(this.types.object(t)){var a=new o(t,e,r,n),s=e.patternProperties||{};for(var u in t){var c=!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(t){d=new RegExp(l)}if(d.test(u)){c=!1,"function"==typeof r.preValidateProperty&&r.preValidateProperty(t,u,f,r,n);var h=this.validateSchema(t[u],f,r,n.makeChild(f,u));h.instance!==a.instance[u]&&(a.instance[u]=h.instance),a.importErrors(h)}}}c&&p.call(this,t,e,r,n,u,a)}return a}},s.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}},s.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}},s.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}},s.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 s=void 0===e.items[o]?e.additionalItems:e.items[o];else s=e.items;if(void 0===s)return!0;if(!1===s)return a.addError({name:"items",message:"additionalItems not permitted"}),!1;var u=i.validateSchema(t,s,r,n.makeChild(s,o));return u.instance!==a.instance[o]&&(a.instance[o]=u.instance),a.importErrors(u),!0})),a}},s.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 s=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}))&&s.addError({name:"contains",argument:e.contains,message:"must contain an item matching given schema"}),s}},s.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}},s.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}},s.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}},s.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,s,u){if(this.types.number(t)){var c=e[s];if(0==c)throw new i(s+" cannot be zero");var p=new o(t,e,r,a),l=n.getDecimalPlaces(t),f=n.getDecimalPlaces(c),d=Math.max(l,f),h=Math.pow(10,d);return Math.round(t*h)%Math.round(c*h)!=0&&p.addError({name:s,argument:c,message:u+JSON.stringify(c)}),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}s.multipleOf=function(t,e,r,n){return l.call(this,t,e,r,n,"multipleOf","is not a multiple of (divisible by) ")},s.divisibleBy=function(t,e,r,n){return l.call(this,t,e,r,n,"divisibleBy","is not divisible by (multiple of) ")},s.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===c(t,e)&&i.addError({name:"required",argument:e,message:"requires property "+JSON.stringify(e)})})),i},s.pattern=function(t,e,r,n){if(this.types.string(t)){var i=new o(t,e,r,n),a=e.pattern;try{var s=new RegExp(a,"u")}catch(t){s=new RegExp(a)}return t.match(s)||i.addError({name:"pattern",argument:e.pattern,message:"does not match pattern "+JSON.stringify(e.pattern.toString())}),i}},s.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}},s.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}},s.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}},s.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}},s.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}},s.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}},s.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 s=e.dependencies[a],u=n.makeChild(s,a);if("string"==typeof s&&(s=[s]),Array.isArray(s))s.forEach((function(e){void 0===t[e]&&i.addError({name:"dependencies",argument:u.propertyPath,message:"property "+e+" not found, required by "+u.propertyPath})}));else{var c=this.validateSchema(t,s,r,u);i.instance!==c.instance&&(i.instance=c.instance),c&&c.errors.length&&(i.addError({name:"dependencies",argument:u.propertyPath,message:"does not meet dependency required by "+u.propertyPath}),i.importErrors(c))}}return i}},s.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 s=new o(t,e,r,a);return e.enum.some(n.deepCompareStrict.bind(null,t))||s.addError({name:"enum",argument:e.enum,message:"is not one of enum values: "+e.enum.map(String).join(",")}),s},s.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},s.not=s.disallow=function(t,e,r,n){var i=this;if(void 0===t)return null;var a=new o(t,e,r,n),s=e.not||e.disallow;return s?(Array.isArray(s)||(s=[s]),s.forEach((function(o){if(i.testType(t,e,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},t.exports=a},6273:(t,e)=>{"use strict";function r(t){return r="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},r(t)}function n(t){var e="function"==typeof Map?new Map:void 0;return n=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 o(t,arguments,s(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),a(r,t)},n(t)}function o(t,e,r){return o=i()?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&&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(t){return!1}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.EndOfStreamError=e.defaultMessages=void 0,e.defaultMessages="End-Of-Stream";var u=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&&a(t,e)}(p,t);var n,o,u,c=(o=p,u=i(),function(){var t,e=s(o);if(u){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===r(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 p(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),c.call(this,e.defaultMessages)}return n=p,Object.defineProperty(n,"prototype",{writable:!1}),n}(n(Error));e.EndOfStreamError=u},6274:t=>{"use strict";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 s=new o(n,i||t,a),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],s]:t._events[u].push(s):(t._events[u]=s,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}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 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},s.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},s.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},s.prototype.emit=function(t,e,n,o,i,a){var s=r?r+t:t;if(!this._events[s])return!1;var u,c,p=this._events[s],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(c=1,u=new Array(l-1);c<l;c++)u[c-1]=arguments[c];p.fn.apply(p.context,u)}else{var f,d=p.length;for(c=0;c<d;c++)switch(p[c].once&&this.removeListener(t,p[c].fn,void 0,!0),l){case 1:p[c].fn.call(p[c].context);break;case 2:p[c].fn.call(p[c].context,e);break;case 3:p[c].fn.call(p[c].context,e,n);break;case 4:p[c].fn.call(p[c].context,e,n,o);break;default:if(!u)for(f=1,u=new Array(l-1);f<l;f++)u[f-1]=arguments[f];p[c].fn.apply(p[c].context,u)}}return!0},s.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},s.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},s.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 s=this._events[i];if(s.fn)s.fn!==e||o&&!s.once||n&&s.context!==n||a(this,i);else{for(var u=0,c=[],p=s.length;u<p;u++)(s[u].fn!==e||o&&!s[u].once||n&&s[u].context!==n)&&c.push(s[u]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.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},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,t.exports=s},6402:(t,e,r)=>{"use strict";var n=r(1953),o=r(8657),i=r(2629),a=r(3221),s=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=s()),t.set(e,r)}};return e}},6665:(t,e,r)=>{"use strict";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(){o=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",p=s.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,i=Object.create(o.prototype),s=new D(n||[]);return a(i,"_invoke",{value:j(t,r,s)}),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function x(){}function w(){}var k={};l(k,u,(function(){return this}));var _=Object.getPrototypeOf,E=_&&_(_(I([])));E&&E!==r&&i.call(E,u)&&(k=E);var S=w.prototype=b.prototype=Object.create(k);function F(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,a,s,u){var c=d(t[o],t,a);if("throw"!==c.type){var p=c.arg,l=p.value;return l&&"object"==n(l)&&i.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,u)}),(function(t){r("throw",t,s,u)})):e.resolve(l).then((function(t){p.value=t,s(p)}),(function(t){return r("throw",t,s,u)}))}u(c.arg)}var o;a(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function j(e,r,n){var o=h;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 s=n.delegate;if(s){var u=P(s,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var c=d(e,r,n);if("normal"===c.type){if(o=n.done?v:m,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.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=d(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 I(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(i.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return x.prototype=w,a(S,"constructor",{value:w,configurable:!0}),a(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(S),t},e.awrap=function(t){return{__await:t}},F(O.prototype),l(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(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},F(S),l(S,p,"Generator"),l(S,u,(function(){return this})),l(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=I,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)&&i.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 s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!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 u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)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&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.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:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function i(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,u,"next",t)}function u(t){i(a,n,o,s,u,"throw",t)}s(void 0)}))}}Object.defineProperty(e,"__esModule",{value:!0}),e.readFile=e.writeFileSync=e.writeFile=e.read=e.open=e.close=e.stat=e.createReadStream=e.pathExists=void 0;var s=r(4428);function u(){return(u=a(o().mark((function t(e){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){s.stat(e,(function(e,n){e?r(e):t(n)}))})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function c(){return(c=a(o().mark((function t(e){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){s.close(e,(function(e){e?r(e):t()}))})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function p(){return(p=a(o().mark((function t(e,r){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,n){s.open(e,r,(function(e,r){e?n(e):t(r)}))})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function l(){return(l=a(o().mark((function t(e,r,n,i,a){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){s.read(e,r,n,i,a,(function(e,r,n){e?o(e):t({bytesRead:r,buffer:n})}))})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function f(){return(f=a(o().mark((function t(e,r){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,n){s.writeFile(e,r,(function(e){e?n(e):t()}))})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function d(){return(d=a(o().mark((function t(e){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){s.readFile(e,(function(e,n){e?r(e):t(n)}))})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}e.pathExists=s.existsSync,e.createReadStream=s.createReadStream,e.stat=function(t){return u.apply(this,arguments)},e.close=function(t){return c.apply(this,arguments)},e.open=function(t,e){return p.apply(this,arguments)},e.read=function(t,e,r,n,o){return l.apply(this,arguments)},e.writeFile=function(t,e){return f.apply(this,arguments)},e.writeFileSync=function(t,e){s.writeFileSync(t,e)},e.readFile=function(t){return d.apply(this,arguments)}},6681:t=>{"use strict";t.exports=Number.isNaN||function(t){return t!=t}},6773:(t,e)=>{e.read=function(t,e,r,n,o){var i,a,s=8*o-n-1,u=(1<<s)-1,c=u>>1,p=-7,l=r?o-1:0,f=r?-1:1,d=t[e+l];for(l+=f,i=d&(1<<-p)-1,d>>=-p,p+=s;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-c;else{if(i===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),i-=c}return(d?-1:1)*a*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var a,s,u,c=8*i-o-1,p=(1<<c)-1,l=p>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:i-1,h=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=p):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+l>=1?f/u:f*Math.pow(2,1-l))*u>=2&&(a++,u/=2),a+l>=p?(s=0,a=p):a+l>=1?(s=(e*u-1)*Math.pow(2,o),a+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,o),a=0));o>=8;t[r+d]=255&s,d+=h,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;t[r+d]=255&a,d+=h,a/=256,c-=8);t[r+d-h]|=128*m}},6854:(t,e,r)=>{"use strict";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)=>{"use strict";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),s=Object.prototype.hasOwnProperty,u={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},c=Array.isArray,p=Array.prototype.push,l=function(t,e){p.apply(t,c(e)?e:[e])},f=Date.prototype.toISOString,d=a.default,h={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(t){return f.call(t)},skipNulls:!1,strictNullHandling:!1},m={},y=function t(e,r,a,s,u,p,f,d,y,v,g,b,x,w,k,_,E,S){for(var F,O=e,j=S,P=0,A=!1;void 0!==(j=j.get(m))&&!A;){var T=j.get(e);if(P+=1,void 0!==T){if(T===P)throw new RangeError("Cyclic object value");A=!0}void 0===j.get(m)&&(P=0)}if("function"==typeof v?O=v(r,O):O instanceof Date?O=x(O):"comma"===a&&c(O)&&(O=i.maybeMap(O,(function(t){return t instanceof Date?x(t):t}))),null===O){if(p)return y&&!_?y(r,h.encoder,E,"key",w):r;O=""}if("string"==typeof(F=O)||"number"==typeof F||"boolean"==typeof F||"symbol"===n(F)||"bigint"==typeof F||i.isBuffer(O))return y?[k(_?r:y(r,h.encoder,E,"key",w))+"="+k(y(O,h.encoder,E,"value",w))]:[k(r)+"="+k(String(O))];var D,I=[];if(void 0===O)return I;if("comma"===a&&c(O))_&&y&&(O=i.maybeMap(O,y)),D=[{value:O.length>0?O.join(",")||null:void 0}];else if(c(v))D=v;else{var C=Object.keys(O);D=g?C.sort(g):C}var L=d?String(r).replace(/\./g,"%2E"):String(r),B=s&&c(O)&&1===O.length?L+"[]":L;if(u&&c(O)&&0===O.length)return B+"[]";for(var z=0;z<D.length;++z){var N=D[z],R="object"===n(N)&&N&&void 0!==N.value?N.value:O[N];if(!f||null!==R){var M=b&&d?String(N).replace(/\./g,"%2E"):String(N),U=c(O)?"function"==typeof a?a(B,M):B:B+(b?"."+M:"["+M+"]");S.set(e,P);var q=o();q.set(m,S),l(I,t(R,U,a,s,u,p,f,d,"comma"===a&&_&&c(O)?null:y,v,g,b,x,w,k,_,E,q))}}return I};t.exports=function(t,e){var r,i=t,p=function(t){if(!t)return h;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||h.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(!s.call(a.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n,o=a.formatters[r],i=h.filter;if(("function"==typeof t.filter||c(t.filter))&&(i=t.filter),n=t.arrayFormat in u?t.arrayFormat:"indices"in t?t.indices?"indices":"repeat":h.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||h.allowDots:!!t.allowDots;return{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:h.addQueryPrefix,allowDots:p,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:n,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:void 0===t.delimiter?h.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:h.encode,encodeDotInKeys:"boolean"==typeof t.encodeDotInKeys?t.encodeDotInKeys:h.encodeDotInKeys,encoder:"function"==typeof t.encoder?t.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:h.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:h.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:h.strictNullHandling}}(e);"function"==typeof p.filter?i=(0,p.filter)("",i):c(p.filter)&&(r=p.filter);var f=[];if("object"!==n(i)||null===i)return"";var d=u[p.arrayFormat],m="comma"===d&&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,d,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:""}},7047:t=>{"use strict";t.exports=URIError},7052:t=>{"use strict";t.exports=Function.prototype.apply},7548:t=>{"use strict";t.exports=Math.round},8299:(t,e,r)=>{"use strict";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),s=r(15),u=r(2104),c=r(6076),p=r(1226),l=r(1953),f=r(7047),d=r(4940),h=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),_=r(5049),E=function(){throw new l},S=k?function(){try{return E}catch(t){try{return k(arguments,"callee").get}catch(t){return E}}}():E,F=r(377)(),O=r(5586),j=r(9302),P=r(1622),A=r(7052),T=r(5118),D={},I="undefined"!=typeof Uint8Array&&O?O(Uint8Array):o,C={__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%":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%":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%":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%":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%":k,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":u,"%ReferenceError%":c,"%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%":_,"%Object.getPrototypeOf%":j,"%Math.abs%":d,"%Math.floor%":h,"%Math.max%":m,"%Math.min%":y,"%Math.pow%":v,"%Math.round%":g,"%Math.sign%":b,"%Reflect.getPrototypeOf%":P};if(O)try{null.error}catch(t){var L=O(O(t));C["%Error.prototype%"]=L}var B=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&&O&&(r=O(o.prototype))}return C[e]=r,r},z={__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),R=r(863),M=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),G=N.call(T,RegExp.prototype.exec),V=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Z=/\\(\\)?/g,H=function(t,e){var r,n=t;if(R(z,n)&&(n="%"+(r=z[n])[0]+"%"),R(C,n)){var o=C[n];if(o===D&&(o=B(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===G(/^%?[^%]*%?$/,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=$(t,0,1),r=$(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,V,(function(t,e,r,o){n[n.length]=r?q(o,Z,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",o=H("%"+n+"%",e),i=o.name,a=o.value,s=!1,u=o.alias;u&&(n=u[0],U(r,M([0,1],u)));for(var c=1,f=!0;c<r.length;c+=1){var d=r[c],h=$(d,0,1),m=$(d,-1);if(('"'===h||"'"===h||"`"===h||'"'===m||"'"===m||"`"===m)&&h!==m)throw new p("property names with quotes must have matching quotes");if("constructor"!==d&&f||(s=!0),R(C,i="%"+(n+="."+d)+"%"))a=C[i];else if(null!=a){if(!(d in a)){if(!e)throw new l("base intrinsic for "+t+" exists, but the property is not available.");return}if(k&&c+1>=r.length){var y=k(a,d);a=(f=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[d]}else f=R(a,d),a=a[d];f&&!s&&(C[i]=a)}}return a}},8624:t=>{"use strict";t.exports=Math.min},8630:(t,e,r)=>{function n(t){return function(t){if(Array.isArray(t))return o(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 o(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)?o(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.")}()}function o(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,i,a=null;function s(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];if(s.enabled){var i=s,a=Number(new Date),u=a-(r||a);i.diff=u,i.prev=r,i.curr=a,r=a,n[0]=e.coerce(n[0]),"string"!=typeof n[0]&&n.unshift("%O");var c=0;n[0]=n[0].replace(/%([a-zA-Z%])/g,(function(t,r){if("%%"===t)return"%";c++;var o=e.formatters[r];if("function"==typeof o){var a=n[c];t=o.call(i,a),n.splice(c,1),c--}return t})),e.formatArgs.call(i,n),(i.log||e.log).apply(i,n)}}return s.namespace=t,s.useColors=e.useColors(),s.color=e.selectColor(t),s.extend=o,s.destroy=e.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:function(){return null!==a?a:(n!==e.namespaces&&(n=e.namespaces,i=e.enabled(t)),i)},set:function(t){a=t}}),"function"==typeof e.init&&e.init(s),s}function o(t,r){var n=e(this.namespace+(void 0===r?":":r)+t);return n.log=this.log,n}function i(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}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.map(i)),n(e.skips.map(i).map((function(t){return"-"+t})))).join(",");return e.enable(""),t},e.enable=function(t){var r;e.save(t),e.namespaces=t,e.names=[],e.skips=[];var n=("string"==typeof t?t:"").split(/[\s,]+/),o=n.length;for(r=0;r<o;r++)n[r]&&("-"===(t=n[r].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.slice(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;var r,n;for(r=0,n=e.skips.length;r<n;r++)if(e.skips[r].test(t))return!1;for(r=0,n=e.names.length;r<n;r++)if(e.names[r].test(t))return!0;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,s=o&&Map.prototype.forEach,u="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,p=u&&c&&"function"==typeof c.get?c.get:null,l=u&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="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,_=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),D="function"==typeof Symbol&&Symbol.toStringTag&&(n(Symbol.toStringTag),1)?Symbol.toStringTag:null,I=Object.prototype.propertyIsEnumerable,C=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function L(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||_.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-O(-t):O(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 B=r(2634),z=B.custom,N=Z(z)?z:null,R={__proto__:null,double:'"',single:"'"},M={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function U(t,e,r){var n=r.quoteStyle||e,o=R[n];return o+t+o}function q(t){return x.call(String(t),/"/g,"&quot;")}function $(t){return!D||!("object"===n(t)&&(D in t||void 0!==t[D]))}function G(t){return"[object Array]"===W(t)&&$(t)}function V(t){return"[object RegExp]"===W(t)&&$(t)}function Z(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,u){var c=o||{};if(Y(c,"quoteStyle")&&!Y(R,c.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Y(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var y=!Y(c,"customInspect")||c.customInspect;if("boolean"!=typeof y&&"symbol"!==y)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Y(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Y(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=c.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,c);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var _=String(e);return w?L(e,_):_}if("bigint"==typeof e){var O=String(e)+"n";return w?L(e,O):O}var P=void 0===c.depth?5:c.depth;if(void 0===i&&(i=0),i>=P&&P>0&&"object"===n(e))return G(e)?"[Array]":"[Object]";var z,M=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=S.call(Array(t.indent+1)," ")}return{base:r,prev:S.call(Array(e+1),r)}}(c,i);if(void 0===u)u=[];else if(K(u,e)>=0)return"[Circular]";function H(e,r,n){if(r&&(u=F.call(u)).push(r),n){var o={depth:c.depth};return Y(c,"quoteStyle")&&(o.quoteStyle=c.quoteStyle),t(e,o,i+1,u)}return t(e,c,i+1,u)}if("function"==typeof e&&!V(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?" { "+S.call(ot,", ")+" }":"")}if(Z(e)){var it=T?x.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):A.call(e);return"object"!==n(e)||T?it:X(it)}if((z=e)&&"object"===n(z)&&("undefined"!=typeof HTMLElement&&z instanceof HTMLElement||"string"==typeof z.nodeName&&"function"==typeof z.getAttribute)){for(var at="<"+k.call(String(e.nodeName)),st=e.attributes||[],ut=0;ut<st.length;ut++)at+=" "+st[ut].name+"="+U(q(st[ut].value),"double",c);return at+=">",e.childNodes&&e.childNodes.length&&(at+="..."),at+"</"+k.call(String(e.nodeName))+">"}if(G(e)){if(0===e.length)return"[]";var ct=nt(e,H);return M&&!function(t){for(var e=0;e<t.length;e++)if(K(t[e],"\n")>=0)return!1;return!0}(ct)?"["+rt(ct,M)+"]":"[ "+S.call(ct,", ")+" ]"}if(function(t){return"[object Error]"===W(t)&&$(t)}(e)){var pt=nt(e,H);return"cause"in Error.prototype||!("cause"in e)||I.call(e,"cause")?0===pt.length?"["+String(e)+"]":"{ ["+String(e)+"] "+S.call(pt,", ")+" }":"{ ["+String(e)+"] "+S.call(E.call("[cause]: "+H(e.cause),pt),", ")+" }"}if("object"===n(e)&&y){if(N&&"function"==typeof e[N]&&B)return B(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 s&&s.call(e,(function(t,r){lt.push(H(r,e,!0)+" => "+H(t,e))})),et("Map",a.call(e),lt,M)}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,M)}if(function(t){if(!f||!t||"object"!==n(t))return!1;try{f.call(t,f);try{d.call(t,d)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return tt("WeakMap");if(function(t){if(!d||!t||"object"!==n(t))return!1;try{d.call(t,d);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(!h||!t||"object"!==n(t))return!1;try{return h.call(t),!0}catch(t){}return!1}(e))return tt("WeakRef");if(function(t){return"[object Number]"===W(t)&&$(t)}(e))return X(H(Number(e)));if(function(t){if(!t||"object"!==n(t)||!j)return!1;try{return j.call(t),!0}catch(t){}return!1}(e))return X(H(j.call(e)));if(function(t){return"[object Boolean]"===W(t)&&$(t)}(e))return X(m.call(e));if(function(t){return"[object String]"===W(t)&&$(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)&&$(t)}(e)&&!V(e)){var dt=nt(e,H),ht=C?C(e)===Object.prototype:e instanceof Object||e.constructor===Object,mt=e instanceof Object?"":"null prototype",yt=!ht&&D&&Object(e)===e&&D in e?b.call(W(e),8,-1):mt?"Object":"",vt=(ht||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(yt||mt?"["+S.call(E.call([],yt||[],mt||[]),": ")+"] ":"");return 0===dt.length?vt+"{}":M?vt+"{"+rt(dt,M)+"}":vt+"{ "+S.call(dt,", ")+" }"}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=M[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):S.call(r,", "))+"}"}function rt(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+S.call(t,","+r)+"\n"+e.prev}function nt(t,e){var r=G(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 s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var u in t)Y(t,u)&&(r&&String(Number(u))===u&&u<t.length||T&&i["$"+u]instanceof Symbol||(_.call(/[^\w$]/,u)?n.push(e(u,t)+": "+e(t[u],t)):n.push(u+": "+e(t[u],t))));if("function"==typeof P)for(var c=0;c<a.length;c++)I.call(t,a[c])&&n.push("["+e(a[c])+"]: "+e(t[a[c]],t));return n}},8796:(t,e)=>{"use strict";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)=>{"use strict";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 s=!!o&&a&&a(Object.prototype,"__proto__"),u=Object,c=u.getPrototypeOf;t.exports=s&&"function"==typeof s.get?i([s.get]):"function"==typeof c&&function(t){return c(null==t?t:u(t))}},9063:(t,e,r)=>{"use strict";var n=r(6681);t.exports=function(t){return n(t)||0===t?t:t<0?-1:1}},9142:t=>{"use strict";t.exports=Object},9292:t=>{"use strict";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)=>{"use strict";var n=r(9142);t.exports=n.getPrototypeOf||null},9367:(t,e,r)=>{"use strict";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(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},u=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},c=function(t,e,r,i){if(t){var a=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/g,c=r.depth>0&&/(\[[^[\]]*])/.exec(a),p=c?a.slice(0,c.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!==(c=s.exec(a))&&f<r.depth;){if(f+=1,!r.plainObjects&&o.call(Object.prototype,c[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(c[1])}if(c){if(!0===r.strictDepth)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");l.push("["+a.slice(c.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 s=o?e:u(e,r,i),c=t.length-1;c>=0;--c){var p,l=t[c];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,h=parseInt(d,10);r.parseArrays||""!==d?!isNaN(h)&&l!==d&&String(h)===d&&h>=0&&r.parseArrays&&h<=r.arrayLimit?(p=[])[h]=s:"__proto__"!==d&&(p[d]=s):p={0:s}}s=p}return s}(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},c=e.ignoreQueryPrefix?t.replace(/^\?/,""):t;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var p=e.parameterLimit===1/0?void 0:e.parameterLimit,l=c.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,d=-1,h=e.charset;if(e.charsetSentinel)for(f=0;f<l.length;++f)0===l[f].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[f]?h="utf-8":"utf8=%26%2310003%3B"===l[f]&&(h="iso-8859-1"),d=f,f=l.length);for(f=0;f<l.length;++f)if(f!==d){var m,y,v=l[f],g=v.indexOf("]="),b=-1===g?v.indexOf("="):g+1;-1===b?(m=e.decoder(v,a.decoder,h,"key"),y=e.strictNullHandling?null:""):(m=e.decoder(v.slice(0,b),a.decoder,h,"key"),y=n.maybeMap(u(v.slice(b+1),e,i(r[m])?r[m].length:0),(function(t){return e.decoder(t,a.decoder,h,"value")}))),y&&e.interpretNumericEntities&&"iso-8859-1"===h&&(y=s(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),d=0;d<f.length;++d){var h=f[d],m=c(h,p[h],r,"string"==typeof t);l=n.merge(l,m,r)}return!0===r.allowSparse?l:n.compact(l)}},9406:t=>{"use strict";t.exports=Math.max},9414:(t,e,r)=>{"use strict";r.r(e),r.d(e,{b64:()=>p,cleanUpCallbacks:()=>_,extensionToMime:()=>x,filterObject:()=>k,getMimetype:()=>b,getVersion:()=>l,isFacebook:()=>d,isMobile:()=>f,md5:()=>c,removeEmpty:()=>y,resolveCdnUrl:()=>h,resolveHost:()=>m,sanitizeName:()=>w,uniqueId:()=>g,uniqueTime:()=>v});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),u=/(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,c=function(t){return btoa(s.ArrayBuffer.hash(t,!0))},p=function(t,e){void 0===e&&(e=!1);var r=btoa(t);return e?r.replace(/\//g,"_").replace(/\+/g,"-"):r},l=function(){return"JS-3.48.4"},f=function(){return navigator&&navigator.userAgent&&u.test(navigator.userAgent)},d=function(){return navigator&&navigator.userAgent&&/\[FB.*;/i.test(navigator.userAgent)},h=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},m=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},y=function(t){var e=(0,o.Cl)({},t);return Object.keys(e).forEach((function(t){return!e[t]&&"boolean"!=typeof e[t]&&delete e[t]})),e},v=function(){var t=Date.now();return n=t===n?t+1:t},g=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"]()}))},b=function(t,e){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)(t)];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(e&&e.indexOf(".")>-1&&(s=x(e)))return[2,s];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"]}}))}))},x=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(i),r=e.length,n=0;n<r;n++)if(i[e[n]].indexOf(t)>-1)return e[n]}},w=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:"")},k=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,o.Cl)((0,o.Cl)({},e),((n={})[r]=t[r],n))}),{}):t},_=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}},9472:(t,e,r)=>{"use strict";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 s(t,e,r,n){var o=e>=1.5*r;return Math.round(t/r)+" "+n+(o?"s":"")}t.exports=function(t,u){u=u||{};var c,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 s=parseFloat(e[1]);switch((e[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}}}}(t);if("number"===l&&isFinite(t))return u.long?(c=t,(p=Math.abs(c))>=i?s(c,p,i,"day"):p>=o?s(c,p,o,"hour"):p>=n?s(c,p,n,"minute"):p>=r?s(c,p,r,"second"):c+" 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)=>{"use strict";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,s,u=this.constructor,c=t.call(this,e)||this;return c.config=r,c.response=n,c.code=o,i=c,a=u.prototype,(s=Object.setPrototypeOf)?s(i,a):i.__proto__=a,c}return(0,o.C6)(e,t),e}(Error)},9927:t=>{"use strict";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}))}))}}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var r=__webpack_module_cache__[t]={id:t,loaded:!1,exports:{}};return __webpack_modules__[t].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.amdO={},__webpack_require__.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(t,e)=>{for(var r in e)__webpack_require__.o(e,r)&&!__webpack_require__.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),__webpack_require__.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},__webpack_require__.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var __webpack_exports__={};return(()=>{"use strict";function t(e){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(e)}__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Align:()=>ht,AudioTypes:()=>Et,BlurMode:()=>yt,Client:()=>Ze,ColorspaceType:()=>xt,CropfacesType:()=>wt,EAlignFacesOptions:()=>Xt,EAlignOptions:()=>Jt,EAudioTypes:()=>ce,EBlurMode:()=>ee,EColorspaceType:()=>ie,ECropfacesType:()=>ae,EFitOptions:()=>te,EImageWatermarkPosition:()=>ue,ENoiseType:()=>ne,EShapeType:()=>re,ESmartCropMode:()=>se,EStyleType:()=>oe,EUrlscreenshotAgent:()=>le,EUrlscreenshotMode:()=>fe,EUrlscreenshotOrientation:()=>de,EVideoAccess:()=>me,EVideoAccessMode:()=>ye,EVideoLocations:()=>he,EVideoTypes:()=>pe,EnhancePreset:()=>Dt,Filelink:()=>Lt,Filestack:()=>He,FilestackError:()=>ot,FilestackErrorType:()=>rt,FitOptions:()=>mt,FsCancelToken:()=>Wt,FsHttpMethod:()=>qt.j,FsRequest:()=>Ht,FsRequestError:()=>Yt.d,FsRequestErrorCode:()=>Yt.E,ImageWatermarkPosition:()=>kt,Locations:()=>Pt,NoiseType:()=>gt,PickerDisplayMode:()=>$e,PrefetchEvents:()=>ze,ShapeType:()=>vt,SmartCropMode:()=>_t,StyleType:()=>bt,TransformSchema:()=>it,URLScreenshotAgent:()=>Ft,URLScreenshotMode:()=>Ot,URLScreenshotOrientation:()=>jt,VideoAccess:()=>At,VideoAccessMode:()=>Tt,VideoTypes:()=>St,b64:()=>pt.b64,cleanUpCallbacks:()=>pt.cleanUpCallbacks,extensionToMime:()=>pt.extensionToMime,filterObject:()=>pt.filterObject,getMimetype:()=>pt.getMimetype,getSecurity:()=>i,getVersion:()=>pt.getVersion,init:()=>Ye,isFacebook:()=>pt.isFacebook,isMobile:()=>pt.isMobile,md5:()=>pt.md5,removeEmpty:()=>pt.removeEmpty,resolveCdnUrl:()=>pt.resolveCdnUrl,resolveHost:()=>pt.resolveHost,sanitizeName:()=>pt.sanitizeName,transform:()=>ge,uniqueId:()=>pt.uniqueId,uniqueTime:()=>pt.uniqueTime,validateWebhookSignature:()=>a,version:()=>We});var e=function(e){var r={};function n(t){if(r[t])return r[t].exports;var o=r[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=r,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(e,r){if(1&r&&(e=n(e)),8&r)return e;if(4&r&&"object"==t(e)&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,r){r.r(e),r.d(e,"loadModules",(function(){return u})),r.d(e,"loadModule",(function(){return c})),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,s=function(t,e,r){t.detachEvent?t.detachEvent("onreadystatechange",e):t.removeEventListener(r,e,!1)},u=function(t){return Promise.all(t.map((function(t){var e=t.id,r=t.url;return c(e,r)}))).then((function(e){var r={};return e.forEach((function(e,n){var o=t[n];r[o.id]=e})),r}))},c=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;s(i,e,"load"),s(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={}))}]),r=(e.loadModules,e.loadModule),n=e.registerModule,o=(e.loadCss,e.FILESTACK_MODULES),i=function(t,e){throw new Error("getSecurity is only supported in nodejs")},a=function(t,e,r){throw new Error("validateWebhookSignature is only supported in nodejs")},s=__webpack_require__(1635),u=__webpack_require__(6274);const c=u;var p="8.55.0",l=globalThis;function f(t,e,r){var n=r||l,o=n.__SENTRY__=n.__SENTRY__||{},i=o[p]=o[p]||{};return i[t]||(i[t]=e())}function d(){return h(l),l}function h(t){var e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||p,e[p]=e[p]||{}}function m(){return Date.now()/1e3}var y=function(){var t=l.performance;if(!t||!t.now)return m;var e=Date.now()-t.now(),r=null==t.timeOrigin?e:t.timeOrigin;return function(){return(r+t.now())/1e3}}();function v(){var t=l,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=l.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,s="number"==typeof a?Math.abs(a+r-n):e;(i||s<e)&&(o<=s&&t.timeOrigin)}}();var g=Object.prototype.toString;function b(t){return function(t,e){return g.call(t)==="[object ".concat(e,"]")}(t,"Object")}var x="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,w=["debug","info","warn","error","log","assert","trace"],k={};function _(t){if(!("console"in l))return t();var e=l.console,r={},n=Object.keys(k);n.forEach((function(t){var n=k[t];r[t]=e[t],e[t]=n}));try{return t()}finally{n.forEach((function(t){e[t]=r[t]}))}}var E=f("logger",(function(){var t=!1,e={enable:function(){t=!0},disable:function(){t=!1},isEnabled:function(){return t}};return x?w.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&&_((function(){var t;(t=l.console)[r].apply(t,["".concat("Sentry Logger ","[").concat(r,"]:")].concat(n))}))}})):w.forEach((function(t){e[t]=function(){}})),e}));function S(){return v()}function F(){return v().substring(16)}function O(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,e,r){var n;return n=function(t){if("object"!=P(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=P(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==P(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function P(t){return P="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},P(t)}function A(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(!e||"object"!==P(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?O(Object(r),!0).forEach((function(e){j(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):O(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]=A(n[o],e[o],r-1));return n}var T="_sentrySpan";function D(t,e){e?function(t,e,r){try{Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0})}catch(r){x&&E.log('Failed to add non-enumerable property "'.concat(e,'" to object'),t)}}(t,T,e):delete t[T]}function I(t){return t[T]}function C(t){return C="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},C(t)}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 B(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){z(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}function z(t,e,r){return(e=q(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function N(t){return function(t){if(Array.isArray(t))return M(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||R(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 R(t,e){if(t){if("string"==typeof t)return M(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)?M(t,e):void 0}}function M(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 U(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,q(n.key),n)}}function q(t){var e=function(t){if("object"!=C(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==C(e)?e:String(e)}var $=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:S(),spanId:F()}}var e,r;return e=t,(r=[{key:"clone",value:function(){var e=new t;return e._breadcrumbs=N(this._breadcrumbs),e._tags=B({},this._tags),e._extra=B({},this._extra),e._contexts=B({},this._contexts),this._contexts.flags&&(e._contexts.flags={values:N(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=N(this._eventProcessors),e._requestSession=this._requestSession,e._attachments=N(this._attachments),e._sdkProcessingMetadata=B({},this._sdkProcessingMetadata),e._propagationContext=B({},this._propagationContext),e._client=this._client,e._lastEventId=this._lastEventId,D(e,I(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||y(),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:v()),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=B(B({},this._tags),t),this._notifyScopeListeners(),this}},{key:"setTag",value:function(t,e){return this._tags=B(B({},this._tags),{},z({},t,e)),this._notifyScopeListeners(),this}},{key:"setExtras",value:function(t){return this._extra=B(B({},this._extra),t),this._notifyScopeListeners(),this}},{key:"setExtra",value:function(t,e){return this._extra=B(B({},this._extra),{},z({},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 $?[n.getScopeData(),n.getRequestSession()]:b(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,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,r)||R(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],s=i||{},u=s.tags,c=s.extra,p=s.user,l=s.contexts,f=s.level,d=s.fingerprint,h=void 0===d?[]:d,m=s.propagationContext;return this._tags=B(B({},this._tags),u),this._extra=B(B({},this._extra),c),this._contexts=B(B({},this._contexts),l),p&&Object.keys(p).length&&(this._user=p),f&&(this._level=f),h.length&&(this._fingerprint=h),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,D(this,void 0),this._attachments=[],this.setPropagationContext({traceId:S()}),this._notifyScopeListeners(),this}},{key:"addBreadcrumb",value:function(t,e){var r="number"==typeof e?e:100;if(r<=0)return this;var n=B({timestamp:m()},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:I(this)}}},{key:"setSDKProcessingMetadata",value:function(t){return this._sdkProcessingMetadata=A(this._sdkProcessingMetadata,t,2),this}},{key:"setPropagationContext",value:function(t){return this._propagationContext=B({spanId:F()},t),this}},{key:"getPropagationContext",value:function(){return this._propagationContext}},{key:"captureException",value:function(t,e){var r=e&&e.event_id?e.event_id:v();if(!this._client)return E.warn("No client configured on scope - will not capture exception!"),r;var n=new Error("Sentry syntheticException");return this._client.captureException(t,B(B({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:v();if(!this._client)return E.warn("No client configured on scope - will not capture message!"),n;var o=new Error(t);return this._client.captureMessage(t,e,B(B({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:v();return this._client?(this._client.captureEvent(t,B(B({},e),{},{event_id:r}),this),r):(E.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)}}])&&U(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function G(t){return G="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},G(t)}function V(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,Z(n.key),n)}}function Z(t){var e=function(t){if("object"!=G(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=G(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==G(e)?e:String(e)}var H=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 $,o=r||new $,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())}}])&&V(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Y(){var t=h(d());return t.stack=t.stack||new H(f("defaultCurrentScope",(function(){return new $})),f("defaultIsolationScope",(function(){return new $})))}function W(t){return Y().withScope(t)}function K(t,e){var r=Y();return r.withScope((function(){return r.getStackTop().scope=t,e(t)}))}function Q(t){return Y().withScope((function(){return t(Y().getIsolationScope())}))}function J(t){var e=h(t);return e.acs?e.acs:{withIsolationScope:Q,withScope:W,withSetScope:K,withSetIsolationScope:function(t,e){return Q(e)},getCurrentScope:function(){return Y().getScope()},getIsolationScope:function(){return Y().getIsolationScope()}}}function X(){for(var t=J(d()),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 tt(t){return tt="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},tt(t)}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}var rt,nt={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("1.37.10","/picker.js")}};!function(t){t.VALIDATION="validation",t.REQUEST="request",t.ABORTED="aborted",t.OTHER="other"}(rt||(rt={}));var ot=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,s.C6)(e,t),e}(Error),it={$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"}}}}},at=__webpack_require__(4282),st={$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"]}]}]}}},ut=new at.Validator;at.Validator.prototype.customFormats.callback=function(t){return"function"==typeof t},at.Validator.prototype.customFormats.HTMLContainer=function(t){return"string"==typeof t||t.toString&&t.toString().indexOf("HTML")>-1};var ct=function(t){return function(e){return ut.addSchema(st),ut.validate(e,t)}},pt=__webpack_require__(9414),lt=__webpack_require__(1227),ft=__webpack_require__.n(lt);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)}var ht,mt,yt,vt,gt,bt,xt,wt,kt,_t,Et,St,Ft,Ot,jt,Pt,At,Tt,Dt,It=ft()("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"}(ht||(ht={})),function(t){t.clip="clip",t.crop="crop",t.scale="scale",t.max="max"}(mt||(mt={})),function(t){t.linear="linear",t.gaussian="gaussian"}(yt||(yt={})),function(t){t.oval="oval",t.rect="rect"}(vt||(vt={})),function(t){t.none="none",t.low="low",t.medium="medium",t.high="high"}(gt||(gt={})),function(t){t.artwork="artwork",t.photo="photo"}(bt||(bt={})),function(t){t.RGB="RGB",t.CMYK="CMYK",t.Input="Input"}(xt||(xt={})),function(t){t.thumb="thumb",t.crop="crop",t.fill="fill"}(wt||(wt={})),function(t){t.top="top",t.middle="middle",t.bottom="bottom",t.left="left",t.center="center",t.right="right"}(kt||(kt={})),function(t){t.face="face",t.auto="auto"}(_t||(_t={})),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"}(Et||(Et={})),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"}(St||(St={})),function(t){t.desktop="desktop",t.mobile="mobile"}(Ft||(Ft={})),function(t){t.all="all",t.window="window"}(Ot||(Ot={})),function(t){t.portrait="portrait",t.landscape="landscape"}(jt||(jt={})),function(t){t.s3="s3",t.azure="azure",t.gcs="gcs",t.rackspace="rackspace",t.dropbox="dropbox"}(Pt||(Pt={})),function(t){t.private="private",t.public="public"}(At||(At={})),function(t){t.preserve="preserve",t.constrain="constrain",t.letterbox="letterbox",t.pad="pad",t.crop="crop"}(Tt||(Tt={})),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"}(Dt||(Dt={}));var Ct=/^[\w\-]{20}|wf:\/\/[\w\-\/]{106}$/,Lt=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(It("Source ".concat(t," - isExternal? ").concat(e)),e&&!this.apikey)throw new ot("External sources requires apikey to handle transforms");if(!e&&"string"==typeof this.source&&!Ct.test(this.source)&&-1===this.source.indexOf("filestackcontent"))throw new ot("Invalid filestack source provided")},t.prototype.getValidationSchema=function(){return it},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,pt.b64)(JSON.stringify(this.transforms),!0))),Array.isArray(r)&&(r=this.arrayToString(r)),r="b64://".concat((0,pt.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(ft()("Add task  ".concat(t," with params %O"),e),"cache"!==t&&"boolean"==typeof e){if(!e)return this;e=void 0}else"object"!==dt(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 ot("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 ot("Params validation error",r.errors,rt.VALIDATION)},t.prototype.getCdnHost=function(){var t=Object.assign({},nt.urls);return this.customDomain&&(t.cdnUrl=this.customDomain),(t=(0,pt.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=ct(it),t}(),Bt={$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"}}}]}}},zt={$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"}}},Nt={$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}}}},Rt={$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"},autoCropArea:{type:"number",minimum:0,maximum:1}}}]}}},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,s.Cl)((0,s.Cl)({},Nt.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"},googleAppOrigin:{type:"string"}}},Mt={$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"}}},Ut={$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"}}},qt=__webpack_require__(5934),$t=__webpack_require__(6854),Gt=ft()("fs:request:dispatch"),Vt=function(){function t(t){this.adapter=t}return t.prototype.request=function(t){var e=this;return t.headers=t.headers||{},Gt("Dispatching request %O",t),this.adapter.request(t).catch((function(t){return Gt('Request error "%s": %O',t,t.response),e.retry(t)}))},t.prototype.retry=function(t){var e=this,r=t.config;if(!(0,$t.S)(t))return Gt("[Retry] Request error is not retriable. Exiting"),Promise.reject(t);if(!r.retry)return Gt("[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 Gt("[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,s.Cl)((0,s.Cl)({},r.runtime),{retryCount:o+1}),Gt("[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}(),Zt=__webpack_require__(3574).U,Ht=function(){function t(t){this.defaults=t,this.dispatcher=new Vt(new Zt)}return t.getInstance=function(){return t.instance||(t.instance=new t),t.instance},t.prototype.dispatch=function(t){return t.method||(t.method=qt.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:qt.j.GET,url:e}))},t.head=function(e,r){return t.getInstance().dispatch(Object.assign({},r||{},{method:qt.j.HEAD,url:e}))},t.options=function(e,r){return t.getInstance().dispatch(Object.assign({},r||{},{method:qt.j.OPTIONS,url:e}))},t.purge=function(e,r){return t.getInstance().dispatch(Object.assign({},r||{},{method:qt.j.PURGE,url:e}))},t.delete=function(e,r){return t.getInstance().dispatch(Object.assign({},r||{},{method:qt.j.DELETE,url:e}))},t.post=function(e,r,n){return t.getInstance().dispatch(Object.assign({},n||{},{method:qt.j.POST,url:e,data:r}))},t.put=function(e,r,n){return t.getInstance().dispatch(Object.assign({},n||{},{method:qt.j.PUT,url:e,data:r}))},t.path=function(e,r,n){return t.getInstance().dispatch(Object.assign({},n||{},{method:qt.j.PATH,url:e,data:r}))},t}(),Yt=__webpack_require__(9653),Wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,s.C6)(e,t),e.prototype.cancel=function(t){this.emit("cancel",t),this.removeAllListeners()},e}(u),Kt=function(t,e,r,n){if(!e||"string"!=typeof e)throw new ot("A valid Filestack handle is required for remove");if(!(t.policy&&t.signature||n&&n.policy&&n.signature))throw new ot("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),Ht.delete(i,{filestackHeaders:!1,params:(0,pt.removeEmpty)(a)})};function Qt(t){return Qt="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},Qt(t)}var Jt,Xt,te,ee,re,ne,oe,ie,ae,se,ue,ce,pe,le,fe,de,he,me,ye,ve=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"!==Qt(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"}(Jt||(Jt={})),function(t){t.left="left",t.right="right",t.center="center",t.bottom="bottom",t.top="top",t.faces="faces"}(Xt||(Xt={})),function(t){t.clip="clip",t.crop="crop",t.scale="scale",t.max="max"}(te||(te={})),function(t){t.linear="linear",t.gaussian="gaussian"}(ee||(ee={})),function(t){t.oval="oval",t.rect="rect"}(re||(re={})),function(t){t.none="none",t.low="low",t.medium="medium",t.high="high"}(ne||(ne={})),function(t){t.artwork="artwork",t.photo="photo"}(oe||(oe={})),function(t){t.RGB="RGB",t.CMYK="CMYK",t.Input="Input"}(ie||(ie={})),function(t){t.thumb="thumb",t.crop="crop",t.fill="fill"}(ae||(ae={})),function(t){t.fit="fit",t.auto="auto"}(se||(se={})),function(t){t.top="top",t.middle="middle",t.bottom="bottom",t.left="left",t.center="center",t.right="right"}(ue||(ue={})),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"}(ce||(ce={})),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"}(pe||(pe={})),function(t){t.desktop="desktop",t.mobile="mobile"}(le||(le={})),function(t){t.all="all",t.window="window"}(fe||(fe={})),function(t){t.portrait="portrait",t.landscape="landscape"}(de||(de={})),function(t){t.s3="s3",t.azure="azure",t.gcs="gcs",t.rackspace="rackspace",t.dropbox="dropbox"}(he||(he={})),function(t){t.private="private",t.public="public"}(me||(me={})),function(t){t.preserve="preserve",t.constrain="constrain",t.letterbox="letterbox",t.pad="pad",t.crop="crop"}(ye||(ye={}));var ge=function(t,e,r,n){void 0===r&&(r={}),void 0===n&&(n=!1),r=ve(r),t.policy&&t.signature&&(r.security={policy:t.policy,signature:t.signature});var o=new Lt(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 be(t){return be="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},be(t)}function xe(t){return xe="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},xe(t)}var we,ke=function(){function t(t,e){this._file=t,this._sanitizeOptions=e,this._file.name=(0,pt.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,pt.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(xe(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(xe(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,s.sH)(this,void 0,void 0,(function(){var r;return(0,s.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,s.Cl)((0,s.Cl)({},t),{buffer:r,md5:e?(0,pt.md5)(r):void 0}))]}}))}))},t.prototype.getChunkByMetadata=function(t,e,r,n){return void 0===n&&(n=!0),(0,s.sH)(this,void 0,void 0,(function(){var o,i,a;return(0,s.YH)(this,(function(u){switch(u.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=u.sent(),[2,Promise.resolve((0,s.Cl)((0,s.Cl)({},t),{buffer:a,md5:n?(0,pt.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}(),_e=/data:([a-zA-Z]*\/[a-zA-Z]*);base64,([^\"]*)/i,Ee=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(_e).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(_e);t=n.pop(),r=n[1]}for(var o=atob(t),i=[],a=0;a<o.length;a+=e){for(var s=o.slice(a,a+e),u=new Array(s.length),c=0;c<s.length;c+=1)u[c]=s.charCodeAt(c);i.push(new Uint8Array(u))}return new Blob(i,{type:r})}(t);else{if(!function(t){return"[object Blob]"===t.toString()}(t))return Promise.reject(new ot("Unsupported input file type"));o=t}return function(t){return(0,s.sH)(void 0,void 0,void 0,(function(){return(0,s.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 ot("The File APIs are not fully supported by your browser"))]}))}))}(o).then((function(t){return(0,s.sH)(void 0,void 0,void 0,(function(){var i,a;return(0,s.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=pt.getMimetype,[4,t.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 ke({name:n,size:o.size,type:r||i,slice:t.slice,release:t.release},e)]}}))}))}))},Se=__webpack_require__(3772),Fe=__webpack_require__(830),Oe=8388608,je=32768,Pe=ft()("fs:upload:abstract"),Ae=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,pt.isMobile)()?1048576:Oe,n.timeout=3e4,n.uploadMode="default",n.isModeLocked=!1,n.integrityCheck=!0,n.uploadTags=null,n}return(0,s.C6)(e,t),e.prototype.setSecurity=function(t){Pe("Set security %O",t),this.security=t},e.prototype.setApikey=function(t){Pe("Set apikey to ".concat(t)),this.apikey=t},e.prototype.setTimeout=function(t){Pe("Set request timeout to ".concat(t)),this.timeout=t},e.prototype.setRetryConfig=function(t){Pe("Set retry config to ".concat(t)),this.retryConfig=t},e.prototype.setUrl=function(t){Pe("Set upload url to ".concat(t)),this.url=t},e.prototype.setUploadTags=function(t){Pe("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,Pe("Set upload mode to ".concat(t)),this.uploadMode=t):Pe("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(Pe("Set part size to ".concat(t)),t<5242880)throw new ot("Minimum part size is 5MB");this.partSize=t}else Pe("Cannot set part size because upload mode is other than default. ")},e.prototype.getPartSize=function(){return this.partSize},e.prototype.setIntelligentChunkSize=function(t){if(Pe("Set inteligent chunk size to ".concat(t)),t<je)throw new ot("Minimum intelligent chunk size is ".concat(je));this.intelligentChunkSize=t},e.prototype.getIntelligentChunkSize=function(){return this.intelligentChunkSize},e.prototype.getUrl=function(){if(!this.url)throw new ot("Upload url not set");return this.url},e}(c),Te=ft()("fs:upload:s3"),De=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.payloads={},n.partsQueue=new Se.A({autoStart:!1,concurrency:n.concurrency}),n.cancelToken=new Wt,n}return(0,s.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,s.sH)(this,void 0,void 0,(function(){var t,e=this;return(0,s.YH)(this,(function(r){return t=Object.keys(this.payloads).map((function(t){return new Promise((function(r){return(0,s.sH)(e,void 0,void 0,(function(){var e,n;return(0,s.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),Te("[".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){Te("Add file to queue: \n %o",t);var e="".concat((0,pt.uniqueId)(15),"_").concat((0,pt.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,s.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,s.Cl)((0,s.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,s.Cl)((0,s.Cl)({},(0,pt.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=Oe,r=!0);for(var n=e.getPartsCount(this.partSize,r),o=n.partsCount,i=n.chunkSize,a=[],u=0;u<o;u++)a[u]=(0,s.Cl)((0,s.Cl)({},e.getPartMetadata(u,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 ot('Invalid file "'.concat(r.file.name,'" size - 0'),{},rt.VALIDATION))):(Te("[".concat(t,"] Make start request")),Ht.post("".concat(this.getUrl(),"/multipart/start"),(0,s.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?(Te("[".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)&&(Te("[".concat(t,"] Intelligent Ingestion is not enabled on account, switch back to regular upload and lock mode change")),e.setUploadMode("default",!0)),n):(Te("[".concat(t,"] Incorrect start response: \n%O\n"),n),e.setPayloadStatus(t,"Failed"),Promise.reject(new ot("Incorrect start response",n,rt.REQUEST)))})).catch((function(r){return Te("[".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,s.sH)(this,void 0,void 0,(function(){var e,r,n,o=this;return(0,s.YH)(this,(function(i){return e=this.getPayloadById(t),r=e.parts,n=r.length,Te("[".concat(t,"] Create uploading queue from file. parts count - %d"),n),[2,new Promise((function(e,n){return(0,s.sH)(o,void 0,void 0,(function(){var o,i=this;return(0,s.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"),Te("[".concat(t,"] Failed to upload part %s"),e.message),i.partsQueue.pause(),i.partsQueue.clear(),n(e)}))})),Te("[".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 Te("[".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);Te("[".concat(t,"] Get data for part ").concat(e.partNumber,", url ").concat(o,", Md5: ").concat(e.md5,", Size: ").concat(e.size));var i=(0,s.Cl)((0,s.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),Ht.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,s.sH)(this,void 0,void 0,(function(){var r,n,o,i,a,u,c=this;return(0,s.YH)(this,(function(s){switch(s.label){case 0:return r=this.getPayloadById(t),n=r.parts[e],[4,r.file.getPartByMetadata(n,this.integrityCheck)];case 1:return o=s.sent(),[4,this.getS3PartMetadata(t,o)];case 2:return i=s.sent(),a=i.data,u=i.headers,Te("[".concat(t,"] Received part ").concat(e," info body: \n%O\n headers: \n%O\n"),a,u),[2,Ht.put(a.url,o.buffer,{cancelToken:this.cancelToken,timeout:this.timeout,headers:a.headers,filestackHeaders:!1,onProgress:function(r){return c.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 ot("Cannot upload file, check S3 bucket settings","Etag header is not exposed in CORS settings",rt.REQUEST);return c.setPartETag(t,e,r.headers.etag),Te("[".concat(t,"] S3 Upload response headers for ").concat(e,": \n%O\n"),r.headers),c.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?c.startPart(t,e):Promise.reject(new ot("Cannot upload file",n.data.Error,rt.REQUEST))}return o=null,r instanceof ot?Promise.reject(r):(c.onProgressUpdate(t,e,0),"fallback"===c.uploadMode&&!c.isModeLocked||"intelligent"===c.uploadMode?(Te("[".concat(t,"] Regular upload failed. Switching to intelligent ingestion mode")),c.setUploadMode("intelligent"),c.startPart(t,e)):c.rejectUpload("Cannot upload file part",r))}))]}}))}))},e.prototype.uploadIntelligent=function(t,e){return(0,s.sH)(this,void 0,void 0,(function(){var r=this;return(0,s.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,s.sH)(this,void 0,void 0,(function(){var n,o,i,a,u=this;return(0,s.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(),Te("[".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 Te("[".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,Ht.put(a.url,i.buffer,{cancelToken:this.cancelToken,timeout:this.timeout,headers:a.headers,filestackHeaders:!1,onProgress:function(r){return o?u.onProgressUpdate(t,e,o.offset+r.loaded):null}}).then((function(n){u.onProgressUpdate(t,e,o.offset+i.size);var a=Math.min(o.offset+r,o.size);return Te("[".concat(t,"] S3 Chunk uploaded! offset: ").concat(o.offset,", part ").concat(e,"! response headers for ").concat(e,": \n%O\n"),n.headers),u.setPartData(t,e,"offset",a),a===o.size?Promise.resolve(n):(o=null,i=null,u.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?u.startPart(t,e):Promise.reject(new ot("Cannot upload file",a.data.Error,rt.REQUEST))}u.onProgressUpdate(t,e,o.offset);var c=Math.ceil(r/2);return c<je?(Te("[".concat(t,"] Minimal chunk size limit. Upload file failed!")),Promise.reject(new ot("Min chunk size reached",n.data,rt.REQUEST))):(0,Fe.Sc)(n)?(Te("[".concat(t,"] Request network error. Retry with new chunk size: ").concat(c)),u.uploadNextChunk(t,e,c)):(o=null,i=null,u.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 Ht.post("".concat(this.getUploadUrl(t),"/multipart/commit"),(0,s.Cl)((0,s.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 Te("[".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=[];Te("[".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 Te("[".concat(t,"] Etags %O"),n),Ht.post("".concat(this.getUploadUrl(t),"/multipart/complete"),(0,s.Cl)((0,s.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};Te("Upload progress %O",a),this.emit("progress",a)},e.prototype.updatePayload=function(t,e){this.payloads[t]=(0,s.Cl)((0,s.Cl)({},this.payloads[t]),e)},e.prototype.setPartETag=function(t,e,r){Te("[".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){Te("[".concat(t,"] Set ").concat(r," = ").concat(n," for part ").concat(e));var o=this.getPayloadById(t);o?o.parts[e][r]=n:Te("[".concat(t,"] Cannot set ").concat(r," = ").concat(n," for part ").concat(e))},e.prototype.setPayloadStatus=function(t,e){Te("[".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 Yt.d&&e.code===Yt.E.ABORTED?Promise.reject(new ot(t,{reason:e.message},rt.ABORTED)):Promise.reject(new ot(t,this.parseError(e),rt.REQUEST))},e}(Ae),Ie=function(t,e){return t.totalBytes=Math.max(t.totalBytes,e.totalBytes),t.totalPercent=Math.max(t.totalPercent,e.totalPercent),t},Ce=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=ct(Nt)(e);if(o.errors.length)throw new ot("Invalid upload params",o.errors,rt.VALIDATION);var i=ct(Bt)(r);if(i.errors.length)throw new ot("Invalid store upload params",i.errors,rt.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 De(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,s.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,s.sH)(this,void 0,void 0,(function(){var e,r;return(0,s.YH)(this,(function(n){switch(n.label){case 0:return[4,Ee(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,s.sH)(this,void 0,void 0,(function(){var e,r,n,o,i,a,u;return(0,s.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,Ee(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 u=s.sent(),this.stopProgressInterval(),this.uploader.removeAllListeners(),[2,Promise.resolve(u)]}}))}))},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=Ie(t,this.lastProgress),this.lastProgress.files)for(var e in t.files)this.lastProgress.files[e]&&(t.files[e]=Ie(t.files[e],this.lastProgress.files[e]));this.lastProgress=t},e}(u),Le=ft()("fs:storage"),Be=function(){function t(){this.availableTypes=[],void 0!==window.localStorage&&(this.availableTypes.push(we.LOCAL),Le("Local storage exists")),void 0!==window.sessionStorage&&(this.availableTypes.push(we.SESSION),Le("Session storage exists")),Le("availableTypes - %O",this.availableTypes)}return t.prototype.hasAccess=function(t){return Le("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(Le("getItem %s from %O",t,r),r)return r.getItem(t)},t.prototype.setItem=function(t,e,r){var n=this.getStore(r);if(Le("setItem %s to %O",t,n),n)return n.setItem(t,e)},t.prototype.removeItem=function(t,e){var r=this.getStore(e);if(Le("removeItem %s from %O",t,r),r)return r.removeItem(t)},t.prototype.getStore=function(t){if(Le("get store with pref type - %s",t),this.hasAccess(t))switch(t){case we.LOCAL:return window.localStorage;case we.SESSION:return window.sessionStorage;default:return window[this.availableTypes[0]]}else Le("User dont have access to any storage")},t}();!function(t){t.SESSION="sessionStorage",t.LOCAL="localStorage"}(we||(we={}));var ze,Ne="__fs_picker_token",Re=function(){function t(t,e){this.cache=!1,this.session=t,this.storeAdapter=new Be,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(Ne,we.LOCAL);if(t)return t}return this.isInAppBrowser?this.storeAdapter.getItem(Ne,we.SESSION):this._token},set:function(t){this.cache&&this.storeAdapter.setItem(Ne,t,we.LOCAL),this.isInAppBrowser&&this.storeAdapter.setItem(Ne,t,we.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 Wt;e.cancel=a.cancel.bind(a),i.cancelToken=a}return Ht.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 s,u=this;void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=null),void 0===r.location&&(r.location="s3");var c={apikey:this.session.apikey,token:this.token,flow:"web",upload_tags:i||void 0,clouds:(s={},s[t]={path:e,picker_session_id:a,store:(0,pt.removeEmpty)(r)},s)};"customsource"===t&&n.customSourcePath&&(c.clouds.customsource.customSourcePath=n.customSourcePath),"customsource"===t&&n.customSourceContainer&&(c.clouds.customsource.customSourceContainer=n.customSourceContainer),this.session.policy&&this.session.signature&&(c.policy=this.session.policy,c.signature=this.session.signature);var p={};if(o){var l=new Wt;o.cancel=l.cancel.bind(l),p.cancelToken=l}return Ht.post("".concat(this.cloudApiUrl,"/store/"),c,p).then((function(e){return e.data&&e.data.token&&(u.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(Ne,we.LOCAL),this.isInAppBrowser&&this.storeAdapter.removeItem(Ne,we.SESSION)),Ht.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),Ht.post("".concat(this.cloudApiUrl,"/metadata"),r).then((function(t){return t.data}))},t.prototype.tokInit=function(t){if("video"!==t&&"audio"!==t)throw new ot("Type must be one of video or audio.");return Ht.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 ot("Type must be one of video or audio.");var n={apikey:e,session_id:r};return Ht.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 ot("Type must be one of video or audio.");var o={apikey:e,session_id:r,archive_id:n};return Ht.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}(),Me=__webpack_require__(395),Ue=__webpack_require__.n(Me);!function(t){t.PICKER="picker",t.TRANSFORM_UI="transform_ui"}(ze||(ze={}));var qe,$e,Ge=function(){function t(t){this.session=t instanceof Ze?t.session:t}return t.prototype.getConfig=function(t){var e=t.pickerOptions,r=t.settings,n=t.permissions,o=t.events;return(0,s.sH)(this,void 0,void 0,(function(){var t,i,a=this;return(0,s.YH)(this,(function(u){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,pt.cleanUpCallbacks)(Ue()((0,s.Cl)({},e)))),t=(0,s.Cl)((0,s.Cl)({},t),{permissions:n,settings:r,picker_config:i,events:o}),this.session.prefetch=null,[2,Ht.post("".concat(this.session.urls.uploadApiUrl,"/prefetch"),t).then((function(t){if(200!==t.status)throw new ot("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"}(qe||(qe={})),function(t){t.inline="inline",t.overlay="overlay",t.dropPane="dropPane"}($e||($e={}));var Ve=function(){function t(t,e){var r=ct(Rt)(e);r.errors.length&&(r.errors.forEach((function(t){if(!t.path.includes("fromSources"))throw new ot("Invalid picker params",r.errors,rt.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,s.sH)(this,void 0,void 0,(function(){return(0,s.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,s.sH)(this,void 0,void 0,(function(){return(0,s.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,s.sH)(this,void 0,void 0,(function(){return(0,s.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,s.sH)(this,void 0,void 0,(function(){return(0,s.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,s.sH)(this,void 0,void 0,(function(){var n;return(0,s.YH)(this,(function(i){switch(i.label){case 0:return n=t.session.urls.pickerUrl,[4,r(o.PICKER,n)];case 1:return[2,new(i.sent())(t,e)]}}))}))},t}();!function(t,e){var r=J(d()).getCurrentScope().getClient(),n=J(d()).getIsolationScope();if(r){var o=r.getOptions(),i=o.beforeBreadcrumb,a=void 0===i?null:i,s=o.maxBreadcrumbs,u=void 0===s?100:s;if(!(u<=0)){var c=function(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,a;n=t,o=e,i=r[e],a=function(t){if("object"!=tt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=tt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o),(o="symbol"==tt(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)):et(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({timestamp:m()},{category:"sdk",message:"filestack-js-sdk scope"}),p=a?_((function(){return a(c,e)})):c;null!==p&&(r.emit&&r.emit("beforeAddBreadcrumb",p,e),n.addBreadcrumb(p,u))}}}();var Ze=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=nt.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 Ge(n.session),n.cloud=new Re(n.session,r),n}return(0,s.C6)(e,t),Object.defineProperty(e.prototype,"utils",{get:function(){return pt},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 ot("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=pt.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 ot("A valid Filestack handle is required for metadata");var o=ct(Mt)(r);if(o.errors.length)throw new ot("Invalid metadata params",o.errors);var i=(0,s.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){Ht.get(a,{params:(0,pt.removeEmpty)(i),filestackHeaders:!1}).then((function(r){return t((0,s.Cl)((0,s.Cl)({},r.data),{handle:e}))})).catch(r)}))}(this.session,t,e,r)},e.prototype.picker=function(t){return function(t,e){return new Ve(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=ct(zt)(r);if(n.errors.length)throw new ot("Invalid preview params",n.errors,rt.VALIDATION);var o=(0,pt.removeEmpty)(r||{}),i=function(t,e,r){var n=(0,s.Cl)({},r),o=t.policy,i=t.signature,a=i&&o,u=[t.urls.cdnUrl],c=n.css&&encodeURIComponent('"'.concat(n.css,'"')),p=c?"preview=css:".concat(c):"preview";return-1!==e.indexOf("src:")?u.push("".concat(t.apikey,"/").concat(p)):u.push(p),a&&u.push("security=policy:".concat(o,",signature:").concat(i)),u.push(e),u.join("/")}(t,e,o);if(o&&o.id){var a=o.id,u=document.createElement("iframe"),c=document.getElementById(a);if(u.src=i,u.width="100%",u.height="100%",!c)throw new Error('DOM Element with id "'.concat(a,'" not found.'));return c.appendChild(u)}return window.open(i,e)}(this.session,t,e)},e.prototype.remove=function(t,e){return Kt(this.session,t,!1,e)},e.prototype.removeMetadata=function(t,e){return Kt(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,u=t.headers,c=t.workflowIds;if(!r||"string"!=typeof r)return Promise.reject(new ot("url is required for storeURL"));var p=ct(Bt)(n);if(p.errors.length)return Promise.reject(new ot("Invalid store params",p.errors));e.policy=i&&i.policy||e.policy,e.signature=i&&i.signature||e.signature;var l=new Lt(r,e.apikey);r&&"object"===be(n)&&null!==n&&(n.mimetype&&delete n.mimetype,n.altText&&delete n.altText),l.store(n),e.policy&&e.signature&&l.security({policy:e.policy,signature:e.signature});var f={};if(o){var d=new Wt;o.cancel=d.cancel.bind(d),f.cancelToken=d}var h=[r];return u&&(h=[{source:r,headers:u}]),c&&c.length>0&&l.addTask("store",{workflows:c}),Ht.post("".concat(e.urls.processUrl,"/process"),{apikey:e.apikey,sources:h,tasks:l.getTasks(),upload_tags:a},f).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,s.Cl)((0,s.Cl)({},t.data),{mimetype:t.data.type});throw new ot("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 ot("File handle is required");console.info("Retrieve method is deprecated and it will be removed. Please use metadata or download");var o=ct(Ut)(r);if(o.errors.length)throw new ot("Invalid retrieve params",o.errors);var i=(0,s.Cl)({},r);i.key=t.apikey,i.policy=n&&n.policy||t.policy,i.signature=n&&n.signature||t.signature;var a,u,c=qt.j.GET;if(i.head&&(c=qt.j.HEAD,delete i.head),i.extension&&i.extension.length&&(a=i.extension,delete i.extension),i.metadata){if(c===qt.j.HEAD)throw new ot("Head and metadata options cannot be used together");u=i.metadata,delete i.metadata}var p="".concat(t.urls.fileApiUrl,"/").concat(e)+(a?"+".concat(a):"")+(u?"/metadata":"");return new Promise((function(t,e){Ht.dispatch(p,{method:c,filestackHeaders:!1,params:(0,pt.removeEmpty)(i)}).then((function(e){return t(c===qt.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 Lt(e,t.apikey),o=r&&r.policy||t.policy,i=r&&r.signature||t.signature;return o&&i&&n.security({signature:i,policy:o}),Ht.dispatch(n.toString(),{method:qt.j.GET,blobResponse:!0})}(this.session,t,e)},e.prototype.transform=function(t,e,r){return void 0===r&&(r=!1),ge(this.session,t,e,r)},e.prototype.upload=function(t,e,r,n,o){var i=this,a=new Ce(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&&X((function(n){n.setTag("filestack-apikey",i.session.apikey),n.setTag("filestack-version",pt.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 Ce(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){X((function(n){n.setTag("filestack-apikey",i.session.apikey),n.setTag("filestack-version",pt.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}(u),He=function(t,e){return new Ze(t,e)},Ye=He,We="3.48.4";n(o.FILESTACK_SDK,He,{version:"3.48.4"})})(),__webpack_exports__})()));
//# sourceMappingURL=filestack.min.js.map