webpack-bootstrap-ui-kit/dist/js/app.js

2 lines
564 KiB
JavaScript

/*! 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<i.length;a++)i[a]=arguments[a];return r.apply(o,i)}}},642:function(r,o,i){"use strict";var a=i(750);function encode(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}r.exports=function buildURL(r,o,i){if(!o)return r;var c;if(i)c=i(o);else if(a.isURLSearchParams(o))c=o.toString();else{var u=[];a.forEach(o,(function serialize(r,o){null!==r&&"undefined"!==typeof r&&(a.isArray(r)?o+="[]":r=[r],a.forEach(r,(function parseValue(r){a.isDate(r)?r=r.toISOString():a.isObject(r)&&(r=JSON.stringify(r)),u.push(encode(o)+"="+encode(r))})))})),c=u.join("&")}if(c){var l=r.indexOf("#");-1!==l&&(r=r.slice(0,l)),r+=(-1===r.indexOf("?")?"?":"&")+c}return r}},567:function(r){"use strict";r.exports=function combineURLs(r,o){return o?r.replace(/\/+$/,"")+"/"+o.replace(/^\/+/,""):r}},804:function(r,o,i){"use strict";var a=i(750);r.exports=a.isStandardBrowserEnv()?function standardBrowserEnv(){return{write:function write(r,o,i,c,u,l){var p=[];p.push(r+"="+encodeURIComponent(o)),a.isNumber(i)&&p.push("expires="+new Date(i).toGMTString()),a.isString(c)&&p.push("path="+c),a.isString(u)&&p.push("domain="+u),!0===l&&p.push("secure"),document.cookie=p.join("; ")},read:function read(r){var o=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function remove(r){this.write(r,"",Date.now()-864e5)}}}():{write:function write(){},read:function read(){return null},remove:function remove(){}}},322:function(r){"use strict";r.exports=function isAbsoluteURL(r){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(r)}},218:function(r){"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)}r.exports=function isAxiosError(r){return"object"===_typeof(r)&&!0===r.isAxiosError}},868:function(r,o,i){"use strict";var a=i(750);r.exports=a.isStandardBrowserEnv()?function standardBrowserEnv(){var r,o=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function resolveURL(r){var a=r;return o&&(i.setAttribute("href",a),a=i.href),i.setAttribute("href",a),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return r=resolveURL(window.location.href),function isURLSameOrigin(o){var i=a.isString(o)?resolveURL(o):o;return i.protocol===r.protocol&&i.host===r.host}}():function isURLSameOrigin(){return!0}},325:function(r,o,i){"use strict";var a=i(750);r.exports=function normalizeHeaderName(r,o){a.forEach(r,(function processHeader(i,a){a!==o&&a.toUpperCase()===o.toUpperCase()&&(r[o]=i,delete r[a])}))}},279:function(r,o,i){"use strict";var a=i(750),c=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];r.exports=function parseHeaders(r){var o,i,u,l={};return r?(a.forEach(r.split("\n"),(function parser(r){if(u=r.indexOf(":"),o=a.trim(r.substr(0,u)).toLowerCase(),i=a.trim(r.substr(u+1)),o){if(l[o]&&c.indexOf(o)>=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<a;i++)o.call(null,r[i],i,r);else for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&o.call(null,r[c],c,r)}r.exports={isArray:isArray,isArrayBuffer:function isArrayBuffer(r){return"[object ArrayBuffer]"===c.call(r)},isBuffer:function isBuffer(r){return null!==r&&!isUndefined(r)&&null!==r.constructor&&!isUndefined(r.constructor)&&"function"===typeof r.constructor.isBuffer&&r.constructor.isBuffer(r)},isFormData:function isFormData(r){return"undefined"!==typeof FormData&&r instanceof FormData},isArrayBufferView:function isArrayBufferView(r){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(r):r&&r.buffer&&r.buffer instanceof ArrayBuffer},isString:function isString(r){return"string"===typeof r},isNumber:function isNumber(r){return"number"===typeof r},isObject:isObject,isPlainObject:isPlainObject,isUndefined:isUndefined,isDate:function isDate(r){return"[object Date]"===c.call(r)},isFile:function isFile(r){return"[object File]"===c.call(r)},isBlob:function isBlob(r){return"[object Blob]"===c.call(r)},isFunction:isFunction,isStream:function isStream(r){return isObject(r)&&isFunction(r.pipe)},isURLSearchParams:function isURLSearchParams(r){return"undefined"!==typeof URLSearchParams&&r instanceof URLSearchParams},isStandardBrowserEnv:function isStandardBrowserEnv(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:forEach,merge:function merge(){var r={};function assignValue(o,i){isPlainObject(r[i])&&isPlainObject(o)?r[i]=merge(r[i],o):isPlainObject(o)?r[i]=merge({},o):isArray(o)?r[i]=o.slice():r[i]=o}for(var o=0,i=arguments.length;o<i;o++)forEach(arguments[o],assignValue);return r},extend:function extend(r,o,i){return forEach(o,(function assignValue(o,c){r[c]=i&&"function"===typeof o?a(o,i):o})),r},trim:function trim(r){return r.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function stripBOM(r){return 65279===r.charCodeAt(0)&&(r=r.slice(1)),r}}},997:function(r,o,i){var a;o.formatArgs=function formatArgs(o){if(o[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+o[0]+(this.useColors?"%c ":" ")+"+"+r.exports.humanize(this.diff),!this.useColors)return;var i="color: "+this.color;o.splice(1,0,i,"color: inherit");var a=0,c=0;o[0].replace(/%[a-zA-Z%]/g,(function(r){"%%"!==r&&(a++,"%c"===r&&(c=a))})),o.splice(c,0,i)},o.save=function save(r){try{r?o.storage.setItem("debug",r):o.storage.removeItem("debug")}catch(i){}},o.load=function load(){var r;try{r=o.storage.getItem("debug")}catch(i){}!r&&"undefined"!==typeof process&&"env"in process&&(r={NODE_ENV:"production"}.DEBUG);return r},o.useColors=function useColors(){if("undefined"!==typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},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<o;i++)a[i]=r[i];return a}r.exports=function setup(r){function createDebug(r){var o,i,a,c=null;function debug(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];if(debug.enabled){var c=debug,u=Number(new Date),l=u-(o||u);c.diff=l,c.prev=o,c.curr=u,o=u,i[0]=createDebug.coerce(i[0]),"string"!==typeof i[0]&&i.unshift("%O");var p=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(r,o){if("%%"===r)return"%";p++;var a=createDebug.formatters[o];if("function"===typeof a){var u=i[p];r=a.call(c,u),i.splice(p,1),p--}return r})),createDebug.formatArgs.call(c,i);var d=c.log||createDebug.log;d.apply(c,i)}}return debug.namespace=r,debug.useColors=createDebug.useColors(),debug.color=createDebug.selectColor(r),debug.extend=extend,debug.destroy=createDebug.destroy,Object.defineProperty(debug,"enabled",{enumerable:!0,configurable:!1,get:function get(){return null!==c?c:(i!==createDebug.namespaces&&(i=createDebug.namespaces,a=createDebug.enabled(r)),a)},set:function set(r){c=r}}),"function"===typeof createDebug.init&&createDebug.init(debug),debug}function extend(r,o){var i=createDebug(this.namespace+("undefined"===typeof o?":":o)+r);return i.log=this.log,i}function toNamespace(r){return r.toString().substring(2,r.toString().length-2).replace(/\.\*\?$/,"*")}return createDebug.debug=createDebug,createDebug.default=createDebug,createDebug.coerce=function coerce(r){if(r instanceof Error)return r.stack||r.message;return r},createDebug.disable=function disable(){var r=[].concat(_toConsumableArray(createDebug.names.map(toNamespace)),_toConsumableArray(createDebug.skips.map(toNamespace).map((function(r){return"-"+r})))).join(",");return createDebug.enable(""),r},createDebug.enable=function enable(r){var o;createDebug.save(r),createDebug.namespaces=r,createDebug.names=[],createDebug.skips=[];var i=("string"===typeof r?r:"").split(/[\s,]+/),a=i.length;for(o=0;o<a;o++)i[o]&&("-"===(r=i[o].replace(/\*/g,".*?"))[0]?createDebug.skips.push(new RegExp("^"+r.substr(1)+"$")):createDebug.names.push(new RegExp("^"+r+"$")))},createDebug.enabled=function enabled(r){if("*"===r[r.length-1])return!0;var o,i;for(o=0,i=createDebug.skips.length;o<i;o++)if(createDebug.skips[o].test(r))return!1;for(o=0,i=createDebug.names.length;o<i;o++)if(createDebug.names[o].test(r))return!0;return!1},createDebug.humanize=i(739),createDebug.destroy=function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(r).forEach((function(o){createDebug[o]=r[o]})),createDebug.names=[],createDebug.skips=[],createDebug.formatters={},createDebug.selectColor=function selectColor(r){for(var o=0,i=0;i<r.length;i++)o=(o<<5)-o+r.charCodeAt(i),o|=0;return createDebug.colors[Math.abs(o)%createDebug.colors.length]},createDebug.enable(createDebug.load()),createDebug}},739:function(r){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 o=1e3,i=60*o,a=60*i,c=24*a,u=7*c,l=365.25*c;function plural(r,o,i,a){var c=o>=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<r.length;)if(a.call(r,c))return next.value=r[c],next.done=!1,next;return next.value=o,next.done=!0,next};return l.next=l}}return{next:doneResult}}function doneResult(){return{value:o,done:!0}}return GeneratorFunction.prototype=GeneratorFunctionPrototype,define(E,"constructor",GeneratorFunctionPrototype),define(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,p,"GeneratorFunction"),r.isGeneratorFunction=function(r){var o="function"===typeof r&&r.constructor;return!!o&&(o===GeneratorFunction||"GeneratorFunction"===(o.displayName||o.name))},r.mark=function(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,GeneratorFunctionPrototype):(r.__proto__=GeneratorFunctionPrototype,define(r,p,"GeneratorFunction")),r.prototype=Object.create(E),r},r.awrap=function(r){return{__await:r}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,l,(function(){return this})),r.AsyncIterator=AsyncIterator,r.async=function(o,i,a,c,u){void 0===u&&(u=Promise);var l=new AsyncIterator(wrap(o,i,a,c),u);return r.isGeneratorFunction(i)?l:l.next().then((function(r){return r.done?r.value:l.next()}))},defineIteratorMethods(E),define(E,p,"Generator"),define(E,u,(function(){return this})),define(E,"toString",(function(){return"[object Generator]"})),r.keys=function(r){var o=[];for(var i in r)o.push(i);return o.reverse(),function next(){for(;o.length;){var i=o.pop();if(i in r)return next.value=i,next.done=!1,next}return next.done=!0,next}},r.values=values,Context.prototype={constructor:Context,reset:function reset(r){if(this.prev=0,this.next=0,this.sent=this._sent=o,this.done=!1,this.delegate=null,this.method="next",this.arg=o,this.tryEntries.forEach(resetTryEntry),!r)for(var i in this)"t"===i.charAt(0)&&a.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=o)},stop:function stop(){this.done=!0;var r=this.tryEntries[0].completion;if("throw"===r.type)throw r.arg;return this.rval},dispatchException:function dispatchException(r){if(this.done)throw r;var i=this;function handle(a,c){return l.type="throw",l.arg=r,i.next=a,c&&(i.method="next",i.arg=o),!!c}for(var c=this.tryEntries.length-1;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<u.catchLoc)return handle(u.catchLoc,!0);if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}else if(p){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}}}},abrupt:function abrupt(r,o){for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i];if(c.tryLoc<=this.prev&&a.call(c,"finallyLoc")&&this.prev<c.finallyLoc){var u=c;break}}u&&("break"===r||"continue"===r)&&u.tryLoc<=o&&o<=u.finallyLoc&&(u=null);var l=u?u.completion:{};return l.type=r,l.arg=o,u?(this.method="next",this.next=u.finallyLoc,v):this.complete(l)},complete:function complete(r,o){if("throw"===r.type)throw r.arg;return"break"===r.type||"continue"===r.type?this.next=r.arg:"return"===r.type?(this.rval=this.arg=r.arg,this.method="return",this.next="end"):"normal"===r.type&&o&&(this.next=o),v},finish:function finish(r){for(var o=this.tryEntries.length-1;o>=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]<c[3])){l.label=u[1];break}if(6===u[0]&&l.label<c[1]){l.label=c[1],c=u;break}if(c&&l.label<c[2]){l.label=c[2],l.ops.push(u);break}c[2]&&l.ops.pop(),l.trys.pop();continue}u=o.call(r,l)}catch(p){u=[6,p],a=0}finally{i=c=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,p])}}},v=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},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;i<r;i++)o[i]=arguments[i];return function(r){var i=o[0],a=o[1];"string"===typeof i?r.headers.append(i,a):l.objectToHeaders(i).forEach((function(o,i){r.headers.append(i,o)}));return r}}U.flattenHeadersObject=function flattenHeadersObject(r){return V.reduceHeadersObject(r,(function(r,o,i){return r[o]=[].concat(i).join("; "),r}),{})},function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.flattenHeadersObject=r.flattenHeadersList=r.reduceHeadersObject=r.objectToHeaders=r.listToHeaders=r.stringToHeaders=r.headersToObject=r.headersToList=r.headersToString=r.Headers=void 0;var o=p;Object.defineProperty(r,"Headers",{enumerable:!0,get:function get(){return o.default}});var i=w;Object.defineProperty(r,"headersToString",{enumerable:!0,get:function get(){return i.headersToString}});var a=S;Object.defineProperty(r,"headersToList",{enumerable:!0,get:function get(){return a.headersToList}});var c=k;Object.defineProperty(r,"headersToObject",{enumerable:!0,get:function get(){return c.headersToObject}});var u=C;Object.defineProperty(r,"stringToHeaders",{enumerable:!0,get:function get(){return u.stringToHeaders}});var l=x;Object.defineProperty(r,"listToHeaders",{enumerable:!0,get:function get(){return l.listToHeaders}});var d=L;Object.defineProperty(r,"objectToHeaders",{enumerable:!0,get:function get(){return d.objectToHeaders}});var h=R;Object.defineProperty(r,"reduceHeadersObject",{enumerable:!0,get:function get(){return h.reduceHeadersObject}});var m=M;Object.defineProperty(r,"flattenHeadersList",{enumerable:!0,get:function get(){return m.flattenHeadersList}});var y=U;Object.defineProperty(r,"flattenHeadersObject",{enumerable:!0,get:function get(){return y.flattenHeadersObject}})}(l);var B=function parse(r,o){if("string"!==typeof r)throw new TypeError("argument str must be a string");for(var i={},a=o||{},c=r.split(W),u=a.decode||Q,l=0;l<c.length;l++){var p=c[l],d=p.indexOf("=");if(!(d<0)){var h=p.substr(0,d).trim(),m=p.substr(++d,p.length).trim();'"'==m[0]&&(m=m.slice(1,-1)),void 0==i[h]&&(i[h]=tryDecode(m,u))}}return i},H=function serialize(r,o,i){var a=i||{},c=a.encode||G;if("function"!==typeof c)throw new TypeError("option encode is invalid");if(!z.test(r))throw new TypeError("argument name is invalid");var u=c(o);if(u&&!z.test(u))throw new TypeError("argument val is invalid");var l=r+"="+u;if(null!=a.maxAge){var p=a.maxAge-0;if(isNaN(p)||!isFinite(p))throw new TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(p)}if(a.domain){if(!z.test(a.domain))throw new TypeError("option domain is invalid");l+="; Domain="+a.domain}if(a.path){if(!z.test(a.path))throw new TypeError("option path is invalid");l+="; Path="+a.path}if(a.expires){if("function"!==typeof a.expires.toUTCString)throw new TypeError("option expires is invalid");l+="; Expires="+a.expires.toUTCString()}a.httpOnly&&(l+="; HttpOnly");a.secure&&(l+="; Secure");if(a.sameSite){switch("string"===typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return l},Q=decodeURIComponent,G=encodeURIComponent,W=/; */,z=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function tryDecode(r,o){try{return o(r)}catch(i){return r}}var K=function cookie(r,o,i){return function(a){var c=H(r,o,i);return a.headers.set("Set-Cookie",c),"undefined"!==typeof document&&(document.cookie=c),a}};function jsonParse(r){try{return JSON.parse(r)}catch(error){return}}var Y=function json(r){return function(o){return o.headers.set("Content-Type","application/json"),o.body=JSON.stringify(r),o}},X={exports:{}};(function(r){function isNodeProcess(){return"undefined"!==typeof navigator&&"ReactNative"===navigator.product||!("undefined"===typeof process||!process.versions||!process.versions.node)}r.isNodeProcess=isNodeProcess,Object.defineProperty(r,"__esModule",{value:!0})})(X.exports);var J=2147483647,Z=function getRandomServerResponseTime(){return X.exports.isNodeProcess()?5:Math.floor(300*Math.random()+100)},ee=function delay(r){return function(o){var i;if("string"===typeof r)switch(r){case"infinite":i=J;break;case"real":i=Z();break;default:throw new Error('Failed to delay a response: unknown delay mode "'.concat(r,'". Please make sure you provide one of the supported modes ("real", "infinite") or a number to "ctx.delay".'))}else if("undefined"===typeof r)i=Z();else{if(r>J)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;i<o.length;i++){var a=o[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}function RequestHandler_deps_typeof(r){return(RequestHandler_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 _toConsumableArray(r){return function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r)}(r)||_iterableToArray(r)||_unsupportedIterableToArray(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 _toArray(r){return function _arrayWithHoles(r){if(Array.isArray(r))return r}(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(r,o){if(r){if("string"===typeof r)return _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)?_arrayLikeToArray(r,o):void 0}}function _arrayLikeToArray(r,o){(null==o||o>r.length)&&(o=r.length);for(var i=0,a=new Array(o);i<o;i++)a[i]=r[i];return a}function _iterableToArray(r){if("undefined"!==typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}function _classCallCheck(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(r,o){return!o||"object"!==RequestHandler_deps_typeof(o)&&"function"!==typeof o?function _assertThisInitialized(r){if(void 0===r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(r):o}function _wrapNativeSuper(r){var o="function"===typeof Map?new Map:void 0;return(_wrapNativeSuper=function _wrapNativeSuper(r){if(null===r||!function _isNativeFunction(r){return-1!==Function.toString.call(r).indexOf("[native code]")}(r))return r;if("function"!==typeof r)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof o){if(o.has(r))return o.get(r);o.set(r,Wrapper)}function Wrapper(){return _construct(r,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(r.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,r)})(r)}function _construct(r,o,i){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function _construct(r,o,i){var a=[null];a.push.apply(a,o);var c=new(Function.bind.apply(r,a));return i&&_setPrototypeOf(c,i.prototype),c}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(r){return!1}}function _setPrototypeOf(r,o){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(r,o){return r.__proto__=o,r})(r,o)}function _getPrototypeOf(r){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}function __awaiter(r,o,i,a){return new(i||(i=Promise))((function(c,u){function fulfilled(r){try{step(a.next(r))}catch(o){u(o)}}function rejected(r){try{step(a.throw(r))}catch(o){u(o)}}function step(r){r.done?c(r.value):function adopt(r){return r instanceof i?r:new i((function(o){o(r)}))}(r.value).then(fulfilled,rejected)}step((a=a.apply(r,o||[])).next())}))}var ie={},ae={},se={};Object.defineProperty(se,"__esModule",{value:!0}),se.format=void 0;var ce=/(%?)(%([sdjo]))/g;function serializePositional(r,o){switch(o){case"s":return r;case"d":case"i":return Number(r);case"j":return JSON.stringify(r);case"o":if("string"===typeof r)return r;var i=JSON.stringify(r);return"{}"===i||"[]"===i||/^\[object .+?\]$/.test(i)?r:i}}se.format=function format(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];if(0===o.length)return r;var a=0,c=r.replace(ce,(function(r,i,c,u){var l=serializePositional(o[a],u);return i?r:(a++,l)}));return a<o.length&&(c+=" "+o.slice(a).join(" ")),c=c.replace(/%{2,2}/g,"%")};var ue,le=u&&u.__extends||(ue=function extendStatics(r,o){return(ue=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(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}ue(r,o),r.prototype=null===o?Object.create(o):(__.prototype=o.prototype,new __)}),pe=u&&u.__spreadArray||function(r,o){for(var i=0,a=o.length,c=r.length;i<a;i++,c++)r[c]=o[i];return r};Object.defineProperty(ae,"__esModule",{value:!0}),ae.invariant=ae.InvariantError=void 0;var fe=se,de=function(r){function InvariantError(o){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];var c=r.call(this,o)||this;if(c.name="Invariant Violation",c.message=fe.format.apply(void 0,pe([o],i)),c.stack){var u=c.stack;c.stack=u.split("\n").slice(2).join("\n")}return c}return le(InvariantError,r),InvariantError}(Error);ae.InvariantError=de,ae.invariant=function invariant(r,o){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];if(!r)throw new(de.bind.apply(de,pe([void 0,o],i)))},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}),i(ae,r),i(se,r)}(ie);var he="[MSW]";function formatMessage(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];var c=ie.format.apply(ie,[r].concat(i));return"".concat(he," ").concat(c)}var me={formatMessage:formatMessage,warn:function warn(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];console.warn(formatMessage.apply(void 0,[r].concat(i)))},error:function error(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];console.error(formatMessage.apply(void 0,[r].concat(i)))}},ye=function(r){!function _inherits(r,o){if("function"!==typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(o&&o.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),o&&_setPrototypeOf(r,o)}(NetworkError,r);var o=function _createSuper(r){var o=_isNativeReflectConstruct();return function _createSuperInternal(){var i,a=_getPrototypeOf(r);if(o){var c=_getPrototypeOf(this).constructor;i=Reflect.construct(a,arguments,c)}else i=a.apply(this,arguments);return _possibleConstructorReturn(this,i)}}(NetworkError);function NetworkError(r){var i;return _classCallCheck(this,NetworkError),(i=o.call(this,r)).name="NetworkError",i}return NetworkError}(_wrapNativeSuper(Error));function parseContentHeaders(r){var o,i,a=l.stringToHeaders(r),c=a.get("content-type")||"text/plain",u=a.get("content-disposition");if(!u)throw new Error('"Content-Disposition" header is required.');var p=u.split(";").reduce((function(r,o){var i=_toArray(o.trim().split("=")),a=i[0],c=i.slice(1);return r[a]=c.join("="),r}),{});return{name:null===(o=p.name)||void 0===o?void 0:o.slice(1,-1),filename:null===(i=p.filename)||void 0===i?void 0:i.slice(1,-1),contentType:c}}function parseMultipartData(r,o){var i=null===o||void 0===o?void 0:o.get("content-type");if(i){var a=_toArray(i.split(/; */)).slice(1).filter((function(r){return r.startsWith("boundary=")})).map((function(r){return r.replace(/^boundary=/,"")}))[0];if(a){var c=new RegExp("--+".concat(a)),u=r.split(c).filter((function(r){return r.startsWith("\r\n")&&r.endsWith("\r\n")})).map((function(r){return r.trimStart().replace(/\r\n$/,"")}));if(u.length){var l={};try{var p,d=function _createForOfIteratorHelper(r,o){var i="undefined"!==typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!i){if(Array.isArray(r)||(i=_unsupportedIterableToArray(r))||o&&r&&"number"===typeof r.length){i&&(r=i);var a=0,c=function F(){};return{s:c,n:function n(){return 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;i<r;i++)o[i]=arguments[i];return function(){return o.reduceRight((function(r,o){return r instanceof Promise?Promise.resolve(r).then(o):o(r)}),arguments.length<=0?void 0:arguments[0])}}var Se={status:200,statusText:"OK",body:null,delay:0,once:!1},Oe=[];function createResponseComposition(r){var o=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Oe;return function(){for(var a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];return __awaiter(o,void 0,void 0,regeneratorRuntime.mark((function _callee(){var o,a,u;return regeneratorRuntime.wrap((function _callee$(p){for(;;)switch(p.prev=p.next){case 0:return o=Object.assign({},Se,{headers:new l.Headers({"x-powered-by":"msw"})},r),a=[].concat(_toConsumableArray(i),c).filter(Boolean),u=a.length>0?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<o.length;i++){var a=o[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}function rest_deps_setPrototypeOf(r,o){return(rest_deps_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(r,o){return r.__proto__=o,r})(r,o)}function rest_deps_createSuper(r){var o=function rest_deps_isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(r){return!1}}();return function _createSuperInternal(){var i,a=rest_deps_getPrototypeOf(r);if(o){var c=rest_deps_getPrototypeOf(this).constructor;i=Reflect.construct(a,arguments,c)}else i=a.apply(this,arguments);return rest_deps_possibleConstructorReturn(this,i)}}function rest_deps_possibleConstructorReturn(r,o){return!o||"object"!==rest_deps_typeof(o)&&"function"!==typeof o?function rest_deps_assertThisInitialized(r){if(void 0===r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(r):o}function rest_deps_getPrototypeOf(r){return(rest_deps_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}function isStringEqual(r,o){return r.toLowerCase()===o.toLowerCase()}!function(r){r.HEAD="HEAD",r.GET="GET",r.POST="POST",r.PUT="PUT",r.PATCH="PATCH",r.OPTIONS="OPTIONS",r.DELETE="DELETE"}(ke||(ke={}));var Ne={set:set,status:c,cookie:K,body:function body(r){return function(o){return o.body=r,o}},text:function text(r){return function(o){return o.headers.set("Content-Type","text/plain"),o.body=r,o}},json:Y,xml:function xml(r){return function(o){return o.headers.set("Content-Type","text/xml"),o.body=r,o}},delay:ee,fetch:oe},xe=function(r){!function rest_deps_inherits(r,o){if("function"!==typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(o&&o.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),o&&rest_deps_setPrototypeOf(r,o)}(RestHandler,r);var o=rest_deps_createSuper(RestHandler);function RestHandler(r,i,a){var c;return function rest_deps_classCallCheck(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}(this,RestHandler),(c=o.call(this,{info:{header:"".concat(r," ").concat(i),path:i,method:r},ctx:Ne,resolver:a})).checkRedundantQueryParameters(),c}return function rest_deps_createClass(r,o,i){return o&&rest_deps_defineProperties(r.prototype,o),i&&rest_deps_defineProperties(r,i),r}(RestHandler,[{key:"checkRedundantQueryParameters",value:function checkRedundantQueryParameters(){var r=this.info,o=r.method,i=r.path;if(!(i instanceof RegExp)){var a=cleanUrl(i);if(a!==i){var c=function getSearchParams(r){return new URL("/".concat(r),"http://localhost").searchParams}(i),u=[];c.forEach((function(r,o){u.push(o)})),me.warn('Found a redundant usage of query parameters in the request handler URL for "'.concat(o," ").concat(i,'". Please match against a path instead, and access query parameters in the response resolver function:\n\nrest.').concat(o.toLowerCase(),'("').concat(a,'", (req, res, ctx) => {\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<o;i++)a[i]=r[i];return a}function errors_deps_typeof(r){return(errors_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 isObject(r){return null!=r&&"object"===errors_deps_typeof(r)&&!Array.isArray(r)}function mergeRight(r,o){return Object.entries(o).reduce((function(r,o){var i=_slicedToArray(o,2),a=i[0],c=i[1],u=r[a];return Array.isArray(u)&&Array.isArray(c)?(r[a]=u.concat(c),r):isObject(u)&&isObject(c)?(r[a]=mergeRight(u,c),r):(r[a]=c,r)}),Object.assign({},r))}function __defineProperties(r,o){for(var i=0;i<o.length;i++){var a=o[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}function _setPrototypeOf2(r,o){return(_setPrototypeOf2=Object.setPrototypeOf||function _setPrototypeOf(r,o){return r.__proto__=o,r})(r,o)}function _createSuper2(r){var o=function _isNativeReflectConstruct2(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(r){return!1}}();return function _createSuperInternal(){var i,a=_getPrototypeOf2(r);if(o){var c=_getPrototypeOf2(this).constructor;i=Reflect.construct(a,arguments,c)}else i=a.apply(this,arguments);return _possibleConstructorReturn2(this,i)}}function _possibleConstructorReturn2(r,o){return!o||"object"!==_typeof2(o)&&"function"!==typeof o?function _assertThisInitialized2(r){if(void 0===r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(r):o}function _getPrototypeOf2(r){return(_getPrototypeOf2=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}function _typeof2(r){return(_typeof2="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof2(r){return typeof r}:function _typeof2(r){return r&&"function"===typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function graphql_deps_toArray(r){return graphql_deps_arrayWithHoles(r)||function graphql_deps_iterableToArray(r){if("undefined"!==typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||graphql_deps_unsupportedIterableToArray(r)||graphql_deps_nonIterableRest()}function graphql_deps_createForOfIteratorHelper(r,o){var i="undefined"!==typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!i){if(Array.isArray(r)||(i=graphql_deps_unsupportedIterableToArray(r))||o&&r&&"number"===typeof r.length){i&&(r=i);var a=0,c=function F(){};return{s:c,n:function n(){return 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}}}}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);i<o;i++)a[i]=r[i];return a}function graphql_deps_arrayWithHoles(r){if(Array.isArray(r))return r}function _typeof$3(r){return(_typeof$3="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 Ie="function"===typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function getLocation(r,o){for(var i,a=/\r\n|[\n\r]/g,c=1,u=o+1;(i=a.exec(r.body))&&i.index<o;)c+=1,u=o+1-(i.index+i[0].length);return{line:c,column:u}}function printLocation(r){return printSourceLocation(r.source,getLocation(r.source,r.start))}function printSourceLocation(r,o){var i=r.locationOffset.column-1,a=whitespace(i)+r.body,c=o.line-1,u=r.locationOffset.line-1,l=o.line+u,p=1===o.line?i:0,d=o.column+p,h="".concat(r.name,":").concat(l,":").concat(d,"\n"),m=a.split(/\r\n|[\n\r]/g),y=m[c];if(y.length>120){for(var v=Math.floor(d/80),g=d%80,_=[],b=0;b<y.length;b+=80)_.push(y.slice(b,b+80));return h+printPrefixedLines([["".concat(l),_[0]]].concat(_.slice(1,v+1).map((function(r){return["",r]})),[[" ",whitespace(g-1)+"^"],["",_[v+1]]]))}return h+printPrefixedLines([["".concat(l-1),m[c-1]],["".concat(l),y],["",whitespace(d-1)+"^"],["".concat(l+1),m[c+1]]])}function printPrefixedLines(r){var o=r.filter((function(r){return r[0],void 0!==r[1]})),i=Math.max.apply(Math,o.map((function(r){return r[0].length})));return o.map((function(r){var o=r[0],a=r[1];return function leftPad(r,o){return whitespace(r-o.length)+o}(i,o)+(a?" | "+a:" |")})).join("\n")}function whitespace(r){return Array(r+1).join(" ")}function _typeof$2(r){return(_typeof$2="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 _defineProperties$1(r,o){for(var i=0;i<o.length;i++){var a=o[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}function graphql_deps_possibleConstructorReturn(r,o){return!o||"object"!==_typeof$2(o)&&"function"!==typeof o?graphql_deps_assertThisInitialized(r):o}function graphql_deps_assertThisInitialized(r){if(void 0===r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function graphql_deps_wrapNativeSuper(r){var o="function"===typeof Map?new Map:void 0;return(graphql_deps_wrapNativeSuper=function _wrapNativeSuper(r){if(null===r||!function graphql_deps_isNativeFunction(r){return-1!==Function.toString.call(r).indexOf("[native code]")}(r))return r;if("function"!==typeof r)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof o){if(o.has(r))return o.get(r);o.set(r,Wrapper)}function Wrapper(){return graphql_deps_construct(r,arguments,graphql_deps_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(r.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),graphql_deps_setPrototypeOf(Wrapper,r)})(r)}function graphql_deps_construct(r,o,i){return(graphql_deps_construct=graphql_deps_isNativeReflectConstruct()?Reflect.construct:function _construct(r,o,i){var a=[null];a.push.apply(a,o);var c=new(Function.bind.apply(r,a));return i&&graphql_deps_setPrototypeOf(c,i.prototype),c}).apply(null,arguments)}function graphql_deps_isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(r){return!1}}function graphql_deps_setPrototypeOf(r,o){return(graphql_deps_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(r,o){return r.__proto__=o,r})(r,o)}function graphql_deps_getPrototypeOf(r){return(graphql_deps_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}var De=function(r){!function graphql_deps_inherits(r,o){if("function"!==typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(o&&o.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),o&&graphql_deps_setPrototypeOf(r,o)}(GraphQLError,r);var o=function graphql_deps_createSuper(r){var o=graphql_deps_isNativeReflectConstruct();return function _createSuperInternal(){var i,a=graphql_deps_getPrototypeOf(r);if(o){var c=graphql_deps_getPrototypeOf(this).constructor;i=Reflect.construct(a,arguments,c)}else i=a.apply(this,arguments);return graphql_deps_possibleConstructorReturn(this,i)}}(GraphQLError);function GraphQLError(r,i,a,c,u,l,p){var d,h,m,y,v;!function graphql_deps_classCallCheck(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}(this,GraphQLError),v=o.call(this,r);var g,_=Array.isArray(i)?0!==i.length?i:void 0:i?[i]:void 0,b=a;!b&&_&&(b=null===(g=_[0].loc)||void 0===g?void 0:g.source);var E,w=c;!w&&_&&(w=_.reduce((function(r,o){return o.loc&&r.push(o.loc.start),r}),[])),w&&0===w.length&&(w=void 0),c&&a?E=c.map((function(r){return getLocation(a,r)})):_&&(E=_.reduce((function(r,o){return o.loc&&r.push(getLocation(o.loc.source,o.loc.start)),r}),[]));var S=p;if(null==S&&null!=l){var O=l.extensions;(function isObjectLike(r){return"object"==_typeof$3(r)&&null!==r})(O)&&(S=O)}return Object.defineProperties(graphql_deps_assertThisInitialized(v),{name:{value:"GraphQLError"},message:{value:r,enumerable:!0,writable:!0},locations:{value:null!==(d=E)&&void 0!==d?d:void 0,enumerable:null!=E},path:{value:null!==u&&void 0!==u?u:void 0,enumerable:null!=u},nodes:{value:null!==_&&void 0!==_?_:void 0},source:{value:null!==(h=b)&&void 0!==h?h:void 0},positions:{value:null!==(m=w)&&void 0!==m?m:void 0},originalError:{value:l},extensions:{value:null!==(y=S)&&void 0!==y?y:void 0,enumerable:null!=S}}),null!==l&&void 0!==l&&l.stack?(Object.defineProperty(graphql_deps_assertThisInitialized(v),"stack",{value:l.stack,writable:!0,configurable:!0}),graphql_deps_possibleConstructorReturn(v)):(Error.captureStackTrace?Error.captureStackTrace(graphql_deps_assertThisInitialized(v),GraphQLError):Object.defineProperty(graphql_deps_assertThisInitialized(v),"stack",{value:Error().stack,writable:!0,configurable:!0}),v)}return function _createClass$1(r,o,i){return o&&_defineProperties$1(r.prototype,o),i&&_defineProperties$1(r,i),r}(GraphQLError,[{key:"toString",value:function toString(){return function printError(r){var o=r.message;if(r.nodes)for(var i=0,a=r.nodes;i<a.length;i++){var c=a[i];c.loc&&(o+="\n\n"+printLocation(c.loc))}else if(r.source&&r.locations)for(var u=0,l=r.locations;u<l.length;u++){var p=l[u];o+="\n\n"+printSourceLocation(r.source,p)}return o}(this)}},{key:Ie,get:function get(){return"Object"}}]),GraphQLError}(graphql_deps_wrapNativeSuper(Error));function syntaxError(r,o,i){return new De("Syntax Error: ".concat(i),void 0,r,[o])}var Le=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});var Re="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function defineInspect(r){var o=r.prototype.toJSON;"function"===typeof o||function graphql_deps_invariant(r,o){if(!Boolean(r))throw new Error(null!=o?o:"Unexpected invariant triggered.")}(0),r.prototype.inspect=o,Re&&(r.prototype[Re]=o)}var Pe=function(){function Location(r,o,i){this.start=r.start,this.end=o.end,this.startToken=r,this.endToken=o,this.source=i}return Location.prototype.toJSON=function toJSON(){return{start:this.start,end:this.end}},Location}();defineInspect(Pe);var je=function(){function Token(r,o,i,a,c,u,l){this.kind=r,this.start=o,this.end=i,this.line=a,this.column=c,this.value=l,this.prev=u,this.next=null}return Token.prototype.toJSON=function toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},Token}();defineInspect(je);var Me=Object.freeze({SOF:"<SOF>",EOF:"<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;u<i;++u)c.push(formatValue(r[u],o));1===a?c.push("... 1 more item"):a>1&&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;i<o.length;i++){var a=o[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}var Fe=function(){function Source(r){var o=arguments.length>1&&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;l<r.length;++l)switch(r.charCodeAt(l)){case 13:10===r.charCodeAt(l+1)&&++l;case 10:i=!1,a=!0,c=0;break;case 9:case 32:++c;break;default:a&&!i&&(null===u||c<u)&&(u=c),a=!1}return null!==(o=u)&&void 0!==o?o:0}(r);if(0!==i)for(var a=1;a<o.length;a++)o[a]=o[a].slice(i);for(var c=0;c<o.length&&isBlank(o[c]);)++c;for(var u=o.length;u>c&&isBlank(o[u-1]);)--u;return o.slice(c,u).join("\n")}function isBlank(r){for(var o=0;o<r.length;++o)if(" "!==r[o]&&"\t"!==r[o])return!1;return!0}var Ue=function(){function Lexer(r){var o=new je(Me.SOF,0,0,0,0,null);this.source=r,this.lastToken=o,this.token=o,this.line=1,this.lineStart=0}var r=Lexer.prototype;return r.advance=function advance(){return this.lastToken=this.token,this.token=this.lookahead()},r.lookahead=function lookahead(){var r=this.token;if(r.kind!==Me.EOF)do{var o;r=null!==(o=r.next)&&void 0!==o?o:r.next=readToken(this,r)}while(r.kind===Me.COMMENT);return r},Lexer}();function printCharCode(r){return isNaN(r)?Me.EOF:r<127?JSON.stringify(String.fromCharCode(r)):'"\\u'.concat(("00"+r.toString(16).toUpperCase()).slice(-4),'"')}function readToken(r,o){for(var i=r.source,a=i.body,c=a.length,u=o.end;u<c;){var l=a.charCodeAt(u),p=r.line,d=1+u-r.lineStart;switch(l){case 65279:case 9:case 32:case 44:++u;continue;case 10:++u,++r.line,r.lineStart=u;continue;case 13:10===a.charCodeAt(u+1)?u+=2:++u,++r.line,r.lineStart=u;continue;case 33:return new je(Me.BANG,u,u+1,p,d,o);case 35:return readComment(i,u,p,d,o);case 36:return new je(Me.DOLLAR,u,u+1,p,d,o);case 38:return new je(Me.AMP,u,u+1,p,d,o);case 40:return new je(Me.PAREN_L,u,u+1,p,d,o);case 41:return new je(Me.PAREN_R,u,u+1,p,d,o);case 46:if(46===a.charCodeAt(u+1)&&46===a.charCodeAt(u+2))return new je(Me.SPREAD,u,u+3,p,d,o);break;case 58:return new je(Me.COLON,u,u+1,p,d,o);case 61:return new je(Me.EQUALS,u,u+1,p,d,o);case 64:return new je(Me.AT,u,u+1,p,d,o);case 91:return new je(Me.BRACKET_L,u,u+1,p,d,o);case 93:return new je(Me.BRACKET_R,u,u+1,p,d,o);case 123:return new je(Me.BRACE_L,u,u+1,p,d,o);case 124:return new je(Me.PIPE,u,u+1,p,d,o);case 125:return new je(Me.BRACE_R,u,u+1,p,d,o);case 34:return 34===a.charCodeAt(u+1)&&34===a.charCodeAt(u+2)?readBlockString(i,u,p,d,o,r):readString(i,u,p,d,o);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return readNumber(i,u,l,p,d,o);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return readName(i,u,p,d,o)}throw syntaxError(i,u,unexpectedCharacterMessage(l))}var h=r.line,m=1+u-r.lineStart;return new je(Me.EOF,c,c,h,m,o)}function unexpectedCharacterMessage(r){return r<32&&9!==r&&10!==r&&13!==r?"Cannot contain the invalid character ".concat(printCharCode(r),"."):39===r?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(printCharCode(r),".")}function readComment(r,o,i,a,c){var u,l=r.body,p=o;do{u=l.charCodeAt(++p)}while(!isNaN(u)&&(u>31||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<h.length&&!isNaN(v=h.charCodeAt(m))&&10!==v&&13!==v;){if(34===v)return g+=h.slice(y,m),new je(Me.STRING,o,m+1,i,a,c,g);if(v<32&&9!==v)throw syntaxError(r,m,"Invalid character within String: ".concat(printCharCode(v),"."));if(++m,92===v){switch(g+=h.slice(y,m-1),v=h.charCodeAt(m)){case 34:g+='"';break;case 47:g+="/";break;case 92:g+="\\";break;case 98:g+="\b";break;case 102:g+="\f";break;case 110:g+="\n";break;case 114:g+="\r";break;case 116:g+="\t";break;case 117:var _=(u=h.charCodeAt(m+1),l=h.charCodeAt(m+2),p=h.charCodeAt(m+3),d=h.charCodeAt(m+4),char2hex(u)<<12|char2hex(l)<<8|char2hex(p)<<4|char2hex(d));if(_<0){var b=h.slice(m+1,m+5);throw syntaxError(r,m,"Invalid character escape sequence: \\u".concat(b,"."))}g+=String.fromCharCode(_),m+=4;break;default:throw syntaxError(r,m,"Invalid character escape sequence: \\".concat(String.fromCharCode(v),"."))}y=++m}}throw syntaxError(r,m,"Unterminated string.")}function readBlockString(r,o,i,a,c,u){for(var l=r.body,p=o+3,d=p,h=0,m="";p<l.length&&!isNaN(h=l.charCodeAt(p));){if(34===h&&34===l.charCodeAt(p+1)&&34===l.charCodeAt(p+2))return m+=l.slice(d,p),new je(Me.BLOCK_STRING,o,p+3,i,a,c,dedentBlockStringValue(m));if(h<32&&9!==h&&10!==h&&13!==h)throw syntaxError(r,p,"Invalid character within String: ".concat(printCharCode(h),"."));10===h?(++p,++u.line,u.lineStart=p):13===h?(10===l.charCodeAt(p+1)?p+=2:++p,++u.line,u.lineStart=p):92===h&&34===l.charCodeAt(p+1)&&34===l.charCodeAt(p+2)&&34===l.charCodeAt(p+3)?(m+=l.slice(d,p)+'"""',d=p+=4):++p}throw syntaxError(r,p,"Unterminated string.")}function char2hex(r){return r>=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<a.length;c++)o.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(r,a[c])&&(i[a[c]]=r[a[c]])}return i}(c,["operations","map"]),d=jsonParse(u)||{};if(!d.query)return null;var h=jsonParse(l||"")||{},m=d.variables?function extractMultipartVariables(r,o,i){for(var a={variables:r},c=0,u=Object.entries(o);c<u.length;c++){var l=graphql_deps_slicedToArray(u[c],2),p=l[0],d=l[1];if(!(p in i))throw new Error("Given files do not have a key '".concat(p,"' ."));var h,m=graphql_deps_createForOfIteratorHelper(d);try{for(m.s();!(h=m.n()).done;){var y,v=graphql_deps_toArray(h.value.split(".").reverse()),g=v[0],_=v.slice(1).reverse(),b=a,E=graphql_deps_createForOfIteratorHelper(_);try{for(E.s();!(y=E.n()).done;){var w=y.value;if(!(w in b))throw new Error("Property '".concat(_,"' is not in operations."));b=b[w]}}catch(S){E.e(S)}finally{E.f()}b[g]=i[p]}}catch(S){m.e(S)}finally{m.f()}}return a.variables}(d.variables,h,p):{};return{query:d.query,variables:m}}default:return null}}function parseGraphQLRequest(r){var o=getGraphQLInput(r);if(o&&o.query){var i=o.query,a=o.variables,c=parseQuery(i);if(c instanceof Error){var u=ge(r);throw new Error(me.formatMessage('Failed to intercept a GraphQL request to "%s %s": cannot parse query. See the error message from the parser below.\n\n%s',r.method,u,c.message))}return{operationType:c.operationType,operationName:c.operationName,variables:a}}}function tryCatch(r,o){try{return r()}catch(error){null===o||void 0===o||o(error)}}var Be={set:set,status:c,delay:ee,fetch:oe,data:function data(r){return function(o){var i=mergeRight(jsonParse(o.body)||{},{data:r});return Y(i)(o)}},errors:function errors(r){return function(o){if(null==r)return o;var i=mergeRight(jsonParse(o.body)||{},{errors:r});return Y(i)(o)}},cookie:K};var He=function(r){!function _inherits2(r,o){if("function"!==typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(o&&o.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),o&&_setPrototypeOf2(r,o)}(GraphQLHandler,r);var o=_createSuper2(GraphQLHandler);function GraphQLHandler(r,i,a,c){var u;!function _classCallCheck2(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}(this,GraphQLHandler);var l=i;if(function isDocumentNode(r){return null!=r&&"object"===_typeof2(r)&&"kind"in r&&"definitions"in r}(i)){var p=parseDocumentNode(i);if(p.operationType!==r)throw new Error('Failed to create a GraphQL handler: provided a DocumentNode with a mismatched operation type (expected "'.concat(r,'", but got "').concat(p.operationType,'").'));if(!p.operationName)throw new Error("Failed to create a GraphQL handler: provided a DocumentNode with no operation name.");l=p.operationName}var d="all"===r?"".concat(r," (origin: ").concat(a.toString(),")"):"".concat(r," ").concat(l," (origin: ").concat(a.toString(),")");return(u=o.call(this,{info:{header:d,operationType:r,operationName:l},ctx:Be,resolver:c})).endpoint=a,u}return function _createClass2(r,o,i){return o&&__defineProperties(r.prototype,o),i&&__defineProperties(r,i),r}(GraphQLHandler,[{key:"parse",value:function parse(r){return tryCatch((function(){return parseGraphQLRequest(r)}),(function(r){return console.error(r.message)}))}},{key:"getPublicRequest",value:function getPublicRequest(r,o){return Object.assign(Object.assign({},r),{variables:(null===o||void 0===o?void 0:o.variables)||{}})}},{key:"predicate",value:function predicate(r,o){if(!o)return!1;if(!o.operationName){var i=ge(r);return me.warn('Failed to intercept a GraphQL request at "'.concat(r.method," ").concat(i,'": unnamed GraphQL operations are not supported.\n\nConsider naming this operation or using "graphql.operation" request handler to intercept GraphQL requests regardless of their operation name/type. Read more: https://mswjs.io/docs/api/graphql/operation ')),!1}var a=matchRequestUrl(r.url,this.endpoint),c="all"===this.info.operationType||o.operationType===this.info.operationType,u=this.info.operationName instanceof RegExp?this.info.operationName.test(o.operationName):o.operationName===this.info.operationName;return a.matches&&c&&u}},{key:"log",value:function log(r,o,i,a){var c=prepareRequest(r),u=prepareResponse(o),l=getStatusCodeColor(o.status);console.groupCollapsed(me.formatMessage("%s %s (%c%s%c)"),getTimestamp(),"".concat(null===a||void 0===a?void 0:a.operationType," ").concat(null===a||void 0===a?void 0:a.operationName),"color:".concat(l),"".concat(o.status," ").concat(o.statusText),"color:inherit"),console.log("Request:",c),console.log("Handler:",this),console.log("Response:",u),console.groupEnd()}}]),GraphQLHandler}(Ce);function createScopedGraphQLHandler(r,o){return function(i,a){return new He(r,i,o,a)}}function createGraphQLOperationHandler(r){return function(o){return new He("all",new RegExp(".*"),r,o)}}var Qe={operation:createGraphQLOperationHandler("*"),query:createScopedGraphQLHandler("query","*"),mutation:createScopedGraphQLHandler("mutation","*")};var Ge=Object.assign(Object.assign({},Qe),{link:function createGraphQLLink(r){return{operation:createGraphQLOperationHandler(r),query:createScopedGraphQLHandler("query",r),mutation:createScopedGraphQLHandler("mutation",r)}}}),We=i(997),ze=i.n(We);function esm_createForOfIteratorHelper(r,o){var i="undefined"!==typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!i){if(Array.isArray(r)||(i=esm_unsupportedIterableToArray(r))||o&&r&&"number"===typeof r.length){i&&(r=i);var a=0,c=function F(){};return{s:c,n:function n(){return 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}}}}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;i<o.length;i++){var a=o[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}function esm_slicedToArray(r,o){return function esm_arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function esm_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)||esm_unsupportedIterableToArray(r,o)||function esm_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 esm_unsupportedIterableToArray(r,o){if(r){if("string"===typeof r)return esm_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)?esm_arrayLikeToArray(r,o):void 0}}function esm_arrayLikeToArray(r,o){(null==o||o>r.length)&&(o=r.length);for(var i=0,a=new Array(o);i<o;i++)a[i]=r[i];return a}function asyncGeneratorStep(r,o,i,a,c,u,l){try{var p=r[u](l),d=p.value}catch(error){return void i(error)}p.done?o(d):Promise.resolve(d).then(a,c)}function esm_typeof(r){return(esm_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 Ke,Ye={},Xe={},Je={exports:{}},$e="object"===("undefined"===typeof Reflect?"undefined":esm_typeof(Reflect))?Reflect:null,Ze=$e&&"function"===typeof $e.apply?$e.apply:function ReflectApply(r,o,i){return Function.prototype.apply.call(r,o,i)};Ke=$e&&"function"===typeof $e.ownKeys?$e.ownKeys:Object.getOwnPropertySymbols?function ReflectOwnKeys(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:function ReflectOwnKeys(r){return Object.getOwnPropertyNames(r)};var et=Number.isNaN||function NumberIsNaN(r){return r!==r};function EventEmitter(){EventEmitter.init.call(this)}Je.exports=EventEmitter,Je.exports.once=function once(r,o){return new Promise((function(i,a){function errorListener(i){r.removeListener(o,resolver),a(i)}function resolver(){"function"===typeof r.removeListener&&r.removeListener("error",errorListener),i([].slice.call(arguments))}eventTargetAgnosticAddListener(r,o,resolver,{once:!0}),"error"!==o&&function addErrorHandlerIfEventEmitter(r,o,i){"function"===typeof r.on&&eventTargetAgnosticAddListener(r,"error",o,i)}(r,errorListener,{once:!0})}))},EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._eventsCount=0,EventEmitter.prototype._maxListeners=void 0;var tt=10;function checkListener(r){if("function"!==typeof r)throw new TypeError('The "listener" argument must be of type Function. Received type '+esm_typeof(r))}function _getMaxListeners(r){return void 0===r._maxListeners?EventEmitter.defaultMaxListeners:r._maxListeners}function _addListener(r,o,i,a){var c,u,l;if(checkListener(i),void 0===(u=r._events)?(u=r._events=Object.create(null),r._eventsCount=0):(void 0!==u.newListener&&(r.emit("newListener",o,i.listener?i.listener:i),u=r._events),l=u[o]),void 0===l)l=u[o]=i,++r._eventsCount;else if("function"===typeof l?l=u[o]=a?[i,l]:[l,i]:a?l.unshift(i):l.push(i),(c=_getMaxListeners(r))>0&&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;i<o.length;++i)o[i]=r[i].listener||r[i];return o}(c):arrayClone(c,c.length)}function listenerCount(r){var o=this._events;if(void 0!==o){var i=o[r];if("function"===typeof i)return 1;if(void 0!==i)return i.length}return 0}function arrayClone(r,o){for(var i=new Array(o),a=0;a<o;++a)i[a]=r[a];return i}function eventTargetAgnosticAddListener(r,o,i,a){if("function"===typeof r.on)a.once?r.once(o,i):r.on(o,i);else{if("function"!==typeof r.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+esm_typeof(r));r.addEventListener(o,(function wrapListener(c){a.once&&r.removeEventListener(o,wrapListener),i(c)}))}}Object.defineProperty(EventEmitter,"defaultMaxListeners",{enumerable:!0,get:function get(){return tt},set:function set(r){if("number"!==typeof r||r<0||et(r))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+r+".");tt=r}}),EventEmitter.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},EventEmitter.prototype.setMaxListeners=function setMaxListeners(r){if("number"!==typeof r||r<0||et(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this},EventEmitter.prototype.getMaxListeners=function getMaxListeners(){return _getMaxListeners(this)},EventEmitter.prototype.emit=function emit(r){for(var o=[],i=1;i<arguments.length;i++)o.push(arguments[i]);var a="error"===r,c=this._events;if(void 0!==c)a=a&&void 0===c.error;else if(!a)return!1;if(a){var u;if(o.length>0&&(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<d;++i)Ze(h[i],this,o)}return!0},EventEmitter.prototype.addListener=function addListener(r,o){return _addListener(this,r,o,!1)},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.prependListener=function prependListener(r,o){return _addListener(this,r,o,!0)},EventEmitter.prototype.once=function once(r,o){return checkListener(o),this.on(r,_onceWrap(this,r,o)),this},EventEmitter.prototype.prependOnceListener=function prependOnceListener(r,o){return checkListener(o),this.prependListener(r,_onceWrap(this,r,o)),this},EventEmitter.prototype.removeListener=function removeListener(r,o){var i,a,c,u,l;if(checkListener(o),void 0===(a=this._events))return this;if(void 0===(i=a[r]))return this;if(i===o||i.listener===o)0===--this._eventsCount?this._events=Object.create(null):(delete a[r],a.removeListener&&this.emit("removeListener",r,i.listener||o));else if("function"!==typeof i){for(c=-1,u=i.length-1;u>=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<r.length;o++)r[o]=r[o+1];r.pop()}(i,c),1===i.length&&(a[r]=i[0]),void 0!==a.removeListener&&this.emit("removeListener",r,l||o)}return this},EventEmitter.prototype.off=EventEmitter.prototype.removeListener,EventEmitter.prototype.removeAllListeners=function removeAllListeners(r){var o,i,a;if(void 0===(i=this._events))return this;if(void 0===i.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[r]&&(0===--this._eventsCount?this._events=Object.create(null):delete i[r]),this;if(0===arguments.length){var c,u=Object.keys(i);for(a=0;a<u.length;++a)"removeListener"!==(c=u[a])&&this.removeAllListeners(c);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"===typeof(o=i[r]))this.removeListener(r,o);else if(void 0!==o)for(a=o.length-1;a>=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;o<i;o++)r+=arguments[o].length;var a=Array(r),c=0;for(o=0;o<i;o++)for(var u=arguments[o],l=0,p=u.length;l<p;l++,c++)a[c]=u[l];return a};Xe.__esModule=!0,Xe.StrictEventEmitter=void 0;var ot=function(r){function StrictEventEmitter(){return r.call(this)||this}return nt(StrictEventEmitter,r),StrictEventEmitter.prototype.on=function(o,i){return r.prototype.on.call(this,o.toString(),i)},StrictEventEmitter.prototype.once=function(o,i){return r.prototype.on.call(this,o.toString(),i)},StrictEventEmitter.prototype.off=function(o,i){return r.prototype.off.call(this,o.toString(),i)},StrictEventEmitter.prototype.emit=function(o){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return r.prototype.emit.apply(this,rt([o.toString()],i))},StrictEventEmitter.prototype.addListener=function(o,i){return r.prototype.addListener.call(this,o.toString(),i)},StrictEventEmitter.prototype.removeListener=function(o,i){return r.prototype.removeListener.call(this,o.toString(),i)},StrictEventEmitter}(Je.exports.EventEmitter);Xe.StrictEventEmitter=ot,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]});r.__esModule=!0,r.StrictEventEmitter=void 0,o(r,Xe,"StrictEventEmitter")}(Ye);var it={},at={};Object.defineProperty(at,"__esModule",{value:!0}),at.until=function(){var r=function _asyncToGenerator(r){return function(){var o=this,i=arguments;return new Promise((function(a,c){var u=r.apply(o,i);function _next(r){asyncGeneratorStep(u,a,c,_next,_throw,"next",r)}function _throw(r){asyncGeneratorStep(u,a,c,_next,_throw,"throw",r)}_next(void 0)}))}}(regeneratorRuntime.mark((function _callee(r){var o;return regeneratorRuntime.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,r().catch((function(r){throw r}));case 3:return o=i.sent,i.abrupt("return",[null,o]);case 7:return i.prev=7,i.t0=i.catch(0),i.abrupt("return",[i.t0,null]);case 10:case"end":return i.stop()}}),_callee,null,[[0,7]])})));return function(o){return r.apply(this,arguments)}}(),Object.defineProperty(it,"__esModule",{value:!0});var st=at,ct=it.until=st.until,ut=function getWorkerByRegistration(r,o,i){return[r.active,r.installing,r.waiting].filter(Boolean).find((function(r){return i(r.scriptURL,o)}))||null};function getAbsoluteWorkerUrl(r){return new URL(r,location.origin).href}var lt=function getWorkerInstance(r){var o=arguments.length>1&&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 <PUBLIC_DIR>"?\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&&/\s/.test(r.charAt(p));)p+=1;return p<r.length}for(;p<r.length;){for(o=p,u=!1;skipWhitespace();)if(","===(i=r.charAt(p))){for(a=p,p+=1,skipWhitespace(),c=p;p<r.length&&"="!==(i=r.charAt(p))&&";"!==i&&","!==i;)p+=1;p<r.length&&"="===r.charAt(p)?(u=!0,p=c,l.push(r.substring(o,a)),o=p):p=a+1}else p+=1;(!u||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);c<a.length;c++)o.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(r,a[c])&&(i[a[c]]=r[a[c]])}return i};Object.defineProperty(r,"__esModule",{value:!0}),r.PERSISTENCY_KEY=void 0;var i=ht.exports;r.PERSISTENCY_KEY="MSW_COOKIE_STORE";var a="undefined"!==typeof localStorage,c=function(){function CookieStore(){!function esm_classCallCheck(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}(this,CookieStore),this.store=new Map}return function esm_createClass(r,o,i){return o&&esm_defineProperties(r.prototype,o),i&&esm_defineProperties(r,i),r}(CookieStore,[{key:"add",value:function add(r,a){var c=this;if("omit"!==r.credentials){var u=new URL(r.url),l=a.headers.get("set-cookie");if(l){var p=Date.now(),d=i.parse(l).map((function(r){var i=r.maxAge,a=o(r,["maxAge"]);return Object.assign(Object.assign({},a),{expires:void 0===i?a.expires:new Date(p+1e3*i),maxAge:i})})),h=this.store.get(u.origin)||new Map;d.forEach((function(r){c.store.set(u.origin,h.set(r.name,r))}))}}}},{key:"get",value:function get(r){this.deleteExpiredCookies();var o=new URL(r.url),a=this.store.get(o.origin)||new Map;switch(r.credentials){case"include":return i.parse(document.cookie).forEach((function(r){a.set(r.name,r)})),a;case"same-origin":return a;default:return new Map}}},{key:"getAll",value:function getAll(){return this.deleteExpiredCookies(),this.store}},{key:"deleteAll",value:function deleteAll(r){var o=new URL(r.url);this.store.delete(o.origin)}},{key:"clear",value:function clear(){this.store.clear()}},{key:"hydrate",value:function hydrate(){var i=this;if(a){var c=localStorage.getItem(r.PERSISTENCY_KEY);if(c)try{JSON.parse(c).forEach((function(r){var a=esm_slicedToArray(r,2),c=a[0],u=a[1];i.store.set(c,new Map(u.map((function(r){var i=esm_slicedToArray(r,2),a=i[0],c=i[1],u=c.expires,l=o(c,["expires"]);return[a,void 0===u?l:Object.assign(Object.assign({},l),{expires:new Date(u)})]}))))}))}catch(error){console.warn('\n[virtual-cookie] Failed to parse a stored cookie from the localStorage (key "'.concat(r.PERSISTENCY_KEY,'").\n\nStored value:\n').concat(localStorage.getItem(r.PERSISTENCY_KEY),"\n\nThrown exception:\n").concat(error,"\n\nInvalid value has been removed from localStorage to prevent subsequent failed parsing attempts.")),localStorage.removeItem(r.PERSISTENCY_KEY)}}}},{key:"persist",value:function persist(){if(a){var o=Array.from(this.store.entries()).map((function(r){var o=esm_slicedToArray(r,2),i=o[0],a=o[1];return[i,Array.from(a.entries())]}));localStorage.setItem(r.PERSISTENCY_KEY,JSON.stringify(o))}}},{key:"deleteExpiredCookies",value:function deleteExpiredCookies(){var r=this,o=Date.now();this.store.forEach((function(i,a){i.forEach((function(r){var a=r.expires,c=r.name;void 0!==a&&a.getTime()<=o&&i.delete(c)})),0===i.size&&r.store.delete(a)}))}}]),CookieStore}();r.default=new c}(dt),function(r){var o=u&&u.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(r,"__esModule",{value:!0}),r.PERSISTENCY_KEY=r.store=void 0;var i=dt;Object.defineProperty(r,"store",{enumerable:!0,get:function get(){return o(i).default}}),Object.defineProperty(r,"PERSISTENCY_KEY",{enumerable:!0,get:function get(){return i.PERSISTENCY_KEY}})}(ft);var yt=function getResponse(r,o,i){return __awaiter(void 0,void 0,void 0,regeneratorRuntime.mark((function _callee6(){var a,c;return regeneratorRuntime.wrap((function _callee6$(u){for(;;)switch(u.prev=u.next){case 0:if(0!==(a=o.filter((function(o){return o.test(r,i)}))).length){u.next=3;break}return u.abrupt("return",{handler:void 0,response:void 0});case 3:return u.next=5,a.reduce((function(o,a){return __awaiter(void 0,void 0,void 0,regeneratorRuntime.mark((function _callee5(){var c,u;return regeneratorRuntime.wrap((function _callee5$(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,o;case 2:if(!(null===(c=l.sent)||void 0===c?void 0:c.response)){l.next=5;break}return l.abrupt("return",o);case 5:return l.next=7,a.run(r,i);case 7:if(null!==(u=l.sent)&&!u.handler.shouldSkip){l.next=10;break}return l.abrupt("return",null);case 10:if(u.response){l.next=12;break}return l.abrupt("return",{request:u.request,handler:u.handler,response:void 0,parsedResult:u.parsedResult});case 12:return u.response.once&&a.markAsSkipped(!0),l.abrupt("return",u);case 14:case"end":return l.stop()}}),_callee5)})))}),Promise.resolve(null));case 5:if(c=u.sent){u.next=8;break}return u.abrupt("return",{handler:void 0,response:void 0});case 8:return u.abrupt("return",{handler:c.handler,publicRequest:c.request,parsedRequest:c.parsedResult,response:c.response});case 9:case"end":return u.stop()}}),_callee6)})))},vt=function(){function _min(r,o,i,a,c){return r<o||i<o?r>i?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;u<a&&r.charCodeAt(u)===o.charCodeAt(u);)u++;if(c-=u,0===(a-=u)||c<3)return c;var l,p,d,h,m,y,v,g,_,b,E,w,S=0,O=[];for(l=0;l<a;l++)O.push(l+1),O.push(r.charCodeAt(u+l));for(var T=O.length-1;S<c-3;)for(_=o.charCodeAt(u+(p=S)),b=o.charCodeAt(u+(d=S+1)),E=o.charCodeAt(u+(h=S+2)),w=o.charCodeAt(u+(m=S+3)),y=S+=4,l=0;l<T;l+=2)p=_min(v=O[l],p,d,_,g=O[l+1]),d=_min(p,d,h,b,g),h=_min(d,h,m,E,g),y=_min(h,m,y,w,g),O[l]=y,m=h,h=d,d=p,p=v;for(;S<c;)for(_=o.charCodeAt(u+(p=S)),y=++S,l=0;l<T;l+=2)v=O[l],O[l]=y=_min(v,p,y,_,O[l+1]),p=v;return y}}();function groupHandlersByType(r){return r.reduce((function(r,o){return o instanceof xe&&r.rest.push(o),o instanceof He&&r.graphql.push(o),r}),{rest:[],graphql:[]})}function getScoreForRestHandler(){return function(r,o){var i=o.info,a=i.path,c=i.method;if(a instanceof RegExp)return 1/0;var u=isStringEqual(r.method,c)?.5:0,l=ge(r);return vt(l,a)-u}}function getScoreForGraphQLHandler(r){return function(o,i){if("undefined"===typeof r.operationName)return 1/0;var a=i.info,c=a.operationType,u=a.operationName,l=r.operationType===c?.5:0;return vt(r.operationName,u)-l}}function getSuggestedHandler(r,o,i){return o.reduce((function(o,a){var c=i(r,a);return o.concat([[c,a]])}),[]).sort((function(r,o){return esm_slicedToArray(r,1)[0]-esm_slicedToArray(o,1)[0]})).filter((function(r){return esm_slicedToArray(r,1)[0]<=3})).slice(0,4).map((function(r){return esm_slicedToArray(r,2)[1]}))}function getSuggestedHandlersMessage(r){return r.length>1?"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 <PUBLIC_DIR>\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;u<a;u++)c[u]=arguments[u];ct((function(){return r})).then((function(){window.XMLHttpRequest.prototype.send=i,o.send.apply(o,c)}))};var a=window.fetch;window.fetch=function(){for(var i=arguments.length,c=new Array(i),u=0;u<i;u++)c[u]=arguments[u];return __awaiter(o,void 0,void 0,regeneratorRuntime.mark((function _callee10(){var o;return regeneratorRuntime.wrap((function _callee10$(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,ct((function(){return r}));case 2:return window.fetch=a,i.abrupt("return",(o=window).fetch.apply(o,c));case 4:case"end":return i.stop()}}),_callee10)})))}}(c),c}};function printStopMessage(){var r=arguments.length>0&&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;a<o;a++)i[a-1]=arguments[a];r.unshift.apply(r,i)}function _restoreHandlers(r){r.forEach((function(r){r.markAsSkipped(!1)}))}function _resetHandlers(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return i.length>0?[].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;i<a;i++)for(var c in o=arguments[i])Object.prototype.hasOwnProperty.call(o,c)&&(r[c]=o[c]);return r}).apply(this,arguments)},Nt=u&&u.__awaiter||function(r,o,i,a){return new(i||(i=Promise))((function(c,u){function fulfilled(r){try{step(a.next(r))}catch(o){u(o)}}function rejected(r){try{step(a.throw(r))}catch(o){u(o)}}function step(r){r.done?c(r.value):function adopt(r){return r instanceof i?r:new i((function(o){o(r)}))}(r.value).then(fulfilled,rejected)}step((a=a.apply(r,o||[])).next())}))},xt=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]<c[3])){l.label=u[1];break}if(6===u[0]&&l.label<c[1]){l.label=c[1],c=u;break}if(c&&l.label<c[2]){l.label=c[2],l.ops.push(u);break}c[2]&&l.ops.pop(),l.trys.pop();continue}u=o.call(r,l)}catch(p){u=[6,p],a=0}finally{i=c=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,p])}}},It=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(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;i<a;i++)for(var c in o=arguments[i])Object.prototype.hasOwnProperty.call(o,c)&&(r[c]=o[c]);return r}).apply(this,arguments)},Ut=u&&u.__awaiter||function(r,o,i,a){return new(i||(i=Promise))((function(c,u){function fulfilled(r){try{step(a.next(r))}catch(o){u(o)}}function rejected(r){try{step(a.throw(r))}catch(o){u(o)}}function step(r){r.done?c(r.value):function adopt(r){return r instanceof i?r:new i((function(o){o(r)}))}(r.value).then(fulfilled,rejected)}step((a=a.apply(r,o||[])).next())}))},Vt=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]<c[3])){l.label=u[1];break}if(6===u[0]&&l.label<c[1]){l.label=c[1],c=u;break}if(c&&l.label<c[2]){l.label=c[2],l.ops.push(u);break}c[2]&&l.ops.pop(),l.trys.pop();continue}u=o.call(r,l)}catch(p){u=[6,p],a=0}finally{i=c=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,p])}}};Object.defineProperty(Mt,"__esModule",{value:!0});var Bt=Mt.interceptFetch=void 0,Ht=l,Qt=kt,Gt=Ft,Wt=ze()("fetch");function normalizeFetchResponse(r){return Ut(this,void 0,void 0,(function(){var o;return Vt(this,(function(i){switch(i.label){case 0:return o={status:r.status,statusText:r.statusText,headers:Ht.objectToHeaders(Ht.headersToObject(r.headers))},[4,r.text()];case 1:return[2,(o.body=i.sent(),o)]}}))}))}Bt=Mt.interceptFetch=function interceptFetch(r,o){var i=window.fetch;return Wt('replacing "window.fetch"...'),window.fetch=function(a,c){return Ut(void 0,void 0,void 0,(function(){var u,l,p,d,h,m,y;return Vt(this,(function(v){switch(v.label){case 0:return u=new Request(a,c),l="string"===typeof a?a:a.url,p=(null===c||void 0===c?void 0:c.method)||"GET",Wt("[%s] %s",p,l),y={id:Gt.uuidv4(),url:new URL(l,location.origin),method:p,headers:new Ht.Headers((null===c||void 0===c?void 0:c.headers)||{})},[4,u.text()];case 1:return y.body=v.sent(),Wt("isomorphic request",d=y),r.emit("request",d),Wt("awaiting for the mocked response..."),[4,o(d,u)];case 2:return h=v.sent(),Wt("mocked response",h),h?(m=Qt.toIsoResponse(h),Wt("derived isomorphic response",m),r.emit("response",d,m),[2,new Response(h.body,qt(qt({},m),{headers:Ht.flattenHeadersObject(h.headers||{})}))]):(Wt("no mocked response found, bypassing..."),[2,i(a,c).then((function(o){return Ut(void 0,void 0,void 0,(function(){var i,a,c;return Vt(this,(function(u){switch(u.label){case 0:return Wt("original fetch performed",o),a=(i=r).emit,c=["response",d],[4,normalizeFetchResponse(o)];case 1:return a.apply(i,c.concat([u.sent()])),[2,o]}}))}))}))])}}))}))},function(){Wt("restoring modules..."),window.fetch=i}};var zt={},Kt={},Yt={},Xt={entityMap:{lt:"<",gt:">",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("</"+i+">",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("</"+i+">"))<o&&(c=r.lastIndexOf("</"+i)),a[i]=c),c<o}function _copy(r,o){for(var i in r)o[i]=r[i]}function parseDCC(r,o,i,a){switch(r.charAt(o+2)){case"-":return"-"===r.charAt(o+3)?(c=r.indexOf("--\x3e",o+4))>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(/\s</)&&(E=E.replace(/[\s<].*/,""),c.error("end tag name: "+E+" maybe not complete"),b=v+1+E.length);var S=w.localNSMap,O=w.tagName==E;if(O||w.tagName&&w.tagName.toLowerCase()==E.toLowerCase()){if(a.endElement(w.uri,w.localName,E),S)for(var T in S)a.endPrefixMapping(T);O||c.fatalError("end tag name: "+E+" is not match the current start tagName:"+w.tagName)}else h.push(w);b++;break;case"?":d&&position(v),b=parseInstruction(r,v,a);break;case"!":d&&position(v),b=parseDCC(r,v,a,c);break;default:d&&position(v);var k=new ElementAttributes,A=h[h.length-1].currentNSMap,C=(b=parseElementStartPart(r,v,k,A,entityReplacer,c),k.length);if(!k.closed&&fixSelfClosed(r,b,k.tagName,m)&&(k.closed=!0,i.nbsp||c.warning("unclosed xml attribute")),d&&C){for(var N=copyLocator(d,{}),x=0;x<C;x++){var I=k[x];position(I.offset),I.locator=copyLocator(d,{})}a.locator=N,appendElement$1(k,a,A)&&h.push(k),a.locator=d}else appendElement$1(k,a,A)&&h.push(k);"http://www.w3.org/1999/xhtml"!==k.uri||k.closed?b++:b=parseHtmlSpecialContent(r,b,k.tagName,entityReplacer,a)}}catch(D){if(D instanceof ParseError$1)throw D;c.error("element parse error: "+D),b=-1}b>y?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<c;)o[a]=o[++a];if(o.length=c,r){var u=r.ownerDocument;u&&(_onRemoveAttribute(u,r,i),i.ownerElement=null)}}function DOMImplementation$1(r){if(this._features={},r)for(var o in r)this._features=r[o]}function Node(){}function _xmlEncoder(r){return("<"==r?"&lt;":">"==r&&"&gt;")||"&"==r&&"&amp;"||'"'==r&&"&quot;"||"&#"+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<l;h++){"xmlns"==(m=u.item(h)).prefix?c.push({prefix:m.localName,namespace:m.value}):"xmlns"==m.nodeName&&c.push({prefix:"",namespace:m.value})}for(h=0;h<l;h++){var m;if(needNamespaceDefine(m=u.item(h),0,c)){var y=m.prefix||"",v=m.namespaceURI,g=y?" xmlns:"+y:" xmlns";o.push(g,'="',v,'"'),c.push({prefix:y,namespace:v})}serializeToString(m,o,i,a,c)}if(needNamespaceDefine(r,0,c)){y=r.prefix||"";if(v=r.namespaceURI){g=y?" xmlns:"+y:" xmlns";o.push(g,'="',v,'"'),c.push({prefix:y,namespace:v})}}if(p||i&&!/^(?:meta|link|img|br|hr|input)$/i.test(d)){if(o.push(">"),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("</",d,">")}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,"]]&gt;"));case cn:return o.push("<![CDATA[",r.data,"]]>");case dn:return o.push("\x3c!--",r.data,"--\x3e");case mn:var _=r.publicId,b=r.systemId;if(o.push("<!DOCTYPE ",r.name),_)o.push(" PUBLIC ",_),b&&"."!=b&&o.push(" ",b),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("<?",r.target," ",r.data,"?>");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;h<d;h++)a.setAttributeNode(_cloneNode(r,l.item(h),!0));break;case an:i=!0}if(i)for(var m=o.firstChild;m;)a.appendChild(_cloneNode(r,m,i)),m=m.nextSibling;return a}function __set__(r,o,i){r[o]=i}gn.INVALID_STATE_ERR=(_n[11]="Invalid state",11),gn.SYNTAX_ERR=(_n[12]="Syntax error",12),gn.INVALID_MODIFICATION_ERR=(_n[13]="Invalid modification",13),gn.NAMESPACE_ERR=(_n[14]="Invalid namespace",14),gn.INVALID_ACCESS_ERR=(_n[15]="Invalid access",15),DOMException.prototype=Error.prototype,copy(gn,DOMException),NodeList.prototype={length:0,item:function item(r){return this[r]||null},toString:function toString(r,o){for(var i=[],a=0;a<this.length;a++)serializeToString(this[a],i,r,o);return i.join("")}},LiveNodeList.prototype.item=function(r){return _updateLiveList(this),this[r]},_extends(LiveNodeList,NodeList),NamedNodeMap.prototype={length:0,item:NodeList.prototype.item,getNamedItem:function getNamedItem(r){for(var o=this.length;o--;){var i=this[o];if(i.nodeName==r)return i}},setNamedItem:function setNamedItem(r){var o=r.ownerElement;if(o&&o!=this._ownerElement)throw new DOMException(wn);var i=this.getNamedItem(r.nodeName);return _addNamedNode(this._ownerElement,this,r,i),i},setNamedItemNS:function setNamedItemNS(r){var o,i=r.ownerElement;if(i&&i!=this._ownerElement)throw new DOMException(wn);return o=this.getNamedItemNS(r.namespaceURI,r.localName),_addNamedNode(this._ownerElement,this,r,o),o},removeNamedItem:function removeNamedItem(r){var o=this.getNamedItem(r);return _removeNamedNode(this._ownerElement,this,o),o},removeNamedItemNS:function removeNamedItemNS(r,o){var i=this.getNamedItemNS(r,o);return _removeNamedNode(this._ownerElement,this,i),i},getNamedItemNS:function getNamedItemNS(r,o){for(var i=this.length;i--;){var a=this[i];if(a.localName==o&&a.namespaceURI==r)return a}return null}},DOMImplementation$1.prototype={hasFeature:function hasFeature(r,o){var i=this._features[r.toLowerCase()];return!(!i||o&&!(o in i))},createDocument:function createDocument(r,o,i){var a=new Document;if(a.implementation=this,a.childNodes=new NodeList,a.doctype=i,i&&a.appendChild(i),o){var c=a.createElementNS(r,o);a.appendChild(c)}return a},createDocumentType:function createDocumentType(r,o,i){var a=new DocumentType;return a.name=r,a.nodeName=r,a.publicId=o,a.systemId=i,a}},Node.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function insertBefore(r,o){return _insertBefore(this,r,o)},replaceChild:function replaceChild(r,o){this.insertBefore(r,o),o&&this.removeChild(o)},removeChild:function removeChild(r){return _removeChild(this,r)},appendChild:function appendChild(r){return this.insertBefore(r,null)},hasChildNodes:function hasChildNodes(){return null!=this.firstChild},cloneNode:function cloneNode(r){return _cloneNode(this.ownerDocument||this,this,r)},normalize:function normalize(){for(var r=this.firstChild;r;){var o=r.nextSibling;o&&o.nodeType==sn&&r.nodeType==sn?(this.removeChild(o),r.appendData(o.data)):(r.normalize(),r=o)}},isSupported:function isSupported(r,o){return this.ownerDocument.implementation.hasFeature(r,o)},hasAttributes:function hasAttributes(){return this.attributes.length>0},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;p<l;p++){r=a.getURI(p);var d=a.getValue(p),h=(i=a.getQName(p),c.createAttributeNS(r,i));this.locator&&position(a.getLocator(p),h),h.value=h.nodeValue=d,u.setAttributeNode(h)}},endElement:function endElement(r,o,i){var a=this.currentElement;a.tagName,this.currentElement=a.parentNode},startPrefixMapping:function startPrefixMapping(r,o){},endPrefixMapping:function endPrefixMapping(r){},processingInstruction:function processingInstruction(r,o){var i=this.doc.createProcessingInstruction(r,o);this.locator&&position(this.locator,i),appendElement(this,i)},ignorableWhitespace:function ignorableWhitespace(r,o,i){},characters:function characters(r,o,i){if(r=_toString.apply(this,arguments)){if(this.cdata)var a=this.doc.createCDATASection(r);else a=this.doc.createTextNode(r);this.currentElement?this.currentElement.appendChild(a):/^\s*$/.test(r)&&this.doc.appendChild(a),this.locator&&position(this.locator,a)}},skippedEntity:function skippedEntity(r){},endDocument:function endDocument(){this.doc.normalize()},setDocumentLocator:function setDocumentLocator(r){(this.locator=r)&&(r.lineNumber=0)},comment:function comment(r,o,i){r=_toString.apply(this,arguments);var a=this.doc.createComment(r);this.locator&&position(this.locator,a),appendElement(this,a)},startCDATA:function startCDATA(){this.cdata=!0},endCDATA:function endCDATA(){this.cdata=!1},startDTD:function startDTD(r,o,i){var a=this.doc.implementation;if(a&&a.createDocumentType){var c=a.createDocumentType(r,o,i);this.locator&&position(this.locator,c),appendElement(this,c)}},warning:function warning(r){console.warn("[xmldom warning]\t"+r,_locator(this.locator))},error:function error(r){console.error("[xmldom error]\t"+r,_locator(this.locator))},fatalError:function fatalError(r){throw new kn(r,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(r){DOMHandler.prototype[r]=function(){return null}}));var Sn=Xt,On=Jt,Tn=On.XMLReader,kn=On.ParseError,An=Yt.DOMImplementation=tn.DOMImplementation;Yt.XMLSerializer=tn.XMLSerializer,Yt.DOMParser=DOMParser,Yt.__DOMHandler=DOMHandler;var Cn={};Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.parseJson=void 0,Cn.parseJson=function parseJson(r){try{return JSON.parse(r)}catch(o){return null}};var Nn={};Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.bufferFrom=void 0,Nn.bufferFrom=function bufferFrom(r){var o=encodeURIComponent(r).replace(/%([0-9A-F]{2})/g,(function(r,o){return String.fromCharCode("0x"+o)})),i=new Uint8Array(o.length);return Array.prototype.forEach.call(o,(function(r,o){i[o]=r.charCodeAt(0)})),i};var xn={},In={};Object.defineProperty(In,"__esModule",{value:!0}),In.EventPolyfill=void 0;var Dn=function(){function EventPolyfill(r,o){this.AT_TARGET=0,this.BUBBLING_PHASE=0,this.CAPTURING_PHASE=0,this.NONE=0,this.type="",this.srcElement=null,this.currentTarget=null,this.eventPhase=0,this.isTrusted=!0,this.composed=!1,this.cancelable=!0,this.defaultPrevented=!1,this.bubbles=!0,this.lengthComputable=!0,this.loaded=0,this.total=0,this.cancelBubble=!1,this.returnValue=!0,this.type=r,this.target=(null===o||void 0===o?void 0:o.target)||null,this.currentTarget=(null===o||void 0===o?void 0:o.currentTarget)||null,this.timeStamp=Date.now()}return EventPolyfill.prototype.composedPath=function(){return[]},EventPolyfill.prototype.initEvent=function(r,o,i){this.type=r,this.bubbles=!!o,this.cancelable=!!i},EventPolyfill.prototype.preventDefault=function(){this.defaultPrevented=!0},EventPolyfill.prototype.stopPropagation=function(){},EventPolyfill.prototype.stopImmediatePropagation=function(){},EventPolyfill}();In.EventPolyfill=Dn;var Ln,Rn={},Pn=u&&u.__extends||(Ln=function extendStatics(r,o){return(Ln=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(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}Ln(r,o),r.prototype=null===o?Object.create(o):(__.prototype=o.prototype,new __)});Object.defineProperty(Rn,"__esModule",{value:!0}),Rn.ProgressEventPolyfill=void 0;var jn=function(r){function ProgressEventPolyfill(o,i){var a=r.call(this,o)||this;return a.lengthComputable=(null===i||void 0===i?void 0:i.lengthComputable)||!1,a.composed=(null===i||void 0===i?void 0:i.composed)||!1,a.loaded=(null===i||void 0===i?void 0:i.loaded)||0,a.total=(null===i||void 0===i?void 0:i.total)||0,a}return Pn(ProgressEventPolyfill,r),ProgressEventPolyfill}(In.EventPolyfill);Rn.ProgressEventPolyfill=jn,Object.defineProperty(xn,"__esModule",{value:!0}),xn.createEvent=void 0;var Mn=In,Fn=Rn,qn="undefined"!==typeof ProgressEvent;xn.createEvent=function createEvent(r,o,i){var a=qn?ProgressEvent:Fn.ProgressEventPolyfill;return["error","progress","loadstart","loadend","load","timeout","abort"].includes(o)?new a(o,{lengthComputable:!0,loaded:(null===i||void 0===i?void 0:i.loaded)||0,total:(null===i||void 0===i?void 0:i.total)||0}):new Mn.EventPolyfill(o,{target:r,currentTarget:r})};var Un=u&&u.__awaiter||function(r,o,i,a){return new(i||(i=Promise))((function(c,u){function fulfilled(r){try{step(a.next(r))}catch(ar){u(ar)}}function rejected(r){try{step(a.throw(r))}catch(ar){u(ar)}}function step(r){r.done?c(r.value):function adopt(r){return r instanceof i?r:new i((function(o){o(r)}))}(r.value).then(fulfilled,rejected)}step((a=a.apply(r,o||[])).next())}))},Vn=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]<c[3])){l.label=u[1];break}if(6===u[0]&&l.label<c[1]){l.label=c[1],c=u;break}if(c&&l.label<c[2]){l.label=c[2],l.ops.push(u);break}c[2]&&l.ops.pop(),l.trys.pop();continue}u=o.call(r,l)}catch(ar){u=[6,ar],a=0}finally{i=c=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,p])}}},Bn=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.")},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.readyState<this.DONE&&(this.setReadyState(this.UNSENT),this.trigger("abort"))},XMLHttpRequestOverride.prototype.dispatchEvent=function(){return!1},XMLHttpRequestOverride.prototype.setRequestHeader=function(r,o){u('set request header "%s" to "%s"',r,o),this._requestHeaders.append(r,o)},XMLHttpRequestOverride.prototype.getResponseHeader=function(r){if(u('get response header "%s"',r),this.readyState<this.HEADERS_RECEIVED)return u("cannot return a header: headers not received (state: %s)",this.readyState),null;var o=this._responseHeaders.get(r);return u('resolved response header "%s" to "%s"',r,o,this._responseHeaders),o},XMLHttpRequestOverride.prototype.getAllResponseHeaders=function(){return u("get all response headers"),this.readyState<this.HEADERS_RECEIVED?(u("cannot return headers: headers not received (state: %s)",this.readyState),""):Gn.headersToString(this._responseHeaders)},XMLHttpRequestOverride.prototype.addEventListener=function(r,o){u("addEventListener",r,o),this._events.push({name:r,listener:o})},XMLHttpRequestOverride.prototype.removeEventListener=function(r,o){u("removeEventListener",r,o),this._events=this._events.filter((function(i){return i.name!==r&&i.listener!==o}))},XMLHttpRequestOverride.prototype.overrideMimeType=function(){},XMLHttpRequestOverride.prototype.getResponseBody=function(r){var o=null!==r&&void 0!==r?r:"";switch(u("coerced response body to",o),this.responseType){case"json":return u("resolving response body as JSON"),zn.parseJson(o);case"blob":var i=this.getResponseHeader("content-type")||"text/plain";return u("resolving response body as Blob",{type:i}),new Blob([o],{type:i});case"arraybuffer":return u("resolving response body as ArrayBuffer"),Xn.bufferFrom(o);default:return o}},XMLHttpRequestOverride.prototype.getResponseXML=function(){var r=this.getResponseHeader("Content-Type");return"application/xml"===r||"text/xml"===r?(new Wn.DOMParser).parseFromString(this.responseText,r):null},XMLHttpRequestOverride.prototype.propagateCallbacks=function(r){r.onabort=this.abort,r.onerror=this.onerror,r.ontimeout=this.ontimeout,r.onload=this.onload,r.onloadstart=this.onloadstart,r.onloadend=this.onloadend,r.onprogress=this.onprogress,r.onreadystatechange=this.onreadystatechange},XMLHttpRequestOverride.prototype.propagateListeners=function(r){u("propagating request listeners (%d) to the original request",this._events.length,this._events),this._events.forEach((function(o){var i=o.name,a=o.listener;r.addEventListener(i,a)}))},XMLHttpRequestOverride.prototype.propagateHeaders=function(r,o){u("propagating request headers to the original request",o),Object.entries(o.raw()).forEach((function(o){var i=Hn(o,2),a=i[0],c=i[1];u('setting "%s" (%s) header on the original request',a,c),r.setRequestHeader(a,c)}))},XMLHttpRequestOverride}()).UNSENT=0,o.OPENED=1,o.HEADERS_RECEIVED=2,o.LOADING=3,o.DONE=4,o},Object.defineProperty(zt,"__esModule",{value:!0});var Zn=zt.interceptXMLHttpRequest=void 0,er=Kt,tr=ze()("XHR"),nr="undefined"===typeof window?void 0:window.XMLHttpRequest;function parseIsomorphicRequest(r){var o=function uuidv4(){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)}))}();r.headers.set("x-msw-request-id",o);var i={id:o,url:r.url,method:r.method,body:parseBody(r.body,r.headers),headers:r.headers,cookies:{},redirect:"manual",referrer:"",keepalive:!1,cache:"default",mode:"cors",referrerPolicy:"no-referrer",integrity:"",destination:"document",bodyUsed:!1,credentials:"same-origin"},a=r.headers.get("cookie");setRequestCookies(i);var c=a?B(a):{};return i.cookies=Object.assign(Object.assign({},i.cookies),c),i}function createFallbackRequestListener(r,o){var i=wt.createInterceptor({modules:[Bt,Zn],resolver:function resolver(i){return __awaiter(this,void 0,void 0,regeneratorRuntime.mark((function _callee12(){var a;return regeneratorRuntime.wrap((function _callee12$(c){for(;;)switch(c.prev=c.next){case 0:return a=parseIsomorphicRequest(i),c.abrupt("return",handleRequest(a,r.requestHandlers,o,r.emitter,{transformResponse:function transformResponse(r){return{status:r.status,statusText:r.statusText,headers:r.headers.all(),body:r.body}},onMockedResponseSent:function onMockedResponseSent(r,i){var a=i.handler,c=i.publicRequest,u=i.parsedRequest;o.quiet||a.log(c,r,a,u)}}));case 2:case"end":return c.stop()}}),_callee12)})))}});return i.apply(),i}function createFallbackStart(r){return function start(o){return __awaiter(this,void 0,void 0,regeneratorRuntime.mark((function _callee13(){return regeneratorRuntime.wrap((function _callee13$(i){for(;;)switch(i.prev=i.next){case 0:return r.fallbackInterceptor=createFallbackRequestListener(r,o),printStartMessage({message:"Mocking enabled (fallback mode).",quiet:o.quiet}),i.abrupt("return",void 0);case 3:case"end":return i.stop()}}),_callee13)})))}}function createFallbackStop(r){return function stop(){var o,i;null===(o=r.fallbackInterceptor)||void 0===o||o.restore(),printStopMessage({quiet:null===(i=r.startOptions)||void 0===i?void 0:i.quiet})}}Zn=zt.interceptXMLHttpRequest=function interceptXMLHttpRequest(r,o){if(nr){tr('patching "XMLHttpRequest" module...');var i=er.createXMLHttpRequestOverride({pureXMLHttpRequest:nr,observer:r,resolver:o});window.XMLHttpRequest=i}return function(){nr&&(tr("restoring modules..."),window.XMLHttpRequest=nr)}};var rr=[];var or=[Ge.query("Pages11",(function(r,o,i){r.headers.map.apikey;return r.headers.map.apikey&&r.headers.map.apikey==="".concat("ApKrRSjySO4JAmX3E2Z7HvrBD0m8xdDlAiXyh4IbH3w")?o(i.data({readPages:{edges:[{node:{ID:"1",Title:"Home-Mocked",ClassName:"Site\\Pages\\HomePage",CSSClass:"Site-Pages-HomePage",Summary:"That's my personal website, I'm full-stack developer mostly specializing on SilverStipe backend projects and share some of my hobbies at this website.",Link:"/en/",URLSegment:"home",Elements:{edges:[{node:{ID:"3",Title:"Slider",Render:"&lt;div\nid=&quot;e3&quot;\nclass=&quot;element site__elements__sliderelement\n\t\n\t&quot;\n&gt;\n\t&lt;div class=&quot;element-container container&quot;&gt;\n\t\t\n\n\n &lt;div id=&quot;Carousel3&quot; class=&quot;carousel slide js-carousel&quot;&gt;\n &lt;div class=&quot;carousel-inner&quot;&gt;\n \n &lt;div class=&quot;carousel-item carousel-item-Video carousel-item-nocontrols active&quot;&gt;\n &lt;div class=&quot;carousel-slide&quot;&gt;\n \n \n &lt;div class=&quot;video&quot;&gt;\n &lt;iframe width=&quot;200&quot; height=&quot;113&quot; src=&quot;https://www.youtube.com/embed/IF1F_es1SaU?feature=oembed&amp;wmode=transparent&amp;enablejsapi=1&amp;disablekb=1&amp;iv_load_policy=3&amp;modestbranding=1&amp;rel=0&amp;showinfo=0&amp;autoplay=1&amp;mute=1&amp;loop=1&amp;playlist=IF1F_es1SaU&quot; allow=&quot;autoplay&quot; allow=&quot;autoplay&quot; frameborder=&quot;0&quot; allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture&quot; allowfullscreen&gt;&lt;/iframe&gt;\n &lt;/div&gt;\n \n\n\n\n\n &lt;/div&gt;\n &lt;/div&gt;\n \n &lt;/div&gt;\n &lt;/div&gt;\n\n\n\t&lt;/div&gt;\n&lt;/div&gt;\n"}},{node:{ID:"7",Title:"Categories List",Render:"&lt;div\nid=&quot;e7&quot;\nclass=&quot;element dnadesign__elementallist__model__elementlist\n\t\n\t&quot;\n&gt;\n\t&lt;div class=&quot;element-container container&quot;&gt;\n\t\t\n&lt;div class=&quot;list-element__container row&quot; data-listelement-count=&quot;3&quot;&gt;\n \n \n\t &lt;div\nid=&quot;e9&quot;\nclass=&quot;element dynamic__elements__image__elements__elementimage\n\t\n\t col-block col-md&quot;\n&gt;\n\t&lt;div class=&quot;element-container&quot;&gt;\n\t\t\n &lt;div class=&quot;image-element__image height400 width400&quot;&gt;\n &lt;img\n src=&quot;data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7&quot;\n data-lazy-src=&quot;/assets/Uploads/ElementImage/1609765749853__FillWzQwMCw0MDBd.jpg&quot; class=&quot;img-responsive&quot; alt=&quot;Aquascaping&quot;\n /&gt;\n &lt;/div&gt;\n\n\n\n&lt;div class=&quot;image-element__caption img-content&quot;&gt;\n &lt;h3 class=&quot;image-element__title title&quot;&gt;Aquascaping&lt;/h3&gt;\n\n \n&lt;/div&gt;\n\n\n\n &lt;a href=&quot;/en/aquascaping/&quot; class=&quot;stretched-link&quot;&gt;\n &lt;b class=&quot;sr-only&quot;&gt;Aquascaping&lt;/b&gt;\n &lt;/a&gt;\n\n\n\t&lt;/div&gt;\n&lt;/div&gt;\n\n \n\t &lt;div\nid=&quot;e10&quot;\nclass=&quot;element dynamic__elements__image__elements__elementimage\n\t\n\t col-block col-md&quot;\n&gt;\n\t&lt;div class=&quot;element-container&quot;&gt;\n\t\t\n &lt;div class=&quot;image-element__image height400 width400&quot;&gt;\n &lt;img\n src=&quot;data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7&quot;\n data-lazy-src=&quot;/assets/Uploads/ElementImage/1609766816754__FillWzQwMCw0MDBd.jpg&quot; class=&quot;img-responsive&quot; alt=&quot;Car Projects&quot;\n /&gt;\n &lt;/div&gt;\n\n\n\n&lt;div class=&quot;image-element__caption img-content&quot;&gt;\n &lt;h3 class=&quot;image-element__title title&quot;&gt;Car Projects&lt;/h3&gt;\n\n \n&lt;/div&gt;\n\n\n\n &lt;a href=&quot;/en/car/&quot; class=&quot;stretched-link&quot;&gt;\n &lt;b class=&quot;sr-only&quot;&gt;Car Projects&lt;/b&gt;\n &lt;/a&gt;\n\n\n\t&lt;/div&gt;\n&lt;/div&gt;\n\n \n\t &lt;div\nid=&quot;e12&quot;\nclass=&quot;element dynamic__elements__image__elements__elementimage\n\t\n\t col-block col-md&quot;\n&gt;\n\t&lt;div class=&quot;element-container&quot;&gt;\n\t\t\n &lt;div class=&quot;image-element__image height400 width400&quot;&gt;\n &lt;img\n src=&quot;data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7&quot;\n data-lazy-src=&quot;/assets/Uploads/ElementImage/Screenshot-from-2021-01-04-20-30-19__FillWzQwMCw0MDBd.png&quot; class=&quot;img-responsive&quot; alt=&quot;Programming&quot;\n /&gt;\n &lt;/div&gt;\n\n\n\n&lt;div class=&quot;image-element__caption img-content&quot;&gt;\n &lt;h3 class=&quot;image-element__title title&quot;&gt;Programming&lt;/h3&gt;\n\n \n&lt;/div&gt;\n\n\n\n &lt;a href=&quot;/en/development/&quot; class=&quot;stretched-link&quot;&gt;\n &lt;b class=&quot;sr-only&quot;&gt;Programming&lt;/b&gt;\n &lt;/a&gt;\n\n\n\t&lt;/div&gt;\n&lt;/div&gt;\n\n \n\n\n&lt;/div&gt;\n\n\t&lt;/div&gt;\n&lt;/div&gt;\n"}},{node:{ID:"4",Title:"Hello, I'm Tony Air",Render:"&lt;div\nid=&quot;e4&quot;\nclass=&quot;element dnadesign__elemental__models__elementcontent\n\t\n\t&quot;\n&gt;\n\t&lt;div class=&quot;element-container container&quot;&gt;\n\t\t&lt;div\nclass=&quot;content-element__content&quot;\n&gt;\n \n\t\n &lt;h2 class=&quot;content-element__title&quot;&gt;Hello, I&amp;#039;m Tony Air&lt;/h2&gt;\n \n\n &lt;div class=&quot;typography&quot;&gt;\n &lt;p&gt;That&#039;s my personal website, I&#039;m full-stack developer mostly specializing on SilverStipe backend projects and share some of my hobbies at this website.&lt;br&gt;&lt;br&gt;As for the things I do for work:&lt;br&gt;&lt;br&gt;Here&#039;s front-end UI kit:&amp;nbsp;&lt;a rel=&quot;noopener&quot; href=&quot;https://github.com/a2nt/webpack-bootstrap-ui-kit&quot; target=&quot;_blank&quot;&gt;https://github.com/a2nt/webpack-bootstrap-ui-kit&lt;/a&gt;&lt;br&gt;Here&#039;s SilverStipe quick start template:&amp;nbsp;&lt;a rel=&quot;noopener&quot; href=&quot;https://github.com/a2nt/silverstripe-webpack&quot; target=&quot;_blank&quot;&gt;https://github.com/a2nt/silverstripe-webpack&lt;/a&gt;&lt;br&gt;&lt;br&gt;More at my github:&amp;nbsp;&lt;a rel=&quot;noopener&quot; href=&quot;https://github.com/a2nt&quot; target=&quot;_blank&quot;&gt;https://github.com/a2nt&lt;/a&gt;&lt;/p&gt;\n &lt;/div&gt;\n\n \n&lt;/div&gt;\n\n\t&lt;/div&gt;\n&lt;/div&gt;\n"}}],pageInfo:{hasNextPage:!1,hasPreviousPage:!1,totalCount:3}}}}],pageInfo:{hasNextPage:!1,hasPreviousPage:!1,totalCount:1}}})):o(i.errors([{message:"Not authenticated",errorType:"AuthenticationError"}]))}))];function browser_arrayLikeToArray(r,o){(null==o||o>r.length)&&(o=r.length);for(var i=0,a=new Array(o);i<o;i++)a[i]=r[i];return a}var ir=function setupWorker(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];if(o.forEach((function(r){if(Array.isArray(r))throw new Error(me.formatMessage('Failed to call "setupWorker" given an Array of request handlers (setupWorker([a, b])), expected to receive each handler individually: setupWorker(a, b).'))})),X.exports.isNodeProcess())throw new Error(me.formatMessage("Failed to execute `setupWorker` in a non-browser environment. Consider using `setupServer` for Node.js environment instead."));var a={startOptions:void 0,worker:null,registration:null,requestHandlers:[].concat(o),emitter:new Ye.StrictEventEmitter,workerChannel:{on:function on(r,o){a.events.addListener(navigator.serviceWorker,"message",(function(i){if(i.source===a.worker){var c=jsonParse(i.data);c&&c.type===r&&o(i,c)}}))},send:function send(r){var o;null===(o=a.worker)||void 0===o||o.postMessage(r)}},events:{addListener:function addListener(r,o,i){return r.addEventListener(o,i),rr.push({eventType:o,target:r,callback:i}),function(){r.removeEventListener(o,i)}},removeAllListeners:function removeAllListeners(){var r,o=esm_createForOfIteratorHelper(rr);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=i.target,c=i.eventType,u=i.callback;a.removeEventListener(c,u)}}catch(l){o.e(l)}finally{o.f()}rr=[]},once:function once(r){var o=[];return new Promise((function(i,c){o.push(a.events.addListener(navigator.serviceWorker,"message",(function handleIncomingMessage(o){try{var a=JSON.parse(o.data);a.type===r&&i(a)}catch(error){c(error)}})),a.events.addListener(navigator.serviceWorker,"messageerror",c))})).finally((function(){o.forEach((function(r){return r()}))}))}},useFallbackMode:!("serviceWorker"in navigator)||"file:"===location.protocol},c=a.useFallbackMode?createFallbackStart(a):_t(a),u=a.useFallbackMode?createFallbackStop(a):bt(a);return{start:prepareStartHandler(c,a),stop:u,use:function use(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];_use.apply(void 0,[a.requestHandlers].concat(o))},restoreHandlers:function restoreHandlers(){_restoreHandlers(a.requestHandlers)},resetHandlers:function resetHandlers(){for(var r=arguments.length,i=new Array(r),c=0;c<r;c++)i[c]=arguments[c];a.requestHandlers=_resetHandlers.apply(void 0,[o].concat(i))},printHandlers:function printHandlers(){a.requestHandlers.forEach((function(r){var o=r.info,i=o.header,a=o.callFrame,c=r.info.hasOwnProperty("operationType")?"[graphql]":"[rest]";console.groupCollapsed("".concat(c," ").concat(i)),a&&console.log("Declaration: ".concat(a)),console.log("Handler:",r),r instanceof xe&&console.log("Match:","https://mswjs.io/repl?path=".concat(r.info.path)),console.groupEnd()}))},on:function on(r,o){a.emitter.addListener(r,o)}}}.apply(void 0,function browser_toConsumableArray(r){return function browser_arrayWithoutHoles(r){if(Array.isArray(r))return browser_arrayLikeToArray(r)}(r)||function browser_iterableToArray(r){if("undefined"!==typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function browser_unsupportedIterableToArray(r,o){if(!r)return;if("string"===typeof r)return browser_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 browser_arrayLikeToArray(r,o)}(r)||function browser_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.")}()}(or))},489:function(r){r.exports="../img/photo1.png"},425:function(r){r.exports="../img/photo2.jpg"},594:function(r){r.exports="../img/photo3.svg"},209:function(r){r.exports="../img/bg.png"},485:function(r){r.exports="../img/logo.svg"},966:function(r){r.exports="../img/photo1.png"},887:function(r){r.exports="../img/photo3.svg"},761:function(r){function webpackEmptyContext(r){var o=new Error("Cannot find module '"+r+"'");throw o.code="MODULE_NOT_FOUND",o}webpackEmptyContext.keys=function(){return[]},webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id=761,r.exports=webpackEmptyContext},310:function(r,o,i){var a={"./bg.png":209,"./logo.svg":485,"./photo1.png":966,"./photo3.svg":887,"bg.png":209,"img/bg.png":209,"img/logo.svg":485,"img/photo1.png":966,"img/photo3.svg":887,"logo.svg":485,"photo1.png":966,"photo3.svg":887,"src/img/bg.png":209,"src/img/logo.svg":485,"src/img/photo1.png":966,"src/img/photo3.svg":887};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=310}},o={};function __webpack_require__(i){var a=o[i];if(void 0!==a)return a.exports;var c=o[i]={id:i,loaded:!1,exports:{}};return r[i](c,c.exports,__webpack_require__),c.loaded=!0,c.exports}__webpack_require__.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return __webpack_require__.d(o,{a:o}),o},__webpack_require__.d=function(r,o){for(var i in o)__webpack_require__.o(o,i)&&!__webpack_require__.o(r,i)&&Object.defineProperty(r,i,{enumerable:!0,get:o[i]})},__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(r){if("object"===typeof window)return window}}(),__webpack_require__.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},__webpack_require__.r=function(r){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},__webpack_require__.nmd=function(r){return r.paths=[],r.children||(r.children=[]),r},function(){"use strict";var r={};__webpack_require__.r(r),__webpack_require__.d(r,{afterMain:function(){return Xn},afterRead:function(){return zn},afterWrite:function(){return Zn},applyStyles:function(){return tr},arrow:function(){return ar},auto:function(){return Pn},basePlacements:function(){return jn},beforeMain:function(){return Kn},beforeRead:function(){return Gn},beforeWrite:function(){return Jn},bottom:function(){return Dn},clippingParents:function(){return qn},computeStyles:function(){return cr},createPopper:function(){return Er},createPopperBase:function(){return br},createPopperLite:function(){return wr},detectOverflow:function(){return detectOverflow},end:function(){return Fn},eventListeners:function(){return lr},flip:function(){return dr},hide:function(){return hr},left:function(){return Rn},main:function(){return Yn},modifierPhases:function(){return er},offset:function(){return mr},placements:function(){return Qn},popper:function(){return Vn},popperGenerator:function(){return popperGenerator},popperOffsets:function(){return yr},preventOverflow:function(){return vr},read:function(){return Wn},reference:function(){return Bn},right:function(){return Ln},start:function(){return Mn},top:function(){return In},variationPlacements:function(){return Hn},viewport:function(){return Un},write:function(){return $n}});var o="ajax-load",i="load";function _defineProperties(r,o){for(var i=0;i<o.length;i++){var a=o[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}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}var a=window,c=__webpack_require__(885),u=new(function(){function MetaWindow(r){var o=this;!function _classCallCheck(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}(this,MetaWindow),_defineProperty(this,"state",{content:"",type:[],shown:!1,loading:!1,error:!1,embed:!1,collections:[],current:null,target:null}),_defineProperty(this,"show",(function(){var r=o;console.log("".concat(r.name,": show")),r.setState({shown:!0}),a.dispatchEvent(new Event("{ui.name}.show"))})),_defineProperty(this,"hide",(function(){var r=o;console.log("".concat(r.name,": hide")),r.setState({shown:!1}),a.dispatchEvent(new Event("{ui.name}.hide"))})),_defineProperty(this,"next",(function(){var r=o,i=r.state.current.getAttribute("data-gallery"),c=r._currIndex();c<r.state.collections[i].length-1?c++:c=0,r.state.collections[i][c].click(),console.log("".concat(r.name,": next")),a.dispatchEvent(new Event("{ui.name}.next"))})),_defineProperty(this,"prev",(function(){var r=o,i=r.state.current.getAttribute("data-gallery"),c=r._currIndex();c>0?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('<img src="data:'.concat(r.headers["content-type"],";base64,").concat(i._imageEncode(r.data),'" />'),"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='<i class="icon fa fas fa-times"></i> <span class="visually-hidden">Close</span>',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='<i class="icon fa fas fa-chevron-left"></i> <span class="visually-hidden">Previous</span>',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='<i class="icon fa fas fa-chevron-right"></i> <span class="visually-hidden">Next</span>',m.addEventListener("click",(function(o){o.preventDefault(),r.next()})),d.append(m),u.append(d)}}if(r.state.embed)'<section class="meta-wrap typography"><Embed url={ui.state.embed} providers={[...defaultProviders, InstagramProvider]} LoadingFallbackElement=<div className="meta-spinner_embed"> ... Loading ... </div></section>';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);i<o;i++)a[i]=r[i];return a}!function(r){var o=document,i=o.body,a=function detectCSSScreenSize(){var a,c=o.createElement("div");c.className="env-test",i.appendChild(c);var u=_toConsumableArray(h.ENVS).reverse(),l=u.shift();(a=i.classList).remove.apply(a,_toConsumableArray(u));for(var p=0;p<u.length;++p){var d=u[p];if(c.classList.add("d-".concat(d,"-none")),"none"===r.getComputedStyle(c).display){l=d,i.classList.add("".concat(l));break}}var m=!0;return r.innerWidth>r.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<o.length;i++){var a=o[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}var m="_main.loading-spinner",y=document,v=(y.body,y.getElementById("PageLoading")),g=function(){function SpinnerUI(){!function loading_spinner_classCallCheck(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}(this,SpinnerUI)}return function loading_spinner_createClass(r,o,i){return o&&loading_spinner_defineProperties(r.prototype,o),i&&loading_spinner_defineProperties(r,i),r}(SpinnerUI,null,[{key:"show",value:function show(){console.log("".concat(m,": show")),v.classList.remove("d-none")}},{key:"hide",value:function hide(){console.log("".concat(m,": hide")),v.classList.add("d-none")}}]),SpinnerUI}();function main_defineProperties(r,o){for(var i=0;i<o.length;i++){var a=o[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}!function(r){var o=document,i=o.body;console.info("%cUI Kit ".concat("@a2nt/ss-bootstrap-ui-webpack-boilerplate-react"," ").concat("4.1.7"),"color:yellow;font-size:14px"),console.info("%c".concat("@a2nt/meta-lightbox-js"," ").concat("4.0.1"),"color:yellow;font-size:12px"),console.info("%chttps://github.com/a2nt/webpack-bootstrap-ui-kit by ".concat("Tony Air <tony@twma.pro>"),"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;i<a;i++)for(var c in o=arguments[i])Object.prototype.hasOwnProperty.call(o,c)&&(r[c]=o[c]);return r}).apply(this,arguments)};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<a.length;c++)o.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(r,a[c])&&(i[a[c]]=r[a[c]])}return i}function __awaiter(r,o,i,a){return new(i||(i=Promise))((function(c,u){function fulfilled(r){try{step(a.next(r))}catch(o){u(o)}}function rejected(r){try{step(a.throw(r))}catch(o){u(o)}}function step(r){r.done?c(r.value):function adopt(r){return r instanceof i?r:new i((function(o){o(r)}))}(r.value).then(fulfilled,rejected)}step((a=a.apply(r,o||[])).next())}))}function __generator(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]<c[3])){l.label=u[1];break}if(6===u[0]&&l.label<c[1]){l.label=c[1],c=u;break}if(c&&l.label<c[2]){l.label=c[2],l.ops.push(u);break}c[2]&&l.ops.pop(),l.trys.pop();continue}u=o.call(r,l)}catch(p){u=[6,p],a=0}finally{i=c=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,p])}}}Object.create;function __spreadArray(r,o,i){if(i||2===arguments.length)for(var a,c=0,u=o.length;c<u;c++)!a&&c in o||(a||(a=Array.prototype.slice.call(o,0,c)),a[c]=o[c]);return r.concat(a||o)}Object.create;function isObjectLike_typeof(r){return(isObjectLike_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 isObjectLike(r){return"object"==isObjectLike_typeof(r)&&null!==r}"function"===typeof Symbol&&null!=Symbol.iterator&&Symbol.iterator,"function"===typeof Symbol&&null!=Symbol.asyncIterator&&Symbol.asyncIterator;var w="function"===typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function getLocation(r,o){for(var i,a=/\r\n|[\n\r]/g,c=1,u=o+1;(i=a.exec(r.body))&&i.index<o;)c+=1,u=o+1-(i.index+i[0].length);return{line:c,column:u}}function printLocation(r){return printSourceLocation(r.source,getLocation(r.source,r.start))}function printSourceLocation(r,o){var i=r.locationOffset.column-1,a=whitespace(i)+r.body,c=o.line-1,u=r.locationOffset.line-1,l=o.line+u,p=1===o.line?i:0,d=o.column+p,h="".concat(r.name,":").concat(l,":").concat(d,"\n"),m=a.split(/\r\n|[\n\r]/g),y=m[c];if(y.length>120){for(var v=Math.floor(d/80),g=d%80,_=[],b=0;b<y.length;b+=80)_.push(y.slice(b,b+80));return h+printPrefixedLines([["".concat(l),_[0]]].concat(_.slice(1,v+1).map((function(r){return["",r]})),[[" ",whitespace(g-1)+"^"],["",_[v+1]]]))}return h+printPrefixedLines([["".concat(l-1),m[c-1]],["".concat(l),y],["",whitespace(d-1)+"^"],["".concat(l+1),m[c+1]]])}function printPrefixedLines(r){var o=r.filter((function(r){r[0];return void 0!==r[1]})),i=Math.max.apply(Math,o.map((function(r){return r[0].length})));return o.map((function(r){var o=r[0],a=r[1];return function leftPad(r,o){return whitespace(r-o.length)+o}(i,o)+(a?" | "+a:" |")})).join("\n")}function whitespace(r){return Array(r+1).join(" ")}function GraphQLError_typeof(r){return(GraphQLError_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 GraphQLError_defineProperties(r,o){for(var i=0;i<o.length;i++){var a=o[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}function _possibleConstructorReturn(r,o){return!o||"object"!==GraphQLError_typeof(o)&&"function"!==typeof o?_assertThisInitialized(r):o}function _assertThisInitialized(r){if(void 0===r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function _wrapNativeSuper(r){var o="function"===typeof Map?new Map:void 0;return(_wrapNativeSuper=function _wrapNativeSuper(r){if(null===r||!function _isNativeFunction(r){return-1!==Function.toString.call(r).indexOf("[native code]")}(r))return r;if("function"!==typeof r)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof o){if(o.has(r))return o.get(r);o.set(r,Wrapper)}function Wrapper(){return _construct(r,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(r.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,r)})(r)}function _construct(r,o,i){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function _construct(r,o,i){var a=[null];a.push.apply(a,o);var c=new(Function.bind.apply(r,a));return i&&_setPrototypeOf(c,i.prototype),c}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(r){return!1}}function _setPrototypeOf(r,o){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(r,o){return r.__proto__=o,r})(r,o)}function _getPrototypeOf(r){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}var S=function(r){!function _inherits(r,o){if("function"!==typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(o&&o.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),o&&_setPrototypeOf(r,o)}(GraphQLError,r);var o=function _createSuper(r){var o=_isNativeReflectConstruct();return function _createSuperInternal(){var i,a=_getPrototypeOf(r);if(o){var c=_getPrototypeOf(this).constructor;i=Reflect.construct(a,arguments,c)}else i=a.apply(this,arguments);return _possibleConstructorReturn(this,i)}}(GraphQLError);function GraphQLError(r,i,a,c,u,l,p){var d,h,m,y,v;!function GraphQLError_classCallCheck(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}(this,GraphQLError),v=o.call(this,r);var g,_=Array.isArray(i)?0!==i.length?i:void 0:i?[i]:void 0,b=a;!b&&_&&(b=null===(g=_[0].loc)||void 0===g?void 0:g.source);var E,w=c;!w&&_&&(w=_.reduce((function(r,o){return o.loc&&r.push(o.loc.start),r}),[])),w&&0===w.length&&(w=void 0),c&&a?E=c.map((function(r){return getLocation(a,r)})):_&&(E=_.reduce((function(r,o){return o.loc&&r.push(getLocation(o.loc.source,o.loc.start)),r}),[]));var S=p;if(null==S&&null!=l){var O=l.extensions;isObjectLike(O)&&(S=O)}return Object.defineProperties(_assertThisInitialized(v),{name:{value:"GraphQLError"},message:{value:r,enumerable:!0,writable:!0},locations:{value:null!==(d=E)&&void 0!==d?d:void 0,enumerable:null!=E},path:{value:null!==u&&void 0!==u?u:void 0,enumerable:null!=u},nodes:{value:null!==_&&void 0!==_?_:void 0},source:{value:null!==(h=b)&&void 0!==h?h:void 0},positions:{value:null!==(m=w)&&void 0!==m?m:void 0},originalError:{value:l},extensions:{value:null!==(y=S)&&void 0!==y?y:void 0,enumerable:null!=S}}),null!==l&&void 0!==l&&l.stack?(Object.defineProperty(_assertThisInitialized(v),"stack",{value:l.stack,writable:!0,configurable:!0}),_possibleConstructorReturn(v)):(Error.captureStackTrace?Error.captureStackTrace(_assertThisInitialized(v),GraphQLError):Object.defineProperty(_assertThisInitialized(v),"stack",{value:Error().stack,writable:!0,configurable:!0}),v)}return function GraphQLError_createClass(r,o,i){return o&&GraphQLError_defineProperties(r.prototype,o),i&&GraphQLError_defineProperties(r,i),r}(GraphQLError,[{key:"toString",value:function toString(){return function printError(r){var o=r.message;if(r.nodes)for(var i=0,a=r.nodes;i<a.length;i++){var c=a[i];c.loc&&(o+="\n\n"+printLocation(c.loc))}else if(r.source&&r.locations)for(var u=0,l=r.locations;u<l.length;u++){var p=l[u];o+="\n\n"+printSourceLocation(r.source,p)}return o}(this)}},{key:w,get:function get(){return"Object"}}]),GraphQLError}(_wrapNativeSuper(Error));function syntaxError(r,o,i){return new S("Syntax Error: ".concat(i),void 0,r,[o])}var O=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});function invariant(r,o){if(!Boolean(r))throw new Error(null!=o?o:"Unexpected invariant triggered.")}var T="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function defineInspect(r){var o=r.prototype.toJSON;"function"===typeof o||invariant(0),r.prototype.inspect=o,T&&(r.prototype[T]=o)}var k=function(){function Location(r,o,i){this.start=r.start,this.end=o.end,this.startToken=r,this.endToken=o,this.source=i}return Location.prototype.toJSON=function toJSON(){return{start:this.start,end:this.end}},Location}();defineInspect(k);var A=function(){function Token(r,o,i,a,c,u,l){this.kind=r,this.start=o,this.end=i,this.line=a,this.column=c,this.value=l,this.prev=u,this.next=null}return Token.prototype.toJSON=function toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},Token}();function isNode(r){return null!=r&&"string"===typeof r.kind}defineInspect(A);var C=Object.freeze({SOF:"<SOF>",EOF:"<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;u<i;++u)c.push(formatValue(r[u],o));1===a?c.push("... 1 more item"):a>1&&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;i<o.length;i++){var a=o[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}var x=function(){function Source(r){var o=arguments.length>1&&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;l<r.length;++l)switch(r.charCodeAt(l)){case 13:10===r.charCodeAt(l+1)&&++l;case 10:i=!1,a=!0,c=0;break;case 9:case 32:++c;break;default:a&&!i&&(null===u||c<u)&&(u=c),a=!1}return null!==(o=u)&&void 0!==o?o:0}(r);if(0!==i)for(var a=1;a<o.length;a++)o[a]=o[a].slice(i);for(var c=0;c<o.length&&isBlank(o[c]);)++c;for(var u=o.length;u>c&&isBlank(o[u-1]);)--u;return o.slice(c,u).join("\n")}function isBlank(r){for(var o=0;o<r.length;++o)if(" "!==r[o]&&"\t"!==r[o])return!1;return!0}var D=function(){function Lexer(r){var o=new A(C.SOF,0,0,0,0,null);this.source=r,this.lastToken=o,this.token=o,this.line=1,this.lineStart=0}var r=Lexer.prototype;return r.advance=function advance(){return this.lastToken=this.token,this.token=this.lookahead()},r.lookahead=function lookahead(){var r=this.token;if(r.kind!==C.EOF)do{var o;r=null!==(o=r.next)&&void 0!==o?o:r.next=readToken(this,r)}while(r.kind===C.COMMENT);return r},Lexer}();function printCharCode(r){return isNaN(r)?C.EOF:r<127?JSON.stringify(String.fromCharCode(r)):'"\\u'.concat(("00"+r.toString(16).toUpperCase()).slice(-4),'"')}function readToken(r,o){for(var i=r.source,a=i.body,c=a.length,u=o.end;u<c;){var l=a.charCodeAt(u),p=r.line,d=1+u-r.lineStart;switch(l){case 65279:case 9:case 32:case 44:++u;continue;case 10:++u,++r.line,r.lineStart=u;continue;case 13:10===a.charCodeAt(u+1)?u+=2:++u,++r.line,r.lineStart=u;continue;case 33:return new A(C.BANG,u,u+1,p,d,o);case 35:return readComment(i,u,p,d,o);case 36:return new A(C.DOLLAR,u,u+1,p,d,o);case 38:return new A(C.AMP,u,u+1,p,d,o);case 40:return new A(C.PAREN_L,u,u+1,p,d,o);case 41:return new A(C.PAREN_R,u,u+1,p,d,o);case 46:if(46===a.charCodeAt(u+1)&&46===a.charCodeAt(u+2))return new A(C.SPREAD,u,u+3,p,d,o);break;case 58:return new A(C.COLON,u,u+1,p,d,o);case 61:return new A(C.EQUALS,u,u+1,p,d,o);case 64:return new A(C.AT,u,u+1,p,d,o);case 91:return new A(C.BRACKET_L,u,u+1,p,d,o);case 93:return new A(C.BRACKET_R,u,u+1,p,d,o);case 123:return new A(C.BRACE_L,u,u+1,p,d,o);case 124:return new A(C.PIPE,u,u+1,p,d,o);case 125:return new A(C.BRACE_R,u,u+1,p,d,o);case 34:return 34===a.charCodeAt(u+1)&&34===a.charCodeAt(u+2)?readBlockString(i,u,p,d,o,r):readString(i,u,p,d,o);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return readNumber(i,u,l,p,d,o);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return readName(i,u,p,d,o)}throw syntaxError(i,u,unexpectedCharacterMessage(l))}var h=r.line,m=1+u-r.lineStart;return new A(C.EOF,c,c,h,m,o)}function unexpectedCharacterMessage(r){return r<32&&9!==r&&10!==r&&13!==r?"Cannot contain the invalid character ".concat(printCharCode(r),"."):39===r?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(printCharCode(r),".")}function readComment(r,o,i,a,c){var u,l=r.body,p=o;do{u=l.charCodeAt(++p)}while(!isNaN(u)&&(u>31||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<h.length&&!isNaN(v=h.charCodeAt(m))&&10!==v&&13!==v;){if(34===v)return g+=h.slice(y,m),new A(C.STRING,o,m+1,i,a,c,g);if(v<32&&9!==v)throw syntaxError(r,m,"Invalid character within String: ".concat(printCharCode(v),"."));if(++m,92===v){switch(g+=h.slice(y,m-1),v=h.charCodeAt(m)){case 34:g+='"';break;case 47:g+="/";break;case 92:g+="\\";break;case 98:g+="\b";break;case 102:g+="\f";break;case 110:g+="\n";break;case 114:g+="\r";break;case 116:g+="\t";break;case 117:var _=(u=h.charCodeAt(m+1),l=h.charCodeAt(m+2),p=h.charCodeAt(m+3),d=h.charCodeAt(m+4),char2hex(u)<<12|char2hex(l)<<8|char2hex(p)<<4|char2hex(d));if(_<0){var b=h.slice(m+1,m+5);throw syntaxError(r,m,"Invalid character escape sequence: \\u".concat(b,"."))}g+=String.fromCharCode(_),m+=4;break;default:throw syntaxError(r,m,"Invalid character escape sequence: \\".concat(String.fromCharCode(v),"."))}y=++m}}throw syntaxError(r,m,"Unterminated string.")}function readBlockString(r,o,i,a,c,u){for(var l=r.body,p=o+3,d=p,h=0,m="";p<l.length&&!isNaN(h=l.charCodeAt(p));){if(34===h&&34===l.charCodeAt(p+1)&&34===l.charCodeAt(p+2))return m+=l.slice(d,p),new A(C.BLOCK_STRING,o,p+3,i,a,c,dedentBlockStringValue(m));if(h<32&&9!==h&&10!==h&&13!==h)throw syntaxError(r,p,"Invalid character within String: ".concat(printCharCode(h),"."));10===h?(++p,++u.line,u.lineStart=p):13===h?(10===l.charCodeAt(p+1)?p+=2:++p,++u.line,u.lineStart=p):92===h&&34===l.charCodeAt(p+1)&&34===l.charCodeAt(p+2)&&34===l.charCodeAt(p+3)?(m+=l.slice(d,p)+'"""',d=p+=4):++p}throw syntaxError(r,p,"Unterminated string.")}function char2hex(r){return r>=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;i<arguments.length;i++)o[i-1]=arguments[i];"string"===typeof r&&(r=[r]);var a=r[0];return o.forEach((function(o,i){o&&"Document"===o.kind?a+=o.loc.source.body:a+=o,a+=r[i+1]})),parseDocument(a)}var q,U=gql,V=function resetCaches(){R.clear(),P.clear()},B=function disableFragmentWarnings(){j=!1},H=function enableExperimentalFragmentVariables(){M=!0},Q=function disableExperimentalFragmentVariables(){M=!1};(q=gql||(gql={})).gql=U,q.resetCaches=V,q.disableFragmentWarnings=B,q.enableExperimentalFragmentVariables=H,q.disableExperimentalFragmentVariables=Q,gql.default=gql;function trie_esm_typeof(r){return(trie_esm_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 G=function defaultMakeData(){return Object.create(null)},W=Array.prototype,z=W.forEach,K=W.slice,Y=function(){function Trie(r,o){void 0===r&&(r=!0),void 0===o&&(o=G),this.weakness=r,this.makeData=o}return Trie.prototype.lookup=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return this.lookupArray(r)},Trie.prototype.lookupArray=function(r){var o=this;return z.call(r,(function(r){return o=o.getChildTrie(r)})),o.data||(o.data=this.makeData(K.call(r)))},Trie.prototype.getChildTrie=function(r){var o=this.weakness&&function isObjRef(r){switch(trie_esm_typeof(r)){case"object":if(null===r)break;case"function":return!0}return!1}(r)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),i=o.get(r);return i||o.set(r,i=new Trie(this.weakness,this.makeData)),i},Trie}();var X=null,J={},Z=1,ee="@wry/context:Slot",te=Array,ne=te[ee]||function(){var r=function makeSlotClass(){return function(){function Slot(){this.id=["slot",Z++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return Slot.prototype.hasValue=function(){for(var r=X;r;r=r.parent)if(this.id in r.slots){var o=r.slots[this.id];if(o===J)break;return r!==X&&(X.slots[this.id]=o),!0}return X&&(X.slots[this.id]=J),!1},Slot.prototype.getValue=function(){if(this.hasValue())return X.slots[this.id]},Slot.prototype.withValue=function(r,o,i,a){var c,u=((c={__proto__:null})[this.id]=r,c),l=X;X={parent:l,slots:u};try{return o.apply(a,i)}finally{X=l}},Slot.bind=function(r){var o=X;return function(){var i=X;try{return X=o,r.apply(this,arguments)}finally{X=i}}},Slot.noContext=function(r,o,i){if(!X)return r.apply(i,o);var a=X;try{return X=null,r.apply(i,o)}finally{X=a}},Slot}()}();try{Object.defineProperty(te,ee,{value:te[ee]=r,enumerable:!1,writable:!1,configurable:!1})}finally{return r}}();ne.bind,ne.noContext;function defaultDispose(){}var re,oe=function(){function Cache(r,o){void 0===r&&(r=1/0),void 0===o&&(o=defaultDispose),this.max=r,this.dispose=o,this.map=new Map,this.newest=null,this.oldest=null}return Cache.prototype.has=function(r){return this.map.has(r)},Cache.prototype.get=function(r){var o=this.getNode(r);return o&&o.value},Cache.prototype.getNode=function(r){var o=this.map.get(r);if(o&&o!==this.newest){var i=o.older,a=o.newer;a&&(a.older=i),i&&(i.newer=a),o.older=this.newest,o.older.newer=o,o.newer=null,this.newest=o,o===this.oldest&&(this.oldest=a)}return o},Cache.prototype.set=function(r,o){var i=this.getNode(r);return i?i.value=o:(i={key:r,value:o,newer:null,older:this.newest},this.newest&&(this.newest.newer=i),this.newest=i,this.oldest=this.oldest||i,this.map.set(r,i),i.value)},Cache.prototype.clean=function(){for(;this.oldest&&this.map.size>this.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;c<i;++c)o(a[c],r)}function reportDirtyChild(r,o){assert(r.childValues.has(o)),assert(mightBeDirty(o));var i=!mightBeDirty(r);if(r.dirtyChildren){if(r.dirtyChildren.has(o))return}else r.dirtyChildren=ce.pop()||new Set;r.dirtyChildren.add(o),i&&reportDirty(r)}function reportCleanChild(r,o){assert(r.childValues.has(o)),assert(!mightBeDirty(o));var i=r.childValues.get(o);0===i.length?r.childValues.set(o,function valueCopy(r){return r.slice(0)}(o.value)):function valueIs(r,o){var i=r.length;return i>0&&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<u;++l)if(!he.call(o,a[l]))return!1;for(l=0;l<u;++l){var p=a[l];if(!check(r[p],o[p]))return!1}return!0;case"[object Error]":return r.name===o.name&&r.message===o.message;case"[object Number]":if(r!==r)return o!==o;case"[object Boolean]":case"[object Date]":return+r===+o;case"[object RegExp]":case"[object String]":return r==""+o;case"[object Map]":case"[object Set]":if(r.size!==o.size)return!1;if(previouslyCompared(r,o))return!0;for(var d=r.entries(),h="[object Map]"===i;;){var m=d.next();if(m.done)break;var y=m.value,v=y[0],g=y[1];if(!o.has(v))return!1;if(h&&!check(g,o.get(v)))return!1}return!0;case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":r=new Uint8Array(r),o=new Uint8Array(o);case"[object DataView]":var _=r.byteLength;if(_===o.byteLength)for(;_--&&r[_]===o[_];);return-1===_;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var b=me.call(r);return b===me.call(o)&&!function endsWith(r,o){var i=r.length-o.length;return i>=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;a<c.length;a++){var u=c[a];if(storeUtils_isField(u)){if("__typename"===u.name.value)return r[resultKeyNameFromField(u)]}else{var l=getTypenameFromResult(r,getFragmentFromSelection(u,i).selectionSet,i);if("string"===typeof l)return l}}}function storeUtils_isField(r){return"Field"===r.kind}function isInlineFragment(r){return"InlineFragment"===r.kind}var Ne={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},xe=Object.freeze({});function visit(r,o){var i=arguments.length>2&&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<S.length;w++){var O=S[w];E[O]=d[O]}d=E}for(var T=0,k=0;k<p.length;k++){var A=p[k][0],C=p[k][1];c&&(A-=T),c&&null===C?(d.splice(A,1),T++):d[A]=C}}l=a.index,u=a.keys,p=a.edits,c=a.inArray,a=a.prev}else{if(h=m?c?l:u[l]:void 0,null===(d=m?m[h]:g)||void 0===d)continue;m&&y.push(h)}var N,x=void 0;if(!Array.isArray(d)){if(!isNode(d))throw new Error("Invalid AST Node: ".concat(inspect_inspect(d),"."));var I=getVisitFn(o,d.kind,_);if(I){if((x=I.call(o,d,h,m,y,v))===xe)break;if(!1===x){if(!_){y.pop();continue}}else if(void 0!==x&&(p.push([h,x]),!_)){if(!isNode(x)){y.pop();continue}d=x}}}if(void 0===x&&b&&p.push([h,d]),_)y.pop();else a={inArray:c,index:l,keys:u,edits:p,prev:a},u=(c=Array.isArray(d))?d:null!==(N=i[d.kind])&&void 0!==N?N:[],l=-1,p=[],m&&v.push(m),m=d}while(void 0!==a);return 0!==p.length&&(g=p[p.length-1][1]),g}function getVisitFn(r,o,i){var a=r[o];if(a){if(!i&&"function"===typeof a)return a;var c=i?a.leave:a.enter;if("function"===typeof c)return c}else{var u=i?r.leave:r.enter;if(u){if("function"===typeof u)return u;var l=u[o];if("function"===typeof l)return l}}}function checkDocument(r){__DEV__?invariant_esm_invariant(r&&"Document"===r.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):invariant_esm_invariant(r&&"Document"===r.kind,50);var o=r.definitions.filter((function(r){return"FragmentDefinition"!==r.kind})).map((function(r){if("OperationDefinition"!==r.kind)throw __DEV__?new Ee('Schema type definitions not allowed in queries. Found: "'+r.kind+'"'):new Ee(51);return r}));return __DEV__?invariant_esm_invariant(o.length<=1,"Ambiguous GraphQL document: contains "+o.length+" operations"):invariant_esm_invariant(o.length<=1,52),r}function getOperationDefinition(r){return checkDocument(r),r.definitions.filter((function(r){return"OperationDefinition"===r.kind}))[0]}function getOperationName(r){return r.definitions.filter((function(r){return"OperationDefinition"===r.kind&&r.name})).map((function(r){return r.name.value}))[0]||null}function getFragmentDefinitions(r){return r.definitions.filter((function(r){return"FragmentDefinition"===r.kind}))}function getMainDefinition(r){var o;checkDocument(r);for(var i=0,a=r.definitions;i<a.length;i++){var c=a[i];if("OperationDefinition"===c.kind){var u=c.operation;if("query"===u||"mutation"===u||"subscription"===u)return c}"FragmentDefinition"!==c.kind||o||(o=c)}if(o)return o;throw __DEV__?new Ee("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new Ee(57)}function getDefaultValues(r){var o=Object.create(null),i=r&&r.variableDefinitions;return i&&i.length&&i.forEach((function(r){r.defaultValue&&valueToObjectRepresentation(o,r.variable.name,r.defaultValue)})),o}function filterInPlace(r,o,i){var a=0;return r.forEach((function(i,c){o.call(this,i,c,r)&&(r[a++]=i)}),i),r.length=a,r}var Ie={kind:"Field",name:{kind:"Name",value:"__typename"}};function isEmpty(r,o){return r.selectionSet.selections.every((function(r){return"FragmentSpread"===r.kind&&isEmpty(o[r.name.value],o)}))}function nullIfDocIsEmpty(r){return isEmpty(getOperationDefinition(r)||function getFragmentDefinition(r){__DEV__?invariant_esm_invariant("Document"===r.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):invariant_esm_invariant("Document"===r.kind,54),__DEV__?invariant_esm_invariant(r.definitions.length<=1,"Fragment must have exactly one definition."):invariant_esm_invariant(r.definitions.length<=1,55);var o=r.definitions[0];return __DEV__?invariant_esm_invariant("FragmentDefinition"===o.kind,"Must be a fragment definition."):invariant_esm_invariant("FragmentDefinition"===o.kind,56),o}(r),createFragmentMap(getFragmentDefinitions(r)))?null:r}function getDirectiveMatcher(r){return function directiveMatcher(o){return r.some((function(r){return r.name&&r.name===o.name.value||r.test&&r.test(o)}))}}function removeDirectivesFromDocument(r,o){var i=Object.create(null),a=[],c=Object.create(null),u=[],l=nullIfDocIsEmpty(visit(o,{Variable:{enter:function enter(r,o,a){"VariableDefinition"!==a.kind&&(i[r.name.value]=!0)}},Field:{enter:function enter(o){if(r&&o.directives&&(r.some((function(r){return r.remove}))&&o.directives&&o.directives.some(getDirectiveMatcher(r))))return o.arguments&&o.arguments.forEach((function(r){"Variable"===r.value.kind&&a.push({name:r.value.name.value})})),o.selectionSet&&getAllFragmentSpreadsFromSelectionSet(o.selectionSet).forEach((function(r){u.push({name:r.name.value})})),null}},FragmentSpread:{enter:function enter(r){c[r.name.value]=!0}},Directive:{enter:function enter(o){if(getDirectiveMatcher(r)(o))return null}}}));return l&&filterInPlace(a,(function(r){return!!r.name&&!i[r.name]})).length&&(l=function removeArgumentsFromDocument(r,o){var i=function getArgumentMatcher(r){return function argumentMatcher(o){return r.some((function(r){return o.value&&"Variable"===o.value.kind&&o.value.name&&(r.name===o.value.name.value||r.test&&r.test(o))}))}}(r);return nullIfDocIsEmpty(visit(o,{OperationDefinition:{enter:function enter(o){return E(E({},o),{variableDefinitions:o.variableDefinitions?o.variableDefinitions.filter((function(o){return!r.some((function(r){return r.name===o.variable.name.value}))})):[]})}},Field:{enter:function enter(o){if(r.some((function(r){return r.remove}))){var a=0;if(o.arguments&&o.arguments.forEach((function(r){i(r)&&(a+=1)})),1===a)return null}}},Argument:{enter:function enter(r){if(i(r))return null}}}))}(a,l)),l&&filterInPlace(u,(function(r){return!!r.name&&!c[r.name]})).length&&(l=function removeFragmentSpreadFromDocument(r,o){function enter(o){if(r.some((function(r){return r.name===o.name.value})))return null}return nullIfDocIsEmpty(visit(o,{FragmentSpread:{enter:enter},FragmentDefinition:{enter:enter}}))}(u,l)),l}var De=Object.assign((function(r){return visit(checkDocument(r),{SelectionSet:{enter:function enter(r,o,i){if(!i||"OperationDefinition"!==i.kind){var a=r.selections;if(a)if(!a.some((function(r){return storeUtils_isField(r)&&("__typename"===r.name.value||0===r.name.value.lastIndexOf("__",0))}))){var c=i;if(!(storeUtils_isField(c)&&c.directives&&c.directives.some((function(r){return"export"===r.name.value}))))return E(E({},r),{selections:__spreadArray(__spreadArray([],a),[Ie])})}}}}})}),{added:function added(r){return r===Ie}}),Le={test:function test(r){var o="connection"===r.name.value;return o&&(r.arguments&&r.arguments.some((function(r){return"key"===r.name.value}))||__DEV__&&invariant_esm_invariant.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key.")),o}};function getAllFragmentSpreadsFromSelectionSet(r){var o=[];return r.selections.forEach((function(r){(storeUtils_isField(r)||isInlineFragment(r))&&r.selectionSet?getAllFragmentSpreadsFromSelectionSet(r.selectionSet).forEach((function(r){return o.push(r)})):"FragmentSpread"===r.kind&&o.push(r)})),o}function buildQueryFromSelectionSet(r){return"query"===getMainDefinition(r).operation?r:visit(r,{OperationDefinition:{enter:function enter(r){return E(E({},r),{operation:"query"})}}})}function canUse_typeof(r){return(canUse_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 Re="function"===typeof WeakMap&&!("object"===("undefined"===typeof navigator?"undefined":canUse_typeof(navigator))&&"ReactNative"===navigator.product),Pe="function"===typeof WeakSet;function shouldInclude(r,o){var i=r.directives;return!i||!i.length||function getInclusionDirectives(r){var o=[];r&&r.length&&r.forEach((function(r){if(function isInclusionDirective(r){var o=r.name.value;return"skip"===o||"include"===o}(r)){var i=r.arguments,a=r.name.value;__DEV__?invariant_esm_invariant(i&&1===i.length,"Incorrect number of arguments for the @"+a+" directive."):invariant_esm_invariant(i&&1===i.length,44);var c=i[0];__DEV__?invariant_esm_invariant(c.name&&"if"===c.name.value,"Invalid argument for the @"+a+" directive."):invariant_esm_invariant(c.name&&"if"===c.name.value,45);var u=c.value;__DEV__?invariant_esm_invariant(u&&("Variable"===u.kind||"BooleanValue"===u.kind),"Argument for the @"+a+" directive must be a variable or a boolean value."):invariant_esm_invariant(u&&("Variable"===u.kind||"BooleanValue"===u.kind),46),o.push({directive:r,ifArgument:c})}}));return o}(i).every((function(r){var i=r.directive,a=r.ifArgument,c=!1;return"Variable"===a.value.kind?(c=o&&o[a.value.name.value],__DEV__?invariant_esm_invariant(void 0!==c,"Invalid variable referenced in @"+i.name.value+" directive."):invariant_esm_invariant(void 0!==c,43)):c=a.value.value,"skip"===i.name.value?!c:c}))}function hasDirectives(r,o){return function getDirectiveNames(r){var o=[];return visit(r,{Directive:function Directive(r){o.push(r.name.value)}}),o}(o).some((function(o){return r.indexOf(o)>-1}))}function hasClientExports(r){return r&&hasDirectives(["client"],r)&&hasDirectives(["export"],r)}var je=Object.prototype.hasOwnProperty;function mergeDeep(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return mergeDeepArray(r)}function mergeDeepArray(r){var o=r[0]||{},i=r.length;if(i>1)for(var a=new Fe,c=1;c<i;++c)o=a.merge(o,r[c]);return o}var Me=function defaultReconciler(r,o,i){return this.merge(r[i],o[i])},Fe=function(){function DeepMerger(r){void 0===r&&(r=Me),this.reconciler=r,this.isObject=isNonNullObject,this.pastCopies=new Set}return DeepMerger.prototype.merge=function(r,o){for(var i=this,a=[],c=2;c<arguments.length;c++)a[c-2]=arguments[c];return isNonNullObject(o)&&isNonNullObject(r)?(Object.keys(o).forEach((function(c){if(je.call(r,c)){var u=r[c];if(o[c]!==u){var l=i.reconciler.apply(i,__spreadArray([r,o,c],a));l!==u&&((r=i.shallowCopyForMerge(r))[c]=l)}}else(r=i.shallowCopyForMerge(r))[c]=o[c]})),r):o},DeepMerger.prototype.shallowCopyForMerge=function(r){return isNonNullObject(r)&&!this.pastCopies.has(r)&&(r=Array.isArray(r)?r.slice(0):E({__proto__:Object.getPrototypeOf(r)},r),this.pastCopies.add(r)),r},DeepMerger}();function maybe(r){try{return r()}catch(W){}}var qe=maybe((function(){return globalThis}))||maybe((function(){return window}))||maybe((function(){return self}))||maybe((function(){return __webpack_require__.g}))||maybe((function(){return Function("return this")()})),Ue="__",Ve=[Ue,Ue].join("DEV");var Be=function getDEV(){try{return Boolean(__DEV__)}catch(W){return Object.defineProperty(qe,Ve,{value:"production"!==maybe((function(){return"production"})),enumerable:!1,configurable:!0,writable:!0}),qe[Ve]}}();function process_maybe(r){try{return r()}catch(o){}}var He=process_maybe((function(){return globalThis}))||process_maybe((function(){return window}))||process_maybe((function(){return self}))||process_maybe((function(){return __webpack_require__.g}))||process_maybe((function(){return Function("return this")()})),Qe=!1;!function install(){!He||process_maybe((function(){return"production"}))||process_maybe((function(){return process}))||(Object.defineProperty(He,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),Qe=!0)}();var Ge=Object.entries||function(r){return Object.keys(r).map((function(o){return[o,r[o]]}))};function mapValue(r,o){for(var i=Object.create(null),a=0,c=Ge(r);a<c.length;a++){var u=c[a],l=u[0],p=u[1];i[l]=o(p,l)}return i}function toObjMap(r){if(null===Object.getPrototypeOf(r))return r;for(var o=Object.create(null),i=0,a=Ge(r);i<a.length;i++){var c=a[i],u=c[0],l=c[1];o[u]=l}return o}function keyValMap(r,o,i){return r.reduce((function(r,a){return r[o(a)]=i(a),r}),Object.create(null))}function identityFunc(r){return r}var We=48;function isDigit(r){return!isNaN(r)&&We<=r&&r<=57}function suggestionList(r,o){for(var i=Object.create(null),a=new ze(r),c=Math.floor(.4*r.length)+1,u=0;u<o.length;u++){var l=o[u],p=a.measure(l,c);void 0!==p&&(i[l]=p)}return Object.keys(i).sort((function(r,o){var a=i[r]-i[o];return 0!==a?a:function naturalCompare(r,o){for(var i=0,a=0;i<r.length&&a<o.length;){var c=r.charCodeAt(i),u=o.charCodeAt(a);if(isDigit(c)&&isDigit(u)){var l=0;do{++i,l=10*l+c-We,c=r.charCodeAt(i)}while(isDigit(c)&&l>0);var p=0;do{++a,p=10*p+u-We,u=o.charCodeAt(a)}while(isDigit(u)&&p>0);if(l<p)return-1;if(l>p)return 1}else{if(c<u)return-1;if(c>u)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.length<c.length){var u=a;a=c,c=u}var l=a.length,p=c.length;if(!(l-p>o)){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)}E<g&&(g=E),v[_]=E}if(g>o)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;a<o;++a)i[a]=r.charCodeAt(a);return i}function print(r){return visit(r,{leave:Ke})}var Ke={Name:function Name(r){return r.value},Variable:function Variable(r){return"$"+r.name},Document:function Document(r){return join(r.definitions,"\n\n")+"\n"},OperationDefinition:function OperationDefinition(r){var o=r.operation,i=r.name,a=printer_wrap("(",join(r.variableDefinitions,", "),")"),c=join(r.directives," "),u=r.selectionSet;return i||c||a||"query"!==o?join([o,join([i,a]),c,u]," "):u},VariableDefinition:function VariableDefinition(r){var o=r.variable,i=r.type,a=r.defaultValue,c=r.directives;return o+": "+i+printer_wrap(" = ",a)+printer_wrap(" ",join(c," "))},SelectionSet:function SelectionSet(r){return block(r.selections)},Field:function Field(r){var o=r.alias,i=r.name,a=r.arguments,c=r.directives,u=r.selectionSet,l=printer_wrap("",o,": ")+i,p=l+printer_wrap("(",join(a,", "),")");return p.length>80&&(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;i<o.length;i++){var a=o[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}function definition_createClass(r,o,i){return o&&definition_defineProperties(r.prototype,o),i&&definition_defineProperties(r,i),r}function isType(r){return isScalarType(r)||isObjectType(r)||isInterfaceType(r)||isUnionType(r)||isEnumType(r)||isInputObjectType(r)||isListType(r)||isNonNullType(r)}function isScalarType(r){return N(r,Ye)}function isObjectType(r){return N(r,Xe)}function isInterfaceType(r){return N(r,Je)}function isUnionType(r){return N(r,$e)}function isEnumType(r){return N(r,Ze)}function isInputObjectType(r){return N(r,et)}function isListType(r){return N(r,GraphQLList)}function isNonNullType(r){return N(r,GraphQLNonNull)}function GraphQLList(r){if(!(this instanceof GraphQLList))return new GraphQLList(r);this.ofType=function assertType(r){if(!isType(r))throw new Error("Expected ".concat(inspect_inspect(r)," to be a GraphQL type."));return r}(r)}function GraphQLNonNull(r){if(!(this instanceof GraphQLNonNull))return new GraphQLNonNull(r);this.ofType=function assertNullableType(r){if(!function isNullableType(r){return isType(r)&&!isNonNullType(r)}(r))throw new Error("Expected ".concat(inspect_inspect(r)," to be a GraphQL nullable type."));return r}(r)}function resolveThunk(r){return"function"===typeof r?r():r}function undefineIfEmpty(r){return r&&r.length>0?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("<undefined>")}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;y<p.length;++y){var v=p[y];if(v.has(u))return l.has(u)||(m&&__DEV__&&invariant_esm_invariant.warn("Inferring subtype "+o+" of supertype "+u),l.add(u)),!0;v.forEach(d),h&&y===p.length-1&&selectionSetMatchesResult(r.selectionSet,i,a)&&(h=!1,m=!0,this.fuzzySubtypes.forEach((function(r,i){var a=o.match(r);a&&a[0]===o&&d(i)})))}return!1},Policies.prototype.hasKeyArgs=function(r,o){var i=this.getFieldPolicy(r,o,!1);return!(!i||!i.keyFn)},Policies.prototype.getStoreFieldName=function(r){var o,i=r.typename,a=r.fieldName,c=this.getFieldPolicy(i,a,!1),u=c&&c.keyFn;if(u&&i)for(var l={typename:i,fieldName:a,field:r.field||null,variables:r.variables},p=argsFromFieldSpecifier(r);u;){var d=u(p,l);if(!Array.isArray(d)){o=d||a;break}u=keyArgsFnFromSpecifier(d)}return void 0===o&&(o=r.field?function storeKeyNameFromField(r,o){var i=null;r.directives&&(i={},r.directives.forEach((function(r){i[r.name.value]={},r.arguments&&r.arguments.forEach((function(a){var c=a.name,u=a.value;return valueToObjectRepresentation(i[r.name.value],c,u,o)}))})));var a=null;return r.arguments&&r.arguments.length&&(a={},r.arguments.forEach((function(r){var i=r.name,c=r.value;return valueToObjectRepresentation(a,i,c,o)}))),Ae(r.name.value,a,i)}(r.field,r.variables):Ae(a,argsFromFieldSpecifier(r))),!1===o?a:a===fieldNameFromStoreName(o)?o:a+":"+o},Policies.prototype.readField=function(r,o){var i=r.from;if(i&&(r.field||r.fieldName)){if(void 0===r.typename){var a=o.store.getFieldValue(i,"__typename");a&&(r.typename=a)}var c=this.getStoreFieldName(r),u=fieldNameFromStoreName(c),l=o.store.getFieldValue(i,c),p=this.getFieldPolicy(r.typename,u,!1),d=p&&p.read;if(d){var h=makeFieldFunctionOptions(this,i,r,o,o.store.getStorage(isReference(i)?i.__ref:i,c));return _t.withValue(this.cache,d,[l,h])}return l}},Policies.prototype.getMergeFunction=function(r,o,i){var a=this.getFieldPolicy(r,o,!1),c=a&&a.merge;return!c&&i&&(c=(a=this.getTypePolicy(i))&&a.merge),c},Policies.prototype.runMergeFunction=function(r,o,i,a,c){var u=i.field,l=i.typename,p=i.merge;return p===Tt?makeMergeObjectsFunction(a.store)(r,o):p===kt?o:(a.overwrite&&(r=void 0),p(r,o,makeFieldFunctionOptions(this,void 0,{typename:l,fieldName:u.name.value,field:u,variables:a.variables},a,c||Object.create(null))))},Policies}();function makeFieldFunctionOptions(r,o,i,a,c){var u=r.getStoreFieldName(i),l=fieldNameFromStoreName(u),p=i.variables||a.variables,d=a.store,h=d.toReference,m=d.canRead;return{args:argsFromFieldSpecifier(i),field:i.field||null,fieldName:l,storeFieldName:u,variables:p,isReference:isReference,toReference:h,storage:c,cache:r.cache,canRead:m,readField:function readField(i,c){var u;if("string"===typeof i)u={fieldName:i,from:arguments.length>1?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;o<i;o++)r+=arguments[o].length;var a=Array(r),c=0;for(o=0;o<i;o++)for(var u=arguments[o],l=0,p=u.length;l<p;l++,c++)a[c]=u[l];return a},xt=function(){function Log(r){var o=r.debug,i=void 0!==o&&o;this.debug=i,this.lines=[]}return Log.prototype.emit=function(r,o){if(r in console){var i=Log.prefix;console[r].apply(console,Log_spreadArrays([i],o))}},Log.prototype.tailLogs=function(){var r=this;this.lines.forEach((function(o){var i=o[0],a=o[1];return r.emit(i,a)}))},Log.prototype.getLogs=function(){return this.lines},Log.prototype.write=function(r,o){var i=Log.buffer;this.lines=Log_spreadArrays(this.lines.slice(1-i),[[r,o]]),(this.debug||"log"!==r)&&this.emit(r,o)},Log.prototype.info=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];this.write("log",r)},Log.prototype.warn=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];this.write("warn",r)},Log.prototype.error=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];this.write("error",r)},Log.buffer=30,Log.prefix="[apollo-cache-persist]",Log}(),It=function(){function Cache(r){var o=r.cache,i=r.serialize,a=void 0===i||i;this.cache=o,this.serialize=a}return Cache.prototype.extract=function(){var r=this.cache.extract();return this.serialize&&(r=JSON.stringify(r)),r},Cache.prototype.restore=function(r){this.serialize&&"string"===typeof r&&(r=JSON.parse(r)),null!=r&&this.cache.restore(r)},Cache}(),Storage_awaiter=function(r,o,i,a){return new(i||(i=Promise))((function(c,u){function fulfilled(r){try{step(a.next(r))}catch(o){u(o)}}function rejected(r){try{step(a.throw(r))}catch(o){u(o)}}function step(r){r.done?c(r.value):function adopt(r){return r instanceof i?r:new i((function(o){o(r)}))}(r.value).then(fulfilled,rejected)}step((a=a.apply(r,o||[])).next())}))},Storage_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]<c[3])){l.label=u[1];break}if(6===u[0]&&l.label<c[1]){l.label=c[1],c=u;break}if(c&&l.label<c[2]){l.label=c[2],l.ops.push(u);break}c[2]&&l.ops.pop(),l.trys.pop();continue}u=o.call(r,l)}catch(p){u=[6,p],a=0}finally{i=c=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,p])}}},Dt=function(){function Storage(r){var o=r.storage,i=r.key,a=void 0===i?"apollo-cache-persist":i;this.storage=o,this.key=a}return Storage.prototype.read=function(){return Storage_awaiter(this,void 0,void 0,(function(){return Storage_generator(this,(function(r){return[2,this.storage.getItem(this.key)]}))}))},Storage.prototype.write=function(r){return Storage_awaiter(this,void 0,void 0,(function(){return Storage_generator(this,(function(o){switch(o.label){case 0:return[4,this.storage.setItem(this.key,r)];case 1:return o.sent(),[2]}}))}))},Storage.prototype.purge=function(){return Storage_awaiter(this,void 0,void 0,(function(){return Storage_generator(this,(function(r){switch(r.label){case 0:return[4,this.storage.removeItem(this.key)];case 1:return r.sent(),[2]}}))}))},Storage.prototype.getSize=function(){return Storage_awaiter(this,void 0,void 0,(function(){var r;return Storage_generator(this,(function(o){switch(o.label){case 0:return[4,this.storage.getItem(this.key)];case 1:return null==(r=o.sent())?[2,0]:[2,"string"===typeof r?r.length:null]}}))}))},Storage}(),Persistor_awaiter=function(r,o,i,a){return new(i||(i=Promise))((function(c,u){function fulfilled(r){try{step(a.next(r))}catch(o){u(o)}}function rejected(r){try{step(a.throw(r))}catch(o){u(o)}}function step(r){r.done?c(r.value):function adopt(r){return r instanceof i?r:new i((function(o){o(r)}))}(r.value).then(fulfilled,rejected)}step((a=a.apply(r,o||[])).next())}))},Persistor_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]<c[3])){l.label=u[1];break}if(6===u[0]&&l.label<c[1]){l.label=c[1],c=u;break}if(c&&l.label<c[2]){l.label=c[2],l.ops.push(u);break}c[2]&&l.ops.pop(),l.trys.pop();continue}u=o.call(r,l)}catch(p){u=[6,p],a=0}finally{i=c=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,p])}}},Lt=function(){function Persistor(r,o){var i=r.log,a=r.cache,c=r.storage,u=o.maxSize,l=void 0===u?1048576:u,p=o.persistenceMapper;this.log=i,this.cache=a,this.storage=c,this.paused=!1,p&&(this.persistenceMapper=p),l&&(this.maxSize=l)}return Persistor.prototype.persist=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,6,,7]),r=this.cache.extract(),this.paused||!this.persistenceMapper?[3,2]:[4,this.persistenceMapper(r)];case 1:r=i.sent(),i.label=2;case 2:return null!=this.maxSize&&"string"===typeof r&&r.length>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<arguments.length;c++)a[c]=arguments[c];var u=i.apply(o,a);return r(),u},o.evict=function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];var u=a.apply(o,i);return r(),u},o.modify=function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var u=c.apply(o,i);return r(),u},function(){o.write=i,o.evict=a,o.modify=c}}},Rt=function(){function Trigger(r,o){var i=this,a=r.log,c=r.persistor;this.fire=function(){i.debounce?(null!=i.timeout&&clearTimeout(i.timeout),i.timeout=setTimeout(i.persist,i.debounce)):i.persist()},this.persist=function(){i.paused||i.persistor.persist()};var u=Trigger.defaultDebounce,l=o.cache,p=o.debounce,d=o.trigger,h=void 0===d?"write":d;if(h)switch(this.debounce=null!=p?p:u,this.persistor=c,this.paused=!1,h){case"write":this.uninstall=onCacheWrite({cache:l})(this.fire);break;case"background":p&&a.warn("Debounce is not recommended with `background` trigger"),this.debounce=p,this.uninstall=function(r){var o=r.log,i=r.cache;return function(r){return o.warn("Trigger option `background` not available on web; using `write` trigger"),onCacheWrite({cache:i})(r)}}({cache:l,log:a})(this.fire);break;default:if("function"!==typeof h)throw Error("Unrecognized trigger option: "+h);this.uninstall=h(this.fire)}}return Trigger.prototype.pause=function(){this.paused=!0},Trigger.prototype.resume=function(){this.paused=!1},Trigger.prototype.remove=function(){this.uninstall&&(this.uninstall(),this.uninstall=null,this.paused=!0)},Trigger.defaultDebounce=1e3,Trigger}(),Pt=function(){function CachePersistor(r){if(!r.cache)throw new Error("In order to persist your Apollo Cache, you need to pass in a cache. Please see https://www.apollographql.com/docs/react/basics/caching.html for our default InMemoryCache.");if(!r.storage)throw new Error("In order to persist your Apollo Cache, you need to pass in an underlying storage provider. Please see https://github.com/apollographql/apollo-cache-persist#storage-providers");var o=new xt(r),i=new It(r),a=new Dt(r),c=new Lt({log:o,cache:i,storage:a},r),u=new Rt({log:o,persistor:c},r);this.log=o,this.cache=i,this.storage=a,this.persistor=c,this.trigger=u}return CachePersistor.prototype.persist=function(){return this.persistor.persist()},CachePersistor.prototype.restore=function(){return this.persistor.restore()},CachePersistor.prototype.purge=function(){return this.persistor.purge()},CachePersistor.prototype.pause=function(){this.trigger.pause()},CachePersistor.prototype.resume=function(){this.trigger.resume()},CachePersistor.prototype.remove=function(){this.trigger.remove()},CachePersistor.prototype.getLogs=function(r){if(void 0===r&&(r=!1),!r)return this.log.getLogs();this.log.tailLogs()},CachePersistor.prototype.getSize=function(){return this.storage.getSize()},CachePersistor}(),jt=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 __)}}(),Mt=function(r){function SynchronousCachePersistor(o){var i=r.call(this,o)||this;return i.storage=new qt(o),i.persistor=new Ft({log:i.log,cache:i.cache,storage:i.storage},o),i}return jt(SynchronousCachePersistor,r),SynchronousCachePersistor.prototype.restoreSync=function(){this.persistor.restoreSync()},SynchronousCachePersistor}(Pt),Ft=function(r){function SynchronousPersistor(o,i){var a=o.log,c=o.cache,u=o.storage;return r.call(this,{log:a,cache:c,storage:u},i)||this}return jt(SynchronousPersistor,r),SynchronousPersistor.prototype.restoreSync=function(){this.cache.restore(this.storage.readSync())},SynchronousPersistor}(Lt),qt=function(r){function SynchronousStorage(o){return r.call(this,o)||this}return jt(SynchronousStorage,r),SynchronousStorage.prototype.readSync=function(){return this.storage.getItem(this.key)},SynchronousStorage}(Dt),Ut=(function(){function AsyncStorageWrapper(r){this.storage=r}AsyncStorageWrapper.prototype.getItem=function(r){return this.storage.getItem(r)},AsyncStorageWrapper.prototype.removeItem=function(r){return this.storage.removeItem(r)},AsyncStorageWrapper.prototype.setItem=function(r,o){return this.storage.setItem(r,o)}}(),function(){function IonicStorageWrapper(r){this.storage=r}IonicStorageWrapper.prototype.getItem=function(r){return this.storage.get(r)},IonicStorageWrapper.prototype.removeItem=function(r){return this.storage.remove(r)},IonicStorageWrapper.prototype.setItem=function(r,o){return this.storage.set(r,o)}}(),function(){function LocalForageWrapper(r){this.storage=r}LocalForageWrapper.prototype.getItem=function(r){return this.storage.getItem(r)},LocalForageWrapper.prototype.removeItem=function(r){return this.storage.removeItem(r)},LocalForageWrapper.prototype.setItem=function(r,o){var i=this;return new Promise((function(a,c){i.storage.setItem(r,o).then((function(){return a()})).catch((function(){return c()}))}))}}(),function(){function LocalStorageWrapper(r){this.storage=r}return LocalStorageWrapper.prototype.getItem=function(r){return this.storage.getItem(r)},LocalStorageWrapper.prototype.removeItem=function(r){return this.storage.removeItem(r)},LocalStorageWrapper.prototype.setItem=function(r,o){return this.storage.setItem(r,o)},LocalStorageWrapper}()),Vt=(function(){function MMKVStorageWrapper(r){this.storage=r}MMKVStorageWrapper.prototype.getItem=function(r){return this.storage.getItem(r)},MMKVStorageWrapper.prototype.removeItem=function(r){var o=this;return new Promise((function(i,a){o.storage.removeItem(r).then((function(){return i()})).catch((function(){return a()}))}))},MMKVStorageWrapper.prototype.setItem=function(r,o){var i=this;return new Promise((function(a,c){i.storage.setItem(r,o).then((function(){return a()})).catch((function(){return c()}))}))}}(),function(){function SessionStorageWrapper(r){this.storage=r}SessionStorageWrapper.prototype.getItem=function(r){return this.storage.getItem(r)},SessionStorageWrapper.prototype.removeItem=function(r){return this.storage.removeItem(r)},SessionStorageWrapper.prototype.setItem=function(r,o){return this.storage.setItem(r,o)}}(),new Nt);function module_typeof(r){return(module_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 _createForOfIteratorHelperLoose(r,o){var i="undefined"!==typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(i)return(i=i.call(r)).next.bind(i);if(Array.isArray(r)||(i=function module_unsupportedIterableToArray(r,o){if(!r)return;if("string"===typeof r)return module_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 module_arrayLikeToArray(r,o)}(r))||o&&r&&"number"===typeof r.length){i&&(r=i);var a=0;return function(){return a>=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);i<o;i++)a[i]=r[i];return a}function module_defineProperties(r,o){for(var i=0;i<o.length;i++){var a=o[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}function module_createClass(r,o,i){return o&&module_defineProperties(r.prototype,o),i&&module_defineProperties(r,i),r}!function persistCacheSync(r){new Mt(r).restoreSync()}({cache:Vt,storage:new Ut(window.localStorage),key:"web-persist",maxSize:1048576});var Bt=function hasSymbols(){return"function"===typeof Symbol},Ht=function hasSymbol(r){return Bt()&&Boolean(Symbol[r])},Qt=function getSymbol(r){return Ht(r)?Symbol[r]:"@@"+r};Bt()&&!Ht("observable")&&(Symbol.observable=Symbol("observable"));var Gt=Qt("iterator"),Wt=Qt("observable"),zt=Qt("species");function getMethod(r,o){var i=r[o];if(null!=i){if("function"!==typeof i)throw new TypeError(i+" is not a function");return i}}function getSpecies(r){var o=r.constructor;return void 0!==o&&null===(o=o[zt])&&(o=void 0),void 0!==o?o:Xt}function isObservable(r){return r instanceof Xt}function hostReportError(r){hostReportError.log?hostReportError.log(r):setTimeout((function(){throw r}))}function enqueue(r){Promise.resolve().then((function(){try{r()}catch(o){hostReportError(o)}}))}function cleanupSubscription(r){var o=r._cleanup;if(void 0!==o&&(r._cleanup=void 0,o))try{if("function"===typeof o)o();else{var i=getMethod(o,"unsubscribe");i&&i.call(o)}}catch(a){hostReportError(a)}}function closeSubscription(r){r._observer=void 0,r._queue=void 0,r._state="closed"}function notifySubscription(r,o,i){r._state="running";var a=r._observer;try{var c=getMethod(a,o);switch(o){case"next":c&&c.call(a,i);break;case"error":if(closeSubscription(r),!c)throw i;c.call(a,i);break;case"complete":closeSubscription(r),c&&c.call(a)}}catch(u){hostReportError(u)}"closed"===r._state?cleanupSubscription(r):"running"===r._state&&(r._state="ready")}function onNotify(r,o,i){if("closed"!==r._state){if("buffering"!==r._state)return"ready"!==r._state?(r._state="buffering",r._queue=[{type:o,value:i}],void enqueue((function(){return function flushSubscription(r){var o=r._queue;if(o){r._queue=void 0,r._state="ready";for(var i=0;i<o.length&&(notifySubscription(r,o[i].type,o[i].value),"closed"!==r._state);++i);}}(r)}))):void notifySubscription(r,o,i);r._queue.push({type:o,value:i})}}var Kt=function(){function Subscription(r,o){this._cleanup=void 0,this._observer=r,this._queue=void 0,this._state="initializing";var i=new Yt(this);try{this._cleanup=o.call(void 0,i)}catch(a){i.error(a)}"initializing"===this._state&&(this._state="ready")}return Subscription.prototype.unsubscribe=function unsubscribe(){"closed"!==this._state&&(closeSubscription(this),cleanupSubscription(this))},module_createClass(Subscription,[{key:"closed",get:function get(){return"closed"===this._state}}]),Subscription}(),Yt=function(){function SubscriptionObserver(r){this._subscription=r}var r=SubscriptionObserver.prototype;return r.next=function next(r){onNotify(this._subscription,"next",r)},r.error=function error(r){onNotify(this._subscription,"error",r)},r.complete=function complete(){onNotify(this._subscription,"complete")},module_createClass(SubscriptionObserver,[{key:"closed",get:function get(){return"closed"===this._subscription._state}}]),SubscriptionObserver}(),Xt=function(){function Observable(r){if(!(this instanceof Observable))throw new TypeError("Observable cannot be called as a function");if("function"!==typeof r)throw new TypeError("Observable initializer must be a function");this._subscriber=r}var r=Observable.prototype;return r.subscribe=function subscribe(r){return"object"===module_typeof(r)&&null!==r||(r={next:r,error:arguments[1],complete:arguments[2]}),new Kt(r,this._subscriber)},r.forEach=function forEach(r){var o=this;return new Promise((function(i,a){if("function"===typeof r)var c=o.subscribe({next:function next(o){try{r(o,done)}catch(i){a(i),c.unsubscribe()}},error:a,complete:i});else a(new TypeError(r+" is not a function"));function done(){c.unsubscribe(),i()}}))},r.map=function map(r){var o=this;if("function"!==typeof r)throw new TypeError(r+" is not a function");return new(getSpecies(this))((function(i){return o.subscribe({next:function next(o){try{o=r(o)}catch(a){return i.error(a)}i.next(o)},error:function error(r){i.error(r)},complete:function complete(){i.complete()}})}))},r.filter=function filter(r){var o=this;if("function"!==typeof r)throw new TypeError(r+" is not a function");return new(getSpecies(this))((function(i){return o.subscribe({next:function next(o){try{if(!r(o))return}catch(a){return i.error(a)}i.next(o)},error:function error(r){i.error(r)},complete:function complete(){i.complete()}})}))},r.reduce=function reduce(r){var o=this;if("function"!==typeof r)throw new TypeError(r+" is not a function");var i=getSpecies(this),a=arguments.length>1,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<o;a++)i[a]=arguments[a];var c=getSpecies(this);return new c((function(o){var a,u=0;return function startNext(r){a=r.subscribe({next:function next(r){o.next(r)},error:function error(r){o.error(r)},complete:function complete(){u===i.length?(a=void 0,o.complete()):startNext(c.from(i[u++]))}})}(r),function(){a&&(a.unsubscribe(),a=void 0)}}))},r.flatMap=function flatMap(r){var o=this;if("function"!==typeof r)throw new TypeError(r+" is not a function");var i=getSpecies(this);return new i((function(a){var c=[],u=o.subscribe({next:function next(o){if(r)try{o=r(o)}catch(l){return a.error(l)}var u=i.from(o).subscribe({next:function next(r){a.next(r)},error:function error(r){a.error(r)},complete:function complete(){var r=c.indexOf(u);r>=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<r.length;++i)if(o.next(r[i]),o.closed)return;o.complete()}}))}));throw new TypeError(r+" is not observable")},Observable.of=function of(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a="function"===typeof this?this:Observable;return new a((function(r){enqueue((function(){if(!r.closed){for(var i=0;i<o.length;++i)if(r.next(o[i]),r.closed)return;r.complete()}}))}))},module_createClass(Observable,null,[{key:zt,get:function get(){return this}}]),Observable}();function passthrough(r,o){return o?o(r):Xt.of()}function toLink(r){return"function"===typeof r?new $t(r):r}function isTerminating(r){return r.request.length<=1}Bt()&&Object.defineProperty(Xt,Symbol("extensions"),{value:{symbol:Wt,hostReportError:hostReportError},configurable:!0});var Jt=function(r){function LinkError(o,i){var a=r.call(this,o)||this;return a.link=i,a}return __extends(LinkError,r),LinkError}(Error),$t=function(){function ApolloLink(r){r&&(this.request=r)}return ApolloLink.empty=function(){return new ApolloLink((function(){return Xt.of()}))},ApolloLink.from=function(r){return 0===r.length?ApolloLink.empty():r.map(toLink).reduce((function(r,o){return r.concat(o)}))},ApolloLink.split=function(r,o,i){var a=toLink(o),c=toLink(i||new ApolloLink(passthrough));return isTerminating(a)&&isTerminating(c)?new ApolloLink((function(o){return r(o)?a.request(o)||Xt.of():c.request(o)||Xt.of()})):new ApolloLink((function(o,i){return r(o)?a.request(o,i)||Xt.of():c.request(o,i)||Xt.of()}))},ApolloLink.execute=function(r,o){return r.request(function createOperation(r,o){var i=E({},r);return Object.defineProperty(o,"setContext",{enumerable:!1,value:function setContext(r){i=E(E({},i),"function"===typeof r?r(i):r)}}),Object.defineProperty(o,"getContext",{enumerable:!1,value:function getContext(){return E({},i)}}),o}(o.context,function transformOperation(r){var o={variables:r.variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query};return o.operationName||(o.operationName="string"!==typeof o.query?getOperationName(o.query)||void 0:""),o}(function validateOperation(r){for(var o=["query","operationName","variables","extensions","context"],i=0,a=Object.keys(r);i<a.length;i++){var c=a[i];if(o.indexOf(c)<0)throw __DEV__?new Ee("illegal argument: "+c):new Ee(29)}return r}(o))))||Xt.of()},ApolloLink.concat=function(r,o){var i=toLink(r);if(isTerminating(i))return __DEV__&&invariant_esm_invariant.warn(new Jt("You are calling concat on a terminating link, which will have no effect",i)),i;var a=toLink(o);return isTerminating(a)?new ApolloLink((function(r){return i.request(r,(function(r){return a.request(r)||Xt.of()}))||Xt.of()})):new ApolloLink((function(r,o){return i.request(r,(function(r){return a.request(r,o)||Xt.of()}))||Xt.of()}))},ApolloLink.prototype.split=function(r,o,i){return this.concat(ApolloLink.split(r,o,i||new ApolloLink(passthrough)))},ApolloLink.prototype.concat=function(r){return ApolloLink.concat(this,r)},ApolloLink.prototype.request=function(r,o){throw __DEV__?new Ee("request is not implemented"):new Ee(23)},ApolloLink.prototype.onError=function(r,o){if(o&&o.error)return o.error(r),!1;throw r},ApolloLink.prototype.setOnError=function(r){return this.onError=r,this},ApolloLink}(),Zt=$t.from,en=function serializeFetchParameter(r,o){var i;try{i=JSON.stringify(r)}catch(c){var a=__DEV__?new Ee("Network request failed. "+o+" is not serializable: "+c.message):new Ee(26);throw a.parseError=c,a}return i},tn=function throwServerError(r,o,i){var a=new Error(i);throw a.name="ServerError",a.response=r,a.statusCode=r.status,a.result=o,a},nn=Object.prototype.hasOwnProperty;var rn={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}};function headersToLowerCase(r){if(r){var o=Object.create(null);return Object.keys(Object(r)).forEach((function(i){o[i.toLowerCase()]=r[i]})),o}return r}function fromError(r){return new Xt((function(o){o.error(r)}))}var an=function createHttpLink(r){void 0===r&&(r={});var o=r.uri,i=void 0===o?"/graphql":o,a=r.fetch,c=r.includeExtensions,u=r.useGETForQueries,l=r.includeUnusedVariables,p=void 0!==l&&l,d=__rest(r,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);!function checkFetcher(r){if(!r&&"undefined"===typeof fetch)throw __DEV__?new Ee("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n "):new Ee(25)}(a),a||(a=fetch);var h={http:{includeExtensions:c},options:d.fetchOptions,credentials:d.credentials,headers:d.headers};return new $t((function(r){var o=function selectURI(r,o){return r.getContext().uri||("function"===typeof o?o(r):o||"/graphql")}(r,i),c=r.getContext(),l={};if(c.clientAwareness){var d=c.clientAwareness,m=d.name,y=d.version;m&&(l["apollographql-client-name"]=m),y&&(l["apollographql-client-version"]=y)}var v,g=E(E({},l),c.headers),_={http:c.http,options:c.fetchOptions,credentials:c.credentials,headers:g},b=function selectHttpOptionsAndBody(r,o){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var c=E(E({},o.options),{headers:o.headers,credentials:o.credentials}),u=o.http||{};i.forEach((function(r){c=E(E(E({},c),r.options),{headers:E(E({},c.headers),headersToLowerCase(r.headers))}),r.credentials&&(c.credentials=r.credentials),u=E(E({},u),r.http)}));var l=r.operationName,p=r.extensions,d=r.variables,h=r.query,m={operationName:l,variables:d};return u.includeExtensions&&(m.extensions=p),u.includeQuery&&(m.query=print(h)),{options:c,body:m}}(r,rn,h,_),w=b.options,S=b.body;if(S.variables&&!p){var O=new Set(Object.keys(S.variables));visit(r.query,{Variable:function Variable(r,o,i){i&&"VariableDefinition"!==i.kind&&O.delete(r.name.value)}}),O.size&&(S.variables=E({},S.variables),O.forEach((function(r){delete S.variables[r]})))}if(!w.signal){var T=function createSignalIfSupported(){if("undefined"===typeof AbortController)return{controller:!1,signal:!1};var r=new AbortController;return{controller:r,signal:r.signal}}(),k=T.controller,A=T.signal;(v=k)&&(w.signal=A)}if(u&&!r.query.definitions.some((function definitionIsMutation(r){return"OperationDefinition"===r.kind&&"mutation"===r.operation}))&&(w.method="GET"),"GET"===w.method){var C=function rewriteURIForGET(r,o){var i=[],a=function addQueryParam(r,o){i.push(r+"="+encodeURIComponent(o))};if("query"in o&&a("query",o.query),o.operationName&&a("operationName",o.operationName),o.variables){var c=void 0;try{c=en(o.variables,"Variables map")}catch(x){return{parseError:x}}a("variables",c)}if(o.extensions){var u=void 0;try{u=en(o.extensions,"Extensions map")}catch(x){return{parseError:x}}a("extensions",u)}var l="",p=r,d=r.indexOf("#");-1!==d&&(l=r.substr(d),p=r.substr(0,d));var h=-1===p.indexOf("?")?"?":"&";return{newURI:p+h+i.join("&")+l}}(o,S),N=C.newURI,x=C.parseError;if(x)return fromError(x);o=N}else try{w.body=en(S,"Payload")}catch(x){return fromError(x)}return new Xt((function(i){return a(o,w).then((function(o){return r.setContext({response:o}),o})).then(function parseAndCheckHttpResponse(r){return function(o){return o.text().then((function(r){try{return JSON.parse(r)}catch(a){var i=a;throw i.name="ServerParseError",i.response=o,i.statusCode=o.status,i.bodyText=r,i}})).then((function(i){return o.status>=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;o<arguments.length;o++)r[o]=arguments[o];var i=Object.create(null);return r.forEach((function(r){r&&Object.keys(r).forEach((function(o){var a=r[o];void 0!==a&&(i[o]=a)}))})),i}function asyncMap(r,o,i){return new Xt((function(a){var c=a.next,u=a.error,l=a.complete,p=0,d=!1,h={then:function then(r){return new Promise((function(o){return o(r())}))}};function makeCallback(r,o){return r?function(o){++p;var i=function both(){return r(o)};h=h.then(i,i).then((function(r){--p,c&&c.call(a,r),d&&m.complete()}),(function(r){throw--p,r})).catch((function(r){u&&u.call(a,r)}))}:function(r){return o&&o.call(a,r)}}var m={next:makeCallback(o,c),error:makeCallback(i,u),complete:function complete(){d=!0,p||l&&l.call(a)}},y=r.subscribe(m);return function(){return y.unsubscribe()}}))}function graphQLResultHasError(r){return r.errors&&r.errors.length>0||!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<o.length;i++){var a=o[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}function page_setPrototypeOf(r,o){return(page_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(r,o){return r.__proto__=o,r})(r,o)}function page_createSuper(r){var o=function page_isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(r){return!1}}();return function _createSuperInternal(){var i,a=page_getPrototypeOf(r);if(o){var c=page_getPrototypeOf(this).constructor;i=Reflect.construct(a,arguments,c)}else i=a.apply(this,arguments);return page_possibleConstructorReturn(this,i)}}function page_possibleConstructorReturn(r,o){return!o||"object"!==page_typeof(o)&&"function"!==typeof o?page_assertThisInitialized(r):o}function page_assertThisInitialized(r){if(void 0===r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function page_getPrototypeOf(r){return(page_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}function page_defineProperty(r,o,i){return o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,r}var An=document,Cn=document.body,Nn=function(r){!function page_inherits(r,o){if("function"!==typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(o&&o.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),o&&page_setPrototypeOf(r,o)}(Page,r);var o=page_createSuper(Page);function Page(r){var i;!function page_classCallCheck(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}(this,Page),page_defineProperty(page_assertThisInitialized(i=o.call(this,r)),"state",{type:[],shown:!1,Title:"Loading ...",loading:!0,error:!1,current:null,ID:null,URLSegment:null,ClassName:"Page",CSSClass:null,Summary:null,Link:null,URL:null,HTML:null,Elements:[],page:null}),page_defineProperty(page_assertThisInitialized(i),"isOnline",(function(){return Cn.classList.contains("is-online")})),page_defineProperty(page_assertThisInitialized(i),"load",(function(r){var o=page_assertThisInitialized(i);return new Promise((function(i,a){var c=gql('query Pages {\n readPages(Link: "'.concat(r,'") {\n edges {\n node {\n __typename\n _id\n ID\n Title\n ClassName\n CSSClass\n Summary\n Link\n URLSegment\n HTML\n }\n }\n }\n }'));if(o.isOnline())o.state.loading||o.setState(o.empty_state),kn.query({query:c,fetchPolicy:o.isOnline()?"no-cache":"cache-first"}).then((function(r){var u=r.data;kn.writeQuery({query:c,data:u}),o.processResponse(u)?(console.log("".concat(o.name,": got the server response")),i(u)):(console.log("".concat(o.name,": not found")),a({status:404}))})).catch((function(r){a({status:500,error:r})}));else{var u=kn.readQuery({query:c});u&&o.processResponse(u)?(console.log("".concat(o.name,": Offline cached response")),i(u)):(console.log("".concat(o.name,": No offline response")),o.setState(Object.assign(o.empty_state,{Title:"Offline",CSSClass:"graphql__status-523",Summary:"You're Offline. The page is not available now.",loading:!1})),a({status:523}))}}))})),page_defineProperty(page_assertThisInitialized(i),"processResponse",(function(r){var o=page_assertThisInitialized(i);if(!r.readPages.edges.length)return console.log("".concat(o.name,": not found")),o.setState(Object.assign(o.empty_state,{Title:"Not Found",CSSClass:"graphql__status-404",Summary:"The page is not found.",loading:!1})),!1;var a=r.readPages.edges[0].node;return o.setState({ID:a.ID,Title:a.Title,ClassName:a.ClassName,URLSegment:a.URLSegment,CSSClass:a.CSSClass,Summary:a.Summary,Link:a.Link,HTML:a.HTML,Elements:[],loading:!1}),!0})),page_defineProperty(page_assertThisInitialized(i),"getHtml",(function(r){return{__html:function decodeHtmlEntity(r){return(new DOMParser).parseFromString(r,"text/html").documentElement.textContent}(r)}}));var a=page_assertThisInitialized(i);return a.name=a.constructor.name,a.empty_state=a.state,console.log("".concat(a.name,": init")),i}return function page_createClass(r,o,i){return o&&page_defineProperties(r.prototype,o),i&&page_defineProperties(r,i),r}(Page,[{key:"componentDidUpdate",value:function componentDidUpdate(){this.state.Title&&(document.title=this.state.Title)}},{key:"render",value:function render(){var r=this,o=(r.name,"elemental-area graphql__page page-".concat(r.state.CSSClass," url-").concat(r.state.URLSegment)),i="";if(r.state.HTML?(console.log("".concat(r.name,": HTML only")),i=r.state.HTML):r.state.Elements.length?(console.log("".concat(r.name,": render")),r.state.Elements.map((function(r){i+=r.node.Render}))):r.state.Summary&&r.state.Summary.length&&(console.log("".concat(r.name,": summary only")),i='<div class="summary">'.concat(r.state.Summary,"</div>")),r.state.loading){An.getElementById("PageLoading");i='<div class="loading">Loading ...</div>'}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<O.length;x++){var I=O[x],D=getBasePlacement(I),L=getVariation(I)===Mn,R=[In,Dn].indexOf(D)>=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;i<r;i++)o[i]=arguments[i];return!o.some((function(r){return!(r&&"function"===typeof r.getBoundingClientRect)}))}function popperGenerator(r){void 0===r&&(r={});var o=r,i=o.defaultModifiers,a=void 0===i?[]:i,c=o.defaultOptions,u=void 0===c?gr:c;return function createPopper(r,o,i){void 0===i&&(i=u);var c,l,p={placement:"bottom",orderedModifiers:[],options:Object.assign({},gr,u),modifiersData:{},elements:{reference:r,popper:o},attributes:{},styles:{}},d=[],h=!1,m={state:p,setOptions:function setOptions(i){cleanupModifierEffects(),p.options=Object.assign({},u,p.options,i),p.scrollParents={reference:isElement(r)?listScrollParents(r):r.contextElement?listScrollParents(r.contextElement):[],popper:listScrollParents(o)};var c=function orderModifiers(r){var o=order(r);return er.reduce((function(r,i){return r.concat(o.filter((function(r){return r.phase===i})))}),[])}(function mergeByName(r){var o=r.reduce((function(r,o){var i=r[o.name];return r[o.name]=i?Object.assign({},i,o,{options:Object.assign({},i.options,o.options),data:Object.assign({},i.data,o.data)}):o,r}),{});return Object.keys(o).map((function(r){return o[r]}))}([].concat(a,p.options.modifiers)));return p.orderedModifiers=c.filter((function(r){return r.enabled})),function runModifierEffects(){p.orderedModifiers.forEach((function(r){var o=r.name,i=r.options,a=void 0===i?{}:i,c=r.effect;if("function"===typeof c){var u=c({state:p,name:o,instance:m,options:a}),l=function noopFn(){};d.push(u||l)}}))}(),m.update()},forceUpdate:function forceUpdate(){if(!h){var r=p.elements,o=r.reference,i=r.popper;if(areValidElements(o,i)){p.rects={reference:getCompositeRect(o,getOffsetParent(i),"fixed"===p.options.strategy),popper:getLayoutRect(i)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach((function(r){return p.modifiersData[r.name]=Object.assign({},r.data)}));for(var a=0;a<p.orderedModifiers.length;a++)if(!0!==p.reset){var c=p.orderedModifiers[a],u=c.fn,l=c.options,d=void 0===l?{}:l,y=c.name;"function"===typeof u&&(p=u({state:p,options:d,name:y,instance:m})||p)}else p.reset=!1,a=-1}}},update:(c=function(){return new Promise((function(r){m.forceUpdate(),r(p)}))},function(){return l||(l=new Promise((function(r){Promise.resolve().then((function(){l=void 0,r(c())}))}))),l}),destroy:function destroy(){cleanupModifierEffects(),h=!0}};if(!areValidElements(r,o))return m;function cleanupModifierEffects(){d.forEach((function(r){return r()})),d=[]}return m.setOptions(i).then((function(r){!h&&i.onFirstUpdate&&i.onFirstUpdate(r)})),m}}var _r,br=popperGenerator(),Er=popperGenerator({defaultModifiers:[lr,yr,cr,tr,mr,dr,vr,ar,hr]}),wr=popperGenerator({defaultModifiers:[lr,yr,cr,tr]});function _get(r,o,i){return(_get="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function _get(r,o,i){var a=function _superPropBase(r,o){for(;!Object.prototype.hasOwnProperty.call(r,o)&&null!==(r=bootstrap_esm_getPrototypeOf(r)););return r}(r,o);if(a){var c=Object.getOwnPropertyDescriptor(a,o);return c.get?c.get.call(i):c.value}})(r,o,i||r)}function ownKeys(r,o){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);o&&(a=a.filter((function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable}))),i.push.apply(i,a)}return i}function _objectSpread(r){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?ownKeys(Object(i),!0).forEach((function(o){bootstrap_esm_defineProperty(r,o,i[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach((function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(i,o))}))}return r}function bootstrap_esm_defineProperty(r,o,i){return o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,r}function bootstrap_esm_toConsumableArray(r){return function bootstrap_esm_arrayWithoutHoles(r){if(Array.isArray(r))return bootstrap_esm_arrayLikeToArray(r)}(r)||function bootstrap_esm_iterableToArray(r){if("undefined"!==typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||bootstrap_esm_unsupportedIterableToArray(r)||function bootstrap_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 bootstrap_esm_inherits(r,o){if("function"!==typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(o&&o.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),o&&bootstrap_esm_setPrototypeOf(r,o)}function bootstrap_esm_setPrototypeOf(r,o){return(bootstrap_esm_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(r,o){return r.__proto__=o,r})(r,o)}function bootstrap_esm_createSuper(r){var o=function bootstrap_esm_isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(r){return!1}}();return function _createSuperInternal(){var i,a=bootstrap_esm_getPrototypeOf(r);if(o){var c=bootstrap_esm_getPrototypeOf(this).constructor;i=Reflect.construct(a,arguments,c)}else i=a.apply(this,arguments);return bootstrap_esm_possibleConstructorReturn(this,i)}}function bootstrap_esm_possibleConstructorReturn(r,o){return!o||"object"!==bootstrap_esm_typeof(o)&&"function"!==typeof o?function bootstrap_esm_assertThisInitialized(r){if(void 0===r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(r):o}function bootstrap_esm_getPrototypeOf(r){return(bootstrap_esm_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}function bootstrap_esm_classCallCheck(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}function bootstrap_esm_defineProperties(r,o){for(var i=0;i<o.length;i++){var a=o[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}function bootstrap_esm_createClass(r,o,i){return o&&bootstrap_esm_defineProperties(r.prototype,o),i&&bootstrap_esm_defineProperties(r,i),r}function _slicedToArray(r,o){return function _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)||bootstrap_esm_unsupportedIterableToArray(r,o)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bootstrap_esm_unsupportedIterableToArray(r,o){if(r){if("string"===typeof r)return bootstrap_esm_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)?bootstrap_esm_arrayLikeToArray(r,o):void 0}}function bootstrap_esm_arrayLikeToArray(r,o){(null==o||o>r.length)&&(o=r.length);for(var i=0,a=new Array(o);i<o;i++)a[i]=r[i];return a}function bootstrap_esm_typeof(r){return(bootstrap_esm_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 Sr="transitionend",Or=function getSelector(r){var o=r.getAttribute("data-bs-target");if(!o||"#"===o){var i=r.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i="#".concat(i.split("#")[1])),o=i&&"#"!==i?i.trim():null}return o},Tr=function getSelectorFromElement(r){var o=Or(r);return o&&document.querySelector(o)?o:null},kr=function getElementFromSelector(r){var o=Or(r);return o?document.querySelector(o):null},Ar=function getTransitionDurationFromElement(r){if(!r)return 0;var o=window.getComputedStyle(r),i=o.transitionDuration,a=o.transitionDelay,c=Number.parseFloat(i),u=Number.parseFloat(a);return c||u?(i=i.split(",")[0],a=a.split(",")[0],1e3*(Number.parseFloat(i)+Number.parseFloat(a))):0},Cr=function triggerTransitionEnd(r){r.dispatchEvent(new Event(Sr))},Nr=function isElement(r){return!(!r||"object"!==bootstrap_esm_typeof(r))&&("undefined"!==typeof r.jquery&&(r=r[0]),"undefined"!==typeof r.nodeType)},xr=function getElement(r){return Nr(r)?r.jquery?r[0]:r:"string"===typeof r&&r.length>0?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;c<u;c++){var l=r[a[c]];if(l.originalHandler===o&&l.delegationSelector===i)return l}return null}function normalizeParams(r,o,i){var a="string"===typeof o,c=a?i:o,u=getTypeEvent(r);return Jr.has(u)||(u=r),[a,c,u]}function addHandler(r,o,i,a,c){if("string"===typeof o&&r){if(i||(i=a,a=null),Xr.test(o)){var u=function wrapFn(r){return function(o){if(!o.relatedTarget||o.relatedTarget!==o.delegateTarget&&!o.delegateTarget.contains(o.relatedTarget))return r.call(this,o)}};a?a=u(a):i=u(i)}var l=_slicedToArray(normalizeParams(o,i,a),3),p=l[0],d=l[1],h=l[2],m=getEvent(r),y=m[h]||(m[h]={}),v=findHandler(y,d,p?i:null);if(v)v.oneOff=v.oneOff&&c;else{var g=getUidEvent(d,o.replace(Qr,"")),_=p?function bootstrapDelegationHandler(r,o,i){return function handler(a){for(var c=r.querySelectorAll(o),u=a.target;u&&u!==this;u=u.parentNode)for(var l=c.length;l--;)if(c[l]===u)return a.delegateTarget=u,handler.oneOff&&$r.off(r,a.type,o,i),i.apply(u,[a]);return null}}(r,i,a):function bootstrapHandler(r,o){return function handler(i){return i.delegateTarget=r,handler.oneOff&&$r.off(r,i.type,o),o.apply(r,[i])}}(r,i);_.delegationSelector=p?i:null,_.originalHandler=d,_.oneOff=c,_.uidEvent=g,y[g]=_,r.addEventListener(h,_,p)}}}function removeHandler(r,o,i,a,c){var u=findHandler(o[i],a,c);u&&(r.removeEventListener(i,u,Boolean(c)),delete o[i][u.uidEvent])}function getTypeEvent(r){return r=r.replace(Gr,""),Yr[r]||r}var $r={on:function on(r,o,i,a){addHandler(r,o,i,a,!1)},one:function one(r,o,i,a){addHandler(r,o,i,a,!0)},off:function off(r,o,i,a){if("string"===typeof o&&r){var c=_slicedToArray(normalizeParams(o,i,a),3),u=c[0],l=c[1],p=c[2],d=p!==o,h=getEvent(r),m=o.startsWith(".");if("undefined"===typeof l){m&&Object.keys(h).forEach((function(i){!function removeNamespacedHandlers(r,o,i,a){var c=o[i]||{};Object.keys(c).forEach((function(u){if(u.includes(a)){var l=c[u];removeHandler(r,o,i,l.originalHandler,l.delegationSelector)}}))}(r,h,i,o.slice(1))}));var y=h[p]||{};Object.keys(y).forEach((function(i){var a=i.replace(Wr,"");if(!d||o.includes(a)){var c=y[i];removeHandler(r,h,p,c.originalHandler,c.delegationSelector)}}))}else{if(!h||!h[p])return;removeHandler(r,h,p,l,u?i:null)}}},trigger:function trigger(r,o,i){if("string"!==typeof o||!r)return null;var a,$=Mr(),c=getTypeEvent(o),u=o!==c,l=Jr.has(c),p=!0,d=!0,h=!1,m=null;return u&&$&&(a=$.Event(o,i),$(r).trigger(a),p=!a.isPropagationStopped(),d=!a.isImmediatePropagationStopped(),h=a.isDefaultPrevented()),l?(m=document.createEvent("HTMLEvents")).initEvent(c,p,!0):m=new CustomEvent(o,{bubbles:p,cancelable:!0}),"undefined"!==typeof i&&Object.keys(i).forEach((function(r){Object.defineProperty(m,r,{get:function get(){return i[r]}})})),h&&m.preventDefault(),d&&r.dispatchEvent(m),m.defaultPrevented&&"undefined"!==typeof a&&a.preventDefault(),m}},Zr=new Map,eo=function set(r,o,i){Zr.has(r)||Zr.set(r,new Map);var a=Zr.get(r);a.has(o)||0===a.size?a.set(o,i):console.error("Bootstrap doesn't allow more than one instance per element. Bound instance: ".concat(Array.from(a.keys())[0],"."))},no=function get(r,o){return Zr.has(r)&&Zr.get(r).get(o)||null},ro=function remove(r,o){if(Zr.has(r)){var i=Zr.get(r);i.delete(o),0===i.size&&Zr.delete(r)}},oo=function(){function BaseComponent(r){bootstrap_esm_classCallCheck(this,BaseComponent),(r=xr(r))&&(this._element=r,eo(this._element,this.constructor.DATA_KEY,this))}return bootstrap_esm_createClass(BaseComponent,[{key:"dispose",value:function dispose(){var r=this;ro(this._element,this.constructor.DATA_KEY),$r.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((function(o){r[o]=null}))}},{key:"_queueCallback",value:function _queueCallback(r,o){var i=!(arguments.length>2&&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;a<i.length;a++)if(Number.parseInt(i[a].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(r)){i[a].classList.add(Uo),i[a].setAttribute("aria-current","true");break}}}},{key:"_updateInterval",value:function _updateInterval(){var r=this._activeElement||yo.findOne(Vo,this._element);if(r){var o=Number.parseInt(r.getAttribute("data-bs-interval"),10);o?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=o):this._config.interval=this._config.defaultInterval||this._config.interval}}},{key:"_slide",value:function _slide(r,o){var i=this,a=this._directionToOrder(r),c=yo.findOne(Vo,this._element),u=this._getItemIndex(c),l=o||this._getItemByOrder(a,c),p=this._getItemIndex(l),d=Boolean(this._interval),h=a===wo,m=h?"carousel-item-start":"carousel-item-end",y=h?"carousel-item-next":"carousel-item-prev",v=this._orderToDirection(a);if(l&&l.classList.contains(Uo))this._isSliding=!1;else if(!this._isSliding&&!this._triggerSlideEvent(l,v).defaultPrevented&&c&&l){this._isSliding=!0,d&&this.pause(),this._setActiveIndicatorElement(l),this._activeElement=l;var g=function triggerSlidEvent(){$r.trigger(i._element,Co,{relatedTarget:l,direction:v,from:u,to:p})};if(this._element.classList.contains("slide")){l.classList.add(y),jr(l),c.classList.add(m),l.classList.add(m);this._queueCallback((function completeCallBack(){l.classList.remove(m,y),l.classList.add(Uo),c.classList.remove(Uo,y,m),i._isSliding=!1,setTimeout(g,0)}),c,!0)}else c.classList.remove(Uo),l.classList.add(Uo),this._isSliding=!1,g();d&&this.cycle()}}},{key:"_directionToOrder",value:function _directionToOrder(r){return[To,Oo].includes(r)?qr()?r===Oo?So:wo:r===Oo?wo:So:r}},{key:"_orderToDirection",value:function _orderToDirection(r){return[wo,So].includes(r)?qr()?r===So?Oo:To:r===So?To:Oo:r}}],[{key:"Default",get:function get(){return bo}},{key:"NAME",get:function get(){return vo}},{key:"carouselInterface",value:function carouselInterface(r,o){var i=Carousel.getOrCreateInstance(r,o),a=i._config;"object"===bootstrap_esm_typeof(o)&&(a=_objectSpread(_objectSpread({},a),o));var c="string"===typeof o?o:a.slide;if("number"===typeof o)i.to(o);else if("string"===typeof c){if("undefined"===typeof i[c])throw new TypeError('No method named "'.concat(c,'"'));i[c]()}else a.interval&&a.ride&&(i.pause(),i.cycle())}},{key:"jQueryInterface",value:function jQueryInterface(r){return this.each((function(){Carousel.carouselInterface(this,r)}))}},{key:"dataApiClickHandler",value:function dataApiClickHandler(r){var o=kr(this);if(o&&o.classList.contains("carousel")){var i=_objectSpread(_objectSpread({},mo.getDataAttributes(o)),mo.getDataAttributes(this)),a=this.getAttribute("data-bs-slide-to");a&&(i.interval=!1),Carousel.carouselInterface(o,i),a&&Carousel.getInstance(o).to(a),r.preventDefault()}}}]),Carousel}(oo);$r.on(document,qo,"[data-bs-slide], [data-bs-slide-to]",Ho.dataApiClickHandler),$r.on(window,Fo,(function(){for(var r=yo.find('[data-bs-ride="carousel"]'),o=0,i=r.length;o<i;o++)Ho.carouselInterface(r[o],Ho.getInstance(r[o]))})),Ur(Ho);var Qo="collapse",Go="bs.collapse",Wo=".".concat(Go),zo={toggle:!0,parent:null},Ko={toggle:"boolean",parent:"(null|element)"},Yo="show".concat(Wo),Xo="shown".concat(Wo),Jo="hide".concat(Wo),$o="hidden".concat(Wo),Zo="click".concat(Wo).concat(".data-api"),ei="show",ti="collapse",ni="collapsing",ri="collapsed",oi='[data-bs-toggle="collapse"]',ii=function(r){bootstrap_esm_inherits(Collapse,r);var o=bootstrap_esm_createSuper(Collapse);function Collapse(r,i){var a;bootstrap_esm_classCallCheck(this,Collapse),(a=o.call(this,r))._isTransitioning=!1,a._config=a._getConfig(i),a._triggerArray=[];for(var c=yo.find(oi),u=0,l=c.length;u<l;u++){var p=c[u],d=Tr(p),h=yo.find(d).filter((function(r){return r===a._element}));null!==d&&h.length&&(a._selector=d,a._triggerArray.push(p))}return a._initializeChildren(),a._config.parent||a._addAriaAndCollapsedClass(a._triggerArray,a._isShown()),a._config.toggle&&a.toggle(),a}return bootstrap_esm_createClass(Collapse,[{key:"toggle",value:function toggle(){this._isShown()?this.hide():this.show()}},{key:"show",value:function show(){var r=this;if(!this._isTransitioning&&!this._isShown()){var o,i=[];if(this._config.parent){var a=yo.find(".".concat(ti," .").concat(ti),this._config.parent);i=yo.find(".show, .collapsing",this._config.parent).filter((function(r){return!a.includes(r)}))}var c=yo.findOne(this._selector);if(i.length){var u=i.find((function(r){return c!==r}));if((o=u?Collapse.getInstance(u):null)&&o._isTransitioning)return}if(!$r.trigger(this._element,Yo).defaultPrevented){i.forEach((function(r){c!==r&&Collapse.getOrCreateInstance(r,{toggle:!1}).hide(),o||eo(r,Go,null)}));var l=this._getDimension();this._element.classList.remove(ti),this._element.classList.add(ni),this._element.style[l]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;var p=l[0].toUpperCase()+l.slice(1),d="scroll".concat(p);this._queueCallback((function complete(){r._isTransitioning=!1,r._element.classList.remove(ni),r._element.classList.add(ti,ei),r._element.style[l]="",$r.trigger(r._element,Xo)}),this._element,!0),this._element.style[l]="".concat(this._element[d],"px")}}}},{key:"hide",value:function hide(){var r=this;if(!this._isTransitioning&&this._isShown()&&!$r.trigger(this._element,Jo).defaultPrevented){var o=this._getDimension();this._element.style[o]="".concat(this._element.getBoundingClientRect()[o],"px"),jr(this._element),this._element.classList.add(ni),this._element.classList.remove(ti,ei);for(var i=this._triggerArray.length,a=0;a<i;a++){var c=this._triggerArray[a],u=kr(c);u&&!this._isShown(u)&&this._addAriaAndCollapsedClass([c],!1)}this._isTransitioning=!0;this._element.style[o]="",this._queueCallback((function complete(){r._isTransitioning=!1,r._element.classList.remove(ni),r._element.classList.add(ti),$r.trigger(r._element,$o)}),this._element,!0)}}},{key:"_isShown",value:function _isShown(){var r=arguments.length>0&&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;i<a;i++){var c=Dropdown.getInstance(o[i]);if(c&&!1!==c._config.autoClose&&c._isShown()){var u={relatedTarget:c._element};if(r){var l=r.composedPath(),p=l.includes(c._menu);if(l.includes(c._element)||"inside"===c._config.autoClose&&!p||"outside"===c._config.autoClose&&p)continue;if(c._menu.contains(r.target)&&("keyup"===r.type&&"Tab"===r.key||/input|select|option|textarea|form/i.test(r.target.tagName)))continue;"click"===r.type&&(u.clickEvent=r)}c._completeHide(u)}}}},{key:"getParentFromElement",value:function getParentFromElement(r){return kr(r)||r.parentNode}},{key:"dataApiKeydownHandler",value:function dataApiKeydownHandler(r){if(!(/input|textarea/i.test(r.target.tagName)?r.key===li||r.key!==ui&&(r.key!==fi&&r.key!==pi||r.target.closest(Si)):!di.test(r.key))){var o=this.classList.contains(Ei);if((o||r.key!==ui)&&(r.preventDefault(),r.stopPropagation(),!Lr(this))){var i=this.matches(wi)?this:yo.prev(this,wi)[0],a=Dropdown.getOrCreateInstance(i);if(r.key!==ui)return r.key===pi||r.key===fi?(o||a.show(),void a._selectMenuItem(r)):void(o&&r.key!==li||Dropdown.clearMenus());a.hide()}}}}]),Dropdown}(oo);$r.on(document,_i,wi,Di.dataApiKeydownHandler),$r.on(document,_i,Si,Di.dataApiKeydownHandler),$r.on(document,gi,Di.clearMenus),$r.on(document,bi,Di.clearMenus),$r.on(document,gi,wi,(function(r){r.preventDefault(),Di.getOrCreateInstance(this).toggle()})),Ur(Di);var Li=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Ri=".sticky-top",Pi=function(){function ScrollBarHelper(){bootstrap_esm_classCallCheck(this,ScrollBarHelper),this._element=document.body}return bootstrap_esm_createClass(ScrollBarHelper,[{key:"getWidth",value:function getWidth(){var r=document.documentElement.clientWidth;return Math.abs(window.innerWidth-r)}},{key:"hide",value:function hide(){var r=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",(function(o){return o+r})),this._setElementAttributes(Li,"paddingRight",(function(o){return o+r})),this._setElementAttributes(Ri,"marginRight",(function(o){return o-r}))}},{key:"_disableOverFlow",value:function _disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}},{key:"_setElementAttributes",value:function _setElementAttributes(r,o,i){var a=this,c=this.getWidth();this._applyManipulationCallback(r,(function manipulationCallBack(r){if(!(r!==a._element&&window.innerWidth>r.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<u;c++)if(a[c].test(i))return!0;return!1})(r,h)||c.removeAttribute(r.nodeName)}))},d=0,h=l.length;d<h;d++)p(d);return c.body.innerHTML}var Ra="tooltip",Pa=".".concat("bs.tooltip"),ja=new Set(["sanitize","allowList","sanitizeFn"]),Ma={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},Fa={AUTO:"auto",TOP:"top",RIGHT:qr()?"left":"right",BOTTOM:"bottom",LEFT:qr()?"right":"left"},qa={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',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:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),$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&&r<this._offsets[0]&&this._offsets[0]>0)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<this._offsets[c+1])&&this._activate(this._targets[c])}}}},{key:"_activate",value:function _activate(r){this._activeTarget=r,this._clear();var o=ps.split(",").map((function(o){return"".concat(o,'[data-bs-target="').concat(r,'"],').concat(o,'[href="').concat(r,'"]')})),i=yo.findOne(o.join(","),this._config.target);i.classList.add(cs),i.classList.contains(ss)?yo.findOne(".dropdown-toggle",i.closest(".dropdown")).classList.add(cs):yo.parents(i,".nav, .list-group").forEach((function(r){yo.prev(r,"".concat(us,", ").concat(ls)).forEach((function(r){return r.classList.add(cs)})),yo.prev(r,".nav-item").forEach((function(r){yo.children(r,us).forEach((function(r){return r.classList.add(cs)}))}))})),$r.trigger(this._scrollElement,os,{relatedTarget:r})}},{key:"_clear",value:function _clear(){yo.find(ps,this._config.target).filter((function(r){return r.classList.contains(cs)})).forEach((function(r){return r.classList.remove(cs)}))}}],[{key:"Default",get:function get(){return ns}},{key:"NAME",get:function get(){return es}},{key:"jQueryInterface",value:function jQueryInterface(r){return this.each((function(){var o=ScrollSpy.getOrCreateInstance(this,r);if("string"===typeof r){if("undefined"===typeof o[r])throw new TypeError('No method named "'.concat(r,'"'));o[r]()}}))}}]),ScrollSpy}(oo);$r.on(window,as,(function(){yo.find('[data-bs-spy="scroll"]').forEach((function(r){return new ds(r)}))})),Ur(ds);var hs=".".concat("bs.tab"),ms="hide".concat(hs),ys="hidden".concat(hs),vs="show".concat(hs),gs="shown".concat(hs),_s="click".concat(hs).concat(".data-api"),bs="active",Es="fade",ws="show",Ss=".active",Os=":scope > li > .active",Ts=function(r){bootstrap_esm_inherits(Tab,r);var o=bootstrap_esm_createSuper(Tab);function Tab(){return bootstrap_esm_classCallCheck(this,Tab),o.apply(this,arguments)}return bootstrap_esm_createClass(Tab,[{key:"show",value:function show(){var r=this;if(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE||!this._element.classList.contains(bs)){var o,i=kr(this._element),a=this._element.closest(".nav, .list-group");if(a){var c="UL"===a.nodeName||"OL"===a.nodeName?Os:Ss;o=(o=yo.find(c,a))[o.length-1]}var u=o?$r.trigger(o,ms,{relatedTarget:this._element}):null;if(!($r.trigger(this._element,vs,{relatedTarget:o}).defaultPrevented||null!==u&&u.defaultPrevented)){this._activate(this._element,a);var l=function complete(){$r.trigger(o,ys,{relatedTarget:r._element}),$r.trigger(r._element,gs,{relatedTarget:o})};i?this._activate(i,i.parentNode,l):l()}}}},{key:"_activate",value:function _activate(r,o,i){var a=this,c=(!o||"UL"!==o.nodeName&&"OL"!==o.nodeName?yo.children(o,Ss):yo.find(Os,o))[0],u=i&&c&&c.classList.contains(Es),l=function complete(){return a._transitionComplete(r,c,i)};c&&u?(c.classList.remove(ws),this._queueCallback(l,r,!0)):l()}},{key:"_transitionComplete",value:function _transitionComplete(r,o,i){if(o){o.classList.remove(bs);var a=yo.findOne(":scope > .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<o.length;i++){var a=o[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}io(Vs),Ur(Vs);!function(r){var o="main.links",i=document,a=i.body,c=function(){function MainUILinks(){!function links_classCallCheck(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}(this,MainUILinks),function links_defineProperty(r,o,i){return o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,r}(this,"window",void 0)}return function links_createClass(r,o,i){return o&&links_defineProperties(r.prototype,o),i&&links_defineProperties(r,i),r}(MainUILinks,null,[{key:"init",value:function init(){var i=this;i.GraphPage=null,console.log("".concat(o,": init")),i.loaded(),r.addEventListener("popstate",(function(r){i.popState(r)}))}},{key:"loaded",value:function loaded(){var r=this;i.querySelectorAll(".graphql-page").forEach((function(o,i){var a=o.getAttribute("href");o.setAttribute("data-".concat(r.name,"-id"),a),o.addEventListener("click",r.loadClick)}))}},{key:"setActiveLinks",value:function setActiveLinks(r){i.querySelectorAll("[data-".concat(this.name,'-id="').concat(r,'"]')).forEach((function(r){r.classList.add("active")}))}},{key:"reset",value:function reset(){i.activeElement.blur(),i.querySelectorAll(".graphql-page,.nav-item").forEach((function(r){r.classList.remove("active","loading")}))}},{key:"popState",value:function popState(i){var a=this;if(g.show(),i.state&&i.state.page){console.log("".concat(o,": [popstate] load"));var c=JSON.parse(i.state.page);c.current=null,c.popstate=!0,a.reset(),a.setActiveLinks(i.state.link),a.GraphPage||(console.log("".concat(o,": [popstate] GraphPage is missing. Have to render it first")),a.GraphPage=ReactDOM.render(React.createElement(Nn,null),document.getElementById("MainContent"))),a.GraphPage.setState(c),g.hide(),window.dispatchEvent(new Event(d.AJAX))}else i.state&&i.state.landing?(console.log("".concat(o,": [popstate] go to landing")),r.location.href=i.state.landing):(console.warn("".concat(o,": [popstate] state is missing")),console.log(i),g.hide())}},{key:"loadClick",value:function loadClick(c){console.groupCollapsed("".concat(o,": load on click")),c.preventDefault();var u=MainUILinks,l=c.currentTarget;g.show(),u.reset(),l.classList.add("loading"),l.classList.remove("response-404","response-500","response-523"),a.classList.add("ajax-loading");var p=(0,xn.getParents)(l,".collapse");p.length&&p.forEach((function(r){var o=ii.getInstance(r);o&&o.hide()})),u.GraphPage||(u.GraphPage=ReactDOM.render(React.createElement(Nn,null),document.getElementById("MainContent")));var h=l.getAttribute("href")||l.getAttribute("data-href");u.GraphPage.state.current=l,u.GraphPage.load(h).then((function(r){a.classList.remove("ajax-loading"),l.classList.remove("loading"),l.classList.add("active"),i.loading_apollo_link=null,u.GraphPage.state.Link&&(window.history.pushState({page:JSON.stringify(u.GraphPage.state),link:l.getAttribute("data-".concat(u.name,"-id"))},u.GraphPage.state.Title,u.GraphPage.state.Link),u.setActiveLinks(u.GraphPage.state.Link)),g.hide(),window.dispatchEvent(new Event(d.AJAX)),console.groupEnd("".concat(o,": load on click"))})).catch((function(i){console.error("".concat(o,": loading error")),console.log(i),l.classList.add("error","response-".concat(i.status)),console.groupEnd("".concat(o,": load on click")),console.log("".concat(o,": reloading page ").concat(h)),r.location.href=h}))}}]),MainUILinks}();r.addEventListener("".concat(d.LOADED),(function(){c.init()})),r.addEventListener("".concat(d.AJAX),(function(){c.loaded()}))}(window);var Bs=__webpack_require__(885),Hs=(function(r){var o,i="main.online",a=document,c=a.body,u=a.querySelector('meta[name="ping"]'),l=!1,p=function UPDATE_ONLINE_STATUS(a){l||(l=!0,a?(c.classList.contains("is-offline")?(console.log("".concat(i,": back Online")),r.dispatchEvent(new Event(d.BACKONLINE))):(console.log("".concat(i,": Online")),r.dispatchEvent(new Event(d.ONLINE))),c.classList.add("is-online"),c.classList.remove("is-offline"),u&&!o&&(console.log("".concat(i,": SESSION_PING is active")),o=setInterval(m,3e5))):(console.log("".concat(i,": Offline")),c.classList.add("is-offline"),c.classList.remove("is-online"),clearInterval(o),o=null,r.dispatchEvent(new Event(d.OFFLINE))),l=!1)},h=!1,m=function SESSION_PING(){if(!h&&!c.classList.contains("is-offline")){var r=u.getAttribute("content");console.log("".concat(i,": session ping")),h=!0,Bs.post(r,{}).then((function(r){h=!1,p(!0)})).catch((function(r){console.error(r),console.warn("".concat(i,": SESSION_PING failed")),h=!1,p(!1)}))}},y=function navigatorStateUpdate(){"undefined"!==typeof navigator.onLine&&(navigator.onLine?p(!0):p(!1))};r.addEventListener("".concat(d.OFFLINE),(function(){p(!1)})),r.addEventListener("".concat(d.ONLINE),(function(){p(!0)})),r.addEventListener("".concat(d.LOADED),y),r.addEventListener("".concat(d.AJAX),y)}(window),__webpack_require__(885));(function(r){var o="main.lazy-images",i=document,a=(i.body,document.querySelector('meta[name="api_static_domain"]')),c=a?a.getAttribute("content"):"".concat(window.location.protocol,"//").concat(window.location.host);console.log("".concat(o," [static url]: ").concat(c));var u=function loadLazyImages(){console.log("".concat(o,": Load lazy images")),i.querySelectorAll("[data-lazy-src]").forEach((function(r){r.classList.remove("empty"),r.classList.add("loading"),r.classList.remove("loading__network-error");var i=r.getAttribute("data-lazy-src"),a=i.startsWith("http")?i:c+i;Hs.get(a,{responseType:"blob"}).then((function(o){var i=new FileReader;i.readAsDataURL(o.data),i.onload=function(){var o=i.result;r.setAttribute("src",o),r.classList.remove("loading"),r.classList.add("loading__success")}})).catch((function(i){if(i.response){switch(i.response.status){case 404:msg="Not Found.";break;case 500:msg="Server issue, please try again latter.";break;default:msg="Something went wrong."}console.error("".concat(o," [").concat(a,"]: ").concat(msg))}else i.request?(msg="No response received",console.error("".concat(o," [").concat(a,"]: ").concat(msg))):console.error("".concat(o," [").concat(a,"]: ").concat(i.message));r.classList.remove("loading"),r.classList.add("loading__network-error"),r.classList.add("empty")}))}))};r.addEventListener("".concat(d.LODEDANDREADY),u),r.addEventListener("".concat(d.AJAX),u)})(window),function(r){var o="_layout",i=document;i.body;r.addEventListener("".concat(d.LOADED),(function(){!function init_fonts(){console.log("".concat(o,": init_fonts"));var r=i.createElement("link");r.rel="stylesheet",r.type="text/css",r.media="all",r.href="https://fonts.googleapis.com/css?family=Roboto:ital,wght@0,400;0,700;1,400&display=swap",i.getElementsByTagName("head")[0].appendChild(r)}()}))}(window);if("development"==={NODE_ENV:"production"}.NODEENV){__webpack_require__(889);__webpack_require__(768).worker.start({serviceWorker:{url:"graphql/mockServiceWorker.js",options:{scope:"/"}}})}function test_build_importAll(r){return r.keys().map(r)}test_build_importAll(__webpack_require__(310)),test_build_importAll(__webpack_require__(761))}()}();