/*! For license information please see app.js.LICENSE.txt */ !function(){var r={113:function(r,o,i){var a={"./photo1.png":489,"./photo2.jpg":425,"./photo3.svg":594,".pnpm/@a2nt+meta-lightbox-js@4.0.1_debug@4.3.2/node_modules/@a2nt/meta-lightbox-js/src/img/photo1.png":489,".pnpm/@a2nt+meta-lightbox-js@4.0.1_debug@4.3.2/node_modules/@a2nt/meta-lightbox-js/src/img/photo2.jpg":425,".pnpm/@a2nt+meta-lightbox-js@4.0.1_debug@4.3.2/node_modules/@a2nt/meta-lightbox-js/src/img/photo3.svg":594,"node_modules/.pnpm/@a2nt+meta-lightbox-js@4.0.1_debug@4.3.2/node_modules/@a2nt/meta-lightbox-js/src/img/photo1.png":489,"node_modules/.pnpm/@a2nt+meta-lightbox-js@4.0.1_debug@4.3.2/node_modules/@a2nt/meta-lightbox-js/src/img/photo2.jpg":425,"node_modules/.pnpm/@a2nt+meta-lightbox-js@4.0.1_debug@4.3.2/node_modules/@a2nt/meta-lightbox-js/src/img/photo3.svg":594};function webpackContext(r){var o=webpackContextResolve(r);return i(o)}function webpackContextResolve(r){if(!i.o(a,r)){var o=new Error("Cannot find module '"+r+"'");throw o.code="MODULE_NOT_FOUND",o}return a[r]}webpackContext.keys=function webpackContextKeys(){return Object.keys(a)},webpackContext.resolve=webpackContextResolve,r.exports=webpackContext,webpackContext.id=113},885:function(r,o,i){r.exports=i(855)},145:function(r,o,i){"use strict";var a=i(750),c=i(149),u=i(804),l=i(642),p=i(295),d=i(279),h=i(868),m=i(865);r.exports=function xhrAdapter(r){return new Promise((function dispatchXhrRequest(o,i){var y=r.data,v=r.headers;a.isFormData(y)&&delete v["Content-Type"];var g=new XMLHttpRequest;if(r.auth){var _=r.auth.username||"",b=r.auth.password?unescape(encodeURIComponent(r.auth.password)):"";v.Authorization="Basic "+btoa(_+":"+b)}var E=p(r.baseURL,r.url);if(g.open(r.method.toUpperCase(),l(E,r.params,r.paramsSerializer),!0),g.timeout=r.timeout,g.onreadystatechange=function handleLoad(){if(g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))){var a="getAllResponseHeaders"in g?d(g.getAllResponseHeaders()):null,u={data:r.responseType&&"text"!==r.responseType?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:a,config:r,request:g};c(o,i,u),g=null}},g.onabort=function handleAbort(){g&&(i(m("Request aborted",r,"ECONNABORTED",g)),g=null)},g.onerror=function handleError(){i(m("Network Error",r,null,g)),g=null},g.ontimeout=function handleTimeout(){var o="timeout of "+r.timeout+"ms exceeded";r.timeoutErrorMessage&&(o=r.timeoutErrorMessage),i(m(o,r,"ECONNABORTED",g)),g=null},a.isStandardBrowserEnv()){var w=(r.withCredentials||h(E))&&r.xsrfCookieName?u.read(r.xsrfCookieName):void 0;w&&(v[r.xsrfHeaderName]=w)}if("setRequestHeader"in g&&a.forEach(v,(function setRequestHeader(r,o){"undefined"===typeof y&&"content-type"===o.toLowerCase()?delete v[o]:g.setRequestHeader(o,r)})),a.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),r.responseType)try{g.responseType=r.responseType}catch(S){if("json"!==r.responseType)throw S}"function"===typeof r.onDownloadProgress&&g.addEventListener("progress",r.onDownloadProgress),"function"===typeof r.onUploadProgress&&g.upload&&g.upload.addEventListener("progress",r.onUploadProgress),r.cancelToken&&r.cancelToken.promise.then((function onCanceled(r){g&&(g.abort(),i(r),g=null)})),y||(y=null),g.send(y)}))}},855:function(r,o,i){"use strict";var a=i(750),c=i(999),u=i(229),l=i(936);function createInstance(r){var o=new u(r),i=c(u.prototype.request,o);return a.extend(i,u.prototype,o),a.extend(i,o),i}var p=createInstance(i(822));p.Axios=u,p.create=function create(r){return createInstance(l(p.defaults,r))},p.Cancel=i(589),p.CancelToken=i(816),p.isCancel=i(882),p.all=function all(r){return Promise.all(r)},p.spread=i(867),p.isAxiosError=i(218),r.exports=p,r.exports.default=p},589:function(r){"use strict";function Cancel(r){this.message=r}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")},Cancel.prototype.__CANCEL__=!0,r.exports=Cancel},816:function(r,o,i){"use strict";var a=i(589);function CancelToken(r){if("function"!==typeof r)throw new TypeError("executor must be a function.");var o;this.promise=new Promise((function promiseExecutor(r){o=r}));var i=this;r((function cancel(r){i.reason||(i.reason=new a(r),o(i.reason))}))}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason)throw this.reason},CancelToken.source=function source(){var r;return{token:new CancelToken((function executor(o){r=o})),cancel:r}},r.exports=CancelToken},882:function(r){"use strict";r.exports=function isCancel(r){return!(!r||!r.__CANCEL__)}},229:function(r,o,i){"use strict";var a=i(750),c=i(642),u=i(748),l=i(850),p=i(936);function Axios(r){this.defaults=r,this.interceptors={request:new u,response:new u}}Axios.prototype.request=function request(r){"string"===typeof r?(r=arguments[1]||{}).url=arguments[0]:r=r||{},(r=p(this.defaults,r)).method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var o=[l,void 0],i=Promise.resolve(r);for(this.interceptors.request.forEach((function unshiftRequestInterceptors(r){o.unshift(r.fulfilled,r.rejected)})),this.interceptors.response.forEach((function pushResponseInterceptors(r){o.push(r.fulfilled,r.rejected)}));o.length;)i=i.then(o.shift(),o.shift());return i},Axios.prototype.getUri=function getUri(r){return r=p(this.defaults,r),c(r.url,r.params,r.paramsSerializer).replace(/^\?/,"")},a.forEach(["delete","get","head","options"],(function forEachMethodNoData(r){Axios.prototype[r]=function(o,i){return this.request(p(i||{},{method:r,url:o,data:(i||{}).data}))}})),a.forEach(["post","put","patch"],(function forEachMethodWithData(r){Axios.prototype[r]=function(o,i,a){return this.request(p(a||{},{method:r,url:o,data:i}))}})),r.exports=Axios},748:function(r,o,i){"use strict";var a=i(750);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(r,o){return this.handlers.push({fulfilled:r,rejected:o}),this.handlers.length-1},InterceptorManager.prototype.eject=function eject(r){this.handlers[r]&&(this.handlers[r]=null)},InterceptorManager.prototype.forEach=function forEach(r){a.forEach(this.handlers,(function forEachHandler(o){null!==o&&r(o)}))},r.exports=InterceptorManager},295:function(r,o,i){"use strict";var a=i(322),c=i(567);r.exports=function buildFullPath(r,o){return r&&!a(o)?c(r,o):o}},865:function(r,o,i){"use strict";var a=i(202);r.exports=function createError(r,o,i,c,u){var l=new Error(r);return a(l,o,i,c,u)}},850:function(r,o,i){"use strict";var a=i(750),c=i(838),u=i(882),l=i(822);function throwIfCancellationRequested(r){r.cancelToken&&r.cancelToken.throwIfRequested()}r.exports=function dispatchRequest(r){return throwIfCancellationRequested(r),r.headers=r.headers||{},r.data=c(r.data,r.headers,r.transformRequest),r.headers=a.merge(r.headers.common||{},r.headers[r.method]||{},r.headers),a.forEach(["delete","get","head","post","put","patch","common"],(function cleanHeaderConfig(o){delete r.headers[o]})),(r.adapter||l.adapter)(r).then((function onAdapterResolution(o){return throwIfCancellationRequested(r),o.data=c(o.data,o.headers,r.transformResponse),o}),(function onAdapterRejection(o){return u(o)||(throwIfCancellationRequested(r),o&&o.response&&(o.response.data=c(o.response.data,o.response.headers,r.transformResponse))),Promise.reject(o)}))}},202:function(r){"use strict";r.exports=function enhanceError(r,o,i,a,c){return r.config=o,i&&(r.code=i),r.request=a,r.response=c,r.isAxiosError=!0,r.toJSON=function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},r}},936:function(r,o,i){"use strict";var a=i(750);r.exports=function mergeConfig(r,o){o=o||{};var i={},c=["url","method","data"],u=["headers","auth","proxy","params"],l=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],p=["validateStatus"];function getMergedValue(r,o){return a.isPlainObject(r)&&a.isPlainObject(o)?a.merge(r,o):a.isPlainObject(o)?a.merge({},o):a.isArray(o)?o.slice():o}function mergeDeepProperties(c){a.isUndefined(o[c])?a.isUndefined(r[c])||(i[c]=getMergedValue(void 0,r[c])):i[c]=getMergedValue(r[c],o[c])}a.forEach(c,(function valueFromConfig2(r){a.isUndefined(o[r])||(i[r]=getMergedValue(void 0,o[r]))})),a.forEach(u,mergeDeepProperties),a.forEach(l,(function defaultToConfig2(c){a.isUndefined(o[c])?a.isUndefined(r[c])||(i[c]=getMergedValue(void 0,r[c])):i[c]=getMergedValue(void 0,o[c])})),a.forEach(p,(function merge(a){a in o?i[a]=getMergedValue(r[a],o[a]):a in r&&(i[a]=getMergedValue(void 0,r[a]))}));var d=c.concat(u).concat(l).concat(p),h=Object.keys(r).concat(Object.keys(o)).filter((function filterAxiosKeys(r){return-1===d.indexOf(r)}));return a.forEach(h,mergeDeepProperties),i}},149:function(r,o,i){"use strict";var a=i(865);r.exports=function settle(r,o,i){var c=i.config.validateStatus;i.status&&c&&!c(i.status)?o(a("Request failed with status code "+i.status,i.config,null,i.request,i)):r(i)}},838:function(r,o,i){"use strict";var a=i(750);r.exports=function transformData(r,o,i){return a.forEach(i,(function transform(i){r=i(r,o)})),r}},822:function(r,o,i){"use strict";var a=i(750),c=i(325),u={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(r,o){!a.isUndefined(r)&&a.isUndefined(r["Content-Type"])&&(r["Content-Type"]=o)}var l={adapter:function getDefaultAdapter(){var r;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(r=i(145)),r}(),transformRequest:[function transformRequest(r,o){return c(o,"Accept"),c(o,"Content-Type"),a.isFormData(r)||a.isArrayBuffer(r)||a.isBuffer(r)||a.isStream(r)||a.isFile(r)||a.isBlob(r)?r:a.isArrayBufferView(r)?r.buffer:a.isURLSearchParams(r)?(setContentTypeIfUnset(o,"application/x-www-form-urlencoded;charset=utf-8"),r.toString()):a.isObject(r)?(setContentTypeIfUnset(o,"application/json;charset=utf-8"),JSON.stringify(r)):r}],transformResponse:[function transformResponse(r){if("string"===typeof r)try{r=JSON.parse(r)}catch(o){}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function validateStatus(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],(function forEachMethodNoData(r){l.headers[r]={}})),a.forEach(["post","put","patch"],(function forEachMethodWithData(r){l.headers[r]=a.merge(u)})),r.exports=l},999:function(r){"use strict";r.exports=function bind(r,o){return function wrap(){for(var i=new Array(arguments.length),a=0;a=0)return;l[o]="set-cookie"===o?(l[o]?l[o]:[]).concat([i]):l[o]?l[o]+", "+i:i}})),l):l}},867:function(r){"use strict";r.exports=function spread(r){return function wrap(o){return r.apply(null,o)}}},750:function(r,o,i){"use strict";function _typeof(r){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(r){return typeof r}:function _typeof(r){return r&&"function"===typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}var a=i(999),c=Object.prototype.toString;function isArray(r){return"[object Array]"===c.call(r)}function isUndefined(r){return"undefined"===typeof r}function isObject(r){return null!==r&&"object"===_typeof(r)}function isPlainObject(r){if("[object Object]"!==c.call(r))return!1;var o=Object.getPrototypeOf(r);return null===o||o===Object.prototype}function isFunction(r){return"[object Function]"===c.call(r)}function forEach(r,o){if(null!==r&&"undefined"!==typeof r)if("object"!==_typeof(r)&&(r=[r]),isArray(r))for(var i=0,a=r.length;i=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},o.storage=function localstorage(){try{return localStorage}catch(r){}}(),o.destroy=(a=!1,function(){a||(a=!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`."))}),o.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"],o.log=console.debug||console.log||function(){},r.exports=i(364)(o),r.exports.formatters.j=function(r){try{return JSON.stringify(r)}catch(o){return"[UnexpectedJSONParseError]: "+o.message}}},364:function(r,o,i){function _toConsumableArray(r){return function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r)}(r)||function _iterableToArray(r){if("undefined"!==typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function _unsupportedIterableToArray(r,o){if(!r)return;if("string"===typeof r)return _arrayLikeToArray(r,o);var i=Object.prototype.toString.call(r).slice(8,-1);"Object"===i&&r.constructor&&(i=r.constructor.name);if("Map"===i||"Set"===i)return Array.from(r);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _arrayLikeToArray(r,o)}(r)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(r,o){(null==o||o>r.length)&&(o=r.length);for(var i=0,a=new Array(o);i=1.5*i;return Math.round(r/i)+" "+a+(c?"s":"")}r.exports=function(r,p){p=p||{};var d=_typeof(r);if("string"===d&&r.length>0)return function parse(r){if((r=String(r)).length>100)return;var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(r);if(!p)return;var d=parseFloat(p[1]);switch((p[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return d*l;case"weeks":case"week":case"w":return d*u;case"days":case"day":case"d":return d*c;case"hours":case"hour":case"hrs":case"hr":case"h":return d*a;case"minutes":case"minute":case"mins":case"min":case"m":return d*i;case"seconds":case"second":case"secs":case"sec":case"s":return d*o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}(r);if("number"===d&&isFinite(r))return p.long?function fmtLong(r){var u=Math.abs(r);if(u>=c)return plural(r,u,c,"day");if(u>=a)return plural(r,u,a,"hour");if(u>=i)return plural(r,u,i,"minute");if(u>=o)return plural(r,u,o,"second");return r+" ms"}(r):function fmtShort(r){var u=Math.abs(r);if(u>=c)return Math.round(r/c)+"d";if(u>=a)return Math.round(r/a)+"h";if(u>=i)return Math.round(r/i)+"m";if(u>=o)return Math.round(r/o)+"s";return r+"ms"}(r);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))}},47:function(r,o){"use strict";var i=function getGlobal(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof i)return i;throw new Error("unable to locate global object")}();r.exports=o=i.fetch,i.fetch&&(o.default=i.fetch.bind(i)),o.Headers=i.Headers,o.Request=i.Request,o.Response=i.Response},889:function(r,o,i){function _typeof(r){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(r){return typeof r}:function _typeof(r){return r&&"function"===typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}var a=function(r){"use strict";var o,i=Object.prototype,a=i.hasOwnProperty,c="function"===typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",p=c.toStringTag||"@@toStringTag";function define(r,o,i){return Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}),r[o]}try{define({},"")}catch(w){define=function define(r,o,i){return r[o]=i}}function wrap(r,o,i,a){var c=o&&o.prototype instanceof Generator?o:Generator,u=Object.create(c.prototype),l=new Context(a||[]);return u._invoke=function makeInvokeMethod(r,o,i){var a=d;return function invoke(c,u){if(a===m)throw new Error("Generator is already running");if(a===y){if("throw"===c)throw u;return doneResult()}for(i.method=c,i.arg=u;;){var l=i.delegate;if(l){var p=maybeInvokeDelegate(l,i);if(p){if(p===v)continue;return p}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(a===d)throw a=y,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);a=m;var g=tryCatch(r,o,i);if("normal"===g.type){if(a=i.done?y:h,g.arg===v)continue;return{value:g.arg,done:i.done}}"throw"===g.type&&(a=y,i.method="throw",i.arg=g.arg)}}}(r,i,l),u}function tryCatch(r,o,i){try{return{type:"normal",arg:r.call(o,i)}}catch(w){return{type:"throw",arg:w}}}r.wrap=wrap;var d="suspendedStart",h="suspendedYield",m="executing",y="completed",v={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var g={};define(g,u,(function(){return this}));var _=Object.getPrototypeOf,b=_&&_(_(values([])));b&&b!==i&&a.call(b,u)&&(g=b);var E=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(g);function defineIteratorMethods(r){["next","throw","return"].forEach((function(o){define(r,o,(function(r){return this._invoke(o,r)}))}))}function AsyncIterator(r,o){function invoke(i,c,u,l){var p=tryCatch(r[i],r,c);if("throw"!==p.type){var d=p.arg,h=d.value;return h&&"object"===_typeof(h)&&a.call(h,"__await")?o.resolve(h.__await).then((function(r){invoke("next",r,u,l)}),(function(r){invoke("throw",r,u,l)})):o.resolve(h).then((function(r){d.value=r,u(d)}),(function(r){return invoke("throw",r,u,l)}))}l(p.arg)}var i;this._invoke=function enqueue(r,a){function callInvokeWithMethodAndArg(){return new o((function(o,i){invoke(r,a,o,i)}))}return i=i?i.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(r,i){var a=r.iterator[i.method];if(a===o){if(i.delegate=null,"throw"===i.method){if(r.iterator.return&&(i.method="return",i.arg=o,maybeInvokeDelegate(r,i),"throw"===i.method))return v;i.method="throw",i.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var c=tryCatch(a,r.iterator,i.arg);if("throw"===c.type)return i.method="throw",i.arg=c.arg,i.delegate=null,v;var u=c.arg;return u?u.done?(i[r.resultName]=u.value,i.next=r.nextLoc,"return"!==i.method&&(i.method="next",i.arg=o),i.delegate=null,v):u:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,v)}function pushTryEntry(r){var o={tryLoc:r[0]};1 in r&&(o.catchLoc=r[1]),2 in r&&(o.finallyLoc=r[2],o.afterLoc=r[3]),this.tryEntries.push(o)}function resetTryEntry(r){var o=r.completion||{};o.type="normal",delete o.arg,r.completion=o}function Context(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(pushTryEntry,this),this.reset(!0)}function values(r){if(r){var i=r[u];if(i)return i.call(r);if("function"===typeof r.next)return r;if(!isNaN(r.length)){var c=-1,l=function next(){for(;++c=0;--c){var u=this.tryEntries[c],l=u.completion;if("root"===u.tryLoc)return handle("end");if(u.tryLoc<=this.prev){var p=a.call(u,"catchLoc"),d=a.call(u,"finallyLoc");if(p&&d){if(this.prev=0;--i){var c=this.tryEntries[i];if(c.tryLoc<=this.prev&&a.call(c,"finallyLoc")&&this.prev=0;--o){var i=this.tryEntries[o];if(i.finallyLoc===r)return this.complete(i.completion,i.afterLoc),resetTryEntry(i),v}},catch:function _catch(r){for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o];if(i.tryLoc===r){var a=i.completion;if("throw"===a.type){var c=a.arg;resetTryEntry(i)}return c}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(r,i,a){return this.delegate={iterator:values(r),resultName:i,nextLoc:a},"next"===this.method&&(this.arg=o),v}},r}("object"===_typeof(r=i.nmd(r))?r.exports:{});try{regeneratorRuntime=a}catch(c){"object"===("undefined"===typeof globalThis?"undefined":_typeof(globalThis))?globalThis.regeneratorRuntime=a:Function("r","regeneratorRuntime = r")(a)}},253:function(r){var o={getParents:function(r,o){for(var i=[],a=r;a&&a!==document;)o?a.matches(o)&&i.push(a):i.push(a),a=a.parentNode;return i}};r.exports=o,r.exports.default=o},768:function(r,o,i){"use strict";function _typeof(r){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(r){return typeof r}:function _typeof(r){return r&&"function"===typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}i.r(o),i.d(o,{worker:function(){return ir}});var a={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a Teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},c=function status(r,o){return function(i){return i.status=r,i.statusText=o||a[String(r)],i}},u="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof i.g?i.g:"undefined"!==typeof self?self:{},l={},p={},d={};Object.defineProperty(d,"__esModule",{value:!0}),d.normalizeHeaderName=void 0;var h=/[^a-z0-9\-#$%&'*+.^_`|~]/i;d.normalizeHeaderName=function normalizeHeaderName(r){if("string"!==typeof r&&(r=String(r)),h.test(r)||""===r.trim())throw new TypeError("Invalid character in header field name");return r.toLowerCase()};var m={};Object.defineProperty(m,"__esModule",{value:!0}),m.normalizeHeaderValue=void 0,m.normalizeHeaderValue=function normalizeHeaderValue(r){return"string"!==typeof r&&(r=String(r)),r};var y=u&&u.__generator||function(r,o){var i,a,c,u,l={label:0,sent:function sent(){if(1&c[0])throw c[1];return c[1]},trys:[],ops:[]};return u={next:verb(0),throw:verb(1),return:verb(2)},"function"===typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function verb(u){return function(p){return function step(u){if(i)throw new TypeError("Generator is already executing.");for(;l;)try{if(i=1,a&&(c=2&u[0]?a.return:u[0]?a.throw||((c=a.return)&&c.call(a),0):a.next)&&!(c=c.call(a,u[1])).done)return c;switch(a=0,c&&(u=[2&u[0],c.value]),u[0]){case 0:case 1:c=u;break;case 4:return l.label++,{value:u[1],done:!1};case 5:l.label++,a=u[1],u=[0];continue;case 7:u=l.ops.pop(),l.trys.pop();continue;default:if(!(c=(c=l.trys).length>0&&c[c.length-1])&&(6===u[0]||2===u[0])){l=0;continue}if(3===u[0]&&(!c||u[1]>c[0]&&u[1]0)&&!(a=u.next()).done;)l.push(a.value)}catch(error){c={error:error}}finally{try{a&&!a.done&&(i=u.return)&&i.call(u)}finally{if(c)throw c.error}}return l},g=u&&u.__values||function(r){var o="function"===typeof Symbol&&Symbol.iterator,i=o&&r[o],a=0;if(i)return i.call(r);if(r&&"number"===typeof r.length)return{next:function next(){return r&&a>=r.length&&(r=void 0),{value:r&&r[a++],done:!r}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(p,"__esModule",{value:!0});var _=d,b=m,E=function(){function HeadersPolyfill(r){var o=this;(this._headers={},this._names=new Map,["Headers","HeadersPolyfill"].includes(null===r||void 0===r?void 0:r.constructor.name)||r instanceof HeadersPolyfill)?r.forEach((function(r,i){o.append(i,r)}),this):Array.isArray(r)?r.forEach((function(r){var i=v(r,2),a=i[0],c=i[1];o.append(a,Array.isArray(c)?c.join(", "):c)})):r&&Object.getOwnPropertyNames(r).forEach((function(i){var a=r[i];o.append(i,Array.isArray(a)?a.join(", "):a)}))}return HeadersPolyfill.prototype[Symbol.iterator]=function(){return this.entries()},HeadersPolyfill.prototype.keys=function(){var r,o,i,a,c;return y(this,(function(u){switch(u.label){case 0:u.trys.push([0,5,6,7]),r=g(Object.keys(this._headers)),o=r.next(),u.label=1;case 1:return o.done?[3,4]:[4,o.value];case 2:u.sent(),u.label=3;case 3:return o=r.next(),[3,1];case 4:return[3,7];case 5:return i=u.sent(),a={error:i},[3,7];case 6:try{o&&!o.done&&(c=r.return)&&c.call(r)}finally{if(a)throw a.error}return[7];case 7:return[2]}}))},HeadersPolyfill.prototype.values=function(){var r,o,i,a,c;return y(this,(function(u){switch(u.label){case 0:u.trys.push([0,5,6,7]),r=g(Object.values(this._headers)),o=r.next(),u.label=1;case 1:return o.done?[3,4]:[4,o.value];case 2:u.sent(),u.label=3;case 3:return o=r.next(),[3,1];case 4:return[3,7];case 5:return i=u.sent(),a={error:i},[3,7];case 6:try{o&&!o.done&&(c=r.return)&&c.call(r)}finally{if(a)throw a.error}return[7];case 7:return[2]}}))},HeadersPolyfill.prototype.entries=function(){var r,o,i,a,c,u;return y(this,(function(l){switch(l.label){case 0:l.trys.push([0,5,6,7]),r=g(Object.keys(this._headers)),o=r.next(),l.label=1;case 1:return o.done?[3,4]:[4,[i=o.value,this.get(i)]];case 2:l.sent(),l.label=3;case 3:return o=r.next(),[3,1];case 4:return[3,7];case 5:return a=l.sent(),c={error:a},[3,7];case 6:try{o&&!o.done&&(u=r.return)&&u.call(r)}finally{if(c)throw c.error}return[7];case 7:return[2]}}))},HeadersPolyfill.prototype.get=function(r){return this._headers[_.normalizeHeaderName(r)]||null},HeadersPolyfill.prototype.set=function(r,o){var i=_.normalizeHeaderName(r);this._headers[i]=b.normalizeHeaderValue(o),this._names.set(i,r)},HeadersPolyfill.prototype.append=function(r,o){var i=this.has(r)?this.get(r)+", "+o:o;this.set(r,i)},HeadersPolyfill.prototype.delete=function(r){if(!this.has(r))return this;var o=_.normalizeHeaderName(r);return delete this._headers[o],this._names.delete(o),this},HeadersPolyfill.prototype.all=function(){return this._headers},HeadersPolyfill.prototype.raw=function(){var r=this;return Object.entries(this._headers).reduce((function(o,i){var a=v(i,2),c=a[0],u=a[1];return o[r._names.get(c)]=u,o}),{})},HeadersPolyfill.prototype.has=function(r){return this._headers.hasOwnProperty(_.normalizeHeaderName(r))},HeadersPolyfill.prototype.forEach=function(r,o){for(var i in this._headers)this._headers.hasOwnProperty(i)&&r.call(o,this._headers[i],i,this)},HeadersPolyfill}();p.default=E;var w={},S={};Object.defineProperty(S,"__esModule",{value:!0}),S.headersToList=void 0,S.headersToList=function headersToList(r){var o=[];return r.forEach((function(r,i){var a=r.includes(",")?r.split(",").map((function(r){return r.trim()})):r;o.push([i,a])})),o};var O=u&&u.__read||function(r,o){var i="function"===typeof Symbol&&r[Symbol.iterator];if(!i)return r;var a,c,u=i.call(r),l=[];try{for(;(void 0===o||o-- >0)&&!(a=u.next()).done;)l.push(a.value)}catch(error){c={error:error}}finally{try{a&&!a.done&&(i=u.return)&&i.call(u)}finally{if(c)throw c.error}}return l};Object.defineProperty(w,"__esModule",{value:!0}),w.headersToString=void 0;var T=S;w.headersToString=function headersToString(r){return T.headersToList(r).map((function(r){var o=O(r,2),i=o[0],a=o[1];return i+": "+[].concat(a).join(", ")})).join("\r\n")};var k={};Object.defineProperty(k,"__esModule",{value:!0}),k.headersToObject=void 0;var A=["user-agent"];k.headersToObject=function headersToObject(r){var o={};return r.forEach((function(r,i){var a=!A.includes(i.toLowerCase())&&r.includes(",");o[i]=a?r.split(",").map((function(r){return r.trim()})):r})),o};var C={};Object.defineProperty(C,"__esModule",{value:!0}),C.stringToHeaders=void 0;var N=p;C.stringToHeaders=function stringToHeaders(r){return r.trim().split(/[\r\n]+/).reduce((function(r,o){var i=o.split(": "),a=i.shift(),c=i.join(": ");return r.append(a,c),r}),new N.default)};var x={},I=u&&u.__read||function(r,o){var i="function"===typeof Symbol&&r[Symbol.iterator];if(!i)return r;var a,c,u=i.call(r),l=[];try{for(;(void 0===o||o-- >0)&&!(a=u.next()).done;)l.push(a.value)}catch(error){c={error:error}}finally{try{a&&!a.done&&(i=u.return)&&i.call(u)}finally{if(c)throw c.error}}return l};Object.defineProperty(x,"__esModule",{value:!0}),x.listToHeaders=void 0;var D=p;x.listToHeaders=function listToHeaders(r){var o=new D.default;return r.forEach((function(r){var i=I(r,2),a=i[0],c=i[1];[].concat(c).forEach((function(r){o.append(a,r)}))})),o};var L={},R={};Object.defineProperty(R,"__esModule",{value:!0}),R.reduceHeadersObject=void 0,R.reduceHeadersObject=function reduceHeadersObject(r,o,i){return Object.keys(r).reduce((function(i,a){return o(i,a,r[a])}),i)},Object.defineProperty(L,"__esModule",{value:!0}),L.objectToHeaders=void 0;var P=p,j=R;L.objectToHeaders=function objectToHeaders(r){return j.reduceHeadersObject(r,(function(r,o,i){return[].concat(i).filter(Boolean).forEach((function(i){r.append(o,i)})),r}),new P.default)};var M={},q=u&&u.__read||function(r,o){var i="function"===typeof Symbol&&r[Symbol.iterator];if(!i)return r;var a,c,u=i.call(r),l=[];try{for(;(void 0===o||o-- >0)&&!(a=u.next()).done;)l.push(a.value)}catch(error){c={error:error}}finally{try{a&&!a.done&&(i=u.return)&&i.call(u)}finally{if(c)throw c.error}}return l};Object.defineProperty(M,"__esModule",{value:!0}),M.flattenHeadersList=void 0,M.flattenHeadersList=function flattenHeadersList(r){return r.map((function(r){var o=q(r,2),i=o[0],a=o[1];return[i,[].concat(a).join("; ")]}))};var U={};Object.defineProperty(U,"__esModule",{value:!0}),U.flattenHeadersObject=void 0;var V=R;function set(){for(var r=arguments.length,o=new Array(r),i=0;iJ)throw new Error("Failed to delay a response: provided delay duration (".concat(r,') exceeds the maximum allowed duration for "setTimeout" (').concat(J,'). This will cause the response to be returned immediately. Please use a number within the allowed range to delay the response by exact duration, or consider the "infinite" delay mode to delay the response indefinitely.'));i=r}return o.delay=i,o}},te=X.exports.isNodeProcess()?i(47):window.fetch,ne=function augmentRequestInit(r){var o=new l.Headers(r.headers);return o.set("x-msw-bypass","true"),Object.assign(Object.assign({},r),{headers:o.all()})},re=function createFetchRequestParameters(r){var o=r.body,i=r.method,a=Object.assign(Object.assign({},r),{body:void 0});return["GET","HEAD"].includes(i)||(a.body="object"===_typeof(o)?JSON.stringify(o):o),a},oe=function fetch(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"===typeof r)return te(r,ne(o));var i=re(r),a=ne(i);return te(r.url.href,a)};function _defineProperties(r,o){for(var i=0;ir.length)&&(o=r.length);for(var i=0,a=new Array(o);i1?o-1:0),a=1;a1?o-1:0),a=1;a1?o-1:0),a=1;a=r.length?{done:!0}:{done:!1,value:r[a++]}},e:function e(r){throw r},f:c}}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 u,l=!0,p=!1;return{s:function s(){i=i.call(r)},n:function n(){var r=i.next();return l=r.done,r},e:function e(r){p=!0,u=r},f:function f(){try{l||null==i.return||i.return()}finally{if(p)throw u}}}}(u);try{for(d.s();!(p=d.n()).done;){var h=_toArray(p.value.split("\r\n\r\n")),m=h[0],y=h.slice(1).join("\r\n\r\n"),v=parseContentHeaders(m),g=v.contentType,_=v.filename,b=v.name,E=void 0===_?y:new File([y],_,{type:g}),w=l[b];void 0===w?l[b]=E:Array.isArray(w)?l[b]=[].concat(_toConsumableArray(w),[E]):l[b]=[w,E]}}catch(S){d.e(S)}finally{d.f()}return l}catch(error){return}}}}}function parseBody(r,o){if(!r)return r;var i=null===o||void 0===o?void 0:o.get("content-type");return(null===i||void 0===i?void 0:i.startsWith("multipart/form-data"))&&"object"!==RequestHandler_deps_typeof(r)?parseMultipartData(r,o)||r:(null===i||void 0===i?void 0:i.includes("json"))&&"object"!==RequestHandler_deps_typeof(r)&&jsonParse(r)||r}var ve,ge=function getPublicUrlFromRequest(r){return r.referrer.startsWith(r.url.origin)?r.url.pathname:new URL(r.url.pathname,"".concat(r.url.protocol,"//").concat(r.url.host)).href};function getStatusCodeColor(r){return r<300?ve.Success:r<400?ve.Warning:ve.Danger}function getTimestamp(){var r=new Date;return[r.getHours(),r.getMinutes(),r.getSeconds()].map(String).map((function(r){return r.slice(0,2)})).map((function(r){return r.padStart(2,"0")})).join(":")}function prepareRequest(r){return Object.assign(Object.assign({},r),{headers:r.headers.all()})}function prepareResponse(r){var o=l.objectToHeaders(r.headers);return Object.assign(Object.assign({},r),{body:parseBody(r.body,o)})}!function(r){r.Success="#69AB32",r.Warning="#F0BB4B",r.Danger="#E95F5D"}(ve||(ve={}));var _e=function match(r,o){var match=(r instanceof RegExp?r:function pathToRegExp(r){var o=r.replace(/\./g,"\\.").replace(/\//g,"/").replace(/\?/g,"\\?").replace(/\/+$/,"").replace(/\*+/g,".*").replace(/:([^\d|^\/][a-zA-Z0-9_]*(?=(?:\/|\\.)|$))/g,(function(r,o){return"(?<".concat(o,">[^/]+?)")})).concat("(\\/|$)");return new RegExp(o,"gi")}(r)).exec(o)||!1,i=r instanceof RegExp?!!match:!!match&&match[0]===match.input;return{matches:i,params:match&&i&&match.groups||null}},be={};Object.defineProperty(be,"__esModule",{value:!0});var Ee=be.getCleanUrl=void 0;Ee=be.getCleanUrl=function getCleanUrl(r,o){return void 0===o&&(o=!0),[o&&r.origin,r.pathname].filter(Boolean).join("")};var we=/[\?|#].*$/g;function cleanUrl(r){return r.replace(we,"")}function normalizePath(r,o){return r instanceof RegExp?r:cleanUrl(function getAbsoluteUrl(r,o){if(!r.startsWith("/"))return r;var i=o||"undefined"!==typeof location&&location.origin;return i?new URL(r,i).href:r}(r,o))}function matchRequestUrl(r,o,i){var a=normalizePath(o,i);return _e(a,Ee(r))}function compose(){for(var r=arguments.length,o=new Array(r),i=0;i1&&void 0!==arguments[1]?arguments[1]:Oe;return function(){for(var a=arguments.length,c=new Array(a),u=0;u0?compose.apply(void 0,_toConsumableArray(a))(o):o,p.abrupt("return",u);case 4:case"end":return p.stop()}}),_callee)})))}}var Te=Object.assign(createResponseComposition(),{once:createResponseComposition({once:!0}),networkError:function networkError(r){throw new ye(r)}});var ke,Ae={status:c,set:set,delay:ee,fetch:oe},Ce=function(){function RequestHandler(r){_classCallCheck(this,RequestHandler),this.shouldSkip=!1,this.ctx=r.ctx||Ae,this.resolver=r.resolver;var o=function getCallFrame(){var r=((new Error).stack||"").split("\n"),o=/(node_modules)?[\/\\]lib[\/\\](umd|esm|iief|cjs)[\/\\]|^[^\/\\]*$/,i=r.slice(1).find((function(r){return!o.test(r)}));if(i)return i.replace(/\s*at [^()]*\(([^)]+)\)/,"$1").replace(/^@/,"")}();this.info=Object.assign(Object.assign({},r.info),{callFrame:o})}return function _createClass(r,o,i){return o&&_defineProperties(r.prototype,o),i&&_defineProperties(r,i),r}(RequestHandler,[{key:"parse",value:function parse(r,o){return null}},{key:"test",value:function test(r,o){return this.predicate(r,this.parse(r,o),o)}},{key:"getPublicRequest",value:function getPublicRequest(r,o){return r}},{key:"markAsSkipped",value:function markAsSkipped(){var r=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.shouldSkip=r}},{key:"run",value:function run(r,o){return __awaiter(this,void 0,void 0,regeneratorRuntime.mark((function _callee2(){var i,a,c,u;return regeneratorRuntime.wrap((function _callee2$(l){for(;;)switch(l.prev=l.next){case 0:if(!this.shouldSkip){l.next=2;break}return l.abrupt("return",null);case 2:if(i=this.parse(r,o),this.predicate(r,i,o)){l.next=6;break}return l.abrupt("return",null);case 6:return a=this.getPublicRequest(r,i),c=this.wrapResolver(this.resolver),l.next=10,c(a,Te,this.ctx);case 10:return u=l.sent,l.abrupt("return",this.createExecutionResult(i,a,u));case 12:case"end":return l.stop()}}),_callee2,this)})))}},{key:"wrapResolver",value:function wrapResolver(r){var o=this;return function(i,a,c){return __awaiter(o,void 0,void 0,regeneratorRuntime.mark((function _callee3(){var o,u,l,p,d;return regeneratorRuntime.wrap((function _callee3$(h){for(;;)switch(h.prev=h.next){case 0:if(h.t0=this.resolverGenerator,h.t0){h.next=5;break}return h.next=4,r(i,a,c);case 4:h.t0=h.sent;case 5:if(o=h.t0,!(m=o)||"function"!=typeof m[Symbol.iterator]){h.next=16;break}return u=o[Symbol.iterator]().next(),l=u.value,p=u.done,h.next=10,l;case 10:if((d=h.sent)||!p){h.next=13;break}return h.abrupt("return",this.resolverGeneratorResult);case 13:return this.resolverGenerator||(this.resolverGenerator=o),this.resolverGeneratorResult=d,h.abrupt("return",d);case 16:return h.abrupt("return",o);case 17:case"end":return h.stop()}var m}),_callee3,this)})))}}},{key:"createExecutionResult",value:function createExecutionResult(r,o,i){return{handler:this,parsedResult:r||null,request:o,response:i||null}}}]),RequestHandler}();function rest_deps_typeof(r){return(rest_deps_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(r){return typeof r}:function _typeof(r){return r&&"function"===typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function rest_deps_defineProperties(r,o){for(var i=0;i {\n const query = req.url.searchParams\n').concat(u.map((function(r){return" const ".concat(r,' = query.get("').concat(r,'")')})).join("\n"),"\n}) "))}}}},{key:"parse",value:function parse(r,o){return matchRequestUrl(r.url,this.info.path,null===o||void 0===o?void 0:o.baseUrl)}},{key:"getPublicRequest",value:function getPublicRequest(r,o){return Object.assign(Object.assign({},r),{params:o.params||{}})}},{key:"predicate",value:function predicate(r,o){return isStringEqual(this.info.method,r.method)&&o.matches}},{key:"log",value:function log(r,o){var i=ge(r),a=prepareRequest(r),c=prepareResponse(o),u=getStatusCodeColor(o.status);console.groupCollapsed(me.formatMessage("%s %s %s (%c%s%c)"),getTimestamp(),r.method,i,"color:".concat(u),"".concat(o.status," ").concat(o.statusText),"color:inherit"),console.log("Request",a),console.log("Handler:",{mask:this.info.path,resolver:this.resolver}),console.log("Response",c),console.groupEnd()}}]),RestHandler}(Ce);function createRestHandler(r){return function(o,i){return new xe(r,o,i)}}createRestHandler(ke.HEAD),createRestHandler(ke.GET),createRestHandler(ke.POST),createRestHandler(ke.PUT),createRestHandler(ke.DELETE),createRestHandler(ke.PATCH),createRestHandler(ke.OPTIONS);function _slicedToArray(r,o){return function errors_deps_arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function _iterableToArrayLimit(r,o){var i=null==r?null:"undefined"!==typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null==i)return;var a,c,u=[],l=!0,p=!1;try{for(i=i.call(r);!(l=(a=i.next()).done)&&(u.push(a.value),!o||u.length!==o);l=!0);}catch(d){p=!0,c=d}finally{try{l||null==i.return||i.return()}finally{if(p)throw c}}return u}(r,o)||function errors_deps_unsupportedIterableToArray(r,o){if(!r)return;if("string"===typeof r)return errors_deps_arrayLikeToArray(r,o);var i=Object.prototype.toString.call(r).slice(8,-1);"Object"===i&&r.constructor&&(i=r.constructor.name);if("Map"===i||"Set"===i)return Array.from(r);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return errors_deps_arrayLikeToArray(r,o)}(r,o)||function errors_deps_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 errors_deps_arrayLikeToArray(r,o){(null==o||o>r.length)&&(o=r.length);for(var i=0,a=new Array(o);i=r.length?{done:!0}:{done:!1,value:r[a++]}},e:function e(r){throw r},f:c}}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 u,l=!0,p=!1;return{s:function s(){i=i.call(r)},n:function n(){var r=i.next();return l=r.done,r},e:function e(r){p=!0,u=r},f:function f(){try{l||null==i.return||i.return()}finally{if(p)throw u}}}}function graphql_deps_slicedToArray(r,o){return graphql_deps_arrayWithHoles(r)||function graphql_deps_iterableToArrayLimit(r,o){var i=null==r?null:"undefined"!==typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null==i)return;var a,c,u=[],l=!0,p=!1;try{for(i=i.call(r);!(l=(a=i.next()).done)&&(u.push(a.value),!o||u.length!==o);l=!0);}catch(d){p=!0,c=d}finally{try{l||null==i.return||i.return()}finally{if(p)throw c}}return u}(r,o)||graphql_deps_unsupportedIterableToArray(r,o)||graphql_deps_nonIterableRest()}function graphql_deps_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 graphql_deps_unsupportedIterableToArray(r,o){if(r){if("string"===typeof r)return graphql_deps_arrayLikeToArray(r,o);var i=Object.prototype.toString.call(r).slice(8,-1);return"Object"===i&&r.constructor&&(i=r.constructor.name),"Map"===i||"Set"===i?Array.from(r):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?graphql_deps_arrayLikeToArray(r,o):void 0}}function graphql_deps_arrayLikeToArray(r,o){(null==o||o>r.length)&&(o=r.length);for(var i=0,a=new Array(o);i120){for(var v=Math.floor(d/80),g=d%80,_=[],b=0;b",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function _typeof$1(r){return(_typeof$1="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(r){return typeof r}:function _typeof(r){return r&&"function"===typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function inspect(r){return formatValue(r,[])}function formatValue(r,o){switch(_typeof$1(r)){case"string":return JSON.stringify(r);case"function":return r.name?"[function ".concat(r.name,"]"):"[function]";case"object":return null===r?"null":function formatObjectValue(r,o){if(-1!==o.indexOf(r))return"[Circular]";var i=[].concat(o,[r]),a=function getCustomFn(r){var o=r[String(Re)];if("function"===typeof o)return o;if("function"===typeof r.inspect)return r.inspect}(r);if(void 0!==a){var c=a.call(r);if(c!==r)return"string"===typeof c?c:formatValue(c,i)}else if(Array.isArray(r))return function formatArray(r,o){if(0===r.length)return"[]";if(o.length>2)return"[Array]";for(var i=Math.min(10,r.length),a=r.length-i,c=[],u=0;u1&&c.push("... ".concat(a," more items"));return"["+c.join(", ")+"]"}(r,i);return function formatObject(r,o){var i=Object.keys(r);if(0===i.length)return"{}";if(o.length>2)return"["+function getObjectTag(r){var o=Object.prototype.toString.call(r).replace(/^\[object /,"").replace(/]$/,"");if("Object"===o&&"function"===typeof r.constructor){var i=r.constructor.name;if("string"===typeof i&&""!==i)return i}return o}(r)+"]";return"{ "+i.map((function(i){return i+": "+formatValue(r[i],o)})).join(", ")+" }"}(r,i)}(r,o);default:return String(r)}}function devAssert(r,o){if(!Boolean(r))throw new Error(o)}function graphql_deps_typeof(r){return(graphql_deps_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(r){return typeof r}:function _typeof(r){return r&&"function"===typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function graphql_deps_defineProperties(r,o){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"===typeof r||devAssert(0,"Body must be a string. Received: ".concat(inspect(r),".")),this.body=r,this.name=o,this.locationOffset=i,this.locationOffset.line>0||devAssert(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||devAssert(0,"column in locationOffset is 1-indexed and must be positive.")}return function graphql_deps_createClass(r,o,i){return o&&graphql_deps_defineProperties(r.prototype,o),i&&graphql_deps_defineProperties(r,i),r}(Source,[{key:Ie,get:function get(){return"Source"}}]),Source}();function isSource(r){return function instanceOf(r,o){if(r instanceof o)return!0;if("object"===graphql_deps_typeof(r)&&null!==r){var i,a=o.prototype[Symbol.toStringTag];if(a===(Symbol.toStringTag in r?r[Symbol.toStringTag]:null===(i=r.constructor)||void 0===i?void 0:i.name)){var c=inspect(r);throw new Error("Cannot use ".concat(a,' "').concat(c,'" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.'))}}return!1}(r,Fe)}var qe=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function dedentBlockStringValue(r){var o=r.split(/\r\n|[\n\r]/g),i=function getBlockStringIndentation(r){for(var o,i=!0,a=!0,c=0,u=null,l=0;lc&&isBlank(o[u-1]);)--u;return o.slice(c,u).join("\n")}function isBlank(r){for(var o=0;o31||9===u));return new je(Me.COMMENT,o,p,i,a,c,l.slice(o+1,p))}function readNumber(r,o,i,a,c,u){var l=r.body,p=i,d=o,h=!1;if(45===p&&(p=l.charCodeAt(++d)),48===p){if((p=l.charCodeAt(++d))>=48&&p<=57)throw syntaxError(r,d,"Invalid number, unexpected digit after 0: ".concat(printCharCode(p),"."))}else d=readDigits(r,d,p),p=l.charCodeAt(d);if(46===p&&(h=!0,p=l.charCodeAt(++d),d=readDigits(r,d,p),p=l.charCodeAt(d)),69!==p&&101!==p||(h=!0,43!==(p=l.charCodeAt(++d))&&45!==p||(p=l.charCodeAt(++d)),d=readDigits(r,d,p),p=l.charCodeAt(d)),46===p||function isNameStart(r){return 95===r||r>=65&&r<=90||r>=97&&r<=122}(p))throw syntaxError(r,d,"Invalid number, expected digit but got: ".concat(printCharCode(p),"."));return new je(h?Me.FLOAT:Me.INT,o,d,a,c,u,l.slice(o,d))}function readDigits(r,o,i){var a=r.body,c=o,u=i;if(u>=48&&u<=57){do{u=a.charCodeAt(++c)}while(u>=48&&u<=57);return c}throw syntaxError(r,c,"Invalid number, expected digit but got: ".concat(printCharCode(u),"."))}function readString(r,o,i,a,c){for(var u,l,p,d,h=r.body,m=o+1,y=m,v=0,g="";m=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:-1}function readName(r,o,i,a,c){for(var u=r.body,l=u.length,p=o+1,d=0;p!==l&&!isNaN(d=u.charCodeAt(p))&&(95===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122);)++p;return new je(Me.NAME,o,p,i,a,c,u.slice(o,p))}var Ve=function(){function Parser(r,o){var i=isSource(r)?r:new Fe(r);this._lexer=new Ue(i),this._options=o}var r=Parser.prototype;return r.parseName=function parseName(){var r=this.expectToken(Me.NAME);return{kind:Le.NAME,value:r.value,loc:this.loc(r)}},r.parseDocument=function parseDocument(){var r=this._lexer.token;return{kind:Le.DOCUMENT,definitions:this.many(Me.SOF,this.parseDefinition,Me.EOF),loc:this.loc(r)}},r.parseDefinition=function parseDefinition(){if(this.peek(Me.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(Me.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},r.parseOperationDefinition=function parseOperationDefinition(){var r=this._lexer.token;if(this.peek(Me.BRACE_L))return{kind:Le.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(r)};var o,i=this.parseOperationType();return this.peek(Me.NAME)&&(o=this.parseName()),{kind:Le.OPERATION_DEFINITION,operation:i,name:o,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(r)}},r.parseOperationType=function parseOperationType(){var r=this.expectToken(Me.NAME);switch(r.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(r)},r.parseVariableDefinitions=function parseVariableDefinitions(){return this.optionalMany(Me.PAREN_L,this.parseVariableDefinition,Me.PAREN_R)},r.parseVariableDefinition=function parseVariableDefinition(){var r=this._lexer.token;return{kind:Le.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Me.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Me.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(r)}},r.parseVariable=function parseVariable(){var r=this._lexer.token;return this.expectToken(Me.DOLLAR),{kind:Le.VARIABLE,name:this.parseName(),loc:this.loc(r)}},r.parseSelectionSet=function parseSelectionSet(){var r=this._lexer.token;return{kind:Le.SELECTION_SET,selections:this.many(Me.BRACE_L,this.parseSelection,Me.BRACE_R),loc:this.loc(r)}},r.parseSelection=function parseSelection(){return this.peek(Me.SPREAD)?this.parseFragment():this.parseField()},r.parseField=function parseField(){var r,o,i=this._lexer.token,a=this.parseName();return this.expectOptionalToken(Me.COLON)?(r=a,o=this.parseName()):o=a,{kind:Le.FIELD,alias:r,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Me.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(i)}},r.parseArguments=function parseArguments(r){var o=r?this.parseConstArgument:this.parseArgument;return this.optionalMany(Me.PAREN_L,o,Me.PAREN_R)},r.parseArgument=function parseArgument(){var r=this._lexer.token,o=this.parseName();return this.expectToken(Me.COLON),{kind:Le.ARGUMENT,name:o,value:this.parseValueLiteral(!1),loc:this.loc(r)}},r.parseConstArgument=function parseConstArgument(){var r=this._lexer.token;return{kind:Le.ARGUMENT,name:this.parseName(),value:(this.expectToken(Me.COLON),this.parseValueLiteral(!0)),loc:this.loc(r)}},r.parseFragment=function parseFragment(){var r=this._lexer.token;this.expectToken(Me.SPREAD);var o=this.expectOptionalKeyword("on");return!o&&this.peek(Me.NAME)?{kind:Le.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(r)}:{kind:Le.INLINE_FRAGMENT,typeCondition:o?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(r)}},r.parseFragmentDefinition=function parseFragmentDefinition(){var r,o=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(r=this._options)||void 0===r?void 0:r.experimentalFragmentVariables)?{kind:Le.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(o)}:{kind:Le.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(o)}},r.parseFragmentName=function parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},r.parseValueLiteral=function parseValueLiteral(r){var o=this._lexer.token;switch(o.kind){case Me.BRACKET_L:return this.parseList(r);case Me.BRACE_L:return this.parseObject(r);case Me.INT:return this._lexer.advance(),{kind:Le.INT,value:o.value,loc:this.loc(o)};case Me.FLOAT:return this._lexer.advance(),{kind:Le.FLOAT,value:o.value,loc:this.loc(o)};case Me.STRING:case Me.BLOCK_STRING:return this.parseStringLiteral();case Me.NAME:switch(this._lexer.advance(),o.value){case"true":return{kind:Le.BOOLEAN,value:!0,loc:this.loc(o)};case"false":return{kind:Le.BOOLEAN,value:!1,loc:this.loc(o)};case"null":return{kind:Le.NULL,loc:this.loc(o)};default:return{kind:Le.ENUM,value:o.value,loc:this.loc(o)}}case Me.DOLLAR:if(!r)return this.parseVariable()}throw this.unexpected()},r.parseStringLiteral=function parseStringLiteral(){var r=this._lexer.token;return this._lexer.advance(),{kind:Le.STRING,value:r.value,block:r.kind===Me.BLOCK_STRING,loc:this.loc(r)}},r.parseList=function parseList(r){var o=this,i=this._lexer.token;return{kind:Le.LIST,values:this.any(Me.BRACKET_L,(function item(){return o.parseValueLiteral(r)}),Me.BRACKET_R),loc:this.loc(i)}},r.parseObject=function parseObject(r){var o=this,i=this._lexer.token;return{kind:Le.OBJECT,fields:this.any(Me.BRACE_L,(function item(){return o.parseObjectField(r)}),Me.BRACE_R),loc:this.loc(i)}},r.parseObjectField=function parseObjectField(r){var o=this._lexer.token,i=this.parseName();return this.expectToken(Me.COLON),{kind:Le.OBJECT_FIELD,name:i,value:this.parseValueLiteral(r),loc:this.loc(o)}},r.parseDirectives=function parseDirectives(r){for(var o=[];this.peek(Me.AT);)o.push(this.parseDirective(r));return o},r.parseDirective=function parseDirective(r){var o=this._lexer.token;return this.expectToken(Me.AT),{kind:Le.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(r),loc:this.loc(o)}},r.parseTypeReference=function parseTypeReference(){var r,o=this._lexer.token;return this.expectOptionalToken(Me.BRACKET_L)?(r=this.parseTypeReference(),this.expectToken(Me.BRACKET_R),r={kind:Le.LIST_TYPE,type:r,loc:this.loc(o)}):r=this.parseNamedType(),this.expectOptionalToken(Me.BANG)?{kind:Le.NON_NULL_TYPE,type:r,loc:this.loc(o)}:r},r.parseNamedType=function parseNamedType(){var r=this._lexer.token;return{kind:Le.NAMED_TYPE,name:this.parseName(),loc:this.loc(r)}},r.parseTypeSystemDefinition=function parseTypeSystemDefinition(){var r=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(r.kind===Me.NAME)switch(r.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(r)},r.peekDescription=function peekDescription(){return this.peek(Me.STRING)||this.peek(Me.BLOCK_STRING)},r.parseDescription=function parseDescription(){if(this.peekDescription())return this.parseStringLiteral()},r.parseSchemaDefinition=function parseSchemaDefinition(){var r=this._lexer.token,o=this.parseDescription();this.expectKeyword("schema");var i=this.parseDirectives(!0),a=this.many(Me.BRACE_L,this.parseOperationTypeDefinition,Me.BRACE_R);return{kind:Le.SCHEMA_DEFINITION,description:o,directives:i,operationTypes:a,loc:this.loc(r)}},r.parseOperationTypeDefinition=function parseOperationTypeDefinition(){var r=this._lexer.token,o=this.parseOperationType();this.expectToken(Me.COLON);var i=this.parseNamedType();return{kind:Le.OPERATION_TYPE_DEFINITION,operation:o,type:i,loc:this.loc(r)}},r.parseScalarTypeDefinition=function parseScalarTypeDefinition(){var r=this._lexer.token,o=this.parseDescription();this.expectKeyword("scalar");var i=this.parseName(),a=this.parseDirectives(!0);return{kind:Le.SCALAR_TYPE_DEFINITION,description:o,name:i,directives:a,loc:this.loc(r)}},r.parseObjectTypeDefinition=function parseObjectTypeDefinition(){var r=this._lexer.token,o=this.parseDescription();this.expectKeyword("type");var i=this.parseName(),a=this.parseImplementsInterfaces(),c=this.parseDirectives(!0),u=this.parseFieldsDefinition();return{kind:Le.OBJECT_TYPE_DEFINITION,description:o,name:i,interfaces:a,directives:c,fields:u,loc:this.loc(r)}},r.parseImplementsInterfaces=function parseImplementsInterfaces(){var r;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(r=this._options)||void 0===r?void 0:r.allowLegacySDLImplementsInterfaces)){var o=[];this.expectOptionalToken(Me.AMP);do{o.push(this.parseNamedType())}while(this.expectOptionalToken(Me.AMP)||this.peek(Me.NAME));return o}return this.delimitedMany(Me.AMP,this.parseNamedType)},r.parseFieldsDefinition=function parseFieldsDefinition(){var r;return!0===(null===(r=this._options)||void 0===r?void 0:r.allowLegacySDLEmptyFields)&&this.peek(Me.BRACE_L)&&this._lexer.lookahead().kind===Me.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(Me.BRACE_L,this.parseFieldDefinition,Me.BRACE_R)},r.parseFieldDefinition=function parseFieldDefinition(){var r=this._lexer.token,o=this.parseDescription(),i=this.parseName(),a=this.parseArgumentDefs();this.expectToken(Me.COLON);var c=this.parseTypeReference(),u=this.parseDirectives(!0);return{kind:Le.FIELD_DEFINITION,description:o,name:i,arguments:a,type:c,directives:u,loc:this.loc(r)}},r.parseArgumentDefs=function parseArgumentDefs(){return this.optionalMany(Me.PAREN_L,this.parseInputValueDef,Me.PAREN_R)},r.parseInputValueDef=function parseInputValueDef(){var r=this._lexer.token,o=this.parseDescription(),i=this.parseName();this.expectToken(Me.COLON);var a,c=this.parseTypeReference();this.expectOptionalToken(Me.EQUALS)&&(a=this.parseValueLiteral(!0));var u=this.parseDirectives(!0);return{kind:Le.INPUT_VALUE_DEFINITION,description:o,name:i,type:c,defaultValue:a,directives:u,loc:this.loc(r)}},r.parseInterfaceTypeDefinition=function parseInterfaceTypeDefinition(){var r=this._lexer.token,o=this.parseDescription();this.expectKeyword("interface");var i=this.parseName(),a=this.parseImplementsInterfaces(),c=this.parseDirectives(!0),u=this.parseFieldsDefinition();return{kind:Le.INTERFACE_TYPE_DEFINITION,description:o,name:i,interfaces:a,directives:c,fields:u,loc:this.loc(r)}},r.parseUnionTypeDefinition=function parseUnionTypeDefinition(){var r=this._lexer.token,o=this.parseDescription();this.expectKeyword("union");var i=this.parseName(),a=this.parseDirectives(!0),c=this.parseUnionMemberTypes();return{kind:Le.UNION_TYPE_DEFINITION,description:o,name:i,directives:a,types:c,loc:this.loc(r)}},r.parseUnionMemberTypes=function parseUnionMemberTypes(){return this.expectOptionalToken(Me.EQUALS)?this.delimitedMany(Me.PIPE,this.parseNamedType):[]},r.parseEnumTypeDefinition=function parseEnumTypeDefinition(){var r=this._lexer.token,o=this.parseDescription();this.expectKeyword("enum");var i=this.parseName(),a=this.parseDirectives(!0),c=this.parseEnumValuesDefinition();return{kind:Le.ENUM_TYPE_DEFINITION,description:o,name:i,directives:a,values:c,loc:this.loc(r)}},r.parseEnumValuesDefinition=function parseEnumValuesDefinition(){return this.optionalMany(Me.BRACE_L,this.parseEnumValueDefinition,Me.BRACE_R)},r.parseEnumValueDefinition=function parseEnumValueDefinition(){var r=this._lexer.token,o=this.parseDescription(),i=this.parseName(),a=this.parseDirectives(!0);return{kind:Le.ENUM_VALUE_DEFINITION,description:o,name:i,directives:a,loc:this.loc(r)}},r.parseInputObjectTypeDefinition=function parseInputObjectTypeDefinition(){var r=this._lexer.token,o=this.parseDescription();this.expectKeyword("input");var i=this.parseName(),a=this.parseDirectives(!0),c=this.parseInputFieldsDefinition();return{kind:Le.INPUT_OBJECT_TYPE_DEFINITION,description:o,name:i,directives:a,fields:c,loc:this.loc(r)}},r.parseInputFieldsDefinition=function parseInputFieldsDefinition(){return this.optionalMany(Me.BRACE_L,this.parseInputValueDef,Me.BRACE_R)},r.parseTypeSystemExtension=function parseTypeSystemExtension(){var r=this._lexer.lookahead();if(r.kind===Me.NAME)switch(r.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(r)},r.parseSchemaExtension=function parseSchemaExtension(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var o=this.parseDirectives(!0),i=this.optionalMany(Me.BRACE_L,this.parseOperationTypeDefinition,Me.BRACE_R);if(0===o.length&&0===i.length)throw this.unexpected();return{kind:Le.SCHEMA_EXTENSION,directives:o,operationTypes:i,loc:this.loc(r)}},r.parseScalarTypeExtension=function parseScalarTypeExtension(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var o=this.parseName(),i=this.parseDirectives(!0);if(0===i.length)throw this.unexpected();return{kind:Le.SCALAR_TYPE_EXTENSION,name:o,directives:i,loc:this.loc(r)}},r.parseObjectTypeExtension=function parseObjectTypeExtension(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var o=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseDirectives(!0),c=this.parseFieldsDefinition();if(0===i.length&&0===a.length&&0===c.length)throw this.unexpected();return{kind:Le.OBJECT_TYPE_EXTENSION,name:o,interfaces:i,directives:a,fields:c,loc:this.loc(r)}},r.parseInterfaceTypeExtension=function parseInterfaceTypeExtension(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var o=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseDirectives(!0),c=this.parseFieldsDefinition();if(0===i.length&&0===a.length&&0===c.length)throw this.unexpected();return{kind:Le.INTERFACE_TYPE_EXTENSION,name:o,interfaces:i,directives:a,fields:c,loc:this.loc(r)}},r.parseUnionTypeExtension=function parseUnionTypeExtension(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var o=this.parseName(),i=this.parseDirectives(!0),a=this.parseUnionMemberTypes();if(0===i.length&&0===a.length)throw this.unexpected();return{kind:Le.UNION_TYPE_EXTENSION,name:o,directives:i,types:a,loc:this.loc(r)}},r.parseEnumTypeExtension=function parseEnumTypeExtension(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var o=this.parseName(),i=this.parseDirectives(!0),a=this.parseEnumValuesDefinition();if(0===i.length&&0===a.length)throw this.unexpected();return{kind:Le.ENUM_TYPE_EXTENSION,name:o,directives:i,values:a,loc:this.loc(r)}},r.parseInputObjectTypeExtension=function parseInputObjectTypeExtension(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var o=this.parseName(),i=this.parseDirectives(!0),a=this.parseInputFieldsDefinition();if(0===i.length&&0===a.length)throw this.unexpected();return{kind:Le.INPUT_OBJECT_TYPE_EXTENSION,name:o,directives:i,fields:a,loc:this.loc(r)}},r.parseDirectiveDefinition=function parseDirectiveDefinition(){var r=this._lexer.token,o=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Me.AT);var i=this.parseName(),a=this.parseArgumentDefs(),c=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var u=this.parseDirectiveLocations();return{kind:Le.DIRECTIVE_DEFINITION,description:o,name:i,arguments:a,repeatable:c,locations:u,loc:this.loc(r)}},r.parseDirectiveLocations=function parseDirectiveLocations(){return this.delimitedMany(Me.PIPE,this.parseDirectiveLocation)},r.parseDirectiveLocation=function parseDirectiveLocation(){var r=this._lexer.token,o=this.parseName();if(void 0!==qe[o.value])return o;throw this.unexpected(r)},r.loc=function loc(r){var o;if(!0!==(null===(o=this._options)||void 0===o?void 0:o.noLocation))return new Pe(r,this._lexer.lastToken,this._lexer.source)},r.peek=function peek(r){return this._lexer.token.kind===r},r.expectToken=function expectToken(r){var o=this._lexer.token;if(o.kind===r)return this._lexer.advance(),o;throw syntaxError(this._lexer.source,o.start,"Expected ".concat(getTokenKindDesc(r),", found ").concat(getTokenDesc(o),"."))},r.expectOptionalToken=function expectOptionalToken(r){var o=this._lexer.token;if(o.kind===r)return this._lexer.advance(),o},r.expectKeyword=function expectKeyword(r){var o=this._lexer.token;if(o.kind!==Me.NAME||o.value!==r)throw syntaxError(this._lexer.source,o.start,'Expected "'.concat(r,'", found ').concat(getTokenDesc(o),"."));this._lexer.advance()},r.expectOptionalKeyword=function expectOptionalKeyword(r){var o=this._lexer.token;return o.kind===Me.NAME&&o.value===r&&(this._lexer.advance(),!0)},r.unexpected=function unexpected(r){var o=null!==r&&void 0!==r?r:this._lexer.token;return syntaxError(this._lexer.source,o.start,"Unexpected ".concat(getTokenDesc(o),"."))},r.any=function any(r,o,i){this.expectToken(r);for(var a=[];!this.expectOptionalToken(i);)a.push(o.call(this));return a},r.optionalMany=function optionalMany(r,o,i){if(this.expectOptionalToken(r)){var a=[];do{a.push(o.call(this))}while(!this.expectOptionalToken(i));return a}return[]},r.many=function many(r,o,i){this.expectToken(r);var a=[];do{a.push(o.call(this))}while(!this.expectOptionalToken(i));return a},r.delimitedMany=function delimitedMany(r,o){this.expectOptionalToken(r);var i=[];do{i.push(o.call(this))}while(this.expectOptionalToken(r));return i},Parser}();function getTokenDesc(r){var o=r.value;return getTokenKindDesc(r.kind)+(null!=o?' "'.concat(o,'"'):"")}function getTokenKindDesc(r){return function isPunctuatorTokenKind(r){return r===Me.BANG||r===Me.DOLLAR||r===Me.AMP||r===Me.PAREN_L||r===Me.PAREN_R||r===Me.SPREAD||r===Me.COLON||r===Me.EQUALS||r===Me.AT||r===Me.BRACKET_L||r===Me.BRACKET_R||r===Me.BRACE_L||r===Me.PIPE||r===Me.BRACE_R}(r)?'"'.concat(r,'"'):r}function parseDocumentNode(r){var o,i=r.definitions.find((function(r){return"OperationDefinition"===r.kind}));return{operationType:null===i||void 0===i?void 0:i.operation,operationName:null===(o=null===i||void 0===i?void 0:i.name)||void 0===o?void 0:o.value}}function parseQuery(r){try{return parseDocumentNode(function graphql_deps_parse(r,o){return new Ve(r,o).parseDocument()}(r))}catch(error){return error}}function getGraphQLInput(r){var o,i;switch(r.method){case"GET":return{query:r.url.searchParams.get("query"),variables:jsonParse(r.url.searchParams.get("variables")||"")};case"POST":if(null===(o=r.body)||void 0===o?void 0:o.query){var a=r.body;return{query:a.query,variables:a.variables}}if(null===(i=r.body)||void 0===i?void 0:i.operations){var c=r.body,u=c.operations,l=c.map,p=function __rest(r,o){var i={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&o.indexOf(a)<0&&(i[a]=r[a]);if(null!=r&&"function"===typeof Object.getOwnPropertySymbols){var c=0;for(a=Object.getOwnPropertySymbols(r);c=r.length?{done:!0}:{done:!1,value:r[a++]}},e:function e(r){throw r},f:c}}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 u,l=!0,p=!1;return{s:function s(){i=i.call(r)},n:function n(){var r=i.next();return l=r.done,r},e:function e(r){p=!0,u=r},f:function f(){try{l||null==i.return||i.return()}finally{if(p)throw u}}}}function esm_toConsumableArray(r){return function esm_arrayWithoutHoles(r){if(Array.isArray(r))return esm_arrayLikeToArray(r)}(r)||function esm_iterableToArray(r){if("undefined"!==typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||esm_unsupportedIterableToArray(r)||function esm_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function esm_defineProperties(r,o){for(var i=0;ir.length)&&(o=r.length);for(var i=0,a=new Array(o);i0&&l.length>c&&!l.warned){l.warned=!0;var p=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(o)+" listeners added. Use emitter.setMaxListeners() to increase limit");p.name="MaxListenersExceededWarning",p.emitter=r,p.type=o,p.count=l.length,function ProcessEmitWarning(r){console&&console.warn&&console.warn(r)}(p)}return r}function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(r,o,i){var a={fired:!1,wrapFn:void 0,target:r,type:o,listener:i},c=onceWrapper.bind(a);return c.listener=i,a.wrapFn=c,c}function _listeners(r,o,i){var a=r._events;if(void 0===a)return[];var c=a[o];return void 0===c?[]:"function"===typeof c?i?[c.listener||c]:[c]:i?function unwrapListeners(r){for(var o=new Array(r.length),i=0;i0&&(u=o[0]),u instanceof Error)throw u;var l=new Error("Unhandled error."+(u?" ("+u.message+")":""));throw l.context=u,l}var p=c[r];if(void 0===p)return!1;if("function"===typeof p)Ze(p,this,o);else{var d=p.length,h=arrayClone(p,d);for(i=0;i=0;u--)if(i[u]===o||i[u].listener===o){l=i[u].listener,c=u;break}if(c<0)return this;0===c?i.shift():function spliceOne(r,o){for(;o+1=0;a--)this.removeListener(r,o[a]);return this},EventEmitter.prototype.listeners=function listeners(r){return _listeners(this,r,!0)},EventEmitter.prototype.rawListeners=function rawListeners(r){return _listeners(this,r,!1)},EventEmitter.listenerCount=function(r,o){return"function"===typeof r.listenerCount?r.listenerCount(o):listenerCount.call(r,o)},EventEmitter.prototype.listenerCount=listenerCount,EventEmitter.prototype.eventNames=function eventNames(){return this._eventsCount>0?Ke(this._events):[]};var nt=u&&u.__extends||function(){var r=function extendStatics(o,i){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])})(o,i)};return function(o,i){function __(){this.constructor=o}r(o,i),o.prototype=null===i?Object.create(i):(__.prototype=i.prototype,new __)}}(),rt=u&&u.__spreadArrays||function(){for(var r=0,o=0,i=arguments.length;o1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;return __awaiter(void 0,void 0,void 0,regeneratorRuntime.mark((function _callee3(){var a,c,u,l,p,d,h,m,y;return regeneratorRuntime.wrap((function _callee3$(v){for(;;)switch(v.prev=v.next){case 0:return a=getAbsoluteWorkerUrl(r),v.next=3,navigator.serviceWorker.getRegistrations().then((function(r){return r.filter((function(r){return ut(r,a,i)}))}));case 3:if(c=v.sent,!navigator.serviceWorker.controller&&c.length>0&&location.reload(),u=esm_slicedToArray(c,1),!(l=u[0])){v.next=8;break}return v.abrupt("return",l.update().then((function(){return[ut(l,a,i),l]})));case 8:return v.next=10,ct((function(){return __awaiter(void 0,void 0,void 0,regeneratorRuntime.mark((function _callee2(){var c;return regeneratorRuntime.wrap((function _callee2$(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,navigator.serviceWorker.register(r,o);case 2:return c=u.sent,u.abrupt("return",[ut(c,a,i),c]);case 4:case"end":return u.stop()}}),_callee2)})))}));case 10:if(p=v.sent,d=esm_slicedToArray(p,2),h=d[0],m=d[1],!h){v.next=20;break}if(!h.message.includes("(404)")){v.next=19;break}throw y=new URL((null===o||void 0===o?void 0:o.scope)||"/",location.href),new Error(me.formatMessage("Failed to register a Service Worker for scope ('".concat(y.href,"') with script ('").concat(a,'\'): Service Worker script does not exist at the given path.\n\nDid you forget to run "npx msw init "?\n\nLearn more about creating the Service Worker script: https://mswjs.io/docs/cli/init')));case 19:throw new Error(me.formatMessage("Failed to register the Service Worker:\n\n%s",h.message));case 20:return v.abrupt("return",m);case 21:case"end":return v.stop()}}),_callee3)})))};function printStartMessage(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!r.quiet){var o=r.message||"Mocking enabled.";console.groupCollapsed("%c".concat(me.formatMessage(o)),"color:orangered;font-weight:bold;"),console.log("%cDocumentation: %chttps://mswjs.io/docs","font-weight:bold","font-weight:normal"),console.log("Found an issue? https://github.com/mswjs/msw/issues"),console.groupEnd()}}function enableMocking(r,o){return __awaiter(this,void 0,void 0,regeneratorRuntime.mark((function _callee4(){return regeneratorRuntime.wrap((function _callee4$(i){for(;;)switch(i.prev=i.next){case 0:return r.workerChannel.send("MOCK_ACTIVATE"),i.abrupt("return",r.events.once("MOCKING_ENABLED").then((function(){printStartMessage({quiet:o.quiet})})));case 2:case"end":return i.stop()}}),_callee4)})))}var pt=function createBroadcastChannel(r){var o=r.ports[0];return{send:function send(r){o&&o.postMessage(r)}}},ft={},dt={},ht={exports:{}},mt={decodeValues:!0,map:!1,silent:!1};function isNonEmptyString(r){return"string"===typeof r&&!!r.trim()}function parseString(r,o){var i=r.split(";").filter(isNonEmptyString),a=i.shift().split("="),c=a.shift(),u=a.join("=");o=o?Object.assign({},mt,o):mt;try{u=o.decodeValues?decodeURIComponent(u):u}catch(p){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+u+"'. Set options.decodeValues to false to disable this feature.",p)}var l={name:c,value:u};return i.forEach((function(r){var o=r.split("="),i=o.shift().trimLeft().toLowerCase(),a=o.join("=");"expires"===i?l.expires=new Date(a):"max-age"===i?l.maxAge=parseInt(a,10):"secure"===i?l.secure=!0:"httponly"===i?l.httpOnly=!0:"samesite"===i?l.sameSite=a:l[i]=a})),l}function parse$1(r,o){if(o=o?Object.assign({},mt,o):mt,!r)return o.map?{}:[];if(r.headers&&r.headers["set-cookie"])r=r.headers["set-cookie"];else if(r.headers){var i=r.headers[Object.keys(r.headers).find((function(r){return"set-cookie"===r.toLowerCase()}))];i||!r.headers.cookie||o.silent||console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),r=i}if(Array.isArray(r)||(r=[r]),(o=o?Object.assign({},mt,o):mt).map){return r.filter(isNonEmptyString).reduce((function(r,i){var a=parseString(i,o);return r[a.name]=a,r}),{})}return r.filter(isNonEmptyString).map((function(r){return parseString(r,o)}))}function getAllCookies(){return B(document.cookie)}function setRequestCookies(r){var o;ft.store.hydrate(),r.cookies=Object.assign(Object.assign({},function getRequestCookies(r){if("undefined"===typeof location)return{};switch(r.credentials){case"same-origin":return location.origin===r.url.origin?getAllCookies():{};case"include":return getAllCookies();default:return{}}}(r)),Array.from(null===(o=ft.store.get(Object.assign(Object.assign({},r),{url:r.url.toString()})))||void 0===o?void 0:o.entries()).reduce((function(r,o){var i=esm_slicedToArray(o,2),a=i[0],c=i[1].value;return Object.assign(r,function _defineProperty(r,o,i){return o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,r}({},a,c))}),{})),r.headers.set("cookie",Object.entries(r.cookies).map((function(r){var o=esm_slicedToArray(r,2),i=o[0],a=o[1];return"".concat(i,"=").concat(a)})).join("; "))}function pruneGetRequestBody(r){if(!r.method||!isStringEqual(r.method,"GET")||""!==r.body)return r.body}function parseWorkerRequest(r){var o={id:r.id,cache:r.cache,credentials:r.credentials,method:r.method,url:new URL(r.url),referrer:r.referrer,referrerPolicy:r.referrerPolicy,redirect:r.redirect,mode:r.mode,params:{},cookies:{},integrity:r.integrity,keepalive:r.keepalive,destination:r.destination,body:pruneGetRequestBody(r),bodyUsed:r.bodyUsed,headers:new l.Headers(r.headers)};return setRequestCookies(o),o.body=parseBody(o.body,o.headers),o}ht.exports=parse$1,ht.exports.parse=parse$1,ht.exports.parseString=parseString,ht.exports.splitCookiesString=function splitCookiesString(r){if(Array.isArray(r))return r;if("string"!==typeof r)return[];var o,i,a,c,u,l=[],p=0;function skipWhitespace(){for(;p=r.length)&&l.push(r.substring(o,r.length))}return l},function(r){var o=u&&u.__rest||function(r,o){var i={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&o.indexOf(a)<0&&(i[a]=r[a]);if(null!=r&&"function"===typeof Object.getOwnPropertySymbols){var c=0;for(a=Object.getOwnPropertySymbols(r);ci?i+1:r+1:a===c?o:o+1}return function(r,o){if(r===o)return 0;if(r.length>o.length){var i=r;r=o,o=i}for(var a=r.length,c=o.length;a>0&&r.charCodeAt(a-1)===o.charCodeAt(c-1);)a--,c--;for(var u=0;u1?"Did you mean to request one of the following resources instead?\n\n".concat(r.map((function(r){return" \u2022 ".concat(r.info.header)})).join("\n")):'Did you mean to request "'.concat(r[0].info.header,'" instead?')}function onUnhandledRequest(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"warn";if("function"!==typeof i){var a=tryCatch((function(){return parseGraphQLRequest(r)})),c=groupHandlersByType(o),u=a?c.graphql:c.rest,l=getSuggestedHandler(r,u,a?getScoreForGraphQLHandler(a):getScoreForRestHandler()),p=l.length>0?getSuggestedHandlersMessage(l):"",d=ge(r),h=a?"".concat(a.operationType," ").concat(a.operationName," (").concat(r.method," ").concat(d,")"):"".concat(r.method," ").concat(d),m=["captured a request without a matching request handler:"," \u2022 ".concat(h),p,"If you still wish to intercept this unhandled request, please create a request handler for it.\nRead more: https://mswjs.io/docs/getting-started/mocks"].filter(Boolean),y=m.join("\n\n");switch(i){case"error":me.error("Error: %s",y);break;case"warn":me.warn("Warning: %s",y);break;case"bypass":break;default:throw new Error(me.formatMessage('Failed to react to an unhandled request: unknown strategy "%s". Please provide one of the supported strategies ("bypass", "warn", "error") or a custom callback function as the value of the "onUnhandledRequest" option.',i))}}else i(r)}function readResponseCookies(r,o){ft.store.add(Object.assign(Object.assign({},r),{url:r.url.toString()}),o),ft.store.persist()}function handleRequest(r,o,i,a,c){var u,l,p;return __awaiter(this,void 0,void 0,regeneratorRuntime.mark((function _callee7(){var d,h,m;return regeneratorRuntime.wrap((function _callee7$(y){for(;;)switch(y.prev=y.next){case 0:if(a.emit("request:start",r),!r.headers.get("x-msw-bypass")){y.next=5;break}return a.emit("request:end",r),null===(u=null===c||void 0===c?void 0:c.onBypassResponse)||void 0===u||u.call(c,r),y.abrupt("return");case 5:return y.next=7,yt(r,o,null===c||void 0===c?void 0:c.resolutionContext);case 7:if(d=y.sent,h=d.handler,m=d.response,h){y.next=15;break}return onUnhandledRequest(r,o,i.onUnhandledRequest),a.emit("request:unhandled",r),a.emit("request:end",r),null===(l=null===c||void 0===c?void 0:c.onBypassResponse)||void 0===l||l.call(c,r),y.abrupt("return");case 15:if(m){y.next=20;break}return me.warn("Expected a mocking resolver function to return a mocked response Object, but got: %s. Original response is going to be used instead.",m),a.emit("request:end",r),null===(p=null===c||void 0===c?void 0:c.onBypassResponse)||void 0===p||p.call(c,r),y.abrupt("return");case 20:return readResponseCookies(r,m),a.emit("request:match",r),y.abrupt("return",new Promise((function(o){var i,u,l,p=d,h=(null===(i=null===c||void 0===c?void 0:c.transformResponse)||void 0===i?void 0:i.call(c,m))||m;null===(u=null===c||void 0===c?void 0:c.onMockedResponse)||void 0===u||u.call(c,h,p),setTimeout((function(){var i;null===(i=null===c||void 0===c?void 0:c.onMockedResponseSent)||void 0===i||i.call(c,h,p),a.emit("request:end",r),o(h)}),null!==(l=m.delay)&&void 0!==l?l:0)})));case 23:case"end":return y.stop()}}),_callee7)})))}var gt=function createRequestListener(r,o){return function(i,a){return __awaiter(void 0,void 0,void 0,regeneratorRuntime.mark((function _callee8(){var c,u;return regeneratorRuntime.wrap((function _callee8$(l){for(;;)switch(l.prev=l.next){case 0:return c=pt(i),l.prev=1,u=parseWorkerRequest(a.payload),l.next=5,handleRequest(u,r.requestHandlers,o,r.emitter,{transformResponse:function transformResponse(r){return Object.assign(Object.assign({},r),{headers:r.headers.all()})},onBypassResponse:function onBypassResponse(){return c.send({type:"MOCK_NOT_FOUND"})},onMockedResponse:function onMockedResponse(r){c.send({type:"MOCK_SUCCESS",payload:r})},onMockedResponseSent:function onMockedResponseSent(r,i){var a=i.handler,c=i.publicRequest,u=i.parsedRequest;o.quiet||a.log(c,r,a,u)}});case 5:l.next=12;break;case 7:if(l.prev=7,l.t0=l.catch(1),!(l.t0 instanceof ye)){l.next=11;break}return l.abrupt("return",c.send({type:"NETWORK_ERROR",payload:{name:l.t0.name,message:l.t0.message}}));case 11:c.send({type:"INTERNAL_ERROR",payload:{status:500,body:JSON.stringify({errorType:l.t0.constructor.name,message:l.t0.message,location:l.t0.stack})}});case 12:case"end":return l.stop()}}),_callee8,null,[[1,7]])})))}};function requestIntegrityCheck(r,o){return __awaiter(this,void 0,void 0,regeneratorRuntime.mark((function _callee9(){var i,a;return regeneratorRuntime.wrap((function _callee9$(c){for(;;)switch(c.prev=c.next){case 0:return r.workerChannel.send("INTEGRITY_CHECK_REQUEST"),c.next=3,r.events.once("INTEGRITY_CHECK_RESPONSE");case 3:if(i=c.sent,"f0a916b13c8acc2b526a03a6d26df85f"===(a=i.payload)){c.next=7;break}throw new Error("Currently active Service Worker (".concat(a,") is behind the latest published one (","f0a916b13c8acc2b526a03a6d26df85f",")."));case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}}),_callee9)})))}function createResponseListener(r){return function(o,i){var a,c=i.payload;if(!(null===(a=c.type)||void 0===a?void 0:a.includes("opaque"))){var u=new Response(c.body||null,c);"msw"===u.headers.get("x-powered-by")?r.emitter.emit("response:mocked",u,c.requestId):r.emitter.emit("response:bypass",u,c.requestId)}}}function validateWorkerScope(r,o){(null===o||void 0===o?void 0:o.quiet)||location.href.startsWith(r.scope)||me.warn("Cannot intercept requests on this page because it's outside of the worker's scope (\"".concat(r.scope,'"). If you wish to mock API requests on this page, you must resolve this scope issue.\n\n- (Recommended) Register the worker at the root level ("/") of your application.\n- Set the "Service-Worker-Allowed" response header to allow out-of-scope workers.'))}var _t=function createStartHandler(r){return function start(o,i){var a=this,c=function startWorkerInstance(){return __awaiter(a,void 0,void 0,regeneratorRuntime.mark((function _callee11(){var a,c,u,l,p,d,h,m;return regeneratorRuntime.wrap((function _callee11$(y){for(;;)switch(y.prev=y.next){case 0:return r.events.removeAllListeners(),r.workerChannel.on("REQUEST",gt(r,o)),r.workerChannel.on("RESPONSE",createResponseListener(r)),y.next=5,lt(o.serviceWorker.url,o.serviceWorker.options,o.findWorker);case 5:if(a=y.sent,c=esm_slicedToArray(a,2),u=c[0],l=c[1],u){y.next=10;break}throw p=(null===i||void 0===i?void 0:i.findWorker)?me.formatMessage('Failed to locate the Service Worker registration using a custom "findWorker" predicate.\n\nPlease ensure that the custom predicate properly locates the Service Worker registration at "%s".\nMore details: https://mswjs.io/docs/api/setup-worker/start#findworker\n',o.serviceWorker.url):me.formatMessage('Failed to locate the Service Worker registration.\n\nThis most likely means that the worker script URL "%s" cannot resolve against the actual public hostname (%s). This may happen if your application runs behind a proxy, or has a dynamic hostname.\n\nPlease consider using a custom "serviceWorker.url" option to point to the actual worker script location, or a custom "findWorker" option to resolve the Service Worker registration manually. More details: https://mswjs.io/docs/api/setup-worker/start',o.serviceWorker.url,location.host),new Error(p);case 10:return r.worker=u,r.registration=l,r.events.addListener(window,"beforeunload",(function(){"redundant"!==u.state&&r.workerChannel.send("CLIENT_CLOSED"),window.clearInterval(r.keepAliveInterval)})),y.next=15,ct((function(){return requestIntegrityCheck(r,u)}));case 15:return d=y.sent,h=esm_slicedToArray(d,1),(m=h[0])&&me.error("Detected outdated Service Worker: ".concat(m.message,"\n\nThe mocking is still enabled, but it's highly recommended that you update your Service Worker by running:\n\n$ npx msw init \n\nThis is necessary to ensure that the Service Worker is in sync with the library to guarantee its stability.\nIf this message still persists after updating, please report an issue: https://github.com/open-draft/msw/issues ")),y.next=21,enableMocking(r,o).catch((function(r){throw new Error("Failed to enable mocking: ".concat(null===r||void 0===r?void 0:r.message))}));case 21:return r.keepAliveInterval=window.setInterval((function(){return r.workerChannel.send("KEEPALIVE_REQUEST")}),5e3),validateWorkerScope(l,r.startOptions),y.abrupt("return",l);case 24:case"end":return y.stop()}}),_callee11)})))}();return o.waitUntilReady&&function deferNetworkRequestsUntil(r){var o=this,i=window.XMLHttpRequest.prototype.send;window.XMLHttpRequest.prototype.send=function(){for(var o=this,a=arguments.length,c=new Array(a),u=0;u0&&void 0!==arguments[0]?arguments[0]:{};r.quiet||console.log("%c".concat(me.formatMessage("Mocking disabled.")),"color:orangered;font-weight:bold;")}var bt=function createStop(r){return function stop(){var o;r.workerChannel.send("MOCK_DEACTIVATE"),r.events.removeAllListeners(),r.emitter.removeAllListeners(),window.clearInterval(r.keepAliveInterval),printStopMessage({quiet:null===(o=r.startOptions)||void 0===o?void 0:o.quiet})}};function _use(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a1?o-1:0),a=1;a0?[].concat(i):esm_toConsumableArray(r)}var Et={serviceWorker:{url:"/mockServiceWorker.js",options:null},quiet:!1,waitUntilReady:!0,onUnhandledRequest:"warn",findWorker:function findWorker(r,o){return r===o}};function prepareStartHandler(r,o){return function(i){return o.startOptions=function resolveStartOptions(r){return mergeRight(Et,r||{})}(i),r(o.startOptions,i||{})}}var wt={},St={};Object.defineProperty(St,"__esModule",{value:!0}),St.createInterceptor=void 0;var Ot=Ye;St.createInterceptor=function createInterceptor(r){var o=new Ot.StrictEventEmitter,i=[];return{apply:function apply(){i=r.modules.map((function(i){return i(o,r.resolver)}))},on:function on(r,i){o.addListener(r,i)},restore:function restore(){if(o.removeAllListeners(),0===i.length)throw new Error('Failed to restore patched modules: no patches found. Did you forget to run ".apply()"?');i.forEach((function(r){return r()}))}}};var Tt={},kt={};Object.defineProperty(kt,"__esModule",{value:!0}),kt.toIsoResponse=void 0;var At=l;kt.toIsoResponse=function toIsoResponse(r){return{status:r.status||200,statusText:r.statusText||"OK",headers:At.objectToHeaders(r.headers||{}),body:r.body}};var Ct=u&&u.__assign||function(){return(Ct=Object.assign||function(r){for(var o,i=1,a=arguments.length;i0&&c[c.length-1])&&(6===u[0]||2===u[0])){l=0;continue}if(3===u[0]&&(!c||u[1]>c[0]&&u[1]0)&&!(a=u.next()).done;)l.push(a.value)}catch(error){c={error:error}}finally{try{a&&!a.done&&(i=u.return)&&i.call(u)}finally{if(c)throw c.error}}return l};Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.createRemoteResolver=Tt.createRemoteInterceptor=void 0;var Dt=l,Lt=ie,Rt=Ye,Pt=St,jt=kt;function requestReviver(r,o){switch(r){case"url":return new URL(o);case"headers":return new Dt.Headers(o);default:return o}}Tt.createRemoteInterceptor=function createRemoteInterceptor(r){if(Lt.invariant(process.connected,"Failed to create a remote interceptor: the current process (%s) does not have a parent. Please make sure you're spawning this process as a child process in order to use remote request interception.",process.pid),"undefined"===typeof process.send)throw new Error("Failed to create a remote interceptor: the current process ("+process.pid+") does not have the IPC enabled. Please make sure you're spawning this process with the \"ipc\" stdio value set:\n\nspawn('node', ['module.js'], { stdio: ['ipc'] })");var o,i=Pt.createInterceptor(Ct(Ct({},r),{resolver:function resolver(r){var i,a=JSON.stringify(r);return null===(i=process.send)||void 0===i||i.call(process,"request:"+a),new Promise((function(i){o=function handleParentMessage(o){if("string"===typeof o&&o.startsWith("response:"+r.id)){var a=It(o.match(/^response:.+?:(.+)$/)||[],2)[1];if(!a)return i();var c=JSON.parse(a);return i(c)}},process.addListener("message",o)}))}}));return Ct(Ct({},i),{restore:function restore(){i.restore(),process.removeListener("message",o)}})},Tt.createRemoteResolver=function createRemoteResolver(r){var o=this,i=new Rt.StrictEventEmitter,a=function handleChildMessage(a){return Nt(o,void 0,void 0,(function(){var o,c,u,l,p;return xt(this,(function(d){switch(d.label){case 0:return"string"!==typeof a?[2]:a.startsWith("request:")?(o=It(a.match(/^request:(.+)$/)||[],2),(c=o[1])?(u=JSON.parse(c,requestReviver),i.emit("request",u),[4,r.resolver(u,void 0)]):[2]):[3,2];case 1:l=d.sent(),p=JSON.stringify(l),r.process.send("response:"+u.id+":"+p,(function(r){r||l&&i.emit("response",u,jt.toIsoResponse(l))})),d.label=2;case 2:return[2]}}))}))},c=function cleanup(){r.process.removeListener("message",a)};return r.process.addListener("message",a),r.process.addListener("disconnect",c),r.process.addListener("error",c),r.process.addListener("exit",c),{on:function on(r,o){i.addListener(r,o)}}},function(r){var o=u&&u.__createBinding||(Object.create?function(r,o,i,a){void 0===a&&(a=i),Object.defineProperty(r,a,{enumerable:!0,get:function get(){return o[i]}})}:function(r,o,i,a){void 0===a&&(a=i),r[a]=o[i]}),i=u&&u.__exportStar||function(r,i){for(var a in r)"default"===a||Object.prototype.hasOwnProperty.call(i,a)||o(i,r,a)};Object.defineProperty(r,"__esModule",{value:!0}),r.getCleanUrl=void 0,i(St,r),i(Tt,r);var a=be;Object.defineProperty(r,"getCleanUrl",{enumerable:!0,get:function get(){return a.getCleanUrl}})}(wt);var Mt={},Ft={};Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.uuidv4=void 0,Ft.uuidv4=function uuidv4$1(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(r){var o=16*Math.random()|0;return("x"==r?o:3&o|8).toString(16)}))};var qt=u&&u.__assign||function(){return(qt=Object.assign||function(r){for(var o,i=1,a=arguments.length;i0&&c[c.length-1])&&(6===u[0]||2===u[0])){l=0;continue}if(3===u[0]&&(!c||u[1]>c[0]&&u[1]",amp:"&",quot:'"',apos:"'",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",times:"\xd7",divide:"\xf7",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",euro:"\u20ac",trade:"\u2122",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}},Jt={},$t=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Zt=new RegExp("[\\-\\.0-9"+$t.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),en=new RegExp("^"+$t.source+Zt.source+"*(?::"+$t.source+Zt.source+"*)?$");function ParseError$1(r,o){this.message=r,this.locator=o,Error.captureStackTrace&&Error.captureStackTrace(this,ParseError$1)}function XMLReader$1(){}function copyLocator(r,o){return o.lineNumber=r.lineNumber,o.columnNumber=r.columnNumber,o}function parseElementStartPart(r,o,i,a,c,u){function addAttribute(r,o,a){r in i.attributeNames&&u.fatalError("Attribute "+r+" redefined"),i.addValue(r,o,a)}for(var l,p=++o,d=0;;){var h=r.charAt(p);switch(h){case"=":if(1===d)l=r.slice(o,p),d=3;else{if(2!==d)throw new Error("attribute equal must after attrName");d=3}break;case"'":case'"':if(3===d||1===d){if(1===d&&(u.warning('attribute value must after "="'),l=r.slice(o,p)),o=p+1,!((p=r.indexOf(h,o))>0))throw new Error("attribute value no end '"+h+"' match");addAttribute(l,m=r.slice(o,p).replace(/&#?\w+;/g,c),o-1),d=5}else{if(4!=d)throw new Error('attribute value must after "="');addAttribute(l,m=r.slice(o,p).replace(/&#?\w+;/g,c),o),u.warning('attribute "'+l+'" missed start quot('+h+")!!"),o=p+1,d=5}break;case"/":switch(d){case 0:i.setTagName(r.slice(o,p));case 5:case 6:case 7:d=7,i.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return u.error("unexpected end of input"),0==d&&i.setTagName(r.slice(o,p)),p;case">":switch(d){case 0:i.setTagName(r.slice(o,p));case 5:case 6:case 7:break;case 4:case 1:"/"===(m=r.slice(o,p)).slice(-1)&&(i.closed=!0,m=m.slice(0,-1));case 2:2===d&&(m=l),4==d?(u.warning('attribute "'+m+'" missed quot(")!'),addAttribute(l,m.replace(/&#?\w+;/g,c),o)):("http://www.w3.org/1999/xhtml"===a[""]&&m.match(/^(?:disabled|checked|selected)$/i)||u.warning('attribute "'+m+'" missed value!! "'+m+'" instead!!'),addAttribute(m,m,o));break;case 3:throw new Error("attribute value missed!!")}return p;case"\x80":h=" ";default:if(h<=" ")switch(d){case 0:i.setTagName(r.slice(o,p)),d=6;break;case 1:l=r.slice(o,p),d=2;break;case 4:var m=r.slice(o,p).replace(/&#?\w+;/g,c);u.warning('attribute "'+m+'" missed quot(")!!'),addAttribute(l,m,o);case 5:d=6}else switch(d){case 2:i.tagName,"http://www.w3.org/1999/xhtml"===a[""]&&l.match(/^(?:disabled|checked|selected)$/i)||u.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),addAttribute(l,l,o),o=p,d=1;break;case 5:u.warning('attribute space is required"'+l+'"!!');case 6:d=1,o=p;break;case 3:d=4,o=p;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}p++}}function appendElement$1(r,o,i){for(var a=r.tagName,c=null,u=r.length;u--;){var l=r[u],p=l.qName,d=l.value;if((v=p.indexOf(":"))>0)var h=l.prefix=p.slice(0,v),m=p.slice(v+1),y="xmlns"===h&&m;else m=p,h=null,y="xmlns"===p&&"";l.localName=m,!1!==y&&(null==c&&(c={},_copy(i,i={})),i[y]=c[y]=d,l.uri="http://www.w3.org/2000/xmlns/",o.startPrefixMapping(y,d))}for(u=r.length;u--;){(h=(l=r[u]).prefix)&&("xml"===h&&(l.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==h&&(l.uri=i[h||""]))}var v;(v=a.indexOf(":"))>0?(h=r.prefix=a.slice(0,v),m=r.localName=a.slice(v+1)):(h=null,m=r.localName=a);var g=r.uri=i[h||""];if(o.startElement(g,m,a,r),!r.closed)return r.currentNSMap=i,r.localNSMap=c,!0;if(o.endElement(g,m,a),c)for(h in c)o.endPrefixMapping(h)}function parseHtmlSpecialContent(r,o,i,a,c){if(/^(?:script|textarea)$/i.test(i)){var u=r.indexOf("",o),l=r.substring(o+1,u);if(/[&<]/.test(l))return/^script$/i.test(i)?(c.characters(l,0,l.length),u):(l=l.replace(/&#?\w+;/g,a),c.characters(l,0,l.length),u)}return o+1}function fixSelfClosed(r,o,i,a){var c=a[i];return null==c&&((c=r.lastIndexOf(""))o?(i.comment(r,o+4,c-o-4),c+3):(a.error("Unclosed comment"),-1):-1;default:if("CDATA["==r.substr(o+3,6)){var c=r.indexOf("]]>",o+9);return i.startCDATA(),i.characters(r,o+9,c-o-9),i.endCDATA(),c+3}var u=function split(r,o){var i,a=[],c=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;c.lastIndex=o,c.exec(r);for(;i=c.exec(r);)if(a.push(i),i[1])return a}(r,o),l=u.length;if(l>1&&/!doctype/i.test(u[0][0])){var p=u[1][0],d=!1,h=!1;l>3&&(/^public$/i.test(u[2][0])?(d=u[3][0],h=l>4&&u[4][0]):/^system$/i.test(u[2][0])&&(h=u[3][0]));var m=u[l-1];return i.startDTD(p,d,h),i.endDTD(),m.index+m[0].length}}return-1}function parseInstruction(r,o,i){var a=r.indexOf("?>",o);if(a){var c=r.substring(o,a).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return c?(c[0].length,i.processingInstruction(c[1],c[2]),a+2):-1}return-1}function ElementAttributes(){this.attributeNames={}}ParseError$1.prototype=new Error,ParseError$1.prototype.name=ParseError$1.name,XMLReader$1.prototype={parse:function parse(r,o,i){var a=this.domBuilder;a.startDocument(),_copy(o,o={}),function _parse(r,o,i,a,c){function fixedFromCharCode(r){if(r>65535){var o=55296+((r-=65536)>>10),i=56320+(1023&r);return String.fromCharCode(o,i)}return String.fromCharCode(r)}function entityReplacer(r){var o=r.slice(1,-1);return o in i?i[o]:"#"===o.charAt(0)?fixedFromCharCode(parseInt(o.substr(1).replace("x","0x"))):(c.error("entity not found:"+r),r)}function appendText(o){if(o>y){var i=r.substring(y,o).replace(/&#?\w+;/g,entityReplacer);d&&position(y),a.characters(i,0,o-y),y=o}}function position(o,i){for(;o>=l&&(i=p.exec(r));)u=i.index,l=u+i[0].length,d.lineNumber++;d.columnNumber=o-u+1}var u=0,l=0,p=/.*(?:\r\n?|\n)|.*$/g,d=a.locator,h=[{currentNSMap:o}],m={},y=0;for(;;){try{var v=r.indexOf("<",y);if(v<0){if(!r.substr(y).match(/^\s*$/)){var g=a.doc,_=g.createTextNode(r.substr(y));g.appendChild(_),a.currentElement=_}return}switch(v>y&&appendText(v),r.charAt(v+1)){case"/":var b=r.indexOf(">",v+3),E=r.substring(v+2,b),w=h.pop();b<0?(E=r.substring(v+2).replace(/[\s<].*/,""),c.error("end tag name: "+E+" is not complete:"+w.tagName),b=v+1+E.length):E.match(/\sy?y=b:appendText(Math.max(v,y)+1)}}(r,o,i,a,this.errorHandler),a.endDocument()}},ElementAttributes.prototype={setTagName:function setTagName(r){if(!en.test(r))throw new Error("invalid tagName:"+r);this.tagName=r},addValue:function addValue(r,o,i){if(!en.test(r))throw new Error("invalid attribute:"+r);this.attributeNames[r]=this.length,this[this.length++]={qName:r,value:o,offset:i}},length:0,getLocalName:function getLocalName(r){return this[r].localName},getLocator:function getLocator(r){return this[r].locator},getQName:function getQName(r){return this[r].qName},getURI:function getURI(r){return this[r].uri},getValue:function getValue(r){return this[r].value}},Jt.XMLReader=XMLReader$1,Jt.ParseError=ParseError$1;var tn={};function copy(r,o){for(var i in r)o[i]=r[i]}function _extends(r,o){var i=r.prototype;if(!(i instanceof o)){function t(){}t.prototype=o.prototype,copy(i,t=new t),r.prototype=i=t}i.constructor!=r&&("function"!=typeof r&&console.error("unknow Class:"+r),i.constructor=r)}var nn={},rn=nn.ELEMENT_NODE=1,an=nn.ATTRIBUTE_NODE=2,sn=nn.TEXT_NODE=3,cn=nn.CDATA_SECTION_NODE=4,un=nn.ENTITY_REFERENCE_NODE=5,ln=nn.ENTITY_NODE=6,pn=nn.PROCESSING_INSTRUCTION_NODE=7,dn=nn.COMMENT_NODE=8,hn=nn.DOCUMENT_NODE=9,mn=nn.DOCUMENT_TYPE_NODE=10,yn=nn.DOCUMENT_FRAGMENT_NODE=11,vn=nn.NOTATION_NODE=12,gn={},_n={};gn.INDEX_SIZE_ERR=(_n[1]="Index size error",1),gn.DOMSTRING_SIZE_ERR=(_n[2]="DOMString size error",2);var bn=gn.HIERARCHY_REQUEST_ERR=(_n[3]="Hierarchy request error",3);gn.WRONG_DOCUMENT_ERR=(_n[4]="Wrong document",4),gn.INVALID_CHARACTER_ERR=(_n[5]="Invalid character",5),gn.NO_DATA_ALLOWED_ERR=(_n[6]="No data allowed",6),gn.NO_MODIFICATION_ALLOWED_ERR=(_n[7]="No modification allowed",7);var En=gn.NOT_FOUND_ERR=(_n[8]="Not found",8);gn.NOT_SUPPORTED_ERR=(_n[9]="Not supported",9);var wn=gn.INUSE_ATTRIBUTE_ERR=(_n[10]="Attribute in use",10);function DOMException(r,o){if(o instanceof Error)var i=o;else i=this,Error.call(this,_n[r]),this.message=_n[r],Error.captureStackTrace&&Error.captureStackTrace(this,DOMException);return i.code=r,o&&(this.message=this.message+": "+o),i}function NodeList(){}function LiveNodeList(r,o){this._node=r,this._refresh=o,_updateLiveList(this)}function _updateLiveList(r){var o=r._node._inc||r._node.ownerDocument._inc;if(r._inc!=o){var i=r._refresh(r._node);__set__(r,"length",i.length),copy(i,r),r._inc=o}}function NamedNodeMap(){}function _findNodeIndex(r,o){for(var i=r.length;i--;)if(r[i]===o)return i}function _addNamedNode(r,o,i,a){if(a?o[_findNodeIndex(o,a)]=i:o[o.length++]=i,r){i.ownerElement=r;var c=r.ownerDocument;c&&(a&&_onRemoveAttribute(c,r,a),function _onAddAttribute(r,o,i){r&&r._inc++,"http://www.w3.org/2000/xmlns/"==i.namespaceURI&&(o._nsMap[i.prefix?i.localName:""]=i.value)}(c,r,i))}}function _removeNamedNode(r,o,i){var a=_findNodeIndex(o,i);if(!(a>=0))throw DOMException(En,new Error(r.tagName+"@"+i));for(var c=o.length-1;a"==r&&">")||"&"==r&&"&"||'"'==r&&"""||"&#"+r.charCodeAt()+";"}function _visitNode(r,o){if(o(r))return!0;if(r=r.firstChild)do{if(_visitNode(r,o))return!0}while(r=r.nextSibling)}function Document(){}function _onRemoveAttribute(r,o,i,a){r&&r._inc++,"http://www.w3.org/2000/xmlns/"==i.namespaceURI&&delete o._nsMap[i.prefix?i.localName:""]}function _onUpdateChild(r,o,i){if(r&&r._inc){r._inc++;var a=o.childNodes;if(i)a[a.length++]=i;else{for(var c=o.firstChild,u=0;c;)a[u++]=c,c=c.nextSibling;a.length=u}}}function _removeChild(r,o){var i=o.previousSibling,a=o.nextSibling;return i?i.nextSibling=a:r.firstChild=a,a?a.previousSibling=i:r.lastChild=i,_onUpdateChild(r.ownerDocument,r),o}function _insertBefore(r,o,i){var a=o.parentNode;if(a&&a.removeChild(o),o.nodeType===yn){var c=o.firstChild;if(null==c)return o;var u=o.lastChild}else c=u=o;var l=i?i.previousSibling:r.lastChild;c.previousSibling=l,u.nextSibling=i,l?l.nextSibling=c:r.firstChild=c,null==i?r.lastChild=u:i.previousSibling=u;do{c.parentNode=r}while(c!==u&&(c=c.nextSibling));return _onUpdateChild(r.ownerDocument||r,r),o.nodeType==yn&&(o.firstChild=o.lastChild=null),o}function Element(){this._nsMap={}}function Attr(){}function CharacterData(){}function Text(){}function Comment(){}function CDATASection(){}function DocumentType(){}function Notation(){}function Entity(){}function EntityReference(){}function DocumentFragment(){}function ProcessingInstruction(){}function XMLSerializer(){}function nodeSerializeToString(r,o){var i=[],a=9==this.nodeType&&this.documentElement||this,c=a.prefix,u=a.namespaceURI;if(u&&null==c&&null==(c=a.lookupPrefix(u)))var l=[{namespace:u,prefix:null}];return serializeToString(this,i,r,o,l),i.join("")}function needNamespaceDefine(r,o,i){var a=r.prefix||"",c=r.namespaceURI;if(!a&&!c)return!1;if("xml"===a&&"http://www.w3.org/XML/1998/namespace"===c||"http://www.w3.org/2000/xmlns/"==c)return!1;for(var u=i.length;u--;){var l=i[u];if(l.prefix==a)return l.namespace!=c}return!0}function serializeToString(r,o,i,a,c){if(a){if(!(r=a(r)))return;if("string"==typeof r)return void o.push(r)}switch(r.nodeType){case rn:c||(c=[]),c.length;var u=r.attributes,l=u.length,p=r.firstChild,d=r.tagName;i="http://www.w3.org/1999/xhtml"===r.namespaceURI||i,o.push("<",d);for(var h=0;h"),i&&/^script$/i.test(d))for(;p;)p.data?o.push(p.data):serializeToString(p,o,i,a,c),p=p.nextSibling;else for(;p;)serializeToString(p,o,i,a,c),p=p.nextSibling;o.push("")}else o.push("/>");return;case hn:case yn:for(p=r.firstChild;p;)serializeToString(p,o,i,a,c),p=p.nextSibling;return;case an:return o.push(" ",r.name,'="',r.value.replace(/[<&"]/g,_xmlEncoder),'"');case sn:return o.push(r.data.replace(/[<&]/g,_xmlEncoder).replace(/]]>/g,"]]>"));case cn:return o.push("");case dn:return o.push("\x3c!--",r.data,"--\x3e");case mn:var _=r.publicId,b=r.systemId;if(o.push("");else if(b&&"."!=b)o.push(" SYSTEM ",b,">");else{var E=r.internalSubset;E&&o.push(" [",E,"]"),o.push(">")}return;case pn:return o.push("");case un:return o.push("&",r.nodeName,";");default:o.push("??",r.nodeName)}}function _importNode(r,o,i){var a;switch(o.nodeType){case rn:(a=o.cloneNode(!1)).ownerDocument=r;case yn:break;case an:i=!0}if(a||(a=o.cloneNode(!1)),a.ownerDocument=r,a.parentNode=null,i)for(var c=o.firstChild;c;)a.appendChild(_importNode(r,c,i)),c=c.nextSibling;return a}function _cloneNode(r,o,i){var a=new o.constructor;for(var c in o){var u=o[c];"object"!=esm_typeof(u)&&u!=a[c]&&(a[c]=u)}switch(o.childNodes&&(a.childNodes=new NodeList),a.ownerDocument=r,a.nodeType){case rn:var l=o.attributes,p=a.attributes=new NamedNodeMap,d=l.length;p._ownerElement=a;for(var h=0;h0},lookupPrefix:function lookupPrefix(r){for(var o=this;o;){var i=o._nsMap;if(i)for(var a in i)if(i[a]==r)return a;o=o.nodeType==an?o.ownerDocument:o.parentNode}return null},lookupNamespaceURI:function lookupNamespaceURI(r){for(var o=this;o;){var i=o._nsMap;if(i&&r in i)return i[r];o=o.nodeType==an?o.ownerDocument:o.parentNode}return null},isDefaultNamespace:function isDefaultNamespace(r){return null==this.lookupPrefix(r)}},copy(nn,Node),copy(nn,Node.prototype),Document.prototype={nodeName:"#document",nodeType:hn,doctype:null,documentElement:null,_inc:1,insertBefore:function insertBefore(r,o){if(r.nodeType==yn){for(var i=r.firstChild;i;){var a=i.nextSibling;this.insertBefore(i,o),i=a}return r}return null==this.documentElement&&r.nodeType==rn&&(this.documentElement=r),_insertBefore(this,r,o),r.ownerDocument=this,r},removeChild:function removeChild(r){return this.documentElement==r&&(this.documentElement=null),_removeChild(this,r)},importNode:function importNode(r,o){return _importNode(this,r,o)},getElementById:function getElementById(r){var o=null;return _visitNode(this.documentElement,(function(i){if(i.nodeType==rn&&i.getAttribute("id")==r)return o=i,!0})),o},getElementsByClassName:function getElementsByClassName(r){var o=new RegExp("(^|\\s)"+r+"(\\s|$)");return new LiveNodeList(this,(function(r){var i=[];return _visitNode(r.documentElement,(function(a){a!==r&&a.nodeType==rn&&o.test(a.getAttribute("class"))&&i.push(a)})),i}))},createElement:function createElement(r){var o=new Element;return o.ownerDocument=this,o.nodeName=r,o.tagName=r,o.childNodes=new NodeList,(o.attributes=new NamedNodeMap)._ownerElement=o,o},createDocumentFragment:function createDocumentFragment(){var r=new DocumentFragment;return r.ownerDocument=this,r.childNodes=new NodeList,r},createTextNode:function createTextNode(r){var o=new Text;return o.ownerDocument=this,o.appendData(r),o},createComment:function createComment(r){var o=new Comment;return o.ownerDocument=this,o.appendData(r),o},createCDATASection:function createCDATASection(r){var o=new CDATASection;return o.ownerDocument=this,o.appendData(r),o},createProcessingInstruction:function createProcessingInstruction(r,o){var i=new ProcessingInstruction;return i.ownerDocument=this,i.tagName=i.target=r,i.nodeValue=i.data=o,i},createAttribute:function createAttribute(r){var o=new Attr;return o.ownerDocument=this,o.name=r,o.nodeName=r,o.localName=r,o.specified=!0,o},createEntityReference:function createEntityReference(r){var o=new EntityReference;return o.ownerDocument=this,o.nodeName=r,o},createElementNS:function createElementNS(r,o){var i=new Element,a=o.split(":"),c=i.attributes=new NamedNodeMap;return i.childNodes=new NodeList,i.ownerDocument=this,i.nodeName=o,i.tagName=o,i.namespaceURI=r,2==a.length?(i.prefix=a[0],i.localName=a[1]):i.localName=o,c._ownerElement=i,i},createAttributeNS:function createAttributeNS(r,o){var i=new Attr,a=o.split(":");return i.ownerDocument=this,i.nodeName=o,i.name=o,i.namespaceURI=r,i.specified=!0,2==a.length?(i.prefix=a[0],i.localName=a[1]):i.localName=o,i}},_extends(Document,Node),Element.prototype={nodeType:rn,hasAttribute:function hasAttribute(r){return null!=this.getAttributeNode(r)},getAttribute:function getAttribute(r){var o=this.getAttributeNode(r);return o&&o.value||""},getAttributeNode:function getAttributeNode(r){return this.attributes.getNamedItem(r)},setAttribute:function setAttribute(r,o){var i=this.ownerDocument.createAttribute(r);i.value=i.nodeValue=""+o,this.setAttributeNode(i)},removeAttribute:function removeAttribute(r){var o=this.getAttributeNode(r);o&&this.removeAttributeNode(o)},appendChild:function appendChild(r){return r.nodeType===yn?this.insertBefore(r,null):function _appendSingleChild(r,o){var i=o.parentNode;if(i){var a=r.lastChild;i.removeChild(o),a=r.lastChild}return a=r.lastChild,o.parentNode=r,o.previousSibling=a,o.nextSibling=null,a?a.nextSibling=o:r.firstChild=o,r.lastChild=o,_onUpdateChild(r.ownerDocument,r,o),o}(this,r)},setAttributeNode:function setAttributeNode(r){return this.attributes.setNamedItem(r)},setAttributeNodeNS:function setAttributeNodeNS(r){return this.attributes.setNamedItemNS(r)},removeAttributeNode:function removeAttributeNode(r){return this.attributes.removeNamedItem(r.nodeName)},removeAttributeNS:function removeAttributeNS(r,o){var i=this.getAttributeNodeNS(r,o);i&&this.removeAttributeNode(i)},hasAttributeNS:function hasAttributeNS(r,o){return null!=this.getAttributeNodeNS(r,o)},getAttributeNS:function getAttributeNS(r,o){var i=this.getAttributeNodeNS(r,o);return i&&i.value||""},setAttributeNS:function setAttributeNS(r,o,i){var a=this.ownerDocument.createAttributeNS(r,o);a.value=a.nodeValue=""+i,this.setAttributeNode(a)},getAttributeNodeNS:function getAttributeNodeNS(r,o){return this.attributes.getNamedItemNS(r,o)},getElementsByTagName:function getElementsByTagName(r){return new LiveNodeList(this,(function(o){var i=[];return _visitNode(o,(function(a){a===o||a.nodeType!=rn||"*"!==r&&a.tagName!=r||i.push(a)})),i}))},getElementsByTagNameNS:function getElementsByTagNameNS(r,o){return new LiveNodeList(this,(function(i){var a=[];return _visitNode(i,(function(c){c===i||c.nodeType!==rn||"*"!==r&&c.namespaceURI!==r||"*"!==o&&c.localName!=o||a.push(c)})),a}))}},Document.prototype.getElementsByTagName=Element.prototype.getElementsByTagName,Document.prototype.getElementsByTagNameNS=Element.prototype.getElementsByTagNameNS,_extends(Element,Node),Attr.prototype.nodeType=an,_extends(Attr,Node),CharacterData.prototype={data:"",substringData:function substringData(r,o){return this.data.substring(r,r+o)},appendData:function appendData(r){r=this.data+r,this.nodeValue=this.data=r,this.length=r.length},insertData:function insertData(r,o){this.replaceData(r,0,o)},appendChild:function appendChild(r){throw new Error(_n[bn])},deleteData:function deleteData(r,o){this.replaceData(r,o,"")},replaceData:function replaceData(r,o,i){i=this.data.substring(0,r)+i+this.data.substring(r+o),this.nodeValue=this.data=i,this.length=i.length}},_extends(CharacterData,Node),Text.prototype={nodeName:"#text",nodeType:sn,splitText:function splitText(r){var o=this.data,i=o.substring(r);o=o.substring(0,r),this.data=this.nodeValue=o,this.length=o.length;var a=this.ownerDocument.createTextNode(i);return this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling),a}},_extends(Text,CharacterData),Comment.prototype={nodeName:"#comment",nodeType:dn},_extends(Comment,CharacterData),CDATASection.prototype={nodeName:"#cdata-section",nodeType:cn},_extends(CDATASection,CharacterData),DocumentType.prototype.nodeType=mn,_extends(DocumentType,Node),Notation.prototype.nodeType=vn,_extends(Notation,Node),Entity.prototype.nodeType=ln,_extends(Entity,Node),EntityReference.prototype.nodeType=un,_extends(EntityReference,Node),DocumentFragment.prototype.nodeName="#document-fragment",DocumentFragment.prototype.nodeType=yn,_extends(DocumentFragment,Node),ProcessingInstruction.prototype.nodeType=pn,_extends(ProcessingInstruction,Node),XMLSerializer.prototype.serializeToString=function(r,o,i){return nodeSerializeToString.call(r,o,i)},Node.prototype.toString=nodeSerializeToString;try{if(Object.defineProperty){function getTextContent(r){switch(r.nodeType){case rn:case yn:var o=[];for(r=r.firstChild;r;)7!==r.nodeType&&8!==r.nodeType&&o.push(getTextContent(r)),r=r.nextSibling;return o.join("");default:return r.nodeValue}}Object.defineProperty(LiveNodeList.prototype,"length",{get:function get(){return _updateLiveList(this),this.$$length}}),Object.defineProperty(Node.prototype,"textContent",{get:function get(){return getTextContent(this)},set:function set(r){switch(this.nodeType){case rn:case yn:for(;this.firstChild;)this.removeChild(this.firstChild);(r||String(r))&&this.appendChild(this.ownerDocument.createTextNode(r));break;default:this.data=r,this.value=r,this.nodeValue=r}}}),__set__=function __set__(r,o,i){r["$$"+o]=i}}}catch(ar){}function DOMParser(r){this.options=r||{locator:{}}}function DOMHandler(){this.cdata=!1}function position(r,o){o.lineNumber=r.lineNumber,o.columnNumber=r.columnNumber}function _locator(r){if(r)return"\n@"+(r.systemId||"")+"#[line:"+r.lineNumber+",col:"+r.columnNumber+"]"}function _toString(r,o,i){return"string"==typeof r?r.substr(o,i):r.length>=o+i||o?new java.lang.String(r,o,i)+"":r}function appendElement(r,o){r.currentElement?r.currentElement.appendChild(o):r.doc.appendChild(o)}tn.Node=Node,tn.DOMException=DOMException,tn.DOMImplementation=DOMImplementation$1,tn.XMLSerializer=XMLSerializer,DOMParser.prototype.parseFromString=function(r,o){var i=this.options,a=new Tn,c=i.domBuilder||new DOMHandler,u=i.errorHandler,l=i.locator,p=i.xmlns||{},d=/\/x?html?$/.test(o),h=d?Sn.entityMap:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return l&&c.setDocumentLocator(l),a.errorHandler=function buildErrorHandler(r,o,i){if(!r){if(o instanceof DOMHandler)return o;r=o}var a={},c=r instanceof Function;function build(o){var u=r[o];!u&&c&&(u=2==r.length?function(i){r(o,i)}:r),a[o]=u&&function(r){u("[xmldom "+o+"]\t"+r+_locator(i))}||function(){}}return i=i||{},build("warning"),build("error"),build("fatalError"),a}(u,c,l),a.domBuilder=i.domBuilder||c,d&&(p[""]="http://www.w3.org/1999/xhtml"),p.xml=p.xml||"http://www.w3.org/XML/1998/namespace",r&&"string"===typeof r?a.parse(r,p,h):a.errorHandler.error("invalid doc source"),c.doc},DOMHandler.prototype={startDocument:function startDocument(){this.doc=(new An).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function startElement(r,o,i,a){var c=this.doc,u=c.createElementNS(r,i||o),l=a.length;appendElement(this,u),this.currentElement=u,this.locator&&position(this.locator,u);for(var p=0;p0&&c[c.length-1])&&(6===u[0]||2===u[0])){l=0;continue}if(3===u[0]&&(!c||u[1]>c[0]&&u[1]=r.length&&(r=void 0),{value:r&&r[a++],done:!r}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},Hn=u&&u.__read||function(r,o){var i="function"===typeof Symbol&&r[Symbol.iterator];if(!i)return r;var a,c,u=i.call(r),l=[];try{for(;(void 0===o||o-- >0)&&!(a=u.next()).done;)l.push(a.value)}catch(error){c={error:error}}finally{try{a&&!a.done&&(i=u.return)&&i.call(u)}finally{if(c)throw c.error}}return l};Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.createXMLHttpRequestOverride=void 0;var Qn=it,Gn=l,Wn=Yt,zn=Cn,Kn=kt,Yn=Ft,Xn=Nn,Jn=xn,$n=ze();Kt.createXMLHttpRequestOverride=function createXMLHttpRequestOverride(r){var o,i=r.pureXMLHttpRequest,a=r.observer,c=r.resolver,u=$n("XHR");return(o=function(){function XMLHttpRequestOverride(){this._events=[],this.UNSENT=0,this.OPENED=1,this.HEADERS_RECEIVED=2,this.LOADING=3,this.DONE=4,this.onreadystatechange=null,this.onabort=null,this.onerror=null,this.onload=null,this.onloadend=null,this.onloadstart=null,this.onprogress=null,this.ontimeout=null,this.url="",this.method="GET",this.readyState=this.UNSENT,this.withCredentials=!1,this.status=200,this.statusText="OK",this.data="",this.response="",this.responseType="text",this.responseText="",this.responseXML=null,this.responseURL="",this.upload=null,this.timeout=0,this._requestHeaders=new Gn.Headers,this._responseHeaders=new Gn.Headers}return XMLHttpRequestOverride.prototype.setReadyState=function(r){r!==this.readyState&&(u("readyState change %d -> %d",this.readyState,r),this.readyState=r,r!==this.UNSENT&&(u("triggerring readystate change..."),this.trigger("readystatechange")))},XMLHttpRequestOverride.prototype.trigger=function(r,o){var i,a;u('trigger "%s" (%d)',r,this.readyState),u('resolve listener for event "%s"',r);var c=this["on"+r];null===c||void 0===c||c.call(this,Jn.createEvent(this,r,o));try{for(var l=Bn(this._events),p=l.next();!p.done;p=l.next()){var d=p.value;d.name===r&&(u('calling mock event listener "%s" (%d)',r,this.readyState),d.listener.call(this,Jn.createEvent(this,r,o)))}}catch(h){i={error:h}}finally{try{p&&!p.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}return this},XMLHttpRequestOverride.prototype.reset=function(){u("reset"),this.setReadyState(this.UNSENT),this.status=200,this.statusText="OK",this.data="",this.response=null,this.responseText=null,this.responseXML=null,this._requestHeaders=new Gn.Headers,this._responseHeaders=new Gn.Headers},XMLHttpRequestOverride.prototype.open=function(r,o,i,a,c){return void 0===i&&(i=!0),Un(this,void 0,void 0,(function(){return Vn(this,(function(l){return(u=$n("XHR "+r+" "+o))("open",{method:r,url:o,async:i,user:a,password:c}),this.reset(),this.setReadyState(this.OPENED),"undefined"===typeof o?(this.url=r,this.method="GET"):(this.url=o,this.method=r,this.async=i,this.user=a,this.password=c),[2]}))}))},XMLHttpRequestOverride.prototype.send=function(r){var o,l=this;u("send %s %s",this.method,this.url),this.data=r||"";try{o=new URL(this.url)}catch(error){o=new URL(this.url,window.location.href)}u("request headers",this._requestHeaders);var p={id:Yn.uuidv4(),url:o,method:this.method,body:this.data,headers:this._requestHeaders};a.emit("request",p),u("awaiting mocked response..."),Promise.resolve(Qn.until((function(){return Un(l,void 0,void 0,(function(){return Vn(this,(function(r){return[2,c(p,this)]}))}))}))).then((function(r){var o,c=Hn(r,2),d=c[0],h=c[1];if(d)return u("middleware function threw an exception!",d),l.trigger("error"),void l.abort();if(h){if(u("received mocked response",h),l.trigger("loadstart"),l.status=h.status||200,l.statusText=h.statusText||"OK",l._responseHeaders=h.headers?Gn.objectToHeaders(h.headers):new Gn.Headers,u("set response status",l.status,l.statusText),u("set response headers",l._responseHeaders),l.setReadyState(l.HEADERS_RECEIVED),u("response type",l.responseType),l.response=l.getResponseBody(h.body),l.responseText=h.body||"",l.responseXML=l.getResponseXML(),u("set response body",l.response),h.body&&l.response){l.setReadyState(l.LOADING);var m=Xn.bufferFrom(h.body);l.trigger("progress",{loaded:m.length,total:m.length})}l.setReadyState(l.DONE),l.trigger("load"),l.trigger("loadend"),a.emit("response",p,Kn.toIsoResponse(h))}else{u("no mocked response received!");var y=new i;u("opening an original request %s %s",l.method,l.url),y.open(l.method,l.url,null===(o=l.async)||void 0===o||o,l.user,l.password),y.addEventListener("load",(function(){u('original "onload"'),l.status=y.status,l.statusText=y.statusText,l.responseURL=y.responseURL,l.responseType=y.responseType,l.response=y.response,l.responseText=y.responseText,l.responseXML=y.responseXML,u("set mock request readyState to DONE"),l.setReadyState(l.DONE),u("received original response",l.status,l.statusText),u("original response body:",l.response);var r=y.getAllResponseHeaders();u("original response headers:\n",r),l._responseHeaders=Gn.stringToHeaders(r),u("original response headers (normalized)",l._responseHeaders),u("original response finished"),a.emit("response",p,{status:y.status,statusText:y.statusText,headers:l._responseHeaders,body:y.response})})),l.propagateCallbacks(y),l.propagateListeners(y),l.propagateHeaders(y,l._requestHeaders),l.async&&(y.timeout=l.timeout),u("send",l.data),y.send(l.data)}}))},XMLHttpRequestOverride.prototype.abort=function(){u("abort"),this.readyState>this.UNSENT&&this.readyStater.length)&&(o=r.length);for(var i=0,a=new Array(o);i0?c--:c=r.state.collections[i].length-1,r.state.collections[i][c].click(),console.log("".concat(r.name,": prev")),a.dispatchEvent(new Event("{ui.name}.prev"))})),_defineProperty(this,"reset",(function(){o.setState({content:"",type:[],shown:!1,loading:!1,error:!1,embed:!1})})),_defineProperty(this,"load",(function(r){var i=o,c=i.axios;i.reset(),i.setState({loading:!0}),i.show(),c.get(r,{responseType:"arraybuffer"}).then((function(r){console.log("".concat(i.name,": response content-type: ").concat(r.headers["content-type"]));switch(r.headers["content-type"]){case"image/jpeg":case"image/png":case"image/svg+xml":case"image/bmp":case"image/gif":case"image/tiff":case"image/webp":case"image/jpg":case"image/svg":i.setContent(''),"image");break;case"application/json":case"application/ld+json":case"application/json; charset=UTF-8":i.setContent("".concat((!1).Content),"text html json");break;case"text/html":case"application/xhtml+xml":case"text/plain":case"text/html; charset=UTF-8":case"application/xhtml+xml; charset=UTF-8":case"text/plain; charset=UTF-8":i.setContent(i._abToString(r.data),"text html pajax");break;default:console.warn("".concat(i.name,": Unknown response content-type!"))}a.dispatchEvent(new Event("{ui.name}.loaded"))})).catch((function(r){console.error(r);var o="";if(r.response)switch(r.response.status){case 404:o="Not Found.";break;case 500:o="Server issue, please try again latter.";break;default:o="Something went wrong."}else r.request?o="No response received":console.warn("Error",r.message);i.setState({error:o}),a.dispatchEvent(new Event("{ui.name}.error"))})).then((function(){i.setState({loading:!1})}))})),_defineProperty(this,"_currIndex",(function(){var r=o,i=r.state.current,a=i.getAttribute("data-gallery");return r.state.collections[a].indexOf(i)})),_defineProperty(this,"embed",(function(r){var i=o;console.log("".concat(i.name,": embed")),i.reset(),i.setState({embed:r,loading:!1,type:["embed","video"]}),i.show()})),_defineProperty(this,"setCaption",(function(r){var i=o;console.log("".concat(i.name,": setCaption")),i.state.caption=r})),_defineProperty(this,"getCaption",(function(){return o.state.caption})),_defineProperty(this,"_abToString",(function(r){return String.fromCharCode.apply(null,new Uint8Array(r))})),_defineProperty(this,"_imageEncode",(function(r){new Uint8Array(r);return btoa([].reduce.call(new Uint8Array(r),(function(r,o){return r+String.fromCharCode(o)}),""))})),_defineProperty(this,"setContent",(function(r,i){var a=o;console.log("".concat(a.name,": setContent"));var c=i||["html","text"];Array.isArray(c)||(c=i.split(" ")),a.setState({content:r,type:c})})),_defineProperty(this,"getHtml",(function(){return o.state.content}));var i=this;i.name=i.constructor.name,console.log("".concat(i.name,": init")),i.axios=c,a.dispatchEvent(new Event("{ui.name}.init"))}return function _createClass(r,o,i){return o&&_defineProperties(r.prototype,o),i&&_defineProperties(r,i),r}(MetaWindow,[{key:"init",value:function init(r){var o=this;console.log("MetaWindow: [links] init"),o.state.target=r,o.state.collections={},document.querySelectorAll('[data-toggle="lightbox"],[data-gallery="${gallery}"]').forEach((function(r){var i=r.getAttribute("data-gallery");i&&(o.state.collections[i]=[],document.querySelectorAll('[data-toggle="lightbox"][data-gallery="'.concat(i,'"]')).forEach((function(r){o.state.collections[i].push(r)}))),r.addEventListener("click",(function(r){r.preventDefault(),console.log("MetaWindow: [link] click");var i=r.currentTarget,a=i.getAttribute("href")||i.getAttribute("data-href"),c=i.getAttribute("data-embed");o.state.current=i,c?o.embed(a):o.load(a);var u=i.getAttribute("data-title");u&&o.setCaption(u)}))}))}},{key:"setState",value:function setState(r){var o=this;o.state=Object.assign({},o.state,r),o.render()}},{key:"render",value:function render(){var r=this,o=r.name,i=r.state.current;r.state.target.innerHTML="";var a=document.createElement("div");a.classList.add("meta-".concat(o),"meta-".concat(o,"__").concat(r.state.type.join(" meta-".concat(o,"__")))),r.state.target.append(a);var c=document.createElement("div");c.classList.add("meta-".concat(o,"-overlay")),r.state.shown&&c.classList.add("meta-".concat(o,"-overlay__open")),r.state.loading&&c.classList.add("meta-".concat(o,"-overlay__loading")),r.state.error&&c.classList.add("meta-".concat(o,"-overlay__error")),a.append(c);var u=document.createElement("div");u.classList.add("meta-content"),c.append(u);var l=document.createElement("button");if(l.classList.add("meta-nav","meta-close","a"),l.innerHTML=' Close',l.addEventListener("click",(function(o){o.preventDefault(),r.hide()})),u.append(l),i){var p=i.getAttribute("data-gallery");if(p&&r.state.collections[p].length>1){var d=document.createElement("nav");d.classList.add("meta-navs");var h=document.createElement("button");h.classList.add("meta-nav","meta-nav-arrow","meta-nav-arrow__prev","a"),h.innerHTML=' Previous',h.addEventListener("click",(function(o){o.preventDefault(),r.prev()})),d.append(h);var m=document.createElement("button");m.classList.add("meta-nav","meta-nav-arrow","meta-nav-arrow__prev","a"),m.innerHTML=' Next',m.addEventListener("click",(function(o){o.preventDefault(),r.next()})),d.append(m),u.append(d)}}if(r.state.embed)'
... Loading ...
';else{var y=document.createElement("section");y.classList.add("meta-wrap","typography"),y.innerHTML=r.getHtml(),u.append(y)}if(r.state.error){var v=document.createElement("div");v.classList.add("meta-error"),v.innerHTML=r.state.error,u.append(v)}else if(r.state.caption){var g=document.createElement("div");g.classList.add("meta-caption"),g.innerHTML=r.getCaption(),u.append(g)}return r}}]),MetaWindow}()),l=document.getElementById("MetaLightboxApp");l||console.log("MetaWindow: missing container");var p=function init(){u.init(l)};window.addEventListener("".concat(i),p),window.addEventListener("".concat(o),p),window.addEventListener("MetaWindow.initLinks",p);(function importAll(r){return r.keys().map(r)})(__webpack_require__(113));var d={APOLLO_ERROR:"apollo-error",AJAX:"ajax-load",AJAXMAIN:"ajax-main-load",MAININIT:"main-init",TABHIDDEN:"tab-hidden",TABFOCUSED:"tab-focused",OFFLINE:"offline",ONLINE:"online",BACKONLINE:"back-online",TOUCHENABLE:"touch-enabled",TOUCHDISABLED:"touch-disabled",LOADED:"load",SWIPELEFT:"swipeleft panleft",SWIPERIGHT:"swiperight panright",ALLERTAPPEARED:"alert-appeared",ALERTREMOVED:"alert-removed",LODEDANDREADY:"load-ready",LAZYIMAGEREADY:"image-lazy-bg-loaded",LAZYIMAGESREADY:"images-lazy-loaded",MAPLOADED:"map-loaded",MAPAPILOADED:"map-api-loaded",MAPMARKERCLICK:"map-marker-click",MAPPOPUPCLOSE:"map-popup-close",SCROLL:"scroll",RESIZE:"resize",CAROUSEL_READY:"bs.carousel.ready",SET_TARGET_UPDATE:"set-target-update",RESTORE_FIELD:"restore-field",FORM_INIT_BASICS:"form-basics",FORM_INIT_STEPPED:"form-init-stepped",FORM_INIT_VALIDATE:"form-init-validate",FORM_INIT_VALIDATE_FIELD:"form-init-validate-field",FORM_INIT_STORAGE:"form-init-storage",FORM_VALIDATION_FAILED:"form-validation-failed",FORM_STEPPED_NEW_STEP:"form-new-step",FORM_STEPPED_FIRST_STEP:"form-first-step",FORM_STEPPED_LAST_STEP:"form-last-step",FORM_FIELDS:"input,textarea,select"},h={ENVS:["xs","sm","md","lg","xl","xxl","xxxl"]};(function(r){var o="_main.visibility",i=document,a=i.body;i.addEventListener("visibilitychange",(function(){"hidden"===i.visibilityState?(console.log("".concat(o,": Tab: hidden")),a.classList.add("is-hidden"),a.classList.remove("is-focused"),r.dispatchEvent(new Event(d.TABHIDDEN))):(console.log("".concat(o,": Tab: focused")),a.classList.add("is-focused"),a.classList.remove("is-hidden"),r.dispatchEvent(new Event(d.TABFOCUSED)))}))})(window),function(r){var o,i,a="_main.touch",c=document,u=c.body,l=function SET_TOUCH_SCREEN(c,l){i||l===o||(c?(console.log("".concat(a,": Touch screen enabled")),u.classList.add("is-touch"),u.classList.remove("is-mouse"),r.dispatchEvent(new Event(d.TOUCHENABLE))):(console.log("".concat(a,": Touch screen disabled")),u.classList.add("is-mouse"),u.classList.remove("is-touch"),r.dispatchEvent(new Event(d.TOUCHDISABLED))),o=l,i||(i=setTimeout((function(){clearTimeout(i),i=null}),500)))};l("ontouchstart"in r||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0||r.matchMedia("(hover: none)").matches,"init"),c.addEventListener("touchend",(function(r){var o=!1;"click"!==r.type&&(o=!0),l(o,"click-touchend")})),c.addEventListener("click",(function(r){var o=!1;"click"!==r.type&&(o=!0),l(o,"click-touchend")}))}(window);function _toConsumableArray(r){return function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r)}(r)||function _iterableToArray(r){if("undefined"!==typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function _unsupportedIterableToArray(r,o){if(!r)return;if("string"===typeof r)return _arrayLikeToArray(r,o);var i=Object.prototype.toString.call(r).slice(8,-1);"Object"===i&&r.constructor&&(i=r.constructor.name);if("Map"===i||"Set"===i)return Array.from(r);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _arrayLikeToArray(r,o)}(r)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(r,o){(null==o||o>r.length)&&(o=r.length);for(var i=0,a=new Array(o);ir.innerHeight?(i.classList.add("landscape"),i.classList.remove("portrait")):(m=!1,i.classList.add("portrait"),i.classList.remove("landscape")),console.log("".concat("_main.css-screen-size",": screen size detected ").concat(l," | landscape ").concat(m)),i.removeChild(c),l};r.addEventListener("".concat(d.LOADED),a),r.addEventListener("".concat(d.RESIZE),a)}(window);function loading_spinner_defineProperties(r,o){for(var i=0;i"),"color:yellow;font-size:10px"),console.info("%cENV: ".concat("production"),"color:green;font-size:10px"),console.groupCollapsed("Events"),Object.keys(d).forEach((function(r){console.info("".concat(r,": ").concat(d[r]))})),console.groupEnd("Events"),console.groupCollapsed("Consts"),Object.keys(h).forEach((function(r){console.info("".concat(r,": ").concat(h[r]))})),console.groupEnd("Events"),console.groupCollapsed("Init"),console.time("init");var a=function(){function MainUI(){!function main_classCallCheck(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}(this,MainUI)}return function main_createClass(r,o,i){return o&&main_defineProperties(r.prototype,o),i&&main_defineProperties(r,i),r}(MainUI,null,[{key:"init",value:function init(){r.history.replaceState({landing:r.location.href},o.title,r.location.href),this.loaded()}},{key:"loaded",value:function loaded(){console.log("".concat("_main",": loaded"))}}]),MainUI}();r.addEventListener("".concat(d.LOADED),(function(){a.init(),i.classList.add("loaded"),g.hide(),console.groupEnd("init"),console.timeEnd("init"),r.dispatchEvent(new Event(d.LODEDANDREADY))})),r.addEventListener("".concat(d.AJAX),(function(){a.loaded()})),r.MainUI=a}(window);var _=React;var b=function extendStatics(r,o){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])})(r,o)};function __extends(r,o){if("function"!==typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function __(){this.constructor=r}b(r,o),r.prototype=null===o?Object.create(o):(__.prototype=o.prototype,new __)}var E=function __assign(){return(E=Object.assign||function __assign(r){for(var o,i=1,a=arguments.length;i0&&c[c.length-1])&&(6===u[0]||2===u[0])){l=0;continue}if(3===u[0]&&(!c||u[1]>c[0]&&u[1]120){for(var v=Math.floor(d/80),g=d%80,_=[],b=0;b",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function inspect_typeof(r){return(inspect_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(r){return typeof r}:function _typeof(r){return r&&"function"===typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function inspect_inspect(r){return formatValue(r,[])}function formatValue(r,o){switch(inspect_typeof(r)){case"string":return JSON.stringify(r);case"function":return r.name?"[function ".concat(r.name,"]"):"[function]";case"object":return null===r?"null":function formatObjectValue(r,o){if(-1!==o.indexOf(r))return"[Circular]";var i=[].concat(o,[r]),a=function getCustomFn(r){var o=r[String(T)];if("function"===typeof o)return o;if("function"===typeof r.inspect)return r.inspect}(r);if(void 0!==a){var c=a.call(r);if(c!==r)return"string"===typeof c?c:formatValue(c,i)}else if(Array.isArray(r))return function formatArray(r,o){if(0===r.length)return"[]";if(o.length>2)return"[Array]";for(var i=Math.min(10,r.length),a=r.length-i,c=[],u=0;u1&&c.push("... ".concat(a," more items"));return"["+c.join(", ")+"]"}(r,i);return function formatObject(r,o){var i=Object.keys(r);if(0===i.length)return"{}";if(o.length>2)return"["+function getObjectTag(r){var o=Object.prototype.toString.call(r).replace(/^\[object /,"").replace(/]$/,"");if("Object"===o&&"function"===typeof r.constructor){var i=r.constructor.name;if("string"===typeof i&&""!==i)return i}return o}(r)+"]";return"{ "+i.map((function(i){return i+": "+formatValue(r[i],o)})).join(", ")+" }"}(r,i)}(r,o);default:return String(r)}}function devAssert(r,o){if(!Boolean(r))throw new Error(o)}var N=function instanceOf(r,o){return r instanceof o};function source_defineProperties(r,o){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"===typeof r||devAssert(0,"Body must be a string. Received: ".concat(inspect_inspect(r),".")),this.body=r,this.name=o,this.locationOffset=i,this.locationOffset.line>0||devAssert(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||devAssert(0,"column in locationOffset is 1-indexed and must be positive.")}return function source_createClass(r,o,i){return o&&source_defineProperties(r.prototype,o),i&&source_defineProperties(r,i),r}(Source,[{key:w,get:function get(){return"Source"}}]),Source}();var I=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function dedentBlockStringValue(r){var o=r.split(/\r\n|[\n\r]/g),i=function getBlockStringIndentation(r){for(var o,i=!0,a=!0,c=0,u=null,l=0;lc&&isBlank(o[u-1]);)--u;return o.slice(c,u).join("\n")}function isBlank(r){for(var o=0;o31||9===u));return new A(C.COMMENT,o,p,i,a,c,l.slice(o+1,p))}function readNumber(r,o,i,a,c,u){var l=r.body,p=i,d=o,h=!1;if(45===p&&(p=l.charCodeAt(++d)),48===p){if((p=l.charCodeAt(++d))>=48&&p<=57)throw syntaxError(r,d,"Invalid number, unexpected digit after 0: ".concat(printCharCode(p),"."))}else d=readDigits(r,d,p),p=l.charCodeAt(d);if(46===p&&(h=!0,p=l.charCodeAt(++d),d=readDigits(r,d,p),p=l.charCodeAt(d)),69!==p&&101!==p||(h=!0,43!==(p=l.charCodeAt(++d))&&45!==p||(p=l.charCodeAt(++d)),d=readDigits(r,d,p),p=l.charCodeAt(d)),46===p||function isNameStart(r){return 95===r||r>=65&&r<=90||r>=97&&r<=122}(p))throw syntaxError(r,d,"Invalid number, expected digit but got: ".concat(printCharCode(p),"."));return new A(h?C.FLOAT:C.INT,o,d,a,c,u,l.slice(o,d))}function readDigits(r,o,i){var a=r.body,c=o,u=i;if(u>=48&&u<=57){do{u=a.charCodeAt(++c)}while(u>=48&&u<=57);return c}throw syntaxError(r,c,"Invalid number, expected digit but got: ".concat(printCharCode(u),"."))}function readString(r,o,i,a,c){for(var u,l,p,d,h=r.body,m=o+1,y=m,v=0,g="";m=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:-1}function readName(r,o,i,a,c){for(var u=r.body,l=u.length,p=o+1,d=0;p!==l&&!isNaN(d=u.charCodeAt(p))&&(95===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122);)++p;return new A(C.NAME,o,p,i,a,c,u.slice(o,p))}var L=function(){function Parser(r,o){var i=function isSource(r){return N(r,x)}(r)?r:new x(r);this._lexer=new D(i),this._options=o}var r=Parser.prototype;return r.parseName=function parseName(){var r=this.expectToken(C.NAME);return{kind:O.NAME,value:r.value,loc:this.loc(r)}},r.parseDocument=function parseDocument(){var r=this._lexer.token;return{kind:O.DOCUMENT,definitions:this.many(C.SOF,this.parseDefinition,C.EOF),loc:this.loc(r)}},r.parseDefinition=function parseDefinition(){if(this.peek(C.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(C.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},r.parseOperationDefinition=function parseOperationDefinition(){var r=this._lexer.token;if(this.peek(C.BRACE_L))return{kind:O.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(r)};var o,i=this.parseOperationType();return this.peek(C.NAME)&&(o=this.parseName()),{kind:O.OPERATION_DEFINITION,operation:i,name:o,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(r)}},r.parseOperationType=function parseOperationType(){var r=this.expectToken(C.NAME);switch(r.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(r)},r.parseVariableDefinitions=function parseVariableDefinitions(){return this.optionalMany(C.PAREN_L,this.parseVariableDefinition,C.PAREN_R)},r.parseVariableDefinition=function parseVariableDefinition(){var r=this._lexer.token;return{kind:O.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(C.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(C.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(r)}},r.parseVariable=function parseVariable(){var r=this._lexer.token;return this.expectToken(C.DOLLAR),{kind:O.VARIABLE,name:this.parseName(),loc:this.loc(r)}},r.parseSelectionSet=function parseSelectionSet(){var r=this._lexer.token;return{kind:O.SELECTION_SET,selections:this.many(C.BRACE_L,this.parseSelection,C.BRACE_R),loc:this.loc(r)}},r.parseSelection=function parseSelection(){return this.peek(C.SPREAD)?this.parseFragment():this.parseField()},r.parseField=function parseField(){var r,o,i=this._lexer.token,a=this.parseName();return this.expectOptionalToken(C.COLON)?(r=a,o=this.parseName()):o=a,{kind:O.FIELD,alias:r,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(C.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(i)}},r.parseArguments=function parseArguments(r){var o=r?this.parseConstArgument:this.parseArgument;return this.optionalMany(C.PAREN_L,o,C.PAREN_R)},r.parseArgument=function parseArgument(){var r=this._lexer.token,o=this.parseName();return this.expectToken(C.COLON),{kind:O.ARGUMENT,name:o,value:this.parseValueLiteral(!1),loc:this.loc(r)}},r.parseConstArgument=function parseConstArgument(){var r=this._lexer.token;return{kind:O.ARGUMENT,name:this.parseName(),value:(this.expectToken(C.COLON),this.parseValueLiteral(!0)),loc:this.loc(r)}},r.parseFragment=function parseFragment(){var r=this._lexer.token;this.expectToken(C.SPREAD);var o=this.expectOptionalKeyword("on");return!o&&this.peek(C.NAME)?{kind:O.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(r)}:{kind:O.INLINE_FRAGMENT,typeCondition:o?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(r)}},r.parseFragmentDefinition=function parseFragmentDefinition(){var r,o=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(r=this._options)||void 0===r?void 0:r.experimentalFragmentVariables)?{kind:O.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(o)}:{kind:O.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(o)}},r.parseFragmentName=function parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},r.parseValueLiteral=function parseValueLiteral(r){var o=this._lexer.token;switch(o.kind){case C.BRACKET_L:return this.parseList(r);case C.BRACE_L:return this.parseObject(r);case C.INT:return this._lexer.advance(),{kind:O.INT,value:o.value,loc:this.loc(o)};case C.FLOAT:return this._lexer.advance(),{kind:O.FLOAT,value:o.value,loc:this.loc(o)};case C.STRING:case C.BLOCK_STRING:return this.parseStringLiteral();case C.NAME:switch(this._lexer.advance(),o.value){case"true":return{kind:O.BOOLEAN,value:!0,loc:this.loc(o)};case"false":return{kind:O.BOOLEAN,value:!1,loc:this.loc(o)};case"null":return{kind:O.NULL,loc:this.loc(o)};default:return{kind:O.ENUM,value:o.value,loc:this.loc(o)}}case C.DOLLAR:if(!r)return this.parseVariable()}throw this.unexpected()},r.parseStringLiteral=function parseStringLiteral(){var r=this._lexer.token;return this._lexer.advance(),{kind:O.STRING,value:r.value,block:r.kind===C.BLOCK_STRING,loc:this.loc(r)}},r.parseList=function parseList(r){var o=this,i=this._lexer.token;return{kind:O.LIST,values:this.any(C.BRACKET_L,(function item(){return o.parseValueLiteral(r)}),C.BRACKET_R),loc:this.loc(i)}},r.parseObject=function parseObject(r){var o=this,i=this._lexer.token;return{kind:O.OBJECT,fields:this.any(C.BRACE_L,(function item(){return o.parseObjectField(r)}),C.BRACE_R),loc:this.loc(i)}},r.parseObjectField=function parseObjectField(r){var o=this._lexer.token,i=this.parseName();return this.expectToken(C.COLON),{kind:O.OBJECT_FIELD,name:i,value:this.parseValueLiteral(r),loc:this.loc(o)}},r.parseDirectives=function parseDirectives(r){for(var o=[];this.peek(C.AT);)o.push(this.parseDirective(r));return o},r.parseDirective=function parseDirective(r){var o=this._lexer.token;return this.expectToken(C.AT),{kind:O.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(r),loc:this.loc(o)}},r.parseTypeReference=function parseTypeReference(){var r,o=this._lexer.token;return this.expectOptionalToken(C.BRACKET_L)?(r=this.parseTypeReference(),this.expectToken(C.BRACKET_R),r={kind:O.LIST_TYPE,type:r,loc:this.loc(o)}):r=this.parseNamedType(),this.expectOptionalToken(C.BANG)?{kind:O.NON_NULL_TYPE,type:r,loc:this.loc(o)}:r},r.parseNamedType=function parseNamedType(){var r=this._lexer.token;return{kind:O.NAMED_TYPE,name:this.parseName(),loc:this.loc(r)}},r.parseTypeSystemDefinition=function parseTypeSystemDefinition(){var r=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(r.kind===C.NAME)switch(r.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(r)},r.peekDescription=function peekDescription(){return this.peek(C.STRING)||this.peek(C.BLOCK_STRING)},r.parseDescription=function parseDescription(){if(this.peekDescription())return this.parseStringLiteral()},r.parseSchemaDefinition=function parseSchemaDefinition(){var r=this._lexer.token,o=this.parseDescription();this.expectKeyword("schema");var i=this.parseDirectives(!0),a=this.many(C.BRACE_L,this.parseOperationTypeDefinition,C.BRACE_R);return{kind:O.SCHEMA_DEFINITION,description:o,directives:i,operationTypes:a,loc:this.loc(r)}},r.parseOperationTypeDefinition=function parseOperationTypeDefinition(){var r=this._lexer.token,o=this.parseOperationType();this.expectToken(C.COLON);var i=this.parseNamedType();return{kind:O.OPERATION_TYPE_DEFINITION,operation:o,type:i,loc:this.loc(r)}},r.parseScalarTypeDefinition=function parseScalarTypeDefinition(){var r=this._lexer.token,o=this.parseDescription();this.expectKeyword("scalar");var i=this.parseName(),a=this.parseDirectives(!0);return{kind:O.SCALAR_TYPE_DEFINITION,description:o,name:i,directives:a,loc:this.loc(r)}},r.parseObjectTypeDefinition=function parseObjectTypeDefinition(){var r=this._lexer.token,o=this.parseDescription();this.expectKeyword("type");var i=this.parseName(),a=this.parseImplementsInterfaces(),c=this.parseDirectives(!0),u=this.parseFieldsDefinition();return{kind:O.OBJECT_TYPE_DEFINITION,description:o,name:i,interfaces:a,directives:c,fields:u,loc:this.loc(r)}},r.parseImplementsInterfaces=function parseImplementsInterfaces(){var r;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(r=this._options)||void 0===r?void 0:r.allowLegacySDLImplementsInterfaces)){var o=[];this.expectOptionalToken(C.AMP);do{o.push(this.parseNamedType())}while(this.expectOptionalToken(C.AMP)||this.peek(C.NAME));return o}return this.delimitedMany(C.AMP,this.parseNamedType)},r.parseFieldsDefinition=function parseFieldsDefinition(){var r;return!0===(null===(r=this._options)||void 0===r?void 0:r.allowLegacySDLEmptyFields)&&this.peek(C.BRACE_L)&&this._lexer.lookahead().kind===C.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(C.BRACE_L,this.parseFieldDefinition,C.BRACE_R)},r.parseFieldDefinition=function parseFieldDefinition(){var r=this._lexer.token,o=this.parseDescription(),i=this.parseName(),a=this.parseArgumentDefs();this.expectToken(C.COLON);var c=this.parseTypeReference(),u=this.parseDirectives(!0);return{kind:O.FIELD_DEFINITION,description:o,name:i,arguments:a,type:c,directives:u,loc:this.loc(r)}},r.parseArgumentDefs=function parseArgumentDefs(){return this.optionalMany(C.PAREN_L,this.parseInputValueDef,C.PAREN_R)},r.parseInputValueDef=function parseInputValueDef(){var r=this._lexer.token,o=this.parseDescription(),i=this.parseName();this.expectToken(C.COLON);var a,c=this.parseTypeReference();this.expectOptionalToken(C.EQUALS)&&(a=this.parseValueLiteral(!0));var u=this.parseDirectives(!0);return{kind:O.INPUT_VALUE_DEFINITION,description:o,name:i,type:c,defaultValue:a,directives:u,loc:this.loc(r)}},r.parseInterfaceTypeDefinition=function parseInterfaceTypeDefinition(){var r=this._lexer.token,o=this.parseDescription();this.expectKeyword("interface");var i=this.parseName(),a=this.parseImplementsInterfaces(),c=this.parseDirectives(!0),u=this.parseFieldsDefinition();return{kind:O.INTERFACE_TYPE_DEFINITION,description:o,name:i,interfaces:a,directives:c,fields:u,loc:this.loc(r)}},r.parseUnionTypeDefinition=function parseUnionTypeDefinition(){var r=this._lexer.token,o=this.parseDescription();this.expectKeyword("union");var i=this.parseName(),a=this.parseDirectives(!0),c=this.parseUnionMemberTypes();return{kind:O.UNION_TYPE_DEFINITION,description:o,name:i,directives:a,types:c,loc:this.loc(r)}},r.parseUnionMemberTypes=function parseUnionMemberTypes(){return this.expectOptionalToken(C.EQUALS)?this.delimitedMany(C.PIPE,this.parseNamedType):[]},r.parseEnumTypeDefinition=function parseEnumTypeDefinition(){var r=this._lexer.token,o=this.parseDescription();this.expectKeyword("enum");var i=this.parseName(),a=this.parseDirectives(!0),c=this.parseEnumValuesDefinition();return{kind:O.ENUM_TYPE_DEFINITION,description:o,name:i,directives:a,values:c,loc:this.loc(r)}},r.parseEnumValuesDefinition=function parseEnumValuesDefinition(){return this.optionalMany(C.BRACE_L,this.parseEnumValueDefinition,C.BRACE_R)},r.parseEnumValueDefinition=function parseEnumValueDefinition(){var r=this._lexer.token,o=this.parseDescription(),i=this.parseName(),a=this.parseDirectives(!0);return{kind:O.ENUM_VALUE_DEFINITION,description:o,name:i,directives:a,loc:this.loc(r)}},r.parseInputObjectTypeDefinition=function parseInputObjectTypeDefinition(){var r=this._lexer.token,o=this.parseDescription();this.expectKeyword("input");var i=this.parseName(),a=this.parseDirectives(!0),c=this.parseInputFieldsDefinition();return{kind:O.INPUT_OBJECT_TYPE_DEFINITION,description:o,name:i,directives:a,fields:c,loc:this.loc(r)}},r.parseInputFieldsDefinition=function parseInputFieldsDefinition(){return this.optionalMany(C.BRACE_L,this.parseInputValueDef,C.BRACE_R)},r.parseTypeSystemExtension=function parseTypeSystemExtension(){var r=this._lexer.lookahead();if(r.kind===C.NAME)switch(r.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(r)},r.parseSchemaExtension=function parseSchemaExtension(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var o=this.parseDirectives(!0),i=this.optionalMany(C.BRACE_L,this.parseOperationTypeDefinition,C.BRACE_R);if(0===o.length&&0===i.length)throw this.unexpected();return{kind:O.SCHEMA_EXTENSION,directives:o,operationTypes:i,loc:this.loc(r)}},r.parseScalarTypeExtension=function parseScalarTypeExtension(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var o=this.parseName(),i=this.parseDirectives(!0);if(0===i.length)throw this.unexpected();return{kind:O.SCALAR_TYPE_EXTENSION,name:o,directives:i,loc:this.loc(r)}},r.parseObjectTypeExtension=function parseObjectTypeExtension(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var o=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseDirectives(!0),c=this.parseFieldsDefinition();if(0===i.length&&0===a.length&&0===c.length)throw this.unexpected();return{kind:O.OBJECT_TYPE_EXTENSION,name:o,interfaces:i,directives:a,fields:c,loc:this.loc(r)}},r.parseInterfaceTypeExtension=function parseInterfaceTypeExtension(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var o=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseDirectives(!0),c=this.parseFieldsDefinition();if(0===i.length&&0===a.length&&0===c.length)throw this.unexpected();return{kind:O.INTERFACE_TYPE_EXTENSION,name:o,interfaces:i,directives:a,fields:c,loc:this.loc(r)}},r.parseUnionTypeExtension=function parseUnionTypeExtension(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var o=this.parseName(),i=this.parseDirectives(!0),a=this.parseUnionMemberTypes();if(0===i.length&&0===a.length)throw this.unexpected();return{kind:O.UNION_TYPE_EXTENSION,name:o,directives:i,types:a,loc:this.loc(r)}},r.parseEnumTypeExtension=function parseEnumTypeExtension(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var o=this.parseName(),i=this.parseDirectives(!0),a=this.parseEnumValuesDefinition();if(0===i.length&&0===a.length)throw this.unexpected();return{kind:O.ENUM_TYPE_EXTENSION,name:o,directives:i,values:a,loc:this.loc(r)}},r.parseInputObjectTypeExtension=function parseInputObjectTypeExtension(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var o=this.parseName(),i=this.parseDirectives(!0),a=this.parseInputFieldsDefinition();if(0===i.length&&0===a.length)throw this.unexpected();return{kind:O.INPUT_OBJECT_TYPE_EXTENSION,name:o,directives:i,fields:a,loc:this.loc(r)}},r.parseDirectiveDefinition=function parseDirectiveDefinition(){var r=this._lexer.token,o=this.parseDescription();this.expectKeyword("directive"),this.expectToken(C.AT);var i=this.parseName(),a=this.parseArgumentDefs(),c=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var u=this.parseDirectiveLocations();return{kind:O.DIRECTIVE_DEFINITION,description:o,name:i,arguments:a,repeatable:c,locations:u,loc:this.loc(r)}},r.parseDirectiveLocations=function parseDirectiveLocations(){return this.delimitedMany(C.PIPE,this.parseDirectiveLocation)},r.parseDirectiveLocation=function parseDirectiveLocation(){var r=this._lexer.token,o=this.parseName();if(void 0!==I[o.value])return o;throw this.unexpected(r)},r.loc=function loc(r){var o;if(!0!==(null===(o=this._options)||void 0===o?void 0:o.noLocation))return new k(r,this._lexer.lastToken,this._lexer.source)},r.peek=function peek(r){return this._lexer.token.kind===r},r.expectToken=function expectToken(r){var o=this._lexer.token;if(o.kind===r)return this._lexer.advance(),o;throw syntaxError(this._lexer.source,o.start,"Expected ".concat(getTokenKindDesc(r),", found ").concat(getTokenDesc(o),"."))},r.expectOptionalToken=function expectOptionalToken(r){var o=this._lexer.token;if(o.kind===r)return this._lexer.advance(),o},r.expectKeyword=function expectKeyword(r){var o=this._lexer.token;if(o.kind!==C.NAME||o.value!==r)throw syntaxError(this._lexer.source,o.start,'Expected "'.concat(r,'", found ').concat(getTokenDesc(o),"."));this._lexer.advance()},r.expectOptionalKeyword=function expectOptionalKeyword(r){var o=this._lexer.token;return o.kind===C.NAME&&o.value===r&&(this._lexer.advance(),!0)},r.unexpected=function unexpected(r){var o=null!==r&&void 0!==r?r:this._lexer.token;return syntaxError(this._lexer.source,o.start,"Unexpected ".concat(getTokenDesc(o),"."))},r.any=function any(r,o,i){this.expectToken(r);for(var a=[];!this.expectOptionalToken(i);)a.push(o.call(this));return a},r.optionalMany=function optionalMany(r,o,i){if(this.expectOptionalToken(r)){var a=[];do{a.push(o.call(this))}while(!this.expectOptionalToken(i));return a}return[]},r.many=function many(r,o,i){this.expectToken(r);var a=[];do{a.push(o.call(this))}while(!this.expectOptionalToken(i));return a},r.delimitedMany=function delimitedMany(r,o){this.expectOptionalToken(r);var i=[];do{i.push(o.call(this))}while(this.expectOptionalToken(r));return i},Parser}();function getTokenDesc(r){var o=r.value;return getTokenKindDesc(r.kind)+(null!=o?' "'.concat(o,'"'):"")}function getTokenKindDesc(r){return function isPunctuatorTokenKind(r){return r===C.BANG||r===C.DOLLAR||r===C.AMP||r===C.PAREN_L||r===C.PAREN_R||r===C.SPREAD||r===C.COLON||r===C.EQUALS||r===C.AT||r===C.BRACKET_L||r===C.BRACKET_R||r===C.BRACE_L||r===C.PIPE||r===C.BRACE_R}(r)?'"'.concat(r,'"'):r}function lib_typeof(r){return(lib_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(r){return typeof r}:function _typeof(r){return r&&"function"===typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}var R=new Map,P=new Map,j=!0,M=!1;function normalize(r){return r.replace(/[\s,]+/g," ").trim()}function processFragments(r){var o=new Set,i=[];return r.definitions.forEach((function(r){if("FragmentDefinition"===r.kind){var a=r.name.value,c=function cacheKeyFromLoc(r){return normalize(r.source.body.substring(r.start,r.end))}(r.loc),u=P.get(a);u&&!u.has(c)?j&&console.warn("Warning: fragment with name "+a+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):u||P.set(a,u=new Set),u.add(c),o.has(c)||(o.add(c),i.push(r))}else i.push(r)})),E(E({},r),{definitions:i})}function parseDocument(r){var o=normalize(r);if(!R.has(o)){var i=function parse(r,o){return new L(r,o).parseDocument()}(r,{experimentalFragmentVariables:M});if(!i||"Document"!==i.kind)throw new Error("Not a valid GraphQL document.");R.set(o,function stripLoc(r){var o=new Set(r.definitions);o.forEach((function(r){r.loc&&delete r.loc,Object.keys(r).forEach((function(i){var a=r[i];a&&"object"===lib_typeof(a)&&o.add(a)}))}));var i=r.loc;return i&&(delete i.startToken,delete i.endToken),r}(processFragments(i)))}return R.get(o)}function gql(r){for(var o=[],i=1;ithis.max;)this.delete(this.oldest.key)},Cache.prototype.delete=function(r){var o=this.map.get(r);return!!o&&(o===this.newest&&(this.newest=o.older),o===this.oldest&&(this.oldest=o.newer),o.newer&&(o.newer.older=o.older),o.older&&(o.older.newer=o.newer),this.map.delete(r),this.dispose(o.value,r),!0)},Cache}(),ie=new ne,ae=Object.prototype.hasOwnProperty,se=void 0===(re=Array.from)?function(r){var o=[];return r.forEach((function(r){return o.push(r)})),o}:re;function maybeUnsubscribe(r){var o=r.unsubscribe;"function"===typeof o&&(r.unsubscribe=void 0,o())}var ce=[];function assert(r,o){if(!r)throw new Error(o||"assertion failure")}function valueGet(r){switch(r.length){case 0:throw new Error("unknown value");case 1:return r[0];case 2:throw r[1]}}var ue=function(){function Entry(r){this.fn=r,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Entry.count}return Entry.prototype.peek=function(){if(1===this.value.length&&!mightBeDirty(this))return rememberParent(this),this.value[0]},Entry.prototype.recompute=function(r){return assert(!this.recomputing,"already recomputing"),rememberParent(this),mightBeDirty(this)?function reallyRecompute(r,o){forgetChildren(r),ie.withValue(r,recomputeNewValue,[r,o]),function maybeSubscribe(r,o){if("function"===typeof r.subscribe)try{maybeUnsubscribe(r),r.unsubscribe=r.subscribe.apply(null,o)}catch(i){return r.setDirty(),!1}return!0}(r,o)&&function setClean(r){if(r.dirty=!1,mightBeDirty(r))return;reportClean(r)}(r);return valueGet(r.value)}(this,r):valueGet(this.value)},Entry.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,reportDirty(this),maybeUnsubscribe(this))},Entry.prototype.dispose=function(){var r=this;this.setDirty(),forgetChildren(this),eachParent(this,(function(o,i){o.setDirty(),forgetChild(o,r)}))},Entry.prototype.forget=function(){this.dispose()},Entry.prototype.dependOn=function(r){r.add(this),this.deps||(this.deps=ce.pop()||new Set),this.deps.add(r)},Entry.prototype.forgetDeps=function(){var r=this;this.deps&&(se(this.deps).forEach((function(o){return o.delete(r)})),this.deps.clear(),ce.push(this.deps),this.deps=null)},Entry.count=0,Entry}();function rememberParent(r){var o=ie.getValue();if(o)return r.parents.add(o),o.childValues.has(r)||o.childValues.set(r,[]),mightBeDirty(r)?reportDirtyChild(o,r):reportCleanChild(o,r),o}function recomputeNewValue(r,o){r.recomputing=!0,r.value.length=0;try{r.value[0]=r.fn.apply(null,o)}catch(i){r.value[1]=i}r.recomputing=!1}function mightBeDirty(r){return r.dirty||!(!r.dirtyChildren||!r.dirtyChildren.size)}function reportDirty(r){eachParent(r,reportDirtyChild)}function reportClean(r){eachParent(r,reportCleanChild)}function eachParent(r,o){var i=r.parents.size;if(i)for(var a=se(r.parents),c=0;c0&&i===o.length&&r[i-1]===o[i-1]}(i,o.value)||r.setDirty(),removeDirtyChild(r,o),mightBeDirty(r)||reportClean(r)}function removeDirtyChild(r,o){var i=r.dirtyChildren;i&&(i.delete(o),0===i.size&&(ce.length<100&&ce.push(i),r.dirtyChildren=null))}function forgetChildren(r){r.childValues.size>0&&r.childValues.forEach((function(o,i){forgetChild(r,i)})),r.forgetDeps(),assert(null===r.dirtyChildren)}function forgetChild(r,o){o.parents.delete(r),r.childValues.delete(o),removeDirtyChild(r,o)}var le={setDirty:!0,dispose:!0,forget:!0};function dep(r){var o=new Map,i=r&&r.subscribe;function depend(r){var a=ie.getValue();if(a){var c=o.get(r);c||o.set(r,c=new Set),a.dependOn(c),"function"===typeof i&&(maybeUnsubscribe(c),c.unsubscribe=i(r))}}return depend.dirty=function dirty(r,i){var a=o.get(r);if(a){var c=i&&ae.call(le,i)?i:"setDirty";se(a).forEach((function(r){return r[c]()})),o.delete(r),maybeUnsubscribe(a)}},depend}function makeDefaultMakeCacheKeyFunction(){var r=new Y("function"===typeof WeakMap);return function(){return r.lookupArray(arguments)}}makeDefaultMakeCacheKeyFunction();var pe=new Set;function wrap(r,o){void 0===o&&(o=Object.create(null));var i=new oe(o.max||Math.pow(2,16),(function(r){return r.dispose()})),a=o.keyArgs,c=o.makeCacheKey||makeDefaultMakeCacheKeyFunction(),u=function optimistic(){var u=c.apply(null,a?a.apply(null,arguments):arguments);if(void 0===u)return r.apply(null,arguments);var l=i.get(u);l||(i.set(u,l=new ue(r)),l.subscribe=o.subscribe,l.forget=function(){return i.delete(u)});var p=l.recompute(Array.prototype.slice.call(arguments));return i.set(u,l),pe.add(i),ie.hasValue()||(pe.forEach((function(r){return r.clean()})),pe.clear()),p};function dirtyKey(r){var o=i.get(r);o&&o.setDirty()}function peekKey(r){var o=i.get(r);if(o)return o.peek()}function forgetKey(r){return i.delete(r)}return Object.defineProperty(u,"size",{get:function get(){return i.map.size},configurable:!1,enumerable:!1}),u.dirtyKey=dirtyKey,u.dirty=function dirty(){dirtyKey(c.apply(null,arguments))},u.peekKey=peekKey,u.peek=function peek(){return peekKey(c.apply(null,arguments))},u.forgetKey=forgetKey,u.forget=function forget(){return forgetKey(c.apply(null,arguments))},u.makeCacheKey=c,u.getKey=a?function getKey(){return c.apply(null,a.apply(null,arguments))}:c,Object.freeze(u)}var fe=Object.prototype,de=fe.toString,he=fe.hasOwnProperty,me=Function.prototype.toString,ye=new Map;function equal(r,o){try{return check(r,o)}finally{ye.clear()}}function check(r,o){if(r===o)return!0;var i=de.call(r);if(i!==de.call(o))return!1;switch(i){case"[object Array]":if(r.length!==o.length)return!1;case"[object Object]":if(previouslyCompared(r,o))return!0;var a=definedKeys(r),c=definedKeys(o),u=a.length;if(u!==c.length)return!1;for(var l=0;l=0&&r.indexOf(o,i)===i}(b,ve)}return!1}function definedKeys(r){return Object.keys(r).filter(isDefinedKey,r)}function isDefinedKey(r){return void 0!==this[r]}var ve="{ [native code] }";function previouslyCompared(r,o){var i=ye.get(r);if(i){if(i.has(o))return!0}else ye.set(r,i=new Set);return i.add(o),!1}var ge="Invariant Violation",_e=Object.setPrototypeOf,be=void 0===_e?function(r,o){return r.__proto__=o,r}:_e,Ee=function(r){function InvariantError(o){void 0===o&&(o=ge);var i=r.call(this,"number"===typeof o?ge+": "+o+" (see https://github.com/apollographql/invariant-packages)":o)||this;return i.framesToPop=1,i.name=ge,be(i,InvariantError.prototype),i}return __extends(InvariantError,r),InvariantError}(Error);function invariant_esm_invariant(r,o){if(!r)throw new Ee(o)}var we=["debug","log","warn","error","silent"],Se=we.indexOf("log");function wrapConsoleMethod(r){return function(){if(we.indexOf(r)>=Se){var o=console[r]||console.log;return o.apply(console,arguments)}}}!function(r){r.debug=wrapConsoleMethod("debug"),r.log=wrapConsoleMethod("log"),r.warn=wrapConsoleMethod("warn"),r.error=wrapConsoleMethod("error")}(invariant_esm_invariant||(invariant_esm_invariant={}));function getFragmentQueryDocument(r,o){var i=o,a=[];return r.definitions.forEach((function(r){if("OperationDefinition"===r.kind)throw __DEV__?new Ee("Found a "+r.operation+" operation"+(r.name?" named '"+r.name.value+"'":"")+". No operations are allowed when using a fragment as a query. Only fragments are allowed."):new Ee(47);"FragmentDefinition"===r.kind&&a.push(r)})),"undefined"===typeof i&&(__DEV__?invariant_esm_invariant(1===a.length,"Found "+a.length+" fragments. `fragmentName` must be provided when there is not exactly 1 fragment."):invariant_esm_invariant(1===a.length,48),i=a[0].name.value),E(E({},r),{definitions:__spreadArray([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:i}}]}}],r.definitions)})}function createFragmentMap(r){void 0===r&&(r=[]);var o={};return r.forEach((function(r){o[r.name.value]=r})),o}function getFragmentFromSelection(r,o){switch(r.kind){case"InlineFragment":return r;case"FragmentSpread":var i=o&&o[r.name.value];return __DEV__?invariant_esm_invariant(i,"No fragment named "+r.name.value+"."):invariant_esm_invariant(i,49),i;default:return null}}var Oe=function(){function ApolloCache(){this.getFragmentDoc=wrap(getFragmentQueryDocument)}return ApolloCache.prototype.batch=function(r){var o="string"===typeof r.optimistic?r.optimistic:!1===r.optimistic?null:void 0;this.performTransaction(r.update,o)},ApolloCache.prototype.recordOptimisticTransaction=function(r,o){this.performTransaction(r,o)},ApolloCache.prototype.transformDocument=function(r){return r},ApolloCache.prototype.identify=function(r){},ApolloCache.prototype.gc=function(){return[]},ApolloCache.prototype.modify=function(r){return!1},ApolloCache.prototype.transformForLink=function(r){return r},ApolloCache.prototype.readQuery=function(r,o){return void 0===o&&(o=!!r.optimistic),this.read(E(E({},r),{rootId:r.id||"ROOT_QUERY",optimistic:o}))},ApolloCache.prototype.readFragment=function(r,o){return void 0===o&&(o=!!r.optimistic),this.read(E(E({},r),{query:this.getFragmentDoc(r.fragment,r.fragmentName),rootId:r.id,optimistic:o}))},ApolloCache.prototype.writeQuery=function(r){var o=r.id,i=r.data,a=__rest(r,["id","data"]);return this.write(Object.assign(a,{dataId:o||"ROOT_QUERY",result:i}))},ApolloCache.prototype.writeFragment=function(r){var o=r.id,i=r.data,a=r.fragment,c=r.fragmentName,u=__rest(r,["id","data","fragment","fragmentName"]);return this.write(Object.assign(u,{query:this.getFragmentDoc(a,c),dataId:o,result:i}))},ApolloCache}(),Te=function(r){function MissingFieldError(o,i,a,c){var u=r.call(this,o)||this;return u.message=o,u.path=i,u.query=a,u.variables=c,u.__proto__=MissingFieldError.prototype,u}return __extends(MissingFieldError,r),MissingFieldError}(Error);function objects_typeof(r){return(objects_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(r){return typeof r}:function _typeof(r){return r&&"function"===typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function isNonNullObject(r){return null!==r&&"object"===objects_typeof(r)}function storeUtils_typeof(r){return(storeUtils_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(r){return typeof r}:function _typeof(r){return r&&"function"===typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function makeReference(r){return{__ref:String(r)}}function isReference(r){return Boolean(r&&"object"===storeUtils_typeof(r)&&"string"===typeof r.__ref)}function valueToObjectRepresentation(r,o,i,a){if(function isIntValue(r){return"IntValue"===r.kind}(i)||function isFloatValue(r){return"FloatValue"===r.kind}(i))r[o.value]=Number(i.value);else if(function isBooleanValue(r){return"BooleanValue"===r.kind}(i)||function isStringValue(r){return"StringValue"===r.kind}(i))r[o.value]=i.value;else if(function isObjectValue(r){return"ObjectValue"===r.kind}(i)){var c={};i.fields.map((function(r){return valueToObjectRepresentation(c,r.name,r.value,a)})),r[o.value]=c}else if(function isVariable(r){return"Variable"===r.kind}(i)){var u=(a||{})[i.name.value];r[o.value]=u}else if(function isListValue(r){return"ListValue"===r.kind}(i))r[o.value]=i.values.map((function(r){var i={};return valueToObjectRepresentation(i,o,r,a),i[o.value]}));else if(function isEnumValue(r){return"EnumValue"===r.kind}(i))r[o.value]=i.value;else{if(!function isNullValue(r){return"NullValue"===r.kind}(i))throw __DEV__?new Ee('The inline argument "'+o.value+'" of kind "'+i.kind+'"is not supported. Use variables instead of inline arguments to overcome this limitation.'):new Ee(58);r[o.value]=null}}var ke=["connection","include","skip","client","rest","export"],Ae=Object.assign((function(r,o,i){if(o&&i&&i.connection&&i.connection.key){if(i.connection.filter&&i.connection.filter.length>0){var a=i.connection.filter?i.connection.filter:[];a.sort();var c={};return a.forEach((function(r){c[r]=o[r]})),i.connection.key+"("+Ce(c)+")"}return i.connection.key}var u=r;if(o){var l=Ce(o);u+="("+l+")"}return i&&Object.keys(i).forEach((function(r){-1===ke.indexOf(r)&&(i[r]&&Object.keys(i[r]).length?u+="@"+r+"("+Ce(i[r])+")":u+="@"+r)})),u}),{setStringify:function setStringify(r){var o=Ce;return Ce=r,o}}),Ce=function defaultStringify(r){return JSON.stringify(r,stringifyReplacer)};function stringifyReplacer(r,o){return isNonNullObject(o)&&!Array.isArray(o)&&(o=Object.keys(o).sort().reduce((function(r,i){return r[i]=o[i],r}),{})),o}function argumentsObjectFromField(r,o){if(r.arguments&&r.arguments.length){var i={};return r.arguments.forEach((function(r){var a=r.name,c=r.value;return valueToObjectRepresentation(i,a,c,o)})),i}return null}function resultKeyNameFromField(r){return r.alias?r.alias.value:r.name.value}function getTypenameFromResult(r,o,i){if("string"===typeof r.__typename)return r.__typename;for(var a=0,c=o.selections;a2&&void 0!==arguments[2]?arguments[2]:Ne,a=void 0,c=Array.isArray(r),u=[r],l=-1,p=[],d=void 0,h=void 0,m=void 0,y=[],v=[],g=r;do{var _=++l===u.length,b=_&&0!==p.length;if(_){if(h=0===v.length?void 0:y[y.length-1],d=m,m=v.pop(),b){if(c)d=d.slice();else{for(var E={},w=0,S=Object.keys(d);w-1}))}function hasClientExports(r){return r&&hasDirectives(["client"],r)&&hasDirectives(["export"],r)}var je=Object.prototype.hasOwnProperty;function mergeDeep(){for(var r=[],o=0;o1)for(var a=new Fe,c=1;c0);var p=0;do{++a,p=10*p+u-We,u=o.charCodeAt(a)}while(isDigit(u)&&p>0);if(lp)return 1}else{if(cu)return 1;++i,++a}}return r.length-o.length}(r,o)}))}var ze=function(){function LexicalDistance(r){this._input=r,this._inputLowerCase=r.toLowerCase(),this._inputArray=stringToArray(this._inputLowerCase),this._rows=[new Array(r.length+1).fill(0),new Array(r.length+1).fill(0),new Array(r.length+1).fill(0)]}return LexicalDistance.prototype.measure=function measure(r,o){if(this._input===r)return 0;var i=r.toLowerCase();if(this._inputLowerCase===i)return 1;var a=stringToArray(i),c=this._inputArray;if(a.lengtho)){for(var d=this._rows,h=0;h<=p;h++)d[0][h]=h;for(var m=1;m<=l;m++){for(var y=d[(m-1)%3],v=d[m%3],g=v[0]=m,_=1;_<=p;_++){var b=a[m-1]===c[_-1]?0:1,E=Math.min(y[_]+1,v[_-1]+1,y[_-1]+b);if(m>1&&_>1&&a[m-1]===c[_-2]&&a[m-2]===c[_-1]){var w=d[(m-2)%3][_-2];E=Math.min(E,w+1)}Eo)return}var S=d[l%3][p];return S<=o?S:void 0}},LexicalDistance}();function stringToArray(r){for(var o=r.length,i=new Array(o),a=0;a80&&(p=l+printer_wrap("(\n",indent(join(a,"\n")),"\n)")),join([p,join(c," "),u]," ")},Argument:function Argument(r){return r.name+": "+r.value},FragmentSpread:function FragmentSpread(r){return"..."+r.name+printer_wrap(" ",join(r.directives," "))},InlineFragment:function InlineFragment(r){var o=r.typeCondition,i=r.directives,a=r.selectionSet;return join(["...",printer_wrap("on ",o),join(i," "),a]," ")},FragmentDefinition:function FragmentDefinition(r){var o=r.name,i=r.typeCondition,a=r.variableDefinitions,c=r.directives,u=r.selectionSet;return"fragment ".concat(o).concat(printer_wrap("(",join(a,", "),")")," ")+"on ".concat(i," ").concat(printer_wrap("",join(c," ")," "))+u},IntValue:function IntValue(r){return r.value},FloatValue:function FloatValue(r){return r.value},StringValue:function StringValue(r,o){var i=r.value;return r.block?function printBlockString(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=-1===r.indexOf("\n"),c=" "===r[0]||"\t"===r[0],u='"'===r[r.length-1],l="\\"===r[r.length-1],p=!a||u||l||i,d="";return!p||a&&c||(d+="\n"+o),d+=o?r.replace(/\n/g,"\n"+o):r,p&&(d+="\n"),'"""'+d.replace(/"""/g,'\\"""')+'"""'}(i,"description"===o?"":" "):JSON.stringify(i)},BooleanValue:function BooleanValue(r){return r.value?"true":"false"},NullValue:function NullValue(){return"null"},EnumValue:function EnumValue(r){return r.value},ListValue:function ListValue(r){return"["+join(r.values,", ")+"]"},ObjectValue:function ObjectValue(r){return"{"+join(r.fields,", ")+"}"},ObjectField:function ObjectField(r){return r.name+": "+r.value},Directive:function Directive(r){return"@"+r.name+printer_wrap("(",join(r.arguments,", "),")")},NamedType:function NamedType(r){return r.name},ListType:function ListType(r){return"["+r.type+"]"},NonNullType:function NonNullType(r){return r.type+"!"},SchemaDefinition:addDescription((function(r){var o=r.directives,i=r.operationTypes;return join(["schema",join(o," "),block(i)]," ")})),OperationTypeDefinition:function OperationTypeDefinition(r){return r.operation+": "+r.type},ScalarTypeDefinition:addDescription((function(r){return join(["scalar",r.name,join(r.directives," ")]," ")})),ObjectTypeDefinition:addDescription((function(r){var o=r.name,i=r.interfaces,a=r.directives,c=r.fields;return join(["type",o,printer_wrap("implements ",join(i," & ")),join(a," "),block(c)]," ")})),FieldDefinition:addDescription((function(r){var o=r.name,i=r.arguments,a=r.type,c=r.directives;return o+(hasMultilineItems(i)?printer_wrap("(\n",indent(join(i,"\n")),"\n)"):printer_wrap("(",join(i,", "),")"))+": "+a+printer_wrap(" ",join(c," "))})),InputValueDefinition:addDescription((function(r){var o=r.name,i=r.type,a=r.defaultValue,c=r.directives;return join([o+": "+i,printer_wrap("= ",a),join(c," ")]," ")})),InterfaceTypeDefinition:addDescription((function(r){var o=r.name,i=r.interfaces,a=r.directives,c=r.fields;return join(["interface",o,printer_wrap("implements ",join(i," & ")),join(a," "),block(c)]," ")})),UnionTypeDefinition:addDescription((function(r){var o=r.name,i=r.directives,a=r.types;return join(["union",o,join(i," "),a&&0!==a.length?"= "+join(a," | "):""]," ")})),EnumTypeDefinition:addDescription((function(r){var o=r.name,i=r.directives,a=r.values;return join(["enum",o,join(i," "),block(a)]," ")})),EnumValueDefinition:addDescription((function(r){return join([r.name,join(r.directives," ")]," ")})),InputObjectTypeDefinition:addDescription((function(r){var o=r.name,i=r.directives,a=r.fields;return join(["input",o,join(i," "),block(a)]," ")})),DirectiveDefinition:addDescription((function(r){var o=r.name,i=r.arguments,a=r.repeatable,c=r.locations;return"directive @"+o+(hasMultilineItems(i)?printer_wrap("(\n",indent(join(i,"\n")),"\n)"):printer_wrap("(",join(i,", "),")"))+(a?" repeatable":"")+" on "+join(c," | ")})),SchemaExtension:function SchemaExtension(r){var o=r.directives,i=r.operationTypes;return join(["extend schema",join(o," "),block(i)]," ")},ScalarTypeExtension:function ScalarTypeExtension(r){return join(["extend scalar",r.name,join(r.directives," ")]," ")},ObjectTypeExtension:function ObjectTypeExtension(r){var o=r.name,i=r.interfaces,a=r.directives,c=r.fields;return join(["extend type",o,printer_wrap("implements ",join(i," & ")),join(a," "),block(c)]," ")},InterfaceTypeExtension:function InterfaceTypeExtension(r){var o=r.name,i=r.interfaces,a=r.directives,c=r.fields;return join(["extend interface",o,printer_wrap("implements ",join(i," & ")),join(a," "),block(c)]," ")},UnionTypeExtension:function UnionTypeExtension(r){var o=r.name,i=r.directives,a=r.types;return join(["extend union",o,join(i," "),a&&0!==a.length?"= "+join(a," | "):""]," ")},EnumTypeExtension:function EnumTypeExtension(r){var o=r.name,i=r.directives,a=r.values;return join(["extend enum",o,join(i," "),block(a)]," ")},InputObjectTypeExtension:function InputObjectTypeExtension(r){var o=r.name,i=r.directives,a=r.fields;return join(["extend input",o,join(i," "),block(a)]," ")}};function addDescription(r){return function(o){return join([o.description,r(o)],"\n")}}function join(r){var o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(o=null===r||void 0===r?void 0:r.filter((function(r){return r})).join(i))&&void 0!==o?o:""}function block(r){return printer_wrap("{\n",indent(join(r,"\n")),"\n}")}function printer_wrap(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=o&&""!==o?r+o+i:""}function indent(r){return printer_wrap(" ",r.replace(/\n/g,"\n "))}function isMultiline(r){return-1!==r.indexOf("\n")}function hasMultilineItems(r){return null!=r&&r.some(isMultiline)}function valueFromASTUntyped(r,o){switch(r.kind){case O.NULL:return null;case O.INT:return parseInt(r.value,10);case O.FLOAT:return parseFloat(r.value);case O.STRING:case O.ENUM:case O.BOOLEAN:return r.value;case O.LIST:return r.values.map((function(r){return valueFromASTUntyped(r,o)}));case O.OBJECT:return keyValMap(r.fields,(function(r){return r.name.value}),(function(r){return valueFromASTUntyped(r.value,o)}));case O.VARIABLE:return null===o||void 0===o?void 0:o[r.name.value]}invariant(0,"Unexpected value node: "+inspect_inspect(r))}function definition_defineProperties(r,o){for(var i=0;i0?r:void 0}GraphQLList.prototype.toString=function toString(){return"["+String(this.ofType)+"]"},GraphQLList.prototype.toJSON=function toJSON(){return this.toString()},Object.defineProperty(GraphQLList.prototype,w,{get:function get(){return"GraphQLList"}}),defineInspect(GraphQLList),GraphQLNonNull.prototype.toString=function toString(){return String(this.ofType)+"!"},GraphQLNonNull.prototype.toJSON=function toJSON(){return this.toString()},Object.defineProperty(GraphQLNonNull.prototype,w,{get:function get(){return"GraphQLNonNull"}}),defineInspect(GraphQLNonNull);var Ye=function(){function GraphQLScalarType(r){var o,i,a,c=null!==(o=r.parseValue)&&void 0!==o?o:identityFunc;this.name=r.name,this.description=r.description,this.specifiedByUrl=r.specifiedByUrl,this.serialize=null!==(i=r.serialize)&&void 0!==i?i:identityFunc,this.parseValue=c,this.parseLiteral=null!==(a=r.parseLiteral)&&void 0!==a?a:function(r,o){return c(valueFromASTUntyped(r,o))},this.extensions=r.extensions&&toObjMap(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=undefineIfEmpty(r.extensionASTNodes),"string"===typeof r.name||devAssert(0,"Must provide name."),null==r.specifiedByUrl||"string"===typeof r.specifiedByUrl||devAssert(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat(inspect_inspect(r.specifiedByUrl),".")),null==r.serialize||"function"===typeof r.serialize||devAssert(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),r.parseLiteral&&("function"===typeof r.parseValue&&"function"===typeof r.parseLiteral||devAssert(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var r=GraphQLScalarType.prototype;return r.toConfig=function toConfig(){var r;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(r=this.extensionASTNodes)&&void 0!==r?r:[]}},r.toString=function toString(){return this.name},r.toJSON=function toJSON(){return this.toString()},definition_createClass(GraphQLScalarType,[{key:w,get:function get(){return"GraphQLScalarType"}}]),GraphQLScalarType}();defineInspect(Ye);var Xe=function(){function GraphQLObjectType(r){this.name=r.name,this.description=r.description,this.isTypeOf=r.isTypeOf,this.extensions=r.extensions&&toObjMap(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=undefineIfEmpty(r.extensionASTNodes),this._fields=defineFieldMap.bind(void 0,r),this._interfaces=defineInterfaces.bind(void 0,r),"string"===typeof r.name||devAssert(0,"Must provide name."),null==r.isTypeOf||"function"===typeof r.isTypeOf||devAssert(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(inspect_inspect(r.isTypeOf),"."))}var r=GraphQLObjectType.prototype;return r.getFields=function getFields(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},r.getInterfaces=function getInterfaces(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},r.toConfig=function toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},r.toString=function toString(){return this.name},r.toJSON=function toJSON(){return this.toString()},definition_createClass(GraphQLObjectType,[{key:w,get:function get(){return"GraphQLObjectType"}}]),GraphQLObjectType}();function defineInterfaces(r){var o,i=null!==(o=resolveThunk(r.interfaces))&&void 0!==o?o:[];return Array.isArray(i)||devAssert(0,"".concat(r.name," interfaces must be an Array or a function which returns an Array.")),i}function defineFieldMap(r){var o=resolveThunk(r.fields);return isPlainObj(o)||devAssert(0,"".concat(r.name," fields must be an object with field names as keys or a function which returns such an object.")),mapValue(o,(function(o,i){var a;isPlainObj(o)||devAssert(0,"".concat(r.name,".").concat(i," field config must be an object.")),!("isDeprecated"in o)||devAssert(0,"".concat(r.name,".").concat(i,' should provide "deprecationReason" instead of "isDeprecated".')),null==o.resolve||"function"===typeof o.resolve||devAssert(0,"".concat(r.name,".").concat(i," field resolver must be a function if ")+"provided, but got: ".concat(inspect_inspect(o.resolve),"."));var c=null!==(a=o.args)&&void 0!==a?a:{};isPlainObj(c)||devAssert(0,"".concat(r.name,".").concat(i," args must be an object with argument names as keys."));var u=Ge(c).map((function(r){var o=r[0],i=r[1];return{name:o,description:i.description,type:i.type,defaultValue:i.defaultValue,deprecationReason:i.deprecationReason,extensions:i.extensions&&toObjMap(i.extensions),astNode:i.astNode}}));return{name:i,description:o.description,type:o.type,args:u,resolve:o.resolve,subscribe:o.subscribe,isDeprecated:null!=o.deprecationReason,deprecationReason:o.deprecationReason,extensions:o.extensions&&toObjMap(o.extensions),astNode:o.astNode}}))}function isPlainObj(r){return isObjectLike(r)&&!Array.isArray(r)}function fieldsToFieldsConfig(r){return mapValue(r,(function(r){return{description:r.description,type:r.type,args:(o=r.args,keyValMap(o,(function(r){return r.name}),(function(r){return{description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}}))),resolve:r.resolve,subscribe:r.subscribe,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode};var o}))}defineInspect(Xe);var Je=function(){function GraphQLInterfaceType(r){this.name=r.name,this.description=r.description,this.resolveType=r.resolveType,this.extensions=r.extensions&&toObjMap(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=undefineIfEmpty(r.extensionASTNodes),this._fields=defineFieldMap.bind(void 0,r),this._interfaces=defineInterfaces.bind(void 0,r),"string"===typeof r.name||devAssert(0,"Must provide name."),null==r.resolveType||"function"===typeof r.resolveType||devAssert(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(inspect_inspect(r.resolveType),"."))}var r=GraphQLInterfaceType.prototype;return r.getFields=function getFields(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},r.getInterfaces=function getInterfaces(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},r.toConfig=function toConfig(){var r;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(r=this.extensionASTNodes)&&void 0!==r?r:[]}},r.toString=function toString(){return this.name},r.toJSON=function toJSON(){return this.toString()},definition_createClass(GraphQLInterfaceType,[{key:w,get:function get(){return"GraphQLInterfaceType"}}]),GraphQLInterfaceType}();defineInspect(Je);var $e=function(){function GraphQLUnionType(r){this.name=r.name,this.description=r.description,this.resolveType=r.resolveType,this.extensions=r.extensions&&toObjMap(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=undefineIfEmpty(r.extensionASTNodes),this._types=defineTypes.bind(void 0,r),"string"===typeof r.name||devAssert(0,"Must provide name."),null==r.resolveType||"function"===typeof r.resolveType||devAssert(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(inspect_inspect(r.resolveType),"."))}var r=GraphQLUnionType.prototype;return r.getTypes=function getTypes(){return"function"===typeof this._types&&(this._types=this._types()),this._types},r.toConfig=function toConfig(){var r;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(r=this.extensionASTNodes)&&void 0!==r?r:[]}},r.toString=function toString(){return this.name},r.toJSON=function toJSON(){return this.toString()},definition_createClass(GraphQLUnionType,[{key:w,get:function get(){return"GraphQLUnionType"}}]),GraphQLUnionType}();function defineTypes(r){var o=resolveThunk(r.types);return Array.isArray(o)||devAssert(0,"Must provide Array of types or a function which returns such an array for Union ".concat(r.name,".")),o}defineInspect($e);var Ze=function(){function GraphQLEnumType(r){this.name=r.name,this.description=r.description,this.extensions=r.extensions&&toObjMap(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=undefineIfEmpty(r.extensionASTNodes),this._values=function defineEnumValues(r,o){return isPlainObj(o)||devAssert(0,"".concat(r," values must be an object with value names as keys.")),Ge(o).map((function(o){var i=o[0],a=o[1];return isPlainObj(a)||devAssert(0,"".concat(r,".").concat(i,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(inspect_inspect(a),".")),!("isDeprecated"in a)||devAssert(0,"".concat(r,".").concat(i,' should provide "deprecationReason" instead of "isDeprecated".')),{name:i,description:a.description,value:void 0!==a.value?a.value:i,isDeprecated:null!=a.deprecationReason,deprecationReason:a.deprecationReason,extensions:a.extensions&&toObjMap(a.extensions),astNode:a.astNode}}))}(this.name,r.values),this._valueLookup=new Map(this._values.map((function(r){return[r.value,r]}))),this._nameLookup=function keyMap(r,o){return r.reduce((function(r,i){return r[o(i)]=i,r}),Object.create(null))}(this._values,(function(r){return r.name})),"string"===typeof r.name||devAssert(0,"Must provide name.")}var r=GraphQLEnumType.prototype;return r.getValues=function getValues(){return this._values},r.getValue=function getValue(r){return this._nameLookup[r]},r.serialize=function serialize(r){var o=this._valueLookup.get(r);if(void 0===o)throw new S('Enum "'.concat(this.name,'" cannot represent value: ').concat(inspect_inspect(r)));return o.name},r.parseValue=function parseValue(r){if("string"!==typeof r){var o=inspect_inspect(r);throw new S('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(o,".")+didYouMeanEnumValue(this,o))}var i=this.getValue(r);if(null==i)throw new S('Value "'.concat(r,'" does not exist in "').concat(this.name,'" enum.')+didYouMeanEnumValue(this,r));return i.value},r.parseLiteral=function parseLiteral(r,o){if(r.kind!==O.ENUM){var i=print(r);throw new S('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(i,".")+didYouMeanEnumValue(this,i),r)}var a=this.getValue(r.value);if(null==a){var c=print(r);throw new S('Value "'.concat(c,'" does not exist in "').concat(this.name,'" enum.')+didYouMeanEnumValue(this,c),r)}return a.value},r.toConfig=function toConfig(){var r,o=keyValMap(this.getValues(),(function(r){return r.name}),(function(r){return{description:r.description,value:r.value,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}}));return{name:this.name,description:this.description,values:o,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(r=this.extensionASTNodes)&&void 0!==r?r:[]}},r.toString=function toString(){return this.name},r.toJSON=function toJSON(){return this.toString()},definition_createClass(GraphQLEnumType,[{key:w,get:function get(){return"GraphQLEnumType"}}]),GraphQLEnumType}();function didYouMeanEnumValue(r,o){return function didYouMean(r,o){var i="string"===typeof r?[r,o]:[void 0,r],a=i[0],c=" Did you mean ";a&&(c+=a+" ");var u=i[1].map((function(r){return'"'.concat(r,'"')}));switch(u.length){case 0:return"";case 1:return c+u[0]+"?";case 2:return c+u[0]+" or "+u[1]+"?"}var l=u.slice(0,5),p=l.pop();return c+l.join(", ")+", or "+p+"?"}("the enum value",suggestionList(o,r.getValues().map((function(r){return r.name}))))}defineInspect(Ze);var et=function(){function GraphQLInputObjectType(r){this.name=r.name,this.description=r.description,this.extensions=r.extensions&&toObjMap(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=undefineIfEmpty(r.extensionASTNodes),this._fields=defineInputFieldMap.bind(void 0,r),"string"===typeof r.name||devAssert(0,"Must provide name.")}var r=GraphQLInputObjectType.prototype;return r.getFields=function getFields(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},r.toConfig=function toConfig(){var r,o=mapValue(this.getFields(),(function(r){return{description:r.description,type:r.type,defaultValue:r.defaultValue,extensions:r.extensions,astNode:r.astNode}}));return{name:this.name,description:this.description,fields:o,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(r=this.extensionASTNodes)&&void 0!==r?r:[]}},r.toString=function toString(){return this.name},r.toJSON=function toJSON(){return this.toString()},definition_createClass(GraphQLInputObjectType,[{key:w,get:function get(){return"GraphQLInputObjectType"}}]),GraphQLInputObjectType}();function defineInputFieldMap(r){var o=resolveThunk(r.fields);return isPlainObj(o)||devAssert(0,"".concat(r.name," fields must be an object with field names as keys or a function which returns such an object.")),mapValue(o,(function(o,i){return!("resolve"in o)||devAssert(0,"".concat(r.name,".").concat(i," field has a resolve property, but Input Types cannot define resolvers.")),{name:i,description:o.description,type:o.type,defaultValue:o.defaultValue,deprecationReason:o.deprecationReason,extensions:o.extensions&&toObjMap(o.extensions),astNode:o.astNode}}))}function maybeDeepFreeze(r){return __DEV__&&function deepFreeze(r){var o=new Set([r]);return o.forEach((function(r){isNonNullObject(r)&&(Object.isFrozen(r)||Object.freeze(r),Object.getOwnPropertyNames(r).forEach((function(i){isNonNullObject(r[i])&&o.add(r[i])})))})),r}(r),r}defineInspect(et),function removeTemporaryGlobals(){return isType(null),function remove(){Qe&&(delete He.process,Qe=!1)}()}();var tt=Object.prototype.hasOwnProperty;var nt=/^[_a-z][_0-9a-z]*/i;function fieldNameFromStoreName(r){var o=r.match(nt);return o?o[0]:r}function selectionSetMatchesResult(r,o,i){return!!isNonNullObject(o)&&(Array.isArray(o)?o.every((function(o){return selectionSetMatchesResult(r,o,i)})):r.selections.every((function(r){if(storeUtils_isField(r)&&shouldInclude(r,i)){var a=resultKeyNameFromField(r);return tt.call(o,a)&&(!r.selectionSet||selectionSetMatchesResult(r.selectionSet,o[a],i))}return!0})))}function storeValueIsStoreObject(r){return isNonNullObject(r)&&!isReference(r)&&!Array.isArray(r)}function entityStore_typeof(r){return(entityStore_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(r){return typeof r}:function _typeof(r){return r&&"function"===typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}var rt=Object.create(null),ot=function delModifier(){return rt},it=Object.create(null),at=function(){function EntityStore(r,o){var i=this;this.policies=r,this.group=o,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(r,o){return maybeDeepFreeze(isReference(r)?i.get(r.__ref,o):r&&r[o])},this.canRead=function(r){return isReference(r)?i.has(r.__ref):"object"===entityStore_typeof(r)},this.toReference=function(r,o){if("string"===typeof r)return makeReference(r);if(isReference(r))return r;var a=i.policies.identify(r)[0];if(a){var c=makeReference(a);return o&&i.merge(a,r),c}}}return EntityStore.prototype.toObject=function(){return E({},this.data)},EntityStore.prototype.has=function(r){return void 0!==this.lookup(r,!0)},EntityStore.prototype.get=function(r,o){if(this.group.depend(r,o),tt.call(this.data,r)){var i=this.data[r];if(i&&tt.call(i,o))return i[o]}return"__typename"===o&&tt.call(this.policies.rootTypenamesById,r)?this.policies.rootTypenamesById[r]:this instanceof ct?this.parent.get(r,o):void 0},EntityStore.prototype.lookup=function(r,o){return o&&this.group.depend(r,"__exists"),tt.call(this.data,r)?this.data[r]:this instanceof ct?this.parent.lookup(r,o):this.policies.rootTypenamesById[r]?Object.create(null):void 0},EntityStore.prototype.merge=function(r,o){var i,a=this;isReference(r)&&(r=r.__ref),isReference(o)&&(o=o.__ref);var c="string"===typeof r?this.lookup(i=r):r,u="string"===typeof o?this.lookup(i=o):o;if(u){__DEV__?invariant_esm_invariant("string"===typeof i,"store.merge expects a string ID"):invariant_esm_invariant("string"===typeof i,2);var l=new Fe(storeObjectReconciler).merge(c,u);if(this.data[i]=l,l!==c&&(delete this.refs[i],this.group.caching)){var p=Object.create(null);c||(p.__exists=1),Object.keys(u).forEach((function(r){if(!c||c[r]!==l[r]){p[r]=1;var o=fieldNameFromStoreName(r);o===r||a.policies.hasKeyArgs(l.__typename,o)||(p[o]=1),void 0!==l[r]||a instanceof ct||delete l[r]}})),!p.__typename||c&&c.__typename||this.policies.rootTypenamesById[i]!==l.__typename||delete p.__typename,Object.keys(p).forEach((function(r){return a.group.dirty(i,r)}))}}},EntityStore.prototype.modify=function(r,o){var i=this,a=this.lookup(r);if(a){var c=Object.create(null),u=!1,l=!0,p={DELETE:rt,INVALIDATE:it,isReference:isReference,toReference:this.toReference,canRead:this.canRead,readField:function readField(o,a){return i.policies.readField("string"===typeof o?{fieldName:o,from:a||makeReference(r)}:o,{store:i})}};if(Object.keys(a).forEach((function(d){var h=fieldNameFromStoreName(d),m=a[d];if(void 0!==m){var y="function"===typeof o?o:o[d]||o[h];if(y){var v=y===ot?rt:y(maybeDeepFreeze(m),E(E({},p),{fieldName:h,storeFieldName:d,storage:i.getStorage(r,d)}));v===it?i.group.dirty(r,d):(v===rt&&(v=void 0),v!==m&&(c[d]=v,u=!0,m=v))}void 0!==m&&(l=!1)}})),u)return this.merge(r,c),l&&(this instanceof ct?this.data[r]=void 0:delete this.data[r],this.group.dirty(r,"__exists")),!0}return!1},EntityStore.prototype.delete=function(r,o,i){var a,c=this.lookup(r);if(c){var u=this.getFieldValue(c,"__typename"),l=o&&i?this.policies.getStoreFieldName({typename:u,fieldName:o,args:i}):o;return this.modify(r,l?((a={})[l]=ot,a):ot)}return!1},EntityStore.prototype.evict=function(r){var o=!1;return r.id&&(tt.call(this.data,r.id)&&(o=this.delete(r.id,r.fieldName,r.args)),this instanceof ct&&(o=this.parent.evict(r)||o),(r.fieldName||o)&&this.group.dirty(r.id,r.fieldName||"__exists")),o},EntityStore.prototype.clear=function(){this.replace(null)},EntityStore.prototype.extract=function(){var r=this,o=this.toObject(),i=[];return this.getRootIdSet().forEach((function(o){tt.call(r.policies.rootTypenamesById,o)||i.push(o)})),i.length&&(o.__META={extraRootIds:i.sort()}),o},EntityStore.prototype.replace=function(r){var o=this;if(Object.keys(this.data).forEach((function(i){r&&tt.call(r,i)||o.delete(i)})),r){var i=r.__META,a=__rest(r,["__META"]);Object.keys(a).forEach((function(r){o.merge(r,a[r])})),i&&i.extraRootIds.forEach(this.retain,this)}},EntityStore.prototype.retain=function(r){return this.rootIds[r]=(this.rootIds[r]||0)+1},EntityStore.prototype.release=function(r){if(this.rootIds[r]>0){var o=--this.rootIds[r];return o||delete this.rootIds[r],o}return 0},EntityStore.prototype.getRootIdSet=function(r){return void 0===r&&(r=new Set),Object.keys(this.rootIds).forEach(r.add,r),this instanceof ct?this.parent.getRootIdSet(r):Object.keys(this.policies.rootTypenamesById).forEach(r.add,r),r},EntityStore.prototype.gc=function(){var r=this,o=this.getRootIdSet(),i=this.toObject();o.forEach((function(a){tt.call(i,a)&&(Object.keys(r.findChildRefIds(a)).forEach(o.add,o),delete i[a])}));var a=Object.keys(i);if(a.length){for(var c=this;c instanceof ct;)c=c.parent;a.forEach((function(r){return c.delete(r)}))}return a},EntityStore.prototype.findChildRefIds=function(r){if(!tt.call(this.refs,r)){var o=this.refs[r]=Object.create(null),i=this.data[r];if(!i)return o;var a=new Set([i]);a.forEach((function(r){isReference(r)&&(o[r.__ref]=!0),isNonNullObject(r)&&Object.keys(r).forEach((function(o){var i=r[o];isNonNullObject(i)&&a.add(i)}))}))}return this.refs[r]},EntityStore.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},EntityStore}(),st=function(){function CacheGroup(r,o){void 0===o&&(o=null),this.caching=r,this.parent=o,this.d=null,this.resetCaching()}return CacheGroup.prototype.resetCaching=function(){this.d=this.caching?dep():null,this.keyMaker=new Y(Re)},CacheGroup.prototype.depend=function(r,o){if(this.d){this.d(makeDepKey(r,o));var i=fieldNameFromStoreName(o);i!==o&&this.d(makeDepKey(r,i)),this.parent&&this.parent.depend(r,o)}},CacheGroup.prototype.dirty=function(r,o){this.d&&this.d.dirty(makeDepKey(r,o),"__exists"===o?"forget":"setDirty")},CacheGroup}();function makeDepKey(r,o){return o+"#"+r}function maybeDependOnExistenceOfEntity(r,o){supportsResultCaching(r)&&r.group.depend(o,"__exists")}!function(r){var o=function(r){function Root(o){var i=o.policies,a=o.resultCaching,c=void 0===a||a,u=o.seed,l=r.call(this,i,new st(c))||this;return l.stump=new ut(l),l.storageTrie=new Y(Re),u&&l.replace(u),l}return __extends(Root,r),Root.prototype.addLayer=function(r,o){return this.stump.addLayer(r,o)},Root.prototype.removeLayer=function(){return this},Root.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},Root}(r);r.Root=o}(at||(at={}));var ct=function(r){function Layer(o,i,a,c){var u=r.call(this,i.policies,c)||this;return u.id=o,u.parent=i,u.replay=a,u.group=c,a(u),u}return __extends(Layer,r),Layer.prototype.addLayer=function(r,o){return new Layer(r,this,o,this.group)},Layer.prototype.removeLayer=function(r){var o=this,i=this.parent.removeLayer(r);return r===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(r){var a=o.data[r],c=i.lookup(r);c?a?a!==c&&Object.keys(a).forEach((function(i){equal(a[i],c[i])||o.group.dirty(r,i)})):(o.group.dirty(r,"__exists"),Object.keys(c).forEach((function(i){o.group.dirty(r,i)}))):o.delete(r)})),i):i===this.parent?this:i.addLayer(this.id,this.replay)},Layer.prototype.toObject=function(){return E(E({},this.parent.toObject()),this.data)},Layer.prototype.findChildRefIds=function(o){var i=this.parent.findChildRefIds(o);return tt.call(this.data,o)?E(E({},i),r.prototype.findChildRefIds.call(this,o)):i},Layer.prototype.getStorage=function(){for(var r=this.parent;r.parent;)r=r.parent;return r.getStorage.apply(r,arguments)},Layer}(at),ut=function(r){function Stump(o){return r.call(this,"EntityStore.Stump",o,(function(){}),new st(o.group.caching,o.group))||this}return __extends(Stump,r),Stump.prototype.removeLayer=function(){return this},Stump.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},Stump}(ct);function storeObjectReconciler(r,o,i){var a=r[i],c=o[i];return equal(a,c)?a:c}function supportsResultCaching(r){return!!(r instanceof at&&r.group.caching)}var lt,pt,ft=function(){function ObjectCanon(){this.known=new(Pe?WeakSet:Set),this.pool=new Y(Re),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return ObjectCanon.prototype.isKnown=function(r){return isNonNullObject(r)&&this.known.has(r)},ObjectCanon.prototype.pass=function(r){if(isNonNullObject(r)){var o=function shallowCopy(r){return isNonNullObject(r)?Array.isArray(r)?r.slice(0):E({__proto__:Object.getPrototypeOf(r)},r):r}(r);return this.passes.set(o,r),o}return r},ObjectCanon.prototype.admit=function(r){var o=this;if(isNonNullObject(r)){var i=this.passes.get(r);if(i)return i;switch(Object.getPrototypeOf(r)){case Array.prototype:if(this.known.has(r))return r;var a=r.map(this.admit,this);return(p=this.pool.lookupArray(a)).array||(this.known.add(p.array=a),__DEV__&&Object.freeze(a)),p.array;case null:case Object.prototype:if(this.known.has(r))return r;var c=Object.getPrototypeOf(r),u=[c],l=this.sortedKeys(r);u.push(l.json);var p,d=u.length;if(l.sorted.forEach((function(i){u.push(o.admit(r[i]))})),!(p=this.pool.lookupArray(u)).object){var h=p.object=Object.create(c);this.known.add(h),l.sorted.forEach((function(r,o){h[r]=u[d+o]})),__DEV__&&Object.freeze(h)}return p.object}}return r},ObjectCanon.prototype.sortedKeys=function(r){var o=Object.keys(r),i=this.pool.lookupArray(o);if(!i.keys){o.sort();var a=JSON.stringify(o);(i.keys=this.keysByJSON.get(a))||this.keysByJSON.set(a,i.keys={sorted:o,json:a})}return i.keys},ObjectCanon}(),dt=Object.assign((function(r){if(isNonNullObject(r)){void 0===lt&&resetCanonicalStringify();var o=lt.admit(r),i=pt.get(o);return void 0===i&&pt.set(o,i=JSON.stringify(o)),i}return JSON.stringify(r)}),{reset:resetCanonicalStringify});function resetCanonicalStringify(){lt=new ft,pt=new(Re?WeakMap:Map)}function missingFromInvariant(r,o){return new Te(r.message,o.path.slice(),o.query,o.variables)}function execSelectionSetKeyArgs(r){return[r.selectionSet,r.objectOrReference,r.context,r.context.canonizeResults]}var ht=function(){function StoreReader(r){var o=this;this.knownResults=new(Re?WeakMap:Map),this.config=E(E({},r),{addTypename:!1!==r.addTypename}),this.canon=r.canon||new ft,this.executeSelectionSet=wrap((function(r){var i,a=r.context.canonizeResults,c=execSelectionSetKeyArgs(r);c[3]=!a;var u=(i=o.executeSelectionSet).peek.apply(i,c);return u?a?E(E({},u),{result:o.canon.admit(u.result)}):u:(maybeDependOnExistenceOfEntity(r.context.store,r.enclosingRef.__ref),o.execSelectionSetImpl(r))}),{max:this.config.resultCacheMaxSize,keyArgs:execSelectionSetKeyArgs,makeCacheKey:function makeCacheKey(r,o,i,a){if(supportsResultCaching(i.store))return i.store.makeCacheKey(r,isReference(o)?o.__ref:o,i.varString,a)}}),this.executeSubSelectedArray=wrap((function(r){return maybeDependOnExistenceOfEntity(r.context.store,r.enclosingRef.__ref),o.execSubSelectedArrayImpl(r)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function makeCacheKey(r){var o=r.field,i=r.array,a=r.context;if(supportsResultCaching(a.store))return a.store.makeCacheKey(o,i,a.varString)}})}return StoreReader.prototype.resetCanon=function(){this.canon=new ft},StoreReader.prototype.diffQueryAgainstStore=function(r){var o=r.store,i=r.query,a=r.rootId,c=void 0===a?"ROOT_QUERY":a,u=r.variables,l=r.returnPartialData,p=void 0===l||l,d=r.canonizeResults,h=void 0===d||d,m=this.config.cache.policies;u=E(E({},getDefaultValues(function getQueryDefinition(r){var o=getOperationDefinition(r);return __DEV__?invariant_esm_invariant(o&&"query"===o.operation,"Must contain a query definition."):invariant_esm_invariant(o&&"query"===o.operation,53),o}(i))),u);var y=makeReference(c),v=this.executeSelectionSet({selectionSet:getMainDefinition(i).selectionSet,objectOrReference:y,enclosingRef:y,context:{store:o,query:i,policies:m,variables:u,varString:dt(u),canonizeResults:h,fragmentMap:createFragmentMap(getFragmentDefinitions(i)),path:[]}}),g=v.missing&&v.missing.length>0;if(g&&!p)throw v.missing[0];return{result:v.result,missing:v.missing,complete:!g}},StoreReader.prototype.isFresh=function(r,o,i,a){if(supportsResultCaching(a.store)&&this.knownResults.get(r)===i){var c=this.executeSelectionSet.peek(i,o,a,this.canon.isKnown(r));if(c&&r===c.result)return!0}return!1},StoreReader.prototype.execSelectionSetImpl=function(r){var o=this,i=r.selectionSet,a=r.objectOrReference,c=r.enclosingRef,u=r.context;if(isReference(a)&&!u.policies.rootTypenamesById[a.__ref]&&!u.store.has(a.__ref))return{result:this.canon.empty,missing:[missingFromInvariant(__DEV__?new Ee("Dangling reference to missing "+a.__ref+" object"):new Ee(6),u)]};var l=u.variables,p=u.policies,d=u.store,h=[],m={result:null},y=d.getFieldValue(a,"__typename");function getMissing(){return m.missing||(m.missing=[])}function handleMissing(r){var o;return r.missing&&(o=getMissing()).push.apply(o,r.missing),r.result}this.config.addTypename&&"string"===typeof y&&!p.rootIdsByTypename[y]&&h.push({__typename:y});var v=new Set(i.selections);v.forEach((function(r){var i;if(shouldInclude(r,l))if(storeUtils_isField(r)){var d=p.readField({fieldName:r.name.value,field:r,variables:u.variables,from:a},u),m=resultKeyNameFromField(r);u.path.push(m),void 0===d?De.added(r)||getMissing().push(missingFromInvariant(__DEV__?new Ee("Can't find field '"+r.name.value+"' on "+(isReference(a)?a.__ref+" object":"object "+JSON.stringify(a,null,2))):new Ee(7),u)):Array.isArray(d)?d=handleMissing(o.executeSubSelectedArray({field:r,array:d,enclosingRef:c,context:u})):r.selectionSet?null!=d&&(d=handleMissing(o.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:d,enclosingRef:isReference(d)?d:c,context:u}))):u.canonizeResults&&(d=o.canon.pass(d)),void 0!==d&&h.push(((i={})[m]=d,i)),invariant_esm_invariant(u.path.pop()===m)}else{var g=getFragmentFromSelection(r,u.fragmentMap);g&&p.fragmentMatches(g,y)&&g.selectionSet.selections.forEach(v.add,v)}}));var g=mergeDeepArray(h);return m.result=u.canonizeResults?this.canon.admit(g):maybeDeepFreeze(g),this.knownResults.set(m.result,i),m},StoreReader.prototype.execSubSelectedArrayImpl=function(r){var o,i=this,a=r.field,c=r.array,u=r.enclosingRef,l=r.context;function handleMissing(r,i){return r.missing&&(o=o||[]).push.apply(o,r.missing),invariant_esm_invariant(l.path.pop()===i),r.result}return a.selectionSet&&(c=c.filter(l.store.canRead)),c=c.map((function(r,o){return null===r?null:(l.path.push(o),Array.isArray(r)?handleMissing(i.executeSubSelectedArray({field:a,array:r,enclosingRef:u,context:l}),o):a.selectionSet?handleMissing(i.executeSelectionSet({selectionSet:a.selectionSet,objectOrReference:r,enclosingRef:isReference(r)?r:u,context:l}),o):(__DEV__&&function assertSelectionSetForIdValue(r,o,i){if(!o.selectionSet){var a=new Set([i]);a.forEach((function(i){isNonNullObject(i)&&(__DEV__?invariant_esm_invariant(!isReference(i),"Missing selection set for object of type "+function getTypenameFromStoreObject(r,o){return isReference(o)?r.get(o.__ref,"__typename"):o&&o.__typename}(r,i)+" returned for query field "+o.name.value):invariant_esm_invariant(!isReference(i),8),Object.values(i).forEach(a.add,a))}))}}(l.store,a,r),invariant_esm_invariant(l.path.pop()===o),r))})),{result:l.canonizeResults?this.canon.admit(c):c,missing:o}},StoreReader}();var mt=Object.prototype.toString;function cloneDeep(r){return cloneDeepHelper(r)}function cloneDeepHelper(r,o){switch(mt.call(r)){case"[object Array]":if((o=o||new Map).has(r))return o.get(r);var i=r.slice(0);return o.set(r,i),i.forEach((function(r,a){i[a]=cloneDeepHelper(r,o)})),i;case"[object Object]":if((o=o||new Map).has(r))return o.get(r);var a=Object.create(Object.getPrototypeOf(r));return o.set(r,a),Object.keys(r).forEach((function(i){a[i]=cloneDeepHelper(r[i],o)})),a;default:return r}}function writeToStore_typeof(r){return(writeToStore_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(r){return typeof r}:function _typeof(r){return r&&"function"===typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}var yt=function(){function StoreWriter(r,o){this.cache=r,this.reader=o}return StoreWriter.prototype.writeToStore=function(r,o){var i=this,a=o.query,c=o.result,u=o.dataId,l=o.variables,p=o.overwrite,d=getOperationDefinition(a),h=function makeProcessedFieldsMerger(){return new Fe}();l=E(E({},getDefaultValues(d)),l);var m={store:r,written:Object.create(null),merge:function merge(r,o){return h.merge(r,o)},variables:l,varString:dt(l),fragmentMap:createFragmentMap(getFragmentDefinitions(a)),overwrite:!!p,incomingById:new Map,clientOnly:!1},y=this.processSelectionSet({result:c||Object.create(null),dataId:u,selectionSet:d.selectionSet,mergeTree:{map:new Map},context:m});if(!isReference(y))throw __DEV__?new Ee("Could not identify object "+JSON.stringify(c)):new Ee(9);return m.incomingById.forEach((function(o,a){var c=o.fields,u=o.mergeTree,l=o.selections,p=makeReference(a);if(u.map.size){var d=i.applyMerges(u,p,c,m);if(isReference(d))return;c=d}if(__DEV__&&!m.overwrite){var h=new Set;l.forEach((function(r){storeUtils_isField(r)&&r.selectionSet&&h.add(r.name.value)}));Object.keys(c).forEach((function(r){(function hasSelectionSet_1(r){return h.has(fieldNameFromStoreName(r))})(r)&&!function hasMergeFunction_1(r){var o=u.map.get(r);return Boolean(o&&o.info&&o.info.merge)}(r)&&function warnAboutDataLoss(r,o,i,a){var c=function getChild(r){var o=a.getFieldValue(r,i);return"object"===writeToStore_typeof(o)&&o},u=c(r);if(!u)return;var l=c(o);if(!l)return;if(isReference(u))return;if(equal(u,l))return;if(Object.keys(u).every((function(r){return void 0!==a.getFieldValue(l,r)})))return;var p=a.getFieldValue(r,"__typename")||a.getFieldValue(o,"__typename"),d=fieldNameFromStoreName(i),h=p+"."+d;if(gt.has(h))return;gt.add(h);var m=[];Array.isArray(u)||Array.isArray(l)||[u,l].forEach((function(r){var o=a.getFieldValue(r,"__typename");"string"!==typeof o||m.includes(o)||m.push(o)}));__DEV__&&invariant_esm_invariant.warn("Cache data may be lost when replacing the "+d+" field of a "+p+" object.\n\nTo address this problem (which is not a bug in Apollo Client), "+(m.length?"either ensure all objects of type "+m.join(" and ")+" have an ID or a custom merge function, or ":"")+"define a custom merge function for the "+h+" field, so InMemoryCache can safely merge these objects:\n\n existing: "+JSON.stringify(u).slice(0,1e3)+"\n incoming: "+JSON.stringify(l).slice(0,1e3)+"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n")}(p,c,r,m.store)}))}r.merge(a,c)})),r.retain(y.__ref),y},StoreWriter.prototype.processSelectionSet=function(r){var o=this,i=r.dataId,a=r.result,c=r.selectionSet,u=r.context,l=r.mergeTree,p=this.cache.policies,d=p.identify(a,c,u.fragmentMap),h=d[0],m=d[1];if("string"===typeof(i=i||h)){var y=u.written[i]||(u.written[i]=[]),v=makeReference(i);if(y.indexOf(c)>=0)return v;if(y.push(c),this.reader&&this.reader.isFresh(a,v,c,u))return v}var g=Object.create(null);m&&(g=u.merge(g,m));var _=i&&p.rootTypenamesById[i]||getTypenameFromResult(a,c,u.fragmentMap)||i&&u.store.get(i,"__typename");"string"===typeof _&&(g.__typename=_);var b=new Set(c.selections);if(b.forEach((function(r){var i;if(shouldInclude(r,u.variables))if(storeUtils_isField(r)){var c=resultKeyNameFromField(r),d=a[c],h=u.clientOnly;if(u.clientOnly=h||!(!r.directives||!r.directives.some((function(r){return"client"===r.name.value}))),void 0!==d){var m=p.getStoreFieldName({typename:_,fieldName:r.name.value,field:r,variables:u.variables}),y=getChildMergeTree(l,m),v=o.processFieldValue(d,r,u,y),E=void 0;if(r.selectionSet&&!(E=u.store.getFieldValue(v,"__typename"))&&isReference(v)){var w=u.incomingById.get(v.__ref);E=w&&w.fields.__typename}var S=p.getMergeFunction(_,r.name.value,E);S?y.info={field:r,typename:_,merge:S}:maybeRecycleChildMergeTree(l,m),g=u.merge(g,((i={})[m]=v,i))}else u.clientOnly||De.added(r)||__DEV__&&invariant_esm_invariant.error(("Missing field '"+resultKeyNameFromField(r)+"' while writing result "+JSON.stringify(a,null,2)).substring(0,1e3));u.clientOnly=h}else{var O=getFragmentFromSelection(r,u.fragmentMap);O&&p.fragmentMatches(O,_,a,u.variables)&&O.selectionSet.selections.forEach(b.add,b)}})),"string"===typeof i){var E=u.incomingById.get(i);return E?(E.fields=u.merge(E.fields,g),E.mergeTree=mergeMergeTrees(E.mergeTree,l),E.selections.forEach(b.add,b),E.selections=b):u.incomingById.set(i,{fields:g,mergeTree:l,selections:b}),makeReference(i)}return g},StoreWriter.prototype.processFieldValue=function(r,o,i,a){var c=this;return o.selectionSet&&null!==r?Array.isArray(r)?r.map((function(r,u){var l=c.processFieldValue(r,o,i,getChildMergeTree(a,u));return maybeRecycleChildMergeTree(a,u),l})):this.processSelectionSet({result:r,selectionSet:o.selectionSet,context:i,mergeTree:a}):__DEV__?cloneDeep(r):r},StoreWriter.prototype.applyMerges=function(r,o,i,a,c){var u,l=this;if(r.map.size&&!isReference(i)){var p,d=Array.isArray(i)||!isReference(o)&&!storeValueIsStoreObject(o)?void 0:o,h=i;d&&!c&&(c=[isReference(d)?d.__ref:d]);var m=function getValue_1(r,o){return Array.isArray(r)?"number"===typeof o?r[o]:void 0:a.store.getFieldValue(r,String(o))};r.map.forEach((function(r,o){var i=m(d,o),u=m(h,o);if(void 0!==u){c&&c.push(o);var y=l.applyMerges(r,i,u,a,c);y!==u&&(p=p||new Map).set(o,y),c&&invariant_esm_invariant(c.pop()===o)}})),p&&(i=Array.isArray(h)?h.slice(0):E({},h),p.forEach((function(r,o){i[o]=r})))}return r.info?this.cache.policies.runMergeFunction(o,i,r.info,a,c&&(u=a.store).getStorage.apply(u,c)):i},StoreWriter}(),vt=[];function getChildMergeTree(r,o){var i=r.map;return i.has(o)||i.set(o,vt.pop()||{map:new Map}),i.get(o)}function mergeMergeTrees(r,o){if(r===o||!o||mergeTreeIsEmpty(o))return r;if(!r||mergeTreeIsEmpty(r))return o;var i=r.info&&o.info?E(E({},r.info),o.info):r.info||o.info,a=r.map.size&&o.map.size,c={info:i,map:a?new Map:r.map.size?r.map:o.map};if(a){var u=new Set(o.map.keys());r.map.forEach((function(r,i){c.map.set(i,mergeMergeTrees(r,o.map.get(i))),u.delete(i)})),u.forEach((function(i){c.map.set(i,mergeMergeTrees(o.map.get(i),r.map.get(i)))}))}return c}function mergeTreeIsEmpty(r){return!r||!(r.info||r.map.size)}function maybeRecycleChildMergeTree(r,o){var i=r.map,a=i.get(o);a&&mergeTreeIsEmpty(a)&&(vt.push(a),i.delete(o))}var gt=new Set;var _t=new ne,bt=new WeakMap;function getCacheInfo(r){var o=bt.get(r);return o||bt.set(r,o={vars:new Set,dep:dep()}),o}function makeVar(r){var o=new Set,i=new Set,a=function rv(a){if(arguments.length>0){if(r!==a){r=a,o.forEach((function(r){getCacheInfo(r).dep.dirty(rv),broadcast(r)}));var u=Array.from(i);i.clear(),u.forEach((function(o){return o(r)}))}}else{var l=_t.getValue();l&&(c(l),getCacheInfo(l).dep(rv))}return r};a.onNextChange=function(r){return i.add(r),function(){i.delete(r)}};var c=a.attachCache=function(r){return o.add(r),getCacheInfo(r).vars.add(a),a};return a.forgetCache=function(r){return o.delete(r)},a}function broadcast(r){r.broadcastWatches&&r.broadcastWatches()}var Et=new Map;function makeUniqueId(r){var o=Et.get(r)||1;return Et.set(r,o+1),r+":"+o+":"+Math.random().toString(36).slice(2)}function stringifyForDisplay(r){var o=makeUniqueId("stringifyForDisplay");return JSON.stringify(r,(function(r,i){return void 0===i?o:i})).split(JSON.stringify(o)).join("")}function argsFromFieldSpecifier(r){return void 0!==r.args?r.args:r.field?argumentsObjectFromField(r.field,r.variables):null}Ae.setStringify(dt);var wt=function defaultDataIdFromObject(r,o){var i=r.__typename,a=r.id,c=r._id;if("string"===typeof i&&(o&&(o.keyObject=void 0!==a?{id:a}:void 0!==c?{_id:c}:void 0),void 0===a&&(a=c),void 0!==a))return i+":"+("number"===typeof a||"string"===typeof a?a:JSON.stringify(a))},St=function nullKeyFieldsFn(){},Ot=function simpleKeyArgsFn(r,o){return o.fieldName},Tt=function mergeTrueFn(r,o,i){return(0,i.mergeObjects)(r,o)},kt=function mergeFalseFn(r,o){return o},At=function(){function Policies(r){this.config=r,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=E({dataIdFromObject:wt},r),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),r.possibleTypes&&this.addPossibleTypes(r.possibleTypes),r.typePolicies&&this.addTypePolicies(r.typePolicies)}return Policies.prototype.identify=function(r,o,i){var a=o&&i?getTypenameFromResult(r,o,i):r.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var c,u={typename:a,selectionSet:o,fragmentMap:i},l=a&&this.getTypePolicy(a),p=l&&l.keyFn||this.config.dataIdFromObject;p;){var d=p(r,u);if(!Array.isArray(d)){c=d;break}p=keyFieldsFnFromSpecifier(d)}return c=c?String(c):void 0,u.keyObject?[c,u.keyObject]:[c]},Policies.prototype.addTypePolicies=function(r){var o=this;Object.keys(r).forEach((function(i){var a=r[i],c=a.queryType,u=a.mutationType,l=a.subscriptionType,p=__rest(a,["queryType","mutationType","subscriptionType"]);c&&o.setRootTypename("Query",i),u&&o.setRootTypename("Mutation",i),l&&o.setRootTypename("Subscription",i),tt.call(o.toBeAdded,i)?o.toBeAdded[i].push(p):o.toBeAdded[i]=[p]}))},Policies.prototype.updateTypePolicy=function(r,o){var i=this,a=this.getTypePolicy(r),c=o.keyFields,u=o.fields;function setMerge(r,o){r.merge="function"===typeof o?o:!0===o?Tt:!1===o?kt:r.merge}setMerge(a,o.merge),a.keyFn=!1===c?St:Array.isArray(c)?keyFieldsFnFromSpecifier(c):"function"===typeof c?c:a.keyFn,u&&Object.keys(u).forEach((function(o){var a=i.getFieldPolicy(r,o,!0),c=u[o];if("function"===typeof c)a.read=c;else{var l=c.keyArgs,p=c.read,d=c.merge;a.keyFn=!1===l?Ot:Array.isArray(l)?keyArgsFnFromSpecifier(l):"function"===typeof l?l:a.keyFn,"function"===typeof p&&(a.read=p),setMerge(a,d)}a.read&&a.merge&&(a.keyFn=a.keyFn||Ot)}))},Policies.prototype.setRootTypename=function(r,o){void 0===o&&(o=r);var i="ROOT_"+r.toUpperCase(),a=this.rootTypenamesById[i];o!==a&&(__DEV__?invariant_esm_invariant(!a||a===r,"Cannot change root "+r+" __typename more than once"):invariant_esm_invariant(!a||a===r,3),a&&delete this.rootIdsByTypename[a],this.rootIdsByTypename[o]=i,this.rootTypenamesById[i]=o)},Policies.prototype.addPossibleTypes=function(r){var o=this;this.usingPossibleTypes=!0,Object.keys(r).forEach((function(i){o.getSupertypeSet(i,!0),r[i].forEach((function(r){o.getSupertypeSet(r,!0).add(i);var a=r.match(nt);a&&a[0]===r||o.fuzzySubtypes.set(r,new RegExp(r))}))}))},Policies.prototype.getTypePolicy=function(r){var o=this;if(!tt.call(this.typePolicies,r)){var i=this.typePolicies[r]=Object.create(null);i.fields=Object.create(null);var a=this.supertypeMap.get(r);a&&a.size&&a.forEach((function(r){var a=o.getTypePolicy(r),c=a.fields,u=__rest(a,["fields"]);Object.assign(i,u),Object.assign(i.fields,c)}))}var c=this.toBeAdded[r];return c&&c.length&&c.splice(0).forEach((function(i){o.updateTypePolicy(r,i)})),this.typePolicies[r]},Policies.prototype.getFieldPolicy=function(r,o,i){if(r){var a=this.getTypePolicy(r).fields;return a[o]||i&&(a[o]=Object.create(null))}},Policies.prototype.getSupertypeSet=function(r,o){var i=this.supertypeMap.get(r);return!i&&o&&this.supertypeMap.set(r,i=new Set),i},Policies.prototype.fragmentMatches=function(r,o,i,a){var c=this;if(!r.typeCondition)return!0;if(!o)return!1;var u=r.typeCondition.name.value;if(o===u)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(u))for(var l=this.getSupertypeSet(o,!0),p=[l],d=function maybeEnqueue_1(r){var o=c.getSupertypeSet(r,!1);o&&o.size&&p.indexOf(o)<0&&p.push(o)},h=!(!i||!this.fuzzySubtypes.size),m=!1,y=0;y1?c:o};else{if(!isNonNullObject(i))return void(__DEV__&&invariant_esm_invariant.warn("Unexpected readField arguments: "+stringifyForDisplay(Array.from(arguments))));u=E({},i),tt.call(i,"from")||(u.from=o)}return __DEV__&&void 0===u.from&&__DEV__&&invariant_esm_invariant.warn("Undefined 'from' passed to readField with arguments "+stringifyForDisplay(Array.from(arguments))),void 0===u.variables&&(u.variables=p),r.readField(u,a)},mergeObjects:makeMergeObjectsFunction(a.store)}}function makeMergeObjectsFunction(r){return function mergeObjects(o,i){if(Array.isArray(o)||Array.isArray(i))throw __DEV__?new Ee("Cannot automatically merge arrays"):new Ee(4);if(isNonNullObject(o)&&isNonNullObject(i)){var a=r.getFieldValue(o,"__typename"),c=r.getFieldValue(i,"__typename");if(a&&c&&a!==c)return i;if(isReference(o)&&storeValueIsStoreObject(i))return r.merge(o.__ref,i),o;if(storeValueIsStoreObject(o)&&isReference(i))return r.merge(o,i.__ref),i;if(storeValueIsStoreObject(o)&&storeValueIsStoreObject(i))return E(E({},o),i)}return i}}function keyArgsFnFromSpecifier(r){return function(o,i){return o?i.fieldName+":"+JSON.stringify(computeKeyObject(o,r,!1)):i.fieldName}}function keyFieldsFnFromSpecifier(r){var o=new Y(Re);return function(i,a){var c;if(a.selectionSet&&a.fragmentMap){var u=o.lookupArray([a.selectionSet,a.fragmentMap]);c=u.aliasMap||(u.aliasMap=makeAliasMap(a.selectionSet,a.fragmentMap))}var l=a.keyObject=computeKeyObject(i,r,!0,c);return a.typename+":"+JSON.stringify(l)}}function makeAliasMap(r,o){var i=Object.create(null),a=new Set([r]);return a.forEach((function(r){r.selections.forEach((function(r){if(storeUtils_isField(r)){if(r.alias){var c=r.alias.value,u=r.name.value;if(u!==c)(i.aliases||(i.aliases=Object.create(null)))[u]=c}if(r.selectionSet)(i.subsets||(i.subsets=Object.create(null)))[r.name.value]=makeAliasMap(r.selectionSet,o)}else{var l=getFragmentFromSelection(r,o);l&&a.add(l.selectionSet)}}))})),i}function computeKeyObject(r,o,i,a){var c,u=Object.create(null);return o.forEach((function(o){if(Array.isArray(o)){if("string"===typeof c){var l=a&&a.subsets,p=l&&l[c];u[c]=computeKeyObject(r[c],o,i,p)}}else{var d=a&&a.aliases,h=d&&d[o]||o;tt.call(r,h)?u[c=o]=r[h]:(__DEV__?invariant_esm_invariant(!i,"Missing field '"+h+"' while computing key fields"):invariant_esm_invariant(!i,5),c=void 0)}})),u}var Ct={dataIdFromObject:wt,addTypename:!0,resultCaching:!0,typePolicies:{}},Nt=function(r){function InMemoryCache(o){void 0===o&&(o={});var i=r.call(this)||this;return i.watches=new Set,i.typenameDocumentCache=new Map,i.makeVar=makeVar,i.txCount=0,i.config=E(E({},Ct),o),i.addTypename=!!i.config.addTypename,i.policies=new At({cache:i,dataIdFromObject:i.config.dataIdFromObject,possibleTypes:i.config.possibleTypes,typePolicies:i.config.typePolicies}),i.init(),i}return __extends(InMemoryCache,r),InMemoryCache.prototype.init=function(){var r=this.data=new at.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=r.stump,this.resetResultCache()},InMemoryCache.prototype.resetResultCache=function(r){var o=this,i=this.storeReader;this.storeWriter=new yt(this,this.storeReader=new ht({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canon:r?void 0:i&&i.canon})),this.maybeBroadcastWatch=wrap((function(r,i){return o.broadcastWatch(r,i)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function makeCacheKey(r){var i=r.optimistic?o.optimisticData:o.data;if(supportsResultCaching(i)){var a=r.optimistic,c=r.rootId,u=r.variables;return i.makeCacheKey(r.query,r.callback,dt({optimistic:a,rootId:c,variables:u}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(r){return r.resetCaching()}))},InMemoryCache.prototype.restore=function(r){return this.init(),r&&this.data.replace(r),this},InMemoryCache.prototype.extract=function(r){return void 0===r&&(r=!1),(r?this.optimisticData:this.data).extract()},InMemoryCache.prototype.read=function(r){var o=r.returnPartialData,i=void 0!==o&&o;try{return this.storeReader.diffQueryAgainstStore(E(E({},r),{store:r.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:i})).result||null}catch(a){if(a instanceof Te)return null;throw a}},InMemoryCache.prototype.write=function(r){try{return++this.txCount,this.storeWriter.writeToStore(this.data,r)}finally{--this.txCount||!1===r.broadcast||this.broadcastWatches()}},InMemoryCache.prototype.modify=function(r){if(tt.call(r,"id")&&!r.id)return!1;var o=r.optimistic?this.optimisticData:this.data;try{return++this.txCount,o.modify(r.id||"ROOT_QUERY",r.fields)}finally{--this.txCount||!1===r.broadcast||this.broadcastWatches()}},InMemoryCache.prototype.diff=function(r){return this.storeReader.diffQueryAgainstStore(E(E({},r),{store:r.optimistic?this.optimisticData:this.data,rootId:r.id||"ROOT_QUERY",config:this.config}))},InMemoryCache.prototype.watch=function(r){var o=this;return this.watches.size||function recallCache(r){getCacheInfo(r).vars.forEach((function(o){return o.attachCache(r)}))}(this),this.watches.add(r),r.immediate&&this.maybeBroadcastWatch(r),function(){o.watches.delete(r)&&!o.watches.size&&function forgetCache(r){getCacheInfo(r).vars.forEach((function(o){return o.forgetCache(r)}))}(o),o.maybeBroadcastWatch.forget(r)}},InMemoryCache.prototype.gc=function(r){dt.reset();var o=this.optimisticData.gc();return r&&!this.txCount&&(r.resetResultCache?this.resetResultCache(r.resetResultIdentities):r.resetResultIdentities&&this.storeReader.resetCanon()),o},InMemoryCache.prototype.retain=function(r,o){return(o?this.optimisticData:this.data).retain(r)},InMemoryCache.prototype.release=function(r,o){return(o?this.optimisticData:this.data).release(r)},InMemoryCache.prototype.identify=function(r){return isReference(r)?r.__ref:this.policies.identify(r)[0]},InMemoryCache.prototype.evict=function(r){if(!r.id){if(tt.call(r,"id"))return!1;r=E(E({},r),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(r)}finally{--this.txCount||!1===r.broadcast||this.broadcastWatches()}},InMemoryCache.prototype.reset=function(){return this.init(),this.broadcastWatches(),dt.reset(),Promise.resolve()},InMemoryCache.prototype.removeOptimistic=function(r){var o=this.optimisticData.removeLayer(r);o!==this.optimisticData&&(this.optimisticData=o,this.broadcastWatches())},InMemoryCache.prototype.batch=function(r){var o=this,i=r.update,a=r.optimistic,c=void 0===a||a,u=r.removeOptimistic,l=r.onWatchUpdated,p=function perform(r){var a=o,c=a.data,u=a.optimisticData;++o.txCount,r&&(o.data=o.optimisticData=r);try{i(o)}finally{--o.txCount,o.data=c,o.optimisticData=u}},d=new Set;l&&!this.txCount&&this.broadcastWatches(E(E({},r),{onWatchUpdated:function onWatchUpdated(r){return d.add(r),!1}})),"string"===typeof c?this.optimisticData=this.optimisticData.addLayer(c,p):!1===c?p(this.data):p(),"string"===typeof u&&(this.optimisticData=this.optimisticData.removeLayer(u)),l&&d.size?(this.broadcastWatches(E(E({},r),{onWatchUpdated:function onWatchUpdated(r,o){var i=l.call(this,r,o);return!1!==i&&d.delete(r),i}})),d.size&&d.forEach((function(r){return o.maybeBroadcastWatch.dirty(r)}))):this.broadcastWatches(r)},InMemoryCache.prototype.performTransaction=function(r,o){return this.batch({update:r,optimistic:o||null!==o})},InMemoryCache.prototype.transformDocument=function(r){if(this.addTypename){var o=this.typenameDocumentCache.get(r);return o||(o=De(r),this.typenameDocumentCache.set(r,o),this.typenameDocumentCache.set(o,o)),o}return r},InMemoryCache.prototype.broadcastWatches=function(r){var o=this;this.txCount||this.watches.forEach((function(i){return o.maybeBroadcastWatch(i,r)}))},InMemoryCache.prototype.broadcastWatch=function(r,o){var i=r.lastDiff,a=this.diff({query:r.query,variables:r.variables,optimistic:r.optimistic});o&&(r.optimistic&&"string"===typeof o.optimistic&&(a.fromOptimisticTransaction=!0),o.onWatchUpdated&&!1===o.onWatchUpdated.call(this,r,a,i))||i&&equal(i.result,a.result)||r.callback(r.lastDiff=a,i)},InMemoryCache}(Oe),Log_spreadArrays=function(){for(var r=0,o=0,i=arguments.length;o0&&c[c.length-1])&&(6===u[0]||2===u[0])){l=0;continue}if(3===u[0]&&(!c||u[1]>c[0]&&u[1]0&&c[c.length-1])&&(6===u[0]||2===u[0])){l=0;continue}if(3===u[0]&&(!c||u[1]>c[0]&&u[1]this.maxSize&&!this.paused?[4,this.purge()]:[3,4];case 3:return i.sent(),this.paused=!0,[2];case 4:return this.paused?[2]:[4,this.storage.write(r)];case 5:return i.sent(),this.log.info("string"===typeof r?"Persisted cache of size "+r.length+" characters":"Persisted cache"),[3,7];case 6:throw o=i.sent(),this.log.error("Error persisting cache",o),o;case 7:return[2]}}))}))},Persistor.prototype.restore=function(){return Persistor_awaiter(this,void 0,void 0,(function(){var r,o;return Persistor_generator(this,(function(i){switch(i.label){case 0:return i.trys.push([0,5,,6]),[4,this.storage.read()];case 1:return null==(r=i.sent())?[3,3]:[4,this.cache.restore(r)];case 2:return i.sent(),this.log.info("string"===typeof r?"Restored cache of size "+r.length+" characters":"Restored cache"),[3,4];case 3:this.log.info("No stored cache to restore"),i.label=4;case 4:return[3,6];case 5:throw o=i.sent(),this.log.error("Error restoring cache",o),o;case 6:return[2]}}))}))},Persistor.prototype.purge=function(){return Persistor_awaiter(this,void 0,void 0,(function(){var r;return Persistor_generator(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.storage.purge()];case 1:return o.sent(),this.log.info("Purged cache storage"),[3,3];case 2:throw r=o.sent(),this.log.error("Error purging cache storage",r),r;case 3:return[2]}}))}))},Persistor}(),onCacheWrite=function(r){var o=r.cache;return function(r){var i=o.write,a=o.evict,c=o.modify;return o.write=function(){for(var a=[],c=0;c=r.length?{done:!0}:{done:!1,value:r[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function module_arrayLikeToArray(r,o){(null==o||o>r.length)&&(o=r.length);for(var i=0,a=new Array(o);i1,c=!1,u=arguments[1],l=u;return new i((function(i){return o.subscribe({next:function next(o){var u=!c;if(c=!0,!u||a)try{l=r(l,o)}catch(p){return i.error(p)}else l=o},error:function error(r){i.error(r)},complete:function complete(){if(!c&&!a)return i.error(new TypeError("Cannot reduce an empty sequence"));i.next(l),i.complete()}})}))},r.concat=function concat(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a=0&&c.splice(r,1),completeIfDone()}});c.push(u)},error:function error(r){a.error(r)},complete:function complete(){completeIfDone()}});function completeIfDone(){u.closed&&0===c.length&&a.complete()}return function(){c.forEach((function(r){return r.unsubscribe()})),u.unsubscribe()}}))},r[Wt]=function(){return this},Observable.from=function from(r){var o="function"===typeof this?this:Observable;if(null==r)throw new TypeError(r+" is not an object");var i=getMethod(r,Wt);if(i){var a=i.call(r);if(Object(a)!==a)throw new TypeError(a+" is not an object");return isObservable(a)&&a.constructor===o?a:new o((function(r){return a.subscribe(r)}))}if(Ht("iterator")&&(i=getMethod(r,Gt)))return new o((function(o){enqueue((function(){if(!o.closed){for(var a,c=_createForOfIteratorHelperLoose(i.call(r));!(a=c()).done;){var u=a.value;if(o.next(u),o.closed)return}o.complete()}}))}));if(Array.isArray(r))return new o((function(o){enqueue((function(){if(!o.closed){for(var i=0;i=300&&tn(o,i,"Response not successful: Received status code "+o.status),Array.isArray(i)||nn.call(i,"data")||nn.call(i,"errors")||tn(o,i,"Server response was missing for query '"+(Array.isArray(r)?r.map((function(r){return r.operationName})):r.operationName)+"'."),i}))}}(r)).then((function(r){return i.next(r),i.complete(),r})).catch((function(r){"AbortError"!==r.name&&(r.result&&r.result.errors&&r.result.data&&i.next(r.result),i.error(r))})),function(){v&&v.abort()}}))}))},sn=function(r){function HttpLink(o){void 0===o&&(o={});var i=r.call(this,an(o).request)||this;return i.options=o,i}return __extends(HttpLink,r),HttpLink}($t),cn=$t.execute;function compact(){for(var r=[],o=0;o0||!1}function iterateObserversSafely(r,o,i){var a=[];r.forEach((function(r){return r[o]&&a.push(r)})),a.forEach((function(r){return r[o](i)}))}function fixObservableSubclass(r){function set(o){Object.defineProperty(r,o,{value:Xt})}return"function"===typeof Symbol&&Symbol.species&&set(Symbol.species),set("@@species"),r}function Concast_isPromiseLike(r){return r&&"function"===typeof r.then}var un=function(r){function Concast(o){var i=r.call(this,(function(r){return i.addObserver(r),function(){return i.removeObserver(r)}}))||this;return i.observers=new Set,i.addCount=0,i.promise=new Promise((function(r,o){i.resolve=r,i.reject=o})),i.handlers={next:function next(r){null!==i.sub&&(i.latest=["next",r],iterateObserversSafely(i.observers,"next",r))},error:function error(r){var o=i.sub;null!==o&&(o&&Promise.resolve().then((function(){return o.unsubscribe()})),i.sub=null,i.latest=["error",r],i.reject(r),iterateObserversSafely(i.observers,"error",r))},complete:function complete(){if(null!==i.sub){var r=i.sources.shift();r?Concast_isPromiseLike(r)?r.then((function(r){return i.sub=r.subscribe(i.handlers)})):i.sub=r.subscribe(i.handlers):(i.sub=null,i.latest&&"next"===i.latest[0]?i.resolve(i.latest[1]):i.resolve(),iterateObserversSafely(i.observers,"complete"))}}},i.cancel=function(r){i.reject(r),i.sources=[],i.handlers.complete()},i.promise.catch((function(r){})),"function"===typeof o&&(o=[new Xt(o)]),Concast_isPromiseLike(o)?o.then((function(r){return i.start(r)}),i.handlers.error):i.start(o),i}return __extends(Concast,r),Concast.prototype.start=function(r){void 0===this.sub&&(this.sources=Array.from(r),this.handlers.complete())},Concast.prototype.deliverLastMessage=function(r){if(this.latest){var o=this.latest[0],i=r[o];i&&i.call(r,this.latest[1]),null===this.sub&&"next"===o&&r.complete&&r.complete()}},Concast.prototype.addObserver=function(r){this.observers.has(r)||(this.deliverLastMessage(r),this.observers.add(r),++this.addCount)},Concast.prototype.removeObserver=function(r,o){this.observers.delete(r)&&--this.addCount<1&&!o&&this.handlers.error(new Error("Observable cancelled prematurely"))},Concast.prototype.cleanup=function(r){var o=this,i=!1,a=function once(){i||(i=!0,o.observers.delete(c),r())},c={next:a,error:a,complete:a},u=this.addCount;this.addObserver(c),this.addCount=u},Concast}(Xt);function isNonEmptyArray(r){return Array.isArray(r)&&r.length>0}fixObservableSubclass(un),__DEV__?invariant_esm_invariant("boolean"===typeof Be,Be):invariant_esm_invariant("boolean"===typeof Be,22);var ln,pn=function(r){function ApolloError(o){var i=o.graphQLErrors,a=o.clientErrors,c=o.networkError,u=o.errorMessage,l=o.extraInfo,p=r.call(this,u)||this;return p.graphQLErrors=i||[],p.clientErrors=a||[],p.networkError=c||null,p.message=u||function generateErrorMessage(r){var o="";return(isNonEmptyArray(r.graphQLErrors)||isNonEmptyArray(r.clientErrors))&&(r.graphQLErrors||[]).concat(r.clientErrors||[]).forEach((function(r){var i=r?r.message:"Error message not found.";o+=i+"\n"})),r.networkError&&(o+=r.networkError.message+"\n"),o=o.replace(/\n$/,"")}(p),p.extraInfo=l,p.__proto__=ApolloError.prototype,p}return __extends(ApolloError,r),ApolloError}(Error);function isNetworkRequestInFlight(r){return!!r&&r<7}!function(r){r[r.loading=1]="loading",r[r.setVariables=2]="setVariables",r[r.fetchMore=3]="fetchMore",r[r.refetch=4]="refetch",r[r.poll=6]="poll",r[r.ready=7]="ready",r[r.error=8]="error"}(ln||(ln={}));var dn=!1,hn=function(r){function ObservableQuery(o){var i=o.queryManager,a=o.queryInfo,c=o.options,u=r.call(this,(function(r){try{var i=r._subscription._observer;i&&!i.error&&(i.error=defaultSubscriptionObserverErrorCallback)}catch(o){}var a=!u.observers.size;return u.observers.add(r),u.lastError?r.error&&r.error(u.lastError):u.lastResult&&r.next&&r.next(u.lastResult),a&&u.reobserve().catch((function(){})),function(){u.observers.delete(r)&&!u.observers.size&&u.tearDownQuery()}}))||this;u.observers=new Set,u.subscriptions=new Set,u.observer={next:function next(r){(u.lastError||u.isDifferentFromLastResult(r))&&(u.updateLastResult(r),iterateObserversSafely(u.observers,"next",r))},error:function error(r){u.updateLastResult(E(E({},u.lastResult),{error:r,errors:r.graphQLErrors,networkStatus:ln.error,loading:!1})),iterateObserversSafely(u.observers,"error",u.lastError=r)}},u.isTornDown=!1,u.options=c,u.queryId=a.queryId||i.generateQueryId();var l=getOperationDefinition(c.query);return u.queryName=l&&l.name&&l.name.value,u.initialFetchPolicy=c.fetchPolicy||"cache-first",u.queryManager=i,u.queryInfo=a,u}return __extends(ObservableQuery,r),Object.defineProperty(ObservableQuery.prototype,"variables",{get:function get(){return this.options.variables},enumerable:!1,configurable:!0}),ObservableQuery.prototype.result=function(){var r=this;return new Promise((function(o,i){var a={next:function next(i){o(i),r.observers.delete(a),r.observers.size||r.queryManager.removeQuery(r.queryId),setTimeout((function(){c.unsubscribe()}),0)},error:i},c=r.subscribe(a)}))},ObservableQuery.prototype.getCurrentResult=function(r){void 0===r&&(r=!0);var o=this.lastResult,i=this.options.fetchPolicy,a=void 0===i?"cache-first":i,c=this.queryInfo.networkStatus||o&&o.networkStatus||ln.ready,u=E(E({},o),{loading:isNetworkRequestInFlight(c),networkStatus:c});if(!this.queryManager.transform(this.options.query).hasForcedResolvers){var l=this.queryInfo.getDiff();u.data=l.complete||this.options.returnPartialData?l.result:void 0,l.complete?(u.networkStatus!==ln.loading||"cache-first"!==a&&"cache-only"!==a||(u.networkStatus=ln.ready,u.loading=!1),delete u.partial):"no-cache"!==a&&(u.partial=!0),l.complete||this.options.partialRefetch||u.loading||u.data||u.error||(u.error=new pn({clientErrors:l.missing}))}return r&&this.updateLastResult(u),u},ObservableQuery.prototype.isDifferentFromLastResult=function(r){return!equal(this.lastResultSnapshot,r)},ObservableQuery.prototype.getLastResult=function(){return this.lastResult},ObservableQuery.prototype.getLastError=function(){return this.lastError},ObservableQuery.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},ObservableQuery.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},ObservableQuery.prototype.refetch=function(r){var o={pollInterval:0},i=this.options.fetchPolicy;return"no-cache"===i?o.fetchPolicy="no-cache":"cache-and-network"!==i&&(o.fetchPolicy="network-only"),r&&!equal(this.options.variables,r)&&(o.variables=this.options.variables=E(E({},this.options.variables),r)),this.queryInfo.resetLastWrite(),this.reobserve(o,ln.refetch)},ObservableQuery.prototype.fetchMore=function(r){var o=this,i=E(E({},r.query?r:E(E(E({},this.options),r),{variables:E(E({},this.options.variables),r.variables)})),{fetchPolicy:"no-cache"}),a=this.queryManager.generateQueryId();return i.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=ln.fetchMore,this.observe()),this.queryManager.fetchQuery(a,i,ln.fetchMore).then((function(a){var c=a.data,u=r.updateQuery;return u?(__DEV__&&!dn&&(__DEV__&&invariant_esm_invariant.warn("The updateQuery callback for fetchMore is deprecated, and will be removed\nin the next major version of Apollo Client.\n\nPlease convert updateQuery functions to field policies with appropriate\nread and merge functions, or use/adapt a helper function (such as\nconcatPagination, offsetLimitPagination, or relayStylePagination) from\n@apollo/client/utilities.\n\nThe field policy system handles pagination more effectively than a\nhand-written updateQuery function, and you only need to define the policy\nonce, rather than every time you call fetchMore."),dn=!0),o.updateQuery((function(r){return u(r,{fetchMoreResult:c,variables:i.variables})}))):o.queryManager.cache.writeQuery({query:i.query,variables:i.variables,data:c}),a})).finally((function(){o.queryManager.stopQuery(a),o.reobserve()}))},ObservableQuery.prototype.subscribeToMore=function(r){var o=this,i=this.queryManager.startGraphQLSubscription({query:r.document,variables:r.variables,context:r.context}).subscribe({next:function next(i){var a=r.updateQuery;a&&o.updateQuery((function(r,o){var c=o.variables;return a(r,{subscriptionData:i,variables:c})}))},error:function error(o){r.onError?r.onError(o):__DEV__&&invariant_esm_invariant.error("Unhandled GraphQL subscription error",o)}});return this.subscriptions.add(i),function(){o.subscriptions.delete(i)&&i.unsubscribe()}},ObservableQuery.prototype.setOptions=function(r){return this.reobserve(r)},ObservableQuery.prototype.setVariables=function(r){return equal(this.variables,r)?this.observers.size?this.result():Promise.resolve():(this.options.variables=r,this.observers.size?this.reobserve({fetchPolicy:this.initialFetchPolicy,variables:r},ln.setVariables):Promise.resolve())},ObservableQuery.prototype.updateQuery=function(r){var o,i=this.queryManager,a=r(i.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(o=this.lastResult)||void 0===o?void 0:o.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});a&&(i.cache.writeQuery({query:this.options.query,data:a,variables:this.variables}),i.broadcastQueries())},ObservableQuery.prototype.startPolling=function(r){this.options.pollInterval=r,this.updatePolling()},ObservableQuery.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},ObservableQuery.prototype.fetch=function(r,o){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,r,o)},ObservableQuery.prototype.updatePolling=function(){var r=this;if(!this.queryManager.ssrMode){var o=this.pollingInfo,i=this.options.pollInterval;if(i){if(!o||o.interval!==i){__DEV__?invariant_esm_invariant(i,"Attempted to start a polling query without a polling interval."):invariant_esm_invariant(i,13),(o||(this.pollingInfo={})).interval=i;var a=function maybeFetch(){r.pollingInfo&&(isNetworkRequestInFlight(r.queryInfo.networkStatus)?c():r.reobserve({fetchPolicy:"network-only"},ln.poll).then(c,c))},c=function poll(){var o=r.pollingInfo;o&&(clearTimeout(o.timeout),o.timeout=setTimeout(a,o.interval))};c()}}else o&&(clearTimeout(o.timeout),delete this.pollingInfo)}},ObservableQuery.prototype.updateLastResult=function(r){var o=this.lastResult;return this.lastResult=r,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?r:cloneDeep(r),isNonEmptyArray(r.errors)||delete this.lastError,o},ObservableQuery.prototype.reobserve=function(r,o){this.isTornDown=!1;var i=o===ln.refetch||o===ln.fetchMore||o===ln.poll,a=this.options.variables,c=i?compact(this.options,r):Object.assign(this.options,compact(r));i||(this.updatePolling(),r&&r.variables&&!r.fetchPolicy&&!equal(r.variables,a)&&(c.fetchPolicy=this.initialFetchPolicy,void 0===o&&(o=ln.setVariables)));var u=this.fetch(c,o);return i||(this.concast&&this.concast.removeObserver(this.observer,!0),this.concast=u),u.addObserver(this.observer),u.promise},ObservableQuery.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},ObservableQuery.prototype.hasObservers=function(){return this.observers.size>0},ObservableQuery.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&(this.concast.removeObserver(this.observer),delete this.concast),this.stopPolling(),this.subscriptions.forEach((function(r){return r.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},ObservableQuery}(Xt);function defaultSubscriptionObserverErrorCallback(r){__DEV__&&invariant_esm_invariant.error("Unhandled error",r.message,r.stack)}fixObservableSubclass(hn);var mn=function(){function LocalState(r){var o=r.cache,i=r.client,a=r.resolvers,c=r.fragmentMatcher;this.cache=o,i&&(this.client=i),a&&this.addResolvers(a),c&&this.setFragmentMatcher(c)}return LocalState.prototype.addResolvers=function(r){var o=this;this.resolvers=this.resolvers||{},Array.isArray(r)?r.forEach((function(r){o.resolvers=mergeDeep(o.resolvers,r)})):this.resolvers=mergeDeep(this.resolvers,r)},LocalState.prototype.setResolvers=function(r){this.resolvers={},this.addResolvers(r)},LocalState.prototype.getResolvers=function(){return this.resolvers||{}},LocalState.prototype.runResolvers=function(r){var o=r.document,i=r.remoteResult,a=r.context,c=r.variables,u=r.onlyRunForcedResolvers,l=void 0!==u&&u;return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){return o?[2,this.resolveDocument(o,i.data,a,c,this.fragmentMatcher,l).then((function(r){return E(E({},i),{data:r.result})}))]:[2,i]}))}))},LocalState.prototype.setFragmentMatcher=function(r){this.fragmentMatcher=r},LocalState.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},LocalState.prototype.clientQuery=function(r){return hasDirectives(["client"],r)&&this.resolvers?r:null},LocalState.prototype.serverQuery=function(r){return function removeClientSetsFromDocument(r){checkDocument(r);var o=removeDirectivesFromDocument([{test:function test(r){return"client"===r.name.value},remove:!0}],r);return o&&(o=visit(o,{FragmentDefinition:{enter:function enter(r){if(r.selectionSet&&r.selectionSet.selections.every((function(r){return storeUtils_isField(r)&&"__typename"===r.name.value})))return null}}})),o}(r)},LocalState.prototype.prepareContext=function(r){var o=this.cache;return E(E({},r),{cache:o,getCacheKey:function getCacheKey(r){return o.identify(r)}})},LocalState.prototype.addExportedVariables=function(r,o,i){return void 0===o&&(o={}),void 0===i&&(i={}),__awaiter(this,void 0,void 0,(function(){return __generator(this,(function(a){return r?[2,this.resolveDocument(r,this.buildRootValueFromCache(r,o)||{},this.prepareContext(i),o).then((function(r){return E(E({},o),r.exportedVariables)}))]:[2,E({},o)]}))}))},LocalState.prototype.shouldForceResolvers=function(r){var o=!1;return visit(r,{Directive:{enter:function enter(r){if("client"===r.name.value&&r.arguments&&(o=r.arguments.some((function(r){return"always"===r.name.value&&"BooleanValue"===r.value.kind&&!0===r.value.value}))))return xe}}}),o},LocalState.prototype.buildRootValueFromCache=function(r,o){return this.cache.diff({query:buildQueryFromSelectionSet(r),variables:o,returnPartialData:!0,optimistic:!1}).result},LocalState.prototype.resolveDocument=function(r,o,i,a,c,u){return void 0===i&&(i={}),void 0===a&&(a={}),void 0===c&&(c=function fragmentMatcher(){return!0}),void 0===u&&(u=!1),__awaiter(this,void 0,void 0,(function(){var l,p,d,h,m,y,v,g,_;return __generator(this,(function(b){return l=getMainDefinition(r),p=getFragmentDefinitions(r),d=createFragmentMap(p),h=l.operation,m=h?h.charAt(0).toUpperCase()+h.slice(1):"Query",v=(y=this).cache,g=y.client,_={fragmentMap:d,context:E(E({},i),{cache:v,client:g}),variables:a,fragmentMatcher:c,defaultOperationType:m,exportedVariables:{},onlyRunForcedResolvers:u},[2,this.resolveSelectionSet(l.selectionSet,o,_).then((function(r){return{result:r,exportedVariables:_.exportedVariables}}))]}))}))},LocalState.prototype.resolveSelectionSet=function(r,o,i){return __awaiter(this,void 0,void 0,(function(){var a,c,u,l,p,d=this;return __generator(this,(function(h){return a=i.fragmentMap,c=i.context,u=i.variables,l=[o],p=function execute(r){return __awaiter(d,void 0,void 0,(function(){var p,d;return __generator(this,(function(h){return shouldInclude(r,u)?storeUtils_isField(r)?[2,this.resolveField(r,o,i).then((function(o){var i;"undefined"!==typeof o&&l.push(((i={})[resultKeyNameFromField(r)]=o,i))}))]:(isInlineFragment(r)?p=r:(p=a[r.name.value],__DEV__?invariant_esm_invariant(p,"No fragment named "+r.name.value):invariant_esm_invariant(p,12)),p&&p.typeCondition&&(d=p.typeCondition.name.value,i.fragmentMatcher(o,d,c))?[2,this.resolveSelectionSet(p.selectionSet,o,i).then((function(r){l.push(r)}))]:[2]):[2]}))}))},[2,Promise.all(r.selections.map(p)).then((function(){return mergeDeepArray(l)}))]}))}))},LocalState.prototype.resolveField=function(r,o,i){return __awaiter(this,void 0,void 0,(function(){var a,c,u,l,p,d,h,m,y,v=this;return __generator(this,(function(g){return a=i.variables,c=r.name.value,u=resultKeyNameFromField(r),l=c!==u,p=o[u]||o[c],d=Promise.resolve(p),i.onlyRunForcedResolvers&&!this.shouldForceResolvers(r)||(h=o.__typename||i.defaultOperationType,(m=this.resolvers&&this.resolvers[h])&&(y=m[l?c:u])&&(d=Promise.resolve(_t.withValue(this.cache,y,[o,argumentsObjectFromField(r,a),i.context,{field:r,fragmentMap:i.fragmentMap}])))),[2,d.then((function(o){return void 0===o&&(o=p),r.directives&&r.directives.forEach((function(r){"export"===r.name.value&&r.arguments&&r.arguments.forEach((function(r){"as"===r.name.value&&"StringValue"===r.value.kind&&(i.exportedVariables[r.value.value]=o)}))})),r.selectionSet?null==o?o:Array.isArray(o)?v.resolveSubSelectedArray(r,o,i):r.selectionSet?v.resolveSelectionSet(r.selectionSet,o,i):void 0:o}))]}))}))},LocalState.prototype.resolveSubSelectedArray=function(r,o,i){var a=this;return Promise.all(o.map((function(o){return null===o?null:Array.isArray(o)?a.resolveSubSelectedArray(r,o,i):r.selectionSet?a.resolveSelectionSet(r.selectionSet,o,i):void 0})))},LocalState}(),yn=new(Re?WeakMap:Map);function wrapDestructiveCacheMethod(r,o){var i=r[o];"function"===typeof i&&(r[o]=function(){return yn.set(r,(yn.get(r)+1)%1e15),i.apply(this,arguments)})}function cancelNotifyTimeout(r){r.notifyTimeout&&(clearTimeout(r.notifyTimeout),r.notifyTimeout=void 0)}var vn=function(){function QueryInfo(r,o){void 0===o&&(o=r.generateQueryId()),this.queryId=o,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var i=this.cache=r.cache;yn.has(i)||(yn.set(i,0),wrapDestructiveCacheMethod(i,"evict"),wrapDestructiveCacheMethod(i,"modify"),wrapDestructiveCacheMethod(i,"reset"))}return QueryInfo.prototype.init=function(r){var o=r.networkStatus||ln.loading;return this.variables&&this.networkStatus!==ln.loading&&!equal(this.variables,r.variables)&&(o=ln.setVariables),equal(r.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:r.document,variables:r.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:o}),r.observableQuery&&this.setObservableQuery(r.observableQuery),r.lastRequestId&&(this.lastRequestId=r.lastRequestId),this},QueryInfo.prototype.reset=function(){cancelNotifyTimeout(this),this.lastDiff=void 0,this.dirty=!1},QueryInfo.prototype.getDiff=function(r){void 0===r&&(r=this.variables);var o=this.getDiffOptions(r);if(this.lastDiff&&equal(o,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=r);var i=this.observableQuery;if(i&&"no-cache"===i.options.fetchPolicy)return{complete:!1};var a=this.cache.diff(o);return this.updateLastDiff(a,o),a},QueryInfo.prototype.updateLastDiff=function(r,o){this.lastDiff=r?{diff:r,options:o||this.getDiffOptions()}:void 0},QueryInfo.prototype.getDiffOptions=function(r){void 0===r&&(r=this.variables);var o=this.observableQuery;return{query:this.document,variables:r,returnPartialData:!0,optimistic:!0,canonizeResults:!o||!1!==o.options.canonizeResults}},QueryInfo.prototype.setDiff=function(r){var o=this,i=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(r),this.dirty||equal(i&&i.result,r&&r.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return o.notify()}),0)))},QueryInfo.prototype.setObservableQuery=function(r){var o=this;r!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=r,r?(r.queryInfo=this,this.listeners.add(this.oqListener=function(){o.getDiff().fromOptimisticTransaction?r.observe():r.reobserve()})):delete this.oqListener)},QueryInfo.prototype.notify=function(){var r=this;cancelNotifyTimeout(this),this.shouldNotify()&&this.listeners.forEach((function(o){return o(r)})),this.dirty=!1},QueryInfo.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(isNetworkRequestInFlight(this.networkStatus)&&this.observableQuery){var r=this.observableQuery.options.fetchPolicy;if("cache-only"!==r&&"cache-and-network"!==r)return!1}return!0},QueryInfo.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=QueryInfo.prototype.cancel,this.subscriptions.forEach((function(r){return r.unsubscribe()}));var r=this.observableQuery;r&&r.stopPolling()}},QueryInfo.prototype.cancel=function(){},QueryInfo.prototype.updateWatch=function(r){var o=this;void 0===r&&(r=this.variables);var i=this.observableQuery;if(!i||"no-cache"!==i.options.fetchPolicy){var a=E(E({},this.getDiffOptions(r)),{watcher:this,callback:function callback(r){return o.setDiff(r)}});this.lastWatch&&equal(a,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=a))}},QueryInfo.prototype.resetLastWrite=function(){this.lastWrite=void 0},QueryInfo.prototype.shouldWrite=function(r,o){var i=this.lastWrite;return!(i&&i.dmCount===yn.get(this.cache)&&equal(o,i.variables)&&equal(r.data,i.result.data))},QueryInfo.prototype.markResult=function(r,o,i){var a=this;this.graphQLErrors=isNonEmptyArray(r.errors)?r.errors:[],this.reset(),"no-cache"===o.fetchPolicy?this.updateLastDiff({result:r.data,complete:!0},this.getDiffOptions(o.variables)):0!==i&&(shouldWriteResult(r,o.errorPolicy)?this.cache.performTransaction((function(c){if(a.shouldWrite(r,o.variables))c.writeQuery({query:a.document,data:r.data,variables:o.variables,overwrite:1===i}),a.lastWrite={result:r,variables:o.variables,dmCount:yn.get(a.cache)};else if(a.lastDiff&&a.lastDiff.diff.complete)return void(r.data=a.lastDiff.diff.result);var u=a.getDiffOptions(o.variables),l=c.diff(u);a.stopped||a.updateWatch(o.variables),a.updateLastDiff(l,u),l.complete&&(r.data=l.result)})):this.lastWrite=void 0)},QueryInfo.prototype.markReady=function(){return this.networkError=null,this.networkStatus=ln.ready},QueryInfo.prototype.markError=function(r){return this.networkStatus=ln.error,this.lastWrite=void 0,this.reset(),r.graphQLErrors&&(this.graphQLErrors=r.graphQLErrors),r.networkError&&(this.networkError=r.networkError),r},QueryInfo}();function shouldWriteResult(r,o){void 0===o&&(o="none");var i="ignore"===o||"all"===o,a=!graphQLResultHasError(r);return!a&&i&&r.data&&(a=!0),a}var gn=Object.prototype.hasOwnProperty,_n=function(){function QueryManager(r){var o=r.cache,i=r.link,a=r.queryDeduplication,c=void 0!==a&&a,u=r.onBroadcast,l=r.ssrMode,p=void 0!==l&&l,d=r.clientAwareness,h=void 0===d?{}:d,m=r.localState,y=r.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Re?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=o,this.link=i,this.queryDeduplication=c,this.clientAwareness=h,this.localState=m||new mn({cache:o}),this.ssrMode=p,this.assumeImmutableResults=!!y,(this.onBroadcast=u)&&(this.mutationStore=Object.create(null))}return QueryManager.prototype.stop=function(){var r=this;this.queries.forEach((function(o,i){r.stopQueryNoBroadcast(i)})),this.cancelPendingFetches(__DEV__?new Ee("QueryManager stopped while query was in flight"):new Ee(14))},QueryManager.prototype.cancelPendingFetches=function(r){this.fetchCancelFns.forEach((function(o){return o(r)})),this.fetchCancelFns.clear()},QueryManager.prototype.mutate=function(r){var o=r.mutation,i=r.variables,a=r.optimisticResponse,c=r.updateQueries,u=r.refetchQueries,l=void 0===u?[]:u,p=r.awaitRefetchQueries,d=void 0!==p&&p,h=r.update,m=r.onQueryUpdated,y=r.errorPolicy,v=void 0===y?"none":y,g=r.fetchPolicy,_=r.keepRootFields,b=r.context;return __awaiter(this,void 0,void 0,(function(){var r,u,p;return __generator(this,(function(y){switch(y.label){case 0:return __DEV__?invariant_esm_invariant(o,"mutation option is required. You must specify your GraphQL document in the mutation option."):invariant_esm_invariant(o,15),__DEV__?invariant_esm_invariant(!g||"no-cache"===g,"Mutations only support a 'no-cache' fetchPolicy. If you don't want to disable the cache, remove your fetchPolicy setting to proceed with the default mutation behavior."):invariant_esm_invariant(!g||"no-cache"===g,16),r=this.generateMutationId(),o=this.transform(o).document,i=this.getVariables(o,i),this.transform(o).hasClientExports?[4,this.localState.addExportedVariables(o,i,b)]:[3,2];case 1:i=y.sent(),y.label=2;case 2:return u=this.mutationStore&&(this.mutationStore[r]={mutation:o,variables:i,loading:!0,error:null}),a&&this.markMutationOptimistic(a,{mutationId:r,document:o,variables:i,fetchPolicy:g,errorPolicy:v,context:b,updateQueries:c,update:h,keepRootFields:_}),this.broadcastQueries(),p=this,[2,new Promise((function(y,w){return asyncMap(p.getObservableFromLink(o,E(E({},b),{optimisticResponse:a}),i,!1),(function(y){if(graphQLResultHasError(y)&&"none"===v)throw new pn({graphQLErrors:y.errors});u&&(u.loading=!1,u.error=null);var w=E({},y);return"function"===typeof l&&(l=l(w)),"ignore"===v&&graphQLResultHasError(w)&&delete w.errors,p.markMutationResult({mutationId:r,result:w,document:o,variables:i,fetchPolicy:g,errorPolicy:v,context:b,update:h,updateQueries:c,awaitRefetchQueries:d,refetchQueries:l,removeOptimistic:a?r:void 0,onQueryUpdated:m,keepRootFields:_})})).subscribe({next:function next(r){p.broadcastQueries(),y(r)},error:function error(o){u&&(u.loading=!1,u.error=o),a&&p.cache.removeOptimistic(r),p.broadcastQueries(),w(o instanceof pn?o:new pn({networkError:o}))}})}))]}}))}))},QueryManager.prototype.markMutationResult=function(r,o){var i=this;void 0===o&&(o=this.cache);var a=r.result,c=[],u="no-cache"===r.fetchPolicy;if(!u&&shouldWriteResult(a,r.errorPolicy)){c.push({result:a.data,dataId:"ROOT_MUTATION",query:r.document,variables:r.variables});var l=r.updateQueries;l&&this.queries.forEach((function(r,u){var p=r.observableQuery,d=p&&p.queryName;if(d&&gn.call(l,d)){var h=l[d],m=i.queries.get(u),y=m.document,v=m.variables,g=o.diff({query:y,variables:v,returnPartialData:!0,optimistic:!1}),_=g.result;if(g.complete&&_){var b=h(_,{mutationResult:a,queryName:y&&getOperationName(y)||void 0,queryVariables:v});b&&c.push({result:b,dataId:"ROOT_QUERY",query:y,variables:v})}}}))}if(c.length>0||r.refetchQueries||r.update||r.onQueryUpdated||r.removeOptimistic){var p=[];if(this.refetchQueries({updateCache:function updateCache(o){u||c.forEach((function(r){return o.write(r)}));var l=r.update;if(l){if(!u){var p=o.diff({id:"ROOT_MUTATION",query:i.transform(r.document).asQuery,variables:r.variables,optimistic:!1,returnPartialData:!0});p.complete&&(a=E(E({},a),{data:p.result}))}l(o,a,{context:r.context,variables:r.variables})}u||r.keepRootFields||o.modify({id:"ROOT_MUTATION",fields:function fields(r,o){var i=o.fieldName,a=o.DELETE;return"__typename"===i?r:a}})},include:r.refetchQueries,optimistic:!1,removeOptimistic:r.removeOptimistic,onQueryUpdated:r.onQueryUpdated||null}).forEach((function(r){return p.push(r)})),r.awaitRefetchQueries||r.onQueryUpdated)return Promise.all(p).then((function(){return a}))}return Promise.resolve(a)},QueryManager.prototype.markMutationOptimistic=function(r,o){var i=this,a="function"===typeof r?r(o.variables):r;return this.cache.recordOptimisticTransaction((function(r){try{i.markMutationResult(E(E({},o),{result:{data:a}}),r)}catch(c){__DEV__&&invariant_esm_invariant.error(c)}}),o.mutationId)},QueryManager.prototype.fetchQuery=function(r,o,i){return this.fetchQueryObservable(r,o,i).promise},QueryManager.prototype.getQueryStore=function(){var r=Object.create(null);return this.queries.forEach((function(o,i){r[i]={variables:o.variables,networkStatus:o.networkStatus,networkError:o.networkError,graphQLErrors:o.graphQLErrors}})),r},QueryManager.prototype.resetErrors=function(r){var o=this.queries.get(r);o&&(o.networkError=void 0,o.graphQLErrors=[])},QueryManager.prototype.transform=function(r){var o=this.transformCache;if(!o.has(r)){var i=this.cache.transformDocument(r),a=function removeConnectionDirectiveFromDocument(r){return removeDirectivesFromDocument([Le],checkDocument(r))}(this.cache.transformForLink(i)),c=this.localState.clientQuery(i),u=a&&this.localState.serverQuery(a),l={document:i,hasClientExports:hasClientExports(i),hasForcedResolvers:this.localState.shouldForceResolvers(i),clientQuery:c,serverQuery:u,defaultVars:getDefaultValues(getOperationDefinition(i)),asQuery:E(E({},i),{definitions:i.definitions.map((function(r){return"OperationDefinition"===r.kind&&"query"!==r.operation?E(E({},r),{operation:"query"}):r}))})},p=function add(r){r&&!o.has(r)&&o.set(r,l)};p(r),p(i),p(c),p(u)}return o.get(r)},QueryManager.prototype.getVariables=function(r,o){return E(E({},this.transform(r).defaultVars),o)},QueryManager.prototype.watchQuery=function(r){"undefined"===typeof(r=E(E({},r),{variables:this.getVariables(r.query,r.variables)})).notifyOnNetworkStatusChange&&(r.notifyOnNetworkStatusChange=!1);var o=new vn(this),i=new hn({queryManager:this,queryInfo:o,options:r});return this.queries.set(i.queryId,o),o.init({document:r.query,observableQuery:i,variables:r.variables}),i},QueryManager.prototype.query=function(r,o){var i=this;return void 0===o&&(o=this.generateQueryId()),__DEV__?invariant_esm_invariant(r.query,"query option is required. You must specify your GraphQL document in the query option."):invariant_esm_invariant(r.query,17),__DEV__?invariant_esm_invariant("Document"===r.query.kind,'You must wrap the query string in a "gql" tag.'):invariant_esm_invariant("Document"===r.query.kind,18),__DEV__?invariant_esm_invariant(!r.returnPartialData,"returnPartialData option only supported on watchQuery."):invariant_esm_invariant(!r.returnPartialData,19),__DEV__?invariant_esm_invariant(!r.pollInterval,"pollInterval option only supported on watchQuery."):invariant_esm_invariant(!r.pollInterval,20),this.fetchQuery(o,r).finally((function(){return i.stopQuery(o)}))},QueryManager.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},QueryManager.prototype.generateRequestId=function(){return this.requestIdCounter++},QueryManager.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},QueryManager.prototype.stopQueryInStore=function(r){this.stopQueryInStoreNoBroadcast(r),this.broadcastQueries()},QueryManager.prototype.stopQueryInStoreNoBroadcast=function(r){var o=this.queries.get(r);o&&o.stop()},QueryManager.prototype.clearStore=function(){return this.cancelPendingFetches(__DEV__?new Ee("Store reset while query was in flight (not completed in link chain)"):new Ee(21)),this.queries.forEach((function(r){r.observableQuery?r.networkStatus=ln.loading:r.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset()},QueryManager.prototype.resetStore=function(){var r=this;return this.clearStore().then((function(){return r.reFetchObservableQueries()}))},QueryManager.prototype.getObservableQueries=function(r){var o=this;void 0===r&&(r="active");var i=new Map,a=new Map,c=new Set;return Array.isArray(r)&&r.forEach((function(r){"string"===typeof r?a.set(r,!1):!function isDocumentNode(r){return isNonNullObject(r)&&"Document"===r.kind&&Array.isArray(r.definitions)}(r)?isNonNullObject(r)&&r.query&&c.add(r):a.set(o.transform(r).document,!1)})),this.queries.forEach((function(o,c){var u=o.observableQuery,l=o.document;if(u){if("all"===r)return void i.set(c,u);var p=u.queryName;if("standby"===u.options.fetchPolicy||!u.hasObservers())return;("active"===r||p&&a.has(p)||l&&a.has(l))&&(i.set(c,u),p&&a.set(p,!0),l&&a.set(l,!0))}})),c.size&&c.forEach((function(r){var a=makeUniqueId("legacyOneTimeQuery"),c=o.getQuery(a).init({document:r.query,variables:r.variables}),u=new hn({queryManager:o,queryInfo:c,options:E(E({},r),{fetchPolicy:"network-only"})});invariant_esm_invariant(u.queryId===a),c.setObservableQuery(u),i.set(a,u)})),__DEV__&&a.size&&a.forEach((function(r,o){r||__DEV__&&invariant_esm_invariant.warn("Unknown query "+("string"===typeof o?"named ":"")+JSON.stringify(o,null,2)+" requested in refetchQueries options.include array")})),i},QueryManager.prototype.reFetchObservableQueries=function(r){var o=this;void 0===r&&(r=!1);var i=[];return this.getObservableQueries(r?"all":"active").forEach((function(a,c){var u=a.options.fetchPolicy;a.resetLastResults(),(r||"standby"!==u&&"cache-only"!==u)&&i.push(a.refetch()),o.getQuery(c).setDiff(null)})),this.broadcastQueries(),Promise.all(i)},QueryManager.prototype.setObservableQuery=function(r){this.getQuery(r.queryId).setObservableQuery(r)},QueryManager.prototype.startGraphQLSubscription=function(r){var o=this,i=r.query,a=r.fetchPolicy,c=r.errorPolicy,u=r.variables,l=r.context,p=void 0===l?{}:l;i=this.transform(i).document,u=this.getVariables(i,u);var d=function makeObservable(r){return o.getObservableFromLink(i,p,r).map((function(u){if("no-cache"!==a&&(shouldWriteResult(u,c)&&o.cache.write({query:i,result:u.data,dataId:"ROOT_SUBSCRIPTION",variables:r}),o.broadcastQueries()),graphQLResultHasError(u))throw new pn({graphQLErrors:u.errors});return u}))};if(this.transform(i).hasClientExports){var h=this.localState.addExportedVariables(i,u,p).then(d);return new Xt((function(r){var o=null;return h.then((function(i){return o=i.subscribe(r)}),r.error),function(){return o&&o.unsubscribe()}}))}return d(u)},QueryManager.prototype.stopQuery=function(r){this.stopQueryNoBroadcast(r),this.broadcastQueries()},QueryManager.prototype.stopQueryNoBroadcast=function(r){this.stopQueryInStoreNoBroadcast(r),this.removeQuery(r)},QueryManager.prototype.removeQuery=function(r){this.fetchCancelFns.delete(r),this.getQuery(r).stop(),this.queries.delete(r)},QueryManager.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(r){return r.notify()}))},QueryManager.prototype.getLocalState=function(){return this.localState},QueryManager.prototype.getObservableFromLink=function(r,o,i,a){var c,u,l=this;void 0===a&&(a=null!==(c=null===o||void 0===o?void 0:o.queryDeduplication)&&void 0!==c?c:this.queryDeduplication);var p=this.transform(r).serverQuery;if(p){var d=this.inFlightLinkObservables,h=this.link,m={query:p,variables:i,operationName:getOperationName(p)||void 0,context:this.prepareContext(E(E({},o),{forceFetch:!a}))};if(o=m.context,a){var y=d.get(p)||new Map;d.set(p,y);var v=dt(i);if(!(u=y.get(v))){var g=new un([cn(h,m)]);y.set(v,u=g),g.cleanup((function(){y.delete(v)&&y.size<1&&d.delete(p)}))}}else u=new un([cn(h,m)])}else u=new un([Xt.of({data:{}})]),o=this.prepareContext(o);var _=this.transform(r).clientQuery;return _&&(u=asyncMap(u,(function(r){return l.localState.runResolvers({document:_,remoteResult:r,context:o,variables:i})}))),u},QueryManager.prototype.getResultsFromLink=function(r,o,i){var a=r.lastRequestId=this.generateRequestId();return asyncMap(this.getObservableFromLink(r.document,i.context,i.variables),(function(c){var u=isNonEmptyArray(c.errors);if(a>=r.lastRequestId){if(u&&"none"===i.errorPolicy)throw r.markError(new pn({graphQLErrors:c.errors}));r.markResult(c,i,o),r.markReady()}var l={data:c.data,loading:!1,networkStatus:r.networkStatus||ln.ready};return u&&"ignore"!==i.errorPolicy&&(l.errors=c.errors),l}),(function(o){var i=function isApolloError(r){return r.hasOwnProperty("graphQLErrors")}(o)?o:new pn({networkError:o});throw a>=r.lastRequestId&&r.markError(i),i}))},QueryManager.prototype.fetchQueryObservable=function(r,o,i){var a=this;void 0===i&&(i=ln.loading);var c=this.transform(o.query).document,u=this.getVariables(c,o.variables),l=this.getQuery(r),p=o.fetchPolicy,d=void 0===p?"cache-first":p,h=o.errorPolicy,m=void 0===h?"none":h,y=o.returnPartialData,v=void 0!==y&&y,g=o.notifyOnNetworkStatusChange,_=void 0!==g&&g,b=o.context,E=void 0===b?{}:b,w=Object.assign({},o,{query:c,variables:u,fetchPolicy:d,errorPolicy:m,returnPartialData:v,notifyOnNetworkStatusChange:_,context:E}),S=function fromVariables(r){return w.variables=r,a.fetchQueryByPolicy(l,w,i)};this.fetchCancelFns.set(r,(function(r){Promise.resolve().then((function(){return O.cancel(r)}))}));var O=new un(this.transform(w.query).hasClientExports?this.localState.addExportedVariables(w.query,w.variables,w.context).then(S):S(w.variables));return O.cleanup((function(){a.fetchCancelFns.delete(r),function applyNextFetchPolicy(r){var o=r.fetchPolicy,i=void 0===o?"cache-first":o,a=r.nextFetchPolicy;a&&(r.fetchPolicy="function"===typeof a?a.call(r,i):a)}(o)})),O},QueryManager.prototype.refetchQueries=function(r){var o=this,i=r.updateCache,a=r.include,c=r.optimistic,u=void 0!==c&&c,l=r.removeOptimistic,p=void 0===l?u?makeUniqueId("refetchQueries"):void 0:l,d=r.onQueryUpdated,h=new Map;a&&this.getObservableQueries(a).forEach((function(r,i){h.set(i,{oq:r,lastDiff:o.getQuery(i).getDiff()})}));var m=new Map;return i&&this.cache.batch({update:i,optimistic:u&&p||!1,removeOptimistic:p,onWatchUpdated:function onWatchUpdated(r,o,i){var a=r.watcher instanceof vn&&r.watcher.observableQuery;if(a){if(d){h.delete(a.queryId);var c=d(a,o,i);return!0===c&&(c=a.refetch()),!1!==c&&m.set(a,c),!1}null!==d&&h.set(a.queryId,{oq:a,lastDiff:i,diff:o})}}}),h.size&&h.forEach((function(r,i){var a,c=r.oq,u=r.lastDiff,l=r.diff;if(d){if(!l){var p=c.queryInfo;p.reset(),l=p.getDiff()}a=d(c,l,u)}d&&!0!==a||(a=c.refetch()),!1!==a&&m.set(c,a),i.indexOf("legacyOneTimeQuery")>=0&&o.stopQueryNoBroadcast(i)})),p&&this.cache.removeOptimistic(p),m},QueryManager.prototype.fetchQueryByPolicy=function(r,o,i){var a=this,c=o.query,u=o.variables,l=o.fetchPolicy,p=o.refetchWritePolicy,d=o.errorPolicy,h=o.returnPartialData,m=o.context,y=o.notifyOnNetworkStatusChange,v=r.networkStatus;r.init({document:c,variables:u,networkStatus:i});var g=function readCache(){return r.getDiff(u)},_=function resultsFromCache(o,i){void 0===i&&(i=r.networkStatus||ln.loading);var l=o.result;__DEV__&&isNonEmptyArray(o.missing)&&!equal(l,{})&&!h&&__DEV__&&invariant_esm_invariant.debug("Missing cache result fields: "+o.missing.map((function(r){return r.path.join(".")})).join(", "),o.missing);var p=function fromData(r){return Xt.of(E({data:r,loading:isNetworkRequestInFlight(i),networkStatus:i},o.complete?null:{partial:!0}))};return l&&a.transform(c).hasForcedResolvers?a.localState.runResolvers({document:c,remoteResult:{data:l},context:m,variables:u,onlyRunForcedResolvers:!0}).then((function(r){return p(r.data||void 0)})):p(l)},b="no-cache"===l?0:i===ln.refetch&&"merge"!==p?1:2,w=function resultsFromLink(){return a.getResultsFromLink(r,b,{variables:u,context:m,fetchPolicy:l,errorPolicy:d})},S=y&&"number"===typeof v&&v!==i&&isNetworkRequestInFlight(i);switch(l){default:case"cache-first":return(O=g()).complete?[_(O,r.markReady())]:h||S?[_(O),w()]:[w()];case"cache-and-network":var O;return(O=g()).complete||h||S?[_(O),w()]:[w()];case"cache-only":return[_(g(),r.markReady())];case"network-only":return S?[_(g()),w()]:[w()];case"no-cache":return S?[_(r.getDiff()),w()]:[w()];case"standby":return[]}},QueryManager.prototype.getQuery=function(r){return r&&!this.queries.has(r)&&this.queries.set(r,new vn(this,r)),this.queries.get(r)},QueryManager.prototype.prepareContext=function(r){void 0===r&&(r={});var o=this.localState.prepareContext(r);return E(E({},o),{clientAwareness:this.clientAwareness})},QueryManager}();function ApolloClient_typeof(r){return(ApolloClient_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(r){return typeof r}:function _typeof(r){return r&&"function"===typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}var bn=!1;function mergeOptions(r,o){return compact(r,o,o.variables&&{variables:E(E({},r.variables),o.variables)})}var En=function(){function ApolloClient(r){var o=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var i=r.uri,a=r.credentials,c=r.headers,u=r.cache,l=r.ssrMode,p=void 0!==l&&l,d=r.ssrForceFetchDelay,h=void 0===d?0:d,m=r.connectToDevTools,y=void 0===m?"object"===("undefined"===typeof window?"undefined":ApolloClient_typeof(window))&&!window.__APOLLO_CLIENT__&&__DEV__:m,v=r.queryDeduplication,g=void 0===v||v,_=r.defaultOptions,b=r.assumeImmutableResults,E=void 0!==b&&b,w=r.resolvers,S=r.typeDefs,O=r.fragmentMatcher,T=r.name,k=r.version,A=r.link;if(A||(A=i?new sn({uri:i,credentials:a,headers:c}):$t.empty()),!u)throw __DEV__?new Ee("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new Ee(10);if(this.link=A,this.cache=u,this.disableNetworkFetches=p||h>0,this.queryDeduplication=g,this.defaultOptions=_||{},this.typeDefs=S,h&&setTimeout((function(){return o.disableNetworkFetches=!1}),h),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),y&&"object"===("undefined"===typeof window?"undefined":ApolloClient_typeof(window))&&(window.__APOLLO_CLIENT__=this),!bn&&__DEV__&&(bn=!0,"undefined"!==typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var C=window.navigator,N=C&&C.userAgent,x=void 0;"string"===typeof N&&(N.indexOf("Chrome/")>-1?x="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":N.indexOf("Firefox/")>-1&&(x="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),x&&__DEV__&&invariant_esm_invariant.log("Download the Apollo DevTools for a better development experience: "+x)}this.version="3.4.5",this.localState=new mn({cache:u,client:this,resolvers:w,fragmentMatcher:O}),this.queryManager=new _n({cache:this.cache,link:this.link,queryDeduplication:g,ssrMode:p,clientAwareness:{name:T,version:k},localState:this.localState,assumeImmutableResults:E,onBroadcast:y?function(){o.devToolsHookCb&&o.devToolsHookCb({action:{},state:{queries:o.queryManager.getQueryStore(),mutations:o.queryManager.mutationStore||{}},dataWithOptimisticResults:o.cache.extract(!0)})}:void 0})}return ApolloClient.prototype.stop=function(){this.queryManager.stop()},ApolloClient.prototype.watchQuery=function(r){return this.defaultOptions.watchQuery&&(r=mergeOptions(this.defaultOptions.watchQuery,r)),!this.disableNetworkFetches||"network-only"!==r.fetchPolicy&&"cache-and-network"!==r.fetchPolicy||(r=E(E({},r),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(r)},ApolloClient.prototype.query=function(r){return this.defaultOptions.query&&(r=mergeOptions(this.defaultOptions.query,r)),__DEV__?invariant_esm_invariant("cache-and-network"!==r.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):invariant_esm_invariant("cache-and-network"!==r.fetchPolicy,11),this.disableNetworkFetches&&"network-only"===r.fetchPolicy&&(r=E(E({},r),{fetchPolicy:"cache-first"})),this.queryManager.query(r)},ApolloClient.prototype.mutate=function(r){return this.defaultOptions.mutate&&(r=mergeOptions(this.defaultOptions.mutate,r)),this.queryManager.mutate(r)},ApolloClient.prototype.subscribe=function(r){return this.queryManager.startGraphQLSubscription(r)},ApolloClient.prototype.readQuery=function(r,o){return void 0===o&&(o=!1),this.cache.readQuery(r,o)},ApolloClient.prototype.readFragment=function(r,o){return void 0===o&&(o=!1),this.cache.readFragment(r,o)},ApolloClient.prototype.writeQuery=function(r){this.cache.writeQuery(r),this.queryManager.broadcastQueries()},ApolloClient.prototype.writeFragment=function(r){this.cache.writeFragment(r),this.queryManager.broadcastQueries()},ApolloClient.prototype.__actionHookForDevTools=function(r){this.devToolsHookCb=r},ApolloClient.prototype.__requestRaw=function(r){return cn(this.link,r)},ApolloClient.prototype.resetStore=function(){var r=this;return Promise.resolve().then((function(){return r.queryManager.clearStore()})).then((function(){return Promise.all(r.resetStoreCallbacks.map((function(r){return r()})))})).then((function(){return r.reFetchObservableQueries()}))},ApolloClient.prototype.clearStore=function(){var r=this;return Promise.resolve().then((function(){return r.queryManager.clearStore()})).then((function(){return Promise.all(r.clearStoreCallbacks.map((function(r){return r()})))}))},ApolloClient.prototype.onResetStore=function(r){var o=this;return this.resetStoreCallbacks.push(r),function(){o.resetStoreCallbacks=o.resetStoreCallbacks.filter((function(o){return o!==r}))}},ApolloClient.prototype.onClearStore=function(r){var o=this;return this.clearStoreCallbacks.push(r),function(){o.clearStoreCallbacks=o.clearStoreCallbacks.filter((function(o){return o!==r}))}},ApolloClient.prototype.reFetchObservableQueries=function(r){return this.queryManager.reFetchObservableQueries(r)},ApolloClient.prototype.refetchQueries=function(r){var o=this.queryManager.refetchQueries(r),i=[],a=[];o.forEach((function(r,o){i.push(o),a.push(r)}));var c=Promise.all(a);return c.queries=i,c.results=a,c.catch((function(r){__DEV__&&invariant_esm_invariant.debug("In client.refetchQueries, Promise.all promise rejected with error "+r)})),c},ApolloClient.prototype.getObservableQueries=function(r){return void 0===r&&(r="active"),this.queryManager.getObservableQueries(r)},ApolloClient.prototype.extract=function(r){return this.cache.extract(r)},ApolloClient.prototype.restore=function(r){return this.cache.restore(r)},ApolloClient.prototype.addResolvers=function(r){this.localState.addResolvers(r)},ApolloClient.prototype.setResolvers=function(r){this.localState.setResolvers(r)},ApolloClient.prototype.getResolvers=function(){return this.localState.getResolvers()},ApolloClient.prototype.setLocalStateFragmentMatcher=function(r){this.localState.setFragmentMatcher(r)},ApolloClient.prototype.setLink=function(r){this.link=this.queryManager.link=r},ApolloClient}();function onError(r){return new $t((function(o,i){return new Xt((function(a){var c,u,l;try{c=i(o).subscribe({next:function next(c){c.errors&&(l=r({graphQLErrors:c.errors,response:c,operation:o,forward:i}))?u=l.subscribe({next:a.next.bind(a),error:a.error.bind(a),complete:a.complete.bind(a)}):a.next(c)},error:function error(c){(l=r({operation:o,networkError:c,graphQLErrors:c&&c.result&&c.result.errors,forward:i}))?u=l.subscribe({next:a.next.bind(a),error:a.error.bind(a),complete:a.complete.bind(a)}):a.error(c)},complete:function complete(){l||a.complete.bind(a)()}})}catch(p){r({networkError:p,operation:o,forward:i}),a.error(p)}return function(){c&&c.unsubscribe(),u&&c.unsubscribe()}}))}))}!function(r){function ErrorLink(o){var i=r.call(this)||this;return i.link=onError(o),i}__extends(ErrorLink,r),ErrorLink.prototype.request=function(r,o){return this.link.request(r,o)}}($t);var wn="appolo",Sn=document.querySelector('meta[name="api_url"]'),On=Sn?Sn.getAttribute("content"):"".concat(window.location.protocol,"//").concat(window.location.host,"/graphql"),Tn=new $t((function(r,o){return r.setContext({headers:{apikey:"".concat("ApKrRSjySO4JAmX3E2Z7HvrBD0m8xdDlAiXyh4IbH3w")}}),o(r)}));console.info("%cAPI: ".concat(On),"color:green;font-size:10px");var kn=new En({cache:Vt,link:Zt([Tn,new $t((function(r,o){return r.setContext({start:new Date}),o(r)})),onError((function(r){var o=r.operation,i=r.response,a=r.graphQLErrors,c=r.networkError;r.forward;if("IgnoreErrorsQuery"===o.operationName)return console.error("".concat(wn,": IgnoreErrorsQuery")),void(i.errors=null);a&&a.forEach((function(r){var o=r.message,i=r.locations,a=r.path;return console.error("".concat(wn,": [GraphQL error]: Message: ").concat(o,", Location: ").concat(i,", Path: ").concat(a))})),c&&console.error("".concat(wn,": [Network error] ").concat(c.statusCode)),console.error("".concat(wn,": [APOLLO_ERROR]")),window.dispatchEvent(new Event(d.APOLLO_ERROR))})),new $t((function(r,o){return o(r).map((function(o){var i=new Date-r.getContext().start;return console.log("".concat(wn,": operation ").concat(r.operationName," took ").concat(i," ms to complete")),window.dispatchEvent(new Event(d.ONLINE)),o}))})),new sn({uri:On,fetch:function(r){function fetch(){return r.apply(this,arguments)}return fetch.toString=function(){return r.toString()},fetch}((function(){return fetch.apply(void 0,arguments)})),credentials:"same-origin",connectToDevTools:!1})])});function page_typeof(r){return(page_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(r){return typeof r}:function _typeof(r){return r&&"function"===typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function page_defineProperties(r,o){for(var i=0;i")),r.state.loading){An.getElementById("PageLoading");i='
Loading ...
'}return React.createElement("div",{className:o,dangerouslySetInnerHTML:r.getHtml(i)})}}]),Page}(_.Component),xn=__webpack_require__(253),In="top",Dn="bottom",Ln="right",Rn="left",Pn="auto",jn=[In,Dn,Ln,Rn],Mn="start",Fn="end",qn="clippingParents",Un="viewport",Vn="popper",Bn="reference",Hn=jn.reduce((function(r,o){return r.concat([o+"-"+Mn,o+"-"+Fn])}),[]),Qn=[].concat(jn,[Pn]).reduce((function(r,o){return r.concat([o,o+"-"+Mn,o+"-"+Fn])}),[]),Gn="beforeRead",Wn="read",zn="afterRead",Kn="beforeMain",Yn="main",Xn="afterMain",Jn="beforeWrite",$n="write",Zn="afterWrite",er=[Gn,Wn,zn,Kn,Yn,Xn,Jn,$n,Zn];function getNodeName(r){return r?(r.nodeName||"").toLowerCase():null}function getWindow(r){if(null==r)return window;if("[object Window]"!==r.toString()){var o=r.ownerDocument;return o&&o.defaultView||window}return r}function isElement(r){return r instanceof getWindow(r).Element||r instanceof Element}function isHTMLElement(r){return r instanceof getWindow(r).HTMLElement||r instanceof HTMLElement}function isShadowRoot(r){return"undefined"!==typeof ShadowRoot&&(r instanceof getWindow(r).ShadowRoot||r instanceof ShadowRoot)}var tr={name:"applyStyles",enabled:!0,phase:"write",fn:function applyStyles(r){var o=r.state;Object.keys(o.elements).forEach((function(r){var i=o.styles[r]||{},a=o.attributes[r]||{},c=o.elements[r];isHTMLElement(c)&&getNodeName(c)&&(Object.assign(c.style,i),Object.keys(a).forEach((function(r){var o=a[r];!1===o?c.removeAttribute(r):c.setAttribute(r,!0===o?"":o)})))}))},effect:function effect(r){var o=r.state,i={popper:{position:o.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(o.elements.popper.style,i.popper),o.styles=i,o.elements.arrow&&Object.assign(o.elements.arrow.style,i.arrow),function(){Object.keys(o.elements).forEach((function(r){var a=o.elements[r],c=o.attributes[r]||{},u=Object.keys(o.styles.hasOwnProperty(r)?o.styles[r]:i[r]).reduce((function(r,o){return r[o]="",r}),{});isHTMLElement(a)&&getNodeName(a)&&(Object.assign(a.style,u),Object.keys(c).forEach((function(r){a.removeAttribute(r)})))}))}},requires:["computeStyles"]};function getBasePlacement(r){return r.split("-")[0]}var nr=Math.round;function getBoundingClientRect(r,o){void 0===o&&(o=!1);var i=r.getBoundingClientRect(),a=1,c=1;return isHTMLElement(r)&&o&&(a=i.width/r.offsetWidth||1,c=i.height/r.offsetHeight||1),{width:nr(i.width/a),height:nr(i.height/c),top:nr(i.top/c),right:nr(i.right/a),bottom:nr(i.bottom/c),left:nr(i.left/a),x:nr(i.left/a),y:nr(i.top/c)}}function getLayoutRect(r){var o=getBoundingClientRect(r),i=r.offsetWidth,a=r.offsetHeight;return Math.abs(o.width-i)<=1&&(i=o.width),Math.abs(o.height-a)<=1&&(a=o.height),{x:r.offsetLeft,y:r.offsetTop,width:i,height:a}}function contains(r,o){var i=o.getRootNode&&o.getRootNode();if(r.contains(o))return!0;if(i&&isShadowRoot(i)){var a=o;do{if(a&&r.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function getComputedStyle_getComputedStyle(r){return getWindow(r).getComputedStyle(r)}function isTableElement(r){return["table","td","th"].indexOf(getNodeName(r))>=0}function getDocumentElement(r){return((isElement(r)?r.ownerDocument:r.document)||window.document).documentElement}function getParentNode(r){return"html"===getNodeName(r)?r:r.assignedSlot||r.parentNode||(isShadowRoot(r)?r.host:null)||getDocumentElement(r)}function getTrueOffsetParent(r){return isHTMLElement(r)&&"fixed"!==getComputedStyle_getComputedStyle(r).position?r.offsetParent:null}function getOffsetParent(r){for(var o=getWindow(r),i=getTrueOffsetParent(r);i&&isTableElement(i)&&"static"===getComputedStyle_getComputedStyle(i).position;)i=getTrueOffsetParent(i);return i&&("html"===getNodeName(i)||"body"===getNodeName(i)&&"static"===getComputedStyle_getComputedStyle(i).position)?o:i||function getContainingBlock(r){var o=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&isHTMLElement(r)&&"fixed"===getComputedStyle_getComputedStyle(r).position)return null;for(var i=getParentNode(r);isHTMLElement(i)&&["html","body"].indexOf(getNodeName(i))<0;){var a=getComputedStyle_getComputedStyle(i);if("none"!==a.transform||"none"!==a.perspective||"paint"===a.contain||-1!==["transform","perspective"].indexOf(a.willChange)||o&&"filter"===a.willChange||o&&a.filter&&"none"!==a.filter)return i;i=i.parentNode}return null}(r)||o}function getMainAxisFromPlacement(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}var rr=Math.max,or=Math.min,ir=Math.round;function within(r,o,i){return rr(r,or(o,i))}function mergePaddingObject(r){return Object.assign({},{top:0,right:0,bottom:0,left:0},r)}function expandToHashMap(r,o){return o.reduce((function(o,i){return o[i]=r,o}),{})}var ar={name:"arrow",enabled:!0,phase:"main",fn:function arrow(r){var o,i=r.state,a=r.name,c=r.options,u=i.elements.arrow,l=i.modifiersData.popperOffsets,p=getBasePlacement(i.placement),d=getMainAxisFromPlacement(p),h=[Rn,Ln].indexOf(p)>=0?"height":"width";if(u&&l){var m=function toPaddingObject(r,o){return mergePaddingObject("number"!==typeof(r="function"===typeof r?r(Object.assign({},o.rects,{placement:o.placement})):r)?r:expandToHashMap(r,jn))}(c.padding,i),y=getLayoutRect(u),v="y"===d?In:Rn,g="y"===d?Dn:Ln,_=i.rects.reference[h]+i.rects.reference[d]-l[d]-i.rects.popper[h],b=l[d]-i.rects.reference[d],E=getOffsetParent(u),w=E?"y"===d?E.clientHeight||0:E.clientWidth||0:0,S=_/2-b/2,O=m[v],T=w-y[h]-m[g],k=w/2-y[h]/2+S,A=within(O,k,T),C=d;i.modifiersData[a]=((o={})[C]=A,o.centerOffset=A-k,o)}},effect:function arrow_effect(r){var o=r.state,i=r.options.element,a=void 0===i?"[data-popper-arrow]":i;null!=a&&("string"!==typeof a||(a=o.elements.popper.querySelector(a)))&&contains(o.elements.popper,a)&&(o.elements.arrow=a)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},sr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mapToStyles(r){var o,i=r.popper,a=r.popperRect,c=r.placement,u=r.offsets,l=r.position,p=r.gpuAcceleration,d=r.adaptive,h=r.roundOffsets,m=!0===h?function roundOffsetsByDPR(r){var o=r.x,i=r.y,a=window.devicePixelRatio||1;return{x:ir(ir(o*a)/a)||0,y:ir(ir(i*a)/a)||0}}(u):"function"===typeof h?h(u):u,y=m.x,v=void 0===y?0:y,g=m.y,_=void 0===g?0:g,b=u.hasOwnProperty("x"),E=u.hasOwnProperty("y"),w=Rn,S=In,O=window;if(d){var T=getOffsetParent(i),k="clientHeight",A="clientWidth";T===getWindow(i)&&"static"!==getComputedStyle_getComputedStyle(T=getDocumentElement(i)).position&&(k="scrollHeight",A="scrollWidth"),T=T,c===In&&(S=Dn,_-=T[k]-a.height,_*=p?1:-1),c===Rn&&(w=Ln,v-=T[A]-a.width,v*=p?1:-1)}var C,N=Object.assign({position:l},d&&sr);return p?Object.assign({},N,((C={})[S]=E?"0":"",C[w]=b?"0":"",C.transform=(O.devicePixelRatio||1)<2?"translate("+v+"px, "+_+"px)":"translate3d("+v+"px, "+_+"px, 0)",C)):Object.assign({},N,((o={})[S]=E?_+"px":"",o[w]=b?v+"px":"",o.transform="",o))}var cr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function computeStyles(r){var o=r.state,i=r.options,a=i.gpuAcceleration,c=void 0===a||a,u=i.adaptive,l=void 0===u||u,p=i.roundOffsets,d=void 0===p||p,h={placement:getBasePlacement(o.placement),popper:o.elements.popper,popperRect:o.rects.popper,gpuAcceleration:c};null!=o.modifiersData.popperOffsets&&(o.styles.popper=Object.assign({},o.styles.popper,mapToStyles(Object.assign({},h,{offsets:o.modifiersData.popperOffsets,position:o.options.strategy,adaptive:l,roundOffsets:d})))),null!=o.modifiersData.arrow&&(o.styles.arrow=Object.assign({},o.styles.arrow,mapToStyles(Object.assign({},h,{offsets:o.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),o.attributes.popper=Object.assign({},o.attributes.popper,{"data-popper-placement":o.placement})},data:{}},ur={passive:!0};var lr={name:"eventListeners",enabled:!0,phase:"write",fn:function fn(){},effect:function eventListeners_effect(r){var o=r.state,i=r.instance,a=r.options,c=a.scroll,u=void 0===c||c,l=a.resize,p=void 0===l||l,d=getWindow(o.elements.popper),h=[].concat(o.scrollParents.reference,o.scrollParents.popper);return u&&h.forEach((function(r){r.addEventListener("scroll",i.update,ur)})),p&&d.addEventListener("resize",i.update,ur),function(){u&&h.forEach((function(r){r.removeEventListener("scroll",i.update,ur)})),p&&d.removeEventListener("resize",i.update,ur)}},data:{}},pr={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(r){return r.replace(/left|right|bottom|top/g,(function(r){return pr[r]}))}var fr={start:"end",end:"start"};function getOppositeVariationPlacement(r){return r.replace(/start|end/g,(function(r){return fr[r]}))}function getWindowScroll(r){var o=getWindow(r);return{scrollLeft:o.pageXOffset,scrollTop:o.pageYOffset}}function getWindowScrollBarX(r){return getBoundingClientRect(getDocumentElement(r)).left+getWindowScroll(r).scrollLeft}function isScrollParent(r){var o=getComputedStyle_getComputedStyle(r),i=o.overflow,a=o.overflowX,c=o.overflowY;return/auto|scroll|overlay|hidden/.test(i+c+a)}function getScrollParent(r){return["html","body","#document"].indexOf(getNodeName(r))>=0?r.ownerDocument.body:isHTMLElement(r)&&isScrollParent(r)?r:getScrollParent(getParentNode(r))}function listScrollParents(r,o){var i;void 0===o&&(o=[]);var a=getScrollParent(r),c=a===(null==(i=r.ownerDocument)?void 0:i.body),u=getWindow(a),l=c?[u].concat(u.visualViewport||[],isScrollParent(a)?a:[]):a,p=o.concat(l);return c?p:p.concat(listScrollParents(getParentNode(l)))}function rectToClientRect(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function getClientRectFromMixedType(r,o){return o===Un?rectToClientRect(function getViewportRect(r){var o=getWindow(r),i=getDocumentElement(r),a=o.visualViewport,c=i.clientWidth,u=i.clientHeight,l=0,p=0;return a&&(c=a.width,u=a.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=a.offsetLeft,p=a.offsetTop)),{width:c,height:u,x:l+getWindowScrollBarX(r),y:p}}(r)):isHTMLElement(o)?function getInnerBoundingClientRect(r){var o=getBoundingClientRect(r);return o.top=o.top+r.clientTop,o.left=o.left+r.clientLeft,o.bottom=o.top+r.clientHeight,o.right=o.left+r.clientWidth,o.width=r.clientWidth,o.height=r.clientHeight,o.x=o.left,o.y=o.top,o}(o):rectToClientRect(function getDocumentRect(r){var o,i=getDocumentElement(r),a=getWindowScroll(r),c=null==(o=r.ownerDocument)?void 0:o.body,u=rr(i.scrollWidth,i.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),l=rr(i.scrollHeight,i.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),p=-a.scrollLeft+getWindowScrollBarX(r),d=-a.scrollTop;return"rtl"===getComputedStyle_getComputedStyle(c||i).direction&&(p+=rr(i.clientWidth,c?c.clientWidth:0)-u),{width:u,height:l,x:p,y:d}}(getDocumentElement(r)))}function getClippingRect(r,o,i){var a="clippingParents"===o?function getClippingParents(r){var o=listScrollParents(getParentNode(r)),i=["absolute","fixed"].indexOf(getComputedStyle_getComputedStyle(r).position)>=0&&isHTMLElement(r)?getOffsetParent(r):r;return isElement(i)?o.filter((function(r){return isElement(r)&&contains(r,i)&&"body"!==getNodeName(r)})):[]}(r):[].concat(o),c=[].concat(a,[i]),u=c[0],l=c.reduce((function(o,i){var a=getClientRectFromMixedType(r,i);return o.top=rr(a.top,o.top),o.right=or(a.right,o.right),o.bottom=or(a.bottom,o.bottom),o.left=rr(a.left,o.left),o}),getClientRectFromMixedType(r,u));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function getVariation(r){return r.split("-")[1]}function computeOffsets(r){var o,i=r.reference,a=r.element,c=r.placement,u=c?getBasePlacement(c):null,l=c?getVariation(c):null,p=i.x+i.width/2-a.width/2,d=i.y+i.height/2-a.height/2;switch(u){case In:o={x:p,y:i.y-a.height};break;case Dn:o={x:p,y:i.y+i.height};break;case Ln:o={x:i.x+i.width,y:d};break;case Rn:o={x:i.x-a.width,y:d};break;default:o={x:i.x,y:i.y}}var h=u?getMainAxisFromPlacement(u):null;if(null!=h){var m="y"===h?"height":"width";switch(l){case Mn:o[h]=o[h]-(i[m]/2-a[m]/2);break;case Fn:o[h]=o[h]+(i[m]/2-a[m]/2)}}return o}function detectOverflow(r,o){void 0===o&&(o={});var i=o,a=i.placement,c=void 0===a?r.placement:a,u=i.boundary,l=void 0===u?qn:u,p=i.rootBoundary,d=void 0===p?Un:p,h=i.elementContext,m=void 0===h?Vn:h,y=i.altBoundary,v=void 0!==y&&y,g=i.padding,_=void 0===g?0:g,b=mergePaddingObject("number"!==typeof _?_:expandToHashMap(_,jn)),E=m===Vn?Bn:Vn,w=r.elements.reference,S=r.rects.popper,O=r.elements[v?E:m],T=getClippingRect(isElement(O)?O:O.contextElement||getDocumentElement(r.elements.popper),l,d),k=getBoundingClientRect(w),A=computeOffsets({reference:k,element:S,strategy:"absolute",placement:c}),C=rectToClientRect(Object.assign({},S,A)),N=m===Vn?C:k,x={top:T.top-N.top+b.top,bottom:N.bottom-T.bottom+b.bottom,left:T.left-N.left+b.left,right:N.right-T.right+b.right},I=r.modifiersData.offset;if(m===Vn&&I){var D=I[c];Object.keys(x).forEach((function(r){var o=[Ln,Dn].indexOf(r)>=0?1:-1,i=[In,Dn].indexOf(r)>=0?"y":"x";x[r]+=D[i]*o}))}return x}var dr={name:"flip",enabled:!0,phase:"main",fn:function flip(r){var o=r.state,i=r.options,a=r.name;if(!o.modifiersData[a]._skip){for(var c=i.mainAxis,u=void 0===c||c,l=i.altAxis,p=void 0===l||l,d=i.fallbackPlacements,h=i.padding,m=i.boundary,y=i.rootBoundary,v=i.altBoundary,g=i.flipVariations,_=void 0===g||g,b=i.allowedAutoPlacements,E=o.options.placement,w=getBasePlacement(E),S=d||(w===E||!_?[getOppositePlacement(E)]:function getExpandedFallbackPlacements(r){if(getBasePlacement(r)===Pn)return[];var o=getOppositePlacement(r);return[getOppositeVariationPlacement(r),o,getOppositeVariationPlacement(o)]}(E)),O=[E].concat(S).reduce((function(r,i){return r.concat(getBasePlacement(i)===Pn?function computeAutoPlacement(r,o){void 0===o&&(o={});var i=o,a=i.placement,c=i.boundary,u=i.rootBoundary,l=i.padding,p=i.flipVariations,d=i.allowedAutoPlacements,h=void 0===d?Qn:d,m=getVariation(a),y=m?p?Hn:Hn.filter((function(r){return getVariation(r)===m})):jn,v=y.filter((function(r){return h.indexOf(r)>=0}));0===v.length&&(v=y);var g=v.reduce((function(o,i){return o[i]=detectOverflow(r,{placement:i,boundary:c,rootBoundary:u,padding:l})[getBasePlacement(i)],o}),{});return Object.keys(g).sort((function(r,o){return g[r]-g[o]}))}(o,{placement:i,boundary:m,rootBoundary:y,padding:h,flipVariations:_,allowedAutoPlacements:b}):i)}),[]),T=o.rects.reference,k=o.rects.popper,A=new Map,C=!0,N=O[0],x=0;x=0,P=R?"width":"height",j=detectOverflow(o,{placement:I,boundary:m,rootBoundary:y,altBoundary:v,padding:h}),M=R?L?Ln:Rn:L?Dn:In;T[P]>k[P]&&(M=getOppositePlacement(M));var q=getOppositePlacement(M),U=[];if(u&&U.push(j[D]<=0),p&&U.push(j[M]<=0,j[q]<=0),U.every((function(r){return r}))){N=I,C=!1;break}A.set(I,U)}if(C)for(var V=function _loop(r){var o=O.find((function(o){var i=A.get(o);if(i)return i.slice(0,r).every((function(r){return r}))}));if(o)return N=o,"break"},B=_?3:1;B>0;B--){if("break"===V(B))break}o.placement!==N&&(o.modifiersData[a]._skip=!0,o.placement=N,o.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(r,o,i){return void 0===i&&(i={x:0,y:0}),{top:r.top-o.height-i.y,right:r.right-o.width+i.x,bottom:r.bottom-o.height+i.y,left:r.left-o.width-i.x}}function isAnySideFullyClipped(r){return[In,Ln,Dn,Rn].some((function(o){return r[o]>=0}))}var hr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function hide(r){var o=r.state,i=r.name,a=o.rects.reference,c=o.rects.popper,u=o.modifiersData.preventOverflow,l=detectOverflow(o,{elementContext:"reference"}),p=detectOverflow(o,{altBoundary:!0}),d=getSideOffsets(l,a),h=getSideOffsets(p,c,u),m=isAnySideFullyClipped(d),y=isAnySideFullyClipped(h);o.modifiersData[i]={referenceClippingOffsets:d,popperEscapeOffsets:h,isReferenceHidden:m,hasPopperEscaped:y},o.attributes.popper=Object.assign({},o.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":y})}};var mr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function offset(r){var o=r.state,i=r.options,a=r.name,c=i.offset,u=void 0===c?[0,0]:c,l=Qn.reduce((function(r,i){return r[i]=function distanceAndSkiddingToXY(r,o,i){var a=getBasePlacement(r),c=[Rn,In].indexOf(a)>=0?-1:1,u="function"===typeof i?i(Object.assign({},o,{placement:r})):i,l=u[0],p=u[1];return l=l||0,p=(p||0)*c,[Rn,Ln].indexOf(a)>=0?{x:p,y:l}:{x:l,y:p}}(i,o.rects,u),r}),{}),p=l[o.placement],d=p.x,h=p.y;null!=o.modifiersData.popperOffsets&&(o.modifiersData.popperOffsets.x+=d,o.modifiersData.popperOffsets.y+=h),o.modifiersData[a]=l}};var yr={name:"popperOffsets",enabled:!0,phase:"read",fn:function popperOffsets(r){var o=r.state,i=r.name;o.modifiersData[i]=computeOffsets({reference:o.rects.reference,element:o.rects.popper,strategy:"absolute",placement:o.placement})},data:{}};var vr={name:"preventOverflow",enabled:!0,phase:"main",fn:function preventOverflow(r){var o=r.state,i=r.options,a=r.name,c=i.mainAxis,u=void 0===c||c,l=i.altAxis,p=void 0!==l&&l,d=i.boundary,h=i.rootBoundary,m=i.altBoundary,y=i.padding,v=i.tether,g=void 0===v||v,_=i.tetherOffset,b=void 0===_?0:_,E=detectOverflow(o,{boundary:d,rootBoundary:h,padding:y,altBoundary:m}),w=getBasePlacement(o.placement),S=getVariation(o.placement),O=!S,T=getMainAxisFromPlacement(w),k=function getAltAxis(r){return"x"===r?"y":"x"}(T),A=o.modifiersData.popperOffsets,C=o.rects.reference,N=o.rects.popper,x="function"===typeof b?b(Object.assign({},o.rects,{placement:o.placement})):b,I={x:0,y:0};if(A){if(u||p){var D="y"===T?In:Rn,L="y"===T?Dn:Ln,R="y"===T?"height":"width",P=A[T],j=A[T]+E[D],M=A[T]-E[L],q=g?-N[R]/2:0,U=S===Mn?C[R]:N[R],V=S===Mn?-N[R]:-C[R],B=o.elements.arrow,H=g&&B?getLayoutRect(B):{width:0,height:0},Q=o.modifiersData["arrow#persistent"]?o.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},G=Q[D],W=Q[L],z=within(0,C[R],H[R]),K=O?C[R]/2-q-z-G-x:U-z-G-x,Y=O?-C[R]/2+q+z+W+x:V+z+W+x,X=o.elements.arrow&&getOffsetParent(o.elements.arrow),J=X?"y"===T?X.clientTop||0:X.clientLeft||0:0,Z=o.modifiersData.offset?o.modifiersData.offset[o.placement][T]:0,ee=A[T]+K-Z-J,te=A[T]+Y-Z;if(u){var ne=within(g?or(j,ee):j,P,g?rr(M,te):M);A[T]=ne,I[T]=ne-P}if(p){var re="x"===T?In:Rn,oe="x"===T?Dn:Ln,ie=A[k],ae=ie+E[re],se=ie-E[oe],ce=within(g?or(ae,ee):ae,ie,g?rr(se,te):se);A[k]=ce,I[k]=ce-ie}}o.modifiersData[a]=I}},requiresIfExists:["offset"]};function getCompositeRect(r,o,i){void 0===i&&(i=!1);var a=isHTMLElement(o),c=isHTMLElement(o)&&function isElementScaled(r){var o=r.getBoundingClientRect(),i=o.width/r.offsetWidth||1,a=o.height/r.offsetHeight||1;return 1!==i||1!==a}(o),u=getDocumentElement(o),l=getBoundingClientRect(r,c),p={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(a||!a&&!i)&&(("body"!==getNodeName(o)||isScrollParent(u))&&(p=function getNodeScroll(r){return r!==getWindow(r)&&isHTMLElement(r)?function getHTMLElementScroll(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}(r):getWindowScroll(r)}(o)),isHTMLElement(o)?((d=getBoundingClientRect(o,!0)).x+=o.clientLeft,d.y+=o.clientTop):u&&(d.x=getWindowScrollBarX(u))),{x:l.left+p.scrollLeft-d.x,y:l.top+p.scrollTop-d.y,width:l.width,height:l.height}}function order(r){var o=new Map,i=new Set,a=[];function sort(r){i.add(r.name),[].concat(r.requires||[],r.requiresIfExists||[]).forEach((function(r){if(!i.has(r)){var a=o.get(r);a&&sort(a)}})),a.push(r)}return r.forEach((function(r){o.set(r.name,r)})),r.forEach((function(r){i.has(r.name)||sort(r)})),a}var gr={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var r=arguments.length,o=new Array(r),i=0;ir.length)&&(o=r.length);for(var i=0,a=new Array(o);i0?document.querySelector(r):null},Ir=function typeCheckConfig(r,o,i){Object.keys(i).forEach((function(a){var c=i[a],u=o[a],l=u&&Nr(u)?"element":function toType(r){return null===r||void 0===r?"".concat(r):{}.toString.call(r).match(/\s([a-z]+)/i)[1].toLowerCase()}(u);if(!new RegExp(c).test(l))throw new TypeError("".concat(r.toUpperCase(),': Option "').concat(a,'" provided type "').concat(l,'" but expected type "').concat(c,'".'))}))},Dr=function isVisible(r){return!(!Nr(r)||0===r.getClientRects().length)&&"visible"===getComputedStyle(r).getPropertyValue("visibility")},Lr=function isDisabled(r){return!r||r.nodeType!==Node.ELEMENT_NODE||(!!r.classList.contains("disabled")||("undefined"!==typeof r.disabled?r.disabled:r.hasAttribute("disabled")&&"false"!==r.getAttribute("disabled")))},Rr=function findShadowRoot(r){if(!document.documentElement.attachShadow)return null;if("function"===typeof r.getRootNode){var o=r.getRootNode();return o instanceof ShadowRoot?o:null}return r instanceof ShadowRoot?r:r.parentNode?findShadowRoot(r.parentNode):null},Pr=function noop(){},jr=function reflow(r){r.offsetHeight},Mr=function getjQuery(){var jQuery=window.jQuery;return jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?jQuery:null},Fr=[],qr=function isRTL(){return"rtl"===document.documentElement.dir},Ur=function defineJQueryPlugin(r){!function onDOMContentLoaded(r){"loading"===document.readyState?(Fr.length||document.addEventListener("DOMContentLoaded",(function(){Fr.forEach((function(r){return r()}))})),Fr.push(r)):r()}((function(){var $=Mr();if($){var o=r.NAME,i=$.fn[o];$.fn[o]=r.jQueryInterface,$.fn[o].Constructor=r,$.fn[o].noConflict=function(){return $.fn[o]=i,r.jQueryInterface}}}))},Vr=function execute(r){"function"===typeof r&&r()},Br=function executeAfterTransition(r,o){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(i){var a=5,c=Ar(o)+a,u=!1,l=function handler(i){i.target===o&&(u=!0,o.removeEventListener(Sr,handler),Vr(r))};o.addEventListener(Sr,l),setTimeout((function(){u||Cr(o)}),c)}else Vr(r)},Hr=function getNextActiveElement(r,o,i,a){var c=r.indexOf(o);if(-1===c)return r[!i&&a?r.length-1:0];var u=r.length;return c+=i?1:-1,a&&(c=(c+u)%u),r[Math.max(0,Math.min(c,u-1))]},Qr=/[^.]*(?=\..*)\.|.*/,Gr=/\..*/,Wr=/::\d+$/,zr={},Kr=1,Yr={mouseenter:"mouseover",mouseleave:"mouseout"},Xr=/^(mouseenter|mouseleave)/i,Jr=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function getUidEvent(r,o){return o&&"".concat(o,"::").concat(Kr++)||r.uidEvent||Kr++}function getEvent(r){var o=getUidEvent(r);return r.uidEvent=o,zr[o]=zr[o]||{},zr[o]}function findHandler(r,o){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=Object.keys(r),c=0,u=a.length;c2&&void 0!==arguments[2])||arguments[2];Br(r,o,i)}}],[{key:"getInstance",value:function getInstance(r){return no(xr(r),this.DATA_KEY)}},{key:"getOrCreateInstance",value:function getOrCreateInstance(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getInstance(r)||new this(r,"object"===bootstrap_esm_typeof(o)?o:null)}},{key:"VERSION",get:function get(){return"5.1.0"}},{key:"NAME",get:function get(){throw new Error('You have to implement the static method "NAME", for each component!')}},{key:"DATA_KEY",get:function get(){return"bs.".concat(this.NAME)}},{key:"EVENT_KEY",get:function get(){return".".concat(this.DATA_KEY)}}]),BaseComponent}(),io=function enableDismissTrigger(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hide",i="click.dismiss".concat(r.EVENT_KEY),a=r.NAME;$r.on(document,i,'[data-bs-dismiss="'.concat(a,'"]'),(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),!Lr(this)){var c=kr(this)||this.closest(".".concat(a));r.getOrCreateInstance(c)[o]()}}))},ao=".".concat("bs.alert"),so="close".concat(ao),co="closed".concat(ao),uo=function(r){bootstrap_esm_inherits(Alert,r);var o=bootstrap_esm_createSuper(Alert);function Alert(){return bootstrap_esm_classCallCheck(this,Alert),o.apply(this,arguments)}return bootstrap_esm_createClass(Alert,[{key:"close",value:function close(){var r=this;if(!$r.trigger(this._element,so).defaultPrevented){this._element.classList.remove("show");var o=this._element.classList.contains("fade");this._queueCallback((function(){return r._destroyElement()}),this._element,o)}}},{key:"_destroyElement",value:function _destroyElement(){this._element.remove(),$r.trigger(this._element,co),this.dispose()}}],[{key:"NAME",get:function get(){return"alert"}},{key:"jQueryInterface",value:function jQueryInterface(r){return this.each((function(){var o=Alert.getOrCreateInstance(this);if("string"===typeof r){if(void 0===o[r]||r.startsWith("_")||"constructor"===r)throw new TypeError('No method named "'.concat(r,'"'));o[r](this)}}))}}]),Alert}(oo);io(uo,"close"),Ur(uo);var lo=".".concat("bs.button"),po='[data-bs-toggle="button"]',fo="click".concat(lo).concat(".data-api"),ho=function(r){bootstrap_esm_inherits(Button,r);var o=bootstrap_esm_createSuper(Button);function Button(){return bootstrap_esm_classCallCheck(this,Button),o.apply(this,arguments)}return bootstrap_esm_createClass(Button,[{key:"toggle",value:function toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}}],[{key:"NAME",get:function get(){return"button"}},{key:"jQueryInterface",value:function jQueryInterface(r){return this.each((function(){var o=Button.getOrCreateInstance(this);"toggle"===r&&o[r]()}))}}]),Button}(oo);function normalizeData(r){return"true"===r||"false"!==r&&(r===Number(r).toString()?Number(r):""===r||"null"===r?null:r)}function normalizeDataKey(r){return r.replace(/[A-Z]/g,(function(r){return"-".concat(r.toLowerCase())}))}$r.on(document,fo,po,(function(r){r.preventDefault();var o=r.target.closest(po);ho.getOrCreateInstance(o).toggle()})),Ur(ho);var mo={setDataAttribute:function setDataAttribute(r,o,i){r.setAttribute("data-bs-".concat(normalizeDataKey(o)),i)},removeDataAttribute:function removeDataAttribute(r,o){r.removeAttribute("data-bs-".concat(normalizeDataKey(o)))},getDataAttributes:function getDataAttributes(r){if(!r)return{};var o={};return Object.keys(r.dataset).filter((function(r){return r.startsWith("bs")})).forEach((function(i){var a=i.replace(/^bs/,"");a=a.charAt(0).toLowerCase()+a.slice(1,a.length),o[a]=normalizeData(r.dataset[i])})),o},getDataAttribute:function getDataAttribute(r,o){return normalizeData(r.getAttribute("data-bs-".concat(normalizeDataKey(o))))},offset:function offset(r){var o=r.getBoundingClientRect();return{top:o.top+window.pageYOffset,left:o.left+window.pageXOffset}},position:function position(r){return{top:r.offsetTop,left:r.offsetLeft}}},yo={find:function find(r){var o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return(o=[]).concat.apply(o,bootstrap_esm_toConsumableArray(Element.prototype.querySelectorAll.call(i,r)))},findOne:function findOne(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(o,r)},children:function children(r,o){var i;return(i=[]).concat.apply(i,bootstrap_esm_toConsumableArray(r.children)).filter((function(r){return r.matches(o)}))},parents:function parents(r,o){for(var parents=[],i=r.parentNode;i&&i.nodeType===Node.ELEMENT_NODE&&3!==i.nodeType;)i.matches(o)&&parents.push(i),i=i.parentNode;return parents},prev:function prev(r,o){for(var i=r.previousElementSibling;i;){if(i.matches(o))return[i];i=i.previousElementSibling}return[]},next:function next(r,o){for(var next=r.nextElementSibling;next;){if(next.matches(o))return[next];next=next.nextElementSibling}return[]},focusableChildren:function focusableChildren(r){var o=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((function(r){return"".concat(r,':not([tabindex^="-"])')})).join(", ");return this.find(o,r).filter((function(r){return!Lr(r)&&Dr(r)}))}},vo="carousel",go=".".concat("bs.carousel"),_o=".data-api",bo={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Eo={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},wo="next",So="prev",Oo="left",To="right",ko=(bootstrap_esm_defineProperty(_r={},"ArrowLeft",To),bootstrap_esm_defineProperty(_r,"ArrowRight",Oo),_r),Ao="slide".concat(go),Co="slid".concat(go),No="keydown".concat(go),xo="mouseenter".concat(go),Io="mouseleave".concat(go),Do="touchstart".concat(go),Lo="touchmove".concat(go),Ro="touchend".concat(go),Po="pointerdown".concat(go),jo="pointerup".concat(go),Mo="dragstart".concat(go),Fo="load".concat(go).concat(_o),qo="click".concat(go).concat(_o),Uo="active",Vo=".active.carousel-item",Bo="touch",Ho=function(r){bootstrap_esm_inherits(Carousel,r);var o=bootstrap_esm_createSuper(Carousel);function Carousel(r,i){var a;return bootstrap_esm_classCallCheck(this,Carousel),(a=o.call(this,r))._items=null,a._interval=null,a._activeElement=null,a._isPaused=!1,a._isSliding=!1,a.touchTimeout=null,a.touchStartX=0,a.touchDeltaX=0,a._config=a._getConfig(i),a._indicatorsElement=yo.findOne(".carousel-indicators",a._element),a._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,a._pointerEvent=Boolean(window.PointerEvent),a._addEventListeners(),a}return bootstrap_esm_createClass(Carousel,[{key:"next",value:function next(){this._slide(wo)}},{key:"nextWhenVisible",value:function nextWhenVisible(){!document.hidden&&Dr(this._element)&&this.next()}},{key:"prev",value:function prev(){this._slide(So)}},{key:"pause",value:function pause(r){r||(this._isPaused=!0),yo.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(Cr(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}},{key:"cycle",value:function cycle(r){r||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}},{key:"to",value:function to(r){var o=this;this._activeElement=yo.findOne(Vo,this._element);var i=this._getItemIndex(this._activeElement);if(!(r>this._items.length-1||r<0))if(this._isSliding)$r.one(this._element,Co,(function(){return o.to(r)}));else{if(i===r)return this.pause(),void this.cycle();var a=r>i?wo:So;this._slide(a,this._items[r])}}},{key:"_getConfig",value:function _getConfig(r){return r=_objectSpread(_objectSpread(_objectSpread({},bo),mo.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(r)?r:{}),Ir(vo,r,Eo),r}},{key:"_handleSwipe",value:function _handleSwipe(){var r=Math.abs(this.touchDeltaX);if(!(r<=40)){var o=r/this.touchDeltaX;this.touchDeltaX=0,o&&this._slide(o>0?To:Oo)}}},{key:"_addEventListeners",value:function _addEventListeners(){var r=this;this._config.keyboard&&$r.on(this._element,No,(function(o){return r._keydown(o)})),"hover"===this._config.pause&&($r.on(this._element,xo,(function(o){return r.pause(o)})),$r.on(this._element,Io,(function(o){return r.cycle(o)}))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}},{key:"_addTouchEventListeners",value:function _addTouchEventListeners(){var r=this,o=function start(o){!r._pointerEvent||"pen"!==o.pointerType&&o.pointerType!==Bo?r._pointerEvent||(r.touchStartX=o.touches[0].clientX):r.touchStartX=o.clientX},i=function end(o){!r._pointerEvent||"pen"!==o.pointerType&&o.pointerType!==Bo||(r.touchDeltaX=o.clientX-r.touchStartX),r._handleSwipe(),"hover"===r._config.pause&&(r.pause(),r.touchTimeout&&clearTimeout(r.touchTimeout),r.touchTimeout=setTimeout((function(o){return r.cycle(o)}),500+r._config.interval))};yo.find(".carousel-item img",this._element).forEach((function(r){$r.on(r,Mo,(function(r){return r.preventDefault()}))})),this._pointerEvent?($r.on(this._element,Po,(function(r){return o(r)})),$r.on(this._element,jo,(function(r){return i(r)})),this._element.classList.add("pointer-event")):($r.on(this._element,Do,(function(r){return o(r)})),$r.on(this._element,Lo,(function(o){return function move(o){r.touchDeltaX=o.touches&&o.touches.length>1?0:o.touches[0].clientX-r.touchStartX}(o)})),$r.on(this._element,Ro,(function(r){return i(r)})))}},{key:"_keydown",value:function _keydown(r){if(!/input|textarea/i.test(r.target.tagName)){var o=ko[r.key];o&&(r.preventDefault(),this._slide(o))}}},{key:"_getItemIndex",value:function _getItemIndex(r){return this._items=r&&r.parentNode?yo.find(".carousel-item",r.parentNode):[],this._items.indexOf(r)}},{key:"_getItemByOrder",value:function _getItemByOrder(r,o){var i=r===wo;return Hr(this._items,o,i,this._config.wrap)}},{key:"_triggerSlideEvent",value:function _triggerSlideEvent(r,o){var i=this._getItemIndex(r),a=this._getItemIndex(yo.findOne(Vo,this._element));return $r.trigger(this._element,Ao,{relatedTarget:r,direction:o,from:a,to:i})}},{key:"_setActiveIndicatorElement",value:function _setActiveIndicatorElement(r){if(this._indicatorsElement){var o=yo.findOne(".active",this._indicatorsElement);o.classList.remove(Uo),o.removeAttribute("aria-current");for(var i=yo.find("[data-bs-target]",this._indicatorsElement),a=0;a0&&void 0!==arguments[0]?arguments[0]:this._element;return r.classList.contains(ei)}},{key:"_getConfig",value:function _getConfig(r){return(r=_objectSpread(_objectSpread(_objectSpread({},zo),mo.getDataAttributes(this._element)),r)).toggle=Boolean(r.toggle),r.parent=xr(r.parent),Ir(Qo,r,Ko),r}},{key:"_getDimension",value:function _getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}},{key:"_initializeChildren",value:function _initializeChildren(){var r=this;if(this._config.parent){var o=yo.find(".".concat(ti," .").concat(ti),this._config.parent);yo.find(oi,this._config.parent).filter((function(r){return!o.includes(r)})).forEach((function(o){var i=kr(o);i&&r._addAriaAndCollapsedClass([o],r._isShown(i))}))}}},{key:"_addAriaAndCollapsedClass",value:function _addAriaAndCollapsedClass(r,o){r.length&&r.forEach((function(r){o?r.classList.remove(ri):r.classList.add(ri),r.setAttribute("aria-expanded",o)}))}}],[{key:"Default",get:function get(){return zo}},{key:"NAME",get:function get(){return Qo}},{key:"jQueryInterface",value:function jQueryInterface(r){return this.each((function(){var o={};"string"===typeof r&&/show|hide/.test(r)&&(o.toggle=!1);var i=Collapse.getOrCreateInstance(this,o);if("string"===typeof r){if("undefined"===typeof i[r])throw new TypeError('No method named "'.concat(r,'"'));i[r]()}}))}}]),Collapse}(oo);$r.on(document,Zo,oi,(function(r){("A"===r.target.tagName||r.delegateTarget&&"A"===r.delegateTarget.tagName)&&r.preventDefault();var o=Tr(this);yo.find(o).forEach((function(r){ii.getOrCreateInstance(r,{toggle:!1}).toggle()}))})),Ur(ii);var ai="dropdown",si=".".concat("bs.dropdown"),ci=".data-api",ui="Escape",li="Space",pi="ArrowUp",fi="ArrowDown",di=new RegExp("".concat(pi,"|").concat(fi,"|").concat(ui)),hi="hide".concat(si),mi="hidden".concat(si),yi="show".concat(si),vi="shown".concat(si),gi="click".concat(si).concat(ci),_i="keydown".concat(si).concat(ci),bi="keyup".concat(si).concat(ci),Ei="show",wi='[data-bs-toggle="dropdown"]',Si=".dropdown-menu",Oi=qr()?"top-end":"top-start",Ti=qr()?"top-start":"top-end",ki=qr()?"bottom-end":"bottom-start",Ai=qr()?"bottom-start":"bottom-end",Ci=qr()?"left-start":"right-start",Ni=qr()?"right-start":"left-start",xi={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},Ii={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"},Di=function(o){bootstrap_esm_inherits(Dropdown,o);var i=bootstrap_esm_createSuper(Dropdown);function Dropdown(r,o){var a;return bootstrap_esm_classCallCheck(this,Dropdown),(a=i.call(this,r))._popper=null,a._config=a._getConfig(o),a._menu=a._getMenuElement(),a._inNavbar=a._detectNavbar(),a}return bootstrap_esm_createClass(Dropdown,[{key:"toggle",value:function toggle(){return this._isShown()?this.hide():this.show()}},{key:"show",value:function show(){if(!Lr(this._element)&&!this._isShown(this._menu)){var r={relatedTarget:this._element};if(!$r.trigger(this._element,yi,r).defaultPrevented){var o,i=Dropdown.getParentFromElement(this._element);if(this._inNavbar?mo.setDataAttribute(this._menu,"popper","none"):this._createPopper(i),"ontouchstart"in document.documentElement&&!i.closest(".navbar-nav"))(o=[]).concat.apply(o,bootstrap_esm_toConsumableArray(document.body.children)).forEach((function(r){return $r.on(r,"mouseover",Pr)}));this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ei),this._element.classList.add(Ei),$r.trigger(this._element,vi,r)}}}},{key:"hide",value:function hide(){if(!Lr(this._element)&&this._isShown(this._menu)){var r={relatedTarget:this._element};this._completeHide(r)}}},{key:"dispose",value:function dispose(){this._popper&&this._popper.destroy(),_get(bootstrap_esm_getPrototypeOf(Dropdown.prototype),"dispose",this).call(this)}},{key:"update",value:function update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}},{key:"_completeHide",value:function _completeHide(r){if(!$r.trigger(this._element,hi,r).defaultPrevented){var o;if("ontouchstart"in document.documentElement)(o=[]).concat.apply(o,bootstrap_esm_toConsumableArray(document.body.children)).forEach((function(r){return $r.off(r,"mouseover",Pr)}));this._popper&&this._popper.destroy(),this._menu.classList.remove(Ei),this._element.classList.remove(Ei),this._element.setAttribute("aria-expanded","false"),mo.removeDataAttribute(this._menu,"popper"),$r.trigger(this._element,mi,r)}}},{key:"_getConfig",value:function _getConfig(r){if(r=_objectSpread(_objectSpread(_objectSpread({},this.constructor.Default),mo.getDataAttributes(this._element)),r),Ir(ai,r,this.constructor.DefaultType),"object"===bootstrap_esm_typeof(r.reference)&&!Nr(r.reference)&&"function"!==typeof r.reference.getBoundingClientRect)throw new TypeError("".concat(ai.toUpperCase(),': Option "reference" provided type "object" without a required "getBoundingClientRect" method.'));return r}},{key:"_createPopper",value:function _createPopper(o){if("undefined"===typeof r)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var i=this._element;"parent"===this._config.reference?i=o:Nr(this._config.reference)?i=xr(this._config.reference):"object"===bootstrap_esm_typeof(this._config.reference)&&(i=this._config.reference);var a=this._getPopperConfig(),c=a.modifiers.find((function(r){return"applyStyles"===r.name&&!1===r.enabled}));this._popper=Er(i,this._menu,a),c&&mo.setDataAttribute(this._menu,"popper","static")}},{key:"_isShown",value:function _isShown(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._element;return r.classList.contains(Ei)}},{key:"_getMenuElement",value:function _getMenuElement(){return yo.next(this._element,Si)[0]}},{key:"_getPlacement",value:function _getPlacement(){var r=this._element.parentNode;if(r.classList.contains("dropend"))return Ci;if(r.classList.contains("dropstart"))return Ni;var o="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return r.classList.contains("dropup")?o?Ti:Oi:o?Ai:ki}},{key:"_detectNavbar",value:function _detectNavbar(){return null!==this._element.closest(".".concat("navbar"))}},{key:"_getOffset",value:function _getOffset(){var r=this,o=this._config.offset;return"string"===typeof o?o.split(",").map((function(r){return Number.parseInt(r,10)})):"function"===typeof o?function(i){return o(i,r._element)}:o}},{key:"_getPopperConfig",value:function _getPopperConfig(){var r={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(r.modifiers=[{name:"applyStyles",enabled:!1}]),_objectSpread(_objectSpread({},r),"function"===typeof this._config.popperConfig?this._config.popperConfig(r):this._config.popperConfig)}},{key:"_selectMenuItem",value:function _selectMenuItem(r){var o=r.key,i=r.target,a=yo.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(Dr);a.length&&Hr(a,i,o===fi,!a.includes(i)).focus()}}],[{key:"Default",get:function get(){return xi}},{key:"DefaultType",get:function get(){return Ii}},{key:"NAME",get:function get(){return ai}},{key:"jQueryInterface",value:function jQueryInterface(r){return this.each((function(){var o=Dropdown.getOrCreateInstance(this,r);if("string"===typeof r){if("undefined"===typeof o[r])throw new TypeError('No method named "'.concat(r,'"'));o[r]()}}))}},{key:"clearMenus",value:function clearMenus(r){if(!r||2!==r.button&&("keyup"!==r.type||"Tab"===r.key))for(var o=yo.find(wi),i=0,a=o.length;ir.clientWidth+c)){a._saveInitialAttribute(r,o);var u=window.getComputedStyle(r)[o];r.style[o]="".concat(i(Number.parseFloat(u)),"px")}}))}},{key:"reset",value:function reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(Li,"paddingRight"),this._resetElementAttributes(Ri,"marginRight")}},{key:"_saveInitialAttribute",value:function _saveInitialAttribute(r,o){var i=r.style[o];i&&mo.setDataAttribute(r,o,i)}},{key:"_resetElementAttributes",value:function _resetElementAttributes(r,o){this._applyManipulationCallback(r,(function manipulationCallBack(r){var i=mo.getDataAttribute(r,o);"undefined"===typeof i?r.style.removeProperty(o):(mo.removeDataAttribute(r,o),r.style[o]=i)}))}},{key:"_applyManipulationCallback",value:function _applyManipulationCallback(r,o){Nr(r)?o(r):yo.find(r,this._element).forEach(o)}},{key:"isOverflowing",value:function isOverflowing(){return this.getWidth()>0}}]),ScrollBarHelper}(),ji={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},Mi={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},Fi="backdrop",qi="show",Ui="mousedown.bs.".concat(Fi),Vi=function(){function Backdrop(r){bootstrap_esm_classCallCheck(this,Backdrop),this._config=this._getConfig(r),this._isAppended=!1,this._element=null}return bootstrap_esm_createClass(Backdrop,[{key:"show",value:function show(r){this._config.isVisible?(this._append(),this._config.isAnimated&&jr(this._getElement()),this._getElement().classList.add(qi),this._emulateAnimation((function(){Vr(r)}))):Vr(r)}},{key:"hide",value:function hide(r){var o=this;this._config.isVisible?(this._getElement().classList.remove(qi),this._emulateAnimation((function(){o.dispose(),Vr(r)}))):Vr(r)}},{key:"_getElement",value:function _getElement(){if(!this._element){var r=document.createElement("div");r.className=this._config.className,this._config.isAnimated&&r.classList.add("fade"),this._element=r}return this._element}},{key:"_getConfig",value:function _getConfig(r){return(r=_objectSpread(_objectSpread({},ji),"object"===bootstrap_esm_typeof(r)?r:{})).rootElement=xr(r.rootElement),Ir(Fi,r,Mi),r}},{key:"_append",value:function _append(){var r=this;this._isAppended||(this._config.rootElement.append(this._getElement()),$r.on(this._getElement(),Ui,(function(){Vr(r._config.clickCallback)})),this._isAppended=!0)}},{key:"dispose",value:function dispose(){this._isAppended&&($r.off(this._element,Ui),this._element.remove(),this._isAppended=!1)}},{key:"_emulateAnimation",value:function _emulateAnimation(r){Br(r,this._getElement(),this._config.isAnimated)}}]),Backdrop}(),Bi={trapElement:null,autofocus:!0},Hi={trapElement:"element",autofocus:"boolean"},Qi=".".concat("bs.focustrap"),Gi="focusin".concat(Qi),Wi="keydown.tab".concat(Qi),zi="backward",Ki=function(){function FocusTrap(r){bootstrap_esm_classCallCheck(this,FocusTrap),this._config=this._getConfig(r),this._isActive=!1,this._lastTabNavDirection=null}return bootstrap_esm_createClass(FocusTrap,[{key:"activate",value:function activate(){var r=this,o=this._config,i=o.trapElement,a=o.autofocus;this._isActive||(a&&i.focus(),$r.off(document,Qi),$r.on(document,Gi,(function(o){return r._handleFocusin(o)})),$r.on(document,Wi,(function(o){return r._handleKeydown(o)})),this._isActive=!0)}},{key:"deactivate",value:function deactivate(){this._isActive&&(this._isActive=!1,$r.off(document,Qi))}},{key:"_handleFocusin",value:function _handleFocusin(r){var o=r.target,i=this._config.trapElement;if(o!==document&&o!==i&&!i.contains(o)){var a=yo.focusableChildren(i);0===a.length?i.focus():this._lastTabNavDirection===zi?a[a.length-1].focus():a[0].focus()}}},{key:"_handleKeydown",value:function _handleKeydown(r){"Tab"===r.key&&(this._lastTabNavDirection=r.shiftKey?zi:"forward")}},{key:"_getConfig",value:function _getConfig(r){return r=_objectSpread(_objectSpread({},Bi),"object"===bootstrap_esm_typeof(r)?r:{}),Ir("focustrap",r,Hi),r}}]),FocusTrap}(),Yi="modal",Xi=".".concat("bs.modal"),Ji="Escape",$i={backdrop:!0,keyboard:!0,focus:!0},Zi={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},ea="hide".concat(Xi),ta="hidePrevented".concat(Xi),na="hidden".concat(Xi),ra="show".concat(Xi),oa="shown".concat(Xi),ia="resize".concat(Xi),aa="click.dismiss".concat(Xi),sa="keydown.dismiss".concat(Xi),ca="mouseup.dismiss".concat(Xi),ua="mousedown.dismiss".concat(Xi),la="click".concat(Xi).concat(".data-api"),pa="modal-open",fa="show",da="modal-static",ha=function(r){bootstrap_esm_inherits(Modal,r);var o=bootstrap_esm_createSuper(Modal);function Modal(r,i){var a;return bootstrap_esm_classCallCheck(this,Modal),(a=o.call(this,r))._config=a._getConfig(i),a._dialog=yo.findOne(".modal-dialog",a._element),a._backdrop=a._initializeBackDrop(),a._focustrap=a._initializeFocusTrap(),a._isShown=!1,a._ignoreBackdropClick=!1,a._isTransitioning=!1,a._scrollBar=new Pi,a}return bootstrap_esm_createClass(Modal,[{key:"toggle",value:function toggle(r){return this._isShown?this.hide():this.show(r)}},{key:"show",value:function show(r){var o=this;this._isShown||this._isTransitioning||($r.trigger(this._element,ra,{relatedTarget:r}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(pa),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),$r.on(this._dialog,ua,(function(){$r.one(o._element,ca,(function(r){r.target===o._element&&(o._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return o._showElement(r)}))))}},{key:"hide",value:function hide(){var r=this;if(this._isShown&&!this._isTransitioning&&!$r.trigger(this._element,ea).defaultPrevented){this._isShown=!1;var o=this._isAnimated();o&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove(fa),$r.off(this._element,aa),$r.off(this._dialog,ua),this._queueCallback((function(){return r._hideModal()}),this._element,o)}}},{key:"dispose",value:function dispose(){[window,this._dialog].forEach((function(r){return $r.off(r,Xi)})),this._backdrop.dispose(),this._focustrap.deactivate(),_get(bootstrap_esm_getPrototypeOf(Modal.prototype),"dispose",this).call(this)}},{key:"handleUpdate",value:function handleUpdate(){this._adjustDialog()}},{key:"_initializeBackDrop",value:function _initializeBackDrop(){return new Vi({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}},{key:"_initializeFocusTrap",value:function _initializeFocusTrap(){return new Ki({trapElement:this._element})}},{key:"_getConfig",value:function _getConfig(r){return r=_objectSpread(_objectSpread(_objectSpread({},$i),mo.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(r)?r:{}),Ir(Yi,r,Zi),r}},{key:"_showElement",value:function _showElement(r){var o=this,i=this._isAnimated(),a=yo.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,a&&(a.scrollTop=0),i&&jr(this._element),this._element.classList.add(fa);this._queueCallback((function transitionComplete(){o._config.focus&&o._focustrap.activate(),o._isTransitioning=!1,$r.trigger(o._element,oa,{relatedTarget:r})}),this._dialog,i)}},{key:"_setEscapeEvent",value:function _setEscapeEvent(){var r=this;this._isShown?$r.on(this._element,sa,(function(o){r._config.keyboard&&o.key===Ji?(o.preventDefault(),r.hide()):r._config.keyboard||o.key!==Ji||r._triggerBackdropTransition()})):$r.off(this._element,sa)}},{key:"_setResizeEvent",value:function _setResizeEvent(){var r=this;this._isShown?$r.on(window,ia,(function(){return r._adjustDialog()})):$r.off(window,ia)}},{key:"_hideModal",value:function _hideModal(){var r=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((function(){document.body.classList.remove(pa),r._resetAdjustments(),r._scrollBar.reset(),$r.trigger(r._element,na)}))}},{key:"_showBackdrop",value:function _showBackdrop(r){var o=this;$r.on(this._element,aa,(function(r){o._ignoreBackdropClick?o._ignoreBackdropClick=!1:r.target===r.currentTarget&&(!0===o._config.backdrop?o.hide():"static"===o._config.backdrop&&o._triggerBackdropTransition())})),this._backdrop.show(r)}},{key:"_isAnimated",value:function _isAnimated(){return this._element.classList.contains("fade")}},{key:"_triggerBackdropTransition",value:function _triggerBackdropTransition(){var r=this;if(!$r.trigger(this._element,ta).defaultPrevented){var o=this._element,i=o.classList,a=o.scrollHeight,c=o.style,u=a>document.documentElement.clientHeight;!u&&"hidden"===c.overflowY||i.contains(da)||(u||(c.overflowY="hidden"),i.add(da),this._queueCallback((function(){i.remove(da),u||r._queueCallback((function(){c.overflowY=""}),r._dialog)}),this._dialog),this._element.focus())}}},{key:"_adjustDialog",value:function _adjustDialog(){var r=this._element.scrollHeight>document.documentElement.clientHeight,o=this._scrollBar.getWidth(),i=o>0;(!i&&r&&!qr()||i&&!r&&qr())&&(this._element.style.paddingLeft="".concat(o,"px")),(i&&!r&&!qr()||!i&&r&&qr())&&(this._element.style.paddingRight="".concat(o,"px"))}},{key:"_resetAdjustments",value:function _resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}}],[{key:"Default",get:function get(){return $i}},{key:"NAME",get:function get(){return Yi}},{key:"jQueryInterface",value:function jQueryInterface(r,o){return this.each((function(){var i=Modal.getOrCreateInstance(this,r);if("string"===typeof r){if("undefined"===typeof i[r])throw new TypeError('No method named "'.concat(r,'"'));i[r](o)}}))}}]),Modal}(oo);$r.on(document,la,'[data-bs-toggle="modal"]',(function(r){var o=this,i=kr(this);["A","AREA"].includes(this.tagName)&&r.preventDefault(),$r.one(i,ra,(function(r){r.defaultPrevented||$r.one(i,na,(function(){Dr(o)&&o.focus()}))})),ha.getOrCreateInstance(i).toggle(this)})),io(ha),Ur(ha);var ma="offcanvas",ya=".".concat("bs.offcanvas"),va=".data-api",ga="load".concat(ya).concat(va),_a={backdrop:!0,keyboard:!0,scroll:!1},ba={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},Ea="show",wa=".offcanvas.show",Sa="show".concat(ya),Oa="shown".concat(ya),Ta="hide".concat(ya),ka="hidden".concat(ya),Aa="click".concat(ya).concat(va),Ca="keydown.dismiss".concat(ya),Na=function(r){bootstrap_esm_inherits(Offcanvas,r);var o=bootstrap_esm_createSuper(Offcanvas);function Offcanvas(r,i){var a;return bootstrap_esm_classCallCheck(this,Offcanvas),(a=o.call(this,r))._config=a._getConfig(i),a._isShown=!1,a._backdrop=a._initializeBackDrop(),a._focustrap=a._initializeFocusTrap(),a._addEventListeners(),a}return bootstrap_esm_createClass(Offcanvas,[{key:"toggle",value:function toggle(r){return this._isShown?this.hide():this.show(r)}},{key:"show",value:function show(r){var o=this;if(!this._isShown&&!$r.trigger(this._element,Sa,{relatedTarget:r}).defaultPrevented){this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new Pi).hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ea);this._queueCallback((function completeCallBack(){o._config.scroll||o._focustrap.activate(),$r.trigger(o._element,Oa,{relatedTarget:r})}),this._element,!0)}}},{key:"hide",value:function hide(){var r=this;if(this._isShown&&!$r.trigger(this._element,Ta).defaultPrevented){this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove(Ea),this._backdrop.hide();this._queueCallback((function completeCallback(){r._element.setAttribute("aria-hidden",!0),r._element.removeAttribute("aria-modal"),r._element.removeAttribute("role"),r._element.style.visibility="hidden",r._config.scroll||(new Pi).reset(),$r.trigger(r._element,ka)}),this._element,!0)}}},{key:"dispose",value:function dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),_get(bootstrap_esm_getPrototypeOf(Offcanvas.prototype),"dispose",this).call(this)}},{key:"_getConfig",value:function _getConfig(r){return r=_objectSpread(_objectSpread(_objectSpread({},_a),mo.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(r)?r:{}),Ir(ma,r,ba),r}},{key:"_initializeBackDrop",value:function _initializeBackDrop(){var r=this;return new Vi({className:"offcanvas-backdrop",isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:function clickCallback(){return r.hide()}})}},{key:"_initializeFocusTrap",value:function _initializeFocusTrap(){return new Ki({trapElement:this._element})}},{key:"_addEventListeners",value:function _addEventListeners(){var r=this;$r.on(this._element,Ca,(function(o){r._config.keyboard&&"Escape"===o.key&&r.hide()}))}}],[{key:"NAME",get:function get(){return ma}},{key:"Default",get:function get(){return _a}},{key:"jQueryInterface",value:function jQueryInterface(r){return this.each((function(){var o=Offcanvas.getOrCreateInstance(this,r);if("string"===typeof r){if(void 0===o[r]||r.startsWith("_")||"constructor"===r)throw new TypeError('No method named "'.concat(r,'"'));o[r](this)}}))}}]),Offcanvas}(oo);$r.on(document,Aa,'[data-bs-toggle="offcanvas"]',(function(r){var o=this,i=kr(this);if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),!Lr(this)){$r.one(i,ka,(function(){Dr(o)&&o.focus()}));var a=yo.findOne(wa);a&&a!==i&&Na.getInstance(a).hide(),Na.getOrCreateInstance(i).toggle(this)}})),$r.on(window,ga,(function(){return yo.find(wa).forEach((function(r){return Na.getOrCreateInstance(r).show()}))})),io(Na),Ur(Na);var xa=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Ia=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,Da=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,La={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function sanitizeHtml(r,o,i){var a;if(!r.length)return r;if(i&&"function"===typeof i)return i(r);for(var c=(new window.DOMParser).parseFromString(r,"text/html"),u=Object.keys(o),l=(a=[]).concat.apply(a,bootstrap_esm_toConsumableArray(c.body.querySelectorAll("*"))),p=function _loop(r,i){var a,c=l[r],p=c.nodeName.toLowerCase();if(!u.includes(p))return c.remove(),"continue";var d=(a=[]).concat.apply(a,bootstrap_esm_toConsumableArray(c.attributes)),h=[].concat(o["*"]||[],o[p]||[]);d.forEach((function(r){(function allowedAttribute(r,o){var i=r.nodeName.toLowerCase();if(o.includes(i))return!xa.has(i)||Boolean(Ia.test(r.nodeValue)||Da.test(r.nodeValue));for(var a=o.filter((function(r){return r instanceof RegExp})),c=0,u=a.length;c
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:La,popperConfig:null},Ua={HIDE:"hide".concat(Pa),HIDDEN:"hidden".concat(Pa),SHOW:"show".concat(Pa),SHOWN:"shown".concat(Pa),INSERTED:"inserted".concat(Pa),CLICK:"click".concat(Pa),FOCUSIN:"focusin".concat(Pa),FOCUSOUT:"focusout".concat(Pa),MOUSEENTER:"mouseenter".concat(Pa),MOUSELEAVE:"mouseleave".concat(Pa)},Va="fade",Ba="show",Ha="show",Qa="out",Ga=".".concat("modal"),Wa="hide.bs.modal",za="hover",Ka="focus",Ya=function(o){bootstrap_esm_inherits(Tooltip,o);var i=bootstrap_esm_createSuper(Tooltip);function Tooltip(o,a){var c;if(bootstrap_esm_classCallCheck(this,Tooltip),"undefined"===typeof r)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");return(c=i.call(this,o))._isEnabled=!0,c._timeout=0,c._hoverState="",c._activeTrigger={},c._popper=null,c._config=c._getConfig(a),c.tip=null,c._setListeners(),c}return bootstrap_esm_createClass(Tooltip,[{key:"enable",value:function enable(){this._isEnabled=!0}},{key:"disable",value:function disable(){this._isEnabled=!1}},{key:"toggleEnabled",value:function toggleEnabled(){this._isEnabled=!this._isEnabled}},{key:"toggle",value:function toggle(r){if(this._isEnabled)if(r){var o=this._initializeOnDelegatedTarget(r);o._activeTrigger.click=!o._activeTrigger.click,o._isWithActiveTrigger()?o._enter(null,o):o._leave(null,o)}else{if(this.getTipElement().classList.contains(Ba))return void this._leave(null,this);this._enter(null,this)}}},{key:"dispose",value:function dispose(){clearTimeout(this._timeout),$r.off(this._element.closest(Ga),Wa,this._hideModalHandler),this.tip&&this.tip.remove(),this._popper&&this._popper.destroy(),_get(bootstrap_esm_getPrototypeOf(Tooltip.prototype),"dispose",this).call(this)}},{key:"show",value:function show(){var r=this;if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(this.isWithContent()&&this._isEnabled){var o=$r.trigger(this._element,this.constructor.Event.SHOW),i=Rr(this._element),a=null===i?this._element.ownerDocument.documentElement.contains(this._element):i.contains(this._element);if(!o.defaultPrevented&&a){var c=this.getTipElement(),u=function getUID(r){do{r+=Math.floor(1e6*Math.random())}while(document.getElementById(r));return r}(this.constructor.NAME);c.setAttribute("id",u),this._element.setAttribute("aria-describedby",u),this._config.animation&&c.classList.add(Va);var l="function"===typeof this._config.placement?this._config.placement.call(this,c,this._element):this._config.placement,p=this._getAttachment(l);this._addAttachmentClass(p);var d=this._config.container;eo(c,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(d.append(c),$r.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=Er(this._element,c,this._getPopperConfig(p)),c.classList.add(Ba);var h,m,y=this._resolvePossibleFunction(this._config.customClass);if(y)(h=c.classList).add.apply(h,bootstrap_esm_toConsumableArray(y.split(" ")));if("ontouchstart"in document.documentElement)(m=[]).concat.apply(m,bootstrap_esm_toConsumableArray(document.body.children)).forEach((function(r){$r.on(r,"mouseover",Pr)}));var v=this.tip.classList.contains(Va);this._queueCallback((function complete(){var o=r._hoverState;r._hoverState=null,$r.trigger(r._element,r.constructor.Event.SHOWN),o===Qa&&r._leave(null,r)}),this.tip,v)}}}},{key:"hide",value:function hide(){var r=this;if(this._popper){var o=this.getTipElement();if(!$r.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented){var i;if(o.classList.remove(Ba),"ontouchstart"in document.documentElement)(i=[]).concat.apply(i,bootstrap_esm_toConsumableArray(document.body.children)).forEach((function(r){return $r.off(r,"mouseover",Pr)}));this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;var a=this.tip.classList.contains(Va);this._queueCallback((function complete(){r._isWithActiveTrigger()||(r._hoverState!==Ha&&o.remove(),r._cleanTipClass(),r._element.removeAttribute("aria-describedby"),$r.trigger(r._element,r.constructor.Event.HIDDEN),r._popper&&(r._popper.destroy(),r._popper=null))}),this.tip,a),this._hoverState=""}}}},{key:"update",value:function update(){null!==this._popper&&this._popper.update()}},{key:"isWithContent",value:function isWithContent(){return Boolean(this.getTitle())}},{key:"getTipElement",value:function getTipElement(){if(this.tip)return this.tip;var r=document.createElement("div");r.innerHTML=this._config.template;var o=r.children[0];return this.setContent(o),o.classList.remove(Va,Ba),this.tip=o,this.tip}},{key:"setContent",value:function setContent(r){this._sanitizeAndSetContent(r,this.getTitle(),".tooltip-inner")}},{key:"_sanitizeAndSetContent",value:function _sanitizeAndSetContent(r,o,i){var a=yo.findOne(i,r);o||!a?this.setElementContent(a,o):a.remove()}},{key:"setElementContent",value:function setElementContent(r,o){if(null!==r)return Nr(o)?(o=xr(o),void(this._config.html?o.parentNode!==r&&(r.innerHTML="",r.append(o)):r.textContent=o.textContent)):void(this._config.html?(this._config.sanitize&&(o=sanitizeHtml(o,this._config.allowList,this._config.sanitizeFn)),r.innerHTML=o):r.textContent=o)}},{key:"getTitle",value:function getTitle(){var r=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(r)}},{key:"updateAttachment",value:function updateAttachment(r){return"right"===r?"end":"left"===r?"start":r}},{key:"_initializeOnDelegatedTarget",value:function _initializeOnDelegatedTarget(r,o){return o||this.constructor.getOrCreateInstance(r.delegateTarget,this._getDelegateConfig())}},{key:"_getOffset",value:function _getOffset(){var r=this,o=this._config.offset;return"string"===typeof o?o.split(",").map((function(r){return Number.parseInt(r,10)})):"function"===typeof o?function(i){return o(i,r._element)}:o}},{key:"_resolvePossibleFunction",value:function _resolvePossibleFunction(r){return"function"===typeof r?r.call(this._element):r}},{key:"_getPopperConfig",value:function _getPopperConfig(r){var o=this,i={placement:r,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:".".concat(this.constructor.NAME,"-arrow")}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:function fn(r){return o._handlePopperPlacementChange(r)}}],onFirstUpdate:function onFirstUpdate(r){r.options.placement!==r.placement&&o._handlePopperPlacementChange(r)}};return _objectSpread(_objectSpread({},i),"function"===typeof this._config.popperConfig?this._config.popperConfig(i):this._config.popperConfig)}},{key:"_addAttachmentClass",value:function _addAttachmentClass(r){this.getTipElement().classList.add("".concat(this._getBasicClassPrefix(),"-").concat(this.updateAttachment(r)))}},{key:"_getAttachment",value:function _getAttachment(r){return Fa[r.toUpperCase()]}},{key:"_setListeners",value:function _setListeners(){var r=this;this._config.trigger.split(" ").forEach((function(o){if("click"===o)$r.on(r._element,r.constructor.Event.CLICK,r._config.selector,(function(o){return r.toggle(o)}));else if("manual"!==o){var i=o===za?r.constructor.Event.MOUSEENTER:r.constructor.Event.FOCUSIN,a=o===za?r.constructor.Event.MOUSELEAVE:r.constructor.Event.FOCUSOUT;$r.on(r._element,i,r._config.selector,(function(o){return r._enter(o)})),$r.on(r._element,a,r._config.selector,(function(o){return r._leave(o)}))}})),this._hideModalHandler=function(){r._element&&r.hide()},$r.on(this._element.closest(Ga),Wa,this._hideModalHandler),this._config.selector?this._config=_objectSpread(_objectSpread({},this._config),{},{trigger:"manual",selector:""}):this._fixTitle()}},{key:"_fixTitle",value:function _fixTitle(){var r=this._element.getAttribute("title"),o=bootstrap_esm_typeof(this._element.getAttribute("data-bs-original-title"));(r||"string"!==o)&&(this._element.setAttribute("data-bs-original-title",r||""),!r||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",r),this._element.setAttribute("title",""))}},{key:"_enter",value:function _enter(r,o){o=this._initializeOnDelegatedTarget(r,o),r&&(o._activeTrigger["focusin"===r.type?Ka:za]=!0),o.getTipElement().classList.contains(Ba)||o._hoverState===Ha?o._hoverState=Ha:(clearTimeout(o._timeout),o._hoverState=Ha,o._config.delay&&o._config.delay.show?o._timeout=setTimeout((function(){o._hoverState===Ha&&o.show()}),o._config.delay.show):o.show())}},{key:"_leave",value:function _leave(r,o){o=this._initializeOnDelegatedTarget(r,o),r&&(o._activeTrigger["focusout"===r.type?Ka:za]=o._element.contains(r.relatedTarget)),o._isWithActiveTrigger()||(clearTimeout(o._timeout),o._hoverState=Qa,o._config.delay&&o._config.delay.hide?o._timeout=setTimeout((function(){o._hoverState===Qa&&o.hide()}),o._config.delay.hide):o.hide())}},{key:"_isWithActiveTrigger",value:function _isWithActiveTrigger(){for(var r in this._activeTrigger)if(this._activeTrigger[r])return!0;return!1}},{key:"_getConfig",value:function _getConfig(r){var o=mo.getDataAttributes(this._element);return Object.keys(o).forEach((function(r){ja.has(r)&&delete o[r]})),(r=_objectSpread(_objectSpread(_objectSpread({},this.constructor.Default),o),"object"===bootstrap_esm_typeof(r)&&r?r:{})).container=!1===r.container?document.body:xr(r.container),"number"===typeof r.delay&&(r.delay={show:r.delay,hide:r.delay}),"number"===typeof r.title&&(r.title=r.title.toString()),"number"===typeof r.content&&(r.content=r.content.toString()),Ir(Ra,r,this.constructor.DefaultType),r.sanitize&&(r.template=sanitizeHtml(r.template,r.allowList,r.sanitizeFn)),r}},{key:"_getDelegateConfig",value:function _getDelegateConfig(){var r={};for(var o in this._config)this.constructor.Default[o]!==this._config[o]&&(r[o]=this._config[o]);return r}},{key:"_cleanTipClass",value:function _cleanTipClass(){var r=this.getTipElement(),o=new RegExp("(^|\\s)".concat(this._getBasicClassPrefix(),"\\S+"),"g"),i=r.getAttribute("class").match(o);null!==i&&i.length>0&&i.map((function(r){return r.trim()})).forEach((function(o){return r.classList.remove(o)}))}},{key:"_getBasicClassPrefix",value:function _getBasicClassPrefix(){return"bs-tooltip"}},{key:"_handlePopperPlacementChange",value:function _handlePopperPlacementChange(r){var o=r.state;o&&(this.tip=o.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(o.placement)))}}],[{key:"Default",get:function get(){return qa}},{key:"NAME",get:function get(){return Ra}},{key:"Event",get:function get(){return Ua}},{key:"DefaultType",get:function get(){return Ma}},{key:"jQueryInterface",value:function jQueryInterface(r){return this.each((function(){var o=Tooltip.getOrCreateInstance(this,r);if("string"===typeof r){if("undefined"===typeof o[r])throw new TypeError('No method named "'.concat(r,'"'));o[r]()}}))}}]),Tooltip}(oo);Ur(Ya);var Xa=".".concat("bs.popover"),Ja=_objectSpread(_objectSpread({},Ya.Default),{},{placement:"right",offset:[0,8],trigger:"click",content:"",template:''}),$a=_objectSpread(_objectSpread({},Ya.DefaultType),{},{content:"(string|element|function)"}),Za={HIDE:"hide".concat(Xa),HIDDEN:"hidden".concat(Xa),SHOW:"show".concat(Xa),SHOWN:"shown".concat(Xa),INSERTED:"inserted".concat(Xa),CLICK:"click".concat(Xa),FOCUSIN:"focusin".concat(Xa),FOCUSOUT:"focusout".concat(Xa),MOUSEENTER:"mouseenter".concat(Xa),MOUSELEAVE:"mouseleave".concat(Xa)};Ur(function(r){bootstrap_esm_inherits(Popover,r);var o=bootstrap_esm_createSuper(Popover);function Popover(){return bootstrap_esm_classCallCheck(this,Popover),o.apply(this,arguments)}return bootstrap_esm_createClass(Popover,[{key:"isWithContent",value:function isWithContent(){return this.getTitle()||this._getContent()}},{key:"setContent",value:function setContent(r){this._sanitizeAndSetContent(r,this.getTitle(),".popover-header"),this._sanitizeAndSetContent(r,this._getContent(),".popover-body")}},{key:"_getContent",value:function _getContent(){return this._resolvePossibleFunction(this._config.content)}},{key:"_getBasicClassPrefix",value:function _getBasicClassPrefix(){return"bs-popover"}}],[{key:"Default",get:function get(){return Ja}},{key:"NAME",get:function get(){return"popover"}},{key:"Event",get:function get(){return Za}},{key:"DefaultType",get:function get(){return $a}},{key:"jQueryInterface",value:function jQueryInterface(r){return this.each((function(){var o=Popover.getOrCreateInstance(this,r);if("string"===typeof r){if("undefined"===typeof o[r])throw new TypeError('No method named "'.concat(r,'"'));o[r]()}}))}}]),Popover}(Ya));var es="scrollspy",ts=".".concat("bs.scrollspy"),ns={offset:10,method:"auto",target:""},rs={offset:"number",method:"string",target:"(string|element)"},os="activate".concat(ts),is="scroll".concat(ts),as="load".concat(ts).concat(".data-api"),ss="dropdown-item",cs="active",us=".nav-link",ls=".list-group-item",ps="".concat(us,", ").concat(ls,", .").concat(ss),fs="position",ds=function(r){bootstrap_esm_inherits(ScrollSpy,r);var o=bootstrap_esm_createSuper(ScrollSpy);function ScrollSpy(r,i){var a;return bootstrap_esm_classCallCheck(this,ScrollSpy),(a=o.call(this,r))._scrollElement="BODY"===a._element.tagName?window:a._element,a._config=a._getConfig(i),a._offsets=[],a._targets=[],a._activeTarget=null,a._scrollHeight=0,$r.on(a._scrollElement,is,(function(){return a._process()})),a.refresh(),a._process(),a}return bootstrap_esm_createClass(ScrollSpy,[{key:"refresh",value:function refresh(){var r=this,o=this._scrollElement===this._scrollElement.window?"offset":fs,i="auto"===this._config.method?o:this._config.method,a=i===fs?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),yo.find(ps,this._config.target).map((function(r){var o=Tr(r),c=o?yo.findOne(o):null;if(c){var u=c.getBoundingClientRect();if(u.width||u.height)return[mo[i](c).top+a,o]}return null})).filter((function(r){return r})).sort((function(r,o){return r[0]-o[0]})).forEach((function(o){r._offsets.push(o[0]),r._targets.push(o[1])}))}},{key:"dispose",value:function dispose(){$r.off(this._scrollElement,ts),_get(bootstrap_esm_getPrototypeOf(ScrollSpy.prototype),"dispose",this).call(this)}},{key:"_getConfig",value:function _getConfig(r){return(r=_objectSpread(_objectSpread(_objectSpread({},ns),mo.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(r)&&r?r:{})).target=xr(r.target)||document.documentElement,Ir(es,r,rs),r}},{key:"_getScrollTop",value:function _getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}},{key:"_getScrollHeight",value:function _getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}},{key:"_getOffsetHeight",value:function _getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}},{key:"_process",value:function _process(){var r=this._getScrollTop()+this._config.offset,o=this._getScrollHeight(),i=this._config.offset+o-this._getOffsetHeight();if(this._scrollHeight!==o&&this.refresh(),r>=i){var a=this._targets[this._targets.length-1];this._activeTarget!==a&&this._activate(a)}else{if(this._activeTarget&&r0)return this._activeTarget=null,void this._clear();for(var c=this._offsets.length;c--;){this._activeTarget!==this._targets[c]&&r>=this._offsets[c]&&("undefined"===typeof this._offsets[c+1]||r .dropdown-menu .active",o.parentNode);a&&a.classList.remove(bs),"tab"===o.getAttribute("role")&&o.setAttribute("aria-selected",!1)}r.classList.add(bs),"tab"===r.getAttribute("role")&&r.setAttribute("aria-selected",!0),jr(r),r.classList.contains(Es)&&r.classList.add(ws);var c=r.parentNode;if(c&&"LI"===c.nodeName&&(c=c.parentNode),c&&c.classList.contains("dropdown-menu")){var u=r.closest(".dropdown");u&&yo.find(".dropdown-toggle",u).forEach((function(r){return r.classList.add(bs)})),r.setAttribute("aria-expanded",!0)}i&&i()}}],[{key:"NAME",get:function get(){return"tab"}},{key:"jQueryInterface",value:function jQueryInterface(r){return this.each((function(){var o=Tab.getOrCreateInstance(this);if("string"===typeof r){if("undefined"===typeof o[r])throw new TypeError('No method named "'.concat(r,'"'));o[r]()}}))}}]),Tab}(oo);$r.on(document,_s,'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(r){(["A","AREA"].includes(this.tagName)&&r.preventDefault(),Lr(this))||Ts.getOrCreateInstance(this).show()})),Ur(Ts);var ks="toast",As=".".concat("bs.toast"),Cs="mouseover".concat(As),Ns="mouseout".concat(As),xs="focusin".concat(As),Is="focusout".concat(As),Ds="hide".concat(As),Ls="hidden".concat(As),Rs="show".concat(As),Ps="shown".concat(As),js="hide",Ms="show",Fs="showing",qs={animation:"boolean",autohide:"boolean",delay:"number"},Us={animation:!0,autohide:!0,delay:5e3},Vs=function(r){bootstrap_esm_inherits(Toast,r);var o=bootstrap_esm_createSuper(Toast);function Toast(r,i){var a;return bootstrap_esm_classCallCheck(this,Toast),(a=o.call(this,r))._config=a._getConfig(i),a._timeout=null,a._hasMouseInteraction=!1,a._hasKeyboardInteraction=!1,a._setListeners(),a}return bootstrap_esm_createClass(Toast,[{key:"show",value:function show(){var r=this;if(!$r.trigger(this._element,Rs).defaultPrevented){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(js),jr(this._element),this._element.classList.add(Ms),this._element.classList.add(Fs),this._queueCallback((function complete(){r._element.classList.remove(Fs),$r.trigger(r._element,Ps),r._maybeScheduleHide()}),this._element,this._config.animation)}}},{key:"hide",value:function hide(){var r=this;if(this._element.classList.contains(Ms)&&!$r.trigger(this._element,Ds).defaultPrevented){this._element.classList.add(Fs),this._queueCallback((function complete(){r._element.classList.add(js),r._element.classList.remove(Fs),r._element.classList.remove(Ms),$r.trigger(r._element,Ls)}),this._element,this._config.animation)}}},{key:"dispose",value:function dispose(){this._clearTimeout(),this._element.classList.contains(Ms)&&this._element.classList.remove(Ms),_get(bootstrap_esm_getPrototypeOf(Toast.prototype),"dispose",this).call(this)}},{key:"_getConfig",value:function _getConfig(r){return r=_objectSpread(_objectSpread(_objectSpread({},Us),mo.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(r)&&r?r:{}),Ir(ks,r,this.constructor.DefaultType),r}},{key:"_maybeScheduleHide",value:function _maybeScheduleHide(){var r=this;this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((function(){r.hide()}),this._config.delay)))}},{key:"_onInteraction",value:function _onInteraction(r,o){switch(r.type){case"mouseover":case"mouseout":this._hasMouseInteraction=o;break;case"focusin":case"focusout":this._hasKeyboardInteraction=o}if(o)this._clearTimeout();else{var i=r.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}}},{key:"_setListeners",value:function _setListeners(){var r=this;$r.on(this._element,Cs,(function(o){return r._onInteraction(o,!0)})),$r.on(this._element,Ns,(function(o){return r._onInteraction(o,!1)})),$r.on(this._element,xs,(function(o){return r._onInteraction(o,!0)})),$r.on(this._element,Is,(function(o){return r._onInteraction(o,!1)}))}},{key:"_clearTimeout",value:function _clearTimeout(){clearTimeout(this._timeout),this._timeout=null}}],[{key:"DefaultType",get:function get(){return qs}},{key:"Default",get:function get(){return Us}},{key:"NAME",get:function get(){return ks}},{key:"jQueryInterface",value:function jQueryInterface(r){return this.each((function(){var o=Toast.getOrCreateInstance(this,r);if("string"===typeof r){if("undefined"===typeof o[r])throw new TypeError('No method named "'.concat(r,'"'));o[r](this)}}))}}]),Toast}(oo);function links_defineProperties(r,o){for(var i=0;i