@stigg/js-client-sdk 1.16.0 → 1.18.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 +180 -108
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
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):[]}},2909:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>se,disableExperimentalFragmentVariables:()=>ee,disableFragmentWarnings:()=>X,enableExperimentalFragmentVariables:()=>Z,gql:()=>H,resetCaches:()=>J});var r=n(655);function i(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const o=/\r\n|[\n\r]/g;function a(e,t){let n=0,r=1;for(const a of e.body.matchAll(o)){if("number"==typeof a.index||i(!1),a.index>=t)break;n=a.index+a[0].length,r+=1}return{line:r,column:t+1-n}}function s(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,c=t.column+s,l=`${e.name}:${a}:${c}\n`,f=r.split(/\r\n|[\n\r]/g),p=f[i];if(p.length>120){const e=Math.floor(c/80),t=c%80,n=[];for(let e=0;e<p.length;e+=80)n.push(p.slice(e,e+80));return l+u([[`${a} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return l+u([[a-1+" |",f[i-1]],[`${a} |`,p],["|","^".padStart(c)],[`${a+1} |`,f[i+1]]])}function u(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}class c extends Error{constructor(e,t,n,r,i,o,s){var u,f,p;super(e),this.name="GraphQLError",this.path=null!=i?i:void 0,this.originalError=null!=o?o:void 0,this.nodes=l(Array.isArray(t)?t:t?[t]:void 0);const d=l(null===(u=this.nodes)||void 0===u?void 0:u.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=n?n:null==d||null===(f=d[0])||void 0===f?void 0:f.source,this.positions=null!=r?r:null==d?void 0:d.map((e=>e.start)),this.locations=r&&n?r.map((e=>a(n,e))):null==d?void 0:d.map((e=>a(e.source,e.start)));const h="object"==typeof(v=null==o?void 0:o.extensions)&&null!==v?null==o?void 0:o.extensions:void 0;var v;this.extensions=null!==(p=null!=s?s:h)&&void 0!==p?p:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=o&&o.stack?Object.defineProperty(this,"stack",{value:o.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,c):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(e+="\n\n"+s((t=n.loc).source,a(t.source,t.start)));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+s(this.source,t);var t;return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function l(e){return void 0===e||0===e.length?void 0:e}function f(e,t,n){return new c(`Syntax Error: ${n}`,void 0,e,[t])}var p=n(7359),d=n(2380);let h;var v;(v=h||(h={})).SOF="<SOF>",v.EOF="<EOF>",v.BANG="!",v.DOLLAR="$",v.AMP="&",v.PAREN_L="(",v.PAREN_R=")",v.SPREAD="...",v.COLON=":",v.EQUALS="=",v.AT="@",v.BRACKET_L="[",v.BRACKET_R="]",v.BRACE_L="{",v.PIPE="|",v.BRACE_R="}",v.NAME="Name",v.INT="Int",v.FLOAT="Float",v.STRING="String",v.BLOCK_STRING="BlockString",v.COMMENT="Comment";var y=n(4783);let m;!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(m||(m={}));var g=n(7392);function _(e){return e>=48&&e<=57}function b(e){return e>=97&&e<=122||e>=65&&e<=90}function E(e){return b(e)||95===e}class w{constructor(e){const t=new d.WU(h.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==h.EOF)do{if(e.next)e=e.next;else{const t=D(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===h.COMMENT);return e}}function S(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function I(e,t){return T(e.charCodeAt(t))&&P(e.charCodeAt(t+1))}function T(e){return e>=55296&&e<=56319}function P(e){return e>=56320&&e<=57343}function C(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return h.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function A(e,t,n,r,i){const o=e.line,a=1+n-e.lineStart;return new d.WU(t,n,r,o,a,i)}function D(e,t){const n=e.source.body,r=n.length;let i=t;for(;i<r;){const t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return O(e,i);case 33:return A(e,h.BANG,i,i+1);case 36:return A(e,h.DOLLAR,i,i+1);case 38:return A(e,h.AMP,i,i+1);case 40:return A(e,h.PAREN_L,i,i+1);case 41:return A(e,h.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return A(e,h.SPREAD,i,i+3);break;case 58:return A(e,h.COLON,i,i+1);case 61:return A(e,h.EQUALS,i,i+1);case 64:return A(e,h.AT,i,i+1);case 91:return A(e,h.BRACKET_L,i,i+1);case 93:return A(e,h.BRACKET_R,i,i+1);case 123:return A(e,h.BRACE_L,i,i+1);case 124:return A(e,h.PIPE,i,i+1);case 125:return A(e,h.BRACE_R,i,i+1);case 34:return 34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)?j(e,i):x(e,i)}if(_(t)||45===t)return R(e,i,t);if(E(t))return B(e,i);throw f(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":S(t)||I(n,i)?`Unexpected character: ${C(e,i)}.`:`Invalid character: ${C(e,i)}.`)}return A(e,h.EOF,r,r)}function O(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(10===e||13===e)break;if(S(e))++i;else{if(!I(n,i))break;i+=2}}return A(e,h.COMMENT,t,i,n.slice(t+1,i))}function R(e,t,n){const r=e.source.body;let i=t,o=n,a=!1;if(45===o&&(o=r.charCodeAt(++i)),48===o){if(o=r.charCodeAt(++i),_(o))throw f(e.source,i,`Invalid number, unexpected digit after 0: ${C(e,i)}.`)}else i=N(e,i,o),o=r.charCodeAt(i);if(46===o&&(a=!0,o=r.charCodeAt(++i),i=N(e,i,o),o=r.charCodeAt(i)),69!==o&&101!==o||(a=!0,o=r.charCodeAt(++i),43!==o&&45!==o||(o=r.charCodeAt(++i)),i=N(e,i,o),o=r.charCodeAt(i)),46===o||E(o))throw f(e.source,i,`Invalid number, expected digit but got: ${C(e,i)}.`);return A(e,a?h.FLOAT:h.INT,t,i,r.slice(t,i))}function N(e,t,n){if(!_(n))throw f(e.source,t,`Invalid number, expected digit but got: ${C(e,t)}.`);const r=e.source.body;let i=t+1;for(;_(r.charCodeAt(i));)++i;return i}function x(e,t){const n=e.source.body,r=n.length;let i=t+1,o=i,a="";for(;i<r;){const r=n.charCodeAt(i);if(34===r)return a+=n.slice(o,i),A(e,h.STRING,t,i+1,a);if(92!==r){if(10===r||13===r)break;if(S(r))++i;else{if(!I(n,i))throw f(e.source,i,`Invalid character within String: ${C(e,i)}.`);i+=2}}else{a+=n.slice(o,i);const t=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?k(e,i):F(e,i):L(e,i);a+=t.value,i+=t.size,o=i}}throw f(e.source,i,"Unterminated string.")}function k(e,t){const n=e.source.body;let r=0,i=3;for(;i<12;){const e=n.charCodeAt(t+i++);if(125===e){if(i<5||!S(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|M(e),r<0)break}throw f(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function F(e,t){const n=e.source.body,r=U(n,t+2);if(S(r))return{value:String.fromCodePoint(r),size:6};if(T(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=U(n,t+8);if(P(e))return{value:String.fromCodePoint(r,e),size:12}}throw f(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function U(e,t){return M(e.charCodeAt(t))<<12|M(e.charCodeAt(t+1))<<8|M(e.charCodeAt(t+2))<<4|M(e.charCodeAt(t+3))}function M(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function L(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw f(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function j(e,t){const n=e.source.body,r=n.length,i=e.line,o=1+t-e.lineStart;let a=t+3,s=a,u="";for(;a<r;){const r=n.charCodeAt(a);if(34===r&&34===n.charCodeAt(a+1)&&34===n.charCodeAt(a+2))return u+=n.slice(s,a),new d.WU(h.BLOCK_STRING,t,a+3,i,o,(0,g.W7)(u));if(92!==r||34!==n.charCodeAt(a+1)||34!==n.charCodeAt(a+2)||34!==n.charCodeAt(a+3))if(10!==r&&13!==r)if(S(r))++a;else{if(!I(n,a))throw f(e.source,a,`Invalid character within String: ${C(e,a)}.`);a+=2}else 13===r&&10===n.charCodeAt(a+1)?a+=2:++a,++e.line,e.lineStart=a;else u+=n.slice(s,a)+'"""',a+=4,s=a}throw f(e.source,a,"Unterminated string.")}function B(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r&&(b(o=n.charCodeAt(i))||_(o)||95===o);)++i;var o;return A(e,h.NAME,t,i,n.slice(t,i))}class q{constructor(e,t){const n=(0,y.T)(e)?e:new y.H(e);this._lexer=new w(n),this._options=t}parseName(){const e=this.expectToken(h.NAME);return this.node(e,{kind:p.h.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:p.h.DOCUMENT,definitions:this.many(h.SOF,this.parseDefinition,h.EOF)})}parseDefinition(){if(this.peek(h.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===h.NAME){switch(t.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()}if(e)throw f(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(h.BRACE_L))return this.node(e,{kind:p.h.OPERATION_DEFINITION,operation:d.ku.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(h.NAME)&&(n=this.parseName()),this.node(e,{kind:p.h.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(h.NAME);switch(e.value){case"query":return d.ku.QUERY;case"mutation":return d.ku.MUTATION;case"subscription":return d.ku.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(h.PAREN_L,this.parseVariableDefinition,h.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:p.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(h.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(h.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(h.DOLLAR),this.node(e,{kind:p.h.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:p.h.SELECTION_SET,selections:this.many(h.BRACE_L,this.parseSelection,h.BRACE_R)})}parseSelection(){return this.peek(h.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(h.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:p.h.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(h.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(h.PAREN_L,t,h.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(h.COLON),this.node(t,{kind:p.h.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(h.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(h.NAME)?this.node(e,{kind:p.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:p.h.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){var e;const t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacyFragmentVariables)?this.node(t,{kind:p.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:p.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case h.BRACKET_L:return this.parseList(e);case h.BRACE_L:return this.parseObject(e);case h.INT:return this._lexer.advance(),this.node(t,{kind:p.h.INT,value:t.value});case h.FLOAT:return this._lexer.advance(),this.node(t,{kind:p.h.FLOAT,value:t.value});case h.STRING:case h.BLOCK_STRING:return this.parseStringLiteral();case h.NAME:switch(this._lexer.advance(),t.value){case"true":return this.node(t,{kind:p.h.BOOLEAN,value:!0});case"false":return this.node(t,{kind:p.h.BOOLEAN,value:!1});case"null":return this.node(t,{kind:p.h.NULL});default:return this.node(t,{kind:p.h.ENUM,value:t.value})}case h.DOLLAR:if(e){if(this.expectToken(h.DOLLAR),this._lexer.token.kind===h.NAME){const e=this._lexer.token.value;throw f(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable()}throw this.unexpected()}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this._lexer.advance(),this.node(e,{kind:p.h.STRING,value:e.value,block:e.kind===h.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:p.h.LIST,values:this.any(h.BRACKET_L,(()=>this.parseValueLiteral(e)),h.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:p.h.OBJECT,fields:this.any(h.BRACE_L,(()=>this.parseObjectField(e)),h.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(h.COLON),this.node(t,{kind:p.h.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(h.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(h.AT),this.node(t,{kind:p.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(h.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(h.BRACKET_R),t=this.node(e,{kind:p.h.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(h.BANG)?this.node(e,{kind:p.h.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:p.h.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(h.STRING)||this.peek(h.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(h.BRACE_L,this.parseOperationTypeDefinition,h.BRACE_R);return this.node(e,{kind:p.h.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(h.COLON);const n=this.parseNamedType();return this.node(e,{kind:p.h.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:p.h.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:p.h.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(h.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(h.BRACE_L,this.parseFieldDefinition,h.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(h.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:p.h.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(h.PAREN_L,this.parseInputValueDef,h.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(h.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(h.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:p.h.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:p.h.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:p.h.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(h.EQUALS)?this.delimitedMany(h.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:p.h.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(h.BRACE_L,this.parseEnumValueDefinition,h.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:p.h.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw f(this._lexer.source,this._lexer.token.start,`${V(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:p.h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(h.BRACE_L,this.parseInputValueDef,h.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===h.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)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(h.BRACE_L,this.parseOperationTypeDefinition,h.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:p.h.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:p.h.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:p.h.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:p.h.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:p.h.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:p.h.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:p.h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(h.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:p.h.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(h.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(m,t.value))return t;throw this.unexpected(e)}node(e,t){var n;return!0!==(null===(n=this._options)||void 0===n?void 0:n.noLocation)&&(t.loc=new d.Ye(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw f(this._lexer.source,t.start,`Expected ${G(e)}, found ${V(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this._lexer.advance(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==h.NAME||t.value!==e)throw f(this._lexer.source,t.start,`Expected "${e}", found ${V(t)}.`);this._lexer.advance()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===h.NAME&&t.value===e&&(this._lexer.advance(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return f(this._lexer.source,t.start,`Unexpected ${V(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}}function V(e){const t=e.value;return G(e.kind)+(null!=t?` "${t}"`:"")}function G(e){return function(e){return e===h.BANG||e===h.DOLLAR||e===h.AMP||e===h.PAREN_L||e===h.PAREN_R||e===h.SPREAD||e===h.COLON||e===h.EQUALS||e===h.AT||e===h.BRACKET_L||e===h.BRACKET_R||e===h.BRACE_L||e===h.PIPE||e===h.BRACE_R}(e)?`"${e}"`:e}var $=new Map,z=new Map,Q=!0,W=!1;function K(e){return e.replace(/[\s,]+/g," ").trim()}function Y(e){var t=K(e);if(!$.has(t)){var n=function(e,t){return new q(e,t).parseDocument()}(e,{experimentalFragmentVariables:W,allowLegacyFragmentVariables:W});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");$.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=z.get(r);o&&!o.has(i)?Q&&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||z.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 $.get(t)}function H(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]})),Y(r)}function J(){$.clear(),z.clear()}function X(){Q=!1}function Z(){W=!0}function ee(){W=!1}var te,ne=H,re=J,ie=X,oe=Z,ae=ee;(te=H||(H={})).gql=ne,te.resetCaches=re,te.disableFragmentWarnings=ie,te.enableExperimentalFragmentVariables=oe,te.disableExperimentalFragmentVariables=ae,H.default=H;const se=H},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),I=n(1704),T="[object Arguments]",P="[object Function]",C="[object Object]",A={};A[T]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[C]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[P]=A["[object WeakMap]"]=!1,e.exports=function e(t,n,D,O,R,N){var x,k=1&n,F=2&n,U=4&n;if(D&&(x=R?D(t,O,R,N):D(t)),void 0!==x)return x;if(!E(t))return t;var M=g(t);if(M){if(x=v(t),!k)return c(t,x)}else{var L=h(t),j=L==P||"[object GeneratorFunction]"==L;if(_(t))return u(t,k);if(L==C||L==T||j&&!R){if(x=F||j?{}:m(t),!k)return F?f(t,s(x,t)):l(t,a(x,t))}else{if(!A[L])return R?t:{};x=y(t,L,k)}}N||(N=new r);var B=N.get(t);if(B)return B;N.set(t,x),w(t)?t.forEach((function(r){x.add(e(r,n,D,r,t,N))})):b(t)&&t.forEach((function(r,i){x.set(i,e(r,n,D,i,t,N))}));var q=M?void 0:(U?F?d:p:F?I:S)(t);return i(q||t,(function(r,i){q&&(r=t[i=r]),o(x,i,e(r,n,D,i,t,N))})),x}},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,I=b==E;if(I&&c(e)){if(!c(t))return!1;g=!0,w=!1}if(I&&!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 T=w&&h.call(e,"__wrapped__"),P=S&&h.call(t,"__wrapped__");if(T||P){var C=T?e.value():e,A=P?t.value():t;return m||(m=new r),y(C,A,n,v,m)}}return!!I&&(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),I=E.get(S);if(I)r(e,n,I);else{var T=b?b(w,S,n+"",e,t,E):void 0,P=void 0===T;if(P){var C=c(S),A=!C&&f(S),D=!C&&!A&&v(S);T=S,C||A||D?c(w)?T=w:l(w)?T=a(w):A?(P=!1,T=i(S,!0)):D?(P=!1,T=o(S,!0)):T=[]:h(S)||u(S)?(T=w,u(w)?T=m(w):d(w)&&!p(w)||(T=s(S))):P=!1}P&&(E.set(S,T),_(T,S,g,b,E),E.delete(S)),r(e,n,T)}}},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]",I="[object Object]",T="[object Promise]",P="[object RegExp]",C="[object Set]",A="[object String]",D="[object Symbol]",O="[object WeakMap]",R="[object ArrayBuffer]",N="[object DataView]",x="[object Float32Array]",k="[object Float64Array]",F="[object Int8Array]",U="[object Int16Array]",M="[object Int32Array]",L="[object Uint8Array]",j="[object Uint8ClampedArray]",B="[object Uint16Array]",q="[object Uint32Array]",V=/\b__p \+= '';/g,G=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,z=/&(?:amp|lt|gt|quot|#39);/g,Q=/[&<>"']/g,W=RegExp(z.source),K=RegExp(Q.source),Y=/<%-([\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",Ie="\\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",Te="["+Ie+"]",Pe="["+Ee+"]",Ce="\\d+",Ae="["+we+"]",De="[^\\ud800-\\udfff"+Ie+Ce+"\\u2700-\\u27bf"+we+Se+"]",Oe="\\ud83c[\\udffb-\\udfff]",Re="[^\\ud800-\\udfff]",Ne="(?:\\ud83c[\\udde6-\\uddff]){2}",xe="[\\ud800-\\udbff][\\udc00-\\udfff]",ke="["+Se+"]",Fe="(?:"+Ae+"|"+De+")",Ue="(?:"+ke+"|"+De+")",Me="(?:['’](?:d|ll|m|re|s|t|ve))?",Le="(?:['’](?:D|LL|M|RE|S|T|VE))?",je="(?:"+Pe+"|"+Oe+")?",Be="[\\ufe0e\\ufe0f]?",qe=Be+je+"(?:\\u200d(?:"+[Re,Ne,xe].join("|")+")"+Be+je+")*",Ve="(?:"+["[\\u2700-\\u27bf]",Ne,xe].join("|")+")"+qe,Ge="(?:"+[Re+Pe+"?",Pe,Ne,xe,"[\\ud800-\\udfff]"].join("|")+")",$e=RegExp("['’]","g"),ze=RegExp(Pe,"g"),Qe=RegExp(Oe+"(?="+Oe+")|"+Ge+qe,"g"),We=RegExp([ke+"?"+Ae+"+"+Me+"(?="+[Te,ke,"$"].join("|")+")",Ue+"+"+Le+"(?="+[Te,ke+Fe,"$"].join("|")+")",ke+"?"+Fe+"+"+Me,ke+"+"+Le,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ce,Ve].join("|"),"g"),Ke=RegExp("[\\u200d\\ud800-\\udfff"+Ee+"\\ufe0e\\ufe0f]"),Ye=/[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[x]=Xe[k]=Xe[F]=Xe[U]=Xe[M]=Xe[L]=Xe[j]=Xe[B]=Xe[q]=!0,Xe[v]=Xe[y]=Xe[R]=Xe[m]=Xe[N]=Xe[g]=Xe[_]=Xe[b]=Xe[w]=Xe[S]=Xe[I]=Xe[P]=Xe[C]=Xe[A]=Xe[O]=!1;var Ze={};Ze[v]=Ze[y]=Ze[R]=Ze[N]=Ze[m]=Ze[g]=Ze[x]=Ze[k]=Ze[F]=Ze[U]=Ze[M]=Ze[w]=Ze[S]=Ze[I]=Ze[P]=Ze[C]=Ze[A]=Ze[D]=Ze[L]=Ze[j]=Ze[B]=Ze[q]=!0,Ze[_]=Ze[b]=Ze[O]=!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&<.isArrayBuffer,pt=lt&<.isDate,dt=lt&<.isMap,ht=lt&<.isRegExp,vt=lt&<.isSet,yt=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)&&xt(e,t,0)>-1}function It(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 Tt(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 Pt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Ct(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 At(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 Dt(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 Ot=Mt("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 Nt(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 xt(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):Nt(e,Ft,n)}function kt(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 Ut(e,t){var n=null==e?0:e.length;return n?Bt(e,t)/n:p}function Mt(e){return function(t){return null==t?i:t[e]}}function Lt(e){return function(t){return null==e?i:e[t]}}function jt(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 Gt(e){return function(t){return e(t)}}function $t(e,t){return Tt(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&&xt(t,e[n],0)>-1;);return n}function Wt(e,t){for(var n=e.length;n--&&xt(t,e[n],0)>-1;);return n}function Kt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Yt=Lt({À:"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=Lt({"&":"&","<":"<",">":">",'"':""","'":"'"});function Jt(e){return"\\"+et[e]}function Xt(e){return Ke.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):Ot(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=Lt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),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,Ie=t.Object,Te=t.RegExp,Pe=t.String,Ce=t.TypeError,Ae=r.prototype,De=we.prototype,Oe=Ie.prototype,Re=t["__core-js_shared__"],Ne=De.toString,xe=Oe.hasOwnProperty,ke=0,Fe=(n=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ue=Oe.toString,Me=Ne.call(Ie),Le=ot._,je=Te("^"+Ne.call(xe).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=ut?t.Buffer:i,qe=t.Symbol,Ve=t.Uint8Array,Ge=Be?Be.allocUnsafe:i,Qe=en(Ie.getPrototypeOf,Ie),Ke=Ie.create,et=Oe.propertyIsEnumerable,rt=Ae.splice,it=qe?qe.isConcatSpreadable:i,at=qe?qe.iterator:i,st=qe?qe.toStringTag:i,ct=function(){try{var e=co(Ie,"defineProperty");return e({},"",{}),e}catch(e){}}(),lt=t.clearTimeout!==ot.clearTimeout&&t.clearTimeout,Ot=ie&&ie.now!==ot.Date.now&&ie.now,Lt=t.setTimeout!==ot.setTimeout&&t.setTimeout,ln=Se.ceil,fn=Se.floor,pn=Ie.getOwnPropertySymbols,dn=Be?Be.isBuffer:i,hn=t.isFinite,vn=Ae.join,yn=en(Ie.keys,Ie),mn=Se.max,gn=Se.min,_n=ie.now,bn=t.parseInt,En=Se.random,wn=Ae.reverse,Sn=co(t,"DataView"),In=co(t,"Map"),Tn=co(t,"Promise"),Pn=co(t,"Set"),Cn=co(t,"WeakMap"),An=co(Ie,"create"),Dn=Cn&&new Cn,On={},Rn=jo(Sn),Nn=jo(In),xn=jo(Tn),kn=jo(Pn),Fn=jo(Cn),Un=qe?qe.prototype:i,Mn=Un?Un.valueOf:i,Ln=Un?Un.toString:i;function jn(e){if(ns(e)&&!za(e)&&!(e instanceof Gn)){if(e instanceof Vn)return e;if(xe.call(e,"__wrapped__"))return Bo(e)}return new Vn(e)}var Bn=function(){function e(){}return function(t){if(!ts(t))return{};if(Ke)return Ke(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 Gn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function $n(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 Kn(e){var t=this.__data__=new zn(e);this.size=t.size}function Yn(e,t){var n=za(e),r=!n&&$a(e),i=!n&&!r&&Ya(e),o=!n&&!r&&!i&&ls(e),a=n||r||i||o,s=a?qt(e.length,Pe):[],u=s.length;for(var c in e)!t&&!xe.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 ko(Ci(e),ar(t,0,e.length))}function Xn(e){return ko(Ci(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];xe.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&&Ai(t,Ns(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:Cs(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]&&xe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return Ci(e,s)}else{var p=po(e),d=p==b||p==E;if(Ya(e))return Ei(e,u);if(p==I||p==v||d&&!o){if(s=c||d?{}:vo(e),!u)return c?function(e,t){return Ai(e,fo(e),t)}(e,function(e,t){return e&&Ai(t,xs(t),e)}(s,e)):function(e,t){return Ai(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 N:return function(e,t){var n=t?wi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case x:case k:case F:case U:case M:case L:case j:case B:case q:return Si(e,n);case w:return new i;case S:case A:return new i(e);case P:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new i;case D:return r=e,Mn?Ie(Mn.call(r)):{}}}(e,p,u)}}a||(a=new Kn);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?xs:Ns)(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=Ie(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 Ce(o);return Oo((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=Tt(t,Gt(n))),r?(o=It,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}jn.templateSettings={escape:Y,evaluate:H,interpolate:J,variable:"",imports:{_:jn}},jn.prototype=qn.prototype,jn.prototype.constructor=jn,Vn.prototype=Bn(qn.prototype),Vn.prototype.constructor=Vn,Gn.prototype=Bn(qn.prototype),Gn.prototype.constructor=Gn,$n.prototype.clear=function(){this.__data__=An?An(null):{},this.size=0},$n.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},$n.prototype.get=function(e){var t=this.__data__;if(An){var n=t[e];return n===a?i:n}return xe.call(t,e)?t[e]:i},$n.prototype.has=function(e){var t=this.__data__;return An?t[e]!==i:xe.call(t,e)},$n.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=An&&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 $n,map:new(In||zn),string:new $n}},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)},Kn.prototype.clear=function(){this.__data__=new zn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof zn){var r=n.__data__;if(!In||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):Pt(i,s):r||(i[i.length]=s)}return i}var mr=Ni(),gr=Ni(!0);function _r(e,t){return e&&mr(e,t,Ns)}function br(e,t){return e&&gr(e,t,Ns)}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[Lo(t[n++])];return n&&n==r?e:i}function Sr(e,t,n){var r=t(e);return za(e)?r:Pt(r,n(e))}function Ir(e){return null==e?e===i?"[object Undefined]":"[object Null]":st&&st in Ie(e)?function(e){var t=xe.call(e,st),n=e[st];try{e[st]=i;var r=!0}catch(e){}var o=Ue.call(e);return r&&(t?e[st]=n:delete e[st]),o}(e):function(e){return Ue.call(e)}(e)}function Tr(e,t){return e>t}function Pr(e,t){return null!=e&&xe.call(e,t)}function Cr(e,t){return null!=e&&t in Ie(e)}function Ar(e,t,n){for(var o=n?It: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=Tt(p,Gt(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 Dr(e,t,n){var r=null==(e=Po(e,t=mi(t,e)))?e:e[Lo(Jo(t))];return null==r?i:mt(r,e,n)}function Or(e){return ns(e)&&Ir(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?I:c)==I,p=(l=l==v?I:l)==I,d=c==l;if(d&&Ya(e)){if(!Ya(t))return!1;s=!0,f=!1}if(d&&!f)return a||(a=new Kn),s||ls(e)?Zi(e,t,n,r,o,a):function(e,t,n,r,i,o,a){switch(n){case N: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 P:case A:return e==t+"";case w:var s=Zt;case C: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 D:if(Mn)return Mn.call(e)==Mn.call(t)}return!1}(e,t,c,n,r,o,a);if(!(1&n)){var h=f&&xe.call(e,"__wrapped__"),b=p&&xe.call(t,"__wrapped__");if(h||b){var E=h?e.value():e,T=b?t.value():t;return a||(a=new Kn),o(E,T,n,r,a)}}return!!d&&(a||(a=new Kn),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:xe.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 Nr(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=Ie(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 Kn;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 xr(e){return!(!ts(e)||(t=e,Fe&&Fe in t))&&(Xa(e)?je:ve).test(jo(e));var t}function kr(e){return"function"==typeof e?e:null==e?iu:"object"==typeof e?za(e)?jr(e[0],e[1]):Lr(e):du(e)}function Fr(e){if(!wo(e))return yn(e);var t=[];for(var n in Ie(e))xe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Ur(e,t){return e<t}function Mr(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 Lr(e){var t=uo(e);return 1==t.length&&t[0][2]?Io(t[0][0],t[0][1]):function(n){return n===e||Nr(n,e,t)}}function jr(e,t){return _o(e)&&So(t)?Io(Lo(e),t):function(n){var r=Cs(n,e);return r===i&&r===t?As(n,e):Rr(t,r,3)}}function Br(e,t,n,r,o){e!==t&&mr(t,(function(a,s){if(o||(o=new Kn),ts(a))!function(e,t,n,r,o,a,s){var u=Ao(e,n),c=Ao(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&&Ya(c),v=!d&&!h&&ls(c);f=c,d||h||v?za(u)?f=u:Ka(u)?f=Ci(u):h?(p=!1,f=Ei(c,!0)):v?(p=!1,f=Si(c,!0)):f=[]:os(c)||$a(c)?(f=u,$a(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(Ao(e,s),a,s+"",e,t,o):i;u===i&&(u=a),Zn(e,s,u)}}),xs)}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?Tt(t,(function(e){return za(e)?function(t){return wr(t,1===e.length?e[0]:e)}:e})):[iu];var r=-1;t=Tt(t,Gt(ao()));var i=Mr(e,(function(e,n,i){var o=Tt(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=Ii(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 Gr(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 $r(e,t,n,r){var i=r?kt:xt,o=-1,a=t.length,s=e;for(e===t&&(t=Ci(t)),n&&(s=Tt(e,Gt(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 Kr(e,t){return Ro(To(e,t,iu),e+"")}function Yr(e){return Hn(qs(e))}function Hr(e,t){var n=qs(e);return ko(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=Lo(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=Dn?function(e,t){return Dn.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 ko(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 Tt(e,si)+"";if(cs(e))return Ln?Ln.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=It;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=Po(e,t=mi(t,e)))||delete e[Lo(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 Gn&&(n=n.value()),Ct(t,(function(e,t){return t.func.apply(t.thisArg,Pt([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 Ka(e)?e:[]}function yi(e){return"function"==typeof e?e:iu}function mi(e,t){return za(e)?e:_o(e,t)?[e]:Mo(_s(e))}var gi=Kr;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=Ge?Ge(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 Ii(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 Ti(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 Pi(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 Ci(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Ai(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 Di(e,t){return function(n,r){var i=za(n)?gt:nr,o=t?t():{};return i(n,e,ao(r,2),o)}}function Oi(e){return Kr((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=Ie(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=Ie(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Ni(e){return function(t,n,r){for(var i=-1,o=Ie(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 xi(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 ki(e){return function(t){return Ct(Xs($s(t).replace($e,"")),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 Ui(e){return function(t,n,r){var o=Ie(t);if(!Wa(t)){var a=ao(n,3);t=Ns(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 Mi(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 Ce(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 Li(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=Kt(_,E);if(o&&(_=Ti(_,o,a,y)),s&&(_=Pi(_,s,u,y)),c-=w,y&&c<p){var S=tn(_,E);return zi(e,t,Li,i.placeholder,n,_,S,l,f,p-c)}var I=h?n:this,T=v?I[e]:e;return c=_.length,l?_=Co(_,l):m&&c>1&&_.reverse(),d&&f<c&&(_.length=f),this&&this!==ot&&this instanceof i&&(T=g||Fi(T)),T.apply(I,_)}}function ji(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=Tt(t,Gt(ao())),Kr((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 Gi(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 $i(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)&&Do(h,d),h.placeholder=r,No(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=Pn&&1/nn(new Pn([,-0]))[1]==l?function(e){return new Pn(e)}:cu;function Ki(e){return function(t){var n=po(t);return n==w?Zt(t):n==C?rn(t):function(e,t){return Tt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Yi(e,t,n,a,l,f,p,d){var h=2&t;if(!h&&"function"!=typeof e)throw new Ce(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?Ti(l,u,t[4]):u,e[4]=l?tn(e[3],s):t[4]}(u=t[5])&&(l=e[5],e[5]=l?Pi(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,Li,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?Li.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 No((g?Xr:Do)(b,_),e,t)}function Hi(e,t,n,r){return e===i||qa(e,Oe[n])&&!xe.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(!Dt(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(To(e,i,Qo),e+"")}function to(e){return Sr(e,Ns,lo)}function no(e){return Sr(e,xs,fo)}var ro=Dn?function(e){return Dn.get(e)}:cu;function io(e){for(var t=e.name+"",n=On[t],r=xe.call(On,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(xe.call(jn,"placeholder")?jn:e).placeholder}function ao(){var e=jn.iteratee||ou;return e=e===ou?kr: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=Ns(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 xr(n)?n:i}var lo=pn?function(e){return null==e?[]:(e=Ie(e),wt(pn(e),(function(t){return et.call(e,t)})))}:yu,fo=pn?function(e){for(var t=[];e;)Pt(t,lo(e)),e=Qe(e);return t}:yu,po=Ir;function ho(e,t,n){for(var r=-1,i=(t=mi(t,e)).length,o=!1;++r<i;){var a=Lo(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)||$a(e))}function vo(e){return"function"!=typeof e.constructor||wo(e)?{}:Bn(Qe(e))}function yo(e){return za(e)||$a(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 Ie(t)}function bo(e){var t=io(e),n=jn[t];if("function"!=typeof n||!(t in Gn.prototype))return!1;if(e===n)return!0;var r=ro(n);return!!r&&e===r[0]}(Sn&&po(new Sn(new ArrayBuffer(1)))!=N||In&&po(new In)!=w||Tn&&po(Tn.resolve())!=T||Pn&&po(new Pn)!=C||Cn&&po(new Cn)!=O)&&(po=function(e){var t=Ir(e),n=t==I?e.constructor:i,r=n?jo(n):"";if(r)switch(r){case Rn:return N;case Nn:return w;case xn:return T;case kn:return C;case Fn:return O}return t});var Eo=Re?Xa:mu;function wo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Oe)}function So(e){return e==e&&!ts(e)}function Io(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in Ie(n))}}function To(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 Po(e,t){return t.length<2?e:wr(e,ti(t,0,-1))}function Co(e,t){for(var n=e.length,r=gn(t.length,n),o=Ci(e);r--;){var a=t[r];e[r]=mo(a,n)?o[a]:i}return e}function Ao(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Do=xo(Xr),Oo=Lt||function(e,t){return ot.setTimeout(e,t)},Ro=xo(Zr);function No(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 xo(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 ko(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,Uo,Mo=(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===Uo.size&&Uo.clear(),e})),Uo=Fo.cache,Fo);function Lo(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function jo(e){if(null!=e){try{return Ne.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Bo(e){if(e instanceof Gn)return e.clone();var t=new Vn(e.__wrapped__,e.__chain__);return t.__actions__=Ci(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var qo=Kr((function(e,t){return Ka(e)?lr(e,yr(t,1,Ka,!0)):[]})),Vo=Kr((function(e,t){var n=Jo(t);return Ka(n)&&(n=i),Ka(e)?lr(e,yr(t,1,Ka,!0),ao(n,2)):[]})),Go=Kr((function(e,t){var n=Jo(t);return Ka(n)&&(n=i),Ka(e)?lr(e,yr(t,1,Ka,!0),i,n):[]}));function $o(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)),Nt(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)),Nt(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 Ko=Kr((function(e){var t=Tt(e,vi);return t.length&&t[0]===e[0]?Ar(t):[]})),Yo=Kr((function(e){var t=Jo(e),n=Tt(e,vi);return t===Jo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Ar(n,ao(t,2)):[]})),Ho=Kr((function(e){var t=Jo(e),n=Tt(e,vi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Ar(n,i,t):[]}));function Jo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Xo=Kr(Zo);function Zo(e,t){return e&&e.length&&t&&t.length?$r(e,t):e}var ea=eo((function(e,t){var n=null==e?0:e.length,r=or(e,t);return zr(e,Tt(t,(function(e){return mo(e,n)?+e:e})).sort(Ii)),r}));function ta(e){return null==e?e:wn.call(e)}var na=Kr((function(e){return ui(yr(e,1,Ka,!0))})),ra=Kr((function(e){var t=Jo(e);return Ka(t)&&(t=i),ui(yr(e,1,Ka,!0),ao(t,2))})),ia=Kr((function(e){var t=Jo(e);return t="function"==typeof t?t:i,ui(yr(e,1,Ka,!0),i,t)}));function oa(e){if(!e||!e.length)return[];var t=0;return e=wt(e,(function(e){if(Ka(e))return t=mn(e.length,t),!0})),qt(t,(function(t){return Tt(e,Mt(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=oa(e);return null==t?n:Tt(n,(function(e){return mt(t,i,e)}))}var sa=Kr((function(e,t){return Ka(e)?lr(e,t):[]})),ua=Kr((function(e){return di(wt(e,Ka))})),ca=Kr((function(e){var t=Jo(e);return Ka(t)&&(t=i),di(wt(e,Ka),ao(t,2))})),la=Kr((function(e){var t=Jo(e);return t="function"==typeof t?t:i,di(wt(e,Ka),i,t)})),fa=Kr(oa),pa=Kr((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=jn(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 Gn&&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=Di((function(e,t,n){xe.call(e,n)?++e[n]:ir(e,n,1)})),ma=Ui($o),ga=Ui(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=Di((function(e,t,n){xe.call(e,n)?e[n].push(t):ir(e,n,[t])})),wa=Kr((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):Dr(e,t,n)})),a})),Sa=Di((function(e,t,n){ir(e,n,t)}));function Ia(e,t){return(za(e)?Tt:Mr)(e,ao(t,3))}var Ta=Di((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Pa=Kr((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),[])})),Ca=Ot||function(){return ot.Date.now()};function Aa(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Yi(e,c,i,i,i,i,t)}function Da(e,t){var n;if("function"!=typeof t)throw new Ce(o);return e=vs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Oa=Kr((function(e,t,n){var r=1;if(n.length){var i=tn(n,oo(Oa));r|=u}return Yi(e,r,t,n,i)})),Ra=Kr((function(e,t,n){var r=3;if(n.length){var i=tn(n,oo(Ra));r|=u}return Yi(t,r,e,n,i)}));function Na(e,t,n){var r,a,s,u,c,l,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new Ce(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=Oo(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=Ca();if(m(e))return _(e);c=Oo(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=Ca(),n=m(e);if(r=arguments,a=this,l=e,n){if(c===i)return y(l);if(d)return bi(c),c=Oo(g,t),v(l)}return c===i&&(c=Oo(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:_(Ca())},b}var xa=Kr((function(e,t){return cr(e,1,t)})),ka=Kr((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 Ce(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 Ua(e){if("function"!=typeof e)throw new Ce(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 Ma=gi((function(e,t){var n=(t=1==t.length&&za(t[0])?Tt(t[0],Gt(ao())):Tt(yr(t,1),Gt(ao()))).length;return Kr((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)}))})),La=Kr((function(e,t){var n=tn(t,oo(La));return Yi(e,u,i,t,n)})),ja=Kr((function(e,t){var n=tn(t,oo(ja));return Yi(e,64,i,t,n)})),Ba=eo((function(e,t){return Yi(e,256,i,i,i,t)}));function qa(e,t){return e===t||e!=e&&t!=t}var Va=$i(Tr),Ga=$i((function(e,t){return e>=t})),$a=Or(function(){return arguments}())?Or:function(e){return ns(e)&&xe.call(e,"callee")&&!et.call(e,"callee")},za=r.isArray,Qa=ft?Gt(ft):function(e){return ns(e)&&Ir(e)==R};function Wa(e){return null!=e&&es(e.length)&&!Xa(e)}function Ka(e){return ns(e)&&Wa(e)}var Ya=dn||mu,Ha=pt?Gt(pt):function(e){return ns(e)&&Ir(e)==g};function Ja(e){if(!ns(e))return!1;var t=Ir(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=Ir(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?Gt(dt):function(e){return ns(e)&&po(e)==w};function is(e){return"number"==typeof e||ns(e)&&Ir(e)==S}function os(e){if(!ns(e)||Ir(e)!=I)return!1;var t=Qe(e);if(null===t)return!0;var n=xe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ne.call(n)==Me}var as=ht?Gt(ht):function(e){return ns(e)&&Ir(e)==P},ss=vt?Gt(vt):function(e){return ns(e)&&po(e)==C};function us(e){return"string"==typeof e||!za(e)&&ns(e)&&Ir(e)==A}function cs(e){return"symbol"==typeof e||ns(e)&&Ir(e)==D}var ls=yt?Gt(yt):function(e){return ns(e)&&es(e.length)&&!!Xe[Ir(e)]},fs=$i(Ur),ps=$i((function(e,t){return e<=t}));function ds(e){if(!e)return[];if(Wa(e))return us(e)?an(e):Ci(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==C?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 Ai(e,xs(e))}function _s(e){return null==e?"":si(e)}var bs=Oi((function(e,t){if(wo(t)||Wa(t))Ai(t,Ns(t),e);else for(var n in t)xe.call(t,n)&&er(e,n,t[n])})),Es=Oi((function(e,t){Ai(t,xs(t),e)})),ws=Oi((function(e,t,n,r){Ai(t,xs(t),e,r)})),Ss=Oi((function(e,t,n,r){Ai(t,Ns(t),e,r)})),Is=eo(or),Ts=Kr((function(e,t){e=Ie(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=xs(a),u=-1,c=s.length;++u<c;){var l=s[u],f=e[l];(f===i||qa(f,Oe[l])&&!xe.call(e,l))&&(e[l]=a[l])}return e})),Ps=Kr((function(e){return e.push(i,Ji),mt(Fs,i,e)}));function Cs(e,t,n){var r=null==e?i:wr(e,t);return r===i?n:r}function As(e,t){return null!=e&&ho(e,t,Cr)}var Ds=ji((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ue.call(t)),e[t]=n}),tu(iu)),Os=ji((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ue.call(t)),xe.call(e,t)?e[t].push(n):e[t]=[n]}),ao),Rs=Kr(Dr);function Ns(e){return Wa(e)?Yn(e):Fr(e)}function xs(e){return Wa(e)?Yn(e,!0):function(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in Ie(e))t.push(n);return t}(e);var t=wo(e),n=[];for(var r in e)("constructor"!=r||!t&&xe.call(e,r))&&n.push(r);return n}(e)}var ks=Oi((function(e,t,n){Br(e,t,n)})),Fs=Oi((function(e,t,n,r){Br(e,t,n,r)})),Us=eo((function(e,t){var n={};if(null==e)return n;var r=!1;t=Tt(t,(function(t){return t=mi(t,e),r||(r=t.length>1),t})),Ai(e,no(e),n),r&&(n=sr(n,7,Xi));for(var i=t.length;i--;)ci(n,t[i]);return n})),Ms=eo((function(e,t){return null==e?{}:function(e,t){return Gr(e,t,(function(t,n){return As(e,n)}))}(e,t)}));function Ls(e,t){if(null==e)return{};var n=Tt(no(e),(function(e){return[e]}));return t=ao(t),Gr(e,n,(function(e,n){return t(e,n[0])}))}var js=Ki(Ns),Bs=Ki(xs);function qs(e){return null==e?[]:$t(e,Ns(e))}var Vs=ki((function(e,t,n){return t=t.toLowerCase(),e+(n?Gs(t):t)}));function Gs(e){return Js(_s(e).toLowerCase())}function $s(e){return(e=_s(e))&&e.replace(ge,Yt).replace(ze,"")}var zs=ki((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Qs=ki((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ws=xi("toLowerCase"),Ks=ki((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ys=ki((function(e,t,n){return e+(n?" ":"")+Js(t)})),Hs=ki((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Js=xi("toUpperCase");function Xs(e,t,n){return e=_s(e),(t=n?i:t)===i?function(e){return Ye.test(e)}(e)?function(e){return e.match(We)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Zs=Kr((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=Lo(t),ir(e,t,Oa(e[t],e))})),e}));function tu(e){return function(){return e}}var nu=Mi(),ru=Mi(!0);function iu(e){return e}function ou(e){return kr("function"==typeof e?e:sr(e,1))}var au=Kr((function(e,t){return function(n){return Dr(n,e,t)}})),su=Kr((function(e,t){return function(n){return Dr(e,n,t)}}));function uu(e,t,n){var r=Ns(t),i=Er(t,r);null!=n||ts(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Er(t,Ns(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__=Ci(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Pt([this.value()],arguments))})})),e}function cu(){}var lu=qi(Tt),fu=qi(Et),pu=qi(Dt);function du(e){return _o(e)?Mt(Lo(e)):function(e){return function(t){return wr(t,e)}}(e)}var hu=Gi(),vu=Gi(!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),Iu=Qi("round"),Tu=Bi((function(e,t){return e-t}),0);return jn.after=function(e,t){if("function"!=typeof t)throw new Ce(o);return e=vs(e),function(){if(--e<1)return t.apply(this,arguments)}},jn.ary=Aa,jn.assign=bs,jn.assignIn=Es,jn.assignInWith=ws,jn.assignWith=Ss,jn.at=Is,jn.before=Da,jn.bind=Oa,jn.bindAll=eu,jn.bindKey=Ra,jn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return za(e)?e:[e]},jn.chain=da,jn.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},jn.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},jn.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 Pt(za(n)?Ci(n):[n],yr(t,1))},jn.cond=function(e){var t=null==e?0:e.length,n=ao();return e=t?Tt(e,(function(e){if("function"!=typeof e[1])throw new Ce(o);return[n(e[0]),e[1]]})):[],Kr((function(n){for(var r=-1;++r<t;){var i=e[r];if(mt(i[0],this,n))return mt(i[1],this,n)}}))},jn.conforms=function(e){return function(e){var t=Ns(e);return function(n){return ur(n,e,t)}}(sr(e,1))},jn.constant=tu,jn.countBy=ya,jn.create=function(e,t){var n=Bn(e);return null==t?n:rr(n,t)},jn.curry=function e(t,n,r){var o=Yi(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},jn.curryRight=function e(t,n,r){var o=Yi(t,16,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},jn.debounce=Na,jn.defaults=Ts,jn.defaultsDeep=Ps,jn.defer=xa,jn.delay=ka,jn.difference=qo,jn.differenceBy=Vo,jn.differenceWith=Go,jn.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):[]},jn.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):[]},jn.dropRightWhile=function(e,t){return e&&e.length?fi(e,ao(t,3),!0,!0):[]},jn.dropWhile=function(e,t){return e&&e.length?fi(e,ao(t,3),!0):[]},jn.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)):[]},jn.filter=function(e,t){return(za(e)?wt:vr)(e,ao(t,3))},jn.flatMap=function(e,t){return yr(Ia(e,t),1)},jn.flatMapDeep=function(e,t){return yr(Ia(e,t),l)},jn.flatMapDepth=function(e,t,n){return n=n===i?1:vs(n),yr(Ia(e,t),n)},jn.flatten=Qo,jn.flattenDeep=function(e){return null!=e&&e.length?yr(e,l):[]},jn.flattenDepth=function(e,t){return null!=e&&e.length?yr(e,t=t===i?1:vs(t)):[]},jn.flip=function(e){return Yi(e,512)},jn.flow=nu,jn.flowRight=ru,jn.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},jn.functions=function(e){return null==e?[]:Er(e,Ns(e))},jn.functionsIn=function(e){return null==e?[]:Er(e,xs(e))},jn.groupBy=Ea,jn.initial=function(e){return null!=e&&e.length?ti(e,0,-1):[]},jn.intersection=Ko,jn.intersectionBy=Yo,jn.intersectionWith=Ho,jn.invert=Ds,jn.invertBy=Os,jn.invokeMap=wa,jn.iteratee=ou,jn.keyBy=Sa,jn.keys=Ns,jn.keysIn=xs,jn.map=Ia,jn.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},jn.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},jn.matches=function(e){return Lr(sr(e,1))},jn.matchesProperty=function(e,t){return jr(e,sr(t,1))},jn.memoize=Fa,jn.merge=ks,jn.mergeWith=Fs,jn.method=au,jn.methodOf=su,jn.mixin=uu,jn.negate=Ua,jn.nthArg=function(e){return e=vs(e),Kr((function(t){return qr(t,e)}))},jn.omit=Us,jn.omitBy=function(e,t){return Ls(e,Ua(ao(t)))},jn.once=function(e){return Da(2,e)},jn.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))},jn.over=lu,jn.overArgs=Ma,jn.overEvery=fu,jn.overSome=pu,jn.partial=La,jn.partialRight=ja,jn.partition=Ta,jn.pick=Ms,jn.pickBy=Ls,jn.property=du,jn.propertyOf=function(e){return function(t){return null==e?i:wr(e,t)}},jn.pull=Xo,jn.pullAll=Zo,jn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?$r(e,t,ao(n,2)):e},jn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?$r(e,t,i,n):e},jn.pullAt=ea,jn.range=hu,jn.rangeRight=vu,jn.rearg=Ba,jn.reject=function(e,t){return(za(e)?wt:vr)(e,Ua(ao(t,3)))},jn.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},jn.rest=function(e,t){if("function"!=typeof e)throw new Ce(o);return Kr(e,t=t===i?t:vs(t))},jn.reverse=ta,jn.sampleSize=function(e,t,n){return t=(n?go(e,t,n):t===i)?1:vs(t),(za(e)?Jn:Hr)(e,t)},jn.set=function(e,t,n){return null==e?e:Jr(e,t,n)},jn.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Jr(e,t,n,r)},jn.shuffle=function(e){return(za(e)?Xn:ei)(e)},jn.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)):[]},jn.sortBy=Pa,jn.sortedUniq=function(e){return e&&e.length?oi(e):[]},jn.sortedUniqBy=function(e,t){return e&&e.length?oi(e,ao(t,2)):[]},jn.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):[]},jn.spread=function(e,t){if("function"!=typeof e)throw new Ce(o);return t=null==t?0:mn(vs(t),0),Kr((function(n){var r=n[t],i=_i(n,0,t);return r&&Pt(i,r),mt(e,this,i)}))},jn.tail=function(e){var t=null==e?0:e.length;return t?ti(e,1,t):[]},jn.take=function(e,t,n){return e&&e.length?ti(e,0,(t=n||t===i?1:vs(t))<0?0:t):[]},jn.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):[]},jn.takeRightWhile=function(e,t){return e&&e.length?fi(e,ao(t,3),!1,!0):[]},jn.takeWhile=function(e,t){return e&&e.length?fi(e,ao(t,3)):[]},jn.tap=function(e,t){return t(e),e},jn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Ce(o);return ts(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Na(e,t,{leading:r,maxWait:t,trailing:i})},jn.thru=ha,jn.toArray=ds,jn.toPairs=js,jn.toPairsIn=Bs,jn.toPath=function(e){return za(e)?Tt(e,Lo):cs(e)?[e]:Ci(Mo(_s(e)))},jn.toPlainObject=gs,jn.transform=function(e,t,n){var r=za(e),i=r||Ya(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},jn.unary=function(e){return Aa(e,1)},jn.union=na,jn.unionBy=ra,jn.unionWith=ia,jn.uniq=function(e){return e&&e.length?ui(e):[]},jn.uniqBy=function(e,t){return e&&e.length?ui(e,ao(t,2)):[]},jn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ui(e,i,t):[]},jn.unset=function(e,t){return null==e||ci(e,t)},jn.unzip=oa,jn.unzipWith=aa,jn.update=function(e,t,n){return null==e?e:li(e,t,yi(n))},jn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:li(e,t,yi(n),r)},jn.values=qs,jn.valuesIn=function(e){return null==e?[]:$t(e,xs(e))},jn.without=sa,jn.words=Xs,jn.wrap=function(e,t){return La(yi(t),e)},jn.xor=ua,jn.xorBy=ca,jn.xorWith=la,jn.zip=fa,jn.zipObject=function(e,t){return hi(e||[],t||[],er)},jn.zipObjectDeep=function(e,t){return hi(e||[],t||[],Jr)},jn.zipWith=pa,jn.entries=js,jn.entriesIn=Bs,jn.extend=Es,jn.extendWith=ws,uu(jn,jn),jn.add=_u,jn.attempt=Zs,jn.camelCase=Vs,jn.capitalize=Gs,jn.ceil=bu,jn.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)},jn.clone=function(e){return sr(e,4)},jn.cloneDeep=function(e){return sr(e,5)},jn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:i)},jn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:i)},jn.conformsTo=function(e,t){return null==t||ur(e,t,Ns(t))},jn.deburr=$s,jn.defaultTo=function(e,t){return null==e||e!=e?t:e},jn.divide=Eu,jn.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},jn.eq=qa,jn.escape=function(e){return(e=_s(e))&&K.test(e)?e.replace(Q,Ht):e},jn.escapeRegExp=function(e){return(e=_s(e))&&ne.test(e)?e.replace(te,"\\$&"):e},jn.every=function(e,t,n){var r=za(e)?Et:dr;return n&&go(e,t,n)&&(t=i),r(e,ao(t,3))},jn.find=ma,jn.findIndex=$o,jn.findKey=function(e,t){return Rt(e,ao(t,3),_r)},jn.findLast=ga,jn.findLastIndex=zo,jn.findLastKey=function(e,t){return Rt(e,ao(t,3),br)},jn.floor=wu,jn.forEach=_a,jn.forEachRight=ba,jn.forIn=function(e,t){return null==e?e:mr(e,ao(t,3),xs)},jn.forInRight=function(e,t){return null==e?e:gr(e,ao(t,3),xs)},jn.forOwn=function(e,t){return e&&_r(e,ao(t,3))},jn.forOwnRight=function(e,t){return e&&br(e,ao(t,3))},jn.get=Cs,jn.gt=Va,jn.gte=Ga,jn.has=function(e,t){return null!=e&&ho(e,t,Pr)},jn.hasIn=As,jn.head=Wo,jn.identity=iu,jn.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&&xt(e,t,n)>-1},jn.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)),xt(e,t,i)},jn.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)},jn.invoke=Rs,jn.isArguments=$a,jn.isArray=za,jn.isArrayBuffer=Qa,jn.isArrayLike=Wa,jn.isArrayLikeObject=Ka,jn.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Ir(e)==m},jn.isBuffer=Ya,jn.isDate=Ha,jn.isElement=function(e){return ns(e)&&1===e.nodeType&&!os(e)},jn.isEmpty=function(e){if(null==e)return!0;if(Wa(e)&&(za(e)||"string"==typeof e||"function"==typeof e.splice||Ya(e)||ls(e)||$a(e)))return!e.length;var t=po(e);if(t==w||t==C)return!e.size;if(wo(e))return!Fr(e).length;for(var n in e)if(xe.call(e,n))return!1;return!0},jn.isEqual=function(e,t){return Rr(e,t)},jn.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},jn.isError=Ja,jn.isFinite=function(e){return"number"==typeof e&&hn(e)},jn.isFunction=Xa,jn.isInteger=Za,jn.isLength=es,jn.isMap=rs,jn.isMatch=function(e,t){return e===t||Nr(e,t,uo(t))},jn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Nr(e,t,uo(t),n)},jn.isNaN=function(e){return is(e)&&e!=+e},jn.isNative=function(e){if(Eo(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return xr(e)},jn.isNil=function(e){return null==e},jn.isNull=function(e){return null===e},jn.isNumber=is,jn.isObject=ts,jn.isObjectLike=ns,jn.isPlainObject=os,jn.isRegExp=as,jn.isSafeInteger=function(e){return Za(e)&&e>=-9007199254740991&&e<=f},jn.isSet=ss,jn.isString=us,jn.isSymbol=cs,jn.isTypedArray=ls,jn.isUndefined=function(e){return e===i},jn.isWeakMap=function(e){return ns(e)&&po(e)==O},jn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Ir(e)},jn.join=function(e,t){return null==e?"":vn.call(e,t)},jn.kebabCase=zs,jn.last=Jo,jn.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):Nt(e,Ft,o,!0)},jn.lowerCase=Qs,jn.lowerFirst=Ws,jn.lt=fs,jn.lte=ps,jn.max=function(e){return e&&e.length?hr(e,iu,Tr):i},jn.maxBy=function(e,t){return e&&e.length?hr(e,ao(t,2),Tr):i},jn.mean=function(e){return Ut(e,iu)},jn.meanBy=function(e,t){return Ut(e,ao(t,2))},jn.min=function(e){return e&&e.length?hr(e,iu,Ur):i},jn.minBy=function(e,t){return e&&e.length?hr(e,ao(t,2),Ur):i},jn.stubArray=yu,jn.stubFalse=mu,jn.stubObject=function(){return{}},jn.stubString=function(){return""},jn.stubTrue=function(){return!0},jn.multiply=Su,jn.nth=function(e,t){return e&&e.length?qr(e,vs(t)):i},jn.noConflict=function(){return ot._===this&&(ot._=Le),this},jn.noop=cu,jn.now=Ca,jn.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)},jn.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},jn.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},jn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(_s(e).replace(re,""),t||0)},jn.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)},jn.reduce=function(e,t,n){var r=za(e)?Ct:jt,i=arguments.length<3;return r(e,ao(t,4),n,i,fr)},jn.reduceRight=function(e,t,n){var r=za(e)?At:jt,i=arguments.length<3;return r(e,ao(t,4),n,i,pr)},jn.repeat=function(e,t,n){return t=(n?go(e,t,n):t===i)?1:vs(t),Wr(_s(e),t)},jn.replace=function(){var e=arguments,t=_s(e[0]);return e.length<3?t:t.replace(e[1],e[2])},jn.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[Lo(t[r])];a===i&&(r=o,a=n),e=Xa(a)?a.call(e):a}return e},jn.round=Iu,jn.runInContext=e,jn.sample=function(e){return(za(e)?Hn:Yr)(e)},jn.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==C?e.size:Fr(e).length},jn.snakeCase=Ks,jn.some=function(e,t,n){var r=za(e)?Dt:ni;return n&&go(e,t,n)&&(t=i),r(e,ao(t,3))},jn.sortedIndex=function(e,t){return ri(e,t)},jn.sortedIndexBy=function(e,t,n){return ii(e,t,ao(n,2))},jn.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},jn.sortedLastIndex=function(e,t){return ri(e,t,!0)},jn.sortedLastIndexBy=function(e,t,n){return ii(e,t,ao(n,2),!0)},jn.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},jn.startCase=Ys,jn.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},jn.subtract=Tu,jn.sum=function(e){return e&&e.length?Bt(e,iu):0},jn.sumBy=function(e,t){return e&&e.length?Bt(e,ao(t,2)):0},jn.template=function(e,t,n){var r=jn.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=Ns(s),c=$t(s,u),l=0,f=t.interpolate||_e,p="__p += '",d=Te((t.escape||_e).source+"|"+f.source+"|"+(f===J?fe:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),h="//# sourceURL="+(xe.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=xe.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(G,"$1").replace($,"$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},jn.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},jn.toFinite=hs,jn.toInteger=vs,jn.toLength=ys,jn.toLower=function(e){return _s(e).toLowerCase()},jn.toNumber=ms,jn.toSafeInteger=function(e){return e?ar(vs(e),-9007199254740991,f):0===e?e:0},jn.toString=_s,jn.toUpper=function(e){return _s(e).toUpperCase()},jn.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("")},jn.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("")},jn.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("")},jn.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=Te(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},jn.unescape=function(e){return(e=_s(e))&&W.test(e)?e.replace(z,un):e},jn.uniqueId=function(e){var t=++ke;return _s(e)+t},jn.upperCase=Hs,jn.upperFirst=Js,jn.each=_a,jn.eachRight=ba,jn.first=Wo,uu(jn,(gu={},_r(jn,(function(e,t){xe.call(jn.prototype,t)||(gu[t]=e)})),gu),{chain:!1}),jn.VERSION="4.17.21",_t(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){jn[e].placeholder=jn})),_t(["drop","take"],(function(e,t){Gn.prototype[e]=function(n){n=n===i?1:mn(vs(n),0);var r=this.__filtered__&&!t?new Gn(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},Gn.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;Gn.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":"");Gn.prototype[e]=function(){return this[n](1).value()[0]}})),_t(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Gn.prototype[e]=function(){return this.__filtered__?new Gn(this):this[n](1)}})),Gn.prototype.compact=function(){return this.filter(iu)},Gn.prototype.find=function(e){return this.filter(e).head()},Gn.prototype.findLast=function(e){return this.reverse().find(e)},Gn.prototype.invokeMap=Kr((function(e,t){return"function"==typeof e?new Gn(this):this.map((function(n){return Dr(n,e,t)}))})),Gn.prototype.reject=function(e){return this.filter(Ua(ao(e)))},Gn.prototype.slice=function(e,t){e=vs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Gn(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)},Gn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Gn.prototype.toArray=function(){return this.take(d)},_r(Gn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=jn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(jn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof Gn,c=s[0],l=u||za(t),f=function(e){var t=o.apply(jn,Pt([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 Gn(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=Ae[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);jn.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(Gn.prototype,(function(e,t){var n=jn[t];if(n){var r=n.name+"";xe.call(On,r)||(On[r]=[]),On[r].push({name:t,func:n})}})),On[Li(i,2).name]=[{name:"wrapper",func:i}],Gn.prototype.clone=function(){var e=new Gn(this.__wrapped__);return e.__actions__=Ci(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ci(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ci(this.__views__),e},Gn.prototype.reverse=function(){if(this.__filtered__){var e=new Gn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Gn.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},jn.prototype.at=va,jn.prototype.chain=function(){return da(this)},jn.prototype.commit=function(){return new Vn(this.value(),this.__chain__)},jn.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__++]}},jn.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},jn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Gn){var t=e;return this.__actions__.length&&(t=new Gn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ta],thisArg:i}),new Vn(t,this.__chain__)}return this.thru(ta)},jn.prototype.toJSON=jn.prototype.valueOf=jn.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},jn.prototype.first=jn.prototype.head,at&&(jn.prototype[at]=function(){return this}),jn}();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},1746:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AccessDeniedReason:()=>De,Alignment:()=>f,BOOLEAN_DEFAULT_FALLBACK_ENTITLEMENT:()=>Ue,BillingModel:()=>v,BillingPeriod:()=>y,Currency:()=>E,CustomerModel:()=>je,DiscountDurationType:()=>I,DiscountType:()=>T,EntitlementResetPeriod:()=>Ne,ExperimentGroupType:()=>Ae,FeatureType:()=>Oe,FontWeight:()=>M,LogLevel:()=>o,METERED_DEFAULT_FALLBACK_ENTITLEMENT:()=>Le,MeterType:()=>Re,NUMERIC_DEFAULT_FALLBACK_ENTITLEMENT:()=>Me,PricingType:()=>J,PromotionalEntitlementStatus:()=>te,SubscriptionScheduleType:()=>me,SubscriptionStatus:()=>_e,TrialPeriodUnits:()=>Se,WidgetType:()=>Ce,default:()=>Ap});var r={};n.r(r),n.d(r,{FunctionToString:()=>tu,InboundFilters:()=>hu});var i={};n.r(i),n.d(i,{Breadcrumbs:()=>Ac,Dedupe:()=>Mc,GlobalHandlers:()=>dc,HttpContext:()=>Uc,LinkedErrors:()=>xc,TryCatch:()=>bc});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,d,h,v,y,m,g,_,b,E,w,S,I,T,P,C,A,D,O,R,N,x,k,F,U,M,L,j,B,q,V,G,$,z,Q,W,K,Y,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,Ie,Te,Pe,Ce,Ae,De,Oe,Re,Ne,xe=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}();!function(e){e.CustomerNotFound="CustomerNotFound",e.FeatureNotFound="FeatureNotFound",e.NoActiveSubscription="NoActiveSubscription",e.NoFeatureEntitlementInSubscription="NoFeatureEntitlementInSubscription",e.RequestedUsageExceedingLimit="RequestedUsageExceedingLimit",e.Unknown="Unknown"}(u||(u={})),function(e){e.Active="ACTIVE",e.Blocked="BLOCKED"}(c||(c={})),function(e){e.BillingId="billingId",e.CreatedAt="createdAt",e.Description="description",e.DisplayName="displayName",e.EnvironmentId="environmentId",e.Id="id",e.IsLatest="isLatest",e.PricingType="pricingType",e.ProductId="productId",e.RefId="refId",e.Status="status",e.UpdatedAt="updatedAt",e.VersionNumber="versionNumber"}(l||(l={})),function(e){e.Center="CENTER",e.Left="LEFT",e.Right="RIGHT"}(f||(f={})),function(e){e.Id="id"}(p||(p={})),function(e){e.Client="CLIENT",e.Server="SERVER"}(d||(d={})),function(e){e.StartOfTheMonth="START_OF_THE_MONTH",e.SubscriptionStart="SUBSCRIPTION_START"}(h||(h={})),function(e){e.FlatFee="FLAT_FEE",e.PerUnit="PER_UNIT",e.UsageBased="USAGE_BASED"}(v||(v={})),function(e){e.Annually="ANNUALLY",e.Monthly="MONTHLY"}(y||(y={})),function(e){e.Added="ADDED",e.Deleted="DELETED",e.Modified="MODIFIED",e.Reordered="REORDERED"}(m||(m={})),function(e){e.BillingId="billingId",e.CreatedAt="createdAt",e.Description="description",e.EnvironmentId="environmentId",e.Id="id",e.Name="name",e.RefId="refId",e.Status="status",e.Type="type",e.UpdatedAt="updatedAt"}(g||(g={})),function(e){e.Active="ACTIVE",e.Archived="ARCHIVED"}(_||(_={})),function(e){e.Fixed="FIXED",e.Percentage="PERCENTAGE"}(b||(b={})),function(e){e.Aed="AED",e.All="ALL",e.Amd="AMD",e.Ang="ANG",e.Aud="AUD",e.Awg="AWG",e.Azn="AZN",e.Bam="BAM",e.Bbd="BBD",e.Bdt="BDT",e.Bgn="BGN",e.Bif="BIF",e.Bmd="BMD",e.Bnd="BND",e.Bsd="BSD",e.Bwp="BWP",e.Byn="BYN",e.Bzd="BZD",e.Cad="CAD",e.Cdf="CDF",e.Chf="CHF",e.Clp="CLP",e.Cny="CNY",e.Czk="CZK",e.Djf="DJF",e.Dkk="DKK",e.Dop="DOP",e.Dzd="DZD",e.Egp="EGP",e.Etb="ETB",e.Eur="EUR",e.Fjd="FJD",e.Gbp="GBP",e.Gel="GEL",e.Gip="GIP",e.Gmd="GMD",e.Gnf="GNF",e.Gyd="GYD",e.Hkd="HKD",e.Hrk="HRK",e.Htg="HTG",e.Idr="IDR",e.Ils="ILS",e.Inr="INR",e.Isk="ISK",e.Jmd="JMD",e.Jpy="JPY",e.Kes="KES",e.Kgs="KGS",e.Khr="KHR",e.Kmf="KMF",e.Krw="KRW",e.Kyd="KYD",e.Kzt="KZT",e.Lbp="LBP",e.Lkr="LKR",e.Lrd="LRD",e.Lsl="LSL",e.Mad="MAD",e.Mdl="MDL",e.Mga="MGA",e.Mkd="MKD",e.Mmk="MMK",e.Mnt="MNT",e.Mop="MOP",e.Mro="MRO",e.Mvr="MVR",e.Mwk="MWK",e.Mxn="MXN",e.Myr="MYR",e.Mzn="MZN",e.Nad="NAD",e.Ngn="NGN",e.Nok="NOK",e.Npr="NPR",e.Nzd="NZD",e.Pgk="PGK",e.Php="PHP",e.Pkr="PKR",e.Pln="PLN",e.Pyg="PYG",e.Qar="QAR",e.Ron="RON",e.Rsd="RSD",e.Rub="RUB",e.Rwf="RWF",e.Sar="SAR",e.Sbd="SBD",e.Scr="SCR",e.Sek="SEK",e.Sgd="SGD",e.Sle="SLE",e.Sll="SLL",e.Sos="SOS",e.Szl="SZL",e.Thb="THB",e.Tjs="TJS",e.Top="TOP",e.Try="TRY",e.Ttd="TTD",e.Tzs="TZS",e.Uah="UAH",e.Ugx="UGX",e.Usd="USD",e.Uzs="UZS",e.Vnd="VND",e.Vuv="VUV",e.Wst="WST",e.Xaf="XAF",e.Xcd="XCD",e.Xof="XOF",e.Xpf="XPF",e.Yer="YER",e.Zar="ZAR",e.Zmw="ZMW"}(E||(E={})),function(e){e.BillingId="billingId",e.CreatedAt="createdAt",e.CrmHubspotCompanyId="crmHubspotCompanyId",e.CrmHubspotCompanyUrl="crmHubspotCompanyUrl",e.CrmId="crmId",e.CustomerId="customerId",e.Email="email",e.EnvironmentId="environmentId",e.Id="id",e.Name="name",e.RefId="refId",e.UpdatedAt="updatedAt"}(w||(w={})),function(e){e.BillingId="billingId",e.CancelReason="cancelReason",e.CancellationDate="cancellationDate",e.CreatedAt="createdAt",e.CrmId="crmId",e.CrmLinkUrl="crmLinkUrl",e.EffectiveEndDate="effectiveEndDate",e.EndDate="endDate",e.EnvironmentId="environmentId",e.Id="id",e.OldBillingId="oldBillingId",e.PricingType="pricingType",e.RefId="refId",e.StartDate="startDate",e.Status="status",e.SubscriptionId="subscriptionId",e.TrialEndDate="trialEndDate"}(S||(S={})),function(e){e.Forever="FOREVER",e.Once="ONCE",e.Repeating="REPEATING"}(I||(I={})),function(e){e.Fixed="FIXED",e.Percentage="PERCENTAGE"}(T||(T={})),function(e){e.Day="DAY",e.Hour="HOUR",e.Month="MONTH",e.Week="WEEK"}(P||(P={})),function(e){e.BlackList="BLACK_LIST",e.WhiteList="WHITE_LIST"}(C||(C={})),function(e){e.Done="DONE",e.Failed="FAILED",e.InProgress="IN_PROGRESS",e.NotProvisioned="NOT_PROVISIONED"}(A||(A={})),function(e){e.CreatedAt="createdAt",e.DisplayName="displayName",e.Id="id",e.Slug="slug"}(D||(D={})),function(e){e.AccountNotFoundError="AccountNotFoundError",e.AddonHasToHavePriceError="AddonHasToHavePriceError",e.AddonNotFound="AddonNotFound",e.ArchivedCouponCantBeApplied="ArchivedCouponCantBeApplied",e.AuthCustomerMismatch="AuthCustomerMismatch",e.BadUserInput="BadUserInput",e.BillingPeriodMissingError="BillingPeriodMissingError",e.CannotDeleteCustomerError="CannotDeleteCustomerError",e.CannotDeleteFeatureError="CannotDeleteFeatureError",e.CannotEditPackageInNonDraftMode="CannotEditPackageInNonDraftMode",e.CheckoutIsNotSupported="CheckoutIsNotSupported",e.CheckoutOptionsMissing="CheckoutOptionsMissing",e.CouponNotFound="CouponNotFound",e.CustomerAlreadyHaveCustomerCoupon="CustomerAlreadyHaveCustomerCoupon",e.CustomerAlreadyUsesCoupon="CustomerAlreadyUsesCoupon",e.CustomerHasNoPaymentMethod="CustomerHasNoPaymentMethod",e.CustomerNoBillingId="CustomerNoBillingId",e.CustomerNotFound="CustomerNotFound",e.DowngradeBillingPeriodNotSupportedError="DowngradeBillingPeriodNotSupportedError",e.DraftPlanCantBeArchived="DraftPlanCantBeArchived",e.DuplicatedEntityNotAllowed="DuplicatedEntityNotAllowed",e.EditAllowedOnDraftPackageOnlyError="EditAllowedOnDraftPackageOnlyError",e.EntitlementsMustBelongToSamePackage="EntitlementsMustBelongToSamePackage",e.EntityIdDifferentFromRefIdError="EntityIdDifferentFromRefIdError",e.EnvironmentMissing="EnvironmentMissing",e.ExperimentAlreadyRunning="ExperimentAlreadyRunning",e.ExperimentNotFoundError="ExperimentNotFoundError",e.ExperimentStatusError="ExperimentStatusError",e.FailedToCreateCheckoutSessionError="FailedToCreateCheckoutSessionError",e.FailedToImportCustomer="FailedToImportCustomer",e.FeatureNotFound="FeatureNotFound",e.FetchAllCountriesPricesNotAllowed="FetchAllCountriesPricesNotAllowed",e.IdentityForbidden="IdentityForbidden",e.ImportAlreadyInProgress="ImportAlreadyInProgress",e.InitStripePaymentMethodError="InitStripePaymentMethodError",e.IntegrationNotFound="IntegrationNotFound",e.IntegrityViolation="IntegrityViolation",e.InvalidAddressError="InvalidAddressError",e.InvalidArgumentError="InvalidArgumentError",e.InvalidCancellationDate="InvalidCancellationDate",e.InvalidEntitlementResetPeriod="InvalidEntitlementResetPeriod",e.InvalidMemberDelete="InvalidMemberDelete",e.InvalidQuantity="InvalidQuantity",e.InvalidSubscriptionStatus="InvalidSubscriptionStatus",e.InvalidUpdatePriceUnitAmountError="InvalidUpdatePriceUnitAmountError",e.InvalidUsageValueForIncrementalFeatureError="InvalidUsageValueForIncrementalFeatureError",e.MemberInvitationError="MemberInvitationError",e.MemberNotFound="MemberNotFound",e.MeteringNotAvailableForFeatureType="MeteringNotAvailableForFeatureType",e.MissingEntityIdError="MissingEntityIdError",e.NoFeatureEntitlementInSubscription="NoFeatureEntitlementInSubscription",e.NoProductsAvailable="NoProductsAvailable",e.OperationNotAllowedDuringInProgressExperiment="OperationNotAllowedDuringInProgressExperiment",e.PackageAlreadyPublished="PackageAlreadyPublished",e.PackagePricingTypeNotSet="PackagePricingTypeNotSet",e.PlanAlreadyExtended="PlanAlreadyExtended",e.PlanCannotBePublishWhenBasePlanIsDraft="PlanCannotBePublishWhenBasePlanIsDraft",e.PlanIsUsedAsDefaultStartPlan="PlanIsUsedAsDefaultStartPlan",e.PlanIsUsedAsDowngradePlan="PlanIsUsedAsDowngradePlan",e.PlanNotFound="PlanNotFound",e.PlanWithChildCantBeDeleted="PlanWithChildCantBeDeleted",e.PlansCircularDependencyError="PlansCircularDependencyError",e.PriceNotFound="PriceNotFound",e.PromotionCodeCustomerNotFirstPurchase="PromotionCodeCustomerNotFirstPurchase",e.PromotionCodeMaxRedemptionsReached="PromotionCodeMaxRedemptionsReached",e.PromotionCodeMinimumAmountNotReached="PromotionCodeMinimumAmountNotReached",e.PromotionCodeNotActive="PromotionCodeNotActive",e.PromotionCodeNotForCustomer="PromotionCodeNotForCustomer",e.PromotionCodeNotFound="PromotionCodeNotFound",e.RateLimitExceeded="RateLimitExceeded",e.ResyncAlreadyInProgress="ResyncAlreadyInProgress",e.SelectedBillingModelDoesntMatchImportedItemError="SelectedBillingModelDoesntMatchImportedItemError",e.StripeCustomerIsDeleted="StripeCustomerIsDeleted",e.SubscriptionAlreadyCanceledOrExpired="SubscriptionAlreadyCanceledOrExpired",e.SubscriptionMustHaveSinglePlanError="SubscriptionMustHaveSinglePlanError",e.SubscriptionNotFound="SubscriptionNotFound",e.TrialMinDateError="TrialMinDateError",e.TrialMustBeCancelledImmediately="TrialMustBeCancelledImmediately",e.UnPublishedPackage="UnPublishedPackage",e.Unauthenticated="Unauthenticated",e.UncompatibleSubscriptionAddon="UncompatibleSubscriptionAddon",e.UnexpectedError="UnexpectedError",e.UnsupportedFeatureType="UnsupportedFeatureType",e.UnsupportedSubscriptionScheduleType="UnsupportedSubscriptionScheduleType",e.UnsupportedVendorIdentifier="UnsupportedVendorIdentifier"}(O||(O={})),function(e){e.AddonCreated="ADDON_CREATED",e.AddonDeleted="ADDON_DELETED",e.AddonUpdated="ADDON_UPDATED",e.CouponArchived="COUPON_ARCHIVED",e.CouponCreated="COUPON_CREATED",e.CouponUpdated="COUPON_UPDATED",e.CreateSubscriptionFailed="CREATE_SUBSCRIPTION_FAILED",e.CustomerCreated="CUSTOMER_CREATED",e.CustomerDeleted="CUSTOMER_DELETED",e.CustomerPaymentFailed="CUSTOMER_PAYMENT_FAILED",e.CustomerUpdated="CUSTOMER_UPDATED",e.EdgeApiDataResync="EDGE_API_DATA_RESYNC",e.EntitlementsUpdated="ENTITLEMENTS_UPDATED",e.EntitlementDenied="ENTITLEMENT_DENIED",e.EntitlementGranted="ENTITLEMENT_GRANTED",e.EntitlementRequested="ENTITLEMENT_REQUESTED",e.EnvironmentDeleted="ENVIRONMENT_DELETED",e.FeatureCreated="FEATURE_CREATED",e.FeatureDeleted="FEATURE_DELETED",e.FeatureUpdated="FEATURE_UPDATED",e.ImportIntegrationCatalogTriggered="IMPORT_INTEGRATION_CATALOG_TRIGGERED",e.ImportIntegrationCustomersTriggered="IMPORT_INTEGRATION_CUSTOMERS_TRIGGERED",e.MeasurementReported="MEASUREMENT_REPORTED",e.PackagePublished="PACKAGE_PUBLISHED",e.PlanCreated="PLAN_CREATED",e.PlanDeleted="PLAN_DELETED",e.PlanUpdated="PLAN_UPDATED",e.ProductCreated="PRODUCT_CREATED",e.ProductDeleted="PRODUCT_DELETED",e.ProductUpdated="PRODUCT_UPDATED",e.PromotionalEntitlementExpired="PROMOTIONAL_ENTITLEMENT_EXPIRED",e.PromotionalEntitlementGranted="PROMOTIONAL_ENTITLEMENT_GRANTED",e.PromotionalEntitlementRevoked="PROMOTIONAL_ENTITLEMENT_REVOKED",e.PromotionalEntitlementUpdated="PROMOTIONAL_ENTITLEMENT_UPDATED",e.ResyncIntegrationTriggered="RESYNC_INTEGRATION_TRIGGERED",e.SubscriptionCanceled="SUBSCRIPTION_CANCELED",e.SubscriptionCreated="SUBSCRIPTION_CREATED",e.SubscriptionExpired="SUBSCRIPTION_EXPIRED",e.SubscriptionTrialConverted="SUBSCRIPTION_TRIAL_CONVERTED",e.SubscriptionTrialEndsSoon="SUBSCRIPTION_TRIAL_ENDS_SOON",e.SubscriptionTrialExpired="SUBSCRIPTION_TRIAL_EXPIRED",e.SubscriptionTrialStarted="SUBSCRIPTION_TRIAL_STARTED",e.SubscriptionUpdated="SUBSCRIPTION_UPDATED",e.SubscriptionUsageUpdated="SUBSCRIPTION_USAGE_UPDATED",e.SyncFailed="SYNC_FAILED",e.WidgetConfigurationUpdated="WIDGET_CONFIGURATION_UPDATED"}(R||(R={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Name="name",e.ProductId="productId",e.RefId="refId",e.Status="status"}(N||(N={})),function(e){e.Completed="COMPLETED",e.Draft="DRAFT",e.InProgress="IN_PROGRESS"}(x||(x={})),function(e){e.CreatedAt="createdAt",e.Description="description",e.DisplayName="displayName",e.EnvironmentId="environmentId",e.FeatureStatus="featureStatus",e.FeatureType="featureType",e.Id="id",e.MeterType="meterType",e.RefId="refId",e.UpdatedAt="updatedAt"}(k||(k={})),function(e){e.Active="ACTIVE",e.New="NEW",e.Suspended="SUSPENDED"}(F||(F={})),function(e){e.Boolean="BOOLEAN",e.Number="NUMBER"}(U||(U={})),function(e){e.Bold="BOLD",e.Normal="NORMAL"}(M||(M={})),function(e){e.CreatedAt="createdAt",e.Endpoint="endpoint",e.EnvironmentId="environmentId",e.Id="id",e.Status="status"}(L||(L={})),function(e){e.Active="ACTIVE",e.Inactive="INACTIVE"}(j||(j={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Status="status",e.TaskType="taskType"}(B||(B={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.VendorIdentifier="vendorIdentifier"}(q||(q={})),function(e){e.CreatedAt="createdAt",e.Id="id"}(V||(V={})),function(e){e.Invited="INVITED",e.Registered="REGISTERED"}(G||(G={})),function(e){e.Fluctuating="Fluctuating",e.Incremental="Incremental",e.None="None"}($||($={})),function(e){e.StartOfTheMonth="StartOfTheMonth",e.SubscriptionStart="SubscriptionStart"}(z||(z={})),function(e){e.BillingId="billingId",e.CreatedAt="createdAt",e.Description="description",e.DisplayName="displayName",e.EnvironmentId="environmentId",e.Id="id",e.IsLatest="isLatest",e.PricingType="pricingType",e.ProductId="productId",e.RefId="refId",e.Status="status",e.UpdatedAt="updatedAt",e.VersionNumber="versionNumber"}(Q||(Q={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.PackageId="packageId",e.UpdatedAt="updatedAt"}(W||(W={})),function(e){e.Archived="ARCHIVED",e.Draft="DRAFT",e.Published="PUBLISHED"}(K||(K={})),function(e){e.Bank="BANK",e.Card="CARD"}(Y||(Y={})),function(e){e.BillingId="billingId",e.CreatedAt="createdAt",e.Description="description",e.DisplayName="displayName",e.EnvironmentId="environmentId",e.Id="id",e.IsLatest="isLatest",e.PricingType="pricingType",e.ProductId="productId",e.RefId="refId",e.Status="status",e.UpdatedAt="updatedAt",e.VersionNumber="versionNumber"}(H||(H={})),function(e){e.Custom="CUSTOM",e.Free="FREE",e.Paid="PAID"}(J||(J={})),function(e){e.CreatedAt="createdAt",e.Description="description",e.DisplayName="displayName",e.EnvironmentId="environmentId",e.Id="id",e.IsDefaultProduct="isDefaultProduct",e.RefId="refId",e.UpdatedAt="updatedAt"}(X||(X={})),function(e){e.Custom="CUSTOM",e.Lifetime="LIFETIME",e.OneMonth="ONE_MONTH",e.OneWeek="ONE_WEEK",e.OneYear="ONE_YEAR",e.SixMonth="SIX_MONTH"}(Z||(Z={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Status="status",e.UpdatedAt="updatedAt"}(ee||(ee={})),function(e){e.Active="Active",e.Expired="Expired",e.Paused="Paused"}(te||(te={})),function(e){e.CreateProrations="CREATE_PRORATIONS",e.InvoiceImmediately="INVOICE_IMMEDIATELY"}(ne||(ne={})),function(e){e.PaymentRequired="PAYMENT_REQUIRED",e.Success="SUCCESS"}(re||(re={})),function(e){e.AllCustomers="ALL_CUSTOMERS",e.NewCustomers="NEW_CUSTOMERS"}(ie||(ie={})),function(e){e.Asc="ASC",e.Desc="DESC"}(oe||(oe={})),function(e){e.NullsFirst="NULLS_FIRST",e.NullsLast="NULLS_LAST"}(ae||(ae={})),function(e){e.JsClientSdk="JS_CLIENT_SDK",e.NodeServerSdk="NODE_SERVER_SDK"}(se||(se={})),function(e){e.CreatedAt="createdAt",e.Id="id",e.Quantity="quantity",e.UpdatedAt="updatedAt"}(ue||(ue={})),function(e){e.CancelledByBilling="CancelledByBilling",e.DetachBilling="DetachBilling",e.Expired="Expired",e.Immediate="Immediate",e.PendingPaymentExpired="PendingPaymentExpired",e.ScheduledCancellation="ScheduledCancellation",e.TrialConverted="TrialConverted",e.TrialEnded="TrialEnded",e.UpgradeOrDowngrade="UpgradeOrDowngrade"}(ce||(ce={})),function(e){e.EndOfBillingPeriod="END_OF_BILLING_PERIOD",e.Immediate="IMMEDIATE",e.SpecificDate="SPECIFIC_DATE"}(le||(le={})),function(e){e.PredefinedFreePlan="PREDEFINED_FREE_PLAN",e.PredefinedTrialPlan="PREDEFINED_TRIAL_PLAN",e.RequestedPlan="REQUESTED_PLAN",e.SkippedSubscriptionCreation="SKIPPED_SUBSCRIPTION_CREATION"}(fe||(fe={})),function(e){e.CancelSubscription="CANCEL_SUBSCRIPTION",e.DowngradeToFree="DOWNGRADE_TO_FREE"}(pe||(pe={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.SubscriptionId="subscriptionId",e.UpdatedAt="updatedAt"}(de||(de={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Status="status",e.TaskType="taskType"}(he||(he={})),function(e){e.CreatedAt="createdAt",e.Id="id",e.UpdatedAt="updatedAt",e.UsageLimit="usageLimit"}(ve||(ve={})),function(e){e.Canceled="Canceled",e.Done="Done",e.Failed="Failed",e.Scheduled="Scheduled"}(ye||(ye={})),function(e){e.BillingPeriod="BillingPeriod",e.Downgrade="Downgrade",e.UnitAmount="UnitAmount"}(me||(me={})),function(e){e.FreePlan="FREE_PLAN",e.PlanSelection="PLAN_SELECTION",e.TrialPeriod="TRIAL_PERIOD"}(ge||(ge={})),function(e){e.Active="ACTIVE",e.Canceled="CANCELED",e.Expired="EXPIRED",e.InTrial="IN_TRIAL",e.NotStarted="NOT_STARTED",e.PaymentPending="PAYMENT_PENDING"}(_e||(_e={})),function(e){e.Error="ERROR",e.NoSyncRequired="NO_SYNC_REQUIRED",e.Pending="PENDING",e.Success="SUCCESS"}(be||(be={})),function(e){e.Completed="COMPLETED",e.Failed="FAILED",e.InProgress="IN_PROGRESS",e.PartiallyFailed="PARTIALLY_FAILED",e.Pending="PENDING"}(Ee||(Ee={})),function(e){e.ImportIntegrationCatalog="IMPORT_INTEGRATION_CATALOG",e.ImportIntegrationCustomers="IMPORT_INTEGRATION_CUSTOMERS",e.ResyncIntegration="RESYNC_INTEGRATION",e.SubscriptionMigration="SUBSCRIPTION_MIGRATION"}(we||(we={})),function(e){e.Day="DAY",e.Month="MONTH"}(Se||(Se={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id"}(Ie||(Ie={})),function(e){e.Hubspot="HUBSPOT",e.Stripe="STRIPE",e.Zuora="ZUORA"}(Te||(Te={})),function(e){e.EveryFriday="EveryFriday",e.EveryMonday="EveryMonday",e.EverySaturday="EverySaturday",e.EverySunday="EverySunday",e.EveryThursday="EveryThursday",e.EveryTuesday="EveryTuesday",e.EveryWednesday="EveryWednesday",e.SubscriptionStart="SubscriptionStart"}(Pe||(Pe={})),function(e){e.CustomerPortal="CUSTOMER_PORTAL",e.Paywall="PAYWALL"}(Ce||(Ce={})),function(e){e.Control="CONTROL",e.Variant="VARIANT"}(Ae||(Ae={})),function(e){e.InvalidFeatureType="InvalidFeatureType",e.CustomerNotFound="CustomerNotFound",e.FeatureNotFound="FeatureNotFound",e.NoActiveSubscriptions="NoActiveSubscriptions",e.CustomerNotEntitledForFeature="CustomerNotEntitledForFeature",e.RequestedUsageExceedsLimit="RequestedUsageExceedsLimit",e.Unknown="Unknown"}(De||(De={})),function(e){e.Boolean="Boolean",e.Numeric="Numeric"}(Oe||(Oe={})),function(e){e.Fluctuating="Fluctuating",e.Incremental="Incremental",e.None="None"}(Re||(Re={})),function(e){e.Daily="Daily",e.Hourly="Hourly",e.Monthly="Monthly",e.Weekly="Weekly"}(Ne||(Ne={}));var ke,Fe,Ue={isFallback:!0,hasAccess:!1,accessDeniedReason:De.Unknown},Me={isFallback:!0,hasAccess:!1,isUnlimited:!1,accessDeniedReason:De.Unknown},Le={isFallback:!0,hasAccess:!1,isUnlimited:!1,currentUsage:0,requestedUsage:1,accessDeniedReason:De.Unknown},je=function(){function e(e){Object.assign(this,e)}return e.prototype.getActiveSubscriptions=function(){return this.subscriptions.filter((function(e){return e.status===_e.Active}))},e.prototype.getActiveTrials=function(){return this.subscriptions.filter((function(e){return e.status===_e.InTrial}))},e.prototype.getActivePromotionalEntitlements=function(){return this.promotionalEntitlements.filter((function(e){return e.status===te.Active}))},e}(),Be=n(2909),qe=(0,Be.gql)(Ge||(ke=["\n query SdkConfiguration {\n sdkConfiguration {\n sentryDsn\n isWidgetWatermarkEnabled\n }\n }\n"],Fe=["\n query SdkConfiguration {\n sdkConfiguration {\n sentryDsn\n isWidgetWatermarkEnabled\n }\n }\n"],Object.defineProperty?Object.defineProperty(ke,"raw",{value:Fe}):ke.raw=Fe,Ge=ke));const Ve=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:qe})},e}();var Ge,$e=n(890),ze=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},Qe=function(){return Qe=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},Qe.apply(this,arguments)},We=(0,Be.gql)(Xe||(Xe=ze(["\n fragment TypographyConfigurationFragment on TypographyConfiguration {\n fontFamily\n h1 {\n ...FontVariantFragment\n }\n h2 {\n ...FontVariantFragment\n }\n h3 {\n ...FontVariantFragment\n }\n body {\n ...FontVariantFragment\n }\n }\n fragment FontVariantFragment on FontVariant {\n fontSize\n fontWeight\n }\n"],["\n fragment TypographyConfigurationFragment on TypographyConfiguration {\n fontFamily\n h1 {\n ...FontVariantFragment\n }\n h2 {\n ...FontVariantFragment\n }\n h3 {\n ...FontVariantFragment\n }\n body {\n ...FontVariantFragment\n }\n }\n fragment FontVariantFragment on FontVariant {\n fontSize\n fontWeight\n }\n"]))),Ke=(0,Be.gql)(Ze||(Ze=ze(["\n fragment LayoutConfigurationFragment on PaywallLayoutConfiguration {\n alignment\n planWidth\n planMargin\n planPadding\n }\n"],["\n fragment LayoutConfigurationFragment on PaywallLayoutConfiguration {\n alignment\n planWidth\n planMargin\n planPadding\n }\n"]))),Ye=(0,Be.gql)(et||(et=ze(["\n fragment PaywallConfigurationFragment on PaywallConfiguration {\n palette {\n primary\n textColor\n backgroundColor\n borderColor\n currentPlanBackground\n }\n typography {\n ...TypographyConfigurationFragment\n }\n layout {\n ...LayoutConfigurationFragment\n }\n }\n ","\n ","\n"],["\n fragment PaywallConfigurationFragment on PaywallConfiguration {\n palette {\n primary\n textColor\n backgroundColor\n borderColor\n currentPlanBackground\n }\n typography {\n ...TypographyConfigurationFragment\n }\n layout {\n ...LayoutConfigurationFragment\n }\n }\n ","\n ","\n"])),We,Ke),He=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.context,i=e.billingCountryCode;return!n&&this.edgeApiClient?this.edgeApiClient.getPaywall(t,i):this.client.query({query:$e.RV,fetchPolicy:"no-cache",variables:{input:Qe(Qe(Qe(Qe({},t?{productId:t}:{}),n?{customerId:n}:{}),r?{context:r}:{}),i?{billingCountryCode:i}:{})}})},e}();const Je=He;var Xe,Ze,et,tt=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},nt=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())}))},rt=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])}}},it=(0,Be.gql)(ut||(ut=tt(["\n fragment ResetPeriodConfigurationFragment on ResetPeriodConfiguration {\n __typename\n ... on MonthlyResetPeriodConfig {\n ...MonthlyResetPeriodConfigFragment\n }\n ... on WeeklyResetPeriodConfig {\n ...WeeklyResetPeriodConfigFragment\n }\n }\n\n fragment MonthlyResetPeriodConfigFragment on MonthlyResetPeriodConfig {\n monthlyAccordingTo\n }\n fragment WeeklyResetPeriodConfigFragment on WeeklyResetPeriodConfig {\n weeklyAccordingTo\n }\n"],["\n fragment ResetPeriodConfigurationFragment on ResetPeriodConfiguration {\n __typename\n ... on MonthlyResetPeriodConfig {\n ...MonthlyResetPeriodConfigFragment\n }\n ... on WeeklyResetPeriodConfig {\n ...WeeklyResetPeriodConfigFragment\n }\n }\n\n fragment MonthlyResetPeriodConfigFragment on MonthlyResetPeriodConfig {\n monthlyAccordingTo\n }\n fragment WeeklyResetPeriodConfigFragment on WeeklyResetPeriodConfig {\n weeklyAccordingTo\n }\n"]))),ot=(0,Be.gql)(ct||(ct=tt(["\n fragment FeatureFragment on EntitlementFeature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n description\n displayName\n refId\n }\n"],["\n fragment FeatureFragment on EntitlementFeature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n description\n displayName\n refId\n }\n"]))),at=function(){function e(e,t){this.client=e,this.edgeApiClient=t}return e.prototype.getEntitlements=function(e,t){return void 0===t&&(t=!1),nt(this,void 0,void 0,(function(){return rt(this,(function(n){return this.edgeApiClient&&!t?[2,this.edgeApiClient.getEntitlements(e)]:[2,this.client.query({query:$e.ro,variables:{query:{customerId:e}},fetchPolicy:"no-cache"})]}))}))},e.prototype.pollEntitlements=function(e,t){return this.edgeApiClient?this.edgeApiClient.watchEntitlements(e,t):this.client.watchQuery({query:$e.ro,variables:{query:{customerId:e}},fetchPolicy:"no-cache",pollInterval:t,errorPolicy:"none"})},e.prototype.reportEntitlementRequested=function(e,t,n,r){return nt(this,void 0,void 0,(function(){return rt(this,(function(i){switch(i.label){case 0:return[4,this.client.mutate({mutation:(0,Be.gql)(lt||(lt=tt(["\n mutation reportEntitlementCheckRequested($entitlementCheckRequested: EntitlementCheckRequested!) {\n reportEntitlementCheckRequested(entitlementCheckRequested: $entitlementCheckRequested)\n }\n "],["\n mutation reportEntitlementCheckRequested($entitlementCheckRequested: EntitlementCheckRequested!) {\n reportEntitlementCheckRequested(entitlementCheckRequested: $entitlementCheckRequested)\n }\n "]))),variables:{entitlementCheckRequested:{entitlementCheckResult:n,customerId:t,featureId:e,requestedUsage:r}},fetchPolicy:"no-cache"})];case 1:return i.sent(),[2]}}))}))},e}();const st=at;var ut,ct,lt,ft=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},pt=(0,Be.gql)(Et||(Et=ft(["\n fragment CustomerPortalEntitlement on Entitlement {\n isGranted\n usageLimit\n currentUsage\n hasUnlimitedUsage\n nextResetDate\n resetPeriod\n resetPeriodConfiguration {\n ...ResetPeriodConfigurationFragment\n }\n feature {\n ...FeatureFragment\n }\n }\n ","\n ","\n"],["\n fragment CustomerPortalEntitlement on Entitlement {\n isGranted\n usageLimit\n currentUsage\n hasUnlimitedUsage\n nextResetDate\n resetPeriod\n resetPeriodConfiguration {\n ...ResetPeriodConfigurationFragment\n }\n feature {\n ...FeatureFragment\n }\n }\n ","\n ","\n"])),ot,it),dt=(0,Be.gql)(wt||(wt=ft(["\n fragment CustomerPortalPromotionalEntitlement on CustomerPortalPromotionalEntitlement {\n displayName\n hasUnlimitedUsage\n usageLimit\n period\n startDate\n endDate\n }\n"],["\n fragment CustomerPortalPromotionalEntitlement on CustomerPortalPromotionalEntitlement {\n displayName\n hasUnlimitedUsage\n usageLimit\n period\n startDate\n endDate\n }\n"]))),ht=(0,Be.gql)(St||(St=ft(["\n fragment CustomerPortalSubscriptionAddon on CustomerPortalAddon {\n addonId\n description\n displayName\n quantity\n }\n"],["\n fragment CustomerPortalSubscriptionAddon on CustomerPortalAddon {\n addonId\n description\n displayName\n quantity\n }\n"]))),vt=(0,Be.gql)(It||(It=ft(["\n fragment CustomerPortalBillingInformation on CustomerPortalBillingInformation {\n email\n name\n defaultPaymentMethodLast4Digits\n defaultPaymentMethodId\n defaultPaymentMethodLast4Digits\n defaultPaymentExpirationMonth\n defaultPaymentExpirationYear\n }\n"],["\n fragment CustomerPortalBillingInformation on CustomerPortalBillingInformation {\n email\n name\n defaultPaymentMethodLast4Digits\n defaultPaymentMethodId\n defaultPaymentMethodLast4Digits\n defaultPaymentExpirationMonth\n defaultPaymentExpirationYear\n }\n"]))),yt=(0,Be.gql)(Tt||(Tt=ft(["\n fragment CustomerPortalSubscriptionScheduledUpdateData on SubscriptionScheduledUpdate {\n subscriptionScheduleType\n scheduleStatus\n scheduledExecutionTime\n targetPackage {\n id\n refId\n displayName\n }\n scheduleVariables {\n ... on DowngradeChangeVariables {\n addonRefIds\n billingPeriod\n downgradePlanRefId\n }\n ... on BillingPeriodChangeVariables {\n billingPeriod\n }\n ... on UnitAmountChangeVariables {\n newUnitAmount\n }\n }\n }\n"],["\n fragment CustomerPortalSubscriptionScheduledUpdateData on SubscriptionScheduledUpdate {\n subscriptionScheduleType\n scheduleStatus\n scheduledExecutionTime\n targetPackage {\n id\n refId\n displayName\n }\n scheduleVariables {\n ... on DowngradeChangeVariables {\n addonRefIds\n billingPeriod\n downgradePlanRefId\n }\n ... on BillingPeriodChangeVariables {\n billingPeriod\n }\n ... on UnitAmountChangeVariables {\n newUnitAmount\n }\n }\n }\n"]))),mt=(0,Be.gql)(Pt||(Pt=ft(["\n fragment CustomerPortalSubscriptionFragment on CustomerPortalSubscription {\n subscriptionId\n planName\n pricing {\n unitQuantity\n billingPeriod\n billingModel\n pricingType\n usageBasedEstimatedBill\n price {\n amount\n }\n feature {\n featureUnits\n featureUnitsPlural\n displayName\n }\n }\n status\n trialRemainingDays\n billingPeriodRange {\n start\n end\n }\n totalPrice {\n subTotal {\n amount\n }\n total {\n amount\n }\n addonsTotal {\n amount\n }\n }\n addons {\n ...CustomerPortalSubscriptionAddon\n }\n scheduledUpdates {\n ...CustomerPortalSubscriptionScheduledUpdateData\n }\n }\n ","\n ","\n"],["\n fragment CustomerPortalSubscriptionFragment on CustomerPortalSubscription {\n subscriptionId\n planName\n pricing {\n unitQuantity\n billingPeriod\n billingModel\n pricingType\n usageBasedEstimatedBill\n price {\n amount\n }\n feature {\n featureUnits\n featureUnitsPlural\n displayName\n }\n }\n status\n trialRemainingDays\n billingPeriodRange {\n start\n end\n }\n totalPrice {\n subTotal {\n amount\n }\n total {\n amount\n }\n addonsTotal {\n amount\n }\n }\n addons {\n ...CustomerPortalSubscriptionAddon\n }\n scheduledUpdates {\n ...CustomerPortalSubscriptionScheduledUpdateData\n }\n }\n ","\n ","\n"])),ht,yt),gt=(0,Be.gql)(Ct||(Ct=ft(["\n fragment CustomerPortalConfigurationFragment on CustomerPortalConfiguration {\n palette {\n primary\n textColor\n backgroundColor\n borderColor\n currentPlanBackground\n iconsColor\n paywallBackgroundColor\n }\n typography {\n ...TypographyConfigurationFragment\n }\n }\n ","\n"],["\n fragment CustomerPortalConfigurationFragment on CustomerPortalConfiguration {\n palette {\n primary\n textColor\n backgroundColor\n borderColor\n currentPlanBackground\n iconsColor\n paywallBackgroundColor\n }\n typography {\n ...TypographyConfigurationFragment\n }\n }\n ","\n"])),We),_t=(0,Be.gql)(At||(At=ft(["\n fragment CustomerPortalFragment on CustomerPortal {\n subscriptions {\n ...CustomerPortalSubscriptionFragment\n }\n entitlements {\n ...CustomerPortalEntitlement\n }\n promotionalEntitlements {\n ...CustomerPortalPromotionalEntitlement\n }\n billingInformation {\n ...CustomerPortalBillingInformation\n }\n showWatermark\n billingPortalUrl\n canUpgradeSubscription\n configuration {\n ...CustomerPortalConfigurationFragment\n }\n }\n ","\n ","\n ","\n ","\n ","\n"],["\n fragment CustomerPortalFragment on CustomerPortal {\n subscriptions {\n ...CustomerPortalSubscriptionFragment\n }\n entitlements {\n ...CustomerPortalEntitlement\n }\n promotionalEntitlements {\n ...CustomerPortalPromotionalEntitlement\n }\n billingInformation {\n ...CustomerPortalBillingInformation\n }\n showWatermark\n billingPortalUrl\n canUpgradeSubscription\n configuration {\n ...CustomerPortalConfigurationFragment\n }\n }\n ","\n ","\n ","\n ","\n ","\n"])),gt,mt,pt,dt,vt);const bt=function(){function e(e){this.client=e}return e.prototype.getCustomer=function(e){return this.client.query({query:$e.Ze,variables:{input:{customerId:e}},fetchPolicy:"no-cache"})},e.prototype.getCustomerPortal=function(e){return this.client.query({query:(0,Be.gql)(Dt||(Dt=ft(["\n query GetCustomerPortalByRefId($input: CustomerPortalInput!) {\n customerPortal(input: $input) {\n ...CustomerPortalFragment\n }\n }\n ","\n "],["\n query GetCustomerPortalByRefId($input: CustomerPortalInput!) {\n customerPortal(input: $input) {\n ...CustomerPortalFragment\n }\n }\n ","\n "])),_t),variables:{input:{customerId:e}},fetchPolicy:"no-cache"})},e}();var Et,wt,St,It,Tt,Pt,Ct,At,Dt,Ot=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},Rt=(0,Be.gql)(kt||(kt=Ot(["\n fragment CouponFragment on Coupon {\n id\n discountValue\n type\n additionalMetaData\n refId\n name\n description\n createdAt\n updatedAt\n billingId\n billingLinkUrl\n type\n status\n syncStates {\n vendorIdentifier\n status\n }\n customers {\n id\n }\n }\n"],["\n fragment CouponFragment on Coupon {\n id\n discountValue\n type\n additionalMetaData\n refId\n name\n description\n createdAt\n updatedAt\n billingId\n billingLinkUrl\n type\n status\n syncStates {\n vendorIdentifier\n status\n }\n customers {\n id\n }\n }\n"]))),Nt=(0,Be.gql)(Ft||(Ft=Ot(["\n ","\n query FetchCoupons($filter: CouponFilter, $sorting: [CouponSort!], $paging: CursorPaging) {\n coupons(filter: $filter, sorting: $sorting, paging: $paging) {\n edges {\n node {\n ...CouponFragment\n }\n }\n }\n }\n"],["\n ","\n query FetchCoupons($filter: CouponFilter, $sorting: [CouponSort!], $paging: CursorPaging) {\n coupons(filter: $filter, sorting: $sorting, paging: $paging) {\n edges {\n node {\n ...CouponFragment\n }\n }\n }\n }\n"])),Rt);const xt=function(){function e(e){this.client=e}return e.prototype.getCoupons=function(){return this.client.query({query:Nt,fetchPolicy:"no-cache",variables:{paging:{first:50},filter:{status:{eq:_.Active}}}})},e}();var kt,Ft,Ut=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())}))},Mt=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])}}},Lt=function(){function e(e){this.client=e}return e.prototype.estimateSubscription=function(e){var t;return Ut(this,void 0,void 0,(function(){return Mt(this,(function(n){return[2,this.client.mutate({mutation:$e.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}}})]}))}))},e.prototype.estimateSubscriptionUpdate=function(e){return Ut(this,void 0,void 0,(function(){return Mt(this,(function(t){return[2,this.client.mutate({mutation:$e.wO,variables:{input:{subscriptionId:e.subscriptionId,unitQuantity:e.unitQuantity,addons:e.addons,promotionCode:e.promotionCode}}})]}))}))},e}();const jt=Lt;var Bt=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},qt=function(){return qt=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},qt.apply(this,arguments)},Vt=(0,Be.gql)(Kt||(Kt=Bt(["\n fragment MockPaywallPackageEntitlementFragment on Entitlement {\n usageLimit\n hasUnlimitedUsage\n resetPeriod\n hiddenFromWidgets\n displayNameOverride\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n additionalMetaData\n }\n }\n"],["\n fragment MockPaywallPackageEntitlementFragment on Entitlement {\n usageLimit\n hasUnlimitedUsage\n resetPeriod\n hiddenFromWidgets\n displayNameOverride\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n additionalMetaData\n }\n }\n"]))),Gt=(0,Be.gql)(Yt||(Yt=Bt(["\n fragment MockPaywallAddonFragment on PaywallAddon {\n refId\n displayName\n description\n additionalMetaData\n billingId\n entitlements {\n ...MockPaywallPackageEntitlementFragment\n }\n prices {\n ...MockPaywallPriceFragment\n }\n pricingType\n }\n"],["\n fragment MockPaywallAddonFragment on PaywallAddon {\n refId\n displayName\n description\n additionalMetaData\n billingId\n entitlements {\n ...MockPaywallPackageEntitlementFragment\n }\n prices {\n ...MockPaywallPriceFragment\n }\n pricingType\n }\n"]))),$t=(0,Be.gql)(Ht||(Ht=Bt(["\n fragment MockPaywallPriceFragment on PaywallPrice {\n billingModel\n billingPeriod\n billingId\n minUnitQuantity\n maxUnitQuantity\n billingCountryCode\n price {\n amount\n currency\n }\n feature {\n featureUnits\n featureUnitsPlural\n displayName\n }\n }\n"],["\n fragment MockPaywallPriceFragment on PaywallPrice {\n billingModel\n billingPeriod\n billingId\n minUnitQuantity\n maxUnitQuantity\n billingCountryCode\n price {\n amount\n currency\n }\n feature {\n featureUnits\n featureUnitsPlural\n displayName\n }\n }\n"]))),zt=(0,Be.gql)(Jt||(Jt=Bt(["\n fragment MockPaywallPlanFragment on PaywallPlan {\n refId\n description\n displayName\n billingId\n additionalMetaData\n product {\n refId\n displayName\n description\n additionalMetaData\n }\n basePlan {\n refId\n displayName\n }\n entitlements {\n ...MockPaywallPackageEntitlementFragment\n }\n inheritedEntitlements {\n ...MockPaywallPackageEntitlementFragment\n }\n prices {\n ...MockPaywallPriceFragment\n }\n pricingType\n defaultTrialConfig {\n duration\n units\n }\n compatibleAddons {\n ...MockPaywallAddonFragment\n }\n }\n ","\n ","\n ","\n"],["\n fragment MockPaywallPlanFragment on PaywallPlan {\n refId\n description\n displayName\n billingId\n additionalMetaData\n product {\n refId\n displayName\n description\n additionalMetaData\n }\n basePlan {\n refId\n displayName\n }\n entitlements {\n ...MockPaywallPackageEntitlementFragment\n }\n inheritedEntitlements {\n ...MockPaywallPackageEntitlementFragment\n }\n prices {\n ...MockPaywallPriceFragment\n }\n pricingType\n defaultTrialConfig {\n duration\n units\n }\n compatibleAddons {\n ...MockPaywallAddonFragment\n }\n }\n ","\n ","\n ","\n"])),Vt,$t,Gt),Qt=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:(0,Be.gql)(Xt||(Xt=Bt(["\n query GetMockPaywall($input: GetPaywallInput!) {\n mockPaywall(input: $input) {\n plans {\n ...MockPaywallPlanFragment\n }\n configuration {\n ...PaywallConfigurationFragment\n }\n }\n }\n ","\n ","\n "],["\n query GetMockPaywall($input: GetPaywallInput!) {\n mockPaywall(input: $input) {\n plans {\n ...MockPaywallPlanFragment\n }\n configuration {\n ...PaywallConfigurationFragment\n }\n }\n }\n ","\n ","\n "])),Ye,zt),fetchPolicy:"no-cache",variables:{input:qt(qt(qt({},t?{productId:t}:{}),n?{customerId:n}:{}),r?{context:r}:{})}})},e}();const Wt=Qt;var Kt,Yt,Ht,Jt,Xt;const Zt=function(e,t){this.sdkConfiguration=new Ve(e,t),this.paywall=new Je(e,t),this.mockPaywall=new Wt(e),this.customers=new bt(e),this.coupons=new xt(e),this.subscriptionEstimations=new jt(e)};var en=n(1609),tn=n.n(en),nn=n(2492),rn=n.n(nn),on=se.JsClientSdk,an=function(){var e="https://api.stigg.io";return{baseUri:e,baseEdgeUri:sn(e),entitlementPollingInterval:3e4,useEntitlementPolling:!0,logConfiguration:{logger:console,logLevel:o.ERROR},enableEdge:!0}};function sn(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 un(e){var t=e.customerId;if(!t||tn()(t))throw new Error("You must set customer ID first, use setCustomerId function or pass it via the constructor");return t}var cn=n(5161),ln=n.n(cn),fn=n(7557),pn=n.n(fn),dn=n(9704),hn=n.n(dn),vn=function(){return vn=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},vn.apply(this,arguments)},yn=function(){function e(){this.getResetPeriodData=function(e,t){switch(e){case Ne.Monthly:return{monthlyResetPeriodConfiguration:{accordingTo:t.monthlyAccordingTo||z.SubscriptionStart}};case Ne.Weekly:return{weeklyResetPeriodConfiguration:{accordingTo:t.weeklyAccordingTo||Pe.EveryFriday}};default:return{}}}}return e.prototype.mapBooleanEntitlement=function(e,t){return{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,feature:e.calculatedEntitlement.feature?vn(vn({},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?vn(vn({},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,c=s.nextResetDate,l=s.resetPeriod,f=null;return a&&a.featureType===Oe.Numeric&&a.meterType===$.Incremental&&l&&(f={nextResetDate:c,resetPeriod:l}),{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,isUnlimited:i,usageLimit:o||void 0,currentUsage:u,requestedUsage:n||0,resetSettings:f||void 0,feature:e.calculatedEntitlement.feature?vn(vn({},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===Oe.Numeric&&(a===$.Incremental||a===$.Fluctuating);switch(o){case Oe.Boolean:return this.mapBooleanEntitlement(e,t);case Oe.Numeric:return s?this.mapMeteredEntitlement(e,t,n):this.mapNumericEntitlement(e,t)}},e.prototype.mapFeatureType=function(e){switch(e){case U.Boolean:return Oe.Boolean;case U.Number:return Oe.Numeric}},e.prototype.mapEntitlementResetPeriod=function(e){switch(e){case P.Day:return Ne.Daily;case P.Hour:return Ne.Hourly;case P.Week:return Ne.Weekly;case P.Month:return Ne.Monthly}},e.prototype.mapApiEntitlementResetPeriod=function(e){switch(e){case Ne.Daily:return P.Day;case Ne.Hourly:return P.Hour;case Ne.Weekly:return P.Week;case Ne.Monthly:return P.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;return(null==e?void 0:e.paywall.customer)&&(r=this.mapCustomer(null==e?void 0:e.paywall.customer)),{plans:t,configuration:n,customer:r}},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}},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.mapCustomer=function(e){var t,n,r=this;return new je({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:ln()(e.subscriptions,(function(e){return r.mapSubscription(e)})),promotionalEntitlements:ln()(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:pn()(e.experimentInfo,"__typename")})},e.prototype.mapPaymentDetails=function(e){var t=e.defaultPaymentExpirationYear,n=e.defaultPaymentExpirationMonth,r=e.defaultPaymentMethodLast4Digits;if(hn()([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:ln()(e.entitlements,(function(e){return n.mapPackageEntitlement(e)})),inheritedEntitlements:ln()(e.inheritedEntitlements,(function(e){return n.mapPackageEntitlement(e)})),pricePoints:ln()(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===J.Free||!e.compatibleAddons)return[];var n=e.compatibleAddons;return(e.pricingType===J.Paid?n.filter((function(e){return e.pricingType===J.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===$.Fluctuating||t.meterType===$.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===$.Fluctuating||t.meterType===$.Incremental},hasUnlimitedUsage:e.hasUnlimitedUsage,expiresAt:e.endDate,hasExpirationDate:!!e.endDate,isVisible:e.isVisible}},e.prototype.mapSubscription=function(e){var t,n=this,r=e.totalPrice,i=(e.prices||[])[0];return{id:e.refId,status:e.status,currentBillingPeriodEnd:this.mapDate(e.currentBillingPeriodEnd),plan:this.mapPlan(e.plan),price:i&&r&&i.price?this.mapTotalPrice(i.price,r,i.usageLimit):null,pricingType:e.pricingType,addons:(null===(t=e.addons)||void 0===t?void 0:t.map((function(e){var t=e.quantity,r=e.addon;return{quantity:t,addon:n.mapAddon(r)}})))||[],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:pn()(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:ln()(e.entitlements,(function(e){return t.mapPackageEntitlement(e)})),pricePoints:ln()(e.prices,(function(e){return t.mapPrice(e)})),pricingType:e.pricingType,metadata:e.additionalMetaData}},e.prototype.mapAccessDeniedReason=function(e){switch(e){case De.InvalidFeatureType:return u.Unknown;case De.CustomerNotFound:return u.CustomerNotFound;case De.FeatureNotFound:return u.FeatureNotFound;case De.NoActiveSubscriptions:return u.NoActiveSubscription;case De.CustomerNotEntitledForFeature:return u.NoFeatureEntitlementInSubscription;case De.RequestedUsageExceedsLimit:return u.RequestedUsageExceedingLimit;case De.Unknown:return u.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 vn({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 vn(vn({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 vn({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}(),mn=function(){return mn=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},mn.apply(this,arguments)};function gn(e){if(e)return Object.keys(e).map((function(t){return mn({isFallback:!0,accessDeniedReason:De.Unknown,feature:{id:t}},e[t])}))}var _n=n(655),bn="Invariant Violation",En=Object.setPrototypeOf,wn=void 0===En?function(e,t){return e.__proto__=t,e}:En,Sn=function(e){function t(n){void 0===n&&(n=bn);var r=e.call(this,"number"==typeof n?bn+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=bn,wn(r,t.prototype),r}return(0,_n.ZT)(t,e),t}(Error);function In(e,t){if(!e)throw new Sn(t)}var Tn=["debug","log","warn","error","silent"],Pn=Tn.indexOf("log");function Cn(e){return function(){if(Tn.indexOf(e)>=Pn){var t=console[e]||console.log;return t.apply(console,arguments)}}}function An(e){try{return e()}catch(e){}}!function(e){e.debug=Cn("debug"),e.log=Cn("log"),e.warn=Cn("warn"),e.error=Cn("error")}(In||(In={}));const Dn=An((function(){return globalThis}))||An((function(){return window}))||An((function(){return self}))||An((function(){return n.g}))||An((function(){return Function("return this")()}));var On="__",Rn=[On,On].join("DEV");const Nn=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(Dn,Rn,{value:"production"!==An((function(){return"production"})),enumerable:!1,configurable:!0,writable:!0}),Dn[Rn]}}();function xn(e){try{return e()}catch(e){}}var kn=xn((function(){return globalThis}))||xn((function(){return window}))||xn((function(){return self}))||xn((function(){return n.g}))||xn((function(){return Function("return this")()})),Fn=!1;function Un(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 Mn(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 Ln(e,t,n){return t&&Mn(e.prototype,t),n&&Mn(e,n),e}!kn||xn((function(){return"production"}))||xn((function(){return process}))||(Object.defineProperty(kn,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),Fn=!0),n(4783).H,Fn&&(delete kn.process,Fn=!1),__DEV__?In("boolean"==typeof Nn,Nn):In("boolean"==typeof Nn,38);var jn=function(){return"function"==typeof Symbol},Bn=function(e){return jn()&&Boolean(Symbol[e])},qn=function(e){return Bn(e)?Symbol[e]:"@@"+e};jn()&&!Bn("observable")&&(Symbol.observable=Symbol("observable"));var Vn=qn("iterator"),Gn=qn("observable"),$n=qn("species");function zn(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function Qn(e){var t=e.constructor;return void 0!==t&&null===(t=t[$n])&&(t=void 0),void 0!==t?t:nr}function Wn(e){return e instanceof nr}function Kn(e){Kn.log?Kn.log(e):setTimeout((function(){throw e}))}function Yn(e){Promise.resolve().then((function(){try{e()}catch(e){Kn(e)}}))}function Hn(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=zn(t,"unsubscribe");n&&n.call(t)}}catch(e){Kn(e)}}function Jn(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function Xn(e,t,n){e._state="running";var r=e._observer;try{var i=zn(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(Jn(e),!i)throw n;i.call(r,n);break;case"complete":Jn(e),i&&i.call(r)}}catch(e){Kn(e)}"closed"===e._state?Hn(e):"running"===e._state&&(e._state="ready")}function Zn(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 Yn((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(Xn(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)}))):void Xn(e,t,n);e._queue.push({type:t,value:n})}}var er=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new tr(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&&(Jn(this),Hn(this))},Ln(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),tr=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){Zn(this._subscription,"next",e)},t.error=function(e){Zn(this._subscription,"error",e)},t.complete=function(){Zn(this._subscription,"complete")},Ln(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),nr=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 er(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(Qn(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(Qn(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=Qn(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=Qn(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=Qn(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[Gn]=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=zn(t,Gn);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return Wn(i)&&i.constructor===n?i:new n((function(e){return i.subscribe(e)}))}if(Bn("iterator")&&(r=zn(t,Vn)))return new n((function(e){Yn((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 Un(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)?Un(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){Yn((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){Yn((function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}}))}))},Ln(e,null,[{key:$n,get:function(){return this}}]),e}();function rr(e){return null!==e&&"object"==typeof e}function ir(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw __DEV__?new Sn("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 Sn(43);"FragmentDefinition"===e.kind&&r.push(e)})),void 0===n&&(__DEV__?In(1===r.length,"Found "+r.length+" fragments. `fragmentName` must be provided when there is not exactly 1 fragment."):In(1===r.length,44),n=r[0].name.value),(0,_n.pi)((0,_n.pi)({},e),{definitions:(0,_n.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function or(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function ar(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return __DEV__?In(n,"No fragment named "+e.name.value+"."):In(n,45),n;default:return null}}function sr(e){return{__ref:String(e)}}function ur(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function cr(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 cr(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 cr(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 Sn('The inline argument "'+t.value+'" of kind "'+n.kind+'"is not supported. Use variables instead of inline arguments to overcome this limitation.'):new Sn(54);e[t.value]=null}}jn()&&Object.defineProperty(nr,Symbol("extensions"),{value:{symbol:Gn,hostReportError:Kn},configurable:!0});var lr=["connection","include","skip","client","rest","export"],fr=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+"("+pr(i)+")"}return n.connection.key}var o=e;if(t){var a=pr(t);o+="("+a+")"}return n&&Object.keys(n).forEach((function(e){-1===lr.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@"+e+"("+pr(n[e])+")":o+="@"+e)})),o}),{setStringify:function(e){var t=pr;return pr=e,t}}),pr=function(e){return JSON.stringify(e,dr)};function dr(e,t){return rr(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{})),t}function hr(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return cr(n,r,i,t)})),n}return null}function vr(e){return e.alias?e.alias.value:e.name.value}function yr(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(mr(o)){if("__typename"===o.name.value)return e[vr(o)]}else{var a=yr(e,ar(o,n).selectionSet,n);if("string"==typeof a)return a}}}function mr(e){return"Field"===e.kind}function gr(e){return"InlineFragment"===e.kind}function _r(e){__DEV__?In(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'):In(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 Sn('Schema type definitions not allowed in queries. Found: "'+e.kind+'"'):new Sn(47);return e}));return __DEV__?In(t.length<=1,"Ambiguous GraphQL document: contains "+t.length+" operations"):In(t.length<=1,48),e}function br(e){return _r(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function Er(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}function wr(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function Sr(e){var t=br(e);return __DEV__?In(t&&"query"===t.operation,"Must contain a query definition."):In(t&&"query"===t.operation,49),t}function Ir(e){var t;_r(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 Sn("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new Sn(53)}function Tr(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach((function(e){e.defaultValue&&cr(t,e.variable.name,e.defaultValue)})),t}function Pr(e,t){return t?t(e):nr.of()}function Cr(e){return"function"==typeof e?new Or(e):e}function Ar(e){return e.request.length<=1}var Dr=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return(0,_n.ZT)(t,e),t}(Error),Or=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return nr.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(Cr).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,n,r){var i=Cr(n),o=Cr(r||new e(Pr));return Ar(i)&&Ar(o)?new e((function(e){return t(e)?i.request(e)||nr.of():o.request(e)||nr.of()})):new e((function(e,n){return t(e)?i.request(e,n)||nr.of():o.request(e,n)||nr.of()}))},e.execute=function(e,t){return e.request(function(e,t){var n=(0,_n.pi)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n="function"==typeof e?(0,_n.pi)((0,_n.pi)({},n),e(n)):(0,_n.pi)((0,_n.pi)({},n),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return(0,_n.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?Er(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 Sn("illegal argument: "+i):new Sn(26)}return e}(t))))||nr.of()},e.concat=function(t,n){var r=Cr(t);if(Ar(r))return __DEV__&&In.warn(new Dr("You are calling concat on a terminating link, which will have no effect",r)),r;var i=Cr(n);return Ar(i)?new e((function(e){return r.request(e,(function(e){return i.request(e)||nr.of()}))||nr.of()})):new e((function(e,t){return r.request(e,(function(e){return i.request(e,t)||nr.of()}))||nr.of()}))},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(Pr)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new Sn("request is not implemented"):new Sn(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}(),Rr=n(5821),Nr=n(7826),xr=n(2380),kr=n(7359);const Fr=Object.freeze({});function Ur(e,t,n=xr.h8){const r=new Map;for(const e of Object.values(kr.h))r.set(e,Mr(t,e));let i,o,a,s,u=Array.isArray(e),c=[e],l=-1,f=[];const p=[],d=[];let h=e;do{l++;const e=l===c.length,g=e&&0!==f.length;if(e){if(a=0===d.length?void 0:p[p.length-1],o=s,s=d.pop(),g)if(u){o=o.slice();let e=0;for(const[t,n]of f){const r=t-e;null===n?(o.splice(r,1),e++):o[r]=n}}else{o=Object.defineProperties({},Object.getOwnPropertyDescriptors(o));for(const[e,t]of f)o[e]=t}l=i.index,c=i.keys,f=i.edits,u=i.inArray,i=i.prev}else{if(a=s?u?l:c[l]:void 0,o=s?s[a]:h,null==o)continue;s&&p.push(a)}let _;if(!Array.isArray(o)){var v,y;(0,xr.UG)(o)||(0,Nr.a)(!1,`Invalid AST Node: ${(0,Rr.X)(o)}.`);const n=e?null===(v=r.get(o.kind))||void 0===v?void 0:v.leave:null===(y=r.get(o.kind))||void 0===y?void 0:y.enter;if(_=null==n?void 0:n.call(t,o,a,s,p,d),_===Fr)break;if(!1===_){if(!e){p.pop();continue}}else if(void 0!==_&&(f.push([a,_]),!e)){if(!(0,xr.UG)(_)){p.pop();continue}o=_}}var m;void 0===_&&g&&f.push([a,o]),e?p.pop():(i={inArray:u,index:l,keys:c,edits:f,prev:i},u=Array.isArray(o),c=u?o:null!==(m=n[o.kind])&&void 0!==m?m:[],l=-1,f=[],s&&d.push(s),s=o)}while(void 0!==i);return 0!==f.length&&(h=f[f.length-1][1]),h}function Mr(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}var Lr=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=__DEV__?new Sn("Network request failed. "+t+" is not serializable: "+e.message):new Sn(23);throw r.parseError=e,r}return n},jr=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")},Br=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},qr=Object.prototype.hasOwnProperty;function Vr(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&&Br(t,n,"Response not successful: Received status code "+t.status),Array.isArray(n)||qr.call(n,"data")||qr.call(n,"errors")||Br(t,n,"Server response was missing for query '"+(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName)+"'."),n}))}}var Gr=function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new Sn("\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 Sn(22)},$r=n(7392);const zr=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Qr(e){return Wr[e.charCodeAt(0)]}const Wr=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];function Kr(e){return Ur(e,Yr)}const Yr={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Hr(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Xr("(",Hr(e.variableDefinitions,", "),")"),n=Hr([e.operation,Hr([e.name,t]),Hr(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Xr(" = ",n)+Xr(" ",Hr(r," "))},SelectionSet:{leave:({selections:e})=>Jr(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=Xr("",e,": ")+t;let a=o+Xr("(",Hr(n,", "),")");return a.length>80&&(a=o+Xr("(\n",Zr(Hr(n,"\n")),"\n)")),Hr([a,Hr(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Xr(" ",Hr(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Hr(["...",Xr("on ",e),Hr(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Xr("(",Hr(n,", "),")")} on ${t} ${Xr("",Hr(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,$r.LZ)(e):`"${e.replace(zr,Qr)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Hr(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Hr(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Xr("(",Hr(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Xr("",e,"\n")+Hr(["schema",Hr(t," "),Jr(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Xr("",e,"\n")+Hr(["scalar",t,Hr(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Xr("",e,"\n")+Hr(["type",t,Xr("implements ",Hr(n," & ")),Hr(r," "),Jr(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Xr("",e,"\n")+t+(ei(n)?Xr("(\n",Zr(Hr(n,"\n")),"\n)"):Xr("(",Hr(n,", "),")"))+": "+r+Xr(" ",Hr(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Xr("",e,"\n")+Hr([t+": "+n,Xr("= ",r),Hr(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Xr("",e,"\n")+Hr(["interface",t,Xr("implements ",Hr(n," & ")),Hr(r," "),Jr(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Xr("",e,"\n")+Hr(["union",t,Hr(n," "),Xr("= ",Hr(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Xr("",e,"\n")+Hr(["enum",t,Hr(n," "),Jr(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Xr("",e,"\n")+Hr([t,Hr(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Xr("",e,"\n")+Hr(["input",t,Hr(n," "),Jr(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Xr("",e,"\n")+"directive @"+t+(ei(n)?Xr("(\n",Zr(Hr(n,"\n")),"\n)"):Xr("(",Hr(n,", "),")"))+(r?" repeatable":"")+" on "+Hr(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Hr(["extend schema",Hr(e," "),Jr(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Hr(["extend scalar",e,Hr(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Hr(["extend type",e,Xr("implements ",Hr(t," & ")),Hr(n," "),Jr(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Hr(["extend interface",e,Xr("implements ",Hr(t," & ")),Hr(n," "),Jr(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Hr(["extend union",e,Hr(t," "),Xr("= ",Hr(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Hr(["extend enum",e,Hr(t," "),Jr(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Hr(["extend input",e,Hr(t," "),Jr(n)]," ")}};function Hr(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function Jr(e){return Xr("{\n",Zr(Hr(e,"\n")),"\n}")}function Xr(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function Zr(e){return Xr(" ",e.replace(/\n/g,"\n "))}function ei(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}var ti={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},ni=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=(0,_n.pi)((0,_n.pi)({},t.options),{headers:t.headers,credentials:t.credentials}),o=t.http||{};n.forEach((function(e){i=(0,_n.pi)((0,_n.pi)((0,_n.pi)({},i),e.options),{headers:(0,_n.pi)((0,_n.pi)({},i.headers),ri(e.headers))}),e.credentials&&(i.credentials=e.credentials),o=(0,_n.pi)((0,_n.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=Kr(c)),{options:i,body:l}};function ri(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 ii=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}};function oi(e){return new nr((function(t){t.error(e)}))}var ai=An((function(){return fetch})),si=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,_n._T)(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&Gr(r||ai);var c={http:{includeExtensions:i},options:u.fetchOptions,credentials:u.credentials,headers:u.headers};return new Or((function(e){var t=jr(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,_n.pi)((0,_n.pi)({},a),i.headers),h={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:d},v=ni(e,ti,c,h),y=v.options,m=v.body;if(m.variables&&!s){var g=new Set(Object.keys(m.variables));Ur(e.query,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&g.delete(e.name.value)}}),g.size&&(m.variables=(0,_n.pi)({},m.variables),g.forEach((function(e){delete m.variables[e]})))}if(!y.signal){var _=ii(),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=Lr(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var o=void 0;try{o=Lr(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,I=w.parseError;if(I)return oi(I);t=S}else try{y.body=Lr(m,"Payload")}catch(I){return oi(I)}return new nr((function(n){return(r||An((function(){return fetch}))||ai)(t,y).then((function(t){return e.setContext({response:t}),t})).then(Vr(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,_n.ZT)(t,e),t}(Or),ui=Or.execute;function ci(){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 li=Object.prototype,fi=li.toString,pi=li.hasOwnProperty,di=Function.prototype.toString,hi=new Map;function vi(e,t){try{return yi(e,t)}finally{hi.clear()}}function yi(e,t){if(e===t)return!0;var n,r,i,o=fi.call(e);if(o!==fi.call(t))return!1;switch(o){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(bi(e,t))return!0;var a=mi(e),s=mi(t),u=a.length;if(u!==s.length)return!1;for(var c=0;c<u;++c)if(!pi.call(t,a[c]))return!1;for(c=0;c<u;++c){var l=a[c];if(!yi(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(bi(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&&!yi(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=di.call(e);return g===di.call(t)&&(r=_i,!((i=(n=g).length-r.length)>=0&&n.indexOf(r,i)===i))}return!1}function mi(e){return Object.keys(e).filter(gi,e)}function gi(e){return void 0!==this[e]}var _i="{ [native code] }";function bi(e,t){var n=hi.get(e);if(n){if(n.has(t))return!0}else hi.set(e,n=new Set);return n.add(t),!1}var Ei,wi,Si=function(){return Object.create(null)},Ii=Array.prototype,Ti=Ii.forEach,Pi=Ii.slice,Ci=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=Si),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 Ti.call(e,(function(e){return t=t.getChildTrie(e)})),t.data||(t.data=this.makeData(Pi.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}(),Ai="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),Di="function"==typeof WeakSet,Oi="function"==typeof Symbol&&"function"==typeof Symbol.for,Ri=function(){function e(){this.known=new(Di?WeakSet:Set),this.pool=new Ci(Ai),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return rr(e)&&this.known.has(e)},e.prototype.pass=function(e){if(rr(e)){var t=function(e){return rr(e)?Array.isArray(e)?e.slice(0):(0,_n.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(rr(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}(),Ni=Object.assign((function(e){if(rr(e)){void 0===Ei&&xi();var t=Ei.admit(e),n=wi.get(t);return void 0===n&&wi.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)}),{reset:xi});function xi(){Ei=new Ri,wi=new(Ai?WeakMap:Map)}function ki(e,t,n){return new nr((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 Fi(e){return e.errors&&e.errors.length>0||!1}function Ui(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 Mi={kind:"Field",name:{kind:"Name",value:"__typename"}};function Li(e,t){return e.selectionSet.selections.every((function(e){return"FragmentSpread"===e.kind&&Li(t[e.name.value],t)}))}function ji(e){return Li(br(e)||function(e){__DEV__?In("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'):In("Document"===e.kind,50),__DEV__?In(e.definitions.length<=1,"Fragment must have exactly one definition."):In(e.definitions.length<=1,51);var t=e.definitions[0];return __DEV__?In("FragmentDefinition"===t.kind,"Must be a fragment definition."):In("FragmentDefinition"===t.kind,52),t}(e),or(wr(e)))?null:e}function Bi(e){return function(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function qi(e,t){var n=Object.create(null),r=[],i=Object.create(null),o=[],a=ji(Ur(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(Bi(e)))return t.arguments&&t.arguments.forEach((function(e){"Variable"===e.value.kind&&r.push({name:e.value.name.value})})),t.selectionSet&&$i(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(Bi(e)(t))return null}}}));return a&&Ui(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 ji(Ur(t,{OperationDefinition:{enter:function(t){return(0,_n.pi)((0,_n.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&&Ui(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 ji(Ur(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(o,a)),a}var Vi=Object.assign((function(e){return Ur(_r(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r&&!r.some((function(e){return mr(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=n;if(!(mr(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return(0,_n.pi)((0,_n.pi)({},e),{selections:(0,_n.ev)((0,_n.ev)([],r,!0),[Mi],!1)})}}}}})}),{added:function(e){return e===Mi}}),Gi={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some((function(e){return"key"===e.name.value}))||__DEV__&&In.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 $i(e){var t=[];return e.selections.forEach((function(e){(mr(e)||gr(e))&&e.selectionSet?$i(e.selectionSet).forEach((function(e){return t.push(e)})):"FragmentSpread"===e.kind&&t.push(e)})),t}function zi(e){if("query"===Ir(e).operation)return e;var t=Ur(e,{OperationDefinition:{enter:function(e){return(0,_n.pi)((0,_n.pi)({},e),{operation:"query"})}}});return t}function Qi(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__?In(n&&1===n.length,"Incorrect number of arguments for the @"+r+" directive."):In(n&&1===n.length,40);var i=n[0];__DEV__?In(i.name&&"if"===i.name.value,"Invalid argument for the @"+r+" directive."):In(i.name&&"if"===i.name.value,41);var o=i.value;__DEV__?In(o&&("Variable"===o.kind||"BooleanValue"===o.kind),"Argument for the @"+r+" directive must be a variable or a boolean value."):In(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__?In(void 0!==i,"Invalid variable referenced in @"+n.name.value+" directive."):In(void 0!==i,39)):i=r.value.value,"skip"===n.name.value?!i:i}))}function Wi(e,t){return function(e){var t=[];return Ur(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function Ki(e){return e&&Wi(["client"],e)&&Wi(["export"],e)}var Yi=new Map;function Hi(e){var t=Yi.get(e)||1;return Yi.set(e,t+1),e+":"+t+":"+Math.random().toString(36).slice(2)}function Ji(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function Xi(e){function t(t){Object.defineProperty(e,t,{value:nr})}return Oi&&Symbol.species&&t(Symbol.species),t("@@species"),e}function Zi(e){return e&&"function"==typeof e.then}var eo=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],Ji(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),Ji(n.observers,"error",e))},complete:function(){if(null!==n.sub){var e=n.sources.shift();e?Zi(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(),Ji(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 nr(t)]),Zi(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return(0,_n.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}(nr);function to(e){return Array.isArray(e)&&e.length>0}Xi(eo);var no,ro=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="",(to((r=l).graphQLErrors)||to(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,_n.ZT)(t,e),t}(Error);function io(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"}(no||(no={}));var oo=Object.prototype.toString;function ao(e){return so(e)}function so(e,t){switch(oo.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]=so(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]=so(e[n],t)})),r;default:return e}}var uo=Object.assign,co=Object.hasOwnProperty,lo=!1,fo=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=po)}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=br(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,_n.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||no.ready,r=(0,_n.pi)((0,_n.pi)({},t),{loading:io(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),vi(r.data,{})&&(r.data=void 0),a.complete?(r.networkStatus!==no.loading||"cache-first"!==o&&"cache-only"!==o||(r.networkStatus=no.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||ho(a.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!vi(this.last.result,e)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||vi(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&&co.call(e,"variables")){var i=Sr(this.options.query),o=i.variableDefinitions;o&&o.some((function(e){return"variables"===e.variable.name.value}))||__DEV__&&In.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&&!vi(this.options.variables,e)&&(n.variables=this.options.variables=(0,_n.pi)((0,_n.pi)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,no.refetch)},t.prototype.fetchMore=function(e){var t=this,n=(0,_n.pi)((0,_n.pi)({},e.query?e:(0,_n.pi)((0,_n.pi)((0,_n.pi)({},this.options),e),{variables:(0,_n.pi)((0,_n.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=no.fetchMore,this.observe()),this.queryManager.fetchQuery(r,n,no.fetchMore).then((function(r){var i=r.data,o=e.updateQuery;return o?(__DEV__&&!lo&&(__DEV__&&In.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."),lo=!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__&&In.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 vi(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.initialFetchPolicy,variables:e},no.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__?In(n,"Attempted to start a polling query without a polling interval."):In(n,12),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(io(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"network-only"},no.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,_n.pi)((0,_n.pi)({},this.last),{result:this.queryManager.assumeImmutableResults?e:ao(e),variables:t}),to(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var r=t===no.refetch||t===no.fetchMore||t===no.poll,i=this.options.variables,o=r?ci(this.options,e):uo(this.options,ci(e));r||(this.updatePolling(),e&&e.variables&&!e.fetchPolicy&&!vi(e.variables,i)&&(o.fetchPolicy=this.initialFetchPolicy,void 0===t&&(t=no.setVariables)));var a=o.variables&&(0,_n.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),Ji(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=(0,_n.pi)((0,_n.pi)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:no.error,loading:!1});this.updateLastResult(n,t),Ji(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}(nr);function po(e){__DEV__&&In.error("Unhandled error",e.message,e.stack)}function ho(e){__DEV__&&to(e)&&__DEV__&&In.debug("Missing cache result fields: "+e.map((function(e){return e.path.join(".")})).join(", "),e)}Xi(fo);var vo=Object.prototype.hasOwnProperty;function yo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return mo(e)}function mo(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new _o,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var go=function(e,t,n){return this.merge(e[n],t[n])},_o=function(){function e(e){void 0===e&&(e=go),this.reconciler=e,this.isObject=rr,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 rr(t)&&rr(e)?(Object.keys(t).forEach((function(i){if(vo.call(e,i)){var o=e[i];if(t[i]!==o){var a=n.reconciler.apply(n,(0,_n.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 rr(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,_n.pi)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}(),bo=null,Eo={},wo=1,So="@wry/context:Slot",Io=Array,To=Io[So]||function(){var e=function(){function e(){this.id=["slot",wo++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=bo;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===Eo)break;return e!==bo&&(bo.slots[this.id]=t),!0}return bo&&(bo.slots[this.id]=Eo),!1},e.prototype.getValue=function(){if(this.hasValue())return bo.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=bo;bo={parent:a,slots:o};try{return t.apply(r,n)}finally{bo=a}},e.bind=function(e){var t=bo;return function(){var n=bo;try{return bo=t,e.apply(this,arguments)}finally{bo=n}}},e.noContext=function(e,t,n){if(!bo)return e.apply(n,t);var r=bo;try{return bo=null,e.apply(n,t)}finally{bo=r}},e}();try{Object.defineProperty(Io,So,{value:Io[So]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();function Po(){}To.bind,To.noContext;var Co,Ao=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=Po),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}(),Do=new To,Oo=Object.prototype.hasOwnProperty,Ro=void 0===(Co=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:Co;function No(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var xo=[];function ko(e,t){if(!e)throw new Error(t||"assertion failure")}function Fo(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var Uo=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&&!jo(this))return Mo(this),this.value[0]},e.prototype.recompute=function(e){return ko(!this.recomputing,"already recomputing"),Mo(this),jo(this)?function(e,t){return Qo(e),Do.withValue(e,Lo,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{No(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,jo(e)||qo(e)}(e),Fo(e.value)}(this,e):Fo(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,Bo(this),No(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),Qo(this),Vo(this,(function(t,n){t.setDirty(),Wo(t,e)}))},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=xo.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(Ro(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),xo.push(this.deps),this.deps=null)},e.count=0,e}();function Mo(e){var t=Do.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),jo(e)?Go(t,e):$o(t,e),t}function Lo(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 jo(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function Bo(e){Vo(e,Go)}function qo(e){Vo(e,$o)}function Vo(e,t){var n=e.parents.size;if(n)for(var r=Ro(e.parents),i=0;i<n;++i)t(r[i],e)}function Go(e,t){ko(e.childValues.has(t)),ko(jo(t));var n=!jo(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=xo.pop()||new Set;e.dirtyChildren.add(t),n&&Bo(e)}function $o(e,t){ko(e.childValues.has(t)),ko(!jo(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()),zo(e,t),jo(e)||qo(e)}function zo(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(xo.length<100&&xo.push(n),e.dirtyChildren=null))}function Qo(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){Wo(e,n)})),e.forgetDeps(),ko(null===e.dirtyChildren)}function Wo(e,t){t.parents.delete(e),e.childValues.delete(t),zo(e,t)}var Ko={setDirty:!0,dispose:!0,forget:!0};function Yo(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=Do.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(No(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&Oo.call(Ko,n)?n:"setDirty";Ro(r).forEach((function(e){return e[i]()})),t.delete(e),No(r)}},r}function Ho(){var e=new Ci("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}Ho();var Jo=new Set;function Xo(e,t){void 0===t&&(t=Object.create(null));var n=new Ao(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,i=t.makeCacheKey||Ho(),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 Uo(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),Jo.add(n),Do.hasValue()||(Jo.forEach((function(e){return e.clean()})),Jo.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 Zo=new To,ea=new WeakMap;function ta(e){var t=ea.get(e);return t||ea.set(e,t={vars:new Set,dep:Yo()}),t}function na(e){ta(e).vars.forEach((function(t){return t.forgetCache(e)}))}function ra(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach((function(e){ta(e).dep.dirty(r),ia(e)}));var a=Array.from(n);n.clear(),a.forEach((function(t){return t(e)}))}}else{var s=Zo.getValue();s&&(i(s),ta(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),ta(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function ia(e){e.broadcastWatches&&e.broadcastWatches()}var oa=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=yo(t.resolvers,e)})):this.resolvers=yo(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,_n.mG)(this,void 0,void 0,(function(){return(0,_n.Jh)(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then((function(e){return(0,_n.pi)((0,_n.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 Wi(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return function(e){_r(e);var t=qi([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=Ur(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return mr(e)&&"__typename"===e.name.value})))return null}}})),t}(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,_n.pi)((0,_n.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,_n.mG)(this,void 0,void 0,(function(){return(0,_n.Jh)(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return(0,_n.pi)((0,_n.pi)({},t),e.exportedVariables)}))]:[2,(0,_n.pi)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return Ur(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 Fr}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:zi(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,_n.mG)(this,void 0,void 0,(function(){var a,s,u,c,l,f,p,d,h;return(0,_n.Jh)(this,(function(v){return a=Ir(e),s=wr(e),u=or(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,_n.pi)((0,_n.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,_n.mG)(this,void 0,void 0,(function(){var r,i,o,a,s,u=this;return(0,_n.Jh)(this,(function(c){return r=n.fragmentMap,i=n.context,o=n.variables,a=[t],s=function(e){return(0,_n.mG)(u,void 0,void 0,(function(){var s,u;return(0,_n.Jh)(this,(function(c){return Qi(e,o)?mr(e)?[2,this.resolveField(e,t,n).then((function(t){var n;void 0!==t&&a.push(((n={})[vr(e)]=t,n))}))]:(gr(e)?s=e:(s=r[e.name.value],__DEV__?In(s,"No fragment named "+e.name.value):In(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 mo(a)}))]}))}))},e.prototype.resolveField=function(e,t,n){return(0,_n.mG)(this,void 0,void 0,(function(){var r,i,o,a,s,u,c,l,f,p=this;return(0,_n.Jh)(this,(function(d){return r=n.variables,i=e.name.value,o=vr(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(Zo.withValue(this.cache,f,[t,hr(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}(),aa=new(Ai?WeakMap:Map);function sa(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return aa.set(e,(aa.get(e)+1)%1e15),n.apply(this,arguments)})}function ua(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var ca=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;aa.has(n)||(aa.set(n,0),sa(n,"evict"),sa(n,"modify"),sa(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||no.loading;return this.variables&&this.networkStatus!==no.loading&&!vi(this.variables,e.variables)&&(t=no.setVariables),vi(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(){ua(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&&vi(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||vi(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;ua(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(io(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,_n.pi)((0,_n.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&vi(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===aa.get(this.cache)&&vi(t,n.variables)&&vi(e.data,n.result.data))},e.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=to(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(la(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:aa.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=no.ready},e.prototype.markError=function(e){return this.networkStatus=no.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function la(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!Fi(e);return!r&&n&&e.data&&(r=!0),r}var fa=Object.prototype.hasOwnProperty,pa=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(Ai?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 oa({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 Sn("QueryManager stopped while query was in flight"):new Sn(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,_n.mG)(this,void 0,void 0,(function(){var e,o,s;return(0,_n.Jh)(this,(function(f){switch(f.label){case 0:return __DEV__?In(t,"mutation option is required. You must specify your GraphQL document in the mutation option."):In(t,14),__DEV__?In("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."):In("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 ki(s.getObservableFromLink(t,(0,_n.pi)((0,_n.pi)({},y),{optimisticResponse:r}),n,!1),(function(f){if(Fi(f)&&"none"===p)throw new ro({graphQLErrors:f.errors});o&&(o.loading=!1,o.error=null);var d=(0,_n.pi)({},f);return"function"==typeof a&&(a=a(d)),"ignore"===p&&Fi(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 ro?t:new ro({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&&la(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&&fa.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&&Er(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,_n.pi)((0,_n.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,_n.pi)((0,_n.pi)({},t),{result:{data:r}}),e)}catch(e){__DEV__&&In.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),qi([Gi],_r(t))),o=this.localState.clientQuery(r),a=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:Ki(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:Tr(br(r)),asQuery:(0,_n.pi)((0,_n.pi)({},r),{definitions:r.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,_n.pi)((0,_n.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,_n.pi)((0,_n.pi)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=(0,_n.pi)((0,_n.pi)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new ca(this),n=new fo({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__?In(e.query,"query option is required. You must specify your GraphQL document in the query option."):In(e.query,16),__DEV__?In("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):In("Document"===e.query.kind,17),__DEV__?In(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):In(!e.returnPartialData,18),__DEV__?In(!e.pollInterval,"pollInterval option only supported on watchQuery."):In(!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 Sn("Store reset while query was in flight (not completed in link chain)"):new Sn(20)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=no.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):rr(n=e)&&"Document"===n.kind&&Array.isArray(n.definitions)?r.set(t.transform(e).document,!1):rr(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=Hi("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new fo({queryManager:t,queryInfo:i,options:(0,_n.pi)((0,_n.pi)({},e),{fetchPolicy:"network-only"})});In(o.queryId===r),i.setObservableQuery(o),n.set(r,o)})),__DEV__&&r.size&&r.forEach((function(e,t){e||__DEV__&&In.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&&(la(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),Fi(o))throw new ro({graphQLErrors:o.errors});return o}))};if(this.transform(n).hasClientExports){var c=this.localState.addExportedVariables(n,o,s).then(u);return new nr((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:Er(s)||void 0,context:this.prepareContext((0,_n.pi)((0,_n.pi)({},t),{forceFetch:!r}))};if(t=l.context,r){var f=u.get(s)||new Map;u.set(s,f);var p=Ni(n);if(!(o=f.get(p))){var d=new eo([ui(c,l)]);f.set(p,o=d),d.cleanup((function(){f.delete(p)&&f.size<1&&u.delete(s)}))}}else o=new eo([ui(c,l)])}else o=new eo([nr.of({data:{}})]),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(o=ki(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 ki(this.getObservableFromLink(e.document,n.context,n.variables),(function(i){var o=to(i.errors);if(r>=e.lastRequestId){if(o&&"none"===n.errorPolicy)throw e.markError(new ro({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var a={data:i.data,loading:!1,networkStatus:e.networkStatus||no.ready};return o&&"ignore"!==n.errorPolicy&&(a.errors=i.errors),a}),(function(t){var n=t.hasOwnProperty("graphQLErrors")?t:new ro({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=no.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 eo(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?Hi("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 ca&&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||no.loading);var a=t.result;!__DEV__||c||vi(a,{})||ho(t.missing);var s=function(e){return nr.of((0,_n.pi)({data:e,loading:io(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===no.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&&io(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 ca(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,_n.pi)((0,_n.pi)({},t),{clientAwareness:this.clientAwareness})},e}(),da=!1;function ha(e,t){return ci(e,t,t.variables&&{variables:(0,_n.pi)((0,_n.pi)({},e.variables),t.variables)})}var va=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 si({uri:n,credentials:r,headers:i}):Or.empty()),!o)throw __DEV__?new Sn("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 Sn(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),!da&&__DEV__&&(da=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var S=window.navigator,I=S&&S.userAgent,T=void 0;"string"==typeof I&&(I.indexOf("Chrome/")>-1?T="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":I.indexOf("Firefox/")>-1&&(T="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),T&&__DEV__&&In.log("Download the Apollo DevTools for a better development experience: "+T)}this.version="3.4.17",this.localState=new oa({cache:o,client:this,resolvers:m,fragmentMatcher:_}),this.queryManager=new pa({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=ha(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=(0,_n.pi)((0,_n.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=ha(this.defaultOptions.query,e)),__DEV__?In("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."):In("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,_n.pi)((0,_n.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=ha(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 ui(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__&&In.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}(),ya=function(){function e(){this.getFragmentDoc=Xo(ir)}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,_n.pi)((0,_n.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,_n.pi)((0,_n.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,_n._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,_n._T)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e}(),ma=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,_n.ZT)(t,e),t}(Error);function ga(e){return __DEV__&&(t=e,(n=new Set([t])).forEach((function(e){rr(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){rr(e[t])&&n.add(e[t])}))}))),e;var t,n}var _a=Object.prototype.hasOwnProperty;function ba(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 Ea={dataIdFromObject:ba,addTypename:!0,resultCaching:!0,canonizeResults:!1};function wa(e){var t=e.canonizeResults;return void 0===t?Ea.canonizeResults:t}var Sa=/^[_a-z][_0-9a-z]*/i;function Ia(e){var t=e.match(Sa);return t?t[0]:e}function Ta(e,t,n){return!!rr(t)&&(Array.isArray(t)?t.every((function(t){return Ta(e,t,n)})):e.selections.every((function(e){if(mr(e)&&Qi(e,n)){var r=vr(e);return _a.call(t,r)&&(!e.selectionSet||Ta(e.selectionSet,t[r],n))}return!0})))}function Pa(e){return rr(e)&&!ur(e)&&!Array.isArray(e)}var Ca=Object.create(null),Aa=function(){return Ca},Da=Object.create(null),Oa=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 ga(ur(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return ur(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return sr(e);if(ur(e))return e;var r=n.policies.identify(e)[0];if(r){var i=sr(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return(0,_n.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),_a.call(this.data,e)){var n=this.data[e];if(n&&_a.call(n,t))return n[t]}return"__typename"===t&&_a.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof ka?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),_a.call(this.data,e)?this.data[e]:this instanceof ka?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;ur(e)&&(e=e.__ref),ur(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__?In("string"==typeof n,"store.merge expects a string ID"):In("string"==typeof n,1);var a=new _o(Ua).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=Ia(e);t===e||r.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||r instanceof ka||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:Ca,INVALIDATE:Da,isReference:ur,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||sr(e)}:t,{store:n})}};if(Object.keys(r).forEach((function(u){var c=Ia(u),l=r[u];if(void 0!==l){var f="function"==typeof t?t:t[u]||t[c];if(f){var p=f===Aa?Ca:f(ga(l),(0,_n.pi)((0,_n.pi)({},s),{fieldName:c,storeFieldName:u,storage:n.getStorage(e,u)}));p===Da?n.group.dirty(e,u):(p===Ca&&(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 ka?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]=Aa,r):Aa)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(_a.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof ka&&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){_a.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&&_a.call(e,n)||t.delete(n)})),e){var n=e.__META,r=(0,_n._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 ka?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){_a.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 ka;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},e.prototype.findChildRefIds=function(e){if(!_a.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){ur(e)&&(t[e.__ref]=!0),rr(e)&&Object.keys(e).forEach((function(t){var n=e[t];rr(n)&&r.add(n)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),Ra=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?Yo():null,this.keyMaker=new Ci(Ai)},e.prototype.depend=function(e,t){if(this.d){this.d(Na(e,t));var n=Ia(t);n!==t&&this.d(Na(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(Na(e,t),"__exists"===t?"forget":"setDirty")},e}();function Na(e,t){return t+"#"+e}function xa(e,t){Ma(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 Ra(i))||this;return a.stump=new Fa(a),a.storageTrie=new Ci(Ai),o&&a.replace(o),a}return(0,_n.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}(Oa||(Oa={}));var ka=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,_n.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){vi(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,_n.pi)((0,_n.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return _a.call(this.data,t)?(0,_n.pi)((0,_n.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}(Oa),Fa=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new Ra(t.group.caching,t.group))||this}return(0,_n.ZT)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(ka);function Ua(e,t,n){var r=e[n],i=t[n];return vi(r,i)?r:i}function Ma(e){return!!(e instanceof Oa&&e.group.caching)}function La(e,t){return new ma(e.message,t.path.slice(),t.query,t.variables)}function ja(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Ba=function(){function e(e){var t=this;this.knownResults=new(Ai?WeakMap:Map),this.config=ci(e,{addTypename:!1!==e.addTypename,canonizeResults:wa(e)}),this.canon=e.canon||new Ri,this.executeSelectionSet=Xo((function(e){var n,r=e.context.canonizeResults,i=ja(e);i[3]=!r;var o=(n=t.executeSelectionSet).peek.apply(n,i);return o?r?(0,_n.pi)((0,_n.pi)({},o),{result:t.canon.admit(o.result)}):o:(xa(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:ja,makeCacheKey:function(e,t,n,r){if(Ma(n.store))return n.store.makeCacheKey(e,ur(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=Xo((function(e){return xa(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(Ma(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new Ri},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,_n.pi)((0,_n.pi)({},Tr(Sr(n))),o);var f=sr(i),p=this.executeSelectionSet({selectionSet:Ir(n).selectionSet,objectOrReference:f,enclosingRef:f,context:{store:t,query:n,policies:l,variables:o,varString:Ni(o),canonizeResults:c,fragmentMap:or(wr(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(Ma(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(ur(r)&&!o.policies.rootTypenamesById[r.__ref]&&!o.store.has(r.__ref))return{result:this.canon.empty,missing:[La(__DEV__?new Sn("Dangling reference to missing "+r.__ref+" object"):new Sn(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(Qi(e,a))if(mr(e)){var u=s.readField({fieldName:e.name.value,field:e,variables:o.variables,from:r},o),l=vr(e);o.path.push(l),void 0===u?Vi.added(e)||p().push(La(__DEV__?new Sn("Can't find field '"+e.name.value+"' on "+(ur(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2))):new Sn(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:ur(u)?u:i,context:o}))):o.canonizeResults&&(u=t.canon.pass(u)),void 0!==u&&c.push(((n={})[l]=u,n)),In(o.path.pop()===l)}else{var v=ar(e,o.fragmentMap);v&&s.fragmentMatches(v,f)&&v.selectionSet.selections.forEach(h.add,h)}}));var v=mo(c);return l.result=o.canonizeResults?this.canon.admit(v):ga(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),In(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:ur(e)?e:o,context:a}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach((function(n){rr(n)&&(__DEV__?In(!ur(n),"Missing selection set for object of type "+function(e,t){return ur(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n)+" returned for query field "+t.name.value):In(!ur(n),7),Object.values(n).forEach(r.add,r))}))}}(a.store,r,e),In(a.path.pop()===t),e))})),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),qa=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=br(r),c=new _o;a=(0,_n.pi)((0,_n.pi)({},Tr(u)),a);var l={store:e,written:Object.create(null),merge:function(e,t){return c.merge(e,t)},variables:a,varString:Ni(a),fragmentMap:or(wr(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(!ur(f))throw __DEV__?new Sn("Could not identify object "+JSON.stringify(i)):new Sn(8);return l.incomingById.forEach((function(t,r){var i=t.fields,o=t.mergeTree,a=t.selections,s=sr(r);if(o&&o.map.size){var u=n.applyMerges(o,s,i,l);if(ur(u))return;i=u}if(__DEV__&&!l.overwrite){var c=new Set;a.forEach((function(e){mr(e)&&e.selectionSet&&c.add(e.name.value)})),Object.keys(i).forEach((function(e){(function(e){return c.has(Ia(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&&!ur(o)&&!vi(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=Ia(n),c=s+"."+u;if(!Wa.has(c)){Wa.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__&&In.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=sr(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]||yr(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(Qi(e,o.variables))if(mr(e)){var i=vr(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=Ga(a,l),p=t.processFieldValue(u,e,o,f),y=void 0;if(e.selectionSet&&!(y=o.store.getFieldValue(p,"__typename"))&&ur(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}:Qa(a,l),d=o.merge(d,((n={})[l]=p,n))}else o.clientOnly||Vi.added(e)||__DEV__&&In.error(("Missing field '"+vr(e)+"' while writing result "+JSON.stringify(r,null,2)).substring(0,1e3));o.clientOnly=c}else{var _=ar(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=$a(y.mergeTree,a),y.selections.forEach(v.add,v),y.selections=v):o.incomingById.set(n,{fields:d,mergeTree:za(a)?void 0:a,selections:v}),sr(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,Ga(r,o));return Qa(r,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?ao(e):e},e.prototype.applyMerges=function(e,t,n,r,i){var o,a=this;if(e.map.size&&!ur(n)){var s,u=Array.isArray(n)||!ur(t)&&!Pa(t)?void 0:t,c=n;u&&!i&&(i=[ur(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&&In(i.pop()===t)}})),s&&(n=Array.isArray(c)?c.slice(0):(0,_n.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}(),Va=[];function Ga(e,t){var n=e.map;return n.has(t)||n.set(t,Va.pop()||{map:new Map}),n.get(t)}function $a(e,t){if(e===t||!t||za(t))return e;if(!e||za(e))return t;var n=e.info&&t.info?(0,_n.pi)((0,_n.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,$a(e,t.map.get(n))),o.delete(n)})),o.forEach((function(n){i.map.set(n,$a(t.map.get(n),e.map.get(n)))}))}return i}function za(e){return!e||!(e.info||e.map.size)}function Qa(e,t){var n=e.map,r=n.get(t);r&&za(r)&&(Va.push(r),n.delete(t))}var Wa=new Set;function Ka(e){var t=Hi("stringifyForDisplay");return JSON.stringify(e,(function(e,n){return void 0===n?t:n})).split(JSON.stringify(t)).join("<undefined>")}function Ya(e){return void 0!==e.args?e.args:e.field?hr(e.field,e.variables):null}fr.setStringify(Ni);var Ha=function(){},Ja=function(e,t){return t.fieldName},Xa=function(e,t,n){return(0,n.mergeObjects)(e,t)},Za=function(e,t){return t},es=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,_n.pi)({dataIdFromObject:ba},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?yr(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=is(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,_n._T)(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),a&&t.setRootTypename("Subscription",n),_a.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?Xa:!1===t?Za:e.merge}a(r,t.merge),r.keyFn=!1===i?Ha:Array.isArray(i)?is(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?Ja:Array.isArray(s)?rs(s):"function"==typeof s?s:r.keyFn,"function"==typeof u&&(r.read=u),a(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||Ja)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?In(!r||r===e,"Cannot change root "+e+" __typename more than once"):In(!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(Sa);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!_a.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,_n._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__&&In.warn("Inferring subtype "+t+" of supertype "+o),a.add(o)),!0;p.forEach(u),c&&f===s.length-1&&Ta(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=Ya(e);o;){var u=o(s,a);if(!Array.isArray(u)){t=u||r;break}o=rs(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 cr(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 cr(r,n,i,t)}))),fr(e.name.value,r,n)}(e.field,e.variables):fr(r,Ya(e))),!1===t?r:r===Ia(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=Ia(i),a=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,o,!1),u=s&&s.read;if(u){var c=ts(this,n,e,t,t.store.getStorage(ur(n)?n.__ref:n,i));return Zo.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===Xa?ns(r.store)(e,t):s===Za?t:(r.overwrite&&(e=void 0),s(e,t,ts(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null))))},e}();function ts(e,t,n,r,i){var o=e.getStoreFieldName(n),a=Ia(o),s=n.variables||r.variables,u=r.store,c=u.toReference,l=u.canRead;return{args:Ya(n),field:n.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:ur,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(!rr(n))return void(__DEV__&&In.warn("Unexpected readField arguments: "+Ka(Array.from(arguments))));o=(0,_n.pi)({},n),_a.call(n,"from")||(o.from=t)}return __DEV__&&void 0===o.from&&__DEV__&&In.warn("Undefined 'from' passed to readField with arguments "+Ka(Array.from(arguments))),void 0===o.variables&&(o.variables=s),e.readField(o,r)},mergeObjects:ns(r.store)}}function ns(e){return function(t,n){if(Array.isArray(t)||Array.isArray(n))throw __DEV__?new Sn("Cannot automatically merge arrays"):new Sn(3);if(rr(t)&&rr(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(ur(t)&&Pa(n))return e.merge(t.__ref,n),t;if(Pa(t)&&ur(n))return e.merge(t,n.__ref),n;if(Pa(t)&&Pa(n))return(0,_n.pi)((0,_n.pi)({},t),n)}return n}}function rs(e){return function(t,n){return t?n.fieldName+":"+JSON.stringify(as(t,e,!1)):n.fieldName}}function is(e){var t=new Ci(Ai);return function(n,r){var i;if(r.selectionSet&&r.fragmentMap){var o=t.lookupArray([r.selectionSet,r.fragmentMap]);i=o.aliasMap||(o.aliasMap=os(r.selectionSet,r.fragmentMap))}var a=r.keyObject=as(n,e,!0,i);return r.typename+":"+JSON.stringify(a)}}function os(e,t){var n=Object.create(null),r=new Set([e]);return r.forEach((function(e){e.selections.forEach((function(e){if(mr(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]=os(e.selectionSet,t))}else{var a=ar(e,t);a&&r.add(a.selectionSet)}}))})),n}function as(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]=as(e[i],t,n,u)}}else{var c=r&&r.aliases,l=c&&c[t]||t;_a.call(e,l)?a[o=t]=e[i=l]:(__DEV__?In(!n,"Missing field '"+l+"' while computing key fields"):In(!n,4),i=o=void 0)}})),a}var ss=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=ra,n.txCount=0,n.config=function(e){return ci(Ea,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new es({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,_n.ZT)(t,e),t.prototype.init=function(){var e=this.data=new Oa.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 qa(this,this.storeReader=new Ba({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:wa(this.config),canon:e?void 0:n&&n.canon})),this.maybeBroadcastWatch=Xo((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(Ma(n)){var r=e.optimistic,i=e.rootId,o=e.variables;return n.makeCacheKey(e.query,e.callback,Ni({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,_n.pi)((0,_n.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(e){if(e instanceof ma)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(_a.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,_n.pi)((0,_n.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||ta(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&&na(n),n.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){Ni.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 ur(e)?e.__ref:this.policies.identify(e)[0]},t.prototype.evict=function(e){if(!e.id){if(_a.call(e,"id"))return!1;e=(0,_n.pi)((0,_n.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(),Ni.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),na(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,_n.pi)((0,_n.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,_n.pi)((0,_n.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=Vi(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&&vi(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(ya);const us=JSON.parse('{"g":{"Credentials":["HubspotCredentials","StripeCredentials","ZuoraCredentials"],"ResetPeriodConfiguration":["MonthlyResetPeriodConfig","WeeklyResetPeriodConfig"],"ScheduleVariables":["BillingPeriodChangeVariables","DowngradeChangeVariables","UnitAmountChangeVariables"]}}');var cs=n(4098),ls=n.n(cs),fs=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,_n.pi)({},e),r=!1,i=this.batchKey(e.operation);return n.observable||(n.observable=new nr((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)||nr.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}(),ps=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 fs({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,_n.ZT)(t,e),t.prototype.request=function(e,t){return this.batcher.enqueueRequest({operation:e,forward:t})},t}(Or),ds=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,_n._T)(r,["uri","fetch","includeExtensions","batchInterval","batchDebounce","batchMax","batchKey"]);Gr(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 jr(e,o)+JSON.stringify(n)},n.batcher=new ps({batchDebounce:n.batchDebounce,batchInterval:n.batchInterval,batchMax:n.batchMax,batchKey:f,batchHandler:function(e){var t=jr(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,_n.pi)((0,_n.pi)({},r),n.headers)},f=e.map((function(e){return ni(e,ti,d,l)})),p=f.map((function(e){return e.body})),h=f[0].options;if("GET"===h.method)return oi(new Error("apollo-link-batch-http does not support GET requests"));try{h.body=Lr(p,"Payload")}catch(e){return oi(e)}if(!h.signal){var v=ii(),y=v.controller,m=v.signal;(c=y)&&(h.signal=m)}return new nr((function(n){return a(t,h).then((function(t){return e.forEach((function(e){return e.setContext({response:t})})),t})).then(Vr(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,_n.ZT)(t,e),t.prototype.request=function(e){return this.batcher.request(e)},t}(Or),hs=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,_n.mG)(i,void 0,void 0,(function(){var t,n,r;return(0,_n.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}(),vs=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,_n.ZT)(t,e),t.prototype.request=function(e,t){var n=new hs(e,t,this.delayFor,this.retryIf);return n.start(),new nr((function(e){return n.subscribe(e),function(){n.unsubscribe(e)}}))},t}(Or),ys=n(4147);function ms(e,t){return new Or((function(n,r){var i={"X-API-KEY":e,source:on},o=t.customerToken;return o&&(i["X-CUSTOMER-KEY"]=o),n.setContext({headers:i}),r(n)}))}var gs=function(e){return!!e&&![500,400].includes(e.statusCode)};var _s=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}(),bs=function(){function e(){}return e.decideEntitlementPolicy=function(e,t){var n,r;if(!e||!e.calculatedEntitlement.feature)return{hasAccess:!1,accessDeniedReason:De.CustomerNotEntitledForFeature};var i=e.calculatedEntitlement.feature,o=i.featureType,a=i.meterType;switch(o){case Oe.Boolean:return{hasAccess:!0};case Oe.Numeric:if((null===(n=e.calculatedEntitlement.feature)||void 0===n?void 0:n.meterType)===Re.None)return{hasAccess:!0};if(e.calculatedEntitlement.hasUnlimitedUsage)return{hasAccess:!0};var s=e.featureUsage.currentUsage;return a===Re.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:De.RequestedUsageExceedsLimit}}},e}(),Es=function(){function e(e,t,n){this.entitlementsApi=e,this.customerId=t,this.loggerService=n}return e.prototype.reportEntitlementCheckRequested=function(e,t,n){var r=this;this.entitlementsApi.reportEntitlementRequested(e,this.customerId,t,n).then((function(){r.loggerService.debug("Successfully reported entitlement check requested")}),(function(){}))},e}(),ws=n(6486),Ss=function(){return Ss=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},Ss.apply(this,arguments)},Is=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())}))},Ts=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])}}},Ps=function(){function e(e,t,n,r,i,o,a){this.customerId=e,this.cacheService=t,this.loggerService=o,this.onEntitlementsUpdated=a,this.modelMapper=new yn,this.loadingEntitlements=null,this.entitlementsApi=new st(n,i),this.entitlementCheckReportingService=new Es(new st(r,i),e,o),this.entitlementsPollingObserver=null}return e.prototype.startPolling=function(e){var t=this;this.stopPolling(),this.entitlementsPollingObserver=this.entitlementsApi.pollEntitlements(this.customerId,e),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 Is(this,void 0,void 0,(function(){return Ts(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=bs.decideEntitlementPolicy(i);if((null==i?void 0:i.calculatedEntitlement.feature)&&i.calculatedEntitlement.feature.featureType!==Oe.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),Ss(Ss({},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=bs.decideEntitlementPolicy(o);if((null==o?void 0:o.calculatedEntitlement.feature)&&(null===(r=o.calculatedEntitlement.feature)||void 0===r?void 0:r.featureType)!==Oe.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),Ss(Ss({},a),{isFallback:!1,isUnlimited:!1})}var c=this.modelMapper.mapEntitlementResult(a,o);return this.tryTrackEntitlementCheck(i,e,c),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=bs.decideEntitlementPolicy(a,s);if((null==a?void 0:a.calculatedEntitlement.feature)&&(null===(r=a.calculatedEntitlement.feature)||void 0===r?void 0:r.meterType)!==Re.Fluctuating&&(null===(i=a.calculatedEntitlement.feature)||void 0===i?void 0:i.meterType)!==Re.Incremental){var c=this.modelMapper.mapFallbackMeteredEntitlementResult(t,u,s);return this.tryTrackEntitlementCheck(o,e,c,s),t}if(!a){var l=this.modelMapper.mapEntitlementResult(u,void 0,s);return this.tryTrackEntitlementCheck(o,e,l,s),Ss(Ss({},u),{currentUsage:0,isFallback:!1,isUnlimited:!1,requestedUsage:s||0})}var f=this.modelMapper.mapEntitlementResult(u,a,s);return this.tryTrackEntitlementCheck(o,e,f,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 Is(this,void 0,void 0,(function(){return Ts(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 Is(this,void 0,void 0,(function(){var t;return Ts(this,(function(n){switch(n.label){case 0:return[4,this.entitlementsApi.getEntitlements(this.customerId,e)];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,ws.max)(e.flatMap((function(e){return[new Date(e.entitlementUpdatedAt),new Date(e.usageUpdatedAt)]})))||new Date},e.prototype.getEntitlements=function(){return Is(this,void 0,void 0,(function(){var e=this;return Ts(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=bs.decideEntitlementPolicy(t);return e.modelMapper.mapEntitlement(t,n)}))]}}))}))},e}(),Cs=n(2991),As=Object.prototype.toString;function Ds(e){switch(As.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Ls(e,Error)}}function Os(e,t){return As.call(e)===`[object ${t}]`}function Rs(e){return Os(e,"ErrorEvent")}function Ns(e){return Os(e,"DOMError")}function xs(e){return Os(e,"String")}function ks(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function Fs(e){return Os(e,"Object")}function Us(e){return"undefined"!=typeof Event&&Ls(e,Event)}function Ms(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Ls(e,t){try{return e instanceof t}catch(e){return!1}}function js(e,t){try{let i=e;var n=[];let o=0,a=0;var r=" > ".length;let s;for(;i&&o++<5&&(s=Bs(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 Bs(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&&xs(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 qs(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.substr(0,t)}...`}function Vs(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 Gs(e,t){return!!xs(e)&&(Os(t,"RegExp")?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}function $s(e,t,n){if(t in e){var r=e[t],i=n(r);if("function"==typeof i)try{Qs(i,r)}catch(e){}e[t]=i}}function zs(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function Qs(e,t){var n=t.prototype||{};e.prototype=t.prototype=n,zs(e,"__sentry_original__",t)}function Ws(e){return e.__sentry_original__}function Ks(e){if(Ds(e))return{message:e.message,name:e.name,stack:e.stack,...Hs(e)};if(Us(e)){var t={type:e.type,target:Ys(e.target),currentTarget:Ys(e.currentTarget),...Hs(e)};return"undefined"!=typeof CustomEvent&&Ls(e,CustomEvent)&&(t.detail=e.detail),t}return e}function Ys(e){try{return"undefined"!=typeof Element&&Ls(e,Element)?js(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function Hs(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 Js(e,t=40){var n=Object.keys(Ks(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return qs(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:qs(r,t)}return""}function Xs(e){return Zs(e,new Map)}function Zs(e,t){if(Fs(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]=Zs(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(Zs(e,t))})),n):e}let eu;class tu{constructor(){tu.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=tu.id}setupOnce(){eu=Function.prototype.toString,Function.prototype.toString=function(...e){var t=Ws(this)||this;return eu.apply(t,e)}}}tu.__initStatic();var nu=(0,Cs.R)(),ru=["debug","info","warn","error","log","assert","trace"];function iu(e){var t=(0,Cs.R)();if(!("console"in t))return e();var n=t.console,r={};ru.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 ou(){let e=!1;var t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?ru.forEach((n=>{t[n]=(...t)=>{e&&iu((()=>{nu.console[n](`Sentry Logger [${n}]:`,...t)}))}})):ru.forEach((e=>{t[e]=()=>{}})),t}let au;function su(){var e=(0,Cs.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 uu(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function cu(e){const{message:t,event_id:n}=e;if(t)return t;var r=uu(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function lu(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 fu(e,t){var n=uu(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 pu(e){if(e&&e.__sentry_captured__)return!0;try{zs(e,"__sentry_captured__",!0)}catch(e){}return!1}au="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,Cs.Y)("logger",ou):ou();var du=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class hu{static __initStatic(){this.id="InboundFilters"}__init(){this.name=hu.id}constructor(e={}){this._options=e,hu.prototype.__init.call(this)}setupOnce(e,t){var n=e=>{var n=t();if(n){var r=n.getIntegration(hu);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||[],...du],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__)&&au.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${cu(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__)&&au.error(`Cannot extract message for event ${cu(e)}`),[]}return[]}(e).some((e=>t.some((t=>Gs(e,t)))))}(e,t.ignoreErrors)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${cu(e)}`),!0):function(e,t){if(!t||!t.length)return!1;var n=vu(e);return!!n&&t.some((e=>Gs(n,e)))}(e,t.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${cu(e)}.\nUrl: ${vu(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;var n=vu(e);return!n||t.some((e=>Gs(n,e)))}(e,t.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${cu(e)}.\nUrl: ${vu(e)}`),!0)}(e,a)?null:e}}return e};n.id=this.name,e(n)}}function vu(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__)&&au.error(`Cannot extract url for event ${cu(e)}`),null}}hu.__initStatic();var yu,mu=n(1170),gu=n(2176);function _u(e){return new Eu((t=>{t(e)}))}function bu(e){return new Eu(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(yu||(yu={}));class Eu{__init(){this._state=yu.PENDING}__init2(){this._handlers=[]}constructor(e){Eu.prototype.__init.call(this),Eu.prototype.__init2.call(this),Eu.prototype.__init3.call(this),Eu.prototype.__init4.call(this),Eu.prototype.__init5.call(this),Eu.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new Eu(((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 Eu(((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(yu.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(yu.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{this._state===yu.PENDING&&(Ms(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state!==yu.PENDING){var e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===yu.RESOLVED&&e[1](this._value),this._state===yu.REJECTED&&e[2](this._value),e[0]=!0)}))}}}}function wu(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,mu.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:su()),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 Su{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 Su;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&&wu(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 Su?t:this}return e instanceof Su?(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)):Fs(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,mu.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([...Iu(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,n,r=0){return new Eu(((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&&au.log(`Event processor "${a.id}" dropped event`),Ms(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 Iu(){return(0,Cs.Y)("globalEventProcessors",(()=>[]))}function Tu(e){Iu().push(e)}var Pu=100;class Cu{__init(){this._stack=[{}]}constructor(e,t=new Su,n=4){this._version=n,Cu.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=Su.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:su(),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:su(),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:su();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=Pu}=r.getOptions&&r.getOptions()||{};if(!(o<=0)){var a={timestamp:(0,mu.yW)(),...e},s=i?iu((()=>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=Du(this);try{e(this)}finally{Du(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__)&&au.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"}),wu(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,Cs.R)();const{userAgent:a}=o.navigator||{};var s=function(e){var t=(0,mu.ph)(),n={sid:su(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return Xs({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&&wu(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&&wu(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=Au().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function Au(){var e=(0,Cs.R)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function Du(e){var t=Au(),n=Nu(t);return xu(t,e),n}function Ou(){var e=Au();return Ru(e)&&!Nu(e).isOlderThan(4)||xu(e,new Cu),(0,gu.KV)()?function(e){try{var t=Au().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return Nu(e);if(!Ru(n)||Nu(n).isOlderThan(4)){var r=Nu(e).getStackTop();xu(n,new Cu(r.client,Su.clone(r.scope)))}return Nu(n)}catch(t){return Nu(e)}}(e):Nu(e)}function Ru(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Nu(e){return(0,Cs.Y)("hub",(()=>new Cu),e)}function xu(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}var ku="<anonymous>";function Fu(e){try{return e&&"function"==typeof e&&e.name||ku}catch(e){return ku}}function Uu(){if(!("fetch"in(0,Cs.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function Mu(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}var Lu=(0,Cs.R)(),ju={},Bu={};function qu(e,t){ju[e]=ju[e]||[],ju[e].push(t),function(e){if(!Bu[e])switch(Bu[e]=!0,e){case"console":"console"in Lu&&ru.forEach((function(e){e in Lu.console&&$s(Lu.console,e,(function(t){return function(...n){Vu("console",{args:n,level:e}),t&&t.apply(Lu.console,n)}}))}));break;case"dom":!function(){if("document"in Lu){var e=Vu.bind(null,"dom"),t=Ku(e,!0);Lu.document.addEventListener("click",t,!1),Lu.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{var n=Lu[t]&&Lu[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&($s(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=Ku(e);a.handler=s,t.call(this,n,s,i)}a.refCount+=1}catch(e){}return t.call(this,n,r,i)}})),$s(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 Lu){var e=XMLHttpRequest.prototype;$s(e,"open",(function(e){return function(...t){var n=this,r=t[1],i=n.__sentry_xhr__={method:xs(t[0])?t[0].toUpperCase():t[0],url:t[1]};xs(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){}Vu("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:n})}};return"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?$s(n,"onreadystatechange",(function(e){return function(...t){return o(),e.apply(n,t)}})):n.addEventListener("readystatechange",o),e.apply(n,t)}})),$s(e,"send",(function(e){return function(...t){return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),Vu("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}}();break;case"fetch":(function(){if(!Uu())return!1;var e=(0,Cs.R)();if(Mu(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=Mu(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t})()&&$s(Lu,"fetch",(function(e){return function(...t){var n={args:t,fetchData:{method:Gu(t),url:$u(t)},startTimestamp:Date.now()};return Vu("fetch",{...n}),e.apply(Lu,t).then((e=>(Vu("fetch",{...n,endTimestamp:Date.now(),response:e}),e)),(e=>{throw Vu("fetch",{...n,endTimestamp:Date.now(),error:e}),e}))}}));break;case"history":!function(){if(function(){var e=(0,Cs.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=Lu.onpopstate;Lu.onpopstate=function(...t){var n=Lu.location.href,r=zu;if(zu=n,Vu("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},$s(Lu.history,"pushState",t),$s(Lu.history,"replaceState",t)}function t(e){return function(...t){var n=t.length>2?t[2]:void 0;if(n){var r=zu,i=String(n);zu=i,Vu("history",{from:r,to:i})}return e.apply(this,t)}}}();break;case"error":Yu=Lu.onerror,Lu.onerror=function(e,t,n,r,i){return Vu("error",{column:r,error:i,line:n,msg:e,url:t}),!!Yu&&Yu.apply(this,arguments)};break;case"unhandledrejection":Hu=Lu.onunhandledrejection,Lu.onunhandledrejection=function(e){return Vu("unhandledrejection",e),!Hu||Hu.apply(this,arguments)};break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn("unknown instrumentation type:",e)}}(e)}function Vu(e,t){if(e&&ju[e])for(var n of ju[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Fu(n)}\nError:`,t)}}function Gu(e=[]){return"Request"in Lu&&Ls(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function $u(e=[]){return"string"==typeof e[0]?e[0]:"Request"in Lu&&Ls(e[0],Request)?e[0].url:String(e[0])}let zu,Qu,Wu;function Ku(e,t=!1){return n=>{if(n&&Wu!==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===Qu||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}(Wu,n))&&(e({event:n,name:r,global:t}),Wu=n),clearTimeout(Qu),Qu=Lu.setTimeout((()=>{Qu=void 0}),1e3)}}}let Yu=null,Hu=null;function Ju(e,t=1/0,n=1/0){try{return Zu("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Xu(e,t=3,n=102400){var r,i=Ju(e,t);return r=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?Xu(e,t-1,n):i}function Zu(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 Fs(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: ${Fu(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 Zu("",l.toJSON(),r-1,i,o)}catch(e){}var f=Array.isArray(t)?[]:{};let p=0;var d=Ks(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]=Zu(h,v,r-1,i,o),p+=1}return s(t),f}function ec(e,t){var n=nc(e,t),r={type:t&&t.name,value:ic(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function tc(e,t){return{exception:{values:[ec(e,t)]}}}function nc(e,t){var n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(rc.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}var rc=/Minified React error #\d+;/i;function ic(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function oc(e,t,n,r,i){let o;if(Rs(t)&&t.error)return tc(e,t.error);if(Ns(t)||Os(t,"DOMException")){var a=t;if("stack"in t)o=tc(e,t);else{var s=a.name||(Ns(a)?"DOMError":"DOMException"),u=a.message?`${s}: ${a.message}`:s;o=ac(e,u,n,r),lu(o,u)}return"code"in a&&(o.tags={...o.tags,"DOMException.code":`${a.code}`}),o}return Ds(t)?tc(e,t):Fs(t)||Us(t)?(o=function(e,t,n,r){var i={exception:{values:[{type:Us(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${Js(t)}`}]},extra:{__serialized__:Xu(t)}};if(n){var o=nc(e,n);o.length&&(i.exception.values[0].stacktrace={frames:o})}return i}(e,t,n,i),fu(o,{synthetic:!0}),o):(o=ac(e,t,n,r),lu(o,`${t}`,void 0),fu(o,{synthetic:!0}),o)}function ac(e,t,n,r){var i={message:t};if(r&&n){var o=nc(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]})}return i}function sc(e,t){return Ou().captureException(e,{captureContext:t})}function uc(e){Ou().withScope(e)}let cc=0;function lc(){return cc>0}function fc(){cc+=1,setTimeout((()=>{cc-=1}))}function pc(e,t={},n){if("function"!=typeof e)return e;try{var r=e.__sentry_wrapped__;if(r)return r;if(Ws(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=>pc(e,t)));return e.apply(this,i)}catch(e){throw fc(),uc((n=>{n.addEventProcessor((e=>(t.mechanism&&(lu(e,void 0,void 0),fu(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),sc(e)})),e}};try{for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}catch(e){}Qs(i,e),zs(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>e.name})}catch(e){}return i}class dc{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=dc.id}__init2(){this._installFunc={onerror:hc,onunhandledrejection:vc}}constructor(e){dc.prototype.__init.call(this),dc.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__)&&au.log(`Global Handler attached: ${e}`),r(),this._installFunc[n]=void 0)}}}function hc(){qu("error",(e=>{const[t,n,r]=gc();if(!t.getIntegration(dc))return;const{msg:i,url:o,line:a,column:s,error:u}=e;if(!(lc()||u&&u.__sentry_own_request__)){var c=void 0===u&&xs(i)?function(e,t,n,r){let i=Rs(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]),yc({exception:{values:[{type:o,value:i}]}},t,n,r)}(i,o,a,s):yc(oc(n,u||i,void 0,r,!1),o,a,s);c.level="error",mc(t,u,c,"onerror")}}))}function vc(){qu("unhandledrejection",(e=>{const[t,n,r]=gc();if(!t.getIntegration(dc))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(lc()||i&&i.__sentry_own_request__)return!0;var o=ks(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:oc(n,i,void 0,r,!0);o.level="error",mc(t,i,o,"onunhandledrejection")}))}function yc(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=xs(t)&&t.length>0?t:function(){var e=(0,Cs.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 mc(e,t,n,r){fu(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function gc(){var e=Ou(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}dc.__initStatic();var _c=["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 bc{static __initStatic(){this.id="TryCatch"}__init(){this.name=bc.id}constructor(e){bc.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){var e=(0,Cs.R)();this._options.setTimeout&&$s(e,"setTimeout",Ec),this._options.setInterval&&$s(e,"setInterval",Ec),this._options.requestAnimationFrame&&$s(e,"requestAnimationFrame",wc),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&$s(XMLHttpRequest.prototype,"send",Sc);var t=this._options.eventTarget;t&&(Array.isArray(t)?t:_c).forEach(Ic)}}function Ec(e){return function(...t){var n=t[0];return t[0]=pc(n,{mechanism:{data:{function:Fu(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function wc(e){return function(t){return e.apply(this,[pc(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Fu(e)},handled:!0,type:"instrument"}})])}}function Sc(e){return function(...t){var n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&$s(n,e,(function(t){var n={mechanism:{data:{function:e,handler:Fu(t)},handled:!0,type:"instrument"}},r=Ws(t);return r&&(n.mechanism.data.handler=Fu(r)),pc(t,n)}))})),e.apply(this,t)}}function Ic(e){var t=(0,Cs.R)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&($s(n,"addEventListener",(function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=pc(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Fu(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.apply(this,[n,pc(r,{mechanism:{data:{function:"addEventListener",handler:Fu(r),target:e},handled:!0,type:"instrument"}}),i])}})),$s(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)}})))}bc.__initStatic();var Tc=["fatal","error","warning","log","info","debug"];function Pc(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 Cc="Breadcrumbs";class Ac{static __initStatic(){this.id=Cc}__init(){this.name=Ac.id}constructor(e){Ac.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&&qu("console",Dc),this.options.dom&&qu("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?js(t.event.target,r):js(t.event,r)}catch(e){n="<unknown>"}0!==n.length&&Ou().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})})),this.options.xhr&&qu("xhr",Oc),this.options.fetch&&qu("fetch",Rc),this.options.history&&qu("history",Nc)}}function Dc(e){var t,n={category:"console",data:{arguments:e.args,logger:"console"},level:(t=e.level,"warn"===t?"warning":Tc.includes(t)?t:"log"),message:Vs(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${Vs(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}Ou().addBreadcrumb(n,{input:e.args,level:e.level})}function Oc(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__||{};Ou().addBreadcrumb({category:"xhr",data:{method:t,url:n,status_code:r},type:"http"},{xhr:e.xhr,input:i})}}function Rc(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?Ou().addBreadcrumb({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args}):Ou().addBreadcrumb({category:"fetch",data:{...e.fetchData,status_code:e.response.status},type:"http"},{input:e.args,response:e.response})))}function Nc(e){var t=(0,Cs.R)();let n=e.from,r=e.to;var i=Pc(t.location.href);let o=Pc(n);var a=Pc(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),Ou().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}Ac.__initStatic();class xc{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=xc.id}constructor(e={}){xc.prototype.__init.call(this),this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){var e=Ou().getClient();e&&Tu(((t,n)=>{var r=Ou().getIntegration(xc);return r?function(e,t,n,r,i){if(!(r.exception&&r.exception.values&&i&&Ls(i.originalException,Error)))return r;var o=kc(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 kc(e,t,n,r,i=[]){if(!Ls(n[r],Error)||i.length+1>=t)return i;var o=ec(e,n[r]);return kc(e,t,n[r],r,[o,...i])}xc.__initStatic();var Fc=(0,Cs.R)();class Uc{constructor(){Uc.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=Uc.id}setupOnce(){Tu((e=>{if(Ou().getIntegration(Uc)){if(!Fc.navigator&&!Fc.location&&!Fc.document)return e;var t=e.request&&e.request.url||Fc.location&&Fc.location.href;const{referrer:r}=Fc.document||{},{userAgent:i}=Fc.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}))}}Uc.__initStatic();class Mc{constructor(){Mc.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=Mc.id}setupOnce(e,t){var n=e=>{var n=t().getIntegration(Mc);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&&(!!jc(e,t)&&!!Lc(e,t))))}(e,t)||!!function(e,t){var n=Bc(t),r=Bc(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!jc(e,t)&&!!Lc(e,t)))}(e,t))}(e,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.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 Lc(e,t){let n=qc(e),r=qc(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 jc(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 Bc(e){return e.exception&&e.exception.values&&e.exception.values[0]}function qc(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}Mc.__initStatic();let Vc={};var Gc=(0,Cs.R)();Gc.Sentry&&Gc.Sentry.Integrations&&(Vc=Gc.Sentry.Integrations);var $c={...Vc,...r,...i},zc="?";function Qc(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 Wc=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Kc=/\((\S*)(?::(\d+))(?::(\d+))\)/,Yc=/^\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,Hc=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Jc=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Xc=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=Wc.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){var n=Kc.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}const[e,r]=Zc(t[1]||zc,t[2]);return Qc(r,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{var t=Yc.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=Hc.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]||zc;return[r,e]=Zc(r,e),Qc(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{var t=Jc.exec(e);return t?Qc(t[2],t[1]||zc,+t[3],t[4]?+t[4]:void 0):void 0}]),Zc=(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]:zc,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class el 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 tl(e,t=[]){return[e,t]}function nl(e,t){const[n,r]=e;return[n,[...r,t]]}function rl(e,t){e[1].forEach((e=>{var n=e[0].type;t(e,n)}))}function il(e,t){return(t||new TextEncoder).encode(e)}function ol(e,t){const[n,r]=e;let i=JSON.stringify(n);function o(e){"string"==typeof i?i="string"==typeof e?i+e:[il(i,t),e]:i.push("string"==typeof e?il(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 al(e,t){var n="string"==typeof e.data?il(e.data,t):e.data;return[Xs({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}var sl={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default"};function ul(e){return sl[e]}function cl(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 bu(new el("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 Eu(((n,r)=>{let i=t.length;if(!i)return n(!0);var o=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{_u(e).then((()=>{--i||(clearTimeout(o),n(!0))}),r)}))}))}}}(e.bufferSize||30)){let r={};return{send:function(i){var o=[];if(rl(i,((t,n)=>{var i=ul(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 _u();var a=tl(i[0],o),s=t=>{rl(a,((n,r)=>{e.recordDroppedEvent(t,ul(r))}))};return n.add((()=>t({body:ol(a,e.textEncoder)}).then((e=>{void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.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__)&&au.error("Failed while sending event:",e),s("network_error")})))).then((e=>e),(e=>{if(e instanceof el)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.error("Skipped sending event due to full buffer"),s("queue_overflow"),_u();throw e}))},flush:e=>n.drain(e)}}var ll=(0,Cs.R)();let fl;function pl(){if(fl)return fl;if(Mu(ll.fetch))return fl=ll.fetch.bind(ll);var e=ll.document;let t=ll.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__)&&au.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return fl=t.bind(ll)}function dl(e,t=pl()){return cl(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 hl(e){return cl(e,(function(t){return new Eu(((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 vl=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function yl(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 ml(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function gl(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 _l(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}var bl=[],El="Not capturing exception because it's already been captured.";class wl{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}constructor(e){if(wl.prototype.__init.call(this),wl.prototype.__init2.call(this),wl.prototype.__init3.call(this),wl.prototype.__init4.call(this),this._options=e,e.dsn){this._dsn=(n=e.dsn,r="string"==typeof n?function(e){var t=vl.exec(e);if(!t)throw new el(`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 ml({host:o,pass:i,path:u,projectId:c,port:a,protocol:n,publicKey:r})}(n):ml(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 el(`Invalid Sentry Dsn: ${t} missing`)})),!n.match(/^\d+$/))throw new el(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!function(e){return"http"===e||"https"===e}(r))throw new el(`Invalid Sentry Dsn: Invalid protocol ${r}`);if(t&&isNaN(parseInt(t,10)))throw new el(`Invalid Sentry Dsn: Invalid port ${t}`)}(r),r);var t=gl(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn("No DSN provided, client will not do anything.");var n,r}captureException(e,t,n){if(pu(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.log(El));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=ks(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&&pu(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.log(El));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__)&&au.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),wu(e,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.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)))):_u(!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===bl.indexOf(e.name)&&(e.setupOnce(Tu,Ou),bl.push(e.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.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__)&&au.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=_l(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:yl(r)},..."transaction"===e.type&&o&&{trace:Xs({...o})}}}(e,i,r,t);return delete e.sdkProcessingMetadata,tl(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=nl(r,al(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=_l(n);return tl({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&{dsn:yl(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__)&&au.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)&&(wu(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Eu((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||su(),timestamp:e.timestamp||(0,mu.yW)()};this._applyClientOptions(o),this._applyIntegrationsMetadata(o);let a=n;t.captureContext&&(a=Su.clone(a).update(t.captureContext));let s=_u(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:Ju(e.data,t,n)}})))},...e.user&&{user:Ju(e.user,t,n)},...e.contexts&&{contexts:Ju(e.contexts,t,n)},...e.extra&&{extra:Ju(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=Ju(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>(e.data&&(e.data=Ju(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=qs(e.message,o));var a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=qs(a.value,o));var s=e.request;s&&s.url&&(s.url=qs(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?au.log(t.message):au.warn(t)}}))}_processEvent(e,t,n){const{beforeSend:r,sampleRate:i}=this.getOptions();if(!this._isEnabled())return bu(new el("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"),bu(new el(`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 el("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(Ms(e))return e.then((e=>{if(!Fs(e)&&null!==e)throw new el(t);return e}),(e=>{throw new el(`beforeSend rejected with ${e}`)}));if(!Fs(e)&&null!==e)throw new el(t);return e}(r(n,t))})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",e.type||"error"),new el("`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 el)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new el(`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__)&&au.error("Error while sending event:",e)})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.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 Sl="7.11.1",Il=(0,Cs.R)();class Tl extends wl{constructor(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:Sl}],version:Sl},super(e),e.sendClientReports&&Il.document&&Il.document.addEventListener("visibilitychange",(()=>{"hidden"===Il.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){var i=oc(e,t,n&&n.syntheticException||void 0,r);return fu(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),_u(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){var o=ac(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),_u(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}sendEvent(e,t){var n=this.getIntegrationById(Cc);n&&n.options&&n.options.sentry&&Ou().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:cu(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__)&&au.log("Sending outcomes:",e);var t,n,r=gl(this._dsn,this._options),i=(t=e,tl((n=this._options.tunnel&&yl(this._dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:(0,mu.yW)(),discarded_events:t}]]));try{!function(e,t){"[object Navigator]"===Object.prototype.toString.call(ll&&ll.navigator)&&"function"==typeof ll.navigator.sendBeacon?ll.navigator.sendBeacon.bind(ll.navigator)(e,t):Uu()&&pl()(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.error(e)}))}(r,ol(i))}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.error(e)}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.log("No dsn provided, will not send outcomes");else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.log("No outcomes to send")}}var Pl,Cl=n(4147),Al=[new $c.InboundFilters,new $c.FunctionToString,new $c.TryCatch,new $c.Breadcrumbs,new $c.LinkedErrors,new $c.Dedupe,new $c.HttpContext],Dl=new Cu;!function(e){e.IN_PROGRESS="IN_PROGRESS",e.SUCCESS="READY",e.FAILED="FAILED"}(Pl||(Pl={}));var Ol=function(){function e(e){this.eventEmitter=e,this.initializationPromise=null,this.initializationStatus=Pl.IN_PROGRESS,this.initFailureError=null}return e.prototype.getInitializationPromise=function(){var e=this;return this.initializationPromise?this.initializationPromise:this.initializationStatus===Pl.SUCCESS?Promise.resolve():this.initializationStatus===Pl.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=Pl.SUCCESS,this.eventEmitter.emit("initializeSuccessfully")},e.prototype.signalFailedInit=function(e){this.initializationStatus=Pl.FAILED,this.initFailureError=e,this.eventEmitter.emit("initializeFailed",e)},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)};function Nl(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,kl(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 xl(e,t){try{return e()}catch(e){return kl(e,t)}}function kl(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;Dl.withScope((function(t){var o={errorMessage:r};if(n){var a=n.customerId,s=Rl(Rl({},n),{apiKey:void 0});a&&t.setTags({customerId:a}),o.sdkConfiguration=s}i&&(o=Rl(Rl({},o),i)),t.setExtras(o),Dl.captureException(e)}))}(e,{sdkConfiguration:r,errorMessage:s,errorReportMetadata:a}),o)throw new Error(s)}var Fl,Ul=n(2527),Ml=(Fl=function(e,t){return Fl=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])},Fl(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}Fl(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ll=function(e){function t(){return e.call(this)||this}return Ml(t,e),t}(Ul.TypedEmitter);function jl(e,t){return function(){return e.apply(t,arguments)}}const{toString:Bl}=Object.prototype,{getPrototypeOf:ql}=Object,Vl=(Gl=Object.create(null),e=>{const t=Bl.call(e);return Gl[t]||(Gl[t]=t.slice(8,-1).toLowerCase())});var Gl;const $l=e=>(e=e.toLowerCase(),t=>Vl(t)===e),zl=e=>t=>typeof t===e,{isArray:Ql}=Array,Wl=zl("undefined"),Kl=$l("ArrayBuffer"),Yl=zl("string"),Hl=zl("function"),Jl=zl("number"),Xl=e=>null!==e&&"object"==typeof e,Zl=e=>{if("object"!==Vl(e))return!1;const t=ql(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},ef=$l("Date"),tf=$l("File"),nf=$l("Blob"),rf=$l("FileList"),of=$l("URLSearchParams");function af(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),Ql(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 sf(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 uf="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,cf=e=>!Wl(e)&&e!==uf,lf=(ff="undefined"!=typeof Uint8Array&&ql(Uint8Array),e=>ff&&e instanceof ff);var ff;const pf=$l("HTMLFormElement"),df=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),hf=$l("RegExp"),vf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};af(n,((n,i)=>{!1!==t(n,i,e)&&(r[i]=n)})),Object.defineProperties(e,r)},yf={isArray:Ql,isArrayBuffer:Kl,isBuffer:function(e){return null!==e&&!Wl(e)&&null!==e.constructor&&!Wl(e.constructor)&&Hl(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{const t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||Bl.call(e)===t||Hl(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Kl(e.buffer),t},isString:Yl,isNumber:Jl,isBoolean:e=>!0===e||!1===e,isObject:Xl,isPlainObject:Zl,isUndefined:Wl,isDate:ef,isFile:tf,isBlob:nf,isRegExp:hf,isFunction:Hl,isStream:e=>Xl(e)&&Hl(e.pipe),isURLSearchParams:of,isTypedArray:lf,isFileList:rf,forEach:af,merge:function e(){const{caseless:t}=cf(this)&&this||{},n={},r=(r,i)=>{const o=t&&sf(n,i)||i;Zl(n[o])&&Zl(r)?n[o]=e(n[o],r):Zl(r)?n[o]=e({},r):Ql(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&af(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(af(t,((t,r)=>{n&&Hl(t)?e[r]=jl(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&&ql(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Vl,kindOfTest:$l,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(Ql(e))return e;let t=e.length;if(!Jl(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:pf,hasOwnProperty:df,hasOwnProp:df,reduceDescriptors:vf,freezeMethods:e=>{vf(e,((t,n)=>{if(Hl(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Hl(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 Ql(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:sf,global:uf,isContextDefined:cf,toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Xl(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=Ql(e)?[]:{};return af(e,((e,t)=>{const o=n(e,r+1);!Wl(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)}};function mf(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)}yf.inherits(mf,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:yf.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const gf=mf.prototype,_f={};["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=>{_f[e]={value:e}})),Object.defineProperties(mf,_f),Object.defineProperty(gf,"isAxiosError",{value:!0}),mf.from=(e,t,n,r,i,o)=>{const a=Object.create(gf);return yf.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),mf.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const bf=mf,Ef=n(6401);function wf(e){return yf.isPlainObject(e)||yf.isArray(e)}function Sf(e){return yf.endsWith(e,"[]")?e.slice(0,-2):e}function If(e,t,n){return e?e.concat(t).map((function(e,t){return e=Sf(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Tf=yf.toFlatObject(yf,{},null,(function(e){return/^is[A-Z]/.test(e)})),Pf=function(e,t,n){if(!yf.isObject(e))throw new TypeError("target must be an object");t=t||new(Ef||FormData);const r=(n=yf.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!yf.isUndefined(t[e])}))).metaTokens,i=n.visitor||l,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&(u=t)&&yf.isFunction(u.append)&&"FormData"===u[Symbol.toStringTag]&&u[Symbol.iterator];var u;if(!yf.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(yf.isDate(e))return e.toISOString();if(!s&&yf.isBlob(e))throw new bf("Blob is not supported. Use a Buffer instead.");return yf.isArrayBuffer(e)||yf.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(yf.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(yf.isArray(e)&&function(e){return yf.isArray(e)&&!e.some(wf)}(e)||yf.isFileList(e)||yf.endsWith(n,"[]")&&(s=yf.toArray(e)))return n=Sf(n),s.forEach((function(e,r){!yf.isUndefined(e)&&null!==e&&t.append(!0===a?If([n],r,o):null===a?n:n+"[]",c(e))})),!1;return!!wf(e)||(t.append(If(i,n,o),c(e)),!1)}const f=[],p=Object.assign(Tf,{defaultVisitor:l,convertValue:c,isVisitable:wf});if(!yf.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!yf.isUndefined(n)){if(-1!==f.indexOf(n))throw Error("Circular reference detected in "+r.join("."));f.push(n),yf.forEach(n,(function(n,o){!0===(!(yf.isUndefined(n)||null===n)&&i.call(t,n,yf.isString(o)?o.trim():o,r,p))&&e(n,r?r.concat(o):[o])})),f.pop()}}(e),t};function Cf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Af(e,t){this._pairs=[],e&&Pf(e,this,t)}const Df=Af.prototype;Df.append=function(e,t){this._pairs.push([e,t])},Df.toString=function(e){const t=e?function(t){return e.call(this,t,Cf)}:Cf;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Of=Af;function Rf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Nf(e,t,n){if(!t)return e;const r=n&&n.encode||Rf,i=n&&n.serialize;let o;if(o=i?i(t,n):yf.isURLSearchParams(t)?t.toString():new Of(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const xf=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){yf.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},kf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ff="undefined"!=typeof URLSearchParams?URLSearchParams:Of,Uf=FormData,Mf=(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),Lf="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,jf={isBrowser:!0,classes:{URLSearchParams:Ff,FormData:Uf,Blob},isStandardBrowserEnv:Mf,isStandardBrowserWebWorkerEnv:Lf,protocols:["http","https","file","blob","url","data"]},Bf=function(e){function t(e,n,r,i){let o=e[i++];const a=Number.isFinite(+o),s=i>=e.length;return o=!o&&yf.isArray(r)?r.length:o,s?(yf.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a):(r[o]&&yf.isObject(r[o])||(r[o]=[]),t(e,n,r[o],i)&&yf.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(yf.isFormData(e)&&yf.isFunction(e.entries)){const n={};return yf.forEachEntry(e,((e,r)=>{t(function(e){return yf.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},qf={"Content-Type":void 0},Vf={transitional:kf,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=yf.isObject(e);if(i&&yf.isHTMLForm(e)&&(e=new FormData(e)),yf.isFormData(e))return r&&r?JSON.stringify(Bf(e)):e;if(yf.isArrayBuffer(e)||yf.isBuffer(e)||yf.isStream(e)||yf.isFile(e)||yf.isBlob(e))return e;if(yf.isArrayBufferView(e))return e.buffer;if(yf.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 Pf(e,new jf.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return jf.isNode&&yf.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=yf.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Pf(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(yf.isString(e))try{return(0,JSON.parse)(e),yf.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Vf.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&yf.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 bf.from(e,bf.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:jf.classes.FormData,Blob:jf.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};yf.forEach(["delete","get","head"],(function(e){Vf.headers[e]={}})),yf.forEach(["post","put","patch"],(function(e){Vf.headers[e]=yf.merge(qf)}));const Gf=Vf,$f=yf.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"]),zf=Symbol("internals");function Qf(e){return e&&String(e).trim().toLowerCase()}function Wf(e){return!1===e||null==e?e:yf.isArray(e)?e.map(Wf):String(e)}function Kf(e,t,n,r){return yf.isFunction(r)?r.call(this,t,n):yf.isString(t)?yf.isString(r)?-1!==t.indexOf(r):yf.isRegExp(r)?r.test(t):void 0:void 0}class Yf{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=Qf(t);if(!i)throw new Error("header name must be a non-empty string");const o=yf.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=Wf(e))}const o=(e,t)=>yf.forEach(e,((e,n)=>i(e,n,t)));return yf.isPlainObject(e)||e instanceof this.constructor?o(e,t):yf.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]&&$f[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=Qf(e)){const n=yf.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(yf.isFunction(t))return t.call(this,e,n);if(yf.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Qf(e)){const n=yf.findKey(this,e);return!(!n||t&&!Kf(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=Qf(e)){const i=yf.findKey(n,e);!i||t&&!Kf(0,n[i],i,t)||(delete n[i],r=!0)}}return yf.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 yf.forEach(this,((r,i)=>{const o=yf.findKey(n,i);if(o)return t[o]=Wf(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]=Wf(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return yf.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&yf.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[zf]=this[zf]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Qf(e);t[r]||(function(e,t){const n=yf.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 yf.isArray(e)?e.forEach(r):r(e),this}}Yf.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),yf.freezeMethods(Yf.prototype),yf.freezeMethods(Yf);const Hf=Yf;function Jf(e,t){const n=this||Gf,r=t||n,i=Hf.from(r.headers);let o=r.data;return yf.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function Xf(e){return!(!e||!e.__CANCEL__)}function Zf(e,t,n){bf.call(this,null==e?"canceled":e,bf.ERR_CANCELED,t,n),this.name="CanceledError"}yf.inherits(Zf,bf,{__CANCEL__:!0});const ep=Zf,tp=jf.isStandardBrowserEnv?{write:function(e,t,n,r,i,o){const a=[];a.push(e+"="+encodeURIComponent(t)),yf.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),yf.isString(r)&&a.push("path="+r),yf.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 np(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 rp=jf.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=yf.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function ip(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 op={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const i=Hf.from(e.headers).normalize(),o=e.responseType;let a;function s(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}yf.isFormData(r)&&(jf.isStandardBrowserEnv||jf.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=np(e.baseURL,e.url);function l(){if(!u)return;const r=Hf.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new bf("Request failed with status code "+n.status,[bf.ERR_BAD_REQUEST,bf.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(),Nf(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 bf("Request aborted",bf.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new bf("Network Error",bf.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||kf;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new bf(t,r.clarifyTimeoutError?bf.ETIMEDOUT:bf.ECONNABORTED,e,u)),u=null},jf.isStandardBrowserEnv){const t=(e.withCredentials||rp(c))&&e.xsrfCookieName&&tp.read(e.xsrfCookieName);t&&i.set(e.xsrfHeaderName,t)}void 0===r&&i.setContentType(null),"setRequestHeader"in u&&yf.forEach(i.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),yf.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),o&&"json"!==o&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",ip(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",ip(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=t=>{u&&(n(!t||t.type?new ep(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===jf.protocols.indexOf(f)?n(new bf("Unsupported protocol "+f+":",bf.ERR_BAD_REQUEST,e)):u.send(r||null)}))}};yf.forEach(op,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));function ap(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ep(null,e)}function sp(e){return ap(e),e.headers=Hf.from(e.headers),e.data=Jf.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),(e=>{e=yf.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let i=0;i<t&&(n=e[i],!(r=yf.isString(n)?op[n.toLowerCase()]:n));i++);if(!r){if(!1===r)throw new bf(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(yf.hasOwnProp(op,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`)}if(!yf.isFunction(r))throw new TypeError("adapter is not a function");return r})(e.adapter||Gf.adapter)(e).then((function(t){return ap(e),t.data=Jf.call(e,e.transformResponse,t),t.headers=Hf.from(t.headers),t}),(function(t){return Xf(t)||(ap(e),t&&t.response&&(t.response.data=Jf.call(e,e.transformResponse,t.response),t.response.headers=Hf.from(t.response.headers))),Promise.reject(t)}))}const up=e=>e instanceof Hf?e.toJSON():e;function cp(e,t){t=t||{};const n={};function r(e,t,n){return yf.isPlainObject(e)&&yf.isPlainObject(t)?yf.merge.call({caseless:n},e,t):yf.isPlainObject(t)?yf.merge({},t):yf.isArray(t)?t.slice():t}function i(e,t,n){return yf.isUndefined(t)?yf.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!yf.isUndefined(t))return r(void 0,t)}function a(e,t){return yf.isUndefined(t)?yf.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(up(e),up(t),!0)};return yf.forEach(Object.keys(e).concat(Object.keys(t)),(function(r){const o=u[r]||i,a=o(e[r],t[r],r);yf.isUndefined(a)&&o!==s||(n[r]=a)})),n}const lp={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{lp[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const fp={};lp.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 bf(r(i," has been removed"+(t?" in "+t:"")),bf.ERR_DEPRECATED);return t&&!fp[i]&&(fp[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 pp={assertOptions:function(e,t,n){if("object"!=typeof e)throw new bf("options must be an object",bf.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 bf("option "+o+" must be "+n,bf.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new bf("Unknown option "+o,bf.ERR_BAD_OPTION)}},validators:lp},dp=pp.validators;class hp{constructor(e){this.defaults=e,this.interceptors={request:new xf,response:new xf}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=cp(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;let o;void 0!==n&&pp.assertOptions(n,{silentJSONParsing:dp.transitional(dp.boolean),forcedJSONParsing:dp.transitional(dp.boolean),clarifyTimeoutError:dp.transitional(dp.boolean)},!1),void 0!==r&&pp.assertOptions(r,{encode:dp.function,serialize:dp.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase(),o=i&&yf.merge(i.common,i[t.method]),o&&yf.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=Hf.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=[sp.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=sp.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 Nf(np((e=cp(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}yf.forEach(["delete","get","head","options"],(function(e){hp.prototype[e]=function(t,n){return this.request(cp(n||{},{method:e,url:t,data:(n||{}).data}))}})),yf.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(cp(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}hp.prototype[e]=t(),hp.prototype[e+"Form"]=t(!0)}));const vp=hp;class yp{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 ep(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 yp((function(t){e=t})),cancel:e}}}const mp=yp,gp={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(gp).forEach((([e,t])=>{gp[t]=e}));const _p=gp,bp=function e(t){const n=new vp(t),r=jl(vp.prototype.request,n);return yf.extend(r,vp.prototype,n,{allOwnKeys:!0}),yf.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(cp(t,n))},r}(Gf);bp.Axios=vp,bp.CanceledError=ep,bp.CancelToken=mp,bp.isCancel=Xf,bp.VERSION="1.2.2",bp.toFormData=Pf,bp.AxiosError=bf,bp.Cancel=bp.CanceledError,bp.all=function(e){return Promise.all(e)},bp.spread=function(e){return function(t){return e.apply(null,t)}},bp.isAxiosError=function(e){return yf.isObject(e)&&!0===e.isAxiosError},bp.mergeConfig=cp,bp.AxiosHeaders=Hf,bp.formToJSON=e=>Bf(yf.isHTMLForm(e)?new FormData(e):e),bp.HttpStatusCode=_p,bp.default=bp;const Ep=bp;var wp=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)}}(),Sp=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 wp(t,e),t.prototype.stopPolling=function(){this.stopped=!0},t}(nr),Ip=function(){function e(e,t){this.dynamicData=t;var n=e.apiKey,r=e.baseEdgeUri;this.httpClient=Ep.create({baseURL:r,headers:{"X-API-KEY":n,source:on}})}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){return this.get("/v1/c/".concat(e,"/entitlements.json"))},e.prototype.getSdkConfiguration=function(){return this.get("/v1/config/client-sdk-configuration.json")},e.prototype.watchEntitlements=function(e,t){var n=this;return new Sp((function(){return n.getEntitlements(e)}),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}(),Tp=function(){return Tp=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},Tp.apply(this,arguments)},Pp=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())}))},Cp=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])}}},Ap=function(){function e(e,t){var n,r,i,o,a,s;this.modelMapper=new yn,this.eventEmitter=new Ll,this.showWidgetsWatermark=!1,this.configuration=e,this.edgeApiClient=Ip.create(e,e),this.graphClient=(n=this.configuration,r=n.apiKey,i=n.baseUri,o=ms(r,n),a=function(e){return new si({uri:"".concat(e,"/graphql"),fetch:ls()})}(i),s=new vs({attempts:{max:5,retryIf:gs},delay:{initial:500,max:2e3,jitter:!0}}),new va({link:o.concat(s.concat(a)),cache:new ss({possibleTypes:us.g}),name:"js-client-sdk",version:ys.version})),this.batchedGraphClient=function(e){var t=e.apiKey,n=e.baseUri,r=ms(t,e),i=function(e){return new ds({uri:"".concat(e,"/graphql"),batchMax:25,batchInterval:500,fetch:ls()})}(n);return new va({link:r.concat(i),cache:new ss({possibleTypes:us.g}),name:"js-client-sdk",version:ys.version})}(this.configuration),this.loggerService=t,this.apiGateway=new Zt(this.graphClient,this.edgeApiClient),this.entitlementsService=null,this.initializationStateTracker=new Ol(this.eventEmitter)}return e.initialize=function(t){var n=function(e){var t=an(),n=e.baseEdgeUri?e.baseEdgeUri:e.baseUri?sn(e.baseUri):t.baseEdgeUri;return rn()(t,e,{baseEdgeUri:n})}(t),r=new xe(n.logConfiguration.logger,n.logConfiguration.logLevel);!function(e,t){if(tn()(e.apiKey)){var n="You must configure the client with an SDK key";throw t.error(n),new Error(n)}var r=an();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):i.initializationStateTracker.signalSuccessInit()})).catch((function(e){return i.initializationStateTracker.signalFailedInit(e)})),i},e.prototype.waitForInitialization=function(){return Pp(this,void 0,void 0,(function(){var e=this;return Cp(this,(function(t){return[2,this.initializationStateTracker.getInitializationPromise().then((function(){return e}))]}))}))},e.initializeSdk=function(e){var t,n,r,i;return Pp(this,void 0,void 0,(function(){var o,a,s,u;return Cp(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,!Dl.getClient()&&(null==a?void 0:a.sentryDsn)&&(h=a.sentryDsn,l=void 0,f=void 0,d=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:h,normalizeDepth:6,release:"".concat("js-client-sdk","@").concat(Cl.version),integrations:Al,stackParser:Xc,transport:Uu()?dl:hl},t=new Tl(e),Dl.bindClient(t),[2]}))},new((p=void 0)||(p=Promise))((function(e,t){function n(e){try{i(d.next(e))}catch(e){t(e)}}function r(e){try{i(d.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((d=d.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)===O.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,d,h}))}))},Object.defineProperty(e.prototype,"isCustomerLoaded",{get:function(){var e;return(null===(e=this.entitlementsService)||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){return void 0===t&&(t=null),Pp(this,void 0,void 0,(function(){var n,r=this;return Cp(this,(function(i){switch(i.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,ws.isString)(e))throw new Error("customerId parameter must be a string");if(t&&!(0,ws.isString)(t))throw new Error("customerToken parameter must be a string");this.configuration.customerId=e,this.configuration.customerToken=t,this.entitlementsService=new Ps(e,new _s,this.graphClient,this.batchedGraphClient,this.edgeApiClient,this.loggerService,(function(e){return r.eventEmitter.emit("entitlementsUpdated",e)})),this.configuration.useEntitlementPolling&&this.entitlementsService.startPolling(this.configuration.entitlementPollingInterval),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,Nl((function(){return Pp(r,void 0,void 0,(function(){var e;return Cp(this,(function(t){switch(t.label){case 0:return[4,null===(e=this.entitlementsService)||void 0===e?void 0:e.loadEntitlements()];case 1:return t.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 i.sent(),this.initializationStateTracker.signalSuccessInit(),[3,4];case 3:return n=i.sent(),this.initializationStateTracker.signalFailedInit(n),[3,4];case 4:return[2]}}))}))},e.prototype.clearCustomer=function(){var e;null===(e=this.entitlementsService)||void 0===e||e.stopPolling(),this.entitlementsService=null,this.configuration.customerId=null,this.configuration.customerToken=null},e.prototype.refresh=function(){return Pp(this,void 0,void 0,(function(){var e=this;return Cp(this,(function(t){return[2,Nl((function(){return Pp(e,void 0,void 0,(function(){var e;return Cp(this,(function(t){switch(t.label){case 0:return[4,null===(e=this.entitlementsService)||void 0===e?void 0:e.refresh()];case 1:return t.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=(null==i?void 0:i.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[r])||{},a=Tp(Tp({},Ue),o);return xl((function(){return n.entitlementsService&&n.isCustomerLoaded?n.entitlementsService.getBooleanEntitlement(r,a,i):a}),{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}})||a},e.prototype.getNumericEntitlement=function(e){var t,n=this,r=e.featureId,i=e.options,o=(null==i?void 0:i.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[r])||{},a=Tp(Tp({},Me),o);return xl((function(){return n.entitlementsService&&n.isCustomerLoaded?n.entitlementsService.getNumericEntitlement(r,a,i):a}),{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}})||a},e.prototype.getMeteredEntitlement=function(e){var t,n=this,r=e.featureId,i=e.options,o=(null==i?void 0:i.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[r])||{},a=Tp(Tp({},Le),o);return xl((function(){return n.entitlementsService&&n.isCustomerLoaded?n.entitlementsService.getMeteredEntitlement(r,a,i):a}),{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}})||a},e.prototype.getPaywall=function(e){var t=void 0===e?{}:e,n=t.productId,r=t.context,i=t.billingCountryCode;return Pp(this,void 0,void 0,(function(){var e,t=this;return Cp(this,(function(o){return e={productId:n,customerId:this.configuration.customerId,context:r,billingCountryCode:i},[2,Nl((function(){return Pp(t,void 0,void 0,(function(){var t;return Cp(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 Pp(this,void 0,void 0,(function(){var e=this;return Cp(this,(function(t){return[2,Nl((function(){return Pp(e,void 0,void 0,(function(){var e;return Cp(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 Pp(this,void 0,void 0,(function(){var e=this;return Cp(this,(function(t){return[2,Nl((function(){return Pp(e,void 0,void 0,(function(){var e,t,n;return Cp(this,(function(r){switch(r.label){case 0:return e=un(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(){return Pp(this,void 0,void 0,(function(){var e=this;return Cp(this,(function(t){return[2,Nl((function(){return Pp(e,void 0,void 0,(function(){var e;return Cp(this,(function(t){switch(t.label){case 0:return e=un(this.configuration),[4,this.apiGateway.customers.getCustomerPortal(e)];case 1:return[2,t.sent().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 Pp(this,void 0,void 0,(function(){var e=this;return Cp(this,(function(t){switch(t.label){case 0:return[4,Nl((function(){return Pp(e,void 0,void 0,(function(){var e;return Cp(this,(function(t){return un(this.configuration),[2,(null===(e=this.entitlementsService)||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()||gn(this.configuration.entitlementsFallback)]}}))}))},e.prototype.estimateSubscription=function(e){return Pp(this,void 0,void 0,(function(){var t=this;return Cp(this,(function(n){return[2,Nl((function(){return Pp(t,void 0,void 0,(function(){var t;return Cp(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 Pp(this,void 0,void 0,(function(){var t=this;return Cp(this,(function(n){return[2,Nl((function(){return Pp(t,void 0,void 0,(function(){var t;return Cp(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 Pp(this,void 0,void 0,(function(){var e,t,n,i,a,s,u;return Cp(this,(function(c){switch(c.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("checkoutCompleted"),!t)return this.loggerService.log("`waitCheckoutCompleted` was called, but no `subscriptionId` found in query params"),[2,null];if(!n||"false"===n.toLowerCase())return this.loggerService.log("The checkout session was cancelled by the user"),[2,null];i=Date.now(),a=!1,s=null,c.label=1;case 1:return a?[4,new Promise((function(e){return setTimeout(e,1e3)}))]:[3,3];case 2:c.sent(),c.label=3;case 3:return[4,this.getCustomer()];case 4:u=c.sent(),s=u.getActiveSubscriptions().find((function(e){return e.id===t}))||null,a=!0,c.label=5;case 5:if(!s&&Date.now()-i<r)return[3,1];c.label=6;case 6:if(!s)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:c.sent(),c.label=8;case 8:return[2,s]}}))}))},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.u0=t.QZ=t.$V=t.ku=t.Jk=t.p_=t._H=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.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.q6=t.r4=t.nN=t.mG=t.Xs=t._N=t.OK=t.cU=t.o5=t.Jy=t.L0=t.XT=t.zj=t.hk=t.Ug=t.J5=t.bO=t.d4=t.Rz=t.Eh=t.zd=t.bG=t.N9=t.wE=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=void 0,t.pW=t.ro=t.RV=t.Q$=t.Ze=t.K5=t.wO=t.m5=t.Ai=t.x3=t.EQ=t.rD=t.eK=t.$j=void 0;const r=n(2909);var i,o,a,s,u,c,l,f,p,d,h,v,y,m,g,_,b,E,w,S,I,T,P,C,A,D,O,R,N,x,k,F,U,M,L,j,B,q,V,G,$,z,Q,W,K,Y,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;(Se=t.fE||(t.fE={})).CustomerNotFound="CustomerNotFound",Se.FeatureNotFound="FeatureNotFound",Se.NoActiveSubscription="NoActiveSubscription",Se.NoFeatureEntitlementInSubscription="NoFeatureEntitlementInSubscription",Se.RequestedUsageExceedingLimit="RequestedUsageExceedingLimit",Se.Unknown="Unknown",(we=t.dp||(t.dp={})).Active="ACTIVE",we.Blocked="BLOCKED",(Ee=t.nw||(t.nw={})).BillingId="billingId",Ee.CreatedAt="createdAt",Ee.Description="description",Ee.DisplayName="displayName",Ee.EnvironmentId="environmentId",Ee.Id="id",Ee.IsLatest="isLatest",Ee.PricingType="pricingType",Ee.ProductId="productId",Ee.RefId="refId",Ee.Status="status",Ee.UpdatedAt="updatedAt",Ee.VersionNumber="versionNumber",(be=t.v2||(t.v2={})).Center="CENTER",be.Left="LEFT",be.Right="RIGHT",(t.Mb||(t.Mb={})).Id="id",(_e=t.E3||(t.E3={})).Client="CLIENT",_e.Server="SERVER",(ge=t.PL||(t.PL={})).StartOfTheMonth="START_OF_THE_MONTH",ge.SubscriptionStart="SUBSCRIPTION_START",(me=t.Fz||(t.Fz={})).FlatFee="FLAT_FEE",me.PerUnit="PER_UNIT",me.UsageBased="USAGE_BASED",(ye=t.tv||(t.tv={})).Annually="ANNUALLY",ye.Monthly="MONTHLY",(ve=t.u4||(t.u4={})).Added="ADDED",ve.Deleted="DELETED",ve.Modified="MODIFIED",ve.Reordered="REORDERED",(he=t.i2||(t.i2={})).BillingId="billingId",he.CreatedAt="createdAt",he.Description="description",he.EnvironmentId="environmentId",he.Id="id",he.Name="name",he.RefId="refId",he.Status="status",he.Type="type",he.UpdatedAt="updatedAt",(de=t.K7||(t.K7={})).Active="ACTIVE",de.Archived="ARCHIVED",(pe=t.$i||(t.$i={})).Fixed="FIXED",pe.Percentage="PERCENTAGE",(fe=t.F||(t.F={})).Aed="AED",fe.All="ALL",fe.Amd="AMD",fe.Ang="ANG",fe.Aud="AUD",fe.Awg="AWG",fe.Azn="AZN",fe.Bam="BAM",fe.Bbd="BBD",fe.Bdt="BDT",fe.Bgn="BGN",fe.Bif="BIF",fe.Bmd="BMD",fe.Bnd="BND",fe.Bsd="BSD",fe.Bwp="BWP",fe.Byn="BYN",fe.Bzd="BZD",fe.Cad="CAD",fe.Cdf="CDF",fe.Chf="CHF",fe.Clp="CLP",fe.Cny="CNY",fe.Czk="CZK",fe.Djf="DJF",fe.Dkk="DKK",fe.Dop="DOP",fe.Dzd="DZD",fe.Egp="EGP",fe.Etb="ETB",fe.Eur="EUR",fe.Fjd="FJD",fe.Gbp="GBP",fe.Gel="GEL",fe.Gip="GIP",fe.Gmd="GMD",fe.Gnf="GNF",fe.Gyd="GYD",fe.Hkd="HKD",fe.Hrk="HRK",fe.Htg="HTG",fe.Idr="IDR",fe.Ils="ILS",fe.Inr="INR",fe.Isk="ISK",fe.Jmd="JMD",fe.Jpy="JPY",fe.Kes="KES",fe.Kgs="KGS",fe.Khr="KHR",fe.Kmf="KMF",fe.Krw="KRW",fe.Kyd="KYD",fe.Kzt="KZT",fe.Lbp="LBP",fe.Lkr="LKR",fe.Lrd="LRD",fe.Lsl="LSL",fe.Mad="MAD",fe.Mdl="MDL",fe.Mga="MGA",fe.Mkd="MKD",fe.Mmk="MMK",fe.Mnt="MNT",fe.Mop="MOP",fe.Mro="MRO",fe.Mvr="MVR",fe.Mwk="MWK",fe.Mxn="MXN",fe.Myr="MYR",fe.Mzn="MZN",fe.Nad="NAD",fe.Ngn="NGN",fe.Nok="NOK",fe.Npr="NPR",fe.Nzd="NZD",fe.Pgk="PGK",fe.Php="PHP",fe.Pkr="PKR",fe.Pln="PLN",fe.Pyg="PYG",fe.Qar="QAR",fe.Ron="RON",fe.Rsd="RSD",fe.Rub="RUB",fe.Rwf="RWF",fe.Sar="SAR",fe.Sbd="SBD",fe.Scr="SCR",fe.Sek="SEK",fe.Sgd="SGD",fe.Sle="SLE",fe.Sll="SLL",fe.Sos="SOS",fe.Szl="SZL",fe.Thb="THB",fe.Tjs="TJS",fe.Top="TOP",fe.Try="TRY",fe.Ttd="TTD",fe.Tzs="TZS",fe.Uah="UAH",fe.Ugx="UGX",fe.Usd="USD",fe.Uzs="UZS",fe.Vnd="VND",fe.Vuv="VUV",fe.Wst="WST",fe.Xaf="XAF",fe.Xcd="XCD",fe.Xof="XOF",fe.Xpf="XPF",fe.Yer="YER",fe.Zar="ZAR",fe.Zmw="ZMW",(le=t.rp||(t.rp={})).BillingId="billingId",le.CreatedAt="createdAt",le.CrmHubspotCompanyId="crmHubspotCompanyId",le.CrmHubspotCompanyUrl="crmHubspotCompanyUrl",le.CrmId="crmId",le.CustomerId="customerId",le.Email="email",le.EnvironmentId="environmentId",le.Id="id",le.Name="name",le.RefId="refId",le.UpdatedAt="updatedAt",(ce=t.Pg||(t.Pg={})).BillingId="billingId",ce.CancelReason="cancelReason",ce.CancellationDate="cancellationDate",ce.CreatedAt="createdAt",ce.CrmId="crmId",ce.CrmLinkUrl="crmLinkUrl",ce.EffectiveEndDate="effectiveEndDate",ce.EndDate="endDate",ce.EnvironmentId="environmentId",ce.Id="id",ce.OldBillingId="oldBillingId",ce.PricingType="pricingType",ce.RefId="refId",ce.StartDate="startDate",ce.Status="status",ce.SubscriptionId="subscriptionId",ce.TrialEndDate="trialEndDate",(ue=t.C2||(t.C2={})).Forever="FOREVER",ue.Once="ONCE",ue.Repeating="REPEATING",(se=t.Lb||(t.Lb={})).Fixed="FIXED",se.Percentage="PERCENTAGE",(ae=t.XH||(t.XH={})).Day="DAY",ae.Hour="HOUR",ae.Month="MONTH",ae.Week="WEEK",(oe=t.FT||(t.FT={})).BlackList="BLACK_LIST",oe.WhiteList="WHITE_LIST",(ie=t.IZ||(t.IZ={})).Done="DONE",ie.Failed="FAILED",ie.InProgress="IN_PROGRESS",ie.NotProvisioned="NOT_PROVISIONED",(re=t.$B||(t.$B={})).CreatedAt="createdAt",re.DisplayName="displayName",re.Id="id",re.Slug="slug",(ne=t.jK||(t.jK={})).AccountNotFoundError="AccountNotFoundError",ne.AddonHasToHavePriceError="AddonHasToHavePriceError",ne.AddonNotFound="AddonNotFound",ne.ArchivedCouponCantBeApplied="ArchivedCouponCantBeApplied",ne.AuthCustomerMismatch="AuthCustomerMismatch",ne.BadUserInput="BadUserInput",ne.BillingPeriodMissingError="BillingPeriodMissingError",ne.CannotDeleteCustomerError="CannotDeleteCustomerError",ne.CannotDeleteFeatureError="CannotDeleteFeatureError",ne.CannotEditPackageInNonDraftMode="CannotEditPackageInNonDraftMode",ne.CheckoutIsNotSupported="CheckoutIsNotSupported",ne.CheckoutOptionsMissing="CheckoutOptionsMissing",ne.CouponNotFound="CouponNotFound",ne.CustomerAlreadyHaveCustomerCoupon="CustomerAlreadyHaveCustomerCoupon",ne.CustomerAlreadyUsesCoupon="CustomerAlreadyUsesCoupon",ne.CustomerHasNoPaymentMethod="CustomerHasNoPaymentMethod",ne.CustomerNoBillingId="CustomerNoBillingId",ne.CustomerNotFound="CustomerNotFound",ne.DowngradeBillingPeriodNotSupportedError="DowngradeBillingPeriodNotSupportedError",ne.DraftPlanCantBeArchived="DraftPlanCantBeArchived",ne.DuplicatedEntityNotAllowed="DuplicatedEntityNotAllowed",ne.EditAllowedOnDraftPackageOnlyError="EditAllowedOnDraftPackageOnlyError",ne.EntitlementsMustBelongToSamePackage="EntitlementsMustBelongToSamePackage",ne.EntityIdDifferentFromRefIdError="EntityIdDifferentFromRefIdError",ne.EnvironmentMissing="EnvironmentMissing",ne.ExperimentAlreadyRunning="ExperimentAlreadyRunning",ne.ExperimentNotFoundError="ExperimentNotFoundError",ne.ExperimentStatusError="ExperimentStatusError",ne.FailedToCreateCheckoutSessionError="FailedToCreateCheckoutSessionError",ne.FailedToImportCustomer="FailedToImportCustomer",ne.FeatureNotFound="FeatureNotFound",ne.FetchAllCountriesPricesNotAllowed="FetchAllCountriesPricesNotAllowed",ne.IdentityForbidden="IdentityForbidden",ne.ImportAlreadyInProgress="ImportAlreadyInProgress",ne.InitStripePaymentMethodError="InitStripePaymentMethodError",ne.IntegrationNotFound="IntegrationNotFound",ne.IntegrityViolation="IntegrityViolation",ne.InvalidAddressError="InvalidAddressError",ne.InvalidArgumentError="InvalidArgumentError",ne.InvalidCancellationDate="InvalidCancellationDate",ne.InvalidEntitlementResetPeriod="InvalidEntitlementResetPeriod",ne.InvalidMemberDelete="InvalidMemberDelete",ne.InvalidQuantity="InvalidQuantity",ne.InvalidSubscriptionStatus="InvalidSubscriptionStatus",ne.InvalidUpdatePriceUnitAmountError="InvalidUpdatePriceUnitAmountError",ne.InvalidUsageValueForIncrementalFeatureError="InvalidUsageValueForIncrementalFeatureError",ne.MemberInvitationError="MemberInvitationError",ne.MemberNotFound="MemberNotFound",ne.MeteringNotAvailableForFeatureType="MeteringNotAvailableForFeatureType",ne.MissingEntityIdError="MissingEntityIdError",ne.NoFeatureEntitlementInSubscription="NoFeatureEntitlementInSubscription",ne.NoProductsAvailable="NoProductsAvailable",ne.OperationNotAllowedDuringInProgressExperiment="OperationNotAllowedDuringInProgressExperiment",ne.PackageAlreadyPublished="PackageAlreadyPublished",ne.PackagePricingTypeNotSet="PackagePricingTypeNotSet",ne.PlanAlreadyExtended="PlanAlreadyExtended",ne.PlanCannotBePublishWhenBasePlanIsDraft="PlanCannotBePublishWhenBasePlanIsDraft",ne.PlanIsUsedAsDefaultStartPlan="PlanIsUsedAsDefaultStartPlan",ne.PlanIsUsedAsDowngradePlan="PlanIsUsedAsDowngradePlan",ne.PlanNotFound="PlanNotFound",ne.PlanWithChildCantBeDeleted="PlanWithChildCantBeDeleted",ne.PlansCircularDependencyError="PlansCircularDependencyError",ne.PriceNotFound="PriceNotFound",ne.PromotionCodeCustomerNotFirstPurchase="PromotionCodeCustomerNotFirstPurchase",ne.PromotionCodeMaxRedemptionsReached="PromotionCodeMaxRedemptionsReached",ne.PromotionCodeMinimumAmountNotReached="PromotionCodeMinimumAmountNotReached",ne.PromotionCodeNotActive="PromotionCodeNotActive",ne.PromotionCodeNotForCustomer="PromotionCodeNotForCustomer",ne.PromotionCodeNotFound="PromotionCodeNotFound",ne.RateLimitExceeded="RateLimitExceeded",ne.ResyncAlreadyInProgress="ResyncAlreadyInProgress",ne.SelectedBillingModelDoesntMatchImportedItemError="SelectedBillingModelDoesntMatchImportedItemError",ne.StripeCustomerIsDeleted="StripeCustomerIsDeleted",ne.SubscriptionAlreadyCanceledOrExpired="SubscriptionAlreadyCanceledOrExpired",ne.SubscriptionMustHaveSinglePlanError="SubscriptionMustHaveSinglePlanError",ne.SubscriptionNotFound="SubscriptionNotFound",ne.TrialMinDateError="TrialMinDateError",ne.TrialMustBeCancelledImmediately="TrialMustBeCancelledImmediately",ne.UnPublishedPackage="UnPublishedPackage",ne.Unauthenticated="Unauthenticated",ne.UncompatibleSubscriptionAddon="UncompatibleSubscriptionAddon",ne.UnexpectedError="UnexpectedError",ne.UnsupportedFeatureType="UnsupportedFeatureType",ne.UnsupportedSubscriptionScheduleType="UnsupportedSubscriptionScheduleType",ne.UnsupportedVendorIdentifier="UnsupportedVendorIdentifier",(te=t.i3||(t.i3={})).AddonCreated="ADDON_CREATED",te.AddonDeleted="ADDON_DELETED",te.AddonUpdated="ADDON_UPDATED",te.CouponArchived="COUPON_ARCHIVED",te.CouponCreated="COUPON_CREATED",te.CouponUpdated="COUPON_UPDATED",te.CreateSubscriptionFailed="CREATE_SUBSCRIPTION_FAILED",te.CustomerCreated="CUSTOMER_CREATED",te.CustomerDeleted="CUSTOMER_DELETED",te.CustomerPaymentFailed="CUSTOMER_PAYMENT_FAILED",te.CustomerUpdated="CUSTOMER_UPDATED",te.EdgeApiDataResync="EDGE_API_DATA_RESYNC",te.EntitlementsUpdated="ENTITLEMENTS_UPDATED",te.EntitlementDenied="ENTITLEMENT_DENIED",te.EntitlementGranted="ENTITLEMENT_GRANTED",te.EntitlementRequested="ENTITLEMENT_REQUESTED",te.EnvironmentDeleted="ENVIRONMENT_DELETED",te.FeatureCreated="FEATURE_CREATED",te.FeatureDeleted="FEATURE_DELETED",te.FeatureUpdated="FEATURE_UPDATED",te.ImportIntegrationCatalogTriggered="IMPORT_INTEGRATION_CATALOG_TRIGGERED",te.ImportIntegrationCustomersTriggered="IMPORT_INTEGRATION_CUSTOMERS_TRIGGERED",te.MeasurementReported="MEASUREMENT_REPORTED",te.PackagePublished="PACKAGE_PUBLISHED",te.PlanCreated="PLAN_CREATED",te.PlanDeleted="PLAN_DELETED",te.PlanUpdated="PLAN_UPDATED",te.ProductCreated="PRODUCT_CREATED",te.ProductDeleted="PRODUCT_DELETED",te.ProductUpdated="PRODUCT_UPDATED",te.PromotionalEntitlementExpired="PROMOTIONAL_ENTITLEMENT_EXPIRED",te.PromotionalEntitlementGranted="PROMOTIONAL_ENTITLEMENT_GRANTED",te.PromotionalEntitlementRevoked="PROMOTIONAL_ENTITLEMENT_REVOKED",te.PromotionalEntitlementUpdated="PROMOTIONAL_ENTITLEMENT_UPDATED",te.ResyncIntegrationTriggered="RESYNC_INTEGRATION_TRIGGERED",te.SubscriptionCanceled="SUBSCRIPTION_CANCELED",te.SubscriptionCreated="SUBSCRIPTION_CREATED",te.SubscriptionExpired="SUBSCRIPTION_EXPIRED",te.SubscriptionTrialConverted="SUBSCRIPTION_TRIAL_CONVERTED",te.SubscriptionTrialEndsSoon="SUBSCRIPTION_TRIAL_ENDS_SOON",te.SubscriptionTrialExpired="SUBSCRIPTION_TRIAL_EXPIRED",te.SubscriptionTrialStarted="SUBSCRIPTION_TRIAL_STARTED",te.SubscriptionUpdated="SUBSCRIPTION_UPDATED",te.SubscriptionUsageUpdated="SUBSCRIPTION_USAGE_UPDATED",te.SyncFailed="SYNC_FAILED",te.WidgetConfigurationUpdated="WIDGET_CONFIGURATION_UPDATED",(ee=t.o_||(t.o_={})).CreatedAt="createdAt",ee.EnvironmentId="environmentId",ee.Id="id",ee.Name="name",ee.ProductId="productId",ee.RefId="refId",ee.Status="status",(Z=t.bW||(t.bW={})).Completed="COMPLETED",Z.Draft="DRAFT",Z.InProgress="IN_PROGRESS",(X=t.GA||(t.GA={})).CreatedAt="createdAt",X.Description="description",X.DisplayName="displayName",X.EnvironmentId="environmentId",X.FeatureStatus="featureStatus",X.FeatureType="featureType",X.Id="id",X.MeterType="meterType",X.RefId="refId",X.UpdatedAt="updatedAt",(J=t.iK||(t.iK={})).Active="ACTIVE",J.New="NEW",J.Suspended="SUSPENDED",(H=t.Te||(t.Te={})).Boolean="BOOLEAN",H.Number="NUMBER",(Y=t.U9||(t.U9={})).Bold="BOLD",Y.Normal="NORMAL",(K=t.uM||(t.uM={})).CreatedAt="createdAt",K.Endpoint="endpoint",K.EnvironmentId="environmentId",K.Id="id",K.Status="status",(W=t.qB||(t.qB={})).Active="ACTIVE",W.Inactive="INACTIVE",(Q=t.B8||(t.B8={})).CreatedAt="createdAt",Q.EnvironmentId="environmentId",Q.Id="id",Q.Status="status",Q.TaskType="taskType",(z=t.Us||(t.Us={})).CreatedAt="createdAt",z.EnvironmentId="environmentId",z.Id="id",z.VendorIdentifier="vendorIdentifier",($=t.Ky||(t.Ky={})).CreatedAt="createdAt",$.Id="id",(G=t.XY||(t.XY={})).Invited="INVITED",G.Registered="REGISTERED",(V=t.pu||(t.pu={})).Fluctuating="Fluctuating",V.Incremental="Incremental",V.None="None",(q=t.pS||(t.pS={})).StartOfTheMonth="StartOfTheMonth",q.SubscriptionStart="SubscriptionStart",(B=t.zv||(t.zv={})).BillingId="billingId",B.CreatedAt="createdAt",B.Description="description",B.DisplayName="displayName",B.EnvironmentId="environmentId",B.Id="id",B.IsLatest="isLatest",B.PricingType="pricingType",B.ProductId="productId",B.RefId="refId",B.Status="status",B.UpdatedAt="updatedAt",B.VersionNumber="versionNumber",(j=t.iI||(t.iI={})).CreatedAt="createdAt",j.EnvironmentId="environmentId",j.Id="id",j.PackageId="packageId",j.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",(F=t._H||(t._H={})).Custom="CUSTOM",F.Free="FREE",F.Paid="PAID",(k=t.p_||(t.p_={})).CreatedAt="createdAt",k.Description="description",k.DisplayName="displayName",k.EnvironmentId="environmentId",k.Id="id",k.IsDefaultProduct="isDefaultProduct",k.RefId="refId",k.UpdatedAt="updatedAt",(x=t.Jk||(t.Jk={})).Custom="CUSTOM",x.Lifetime="LIFETIME",x.OneMonth="ONE_MONTH",x.OneWeek="ONE_WEEK",x.OneYear="ONE_YEAR",x.SixMonth="SIX_MONTH",(N=t.ku||(t.ku={})).CreatedAt="createdAt",N.EnvironmentId="environmentId",N.Id="id",N.Status="status",N.UpdatedAt="updatedAt",(R=t.$V||(t.$V={})).Active="Active",R.Expired="Expired",R.Paused="Paused",(O=t.QZ||(t.QZ={})).CreateProrations="CREATE_PRORATIONS",O.InvoiceImmediately="INVOICE_IMMEDIATELY",(D=t.u0||(t.u0={})).PaymentRequired="PAYMENT_REQUIRED",D.Success="SUCCESS",(A=t.Z||(t.Z={})).AllCustomers="ALL_CUSTOMERS",A.NewCustomers="NEW_CUSTOMERS",(C=t.Sr||(t.Sr={})).Asc="ASC",C.Desc="DESC",(P=t.Xm||(t.Xm={})).NullsFirst="NULLS_FIRST",P.NullsLast="NULLS_LAST",(T=t.PO||(t.PO={})).JsClientSdk="JS_CLIENT_SDK",T.NodeServerSdk="NODE_SERVER_SDK",(I=t.ue||(t.ue={})).CreatedAt="createdAt",I.Id="id",I.Quantity="quantity",I.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.wE=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 m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){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=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=m(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})},y.call(_.prototype),y.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 S=[301,302,303,307,308];E.redirect=function(e,t){if(-1===S.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 w(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)}))}w.polyfill=!0,e.fetch||(e.fetch=w,e.Headers=p,e.Request=_,e.Response=E),t.Headers=p,t.Request=_,t.Response=E,t.fetch=w,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):[]}},2909:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>se,disableExperimentalFragmentVariables:()=>ee,disableFragmentWarnings:()=>X,enableExperimentalFragmentVariables:()=>Z,gql:()=>H,resetCaches:()=>J});var r=n(655);function i(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const o=/\r\n|[\n\r]/g;function a(e,t){let n=0,r=1;for(const a of e.body.matchAll(o)){if("number"==typeof a.index||i(!1),a.index>=t)break;n=a.index+a[0].length,r+=1}return{line:r,column:t+1-n}}function s(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,c=t.column+s,l=`${e.name}:${a}:${c}\n`,f=r.split(/\r\n|[\n\r]/g),p=f[i];if(p.length>120){const e=Math.floor(c/80),t=c%80,n=[];for(let e=0;e<p.length;e+=80)n.push(p.slice(e,e+80));return l+u([[`${a} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return l+u([[a-1+" |",f[i-1]],[`${a} |`,p],["|","^".padStart(c)],[`${a+1} |`,f[i+1]]])}function u(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}class c extends Error{constructor(e,t,n,r,i,o,s){var u,f,p;super(e),this.name="GraphQLError",this.path=null!=i?i:void 0,this.originalError=null!=o?o:void 0,this.nodes=l(Array.isArray(t)?t:t?[t]:void 0);const d=l(null===(u=this.nodes)||void 0===u?void 0:u.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=n?n:null==d||null===(f=d[0])||void 0===f?void 0:f.source,this.positions=null!=r?r:null==d?void 0:d.map((e=>e.start)),this.locations=r&&n?r.map((e=>a(n,e))):null==d?void 0:d.map((e=>a(e.source,e.start)));const h="object"==typeof(v=null==o?void 0:o.extensions)&&null!==v?null==o?void 0:o.extensions:void 0;var v;this.extensions=null!==(p=null!=s?s:h)&&void 0!==p?p:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=o&&o.stack?Object.defineProperty(this,"stack",{value:o.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,c):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(e+="\n\n"+s((t=n.loc).source,a(t.source,t.start)));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+s(this.source,t);var t;return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function l(e){return void 0===e||0===e.length?void 0:e}function f(e,t,n){return new c(`Syntax Error: ${n}`,void 0,e,[t])}var p=n(7359),d=n(2380);let h;var v;(v=h||(h={})).SOF="<SOF>",v.EOF="<EOF>",v.BANG="!",v.DOLLAR="$",v.AMP="&",v.PAREN_L="(",v.PAREN_R=")",v.SPREAD="...",v.COLON=":",v.EQUALS="=",v.AT="@",v.BRACKET_L="[",v.BRACKET_R="]",v.BRACE_L="{",v.PIPE="|",v.BRACE_R="}",v.NAME="Name",v.INT="Int",v.FLOAT="Float",v.STRING="String",v.BLOCK_STRING="BlockString",v.COMMENT="Comment";var m=n(4783);let y;!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(y||(y={}));var g=n(7392);function _(e){return e>=48&&e<=57}function b(e){return e>=97&&e<=122||e>=65&&e<=90}function E(e){return b(e)||95===e}class S{constructor(e){const t=new d.WU(h.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==h.EOF)do{if(e.next)e=e.next;else{const t=D(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===h.COMMENT);return e}}function w(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function I(e,t){return T(e.charCodeAt(t))&&C(e.charCodeAt(t+1))}function T(e){return e>=55296&&e<=56319}function C(e){return e>=56320&&e<=57343}function P(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return h.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function A(e,t,n,r,i){const o=e.line,a=1+n-e.lineStart;return new d.WU(t,n,r,o,a,i)}function D(e,t){const n=e.source.body,r=n.length;let i=t;for(;i<r;){const t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return O(e,i);case 33:return A(e,h.BANG,i,i+1);case 36:return A(e,h.DOLLAR,i,i+1);case 38:return A(e,h.AMP,i,i+1);case 40:return A(e,h.PAREN_L,i,i+1);case 41:return A(e,h.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return A(e,h.SPREAD,i,i+3);break;case 58:return A(e,h.COLON,i,i+1);case 61:return A(e,h.EQUALS,i,i+1);case 64:return A(e,h.AT,i,i+1);case 91:return A(e,h.BRACKET_L,i,i+1);case 93:return A(e,h.BRACKET_R,i,i+1);case 123:return A(e,h.BRACE_L,i,i+1);case 124:return A(e,h.PIPE,i,i+1);case 125:return A(e,h.BRACE_R,i,i+1);case 34:return 34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)?j(e,i):x(e,i)}if(_(t)||45===t)return R(e,i,t);if(E(t))return B(e,i);throw f(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":w(t)||I(n,i)?`Unexpected character: ${P(e,i)}.`:`Invalid character: ${P(e,i)}.`)}return A(e,h.EOF,r,r)}function O(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(10===e||13===e)break;if(w(e))++i;else{if(!I(n,i))break;i+=2}}return A(e,h.COMMENT,t,i,n.slice(t+1,i))}function R(e,t,n){const r=e.source.body;let i=t,o=n,a=!1;if(45===o&&(o=r.charCodeAt(++i)),48===o){if(o=r.charCodeAt(++i),_(o))throw f(e.source,i,`Invalid number, unexpected digit after 0: ${P(e,i)}.`)}else i=N(e,i,o),o=r.charCodeAt(i);if(46===o&&(a=!0,o=r.charCodeAt(++i),i=N(e,i,o),o=r.charCodeAt(i)),69!==o&&101!==o||(a=!0,o=r.charCodeAt(++i),43!==o&&45!==o||(o=r.charCodeAt(++i)),i=N(e,i,o),o=r.charCodeAt(i)),46===o||E(o))throw f(e.source,i,`Invalid number, expected digit but got: ${P(e,i)}.`);return A(e,a?h.FLOAT:h.INT,t,i,r.slice(t,i))}function N(e,t,n){if(!_(n))throw f(e.source,t,`Invalid number, expected digit but got: ${P(e,t)}.`);const r=e.source.body;let i=t+1;for(;_(r.charCodeAt(i));)++i;return i}function x(e,t){const n=e.source.body,r=n.length;let i=t+1,o=i,a="";for(;i<r;){const r=n.charCodeAt(i);if(34===r)return a+=n.slice(o,i),A(e,h.STRING,t,i+1,a);if(92!==r){if(10===r||13===r)break;if(w(r))++i;else{if(!I(n,i))throw f(e.source,i,`Invalid character within String: ${P(e,i)}.`);i+=2}}else{a+=n.slice(o,i);const t=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?k(e,i):F(e,i):L(e,i);a+=t.value,i+=t.size,o=i}}throw f(e.source,i,"Unterminated string.")}function k(e,t){const n=e.source.body;let r=0,i=3;for(;i<12;){const e=n.charCodeAt(t+i++);if(125===e){if(i<5||!w(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|M(e),r<0)break}throw f(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function F(e,t){const n=e.source.body,r=U(n,t+2);if(w(r))return{value:String.fromCodePoint(r),size:6};if(T(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=U(n,t+8);if(C(e))return{value:String.fromCodePoint(r,e),size:12}}throw f(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function U(e,t){return M(e.charCodeAt(t))<<12|M(e.charCodeAt(t+1))<<8|M(e.charCodeAt(t+2))<<4|M(e.charCodeAt(t+3))}function M(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function L(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw f(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function j(e,t){const n=e.source.body,r=n.length,i=e.line,o=1+t-e.lineStart;let a=t+3,s=a,u="";for(;a<r;){const r=n.charCodeAt(a);if(34===r&&34===n.charCodeAt(a+1)&&34===n.charCodeAt(a+2))return u+=n.slice(s,a),new d.WU(h.BLOCK_STRING,t,a+3,i,o,(0,g.W7)(u));if(92!==r||34!==n.charCodeAt(a+1)||34!==n.charCodeAt(a+2)||34!==n.charCodeAt(a+3))if(10!==r&&13!==r)if(w(r))++a;else{if(!I(n,a))throw f(e.source,a,`Invalid character within String: ${P(e,a)}.`);a+=2}else 13===r&&10===n.charCodeAt(a+1)?a+=2:++a,++e.line,e.lineStart=a;else u+=n.slice(s,a)+'"""',a+=4,s=a}throw f(e.source,a,"Unterminated string.")}function B(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r&&(b(o=n.charCodeAt(i))||_(o)||95===o);)++i;var o;return A(e,h.NAME,t,i,n.slice(t,i))}class q{constructor(e,t){const n=(0,m.T)(e)?e:new m.H(e);this._lexer=new S(n),this._options=t}parseName(){const e=this.expectToken(h.NAME);return this.node(e,{kind:p.h.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:p.h.DOCUMENT,definitions:this.many(h.SOF,this.parseDefinition,h.EOF)})}parseDefinition(){if(this.peek(h.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===h.NAME){switch(t.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()}if(e)throw f(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(h.BRACE_L))return this.node(e,{kind:p.h.OPERATION_DEFINITION,operation:d.ku.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(h.NAME)&&(n=this.parseName()),this.node(e,{kind:p.h.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(h.NAME);switch(e.value){case"query":return d.ku.QUERY;case"mutation":return d.ku.MUTATION;case"subscription":return d.ku.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(h.PAREN_L,this.parseVariableDefinition,h.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:p.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(h.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(h.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(h.DOLLAR),this.node(e,{kind:p.h.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:p.h.SELECTION_SET,selections:this.many(h.BRACE_L,this.parseSelection,h.BRACE_R)})}parseSelection(){return this.peek(h.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(h.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:p.h.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(h.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(h.PAREN_L,t,h.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(h.COLON),this.node(t,{kind:p.h.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(h.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(h.NAME)?this.node(e,{kind:p.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:p.h.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){var e;const t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacyFragmentVariables)?this.node(t,{kind:p.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:p.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case h.BRACKET_L:return this.parseList(e);case h.BRACE_L:return this.parseObject(e);case h.INT:return this._lexer.advance(),this.node(t,{kind:p.h.INT,value:t.value});case h.FLOAT:return this._lexer.advance(),this.node(t,{kind:p.h.FLOAT,value:t.value});case h.STRING:case h.BLOCK_STRING:return this.parseStringLiteral();case h.NAME:switch(this._lexer.advance(),t.value){case"true":return this.node(t,{kind:p.h.BOOLEAN,value:!0});case"false":return this.node(t,{kind:p.h.BOOLEAN,value:!1});case"null":return this.node(t,{kind:p.h.NULL});default:return this.node(t,{kind:p.h.ENUM,value:t.value})}case h.DOLLAR:if(e){if(this.expectToken(h.DOLLAR),this._lexer.token.kind===h.NAME){const e=this._lexer.token.value;throw f(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable()}throw this.unexpected()}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this._lexer.advance(),this.node(e,{kind:p.h.STRING,value:e.value,block:e.kind===h.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:p.h.LIST,values:this.any(h.BRACKET_L,(()=>this.parseValueLiteral(e)),h.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:p.h.OBJECT,fields:this.any(h.BRACE_L,(()=>this.parseObjectField(e)),h.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(h.COLON),this.node(t,{kind:p.h.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(h.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(h.AT),this.node(t,{kind:p.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(h.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(h.BRACKET_R),t=this.node(e,{kind:p.h.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(h.BANG)?this.node(e,{kind:p.h.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:p.h.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(h.STRING)||this.peek(h.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(h.BRACE_L,this.parseOperationTypeDefinition,h.BRACE_R);return this.node(e,{kind:p.h.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(h.COLON);const n=this.parseNamedType();return this.node(e,{kind:p.h.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:p.h.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:p.h.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(h.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(h.BRACE_L,this.parseFieldDefinition,h.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(h.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:p.h.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(h.PAREN_L,this.parseInputValueDef,h.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(h.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(h.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:p.h.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:p.h.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:p.h.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(h.EQUALS)?this.delimitedMany(h.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:p.h.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(h.BRACE_L,this.parseEnumValueDefinition,h.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:p.h.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw f(this._lexer.source,this._lexer.token.start,`${V(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:p.h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(h.BRACE_L,this.parseInputValueDef,h.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===h.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)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(h.BRACE_L,this.parseOperationTypeDefinition,h.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:p.h.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:p.h.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:p.h.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:p.h.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:p.h.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:p.h.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:p.h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(h.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:p.h.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(h.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(y,t.value))return t;throw this.unexpected(e)}node(e,t){var n;return!0!==(null===(n=this._options)||void 0===n?void 0:n.noLocation)&&(t.loc=new d.Ye(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw f(this._lexer.source,t.start,`Expected ${G(e)}, found ${V(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this._lexer.advance(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==h.NAME||t.value!==e)throw f(this._lexer.source,t.start,`Expected "${e}", found ${V(t)}.`);this._lexer.advance()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===h.NAME&&t.value===e&&(this._lexer.advance(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return f(this._lexer.source,t.start,`Unexpected ${V(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}}function V(e){const t=e.value;return G(e.kind)+(null!=t?` "${t}"`:"")}function G(e){return function(e){return e===h.BANG||e===h.DOLLAR||e===h.AMP||e===h.PAREN_L||e===h.PAREN_R||e===h.SPREAD||e===h.COLON||e===h.EQUALS||e===h.AT||e===h.BRACKET_L||e===h.BRACKET_R||e===h.BRACE_L||e===h.PIPE||e===h.BRACE_R}(e)?`"${e}"`:e}var $=new Map,z=new Map,Q=!0,W=!1;function K(e){return e.replace(/[\s,]+/g," ").trim()}function Y(e){var t=K(e);if(!$.has(t)){var n=function(e,t){return new q(e,t).parseDocument()}(e,{experimentalFragmentVariables:W,allowLegacyFragmentVariables:W});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");$.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=z.get(r);o&&!o.has(i)?Q&&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||z.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 $.get(t)}function H(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]})),Y(r)}function J(){$.clear(),z.clear()}function X(){Q=!1}function Z(){W=!0}function ee(){W=!1}var te,ne=H,re=J,ie=X,oe=Z,ae=ee;(te=H||(H={})).gql=ne,te.resetCaches=re,te.disableFragmentWarnings=ie,te.enableExperimentalFragmentVariables=oe,te.disableExperimentalFragmentVariables=ae,H.default=H;const se=H},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 m in e)!t&&!c.call(e,m)||d&&("length"==m||f&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,v))||h.push(m);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),m=n(9148),y=n(8517),g=n(1469),_=n(4144),b=n(6688),E=n(3218),S=n(2928),w=n(3674),I=n(1704),T="[object Arguments]",C="[object Function]",P="[object Object]",A={};A[T]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[P]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[C]=A["[object WeakMap]"]=!1,e.exports=function e(t,n,D,O,R,N){var x,k=1&n,F=2&n,U=4&n;if(D&&(x=R?D(t,O,R,N):D(t)),void 0!==x)return x;if(!E(t))return t;var M=g(t);if(M){if(x=v(t),!k)return c(t,x)}else{var L=h(t),j=L==C||"[object GeneratorFunction]"==L;if(_(t))return u(t,k);if(L==P||L==T||j&&!R){if(x=F||j?{}:y(t),!k)return F?f(t,s(x,t)):l(t,a(x,t))}else{if(!A[L])return R?t:{};x=m(t,L,k)}}N||(N=new r);var B=N.get(t);if(B)return B;N.set(t,x),S(t)?t.forEach((function(r){x.add(e(r,n,D,r,t,N))})):b(t)&&t.forEach((function(r,i){x.set(i,e(r,n,D,i,t,N))}));var q=M?void 0:(U?F?d:p:F?I:w)(t);return i(q||t,(function(r,i){q&&(r=t[i=r]),o(x,i,e(r,n,D,i,t,N))})),x}},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,m,y){var g=u(e),_=u(t),b=g?p:s(e),E=_?p:s(t),S=(b=b==f?d:b)==d,w=(E=E==f?d:E)==d,I=b==E;if(I&&c(e)){if(!c(t))return!1;g=!0,S=!1}if(I&&!S)return y||(y=new r),g||l(e)?i(e,t,n,v,m,y):o(e,t,b,n,v,m,y);if(!(1&n)){var T=S&&h.call(e,"__wrapped__"),C=w&&h.call(t,"__wrapped__");if(T||C){var P=T?e.value():e,A=C?t.value():t;return y||(y=new r),m(P,A,n,v,y)}}return!!I&&(y||(y=new r),a(e,t,n,v,m,y))}},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),m=n(6390),y=n(9881);e.exports=function(e,t,n,g,_,b,E){var S=m(e,n),w=m(t,n),I=E.get(w);if(I)r(e,n,I);else{var T=b?b(S,w,n+"",e,t,E):void 0,C=void 0===T;if(C){var P=c(w),A=!P&&f(w),D=!P&&!A&&v(w);T=w,P||A||D?c(S)?T=S:l(S)?T=a(S):A?(C=!1,T=i(w,!0)):D?(C=!1,T=o(w,!0)):T=[]:h(w)||u(w)?(T=S,u(S)?T=y(S):d(S)&&!p(S)||(T=s(w))):C=!1}C&&(E.set(w,T),_(T,w,g,b,E),E.delete(w)),r(e,n,T)}}},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,m=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++h<l;){var y=e[h],g=t[h];if(a)var _=c?a(g,y,h,t,e,u):a(y,g,h,e,t,u);if(void 0!==_){if(_)continue;v=!1;break}if(m){if(!i(t,(function(e,t){if(!o(m,t)&&(y===e||s(y,e,n,a,u)))return m.push(t)}))){v=!1;break}}else if(y!==g&&!s(y,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 m=a(d(e),d(t),r,c,f,p);return p.delete(e),m;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 m=u;++f<l;){var y=e[p=c[f]],g=t[p];if(o)var _=u?o(g,y,p,t,e,s):o(y,g,p,e,t,s);if(!(void 0===_?y===g||a(y,g,n,o,s):_)){v=!1;break}m||(m="constructor"==p)}if(v&&!m){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),m=c(i),y=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 m:return l;case y: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]",m="[object Array]",y="[object Boolean]",g="[object Date]",_="[object Error]",b="[object Function]",E="[object GeneratorFunction]",S="[object Map]",w="[object Number]",I="[object Object]",T="[object Promise]",C="[object RegExp]",P="[object Set]",A="[object String]",D="[object Symbol]",O="[object WeakMap]",R="[object ArrayBuffer]",N="[object DataView]",x="[object Float32Array]",k="[object Float64Array]",F="[object Int8Array]",U="[object Int16Array]",M="[object Int32Array]",L="[object Uint8Array]",j="[object Uint8ClampedArray]",B="[object Uint16Array]",q="[object Uint32Array]",V=/\b__p \+= '';/g,G=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,z=/&(?:amp|lt|gt|quot|#39);/g,Q=/[&<>"']/g,W=RegExp(z.source),K=RegExp(Q.source),Y=/<%-([\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\]$/,me=/^0o[0-7]+$/i,ye=/^(?: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",Se="a-z\\xdf-\\xf6\\xf8-\\xff",we="A-Z\\xc0-\\xd6\\xd8-\\xde",Ie="\\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",Te="["+Ie+"]",Ce="["+Ee+"]",Pe="\\d+",Ae="["+Se+"]",De="[^\\ud800-\\udfff"+Ie+Pe+"\\u2700-\\u27bf"+Se+we+"]",Oe="\\ud83c[\\udffb-\\udfff]",Re="[^\\ud800-\\udfff]",Ne="(?:\\ud83c[\\udde6-\\uddff]){2}",xe="[\\ud800-\\udbff][\\udc00-\\udfff]",ke="["+we+"]",Fe="(?:"+Ae+"|"+De+")",Ue="(?:"+ke+"|"+De+")",Me="(?:['’](?:d|ll|m|re|s|t|ve))?",Le="(?:['’](?:D|LL|M|RE|S|T|VE))?",je="(?:"+Ce+"|"+Oe+")?",Be="[\\ufe0e\\ufe0f]?",qe=Be+je+"(?:\\u200d(?:"+[Re,Ne,xe].join("|")+")"+Be+je+")*",Ve="(?:"+["[\\u2700-\\u27bf]",Ne,xe].join("|")+")"+qe,Ge="(?:"+[Re+Ce+"?",Ce,Ne,xe,"[\\ud800-\\udfff]"].join("|")+")",$e=RegExp("['’]","g"),ze=RegExp(Ce,"g"),Qe=RegExp(Oe+"(?="+Oe+")|"+Ge+qe,"g"),We=RegExp([ke+"?"+Ae+"+"+Me+"(?="+[Te,ke,"$"].join("|")+")",Ue+"+"+Le+"(?="+[Te,ke+Fe,"$"].join("|")+")",ke+"?"+Fe+"+"+Me,ke+"+"+Le,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pe,Ve].join("|"),"g"),Ke=RegExp("[\\u200d\\ud800-\\udfff"+Ee+"\\ufe0e\\ufe0f]"),Ye=/[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[x]=Xe[k]=Xe[F]=Xe[U]=Xe[M]=Xe[L]=Xe[j]=Xe[B]=Xe[q]=!0,Xe[v]=Xe[m]=Xe[R]=Xe[y]=Xe[N]=Xe[g]=Xe[_]=Xe[b]=Xe[S]=Xe[w]=Xe[I]=Xe[C]=Xe[P]=Xe[A]=Xe[O]=!1;var Ze={};Ze[v]=Ze[m]=Ze[R]=Ze[N]=Ze[y]=Ze[g]=Ze[x]=Ze[k]=Ze[F]=Ze[U]=Ze[M]=Ze[S]=Ze[w]=Ze[I]=Ze[C]=Ze[P]=Ze[A]=Ze[D]=Ze[L]=Ze[j]=Ze[B]=Ze[q]=!0,Ze[_]=Ze[b]=Ze[O]=!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&<.isArrayBuffer,pt=lt&<.isDate,dt=lt&<.isMap,ht=lt&<.isRegExp,vt=lt&<.isSet,mt=lt&<.isTypedArray;function yt(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 St(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 wt(e,t){return!(null==e||!e.length)&&xt(e,t,0)>-1}function It(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 Tt(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 Ct(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Pt(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 At(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 Dt(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 Ot=Mt("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 Nt(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 xt(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):Nt(e,Ft,n)}function kt(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 Ut(e,t){var n=null==e?0:e.length;return n?Bt(e,t)/n:p}function Mt(e){return function(t){return null==t?i:t[e]}}function Lt(e){return function(t){return null==e?i:e[t]}}function jt(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 Gt(e){return function(t){return e(t)}}function $t(e,t){return Tt(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&&xt(t,e[n],0)>-1;);return n}function Wt(e,t){for(var n=e.length;n--&&xt(t,e[n],0)>-1;);return n}function Kt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Yt=Lt({À:"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=Lt({"&":"&","<":"<",">":">",'"':""","'":"'"});function Jt(e){return"\\"+et[e]}function Xt(e){return Ke.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):Ot(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=Lt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),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,Se=t.Function,we=t.Math,Ie=t.Object,Te=t.RegExp,Ce=t.String,Pe=t.TypeError,Ae=r.prototype,De=Se.prototype,Oe=Ie.prototype,Re=t["__core-js_shared__"],Ne=De.toString,xe=Oe.hasOwnProperty,ke=0,Fe=(n=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ue=Oe.toString,Me=Ne.call(Ie),Le=ot._,je=Te("^"+Ne.call(xe).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=ut?t.Buffer:i,qe=t.Symbol,Ve=t.Uint8Array,Ge=Be?Be.allocUnsafe:i,Qe=en(Ie.getPrototypeOf,Ie),Ke=Ie.create,et=Oe.propertyIsEnumerable,rt=Ae.splice,it=qe?qe.isConcatSpreadable:i,at=qe?qe.iterator:i,st=qe?qe.toStringTag:i,ct=function(){try{var e=co(Ie,"defineProperty");return e({},"",{}),e}catch(e){}}(),lt=t.clearTimeout!==ot.clearTimeout&&t.clearTimeout,Ot=ie&&ie.now!==ot.Date.now&&ie.now,Lt=t.setTimeout!==ot.setTimeout&&t.setTimeout,ln=we.ceil,fn=we.floor,pn=Ie.getOwnPropertySymbols,dn=Be?Be.isBuffer:i,hn=t.isFinite,vn=Ae.join,mn=en(Ie.keys,Ie),yn=we.max,gn=we.min,_n=ie.now,bn=t.parseInt,En=we.random,Sn=Ae.reverse,wn=co(t,"DataView"),In=co(t,"Map"),Tn=co(t,"Promise"),Cn=co(t,"Set"),Pn=co(t,"WeakMap"),An=co(Ie,"create"),Dn=Pn&&new Pn,On={},Rn=jo(wn),Nn=jo(In),xn=jo(Tn),kn=jo(Cn),Fn=jo(Pn),Un=qe?qe.prototype:i,Mn=Un?Un.valueOf:i,Ln=Un?Un.toString:i;function jn(e){if(ns(e)&&!za(e)&&!(e instanceof Gn)){if(e instanceof Vn)return e;if(xe.call(e,"__wrapped__"))return Bo(e)}return new Vn(e)}var Bn=function(){function e(){}return function(t){if(!ts(t))return{};if(Ke)return Ke(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 Gn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function $n(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 Kn(e){var t=this.__data__=new zn(e);this.size=t.size}function Yn(e,t){var n=za(e),r=!n&&$a(e),i=!n&&!r&&Ya(e),o=!n&&!r&&!i&&ls(e),a=n||r||i||o,s=a?qt(e.length,Ce):[],u=s.length;for(var c in e)!t&&!xe.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||yo(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 ko(Pi(e),ar(t,0,e.length))}function Xn(e){return ko(Pi(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];xe.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&&Ai(t,Ns(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:Ps(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]&&xe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return Pi(e,s)}else{var p=po(e),d=p==b||p==E;if(Ya(e))return Ei(e,u);if(p==I||p==v||d&&!o){if(s=c||d?{}:vo(e),!u)return c?function(e,t){return Ai(e,fo(e),t)}(e,function(e,t){return e&&Ai(t,xs(t),e)}(s,e)):function(e,t){return Ai(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 Si(e);case y:case g:return new i(+e);case N:return function(e,t){var n=t?Si(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case x:case k:case F:case U:case M:case L:case j:case B:case q:return wi(e,n);case S:return new i;case w:case A:return new i(e);case C:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case P:return new i;case D:return r=e,Mn?Ie(Mn.call(r)):{}}}(e,p,u)}}a||(a=new Kn);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 m=f?i:(l?c?no:to:c?xs:Ns)(e);return _t(m||e,(function(r,i){m&&(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=Ie(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 Pe(o);return Oo((function(){e.apply(i,n)}),t)}function lr(e,t,n,r){var i=-1,o=wt,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=Tt(t,Gt(n))),r?(o=It,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}jn.templateSettings={escape:Y,evaluate:H,interpolate:J,variable:"",imports:{_:jn}},jn.prototype=qn.prototype,jn.prototype.constructor=jn,Vn.prototype=Bn(qn.prototype),Vn.prototype.constructor=Vn,Gn.prototype=Bn(qn.prototype),Gn.prototype.constructor=Gn,$n.prototype.clear=function(){this.__data__=An?An(null):{},this.size=0},$n.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},$n.prototype.get=function(e){var t=this.__data__;if(An){var n=t[e];return n===a?i:n}return xe.call(t,e)?t[e]:i},$n.prototype.has=function(e){var t=this.__data__;return An?t[e]!==i:xe.call(t,e)},$n.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=An&&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 $n,map:new(In||zn),string:new $n}},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)},Kn.prototype.clear=function(){this.__data__=new zn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof zn){var r=n.__data__;if(!In||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 mr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=mo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?mr(s,t-1,n,r,i):Ct(i,s):r||(i[i.length]=s)}return i}var yr=Ni(),gr=Ni(!0);function _r(e,t){return e&&yr(e,t,Ns)}function br(e,t){return e&&gr(e,t,Ns)}function Er(e,t){return St(t,(function(t){return Xa(e[t])}))}function Sr(e,t){for(var n=0,r=(t=yi(t,e)).length;null!=e&&n<r;)e=e[Lo(t[n++])];return n&&n==r?e:i}function wr(e,t,n){var r=t(e);return za(e)?r:Ct(r,n(e))}function Ir(e){return null==e?e===i?"[object Undefined]":"[object Null]":st&&st in Ie(e)?function(e){var t=xe.call(e,st),n=e[st];try{e[st]=i;var r=!0}catch(e){}var o=Ue.call(e);return r&&(t?e[st]=n:delete e[st]),o}(e):function(e){return Ue.call(e)}(e)}function Tr(e,t){return e>t}function Cr(e,t){return null!=e&&xe.call(e,t)}function Pr(e,t){return null!=e&&t in Ie(e)}function Ar(e,t,n){for(var o=n?It:wt,a=e[0].length,s=e.length,u=s,c=r(s),l=1/0,f=[];u--;){var p=e[u];u&&t&&(p=Tt(p,Gt(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],m=t?t(v):v;if(v=n||0!==v?v:0,!(h?zt(h,m):o(f,m,n))){for(u=s;--u;){var y=c[u];if(!(y?zt(y,m):o(e[u],m,n)))continue e}h&&h.push(m),f.push(v)}}return f}function Dr(e,t,n){var r=null==(e=Co(e,t=yi(t,e)))?e:e[Lo(Jo(t))];return null==r?i:yt(r,e,n)}function Or(e){return ns(e)&&Ir(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?m:po(e),l=u?m:po(t),f=(c=c==v?I:c)==I,p=(l=l==v?I:l)==I,d=c==l;if(d&&Ya(e)){if(!Ya(t))return!1;s=!0,f=!1}if(d&&!f)return a||(a=new Kn),s||ls(e)?Zi(e,t,n,r,o,a):function(e,t,n,r,i,o,a){switch(n){case N: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 y:case g:case w:return qa(+e,+t);case _:return e.name==t.name&&e.message==t.message;case C:case A:return e==t+"";case S:var s=Zt;case P: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 D:if(Mn)return Mn.call(e)==Mn.call(t)}return!1}(e,t,c,n,r,o,a);if(!(1&n)){var h=f&&xe.call(e,"__wrapped__"),b=p&&xe.call(t,"__wrapped__");if(h||b){var E=h?e.value():e,T=b?t.value():t;return a||(a=new Kn),o(E,T,n,r,a)}}return!!d&&(a||(a=new Kn),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:xe.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 m=e[f=u[l]],y=t[f];if(r)var g=s?r(y,m,f,t,e,a):r(m,y,f,e,t,a);if(!(g===i?m===y||o(m,y,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 Nr(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=Ie(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 Kn;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 xr(e){return!(!ts(e)||(t=e,Fe&&Fe in t))&&(Xa(e)?je:ve).test(jo(e));var t}function kr(e){return"function"==typeof e?e:null==e?iu:"object"==typeof e?za(e)?jr(e[0],e[1]):Lr(e):du(e)}function Fr(e){if(!So(e))return mn(e);var t=[];for(var n in Ie(e))xe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Ur(e,t){return e<t}function Mr(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 Lr(e){var t=uo(e);return 1==t.length&&t[0][2]?Io(t[0][0],t[0][1]):function(n){return n===e||Nr(n,e,t)}}function jr(e,t){return _o(e)&&wo(t)?Io(Lo(e),t):function(n){var r=Ps(n,e);return r===i&&r===t?As(n,e):Rr(t,r,3)}}function Br(e,t,n,r,o){e!==t&&yr(t,(function(a,s){if(o||(o=new Kn),ts(a))!function(e,t,n,r,o,a,s){var u=Ao(e,n),c=Ao(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&&Ya(c),v=!d&&!h&&ls(c);f=c,d||h||v?za(u)?f=u:Ka(u)?f=Pi(u):h?(p=!1,f=Ei(c,!0)):v?(p=!1,f=wi(c,!0)):f=[]:os(c)||$a(c)?(f=u,$a(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(Ao(e,s),a,s+"",e,t,o):i;u===i&&(u=a),Zn(e,s,u)}}),xs)}function qr(e,t){var n=e.length;if(n)return yo(t+=t<0?n:0,n)?e[t]:i}function Vr(e,t,n){t=t.length?Tt(t,(function(e){return za(e)?function(t){return Sr(t,1===e.length?e[0]:e)}:e})):[iu];var r=-1;t=Tt(t,Gt(ao()));var i=Mr(e,(function(e,n,i){var o=Tt(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=Ii(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 Gr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Sr(e,a);n(s,a)&&Jr(o,yi(a,e),s)}return o}function $r(e,t,n,r){var i=r?kt:xt,o=-1,a=t.length,s=e;for(e===t&&(t=Pi(t)),n&&(s=Tt(e,Gt(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;yo(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 Kr(e,t){return Ro(To(e,t,iu),e+"")}function Yr(e){return Hn(qs(e))}function Hr(e,t){var n=qs(e);return ko(n,ar(t,0,n.length))}function Jr(e,t,n,r){if(!ts(e))return e;for(var o=-1,a=(t=yi(t,e)).length,s=a-1,u=e;null!=u&&++o<a;){var c=Lo(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:yo(t[o+1])?[]:{})}er(u,c,l),u=u[c]}return e}var Xr=Dn?function(e,t){return Dn.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 ko(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,m=cs(p);if(s)var y=r||v;else y=l?v&&(r||d):u?v&&d&&(r||!h):c?v&&d&&!h&&(r||!m):!h&&!m&&(r?p<=t:p<t);y?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 Tt(e,si)+"";if(cs(e))return Ln?Ln.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ui(e,t,n){var r=-1,i=wt,o=e.length,a=!0,s=[],u=s;if(n)a=!1,i=It;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=Co(e,t=yi(t,e)))||delete e[Lo(Jo(t))]}function li(e,t,n,r){return Jr(e,t,n(Sr(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 Gn&&(n=n.value()),Pt(t,(function(e,t){return t.func.apply(t.thisArg,Ct([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(mr(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 Ka(e)?e:[]}function mi(e){return"function"==typeof e?e:iu}function yi(e,t){return za(e)?e:_o(e,t)?[e]:Mo(_s(e))}var gi=Kr;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=Ge?Ge(n):new e.constructor(n);return e.copy(r),r}function Si(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function wi(e,t){var n=t?Si(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ii(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 Ti(e,t,n,i){for(var o=-1,a=e.length,s=n.length,u=-1,c=t.length,l=yn(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 Ci(e,t,n,i){for(var o=-1,a=e.length,s=-1,u=n.length,c=-1,l=t.length,f=yn(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 Pi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Ai(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 Di(e,t){return function(n,r){var i=za(n)?gt:nr,o=t?t():{};return i(n,e,ao(r,2),o)}}function Oi(e){return Kr((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=Ie(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=Ie(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Ni(e){return function(t,n,r){for(var i=-1,o=Ie(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 xi(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 ki(e){return function(t){return Pt(Xs($s(t).replace($e,"")),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 Ui(e){return function(t,n,r){var o=Ie(t);if(!Wa(t)){var a=ao(n,3);t=Ns(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 Mi(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 Pe(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 Li(e,t,n,o,a,s,u,l,f,p){var d=t&c,h=1&t,v=2&t,m=24&t,y=512&t,g=v?i:Fi(e);return function i(){for(var c=arguments.length,_=r(c),b=c;b--;)_[b]=arguments[b];if(m)var E=oo(i),S=Kt(_,E);if(o&&(_=Ti(_,o,a,m)),s&&(_=Ci(_,s,u,m)),c-=S,m&&c<p){var w=tn(_,E);return zi(e,t,Li,i.placeholder,n,_,w,l,f,p-c)}var I=h?n:this,T=v?I[e]:e;return c=_.length,l?_=Po(_,l):y&&c>1&&_.reverse(),d&&f<c&&(_.length=f),this&&this!==ot&&this instanceof i&&(T=g||Fi(T)),T.apply(I,_)}}function ji(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=Tt(t,Gt(ao())),Kr((function(n){var r=this;return e(t,(function(e){return yt(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 Gi(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=yn(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 $i(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ys(t),n=ys(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)&&Do(h,d),h.placeholder=r,No(h,e,t)}function Qi(e){var t=we[e];return function(e,n){if(e=ys(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=Cn&&1/nn(new Cn([,-0]))[1]==l?function(e){return new Cn(e)}:cu;function Ki(e){return function(t){var n=po(t);return n==S?Zt(t):n==P?rn(t):function(e,t){return Tt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Yi(e,t,n,a,l,f,p,d){var h=2&t;if(!h&&"function"!=typeof e)throw new Pe(o);var v=a?a.length:0;if(v||(t&=-97,a=l=i),p=p===i?p:yn(vs(p),0),d=d===i?d:vs(d),v-=l?l.length:0,64&t){var m=a,y=l;a=l=i}var g=h?i:ro(e),_=[e,t,n,a,l,m,y,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?Ti(l,u,t[4]):u,e[4]=l?tn(e[3],s):t[4]}(u=t[5])&&(l=e[5],e[5]=l?Ci(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:yn(_[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,Li,a.placeholder,i,u,f,i,i,n-s):yt(this&&this!==ot&&this instanceof a?o:e,this,u)}}(e,t,d):t!=u&&33!=t||l.length?Li.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 yt(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 No((g?Xr:Do)(b,_),e,t)}function Hi(e,t,n,r){return e===i||qa(e,Oe[n])&&!xe.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],m=t[p];if(r)var y=s?r(m,v,p,t,e,a):r(v,m,p,e,t,a);if(y!==i){if(y)continue;d=!1;break}if(h){if(!Dt(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!==m&&!o(v,m,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function eo(e){return Ro(To(e,i,Qo),e+"")}function to(e){return wr(e,Ns,lo)}function no(e){return wr(e,xs,fo)}var ro=Dn?function(e){return Dn.get(e)}:cu;function io(e){for(var t=e.name+"",n=On[t],r=xe.call(On,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(xe.call(jn,"placeholder")?jn:e).placeholder}function ao(){var e=jn.iteratee||ou;return e=e===ou?kr: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=Ns(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,wo(i)]}return t}function co(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return xr(n)?n:i}var lo=pn?function(e){return null==e?[]:(e=Ie(e),St(pn(e),(function(t){return et.call(e,t)})))}:mu,fo=pn?function(e){for(var t=[];e;)Ct(t,lo(e)),e=Qe(e);return t}:mu,po=Ir;function ho(e,t,n){for(var r=-1,i=(t=yi(t,e)).length,o=!1;++r<i;){var a=Lo(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)&&yo(a,i)&&(za(e)||$a(e))}function vo(e){return"function"!=typeof e.constructor||So(e)?{}:Bn(Qe(e))}function mo(e){return za(e)||$a(e)||!!(it&&e&&e[it])}function yo(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&ye.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)&&yo(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 Ie(t)}function bo(e){var t=io(e),n=jn[t];if("function"!=typeof n||!(t in Gn.prototype))return!1;if(e===n)return!0;var r=ro(n);return!!r&&e===r[0]}(wn&&po(new wn(new ArrayBuffer(1)))!=N||In&&po(new In)!=S||Tn&&po(Tn.resolve())!=T||Cn&&po(new Cn)!=P||Pn&&po(new Pn)!=O)&&(po=function(e){var t=Ir(e),n=t==I?e.constructor:i,r=n?jo(n):"";if(r)switch(r){case Rn:return N;case Nn:return S;case xn:return T;case kn:return P;case Fn:return O}return t});var Eo=Re?Xa:yu;function So(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Oe)}function wo(e){return e==e&&!ts(e)}function Io(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in Ie(n))}}function To(e,t,n){return t=yn(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=yn(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),yt(e,this,u)}}function Co(e,t){return t.length<2?e:Sr(e,ti(t,0,-1))}function Po(e,t){for(var n=e.length,r=gn(t.length,n),o=Pi(e);r--;){var a=t[r];e[r]=yo(a,n)?o[a]:i}return e}function Ao(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Do=xo(Xr),Oo=Lt||function(e,t){return ot.setTimeout(e,t)},Ro=xo(Zr);function No(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]&&!wt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function xo(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 ko(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,Uo,Mo=(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===Uo.size&&Uo.clear(),e})),Uo=Fo.cache,Fo);function Lo(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function jo(e){if(null!=e){try{return Ne.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Bo(e){if(e instanceof Gn)return e.clone();var t=new Vn(e.__wrapped__,e.__chain__);return t.__actions__=Pi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var qo=Kr((function(e,t){return Ka(e)?lr(e,mr(t,1,Ka,!0)):[]})),Vo=Kr((function(e,t){var n=Jo(t);return Ka(n)&&(n=i),Ka(e)?lr(e,mr(t,1,Ka,!0),ao(n,2)):[]})),Go=Kr((function(e,t){var n=Jo(t);return Ka(n)&&(n=i),Ka(e)?lr(e,mr(t,1,Ka,!0),i,n):[]}));function $o(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=yn(r+i,0)),Nt(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?yn(r+o,0):gn(o,r-1)),Nt(e,ao(t,3),o,!0)}function Qo(e){return null!=e&&e.length?mr(e,1):[]}function Wo(e){return e&&e.length?e[0]:i}var Ko=Kr((function(e){var t=Tt(e,vi);return t.length&&t[0]===e[0]?Ar(t):[]})),Yo=Kr((function(e){var t=Jo(e),n=Tt(e,vi);return t===Jo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Ar(n,ao(t,2)):[]})),Ho=Kr((function(e){var t=Jo(e),n=Tt(e,vi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Ar(n,i,t):[]}));function Jo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Xo=Kr(Zo);function Zo(e,t){return e&&e.length&&t&&t.length?$r(e,t):e}var ea=eo((function(e,t){var n=null==e?0:e.length,r=or(e,t);return zr(e,Tt(t,(function(e){return yo(e,n)?+e:e})).sort(Ii)),r}));function ta(e){return null==e?e:Sn.call(e)}var na=Kr((function(e){return ui(mr(e,1,Ka,!0))})),ra=Kr((function(e){var t=Jo(e);return Ka(t)&&(t=i),ui(mr(e,1,Ka,!0),ao(t,2))})),ia=Kr((function(e){var t=Jo(e);return t="function"==typeof t?t:i,ui(mr(e,1,Ka,!0),i,t)}));function oa(e){if(!e||!e.length)return[];var t=0;return e=St(e,(function(e){if(Ka(e))return t=yn(e.length,t),!0})),qt(t,(function(t){return Tt(e,Mt(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=oa(e);return null==t?n:Tt(n,(function(e){return yt(t,i,e)}))}var sa=Kr((function(e,t){return Ka(e)?lr(e,t):[]})),ua=Kr((function(e){return di(St(e,Ka))})),ca=Kr((function(e){var t=Jo(e);return Ka(t)&&(t=i),di(St(e,Ka),ao(t,2))})),la=Kr((function(e){var t=Jo(e);return t="function"==typeof t?t:i,di(St(e,Ka),i,t)})),fa=Kr(oa),pa=Kr((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=jn(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 Gn&&yo(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)})),ma=Di((function(e,t,n){xe.call(e,n)?++e[n]:ir(e,n,1)})),ya=Ui($o),ga=Ui(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=Di((function(e,t,n){xe.call(e,n)?e[n].push(t):ir(e,n,[t])})),Sa=Kr((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?yt(t,e,n):Dr(e,t,n)})),a})),wa=Di((function(e,t,n){ir(e,n,t)}));function Ia(e,t){return(za(e)?Tt:Mr)(e,ao(t,3))}var Ta=Di((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Ca=Kr((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,mr(t,1),[])})),Pa=Ot||function(){return ot.Date.now()};function Aa(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Yi(e,c,i,i,i,i,t)}function Da(e,t){var n;if("function"!=typeof t)throw new Pe(o);return e=vs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Oa=Kr((function(e,t,n){var r=1;if(n.length){var i=tn(n,oo(Oa));r|=u}return Yi(e,r,t,n,i)})),Ra=Kr((function(e,t,n){var r=3;if(n.length){var i=tn(n,oo(Ra));r|=u}return Yi(t,r,e,n,i)}));function Na(e,t,n){var r,a,s,u,c,l,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new Pe(o);function v(t){var n=r,o=a;return r=a=i,f=t,u=e.apply(o,n)}function m(e){return f=e,c=Oo(g,t),p?v(e):u}function y(e){var n=e-l;return l===i||n>=t||n<0||d&&e-f>=s}function g(){var e=Pa();if(y(e))return _(e);c=Oo(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=Pa(),n=y(e);if(r=arguments,a=this,l=e,n){if(c===i)return m(l);if(d)return bi(c),c=Oo(g,t),v(l)}return c===i&&(c=Oo(g,t)),u}return t=ys(t)||0,ts(n)&&(p=!!n.leading,s=(d="maxWait"in n)?yn(ys(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:_(Pa())},b}var xa=Kr((function(e,t){return cr(e,1,t)})),ka=Kr((function(e,t,n){return cr(e,ys(t)||0,n)}));function Fa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Pe(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 Ua(e){if("function"!=typeof e)throw new Pe(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 Ma=gi((function(e,t){var n=(t=1==t.length&&za(t[0])?Tt(t[0],Gt(ao())):Tt(mr(t,1),Gt(ao()))).length;return Kr((function(r){for(var i=-1,o=gn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return yt(e,this,r)}))})),La=Kr((function(e,t){var n=tn(t,oo(La));return Yi(e,u,i,t,n)})),ja=Kr((function(e,t){var n=tn(t,oo(ja));return Yi(e,64,i,t,n)})),Ba=eo((function(e,t){return Yi(e,256,i,i,i,t)}));function qa(e,t){return e===t||e!=e&&t!=t}var Va=$i(Tr),Ga=$i((function(e,t){return e>=t})),$a=Or(function(){return arguments}())?Or:function(e){return ns(e)&&xe.call(e,"callee")&&!et.call(e,"callee")},za=r.isArray,Qa=ft?Gt(ft):function(e){return ns(e)&&Ir(e)==R};function Wa(e){return null!=e&&es(e.length)&&!Xa(e)}function Ka(e){return ns(e)&&Wa(e)}var Ya=dn||yu,Ha=pt?Gt(pt):function(e){return ns(e)&&Ir(e)==g};function Ja(e){if(!ns(e))return!1;var t=Ir(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=Ir(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?Gt(dt):function(e){return ns(e)&&po(e)==S};function is(e){return"number"==typeof e||ns(e)&&Ir(e)==w}function os(e){if(!ns(e)||Ir(e)!=I)return!1;var t=Qe(e);if(null===t)return!0;var n=xe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ne.call(n)==Me}var as=ht?Gt(ht):function(e){return ns(e)&&Ir(e)==C},ss=vt?Gt(vt):function(e){return ns(e)&&po(e)==P};function us(e){return"string"==typeof e||!za(e)&&ns(e)&&Ir(e)==A}function cs(e){return"symbol"==typeof e||ns(e)&&Ir(e)==D}var ls=mt?Gt(mt):function(e){return ns(e)&&es(e.length)&&!!Xe[Ir(e)]},fs=$i(Ur),ps=$i((function(e,t){return e<=t}));function ds(e){if(!e)return[];if(Wa(e))return us(e)?an(e):Pi(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==S?Zt:t==P?nn:qs)(e)}function hs(e){return e?(e=ys(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 ms(e){return e?ar(vs(e),0,d):0}function ys(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||me.test(e)?nt(e.slice(2),n?2:8):de.test(e)?p:+e}function gs(e){return Ai(e,xs(e))}function _s(e){return null==e?"":si(e)}var bs=Oi((function(e,t){if(So(t)||Wa(t))Ai(t,Ns(t),e);else for(var n in t)xe.call(t,n)&&er(e,n,t[n])})),Es=Oi((function(e,t){Ai(t,xs(t),e)})),Ss=Oi((function(e,t,n,r){Ai(t,xs(t),e,r)})),ws=Oi((function(e,t,n,r){Ai(t,Ns(t),e,r)})),Is=eo(or),Ts=Kr((function(e,t){e=Ie(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=xs(a),u=-1,c=s.length;++u<c;){var l=s[u],f=e[l];(f===i||qa(f,Oe[l])&&!xe.call(e,l))&&(e[l]=a[l])}return e})),Cs=Kr((function(e){return e.push(i,Ji),yt(Fs,i,e)}));function Ps(e,t,n){var r=null==e?i:Sr(e,t);return r===i?n:r}function As(e,t){return null!=e&&ho(e,t,Pr)}var Ds=ji((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ue.call(t)),e[t]=n}),tu(iu)),Os=ji((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ue.call(t)),xe.call(e,t)?e[t].push(n):e[t]=[n]}),ao),Rs=Kr(Dr);function Ns(e){return Wa(e)?Yn(e):Fr(e)}function xs(e){return Wa(e)?Yn(e,!0):function(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in Ie(e))t.push(n);return t}(e);var t=So(e),n=[];for(var r in e)("constructor"!=r||!t&&xe.call(e,r))&&n.push(r);return n}(e)}var ks=Oi((function(e,t,n){Br(e,t,n)})),Fs=Oi((function(e,t,n,r){Br(e,t,n,r)})),Us=eo((function(e,t){var n={};if(null==e)return n;var r=!1;t=Tt(t,(function(t){return t=yi(t,e),r||(r=t.length>1),t})),Ai(e,no(e),n),r&&(n=sr(n,7,Xi));for(var i=t.length;i--;)ci(n,t[i]);return n})),Ms=eo((function(e,t){return null==e?{}:function(e,t){return Gr(e,t,(function(t,n){return As(e,n)}))}(e,t)}));function Ls(e,t){if(null==e)return{};var n=Tt(no(e),(function(e){return[e]}));return t=ao(t),Gr(e,n,(function(e,n){return t(e,n[0])}))}var js=Ki(Ns),Bs=Ki(xs);function qs(e){return null==e?[]:$t(e,Ns(e))}var Vs=ki((function(e,t,n){return t=t.toLowerCase(),e+(n?Gs(t):t)}));function Gs(e){return Js(_s(e).toLowerCase())}function $s(e){return(e=_s(e))&&e.replace(ge,Yt).replace(ze,"")}var zs=ki((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Qs=ki((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ws=xi("toLowerCase"),Ks=ki((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ys=ki((function(e,t,n){return e+(n?" ":"")+Js(t)})),Hs=ki((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Js=xi("toUpperCase");function Xs(e,t,n){return e=_s(e),(t=n?i:t)===i?function(e){return Ye.test(e)}(e)?function(e){return e.match(We)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Zs=Kr((function(e,t){try{return yt(e,i,t)}catch(e){return Ja(e)?e:new Ee(e)}})),eu=eo((function(e,t){return _t(t,(function(t){t=Lo(t),ir(e,t,Oa(e[t],e))})),e}));function tu(e){return function(){return e}}var nu=Mi(),ru=Mi(!0);function iu(e){return e}function ou(e){return kr("function"==typeof e?e:sr(e,1))}var au=Kr((function(e,t){return function(n){return Dr(n,e,t)}})),su=Kr((function(e,t){return function(n){return Dr(e,n,t)}}));function uu(e,t,n){var r=Ns(t),i=Er(t,r);null!=n||ts(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Er(t,Ns(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__=Pi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ct([this.value()],arguments))})})),e}function cu(){}var lu=qi(Tt),fu=qi(Et),pu=qi(Dt);function du(e){return _o(e)?Mt(Lo(e)):function(e){return function(t){return Sr(t,e)}}(e)}var hu=Gi(),vu=Gi(!0);function mu(){return[]}function yu(){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),Su=Qi("floor"),wu=Bi((function(e,t){return e*t}),1),Iu=Qi("round"),Tu=Bi((function(e,t){return e-t}),0);return jn.after=function(e,t){if("function"!=typeof t)throw new Pe(o);return e=vs(e),function(){if(--e<1)return t.apply(this,arguments)}},jn.ary=Aa,jn.assign=bs,jn.assignIn=Es,jn.assignInWith=Ss,jn.assignWith=ws,jn.at=Is,jn.before=Da,jn.bind=Oa,jn.bindAll=eu,jn.bindKey=Ra,jn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return za(e)?e:[e]},jn.chain=da,jn.chunk=function(e,t,n){t=(n?go(e,t,n):t===i)?1:yn(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},jn.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},jn.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 Ct(za(n)?Pi(n):[n],mr(t,1))},jn.cond=function(e){var t=null==e?0:e.length,n=ao();return e=t?Tt(e,(function(e){if("function"!=typeof e[1])throw new Pe(o);return[n(e[0]),e[1]]})):[],Kr((function(n){for(var r=-1;++r<t;){var i=e[r];if(yt(i[0],this,n))return yt(i[1],this,n)}}))},jn.conforms=function(e){return function(e){var t=Ns(e);return function(n){return ur(n,e,t)}}(sr(e,1))},jn.constant=tu,jn.countBy=ma,jn.create=function(e,t){var n=Bn(e);return null==t?n:rr(n,t)},jn.curry=function e(t,n,r){var o=Yi(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},jn.curryRight=function e(t,n,r){var o=Yi(t,16,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},jn.debounce=Na,jn.defaults=Ts,jn.defaultsDeep=Cs,jn.defer=xa,jn.delay=ka,jn.difference=qo,jn.differenceBy=Vo,jn.differenceWith=Go,jn.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):[]},jn.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):[]},jn.dropRightWhile=function(e,t){return e&&e.length?fi(e,ao(t,3),!0,!0):[]},jn.dropWhile=function(e,t){return e&&e.length?fi(e,ao(t,3),!0):[]},jn.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:ms(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},jn.filter=function(e,t){return(za(e)?St:vr)(e,ao(t,3))},jn.flatMap=function(e,t){return mr(Ia(e,t),1)},jn.flatMapDeep=function(e,t){return mr(Ia(e,t),l)},jn.flatMapDepth=function(e,t,n){return n=n===i?1:vs(n),mr(Ia(e,t),n)},jn.flatten=Qo,jn.flattenDeep=function(e){return null!=e&&e.length?mr(e,l):[]},jn.flattenDepth=function(e,t){return null!=e&&e.length?mr(e,t=t===i?1:vs(t)):[]},jn.flip=function(e){return Yi(e,512)},jn.flow=nu,jn.flowRight=ru,jn.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},jn.functions=function(e){return null==e?[]:Er(e,Ns(e))},jn.functionsIn=function(e){return null==e?[]:Er(e,xs(e))},jn.groupBy=Ea,jn.initial=function(e){return null!=e&&e.length?ti(e,0,-1):[]},jn.intersection=Ko,jn.intersectionBy=Yo,jn.intersectionWith=Ho,jn.invert=Ds,jn.invertBy=Os,jn.invokeMap=Sa,jn.iteratee=ou,jn.keyBy=wa,jn.keys=Ns,jn.keysIn=xs,jn.map=Ia,jn.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},jn.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},jn.matches=function(e){return Lr(sr(e,1))},jn.matchesProperty=function(e,t){return jr(e,sr(t,1))},jn.memoize=Fa,jn.merge=ks,jn.mergeWith=Fs,jn.method=au,jn.methodOf=su,jn.mixin=uu,jn.negate=Ua,jn.nthArg=function(e){return e=vs(e),Kr((function(t){return qr(t,e)}))},jn.omit=Us,jn.omitBy=function(e,t){return Ls(e,Ua(ao(t)))},jn.once=function(e){return Da(2,e)},jn.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))},jn.over=lu,jn.overArgs=Ma,jn.overEvery=fu,jn.overSome=pu,jn.partial=La,jn.partialRight=ja,jn.partition=Ta,jn.pick=Ms,jn.pickBy=Ls,jn.property=du,jn.propertyOf=function(e){return function(t){return null==e?i:Sr(e,t)}},jn.pull=Xo,jn.pullAll=Zo,jn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?$r(e,t,ao(n,2)):e},jn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?$r(e,t,i,n):e},jn.pullAt=ea,jn.range=hu,jn.rangeRight=vu,jn.rearg=Ba,jn.reject=function(e,t){return(za(e)?St:vr)(e,Ua(ao(t,3)))},jn.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},jn.rest=function(e,t){if("function"!=typeof e)throw new Pe(o);return Kr(e,t=t===i?t:vs(t))},jn.reverse=ta,jn.sampleSize=function(e,t,n){return t=(n?go(e,t,n):t===i)?1:vs(t),(za(e)?Jn:Hr)(e,t)},jn.set=function(e,t,n){return null==e?e:Jr(e,t,n)},jn.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Jr(e,t,n,r)},jn.shuffle=function(e){return(za(e)?Xn:ei)(e)},jn.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)):[]},jn.sortBy=Ca,jn.sortedUniq=function(e){return e&&e.length?oi(e):[]},jn.sortedUniqBy=function(e,t){return e&&e.length?oi(e,ao(t,2)):[]},jn.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):[]},jn.spread=function(e,t){if("function"!=typeof e)throw new Pe(o);return t=null==t?0:yn(vs(t),0),Kr((function(n){var r=n[t],i=_i(n,0,t);return r&&Ct(i,r),yt(e,this,i)}))},jn.tail=function(e){var t=null==e?0:e.length;return t?ti(e,1,t):[]},jn.take=function(e,t,n){return e&&e.length?ti(e,0,(t=n||t===i?1:vs(t))<0?0:t):[]},jn.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):[]},jn.takeRightWhile=function(e,t){return e&&e.length?fi(e,ao(t,3),!1,!0):[]},jn.takeWhile=function(e,t){return e&&e.length?fi(e,ao(t,3)):[]},jn.tap=function(e,t){return t(e),e},jn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Pe(o);return ts(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Na(e,t,{leading:r,maxWait:t,trailing:i})},jn.thru=ha,jn.toArray=ds,jn.toPairs=js,jn.toPairsIn=Bs,jn.toPath=function(e){return za(e)?Tt(e,Lo):cs(e)?[e]:Pi(Mo(_s(e)))},jn.toPlainObject=gs,jn.transform=function(e,t,n){var r=za(e),i=r||Ya(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},jn.unary=function(e){return Aa(e,1)},jn.union=na,jn.unionBy=ra,jn.unionWith=ia,jn.uniq=function(e){return e&&e.length?ui(e):[]},jn.uniqBy=function(e,t){return e&&e.length?ui(e,ao(t,2)):[]},jn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ui(e,i,t):[]},jn.unset=function(e,t){return null==e||ci(e,t)},jn.unzip=oa,jn.unzipWith=aa,jn.update=function(e,t,n){return null==e?e:li(e,t,mi(n))},jn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:li(e,t,mi(n),r)},jn.values=qs,jn.valuesIn=function(e){return null==e?[]:$t(e,xs(e))},jn.without=sa,jn.words=Xs,jn.wrap=function(e,t){return La(mi(t),e)},jn.xor=ua,jn.xorBy=ca,jn.xorWith=la,jn.zip=fa,jn.zipObject=function(e,t){return hi(e||[],t||[],er)},jn.zipObjectDeep=function(e,t){return hi(e||[],t||[],Jr)},jn.zipWith=pa,jn.entries=js,jn.entriesIn=Bs,jn.extend=Es,jn.extendWith=Ss,uu(jn,jn),jn.add=_u,jn.attempt=Zs,jn.camelCase=Vs,jn.capitalize=Gs,jn.ceil=bu,jn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ys(n))==n?n:0),t!==i&&(t=(t=ys(t))==t?t:0),ar(ys(e),t,n)},jn.clone=function(e){return sr(e,4)},jn.cloneDeep=function(e){return sr(e,5)},jn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:i)},jn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:i)},jn.conformsTo=function(e,t){return null==t||ur(e,t,Ns(t))},jn.deburr=$s,jn.defaultTo=function(e,t){return null==e||e!=e?t:e},jn.divide=Eu,jn.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},jn.eq=qa,jn.escape=function(e){return(e=_s(e))&&K.test(e)?e.replace(Q,Ht):e},jn.escapeRegExp=function(e){return(e=_s(e))&&ne.test(e)?e.replace(te,"\\$&"):e},jn.every=function(e,t,n){var r=za(e)?Et:dr;return n&&go(e,t,n)&&(t=i),r(e,ao(t,3))},jn.find=ya,jn.findIndex=$o,jn.findKey=function(e,t){return Rt(e,ao(t,3),_r)},jn.findLast=ga,jn.findLastIndex=zo,jn.findLastKey=function(e,t){return Rt(e,ao(t,3),br)},jn.floor=Su,jn.forEach=_a,jn.forEachRight=ba,jn.forIn=function(e,t){return null==e?e:yr(e,ao(t,3),xs)},jn.forInRight=function(e,t){return null==e?e:gr(e,ao(t,3),xs)},jn.forOwn=function(e,t){return e&&_r(e,ao(t,3))},jn.forOwnRight=function(e,t){return e&&br(e,ao(t,3))},jn.get=Ps,jn.gt=Va,jn.gte=Ga,jn.has=function(e,t){return null!=e&&ho(e,t,Cr)},jn.hasIn=As,jn.head=Wo,jn.identity=iu,jn.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=yn(i+n,0)),us(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&xt(e,t,n)>-1},jn.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=yn(r+i,0)),xt(e,t,i)},jn.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<yn(t,n)}(e=ys(e),t,n)},jn.invoke=Rs,jn.isArguments=$a,jn.isArray=za,jn.isArrayBuffer=Qa,jn.isArrayLike=Wa,jn.isArrayLikeObject=Ka,jn.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Ir(e)==y},jn.isBuffer=Ya,jn.isDate=Ha,jn.isElement=function(e){return ns(e)&&1===e.nodeType&&!os(e)},jn.isEmpty=function(e){if(null==e)return!0;if(Wa(e)&&(za(e)||"string"==typeof e||"function"==typeof e.splice||Ya(e)||ls(e)||$a(e)))return!e.length;var t=po(e);if(t==S||t==P)return!e.size;if(So(e))return!Fr(e).length;for(var n in e)if(xe.call(e,n))return!1;return!0},jn.isEqual=function(e,t){return Rr(e,t)},jn.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},jn.isError=Ja,jn.isFinite=function(e){return"number"==typeof e&&hn(e)},jn.isFunction=Xa,jn.isInteger=Za,jn.isLength=es,jn.isMap=rs,jn.isMatch=function(e,t){return e===t||Nr(e,t,uo(t))},jn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Nr(e,t,uo(t),n)},jn.isNaN=function(e){return is(e)&&e!=+e},jn.isNative=function(e){if(Eo(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return xr(e)},jn.isNil=function(e){return null==e},jn.isNull=function(e){return null===e},jn.isNumber=is,jn.isObject=ts,jn.isObjectLike=ns,jn.isPlainObject=os,jn.isRegExp=as,jn.isSafeInteger=function(e){return Za(e)&&e>=-9007199254740991&&e<=f},jn.isSet=ss,jn.isString=us,jn.isSymbol=cs,jn.isTypedArray=ls,jn.isUndefined=function(e){return e===i},jn.isWeakMap=function(e){return ns(e)&&po(e)==O},jn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Ir(e)},jn.join=function(e,t){return null==e?"":vn.call(e,t)},jn.kebabCase=zs,jn.last=Jo,jn.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?yn(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):Nt(e,Ft,o,!0)},jn.lowerCase=Qs,jn.lowerFirst=Ws,jn.lt=fs,jn.lte=ps,jn.max=function(e){return e&&e.length?hr(e,iu,Tr):i},jn.maxBy=function(e,t){return e&&e.length?hr(e,ao(t,2),Tr):i},jn.mean=function(e){return Ut(e,iu)},jn.meanBy=function(e,t){return Ut(e,ao(t,2))},jn.min=function(e){return e&&e.length?hr(e,iu,Ur):i},jn.minBy=function(e,t){return e&&e.length?hr(e,ao(t,2),Ur):i},jn.stubArray=mu,jn.stubFalse=yu,jn.stubObject=function(){return{}},jn.stubString=function(){return""},jn.stubTrue=function(){return!0},jn.multiply=wu,jn.nth=function(e,t){return e&&e.length?qr(e,vs(t)):i},jn.noConflict=function(){return ot._===this&&(ot._=Le),this},jn.noop=cu,jn.now=Pa,jn.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)},jn.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},jn.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},jn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(_s(e).replace(re,""),t||0)},jn.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)},jn.reduce=function(e,t,n){var r=za(e)?Pt:jt,i=arguments.length<3;return r(e,ao(t,4),n,i,fr)},jn.reduceRight=function(e,t,n){var r=za(e)?At:jt,i=arguments.length<3;return r(e,ao(t,4),n,i,pr)},jn.repeat=function(e,t,n){return t=(n?go(e,t,n):t===i)?1:vs(t),Wr(_s(e),t)},jn.replace=function(){var e=arguments,t=_s(e[0]);return e.length<3?t:t.replace(e[1],e[2])},jn.result=function(e,t,n){var r=-1,o=(t=yi(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[Lo(t[r])];a===i&&(r=o,a=n),e=Xa(a)?a.call(e):a}return e},jn.round=Iu,jn.runInContext=e,jn.sample=function(e){return(za(e)?Hn:Yr)(e)},jn.size=function(e){if(null==e)return 0;if(Wa(e))return us(e)?on(e):e.length;var t=po(e);return t==S||t==P?e.size:Fr(e).length},jn.snakeCase=Ks,jn.some=function(e,t,n){var r=za(e)?Dt:ni;return n&&go(e,t,n)&&(t=i),r(e,ao(t,3))},jn.sortedIndex=function(e,t){return ri(e,t)},jn.sortedIndexBy=function(e,t,n){return ii(e,t,ao(n,2))},jn.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},jn.sortedLastIndex=function(e,t){return ri(e,t,!0)},jn.sortedLastIndexBy=function(e,t,n){return ii(e,t,ao(n,2),!0)},jn.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},jn.startCase=Ys,jn.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},jn.subtract=Tu,jn.sum=function(e){return e&&e.length?Bt(e,iu):0},jn.sumBy=function(e,t){return e&&e.length?Bt(e,ao(t,2)):0},jn.template=function(e,t,n){var r=jn.templateSettings;n&&go(e,t,n)&&(t=i),e=_s(e),t=Ss({},t,r,Hi);var o,a,s=Ss({},t.imports,r.imports,Hi),u=Ns(s),c=$t(s,u),l=0,f=t.interpolate||_e,p="__p += '",d=Te((t.escape||_e).source+"|"+f.source+"|"+(f===J?fe:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),h="//# sourceURL="+(xe.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=xe.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(G,"$1").replace($,"$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 m=Zs((function(){return Se(u,h+"return "+p).apply(i,c)}));if(m.source=p,Ja(m))throw m;return m},jn.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},jn.toFinite=hs,jn.toInteger=vs,jn.toLength=ms,jn.toLower=function(e){return _s(e).toLowerCase()},jn.toNumber=ys,jn.toSafeInteger=function(e){return e?ar(vs(e),-9007199254740991,f):0===e?e:0},jn.toString=_s,jn.toUpper=function(e){return _s(e).toUpperCase()},jn.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("")},jn.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("")},jn.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("")},jn.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=Te(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},jn.unescape=function(e){return(e=_s(e))&&W.test(e)?e.replace(z,un):e},jn.uniqueId=function(e){var t=++ke;return _s(e)+t},jn.upperCase=Hs,jn.upperFirst=Js,jn.each=_a,jn.eachRight=ba,jn.first=Wo,uu(jn,(gu={},_r(jn,(function(e,t){xe.call(jn.prototype,t)||(gu[t]=e)})),gu),{chain:!1}),jn.VERSION="4.17.21",_t(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){jn[e].placeholder=jn})),_t(["drop","take"],(function(e,t){Gn.prototype[e]=function(n){n=n===i?1:yn(vs(n),0);var r=this.__filtered__&&!t?new Gn(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},Gn.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;Gn.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":"");Gn.prototype[e]=function(){return this[n](1).value()[0]}})),_t(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Gn.prototype[e]=function(){return this.__filtered__?new Gn(this):this[n](1)}})),Gn.prototype.compact=function(){return this.filter(iu)},Gn.prototype.find=function(e){return this.filter(e).head()},Gn.prototype.findLast=function(e){return this.reverse().find(e)},Gn.prototype.invokeMap=Kr((function(e,t){return"function"==typeof e?new Gn(this):this.map((function(n){return Dr(n,e,t)}))})),Gn.prototype.reject=function(e){return this.filter(Ua(ao(e)))},Gn.prototype.slice=function(e,t){e=vs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Gn(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)},Gn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Gn.prototype.toArray=function(){return this.take(d)},_r(Gn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=jn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(jn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof Gn,c=s[0],l=u||za(t),f=function(e){var t=o.apply(jn,Ct([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 Gn(this);var m=e.apply(t,s);return m.__actions__.push({func:ha,args:[f],thisArg:i}),new Vn(m,p)}return h&&v?e.apply(this,s):(m=this.thru(f),h?r?m.value()[0]:m.value():m)})})),_t(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ae[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);jn.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(Gn.prototype,(function(e,t){var n=jn[t];if(n){var r=n.name+"";xe.call(On,r)||(On[r]=[]),On[r].push({name:t,func:n})}})),On[Li(i,2).name]=[{name:"wrapper",func:i}],Gn.prototype.clone=function(){var e=new Gn(this.__wrapped__);return e.__actions__=Pi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Pi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Pi(this.__views__),e},Gn.prototype.reverse=function(){if(this.__filtered__){var e=new Gn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Gn.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=yn(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,m=e[c+=t];++v<f;){var y=l[v],g=y.iteratee,_=y.type,b=g(m);if(2==_)m=b;else if(!b){if(1==_)continue e;break e}}h[p++]=m}return h},jn.prototype.at=va,jn.prototype.chain=function(){return da(this)},jn.prototype.commit=function(){return new Vn(this.value(),this.__chain__)},jn.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__++]}},jn.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},jn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Gn){var t=e;return this.__actions__.length&&(t=new Gn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ta],thisArg:i}),new Vn(t,this.__chain__)}return this.thru(ta)},jn.prototype.toJSON=jn.prototype.valueOf=jn.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},jn.prototype.first=jn.prototype.head,at&&(jn.prototype[at]=function(){return this}),jn}();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},1746:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AccessDeniedReason:()=>De,Alignment:()=>f,BOOLEAN_DEFAULT_FALLBACK_ENTITLEMENT:()=>Ue,BillingModel:()=>v,BillingPeriod:()=>m,Currency:()=>E,CustomerModel:()=>je,DiscountDurationType:()=>I,DiscountType:()=>T,EntitlementResetPeriod:()=>Ne,ExperimentGroupType:()=>Ae,FeatureType:()=>Oe,FontWeight:()=>M,LogLevel:()=>o,METERED_DEFAULT_FALLBACK_ENTITLEMENT:()=>Le,MeterType:()=>Re,NUMERIC_DEFAULT_FALLBACK_ENTITLEMENT:()=>Me,PricingType:()=>J,PromotionalEntitlementStatus:()=>te,SubscriptionScheduleType:()=>ye,SubscriptionStatus:()=>_e,TrialPeriodUnits:()=>we,WidgetType:()=>Pe,default:()=>Ap});var r={};n.r(r),n.d(r,{FunctionToString:()=>tu,InboundFilters:()=>hu});var i={};n.r(i),n.d(i,{Breadcrumbs:()=>Ac,Dedupe:()=>Mc,GlobalHandlers:()=>dc,HttpContext:()=>Uc,LinkedErrors:()=>xc,TryCatch:()=>bc});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,d,h,v,m,y,g,_,b,E,S,w,I,T,C,P,A,D,O,R,N,x,k,F,U,M,L,j,B,q,V,G,$,z,Q,W,K,Y,H,J,X,Z,ee,te,ne,re,ie,oe,ae,se,ue,ce,le,fe,pe,de,he,ve,me,ye,ge,_e,be,Ee,Se,we,Ie,Te,Ce,Pe,Ae,De,Oe,Re,Ne,xe=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}();!function(e){e.CustomerNotFound="CustomerNotFound",e.FeatureNotFound="FeatureNotFound",e.NoActiveSubscription="NoActiveSubscription",e.NoFeatureEntitlementInSubscription="NoFeatureEntitlementInSubscription",e.RequestedUsageExceedingLimit="RequestedUsageExceedingLimit",e.Unknown="Unknown"}(u||(u={})),function(e){e.Active="ACTIVE",e.Blocked="BLOCKED"}(c||(c={})),function(e){e.BillingId="billingId",e.CreatedAt="createdAt",e.Description="description",e.DisplayName="displayName",e.EnvironmentId="environmentId",e.Id="id",e.IsLatest="isLatest",e.PricingType="pricingType",e.ProductId="productId",e.RefId="refId",e.Status="status",e.UpdatedAt="updatedAt",e.VersionNumber="versionNumber"}(l||(l={})),function(e){e.Center="CENTER",e.Left="LEFT",e.Right="RIGHT"}(f||(f={})),function(e){e.Id="id"}(p||(p={})),function(e){e.Client="CLIENT",e.Server="SERVER"}(d||(d={})),function(e){e.StartOfTheMonth="START_OF_THE_MONTH",e.SubscriptionStart="SUBSCRIPTION_START"}(h||(h={})),function(e){e.FlatFee="FLAT_FEE",e.PerUnit="PER_UNIT",e.UsageBased="USAGE_BASED"}(v||(v={})),function(e){e.Annually="ANNUALLY",e.Monthly="MONTHLY"}(m||(m={})),function(e){e.Added="ADDED",e.Deleted="DELETED",e.Modified="MODIFIED",e.Reordered="REORDERED"}(y||(y={})),function(e){e.BillingId="billingId",e.CreatedAt="createdAt",e.Description="description",e.EnvironmentId="environmentId",e.Id="id",e.Name="name",e.RefId="refId",e.Status="status",e.Type="type",e.UpdatedAt="updatedAt"}(g||(g={})),function(e){e.Active="ACTIVE",e.Archived="ARCHIVED"}(_||(_={})),function(e){e.Fixed="FIXED",e.Percentage="PERCENTAGE"}(b||(b={})),function(e){e.Aed="AED",e.All="ALL",e.Amd="AMD",e.Ang="ANG",e.Aud="AUD",e.Awg="AWG",e.Azn="AZN",e.Bam="BAM",e.Bbd="BBD",e.Bdt="BDT",e.Bgn="BGN",e.Bif="BIF",e.Bmd="BMD",e.Bnd="BND",e.Bsd="BSD",e.Bwp="BWP",e.Byn="BYN",e.Bzd="BZD",e.Cad="CAD",e.Cdf="CDF",e.Chf="CHF",e.Clp="CLP",e.Cny="CNY",e.Czk="CZK",e.Djf="DJF",e.Dkk="DKK",e.Dop="DOP",e.Dzd="DZD",e.Egp="EGP",e.Etb="ETB",e.Eur="EUR",e.Fjd="FJD",e.Gbp="GBP",e.Gel="GEL",e.Gip="GIP",e.Gmd="GMD",e.Gnf="GNF",e.Gyd="GYD",e.Hkd="HKD",e.Hrk="HRK",e.Htg="HTG",e.Idr="IDR",e.Ils="ILS",e.Inr="INR",e.Isk="ISK",e.Jmd="JMD",e.Jpy="JPY",e.Kes="KES",e.Kgs="KGS",e.Khr="KHR",e.Kmf="KMF",e.Krw="KRW",e.Kyd="KYD",e.Kzt="KZT",e.Lbp="LBP",e.Lkr="LKR",e.Lrd="LRD",e.Lsl="LSL",e.Mad="MAD",e.Mdl="MDL",e.Mga="MGA",e.Mkd="MKD",e.Mmk="MMK",e.Mnt="MNT",e.Mop="MOP",e.Mro="MRO",e.Mvr="MVR",e.Mwk="MWK",e.Mxn="MXN",e.Myr="MYR",e.Mzn="MZN",e.Nad="NAD",e.Ngn="NGN",e.Nok="NOK",e.Npr="NPR",e.Nzd="NZD",e.Pgk="PGK",e.Php="PHP",e.Pkr="PKR",e.Pln="PLN",e.Pyg="PYG",e.Qar="QAR",e.Ron="RON",e.Rsd="RSD",e.Rub="RUB",e.Rwf="RWF",e.Sar="SAR",e.Sbd="SBD",e.Scr="SCR",e.Sek="SEK",e.Sgd="SGD",e.Sle="SLE",e.Sll="SLL",e.Sos="SOS",e.Szl="SZL",e.Thb="THB",e.Tjs="TJS",e.Top="TOP",e.Try="TRY",e.Ttd="TTD",e.Tzs="TZS",e.Uah="UAH",e.Ugx="UGX",e.Usd="USD",e.Uzs="UZS",e.Vnd="VND",e.Vuv="VUV",e.Wst="WST",e.Xaf="XAF",e.Xcd="XCD",e.Xof="XOF",e.Xpf="XPF",e.Yer="YER",e.Zar="ZAR",e.Zmw="ZMW"}(E||(E={})),function(e){e.BillingId="billingId",e.CreatedAt="createdAt",e.CrmHubspotCompanyId="crmHubspotCompanyId",e.CrmHubspotCompanyUrl="crmHubspotCompanyUrl",e.CrmId="crmId",e.CustomerId="customerId",e.Email="email",e.EnvironmentId="environmentId",e.Id="id",e.Name="name",e.RefId="refId",e.UpdatedAt="updatedAt"}(S||(S={})),function(e){e.BillingId="billingId",e.CancelReason="cancelReason",e.CancellationDate="cancellationDate",e.CreatedAt="createdAt",e.CrmId="crmId",e.CrmLinkUrl="crmLinkUrl",e.EffectiveEndDate="effectiveEndDate",e.EndDate="endDate",e.EnvironmentId="environmentId",e.Id="id",e.OldBillingId="oldBillingId",e.PricingType="pricingType",e.RefId="refId",e.StartDate="startDate",e.Status="status",e.SubscriptionId="subscriptionId",e.TrialEndDate="trialEndDate"}(w||(w={})),function(e){e.Forever="FOREVER",e.Once="ONCE",e.Repeating="REPEATING"}(I||(I={})),function(e){e.Fixed="FIXED",e.Percentage="PERCENTAGE"}(T||(T={})),function(e){e.Day="DAY",e.Hour="HOUR",e.Month="MONTH",e.Week="WEEK"}(C||(C={})),function(e){e.BlackList="BLACK_LIST",e.WhiteList="WHITE_LIST"}(P||(P={})),function(e){e.Done="DONE",e.Failed="FAILED",e.InProgress="IN_PROGRESS",e.NotProvisioned="NOT_PROVISIONED"}(A||(A={})),function(e){e.CreatedAt="createdAt",e.DisplayName="displayName",e.Id="id",e.Slug="slug"}(D||(D={})),function(e){e.AccountNotFoundError="AccountNotFoundError",e.AddonHasToHavePriceError="AddonHasToHavePriceError",e.AddonNotFound="AddonNotFound",e.ArchivedCouponCantBeApplied="ArchivedCouponCantBeApplied",e.AuthCustomerMismatch="AuthCustomerMismatch",e.BadUserInput="BadUserInput",e.BillingPeriodMissingError="BillingPeriodMissingError",e.CannotDeleteCustomerError="CannotDeleteCustomerError",e.CannotDeleteFeatureError="CannotDeleteFeatureError",e.CannotEditPackageInNonDraftMode="CannotEditPackageInNonDraftMode",e.CheckoutIsNotSupported="CheckoutIsNotSupported",e.CheckoutOptionsMissing="CheckoutOptionsMissing",e.CouponNotFound="CouponNotFound",e.CustomerAlreadyHaveCustomerCoupon="CustomerAlreadyHaveCustomerCoupon",e.CustomerAlreadyUsesCoupon="CustomerAlreadyUsesCoupon",e.CustomerHasNoPaymentMethod="CustomerHasNoPaymentMethod",e.CustomerNoBillingId="CustomerNoBillingId",e.CustomerNotFound="CustomerNotFound",e.DowngradeBillingPeriodNotSupportedError="DowngradeBillingPeriodNotSupportedError",e.DraftPlanCantBeArchived="DraftPlanCantBeArchived",e.DuplicatedEntityNotAllowed="DuplicatedEntityNotAllowed",e.EditAllowedOnDraftPackageOnlyError="EditAllowedOnDraftPackageOnlyError",e.EntitlementsMustBelongToSamePackage="EntitlementsMustBelongToSamePackage",e.EntityIdDifferentFromRefIdError="EntityIdDifferentFromRefIdError",e.EnvironmentMissing="EnvironmentMissing",e.ExperimentAlreadyRunning="ExperimentAlreadyRunning",e.ExperimentNotFoundError="ExperimentNotFoundError",e.ExperimentStatusError="ExperimentStatusError",e.FailedToCreateCheckoutSessionError="FailedToCreateCheckoutSessionError",e.FailedToImportCustomer="FailedToImportCustomer",e.FeatureNotFound="FeatureNotFound",e.FetchAllCountriesPricesNotAllowed="FetchAllCountriesPricesNotAllowed",e.IdentityForbidden="IdentityForbidden",e.ImportAlreadyInProgress="ImportAlreadyInProgress",e.InitStripePaymentMethodError="InitStripePaymentMethodError",e.IntegrationNotFound="IntegrationNotFound",e.IntegrityViolation="IntegrityViolation",e.InvalidAddressError="InvalidAddressError",e.InvalidArgumentError="InvalidArgumentError",e.InvalidCancellationDate="InvalidCancellationDate",e.InvalidEntitlementResetPeriod="InvalidEntitlementResetPeriod",e.InvalidMemberDelete="InvalidMemberDelete",e.InvalidQuantity="InvalidQuantity",e.InvalidSubscriptionStatus="InvalidSubscriptionStatus",e.InvalidUpdatePriceUnitAmountError="InvalidUpdatePriceUnitAmountError",e.InvalidUsageValueForIncrementalFeatureError="InvalidUsageValueForIncrementalFeatureError",e.MemberInvitationError="MemberInvitationError",e.MemberNotFound="MemberNotFound",e.MeteringNotAvailableForFeatureType="MeteringNotAvailableForFeatureType",e.MissingEntityIdError="MissingEntityIdError",e.NoFeatureEntitlementInSubscription="NoFeatureEntitlementInSubscription",e.NoProductsAvailable="NoProductsAvailable",e.OperationNotAllowedDuringInProgressExperiment="OperationNotAllowedDuringInProgressExperiment",e.PackageAlreadyPublished="PackageAlreadyPublished",e.PackagePricingTypeNotSet="PackagePricingTypeNotSet",e.PlanAlreadyExtended="PlanAlreadyExtended",e.PlanCannotBePublishWhenBasePlanIsDraft="PlanCannotBePublishWhenBasePlanIsDraft",e.PlanIsUsedAsDefaultStartPlan="PlanIsUsedAsDefaultStartPlan",e.PlanIsUsedAsDowngradePlan="PlanIsUsedAsDowngradePlan",e.PlanNotFound="PlanNotFound",e.PlanWithChildCantBeDeleted="PlanWithChildCantBeDeleted",e.PlansCircularDependencyError="PlansCircularDependencyError",e.PriceNotFound="PriceNotFound",e.PromotionCodeCustomerNotFirstPurchase="PromotionCodeCustomerNotFirstPurchase",e.PromotionCodeMaxRedemptionsReached="PromotionCodeMaxRedemptionsReached",e.PromotionCodeMinimumAmountNotReached="PromotionCodeMinimumAmountNotReached",e.PromotionCodeNotActive="PromotionCodeNotActive",e.PromotionCodeNotForCustomer="PromotionCodeNotForCustomer",e.PromotionCodeNotFound="PromotionCodeNotFound",e.RateLimitExceeded="RateLimitExceeded",e.ResyncAlreadyInProgress="ResyncAlreadyInProgress",e.SelectedBillingModelDoesntMatchImportedItemError="SelectedBillingModelDoesntMatchImportedItemError",e.StripeCustomerIsDeleted="StripeCustomerIsDeleted",e.SubscriptionAlreadyCanceledOrExpired="SubscriptionAlreadyCanceledOrExpired",e.SubscriptionMustHaveSinglePlanError="SubscriptionMustHaveSinglePlanError",e.SubscriptionNotFound="SubscriptionNotFound",e.TrialMinDateError="TrialMinDateError",e.TrialMustBeCancelledImmediately="TrialMustBeCancelledImmediately",e.UnPublishedPackage="UnPublishedPackage",e.Unauthenticated="Unauthenticated",e.UncompatibleSubscriptionAddon="UncompatibleSubscriptionAddon",e.UnexpectedError="UnexpectedError",e.UnsupportedFeatureType="UnsupportedFeatureType",e.UnsupportedSubscriptionScheduleType="UnsupportedSubscriptionScheduleType",e.UnsupportedVendorIdentifier="UnsupportedVendorIdentifier"}(O||(O={})),function(e){e.AddonCreated="ADDON_CREATED",e.AddonDeleted="ADDON_DELETED",e.AddonUpdated="ADDON_UPDATED",e.CouponArchived="COUPON_ARCHIVED",e.CouponCreated="COUPON_CREATED",e.CouponUpdated="COUPON_UPDATED",e.CreateSubscriptionFailed="CREATE_SUBSCRIPTION_FAILED",e.CustomerCreated="CUSTOMER_CREATED",e.CustomerDeleted="CUSTOMER_DELETED",e.CustomerPaymentFailed="CUSTOMER_PAYMENT_FAILED",e.CustomerUpdated="CUSTOMER_UPDATED",e.EdgeApiDataResync="EDGE_API_DATA_RESYNC",e.EntitlementsUpdated="ENTITLEMENTS_UPDATED",e.EntitlementDenied="ENTITLEMENT_DENIED",e.EntitlementGranted="ENTITLEMENT_GRANTED",e.EntitlementRequested="ENTITLEMENT_REQUESTED",e.EnvironmentDeleted="ENVIRONMENT_DELETED",e.FeatureCreated="FEATURE_CREATED",e.FeatureDeleted="FEATURE_DELETED",e.FeatureUpdated="FEATURE_UPDATED",e.ImportIntegrationCatalogTriggered="IMPORT_INTEGRATION_CATALOG_TRIGGERED",e.ImportIntegrationCustomersTriggered="IMPORT_INTEGRATION_CUSTOMERS_TRIGGERED",e.MeasurementReported="MEASUREMENT_REPORTED",e.PackagePublished="PACKAGE_PUBLISHED",e.PlanCreated="PLAN_CREATED",e.PlanDeleted="PLAN_DELETED",e.PlanUpdated="PLAN_UPDATED",e.ProductCreated="PRODUCT_CREATED",e.ProductDeleted="PRODUCT_DELETED",e.ProductUpdated="PRODUCT_UPDATED",e.PromotionalEntitlementExpired="PROMOTIONAL_ENTITLEMENT_EXPIRED",e.PromotionalEntitlementGranted="PROMOTIONAL_ENTITLEMENT_GRANTED",e.PromotionalEntitlementRevoked="PROMOTIONAL_ENTITLEMENT_REVOKED",e.PromotionalEntitlementUpdated="PROMOTIONAL_ENTITLEMENT_UPDATED",e.ResyncIntegrationTriggered="RESYNC_INTEGRATION_TRIGGERED",e.SubscriptionCanceled="SUBSCRIPTION_CANCELED",e.SubscriptionCreated="SUBSCRIPTION_CREATED",e.SubscriptionExpired="SUBSCRIPTION_EXPIRED",e.SubscriptionTrialConverted="SUBSCRIPTION_TRIAL_CONVERTED",e.SubscriptionTrialEndsSoon="SUBSCRIPTION_TRIAL_ENDS_SOON",e.SubscriptionTrialExpired="SUBSCRIPTION_TRIAL_EXPIRED",e.SubscriptionTrialStarted="SUBSCRIPTION_TRIAL_STARTED",e.SubscriptionUpdated="SUBSCRIPTION_UPDATED",e.SubscriptionUsageUpdated="SUBSCRIPTION_USAGE_UPDATED",e.SyncFailed="SYNC_FAILED",e.WidgetConfigurationUpdated="WIDGET_CONFIGURATION_UPDATED"}(R||(R={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Name="name",e.ProductId="productId",e.RefId="refId",e.Status="status"}(N||(N={})),function(e){e.Completed="COMPLETED",e.Draft="DRAFT",e.InProgress="IN_PROGRESS"}(x||(x={})),function(e){e.CreatedAt="createdAt",e.Description="description",e.DisplayName="displayName",e.EnvironmentId="environmentId",e.FeatureStatus="featureStatus",e.FeatureType="featureType",e.Id="id",e.MeterType="meterType",e.RefId="refId",e.UpdatedAt="updatedAt"}(k||(k={})),function(e){e.Active="ACTIVE",e.New="NEW",e.Suspended="SUSPENDED"}(F||(F={})),function(e){e.Boolean="BOOLEAN",e.Number="NUMBER"}(U||(U={})),function(e){e.Bold="BOLD",e.Normal="NORMAL"}(M||(M={})),function(e){e.CreatedAt="createdAt",e.Endpoint="endpoint",e.EnvironmentId="environmentId",e.Id="id",e.Status="status"}(L||(L={})),function(e){e.Active="ACTIVE",e.Inactive="INACTIVE"}(j||(j={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Status="status",e.TaskType="taskType"}(B||(B={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.VendorIdentifier="vendorIdentifier"}(q||(q={})),function(e){e.CreatedAt="createdAt",e.Id="id"}(V||(V={})),function(e){e.Invited="INVITED",e.Registered="REGISTERED"}(G||(G={})),function(e){e.Fluctuating="Fluctuating",e.Incremental="Incremental",e.None="None"}($||($={})),function(e){e.StartOfTheMonth="StartOfTheMonth",e.SubscriptionStart="SubscriptionStart"}(z||(z={})),function(e){e.BillingId="billingId",e.CreatedAt="createdAt",e.Description="description",e.DisplayName="displayName",e.EnvironmentId="environmentId",e.Id="id",e.IsLatest="isLatest",e.PricingType="pricingType",e.ProductId="productId",e.RefId="refId",e.Status="status",e.UpdatedAt="updatedAt",e.VersionNumber="versionNumber"}(Q||(Q={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.PackageId="packageId",e.UpdatedAt="updatedAt"}(W||(W={})),function(e){e.Archived="ARCHIVED",e.Draft="DRAFT",e.Published="PUBLISHED"}(K||(K={})),function(e){e.Bank="BANK",e.Card="CARD"}(Y||(Y={})),function(e){e.BillingId="billingId",e.CreatedAt="createdAt",e.Description="description",e.DisplayName="displayName",e.EnvironmentId="environmentId",e.Id="id",e.IsLatest="isLatest",e.PricingType="pricingType",e.ProductId="productId",e.RefId="refId",e.Status="status",e.UpdatedAt="updatedAt",e.VersionNumber="versionNumber"}(H||(H={})),function(e){e.Custom="CUSTOM",e.Free="FREE",e.Paid="PAID"}(J||(J={})),function(e){e.CreatedAt="createdAt",e.Description="description",e.DisplayName="displayName",e.EnvironmentId="environmentId",e.Id="id",e.IsDefaultProduct="isDefaultProduct",e.RefId="refId",e.UpdatedAt="updatedAt"}(X||(X={})),function(e){e.Custom="CUSTOM",e.Lifetime="LIFETIME",e.OneMonth="ONE_MONTH",e.OneWeek="ONE_WEEK",e.OneYear="ONE_YEAR",e.SixMonth="SIX_MONTH"}(Z||(Z={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Status="status",e.UpdatedAt="updatedAt"}(ee||(ee={})),function(e){e.Active="Active",e.Expired="Expired",e.Paused="Paused"}(te||(te={})),function(e){e.CreateProrations="CREATE_PRORATIONS",e.InvoiceImmediately="INVOICE_IMMEDIATELY"}(ne||(ne={})),function(e){e.PaymentRequired="PAYMENT_REQUIRED",e.Success="SUCCESS"}(re||(re={})),function(e){e.AllCustomers="ALL_CUSTOMERS",e.NewCustomers="NEW_CUSTOMERS"}(ie||(ie={})),function(e){e.Asc="ASC",e.Desc="DESC"}(oe||(oe={})),function(e){e.NullsFirst="NULLS_FIRST",e.NullsLast="NULLS_LAST"}(ae||(ae={})),function(e){e.JsClientSdk="JS_CLIENT_SDK",e.NodeServerSdk="NODE_SERVER_SDK"}(se||(se={})),function(e){e.CreatedAt="createdAt",e.Id="id",e.Quantity="quantity",e.UpdatedAt="updatedAt"}(ue||(ue={})),function(e){e.CancelledByBilling="CancelledByBilling",e.DetachBilling="DetachBilling",e.Expired="Expired",e.Immediate="Immediate",e.PendingPaymentExpired="PendingPaymentExpired",e.ScheduledCancellation="ScheduledCancellation",e.TrialConverted="TrialConverted",e.TrialEnded="TrialEnded",e.UpgradeOrDowngrade="UpgradeOrDowngrade"}(ce||(ce={})),function(e){e.EndOfBillingPeriod="END_OF_BILLING_PERIOD",e.Immediate="IMMEDIATE",e.SpecificDate="SPECIFIC_DATE"}(le||(le={})),function(e){e.PredefinedFreePlan="PREDEFINED_FREE_PLAN",e.PredefinedTrialPlan="PREDEFINED_TRIAL_PLAN",e.RequestedPlan="REQUESTED_PLAN",e.SkippedSubscriptionCreation="SKIPPED_SUBSCRIPTION_CREATION"}(fe||(fe={})),function(e){e.CancelSubscription="CANCEL_SUBSCRIPTION",e.DowngradeToFree="DOWNGRADE_TO_FREE"}(pe||(pe={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.SubscriptionId="subscriptionId",e.UpdatedAt="updatedAt"}(de||(de={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Status="status",e.TaskType="taskType"}(he||(he={})),function(e){e.CreatedAt="createdAt",e.Id="id",e.UpdatedAt="updatedAt",e.UsageLimit="usageLimit"}(ve||(ve={})),function(e){e.Canceled="Canceled",e.Done="Done",e.Failed="Failed",e.Scheduled="Scheduled"}(me||(me={})),function(e){e.BillingPeriod="BillingPeriod",e.Downgrade="Downgrade",e.UnitAmount="UnitAmount"}(ye||(ye={})),function(e){e.FreePlan="FREE_PLAN",e.PlanSelection="PLAN_SELECTION",e.TrialPeriod="TRIAL_PERIOD"}(ge||(ge={})),function(e){e.Active="ACTIVE",e.Canceled="CANCELED",e.Expired="EXPIRED",e.InTrial="IN_TRIAL",e.NotStarted="NOT_STARTED",e.PaymentPending="PAYMENT_PENDING"}(_e||(_e={})),function(e){e.Error="ERROR",e.NoSyncRequired="NO_SYNC_REQUIRED",e.Pending="PENDING",e.Success="SUCCESS"}(be||(be={})),function(e){e.Completed="COMPLETED",e.Failed="FAILED",e.InProgress="IN_PROGRESS",e.PartiallyFailed="PARTIALLY_FAILED",e.Pending="PENDING"}(Ee||(Ee={})),function(e){e.ImportIntegrationCatalog="IMPORT_INTEGRATION_CATALOG",e.ImportIntegrationCustomers="IMPORT_INTEGRATION_CUSTOMERS",e.ResyncIntegration="RESYNC_INTEGRATION",e.SubscriptionMigration="SUBSCRIPTION_MIGRATION"}(Se||(Se={})),function(e){e.Day="DAY",e.Month="MONTH"}(we||(we={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id"}(Ie||(Ie={})),function(e){e.Hubspot="HUBSPOT",e.Stripe="STRIPE",e.Zuora="ZUORA"}(Te||(Te={})),function(e){e.EveryFriday="EveryFriday",e.EveryMonday="EveryMonday",e.EverySaturday="EverySaturday",e.EverySunday="EverySunday",e.EveryThursday="EveryThursday",e.EveryTuesday="EveryTuesday",e.EveryWednesday="EveryWednesday",e.SubscriptionStart="SubscriptionStart"}(Ce||(Ce={})),function(e){e.CustomerPortal="CUSTOMER_PORTAL",e.Paywall="PAYWALL"}(Pe||(Pe={})),function(e){e.Control="CONTROL",e.Variant="VARIANT"}(Ae||(Ae={})),function(e){e.InvalidFeatureType="InvalidFeatureType",e.CustomerNotFound="CustomerNotFound",e.FeatureNotFound="FeatureNotFound",e.NoActiveSubscriptions="NoActiveSubscriptions",e.CustomerNotEntitledForFeature="CustomerNotEntitledForFeature",e.RequestedUsageExceedsLimit="RequestedUsageExceedsLimit",e.Unknown="Unknown"}(De||(De={})),function(e){e.Boolean="Boolean",e.Numeric="Numeric"}(Oe||(Oe={})),function(e){e.Fluctuating="Fluctuating",e.Incremental="Incremental",e.None="None"}(Re||(Re={})),function(e){e.Daily="Daily",e.Hourly="Hourly",e.Monthly="Monthly",e.Weekly="Weekly"}(Ne||(Ne={}));var ke,Fe,Ue={isFallback:!0,hasAccess:!1,accessDeniedReason:De.Unknown},Me={isFallback:!0,hasAccess:!1,isUnlimited:!1,accessDeniedReason:De.Unknown},Le={isFallback:!0,hasAccess:!1,isUnlimited:!1,currentUsage:0,requestedUsage:1,accessDeniedReason:De.Unknown},je=function(){function e(e){Object.assign(this,e)}return e.prototype.getActiveSubscriptions=function(){return this.subscriptions.filter((function(e){return e.status===_e.Active}))},e.prototype.getActiveTrials=function(){return this.subscriptions.filter((function(e){return e.status===_e.InTrial}))},e.prototype.getActivePromotionalEntitlements=function(){return this.promotionalEntitlements.filter((function(e){return e.status===te.Active}))},e}(),Be=n(2909),qe=(0,Be.gql)(Ge||(ke=["\n query SdkConfiguration {\n sdkConfiguration {\n sentryDsn\n isWidgetWatermarkEnabled\n }\n }\n"],Fe=["\n query SdkConfiguration {\n sdkConfiguration {\n sentryDsn\n isWidgetWatermarkEnabled\n }\n }\n"],Object.defineProperty?Object.defineProperty(ke,"raw",{value:Fe}):ke.raw=Fe,Ge=ke));const Ve=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:qe})},e}();var Ge,$e=n(890),ze=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},Qe=function(){return Qe=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},Qe.apply(this,arguments)},We=(0,Be.gql)(Xe||(Xe=ze(["\n fragment TypographyConfigurationFragment on TypographyConfiguration {\n fontFamily\n h1 {\n ...FontVariantFragment\n }\n h2 {\n ...FontVariantFragment\n }\n h3 {\n ...FontVariantFragment\n }\n body {\n ...FontVariantFragment\n }\n }\n fragment FontVariantFragment on FontVariant {\n fontSize\n fontWeight\n }\n"],["\n fragment TypographyConfigurationFragment on TypographyConfiguration {\n fontFamily\n h1 {\n ...FontVariantFragment\n }\n h2 {\n ...FontVariantFragment\n }\n h3 {\n ...FontVariantFragment\n }\n body {\n ...FontVariantFragment\n }\n }\n fragment FontVariantFragment on FontVariant {\n fontSize\n fontWeight\n }\n"]))),Ke=(0,Be.gql)(Ze||(Ze=ze(["\n fragment LayoutConfigurationFragment on PaywallLayoutConfiguration {\n alignment\n planWidth\n planMargin\n planPadding\n }\n"],["\n fragment LayoutConfigurationFragment on PaywallLayoutConfiguration {\n alignment\n planWidth\n planMargin\n planPadding\n }\n"]))),Ye=(0,Be.gql)(et||(et=ze(["\n fragment PaywallConfigurationFragment on PaywallConfiguration {\n palette {\n primary\n textColor\n backgroundColor\n borderColor\n currentPlanBackground\n }\n typography {\n ...TypographyConfigurationFragment\n }\n layout {\n ...LayoutConfigurationFragment\n }\n }\n ","\n ","\n"],["\n fragment PaywallConfigurationFragment on PaywallConfiguration {\n palette {\n primary\n textColor\n backgroundColor\n borderColor\n currentPlanBackground\n }\n typography {\n ...TypographyConfigurationFragment\n }\n layout {\n ...LayoutConfigurationFragment\n }\n }\n ","\n ","\n"])),We,Ke),He=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.context,i=e.billingCountryCode;return!n&&this.edgeApiClient?this.edgeApiClient.getPaywall(t,i):this.client.query({query:$e.RV,fetchPolicy:"no-cache",variables:{input:Qe(Qe(Qe(Qe({},t?{productId:t}:{}),n?{customerId:n}:{}),r?{context:r}:{}),i?{billingCountryCode:i}:{})}})},e}();const Je=He;var Xe,Ze,et,tt=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},nt=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())}))},rt=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])}}},it=(0,Be.gql)(ut||(ut=tt(["\n fragment ResetPeriodConfigurationFragment on ResetPeriodConfiguration {\n __typename\n ... on MonthlyResetPeriodConfig {\n ...MonthlyResetPeriodConfigFragment\n }\n ... on WeeklyResetPeriodConfig {\n ...WeeklyResetPeriodConfigFragment\n }\n }\n\n fragment MonthlyResetPeriodConfigFragment on MonthlyResetPeriodConfig {\n monthlyAccordingTo\n }\n fragment WeeklyResetPeriodConfigFragment on WeeklyResetPeriodConfig {\n weeklyAccordingTo\n }\n"],["\n fragment ResetPeriodConfigurationFragment on ResetPeriodConfiguration {\n __typename\n ... on MonthlyResetPeriodConfig {\n ...MonthlyResetPeriodConfigFragment\n }\n ... on WeeklyResetPeriodConfig {\n ...WeeklyResetPeriodConfigFragment\n }\n }\n\n fragment MonthlyResetPeriodConfigFragment on MonthlyResetPeriodConfig {\n monthlyAccordingTo\n }\n fragment WeeklyResetPeriodConfigFragment on WeeklyResetPeriodConfig {\n weeklyAccordingTo\n }\n"]))),ot=(0,Be.gql)(ct||(ct=tt(["\n fragment FeatureFragment on EntitlementFeature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n description\n displayName\n refId\n }\n"],["\n fragment FeatureFragment on EntitlementFeature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n description\n displayName\n refId\n }\n"]))),at=function(){function e(e,t){this.client=e,this.edgeApiClient=t}return e.prototype.getEntitlements=function(e,t){return void 0===t&&(t=!1),nt(this,void 0,void 0,(function(){return rt(this,(function(n){return this.edgeApiClient&&!t?[2,this.edgeApiClient.getEntitlements(e)]:[2,this.client.query({query:$e.ro,variables:{query:{customerId:e}},fetchPolicy:"no-cache"})]}))}))},e.prototype.pollEntitlements=function(e,t){return this.edgeApiClient?this.edgeApiClient.watchEntitlements(e,t):this.client.watchQuery({query:$e.ro,variables:{query:{customerId:e}},fetchPolicy:"no-cache",pollInterval:t,errorPolicy:"none"})},e.prototype.reportEntitlementRequested=function(e,t,n,r){return nt(this,void 0,void 0,(function(){return rt(this,(function(i){switch(i.label){case 0:return[4,this.client.mutate({mutation:(0,Be.gql)(lt||(lt=tt(["\n mutation reportEntitlementCheckRequested($entitlementCheckRequested: EntitlementCheckRequested!) {\n reportEntitlementCheckRequested(entitlementCheckRequested: $entitlementCheckRequested)\n }\n "],["\n mutation reportEntitlementCheckRequested($entitlementCheckRequested: EntitlementCheckRequested!) {\n reportEntitlementCheckRequested(entitlementCheckRequested: $entitlementCheckRequested)\n }\n "]))),variables:{entitlementCheckRequested:{entitlementCheckResult:n,customerId:t,featureId:e,requestedUsage:r}},fetchPolicy:"no-cache"})];case 1:return i.sent(),[2]}}))}))},e}();const st=at;var ut,ct,lt,ft=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},pt=(0,Be.gql)(Et||(Et=ft(["\n fragment CustomerPortalEntitlement on Entitlement {\n isGranted\n usageLimit\n currentUsage\n hasUnlimitedUsage\n nextResetDate\n resetPeriod\n resetPeriodConfiguration {\n ...ResetPeriodConfigurationFragment\n }\n feature {\n ...FeatureFragment\n }\n }\n ","\n ","\n"],["\n fragment CustomerPortalEntitlement on Entitlement {\n isGranted\n usageLimit\n currentUsage\n hasUnlimitedUsage\n nextResetDate\n resetPeriod\n resetPeriodConfiguration {\n ...ResetPeriodConfigurationFragment\n }\n feature {\n ...FeatureFragment\n }\n }\n ","\n ","\n"])),ot,it),dt=(0,Be.gql)(St||(St=ft(["\n fragment CustomerPortalPromotionalEntitlement on CustomerPortalPromotionalEntitlement {\n displayName\n hasUnlimitedUsage\n usageLimit\n period\n startDate\n endDate\n }\n"],["\n fragment CustomerPortalPromotionalEntitlement on CustomerPortalPromotionalEntitlement {\n displayName\n hasUnlimitedUsage\n usageLimit\n period\n startDate\n endDate\n }\n"]))),ht=(0,Be.gql)(wt||(wt=ft(["\n fragment CustomerPortalSubscriptionAddon on CustomerPortalAddon {\n addonId\n description\n displayName\n quantity\n }\n"],["\n fragment CustomerPortalSubscriptionAddon on CustomerPortalAddon {\n addonId\n description\n displayName\n quantity\n }\n"]))),vt=(0,Be.gql)(It||(It=ft(["\n fragment CustomerPortalBillingInformation on CustomerPortalBillingInformation {\n email\n name\n defaultPaymentMethodLast4Digits\n defaultPaymentMethodId\n defaultPaymentMethodLast4Digits\n defaultPaymentExpirationMonth\n defaultPaymentExpirationYear\n }\n"],["\n fragment CustomerPortalBillingInformation on CustomerPortalBillingInformation {\n email\n name\n defaultPaymentMethodLast4Digits\n defaultPaymentMethodId\n defaultPaymentMethodLast4Digits\n defaultPaymentExpirationMonth\n defaultPaymentExpirationYear\n }\n"]))),mt=(0,Be.gql)(Tt||(Tt=ft(["\n fragment CustomerPortalSubscriptionScheduledUpdateData on SubscriptionScheduledUpdate {\n subscriptionScheduleType\n scheduleStatus\n scheduledExecutionTime\n targetPackage {\n id\n refId\n displayName\n }\n scheduleVariables {\n ... on DowngradeChangeVariables {\n addonRefIds\n billingPeriod\n downgradePlanRefId\n }\n ... on BillingPeriodChangeVariables {\n billingPeriod\n }\n ... on UnitAmountChangeVariables {\n newUnitAmount\n }\n }\n }\n"],["\n fragment CustomerPortalSubscriptionScheduledUpdateData on SubscriptionScheduledUpdate {\n subscriptionScheduleType\n scheduleStatus\n scheduledExecutionTime\n targetPackage {\n id\n refId\n displayName\n }\n scheduleVariables {\n ... on DowngradeChangeVariables {\n addonRefIds\n billingPeriod\n downgradePlanRefId\n }\n ... on BillingPeriodChangeVariables {\n billingPeriod\n }\n ... on UnitAmountChangeVariables {\n newUnitAmount\n }\n }\n }\n"]))),yt=(0,Be.gql)(Ct||(Ct=ft(["\n fragment CustomerPortalSubscriptionFragment on CustomerPortalSubscription {\n subscriptionId\n planName\n pricing {\n unitQuantity\n billingPeriod\n billingModel\n pricingType\n usageBasedEstimatedBill\n price {\n amount\n }\n feature {\n featureUnits\n featureUnitsPlural\n displayName\n }\n }\n status\n trialRemainingDays\n billingPeriodRange {\n start\n end\n }\n totalPrice {\n subTotal {\n amount\n }\n total {\n amount\n }\n addonsTotal {\n amount\n }\n }\n addons {\n ...CustomerPortalSubscriptionAddon\n }\n scheduledUpdates {\n ...CustomerPortalSubscriptionScheduledUpdateData\n }\n }\n ","\n ","\n"],["\n fragment CustomerPortalSubscriptionFragment on CustomerPortalSubscription {\n subscriptionId\n planName\n pricing {\n unitQuantity\n billingPeriod\n billingModel\n pricingType\n usageBasedEstimatedBill\n price {\n amount\n }\n feature {\n featureUnits\n featureUnitsPlural\n displayName\n }\n }\n status\n trialRemainingDays\n billingPeriodRange {\n start\n end\n }\n totalPrice {\n subTotal {\n amount\n }\n total {\n amount\n }\n addonsTotal {\n amount\n }\n }\n addons {\n ...CustomerPortalSubscriptionAddon\n }\n scheduledUpdates {\n ...CustomerPortalSubscriptionScheduledUpdateData\n }\n }\n ","\n ","\n"])),ht,mt),gt=(0,Be.gql)(Pt||(Pt=ft(["\n fragment CustomerPortalConfigurationFragment on CustomerPortalConfiguration {\n palette {\n primary\n textColor\n backgroundColor\n borderColor\n currentPlanBackground\n iconsColor\n paywallBackgroundColor\n }\n typography {\n ...TypographyConfigurationFragment\n }\n }\n ","\n"],["\n fragment CustomerPortalConfigurationFragment on CustomerPortalConfiguration {\n palette {\n primary\n textColor\n backgroundColor\n borderColor\n currentPlanBackground\n iconsColor\n paywallBackgroundColor\n }\n typography {\n ...TypographyConfigurationFragment\n }\n }\n ","\n"])),We),_t=(0,Be.gql)(At||(At=ft(["\n fragment CustomerPortalFragment on CustomerPortal {\n subscriptions {\n ...CustomerPortalSubscriptionFragment\n }\n entitlements {\n ...CustomerPortalEntitlement\n }\n promotionalEntitlements {\n ...CustomerPortalPromotionalEntitlement\n }\n billingInformation {\n ...CustomerPortalBillingInformation\n }\n showWatermark\n billingPortalUrl\n canUpgradeSubscription\n configuration {\n ...CustomerPortalConfigurationFragment\n }\n }\n ","\n ","\n ","\n ","\n ","\n"],["\n fragment CustomerPortalFragment on CustomerPortal {\n subscriptions {\n ...CustomerPortalSubscriptionFragment\n }\n entitlements {\n ...CustomerPortalEntitlement\n }\n promotionalEntitlements {\n ...CustomerPortalPromotionalEntitlement\n }\n billingInformation {\n ...CustomerPortalBillingInformation\n }\n showWatermark\n billingPortalUrl\n canUpgradeSubscription\n configuration {\n ...CustomerPortalConfigurationFragment\n }\n }\n ","\n ","\n ","\n ","\n ","\n"])),gt,yt,pt,dt,vt);const bt=function(){function e(e){this.client=e}return e.prototype.getCustomer=function(e){return this.client.query({query:$e.Ze,variables:{input:{customerId:e}},fetchPolicy:"no-cache"})},e.prototype.getCustomerPortal=function(e){return this.client.query({query:(0,Be.gql)(Dt||(Dt=ft(["\n query GetCustomerPortalByRefId($input: CustomerPortalInput!) {\n customerPortal(input: $input) {\n ...CustomerPortalFragment\n }\n }\n ","\n "],["\n query GetCustomerPortalByRefId($input: CustomerPortalInput!) {\n customerPortal(input: $input) {\n ...CustomerPortalFragment\n }\n }\n ","\n "])),_t),variables:{input:{customerId:e}},fetchPolicy:"no-cache"})},e}();var Et,St,wt,It,Tt,Ct,Pt,At,Dt,Ot=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},Rt=(0,Be.gql)(kt||(kt=Ot(["\n fragment CouponFragment on Coupon {\n id\n discountValue\n type\n additionalMetaData\n refId\n name\n description\n createdAt\n updatedAt\n billingId\n billingLinkUrl\n type\n status\n syncStates {\n vendorIdentifier\n status\n }\n customers {\n id\n }\n }\n"],["\n fragment CouponFragment on Coupon {\n id\n discountValue\n type\n additionalMetaData\n refId\n name\n description\n createdAt\n updatedAt\n billingId\n billingLinkUrl\n type\n status\n syncStates {\n vendorIdentifier\n status\n }\n customers {\n id\n }\n }\n"]))),Nt=(0,Be.gql)(Ft||(Ft=Ot(["\n ","\n query FetchCoupons($filter: CouponFilter, $sorting: [CouponSort!], $paging: CursorPaging) {\n coupons(filter: $filter, sorting: $sorting, paging: $paging) {\n edges {\n node {\n ...CouponFragment\n }\n }\n }\n }\n"],["\n ","\n query FetchCoupons($filter: CouponFilter, $sorting: [CouponSort!], $paging: CursorPaging) {\n coupons(filter: $filter, sorting: $sorting, paging: $paging) {\n edges {\n node {\n ...CouponFragment\n }\n }\n }\n }\n"])),Rt);const xt=function(){function e(e){this.client=e}return e.prototype.getCoupons=function(){return this.client.query({query:Nt,fetchPolicy:"no-cache",variables:{paging:{first:50},filter:{status:{eq:_.Active}}}})},e}();var kt,Ft,Ut=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())}))},Mt=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])}}},Lt=function(){function e(e){this.client=e}return e.prototype.estimateSubscription=function(e){var t;return Ut(this,void 0,void 0,(function(){return Mt(this,(function(n){return[2,this.client.mutate({mutation:$e.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}}})]}))}))},e.prototype.estimateSubscriptionUpdate=function(e){return Ut(this,void 0,void 0,(function(){return Mt(this,(function(t){return[2,this.client.mutate({mutation:$e.wO,variables:{input:{subscriptionId:e.subscriptionId,unitQuantity:e.unitQuantity,addons:e.addons,promotionCode:e.promotionCode}}})]}))}))},e}();const jt=Lt;var Bt=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},qt=function(){return qt=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},qt.apply(this,arguments)},Vt=(0,Be.gql)(Kt||(Kt=Bt(["\n fragment MockPaywallPackageEntitlementFragment on Entitlement {\n usageLimit\n hasUnlimitedUsage\n resetPeriod\n hiddenFromWidgets\n displayNameOverride\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n additionalMetaData\n }\n }\n"],["\n fragment MockPaywallPackageEntitlementFragment on Entitlement {\n usageLimit\n hasUnlimitedUsage\n resetPeriod\n hiddenFromWidgets\n displayNameOverride\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n additionalMetaData\n }\n }\n"]))),Gt=(0,Be.gql)(Yt||(Yt=Bt(["\n fragment MockPaywallAddonFragment on PaywallAddon {\n refId\n displayName\n description\n additionalMetaData\n billingId\n entitlements {\n ...MockPaywallPackageEntitlementFragment\n }\n prices {\n ...MockPaywallPriceFragment\n }\n pricingType\n }\n"],["\n fragment MockPaywallAddonFragment on PaywallAddon {\n refId\n displayName\n description\n additionalMetaData\n billingId\n entitlements {\n ...MockPaywallPackageEntitlementFragment\n }\n prices {\n ...MockPaywallPriceFragment\n }\n pricingType\n }\n"]))),$t=(0,Be.gql)(Ht||(Ht=Bt(["\n fragment MockPaywallPriceFragment on PaywallPrice {\n billingModel\n billingPeriod\n billingId\n minUnitQuantity\n maxUnitQuantity\n billingCountryCode\n price {\n amount\n currency\n }\n feature {\n featureUnits\n featureUnitsPlural\n displayName\n }\n }\n"],["\n fragment MockPaywallPriceFragment on PaywallPrice {\n billingModel\n billingPeriod\n billingId\n minUnitQuantity\n maxUnitQuantity\n billingCountryCode\n price {\n amount\n currency\n }\n feature {\n featureUnits\n featureUnitsPlural\n displayName\n }\n }\n"]))),zt=(0,Be.gql)(Jt||(Jt=Bt(["\n fragment MockPaywallPlanFragment on PaywallPlan {\n refId\n description\n displayName\n billingId\n additionalMetaData\n product {\n refId\n displayName\n description\n additionalMetaData\n }\n basePlan {\n refId\n displayName\n }\n entitlements {\n ...MockPaywallPackageEntitlementFragment\n }\n inheritedEntitlements {\n ...MockPaywallPackageEntitlementFragment\n }\n prices {\n ...MockPaywallPriceFragment\n }\n pricingType\n defaultTrialConfig {\n duration\n units\n }\n compatibleAddons {\n ...MockPaywallAddonFragment\n }\n }\n ","\n ","\n ","\n"],["\n fragment MockPaywallPlanFragment on PaywallPlan {\n refId\n description\n displayName\n billingId\n additionalMetaData\n product {\n refId\n displayName\n description\n additionalMetaData\n }\n basePlan {\n refId\n displayName\n }\n entitlements {\n ...MockPaywallPackageEntitlementFragment\n }\n inheritedEntitlements {\n ...MockPaywallPackageEntitlementFragment\n }\n prices {\n ...MockPaywallPriceFragment\n }\n pricingType\n defaultTrialConfig {\n duration\n units\n }\n compatibleAddons {\n ...MockPaywallAddonFragment\n }\n }\n ","\n ","\n ","\n"])),Vt,$t,Gt),Qt=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:(0,Be.gql)(Xt||(Xt=Bt(["\n query GetMockPaywall($input: GetPaywallInput!) {\n mockPaywall(input: $input) {\n plans {\n ...MockPaywallPlanFragment\n }\n configuration {\n ...PaywallConfigurationFragment\n }\n }\n }\n ","\n ","\n "],["\n query GetMockPaywall($input: GetPaywallInput!) {\n mockPaywall(input: $input) {\n plans {\n ...MockPaywallPlanFragment\n }\n configuration {\n ...PaywallConfigurationFragment\n }\n }\n }\n ","\n ","\n "])),Ye,zt),fetchPolicy:"no-cache",variables:{input:qt(qt(qt({},t?{productId:t}:{}),n?{customerId:n}:{}),r?{context:r}:{})}})},e}();const Wt=Qt;var Kt,Yt,Ht,Jt,Xt;const Zt=function(e,t){this.sdkConfiguration=new Ve(e,t),this.paywall=new Je(e,t),this.mockPaywall=new Wt(e),this.customers=new bt(e),this.coupons=new xt(e),this.subscriptionEstimations=new jt(e)};var en=n(1609),tn=n.n(en),nn=n(2492),rn=n.n(nn),on=se.JsClientSdk,an=function(){var e="https://api.stigg.io";return{baseUri:e,baseEdgeUri:sn(e),entitlementPollingInterval:3e4,useEntitlementPolling:!0,logConfiguration:{logger:console,logLevel:o.ERROR},enableEdge:!0}};function sn(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 un(e){var t=e.customerId;if(!t||tn()(t))throw new Error("You must set customer ID first, use setCustomerId function or pass it via the constructor");return t}var cn=n(5161),ln=n.n(cn),fn=n(7557),pn=n.n(fn),dn=n(9704),hn=n.n(dn),vn=function(){return vn=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},vn.apply(this,arguments)},mn=function(){function e(){this.getResetPeriodData=function(e,t){switch(e){case Ne.Monthly:return{monthlyResetPeriodConfiguration:{accordingTo:t.monthlyAccordingTo||z.SubscriptionStart}};case Ne.Weekly:return{weeklyResetPeriodConfiguration:{accordingTo:t.weeklyAccordingTo||Ce.EveryFriday}};default:return{}}}}return e.prototype.mapBooleanEntitlement=function(e,t){return{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,feature:e.calculatedEntitlement.feature?vn(vn({},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?vn(vn({},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,c=s.nextResetDate,l=s.resetPeriod,f=null;return a&&a.featureType===Oe.Numeric&&a.meterType===$.Incremental&&l&&(f={nextResetDate:c,resetPeriod:l}),{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,isUnlimited:i,usageLimit:o||void 0,currentUsage:u,requestedUsage:n||0,resetSettings:f||void 0,feature:e.calculatedEntitlement.feature?vn(vn({},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===Oe.Numeric&&(a===$.Incremental||a===$.Fluctuating);switch(o){case Oe.Boolean:return this.mapBooleanEntitlement(e,t);case Oe.Numeric:return s?this.mapMeteredEntitlement(e,t,n):this.mapNumericEntitlement(e,t)}},e.prototype.mapFeatureType=function(e){switch(e){case U.Boolean:return Oe.Boolean;case U.Number:return Oe.Numeric}},e.prototype.mapEntitlementResetPeriod=function(e){switch(e){case C.Day:return Ne.Daily;case C.Hour:return Ne.Hourly;case C.Week:return Ne.Weekly;case C.Month:return Ne.Monthly}},e.prototype.mapApiEntitlementResetPeriod=function(e){switch(e){case Ne.Daily:return C.Day;case Ne.Hourly:return C.Hour;case Ne.Weekly:return C.Week;case Ne.Monthly:return C.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;return(null==e?void 0:e.paywall.customer)&&(r=this.mapCustomer(null==e?void 0:e.paywall.customer)),{plans:t,configuration:n,customer:r}},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}},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.mapCustomer=function(e){var t,n,r=this;return new je({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:ln()(e.subscriptions,(function(e){return r.mapSubscription(e)})),promotionalEntitlements:ln()(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:pn()(e.experimentInfo,"__typename")})},e.prototype.mapPaymentDetails=function(e){var t=e.defaultPaymentExpirationYear,n=e.defaultPaymentExpirationMonth,r=e.defaultPaymentMethodLast4Digits;if(hn()([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:ln()(e.entitlements,(function(e){return n.mapPackageEntitlement(e)})),inheritedEntitlements:ln()(e.inheritedEntitlements,(function(e){return n.mapPackageEntitlement(e)})),pricePoints:ln()(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===J.Free||!e.compatibleAddons)return[];var n=e.compatibleAddons;return(e.pricingType===J.Paid?n.filter((function(e){return e.pricingType===J.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===$.Fluctuating||t.meterType===$.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===$.Fluctuating||t.meterType===$.Incremental},hasUnlimitedUsage:e.hasUnlimitedUsage,expiresAt:e.endDate,hasExpirationDate:!!e.endDate,isVisible:e.isVisible}},e.prototype.mapSubscription=function(e){var t,n=this,r=e.totalPrice,i=(e.prices||[])[0];return{id:e.refId,status:e.status,currentBillingPeriodEnd:this.mapDate(e.currentBillingPeriodEnd),plan:this.mapPlan(e.plan),price:i&&r&&i.price?this.mapTotalPrice(i.price,r,i.usageLimit):null,pricingType:e.pricingType,addons:(null===(t=e.addons)||void 0===t?void 0:t.map((function(e){var t=e.quantity,r=e.addon;return{quantity:t,addon:n.mapAddon(r)}})))||[],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:pn()(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:ln()(e.entitlements,(function(e){return t.mapPackageEntitlement(e)})),pricePoints:ln()(e.prices,(function(e){return t.mapPrice(e)})),pricingType:e.pricingType,metadata:e.additionalMetaData}},e.prototype.mapAccessDeniedReason=function(e){switch(e){case De.InvalidFeatureType:return u.Unknown;case De.CustomerNotFound:return u.CustomerNotFound;case De.FeatureNotFound:return u.FeatureNotFound;case De.NoActiveSubscriptions:return u.NoActiveSubscription;case De.CustomerNotEntitledForFeature:return u.NoFeatureEntitlementInSubscription;case De.RequestedUsageExceedsLimit:return u.RequestedUsageExceedingLimit;case De.Unknown:return u.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 vn({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 vn(vn({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 vn({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}(),yn=function(){return yn=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},yn.apply(this,arguments)};function gn(e){if(e)return Object.keys(e).map((function(t){return yn({isFallback:!0,accessDeniedReason:De.Unknown,feature:{id:t}},e[t])}))}var _n=n(655),bn="Invariant Violation",En=Object.setPrototypeOf,Sn=void 0===En?function(e,t){return e.__proto__=t,e}:En,wn=function(e){function t(n){void 0===n&&(n=bn);var r=e.call(this,"number"==typeof n?bn+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=bn,Sn(r,t.prototype),r}return(0,_n.ZT)(t,e),t}(Error);function In(e,t){if(!e)throw new wn(t)}var Tn=["debug","log","warn","error","silent"],Cn=Tn.indexOf("log");function Pn(e){return function(){if(Tn.indexOf(e)>=Cn){var t=console[e]||console.log;return t.apply(console,arguments)}}}function An(e){try{return e()}catch(e){}}!function(e){e.debug=Pn("debug"),e.log=Pn("log"),e.warn=Pn("warn"),e.error=Pn("error")}(In||(In={}));const Dn=An((function(){return globalThis}))||An((function(){return window}))||An((function(){return self}))||An((function(){return n.g}))||An((function(){return Function("return this")()}));var On="__",Rn=[On,On].join("DEV");const Nn=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(Dn,Rn,{value:"production"!==An((function(){return"production"})),enumerable:!1,configurable:!0,writable:!0}),Dn[Rn]}}();function xn(e){try{return e()}catch(e){}}var kn=xn((function(){return globalThis}))||xn((function(){return window}))||xn((function(){return self}))||xn((function(){return n.g}))||xn((function(){return Function("return this")()})),Fn=!1;function Un(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 Mn(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 Ln(e,t,n){return t&&Mn(e.prototype,t),n&&Mn(e,n),e}!kn||xn((function(){return"production"}))||xn((function(){return process}))||(Object.defineProperty(kn,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),Fn=!0),n(4783).H,Fn&&(delete kn.process,Fn=!1),__DEV__?In("boolean"==typeof Nn,Nn):In("boolean"==typeof Nn,38);var jn=function(){return"function"==typeof Symbol},Bn=function(e){return jn()&&Boolean(Symbol[e])},qn=function(e){return Bn(e)?Symbol[e]:"@@"+e};jn()&&!Bn("observable")&&(Symbol.observable=Symbol("observable"));var Vn=qn("iterator"),Gn=qn("observable"),$n=qn("species");function zn(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function Qn(e){var t=e.constructor;return void 0!==t&&null===(t=t[$n])&&(t=void 0),void 0!==t?t:nr}function Wn(e){return e instanceof nr}function Kn(e){Kn.log?Kn.log(e):setTimeout((function(){throw e}))}function Yn(e){Promise.resolve().then((function(){try{e()}catch(e){Kn(e)}}))}function Hn(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=zn(t,"unsubscribe");n&&n.call(t)}}catch(e){Kn(e)}}function Jn(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function Xn(e,t,n){e._state="running";var r=e._observer;try{var i=zn(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(Jn(e),!i)throw n;i.call(r,n);break;case"complete":Jn(e),i&&i.call(r)}}catch(e){Kn(e)}"closed"===e._state?Hn(e):"running"===e._state&&(e._state="ready")}function Zn(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 Yn((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(Xn(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)}))):void Xn(e,t,n);e._queue.push({type:t,value:n})}}var er=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new tr(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&&(Jn(this),Hn(this))},Ln(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),tr=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){Zn(this._subscription,"next",e)},t.error=function(e){Zn(this._subscription,"error",e)},t.complete=function(){Zn(this._subscription,"complete")},Ln(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),nr=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 er(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(Qn(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(Qn(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=Qn(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=Qn(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=Qn(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[Gn]=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=zn(t,Gn);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return Wn(i)&&i.constructor===n?i:new n((function(e){return i.subscribe(e)}))}if(Bn("iterator")&&(r=zn(t,Vn)))return new n((function(e){Yn((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 Un(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)?Un(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){Yn((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){Yn((function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}}))}))},Ln(e,null,[{key:$n,get:function(){return this}}]),e}();function rr(e){return null!==e&&"object"==typeof e}function ir(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw __DEV__?new wn("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 wn(43);"FragmentDefinition"===e.kind&&r.push(e)})),void 0===n&&(__DEV__?In(1===r.length,"Found "+r.length+" fragments. `fragmentName` must be provided when there is not exactly 1 fragment."):In(1===r.length,44),n=r[0].name.value),(0,_n.pi)((0,_n.pi)({},e),{definitions:(0,_n.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function or(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function ar(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return __DEV__?In(n,"No fragment named "+e.name.value+"."):In(n,45),n;default:return null}}function sr(e){return{__ref:String(e)}}function ur(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function cr(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 cr(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 cr(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 wn('The inline argument "'+t.value+'" of kind "'+n.kind+'"is not supported. Use variables instead of inline arguments to overcome this limitation.'):new wn(54);e[t.value]=null}}jn()&&Object.defineProperty(nr,Symbol("extensions"),{value:{symbol:Gn,hostReportError:Kn},configurable:!0});var lr=["connection","include","skip","client","rest","export"],fr=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+"("+pr(i)+")"}return n.connection.key}var o=e;if(t){var a=pr(t);o+="("+a+")"}return n&&Object.keys(n).forEach((function(e){-1===lr.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@"+e+"("+pr(n[e])+")":o+="@"+e)})),o}),{setStringify:function(e){var t=pr;return pr=e,t}}),pr=function(e){return JSON.stringify(e,dr)};function dr(e,t){return rr(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{})),t}function hr(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return cr(n,r,i,t)})),n}return null}function vr(e){return e.alias?e.alias.value:e.name.value}function mr(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(yr(o)){if("__typename"===o.name.value)return e[vr(o)]}else{var a=mr(e,ar(o,n).selectionSet,n);if("string"==typeof a)return a}}}function yr(e){return"Field"===e.kind}function gr(e){return"InlineFragment"===e.kind}function _r(e){__DEV__?In(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'):In(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 wn('Schema type definitions not allowed in queries. Found: "'+e.kind+'"'):new wn(47);return e}));return __DEV__?In(t.length<=1,"Ambiguous GraphQL document: contains "+t.length+" operations"):In(t.length<=1,48),e}function br(e){return _r(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function Er(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}function Sr(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function wr(e){var t=br(e);return __DEV__?In(t&&"query"===t.operation,"Must contain a query definition."):In(t&&"query"===t.operation,49),t}function Ir(e){var t;_r(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 wn("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new wn(53)}function Tr(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach((function(e){e.defaultValue&&cr(t,e.variable.name,e.defaultValue)})),t}function Cr(e,t){return t?t(e):nr.of()}function Pr(e){return"function"==typeof e?new Or(e):e}function Ar(e){return e.request.length<=1}var Dr=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return(0,_n.ZT)(t,e),t}(Error),Or=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return nr.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(Pr).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,n,r){var i=Pr(n),o=Pr(r||new e(Cr));return Ar(i)&&Ar(o)?new e((function(e){return t(e)?i.request(e)||nr.of():o.request(e)||nr.of()})):new e((function(e,n){return t(e)?i.request(e,n)||nr.of():o.request(e,n)||nr.of()}))},e.execute=function(e,t){return e.request(function(e,t){var n=(0,_n.pi)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n="function"==typeof e?(0,_n.pi)((0,_n.pi)({},n),e(n)):(0,_n.pi)((0,_n.pi)({},n),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return(0,_n.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?Er(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 wn("illegal argument: "+i):new wn(26)}return e}(t))))||nr.of()},e.concat=function(t,n){var r=Pr(t);if(Ar(r))return __DEV__&&In.warn(new Dr("You are calling concat on a terminating link, which will have no effect",r)),r;var i=Pr(n);return Ar(i)?new e((function(e){return r.request(e,(function(e){return i.request(e)||nr.of()}))||nr.of()})):new e((function(e,t){return r.request(e,(function(e){return i.request(e,t)||nr.of()}))||nr.of()}))},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(Cr)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new wn("request is not implemented"):new wn(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}(),Rr=n(5821),Nr=n(7826),xr=n(2380),kr=n(7359);const Fr=Object.freeze({});function Ur(e,t,n=xr.h8){const r=new Map;for(const e of Object.values(kr.h))r.set(e,Mr(t,e));let i,o,a,s,u=Array.isArray(e),c=[e],l=-1,f=[];const p=[],d=[];let h=e;do{l++;const e=l===c.length,g=e&&0!==f.length;if(e){if(a=0===d.length?void 0:p[p.length-1],o=s,s=d.pop(),g)if(u){o=o.slice();let e=0;for(const[t,n]of f){const r=t-e;null===n?(o.splice(r,1),e++):o[r]=n}}else{o=Object.defineProperties({},Object.getOwnPropertyDescriptors(o));for(const[e,t]of f)o[e]=t}l=i.index,c=i.keys,f=i.edits,u=i.inArray,i=i.prev}else{if(a=s?u?l:c[l]:void 0,o=s?s[a]:h,null==o)continue;s&&p.push(a)}let _;if(!Array.isArray(o)){var v,m;(0,xr.UG)(o)||(0,Nr.a)(!1,`Invalid AST Node: ${(0,Rr.X)(o)}.`);const n=e?null===(v=r.get(o.kind))||void 0===v?void 0:v.leave:null===(m=r.get(o.kind))||void 0===m?void 0:m.enter;if(_=null==n?void 0:n.call(t,o,a,s,p,d),_===Fr)break;if(!1===_){if(!e){p.pop();continue}}else if(void 0!==_&&(f.push([a,_]),!e)){if(!(0,xr.UG)(_)){p.pop();continue}o=_}}var y;void 0===_&&g&&f.push([a,o]),e?p.pop():(i={inArray:u,index:l,keys:c,edits:f,prev:i},u=Array.isArray(o),c=u?o:null!==(y=n[o.kind])&&void 0!==y?y:[],l=-1,f=[],s&&d.push(s),s=o)}while(void 0!==i);return 0!==f.length&&(h=f[f.length-1][1]),h}function Mr(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}var Lr=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=__DEV__?new wn("Network request failed. "+t+" is not serializable: "+e.message):new wn(23);throw r.parseError=e,r}return n},jr=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")},Br=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},qr=Object.prototype.hasOwnProperty;function Vr(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&&Br(t,n,"Response not successful: Received status code "+t.status),Array.isArray(n)||qr.call(n,"data")||qr.call(n,"errors")||Br(t,n,"Server response was missing for query '"+(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName)+"'."),n}))}}var Gr=function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new wn("\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 wn(22)},$r=n(7392);const zr=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Qr(e){return Wr[e.charCodeAt(0)]}const Wr=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];function Kr(e){return Ur(e,Yr)}const Yr={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Hr(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Xr("(",Hr(e.variableDefinitions,", "),")"),n=Hr([e.operation,Hr([e.name,t]),Hr(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Xr(" = ",n)+Xr(" ",Hr(r," "))},SelectionSet:{leave:({selections:e})=>Jr(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=Xr("",e,": ")+t;let a=o+Xr("(",Hr(n,", "),")");return a.length>80&&(a=o+Xr("(\n",Zr(Hr(n,"\n")),"\n)")),Hr([a,Hr(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Xr(" ",Hr(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Hr(["...",Xr("on ",e),Hr(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Xr("(",Hr(n,", "),")")} on ${t} ${Xr("",Hr(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,$r.LZ)(e):`"${e.replace(zr,Qr)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Hr(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Hr(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Xr("(",Hr(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Xr("",e,"\n")+Hr(["schema",Hr(t," "),Jr(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Xr("",e,"\n")+Hr(["scalar",t,Hr(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Xr("",e,"\n")+Hr(["type",t,Xr("implements ",Hr(n," & ")),Hr(r," "),Jr(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Xr("",e,"\n")+t+(ei(n)?Xr("(\n",Zr(Hr(n,"\n")),"\n)"):Xr("(",Hr(n,", "),")"))+": "+r+Xr(" ",Hr(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Xr("",e,"\n")+Hr([t+": "+n,Xr("= ",r),Hr(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Xr("",e,"\n")+Hr(["interface",t,Xr("implements ",Hr(n," & ")),Hr(r," "),Jr(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Xr("",e,"\n")+Hr(["union",t,Hr(n," "),Xr("= ",Hr(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Xr("",e,"\n")+Hr(["enum",t,Hr(n," "),Jr(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Xr("",e,"\n")+Hr([t,Hr(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Xr("",e,"\n")+Hr(["input",t,Hr(n," "),Jr(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Xr("",e,"\n")+"directive @"+t+(ei(n)?Xr("(\n",Zr(Hr(n,"\n")),"\n)"):Xr("(",Hr(n,", "),")"))+(r?" repeatable":"")+" on "+Hr(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Hr(["extend schema",Hr(e," "),Jr(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Hr(["extend scalar",e,Hr(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Hr(["extend type",e,Xr("implements ",Hr(t," & ")),Hr(n," "),Jr(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Hr(["extend interface",e,Xr("implements ",Hr(t," & ")),Hr(n," "),Jr(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Hr(["extend union",e,Hr(t," "),Xr("= ",Hr(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Hr(["extend enum",e,Hr(t," "),Jr(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Hr(["extend input",e,Hr(t," "),Jr(n)]," ")}};function Hr(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function Jr(e){return Xr("{\n",Zr(Hr(e,"\n")),"\n}")}function Xr(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function Zr(e){return Xr(" ",e.replace(/\n/g,"\n "))}function ei(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}var ti={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},ni=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=(0,_n.pi)((0,_n.pi)({},t.options),{headers:t.headers,credentials:t.credentials}),o=t.http||{};n.forEach((function(e){i=(0,_n.pi)((0,_n.pi)((0,_n.pi)({},i),e.options),{headers:(0,_n.pi)((0,_n.pi)({},i.headers),ri(e.headers))}),e.credentials&&(i.credentials=e.credentials),o=(0,_n.pi)((0,_n.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=Kr(c)),{options:i,body:l}};function ri(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 ii=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}};function oi(e){return new nr((function(t){t.error(e)}))}var ai=An((function(){return fetch})),si=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,_n._T)(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&Gr(r||ai);var c={http:{includeExtensions:i},options:u.fetchOptions,credentials:u.credentials,headers:u.headers};return new Or((function(e){var t=jr(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,_n.pi)((0,_n.pi)({},a),i.headers),h={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:d},v=ni(e,ti,c,h),m=v.options,y=v.body;if(y.variables&&!s){var g=new Set(Object.keys(y.variables));Ur(e.query,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&g.delete(e.name.value)}}),g.size&&(y.variables=(0,_n.pi)({},y.variables),g.forEach((function(e){delete y.variables[e]})))}if(!m.signal){var _=ii(),b=_.controller,E=_.signal;(p=b)&&(m.signal=E)}if(o&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(m.method="GET"),"GET"===m.method){var S=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=Lr(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var o=void 0;try{o=Lr(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,y),w=S.newURI,I=S.parseError;if(I)return oi(I);t=w}else try{m.body=Lr(y,"Payload")}catch(I){return oi(I)}return new nr((function(n){return(r||An((function(){return fetch}))||ai)(t,m).then((function(t){return e.setContext({response:t}),t})).then(Vr(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,_n.ZT)(t,e),t}(Or),ui=Or.execute;function ci(){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 li=Object.prototype,fi=li.toString,pi=li.hasOwnProperty,di=Function.prototype.toString,hi=new Map;function vi(e,t){try{return mi(e,t)}finally{hi.clear()}}function mi(e,t){if(e===t)return!0;var n,r,i,o=fi.call(e);if(o!==fi.call(t))return!1;switch(o){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(bi(e,t))return!0;var a=yi(e),s=yi(t),u=a.length;if(u!==s.length)return!1;for(var c=0;c<u;++c)if(!pi.call(t,a[c]))return!1;for(c=0;c<u;++c){var l=a[c];if(!mi(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(bi(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],m=h[1];if(!t.has(v))return!1;if(p&&!mi(m,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 y=e.byteLength;if(y===t.byteLength)for(;y--&&e[y]===t[y];);return-1===y;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var g=di.call(e);return g===di.call(t)&&(r=_i,!((i=(n=g).length-r.length)>=0&&n.indexOf(r,i)===i))}return!1}function yi(e){return Object.keys(e).filter(gi,e)}function gi(e){return void 0!==this[e]}var _i="{ [native code] }";function bi(e,t){var n=hi.get(e);if(n){if(n.has(t))return!0}else hi.set(e,n=new Set);return n.add(t),!1}var Ei,Si,wi=function(){return Object.create(null)},Ii=Array.prototype,Ti=Ii.forEach,Ci=Ii.slice,Pi=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=wi),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 Ti.call(e,(function(e){return t=t.getChildTrie(e)})),t.data||(t.data=this.makeData(Ci.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}(),Ai="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),Di="function"==typeof WeakSet,Oi="function"==typeof Symbol&&"function"==typeof Symbol.for,Ri=function(){function e(){this.known=new(Di?WeakSet:Set),this.pool=new Pi(Ai),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return rr(e)&&this.known.has(e)},e.prototype.pass=function(e){if(rr(e)){var t=function(e){return rr(e)?Array.isArray(e)?e.slice(0):(0,_n.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(rr(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}(),Ni=Object.assign((function(e){if(rr(e)){void 0===Ei&&xi();var t=Ei.admit(e),n=Si.get(t);return void 0===n&&Si.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)}),{reset:xi});function xi(){Ei=new Ri,Si=new(Ai?WeakMap:Map)}function ki(e,t,n){return new nr((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 Fi(e){return e.errors&&e.errors.length>0||!1}function Ui(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 Mi={kind:"Field",name:{kind:"Name",value:"__typename"}};function Li(e,t){return e.selectionSet.selections.every((function(e){return"FragmentSpread"===e.kind&&Li(t[e.name.value],t)}))}function ji(e){return Li(br(e)||function(e){__DEV__?In("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'):In("Document"===e.kind,50),__DEV__?In(e.definitions.length<=1,"Fragment must have exactly one definition."):In(e.definitions.length<=1,51);var t=e.definitions[0];return __DEV__?In("FragmentDefinition"===t.kind,"Must be a fragment definition."):In("FragmentDefinition"===t.kind,52),t}(e),or(Sr(e)))?null:e}function Bi(e){return function(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function qi(e,t){var n=Object.create(null),r=[],i=Object.create(null),o=[],a=ji(Ur(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(Bi(e)))return t.arguments&&t.arguments.forEach((function(e){"Variable"===e.value.kind&&r.push({name:e.value.name.value})})),t.selectionSet&&$i(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(Bi(e)(t))return null}}}));return a&&Ui(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 ji(Ur(t,{OperationDefinition:{enter:function(t){return(0,_n.pi)((0,_n.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&&Ui(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 ji(Ur(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(o,a)),a}var Vi=Object.assign((function(e){return Ur(_r(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r&&!r.some((function(e){return yr(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=n;if(!(yr(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return(0,_n.pi)((0,_n.pi)({},e),{selections:(0,_n.ev)((0,_n.ev)([],r,!0),[Mi],!1)})}}}}})}),{added:function(e){return e===Mi}}),Gi={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some((function(e){return"key"===e.name.value}))||__DEV__&&In.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 $i(e){var t=[];return e.selections.forEach((function(e){(yr(e)||gr(e))&&e.selectionSet?$i(e.selectionSet).forEach((function(e){return t.push(e)})):"FragmentSpread"===e.kind&&t.push(e)})),t}function zi(e){if("query"===Ir(e).operation)return e;var t=Ur(e,{OperationDefinition:{enter:function(e){return(0,_n.pi)((0,_n.pi)({},e),{operation:"query"})}}});return t}function Qi(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__?In(n&&1===n.length,"Incorrect number of arguments for the @"+r+" directive."):In(n&&1===n.length,40);var i=n[0];__DEV__?In(i.name&&"if"===i.name.value,"Invalid argument for the @"+r+" directive."):In(i.name&&"if"===i.name.value,41);var o=i.value;__DEV__?In(o&&("Variable"===o.kind||"BooleanValue"===o.kind),"Argument for the @"+r+" directive must be a variable or a boolean value."):In(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__?In(void 0!==i,"Invalid variable referenced in @"+n.name.value+" directive."):In(void 0!==i,39)):i=r.value.value,"skip"===n.name.value?!i:i}))}function Wi(e,t){return function(e){var t=[];return Ur(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function Ki(e){return e&&Wi(["client"],e)&&Wi(["export"],e)}var Yi=new Map;function Hi(e){var t=Yi.get(e)||1;return Yi.set(e,t+1),e+":"+t+":"+Math.random().toString(36).slice(2)}function Ji(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function Xi(e){function t(t){Object.defineProperty(e,t,{value:nr})}return Oi&&Symbol.species&&t(Symbol.species),t("@@species"),e}function Zi(e){return e&&"function"==typeof e.then}var eo=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],Ji(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),Ji(n.observers,"error",e))},complete:function(){if(null!==n.sub){var e=n.sources.shift();e?Zi(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(),Ji(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 nr(t)]),Zi(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return(0,_n.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}(nr);function to(e){return Array.isArray(e)&&e.length>0}Xi(eo);var no,ro=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="",(to((r=l).graphQLErrors)||to(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,_n.ZT)(t,e),t}(Error);function io(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"}(no||(no={}));var oo=Object.prototype.toString;function ao(e){return so(e)}function so(e,t){switch(oo.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]=so(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]=so(e[n],t)})),r;default:return e}}var uo=Object.assign,co=Object.hasOwnProperty,lo=!1,fo=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=po)}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=br(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,_n.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||no.ready,r=(0,_n.pi)((0,_n.pi)({},t),{loading:io(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),vi(r.data,{})&&(r.data=void 0),a.complete?(r.networkStatus!==no.loading||"cache-first"!==o&&"cache-only"!==o||(r.networkStatus=no.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||ho(a.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!vi(this.last.result,e)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||vi(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&&co.call(e,"variables")){var i=wr(this.options.query),o=i.variableDefinitions;o&&o.some((function(e){return"variables"===e.variable.name.value}))||__DEV__&&In.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&&!vi(this.options.variables,e)&&(n.variables=this.options.variables=(0,_n.pi)((0,_n.pi)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,no.refetch)},t.prototype.fetchMore=function(e){var t=this,n=(0,_n.pi)((0,_n.pi)({},e.query?e:(0,_n.pi)((0,_n.pi)((0,_n.pi)({},this.options),e),{variables:(0,_n.pi)((0,_n.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=no.fetchMore,this.observe()),this.queryManager.fetchQuery(r,n,no.fetchMore).then((function(r){var i=r.data,o=e.updateQuery;return o?(__DEV__&&!lo&&(__DEV__&&In.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."),lo=!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__&&In.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 vi(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.initialFetchPolicy,variables:e},no.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__?In(n,"Attempted to start a polling query without a polling interval."):In(n,12),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(io(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"network-only"},no.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,_n.pi)((0,_n.pi)({},this.last),{result:this.queryManager.assumeImmutableResults?e:ao(e),variables:t}),to(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var r=t===no.refetch||t===no.fetchMore||t===no.poll,i=this.options.variables,o=r?ci(this.options,e):uo(this.options,ci(e));r||(this.updatePolling(),e&&e.variables&&!e.fetchPolicy&&!vi(e.variables,i)&&(o.fetchPolicy=this.initialFetchPolicy,void 0===t&&(t=no.setVariables)));var a=o.variables&&(0,_n.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),Ji(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=(0,_n.pi)((0,_n.pi)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:no.error,loading:!1});this.updateLastResult(n,t),Ji(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}(nr);function po(e){__DEV__&&In.error("Unhandled error",e.message,e.stack)}function ho(e){__DEV__&&to(e)&&__DEV__&&In.debug("Missing cache result fields: "+e.map((function(e){return e.path.join(".")})).join(", "),e)}Xi(fo);var vo=Object.prototype.hasOwnProperty;function mo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return yo(e)}function yo(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new _o,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var go=function(e,t,n){return this.merge(e[n],t[n])},_o=function(){function e(e){void 0===e&&(e=go),this.reconciler=e,this.isObject=rr,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 rr(t)&&rr(e)?(Object.keys(t).forEach((function(i){if(vo.call(e,i)){var o=e[i];if(t[i]!==o){var a=n.reconciler.apply(n,(0,_n.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 rr(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,_n.pi)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}(),bo=null,Eo={},So=1,wo="@wry/context:Slot",Io=Array,To=Io[wo]||function(){var e=function(){function e(){this.id=["slot",So++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=bo;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===Eo)break;return e!==bo&&(bo.slots[this.id]=t),!0}return bo&&(bo.slots[this.id]=Eo),!1},e.prototype.getValue=function(){if(this.hasValue())return bo.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=bo;bo={parent:a,slots:o};try{return t.apply(r,n)}finally{bo=a}},e.bind=function(e){var t=bo;return function(){var n=bo;try{return bo=t,e.apply(this,arguments)}finally{bo=n}}},e.noContext=function(e,t,n){if(!bo)return e.apply(n,t);var r=bo;try{return bo=null,e.apply(n,t)}finally{bo=r}},e}();try{Object.defineProperty(Io,wo,{value:Io[wo]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();function Co(){}To.bind,To.noContext;var Po,Ao=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=Co),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}(),Do=new To,Oo=Object.prototype.hasOwnProperty,Ro=void 0===(Po=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:Po;function No(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var xo=[];function ko(e,t){if(!e)throw new Error(t||"assertion failure")}function Fo(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var Uo=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&&!jo(this))return Mo(this),this.value[0]},e.prototype.recompute=function(e){return ko(!this.recomputing,"already recomputing"),Mo(this),jo(this)?function(e,t){return Qo(e),Do.withValue(e,Lo,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{No(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,jo(e)||qo(e)}(e),Fo(e.value)}(this,e):Fo(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,Bo(this),No(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),Qo(this),Vo(this,(function(t,n){t.setDirty(),Wo(t,e)}))},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=xo.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(Ro(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),xo.push(this.deps),this.deps=null)},e.count=0,e}();function Mo(e){var t=Do.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),jo(e)?Go(t,e):$o(t,e),t}function Lo(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 jo(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function Bo(e){Vo(e,Go)}function qo(e){Vo(e,$o)}function Vo(e,t){var n=e.parents.size;if(n)for(var r=Ro(e.parents),i=0;i<n;++i)t(r[i],e)}function Go(e,t){ko(e.childValues.has(t)),ko(jo(t));var n=!jo(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=xo.pop()||new Set;e.dirtyChildren.add(t),n&&Bo(e)}function $o(e,t){ko(e.childValues.has(t)),ko(!jo(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()),zo(e,t),jo(e)||qo(e)}function zo(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(xo.length<100&&xo.push(n),e.dirtyChildren=null))}function Qo(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){Wo(e,n)})),e.forgetDeps(),ko(null===e.dirtyChildren)}function Wo(e,t){t.parents.delete(e),e.childValues.delete(t),zo(e,t)}var Ko={setDirty:!0,dispose:!0,forget:!0};function Yo(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=Do.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(No(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&Oo.call(Ko,n)?n:"setDirty";Ro(r).forEach((function(e){return e[i]()})),t.delete(e),No(r)}},r}function Ho(){var e=new Pi("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}Ho();var Jo=new Set;function Xo(e,t){void 0===t&&(t=Object.create(null));var n=new Ao(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,i=t.makeCacheKey||Ho(),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 Uo(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),Jo.add(n),Do.hasValue()||(Jo.forEach((function(e){return e.clean()})),Jo.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 Zo=new To,ea=new WeakMap;function ta(e){var t=ea.get(e);return t||ea.set(e,t={vars:new Set,dep:Yo()}),t}function na(e){ta(e).vars.forEach((function(t){return t.forgetCache(e)}))}function ra(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach((function(e){ta(e).dep.dirty(r),ia(e)}));var a=Array.from(n);n.clear(),a.forEach((function(t){return t(e)}))}}else{var s=Zo.getValue();s&&(i(s),ta(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),ta(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function ia(e){e.broadcastWatches&&e.broadcastWatches()}var oa=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=mo(t.resolvers,e)})):this.resolvers=mo(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,_n.mG)(this,void 0,void 0,(function(){return(0,_n.Jh)(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then((function(e){return(0,_n.pi)((0,_n.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 Wi(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return function(e){_r(e);var t=qi([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=Ur(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return yr(e)&&"__typename"===e.name.value})))return null}}})),t}(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,_n.pi)((0,_n.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,_n.mG)(this,void 0,void 0,(function(){return(0,_n.Jh)(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return(0,_n.pi)((0,_n.pi)({},t),e.exportedVariables)}))]:[2,(0,_n.pi)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return Ur(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 Fr}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:zi(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,_n.mG)(this,void 0,void 0,(function(){var a,s,u,c,l,f,p,d,h;return(0,_n.Jh)(this,(function(v){return a=Ir(e),s=Sr(e),u=or(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,_n.pi)((0,_n.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,_n.mG)(this,void 0,void 0,(function(){var r,i,o,a,s,u=this;return(0,_n.Jh)(this,(function(c){return r=n.fragmentMap,i=n.context,o=n.variables,a=[t],s=function(e){return(0,_n.mG)(u,void 0,void 0,(function(){var s,u;return(0,_n.Jh)(this,(function(c){return Qi(e,o)?yr(e)?[2,this.resolveField(e,t,n).then((function(t){var n;void 0!==t&&a.push(((n={})[vr(e)]=t,n))}))]:(gr(e)?s=e:(s=r[e.name.value],__DEV__?In(s,"No fragment named "+e.name.value):In(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 yo(a)}))]}))}))},e.prototype.resolveField=function(e,t,n){return(0,_n.mG)(this,void 0,void 0,(function(){var r,i,o,a,s,u,c,l,f,p=this;return(0,_n.Jh)(this,(function(d){return r=n.variables,i=e.name.value,o=vr(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(Zo.withValue(this.cache,f,[t,hr(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}(),aa=new(Ai?WeakMap:Map);function sa(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return aa.set(e,(aa.get(e)+1)%1e15),n.apply(this,arguments)})}function ua(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var ca=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;aa.has(n)||(aa.set(n,0),sa(n,"evict"),sa(n,"modify"),sa(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||no.loading;return this.variables&&this.networkStatus!==no.loading&&!vi(this.variables,e.variables)&&(t=no.setVariables),vi(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(){ua(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&&vi(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||vi(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;ua(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(io(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,_n.pi)((0,_n.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&vi(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===aa.get(this.cache)&&vi(t,n.variables)&&vi(e.data,n.result.data))},e.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=to(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(la(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:aa.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=no.ready},e.prototype.markError=function(e){return this.networkStatus=no.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function la(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!Fi(e);return!r&&n&&e.data&&(r=!0),r}var fa=Object.prototype.hasOwnProperty,pa=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(Ai?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 oa({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 wn("QueryManager stopped while query was in flight"):new wn(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,m=e.context;return(0,_n.mG)(this,void 0,void 0,(function(){var e,o,s;return(0,_n.Jh)(this,(function(f){switch(f.label){case 0:return __DEV__?In(t,"mutation option is required. You must specify your GraphQL document in the mutation option."):In(t,14),__DEV__?In("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."):In("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,m)]:[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:m,updateQueries:i,update:c,keepRootFields:v}),this.broadcastQueries(),s=this,[2,new Promise((function(f,d){return ki(s.getObservableFromLink(t,(0,_n.pi)((0,_n.pi)({},m),{optimisticResponse:r}),n,!1),(function(f){if(Fi(f)&&"none"===p)throw new ro({graphQLErrors:f.errors});o&&(o.loading=!1,o.error=null);var d=(0,_n.pi)({},f);return"function"==typeof a&&(a=a(d)),"ignore"===p&&Fi(d)&&delete d.errors,s.markMutationResult({mutationId:e,result:d,document:t,variables:n,fetchPolicy:h,errorPolicy:p,context:m,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 ro?t:new ro({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&&la(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&&fa.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&&Er(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,_n.pi)((0,_n.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,_n.pi)((0,_n.pi)({},t),{result:{data:r}}),e)}catch(e){__DEV__&&In.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),qi([Gi],_r(t))),o=this.localState.clientQuery(r),a=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:Ki(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:Tr(br(r)),asQuery:(0,_n.pi)((0,_n.pi)({},r),{definitions:r.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,_n.pi)((0,_n.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,_n.pi)((0,_n.pi)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=(0,_n.pi)((0,_n.pi)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new ca(this),n=new fo({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__?In(e.query,"query option is required. You must specify your GraphQL document in the query option."):In(e.query,16),__DEV__?In("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):In("Document"===e.query.kind,17),__DEV__?In(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):In(!e.returnPartialData,18),__DEV__?In(!e.pollInterval,"pollInterval option only supported on watchQuery."):In(!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 wn("Store reset while query was in flight (not completed in link chain)"):new wn(20)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=no.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):rr(n=e)&&"Document"===n.kind&&Array.isArray(n.definitions)?r.set(t.transform(e).document,!1):rr(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=Hi("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new fo({queryManager:t,queryInfo:i,options:(0,_n.pi)((0,_n.pi)({},e),{fetchPolicy:"network-only"})});In(o.queryId===r),i.setObservableQuery(o),n.set(r,o)})),__DEV__&&r.size&&r.forEach((function(e,t){e||__DEV__&&In.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&&(la(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),Fi(o))throw new ro({graphQLErrors:o.errors});return o}))};if(this.transform(n).hasClientExports){var c=this.localState.addExportedVariables(n,o,s).then(u);return new nr((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:Er(s)||void 0,context:this.prepareContext((0,_n.pi)((0,_n.pi)({},t),{forceFetch:!r}))};if(t=l.context,r){var f=u.get(s)||new Map;u.set(s,f);var p=Ni(n);if(!(o=f.get(p))){var d=new eo([ui(c,l)]);f.set(p,o=d),d.cleanup((function(){f.delete(p)&&f.size<1&&u.delete(s)}))}}else o=new eo([ui(c,l)])}else o=new eo([nr.of({data:{}})]),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(o=ki(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 ki(this.getObservableFromLink(e.document,n.context,n.variables),(function(i){var o=to(i.errors);if(r>=e.lastRequestId){if(o&&"none"===n.errorPolicy)throw e.markError(new ro({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var a={data:i.data,loading:!1,networkStatus:e.networkStatus||no.ready};return o&&"ignore"!==n.errorPolicy&&(a.errors=i.errors),a}),(function(t){var n=t.hasOwnProperty("graphQLErrors")?t:new ro({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=no.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,m=void 0===v?{}:v,y=Object.assign({},t,{query:i,variables:o,fetchPolicy:u,errorPolicy:l,returnPartialData:p,notifyOnNetworkStatusChange:h,context:m}),g=function(e){return y.variables=e,r.fetchQueryByPolicy(a,y,n)};this.fetchCancelFns.set(e,(function(e){setTimeout((function(){return _.cancel(e)}))}));var _=new eo(this.transform(y.query).hasClientExports?this.localState.addExportedVariables(y.query,y.variables,y.context).then(g):g(y.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?Hi("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 ca&&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||no.loading);var a=t.result;!__DEV__||c||vi(a,{})||ho(t.missing);var s=function(e){return nr.of((0,_n.pi)({data:e,loading:io(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===no.refetch&&"merge"!==s?1:2,m=function(){return r.getResultsFromLink(e,v,{variables:o,context:l,fetchPolicy:a,errorPolicy:u})},y=f&&"number"==typeof p&&p!==n&&io(n);switch(a){default:case"cache-first":return(g=d()).complete?[h(g,e.markReady())]:c||y?[h(g),m()]:[m()];case"cache-and-network":var g;return(g=d()).complete||c||y?[h(g),m()]:[m()];case"cache-only":return[h(d(),e.markReady())];case"network-only":return y?[h(d()),m()]:[m()];case"no-cache":return y?[h(e.getDiff()),m()]:[m()];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new ca(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,_n.pi)((0,_n.pi)({},t),{clientAwareness:this.clientAwareness})},e}(),da=!1;function ha(e,t){return ci(e,t,t.variables&&{variables:(0,_n.pi)((0,_n.pi)({},e.variables),t.variables)})}var va=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,m=void 0!==v&&v,y=e.resolvers,g=e.typeDefs,_=e.fragmentMatcher,b=e.name,E=e.version,S=e.link;if(S||(S=n?new si({uri:n,credentials:r,headers:i}):Or.empty()),!o)throw __DEV__?new wn("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 wn(9);if(this.link=S,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),!da&&__DEV__&&(da=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var w=window.navigator,I=w&&w.userAgent,T=void 0;"string"==typeof I&&(I.indexOf("Chrome/")>-1?T="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":I.indexOf("Firefox/")>-1&&(T="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),T&&__DEV__&&In.log("Download the Apollo DevTools for a better development experience: "+T)}this.version="3.4.17",this.localState=new oa({cache:o,client:this,resolvers:y,fragmentMatcher:_}),this.queryManager=new pa({cache:this.cache,link:this.link,queryDeduplication:d,ssrMode:s,clientAwareness:{name:b,version:E},localState:this.localState,assumeImmutableResults:m,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=ha(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=(0,_n.pi)((0,_n.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=ha(this.defaultOptions.query,e)),__DEV__?In("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."):In("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,_n.pi)((0,_n.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=ha(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 ui(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__&&In.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}(),ma=function(){function e(){this.getFragmentDoc=Xo(ir)}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,_n.pi)((0,_n.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,_n.pi)((0,_n.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,_n._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,_n._T)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e}(),ya=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,_n.ZT)(t,e),t}(Error);function ga(e){return __DEV__&&(t=e,(n=new Set([t])).forEach((function(e){rr(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){rr(e[t])&&n.add(e[t])}))}))),e;var t,n}var _a=Object.prototype.hasOwnProperty;function ba(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 Ea={dataIdFromObject:ba,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Sa(e){var t=e.canonizeResults;return void 0===t?Ea.canonizeResults:t}var wa=/^[_a-z][_0-9a-z]*/i;function Ia(e){var t=e.match(wa);return t?t[0]:e}function Ta(e,t,n){return!!rr(t)&&(Array.isArray(t)?t.every((function(t){return Ta(e,t,n)})):e.selections.every((function(e){if(yr(e)&&Qi(e,n)){var r=vr(e);return _a.call(t,r)&&(!e.selectionSet||Ta(e.selectionSet,t[r],n))}return!0})))}function Ca(e){return rr(e)&&!ur(e)&&!Array.isArray(e)}var Pa=Object.create(null),Aa=function(){return Pa},Da=Object.create(null),Oa=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 ga(ur(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return ur(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return sr(e);if(ur(e))return e;var r=n.policies.identify(e)[0];if(r){var i=sr(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return(0,_n.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),_a.call(this.data,e)){var n=this.data[e];if(n&&_a.call(n,t))return n[t]}return"__typename"===t&&_a.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof ka?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),_a.call(this.data,e)?this.data[e]:this instanceof ka?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;ur(e)&&(e=e.__ref),ur(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__?In("string"==typeof n,"store.merge expects a string ID"):In("string"==typeof n,1);var a=new _o(Ua).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=Ia(e);t===e||r.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||r instanceof ka||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:Pa,INVALIDATE:Da,isReference:ur,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||sr(e)}:t,{store:n})}};if(Object.keys(r).forEach((function(u){var c=Ia(u),l=r[u];if(void 0!==l){var f="function"==typeof t?t:t[u]||t[c];if(f){var p=f===Aa?Pa:f(ga(l),(0,_n.pi)((0,_n.pi)({},s),{fieldName:c,storeFieldName:u,storage:n.getStorage(e,u)}));p===Da?n.group.dirty(e,u):(p===Pa&&(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 ka?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]=Aa,r):Aa)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(_a.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof ka&&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){_a.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&&_a.call(e,n)||t.delete(n)})),e){var n=e.__META,r=(0,_n._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 ka?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){_a.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 ka;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},e.prototype.findChildRefIds=function(e){if(!_a.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){ur(e)&&(t[e.__ref]=!0),rr(e)&&Object.keys(e).forEach((function(t){var n=e[t];rr(n)&&r.add(n)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),Ra=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?Yo():null,this.keyMaker=new Pi(Ai)},e.prototype.depend=function(e,t){if(this.d){this.d(Na(e,t));var n=Ia(t);n!==t&&this.d(Na(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(Na(e,t),"__exists"===t?"forget":"setDirty")},e}();function Na(e,t){return t+"#"+e}function xa(e,t){Ma(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 Ra(i))||this;return a.stump=new Fa(a),a.storageTrie=new Pi(Ai),o&&a.replace(o),a}return(0,_n.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}(Oa||(Oa={}));var ka=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,_n.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){vi(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,_n.pi)((0,_n.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return _a.call(this.data,t)?(0,_n.pi)((0,_n.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}(Oa),Fa=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new Ra(t.group.caching,t.group))||this}return(0,_n.ZT)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(ka);function Ua(e,t,n){var r=e[n],i=t[n];return vi(r,i)?r:i}function Ma(e){return!!(e instanceof Oa&&e.group.caching)}function La(e,t){return new ya(e.message,t.path.slice(),t.query,t.variables)}function ja(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Ba=function(){function e(e){var t=this;this.knownResults=new(Ai?WeakMap:Map),this.config=ci(e,{addTypename:!1!==e.addTypename,canonizeResults:Sa(e)}),this.canon=e.canon||new Ri,this.executeSelectionSet=Xo((function(e){var n,r=e.context.canonizeResults,i=ja(e);i[3]=!r;var o=(n=t.executeSelectionSet).peek.apply(n,i);return o?r?(0,_n.pi)((0,_n.pi)({},o),{result:t.canon.admit(o.result)}):o:(xa(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:ja,makeCacheKey:function(e,t,n,r){if(Ma(n.store))return n.store.makeCacheKey(e,ur(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=Xo((function(e){return xa(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(Ma(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new Ri},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,_n.pi)((0,_n.pi)({},Tr(wr(n))),o);var f=sr(i),p=this.executeSelectionSet({selectionSet:Ir(n).selectionSet,objectOrReference:f,enclosingRef:f,context:{store:t,query:n,policies:l,variables:o,varString:Ni(o),canonizeResults:c,fragmentMap:or(Sr(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(Ma(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(ur(r)&&!o.policies.rootTypenamesById[r.__ref]&&!o.store.has(r.__ref))return{result:this.canon.empty,missing:[La(__DEV__?new wn("Dangling reference to missing "+r.__ref+" object"):new wn(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(Qi(e,a))if(yr(e)){var u=s.readField({fieldName:e.name.value,field:e,variables:o.variables,from:r},o),l=vr(e);o.path.push(l),void 0===u?Vi.added(e)||p().push(La(__DEV__?new wn("Can't find field '"+e.name.value+"' on "+(ur(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2))):new wn(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:ur(u)?u:i,context:o}))):o.canonizeResults&&(u=t.canon.pass(u)),void 0!==u&&c.push(((n={})[l]=u,n)),In(o.path.pop()===l)}else{var v=ar(e,o.fragmentMap);v&&s.fragmentMatches(v,f)&&v.selectionSet.selections.forEach(h.add,h)}}));var v=yo(c);return l.result=o.canonizeResults?this.canon.admit(v):ga(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),In(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:ur(e)?e:o,context:a}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach((function(n){rr(n)&&(__DEV__?In(!ur(n),"Missing selection set for object of type "+function(e,t){return ur(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n)+" returned for query field "+t.name.value):In(!ur(n),7),Object.values(n).forEach(r.add,r))}))}}(a.store,r,e),In(a.path.pop()===t),e))})),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),qa=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=br(r),c=new _o;a=(0,_n.pi)((0,_n.pi)({},Tr(u)),a);var l={store:e,written:Object.create(null),merge:function(e,t){return c.merge(e,t)},variables:a,varString:Ni(a),fragmentMap:or(Sr(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(!ur(f))throw __DEV__?new wn("Could not identify object "+JSON.stringify(i)):new wn(8);return l.incomingById.forEach((function(t,r){var i=t.fields,o=t.mergeTree,a=t.selections,s=sr(r);if(o&&o.map.size){var u=n.applyMerges(o,s,i,l);if(ur(u))return;i=u}if(__DEV__&&!l.overwrite){var c=new Set;a.forEach((function(e){yr(e)&&e.selectionSet&&c.add(e.name.value)})),Object.keys(i).forEach((function(e){(function(e){return c.has(Ia(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&&!ur(o)&&!vi(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=Ia(n),c=s+"."+u;if(!Wa.has(c)){Wa.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__&&In.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=sr(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]||mr(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(Qi(e,o.variables))if(yr(e)){var i=vr(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=Ga(a,l),p=t.processFieldValue(u,e,o,f),m=void 0;if(e.selectionSet&&!(m=o.store.getFieldValue(p,"__typename"))&&ur(p)){var y=o.incomingById.get(p.__ref);m=y&&y.fields.__typename}var g=s.getMergeFunction(h,e.name.value,m);g?f.info={field:e,typename:h,merge:g}:Qa(a,l),d=o.merge(d,((n={})[l]=p,n))}else o.clientOnly||Vi.added(e)||__DEV__&&In.error(("Missing field '"+vr(e)+"' while writing result "+JSON.stringify(r,null,2)).substring(0,1e3));o.clientOnly=c}else{var _=ar(e,o.fragmentMap);_&&s.fragmentMatches(_,h,r,o.variables)&&_.selectionSet.selections.forEach(v.add,v)}})),"string"==typeof n){var m=o.incomingById.get(n);return m?(m.fields=o.merge(m.fields,d),m.mergeTree=$a(m.mergeTree,a),m.selections.forEach(v.add,v),m.selections=v):o.incomingById.set(n,{fields:d,mergeTree:za(a)?void 0:a,selections:v}),sr(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,Ga(r,o));return Qa(r,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?ao(e):e},e.prototype.applyMerges=function(e,t,n,r,i){var o,a=this;if(e.map.size&&!ur(n)){var s,u=Array.isArray(n)||!ur(t)&&!Ca(t)?void 0:t,c=n;u&&!i&&(i=[ur(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&&In(i.pop()===t)}})),s&&(n=Array.isArray(c)?c.slice(0):(0,_n.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}(),Va=[];function Ga(e,t){var n=e.map;return n.has(t)||n.set(t,Va.pop()||{map:new Map}),n.get(t)}function $a(e,t){if(e===t||!t||za(t))return e;if(!e||za(e))return t;var n=e.info&&t.info?(0,_n.pi)((0,_n.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,$a(e,t.map.get(n))),o.delete(n)})),o.forEach((function(n){i.map.set(n,$a(t.map.get(n),e.map.get(n)))}))}return i}function za(e){return!e||!(e.info||e.map.size)}function Qa(e,t){var n=e.map,r=n.get(t);r&&za(r)&&(Va.push(r),n.delete(t))}var Wa=new Set;function Ka(e){var t=Hi("stringifyForDisplay");return JSON.stringify(e,(function(e,n){return void 0===n?t:n})).split(JSON.stringify(t)).join("<undefined>")}function Ya(e){return void 0!==e.args?e.args:e.field?hr(e.field,e.variables):null}fr.setStringify(Ni);var Ha=function(){},Ja=function(e,t){return t.fieldName},Xa=function(e,t,n){return(0,n.mergeObjects)(e,t)},Za=function(e,t){return t},es=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,_n.pi)({dataIdFromObject:ba},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?mr(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=is(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,_n._T)(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),a&&t.setRootTypename("Subscription",n),_a.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?Xa:!1===t?Za:e.merge}a(r,t.merge),r.keyFn=!1===i?Ha:Array.isArray(i)?is(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?Ja:Array.isArray(s)?rs(s):"function"==typeof s?s:r.keyFn,"function"==typeof u&&(r.read=u),a(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||Ja)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?In(!r||r===e,"Cannot change root "+e+" __typename more than once"):In(!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(wa);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!_a.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,_n._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__&&In.warn("Inferring subtype "+t+" of supertype "+o),a.add(o)),!0;p.forEach(u),c&&f===s.length-1&&Ta(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=Ya(e);o;){var u=o(s,a);if(!Array.isArray(u)){t=u||r;break}o=rs(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 cr(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 cr(r,n,i,t)}))),fr(e.name.value,r,n)}(e.field,e.variables):fr(r,Ya(e))),!1===t?r:r===Ia(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=Ia(i),a=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,o,!1),u=s&&s.read;if(u){var c=ts(this,n,e,t,t.store.getStorage(ur(n)?n.__ref:n,i));return Zo.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===Xa?ns(r.store)(e,t):s===Za?t:(r.overwrite&&(e=void 0),s(e,t,ts(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null))))},e}();function ts(e,t,n,r,i){var o=e.getStoreFieldName(n),a=Ia(o),s=n.variables||r.variables,u=r.store,c=u.toReference,l=u.canRead;return{args:Ya(n),field:n.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:ur,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(!rr(n))return void(__DEV__&&In.warn("Unexpected readField arguments: "+Ka(Array.from(arguments))));o=(0,_n.pi)({},n),_a.call(n,"from")||(o.from=t)}return __DEV__&&void 0===o.from&&__DEV__&&In.warn("Undefined 'from' passed to readField with arguments "+Ka(Array.from(arguments))),void 0===o.variables&&(o.variables=s),e.readField(o,r)},mergeObjects:ns(r.store)}}function ns(e){return function(t,n){if(Array.isArray(t)||Array.isArray(n))throw __DEV__?new wn("Cannot automatically merge arrays"):new wn(3);if(rr(t)&&rr(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(ur(t)&&Ca(n))return e.merge(t.__ref,n),t;if(Ca(t)&&ur(n))return e.merge(t,n.__ref),n;if(Ca(t)&&Ca(n))return(0,_n.pi)((0,_n.pi)({},t),n)}return n}}function rs(e){return function(t,n){return t?n.fieldName+":"+JSON.stringify(as(t,e,!1)):n.fieldName}}function is(e){var t=new Pi(Ai);return function(n,r){var i;if(r.selectionSet&&r.fragmentMap){var o=t.lookupArray([r.selectionSet,r.fragmentMap]);i=o.aliasMap||(o.aliasMap=os(r.selectionSet,r.fragmentMap))}var a=r.keyObject=as(n,e,!0,i);return r.typename+":"+JSON.stringify(a)}}function os(e,t){var n=Object.create(null),r=new Set([e]);return r.forEach((function(e){e.selections.forEach((function(e){if(yr(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]=os(e.selectionSet,t))}else{var a=ar(e,t);a&&r.add(a.selectionSet)}}))})),n}function as(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]=as(e[i],t,n,u)}}else{var c=r&&r.aliases,l=c&&c[t]||t;_a.call(e,l)?a[o=t]=e[i=l]:(__DEV__?In(!n,"Missing field '"+l+"' while computing key fields"):In(!n,4),i=o=void 0)}})),a}var ss=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=ra,n.txCount=0,n.config=function(e){return ci(Ea,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new es({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,_n.ZT)(t,e),t.prototype.init=function(){var e=this.data=new Oa.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 qa(this,this.storeReader=new Ba({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Sa(this.config),canon:e?void 0:n&&n.canon})),this.maybeBroadcastWatch=Xo((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(Ma(n)){var r=e.optimistic,i=e.rootId,o=e.variables;return n.makeCacheKey(e.query,e.callback,Ni({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,_n.pi)((0,_n.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(e){if(e instanceof ya)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(_a.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,_n.pi)((0,_n.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||ta(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&&na(n),n.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){Ni.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 ur(e)?e.__ref:this.policies.identify(e)[0]},t.prototype.evict=function(e){if(!e.id){if(_a.call(e,"id"))return!1;e=(0,_n.pi)((0,_n.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(),Ni.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),na(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,_n.pi)((0,_n.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,_n.pi)((0,_n.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=Vi(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&&vi(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(ma);const us=JSON.parse('{"g":{"Credentials":["HubspotCredentials","StripeCredentials","ZuoraCredentials"],"ResetPeriodConfiguration":["MonthlyResetPeriodConfig","WeeklyResetPeriodConfig"],"ScheduleVariables":["BillingPeriodChangeVariables","DowngradeChangeVariables","UnitAmountChangeVariables"]}}');var cs=n(4098),ls=n.n(cs),fs=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,_n.pi)({},e),r=!1,i=this.batchKey(e.operation);return n.observable||(n.observable=new nr((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)||nr.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}(),ps=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 fs({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,_n.ZT)(t,e),t.prototype.request=function(e,t){return this.batcher.enqueueRequest({operation:e,forward:t})},t}(Or),ds=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,_n._T)(r,["uri","fetch","includeExtensions","batchInterval","batchDebounce","batchMax","batchKey"]);Gr(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 jr(e,o)+JSON.stringify(n)},n.batcher=new ps({batchDebounce:n.batchDebounce,batchInterval:n.batchInterval,batchMax:n.batchMax,batchKey:f,batchHandler:function(e){var t=jr(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,_n.pi)((0,_n.pi)({},r),n.headers)},f=e.map((function(e){return ni(e,ti,d,l)})),p=f.map((function(e){return e.body})),h=f[0].options;if("GET"===h.method)return oi(new Error("apollo-link-batch-http does not support GET requests"));try{h.body=Lr(p,"Payload")}catch(e){return oi(e)}if(!h.signal){var v=ii(),m=v.controller,y=v.signal;(c=m)&&(h.signal=y)}return new nr((function(n){return a(t,h).then((function(t){return e.forEach((function(e){return e.setContext({response:t})})),t})).then(Vr(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,_n.ZT)(t,e),t.prototype.request=function(e){return this.batcher.request(e)},t}(Or),hs=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,_n.mG)(i,void 0,void 0,(function(){var t,n,r;return(0,_n.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}(),vs=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,_n.ZT)(t,e),t.prototype.request=function(e,t){var n=new hs(e,t,this.delayFor,this.retryIf);return n.start(),new nr((function(e){return n.subscribe(e),function(){n.unsubscribe(e)}}))},t}(Or),ms=n(4147);function ys(e,t){return new Or((function(n,r){var i={"X-API-KEY":e,source:on},o=t.customerToken;return o&&(i["X-CUSTOMER-KEY"]=o),n.setContext({headers:i}),r(n)}))}var gs=function(e){return!!e&&![500,400].includes(e.statusCode)};var _s=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}(),bs=function(){function e(){}return e.decideEntitlementPolicy=function(e,t){var n,r;if(!e||!e.calculatedEntitlement.feature)return{hasAccess:!1,accessDeniedReason:De.CustomerNotEntitledForFeature};var i=e.calculatedEntitlement.feature,o=i.featureType,a=i.meterType;switch(o){case Oe.Boolean:return{hasAccess:!0};case Oe.Numeric:if((null===(n=e.calculatedEntitlement.feature)||void 0===n?void 0:n.meterType)===Re.None)return{hasAccess:!0};if(e.calculatedEntitlement.hasUnlimitedUsage)return{hasAccess:!0};var s=e.featureUsage.currentUsage;return a===Re.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:De.RequestedUsageExceedsLimit}}},e}(),Es=function(){function e(e,t,n){this.entitlementsApi=e,this.customerId=t,this.loggerService=n}return e.prototype.reportEntitlementCheckRequested=function(e,t,n){var r=this;this.entitlementsApi.reportEntitlementRequested(e,this.customerId,t,n).then((function(){r.loggerService.debug("Successfully reported entitlement check requested")}),(function(){}))},e}(),Ss=n(6486),ws=function(){return ws=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},ws.apply(this,arguments)},Is=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())}))},Ts=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])}}},Cs=function(){function e(e,t,n,r,i,o,a){this.customerId=e,this.cacheService=t,this.loggerService=o,this.onEntitlementsUpdated=a,this.modelMapper=new mn,this.loadingEntitlements=null,this.entitlementsApi=new st(n,i),this.entitlementCheckReportingService=new Es(new st(r,i),e,o),this.entitlementsPollingObserver=null}return e.prototype.startPolling=function(e){var t=this;this.stopPolling(),this.entitlementsPollingObserver=this.entitlementsApi.pollEntitlements(this.customerId,e),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 Is(this,void 0,void 0,(function(){return Ts(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=bs.decideEntitlementPolicy(i);if((null==i?void 0:i.calculatedEntitlement.feature)&&i.calculatedEntitlement.feature.featureType!==Oe.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),ws(ws({},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=bs.decideEntitlementPolicy(o);if((null==o?void 0:o.calculatedEntitlement.feature)&&(null===(r=o.calculatedEntitlement.feature)||void 0===r?void 0:r.featureType)!==Oe.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),ws(ws({},a),{isFallback:!1,isUnlimited:!1})}var c=this.modelMapper.mapEntitlementResult(a,o);return this.tryTrackEntitlementCheck(i,e,c),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=bs.decideEntitlementPolicy(a,s);if((null==a?void 0:a.calculatedEntitlement.feature)&&(null===(r=a.calculatedEntitlement.feature)||void 0===r?void 0:r.meterType)!==Re.Fluctuating&&(null===(i=a.calculatedEntitlement.feature)||void 0===i?void 0:i.meterType)!==Re.Incremental){var c=this.modelMapper.mapFallbackMeteredEntitlementResult(t,u,s);return this.tryTrackEntitlementCheck(o,e,c,s),t}if(!a){var l=this.modelMapper.mapEntitlementResult(u,void 0,s);return this.tryTrackEntitlementCheck(o,e,l,s),ws(ws({},u),{currentUsage:0,isFallback:!1,isUnlimited:!1,requestedUsage:s||0})}var f=this.modelMapper.mapEntitlementResult(u,a,s);return this.tryTrackEntitlementCheck(o,e,f,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 Is(this,void 0,void 0,(function(){return Ts(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 Is(this,void 0,void 0,(function(){var t;return Ts(this,(function(n){switch(n.label){case 0:return[4,this.entitlementsApi.getEntitlements(this.customerId,e)];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,Ss.max)(e.flatMap((function(e){return[new Date(e.entitlementUpdatedAt),new Date(e.usageUpdatedAt)]})))||new Date},e.prototype.getEntitlements=function(){return Is(this,void 0,void 0,(function(){var e=this;return Ts(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=bs.decideEntitlementPolicy(t);return e.modelMapper.mapEntitlement(t,n)}))]}}))}))},e}(),Ps=n(2991),As=Object.prototype.toString;function Ds(e){switch(As.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Ls(e,Error)}}function Os(e,t){return As.call(e)===`[object ${t}]`}function Rs(e){return Os(e,"ErrorEvent")}function Ns(e){return Os(e,"DOMError")}function xs(e){return Os(e,"String")}function ks(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function Fs(e){return Os(e,"Object")}function Us(e){return"undefined"!=typeof Event&&Ls(e,Event)}function Ms(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Ls(e,t){try{return e instanceof t}catch(e){return!1}}function js(e,t){try{let i=e;var n=[];let o=0,a=0;var r=" > ".length;let s;for(;i&&o++<5&&(s=Bs(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 Bs(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&&xs(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 qs(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.substr(0,t)}...`}function Vs(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 Gs(e,t){return!!xs(e)&&(Os(t,"RegExp")?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}function $s(e,t,n){if(t in e){var r=e[t],i=n(r);if("function"==typeof i)try{Qs(i,r)}catch(e){}e[t]=i}}function zs(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function Qs(e,t){var n=t.prototype||{};e.prototype=t.prototype=n,zs(e,"__sentry_original__",t)}function Ws(e){return e.__sentry_original__}function Ks(e){if(Ds(e))return{message:e.message,name:e.name,stack:e.stack,...Hs(e)};if(Us(e)){var t={type:e.type,target:Ys(e.target),currentTarget:Ys(e.currentTarget),...Hs(e)};return"undefined"!=typeof CustomEvent&&Ls(e,CustomEvent)&&(t.detail=e.detail),t}return e}function Ys(e){try{return"undefined"!=typeof Element&&Ls(e,Element)?js(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function Hs(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 Js(e,t=40){var n=Object.keys(Ks(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return qs(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:qs(r,t)}return""}function Xs(e){return Zs(e,new Map)}function Zs(e,t){if(Fs(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]=Zs(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(Zs(e,t))})),n):e}let eu;class tu{constructor(){tu.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=tu.id}setupOnce(){eu=Function.prototype.toString,Function.prototype.toString=function(...e){var t=Ws(this)||this;return eu.apply(t,e)}}}tu.__initStatic();var nu=(0,Ps.R)(),ru=["debug","info","warn","error","log","assert","trace"];function iu(e){var t=(0,Ps.R)();if(!("console"in t))return e();var n=t.console,r={};ru.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 ou(){let e=!1;var t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?ru.forEach((n=>{t[n]=(...t)=>{e&&iu((()=>{nu.console[n](`Sentry Logger [${n}]:`,...t)}))}})):ru.forEach((e=>{t[e]=()=>{}})),t}let au;function su(){var e=(0,Ps.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 uu(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function cu(e){const{message:t,event_id:n}=e;if(t)return t;var r=uu(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function lu(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 fu(e,t){var n=uu(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 pu(e){if(e&&e.__sentry_captured__)return!0;try{zs(e,"__sentry_captured__",!0)}catch(e){}return!1}au="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,Ps.Y)("logger",ou):ou();var du=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class hu{static __initStatic(){this.id="InboundFilters"}__init(){this.name=hu.id}constructor(e={}){this._options=e,hu.prototype.__init.call(this)}setupOnce(e,t){var n=e=>{var n=t();if(n){var r=n.getIntegration(hu);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||[],...du],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__)&&au.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${cu(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__)&&au.error(`Cannot extract message for event ${cu(e)}`),[]}return[]}(e).some((e=>t.some((t=>Gs(e,t)))))}(e,t.ignoreErrors)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${cu(e)}`),!0):function(e,t){if(!t||!t.length)return!1;var n=vu(e);return!!n&&t.some((e=>Gs(n,e)))}(e,t.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${cu(e)}.\nUrl: ${vu(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;var n=vu(e);return!n||t.some((e=>Gs(n,e)))}(e,t.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${cu(e)}.\nUrl: ${vu(e)}`),!0)}(e,a)?null:e}}return e};n.id=this.name,e(n)}}function vu(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__)&&au.error(`Cannot extract url for event ${cu(e)}`),null}}hu.__initStatic();var mu,yu=n(1170),gu=n(2176);function _u(e){return new Eu((t=>{t(e)}))}function bu(e){return new Eu(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(mu||(mu={}));class Eu{__init(){this._state=mu.PENDING}__init2(){this._handlers=[]}constructor(e){Eu.prototype.__init.call(this),Eu.prototype.__init2.call(this),Eu.prototype.__init3.call(this),Eu.prototype.__init4.call(this),Eu.prototype.__init5.call(this),Eu.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new Eu(((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 Eu(((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(mu.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(mu.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{this._state===mu.PENDING&&(Ms(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state!==mu.PENDING){var e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===mu.RESOLVED&&e[1](this._value),this._state===mu.REJECTED&&e[2](this._value),e[0]=!0)}))}}}}function Su(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,yu.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:su()),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 wu{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 wu;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&&Su(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 wu?t:this}return e instanceof wu?(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)):Fs(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,yu.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([...Iu(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,n,r=0){return new Eu(((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&&au.log(`Event processor "${a.id}" dropped event`),Ms(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 Iu(){return(0,Ps.Y)("globalEventProcessors",(()=>[]))}function Tu(e){Iu().push(e)}var Cu=100;class Pu{__init(){this._stack=[{}]}constructor(e,t=new wu,n=4){this._version=n,Pu.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=wu.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:su(),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:su(),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:su();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=Cu}=r.getOptions&&r.getOptions()||{};if(!(o<=0)){var a={timestamp:(0,yu.yW)(),...e},s=i?iu((()=>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=Du(this);try{e(this)}finally{Du(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__)&&au.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"}),Su(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,Ps.R)();const{userAgent:a}=o.navigator||{};var s=function(e){var t=(0,yu.ph)(),n={sid:su(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return Xs({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&&Su(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&&Su(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=Au().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function Au(){var e=(0,Ps.R)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function Du(e){var t=Au(),n=Nu(t);return xu(t,e),n}function Ou(){var e=Au();return Ru(e)&&!Nu(e).isOlderThan(4)||xu(e,new Pu),(0,gu.KV)()?function(e){try{var t=Au().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return Nu(e);if(!Ru(n)||Nu(n).isOlderThan(4)){var r=Nu(e).getStackTop();xu(n,new Pu(r.client,wu.clone(r.scope)))}return Nu(n)}catch(t){return Nu(e)}}(e):Nu(e)}function Ru(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Nu(e){return(0,Ps.Y)("hub",(()=>new Pu),e)}function xu(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}var ku="<anonymous>";function Fu(e){try{return e&&"function"==typeof e&&e.name||ku}catch(e){return ku}}function Uu(){if(!("fetch"in(0,Ps.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function Mu(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}var Lu=(0,Ps.R)(),ju={},Bu={};function qu(e,t){ju[e]=ju[e]||[],ju[e].push(t),function(e){if(!Bu[e])switch(Bu[e]=!0,e){case"console":"console"in Lu&&ru.forEach((function(e){e in Lu.console&&$s(Lu.console,e,(function(t){return function(...n){Vu("console",{args:n,level:e}),t&&t.apply(Lu.console,n)}}))}));break;case"dom":!function(){if("document"in Lu){var e=Vu.bind(null,"dom"),t=Ku(e,!0);Lu.document.addEventListener("click",t,!1),Lu.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{var n=Lu[t]&&Lu[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&($s(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=Ku(e);a.handler=s,t.call(this,n,s,i)}a.refCount+=1}catch(e){}return t.call(this,n,r,i)}})),$s(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 Lu){var e=XMLHttpRequest.prototype;$s(e,"open",(function(e){return function(...t){var n=this,r=t[1],i=n.__sentry_xhr__={method:xs(t[0])?t[0].toUpperCase():t[0],url:t[1]};xs(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){}Vu("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:n})}};return"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?$s(n,"onreadystatechange",(function(e){return function(...t){return o(),e.apply(n,t)}})):n.addEventListener("readystatechange",o),e.apply(n,t)}})),$s(e,"send",(function(e){return function(...t){return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),Vu("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}}();break;case"fetch":(function(){if(!Uu())return!1;var e=(0,Ps.R)();if(Mu(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=Mu(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t})()&&$s(Lu,"fetch",(function(e){return function(...t){var n={args:t,fetchData:{method:Gu(t),url:$u(t)},startTimestamp:Date.now()};return Vu("fetch",{...n}),e.apply(Lu,t).then((e=>(Vu("fetch",{...n,endTimestamp:Date.now(),response:e}),e)),(e=>{throw Vu("fetch",{...n,endTimestamp:Date.now(),error:e}),e}))}}));break;case"history":!function(){if(function(){var e=(0,Ps.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=Lu.onpopstate;Lu.onpopstate=function(...t){var n=Lu.location.href,r=zu;if(zu=n,Vu("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},$s(Lu.history,"pushState",t),$s(Lu.history,"replaceState",t)}function t(e){return function(...t){var n=t.length>2?t[2]:void 0;if(n){var r=zu,i=String(n);zu=i,Vu("history",{from:r,to:i})}return e.apply(this,t)}}}();break;case"error":Yu=Lu.onerror,Lu.onerror=function(e,t,n,r,i){return Vu("error",{column:r,error:i,line:n,msg:e,url:t}),!!Yu&&Yu.apply(this,arguments)};break;case"unhandledrejection":Hu=Lu.onunhandledrejection,Lu.onunhandledrejection=function(e){return Vu("unhandledrejection",e),!Hu||Hu.apply(this,arguments)};break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn("unknown instrumentation type:",e)}}(e)}function Vu(e,t){if(e&&ju[e])for(var n of ju[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Fu(n)}\nError:`,t)}}function Gu(e=[]){return"Request"in Lu&&Ls(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function $u(e=[]){return"string"==typeof e[0]?e[0]:"Request"in Lu&&Ls(e[0],Request)?e[0].url:String(e[0])}let zu,Qu,Wu;function Ku(e,t=!1){return n=>{if(n&&Wu!==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===Qu||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}(Wu,n))&&(e({event:n,name:r,global:t}),Wu=n),clearTimeout(Qu),Qu=Lu.setTimeout((()=>{Qu=void 0}),1e3)}}}let Yu=null,Hu=null;function Ju(e,t=1/0,n=1/0){try{return Zu("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Xu(e,t=3,n=102400){var r,i=Ju(e,t);return r=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?Xu(e,t-1,n):i}function Zu(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 Fs(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: ${Fu(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 Zu("",l.toJSON(),r-1,i,o)}catch(e){}var f=Array.isArray(t)?[]:{};let p=0;var d=Ks(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]=Zu(h,v,r-1,i,o),p+=1}return s(t),f}function ec(e,t){var n=nc(e,t),r={type:t&&t.name,value:ic(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function tc(e,t){return{exception:{values:[ec(e,t)]}}}function nc(e,t){var n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(rc.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}var rc=/Minified React error #\d+;/i;function ic(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function oc(e,t,n,r,i){let o;if(Rs(t)&&t.error)return tc(e,t.error);if(Ns(t)||Os(t,"DOMException")){var a=t;if("stack"in t)o=tc(e,t);else{var s=a.name||(Ns(a)?"DOMError":"DOMException"),u=a.message?`${s}: ${a.message}`:s;o=ac(e,u,n,r),lu(o,u)}return"code"in a&&(o.tags={...o.tags,"DOMException.code":`${a.code}`}),o}return Ds(t)?tc(e,t):Fs(t)||Us(t)?(o=function(e,t,n,r){var i={exception:{values:[{type:Us(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${Js(t)}`}]},extra:{__serialized__:Xu(t)}};if(n){var o=nc(e,n);o.length&&(i.exception.values[0].stacktrace={frames:o})}return i}(e,t,n,i),fu(o,{synthetic:!0}),o):(o=ac(e,t,n,r),lu(o,`${t}`,void 0),fu(o,{synthetic:!0}),o)}function ac(e,t,n,r){var i={message:t};if(r&&n){var o=nc(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]})}return i}function sc(e,t){return Ou().captureException(e,{captureContext:t})}function uc(e){Ou().withScope(e)}let cc=0;function lc(){return cc>0}function fc(){cc+=1,setTimeout((()=>{cc-=1}))}function pc(e,t={},n){if("function"!=typeof e)return e;try{var r=e.__sentry_wrapped__;if(r)return r;if(Ws(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=>pc(e,t)));return e.apply(this,i)}catch(e){throw fc(),uc((n=>{n.addEventProcessor((e=>(t.mechanism&&(lu(e,void 0,void 0),fu(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),sc(e)})),e}};try{for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}catch(e){}Qs(i,e),zs(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>e.name})}catch(e){}return i}class dc{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=dc.id}__init2(){this._installFunc={onerror:hc,onunhandledrejection:vc}}constructor(e){dc.prototype.__init.call(this),dc.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__)&&au.log(`Global Handler attached: ${e}`),r(),this._installFunc[n]=void 0)}}}function hc(){qu("error",(e=>{const[t,n,r]=gc();if(!t.getIntegration(dc))return;const{msg:i,url:o,line:a,column:s,error:u}=e;if(!(lc()||u&&u.__sentry_own_request__)){var c=void 0===u&&xs(i)?function(e,t,n,r){let i=Rs(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]),mc({exception:{values:[{type:o,value:i}]}},t,n,r)}(i,o,a,s):mc(oc(n,u||i,void 0,r,!1),o,a,s);c.level="error",yc(t,u,c,"onerror")}}))}function vc(){qu("unhandledrejection",(e=>{const[t,n,r]=gc();if(!t.getIntegration(dc))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(lc()||i&&i.__sentry_own_request__)return!0;var o=ks(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:oc(n,i,void 0,r,!0);o.level="error",yc(t,i,o,"onunhandledrejection")}))}function mc(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=xs(t)&&t.length>0?t:function(){var e=(0,Ps.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 yc(e,t,n,r){fu(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function gc(){var e=Ou(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}dc.__initStatic();var _c=["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 bc{static __initStatic(){this.id="TryCatch"}__init(){this.name=bc.id}constructor(e){bc.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){var e=(0,Ps.R)();this._options.setTimeout&&$s(e,"setTimeout",Ec),this._options.setInterval&&$s(e,"setInterval",Ec),this._options.requestAnimationFrame&&$s(e,"requestAnimationFrame",Sc),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&$s(XMLHttpRequest.prototype,"send",wc);var t=this._options.eventTarget;t&&(Array.isArray(t)?t:_c).forEach(Ic)}}function Ec(e){return function(...t){var n=t[0];return t[0]=pc(n,{mechanism:{data:{function:Fu(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function Sc(e){return function(t){return e.apply(this,[pc(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Fu(e)},handled:!0,type:"instrument"}})])}}function wc(e){return function(...t){var n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&$s(n,e,(function(t){var n={mechanism:{data:{function:e,handler:Fu(t)},handled:!0,type:"instrument"}},r=Ws(t);return r&&(n.mechanism.data.handler=Fu(r)),pc(t,n)}))})),e.apply(this,t)}}function Ic(e){var t=(0,Ps.R)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&($s(n,"addEventListener",(function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=pc(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Fu(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.apply(this,[n,pc(r,{mechanism:{data:{function:"addEventListener",handler:Fu(r),target:e},handled:!0,type:"instrument"}}),i])}})),$s(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)}})))}bc.__initStatic();var Tc=["fatal","error","warning","log","info","debug"];function Cc(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 Pc="Breadcrumbs";class Ac{static __initStatic(){this.id=Pc}__init(){this.name=Ac.id}constructor(e){Ac.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&&qu("console",Dc),this.options.dom&&qu("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?js(t.event.target,r):js(t.event,r)}catch(e){n="<unknown>"}0!==n.length&&Ou().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})})),this.options.xhr&&qu("xhr",Oc),this.options.fetch&&qu("fetch",Rc),this.options.history&&qu("history",Nc)}}function Dc(e){var t,n={category:"console",data:{arguments:e.args,logger:"console"},level:(t=e.level,"warn"===t?"warning":Tc.includes(t)?t:"log"),message:Vs(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${Vs(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}Ou().addBreadcrumb(n,{input:e.args,level:e.level})}function Oc(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__||{};Ou().addBreadcrumb({category:"xhr",data:{method:t,url:n,status_code:r},type:"http"},{xhr:e.xhr,input:i})}}function Rc(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?Ou().addBreadcrumb({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args}):Ou().addBreadcrumb({category:"fetch",data:{...e.fetchData,status_code:e.response.status},type:"http"},{input:e.args,response:e.response})))}function Nc(e){var t=(0,Ps.R)();let n=e.from,r=e.to;var i=Cc(t.location.href);let o=Cc(n);var a=Cc(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),Ou().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}Ac.__initStatic();class xc{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=xc.id}constructor(e={}){xc.prototype.__init.call(this),this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){var e=Ou().getClient();e&&Tu(((t,n)=>{var r=Ou().getIntegration(xc);return r?function(e,t,n,r,i){if(!(r.exception&&r.exception.values&&i&&Ls(i.originalException,Error)))return r;var o=kc(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 kc(e,t,n,r,i=[]){if(!Ls(n[r],Error)||i.length+1>=t)return i;var o=ec(e,n[r]);return kc(e,t,n[r],r,[o,...i])}xc.__initStatic();var Fc=(0,Ps.R)();class Uc{constructor(){Uc.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=Uc.id}setupOnce(){Tu((e=>{if(Ou().getIntegration(Uc)){if(!Fc.navigator&&!Fc.location&&!Fc.document)return e;var t=e.request&&e.request.url||Fc.location&&Fc.location.href;const{referrer:r}=Fc.document||{},{userAgent:i}=Fc.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}))}}Uc.__initStatic();class Mc{constructor(){Mc.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=Mc.id}setupOnce(e,t){var n=e=>{var n=t().getIntegration(Mc);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&&(!!jc(e,t)&&!!Lc(e,t))))}(e,t)||!!function(e,t){var n=Bc(t),r=Bc(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!jc(e,t)&&!!Lc(e,t)))}(e,t))}(e,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.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 Lc(e,t){let n=qc(e),r=qc(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 jc(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 Bc(e){return e.exception&&e.exception.values&&e.exception.values[0]}function qc(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}Mc.__initStatic();let Vc={};var Gc=(0,Ps.R)();Gc.Sentry&&Gc.Sentry.Integrations&&(Vc=Gc.Sentry.Integrations);var $c={...Vc,...r,...i},zc="?";function Qc(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 Wc=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Kc=/\((\S*)(?::(\d+))(?::(\d+))\)/,Yc=/^\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,Hc=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Jc=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Xc=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=Wc.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){var n=Kc.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}const[e,r]=Zc(t[1]||zc,t[2]);return Qc(r,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{var t=Yc.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=Hc.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]||zc;return[r,e]=Zc(r,e),Qc(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{var t=Jc.exec(e);return t?Qc(t[2],t[1]||zc,+t[3],t[4]?+t[4]:void 0):void 0}]),Zc=(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]:zc,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class el 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 tl(e,t=[]){return[e,t]}function nl(e,t){const[n,r]=e;return[n,[...r,t]]}function rl(e,t){e[1].forEach((e=>{var n=e[0].type;t(e,n)}))}function il(e,t){return(t||new TextEncoder).encode(e)}function ol(e,t){const[n,r]=e;let i=JSON.stringify(n);function o(e){"string"==typeof i?i="string"==typeof e?i+e:[il(i,t),e]:i.push("string"==typeof e?il(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 al(e,t){var n="string"==typeof e.data?il(e.data,t):e.data;return[Xs({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}var sl={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default"};function ul(e){return sl[e]}function cl(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 bu(new el("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 Eu(((n,r)=>{let i=t.length;if(!i)return n(!0);var o=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{_u(e).then((()=>{--i||(clearTimeout(o),n(!0))}),r)}))}))}}}(e.bufferSize||30)){let r={};return{send:function(i){var o=[];if(rl(i,((t,n)=>{var i=ul(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 _u();var a=tl(i[0],o),s=t=>{rl(a,((n,r)=>{e.recordDroppedEvent(t,ul(r))}))};return n.add((()=>t({body:ol(a,e.textEncoder)}).then((e=>{void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.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__)&&au.error("Failed while sending event:",e),s("network_error")})))).then((e=>e),(e=>{if(e instanceof el)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.error("Skipped sending event due to full buffer"),s("queue_overflow"),_u();throw e}))},flush:e=>n.drain(e)}}var ll=(0,Ps.R)();let fl;function pl(){if(fl)return fl;if(Mu(ll.fetch))return fl=ll.fetch.bind(ll);var e=ll.document;let t=ll.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__)&&au.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return fl=t.bind(ll)}function dl(e,t=pl()){return cl(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 hl(e){return cl(e,(function(t){return new Eu(((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 vl=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ml(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 yl(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function gl(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 _l(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}var bl=[],El="Not capturing exception because it's already been captured.";class Sl{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}constructor(e){if(Sl.prototype.__init.call(this),Sl.prototype.__init2.call(this),Sl.prototype.__init3.call(this),Sl.prototype.__init4.call(this),this._options=e,e.dsn){this._dsn=(n=e.dsn,r="string"==typeof n?function(e){var t=vl.exec(e);if(!t)throw new el(`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 yl({host:o,pass:i,path:u,projectId:c,port:a,protocol:n,publicKey:r})}(n):yl(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 el(`Invalid Sentry Dsn: ${t} missing`)})),!n.match(/^\d+$/))throw new el(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!function(e){return"http"===e||"https"===e}(r))throw new el(`Invalid Sentry Dsn: Invalid protocol ${r}`);if(t&&isNaN(parseInt(t,10)))throw new el(`Invalid Sentry Dsn: Invalid port ${t}`)}(r),r);var t=gl(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn("No DSN provided, client will not do anything.");var n,r}captureException(e,t,n){if(pu(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.log(El));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=ks(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&&pu(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.log(El));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__)&&au.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Su(e,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.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)))):_u(!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===bl.indexOf(e.name)&&(e.setupOnce(Tu,Ou),bl.push(e.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.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__)&&au.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=_l(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:ml(r)},..."transaction"===e.type&&o&&{trace:Xs({...o})}}}(e,i,r,t);return delete e.sdkProcessingMetadata,tl(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=nl(r,al(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=_l(n);return tl({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&{dsn:ml(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__)&&au.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)&&(Su(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Eu((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||su(),timestamp:e.timestamp||(0,yu.yW)()};this._applyClientOptions(o),this._applyIntegrationsMetadata(o);let a=n;t.captureContext&&(a=wu.clone(a).update(t.captureContext));let s=_u(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:Ju(e.data,t,n)}})))},...e.user&&{user:Ju(e.user,t,n)},...e.contexts&&{contexts:Ju(e.contexts,t,n)},...e.extra&&{extra:Ju(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=Ju(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>(e.data&&(e.data=Ju(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=qs(e.message,o));var a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=qs(a.value,o));var s=e.request;s&&s.url&&(s.url=qs(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?au.log(t.message):au.warn(t)}}))}_processEvent(e,t,n){const{beforeSend:r,sampleRate:i}=this.getOptions();if(!this._isEnabled())return bu(new el("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"),bu(new el(`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 el("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(Ms(e))return e.then((e=>{if(!Fs(e)&&null!==e)throw new el(t);return e}),(e=>{throw new el(`beforeSend rejected with ${e}`)}));if(!Fs(e)&&null!==e)throw new el(t);return e}(r(n,t))})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",e.type||"error"),new el("`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 el)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new el(`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__)&&au.error("Error while sending event:",e)})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.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 wl="7.11.1",Il=(0,Ps.R)();class Tl extends Sl{constructor(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:wl}],version:wl},super(e),e.sendClientReports&&Il.document&&Il.document.addEventListener("visibilitychange",(()=>{"hidden"===Il.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){var i=oc(e,t,n&&n.syntheticException||void 0,r);return fu(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),_u(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){var o=ac(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),_u(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}sendEvent(e,t){var n=this.getIntegrationById(Pc);n&&n.options&&n.options.sentry&&Ou().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:cu(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__)&&au.log("Sending outcomes:",e);var t,n,r=gl(this._dsn,this._options),i=(t=e,tl((n=this._options.tunnel&&ml(this._dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:(0,yu.yW)(),discarded_events:t}]]));try{!function(e,t){"[object Navigator]"===Object.prototype.toString.call(ll&&ll.navigator)&&"function"==typeof ll.navigator.sendBeacon?ll.navigator.sendBeacon.bind(ll.navigator)(e,t):Uu()&&pl()(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.error(e)}))}(r,ol(i))}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.error(e)}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.log("No dsn provided, will not send outcomes");else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.log("No outcomes to send")}}var Cl,Pl=n(4147),Al=[new $c.InboundFilters,new $c.FunctionToString,new $c.TryCatch,new $c.Breadcrumbs,new $c.LinkedErrors,new $c.Dedupe,new $c.HttpContext],Dl=new Pu;!function(e){e.IN_PROGRESS="IN_PROGRESS",e.SUCCESS="READY",e.FAILED="FAILED"}(Cl||(Cl={}));var Ol=function(){function e(e){this.eventEmitter=e,this.initializationPromise=null,this.initializationStatus=Cl.IN_PROGRESS,this.initFailureError=null}return e.prototype.getInitializationPromise=function(){var e=this;return this.initializationPromise?this.initializationPromise:this.initializationStatus===Cl.SUCCESS?Promise.resolve():this.initializationStatus===Cl.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=Cl.SUCCESS,this.eventEmitter.emit("initializeSuccessfully")},e.prototype.signalFailedInit=function(e){this.initializationStatus=Cl.FAILED,this.initFailureError=e,this.eventEmitter.emit("initializeFailed",e)},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)};function Nl(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,kl(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 xl(e,t){try{return e()}catch(e){return kl(e,t)}}function kl(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;Dl.withScope((function(t){var o={errorMessage:r};if(n){var a=n.customerId,s=Rl(Rl({},n),{apiKey:void 0});a&&t.setTags({customerId:a}),o.sdkConfiguration=s}i&&(o=Rl(Rl({},o),i)),t.setExtras(o),Dl.captureException(e)}))}(e,{sdkConfiguration:r,errorMessage:s,errorReportMetadata:a}),o)throw new Error(s)}var Fl,Ul=n(2527),Ml=(Fl=function(e,t){return Fl=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])},Fl(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}Fl(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ll=function(e){function t(){return e.call(this)||this}return Ml(t,e),t}(Ul.TypedEmitter);function jl(e,t){return function(){return e.apply(t,arguments)}}const{toString:Bl}=Object.prototype,{getPrototypeOf:ql}=Object,Vl=(Gl=Object.create(null),e=>{const t=Bl.call(e);return Gl[t]||(Gl[t]=t.slice(8,-1).toLowerCase())});var Gl;const $l=e=>(e=e.toLowerCase(),t=>Vl(t)===e),zl=e=>t=>typeof t===e,{isArray:Ql}=Array,Wl=zl("undefined"),Kl=$l("ArrayBuffer"),Yl=zl("string"),Hl=zl("function"),Jl=zl("number"),Xl=e=>null!==e&&"object"==typeof e,Zl=e=>{if("object"!==Vl(e))return!1;const t=ql(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},ef=$l("Date"),tf=$l("File"),nf=$l("Blob"),rf=$l("FileList"),of=$l("URLSearchParams");function af(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),Ql(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 sf(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 uf="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,cf=e=>!Wl(e)&&e!==uf,lf=(ff="undefined"!=typeof Uint8Array&&ql(Uint8Array),e=>ff&&e instanceof ff);var ff;const pf=$l("HTMLFormElement"),df=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),hf=$l("RegExp"),vf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};af(n,((n,i)=>{!1!==t(n,i,e)&&(r[i]=n)})),Object.defineProperties(e,r)},mf={isArray:Ql,isArrayBuffer:Kl,isBuffer:function(e){return null!==e&&!Wl(e)&&null!==e.constructor&&!Wl(e.constructor)&&Hl(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{const t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||Bl.call(e)===t||Hl(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Kl(e.buffer),t},isString:Yl,isNumber:Jl,isBoolean:e=>!0===e||!1===e,isObject:Xl,isPlainObject:Zl,isUndefined:Wl,isDate:ef,isFile:tf,isBlob:nf,isRegExp:hf,isFunction:Hl,isStream:e=>Xl(e)&&Hl(e.pipe),isURLSearchParams:of,isTypedArray:lf,isFileList:rf,forEach:af,merge:function e(){const{caseless:t}=cf(this)&&this||{},n={},r=(r,i)=>{const o=t&&sf(n,i)||i;Zl(n[o])&&Zl(r)?n[o]=e(n[o],r):Zl(r)?n[o]=e({},r):Ql(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&af(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(af(t,((t,r)=>{n&&Hl(t)?e[r]=jl(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&&ql(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Vl,kindOfTest:$l,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(Ql(e))return e;let t=e.length;if(!Jl(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:pf,hasOwnProperty:df,hasOwnProp:df,reduceDescriptors:vf,freezeMethods:e=>{vf(e,((t,n)=>{if(Hl(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Hl(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 Ql(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:sf,global:uf,isContextDefined:cf,toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Xl(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=Ql(e)?[]:{};return af(e,((e,t)=>{const o=n(e,r+1);!Wl(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)}};function yf(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)}mf.inherits(yf,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:mf.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const gf=yf.prototype,_f={};["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=>{_f[e]={value:e}})),Object.defineProperties(yf,_f),Object.defineProperty(gf,"isAxiosError",{value:!0}),yf.from=(e,t,n,r,i,o)=>{const a=Object.create(gf);return mf.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),yf.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const bf=yf,Ef=n(6401);function Sf(e){return mf.isPlainObject(e)||mf.isArray(e)}function wf(e){return mf.endsWith(e,"[]")?e.slice(0,-2):e}function If(e,t,n){return e?e.concat(t).map((function(e,t){return e=wf(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Tf=mf.toFlatObject(mf,{},null,(function(e){return/^is[A-Z]/.test(e)})),Cf=function(e,t,n){if(!mf.isObject(e))throw new TypeError("target must be an object");t=t||new(Ef||FormData);const r=(n=mf.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!mf.isUndefined(t[e])}))).metaTokens,i=n.visitor||l,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&(u=t)&&mf.isFunction(u.append)&&"FormData"===u[Symbol.toStringTag]&&u[Symbol.iterator];var u;if(!mf.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(mf.isDate(e))return e.toISOString();if(!s&&mf.isBlob(e))throw new bf("Blob is not supported. Use a Buffer instead.");return mf.isArrayBuffer(e)||mf.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(mf.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(mf.isArray(e)&&function(e){return mf.isArray(e)&&!e.some(Sf)}(e)||mf.isFileList(e)||mf.endsWith(n,"[]")&&(s=mf.toArray(e)))return n=wf(n),s.forEach((function(e,r){!mf.isUndefined(e)&&null!==e&&t.append(!0===a?If([n],r,o):null===a?n:n+"[]",c(e))})),!1;return!!Sf(e)||(t.append(If(i,n,o),c(e)),!1)}const f=[],p=Object.assign(Tf,{defaultVisitor:l,convertValue:c,isVisitable:Sf});if(!mf.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!mf.isUndefined(n)){if(-1!==f.indexOf(n))throw Error("Circular reference detected in "+r.join("."));f.push(n),mf.forEach(n,(function(n,o){!0===(!(mf.isUndefined(n)||null===n)&&i.call(t,n,mf.isString(o)?o.trim():o,r,p))&&e(n,r?r.concat(o):[o])})),f.pop()}}(e),t};function Pf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Af(e,t){this._pairs=[],e&&Cf(e,this,t)}const Df=Af.prototype;Df.append=function(e,t){this._pairs.push([e,t])},Df.toString=function(e){const t=e?function(t){return e.call(this,t,Pf)}:Pf;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Of=Af;function Rf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Nf(e,t,n){if(!t)return e;const r=n&&n.encode||Rf,i=n&&n.serialize;let o;if(o=i?i(t,n):mf.isURLSearchParams(t)?t.toString():new Of(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const xf=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){mf.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},kf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ff="undefined"!=typeof URLSearchParams?URLSearchParams:Of,Uf=FormData,Mf=(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),Lf="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,jf={isBrowser:!0,classes:{URLSearchParams:Ff,FormData:Uf,Blob},isStandardBrowserEnv:Mf,isStandardBrowserWebWorkerEnv:Lf,protocols:["http","https","file","blob","url","data"]},Bf=function(e){function t(e,n,r,i){let o=e[i++];const a=Number.isFinite(+o),s=i>=e.length;return o=!o&&mf.isArray(r)?r.length:o,s?(mf.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a):(r[o]&&mf.isObject(r[o])||(r[o]=[]),t(e,n,r[o],i)&&mf.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(mf.isFormData(e)&&mf.isFunction(e.entries)){const n={};return mf.forEachEntry(e,((e,r)=>{t(function(e){return mf.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},qf={"Content-Type":void 0},Vf={transitional:kf,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=mf.isObject(e);if(i&&mf.isHTMLForm(e)&&(e=new FormData(e)),mf.isFormData(e))return r&&r?JSON.stringify(Bf(e)):e;if(mf.isArrayBuffer(e)||mf.isBuffer(e)||mf.isStream(e)||mf.isFile(e)||mf.isBlob(e))return e;if(mf.isArrayBufferView(e))return e.buffer;if(mf.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 Cf(e,new jf.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return jf.isNode&&mf.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=mf.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Cf(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(mf.isString(e))try{return(0,JSON.parse)(e),mf.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Vf.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&mf.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 bf.from(e,bf.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:jf.classes.FormData,Blob:jf.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};mf.forEach(["delete","get","head"],(function(e){Vf.headers[e]={}})),mf.forEach(["post","put","patch"],(function(e){Vf.headers[e]=mf.merge(qf)}));const Gf=Vf,$f=mf.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"]),zf=Symbol("internals");function Qf(e){return e&&String(e).trim().toLowerCase()}function Wf(e){return!1===e||null==e?e:mf.isArray(e)?e.map(Wf):String(e)}function Kf(e,t,n,r){return mf.isFunction(r)?r.call(this,t,n):mf.isString(t)?mf.isString(r)?-1!==t.indexOf(r):mf.isRegExp(r)?r.test(t):void 0:void 0}class Yf{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=Qf(t);if(!i)throw new Error("header name must be a non-empty string");const o=mf.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=Wf(e))}const o=(e,t)=>mf.forEach(e,((e,n)=>i(e,n,t)));return mf.isPlainObject(e)||e instanceof this.constructor?o(e,t):mf.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]&&$f[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=Qf(e)){const n=mf.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(mf.isFunction(t))return t.call(this,e,n);if(mf.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Qf(e)){const n=mf.findKey(this,e);return!(!n||t&&!Kf(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=Qf(e)){const i=mf.findKey(n,e);!i||t&&!Kf(0,n[i],i,t)||(delete n[i],r=!0)}}return mf.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 mf.forEach(this,((r,i)=>{const o=mf.findKey(n,i);if(o)return t[o]=Wf(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]=Wf(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return mf.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&mf.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[zf]=this[zf]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Qf(e);t[r]||(function(e,t){const n=mf.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 mf.isArray(e)?e.forEach(r):r(e),this}}Yf.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),mf.freezeMethods(Yf.prototype),mf.freezeMethods(Yf);const Hf=Yf;function Jf(e,t){const n=this||Gf,r=t||n,i=Hf.from(r.headers);let o=r.data;return mf.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function Xf(e){return!(!e||!e.__CANCEL__)}function Zf(e,t,n){bf.call(this,null==e?"canceled":e,bf.ERR_CANCELED,t,n),this.name="CanceledError"}mf.inherits(Zf,bf,{__CANCEL__:!0});const ep=Zf,tp=jf.isStandardBrowserEnv?{write:function(e,t,n,r,i,o){const a=[];a.push(e+"="+encodeURIComponent(t)),mf.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),mf.isString(r)&&a.push("path="+r),mf.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 np(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 rp=jf.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=mf.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function ip(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 op={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const i=Hf.from(e.headers).normalize(),o=e.responseType;let a;function s(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}mf.isFormData(r)&&(jf.isStandardBrowserEnv||jf.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=np(e.baseURL,e.url);function l(){if(!u)return;const r=Hf.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new bf("Request failed with status code "+n.status,[bf.ERR_BAD_REQUEST,bf.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(),Nf(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 bf("Request aborted",bf.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new bf("Network Error",bf.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||kf;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new bf(t,r.clarifyTimeoutError?bf.ETIMEDOUT:bf.ECONNABORTED,e,u)),u=null},jf.isStandardBrowserEnv){const t=(e.withCredentials||rp(c))&&e.xsrfCookieName&&tp.read(e.xsrfCookieName);t&&i.set(e.xsrfHeaderName,t)}void 0===r&&i.setContentType(null),"setRequestHeader"in u&&mf.forEach(i.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),mf.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),o&&"json"!==o&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",ip(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",ip(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=t=>{u&&(n(!t||t.type?new ep(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===jf.protocols.indexOf(f)?n(new bf("Unsupported protocol "+f+":",bf.ERR_BAD_REQUEST,e)):u.send(r||null)}))}};mf.forEach(op,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));function ap(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ep(null,e)}function sp(e){return ap(e),e.headers=Hf.from(e.headers),e.data=Jf.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),(e=>{e=mf.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let i=0;i<t&&(n=e[i],!(r=mf.isString(n)?op[n.toLowerCase()]:n));i++);if(!r){if(!1===r)throw new bf(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(mf.hasOwnProp(op,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`)}if(!mf.isFunction(r))throw new TypeError("adapter is not a function");return r})(e.adapter||Gf.adapter)(e).then((function(t){return ap(e),t.data=Jf.call(e,e.transformResponse,t),t.headers=Hf.from(t.headers),t}),(function(t){return Xf(t)||(ap(e),t&&t.response&&(t.response.data=Jf.call(e,e.transformResponse,t.response),t.response.headers=Hf.from(t.response.headers))),Promise.reject(t)}))}const up=e=>e instanceof Hf?e.toJSON():e;function cp(e,t){t=t||{};const n={};function r(e,t,n){return mf.isPlainObject(e)&&mf.isPlainObject(t)?mf.merge.call({caseless:n},e,t):mf.isPlainObject(t)?mf.merge({},t):mf.isArray(t)?t.slice():t}function i(e,t,n){return mf.isUndefined(t)?mf.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!mf.isUndefined(t))return r(void 0,t)}function a(e,t){return mf.isUndefined(t)?mf.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(up(e),up(t),!0)};return mf.forEach(Object.keys(e).concat(Object.keys(t)),(function(r){const o=u[r]||i,a=o(e[r],t[r],r);mf.isUndefined(a)&&o!==s||(n[r]=a)})),n}const lp={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{lp[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const fp={};lp.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 bf(r(i," has been removed"+(t?" in "+t:"")),bf.ERR_DEPRECATED);return t&&!fp[i]&&(fp[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 pp={assertOptions:function(e,t,n){if("object"!=typeof e)throw new bf("options must be an object",bf.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 bf("option "+o+" must be "+n,bf.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new bf("Unknown option "+o,bf.ERR_BAD_OPTION)}},validators:lp},dp=pp.validators;class hp{constructor(e){this.defaults=e,this.interceptors={request:new xf,response:new xf}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=cp(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;let o;void 0!==n&&pp.assertOptions(n,{silentJSONParsing:dp.transitional(dp.boolean),forcedJSONParsing:dp.transitional(dp.boolean),clarifyTimeoutError:dp.transitional(dp.boolean)},!1),void 0!==r&&pp.assertOptions(r,{encode:dp.function,serialize:dp.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase(),o=i&&mf.merge(i.common,i[t.method]),o&&mf.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=Hf.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=[sp.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=sp.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 Nf(np((e=cp(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}mf.forEach(["delete","get","head","options"],(function(e){hp.prototype[e]=function(t,n){return this.request(cp(n||{},{method:e,url:t,data:(n||{}).data}))}})),mf.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(cp(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}hp.prototype[e]=t(),hp.prototype[e+"Form"]=t(!0)}));const vp=hp;class mp{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 ep(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 mp((function(t){e=t})),cancel:e}}}const yp=mp,gp={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(gp).forEach((([e,t])=>{gp[t]=e}));const _p=gp,bp=function e(t){const n=new vp(t),r=jl(vp.prototype.request,n);return mf.extend(r,vp.prototype,n,{allOwnKeys:!0}),mf.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(cp(t,n))},r}(Gf);bp.Axios=vp,bp.CanceledError=ep,bp.CancelToken=yp,bp.isCancel=Xf,bp.VERSION="1.2.2",bp.toFormData=Cf,bp.AxiosError=bf,bp.Cancel=bp.CanceledError,bp.all=function(e){return Promise.all(e)},bp.spread=function(e){return function(t){return e.apply(null,t)}},bp.isAxiosError=function(e){return mf.isObject(e)&&!0===e.isAxiosError},bp.mergeConfig=cp,bp.AxiosHeaders=Hf,bp.formToJSON=e=>Bf(mf.isHTMLForm(e)?new FormData(e):e),bp.HttpStatusCode=_p,bp.default=bp;const Ep=bp;var Sp=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)}}(),wp=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 Sp(t,e),t.prototype.stopPolling=function(){this.stopped=!0},t}(nr),Ip=function(){function e(e,t){this.dynamicData=t;var n=e.apiKey,r=e.baseEdgeUri;this.httpClient=Ep.create({baseURL:r,headers:{"X-API-KEY":n,source:on}})}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){return this.get("/v1/c/".concat(e,"/entitlements.json"))},e.prototype.getSdkConfiguration=function(){return this.get("/v1/config/client-sdk-configuration.json")},e.prototype.watchEntitlements=function(e,t){var n=this;return new wp((function(){return n.getEntitlements(e)}),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}(),Tp=function(){return Tp=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},Tp.apply(this,arguments)},Cp=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())}))},Pp=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])}}},Ap=function(){function e(e,t){var n,r,i,o,a,s;this.modelMapper=new mn,this.eventEmitter=new Ll,this.showWidgetsWatermark=!1,this.configuration=e,this.edgeApiClient=Ip.create(e,e),this.graphClient=(n=this.configuration,r=n.apiKey,i=n.baseUri,o=ys(r,n),a=function(e){return new si({uri:"".concat(e,"/graphql"),fetch:ls()})}(i),s=new vs({attempts:{max:5,retryIf:gs},delay:{initial:500,max:2e3,jitter:!0}}),new va({link:o.concat(s.concat(a)),cache:new ss({possibleTypes:us.g}),name:"js-client-sdk",version:ms.version})),this.batchedGraphClient=function(e){var t=e.apiKey,n=e.baseUri,r=ys(t,e),i=function(e){return new ds({uri:"".concat(e,"/graphql"),batchMax:25,batchInterval:500,fetch:ls()})}(n);return new va({link:r.concat(i),cache:new ss({possibleTypes:us.g}),name:"js-client-sdk",version:ms.version})}(this.configuration),this.loggerService=t,this.apiGateway=new Zt(this.graphClient,this.edgeApiClient),this.entitlementsService=null,this.initializationStateTracker=new Ol(this.eventEmitter)}return e.initialize=function(t){var n=function(e){var t=an(),n=e.baseEdgeUri?e.baseEdgeUri:e.baseUri?sn(e.baseUri):t.baseEdgeUri;return rn()(t,e,{baseEdgeUri:n})}(t),r=new xe(n.logConfiguration.logger,n.logConfiguration.logLevel);!function(e,t){if(tn()(e.apiKey)){var n="You must configure the client with an SDK key";throw t.error(n),new Error(n)}var r=an();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):i.initializationStateTracker.signalSuccessInit()})).catch((function(e){return i.initializationStateTracker.signalFailedInit(e)})),i},e.prototype.waitForInitialization=function(){return Cp(this,void 0,void 0,(function(){var e=this;return Pp(this,(function(t){return[2,this.initializationStateTracker.getInitializationPromise().then((function(){return e}))]}))}))},e.initializeSdk=function(e){var t,n,r,i;return Cp(this,void 0,void 0,(function(){var o,a,s,u;return Pp(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,!Dl.getClient()&&(null==a?void 0:a.sentryDsn)&&(h=a.sentryDsn,l=void 0,f=void 0,d=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:h,normalizeDepth:6,release:"".concat("js-client-sdk","@").concat(Pl.version),integrations:Al,stackParser:Xc,transport:Uu()?dl:hl},t=new Tl(e),Dl.bindClient(t),[2]}))},new((p=void 0)||(p=Promise))((function(e,t){function n(e){try{i(d.next(e))}catch(e){t(e)}}function r(e){try{i(d.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((d=d.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)===O.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,d,h}))}))},Object.defineProperty(e.prototype,"isCustomerLoaded",{get:function(){var e;return(null===(e=this.entitlementsService)||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){return void 0===t&&(t=null),Cp(this,void 0,void 0,(function(){var n,r=this;return Pp(this,(function(i){switch(i.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,Ss.isString)(e))throw new Error("customerId parameter must be a string");if(t&&!(0,Ss.isString)(t))throw new Error("customerToken parameter must be a string");this.configuration.customerId=e,this.configuration.customerToken=t,this.entitlementsService=new Cs(e,new _s,this.graphClient,this.batchedGraphClient,this.edgeApiClient,this.loggerService,(function(e){return r.eventEmitter.emit("entitlementsUpdated",e)})),this.configuration.useEntitlementPolling&&this.entitlementsService.startPolling(this.configuration.entitlementPollingInterval),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,Nl((function(){return Cp(r,void 0,void 0,(function(){var e;return Pp(this,(function(t){switch(t.label){case 0:return[4,null===(e=this.entitlementsService)||void 0===e?void 0:e.loadEntitlements()];case 1:return t.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 i.sent(),this.initializationStateTracker.signalSuccessInit(),[3,4];case 3:return n=i.sent(),this.initializationStateTracker.signalFailedInit(n),[3,4];case 4:return[2]}}))}))},e.prototype.clearCustomer=function(){var e;null===(e=this.entitlementsService)||void 0===e||e.stopPolling(),this.entitlementsService=null,this.configuration.customerId=null,this.configuration.customerToken=null},e.prototype.refresh=function(){return Cp(this,void 0,void 0,(function(){var e=this;return Pp(this,(function(t){return[2,Nl((function(){return Cp(e,void 0,void 0,(function(){var e;return Pp(this,(function(t){switch(t.label){case 0:return[4,null===(e=this.entitlementsService)||void 0===e?void 0:e.refresh()];case 1:return t.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=(null==i?void 0:i.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[r])||{},a=Tp(Tp({},Ue),o);return xl((function(){return n.entitlementsService&&n.isCustomerLoaded?n.entitlementsService.getBooleanEntitlement(r,a,i):a}),{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}})||a},e.prototype.getNumericEntitlement=function(e){var t,n=this,r=e.featureId,i=e.options,o=(null==i?void 0:i.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[r])||{},a=Tp(Tp({},Me),o);return xl((function(){return n.entitlementsService&&n.isCustomerLoaded?n.entitlementsService.getNumericEntitlement(r,a,i):a}),{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}})||a},e.prototype.getMeteredEntitlement=function(e){var t,n=this,r=e.featureId,i=e.options,o=(null==i?void 0:i.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[r])||{},a=Tp(Tp({},Le),o);return xl((function(){return n.entitlementsService&&n.isCustomerLoaded?n.entitlementsService.getMeteredEntitlement(r,a,i):a}),{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}})||a},e.prototype.getPaywall=function(e){var t=void 0===e?{}:e,n=t.productId,r=t.context,i=t.billingCountryCode;return Cp(this,void 0,void 0,(function(){var e,t=this;return Pp(this,(function(o){return e={productId:n,customerId:this.configuration.customerId,context:r,billingCountryCode:i},[2,Nl((function(){return Cp(t,void 0,void 0,(function(){var t;return Pp(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 Cp(this,void 0,void 0,(function(){var e=this;return Pp(this,(function(t){return[2,Nl((function(){return Cp(e,void 0,void 0,(function(){var e;return Pp(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 Cp(this,void 0,void 0,(function(){var e=this;return Pp(this,(function(t){return[2,Nl((function(){return Cp(e,void 0,void 0,(function(){var e,t,n;return Pp(this,(function(r){switch(r.label){case 0:return e=un(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(){return Cp(this,void 0,void 0,(function(){var e=this;return Pp(this,(function(t){return[2,Nl((function(){return Cp(e,void 0,void 0,(function(){var e;return Pp(this,(function(t){switch(t.label){case 0:return e=un(this.configuration),[4,this.apiGateway.customers.getCustomerPortal(e)];case 1:return[2,t.sent().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 Cp(this,void 0,void 0,(function(){var e=this;return Pp(this,(function(t){switch(t.label){case 0:return[4,Nl((function(){return Cp(e,void 0,void 0,(function(){var e;return Pp(this,(function(t){return un(this.configuration),[2,(null===(e=this.entitlementsService)||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()||gn(this.configuration.entitlementsFallback)]}}))}))},e.prototype.estimateSubscription=function(e){return Cp(this,void 0,void 0,(function(){var t=this;return Pp(this,(function(n){return[2,Nl((function(){return Cp(t,void 0,void 0,(function(){var t;return Pp(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 Cp(this,void 0,void 0,(function(){var t=this;return Pp(this,(function(n){return[2,Nl((function(){return Cp(t,void 0,void 0,(function(){var t;return Pp(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 Cp(this,void 0,void 0,(function(){var e,t,n,i,a,s,u;return Pp(this,(function(c){switch(c.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("checkoutCompleted"),!t)return this.loggerService.log("`waitCheckoutCompleted` was called, but no `subscriptionId` found in query params"),[2,null];if(!n||"false"===n.toLowerCase())return this.loggerService.log("The checkout session was cancelled by the user"),[2,null];i=Date.now(),a=!1,s=null,c.label=1;case 1:return a?[4,new Promise((function(e){return setTimeout(e,1e3)}))]:[3,3];case 2:c.sent(),c.label=3;case 3:return[4,this.getCustomer()];case 4:u=c.sent(),s=u.getActiveSubscriptions().find((function(e){return e.id===t}))||null,a=!0,c.label=5;case 5:if(!s&&Date.now()-i<r)return[3,1];c.label=6;case 6:if(!s)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:c.sent(),c.label=8;case 8:return[2,s]}}))}))},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.u0=t.QZ=t.$V=t.ku=t.Jk=t.p_=t._H=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.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.o5=t.Jy=t.L0=t.XT=t.r4=t.nN=t.mG=t.Xs=t._N=t.OK=t.zj=t.hk=t.Ug=t.J5=t.bO=t.d4=t.Rz=t.cM=t.Eh=t.zd=t.bj=t.bG=t.mc=t.wE=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=void 0,t.T5=t.fF=t.N9=t.Fd=t.pW=t.ro=t.RV=t.Q$=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.cG=t.bI=t.cU=void 0;const r=n(2909);var i,o,a,s,u,c,l,f,p,d,h,v,m,y,g,_,b,E,S,w,I,T,C,P,A,D,O,R,N,x,k,F,U,M,L,j,B,q,V,G,$,z,Q,W,K,Y,H,J,X,Z,ee,te,ne,re,ie,oe,ae,se,ue,ce,le,fe,pe,de,he,ve,me,ye,ge,_e,be,Ee,Se,we;(we=t.fE||(t.fE={})).CustomerNotFound="CustomerNotFound",we.CustomerResourceNotFound="CustomerResourceNotFound",we.FeatureNotFound="FeatureNotFound",we.NoActiveSubscription="NoActiveSubscription",we.NoFeatureEntitlementInSubscription="NoFeatureEntitlementInSubscription",we.RequestedUsageExceedingLimit="RequestedUsageExceedingLimit",we.Unknown="Unknown",(Se=t.dp||(t.dp={})).Active="ACTIVE",Se.Blocked="BLOCKED",(Ee=t.nw||(t.nw={})).BillingId="billingId",Ee.CreatedAt="createdAt",Ee.Description="description",Ee.DisplayName="displayName",Ee.EnvironmentId="environmentId",Ee.Id="id",Ee.IsLatest="isLatest",Ee.PricingType="pricingType",Ee.ProductId="productId",Ee.RefId="refId",Ee.Status="status",Ee.UpdatedAt="updatedAt",Ee.VersionNumber="versionNumber",(be=t.v2||(t.v2={})).Center="CENTER",be.Left="LEFT",be.Right="RIGHT",(t.Mb||(t.Mb={})).Id="id",(_e=t.E3||(t.E3={})).Client="CLIENT",_e.Server="SERVER",(ge=t.PL||(t.PL={})).StartOfTheMonth="START_OF_THE_MONTH",ge.SubscriptionStart="SUBSCRIPTION_START",(ye=t.Fz||(t.Fz={})).FlatFee="FLAT_FEE",ye.PerUnit="PER_UNIT",ye.UsageBased="USAGE_BASED",(me=t.tv||(t.tv={})).Annually="ANNUALLY",me.Monthly="MONTHLY",(ve=t.u4||(t.u4={})).Added="ADDED",ve.Deleted="DELETED",ve.Modified="MODIFIED",ve.Reordered="REORDERED",(he=t.i2||(t.i2={})).BillingId="billingId",he.CreatedAt="createdAt",he.Description="description",he.EnvironmentId="environmentId",he.Id="id",he.Name="name",he.RefId="refId",he.Status="status",he.Type="type",he.UpdatedAt="updatedAt",(de=t.K7||(t.K7={})).Active="ACTIVE",de.Archived="ARCHIVED",(pe=t.$i||(t.$i={})).Fixed="FIXED",pe.Percentage="PERCENTAGE",(fe=t.F||(t.F={})).Aed="AED",fe.All="ALL",fe.Amd="AMD",fe.Ang="ANG",fe.Aud="AUD",fe.Awg="AWG",fe.Azn="AZN",fe.Bam="BAM",fe.Bbd="BBD",fe.Bdt="BDT",fe.Bgn="BGN",fe.Bif="BIF",fe.Bmd="BMD",fe.Bnd="BND",fe.Bsd="BSD",fe.Bwp="BWP",fe.Byn="BYN",fe.Bzd="BZD",fe.Cad="CAD",fe.Cdf="CDF",fe.Chf="CHF",fe.Clp="CLP",fe.Cny="CNY",fe.Czk="CZK",fe.Djf="DJF",fe.Dkk="DKK",fe.Dop="DOP",fe.Dzd="DZD",fe.Egp="EGP",fe.Etb="ETB",fe.Eur="EUR",fe.Fjd="FJD",fe.Gbp="GBP",fe.Gel="GEL",fe.Gip="GIP",fe.Gmd="GMD",fe.Gnf="GNF",fe.Gyd="GYD",fe.Hkd="HKD",fe.Hrk="HRK",fe.Htg="HTG",fe.Idr="IDR",fe.Ils="ILS",fe.Inr="INR",fe.Isk="ISK",fe.Jmd="JMD",fe.Jpy="JPY",fe.Kes="KES",fe.Kgs="KGS",fe.Khr="KHR",fe.Kmf="KMF",fe.Krw="KRW",fe.Kyd="KYD",fe.Kzt="KZT",fe.Lbp="LBP",fe.Lkr="LKR",fe.Lrd="LRD",fe.Lsl="LSL",fe.Mad="MAD",fe.Mdl="MDL",fe.Mga="MGA",fe.Mkd="MKD",fe.Mmk="MMK",fe.Mnt="MNT",fe.Mop="MOP",fe.Mro="MRO",fe.Mvr="MVR",fe.Mwk="MWK",fe.Mxn="MXN",fe.Myr="MYR",fe.Mzn="MZN",fe.Nad="NAD",fe.Ngn="NGN",fe.Nok="NOK",fe.Npr="NPR",fe.Nzd="NZD",fe.Pgk="PGK",fe.Php="PHP",fe.Pkr="PKR",fe.Pln="PLN",fe.Pyg="PYG",fe.Qar="QAR",fe.Ron="RON",fe.Rsd="RSD",fe.Rub="RUB",fe.Rwf="RWF",fe.Sar="SAR",fe.Sbd="SBD",fe.Scr="SCR",fe.Sek="SEK",fe.Sgd="SGD",fe.Sle="SLE",fe.Sll="SLL",fe.Sos="SOS",fe.Szl="SZL",fe.Thb="THB",fe.Tjs="TJS",fe.Top="TOP",fe.Try="TRY",fe.Ttd="TTD",fe.Tzs="TZS",fe.Uah="UAH",fe.Ugx="UGX",fe.Usd="USD",fe.Uzs="UZS",fe.Vnd="VND",fe.Vuv="VUV",fe.Wst="WST",fe.Xaf="XAF",fe.Xcd="XCD",fe.Xof="XOF",fe.Xpf="XPF",fe.Yer="YER",fe.Zar="ZAR",fe.Zmw="ZMW",(le=t.rp||(t.rp={})).BillingId="billingId",le.CreatedAt="createdAt",le.CrmHubspotCompanyId="crmHubspotCompanyId",le.CrmHubspotCompanyUrl="crmHubspotCompanyUrl",le.CrmId="crmId",le.CustomerId="customerId",le.Email="email",le.EnvironmentId="environmentId",le.Id="id",le.Name="name",le.RefId="refId",le.UpdatedAt="updatedAt",(ce=t.Pg||(t.Pg={})).BillingId="billingId",ce.CancelReason="cancelReason",ce.CancellationDate="cancellationDate",ce.CreatedAt="createdAt",ce.CrmId="crmId",ce.CrmLinkUrl="crmLinkUrl",ce.EffectiveEndDate="effectiveEndDate",ce.EndDate="endDate",ce.EnvironmentId="environmentId",ce.Id="id",ce.OldBillingId="oldBillingId",ce.PricingType="pricingType",ce.RefId="refId",ce.StartDate="startDate",ce.Status="status",ce.SubscriptionId="subscriptionId",ce.TrialEndDate="trialEndDate",(ue=t.C2||(t.C2={})).Forever="FOREVER",ue.Once="ONCE",ue.Repeating="REPEATING",(se=t.Lb||(t.Lb={})).Fixed="FIXED",se.Percentage="PERCENTAGE",(ae=t.XH||(t.XH={})).Day="DAY",ae.Hour="HOUR",ae.Month="MONTH",ae.Week="WEEK",(oe=t.FT||(t.FT={})).BlackList="BLACK_LIST",oe.WhiteList="WHITE_LIST",(ie=t.IZ||(t.IZ={})).Done="DONE",ie.Failed="FAILED",ie.InProgress="IN_PROGRESS",ie.NotProvisioned="NOT_PROVISIONED",(re=t.$B||(t.$B={})).CreatedAt="createdAt",re.DisplayName="displayName",re.Id="id",re.Slug="slug",(ne=t.jK||(t.jK={})).AccountNotFoundError="AccountNotFoundError",ne.AddonHasToHavePriceError="AddonHasToHavePriceError",ne.AddonNotFound="AddonNotFound",ne.ArchivedCouponCantBeApplied="ArchivedCouponCantBeApplied",ne.AuthCustomerMismatch="AuthCustomerMismatch",ne.BadUserInput="BadUserInput",ne.BillingPeriodMissingError="BillingPeriodMissingError",ne.CannotDeleteCustomerError="CannotDeleteCustomerError",ne.CannotDeleteFeatureError="CannotDeleteFeatureError",ne.CannotEditPackageInNonDraftMode="CannotEditPackageInNonDraftMode",ne.CheckoutIsNotSupported="CheckoutIsNotSupported",ne.CheckoutOptionsMissing="CheckoutOptionsMissing",ne.CouponNotFound="CouponNotFound",ne.CustomerAlreadyHaveCustomerCoupon="CustomerAlreadyHaveCustomerCoupon",ne.CustomerAlreadyUsesCoupon="CustomerAlreadyUsesCoupon",ne.CustomerHasNoPaymentMethod="CustomerHasNoPaymentMethod",ne.CustomerNoBillingId="CustomerNoBillingId",ne.CustomerNotFound="CustomerNotFound",ne.CustomerResourceNotFound="CustomerResourceNotFound",ne.DowngradeBillingPeriodNotSupportedError="DowngradeBillingPeriodNotSupportedError",ne.DraftPlanCantBeArchived="DraftPlanCantBeArchived",ne.DuplicatedEntityNotAllowed="DuplicatedEntityNotAllowed",ne.EditAllowedOnDraftPackageOnlyError="EditAllowedOnDraftPackageOnlyError",ne.EntitlementsMustBelongToSamePackage="EntitlementsMustBelongToSamePackage",ne.EntityIdDifferentFromRefIdError="EntityIdDifferentFromRefIdError",ne.EnvironmentMissing="EnvironmentMissing",ne.ExperimentAlreadyRunning="ExperimentAlreadyRunning",ne.ExperimentNotFoundError="ExperimentNotFoundError",ne.ExperimentStatusError="ExperimentStatusError",ne.FailedToCreateCheckoutSessionError="FailedToCreateCheckoutSessionError",ne.FailedToImportCustomer="FailedToImportCustomer",ne.FeatureNotFound="FeatureNotFound",ne.FetchAllCountriesPricesNotAllowed="FetchAllCountriesPricesNotAllowed",ne.IdentityForbidden="IdentityForbidden",ne.ImportAlreadyInProgress="ImportAlreadyInProgress",ne.InitStripePaymentMethodError="InitStripePaymentMethodError",ne.IntegrationNotFound="IntegrationNotFound",ne.IntegrityViolation="IntegrityViolation",ne.InvalidAddressError="InvalidAddressError",ne.InvalidArgumentError="InvalidArgumentError",ne.InvalidCancellationDate="InvalidCancellationDate",ne.InvalidEntitlementResetPeriod="InvalidEntitlementResetPeriod",ne.InvalidMemberDelete="InvalidMemberDelete",ne.InvalidQuantity="InvalidQuantity",ne.InvalidSubscriptionStatus="InvalidSubscriptionStatus",ne.InvalidUpdatePriceUnitAmountError="InvalidUpdatePriceUnitAmountError",ne.InvalidUsageValueForIncrementalFeatureError="InvalidUsageValueForIncrementalFeatureError",ne.MemberInvitationError="MemberInvitationError",ne.MemberNotFound="MemberNotFound",ne.MeteringNotAvailableForFeatureType="MeteringNotAvailableForFeatureType",ne.MissingEntityIdError="MissingEntityIdError",ne.NoFeatureEntitlementInSubscription="NoFeatureEntitlementInSubscription",ne.NoProductsAvailable="NoProductsAvailable",ne.OperationNotAllowedDuringInProgressExperiment="OperationNotAllowedDuringInProgressExperiment",ne.PackageAlreadyPublished="PackageAlreadyPublished",ne.PackagePricingTypeNotSet="PackagePricingTypeNotSet",ne.PlanAlreadyExtended="PlanAlreadyExtended",ne.PlanCannotBePublishWhenBasePlanIsDraft="PlanCannotBePublishWhenBasePlanIsDraft",ne.PlanIsUsedAsDefaultStartPlan="PlanIsUsedAsDefaultStartPlan",ne.PlanIsUsedAsDowngradePlan="PlanIsUsedAsDowngradePlan",ne.PlanNotFound="PlanNotFound",ne.PlanWithChildCantBeDeleted="PlanWithChildCantBeDeleted",ne.PlansCircularDependencyError="PlansCircularDependencyError",ne.PriceNotFound="PriceNotFound",ne.PromotionCodeCustomerNotFirstPurchase="PromotionCodeCustomerNotFirstPurchase",ne.PromotionCodeMaxRedemptionsReached="PromotionCodeMaxRedemptionsReached",ne.PromotionCodeMinimumAmountNotReached="PromotionCodeMinimumAmountNotReached",ne.PromotionCodeNotActive="PromotionCodeNotActive",ne.PromotionCodeNotForCustomer="PromotionCodeNotForCustomer",ne.PromotionCodeNotFound="PromotionCodeNotFound",ne.RateLimitExceeded="RateLimitExceeded",ne.ResyncAlreadyInProgress="ResyncAlreadyInProgress",ne.SelectedBillingModelDoesntMatchImportedItemError="SelectedBillingModelDoesntMatchImportedItemError",ne.StripeCustomerIsDeleted="StripeCustomerIsDeleted",ne.SubscriptionAlreadyCanceledOrExpired="SubscriptionAlreadyCanceledOrExpired",ne.SubscriptionMustHaveSinglePlanError="SubscriptionMustHaveSinglePlanError",ne.SubscriptionNotFound="SubscriptionNotFound",ne.TrialMinDateError="TrialMinDateError",ne.TrialMustBeCancelledImmediately="TrialMustBeCancelledImmediately",ne.UnPublishedPackage="UnPublishedPackage",ne.Unauthenticated="Unauthenticated",ne.UncompatibleSubscriptionAddon="UncompatibleSubscriptionAddon",ne.UnexpectedError="UnexpectedError",ne.UnsupportedFeatureType="UnsupportedFeatureType",ne.UnsupportedSubscriptionScheduleType="UnsupportedSubscriptionScheduleType",ne.UnsupportedVendorIdentifier="UnsupportedVendorIdentifier",(te=t.i3||(t.i3={})).AddonCreated="ADDON_CREATED",te.AddonDeleted="ADDON_DELETED",te.AddonUpdated="ADDON_UPDATED",te.CouponArchived="COUPON_ARCHIVED",te.CouponCreated="COUPON_CREATED",te.CouponUpdated="COUPON_UPDATED",te.CreateSubscriptionFailed="CREATE_SUBSCRIPTION_FAILED",te.CustomerCreated="CUSTOMER_CREATED",te.CustomerDeleted="CUSTOMER_DELETED",te.CustomerPaymentFailed="CUSTOMER_PAYMENT_FAILED",te.CustomerUpdated="CUSTOMER_UPDATED",te.EdgeApiDataResync="EDGE_API_DATA_RESYNC",te.EntitlementsUpdated="ENTITLEMENTS_UPDATED",te.EntitlementDenied="ENTITLEMENT_DENIED",te.EntitlementGranted="ENTITLEMENT_GRANTED",te.EntitlementRequested="ENTITLEMENT_REQUESTED",te.EnvironmentDeleted="ENVIRONMENT_DELETED",te.FeatureCreated="FEATURE_CREATED",te.FeatureDeleted="FEATURE_DELETED",te.FeatureUpdated="FEATURE_UPDATED",te.ImportIntegrationCatalogTriggered="IMPORT_INTEGRATION_CATALOG_TRIGGERED",te.ImportIntegrationCustomersTriggered="IMPORT_INTEGRATION_CUSTOMERS_TRIGGERED",te.MeasurementReported="MEASUREMENT_REPORTED",te.PackagePublished="PACKAGE_PUBLISHED",te.PlanCreated="PLAN_CREATED",te.PlanDeleted="PLAN_DELETED",te.PlanUpdated="PLAN_UPDATED",te.ProductCreated="PRODUCT_CREATED",te.ProductDeleted="PRODUCT_DELETED",te.ProductUpdated="PRODUCT_UPDATED",te.PromotionalEntitlementExpired="PROMOTIONAL_ENTITLEMENT_EXPIRED",te.PromotionalEntitlementGranted="PROMOTIONAL_ENTITLEMENT_GRANTED",te.PromotionalEntitlementRevoked="PROMOTIONAL_ENTITLEMENT_REVOKED",te.PromotionalEntitlementUpdated="PROMOTIONAL_ENTITLEMENT_UPDATED",te.ResyncIntegrationTriggered="RESYNC_INTEGRATION_TRIGGERED",te.SubscriptionCanceled="SUBSCRIPTION_CANCELED",te.SubscriptionCreated="SUBSCRIPTION_CREATED",te.SubscriptionExpired="SUBSCRIPTION_EXPIRED",te.SubscriptionTrialConverted="SUBSCRIPTION_TRIAL_CONVERTED",te.SubscriptionTrialEndsSoon="SUBSCRIPTION_TRIAL_ENDS_SOON",te.SubscriptionTrialExpired="SUBSCRIPTION_TRIAL_EXPIRED",te.SubscriptionTrialStarted="SUBSCRIPTION_TRIAL_STARTED",te.SubscriptionUpdated="SUBSCRIPTION_UPDATED",te.SubscriptionUsageUpdated="SUBSCRIPTION_USAGE_UPDATED",te.SyncFailed="SYNC_FAILED",te.WidgetConfigurationUpdated="WIDGET_CONFIGURATION_UPDATED",(ee=t.o_||(t.o_={})).CreatedAt="createdAt",ee.EnvironmentId="environmentId",ee.Id="id",ee.Name="name",ee.ProductId="productId",ee.RefId="refId",ee.Status="status",(Z=t.bW||(t.bW={})).Completed="COMPLETED",Z.Draft="DRAFT",Z.InProgress="IN_PROGRESS",(X=t.GA||(t.GA={})).CreatedAt="createdAt",X.Description="description",X.DisplayName="displayName",X.EnvironmentId="environmentId",X.FeatureStatus="featureStatus",X.FeatureType="featureType",X.Id="id",X.MeterType="meterType",X.RefId="refId",X.UpdatedAt="updatedAt",(J=t.iK||(t.iK={})).Active="ACTIVE",J.New="NEW",J.Suspended="SUSPENDED",(H=t.Te||(t.Te={})).Boolean="BOOLEAN",H.Number="NUMBER",(Y=t.U9||(t.U9={})).Bold="BOLD",Y.Normal="NORMAL",(K=t.uM||(t.uM={})).CreatedAt="createdAt",K.Endpoint="endpoint",K.EnvironmentId="environmentId",K.Id="id",K.Status="status",(W=t.qB||(t.qB={})).Active="ACTIVE",W.Inactive="INACTIVE",(Q=t.B8||(t.B8={})).CreatedAt="createdAt",Q.EnvironmentId="environmentId",Q.Id="id",Q.Status="status",Q.TaskType="taskType",(z=t.Us||(t.Us={})).CreatedAt="createdAt",z.EnvironmentId="environmentId",z.Id="id",z.VendorIdentifier="vendorIdentifier",($=t.Ky||(t.Ky={})).CreatedAt="createdAt",$.Id="id",(G=t.XY||(t.XY={})).Invited="INVITED",G.Registered="REGISTERED",(V=t.pu||(t.pu={})).Fluctuating="Fluctuating",V.Incremental="Incremental",V.None="None",(q=t.pS||(t.pS={})).StartOfTheMonth="StartOfTheMonth",q.SubscriptionStart="SubscriptionStart",(B=t.zv||(t.zv={})).BillingId="billingId",B.CreatedAt="createdAt",B.Description="description",B.DisplayName="displayName",B.EnvironmentId="environmentId",B.Id="id",B.IsLatest="isLatest",B.PricingType="pricingType",B.ProductId="productId",B.RefId="refId",B.Status="status",B.UpdatedAt="updatedAt",B.VersionNumber="versionNumber",(j=t.iI||(t.iI={})).CreatedAt="createdAt",j.EnvironmentId="environmentId",j.Id="id",j.PackageId="packageId",j.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",(F=t._H||(t._H={})).Custom="CUSTOM",F.Free="FREE",F.Paid="PAID",(k=t.p_||(t.p_={})).CreatedAt="createdAt",k.Description="description",k.DisplayName="displayName",k.EnvironmentId="environmentId",k.Id="id",k.IsDefaultProduct="isDefaultProduct",k.RefId="refId",k.UpdatedAt="updatedAt",(x=t.Jk||(t.Jk={})).Custom="CUSTOM",x.Lifetime="LIFETIME",x.OneMonth="ONE_MONTH",x.OneWeek="ONE_WEEK",x.OneYear="ONE_YEAR",x.SixMonth="SIX_MONTH",(N=t.ku||(t.ku={})).CreatedAt="createdAt",N.EnvironmentId="environmentId",N.Id="id",N.Status="status",N.UpdatedAt="updatedAt",(R=t.$V||(t.$V={})).Active="Active",R.Expired="Expired",R.Paused="Paused",(O=t.QZ||(t.QZ={})).CreateProrations="CREATE_PRORATIONS",O.InvoiceImmediately="INVOICE_IMMEDIATELY",(D=t.u0||(t.u0={})).PaymentRequired="PAYMENT_REQUIRED",D.Success="SUCCESS",(A=t.Z||(t.Z={})).AllCustomers="ALL_CUSTOMERS",A.NewCustomers="NEW_CUSTOMERS",(P=t.Sr||(t.Sr={})).Asc="ASC",P.Desc="DESC",(C=t.Xm||(t.Xm={})).NullsFirst="NULLS_FIRST",C.NullsLast="NULLS_LAST",(T=t.PO||(t.PO={})).JsClientSdk="JS_CLIENT_SDK",T.NodeServerSdk="NODE_SERVER_SDK",(I=t.ue||(t.ue={})).CreatedAt="createdAt",I.Id="id",I.Quantity="quantity",I.UpdatedAt="updatedAt",(w=t.w1||(t.w1={})).CancelledByBilling="CancelledByBilling",w.DetachBilling="DetachBilling",w.Expired="Expired",w.Immediate="Immediate",w.PendingPaymentExpired="PendingPaymentExpired",w.ScheduledCancellation="ScheduledCancellation",w.TrialConverted="TrialConverted",w.TrialEnded="TrialEnded",w.UpgradeOrDowngrade="UpgradeOrDowngrade",(S=t.lS||(t.lS={})).EndOfBillingPeriod="END_OF_BILLING_PERIOD",S.Immediate="IMMEDIATE",S.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",(y=t.yB||(t.yB={})).CreatedAt="createdAt",y.Id="id",y.UpdatedAt="updatedAt",y.UsageLimit="usageLimit",(m=t.IF||(t.IF={})).Canceled="Canceled",m.Done="Done",m.Failed="Failed",m.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.wE=r.default`
|
|
3
3
|
fragment PriceFragment on Price {
|
|
4
4
|
billingModel
|
|
5
5
|
billingPeriod
|
|
@@ -15,9 +15,10 @@
|
|
|
15
15
|
featureUnits
|
|
16
16
|
featureUnitsPlural
|
|
17
17
|
displayName
|
|
18
|
+
description
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
|
-
`,t.
|
|
21
|
+
`,t.mc=r.default`
|
|
21
22
|
fragment TotalPriceFragment on CustomerSubscriptionTotalPrice {
|
|
22
23
|
subTotal {
|
|
23
24
|
amount
|
|
@@ -32,6 +33,7 @@
|
|
|
32
33
|
fragment SlimSubscriptionFragment on CustomerSubscription {
|
|
33
34
|
id
|
|
34
35
|
refId
|
|
36
|
+
resourceId
|
|
35
37
|
status
|
|
36
38
|
additionalMetaData
|
|
37
39
|
billingId
|
|
@@ -71,7 +73,18 @@
|
|
|
71
73
|
}
|
|
72
74
|
}
|
|
73
75
|
${t.wE}
|
|
74
|
-
${t.
|
|
76
|
+
${t.mc}`,t.bj=r.default`
|
|
77
|
+
fragment SlimCustomerFragment on Customer {
|
|
78
|
+
id
|
|
79
|
+
name
|
|
80
|
+
email
|
|
81
|
+
createdAt
|
|
82
|
+
updatedAt
|
|
83
|
+
refId
|
|
84
|
+
billingId
|
|
85
|
+
additionalMetaData
|
|
86
|
+
}
|
|
87
|
+
`,t.zd=r.default`
|
|
75
88
|
fragment CouponFragment on Coupon {
|
|
76
89
|
id
|
|
77
90
|
discountValue
|
|
@@ -113,6 +126,19 @@ ${t.N9}`,t.zd=r.default`
|
|
|
113
126
|
refId
|
|
114
127
|
additionalMetaData
|
|
115
128
|
}
|
|
129
|
+
}
|
|
130
|
+
`,t.cM=r.default`
|
|
131
|
+
fragment ProductFragment on Product {
|
|
132
|
+
refId
|
|
133
|
+
displayName
|
|
134
|
+
description
|
|
135
|
+
additionalMetaData
|
|
136
|
+
productSettings {
|
|
137
|
+
downgradePlan {
|
|
138
|
+
refId
|
|
139
|
+
displayName
|
|
140
|
+
}
|
|
141
|
+
}
|
|
116
142
|
}
|
|
117
143
|
`,t.Rz=r.default`
|
|
118
144
|
fragment PackageEntitlementFragment on PackageEntitlement {
|
|
@@ -160,16 +186,7 @@ ${t.wE}`,t.bO=r.default`
|
|
|
160
186
|
billingId
|
|
161
187
|
additionalMetaData
|
|
162
188
|
product {
|
|
163
|
-
|
|
164
|
-
displayName
|
|
165
|
-
description
|
|
166
|
-
additionalMetaData
|
|
167
|
-
productSettings {
|
|
168
|
-
downgradePlan {
|
|
169
|
-
refId
|
|
170
|
-
displayName
|
|
171
|
-
}
|
|
172
|
-
}
|
|
189
|
+
...ProductFragment
|
|
173
190
|
}
|
|
174
191
|
basePlan {
|
|
175
192
|
refId
|
|
@@ -193,7 +210,8 @@ ${t.wE}`,t.bO=r.default`
|
|
|
193
210
|
units
|
|
194
211
|
}
|
|
195
212
|
}
|
|
196
|
-
${t.
|
|
213
|
+
${t.cM}
|
|
214
|
+
${t.Rz}
|
|
197
215
|
${t.d4}
|
|
198
216
|
${t.wE}`,t.J5=r.default`
|
|
199
217
|
fragment SubscriptionScheduledUpdateData on SubscriptionScheduledUpdate {
|
|
@@ -229,6 +247,7 @@ ${t.wE}`,t.J5=r.default`
|
|
|
229
247
|
effectiveEndDate
|
|
230
248
|
status
|
|
231
249
|
refId
|
|
250
|
+
resourceId
|
|
232
251
|
currentBillingPeriodEnd
|
|
233
252
|
additionalMetaData
|
|
234
253
|
billingId
|
|
@@ -264,23 +283,16 @@ ${t.wE}`,t.J5=r.default`
|
|
|
264
283
|
}
|
|
265
284
|
}
|
|
266
285
|
${t.wE}
|
|
267
|
-
${t.
|
|
286
|
+
${t.mc}
|
|
268
287
|
${t.bO}
|
|
269
288
|
${t.d4}
|
|
270
289
|
${t.J5}`,t.hk=r.default`
|
|
271
290
|
fragment CustomerFragment on Customer {
|
|
272
|
-
|
|
273
|
-
name
|
|
274
|
-
email
|
|
275
|
-
createdAt
|
|
276
|
-
updatedAt
|
|
291
|
+
...SlimCustomerFragment
|
|
277
292
|
hasPaymentMethod
|
|
278
|
-
refId
|
|
279
|
-
billingId
|
|
280
293
|
defaultPaymentExpirationMonth
|
|
281
294
|
defaultPaymentExpirationYear
|
|
282
295
|
defaultPaymentMethodLast4Digits
|
|
283
|
-
additionalMetaData
|
|
284
296
|
trialedPlans {
|
|
285
297
|
productId
|
|
286
298
|
productRefId
|
|
@@ -308,7 +320,8 @@ ${t.J5}`,t.hk=r.default`
|
|
|
308
320
|
...SubscriptionFragment
|
|
309
321
|
}
|
|
310
322
|
}
|
|
311
|
-
${t.
|
|
323
|
+
${t.bj}
|
|
324
|
+
${t.zd}
|
|
312
325
|
${t.Eh}
|
|
313
326
|
${t.Ug}`,t.zj=r.default`
|
|
314
327
|
fragment SubscriptionPreviewFragment on SubscriptionPreview {
|
|
@@ -356,57 +369,7 @@ ${t.Ug}`,t.zj=r.default`
|
|
|
356
369
|
}
|
|
357
370
|
}
|
|
358
371
|
}
|
|
359
|
-
`,t.
|
|
360
|
-
fragment MonthlyResetPeriodConfigFragment on MonthlyResetPeriodConfig {
|
|
361
|
-
monthlyAccordingTo
|
|
362
|
-
}
|
|
363
|
-
`,t.L0=r.default`
|
|
364
|
-
fragment WeeklyResetPeriodConfigFragment on WeeklyResetPeriodConfig {
|
|
365
|
-
weeklyAccordingTo
|
|
366
|
-
}
|
|
367
|
-
`,t.Jy=r.default`
|
|
368
|
-
fragment ResetPeriodConfigurationFragment on ResetPeriodConfiguration {
|
|
369
|
-
__typename
|
|
370
|
-
... on MonthlyResetPeriodConfig {
|
|
371
|
-
...MonthlyResetPeriodConfigFragment
|
|
372
|
-
}
|
|
373
|
-
... on WeeklyResetPeriodConfig {
|
|
374
|
-
...WeeklyResetPeriodConfigFragment
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
${t.XT}
|
|
378
|
-
${t.L0}`,t.o5=r.default`
|
|
379
|
-
fragment FeatureFragment on EntitlementFeature {
|
|
380
|
-
featureType
|
|
381
|
-
meterType
|
|
382
|
-
featureUnits
|
|
383
|
-
featureUnitsPlural
|
|
384
|
-
description
|
|
385
|
-
displayName
|
|
386
|
-
refId
|
|
387
|
-
}
|
|
388
|
-
`,t.cU=r.default`
|
|
389
|
-
fragment EntitlementFragment on Entitlement {
|
|
390
|
-
isGranted
|
|
391
|
-
accessDeniedReason
|
|
392
|
-
customerId
|
|
393
|
-
usageLimit
|
|
394
|
-
hasUnlimitedUsage
|
|
395
|
-
currentUsage
|
|
396
|
-
requestedUsage
|
|
397
|
-
entitlementUpdatedAt
|
|
398
|
-
usageUpdatedAt
|
|
399
|
-
nextResetDate
|
|
400
|
-
resetPeriod
|
|
401
|
-
resetPeriodConfiguration {
|
|
402
|
-
...ResetPeriodConfigurationFragment
|
|
403
|
-
}
|
|
404
|
-
feature {
|
|
405
|
-
...FeatureFragment
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
${t.Jy}
|
|
409
|
-
${t.o5}`,t.OK=r.default`
|
|
372
|
+
`,t.OK=r.default`
|
|
410
373
|
fragment PaywallPackageEntitlementFragment on PackageEntitlement {
|
|
411
374
|
usageLimit
|
|
412
375
|
hasUnlimitedUsage
|
|
@@ -447,16 +410,7 @@ ${t.wE}`,r.default`
|
|
|
447
410
|
displayName
|
|
448
411
|
billingId
|
|
449
412
|
product {
|
|
450
|
-
|
|
451
|
-
displayName
|
|
452
|
-
description
|
|
453
|
-
additionalMetaData
|
|
454
|
-
productSettings {
|
|
455
|
-
downgradePlan {
|
|
456
|
-
refId
|
|
457
|
-
displayName
|
|
458
|
-
}
|
|
459
|
-
}
|
|
413
|
+
...ProductFragment
|
|
460
414
|
}
|
|
461
415
|
basePlan {
|
|
462
416
|
refId
|
|
@@ -481,7 +435,8 @@ ${t.wE}`,r.default`
|
|
|
481
435
|
...PaywallAddonFragment
|
|
482
436
|
}
|
|
483
437
|
}
|
|
484
|
-
${t.
|
|
438
|
+
${t.cM}
|
|
439
|
+
${t.OK}
|
|
485
440
|
${t.wE}
|
|
486
441
|
${t._N}`,t.Xs=r.default`
|
|
487
442
|
fragment FontVariantFragment on FontVariant {
|
|
@@ -528,11 +483,80 @@ ${t._N}`,t.Xs=r.default`
|
|
|
528
483
|
}
|
|
529
484
|
}
|
|
530
485
|
${t.mG}
|
|
531
|
-
${t.nN}`,t.
|
|
532
|
-
|
|
486
|
+
${t.nN}`,t.XT=r.default`
|
|
487
|
+
fragment MonthlyResetPeriodConfigFragment on MonthlyResetPeriodConfig {
|
|
488
|
+
monthlyAccordingTo
|
|
489
|
+
}
|
|
490
|
+
`,t.L0=r.default`
|
|
491
|
+
fragment WeeklyResetPeriodConfigFragment on WeeklyResetPeriodConfig {
|
|
492
|
+
weeklyAccordingTo
|
|
493
|
+
}
|
|
494
|
+
`,t.Jy=r.default`
|
|
495
|
+
fragment ResetPeriodConfigurationFragment on ResetPeriodConfiguration {
|
|
496
|
+
__typename
|
|
497
|
+
... on MonthlyResetPeriodConfig {
|
|
498
|
+
...MonthlyResetPeriodConfigFragment
|
|
499
|
+
}
|
|
500
|
+
... on WeeklyResetPeriodConfig {
|
|
501
|
+
...WeeklyResetPeriodConfigFragment
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
${t.XT}
|
|
505
|
+
${t.L0}`,t.o5=r.default`
|
|
506
|
+
fragment FeatureFragment on EntitlementFeature {
|
|
507
|
+
featureType
|
|
508
|
+
meterType
|
|
509
|
+
featureUnits
|
|
510
|
+
featureUnitsPlural
|
|
511
|
+
description
|
|
512
|
+
displayName
|
|
513
|
+
refId
|
|
514
|
+
}
|
|
515
|
+
`,t.cU=r.default`
|
|
516
|
+
fragment EntitlementFragment on Entitlement {
|
|
517
|
+
isGranted
|
|
518
|
+
accessDeniedReason
|
|
519
|
+
customerId
|
|
520
|
+
usageLimit
|
|
521
|
+
hasUnlimitedUsage
|
|
522
|
+
currentUsage
|
|
523
|
+
requestedUsage
|
|
524
|
+
entitlementUpdatedAt
|
|
525
|
+
usageUpdatedAt
|
|
526
|
+
nextResetDate
|
|
527
|
+
resetPeriod
|
|
528
|
+
resetPeriodConfiguration {
|
|
529
|
+
...ResetPeriodConfigurationFragment
|
|
530
|
+
}
|
|
531
|
+
feature {
|
|
532
|
+
...FeatureFragment
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
${t.Jy}
|
|
536
|
+
${t.o5}`,t.bI=r.default`
|
|
537
|
+
fragment EntitlementsUpdatedPayload on EntitlementsUpdated {
|
|
538
|
+
customerId
|
|
539
|
+
entitlements {
|
|
540
|
+
...EntitlementFragment
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
${t.cU}`,t.cG=r.default`
|
|
544
|
+
fragment EntitlementUsageUpdated on UsageUpdated {
|
|
545
|
+
usage {
|
|
546
|
+
customerId
|
|
547
|
+
featureId
|
|
548
|
+
currentUsage
|
|
549
|
+
nextResetDate
|
|
550
|
+
}
|
|
551
|
+
entitlement {
|
|
552
|
+
...EntitlementFragment
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
${t.cU}`,t.q6=r.default`
|
|
556
|
+
mutation ProvisionCustomer($input: ProvisionCustomerInput!) {
|
|
533
557
|
provisionCustomer(input: $input) {
|
|
534
558
|
customer {
|
|
535
|
-
...
|
|
559
|
+
...SlimCustomerFragment
|
|
536
560
|
}
|
|
537
561
|
subscriptionDecisionStrategy
|
|
538
562
|
subscription {
|
|
@@ -540,22 +564,22 @@ ${t.nN}`,t.q6=r.default`
|
|
|
540
564
|
}
|
|
541
565
|
}
|
|
542
566
|
}
|
|
543
|
-
${t.
|
|
567
|
+
${t.bj}
|
|
544
568
|
${t.bG}`,t.$j=r.default`
|
|
545
|
-
mutation
|
|
569
|
+
mutation ImportCustomer($input: ImportCustomerInput!) {
|
|
546
570
|
importCustomer: importOneCustomer(input: $input) {
|
|
547
571
|
...CustomerFragment
|
|
548
572
|
}
|
|
549
573
|
}
|
|
550
574
|
${t.hk}`,t.eK=r.default`
|
|
551
|
-
mutation
|
|
575
|
+
mutation UpdateCustomer($input: UpdateCustomerInput!) {
|
|
552
576
|
updateCustomer: updateOneCustomer(input: $input) {
|
|
553
577
|
...CustomerFragment
|
|
554
578
|
}
|
|
555
579
|
}
|
|
556
580
|
${t.hk}`,t.rD=r.default`
|
|
557
|
-
mutation
|
|
558
|
-
provisionSubscriptionV2(input: $input) {
|
|
581
|
+
mutation ProvisionSubscription($input: ProvisionSubscriptionInput!) {
|
|
582
|
+
provisionSubscription: provisionSubscriptionV2(input: $input) {
|
|
559
583
|
checkoutUrl
|
|
560
584
|
status
|
|
561
585
|
subscription {
|
|
@@ -564,50 +588,69 @@ ${t.bG}`,t.$j=r.default`
|
|
|
564
588
|
}
|
|
565
589
|
}
|
|
566
590
|
${t.bG}`,t.EQ=r.default`
|
|
567
|
-
mutation
|
|
591
|
+
mutation UpdateSubscription($input: UpdateSubscriptionInput!) {
|
|
568
592
|
updateSubscription: updateOneSubscription(input: $input) {
|
|
569
593
|
...SlimSubscriptionFragment
|
|
570
594
|
}
|
|
571
595
|
}
|
|
572
596
|
${t.bG}`,t.x3=r.default`
|
|
573
|
-
mutation
|
|
597
|
+
mutation CancelSubscription($input: SubscriptionCancellationInput!) {
|
|
574
598
|
cancelSubscription(input: $input) {
|
|
575
599
|
...SlimSubscriptionFragment
|
|
576
600
|
}
|
|
577
601
|
}
|
|
578
602
|
${t.bG}`,t.Ai=r.default`
|
|
579
|
-
mutation
|
|
603
|
+
mutation InitiateCheckout($input: InitiateCheckoutInput!) {
|
|
580
604
|
initiateCheckout(input: $input) {
|
|
581
605
|
checkoutUrl
|
|
582
606
|
checkoutBillingId
|
|
583
607
|
}
|
|
584
608
|
}
|
|
585
609
|
`,t.m5=r.default`
|
|
586
|
-
mutation
|
|
610
|
+
mutation EstimateSubscription($input: EstimateSubscriptionInput!) {
|
|
587
611
|
estimateSubscription(input: $input) {
|
|
588
612
|
...SubscriptionPreviewFragment
|
|
589
613
|
}
|
|
590
614
|
}
|
|
591
615
|
${t.zj}`,t.wO=r.default`
|
|
592
|
-
mutation
|
|
616
|
+
mutation EstimateSubscriptionUpdate($input: EstimateSubscriptionUpdateInput!) {
|
|
593
617
|
estimateSubscriptionUpdate(input: $input) {
|
|
594
618
|
...SubscriptionPreviewFragment
|
|
595
619
|
}
|
|
596
620
|
}
|
|
597
|
-
${t.zj}`,t.
|
|
598
|
-
mutation
|
|
621
|
+
${t.zj}`,t.jA=r.default`
|
|
622
|
+
mutation CancelSubscriptionUpdates($input: SubscriptionUpdateScheduleCancellationInput!) {
|
|
623
|
+
cancelSchedule(input: $input)
|
|
624
|
+
}
|
|
625
|
+
`,t.K5=r.default`
|
|
626
|
+
mutation ReportUsage($input: UsageMeasurementCreateInput!) {
|
|
599
627
|
createUsageMeasurement(usageMeasurement: $input) {
|
|
600
628
|
id
|
|
629
|
+
currentUsage
|
|
630
|
+
nextResetDate
|
|
631
|
+
timestamp
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
`,t.JD=r.default`
|
|
635
|
+
mutation ReportEntitlementCheckRequested($entitlementCheckRequested: EntitlementCheckRequested!) {
|
|
636
|
+
reportEntitlementCheckRequested(
|
|
637
|
+
entitlementCheckRequested: $entitlementCheckRequested
|
|
638
|
+
)
|
|
639
|
+
}
|
|
640
|
+
`,t.WJ=r.default`
|
|
641
|
+
mutation CreateSubscription($input: SubscriptionInput!) {
|
|
642
|
+
createSubscription(subscription: $input) {
|
|
643
|
+
...SlimSubscriptionFragment
|
|
601
644
|
}
|
|
602
645
|
}
|
|
603
|
-
`,t.Ze=r.default`
|
|
604
|
-
query
|
|
646
|
+
${t.bG}`,t.Ze=r.default`
|
|
647
|
+
query GetCustomerById($input: GetCustomerByRefIdInput!) {
|
|
605
648
|
getCustomerByRefId(input: $input) {
|
|
606
649
|
...CustomerFragment
|
|
607
650
|
}
|
|
608
651
|
}
|
|
609
652
|
${t.hk}`,t.Q$=r.default`
|
|
610
|
-
query
|
|
653
|
+
query GetCoupons {
|
|
611
654
|
coupons(filter: {status: {eq: ACTIVE}}, paging: {first: 50}) {
|
|
612
655
|
edges {
|
|
613
656
|
node {
|
|
@@ -617,7 +660,7 @@ ${t.bG}`,t.$j=r.default`
|
|
|
617
660
|
}
|
|
618
661
|
}
|
|
619
662
|
${t.zd}`,t.RV=r.default`
|
|
620
|
-
query
|
|
663
|
+
query GetPaywall($input: GetPaywallInput!) {
|
|
621
664
|
paywall(input: $input) {
|
|
622
665
|
plans {
|
|
623
666
|
...PlanFragment
|
|
@@ -633,16 +676,45 @@ ${t.bG}`,t.$j=r.default`
|
|
|
633
676
|
${t.bO}
|
|
634
677
|
${t.r4}
|
|
635
678
|
${t.hk}`,t.ro=r.default`
|
|
636
|
-
query
|
|
679
|
+
query GetEntitlements($query: FetchEntitlementsQuery!) {
|
|
637
680
|
entitlements: cachedEntitlements(query: $query) {
|
|
638
681
|
...EntitlementFragment
|
|
639
682
|
}
|
|
640
683
|
}
|
|
641
684
|
${t.cU}`,t.pW=r.default`
|
|
642
|
-
query
|
|
685
|
+
query GetEntitlement($query: FetchEntitlementQuery!) {
|
|
643
686
|
entitlement(query: $query) {
|
|
644
687
|
...EntitlementFragment
|
|
645
688
|
}
|
|
646
689
|
}
|
|
647
|
-
${t.cU}`},7826:(e,t,n)=>{"use strict";function r(e,t){if(!Boolean(e))throw new Error(t)}n.d(t,{a:()=>r})},5821:(e,t,n)=>{"use strict";function r(e){return i(e,[])}function i(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:i(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),r=e.length-n,o=[];for(let r=0;r<n;++r)o.push(i(e[r],t));return 1===r?o.push("... 1 more item"):r>1&&o.push(`... ${r} more items`),"["+o.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const r=n.map((([e,n])=>e+": "+i(n,t)));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}n.d(t,{X:()=>r})},2380:(e,t,n)=>{"use strict";n.d(t,{Ye:()=>r,WU:()=>i,h8:()=>o,UG:()=>s,ku:()=>u});class r{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class i{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const o={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"]},a=new Set(Object.keys(o));function s(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&a.has(t)}let u;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(u||(u={}))},7392:(e,t,n)=>{"use strict";function r(e){const t=e.split(/\r\n|[\n\r]/g),n=function(e){var t;let n=!0,r=!0,i=0,o=null;for(let t=0;t<e.length;++t)switch(e.charCodeAt(t)){case 13:10===e.charCodeAt(t+1)&&++t;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(let e=1;e<t.length;e++)t[e]=t[e].slice(n);let r=0;for(;r<t.length&&i(t[r]);)++r;let o=t.length;for(;o>r&&i(t[o-1]);)--o;return t.slice(r,o).join("\n")}function i(e){for(const t of e)if(" "!==t&&"\t"!==t)return!1;return!0}function o(e,t=!1){const n=!e.includes("\n"),r=e.startsWith(" ")||e.startsWith("\t"),i=e.endsWith('"'),o=e.endsWith("\\"),a=!n||i||o||t;let s="";return!a||n&&r||(s+="\n"),s+=e,a&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}n.d(t,{W7:()=>r,LZ:()=>o})},7359:(e,t,n)=>{"use strict";let r;n.d(t,{h:()=>r}),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(r||(r={}))},4783:(e,t,n)=>{"use strict";n.d(t,{H:()=>o,T:()=>a});var r=n(5821),i=n(7826);class o{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||(0,i.a)(!1,`Body must be a string. Received: ${(0,r.X)(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,i.a)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,i.a)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function a(e){return e instanceof o}},4147:e=>{"use strict";e.exports=JSON.parse('{"name":"@stigg/js-client-sdk","version":"1.16.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","generate":"graphql-codegen && yarn run fix:lint","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.8.1","axios":"^1.2.2","cross-fetch":"^3.1.4","graphql":"^16.0.1","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","@graphql-codegen/cli":"^2.3.0","@graphql-codegen/fragment-matcher":"^3.2.1","@graphql-codegen/schema-ast":"^2.4.0","@graphql-codegen/typescript":"^2.4.0","@graphql-codegen/typescript-operations":"^2.2.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(1746)})()}));
|
|
690
|
+
${t.cU}`,t.Fd=r.default`
|
|
691
|
+
query GetProducts {
|
|
692
|
+
products(paging: {first: 50}) {
|
|
693
|
+
edges {
|
|
694
|
+
node {
|
|
695
|
+
...ProductFragment
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
${t.cM}`,t.N9=r.default`
|
|
701
|
+
query GetSdkConfiguration {
|
|
702
|
+
sdkConfiguration {
|
|
703
|
+
sentryDsn
|
|
704
|
+
isWidgetWatermarkEnabled
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
`,t.fF=r.default`
|
|
708
|
+
subscription EntitlementsUpdated {
|
|
709
|
+
entitlementsUpdated {
|
|
710
|
+
...EntitlementsUpdatedPayload
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
${t.bI}`,t.T5=r.default`
|
|
714
|
+
subscription UsageUpdated {
|
|
715
|
+
usageUpdated {
|
|
716
|
+
...EntitlementUsageUpdated
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
${t.cG}`},7826:(e,t,n)=>{"use strict";function r(e,t){if(!Boolean(e))throw new Error(t)}n.d(t,{a:()=>r})},5821:(e,t,n)=>{"use strict";function r(e){return i(e,[])}function i(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:i(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),r=e.length-n,o=[];for(let r=0;r<n;++r)o.push(i(e[r],t));return 1===r?o.push("... 1 more item"):r>1&&o.push(`... ${r} more items`),"["+o.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const r=n.map((([e,n])=>e+": "+i(n,t)));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}n.d(t,{X:()=>r})},2380:(e,t,n)=>{"use strict";n.d(t,{Ye:()=>r,WU:()=>i,h8:()=>o,UG:()=>s,ku:()=>u});class r{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class i{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const o={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"]},a=new Set(Object.keys(o));function s(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&a.has(t)}let u;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(u||(u={}))},7392:(e,t,n)=>{"use strict";function r(e){const t=e.split(/\r\n|[\n\r]/g),n=function(e){var t;let n=!0,r=!0,i=0,o=null;for(let t=0;t<e.length;++t)switch(e.charCodeAt(t)){case 13:10===e.charCodeAt(t+1)&&++t;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(let e=1;e<t.length;e++)t[e]=t[e].slice(n);let r=0;for(;r<t.length&&i(t[r]);)++r;let o=t.length;for(;o>r&&i(t[o-1]);)--o;return t.slice(r,o).join("\n")}function i(e){for(const t of e)if(" "!==t&&"\t"!==t)return!1;return!0}function o(e,t=!1){const n=!e.includes("\n"),r=e.startsWith(" ")||e.startsWith("\t"),i=e.endsWith('"'),o=e.endsWith("\\"),a=!n||i||o||t;let s="";return!a||n&&r||(s+="\n"),s+=e,a&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}n.d(t,{W7:()=>r,LZ:()=>o})},7359:(e,t,n)=>{"use strict";let r;n.d(t,{h:()=>r}),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(r||(r={}))},4783:(e,t,n)=>{"use strict";n.d(t,{H:()=>o,T:()=>a});var r=n(5821),i=n(7826);class o{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||(0,i.a)(!1,`Body must be a string. Received: ${(0,r.X)(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,i.a)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,i.a)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function a(e){return e instanceof o}},4147:e=>{"use strict";e.exports=JSON.parse('{"name":"@stigg/js-client-sdk","version":"1.18.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","generate":"graphql-codegen && yarn run fix:lint","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.360.0","axios":"^1.2.2","cross-fetch":"^3.1.4","graphql":"^16.0.1","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","@graphql-codegen/cli":"^2.3.0","@graphql-codegen/fragment-matcher":"^3.2.1","@graphql-codegen/schema-ast":"^2.4.0","@graphql-codegen/typescript":"^2.4.0","@graphql-codegen/typescript-operations":"^2.2.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(1746)})()}));
|
|
648
720
|
//# sourceMappingURL=index.js.map
|