@stigg/js-client-sdk 1.33.0 → 1.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*! For license information please see index.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Stigg",[],t):"object"==typeof exports?exports.Stigg=t():e.Stigg=t()}(self,(function(){return(()=>{var e={2991:(e,t,n)=>{"use strict";n.d(t,{R:()=>o,Y:()=>a});var r=n(2176),i={};function o(){return(0,r.KV)()?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function a(e,t,n){var r=n||o(),i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}},2176:(e,t,n)=>{"use strict";function r(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function i(e,t){return e.require(t)}n.d(t,{l$:()=>i,KV:()=>r}),e=n.hmd(e)},1170:(e,t,n)=>{"use strict";n.d(t,{yW:()=>u,ph:()=>c});var r=n(2991),i=n(2176);e=n.hmd(e);var o={nowSeconds:()=>Date.now()/1e3},a=(0,i.KV)()?function(){try{return(0,i.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){const{performance:e}=(0,r.R)();if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),s=void 0===a?o:{nowSeconds:()=>(a.timeOrigin+a.now())/1e3},u=o.nowSeconds.bind(o),c=s.nowSeconds.bind(s);let l;(()=>{const{performance:e}=(0,r.R)();if(e&&e.now){var t=36e5,n=e.now(),i=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,a=o<t,s=e.timing&&e.timing.navigationStart,u="number"==typeof s?Math.abs(s+n-i):t;return a||u<t?o<=u?(l="timeOrigin",e.timeOrigin):(l="navigationStart",s):(l="dateNow",i)}l="none"})()},6401:e=>{e.exports="object"==typeof self?self.FormData:window.FormData},4098:function(e,t){var n="undefined"!=typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in e,a="ArrayBuffer"in e;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function d(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function v(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,n,r=d(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=h(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=c(e),t=l(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=l(t)},p.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),f(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),f(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),f(e)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function _(e,t){var n,r,i=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),g.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function b(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function E(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},m.call(_.prototype),m.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},E.error=function(){var e=new E(null,{status:0,statusText:""});return e.type="error",e};var w=[301,302,303,307,308];E.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new E(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function S(e,n){return new Promise((function(r,o){var a=new _(e,n);if(a.signal&&a.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new p,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new E(i,n))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",u)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}S.polyfill=!0,e.fetch||(e.fetch=S,e.Headers=p,e.Request=_,e.Response=E),t.Headers=p,t.Request=_,t.Response=E,t.fetch=S,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},7187:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}v(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&v(e,"error",t,{once:!0})}(e,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o,a,c;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,c=l,console&&console.warn&&console.warn(c)}return e}function l(){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 f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function d(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function v(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.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},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else{var c=u.length,l=h(u,c);for(n=0;n<c;++n)r(l[n],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,f(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},1642:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ue,disableExperimentalFragmentVariables:()=>te,disableFragmentWarnings:()=>Z,enableExperimentalFragmentVariables:()=>ee,gql:()=>J,resetCaches:()=>X});var r=n(655);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var o=n(9763);function a(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.index<t;)i+=1,o=t+1-(n.index+n[0].length);return{line:i,column:o}}function s(e){return u(e.source,a(e.source,e.start))}function u(e,t){var n=e.locationOffset.column-1,r=l(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,u=t.column+s,f="".concat(e.name,":").concat(a,":").concat(u,"\n"),p=r.split(/\r\n|[\n\r]/g),d=p[i];if(d.length>120){for(var h=Math.floor(u/80),v=u%80,y=[],m=0;m<d.length;m+=80)y.push(d.slice(m,m+80));return f+c([["".concat(a),y[0]]].concat(y.slice(1,h+1).map((function(e){return["",e]})),[[" ",l(v-1)+"^"],["",y[h+1]]]))}return f+c([["".concat(a-1),p[i-1]],["".concat(a),d],["",l(u-1)+"^"],["".concat(a+1),p[i+1]]])}function c(e){var t=e.filter((function(e){return e[0],void 0!==e[1]})),n=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t,r=e[0],i=e[1];return l(n-(t=r).length)+t+(i?" | "+i:" |")})).join("\n")}function l(e){return Array(e+1).join(" ")}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){var t="function"==typeof Map?new Map:void 0;return m=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return g(e,arguments,E(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),b(r,e)},m(e)}function g(e,t,n){return g=_()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&b(i,n.prototype),i},g.apply(null,arguments)}function _(){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(e){return!1}}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(f,e);var t,n,r,c,l=(t=f,n=_(),function(){var e,r=E(t);if(n){var i=E(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return v(this,e)});function f(e,t,n,r,o,s,u){var c,h,m,g;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(g=l.call(this,e)).name="GraphQLError",g.originalError=null!=s?s:void 0,g.nodes=S(Array.isArray(t)?t:t?[t]:void 0);for(var _=[],b=0,E=null!==(w=g.nodes)&&void 0!==w?w:[];b<E.length;b++){var w,T=E[b].loc;null!=T&&_.push(T)}_=S(_),g.source=null!=n?n:null===(c=_)||void 0===c?void 0:c[0].source,g.positions=null!=r?r:null===(h=_)||void 0===h?void 0:h.map((function(e){return e.start})),g.locations=r&&n?r.map((function(e){return a(n,e)})):null===(m=_)||void 0===m?void 0:m.map((function(e){return a(e.source,e.start)})),g.path=null!=o?o:void 0;var O,I=null==s?void 0:s.extensions;return null==u&&"object"==i(O=I)&&null!==O?g.extensions=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},I):g.extensions=null!=u?u:{},Object.defineProperties(y(g),{message:{enumerable:!0},locations:{enumerable:null!=g.locations},path:{enumerable:null!=g.path},extensions:{enumerable:null!=g.extensions&&Object.keys(g.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=s&&s.stack?(Object.defineProperty(y(g),"stack",{value:s.stack,writable:!0,configurable:!0}),v(g)):(Error.captureStackTrace?Error.captureStackTrace(y(g),f):Object.defineProperty(y(g),"stack",{value:Error().stack,writable:!0,configurable:!0}),g)}return r=f,(c=[{key:"toString",value:function(){return function(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];i.loc&&(t+="\n\n"+s(i.loc))}else if(e.source&&e.locations)for(var o=0,a=e.locations;o<a.length;o++){var c=a[o];t+="\n\n"+u(e.source,c)}return t}(this)}},{key:o.YF,get:function(){return"Object"}}])&&h(r.prototype,c),f}(m(Error));function S(e){return void 0===e||0===e.length?void 0:e}function T(e,t,n){return new w("Syntax Error: ".concat(n),void 0,e,[t])}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"}),I=n(5217),x=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"}),D=n(143),A=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"}),k=n(7392),R=function(){function e(e){var t=new I.WU(x.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==x.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=C(this,e)}while(e.kind===x.COMMENT);return e},e}();function P(e){return isNaN(e)?x.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function C(e,t){for(var n=e.source,r=n.body,i=r.length,o=t.end;o<i;){var a=r.charCodeAt(o),s=e.line,u=1+o-e.lineStart;switch(a){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===r.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return new I.WU(x.BANG,o,o+1,s,u,t);case 35:return F(n,o,s,u,t);case 36:return new I.WU(x.DOLLAR,o,o+1,s,u,t);case 38:return new I.WU(x.AMP,o,o+1,s,u,t);case 40:return new I.WU(x.PAREN_L,o,o+1,s,u,t);case 41:return new I.WU(x.PAREN_R,o,o+1,s,u,t);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return new I.WU(x.SPREAD,o,o+3,s,u,t);break;case 58:return new I.WU(x.COLON,o,o+1,s,u,t);case 61:return new I.WU(x.EQUALS,o,o+1,s,u,t);case 64:return new I.WU(x.AT,o,o+1,s,u,t);case 91:return new I.WU(x.BRACKET_L,o,o+1,s,u,t);case 93:return new I.WU(x.BRACKET_R,o,o+1,s,u,t);case 123:return new I.WU(x.BRACE_L,o,o+1,s,u,t);case 124:return new I.WU(x.PIPE,o,o+1,s,u,t);case 125:return new I.WU(x.BRACE_R,o,o+1,s,u,t);case 34:return 34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)?L(n,o,s,u,t,e):M(n,o,s,u,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return j(n,o,a,s,u,t);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 q(n,o,s,u,t)}throw T(n,o,N(a))}var c=e.line,l=1+o-e.lineStart;return new I.WU(x.EOF,i,i,c,l,t)}function N(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(P(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(P(e),".")}function F(e,t,n,r,i){var o,a=e.body,s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new I.WU(x.COMMENT,t,s,n,r,i,a.slice(t+1,s))}function j(e,t,n,r,i,o){var a=e.body,s=n,u=t,c=!1;if(45===s&&(s=a.charCodeAt(++u)),48===s){if((s=a.charCodeAt(++u))>=48&&s<=57)throw T(e,u,"Invalid number, unexpected digit after 0: ".concat(P(s),"."))}else u=U(e,u,s),s=a.charCodeAt(u);if(46===s&&(c=!0,s=a.charCodeAt(++u),u=U(e,u,s),s=a.charCodeAt(u)),69!==s&&101!==s||(c=!0,43!==(s=a.charCodeAt(++u))&&45!==s||(s=a.charCodeAt(++u)),u=U(e,u,s),s=a.charCodeAt(u)),46===s||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw T(e,u,"Invalid number, expected digit but got: ".concat(P(s),"."));return new I.WU(c?x.FLOAT:x.INT,t,u,r,i,o,a.slice(t,u))}function U(e,t,n){var r=e.body,i=t,o=n;if(o>=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw T(e,i,"Invalid number, expected digit but got: ".concat(P(o),"."))}function M(e,t,n,r,i){for(var o,a,s,u,c=e.body,l=t+1,f=l,p=0,d="";l<c.length&&!isNaN(p=c.charCodeAt(l))&&10!==p&&13!==p;){if(34===p)return d+=c.slice(f,l),new I.WU(x.STRING,t,l+1,n,r,i,d);if(p<32&&9!==p)throw T(e,l,"Invalid character within String: ".concat(P(p),"."));if(++l,92===p){switch(d+=c.slice(f,l-1),p=c.charCodeAt(l)){case 34:d+='"';break;case 47:d+="/";break;case 92:d+="\\";break;case 98:d+="\b";break;case 102:d+="\f";break;case 110:d+="\n";break;case 114:d+="\r";break;case 116:d+="\t";break;case 117:var h=(o=c.charCodeAt(l+1),a=c.charCodeAt(l+2),s=c.charCodeAt(l+3),u=c.charCodeAt(l+4),B(o)<<12|B(a)<<8|B(s)<<4|B(u));if(h<0){var v=c.slice(l+1,l+5);throw T(e,l,"Invalid character escape sequence: \\u".concat(v,"."))}d+=String.fromCharCode(h),l+=4;break;default:throw T(e,l,"Invalid character escape sequence: \\".concat(String.fromCharCode(p),"."))}f=++l}}throw T(e,l,"Unterminated string.")}function L(e,t,n,r,i,o){for(var a=e.body,s=t+3,u=s,c=0,l="";s<a.length&&!isNaN(c=a.charCodeAt(s));){if(34===c&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2))return l+=a.slice(u,s),new I.WU(x.BLOCK_STRING,t,s+3,n,r,i,(0,k.W7)(l));if(c<32&&9!==c&&10!==c&&13!==c)throw T(e,s,"Invalid character within String: ".concat(P(c),"."));10===c?(++s,++o.line,o.lineStart=s):13===c?(10===a.charCodeAt(s+1)?s+=2:++s,++o.line,o.lineStart=s):92===c&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2)&&34===a.charCodeAt(s+3)?(l+=a.slice(u,s)+'"""',u=s+=4):++s}throw T(e,s,"Unterminated string.")}function B(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function q(e,t,n,r,i){for(var o=e.body,a=o.length,s=t+1,u=0;s!==a&&!isNaN(u=o.charCodeAt(s))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new I.WU(x.NAME,t,s,n,r,i,o.slice(t,s))}var V=function(){function e(e,t){var n=(0,D.T)(e)?e:new D.H(e);this._lexer=new R(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(x.NAME);return{kind:O.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:O.DOCUMENT,definitions:this.many(x.SOF,this.parseDefinition,x.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(x.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(x.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(x.BRACE_L))return{kind:O.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(x.NAME)&&(t=this.parseName()),{kind:O.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(x.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(x.PAREN_L,this.parseVariableDefinition,x.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:O.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(x.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(x.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(x.DOLLAR),{kind:O.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:O.SELECTION_SET,selections:this.many(x.BRACE_L,this.parseSelection,x.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(x.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(x.COLON)?(e=r,t=this.parseName()):t=r,{kind:O.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(x.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(x.PAREN_L,t,x.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(x.COLON),{kind:O.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:O.ARGUMENT,name:this.parseName(),value:(this.expectToken(x.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(x.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(x.NAME)?{kind:O.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:O.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.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(t)}:{kind:O.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case x.BRACKET_L:return this.parseList(e);case x.BRACE_L:return this.parseObject(e);case x.INT:return this._lexer.advance(),{kind:O.INT,value:t.value,loc:this.loc(t)};case x.FLOAT:return this._lexer.advance(),{kind:O.FLOAT,value:t.value,loc:this.loc(t)};case x.STRING:case x.BLOCK_STRING:return this.parseStringLiteral();case x.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:O.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:O.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:O.NULL,loc:this.loc(t)};default:return{kind:O.ENUM,value:t.value,loc:this.loc(t)}}case x.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:O.STRING,value:e.value,block:e.kind===x.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:O.LIST,values:this.any(x.BRACKET_L,(function(){return t.parseValueLiteral(e)}),x.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:O.OBJECT,fields:this.any(x.BRACE_L,(function(){return t.parseObjectField(e)}),x.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(x.COLON),{kind:O.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(x.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(x.AT),{kind:O.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(x.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(x.BRACKET_R),e={kind:O.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(x.BANG)?{kind:O.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:O.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===x.NAME)switch(e.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(e)},t.peekDescription=function(){return this.peek(x.STRING)||this.peek(x.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(x.BRACE_L,this.parseOperationTypeDefinition,x.BRACE_R);return{kind:O.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(x.COLON);var n=this.parseNamedType();return{kind:O.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:O.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:O.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(x.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(x.AMP)||this.peek(x.NAME));return t}return this.delimitedMany(x.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(x.BRACE_L)&&this._lexer.lookahead().kind===x.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(x.BRACE_L,this.parseFieldDefinition,x.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(x.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:O.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(x.PAREN_L,this.parseInputValueDef,x.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(x.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(x.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:O.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:O.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:O.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(x.EQUALS)?this.delimitedMany(x.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:O.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(x.BRACE_L,this.parseEnumValueDefinition,x.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:O.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:O.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(x.BRACE_L,this.parseInputValueDef,x.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===x.NAME)switch(e.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(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(x.BRACE_L,this.parseOperationTypeDefinition,x.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:O.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:O.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:O.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:O.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:O.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:O.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:O.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(x.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:O.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(x.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==A[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new I.Ye(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw T(this._lexer.source,t.start,"Expected ".concat(G(e),", found ").concat($(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==x.NAME||t.value!==e)throw T(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat($(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===x.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return T(this._lexer.source,t.start,"Unexpected ".concat($(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function $(e){var t=e.value;return G(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function G(e){return function(e){return e===x.BANG||e===x.DOLLAR||e===x.AMP||e===x.PAREN_L||e===x.PAREN_R||e===x.SPREAD||e===x.COLON||e===x.EQUALS||e===x.AT||e===x.BRACKET_L||e===x.BRACKET_R||e===x.BRACE_L||e===x.PIPE||e===x.BRACE_R}(e)?'"'.concat(e,'"'):e}var z=new Map,Q=new Map,W=!0,Y=!1;function K(e){return e.replace(/[\s,]+/g," ").trim()}function H(e){var t=K(e);if(!z.has(t)){var n=function(e,t){return new V(e,t).parseDocument()}(e,{experimentalFragmentVariables:Y,allowLegacyFragmentVariables:Y});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");z.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(function(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=K((a=e.loc).source.body.substring(a.start,a.end)),o=Q.get(r);o&&!o.has(i)?W&&console.warn("Warning: fragment with name "+r+" 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"):o||Q.set(r,o=new Set),o.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e);var a})),(0,r.pi)((0,r.pi)({},e),{definitions:n})}(n)))}return z.get(t)}function J(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach((function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]})),H(r)}function X(){z.clear(),Q.clear()}function Z(){W=!1}function ee(){Y=!0}function te(){Y=!1}var ne,re=J,ie=X,oe=Z,ae=ee,se=te;(ne=J||(J={})).gql=re,ne.resetCaches=ie,ne.disableFragmentWarnings=oe,ne.enableExperimentalFragmentVariables=ae,ne.disableExperimentalFragmentVariables=se,J.default=J;const ue=J},8552:(e,t,n)=>{var r=n(852)(n(5639),"DataView");e.exports=r},1989:(e,t,n)=>{var r=n(1789),i=n(401),o=n(7667),a=n(1327),s=n(1866);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},8407:(e,t,n)=>{var r=n(7040),i=n(4125),o=n(2117),a=n(7529),s=n(4705);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},7071:(e,t,n)=>{var r=n(852)(n(5639),"Map");e.exports=r},3369:(e,t,n)=>{var r=n(4785),i=n(1285),o=n(6e3),a=n(9916),s=n(5265);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},3818:(e,t,n)=>{var r=n(852)(n(5639),"Promise");e.exports=r},8525:(e,t,n)=>{var r=n(852)(n(5639),"Set");e.exports=r},8668:(e,t,n)=>{var r=n(3369),i=n(619),o=n(2385);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},6384:(e,t,n)=>{var r=n(8407),i=n(7465),o=n(3779),a=n(7599),s=n(4758),u=n(4309);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,e.exports=c},2705:(e,t,n)=>{var r=n(5639).Symbol;e.exports=r},1149:(e,t,n)=>{var r=n(5639).Uint8Array;e.exports=r},577:(e,t,n)=>{var r=n(852)(n(5639),"WeakMap");e.exports=r},6874:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},7412:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},4963:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},4636:(e,t,n)=>{var r=n(2545),i=n(5694),o=n(1469),a=n(4144),s=n(5776),u=n(6719),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),l=!n&&i(e),f=!n&&!l&&a(e),p=!n&&!l&&!f&&u(e),d=n||l||f||p,h=d?r(e.length,String):[],v=h.length;for(var y in e)!t&&!c.call(e,y)||d&&("length"==y||f&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,v))||h.push(y);return h}},9932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},2488:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},2908:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},6556:(e,t,n)=>{var r=n(9465),i=n(7813);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},4865:(e,t,n)=>{var r=n(9465),i=n(7813),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},8470:(e,t,n)=>{var r=n(7813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},4037:(e,t,n)=>{var r=n(8363),i=n(3674);e.exports=function(e,t){return e&&r(t,i(t),e)}},3886:(e,t,n)=>{var r=n(8363),i=n(1704);e.exports=function(e,t){return e&&r(t,i(t),e)}},9465:(e,t,n)=>{var r=n(8777);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},5990:(e,t,n)=>{var r=n(6384),i=n(7412),o=n(4865),a=n(4037),s=n(3886),u=n(4626),c=n(278),l=n(8805),f=n(1911),p=n(8234),d=n(6904),h=n(4160),v=n(3824),y=n(9148),m=n(8517),g=n(1469),_=n(4144),b=n(6688),E=n(3218),w=n(2928),S=n(3674),T=n(1704),O="[object Arguments]",I="[object Function]",x="[object Object]",D={};D[O]=D["[object Array]"]=D["[object ArrayBuffer]"]=D["[object DataView]"]=D["[object Boolean]"]=D["[object Date]"]=D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Map]"]=D["[object Number]"]=D[x]=D["[object RegExp]"]=D["[object Set]"]=D["[object String]"]=D["[object Symbol]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D["[object Error]"]=D[I]=D["[object WeakMap]"]=!1,e.exports=function e(t,n,A,k,R,P){var C,N=1&n,F=2&n,j=4&n;if(A&&(C=R?A(t,k,R,P):A(t)),void 0!==C)return C;if(!E(t))return t;var U=g(t);if(U){if(C=v(t),!N)return c(t,C)}else{var M=h(t),L=M==I||"[object GeneratorFunction]"==M;if(_(t))return u(t,N);if(M==x||M==O||L&&!R){if(C=F||L?{}:m(t),!N)return F?f(t,s(C,t)):l(t,a(C,t))}else{if(!D[M])return R?t:{};C=y(t,M,N)}}P||(P=new r);var B=P.get(t);if(B)return B;P.set(t,C),w(t)?t.forEach((function(r){C.add(e(r,n,A,r,t,P))})):b(t)&&t.forEach((function(r,i){C.set(i,e(r,n,A,i,t,P))}));var q=U?void 0:(j?F?d:p:F?T:S)(t);return i(q||t,(function(r,i){q&&(r=t[i=r]),o(C,i,e(r,n,A,i,t,P))})),C}},3118:(e,t,n)=>{var r=n(3218),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},4140:(e,t,n)=>{var r=n(7816),i=n(9291)(r);e.exports=i},1848:e=>{e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},1078:(e,t,n)=>{var r=n(2488),i=n(7285);e.exports=function e(t,n,o,a,s){var u=-1,c=t.length;for(o||(o=i),s||(s=[]);++u<c;){var l=t[u];n>0&&o(l)?n>1?e(l,n-1,o,a,s):r(s,l):a||(s[s.length]=l)}return s}},8483:(e,t,n)=>{var r=n(5063)();e.exports=r},7816:(e,t,n)=>{var r=n(8483),i=n(3674);e.exports=function(e,t){return e&&r(e,t,i)}},7786:(e,t,n)=>{var r=n(1811),i=n(327);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},8866:(e,t,n)=>{var r=n(2488),i=n(1469);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},4239:(e,t,n)=>{var r=n(2705),i=n(9607),o=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},13:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},2118:(e,t,n)=>{var r=n(1848),i=n(2722),o=n(2351);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,i,n)}},9454:(e,t,n)=>{var r=n(4239),i=n(7005);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},939:(e,t,n)=>{var r=n(1299),i=n(7005);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},1299:(e,t,n)=>{var r=n(6384),i=n(7114),o=n(8351),a=n(6096),s=n(4160),u=n(1469),c=n(4144),l=n(6719),f="[object Arguments]",p="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,y,m){var g=u(e),_=u(t),b=g?p:s(e),E=_?p:s(t),w=(b=b==f?d:b)==d,S=(E=E==f?d:E)==d,T=b==E;if(T&&c(e)){if(!c(t))return!1;g=!0,w=!1}if(T&&!w)return m||(m=new r),g||l(e)?i(e,t,n,v,y,m):o(e,t,b,n,v,y,m);if(!(1&n)){var O=w&&h.call(e,"__wrapped__"),I=S&&h.call(t,"__wrapped__");if(O||I){var x=O?e.value():e,D=I?t.value():t;return m||(m=new r),y(x,D,n,v,m)}}return!!T&&(m||(m=new r),a(e,t,n,v,y,m))}},5588:(e,t,n)=>{var r=n(4160),i=n(7005);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},2958:(e,t,n)=>{var r=n(6384),i=n(939);e.exports=function(e,t,n,o){var a=n.length,s=a,u=!o;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var l=(c=n[a])[0],f=e[l],p=c[1];if(u&&c[2]){if(void 0===f&&!(l in e))return!1}else{var d=new r;if(o)var h=o(f,p,l,e,t,d);if(!(void 0===h?i(p,f,3,o,d):h))return!1}}return!0}},2722:e=>{e.exports=function(e){return e!=e}},8458:(e,t,n)=>{var r=n(3560),i=n(5346),o=n(3218),a=n(346),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?p:s).test(a(e))}},9221:(e,t,n)=>{var r=n(4160),i=n(7005);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},8749:(e,t,n)=>{var r=n(4239),i=n(1780),o=n(7005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},7206:(e,t,n)=>{var r=n(1573),i=n(6432),o=n(6557),a=n(1469),s=n(9601);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},280:(e,t,n)=>{var r=n(5726),i=n(6916),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},313:(e,t,n)=>{var r=n(3218),i=n(5726),o=n(3498),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},9199:(e,t,n)=>{var r=n(4140),i=n(8612);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}},1573:(e,t,n)=>{var r=n(2958),i=n(1499),o=n(2634);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},6432:(e,t,n)=>{var r=n(939),i=n(7361),o=n(9095),a=n(5403),s=n(9162),u=n(2634),c=n(327);e.exports=function(e,t){return a(e)&&s(t)?u(c(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},2980:(e,t,n)=>{var r=n(6384),i=n(6556),o=n(8483),a=n(9783),s=n(3218),u=n(1704),c=n(6390);e.exports=function e(t,n,l,f,p){t!==n&&o(n,(function(o,u){if(p||(p=new r),s(o))a(t,n,u,l,e,f,p);else{var d=f?f(c(t,u),o,u+"",t,n,p):void 0;void 0===d&&(d=o),i(t,u,d)}}),u)}},9783:(e,t,n)=>{var r=n(6556),i=n(4626),o=n(7133),a=n(278),s=n(8517),u=n(5694),c=n(1469),l=n(9246),f=n(4144),p=n(3560),d=n(3218),h=n(8630),v=n(6719),y=n(6390),m=n(9881);e.exports=function(e,t,n,g,_,b,E){var w=y(e,n),S=y(t,n),T=E.get(S);if(T)r(e,n,T);else{var O=b?b(w,S,n+"",e,t,E):void 0,I=void 0===O;if(I){var x=c(S),D=!x&&f(S),A=!x&&!D&&v(S);O=S,x||D||A?c(w)?O=w:l(w)?O=a(w):D?(I=!1,O=i(S,!0)):A?(I=!1,O=o(S,!0)):O=[]:h(S)||u(S)?(O=w,u(w)?O=m(w):d(w)&&!p(w)||(O=s(S))):I=!1}I&&(E.set(S,O),_(O,S,g,b,E),E.delete(S)),r(e,n,O)}}},371:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},9152:(e,t,n)=>{var r=n(7786);e.exports=function(e){return function(t){return r(t,e)}}},5976:(e,t,n)=>{var r=n(6557),i=n(5357),o=n(61);e.exports=function(e,t){return o(i(e,t,r),e+"")}},6560:(e,t,n)=>{var r=n(5703),i=n(8777),o=n(6557),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},4259:e=>{e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},5076:(e,t,n)=>{var r=n(4140);e.exports=function(e,t){var n;return r(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}},2545:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},531:(e,t,n)=>{var r=n(2705),i=n(9932),o=n(1469),a=n(3448),s=r?r.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},7561:(e,t,n)=>{var r=n(7990),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},7518:e=>{e.exports=function(e){return function(t){return e(t)}}},7406:(e,t,n)=>{var r=n(1811),i=n(928),o=n(292),a=n(327);e.exports=function(e,t){return t=r(t,e),null==(e=o(e,t))||delete e[a(i(t))]}},7415:(e,t,n)=>{var r=n(9932);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},4757:e=>{e.exports=function(e,t){return e.has(t)}},1811:(e,t,n)=>{var r=n(1469),i=n(5403),o=n(5514),a=n(9833);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},4318:(e,t,n)=>{var r=n(1149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},4626:(e,t,n)=>{e=n.nmd(e);var r=n(5639),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},7157:(e,t,n)=>{var r=n(4318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},3147:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},419:(e,t,n)=>{var r=n(2705),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},7133:(e,t,n)=>{var r=n(4318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},278:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},8363:(e,t,n)=>{var r=n(4865),i=n(9465);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var c=t[s],l=o?o(n[c],e[c],c,n,e):void 0;void 0===l&&(l=e[c]),a?i(n,c,l):r(n,c,l)}return n}},8805:(e,t,n)=>{var r=n(8363),i=n(9551);e.exports=function(e,t){return r(e,i(e),t)}},1911:(e,t,n)=>{var r=n(8363),i=n(1442);e.exports=function(e,t){return r(e,i(e),t)}},4429:(e,t,n)=>{var r=n(5639)["__core-js_shared__"];e.exports=r},1463:(e,t,n)=>{var r=n(5976),i=n(6612);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var u=n[r];u&&e(t,u,r,a)}return t}))}},9291:(e,t,n)=>{var r=n(8612);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},5063:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}},696:(e,t,n)=>{var r=n(8630);e.exports=function(e){return r(e)?void 0:e}},8777:(e,t,n)=>{var r=n(852),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},7114:(e,t,n)=>{var r=n(8668),i=n(2908),o=n(4757);e.exports=function(e,t,n,a,s,u){var c=1&n,l=e.length,f=t.length;if(l!=f&&!(c&&f>l))return!1;var p=u.get(e),d=u.get(t);if(p&&d)return p==t&&d==e;var h=-1,v=!0,y=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++h<l;){var m=e[h],g=t[h];if(a)var _=c?a(g,m,h,t,e,u):a(m,g,h,e,t,u);if(void 0!==_){if(_)continue;v=!1;break}if(y){if(!i(t,(function(e,t){if(!o(y,t)&&(m===e||s(m,e,n,a,u)))return y.push(t)}))){v=!1;break}}else if(m!==g&&!s(m,g,n,a,u)){v=!1;break}}return u.delete(e),u.delete(t),v}},8351:(e,t,n)=>{var r=n(2705),i=n(1149),o=n(7813),a=n(7114),s=n(8776),u=n(1814),c=r?r.prototype:void 0,l=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,f,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=s;case"[object Set]":var h=1&r;if(d||(d=u),e.size!=t.size&&!h)return!1;var v=p.get(e);if(v)return v==t;r|=2,p.set(e,t);var y=a(d(e),d(t),r,c,f,p);return p.delete(e),y;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},6096:(e,t,n)=>{var r=n(8234),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var u=1&n,c=r(e),l=c.length;if(l!=r(t).length&&!u)return!1;for(var f=l;f--;){var p=c[f];if(!(u?p in t:i.call(t,p)))return!1}var d=s.get(e),h=s.get(t);if(d&&h)return d==t&&h==e;var v=!0;s.set(e,t),s.set(t,e);for(var y=u;++f<l;){var m=e[p=c[f]],g=t[p];if(o)var _=u?o(g,m,p,t,e,s):o(m,g,p,e,t,s);if(!(void 0===_?m===g||a(m,g,n,o,s):_)){v=!1;break}y||(y="constructor"==p)}if(v&&!y){var b=e.constructor,E=t.constructor;b==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(v=!1)}return s.delete(e),s.delete(t),v}},9021:(e,t,n)=>{var r=n(5564),i=n(5357),o=n(61);e.exports=function(e){return o(i(e,void 0,r),e+"")}},1957:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},8234:(e,t,n)=>{var r=n(8866),i=n(9551),o=n(3674);e.exports=function(e){return r(e,o,i)}},6904:(e,t,n)=>{var r=n(8866),i=n(1442),o=n(1704);e.exports=function(e){return r(e,o,i)}},5050:(e,t,n)=>{var r=n(7019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},1499:(e,t,n)=>{var r=n(9162),i=n(3674);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},852:(e,t,n)=>{var r=n(8458),i=n(7801);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},5924:(e,t,n)=>{var r=n(5569)(Object.getPrototypeOf,Object);e.exports=r},9607:(e,t,n)=>{var r=n(2705),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},9551:(e,t,n)=>{var r=n(4963),i=n(479),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},1442:(e,t,n)=>{var r=n(2488),i=n(5924),o=n(9551),a=n(479),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},4160:(e,t,n)=>{var r=n(8552),i=n(7071),o=n(3818),a=n(8525),s=n(577),u=n(4239),c=n(346),l="[object Map]",f="[object Promise]",p="[object Set]",d="[object WeakMap]",h="[object DataView]",v=c(r),y=c(i),m=c(o),g=c(a),_=c(s),b=u;(r&&b(new r(new ArrayBuffer(1)))!=h||i&&b(new i)!=l||o&&b(o.resolve())!=f||a&&b(new a)!=p||s&&b(new s)!=d)&&(b=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case v:return h;case y:return l;case m:return f;case g:return p;case _:return d}return t}),e.exports=b},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},222:(e,t,n)=>{var r=n(1811),i=n(5694),o=n(1469),a=n(5776),s=n(1780),u=n(327);e.exports=function(e,t,n){for(var c=-1,l=(t=r(t,e)).length,f=!1;++c<l;){var p=u(t[c]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++c!=l?f:!!(l=null==e?0:e.length)&&s(l)&&a(p,l)&&(o(e)||i(e))}},1789:(e,t,n)=>{var r=n(4536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},1327:(e,t,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},1866:(e,t,n)=>{var r=n(4536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},3824:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},9148:(e,t,n)=>{var r=n(4318),i=n(7157),o=n(3147),a=n(419),s=n(7133);e.exports=function(e,t,n){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},8517:(e,t,n)=>{var r=n(3118),i=n(5924),o=n(5726);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},7285:(e,t,n)=>{var r=n(2705),i=n(5694),o=n(1469),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},6612:(e,t,n)=>{var r=n(7813),i=n(8612),o=n(5776),a=n(3218);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},5403:(e,t,n)=>{var r=n(1469),i=n(3448),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,n)=>{var r,i=n(4429),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},9162:(e,t,n)=>{var r=n(3218);e.exports=function(e){return e==e&&!r(e)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,n)=>{var r=n(8470),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},2117:(e,t,n)=>{var r=n(8470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7529:(e,t,n)=>{var r=n(8470);e.exports=function(e){return r(this.__data__,e)>-1}},4705:(e,t,n)=>{var r=n(8470);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},4785:(e,t,n)=>{var r=n(1989),i=n(8407),o=n(7071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},1285:(e,t,n)=>{var r=n(5050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,n)=>{var r=n(5050);e.exports=function(e){return r(this,e).get(e)}},9916:(e,t,n)=>{var r=n(5050);e.exports=function(e){return r(this,e).has(e)}},5265:(e,t,n)=>{var r=n(5050);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},2634:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},4523:(e,t,n)=>{var r=n(8306);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},4536:(e,t,n)=>{var r=n(852)(Object,"create");e.exports=r},6916:(e,t,n)=>{var r=n(5569)(Object.keys,Object);e.exports=r},3498:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},1167:(e,t,n)=>{e=n.nmd(e);var r=n(1957),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},5357:(e,t,n)=>{var r=n(6874),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),u=Array(s);++a<s;)u[a]=o[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=o[a];return c[t]=n(u),r(e,this,c)}}},292:(e,t,n)=>{var r=n(7786),i=n(4259);e.exports=function(e,t){return t.length<2?e:r(e,i(t,0,-1))}},5639:(e,t,n)=>{var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},6390:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},61:(e,t,n)=>{var r=n(6560),i=n(1275)(r);e.exports=i},1275:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},7465:(e,t,n)=>{var r=n(8407);e.exports=function(){this.__data__=new r,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,n)=>{var r=n(8407),i=n(7071),o=n(3369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},2351:e=>{e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},5514:(e,t,n)=>{var r=n(4523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},327:(e,t,n)=>{var r=n(3448);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7990:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},5703:e=>{e.exports=function(e){return function(){return e}}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5564:(e,t,n)=>{var r=n(1078);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},7361:(e,t,n)=>{var r=n(7786);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},9095:(e,t,n)=>{var r=n(13),i=n(222);e.exports=function(e,t){return null!=e&&i(e,t,r)}},6557:e=>{e.exports=function(e){return e}},4721:(e,t,n)=>{var r=n(2118),i=n(8612),o=n(7037),a=n(554),s=n(2628),u=Math.max;e.exports=function(e,t,n,c){e=i(e)?e:s(e),n=n&&!c?a(n):0;var l=e.length;return n<0&&(n=u(l+n,0)),o(e)?n<=l&&e.indexOf(t,n)>-1:!!l&&r(e,t,n)>-1}},5694:(e,t,n)=>{var r=n(9454),i=n(7005),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,n)=>{var r=n(3560),i=n(1780);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},9246:(e,t,n)=>{var r=n(8612),i=n(7005);e.exports=function(e){return i(e)&&r(e)}},4144:(e,t,n)=>{e=n.nmd(e);var r=n(5639),i=n(5062),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;e.exports=u},1609:(e,t,n)=>{var r=n(280),i=n(4160),o=n(5694),a=n(1469),s=n(8612),u=n(4144),c=n(5726),l=n(6719),f=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||l(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(f.call(e,n))return!1;return!0}},3560:(e,t,n)=>{var r=n(4239),i=n(3218);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},6688:(e,t,n)=>{var r=n(5588),i=n(7518),o=n(1167),a=o&&o.isMap,s=a?i(a):r;e.exports=s},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8630:(e,t,n)=>{var r=n(4239),i=n(5924),o=n(7005),a=Function.prototype,s=Object.prototype,u=a.toString,c=s.hasOwnProperty,l=u.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==l}},2928:(e,t,n)=>{var r=n(9221),i=n(7518),o=n(1167),a=o&&o.isSet,s=a?i(a):r;e.exports=s},7037:(e,t,n)=>{var r=n(4239),i=n(1469),o=n(7005);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},3448:(e,t,n)=>{var r=n(4239),i=n(7005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},6719:(e,t,n)=>{var r=n(8749),i=n(7518),o=n(1167),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},3674:(e,t,n)=>{var r=n(4636),i=n(280),o=n(8612);e.exports=function(e){return o(e)?r(e):i(e)}},1704:(e,t,n)=>{var r=n(4636),i=n(313),o=n(8612);e.exports=function(e){return o(e)?r(e,!0):i(e)}},928:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},6486:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",u=32,c=128,l=1/0,f=9007199254740991,p=NaN,d=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],v="[object Arguments]",y="[object Array]",m="[object Boolean]",g="[object Date]",_="[object Error]",b="[object Function]",E="[object GeneratorFunction]",w="[object Map]",S="[object Number]",T="[object Object]",O="[object Promise]",I="[object RegExp]",x="[object Set]",D="[object String]",A="[object Symbol]",k="[object WeakMap]",R="[object ArrayBuffer]",P="[object DataView]",C="[object Float32Array]",N="[object Float64Array]",F="[object Int8Array]",j="[object Int16Array]",U="[object Int32Array]",M="[object Uint8Array]",L="[object Uint8ClampedArray]",B="[object Uint16Array]",q="[object Uint32Array]",V=/\b__p \+= '';/g,$=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,z=/&(?:amp|lt|gt|quot|#39);/g,Q=/[&<>"']/g,W=RegExp(z.source),Y=RegExp(Q.source),K=/<%-([\s\S]+?)%>/g,H=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,ge=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,be=/['\n\r\u2028\u2029\\]/g,Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",we="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",Te="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oe="["+Te+"]",Ie="["+Ee+"]",xe="\\d+",De="["+we+"]",Ae="[^\\ud800-\\udfff"+Te+xe+"\\u2700-\\u27bf"+we+Se+"]",ke="\\ud83c[\\udffb-\\udfff]",Re="[^\\ud800-\\udfff]",Pe="(?:\\ud83c[\\udde6-\\uddff]){2}",Ce="[\\ud800-\\udbff][\\udc00-\\udfff]",Ne="["+Se+"]",Fe="(?:"+De+"|"+Ae+")",je="(?:"+Ne+"|"+Ae+")",Ue="(?:['’](?:d|ll|m|re|s|t|ve))?",Me="(?:['’](?:D|LL|M|RE|S|T|VE))?",Le="(?:"+Ie+"|"+ke+")?",Be="[\\ufe0e\\ufe0f]?",qe=Be+Le+"(?:\\u200d(?:"+[Re,Pe,Ce].join("|")+")"+Be+Le+")*",Ve="(?:"+["[\\u2700-\\u27bf]",Pe,Ce].join("|")+")"+qe,$e="(?:"+[Re+Ie+"?",Ie,Pe,Ce,"[\\ud800-\\udfff]"].join("|")+")",Ge=RegExp("['’]","g"),ze=RegExp(Ie,"g"),Qe=RegExp(ke+"(?="+ke+")|"+$e+qe,"g"),We=RegExp([Ne+"?"+De+"+"+Ue+"(?="+[Oe,Ne,"$"].join("|")+")",je+"+"+Me+"(?="+[Oe,Ne+Fe,"$"].join("|")+")",Ne+"?"+Fe+"+"+Ue,Ne+"+"+Me,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xe,Ve].join("|"),"g"),Ye=RegExp("[\\u200d\\ud800-\\udfff"+Ee+"\\ufe0e\\ufe0f]"),Ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,He=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Je=-1,Xe={};Xe[C]=Xe[N]=Xe[F]=Xe[j]=Xe[U]=Xe[M]=Xe[L]=Xe[B]=Xe[q]=!0,Xe[v]=Xe[y]=Xe[R]=Xe[m]=Xe[P]=Xe[g]=Xe[_]=Xe[b]=Xe[w]=Xe[S]=Xe[T]=Xe[I]=Xe[x]=Xe[D]=Xe[k]=!1;var Ze={};Ze[v]=Ze[y]=Ze[R]=Ze[P]=Ze[m]=Ze[g]=Ze[C]=Ze[N]=Ze[F]=Ze[j]=Ze[U]=Ze[w]=Ze[S]=Ze[T]=Ze[I]=Ze[x]=Ze[D]=Ze[A]=Ze[M]=Ze[L]=Ze[B]=Ze[q]=!0,Ze[_]=Ze[b]=Ze[k]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,it="object"==typeof self&&self&&self.Object===Object&&self,ot=rt||it||Function("return this")(),at=t&&!t.nodeType&&t,st=at&&e&&!e.nodeType&&e,ut=st&&st.exports===at,ct=ut&&rt.process,lt=function(){try{return st&&st.require&&st.require("util").types||ct&&ct.binding&&ct.binding("util")}catch(e){}}(),ft=lt&&lt.isArrayBuffer,pt=lt&&lt.isDate,dt=lt&&lt.isMap,ht=lt&&lt.isRegExp,vt=lt&&lt.isSet,yt=lt&&lt.isTypedArray;function mt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function gt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function _t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function bt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Et(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function wt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function St(e,t){return!(null==e||!e.length)&&Ct(e,t,0)>-1}function Tt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Ot(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function It(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function xt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function Dt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function At(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var kt=Ut("length");function Rt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Pt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Ct(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Pt(e,Ft,n)}function Nt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Ft(e){return e!=e}function jt(e,t){var n=null==e?0:e.length;return n?Bt(e,t)/n:p}function Ut(e){return function(t){return null==t?i:t[e]}}function Mt(e){return function(t){return null==e?i:e[t]}}function Lt(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Bt(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function qt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Vt(e){return e?e.slice(0,sn(e)+1).replace(re,""):e}function $t(e){return function(t){return e(t)}}function Gt(e,t){return Ot(t,(function(t){return e[t]}))}function zt(e,t){return e.has(t)}function Qt(e,t){for(var n=-1,r=e.length;++n<r&&Ct(t,e[n],0)>-1;);return n}function Wt(e,t){for(var n=e.length;n--&&Ct(t,e[n],0)>-1;);return n}function Yt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Kt=Mt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Ht=Mt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Jt(e){return"\\"+et[e]}function Xt(e){return Ye.test(e)}function Zt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[i++]=n)}return o}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function on(e){return Xt(e)?function(e){for(var t=Qe.lastIndex=0;Qe.test(e);)++t;return t}(e):kt(e)}function an(e){return Xt(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.split("")}(e)}function sn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var un=Mt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),cn=function e(t){var n,r=(t=null==t?ot:cn.defaults(ot.Object(),t,cn.pick(ot,He))).Array,ie=t.Date,Ee=t.Error,we=t.Function,Se=t.Math,Te=t.Object,Oe=t.RegExp,Ie=t.String,xe=t.TypeError,De=r.prototype,Ae=we.prototype,ke=Te.prototype,Re=t["__core-js_shared__"],Pe=Ae.toString,Ce=ke.hasOwnProperty,Ne=0,Fe=(n=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",je=ke.toString,Ue=Pe.call(Te),Me=ot._,Le=Oe("^"+Pe.call(Ce).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=ut?t.Buffer:i,qe=t.Symbol,Ve=t.Uint8Array,$e=Be?Be.allocUnsafe:i,Qe=en(Te.getPrototypeOf,Te),Ye=Te.create,et=ke.propertyIsEnumerable,rt=De.splice,it=qe?qe.isConcatSpreadable:i,at=qe?qe.iterator:i,st=qe?qe.toStringTag:i,ct=function(){try{var e=co(Te,"defineProperty");return e({},"",{}),e}catch(e){}}(),lt=t.clearTimeout!==ot.clearTimeout&&t.clearTimeout,kt=ie&&ie.now!==ot.Date.now&&ie.now,Mt=t.setTimeout!==ot.setTimeout&&t.setTimeout,ln=Se.ceil,fn=Se.floor,pn=Te.getOwnPropertySymbols,dn=Be?Be.isBuffer:i,hn=t.isFinite,vn=De.join,yn=en(Te.keys,Te),mn=Se.max,gn=Se.min,_n=ie.now,bn=t.parseInt,En=Se.random,wn=De.reverse,Sn=co(t,"DataView"),Tn=co(t,"Map"),On=co(t,"Promise"),In=co(t,"Set"),xn=co(t,"WeakMap"),Dn=co(Te,"create"),An=xn&&new xn,kn={},Rn=Lo(Sn),Pn=Lo(Tn),Cn=Lo(On),Nn=Lo(In),Fn=Lo(xn),jn=qe?qe.prototype:i,Un=jn?jn.valueOf:i,Mn=jn?jn.toString:i;function Ln(e){if(ns(e)&&!za(e)&&!(e instanceof $n)){if(e instanceof Vn)return e;if(Ce.call(e,"__wrapped__"))return Bo(e)}return new Vn(e)}var Bn=function(){function e(){}return function(t){if(!ts(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function qn(){}function Vn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function $n(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function zn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Qn;++t<n;)this.add(e[t])}function Yn(e){var t=this.__data__=new zn(e);this.size=t.size}function Kn(e,t){var n=za(e),r=!n&&Ga(e),i=!n&&!r&&Ka(e),o=!n&&!r&&!i&&ls(e),a=n||r||i||o,s=a?qt(e.length,Ie):[],u=s.length;for(var c in e)!t&&!Ce.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||mo(c,u))||s.push(c);return s}function Hn(e){var t=e.length;return t?e[Qr(0,t-1)]:i}function Jn(e,t){return No(xi(e),ar(t,0,e.length))}function Xn(e){return No(xi(e))}function Zn(e,t,n){(n!==i&&!qa(e[t],n)||n===i&&!(t in e))&&ir(e,t,n)}function er(e,t,n){var r=e[t];Ce.call(e,t)&&qa(r,n)&&(n!==i||t in e)||ir(e,t,n)}function tr(e,t){for(var n=e.length;n--;)if(qa(e[n][0],t))return n;return-1}function nr(e,t,n,r){return fr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function rr(e,t){return e&&Di(t,Ps(t),e)}function ir(e,t,n){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var n=-1,o=t.length,a=r(o),s=null==e;++n<o;)a[n]=s?i:xs(e,t[n]);return a}function ar(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function sr(e,t,n,r,o,a){var s,u=1&t,c=2&t,l=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!ts(e))return e;var f=za(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ce.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return xi(e,s)}else{var p=po(e),d=p==b||p==E;if(Ka(e))return Ei(e,u);if(p==T||p==v||d&&!o){if(s=c||d?{}:vo(e),!u)return c?function(e,t){return Di(e,fo(e),t)}(e,function(e,t){return e&&Di(t,Cs(t),e)}(s,e)):function(e,t){return Di(e,lo(e),t)}(e,rr(s,e))}else{if(!Ze[p])return o?e:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case R:return wi(e);case m:case g:return new i(+e);case P:return function(e,t){var n=t?wi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case C:case N:case F:case j:case U:case M:case L:case B:case q:return Si(e,n);case w:return new i;case S:case D:return new i(e);case I:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case x:return new i;case A:return r=e,Un?Te(Un.call(r)):{}}}(e,p,u)}}a||(a=new Yn);var h=a.get(e);if(h)return h;a.set(e,s),ss(e)?e.forEach((function(r){s.add(sr(r,t,n,r,e,a))})):rs(e)&&e.forEach((function(r,i){s.set(i,sr(r,t,n,i,e,a))}));var y=f?i:(l?c?no:to:c?Cs:Ps)(e);return _t(y||e,(function(r,i){y&&(r=e[i=r]),er(s,i,sr(r,t,n,i,e,a))})),s}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=Te(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function cr(e,t,n){if("function"!=typeof e)throw new xe(o);return ko((function(){e.apply(i,n)}),t)}function lr(e,t,n,r){var i=-1,o=St,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=Ot(t,$t(n))),r?(o=Tt,a=!1):t.length>=200&&(o=zt,a=!1,t=new Wn(t));e:for(;++i<s;){var l=e[i],f=null==n?l:n(l);if(l=r||0!==l?l:0,a&&f==f){for(var p=c;p--;)if(t[p]===f)continue e;u.push(l)}else o(t,f,r)||u.push(l)}return u}Ln.templateSettings={escape:K,evaluate:H,interpolate:J,variable:"",imports:{_:Ln}},Ln.prototype=qn.prototype,Ln.prototype.constructor=Ln,Vn.prototype=Bn(qn.prototype),Vn.prototype.constructor=Vn,$n.prototype=Bn(qn.prototype),$n.prototype.constructor=$n,Gn.prototype.clear=function(){this.__data__=Dn?Dn(null):{},this.size=0},Gn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Gn.prototype.get=function(e){var t=this.__data__;if(Dn){var n=t[e];return n===a?i:n}return Ce.call(t,e)?t[e]:i},Gn.prototype.has=function(e){var t=this.__data__;return Dn?t[e]!==i:Ce.call(t,e)},Gn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Dn&&t===i?a:t,this},zn.prototype.clear=function(){this.__data__=[],this.size=0},zn.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():rt.call(t,n,1),--this.size,0))},zn.prototype.get=function(e){var t=this.__data__,n=tr(t,e);return n<0?i:t[n][1]},zn.prototype.has=function(e){return tr(this.__data__,e)>-1},zn.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(Tn||zn),string:new Gn}},Qn.prototype.delete=function(e){var t=so(this,e).delete(e);return this.size-=t?1:0,t},Qn.prototype.get=function(e){return so(this,e).get(e)},Qn.prototype.has=function(e){return so(this,e).has(e)},Qn.prototype.set=function(e,t){var n=so(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Wn.prototype.add=Wn.prototype.push=function(e){return this.__data__.set(e,a),this},Wn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.clear=function(){this.__data__=new zn,this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Yn.prototype.get=function(e){return this.__data__.get(e)},Yn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof zn){var r=n.__data__;if(!Tn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qn(r)}return n.set(e,t),this.size=n.size,this};var fr=Ri(_r),pr=Ri(br,!0);function dr(e,t){var n=!0;return fr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function hr(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=t(a);if(null!=s&&(u===i?s==s&&!cs(s):n(s,u)))var u=s,c=a}return c}function vr(e,t){var n=[];return fr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function yr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=yo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?yr(s,t-1,n,r,i):It(i,s):r||(i[i.length]=s)}return i}var mr=Pi(),gr=Pi(!0);function _r(e,t){return e&&mr(e,t,Ps)}function br(e,t){return e&&gr(e,t,Ps)}function Er(e,t){return wt(t,(function(t){return Xa(e[t])}))}function wr(e,t){for(var n=0,r=(t=mi(t,e)).length;null!=e&&n<r;)e=e[Mo(t[n++])];return n&&n==r?e:i}function Sr(e,t,n){var r=t(e);return za(e)?r:It(r,n(e))}function Tr(e){return null==e?e===i?"[object Undefined]":"[object Null]":st&&st in Te(e)?function(e){var t=Ce.call(e,st),n=e[st];try{e[st]=i;var r=!0}catch(e){}var o=je.call(e);return r&&(t?e[st]=n:delete e[st]),o}(e):function(e){return je.call(e)}(e)}function Or(e,t){return e>t}function Ir(e,t){return null!=e&&Ce.call(e,t)}function xr(e,t){return null!=e&&t in Te(e)}function Dr(e,t,n){for(var o=n?Tt:St,a=e[0].length,s=e.length,u=s,c=r(s),l=1/0,f=[];u--;){var p=e[u];u&&t&&(p=Ot(p,$t(t))),l=gn(p.length,l),c[u]=!n&&(t||a>=120&&p.length>=120)?new Wn(u&&p):i}p=e[0];var d=-1,h=c[0];e:for(;++d<a&&f.length<l;){var v=p[d],y=t?t(v):v;if(v=n||0!==v?v:0,!(h?zt(h,y):o(f,y,n))){for(u=s;--u;){var m=c[u];if(!(m?zt(m,y):o(e[u],y,n)))continue e}h&&h.push(y),f.push(v)}}return f}function Ar(e,t,n){var r=null==(e=Io(e,t=mi(t,e)))?e:e[Mo(Jo(t))];return null==r?i:mt(r,e,n)}function kr(e){return ns(e)&&Tr(e)==v}function Rr(e,t,n,r,o){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,n,r,o,a){var s=za(e),u=za(t),c=s?y:po(e),l=u?y:po(t),f=(c=c==v?T:c)==T,p=(l=l==v?T:l)==T,d=c==l;if(d&&Ka(e)){if(!Ka(t))return!1;s=!0,f=!1}if(d&&!f)return a||(a=new Yn),s||ls(e)?Zi(e,t,n,r,o,a):function(e,t,n,r,i,o,a){switch(n){case P:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case R:return!(e.byteLength!=t.byteLength||!o(new Ve(e),new Ve(t)));case m:case g:case S:return qa(+e,+t);case _:return e.name==t.name&&e.message==t.message;case I:case D:return e==t+"";case w:var s=Zt;case x:var u=1&r;if(s||(s=nn),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var l=Zi(s(e),s(t),r,i,o,a);return a.delete(e),l;case A:if(Un)return Un.call(e)==Un.call(t)}return!1}(e,t,c,n,r,o,a);if(!(1&n)){var h=f&&Ce.call(e,"__wrapped__"),b=p&&Ce.call(t,"__wrapped__");if(h||b){var E=h?e.value():e,O=b?t.value():t;return a||(a=new Yn),o(E,O,n,r,a)}}return!!d&&(a||(a=new Yn),function(e,t,n,r,o,a){var s=1&n,u=to(e),c=u.length;if(c!=to(t).length&&!s)return!1;for(var l=c;l--;){var f=u[l];if(!(s?f in t:Ce.call(t,f)))return!1}var p=a.get(e),d=a.get(t);if(p&&d)return p==t&&d==e;var h=!0;a.set(e,t),a.set(t,e);for(var v=s;++l<c;){var y=e[f=u[l]],m=t[f];if(r)var g=s?r(m,y,f,t,e,a):r(y,m,f,e,t,a);if(!(g===i?y===m||o(y,m,n,r,a):g)){h=!1;break}v||(v="constructor"==f)}if(h&&!v){var _=e.constructor,b=t.constructor;_==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,o,a))}(e,t,n,r,Rr,o))}function Pr(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=Te(e);o--;){var u=n[o];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<a;){var c=(u=n[o])[0],l=e[c],f=u[1];if(s&&u[2]){if(l===i&&!(c in e))return!1}else{var p=new Yn;if(r)var d=r(l,f,c,e,t,p);if(!(d===i?Rr(f,l,3,r,p):d))return!1}}return!0}function Cr(e){return!(!ts(e)||(t=e,Fe&&Fe in t))&&(Xa(e)?Le:ve).test(Lo(e));var t}function Nr(e){return"function"==typeof e?e:null==e?iu:"object"==typeof e?za(e)?Lr(e[0],e[1]):Mr(e):du(e)}function Fr(e){if(!wo(e))return yn(e);var t=[];for(var n in Te(e))Ce.call(e,n)&&"constructor"!=n&&t.push(n);return t}function jr(e,t){return e<t}function Ur(e,t){var n=-1,i=Wa(e)?r(e.length):[];return fr(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function Mr(e){var t=uo(e);return 1==t.length&&t[0][2]?To(t[0][0],t[0][1]):function(n){return n===e||Pr(n,e,t)}}function Lr(e,t){return _o(e)&&So(t)?To(Mo(e),t):function(n){var r=xs(n,e);return r===i&&r===t?Ds(n,e):Rr(t,r,3)}}function Br(e,t,n,r,o){e!==t&&mr(t,(function(a,s){if(o||(o=new Yn),ts(a))!function(e,t,n,r,o,a,s){var u=Do(e,n),c=Do(t,n),l=s.get(c);if(l)Zn(e,n,l);else{var f=a?a(u,c,n+"",e,t,s):i,p=f===i;if(p){var d=za(c),h=!d&&Ka(c),v=!d&&!h&&ls(c);f=c,d||h||v?za(u)?f=u:Ya(u)?f=xi(u):h?(p=!1,f=Ei(c,!0)):v?(p=!1,f=Si(c,!0)):f=[]:os(c)||Ga(c)?(f=u,Ga(u)?f=gs(u):ts(u)&&!Xa(u)||(f=vo(c))):p=!1}p&&(s.set(c,f),o(f,c,r,a,s),s.delete(c)),Zn(e,n,f)}}(e,t,s,n,Br,r,o);else{var u=r?r(Do(e,s),a,s+"",e,t,o):i;u===i&&(u=a),Zn(e,s,u)}}),Cs)}function qr(e,t){var n=e.length;if(n)return mo(t+=t<0?n:0,n)?e[t]:i}function Vr(e,t,n){t=t.length?Ot(t,(function(e){return za(e)?function(t){return wr(t,1===e.length?e[0]:e)}:e})):[iu];var r=-1;t=Ot(t,$t(ao()));var i=Ur(e,(function(e,n,i){var o=Ot(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var u=Ti(i[r],o[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(i)}function $r(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=wr(e,a);n(s,a)&&Jr(o,mi(a,e),s)}return o}function Gr(e,t,n,r){var i=r?Nt:Ct,o=-1,a=t.length,s=e;for(e===t&&(t=xi(t)),n&&(s=Ot(e,$t(n)));++o<a;)for(var u=0,c=t[o],l=n?n(c):c;(u=i(s,l,u,r))>-1;)s!==e&&rt.call(s,u,1),rt.call(e,u,1);return e}function zr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;mo(i)?rt.call(e,i,1):ci(e,i)}}return e}function Qr(e,t){return e+fn(En()*(t-e+1))}function Wr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=fn(t/2))&&(e+=e)}while(t);return n}function Yr(e,t){return Ro(Oo(e,t,iu),e+"")}function Kr(e){return Hn(qs(e))}function Hr(e,t){var n=qs(e);return No(n,ar(t,0,n.length))}function Jr(e,t,n,r){if(!ts(e))return e;for(var o=-1,a=(t=mi(t,e)).length,s=a-1,u=e;null!=u&&++o<a;){var c=Mo(t[o]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=s){var f=u[c];(l=r?r(f,c,u):i)===i&&(l=ts(f)?f:mo(t[o+1])?[]:{})}er(u,c,l),u=u[c]}return e}var Xr=An?function(e,t){return An.set(e,t),e}:iu,Zr=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:tu(t),writable:!0})}:iu;function ei(e){return No(qs(e))}function ti(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function ni(e,t){var n;return fr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ri(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!cs(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return ii(e,t,iu,n)}function ii(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,u=null===t,c=cs(t),l=t===i;o<a;){var f=fn((o+a)/2),p=n(e[f]),d=p!==i,h=null===p,v=p==p,y=cs(p);if(s)var m=r||v;else m=l?v&&(r||d):u?v&&d&&(r||!h):c?v&&d&&!h&&(r||!y):!h&&!y&&(r?p<=t:p<t);m?o=f+1:a=f}return gn(a,4294967294)}function oi(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!qa(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function ai(e){return"number"==typeof e?e:cs(e)?p:+e}function si(e){if("string"==typeof e)return e;if(za(e))return Ot(e,si)+"";if(cs(e))return Mn?Mn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ui(e,t,n){var r=-1,i=St,o=e.length,a=!0,s=[],u=s;if(n)a=!1,i=Tt;else if(o>=200){var c=t?null:Wi(e);if(c)return nn(c);a=!1,i=zt,u=new Wn}else u=t?[]:s;e:for(;++r<o;){var l=e[r],f=t?t(l):l;if(l=n||0!==l?l:0,a&&f==f){for(var p=u.length;p--;)if(u[p]===f)continue e;t&&u.push(f),s.push(l)}else i(u,f,n)||(u!==s&&u.push(f),s.push(l))}return s}function ci(e,t){return null==(e=Io(e,t=mi(t,e)))||delete e[Mo(Jo(t))]}function li(e,t,n,r){return Jr(e,t,n(wr(e,t)),r)}function fi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ti(e,r?0:o,r?o+1:i):ti(e,r?o+1:0,r?i:o)}function pi(e,t){var n=e;return n instanceof $n&&(n=n.value()),xt(t,(function(e,t){return t.func.apply(t.thisArg,It([e],t.args))}),n)}function di(e,t,n){var i=e.length;if(i<2)return i?ui(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],u=-1;++u<i;)u!=o&&(a[o]=lr(a[o]||s,e[u],t,n));return ui(yr(a,1),t,n)}function hi(e,t,n){for(var r=-1,o=e.length,a=t.length,s={};++r<o;){var u=r<a?t[r]:i;n(s,e[r],u)}return s}function vi(e){return Ya(e)?e:[]}function yi(e){return"function"==typeof e?e:iu}function mi(e,t){return za(e)?e:_o(e,t)?[e]:Uo(_s(e))}var gi=Yr;function _i(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ti(e,t,n)}var bi=lt||function(e){return ot.clearTimeout(e)};function Ei(e,t){if(t)return e.slice();var n=e.length,r=$e?$e(n):new e.constructor(n);return e.copy(r),r}function wi(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function Si(e,t){var n=t?wi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ti(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=cs(e),s=t!==i,u=null===t,c=t==t,l=cs(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!l&&e<t||l&&n&&o&&!r&&!a||u&&n&&o||!s&&o||!c)return-1}return 0}function Oi(e,t,n,i){for(var o=-1,a=e.length,s=n.length,u=-1,c=t.length,l=mn(a-s,0),f=r(c+l),p=!i;++u<c;)f[u]=t[u];for(;++o<s;)(p||o<a)&&(f[n[o]]=e[o]);for(;l--;)f[u++]=e[o++];return f}function Ii(e,t,n,i){for(var o=-1,a=e.length,s=-1,u=n.length,c=-1,l=t.length,f=mn(a-u,0),p=r(f+l),d=!i;++o<f;)p[o]=e[o];for(var h=o;++c<l;)p[h+c]=t[c];for(;++s<u;)(d||o<a)&&(p[h+n[s]]=e[o++]);return p}function xi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Di(e,t,n,r){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var u=t[a],c=r?r(n[u],e[u],u,n,e):i;c===i&&(c=e[u]),o?ir(n,u,c):er(n,u,c)}return n}function Ai(e,t){return function(n,r){var i=za(n)?gt:nr,o=t?t():{};return i(n,e,ao(r,2),o)}}function ki(e){return Yr((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&go(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=Te(t);++r<o;){var u=n[r];u&&e(t,u,r,a)}return t}))}function Ri(e,t){return function(n,r){if(null==n)return n;if(!Wa(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Te(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Pi(e){return function(t,n,r){for(var i=-1,o=Te(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}function Ci(e){return function(t){var n=Xt(t=_s(t))?an(t):i,r=n?n[0]:t.charAt(0),o=n?_i(n,1).join(""):t.slice(1);return r[e]()+o}}function Ni(e){return function(t){return xt(Xs(Gs(t).replace(Ge,"")),e,"")}}function Fi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Bn(e.prototype),r=e.apply(n,t);return ts(r)?r:n}}function ji(e){return function(t,n,r){var o=Te(t);if(!Wa(t)){var a=ao(n,3);t=Ps(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-1?o[a?t[s]:s]:i}}function Ui(e){return eo((function(t){var n=t.length,r=n,a=Vn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new xe(o);if(a&&!u&&"wrapper"==io(s))var u=new Vn([],!0)}for(r=u?r:n;++r<n;){var c=io(s=t[r]),l="wrapper"==c?ro(s):i;u=l&&bo(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[io(l[0])].apply(u,l[3]):1==s.length&&bo(s)?u[c]():u.thru(s)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&za(r))return u.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Mi(e,t,n,o,a,s,u,l,f,p){var d=t&c,h=1&t,v=2&t,y=24&t,m=512&t,g=v?i:Fi(e);return function i(){for(var c=arguments.length,_=r(c),b=c;b--;)_[b]=arguments[b];if(y)var E=oo(i),w=Yt(_,E);if(o&&(_=Oi(_,o,a,y)),s&&(_=Ii(_,s,u,y)),c-=w,y&&c<p){var S=tn(_,E);return zi(e,t,Mi,i.placeholder,n,_,S,l,f,p-c)}var T=h?n:this,O=v?T[e]:e;return c=_.length,l?_=xo(_,l):m&&c>1&&_.reverse(),d&&f<c&&(_.length=f),this&&this!==ot&&this instanceof i&&(O=g||Fi(O)),O.apply(T,_)}}function Li(e,t){return function(n,r){return function(e,t,n,r){return _r(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Bi(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=si(n),r=si(r)):(n=ai(n),r=ai(r)),o=e(n,r)}return o}}function qi(e){return eo((function(t){return t=Ot(t,$t(ao())),Yr((function(n){var r=this;return e(t,(function(e){return mt(e,r,n)}))}))}))}function Vi(e,t){var n=(t=t===i?" ":si(t)).length;if(n<2)return n?Wr(t,e):t;var r=Wr(t,ln(e/on(t)));return Xt(t)?_i(an(r),0,e).join(""):r.slice(0,e)}function $i(e){return function(t,n,o){return o&&"number"!=typeof o&&go(t,n,o)&&(n=o=i),t=hs(t),n===i?(n=t,t=0):n=hs(n),function(e,t,n,i){for(var o=-1,a=mn(ln((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,o=o===i?t<n?1:-1:hs(o),e)}}function Gi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ms(t),n=ms(n)),e(t,n)}}function zi(e,t,n,r,o,a,s,c,l,f){var p=8&t;t|=p?u:64,4&(t&=~(p?64:u))||(t&=-4);var d=[e,t,o,p?a:i,p?s:i,p?i:a,p?i:s,c,l,f],h=n.apply(i,d);return bo(e)&&Ao(h,d),h.placeholder=r,Po(h,e,t)}function Qi(e){var t=Se[e];return function(e,n){if(e=ms(e),(n=null==n?0:gn(vs(n),292))&&hn(e)){var r=(_s(e)+"e").split("e");return+((r=(_s(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Wi=In&&1/nn(new In([,-0]))[1]==l?function(e){return new In(e)}:cu;function Yi(e){return function(t){var n=po(t);return n==w?Zt(t):n==x?rn(t):function(e,t){return Ot(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ki(e,t,n,a,l,f,p,d){var h=2&t;if(!h&&"function"!=typeof e)throw new xe(o);var v=a?a.length:0;if(v||(t&=-97,a=l=i),p=p===i?p:mn(vs(p),0),d=d===i?d:vs(d),v-=l?l.length:0,64&t){var y=a,m=l;a=l=i}var g=h?i:ro(e),_=[e,t,n,a,l,y,m,f,p,d];if(g&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?Oi(l,u,t[4]):u,e[4]=l?tn(e[3],s):t[4]}(u=t[5])&&(l=e[5],e[5]=l?Ii(l,u,t[6]):u,e[6]=l?tn(e[5],s):t[6]),(u=t[7])&&(e[7]=u),r&c&&(e[8]=null==e[8]?t[8]:gn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(_,g),e=_[0],t=_[1],n=_[2],a=_[3],l=_[4],!(d=_[9]=_[9]===i?h?0:e.length:mn(_[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)b=8==t||16==t?function(e,t,n){var o=Fi(e);return function a(){for(var s=arguments.length,u=r(s),c=s,l=oo(a);c--;)u[c]=arguments[c];var f=s<3&&u[0]!==l&&u[s-1]!==l?[]:tn(u,l);return(s-=f.length)<n?zi(e,t,Mi,a.placeholder,i,u,f,i,i,n-s):mt(this&&this!==ot&&this instanceof a?o:e,this,u)}}(e,t,d):t!=u&&33!=t||l.length?Mi.apply(i,_):function(e,t,n,i){var o=1&t,a=Fi(e);return function t(){for(var s=-1,u=arguments.length,c=-1,l=i.length,f=r(l+u),p=this&&this!==ot&&this instanceof t?a:e;++c<l;)f[c]=i[c];for(;u--;)f[c++]=arguments[++s];return mt(p,o?n:this,f)}}(e,t,n,a);else var b=function(e,t,n){var r=1&t,i=Fi(e);return function t(){return(this&&this!==ot&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return Po((g?Xr:Ao)(b,_),e,t)}function Hi(e,t,n,r){return e===i||qa(e,ke[n])&&!Ce.call(r,n)?t:e}function Ji(e,t,n,r,o,a){return ts(e)&&ts(t)&&(a.set(t,e),Br(e,t,i,Ji,a),a.delete(t)),e}function Xi(e){return os(e)?i:e}function Zi(e,t,n,r,o,a){var s=1&n,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var l=a.get(e),f=a.get(t);if(l&&f)return l==t&&f==e;var p=-1,d=!0,h=2&n?new Wn:i;for(a.set(e,t),a.set(t,e);++p<u;){var v=e[p],y=t[p];if(r)var m=s?r(y,v,p,t,e,a):r(v,y,p,e,t,a);if(m!==i){if(m)continue;d=!1;break}if(h){if(!At(t,(function(e,t){if(!zt(h,t)&&(v===e||o(v,e,n,r,a)))return h.push(t)}))){d=!1;break}}else if(v!==y&&!o(v,y,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function eo(e){return Ro(Oo(e,i,Qo),e+"")}function to(e){return Sr(e,Ps,lo)}function no(e){return Sr(e,Cs,fo)}var ro=An?function(e){return An.get(e)}:cu;function io(e){for(var t=e.name+"",n=kn[t],r=Ce.call(kn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function oo(e){return(Ce.call(Ln,"placeholder")?Ln:e).placeholder}function ao(){var e=Ln.iteratee||ou;return e=e===ou?Nr:e,arguments.length?e(arguments[0],arguments[1]):e}function so(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function uo(e){for(var t=Ps(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,So(i)]}return t}function co(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Cr(n)?n:i}var lo=pn?function(e){return null==e?[]:(e=Te(e),wt(pn(e),(function(t){return et.call(e,t)})))}:yu,fo=pn?function(e){for(var t=[];e;)It(t,lo(e)),e=Qe(e);return t}:yu,po=Tr;function ho(e,t,n){for(var r=-1,i=(t=mi(t,e)).length,o=!1;++r<i;){var a=Mo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&es(i)&&mo(a,i)&&(za(e)||Ga(e))}function vo(e){return"function"!=typeof e.constructor||wo(e)?{}:Bn(Qe(e))}function yo(e){return za(e)||Ga(e)||!!(it&&e&&e[it])}function mo(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&me.test(e))&&e>-1&&e%1==0&&e<t}function go(e,t,n){if(!ts(n))return!1;var r=typeof t;return!!("number"==r?Wa(n)&&mo(t,n.length):"string"==r&&t in n)&&qa(n[t],e)}function _o(e,t){if(za(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cs(e))||Z.test(e)||!X.test(e)||null!=t&&e in Te(t)}function bo(e){var t=io(e),n=Ln[t];if("function"!=typeof n||!(t in $n.prototype))return!1;if(e===n)return!0;var r=ro(n);return!!r&&e===r[0]}(Sn&&po(new Sn(new ArrayBuffer(1)))!=P||Tn&&po(new Tn)!=w||On&&po(On.resolve())!=O||In&&po(new In)!=x||xn&&po(new xn)!=k)&&(po=function(e){var t=Tr(e),n=t==T?e.constructor:i,r=n?Lo(n):"";if(r)switch(r){case Rn:return P;case Pn:return w;case Cn:return O;case Nn:return x;case Fn:return k}return t});var Eo=Re?Xa:mu;function wo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ke)}function So(e){return e==e&&!ts(e)}function To(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in Te(n))}}function Oo(e,t,n){return t=mn(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=mn(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var u=r(t+1);++o<t;)u[o]=i[o];return u[t]=n(s),mt(e,this,u)}}function Io(e,t){return t.length<2?e:wr(e,ti(t,0,-1))}function xo(e,t){for(var n=e.length,r=gn(t.length,n),o=xi(e);r--;){var a=t[r];e[r]=mo(a,n)?o[a]:i}return e}function Do(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ao=Co(Xr),ko=Mt||function(e,t){return ot.setTimeout(e,t)},Ro=Co(Zr);function Po(e,t,n){var r=t+"";return Ro(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return _t(h,(function(n){var r="_."+n[0];t&n[1]&&!St(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Co(e){var t=0,n=0;return function(){var r=_n(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function No(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=Qr(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Fo,jo,Uo=(Fo=Fa((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,i){t.push(r?i.replace(le,"$1"):n||e)})),t}),(function(e){return 500===jo.size&&jo.clear(),e})),jo=Fo.cache,Fo);function Mo(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Lo(e){if(null!=e){try{return Pe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Bo(e){if(e instanceof $n)return e.clone();var t=new Vn(e.__wrapped__,e.__chain__);return t.__actions__=xi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var qo=Yr((function(e,t){return Ya(e)?lr(e,yr(t,1,Ya,!0)):[]})),Vo=Yr((function(e,t){var n=Jo(t);return Ya(n)&&(n=i),Ya(e)?lr(e,yr(t,1,Ya,!0),ao(n,2)):[]})),$o=Yr((function(e,t){var n=Jo(t);return Ya(n)&&(n=i),Ya(e)?lr(e,yr(t,1,Ya,!0),i,n):[]}));function Go(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=mn(r+i,0)),Pt(e,ao(t,3),i)}function zo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=vs(n),o=n<0?mn(r+o,0):gn(o,r-1)),Pt(e,ao(t,3),o,!0)}function Qo(e){return null!=e&&e.length?yr(e,1):[]}function Wo(e){return e&&e.length?e[0]:i}var Yo=Yr((function(e){var t=Ot(e,vi);return t.length&&t[0]===e[0]?Dr(t):[]})),Ko=Yr((function(e){var t=Jo(e),n=Ot(e,vi);return t===Jo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Dr(n,ao(t,2)):[]})),Ho=Yr((function(e){var t=Jo(e),n=Ot(e,vi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Dr(n,i,t):[]}));function Jo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Xo=Yr(Zo);function Zo(e,t){return e&&e.length&&t&&t.length?Gr(e,t):e}var ea=eo((function(e,t){var n=null==e?0:e.length,r=or(e,t);return zr(e,Ot(t,(function(e){return mo(e,n)?+e:e})).sort(Ti)),r}));function ta(e){return null==e?e:wn.call(e)}var na=Yr((function(e){return ui(yr(e,1,Ya,!0))})),ra=Yr((function(e){var t=Jo(e);return Ya(t)&&(t=i),ui(yr(e,1,Ya,!0),ao(t,2))})),ia=Yr((function(e){var t=Jo(e);return t="function"==typeof t?t:i,ui(yr(e,1,Ya,!0),i,t)}));function oa(e){if(!e||!e.length)return[];var t=0;return e=wt(e,(function(e){if(Ya(e))return t=mn(e.length,t),!0})),qt(t,(function(t){return Ot(e,Ut(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=oa(e);return null==t?n:Ot(n,(function(e){return mt(t,i,e)}))}var sa=Yr((function(e,t){return Ya(e)?lr(e,t):[]})),ua=Yr((function(e){return di(wt(e,Ya))})),ca=Yr((function(e){var t=Jo(e);return Ya(t)&&(t=i),di(wt(e,Ya),ao(t,2))})),la=Yr((function(e){var t=Jo(e);return t="function"==typeof t?t:i,di(wt(e,Ya),i,t)})),fa=Yr(oa),pa=Yr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,aa(e,n)}));function da(e){var t=Ln(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var va=eo((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof $n&&mo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ha,args:[o],thisArg:i}),new Vn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)})),ya=Ai((function(e,t,n){Ce.call(e,n)?++e[n]:ir(e,n,1)})),ma=ji(Go),ga=ji(zo);function _a(e,t){return(za(e)?_t:fr)(e,ao(t,3))}function ba(e,t){return(za(e)?bt:pr)(e,ao(t,3))}var Ea=Ai((function(e,t,n){Ce.call(e,n)?e[n].push(t):ir(e,n,[t])})),wa=Yr((function(e,t,n){var i=-1,o="function"==typeof t,a=Wa(e)?r(e.length):[];return fr(e,(function(e){a[++i]=o?mt(t,e,n):Ar(e,t,n)})),a})),Sa=Ai((function(e,t,n){ir(e,n,t)}));function Ta(e,t){return(za(e)?Ot:Ur)(e,ao(t,3))}var Oa=Ai((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Ia=Yr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&go(e,t[0],t[1])?t=[]:n>2&&go(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,yr(t,1),[])})),xa=kt||function(){return ot.Date.now()};function Da(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ki(e,c,i,i,i,i,t)}function Aa(e,t){var n;if("function"!=typeof t)throw new xe(o);return e=vs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var ka=Yr((function(e,t,n){var r=1;if(n.length){var i=tn(n,oo(ka));r|=u}return Ki(e,r,t,n,i)})),Ra=Yr((function(e,t,n){var r=3;if(n.length){var i=tn(n,oo(Ra));r|=u}return Ki(t,r,e,n,i)}));function Pa(e,t,n){var r,a,s,u,c,l,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new xe(o);function v(t){var n=r,o=a;return r=a=i,f=t,u=e.apply(o,n)}function y(e){return f=e,c=ko(g,t),p?v(e):u}function m(e){var n=e-l;return l===i||n>=t||n<0||d&&e-f>=s}function g(){var e=xa();if(m(e))return _(e);c=ko(g,function(e){var n=t-(e-l);return d?gn(n,s-(e-f)):n}(e))}function _(e){return c=i,h&&r?v(e):(r=a=i,u)}function b(){var e=xa(),n=m(e);if(r=arguments,a=this,l=e,n){if(c===i)return y(l);if(d)return bi(c),c=ko(g,t),v(l)}return c===i&&(c=ko(g,t)),u}return t=ms(t)||0,ts(n)&&(p=!!n.leading,s=(d="maxWait"in n)?mn(ms(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),b.cancel=function(){c!==i&&bi(c),f=0,r=l=a=c=i},b.flush=function(){return c===i?u:_(xa())},b}var Ca=Yr((function(e,t){return cr(e,1,t)})),Na=Yr((function(e,t,n){return cr(e,ms(t)||0,n)}));function Fa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new xe(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Fa.Cache||Qn),n}function ja(e){if("function"!=typeof e)throw new xe(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Fa.Cache=Qn;var Ua=gi((function(e,t){var n=(t=1==t.length&&za(t[0])?Ot(t[0],$t(ao())):Ot(yr(t,1),$t(ao()))).length;return Yr((function(r){for(var i=-1,o=gn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return mt(e,this,r)}))})),Ma=Yr((function(e,t){var n=tn(t,oo(Ma));return Ki(e,u,i,t,n)})),La=Yr((function(e,t){var n=tn(t,oo(La));return Ki(e,64,i,t,n)})),Ba=eo((function(e,t){return Ki(e,256,i,i,i,t)}));function qa(e,t){return e===t||e!=e&&t!=t}var Va=Gi(Or),$a=Gi((function(e,t){return e>=t})),Ga=kr(function(){return arguments}())?kr:function(e){return ns(e)&&Ce.call(e,"callee")&&!et.call(e,"callee")},za=r.isArray,Qa=ft?$t(ft):function(e){return ns(e)&&Tr(e)==R};function Wa(e){return null!=e&&es(e.length)&&!Xa(e)}function Ya(e){return ns(e)&&Wa(e)}var Ka=dn||mu,Ha=pt?$t(pt):function(e){return ns(e)&&Tr(e)==g};function Ja(e){if(!ns(e))return!1;var t=Tr(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!os(e)}function Xa(e){if(!ts(e))return!1;var t=Tr(e);return t==b||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Za(e){return"number"==typeof e&&e==vs(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var rs=dt?$t(dt):function(e){return ns(e)&&po(e)==w};function is(e){return"number"==typeof e||ns(e)&&Tr(e)==S}function os(e){if(!ns(e)||Tr(e)!=T)return!1;var t=Qe(e);if(null===t)return!0;var n=Ce.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Pe.call(n)==Ue}var as=ht?$t(ht):function(e){return ns(e)&&Tr(e)==I},ss=vt?$t(vt):function(e){return ns(e)&&po(e)==x};function us(e){return"string"==typeof e||!za(e)&&ns(e)&&Tr(e)==D}function cs(e){return"symbol"==typeof e||ns(e)&&Tr(e)==A}var ls=yt?$t(yt):function(e){return ns(e)&&es(e.length)&&!!Xe[Tr(e)]},fs=Gi(jr),ps=Gi((function(e,t){return e<=t}));function ds(e){if(!e)return[];if(Wa(e))return us(e)?an(e):xi(e);if(at&&e[at])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[at]());var t=po(e);return(t==w?Zt:t==x?nn:qs)(e)}function hs(e){return e?(e=ms(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function vs(e){var t=hs(e),n=t%1;return t==t?n?t-n:t:0}function ys(e){return e?ar(vs(e),0,d):0}function ms(e){if("number"==typeof e)return e;if(cs(e))return p;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Vt(e);var n=he.test(e);return n||ye.test(e)?nt(e.slice(2),n?2:8):de.test(e)?p:+e}function gs(e){return Di(e,Cs(e))}function _s(e){return null==e?"":si(e)}var bs=ki((function(e,t){if(wo(t)||Wa(t))Di(t,Ps(t),e);else for(var n in t)Ce.call(t,n)&&er(e,n,t[n])})),Es=ki((function(e,t){Di(t,Cs(t),e)})),ws=ki((function(e,t,n,r){Di(t,Cs(t),e,r)})),Ss=ki((function(e,t,n,r){Di(t,Ps(t),e,r)})),Ts=eo(or),Os=Yr((function(e,t){e=Te(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&go(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],s=Cs(a),u=-1,c=s.length;++u<c;){var l=s[u],f=e[l];(f===i||qa(f,ke[l])&&!Ce.call(e,l))&&(e[l]=a[l])}return e})),Is=Yr((function(e){return e.push(i,Ji),mt(Fs,i,e)}));function xs(e,t,n){var r=null==e?i:wr(e,t);return r===i?n:r}function Ds(e,t){return null!=e&&ho(e,t,xr)}var As=Li((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),e[t]=n}),tu(iu)),ks=Li((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),Ce.call(e,t)?e[t].push(n):e[t]=[n]}),ao),Rs=Yr(Ar);function Ps(e){return Wa(e)?Kn(e):Fr(e)}function Cs(e){return Wa(e)?Kn(e,!0):function(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in Te(e))t.push(n);return t}(e);var t=wo(e),n=[];for(var r in e)("constructor"!=r||!t&&Ce.call(e,r))&&n.push(r);return n}(e)}var Ns=ki((function(e,t,n){Br(e,t,n)})),Fs=ki((function(e,t,n,r){Br(e,t,n,r)})),js=eo((function(e,t){var n={};if(null==e)return n;var r=!1;t=Ot(t,(function(t){return t=mi(t,e),r||(r=t.length>1),t})),Di(e,no(e),n),r&&(n=sr(n,7,Xi));for(var i=t.length;i--;)ci(n,t[i]);return n})),Us=eo((function(e,t){return null==e?{}:function(e,t){return $r(e,t,(function(t,n){return Ds(e,n)}))}(e,t)}));function Ms(e,t){if(null==e)return{};var n=Ot(no(e),(function(e){return[e]}));return t=ao(t),$r(e,n,(function(e,n){return t(e,n[0])}))}var Ls=Yi(Ps),Bs=Yi(Cs);function qs(e){return null==e?[]:Gt(e,Ps(e))}var Vs=Ni((function(e,t,n){return t=t.toLowerCase(),e+(n?$s(t):t)}));function $s(e){return Js(_s(e).toLowerCase())}function Gs(e){return(e=_s(e))&&e.replace(ge,Kt).replace(ze,"")}var zs=Ni((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Qs=Ni((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ws=Ci("toLowerCase"),Ys=Ni((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ks=Ni((function(e,t,n){return e+(n?" ":"")+Js(t)})),Hs=Ni((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Js=Ci("toUpperCase");function Xs(e,t,n){return e=_s(e),(t=n?i:t)===i?function(e){return Ke.test(e)}(e)?function(e){return e.match(We)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Zs=Yr((function(e,t){try{return mt(e,i,t)}catch(e){return Ja(e)?e:new Ee(e)}})),eu=eo((function(e,t){return _t(t,(function(t){t=Mo(t),ir(e,t,ka(e[t],e))})),e}));function tu(e){return function(){return e}}var nu=Ui(),ru=Ui(!0);function iu(e){return e}function ou(e){return Nr("function"==typeof e?e:sr(e,1))}var au=Yr((function(e,t){return function(n){return Ar(n,e,t)}})),su=Yr((function(e,t){return function(n){return Ar(e,n,t)}}));function uu(e,t,n){var r=Ps(t),i=Er(t,r);null!=n||ts(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Er(t,Ps(t)));var o=!(ts(n)&&"chain"in n&&!n.chain),a=Xa(e);return _t(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=xi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,It([this.value()],arguments))})})),e}function cu(){}var lu=qi(Ot),fu=qi(Et),pu=qi(At);function du(e){return _o(e)?Ut(Mo(e)):function(e){return function(t){return wr(t,e)}}(e)}var hu=$i(),vu=$i(!0);function yu(){return[]}function mu(){return!1}var gu,_u=Bi((function(e,t){return e+t}),0),bu=Qi("ceil"),Eu=Bi((function(e,t){return e/t}),1),wu=Qi("floor"),Su=Bi((function(e,t){return e*t}),1),Tu=Qi("round"),Ou=Bi((function(e,t){return e-t}),0);return Ln.after=function(e,t){if("function"!=typeof t)throw new xe(o);return e=vs(e),function(){if(--e<1)return t.apply(this,arguments)}},Ln.ary=Da,Ln.assign=bs,Ln.assignIn=Es,Ln.assignInWith=ws,Ln.assignWith=Ss,Ln.at=Ts,Ln.before=Aa,Ln.bind=ka,Ln.bindAll=eu,Ln.bindKey=Ra,Ln.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return za(e)?e:[e]},Ln.chain=da,Ln.chunk=function(e,t,n){t=(n?go(e,t,n):t===i)?1:mn(vs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,u=r(ln(o/t));a<o;)u[s++]=ti(e,a,a+=t);return u},Ln.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Ln.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return It(za(n)?xi(n):[n],yr(t,1))},Ln.cond=function(e){var t=null==e?0:e.length,n=ao();return e=t?Ot(e,(function(e){if("function"!=typeof e[1])throw new xe(o);return[n(e[0]),e[1]]})):[],Yr((function(n){for(var r=-1;++r<t;){var i=e[r];if(mt(i[0],this,n))return mt(i[1],this,n)}}))},Ln.conforms=function(e){return function(e){var t=Ps(e);return function(n){return ur(n,e,t)}}(sr(e,1))},Ln.constant=tu,Ln.countBy=ya,Ln.create=function(e,t){var n=Bn(e);return null==t?n:rr(n,t)},Ln.curry=function e(t,n,r){var o=Ki(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Ln.curryRight=function e(t,n,r){var o=Ki(t,16,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Ln.debounce=Pa,Ln.defaults=Os,Ln.defaultsDeep=Is,Ln.defer=Ca,Ln.delay=Na,Ln.difference=qo,Ln.differenceBy=Vo,Ln.differenceWith=$o,Ln.drop=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,(t=n||t===i?1:vs(t))<0?0:t,r):[]},Ln.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,0,(t=r-(t=n||t===i?1:vs(t)))<0?0:t):[]},Ln.dropRightWhile=function(e,t){return e&&e.length?fi(e,ao(t,3),!0,!0):[]},Ln.dropWhile=function(e,t){return e&&e.length?fi(e,ao(t,3),!0):[]},Ln.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&go(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=vs(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:vs(r))<0&&(r+=o),r=n>r?0:ys(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Ln.filter=function(e,t){return(za(e)?wt:vr)(e,ao(t,3))},Ln.flatMap=function(e,t){return yr(Ta(e,t),1)},Ln.flatMapDeep=function(e,t){return yr(Ta(e,t),l)},Ln.flatMapDepth=function(e,t,n){return n=n===i?1:vs(n),yr(Ta(e,t),n)},Ln.flatten=Qo,Ln.flattenDeep=function(e){return null!=e&&e.length?yr(e,l):[]},Ln.flattenDepth=function(e,t){return null!=e&&e.length?yr(e,t=t===i?1:vs(t)):[]},Ln.flip=function(e){return Ki(e,512)},Ln.flow=nu,Ln.flowRight=ru,Ln.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Ln.functions=function(e){return null==e?[]:Er(e,Ps(e))},Ln.functionsIn=function(e){return null==e?[]:Er(e,Cs(e))},Ln.groupBy=Ea,Ln.initial=function(e){return null!=e&&e.length?ti(e,0,-1):[]},Ln.intersection=Yo,Ln.intersectionBy=Ko,Ln.intersectionWith=Ho,Ln.invert=As,Ln.invertBy=ks,Ln.invokeMap=wa,Ln.iteratee=ou,Ln.keyBy=Sa,Ln.keys=Ps,Ln.keysIn=Cs,Ln.map=Ta,Ln.mapKeys=function(e,t){var n={};return t=ao(t,3),_r(e,(function(e,r,i){ir(n,t(e,r,i),e)})),n},Ln.mapValues=function(e,t){var n={};return t=ao(t,3),_r(e,(function(e,r,i){ir(n,r,t(e,r,i))})),n},Ln.matches=function(e){return Mr(sr(e,1))},Ln.matchesProperty=function(e,t){return Lr(e,sr(t,1))},Ln.memoize=Fa,Ln.merge=Ns,Ln.mergeWith=Fs,Ln.method=au,Ln.methodOf=su,Ln.mixin=uu,Ln.negate=ja,Ln.nthArg=function(e){return e=vs(e),Yr((function(t){return qr(t,e)}))},Ln.omit=js,Ln.omitBy=function(e,t){return Ms(e,ja(ao(t)))},Ln.once=function(e){return Aa(2,e)},Ln.orderBy=function(e,t,n,r){return null==e?[]:(za(t)||(t=null==t?[]:[t]),za(n=r?i:n)||(n=null==n?[]:[n]),Vr(e,t,n))},Ln.over=lu,Ln.overArgs=Ua,Ln.overEvery=fu,Ln.overSome=pu,Ln.partial=Ma,Ln.partialRight=La,Ln.partition=Oa,Ln.pick=Us,Ln.pickBy=Ms,Ln.property=du,Ln.propertyOf=function(e){return function(t){return null==e?i:wr(e,t)}},Ln.pull=Xo,Ln.pullAll=Zo,Ln.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,ao(n,2)):e},Ln.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,i,n):e},Ln.pullAt=ea,Ln.range=hu,Ln.rangeRight=vu,Ln.rearg=Ba,Ln.reject=function(e,t){return(za(e)?wt:vr)(e,ja(ao(t,3)))},Ln.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=ao(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return zr(e,i),n},Ln.rest=function(e,t){if("function"!=typeof e)throw new xe(o);return Yr(e,t=t===i?t:vs(t))},Ln.reverse=ta,Ln.sampleSize=function(e,t,n){return t=(n?go(e,t,n):t===i)?1:vs(t),(za(e)?Jn:Hr)(e,t)},Ln.set=function(e,t,n){return null==e?e:Jr(e,t,n)},Ln.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Jr(e,t,n,r)},Ln.shuffle=function(e){return(za(e)?Xn:ei)(e)},Ln.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&go(e,t,n)?(t=0,n=r):(t=null==t?0:vs(t),n=n===i?r:vs(n)),ti(e,t,n)):[]},Ln.sortBy=Ia,Ln.sortedUniq=function(e){return e&&e.length?oi(e):[]},Ln.sortedUniqBy=function(e,t){return e&&e.length?oi(e,ao(t,2)):[]},Ln.split=function(e,t,n){return n&&"number"!=typeof n&&go(e,t,n)&&(t=n=i),(n=n===i?d:n>>>0)?(e=_s(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=si(t))&&Xt(e)?_i(an(e),0,n):e.split(t,n):[]},Ln.spread=function(e,t){if("function"!=typeof e)throw new xe(o);return t=null==t?0:mn(vs(t),0),Yr((function(n){var r=n[t],i=_i(n,0,t);return r&&It(i,r),mt(e,this,i)}))},Ln.tail=function(e){var t=null==e?0:e.length;return t?ti(e,1,t):[]},Ln.take=function(e,t,n){return e&&e.length?ti(e,0,(t=n||t===i?1:vs(t))<0?0:t):[]},Ln.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,(t=r-(t=n||t===i?1:vs(t)))<0?0:t,r):[]},Ln.takeRightWhile=function(e,t){return e&&e.length?fi(e,ao(t,3),!1,!0):[]},Ln.takeWhile=function(e,t){return e&&e.length?fi(e,ao(t,3)):[]},Ln.tap=function(e,t){return t(e),e},Ln.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new xe(o);return ts(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Pa(e,t,{leading:r,maxWait:t,trailing:i})},Ln.thru=ha,Ln.toArray=ds,Ln.toPairs=Ls,Ln.toPairsIn=Bs,Ln.toPath=function(e){return za(e)?Ot(e,Mo):cs(e)?[e]:xi(Uo(_s(e)))},Ln.toPlainObject=gs,Ln.transform=function(e,t,n){var r=za(e),i=r||Ka(e)||ls(e);if(t=ao(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ts(e)&&Xa(o)?Bn(Qe(e)):{}}return(i?_t:_r)(e,(function(e,r,i){return t(n,e,r,i)})),n},Ln.unary=function(e){return Da(e,1)},Ln.union=na,Ln.unionBy=ra,Ln.unionWith=ia,Ln.uniq=function(e){return e&&e.length?ui(e):[]},Ln.uniqBy=function(e,t){return e&&e.length?ui(e,ao(t,2)):[]},Ln.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ui(e,i,t):[]},Ln.unset=function(e,t){return null==e||ci(e,t)},Ln.unzip=oa,Ln.unzipWith=aa,Ln.update=function(e,t,n){return null==e?e:li(e,t,yi(n))},Ln.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:li(e,t,yi(n),r)},Ln.values=qs,Ln.valuesIn=function(e){return null==e?[]:Gt(e,Cs(e))},Ln.without=sa,Ln.words=Xs,Ln.wrap=function(e,t){return Ma(yi(t),e)},Ln.xor=ua,Ln.xorBy=ca,Ln.xorWith=la,Ln.zip=fa,Ln.zipObject=function(e,t){return hi(e||[],t||[],er)},Ln.zipObjectDeep=function(e,t){return hi(e||[],t||[],Jr)},Ln.zipWith=pa,Ln.entries=Ls,Ln.entriesIn=Bs,Ln.extend=Es,Ln.extendWith=ws,uu(Ln,Ln),Ln.add=_u,Ln.attempt=Zs,Ln.camelCase=Vs,Ln.capitalize=$s,Ln.ceil=bu,Ln.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ms(n))==n?n:0),t!==i&&(t=(t=ms(t))==t?t:0),ar(ms(e),t,n)},Ln.clone=function(e){return sr(e,4)},Ln.cloneDeep=function(e){return sr(e,5)},Ln.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:i)},Ln.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:i)},Ln.conformsTo=function(e,t){return null==t||ur(e,t,Ps(t))},Ln.deburr=Gs,Ln.defaultTo=function(e,t){return null==e||e!=e?t:e},Ln.divide=Eu,Ln.endsWith=function(e,t,n){e=_s(e),t=si(t);var r=e.length,o=n=n===i?r:ar(vs(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Ln.eq=qa,Ln.escape=function(e){return(e=_s(e))&&Y.test(e)?e.replace(Q,Ht):e},Ln.escapeRegExp=function(e){return(e=_s(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Ln.every=function(e,t,n){var r=za(e)?Et:dr;return n&&go(e,t,n)&&(t=i),r(e,ao(t,3))},Ln.find=ma,Ln.findIndex=Go,Ln.findKey=function(e,t){return Rt(e,ao(t,3),_r)},Ln.findLast=ga,Ln.findLastIndex=zo,Ln.findLastKey=function(e,t){return Rt(e,ao(t,3),br)},Ln.floor=wu,Ln.forEach=_a,Ln.forEachRight=ba,Ln.forIn=function(e,t){return null==e?e:mr(e,ao(t,3),Cs)},Ln.forInRight=function(e,t){return null==e?e:gr(e,ao(t,3),Cs)},Ln.forOwn=function(e,t){return e&&_r(e,ao(t,3))},Ln.forOwnRight=function(e,t){return e&&br(e,ao(t,3))},Ln.get=xs,Ln.gt=Va,Ln.gte=$a,Ln.has=function(e,t){return null!=e&&ho(e,t,Ir)},Ln.hasIn=Ds,Ln.head=Wo,Ln.identity=iu,Ln.includes=function(e,t,n,r){e=Wa(e)?e:qs(e),n=n&&!r?vs(n):0;var i=e.length;return n<0&&(n=mn(i+n,0)),us(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Ct(e,t,n)>-1},Ln.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=mn(r+i,0)),Ct(e,t,i)},Ln.inRange=function(e,t,n){return t=hs(t),n===i?(n=t,t=0):n=hs(n),function(e,t,n){return e>=gn(t,n)&&e<mn(t,n)}(e=ms(e),t,n)},Ln.invoke=Rs,Ln.isArguments=Ga,Ln.isArray=za,Ln.isArrayBuffer=Qa,Ln.isArrayLike=Wa,Ln.isArrayLikeObject=Ya,Ln.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Tr(e)==m},Ln.isBuffer=Ka,Ln.isDate=Ha,Ln.isElement=function(e){return ns(e)&&1===e.nodeType&&!os(e)},Ln.isEmpty=function(e){if(null==e)return!0;if(Wa(e)&&(za(e)||"string"==typeof e||"function"==typeof e.splice||Ka(e)||ls(e)||Ga(e)))return!e.length;var t=po(e);if(t==w||t==x)return!e.size;if(wo(e))return!Fr(e).length;for(var n in e)if(Ce.call(e,n))return!1;return!0},Ln.isEqual=function(e,t){return Rr(e,t)},Ln.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Rr(e,t,i,n):!!r},Ln.isError=Ja,Ln.isFinite=function(e){return"number"==typeof e&&hn(e)},Ln.isFunction=Xa,Ln.isInteger=Za,Ln.isLength=es,Ln.isMap=rs,Ln.isMatch=function(e,t){return e===t||Pr(e,t,uo(t))},Ln.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Pr(e,t,uo(t),n)},Ln.isNaN=function(e){return is(e)&&e!=+e},Ln.isNative=function(e){if(Eo(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Cr(e)},Ln.isNil=function(e){return null==e},Ln.isNull=function(e){return null===e},Ln.isNumber=is,Ln.isObject=ts,Ln.isObjectLike=ns,Ln.isPlainObject=os,Ln.isRegExp=as,Ln.isSafeInteger=function(e){return Za(e)&&e>=-9007199254740991&&e<=f},Ln.isSet=ss,Ln.isString=us,Ln.isSymbol=cs,Ln.isTypedArray=ls,Ln.isUndefined=function(e){return e===i},Ln.isWeakMap=function(e){return ns(e)&&po(e)==k},Ln.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Tr(e)},Ln.join=function(e,t){return null==e?"":vn.call(e,t)},Ln.kebabCase=zs,Ln.last=Jo,Ln.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=vs(n))<0?mn(r+o,0):gn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Pt(e,Ft,o,!0)},Ln.lowerCase=Qs,Ln.lowerFirst=Ws,Ln.lt=fs,Ln.lte=ps,Ln.max=function(e){return e&&e.length?hr(e,iu,Or):i},Ln.maxBy=function(e,t){return e&&e.length?hr(e,ao(t,2),Or):i},Ln.mean=function(e){return jt(e,iu)},Ln.meanBy=function(e,t){return jt(e,ao(t,2))},Ln.min=function(e){return e&&e.length?hr(e,iu,jr):i},Ln.minBy=function(e,t){return e&&e.length?hr(e,ao(t,2),jr):i},Ln.stubArray=yu,Ln.stubFalse=mu,Ln.stubObject=function(){return{}},Ln.stubString=function(){return""},Ln.stubTrue=function(){return!0},Ln.multiply=Su,Ln.nth=function(e,t){return e&&e.length?qr(e,vs(t)):i},Ln.noConflict=function(){return ot._===this&&(ot._=Me),this},Ln.noop=cu,Ln.now=xa,Ln.pad=function(e,t,n){e=_s(e);var r=(t=vs(t))?on(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Vi(fn(i),n)+e+Vi(ln(i),n)},Ln.padEnd=function(e,t,n){e=_s(e);var r=(t=vs(t))?on(e):0;return t&&r<t?e+Vi(t-r,n):e},Ln.padStart=function(e,t,n){e=_s(e);var r=(t=vs(t))?on(e):0;return t&&r<t?Vi(t-r,n)+e:e},Ln.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(_s(e).replace(re,""),t||0)},Ln.random=function(e,t,n){if(n&&"boolean"!=typeof n&&go(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=hs(e),t===i?(t=e,e=0):t=hs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=En();return gn(e+o*(t-e+tt("1e-"+((o+"").length-1))),t)}return Qr(e,t)},Ln.reduce=function(e,t,n){var r=za(e)?xt:Lt,i=arguments.length<3;return r(e,ao(t,4),n,i,fr)},Ln.reduceRight=function(e,t,n){var r=za(e)?Dt:Lt,i=arguments.length<3;return r(e,ao(t,4),n,i,pr)},Ln.repeat=function(e,t,n){return t=(n?go(e,t,n):t===i)?1:vs(t),Wr(_s(e),t)},Ln.replace=function(){var e=arguments,t=_s(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Ln.result=function(e,t,n){var r=-1,o=(t=mi(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[Mo(t[r])];a===i&&(r=o,a=n),e=Xa(a)?a.call(e):a}return e},Ln.round=Tu,Ln.runInContext=e,Ln.sample=function(e){return(za(e)?Hn:Kr)(e)},Ln.size=function(e){if(null==e)return 0;if(Wa(e))return us(e)?on(e):e.length;var t=po(e);return t==w||t==x?e.size:Fr(e).length},Ln.snakeCase=Ys,Ln.some=function(e,t,n){var r=za(e)?At:ni;return n&&go(e,t,n)&&(t=i),r(e,ao(t,3))},Ln.sortedIndex=function(e,t){return ri(e,t)},Ln.sortedIndexBy=function(e,t,n){return ii(e,t,ao(n,2))},Ln.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ri(e,t);if(r<n&&qa(e[r],t))return r}return-1},Ln.sortedLastIndex=function(e,t){return ri(e,t,!0)},Ln.sortedLastIndexBy=function(e,t,n){return ii(e,t,ao(n,2),!0)},Ln.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ri(e,t,!0)-1;if(qa(e[n],t))return n}return-1},Ln.startCase=Ks,Ln.startsWith=function(e,t,n){return e=_s(e),n=null==n?0:ar(vs(n),0,e.length),t=si(t),e.slice(n,n+t.length)==t},Ln.subtract=Ou,Ln.sum=function(e){return e&&e.length?Bt(e,iu):0},Ln.sumBy=function(e,t){return e&&e.length?Bt(e,ao(t,2)):0},Ln.template=function(e,t,n){var r=Ln.templateSettings;n&&go(e,t,n)&&(t=i),e=_s(e),t=ws({},t,r,Hi);var o,a,s=ws({},t.imports,r.imports,Hi),u=Ps(s),c=Gt(s,u),l=0,f=t.interpolate||_e,p="__p += '",d=Oe((t.escape||_e).source+"|"+f.source+"|"+(f===J?fe:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),h="//# sourceURL="+(Ce.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Je+"]")+"\n";e.replace(d,(function(t,n,r,i,s,u){return r||(r=i),p+=e.slice(l,u).replace(be,Jt),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+t.length,t})),p+="';\n";var v=Ce.call(t,"variable")&&t.variable;if(v){if(ce.test(v))throw new Ee("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(V,""):p).replace($,"$1").replace(G,"$1;"),p="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y=Zs((function(){return we(u,h+"return "+p).apply(i,c)}));if(y.source=p,Ja(y))throw y;return y},Ln.times=function(e,t){if((e=vs(e))<1||e>f)return[];var n=d,r=gn(e,d);t=ao(t),e-=d;for(var i=qt(r,t);++n<e;)t(n);return i},Ln.toFinite=hs,Ln.toInteger=vs,Ln.toLength=ys,Ln.toLower=function(e){return _s(e).toLowerCase()},Ln.toNumber=ms,Ln.toSafeInteger=function(e){return e?ar(vs(e),-9007199254740991,f):0===e?e:0},Ln.toString=_s,Ln.toUpper=function(e){return _s(e).toUpperCase()},Ln.trim=function(e,t,n){if((e=_s(e))&&(n||t===i))return Vt(e);if(!e||!(t=si(t)))return e;var r=an(e),o=an(t);return _i(r,Qt(r,o),Wt(r,o)+1).join("")},Ln.trimEnd=function(e,t,n){if((e=_s(e))&&(n||t===i))return e.slice(0,sn(e)+1);if(!e||!(t=si(t)))return e;var r=an(e);return _i(r,0,Wt(r,an(t))+1).join("")},Ln.trimStart=function(e,t,n){if((e=_s(e))&&(n||t===i))return e.replace(re,"");if(!e||!(t=si(t)))return e;var r=an(e);return _i(r,Qt(r,an(t))).join("")},Ln.truncate=function(e,t){var n=30,r="...";if(ts(t)){var o="separator"in t?t.separator:o;n="length"in t?vs(t.length):n,r="omission"in t?si(t.omission):r}var a=(e=_s(e)).length;if(Xt(e)){var s=an(e);a=s.length}if(n>=a)return e;var u=n-on(r);if(u<1)return r;var c=s?_i(s,0,u).join(""):e.slice(0,u);if(o===i)return c+r;if(s&&(u+=c.length-u),as(o)){if(e.slice(u).search(o)){var l,f=c;for(o.global||(o=Oe(o.source,_s(pe.exec(o))+"g")),o.lastIndex=0;l=o.exec(f);)var p=l.index;c=c.slice(0,p===i?u:p)}}else if(e.indexOf(si(o),u)!=u){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+r},Ln.unescape=function(e){return(e=_s(e))&&W.test(e)?e.replace(z,un):e},Ln.uniqueId=function(e){var t=++Ne;return _s(e)+t},Ln.upperCase=Hs,Ln.upperFirst=Js,Ln.each=_a,Ln.eachRight=ba,Ln.first=Wo,uu(Ln,(gu={},_r(Ln,(function(e,t){Ce.call(Ln.prototype,t)||(gu[t]=e)})),gu),{chain:!1}),Ln.VERSION="4.17.21",_t(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Ln[e].placeholder=Ln})),_t(["drop","take"],(function(e,t){$n.prototype[e]=function(n){n=n===i?1:mn(vs(n),0);var r=this.__filtered__&&!t?new $n(this):this.clone();return r.__filtered__?r.__takeCount__=gn(n,r.__takeCount__):r.__views__.push({size:gn(n,d),type:e+(r.__dir__<0?"Right":"")}),r},$n.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),_t(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;$n.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ao(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),_t(["head","last"],(function(e,t){var n="take"+(t?"Right":"");$n.prototype[e]=function(){return this[n](1).value()[0]}})),_t(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");$n.prototype[e]=function(){return this.__filtered__?new $n(this):this[n](1)}})),$n.prototype.compact=function(){return this.filter(iu)},$n.prototype.find=function(e){return this.filter(e).head()},$n.prototype.findLast=function(e){return this.reverse().find(e)},$n.prototype.invokeMap=Yr((function(e,t){return"function"==typeof e?new $n(this):this.map((function(n){return Ar(n,e,t)}))})),$n.prototype.reject=function(e){return this.filter(ja(ao(e)))},$n.prototype.slice=function(e,t){e=vs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new $n(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=vs(t))<0?n.dropRight(-t):n.take(t-e)),n)},$n.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},$n.prototype.toArray=function(){return this.take(d)},_r($n.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Ln[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(Ln.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof $n,c=s[0],l=u||za(t),f=function(e){var t=o.apply(Ln,It([e],s));return r&&p?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,v=u&&!d;if(!a&&l){t=v?t:new $n(this);var y=e.apply(t,s);return y.__actions__.push({func:ha,args:[f],thisArg:i}),new Vn(y,p)}return h&&v?e.apply(this,s):(y=this.thru(f),h?r?y.value()[0]:y.value():y)})})),_t(["pop","push","shift","sort","splice","unshift"],(function(e){var t=De[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Ln.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(za(i)?i:[],e)}return this[n]((function(n){return t.apply(za(n)?n:[],e)}))}})),_r($n.prototype,(function(e,t){var n=Ln[t];if(n){var r=n.name+"";Ce.call(kn,r)||(kn[r]=[]),kn[r].push({name:t,func:n})}})),kn[Mi(i,2).name]=[{name:"wrapper",func:i}],$n.prototype.clone=function(){var e=new $n(this.__wrapped__);return e.__actions__=xi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=xi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=xi(this.__views__),e},$n.prototype.reverse=function(){if(this.__filtered__){var e=new $n(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},$n.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=za(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=gn(t,e+a);break;case"takeRight":e=mn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,f=l.length,p=0,d=gn(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return pi(e,this.__actions__);var h=[];e:for(;u--&&p<d;){for(var v=-1,y=e[c+=t];++v<f;){var m=l[v],g=m.iteratee,_=m.type,b=g(y);if(2==_)y=b;else if(!b){if(1==_)continue e;break e}}h[p++]=y}return h},Ln.prototype.at=va,Ln.prototype.chain=function(){return da(this)},Ln.prototype.commit=function(){return new Vn(this.value(),this.__chain__)},Ln.prototype.next=function(){this.__values__===i&&(this.__values__=ds(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Ln.prototype.plant=function(e){for(var t,n=this;n instanceof qn;){var r=Bo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Ln.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof $n){var t=e;return this.__actions__.length&&(t=new $n(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ta],thisArg:i}),new Vn(t,this.__chain__)}return this.thru(ta)},Ln.prototype.toJSON=Ln.prototype.valueOf=Ln.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},Ln.prototype.first=Ln.prototype.head,at&&(Ln.prototype[at]=function(){return this}),Ln}();ot._=cn,(r=function(){return cn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},5161:(e,t,n)=>{var r=n(9932),i=n(7206),o=n(9199),a=n(1469);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},8306:(e,t,n)=>{var r=n(3369);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},2492:(e,t,n)=>{var r=n(2980),i=n(1463)((function(e,t,n){r(e,t,n)}));e.exports=i},7557:(e,t,n)=>{var r=n(9932),i=n(5990),o=n(7406),a=n(1811),s=n(8363),u=n(696),c=n(9021),l=n(6904),f=c((function(e,t){var n={};if(null==e)return n;var c=!1;t=r(t,(function(t){return t=a(t,e),c||(c=t.length>1),t})),s(e,l(e),n),c&&(n=i(n,7,u));for(var f=t.length;f--;)o(n,t[f]);return n}));e.exports=f},9601:(e,t,n)=>{var r=n(371),i=n(9152),o=n(5403),a=n(327);e.exports=function(e){return o(e)?r(a(e)):i(e)}},9704:(e,t,n)=>{var r=n(2908),i=n(7206),o=n(5076),a=n(1469),s=n(6612);e.exports=function(e,t,n){var u=a(e)?r:o;return n&&s(e,t,n)&&(t=void 0),u(e,i(t,3))}},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},8601:(e,t,n)=>{var r=n(4841);e.exports=function(e){return e?Infinity===(e=r(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},554:(e,t,n)=>{var r=n(8601);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},4841:(e,t,n)=>{var r=n(7561),i=n(3218),o=n(3448),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},9881:(e,t,n)=>{var r=n(8363),i=n(1704);e.exports=function(e){return r(e,i(e))}},9833:(e,t,n)=>{var r=n(531);e.exports=function(e){return null==e?"":r(e)}},2628:(e,t,n)=>{var r=n(7415),i=n(3674);e.exports=function(e){return null==e?[]:r(e,i(e))}},2527:(e,t,n)=>{"use strict";t.TypedEmitter=n(7187).EventEmitter},8801:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AccessDeniedReason:()=>u,Alignment:()=>d.v2,BOOLEAN_DEFAULT_FALLBACK_ENTITLEMENT:()=>h,BillingModel:()=>d.Fz,BillingPeriod:()=>d.tv,Currency:()=>d.F,CustomerModel:()=>m,DiscountDurationType:()=>d.C2,DiscountType:()=>d.Lb,EntitlementResetPeriod:()=>f,ExperimentGroupType:()=>d.zO,FeatureType:()=>c,FontWeight:()=>d.U9,LogLevel:()=>o,METERED_DEFAULT_FALLBACK_ENTITLEMENT:()=>y,MeterType:()=>l,NUMERIC_DEFAULT_FALLBACK_ENTITLEMENT:()=>v,PricingType:()=>d._H,PromotionalEntitlementStatus:()=>d.$V,SubscriptionScheduleType:()=>d.YV,SubscriptionStatus:()=>d.yh,TrialPeriodUnits:()=>d.p1,WidgetType:()=>d.l9,default:()=>sl});var r={};n.r(r),n.d(r,{FunctionToString:()=>Fo,InboundFilters:()=>Yo});var i={};n.r(i),n.d(i,{Breadcrumbs:()=>us,Dedupe:()=>ms,GlobalHandlers:()=>Wa,HttpContext:()=>ys,LinkedErrors:()=>ds,TryCatch:()=>es});var o,a=n(4721),s=n.n(a);!function(e){e.ALL="ALL",e.NONE="NONE",e.LOG="LOG",e.ERROR="ERROR"}(o||(o={}));var u,c,l,f,p=function(){function e(e,t){this.logger=e,this.logLevel=t}return e.prototype.error=function(e,t){this.logLevel!==o.NONE&&this.logger.error("[Stigg] ".concat(e),t||{})},e.prototype.log=function(e,t){s()([o.ERROR,o.NONE],this.logLevel)||this.logger.log("[Stigg] ".concat(e),t||{})},e.prototype.debug=function(e,t){s()([o.LOG,o.ALL],this.logLevel)&&this.logger.debug("[Stigg] ".concat(e),t||{})},e}(),d=n(890);!function(e){e.InvalidFeatureType="InvalidFeatureType",e.CustomerNotFound="CustomerNotFound",e.FeatureNotFound="FeatureNotFound",e.NoActiveSubscriptions="NoActiveSubscriptions",e.CustomerNotEntitledForFeature="CustomerNotEntitledForFeature",e.RequestedUsageExceedsLimit="RequestedUsageExceedsLimit",e.Unknown="Unknown"}(u||(u={})),function(e){e.Boolean="Boolean",e.Numeric="Numeric"}(c||(c={})),function(e){e.Fluctuating="Fluctuating",e.Incremental="Incremental",e.None="None"}(l||(l={})),function(e){e.Daily="Daily",e.Hourly="Hourly",e.Monthly="Monthly",e.Weekly="Weekly"}(f||(f={}));var h={isFallback:!0,hasAccess:!1,accessDeniedReason:u.Unknown},v={isFallback:!0,hasAccess:!1,isUnlimited:!1,accessDeniedReason:u.Unknown},y={isFallback:!0,hasAccess:!1,isUnlimited:!1,currentUsage:0,requestedUsage:1,accessDeniedReason:u.Unknown},m=function(){function e(e){Object.assign(this,e)}return e.prototype.getActiveSubscriptions=function(){return this.subscriptions.filter((function(e){return e.status===d.yh.Active}))},e.prototype.getActiveTrials=function(){return this.subscriptions.filter((function(e){return e.status===d.yh.InTrial}))},e.prototype.getActivePromotionalEntitlements=function(){return this.promotionalEntitlements.filter((function(e){return e.status===d.$V.Active}))},e}();const g=function(){function e(e,t){this.client=e,this.edgeApiClient=t}return e.prototype.getSdkConfiguration=function(){return this.edgeApiClient?this.edgeApiClient.getSdkConfiguration():this.client.query({query:d.N9})},e}();var _=function(){return _=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},_.apply(this,arguments)},b=function(){function e(e,t){this.client=e,this.edgeApiClient=t}return e.prototype.getPaywall=function(e){var t=e.productId,n=e.customerId,r=e.resourceId,i=e.context,o=e.billingCountryCode;return!n&&this.edgeApiClient?this.edgeApiClient.getPaywall(t,o):this.client.query({query:d.RV,fetchPolicy:"no-cache",variables:{input:_(_(_(_(_({},t?{productId:t}:{}),n?{customerId:n}:{}),r?{resourceId:r}:{}),i?{context:i}:{}),o?{billingCountryCode:o}:{})}})},e}();const E=b;const w=function(){function e(e){this.client=e}return e.prototype.getCustomer=function(e){return this.client.query({query:d.Ze,variables:{input:{customerId:e}},fetchPolicy:"no-cache"})},e.prototype.getActiveSubscriptions=function(e,t){return n=this,r=void 0,o=function(){return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(n){return[2,this.client.query({query:d.Op,variables:{input:{customerId:e,resourceId:t}},fetchPolicy:"no-cache"})]}))},new((i=void 0)||(i=Promise))((function(e,t){function a(e){try{u(o.next(e))}catch(e){t(e)}}function s(e){try{u(o.throw(e))}catch(e){t(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(a,s)}u((o=o.apply(n,r||[])).next())}));var n,r,i,o},e.prototype.getCustomerPortal=function(e,t){return this.client.query({query:d.$A,variables:{input:{customerId:e,resourceId:t}},fetchPolicy:"no-cache"})},e}(),S=function(){function e(e){this.client=e}return e.prototype.getCoupons=function(){return this.client.query({query:d.Q$,fetchPolicy:"no-cache"})},e}();var T=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},O=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},I=function(){function e(e){this.client=e}return e.prototype.estimateSubscription=function(e){var t;return T(this,void 0,void 0,(function(){return O(this,(function(n){return[2,this.client.mutate({mutation:d.m5,variables:{input:{planId:e.planId,customerId:e.customerId,startDate:e.startDate,addons:e.addons,billingPeriod:e.billingPeriod,priceUnitAmount:e.unitQuantity,billingInformation:{taxRateIds:null===(t=null==e?void 0:e.billingInformation)||void 0===t?void 0:t.taxRateIds},promotionCode:e.promotionCode,billingCountryCode:e.billingCountryCode,skipTrial:e.skipTrial}}})]}))}))},e.prototype.estimateSubscriptionUpdate=function(e){return T(this,void 0,void 0,(function(){return O(this,(function(t){return[2,this.client.mutate({mutation:d.wO,variables:{input:{subscriptionId:e.subscriptionId,unitQuantity:e.unitQuantity,addons:e.addons,promotionCode:e.promotionCode}}})]}))}))},e}();const x=I;var D=function(){return D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},D.apply(this,arguments)},A=function(){function e(e){this.client=e}return e.prototype.getMockPaywall=function(e){var t=e.productId,n=e.customerId,r=e.context;return this.client.query({query:d._x,fetchPolicy:"no-cache",variables:{input:D(D(D({},t?{productId:t}:{}),n?{customerId:n}:{}),r?{context:r}:{})}})},e}();const k=A,R=function(e,t){this.sdkConfiguration=new g(e,t),this.paywall=new E(e,t),this.mockPaywall=new k(e),this.customers=new w(e),this.coupons=new S(e),this.subscriptionEstimations=new x(e)};var P=n(1609),C=n.n(P),N=n(2492),F=n.n(N),j=d.PO.JsClientSdk,U=function(){var e="https://api.stigg.io";return{baseUri:e,baseEdgeUri:M(e),entitlementPollingInterval:3e4,useEntitlementPolling:!0,logConfiguration:{logger:console,logLevel:o.ERROR},enableEdge:!0}};function M(e){var t=new URL(e);return"localhost"===t.hostname?t.port="3060":t.hostname="edge.".concat(t.hostname),t.toString().slice(0,-1)}function L(e){var t=e.customerId;if(!t||C()(t))throw new Error("You must set customer ID first, use setCustomerId function or pass it via the constructor");return t}var B=n(5161),q=n.n(B),V=n(7557),$=n.n(V),G=n(9704),z=n.n(G),Q=function(){return Q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Q.apply(this,arguments)},W=function(){function e(){this.getResetPeriodData=function(e,t){switch(e){case f.Monthly:return{monthlyResetPeriodConfiguration:{accordingTo:t.monthlyAccordingTo||d.pS.SubscriptionStart}};case f.Weekly:return{weeklyResetPeriodConfiguration:{accordingTo:t.weeklyAccordingTo||d.rC.EveryFriday}};default:return{}}}}return e.prototype.mapBooleanEntitlement=function(e,t){return{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,feature:e.calculatedEntitlement.feature?Q(Q({},e.calculatedEntitlement.feature),{isMetered:!1}):void 0}},e.prototype.mapNumericEntitlement=function(e,t){var n=e.calculatedEntitlement,r=n.hasUnlimitedUsage,i=n.usageLimit;return{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,isUnlimited:r,value:i||void 0,feature:e.calculatedEntitlement.feature?Q(Q({},e.calculatedEntitlement.feature),{isMetered:!1}):void 0}},e.prototype.mapMeteredEntitlement=function(e,t,n){var r=e.calculatedEntitlement,i=r.hasUnlimitedUsage,o=r.usageLimit,a=r.feature,s=e.featureUsage,u=s.currentUsage,l=s.nextResetDate,f=s.resetPeriod,p=null;return a&&a.featureType===c.Numeric&&a.meterType===d.pu.Incremental&&f&&(p={nextResetDate:l,resetPeriod:f}),{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,isUnlimited:i,usageLimit:o||void 0,currentUsage:u,requestedUsage:n||0,resetSettings:p||void 0,feature:e.calculatedEntitlement.feature?Q(Q({},e.calculatedEntitlement.feature),{meterType:e.calculatedEntitlement.feature.meterType||void 0,isMetered:!0}):void 0}},e.prototype.mapEntitlement=function(e,t,n){var r=e.calculatedEntitlement;if(!r.feature)return this.mapBooleanEntitlement(e,t);var i=r.feature,o=i.featureType,a=i.meterType,s=o===c.Numeric&&(a===d.pu.Incremental||a===d.pu.Fluctuating);switch(o){case c.Boolean:return this.mapBooleanEntitlement(e,t);case c.Numeric:return s?this.mapMeteredEntitlement(e,t,n):this.mapNumericEntitlement(e,t)}},e.prototype.mapFeatureType=function(e){switch(e){case d.Te.Boolean:return c.Boolean;case d.Te.Number:return c.Numeric}},e.prototype.mapEntitlementResetPeriod=function(e){switch(e){case d.XH.Day:return f.Daily;case d.XH.Hour:return f.Hourly;case d.XH.Week:return f.Weekly;case d.XH.Month:return f.Monthly}},e.prototype.mapApiEntitlementResetPeriod=function(e){switch(e){case f.Daily:return d.XH.Day;case f.Hourly:return d.XH.Hour;case f.Weekly:return d.XH.Week;case f.Monthly:return d.XH.Month}},e.prototype.mapCachedEntitlement=function(e,t,n){var r;return e.feature&&(r={id:e.feature.refId,featureType:this.mapFeatureType(e.feature.featureType),meterType:e.feature.meterType||void 0,units:e.feature.featureUnits||void 0,unitsPlural:e.feature.featureUnitsPlural||void 0,displayName:e.feature.displayName,description:e.feature.description||""}),{calculatedEntitlement:{usageLimit:e.usageLimit,hasUnlimitedUsage:e.hasUnlimitedUsage,feature:r},featureUsage:{resetPeriod:e.resetPeriod?this.mapEntitlementResetPeriod(e.resetPeriod):void 0,resetPeriodConfiguration:e.resetPeriodConfiguration,currentUsage:t||e.currentUsage||0,nextResetDate:n||e.nextResetDate}}},e.prototype.mapCachedEntitlements=function(e){var t=this;return new Map(e.map((function(e){var n;return[(null===(n=e.feature)||void 0===n?void 0:n.refId)||"",t.mapCachedEntitlement(e)]})))},e.prototype.mapPlans=function(e){var t=this;return((null==e?void 0:e.paywall.plans)||[]).map((function(e,n){return t.mapPlan(e,n)}))},e.prototype.mapPaywall=function(e){return{plans:this.mapPlans(e),configuration:null==e?void 0:e.paywall.configuration,customer:(null==e?void 0:e.paywall.customer)?this.mapCustomer(null==e?void 0:e.paywall.customer):null,resource:(null==e?void 0:e.paywall.resource)?this.mapResource(null==e?void 0:e.paywall.resource):null,currency:e.paywall.currency}},e.prototype.mapMockPlans=function(e){var t=this;return{plans:((null==e?void 0:e.mockPaywall.plans)||[]).map((function(e,n){return t.mapPlan(e,n)})),configuration:e.mockPaywall.configuration,customer:null,resource:null,currency:{code:d.F.Usd,symbol:"$"}}},e.prototype.mapCoupons=function(e){var t=this;return e.coupons.edges.map((function(e){return e.node})).map((function(e){return t.mapCoupon(e)}))},e.prototype.mapResource=function(e){return{id:e.resourceId}},e.prototype.mapCustomerPortal=function(e){var t=e.resource?this.mapResource(e.resource):null;return Q(Q({},e),{resource:t})},e.prototype.mapCustomer=function(e){var t,n,r=this;return new m({id:e.refId,name:e.name||void 0,email:e.email||void 0,createdAt:new Date(e.createdAt),updatedAt:new Date(e.updatedAt),hasPaymentMethod:e.hasPaymentMethod,subscriptions:q()(e.subscriptions,(function(e){return r.mapSubscription(e)})),promotionalEntitlements:q()(e.promotionalEntitlements,(function(e){return r.mapPromotionalEntitlement(e)})),metadata:e.additionalMetaData,paymentMethodDetails:this.mapPaymentDetails(e),trialedPlans:(null===(t=e.trialedPlans)||void 0===t?void 0:t.map((function(e){return{productId:e.productRefId,planId:e.planRefId}})))||void 0,eligibleForTrial:null===(n=e.eligibleForTrial)||void 0===n?void 0:n.map((function(e){return{productId:e.productRefId,eligible:e.eligible}})),experimentInfo:$()(e.experimentInfo,"__typename")})},e.prototype.mapPaymentDetails=function(e){var t=e.defaultPaymentExpirationYear,n=e.defaultPaymentExpirationMonth,r=e.defaultPaymentMethodLast4Digits;if(z()([r,n,t],(function(e){return e})))return{expirationMonth:n,expirationYear:t,last4Digits:r}},e.prototype.mapTotalPrice=function(e,t,n){var r=e.feature,i=e.price,o={pricingModel:e.billingModel,billingPeriod:e.billingPeriod,amount:t.total.amount,grossAmount:t.subTotal.amount,currency:i.currency};return r&&(o.feature={displayName:r.displayName,units:r.featureUnits,unitsPlural:r.featureUnitsPlural,unitQuantity:n}),o},e.prototype.mapPrice=function(e,t){var n=e.feature,r=e.price,i=e.billingId,o=e.billingModel,a=e.billingPeriod,s=e.minUnitQuantity,u=e.maxUnitQuantity,c=e.billingCountryCode,l={pricingModel:o,billingPeriod:a,billingId:i,amount:r.amount,currency:r.currency,minUnitQuantity:s,maxUnitQuantity:u,billingCountryCode:c};return n&&(l.feature={displayName:n.displayName,units:n.featureUnits,unitsPlural:n.featureUnitsPlural,unitQuantity:t}),l},e.prototype.mapPlan=function(e,t){var n=this;return void 0===t&&(t=0),{id:e.refId,order:t,displayName:e.displayName,description:e.description,billingId:e.billingId,basePlan:e.basePlan?{id:e.basePlan.refId,displayName:e.basePlan.displayName}:void 0,entitlements:q()(e.entitlements,(function(e){return n.mapPackageEntitlement(e)})),inheritedEntitlements:q()(e.inheritedEntitlements,(function(e){return n.mapPackageEntitlement(e)})),pricePoints:q()(e.prices,(function(e){return n.mapPrice(e)})),pricingType:e.pricingType,defaultTrialConfig:e.defaultTrialConfig,compatibleAddons:this.mapCompatibleAddons(e),product:{id:e.product.refId,displayName:e.product.displayName,description:e.product.description,metadata:e.product.additionalMetaData},metadata:e.additionalMetaData}},e.prototype.mapCompatibleAddons=function(e){var t=this;if(e.pricingType===d._H.Free||!e.compatibleAddons)return[];var n=e.compatibleAddons;return(e.pricingType===d._H.Paid?n.filter((function(e){return e.pricingType===d._H.Paid})):n).map((function(e){return t.mapAddon(e)}))},e.prototype.mapPackageEntitlement=function(e){var t=e.feature;return t?{usageLimit:e.usageLimit||0,feature:{id:t.refId,featureType:this.mapFeatureType(t.featureType),description:t.description||"",meterType:t.meterType||void 0,units:t.featureUnits||void 0,unitsPlural:t.featureUnitsPlural||void 0,displayName:t.displayName,isMetered:t.meterType===d.pu.Fluctuating||t.meterType===d.pu.Incremental,metadata:t.additionalMetaData},isCustom:e.isCustom||void 0,hasUnlimitedUsage:e.hasUnlimitedUsage,resetPeriod:e.resetPeriod?this.mapEntitlementResetPeriod(e.resetPeriod):void 0,hiddenFromWidgets:e.hiddenFromWidgets,displayNameOverride:e.displayNameOverride}:{usageLimit:e.usageLimit||0,hasUnlimitedUsage:e.hasUnlimitedUsage,resetPeriod:e.resetPeriod?this.mapEntitlementResetPeriod(e.resetPeriod):void 0}},e.prototype.mapPromotionalEntitlement=function(e){var t=e.feature;return{status:e.status,usageLimit:e.usageLimit||0,feature:{id:t.refId,displayName:t.displayName,description:t.description||"",featureType:this.mapFeatureType(t.featureType),meterType:t.meterType||void 0,units:t.featureUnits||void 0,unitsPlural:t.featureUnitsPlural||void 0,isMetered:t.meterType===d.pu.Fluctuating||t.meterType===d.pu.Incremental},hasUnlimitedUsage:e.hasUnlimitedUsage,expiresAt:e.endDate,hasExpirationDate:!!e.endDate,isVisible:e.isVisible}},e.prototype.mapSubscription=function(e){var t,n,r=this,i=e.totalPrice,o=(e.prices||[])[0];return{id:e.refId,resourceId:null===(t=e.resource)||void 0===t?void 0:t.resourceId,status:e.status,currentBillingPeriodEnd:this.mapDate(e.currentBillingPeriodEnd),plan:this.mapPlan(e.plan),price:o&&i&&o.price?this.mapTotalPrice(o.price,i,o.usageLimit):null,pricingType:e.pricingType,addons:(null===(n=e.addons)||void 0===n?void 0:n.map((function(e){var t=e.quantity,n=e.addon;return{quantity:t,addon:r.mapAddon(n)}})))||[],startDate:e.startDate,endDate:this.mapDate(e.endDate),trialEndDate:this.mapDate(e.trialEndDate),cancellationDate:this.mapDate(e.cancellationDate),effectiveEndDate:this.mapDate(e.effectiveEndDate),metadata:e.additionalMetaData,experimentInfo:$()(e.experimentInfo,"__typename"),scheduledUpdates:e.scheduledUpdates||[]}},e.prototype.mapDate=function(e){return e?new Date(e):void 0},e.prototype.mapAddon=function(e){var t=this;return{id:e.refId,displayName:e.displayName,description:e.description||"",billingId:e.billingId,entitlements:q()(e.entitlements,(function(e){return t.mapPackageEntitlement(e)})),pricePoints:q()(e.prices,(function(e){return t.mapPrice(e)})),pricingType:e.pricingType,metadata:e.additionalMetaData}},e.prototype.mapAccessDeniedReason=function(e){switch(e){case u.InvalidFeatureType:return d.fE.Unknown;case u.CustomerNotFound:return d.fE.CustomerNotFound;case u.FeatureNotFound:return d.fE.FeatureNotFound;case u.NoActiveSubscriptions:return d.fE.NoActiveSubscription;case u.CustomerNotEntitledForFeature:return d.fE.NoFeatureEntitlementInSubscription;case u.RequestedUsageExceedsLimit:return d.fE.RequestedUsageExceedingLimit;case u.Unknown:return d.fE.Unknown}},e.prototype.mapFallbackBooleanEntitlementResult=function(e,t){return{hasAccess:e.hasAccess,accessDeniedReason:t.accessDeniedReason?this.mapAccessDeniedReason(t.accessDeniedReason):void 0}},e.prototype.mapFallbackNumericEntitlementResult=function(e,t){return{hasAccess:e.hasAccess,accessDeniedReason:t.accessDeniedReason?this.mapAccessDeniedReason(t.accessDeniedReason):void 0,usageLimit:e.value,hasUnlimitedUsage:e.isUnlimited}},e.prototype.mapEntitlementResult=function(e,t,n){return Q({hasAccess:e.hasAccess,accessDeniedReason:e.accessDeniedReason?this.mapAccessDeniedReason(e.accessDeniedReason):void 0,hasUnlimitedUsage:null==t?void 0:t.calculatedEntitlement.hasUnlimitedUsage,usageLimit:null==t?void 0:t.calculatedEntitlement.usageLimit,currentUsage:null==t?void 0:t.featureUsage.currentUsage,requestedUsage:n,nextResetDate:null==t?void 0:t.featureUsage.nextResetDate,resetPeriod:(null==t?void 0:t.featureUsage.resetPeriod)?this.mapApiEntitlementResetPeriod(t.featureUsage.resetPeriod):void 0},this.getResetPeriodData(null==t?void 0:t.featureUsage.resetPeriod,null==t?void 0:t.featureUsage.resetPeriodConfiguration))},e.prototype.mapFallbackMeteredEntitlementResult=function(e,t,n){return{hasAccess:e.hasAccess,accessDeniedReason:t.accessDeniedReason?this.mapAccessDeniedReason(t.accessDeniedReason):void 0,hasUnlimitedUsage:e.isUnlimited,usageLimit:e.usageLimit,requestedUsage:n}},e.prototype.mapSubscriptionPreview=function(e){var t=e.subscription,n=e.proration,r=e.billingPeriodRange;return Q(Q({total:this.mapMoney(e.total),subTotal:this.mapMoney(e.subTotal)},e.discount?{discount:this.mapDiscount(e.discount)}:{}),{billingPeriodRange:{start:r.start&&new Date(r.start),end:r.end&&new Date(r.end)},proration:n?{credit:this.mapMoney(n.credit),debit:this.mapMoney(n.debit),netAmount:this.mapMoney(n.netAmount),prorationDate:new Date(n.prorationDate)}:void 0,subscription:t?{total:this.mapMoney(t.total),subTotal:this.mapMoney(t.subTotal)}:void 0})},e.prototype.mapDiscount=function(e){var t=e.type,n=e.value,r=e.durationType,i=e.durationInMonths;return Q({type:t,value:n,durationType:r},i?{durationInMonths:i}:{})},e.prototype.mapMoney=function(e){return{amount:e.amount,currency:e.currency}},e.prototype.mapCoupon=function(e){return{id:e.refId,name:e.name,description:e.description,metadata:e.additionalMetaData,discountValue:e.discountValue}},e.prototype.mapSubscriptions=function(e){var t=this;return e.map((function(e){return t.mapSubscription(e)}))},e}(),Y=function(){return Y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Y.apply(this,arguments)};function K(e){if(e)return Object.keys(e).map((function(t){return Y({isFallback:!0,accessDeniedReason:u.Unknown,feature:{id:t}},e[t])}))}var H=n(655),J="Invariant Violation",X=Object.setPrototypeOf,Z=void 0===X?function(e,t){return e.__proto__=t,e}:X,ee=function(e){function t(n){void 0===n&&(n=J);var r=e.call(this,"number"==typeof n?J+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=J,Z(r,t.prototype),r}return(0,H.ZT)(t,e),t}(Error);function te(e,t){if(!e)throw new ee(t)}var ne=["debug","log","warn","error","silent"],re=ne.indexOf("log");function ie(e){return function(){if(ne.indexOf(e)>=re){var t=console[e]||console.log;return t.apply(console,arguments)}}}function oe(e){try{return e()}catch(e){}}!function(e){e.debug=ie("debug"),e.log=ie("log"),e.warn=ie("warn"),e.error=ie("error")}(te||(te={}));const ae=oe((function(){return globalThis}))||oe((function(){return window}))||oe((function(){return self}))||oe((function(){return n.g}))||oe((function(){return Function("return this")()}));var se="__",ue=[se,se].join("DEV");const ce=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(ae,ue,{value:"production"!==oe((function(){return"production"})),enumerable:!1,configurable:!0,writable:!0}),ae[ue]}}();function le(e){try{return e()}catch(e){}}var fe=le((function(){return globalThis}))||le((function(){return window}))||le((function(){return self}))||le((function(){return n.g}))||le((function(){return Function("return this")()})),pe=!1;function de(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function he(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ve(e,t,n){return t&&he(e.prototype,t),n&&he(e,n),e}!fe||le((function(){return"production"}))||le((function(){return process}))||(Object.defineProperty(fe,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),pe=!0),n(143).H,pe&&(delete fe.process,pe=!1),__DEV__?te("boolean"==typeof ce,ce):te("boolean"==typeof ce,38);var ye=function(){return"function"==typeof Symbol},me=function(e){return ye()&&Boolean(Symbol[e])},ge=function(e){return me(e)?Symbol[e]:"@@"+e};ye()&&!me("observable")&&(Symbol.observable=Symbol("observable"));var _e=ge("iterator"),be=ge("observable"),Ee=ge("species");function we(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function Se(e){var t=e.constructor;return void 0!==t&&null===(t=t[Ee])&&(t=void 0),void 0!==t?t:Ce}function Te(e){return e instanceof Ce}function Oe(e){Oe.log?Oe.log(e):setTimeout((function(){throw e}))}function Ie(e){Promise.resolve().then((function(){try{e()}catch(e){Oe(e)}}))}function xe(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=we(t,"unsubscribe");n&&n.call(t)}}catch(e){Oe(e)}}function De(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function Ae(e,t,n){e._state="running";var r=e._observer;try{var i=we(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(De(e),!i)throw n;i.call(r,n);break;case"complete":De(e),i&&i.call(r)}}catch(e){Oe(e)}"closed"===e._state?xe(e):"running"===e._state&&(e._state="ready")}function ke(e,t,n){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void Ie((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(Ae(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)}))):void Ae(e,t,n);e._queue.push({type:t,value:n})}}var Re=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new Pe(this);try{this._cleanup=t.call(void 0,n)}catch(e){n.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(De(this),xe(this))},ve(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),Pe=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){ke(this._subscription,"next",e)},t.error=function(e){ke(this._subscription,"error",e)},t.complete=function(){ke(this._subscription,"complete")},ve(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),Ce=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new Re(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise((function(n,r){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),n()}}))},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(Se(this))((function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.filter=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(Se(this))((function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.reduce=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=Se(this),r=arguments.length>1,i=!1,o=arguments[1],a=o;return new n((function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(e){return n.error(e)}else a=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=Se(this);return new i((function(t){var r,o=0;return function e(a){r=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):e(i.from(n[o++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}}))},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=Se(this);return new n((function(r){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var o=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))},t[be]=function(){return this},e.from=function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=we(t,be);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return Te(i)&&i.constructor===n?i:new n((function(e){return i.subscribe(e)}))}if(me("iterator")&&(r=we(t,_e)))return new n((function(e){Ie((function(){if(!e.closed){for(var n,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return de(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?de(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r.call(t));!(n=i()).done;){var o=n.value;if(e.next(o),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){Ie((function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i="function"==typeof this?this:e;return new i((function(e){Ie((function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}}))}))},ve(e,null,[{key:Ee,get:function(){return this}}]),e}();function Ne(e){return null!==e&&"object"==typeof e}function Fe(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw __DEV__?new ee("Found a "+e.operation+" operation"+(e.name?" named '"+e.name.value+"'":"")+". No operations are allowed when using a fragment as a query. Only fragments are allowed."):new ee(43);"FragmentDefinition"===e.kind&&r.push(e)})),void 0===n&&(__DEV__?te(1===r.length,"Found "+r.length+" fragments. `fragmentName` must be provided when there is not exactly 1 fragment."):te(1===r.length,44),n=r[0].name.value),(0,H.pi)((0,H.pi)({},e),{definitions:(0,H.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function je(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function Ue(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return __DEV__?te(n,"No fragment named "+e.name.value+"."):te(n,45),n;default:return null}}function Me(e){return{__ref:String(e)}}function Le(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function Be(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var i={};n.fields.map((function(e){return Be(i,e.name,e.value,r)})),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(n)){var o=(r||{})[n.name.value];e[t.value]=o}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return Be(n,t,e,r),n[t.value]}));else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw __DEV__?new ee('The inline argument "'+t.value+'" of kind "'+n.kind+'"is not supported. Use variables instead of inline arguments to overcome this limitation.'):new ee(54);e[t.value]=null}}ye()&&Object.defineProperty(Ce,Symbol("extensions"),{value:{symbol:be,hostReportError:Oe},configurable:!0});var qe=["connection","include","skip","client","rest","export"],Ve=Object.assign((function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach((function(e){i[e]=t[e]})),n.connection.key+"("+$e(i)+")"}return n.connection.key}var o=e;if(t){var a=$e(t);o+="("+a+")"}return n&&Object.keys(n).forEach((function(e){-1===qe.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@"+e+"("+$e(n[e])+")":o+="@"+e)})),o}),{setStringify:function(e){var t=$e;return $e=e,t}}),$e=function(e){return JSON.stringify(e,Ge)};function Ge(e,t){return Ne(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{})),t}function ze(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return Be(n,r,i,t)})),n}return null}function Qe(e){return e.alias?e.alias.value:e.name.value}function We(e,t,n){if("string"==typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r<i.length;r++){var o=i[r];if(Ye(o)){if("__typename"===o.name.value)return e[Qe(o)]}else{var a=We(e,Ue(o,n).selectionSet,n);if("string"==typeof a)return a}}}function Ye(e){return"Field"===e.kind}function Ke(e){return"InlineFragment"===e.kind}function He(e){__DEV__?te(e&&"Document"===e.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'):te(e&&"Document"===e.kind,46);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new ee('Schema type definitions not allowed in queries. Found: "'+e.kind+'"'):new ee(47);return e}));return __DEV__?te(t.length<=1,"Ambiguous GraphQL document: contains "+t.length+" operations"):te(t.length<=1,48),e}function Je(e){return He(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function Xe(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}function Ze(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function et(e){var t=Je(e);return __DEV__?te(t&&"query"===t.operation,"Must contain a query definition."):te(t&&"query"===t.operation,49),t}function tt(e){var t;He(e);for(var n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw __DEV__?new ee("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new ee(53)}function nt(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach((function(e){e.defaultValue&&Be(t,e.variable.name,e.defaultValue)})),t}function rt(e,t){return t?t(e):Ce.of()}function it(e){return"function"==typeof e?new st(e):e}function ot(e){return e.request.length<=1}var at=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return(0,H.ZT)(t,e),t}(Error),st=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return Ce.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(it).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,n,r){var i=it(n),o=it(r||new e(rt));return ot(i)&&ot(o)?new e((function(e){return t(e)?i.request(e)||Ce.of():o.request(e)||Ce.of()})):new e((function(e,n){return t(e)?i.request(e,n)||Ce.of():o.request(e,n)||Ce.of()}))},e.execute=function(e,t){return e.request(function(e,t){var n=(0,H.pi)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n="function"==typeof e?(0,H.pi)((0,H.pi)({},n),e(n)):(0,H.pi)((0,H.pi)({},n),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return(0,H.pi)({},n)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?Xe(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw __DEV__?new ee("illegal argument: "+i):new ee(26)}return e}(t))))||Ce.of()},e.concat=function(t,n){var r=it(t);if(ot(r))return __DEV__&&te.warn(new at("You are calling concat on a terminating link, which will have no effect",r)),r;var i=it(n);return ot(i)?new e((function(e){return r.request(e,(function(e){return i.request(e)||Ce.of()}))||Ce.of()})):new e((function(e,t){return r.request(e,(function(e){return i.request(e,t)||Ce.of()}))||Ce.of()}))},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(rt)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new ee("request is not implemented"):new ee(21)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}(),ut=n(5821),ct=n(5217),lt={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"]},ft=Object.freeze({});function pt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:lt,r=void 0,i=Array.isArray(e),o=[e],a=-1,s=[],u=void 0,c=void 0,l=void 0,f=[],p=[],d=e;do{var h=++a===o.length,v=h&&0!==s.length;if(h){if(c=0===p.length?void 0:f[f.length-1],u=l,l=p.pop(),v){if(i)u=u.slice();else{for(var y={},m=0,g=Object.keys(u);m<g.length;m++){var _=g[m];y[_]=u[_]}u=y}for(var b=0,E=0;E<s.length;E++){var w=s[E][0],S=s[E][1];i&&(w-=b),i&&null===S?(u.splice(w,1),b++):u[w]=S}}a=r.index,o=r.keys,s=r.edits,i=r.inArray,r=r.prev}else{if(c=l?i?a:o[a]:void 0,null==(u=l?l[c]:d))continue;l&&f.push(c)}var T,O=void 0;if(!Array.isArray(u)){if(!(0,ct.UG)(u))throw new Error("Invalid AST Node: ".concat((0,ut.Z)(u),"."));var I=dt(t,u.kind,h);if(I){if((O=I.call(t,u,c,l,f,p))===ft)break;if(!1===O){if(!h){f.pop();continue}}else if(void 0!==O&&(s.push([c,O]),!h)){if(!(0,ct.UG)(O)){f.pop();continue}u=O}}}void 0===O&&v&&s.push([c,u]),h?f.pop():(r={inArray:i,index:a,keys:o,edits:s,prev:r},o=(i=Array.isArray(u))?u:null!==(T=n[u.kind])&&void 0!==T?T:[],a=-1,s=[],l&&p.push(l),l=u)}while(void 0!==r);return 0!==s.length&&(d=s[s.length-1][1]),d}function dt(e,t,n){var r=e[t];if(r){if(!n&&"function"==typeof r)return r;var i=n?r.leave:r.enter;if("function"==typeof i)return i}else{var o=n?e.leave:e.enter;if(o){if("function"==typeof o)return o;var a=o[t];if("function"==typeof a)return a}}}var ht=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=__DEV__?new ee("Network request failed. "+t+" is not serializable: "+e.message):new ee(23);throw r.parseError=e,r}return n},vt=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")},yt=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},mt=Object.prototype.hasOwnProperty;function gt(e){return function(t){return t.text().then((function(e){try{return JSON.parse(e)}catch(r){var n=r;throw n.name="ServerParseError",n.response=t,n.statusCode=t.status,n.bodyText=e,n}})).then((function(n){return t.status>=300&&yt(t,n,"Response not successful: Received status code "+t.status),Array.isArray(n)||mt.call(n,"data")||mt.call(n,"errors")||yt(t,n,"Server response was missing for query '"+(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName)+"'."),n}))}}var _t=function(e){if(!e&&"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(22)},bt=n(7392);function Et(e){return pt(e,{leave:wt})}var wt={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return Tt(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=It("(",Tt(e.variableDefinitions,", "),")"),i=Tt(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?Tt([t,Tt([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+It(" = ",r)+It(" ",Tt(i," "))},SelectionSet:function(e){return Ot(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet,a=It("",t,": ")+n,s=a+It("(",Tt(r,", "),")");return s.length>80&&(s=a+It("(\n",xt(Tt(r,"\n")),"\n)")),Tt([s,Tt(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+It(" ",Tt(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return Tt(["...",It("on ",t),Tt(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(It("(",Tt(r,", "),")")," ")+"on ".concat(n," ").concat(It("",Tt(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,bt.LZ)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+Tt(e.values,", ")+"]"},ObjectValue:function(e){return"{"+Tt(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+It("(",Tt(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:St((function(e){var t=e.directives,n=e.operationTypes;return Tt(["schema",Tt(t," "),Ot(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:St((function(e){return Tt(["scalar",e.name,Tt(e.directives," ")]," ")})),ObjectTypeDefinition:St((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return Tt(["type",t,It("implements ",Tt(n," & ")),Tt(r," "),Ot(i)]," ")})),FieldDefinition:St((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(At(n)?It("(\n",xt(Tt(n,"\n")),"\n)"):It("(",Tt(n,", "),")"))+": "+r+It(" ",Tt(i," "))})),InputValueDefinition:St((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return Tt([t+": "+n,It("= ",r),Tt(i," ")]," ")})),InterfaceTypeDefinition:St((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return Tt(["interface",t,It("implements ",Tt(n," & ")),Tt(r," "),Ot(i)]," ")})),UnionTypeDefinition:St((function(e){var t=e.name,n=e.directives,r=e.types;return Tt(["union",t,Tt(n," "),r&&0!==r.length?"= "+Tt(r," | "):""]," ")})),EnumTypeDefinition:St((function(e){var t=e.name,n=e.directives,r=e.values;return Tt(["enum",t,Tt(n," "),Ot(r)]," ")})),EnumValueDefinition:St((function(e){return Tt([e.name,Tt(e.directives," ")]," ")})),InputObjectTypeDefinition:St((function(e){var t=e.name,n=e.directives,r=e.fields;return Tt(["input",t,Tt(n," "),Ot(r)]," ")})),DirectiveDefinition:St((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(At(n)?It("(\n",xt(Tt(n,"\n")),"\n)"):It("(",Tt(n,", "),")"))+(r?" repeatable":"")+" on "+Tt(i," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return Tt(["extend schema",Tt(t," "),Ot(n)]," ")},ScalarTypeExtension:function(e){return Tt(["extend scalar",e.name,Tt(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return Tt(["extend type",t,It("implements ",Tt(n," & ")),Tt(r," "),Ot(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return Tt(["extend interface",t,It("implements ",Tt(n," & ")),Tt(r," "),Ot(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return Tt(["extend union",t,Tt(n," "),r&&0!==r.length?"= "+Tt(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return Tt(["extend enum",t,Tt(n," "),Ot(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return Tt(["extend input",t,Tt(n," "),Ot(r)]," ")}};function St(e){return function(t){return Tt([t.description,e(t)],"\n")}}function Tt(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function Ot(e){return It("{\n",xt(Tt(e,"\n")),"\n}")}function It(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function xt(e){return It(" ",e.replace(/\n/g,"\n "))}function Dt(e){return-1!==e.indexOf("\n")}function At(e){return null!=e&&e.some(Dt)}var kt={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},Rt=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=(0,H.pi)((0,H.pi)({},t.options),{headers:t.headers,credentials:t.credentials}),o=t.http||{};n.forEach((function(e){i=(0,H.pi)((0,H.pi)((0,H.pi)({},i),e.options),{headers:(0,H.pi)((0,H.pi)({},i.headers),Pt(e.headers))}),e.credentials&&(i.credentials=e.credentials),o=(0,H.pi)((0,H.pi)({},o),e.http)}));var a=e.operationName,s=e.extensions,u=e.variables,c=e.query,l={operationName:a,variables:u};return o.includeExtensions&&(l.extensions=s),o.includeQuery&&(l.query=Et(c)),{options:i,body:l}};function Pt(e){if(e){var t=Object.create(null);return Object.keys(Object(e)).forEach((function(n){t[n.toLowerCase()]=e[n]})),t}return e}var Ct=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}};function Nt(e){return new Ce((function(t){t.error(e)}))}var Ft=oe((function(){return fetch})),jt=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,i=e.includeExtensions,o=e.useGETForQueries,a=e.includeUnusedVariables,s=void 0!==a&&a,u=(0,H._T)(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&_t(r||Ft);var c={http:{includeExtensions:i},options:u.fetchOptions,credentials:u.credentials,headers:u.headers};return new st((function(e){var t=vt(e,n),i=e.getContext(),a={};if(i.clientAwareness){var u=i.clientAwareness,l=u.name,f=u.version;l&&(a["apollographql-client-name"]=l),f&&(a["apollographql-client-version"]=f)}var p,d=(0,H.pi)((0,H.pi)({},a),i.headers),h={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:d},v=Rt(e,kt,c,h),y=v.options,m=v.body;if(m.variables&&!s){var g=new Set(Object.keys(m.variables));pt(e.query,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&g.delete(e.name.value)}}),g.size&&(m.variables=(0,H.pi)({},m.variables),g.forEach((function(e){delete m.variables[e]})))}if(!y.signal){var _=Ct(),b=_.controller,E=_.signal;(p=b)&&(y.signal=E)}if(o&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(y.method="GET"),"GET"===y.method){var w=function(e,t){var n=[],r=function(e,t){n.push(e+"="+encodeURIComponent(t))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=ht(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var o=void 0;try{o=ht(t.extensions,"Extensions map")}catch(e){return{parseError:e}}r("extensions",o)}var a="",s=e,u=e.indexOf("#");-1!==u&&(a=e.substr(u),s=e.substr(0,u));var c=-1===s.indexOf("?")?"?":"&";return{newURI:s+c+n.join("&")+a}}(t,m),S=w.newURI,T=w.parseError;if(T)return Nt(T);t=S}else try{y.body=ht(m,"Payload")}catch(T){return Nt(T)}return new Ce((function(n){return(r||oe((function(){return fetch}))||Ft)(t,y).then((function(t){return e.setContext({response:t}),t})).then(gt(e)).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){p&&p.abort()}}))}))}(t).request)||this;return n.options=t,n}return(0,H.ZT)(t,e),t}(st),Ut=st.execute;function Mt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach((function(e){e&&Object.keys(e).forEach((function(t){var r=e[t];void 0!==r&&(n[t]=r)}))})),n}var Lt=Object.prototype,Bt=Lt.toString,qt=Lt.hasOwnProperty,Vt=Function.prototype.toString,$t=new Map;function Gt(e,t){try{return zt(e,t)}finally{$t.clear()}}function zt(e,t){if(e===t)return!0;var n,r,i,o=Bt.call(e);if(o!==Bt.call(t))return!1;switch(o){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(Kt(e,t))return!0;var a=Qt(e),s=Qt(t),u=a.length;if(u!==s.length)return!1;for(var c=0;c<u;++c)if(!qt.call(t,a[c]))return!1;for(c=0;c<u;++c){var l=a[c];if(!zt(e[l],t[l]))return!1}return!0;case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==""+t;case"[object Map]":case"[object Set]":if(e.size!==t.size)return!1;if(Kt(e,t))return!0;for(var f=e.entries(),p="[object Map]"===o;;){var d=f.next();if(d.done)break;var h=d.value,v=h[0],y=h[1];if(!t.has(v))return!1;if(p&&!zt(y,t.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]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":var m=e.byteLength;if(m===t.byteLength)for(;m--&&e[m]===t[m];);return-1===m;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var g=Vt.call(e);return g===Vt.call(t)&&(r=Yt,!((i=(n=g).length-r.length)>=0&&n.indexOf(r,i)===i))}return!1}function Qt(e){return Object.keys(e).filter(Wt,e)}function Wt(e){return void 0!==this[e]}var Yt="{ [native code] }";function Kt(e,t){var n=$t.get(e);if(n){if(n.has(t))return!0}else $t.set(e,n=new Set);return n.add(t),!1}var Ht,Jt,Xt=function(){return Object.create(null)},Zt=Array.prototype,en=Zt.forEach,tn=Zt.slice,nn=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=Xt),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return en.call(e,(function(e){return t=t.getChildTrie(e)})),t.data||(t.data=this.makeData(tn.call(e)))},e.prototype.getChildTrie=function(t){var n=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=n.get(t);return r||n.set(t,r=new e(this.weakness,this.makeData)),r},e}(),rn="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),on="function"==typeof WeakSet,an="function"==typeof Symbol&&"function"==typeof Symbol.for,sn=function(){function e(){this.known=new(on?WeakSet:Set),this.pool=new nn(rn),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return Ne(e)&&this.known.has(e)},e.prototype.pass=function(e){if(Ne(e)){var t=function(e){return Ne(e)?Array.isArray(e)?e.slice(0):(0,H.pi)({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(Ne(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var r=e.map(this.admit,this);return(s=this.pool.lookupArray(r)).array||(this.known.add(s.array=r),__DEV__&&Object.freeze(r)),s.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),o=[i],a=this.sortedKeys(e);o.push(a.json);var s,u=o.length;if(a.sorted.forEach((function(n){o.push(t.admit(e[n]))})),!(s=this.pool.lookupArray(o)).object){var c=s.object=Object.create(i);this.known.add(c),a.sorted.forEach((function(e,t){c[e]=o[u+t]})),__DEV__&&Object.freeze(c)}return s.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}(),un=Object.assign((function(e){if(Ne(e)){void 0===Ht&&cn();var t=Ht.admit(e),n=Jt.get(t);return void 0===n&&Jt.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)}),{reset:cn});function cn(){Ht=new sn,Jt=new(rn?WeakMap:Map)}function ln(e,t,n){return new Ce((function(r){var i=r.next,o=r.error,a=r.complete,s=0,u=!1,c={then:function(e){return new Promise((function(t){return t(e())}))}};function l(e,t){return e?function(t){++s;var n=function(){return e(t)};c=c.then(n,n).then((function(e){--s,i&&i.call(r,e),u&&f.complete()}),(function(e){throw--s,e})).catch((function(e){o&&o.call(r,e)}))}:function(e){return t&&t.call(r,e)}}var f={next:l(t,i),error:l(n,o),complete:function(){u=!0,s||a&&a.call(r)}},p=e.subscribe(f);return function(){return p.unsubscribe()}}))}function fn(e){return e.errors&&e.errors.length>0||!1}function pn(e,t,n){var r=0;return e.forEach((function(n,i){t.call(this,n,i,e)&&(e[r++]=n)}),n),e.length=r,e}var dn={kind:"Field",name:{kind:"Name",value:"__typename"}};function hn(e,t){return e.selectionSet.selections.every((function(e){return"FragmentSpread"===e.kind&&hn(t[e.name.value],t)}))}function vn(e){return hn(Je(e)||function(e){__DEV__?te("Document"===e.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'):te("Document"===e.kind,50),__DEV__?te(e.definitions.length<=1,"Fragment must have exactly one definition."):te(e.definitions.length<=1,51);var t=e.definitions[0];return __DEV__?te("FragmentDefinition"===t.kind,"Must be a fragment definition."):te("FragmentDefinition"===t.kind,52),t}(e),je(Ze(e)))?null:e}function yn(e){return function(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function mn(e,t){var n=Object.create(null),r=[],i=Object.create(null),o=[],a=vn(pt(t,{Variable:{enter:function(e,t,r){"VariableDefinition"!==r.kind&&(n[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&e.some((function(e){return e.remove}))&&t.directives&&t.directives.some(yn(e)))return t.arguments&&t.arguments.forEach((function(e){"Variable"===e.value.kind&&r.push({name:e.value.name.value})})),t.selectionSet&&bn(t.selectionSet).forEach((function(e){o.push({name:e.name.value})})),null}},FragmentSpread:{enter:function(e){i[e.name.value]=!0}},Directive:{enter:function(t){if(yn(e)(t))return null}}}));return a&&pn(r,(function(e){return!!e.name&&!n[e.name]})).length&&(a=function(e,t){var n=function(e){return function(t){return e.some((function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))}))}}(e);return vn(pt(t,{OperationDefinition:{enter:function(t){return(0,H.pi)((0,H.pi)({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))})):[]})}},Field:{enter:function(t){if(e.some((function(e){return e.remove}))){var r=0;if(t.arguments&&t.arguments.forEach((function(e){n(e)&&(r+=1)})),1===r)return null}}},Argument:{enter:function(e){if(n(e))return null}}}))}(r,a)),a&&pn(o,(function(e){return!!e.name&&!i[e.name]})).length&&(a=function(e,t){function n(t){if(e.some((function(e){return e.name===t.name.value})))return null}return vn(pt(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(o,a)),a}var gn=Object.assign((function(e){return pt(He(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r&&!r.some((function(e){return Ye(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=n;if(!(Ye(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return(0,H.pi)((0,H.pi)({},e),{selections:(0,H.ev)((0,H.ev)([],r,!0),[dn],!1)})}}}}})}),{added:function(e){return e===dn}}),_n={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some((function(e){return"key"===e.name.value}))||__DEV__&&te.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.")),t}};function bn(e){var t=[];return e.selections.forEach((function(e){(Ye(e)||Ke(e))&&e.selectionSet?bn(e.selectionSet).forEach((function(e){return t.push(e)})):"FragmentSpread"===e.kind&&t.push(e)})),t}function En(e){if("query"===tt(e).operation)return e;var t=pt(e,{OperationDefinition:{enter:function(e){return(0,H.pi)((0,H.pi)({},e),{operation:"query"})}}});return t}function wn(e,t){var n=e.directives;return!n||!n.length||function(e){var t=[];return e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var n=e.arguments,r=e.name.value;__DEV__?te(n&&1===n.length,"Incorrect number of arguments for the @"+r+" directive."):te(n&&1===n.length,40);var i=n[0];__DEV__?te(i.name&&"if"===i.name.value,"Invalid argument for the @"+r+" directive."):te(i.name&&"if"===i.name.value,41);var o=i.value;__DEV__?te(o&&("Variable"===o.kind||"BooleanValue"===o.kind),"Argument for the @"+r+" directive must be a variable or a boolean value."):te(o&&("Variable"===o.kind||"BooleanValue"===o.kind),42),t.push({directive:e,ifArgument:i})}})),t}(n).every((function(e){var n=e.directive,r=e.ifArgument,i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],__DEV__?te(void 0!==i,"Invalid variable referenced in @"+n.name.value+" directive."):te(void 0!==i,39)):i=r.value.value,"skip"===n.name.value?!i:i}))}function Sn(e,t){return function(e){var t=[];return pt(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function Tn(e){return e&&Sn(["client"],e)&&Sn(["export"],e)}var On=new Map;function In(e){var t=On.get(e)||1;return On.set(e,t+1),e+":"+t+":"+Math.random().toString(36).slice(2)}function xn(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function Dn(e){function t(t){Object.defineProperty(e,t,{value:Ce})}return an&&Symbol.species&&t(Symbol.species),t("@@species"),e}function An(e){return e&&"function"==typeof e.then}var kn=function(e){function t(t){var n=e.call(this,(function(e){return n.addObserver(e),function(){return n.removeObserver(e)}}))||this;return n.observers=new Set,n.addCount=0,n.promise=new Promise((function(e,t){n.resolve=e,n.reject=t})),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],xn(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest=["error",e],n.reject(e),xn(n.observers,"error",e))},complete:function(){if(null!==n.sub){var e=n.sources.shift();e?An(e)?e.then((function(e){return n.sub=e.subscribe(n.handlers)})):n.sub=e.subscribe(n.handlers):(n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),xn(n.observers,"complete"))}}},n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch((function(e){})),"function"==typeof t&&(t=[new Ce(t)]),An(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return(0,H.ZT)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e),++this.addCount)},t.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.error(new Error("Observable cancelled prematurely"))},t.prototype.cleanup=function(e){var t=this,n=!1,r=function(){n||(n=!0,t.observers.delete(i),e())},i={next:r,error:r,complete:r},o=this.addCount;this.addObserver(i),this.addCount=o},t}(Ce);function Rn(e){return Array.isArray(e)&&e.length>0}Dn(kn);var Pn,Cn=function(e){function t(n){var r,i,o=n.graphQLErrors,a=n.clientErrors,s=n.networkError,u=n.errorMessage,c=n.extraInfo,l=e.call(this,u)||this;return l.graphQLErrors=o||[],l.clientErrors=a||[],l.networkError=s||null,l.message=u||(i="",(Rn((r=l).graphQLErrors)||Rn(r.clientErrors))&&(r.graphQLErrors||[]).concat(r.clientErrors||[]).forEach((function(e){var t=e?e.message:"Error message not found.";i+=t+"\n"})),r.networkError&&(i+=r.networkError.message+"\n"),i=i.replace(/\n$/,"")),l.extraInfo=c,l.__proto__=t.prototype,l}return(0,H.ZT)(t,e),t}(Error);function Nn(e){return!!e&&e<7}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(Pn||(Pn={}));var Fn=Object.prototype.toString;function jn(e){return Un(e)}function Un(e,t){switch(Fn.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach((function(e,r){n[r]=Un(e,t)})),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach((function(n){r[n]=Un(e[n],t)})),r;default:return e}}var Mn=Object.assign,Ln=Object.hasOwnProperty,Bn=!1,qn=function(e){function t(t){var n=t.queryManager,r=t.queryInfo,i=t.options,o=e.call(this,(function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=Vn)}catch(e){}var n=!o.observers.size;o.observers.add(e);var r=o.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(r.result),n&&o.reobserve().catch((function(){})),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}}))||this;o.observers=new Set,o.subscriptions=new Set,o.isTornDown=!1,o.options=i,o.queryId=r.queryId||n.generateQueryId();var a=Je(i.query);return o.queryName=a&&a.name&&a.name.value,o.initialFetchPolicy=i.fetchPolicy||"cache-first",o.queryManager=n,o.queryInfo=r,o}return(0,H.ZT)(t,e),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||Pn.ready,r=(0,H.pi)((0,H.pi)({},t),{loading:Nn(n),networkStatus:n}),i=this.options.fetchPolicy,o=void 0===i?"cache-first":i;if((t||"network-only"!==o&&"no-cache"!==o&&"standby"!==o)&&!this.queryManager.transform(this.options.query).hasForcedResolvers){var a=this.queryInfo.getDiff();(a.complete||this.options.returnPartialData)&&(r.data=a.result),Gt(r.data,{})&&(r.data=void 0),a.complete?(r.networkStatus!==Pn.loading||"cache-first"!==o&&"cache-only"!==o||(r.networkStatus=Pn.ready,r.loading=!1),delete r.partial):"no-cache"!==o&&(r.partial=!0),!__DEV__||a.complete||this.options.partialRefetch||r.loading||r.data||r.error||$n(a.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!Gt(this.last.result,e)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||Gt(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,n={pollInterval:0},r=this.options.fetchPolicy;if("no-cache"===r?n.fetchPolicy="no-cache":"cache-and-network"!==r&&(n.fetchPolicy="network-only"),__DEV__&&e&&Ln.call(e,"variables")){var i=et(this.options.query),o=i.variableDefinitions;o&&o.some((function(e){return"variables"===e.variable.name.value}))||__DEV__&&te.warn("Called refetch("+JSON.stringify(e)+") for query "+((null===(t=i.name)||void 0===t?void 0:t.value)||JSON.stringify(i))+", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?")}return e&&!Gt(this.options.variables,e)&&(n.variables=this.options.variables=(0,H.pi)((0,H.pi)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,Pn.refetch)},t.prototype.fetchMore=function(e){var t=this,n=(0,H.pi)((0,H.pi)({},e.query?e:(0,H.pi)((0,H.pi)((0,H.pi)({},this.options),e),{variables:(0,H.pi)((0,H.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=Pn.fetchMore,this.observe()),this.queryManager.fetchQuery(r,n,Pn.fetchMore).then((function(r){var i=r.data,o=e.updateQuery;return o?(__DEV__&&!Bn&&(__DEV__&&te.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."),Bn=!0),t.updateQuery((function(e){return o(e,{fetchMoreResult:i,variables:n.variables})}))):t.queryManager.cache.writeQuery({query:n.query,variables:n.variables,data:i}),r})).finally((function(){t.queryManager.stopQuery(r),t.reobserve()}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError?e.onError(t):__DEV__&&te.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return Gt(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.initialFetchPolicy,variables:e},Pn.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(n){if(!t||t.interval!==n){__DEV__?te(n,"Attempted to start a polling query without a polling interval."):te(n,12),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(Nn(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"network-only"},Pn.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=(0,H.pi)((0,H.pi)({},this.last),{result:this.queryManager.assumeImmutableResults?e:jn(e),variables:t}),Rn(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var r=t===Pn.refetch||t===Pn.fetchMore||t===Pn.poll,i=this.options.variables,o=r?Mt(this.options,e):Mn(this.options,Mt(e));r||(this.updatePolling(),e&&e.variables&&!e.fetchPolicy&&!Gt(e.variables,i)&&(o.fetchPolicy=this.initialFetchPolicy,void 0===t&&(t=Pn.setVariables)));var a=o.variables&&(0,H.pi)({},o.variables),s=this.fetch(o,t),u={next:function(e){n.reportResult(e,a)},error:function(e){n.reportError(e,a)}};return r||(this.concast&&this.observer&&this.concast.removeObserver(this.observer,!0),this.concast=s,this.observer=u),s.addObserver(u),s.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){(this.getLastError()||this.isDifferentFromLastResult(e))&&(this.updateLastResult(e,t),xn(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=(0,H.pi)((0,H.pi)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:Pn.error,loading:!1});this.updateLastResult(n,t),xn(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(Ce);function Vn(e){__DEV__&&te.error("Unhandled error",e.message,e.stack)}function $n(e){__DEV__&&Rn(e)&&__DEV__&&te.debug("Missing cache result fields: "+e.map((function(e){return e.path.join(".")})).join(", "),e)}Dn(qn);var Gn=Object.prototype.hasOwnProperty;function zn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Qn(e)}function Qn(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new Yn,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var Wn=function(e,t,n){return this.merge(e[n],t[n])},Yn=function(){function e(e){void 0===e&&(e=Wn),this.reconciler=e,this.isObject=Ne,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return Ne(t)&&Ne(e)?(Object.keys(t).forEach((function(i){if(Gn.call(e,i)){var o=e[i];if(t[i]!==o){var a=n.reconciler.apply(n,(0,H.ev)([e,t,i],r,!1));a!==o&&((e=n.shallowCopyForMerge(e))[i]=a)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]})),e):t},e.prototype.shallowCopyForMerge=function(e){return Ne(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,H.pi)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}(),Kn=null,Hn={},Jn=1,Xn="@wry/context:Slot",Zn=Array,er=Zn[Xn]||function(){var e=function(){function e(){this.id=["slot",Jn++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=Kn;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===Hn)break;return e!==Kn&&(Kn.slots[this.id]=t),!0}return Kn&&(Kn.slots[this.id]=Hn),!1},e.prototype.getValue=function(){if(this.hasValue())return Kn.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=Kn;Kn={parent:a,slots:o};try{return t.apply(r,n)}finally{Kn=a}},e.bind=function(e){var t=Kn;return function(){var n=Kn;try{return Kn=t,e.apply(this,arguments)}finally{Kn=n}}},e.noContext=function(e,t,n){if(!Kn)return e.apply(n,t);var r=Kn;try{return Kn=null,e.apply(n,t)}finally{Kn=r}},e}();try{Object.defineProperty(Zn,Xn,{value:Zn[Xn]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();function tr(){}er.bind,er.noContext;var nr,rr=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=tr),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},e.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),ir=new er,or=Object.prototype.hasOwnProperty,ar=void 0===(nr=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:nr;function sr(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var ur=[];function cr(e,t){if(!e)throw new Error(t||"assertion failure")}function lr(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var fr=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!hr(this))return pr(this),this.value[0]},e.prototype.recompute=function(e){return cr(!this.recomputing,"already recomputing"),pr(this),hr(this)?function(e,t){return Er(e),ir.withValue(e,dr,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{sr(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,hr(e)||yr(e)}(e),lr(e.value)}(this,e):lr(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,vr(this),sr(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),Er(this),mr(this,(function(t,n){t.setDirty(),wr(t,e)}))},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=ur.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(ar(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),ur.push(this.deps),this.deps=null)},e.count=0,e}();function pr(e){var t=ir.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),hr(e)?gr(t,e):_r(t,e),t}function dr(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function hr(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function vr(e){mr(e,gr)}function yr(e){mr(e,_r)}function mr(e,t){var n=e.parents.size;if(n)for(var r=ar(e.parents),i=0;i<n;++i)t(r[i],e)}function gr(e,t){cr(e.childValues.has(t)),cr(hr(t));var n=!hr(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=ur.pop()||new Set;e.dirtyChildren.add(t),n&&vr(e)}function _r(e,t){cr(e.childValues.has(t)),cr(!hr(t));var n,r,i,o=e.childValues.get(t);0===o.length?e.childValues.set(t,t.value.slice(0)):(n=o,r=t.value,(i=n.length)>0&&i===r.length&&n[i-1]===r[i-1]||e.setDirty()),br(e,t),hr(e)||yr(e)}function br(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(ur.length<100&&ur.push(n),e.dirtyChildren=null))}function Er(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){wr(e,n)})),e.forgetDeps(),cr(null===e.dirtyChildren)}function wr(e,t){t.parents.delete(e),e.childValues.delete(t),br(e,t)}var Sr={setDirty:!0,dispose:!0,forget:!0};function Tr(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=ir.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(sr(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&or.call(Sr,n)?n:"setDirty";ar(r).forEach((function(e){return e[i]()})),t.delete(e),sr(r)}},r}function Or(){var e=new nn("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}Or();var Ir=new Set;function xr(e,t){void 0===t&&(t=Object.create(null));var n=new rr(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,i=t.makeCacheKey||Or(),o=function(){var o=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=n.get(o);a||(n.set(o,a=new fr(e)),a.subscribe=t.subscribe,a.forget=function(){return n.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return n.set(o,a),Ir.add(n),ir.hasValue()||(Ir.forEach((function(e){return e.clean()})),Ir.clear()),s};function a(e){var t=n.get(e);t&&t.setDirty()}function s(e){var t=n.get(e);if(t)return t.peek()}function u(e){return n.delete(e)}return Object.defineProperty(o,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))},o.peekKey=s,o.peek=function(){return s(i.apply(null,arguments))},o.forgetKey=u,o.forget=function(){return u(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(o)}var Dr=new er,Ar=new WeakMap;function kr(e){var t=Ar.get(e);return t||Ar.set(e,t={vars:new Set,dep:Tr()}),t}function Rr(e){kr(e).vars.forEach((function(t){return t.forgetCache(e)}))}function Pr(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach((function(e){kr(e).dep.dirty(r),Cr(e)}));var a=Array.from(n);n.clear(),a.forEach((function(t){return t(e)}))}}else{var s=Dr.getValue();s&&(i(s),kr(s).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),kr(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function Cr(e){e.broadcastWatches&&e.broadcastWatches()}var Nr=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=zn(t.resolvers,e)})):this.resolvers=zn(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return(0,H.mG)(this,void 0,void 0,(function(){return(0,H.Jh)(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then((function(e){return(0,H.pi)((0,H.pi)({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Sn(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return function(e){He(e);var t=mn([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=pt(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return Ye(e)&&"__typename"===e.name.value})))return null}}})),t}(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,H.pi)((0,H.pi)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),(0,H.mG)(this,void 0,void 0,(function(){return(0,H.Jh)(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return(0,H.pi)((0,H.pi)({},t),e.exportedVariables)}))]:[2,(0,H.pi)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return pt(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return ft}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:En(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,i,o){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),(0,H.mG)(this,void 0,void 0,(function(){var a,s,u,c,l,f,p,d,h;return(0,H.Jh)(this,(function(v){return a=tt(e),s=Ze(e),u=je(s),c=a.operation,l=c?c.charAt(0).toUpperCase()+c.slice(1):"Query",p=(f=this).cache,d=f.client,h={fragmentMap:u,context:(0,H.pi)((0,H.pi)({},n),{cache:p,client:d}),variables:r,fragmentMatcher:i,defaultOperationType:l,exportedVariables:{},onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,t,h).then((function(e){return{result:e,exportedVariables:h.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n){return(0,H.mG)(this,void 0,void 0,(function(){var r,i,o,a,s,u=this;return(0,H.Jh)(this,(function(c){return r=n.fragmentMap,i=n.context,o=n.variables,a=[t],s=function(e){return(0,H.mG)(u,void 0,void 0,(function(){var s,u;return(0,H.Jh)(this,(function(c){return wn(e,o)?Ye(e)?[2,this.resolveField(e,t,n).then((function(t){var n;void 0!==t&&a.push(((n={})[Qe(e)]=t,n))}))]:(Ke(e)?s=e:(s=r[e.name.value],__DEV__?te(s,"No fragment named "+e.name.value):te(s,11)),s&&s.typeCondition&&(u=s.typeCondition.name.value,n.fragmentMatcher(t,u,i))?[2,this.resolveSelectionSet(s.selectionSet,t,n).then((function(e){a.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(s)).then((function(){return Qn(a)}))]}))}))},e.prototype.resolveField=function(e,t,n){return(0,H.mG)(this,void 0,void 0,(function(){var r,i,o,a,s,u,c,l,f,p=this;return(0,H.Jh)(this,(function(d){return r=n.variables,i=e.name.value,o=Qe(e),a=i!==o,s=t[o]||t[i],u=Promise.resolve(s),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(c=t.__typename||n.defaultOperationType,(l=this.resolvers&&this.resolvers[c])&&(f=l[a?i:o])&&(u=Promise.resolve(Dr.withValue(this.cache,f,[t,ze(e,r),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,u.then((function(t){return void 0===t&&(t=s),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?p.resolveSubSelectedArray(e,t,n):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0})))},e}(),Fr=new(rn?WeakMap:Map);function jr(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return Fr.set(e,(Fr.get(e)+1)%1e15),n.apply(this,arguments)})}function Ur(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Mr=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;Fr.has(n)||(Fr.set(n,0),jr(n,"evict"),jr(n,"modify"),jr(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||Pn.loading;return this.variables&&this.networkStatus!==Pn.loading&&!Gt(this.variables,e.variables)&&(t=Pn.setVariables),Gt(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){Ur(this),this.lastDiff=void 0,this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&Gt(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||Gt(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():e.reobserve()})):delete this.oqListener)},e.prototype.notify=function(){var e=this;Ur(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Nn(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach((function(e){return e.unsubscribe()}));var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=(0,H.pi)((0,H.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&Gt(r,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===Fr.get(this.cache)&&Gt(t,n.variables)&&Gt(e.data,n.result.data))},e.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=Rn(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(Lr(e,t.errorPolicy)?this.cache.performTransaction((function(i){if(r.shouldWrite(e,t.variables))i.writeQuery({query:r.document,data:e.data,variables:t.variables,overwrite:1===n}),r.lastWrite={result:e,variables:t.variables,dmCount:Fr.get(r.cache)};else if(r.lastDiff&&r.lastDiff.diff.complete)return void(e.data=r.lastDiff.diff.result);var o=r.getDiffOptions(t.variables),a=i.diff(o);r.stopped||r.updateWatch(t.variables),r.updateLastDiff(a,o),a.complete&&(e.data=a.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Pn.ready},e.prototype.markError=function(e){return this.networkStatus=Pn.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function Lr(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!fn(e);return!r&&n&&e.data&&(r=!0),r}var Br=Object.prototype.hasOwnProperty,qr=function(){function e(e){var t=e.cache,n=e.link,r=e.queryDeduplication,i=void 0!==r&&r,o=e.onBroadcast,a=e.ssrMode,s=void 0!==a&&a,u=e.clientAwareness,c=void 0===u?{}:u,l=e.localState,f=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(rn?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=n,this.queryDeduplication=i,this.clientAwareness=c,this.localState=l||new Nr({cache:t}),this.ssrMode=s,this.assumeImmutableResults=!!f,(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches(__DEV__?new ee("QueryManager stopped while query was in flight"):new ee(13))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t=e.mutation,n=e.variables,r=e.optimisticResponse,i=e.updateQueries,o=e.refetchQueries,a=void 0===o?[]:o,s=e.awaitRefetchQueries,u=void 0!==s&&s,c=e.update,l=e.onQueryUpdated,f=e.errorPolicy,p=void 0===f?"none":f,d=e.fetchPolicy,h=void 0===d?"network-only":d,v=e.keepRootFields,y=e.context;return(0,H.mG)(this,void 0,void 0,(function(){var e,o,s;return(0,H.Jh)(this,(function(f){switch(f.label){case 0:return __DEV__?te(t,"mutation option is required. You must specify your GraphQL document in the mutation option."):te(t,14),__DEV__?te("network-only"===h||"no-cache"===h,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):te("network-only"===h||"no-cache"===h,15),e=this.generateMutationId(),t=this.transform(t).document,n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,y)]:[3,2];case 1:n=f.sent(),f.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[e]={mutation:t,variables:n,loading:!0,error:null}),r&&this.markMutationOptimistic(r,{mutationId:e,document:t,variables:n,fetchPolicy:h,errorPolicy:p,context:y,updateQueries:i,update:c,keepRootFields:v}),this.broadcastQueries(),s=this,[2,new Promise((function(f,d){return ln(s.getObservableFromLink(t,(0,H.pi)((0,H.pi)({},y),{optimisticResponse:r}),n,!1),(function(f){if(fn(f)&&"none"===p)throw new Cn({graphQLErrors:f.errors});o&&(o.loading=!1,o.error=null);var d=(0,H.pi)({},f);return"function"==typeof a&&(a=a(d)),"ignore"===p&&fn(d)&&delete d.errors,s.markMutationResult({mutationId:e,result:d,document:t,variables:n,fetchPolicy:h,errorPolicy:p,context:y,update:c,updateQueries:i,awaitRefetchQueries:u,refetchQueries:a,removeOptimistic:r?e:void 0,onQueryUpdated:l,keepRootFields:v})})).subscribe({next:function(e){s.broadcastQueries(),f(e)},error:function(t){o&&(o.loading=!1,o.error=t),r&&s.cache.removeOptimistic(e),s.broadcastQueries(),d(t instanceof Cn?t:new Cn({networkError:t}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&Lr(r,e.errorPolicy)){i.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables});var a=e.updateQueries;a&&this.queries.forEach((function(e,o){var s=e.observableQuery,u=s&&s.queryName;if(u&&Br.call(a,u)){var c=a[u],l=n.queries.get(o),f=l.document,p=l.variables,d=t.diff({query:f,variables:p,returnPartialData:!0,optimistic:!1}),h=d.result;if(d.complete&&h){var v=c(h,{mutationResult:r,queryName:f&&Xe(f)||void 0,queryVariables:p});v&&i.push({result:v,dataId:"ROOT_QUERY",query:f,variables:p})}}}))}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var s=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach((function(e){return t.write(e)}));var a=e.update;if(a){if(!o){var s=t.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});s.complete&&(r=(0,H.pi)((0,H.pi)({},r),{data:s.result}))}a(t,r,{context:e.context,variables:e.variables})}o||e.keepRootFields||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return s.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(s).then((function(){return r}))}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{n.markMutationResult((0,H.pi)((0,H.pi)({},t),{result:{data:r}}),e)}catch(e){__DEV__&&te.error(e)}}),t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t,n=this.transformCache;if(!n.has(e)){var r=this.cache.transformDocument(e),i=(t=this.cache.transformForLink(r),mn([_n],He(t))),o=this.localState.clientQuery(r),a=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:Tn(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:nt(Je(r)),asQuery:(0,H.pi)((0,H.pi)({},r),{definitions:r.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,H.pi)((0,H.pi)({},e),{operation:"query"}):e}))})},u=function(e){e&&!n.has(e)&&n.set(e,s)};u(e),u(r),u(o),u(a)}return n.get(e)},e.prototype.getVariables=function(e,t){return(0,H.pi)((0,H.pi)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=(0,H.pi)((0,H.pi)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new Mr(this),n=new qn({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:e.query,observableQuery:n,variables:e.variables}),n},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?te(e.query,"query option is required. You must specify your GraphQL document in the query option."):te(e.query,16),__DEV__?te("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):te("Document"===e.query.kind,17),__DEV__?te(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):te(!e.returnPartialData,18),__DEV__?te(!e.pollInterval,"pollInterval option only supported on watchQuery."):te(!e.pollInterval,19),this.fetchQuery(t,e).finally((function(){return n.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new ee("Store reset while query was in flight (not completed in link chain)"):new ee(20)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=Pn.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,r=new Map,i=new Set;return Array.isArray(e)&&e.forEach((function(e){var n;"string"==typeof e?r.set(e,!1):Ne(n=e)&&"Document"===n.kind&&Array.isArray(n.definitions)?r.set(t.transform(e).document,!1):Ne(e)&&e.query&&i.add(e)})),this.queries.forEach((function(t,i){var o=t.observableQuery,a=t.document;if(o){if("all"===e)return void n.set(i,o);var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&r.has(s)||a&&r.has(a))&&(n.set(i,o),s&&r.set(s,!0),a&&r.set(a,!0))}})),i.size&&i.forEach((function(e){var r=In("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new qn({queryManager:t,queryInfo:i,options:(0,H.pi)((0,H.pi)({},e),{fetchPolicy:"network-only"})});te(o.queryId===r),i.setObservableQuery(o),n.set(r,o)})),__DEV__&&r.size&&r.forEach((function(e,t){e||__DEV__&&te.warn("Unknown query "+("string"==typeof t?"named ":"")+JSON.stringify(t,null,2)+" requested in refetchQueries options.include array")})),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach((function(r,i){var o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,s=void 0===a?{}:a;n=this.transform(n).document,o=this.getVariables(n,o);var u=function(e){return t.getObservableFromLink(n,s,e).map((function(o){if("no-cache"!==r&&(Lr(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),fn(o))throw new Cn({graphQLErrors:o.errors});return o}))};if(this.transform(n).hasClientExports){var c=this.localState.addExportedVariables(n,o,s).then(u);return new Ce((function(e){var t=null;return c.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return u(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.getQuery(e).stop(),this.queries.delete(e)},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var i,o,a=this;void 0===r&&(r=null!==(i=null==t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var s=this.transform(e).serverQuery;if(s){var u=this.inFlightLinkObservables,c=this.link,l={query:s,variables:n,operationName:Xe(s)||void 0,context:this.prepareContext((0,H.pi)((0,H.pi)({},t),{forceFetch:!r}))};if(t=l.context,r){var f=u.get(s)||new Map;u.set(s,f);var p=un(n);if(!(o=f.get(p))){var d=new kn([Ut(c,l)]);f.set(p,o=d),d.cleanup((function(){f.delete(p)&&f.size<1&&u.delete(s)}))}}else o=new kn([Ut(c,l)])}else o=new kn([Ce.of({data:{}})]),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(o=ln(o,(function(e){return a.localState.runResolvers({document:h,remoteResult:e,context:t,variables:n})}))),o},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId();return ln(this.getObservableFromLink(e.document,n.context,n.variables),(function(i){var o=Rn(i.errors);if(r>=e.lastRequestId){if(o&&"none"===n.errorPolicy)throw e.markError(new Cn({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var a={data:i.data,loading:!1,networkStatus:e.networkStatus||Pn.ready};return o&&"ignore"!==n.errorPolicy&&(a.errors=i.errors),a}),(function(t){var n=t.hasOwnProperty("graphQLErrors")?t:new Cn({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=Pn.loading);var i=this.transform(t.query).document,o=this.getVariables(i,t.variables),a=this.getQuery(e),s=t.fetchPolicy,u=void 0===s?"cache-first":s,c=t.errorPolicy,l=void 0===c?"none":c,f=t.returnPartialData,p=void 0!==f&&f,d=t.notifyOnNetworkStatusChange,h=void 0!==d&&d,v=t.context,y=void 0===v?{}:v,m=Object.assign({},t,{query:i,variables:o,fetchPolicy:u,errorPolicy:l,returnPartialData:p,notifyOnNetworkStatusChange:h,context:y}),g=function(e){return m.variables=e,r.fetchQueryByPolicy(a,m,n)};this.fetchCancelFns.set(e,(function(e){setTimeout((function(){return _.cancel(e)}))}));var _=new kn(this.transform(m.query).hasClientExports?this.localState.addExportedVariables(m.query,m.variables,m.context).then(g):g(m.variables));return _.cleanup((function(){r.fetchCancelFns.delete(e),function(e){var t=e.fetchPolicy,n=void 0===t?"cache-first":t,r=e.nextFetchPolicy;r&&(e.fetchPolicy="function"==typeof r?r.call(e,n):r)}(t)})),_},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?In("refetchQueries"):void 0:a,u=e.onQueryUpdated,c=new Map;r&&this.getObservableQueries(r).forEach((function(e,n){c.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})}));var l=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof Mr&&e.watcher.observableQuery;if(r){if(u){c.delete(r.queryId);var i=u(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&l.set(r,i),!1}null!==u&&c.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),c.size&&c.forEach((function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;if(u){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}r=u(i,a,o)}u&&!0!==r||(r=i.refetch()),!1!==r&&l.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)})),s&&this.cache.removeOptimistic(s),l},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,o=t.variables,a=t.fetchPolicy,s=t.refetchWritePolicy,u=t.errorPolicy,c=t.returnPartialData,l=t.context,f=t.notifyOnNetworkStatusChange,p=e.networkStatus;e.init({document:i,variables:o,networkStatus:n});var d=function(){return e.getDiff(o)},h=function(t,n){void 0===n&&(n=e.networkStatus||Pn.loading);var a=t.result;!__DEV__||c||Gt(a,{})||$n(t.missing);var s=function(e){return Ce.of((0,H.pi)({data:e,loading:Nn(n),networkStatus:n},t.complete?null:{partial:!0}))};return a&&r.transform(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:a},context:l,variables:o,onlyRunForcedResolvers:!0}).then((function(e){return s(e.data||void 0)})):s(a)},v="no-cache"===a?0:n===Pn.refetch&&"merge"!==s?1:2,y=function(){return r.getResultsFromLink(e,v,{variables:o,context:l,fetchPolicy:a,errorPolicy:u})},m=f&&"number"==typeof p&&p!==n&&Nn(n);switch(a){default:case"cache-first":return(g=d()).complete?[h(g,e.markReady())]:c||m?[h(g),y()]:[y()];case"cache-and-network":var g;return(g=d()).complete||c||m?[h(g),y()]:[y()];case"cache-only":return[h(d(),e.markReady())];case"network-only":return m?[h(d()),y()]:[y()];case"no-cache":return m?[h(e.getDiff()),y()]:[y()];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Mr(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,H.pi)((0,H.pi)({},t),{clientAwareness:this.clientAwareness})},e}(),Vr=!1;function $r(e,t){return Mt(e,t,t.variables&&{variables:(0,H.pi)((0,H.pi)({},e.variables),t.variables)})}var Gr=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,i=e.headers,o=e.cache,a=e.ssrMode,s=void 0!==a&&a,u=e.ssrForceFetchDelay,c=void 0===u?0:u,l=e.connectToDevTools,f=void 0===l?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:l,p=e.queryDeduplication,d=void 0===p||p,h=e.defaultOptions,v=e.assumeImmutableResults,y=void 0!==v&&v,m=e.resolvers,g=e.typeDefs,_=e.fragmentMatcher,b=e.name,E=e.version,w=e.link;if(w||(w=n?new jt({uri:n,credentials:r,headers:i}):st.empty()),!o)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(9);if(this.link=w,this.cache=o,this.disableNetworkFetches=s||c>0,this.queryDeduplication=d,this.defaultOptions=h||{},this.typeDefs=g,c&&setTimeout((function(){return t.disableNetworkFetches=!1}),c),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),f&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!Vr&&__DEV__&&(Vr=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var S=window.navigator,T=S&&S.userAgent,O=void 0;"string"==typeof T&&(T.indexOf("Chrome/")>-1?O="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":T.indexOf("Firefox/")>-1&&(O="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),O&&__DEV__&&te.log("Download the Apollo DevTools for a better development experience: "+O)}this.version="3.4.17",this.localState=new Nr({cache:o,client:this,resolvers:m,fragmentMatcher:_}),this.queryManager=new qr({cache:this.cache,link:this.link,queryDeduplication:d,ssrMode:s,clientAwareness:{name:b,version:E},localState:this.localState,assumeImmutableResults:y,onBroadcast:f?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=$r(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=(0,H.pi)((0,H.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=$r(this.defaultOptions.query,e)),__DEV__?te("cache-and-network"!==e.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."):te("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,H.pi)((0,H.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=$r(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Ut(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach((function(e,t){n.push(t),r.push(e)}));var i=Promise.all(r);return i.queries=n,i.results=r,i.catch((function(e){__DEV__&&te.debug("In client.refetchQueries, Promise.all promise rejected with error "+e)})),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}(),zr=function(){function e(){this.getFragmentDoc=xr(Fe)}return e.prototype.batch=function(e){var t="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;this.performTransaction(e.update,t)},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,H.pi)((0,H.pi)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,H.pi)((0,H.pi)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=(0,H._T)(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,o=(0,H._T)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e}(),Qr=function(e){function t(n,r,i,o){var a=e.call(this,n)||this;return a.message=n,a.path=r,a.query=i,a.variables=o,a.__proto__=t.prototype,a}return(0,H.ZT)(t,e),t}(Error);function Wr(e){return __DEV__&&(t=e,(n=new Set([t])).forEach((function(e){Ne(e)&&function(e){if(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((function(t){Ne(e[t])&&n.add(e[t])}))}))),e;var t,n}var Yr=Object.prototype.hasOwnProperty;function Kr(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=void 0!==r?{id:r}:void 0!==i?{_id:i}:void 0),void 0===r&&(r=i),void 0!==r))return n+":"+("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var Hr={dataIdFromObject:Kr,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Jr(e){var t=e.canonizeResults;return void 0===t?Hr.canonizeResults:t}var Xr=/^[_a-z][_0-9a-z]*/i;function Zr(e){var t=e.match(Xr);return t?t[0]:e}function ei(e,t,n){return!!Ne(t)&&(Array.isArray(t)?t.every((function(t){return ei(e,t,n)})):e.selections.every((function(e){if(Ye(e)&&wn(e,n)){var r=Qe(e);return Yr.call(t,r)&&(!e.selectionSet||ei(e.selectionSet,t[r],n))}return!0})))}function ti(e){return Ne(e)&&!Le(e)&&!Array.isArray(e)}var ni=Object.create(null),ri=function(){return ni},ii=Object.create(null),oi=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return Wr(Le(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return Le(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return Me(e);if(Le(e))return e;var r=n.policies.identify(e)[0];if(r){var i=Me(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return(0,H.pi)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),Yr.call(this.data,e)){var n=this.data[e];if(n&&Yr.call(n,t))return n[t]}return"__typename"===t&&Yr.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof ci?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),Yr.call(this.data,e)?this.data[e]:this instanceof ci?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;Le(e)&&(e=e.__ref),Le(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(n=e):e,o="string"==typeof t?this.lookup(n=t):t;if(o){__DEV__?te("string"==typeof n,"store.merge expects a string ID"):te("string"==typeof n,1);var a=new Yn(fi).merge(i,o);if(this.data[n]=a,a!==i&&(delete this.refs[n],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(o).forEach((function(e){if(!i||i[e]!==a[e]){s[e]=1;var t=Zr(e);t===e||r.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||r instanceof ci||delete a[e]}})),!s.__typename||i&&i.__typename||this.policies.rootTypenamesById[n]!==a.__typename||delete s.__typename,Object.keys(s).forEach((function(e){return r.group.dirty(n,e)}))}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),o=!1,a=!0,s={DELETE:ni,INVALIDATE:ii,isReference:Le,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||Me(e)}:t,{store:n})}};if(Object.keys(r).forEach((function(u){var c=Zr(u),l=r[u];if(void 0!==l){var f="function"==typeof t?t:t[u]||t[c];if(f){var p=f===ri?ni:f(Wr(l),(0,H.pi)((0,H.pi)({},s),{fieldName:c,storeFieldName:u,storage:n.getStorage(e,u)}));p===ii?n.group.dirty(e,u):(p===ni&&(p=void 0),p!==l&&(i[u]=p,o=!0,l=p))}void 0!==l&&(a=!1)}})),o)return this.merge(e,i),a&&(this instanceof ci?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,a?((r={})[a]=ri,r):ri)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(Yr.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof ci&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach((function(t){Yr.call(e.policies.rootTypenamesById,t)||n.push(t)})),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(n){e&&Yr.call(e,n)||t.delete(n)})),e){var n=e.__META,r=(0,H._T)(e,["__META"]);Object.keys(r).forEach((function(e){t.merge(e,r[e])})),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof ci?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){Yr.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])}));var r=Object.keys(n);if(r.length){for(var i=this;i instanceof ci;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},e.prototype.findChildRefIds=function(e){if(!Yr.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach((function(e){Le(e)&&(t[e.__ref]=!0),Ne(e)&&Object.keys(e).forEach((function(t){var n=e[t];Ne(n)&&r.add(n)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),ai=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?Tr():null,this.keyMaker=new nn(rn)},e.prototype.depend=function(e,t){if(this.d){this.d(si(e,t));var n=Zr(t);n!==t&&this.d(si(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(si(e,t),"__exists"===t?"forget":"setDirty")},e}();function si(e,t){return t+"#"+e}function ui(e,t){pi(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=void 0===r||r,o=t.seed,a=e.call(this,n,new ai(i))||this;return a.stump=new li(a),a.storageTrie=new nn(rn),o&&a.replace(o),a}return(0,H.ZT)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(oi||(oi={}));var ci=function(e){function t(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return(0,H.ZT)(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach((function(n){Gt(r[n],i[n])||t.group.dirty(e,n)})):(t.group.dirty(e,"__exists"),Object.keys(i).forEach((function(n){t.group.dirty(e,n)}))):t.delete(e)})),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,H.pi)((0,H.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return Yr.call(this.data,t)?(0,H.pi)((0,H.pi)({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(oi),li=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new ai(t.group.caching,t.group))||this}return(0,H.ZT)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(ci);function fi(e,t,n){var r=e[n],i=t[n];return Gt(r,i)?r:i}function pi(e){return!!(e instanceof oi&&e.group.caching)}function di(e,t){return new Qr(e.message,t.path.slice(),t.query,t.variables)}function hi(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var vi=function(){function e(e){var t=this;this.knownResults=new(rn?WeakMap:Map),this.config=Mt(e,{addTypename:!1!==e.addTypename,canonizeResults:Jr(e)}),this.canon=e.canon||new sn,this.executeSelectionSet=xr((function(e){var n,r=e.context.canonizeResults,i=hi(e);i[3]=!r;var o=(n=t.executeSelectionSet).peek.apply(n,i);return o?r?(0,H.pi)((0,H.pi)({},o),{result:t.canon.admit(o.result)}):o:(ui(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:hi,makeCacheKey:function(e,t,n,r){if(pi(n.store))return n.store.makeCacheKey(e,Le(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=xr((function(e){return ui(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(pi(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new sn},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,i=void 0===r?"ROOT_QUERY":r,o=e.variables,a=e.returnPartialData,s=void 0===a||a,u=e.canonizeResults,c=void 0===u?this.config.canonizeResults:u,l=this.config.cache.policies;o=(0,H.pi)((0,H.pi)({},nt(et(n))),o);var f=Me(i),p=this.executeSelectionSet({selectionSet:tt(n).selectionSet,objectOrReference:f,enclosingRef:f,context:{store:t,query:n,policies:l,variables:o,varString:un(o),canonizeResults:c,fragmentMap:je(Ze(n)),path:[]}}),d=p.missing&&p.missing.length>0;if(d&&!s)throw p.missing[0];return{result:p.result,missing:p.missing,complete:!d}},e.prototype.isFresh=function(e,t,n,r){if(pi(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.enclosingRef,o=e.context;if(Le(r)&&!o.policies.rootTypenamesById[r.__ref]&&!o.store.has(r.__ref))return{result:this.canon.empty,missing:[di(__DEV__?new ee("Dangling reference to missing "+r.__ref+" object"):new ee(5),o)]};var a=o.variables,s=o.policies,u=o.store,c=[],l={result:null},f=u.getFieldValue(r,"__typename");function p(){return l.missing||(l.missing=[])}function d(e){var t;return e.missing&&(t=p()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"==typeof f&&!s.rootIdsByTypename[f]&&c.push({__typename:f});var h=new Set(n.selections);h.forEach((function(e){var n;if(wn(e,a))if(Ye(e)){var u=s.readField({fieldName:e.name.value,field:e,variables:o.variables,from:r},o),l=Qe(e);o.path.push(l),void 0===u?gn.added(e)||p().push(di(__DEV__?new ee("Can't find field '"+e.name.value+"' on "+(Le(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2))):new ee(6),o)):Array.isArray(u)?u=d(t.executeSubSelectedArray({field:e,array:u,enclosingRef:i,context:o})):e.selectionSet?null!=u&&(u=d(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:u,enclosingRef:Le(u)?u:i,context:o}))):o.canonizeResults&&(u=t.canon.pass(u)),void 0!==u&&c.push(((n={})[l]=u,n)),te(o.path.pop()===l)}else{var v=Ue(e,o.fragmentMap);v&&s.fragmentMatches(v,f)&&v.selectionSet.selections.forEach(h.add,h)}}));var v=Qn(c);return l.result=o.canonizeResults?this.canon.admit(v):Wr(v),this.knownResults.set(l.result,n),l},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,o=e.enclosingRef,a=e.context;function s(e,n){return e.missing&&(t=t||[]).push.apply(t,e.missing),te(a.path.pop()===n),e.result}return r.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map((function(e,t){return null===e?null:(a.path.push(t),Array.isArray(e)?s(n.executeSubSelectedArray({field:r,array:e,enclosingRef:o,context:a}),t):r.selectionSet?s(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:Le(e)?e:o,context:a}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach((function(n){Ne(n)&&(__DEV__?te(!Le(n),"Missing selection set for object of type "+function(e,t){return Le(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n)+" returned for query field "+t.name.value):te(!Le(n),7),Object.values(n).forEach(r.add,r))}))}}(a.store,r,e),te(a.path.pop()===t),e))})),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),yi=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,o=t.dataId,a=t.variables,s=t.overwrite,u=Je(r),c=new Yn;a=(0,H.pi)((0,H.pi)({},nt(u)),a);var l={store:e,written:Object.create(null),merge:function(e,t){return c.merge(e,t)},variables:a,varString:un(a),fragmentMap:je(Ze(r)),overwrite:!!s,incomingById:new Map,clientOnly:!1},f=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:l});if(!Le(f))throw __DEV__?new ee("Could not identify object "+JSON.stringify(i)):new ee(8);return l.incomingById.forEach((function(t,r){var i=t.fields,o=t.mergeTree,a=t.selections,s=Me(r);if(o&&o.map.size){var u=n.applyMerges(o,s,i,l);if(Le(u))return;i=u}if(__DEV__&&!l.overwrite){var c=new Set;a.forEach((function(e){Ye(e)&&e.selectionSet&&c.add(e.name.value)})),Object.keys(i).forEach((function(e){(function(e){return c.has(Zr(e))})(e)&&!function(e){var t=o&&o.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,n,r){var i=function(e){var t=r.getFieldValue(e,n);return"object"==typeof t&&t},o=i(e);if(o){var a=i(t);if(a&&!Le(o)&&!Gt(o,a)&&!Object.keys(o).every((function(e){return void 0!==r.getFieldValue(a,e)}))){var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),u=Zr(n),c=s+"."+u;if(!wi.has(c)){wi.add(c);var l=[];Array.isArray(o)||Array.isArray(a)||[o,a].forEach((function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||l.includes(t)||l.push(t)})),__DEV__&&te.warn("Cache data may be lost when replacing the "+u+" field of a "+s+" object.\n\nTo address this problem (which is not a bug in Apollo Client), "+(l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"")+"define a custom merge function for the "+c+" field, so InMemoryCache can safely merge these objects:\n\n existing: "+JSON.stringify(o).slice(0,1e3)+"\n incoming: "+JSON.stringify(a).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")}}}}(s,i,e,l.store)}))}e.merge(r,i)})),e.retain(f.__ref),f},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,o=e.context,a=e.mergeTree,s=this.cache.policies,u=s.identify(r,i,o.fragmentMap),c=u[0],l=u[1];if("string"==typeof(n=n||c)){var f=o.written[n]||(o.written[n]=[]),p=Me(n);if(f.indexOf(i)>=0)return p;if(f.push(i),this.reader&&this.reader.isFresh(r,p,i,o))return p}var d=Object.create(null);l&&(d=o.merge(d,l));var h=n&&s.rootTypenamesById[n]||We(r,i,o.fragmentMap)||n&&o.store.get(n,"__typename");"string"==typeof h&&(d.__typename=h);var v=new Set(i.selections);if(v.forEach((function(e){var n;if(wn(e,o.variables))if(Ye(e)){var i=Qe(e),u=r[i],c=o.clientOnly;if(o.clientOnly=c||!(!e.directives||!e.directives.some((function(e){return"client"===e.name.value}))),void 0!==u){var l=s.getStoreFieldName({typename:h,fieldName:e.name.value,field:e,variables:o.variables}),f=gi(a,l),p=t.processFieldValue(u,e,o,f),y=void 0;if(e.selectionSet&&!(y=o.store.getFieldValue(p,"__typename"))&&Le(p)){var m=o.incomingById.get(p.__ref);y=m&&m.fields.__typename}var g=s.getMergeFunction(h,e.name.value,y);g?f.info={field:e,typename:h,merge:g}:Ei(a,l),d=o.merge(d,((n={})[l]=p,n))}else o.clientOnly||gn.added(e)||__DEV__&&te.error(("Missing field '"+Qe(e)+"' while writing result "+JSON.stringify(r,null,2)).substring(0,1e3));o.clientOnly=c}else{var _=Ue(e,o.fragmentMap);_&&s.fragmentMatches(_,h,r,o.variables)&&_.selectionSet.selections.forEach(v.add,v)}})),"string"==typeof n){var y=o.incomingById.get(n);return y?(y.fields=o.merge(y.fields,d),y.mergeTree=_i(y.mergeTree,a),y.selections.forEach(v.add,v),y.selections=v):o.incomingById.set(n,{fields:d,mergeTree:bi(a)?void 0:a,selections:v}),Me(n)}return d},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map((function(e,o){var a=i.processFieldValue(e,t,n,gi(r,o));return Ei(r,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?jn(e):e},e.prototype.applyMerges=function(e,t,n,r,i){var o,a=this;if(e.map.size&&!Le(n)){var s,u=Array.isArray(n)||!Le(t)&&!ti(t)?void 0:t,c=n;u&&!i&&(i=[Le(u)?u.__ref:u]);var l=function(e,t){return Array.isArray(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var n=l(u,t),o=l(c,t);if(void 0!==o){i&&i.push(t);var f=a.applyMerges(e,n,o,r,i);f!==o&&(s=s||new Map).set(t,f),i&&te(i.pop()===t)}})),s&&(n=Array.isArray(c)?c.slice(0):(0,H.pi)({},c),s.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(o=r.store).getStorage.apply(o,i)):n},e}(),mi=[];function gi(e,t){var n=e.map;return n.has(t)||n.set(t,mi.pop()||{map:new Map}),n.get(t)}function _i(e,t){if(e===t||!t||bi(t))return e;if(!e||bi(e))return t;var n=e.info&&t.info?(0,H.pi)((0,H.pi)({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var o=new Set(t.map.keys());e.map.forEach((function(e,n){i.map.set(n,_i(e,t.map.get(n))),o.delete(n)})),o.forEach((function(n){i.map.set(n,_i(t.map.get(n),e.map.get(n)))}))}return i}function bi(e){return!e||!(e.info||e.map.size)}function Ei(e,t){var n=e.map,r=n.get(t);r&&bi(r)&&(mi.push(r),n.delete(t))}var wi=new Set;function Si(e){var t=In("stringifyForDisplay");return JSON.stringify(e,(function(e,n){return void 0===n?t:n})).split(JSON.stringify(t)).join("<undefined>")}function Ti(e){return void 0!==e.args?e.args:e.field?ze(e.field,e.variables):null}Ve.setStringify(un);var Oi=function(){},Ii=function(e,t){return t.fieldName},xi=function(e,t,n){return(0,n.mergeObjects)(e,t)},Di=function(e,t){return t},Ai=function(){function e(e){this.config=e,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=(0,H.pi)({dataIdFromObject:Kr},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t,n){var r=t&&n?We(e,t,n):e.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i,o={typename:r,selectionSet:t,fragmentMap:n},a=r&&this.getTypePolicy(r),s=a&&a.keyFn||this.config.dataIdFromObject;s;){var u=s(e,o);if(!Array.isArray(u)){i=u;break}s=Ci(u)}return i=i?String(i):void 0,o.keyObject?[i,o.keyObject]:[i]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n],i=r.queryType,o=r.mutationType,a=r.subscriptionType,s=(0,H._T)(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),a&&t.setRootTypename("Subscription",n),Yr.call(t.toBeAdded,n)?t.toBeAdded[n].push(s):t.toBeAdded[n]=[s]}))},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?xi:!1===t?Di:e.merge}a(r,t.merge),r.keyFn=!1===i?Oi:Array.isArray(i)?Ci(i):"function"==typeof i?i:r.keyFn,o&&Object.keys(o).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)r.read=i;else{var s=i.keyArgs,u=i.read,c=i.merge;r.keyFn=!1===s?Ii:Array.isArray(s)?Pi(s):"function"==typeof s?s:r.keyFn,"function"==typeof u&&(r.read=u),a(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||Ii)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?te(!r||r===e,"Cannot change root "+e+" __typename more than once"):te(!r||r===e,2),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(n){t.getSupertypeSet(n,!0),e[n].forEach((function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(Xr);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!Yr.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);r&&r.size&&r.forEach((function(e){var r=t.getTypePolicy(e),i=r.fields,o=(0,H._T)(r,["fields"]);Object.assign(n,o),Object.assign(n.fields,i)}))}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach((function(n){t.updateTypePolicy(e,n)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},c=!(!n||!this.fuzzySubtypes.size),l=!1,f=0;f<s.length;++f){var p=s[f];if(p.has(o))return a.has(o)||(l&&__DEV__&&te.warn("Inferring subtype "+t+" of supertype "+o),a.add(o)),!0;p.forEach(u),c&&f===s.length-1&&ei(e.selectionSet,n,r)&&(c=!1,l=!0,this.fuzzySubtypes.forEach((function(e,n){var r=t.match(e);r&&r[0]===t&&u(n)})))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!(!n||!n.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n=e.typename,r=e.fieldName,i=this.getFieldPolicy(n,r,!1),o=i&&i.keyFn;if(o&&n)for(var a={typename:n,fieldName:r,field:e.field||null,variables:e.variables},s=Ti(e);o;){var u=o(s,a);if(!Array.isArray(u)){t=u||r;break}o=Pi(u)}return void 0===t&&(t=e.field?function(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var i=r.name,o=r.value;return Be(n[e.name.value],i,o,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,i=e.value;return Be(r,n,i,t)}))),Ve(e.name.value,r,n)}(e.field,e.variables):Ve(r,Ti(e))),!1===t?r:r===Zr(t)?t:r+":"+t},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(void 0===e.typename){var r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}var i=this.getStoreFieldName(e),o=Zr(i),a=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,o,!1),u=s&&s.read;if(u){var c=ki(this,n,e,t,t.store.getStorage(Le(n)?n.__ref:n,i));return Dr.withValue(this.cache,u,[a,c])}return a}},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t,!1),i=r&&r.merge;return!i&&n&&(i=(r=this.getTypePolicy(n))&&r.merge),i},e.prototype.runMergeFunction=function(e,t,n,r,i){var o=n.field,a=n.typename,s=n.merge;return s===xi?Ri(r.store)(e,t):s===Di?t:(r.overwrite&&(e=void 0),s(e,t,ki(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null))))},e}();function ki(e,t,n,r,i){var o=e.getStoreFieldName(n),a=Zr(o),s=n.variables||r.variables,u=r.store,c=u.toReference,l=u.canRead;return{args:Ti(n),field:n.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:Le,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(n,i){var o;if("string"==typeof n)o={fieldName:n,from:arguments.length>1?i:t};else{if(!Ne(n))return void(__DEV__&&te.warn("Unexpected readField arguments: "+Si(Array.from(arguments))));o=(0,H.pi)({},n),Yr.call(n,"from")||(o.from=t)}return __DEV__&&void 0===o.from&&__DEV__&&te.warn("Undefined 'from' passed to readField with arguments "+Si(Array.from(arguments))),void 0===o.variables&&(o.variables=s),e.readField(o,r)},mergeObjects:Ri(r.store)}}function Ri(e){return function(t,n){if(Array.isArray(t)||Array.isArray(n))throw __DEV__?new ee("Cannot automatically merge arrays"):new ee(3);if(Ne(t)&&Ne(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(Le(t)&&ti(n))return e.merge(t.__ref,n),t;if(ti(t)&&Le(n))return e.merge(t,n.__ref),n;if(ti(t)&&ti(n))return(0,H.pi)((0,H.pi)({},t),n)}return n}}function Pi(e){return function(t,n){return t?n.fieldName+":"+JSON.stringify(Fi(t,e,!1)):n.fieldName}}function Ci(e){var t=new nn(rn);return function(n,r){var i;if(r.selectionSet&&r.fragmentMap){var o=t.lookupArray([r.selectionSet,r.fragmentMap]);i=o.aliasMap||(o.aliasMap=Ni(r.selectionSet,r.fragmentMap))}var a=r.keyObject=Fi(n,e,!0,i);return r.typename+":"+JSON.stringify(a)}}function Ni(e,t){var n=Object.create(null),r=new Set([e]);return r.forEach((function(e){e.selections.forEach((function(e){if(Ye(e)){if(e.alias){var i=e.alias.value,o=e.name.value;o!==i&&((n.aliases||(n.aliases=Object.create(null)))[o]=i)}e.selectionSet&&((n.subsets||(n.subsets=Object.create(null)))[e.name.value]=Ni(e.selectionSet,t))}else{var a=Ue(e,t);a&&r.add(a.selectionSet)}}))})),n}function Fi(e,t,n,r){var i,o,a=Object.create(null);return t.forEach((function(t){if(Array.isArray(t)){if("string"==typeof o&&"string"==typeof i){var s=r&&r.subsets,u=s&&s[o];a[o]=Fi(e[i],t,n,u)}}else{var c=r&&r.aliases,l=c&&c[t]||t;Yr.call(e,l)?a[o=t]=e[i=l]:(__DEV__?te(!n,"Missing field '"+l+"' while computing key fields"):te(!n,4),i=o=void 0)}})),a}var ji=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=Pr,n.txCount=0,n.config=function(e){return Mt(Hr,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new Ai({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,H.ZT)(t,e),t.prototype.init=function(){var e=this.data=new oi.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader;this.storeWriter=new yi(this,this.storeReader=new vi({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Jr(this.config),canon:e?void 0:n&&n.canon})),this.maybeBroadcastWatch=xr((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(pi(n)){var r=e.optimistic,i=e.rootId,o=e.variables;return n.makeCacheKey(e.query,e.callback,un({optimistic:r,rootId:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore((0,H.pi)((0,H.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(e){if(e instanceof Qr)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(Yr.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,H.pi)((0,H.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t,n=this;return this.watches.size||kr(t=this).vars.forEach((function(e){return e.attachCache(t)})),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){n.watches.delete(e)&&!n.watches.size&&Rr(n),n.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){un.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){return Le(e)?e.__ref:this.policies.identify(e)[0]},t.prototype.evict=function(e){if(!e.id){if(Yr.call(e,"id"))return!1;e=(0,H.pi)((0,H.pi)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),un.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),Rr(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t=this,n=e.update,r=e.optimistic,i=void 0===r||r,o=e.removeOptimistic,a=e.onWatchUpdated,s=function(e){var r=t,i=r.data,o=r.optimisticData;++t.txCount,e&&(t.data=t.optimisticData=e);try{n(t)}finally{--t.txCount,t.data=i,t.optimisticData=o}},u=new Set;a&&!this.txCount&&this.broadcastWatches((0,H.pi)((0,H.pi)({},e),{onWatchUpdated:function(e){return u.add(e),!1}})),"string"==typeof i?this.optimisticData=this.optimisticData.addLayer(i,s):!1===i?s(this.data):s(),"string"==typeof o&&(this.optimisticData=this.optimisticData.removeLayer(o)),a&&u.size?(this.broadcastWatches((0,H.pi)((0,H.pi)({},e),{onWatchUpdated:function(e,t){var n=a.call(this,e,t);return!1!==n&&u.delete(e),n}})),u.size&&u.forEach((function(e){return t.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e)},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=gn(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(n){return t.maybeBroadcastWatch(n,e)}))},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(r.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,r,n))||n&&Gt(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(zr);const Ui=JSON.parse('{"g":{"Credentials":["HubspotCredentials","StripeCredentials","ZuoraCredentials"],"ResetPeriodConfiguration":["MonthlyResetPeriodConfig","WeeklyResetPeriodConfig"],"ScheduleVariables":["BillingPeriodChangeVariables","DowngradeChangeVariables","UnitAmountChangeVariables"]}}');var Mi=n(4098),Li=n.n(Mi),Bi=function(){function e(e){var t=e.batchDebounce,n=e.batchInterval,r=e.batchMax,i=e.batchHandler,o=e.batchKey;this.queuedRequests=new Map,this.batchDebounce=t,this.batchInterval=n,this.batchMax=r||0,this.batchHandler=i,this.batchKey=o||function(){return""}}return e.prototype.enqueueRequest=function(e){var t=this,n=(0,H.pi)({},e),r=!1,i=this.batchKey(e.operation);return n.observable||(n.observable=new Ce((function(e){t.queuedRequests.has(i)||t.queuedRequests.set(i,[]),r||(t.queuedRequests.get(i).push(n),r=!0),n.next=n.next||[],e.next&&n.next.push(e.next.bind(e)),n.error=n.error||[],e.error&&n.error.push(e.error.bind(e)),n.complete=n.complete||[],e.complete&&n.complete.push(e.complete.bind(e)),1===t.queuedRequests.get(i).length?t.scheduleQueueConsumption(i):t.batchDebounce&&(clearTimeout(t.scheduledBatchTimer),t.scheduleQueueConsumption(i)),t.queuedRequests.get(i).length===t.batchMax&&t.consumeQueue(i)}))),n.observable},e.prototype.consumeQueue=function(e){var t=e||"",n=this.queuedRequests.get(t);if(n){this.queuedRequests.delete(t);var r=n.map((function(e){return e.operation})),i=n.map((function(e){return e.forward})),o=[],a=[],s=[],u=[];n.forEach((function(e,t){o.push(e.observable),a.push(e.next),s.push(e.error),u.push(e.complete)}));var c=this.batchHandler(r,i)||Ce.of(),l=function(e){s.forEach((function(t){t&&t.forEach((function(t){return t(e)}))}))};return c.subscribe({next:function(e){if(Array.isArray(e)||(e=[e]),a.length!==e.length){var t=new Error("server returned results with length "+e.length+", expected length of "+a.length);return t.result=e,l(t)}e.forEach((function(e,t){a[t]&&a[t].forEach((function(t){return t(e)}))}))},error:l,complete:function(){u.forEach((function(e){e&&e.forEach((function(e){return e()}))}))}}),o}},e.prototype.scheduleQueueConsumption=function(e){var t=this,n=e||"";this.scheduledBatchTimer=setTimeout((function(){t.queuedRequests.get(n)&&t.queuedRequests.get(n).length&&t.consumeQueue(n)}),this.batchInterval)},e}(),qi=function(e){function t(t){var n=e.call(this)||this,r=t||{},i=r.batchDebounce,o=r.batchInterval,a=void 0===o?10:o,s=r.batchMax,u=void 0===s?0:s,c=r.batchHandler,l=void 0===c?function(){return null}:c,f=r.batchKey,p=void 0===f?function(){return""}:f;return n.batcher=new Bi({batchDebounce:i,batchInterval:a,batchMax:u,batchHandler:l,batchKey:p}),t.batchHandler.length<=1&&(n.request=function(e){return n.batcher.enqueueRequest({operation:e})}),n}return(0,H.ZT)(t,e),t.prototype.request=function(e,t){return this.batcher.enqueueRequest({operation:e,forward:t})},t}(st),Vi=function(e){function t(t){var n=e.call(this)||this,r=t||{},i=r.uri,o=void 0===i?"/graphql":i,a=r.fetch,s=r.includeExtensions,u=r.batchInterval,c=r.batchDebounce,l=r.batchMax,f=r.batchKey,p=(0,H._T)(r,["uri","fetch","includeExtensions","batchInterval","batchDebounce","batchMax","batchKey"]);_t(a),a||(a=fetch);var d={http:{includeExtensions:s},options:p.fetchOptions,credentials:p.credentials,headers:p.headers};return n.batchDebounce=c,n.batchInterval=u||10,n.batchMax=l||10,f=f||function(e){var t=e.getContext(),n={http:t.http,options:t.fetchOptions,credentials:t.credentials,headers:t.headers};return vt(e,o)+JSON.stringify(n)},n.batcher=new qi({batchDebounce:n.batchDebounce,batchInterval:n.batchInterval,batchMax:n.batchMax,batchKey:f,batchHandler:function(e){var t=vt(e[0],o),n=e[0].getContext(),r={};if(n.clientAwareness){var i=n.clientAwareness,s=i.name,u=i.version;s&&(r["apollographql-client-name"]=s),u&&(r["apollographql-client-version"]=u)}var c,l={http:n.http,options:n.fetchOptions,credentials:n.credentials,headers:(0,H.pi)((0,H.pi)({},r),n.headers)},f=e.map((function(e){return Rt(e,kt,d,l)})),p=f.map((function(e){return e.body})),h=f[0].options;if("GET"===h.method)return Nt(new Error("apollo-link-batch-http does not support GET requests"));try{h.body=ht(p,"Payload")}catch(e){return Nt(e)}if(!h.signal){var v=Ct(),y=v.controller,m=v.signal;(c=y)&&(h.signal=m)}return new Ce((function(n){return a(t,h).then((function(t){return e.forEach((function(e){return e.setContext({response:t})})),t})).then(gt(e)).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){c&&c.abort()}}))}}),n}return(0,H.ZT)(t,e),t.prototype.request=function(e){return this.batcher.request(e)},t}(st),$i=function(){function e(e,t,n,r){var i=this;this.operation=e,this.nextLink=t,this.delayFor=n,this.retryIf=r,this.retryCount=0,this.values=[],this.complete=!1,this.canceled=!1,this.observers=[],this.currentSubscription=null,this.onNext=function(e){i.values.push(e);for(var t=0,n=i.observers;t<n.length;t++){var r=n[t];r&&r.next(e)}},this.onComplete=function(){i.complete=!0;for(var e=0,t=i.observers;e<t.length;e++){var n=t[e];n&&n.complete()}},this.onError=function(e){return(0,H.mG)(i,void 0,void 0,(function(){var t,n,r;return(0,H.Jh)(this,(function(i){switch(i.label){case 0:return this.retryCount+=1,[4,this.retryIf(this.retryCount,this.operation,e)];case 1:if(i.sent())return this.scheduleRetry(this.delayFor(this.retryCount,this.operation,e)),[2];for(this.error=e,t=0,n=this.observers;t<n.length;t++)(r=n[t])&&r.error(e);return[2]}}))}))}}return e.prototype.subscribe=function(e){if(this.canceled)throw new Error("Subscribing to a retryable link that was canceled is not supported");this.observers.push(e);for(var t=0,n=this.values;t<n.length;t++){var r=n[t];e.next(r)}this.complete?e.complete():this.error&&e.error(this.error)},e.prototype.unsubscribe=function(e){var t=this.observers.indexOf(e);if(t<0)throw new Error("RetryLink BUG! Attempting to unsubscribe unknown observer!");this.observers[t]=null,this.observers.every((function(e){return null===e}))&&this.cancel()},e.prototype.start=function(){this.currentSubscription||this.try()},e.prototype.cancel=function(){this.currentSubscription&&this.currentSubscription.unsubscribe(),clearTimeout(this.timerId),this.timerId=void 0,this.currentSubscription=null,this.canceled=!0},e.prototype.try=function(){this.currentSubscription=this.nextLink(this.operation).subscribe({next:this.onNext,error:this.onError,complete:this.onComplete})},e.prototype.scheduleRetry=function(e){var t=this;if(this.timerId)throw new Error("RetryLink BUG! Encountered overlapping retries");this.timerId=setTimeout((function(){t.timerId=void 0,t.try()}),e)},e}(),Gi=function(e){function t(t){var n=e.call(this)||this,r=t||{},i=r.attempts,o=r.delay;return n.delayFor="function"==typeof o?o:function(e){var t=e||{},n=t.initial,r=void 0===n?300:n,i=t.jitter,o=void 0===i||i,a=t.max,s=void 0===a?1/0:a,u=o?r:r/2;return function(e){var t=Math.min(s,u*Math.pow(2,e));return o&&(t=Math.random()*t),t}}(o),n.retryIf="function"==typeof i?i:function(e){var t=e||{},n=t.retryIf,r=t.max,i=void 0===r?5:r;return function(e,t,r){return!(e>=i)&&(n?n(r,t):!!r)}}(i),n}return(0,H.ZT)(t,e),t.prototype.request=function(e,t){var n=new $i(e,t,this.delayFor,this.retryIf);return n.start(),new Ce((function(e){return n.subscribe(e),function(){n.unsubscribe(e)}}))},t}(st),zi=n(4147);function Qi(e,t){return new st((function(n,r){var i={"X-API-KEY":e,source:j},o=t.customerToken;return o&&(i["X-CUSTOMER-KEY"]=o),n.setContext({headers:i}),r(n)}))}var Wi=function(e){return!!e&&![500,400].includes(e.statusCode)};var Yi=function(){function e(){var e=this;this.setFeatures=function(t){return e.features=new Set(t)},this.entitlements=new Map,this.features=new Set,this.lastUpdate=null}return e.prototype.getEntitlement=function(e){return this.entitlements.get(e)||null},e.prototype.validateFeature=function(e){return this.features.has(e)},e.prototype.setEntitlements=function(e,t){this.entitlements=e,this.lastUpdate=t},e.prototype.getEntitlements=function(){return this.entitlements},e.prototype.getLastUpdate=function(){return this.lastUpdate},e.prototype.isLoaded=function(){return!!this.lastUpdate},e}(),Ki=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},Hi=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},Ji=function(){function e(e,t){this.client=e,this.edgeApiClient=t}return e.prototype.getEntitlements=function(e,t,n){return void 0===t&&(t=!1),Ki(this,void 0,void 0,(function(){return Hi(this,(function(r){return this.edgeApiClient&&!t?[2,this.edgeApiClient.getEntitlements(e,n)]:[2,this.client.query({query:d.ro,variables:{query:{customerId:e,resourceId:n}},fetchPolicy:"no-cache"})]}))}))},e.prototype.pollEntitlements=function(e,t,n){return this.edgeApiClient?this.edgeApiClient.watchEntitlements(e,t,n):this.client.watchQuery({query:d.ro,variables:{query:{customerId:e,resourceId:n}},fetchPolicy:"no-cache",pollInterval:t,errorPolicy:"none"})},e.prototype.reportEntitlementRequested=function(e,t,n,r,i){return Ki(this,void 0,void 0,(function(){return Hi(this,(function(o){switch(o.label){case 0:return[4,this.client.mutate({mutation:d.JD,variables:{entitlementCheckRequested:{entitlementCheckResult:n,customerId:t,featureId:e,resourceId:r,requestedUsage:i}},fetchPolicy:"no-cache"})];case 1:return o.sent(),[2]}}))}))},e}();const Xi=Ji;var Zi=function(){function e(){}return e.decideEntitlementPolicy=function(e,t){var n,r;if(!e||!e.calculatedEntitlement.feature)return{hasAccess:!1,accessDeniedReason:u.CustomerNotEntitledForFeature};var i=e.calculatedEntitlement.feature,o=i.featureType,a=i.meterType;switch(o){case c.Boolean:return{hasAccess:!0};case c.Numeric:if((null===(n=e.calculatedEntitlement.feature)||void 0===n?void 0:n.meterType)===l.None)return{hasAccess:!0};if(e.calculatedEntitlement.hasUnlimitedUsage)return{hasAccess:!0};var s=e.featureUsage.currentUsage;return a===l.Incremental&&e.featureUsage.nextResetDate<(new Date).getTime()&&(s=0),s+(t||0)<=((null===(r=e.calculatedEntitlement)||void 0===r?void 0:r.usageLimit)||0)?{hasAccess:!0}:{hasAccess:!1,accessDeniedReason:u.RequestedUsageExceedsLimit}}},e}(),eo=function(){function e(e,t,n,r){this.entitlementsApi=e,this.customerId=t,this.loggerService=n,this.resourceId=r}return e.prototype.reportEntitlementCheckRequested=function(e,t,n){var r=this;this.entitlementsApi.reportEntitlementRequested(e,this.customerId,t,this.resourceId,n).then((function(){r.loggerService.debug("Successfully reported entitlement check requested")}),(function(){}))},e}(),to=n(6486),no=function(){return no=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},no.apply(this,arguments)},ro=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},io=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},oo=function(){function e(e,t,n,r,i,o,a,s){this.customerId=e,this.resourceId=t,this.cacheService=n,this.loggerService=a,this.onEntitlementsUpdated=s,this.modelMapper=new W,this.loadingEntitlements=null,this.entitlementsApi=new Xi(r,o),this.entitlementCheckReportingService=new eo(new Xi(i,o),e,a,t),this.entitlementsPollingObserver=null}return e.prototype.startPolling=function(e){var t=this;this.stopPolling(),this.entitlementsPollingObserver=this.entitlementsApi.pollEntitlements(this.customerId,e,this.resourceId),this.entitlementsPollingObserver.subscribe((function(n){var r;if(n.errors||!n.data||!n.data.entitlements)return t.loggerService.error("Failed to poll entitlements. Error: ".concat(n.errors),{errors:(null===(r=n.errors)||void 0===r?void 0:r.map((function(e){return e.message})).join(", "))||""}),void setTimeout((function(){return t.restartPolling(e)}),e);t.storeFetchedEntitlementsInCache(n.data.entitlements)}),(function(n){t.loggerService.error("Failed to poll entitlements. Error: ".concat(n.message),n),setTimeout((function(){return t.restartPolling(e)}),e)}))},e.prototype.stopPolling=function(){var e;null===(e=this.entitlementsPollingObserver)||void 0===e||e.stopPolling()},e.prototype.restartPolling=function(e){this.stopPolling(),this.startPolling(e)},e.prototype.refresh=function(){return ro(this,void 0,void 0,(function(){return io(this,(function(e){switch(e.label){case 0:return[4,this.loadEntitlements(!0)];case 1:return e.sent(),[2]}}))}))},Object.defineProperty(e.prototype,"isInitialized",{get:function(){return this.cacheService.isLoaded()},enumerable:!1,configurable:!0}),e.prototype.getBooleanEntitlement=function(e,t,n){var r=(null==n?void 0:n.shouldTrack)||!1,i=this.cacheService.getEntitlement(e),o=Zi.decideEntitlementPolicy(i);if((null==i?void 0:i.calculatedEntitlement.feature)&&i.calculatedEntitlement.feature.featureType!==c.Boolean)return this.tryTrackEntitlementCheck(r,e,this.modelMapper.mapFallbackBooleanEntitlementResult(t,o)),t;if(!i){var a=this.modelMapper.mapEntitlementResult(o);return this.tryTrackEntitlementCheck(r,e,a),no(no({},o),{isFallback:!1})}var s=this.modelMapper.mapEntitlementResult(o,i);return this.tryTrackEntitlementCheck(r,e,s),this.modelMapper.mapBooleanEntitlement(i,o)},e.prototype.getNumericEntitlement=function(e,t,n){var r,i=(null==n?void 0:n.shouldTrack)||!1,o=this.cacheService.getEntitlement(e),a=Zi.decideEntitlementPolicy(o);if((null==o?void 0:o.calculatedEntitlement.feature)&&(null===(r=o.calculatedEntitlement.feature)||void 0===r?void 0:r.featureType)!==c.Numeric){var s=this.modelMapper.mapFallbackNumericEntitlementResult(t,a);return this.tryTrackEntitlementCheck(i,e,s),t}if(!o){var u=this.modelMapper.mapEntitlementResult(a);return this.tryTrackEntitlementCheck(i,e,u),no(no({},a),{isFallback:!1,isUnlimited:!1})}var l=this.modelMapper.mapEntitlementResult(a,o);return this.tryTrackEntitlementCheck(i,e,l),this.modelMapper.mapNumericEntitlement(o,a)},e.prototype.getMeteredEntitlement=function(e,t,n){var r,i,o=(null==n?void 0:n.shouldTrack)||!1,a=this.cacheService.getEntitlement(e),s=null==n?void 0:n.requestedUsage,u=Zi.decideEntitlementPolicy(a,s);if((null==a?void 0:a.calculatedEntitlement.feature)&&(null===(r=a.calculatedEntitlement.feature)||void 0===r?void 0:r.meterType)!==l.Fluctuating&&(null===(i=a.calculatedEntitlement.feature)||void 0===i?void 0:i.meterType)!==l.Incremental){var c=this.modelMapper.mapFallbackMeteredEntitlementResult(t,u,s);return this.tryTrackEntitlementCheck(o,e,c,s),t}if(!a){var f=this.modelMapper.mapEntitlementResult(u,void 0,s);return this.tryTrackEntitlementCheck(o,e,f,s),no(no({},u),{currentUsage:0,isFallback:!1,isUnlimited:!1,requestedUsage:s||0})}var p=this.modelMapper.mapEntitlementResult(u,a,s);return this.tryTrackEntitlementCheck(o,e,p,s),this.modelMapper.mapMeteredEntitlement(a,u,s)},e.prototype.tryTrackEntitlementCheck=function(e,t,n,r){e&&this.entitlementCheckReportingService.reportEntitlementCheckRequested(t,n,r)},e.prototype.loadEntitlements=function(e){return ro(this,void 0,void 0,(function(){return io(this,(function(t){switch(t.label){case 0:this.loadingEntitlements||(this.loadingEntitlements=this.loadEntitlementsFromRemote(e)),t.label=1;case 1:return t.trys.push([1,,3,4]),[4,this.loadingEntitlements];case 2:return[2,t.sent()];case 3:return this.loadingEntitlements=null,[7];case 4:return[2]}}))}))},e.prototype.loadEntitlementsFromRemote=function(e){return ro(this,void 0,void 0,(function(){var t;return io(this,(function(n){switch(n.label){case 0:return[4,this.entitlementsApi.getEntitlements(this.customerId,e,this.resourceId)];case 1:return t=n.sent(),this.storeFetchedEntitlementsInCache(t.data.entitlements),[2]}}))}))},e.prototype.storeFetchedEntitlementsInCache=function(e){var t=this.cacheService.getLastUpdate(),n=this.getLastEntitlementsUpdate(e);if(!(t&&n.getTime()<t.getTime())){var r=this.modelMapper.mapCachedEntitlements(e);this.cacheService.setEntitlements(r,n),this.onEntitlementsUpdated(r)}},e.prototype.getLastEntitlementsUpdate=function(e){return(0,to.max)(e.flatMap((function(e){return[new Date(e.entitlementUpdatedAt),new Date(e.usageUpdatedAt)]})))||new Date},e.prototype.getEntitlements=function(){return ro(this,void 0,void 0,(function(){var e=this;return io(this,(function(t){switch(t.label){case 0:return this.cacheService.isLoaded()?[3,2]:[4,this.loadEntitlements()];case 1:t.sent(),t.label=2;case 2:return[2,Array.from(this.cacheService.getEntitlements().values()).map((function(t){var n=Zi.decideEntitlementPolicy(t);return e.modelMapper.mapEntitlement(t,n)}))]}}))}))},e}(),ao=n(2991),so=Object.prototype.toString;function uo(e){switch(so.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return go(e,Error)}}function co(e,t){return so.call(e)===`[object ${t}]`}function lo(e){return co(e,"ErrorEvent")}function fo(e){return co(e,"DOMError")}function po(e){return co(e,"String")}function ho(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function vo(e){return co(e,"Object")}function yo(e){return"undefined"!=typeof Event&&go(e,Event)}function mo(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function go(e,t){try{return e instanceof t}catch(e){return!1}}function _o(e,t){try{let i=e;var n=[];let o=0,a=0;var r=" > ".length;let s;for(;i&&o++<5&&(s=bo(i,t),!("html"===s||o>1&&a+n.length*r+s.length>=80));)n.push(s),a+=s.length,i=i.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}function bo(e,t){var n=e,r=[];let i,o,a,s,u;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());var c=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(c&&c.length)c.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&po(i))for(o=i.split(/\s+/),u=0;u<o.length;u++)r.push(`.${o[u]}`);var l=["type","name","title","alt"];for(u=0;u<l.length;u++)a=l[u],s=n.getAttribute(a),s&&r.push(`[${a}="${s}"]`);return r.join("")}function Eo(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.substr(0,t)}...`}function wo(e,t){if(!Array.isArray(e))return"";var n=[];for(let t=0;t<e.length;t++){var r=e[t];try{n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function So(e,t){return!!po(e)&&(co(t,"RegExp")?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}function To(e,t,n){if(t in e){var r=e[t],i=n(r);if("function"==typeof i)try{Io(i,r)}catch(e){}e[t]=i}}function Oo(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function Io(e,t){var n=t.prototype||{};e.prototype=t.prototype=n,Oo(e,"__sentry_original__",t)}function xo(e){return e.__sentry_original__}function Do(e){if(uo(e))return{message:e.message,name:e.name,stack:e.stack,...ko(e)};if(yo(e)){var t={type:e.type,target:Ao(e.target),currentTarget:Ao(e.currentTarget),...ko(e)};return"undefined"!=typeof CustomEvent&&go(e,CustomEvent)&&(t.detail=e.detail),t}return e}function Ao(e){try{return"undefined"!=typeof Element&&go(e,Element)?_o(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function ko(e){if("object"==typeof e&&null!==e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function Ro(e,t=40){var n=Object.keys(Do(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Eo(n[0],t);for(let e=n.length;e>0;e--){var r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:Eo(r,t)}return""}function Po(e){return Co(e,new Map)}function Co(e,t){if(vo(e)){if(void 0!==(i=t.get(e)))return i;var n={};for(var r of(t.set(e,n),Object.keys(e)))void 0!==e[r]&&(n[r]=Co(e[r],t));return n}var i;return Array.isArray(e)?void 0!==(i=t.get(e))?i:(n=[],t.set(e,n),e.forEach((e=>{n.push(Co(e,t))})),n):e}let No;class Fo{constructor(){Fo.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=Fo.id}setupOnce(){No=Function.prototype.toString,Function.prototype.toString=function(...e){var t=xo(this)||this;return No.apply(t,e)}}}Fo.__initStatic();var jo=(0,ao.R)(),Uo=["debug","info","warn","error","log","assert","trace"];function Mo(e){var t=(0,ao.R)();if(!("console"in t))return e();var n=t.console,r={};Uo.forEach((e=>{var i=n[e]&&n[e].__sentry_original__;e in t.console&&i&&(r[e]=n[e],n[e]=i)}));try{return e()}finally{Object.keys(r).forEach((e=>{n[e]=r[e]}))}}function Lo(){let e=!1;var t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?Uo.forEach((n=>{t[n]=(...t)=>{e&&Mo((()=>{jo.console[n](`Sentry Logger [${n}]:`,...t)}))}})):Uo.forEach((e=>{t[e]=()=>{}})),t}let Bo;function qo(){var e=(0,ao.R)(),t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");var n=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function Vo(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function $o(e){const{message:t,event_id:n}=e;if(t)return t;var r=Vo(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Go(e,t,n){var r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function zo(e,t){var n=Vo(e);if(n){var r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){var i={...r&&r.data,...t.data};n.mechanism.data=i}}}function Qo(e){if(e&&e.__sentry_captured__)return!0;try{Oo(e,"__sentry_captured__",!0)}catch(e){}return!1}Bo="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,ao.Y)("logger",Lo):Lo();var Wo=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class Yo{static __initStatic(){this.id="InboundFilters"}__init(){this.name=Yo.id}constructor(e={}){this._options=e,Yo.prototype.__init.call(this)}setupOnce(e,t){var n=e=>{var n=t();if(n){var r=n.getIntegration(Yo);if(r){var i=n.getClient(),o=i?i.getOptions():{},a=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...Wo],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(r._options,o);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${$o(e)}`),!0):function(e,t){return!(!t||!t.length)&&function(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.error(`Cannot extract message for event ${$o(e)}`),[]}return[]}(e).some((e=>t.some((t=>So(e,t)))))}(e,t.ignoreErrors)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${$o(e)}`),!0):function(e,t){if(!t||!t.length)return!1;var n=Ko(e);return!!n&&t.some((e=>So(n,e)))}(e,t.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${$o(e)}.\nUrl: ${Ko(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;var n=Ko(e);return!n||t.some((e=>So(n,e)))}(e,t.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${$o(e)}.\nUrl: ${Ko(e)}`),!0)}(e,a)?null:e}}return e};n.id=this.name,e(n)}}function Ko(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let n=e.length-1;n>=0;n--){var t=e[n];if(t&&"<anonymous>"!==t.filename&&"[native code]"!==t.filename)return t.filename||null}return null}(t):null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.error(`Cannot extract url for event ${$o(e)}`),null}}Yo.__initStatic();var Ho,Jo=n(1170),Xo=n(2176);function Zo(e){return new ta((t=>{t(e)}))}function ea(e){return new ta(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(Ho||(Ho={}));class ta{__init(){this._state=Ho.PENDING}__init2(){this._handlers=[]}constructor(e){ta.prototype.__init.call(this),ta.prototype.__init2.call(this),ta.prototype.__init3.call(this),ta.prototype.__init4.call(this),ta.prototype.__init5.call(this),ta.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new ta(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new ta(((t,n)=>{let r,i;return this.then((t=>{i=!1,r=t,e&&e()}),(t=>{i=!0,r=t,e&&e()})).then((()=>{i?n(r):t(r)}))}))}__init3(){this._resolve=e=>{this._setResult(Ho.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(Ho.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{this._state===Ho.PENDING&&(mo(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state!==Ho.PENDING){var e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===Ho.RESOLVED&&e[1](this._value),this._state===Ho.REJECTED&&e[2](this._value),e[0]=!0)}))}}}}function na(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,Jo.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:qo()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{var n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}class ra{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){var t=new ra;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments]),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&na(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts={...this._contexts,[e]:t},this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){var e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){var t=e(this);return t instanceof ra?t:this}return e instanceof ra?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):vo(e)&&(e=e,this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var r={timestamp:(0,Jo.yW)(),...e};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),this._notifyScopeListeners(),this}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags={transaction:n,...e.tags})}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...ia(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,n,r=0){return new ta(((i,o)=>{var a=e[r];if(null===t||"function"!=typeof a)i(t);else{var s=a({...t},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.id&&null===s&&Bo.log(`Event processor "${a.id}" dropped event`),mo(s)?s.then((t=>this._notifyEventProcessors(e,t,n,r+1).then(i))).then(null,o):this._notifyEventProcessors(e,s,n,r+1).then(i).then(null,o)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function ia(){return(0,ao.Y)("globalEventProcessors",(()=>[]))}function oa(e){ia().push(e)}var aa=100;class sa{__init(){this._stack=[{}]}constructor(e,t=new ra,n=4){this._version=n,sa.prototype.__init.call(this),this.getStackTop().scope=t,e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){var e=ra.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){var n=this._lastEventId=t&&t.event_id?t.event_id:qo(),r=new Error("Sentry syntheticException");return this._withClient(((i,o)=>{i.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},o)})),n}captureMessage(e,t,n){var r=this._lastEventId=n&&n.event_id?n.event_id:qo(),i=new Error(e);return this._withClient(((o,a)=>{o.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},a)})),r}captureEvent(e,t){var n=t&&t.event_id?t.event_id:qo();return"transaction"!==e.type&&(this._lastEventId=n),this._withClient(((r,i)=>{r.captureEvent(e,{...t,event_id:n},i)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!n||!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=aa}=r.getOptions&&r.getOptions()||{};if(!(o<=0)){var a={timestamp:(0,Jo.yW)(),...e},s=i?Mo((()=>i(a,t))):a;null!==s&&n.addBreadcrumb(s,o)}}setUser(e){var t=this.getScope();t&&t.setUser(e)}setTags(e){var t=this.getScope();t&&t.setTags(e)}setExtras(e){var t=this.getScope();t&&t.setExtras(e)}setTag(e,t){var n=this.getScope();n&&n.setTag(e,t)}setExtra(e,t){var n=this.getScope();n&&n.setExtra(e,t)}setContext(e,t){var n=this.getScope();n&&n.setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();t&&n&&e(t)}run(e){var t=ca(this);try{e(this)}finally{ca(t)}}getIntegration(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){return this._callExtensionMethod("startTransaction",e,t)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){var e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&function(e,t){let n={};"ok"===e.status&&(n={status:"exited"}),na(e,n)}(n),this._sendSessionUpdate(),t&&t.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:i}=n&&n.getOptions()||{};var o=(0,ao.R)();const{userAgent:a}=o.navigator||{};var s=function(e){var t=(0,Jo.ph)(),n={sid:qo(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return Po({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&na(n,e),n}({release:r,environment:i,...t&&{user:t.getUser()},...a&&{userAgent:a},...e});if(t){var u=t.getSession&&t.getSession();u&&"ok"===u.status&&na(u,{status:"exited"}),this.endSession(),t.setSession(s)}return s}shouldSendDefaultPii(){var e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop();if(e){var n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){var n=ua().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function ua(){var e=(0,ao.R)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function ca(e){var t=ua(),n=pa(t);return da(t,e),n}function la(){var e=ua();return fa(e)&&!pa(e).isOlderThan(4)||da(e,new sa),(0,Xo.KV)()?function(e){try{var t=ua().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return pa(e);if(!fa(n)||pa(n).isOlderThan(4)){var r=pa(e).getStackTop();da(n,new sa(r.client,ra.clone(r.scope)))}return pa(n)}catch(t){return pa(e)}}(e):pa(e)}function fa(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function pa(e){return(0,ao.Y)("hub",(()=>new sa),e)}function da(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}var ha="<anonymous>";function va(e){try{return e&&"function"==typeof e&&e.name||ha}catch(e){return ha}}function ya(){if(!("fetch"in(0,ao.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function ma(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}var ga=(0,ao.R)(),_a={},ba={};function Ea(e,t){_a[e]=_a[e]||[],_a[e].push(t),function(e){if(!ba[e])switch(ba[e]=!0,e){case"console":"console"in ga&&Uo.forEach((function(e){e in ga.console&&To(ga.console,e,(function(t){return function(...n){wa("console",{args:n,level:e}),t&&t.apply(ga.console,n)}}))}));break;case"dom":!function(){if("document"in ga){var e=wa.bind(null,"dom"),t=Da(e,!0);ga.document.addEventListener("click",t,!1),ga.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{var n=ga[t]&&ga[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(To(n,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{var o=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=o[n]=o[n]||{refCount:0};if(!a.handler){var s=Da(e);a.handler=s,t.call(this,n,s,i)}a.refCount+=1}catch(e){}return t.call(this,n,r,i)}})),To(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var i=this.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount-=1,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}}();break;case"xhr":!function(){if("XMLHttpRequest"in ga){var e=XMLHttpRequest.prototype;To(e,"open",(function(e){return function(...t){var n=this,r=t[1],i=n.__sentry_xhr__={method:po(t[0])?t[0].toUpperCase():t[0],url:t[1]};po(r)&&"POST"===i.method&&r.match(/sentry_key/)&&(n.__sentry_own_request__=!0);var o=function(){if(4===n.readyState){try{i.status_code=n.status}catch(e){}wa("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:n})}};return"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?To(n,"onreadystatechange",(function(e){return function(...t){return o(),e.apply(n,t)}})):n.addEventListener("readystatechange",o),e.apply(n,t)}})),To(e,"send",(function(e){return function(...t){return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),wa("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}}();break;case"fetch":(function(){if(!ya())return!1;var e=(0,ao.R)();if(ma(e.fetch))return!0;let t=!1;var n=e.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=ma(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t})()&&To(ga,"fetch",(function(e){return function(...t){var n={args:t,fetchData:{method:Sa(t),url:Ta(t)},startTimestamp:Date.now()};return wa("fetch",{...n}),e.apply(ga,t).then((e=>(wa("fetch",{...n,endTimestamp:Date.now(),response:e}),e)),(e=>{throw wa("fetch",{...n,endTimestamp:Date.now(),error:e}),e}))}}));break;case"history":!function(){if(function(){var e=(0,ao.R)(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&r}()){var e=ga.onpopstate;ga.onpopstate=function(...t){var n=ga.location.href,r=Oa;if(Oa=n,wa("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},To(ga.history,"pushState",t),To(ga.history,"replaceState",t)}function t(e){return function(...t){var n=t.length>2?t[2]:void 0;if(n){var r=Oa,i=String(n);Oa=i,wa("history",{from:r,to:i})}return e.apply(this,t)}}}();break;case"error":Aa=ga.onerror,ga.onerror=function(e,t,n,r,i){return wa("error",{column:r,error:i,line:n,msg:e,url:t}),!!Aa&&Aa.apply(this,arguments)};break;case"unhandledrejection":ka=ga.onunhandledrejection,ga.onunhandledrejection=function(e){return wa("unhandledrejection",e),!ka||ka.apply(this,arguments)};break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.warn("unknown instrumentation type:",e)}}(e)}function wa(e,t){if(e&&_a[e])for(var n of _a[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${va(n)}\nError:`,t)}}function Sa(e=[]){return"Request"in ga&&go(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function Ta(e=[]){return"string"==typeof e[0]?e[0]:"Request"in ga&&go(e[0],Request)?e[0].url:String(e[0])}let Oa,Ia,xa;function Da(e,t=!1){return n=>{if(n&&xa!==n&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===Ia||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(xa,n))&&(e({event:n,name:r,global:t}),xa=n),clearTimeout(Ia),Ia=ga.setTimeout((()=>{Ia=void 0}),1e3)}}}let Aa=null,ka=null;function Ra(e,t=1/0,n=1/0){try{return Ca("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Pa(e,t=3,n=102400){var r,i=Ra(e,t);return r=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?Pa(e,t-1,n):i}function Ca(e,t,r=1/0,i=1/0,o=function(){var e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[a,s]=o;if(null===t||["number","boolean","string"].includes(typeof t)&&("number"!=typeof(u=t)||u==u))return t;var u,c=function(e,t){try{return"domain"===e&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":void 0!==n.g&&t===n.g?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":function(e){return vo(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?`[Function: ${va(t)}]`:"symbol"==typeof t?`[${String(t)}]`:"bigint"==typeof t?`[BigInt: ${String(t)}]`:`[object ${Object.getPrototypeOf(t).constructor.name}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!c.startsWith("[object "))return c;if(t.__sentry_skip_normalization__)return t;if(0===r)return c.replace("object ","");if(a(t))return"[Circular ~]";var l=t;if(l&&"function"==typeof l.toJSON)try{return Ca("",l.toJSON(),r-1,i,o)}catch(e){}var f=Array.isArray(t)?[]:{};let p=0;var d=Do(t);for(var h in d)if(Object.prototype.hasOwnProperty.call(d,h)){if(p>=i){f[h]="[MaxProperties ~]";break}var v=d[h];f[h]=Ca(h,v,r-1,i,o),p+=1}return s(t),f}function Na(e,t){var n=ja(e,t),r={type:t&&t.name,value:Ma(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Fa(e,t){return{exception:{values:[Na(e,t)]}}}function ja(e,t){var n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(Ua.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}var Ua=/Minified React error #\d+;/i;function Ma(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function La(e,t,n,r,i){let o;if(lo(t)&&t.error)return Fa(e,t.error);if(fo(t)||co(t,"DOMException")){var a=t;if("stack"in t)o=Fa(e,t);else{var s=a.name||(fo(a)?"DOMError":"DOMException"),u=a.message?`${s}: ${a.message}`:s;o=Ba(e,u,n,r),Go(o,u)}return"code"in a&&(o.tags={...o.tags,"DOMException.code":`${a.code}`}),o}return uo(t)?Fa(e,t):vo(t)||yo(t)?(o=function(e,t,n,r){var i={exception:{values:[{type:yo(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${Ro(t)}`}]},extra:{__serialized__:Pa(t)}};if(n){var o=ja(e,n);o.length&&(i.exception.values[0].stacktrace={frames:o})}return i}(e,t,n,i),zo(o,{synthetic:!0}),o):(o=Ba(e,t,n,r),Go(o,`${t}`,void 0),zo(o,{synthetic:!0}),o)}function Ba(e,t,n,r){var i={message:t};if(r&&n){var o=ja(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]})}return i}function qa(e,t){return la().captureException(e,{captureContext:t})}function Va(e){la().withScope(e)}let $a=0;function Ga(){return $a>0}function za(){$a+=1,setTimeout((()=>{$a-=1}))}function Qa(e,t={},n){if("function"!=typeof e)return e;try{var r=e.__sentry_wrapped__;if(r)return r;if(xo(e))return e}catch(t){return e}var i=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var i=r.map((e=>Qa(e,t)));return e.apply(this,i)}catch(e){throw za(),Va((n=>{n.addEventProcessor((e=>(t.mechanism&&(Go(e,void 0,void 0),zo(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),qa(e)})),e}};try{for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}catch(e){}Io(i,e),Oo(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>e.name})}catch(e){}return i}class Wa{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=Wa.id}__init2(){this._installFunc={onerror:Ya,onunhandledrejection:Ka}}constructor(e){Wa.prototype.__init.call(this),Wa.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...e}}setupOnce(){Error.stackTraceLimit=50;var e,t=this._options;for(var n in t){var r=this._installFunc[n];r&&t[n]&&(e=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.log(`Global Handler attached: ${e}`),r(),this._installFunc[n]=void 0)}}}function Ya(){Ea("error",(e=>{const[t,n,r]=Xa();if(!t.getIntegration(Wa))return;const{msg:i,url:o,line:a,column:s,error:u}=e;if(!(Ga()||u&&u.__sentry_own_request__)){var c=void 0===u&&po(i)?function(e,t,n,r){let i=lo(e)?e.message:e,o="Error";var a=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return a&&(o=a[1],i=a[2]),Ha({exception:{values:[{type:o,value:i}]}},t,n,r)}(i,o,a,s):Ha(La(n,u||i,void 0,r,!1),o,a,s);c.level="error",Ja(t,u,c,"onerror")}}))}function Ka(){Ea("unhandledrejection",(e=>{const[t,n,r]=Xa();if(!t.getIntegration(Wa))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(e){}if(Ga()||i&&i.__sentry_own_request__)return!0;var o=ho(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:La(n,i,void 0,r,!0);o.level="error",Ja(t,i,o,"onunhandledrejection")}))}function Ha(e,t,n,r){var i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},u=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,f=po(t)&&t.length>0?t:function(){var e=(0,ao.R)();try{return e.document.location.href}catch(e){return""}}();return 0===u.length&&u.push({colno:c,filename:f,function:"?",in_app:!0,lineno:l}),e}function Ja(e,t,n,r){zo(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function Xa(){var e=la(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}Wa.__initStatic();var Za=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class es{static __initStatic(){this.id="TryCatch"}__init(){this.name=es.id}constructor(e){es.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){var e=(0,ao.R)();this._options.setTimeout&&To(e,"setTimeout",ts),this._options.setInterval&&To(e,"setInterval",ts),this._options.requestAnimationFrame&&To(e,"requestAnimationFrame",ns),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&To(XMLHttpRequest.prototype,"send",rs);var t=this._options.eventTarget;t&&(Array.isArray(t)?t:Za).forEach(is)}}function ts(e){return function(...t){var n=t[0];return t[0]=Qa(n,{mechanism:{data:{function:va(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function ns(e){return function(t){return e.apply(this,[Qa(t,{mechanism:{data:{function:"requestAnimationFrame",handler:va(e)},handled:!0,type:"instrument"}})])}}function rs(e){return function(...t){var n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&To(n,e,(function(t){var n={mechanism:{data:{function:e,handler:va(t)},handled:!0,type:"instrument"}},r=xo(t);return r&&(n.mechanism.data.handler=va(r)),Qa(t,n)}))})),e.apply(this,t)}}function is(e){var t=(0,ao.R)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(To(n,"addEventListener",(function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=Qa(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:va(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.apply(this,[n,Qa(r,{mechanism:{data:{function:"addEventListener",handler:va(r),target:e},handled:!0,type:"instrument"}}),i])}})),To(n,"removeEventListener",(function(e){return function(t,n,r){var i=n;try{var o=i&&i.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch(e){}return e.call(this,t,i,r)}})))}es.__initStatic();var os=["fatal","error","warning","log","info","debug"];function as(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}var ss="Breadcrumbs";class us{static __initStatic(){this.id=ss}__init(){this.name=us.id}constructor(e){us.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){var e;this.options.console&&Ea("console",cs),this.options.dom&&Ea("dom",(e=this.options.dom,function(t){let n,r="object"==typeof e?e.serializeAttribute:void 0;"string"==typeof r&&(r=[r]);try{n=t.event.target?_o(t.event.target,r):_o(t.event,r)}catch(e){n="<unknown>"}0!==n.length&&la().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})})),this.options.xhr&&Ea("xhr",ls),this.options.fetch&&Ea("fetch",fs),this.options.history&&Ea("history",ps)}}function cs(e){var t,n={category:"console",data:{arguments:e.args,logger:"console"},level:(t=e.level,"warn"===t?"warning":os.includes(t)?t:"log"),message:wo(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${wo(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}la().addBreadcrumb(n,{input:e.args,level:e.level})}function ls(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;const{method:t,url:n,status_code:r,body:i}=e.xhr.__sentry_xhr__||{};la().addBreadcrumb({category:"xhr",data:{method:t,url:n,status_code:r},type:"http"},{xhr:e.xhr,input:i})}}function fs(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?la().addBreadcrumb({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args}):la().addBreadcrumb({category:"fetch",data:{...e.fetchData,status_code:e.response.status},type:"http"},{input:e.args,response:e.response})))}function ps(e){var t=(0,ao.R)();let n=e.from,r=e.to;var i=as(t.location.href);let o=as(n);var a=as(r);o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),la().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}us.__initStatic();class ds{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=ds.id}constructor(e={}){ds.prototype.__init.call(this),this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){var e=la().getClient();e&&oa(((t,n)=>{var r=la().getIntegration(ds);return r?function(e,t,n,r,i){if(!(r.exception&&r.exception.values&&i&&go(i.originalException,Error)))return r;var o=hs(e,n,i.originalException,t);return r.exception.values=[...o,...r.exception.values],r}(e.getOptions().stackParser,r._key,r._limit,t,n):t}))}}function hs(e,t,n,r,i=[]){if(!go(n[r],Error)||i.length+1>=t)return i;var o=Na(e,n[r]);return hs(e,t,n[r],r,[o,...i])}ds.__initStatic();var vs=(0,ao.R)();class ys{constructor(){ys.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=ys.id}setupOnce(){oa((e=>{if(la().getIntegration(ys)){if(!vs.navigator&&!vs.location&&!vs.document)return e;var t=e.request&&e.request.url||vs.location&&vs.location.href;const{referrer:r}=vs.document||{},{userAgent:i}=vs.navigator||{};var n={...t&&{url:t},headers:{...e.request&&e.request.headers,...r&&{Referer:r},...i&&{"User-Agent":i}}};return{...e,request:n}}return e}))}}ys.__initStatic();class ms{constructor(){ms.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=ms.id}setupOnce(e,t){var n=e=>{var n=t().getIntegration(ms);if(n){try{if(function(e,t){return!!t&&(!!function(e,t){var n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!_s(e,t)&&!!gs(e,t))))}(e,t)||!!function(e,t){var n=bs(t),r=bs(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!_s(e,t)&&!!gs(e,t)))}(e,t))}(e,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return n._previousEvent=e}return n._previousEvent=e}return e};n.id=this.name,e(n)}}function gs(e,t){let n=Es(e),r=Es(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,r=r,r.length!==n.length)return!1;for(let e=0;e<r.length;e++){var i=r[e],o=n[e];if(i.filename!==o.filename||i.lineno!==o.lineno||i.colno!==o.colno||i.function!==o.function)return!1}return!0}function _s(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function bs(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Es(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}ms.__initStatic();let ws={};var Ss=(0,ao.R)();Ss.Sentry&&Ss.Sentry.Integrations&&(ws=Ss.Sentry.Integrations);var Ts={...ws,...r,...i},Os="?";function Is(e,t,n,r){var i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}var xs=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ds=/\((\S*)(?::(\d+))(?::(\d+))\)/,As=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ks=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Rs=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ps=function(...e){var t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{var r=[];for(var i of e.split("\n").slice(n)){var o=i.replace(/\(error: (.*)\)/,"$1");for(var a of t){var s=a(o);if(s){r.push(s);break}}}return function(e){if(!e.length)return[];let t=e;var n=t[0].function||"",r=t[t.length-1].function||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((e=>({...e,filename:e.filename||t[0].filename,function:e.function||"?"}))).reverse()}(r)}}([30,e=>{var t=xs.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){var n=Ds.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}const[e,r]=Cs(t[1]||Os,t[2]);return Is(r,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{var t=As.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=ks.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}let e=t[3],r=t[1]||Os;return[r,e]=Cs(r,e),Is(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{var t=Rs.exec(e);return t?Is(t[2],t[1]||Os,+t[3],t[4]?+t[4]:void 0):void 0}]),Cs=(e,t)=>{var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:Os,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class Ns extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function Fs(e,t=[]){return[e,t]}function js(e,t){const[n,r]=e;return[n,[...r,t]]}function Us(e,t){e[1].forEach((e=>{var n=e[0].type;t(e,n)}))}function Ms(e,t){return(t||new TextEncoder).encode(e)}function Ls(e,t){const[n,r]=e;let i=JSON.stringify(n);function o(e){"string"==typeof i?i="string"==typeof e?i+e:[Ms(i,t),e]:i.push("string"==typeof e?Ms(e,t):e)}for(var a of r){const[e,t]=a;o(`\n${JSON.stringify(e)}\n`),o("string"==typeof t||t instanceof Uint8Array?t:JSON.stringify(t))}return"string"==typeof i?i:function(e){var t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(var i of e)n.set(i,r),r+=i.length;return n}(i)}function Bs(e,t){var n="string"==typeof e.data?Ms(e.data,t):e.data;return[Po({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}var qs={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default"};function Vs(e){return qs[e]}function $s(e,t,n=function(e){var t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return ea(new Ns("Not adding Promise due to buffer limit reached."));var i=r();return-1===t.indexOf(i)&&t.push(i),i.then((()=>n(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(e){return new ta(((n,r)=>{let i=t.length;if(!i)return n(!0);var o=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{Zo(e).then((()=>{--i||(clearTimeout(o),n(!0))}),r)}))}))}}}(e.bufferSize||30)){let r={};return{send:function(i){var o=[];if(Us(i,((t,n)=>{var i=Vs(n);!function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,i)?o.push(t):e.recordDroppedEvent("ratelimit_backoff",i)})),0===o.length)return Zo();var a=Fs(i[0],o),s=t=>{Us(a,((n,r)=>{e.recordDroppedEvent(t,Vs(r))}))};return n.add((()=>t({body:Ls(a,e.textEncoder)}).then((e=>{void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){var i={...e},o=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(o)for(var s of o.trim().split(",")){const[e,t]=s.split(":",2);var u=parseInt(e,10),c=1e3*(isNaN(u)?60:u);if(t)for(var l of t.split(";"))i[l]=r+c;else i.all=r+c}else a?i.all=r+function(e,t=Date.now()){var n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(i.all=r+6e4);return i}(r,e)}),(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.error("Failed while sending event:",e),s("network_error")})))).then((e=>e),(e=>{if(e instanceof Ns)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.error("Skipped sending event due to full buffer"),s("queue_overflow"),Zo();throw e}))},flush:e=>n.drain(e)}}var Gs=(0,ao.R)();let zs;function Qs(){if(zs)return zs;if(ma(Gs.fetch))return zs=Gs.fetch.bind(Gs);var e=Gs.document;let t=Gs.fetch;if(e&&"function"==typeof e.createElement)try{var n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);var r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return zs=t.bind(Gs)}function Ws(e,t=Qs()){return $s(e,(function(n){var r={body:n.body,method:"POST",referrerPolicy:"origin",headers:e.headers,...e.fetchOptions};return t(e.url,r).then((e=>({statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}))}function Ys(e){return $s(e,(function(t){return new ta(((n,r)=>{var i=new XMLHttpRequest;for(var o in i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,o)&&i.setRequestHeader(o,e.headers[o]);i.send(t.body)}))}))}var Ks=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Hs(e,t=!1){const{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${a}`}function Js(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Xs(e,t={}){var n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${function(e){var t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return n={sentry_key:e.publicKey,sentry_version:"7",...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(n).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`)).join("&");var n}(e,r)}`}function Zs(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}var eu=[],tu="Not capturing exception because it's already been captured.";class nu{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}constructor(e){if(nu.prototype.__init.call(this),nu.prototype.__init2.call(this),nu.prototype.__init3.call(this),nu.prototype.__init4.call(this),this._options=e,e.dsn){this._dsn=(n=e.dsn,r="string"==typeof n?function(e){var t=Ks.exec(e);if(!t)throw new Ns(`Invalid Sentry Dsn: ${e}`);const[n,r,i="",o,a="",s]=t.slice(1);let u="",c=s;var l=c.split("/");if(l.length>1&&(u=l.slice(0,-1).join("/"),c=l.pop()),c){var f=c.match(/^\d+/);f&&(c=f[0])}return Js({host:o,pass:i,path:u,projectId:c,port:a,protocol:n,publicKey:r})}(n):Js(n),function(e){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return;const{port:t,projectId:n,protocol:r}=e;if(["protocol","publicKey","host","projectId"].forEach((t=>{if(!e[t])throw new Ns(`Invalid Sentry Dsn: ${t} missing`)})),!n.match(/^\d+$/))throw new Ns(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!function(e){return"http"===e||"https"===e}(r))throw new Ns(`Invalid Sentry Dsn: Invalid protocol ${r}`);if(t&&isNaN(parseInt(t,10)))throw new Ns(`Invalid Sentry Dsn: Invalid port ${t}`)}(r),r);var t=Xs(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.warn("No DSN provided, client will not do anything.");var n,r}captureException(e,t,n){if(Qo(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.log(tu));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,r){let i=n&&n.event_id;var o=ho(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(o.then((e=>this._captureEvent(e,n,r))).then((e=>{i=e}))),i}captureEvent(e,t,n){if(t&&t.originalException&&Qo(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.log(tu));let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((e=>{r=e}))),r}captureSession(e){this._isEnabled()?"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),na(e,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getTransport(){return this._transport}flush(e){var t=this._transport;return t?this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e)))):Zo(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(e){var t={};return e.forEach((e=>{t[e.name]=e,-1===eu.indexOf(e.name)&&(e.setupOnce(oa,la),eu.push(e.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.log(`Integration installed: ${e.name}`))})),t}(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}sendEvent(e,t={}){if(this._dsn){let r=function(e,t,n,r){var i=Zs(n),o=e.type||"event";const{transactionSampling:a}=e.sdkProcessingMetadata||{},{method:s,rate:u}=a||{};!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);var c=function(e,t,n,r){var i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baggage,o=i&&function(e){return e[0]}(i);return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&{dsn:Hs(r)},..."transaction"===e.type&&o&&{trace:Po({...o})}}}(e,i,r,t);return delete e.sdkProcessingMetadata,Fs(c,[[{type:o,sample_rates:[{id:s,rate:u}]},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(var n of t.attachments||[])r=js(r,Bs(n,this._options.transportOptions&&this._options.transportOptions.textEncoder));this._sendEnvelope(r)}}sendSession(e){if(this._dsn){var t=function(e,t,n,r){var i=Zs(n);return Fs({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&{dsn:Hs(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}}recordDroppedEvent(e,t){if(this._options.sendClientReports){var n=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}_updateSessionFromEvent(e,t){let n=!1,r=!1;var i=t.exception&&t.exception.values;if(i)for(var o of(r=!0,i)){var a=o.mechanism;if(a&&!1===a.handled){n=!0;break}}var s="ok"===e.status;(s&&0===e.errors||s&&n)&&(na(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new ta((t=>{let n=0;var r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(e,t,n){const{normalizeDepth:r=3,normalizeMaxBreadth:i=1e3}=this.getOptions();var o={...e,event_id:e.event_id||t.event_id||qo(),timestamp:e.timestamp||(0,Jo.yW)()};this._applyClientOptions(o),this._applyIntegrationsMetadata(o);let a=n;t.captureContext&&(a=ra.clone(a).update(t.captureContext));let s=Zo(o);if(a){var u=[...t.attachments||[],...a.getAttachments()];u.length&&(t.attachments=u),s=a.applyToEvent(o,t)}return s.then((e=>"number"==typeof r&&r>0?this._normalizeEvent(e,r,i):e))}_normalizeEvent(e,t,n){if(!e)return null;var r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:Ra(e.data,t,n)}})))},...e.user&&{user:Ra(e.user,t,n)},...e.contexts&&{contexts:Ra(e.contexts,t,n)},...e.extra&&{extra:Ra(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Ra(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>(e.data&&(e.data=Ra(e.data,t,n)),e)))),r}_applyClientOptions(e){var t=this.getOptions();const{environment:n,release:r,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=Eo(e.message,o));var a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=Eo(a.value,o));var s=e.request;s&&s.url&&(s.url=Eo(s.url,o))}_applyIntegrationsMetadata(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){var t=e;"log"===t.logLevel?Bo.log(t.message):Bo.warn(t)}}))}_processEvent(e,t,n){const{beforeSend:r,sampleRate:i}=this.getOptions();if(!this._isEnabled())return ea(new Ns("SDK not enabled, will not capture event.","log"));var o="transaction"===e.type;return!o&&"number"==typeof i&&Math.random()>i?(this.recordDroppedEvent("sample_rate","error"),ea(new Ns(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"))):this._prepareEvent(e,t,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",e.type||"error"),new Ns("An event processor returned null, will not send event.","log");return t.data&&!0===t.data.__sentry__||o||!r?n:function(e){var t="`beforeSend` method has to return `null` or a valid event.";if(mo(e))return e.then((e=>{if(!vo(e)&&null!==e)throw new Ns(t);return e}),(e=>{throw new Ns(`beforeSend rejected with ${e}`)}));if(!vo(e)&&null!==e)throw new Ns(t);return e}(r(n,t))})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",e.type||"error"),new Ns("`beforeSend` returned `null`, will not send event.","log");var i=n&&n.getSession();return!o&&i&&this._updateSessionFromEvent(i,r),this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof Ns)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Ns(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing+=1,e.then((e=>(this._numProcessing-=1,e)),(e=>(this._numProcessing-=1,e)))}_sendEnvelope(e){this._transport&&this._dsn?this._transport.send(e).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.error("Error while sending event:",e)})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.error("Transport disabled")}_clearOutcomes(){var e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}var ru="7.11.1",iu=(0,ao.R)();class ou extends nu{constructor(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:ru}],version:ru},super(e),e.sendClientReports&&iu.document&&iu.document.addEventListener("visibilitychange",(()=>{"hidden"===iu.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){var i=La(e,t,n&&n.syntheticException||void 0,r);return zo(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),Zo(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){var o=Ba(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),Zo(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}sendEvent(e,t){var n=this.getIntegrationById(ss);n&&n.options&&n.options.sentry&&la().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:$o(e)},{event:e}),super.sendEvent(e,t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){var e=this._clearOutcomes();if(0!==e.length)if(this._dsn){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.log("Sending outcomes:",e);var t,n,r=Xs(this._dsn,this._options),i=(t=e,Fs((n=this._options.tunnel&&Hs(this._dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:(0,Jo.yW)(),discarded_events:t}]]));try{!function(e,t){"[object Navigator]"===Object.prototype.toString.call(Gs&&Gs.navigator)&&"function"==typeof Gs.navigator.sendBeacon?Gs.navigator.sendBeacon.bind(Gs.navigator)(e,t):ya()&&Qs()(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.error(e)}))}(r,Ls(i))}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.error(e)}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.log("No dsn provided, will not send outcomes");else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Bo.log("No outcomes to send")}}var au,su=n(4147),uu=[new Ts.InboundFilters,new Ts.FunctionToString,new Ts.TryCatch,new Ts.Breadcrumbs,new Ts.LinkedErrors,new Ts.Dedupe,new Ts.HttpContext],cu=new sa;!function(e){e.IN_PROGRESS="IN_PROGRESS",e.SUCCESS="READY",e.FAILED="FAILED"}(au||(au={}));var lu=function(){function e(e){this.eventEmitter=e,this.initializationPromise=null,this.initializationStatus=au.IN_PROGRESS,this.initFailureError=null}return e.prototype.getInitializationPromise=function(){var e=this;return this.initializationPromise?this.initializationPromise:this.initializationStatus===au.SUCCESS?Promise.resolve():this.initializationStatus===au.FAILED?Promise.reject(this.initFailureError):(this.initializationPromise=new Promise((function(t,n){e.eventEmitter.once("initializeSuccessfully",(function(){t()})),e.eventEmitter.once("initializeFailed",(function(e){n(e)}))})),this.initializationPromise)},e.prototype.signalSuccessInit=function(){this.initializationStatus=au.SUCCESS,this.eventEmitter.emit("initializeSuccessfully")},e.prototype.signalFailedInit=function(e){this.initializationStatus=au.FAILED,this.initFailureError=e,this.eventEmitter.emit("initializeFailed",e)},e}(),fu=function(){return fu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},fu.apply(this,arguments)};function pu(e,t){return n=this,r=void 0,o=function(){return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e()];case 1:return[2,n.sent()];case 2:return[2,hu(n.sent(),t)];case 3:return[2]}}))},new((i=void 0)||(i=Promise))((function(e,t){function a(e){try{u(o.next(e))}catch(e){t(e)}}function s(e){try{u(o.throw(e))}catch(e){t(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(a,s)}u((o=o.apply(n,r||[])).next())}));var n,r,i,o}function du(e,t){try{return e()}catch(e){return hu(e,t)}}function hu(e,t){var n=t.loggerService,r=t.sdkConfiguration,i=t.errorMessage,o=t.rethrowError,a=t.errorReportMetadata,s=i?i(e):"Operation failed. Error: ".concat(e.message);if(n.error(s,e),function(e,t){var n=t.sdkConfiguration,r=t.errorMessage,i=t.errorReportMetadata;cu.withScope((function(t){var o={errorMessage:r};if(n){var a=n.customerId,s=fu(fu({},n),{apiKey:void 0});a&&t.setTags({customerId:a}),o.sdkConfiguration=s}i&&(o=fu(fu({},o),i)),t.setExtras(o),cu.captureException(e)}))}(e,{sdkConfiguration:r,errorMessage:s,errorReportMetadata:a}),o)throw new Error(s)}var vu,yu=n(2527),mu=(vu=function(e,t){return vu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},vu(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}vu(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),gu=function(e){function t(){return e.call(this)||this}return mu(t,e),t}(yu.TypedEmitter);function _u(e,t){return function(){return e.apply(t,arguments)}}const{toString:bu}=Object.prototype,{getPrototypeOf:Eu}=Object,wu=(Su=Object.create(null),e=>{const t=bu.call(e);return Su[t]||(Su[t]=t.slice(8,-1).toLowerCase())});var Su;const Tu=e=>(e=e.toLowerCase(),t=>wu(t)===e),Ou=e=>t=>typeof t===e,{isArray:Iu}=Array,xu=Ou("undefined"),Du=Tu("ArrayBuffer"),Au=Ou("string"),ku=Ou("function"),Ru=Ou("number"),Pu=e=>null!==e&&"object"==typeof e,Cu=e=>{if("object"!==wu(e))return!1;const t=Eu(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Nu=Tu("Date"),Fu=Tu("File"),ju=Tu("Blob"),Uu=Tu("FileList"),Mu=Tu("URLSearchParams");function Lu(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),Iu(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(r=0;r<o;r++)a=i[r],t.call(null,e[a],a,e)}}function Bu(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const qu="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Vu=e=>!xu(e)&&e!==qu,$u=(Gu="undefined"!=typeof Uint8Array&&Eu(Uint8Array),e=>Gu&&e instanceof Gu);var Gu;const zu=Tu("HTMLFormElement"),Qu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Wu=Tu("RegExp"),Yu=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Lu(n,((n,i)=>{!1!==t(n,i,e)&&(r[i]=n)})),Object.defineProperties(e,r)},Ku={isArray:Iu,isArrayBuffer:Du,isBuffer:function(e){return null!==e&&!xu(e)&&null!==e.constructor&&!xu(e.constructor)&&ku(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{const t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||bu.call(e)===t||ku(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Du(e.buffer),t},isString:Au,isNumber:Ru,isBoolean:e=>!0===e||!1===e,isObject:Pu,isPlainObject:Cu,isUndefined:xu,isDate:Nu,isFile:Fu,isBlob:ju,isRegExp:Wu,isFunction:ku,isStream:e=>Pu(e)&&ku(e.pipe),isURLSearchParams:Mu,isTypedArray:$u,isFileList:Uu,forEach:Lu,merge:function e(){const{caseless:t}=Vu(this)&&this||{},n={},r=(r,i)=>{const o=t&&Bu(n,i)||i;Cu(n[o])&&Cu(r)?n[o]=e(n[o],r):Cu(r)?n[o]=e({},r):Iu(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Lu(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(Lu(t,((t,r)=>{n&&ku(t)?e[r]=_u(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&Eu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:wu,kindOfTest:Tu,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Iu(e))return e;let t=e.length;if(!Ru(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:zu,hasOwnProperty:Qu,hasOwnProp:Qu,reduceDescriptors:Yu,freezeMethods:e=>{Yu(e,((t,n)=>{if(ku(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];ku(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return Iu(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:Bu,global:qu,isContextDefined:Vu,toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Pu(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=Iu(e)?[]:{};return Lu(e,((e,t)=>{const o=n(e,r+1);!xu(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)}};function Hu(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}Ku.inherits(Hu,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ku.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ju=Hu.prototype,Xu={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Xu[e]={value:e}})),Object.defineProperties(Hu,Xu),Object.defineProperty(Ju,"isAxiosError",{value:!0}),Hu.from=(e,t,n,r,i,o)=>{const a=Object.create(Ju);return Ku.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Hu.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const Zu=Hu,ec=n(6401);function tc(e){return Ku.isPlainObject(e)||Ku.isArray(e)}function nc(e){return Ku.endsWith(e,"[]")?e.slice(0,-2):e}function rc(e,t,n){return e?e.concat(t).map((function(e,t){return e=nc(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const ic=Ku.toFlatObject(Ku,{},null,(function(e){return/^is[A-Z]/.test(e)})),oc=function(e,t,n){if(!Ku.isObject(e))throw new TypeError("target must be an object");t=t||new(ec||FormData);const r=(n=Ku.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Ku.isUndefined(t[e])}))).metaTokens,i=n.visitor||l,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&(u=t)&&Ku.isFunction(u.append)&&"FormData"===u[Symbol.toStringTag]&&u[Symbol.iterator];var u;if(!Ku.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Ku.isDate(e))return e.toISOString();if(!s&&Ku.isBlob(e))throw new Zu("Blob is not supported. Use a Buffer instead.");return Ku.isArrayBuffer(e)||Ku.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,i){let s=e;if(e&&!i&&"object"==typeof e)if(Ku.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Ku.isArray(e)&&function(e){return Ku.isArray(e)&&!e.some(tc)}(e)||Ku.isFileList(e)||Ku.endsWith(n,"[]")&&(s=Ku.toArray(e)))return n=nc(n),s.forEach((function(e,r){!Ku.isUndefined(e)&&null!==e&&t.append(!0===a?rc([n],r,o):null===a?n:n+"[]",c(e))})),!1;return!!tc(e)||(t.append(rc(i,n,o),c(e)),!1)}const f=[],p=Object.assign(ic,{defaultVisitor:l,convertValue:c,isVisitable:tc});if(!Ku.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Ku.isUndefined(n)){if(-1!==f.indexOf(n))throw Error("Circular reference detected in "+r.join("."));f.push(n),Ku.forEach(n,(function(n,o){!0===(!(Ku.isUndefined(n)||null===n)&&i.call(t,n,Ku.isString(o)?o.trim():o,r,p))&&e(n,r?r.concat(o):[o])})),f.pop()}}(e),t};function ac(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function sc(e,t){this._pairs=[],e&&oc(e,this,t)}const uc=sc.prototype;uc.append=function(e,t){this._pairs.push([e,t])},uc.toString=function(e){const t=e?function(t){return e.call(this,t,ac)}:ac;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const cc=sc;function lc(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fc(e,t,n){if(!t)return e;const r=n&&n.encode||lc,i=n&&n.serialize;let o;if(o=i?i(t,n):Ku.isURLSearchParams(t)?t.toString():new cc(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const pc=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Ku.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},dc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},hc="undefined"!=typeof URLSearchParams?URLSearchParams:cc,vc=FormData,yc=(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),mc="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,gc={isBrowser:!0,classes:{URLSearchParams:hc,FormData:vc,Blob},isStandardBrowserEnv:yc,isStandardBrowserWebWorkerEnv:mc,protocols:["http","https","file","blob","url","data"]},_c=function(e){function t(e,n,r,i){let o=e[i++];const a=Number.isFinite(+o),s=i>=e.length;return o=!o&&Ku.isArray(r)?r.length:o,s?(Ku.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a):(r[o]&&Ku.isObject(r[o])||(r[o]=[]),t(e,n,r[o],i)&&Ku.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}(r[o])),!a)}if(Ku.isFormData(e)&&Ku.isFunction(e.entries)){const n={};return Ku.forEachEntry(e,((e,r)=>{t(function(e){return Ku.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},bc={"Content-Type":void 0},Ec={transitional:dc,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=Ku.isObject(e);if(i&&Ku.isHTMLForm(e)&&(e=new FormData(e)),Ku.isFormData(e))return r&&r?JSON.stringify(_c(e)):e;if(Ku.isArrayBuffer(e)||Ku.isBuffer(e)||Ku.isStream(e)||Ku.isFile(e)||Ku.isBlob(e))return e;if(Ku.isArrayBufferView(e))return e.buffer;if(Ku.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return oc(e,new gc.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return gc.isNode&&Ku.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=Ku.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return oc(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(Ku.isString(e))try{return(0,JSON.parse)(e),Ku.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Ec.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&Ku.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Zu.from(e,Zu.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gc.classes.FormData,Blob:gc.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Ku.forEach(["delete","get","head"],(function(e){Ec.headers[e]={}})),Ku.forEach(["post","put","patch"],(function(e){Ec.headers[e]=Ku.merge(bc)}));const wc=Ec,Sc=Ku.toObjectSet(["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"]),Tc=Symbol("internals");function Oc(e){return e&&String(e).trim().toLowerCase()}function Ic(e){return!1===e||null==e?e:Ku.isArray(e)?e.map(Ic):String(e)}function xc(e,t,n,r){return Ku.isFunction(r)?r.call(this,t,n):Ku.isString(t)?Ku.isString(r)?-1!==t.indexOf(r):Ku.isRegExp(r)?r.test(t):void 0:void 0}class Dc{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=Oc(t);if(!i)throw new Error("header name must be a non-empty string");const o=Ku.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=Ic(e))}const o=(e,t)=>Ku.forEach(e,((e,n)=>i(e,n,t)));return Ku.isPlainObject(e)||e instanceof this.constructor?o(e,t):Ku.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z]+$/.test(e.trim())?o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&Sc[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&i(t,e,n),this}get(e,t){if(e=Oc(e)){const n=Ku.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Ku.isFunction(t))return t.call(this,e,n);if(Ku.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Oc(e)){const n=Ku.findKey(this,e);return!(!n||t&&!xc(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=Oc(e)){const i=Ku.findKey(n,e);!i||t&&!xc(0,n[i],i,t)||(delete n[i],r=!0)}}return Ku.isArray(e)?e.forEach(i):i(e),r}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(e){const t=this,n={};return Ku.forEach(this,((r,i)=>{const o=Ku.findKey(n,i);if(o)return t[o]=Ic(r),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();a!==i&&delete t[i],t[a]=Ic(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ku.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Ku.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Tc]=this[Tc]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Oc(e);t[r]||(function(e,t){const n=Ku.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return Ku.isArray(e)?e.forEach(r):r(e),this}}Dc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),Ku.freezeMethods(Dc.prototype),Ku.freezeMethods(Dc);const Ac=Dc;function kc(e,t){const n=this||wc,r=t||n,i=Ac.from(r.headers);let o=r.data;return Ku.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function Rc(e){return!(!e||!e.__CANCEL__)}function Pc(e,t,n){Zu.call(this,null==e?"canceled":e,Zu.ERR_CANCELED,t,n),this.name="CanceledError"}Ku.inherits(Pc,Zu,{__CANCEL__:!0});const Cc=Pc,Nc=gc.isStandardBrowserEnv?{write:function(e,t,n,r,i,o){const a=[];a.push(e+"="+encodeURIComponent(t)),Ku.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Ku.isString(r)&&a.push("path="+r),Ku.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Fc(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const jc=gc.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=Ku.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function Uc(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const u=Date.now(),c=r[a];i||(i=u),n[o]=s,r[o]=u;let l=a,f=0;for(;l!==o;)f+=n[l++],l%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),u-i<t)return;const p=c&&u-c;return p?Math.round(1e3*f/p):void 0}}(50,250);return i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,u=r(s);n=o;const c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:u||void 0,estimated:u&&a&&o<=a?(a-o)/u:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const Mc={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const i=Ac.from(e.headers).normalize(),o=e.responseType;let a;function s(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}Ku.isFormData(r)&&(gc.isStandardBrowserEnv||gc.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(t+":"+n))}const c=Fc(e.baseURL,e.url);function l(){if(!u)return;const r=Ac.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Zu("Request failed with status code "+n.status,[Zu.ERR_BAD_REQUEST,Zu.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),s()}),(function(e){n(e),s()}),{data:o&&"text"!==o&&"json"!==o?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),fc(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=l:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(l)},u.onabort=function(){u&&(n(new Zu("Request aborted",Zu.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new Zu("Network Error",Zu.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||dc;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Zu(t,r.clarifyTimeoutError?Zu.ETIMEDOUT:Zu.ECONNABORTED,e,u)),u=null},gc.isStandardBrowserEnv){const t=(e.withCredentials||jc(c))&&e.xsrfCookieName&&Nc.read(e.xsrfCookieName);t&&i.set(e.xsrfHeaderName,t)}void 0===r&&i.setContentType(null),"setRequestHeader"in u&&Ku.forEach(i.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),Ku.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),o&&"json"!==o&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",Uc(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",Uc(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=t=>{u&&(n(!t||t.type?new Cc(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(c);f&&-1===gc.protocols.indexOf(f)?n(new Zu("Unsupported protocol "+f+":",Zu.ERR_BAD_REQUEST,e)):u.send(r||null)}))}};Ku.forEach(Mc,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));function Lc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cc(null,e)}function Bc(e){return Lc(e),e.headers=Ac.from(e.headers),e.data=kc.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),(e=>{e=Ku.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let i=0;i<t&&(n=e[i],!(r=Ku.isString(n)?Mc[n.toLowerCase()]:n));i++);if(!r){if(!1===r)throw new Zu(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(Ku.hasOwnProp(Mc,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`)}if(!Ku.isFunction(r))throw new TypeError("adapter is not a function");return r})(e.adapter||wc.adapter)(e).then((function(t){return Lc(e),t.data=kc.call(e,e.transformResponse,t),t.headers=Ac.from(t.headers),t}),(function(t){return Rc(t)||(Lc(e),t&&t.response&&(t.response.data=kc.call(e,e.transformResponse,t.response),t.response.headers=Ac.from(t.response.headers))),Promise.reject(t)}))}const qc=e=>e instanceof Ac?e.toJSON():e;function Vc(e,t){t=t||{};const n={};function r(e,t,n){return Ku.isPlainObject(e)&&Ku.isPlainObject(t)?Ku.merge.call({caseless:n},e,t):Ku.isPlainObject(t)?Ku.merge({},t):Ku.isArray(t)?t.slice():t}function i(e,t,n){return Ku.isUndefined(t)?Ku.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!Ku.isUndefined(t))return r(void 0,t)}function a(e,t){return Ku.isUndefined(t)?Ku.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const u={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>i(qc(e),qc(t),!0)};return Ku.forEach(Object.keys(e).concat(Object.keys(t)),(function(r){const o=u[r]||i,a=o(e[r],t[r],r);Ku.isUndefined(a)&&o!==s||(n[r]=a)})),n}const $c={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{$c[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Gc={};$c.transitional=function(e,t,n){function r(e,t){return"[Axios v1.2.2] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new Zu(r(i," has been removed"+(t?" in "+t:"")),Zu.ERR_DEPRECATED);return t&&!Gc[i]&&(Gc[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}};const zc={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Zu("options must be an object",Zu.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new Zu("option "+o+" must be "+n,Zu.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Zu("Unknown option "+o,Zu.ERR_BAD_OPTION)}},validators:$c},Qc=zc.validators;class Wc{constructor(e){this.defaults=e,this.interceptors={request:new pc,response:new pc}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Vc(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;let o;void 0!==n&&zc.assertOptions(n,{silentJSONParsing:Qc.transitional(Qc.boolean),forcedJSONParsing:Qc.transitional(Qc.boolean),clarifyTimeoutError:Qc.transitional(Qc.boolean)},!1),void 0!==r&&zc.assertOptions(r,{encode:Qc.function,serialize:Qc.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase(),o=i&&Ku.merge(i.common,i[t.method]),o&&Ku.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=Ac.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const u=[];let c;this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));let l,f=0;if(!s){const e=[Bc.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,u),l=e.length,c=Promise.resolve(t);f<l;)c=c.then(e[f++],e[f++]);return c}l=a.length;let p=t;for(f=0;f<l;){const e=a[f++],t=a[f++];try{p=e(p)}catch(e){t.call(this,e);break}}try{c=Bc.call(this,p)}catch(e){return Promise.reject(e)}for(f=0,l=u.length;f<l;)c=c.then(u[f++],u[f++]);return c}getUri(e){return fc(Fc((e=Vc(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Ku.forEach(["delete","get","head","options"],(function(e){Wc.prototype[e]=function(t,n){return this.request(Vc(n||{},{method:e,url:t,data:(n||{}).data}))}})),Ku.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(Vc(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Wc.prototype[e]=t(),Wc.prototype[e+"Form"]=t(!0)}));const Yc=Wc;class Kc{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new Cc(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Kc((function(t){e=t})),cancel:e}}}const Hc=Kc,Jc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Jc).forEach((([e,t])=>{Jc[t]=e}));const Xc=Jc,Zc=function e(t){const n=new Yc(t),r=_u(Yc.prototype.request,n);return Ku.extend(r,Yc.prototype,n,{allOwnKeys:!0}),Ku.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Vc(t,n))},r}(wc);Zc.Axios=Yc,Zc.CanceledError=Cc,Zc.CancelToken=Hc,Zc.isCancel=Rc,Zc.VERSION="1.2.2",Zc.toFormData=oc,Zc.AxiosError=Zu,Zc.Cancel=Zc.CanceledError,Zc.all=function(e){return Promise.all(e)},Zc.spread=function(e){return function(t){return e.apply(null,t)}},Zc.isAxiosError=function(e){return Ku.isObject(e)&&!0===e.isAxiosError},Zc.mergeConfig=Vc,Zc.AxiosHeaders=Ac,Zc.formToJSON=e=>_c(Ku.isHTMLForm(e)?new FormData(e):e),Zc.HttpStatusCode=Xc,Zc.default=Zc;const el=Zc;var tl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nl=function(e){function t(t,n){var r=e.call(this,(function(e){var i=function(){return o=r,a=void 0,u=function(){var r,o;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(a){switch(a.label){case 0:if(this.stopped)return e.complete(),[2];a.label=1;case 1:return a.trys.push([1,3,,4]),o=(r=e).next,[4,t()];case 2:return o.apply(r,[a.sent()]),[3,4];case 3:return a.sent(),[3,4];case 4:return setTimeout((function(){return i()}),n),[2]}}))},new((s=void 0)||(s=Promise))((function(e,t){function n(e){try{i(u.next(e))}catch(e){t(e)}}function r(e){try{i(u.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):(i=t.value,i instanceof s?i:new s((function(e){e(i)}))).then(n,r)}i((u=u.apply(o,a||[])).next())}));var o,a,s,u};i()}))||this;return r.stopped=!1,r}return tl(t,e),t.prototype.stopPolling=function(){this.stopped=!0},t}(Ce),rl=function(){function e(e,t){this.dynamicData=t;var n=e.apiKey,r=e.baseEdgeUri;this.httpClient=el.create({baseURL:r,headers:{"X-API-KEY":n,source:j}})}return e.create=function(t,n){return t.enableEdge?new e(t,n):null},e.prototype.getPaywall=function(e,t){var n=e?"/p/".concat(e):"",r=t?"billingCountryCode=".concat(t):"";return this.get("/v1".concat(n,"/paywall.json?").concat(r))},e.prototype.getEntitlements=function(e,t){var n=t?"?resourceId=".concat(t):"";return this.get("/v1/c/".concat(e,"/entitlements.json").concat(n))},e.prototype.getSdkConfiguration=function(){return this.get("/v1/config/client-sdk-configuration.json")},e.prototype.watchEntitlements=function(e,t,n){var r=this;return new nl((function(){return r.getEntitlements(e,n)}),t)},e.prototype.get=function(e){var t={},n=this.dynamicData.customerToken;return n&&(t["X-CUSTOMER-KEY"]=n),this.httpClient.get(e,{headers:t}).then((function(e){return e.data}))},e}(),il=function(){return il=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},il.apply(this,arguments)},ol=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},al=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},sl=function(){function e(e,t){var n,r,i,o,a,s;this.modelMapper=new W,this.eventEmitter=new gu,this.showWidgetsWatermark=!1,this.configuration=e,this.edgeApiClient=rl.create(e,e),this.graphClient=(n=this.configuration,r=n.apiKey,i=n.baseUri,o=Qi(r,n),a=function(e){return new jt({uri:"".concat(e,"/graphql"),fetch:Li()})}(i),s=new Gi({attempts:{max:5,retryIf:Wi},delay:{initial:500,max:2e3,jitter:!0}}),new Gr({link:o.concat(s.concat(a)),cache:new ji({possibleTypes:Ui.g}),name:"js-client-sdk",version:zi.version})),this.batchedGraphClient=function(e){var t=e.apiKey,n=e.baseUri,r=Qi(t,e),i=function(e){return new Vi({uri:"".concat(e,"/graphql"),batchMax:25,batchInterval:500,fetch:Li()})}(n);return new Gr({link:r.concat(i),cache:new ji({possibleTypes:Ui.g}),name:"js-client-sdk",version:zi.version})}(this.configuration),this.loggerService=t,this.apiGateway=new R(this.graphClient,this.edgeApiClient),this.globalEntitlementsService=null,this.resourceEntitlementsService=null,this.initializationStateTracker=new lu(this.eventEmitter)}return e.initialize=function(t){var n=function(e){var t=U(),n=e.baseEdgeUri?e.baseEdgeUri:e.baseUri?M(e.baseUri):t.baseEdgeUri;return F()(t,e,{baseEdgeUri:n})}(t),r=new p(n.logConfiguration.logger,n.logConfiguration.logLevel);!function(e,t){if(C()(e.apiKey)){var n="You must configure the client with an SDK key";throw t.error(n),new Error(n)}var r=U();e.useEntitlementPolling&&e.entitlementPollingInterval&&e.entitlementPollingInterval<5e3&&(t.error("Entitlements polling interval cannot be lower than 5000ms, using default value ".concat(r.entitlementPollingInterval)),e.entitlementPollingInterval=r.entitlementPollingInterval)}(n,r);var i=new e(n,r);return this.initializeSdk(i).then((function(){n.customerId?n.lazyLoad||i.setCustomerId(n.customerId,n.customerToken,n.resourceId):i.initializationStateTracker.signalSuccessInit()})).catch((function(e){return i.initializationStateTracker.signalFailedInit(e)})),i},e.prototype.waitForInitialization=function(){return ol(this,void 0,void 0,(function(){var e=this;return al(this,(function(t){return[2,this.initializationStateTracker.getInitializationPromise().then((function(){return e}))]}))}))},e.initializeSdk=function(e){var t,n,r,i;return ol(this,void 0,void 0,(function(){var o,a,s,u;return al(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,e.apiGateway.sdkConfiguration.getSdkConfiguration()];case 1:return o=c.sent(),a=null===(t=o.data)||void 0===t?void 0:t.sdkConfiguration,!cu.getClient()&&(null==a?void 0:a.sentryDsn)&&(v=a.sentryDsn,l=void 0,f=void 0,h=function(){var e,t;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(n){return e={dsn:v,normalizeDepth:6,release:"".concat("js-client-sdk","@").concat(su.version),integrations:uu,stackParser:Ps,transport:ya()?Ws:Ys},t=new ou(e),cu.bindClient(t),[2]}))},new((p=void 0)||(p=Promise))((function(e,t){function n(e){try{i(h.next(e))}catch(e){t(e)}}function r(e){try{i(h.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):(i=t.value,i instanceof p?i:new p((function(e){e(i)}))).then(n,r)}i((h=h.apply(l,f||[])).next())}))),e.showWidgetsWatermark=!!(null==a?void 0:a.isWidgetWatermarkEnabled),[3,3];case 2:throw s=c.sent(),401===(null===(n=s.response)||void 0===n?void 0:n.status)||s.graphQLErrors&&(null===(i=null===(r=s.graphQLErrors[0])||void 0===r?void 0:r.extensions)||void 0===i?void 0:i.code)===d.jK.Unauthenticated?(u="Authentication failed. Double check your SDK key.",e.loggerService.error(u),new Error(u)):(e.loggerService.error("Failed to load sdk configuration",s),s);case 3:return[2]}var l,f,p,h,v}))}))},Object.defineProperty(e.prototype,"isCustomerLoaded",{get:function(){var e;return(null===(e=this.globalEntitlementsService)||void 0===e?void 0:e.isInitialized)||!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isResourceLoaded",{get:function(){var e;return(null===(e=this.resourceEntitlementsService)||void 0===e?void 0:e.isInitialized)||!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isWidgetWatermarkEnabled",{get:function(){return this.showWidgetsWatermark},enumerable:!1,configurable:!0}),e.prototype.addListener=function(e,t){this.eventEmitter.on(e,t)},e.prototype.removeListener=function(e,t){this.eventEmitter.off(e,t)},e.prototype.setCustomerId=function(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=null),ol(this,void 0,void 0,(function(){var r,i=this;return al(this,(function(o){switch(o.label){case 0:if(this.clearCustomer(),!e)return this.loggerService.log("`setCustomerId` was called without a customerId, did you mean to call `clearCustomer`?"),[2];if(!(0,to.isString)(e))throw new Error("customerId parameter must be a string");if(t&&!(0,to.isString)(t))throw new Error("customerToken parameter must be a string");if(n&&!(0,to.isString)(n))throw new Error("resourceId parameter must be a string");this.configuration.customerId=e,this.configuration.customerToken=t,this.configuration.resourceId=n,this.globalEntitlementsService=new oo(e,void 0,new Yi,this.graphClient,this.batchedGraphClient,this.edgeApiClient,this.loggerService,(function(e){return i.eventEmitter.emit("entitlementsUpdated",e)})),n&&(this.resourceEntitlementsService=new oo(e,n,new Yi,this.graphClient,this.batchedGraphClient,this.edgeApiClient,this.loggerService,(function(e){return i.eventEmitter.emit("entitlementsUpdated",e)}))),this.configuration.useEntitlementPolling&&(this.globalEntitlementsService.startPolling(this.configuration.entitlementPollingInterval),this.resourceEntitlementsService&&this.resourceEntitlementsService.startPolling(this.configuration.entitlementPollingInterval)),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,pu((function(){return ol(i,void 0,void 0,(function(){var e,t;return al(this,(function(n){switch(n.label){case 0:return[4,Promise.all([null===(e=this.globalEntitlementsService)||void 0===e?void 0:e.loadEntitlements(),null===(t=this.resourceEntitlementsService)||void 0===t?void 0:t.loadEntitlements()])];case 1:return n.sent(),[2]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to load initial entitlements for customer. Error: ".concat(e.message)},rethrowError:!0})];case 2:return o.sent(),this.initializationStateTracker.signalSuccessInit(),[3,4];case 3:return r=o.sent(),this.initializationStateTracker.signalFailedInit(r),[3,4];case 4:return[2]}}))}))},e.prototype.clearCustomer=function(){var e,t;null===(e=this.globalEntitlementsService)||void 0===e||e.stopPolling(),this.globalEntitlementsService=null,null===(t=this.resourceEntitlementsService)||void 0===t||t.stopPolling(),this.resourceEntitlementsService=null,this.configuration.customerId=null,this.configuration.customerToken=null,this.configuration.resourceId=null},e.prototype.setResource=function(e){return ol(this,void 0,void 0,(function(){var t,n=this;return al(this,(function(r){switch(r.label){case 0:if(!this.configuration.customerId)throw new Error("`setResource` must be called when customer was set, did you forget to call `setCustomerId`?");if(this.clearResource(),!(0,to.isString)(e))throw new Error("resourceId parameter must be a string");this.configuration.resourceId=e,this.resourceEntitlementsService=new oo(this.configuration.customerId,e,new Yi,this.graphClient,this.batchedGraphClient,this.edgeApiClient,this.loggerService,(function(e){return n.eventEmitter.emit("entitlementsUpdated",e)})),this.configuration.useEntitlementPolling&&this.resourceEntitlementsService.startPolling(this.configuration.entitlementPollingInterval),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,pu((function(){return ol(n,void 0,void 0,(function(){var e;return al(this,(function(t){return null===(e=this.resourceEntitlementsService)||void 0===e||e.loadEntitlements(),[2]}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to load initial entitlements for customer resource. Error: ".concat(e.message)},rethrowError:!0})];case 2:return r.sent(),this.initializationStateTracker.signalSuccessInit(),[3,4];case 3:return t=r.sent(),this.initializationStateTracker.signalFailedInit(t),[3,4];case 4:return[2]}}))}))},e.prototype.clearResource=function(){var e;if(!this.configuration.customerId)throw new Error("`clearResource` must be called when customer was set, did you forget to call `setCustomerId`?");null===(e=this.resourceEntitlementsService)||void 0===e||e.stopPolling(),this.resourceEntitlementsService=null,this.configuration.resourceId=null},e.prototype.refresh=function(){return ol(this,void 0,void 0,(function(){var e=this;return al(this,(function(t){return[2,pu((function(){return ol(e,void 0,void 0,(function(){var e,t;return al(this,(function(n){switch(n.label){case 0:return[4,Promise.all([null===(e=this.globalEntitlementsService)||void 0===e?void 0:e.refresh(),null===(t=this.resourceEntitlementsService)||void 0===t?void 0:t.refresh()])];case 1:return n.sent(),[2]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to refresh entitlements. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.getBooleanEntitlement=function(e){var t,n=this,r=e.featureId,i=e.options,o=e.resourceId,a=(null==i?void 0:i.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[r])||{},s=il(il({},h),a);return du((function(){return n.globalEntitlementsService&&n.isCustomerLoaded?o?o!==n.configuration.resourceId?(n.loggerService.log("Resource ID ".concat(o," does not match the current resource ID ").concat(n.configuration.resourceId,".")),s):n.isResourceLoaded&&n.resourceEntitlementsService?n.resourceEntitlementsService.getBooleanEntitlement(r,s,i):s:n.globalEntitlementsService.getBooleanEntitlement(r,s,i):s}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get boolean entitlement. Error: ".concat(e.message)},rethrowError:!1,errorReportMetadata:{featureId:r,options:i}})||s},e.prototype.getNumericEntitlement=function(e){var t,n=this,r=e.featureId,i=e.options,o=e.resourceId,a=(null==i?void 0:i.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[r])||{},s=il(il({},v),a);return du((function(){return n.globalEntitlementsService&&n.isCustomerLoaded?o?o!==n.configuration.resourceId?(n.loggerService.log("Resource ID ".concat(o," does not match the current resource ID ").concat(n.configuration.resourceId,".")),s):n.isResourceLoaded&&n.resourceEntitlementsService?n.resourceEntitlementsService.getNumericEntitlement(r,s,i):s:n.globalEntitlementsService.getNumericEntitlement(r,s,i):s}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get numeric entitlement. Error: ".concat(e.message)},rethrowError:!1,errorReportMetadata:{featureId:r,options:i}})||s},e.prototype.getMeteredEntitlement=function(e){var t,n=this,r=e.featureId,i=e.options,o=e.resourceId,a=(null==i?void 0:i.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[r])||{},s=il(il({},y),a);return du((function(){return n.globalEntitlementsService&&n.isCustomerLoaded?o?o!==n.configuration.resourceId?(n.loggerService.log("Resource ID ".concat(o," does not match the current resource ID ").concat(n.configuration.resourceId,".")),s):n.isResourceLoaded&&n.resourceEntitlementsService?n.resourceEntitlementsService.getMeteredEntitlement(r,s,i):s:n.globalEntitlementsService.getMeteredEntitlement(r,s,i):s}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get metered entitlement. Error: ".concat(e.message)},rethrowError:!1,errorReportMetadata:{featureId:r,options:i}})||s},e.prototype.getPaywall=function(e){var t=void 0===e?{}:e,n=t.productId,r=t.resourceId,i=t.context,o=t.billingCountryCode;return ol(this,void 0,void 0,(function(){var e,t=this;return al(this,(function(a){return e={productId:n,customerId:this.configuration.customerId,resourceId:r,context:i,billingCountryCode:o},[2,pu((function(){return ol(t,void 0,void 0,(function(){var t;return al(this,(function(r){switch(r.label){case 0:return(null==n?void 0:n.startsWith("stiggTestData"))?[4,this.apiGateway.mockPaywall.getMockPaywall(e)]:[3,2];case 1:return t=r.sent(),[2,this.modelMapper.mapMockPlans(t.data)];case 2:return[4,this.apiGateway.paywall.getPaywall(e)];case 3:return t=r.sent(),[2,this.modelMapper.mapPaywall(t.data)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get paywall. Error: ".concat(e.message)},rethrowError:!0,errorReportMetadata:{productId:n}})]}))}))},e.prototype.getCoupons=function(){return ol(this,void 0,void 0,(function(){var e=this;return al(this,(function(t){return[2,pu((function(){return ol(e,void 0,void 0,(function(){var e;return al(this,(function(t){switch(t.label){case 0:return[4,this.apiGateway.coupons.getCoupons()];case 1:return e=t.sent(),[2,this.modelMapper.mapCoupons(e.data)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get coupons. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.getCustomer=function(){return ol(this,void 0,void 0,(function(){var e=this;return al(this,(function(t){return[2,pu((function(){return ol(e,void 0,void 0,(function(){var e,t,n;return al(this,(function(r){switch(r.label){case 0:return e=L(this.configuration),[4,this.apiGateway.customers.getCustomer(e)];case 1:if(t=r.sent(),!(n=t.data.getCustomerByRefId))throw new Error("Customer not found");return[2,this.modelMapper.mapCustomer(n)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get customer. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.getCustomerPortal=function(e){var t=(void 0===e?{}:e).resourceId;return ol(this,void 0,void 0,(function(){var e=this;return al(this,(function(n){return[2,pu((function(){return ol(e,void 0,void 0,(function(){var e,n;return al(this,(function(r){switch(r.label){case 0:return e=L(this.configuration),[4,this.apiGateway.customers.getCustomerPortal(e,t)];case 1:return n=r.sent(),[2,this.modelMapper.mapCustomerPortal(n.data.customerPortal)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get customer portal details. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.getEntitlements=function(){return ol(this,void 0,void 0,(function(){var e=this;return al(this,(function(t){switch(t.label){case 0:return[4,pu((function(){return ol(e,void 0,void 0,(function(){var e;return al(this,(function(t){return L(this.configuration),[2,(null===(e=this.globalEntitlementsService)||void 0===e?void 0:e.getEntitlements())||[]]}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get entitlements. Error: ".concat(e.message)},rethrowError:!0})];case 1:return[2,t.sent()||K(this.configuration.entitlementsFallback)]}}))}))},e.prototype.estimateSubscription=function(e){return ol(this,void 0,void 0,(function(){var t=this;return al(this,(function(n){return[2,pu((function(){return ol(t,void 0,void 0,(function(){var t;return al(this,(function(n){switch(n.label){case 0:return[4,this.apiGateway.subscriptionEstimations.estimateSubscription(e)];case 1:if(!(t=n.sent().data))throw new Error("Invalid response");return[2,this.modelMapper.mapSubscriptionPreview(t.estimateSubscription)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to estimate subscription. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.estimateSubscriptionUpdate=function(e){return ol(this,void 0,void 0,(function(){var t=this;return al(this,(function(n){return[2,pu((function(){return ol(t,void 0,void 0,(function(){var t;return al(this,(function(n){switch(n.label){case 0:return[4,this.apiGateway.subscriptionEstimations.estimateSubscriptionUpdate(e)];case 1:if(!(t=n.sent().data))throw new Error("Invalid response");return[2,this.modelMapper.mapSubscriptionPreview(t.estimateSubscriptionUpdate)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to estimate subscription update. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.waitForCheckoutCompleted=function(e){var t=void 0===e?{}:e,n=t.timeoutMs,r=void 0===n?15e3:n,i=t.refreshOnComplete,o=void 0===i||i;return ol(this,void 0,void 0,(function(){var e,t,n,i,a,s,u,c;return al(this,(function(l){switch(l.label){case 0:if("undefined"==typeof window)throw new Error("`waitForCheckoutCompleted` was called, but `window` is not defined");if(e=new URLSearchParams(window.location.search),t=e.get("subscriptionId"),n=e.get("resourceId")||void 0,i=e.get("checkoutCompleted"),!t)return this.loggerService.log("`waitCheckoutCompleted` was called, but no `subscriptionId` found in query params"),[2,null];if(!i||"false"===i.toLowerCase())return this.loggerService.log("The checkout session was cancelled by the user"),[2,null];a=Date.now(),s=!1,u=null,l.label=1;case 1:return s?[4,new Promise((function(e){return setTimeout(e,1e3)}))]:[3,3];case 2:l.sent(),l.label=3;case 3:return[4,this.getActiveSubscriptions({resourceId:n})];case 4:c=l.sent(),u=c.find((function(e){return e.id===t}))||null,s=!0,l.label=5;case 5:if(!u&&Date.now()-a<r)return[3,1];l.label=6;case 6:if(!u)throw new Error("Timeout while waiting for checkout to complete, subscription ".concat(t," is not active"));return o?[4,this.refresh()]:[3,8];case 7:l.sent(),l.label=8;case 8:return[2,u]}}))}))},e.prototype.getActiveSubscriptions=function(e){var t=this,n=(void 0===e?{}:e).resourceId;return pu((function(){return ol(t,void 0,void 0,(function(){var e,t,r;return al(this,(function(i){switch(i.label){case 0:return e=L(this.configuration),[4,this.apiGateway.customers.getActiveSubscriptions(e,n)];case 1:if(t=i.sent(),!(r=t.data.getActiveSubscriptions))throw new Error("Customer ".concat(n?"or resource ":"","not found"));return[2,this.modelMapper.mapSubscriptions(r)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get active subscriptions. Error: ".concat(e.message)},rethrowError:!0})},e}()},655:(e,t,n)=>{"use strict";n.d(t,{ZT:()=>i,pi:()=>o,_T:()=>a,mG:()=>s,Jh:()=>u,ev:()=>c});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function u(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function c(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create},890:(e,t,n)=>{"use strict";t.$V=t.ku=t.Jk=t.p_=t._H=t.YG=t.qX=t.Lt=t.TV=t.iI=t.zv=t.pS=t.pu=t.XY=t.Ky=t.Us=t.B8=t.qB=t.uM=t.U9=t.Te=t.iK=t.GA=t.bW=t.o_=t.i3=t.jK=t.$B=t.IZ=t.FT=t.XH=t.Lb=t.C2=t.yE=t.Pg=t.rp=t.F=t.$i=t.K7=t.i2=t.u4=t.tv=t.Fz=t.PL=t.E3=t.Mb=t.v2=t.nw=t.dp=t.fE=void 0,t._d=t.u9=t.Ep=t.LB=t.X$=t.aq=t.cG=t.l3=t.bI=t.cU=t.o5=t.Jy=t.L0=t.XT=t.cM=t.zj=t.bG=t.mc=t.wE=t.Oo=t.zO=t.l9=t.rC=t.Fo=t.Bu=t.p1=t.UA=t.hY=t.wR=t.yh=t.nO=t.YV=t.IF=t.yB=t.eS=t.e1=t._o=t.ir=t.lS=t.w1=t.ue=t.PO=t.Xm=t.Sr=t.Z=t.u0=t.QZ=void 0,t.T5=t.fF=t._x=t.$A=t.N9=t.Fd=t.pW=t.ro=t.RV=t.Q$=t.Op=t.Ze=t.WJ=t.JD=t.K5=t.jA=t.wO=t.m5=t.Ai=t.x3=t.EQ=t.rD=t.eK=t.$j=t.q6=t.qw=t.hk=t.Ug=t.J5=t.Eh=t.zd=t.bj=t.r4=t.nN=t.Fc=t.bO=t.d4=t.Rz=t.lg=t.hV=t.Ve=t.k8=t.g3=t.NS=t.mG=t.Xs=void 0;const r=n(1642);var i,o,a,s,u,c,l,f,p,d,h,v,y,m,g,_,b,E,w,S,T,O,I,x,D,A,k,R,P,C,N,F,j,U,M,L,B,q,V,$,G,z,Q,W,Y,K,H,J,X,Z,ee,te,ne,re,ie,oe,ae,se,ue,ce,le,fe,pe,de,he,ve,ye,me,ge,_e,be,Ee,we,Se,Te,Oe;(Oe=t.fE||(t.fE={})).CustomerNotFound="CustomerNotFound",Oe.CustomerResourceNotFound="CustomerResourceNotFound",Oe.FeatureNotFound="FeatureNotFound",Oe.NoActiveSubscription="NoActiveSubscription",Oe.NoFeatureEntitlementInSubscription="NoFeatureEntitlementInSubscription",Oe.RequestedUsageExceedingLimit="RequestedUsageExceedingLimit",Oe.Unknown="Unknown",(Te=t.dp||(t.dp={})).Active="ACTIVE",Te.Blocked="BLOCKED",(Se=t.nw||(t.nw={})).BillingId="billingId",Se.CreatedAt="createdAt",Se.Description="description",Se.DisplayName="displayName",Se.EnvironmentId="environmentId",Se.Id="id",Se.IsLatest="isLatest",Se.PricingType="pricingType",Se.ProductId="productId",Se.RefId="refId",Se.Status="status",Se.UpdatedAt="updatedAt",Se.VersionNumber="versionNumber",(we=t.v2||(t.v2={})).Center="CENTER",we.Left="LEFT",we.Right="RIGHT",(t.Mb||(t.Mb={})).Id="id",(Ee=t.E3||(t.E3={})).Client="CLIENT",Ee.Server="SERVER",(be=t.PL||(t.PL={})).StartOfTheMonth="START_OF_THE_MONTH",be.SubscriptionStart="SUBSCRIPTION_START",(_e=t.Fz||(t.Fz={})).FlatFee="FLAT_FEE",_e.PerUnit="PER_UNIT",_e.UsageBased="USAGE_BASED",(ge=t.tv||(t.tv={})).Annually="ANNUALLY",ge.Monthly="MONTHLY",(me=t.u4||(t.u4={})).Added="ADDED",me.Deleted="DELETED",me.Modified="MODIFIED",me.Reordered="REORDERED",(ye=t.i2||(t.i2={})).BillingId="billingId",ye.CreatedAt="createdAt",ye.Description="description",ye.EnvironmentId="environmentId",ye.Id="id",ye.Name="name",ye.RefId="refId",ye.Status="status",ye.Type="type",ye.UpdatedAt="updatedAt",(ve=t.K7||(t.K7={})).Active="ACTIVE",ve.Archived="ARCHIVED",(he=t.$i||(t.$i={})).Fixed="FIXED",he.Percentage="PERCENTAGE",(de=t.F||(t.F={})).Aed="AED",de.All="ALL",de.Amd="AMD",de.Ang="ANG",de.Aud="AUD",de.Awg="AWG",de.Azn="AZN",de.Bam="BAM",de.Bbd="BBD",de.Bdt="BDT",de.Bgn="BGN",de.Bif="BIF",de.Bmd="BMD",de.Bnd="BND",de.Bsd="BSD",de.Bwp="BWP",de.Byn="BYN",de.Bzd="BZD",de.Cad="CAD",de.Cdf="CDF",de.Chf="CHF",de.Clp="CLP",de.Cny="CNY",de.Czk="CZK",de.Djf="DJF",de.Dkk="DKK",de.Dop="DOP",de.Dzd="DZD",de.Egp="EGP",de.Etb="ETB",de.Eur="EUR",de.Fjd="FJD",de.Gbp="GBP",de.Gel="GEL",de.Gip="GIP",de.Gmd="GMD",de.Gnf="GNF",de.Gyd="GYD",de.Hkd="HKD",de.Hrk="HRK",de.Htg="HTG",de.Idr="IDR",de.Ils="ILS",de.Inr="INR",de.Isk="ISK",de.Jmd="JMD",de.Jpy="JPY",de.Kes="KES",de.Kgs="KGS",de.Khr="KHR",de.Kmf="KMF",de.Krw="KRW",de.Kyd="KYD",de.Kzt="KZT",de.Lbp="LBP",de.Lkr="LKR",de.Lrd="LRD",de.Lsl="LSL",de.Mad="MAD",de.Mdl="MDL",de.Mga="MGA",de.Mkd="MKD",de.Mmk="MMK",de.Mnt="MNT",de.Mop="MOP",de.Mro="MRO",de.Mvr="MVR",de.Mwk="MWK",de.Mxn="MXN",de.Myr="MYR",de.Mzn="MZN",de.Nad="NAD",de.Ngn="NGN",de.Nok="NOK",de.Npr="NPR",de.Nzd="NZD",de.Pgk="PGK",de.Php="PHP",de.Pkr="PKR",de.Pln="PLN",de.Pyg="PYG",de.Qar="QAR",de.Ron="RON",de.Rsd="RSD",de.Rub="RUB",de.Rwf="RWF",de.Sar="SAR",de.Sbd="SBD",de.Scr="SCR",de.Sek="SEK",de.Sgd="SGD",de.Sle="SLE",de.Sll="SLL",de.Sos="SOS",de.Szl="SZL",de.Thb="THB",de.Tjs="TJS",de.Top="TOP",de.Try="TRY",de.Ttd="TTD",de.Tzs="TZS",de.Uah="UAH",de.Ugx="UGX",de.Usd="USD",de.Uzs="UZS",de.Vnd="VND",de.Vuv="VUV",de.Wst="WST",de.Xaf="XAF",de.Xcd="XCD",de.Xof="XOF",de.Xpf="XPF",de.Yer="YER",de.Zar="ZAR",de.Zmw="ZMW",(pe=t.rp||(t.rp={})).BillingId="billingId",pe.CreatedAt="createdAt",pe.CrmHubspotCompanyId="crmHubspotCompanyId",pe.CrmHubspotCompanyUrl="crmHubspotCompanyUrl",pe.CrmId="crmId",pe.CustomerId="customerId",pe.Email="email",pe.EnvironmentId="environmentId",pe.Id="id",pe.Name="name",pe.RefId="refId",pe.UpdatedAt="updatedAt",(fe=t.Pg||(t.Pg={})).BillingId="billingId",fe.CancelReason="cancelReason",fe.CancellationDate="cancellationDate",fe.CreatedAt="createdAt",fe.CrmId="crmId",fe.CrmLinkUrl="crmLinkUrl",fe.EffectiveEndDate="effectiveEndDate",fe.EndDate="endDate",fe.EnvironmentId="environmentId",fe.Id="id",fe.OldBillingId="oldBillingId",fe.PricingType="pricingType",fe.RefId="refId",fe.StartDate="startDate",fe.Status="status",fe.SubscriptionId="subscriptionId",fe.TrialEndDate="trialEndDate",(le=t.yE||(t.yE={})).CeoOrFounder="CEO_OR_FOUNDER",le.Engineering="ENGINEERING",le.Growth="GROWTH",le.Marketing="MARKETING",le.Monetization="MONETIZATION",le.Other="OTHER",le.Product="PRODUCT",(ce=t.C2||(t.C2={})).Forever="FOREVER",ce.Once="ONCE",ce.Repeating="REPEATING",(ue=t.Lb||(t.Lb={})).Fixed="FIXED",ue.Percentage="PERCENTAGE",(se=t.XH||(t.XH={})).Day="DAY",se.Hour="HOUR",se.Month="MONTH",se.Week="WEEK",(ae=t.FT||(t.FT={})).BlackList="BLACK_LIST",ae.WhiteList="WHITE_LIST",(oe=t.IZ||(t.IZ={})).Done="DONE",oe.Failed="FAILED",oe.InProgress="IN_PROGRESS",oe.NotProvisioned="NOT_PROVISIONED",(ie=t.$B||(t.$B={})).CreatedAt="createdAt",ie.DisplayName="displayName",ie.Id="id",ie.Slug="slug",(re=t.jK||(t.jK={})).AccountNotFoundError="AccountNotFoundError",re.AddonHasToHavePriceError="AddonHasToHavePriceError",re.AddonNotFound="AddonNotFound",re.ArchivedCouponCantBeApplied="ArchivedCouponCantBeApplied",re.AuthCustomerMismatch="AuthCustomerMismatch",re.BadUserInput="BadUserInput",re.BillingPeriodMissingError="BillingPeriodMissingError",re.CannotDeleteCustomerError="CannotDeleteCustomerError",re.CannotDeleteFeatureError="CannotDeleteFeatureError",re.CannotEditPackageInNonDraftMode="CannotEditPackageInNonDraftMode",re.CheckoutIsNotSupported="CheckoutIsNotSupported",re.CheckoutOptionsMissing="CheckoutOptionsMissing",re.CouponNotFound="CouponNotFound",re.CustomerAlreadyHaveCustomerCoupon="CustomerAlreadyHaveCustomerCoupon",re.CustomerAlreadyUsesCoupon="CustomerAlreadyUsesCoupon",re.CustomerHasNoPaymentMethod="CustomerHasNoPaymentMethod",re.CustomerNoBillingId="CustomerNoBillingId",re.CustomerNotFound="CustomerNotFound",re.CustomerResourceNotFound="CustomerResourceNotFound",re.DowngradeBillingPeriodNotSupportedError="DowngradeBillingPeriodNotSupportedError",re.DraftPlanCantBeArchived="DraftPlanCantBeArchived",re.DuplicatedEntityNotAllowed="DuplicatedEntityNotAllowed",re.EditAllowedOnDraftPackageOnlyError="EditAllowedOnDraftPackageOnlyError",re.EntitlementsMustBelongToSamePackage="EntitlementsMustBelongToSamePackage",re.EntityIdDifferentFromRefIdError="EntityIdDifferentFromRefIdError",re.EnvironmentMissing="EnvironmentMissing",re.ExperimentAlreadyRunning="ExperimentAlreadyRunning",re.ExperimentNotFoundError="ExperimentNotFoundError",re.ExperimentStatusError="ExperimentStatusError",re.FailedToCreateCheckoutSessionError="FailedToCreateCheckoutSessionError",re.FailedToImportCustomer="FailedToImportCustomer",re.FeatureNotFound="FeatureNotFound",re.FetchAllCountriesPricesNotAllowed="FetchAllCountriesPricesNotAllowed",re.IdentityForbidden="IdentityForbidden",re.ImportAlreadyInProgress="ImportAlreadyInProgress",re.InitStripePaymentMethodError="InitStripePaymentMethodError",re.IntegrationNotFound="IntegrationNotFound",re.IntegrityViolation="IntegrityViolation",re.InvalidAddressError="InvalidAddressError",re.InvalidArgumentError="InvalidArgumentError",re.InvalidCancellationDate="InvalidCancellationDate",re.InvalidEntitlementResetPeriod="InvalidEntitlementResetPeriod",re.InvalidMemberDelete="InvalidMemberDelete",re.InvalidQuantity="InvalidQuantity",re.InvalidSubscriptionStatus="InvalidSubscriptionStatus",re.InvalidUpdatePriceUnitAmountError="InvalidUpdatePriceUnitAmountError",re.InvalidUsageValueForIncrementalFeatureError="InvalidUsageValueForIncrementalFeatureError",re.MemberInvitationError="MemberInvitationError",re.MemberNotFound="MemberNotFound",re.MeteringNotAvailableForFeatureType="MeteringNotAvailableForFeatureType",re.MissingEntityIdError="MissingEntityIdError",re.NoFeatureEntitlementInSubscription="NoFeatureEntitlementInSubscription",re.NoProductsAvailable="NoProductsAvailable",re.OperationNotAllowedDuringInProgressExperiment="OperationNotAllowedDuringInProgressExperiment",re.PackageAlreadyPublished="PackageAlreadyPublished",re.PackagePricingTypeNotSet="PackagePricingTypeNotSet",re.PlanAlreadyExtended="PlanAlreadyExtended",re.PlanCannotBePublishWhenBasePlanIsDraft="PlanCannotBePublishWhenBasePlanIsDraft",re.PlanIsUsedAsDefaultStartPlan="PlanIsUsedAsDefaultStartPlan",re.PlanIsUsedAsDowngradePlan="PlanIsUsedAsDowngradePlan",re.PlanNotFound="PlanNotFound",re.PlanWithChildCantBeDeleted="PlanWithChildCantBeDeleted",re.PlansCircularDependencyError="PlansCircularDependencyError",re.PriceNotFound="PriceNotFound",re.PromotionCodeCustomerNotFirstPurchase="PromotionCodeCustomerNotFirstPurchase",re.PromotionCodeMaxRedemptionsReached="PromotionCodeMaxRedemptionsReached",re.PromotionCodeMinimumAmountNotReached="PromotionCodeMinimumAmountNotReached",re.PromotionCodeNotActive="PromotionCodeNotActive",re.PromotionCodeNotForCustomer="PromotionCodeNotForCustomer",re.PromotionCodeNotFound="PromotionCodeNotFound",re.RateLimitExceeded="RateLimitExceeded",re.ResyncAlreadyInProgress="ResyncAlreadyInProgress",re.SelectedBillingModelDoesntMatchImportedItemError="SelectedBillingModelDoesntMatchImportedItemError",re.StripeCustomerIsDeleted="StripeCustomerIsDeleted",re.SubscriptionAlreadyCanceledOrExpired="SubscriptionAlreadyCanceledOrExpired",re.SubscriptionMustHaveSinglePlanError="SubscriptionMustHaveSinglePlanError",re.SubscriptionNotFound="SubscriptionNotFound",re.TrialMinDateError="TrialMinDateError",re.TrialMustBeCancelledImmediately="TrialMustBeCancelledImmediately",re.UnPublishedPackage="UnPublishedPackage",re.Unauthenticated="Unauthenticated",re.UncompatibleSubscriptionAddon="UncompatibleSubscriptionAddon",re.UnexpectedError="UnexpectedError",re.UnsupportedFeatureType="UnsupportedFeatureType",re.UnsupportedSubscriptionScheduleType="UnsupportedSubscriptionScheduleType",re.UnsupportedVendorIdentifier="UnsupportedVendorIdentifier",(ne=t.i3||(t.i3={})).AddonCreated="ADDON_CREATED",ne.AddonDeleted="ADDON_DELETED",ne.AddonUpdated="ADDON_UPDATED",ne.CouponArchived="COUPON_ARCHIVED",ne.CouponCreated="COUPON_CREATED",ne.CouponUpdated="COUPON_UPDATED",ne.CreateSubscriptionFailed="CREATE_SUBSCRIPTION_FAILED",ne.CustomerCreated="CUSTOMER_CREATED",ne.CustomerDeleted="CUSTOMER_DELETED",ne.CustomerPaymentFailed="CUSTOMER_PAYMENT_FAILED",ne.CustomerUpdated="CUSTOMER_UPDATED",ne.EdgeApiDataResync="EDGE_API_DATA_RESYNC",ne.EntitlementsUpdated="ENTITLEMENTS_UPDATED",ne.EntitlementDenied="ENTITLEMENT_DENIED",ne.EntitlementGranted="ENTITLEMENT_GRANTED",ne.EntitlementRequested="ENTITLEMENT_REQUESTED",ne.EnvironmentDeleted="ENVIRONMENT_DELETED",ne.FeatureCreated="FEATURE_CREATED",ne.FeatureDeleted="FEATURE_DELETED",ne.FeatureUpdated="FEATURE_UPDATED",ne.ImportIntegrationCatalogTriggered="IMPORT_INTEGRATION_CATALOG_TRIGGERED",ne.ImportIntegrationCustomersTriggered="IMPORT_INTEGRATION_CUSTOMERS_TRIGGERED",ne.MeasurementReported="MEASUREMENT_REPORTED",ne.PackagePublished="PACKAGE_PUBLISHED",ne.PlanCreated="PLAN_CREATED",ne.PlanDeleted="PLAN_DELETED",ne.PlanUpdated="PLAN_UPDATED",ne.ProductCreated="PRODUCT_CREATED",ne.ProductDeleted="PRODUCT_DELETED",ne.ProductUpdated="PRODUCT_UPDATED",ne.PromotionalEntitlementExpired="PROMOTIONAL_ENTITLEMENT_EXPIRED",ne.PromotionalEntitlementGranted="PROMOTIONAL_ENTITLEMENT_GRANTED",ne.PromotionalEntitlementRevoked="PROMOTIONAL_ENTITLEMENT_REVOKED",ne.PromotionalEntitlementUpdated="PROMOTIONAL_ENTITLEMENT_UPDATED",ne.ResyncIntegrationTriggered="RESYNC_INTEGRATION_TRIGGERED",ne.SubscriptionCanceled="SUBSCRIPTION_CANCELED",ne.SubscriptionCreated="SUBSCRIPTION_CREATED",ne.SubscriptionExpired="SUBSCRIPTION_EXPIRED",ne.SubscriptionTrialConverted="SUBSCRIPTION_TRIAL_CONVERTED",ne.SubscriptionTrialEndsSoon="SUBSCRIPTION_TRIAL_ENDS_SOON",ne.SubscriptionTrialExpired="SUBSCRIPTION_TRIAL_EXPIRED",ne.SubscriptionTrialStarted="SUBSCRIPTION_TRIAL_STARTED",ne.SubscriptionUpdated="SUBSCRIPTION_UPDATED",ne.SubscriptionUsageUpdated="SUBSCRIPTION_USAGE_UPDATED",ne.SyncFailed="SYNC_FAILED",ne.WidgetConfigurationUpdated="WIDGET_CONFIGURATION_UPDATED",(te=t.o_||(t.o_={})).CreatedAt="createdAt",te.EnvironmentId="environmentId",te.Id="id",te.Name="name",te.ProductId="productId",te.RefId="refId",te.Status="status",(ee=t.bW||(t.bW={})).Completed="COMPLETED",ee.Draft="DRAFT",ee.InProgress="IN_PROGRESS",(Z=t.GA||(t.GA={})).CreatedAt="createdAt",Z.Description="description",Z.DisplayName="displayName",Z.EnvironmentId="environmentId",Z.FeatureStatus="featureStatus",Z.FeatureType="featureType",Z.Id="id",Z.MeterType="meterType",Z.RefId="refId",Z.UpdatedAt="updatedAt",(X=t.iK||(t.iK={})).Active="ACTIVE",X.New="NEW",X.Suspended="SUSPENDED",(J=t.Te||(t.Te={})).Boolean="BOOLEAN",J.Number="NUMBER",(H=t.U9||(t.U9={})).Bold="BOLD",H.Normal="NORMAL",(K=t.uM||(t.uM={})).CreatedAt="createdAt",K.Endpoint="endpoint",K.EnvironmentId="environmentId",K.Id="id",K.Status="status",(Y=t.qB||(t.qB={})).Active="ACTIVE",Y.Inactive="INACTIVE",(W=t.B8||(t.B8={})).CreatedAt="createdAt",W.EnvironmentId="environmentId",W.Id="id",W.Status="status",W.TaskType="taskType",(Q=t.Us||(t.Us={})).CreatedAt="createdAt",Q.EnvironmentId="environmentId",Q.Id="id",Q.VendorIdentifier="vendorIdentifier",(z=t.Ky||(t.Ky={})).CreatedAt="createdAt",z.Id="id",(G=t.XY||(t.XY={})).Invited="INVITED",G.Registered="REGISTERED",($=t.pu||(t.pu={})).Fluctuating="Fluctuating",$.Incremental="Incremental",$.None="None",(V=t.pS||(t.pS={})).StartOfTheMonth="StartOfTheMonth",V.SubscriptionStart="SubscriptionStart",(q=t.zv||(t.zv={})).BillingId="billingId",q.CreatedAt="createdAt",q.Description="description",q.DisplayName="displayName",q.EnvironmentId="environmentId",q.Id="id",q.IsLatest="isLatest",q.PricingType="pricingType",q.ProductId="productId",q.RefId="refId",q.Status="status",q.UpdatedAt="updatedAt",q.VersionNumber="versionNumber",(B=t.iI||(t.iI={})).CreatedAt="createdAt",B.EnvironmentId="environmentId",B.Id="id",B.PackageId="packageId",B.UpdatedAt="updatedAt",(L=t.TV||(t.TV={})).Archived="ARCHIVED",L.Draft="DRAFT",L.Published="PUBLISHED",(M=t.Lt||(t.Lt={})).Bank="BANK",M.Card="CARD",(U=t.qX||(t.qX={})).BillingId="billingId",U.CreatedAt="createdAt",U.Description="description",U.DisplayName="displayName",U.EnvironmentId="environmentId",U.Id="id",U.IsLatest="isLatest",U.PricingType="pricingType",U.ProductId="productId",U.RefId="refId",U.Status="status",U.UpdatedAt="updatedAt",U.VersionNumber="versionNumber",(j=t.YG||(t.YG={})).BillingId="billingId",j.BillingModel="billingModel",j.BillingPeriod="billingPeriod",j.CreatedAt="createdAt",j.Id="id",(F=t._H||(t._H={})).Custom="CUSTOM",F.Free="FREE",F.Paid="PAID",(N=t.p_||(t.p_={})).CreatedAt="createdAt",N.Description="description",N.DisplayName="displayName",N.EnvironmentId="environmentId",N.Id="id",N.IsDefaultProduct="isDefaultProduct",N.RefId="refId",N.UpdatedAt="updatedAt",(C=t.Jk||(t.Jk={})).Custom="CUSTOM",C.Lifetime="LIFETIME",C.OneMonth="ONE_MONTH",C.OneWeek="ONE_WEEK",C.OneYear="ONE_YEAR",C.SixMonth="SIX_MONTH",(P=t.ku||(t.ku={})).CreatedAt="createdAt",P.EnvironmentId="environmentId",P.Id="id",P.Status="status",P.UpdatedAt="updatedAt",(R=t.$V||(t.$V={})).Active="Active",R.Expired="Expired",R.Paused="Paused",(k=t.QZ||(t.QZ={})).CreateProrations="CREATE_PRORATIONS",k.InvoiceImmediately="INVOICE_IMMEDIATELY",(A=t.u0||(t.u0={})).PaymentRequired="PAYMENT_REQUIRED",A.Success="SUCCESS",(D=t.Z||(t.Z={})).AllCustomers="ALL_CUSTOMERS",D.NewCustomers="NEW_CUSTOMERS",(x=t.Sr||(t.Sr={})).Asc="ASC",x.Desc="DESC",(I=t.Xm||(t.Xm={})).NullsFirst="NULLS_FIRST",I.NullsLast="NULLS_LAST",(O=t.PO||(t.PO={})).JsClientSdk="JS_CLIENT_SDK",O.NodeServerSdk="NODE_SERVER_SDK",(T=t.ue||(t.ue={})).CreatedAt="createdAt",T.Id="id",T.Quantity="quantity",T.UpdatedAt="updatedAt",(S=t.w1||(t.w1={})).CancelledByBilling="CancelledByBilling",S.DetachBilling="DetachBilling",S.Expired="Expired",S.Immediate="Immediate",S.PendingPaymentExpired="PendingPaymentExpired",S.ScheduledCancellation="ScheduledCancellation",S.TrialConverted="TrialConverted",S.TrialEnded="TrialEnded",S.UpgradeOrDowngrade="UpgradeOrDowngrade",(w=t.lS||(t.lS={})).EndOfBillingPeriod="END_OF_BILLING_PERIOD",w.Immediate="IMMEDIATE",w.SpecificDate="SPECIFIC_DATE",(E=t.ir||(t.ir={})).PredefinedFreePlan="PREDEFINED_FREE_PLAN",E.PredefinedTrialPlan="PREDEFINED_TRIAL_PLAN",E.RequestedPlan="REQUESTED_PLAN",E.SkippedSubscriptionCreation="SKIPPED_SUBSCRIPTION_CREATION",(b=t._o||(t._o={})).CancelSubscription="CANCEL_SUBSCRIPTION",b.DowngradeToFree="DOWNGRADE_TO_FREE",(_=t.e1||(t.e1={})).CreatedAt="createdAt",_.EnvironmentId="environmentId",_.Id="id",_.SubscriptionId="subscriptionId",_.UpdatedAt="updatedAt",(g=t.eS||(t.eS={})).CreatedAt="createdAt",g.EnvironmentId="environmentId",g.Id="id",g.Status="status",g.TaskType="taskType",(m=t.yB||(t.yB={})).CreatedAt="createdAt",m.Id="id",m.UpdatedAt="updatedAt",m.UsageLimit="usageLimit",(y=t.IF||(t.IF={})).Canceled="Canceled",y.Done="Done",y.Failed="Failed",y.Scheduled="Scheduled",(v=t.YV||(t.YV={})).BillingPeriod="BillingPeriod",v.Downgrade="Downgrade",v.UnitAmount="UnitAmount",(h=t.nO||(t.nO={})).FreePlan="FREE_PLAN",h.PlanSelection="PLAN_SELECTION",h.TrialPeriod="TRIAL_PERIOD",(d=t.yh||(t.yh={})).Active="ACTIVE",d.Canceled="CANCELED",d.Expired="EXPIRED",d.InTrial="IN_TRIAL",d.NotStarted="NOT_STARTED",d.PaymentPending="PAYMENT_PENDING",(p=t.wR||(t.wR={})).Error="ERROR",p.NoSyncRequired="NO_SYNC_REQUIRED",p.Pending="PENDING",p.Success="SUCCESS",(f=t.hY||(t.hY={})).Completed="COMPLETED",f.Failed="FAILED",f.InProgress="IN_PROGRESS",f.PartiallyFailed="PARTIALLY_FAILED",f.Pending="PENDING",(l=t.UA||(t.UA={})).ImportIntegrationCatalog="IMPORT_INTEGRATION_CATALOG",l.ImportIntegrationCustomers="IMPORT_INTEGRATION_CUSTOMERS",l.ResyncIntegration="RESYNC_INTEGRATION",l.SubscriptionMigration="SUBSCRIPTION_MIGRATION",(c=t.p1||(t.p1={})).Day="DAY",c.Month="MONTH",(u=t.Bu||(t.Bu={})).CreatedAt="createdAt",u.EnvironmentId="environmentId",u.Id="id",(s=t.Fo||(t.Fo={})).Hubspot="HUBSPOT",s.Stripe="STRIPE",s.Zuora="ZUORA",(a=t.rC||(t.rC={})).EveryFriday="EveryFriday",a.EveryMonday="EveryMonday",a.EverySaturday="EverySaturday",a.EverySunday="EverySunday",a.EveryThursday="EveryThursday",a.EveryTuesday="EveryTuesday",a.EveryWednesday="EveryWednesday",a.SubscriptionStart="SubscriptionStart",(o=t.l9||(t.l9={})).CustomerPortal="CUSTOMER_PORTAL",o.Paywall="PAYWALL",(i=t.zO||(t.zO={})).Control="CONTROL",i.Variant="VARIANT",t.Oo=r.default`
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Stigg",[],t):"object"==typeof exports?exports.Stigg=t():e.Stigg=t()}(self,(function(){return(()=>{var e={2991:(e,t,n)=>{"use strict";n.d(t,{R:()=>o,Y:()=>a});var r=n(2176),i={};function o(){return(0,r.KV)()?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function a(e,t,n){var r=n||o(),i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}},2176:(e,t,n)=>{"use strict";function r(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function i(e,t){return e.require(t)}n.d(t,{l$:()=>i,KV:()=>r}),e=n.hmd(e)},1170:(e,t,n)=>{"use strict";n.d(t,{yW:()=>u,ph:()=>c});var r=n(2991),i=n(2176);e=n.hmd(e);var o={nowSeconds:()=>Date.now()/1e3},a=(0,i.KV)()?function(){try{return(0,i.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){const{performance:e}=(0,r.R)();if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),s=void 0===a?o:{nowSeconds:()=>(a.timeOrigin+a.now())/1e3},u=o.nowSeconds.bind(o),c=s.nowSeconds.bind(s);let l;(()=>{const{performance:e}=(0,r.R)();if(e&&e.now){var t=36e5,n=e.now(),i=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,a=o<t,s=e.timing&&e.timing.navigationStart,u="number"==typeof s?Math.abs(s+n-i):t;return a||u<t?o<=u?(l="timeOrigin",e.timeOrigin):(l="navigationStart",s):(l="dateNow",i)}l="none"})()},6401:e=>{e.exports="object"==typeof self?self.FormData:window.FormData},4098:function(e,t){var n="undefined"!=typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in e,a="ArrayBuffer"in e;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function d(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function v(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,n,r=d(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=h(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=c(e),t=l(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=l(t)},p.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),f(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),f(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),f(e)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function _(e,t){var n,r,i=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),g.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function b(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function E(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},m.call(_.prototype),m.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},E.error=function(){var e=new E(null,{status:0,statusText:""});return e.type="error",e};var w=[301,302,303,307,308];E.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new E(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function S(e,n){return new Promise((function(r,o){var a=new _(e,n);if(a.signal&&a.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new p,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new E(i,n))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",u)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}S.polyfill=!0,e.fetch||(e.fetch=S,e.Headers=p,e.Request=_,e.Response=E),t.Headers=p,t.Request=_,t.Response=E,t.fetch=S,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},7187:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}v(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&v(e,"error",t,{once:!0})}(e,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o,a,c;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,c=l,console&&console.warn&&console.warn(c)}return e}function l(){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 f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function d(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function v(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.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},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else{var c=u.length,l=h(u,c);for(n=0;n<c;++n)r(l[n],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,f(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},1642:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ue,disableExperimentalFragmentVariables:()=>te,disableFragmentWarnings:()=>Z,enableExperimentalFragmentVariables:()=>ee,gql:()=>J,resetCaches:()=>X});var r=n(655);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var o=n(9763);function a(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.index<t;)i+=1,o=t+1-(n.index+n[0].length);return{line:i,column:o}}function s(e){return u(e.source,a(e.source,e.start))}function u(e,t){var n=e.locationOffset.column-1,r=l(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,u=t.column+s,f="".concat(e.name,":").concat(a,":").concat(u,"\n"),p=r.split(/\r\n|[\n\r]/g),d=p[i];if(d.length>120){for(var h=Math.floor(u/80),v=u%80,y=[],m=0;m<d.length;m+=80)y.push(d.slice(m,m+80));return f+c([["".concat(a),y[0]]].concat(y.slice(1,h+1).map((function(e){return["",e]})),[[" ",l(v-1)+"^"],["",y[h+1]]]))}return f+c([["".concat(a-1),p[i-1]],["".concat(a),d],["",l(u-1)+"^"],["".concat(a+1),p[i+1]]])}function c(e){var t=e.filter((function(e){return e[0],void 0!==e[1]})),n=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t,r=e[0],i=e[1];return l(n-(t=r).length)+t+(i?" | "+i:" |")})).join("\n")}function l(e){return Array(e+1).join(" ")}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){var t="function"==typeof Map?new Map:void 0;return m=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return g(e,arguments,E(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),b(r,e)},m(e)}function g(e,t,n){return g=_()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&b(i,n.prototype),i},g.apply(null,arguments)}function _(){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(e){return!1}}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(f,e);var t,n,r,c,l=(t=f,n=_(),function(){var e,r=E(t);if(n){var i=E(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return v(this,e)});function f(e,t,n,r,o,s,u){var c,h,m,g;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(g=l.call(this,e)).name="GraphQLError",g.originalError=null!=s?s:void 0,g.nodes=S(Array.isArray(t)?t:t?[t]:void 0);for(var _=[],b=0,E=null!==(w=g.nodes)&&void 0!==w?w:[];b<E.length;b++){var w,T=E[b].loc;null!=T&&_.push(T)}_=S(_),g.source=null!=n?n:null===(c=_)||void 0===c?void 0:c[0].source,g.positions=null!=r?r:null===(h=_)||void 0===h?void 0:h.map((function(e){return e.start})),g.locations=r&&n?r.map((function(e){return a(n,e)})):null===(m=_)||void 0===m?void 0:m.map((function(e){return a(e.source,e.start)})),g.path=null!=o?o:void 0;var I,O=null==s?void 0:s.extensions;return null==u&&"object"==i(I=O)&&null!==I?g.extensions=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},O):g.extensions=null!=u?u:{},Object.defineProperties(y(g),{message:{enumerable:!0},locations:{enumerable:null!=g.locations},path:{enumerable:null!=g.path},extensions:{enumerable:null!=g.extensions&&Object.keys(g.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=s&&s.stack?(Object.defineProperty(y(g),"stack",{value:s.stack,writable:!0,configurable:!0}),v(g)):(Error.captureStackTrace?Error.captureStackTrace(y(g),f):Object.defineProperty(y(g),"stack",{value:Error().stack,writable:!0,configurable:!0}),g)}return r=f,(c=[{key:"toString",value:function(){return function(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];i.loc&&(t+="\n\n"+s(i.loc))}else if(e.source&&e.locations)for(var o=0,a=e.locations;o<a.length;o++){var c=a[o];t+="\n\n"+u(e.source,c)}return t}(this)}},{key:o.YF,get:function(){return"Object"}}])&&h(r.prototype,c),f}(m(Error));function S(e){return void 0===e||0===e.length?void 0:e}function T(e,t,n){return new w("Syntax Error: ".concat(n),void 0,e,[t])}var I=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"}),O=n(5217),x=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"}),D=n(143),A=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"}),R=n(7392),k=function(){function e(e){var t=new O.WU(x.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==x.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=P(this,e)}while(e.kind===x.COMMENT);return e},e}();function C(e){return isNaN(e)?x.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function P(e,t){for(var n=e.source,r=n.body,i=r.length,o=t.end;o<i;){var a=r.charCodeAt(o),s=e.line,u=1+o-e.lineStart;switch(a){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===r.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return new O.WU(x.BANG,o,o+1,s,u,t);case 35:return F(n,o,s,u,t);case 36:return new O.WU(x.DOLLAR,o,o+1,s,u,t);case 38:return new O.WU(x.AMP,o,o+1,s,u,t);case 40:return new O.WU(x.PAREN_L,o,o+1,s,u,t);case 41:return new O.WU(x.PAREN_R,o,o+1,s,u,t);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return new O.WU(x.SPREAD,o,o+3,s,u,t);break;case 58:return new O.WU(x.COLON,o,o+1,s,u,t);case 61:return new O.WU(x.EQUALS,o,o+1,s,u,t);case 64:return new O.WU(x.AT,o,o+1,s,u,t);case 91:return new O.WU(x.BRACKET_L,o,o+1,s,u,t);case 93:return new O.WU(x.BRACKET_R,o,o+1,s,u,t);case 123:return new O.WU(x.BRACE_L,o,o+1,s,u,t);case 124:return new O.WU(x.PIPE,o,o+1,s,u,t);case 125:return new O.WU(x.BRACE_R,o,o+1,s,u,t);case 34:return 34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)?L(n,o,s,u,t,e):M(n,o,s,u,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return j(n,o,a,s,u,t);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 q(n,o,s,u,t)}throw T(n,o,N(a))}var c=e.line,l=1+o-e.lineStart;return new O.WU(x.EOF,i,i,c,l,t)}function N(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(C(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(C(e),".")}function F(e,t,n,r,i){var o,a=e.body,s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new O.WU(x.COMMENT,t,s,n,r,i,a.slice(t+1,s))}function j(e,t,n,r,i,o){var a=e.body,s=n,u=t,c=!1;if(45===s&&(s=a.charCodeAt(++u)),48===s){if((s=a.charCodeAt(++u))>=48&&s<=57)throw T(e,u,"Invalid number, unexpected digit after 0: ".concat(C(s),"."))}else u=U(e,u,s),s=a.charCodeAt(u);if(46===s&&(c=!0,s=a.charCodeAt(++u),u=U(e,u,s),s=a.charCodeAt(u)),69!==s&&101!==s||(c=!0,43!==(s=a.charCodeAt(++u))&&45!==s||(s=a.charCodeAt(++u)),u=U(e,u,s),s=a.charCodeAt(u)),46===s||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw T(e,u,"Invalid number, expected digit but got: ".concat(C(s),"."));return new O.WU(c?x.FLOAT:x.INT,t,u,r,i,o,a.slice(t,u))}function U(e,t,n){var r=e.body,i=t,o=n;if(o>=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw T(e,i,"Invalid number, expected digit but got: ".concat(C(o),"."))}function M(e,t,n,r,i){for(var o,a,s,u,c=e.body,l=t+1,f=l,p=0,d="";l<c.length&&!isNaN(p=c.charCodeAt(l))&&10!==p&&13!==p;){if(34===p)return d+=c.slice(f,l),new O.WU(x.STRING,t,l+1,n,r,i,d);if(p<32&&9!==p)throw T(e,l,"Invalid character within String: ".concat(C(p),"."));if(++l,92===p){switch(d+=c.slice(f,l-1),p=c.charCodeAt(l)){case 34:d+='"';break;case 47:d+="/";break;case 92:d+="\\";break;case 98:d+="\b";break;case 102:d+="\f";break;case 110:d+="\n";break;case 114:d+="\r";break;case 116:d+="\t";break;case 117:var h=(o=c.charCodeAt(l+1),a=c.charCodeAt(l+2),s=c.charCodeAt(l+3),u=c.charCodeAt(l+4),B(o)<<12|B(a)<<8|B(s)<<4|B(u));if(h<0){var v=c.slice(l+1,l+5);throw T(e,l,"Invalid character escape sequence: \\u".concat(v,"."))}d+=String.fromCharCode(h),l+=4;break;default:throw T(e,l,"Invalid character escape sequence: \\".concat(String.fromCharCode(p),"."))}f=++l}}throw T(e,l,"Unterminated string.")}function L(e,t,n,r,i,o){for(var a=e.body,s=t+3,u=s,c=0,l="";s<a.length&&!isNaN(c=a.charCodeAt(s));){if(34===c&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2))return l+=a.slice(u,s),new O.WU(x.BLOCK_STRING,t,s+3,n,r,i,(0,R.W7)(l));if(c<32&&9!==c&&10!==c&&13!==c)throw T(e,s,"Invalid character within String: ".concat(C(c),"."));10===c?(++s,++o.line,o.lineStart=s):13===c?(10===a.charCodeAt(s+1)?s+=2:++s,++o.line,o.lineStart=s):92===c&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2)&&34===a.charCodeAt(s+3)?(l+=a.slice(u,s)+'"""',u=s+=4):++s}throw T(e,s,"Unterminated string.")}function B(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function q(e,t,n,r,i){for(var o=e.body,a=o.length,s=t+1,u=0;s!==a&&!isNaN(u=o.charCodeAt(s))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new O.WU(x.NAME,t,s,n,r,i,o.slice(t,s))}var V=function(){function e(e,t){var n=(0,D.T)(e)?e:new D.H(e);this._lexer=new k(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(x.NAME);return{kind:I.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:I.DOCUMENT,definitions:this.many(x.SOF,this.parseDefinition,x.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(x.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(x.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(x.BRACE_L))return{kind:I.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(x.NAME)&&(t=this.parseName()),{kind:I.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(x.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(x.PAREN_L,this.parseVariableDefinition,x.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:I.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(x.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(x.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(x.DOLLAR),{kind:I.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:I.SELECTION_SET,selections:this.many(x.BRACE_L,this.parseSelection,x.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(x.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(x.COLON)?(e=r,t=this.parseName()):t=r,{kind:I.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(x.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(x.PAREN_L,t,x.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(x.COLON),{kind:I.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:I.ARGUMENT,name:this.parseName(),value:(this.expectToken(x.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(x.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(x.NAME)?{kind:I.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:I.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:I.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:I.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case x.BRACKET_L:return this.parseList(e);case x.BRACE_L:return this.parseObject(e);case x.INT:return this._lexer.advance(),{kind:I.INT,value:t.value,loc:this.loc(t)};case x.FLOAT:return this._lexer.advance(),{kind:I.FLOAT,value:t.value,loc:this.loc(t)};case x.STRING:case x.BLOCK_STRING:return this.parseStringLiteral();case x.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:I.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:I.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:I.NULL,loc:this.loc(t)};default:return{kind:I.ENUM,value:t.value,loc:this.loc(t)}}case x.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:I.STRING,value:e.value,block:e.kind===x.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:I.LIST,values:this.any(x.BRACKET_L,(function(){return t.parseValueLiteral(e)}),x.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:I.OBJECT,fields:this.any(x.BRACE_L,(function(){return t.parseObjectField(e)}),x.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(x.COLON),{kind:I.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(x.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(x.AT),{kind:I.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(x.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(x.BRACKET_R),e={kind:I.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(x.BANG)?{kind:I.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:I.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===x.NAME)switch(e.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(e)},t.peekDescription=function(){return this.peek(x.STRING)||this.peek(x.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(x.BRACE_L,this.parseOperationTypeDefinition,x.BRACE_R);return{kind:I.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(x.COLON);var n=this.parseNamedType();return{kind:I.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:I.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:I.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(x.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(x.AMP)||this.peek(x.NAME));return t}return this.delimitedMany(x.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(x.BRACE_L)&&this._lexer.lookahead().kind===x.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(x.BRACE_L,this.parseFieldDefinition,x.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(x.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:I.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(x.PAREN_L,this.parseInputValueDef,x.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(x.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(x.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:I.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:I.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:I.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(x.EQUALS)?this.delimitedMany(x.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:I.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(x.BRACE_L,this.parseEnumValueDefinition,x.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:I.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:I.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(x.BRACE_L,this.parseInputValueDef,x.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===x.NAME)switch(e.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(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(x.BRACE_L,this.parseOperationTypeDefinition,x.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:I.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:I.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:I.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:I.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:I.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:I.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:I.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(x.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:I.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(x.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==A[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new O.Ye(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw T(this._lexer.source,t.start,"Expected ".concat(G(e),", found ").concat($(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==x.NAME||t.value!==e)throw T(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat($(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===x.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return T(this._lexer.source,t.start,"Unexpected ".concat($(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function $(e){var t=e.value;return G(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function G(e){return function(e){return e===x.BANG||e===x.DOLLAR||e===x.AMP||e===x.PAREN_L||e===x.PAREN_R||e===x.SPREAD||e===x.COLON||e===x.EQUALS||e===x.AT||e===x.BRACKET_L||e===x.BRACKET_R||e===x.BRACE_L||e===x.PIPE||e===x.BRACE_R}(e)?'"'.concat(e,'"'):e}var z=new Map,Q=new Map,W=!0,Y=!1;function K(e){return e.replace(/[\s,]+/g," ").trim()}function H(e){var t=K(e);if(!z.has(t)){var n=function(e,t){return new V(e,t).parseDocument()}(e,{experimentalFragmentVariables:Y,allowLegacyFragmentVariables:Y});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");z.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(function(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=K((a=e.loc).source.body.substring(a.start,a.end)),o=Q.get(r);o&&!o.has(i)?W&&console.warn("Warning: fragment with name "+r+" 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"):o||Q.set(r,o=new Set),o.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e);var a})),(0,r.pi)((0,r.pi)({},e),{definitions:n})}(n)))}return z.get(t)}function J(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach((function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]})),H(r)}function X(){z.clear(),Q.clear()}function Z(){W=!1}function ee(){Y=!0}function te(){Y=!1}var ne,re=J,ie=X,oe=Z,ae=ee,se=te;(ne=J||(J={})).gql=re,ne.resetCaches=ie,ne.disableFragmentWarnings=oe,ne.enableExperimentalFragmentVariables=ae,ne.disableExperimentalFragmentVariables=se,J.default=J;const ue=J},8552:(e,t,n)=>{var r=n(852)(n(5639),"DataView");e.exports=r},1989:(e,t,n)=>{var r=n(1789),i=n(401),o=n(7667),a=n(1327),s=n(1866);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},8407:(e,t,n)=>{var r=n(7040),i=n(4125),o=n(2117),a=n(7529),s=n(4705);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},7071:(e,t,n)=>{var r=n(852)(n(5639),"Map");e.exports=r},3369:(e,t,n)=>{var r=n(4785),i=n(1285),o=n(6e3),a=n(9916),s=n(5265);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},3818:(e,t,n)=>{var r=n(852)(n(5639),"Promise");e.exports=r},8525:(e,t,n)=>{var r=n(852)(n(5639),"Set");e.exports=r},8668:(e,t,n)=>{var r=n(3369),i=n(619),o=n(2385);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},6384:(e,t,n)=>{var r=n(8407),i=n(7465),o=n(3779),a=n(7599),s=n(4758),u=n(4309);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,e.exports=c},2705:(e,t,n)=>{var r=n(5639).Symbol;e.exports=r},1149:(e,t,n)=>{var r=n(5639).Uint8Array;e.exports=r},577:(e,t,n)=>{var r=n(852)(n(5639),"WeakMap");e.exports=r},6874:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},7412:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},4963:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},4636:(e,t,n)=>{var r=n(2545),i=n(5694),o=n(1469),a=n(4144),s=n(5776),u=n(6719),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),l=!n&&i(e),f=!n&&!l&&a(e),p=!n&&!l&&!f&&u(e),d=n||l||f||p,h=d?r(e.length,String):[],v=h.length;for(var y in e)!t&&!c.call(e,y)||d&&("length"==y||f&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,v))||h.push(y);return h}},9932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},2488:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},2908:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},6556:(e,t,n)=>{var r=n(9465),i=n(7813);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},4865:(e,t,n)=>{var r=n(9465),i=n(7813),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},8470:(e,t,n)=>{var r=n(7813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},4037:(e,t,n)=>{var r=n(8363),i=n(3674);e.exports=function(e,t){return e&&r(t,i(t),e)}},3886:(e,t,n)=>{var r=n(8363),i=n(1704);e.exports=function(e,t){return e&&r(t,i(t),e)}},9465:(e,t,n)=>{var r=n(8777);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},5990:(e,t,n)=>{var r=n(6384),i=n(7412),o=n(4865),a=n(4037),s=n(3886),u=n(4626),c=n(278),l=n(8805),f=n(1911),p=n(8234),d=n(6904),h=n(4160),v=n(3824),y=n(9148),m=n(8517),g=n(1469),_=n(4144),b=n(6688),E=n(3218),w=n(2928),S=n(3674),T=n(1704),I="[object Arguments]",O="[object Function]",x="[object Object]",D={};D[I]=D["[object Array]"]=D["[object ArrayBuffer]"]=D["[object DataView]"]=D["[object Boolean]"]=D["[object Date]"]=D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Map]"]=D["[object Number]"]=D[x]=D["[object RegExp]"]=D["[object Set]"]=D["[object String]"]=D["[object Symbol]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D["[object Error]"]=D[O]=D["[object WeakMap]"]=!1,e.exports=function e(t,n,A,R,k,C){var P,N=1&n,F=2&n,j=4&n;if(A&&(P=k?A(t,R,k,C):A(t)),void 0!==P)return P;if(!E(t))return t;var U=g(t);if(U){if(P=v(t),!N)return c(t,P)}else{var M=h(t),L=M==O||"[object GeneratorFunction]"==M;if(_(t))return u(t,N);if(M==x||M==I||L&&!k){if(P=F||L?{}:m(t),!N)return F?f(t,s(P,t)):l(t,a(P,t))}else{if(!D[M])return k?t:{};P=y(t,M,N)}}C||(C=new r);var B=C.get(t);if(B)return B;C.set(t,P),w(t)?t.forEach((function(r){P.add(e(r,n,A,r,t,C))})):b(t)&&t.forEach((function(r,i){P.set(i,e(r,n,A,i,t,C))}));var q=U?void 0:(j?F?d:p:F?T:S)(t);return i(q||t,(function(r,i){q&&(r=t[i=r]),o(P,i,e(r,n,A,i,t,C))})),P}},3118:(e,t,n)=>{var r=n(3218),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},4140:(e,t,n)=>{var r=n(7816),i=n(9291)(r);e.exports=i},1848:e=>{e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},1078:(e,t,n)=>{var r=n(2488),i=n(7285);e.exports=function e(t,n,o,a,s){var u=-1,c=t.length;for(o||(o=i),s||(s=[]);++u<c;){var l=t[u];n>0&&o(l)?n>1?e(l,n-1,o,a,s):r(s,l):a||(s[s.length]=l)}return s}},8483:(e,t,n)=>{var r=n(5063)();e.exports=r},7816:(e,t,n)=>{var r=n(8483),i=n(3674);e.exports=function(e,t){return e&&r(e,t,i)}},7786:(e,t,n)=>{var r=n(1811),i=n(327);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},8866:(e,t,n)=>{var r=n(2488),i=n(1469);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},4239:(e,t,n)=>{var r=n(2705),i=n(9607),o=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},13:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},2118:(e,t,n)=>{var r=n(1848),i=n(2722),o=n(2351);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,i,n)}},9454:(e,t,n)=>{var r=n(4239),i=n(7005);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},939:(e,t,n)=>{var r=n(1299),i=n(7005);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},1299:(e,t,n)=>{var r=n(6384),i=n(7114),o=n(8351),a=n(6096),s=n(4160),u=n(1469),c=n(4144),l=n(6719),f="[object Arguments]",p="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,y,m){var g=u(e),_=u(t),b=g?p:s(e),E=_?p:s(t),w=(b=b==f?d:b)==d,S=(E=E==f?d:E)==d,T=b==E;if(T&&c(e)){if(!c(t))return!1;g=!0,w=!1}if(T&&!w)return m||(m=new r),g||l(e)?i(e,t,n,v,y,m):o(e,t,b,n,v,y,m);if(!(1&n)){var I=w&&h.call(e,"__wrapped__"),O=S&&h.call(t,"__wrapped__");if(I||O){var x=I?e.value():e,D=O?t.value():t;return m||(m=new r),y(x,D,n,v,m)}}return!!T&&(m||(m=new r),a(e,t,n,v,y,m))}},5588:(e,t,n)=>{var r=n(4160),i=n(7005);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},2958:(e,t,n)=>{var r=n(6384),i=n(939);e.exports=function(e,t,n,o){var a=n.length,s=a,u=!o;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var l=(c=n[a])[0],f=e[l],p=c[1];if(u&&c[2]){if(void 0===f&&!(l in e))return!1}else{var d=new r;if(o)var h=o(f,p,l,e,t,d);if(!(void 0===h?i(p,f,3,o,d):h))return!1}}return!0}},2722:e=>{e.exports=function(e){return e!=e}},8458:(e,t,n)=>{var r=n(3560),i=n(5346),o=n(3218),a=n(346),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?p:s).test(a(e))}},9221:(e,t,n)=>{var r=n(4160),i=n(7005);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},8749:(e,t,n)=>{var r=n(4239),i=n(1780),o=n(7005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},7206:(e,t,n)=>{var r=n(1573),i=n(6432),o=n(6557),a=n(1469),s=n(9601);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},280:(e,t,n)=>{var r=n(5726),i=n(6916),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},313:(e,t,n)=>{var r=n(3218),i=n(5726),o=n(3498),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},9199:(e,t,n)=>{var r=n(4140),i=n(8612);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}},1573:(e,t,n)=>{var r=n(2958),i=n(1499),o=n(2634);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},6432:(e,t,n)=>{var r=n(939),i=n(7361),o=n(9095),a=n(5403),s=n(9162),u=n(2634),c=n(327);e.exports=function(e,t){return a(e)&&s(t)?u(c(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},2980:(e,t,n)=>{var r=n(6384),i=n(6556),o=n(8483),a=n(9783),s=n(3218),u=n(1704),c=n(6390);e.exports=function e(t,n,l,f,p){t!==n&&o(n,(function(o,u){if(p||(p=new r),s(o))a(t,n,u,l,e,f,p);else{var d=f?f(c(t,u),o,u+"",t,n,p):void 0;void 0===d&&(d=o),i(t,u,d)}}),u)}},9783:(e,t,n)=>{var r=n(6556),i=n(4626),o=n(7133),a=n(278),s=n(8517),u=n(5694),c=n(1469),l=n(9246),f=n(4144),p=n(3560),d=n(3218),h=n(8630),v=n(6719),y=n(6390),m=n(9881);e.exports=function(e,t,n,g,_,b,E){var w=y(e,n),S=y(t,n),T=E.get(S);if(T)r(e,n,T);else{var I=b?b(w,S,n+"",e,t,E):void 0,O=void 0===I;if(O){var x=c(S),D=!x&&f(S),A=!x&&!D&&v(S);I=S,x||D||A?c(w)?I=w:l(w)?I=a(w):D?(O=!1,I=i(S,!0)):A?(O=!1,I=o(S,!0)):I=[]:h(S)||u(S)?(I=w,u(w)?I=m(w):d(w)&&!p(w)||(I=s(S))):O=!1}O&&(E.set(S,I),_(I,S,g,b,E),E.delete(S)),r(e,n,I)}}},371:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},9152:(e,t,n)=>{var r=n(7786);e.exports=function(e){return function(t){return r(t,e)}}},5976:(e,t,n)=>{var r=n(6557),i=n(5357),o=n(61);e.exports=function(e,t){return o(i(e,t,r),e+"")}},6560:(e,t,n)=>{var r=n(5703),i=n(8777),o=n(6557),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},4259:e=>{e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},5076:(e,t,n)=>{var r=n(4140);e.exports=function(e,t){var n;return r(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}},2545:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},531:(e,t,n)=>{var r=n(2705),i=n(9932),o=n(1469),a=n(3448),s=r?r.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},7561:(e,t,n)=>{var r=n(7990),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},7518:e=>{e.exports=function(e){return function(t){return e(t)}}},7406:(e,t,n)=>{var r=n(1811),i=n(928),o=n(292),a=n(327);e.exports=function(e,t){return t=r(t,e),null==(e=o(e,t))||delete e[a(i(t))]}},7415:(e,t,n)=>{var r=n(9932);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},4757:e=>{e.exports=function(e,t){return e.has(t)}},1811:(e,t,n)=>{var r=n(1469),i=n(5403),o=n(5514),a=n(9833);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},4318:(e,t,n)=>{var r=n(1149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},4626:(e,t,n)=>{e=n.nmd(e);var r=n(5639),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},7157:(e,t,n)=>{var r=n(4318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},3147:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},419:(e,t,n)=>{var r=n(2705),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},7133:(e,t,n)=>{var r=n(4318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},278:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},8363:(e,t,n)=>{var r=n(4865),i=n(9465);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var c=t[s],l=o?o(n[c],e[c],c,n,e):void 0;void 0===l&&(l=e[c]),a?i(n,c,l):r(n,c,l)}return n}},8805:(e,t,n)=>{var r=n(8363),i=n(9551);e.exports=function(e,t){return r(e,i(e),t)}},1911:(e,t,n)=>{var r=n(8363),i=n(1442);e.exports=function(e,t){return r(e,i(e),t)}},4429:(e,t,n)=>{var r=n(5639)["__core-js_shared__"];e.exports=r},1463:(e,t,n)=>{var r=n(5976),i=n(6612);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var u=n[r];u&&e(t,u,r,a)}return t}))}},9291:(e,t,n)=>{var r=n(8612);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},5063:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}},696:(e,t,n)=>{var r=n(8630);e.exports=function(e){return r(e)?void 0:e}},8777:(e,t,n)=>{var r=n(852),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},7114:(e,t,n)=>{var r=n(8668),i=n(2908),o=n(4757);e.exports=function(e,t,n,a,s,u){var c=1&n,l=e.length,f=t.length;if(l!=f&&!(c&&f>l))return!1;var p=u.get(e),d=u.get(t);if(p&&d)return p==t&&d==e;var h=-1,v=!0,y=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++h<l;){var m=e[h],g=t[h];if(a)var _=c?a(g,m,h,t,e,u):a(m,g,h,e,t,u);if(void 0!==_){if(_)continue;v=!1;break}if(y){if(!i(t,(function(e,t){if(!o(y,t)&&(m===e||s(m,e,n,a,u)))return y.push(t)}))){v=!1;break}}else if(m!==g&&!s(m,g,n,a,u)){v=!1;break}}return u.delete(e),u.delete(t),v}},8351:(e,t,n)=>{var r=n(2705),i=n(1149),o=n(7813),a=n(7114),s=n(8776),u=n(1814),c=r?r.prototype:void 0,l=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,f,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=s;case"[object Set]":var h=1&r;if(d||(d=u),e.size!=t.size&&!h)return!1;var v=p.get(e);if(v)return v==t;r|=2,p.set(e,t);var y=a(d(e),d(t),r,c,f,p);return p.delete(e),y;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},6096:(e,t,n)=>{var r=n(8234),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var u=1&n,c=r(e),l=c.length;if(l!=r(t).length&&!u)return!1;for(var f=l;f--;){var p=c[f];if(!(u?p in t:i.call(t,p)))return!1}var d=s.get(e),h=s.get(t);if(d&&h)return d==t&&h==e;var v=!0;s.set(e,t),s.set(t,e);for(var y=u;++f<l;){var m=e[p=c[f]],g=t[p];if(o)var _=u?o(g,m,p,t,e,s):o(m,g,p,e,t,s);if(!(void 0===_?m===g||a(m,g,n,o,s):_)){v=!1;break}y||(y="constructor"==p)}if(v&&!y){var b=e.constructor,E=t.constructor;b==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(v=!1)}return s.delete(e),s.delete(t),v}},9021:(e,t,n)=>{var r=n(5564),i=n(5357),o=n(61);e.exports=function(e){return o(i(e,void 0,r),e+"")}},1957:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},8234:(e,t,n)=>{var r=n(8866),i=n(9551),o=n(3674);e.exports=function(e){return r(e,o,i)}},6904:(e,t,n)=>{var r=n(8866),i=n(1442),o=n(1704);e.exports=function(e){return r(e,o,i)}},5050:(e,t,n)=>{var r=n(7019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},1499:(e,t,n)=>{var r=n(9162),i=n(3674);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},852:(e,t,n)=>{var r=n(8458),i=n(7801);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},5924:(e,t,n)=>{var r=n(5569)(Object.getPrototypeOf,Object);e.exports=r},9607:(e,t,n)=>{var r=n(2705),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},9551:(e,t,n)=>{var r=n(4963),i=n(479),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},1442:(e,t,n)=>{var r=n(2488),i=n(5924),o=n(9551),a=n(479),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},4160:(e,t,n)=>{var r=n(8552),i=n(7071),o=n(3818),a=n(8525),s=n(577),u=n(4239),c=n(346),l="[object Map]",f="[object Promise]",p="[object Set]",d="[object WeakMap]",h="[object DataView]",v=c(r),y=c(i),m=c(o),g=c(a),_=c(s),b=u;(r&&b(new r(new ArrayBuffer(1)))!=h||i&&b(new i)!=l||o&&b(o.resolve())!=f||a&&b(new a)!=p||s&&b(new s)!=d)&&(b=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case v:return h;case y:return l;case m:return f;case g:return p;case _:return d}return t}),e.exports=b},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},222:(e,t,n)=>{var r=n(1811),i=n(5694),o=n(1469),a=n(5776),s=n(1780),u=n(327);e.exports=function(e,t,n){for(var c=-1,l=(t=r(t,e)).length,f=!1;++c<l;){var p=u(t[c]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++c!=l?f:!!(l=null==e?0:e.length)&&s(l)&&a(p,l)&&(o(e)||i(e))}},1789:(e,t,n)=>{var r=n(4536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},1327:(e,t,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},1866:(e,t,n)=>{var r=n(4536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},3824:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},9148:(e,t,n)=>{var r=n(4318),i=n(7157),o=n(3147),a=n(419),s=n(7133);e.exports=function(e,t,n){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},8517:(e,t,n)=>{var r=n(3118),i=n(5924),o=n(5726);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},7285:(e,t,n)=>{var r=n(2705),i=n(5694),o=n(1469),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},6612:(e,t,n)=>{var r=n(7813),i=n(8612),o=n(5776),a=n(3218);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},5403:(e,t,n)=>{var r=n(1469),i=n(3448),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,n)=>{var r,i=n(4429),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},9162:(e,t,n)=>{var r=n(3218);e.exports=function(e){return e==e&&!r(e)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,n)=>{var r=n(8470),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},2117:(e,t,n)=>{var r=n(8470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7529:(e,t,n)=>{var r=n(8470);e.exports=function(e){return r(this.__data__,e)>-1}},4705:(e,t,n)=>{var r=n(8470);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},4785:(e,t,n)=>{var r=n(1989),i=n(8407),o=n(7071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},1285:(e,t,n)=>{var r=n(5050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,n)=>{var r=n(5050);e.exports=function(e){return r(this,e).get(e)}},9916:(e,t,n)=>{var r=n(5050);e.exports=function(e){return r(this,e).has(e)}},5265:(e,t,n)=>{var r=n(5050);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},2634:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},4523:(e,t,n)=>{var r=n(8306);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},4536:(e,t,n)=>{var r=n(852)(Object,"create");e.exports=r},6916:(e,t,n)=>{var r=n(5569)(Object.keys,Object);e.exports=r},3498:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},1167:(e,t,n)=>{e=n.nmd(e);var r=n(1957),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},5357:(e,t,n)=>{var r=n(6874),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),u=Array(s);++a<s;)u[a]=o[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=o[a];return c[t]=n(u),r(e,this,c)}}},292:(e,t,n)=>{var r=n(7786),i=n(4259);e.exports=function(e,t){return t.length<2?e:r(e,i(t,0,-1))}},5639:(e,t,n)=>{var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},6390:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},61:(e,t,n)=>{var r=n(6560),i=n(1275)(r);e.exports=i},1275:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},7465:(e,t,n)=>{var r=n(8407);e.exports=function(){this.__data__=new r,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,n)=>{var r=n(8407),i=n(7071),o=n(3369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},2351:e=>{e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},5514:(e,t,n)=>{var r=n(4523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},327:(e,t,n)=>{var r=n(3448);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7990:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},5703:e=>{e.exports=function(e){return function(){return e}}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5564:(e,t,n)=>{var r=n(1078);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},7361:(e,t,n)=>{var r=n(7786);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},9095:(e,t,n)=>{var r=n(13),i=n(222);e.exports=function(e,t){return null!=e&&i(e,t,r)}},6557:e=>{e.exports=function(e){return e}},4721:(e,t,n)=>{var r=n(2118),i=n(8612),o=n(7037),a=n(554),s=n(2628),u=Math.max;e.exports=function(e,t,n,c){e=i(e)?e:s(e),n=n&&!c?a(n):0;var l=e.length;return n<0&&(n=u(l+n,0)),o(e)?n<=l&&e.indexOf(t,n)>-1:!!l&&r(e,t,n)>-1}},5694:(e,t,n)=>{var r=n(9454),i=n(7005),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,n)=>{var r=n(3560),i=n(1780);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},9246:(e,t,n)=>{var r=n(8612),i=n(7005);e.exports=function(e){return i(e)&&r(e)}},4144:(e,t,n)=>{e=n.nmd(e);var r=n(5639),i=n(5062),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;e.exports=u},1609:(e,t,n)=>{var r=n(280),i=n(4160),o=n(5694),a=n(1469),s=n(8612),u=n(4144),c=n(5726),l=n(6719),f=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||l(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(f.call(e,n))return!1;return!0}},3560:(e,t,n)=>{var r=n(4239),i=n(3218);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},6688:(e,t,n)=>{var r=n(5588),i=n(7518),o=n(1167),a=o&&o.isMap,s=a?i(a):r;e.exports=s},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8630:(e,t,n)=>{var r=n(4239),i=n(5924),o=n(7005),a=Function.prototype,s=Object.prototype,u=a.toString,c=s.hasOwnProperty,l=u.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==l}},2928:(e,t,n)=>{var r=n(9221),i=n(7518),o=n(1167),a=o&&o.isSet,s=a?i(a):r;e.exports=s},7037:(e,t,n)=>{var r=n(4239),i=n(1469),o=n(7005);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},3448:(e,t,n)=>{var r=n(4239),i=n(7005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},6719:(e,t,n)=>{var r=n(8749),i=n(7518),o=n(1167),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},3674:(e,t,n)=>{var r=n(4636),i=n(280),o=n(8612);e.exports=function(e){return o(e)?r(e):i(e)}},1704:(e,t,n)=>{var r=n(4636),i=n(313),o=n(8612);e.exports=function(e){return o(e)?r(e,!0):i(e)}},928:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},6486:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",u=32,c=128,l=1/0,f=9007199254740991,p=NaN,d=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],v="[object Arguments]",y="[object Array]",m="[object Boolean]",g="[object Date]",_="[object Error]",b="[object Function]",E="[object GeneratorFunction]",w="[object Map]",S="[object Number]",T="[object Object]",I="[object Promise]",O="[object RegExp]",x="[object Set]",D="[object String]",A="[object Symbol]",R="[object WeakMap]",k="[object ArrayBuffer]",C="[object DataView]",P="[object Float32Array]",N="[object Float64Array]",F="[object Int8Array]",j="[object Int16Array]",U="[object Int32Array]",M="[object Uint8Array]",L="[object Uint8ClampedArray]",B="[object Uint16Array]",q="[object Uint32Array]",V=/\b__p \+= '';/g,$=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,z=/&(?:amp|lt|gt|quot|#39);/g,Q=/[&<>"']/g,W=RegExp(z.source),Y=RegExp(Q.source),K=/<%-([\s\S]+?)%>/g,H=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,ge=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,be=/['\n\r\u2028\u2029\\]/g,Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",we="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",Te="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ie="["+Te+"]",Oe="["+Ee+"]",xe="\\d+",De="["+we+"]",Ae="[^\\ud800-\\udfff"+Te+xe+"\\u2700-\\u27bf"+we+Se+"]",Re="\\ud83c[\\udffb-\\udfff]",ke="[^\\ud800-\\udfff]",Ce="(?:\\ud83c[\\udde6-\\uddff]){2}",Pe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ne="["+Se+"]",Fe="(?:"+De+"|"+Ae+")",je="(?:"+Ne+"|"+Ae+")",Ue="(?:['’](?:d|ll|m|re|s|t|ve))?",Me="(?:['’](?:D|LL|M|RE|S|T|VE))?",Le="(?:"+Oe+"|"+Re+")?",Be="[\\ufe0e\\ufe0f]?",qe=Be+Le+"(?:\\u200d(?:"+[ke,Ce,Pe].join("|")+")"+Be+Le+")*",Ve="(?:"+["[\\u2700-\\u27bf]",Ce,Pe].join("|")+")"+qe,$e="(?:"+[ke+Oe+"?",Oe,Ce,Pe,"[\\ud800-\\udfff]"].join("|")+")",Ge=RegExp("['’]","g"),ze=RegExp(Oe,"g"),Qe=RegExp(Re+"(?="+Re+")|"+$e+qe,"g"),We=RegExp([Ne+"?"+De+"+"+Ue+"(?="+[Ie,Ne,"$"].join("|")+")",je+"+"+Me+"(?="+[Ie,Ne+Fe,"$"].join("|")+")",Ne+"?"+Fe+"+"+Ue,Ne+"+"+Me,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xe,Ve].join("|"),"g"),Ye=RegExp("[\\u200d\\ud800-\\udfff"+Ee+"\\ufe0e\\ufe0f]"),Ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,He=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Je=-1,Xe={};Xe[P]=Xe[N]=Xe[F]=Xe[j]=Xe[U]=Xe[M]=Xe[L]=Xe[B]=Xe[q]=!0,Xe[v]=Xe[y]=Xe[k]=Xe[m]=Xe[C]=Xe[g]=Xe[_]=Xe[b]=Xe[w]=Xe[S]=Xe[T]=Xe[O]=Xe[x]=Xe[D]=Xe[R]=!1;var Ze={};Ze[v]=Ze[y]=Ze[k]=Ze[C]=Ze[m]=Ze[g]=Ze[P]=Ze[N]=Ze[F]=Ze[j]=Ze[U]=Ze[w]=Ze[S]=Ze[T]=Ze[O]=Ze[x]=Ze[D]=Ze[A]=Ze[M]=Ze[L]=Ze[B]=Ze[q]=!0,Ze[_]=Ze[b]=Ze[R]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,it="object"==typeof self&&self&&self.Object===Object&&self,ot=rt||it||Function("return this")(),at=t&&!t.nodeType&&t,st=at&&e&&!e.nodeType&&e,ut=st&&st.exports===at,ct=ut&&rt.process,lt=function(){try{return st&&st.require&&st.require("util").types||ct&&ct.binding&&ct.binding("util")}catch(e){}}(),ft=lt&&lt.isArrayBuffer,pt=lt&&lt.isDate,dt=lt&&lt.isMap,ht=lt&&lt.isRegExp,vt=lt&&lt.isSet,yt=lt&&lt.isTypedArray;function mt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function gt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function _t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function bt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Et(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function wt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function St(e,t){return!(null==e||!e.length)&&Pt(e,t,0)>-1}function Tt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function It(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Ot(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function xt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function Dt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function At(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Rt=Ut("length");function kt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Ct(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Pt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Ct(e,Ft,n)}function Nt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Ft(e){return e!=e}function jt(e,t){var n=null==e?0:e.length;return n?Bt(e,t)/n:p}function Ut(e){return function(t){return null==t?i:t[e]}}function Mt(e){return function(t){return null==e?i:e[t]}}function Lt(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Bt(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function qt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Vt(e){return e?e.slice(0,sn(e)+1).replace(re,""):e}function $t(e){return function(t){return e(t)}}function Gt(e,t){return It(t,(function(t){return e[t]}))}function zt(e,t){return e.has(t)}function Qt(e,t){for(var n=-1,r=e.length;++n<r&&Pt(t,e[n],0)>-1;);return n}function Wt(e,t){for(var n=e.length;n--&&Pt(t,e[n],0)>-1;);return n}function Yt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Kt=Mt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Ht=Mt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Jt(e){return"\\"+et[e]}function Xt(e){return Ye.test(e)}function Zt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[i++]=n)}return o}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function on(e){return Xt(e)?function(e){for(var t=Qe.lastIndex=0;Qe.test(e);)++t;return t}(e):Rt(e)}function an(e){return Xt(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.split("")}(e)}function sn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var un=Mt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),cn=function e(t){var n,r=(t=null==t?ot:cn.defaults(ot.Object(),t,cn.pick(ot,He))).Array,ie=t.Date,Ee=t.Error,we=t.Function,Se=t.Math,Te=t.Object,Ie=t.RegExp,Oe=t.String,xe=t.TypeError,De=r.prototype,Ae=we.prototype,Re=Te.prototype,ke=t["__core-js_shared__"],Ce=Ae.toString,Pe=Re.hasOwnProperty,Ne=0,Fe=(n=/[^.]+$/.exec(ke&&ke.keys&&ke.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",je=Re.toString,Ue=Ce.call(Te),Me=ot._,Le=Ie("^"+Ce.call(Pe).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=ut?t.Buffer:i,qe=t.Symbol,Ve=t.Uint8Array,$e=Be?Be.allocUnsafe:i,Qe=en(Te.getPrototypeOf,Te),Ye=Te.create,et=Re.propertyIsEnumerable,rt=De.splice,it=qe?qe.isConcatSpreadable:i,at=qe?qe.iterator:i,st=qe?qe.toStringTag:i,ct=function(){try{var e=co(Te,"defineProperty");return e({},"",{}),e}catch(e){}}(),lt=t.clearTimeout!==ot.clearTimeout&&t.clearTimeout,Rt=ie&&ie.now!==ot.Date.now&&ie.now,Mt=t.setTimeout!==ot.setTimeout&&t.setTimeout,ln=Se.ceil,fn=Se.floor,pn=Te.getOwnPropertySymbols,dn=Be?Be.isBuffer:i,hn=t.isFinite,vn=De.join,yn=en(Te.keys,Te),mn=Se.max,gn=Se.min,_n=ie.now,bn=t.parseInt,En=Se.random,wn=De.reverse,Sn=co(t,"DataView"),Tn=co(t,"Map"),In=co(t,"Promise"),On=co(t,"Set"),xn=co(t,"WeakMap"),Dn=co(Te,"create"),An=xn&&new xn,Rn={},kn=Lo(Sn),Cn=Lo(Tn),Pn=Lo(In),Nn=Lo(On),Fn=Lo(xn),jn=qe?qe.prototype:i,Un=jn?jn.valueOf:i,Mn=jn?jn.toString:i;function Ln(e){if(ns(e)&&!za(e)&&!(e instanceof $n)){if(e instanceof Vn)return e;if(Pe.call(e,"__wrapped__"))return Bo(e)}return new Vn(e)}var Bn=function(){function e(){}return function(t){if(!ts(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function qn(){}function Vn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function $n(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function zn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Qn;++t<n;)this.add(e[t])}function Yn(e){var t=this.__data__=new zn(e);this.size=t.size}function Kn(e,t){var n=za(e),r=!n&&Ga(e),i=!n&&!r&&Ka(e),o=!n&&!r&&!i&&ls(e),a=n||r||i||o,s=a?qt(e.length,Oe):[],u=s.length;for(var c in e)!t&&!Pe.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||mo(c,u))||s.push(c);return s}function Hn(e){var t=e.length;return t?e[Qr(0,t-1)]:i}function Jn(e,t){return No(xi(e),ar(t,0,e.length))}function Xn(e){return No(xi(e))}function Zn(e,t,n){(n!==i&&!qa(e[t],n)||n===i&&!(t in e))&&ir(e,t,n)}function er(e,t,n){var r=e[t];Pe.call(e,t)&&qa(r,n)&&(n!==i||t in e)||ir(e,t,n)}function tr(e,t){for(var n=e.length;n--;)if(qa(e[n][0],t))return n;return-1}function nr(e,t,n,r){return fr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function rr(e,t){return e&&Di(t,Cs(t),e)}function ir(e,t,n){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var n=-1,o=t.length,a=r(o),s=null==e;++n<o;)a[n]=s?i:xs(e,t[n]);return a}function ar(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function sr(e,t,n,r,o,a){var s,u=1&t,c=2&t,l=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!ts(e))return e;var f=za(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Pe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return xi(e,s)}else{var p=po(e),d=p==b||p==E;if(Ka(e))return Ei(e,u);if(p==T||p==v||d&&!o){if(s=c||d?{}:vo(e),!u)return c?function(e,t){return Di(e,fo(e),t)}(e,function(e,t){return e&&Di(t,Ps(t),e)}(s,e)):function(e,t){return Di(e,lo(e),t)}(e,rr(s,e))}else{if(!Ze[p])return o?e:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case k:return wi(e);case m:case g:return new i(+e);case C:return function(e,t){var n=t?wi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case P:case N:case F:case j:case U:case M:case L:case B:case q:return Si(e,n);case w:return new i;case S:case D:return new i(e);case O:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case x:return new i;case A:return r=e,Un?Te(Un.call(r)):{}}}(e,p,u)}}a||(a=new Yn);var h=a.get(e);if(h)return h;a.set(e,s),ss(e)?e.forEach((function(r){s.add(sr(r,t,n,r,e,a))})):rs(e)&&e.forEach((function(r,i){s.set(i,sr(r,t,n,i,e,a))}));var y=f?i:(l?c?no:to:c?Ps:Cs)(e);return _t(y||e,(function(r,i){y&&(r=e[i=r]),er(s,i,sr(r,t,n,i,e,a))})),s}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=Te(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function cr(e,t,n){if("function"!=typeof e)throw new xe(o);return Ro((function(){e.apply(i,n)}),t)}function lr(e,t,n,r){var i=-1,o=St,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=It(t,$t(n))),r?(o=Tt,a=!1):t.length>=200&&(o=zt,a=!1,t=new Wn(t));e:for(;++i<s;){var l=e[i],f=null==n?l:n(l);if(l=r||0!==l?l:0,a&&f==f){for(var p=c;p--;)if(t[p]===f)continue e;u.push(l)}else o(t,f,r)||u.push(l)}return u}Ln.templateSettings={escape:K,evaluate:H,interpolate:J,variable:"",imports:{_:Ln}},Ln.prototype=qn.prototype,Ln.prototype.constructor=Ln,Vn.prototype=Bn(qn.prototype),Vn.prototype.constructor=Vn,$n.prototype=Bn(qn.prototype),$n.prototype.constructor=$n,Gn.prototype.clear=function(){this.__data__=Dn?Dn(null):{},this.size=0},Gn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Gn.prototype.get=function(e){var t=this.__data__;if(Dn){var n=t[e];return n===a?i:n}return Pe.call(t,e)?t[e]:i},Gn.prototype.has=function(e){var t=this.__data__;return Dn?t[e]!==i:Pe.call(t,e)},Gn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Dn&&t===i?a:t,this},zn.prototype.clear=function(){this.__data__=[],this.size=0},zn.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():rt.call(t,n,1),--this.size,0))},zn.prototype.get=function(e){var t=this.__data__,n=tr(t,e);return n<0?i:t[n][1]},zn.prototype.has=function(e){return tr(this.__data__,e)>-1},zn.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(Tn||zn),string:new Gn}},Qn.prototype.delete=function(e){var t=so(this,e).delete(e);return this.size-=t?1:0,t},Qn.prototype.get=function(e){return so(this,e).get(e)},Qn.prototype.has=function(e){return so(this,e).has(e)},Qn.prototype.set=function(e,t){var n=so(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Wn.prototype.add=Wn.prototype.push=function(e){return this.__data__.set(e,a),this},Wn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.clear=function(){this.__data__=new zn,this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Yn.prototype.get=function(e){return this.__data__.get(e)},Yn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof zn){var r=n.__data__;if(!Tn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qn(r)}return n.set(e,t),this.size=n.size,this};var fr=ki(_r),pr=ki(br,!0);function dr(e,t){var n=!0;return fr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function hr(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=t(a);if(null!=s&&(u===i?s==s&&!cs(s):n(s,u)))var u=s,c=a}return c}function vr(e,t){var n=[];return fr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function yr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=yo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?yr(s,t-1,n,r,i):Ot(i,s):r||(i[i.length]=s)}return i}var mr=Ci(),gr=Ci(!0);function _r(e,t){return e&&mr(e,t,Cs)}function br(e,t){return e&&gr(e,t,Cs)}function Er(e,t){return wt(t,(function(t){return Xa(e[t])}))}function wr(e,t){for(var n=0,r=(t=mi(t,e)).length;null!=e&&n<r;)e=e[Mo(t[n++])];return n&&n==r?e:i}function Sr(e,t,n){var r=t(e);return za(e)?r:Ot(r,n(e))}function Tr(e){return null==e?e===i?"[object Undefined]":"[object Null]":st&&st in Te(e)?function(e){var t=Pe.call(e,st),n=e[st];try{e[st]=i;var r=!0}catch(e){}var o=je.call(e);return r&&(t?e[st]=n:delete e[st]),o}(e):function(e){return je.call(e)}(e)}function Ir(e,t){return e>t}function Or(e,t){return null!=e&&Pe.call(e,t)}function xr(e,t){return null!=e&&t in Te(e)}function Dr(e,t,n){for(var o=n?Tt:St,a=e[0].length,s=e.length,u=s,c=r(s),l=1/0,f=[];u--;){var p=e[u];u&&t&&(p=It(p,$t(t))),l=gn(p.length,l),c[u]=!n&&(t||a>=120&&p.length>=120)?new Wn(u&&p):i}p=e[0];var d=-1,h=c[0];e:for(;++d<a&&f.length<l;){var v=p[d],y=t?t(v):v;if(v=n||0!==v?v:0,!(h?zt(h,y):o(f,y,n))){for(u=s;--u;){var m=c[u];if(!(m?zt(m,y):o(e[u],y,n)))continue e}h&&h.push(y),f.push(v)}}return f}function Ar(e,t,n){var r=null==(e=Oo(e,t=mi(t,e)))?e:e[Mo(Jo(t))];return null==r?i:mt(r,e,n)}function Rr(e){return ns(e)&&Tr(e)==v}function kr(e,t,n,r,o){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,n,r,o,a){var s=za(e),u=za(t),c=s?y:po(e),l=u?y:po(t),f=(c=c==v?T:c)==T,p=(l=l==v?T:l)==T,d=c==l;if(d&&Ka(e)){if(!Ka(t))return!1;s=!0,f=!1}if(d&&!f)return a||(a=new Yn),s||ls(e)?Zi(e,t,n,r,o,a):function(e,t,n,r,i,o,a){switch(n){case C:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case k:return!(e.byteLength!=t.byteLength||!o(new Ve(e),new Ve(t)));case m:case g:case S:return qa(+e,+t);case _:return e.name==t.name&&e.message==t.message;case O:case D:return e==t+"";case w:var s=Zt;case x:var u=1&r;if(s||(s=nn),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var l=Zi(s(e),s(t),r,i,o,a);return a.delete(e),l;case A:if(Un)return Un.call(e)==Un.call(t)}return!1}(e,t,c,n,r,o,a);if(!(1&n)){var h=f&&Pe.call(e,"__wrapped__"),b=p&&Pe.call(t,"__wrapped__");if(h||b){var E=h?e.value():e,I=b?t.value():t;return a||(a=new Yn),o(E,I,n,r,a)}}return!!d&&(a||(a=new Yn),function(e,t,n,r,o,a){var s=1&n,u=to(e),c=u.length;if(c!=to(t).length&&!s)return!1;for(var l=c;l--;){var f=u[l];if(!(s?f in t:Pe.call(t,f)))return!1}var p=a.get(e),d=a.get(t);if(p&&d)return p==t&&d==e;var h=!0;a.set(e,t),a.set(t,e);for(var v=s;++l<c;){var y=e[f=u[l]],m=t[f];if(r)var g=s?r(m,y,f,t,e,a):r(y,m,f,e,t,a);if(!(g===i?y===m||o(y,m,n,r,a):g)){h=!1;break}v||(v="constructor"==f)}if(h&&!v){var _=e.constructor,b=t.constructor;_==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,o,a))}(e,t,n,r,kr,o))}function Cr(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=Te(e);o--;){var u=n[o];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<a;){var c=(u=n[o])[0],l=e[c],f=u[1];if(s&&u[2]){if(l===i&&!(c in e))return!1}else{var p=new Yn;if(r)var d=r(l,f,c,e,t,p);if(!(d===i?kr(f,l,3,r,p):d))return!1}}return!0}function Pr(e){return!(!ts(e)||(t=e,Fe&&Fe in t))&&(Xa(e)?Le:ve).test(Lo(e));var t}function Nr(e){return"function"==typeof e?e:null==e?iu:"object"==typeof e?za(e)?Lr(e[0],e[1]):Mr(e):du(e)}function Fr(e){if(!wo(e))return yn(e);var t=[];for(var n in Te(e))Pe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function jr(e,t){return e<t}function Ur(e,t){var n=-1,i=Wa(e)?r(e.length):[];return fr(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function Mr(e){var t=uo(e);return 1==t.length&&t[0][2]?To(t[0][0],t[0][1]):function(n){return n===e||Cr(n,e,t)}}function Lr(e,t){return _o(e)&&So(t)?To(Mo(e),t):function(n){var r=xs(n,e);return r===i&&r===t?Ds(n,e):kr(t,r,3)}}function Br(e,t,n,r,o){e!==t&&mr(t,(function(a,s){if(o||(o=new Yn),ts(a))!function(e,t,n,r,o,a,s){var u=Do(e,n),c=Do(t,n),l=s.get(c);if(l)Zn(e,n,l);else{var f=a?a(u,c,n+"",e,t,s):i,p=f===i;if(p){var d=za(c),h=!d&&Ka(c),v=!d&&!h&&ls(c);f=c,d||h||v?za(u)?f=u:Ya(u)?f=xi(u):h?(p=!1,f=Ei(c,!0)):v?(p=!1,f=Si(c,!0)):f=[]:os(c)||Ga(c)?(f=u,Ga(u)?f=gs(u):ts(u)&&!Xa(u)||(f=vo(c))):p=!1}p&&(s.set(c,f),o(f,c,r,a,s),s.delete(c)),Zn(e,n,f)}}(e,t,s,n,Br,r,o);else{var u=r?r(Do(e,s),a,s+"",e,t,o):i;u===i&&(u=a),Zn(e,s,u)}}),Ps)}function qr(e,t){var n=e.length;if(n)return mo(t+=t<0?n:0,n)?e[t]:i}function Vr(e,t,n){t=t.length?It(t,(function(e){return za(e)?function(t){return wr(t,1===e.length?e[0]:e)}:e})):[iu];var r=-1;t=It(t,$t(ao()));var i=Ur(e,(function(e,n,i){var o=It(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var u=Ti(i[r],o[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(i)}function $r(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=wr(e,a);n(s,a)&&Jr(o,mi(a,e),s)}return o}function Gr(e,t,n,r){var i=r?Nt:Pt,o=-1,a=t.length,s=e;for(e===t&&(t=xi(t)),n&&(s=It(e,$t(n)));++o<a;)for(var u=0,c=t[o],l=n?n(c):c;(u=i(s,l,u,r))>-1;)s!==e&&rt.call(s,u,1),rt.call(e,u,1);return e}function zr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;mo(i)?rt.call(e,i,1):ci(e,i)}}return e}function Qr(e,t){return e+fn(En()*(t-e+1))}function Wr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=fn(t/2))&&(e+=e)}while(t);return n}function Yr(e,t){return ko(Io(e,t,iu),e+"")}function Kr(e){return Hn(qs(e))}function Hr(e,t){var n=qs(e);return No(n,ar(t,0,n.length))}function Jr(e,t,n,r){if(!ts(e))return e;for(var o=-1,a=(t=mi(t,e)).length,s=a-1,u=e;null!=u&&++o<a;){var c=Mo(t[o]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=s){var f=u[c];(l=r?r(f,c,u):i)===i&&(l=ts(f)?f:mo(t[o+1])?[]:{})}er(u,c,l),u=u[c]}return e}var Xr=An?function(e,t){return An.set(e,t),e}:iu,Zr=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:tu(t),writable:!0})}:iu;function ei(e){return No(qs(e))}function ti(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function ni(e,t){var n;return fr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ri(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!cs(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return ii(e,t,iu,n)}function ii(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,u=null===t,c=cs(t),l=t===i;o<a;){var f=fn((o+a)/2),p=n(e[f]),d=p!==i,h=null===p,v=p==p,y=cs(p);if(s)var m=r||v;else m=l?v&&(r||d):u?v&&d&&(r||!h):c?v&&d&&!h&&(r||!y):!h&&!y&&(r?p<=t:p<t);m?o=f+1:a=f}return gn(a,4294967294)}function oi(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!qa(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function ai(e){return"number"==typeof e?e:cs(e)?p:+e}function si(e){if("string"==typeof e)return e;if(za(e))return It(e,si)+"";if(cs(e))return Mn?Mn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ui(e,t,n){var r=-1,i=St,o=e.length,a=!0,s=[],u=s;if(n)a=!1,i=Tt;else if(o>=200){var c=t?null:Wi(e);if(c)return nn(c);a=!1,i=zt,u=new Wn}else u=t?[]:s;e:for(;++r<o;){var l=e[r],f=t?t(l):l;if(l=n||0!==l?l:0,a&&f==f){for(var p=u.length;p--;)if(u[p]===f)continue e;t&&u.push(f),s.push(l)}else i(u,f,n)||(u!==s&&u.push(f),s.push(l))}return s}function ci(e,t){return null==(e=Oo(e,t=mi(t,e)))||delete e[Mo(Jo(t))]}function li(e,t,n,r){return Jr(e,t,n(wr(e,t)),r)}function fi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ti(e,r?0:o,r?o+1:i):ti(e,r?o+1:0,r?i:o)}function pi(e,t){var n=e;return n instanceof $n&&(n=n.value()),xt(t,(function(e,t){return t.func.apply(t.thisArg,Ot([e],t.args))}),n)}function di(e,t,n){var i=e.length;if(i<2)return i?ui(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],u=-1;++u<i;)u!=o&&(a[o]=lr(a[o]||s,e[u],t,n));return ui(yr(a,1),t,n)}function hi(e,t,n){for(var r=-1,o=e.length,a=t.length,s={};++r<o;){var u=r<a?t[r]:i;n(s,e[r],u)}return s}function vi(e){return Ya(e)?e:[]}function yi(e){return"function"==typeof e?e:iu}function mi(e,t){return za(e)?e:_o(e,t)?[e]:Uo(_s(e))}var gi=Yr;function _i(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ti(e,t,n)}var bi=lt||function(e){return ot.clearTimeout(e)};function Ei(e,t){if(t)return e.slice();var n=e.length,r=$e?$e(n):new e.constructor(n);return e.copy(r),r}function wi(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function Si(e,t){var n=t?wi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ti(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=cs(e),s=t!==i,u=null===t,c=t==t,l=cs(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!l&&e<t||l&&n&&o&&!r&&!a||u&&n&&o||!s&&o||!c)return-1}return 0}function Ii(e,t,n,i){for(var o=-1,a=e.length,s=n.length,u=-1,c=t.length,l=mn(a-s,0),f=r(c+l),p=!i;++u<c;)f[u]=t[u];for(;++o<s;)(p||o<a)&&(f[n[o]]=e[o]);for(;l--;)f[u++]=e[o++];return f}function Oi(e,t,n,i){for(var o=-1,a=e.length,s=-1,u=n.length,c=-1,l=t.length,f=mn(a-u,0),p=r(f+l),d=!i;++o<f;)p[o]=e[o];for(var h=o;++c<l;)p[h+c]=t[c];for(;++s<u;)(d||o<a)&&(p[h+n[s]]=e[o++]);return p}function xi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Di(e,t,n,r){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var u=t[a],c=r?r(n[u],e[u],u,n,e):i;c===i&&(c=e[u]),o?ir(n,u,c):er(n,u,c)}return n}function Ai(e,t){return function(n,r){var i=za(n)?gt:nr,o=t?t():{};return i(n,e,ao(r,2),o)}}function Ri(e){return Yr((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&go(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=Te(t);++r<o;){var u=n[r];u&&e(t,u,r,a)}return t}))}function ki(e,t){return function(n,r){if(null==n)return n;if(!Wa(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Te(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Ci(e){return function(t,n,r){for(var i=-1,o=Te(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}function Pi(e){return function(t){var n=Xt(t=_s(t))?an(t):i,r=n?n[0]:t.charAt(0),o=n?_i(n,1).join(""):t.slice(1);return r[e]()+o}}function Ni(e){return function(t){return xt(Xs(Gs(t).replace(Ge,"")),e,"")}}function Fi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Bn(e.prototype),r=e.apply(n,t);return ts(r)?r:n}}function ji(e){return function(t,n,r){var o=Te(t);if(!Wa(t)){var a=ao(n,3);t=Cs(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-1?o[a?t[s]:s]:i}}function Ui(e){return eo((function(t){var n=t.length,r=n,a=Vn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new xe(o);if(a&&!u&&"wrapper"==io(s))var u=new Vn([],!0)}for(r=u?r:n;++r<n;){var c=io(s=t[r]),l="wrapper"==c?ro(s):i;u=l&&bo(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[io(l[0])].apply(u,l[3]):1==s.length&&bo(s)?u[c]():u.thru(s)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&za(r))return u.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Mi(e,t,n,o,a,s,u,l,f,p){var d=t&c,h=1&t,v=2&t,y=24&t,m=512&t,g=v?i:Fi(e);return function i(){for(var c=arguments.length,_=r(c),b=c;b--;)_[b]=arguments[b];if(y)var E=oo(i),w=Yt(_,E);if(o&&(_=Ii(_,o,a,y)),s&&(_=Oi(_,s,u,y)),c-=w,y&&c<p){var S=tn(_,E);return zi(e,t,Mi,i.placeholder,n,_,S,l,f,p-c)}var T=h?n:this,I=v?T[e]:e;return c=_.length,l?_=xo(_,l):m&&c>1&&_.reverse(),d&&f<c&&(_.length=f),this&&this!==ot&&this instanceof i&&(I=g||Fi(I)),I.apply(T,_)}}function Li(e,t){return function(n,r){return function(e,t,n,r){return _r(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Bi(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=si(n),r=si(r)):(n=ai(n),r=ai(r)),o=e(n,r)}return o}}function qi(e){return eo((function(t){return t=It(t,$t(ao())),Yr((function(n){var r=this;return e(t,(function(e){return mt(e,r,n)}))}))}))}function Vi(e,t){var n=(t=t===i?" ":si(t)).length;if(n<2)return n?Wr(t,e):t;var r=Wr(t,ln(e/on(t)));return Xt(t)?_i(an(r),0,e).join(""):r.slice(0,e)}function $i(e){return function(t,n,o){return o&&"number"!=typeof o&&go(t,n,o)&&(n=o=i),t=hs(t),n===i?(n=t,t=0):n=hs(n),function(e,t,n,i){for(var o=-1,a=mn(ln((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,o=o===i?t<n?1:-1:hs(o),e)}}function Gi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ms(t),n=ms(n)),e(t,n)}}function zi(e,t,n,r,o,a,s,c,l,f){var p=8&t;t|=p?u:64,4&(t&=~(p?64:u))||(t&=-4);var d=[e,t,o,p?a:i,p?s:i,p?i:a,p?i:s,c,l,f],h=n.apply(i,d);return bo(e)&&Ao(h,d),h.placeholder=r,Co(h,e,t)}function Qi(e){var t=Se[e];return function(e,n){if(e=ms(e),(n=null==n?0:gn(vs(n),292))&&hn(e)){var r=(_s(e)+"e").split("e");return+((r=(_s(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Wi=On&&1/nn(new On([,-0]))[1]==l?function(e){return new On(e)}:cu;function Yi(e){return function(t){var n=po(t);return n==w?Zt(t):n==x?rn(t):function(e,t){return It(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ki(e,t,n,a,l,f,p,d){var h=2&t;if(!h&&"function"!=typeof e)throw new xe(o);var v=a?a.length:0;if(v||(t&=-97,a=l=i),p=p===i?p:mn(vs(p),0),d=d===i?d:vs(d),v-=l?l.length:0,64&t){var y=a,m=l;a=l=i}var g=h?i:ro(e),_=[e,t,n,a,l,y,m,f,p,d];if(g&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?Ii(l,u,t[4]):u,e[4]=l?tn(e[3],s):t[4]}(u=t[5])&&(l=e[5],e[5]=l?Oi(l,u,t[6]):u,e[6]=l?tn(e[5],s):t[6]),(u=t[7])&&(e[7]=u),r&c&&(e[8]=null==e[8]?t[8]:gn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(_,g),e=_[0],t=_[1],n=_[2],a=_[3],l=_[4],!(d=_[9]=_[9]===i?h?0:e.length:mn(_[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)b=8==t||16==t?function(e,t,n){var o=Fi(e);return function a(){for(var s=arguments.length,u=r(s),c=s,l=oo(a);c--;)u[c]=arguments[c];var f=s<3&&u[0]!==l&&u[s-1]!==l?[]:tn(u,l);return(s-=f.length)<n?zi(e,t,Mi,a.placeholder,i,u,f,i,i,n-s):mt(this&&this!==ot&&this instanceof a?o:e,this,u)}}(e,t,d):t!=u&&33!=t||l.length?Mi.apply(i,_):function(e,t,n,i){var o=1&t,a=Fi(e);return function t(){for(var s=-1,u=arguments.length,c=-1,l=i.length,f=r(l+u),p=this&&this!==ot&&this instanceof t?a:e;++c<l;)f[c]=i[c];for(;u--;)f[c++]=arguments[++s];return mt(p,o?n:this,f)}}(e,t,n,a);else var b=function(e,t,n){var r=1&t,i=Fi(e);return function t(){return(this&&this!==ot&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return Co((g?Xr:Ao)(b,_),e,t)}function Hi(e,t,n,r){return e===i||qa(e,Re[n])&&!Pe.call(r,n)?t:e}function Ji(e,t,n,r,o,a){return ts(e)&&ts(t)&&(a.set(t,e),Br(e,t,i,Ji,a),a.delete(t)),e}function Xi(e){return os(e)?i:e}function Zi(e,t,n,r,o,a){var s=1&n,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var l=a.get(e),f=a.get(t);if(l&&f)return l==t&&f==e;var p=-1,d=!0,h=2&n?new Wn:i;for(a.set(e,t),a.set(t,e);++p<u;){var v=e[p],y=t[p];if(r)var m=s?r(y,v,p,t,e,a):r(v,y,p,e,t,a);if(m!==i){if(m)continue;d=!1;break}if(h){if(!At(t,(function(e,t){if(!zt(h,t)&&(v===e||o(v,e,n,r,a)))return h.push(t)}))){d=!1;break}}else if(v!==y&&!o(v,y,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function eo(e){return ko(Io(e,i,Qo),e+"")}function to(e){return Sr(e,Cs,lo)}function no(e){return Sr(e,Ps,fo)}var ro=An?function(e){return An.get(e)}:cu;function io(e){for(var t=e.name+"",n=Rn[t],r=Pe.call(Rn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function oo(e){return(Pe.call(Ln,"placeholder")?Ln:e).placeholder}function ao(){var e=Ln.iteratee||ou;return e=e===ou?Nr:e,arguments.length?e(arguments[0],arguments[1]):e}function so(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function uo(e){for(var t=Cs(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,So(i)]}return t}function co(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Pr(n)?n:i}var lo=pn?function(e){return null==e?[]:(e=Te(e),wt(pn(e),(function(t){return et.call(e,t)})))}:yu,fo=pn?function(e){for(var t=[];e;)Ot(t,lo(e)),e=Qe(e);return t}:yu,po=Tr;function ho(e,t,n){for(var r=-1,i=(t=mi(t,e)).length,o=!1;++r<i;){var a=Mo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&es(i)&&mo(a,i)&&(za(e)||Ga(e))}function vo(e){return"function"!=typeof e.constructor||wo(e)?{}:Bn(Qe(e))}function yo(e){return za(e)||Ga(e)||!!(it&&e&&e[it])}function mo(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&me.test(e))&&e>-1&&e%1==0&&e<t}function go(e,t,n){if(!ts(n))return!1;var r=typeof t;return!!("number"==r?Wa(n)&&mo(t,n.length):"string"==r&&t in n)&&qa(n[t],e)}function _o(e,t){if(za(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cs(e))||Z.test(e)||!X.test(e)||null!=t&&e in Te(t)}function bo(e){var t=io(e),n=Ln[t];if("function"!=typeof n||!(t in $n.prototype))return!1;if(e===n)return!0;var r=ro(n);return!!r&&e===r[0]}(Sn&&po(new Sn(new ArrayBuffer(1)))!=C||Tn&&po(new Tn)!=w||In&&po(In.resolve())!=I||On&&po(new On)!=x||xn&&po(new xn)!=R)&&(po=function(e){var t=Tr(e),n=t==T?e.constructor:i,r=n?Lo(n):"";if(r)switch(r){case kn:return C;case Cn:return w;case Pn:return I;case Nn:return x;case Fn:return R}return t});var Eo=ke?Xa:mu;function wo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Re)}function So(e){return e==e&&!ts(e)}function To(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in Te(n))}}function Io(e,t,n){return t=mn(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=mn(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var u=r(t+1);++o<t;)u[o]=i[o];return u[t]=n(s),mt(e,this,u)}}function Oo(e,t){return t.length<2?e:wr(e,ti(t,0,-1))}function xo(e,t){for(var n=e.length,r=gn(t.length,n),o=xi(e);r--;){var a=t[r];e[r]=mo(a,n)?o[a]:i}return e}function Do(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ao=Po(Xr),Ro=Mt||function(e,t){return ot.setTimeout(e,t)},ko=Po(Zr);function Co(e,t,n){var r=t+"";return ko(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return _t(h,(function(n){var r="_."+n[0];t&n[1]&&!St(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Po(e){var t=0,n=0;return function(){var r=_n(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function No(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=Qr(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Fo,jo,Uo=(Fo=Fa((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,i){t.push(r?i.replace(le,"$1"):n||e)})),t}),(function(e){return 500===jo.size&&jo.clear(),e})),jo=Fo.cache,Fo);function Mo(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Lo(e){if(null!=e){try{return Ce.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Bo(e){if(e instanceof $n)return e.clone();var t=new Vn(e.__wrapped__,e.__chain__);return t.__actions__=xi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var qo=Yr((function(e,t){return Ya(e)?lr(e,yr(t,1,Ya,!0)):[]})),Vo=Yr((function(e,t){var n=Jo(t);return Ya(n)&&(n=i),Ya(e)?lr(e,yr(t,1,Ya,!0),ao(n,2)):[]})),$o=Yr((function(e,t){var n=Jo(t);return Ya(n)&&(n=i),Ya(e)?lr(e,yr(t,1,Ya,!0),i,n):[]}));function Go(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=mn(r+i,0)),Ct(e,ao(t,3),i)}function zo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=vs(n),o=n<0?mn(r+o,0):gn(o,r-1)),Ct(e,ao(t,3),o,!0)}function Qo(e){return null!=e&&e.length?yr(e,1):[]}function Wo(e){return e&&e.length?e[0]:i}var Yo=Yr((function(e){var t=It(e,vi);return t.length&&t[0]===e[0]?Dr(t):[]})),Ko=Yr((function(e){var t=Jo(e),n=It(e,vi);return t===Jo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Dr(n,ao(t,2)):[]})),Ho=Yr((function(e){var t=Jo(e),n=It(e,vi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Dr(n,i,t):[]}));function Jo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Xo=Yr(Zo);function Zo(e,t){return e&&e.length&&t&&t.length?Gr(e,t):e}var ea=eo((function(e,t){var n=null==e?0:e.length,r=or(e,t);return zr(e,It(t,(function(e){return mo(e,n)?+e:e})).sort(Ti)),r}));function ta(e){return null==e?e:wn.call(e)}var na=Yr((function(e){return ui(yr(e,1,Ya,!0))})),ra=Yr((function(e){var t=Jo(e);return Ya(t)&&(t=i),ui(yr(e,1,Ya,!0),ao(t,2))})),ia=Yr((function(e){var t=Jo(e);return t="function"==typeof t?t:i,ui(yr(e,1,Ya,!0),i,t)}));function oa(e){if(!e||!e.length)return[];var t=0;return e=wt(e,(function(e){if(Ya(e))return t=mn(e.length,t),!0})),qt(t,(function(t){return It(e,Ut(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=oa(e);return null==t?n:It(n,(function(e){return mt(t,i,e)}))}var sa=Yr((function(e,t){return Ya(e)?lr(e,t):[]})),ua=Yr((function(e){return di(wt(e,Ya))})),ca=Yr((function(e){var t=Jo(e);return Ya(t)&&(t=i),di(wt(e,Ya),ao(t,2))})),la=Yr((function(e){var t=Jo(e);return t="function"==typeof t?t:i,di(wt(e,Ya),i,t)})),fa=Yr(oa),pa=Yr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,aa(e,n)}));function da(e){var t=Ln(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var va=eo((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof $n&&mo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ha,args:[o],thisArg:i}),new Vn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)})),ya=Ai((function(e,t,n){Pe.call(e,n)?++e[n]:ir(e,n,1)})),ma=ji(Go),ga=ji(zo);function _a(e,t){return(za(e)?_t:fr)(e,ao(t,3))}function ba(e,t){return(za(e)?bt:pr)(e,ao(t,3))}var Ea=Ai((function(e,t,n){Pe.call(e,n)?e[n].push(t):ir(e,n,[t])})),wa=Yr((function(e,t,n){var i=-1,o="function"==typeof t,a=Wa(e)?r(e.length):[];return fr(e,(function(e){a[++i]=o?mt(t,e,n):Ar(e,t,n)})),a})),Sa=Ai((function(e,t,n){ir(e,n,t)}));function Ta(e,t){return(za(e)?It:Ur)(e,ao(t,3))}var Ia=Ai((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Oa=Yr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&go(e,t[0],t[1])?t=[]:n>2&&go(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,yr(t,1),[])})),xa=Rt||function(){return ot.Date.now()};function Da(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ki(e,c,i,i,i,i,t)}function Aa(e,t){var n;if("function"!=typeof t)throw new xe(o);return e=vs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Ra=Yr((function(e,t,n){var r=1;if(n.length){var i=tn(n,oo(Ra));r|=u}return Ki(e,r,t,n,i)})),ka=Yr((function(e,t,n){var r=3;if(n.length){var i=tn(n,oo(ka));r|=u}return Ki(t,r,e,n,i)}));function Ca(e,t,n){var r,a,s,u,c,l,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new xe(o);function v(t){var n=r,o=a;return r=a=i,f=t,u=e.apply(o,n)}function y(e){return f=e,c=Ro(g,t),p?v(e):u}function m(e){var n=e-l;return l===i||n>=t||n<0||d&&e-f>=s}function g(){var e=xa();if(m(e))return _(e);c=Ro(g,function(e){var n=t-(e-l);return d?gn(n,s-(e-f)):n}(e))}function _(e){return c=i,h&&r?v(e):(r=a=i,u)}function b(){var e=xa(),n=m(e);if(r=arguments,a=this,l=e,n){if(c===i)return y(l);if(d)return bi(c),c=Ro(g,t),v(l)}return c===i&&(c=Ro(g,t)),u}return t=ms(t)||0,ts(n)&&(p=!!n.leading,s=(d="maxWait"in n)?mn(ms(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),b.cancel=function(){c!==i&&bi(c),f=0,r=l=a=c=i},b.flush=function(){return c===i?u:_(xa())},b}var Pa=Yr((function(e,t){return cr(e,1,t)})),Na=Yr((function(e,t,n){return cr(e,ms(t)||0,n)}));function Fa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new xe(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Fa.Cache||Qn),n}function ja(e){if("function"!=typeof e)throw new xe(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Fa.Cache=Qn;var Ua=gi((function(e,t){var n=(t=1==t.length&&za(t[0])?It(t[0],$t(ao())):It(yr(t,1),$t(ao()))).length;return Yr((function(r){for(var i=-1,o=gn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return mt(e,this,r)}))})),Ma=Yr((function(e,t){var n=tn(t,oo(Ma));return Ki(e,u,i,t,n)})),La=Yr((function(e,t){var n=tn(t,oo(La));return Ki(e,64,i,t,n)})),Ba=eo((function(e,t){return Ki(e,256,i,i,i,t)}));function qa(e,t){return e===t||e!=e&&t!=t}var Va=Gi(Ir),$a=Gi((function(e,t){return e>=t})),Ga=Rr(function(){return arguments}())?Rr:function(e){return ns(e)&&Pe.call(e,"callee")&&!et.call(e,"callee")},za=r.isArray,Qa=ft?$t(ft):function(e){return ns(e)&&Tr(e)==k};function Wa(e){return null!=e&&es(e.length)&&!Xa(e)}function Ya(e){return ns(e)&&Wa(e)}var Ka=dn||mu,Ha=pt?$t(pt):function(e){return ns(e)&&Tr(e)==g};function Ja(e){if(!ns(e))return!1;var t=Tr(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!os(e)}function Xa(e){if(!ts(e))return!1;var t=Tr(e);return t==b||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Za(e){return"number"==typeof e&&e==vs(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var rs=dt?$t(dt):function(e){return ns(e)&&po(e)==w};function is(e){return"number"==typeof e||ns(e)&&Tr(e)==S}function os(e){if(!ns(e)||Tr(e)!=T)return!1;var t=Qe(e);if(null===t)return!0;var n=Pe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ce.call(n)==Ue}var as=ht?$t(ht):function(e){return ns(e)&&Tr(e)==O},ss=vt?$t(vt):function(e){return ns(e)&&po(e)==x};function us(e){return"string"==typeof e||!za(e)&&ns(e)&&Tr(e)==D}function cs(e){return"symbol"==typeof e||ns(e)&&Tr(e)==A}var ls=yt?$t(yt):function(e){return ns(e)&&es(e.length)&&!!Xe[Tr(e)]},fs=Gi(jr),ps=Gi((function(e,t){return e<=t}));function ds(e){if(!e)return[];if(Wa(e))return us(e)?an(e):xi(e);if(at&&e[at])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[at]());var t=po(e);return(t==w?Zt:t==x?nn:qs)(e)}function hs(e){return e?(e=ms(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function vs(e){var t=hs(e),n=t%1;return t==t?n?t-n:t:0}function ys(e){return e?ar(vs(e),0,d):0}function ms(e){if("number"==typeof e)return e;if(cs(e))return p;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Vt(e);var n=he.test(e);return n||ye.test(e)?nt(e.slice(2),n?2:8):de.test(e)?p:+e}function gs(e){return Di(e,Ps(e))}function _s(e){return null==e?"":si(e)}var bs=Ri((function(e,t){if(wo(t)||Wa(t))Di(t,Cs(t),e);else for(var n in t)Pe.call(t,n)&&er(e,n,t[n])})),Es=Ri((function(e,t){Di(t,Ps(t),e)})),ws=Ri((function(e,t,n,r){Di(t,Ps(t),e,r)})),Ss=Ri((function(e,t,n,r){Di(t,Cs(t),e,r)})),Ts=eo(or),Is=Yr((function(e,t){e=Te(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&go(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],s=Ps(a),u=-1,c=s.length;++u<c;){var l=s[u],f=e[l];(f===i||qa(f,Re[l])&&!Pe.call(e,l))&&(e[l]=a[l])}return e})),Os=Yr((function(e){return e.push(i,Ji),mt(Fs,i,e)}));function xs(e,t,n){var r=null==e?i:wr(e,t);return r===i?n:r}function Ds(e,t){return null!=e&&ho(e,t,xr)}var As=Li((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),e[t]=n}),tu(iu)),Rs=Li((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),Pe.call(e,t)?e[t].push(n):e[t]=[n]}),ao),ks=Yr(Ar);function Cs(e){return Wa(e)?Kn(e):Fr(e)}function Ps(e){return Wa(e)?Kn(e,!0):function(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in Te(e))t.push(n);return t}(e);var t=wo(e),n=[];for(var r in e)("constructor"!=r||!t&&Pe.call(e,r))&&n.push(r);return n}(e)}var Ns=Ri((function(e,t,n){Br(e,t,n)})),Fs=Ri((function(e,t,n,r){Br(e,t,n,r)})),js=eo((function(e,t){var n={};if(null==e)return n;var r=!1;t=It(t,(function(t){return t=mi(t,e),r||(r=t.length>1),t})),Di(e,no(e),n),r&&(n=sr(n,7,Xi));for(var i=t.length;i--;)ci(n,t[i]);return n})),Us=eo((function(e,t){return null==e?{}:function(e,t){return $r(e,t,(function(t,n){return Ds(e,n)}))}(e,t)}));function Ms(e,t){if(null==e)return{};var n=It(no(e),(function(e){return[e]}));return t=ao(t),$r(e,n,(function(e,n){return t(e,n[0])}))}var Ls=Yi(Cs),Bs=Yi(Ps);function qs(e){return null==e?[]:Gt(e,Cs(e))}var Vs=Ni((function(e,t,n){return t=t.toLowerCase(),e+(n?$s(t):t)}));function $s(e){return Js(_s(e).toLowerCase())}function Gs(e){return(e=_s(e))&&e.replace(ge,Kt).replace(ze,"")}var zs=Ni((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Qs=Ni((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ws=Pi("toLowerCase"),Ys=Ni((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ks=Ni((function(e,t,n){return e+(n?" ":"")+Js(t)})),Hs=Ni((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Js=Pi("toUpperCase");function Xs(e,t,n){return e=_s(e),(t=n?i:t)===i?function(e){return Ke.test(e)}(e)?function(e){return e.match(We)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Zs=Yr((function(e,t){try{return mt(e,i,t)}catch(e){return Ja(e)?e:new Ee(e)}})),eu=eo((function(e,t){return _t(t,(function(t){t=Mo(t),ir(e,t,Ra(e[t],e))})),e}));function tu(e){return function(){return e}}var nu=Ui(),ru=Ui(!0);function iu(e){return e}function ou(e){return Nr("function"==typeof e?e:sr(e,1))}var au=Yr((function(e,t){return function(n){return Ar(n,e,t)}})),su=Yr((function(e,t){return function(n){return Ar(e,n,t)}}));function uu(e,t,n){var r=Cs(t),i=Er(t,r);null!=n||ts(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Er(t,Cs(t)));var o=!(ts(n)&&"chain"in n&&!n.chain),a=Xa(e);return _t(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=xi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ot([this.value()],arguments))})})),e}function cu(){}var lu=qi(It),fu=qi(Et),pu=qi(At);function du(e){return _o(e)?Ut(Mo(e)):function(e){return function(t){return wr(t,e)}}(e)}var hu=$i(),vu=$i(!0);function yu(){return[]}function mu(){return!1}var gu,_u=Bi((function(e,t){return e+t}),0),bu=Qi("ceil"),Eu=Bi((function(e,t){return e/t}),1),wu=Qi("floor"),Su=Bi((function(e,t){return e*t}),1),Tu=Qi("round"),Iu=Bi((function(e,t){return e-t}),0);return Ln.after=function(e,t){if("function"!=typeof t)throw new xe(o);return e=vs(e),function(){if(--e<1)return t.apply(this,arguments)}},Ln.ary=Da,Ln.assign=bs,Ln.assignIn=Es,Ln.assignInWith=ws,Ln.assignWith=Ss,Ln.at=Ts,Ln.before=Aa,Ln.bind=Ra,Ln.bindAll=eu,Ln.bindKey=ka,Ln.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return za(e)?e:[e]},Ln.chain=da,Ln.chunk=function(e,t,n){t=(n?go(e,t,n):t===i)?1:mn(vs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,u=r(ln(o/t));a<o;)u[s++]=ti(e,a,a+=t);return u},Ln.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Ln.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Ot(za(n)?xi(n):[n],yr(t,1))},Ln.cond=function(e){var t=null==e?0:e.length,n=ao();return e=t?It(e,(function(e){if("function"!=typeof e[1])throw new xe(o);return[n(e[0]),e[1]]})):[],Yr((function(n){for(var r=-1;++r<t;){var i=e[r];if(mt(i[0],this,n))return mt(i[1],this,n)}}))},Ln.conforms=function(e){return function(e){var t=Cs(e);return function(n){return ur(n,e,t)}}(sr(e,1))},Ln.constant=tu,Ln.countBy=ya,Ln.create=function(e,t){var n=Bn(e);return null==t?n:rr(n,t)},Ln.curry=function e(t,n,r){var o=Ki(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Ln.curryRight=function e(t,n,r){var o=Ki(t,16,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Ln.debounce=Ca,Ln.defaults=Is,Ln.defaultsDeep=Os,Ln.defer=Pa,Ln.delay=Na,Ln.difference=qo,Ln.differenceBy=Vo,Ln.differenceWith=$o,Ln.drop=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,(t=n||t===i?1:vs(t))<0?0:t,r):[]},Ln.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,0,(t=r-(t=n||t===i?1:vs(t)))<0?0:t):[]},Ln.dropRightWhile=function(e,t){return e&&e.length?fi(e,ao(t,3),!0,!0):[]},Ln.dropWhile=function(e,t){return e&&e.length?fi(e,ao(t,3),!0):[]},Ln.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&go(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=vs(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:vs(r))<0&&(r+=o),r=n>r?0:ys(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Ln.filter=function(e,t){return(za(e)?wt:vr)(e,ao(t,3))},Ln.flatMap=function(e,t){return yr(Ta(e,t),1)},Ln.flatMapDeep=function(e,t){return yr(Ta(e,t),l)},Ln.flatMapDepth=function(e,t,n){return n=n===i?1:vs(n),yr(Ta(e,t),n)},Ln.flatten=Qo,Ln.flattenDeep=function(e){return null!=e&&e.length?yr(e,l):[]},Ln.flattenDepth=function(e,t){return null!=e&&e.length?yr(e,t=t===i?1:vs(t)):[]},Ln.flip=function(e){return Ki(e,512)},Ln.flow=nu,Ln.flowRight=ru,Ln.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Ln.functions=function(e){return null==e?[]:Er(e,Cs(e))},Ln.functionsIn=function(e){return null==e?[]:Er(e,Ps(e))},Ln.groupBy=Ea,Ln.initial=function(e){return null!=e&&e.length?ti(e,0,-1):[]},Ln.intersection=Yo,Ln.intersectionBy=Ko,Ln.intersectionWith=Ho,Ln.invert=As,Ln.invertBy=Rs,Ln.invokeMap=wa,Ln.iteratee=ou,Ln.keyBy=Sa,Ln.keys=Cs,Ln.keysIn=Ps,Ln.map=Ta,Ln.mapKeys=function(e,t){var n={};return t=ao(t,3),_r(e,(function(e,r,i){ir(n,t(e,r,i),e)})),n},Ln.mapValues=function(e,t){var n={};return t=ao(t,3),_r(e,(function(e,r,i){ir(n,r,t(e,r,i))})),n},Ln.matches=function(e){return Mr(sr(e,1))},Ln.matchesProperty=function(e,t){return Lr(e,sr(t,1))},Ln.memoize=Fa,Ln.merge=Ns,Ln.mergeWith=Fs,Ln.method=au,Ln.methodOf=su,Ln.mixin=uu,Ln.negate=ja,Ln.nthArg=function(e){return e=vs(e),Yr((function(t){return qr(t,e)}))},Ln.omit=js,Ln.omitBy=function(e,t){return Ms(e,ja(ao(t)))},Ln.once=function(e){return Aa(2,e)},Ln.orderBy=function(e,t,n,r){return null==e?[]:(za(t)||(t=null==t?[]:[t]),za(n=r?i:n)||(n=null==n?[]:[n]),Vr(e,t,n))},Ln.over=lu,Ln.overArgs=Ua,Ln.overEvery=fu,Ln.overSome=pu,Ln.partial=Ma,Ln.partialRight=La,Ln.partition=Ia,Ln.pick=Us,Ln.pickBy=Ms,Ln.property=du,Ln.propertyOf=function(e){return function(t){return null==e?i:wr(e,t)}},Ln.pull=Xo,Ln.pullAll=Zo,Ln.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,ao(n,2)):e},Ln.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,i,n):e},Ln.pullAt=ea,Ln.range=hu,Ln.rangeRight=vu,Ln.rearg=Ba,Ln.reject=function(e,t){return(za(e)?wt:vr)(e,ja(ao(t,3)))},Ln.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=ao(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return zr(e,i),n},Ln.rest=function(e,t){if("function"!=typeof e)throw new xe(o);return Yr(e,t=t===i?t:vs(t))},Ln.reverse=ta,Ln.sampleSize=function(e,t,n){return t=(n?go(e,t,n):t===i)?1:vs(t),(za(e)?Jn:Hr)(e,t)},Ln.set=function(e,t,n){return null==e?e:Jr(e,t,n)},Ln.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Jr(e,t,n,r)},Ln.shuffle=function(e){return(za(e)?Xn:ei)(e)},Ln.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&go(e,t,n)?(t=0,n=r):(t=null==t?0:vs(t),n=n===i?r:vs(n)),ti(e,t,n)):[]},Ln.sortBy=Oa,Ln.sortedUniq=function(e){return e&&e.length?oi(e):[]},Ln.sortedUniqBy=function(e,t){return e&&e.length?oi(e,ao(t,2)):[]},Ln.split=function(e,t,n){return n&&"number"!=typeof n&&go(e,t,n)&&(t=n=i),(n=n===i?d:n>>>0)?(e=_s(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=si(t))&&Xt(e)?_i(an(e),0,n):e.split(t,n):[]},Ln.spread=function(e,t){if("function"!=typeof e)throw new xe(o);return t=null==t?0:mn(vs(t),0),Yr((function(n){var r=n[t],i=_i(n,0,t);return r&&Ot(i,r),mt(e,this,i)}))},Ln.tail=function(e){var t=null==e?0:e.length;return t?ti(e,1,t):[]},Ln.take=function(e,t,n){return e&&e.length?ti(e,0,(t=n||t===i?1:vs(t))<0?0:t):[]},Ln.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,(t=r-(t=n||t===i?1:vs(t)))<0?0:t,r):[]},Ln.takeRightWhile=function(e,t){return e&&e.length?fi(e,ao(t,3),!1,!0):[]},Ln.takeWhile=function(e,t){return e&&e.length?fi(e,ao(t,3)):[]},Ln.tap=function(e,t){return t(e),e},Ln.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new xe(o);return ts(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ca(e,t,{leading:r,maxWait:t,trailing:i})},Ln.thru=ha,Ln.toArray=ds,Ln.toPairs=Ls,Ln.toPairsIn=Bs,Ln.toPath=function(e){return za(e)?It(e,Mo):cs(e)?[e]:xi(Uo(_s(e)))},Ln.toPlainObject=gs,Ln.transform=function(e,t,n){var r=za(e),i=r||Ka(e)||ls(e);if(t=ao(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ts(e)&&Xa(o)?Bn(Qe(e)):{}}return(i?_t:_r)(e,(function(e,r,i){return t(n,e,r,i)})),n},Ln.unary=function(e){return Da(e,1)},Ln.union=na,Ln.unionBy=ra,Ln.unionWith=ia,Ln.uniq=function(e){return e&&e.length?ui(e):[]},Ln.uniqBy=function(e,t){return e&&e.length?ui(e,ao(t,2)):[]},Ln.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ui(e,i,t):[]},Ln.unset=function(e,t){return null==e||ci(e,t)},Ln.unzip=oa,Ln.unzipWith=aa,Ln.update=function(e,t,n){return null==e?e:li(e,t,yi(n))},Ln.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:li(e,t,yi(n),r)},Ln.values=qs,Ln.valuesIn=function(e){return null==e?[]:Gt(e,Ps(e))},Ln.without=sa,Ln.words=Xs,Ln.wrap=function(e,t){return Ma(yi(t),e)},Ln.xor=ua,Ln.xorBy=ca,Ln.xorWith=la,Ln.zip=fa,Ln.zipObject=function(e,t){return hi(e||[],t||[],er)},Ln.zipObjectDeep=function(e,t){return hi(e||[],t||[],Jr)},Ln.zipWith=pa,Ln.entries=Ls,Ln.entriesIn=Bs,Ln.extend=Es,Ln.extendWith=ws,uu(Ln,Ln),Ln.add=_u,Ln.attempt=Zs,Ln.camelCase=Vs,Ln.capitalize=$s,Ln.ceil=bu,Ln.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ms(n))==n?n:0),t!==i&&(t=(t=ms(t))==t?t:0),ar(ms(e),t,n)},Ln.clone=function(e){return sr(e,4)},Ln.cloneDeep=function(e){return sr(e,5)},Ln.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:i)},Ln.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:i)},Ln.conformsTo=function(e,t){return null==t||ur(e,t,Cs(t))},Ln.deburr=Gs,Ln.defaultTo=function(e,t){return null==e||e!=e?t:e},Ln.divide=Eu,Ln.endsWith=function(e,t,n){e=_s(e),t=si(t);var r=e.length,o=n=n===i?r:ar(vs(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Ln.eq=qa,Ln.escape=function(e){return(e=_s(e))&&Y.test(e)?e.replace(Q,Ht):e},Ln.escapeRegExp=function(e){return(e=_s(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Ln.every=function(e,t,n){var r=za(e)?Et:dr;return n&&go(e,t,n)&&(t=i),r(e,ao(t,3))},Ln.find=ma,Ln.findIndex=Go,Ln.findKey=function(e,t){return kt(e,ao(t,3),_r)},Ln.findLast=ga,Ln.findLastIndex=zo,Ln.findLastKey=function(e,t){return kt(e,ao(t,3),br)},Ln.floor=wu,Ln.forEach=_a,Ln.forEachRight=ba,Ln.forIn=function(e,t){return null==e?e:mr(e,ao(t,3),Ps)},Ln.forInRight=function(e,t){return null==e?e:gr(e,ao(t,3),Ps)},Ln.forOwn=function(e,t){return e&&_r(e,ao(t,3))},Ln.forOwnRight=function(e,t){return e&&br(e,ao(t,3))},Ln.get=xs,Ln.gt=Va,Ln.gte=$a,Ln.has=function(e,t){return null!=e&&ho(e,t,Or)},Ln.hasIn=Ds,Ln.head=Wo,Ln.identity=iu,Ln.includes=function(e,t,n,r){e=Wa(e)?e:qs(e),n=n&&!r?vs(n):0;var i=e.length;return n<0&&(n=mn(i+n,0)),us(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Pt(e,t,n)>-1},Ln.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=mn(r+i,0)),Pt(e,t,i)},Ln.inRange=function(e,t,n){return t=hs(t),n===i?(n=t,t=0):n=hs(n),function(e,t,n){return e>=gn(t,n)&&e<mn(t,n)}(e=ms(e),t,n)},Ln.invoke=ks,Ln.isArguments=Ga,Ln.isArray=za,Ln.isArrayBuffer=Qa,Ln.isArrayLike=Wa,Ln.isArrayLikeObject=Ya,Ln.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Tr(e)==m},Ln.isBuffer=Ka,Ln.isDate=Ha,Ln.isElement=function(e){return ns(e)&&1===e.nodeType&&!os(e)},Ln.isEmpty=function(e){if(null==e)return!0;if(Wa(e)&&(za(e)||"string"==typeof e||"function"==typeof e.splice||Ka(e)||ls(e)||Ga(e)))return!e.length;var t=po(e);if(t==w||t==x)return!e.size;if(wo(e))return!Fr(e).length;for(var n in e)if(Pe.call(e,n))return!1;return!0},Ln.isEqual=function(e,t){return kr(e,t)},Ln.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?kr(e,t,i,n):!!r},Ln.isError=Ja,Ln.isFinite=function(e){return"number"==typeof e&&hn(e)},Ln.isFunction=Xa,Ln.isInteger=Za,Ln.isLength=es,Ln.isMap=rs,Ln.isMatch=function(e,t){return e===t||Cr(e,t,uo(t))},Ln.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Cr(e,t,uo(t),n)},Ln.isNaN=function(e){return is(e)&&e!=+e},Ln.isNative=function(e){if(Eo(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pr(e)},Ln.isNil=function(e){return null==e},Ln.isNull=function(e){return null===e},Ln.isNumber=is,Ln.isObject=ts,Ln.isObjectLike=ns,Ln.isPlainObject=os,Ln.isRegExp=as,Ln.isSafeInteger=function(e){return Za(e)&&e>=-9007199254740991&&e<=f},Ln.isSet=ss,Ln.isString=us,Ln.isSymbol=cs,Ln.isTypedArray=ls,Ln.isUndefined=function(e){return e===i},Ln.isWeakMap=function(e){return ns(e)&&po(e)==R},Ln.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Tr(e)},Ln.join=function(e,t){return null==e?"":vn.call(e,t)},Ln.kebabCase=zs,Ln.last=Jo,Ln.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=vs(n))<0?mn(r+o,0):gn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Ct(e,Ft,o,!0)},Ln.lowerCase=Qs,Ln.lowerFirst=Ws,Ln.lt=fs,Ln.lte=ps,Ln.max=function(e){return e&&e.length?hr(e,iu,Ir):i},Ln.maxBy=function(e,t){return e&&e.length?hr(e,ao(t,2),Ir):i},Ln.mean=function(e){return jt(e,iu)},Ln.meanBy=function(e,t){return jt(e,ao(t,2))},Ln.min=function(e){return e&&e.length?hr(e,iu,jr):i},Ln.minBy=function(e,t){return e&&e.length?hr(e,ao(t,2),jr):i},Ln.stubArray=yu,Ln.stubFalse=mu,Ln.stubObject=function(){return{}},Ln.stubString=function(){return""},Ln.stubTrue=function(){return!0},Ln.multiply=Su,Ln.nth=function(e,t){return e&&e.length?qr(e,vs(t)):i},Ln.noConflict=function(){return ot._===this&&(ot._=Me),this},Ln.noop=cu,Ln.now=xa,Ln.pad=function(e,t,n){e=_s(e);var r=(t=vs(t))?on(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Vi(fn(i),n)+e+Vi(ln(i),n)},Ln.padEnd=function(e,t,n){e=_s(e);var r=(t=vs(t))?on(e):0;return t&&r<t?e+Vi(t-r,n):e},Ln.padStart=function(e,t,n){e=_s(e);var r=(t=vs(t))?on(e):0;return t&&r<t?Vi(t-r,n)+e:e},Ln.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(_s(e).replace(re,""),t||0)},Ln.random=function(e,t,n){if(n&&"boolean"!=typeof n&&go(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=hs(e),t===i?(t=e,e=0):t=hs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=En();return gn(e+o*(t-e+tt("1e-"+((o+"").length-1))),t)}return Qr(e,t)},Ln.reduce=function(e,t,n){var r=za(e)?xt:Lt,i=arguments.length<3;return r(e,ao(t,4),n,i,fr)},Ln.reduceRight=function(e,t,n){var r=za(e)?Dt:Lt,i=arguments.length<3;return r(e,ao(t,4),n,i,pr)},Ln.repeat=function(e,t,n){return t=(n?go(e,t,n):t===i)?1:vs(t),Wr(_s(e),t)},Ln.replace=function(){var e=arguments,t=_s(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Ln.result=function(e,t,n){var r=-1,o=(t=mi(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[Mo(t[r])];a===i&&(r=o,a=n),e=Xa(a)?a.call(e):a}return e},Ln.round=Tu,Ln.runInContext=e,Ln.sample=function(e){return(za(e)?Hn:Kr)(e)},Ln.size=function(e){if(null==e)return 0;if(Wa(e))return us(e)?on(e):e.length;var t=po(e);return t==w||t==x?e.size:Fr(e).length},Ln.snakeCase=Ys,Ln.some=function(e,t,n){var r=za(e)?At:ni;return n&&go(e,t,n)&&(t=i),r(e,ao(t,3))},Ln.sortedIndex=function(e,t){return ri(e,t)},Ln.sortedIndexBy=function(e,t,n){return ii(e,t,ao(n,2))},Ln.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ri(e,t);if(r<n&&qa(e[r],t))return r}return-1},Ln.sortedLastIndex=function(e,t){return ri(e,t,!0)},Ln.sortedLastIndexBy=function(e,t,n){return ii(e,t,ao(n,2),!0)},Ln.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ri(e,t,!0)-1;if(qa(e[n],t))return n}return-1},Ln.startCase=Ks,Ln.startsWith=function(e,t,n){return e=_s(e),n=null==n?0:ar(vs(n),0,e.length),t=si(t),e.slice(n,n+t.length)==t},Ln.subtract=Iu,Ln.sum=function(e){return e&&e.length?Bt(e,iu):0},Ln.sumBy=function(e,t){return e&&e.length?Bt(e,ao(t,2)):0},Ln.template=function(e,t,n){var r=Ln.templateSettings;n&&go(e,t,n)&&(t=i),e=_s(e),t=ws({},t,r,Hi);var o,a,s=ws({},t.imports,r.imports,Hi),u=Cs(s),c=Gt(s,u),l=0,f=t.interpolate||_e,p="__p += '",d=Ie((t.escape||_e).source+"|"+f.source+"|"+(f===J?fe:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),h="//# sourceURL="+(Pe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Je+"]")+"\n";e.replace(d,(function(t,n,r,i,s,u){return r||(r=i),p+=e.slice(l,u).replace(be,Jt),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+t.length,t})),p+="';\n";var v=Pe.call(t,"variable")&&t.variable;if(v){if(ce.test(v))throw new Ee("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(V,""):p).replace($,"$1").replace(G,"$1;"),p="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y=Zs((function(){return we(u,h+"return "+p).apply(i,c)}));if(y.source=p,Ja(y))throw y;return y},Ln.times=function(e,t){if((e=vs(e))<1||e>f)return[];var n=d,r=gn(e,d);t=ao(t),e-=d;for(var i=qt(r,t);++n<e;)t(n);return i},Ln.toFinite=hs,Ln.toInteger=vs,Ln.toLength=ys,Ln.toLower=function(e){return _s(e).toLowerCase()},Ln.toNumber=ms,Ln.toSafeInteger=function(e){return e?ar(vs(e),-9007199254740991,f):0===e?e:0},Ln.toString=_s,Ln.toUpper=function(e){return _s(e).toUpperCase()},Ln.trim=function(e,t,n){if((e=_s(e))&&(n||t===i))return Vt(e);if(!e||!(t=si(t)))return e;var r=an(e),o=an(t);return _i(r,Qt(r,o),Wt(r,o)+1).join("")},Ln.trimEnd=function(e,t,n){if((e=_s(e))&&(n||t===i))return e.slice(0,sn(e)+1);if(!e||!(t=si(t)))return e;var r=an(e);return _i(r,0,Wt(r,an(t))+1).join("")},Ln.trimStart=function(e,t,n){if((e=_s(e))&&(n||t===i))return e.replace(re,"");if(!e||!(t=si(t)))return e;var r=an(e);return _i(r,Qt(r,an(t))).join("")},Ln.truncate=function(e,t){var n=30,r="...";if(ts(t)){var o="separator"in t?t.separator:o;n="length"in t?vs(t.length):n,r="omission"in t?si(t.omission):r}var a=(e=_s(e)).length;if(Xt(e)){var s=an(e);a=s.length}if(n>=a)return e;var u=n-on(r);if(u<1)return r;var c=s?_i(s,0,u).join(""):e.slice(0,u);if(o===i)return c+r;if(s&&(u+=c.length-u),as(o)){if(e.slice(u).search(o)){var l,f=c;for(o.global||(o=Ie(o.source,_s(pe.exec(o))+"g")),o.lastIndex=0;l=o.exec(f);)var p=l.index;c=c.slice(0,p===i?u:p)}}else if(e.indexOf(si(o),u)!=u){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+r},Ln.unescape=function(e){return(e=_s(e))&&W.test(e)?e.replace(z,un):e},Ln.uniqueId=function(e){var t=++Ne;return _s(e)+t},Ln.upperCase=Hs,Ln.upperFirst=Js,Ln.each=_a,Ln.eachRight=ba,Ln.first=Wo,uu(Ln,(gu={},_r(Ln,(function(e,t){Pe.call(Ln.prototype,t)||(gu[t]=e)})),gu),{chain:!1}),Ln.VERSION="4.17.21",_t(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Ln[e].placeholder=Ln})),_t(["drop","take"],(function(e,t){$n.prototype[e]=function(n){n=n===i?1:mn(vs(n),0);var r=this.__filtered__&&!t?new $n(this):this.clone();return r.__filtered__?r.__takeCount__=gn(n,r.__takeCount__):r.__views__.push({size:gn(n,d),type:e+(r.__dir__<0?"Right":"")}),r},$n.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),_t(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;$n.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ao(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),_t(["head","last"],(function(e,t){var n="take"+(t?"Right":"");$n.prototype[e]=function(){return this[n](1).value()[0]}})),_t(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");$n.prototype[e]=function(){return this.__filtered__?new $n(this):this[n](1)}})),$n.prototype.compact=function(){return this.filter(iu)},$n.prototype.find=function(e){return this.filter(e).head()},$n.prototype.findLast=function(e){return this.reverse().find(e)},$n.prototype.invokeMap=Yr((function(e,t){return"function"==typeof e?new $n(this):this.map((function(n){return Ar(n,e,t)}))})),$n.prototype.reject=function(e){return this.filter(ja(ao(e)))},$n.prototype.slice=function(e,t){e=vs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new $n(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=vs(t))<0?n.dropRight(-t):n.take(t-e)),n)},$n.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},$n.prototype.toArray=function(){return this.take(d)},_r($n.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Ln[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(Ln.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof $n,c=s[0],l=u||za(t),f=function(e){var t=o.apply(Ln,Ot([e],s));return r&&p?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,v=u&&!d;if(!a&&l){t=v?t:new $n(this);var y=e.apply(t,s);return y.__actions__.push({func:ha,args:[f],thisArg:i}),new Vn(y,p)}return h&&v?e.apply(this,s):(y=this.thru(f),h?r?y.value()[0]:y.value():y)})})),_t(["pop","push","shift","sort","splice","unshift"],(function(e){var t=De[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Ln.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(za(i)?i:[],e)}return this[n]((function(n){return t.apply(za(n)?n:[],e)}))}})),_r($n.prototype,(function(e,t){var n=Ln[t];if(n){var r=n.name+"";Pe.call(Rn,r)||(Rn[r]=[]),Rn[r].push({name:t,func:n})}})),Rn[Mi(i,2).name]=[{name:"wrapper",func:i}],$n.prototype.clone=function(){var e=new $n(this.__wrapped__);return e.__actions__=xi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=xi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=xi(this.__views__),e},$n.prototype.reverse=function(){if(this.__filtered__){var e=new $n(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},$n.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=za(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=gn(t,e+a);break;case"takeRight":e=mn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,f=l.length,p=0,d=gn(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return pi(e,this.__actions__);var h=[];e:for(;u--&&p<d;){for(var v=-1,y=e[c+=t];++v<f;){var m=l[v],g=m.iteratee,_=m.type,b=g(y);if(2==_)y=b;else if(!b){if(1==_)continue e;break e}}h[p++]=y}return h},Ln.prototype.at=va,Ln.prototype.chain=function(){return da(this)},Ln.prototype.commit=function(){return new Vn(this.value(),this.__chain__)},Ln.prototype.next=function(){this.__values__===i&&(this.__values__=ds(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Ln.prototype.plant=function(e){for(var t,n=this;n instanceof qn;){var r=Bo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Ln.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof $n){var t=e;return this.__actions__.length&&(t=new $n(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ta],thisArg:i}),new Vn(t,this.__chain__)}return this.thru(ta)},Ln.prototype.toJSON=Ln.prototype.valueOf=Ln.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},Ln.prototype.first=Ln.prototype.head,at&&(Ln.prototype[at]=function(){return this}),Ln}();ot._=cn,(r=function(){return cn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},5161:(e,t,n)=>{var r=n(9932),i=n(7206),o=n(9199),a=n(1469);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},8306:(e,t,n)=>{var r=n(3369);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},2492:(e,t,n)=>{var r=n(2980),i=n(1463)((function(e,t,n){r(e,t,n)}));e.exports=i},7557:(e,t,n)=>{var r=n(9932),i=n(5990),o=n(7406),a=n(1811),s=n(8363),u=n(696),c=n(9021),l=n(6904),f=c((function(e,t){var n={};if(null==e)return n;var c=!1;t=r(t,(function(t){return t=a(t,e),c||(c=t.length>1),t})),s(e,l(e),n),c&&(n=i(n,7,u));for(var f=t.length;f--;)o(n,t[f]);return n}));e.exports=f},9601:(e,t,n)=>{var r=n(371),i=n(9152),o=n(5403),a=n(327);e.exports=function(e){return o(e)?r(a(e)):i(e)}},9704:(e,t,n)=>{var r=n(2908),i=n(7206),o=n(5076),a=n(1469),s=n(6612);e.exports=function(e,t,n){var u=a(e)?r:o;return n&&s(e,t,n)&&(t=void 0),u(e,i(t,3))}},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},8601:(e,t,n)=>{var r=n(4841);e.exports=function(e){return e?Infinity===(e=r(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},554:(e,t,n)=>{var r=n(8601);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},4841:(e,t,n)=>{var r=n(7561),i=n(3218),o=n(3448),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},9881:(e,t,n)=>{var r=n(8363),i=n(1704);e.exports=function(e){return r(e,i(e))}},9833:(e,t,n)=>{var r=n(531);e.exports=function(e){return null==e?"":r(e)}},2628:(e,t,n)=>{var r=n(7415),i=n(3674);e.exports=function(e){return null==e?[]:r(e,i(e))}},2527:(e,t,n)=>{"use strict";t.TypedEmitter=n(7187).EventEmitter},8801:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AccessDeniedReason:()=>u,Alignment:()=>d.v2,BOOLEAN_DEFAULT_FALLBACK_ENTITLEMENT:()=>h,BillingModel:()=>d.Fz,BillingPeriod:()=>d.tv,Currency:()=>d.F,CustomerModel:()=>m,DiscountDurationType:()=>d.C2,DiscountType:()=>d.Lb,EntitlementResetPeriod:()=>f,ExperimentGroupType:()=>d.zO,FeatureType:()=>c,FontWeight:()=>d.U9,LogLevel:()=>o,METERED_DEFAULT_FALLBACK_ENTITLEMENT:()=>y,MeterType:()=>l,NUMERIC_DEFAULT_FALLBACK_ENTITLEMENT:()=>v,PricingType:()=>d._H,PromotionalEntitlementStatus:()=>d.$V,SubscriptionScheduleType:()=>d.YV,SubscriptionStatus:()=>d.yh,TrialPeriodUnits:()=>d.p1,WidgetType:()=>d.l9,default:()=>al});var r={};n.r(r),n.d(r,{FunctionToString:()=>No,InboundFilters:()=>Wo});var i={};n.r(i),n.d(i,{Breadcrumbs:()=>ss,Dedupe:()=>ys,GlobalHandlers:()=>Qa,HttpContext:()=>vs,LinkedErrors:()=>ps,TryCatch:()=>Za});var o,a=n(4721),s=n.n(a);!function(e){e.ALL="ALL",e.NONE="NONE",e.LOG="LOG",e.ERROR="ERROR"}(o||(o={}));var u,c,l,f,p=function(){function e(e,t){this.logger=e,this.logLevel=t}return e.prototype.error=function(e,t){this.logLevel!==o.NONE&&this.logger.error("[Stigg] ".concat(e),t||{})},e.prototype.log=function(e,t){s()([o.ERROR,o.NONE],this.logLevel)||this.logger.log("[Stigg] ".concat(e),t||{})},e.prototype.debug=function(e,t){s()([o.LOG,o.ALL],this.logLevel)&&this.logger.debug("[Stigg] ".concat(e),t||{})},e}(),d=n(890);!function(e){e.InvalidFeatureType="InvalidFeatureType",e.CustomerNotFound="CustomerNotFound",e.FeatureNotFound="FeatureNotFound",e.NoActiveSubscriptions="NoActiveSubscriptions",e.CustomerNotEntitledForFeature="CustomerNotEntitledForFeature",e.RequestedUsageExceedsLimit="RequestedUsageExceedsLimit",e.Unknown="Unknown"}(u||(u={})),function(e){e.Boolean="Boolean",e.Numeric="Numeric"}(c||(c={})),function(e){e.Fluctuating="Fluctuating",e.Incremental="Incremental",e.None="None"}(l||(l={})),function(e){e.Daily="Daily",e.Hourly="Hourly",e.Monthly="Monthly",e.Weekly="Weekly"}(f||(f={}));var h={isFallback:!0,hasAccess:!1,accessDeniedReason:u.Unknown},v={isFallback:!0,hasAccess:!1,isUnlimited:!1,accessDeniedReason:u.Unknown},y={isFallback:!0,hasAccess:!1,isUnlimited:!1,currentUsage:0,requestedUsage:1,accessDeniedReason:u.Unknown},m=function(){function e(e){Object.assign(this,e)}return e.prototype.getActiveSubscriptions=function(){return this.subscriptions.filter((function(e){return e.status===d.yh.Active}))},e.prototype.getActiveTrials=function(){return this.subscriptions.filter((function(e){return e.status===d.yh.InTrial}))},e.prototype.getActivePromotionalEntitlements=function(){return this.promotionalEntitlements.filter((function(e){return e.status===d.$V.Active}))},e}();const g=function(){function e(e,t){this.client=e,this.edgeApiClient=t}return e.prototype.getSdkConfiguration=function(){return this.edgeApiClient?this.edgeApiClient.getSdkConfiguration():this.client.query({query:d.N9})},e}();var _=function(){return _=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},_.apply(this,arguments)},b=function(){function e(e,t){this.client=e,this.edgeApiClient=t}return e.prototype.getPaywall=function(e){var t=e.productId,n=e.customerId,r=e.resourceId,i=e.context,o=e.billingCountryCode;return!n&&this.edgeApiClient?this.edgeApiClient.getPaywall(t,o):this.client.query({query:d.RV,fetchPolicy:"no-cache",variables:{input:_(_(_(_(_({},t?{productId:t}:{}),n?{customerId:n}:{}),r?{resourceId:r}:{}),i?{context:i}:{}),o?{billingCountryCode:o}:{})}})},e}();const E=b;const w=function(){function e(e){this.client=e}return e.prototype.getCustomer=function(e){return this.client.query({query:d.Ze,variables:{input:{customerId:e}},fetchPolicy:"no-cache"})},e.prototype.getActiveSubscriptions=function(e,t){return n=this,r=void 0,o=function(){return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(n){return[2,this.client.query({query:d.Op,variables:{input:{customerId:e,resourceId:t}},fetchPolicy:"no-cache"})]}))},new((i=void 0)||(i=Promise))((function(e,t){function a(e){try{u(o.next(e))}catch(e){t(e)}}function s(e){try{u(o.throw(e))}catch(e){t(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(a,s)}u((o=o.apply(n,r||[])).next())}));var n,r,i,o},e.prototype.getCustomerPortal=function(e,t){return this.client.query({query:d.$A,variables:{input:{customerId:e,resourceId:t}},fetchPolicy:"no-cache"})},e}(),S=function(){function e(e){this.client=e}return e.prototype.getCoupons=function(){return this.client.query({query:d.Q$,fetchPolicy:"no-cache"})},e}();var T=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},I=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},O=function(){function e(e){this.client=e}return e.prototype.estimateSubscription=function(e){var t;return T(this,void 0,void 0,(function(){return I(this,(function(n){return[2,this.client.mutate({mutation:d.m5,variables:{input:{resourceId:e.resourceId,planId:e.planId,customerId:e.customerId,startDate:e.startDate,addons:e.addons,billingPeriod:e.billingPeriod,priceUnitAmount:e.unitQuantity,billingInformation:{taxRateIds:null===(t=null==e?void 0:e.billingInformation)||void 0===t?void 0:t.taxRateIds},promotionCode:e.promotionCode,billingCountryCode:e.billingCountryCode,skipTrial:e.skipTrial}}})]}))}))},e.prototype.estimateSubscriptionUpdate=function(e){return T(this,void 0,void 0,(function(){return I(this,(function(t){return[2,this.client.mutate({mutation:d.wO,variables:{input:{subscriptionId:e.subscriptionId,unitQuantity:e.unitQuantity,addons:e.addons,promotionCode:e.promotionCode}}})]}))}))},e}();const x=O;var D=function(){return D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},D.apply(this,arguments)},A=function(){function e(e){this.client=e}return e.prototype.getMockPaywall=function(e){var t=e.productId,n=e.customerId,r=e.context;return this.client.query({query:d._x,fetchPolicy:"no-cache",variables:{input:D(D(D({},t?{productId:t}:{}),n?{customerId:n}:{}),r?{context:r}:{})}})},e}();const R=A,k=function(e,t){this.sdkConfiguration=new g(e,t),this.paywall=new E(e,t),this.mockPaywall=new R(e),this.customers=new w(e),this.coupons=new S(e),this.subscriptionEstimations=new x(e)};var C=n(1609),P=n.n(C),N=n(2492),F=n.n(N),j=d.PO.JsClientSdk,U=function(){var e="https://api.stigg.io";return{baseUri:e,baseEdgeUri:M(e),entitlementPollingInterval:3e4,useEntitlementPolling:!0,logConfiguration:{logger:console,logLevel:o.ERROR},enableEdge:!0}};function M(e){var t=new URL(e);return"localhost"===t.hostname?t.port="3060":t.hostname="edge.".concat(t.hostname),t.toString().slice(0,-1)}function L(e){var t=e.customerId;if(!t||P()(t))throw new Error("You must set customer ID first, use setCustomerId function or pass it via the constructor");return t}var B=n(5161),q=n.n(B),V=n(7557),$=n.n(V),G=n(9704),z=n.n(G),Q=function(){return Q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Q.apply(this,arguments)},W=function(){function e(){this.getResetPeriodData=function(e,t){switch(e){case f.Monthly:return{monthlyResetPeriodConfiguration:{accordingTo:t.monthlyAccordingTo||d.pS.SubscriptionStart}};case f.Weekly:return{weeklyResetPeriodConfiguration:{accordingTo:t.weeklyAccordingTo||d.rC.EveryFriday}};default:return{}}}}return e.prototype.mapBooleanEntitlement=function(e,t){return{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,feature:e.calculatedEntitlement.feature?Q(Q({},e.calculatedEntitlement.feature),{isMetered:!1}):void 0}},e.prototype.mapNumericEntitlement=function(e,t){var n=e.calculatedEntitlement,r=n.hasUnlimitedUsage,i=n.usageLimit;return{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,isUnlimited:r,value:i||void 0,feature:e.calculatedEntitlement.feature?Q(Q({},e.calculatedEntitlement.feature),{isMetered:!1}):void 0}},e.prototype.mapMeteredEntitlement=function(e,t,n){var r=e.calculatedEntitlement,i=r.hasUnlimitedUsage,o=r.usageLimit,a=r.feature,s=e.featureUsage,u=s.currentUsage,l=s.nextResetDate,f=s.resetPeriod,p=null;return a&&a.featureType===c.Numeric&&a.meterType===d.pu.Incremental&&f&&(p={nextResetDate:l,resetPeriod:f}),{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,isUnlimited:i,usageLimit:o||void 0,currentUsage:u,requestedUsage:n||0,resetSettings:p||void 0,feature:e.calculatedEntitlement.feature?Q(Q({},e.calculatedEntitlement.feature),{meterType:e.calculatedEntitlement.feature.meterType||void 0,isMetered:!0}):void 0}},e.prototype.mapEntitlement=function(e,t,n){var r=e.calculatedEntitlement;if(!r.feature)return this.mapBooleanEntitlement(e,t);var i=r.feature,o=i.featureType,a=i.meterType,s=o===c.Numeric&&(a===d.pu.Incremental||a===d.pu.Fluctuating);switch(o){case c.Boolean:return this.mapBooleanEntitlement(e,t);case c.Numeric:return s?this.mapMeteredEntitlement(e,t,n):this.mapNumericEntitlement(e,t)}},e.prototype.mapFeatureType=function(e){switch(e){case d.Te.Boolean:return c.Boolean;case d.Te.Number:return c.Numeric}},e.prototype.mapEntitlementResetPeriod=function(e){switch(e){case d.XH.Day:return f.Daily;case d.XH.Hour:return f.Hourly;case d.XH.Week:return f.Weekly;case d.XH.Month:return f.Monthly}},e.prototype.mapApiEntitlementResetPeriod=function(e){switch(e){case f.Daily:return d.XH.Day;case f.Hourly:return d.XH.Hour;case f.Weekly:return d.XH.Week;case f.Monthly:return d.XH.Month}},e.prototype.mapCachedEntitlement=function(e,t,n){var r;return e.feature&&(r={id:e.feature.refId,featureType:this.mapFeatureType(e.feature.featureType),meterType:e.feature.meterType||void 0,units:e.feature.featureUnits||void 0,unitsPlural:e.feature.featureUnitsPlural||void 0,displayName:e.feature.displayName,description:e.feature.description||""}),{calculatedEntitlement:{usageLimit:e.usageLimit,hasUnlimitedUsage:e.hasUnlimitedUsage,feature:r},featureUsage:{resetPeriod:e.resetPeriod?this.mapEntitlementResetPeriod(e.resetPeriod):void 0,resetPeriodConfiguration:e.resetPeriodConfiguration,currentUsage:t||e.currentUsage||0,nextResetDate:n||e.nextResetDate}}},e.prototype.mapCachedEntitlements=function(e){var t=this;return new Map(e.map((function(e){var n;return[(null===(n=e.feature)||void 0===n?void 0:n.refId)||"",t.mapCachedEntitlement(e)]})))},e.prototype.mapPlans=function(e){var t=this;return((null==e?void 0:e.paywall.plans)||[]).map((function(e,n){return t.mapPlan(e,n)}))},e.prototype.mapPaywall=function(e){var t=this.mapPlans(e),n=null==e?void 0:e.paywall.configuration,r=!(null==e?void 0:e.paywall.resource)&&(null==e?void 0:e.paywall.activeSubscriptions)||[];return{plans:t,configuration:n,customer:(null==e?void 0:e.paywall.customer)?this.mapCustomer(null==e?void 0:e.paywall.customer,r):null,resource:(null==e?void 0:e.paywall.resource)?this.mapResource(null==e?void 0:e.paywall.resource):null,activeSubscriptions:(null==e?void 0:e.paywall.activeSubscriptions)?this.mapSubscriptions(null==e?void 0:e.paywall.activeSubscriptions):null,currency:e.paywall.currency}},e.prototype.mapMockPlans=function(e){var t=this;return{plans:((null==e?void 0:e.mockPaywall.plans)||[]).map((function(e,n){return t.mapPlan(e,n)})),configuration:e.mockPaywall.configuration,customer:null,resource:null,activeSubscriptions:null,currency:{code:d.F.Usd,symbol:"$"}}},e.prototype.mapCoupons=function(e){var t=this;return e.coupons.edges.map((function(e){return e.node})).map((function(e){return t.mapCoupon(e)}))},e.prototype.mapResource=function(e){return{id:e.resourceId}},e.prototype.mapCustomerPortal=function(e){var t=e.resource?this.mapResource(e.resource):null;return Q(Q({},e),{resource:t})},e.prototype.mapCustomer=function(e,t){var n,r,i=this;return new m({id:e.refId,name:e.name||void 0,email:e.email||void 0,createdAt:new Date(e.createdAt),updatedAt:new Date(e.updatedAt),hasPaymentMethod:e.hasPaymentMethod,subscriptions:q()(t,(function(e){return i.mapSubscription(e)})),promotionalEntitlements:q()(e.promotionalEntitlements,(function(e){return i.mapPromotionalEntitlement(e)})),metadata:e.additionalMetaData,paymentMethodDetails:this.mapPaymentDetails(e),trialedPlans:(null===(n=e.trialedPlans)||void 0===n?void 0:n.map((function(e){return{productId:e.productRefId,planId:e.planRefId}})))||void 0,eligibleForTrial:null===(r=e.eligibleForTrial)||void 0===r?void 0:r.map((function(e){return{productId:e.productRefId,eligible:e.eligible}})),experimentInfo:$()(e.experimentInfo,"__typename")})},e.prototype.mapPaymentDetails=function(e){var t=e.defaultPaymentExpirationYear,n=e.defaultPaymentExpirationMonth,r=e.defaultPaymentMethodLast4Digits;if(z()([r,n,t],(function(e){return e})))return{expirationMonth:n,expirationYear:t,last4Digits:r}},e.prototype.mapTotalPrice=function(e,t,n){var r=e.feature,i=e.price,o={pricingModel:e.billingModel,billingPeriod:e.billingPeriod,amount:t.total.amount,grossAmount:t.subTotal.amount,currency:i.currency};return r&&(o.feature={displayName:r.displayName,units:r.featureUnits,unitsPlural:r.featureUnitsPlural,unitQuantity:n}),o},e.prototype.mapPrice=function(e,t){var n=e.feature,r=e.price,i=e.billingId,o=e.billingModel,a=e.billingPeriod,s=e.minUnitQuantity,u=e.maxUnitQuantity,c=e.billingCountryCode,l={pricingModel:o,billingPeriod:a,billingId:i,amount:r.amount,currency:r.currency,minUnitQuantity:s,maxUnitQuantity:u,billingCountryCode:c};return n&&(l.feature={displayName:n.displayName,units:n.featureUnits,unitsPlural:n.featureUnitsPlural,unitQuantity:t}),l},e.prototype.mapPlan=function(e,t){var n=this;return void 0===t&&(t=0),{id:e.refId,order:t,displayName:e.displayName,description:e.description,billingId:e.billingId,basePlan:e.basePlan?{id:e.basePlan.refId,displayName:e.basePlan.displayName}:void 0,entitlements:q()(e.entitlements,(function(e){return n.mapPackageEntitlement(e)})),inheritedEntitlements:q()(e.inheritedEntitlements,(function(e){return n.mapPackageEntitlement(e)})),pricePoints:q()(e.prices,(function(e){return n.mapPrice(e)})),pricingType:e.pricingType,defaultTrialConfig:e.defaultTrialConfig,compatibleAddons:this.mapCompatibleAddons(e),product:{id:e.product.refId,displayName:e.product.displayName,description:e.product.description,metadata:e.product.additionalMetaData},metadata:e.additionalMetaData}},e.prototype.mapCompatibleAddons=function(e){var t=this;if(e.pricingType===d._H.Free||!e.compatibleAddons)return[];var n=e.compatibleAddons;return(e.pricingType===d._H.Paid?n.filter((function(e){return e.pricingType===d._H.Paid})):n).map((function(e){return t.mapAddon(e)}))},e.prototype.mapPackageEntitlement=function(e){var t=e.feature;return t?{usageLimit:e.usageLimit||0,feature:{id:t.refId,featureType:this.mapFeatureType(t.featureType),description:t.description||"",meterType:t.meterType||void 0,units:t.featureUnits||void 0,unitsPlural:t.featureUnitsPlural||void 0,displayName:t.displayName,isMetered:t.meterType===d.pu.Fluctuating||t.meterType===d.pu.Incremental,metadata:t.additionalMetaData},isCustom:e.isCustom||void 0,hasUnlimitedUsage:e.hasUnlimitedUsage,resetPeriod:e.resetPeriod?this.mapEntitlementResetPeriod(e.resetPeriod):void 0,hiddenFromWidgets:e.hiddenFromWidgets,displayNameOverride:e.displayNameOverride}:{usageLimit:e.usageLimit||0,hasUnlimitedUsage:e.hasUnlimitedUsage,resetPeriod:e.resetPeriod?this.mapEntitlementResetPeriod(e.resetPeriod):void 0}},e.prototype.mapPromotionalEntitlement=function(e){var t=e.feature;return{status:e.status,usageLimit:e.usageLimit||0,feature:{id:t.refId,displayName:t.displayName,description:t.description||"",featureType:this.mapFeatureType(t.featureType),meterType:t.meterType||void 0,units:t.featureUnits||void 0,unitsPlural:t.featureUnitsPlural||void 0,isMetered:t.meterType===d.pu.Fluctuating||t.meterType===d.pu.Incremental},hasUnlimitedUsage:e.hasUnlimitedUsage,expiresAt:e.endDate,hasExpirationDate:!!e.endDate,isVisible:e.isVisible}},e.prototype.mapSubscription=function(e){var t,n,r=this,i=e.totalPrice,o=(e.prices||[])[0];return{id:e.refId,resourceId:null===(t=e.resource)||void 0===t?void 0:t.resourceId,status:e.status,currentBillingPeriodEnd:this.mapDate(e.currentBillingPeriodEnd),plan:this.mapPlan(e.plan),price:o&&i&&o.price?this.mapTotalPrice(o.price,i,o.usageLimit):null,pricingType:e.pricingType,addons:(null===(n=e.addons)||void 0===n?void 0:n.map((function(e){var t=e.quantity,n=e.addon;return{quantity:t,addon:r.mapAddon(n)}})))||[],startDate:e.startDate,endDate:this.mapDate(e.endDate),trialEndDate:this.mapDate(e.trialEndDate),cancellationDate:this.mapDate(e.cancellationDate),effectiveEndDate:this.mapDate(e.effectiveEndDate),metadata:e.additionalMetaData,experimentInfo:$()(e.experimentInfo,"__typename"),scheduledUpdates:e.scheduledUpdates||[]}},e.prototype.mapDate=function(e){return e?new Date(e):void 0},e.prototype.mapAddon=function(e){var t=this;return{id:e.refId,displayName:e.displayName,description:e.description||"",billingId:e.billingId,entitlements:q()(e.entitlements,(function(e){return t.mapPackageEntitlement(e)})),pricePoints:q()(e.prices,(function(e){return t.mapPrice(e)})),pricingType:e.pricingType,metadata:e.additionalMetaData}},e.prototype.mapAccessDeniedReason=function(e){switch(e){case u.InvalidFeatureType:return d.fE.Unknown;case u.CustomerNotFound:return d.fE.CustomerNotFound;case u.FeatureNotFound:return d.fE.FeatureNotFound;case u.NoActiveSubscriptions:return d.fE.NoActiveSubscription;case u.CustomerNotEntitledForFeature:return d.fE.NoFeatureEntitlementInSubscription;case u.RequestedUsageExceedsLimit:return d.fE.RequestedUsageExceedingLimit;case u.Unknown:return d.fE.Unknown}},e.prototype.mapFallbackBooleanEntitlementResult=function(e,t){return{hasAccess:e.hasAccess,accessDeniedReason:t.accessDeniedReason?this.mapAccessDeniedReason(t.accessDeniedReason):void 0}},e.prototype.mapFallbackNumericEntitlementResult=function(e,t){return{hasAccess:e.hasAccess,accessDeniedReason:t.accessDeniedReason?this.mapAccessDeniedReason(t.accessDeniedReason):void 0,usageLimit:e.value,hasUnlimitedUsage:e.isUnlimited}},e.prototype.mapEntitlementResult=function(e,t,n){return Q({hasAccess:e.hasAccess,accessDeniedReason:e.accessDeniedReason?this.mapAccessDeniedReason(e.accessDeniedReason):void 0,hasUnlimitedUsage:null==t?void 0:t.calculatedEntitlement.hasUnlimitedUsage,usageLimit:null==t?void 0:t.calculatedEntitlement.usageLimit,currentUsage:null==t?void 0:t.featureUsage.currentUsage,requestedUsage:n,nextResetDate:null==t?void 0:t.featureUsage.nextResetDate,resetPeriod:(null==t?void 0:t.featureUsage.resetPeriod)?this.mapApiEntitlementResetPeriod(t.featureUsage.resetPeriod):void 0},this.getResetPeriodData(null==t?void 0:t.featureUsage.resetPeriod,null==t?void 0:t.featureUsage.resetPeriodConfiguration))},e.prototype.mapFallbackMeteredEntitlementResult=function(e,t,n){return{hasAccess:e.hasAccess,accessDeniedReason:t.accessDeniedReason?this.mapAccessDeniedReason(t.accessDeniedReason):void 0,hasUnlimitedUsage:e.isUnlimited,usageLimit:e.usageLimit,requestedUsage:n}},e.prototype.mapSubscriptionPreview=function(e){var t=e.subscription,n=e.proration,r=e.billingPeriodRange;return Q(Q({total:this.mapMoney(e.total),subTotal:this.mapMoney(e.subTotal)},e.discount?{discount:this.mapDiscount(e.discount)}:{}),{billingPeriodRange:{start:r.start&&new Date(r.start),end:r.end&&new Date(r.end)},proration:n?{credit:this.mapMoney(n.credit),debit:this.mapMoney(n.debit),netAmount:this.mapMoney(n.netAmount),prorationDate:new Date(n.prorationDate)}:void 0,subscription:t?{total:this.mapMoney(t.total),subTotal:this.mapMoney(t.subTotal)}:void 0})},e.prototype.mapDiscount=function(e){var t=e.type,n=e.value,r=e.durationType,i=e.durationInMonths;return Q({type:t,value:n,durationType:r},i?{durationInMonths:i}:{})},e.prototype.mapMoney=function(e){return{amount:e.amount,currency:e.currency}},e.prototype.mapCoupon=function(e){return{id:e.refId,name:e.name,description:e.description,metadata:e.additionalMetaData,discountValue:e.discountValue}},e.prototype.mapSubscriptions=function(e){var t=this;return e.map((function(e){return t.mapSubscription(e)}))},e}(),Y=function(){return Y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Y.apply(this,arguments)},K=n(655),H="Invariant Violation",J=Object.setPrototypeOf,X=void 0===J?function(e,t){return e.__proto__=t,e}:J,Z=function(e){function t(n){void 0===n&&(n=H);var r=e.call(this,"number"==typeof n?H+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=H,X(r,t.prototype),r}return(0,K.ZT)(t,e),t}(Error);function ee(e,t){if(!e)throw new Z(t)}var te=["debug","log","warn","error","silent"],ne=te.indexOf("log");function re(e){return function(){if(te.indexOf(e)>=ne){var t=console[e]||console.log;return t.apply(console,arguments)}}}function ie(e){try{return e()}catch(e){}}!function(e){e.debug=re("debug"),e.log=re("log"),e.warn=re("warn"),e.error=re("error")}(ee||(ee={}));const oe=ie((function(){return globalThis}))||ie((function(){return window}))||ie((function(){return self}))||ie((function(){return n.g}))||ie((function(){return Function("return this")()}));var ae="__",se=[ae,ae].join("DEV");const ue=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(oe,se,{value:"production"!==ie((function(){return"production"})),enumerable:!1,configurable:!0,writable:!0}),oe[se]}}();function ce(e){try{return e()}catch(e){}}var le=ce((function(){return globalThis}))||ce((function(){return window}))||ce((function(){return self}))||ce((function(){return n.g}))||ce((function(){return Function("return this")()})),fe=!1;function pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function de(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function he(e,t,n){return t&&de(e.prototype,t),n&&de(e,n),e}!le||ce((function(){return"production"}))||ce((function(){return process}))||(Object.defineProperty(le,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),fe=!0),n(143).H,fe&&(delete le.process,fe=!1),__DEV__?ee("boolean"==typeof ue,ue):ee("boolean"==typeof ue,38);var ve=function(){return"function"==typeof Symbol},ye=function(e){return ve()&&Boolean(Symbol[e])},me=function(e){return ye(e)?Symbol[e]:"@@"+e};ve()&&!ye("observable")&&(Symbol.observable=Symbol("observable"));var ge=me("iterator"),_e=me("observable"),be=me("species");function Ee(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function we(e){var t=e.constructor;return void 0!==t&&null===(t=t[be])&&(t=void 0),void 0!==t?t:Ce}function Se(e){return e instanceof Ce}function Te(e){Te.log?Te.log(e):setTimeout((function(){throw e}))}function Ie(e){Promise.resolve().then((function(){try{e()}catch(e){Te(e)}}))}function Oe(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=Ee(t,"unsubscribe");n&&n.call(t)}}catch(e){Te(e)}}function xe(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function De(e,t,n){e._state="running";var r=e._observer;try{var i=Ee(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(xe(e),!i)throw n;i.call(r,n);break;case"complete":xe(e),i&&i.call(r)}}catch(e){Te(e)}"closed"===e._state?Oe(e):"running"===e._state&&(e._state="ready")}function Ae(e,t,n){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void Ie((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(De(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)}))):void De(e,t,n);e._queue.push({type:t,value:n})}}var Re=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new ke(this);try{this._cleanup=t.call(void 0,n)}catch(e){n.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(xe(this),Oe(this))},he(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),ke=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){Ae(this._subscription,"next",e)},t.error=function(e){Ae(this._subscription,"error",e)},t.complete=function(){Ae(this._subscription,"complete")},he(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),Ce=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new Re(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise((function(n,r){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),n()}}))},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(we(this))((function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.filter=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(we(this))((function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.reduce=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=we(this),r=arguments.length>1,i=!1,o=arguments[1],a=o;return new n((function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(e){return n.error(e)}else a=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=we(this);return new i((function(t){var r,o=0;return function e(a){r=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):e(i.from(n[o++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}}))},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=we(this);return new n((function(r){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var o=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))},t[_e]=function(){return this},e.from=function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=Ee(t,_e);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return Se(i)&&i.constructor===n?i:new n((function(e){return i.subscribe(e)}))}if(ye("iterator")&&(r=Ee(t,ge)))return new n((function(e){Ie((function(){if(!e.closed){for(var n,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return pe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pe(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r.call(t));!(n=i()).done;){var o=n.value;if(e.next(o),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){Ie((function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i="function"==typeof this?this:e;return new i((function(e){Ie((function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}}))}))},he(e,null,[{key:be,get:function(){return this}}]),e}();function Pe(e){return null!==e&&"object"==typeof e}function Ne(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw __DEV__?new Z("Found a "+e.operation+" operation"+(e.name?" named '"+e.name.value+"'":"")+". No operations are allowed when using a fragment as a query. Only fragments are allowed."):new Z(43);"FragmentDefinition"===e.kind&&r.push(e)})),void 0===n&&(__DEV__?ee(1===r.length,"Found "+r.length+" fragments. `fragmentName` must be provided when there is not exactly 1 fragment."):ee(1===r.length,44),n=r[0].name.value),(0,K.pi)((0,K.pi)({},e),{definitions:(0,K.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function Fe(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function je(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return __DEV__?ee(n,"No fragment named "+e.name.value+"."):ee(n,45),n;default:return null}}function Ue(e){return{__ref:String(e)}}function Me(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function Le(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var i={};n.fields.map((function(e){return Le(i,e.name,e.value,r)})),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(n)){var o=(r||{})[n.name.value];e[t.value]=o}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return Le(n,t,e,r),n[t.value]}));else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw __DEV__?new Z('The inline argument "'+t.value+'" of kind "'+n.kind+'"is not supported. Use variables instead of inline arguments to overcome this limitation.'):new Z(54);e[t.value]=null}}ve()&&Object.defineProperty(Ce,Symbol("extensions"),{value:{symbol:_e,hostReportError:Te},configurable:!0});var Be=["connection","include","skip","client","rest","export"],qe=Object.assign((function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach((function(e){i[e]=t[e]})),n.connection.key+"("+Ve(i)+")"}return n.connection.key}var o=e;if(t){var a=Ve(t);o+="("+a+")"}return n&&Object.keys(n).forEach((function(e){-1===Be.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@"+e+"("+Ve(n[e])+")":o+="@"+e)})),o}),{setStringify:function(e){var t=Ve;return Ve=e,t}}),Ve=function(e){return JSON.stringify(e,$e)};function $e(e,t){return Pe(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{})),t}function Ge(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return Le(n,r,i,t)})),n}return null}function ze(e){return e.alias?e.alias.value:e.name.value}function Qe(e,t,n){if("string"==typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r<i.length;r++){var o=i[r];if(We(o)){if("__typename"===o.name.value)return e[ze(o)]}else{var a=Qe(e,je(o,n).selectionSet,n);if("string"==typeof a)return a}}}function We(e){return"Field"===e.kind}function Ye(e){return"InlineFragment"===e.kind}function Ke(e){__DEV__?ee(e&&"Document"===e.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'):ee(e&&"Document"===e.kind,46);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new Z('Schema type definitions not allowed in queries. Found: "'+e.kind+'"'):new Z(47);return e}));return __DEV__?ee(t.length<=1,"Ambiguous GraphQL document: contains "+t.length+" operations"):ee(t.length<=1,48),e}function He(e){return Ke(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function Je(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}function Xe(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function Ze(e){var t=He(e);return __DEV__?ee(t&&"query"===t.operation,"Must contain a query definition."):ee(t&&"query"===t.operation,49),t}function et(e){var t;Ke(e);for(var n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw __DEV__?new Z("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new Z(53)}function tt(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach((function(e){e.defaultValue&&Le(t,e.variable.name,e.defaultValue)})),t}function nt(e,t){return t?t(e):Ce.of()}function rt(e){return"function"==typeof e?new at(e):e}function it(e){return e.request.length<=1}var ot=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return(0,K.ZT)(t,e),t}(Error),at=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return Ce.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(rt).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,n,r){var i=rt(n),o=rt(r||new e(nt));return it(i)&&it(o)?new e((function(e){return t(e)?i.request(e)||Ce.of():o.request(e)||Ce.of()})):new e((function(e,n){return t(e)?i.request(e,n)||Ce.of():o.request(e,n)||Ce.of()}))},e.execute=function(e,t){return e.request(function(e,t){var n=(0,K.pi)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n="function"==typeof e?(0,K.pi)((0,K.pi)({},n),e(n)):(0,K.pi)((0,K.pi)({},n),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return(0,K.pi)({},n)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?Je(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw __DEV__?new Z("illegal argument: "+i):new Z(26)}return e}(t))))||Ce.of()},e.concat=function(t,n){var r=rt(t);if(it(r))return __DEV__&&ee.warn(new ot("You are calling concat on a terminating link, which will have no effect",r)),r;var i=rt(n);return it(i)?new e((function(e){return r.request(e,(function(e){return i.request(e)||Ce.of()}))||Ce.of()})):new e((function(e,t){return r.request(e,(function(e){return i.request(e,t)||Ce.of()}))||Ce.of()}))},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(nt)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new Z("request is not implemented"):new Z(21)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}(),st=n(5821),ut=n(5217),ct={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"]},lt=Object.freeze({});function ft(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ct,r=void 0,i=Array.isArray(e),o=[e],a=-1,s=[],u=void 0,c=void 0,l=void 0,f=[],p=[],d=e;do{var h=++a===o.length,v=h&&0!==s.length;if(h){if(c=0===p.length?void 0:f[f.length-1],u=l,l=p.pop(),v){if(i)u=u.slice();else{for(var y={},m=0,g=Object.keys(u);m<g.length;m++){var _=g[m];y[_]=u[_]}u=y}for(var b=0,E=0;E<s.length;E++){var w=s[E][0],S=s[E][1];i&&(w-=b),i&&null===S?(u.splice(w,1),b++):u[w]=S}}a=r.index,o=r.keys,s=r.edits,i=r.inArray,r=r.prev}else{if(c=l?i?a:o[a]:void 0,null==(u=l?l[c]:d))continue;l&&f.push(c)}var T,I=void 0;if(!Array.isArray(u)){if(!(0,ut.UG)(u))throw new Error("Invalid AST Node: ".concat((0,st.Z)(u),"."));var O=pt(t,u.kind,h);if(O){if((I=O.call(t,u,c,l,f,p))===lt)break;if(!1===I){if(!h){f.pop();continue}}else if(void 0!==I&&(s.push([c,I]),!h)){if(!(0,ut.UG)(I)){f.pop();continue}u=I}}}void 0===I&&v&&s.push([c,u]),h?f.pop():(r={inArray:i,index:a,keys:o,edits:s,prev:r},o=(i=Array.isArray(u))?u:null!==(T=n[u.kind])&&void 0!==T?T:[],a=-1,s=[],l&&p.push(l),l=u)}while(void 0!==r);return 0!==s.length&&(d=s[s.length-1][1]),d}function pt(e,t,n){var r=e[t];if(r){if(!n&&"function"==typeof r)return r;var i=n?r.leave:r.enter;if("function"==typeof i)return i}else{var o=n?e.leave:e.enter;if(o){if("function"==typeof o)return o;var a=o[t];if("function"==typeof a)return a}}}var dt=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=__DEV__?new Z("Network request failed. "+t+" is not serializable: "+e.message):new Z(23);throw r.parseError=e,r}return n},ht=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")},vt=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},yt=Object.prototype.hasOwnProperty;function mt(e){return function(t){return t.text().then((function(e){try{return JSON.parse(e)}catch(r){var n=r;throw n.name="ServerParseError",n.response=t,n.statusCode=t.status,n.bodyText=e,n}})).then((function(n){return t.status>=300&&vt(t,n,"Response not successful: Received status code "+t.status),Array.isArray(n)||yt.call(n,"data")||yt.call(n,"errors")||vt(t,n,"Server response was missing for query '"+(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName)+"'."),n}))}}var gt=function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new Z("\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 Z(22)},_t=n(7392);function bt(e){return ft(e,{leave:Et})}var Et={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return St(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=It("(",St(e.variableDefinitions,", "),")"),i=St(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?St([t,St([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+It(" = ",r)+It(" ",St(i," "))},SelectionSet:function(e){return Tt(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet,a=It("",t,": ")+n,s=a+It("(",St(r,", "),")");return s.length>80&&(s=a+It("(\n",Ot(St(r,"\n")),"\n)")),St([s,St(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+It(" ",St(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return St(["...",It("on ",t),St(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(It("(",St(r,", "),")")," ")+"on ".concat(n," ").concat(It("",St(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,_t.LZ)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+St(e.values,", ")+"]"},ObjectValue:function(e){return"{"+St(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+It("(",St(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:wt((function(e){var t=e.directives,n=e.operationTypes;return St(["schema",St(t," "),Tt(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:wt((function(e){return St(["scalar",e.name,St(e.directives," ")]," ")})),ObjectTypeDefinition:wt((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return St(["type",t,It("implements ",St(n," & ")),St(r," "),Tt(i)]," ")})),FieldDefinition:wt((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(Dt(n)?It("(\n",Ot(St(n,"\n")),"\n)"):It("(",St(n,", "),")"))+": "+r+It(" ",St(i," "))})),InputValueDefinition:wt((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return St([t+": "+n,It("= ",r),St(i," ")]," ")})),InterfaceTypeDefinition:wt((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return St(["interface",t,It("implements ",St(n," & ")),St(r," "),Tt(i)]," ")})),UnionTypeDefinition:wt((function(e){var t=e.name,n=e.directives,r=e.types;return St(["union",t,St(n," "),r&&0!==r.length?"= "+St(r," | "):""]," ")})),EnumTypeDefinition:wt((function(e){var t=e.name,n=e.directives,r=e.values;return St(["enum",t,St(n," "),Tt(r)]," ")})),EnumValueDefinition:wt((function(e){return St([e.name,St(e.directives," ")]," ")})),InputObjectTypeDefinition:wt((function(e){var t=e.name,n=e.directives,r=e.fields;return St(["input",t,St(n," "),Tt(r)]," ")})),DirectiveDefinition:wt((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(Dt(n)?It("(\n",Ot(St(n,"\n")),"\n)"):It("(",St(n,", "),")"))+(r?" repeatable":"")+" on "+St(i," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return St(["extend schema",St(t," "),Tt(n)]," ")},ScalarTypeExtension:function(e){return St(["extend scalar",e.name,St(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return St(["extend type",t,It("implements ",St(n," & ")),St(r," "),Tt(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return St(["extend interface",t,It("implements ",St(n," & ")),St(r," "),Tt(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return St(["extend union",t,St(n," "),r&&0!==r.length?"= "+St(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return St(["extend enum",t,St(n," "),Tt(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return St(["extend input",t,St(n," "),Tt(r)]," ")}};function wt(e){return function(t){return St([t.description,e(t)],"\n")}}function St(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function Tt(e){return It("{\n",Ot(St(e,"\n")),"\n}")}function It(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function Ot(e){return It(" ",e.replace(/\n/g,"\n "))}function xt(e){return-1!==e.indexOf("\n")}function Dt(e){return null!=e&&e.some(xt)}var At={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},Rt=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=(0,K.pi)((0,K.pi)({},t.options),{headers:t.headers,credentials:t.credentials}),o=t.http||{};n.forEach((function(e){i=(0,K.pi)((0,K.pi)((0,K.pi)({},i),e.options),{headers:(0,K.pi)((0,K.pi)({},i.headers),kt(e.headers))}),e.credentials&&(i.credentials=e.credentials),o=(0,K.pi)((0,K.pi)({},o),e.http)}));var a=e.operationName,s=e.extensions,u=e.variables,c=e.query,l={operationName:a,variables:u};return o.includeExtensions&&(l.extensions=s),o.includeQuery&&(l.query=bt(c)),{options:i,body:l}};function kt(e){if(e){var t=Object.create(null);return Object.keys(Object(e)).forEach((function(n){t[n.toLowerCase()]=e[n]})),t}return e}var Ct=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}};function Pt(e){return new Ce((function(t){t.error(e)}))}var Nt=ie((function(){return fetch})),Ft=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,i=e.includeExtensions,o=e.useGETForQueries,a=e.includeUnusedVariables,s=void 0!==a&&a,u=(0,K._T)(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&gt(r||Nt);var c={http:{includeExtensions:i},options:u.fetchOptions,credentials:u.credentials,headers:u.headers};return new at((function(e){var t=ht(e,n),i=e.getContext(),a={};if(i.clientAwareness){var u=i.clientAwareness,l=u.name,f=u.version;l&&(a["apollographql-client-name"]=l),f&&(a["apollographql-client-version"]=f)}var p,d=(0,K.pi)((0,K.pi)({},a),i.headers),h={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:d},v=Rt(e,At,c,h),y=v.options,m=v.body;if(m.variables&&!s){var g=new Set(Object.keys(m.variables));ft(e.query,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&g.delete(e.name.value)}}),g.size&&(m.variables=(0,K.pi)({},m.variables),g.forEach((function(e){delete m.variables[e]})))}if(!y.signal){var _=Ct(),b=_.controller,E=_.signal;(p=b)&&(y.signal=E)}if(o&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(y.method="GET"),"GET"===y.method){var w=function(e,t){var n=[],r=function(e,t){n.push(e+"="+encodeURIComponent(t))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=dt(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var o=void 0;try{o=dt(t.extensions,"Extensions map")}catch(e){return{parseError:e}}r("extensions",o)}var a="",s=e,u=e.indexOf("#");-1!==u&&(a=e.substr(u),s=e.substr(0,u));var c=-1===s.indexOf("?")?"?":"&";return{newURI:s+c+n.join("&")+a}}(t,m),S=w.newURI,T=w.parseError;if(T)return Pt(T);t=S}else try{y.body=dt(m,"Payload")}catch(T){return Pt(T)}return new Ce((function(n){return(r||ie((function(){return fetch}))||Nt)(t,y).then((function(t){return e.setContext({response:t}),t})).then(mt(e)).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){p&&p.abort()}}))}))}(t).request)||this;return n.options=t,n}return(0,K.ZT)(t,e),t}(at),jt=at.execute;function Ut(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach((function(e){e&&Object.keys(e).forEach((function(t){var r=e[t];void 0!==r&&(n[t]=r)}))})),n}var Mt=Object.prototype,Lt=Mt.toString,Bt=Mt.hasOwnProperty,qt=Function.prototype.toString,Vt=new Map;function $t(e,t){try{return Gt(e,t)}finally{Vt.clear()}}function Gt(e,t){if(e===t)return!0;var n,r,i,o=Lt.call(e);if(o!==Lt.call(t))return!1;switch(o){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(Yt(e,t))return!0;var a=zt(e),s=zt(t),u=a.length;if(u!==s.length)return!1;for(var c=0;c<u;++c)if(!Bt.call(t,a[c]))return!1;for(c=0;c<u;++c){var l=a[c];if(!Gt(e[l],t[l]))return!1}return!0;case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==""+t;case"[object Map]":case"[object Set]":if(e.size!==t.size)return!1;if(Yt(e,t))return!0;for(var f=e.entries(),p="[object Map]"===o;;){var d=f.next();if(d.done)break;var h=d.value,v=h[0],y=h[1];if(!t.has(v))return!1;if(p&&!Gt(y,t.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]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":var m=e.byteLength;if(m===t.byteLength)for(;m--&&e[m]===t[m];);return-1===m;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var g=qt.call(e);return g===qt.call(t)&&(r=Wt,!((i=(n=g).length-r.length)>=0&&n.indexOf(r,i)===i))}return!1}function zt(e){return Object.keys(e).filter(Qt,e)}function Qt(e){return void 0!==this[e]}var Wt="{ [native code] }";function Yt(e,t){var n=Vt.get(e);if(n){if(n.has(t))return!0}else Vt.set(e,n=new Set);return n.add(t),!1}var Kt,Ht,Jt=function(){return Object.create(null)},Xt=Array.prototype,Zt=Xt.forEach,en=Xt.slice,tn=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=Jt),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return Zt.call(e,(function(e){return t=t.getChildTrie(e)})),t.data||(t.data=this.makeData(en.call(e)))},e.prototype.getChildTrie=function(t){var n=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=n.get(t);return r||n.set(t,r=new e(this.weakness,this.makeData)),r},e}(),nn="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),rn="function"==typeof WeakSet,on="function"==typeof Symbol&&"function"==typeof Symbol.for,an=function(){function e(){this.known=new(rn?WeakSet:Set),this.pool=new tn(nn),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return Pe(e)&&this.known.has(e)},e.prototype.pass=function(e){if(Pe(e)){var t=function(e){return Pe(e)?Array.isArray(e)?e.slice(0):(0,K.pi)({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(Pe(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var r=e.map(this.admit,this);return(s=this.pool.lookupArray(r)).array||(this.known.add(s.array=r),__DEV__&&Object.freeze(r)),s.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),o=[i],a=this.sortedKeys(e);o.push(a.json);var s,u=o.length;if(a.sorted.forEach((function(n){o.push(t.admit(e[n]))})),!(s=this.pool.lookupArray(o)).object){var c=s.object=Object.create(i);this.known.add(c),a.sorted.forEach((function(e,t){c[e]=o[u+t]})),__DEV__&&Object.freeze(c)}return s.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}(),sn=Object.assign((function(e){if(Pe(e)){void 0===Kt&&un();var t=Kt.admit(e),n=Ht.get(t);return void 0===n&&Ht.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)}),{reset:un});function un(){Kt=new an,Ht=new(nn?WeakMap:Map)}function cn(e,t,n){return new Ce((function(r){var i=r.next,o=r.error,a=r.complete,s=0,u=!1,c={then:function(e){return new Promise((function(t){return t(e())}))}};function l(e,t){return e?function(t){++s;var n=function(){return e(t)};c=c.then(n,n).then((function(e){--s,i&&i.call(r,e),u&&f.complete()}),(function(e){throw--s,e})).catch((function(e){o&&o.call(r,e)}))}:function(e){return t&&t.call(r,e)}}var f={next:l(t,i),error:l(n,o),complete:function(){u=!0,s||a&&a.call(r)}},p=e.subscribe(f);return function(){return p.unsubscribe()}}))}function ln(e){return e.errors&&e.errors.length>0||!1}function fn(e,t,n){var r=0;return e.forEach((function(n,i){t.call(this,n,i,e)&&(e[r++]=n)}),n),e.length=r,e}var pn={kind:"Field",name:{kind:"Name",value:"__typename"}};function dn(e,t){return e.selectionSet.selections.every((function(e){return"FragmentSpread"===e.kind&&dn(t[e.name.value],t)}))}function hn(e){return dn(He(e)||function(e){__DEV__?ee("Document"===e.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'):ee("Document"===e.kind,50),__DEV__?ee(e.definitions.length<=1,"Fragment must have exactly one definition."):ee(e.definitions.length<=1,51);var t=e.definitions[0];return __DEV__?ee("FragmentDefinition"===t.kind,"Must be a fragment definition."):ee("FragmentDefinition"===t.kind,52),t}(e),Fe(Xe(e)))?null:e}function vn(e){return function(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function yn(e,t){var n=Object.create(null),r=[],i=Object.create(null),o=[],a=hn(ft(t,{Variable:{enter:function(e,t,r){"VariableDefinition"!==r.kind&&(n[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&e.some((function(e){return e.remove}))&&t.directives&&t.directives.some(vn(e)))return t.arguments&&t.arguments.forEach((function(e){"Variable"===e.value.kind&&r.push({name:e.value.name.value})})),t.selectionSet&&_n(t.selectionSet).forEach((function(e){o.push({name:e.name.value})})),null}},FragmentSpread:{enter:function(e){i[e.name.value]=!0}},Directive:{enter:function(t){if(vn(e)(t))return null}}}));return a&&fn(r,(function(e){return!!e.name&&!n[e.name]})).length&&(a=function(e,t){var n=function(e){return function(t){return e.some((function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))}))}}(e);return hn(ft(t,{OperationDefinition:{enter:function(t){return(0,K.pi)((0,K.pi)({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))})):[]})}},Field:{enter:function(t){if(e.some((function(e){return e.remove}))){var r=0;if(t.arguments&&t.arguments.forEach((function(e){n(e)&&(r+=1)})),1===r)return null}}},Argument:{enter:function(e){if(n(e))return null}}}))}(r,a)),a&&fn(o,(function(e){return!!e.name&&!i[e.name]})).length&&(a=function(e,t){function n(t){if(e.some((function(e){return e.name===t.name.value})))return null}return hn(ft(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(o,a)),a}var mn=Object.assign((function(e){return ft(Ke(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r&&!r.some((function(e){return We(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=n;if(!(We(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return(0,K.pi)((0,K.pi)({},e),{selections:(0,K.ev)((0,K.ev)([],r,!0),[pn],!1)})}}}}})}),{added:function(e){return e===pn}}),gn={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some((function(e){return"key"===e.name.value}))||__DEV__&&ee.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.")),t}};function _n(e){var t=[];return e.selections.forEach((function(e){(We(e)||Ye(e))&&e.selectionSet?_n(e.selectionSet).forEach((function(e){return t.push(e)})):"FragmentSpread"===e.kind&&t.push(e)})),t}function bn(e){if("query"===et(e).operation)return e;var t=ft(e,{OperationDefinition:{enter:function(e){return(0,K.pi)((0,K.pi)({},e),{operation:"query"})}}});return t}function En(e,t){var n=e.directives;return!n||!n.length||function(e){var t=[];return e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var n=e.arguments,r=e.name.value;__DEV__?ee(n&&1===n.length,"Incorrect number of arguments for the @"+r+" directive."):ee(n&&1===n.length,40);var i=n[0];__DEV__?ee(i.name&&"if"===i.name.value,"Invalid argument for the @"+r+" directive."):ee(i.name&&"if"===i.name.value,41);var o=i.value;__DEV__?ee(o&&("Variable"===o.kind||"BooleanValue"===o.kind),"Argument for the @"+r+" directive must be a variable or a boolean value."):ee(o&&("Variable"===o.kind||"BooleanValue"===o.kind),42),t.push({directive:e,ifArgument:i})}})),t}(n).every((function(e){var n=e.directive,r=e.ifArgument,i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],__DEV__?ee(void 0!==i,"Invalid variable referenced in @"+n.name.value+" directive."):ee(void 0!==i,39)):i=r.value.value,"skip"===n.name.value?!i:i}))}function wn(e,t){return function(e){var t=[];return ft(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function Sn(e){return e&&wn(["client"],e)&&wn(["export"],e)}var Tn=new Map;function In(e){var t=Tn.get(e)||1;return Tn.set(e,t+1),e+":"+t+":"+Math.random().toString(36).slice(2)}function On(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function xn(e){function t(t){Object.defineProperty(e,t,{value:Ce})}return on&&Symbol.species&&t(Symbol.species),t("@@species"),e}function Dn(e){return e&&"function"==typeof e.then}var An=function(e){function t(t){var n=e.call(this,(function(e){return n.addObserver(e),function(){return n.removeObserver(e)}}))||this;return n.observers=new Set,n.addCount=0,n.promise=new Promise((function(e,t){n.resolve=e,n.reject=t})),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],On(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest=["error",e],n.reject(e),On(n.observers,"error",e))},complete:function(){if(null!==n.sub){var e=n.sources.shift();e?Dn(e)?e.then((function(e){return n.sub=e.subscribe(n.handlers)})):n.sub=e.subscribe(n.handlers):(n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),On(n.observers,"complete"))}}},n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch((function(e){})),"function"==typeof t&&(t=[new Ce(t)]),Dn(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return(0,K.ZT)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e),++this.addCount)},t.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.error(new Error("Observable cancelled prematurely"))},t.prototype.cleanup=function(e){var t=this,n=!1,r=function(){n||(n=!0,t.observers.delete(i),e())},i={next:r,error:r,complete:r},o=this.addCount;this.addObserver(i),this.addCount=o},t}(Ce);function Rn(e){return Array.isArray(e)&&e.length>0}xn(An);var kn,Cn=function(e){function t(n){var r,i,o=n.graphQLErrors,a=n.clientErrors,s=n.networkError,u=n.errorMessage,c=n.extraInfo,l=e.call(this,u)||this;return l.graphQLErrors=o||[],l.clientErrors=a||[],l.networkError=s||null,l.message=u||(i="",(Rn((r=l).graphQLErrors)||Rn(r.clientErrors))&&(r.graphQLErrors||[]).concat(r.clientErrors||[]).forEach((function(e){var t=e?e.message:"Error message not found.";i+=t+"\n"})),r.networkError&&(i+=r.networkError.message+"\n"),i=i.replace(/\n$/,"")),l.extraInfo=c,l.__proto__=t.prototype,l}return(0,K.ZT)(t,e),t}(Error);function Pn(e){return!!e&&e<7}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(kn||(kn={}));var Nn=Object.prototype.toString;function Fn(e){return jn(e)}function jn(e,t){switch(Nn.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach((function(e,r){n[r]=jn(e,t)})),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach((function(n){r[n]=jn(e[n],t)})),r;default:return e}}var Un=Object.assign,Mn=Object.hasOwnProperty,Ln=!1,Bn=function(e){function t(t){var n=t.queryManager,r=t.queryInfo,i=t.options,o=e.call(this,(function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=qn)}catch(e){}var n=!o.observers.size;o.observers.add(e);var r=o.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(r.result),n&&o.reobserve().catch((function(){})),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}}))||this;o.observers=new Set,o.subscriptions=new Set,o.isTornDown=!1,o.options=i,o.queryId=r.queryId||n.generateQueryId();var a=He(i.query);return o.queryName=a&&a.name&&a.name.value,o.initialFetchPolicy=i.fetchPolicy||"cache-first",o.queryManager=n,o.queryInfo=r,o}return(0,K.ZT)(t,e),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||kn.ready,r=(0,K.pi)((0,K.pi)({},t),{loading:Pn(n),networkStatus:n}),i=this.options.fetchPolicy,o=void 0===i?"cache-first":i;if((t||"network-only"!==o&&"no-cache"!==o&&"standby"!==o)&&!this.queryManager.transform(this.options.query).hasForcedResolvers){var a=this.queryInfo.getDiff();(a.complete||this.options.returnPartialData)&&(r.data=a.result),$t(r.data,{})&&(r.data=void 0),a.complete?(r.networkStatus!==kn.loading||"cache-first"!==o&&"cache-only"!==o||(r.networkStatus=kn.ready,r.loading=!1),delete r.partial):"no-cache"!==o&&(r.partial=!0),!__DEV__||a.complete||this.options.partialRefetch||r.loading||r.data||r.error||Vn(a.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!$t(this.last.result,e)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||$t(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,n={pollInterval:0},r=this.options.fetchPolicy;if("no-cache"===r?n.fetchPolicy="no-cache":"cache-and-network"!==r&&(n.fetchPolicy="network-only"),__DEV__&&e&&Mn.call(e,"variables")){var i=Ze(this.options.query),o=i.variableDefinitions;o&&o.some((function(e){return"variables"===e.variable.name.value}))||__DEV__&&ee.warn("Called refetch("+JSON.stringify(e)+") for query "+((null===(t=i.name)||void 0===t?void 0:t.value)||JSON.stringify(i))+", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?")}return e&&!$t(this.options.variables,e)&&(n.variables=this.options.variables=(0,K.pi)((0,K.pi)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,kn.refetch)},t.prototype.fetchMore=function(e){var t=this,n=(0,K.pi)((0,K.pi)({},e.query?e:(0,K.pi)((0,K.pi)((0,K.pi)({},this.options),e),{variables:(0,K.pi)((0,K.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=kn.fetchMore,this.observe()),this.queryManager.fetchQuery(r,n,kn.fetchMore).then((function(r){var i=r.data,o=e.updateQuery;return o?(__DEV__&&!Ln&&(__DEV__&&ee.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."),Ln=!0),t.updateQuery((function(e){return o(e,{fetchMoreResult:i,variables:n.variables})}))):t.queryManager.cache.writeQuery({query:n.query,variables:n.variables,data:i}),r})).finally((function(){t.queryManager.stopQuery(r),t.reobserve()}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError?e.onError(t):__DEV__&&ee.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return $t(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.initialFetchPolicy,variables:e},kn.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(n){if(!t||t.interval!==n){__DEV__?ee(n,"Attempted to start a polling query without a polling interval."):ee(n,12),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(Pn(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"network-only"},kn.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=(0,K.pi)((0,K.pi)({},this.last),{result:this.queryManager.assumeImmutableResults?e:Fn(e),variables:t}),Rn(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var r=t===kn.refetch||t===kn.fetchMore||t===kn.poll,i=this.options.variables,o=r?Ut(this.options,e):Un(this.options,Ut(e));r||(this.updatePolling(),e&&e.variables&&!e.fetchPolicy&&!$t(e.variables,i)&&(o.fetchPolicy=this.initialFetchPolicy,void 0===t&&(t=kn.setVariables)));var a=o.variables&&(0,K.pi)({},o.variables),s=this.fetch(o,t),u={next:function(e){n.reportResult(e,a)},error:function(e){n.reportError(e,a)}};return r||(this.concast&&this.observer&&this.concast.removeObserver(this.observer,!0),this.concast=s,this.observer=u),s.addObserver(u),s.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){(this.getLastError()||this.isDifferentFromLastResult(e))&&(this.updateLastResult(e,t),On(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=(0,K.pi)((0,K.pi)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:kn.error,loading:!1});this.updateLastResult(n,t),On(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(Ce);function qn(e){__DEV__&&ee.error("Unhandled error",e.message,e.stack)}function Vn(e){__DEV__&&Rn(e)&&__DEV__&&ee.debug("Missing cache result fields: "+e.map((function(e){return e.path.join(".")})).join(", "),e)}xn(Bn);var $n=Object.prototype.hasOwnProperty;function Gn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return zn(e)}function zn(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new Wn,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var Qn=function(e,t,n){return this.merge(e[n],t[n])},Wn=function(){function e(e){void 0===e&&(e=Qn),this.reconciler=e,this.isObject=Pe,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return Pe(t)&&Pe(e)?(Object.keys(t).forEach((function(i){if($n.call(e,i)){var o=e[i];if(t[i]!==o){var a=n.reconciler.apply(n,(0,K.ev)([e,t,i],r,!1));a!==o&&((e=n.shallowCopyForMerge(e))[i]=a)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]})),e):t},e.prototype.shallowCopyForMerge=function(e){return Pe(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,K.pi)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}(),Yn=null,Kn={},Hn=1,Jn="@wry/context:Slot",Xn=Array,Zn=Xn[Jn]||function(){var e=function(){function e(){this.id=["slot",Hn++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=Yn;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===Kn)break;return e!==Yn&&(Yn.slots[this.id]=t),!0}return Yn&&(Yn.slots[this.id]=Kn),!1},e.prototype.getValue=function(){if(this.hasValue())return Yn.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=Yn;Yn={parent:a,slots:o};try{return t.apply(r,n)}finally{Yn=a}},e.bind=function(e){var t=Yn;return function(){var n=Yn;try{return Yn=t,e.apply(this,arguments)}finally{Yn=n}}},e.noContext=function(e,t,n){if(!Yn)return e.apply(n,t);var r=Yn;try{return Yn=null,e.apply(n,t)}finally{Yn=r}},e}();try{Object.defineProperty(Xn,Jn,{value:Xn[Jn]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();function er(){}Zn.bind,Zn.noContext;var tr,nr=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=er),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},e.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),rr=new Zn,ir=Object.prototype.hasOwnProperty,or=void 0===(tr=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:tr;function ar(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var sr=[];function ur(e,t){if(!e)throw new Error(t||"assertion failure")}function cr(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var lr=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!dr(this))return fr(this),this.value[0]},e.prototype.recompute=function(e){return ur(!this.recomputing,"already recomputing"),fr(this),dr(this)?function(e,t){return br(e),rr.withValue(e,pr,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{ar(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,dr(e)||vr(e)}(e),cr(e.value)}(this,e):cr(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,hr(this),ar(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),br(this),yr(this,(function(t,n){t.setDirty(),Er(t,e)}))},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=sr.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(or(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),sr.push(this.deps),this.deps=null)},e.count=0,e}();function fr(e){var t=rr.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),dr(e)?mr(t,e):gr(t,e),t}function pr(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function dr(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function hr(e){yr(e,mr)}function vr(e){yr(e,gr)}function yr(e,t){var n=e.parents.size;if(n)for(var r=or(e.parents),i=0;i<n;++i)t(r[i],e)}function mr(e,t){ur(e.childValues.has(t)),ur(dr(t));var n=!dr(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=sr.pop()||new Set;e.dirtyChildren.add(t),n&&hr(e)}function gr(e,t){ur(e.childValues.has(t)),ur(!dr(t));var n,r,i,o=e.childValues.get(t);0===o.length?e.childValues.set(t,t.value.slice(0)):(n=o,r=t.value,(i=n.length)>0&&i===r.length&&n[i-1]===r[i-1]||e.setDirty()),_r(e,t),dr(e)||vr(e)}function _r(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(sr.length<100&&sr.push(n),e.dirtyChildren=null))}function br(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){Er(e,n)})),e.forgetDeps(),ur(null===e.dirtyChildren)}function Er(e,t){t.parents.delete(e),e.childValues.delete(t),_r(e,t)}var wr={setDirty:!0,dispose:!0,forget:!0};function Sr(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=rr.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(ar(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&ir.call(wr,n)?n:"setDirty";or(r).forEach((function(e){return e[i]()})),t.delete(e),ar(r)}},r}function Tr(){var e=new tn("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}Tr();var Ir=new Set;function Or(e,t){void 0===t&&(t=Object.create(null));var n=new nr(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,i=t.makeCacheKey||Tr(),o=function(){var o=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=n.get(o);a||(n.set(o,a=new lr(e)),a.subscribe=t.subscribe,a.forget=function(){return n.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return n.set(o,a),Ir.add(n),rr.hasValue()||(Ir.forEach((function(e){return e.clean()})),Ir.clear()),s};function a(e){var t=n.get(e);t&&t.setDirty()}function s(e){var t=n.get(e);if(t)return t.peek()}function u(e){return n.delete(e)}return Object.defineProperty(o,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))},o.peekKey=s,o.peek=function(){return s(i.apply(null,arguments))},o.forgetKey=u,o.forget=function(){return u(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(o)}var xr=new Zn,Dr=new WeakMap;function Ar(e){var t=Dr.get(e);return t||Dr.set(e,t={vars:new Set,dep:Sr()}),t}function Rr(e){Ar(e).vars.forEach((function(t){return t.forgetCache(e)}))}function kr(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach((function(e){Ar(e).dep.dirty(r),Cr(e)}));var a=Array.from(n);n.clear(),a.forEach((function(t){return t(e)}))}}else{var s=xr.getValue();s&&(i(s),Ar(s).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),Ar(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function Cr(e){e.broadcastWatches&&e.broadcastWatches()}var Pr=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=Gn(t.resolvers,e)})):this.resolvers=Gn(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return(0,K.mG)(this,void 0,void 0,(function(){return(0,K.Jh)(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then((function(e){return(0,K.pi)((0,K.pi)({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return wn(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return function(e){Ke(e);var t=yn([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=ft(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return We(e)&&"__typename"===e.name.value})))return null}}})),t}(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,K.pi)((0,K.pi)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),(0,K.mG)(this,void 0,void 0,(function(){return(0,K.Jh)(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return(0,K.pi)((0,K.pi)({},t),e.exportedVariables)}))]:[2,(0,K.pi)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return ft(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return lt}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:bn(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,i,o){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),(0,K.mG)(this,void 0,void 0,(function(){var a,s,u,c,l,f,p,d,h;return(0,K.Jh)(this,(function(v){return a=et(e),s=Xe(e),u=Fe(s),c=a.operation,l=c?c.charAt(0).toUpperCase()+c.slice(1):"Query",p=(f=this).cache,d=f.client,h={fragmentMap:u,context:(0,K.pi)((0,K.pi)({},n),{cache:p,client:d}),variables:r,fragmentMatcher:i,defaultOperationType:l,exportedVariables:{},onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,t,h).then((function(e){return{result:e,exportedVariables:h.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n){return(0,K.mG)(this,void 0,void 0,(function(){var r,i,o,a,s,u=this;return(0,K.Jh)(this,(function(c){return r=n.fragmentMap,i=n.context,o=n.variables,a=[t],s=function(e){return(0,K.mG)(u,void 0,void 0,(function(){var s,u;return(0,K.Jh)(this,(function(c){return En(e,o)?We(e)?[2,this.resolveField(e,t,n).then((function(t){var n;void 0!==t&&a.push(((n={})[ze(e)]=t,n))}))]:(Ye(e)?s=e:(s=r[e.name.value],__DEV__?ee(s,"No fragment named "+e.name.value):ee(s,11)),s&&s.typeCondition&&(u=s.typeCondition.name.value,n.fragmentMatcher(t,u,i))?[2,this.resolveSelectionSet(s.selectionSet,t,n).then((function(e){a.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(s)).then((function(){return zn(a)}))]}))}))},e.prototype.resolveField=function(e,t,n){return(0,K.mG)(this,void 0,void 0,(function(){var r,i,o,a,s,u,c,l,f,p=this;return(0,K.Jh)(this,(function(d){return r=n.variables,i=e.name.value,o=ze(e),a=i!==o,s=t[o]||t[i],u=Promise.resolve(s),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(c=t.__typename||n.defaultOperationType,(l=this.resolvers&&this.resolvers[c])&&(f=l[a?i:o])&&(u=Promise.resolve(xr.withValue(this.cache,f,[t,Ge(e,r),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,u.then((function(t){return void 0===t&&(t=s),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?p.resolveSubSelectedArray(e,t,n):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0})))},e}(),Nr=new(nn?WeakMap:Map);function Fr(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return Nr.set(e,(Nr.get(e)+1)%1e15),n.apply(this,arguments)})}function jr(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Ur=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;Nr.has(n)||(Nr.set(n,0),Fr(n,"evict"),Fr(n,"modify"),Fr(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||kn.loading;return this.variables&&this.networkStatus!==kn.loading&&!$t(this.variables,e.variables)&&(t=kn.setVariables),$t(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){jr(this),this.lastDiff=void 0,this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&$t(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||$t(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():e.reobserve()})):delete this.oqListener)},e.prototype.notify=function(){var e=this;jr(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Pn(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach((function(e){return e.unsubscribe()}));var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=(0,K.pi)((0,K.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&$t(r,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===Nr.get(this.cache)&&$t(t,n.variables)&&$t(e.data,n.result.data))},e.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=Rn(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(Mr(e,t.errorPolicy)?this.cache.performTransaction((function(i){if(r.shouldWrite(e,t.variables))i.writeQuery({query:r.document,data:e.data,variables:t.variables,overwrite:1===n}),r.lastWrite={result:e,variables:t.variables,dmCount:Nr.get(r.cache)};else if(r.lastDiff&&r.lastDiff.diff.complete)return void(e.data=r.lastDiff.diff.result);var o=r.getDiffOptions(t.variables),a=i.diff(o);r.stopped||r.updateWatch(t.variables),r.updateLastDiff(a,o),a.complete&&(e.data=a.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=kn.ready},e.prototype.markError=function(e){return this.networkStatus=kn.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function Mr(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!ln(e);return!r&&n&&e.data&&(r=!0),r}var Lr=Object.prototype.hasOwnProperty,Br=function(){function e(e){var t=e.cache,n=e.link,r=e.queryDeduplication,i=void 0!==r&&r,o=e.onBroadcast,a=e.ssrMode,s=void 0!==a&&a,u=e.clientAwareness,c=void 0===u?{}:u,l=e.localState,f=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(nn?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=n,this.queryDeduplication=i,this.clientAwareness=c,this.localState=l||new Pr({cache:t}),this.ssrMode=s,this.assumeImmutableResults=!!f,(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches(__DEV__?new Z("QueryManager stopped while query was in flight"):new Z(13))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t=e.mutation,n=e.variables,r=e.optimisticResponse,i=e.updateQueries,o=e.refetchQueries,a=void 0===o?[]:o,s=e.awaitRefetchQueries,u=void 0!==s&&s,c=e.update,l=e.onQueryUpdated,f=e.errorPolicy,p=void 0===f?"none":f,d=e.fetchPolicy,h=void 0===d?"network-only":d,v=e.keepRootFields,y=e.context;return(0,K.mG)(this,void 0,void 0,(function(){var e,o,s;return(0,K.Jh)(this,(function(f){switch(f.label){case 0:return __DEV__?ee(t,"mutation option is required. You must specify your GraphQL document in the mutation option."):ee(t,14),__DEV__?ee("network-only"===h||"no-cache"===h,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):ee("network-only"===h||"no-cache"===h,15),e=this.generateMutationId(),t=this.transform(t).document,n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,y)]:[3,2];case 1:n=f.sent(),f.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[e]={mutation:t,variables:n,loading:!0,error:null}),r&&this.markMutationOptimistic(r,{mutationId:e,document:t,variables:n,fetchPolicy:h,errorPolicy:p,context:y,updateQueries:i,update:c,keepRootFields:v}),this.broadcastQueries(),s=this,[2,new Promise((function(f,d){return cn(s.getObservableFromLink(t,(0,K.pi)((0,K.pi)({},y),{optimisticResponse:r}),n,!1),(function(f){if(ln(f)&&"none"===p)throw new Cn({graphQLErrors:f.errors});o&&(o.loading=!1,o.error=null);var d=(0,K.pi)({},f);return"function"==typeof a&&(a=a(d)),"ignore"===p&&ln(d)&&delete d.errors,s.markMutationResult({mutationId:e,result:d,document:t,variables:n,fetchPolicy:h,errorPolicy:p,context:y,update:c,updateQueries:i,awaitRefetchQueries:u,refetchQueries:a,removeOptimistic:r?e:void 0,onQueryUpdated:l,keepRootFields:v})})).subscribe({next:function(e){s.broadcastQueries(),f(e)},error:function(t){o&&(o.loading=!1,o.error=t),r&&s.cache.removeOptimistic(e),s.broadcastQueries(),d(t instanceof Cn?t:new Cn({networkError:t}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&Mr(r,e.errorPolicy)){i.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables});var a=e.updateQueries;a&&this.queries.forEach((function(e,o){var s=e.observableQuery,u=s&&s.queryName;if(u&&Lr.call(a,u)){var c=a[u],l=n.queries.get(o),f=l.document,p=l.variables,d=t.diff({query:f,variables:p,returnPartialData:!0,optimistic:!1}),h=d.result;if(d.complete&&h){var v=c(h,{mutationResult:r,queryName:f&&Je(f)||void 0,queryVariables:p});v&&i.push({result:v,dataId:"ROOT_QUERY",query:f,variables:p})}}}))}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var s=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach((function(e){return t.write(e)}));var a=e.update;if(a){if(!o){var s=t.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});s.complete&&(r=(0,K.pi)((0,K.pi)({},r),{data:s.result}))}a(t,r,{context:e.context,variables:e.variables})}o||e.keepRootFields||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return s.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(s).then((function(){return r}))}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{n.markMutationResult((0,K.pi)((0,K.pi)({},t),{result:{data:r}}),e)}catch(e){__DEV__&&ee.error(e)}}),t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t,n=this.transformCache;if(!n.has(e)){var r=this.cache.transformDocument(e),i=(t=this.cache.transformForLink(r),yn([gn],Ke(t))),o=this.localState.clientQuery(r),a=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:Sn(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:tt(He(r)),asQuery:(0,K.pi)((0,K.pi)({},r),{definitions:r.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,K.pi)((0,K.pi)({},e),{operation:"query"}):e}))})},u=function(e){e&&!n.has(e)&&n.set(e,s)};u(e),u(r),u(o),u(a)}return n.get(e)},e.prototype.getVariables=function(e,t){return(0,K.pi)((0,K.pi)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=(0,K.pi)((0,K.pi)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new Ur(this),n=new Bn({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:e.query,observableQuery:n,variables:e.variables}),n},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?ee(e.query,"query option is required. You must specify your GraphQL document in the query option."):ee(e.query,16),__DEV__?ee("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):ee("Document"===e.query.kind,17),__DEV__?ee(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):ee(!e.returnPartialData,18),__DEV__?ee(!e.pollInterval,"pollInterval option only supported on watchQuery."):ee(!e.pollInterval,19),this.fetchQuery(t,e).finally((function(){return n.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new Z("Store reset while query was in flight (not completed in link chain)"):new Z(20)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=kn.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,r=new Map,i=new Set;return Array.isArray(e)&&e.forEach((function(e){var n;"string"==typeof e?r.set(e,!1):Pe(n=e)&&"Document"===n.kind&&Array.isArray(n.definitions)?r.set(t.transform(e).document,!1):Pe(e)&&e.query&&i.add(e)})),this.queries.forEach((function(t,i){var o=t.observableQuery,a=t.document;if(o){if("all"===e)return void n.set(i,o);var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&r.has(s)||a&&r.has(a))&&(n.set(i,o),s&&r.set(s,!0),a&&r.set(a,!0))}})),i.size&&i.forEach((function(e){var r=In("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new Bn({queryManager:t,queryInfo:i,options:(0,K.pi)((0,K.pi)({},e),{fetchPolicy:"network-only"})});ee(o.queryId===r),i.setObservableQuery(o),n.set(r,o)})),__DEV__&&r.size&&r.forEach((function(e,t){e||__DEV__&&ee.warn("Unknown query "+("string"==typeof t?"named ":"")+JSON.stringify(t,null,2)+" requested in refetchQueries options.include array")})),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach((function(r,i){var o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,s=void 0===a?{}:a;n=this.transform(n).document,o=this.getVariables(n,o);var u=function(e){return t.getObservableFromLink(n,s,e).map((function(o){if("no-cache"!==r&&(Mr(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),ln(o))throw new Cn({graphQLErrors:o.errors});return o}))};if(this.transform(n).hasClientExports){var c=this.localState.addExportedVariables(n,o,s).then(u);return new Ce((function(e){var t=null;return c.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return u(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.getQuery(e).stop(),this.queries.delete(e)},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var i,o,a=this;void 0===r&&(r=null!==(i=null==t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var s=this.transform(e).serverQuery;if(s){var u=this.inFlightLinkObservables,c=this.link,l={query:s,variables:n,operationName:Je(s)||void 0,context:this.prepareContext((0,K.pi)((0,K.pi)({},t),{forceFetch:!r}))};if(t=l.context,r){var f=u.get(s)||new Map;u.set(s,f);var p=sn(n);if(!(o=f.get(p))){var d=new An([jt(c,l)]);f.set(p,o=d),d.cleanup((function(){f.delete(p)&&f.size<1&&u.delete(s)}))}}else o=new An([jt(c,l)])}else o=new An([Ce.of({data:{}})]),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(o=cn(o,(function(e){return a.localState.runResolvers({document:h,remoteResult:e,context:t,variables:n})}))),o},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId();return cn(this.getObservableFromLink(e.document,n.context,n.variables),(function(i){var o=Rn(i.errors);if(r>=e.lastRequestId){if(o&&"none"===n.errorPolicy)throw e.markError(new Cn({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var a={data:i.data,loading:!1,networkStatus:e.networkStatus||kn.ready};return o&&"ignore"!==n.errorPolicy&&(a.errors=i.errors),a}),(function(t){var n=t.hasOwnProperty("graphQLErrors")?t:new Cn({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=kn.loading);var i=this.transform(t.query).document,o=this.getVariables(i,t.variables),a=this.getQuery(e),s=t.fetchPolicy,u=void 0===s?"cache-first":s,c=t.errorPolicy,l=void 0===c?"none":c,f=t.returnPartialData,p=void 0!==f&&f,d=t.notifyOnNetworkStatusChange,h=void 0!==d&&d,v=t.context,y=void 0===v?{}:v,m=Object.assign({},t,{query:i,variables:o,fetchPolicy:u,errorPolicy:l,returnPartialData:p,notifyOnNetworkStatusChange:h,context:y}),g=function(e){return m.variables=e,r.fetchQueryByPolicy(a,m,n)};this.fetchCancelFns.set(e,(function(e){setTimeout((function(){return _.cancel(e)}))}));var _=new An(this.transform(m.query).hasClientExports?this.localState.addExportedVariables(m.query,m.variables,m.context).then(g):g(m.variables));return _.cleanup((function(){r.fetchCancelFns.delete(e),function(e){var t=e.fetchPolicy,n=void 0===t?"cache-first":t,r=e.nextFetchPolicy;r&&(e.fetchPolicy="function"==typeof r?r.call(e,n):r)}(t)})),_},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?In("refetchQueries"):void 0:a,u=e.onQueryUpdated,c=new Map;r&&this.getObservableQueries(r).forEach((function(e,n){c.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})}));var l=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof Ur&&e.watcher.observableQuery;if(r){if(u){c.delete(r.queryId);var i=u(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&l.set(r,i),!1}null!==u&&c.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),c.size&&c.forEach((function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;if(u){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}r=u(i,a,o)}u&&!0!==r||(r=i.refetch()),!1!==r&&l.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)})),s&&this.cache.removeOptimistic(s),l},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,o=t.variables,a=t.fetchPolicy,s=t.refetchWritePolicy,u=t.errorPolicy,c=t.returnPartialData,l=t.context,f=t.notifyOnNetworkStatusChange,p=e.networkStatus;e.init({document:i,variables:o,networkStatus:n});var d=function(){return e.getDiff(o)},h=function(t,n){void 0===n&&(n=e.networkStatus||kn.loading);var a=t.result;!__DEV__||c||$t(a,{})||Vn(t.missing);var s=function(e){return Ce.of((0,K.pi)({data:e,loading:Pn(n),networkStatus:n},t.complete?null:{partial:!0}))};return a&&r.transform(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:a},context:l,variables:o,onlyRunForcedResolvers:!0}).then((function(e){return s(e.data||void 0)})):s(a)},v="no-cache"===a?0:n===kn.refetch&&"merge"!==s?1:2,y=function(){return r.getResultsFromLink(e,v,{variables:o,context:l,fetchPolicy:a,errorPolicy:u})},m=f&&"number"==typeof p&&p!==n&&Pn(n);switch(a){default:case"cache-first":return(g=d()).complete?[h(g,e.markReady())]:c||m?[h(g),y()]:[y()];case"cache-and-network":var g;return(g=d()).complete||c||m?[h(g),y()]:[y()];case"cache-only":return[h(d(),e.markReady())];case"network-only":return m?[h(d()),y()]:[y()];case"no-cache":return m?[h(e.getDiff()),y()]:[y()];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Ur(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,K.pi)((0,K.pi)({},t),{clientAwareness:this.clientAwareness})},e}(),qr=!1;function Vr(e,t){return Ut(e,t,t.variables&&{variables:(0,K.pi)((0,K.pi)({},e.variables),t.variables)})}var $r=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,i=e.headers,o=e.cache,a=e.ssrMode,s=void 0!==a&&a,u=e.ssrForceFetchDelay,c=void 0===u?0:u,l=e.connectToDevTools,f=void 0===l?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:l,p=e.queryDeduplication,d=void 0===p||p,h=e.defaultOptions,v=e.assumeImmutableResults,y=void 0!==v&&v,m=e.resolvers,g=e.typeDefs,_=e.fragmentMatcher,b=e.name,E=e.version,w=e.link;if(w||(w=n?new Ft({uri:n,credentials:r,headers:i}):at.empty()),!o)throw __DEV__?new Z("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 Z(9);if(this.link=w,this.cache=o,this.disableNetworkFetches=s||c>0,this.queryDeduplication=d,this.defaultOptions=h||{},this.typeDefs=g,c&&setTimeout((function(){return t.disableNetworkFetches=!1}),c),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),f&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!qr&&__DEV__&&(qr=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var S=window.navigator,T=S&&S.userAgent,I=void 0;"string"==typeof T&&(T.indexOf("Chrome/")>-1?I="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":T.indexOf("Firefox/")>-1&&(I="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),I&&__DEV__&&ee.log("Download the Apollo DevTools for a better development experience: "+I)}this.version="3.4.17",this.localState=new Pr({cache:o,client:this,resolvers:m,fragmentMatcher:_}),this.queryManager=new Br({cache:this.cache,link:this.link,queryDeduplication:d,ssrMode:s,clientAwareness:{name:b,version:E},localState:this.localState,assumeImmutableResults:y,onBroadcast:f?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Vr(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=(0,K.pi)((0,K.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Vr(this.defaultOptions.query,e)),__DEV__?ee("cache-and-network"!==e.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."):ee("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,K.pi)((0,K.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Vr(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return jt(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach((function(e,t){n.push(t),r.push(e)}));var i=Promise.all(r);return i.queries=n,i.results=r,i.catch((function(e){__DEV__&&ee.debug("In client.refetchQueries, Promise.all promise rejected with error "+e)})),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}(),Gr=function(){function e(){this.getFragmentDoc=Or(Ne)}return e.prototype.batch=function(e){var t="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;this.performTransaction(e.update,t)},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,K.pi)((0,K.pi)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,K.pi)((0,K.pi)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=(0,K._T)(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,o=(0,K._T)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e}(),zr=function(e){function t(n,r,i,o){var a=e.call(this,n)||this;return a.message=n,a.path=r,a.query=i,a.variables=o,a.__proto__=t.prototype,a}return(0,K.ZT)(t,e),t}(Error);function Qr(e){return __DEV__&&(t=e,(n=new Set([t])).forEach((function(e){Pe(e)&&function(e){if(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((function(t){Pe(e[t])&&n.add(e[t])}))}))),e;var t,n}var Wr=Object.prototype.hasOwnProperty;function Yr(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=void 0!==r?{id:r}:void 0!==i?{_id:i}:void 0),void 0===r&&(r=i),void 0!==r))return n+":"+("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var Kr={dataIdFromObject:Yr,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Hr(e){var t=e.canonizeResults;return void 0===t?Kr.canonizeResults:t}var Jr=/^[_a-z][_0-9a-z]*/i;function Xr(e){var t=e.match(Jr);return t?t[0]:e}function Zr(e,t,n){return!!Pe(t)&&(Array.isArray(t)?t.every((function(t){return Zr(e,t,n)})):e.selections.every((function(e){if(We(e)&&En(e,n)){var r=ze(e);return Wr.call(t,r)&&(!e.selectionSet||Zr(e.selectionSet,t[r],n))}return!0})))}function ei(e){return Pe(e)&&!Me(e)&&!Array.isArray(e)}var ti=Object.create(null),ni=function(){return ti},ri=Object.create(null),ii=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return Qr(Me(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return Me(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return Ue(e);if(Me(e))return e;var r=n.policies.identify(e)[0];if(r){var i=Ue(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return(0,K.pi)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),Wr.call(this.data,e)){var n=this.data[e];if(n&&Wr.call(n,t))return n[t]}return"__typename"===t&&Wr.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof ui?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),Wr.call(this.data,e)?this.data[e]:this instanceof ui?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;Me(e)&&(e=e.__ref),Me(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(n=e):e,o="string"==typeof t?this.lookup(n=t):t;if(o){__DEV__?ee("string"==typeof n,"store.merge expects a string ID"):ee("string"==typeof n,1);var a=new Wn(li).merge(i,o);if(this.data[n]=a,a!==i&&(delete this.refs[n],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(o).forEach((function(e){if(!i||i[e]!==a[e]){s[e]=1;var t=Xr(e);t===e||r.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||r instanceof ui||delete a[e]}})),!s.__typename||i&&i.__typename||this.policies.rootTypenamesById[n]!==a.__typename||delete s.__typename,Object.keys(s).forEach((function(e){return r.group.dirty(n,e)}))}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),o=!1,a=!0,s={DELETE:ti,INVALIDATE:ri,isReference:Me,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||Ue(e)}:t,{store:n})}};if(Object.keys(r).forEach((function(u){var c=Xr(u),l=r[u];if(void 0!==l){var f="function"==typeof t?t:t[u]||t[c];if(f){var p=f===ni?ti:f(Qr(l),(0,K.pi)((0,K.pi)({},s),{fieldName:c,storeFieldName:u,storage:n.getStorage(e,u)}));p===ri?n.group.dirty(e,u):(p===ti&&(p=void 0),p!==l&&(i[u]=p,o=!0,l=p))}void 0!==l&&(a=!1)}})),o)return this.merge(e,i),a&&(this instanceof ui?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,a?((r={})[a]=ni,r):ni)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(Wr.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof ui&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach((function(t){Wr.call(e.policies.rootTypenamesById,t)||n.push(t)})),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(n){e&&Wr.call(e,n)||t.delete(n)})),e){var n=e.__META,r=(0,K._T)(e,["__META"]);Object.keys(r).forEach((function(e){t.merge(e,r[e])})),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof ui?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){Wr.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])}));var r=Object.keys(n);if(r.length){for(var i=this;i instanceof ui;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},e.prototype.findChildRefIds=function(e){if(!Wr.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach((function(e){Me(e)&&(t[e.__ref]=!0),Pe(e)&&Object.keys(e).forEach((function(t){var n=e[t];Pe(n)&&r.add(n)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),oi=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?Sr():null,this.keyMaker=new tn(nn)},e.prototype.depend=function(e,t){if(this.d){this.d(ai(e,t));var n=Xr(t);n!==t&&this.d(ai(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(ai(e,t),"__exists"===t?"forget":"setDirty")},e}();function ai(e,t){return t+"#"+e}function si(e,t){fi(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=void 0===r||r,o=t.seed,a=e.call(this,n,new oi(i))||this;return a.stump=new ci(a),a.storageTrie=new tn(nn),o&&a.replace(o),a}return(0,K.ZT)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(ii||(ii={}));var ui=function(e){function t(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return(0,K.ZT)(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach((function(n){$t(r[n],i[n])||t.group.dirty(e,n)})):(t.group.dirty(e,"__exists"),Object.keys(i).forEach((function(n){t.group.dirty(e,n)}))):t.delete(e)})),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,K.pi)((0,K.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return Wr.call(this.data,t)?(0,K.pi)((0,K.pi)({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(ii),ci=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new oi(t.group.caching,t.group))||this}return(0,K.ZT)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(ui);function li(e,t,n){var r=e[n],i=t[n];return $t(r,i)?r:i}function fi(e){return!!(e instanceof ii&&e.group.caching)}function pi(e,t){return new zr(e.message,t.path.slice(),t.query,t.variables)}function di(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var hi=function(){function e(e){var t=this;this.knownResults=new(nn?WeakMap:Map),this.config=Ut(e,{addTypename:!1!==e.addTypename,canonizeResults:Hr(e)}),this.canon=e.canon||new an,this.executeSelectionSet=Or((function(e){var n,r=e.context.canonizeResults,i=di(e);i[3]=!r;var o=(n=t.executeSelectionSet).peek.apply(n,i);return o?r?(0,K.pi)((0,K.pi)({},o),{result:t.canon.admit(o.result)}):o:(si(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:di,makeCacheKey:function(e,t,n,r){if(fi(n.store))return n.store.makeCacheKey(e,Me(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=Or((function(e){return si(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(fi(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new an},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,i=void 0===r?"ROOT_QUERY":r,o=e.variables,a=e.returnPartialData,s=void 0===a||a,u=e.canonizeResults,c=void 0===u?this.config.canonizeResults:u,l=this.config.cache.policies;o=(0,K.pi)((0,K.pi)({},tt(Ze(n))),o);var f=Ue(i),p=this.executeSelectionSet({selectionSet:et(n).selectionSet,objectOrReference:f,enclosingRef:f,context:{store:t,query:n,policies:l,variables:o,varString:sn(o),canonizeResults:c,fragmentMap:Fe(Xe(n)),path:[]}}),d=p.missing&&p.missing.length>0;if(d&&!s)throw p.missing[0];return{result:p.result,missing:p.missing,complete:!d}},e.prototype.isFresh=function(e,t,n,r){if(fi(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.enclosingRef,o=e.context;if(Me(r)&&!o.policies.rootTypenamesById[r.__ref]&&!o.store.has(r.__ref))return{result:this.canon.empty,missing:[pi(__DEV__?new Z("Dangling reference to missing "+r.__ref+" object"):new Z(5),o)]};var a=o.variables,s=o.policies,u=o.store,c=[],l={result:null},f=u.getFieldValue(r,"__typename");function p(){return l.missing||(l.missing=[])}function d(e){var t;return e.missing&&(t=p()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"==typeof f&&!s.rootIdsByTypename[f]&&c.push({__typename:f});var h=new Set(n.selections);h.forEach((function(e){var n;if(En(e,a))if(We(e)){var u=s.readField({fieldName:e.name.value,field:e,variables:o.variables,from:r},o),l=ze(e);o.path.push(l),void 0===u?mn.added(e)||p().push(pi(__DEV__?new Z("Can't find field '"+e.name.value+"' on "+(Me(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2))):new Z(6),o)):Array.isArray(u)?u=d(t.executeSubSelectedArray({field:e,array:u,enclosingRef:i,context:o})):e.selectionSet?null!=u&&(u=d(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:u,enclosingRef:Me(u)?u:i,context:o}))):o.canonizeResults&&(u=t.canon.pass(u)),void 0!==u&&c.push(((n={})[l]=u,n)),ee(o.path.pop()===l)}else{var v=je(e,o.fragmentMap);v&&s.fragmentMatches(v,f)&&v.selectionSet.selections.forEach(h.add,h)}}));var v=zn(c);return l.result=o.canonizeResults?this.canon.admit(v):Qr(v),this.knownResults.set(l.result,n),l},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,o=e.enclosingRef,a=e.context;function s(e,n){return e.missing&&(t=t||[]).push.apply(t,e.missing),ee(a.path.pop()===n),e.result}return r.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map((function(e,t){return null===e?null:(a.path.push(t),Array.isArray(e)?s(n.executeSubSelectedArray({field:r,array:e,enclosingRef:o,context:a}),t):r.selectionSet?s(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:Me(e)?e:o,context:a}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach((function(n){Pe(n)&&(__DEV__?ee(!Me(n),"Missing selection set for object of type "+function(e,t){return Me(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n)+" returned for query field "+t.name.value):ee(!Me(n),7),Object.values(n).forEach(r.add,r))}))}}(a.store,r,e),ee(a.path.pop()===t),e))})),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),vi=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,o=t.dataId,a=t.variables,s=t.overwrite,u=He(r),c=new Wn;a=(0,K.pi)((0,K.pi)({},tt(u)),a);var l={store:e,written:Object.create(null),merge:function(e,t){return c.merge(e,t)},variables:a,varString:sn(a),fragmentMap:Fe(Xe(r)),overwrite:!!s,incomingById:new Map,clientOnly:!1},f=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:l});if(!Me(f))throw __DEV__?new Z("Could not identify object "+JSON.stringify(i)):new Z(8);return l.incomingById.forEach((function(t,r){var i=t.fields,o=t.mergeTree,a=t.selections,s=Ue(r);if(o&&o.map.size){var u=n.applyMerges(o,s,i,l);if(Me(u))return;i=u}if(__DEV__&&!l.overwrite){var c=new Set;a.forEach((function(e){We(e)&&e.selectionSet&&c.add(e.name.value)})),Object.keys(i).forEach((function(e){(function(e){return c.has(Xr(e))})(e)&&!function(e){var t=o&&o.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,n,r){var i=function(e){var t=r.getFieldValue(e,n);return"object"==typeof t&&t},o=i(e);if(o){var a=i(t);if(a&&!Me(o)&&!$t(o,a)&&!Object.keys(o).every((function(e){return void 0!==r.getFieldValue(a,e)}))){var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),u=Xr(n),c=s+"."+u;if(!Ei.has(c)){Ei.add(c);var l=[];Array.isArray(o)||Array.isArray(a)||[o,a].forEach((function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||l.includes(t)||l.push(t)})),__DEV__&&ee.warn("Cache data may be lost when replacing the "+u+" field of a "+s+" object.\n\nTo address this problem (which is not a bug in Apollo Client), "+(l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"")+"define a custom merge function for the "+c+" field, so InMemoryCache can safely merge these objects:\n\n existing: "+JSON.stringify(o).slice(0,1e3)+"\n incoming: "+JSON.stringify(a).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")}}}}(s,i,e,l.store)}))}e.merge(r,i)})),e.retain(f.__ref),f},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,o=e.context,a=e.mergeTree,s=this.cache.policies,u=s.identify(r,i,o.fragmentMap),c=u[0],l=u[1];if("string"==typeof(n=n||c)){var f=o.written[n]||(o.written[n]=[]),p=Ue(n);if(f.indexOf(i)>=0)return p;if(f.push(i),this.reader&&this.reader.isFresh(r,p,i,o))return p}var d=Object.create(null);l&&(d=o.merge(d,l));var h=n&&s.rootTypenamesById[n]||Qe(r,i,o.fragmentMap)||n&&o.store.get(n,"__typename");"string"==typeof h&&(d.__typename=h);var v=new Set(i.selections);if(v.forEach((function(e){var n;if(En(e,o.variables))if(We(e)){var i=ze(e),u=r[i],c=o.clientOnly;if(o.clientOnly=c||!(!e.directives||!e.directives.some((function(e){return"client"===e.name.value}))),void 0!==u){var l=s.getStoreFieldName({typename:h,fieldName:e.name.value,field:e,variables:o.variables}),f=mi(a,l),p=t.processFieldValue(u,e,o,f),y=void 0;if(e.selectionSet&&!(y=o.store.getFieldValue(p,"__typename"))&&Me(p)){var m=o.incomingById.get(p.__ref);y=m&&m.fields.__typename}var g=s.getMergeFunction(h,e.name.value,y);g?f.info={field:e,typename:h,merge:g}:bi(a,l),d=o.merge(d,((n={})[l]=p,n))}else o.clientOnly||mn.added(e)||__DEV__&&ee.error(("Missing field '"+ze(e)+"' while writing result "+JSON.stringify(r,null,2)).substring(0,1e3));o.clientOnly=c}else{var _=je(e,o.fragmentMap);_&&s.fragmentMatches(_,h,r,o.variables)&&_.selectionSet.selections.forEach(v.add,v)}})),"string"==typeof n){var y=o.incomingById.get(n);return y?(y.fields=o.merge(y.fields,d),y.mergeTree=gi(y.mergeTree,a),y.selections.forEach(v.add,v),y.selections=v):o.incomingById.set(n,{fields:d,mergeTree:_i(a)?void 0:a,selections:v}),Ue(n)}return d},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map((function(e,o){var a=i.processFieldValue(e,t,n,mi(r,o));return bi(r,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?Fn(e):e},e.prototype.applyMerges=function(e,t,n,r,i){var o,a=this;if(e.map.size&&!Me(n)){var s,u=Array.isArray(n)||!Me(t)&&!ei(t)?void 0:t,c=n;u&&!i&&(i=[Me(u)?u.__ref:u]);var l=function(e,t){return Array.isArray(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var n=l(u,t),o=l(c,t);if(void 0!==o){i&&i.push(t);var f=a.applyMerges(e,n,o,r,i);f!==o&&(s=s||new Map).set(t,f),i&&ee(i.pop()===t)}})),s&&(n=Array.isArray(c)?c.slice(0):(0,K.pi)({},c),s.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(o=r.store).getStorage.apply(o,i)):n},e}(),yi=[];function mi(e,t){var n=e.map;return n.has(t)||n.set(t,yi.pop()||{map:new Map}),n.get(t)}function gi(e,t){if(e===t||!t||_i(t))return e;if(!e||_i(e))return t;var n=e.info&&t.info?(0,K.pi)((0,K.pi)({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var o=new Set(t.map.keys());e.map.forEach((function(e,n){i.map.set(n,gi(e,t.map.get(n))),o.delete(n)})),o.forEach((function(n){i.map.set(n,gi(t.map.get(n),e.map.get(n)))}))}return i}function _i(e){return!e||!(e.info||e.map.size)}function bi(e,t){var n=e.map,r=n.get(t);r&&_i(r)&&(yi.push(r),n.delete(t))}var Ei=new Set;function wi(e){var t=In("stringifyForDisplay");return JSON.stringify(e,(function(e,n){return void 0===n?t:n})).split(JSON.stringify(t)).join("<undefined>")}function Si(e){return void 0!==e.args?e.args:e.field?Ge(e.field,e.variables):null}qe.setStringify(sn);var Ti=function(){},Ii=function(e,t){return t.fieldName},Oi=function(e,t,n){return(0,n.mergeObjects)(e,t)},xi=function(e,t){return t},Di=function(){function e(e){this.config=e,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=(0,K.pi)({dataIdFromObject:Yr},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t,n){var r=t&&n?Qe(e,t,n):e.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i,o={typename:r,selectionSet:t,fragmentMap:n},a=r&&this.getTypePolicy(r),s=a&&a.keyFn||this.config.dataIdFromObject;s;){var u=s(e,o);if(!Array.isArray(u)){i=u;break}s=Ci(u)}return i=i?String(i):void 0,o.keyObject?[i,o.keyObject]:[i]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n],i=r.queryType,o=r.mutationType,a=r.subscriptionType,s=(0,K._T)(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),a&&t.setRootTypename("Subscription",n),Wr.call(t.toBeAdded,n)?t.toBeAdded[n].push(s):t.toBeAdded[n]=[s]}))},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?Oi:!1===t?xi:e.merge}a(r,t.merge),r.keyFn=!1===i?Ti:Array.isArray(i)?Ci(i):"function"==typeof i?i:r.keyFn,o&&Object.keys(o).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)r.read=i;else{var s=i.keyArgs,u=i.read,c=i.merge;r.keyFn=!1===s?Ii:Array.isArray(s)?ki(s):"function"==typeof s?s:r.keyFn,"function"==typeof u&&(r.read=u),a(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||Ii)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?ee(!r||r===e,"Cannot change root "+e+" __typename more than once"):ee(!r||r===e,2),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(n){t.getSupertypeSet(n,!0),e[n].forEach((function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(Jr);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!Wr.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);r&&r.size&&r.forEach((function(e){var r=t.getTypePolicy(e),i=r.fields,o=(0,K._T)(r,["fields"]);Object.assign(n,o),Object.assign(n.fields,i)}))}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach((function(n){t.updateTypePolicy(e,n)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},c=!(!n||!this.fuzzySubtypes.size),l=!1,f=0;f<s.length;++f){var p=s[f];if(p.has(o))return a.has(o)||(l&&__DEV__&&ee.warn("Inferring subtype "+t+" of supertype "+o),a.add(o)),!0;p.forEach(u),c&&f===s.length-1&&Zr(e.selectionSet,n,r)&&(c=!1,l=!0,this.fuzzySubtypes.forEach((function(e,n){var r=t.match(e);r&&r[0]===t&&u(n)})))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!(!n||!n.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n=e.typename,r=e.fieldName,i=this.getFieldPolicy(n,r,!1),o=i&&i.keyFn;if(o&&n)for(var a={typename:n,fieldName:r,field:e.field||null,variables:e.variables},s=Si(e);o;){var u=o(s,a);if(!Array.isArray(u)){t=u||r;break}o=ki(u)}return void 0===t&&(t=e.field?function(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var i=r.name,o=r.value;return Le(n[e.name.value],i,o,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,i=e.value;return Le(r,n,i,t)}))),qe(e.name.value,r,n)}(e.field,e.variables):qe(r,Si(e))),!1===t?r:r===Xr(t)?t:r+":"+t},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(void 0===e.typename){var r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}var i=this.getStoreFieldName(e),o=Xr(i),a=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,o,!1),u=s&&s.read;if(u){var c=Ai(this,n,e,t,t.store.getStorage(Me(n)?n.__ref:n,i));return xr.withValue(this.cache,u,[a,c])}return a}},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t,!1),i=r&&r.merge;return!i&&n&&(i=(r=this.getTypePolicy(n))&&r.merge),i},e.prototype.runMergeFunction=function(e,t,n,r,i){var o=n.field,a=n.typename,s=n.merge;return s===Oi?Ri(r.store)(e,t):s===xi?t:(r.overwrite&&(e=void 0),s(e,t,Ai(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null))))},e}();function Ai(e,t,n,r,i){var o=e.getStoreFieldName(n),a=Xr(o),s=n.variables||r.variables,u=r.store,c=u.toReference,l=u.canRead;return{args:Si(n),field:n.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:Me,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(n,i){var o;if("string"==typeof n)o={fieldName:n,from:arguments.length>1?i:t};else{if(!Pe(n))return void(__DEV__&&ee.warn("Unexpected readField arguments: "+wi(Array.from(arguments))));o=(0,K.pi)({},n),Wr.call(n,"from")||(o.from=t)}return __DEV__&&void 0===o.from&&__DEV__&&ee.warn("Undefined 'from' passed to readField with arguments "+wi(Array.from(arguments))),void 0===o.variables&&(o.variables=s),e.readField(o,r)},mergeObjects:Ri(r.store)}}function Ri(e){return function(t,n){if(Array.isArray(t)||Array.isArray(n))throw __DEV__?new Z("Cannot automatically merge arrays"):new Z(3);if(Pe(t)&&Pe(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(Me(t)&&ei(n))return e.merge(t.__ref,n),t;if(ei(t)&&Me(n))return e.merge(t,n.__ref),n;if(ei(t)&&ei(n))return(0,K.pi)((0,K.pi)({},t),n)}return n}}function ki(e){return function(t,n){return t?n.fieldName+":"+JSON.stringify(Ni(t,e,!1)):n.fieldName}}function Ci(e){var t=new tn(nn);return function(n,r){var i;if(r.selectionSet&&r.fragmentMap){var o=t.lookupArray([r.selectionSet,r.fragmentMap]);i=o.aliasMap||(o.aliasMap=Pi(r.selectionSet,r.fragmentMap))}var a=r.keyObject=Ni(n,e,!0,i);return r.typename+":"+JSON.stringify(a)}}function Pi(e,t){var n=Object.create(null),r=new Set([e]);return r.forEach((function(e){e.selections.forEach((function(e){if(We(e)){if(e.alias){var i=e.alias.value,o=e.name.value;o!==i&&((n.aliases||(n.aliases=Object.create(null)))[o]=i)}e.selectionSet&&((n.subsets||(n.subsets=Object.create(null)))[e.name.value]=Pi(e.selectionSet,t))}else{var a=je(e,t);a&&r.add(a.selectionSet)}}))})),n}function Ni(e,t,n,r){var i,o,a=Object.create(null);return t.forEach((function(t){if(Array.isArray(t)){if("string"==typeof o&&"string"==typeof i){var s=r&&r.subsets,u=s&&s[o];a[o]=Ni(e[i],t,n,u)}}else{var c=r&&r.aliases,l=c&&c[t]||t;Wr.call(e,l)?a[o=t]=e[i=l]:(__DEV__?ee(!n,"Missing field '"+l+"' while computing key fields"):ee(!n,4),i=o=void 0)}})),a}var Fi=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=kr,n.txCount=0,n.config=function(e){return Ut(Kr,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new Di({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,K.ZT)(t,e),t.prototype.init=function(){var e=this.data=new ii.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader;this.storeWriter=new vi(this,this.storeReader=new hi({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Hr(this.config),canon:e?void 0:n&&n.canon})),this.maybeBroadcastWatch=Or((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(fi(n)){var r=e.optimistic,i=e.rootId,o=e.variables;return n.makeCacheKey(e.query,e.callback,sn({optimistic:r,rootId:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore((0,K.pi)((0,K.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(e){if(e instanceof zr)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(Wr.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,K.pi)((0,K.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t,n=this;return this.watches.size||Ar(t=this).vars.forEach((function(e){return e.attachCache(t)})),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){n.watches.delete(e)&&!n.watches.size&&Rr(n),n.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){sn.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){return Me(e)?e.__ref:this.policies.identify(e)[0]},t.prototype.evict=function(e){if(!e.id){if(Wr.call(e,"id"))return!1;e=(0,K.pi)((0,K.pi)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),sn.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),Rr(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t=this,n=e.update,r=e.optimistic,i=void 0===r||r,o=e.removeOptimistic,a=e.onWatchUpdated,s=function(e){var r=t,i=r.data,o=r.optimisticData;++t.txCount,e&&(t.data=t.optimisticData=e);try{n(t)}finally{--t.txCount,t.data=i,t.optimisticData=o}},u=new Set;a&&!this.txCount&&this.broadcastWatches((0,K.pi)((0,K.pi)({},e),{onWatchUpdated:function(e){return u.add(e),!1}})),"string"==typeof i?this.optimisticData=this.optimisticData.addLayer(i,s):!1===i?s(this.data):s(),"string"==typeof o&&(this.optimisticData=this.optimisticData.removeLayer(o)),a&&u.size?(this.broadcastWatches((0,K.pi)((0,K.pi)({},e),{onWatchUpdated:function(e,t){var n=a.call(this,e,t);return!1!==n&&u.delete(e),n}})),u.size&&u.forEach((function(e){return t.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e)},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=mn(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(n){return t.maybeBroadcastWatch(n,e)}))},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(r.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,r,n))||n&&$t(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(Gr);const ji=JSON.parse('{"g":{"Credentials":["HubspotCredentials","StripeCredentials","ZuoraCredentials"],"ResetPeriodConfiguration":["MonthlyResetPeriodConfig","WeeklyResetPeriodConfig"],"ScheduleVariables":["BillingPeriodChangeVariables","DowngradeChangeVariables","UnitAmountChangeVariables"]}}');var Ui=n(4098),Mi=n.n(Ui),Li=function(){function e(e){var t=e.batchDebounce,n=e.batchInterval,r=e.batchMax,i=e.batchHandler,o=e.batchKey;this.queuedRequests=new Map,this.batchDebounce=t,this.batchInterval=n,this.batchMax=r||0,this.batchHandler=i,this.batchKey=o||function(){return""}}return e.prototype.enqueueRequest=function(e){var t=this,n=(0,K.pi)({},e),r=!1,i=this.batchKey(e.operation);return n.observable||(n.observable=new Ce((function(e){t.queuedRequests.has(i)||t.queuedRequests.set(i,[]),r||(t.queuedRequests.get(i).push(n),r=!0),n.next=n.next||[],e.next&&n.next.push(e.next.bind(e)),n.error=n.error||[],e.error&&n.error.push(e.error.bind(e)),n.complete=n.complete||[],e.complete&&n.complete.push(e.complete.bind(e)),1===t.queuedRequests.get(i).length?t.scheduleQueueConsumption(i):t.batchDebounce&&(clearTimeout(t.scheduledBatchTimer),t.scheduleQueueConsumption(i)),t.queuedRequests.get(i).length===t.batchMax&&t.consumeQueue(i)}))),n.observable},e.prototype.consumeQueue=function(e){var t=e||"",n=this.queuedRequests.get(t);if(n){this.queuedRequests.delete(t);var r=n.map((function(e){return e.operation})),i=n.map((function(e){return e.forward})),o=[],a=[],s=[],u=[];n.forEach((function(e,t){o.push(e.observable),a.push(e.next),s.push(e.error),u.push(e.complete)}));var c=this.batchHandler(r,i)||Ce.of(),l=function(e){s.forEach((function(t){t&&t.forEach((function(t){return t(e)}))}))};return c.subscribe({next:function(e){if(Array.isArray(e)||(e=[e]),a.length!==e.length){var t=new Error("server returned results with length "+e.length+", expected length of "+a.length);return t.result=e,l(t)}e.forEach((function(e,t){a[t]&&a[t].forEach((function(t){return t(e)}))}))},error:l,complete:function(){u.forEach((function(e){e&&e.forEach((function(e){return e()}))}))}}),o}},e.prototype.scheduleQueueConsumption=function(e){var t=this,n=e||"";this.scheduledBatchTimer=setTimeout((function(){t.queuedRequests.get(n)&&t.queuedRequests.get(n).length&&t.consumeQueue(n)}),this.batchInterval)},e}(),Bi=function(e){function t(t){var n=e.call(this)||this,r=t||{},i=r.batchDebounce,o=r.batchInterval,a=void 0===o?10:o,s=r.batchMax,u=void 0===s?0:s,c=r.batchHandler,l=void 0===c?function(){return null}:c,f=r.batchKey,p=void 0===f?function(){return""}:f;return n.batcher=new Li({batchDebounce:i,batchInterval:a,batchMax:u,batchHandler:l,batchKey:p}),t.batchHandler.length<=1&&(n.request=function(e){return n.batcher.enqueueRequest({operation:e})}),n}return(0,K.ZT)(t,e),t.prototype.request=function(e,t){return this.batcher.enqueueRequest({operation:e,forward:t})},t}(at),qi=function(e){function t(t){var n=e.call(this)||this,r=t||{},i=r.uri,o=void 0===i?"/graphql":i,a=r.fetch,s=r.includeExtensions,u=r.batchInterval,c=r.batchDebounce,l=r.batchMax,f=r.batchKey,p=(0,K._T)(r,["uri","fetch","includeExtensions","batchInterval","batchDebounce","batchMax","batchKey"]);gt(a),a||(a=fetch);var d={http:{includeExtensions:s},options:p.fetchOptions,credentials:p.credentials,headers:p.headers};return n.batchDebounce=c,n.batchInterval=u||10,n.batchMax=l||10,f=f||function(e){var t=e.getContext(),n={http:t.http,options:t.fetchOptions,credentials:t.credentials,headers:t.headers};return ht(e,o)+JSON.stringify(n)},n.batcher=new Bi({batchDebounce:n.batchDebounce,batchInterval:n.batchInterval,batchMax:n.batchMax,batchKey:f,batchHandler:function(e){var t=ht(e[0],o),n=e[0].getContext(),r={};if(n.clientAwareness){var i=n.clientAwareness,s=i.name,u=i.version;s&&(r["apollographql-client-name"]=s),u&&(r["apollographql-client-version"]=u)}var c,l={http:n.http,options:n.fetchOptions,credentials:n.credentials,headers:(0,K.pi)((0,K.pi)({},r),n.headers)},f=e.map((function(e){return Rt(e,At,d,l)})),p=f.map((function(e){return e.body})),h=f[0].options;if("GET"===h.method)return Pt(new Error("apollo-link-batch-http does not support GET requests"));try{h.body=dt(p,"Payload")}catch(e){return Pt(e)}if(!h.signal){var v=Ct(),y=v.controller,m=v.signal;(c=y)&&(h.signal=m)}return new Ce((function(n){return a(t,h).then((function(t){return e.forEach((function(e){return e.setContext({response:t})})),t})).then(mt(e)).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){c&&c.abort()}}))}}),n}return(0,K.ZT)(t,e),t.prototype.request=function(e){return this.batcher.request(e)},t}(at),Vi=function(){function e(e,t,n,r){var i=this;this.operation=e,this.nextLink=t,this.delayFor=n,this.retryIf=r,this.retryCount=0,this.values=[],this.complete=!1,this.canceled=!1,this.observers=[],this.currentSubscription=null,this.onNext=function(e){i.values.push(e);for(var t=0,n=i.observers;t<n.length;t++){var r=n[t];r&&r.next(e)}},this.onComplete=function(){i.complete=!0;for(var e=0,t=i.observers;e<t.length;e++){var n=t[e];n&&n.complete()}},this.onError=function(e){return(0,K.mG)(i,void 0,void 0,(function(){var t,n,r;return(0,K.Jh)(this,(function(i){switch(i.label){case 0:return this.retryCount+=1,[4,this.retryIf(this.retryCount,this.operation,e)];case 1:if(i.sent())return this.scheduleRetry(this.delayFor(this.retryCount,this.operation,e)),[2];for(this.error=e,t=0,n=this.observers;t<n.length;t++)(r=n[t])&&r.error(e);return[2]}}))}))}}return e.prototype.subscribe=function(e){if(this.canceled)throw new Error("Subscribing to a retryable link that was canceled is not supported");this.observers.push(e);for(var t=0,n=this.values;t<n.length;t++){var r=n[t];e.next(r)}this.complete?e.complete():this.error&&e.error(this.error)},e.prototype.unsubscribe=function(e){var t=this.observers.indexOf(e);if(t<0)throw new Error("RetryLink BUG! Attempting to unsubscribe unknown observer!");this.observers[t]=null,this.observers.every((function(e){return null===e}))&&this.cancel()},e.prototype.start=function(){this.currentSubscription||this.try()},e.prototype.cancel=function(){this.currentSubscription&&this.currentSubscription.unsubscribe(),clearTimeout(this.timerId),this.timerId=void 0,this.currentSubscription=null,this.canceled=!0},e.prototype.try=function(){this.currentSubscription=this.nextLink(this.operation).subscribe({next:this.onNext,error:this.onError,complete:this.onComplete})},e.prototype.scheduleRetry=function(e){var t=this;if(this.timerId)throw new Error("RetryLink BUG! Encountered overlapping retries");this.timerId=setTimeout((function(){t.timerId=void 0,t.try()}),e)},e}(),$i=function(e){function t(t){var n=e.call(this)||this,r=t||{},i=r.attempts,o=r.delay;return n.delayFor="function"==typeof o?o:function(e){var t=e||{},n=t.initial,r=void 0===n?300:n,i=t.jitter,o=void 0===i||i,a=t.max,s=void 0===a?1/0:a,u=o?r:r/2;return function(e){var t=Math.min(s,u*Math.pow(2,e));return o&&(t=Math.random()*t),t}}(o),n.retryIf="function"==typeof i?i:function(e){var t=e||{},n=t.retryIf,r=t.max,i=void 0===r?5:r;return function(e,t,r){return!(e>=i)&&(n?n(r,t):!!r)}}(i),n}return(0,K.ZT)(t,e),t.prototype.request=function(e,t){var n=new Vi(e,t,this.delayFor,this.retryIf);return n.start(),new Ce((function(e){return n.subscribe(e),function(){n.unsubscribe(e)}}))},t}(at),Gi=n(4147);function zi(e,t){return new at((function(n,r){var i={"X-API-KEY":e,source:j},o=t.customerToken;return o&&(i["X-CUSTOMER-KEY"]=o),n.setContext({headers:i}),r(n)}))}var Qi=function(e){return!!e&&![500,400].includes(e.statusCode)};var Wi=function(){function e(){var e=this;this.setFeatures=function(t){return e.features=new Set(t)},this.entitlements=new Map,this.features=new Set,this.lastUpdate=null}return e.prototype.getEntitlement=function(e){return this.entitlements.get(e)||null},e.prototype.validateFeature=function(e){return this.features.has(e)},e.prototype.setEntitlements=function(e,t){this.entitlements=e,this.lastUpdate=t},e.prototype.getEntitlements=function(){return this.entitlements},e.prototype.getLastUpdate=function(){return this.lastUpdate},e.prototype.isLoaded=function(){return!!this.lastUpdate},e}(),Yi=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},Ki=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},Hi=function(){function e(e,t){this.client=e,this.edgeApiClient=t}return e.prototype.getEntitlements=function(e,t,n){return void 0===t&&(t=!1),Yi(this,void 0,void 0,(function(){return Ki(this,(function(r){return this.edgeApiClient&&!t?[2,this.edgeApiClient.getEntitlements(e,n)]:[2,this.client.query({query:d.ro,variables:{query:{customerId:e,resourceId:n}},fetchPolicy:"no-cache"})]}))}))},e.prototype.pollEntitlements=function(e,t,n){return this.edgeApiClient?this.edgeApiClient.watchEntitlements(e,t,n):this.client.watchQuery({query:d.ro,variables:{query:{customerId:e,resourceId:n}},fetchPolicy:"no-cache",pollInterval:t,errorPolicy:"none"})},e.prototype.reportEntitlementRequested=function(e,t,n,r,i){return Yi(this,void 0,void 0,(function(){return Ki(this,(function(o){switch(o.label){case 0:return[4,this.client.mutate({mutation:d.JD,variables:{entitlementCheckRequested:{entitlementCheckResult:n,customerId:t,featureId:e,resourceId:r,requestedUsage:i}},fetchPolicy:"no-cache"})];case 1:return o.sent(),[2]}}))}))},e}();const Ji=Hi;var Xi=function(){function e(){}return e.decideEntitlementPolicy=function(e,t){var n,r;if(!e||!e.calculatedEntitlement.feature)return{hasAccess:!1,accessDeniedReason:u.CustomerNotEntitledForFeature};var i=e.calculatedEntitlement.feature,o=i.featureType,a=i.meterType;switch(o){case c.Boolean:return{hasAccess:!0};case c.Numeric:if((null===(n=e.calculatedEntitlement.feature)||void 0===n?void 0:n.meterType)===l.None)return{hasAccess:!0};if(e.calculatedEntitlement.hasUnlimitedUsage)return{hasAccess:!0};var s=e.featureUsage.currentUsage;return a===l.Incremental&&e.featureUsage.nextResetDate<(new Date).getTime()&&(s=0),s+(t||0)<=((null===(r=e.calculatedEntitlement)||void 0===r?void 0:r.usageLimit)||0)?{hasAccess:!0}:{hasAccess:!1,accessDeniedReason:u.RequestedUsageExceedsLimit}}},e}(),Zi=function(){function e(e,t,n,r){this.entitlementsApi=e,this.customerId=t,this.loggerService=n,this.resourceId=r}return e.prototype.reportEntitlementCheckRequested=function(e,t,n){var r=this;this.entitlementsApi.reportEntitlementRequested(e,this.customerId,t,this.resourceId,n).then((function(){r.loggerService.debug("Successfully reported entitlement check requested")}),(function(){}))},e}(),eo=n(6486),to=function(){return to=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},to.apply(this,arguments)},no=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},ro=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},io=function(){function e(e,t,n,r,i,o,a,s){this.customerId=e,this.resourceId=t,this.cacheService=n,this.loggerService=a,this.onEntitlementsUpdated=s,this.modelMapper=new W,this.loadingEntitlements=null,this.entitlementsApi=new Ji(r,o),this.entitlementCheckReportingService=new Zi(new Ji(i,o),e,a,t),this.entitlementsPollingObserver=null}return e.prototype.startPolling=function(e){var t=this;this.stopPolling(),this.entitlementsPollingObserver=this.entitlementsApi.pollEntitlements(this.customerId,e,this.resourceId),this.entitlementsPollingObserver.subscribe((function(n){var r;if(n.errors||!n.data||!n.data.entitlements)return t.loggerService.error("Failed to poll entitlements. Error: ".concat(n.errors),{errors:(null===(r=n.errors)||void 0===r?void 0:r.map((function(e){return e.message})).join(", "))||""}),void setTimeout((function(){return t.restartPolling(e)}),e);t.storeFetchedEntitlementsInCache(n.data.entitlements)}),(function(n){t.loggerService.error("Failed to poll entitlements. Error: ".concat(n.message),n),setTimeout((function(){return t.restartPolling(e)}),e)}))},e.prototype.stopPolling=function(){var e;null===(e=this.entitlementsPollingObserver)||void 0===e||e.stopPolling()},e.prototype.restartPolling=function(e){this.stopPolling(),this.startPolling(e)},e.prototype.refresh=function(){return no(this,void 0,void 0,(function(){return ro(this,(function(e){switch(e.label){case 0:return[4,this.loadEntitlements(!0)];case 1:return e.sent(),[2]}}))}))},Object.defineProperty(e.prototype,"isInitialized",{get:function(){return this.cacheService.isLoaded()},enumerable:!1,configurable:!0}),e.prototype.getBooleanEntitlement=function(e,t,n){var r=(null==n?void 0:n.shouldTrack)||!1,i=this.cacheService.getEntitlement(e),o=Xi.decideEntitlementPolicy(i);if((null==i?void 0:i.calculatedEntitlement.feature)&&i.calculatedEntitlement.feature.featureType!==c.Boolean)return this.tryTrackEntitlementCheck(r,e,this.modelMapper.mapFallbackBooleanEntitlementResult(t,o)),t;if(!i){var a=this.modelMapper.mapEntitlementResult(o);return this.tryTrackEntitlementCheck(r,e,a),to(to({},o),{isFallback:!1})}var s=this.modelMapper.mapEntitlementResult(o,i);return this.tryTrackEntitlementCheck(r,e,s),this.modelMapper.mapBooleanEntitlement(i,o)},e.prototype.getNumericEntitlement=function(e,t,n){var r,i=(null==n?void 0:n.shouldTrack)||!1,o=this.cacheService.getEntitlement(e),a=Xi.decideEntitlementPolicy(o);if((null==o?void 0:o.calculatedEntitlement.feature)&&(null===(r=o.calculatedEntitlement.feature)||void 0===r?void 0:r.featureType)!==c.Numeric){var s=this.modelMapper.mapFallbackNumericEntitlementResult(t,a);return this.tryTrackEntitlementCheck(i,e,s),t}if(!o){var u=this.modelMapper.mapEntitlementResult(a);return this.tryTrackEntitlementCheck(i,e,u),to(to({},a),{isFallback:!1,isUnlimited:!1})}var l=this.modelMapper.mapEntitlementResult(a,o);return this.tryTrackEntitlementCheck(i,e,l),this.modelMapper.mapNumericEntitlement(o,a)},e.prototype.getMeteredEntitlement=function(e,t,n){var r,i,o=(null==n?void 0:n.shouldTrack)||!1,a=this.cacheService.getEntitlement(e),s=null==n?void 0:n.requestedUsage,u=Xi.decideEntitlementPolicy(a,s);if((null==a?void 0:a.calculatedEntitlement.feature)&&(null===(r=a.calculatedEntitlement.feature)||void 0===r?void 0:r.meterType)!==l.Fluctuating&&(null===(i=a.calculatedEntitlement.feature)||void 0===i?void 0:i.meterType)!==l.Incremental){var c=this.modelMapper.mapFallbackMeteredEntitlementResult(t,u,s);return this.tryTrackEntitlementCheck(o,e,c,s),t}if(!a){var f=this.modelMapper.mapEntitlementResult(u,void 0,s);return this.tryTrackEntitlementCheck(o,e,f,s),to(to({},u),{currentUsage:0,isFallback:!1,isUnlimited:!1,requestedUsage:s||0})}var p=this.modelMapper.mapEntitlementResult(u,a,s);return this.tryTrackEntitlementCheck(o,e,p,s),this.modelMapper.mapMeteredEntitlement(a,u,s)},e.prototype.tryTrackEntitlementCheck=function(e,t,n,r){e&&this.entitlementCheckReportingService.reportEntitlementCheckRequested(t,n,r)},e.prototype.loadEntitlements=function(e){return no(this,void 0,void 0,(function(){return ro(this,(function(t){switch(t.label){case 0:this.loadingEntitlements||(this.loadingEntitlements=this.loadEntitlementsFromRemote(e)),t.label=1;case 1:return t.trys.push([1,,3,4]),[4,this.loadingEntitlements];case 2:return[2,t.sent()];case 3:return this.loadingEntitlements=null,[7];case 4:return[2]}}))}))},e.prototype.loadEntitlementsFromRemote=function(e){return no(this,void 0,void 0,(function(){var t;return ro(this,(function(n){switch(n.label){case 0:return[4,this.entitlementsApi.getEntitlements(this.customerId,e,this.resourceId)];case 1:return t=n.sent(),this.storeFetchedEntitlementsInCache(t.data.entitlements),[2]}}))}))},e.prototype.storeFetchedEntitlementsInCache=function(e){var t=this.cacheService.getLastUpdate(),n=this.getLastEntitlementsUpdate(e);if(!(t&&n.getTime()<t.getTime())){var r=this.modelMapper.mapCachedEntitlements(e);this.cacheService.setEntitlements(r,n),this.onEntitlementsUpdated(r)}},e.prototype.getLastEntitlementsUpdate=function(e){return(0,eo.max)(e.flatMap((function(e){return[new Date(e.entitlementUpdatedAt),new Date(e.usageUpdatedAt)]})))||new Date},e.prototype.getEntitlements=function(){return no(this,void 0,void 0,(function(){var e=this;return ro(this,(function(t){switch(t.label){case 0:return this.cacheService.isLoaded()?[3,2]:[4,this.loadEntitlements()];case 1:t.sent(),t.label=2;case 2:return[2,Array.from(this.cacheService.getEntitlements().values()).map((function(t){var n=Xi.decideEntitlementPolicy(t);return e.modelMapper.mapEntitlement(t,n)}))]}}))}))},e}(),oo=n(2991),ao=Object.prototype.toString;function so(e){switch(ao.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return mo(e,Error)}}function uo(e,t){return ao.call(e)===`[object ${t}]`}function co(e){return uo(e,"ErrorEvent")}function lo(e){return uo(e,"DOMError")}function fo(e){return uo(e,"String")}function po(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function ho(e){return uo(e,"Object")}function vo(e){return"undefined"!=typeof Event&&mo(e,Event)}function yo(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function mo(e,t){try{return e instanceof t}catch(e){return!1}}function go(e,t){try{let i=e;var n=[];let o=0,a=0;var r=" > ".length;let s;for(;i&&o++<5&&(s=_o(i,t),!("html"===s||o>1&&a+n.length*r+s.length>=80));)n.push(s),a+=s.length,i=i.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}function _o(e,t){var n=e,r=[];let i,o,a,s,u;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());var c=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(c&&c.length)c.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&fo(i))for(o=i.split(/\s+/),u=0;u<o.length;u++)r.push(`.${o[u]}`);var l=["type","name","title","alt"];for(u=0;u<l.length;u++)a=l[u],s=n.getAttribute(a),s&&r.push(`[${a}="${s}"]`);return r.join("")}function bo(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.substr(0,t)}...`}function Eo(e,t){if(!Array.isArray(e))return"";var n=[];for(let t=0;t<e.length;t++){var r=e[t];try{n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function wo(e,t){return!!fo(e)&&(uo(t,"RegExp")?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}function So(e,t,n){if(t in e){var r=e[t],i=n(r);if("function"==typeof i)try{Io(i,r)}catch(e){}e[t]=i}}function To(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function Io(e,t){var n=t.prototype||{};e.prototype=t.prototype=n,To(e,"__sentry_original__",t)}function Oo(e){return e.__sentry_original__}function xo(e){if(so(e))return{message:e.message,name:e.name,stack:e.stack,...Ao(e)};if(vo(e)){var t={type:e.type,target:Do(e.target),currentTarget:Do(e.currentTarget),...Ao(e)};return"undefined"!=typeof CustomEvent&&mo(e,CustomEvent)&&(t.detail=e.detail),t}return e}function Do(e){try{return"undefined"!=typeof Element&&mo(e,Element)?go(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function Ao(e){if("object"==typeof e&&null!==e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function Ro(e,t=40){var n=Object.keys(xo(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return bo(n[0],t);for(let e=n.length;e>0;e--){var r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:bo(r,t)}return""}function ko(e){return Co(e,new Map)}function Co(e,t){if(ho(e)){if(void 0!==(i=t.get(e)))return i;var n={};for(var r of(t.set(e,n),Object.keys(e)))void 0!==e[r]&&(n[r]=Co(e[r],t));return n}var i;return Array.isArray(e)?void 0!==(i=t.get(e))?i:(n=[],t.set(e,n),e.forEach((e=>{n.push(Co(e,t))})),n):e}let Po;class No{constructor(){No.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=No.id}setupOnce(){Po=Function.prototype.toString,Function.prototype.toString=function(...e){var t=Oo(this)||this;return Po.apply(t,e)}}}No.__initStatic();var Fo=(0,oo.R)(),jo=["debug","info","warn","error","log","assert","trace"];function Uo(e){var t=(0,oo.R)();if(!("console"in t))return e();var n=t.console,r={};jo.forEach((e=>{var i=n[e]&&n[e].__sentry_original__;e in t.console&&i&&(r[e]=n[e],n[e]=i)}));try{return e()}finally{Object.keys(r).forEach((e=>{n[e]=r[e]}))}}function Mo(){let e=!1;var t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?jo.forEach((n=>{t[n]=(...t)=>{e&&Uo((()=>{Fo.console[n](`Sentry Logger [${n}]:`,...t)}))}})):jo.forEach((e=>{t[e]=()=>{}})),t}let Lo;function Bo(){var e=(0,oo.R)(),t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");var n=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function qo(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Vo(e){const{message:t,event_id:n}=e;if(t)return t;var r=qo(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function $o(e,t,n){var r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function Go(e,t){var n=qo(e);if(n){var r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){var i={...r&&r.data,...t.data};n.mechanism.data=i}}}function zo(e){if(e&&e.__sentry_captured__)return!0;try{To(e,"__sentry_captured__",!0)}catch(e){}return!1}Lo="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,oo.Y)("logger",Mo):Mo();var Qo=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class Wo{static __initStatic(){this.id="InboundFilters"}__init(){this.name=Wo.id}constructor(e={}){this._options=e,Wo.prototype.__init.call(this)}setupOnce(e,t){var n=e=>{var n=t();if(n){var r=n.getIntegration(Wo);if(r){var i=n.getClient(),o=i?i.getOptions():{},a=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...Qo],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(r._options,o);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${Vo(e)}`),!0):function(e,t){return!(!t||!t.length)&&function(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.error(`Cannot extract message for event ${Vo(e)}`),[]}return[]}(e).some((e=>t.some((t=>wo(e,t)))))}(e,t.ignoreErrors)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Vo(e)}`),!0):function(e,t){if(!t||!t.length)return!1;var n=Yo(e);return!!n&&t.some((e=>wo(n,e)))}(e,t.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Vo(e)}.\nUrl: ${Yo(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;var n=Yo(e);return!n||t.some((e=>wo(n,e)))}(e,t.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Vo(e)}.\nUrl: ${Yo(e)}`),!0)}(e,a)?null:e}}return e};n.id=this.name,e(n)}}function Yo(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let n=e.length-1;n>=0;n--){var t=e[n];if(t&&"<anonymous>"!==t.filename&&"[native code]"!==t.filename)return t.filename||null}return null}(t):null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.error(`Cannot extract url for event ${Vo(e)}`),null}}Wo.__initStatic();var Ko,Ho=n(1170),Jo=n(2176);function Xo(e){return new ea((t=>{t(e)}))}function Zo(e){return new ea(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(Ko||(Ko={}));class ea{__init(){this._state=Ko.PENDING}__init2(){this._handlers=[]}constructor(e){ea.prototype.__init.call(this),ea.prototype.__init2.call(this),ea.prototype.__init3.call(this),ea.prototype.__init4.call(this),ea.prototype.__init5.call(this),ea.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new ea(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new ea(((t,n)=>{let r,i;return this.then((t=>{i=!1,r=t,e&&e()}),(t=>{i=!0,r=t,e&&e()})).then((()=>{i?n(r):t(r)}))}))}__init3(){this._resolve=e=>{this._setResult(Ko.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(Ko.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{this._state===Ko.PENDING&&(yo(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state!==Ko.PENDING){var e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===Ko.RESOLVED&&e[1](this._value),this._state===Ko.REJECTED&&e[2](this._value),e[0]=!0)}))}}}}function ta(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,Ho.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Bo()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{var n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}class na{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){var t=new na;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments]),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&ta(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts={...this._contexts,[e]:t},this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){var e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){var t=e(this);return t instanceof na?t:this}return e instanceof na?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):ho(e)&&(e=e,this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var r={timestamp:(0,Ho.yW)(),...e};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),this._notifyScopeListeners(),this}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags={transaction:n,...e.tags})}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...ra(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,n,r=0){return new ea(((i,o)=>{var a=e[r];if(null===t||"function"!=typeof a)i(t);else{var s=a({...t},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.id&&null===s&&Lo.log(`Event processor "${a.id}" dropped event`),yo(s)?s.then((t=>this._notifyEventProcessors(e,t,n,r+1).then(i))).then(null,o):this._notifyEventProcessors(e,s,n,r+1).then(i).then(null,o)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function ra(){return(0,oo.Y)("globalEventProcessors",(()=>[]))}function ia(e){ra().push(e)}var oa=100;class aa{__init(){this._stack=[{}]}constructor(e,t=new na,n=4){this._version=n,aa.prototype.__init.call(this),this.getStackTop().scope=t,e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){var e=na.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){var n=this._lastEventId=t&&t.event_id?t.event_id:Bo(),r=new Error("Sentry syntheticException");return this._withClient(((i,o)=>{i.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},o)})),n}captureMessage(e,t,n){var r=this._lastEventId=n&&n.event_id?n.event_id:Bo(),i=new Error(e);return this._withClient(((o,a)=>{o.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},a)})),r}captureEvent(e,t){var n=t&&t.event_id?t.event_id:Bo();return"transaction"!==e.type&&(this._lastEventId=n),this._withClient(((r,i)=>{r.captureEvent(e,{...t,event_id:n},i)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!n||!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=oa}=r.getOptions&&r.getOptions()||{};if(!(o<=0)){var a={timestamp:(0,Ho.yW)(),...e},s=i?Uo((()=>i(a,t))):a;null!==s&&n.addBreadcrumb(s,o)}}setUser(e){var t=this.getScope();t&&t.setUser(e)}setTags(e){var t=this.getScope();t&&t.setTags(e)}setExtras(e){var t=this.getScope();t&&t.setExtras(e)}setTag(e,t){var n=this.getScope();n&&n.setTag(e,t)}setExtra(e,t){var n=this.getScope();n&&n.setExtra(e,t)}setContext(e,t){var n=this.getScope();n&&n.setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();t&&n&&e(t)}run(e){var t=ua(this);try{e(this)}finally{ua(t)}}getIntegration(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){return this._callExtensionMethod("startTransaction",e,t)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){var e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&function(e,t){let n={};"ok"===e.status&&(n={status:"exited"}),ta(e,n)}(n),this._sendSessionUpdate(),t&&t.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:i}=n&&n.getOptions()||{};var o=(0,oo.R)();const{userAgent:a}=o.navigator||{};var s=function(e){var t=(0,Ho.ph)(),n={sid:Bo(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return ko({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&ta(n,e),n}({release:r,environment:i,...t&&{user:t.getUser()},...a&&{userAgent:a},...e});if(t){var u=t.getSession&&t.getSession();u&&"ok"===u.status&&ta(u,{status:"exited"}),this.endSession(),t.setSession(s)}return s}shouldSendDefaultPii(){var e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop();if(e){var n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){var n=sa().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function sa(){var e=(0,oo.R)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function ua(e){var t=sa(),n=fa(t);return pa(t,e),n}function ca(){var e=sa();return la(e)&&!fa(e).isOlderThan(4)||pa(e,new aa),(0,Jo.KV)()?function(e){try{var t=sa().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return fa(e);if(!la(n)||fa(n).isOlderThan(4)){var r=fa(e).getStackTop();pa(n,new aa(r.client,na.clone(r.scope)))}return fa(n)}catch(t){return fa(e)}}(e):fa(e)}function la(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function fa(e){return(0,oo.Y)("hub",(()=>new aa),e)}function pa(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}var da="<anonymous>";function ha(e){try{return e&&"function"==typeof e&&e.name||da}catch(e){return da}}function va(){if(!("fetch"in(0,oo.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function ya(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}var ma=(0,oo.R)(),ga={},_a={};function ba(e,t){ga[e]=ga[e]||[],ga[e].push(t),function(e){if(!_a[e])switch(_a[e]=!0,e){case"console":"console"in ma&&jo.forEach((function(e){e in ma.console&&So(ma.console,e,(function(t){return function(...n){Ea("console",{args:n,level:e}),t&&t.apply(ma.console,n)}}))}));break;case"dom":!function(){if("document"in ma){var e=Ea.bind(null,"dom"),t=xa(e,!0);ma.document.addEventListener("click",t,!1),ma.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{var n=ma[t]&&ma[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(So(n,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{var o=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=o[n]=o[n]||{refCount:0};if(!a.handler){var s=xa(e);a.handler=s,t.call(this,n,s,i)}a.refCount+=1}catch(e){}return t.call(this,n,r,i)}})),So(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var i=this.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount-=1,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}}();break;case"xhr":!function(){if("XMLHttpRequest"in ma){var e=XMLHttpRequest.prototype;So(e,"open",(function(e){return function(...t){var n=this,r=t[1],i=n.__sentry_xhr__={method:fo(t[0])?t[0].toUpperCase():t[0],url:t[1]};fo(r)&&"POST"===i.method&&r.match(/sentry_key/)&&(n.__sentry_own_request__=!0);var o=function(){if(4===n.readyState){try{i.status_code=n.status}catch(e){}Ea("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:n})}};return"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?So(n,"onreadystatechange",(function(e){return function(...t){return o(),e.apply(n,t)}})):n.addEventListener("readystatechange",o),e.apply(n,t)}})),So(e,"send",(function(e){return function(...t){return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),Ea("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}}();break;case"fetch":(function(){if(!va())return!1;var e=(0,oo.R)();if(ya(e.fetch))return!0;let t=!1;var n=e.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=ya(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t})()&&So(ma,"fetch",(function(e){return function(...t){var n={args:t,fetchData:{method:wa(t),url:Sa(t)},startTimestamp:Date.now()};return Ea("fetch",{...n}),e.apply(ma,t).then((e=>(Ea("fetch",{...n,endTimestamp:Date.now(),response:e}),e)),(e=>{throw Ea("fetch",{...n,endTimestamp:Date.now(),error:e}),e}))}}));break;case"history":!function(){if(function(){var e=(0,oo.R)(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&r}()){var e=ma.onpopstate;ma.onpopstate=function(...t){var n=ma.location.href,r=Ta;if(Ta=n,Ea("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},So(ma.history,"pushState",t),So(ma.history,"replaceState",t)}function t(e){return function(...t){var n=t.length>2?t[2]:void 0;if(n){var r=Ta,i=String(n);Ta=i,Ea("history",{from:r,to:i})}return e.apply(this,t)}}}();break;case"error":Da=ma.onerror,ma.onerror=function(e,t,n,r,i){return Ea("error",{column:r,error:i,line:n,msg:e,url:t}),!!Da&&Da.apply(this,arguments)};break;case"unhandledrejection":Aa=ma.onunhandledrejection,ma.onunhandledrejection=function(e){return Ea("unhandledrejection",e),!Aa||Aa.apply(this,arguments)};break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.warn("unknown instrumentation type:",e)}}(e)}function Ea(e,t){if(e&&ga[e])for(var n of ga[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${ha(n)}\nError:`,t)}}function wa(e=[]){return"Request"in ma&&mo(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function Sa(e=[]){return"string"==typeof e[0]?e[0]:"Request"in ma&&mo(e[0],Request)?e[0].url:String(e[0])}let Ta,Ia,Oa;function xa(e,t=!1){return n=>{if(n&&Oa!==n&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===Ia||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(Oa,n))&&(e({event:n,name:r,global:t}),Oa=n),clearTimeout(Ia),Ia=ma.setTimeout((()=>{Ia=void 0}),1e3)}}}let Da=null,Aa=null;function Ra(e,t=1/0,n=1/0){try{return Ca("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function ka(e,t=3,n=102400){var r,i=Ra(e,t);return r=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?ka(e,t-1,n):i}function Ca(e,t,r=1/0,i=1/0,o=function(){var e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[a,s]=o;if(null===t||["number","boolean","string"].includes(typeof t)&&("number"!=typeof(u=t)||u==u))return t;var u,c=function(e,t){try{return"domain"===e&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":void 0!==n.g&&t===n.g?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":function(e){return ho(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?`[Function: ${ha(t)}]`:"symbol"==typeof t?`[${String(t)}]`:"bigint"==typeof t?`[BigInt: ${String(t)}]`:`[object ${Object.getPrototypeOf(t).constructor.name}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!c.startsWith("[object "))return c;if(t.__sentry_skip_normalization__)return t;if(0===r)return c.replace("object ","");if(a(t))return"[Circular ~]";var l=t;if(l&&"function"==typeof l.toJSON)try{return Ca("",l.toJSON(),r-1,i,o)}catch(e){}var f=Array.isArray(t)?[]:{};let p=0;var d=xo(t);for(var h in d)if(Object.prototype.hasOwnProperty.call(d,h)){if(p>=i){f[h]="[MaxProperties ~]";break}var v=d[h];f[h]=Ca(h,v,r-1,i,o),p+=1}return s(t),f}function Pa(e,t){var n=Fa(e,t),r={type:t&&t.name,value:Ua(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Na(e,t){return{exception:{values:[Pa(e,t)]}}}function Fa(e,t){var n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(ja.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}var ja=/Minified React error #\d+;/i;function Ua(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function Ma(e,t,n,r,i){let o;if(co(t)&&t.error)return Na(e,t.error);if(lo(t)||uo(t,"DOMException")){var a=t;if("stack"in t)o=Na(e,t);else{var s=a.name||(lo(a)?"DOMError":"DOMException"),u=a.message?`${s}: ${a.message}`:s;o=La(e,u,n,r),$o(o,u)}return"code"in a&&(o.tags={...o.tags,"DOMException.code":`${a.code}`}),o}return so(t)?Na(e,t):ho(t)||vo(t)?(o=function(e,t,n,r){var i={exception:{values:[{type:vo(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${Ro(t)}`}]},extra:{__serialized__:ka(t)}};if(n){var o=Fa(e,n);o.length&&(i.exception.values[0].stacktrace={frames:o})}return i}(e,t,n,i),Go(o,{synthetic:!0}),o):(o=La(e,t,n,r),$o(o,`${t}`,void 0),Go(o,{synthetic:!0}),o)}function La(e,t,n,r){var i={message:t};if(r&&n){var o=Fa(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]})}return i}function Ba(e,t){return ca().captureException(e,{captureContext:t})}function qa(e){ca().withScope(e)}let Va=0;function $a(){return Va>0}function Ga(){Va+=1,setTimeout((()=>{Va-=1}))}function za(e,t={},n){if("function"!=typeof e)return e;try{var r=e.__sentry_wrapped__;if(r)return r;if(Oo(e))return e}catch(t){return e}var i=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var i=r.map((e=>za(e,t)));return e.apply(this,i)}catch(e){throw Ga(),qa((n=>{n.addEventProcessor((e=>(t.mechanism&&($o(e,void 0,void 0),Go(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),Ba(e)})),e}};try{for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}catch(e){}Io(i,e),To(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>e.name})}catch(e){}return i}class Qa{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=Qa.id}__init2(){this._installFunc={onerror:Wa,onunhandledrejection:Ya}}constructor(e){Qa.prototype.__init.call(this),Qa.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...e}}setupOnce(){Error.stackTraceLimit=50;var e,t=this._options;for(var n in t){var r=this._installFunc[n];r&&t[n]&&(e=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.log(`Global Handler attached: ${e}`),r(),this._installFunc[n]=void 0)}}}function Wa(){ba("error",(e=>{const[t,n,r]=Ja();if(!t.getIntegration(Qa))return;const{msg:i,url:o,line:a,column:s,error:u}=e;if(!($a()||u&&u.__sentry_own_request__)){var c=void 0===u&&fo(i)?function(e,t,n,r){let i=co(e)?e.message:e,o="Error";var a=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return a&&(o=a[1],i=a[2]),Ka({exception:{values:[{type:o,value:i}]}},t,n,r)}(i,o,a,s):Ka(Ma(n,u||i,void 0,r,!1),o,a,s);c.level="error",Ha(t,u,c,"onerror")}}))}function Ya(){ba("unhandledrejection",(e=>{const[t,n,r]=Ja();if(!t.getIntegration(Qa))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(e){}if($a()||i&&i.__sentry_own_request__)return!0;var o=po(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:Ma(n,i,void 0,r,!0);o.level="error",Ha(t,i,o,"onunhandledrejection")}))}function Ka(e,t,n,r){var i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},u=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,f=fo(t)&&t.length>0?t:function(){var e=(0,oo.R)();try{return e.document.location.href}catch(e){return""}}();return 0===u.length&&u.push({colno:c,filename:f,function:"?",in_app:!0,lineno:l}),e}function Ha(e,t,n,r){Go(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function Ja(){var e=ca(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}Qa.__initStatic();var Xa=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class Za{static __initStatic(){this.id="TryCatch"}__init(){this.name=Za.id}constructor(e){Za.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){var e=(0,oo.R)();this._options.setTimeout&&So(e,"setTimeout",es),this._options.setInterval&&So(e,"setInterval",es),this._options.requestAnimationFrame&&So(e,"requestAnimationFrame",ts),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&So(XMLHttpRequest.prototype,"send",ns);var t=this._options.eventTarget;t&&(Array.isArray(t)?t:Xa).forEach(rs)}}function es(e){return function(...t){var n=t[0];return t[0]=za(n,{mechanism:{data:{function:ha(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function ts(e){return function(t){return e.apply(this,[za(t,{mechanism:{data:{function:"requestAnimationFrame",handler:ha(e)},handled:!0,type:"instrument"}})])}}function ns(e){return function(...t){var n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&So(n,e,(function(t){var n={mechanism:{data:{function:e,handler:ha(t)},handled:!0,type:"instrument"}},r=Oo(t);return r&&(n.mechanism.data.handler=ha(r)),za(t,n)}))})),e.apply(this,t)}}function rs(e){var t=(0,oo.R)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(So(n,"addEventListener",(function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=za(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:ha(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.apply(this,[n,za(r,{mechanism:{data:{function:"addEventListener",handler:ha(r),target:e},handled:!0,type:"instrument"}}),i])}})),So(n,"removeEventListener",(function(e){return function(t,n,r){var i=n;try{var o=i&&i.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch(e){}return e.call(this,t,i,r)}})))}Za.__initStatic();var is=["fatal","error","warning","log","info","debug"];function os(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}var as="Breadcrumbs";class ss{static __initStatic(){this.id=as}__init(){this.name=ss.id}constructor(e){ss.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){var e;this.options.console&&ba("console",us),this.options.dom&&ba("dom",(e=this.options.dom,function(t){let n,r="object"==typeof e?e.serializeAttribute:void 0;"string"==typeof r&&(r=[r]);try{n=t.event.target?go(t.event.target,r):go(t.event,r)}catch(e){n="<unknown>"}0!==n.length&&ca().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})})),this.options.xhr&&ba("xhr",cs),this.options.fetch&&ba("fetch",ls),this.options.history&&ba("history",fs)}}function us(e){var t,n={category:"console",data:{arguments:e.args,logger:"console"},level:(t=e.level,"warn"===t?"warning":is.includes(t)?t:"log"),message:Eo(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${Eo(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}ca().addBreadcrumb(n,{input:e.args,level:e.level})}function cs(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;const{method:t,url:n,status_code:r,body:i}=e.xhr.__sentry_xhr__||{};ca().addBreadcrumb({category:"xhr",data:{method:t,url:n,status_code:r},type:"http"},{xhr:e.xhr,input:i})}}function ls(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?ca().addBreadcrumb({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args}):ca().addBreadcrumb({category:"fetch",data:{...e.fetchData,status_code:e.response.status},type:"http"},{input:e.args,response:e.response})))}function fs(e){var t=(0,oo.R)();let n=e.from,r=e.to;var i=os(t.location.href);let o=os(n);var a=os(r);o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),ca().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}ss.__initStatic();class ps{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=ps.id}constructor(e={}){ps.prototype.__init.call(this),this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){var e=ca().getClient();e&&ia(((t,n)=>{var r=ca().getIntegration(ps);return r?function(e,t,n,r,i){if(!(r.exception&&r.exception.values&&i&&mo(i.originalException,Error)))return r;var o=ds(e,n,i.originalException,t);return r.exception.values=[...o,...r.exception.values],r}(e.getOptions().stackParser,r._key,r._limit,t,n):t}))}}function ds(e,t,n,r,i=[]){if(!mo(n[r],Error)||i.length+1>=t)return i;var o=Pa(e,n[r]);return ds(e,t,n[r],r,[o,...i])}ps.__initStatic();var hs=(0,oo.R)();class vs{constructor(){vs.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=vs.id}setupOnce(){ia((e=>{if(ca().getIntegration(vs)){if(!hs.navigator&&!hs.location&&!hs.document)return e;var t=e.request&&e.request.url||hs.location&&hs.location.href;const{referrer:r}=hs.document||{},{userAgent:i}=hs.navigator||{};var n={...t&&{url:t},headers:{...e.request&&e.request.headers,...r&&{Referer:r},...i&&{"User-Agent":i}}};return{...e,request:n}}return e}))}}vs.__initStatic();class ys{constructor(){ys.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=ys.id}setupOnce(e,t){var n=e=>{var n=t().getIntegration(ys);if(n){try{if(function(e,t){return!!t&&(!!function(e,t){var n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!gs(e,t)&&!!ms(e,t))))}(e,t)||!!function(e,t){var n=_s(t),r=_s(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!gs(e,t)&&!!ms(e,t)))}(e,t))}(e,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return n._previousEvent=e}return n._previousEvent=e}return e};n.id=this.name,e(n)}}function ms(e,t){let n=bs(e),r=bs(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,r=r,r.length!==n.length)return!1;for(let e=0;e<r.length;e++){var i=r[e],o=n[e];if(i.filename!==o.filename||i.lineno!==o.lineno||i.colno!==o.colno||i.function!==o.function)return!1}return!0}function gs(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function _s(e){return e.exception&&e.exception.values&&e.exception.values[0]}function bs(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}ys.__initStatic();let Es={};var ws=(0,oo.R)();ws.Sentry&&ws.Sentry.Integrations&&(Es=ws.Sentry.Integrations);var Ss={...Es,...r,...i},Ts="?";function Is(e,t,n,r){var i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}var Os=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,xs=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ds=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,As=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Rs=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ks=function(...e){var t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{var r=[];for(var i of e.split("\n").slice(n)){var o=i.replace(/\(error: (.*)\)/,"$1");for(var a of t){var s=a(o);if(s){r.push(s);break}}}return function(e){if(!e.length)return[];let t=e;var n=t[0].function||"",r=t[t.length-1].function||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((e=>({...e,filename:e.filename||t[0].filename,function:e.function||"?"}))).reverse()}(r)}}([30,e=>{var t=Os.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){var n=xs.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}const[e,r]=Cs(t[1]||Ts,t[2]);return Is(r,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{var t=Ds.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=As.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}let e=t[3],r=t[1]||Ts;return[r,e]=Cs(r,e),Is(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{var t=Rs.exec(e);return t?Is(t[2],t[1]||Ts,+t[3],t[4]?+t[4]:void 0):void 0}]),Cs=(e,t)=>{var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:Ts,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class Ps extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function Ns(e,t=[]){return[e,t]}function Fs(e,t){const[n,r]=e;return[n,[...r,t]]}function js(e,t){e[1].forEach((e=>{var n=e[0].type;t(e,n)}))}function Us(e,t){return(t||new TextEncoder).encode(e)}function Ms(e,t){const[n,r]=e;let i=JSON.stringify(n);function o(e){"string"==typeof i?i="string"==typeof e?i+e:[Us(i,t),e]:i.push("string"==typeof e?Us(e,t):e)}for(var a of r){const[e,t]=a;o(`\n${JSON.stringify(e)}\n`),o("string"==typeof t||t instanceof Uint8Array?t:JSON.stringify(t))}return"string"==typeof i?i:function(e){var t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(var i of e)n.set(i,r),r+=i.length;return n}(i)}function Ls(e,t){var n="string"==typeof e.data?Us(e.data,t):e.data;return[ko({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}var Bs={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default"};function qs(e){return Bs[e]}function Vs(e,t,n=function(e){var t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return Zo(new Ps("Not adding Promise due to buffer limit reached."));var i=r();return-1===t.indexOf(i)&&t.push(i),i.then((()=>n(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(e){return new ea(((n,r)=>{let i=t.length;if(!i)return n(!0);var o=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{Xo(e).then((()=>{--i||(clearTimeout(o),n(!0))}),r)}))}))}}}(e.bufferSize||30)){let r={};return{send:function(i){var o=[];if(js(i,((t,n)=>{var i=qs(n);!function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,i)?o.push(t):e.recordDroppedEvent("ratelimit_backoff",i)})),0===o.length)return Xo();var a=Ns(i[0],o),s=t=>{js(a,((n,r)=>{e.recordDroppedEvent(t,qs(r))}))};return n.add((()=>t({body:Ms(a,e.textEncoder)}).then((e=>{void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){var i={...e},o=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(o)for(var s of o.trim().split(",")){const[e,t]=s.split(":",2);var u=parseInt(e,10),c=1e3*(isNaN(u)?60:u);if(t)for(var l of t.split(";"))i[l]=r+c;else i.all=r+c}else a?i.all=r+function(e,t=Date.now()){var n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(i.all=r+6e4);return i}(r,e)}),(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.error("Failed while sending event:",e),s("network_error")})))).then((e=>e),(e=>{if(e instanceof Ps)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.error("Skipped sending event due to full buffer"),s("queue_overflow"),Xo();throw e}))},flush:e=>n.drain(e)}}var $s=(0,oo.R)();let Gs;function zs(){if(Gs)return Gs;if(ya($s.fetch))return Gs=$s.fetch.bind($s);var e=$s.document;let t=$s.fetch;if(e&&"function"==typeof e.createElement)try{var n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);var r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return Gs=t.bind($s)}function Qs(e,t=zs()){return Vs(e,(function(n){var r={body:n.body,method:"POST",referrerPolicy:"origin",headers:e.headers,...e.fetchOptions};return t(e.url,r).then((e=>({statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}))}function Ws(e){return Vs(e,(function(t){return new ea(((n,r)=>{var i=new XMLHttpRequest;for(var o in i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,o)&&i.setRequestHeader(o,e.headers[o]);i.send(t.body)}))}))}var Ys=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Ks(e,t=!1){const{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${a}`}function Hs(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Js(e,t={}){var n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${function(e){var t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return n={sentry_key:e.publicKey,sentry_version:"7",...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(n).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`)).join("&");var n}(e,r)}`}function Xs(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}var Zs=[],eu="Not capturing exception because it's already been captured.";class tu{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}constructor(e){if(tu.prototype.__init.call(this),tu.prototype.__init2.call(this),tu.prototype.__init3.call(this),tu.prototype.__init4.call(this),this._options=e,e.dsn){this._dsn=(n=e.dsn,r="string"==typeof n?function(e){var t=Ys.exec(e);if(!t)throw new Ps(`Invalid Sentry Dsn: ${e}`);const[n,r,i="",o,a="",s]=t.slice(1);let u="",c=s;var l=c.split("/");if(l.length>1&&(u=l.slice(0,-1).join("/"),c=l.pop()),c){var f=c.match(/^\d+/);f&&(c=f[0])}return Hs({host:o,pass:i,path:u,projectId:c,port:a,protocol:n,publicKey:r})}(n):Hs(n),function(e){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return;const{port:t,projectId:n,protocol:r}=e;if(["protocol","publicKey","host","projectId"].forEach((t=>{if(!e[t])throw new Ps(`Invalid Sentry Dsn: ${t} missing`)})),!n.match(/^\d+$/))throw new Ps(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!function(e){return"http"===e||"https"===e}(r))throw new Ps(`Invalid Sentry Dsn: Invalid protocol ${r}`);if(t&&isNaN(parseInt(t,10)))throw new Ps(`Invalid Sentry Dsn: Invalid port ${t}`)}(r),r);var t=Js(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.warn("No DSN provided, client will not do anything.");var n,r}captureException(e,t,n){if(zo(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.log(eu));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,r){let i=n&&n.event_id;var o=po(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(o.then((e=>this._captureEvent(e,n,r))).then((e=>{i=e}))),i}captureEvent(e,t,n){if(t&&t.originalException&&zo(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.log(eu));let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((e=>{r=e}))),r}captureSession(e){this._isEnabled()?"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),ta(e,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getTransport(){return this._transport}flush(e){var t=this._transport;return t?this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e)))):Xo(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(e){var t={};return e.forEach((e=>{t[e.name]=e,-1===Zs.indexOf(e.name)&&(e.setupOnce(ia,ca),Zs.push(e.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.log(`Integration installed: ${e.name}`))})),t}(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}sendEvent(e,t={}){if(this._dsn){let r=function(e,t,n,r){var i=Xs(n),o=e.type||"event";const{transactionSampling:a}=e.sdkProcessingMetadata||{},{method:s,rate:u}=a||{};!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);var c=function(e,t,n,r){var i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baggage,o=i&&function(e){return e[0]}(i);return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&{dsn:Ks(r)},..."transaction"===e.type&&o&&{trace:ko({...o})}}}(e,i,r,t);return delete e.sdkProcessingMetadata,Ns(c,[[{type:o,sample_rates:[{id:s,rate:u}]},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(var n of t.attachments||[])r=Fs(r,Ls(n,this._options.transportOptions&&this._options.transportOptions.textEncoder));this._sendEnvelope(r)}}sendSession(e){if(this._dsn){var t=function(e,t,n,r){var i=Xs(n);return Ns({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&{dsn:Ks(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}}recordDroppedEvent(e,t){if(this._options.sendClientReports){var n=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}_updateSessionFromEvent(e,t){let n=!1,r=!1;var i=t.exception&&t.exception.values;if(i)for(var o of(r=!0,i)){var a=o.mechanism;if(a&&!1===a.handled){n=!0;break}}var s="ok"===e.status;(s&&0===e.errors||s&&n)&&(ta(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new ea((t=>{let n=0;var r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(e,t,n){const{normalizeDepth:r=3,normalizeMaxBreadth:i=1e3}=this.getOptions();var o={...e,event_id:e.event_id||t.event_id||Bo(),timestamp:e.timestamp||(0,Ho.yW)()};this._applyClientOptions(o),this._applyIntegrationsMetadata(o);let a=n;t.captureContext&&(a=na.clone(a).update(t.captureContext));let s=Xo(o);if(a){var u=[...t.attachments||[],...a.getAttachments()];u.length&&(t.attachments=u),s=a.applyToEvent(o,t)}return s.then((e=>"number"==typeof r&&r>0?this._normalizeEvent(e,r,i):e))}_normalizeEvent(e,t,n){if(!e)return null;var r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:Ra(e.data,t,n)}})))},...e.user&&{user:Ra(e.user,t,n)},...e.contexts&&{contexts:Ra(e.contexts,t,n)},...e.extra&&{extra:Ra(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Ra(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>(e.data&&(e.data=Ra(e.data,t,n)),e)))),r}_applyClientOptions(e){var t=this.getOptions();const{environment:n,release:r,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=bo(e.message,o));var a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=bo(a.value,o));var s=e.request;s&&s.url&&(s.url=bo(s.url,o))}_applyIntegrationsMetadata(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){var t=e;"log"===t.logLevel?Lo.log(t.message):Lo.warn(t)}}))}_processEvent(e,t,n){const{beforeSend:r,sampleRate:i}=this.getOptions();if(!this._isEnabled())return Zo(new Ps("SDK not enabled, will not capture event.","log"));var o="transaction"===e.type;return!o&&"number"==typeof i&&Math.random()>i?(this.recordDroppedEvent("sample_rate","error"),Zo(new Ps(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"))):this._prepareEvent(e,t,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",e.type||"error"),new Ps("An event processor returned null, will not send event.","log");return t.data&&!0===t.data.__sentry__||o||!r?n:function(e){var t="`beforeSend` method has to return `null` or a valid event.";if(yo(e))return e.then((e=>{if(!ho(e)&&null!==e)throw new Ps(t);return e}),(e=>{throw new Ps(`beforeSend rejected with ${e}`)}));if(!ho(e)&&null!==e)throw new Ps(t);return e}(r(n,t))})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",e.type||"error"),new Ps("`beforeSend` returned `null`, will not send event.","log");var i=n&&n.getSession();return!o&&i&&this._updateSessionFromEvent(i,r),this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof Ps)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Ps(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing+=1,e.then((e=>(this._numProcessing-=1,e)),(e=>(this._numProcessing-=1,e)))}_sendEnvelope(e){this._transport&&this._dsn?this._transport.send(e).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.error("Error while sending event:",e)})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.error("Transport disabled")}_clearOutcomes(){var e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}var nu="7.11.1",ru=(0,oo.R)();class iu extends tu{constructor(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:nu}],version:nu},super(e),e.sendClientReports&&ru.document&&ru.document.addEventListener("visibilitychange",(()=>{"hidden"===ru.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){var i=Ma(e,t,n&&n.syntheticException||void 0,r);return Go(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),Xo(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){var o=La(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),Xo(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}sendEvent(e,t){var n=this.getIntegrationById(as);n&&n.options&&n.options.sentry&&ca().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:Vo(e)},{event:e}),super.sendEvent(e,t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){var e=this._clearOutcomes();if(0!==e.length)if(this._dsn){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.log("Sending outcomes:",e);var t,n,r=Js(this._dsn,this._options),i=(t=e,Ns((n=this._options.tunnel&&Ks(this._dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:(0,Ho.yW)(),discarded_events:t}]]));try{!function(e,t){"[object Navigator]"===Object.prototype.toString.call($s&&$s.navigator)&&"function"==typeof $s.navigator.sendBeacon?$s.navigator.sendBeacon.bind($s.navigator)(e,t):va()&&zs()(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.error(e)}))}(r,Ms(i))}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.error(e)}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.log("No dsn provided, will not send outcomes");else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Lo.log("No outcomes to send")}}var ou,au=n(4147),su=[new Ss.InboundFilters,new Ss.FunctionToString,new Ss.TryCatch,new Ss.Breadcrumbs,new Ss.LinkedErrors,new Ss.Dedupe,new Ss.HttpContext],uu=new aa;!function(e){e.IN_PROGRESS="IN_PROGRESS",e.SUCCESS="READY",e.FAILED="FAILED"}(ou||(ou={}));var cu=function(){function e(e){this.eventEmitter=e,this.initializationPromise=null,this.initializationStatus=ou.IN_PROGRESS,this.initFailureError=null}return e.prototype.getInitializationPromise=function(){var e=this;return this.initializationPromise?this.initializationPromise:this.initializationStatus===ou.SUCCESS?Promise.resolve():this.initializationStatus===ou.FAILED?Promise.reject(this.initFailureError):(this.initializationPromise=new Promise((function(t,n){e.eventEmitter.once("initializeSuccessfully",(function(){t()})),e.eventEmitter.once("initializeFailed",(function(e){n(e)}))})),this.initializationPromise)},e.prototype.signalSuccessInit=function(){this.initializationStatus=ou.SUCCESS,this.eventEmitter.emit("initializeSuccessfully")},e.prototype.signalFailedInit=function(e){this.initializationStatus=ou.FAILED,this.initFailureError=e,this.eventEmitter.emit("initializeFailed",e)},e}(),lu=function(){return lu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},lu.apply(this,arguments)};function fu(e,t){return n=this,r=void 0,o=function(){return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e()];case 1:return[2,n.sent()];case 2:return[2,du(n.sent(),t)];case 3:return[2]}}))},new((i=void 0)||(i=Promise))((function(e,t){function a(e){try{u(o.next(e))}catch(e){t(e)}}function s(e){try{u(o.throw(e))}catch(e){t(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(a,s)}u((o=o.apply(n,r||[])).next())}));var n,r,i,o}function pu(e,t){try{return e()}catch(e){return du(e,t)}}function du(e,t){var n=t.loggerService,r=t.sdkConfiguration,i=t.errorMessage,o=t.rethrowError,a=t.errorReportMetadata,s=i?i(e):"Operation failed. Error: ".concat(e.message);if(n.error(s,e),function(e,t){var n=t.sdkConfiguration,r=t.errorMessage,i=t.errorReportMetadata;uu.withScope((function(t){var o={errorMessage:r};if(n){var a=n.customerId,s=lu(lu({},n),{apiKey:void 0});a&&t.setTags({customerId:a}),o.sdkConfiguration=s}i&&(o=lu(lu({},o),i)),t.setExtras(o),uu.captureException(e)}))}(e,{sdkConfiguration:r,errorMessage:s,errorReportMetadata:a}),o)throw new Error(s)}var hu,vu=n(2527),yu=(hu=function(e,t){return hu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},hu(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}hu(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),mu=function(e){function t(){return e.call(this)||this}return yu(t,e),t}(vu.TypedEmitter);function gu(e,t){return function(){return e.apply(t,arguments)}}const{toString:_u}=Object.prototype,{getPrototypeOf:bu}=Object,Eu=(wu=Object.create(null),e=>{const t=_u.call(e);return wu[t]||(wu[t]=t.slice(8,-1).toLowerCase())});var wu;const Su=e=>(e=e.toLowerCase(),t=>Eu(t)===e),Tu=e=>t=>typeof t===e,{isArray:Iu}=Array,Ou=Tu("undefined"),xu=Su("ArrayBuffer"),Du=Tu("string"),Au=Tu("function"),Ru=Tu("number"),ku=e=>null!==e&&"object"==typeof e,Cu=e=>{if("object"!==Eu(e))return!1;const t=bu(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Pu=Su("Date"),Nu=Su("File"),Fu=Su("Blob"),ju=Su("FileList"),Uu=Su("URLSearchParams");function Mu(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),Iu(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(r=0;r<o;r++)a=i[r],t.call(null,e[a],a,e)}}function Lu(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const Bu="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,qu=e=>!Ou(e)&&e!==Bu,Vu=($u="undefined"!=typeof Uint8Array&&bu(Uint8Array),e=>$u&&e instanceof $u);var $u;const Gu=Su("HTMLFormElement"),zu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Qu=Su("RegExp"),Wu=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Mu(n,((n,i)=>{!1!==t(n,i,e)&&(r[i]=n)})),Object.defineProperties(e,r)},Yu={isArray:Iu,isArrayBuffer:xu,isBuffer:function(e){return null!==e&&!Ou(e)&&null!==e.constructor&&!Ou(e.constructor)&&Au(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{const t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||_u.call(e)===t||Au(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&xu(e.buffer),t},isString:Du,isNumber:Ru,isBoolean:e=>!0===e||!1===e,isObject:ku,isPlainObject:Cu,isUndefined:Ou,isDate:Pu,isFile:Nu,isBlob:Fu,isRegExp:Qu,isFunction:Au,isStream:e=>ku(e)&&Au(e.pipe),isURLSearchParams:Uu,isTypedArray:Vu,isFileList:ju,forEach:Mu,merge:function e(){const{caseless:t}=qu(this)&&this||{},n={},r=(r,i)=>{const o=t&&Lu(n,i)||i;Cu(n[o])&&Cu(r)?n[o]=e(n[o],r):Cu(r)?n[o]=e({},r):Iu(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Mu(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(Mu(t,((t,r)=>{n&&Au(t)?e[r]=gu(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&bu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Eu,kindOfTest:Su,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Iu(e))return e;let t=e.length;if(!Ru(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Gu,hasOwnProperty:zu,hasOwnProp:zu,reduceDescriptors:Wu,freezeMethods:e=>{Wu(e,((t,n)=>{if(Au(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Au(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return Iu(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:Lu,global:Bu,isContextDefined:qu,toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(ku(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=Iu(e)?[]:{};return Mu(e,((e,t)=>{const o=n(e,r+1);!Ou(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)}};function Ku(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}Yu.inherits(Ku,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Yu.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Hu=Ku.prototype,Ju={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Ju[e]={value:e}})),Object.defineProperties(Ku,Ju),Object.defineProperty(Hu,"isAxiosError",{value:!0}),Ku.from=(e,t,n,r,i,o)=>{const a=Object.create(Hu);return Yu.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Ku.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const Xu=Ku,Zu=n(6401);function ec(e){return Yu.isPlainObject(e)||Yu.isArray(e)}function tc(e){return Yu.endsWith(e,"[]")?e.slice(0,-2):e}function nc(e,t,n){return e?e.concat(t).map((function(e,t){return e=tc(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const rc=Yu.toFlatObject(Yu,{},null,(function(e){return/^is[A-Z]/.test(e)})),ic=function(e,t,n){if(!Yu.isObject(e))throw new TypeError("target must be an object");t=t||new(Zu||FormData);const r=(n=Yu.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Yu.isUndefined(t[e])}))).metaTokens,i=n.visitor||l,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&(u=t)&&Yu.isFunction(u.append)&&"FormData"===u[Symbol.toStringTag]&&u[Symbol.iterator];var u;if(!Yu.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Yu.isDate(e))return e.toISOString();if(!s&&Yu.isBlob(e))throw new Xu("Blob is not supported. Use a Buffer instead.");return Yu.isArrayBuffer(e)||Yu.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,i){let s=e;if(e&&!i&&"object"==typeof e)if(Yu.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Yu.isArray(e)&&function(e){return Yu.isArray(e)&&!e.some(ec)}(e)||Yu.isFileList(e)||Yu.endsWith(n,"[]")&&(s=Yu.toArray(e)))return n=tc(n),s.forEach((function(e,r){!Yu.isUndefined(e)&&null!==e&&t.append(!0===a?nc([n],r,o):null===a?n:n+"[]",c(e))})),!1;return!!ec(e)||(t.append(nc(i,n,o),c(e)),!1)}const f=[],p=Object.assign(rc,{defaultVisitor:l,convertValue:c,isVisitable:ec});if(!Yu.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Yu.isUndefined(n)){if(-1!==f.indexOf(n))throw Error("Circular reference detected in "+r.join("."));f.push(n),Yu.forEach(n,(function(n,o){!0===(!(Yu.isUndefined(n)||null===n)&&i.call(t,n,Yu.isString(o)?o.trim():o,r,p))&&e(n,r?r.concat(o):[o])})),f.pop()}}(e),t};function oc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ac(e,t){this._pairs=[],e&&ic(e,this,t)}const sc=ac.prototype;sc.append=function(e,t){this._pairs.push([e,t])},sc.toString=function(e){const t=e?function(t){return e.call(this,t,oc)}:oc;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const uc=ac;function cc(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function lc(e,t,n){if(!t)return e;const r=n&&n.encode||cc,i=n&&n.serialize;let o;if(o=i?i(t,n):Yu.isURLSearchParams(t)?t.toString():new uc(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const fc=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Yu.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},pc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},dc="undefined"!=typeof URLSearchParams?URLSearchParams:uc,hc=FormData,vc=(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),yc="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,mc={isBrowser:!0,classes:{URLSearchParams:dc,FormData:hc,Blob},isStandardBrowserEnv:vc,isStandardBrowserWebWorkerEnv:yc,protocols:["http","https","file","blob","url","data"]},gc=function(e){function t(e,n,r,i){let o=e[i++];const a=Number.isFinite(+o),s=i>=e.length;return o=!o&&Yu.isArray(r)?r.length:o,s?(Yu.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a):(r[o]&&Yu.isObject(r[o])||(r[o]=[]),t(e,n,r[o],i)&&Yu.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}(r[o])),!a)}if(Yu.isFormData(e)&&Yu.isFunction(e.entries)){const n={};return Yu.forEachEntry(e,((e,r)=>{t(function(e){return Yu.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},_c={"Content-Type":void 0},bc={transitional:pc,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=Yu.isObject(e);if(i&&Yu.isHTMLForm(e)&&(e=new FormData(e)),Yu.isFormData(e))return r&&r?JSON.stringify(gc(e)):e;if(Yu.isArrayBuffer(e)||Yu.isBuffer(e)||Yu.isStream(e)||Yu.isFile(e)||Yu.isBlob(e))return e;if(Yu.isArrayBufferView(e))return e.buffer;if(Yu.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ic(e,new mc.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return mc.isNode&&Yu.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=Yu.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ic(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(Yu.isString(e))try{return(0,JSON.parse)(e),Yu.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||bc.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&Yu.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Xu.from(e,Xu.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:mc.classes.FormData,Blob:mc.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Yu.forEach(["delete","get","head"],(function(e){bc.headers[e]={}})),Yu.forEach(["post","put","patch"],(function(e){bc.headers[e]=Yu.merge(_c)}));const Ec=bc,wc=Yu.toObjectSet(["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"]),Sc=Symbol("internals");function Tc(e){return e&&String(e).trim().toLowerCase()}function Ic(e){return!1===e||null==e?e:Yu.isArray(e)?e.map(Ic):String(e)}function Oc(e,t,n,r){return Yu.isFunction(r)?r.call(this,t,n):Yu.isString(t)?Yu.isString(r)?-1!==t.indexOf(r):Yu.isRegExp(r)?r.test(t):void 0:void 0}class xc{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=Tc(t);if(!i)throw new Error("header name must be a non-empty string");const o=Yu.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=Ic(e))}const o=(e,t)=>Yu.forEach(e,((e,n)=>i(e,n,t)));return Yu.isPlainObject(e)||e instanceof this.constructor?o(e,t):Yu.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z]+$/.test(e.trim())?o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&wc[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&i(t,e,n),this}get(e,t){if(e=Tc(e)){const n=Yu.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Yu.isFunction(t))return t.call(this,e,n);if(Yu.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Tc(e)){const n=Yu.findKey(this,e);return!(!n||t&&!Oc(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=Tc(e)){const i=Yu.findKey(n,e);!i||t&&!Oc(0,n[i],i,t)||(delete n[i],r=!0)}}return Yu.isArray(e)?e.forEach(i):i(e),r}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(e){const t=this,n={};return Yu.forEach(this,((r,i)=>{const o=Yu.findKey(n,i);if(o)return t[o]=Ic(r),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();a!==i&&delete t[i],t[a]=Ic(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Yu.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Yu.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Sc]=this[Sc]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Tc(e);t[r]||(function(e,t){const n=Yu.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return Yu.isArray(e)?e.forEach(r):r(e),this}}xc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),Yu.freezeMethods(xc.prototype),Yu.freezeMethods(xc);const Dc=xc;function Ac(e,t){const n=this||Ec,r=t||n,i=Dc.from(r.headers);let o=r.data;return Yu.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function Rc(e){return!(!e||!e.__CANCEL__)}function kc(e,t,n){Xu.call(this,null==e?"canceled":e,Xu.ERR_CANCELED,t,n),this.name="CanceledError"}Yu.inherits(kc,Xu,{__CANCEL__:!0});const Cc=kc,Pc=mc.isStandardBrowserEnv?{write:function(e,t,n,r,i,o){const a=[];a.push(e+"="+encodeURIComponent(t)),Yu.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Yu.isString(r)&&a.push("path="+r),Yu.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Nc(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Fc=mc.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=Yu.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function jc(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const u=Date.now(),c=r[a];i||(i=u),n[o]=s,r[o]=u;let l=a,f=0;for(;l!==o;)f+=n[l++],l%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),u-i<t)return;const p=c&&u-c;return p?Math.round(1e3*f/p):void 0}}(50,250);return i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,u=r(s);n=o;const c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:u||void 0,estimated:u&&a&&o<=a?(a-o)/u:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const Uc={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const i=Dc.from(e.headers).normalize(),o=e.responseType;let a;function s(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}Yu.isFormData(r)&&(mc.isStandardBrowserEnv||mc.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(t+":"+n))}const c=Nc(e.baseURL,e.url);function l(){if(!u)return;const r=Dc.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Xu("Request failed with status code "+n.status,[Xu.ERR_BAD_REQUEST,Xu.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),s()}),(function(e){n(e),s()}),{data:o&&"text"!==o&&"json"!==o?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),lc(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=l:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(l)},u.onabort=function(){u&&(n(new Xu("Request aborted",Xu.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new Xu("Network Error",Xu.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||pc;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Xu(t,r.clarifyTimeoutError?Xu.ETIMEDOUT:Xu.ECONNABORTED,e,u)),u=null},mc.isStandardBrowserEnv){const t=(e.withCredentials||Fc(c))&&e.xsrfCookieName&&Pc.read(e.xsrfCookieName);t&&i.set(e.xsrfHeaderName,t)}void 0===r&&i.setContentType(null),"setRequestHeader"in u&&Yu.forEach(i.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),Yu.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),o&&"json"!==o&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",jc(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",jc(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=t=>{u&&(n(!t||t.type?new Cc(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(c);f&&-1===mc.protocols.indexOf(f)?n(new Xu("Unsupported protocol "+f+":",Xu.ERR_BAD_REQUEST,e)):u.send(r||null)}))}};Yu.forEach(Uc,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));function Mc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cc(null,e)}function Lc(e){return Mc(e),e.headers=Dc.from(e.headers),e.data=Ac.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),(e=>{e=Yu.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let i=0;i<t&&(n=e[i],!(r=Yu.isString(n)?Uc[n.toLowerCase()]:n));i++);if(!r){if(!1===r)throw new Xu(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(Yu.hasOwnProp(Uc,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`)}if(!Yu.isFunction(r))throw new TypeError("adapter is not a function");return r})(e.adapter||Ec.adapter)(e).then((function(t){return Mc(e),t.data=Ac.call(e,e.transformResponse,t),t.headers=Dc.from(t.headers),t}),(function(t){return Rc(t)||(Mc(e),t&&t.response&&(t.response.data=Ac.call(e,e.transformResponse,t.response),t.response.headers=Dc.from(t.response.headers))),Promise.reject(t)}))}const Bc=e=>e instanceof Dc?e.toJSON():e;function qc(e,t){t=t||{};const n={};function r(e,t,n){return Yu.isPlainObject(e)&&Yu.isPlainObject(t)?Yu.merge.call({caseless:n},e,t):Yu.isPlainObject(t)?Yu.merge({},t):Yu.isArray(t)?t.slice():t}function i(e,t,n){return Yu.isUndefined(t)?Yu.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!Yu.isUndefined(t))return r(void 0,t)}function a(e,t){return Yu.isUndefined(t)?Yu.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const u={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>i(Bc(e),Bc(t),!0)};return Yu.forEach(Object.keys(e).concat(Object.keys(t)),(function(r){const o=u[r]||i,a=o(e[r],t[r],r);Yu.isUndefined(a)&&o!==s||(n[r]=a)})),n}const Vc={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Vc[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const $c={};Vc.transitional=function(e,t,n){function r(e,t){return"[Axios v1.2.2] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new Xu(r(i," has been removed"+(t?" in "+t:"")),Xu.ERR_DEPRECATED);return t&&!$c[i]&&($c[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}};const Gc={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Xu("options must be an object",Xu.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new Xu("option "+o+" must be "+n,Xu.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Xu("Unknown option "+o,Xu.ERR_BAD_OPTION)}},validators:Vc},zc=Gc.validators;class Qc{constructor(e){this.defaults=e,this.interceptors={request:new fc,response:new fc}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=qc(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;let o;void 0!==n&&Gc.assertOptions(n,{silentJSONParsing:zc.transitional(zc.boolean),forcedJSONParsing:zc.transitional(zc.boolean),clarifyTimeoutError:zc.transitional(zc.boolean)},!1),void 0!==r&&Gc.assertOptions(r,{encode:zc.function,serialize:zc.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase(),o=i&&Yu.merge(i.common,i[t.method]),o&&Yu.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=Dc.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const u=[];let c;this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));let l,f=0;if(!s){const e=[Lc.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,u),l=e.length,c=Promise.resolve(t);f<l;)c=c.then(e[f++],e[f++]);return c}l=a.length;let p=t;for(f=0;f<l;){const e=a[f++],t=a[f++];try{p=e(p)}catch(e){t.call(this,e);break}}try{c=Lc.call(this,p)}catch(e){return Promise.reject(e)}for(f=0,l=u.length;f<l;)c=c.then(u[f++],u[f++]);return c}getUri(e){return lc(Nc((e=qc(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Yu.forEach(["delete","get","head","options"],(function(e){Qc.prototype[e]=function(t,n){return this.request(qc(n||{},{method:e,url:t,data:(n||{}).data}))}})),Yu.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(qc(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Qc.prototype[e]=t(),Qc.prototype[e+"Form"]=t(!0)}));const Wc=Qc;class Yc{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new Cc(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Yc((function(t){e=t})),cancel:e}}}const Kc=Yc,Hc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Hc).forEach((([e,t])=>{Hc[t]=e}));const Jc=Hc,Xc=function e(t){const n=new Wc(t),r=gu(Wc.prototype.request,n);return Yu.extend(r,Wc.prototype,n,{allOwnKeys:!0}),Yu.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(qc(t,n))},r}(Ec);Xc.Axios=Wc,Xc.CanceledError=Cc,Xc.CancelToken=Kc,Xc.isCancel=Rc,Xc.VERSION="1.2.2",Xc.toFormData=ic,Xc.AxiosError=Xu,Xc.Cancel=Xc.CanceledError,Xc.all=function(e){return Promise.all(e)},Xc.spread=function(e){return function(t){return e.apply(null,t)}},Xc.isAxiosError=function(e){return Yu.isObject(e)&&!0===e.isAxiosError},Xc.mergeConfig=qc,Xc.AxiosHeaders=Dc,Xc.formToJSON=e=>gc(Yu.isHTMLForm(e)?new FormData(e):e),Xc.HttpStatusCode=Jc,Xc.default=Xc;const Zc=Xc;var el=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tl=function(e){function t(t,n){var r=e.call(this,(function(e){var i=function(){return o=r,a=void 0,u=function(){var r,o;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(a){switch(a.label){case 0:if(this.stopped)return e.complete(),[2];a.label=1;case 1:return a.trys.push([1,3,,4]),o=(r=e).next,[4,t()];case 2:return o.apply(r,[a.sent()]),[3,4];case 3:return a.sent(),[3,4];case 4:return setTimeout((function(){return i()}),n),[2]}}))},new((s=void 0)||(s=Promise))((function(e,t){function n(e){try{i(u.next(e))}catch(e){t(e)}}function r(e){try{i(u.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):(i=t.value,i instanceof s?i:new s((function(e){e(i)}))).then(n,r)}i((u=u.apply(o,a||[])).next())}));var o,a,s,u};i()}))||this;return r.stopped=!1,r}return el(t,e),t.prototype.stopPolling=function(){this.stopped=!0},t}(Ce),nl=function(){function e(e,t){this.dynamicData=t;var n=e.apiKey,r=e.baseEdgeUri;this.httpClient=Zc.create({baseURL:r,headers:{"X-API-KEY":n,source:j}})}return e.create=function(t,n){return t.enableEdge?new e(t,n):null},e.prototype.getPaywall=function(e,t){var n=e?"/p/".concat(e):"",r=t?"billingCountryCode=".concat(t):"";return this.get("/v1".concat(n,"/paywall.json?").concat(r))},e.prototype.getEntitlements=function(e,t){var n=t?"?resourceId=".concat(t):"";return this.get("/v1/c/".concat(e,"/entitlements.json").concat(n))},e.prototype.getSdkConfiguration=function(){return this.get("/v1/config/client-sdk-configuration.json")},e.prototype.watchEntitlements=function(e,t,n){var r=this;return new tl((function(){return r.getEntitlements(e,n)}),t)},e.prototype.get=function(e){var t={},n=this.dynamicData.customerToken;return n&&(t["X-CUSTOMER-KEY"]=n),this.httpClient.get(e,{headers:t}).then((function(e){return e.data}))},e}(),rl=function(){return rl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},rl.apply(this,arguments)},il=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},ol=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},al=function(){function e(e,t){var n,r,i,o,a,s;this.modelMapper=new W,this.eventEmitter=new mu,this.showWidgetsWatermark=!1,this.configuration=e,this.edgeApiClient=nl.create(e,e),this.graphClient=(n=this.configuration,r=n.apiKey,i=n.baseUri,o=zi(r,n),a=function(e){return new Ft({uri:"".concat(e,"/graphql"),fetch:Mi()})}(i),s=new $i({attempts:{max:5,retryIf:Qi},delay:{initial:500,max:2e3,jitter:!0}}),new $r({link:o.concat(s.concat(a)),cache:new Fi({possibleTypes:ji.g}),name:"js-client-sdk",version:Gi.version})),this.batchedGraphClient=function(e){var t=e.apiKey,n=e.baseUri,r=zi(t,e),i=function(e){return new qi({uri:"".concat(e,"/graphql"),batchMax:25,batchInterval:500,fetch:Mi()})}(n);return new $r({link:r.concat(i),cache:new Fi({possibleTypes:ji.g}),name:"js-client-sdk",version:Gi.version})}(this.configuration),this.loggerService=t,this.apiGateway=new k(this.graphClient,this.edgeApiClient),this.globalEntitlementsService=null,this.resourceEntitlementsService=null,this.initializationStateTracker=new cu(this.eventEmitter)}return e.initialize=function(t){var n=function(e){var t=U(),n=e.baseEdgeUri?e.baseEdgeUri:e.baseUri?M(e.baseUri):t.baseEdgeUri;return F()(t,e,{baseEdgeUri:n})}(t),r=new p(n.logConfiguration.logger,n.logConfiguration.logLevel);!function(e,t){if(P()(e.apiKey)){var n="You must configure the client with an SDK key";throw t.error(n),new Error(n)}var r=U();e.useEntitlementPolling&&e.entitlementPollingInterval&&e.entitlementPollingInterval<5e3&&(t.error("Entitlements polling interval cannot be lower than 5000ms, using default value ".concat(r.entitlementPollingInterval)),e.entitlementPollingInterval=r.entitlementPollingInterval)}(n,r);var i=new e(n,r);return this.initializeSdk(i).then((function(){n.customerId?n.lazyLoad||i.setCustomerId(n.customerId,n.customerToken,n.resourceId):i.initializationStateTracker.signalSuccessInit()})).catch((function(e){return i.initializationStateTracker.signalFailedInit(e)})),i},e.prototype.waitForInitialization=function(){return il(this,void 0,void 0,(function(){var e=this;return ol(this,(function(t){return[2,this.initializationStateTracker.getInitializationPromise().then((function(){return e}))]}))}))},e.initializeSdk=function(e){var t,n,r,i;return il(this,void 0,void 0,(function(){var o,a,s,u;return ol(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,e.apiGateway.sdkConfiguration.getSdkConfiguration()];case 1:return o=c.sent(),a=null===(t=o.data)||void 0===t?void 0:t.sdkConfiguration,!uu.getClient()&&(null==a?void 0:a.sentryDsn)&&(v=a.sentryDsn,l=void 0,f=void 0,h=function(){var e,t;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(n){return e={dsn:v,normalizeDepth:6,release:"".concat("js-client-sdk","@").concat(au.version),integrations:su,stackParser:ks,transport:va()?Qs:Ws},t=new iu(e),uu.bindClient(t),[2]}))},new((p=void 0)||(p=Promise))((function(e,t){function n(e){try{i(h.next(e))}catch(e){t(e)}}function r(e){try{i(h.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):(i=t.value,i instanceof p?i:new p((function(e){e(i)}))).then(n,r)}i((h=h.apply(l,f||[])).next())}))),e.showWidgetsWatermark=!!(null==a?void 0:a.isWidgetWatermarkEnabled),[3,3];case 2:throw s=c.sent(),401===(null===(n=s.response)||void 0===n?void 0:n.status)||s.graphQLErrors&&(null===(i=null===(r=s.graphQLErrors[0])||void 0===r?void 0:r.extensions)||void 0===i?void 0:i.code)===d.jK.Unauthenticated?(u="Authentication failed. Double check your SDK key.",e.loggerService.error(u),new Error(u)):(e.loggerService.error("Failed to load sdk configuration",s),s);case 3:return[2]}var l,f,p,h,v}))}))},Object.defineProperty(e.prototype,"isCustomerLoaded",{get:function(){var e;return(null===(e=this.globalEntitlementsService)||void 0===e?void 0:e.isInitialized)||!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isResourceLoaded",{get:function(){var e;return(null===(e=this.resourceEntitlementsService)||void 0===e?void 0:e.isInitialized)||!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isWidgetWatermarkEnabled",{get:function(){return this.showWidgetsWatermark},enumerable:!1,configurable:!0}),e.prototype.addListener=function(e,t){this.eventEmitter.on(e,t)},e.prototype.removeListener=function(e,t){this.eventEmitter.off(e,t)},e.prototype.setCustomerId=function(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=null),il(this,void 0,void 0,(function(){var r,i=this;return ol(this,(function(o){switch(o.label){case 0:if(this.clearCustomer(),!e)return this.loggerService.log("`setCustomerId` was called without a customerId, did you mean to call `clearCustomer`?"),[2];if(!(0,eo.isString)(e))throw new Error("customerId parameter must be a string");if(t&&!(0,eo.isString)(t))throw new Error("customerToken parameter must be a string");if(n&&!(0,eo.isString)(n))throw new Error("resourceId parameter must be a string");this.configuration.customerId=e,this.configuration.customerToken=t,this.configuration.resourceId=n,this.globalEntitlementsService=new io(e,void 0,new Wi,this.graphClient,this.batchedGraphClient,this.edgeApiClient,this.loggerService,(function(e){return i.eventEmitter.emit("entitlementsUpdated",e)})),n&&(this.resourceEntitlementsService=new io(e,n,new Wi,this.graphClient,this.batchedGraphClient,this.edgeApiClient,this.loggerService,(function(e){return i.eventEmitter.emit("entitlementsUpdated",e)}))),this.configuration.useEntitlementPolling&&(this.globalEntitlementsService.startPolling(this.configuration.entitlementPollingInterval),this.resourceEntitlementsService&&this.resourceEntitlementsService.startPolling(this.configuration.entitlementPollingInterval)),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,fu((function(){return il(i,void 0,void 0,(function(){var e,t;return ol(this,(function(n){switch(n.label){case 0:return[4,Promise.all([null===(e=this.globalEntitlementsService)||void 0===e?void 0:e.loadEntitlements(),null===(t=this.resourceEntitlementsService)||void 0===t?void 0:t.loadEntitlements()])];case 1:return n.sent(),[2]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to load initial entitlements for customer. Error: ".concat(e.message)},rethrowError:!0})];case 2:return o.sent(),this.initializationStateTracker.signalSuccessInit(),[3,4];case 3:return r=o.sent(),this.initializationStateTracker.signalFailedInit(r),[3,4];case 4:return[2]}}))}))},e.prototype.clearCustomer=function(){var e,t;null===(e=this.globalEntitlementsService)||void 0===e||e.stopPolling(),this.globalEntitlementsService=null,null===(t=this.resourceEntitlementsService)||void 0===t||t.stopPolling(),this.resourceEntitlementsService=null,this.configuration.customerId=null,this.configuration.customerToken=null,this.configuration.resourceId=null},e.prototype.setResource=function(e){return il(this,void 0,void 0,(function(){var t,n=this;return ol(this,(function(r){switch(r.label){case 0:if(!this.configuration.customerId)throw new Error("`setResource` must be called when customer was set, did you forget to call `setCustomerId`?");if(this.clearResource(),!(0,eo.isString)(e))throw new Error("resourceId parameter must be a string");this.configuration.resourceId=e,this.resourceEntitlementsService=new io(this.configuration.customerId,e,new Wi,this.graphClient,this.batchedGraphClient,this.edgeApiClient,this.loggerService,(function(e){return n.eventEmitter.emit("entitlementsUpdated",e)})),this.configuration.useEntitlementPolling&&this.resourceEntitlementsService.startPolling(this.configuration.entitlementPollingInterval),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,fu((function(){return il(n,void 0,void 0,(function(){var e;return ol(this,(function(t){return null===(e=this.resourceEntitlementsService)||void 0===e||e.loadEntitlements(),[2]}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to load initial entitlements for customer resource. Error: ".concat(e.message)},rethrowError:!0})];case 2:return r.sent(),this.initializationStateTracker.signalSuccessInit(),[3,4];case 3:return t=r.sent(),this.initializationStateTracker.signalFailedInit(t),[3,4];case 4:return[2]}}))}))},e.prototype.clearResource=function(){var e;if(!this.configuration.customerId)throw new Error("`clearResource` must be called when customer was set, did you forget to call `setCustomerId`?");null===(e=this.resourceEntitlementsService)||void 0===e||e.stopPolling(),this.resourceEntitlementsService=null,this.configuration.resourceId=null},e.prototype.refresh=function(){return il(this,void 0,void 0,(function(){var e=this;return ol(this,(function(t){return[2,fu((function(){return il(e,void 0,void 0,(function(){var e,t;return ol(this,(function(n){switch(n.label){case 0:return[4,Promise.all([null===(e=this.globalEntitlementsService)||void 0===e?void 0:e.refresh(),null===(t=this.resourceEntitlementsService)||void 0===t?void 0:t.refresh()])];case 1:return n.sent(),[2]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to refresh entitlements. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.getBooleanEntitlement=function(e){var t,n=this,r=e.featureId,i=e.options,o=e.resourceId,a=(null==i?void 0:i.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[r])||{},s=rl(rl({},h),a);return pu((function(){return n.globalEntitlementsService&&n.isCustomerLoaded?o?o!==n.configuration.resourceId?(n.loggerService.log("Resource ID ".concat(o," does not match the current resource ID ").concat(n.configuration.resourceId,".")),s):n.isResourceLoaded&&n.resourceEntitlementsService?n.resourceEntitlementsService.getBooleanEntitlement(r,s,i):s:n.globalEntitlementsService.getBooleanEntitlement(r,s,i):s}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get boolean entitlement. Error: ".concat(e.message)},rethrowError:!1,errorReportMetadata:{featureId:r,options:i}})||s},e.prototype.getNumericEntitlement=function(e){var t,n=this,r=e.featureId,i=e.options,o=e.resourceId,a=(null==i?void 0:i.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[r])||{},s=rl(rl({},v),a);return pu((function(){return n.globalEntitlementsService&&n.isCustomerLoaded?o?o!==n.configuration.resourceId?(n.loggerService.log("Resource ID ".concat(o," does not match the current resource ID ").concat(n.configuration.resourceId,".")),s):n.isResourceLoaded&&n.resourceEntitlementsService?n.resourceEntitlementsService.getNumericEntitlement(r,s,i):s:n.globalEntitlementsService.getNumericEntitlement(r,s,i):s}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get numeric entitlement. Error: ".concat(e.message)},rethrowError:!1,errorReportMetadata:{featureId:r,options:i}})||s},e.prototype.getMeteredEntitlement=function(e){var t,n=this,r=e.featureId,i=e.options,o=e.resourceId,a=(null==i?void 0:i.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[r])||{},s=rl(rl({},y),a);return pu((function(){return n.globalEntitlementsService&&n.isCustomerLoaded?o?o!==n.configuration.resourceId?(n.loggerService.log("Resource ID ".concat(o," does not match the current resource ID ").concat(n.configuration.resourceId,".")),s):n.isResourceLoaded&&n.resourceEntitlementsService?n.resourceEntitlementsService.getMeteredEntitlement(r,s,i):s:n.globalEntitlementsService.getMeteredEntitlement(r,s,i):s}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get metered entitlement. Error: ".concat(e.message)},rethrowError:!1,errorReportMetadata:{featureId:r,options:i}})||s},e.prototype.getPaywall=function(e){var t=void 0===e?{}:e,n=t.productId,r=t.resourceId,i=t.context,o=t.billingCountryCode;return il(this,void 0,void 0,(function(){var e,t=this;return ol(this,(function(a){return e={productId:n,customerId:this.configuration.customerId,resourceId:r,context:i,billingCountryCode:o},[2,fu((function(){return il(t,void 0,void 0,(function(){var t;return ol(this,(function(r){switch(r.label){case 0:return(null==n?void 0:n.startsWith("stiggTestData"))?[4,this.apiGateway.mockPaywall.getMockPaywall(e)]:[3,2];case 1:return t=r.sent(),[2,this.modelMapper.mapMockPlans(t.data)];case 2:return[4,this.apiGateway.paywall.getPaywall(e)];case 3:return t=r.sent(),[2,this.modelMapper.mapPaywall(t.data)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get paywall. Error: ".concat(e.message)},rethrowError:!0,errorReportMetadata:{productId:n}})]}))}))},e.prototype.getCoupons=function(){return il(this,void 0,void 0,(function(){var e=this;return ol(this,(function(t){return[2,fu((function(){return il(e,void 0,void 0,(function(){var e;return ol(this,(function(t){switch(t.label){case 0:return[4,this.apiGateway.coupons.getCoupons()];case 1:return e=t.sent(),[2,this.modelMapper.mapCoupons(e.data)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get coupons. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.getCustomer=function(){return il(this,void 0,void 0,(function(){var e=this;return ol(this,(function(t){return[2,fu((function(){return il(e,void 0,void 0,(function(){var e,t,n,r;return ol(this,(function(i){switch(i.label){case 0:return e=L(this.configuration),[4,this.apiGateway.customers.getCustomer(e)];case 1:if(t=i.sent(),!(n=t.data.getCustomerByRefId))throw new Error("Customer not found");return r=n.subscriptions||[],[2,this.modelMapper.mapCustomer(n,r)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get customer. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.getCustomerPortal=function(e){var t=(void 0===e?{}:e).resourceId;return il(this,void 0,void 0,(function(){var e=this;return ol(this,(function(n){return[2,fu((function(){return il(e,void 0,void 0,(function(){var e,n;return ol(this,(function(r){switch(r.label){case 0:return e=L(this.configuration),[4,this.apiGateway.customers.getCustomerPortal(e,t)];case 1:return n=r.sent(),[2,this.modelMapper.mapCustomerPortal(n.data.customerPortal)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get customer portal details. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.getEntitlements=function(e){return il(this,void 0,void 0,(function(){var t,n=this;return ol(this,(function(r){switch(r.label){case 0:return t=function(e){return e?Object.keys(e).map((function(t){return Y({isFallback:!0,accessDeniedReason:u.Unknown,feature:{id:t}},e[t])})):[]}(this.configuration.entitlementsFallback),[4,fu((function(){return il(n,void 0,void 0,(function(){var n;return ol(this,(function(r){return L(this.configuration),e?e!==this.configuration.resourceId?(this.loggerService.log("Resource ID ".concat(e," does not match the current resource ID ").concat(this.configuration.resourceId,".")),[2,t]):this.isResourceLoaded&&this.resourceEntitlementsService?[2,this.resourceEntitlementsService.getEntitlements()]:[2,t]:[2,null===(n=this.globalEntitlementsService)||void 0===n?void 0:n.getEntitlements()]}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get entitlements. Error: ".concat(e.message)},rethrowError:!0})];case 1:return[2,r.sent()||t]}}))}))},e.prototype.estimateSubscription=function(e){return il(this,void 0,void 0,(function(){var t=this;return ol(this,(function(n){return[2,fu((function(){return il(t,void 0,void 0,(function(){var t;return ol(this,(function(n){switch(n.label){case 0:return[4,this.apiGateway.subscriptionEstimations.estimateSubscription(e)];case 1:if(!(t=n.sent().data))throw new Error("Invalid response");return[2,this.modelMapper.mapSubscriptionPreview(t.estimateSubscription)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to estimate subscription. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.estimateSubscriptionUpdate=function(e){return il(this,void 0,void 0,(function(){var t=this;return ol(this,(function(n){return[2,fu((function(){return il(t,void 0,void 0,(function(){var t;return ol(this,(function(n){switch(n.label){case 0:return[4,this.apiGateway.subscriptionEstimations.estimateSubscriptionUpdate(e)];case 1:if(!(t=n.sent().data))throw new Error("Invalid response");return[2,this.modelMapper.mapSubscriptionPreview(t.estimateSubscriptionUpdate)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to estimate subscription update. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.waitForCheckoutCompleted=function(e){var t=void 0===e?{}:e,n=t.timeoutMs,r=void 0===n?15e3:n,i=t.refreshOnComplete,o=void 0===i||i;return il(this,void 0,void 0,(function(){var e,t,n,i,a,s,u,c;return ol(this,(function(l){switch(l.label){case 0:if("undefined"==typeof window)throw new Error("`waitForCheckoutCompleted` was called, but `window` is not defined");if(e=new URLSearchParams(window.location.search),t=e.get("subscriptionId"),n=e.get("resourceId")||void 0,i=e.get("checkoutCompleted"),!t)return this.loggerService.log("`waitCheckoutCompleted` was called, but no `subscriptionId` found in query params"),[2,null];if(!i||"false"===i.toLowerCase())return this.loggerService.log("The checkout session was cancelled by the user"),[2,null];a=Date.now(),s=!1,u=null,l.label=1;case 1:return s?[4,new Promise((function(e){return setTimeout(e,1e3)}))]:[3,3];case 2:l.sent(),l.label=3;case 3:return[4,this.getActiveSubscriptions({resourceId:n})];case 4:c=l.sent(),u=c.find((function(e){return e.id===t}))||null,s=!0,l.label=5;case 5:if(!u&&Date.now()-a<r)return[3,1];l.label=6;case 6:if(!u)throw new Error("Timeout while waiting for checkout to complete, subscription ".concat(t," is not active"));return o?[4,this.refresh()]:[3,8];case 7:l.sent(),l.label=8;case 8:return[2,u]}}))}))},e.prototype.getActiveSubscriptions=function(e){var t=this,n=(void 0===e?{}:e).resourceId;return fu((function(){return il(t,void 0,void 0,(function(){var e,t,r;return ol(this,(function(i){switch(i.label){case 0:return e=L(this.configuration),[4,this.apiGateway.customers.getActiveSubscriptions(e,n)];case 1:if(t=i.sent(),!(r=t.data.getActiveSubscriptions))throw new Error("Customer ".concat(n?"or resource ":"","not found"));return[2,this.modelMapper.mapSubscriptions(r)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get active subscriptions. Error: ".concat(e.message)},rethrowError:!0})},e}()},655:(e,t,n)=>{"use strict";n.d(t,{ZT:()=>i,pi:()=>o,_T:()=>a,mG:()=>s,Jh:()=>u,ev:()=>c});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function u(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function c(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create},890:(e,t,n)=>{"use strict";t.ku=t.Jk=t.p_=t._H=t.YG=t.qX=t.Lt=t.TV=t.iI=t.zv=t.pS=t.pu=t.XY=t.Ky=t.Us=t.B8=t.qB=t.uM=t.U9=t.Te=t.iK=t.GA=t.bW=t.o_=t.i3=t.jK=t.$B=t.IZ=t.FT=t.XH=t.Lb=t.C2=t.yE=t.Pg=t.rp=t.pD=t.F=t.$i=t.K7=t.i2=t.u4=t.tv=t.Fz=t.PL=t.E3=t.Mb=t.v2=t.nw=t.dp=t.fE=void 0,t.o5=t.Jy=t.zj=t.GB=t.Ug=t.J5=t.bO=t.d4=t.Rz=t.cM=t.hk=t.Eh=t.zd=t.bj=t.bG=t.mc=t.wE=t.Oo=t.zO=t.l9=t.rC=t.Fo=t._y=t.Bu=t.p1=t.UA=t.hY=t.wR=t.yh=t.nO=t.YV=t.IF=t.yB=t.eS=t.e1=t._o=t.ir=t.lS=t.w1=t.ue=t.PO=t.Xm=t.Sr=t.Z=t.u0=t.QZ=t.$V=void 0,t.T5=t.fF=t._x=t.$A=t.N9=t.Fd=t.pW=t.ro=t.RV=t.Q$=t.Op=t.Ze=t.WJ=t.JD=t.K5=t.jA=t.wO=t.m5=t.Ai=t.x3=t.EQ=t.N5=t.rD=t.eK=t.$j=t.m7=t.q6=t.qw=t.r4=t.nN=t.Fc=t.lg=t.hV=t.Ve=t.k8=t.g3=t.NS=t.mG=t.Xs=t._d=t.u9=t.Ep=t.LB=t.X$=t.aq=t.cG=t.l3=t.bI=t.cU=void 0;const r=n(1642);var i,o,a,s,u,c,l,f,p,d,h,v,y,m,g,_,b,E,w,S,T,I,O,x,D,A,R,k,C,P,N,F,j,U,M,L,B,q,V,$,G,z,Q,W,Y,K,H,J,X,Z,ee,te,ne,re,ie,oe,ae,se,ue,ce,le,fe,pe,de,he,ve,ye,me,ge,_e,be,Ee,we,Se,Te,Ie,Oe,xe;(xe=t.fE||(t.fE={})).CustomerNotFound="CustomerNotFound",xe.CustomerResourceNotFound="CustomerResourceNotFound",xe.FeatureNotFound="FeatureNotFound",xe.NoActiveSubscription="NoActiveSubscription",xe.NoFeatureEntitlementInSubscription="NoFeatureEntitlementInSubscription",xe.RequestedUsageExceedingLimit="RequestedUsageExceedingLimit",xe.Unknown="Unknown",(Oe=t.dp||(t.dp={})).Active="ACTIVE",Oe.Blocked="BLOCKED",(Ie=t.nw||(t.nw={})).BillingId="billingId",Ie.CreatedAt="createdAt",Ie.Description="description",Ie.DisplayName="displayName",Ie.EnvironmentId="environmentId",Ie.Id="id",Ie.IsLatest="isLatest",Ie.PricingType="pricingType",Ie.ProductId="productId",Ie.RefId="refId",Ie.Status="status",Ie.UpdatedAt="updatedAt",Ie.VersionNumber="versionNumber",(Te=t.v2||(t.v2={})).Center="CENTER",Te.Left="LEFT",Te.Right="RIGHT",(t.Mb||(t.Mb={})).Id="id",(Se=t.E3||(t.E3={})).Client="CLIENT",Se.Server="SERVER",(we=t.PL||(t.PL={})).StartOfTheMonth="START_OF_THE_MONTH",we.SubscriptionStart="SUBSCRIPTION_START",(Ee=t.Fz||(t.Fz={})).FlatFee="FLAT_FEE",Ee.PerUnit="PER_UNIT",Ee.UsageBased="USAGE_BASED",(be=t.tv||(t.tv={})).Annually="ANNUALLY",be.Monthly="MONTHLY",(_e=t.u4||(t.u4={})).Added="ADDED",_e.Deleted="DELETED",_e.Modified="MODIFIED",_e.Reordered="REORDERED",(ge=t.i2||(t.i2={})).BillingId="billingId",ge.CreatedAt="createdAt",ge.Description="description",ge.EnvironmentId="environmentId",ge.Id="id",ge.Name="name",ge.RefId="refId",ge.Status="status",ge.Type="type",ge.UpdatedAt="updatedAt",(me=t.K7||(t.K7={})).Active="ACTIVE",me.Archived="ARCHIVED",(ye=t.$i||(t.$i={})).Fixed="FIXED",ye.Percentage="PERCENTAGE",(ve=t.F||(t.F={})).Aed="AED",ve.All="ALL",ve.Amd="AMD",ve.Ang="ANG",ve.Aud="AUD",ve.Awg="AWG",ve.Azn="AZN",ve.Bam="BAM",ve.Bbd="BBD",ve.Bdt="BDT",ve.Bgn="BGN",ve.Bif="BIF",ve.Bmd="BMD",ve.Bnd="BND",ve.Bsd="BSD",ve.Bwp="BWP",ve.Byn="BYN",ve.Bzd="BZD",ve.Cad="CAD",ve.Cdf="CDF",ve.Chf="CHF",ve.Clp="CLP",ve.Cny="CNY",ve.Czk="CZK",ve.Djf="DJF",ve.Dkk="DKK",ve.Dop="DOP",ve.Dzd="DZD",ve.Egp="EGP",ve.Etb="ETB",ve.Eur="EUR",ve.Fjd="FJD",ve.Gbp="GBP",ve.Gel="GEL",ve.Gip="GIP",ve.Gmd="GMD",ve.Gnf="GNF",ve.Gyd="GYD",ve.Hkd="HKD",ve.Hrk="HRK",ve.Htg="HTG",ve.Idr="IDR",ve.Ils="ILS",ve.Inr="INR",ve.Isk="ISK",ve.Jmd="JMD",ve.Jpy="JPY",ve.Kes="KES",ve.Kgs="KGS",ve.Khr="KHR",ve.Kmf="KMF",ve.Krw="KRW",ve.Kyd="KYD",ve.Kzt="KZT",ve.Lbp="LBP",ve.Lkr="LKR",ve.Lrd="LRD",ve.Lsl="LSL",ve.Mad="MAD",ve.Mdl="MDL",ve.Mga="MGA",ve.Mkd="MKD",ve.Mmk="MMK",ve.Mnt="MNT",ve.Mop="MOP",ve.Mro="MRO",ve.Mvr="MVR",ve.Mwk="MWK",ve.Mxn="MXN",ve.Myr="MYR",ve.Mzn="MZN",ve.Nad="NAD",ve.Ngn="NGN",ve.Nok="NOK",ve.Npr="NPR",ve.Nzd="NZD",ve.Pgk="PGK",ve.Php="PHP",ve.Pkr="PKR",ve.Pln="PLN",ve.Pyg="PYG",ve.Qar="QAR",ve.Ron="RON",ve.Rsd="RSD",ve.Rub="RUB",ve.Rwf="RWF",ve.Sar="SAR",ve.Sbd="SBD",ve.Scr="SCR",ve.Sek="SEK",ve.Sgd="SGD",ve.Sle="SLE",ve.Sll="SLL",ve.Sos="SOS",ve.Szl="SZL",ve.Thb="THB",ve.Tjs="TJS",ve.Top="TOP",ve.Try="TRY",ve.Ttd="TTD",ve.Tzs="TZS",ve.Uah="UAH",ve.Ugx="UGX",ve.Usd="USD",ve.Uzs="UZS",ve.Vnd="VND",ve.Vuv="VUV",ve.Wst="WST",ve.Xaf="XAF",ve.Xcd="XCD",ve.Xof="XOF",ve.Xpf="XPF",ve.Yer="YER",ve.Zar="ZAR",ve.Zmw="ZMW",(he=t.pD||(t.pD={})).CreatedAt="createdAt",he.EnvironmentId="environmentId",he.ResourceId="resourceId",(de=t.rp||(t.rp={})).BillingId="billingId",de.CreatedAt="createdAt",de.CrmHubspotCompanyId="crmHubspotCompanyId",de.CrmHubspotCompanyUrl="crmHubspotCompanyUrl",de.CrmId="crmId",de.CustomerId="customerId",de.Email="email",de.EnvironmentId="environmentId",de.Id="id",de.Name="name",de.RefId="refId",de.UpdatedAt="updatedAt",(pe=t.Pg||(t.Pg={})).BillingId="billingId",pe.CancelReason="cancelReason",pe.CancellationDate="cancellationDate",pe.CreatedAt="createdAt",pe.CrmId="crmId",pe.CrmLinkUrl="crmLinkUrl",pe.EffectiveEndDate="effectiveEndDate",pe.EndDate="endDate",pe.EnvironmentId="environmentId",pe.Id="id",pe.OldBillingId="oldBillingId",pe.PricingType="pricingType",pe.RefId="refId",pe.ResourceId="resourceId",pe.StartDate="startDate",pe.Status="status",pe.SubscriptionId="subscriptionId",pe.TrialEndDate="trialEndDate",(fe=t.yE||(t.yE={})).CeoOrFounder="CEO_OR_FOUNDER",fe.Engineering="ENGINEERING",fe.Growth="GROWTH",fe.Marketing="MARKETING",fe.Monetization="MONETIZATION",fe.Other="OTHER",fe.Product="PRODUCT",(le=t.C2||(t.C2={})).Forever="FOREVER",le.Once="ONCE",le.Repeating="REPEATING",(ce=t.Lb||(t.Lb={})).Fixed="FIXED",ce.Percentage="PERCENTAGE",(ue=t.XH||(t.XH={})).Day="DAY",ue.Hour="HOUR",ue.Month="MONTH",ue.Week="WEEK",(se=t.FT||(t.FT={})).BlackList="BLACK_LIST",se.WhiteList="WHITE_LIST",(ae=t.IZ||(t.IZ={})).Done="DONE",ae.Failed="FAILED",ae.InProgress="IN_PROGRESS",ae.NotProvisioned="NOT_PROVISIONED",(oe=t.$B||(t.$B={})).CreatedAt="createdAt",oe.DisplayName="displayName",oe.Id="id",oe.Slug="slug",(ie=t.jK||(t.jK={})).AccountNotFoundError="AccountNotFoundError",ie.AddonHasToHavePriceError="AddonHasToHavePriceError",ie.AddonNotFound="AddonNotFound",ie.ArchivedCouponCantBeApplied="ArchivedCouponCantBeApplied",ie.AuthCustomerMismatch="AuthCustomerMismatch",ie.BadUserInput="BadUserInput",ie.BillingPeriodMissingError="BillingPeriodMissingError",ie.CannotDeleteCustomerError="CannotDeleteCustomerError",ie.CannotDeleteFeatureError="CannotDeleteFeatureError",ie.CannotDeleteProductError="CannotDeleteProductError",ie.CannotEditPackageInNonDraftMode="CannotEditPackageInNonDraftMode",ie.CheckoutIsNotSupported="CheckoutIsNotSupported",ie.CheckoutOptionsMissing="CheckoutOptionsMissing",ie.CouponNotFound="CouponNotFound",ie.CustomerAlreadyHaveCustomerCoupon="CustomerAlreadyHaveCustomerCoupon",ie.CustomerAlreadyUsesCoupon="CustomerAlreadyUsesCoupon",ie.CustomerHasNoPaymentMethod="CustomerHasNoPaymentMethod",ie.CustomerNoBillingId="CustomerNoBillingId",ie.CustomerNotFound="CustomerNotFound",ie.CustomerResourceNotFound="CustomerResourceNotFound",ie.DowngradeBillingPeriodNotSupportedError="DowngradeBillingPeriodNotSupportedError",ie.DraftPlanCantBeArchived="DraftPlanCantBeArchived",ie.DuplicatedEntityNotAllowed="DuplicatedEntityNotAllowed",ie.EditAllowedOnDraftPackageOnlyError="EditAllowedOnDraftPackageOnlyError",ie.EntitlementsMustBelongToSamePackage="EntitlementsMustBelongToSamePackage",ie.EntityIdDifferentFromRefIdError="EntityIdDifferentFromRefIdError",ie.EnvironmentMissing="EnvironmentMissing",ie.ExperimentAlreadyRunning="ExperimentAlreadyRunning",ie.ExperimentNotFoundError="ExperimentNotFoundError",ie.ExperimentStatusError="ExperimentStatusError",ie.FailedToCreateCheckoutSessionError="FailedToCreateCheckoutSessionError",ie.FailedToImportCustomer="FailedToImportCustomer",ie.FeatureNotFound="FeatureNotFound",ie.FetchAllCountriesPricesNotAllowed="FetchAllCountriesPricesNotAllowed",ie.IdentityForbidden="IdentityForbidden",ie.ImportAlreadyInProgress="ImportAlreadyInProgress",ie.InitStripePaymentMethodError="InitStripePaymentMethodError",ie.IntegrationNotFound="IntegrationNotFound",ie.IntegrityViolation="IntegrityViolation",ie.InvalidAddressError="InvalidAddressError",ie.InvalidArgumentError="InvalidArgumentError",ie.InvalidCancellationDate="InvalidCancellationDate",ie.InvalidEntitlementResetPeriod="InvalidEntitlementResetPeriod",ie.InvalidMemberDelete="InvalidMemberDelete",ie.InvalidQuantity="InvalidQuantity",ie.InvalidSubscriptionStatus="InvalidSubscriptionStatus",ie.InvalidUpdatePriceUnitAmountError="InvalidUpdatePriceUnitAmountError",ie.MemberInvitationError="MemberInvitationError",ie.MemberNotFound="MemberNotFound",ie.MeteringNotAvailableForFeatureType="MeteringNotAvailableForFeatureType",ie.MissingEntityIdError="MissingEntityIdError",ie.NoFeatureEntitlementInSubscription="NoFeatureEntitlementInSubscription",ie.NoProductsAvailable="NoProductsAvailable",ie.OperationNotAllowedDuringInProgressExperiment="OperationNotAllowedDuringInProgressExperiment",ie.PackageAlreadyPublished="PackageAlreadyPublished",ie.PackagePricingTypeNotSet="PackagePricingTypeNotSet",ie.PlanAlreadyExtended="PlanAlreadyExtended",ie.PlanCannotBePublishWhenBasePlanIsDraft="PlanCannotBePublishWhenBasePlanIsDraft",ie.PlanIsUsedAsDefaultStartPlan="PlanIsUsedAsDefaultStartPlan",ie.PlanIsUsedAsDowngradePlan="PlanIsUsedAsDowngradePlan",ie.PlanNotFound="PlanNotFound",ie.PlanWithChildCantBeDeleted="PlanWithChildCantBeDeleted",ie.PlansCircularDependencyError="PlansCircularDependencyError",ie.PriceNotFound="PriceNotFound",ie.PromotionCodeCustomerNotFirstPurchase="PromotionCodeCustomerNotFirstPurchase",ie.PromotionCodeMaxRedemptionsReached="PromotionCodeMaxRedemptionsReached",ie.PromotionCodeMinimumAmountNotReached="PromotionCodeMinimumAmountNotReached",ie.PromotionCodeNotActive="PromotionCodeNotActive",ie.PromotionCodeNotForCustomer="PromotionCodeNotForCustomer",ie.PromotionCodeNotFound="PromotionCodeNotFound",ie.RateLimitExceeded="RateLimitExceeded",ie.ResyncAlreadyInProgress="ResyncAlreadyInProgress",ie.SelectedBillingModelDoesntMatchImportedItemError="SelectedBillingModelDoesntMatchImportedItemError",ie.StripeCustomerIsDeleted="StripeCustomerIsDeleted",ie.SubscriptionAlreadyCanceledOrExpired="SubscriptionAlreadyCanceledOrExpired",ie.SubscriptionMustHaveSinglePlanError="SubscriptionMustHaveSinglePlanError",ie.SubscriptionNotFound="SubscriptionNotFound",ie.TrialMinDateError="TrialMinDateError",ie.TrialMustBeCancelledImmediately="TrialMustBeCancelledImmediately",ie.UnPublishedPackage="UnPublishedPackage",ie.Unauthenticated="Unauthenticated",ie.UncompatibleSubscriptionAddon="UncompatibleSubscriptionAddon",ie.UnexpectedError="UnexpectedError",ie.UnsupportedFeatureType="UnsupportedFeatureType",ie.UnsupportedSubscriptionScheduleType="UnsupportedSubscriptionScheduleType",ie.UnsupportedVendorIdentifier="UnsupportedVendorIdentifier",(re=t.i3||(t.i3={})).AddonCreated="ADDON_CREATED",re.AddonDeleted="ADDON_DELETED",re.AddonUpdated="ADDON_UPDATED",re.CouponArchived="COUPON_ARCHIVED",re.CouponCreated="COUPON_CREATED",re.CouponUpdated="COUPON_UPDATED",re.CreateSubscriptionFailed="CREATE_SUBSCRIPTION_FAILED",re.CustomerCreated="CUSTOMER_CREATED",re.CustomerDeleted="CUSTOMER_DELETED",re.CustomerEntitlementCalculationTriggered="CUSTOMER_ENTITLEMENT_CALCULATION_TRIGGERED",re.CustomerPaymentFailed="CUSTOMER_PAYMENT_FAILED",re.CustomerResourceEntitlementCalculationTriggered="CUSTOMER_RESOURCE_ENTITLEMENT_CALCULATION_TRIGGERED",re.CustomerUpdated="CUSTOMER_UPDATED",re.EdgeApiDataResync="EDGE_API_DATA_RESYNC",re.EntitlementsUpdated="ENTITLEMENTS_UPDATED",re.EntitlementDenied="ENTITLEMENT_DENIED",re.EntitlementGranted="ENTITLEMENT_GRANTED",re.EntitlementRequested="ENTITLEMENT_REQUESTED",re.EnvironmentDeleted="ENVIRONMENT_DELETED",re.FeatureCreated="FEATURE_CREATED",re.FeatureDeleted="FEATURE_DELETED",re.FeatureUpdated="FEATURE_UPDATED",re.ImportIntegrationCatalogTriggered="IMPORT_INTEGRATION_CATALOG_TRIGGERED",re.ImportIntegrationCustomersTriggered="IMPORT_INTEGRATION_CUSTOMERS_TRIGGERED",re.MeasurementReported="MEASUREMENT_REPORTED",re.PackagePublished="PACKAGE_PUBLISHED",re.PlanCreated="PLAN_CREATED",re.PlanDeleted="PLAN_DELETED",re.PlanUpdated="PLAN_UPDATED",re.ProductCreated="PRODUCT_CREATED",re.ProductDeleted="PRODUCT_DELETED",re.ProductUpdated="PRODUCT_UPDATED",re.PromotionalEntitlementExpired="PROMOTIONAL_ENTITLEMENT_EXPIRED",re.PromotionalEntitlementGranted="PROMOTIONAL_ENTITLEMENT_GRANTED",re.PromotionalEntitlementRevoked="PROMOTIONAL_ENTITLEMENT_REVOKED",re.PromotionalEntitlementUpdated="PROMOTIONAL_ENTITLEMENT_UPDATED",re.ResyncIntegrationTriggered="RESYNC_INTEGRATION_TRIGGERED",re.SubscriptionCanceled="SUBSCRIPTION_CANCELED",re.SubscriptionCreated="SUBSCRIPTION_CREATED",re.SubscriptionExpired="SUBSCRIPTION_EXPIRED",re.SubscriptionTrialConverted="SUBSCRIPTION_TRIAL_CONVERTED",re.SubscriptionTrialEndsSoon="SUBSCRIPTION_TRIAL_ENDS_SOON",re.SubscriptionTrialExpired="SUBSCRIPTION_TRIAL_EXPIRED",re.SubscriptionTrialStarted="SUBSCRIPTION_TRIAL_STARTED",re.SubscriptionUpdated="SUBSCRIPTION_UPDATED",re.SubscriptionUsageUpdated="SUBSCRIPTION_USAGE_UPDATED",re.SyncFailed="SYNC_FAILED",re.WidgetConfigurationUpdated="WIDGET_CONFIGURATION_UPDATED",(ne=t.o_||(t.o_={})).CreatedAt="createdAt",ne.EnvironmentId="environmentId",ne.Id="id",ne.Name="name",ne.ProductId="productId",ne.RefId="refId",ne.Status="status",(te=t.bW||(t.bW={})).Completed="COMPLETED",te.Draft="DRAFT",te.InProgress="IN_PROGRESS",(ee=t.GA||(t.GA={})).CreatedAt="createdAt",ee.Description="description",ee.DisplayName="displayName",ee.EnvironmentId="environmentId",ee.FeatureStatus="featureStatus",ee.FeatureType="featureType",ee.Id="id",ee.MeterType="meterType",ee.RefId="refId",ee.UpdatedAt="updatedAt",(Z=t.iK||(t.iK={})).Active="ACTIVE",Z.New="NEW",Z.Suspended="SUSPENDED",(X=t.Te||(t.Te={})).Boolean="BOOLEAN",X.Number="NUMBER",(J=t.U9||(t.U9={})).Bold="BOLD",J.Normal="NORMAL",(H=t.uM||(t.uM={})).CreatedAt="createdAt",H.Endpoint="endpoint",H.EnvironmentId="environmentId",H.Id="id",H.Status="status",(K=t.qB||(t.qB={})).Active="ACTIVE",K.Inactive="INACTIVE",(Y=t.B8||(t.B8={})).CreatedAt="createdAt",Y.EnvironmentId="environmentId",Y.Id="id",Y.Status="status",Y.TaskType="taskType",(W=t.Us||(t.Us={})).CreatedAt="createdAt",W.EnvironmentId="environmentId",W.Id="id",W.VendorIdentifier="vendorIdentifier",(Q=t.Ky||(t.Ky={})).CreatedAt="createdAt",Q.Id="id",(z=t.XY||(t.XY={})).Invited="INVITED",z.Registered="REGISTERED",(G=t.pu||(t.pu={})).Fluctuating="Fluctuating",G.Incremental="Incremental",G.None="None",($=t.pS||(t.pS={})).StartOfTheMonth="StartOfTheMonth",$.SubscriptionStart="SubscriptionStart",(V=t.zv||(t.zv={})).BillingId="billingId",V.CreatedAt="createdAt",V.Description="description",V.DisplayName="displayName",V.EnvironmentId="environmentId",V.Id="id",V.IsLatest="isLatest",V.PricingType="pricingType",V.ProductId="productId",V.RefId="refId",V.Status="status",V.UpdatedAt="updatedAt",V.VersionNumber="versionNumber",(q=t.iI||(t.iI={})).CreatedAt="createdAt",q.EnvironmentId="environmentId",q.Id="id",q.PackageId="packageId",q.UpdatedAt="updatedAt",(B=t.TV||(t.TV={})).Archived="ARCHIVED",B.Draft="DRAFT",B.Published="PUBLISHED",(L=t.Lt||(t.Lt={})).Bank="BANK",L.Card="CARD",(M=t.qX||(t.qX={})).BillingId="billingId",M.CreatedAt="createdAt",M.Description="description",M.DisplayName="displayName",M.EnvironmentId="environmentId",M.Id="id",M.IsLatest="isLatest",M.PricingType="pricingType",M.ProductId="productId",M.RefId="refId",M.Status="status",M.UpdatedAt="updatedAt",M.VersionNumber="versionNumber",(U=t.YG||(t.YG={})).BillingId="billingId",U.BillingModel="billingModel",U.BillingPeriod="billingPeriod",U.CreatedAt="createdAt",U.Id="id",(j=t._H||(t._H={})).Custom="CUSTOM",j.Free="FREE",j.Paid="PAID",(F=t.p_||(t.p_={})).CreatedAt="createdAt",F.Description="description",F.DisplayName="displayName",F.EnvironmentId="environmentId",F.Id="id",F.IsDefaultProduct="isDefaultProduct",F.RefId="refId",F.UpdatedAt="updatedAt",(N=t.Jk||(t.Jk={})).Custom="CUSTOM",N.Lifetime="LIFETIME",N.OneMonth="ONE_MONTH",N.OneWeek="ONE_WEEK",N.OneYear="ONE_YEAR",N.SixMonth="SIX_MONTH",(P=t.ku||(t.ku={})).CreatedAt="createdAt",P.EnvironmentId="environmentId",P.Id="id",P.Status="status",P.UpdatedAt="updatedAt",(C=t.$V||(t.$V={})).Active="Active",C.Expired="Expired",C.Paused="Paused",(k=t.QZ||(t.QZ={})).CreateProrations="CREATE_PRORATIONS",k.InvoiceImmediately="INVOICE_IMMEDIATELY",(R=t.u0||(t.u0={})).PaymentRequired="PAYMENT_REQUIRED",R.Success="SUCCESS",(A=t.Z||(t.Z={})).AllCustomers="ALL_CUSTOMERS",A.NewCustomers="NEW_CUSTOMERS",(D=t.Sr||(t.Sr={})).Asc="ASC",D.Desc="DESC",(x=t.Xm||(t.Xm={})).NullsFirst="NULLS_FIRST",x.NullsLast="NULLS_LAST",(O=t.PO||(t.PO={})).JsClientSdk="JS_CLIENT_SDK",O.NodeServerSdk="NODE_SERVER_SDK",(I=t.ue||(t.ue={})).CreatedAt="createdAt",I.Id="id",I.Quantity="quantity",I.UpdatedAt="updatedAt",(T=t.w1||(t.w1={})).CancelledByBilling="CancelledByBilling",T.DetachBilling="DetachBilling",T.Expired="Expired",T.Immediate="Immediate",T.PendingPaymentExpired="PendingPaymentExpired",T.ScheduledCancellation="ScheduledCancellation",T.TrialConverted="TrialConverted",T.TrialEnded="TrialEnded",T.UpgradeOrDowngrade="UpgradeOrDowngrade",(S=t.lS||(t.lS={})).EndOfBillingPeriod="END_OF_BILLING_PERIOD",S.Immediate="IMMEDIATE",S.SpecificDate="SPECIFIC_DATE",(w=t.ir||(t.ir={})).PredefinedFreePlan="PREDEFINED_FREE_PLAN",w.PredefinedTrialPlan="PREDEFINED_TRIAL_PLAN",w.RequestedPlan="REQUESTED_PLAN",w.SkippedSubscriptionCreation="SKIPPED_SUBSCRIPTION_CREATION",(E=t._o||(t._o={})).CancelSubscription="CANCEL_SUBSCRIPTION",E.DowngradeToFree="DOWNGRADE_TO_FREE",(b=t.e1||(t.e1={})).CreatedAt="createdAt",b.EnvironmentId="environmentId",b.Id="id",b.SubscriptionId="subscriptionId",b.UpdatedAt="updatedAt",(_=t.eS||(t.eS={})).CreatedAt="createdAt",_.EnvironmentId="environmentId",_.Id="id",_.Status="status",_.TaskType="taskType",(g=t.yB||(t.yB={})).CreatedAt="createdAt",g.Id="id",g.UpdatedAt="updatedAt",g.UsageLimit="usageLimit",(m=t.IF||(t.IF={})).Canceled="Canceled",m.Done="Done",m.Failed="Failed",m.Scheduled="Scheduled",(y=t.YV||(t.YV={})).BillingPeriod="BillingPeriod",y.Downgrade="Downgrade",y.UnitAmount="UnitAmount",(v=t.nO||(t.nO={})).FreePlan="FREE_PLAN",v.PlanSelection="PLAN_SELECTION",v.TrialPeriod="TRIAL_PERIOD",(h=t.yh||(t.yh={})).Active="ACTIVE",h.Canceled="CANCELED",h.Expired="EXPIRED",h.InTrial="IN_TRIAL",h.NotStarted="NOT_STARTED",h.PaymentPending="PAYMENT_PENDING",(d=t.wR||(t.wR={})).Error="ERROR",d.NoSyncRequired="NO_SYNC_REQUIRED",d.Pending="PENDING",d.Success="SUCCESS",(p=t.hY||(t.hY={})).Completed="COMPLETED",p.Failed="FAILED",p.InProgress="IN_PROGRESS",p.PartiallyFailed="PARTIALLY_FAILED",p.Pending="PENDING",(f=t.UA||(t.UA={})).ImportIntegrationCatalog="IMPORT_INTEGRATION_CATALOG",f.ImportIntegrationCustomers="IMPORT_INTEGRATION_CUSTOMERS",f.ResyncIntegration="RESYNC_INTEGRATION",f.SubscriptionMigration="SUBSCRIPTION_MIGRATION",(l=t.p1||(t.p1={})).Day="DAY",l.Month="MONTH",(c=t.Bu||(t.Bu={})).CreatedAt="createdAt",c.EnvironmentId="environmentId",c.Id="id",(u=t._y||(t._y={})).Delta="DELTA",u.Set="SET",(s=t.Fo||(t.Fo={})).Hubspot="HUBSPOT",s.Stripe="STRIPE",s.Zuora="ZUORA",(a=t.rC||(t.rC={})).EveryFriday="EveryFriday",a.EveryMonday="EveryMonday",a.EverySaturday="EverySaturday",a.EverySunday="EverySunday",a.EveryThursday="EveryThursday",a.EveryTuesday="EveryTuesday",a.EveryWednesday="EveryWednesday",a.SubscriptionStart="SubscriptionStart",(o=t.l9||(t.l9={})).CustomerPortal="CUSTOMER_PORTAL",o.Paywall="PAYWALL",(i=t.zO||(t.zO={})).Control="CONTROL",i.Variant="VARIANT",t.Oo=r.default`
3
3
  fragment CustomerResourceFragment on CustomerResource {
4
4
  resourceId
5
5
  }
@@ -77,6 +77,252 @@
77
77
  id
78
78
  refId
79
79
  }
80
+ }
81
+ `,t.bj=r.default`
82
+ fragment SlimCustomerFragment on Customer {
83
+ id
84
+ name
85
+ email
86
+ createdAt
87
+ updatedAt
88
+ refId
89
+ billingId
90
+ additionalMetaData
91
+ }
92
+ `,t.zd=r.default`
93
+ fragment CouponFragment on Coupon {
94
+ id
95
+ discountValue
96
+ type
97
+ additionalMetaData
98
+ refId
99
+ name
100
+ description
101
+ createdAt
102
+ updatedAt
103
+ billingId
104
+ billingLinkUrl
105
+ type
106
+ status
107
+ syncStates {
108
+ vendorIdentifier
109
+ status
110
+ }
111
+ customers {
112
+ id
113
+ }
114
+ }
115
+ `,t.Eh=r.default`
116
+ fragment PromotionalEntitlementFragment on PromotionalEntitlement {
117
+ status
118
+ usageLimit
119
+ featureId
120
+ hasUnlimitedUsage
121
+ resetPeriod
122
+ endDate
123
+ isVisible
124
+ feature {
125
+ featureType
126
+ meterType
127
+ featureUnits
128
+ featureUnitsPlural
129
+ displayName
130
+ description
131
+ refId
132
+ additionalMetaData
133
+ }
134
+ }
135
+ `,t.hk=r.default`
136
+ fragment CustomerFragment on Customer {
137
+ ...SlimCustomerFragment
138
+ hasPaymentMethod
139
+ hasActiveSubscription
140
+ defaultPaymentExpirationMonth
141
+ defaultPaymentExpirationYear
142
+ defaultPaymentMethodLast4Digits
143
+ trialedPlans {
144
+ productId
145
+ productRefId
146
+ planRefId
147
+ planId
148
+ }
149
+ experimentInfo {
150
+ groupType
151
+ groupName
152
+ id
153
+ name
154
+ }
155
+ coupon {
156
+ ...CouponFragment
157
+ }
158
+ eligibleForTrial {
159
+ productId
160
+ productRefId
161
+ eligible
162
+ }
163
+ promotionalEntitlements {
164
+ ...PromotionalEntitlementFragment
165
+ }
166
+ }
167
+ `,t.cM=r.default`
168
+ fragment ProductFragment on Product {
169
+ refId
170
+ displayName
171
+ description
172
+ additionalMetaData
173
+ productSettings {
174
+ downgradePlan {
175
+ refId
176
+ displayName
177
+ }
178
+ }
179
+ }
180
+ `,t.Rz=r.default`
181
+ fragment PackageEntitlementFragment on PackageEntitlement {
182
+ usageLimit
183
+ hasUnlimitedUsage
184
+ featureId
185
+ resetPeriod
186
+ hiddenFromWidgets
187
+ isCustom
188
+ displayNameOverride
189
+ feature {
190
+ featureType
191
+ meterType
192
+ featureUnits
193
+ featureUnitsPlural
194
+ displayName
195
+ description
196
+ refId
197
+ additionalMetaData
198
+ }
199
+ }
200
+ `,t.d4=r.default`
201
+ fragment AddonFragment on Addon {
202
+ id
203
+ refId
204
+ billingId
205
+ displayName
206
+ description
207
+ additionalMetaData
208
+ entitlements {
209
+ ...PackageEntitlementFragment
210
+ }
211
+ prices {
212
+ ...PriceFragment
213
+ }
214
+ pricingType
215
+ }
216
+ `,t.bO=r.default`
217
+ fragment PlanFragment on Plan {
218
+ id
219
+ refId
220
+ displayName
221
+ description
222
+ billingId
223
+ additionalMetaData
224
+ product {
225
+ ...ProductFragment
226
+ }
227
+ basePlan {
228
+ refId
229
+ displayName
230
+ }
231
+ entitlements {
232
+ ...PackageEntitlementFragment
233
+ }
234
+ inheritedEntitlements {
235
+ ...PackageEntitlementFragment
236
+ }
237
+ compatibleAddons {
238
+ ...AddonFragment
239
+ }
240
+ prices {
241
+ ...PriceFragment
242
+ }
243
+ pricingType
244
+ defaultTrialConfig {
245
+ duration
246
+ units
247
+ }
248
+ }
249
+ `,t.J5=r.default`
250
+ fragment SubscriptionScheduledUpdateData on SubscriptionScheduledUpdate {
251
+ subscriptionScheduleType
252
+ scheduleStatus
253
+ scheduledExecutionTime
254
+ targetPackage {
255
+ id
256
+ refId
257
+ displayName
258
+ }
259
+ scheduleVariables {
260
+ ... on DowngradeChangeVariables {
261
+ addonRefIds
262
+ billingPeriod
263
+ downgradePlanRefId
264
+ }
265
+ ... on BillingPeriodChangeVariables {
266
+ billingPeriod
267
+ }
268
+ ... on UnitAmountChangeVariables {
269
+ newUnitAmount
270
+ }
271
+ }
272
+ }
273
+ `,t.Ug=r.default`
274
+ fragment SubscriptionFragment on CustomerSubscription {
275
+ id
276
+ startDate
277
+ endDate
278
+ trialEndDate
279
+ cancellationDate
280
+ effectiveEndDate
281
+ status
282
+ refId
283
+ currentBillingPeriodEnd
284
+ additionalMetaData
285
+ billingId
286
+ billingLinkUrl
287
+ resource {
288
+ ...CustomerResourceFragment
289
+ }
290
+ experimentInfo {
291
+ name
292
+ groupType
293
+ groupName
294
+ id
295
+ }
296
+ prices {
297
+ usageLimit
298
+ price {
299
+ ...PriceFragment
300
+ }
301
+ }
302
+ totalPrice {
303
+ ...TotalPriceFragment
304
+ }
305
+ pricingType
306
+ plan {
307
+ ...PlanFragment
308
+ }
309
+ addons {
310
+ id
311
+ quantity
312
+ addon {
313
+ ...AddonFragment
314
+ }
315
+ }
316
+ scheduledUpdates {
317
+ ...SubscriptionScheduledUpdateData
318
+ }
319
+ }
320
+ `,t.GB=r.default`
321
+ fragment CustomerWithSubscriptionsFragment on Customer {
322
+ ...CustomerFragment
323
+ subscriptions {
324
+ ...SubscriptionFragment
325
+ }
80
326
  }
81
327
  `,t.zj=r.default`
82
328
  fragment SubscriptionPreviewFragment on SubscriptionPreview {
@@ -123,19 +369,6 @@
123
369
  currency
124
370
  }
125
371
  }
126
- }
127
- `,t.cM=r.default`
128
- fragment ProductFragment on Product {
129
- refId
130
- displayName
131
- description
132
- additionalMetaData
133
- productSettings {
134
- downgradePlan {
135
- refId
136
- displayName
137
- }
138
- }
139
372
  }
140
373
  `,r.default`
141
374
  fragment PaywallPackageEntitlementFragment on PackageEntitlement {
@@ -206,23 +439,15 @@
206
439
  compatibleAddons {
207
440
  ...PaywallAddonFragment
208
441
  }
209
- }
210
- `,t.XT=r.default`
211
- fragment MonthlyResetPeriodConfigFragment on MonthlyResetPeriodConfig {
212
- monthlyAccordingTo
213
- }
214
- `,t.L0=r.default`
215
- fragment WeeklyResetPeriodConfigFragment on WeeklyResetPeriodConfig {
216
- weeklyAccordingTo
217
442
  }
218
443
  `,t.Jy=r.default`
219
444
  fragment ResetPeriodConfigurationFragment on ResetPeriodConfiguration {
220
445
  __typename
221
446
  ... on MonthlyResetPeriodConfig {
222
- ...MonthlyResetPeriodConfigFragment
447
+ monthlyAccordingTo
223
448
  }
224
449
  ... on WeeklyResetPeriodConfig {
225
- ...WeeklyResetPeriodConfigFragment
450
+ weeklyAccordingTo
226
451
  }
227
452
  }
228
453
  `,t.o5=r.default`
@@ -443,108 +668,20 @@
443
668
  }
444
669
  showWatermark
445
670
  billingPortalUrl
446
- canUpgradeSubscription
447
- configuration {
448
- ...CustomerPortalConfigurationFragment
449
- }
450
- resource {
451
- ...CustomerResourceFragment
452
- }
453
- }
454
- `,t.k8=r.default`
455
- fragment MockPaywallPackageEntitlementFragment on Entitlement {
456
- usageLimit
457
- hasUnlimitedUsage
458
- resetPeriod
459
- hiddenFromWidgets
460
- displayNameOverride
461
- feature {
462
- featureType
463
- meterType
464
- featureUnits
465
- featureUnitsPlural
466
- displayName
467
- description
468
- refId
469
- additionalMetaData
470
- }
471
- }
472
- `,t.Ve=r.default`
473
- fragment MockPaywallPriceFragment on PaywallPrice {
474
- billingModel
475
- billingPeriod
476
- billingId
477
- minUnitQuantity
478
- maxUnitQuantity
479
- billingCountryCode
480
- price {
481
- amount
482
- currency
483
- }
484
- feature {
485
- featureUnits
486
- featureUnitsPlural
487
- displayName
488
- }
489
- }
490
- `,t.hV=r.default`
491
- fragment MockPaywallAddonFragment on PaywallAddon {
492
- refId
493
- displayName
494
- description
495
- additionalMetaData
496
- billingId
497
- entitlements {
498
- ...MockPaywallPackageEntitlementFragment
499
- }
500
- prices {
501
- ...MockPaywallPriceFragment
502
- }
503
- pricingType
504
- }
505
- `,t.lg=r.default`
506
- fragment MockPaywallPlanFragment on PaywallPlan {
507
- refId
508
- description
509
- displayName
510
- billingId
511
- additionalMetaData
512
- product {
513
- refId
514
- displayName
515
- description
516
- additionalMetaData
517
- }
518
- basePlan {
519
- refId
520
- displayName
521
- }
522
- entitlements {
523
- ...MockPaywallPackageEntitlementFragment
524
- }
525
- inheritedEntitlements {
526
- ...MockPaywallPackageEntitlementFragment
527
- }
528
- prices {
529
- ...MockPaywallPriceFragment
530
- }
531
- pricingType
532
- defaultTrialConfig {
533
- duration
534
- units
671
+ canUpgradeSubscription
672
+ configuration {
673
+ ...CustomerPortalConfigurationFragment
535
674
  }
536
- compatibleAddons {
537
- ...MockPaywallAddonFragment
675
+ resource {
676
+ ...CustomerResourceFragment
538
677
  }
539
678
  }
540
- `,t.Rz=r.default`
541
- fragment PackageEntitlementFragment on PackageEntitlement {
679
+ `,t.k8=r.default`
680
+ fragment MockPaywallPackageEntitlementFragment on Entitlement {
542
681
  usageLimit
543
682
  hasUnlimitedUsage
544
- featureId
545
683
  resetPeriod
546
684
  hiddenFromWidgets
547
- isCustom
548
685
  displayNameOverride
549
686
  feature {
550
687
  featureType
@@ -557,54 +694,73 @@
557
694
  additionalMetaData
558
695
  }
559
696
  }
560
- `,t.d4=r.default`
561
- fragment AddonFragment on Addon {
562
- id
563
- refId
697
+ `,t.Ve=r.default`
698
+ fragment MockPaywallPriceFragment on PaywallPrice {
699
+ billingModel
700
+ billingPeriod
564
701
  billingId
702
+ minUnitQuantity
703
+ maxUnitQuantity
704
+ billingCountryCode
705
+ price {
706
+ amount
707
+ currency
708
+ }
709
+ feature {
710
+ featureUnits
711
+ featureUnitsPlural
712
+ displayName
713
+ }
714
+ }
715
+ `,t.hV=r.default`
716
+ fragment MockPaywallAddonFragment on PaywallAddon {
717
+ refId
565
718
  displayName
566
719
  description
567
720
  additionalMetaData
721
+ billingId
568
722
  entitlements {
569
- ...PackageEntitlementFragment
723
+ ...MockPaywallPackageEntitlementFragment
570
724
  }
571
725
  prices {
572
- ...PriceFragment
726
+ ...MockPaywallPriceFragment
573
727
  }
574
728
  pricingType
575
729
  }
576
- `,t.bO=r.default`
577
- fragment PlanFragment on Plan {
578
- id
730
+ `,t.lg=r.default`
731
+ fragment MockPaywallPlanFragment on PaywallPlan {
579
732
  refId
580
- displayName
581
733
  description
734
+ displayName
582
735
  billingId
583
736
  additionalMetaData
584
737
  product {
585
- ...ProductFragment
738
+ refId
739
+ displayName
740
+ description
741
+ additionalMetaData
586
742
  }
587
743
  basePlan {
588
744
  refId
589
745
  displayName
590
746
  }
591
747
  entitlements {
592
- ...PackageEntitlementFragment
748
+ ...MockPaywallPackageEntitlementFragment
593
749
  }
594
750
  inheritedEntitlements {
595
- ...PackageEntitlementFragment
596
- }
597
- compatibleAddons {
598
- ...AddonFragment
751
+ ...MockPaywallPackageEntitlementFragment
599
752
  }
600
753
  prices {
601
- ...PriceFragment
754
+ ...MockPaywallPriceFragment
602
755
  }
603
756
  pricingType
604
757
  defaultTrialConfig {
605
758
  duration
606
759
  units
607
760
  }
761
+ compatibleAddons {
762
+ ...MockPaywallAddonFragment
763
+ }
608
764
  }
609
765
  `,t.Fc=r.default`
610
766
  fragment PaywallCurrency on PaywallCurrency {
@@ -634,166 +790,6 @@
634
790
  ...LayoutConfigurationFragment
635
791
  }
636
792
  customCss
637
- }
638
- `,t.bj=r.default`
639
- fragment SlimCustomerFragment on Customer {
640
- id
641
- name
642
- email
643
- createdAt
644
- updatedAt
645
- refId
646
- billingId
647
- additionalMetaData
648
- }
649
- `,t.zd=r.default`
650
- fragment CouponFragment on Coupon {
651
- id
652
- discountValue
653
- type
654
- additionalMetaData
655
- refId
656
- name
657
- description
658
- createdAt
659
- updatedAt
660
- billingId
661
- billingLinkUrl
662
- type
663
- status
664
- syncStates {
665
- vendorIdentifier
666
- status
667
- }
668
- customers {
669
- id
670
- }
671
- }
672
- `,t.Eh=r.default`
673
- fragment PromotionalEntitlementFragment on PromotionalEntitlement {
674
- status
675
- usageLimit
676
- featureId
677
- hasUnlimitedUsage
678
- resetPeriod
679
- endDate
680
- isVisible
681
- feature {
682
- featureType
683
- meterType
684
- featureUnits
685
- featureUnitsPlural
686
- displayName
687
- description
688
- refId
689
- additionalMetaData
690
- }
691
- }
692
- `,t.J5=r.default`
693
- fragment SubscriptionScheduledUpdateData on SubscriptionScheduledUpdate {
694
- subscriptionScheduleType
695
- scheduleStatus
696
- scheduledExecutionTime
697
- targetPackage {
698
- id
699
- refId
700
- displayName
701
- }
702
- scheduleVariables {
703
- ... on DowngradeChangeVariables {
704
- addonRefIds
705
- billingPeriod
706
- downgradePlanRefId
707
- }
708
- ... on BillingPeriodChangeVariables {
709
- billingPeriod
710
- }
711
- ... on UnitAmountChangeVariables {
712
- newUnitAmount
713
- }
714
- }
715
- }
716
- `,t.Ug=r.default`
717
- fragment SubscriptionFragment on CustomerSubscription {
718
- id
719
- startDate
720
- endDate
721
- trialEndDate
722
- cancellationDate
723
- effectiveEndDate
724
- status
725
- refId
726
- currentBillingPeriodEnd
727
- additionalMetaData
728
- billingId
729
- billingLinkUrl
730
- resource {
731
- ...CustomerResourceFragment
732
- }
733
- experimentInfo {
734
- name
735
- groupType
736
- groupName
737
- id
738
- }
739
- prices {
740
- usageLimit
741
- price {
742
- ...PriceFragment
743
- }
744
- }
745
- totalPrice {
746
- ...TotalPriceFragment
747
- }
748
- pricingType
749
- plan {
750
- ...PlanFragment
751
- }
752
- addons {
753
- id
754
- quantity
755
- addon {
756
- ...AddonFragment
757
- }
758
- }
759
- scheduledUpdates {
760
- ...SubscriptionScheduledUpdateData
761
- }
762
- }
763
- `,t.hk=r.default`
764
- fragment CustomerFragment on Customer {
765
- ...SlimCustomerFragment
766
- hasPaymentMethod
767
- hasActiveSubscription
768
- defaultPaymentExpirationMonth
769
- defaultPaymentExpirationYear
770
- defaultPaymentMethodLast4Digits
771
- trialedPlans {
772
- productId
773
- productRefId
774
- planRefId
775
- planId
776
- }
777
- experimentInfo {
778
- groupType
779
- groupName
780
- id
781
- name
782
- }
783
- coupon {
784
- ...CouponFragment
785
- }
786
- eligibleForTrial {
787
- productId
788
- productRefId
789
- eligible
790
- }
791
- promotionalEntitlements {
792
- ...PromotionalEntitlementFragment
793
- }
794
- subscriptions {
795
- ...SubscriptionFragment
796
- }
797
793
  }
798
794
  `,t.qw=r.default`
799
795
  fragment PaywallFragment on Paywall {
@@ -809,6 +805,9 @@
809
805
  customer {
810
806
  ...CustomerFragment
811
807
  }
808
+ activeSubscriptions {
809
+ ...SubscriptionFragment
810
+ }
812
811
  resource {
813
812
  ...CustomerResourceFragment
814
813
  }
@@ -829,43 +828,23 @@
829
828
  ${t.bG}
830
829
  ${t.Oo}
831
830
  ${t.wE}
832
- ${t.mc}`,t.$j=r.default`
831
+ ${t.mc}`,t.m7=r.default`
832
+ mutation ImportCustomerBulk($input: ImportCustomerBulk!) {
833
+ importCustomersBulk(input: $input)
834
+ }
835
+ `,t.$j=r.default`
833
836
  mutation ImportCustomer($input: ImportCustomerInput!) {
834
837
  importCustomer: importOneCustomer(input: $input) {
835
- ...CustomerFragment
838
+ ...SlimCustomerFragment
836
839
  }
837
840
  }
838
- ${t.hk}
839
- ${t.bj}
840
- ${t.zd}
841
- ${t.Eh}
842
- ${t.Ug}
843
- ${t.Oo}
844
- ${t.wE}
845
- ${t.mc}
846
- ${t.bO}
847
- ${t.cM}
848
- ${t.Rz}
849
- ${t.d4}
850
- ${t.J5}`,t.eK=r.default`
841
+ ${t.bj}`,t.eK=r.default`
851
842
  mutation UpdateCustomer($input: UpdateCustomerInput!) {
852
843
  updateCustomer: updateOneCustomer(input: $input) {
853
- ...CustomerFragment
844
+ ...SlimCustomerFragment
854
845
  }
855
846
  }
856
- ${t.hk}
857
- ${t.bj}
858
- ${t.zd}
859
- ${t.Eh}
860
- ${t.Ug}
861
- ${t.Oo}
862
- ${t.wE}
863
- ${t.mc}
864
- ${t.bO}
865
- ${t.cM}
866
- ${t.Rz}
867
- ${t.d4}
868
- ${t.J5}`,t.rD=r.default`
847
+ ${t.bj}`,t.rD=r.default`
869
848
  mutation ProvisionSubscription($input: ProvisionSubscriptionInput!) {
870
849
  provisionSubscription: provisionSubscriptionV2(input: $input) {
871
850
  checkoutUrl
@@ -878,7 +857,11 @@ ${t.J5}`,t.rD=r.default`
878
857
  ${t.bG}
879
858
  ${t.Oo}
880
859
  ${t.wE}
881
- ${t.mc}`,t.EQ=r.default`
860
+ ${t.mc}`,t.N5=r.default`
861
+ mutation ImportSubscriptionsBulk($input: ImportSubscriptionsBulk!) {
862
+ importSubscriptionsBulk(input: $input)
863
+ }
864
+ `,t.EQ=r.default`
882
865
  mutation UpdateSubscription($input: UpdateSubscriptionInput!) {
883
866
  updateSubscription: updateOneSubscription(input: $input) {
884
867
  ...SlimSubscriptionFragment
@@ -946,10 +929,11 @@ ${t.wE}
946
929
  ${t.mc}`,t.Ze=r.default`
947
930
  query GetCustomerById($input: GetCustomerByRefIdInput!) {
948
931
  getCustomerByRefId(input: $input) {
949
- ...CustomerFragment
932
+ ...CustomerWithSubscriptionsFragment
950
933
  }
951
934
  }
952
- ${t.hk}
935
+ ${t.GB}
936
+ ${t.hk}
953
937
  ${t.bj}
954
938
  ${t.zd}
955
939
  ${t.Eh}
@@ -1017,8 +1001,6 @@ ${t.J5}`,t.ro=r.default`
1017
1001
  }
1018
1002
  ${t.cU}
1019
1003
  ${t.Jy}
1020
- ${t.XT}
1021
- ${t.L0}
1022
1004
  ${t.o5}`,t.pW=r.default`
1023
1005
  query GetEntitlement($query: FetchEntitlementQuery!) {
1024
1006
  entitlement(query: $query) {
@@ -1027,8 +1009,6 @@ ${t.o5}`,t.pW=r.default`
1027
1009
  }
1028
1010
  ${t.cU}
1029
1011
  ${t.Jy}
1030
- ${t.XT}
1031
- ${t.L0}
1032
1012
  ${t.o5}`,t.Fd=r.default`
1033
1013
  query GetProducts {
1034
1014
  products(paging: {first: 50}) {
@@ -1058,8 +1038,6 @@ ${t.aq}
1058
1038
  ${t.X$}
1059
1039
  ${t.Ep}
1060
1040
  ${t.Jy}
1061
- ${t.XT}
1062
- ${t.L0}
1063
1041
  ${t.o5}
1064
1042
  ${t.u9}
1065
1043
  ${t._d}
@@ -1093,8 +1071,6 @@ ${t.nN}`,t.fF=r.default`
1093
1071
  ${t.bI}
1094
1072
  ${t.cU}
1095
1073
  ${t.Jy}
1096
- ${t.XT}
1097
- ${t.L0}
1098
1074
  ${t.o5}`,t.T5=r.default`
1099
1075
  subscription UsageUpdated {
1100
1076
  usageUpdated {
@@ -1105,7 +1081,5 @@ ${t.o5}`,t.T5=r.default`
1105
1081
  ${t.l3}
1106
1082
  ${t.cU}
1107
1083
  ${t.Jy}
1108
- ${t.XT}
1109
- ${t.L0}
1110
- ${t.o5}`},5821:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(5695);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e){return a(e,[])}function a(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),i=function(e){var t=e[String(r.Z)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==i){var o=i.call(e);if(o!==e)return"string"==typeof o?o:a(o,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o<n;++o)i.push(a(e[o],t));return 1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);return 0===n.length?"{}":t.length>2?"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]":"{ "+n.map((function(n){return n+": "+a(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},5695:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0},5217:(e,t,n)=>{"use strict";n.d(t,{Ye:()=>o,WU:()=>a,UG:()=>s});var r=n(5695);function i(e){var t=e.prototype.toJSON;"function"==typeof t||function(e,t){if(!Boolean(0))throw new Error("Unexpected invariant triggered.")}(),e.prototype.inspect=t,r.Z&&(e.prototype[r.Z]=t)}var o=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();i(o);var a=function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function s(e){return null!=e&&"string"==typeof e.kind}i(a)},7392:(e,t,n)=>{"use strict";function r(e){var t=e.split(/\r\n|[\n\r]/g),n=function(e){for(var t,n=!0,r=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===o||i<o)&&(o=i),r=!1}return null!==(t=o)&&void 0!==t?t:0}(e);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(var o=0;o<t.length&&i(t[o]);)++o;for(var a=t.length;a>o&&i(t[a-1]);)--a;return t.slice(o,a).join("\n")}function i(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!r||o||a||n,u="";return!s||r&&i||(u+="\n"+t),u+=t?e.replace(/\n/g,"\n"+t):e,s&&(u+="\n"),'"""'+u.replace(/"""/g,'\\"""')+'"""'}n.d(t,{W7:()=>r,LZ:()=>o})},143:(e,t,n)=>{"use strict";n.d(t,{H:()=>s,T:()=>u});var r=n(9763),i=n(5821);function o(e,t){if(!Boolean(e))throw new Error(t)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||o(0,"Body must be a string. Received: ".concat((0,i.Z)(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||o(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||o(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n;return t=e,(n=[{key:r.YF,get:function(){return"Source"}}])&&a(t.prototype,n),e}();function u(e){return e instanceof s}},9763:(e,t,n)=>{"use strict";n.d(t,{YF:()=>r}),"function"==typeof Symbol&&null!=Symbol.iterator&&Symbol.iterator,"function"==typeof Symbol&&null!=Symbol.asyncIterator&&Symbol.asyncIterator;var r="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag"},4147:e=>{"use strict";e.exports=JSON.parse('{"name":"@stigg/js-client-sdk","version":"1.33.0","description":"Stigg client-side SDK for Browser","main":"dist/index.js","typings":"dist/index.d.ts","repository":"https://github.com/stiggio/js-client-sdk.git","license":"MIT","scripts":{"start":"webpack serve","build:types":"tsc --emitDeclarationOnly","build":"yarn build:types && webpack","build:watch":"webpack --watch","build:prod":"yarn build:types && webpack --env production","fix":"run-s fix:*","fix:prettier":"prettier \\"src/**/*.ts\\" --write","fix:lint":"eslint src --ext .ts --fix","pretty-quick":"pretty-quick --staged --pattern \'**/*.*(js|jsx|ts|tsx)\'","test":"jest --silent","test:watch":"jest --watch","test:cov":"jest --coverage","prepare":"husky install","docs":"typedoc"},"files":["dist/**/*"],"dependencies":{"@apollo/client":"^3.4.17","@sentry/browser":"^7.11.1","@stigg/api-client-js":"0.395.0","axios":"^1.2.2","cross-fetch":"^3.1.4","husky":"^7.0.4","lint-staged":"^12.0.2","lodash":"^4.17.21","tiny-typed-emitter":"^2.1.0"},"devDependencies":{"@commitlint/cli":"^14.1.0","@commitlint/config-conventional":"^14.1.0","@mswjs/interceptors":"^0.19.2","@types/jest":"^27.0.2","@types/lodash":"^4.14.177","@typescript-eslint/eslint-plugin":"^5.4.0","@typescript-eslint/parser":"^5.4.0","eslint":"^8.2.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","jest":"^27.3.1","jest-fetch-mock":"^3.0.3","msw":"^0.35.0","npm-run-all":"^4.1.5","prettier":"^2.4.1","pretty-quick":"^3.1.3","ts-jest":"^27.0.7","ts-loader":"^9.2.6","typedoc":"^0.22.13","typedoc-plugin-rename-defaults":"^0.4.0","typescript":"^4.5.3","webpack":"^5.64.1","webpack-cli":"^4.9.1","webpack-dev-server":"^4.5.0"},"publishConfig":{"access":"public"},"lint-staged":{"*.{js,jsx,ts,tsx}":["prettier --check","eslint --cache"]}}')}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n(8801)})()}));
1084
+ ${t.o5}`},5821:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(5695);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e){return a(e,[])}function a(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),i=function(e){var t=e[String(r.Z)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==i){var o=i.call(e);if(o!==e)return"string"==typeof o?o:a(o,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o<n;++o)i.push(a(e[o],t));return 1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);return 0===n.length?"{}":t.length>2?"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]":"{ "+n.map((function(n){return n+": "+a(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},5695:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0},5217:(e,t,n)=>{"use strict";n.d(t,{Ye:()=>o,WU:()=>a,UG:()=>s});var r=n(5695);function i(e){var t=e.prototype.toJSON;"function"==typeof t||function(e,t){if(!Boolean(0))throw new Error("Unexpected invariant triggered.")}(),e.prototype.inspect=t,r.Z&&(e.prototype[r.Z]=t)}var o=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();i(o);var a=function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function s(e){return null!=e&&"string"==typeof e.kind}i(a)},7392:(e,t,n)=>{"use strict";function r(e){var t=e.split(/\r\n|[\n\r]/g),n=function(e){for(var t,n=!0,r=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===o||i<o)&&(o=i),r=!1}return null!==(t=o)&&void 0!==t?t:0}(e);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(var o=0;o<t.length&&i(t[o]);)++o;for(var a=t.length;a>o&&i(t[a-1]);)--a;return t.slice(o,a).join("\n")}function i(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!r||o||a||n,u="";return!s||r&&i||(u+="\n"+t),u+=t?e.replace(/\n/g,"\n"+t):e,s&&(u+="\n"),'"""'+u.replace(/"""/g,'\\"""')+'"""'}n.d(t,{W7:()=>r,LZ:()=>o})},143:(e,t,n)=>{"use strict";n.d(t,{H:()=>s,T:()=>u});var r=n(9763),i=n(5821);function o(e,t){if(!Boolean(e))throw new Error(t)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||o(0,"Body must be a string. Received: ".concat((0,i.Z)(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||o(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||o(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n;return t=e,(n=[{key:r.YF,get:function(){return"Source"}}])&&a(t.prototype,n),e}();function u(e){return e instanceof s}},9763:(e,t,n)=>{"use strict";n.d(t,{YF:()=>r}),"function"==typeof Symbol&&null!=Symbol.iterator&&Symbol.iterator,"function"==typeof Symbol&&null!=Symbol.asyncIterator&&Symbol.asyncIterator;var r="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag"},4147:e=>{"use strict";e.exports=JSON.parse('{"name":"@stigg/js-client-sdk","version":"1.35.0","description":"Stigg client-side SDK for Browser","main":"dist/index.js","typings":"dist/index.d.ts","repository":"https://github.com/stiggio/js-client-sdk.git","license":"MIT","scripts":{"start":"webpack serve","build:types":"tsc --emitDeclarationOnly","build":"yarn build:types && webpack","build:watch":"webpack --watch","build:prod":"yarn build:types && webpack --env production","fix":"run-s fix:*","fix:prettier":"prettier \\"src/**/*.ts\\" --write","fix:lint":"eslint src --ext .ts --fix","pretty-quick":"pretty-quick --staged --pattern \'**/*.*(js|jsx|ts|tsx)\'","test":"jest --silent","test:watch":"jest --watch","test:cov":"jest --coverage","prepare":"husky install","docs":"typedoc"},"files":["dist/**/*"],"dependencies":{"@apollo/client":"^3.4.17","@sentry/browser":"^7.11.1","@stigg/api-client-js":"0.421.0","axios":"^1.2.2","cross-fetch":"^3.1.4","husky":"^7.0.4","lint-staged":"^12.0.2","lodash":"^4.17.21","tiny-typed-emitter":"^2.1.0"},"devDependencies":{"@commitlint/cli":"^14.1.0","@commitlint/config-conventional":"^14.1.0","@mswjs/interceptors":"^0.19.2","@types/jest":"^27.0.2","@types/lodash":"^4.14.177","@typescript-eslint/eslint-plugin":"^5.4.0","@typescript-eslint/parser":"^5.4.0","eslint":"^8.2.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","jest":"^27.3.1","jest-fetch-mock":"^3.0.3","msw":"^0.35.0","npm-run-all":"^4.1.5","prettier":"^2.4.1","pretty-quick":"^3.1.3","ts-jest":"^27.0.7","ts-loader":"^9.2.6","typedoc":"^0.22.13","typedoc-plugin-rename-defaults":"^0.4.0","typescript":"^4.5.3","webpack":"^5.64.1","webpack-cli":"^4.9.1","webpack-dev-server":"^4.5.0"},"publishConfig":{"access":"public"},"lint-staged":{"*.{js,jsx,ts,tsx}":["prettier --check","eslint --cache"]}}')}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n(8801)})()}));
1111
1085
  //# sourceMappingURL=index.js.map