@photonhealth/elements 0.0.97 → 0.0.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ ${n.innerHTML}
4
4
  ${e}. Is your HTML properly formed?`;let i=n.content.firstChild;return r&&(i=i.firstChild),i}function Ia(e,t=window.document){const r=t[gb]||(t[gb]=new Set);for(let n=0,i=e.length;n<i;n++){const o=e[n];r.has(o)||(r.add(o),t.addEventListener(o,MO))}}function RO(e,t,r){r==null?e.removeAttribute(t):e.setAttribute(t,r)}function Nu(e,t){t==null?e.removeAttribute("class"):e.className=t}function FO(e,t,r={}){const n=Object.keys(t||{}),i=Object.keys(r);let o,a;for(o=0,a=i.length;o<a;o++){const s=i[o];!s||s==="undefined"||t[s]||(bb(e,s,!1),delete r[s])}for(o=0,a=n.length;o<a;o++){const s=n[o],l=!!t[s];!s||s==="undefined"||r[s]===l||!l||(bb(e,s,!0),r[s]=l)}return r}function LO(e,t,r){if(!t)return r?RO(e,"style"):t;const n=e.style;if(typeof t=="string")return n.cssText=t;typeof r=="string"&&(n.cssText=r=void 0),r||(r={}),t||(t={});let i,o;for(o in r)t[o]==null&&n.removeProperty(o),delete r[o];for(o in t)i=t[o],i!==r[o]&&(n.setProperty(o,i),r[o]=i);return r}function se(e,t,r){return B(()=>e(t,r))}function E(e,t,r,n){if(r!==void 0&&!n&&(n=[]),typeof t!="function")return Au(e,t,n,r);G(i=>Au(e,t(),i,r),n)}function bb(e,t,r){const n=t.trim().split(/\s+/);for(let i=0,o=n.length;i<o;i++)e.classList.toggle(n[i],r)}function MO(e){const t=`$$${e.type}`;let r=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==r&&Object.defineProperty(e,"target",{configurable:!0,value:r}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return r||document}}),an.registry&&!an.done&&(an.done=_$HY.done=!0);r;){const n=r[t];if(n&&!r.disabled){const i=r[`${t}Data`];if(i!==void 0?n.call(r,i,e):n.call(r,e),e.cancelBubble)return}r=r._$host||r.parentNode||r.host}}function Au(e,t,r,n,i){if(an.context){!r&&(r=[...e.childNodes]);let s=[];for(let l=0;l<r.length;l++){const c=r[l];c.nodeType===8&&c.data==="!"?c.remove():s.push(c)}r=s}for(;typeof r=="function";)r=r();if(t===r)return r;const o=typeof t,a=n!==void 0;if(e=a&&r[0]&&r[0].parentNode||e,o==="string"||o==="number"){if(an.context)return r;if(o==="number"&&(t=t.toString()),a){let s=r[0];s&&s.nodeType===3?s.data=t:s=document.createTextNode(t),r=xo(e,r,n,s)}else r!==""&&typeof r=="string"?r=e.firstChild.data=t:r=e.textContent=t}else if(t==null||o==="boolean"){if(an.context)return r;r=xo(e,r,n)}else{if(o==="function")return G(()=>{let s=t();for(;typeof s=="function";)s=s();r=Au(e,s,r,n)}),()=>r;if(Array.isArray(t)){const s=[],l=r&&Array.isArray(r);if(Hp(s,t,r,i))return G(()=>r=Au(e,s,r,n,!0)),()=>r;if(an.context){if(!s.length)return r;for(let c=0;c<s.length;c++)if(s[c].parentNode)return r=s}if(s.length===0){if(r=xo(e,r,n),a)return r}else l?r.length===0?$b(e,s,n):DO(e,r,s):(r&&xo(e),$b(e,s));r=s}else if(t instanceof Node){if(an.context&&t.parentNode)return r=a?[t]:t;if(Array.isArray(r)){if(a)return r=xo(e,r,n,t);xo(e,r,null,t)}else r==null||r===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);r=t}else console.warn("Unrecognized value. Skipped inserting",t)}return r}function Hp(e,t,r,n){let i=!1;for(let o=0,a=t.length;o<a;o++){let s=t[o],l=r&&r[o];if(s instanceof Node)e.push(s);else if(!(s==null||s===!0||s===!1))if(Array.isArray(s))i=Hp(e,s,l)||i;else if(typeof s=="function")if(n){for(;typeof s=="function";)s=s();i=Hp(e,Array.isArray(s)?s:[s],Array.isArray(l)?l:[l])||i}else e.push(s),i=!0;else{const c=String(s);l&&l.nodeType===3?(l.data=c,e.push(l)):e.push(document.createTextNode(c))}}return i}function $b(e,t,r=null){for(let n=0,i=t.length;n<i;n++)e.insertBefore(t[n],r)}function xo(e,t,r,n){if(r===void 0)return e.textContent="";const i=n||document.createTextNode("");if(t.length){let o=!1;for(let a=t.length-1;a>=0;a--){const s=t[a];if(i!==s){const l=s.parentNode===e;!o&&!a?l?e.replaceChild(i,s):e.insertBefore(i,r):l&&s.remove()}else o=!0}}else e.insertBefore(i,r);return[i]}function jO(e){return Object.keys(e).reduce((r,n)=>{const i=e[n];return r[n]=Object.assign({},i),Hx(i.value)&&!qO(i.value)&&!Array.isArray(i.value)&&(r[n].value=Object.assign({},i.value)),Array.isArray(i.value)&&(r[n].value=i.value.slice(0)),r},{})}function VO(e){return e?Object.keys(e).reduce((r,n)=>{const i=e[n];return r[n]=Hx(i)&&"value"in i?i:{value:i},r[n].attribute||(r[n].attribute=BO(n)),r[n].parse="parse"in r[n]?r[n].parse:typeof r[n].value!="string",r},{}):{}}function zO(e){return Object.keys(e).reduce((r,n)=>(r[n]=e[n].value,r),{})}function UO(e,t){const r=jO(t);return Object.keys(t).forEach(i=>{const o=r[i],a=e.getAttribute(o.attribute),s=e[i];a&&(o.value=o.parse?Wx(a):a),s!=null&&(o.value=Array.isArray(s)?s.slice(0):s),o.reflect&&wb(e,o.attribute,o.value),Object.defineProperty(e,i,{get(){return o.value},set(l){const c=o.value;o.value=l,o.reflect&&wb(this,o.attribute,o.value);for(let u=0,d=this.__propertyChangedCallbacks.length;u<d;u++)this.__propertyChangedCallbacks[u](i,l,c)},enumerable:!0,configurable:!0})}),r}function Wx(e){if(!!e)try{return JSON.parse(e)}catch{return e}}function wb(e,t,r){if(r==null||r===!1)return e.removeAttribute(t);let n=JSON.stringify(r);e.__updating[t]=!0,n==="true"&&(n=""),e.setAttribute(t,n),Promise.resolve().then(()=>delete e.__updating[t])}function BO(e){return e.replace(/\.?([A-Z]+)/g,(t,r)=>"-"+r.toLowerCase()).replace("_","-").replace(/^-/,"")}function Hx(e){return e!=null&&(typeof e=="object"||typeof e=="function")}function qO(e){return Object.prototype.toString.call(e)==="[object Function]"}function WO(e){return typeof e=="function"&&e.toString().indexOf("class")===0}let ah;function HO(e,t){const r=Object.keys(t);return class extends e{static get observedAttributes(){return r.map(i=>t[i].attribute)}constructor(){super(),this.__initialized=!1,this.__released=!1,this.__releaseCallbacks=[],this.__propertyChangedCallbacks=[],this.__updating={},this.props={}}connectedCallback(){if(this.__initialized)return;this.__releaseCallbacks=[],this.__propertyChangedCallbacks=[],this.__updating={},this.props=UO(this,t);const i=zO(this.props),o=this.Component,a=ah;try{ah=this,this.__initialized=!0,WO(o)?new o(i,{element:this}):o(i,{element:this})}finally{ah=a}}async disconnectedCallback(){if(await Promise.resolve(),this.isConnected)return;this.__propertyChangedCallbacks.length=0;let i=null;for(;i=this.__releaseCallbacks.pop();)i(this);delete this.__initialized,this.__released=!0}attributeChangedCallback(i,o,a){if(!!this.__initialized&&!this.__updating[i]&&(i=this.lookupProp(i),i in t)){if(a==null&&!this[i])return;this[i]=t[i].parse?Wx(a):a}}lookupProp(i){if(!!t)return r.find(o=>i===o||i===t[o].attribute)}get renderRoot(){return this.shadowRoot||this.attachShadow({mode:"open"})}addReleaseCallback(i){this.__releaseCallbacks.push(i)}addPropertyChangedCallback(i){this.__propertyChangedCallbacks.push(i)}}}function GO(e,t={},r={}){const{BaseElement:n=HTMLElement,extension:i}=r;return o=>{if(!e)throw new Error("tag is required to register a Component");let a=customElements.get(e);return a?(a.prototype.Component=o,a):(a=HO(n,VO(t)),a.prototype.Component=o,a.prototype.registeredTag=e,customElements.define(e,a,i),a)}}function QO(e){const t=Object.keys(e),r={};for(let n=0;n<t.length;n++){const[i,o]=L(e[t[n]]);Object.defineProperty(r,t[n],{get:i,set(a){o(()=>a)}})}return r}function KO(e){if(e.assignedSlot&&e.assignedSlot._$owner)return e.assignedSlot._$owner;let t=e.parentNode;for(;t&&!t._$owner&&!(t.assignedSlot&&t.assignedSlot._$owner);)t=t.parentNode;return t&&t.assignedSlot?t.assignedSlot._$owner:e._$owner}function YO(e){return(t,r)=>{const{element:n}=r;return $c(i=>{const o=QO(t);n.addPropertyChangedCallback((s,l)=>o[s]=l),n.addReleaseCallback(()=>{n.renderRoot.textContent="",i()});const a=e(o,r);return E(n.renderRoot,a)},KO(n))}}function Pe(e,t,r){return arguments.length===2&&(r=t,t={}),GO(e,t)(YO(r))}const Ps={};function XO(e){Ps.context=e}const JO=(e,t)=>e===t,no=Symbol("solid-proxy"),_b=Symbol("solid-track"),Du={equals:JO};let Gx=Zx;const Ii=1,Ru=2,ZO={owned:null,cleanups:null,context:null,owner:null};var Hr=null;let Yi=null,Nt=null,Kt=null,Dn=null,pf=0;function Qx(e,t){t=t?Object.assign({},Du,t):Du;const r={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},n=i=>(typeof i=="function"&&(i=i(r.value)),Jx(r,i));return[Xx.bind(r),n]}function e8(e,t,r){const n=py(e,t,!1,Ii);ml(n)}function xb(e,t,r){Gx=s8;const n=py(e,t,!1,Ii);n.user=!0,Dn?Dn.push(n):ml(n)}function Eb(e,t,r){r=r?Object.assign({},Du,r):Du;const n=py(e,t,!0,0);return n.observers=null,n.observerSlots=null,n.comparator=r.equals||void 0,ml(n),Xx.bind(n)}function t8(e){return yl(e,!1)}function Kx(e){if(Nt===null)return e();const t=Nt;Nt=null;try{return e()}finally{Nt=t}}function Yx(){return Nt}function r8(e,t){const r=Symbol("context");return{id:r,Provider:c8(r),defaultValue:e}}function n8(e){let t;return(t=r4(Hr,e.id))!==void 0?t:e.defaultValue}function i8(e){const t=Eb(e),r=Eb(()=>Gp(t()));return r.toArray=()=>{const n=r();return Array.isArray(n)?n:n!=null?[n]:[]},r}function Xx(){const e=Yi;if(this.sources&&(this.state||e))if(this.state===Ii||e)ml(this);else{const t=Kt;Kt=null,yl(()=>Lu(this),!1),Kt=t}if(Nt){const t=this.observers?this.observers.length:0;Nt.sources?(Nt.sources.push(this),Nt.sourceSlots.push(t)):(Nt.sources=[this],Nt.sourceSlots=[t]),this.observers?(this.observers.push(Nt),this.observerSlots.push(Nt.sources.length-1)):(this.observers=[Nt],this.observerSlots=[Nt.sources.length-1])}return this.value}function Jx(e,t,r){let n=e.value;return(!e.comparator||!e.comparator(n,t))&&(e.value=t,e.observers&&e.observers.length&&yl(()=>{for(let i=0;i<e.observers.length;i+=1){const o=e.observers[i],a=Yi&&Yi.running;a&&Yi.disposed.has(o),(a&&!o.tState||!a&&!o.state)&&(o.pure?Kt.push(o):Dn.push(o),o.observers&&e4(o)),a||(o.state=Ii)}if(Kt.length>1e6)throw Kt=[],new Error},!1)),t}function ml(e){if(!e.fn)return;vy(e);const t=Hr,r=Nt,n=pf;Nt=Hr=e,o8(e,e.value,n),Nt=r,Hr=t}function o8(e,t,r){let n;try{n=e.fn(t)}catch(i){return e.pure&&(e.state=Ii,e.owned&&e.owned.forEach(vy),e.owned=null),e.updatedAt=r+1,t4(i)}(!e.updatedAt||e.updatedAt<=r)&&(e.updatedAt!=null&&"observers"in e?Jx(e,n):e.value=n,e.updatedAt=r)}function py(e,t,r,n=Ii,i){const o={fn:e,state:n,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Hr,context:null,pure:r};return Hr===null||Hr!==ZO&&(Hr.owned?Hr.owned.push(o):Hr.owned=[o]),o}function Fu(e){const t=Yi;if(e.state===0||t)return;if(e.state===Ru||t)return Lu(e);if(e.suspense&&Kx(e.suspense.inFallback))return e.suspense.effects.push(e);const r=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<pf);)(e.state||t)&&r.push(e);for(let n=r.length-1;n>=0;n--)if(e=r[n],e.state===Ii||t)ml(e);else if(e.state===Ru||t){const i=Kt;Kt=null,yl(()=>Lu(e,r[0]),!1),Kt=i}}function yl(e,t){if(Kt)return e();let r=!1;t||(Kt=[]),Dn?r=!0:Dn=[],pf++;try{const n=e();return a8(r),n}catch(n){r||(Dn=null),Kt=null,t4(n)}}function a8(e){if(Kt&&(Zx(Kt),Kt=null),e)return;const t=Dn;Dn=null,t.length&&yl(()=>Gx(t),!1)}function Zx(e){for(let t=0;t<e.length;t++)Fu(e[t])}function s8(e){let t,r=0;for(t=0;t<e.length;t++){const n=e[t];n.user?e[r++]=n:Fu(n)}for(Ps.context&&XO(),t=0;t<r;t++)Fu(e[t])}function Lu(e,t){const r=Yi;e.state=0;for(let n=0;n<e.sources.length;n+=1){const i=e.sources[n];i.sources&&(i.state===Ii||r?i!==t&&(!i.updatedAt||i.updatedAt<pf)&&Fu(i):(i.state===Ru||r)&&Lu(i,t))}}function e4(e){const t=Yi;for(let r=0;r<e.observers.length;r+=1){const n=e.observers[r];(!n.state||t)&&(n.state=Ru,n.pure?Kt.push(n):Dn.push(n),n.observers&&e4(n))}}function vy(e){let t;if(e.sources)for(;e.sources.length;){const r=e.sources.pop(),n=e.sourceSlots.pop(),i=r.observers;if(i&&i.length){const o=i.pop(),a=r.observerSlots.pop();n<i.length&&(o.sourceSlots[a]=n,i[n]=o,r.observerSlots[n]=a)}}if(e.owned){for(t=0;t<e.owned.length;t++)vy(e.owned[t]);e.owned=null}if(e.cleanups){for(t=0;t<e.cleanups.length;t++)e.cleanups[t]();e.cleanups=null}e.state=0,e.context=null}function l8(e){return e instanceof Error||typeof e=="string"?e:new Error("Unknown error")}function t4(e){throw e=l8(e),e}function r4(e,t){return e?e.context&&e.context[t]!==void 0?e.context[t]:r4(e.owner,t):void 0}function Gp(e){if(typeof e=="function"&&!e.length)return Gp(e());if(Array.isArray(e)){const t=[];for(let r=0;r<e.length;r++){const n=Gp(e[r]);Array.isArray(n)?t.push.apply(t,n):t.push(n)}return t}return e}function c8(e,t){return function(r){let n;return e8(()=>n=Kx(()=>(Hr.context={[e]:r.value},i8(()=>r.children))),void 0),n}}const Sb="_$DX_DELEGATE";function u8(e,t,r){const n=document.createElement("template");if(n.innerHTML=e,t&&n.innerHTML.split("<").length-1!==t)throw`The browser resolved template HTML does not match JSX input:
5
5
  ${n.innerHTML}
6
6
 
7
- ${e}. Is your HTML properly formed?`;let i=n.content.firstChild;return r&&(i=i.firstChild),i}function n4(e,t=window.document){const r=t[Sb]||(t[Sb]=new Set);for(let n=0,i=e.length;n<i;n++){const o=e[n];r.has(o)||(r.add(o),t.addEventListener(o,d8))}}function d8(e){const t=`$$${e.type}`;let r=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==r&&Object.defineProperty(e,"target",{configurable:!0,value:r}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return r||document}}),Ps.registry&&!Ps.done&&(Ps.done=_$HY.done=!0);r;){const n=r[t];if(n&&!r.disabled){const i=r[`${t}Data`];if(i!==void 0?n.call(r,i,e):n.call(r,e),e.cancelBubble)return}r=r._$host||r.parentNode||r.host}}n4(["click"]);var Qp=function(e,t){return Qp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Qp(e,t)};function Zr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Qp(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var M=function(){return M=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},M.apply(this,arguments)};function aa(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function f8(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(u){try{c(n.next(u))}catch(d){a(d)}}function l(u){try{c(n.throw(u))}catch(d){a(d)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})}function h8(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(u){c=[6,u],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Mu(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var Kp=function(e,t){return Kp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Kp(e,t)};function yo(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Kp(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var dn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function my(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Na(e,t){return e(t={exports:{}},t.exports),t.exports}var Gn,wc,Vl=function(e){return e&&e.Math==Math&&e},me=Vl(typeof globalThis=="object"&&globalThis)||Vl(typeof window=="object"&&window)||Vl(typeof self=="object"&&self)||Vl(typeof dn=="object"&&dn)||function(){return this}()||Function("return this")(),Ge=function(e){try{return!!e()}catch{return!0}},Fe=!Ge(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),gl=!Ge(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),zl=Function.prototype.call,rr=gl?zl.bind(zl):function(){return zl.apply(zl,arguments)},Ob={}.propertyIsEnumerable,kb=Object.getOwnPropertyDescriptor,p8=kb&&!Ob.call({1:2},1)?function(e){var t=kb(this,e);return!!t&&t.enumerable}:Ob,yy={f:p8},io=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},i4=Function,o4=i4.prototype,v8=o4.bind,Yp=o4.call,m8=gl&&v8.bind(Yp,Yp),we=function(e){return e instanceof i4?gl?m8(e):function(){return Yp.apply(e,arguments)}:void 0},y8=we({}.toString),g8=we("".slice),Rn=function(e){return g8(y8(e),8,-1)},sh=Object,b8=we("".split),a4=Ge(function(){return!sh("z").propertyIsEnumerable(0)})?function(e){return Rn(e)=="String"?b8(e,""):sh(e)}:sh,Aa=function(e){return e==null},$8=TypeError,bl=function(e){if(Aa(e))throw $8("Can't call method on "+e);return e},xn=function(e){return a4(bl(e))},lh=typeof document=="object"&&document.all,vf={all:lh,IS_HTMLDDA:lh===void 0&&lh!==void 0},w8=vf.all,Ue=vf.IS_HTMLDDA?function(e){return typeof e=="function"||e===w8}:function(e){return typeof e=="function"},_8=vf.all,Ze=vf.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:Ue(e)||e===_8}:function(e){return typeof e=="object"?e!==null:Ue(e)},x8=function(e){return Ue(e)?e:void 0},en=function(e,t){return arguments.length<2?x8(me[e]):me[e]&&me[e][t]},oo=we({}.isPrototypeOf),ch=en("navigator","userAgent")||"",Cb=me.process,Tb=me.Deno,Pb=Cb&&Cb.versions||Tb&&Tb.version,Ib=Pb&&Pb.v8;Ib&&(wc=(Gn=Ib.split("."))[0]>0&&Gn[0]<4?1:+(Gn[0]+Gn[1])),!wc&&ch&&(!(Gn=ch.match(/Edge\/(\d+)/))||Gn[1]>=74)&&(Gn=ch.match(/Chrome\/(\d+)/))&&(wc=+Gn[1]);var ju=wc,Tr=!!Object.getOwnPropertySymbols&&!Ge(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ju&&ju<41}),gy=Tr&&!Symbol.sham&&typeof Symbol.iterator=="symbol",E8=Object,sa=gy?function(e){return typeof e=="symbol"}:function(e){var t=en("Symbol");return Ue(t)&&oo(t.prototype,E8(e))},S8=String,Da=function(e){try{return S8(e)}catch{return"Object"}},O8=TypeError,by=function(e){if(Ue(e))return e;throw O8(Da(e)+" is not a function")},Vu=function(e,t){var r=e[t];return Aa(r)?void 0:by(r)},k8=TypeError,C8=Object.defineProperty,$y=function(e,t){try{C8(me,e,{value:t,configurable:!0,writable:!0})}catch{me[e]=t}return t},di=me["__core-js_shared__"]||$y("__core-js_shared__",{}),Ni=Na(function(e){(e.exports=function(t,r){return di[t]||(di[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.25.4",mode:"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.4/LICENSE",source:"https://github.com/zloirock/core-js"})}),T8=Object,Ra=function(e){return T8(bl(e))},P8=we({}.hasOwnProperty),oe=Object.hasOwn||function(e,t){return P8(Ra(e),t)},I8=0,N8=Math.random(),A8=we(1 .toString),la=function(e){return"Symbol("+(e===void 0?"":e)+")_"+A8(++I8+N8,36)},Za=Ni("wks"),Xi=me.Symbol,Nb=Xi&&Xi.for,D8=gy?Xi:Xi&&Xi.withoutSetter||la,gt=function(e){if(!oe(Za,e)||!Tr&&typeof Za[e]!="string"){var t="Symbol."+e;Tr&&oe(Xi,e)?Za[e]=Xi[e]:Za[e]=gy&&Nb?Nb(t):D8(t)}return Za[e]},R8=TypeError,F8=gt("toPrimitive"),L8=function(e,t){if(!Ze(e)||sa(e))return e;var r,n=Vu(e,F8);if(n){if(t===void 0&&(t="default"),r=rr(n,e,t),!Ze(r)||sa(r))return r;throw R8("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,s;if(o==="string"&&Ue(a=i.toString)&&!Ze(s=rr(a,i))||Ue(a=i.valueOf)&&!Ze(s=rr(a,i))||o!=="string"&&Ue(a=i.toString)&&!Ze(s=rr(a,i)))return s;throw k8("Can't convert object to primitive value")}(e,t)},ao=function(e){var t=L8(e,"string");return sa(t)?t:t+""},Xp=me.document,M8=Ze(Xp)&&Ze(Xp.createElement),s4=function(e){return M8?Xp.createElement(e):{}},l4=!Fe&&!Ge(function(){return Object.defineProperty(s4("div"),"a",{get:function(){return 7}}).a!=7}),Ab=Object.getOwnPropertyDescriptor,$l={f:Fe?Ab:function(e,t){if(e=xn(e),t=ao(t),l4)try{return Ab(e,t)}catch{}if(oe(e,t))return io(!rr(yy.f,e,t),e[t])}},c4=Fe&&Ge(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),j8=String,V8=TypeError,Lt=function(e){if(Ze(e))return e;throw V8(j8(e)+" is not an object")},z8=TypeError,uh=Object.defineProperty,U8=Object.getOwnPropertyDescriptor,Xt={f:Fe?c4?function(e,t,r){if(Lt(e),t=ao(t),Lt(r),typeof e=="function"&&t==="prototype"&&"value"in r&&"writable"in r&&!r.writable){var n=U8(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return uh(e,t,r)}:uh:function(e,t,r){if(Lt(e),t=ao(t),Lt(r),l4)try{return uh(e,t,r)}catch{}if("get"in r||"set"in r)throw z8("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},mf=Fe?function(e,t,r){return Xt.f(e,t,io(1,r))}:function(e,t,r){return e[t]=r,e},u4=Function.prototype,B8=Fe&&Object.getOwnPropertyDescriptor,dh=oe(u4,"name"),wy={EXISTS:dh,PROPER:dh&&function(){}.name==="something",CONFIGURABLE:dh&&(!Fe||Fe&&B8(u4,"name").configurable)},q8=we(Function.toString);Ue(di.inspectSource)||(di.inspectSource=function(e){return q8(e)});var zu,Is,Uu,d4=di.inspectSource,Db=me.WeakMap,W8=Ue(Db)&&/native code/.test(String(Db)),Rb=Ni("keys"),yf=function(e){return Rb[e]||(Rb[e]=la(e))},Fa={},Jp=me.TypeError,H8=me.WeakMap;if(W8||di.state){var Ri=di.state||(di.state=new H8),G8=we(Ri.get),Fb=we(Ri.has),Q8=we(Ri.set);zu=function(e,t){if(Fb(Ri,e))throw Jp("Object already initialized");return t.facade=e,Q8(Ri,e,t),t},Is=function(e){return G8(Ri,e)||{}},Uu=function(e){return Fb(Ri,e)}}else{var Eo=yf("state");Fa[Eo]=!0,zu=function(e,t){if(oe(e,Eo))throw Jp("Object already initialized");return t.facade=e,mf(e,Eo,t),t},Is=function(e){return oe(e,Eo)?e[Eo]:{}},Uu=function(e){return oe(e,Eo)}}var Fr={set:zu,get:Is,has:Uu,enforce:function(e){return Uu(e)?Is(e):zu(e,{})},getterFor:function(e){return function(t){var r;if(!Ze(t)||(r=Is(t)).type!==e)throw Jp("Incompatible receiver, "+e+" required");return r}}},K8=Na(function(e){var t=wy.CONFIGURABLE,r=Fr.enforce,n=Fr.get,i=Object.defineProperty,o=Fe&&!Ge(function(){return i(function(){},"length",{value:8}).length!==8}),a=String(String).split("String"),s=e.exports=function(l,c,u){String(c).slice(0,7)==="Symbol("&&(c="["+String(c).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),u&&u.getter&&(c="get "+c),u&&u.setter&&(c="set "+c),(!oe(l,"name")||t&&l.name!==c)&&(Fe?i(l,"name",{value:c,configurable:!0}):l.name=c),o&&u&&oe(u,"arity")&&l.length!==u.arity&&i(l,"length",{value:u.arity});try{u&&oe(u,"constructor")&&u.constructor?Fe&&i(l,"prototype",{writable:!1}):l.prototype&&(l.prototype=void 0)}catch{}var d=r(l);return oe(d,"source")||(d.source=a.join(typeof c=="string"?c:"")),l};Function.prototype.toString=s(function(){return Ue(this)&&n(this).source||d4(this)},"toString")}),or=function(e,t,r,n){n||(n={});var i=n.enumerable,o=n.name!==void 0?n.name:t;if(Ue(r)&&K8(r,o,n),n.global)i?e[t]=r:$y(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch{}i?e[t]=r:Xt.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},Y8=Math.ceil,X8=Math.floor,J8=Math.trunc||function(e){var t=+e;return(t>0?X8:Y8)(t)},_y=function(e){var t=+e;return t!=t||t===0?0:J8(t)},Z8=Math.max,ek=Math.min,Zp=function(e,t){var r=_y(e);return r<0?Z8(r+t,0):ek(r,t)},tk=Math.min,f4=function(e){return e>0?tk(_y(e),9007199254740991):0},La=function(e){return f4(e.length)},Lb=function(e){return function(t,r,n){var i,o=xn(t),a=La(o),s=Zp(n,a);if(e&&r!=r){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===r)return e||s||0;return!e&&-1}},h4={includes:Lb(!0),indexOf:Lb(!1)},rk=h4.indexOf,Mb=we([].push),p4=function(e,t){var r,n=xn(e),i=0,o=[];for(r in n)!oe(Fa,r)&&oe(n,r)&&Mb(o,r);for(;t.length>i;)oe(n,r=t[i++])&&(~rk(o,r)||Mb(o,r));return o},Bu=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],nk=Bu.concat("length","prototype"),Us={f:Object.getOwnPropertyNames||function(e){return p4(e,nk)}},gf={f:Object.getOwnPropertySymbols},ik=we([].concat),ok=en("Reflect","ownKeys")||function(e){var t=Us.f(Lt(e)),r=gf.f;return r?ik(t,r(e)):t},v4=function(e,t,r){for(var n=ok(t),i=Xt.f,o=$l.f,a=0;a<n.length;a++){var s=n[a];oe(e,s)||r&&oe(r,s)||i(e,s,o(t,s))}},ak=/#|\.prototype\./,wl=function(e,t){var r=lk[sk(e)];return r==uk||r!=ck&&(Ue(t)?Ge(t):!!t)},sk=wl.normalize=function(e){return String(e).replace(ak,".").toLowerCase()},lk=wl.data={},ck=wl.NATIVE="N",uk=wl.POLYFILL="P",e0=wl,dk=$l.f,Mt=function(e,t){var r,n,i,o,a,s=e.target,l=e.global,c=e.stat;if(r=l?me:c?me[s]||$y(s,{}):(me[s]||{}).prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(a=dk(r,n))&&a.value:r[n],!e0(l?n:s+(c?".":"#")+n,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;v4(o,i)}(e.sham||i&&i.sham)&&mf(o,"sham",!0),or(r,n,o,e)}},m4={};m4[gt("toStringTag")]="z";var fh,xy=String(m4)==="[object z]",fk=gt("toStringTag"),hk=Object,pk=Rn(function(){return arguments}())=="Arguments",go=xy?Rn:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(i,o){try{return i[o]}catch{}}(t=hk(e),fk))=="string"?r:pk?Rn(t):(n=Rn(t))=="Object"&&Ue(t.callee)?"Arguments":n},vk=String,jn=function(e){if(go(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return vk(e)},mk=gt("match"),yk=TypeError,y4=function(e){if(function(t){var r;return Ze(t)&&((r=t[mk])!==void 0?!!r:Rn(t)=="RegExp")}(e))throw yk("The method doesn't accept regular expressions");return e},gk=gt("match"),g4=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[gk]=!1,"/./"[e](t)}catch{}}return!1},bk=$l.f,jb=we("".startsWith),$k=we("".slice),wk=Math.min,b4=g4("startsWith"),_k=!(b4||(fh=bk(String.prototype,"startsWith"),!fh||fh.writable));Mt({target:"String",proto:!0,forced:!_k&&!b4},{startsWith:function(e){var t=jn(bl(this));y4(e);var r=f4(wk(arguments.length>1?arguments[1]:void 0,t.length)),n=jn(e);return jb?jb(t,n,r):$k(t,r,r+n.length)===n}});var Ey=function(e,t){return we(me[e].prototype[t])};Ey("String","startsWith");var qu=Array.isArray||function(e){return Rn(e)=="Array"},xk=TypeError,Vb=function(e){if(e>9007199254740991)throw xk("Maximum allowed index exceeded");return e},Bs=function(e,t,r){var n=ao(t);n in e?Xt.f(e,n,io(0,r)):e[n]=r},$4=function(){},Ek=[],w4=en("Reflect","construct"),Sy=/^\s*(?:class|function)\b/,Sk=we(Sy.exec),Ok=!Sy.exec($4),es=function(e){if(!Ue(e))return!1;try{return w4($4,Ek,e),!0}catch{return!1}},_4=function(e){if(!Ue(e))return!1;switch(go(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ok||!!Sk(Sy,d4(e))}catch{return!0}};_4.sham=!0;var zb,Oy=!w4||Ge(function(){var e;return es(es.call)||!es(Object)||!es(function(){e=!0})||e})?_4:es,kk=gt("species"),Ub=Array,x4=function(e,t){return new(function(r){var n;return qu(r)&&(n=r.constructor,(Oy(n)&&(n===Ub||qu(n.prototype))||Ze(n)&&(n=n[kk])===null)&&(n=void 0)),n===void 0?Ub:n}(e))(t===0?0:t)},Ck=gt("species"),E4=gt("isConcatSpreadable"),Tk=ju>=51||!Ge(function(){var e=[];return e[E4]=!1,e.concat()[0]!==e}),Pk=(zb="concat",ju>=51||!Ge(function(){var e=[];return(e.constructor={})[Ck]=function(){return{foo:1}},e[zb](Boolean).foo!==1})),Ik=function(e){if(!Ze(e))return!1;var t=e[E4];return t!==void 0?!!t:qu(e)};Mt({target:"Array",proto:!0,arity:1,forced:!Tk||!Pk},{concat:function(e){var t,r,n,i,o,a=Ra(this),s=x4(a,0),l=0;for(t=-1,n=arguments.length;t<n;t++)if(Ik(o=t===-1?a:arguments[t]))for(i=La(o),Vb(l+i),r=0;r<i;r++,l++)r in o&&Bs(s,l,o[r]);else Vb(l+1),Bs(s,l++,o);return s.length=l,s}});var Nk=xy?{}.toString:function(){return"[object "+go(this)+"]"};xy||or(Object.prototype,"toString",Nk,{unsafe:!0});var Ul,ky=Object.keys||function(e){return p4(e,Bu)},Ak=Fe&&!c4?Object.defineProperties:function(e,t){Lt(e);for(var r,n=xn(t),i=ky(t),o=i.length,a=0;o>a;)Xt.f(e,r=i[a++],n[r]);return e},S4={f:Ak},Dk=en("document","documentElement"),O4=yf("IE_PROTO"),hh=function(){},k4=function(e){return"<script>"+e+"<\/script>"},Bb=function(e){e.write(k4("")),e.close();var t=e.parentWindow.Object;return e=null,t},_c=function(){try{Ul=new ActiveXObject("htmlfile")}catch{}var e,t;_c=typeof document<"u"?document.domain&&Ul?Bb(Ul):((t=s4("iframe")).style.display="none",Dk.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(k4("document.F=Object")),e.close(),e.F):Bb(Ul);for(var r=Bu.length;r--;)delete _c.prototype[Bu[r]];return _c()};Fa[O4]=!0;var yi=Object.create||function(e,t){var r;return e!==null?(hh.prototype=Lt(e),r=new hh,hh.prototype=null,r[O4]=e):r=_c(),t===void 0?r:S4.f(r,t)},Rk=Array,Fk=Math.max,C4=Us.f,T4=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Lk=function(e){try{return C4(e)}catch{return function(t,r,n){for(var i=La(t),o=Zp(r,i),a=Zp(n===void 0?i:n,i),s=Rk(Fk(a-o,0)),l=0;o<a;o++,l++)Bs(s,l,t[o]);return s.length=l,s}(T4)}},Cy={f:function(e){return T4&&Rn(e)=="Window"?Lk(e):C4(xn(e))}},P4={f:gt},qs=me,Mk=Xt.f,hr=function(e){var t=qs.Symbol||(qs.Symbol={});oe(t,e)||Mk(t,e,{value:P4.f(e)})},I4=function(){var e=en("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=gt("toPrimitive");t&&!t[n]&&or(t,n,function(i){return rr(r,this)},{arity:1})},jk=Xt.f,qb=gt("toStringTag"),ci=function(e,t,r){e&&!r&&(e=e.prototype),e&&!oe(e,qb)&&jk(e,qb,{configurable:!0,value:t})},Vk=we(we.bind),bf=function(e,t){return by(e),t===void 0?e:gl?Vk(e,t):function(){return e.apply(t,arguments)}},Wb=we([].push),Qn=function(e){var t=e==1,r=e==2,n=e==3,i=e==4,o=e==6,a=e==7,s=e==5||o;return function(l,c,u,d){for(var f,h,p=Ra(l),m=a4(p),v=bf(c,u),b=La(m),y=0,g=d||x4,$=t?g(l,b):r||a?g(l,0):void 0;b>y;y++)if((s||y in m)&&(h=v(f=m[y],y,p),e))if(t)$[y]=h;else if(h)switch(e){case 3:return!0;case 5:return f;case 6:return y;case 2:Wb($,f)}else switch(e){case 4:return!1;case 7:Wb($,f)}return o?-1:n||i?i:$}},$f={forEach:Qn(0),map:Qn(1),filter:Qn(2),some:Qn(3),every:Qn(4),find:Qn(5),findIndex:Qn(6),filterReject:Qn(7)}.forEach,mr=yf("hidden"),zk=Fr.set,Hb=Fr.getterFor("Symbol"),Ar=Object.prototype,jo=me.Symbol,xs=jo&&jo.prototype,Uk=me.TypeError,ph=me.QObject,N4=$l.f,ai=Xt.f,A4=Cy.f,Bk=yy.f,D4=we([].push),Vn=Ni("symbols"),_l=Ni("op-symbols"),qk=Ni("wks"),vh=!ph||!ph.prototype||!ph.prototype.findChild,t0=Fe&&Ge(function(){return yi(ai({},"a",{get:function(){return ai(this,"a",{value:7}).a}})).a!=7})?function(e,t,r){var n=N4(Ar,t);n&&delete Ar[t],ai(e,t,r),n&&e!==Ar&&ai(Ar,t,n)}:ai,mh=function(e,t){var r=Vn[e]=yi(xs);return zk(r,{type:"Symbol",tag:e,description:t}),Fe||(r.description=t),r},Wu=function(e,t,r){e===Ar&&Wu(_l,t,r),Lt(e);var n=ao(t);return Lt(r),oe(Vn,n)?(r.enumerable?(oe(e,mr)&&e[mr][n]&&(e[mr][n]=!1),r=yi(r,{enumerable:io(0,!1)})):(oe(e,mr)||ai(e,mr,io(1,{})),e[mr][n]=!0),t0(e,n,r)):ai(e,n,r)},yh=function(e,t){Lt(e);var r=xn(t),n=ky(r).concat(R4(r));return $f(n,function(i){Fe&&!rr(r0,r,i)||Wu(e,i,r[i])}),e},r0=function(e){var t=ao(e),r=rr(Bk,this,t);return!(this===Ar&&oe(Vn,t)&&!oe(_l,t))&&(!(r||!oe(this,t)||!oe(Vn,t)||oe(this,mr)&&this[mr][t])||r)},Gb=function(e,t){var r=xn(e),n=ao(t);if(r!==Ar||!oe(Vn,n)||oe(_l,n)){var i=N4(r,n);return!i||!oe(Vn,n)||oe(r,mr)&&r[mr][n]||(i.enumerable=!0),i}},Qb=function(e){var t=A4(xn(e)),r=[];return $f(t,function(n){oe(Vn,n)||oe(Fa,n)||D4(r,n)}),r},R4=function(e){var t=e===Ar,r=A4(t?_l:xn(e)),n=[];return $f(r,function(i){!oe(Vn,i)||t&&!oe(Ar,i)||D4(n,Vn[i])}),n};Tr||(xs=(jo=function(){if(oo(xs,this))throw Uk("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?jn(arguments[0]):void 0,t=la(e),r=function(n){this===Ar&&rr(r,_l,n),oe(this,mr)&&oe(this[mr],t)&&(this[mr][t]=!1),t0(this,t,io(1,n))};return Fe&&vh&&t0(Ar,t,{configurable:!0,set:r}),mh(t,e)}).prototype,or(xs,"toString",function(){return Hb(this).tag}),or(jo,"withoutSetter",function(e){return mh(la(e),e)}),yy.f=r0,Xt.f=Wu,S4.f=yh,$l.f=Gb,Us.f=Cy.f=Qb,gf.f=R4,P4.f=function(e){return mh(gt(e),e)},Fe&&(ai(xs,"description",{configurable:!0,get:function(){return Hb(this).description}}),or(Ar,"propertyIsEnumerable",r0,{unsafe:!0}))),Mt({global:!0,constructor:!0,wrap:!0,forced:!Tr,sham:!Tr},{Symbol:jo}),$f(ky(qk),function(e){hr(e)}),Mt({target:"Symbol",stat:!0,forced:!Tr},{useSetter:function(){vh=!0},useSimple:function(){vh=!1}}),Mt({target:"Object",stat:!0,forced:!Tr,sham:!Fe},{create:function(e,t){return t===void 0?yi(e):yh(yi(e),t)},defineProperty:Wu,defineProperties:yh,getOwnPropertyDescriptor:Gb}),Mt({target:"Object",stat:!0,forced:!Tr},{getOwnPropertyNames:Qb}),I4(),ci(jo,"Symbol"),Fa[mr]=!0;var F4=Tr&&!!Symbol.for&&!!Symbol.keyFor,gh=Ni("string-to-symbol-registry"),Wk=Ni("symbol-to-string-registry");Mt({target:"Symbol",stat:!0,forced:!F4},{for:function(e){var t=jn(e);if(oe(gh,t))return gh[t];var r=en("Symbol")(t);return gh[t]=r,Wk[r]=t,r}});var Kb=Ni("symbol-to-string-registry");Mt({target:"Symbol",stat:!0,forced:!F4},{keyFor:function(e){if(!sa(e))throw TypeError(Da(e)+" is not a symbol");if(oe(Kb,e))return Kb[e]}});var L4=Function.prototype,Yb=L4.apply,Xb=L4.call,M4=typeof Reflect=="object"&&Reflect.apply||(gl?Xb.bind(Yb):function(){return Xb.apply(Yb,arguments)}),Ty=we([].slice),fi=en("JSON","stringify"),Bl=we(/./.exec),Jb=we("".charAt),Hk=we("".charCodeAt),Gk=we("".replace),Qk=we(1 .toString),Kk=/[\uD800-\uDFFF]/g,Zb=/^[\uD800-\uDBFF]$/,e1=/^[\uDC00-\uDFFF]$/,t1=!Tr||Ge(function(){var e=en("Symbol")();return fi([e])!="[null]"||fi({a:e})!="{}"||fi(Object(e))!="{}"}),r1=Ge(function(){return fi("\uDF06\uD834")!=='"\\udf06\\ud834"'||fi("\uDEAD")!=='"\\udead"'}),Yk=function(e,t){var r=Ty(arguments),n=t;if((Ze(t)||e!==void 0)&&!sa(e))return qu(t)||(t=function(i,o){if(Ue(n)&&(o=rr(n,this,i,o)),!sa(o))return o}),r[1]=t,M4(fi,null,r)},Xk=function(e,t,r){var n=Jb(r,t-1),i=Jb(r,t+1);return Bl(Zb,e)&&!Bl(e1,i)||Bl(e1,e)&&!Bl(Zb,n)?"\\u"+Qk(Hk(e,0),16):e};fi&&Mt({target:"JSON",stat:!0,arity:3,forced:t1||r1},{stringify:function(e,t,r){var n=Ty(arguments),i=M4(t1?Yk:fi,null,n);return r1&&typeof i=="string"?Gk(i,Kk,Xk):i}});var Jk=!Tr||Ge(function(){gf.f(1)});Mt({target:"Object",stat:!0,forced:Jk},{getOwnPropertySymbols:function(e){var t=gf.f;return t?t(Ra(e)):[]}}),hr("asyncIterator");var Zk=Xt.f,Cn=me.Symbol,Fi=Cn&&Cn.prototype;if(Fe&&Ue(Cn)&&(!("description"in Fi)||Cn().description!==void 0)){var n1={},ql=function(){var e=arguments.length<1||arguments[0]===void 0?void 0:jn(arguments[0]),t=oo(Fi,this)?new Cn(e):e===void 0?Cn():Cn(e);return e===""&&(n1[t]=!0),t};v4(ql,Cn),ql.prototype=Fi,Fi.constructor=ql;var e6=String(Cn("test"))=="Symbol(test)",t6=we(Fi.valueOf),r6=we(Fi.toString),n6=/^Symbol\((.*)\)[^)]+$/,i6=we("".replace),o6=we("".slice);Zk(Fi,"description",{configurable:!0,get:function(){var e=t6(this);if(oe(n1,e))return"";var t=r6(e),r=e6?o6(t,7,-1):i6(t,n6,"$1");return r===""?void 0:r}}),Mt({global:!0,constructor:!0,forced:!0},{Symbol:ql})}hr("hasInstance"),hr("isConcatSpreadable"),hr("iterator"),hr("match"),hr("matchAll"),hr("replace"),hr("search"),hr("species"),hr("split"),hr("toPrimitive"),I4(),hr("toStringTag"),ci(en("Symbol"),"Symbol"),hr("unscopables"),ci(me.JSON,"JSON",!0),ci(Math,"Math",!0),Mt({global:!0},{Reflect:{}}),ci(me.Reflect,"Reflect",!0),qs.Symbol;var Ji,i1,o1,a6=we("".charAt),a1=we("".charCodeAt),s6=we("".slice),s1=function(e){return function(t,r){var n,i,o=jn(bl(t)),a=_y(r),s=o.length;return a<0||a>=s?e?"":void 0:(n=a1(o,a))<55296||n>56319||a+1===s||(i=a1(o,a+1))<56320||i>57343?e?a6(o,a):n:e?s6(o,a,a+2):i-56320+(n-55296<<10)+65536}},l6={codeAt:s1(!1),charAt:s1(!0)},c6=!Ge(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),l1=yf("IE_PROTO"),n0=Object,u6=n0.prototype,gi=c6?n0.getPrototypeOf:function(e){var t=Ra(e);if(oe(t,l1))return t[l1];var r=t.constructor;return Ue(r)&&t instanceof r?r.prototype:t instanceof n0?u6:null},i0=gt("iterator"),j4=!1;[].keys&&("next"in(o1=[].keys())?(i1=gi(gi(o1)))!==Object.prototype&&(Ji=i1):j4=!0);var d6=!Ze(Ji)||Ge(function(){var e={};return Ji[i0].call(e)!==e});d6&&(Ji={}),Ue(Ji[i0])||or(Ji,i0,function(){return this});var Py={IteratorPrototype:Ji,BUGGY_SAFARI_ITERATORS:j4},ca={},f6=Py.IteratorPrototype,h6=function(){return this},p6=String,v6=TypeError,yn=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=we(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch{}return function(n,i){return Lt(n),function(o){if(typeof o=="object"||Ue(o))return o;throw v6("Can't set "+p6(o)+" as a prototype")}(i),t?e(n,i):n.__proto__=i,n}}():void 0),m6=wy.PROPER,y6=wy.CONFIGURABLE,c1=Py.IteratorPrototype,Wl=Py.BUGGY_SAFARI_ITERATORS,ts=gt("iterator"),g6=function(){return this},Iy=function(e,t,r,n,i,o,a){(function(b,y,g,$){var _=y+" Iterator";b.prototype=yi(f6,{next:io(+!$,g)}),ci(b,_,!1),ca[_]=h6})(r,t,n);var s,l,c,u=function(b){if(b===i&&m)return m;if(!Wl&&b in h)return h[b];switch(b){case"keys":case"values":case"entries":return function(){return new r(this,b)}}return function(){return new r(this)}},d=t+" Iterator",f=!1,h=e.prototype,p=h[ts]||h["@@iterator"]||i&&h[i],m=!Wl&&p||u(i),v=t=="Array"&&h.entries||p;if(v&&(s=gi(v.call(new e)))!==Object.prototype&&s.next&&(gi(s)!==c1&&(yn?yn(s,c1):Ue(s[ts])||or(s,ts,g6)),ci(s,d,!0)),m6&&i=="values"&&p&&p.name!=="values"&&(y6?mf(h,"name","values"):(f=!0,m=function(){return rr(p,this)})),i)if(l={values:u("values"),keys:o?m:u("keys"),entries:u("entries")},a)for(c in l)(Wl||f||!(c in h))&&or(h,c,l[c]);else Mt({target:t,proto:!0,forced:Wl||f},l);return h[ts]!==m&&or(h,ts,m,{name:i}),ca[t]=m,l},ua=function(e,t){return{value:e,done:t}},b6=l6.charAt,$6=Fr.set,w6=Fr.getterFor("String Iterator");Iy(String,"String",function(e){$6(this,{type:"String Iterator",string:jn(e),index:0})},function(){var e,t=w6(this),r=t.string,n=t.index;return n>=r.length?ua(void 0,!0):(e=b6(r,n),t.index+=e.length,ua(e,!1))});var o0=function(e,t,r){var n,i;Lt(e);try{if(!(n=Vu(e,"return"))){if(t==="throw")throw r;return r}n=rr(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return Lt(n),r},_6=function(e,t,r,n){try{return n?t(Lt(r)[0],r[1]):t(r)}catch(i){o0(e,"throw",i)}},x6=gt("iterator"),E6=Array.prototype,V4=function(e){return e!==void 0&&(ca.Array===e||E6[x6]===e)},S6=gt("iterator"),Ny=function(e){if(!Aa(e))return Vu(e,S6)||Vu(e,"@@iterator")||ca[go(e)]},O6=TypeError,z4=function(e,t){var r=arguments.length<2?Ny(e):t;if(by(r))return Lt(rr(r,e));throw O6(Da(e)+" is not iterable")},u1=Array,U4=gt("iterator"),B4=!1;try{var k6=0,d1={next:function(){return{done:!!k6++}},return:function(){B4=!0}};d1[U4]=function(){return this},Array.from(d1,function(){throw 2})}catch{}var q4=function(e,t){if(!t&&!B4)return!1;var r=!1;try{var n={};n[U4]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},C6=!q4(function(e){Array.from(e)});Mt({target:"Array",stat:!0,forced:C6},{from:function(e){var t=Ra(e),r=Oy(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=i!==void 0;o&&(i=bf(i,n>2?arguments[2]:void 0));var a,s,l,c,u,d,f=Ny(t),h=0;if(!f||this===u1&&V4(f))for(a=La(t),s=r?new this(a):u1(a);a>h;h++)d=o?i(t[h],h):t[h],Bs(s,h,d);else for(u=(c=z4(t,f)).next,s=r?new this:[];!(l=rr(u,c)).done;h++)d=o?_6(c,i,[l.value,h],!0):l.value,Bs(s,h,d);return s.length=h,s}}),qs.Array.from;var gr,Ko,Hu,T6=typeof ArrayBuffer<"u"&&typeof DataView<"u",P6=Xt.f,W4=Fr.enforce,I6=Fr.get,Gu=me.Int8Array,a0=Gu&&Gu.prototype,f1=me.Uint8ClampedArray,h1=f1&&f1.prototype,sn=Gu&&gi(Gu),Kr=a0&&gi(a0),N6=Object.prototype,s0=me.TypeError,p1=gt("toStringTag"),l0=la("TYPED_ARRAY_TAG"),Fn=T6&&!!yn&&go(me.opera)!=="Opera",H4=!1,Pn={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Ay={BigInt64Array:8,BigUint64Array:8},G4=function(e){var t=gi(e);if(Ze(t)){var r=I6(t);return r&&oe(r,"TypedArrayConstructor")?r.TypedArrayConstructor:G4(t)}},v1=function(e){if(!Ze(e))return!1;var t=go(e);return oe(Pn,t)||oe(Ay,t)};for(gr in Pn)(Hu=(Ko=me[gr])&&Ko.prototype)?W4(Hu).TypedArrayConstructor=Ko:Fn=!1;for(gr in Ay)(Hu=(Ko=me[gr])&&Ko.prototype)&&(W4(Hu).TypedArrayConstructor=Ko);if((!Fn||!Ue(sn)||sn===Function.prototype)&&(sn=function(){throw s0("Incorrect invocation")},Fn))for(gr in Pn)me[gr]&&yn(me[gr],sn);if((!Fn||!Kr||Kr===N6)&&(Kr=sn.prototype,Fn))for(gr in Pn)me[gr]&&yn(me[gr].prototype,Kr);if(Fn&&gi(h1)!==Kr&&yn(h1,Kr),Fe&&!oe(Kr,p1))for(gr in H4=!0,P6(Kr,p1,{get:function(){return Ze(this)?this[l0]:void 0}}),Pn)me[gr]&&mf(me[gr],l0,gr);var wf={NATIVE_ARRAY_BUFFER_VIEWS:Fn,TYPED_ARRAY_TAG:H4&&l0,aTypedArray:function(e){if(v1(e))return e;throw s0("Target is not a typed array")},aTypedArrayConstructor:function(e){if(Ue(e)&&(!yn||oo(sn,e)))return e;throw s0(Da(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(Fe){if(r)for(var i in Pn){var o=me[i];if(o&&oe(o.prototype,e))try{delete o.prototype[e]}catch{try{o.prototype[e]=t}catch{}}}Kr[e]&&!r||or(Kr,e,r?t:Fn&&a0[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,i;if(Fe){if(yn){if(r){for(n in Pn)if((i=me[n])&&oe(i,e))try{delete i[e]}catch{}}if(sn[e]&&!r)return;try{return or(sn,e,r?t:Fn&&sn[e]||t)}catch{}}for(n in Pn)!(i=me[n])||i[e]&&!r||or(i,e,t)}},getTypedArrayConstructor:G4,isView:function(e){if(!Ze(e))return!1;var t=go(e);return t==="DataView"||oe(Pn,t)||oe(Ay,t)},isTypedArray:v1,TypedArray:sn,TypedArrayPrototype:Kr},A6=TypeError,D6=gt("species"),R6=function(e,t){var r,n=Lt(e).constructor;return n===void 0||Aa(r=Lt(n)[D6])?t:function(i){if(Oy(i))return i;throw A6(Da(i)+" is not a constructor")}(r)},F6=wf.aTypedArrayConstructor,L6=wf.getTypedArrayConstructor,M6=wf.aTypedArray;(0,wf.exportTypedArrayMethod)("slice",function(e,t){for(var r,n=Ty(M6(this),e,t),i=F6(R6(r=this,L6(r))),o=0,a=n.length,s=new i(a);a>o;)s[o]=n[o++];return s},Ge(function(){new Int8Array(1).slice()}));var j6=Xt.f,c0=gt("unscopables"),u0=Array.prototype;u0[c0]==null&&j6(u0,c0,{configurable:!0,value:yi(null)});var xc=function(e){u0[c0][e]=!0},V6=h4.includes,z6=Ge(function(){return!Array(1).includes()});Mt({target:"Array",proto:!0,forced:z6},{includes:function(e){return V6(this,e,arguments.length>1?arguments[1]:void 0)}}),xc("includes"),Ey("Array","includes");var U6=we("".indexOf);Mt({target:"String",proto:!0,forced:!g4("includes")},{includes:function(e){return!!~U6(jn(bl(this)),jn(y4(e)),arguments.length>1?arguments[1]:void 0)}}),Ey("String","includes");var B6=Xt.f,q6=Fr.set,W6=Fr.getterFor("Array Iterator");Iy(Array,"Array",function(e,t){q6(this,{type:"Array Iterator",target:xn(e),index:0,kind:t})},function(){var e=W6(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,ua(void 0,!0)):ua(r=="keys"?n:r=="values"?t[n]:[n,t[n]],!1)},"values");var m1=ca.Arguments=ca.Array;if(xc("keys"),xc("values"),xc("entries"),Fe&&m1.name!=="values")try{B6(m1,"name",{value:"values"})}catch{}var y1=Ge(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Hl=Object.isExtensible,bh=Ge(function(){Hl(1)})||y1?function(e){return!!Ze(e)&&(!y1||Rn(e)!="ArrayBuffer")&&(!Hl||Hl(e))}:Hl,H6=!Ge(function(){return Object.isExtensible(Object.preventExtensions({}))}),Vo=Na(function(e){var t=Xt.f,r=!1,n=la("meta"),i=0,o=function(s){t(s,n,{value:{objectID:"O"+i++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},r=!0;var s=Us.f,l=we([].splice),c={};c[n]=1,s(c).length&&(Us.f=function(u){for(var d=s(u),f=0,h=d.length;f<h;f++)if(d[f]===n){l(d,f,1);break}return d},Mt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Cy.f}))},fastKey:function(s,l){if(!Ze(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!oe(s,n)){if(!bh(s))return"F";if(!l)return"E";o(s)}return s[n].objectID},getWeakData:function(s,l){if(!oe(s,n)){if(!bh(s))return!0;if(!l)return!1;o(s)}return s[n].weakData},onFreeze:function(s){return H6&&r&&bh(s)&&!oe(s,n)&&o(s),s}};Fa[n]=!0});Vo.enable,Vo.fastKey,Vo.getWeakData,Vo.onFreeze;var G6=TypeError,Ec=function(e,t){this.stopped=e,this.result=t},g1=Ec.prototype,Q4=function(e,t,r){var n,i,o,a,s,l,c,u=r&&r.that,d=!(!r||!r.AS_ENTRIES),f=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),m=bf(t,u),v=function(y){return n&&o0(n,"normal",y),new Ec(!0,y)},b=function(y){return d?(Lt(y),p?m(y[0],y[1],v):m(y[0],y[1])):p?m(y,v):m(y)};if(f)n=e.iterator;else if(h)n=e;else{if(!(i=Ny(e)))throw G6(Da(e)+" is not iterable");if(V4(i)){for(o=0,a=La(e);a>o;o++)if((s=b(e[o]))&&oo(g1,s))return s;return new Ec(!1)}n=z4(e,i)}for(l=f?e.next:n.next;!(c=rr(l,n)).done;){try{s=b(c.value)}catch(y){o0(n,"throw",y)}if(typeof s=="object"&&s&&oo(g1,s))return s}return new Ec(!1)},Q6=TypeError,K4=function(e,t){if(oo(t,e))return e;throw Q6("Incorrect invocation")},b1=function(e,t,r){for(var n in t)or(e,n,t[n],r);return e},$1=gt("species"),K6=Xt.f,w1=Vo.fastKey,_1=Fr.set,$h=Fr.getterFor,Y6={getConstructor:function(e,t,r,n){var i=e(function(c,u){K4(c,o),_1(c,{type:t,index:yi(null),first:void 0,last:void 0,size:0}),Fe||(c.size=0),Aa(u)||Q4(u,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=$h(t),s=function(c,u,d){var f,h,p=a(c),m=l(c,u);return m?m.value=d:(p.last=m={index:h=w1(u,!0),key:u,value:d,previous:f=p.last,next:void 0,removed:!1},p.first||(p.first=m),f&&(f.next=m),Fe?p.size++:c.size++,h!=="F"&&(p.index[h]=m)),c},l=function(c,u){var d,f=a(c),h=w1(u);if(h!=="F")return f.index[h];for(d=f.first;d;d=d.next)if(d.key==u)return d};return b1(o,{clear:function(){for(var c=a(this),u=c.index,d=c.first;d;)d.removed=!0,d.previous&&(d.previous=d.previous.next=void 0),delete u[d.index],d=d.next;c.first=c.last=void 0,Fe?c.size=0:this.size=0},delete:function(c){var u=this,d=a(u),f=l(u,c);if(f){var h=f.next,p=f.previous;delete d.index[f.index],f.removed=!0,p&&(p.next=h),h&&(h.previous=p),d.first==f&&(d.first=h),d.last==f&&(d.last=p),Fe?d.size--:u.size--}return!!f},forEach:function(c){for(var u,d=a(this),f=bf(c,arguments.length>1?arguments[1]:void 0);u=u?u.next:d.first;)for(f(u.value,u.key,this);u&&u.removed;)u=u.previous},has:function(c){return!!l(this,c)}}),b1(o,r?{get:function(c){var u=l(this,c);return u&&u.value},set:function(c,u){return s(this,c===0?0:c,u)}}:{add:function(c){return s(this,c=c===0?0:c,c)}}),Fe&&K6(o,"size",{get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=$h(t),o=$h(n);Iy(e,t,function(a,s){_1(this,{type:n,target:a,state:i(a),kind:s,last:void 0})},function(){for(var a=o(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return a.target&&(a.last=l=l?l.next:a.state.first)?ua(s=="keys"?l.key:s=="values"?l.value:[l.key,l.value],!1):(a.target=void 0,ua(void 0,!0))},r?"entries":"values",!r,!0),function(a){var s=en(a),l=Xt.f;Fe&&s&&!s[$1]&&l(s,$1,{configurable:!0,get:function(){return this}})}(t)}};function Y4(e){var t=this.constructor;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){return t.reject(r)})})}function X4(e){return new this(function(t,r){if(!e||e.length===void 0)return r(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var n=Array.prototype.slice.call(e);if(n.length===0)return t([]);var i=n.length;function o(s,l){if(l&&(typeof l=="object"||typeof l=="function")){var c=l.then;if(typeof c=="function")return void c.call(l,function(u){o(s,u)},function(u){n[s]={status:"rejected",reason:u},--i==0&&t(n)})}n[s]={status:"fulfilled",value:l},--i==0&&t(n)}for(var a=0;a<n.length;a++)o(a,n[a])})}(function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=me[e],s=a&&a.prototype,l=a,c={},u=function(v){var b=we(s[v]);or(s,v,v=="add"?function(y){return b(this,y===0?0:y),this}:v=="delete"?function(y){return!(i&&!Ze(y))&&b(this,y===0?0:y)}:v=="get"?function(y){return i&&!Ze(y)?void 0:b(this,y===0?0:y)}:v=="has"?function(y){return!(i&&!Ze(y))&&b(this,y===0?0:y)}:function(y,g){return b(this,y===0?0:y,g),this})};if(e0(e,!Ue(a)||!(i||s.forEach&&!Ge(function(){new a().entries().next()}))))l=r.getConstructor(t,e,n,o),Vo.enable();else if(e0(e,!0)){var d=new l,f=d[o](i?{}:-0,1)!=d,h=Ge(function(){d.has(1)}),p=q4(function(v){new a(v)}),m=!i&&Ge(function(){for(var v=new a,b=5;b--;)v[o](b,b);return!v.has(-0)});p||((l=t(function(v,b){K4(v,s);var y=function(g,$,_){var S,w;return yn&&Ue(S=$.constructor)&&S!==_&&Ze(w=S.prototype)&&w!==_.prototype&&yn(g,w),g}(new a,v,l);return Aa(b)||Q4(b,y[o],{that:y,AS_ENTRIES:n}),y})).prototype=s,s.constructor=l),(h||m)&&(u("delete"),u("has"),n&&u("get")),(m||f)&&u(o),i&&s.clear&&delete s.clear}c[e]=l,Mt({global:!0,constructor:!0,forced:l!=a},c),ci(l,e),i||r.setStrong(l,e,n)})("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Y6),qs.Set;var X6=setTimeout;function x1(e){return Boolean(e&&e.length!==void 0)}function J6(){}function at(e){if(!(this instanceof at))throw new TypeError("Promises must be constructed via new");if(typeof e!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],Z4(e,this)}function J4(e,t){for(;e._state===3;)e=e._value;e._state!==0?(e._handled=!0,at._immediateFn(function(){var r=e._state===1?t.onFulfilled:t.onRejected;if(r!==null){var n;try{n=r(e._value)}catch(i){return void Ws(t.promise,i)}d0(t.promise,n)}else(e._state===1?d0:Ws)(t.promise,e._value)})):e._deferreds.push(t)}function d0(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&(typeof t=="object"||typeof t=="function")){var r=t.then;if(t instanceof at)return e._state=3,e._value=t,void f0(e);if(typeof r=="function")return void Z4((n=r,i=t,function(){n.apply(i,arguments)}),e)}e._state=1,e._value=t,f0(e)}catch(o){Ws(e,o)}var n,i}function Ws(e,t){e._state=2,e._value=t,f0(e)}function f0(e){e._state===2&&e._deferreds.length===0&&at._immediateFn(function(){e._handled||at._unhandledRejectionFn(e._value)});for(var t=0,r=e._deferreds.length;t<r;t++)J4(e,e._deferreds[t]);e._deferreds=null}function Z6(e,t,r){this.onFulfilled=typeof e=="function"?e:null,this.onRejected=typeof t=="function"?t:null,this.promise=r}function Z4(e,t){var r=!1;try{e(function(n){r||(r=!0,d0(t,n))},function(n){r||(r=!0,Ws(t,n))})}catch(n){if(r)return;r=!0,Ws(t,n)}}at.prototype.catch=function(e){return this.then(null,e)},at.prototype.then=function(e,t){var r=new this.constructor(J6);return J4(this,new Z6(e,t,r)),r},at.prototype.finally=Y4,at.all=function(e){return new at(function(t,r){if(!x1(e))return r(new TypeError("Promise.all accepts an array"));var n=Array.prototype.slice.call(e);if(n.length===0)return t([]);var i=n.length;function o(s,l){try{if(l&&(typeof l=="object"||typeof l=="function")){var c=l.then;if(typeof c=="function")return void c.call(l,function(u){o(s,u)},r)}n[s]=l,--i==0&&t(n)}catch(u){r(u)}}for(var a=0;a<n.length;a++)o(a,n[a])})},at.allSettled=X4,at.resolve=function(e){return e&&typeof e=="object"&&e.constructor===at?e:new at(function(t){t(e)})},at.reject=function(e){return new at(function(t,r){r(e)})},at.race=function(e){return new at(function(t,r){if(!x1(e))return r(new TypeError("Promise.race accepts an array"));for(var n=0,i=e.length;n<i;n++)at.resolve(e[n]).then(t,r)})},at._immediateFn=typeof setImmediate=="function"&&function(e){setImmediate(e)}||function(e){X6(e,0)},at._unhandledRejectionFn=function(e){typeof console<"u"&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var So=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}();typeof So.Promise!="function"?So.Promise=at:(So.Promise.prototype.finally||(So.Promise.prototype.finally=Y4),So.Promise.allSettled||(So.Promise.allSettled=X4)),function(e){function t(h){for(var p=0,m=Math.min(65536,h.length+1),v=new Uint16Array(m),b=[],y=0;;){var g=p<h.length;if(!g||y>=m-1){var $=v.subarray(0,y);if(b.push(String.fromCharCode.apply(null,$)),!g)return b.join("");h=h.subarray(p),p=0,y=0}var _=h[p++];if((128&_)==0)v[y++]=_;else if((224&_)==192){var S=63&h[p++];v[y++]=(31&_)<<6|S}else if((240&_)==224){S=63&h[p++];var w=63&h[p++];v[y++]=(31&_)<<12|S<<6|w}else if((248&_)==240){var k=(7&_)<<18|(S=63&h[p++])<<12|(w=63&h[p++])<<6|63&h[p++];k>65535&&(k-=65536,v[y++]=k>>>10&1023|55296,k=56320|1023&k),v[y++]=k}}}var r="Failed to ",n=function(h,p,m){if(h)throw new Error("".concat(r).concat(p,": the '").concat(m,"' option is unsupported."))},i=typeof Buffer=="function"&&Buffer.from,o=i?function(h){return Buffer.from(h)}:function(h){for(var p=0,m=h.length,v=0,b=Math.max(32,m+(m>>>1)+7),y=new Uint8Array(b>>>3<<3);p<m;){var g=h.charCodeAt(p++);if(g>=55296&&g<=56319){if(p<m){var $=h.charCodeAt(p);(64512&$)==56320&&(++p,g=((1023&g)<<10)+(1023&$)+65536)}if(g>=55296&&g<=56319)continue}if(v+4>y.length){b+=8,b=(b*=1+p/h.length*2)>>>3<<3;var _=new Uint8Array(b);_.set(y),y=_}if((4294967168&g)!=0){if((4294965248&g)==0)y[v++]=g>>>6&31|192;else if((4294901760&g)==0)y[v++]=g>>>12&15|224,y[v++]=g>>>6&63|128;else{if((4292870144&g)!=0)continue;y[v++]=g>>>18&7|240,y[v++]=g>>>12&63|128,y[v++]=g>>>6&63|128}y[v++]=63&g|128}else y[v++]=g}return y.slice?y.slice(0,v):y.subarray(0,v)};function a(){this.encoding="utf-8"}a.prototype.encode=function(h,p){return n(p&&p.stream,"encode","stream"),o(h)};var s=!i&&typeof Blob=="function"&&typeof URL=="function"&&typeof URL.createObjectURL=="function",l=["utf-8","utf8","unicode-1-1-utf-8"],c=t;i?c=function(h,p){return(h instanceof Buffer?h:Buffer.from(h.buffer,h.byteOffset,h.byteLength)).toString(p)}:s&&(c=function(h){try{return function(p){var m;try{var v=new Blob([p],{type:"text/plain;charset=UTF-8"});m=URL.createObjectURL(v);var b=new XMLHttpRequest;return b.open("GET",m,!1),b.send(),b.responseText}finally{m&&URL.revokeObjectURL(m)}}(h)}catch{return t(h)}});var u="construct 'TextDecoder'",d="".concat(r," ").concat(u,": the ");function f(h,p){if(n(p&&p.fatal,u,"fatal"),h=h||"utf-8",!(i?Buffer.isEncoding(h):l.indexOf(h.toLowerCase())!==-1))throw new RangeError("".concat(d," encoding label provided ('").concat(h,"') is invalid."));this.encoding=h,this.fatal=!1,this.ignoreBOM=!1}f.prototype.decode=function(h,p){var m;return n(p&&p.stream,"decode","stream"),m=h instanceof Uint8Array?h:h.buffer instanceof ArrayBuffer?new Uint8Array(h.buffer):new Uint8Array(h),c(m,this.encoding)},e.TextEncoder=e.TextEncoder||a,e.TextDecoder=e.TextDecoder||f}(typeof window<"u"?window:dn),function(){function e(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function t(v,b){for(var y=0;y<b.length;y++){var g=b[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(v,g.key,g)}}function r(v,b,y){return b&&t(v.prototype,b),y&&t(v,y),v}function n(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(b&&b.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),b&&o(v,b)}function i(v){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(b){return b.__proto__||Object.getPrototypeOf(b)},i(v)}function o(v,b){return o=Object.setPrototypeOf||function(y,g){return y.__proto__=g,y},o(v,b)}function a(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function s(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function l(v,b){return!b||typeof b!="object"&&typeof b!="function"?s(v):b}function c(v){var b=a();return function(){var y,g=i(v);if(b){var $=i(this).constructor;y=Reflect.construct(g,arguments,$)}else y=g.apply(this,arguments);return l(this,y)}}function u(v,b){for(;!Object.prototype.hasOwnProperty.call(v,b)&&(v=i(v))!==null;);return v}function d(v,b,y){return d=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(g,$,_){var S=u(g,$);if(S){var w=Object.getOwnPropertyDescriptor(S,$);return w.get?w.get.call(_):w.value}},d(v,b,y||v)}var f=function(){function v(){e(this,v),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return r(v,[{key:"addEventListener",value:function(b,y,g){b in this.listeners||(this.listeners[b]=[]),this.listeners[b].push({callback:y,options:g})}},{key:"removeEventListener",value:function(b,y){if(b in this.listeners){for(var g=this.listeners[b],$=0,_=g.length;$<_;$++)if(g[$].callback===y)return void g.splice($,1)}}},{key:"dispatchEvent",value:function(b){if(b.type in this.listeners){for(var y=this.listeners[b.type].slice(),g=0,$=y.length;g<$;g++){var _=y[g];try{_.callback.call(this,b)}catch(S){Promise.resolve().then(function(){throw S})}_.options&&_.options.once&&this.removeEventListener(b.type,_.callback)}return!b.defaultPrevented}}}]),v}(),h=function(v){n(y,v);var b=c(y);function y(){var g;return e(this,y),(g=b.call(this)).listeners||f.call(s(g)),Object.defineProperty(s(g),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(s(g),"onabort",{value:null,writable:!0,configurable:!0}),g}return r(y,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(g){g.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,g)),d(i(y.prototype),"dispatchEvent",this).call(this,g)}}]),y}(f),p=function(){function v(){e(this,v),Object.defineProperty(this,"signal",{value:new h,writable:!0,configurable:!0})}return r(v,[{key:"abort",value:function(){var b;try{b=new Event("abort")}catch{typeof document<"u"?document.createEvent?(b=document.createEvent("Event")).initEvent("abort",!1,!1):(b=document.createEventObject()).type="abort":b={type:"abort",bubbles:!1,cancelable:!1}}this.signal.dispatchEvent(b)}},{key:"toString",value:function(){return"[object AbortController]"}}]),v}();function m(v){return v.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof v.Request=="function"&&!v.Request.prototype.hasOwnProperty("signal")||!v.AbortController}typeof Symbol<"u"&&Symbol.toStringTag&&(p.prototype[Symbol.toStringTag]="AbortController",h.prototype[Symbol.toStringTag]="AbortSignal"),function(v){m(v)&&(v.AbortController=p,v.AbortSignal=h)}(typeof self<"u"?self:dn)}();var Vi=Na(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function n(){var i=this;this.locked=new Map,this.addToLocked=function(o,a){var s=i.locked.get(o);s===void 0?a===void 0?i.locked.set(o,[]):i.locked.set(o,[a]):a!==void 0&&(s.unshift(a),i.locked.set(o,s))},this.isLocked=function(o){return i.locked.has(o)},this.lock=function(o){return new Promise(function(a,s){i.isLocked(o)?i.addToLocked(o,a):(i.addToLocked(o),a())})},this.unlock=function(o){var a=i.locked.get(o);if(a!==void 0&&a.length!==0){var s=a.pop();i.locked.set(o,a),s!==void 0&&setTimeout(s,0)}else i.locked.delete(o)}}return n.getInstance=function(){return n.instance===void 0&&(n.instance=new n),n.instance},n}();t.default=function(){return r.getInstance()}});my(Vi);var e7=Na(function(e,t){var r=dn&&dn.__awaiter||function(l,c,u,d){return new(u||(u=Promise))(function(f,h){function p(b){try{v(d.next(b))}catch(y){h(y)}}function m(b){try{v(d.throw(b))}catch(y){h(y)}}function v(b){b.done?f(b.value):new u(function(y){y(b.value)}).then(p,m)}v((d=d.apply(l,c||[])).next())})},n=dn&&dn.__generator||function(l,c){var u,d,f,h,p={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return h={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function m(v){return function(b){return function(y){if(u)throw new TypeError("Generator is already executing.");for(;p;)try{if(u=1,d&&(f=2&y[0]?d.return:y[0]?d.throw||((f=d.return)&&f.call(d),0):d.next)&&!(f=f.call(d,y[1])).done)return f;switch(d=0,f&&(y=[2&y[0],f.value]),y[0]){case 0:case 1:f=y;break;case 4:return p.label++,{value:y[1],done:!1};case 5:p.label++,d=y[1],y=[0];continue;case 7:y=p.ops.pop(),p.trys.pop();continue;default:if(f=p.trys,!((f=f.length>0&&f[f.length-1])||y[0]!==6&&y[0]!==2)){p=0;continue}if(y[0]===3&&(!f||y[1]>f[0]&&y[1]<f[3])){p.label=y[1];break}if(y[0]===6&&p.label<f[1]){p.label=f[1],f=y;break}if(f&&p.label<f[2]){p.label=f[2],p.ops.push(y);break}f[2]&&p.ops.pop(),p.trys.pop();continue}y=c.call(l,p)}catch(g){y=[6,g],d=0}finally{u=f=0}if(5&y[0])throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}([v,b])}}};Object.defineProperty(t,"__esModule",{value:!0});var i="browser-tabs-lock-key";function o(l){return new Promise(function(c){return setTimeout(c,l)})}function a(l){for(var c="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",u="",d=0;d<l;d++)u+=c[Math.floor(Math.random()*c.length)];return u}var s=function(){function l(){this.acquiredIatSet=new Set,this.id=Date.now().toString()+a(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),l.waiters===void 0&&(l.waiters=[])}return l.prototype.acquireLock=function(c,u){return u===void 0&&(u=5e3),r(this,void 0,void 0,function(){var d,f,h,p,m,v;return n(this,function(b){switch(b.label){case 0:d=Date.now()+a(4),f=Date.now()+u,h=i+"-"+c,p=window.localStorage,b.label=1;case 1:return Date.now()<f?[4,o(30)]:[3,8];case 2:return b.sent(),p.getItem(h)!==null?[3,5]:(m=this.id+"-"+c+"-"+d,[4,o(Math.floor(25*Math.random()))]);case 3:return b.sent(),p.setItem(h,JSON.stringify({id:this.id,iat:d,timeoutKey:m,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,o(30)];case 4:return b.sent(),(v=p.getItem(h))!==null&&(v=JSON.parse(v)).id===this.id&&v.iat===d?(this.acquiredIatSet.add(d),this.refreshLockWhileAcquired(h,d),[2,!0]):[3,7];case 5:return l.lockCorrector(),[4,this.waitForSomethingToChange(f)];case 6:b.sent(),b.label=7;case 7:return d=Date.now()+a(4),[3,1];case 8:return[2,!1]}})})},l.prototype.refreshLockWhileAcquired=function(c,u){return r(this,void 0,void 0,function(){var d=this;return n(this,function(f){return setTimeout(function(){return r(d,void 0,void 0,function(){var h,p;return n(this,function(m){switch(m.label){case 0:return[4,Vi.default().lock(u)];case 1:return m.sent(),this.acquiredIatSet.has(u)?(h=window.localStorage,(p=h.getItem(c))===null?(Vi.default().unlock(u),[2]):((p=JSON.parse(p)).timeRefreshed=Date.now(),h.setItem(c,JSON.stringify(p)),Vi.default().unlock(u),this.refreshLockWhileAcquired(c,u),[2])):(Vi.default().unlock(u),[2])}})})},1e3),[2]})})},l.prototype.waitForSomethingToChange=function(c){return r(this,void 0,void 0,function(){return n(this,function(u){switch(u.label){case 0:return[4,new Promise(function(d){var f=!1,h=Date.now(),p=!1;function m(){if(p||(window.removeEventListener("storage",m),l.removeFromWaiting(m),clearTimeout(v),p=!0),!f){f=!0;var b=50-(Date.now()-h);b>0?setTimeout(d,b):d()}}window.addEventListener("storage",m),l.addToWaiting(m);var v=setTimeout(m,Math.max(0,c-Date.now()))})];case 1:return u.sent(),[2]}})})},l.addToWaiting=function(c){this.removeFromWaiting(c),l.waiters!==void 0&&l.waiters.push(c)},l.removeFromWaiting=function(c){l.waiters!==void 0&&(l.waiters=l.waiters.filter(function(u){return u!==c}))},l.notifyWaiters=function(){l.waiters!==void 0&&l.waiters.slice().forEach(function(c){return c()})},l.prototype.releaseLock=function(c){return r(this,void 0,void 0,function(){return n(this,function(u){switch(u.label){case 0:return[4,this.releaseLock__private__(c)];case 1:return[2,u.sent()]}})})},l.prototype.releaseLock__private__=function(c){return r(this,void 0,void 0,function(){var u,d,f;return n(this,function(h){switch(h.label){case 0:return u=window.localStorage,d=i+"-"+c,(f=u.getItem(d))===null?[2]:(f=JSON.parse(f)).id!==this.id?[3,2]:[4,Vi.default().lock(f.iat)];case 1:h.sent(),this.acquiredIatSet.delete(f.iat),u.removeItem(d),Vi.default().unlock(f.iat),l.notifyWaiters(),h.label=2;case 2:return[2]}})})},l.lockCorrector=function(){for(var c=Date.now()-5e3,u=window.localStorage,d=Object.keys(u),f=!1,h=0;h<d.length;h++){var p=d[h];if(p.includes(i)){var m=u.getItem(p);m!==null&&((m=JSON.parse(m)).timeRefreshed===void 0&&m.timeAcquired<c||m.timeRefreshed!==void 0&&m.timeRefreshed<c)&&(u.removeItem(p),f=!0)}}f&&l.notifyWaiters()},l.waiters=void 0,l}();t.default=s}),t7=my(e7),xl=function(e){function t(r,n){var i=e.call(this,n)||this;return i.error=r,i.error_description=n,Object.setPrototypeOf(i,t.prototype),i}return yo(t,e),t.fromPayload=function(r){return new t(r.error,r.error_description)},t}(Error);(function(e){function t(r,n,i,o){o===void 0&&(o=null);var a=e.call(this,r,n)||this;return a.state=i,a.appState=o,Object.setPrototypeOf(a,t.prototype),a}return yo(t,e),t})(xl);var r7=function(e){function t(){var r=e.call(this,"timeout","Timeout")||this;return Object.setPrototypeOf(r,t.prototype),r}return yo(t,e),t}(xl);(function(e){function t(r){var n=e.call(this)||this;return n.popup=r,Object.setPrototypeOf(n,t.prototype),n}return yo(t,e),t})(r7);(function(e){function t(r){var n=e.call(this,"cancelled","Popup closed")||this;return n.popup=r,Object.setPrototypeOf(n,t.prototype),n}return yo(t,e),t})(xl);(function(e){function t(r,n,i){var o=e.call(this,r,n)||this;return o.mfa_token=i,Object.setPrototypeOf(o,t.prototype),o}return yo(t,e),t})(xl);(function(e){function t(r,n){var i=e.call(this,"missing_refresh_token","Missing Refresh Token (audience: '".concat(E1(r,["default"]),"', scope: '").concat(E1(n),"')"))||this;return i.audience=r,i.scope=n,Object.setPrototypeOf(i,t.prototype),i}return yo(t,e),t})(xl);function E1(e,t){return t===void 0&&(t=[]),e&&!t.includes(e)?e:""}var Gi=Na(function(e,t){var r=dn&&dn.__assign||function(){return r=Object.assign||function(l){for(var c,u=1,d=arguments.length;u<d;u++)for(var f in c=arguments[u])Object.prototype.hasOwnProperty.call(c,f)&&(l[f]=c[f]);return l},r.apply(this,arguments)};function n(l,c){if(!c)return"";var u="; "+l;return c===!0?u:u+"="+c}function i(l,c,u){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(c).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(d){if(typeof d.expires=="number"){var f=new Date;f.setMilliseconds(f.getMilliseconds()+864e5*d.expires),d.expires=f}return n("Expires",d.expires?d.expires.toUTCString():"")+n("Domain",d.domain)+n("Path",d.path)+n("Secure",d.secure)+n("SameSite",d.sameSite)}(u)}function o(l){for(var c={},u=l?l.split("; "):[],d=/(%[\dA-F]{2})+/gi,f=0;f<u.length;f++){var h=u[f].split("="),p=h.slice(1).join("=");p.charAt(0)==='"'&&(p=p.slice(1,-1));try{c[h[0].replace(d,decodeURIComponent)]=p.replace(d,decodeURIComponent)}catch{}}return c}function a(){return o(document.cookie)}function s(l,c,u){document.cookie=i(l,c,r({path:"/"},u))}t.__esModule=!0,t.encode=i,t.parse=o,t.getAll=a,t.get=function(l){return a()[l]},t.set=s,t.remove=function(l,c){s(l,"",r(r({},c),{expires:-1}))}});my(Gi),Gi.encode,Gi.parse,Gi.getAll;Gi.get;Gi.set;Gi.remove;new t7;var wh="Invariant Violation",S1=Object.setPrototypeOf,n7=S1===void 0?function(e,t){return e.__proto__=t,e}:S1,He=function(e){Zr(t,e);function t(r){r===void 0&&(r=wh);var n=e.call(this,typeof r=="number"?wh+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=wh,n7(n,t.prototype),n}return t}(Error);function fe(e,t){if(!e)throw new He(t)}var e5=["debug","log","warn","error","silent"],i7=e5.indexOf("log");function Gl(e){return function(){if(e5.indexOf(e)>=i7){var t=console[e]||console.log;return t.apply(console,arguments)}}}(function(e){e.debug=Gl("debug"),e.log=Gl("log"),e.warn=Gl("warn"),e.error=Gl("error")})(fe||(fe={}));function Pr(e){try{return e()}catch{}}const O1=Pr(function(){return globalThis})||Pr(function(){return window})||Pr(function(){return self})||Pr(function(){return global})||Pr(function(){return Pr.constructor("return this")()});var k1="__",C1=[k1,k1].join("DEV");function o7(){try{return Boolean(__DEV__)}catch{return Object.defineProperty(O1,C1,{value:Pr(function(){return"production"})!=="production",enumerable:!1,configurable:!0,writable:!0}),O1[C1]}}const _h=o7();function ri(e){try{return e()}catch{}}var h0=ri(function(){return globalThis})||ri(function(){return window})||ri(function(){return self})||ri(function(){return global})||ri(function(){return ri.constructor("return this")()}),p0=!1;function a7(){h0&&!ri(function(){return"production"})&&!ri(function(){return process})&&(Object.defineProperty(h0,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),p0=!0)}a7();function s7(){p0&&(delete h0.process,p0=!1)}function Sc(e,t){if(!Boolean(e))throw new Error(t)}function l7(e){return typeof e=="object"&&e!==null}function c7(e,t){if(!Boolean(e))throw new Error(t??"Unexpected invariant triggered.")}const u7=/\r\n|[\n\r]/g;function v0(e,t){let r=0,n=1;for(const i of e.body.matchAll(u7)){if(typeof i.index=="number"||c7(!1),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}function d7(e){return t5(e.source,v0(e.source,e.start))}function t5(e,t){const r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=t.line===1?r:0,l=t.column+s,c=`${e.name}:${a}:${l}
7
+ ${e}. Is your HTML properly formed?`;let i=n.content.firstChild;return r&&(i=i.firstChild),i}function n4(e,t=window.document){const r=t[Sb]||(t[Sb]=new Set);for(let n=0,i=e.length;n<i;n++){const o=e[n];r.has(o)||(r.add(o),t.addEventListener(o,d8))}}function d8(e){const t=`$$${e.type}`;let r=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==r&&Object.defineProperty(e,"target",{configurable:!0,value:r}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return r||document}}),Ps.registry&&!Ps.done&&(Ps.done=_$HY.done=!0);r;){const n=r[t];if(n&&!r.disabled){const i=r[`${t}Data`];if(i!==void 0?n.call(r,i,e):n.call(r,e),e.cancelBubble)return}r=r._$host||r.parentNode||r.host}}n4(["click"]);var Qp=function(e,t){return Qp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Qp(e,t)};function Zr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Qp(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var M=function(){return M=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},M.apply(this,arguments)};function aa(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function f8(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(u){try{c(n.next(u))}catch(d){a(d)}}function l(u){try{c(n.throw(u))}catch(d){a(d)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})}function h8(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(u){c=[6,u],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Mu(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var Kp=function(e,t){return Kp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Kp(e,t)};function yo(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Kp(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var dn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function my(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Na(e,t){return e(t={exports:{}},t.exports),t.exports}var Gn,wc,Vl=function(e){return e&&e.Math==Math&&e},me=Vl(typeof globalThis=="object"&&globalThis)||Vl(typeof window=="object"&&window)||Vl(typeof self=="object"&&self)||Vl(typeof dn=="object"&&dn)||function(){return this}()||Function("return this")(),Ge=function(e){try{return!!e()}catch{return!0}},Fe=!Ge(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),gl=!Ge(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),zl=Function.prototype.call,rr=gl?zl.bind(zl):function(){return zl.apply(zl,arguments)},Ob={}.propertyIsEnumerable,kb=Object.getOwnPropertyDescriptor,p8=kb&&!Ob.call({1:2},1)?function(e){var t=kb(this,e);return!!t&&t.enumerable}:Ob,yy={f:p8},io=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},i4=Function,o4=i4.prototype,v8=o4.bind,Yp=o4.call,m8=gl&&v8.bind(Yp,Yp),we=function(e){return e instanceof i4?gl?m8(e):function(){return Yp.apply(e,arguments)}:void 0},y8=we({}.toString),g8=we("".slice),Rn=function(e){return g8(y8(e),8,-1)},sh=Object,b8=we("".split),a4=Ge(function(){return!sh("z").propertyIsEnumerable(0)})?function(e){return Rn(e)=="String"?b8(e,""):sh(e)}:sh,Aa=function(e){return e==null},$8=TypeError,bl=function(e){if(Aa(e))throw $8("Can't call method on "+e);return e},xn=function(e){return a4(bl(e))},lh=typeof document=="object"&&document.all,vf={all:lh,IS_HTMLDDA:lh===void 0&&lh!==void 0},w8=vf.all,Ue=vf.IS_HTMLDDA?function(e){return typeof e=="function"||e===w8}:function(e){return typeof e=="function"},_8=vf.all,Ze=vf.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:Ue(e)||e===_8}:function(e){return typeof e=="object"?e!==null:Ue(e)},x8=function(e){return Ue(e)?e:void 0},en=function(e,t){return arguments.length<2?x8(me[e]):me[e]&&me[e][t]},oo=we({}.isPrototypeOf),ch=en("navigator","userAgent")||"",Cb=me.process,Tb=me.Deno,Pb=Cb&&Cb.versions||Tb&&Tb.version,Ib=Pb&&Pb.v8;Ib&&(wc=(Gn=Ib.split("."))[0]>0&&Gn[0]<4?1:+(Gn[0]+Gn[1])),!wc&&ch&&(!(Gn=ch.match(/Edge\/(\d+)/))||Gn[1]>=74)&&(Gn=ch.match(/Chrome\/(\d+)/))&&(wc=+Gn[1]);var ju=wc,Tr=!!Object.getOwnPropertySymbols&&!Ge(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ju&&ju<41}),gy=Tr&&!Symbol.sham&&typeof Symbol.iterator=="symbol",E8=Object,sa=gy?function(e){return typeof e=="symbol"}:function(e){var t=en("Symbol");return Ue(t)&&oo(t.prototype,E8(e))},S8=String,Da=function(e){try{return S8(e)}catch{return"Object"}},O8=TypeError,by=function(e){if(Ue(e))return e;throw O8(Da(e)+" is not a function")},Vu=function(e,t){var r=e[t];return Aa(r)?void 0:by(r)},k8=TypeError,C8=Object.defineProperty,$y=function(e,t){try{C8(me,e,{value:t,configurable:!0,writable:!0})}catch{me[e]=t}return t},di=me["__core-js_shared__"]||$y("__core-js_shared__",{}),Ni=Na(function(e){(e.exports=function(t,r){return di[t]||(di[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.25.4",mode:"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.4/LICENSE",source:"https://github.com/zloirock/core-js"})}),T8=Object,Ra=function(e){return T8(bl(e))},P8=we({}.hasOwnProperty),oe=Object.hasOwn||function(e,t){return P8(Ra(e),t)},I8=0,N8=Math.random(),A8=we(1 .toString),la=function(e){return"Symbol("+(e===void 0?"":e)+")_"+A8(++I8+N8,36)},Za=Ni("wks"),Xi=me.Symbol,Nb=Xi&&Xi.for,D8=gy?Xi:Xi&&Xi.withoutSetter||la,gt=function(e){if(!oe(Za,e)||!Tr&&typeof Za[e]!="string"){var t="Symbol."+e;Tr&&oe(Xi,e)?Za[e]=Xi[e]:Za[e]=gy&&Nb?Nb(t):D8(t)}return Za[e]},R8=TypeError,F8=gt("toPrimitive"),L8=function(e,t){if(!Ze(e)||sa(e))return e;var r,n=Vu(e,F8);if(n){if(t===void 0&&(t="default"),r=rr(n,e,t),!Ze(r)||sa(r))return r;throw R8("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,s;if(o==="string"&&Ue(a=i.toString)&&!Ze(s=rr(a,i))||Ue(a=i.valueOf)&&!Ze(s=rr(a,i))||o!=="string"&&Ue(a=i.toString)&&!Ze(s=rr(a,i)))return s;throw k8("Can't convert object to primitive value")}(e,t)},ao=function(e){var t=L8(e,"string");return sa(t)?t:t+""},Xp=me.document,M8=Ze(Xp)&&Ze(Xp.createElement),s4=function(e){return M8?Xp.createElement(e):{}},l4=!Fe&&!Ge(function(){return Object.defineProperty(s4("div"),"a",{get:function(){return 7}}).a!=7}),Ab=Object.getOwnPropertyDescriptor,$l={f:Fe?Ab:function(e,t){if(e=xn(e),t=ao(t),l4)try{return Ab(e,t)}catch{}if(oe(e,t))return io(!rr(yy.f,e,t),e[t])}},c4=Fe&&Ge(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),j8=String,V8=TypeError,Lt=function(e){if(Ze(e))return e;throw V8(j8(e)+" is not an object")},z8=TypeError,uh=Object.defineProperty,U8=Object.getOwnPropertyDescriptor,Xt={f:Fe?c4?function(e,t,r){if(Lt(e),t=ao(t),Lt(r),typeof e=="function"&&t==="prototype"&&"value"in r&&"writable"in r&&!r.writable){var n=U8(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return uh(e,t,r)}:uh:function(e,t,r){if(Lt(e),t=ao(t),Lt(r),l4)try{return uh(e,t,r)}catch{}if("get"in r||"set"in r)throw z8("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},mf=Fe?function(e,t,r){return Xt.f(e,t,io(1,r))}:function(e,t,r){return e[t]=r,e},u4=Function.prototype,B8=Fe&&Object.getOwnPropertyDescriptor,dh=oe(u4,"name"),wy={EXISTS:dh,PROPER:dh&&function(){}.name==="something",CONFIGURABLE:dh&&(!Fe||Fe&&B8(u4,"name").configurable)},q8=we(Function.toString);Ue(di.inspectSource)||(di.inspectSource=function(e){return q8(e)});var zu,Is,Uu,d4=di.inspectSource,Db=me.WeakMap,W8=Ue(Db)&&/native code/.test(String(Db)),Rb=Ni("keys"),yf=function(e){return Rb[e]||(Rb[e]=la(e))},Fa={},Jp=me.TypeError,H8=me.WeakMap;if(W8||di.state){var Ri=di.state||(di.state=new H8),G8=we(Ri.get),Fb=we(Ri.has),Q8=we(Ri.set);zu=function(e,t){if(Fb(Ri,e))throw Jp("Object already initialized");return t.facade=e,Q8(Ri,e,t),t},Is=function(e){return G8(Ri,e)||{}},Uu=function(e){return Fb(Ri,e)}}else{var Eo=yf("state");Fa[Eo]=!0,zu=function(e,t){if(oe(e,Eo))throw Jp("Object already initialized");return t.facade=e,mf(e,Eo,t),t},Is=function(e){return oe(e,Eo)?e[Eo]:{}},Uu=function(e){return oe(e,Eo)}}var Fr={set:zu,get:Is,has:Uu,enforce:function(e){return Uu(e)?Is(e):zu(e,{})},getterFor:function(e){return function(t){var r;if(!Ze(t)||(r=Is(t)).type!==e)throw Jp("Incompatible receiver, "+e+" required");return r}}},K8=Na(function(e){var t=wy.CONFIGURABLE,r=Fr.enforce,n=Fr.get,i=Object.defineProperty,o=Fe&&!Ge(function(){return i(function(){},"length",{value:8}).length!==8}),a=String(String).split("String"),s=e.exports=function(l,c,u){String(c).slice(0,7)==="Symbol("&&(c="["+String(c).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),u&&u.getter&&(c="get "+c),u&&u.setter&&(c="set "+c),(!oe(l,"name")||t&&l.name!==c)&&(Fe?i(l,"name",{value:c,configurable:!0}):l.name=c),o&&u&&oe(u,"arity")&&l.length!==u.arity&&i(l,"length",{value:u.arity});try{u&&oe(u,"constructor")&&u.constructor?Fe&&i(l,"prototype",{writable:!1}):l.prototype&&(l.prototype=void 0)}catch{}var d=r(l);return oe(d,"source")||(d.source=a.join(typeof c=="string"?c:"")),l};Function.prototype.toString=s(function(){return Ue(this)&&n(this).source||d4(this)},"toString")}),or=function(e,t,r,n){n||(n={});var i=n.enumerable,o=n.name!==void 0?n.name:t;if(Ue(r)&&K8(r,o,n),n.global)i?e[t]=r:$y(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch{}i?e[t]=r:Xt.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},Y8=Math.ceil,X8=Math.floor,J8=Math.trunc||function(e){var t=+e;return(t>0?X8:Y8)(t)},_y=function(e){var t=+e;return t!=t||t===0?0:J8(t)},Z8=Math.max,ek=Math.min,Zp=function(e,t){var r=_y(e);return r<0?Z8(r+t,0):ek(r,t)},tk=Math.min,f4=function(e){return e>0?tk(_y(e),9007199254740991):0},La=function(e){return f4(e.length)},Lb=function(e){return function(t,r,n){var i,o=xn(t),a=La(o),s=Zp(n,a);if(e&&r!=r){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===r)return e||s||0;return!e&&-1}},h4={includes:Lb(!0),indexOf:Lb(!1)},rk=h4.indexOf,Mb=we([].push),p4=function(e,t){var r,n=xn(e),i=0,o=[];for(r in n)!oe(Fa,r)&&oe(n,r)&&Mb(o,r);for(;t.length>i;)oe(n,r=t[i++])&&(~rk(o,r)||Mb(o,r));return o},Bu=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],nk=Bu.concat("length","prototype"),Us={f:Object.getOwnPropertyNames||function(e){return p4(e,nk)}},gf={f:Object.getOwnPropertySymbols},ik=we([].concat),ok=en("Reflect","ownKeys")||function(e){var t=Us.f(Lt(e)),r=gf.f;return r?ik(t,r(e)):t},v4=function(e,t,r){for(var n=ok(t),i=Xt.f,o=$l.f,a=0;a<n.length;a++){var s=n[a];oe(e,s)||r&&oe(r,s)||i(e,s,o(t,s))}},ak=/#|\.prototype\./,wl=function(e,t){var r=lk[sk(e)];return r==uk||r!=ck&&(Ue(t)?Ge(t):!!t)},sk=wl.normalize=function(e){return String(e).replace(ak,".").toLowerCase()},lk=wl.data={},ck=wl.NATIVE="N",uk=wl.POLYFILL="P",e0=wl,dk=$l.f,Mt=function(e,t){var r,n,i,o,a,s=e.target,l=e.global,c=e.stat;if(r=l?me:c?me[s]||$y(s,{}):(me[s]||{}).prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(a=dk(r,n))&&a.value:r[n],!e0(l?n:s+(c?".":"#")+n,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;v4(o,i)}(e.sham||i&&i.sham)&&mf(o,"sham",!0),or(r,n,o,e)}},m4={};m4[gt("toStringTag")]="z";var fh,xy=String(m4)==="[object z]",fk=gt("toStringTag"),hk=Object,pk=Rn(function(){return arguments}())=="Arguments",go=xy?Rn:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(i,o){try{return i[o]}catch{}}(t=hk(e),fk))=="string"?r:pk?Rn(t):(n=Rn(t))=="Object"&&Ue(t.callee)?"Arguments":n},vk=String,jn=function(e){if(go(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return vk(e)},mk=gt("match"),yk=TypeError,y4=function(e){if(function(t){var r;return Ze(t)&&((r=t[mk])!==void 0?!!r:Rn(t)=="RegExp")}(e))throw yk("The method doesn't accept regular expressions");return e},gk=gt("match"),g4=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[gk]=!1,"/./"[e](t)}catch{}}return!1},bk=$l.f,jb=we("".startsWith),$k=we("".slice),wk=Math.min,b4=g4("startsWith"),_k=!(b4||(fh=bk(String.prototype,"startsWith"),!fh||fh.writable));Mt({target:"String",proto:!0,forced:!_k&&!b4},{startsWith:function(e){var t=jn(bl(this));y4(e);var r=f4(wk(arguments.length>1?arguments[1]:void 0,t.length)),n=jn(e);return jb?jb(t,n,r):$k(t,r,r+n.length)===n}});var Ey=function(e,t){return we(me[e].prototype[t])};Ey("String","startsWith");var qu=Array.isArray||function(e){return Rn(e)=="Array"},xk=TypeError,Vb=function(e){if(e>9007199254740991)throw xk("Maximum allowed index exceeded");return e},Bs=function(e,t,r){var n=ao(t);n in e?Xt.f(e,n,io(0,r)):e[n]=r},$4=function(){},Ek=[],w4=en("Reflect","construct"),Sy=/^\s*(?:class|function)\b/,Sk=we(Sy.exec),Ok=!Sy.exec($4),es=function(e){if(!Ue(e))return!1;try{return w4($4,Ek,e),!0}catch{return!1}},_4=function(e){if(!Ue(e))return!1;switch(go(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ok||!!Sk(Sy,d4(e))}catch{return!0}};_4.sham=!0;var zb,Oy=!w4||Ge(function(){var e;return es(es.call)||!es(Object)||!es(function(){e=!0})||e})?_4:es,kk=gt("species"),Ub=Array,x4=function(e,t){return new(function(r){var n;return qu(r)&&(n=r.constructor,(Oy(n)&&(n===Ub||qu(n.prototype))||Ze(n)&&(n=n[kk])===null)&&(n=void 0)),n===void 0?Ub:n}(e))(t===0?0:t)},Ck=gt("species"),E4=gt("isConcatSpreadable"),Tk=ju>=51||!Ge(function(){var e=[];return e[E4]=!1,e.concat()[0]!==e}),Pk=(zb="concat",ju>=51||!Ge(function(){var e=[];return(e.constructor={})[Ck]=function(){return{foo:1}},e[zb](Boolean).foo!==1})),Ik=function(e){if(!Ze(e))return!1;var t=e[E4];return t!==void 0?!!t:qu(e)};Mt({target:"Array",proto:!0,arity:1,forced:!Tk||!Pk},{concat:function(e){var t,r,n,i,o,a=Ra(this),s=x4(a,0),l=0;for(t=-1,n=arguments.length;t<n;t++)if(Ik(o=t===-1?a:arguments[t]))for(i=La(o),Vb(l+i),r=0;r<i;r++,l++)r in o&&Bs(s,l,o[r]);else Vb(l+1),Bs(s,l++,o);return s.length=l,s}});var Nk=xy?{}.toString:function(){return"[object "+go(this)+"]"};xy||or(Object.prototype,"toString",Nk,{unsafe:!0});var Ul,ky=Object.keys||function(e){return p4(e,Bu)},Ak=Fe&&!c4?Object.defineProperties:function(e,t){Lt(e);for(var r,n=xn(t),i=ky(t),o=i.length,a=0;o>a;)Xt.f(e,r=i[a++],n[r]);return e},S4={f:Ak},Dk=en("document","documentElement"),O4=yf("IE_PROTO"),hh=function(){},k4=function(e){return"<script>"+e+"<\/script>"},Bb=function(e){e.write(k4("")),e.close();var t=e.parentWindow.Object;return e=null,t},_c=function(){try{Ul=new ActiveXObject("htmlfile")}catch{}var e,t;_c=typeof document<"u"?document.domain&&Ul?Bb(Ul):((t=s4("iframe")).style.display="none",Dk.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(k4("document.F=Object")),e.close(),e.F):Bb(Ul);for(var r=Bu.length;r--;)delete _c.prototype[Bu[r]];return _c()};Fa[O4]=!0;var yi=Object.create||function(e,t){var r;return e!==null?(hh.prototype=Lt(e),r=new hh,hh.prototype=null,r[O4]=e):r=_c(),t===void 0?r:S4.f(r,t)},Rk=Array,Fk=Math.max,C4=Us.f,T4=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Lk=function(e){try{return C4(e)}catch{return function(t,r,n){for(var i=La(t),o=Zp(r,i),a=Zp(n===void 0?i:n,i),s=Rk(Fk(a-o,0)),l=0;o<a;o++,l++)Bs(s,l,t[o]);return s.length=l,s}(T4)}},Cy={f:function(e){return T4&&Rn(e)=="Window"?Lk(e):C4(xn(e))}},P4={f:gt},qs=me,Mk=Xt.f,hr=function(e){var t=qs.Symbol||(qs.Symbol={});oe(t,e)||Mk(t,e,{value:P4.f(e)})},I4=function(){var e=en("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=gt("toPrimitive");t&&!t[n]&&or(t,n,function(i){return rr(r,this)},{arity:1})},jk=Xt.f,qb=gt("toStringTag"),ci=function(e,t,r){e&&!r&&(e=e.prototype),e&&!oe(e,qb)&&jk(e,qb,{configurable:!0,value:t})},Vk=we(we.bind),bf=function(e,t){return by(e),t===void 0?e:gl?Vk(e,t):function(){return e.apply(t,arguments)}},Wb=we([].push),Qn=function(e){var t=e==1,r=e==2,n=e==3,i=e==4,o=e==6,a=e==7,s=e==5||o;return function(l,c,u,d){for(var f,h,p=Ra(l),m=a4(p),v=bf(c,u),b=La(m),y=0,g=d||x4,$=t?g(l,b):r||a?g(l,0):void 0;b>y;y++)if((s||y in m)&&(h=v(f=m[y],y,p),e))if(t)$[y]=h;else if(h)switch(e){case 3:return!0;case 5:return f;case 6:return y;case 2:Wb($,f)}else switch(e){case 4:return!1;case 7:Wb($,f)}return o?-1:n||i?i:$}},$f={forEach:Qn(0),map:Qn(1),filter:Qn(2),some:Qn(3),every:Qn(4),find:Qn(5),findIndex:Qn(6),filterReject:Qn(7)}.forEach,mr=yf("hidden"),zk=Fr.set,Hb=Fr.getterFor("Symbol"),Ar=Object.prototype,jo=me.Symbol,xs=jo&&jo.prototype,Uk=me.TypeError,ph=me.QObject,N4=$l.f,ai=Xt.f,A4=Cy.f,Bk=yy.f,D4=we([].push),Vn=Ni("symbols"),_l=Ni("op-symbols"),qk=Ni("wks"),vh=!ph||!ph.prototype||!ph.prototype.findChild,t0=Fe&&Ge(function(){return yi(ai({},"a",{get:function(){return ai(this,"a",{value:7}).a}})).a!=7})?function(e,t,r){var n=N4(Ar,t);n&&delete Ar[t],ai(e,t,r),n&&e!==Ar&&ai(Ar,t,n)}:ai,mh=function(e,t){var r=Vn[e]=yi(xs);return zk(r,{type:"Symbol",tag:e,description:t}),Fe||(r.description=t),r},Wu=function(e,t,r){e===Ar&&Wu(_l,t,r),Lt(e);var n=ao(t);return Lt(r),oe(Vn,n)?(r.enumerable?(oe(e,mr)&&e[mr][n]&&(e[mr][n]=!1),r=yi(r,{enumerable:io(0,!1)})):(oe(e,mr)||ai(e,mr,io(1,{})),e[mr][n]=!0),t0(e,n,r)):ai(e,n,r)},yh=function(e,t){Lt(e);var r=xn(t),n=ky(r).concat(R4(r));return $f(n,function(i){Fe&&!rr(r0,r,i)||Wu(e,i,r[i])}),e},r0=function(e){var t=ao(e),r=rr(Bk,this,t);return!(this===Ar&&oe(Vn,t)&&!oe(_l,t))&&(!(r||!oe(this,t)||!oe(Vn,t)||oe(this,mr)&&this[mr][t])||r)},Gb=function(e,t){var r=xn(e),n=ao(t);if(r!==Ar||!oe(Vn,n)||oe(_l,n)){var i=N4(r,n);return!i||!oe(Vn,n)||oe(r,mr)&&r[mr][n]||(i.enumerable=!0),i}},Qb=function(e){var t=A4(xn(e)),r=[];return $f(t,function(n){oe(Vn,n)||oe(Fa,n)||D4(r,n)}),r},R4=function(e){var t=e===Ar,r=A4(t?_l:xn(e)),n=[];return $f(r,function(i){!oe(Vn,i)||t&&!oe(Ar,i)||D4(n,Vn[i])}),n};Tr||(xs=(jo=function(){if(oo(xs,this))throw Uk("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?jn(arguments[0]):void 0,t=la(e),r=function(n){this===Ar&&rr(r,_l,n),oe(this,mr)&&oe(this[mr],t)&&(this[mr][t]=!1),t0(this,t,io(1,n))};return Fe&&vh&&t0(Ar,t,{configurable:!0,set:r}),mh(t,e)}).prototype,or(xs,"toString",function(){return Hb(this).tag}),or(jo,"withoutSetter",function(e){return mh(la(e),e)}),yy.f=r0,Xt.f=Wu,S4.f=yh,$l.f=Gb,Us.f=Cy.f=Qb,gf.f=R4,P4.f=function(e){return mh(gt(e),e)},Fe&&(ai(xs,"description",{configurable:!0,get:function(){return Hb(this).description}}),or(Ar,"propertyIsEnumerable",r0,{unsafe:!0}))),Mt({global:!0,constructor:!0,wrap:!0,forced:!Tr,sham:!Tr},{Symbol:jo}),$f(ky(qk),function(e){hr(e)}),Mt({target:"Symbol",stat:!0,forced:!Tr},{useSetter:function(){vh=!0},useSimple:function(){vh=!1}}),Mt({target:"Object",stat:!0,forced:!Tr,sham:!Fe},{create:function(e,t){return t===void 0?yi(e):yh(yi(e),t)},defineProperty:Wu,defineProperties:yh,getOwnPropertyDescriptor:Gb}),Mt({target:"Object",stat:!0,forced:!Tr},{getOwnPropertyNames:Qb}),I4(),ci(jo,"Symbol"),Fa[mr]=!0;var F4=Tr&&!!Symbol.for&&!!Symbol.keyFor,gh=Ni("string-to-symbol-registry"),Wk=Ni("symbol-to-string-registry");Mt({target:"Symbol",stat:!0,forced:!F4},{for:function(e){var t=jn(e);if(oe(gh,t))return gh[t];var r=en("Symbol")(t);return gh[t]=r,Wk[r]=t,r}});var Kb=Ni("symbol-to-string-registry");Mt({target:"Symbol",stat:!0,forced:!F4},{keyFor:function(e){if(!sa(e))throw TypeError(Da(e)+" is not a symbol");if(oe(Kb,e))return Kb[e]}});var L4=Function.prototype,Yb=L4.apply,Xb=L4.call,M4=typeof Reflect=="object"&&Reflect.apply||(gl?Xb.bind(Yb):function(){return Xb.apply(Yb,arguments)}),Ty=we([].slice),fi=en("JSON","stringify"),Bl=we(/./.exec),Jb=we("".charAt),Hk=we("".charCodeAt),Gk=we("".replace),Qk=we(1 .toString),Kk=/[\uD800-\uDFFF]/g,Zb=/^[\uD800-\uDBFF]$/,e1=/^[\uDC00-\uDFFF]$/,t1=!Tr||Ge(function(){var e=en("Symbol")();return fi([e])!="[null]"||fi({a:e})!="{}"||fi(Object(e))!="{}"}),r1=Ge(function(){return fi("\uDF06\uD834")!=='"\\udf06\\ud834"'||fi("\uDEAD")!=='"\\udead"'}),Yk=function(e,t){var r=Ty(arguments),n=t;if((Ze(t)||e!==void 0)&&!sa(e))return qu(t)||(t=function(i,o){if(Ue(n)&&(o=rr(n,this,i,o)),!sa(o))return o}),r[1]=t,M4(fi,null,r)},Xk=function(e,t,r){var n=Jb(r,t-1),i=Jb(r,t+1);return Bl(Zb,e)&&!Bl(e1,i)||Bl(e1,e)&&!Bl(Zb,n)?"\\u"+Qk(Hk(e,0),16):e};fi&&Mt({target:"JSON",stat:!0,arity:3,forced:t1||r1},{stringify:function(e,t,r){var n=Ty(arguments),i=M4(t1?Yk:fi,null,n);return r1&&typeof i=="string"?Gk(i,Kk,Xk):i}});var Jk=!Tr||Ge(function(){gf.f(1)});Mt({target:"Object",stat:!0,forced:Jk},{getOwnPropertySymbols:function(e){var t=gf.f;return t?t(Ra(e)):[]}}),hr("asyncIterator");var Zk=Xt.f,Cn=me.Symbol,Fi=Cn&&Cn.prototype;if(Fe&&Ue(Cn)&&(!("description"in Fi)||Cn().description!==void 0)){var n1={},ql=function(){var e=arguments.length<1||arguments[0]===void 0?void 0:jn(arguments[0]),t=oo(Fi,this)?new Cn(e):e===void 0?Cn():Cn(e);return e===""&&(n1[t]=!0),t};v4(ql,Cn),ql.prototype=Fi,Fi.constructor=ql;var e6=String(Cn("test"))=="Symbol(test)",t6=we(Fi.valueOf),r6=we(Fi.toString),n6=/^Symbol\((.*)\)[^)]+$/,i6=we("".replace),o6=we("".slice);Zk(Fi,"description",{configurable:!0,get:function(){var e=t6(this);if(oe(n1,e))return"";var t=r6(e),r=e6?o6(t,7,-1):i6(t,n6,"$1");return r===""?void 0:r}}),Mt({global:!0,constructor:!0,forced:!0},{Symbol:ql})}hr("hasInstance"),hr("isConcatSpreadable"),hr("iterator"),hr("match"),hr("matchAll"),hr("replace"),hr("search"),hr("species"),hr("split"),hr("toPrimitive"),I4(),hr("toStringTag"),ci(en("Symbol"),"Symbol"),hr("unscopables"),ci(me.JSON,"JSON",!0),ci(Math,"Math",!0),Mt({global:!0},{Reflect:{}}),ci(me.Reflect,"Reflect",!0),qs.Symbol;var Ji,i1,o1,a6=we("".charAt),a1=we("".charCodeAt),s6=we("".slice),s1=function(e){return function(t,r){var n,i,o=jn(bl(t)),a=_y(r),s=o.length;return a<0||a>=s?e?"":void 0:(n=a1(o,a))<55296||n>56319||a+1===s||(i=a1(o,a+1))<56320||i>57343?e?a6(o,a):n:e?s6(o,a,a+2):i-56320+(n-55296<<10)+65536}},l6={codeAt:s1(!1),charAt:s1(!0)},c6=!Ge(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),l1=yf("IE_PROTO"),n0=Object,u6=n0.prototype,gi=c6?n0.getPrototypeOf:function(e){var t=Ra(e);if(oe(t,l1))return t[l1];var r=t.constructor;return Ue(r)&&t instanceof r?r.prototype:t instanceof n0?u6:null},i0=gt("iterator"),j4=!1;[].keys&&("next"in(o1=[].keys())?(i1=gi(gi(o1)))!==Object.prototype&&(Ji=i1):j4=!0);var d6=!Ze(Ji)||Ge(function(){var e={};return Ji[i0].call(e)!==e});d6&&(Ji={}),Ue(Ji[i0])||or(Ji,i0,function(){return this});var Py={IteratorPrototype:Ji,BUGGY_SAFARI_ITERATORS:j4},ca={},f6=Py.IteratorPrototype,h6=function(){return this},p6=String,v6=TypeError,yn=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=we(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch{}return function(n,i){return Lt(n),function(o){if(typeof o=="object"||Ue(o))return o;throw v6("Can't set "+p6(o)+" as a prototype")}(i),t?e(n,i):n.__proto__=i,n}}():void 0),m6=wy.PROPER,y6=wy.CONFIGURABLE,c1=Py.IteratorPrototype,Wl=Py.BUGGY_SAFARI_ITERATORS,ts=gt("iterator"),g6=function(){return this},Iy=function(e,t,r,n,i,o,a){(function(b,y,g,$){var _=y+" Iterator";b.prototype=yi(f6,{next:io(+!$,g)}),ci(b,_,!1),ca[_]=h6})(r,t,n);var s,l,c,u=function(b){if(b===i&&m)return m;if(!Wl&&b in h)return h[b];switch(b){case"keys":case"values":case"entries":return function(){return new r(this,b)}}return function(){return new r(this)}},d=t+" Iterator",f=!1,h=e.prototype,p=h[ts]||h["@@iterator"]||i&&h[i],m=!Wl&&p||u(i),v=t=="Array"&&h.entries||p;if(v&&(s=gi(v.call(new e)))!==Object.prototype&&s.next&&(gi(s)!==c1&&(yn?yn(s,c1):Ue(s[ts])||or(s,ts,g6)),ci(s,d,!0)),m6&&i=="values"&&p&&p.name!=="values"&&(y6?mf(h,"name","values"):(f=!0,m=function(){return rr(p,this)})),i)if(l={values:u("values"),keys:o?m:u("keys"),entries:u("entries")},a)for(c in l)(Wl||f||!(c in h))&&or(h,c,l[c]);else Mt({target:t,proto:!0,forced:Wl||f},l);return h[ts]!==m&&or(h,ts,m,{name:i}),ca[t]=m,l},ua=function(e,t){return{value:e,done:t}},b6=l6.charAt,$6=Fr.set,w6=Fr.getterFor("String Iterator");Iy(String,"String",function(e){$6(this,{type:"String Iterator",string:jn(e),index:0})},function(){var e,t=w6(this),r=t.string,n=t.index;return n>=r.length?ua(void 0,!0):(e=b6(r,n),t.index+=e.length,ua(e,!1))});var o0=function(e,t,r){var n,i;Lt(e);try{if(!(n=Vu(e,"return"))){if(t==="throw")throw r;return r}n=rr(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return Lt(n),r},_6=function(e,t,r,n){try{return n?t(Lt(r)[0],r[1]):t(r)}catch(i){o0(e,"throw",i)}},x6=gt("iterator"),E6=Array.prototype,V4=function(e){return e!==void 0&&(ca.Array===e||E6[x6]===e)},S6=gt("iterator"),Ny=function(e){if(!Aa(e))return Vu(e,S6)||Vu(e,"@@iterator")||ca[go(e)]},O6=TypeError,z4=function(e,t){var r=arguments.length<2?Ny(e):t;if(by(r))return Lt(rr(r,e));throw O6(Da(e)+" is not iterable")},u1=Array,U4=gt("iterator"),B4=!1;try{var k6=0,d1={next:function(){return{done:!!k6++}},return:function(){B4=!0}};d1[U4]=function(){return this},Array.from(d1,function(){throw 2})}catch{}var q4=function(e,t){if(!t&&!B4)return!1;var r=!1;try{var n={};n[U4]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},C6=!q4(function(e){Array.from(e)});Mt({target:"Array",stat:!0,forced:C6},{from:function(e){var t=Ra(e),r=Oy(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=i!==void 0;o&&(i=bf(i,n>2?arguments[2]:void 0));var a,s,l,c,u,d,f=Ny(t),h=0;if(!f||this===u1&&V4(f))for(a=La(t),s=r?new this(a):u1(a);a>h;h++)d=o?i(t[h],h):t[h],Bs(s,h,d);else for(u=(c=z4(t,f)).next,s=r?new this:[];!(l=rr(u,c)).done;h++)d=o?_6(c,i,[l.value,h],!0):l.value,Bs(s,h,d);return s.length=h,s}}),qs.Array.from;var gr,Ko,Hu,T6=typeof ArrayBuffer<"u"&&typeof DataView<"u",P6=Xt.f,W4=Fr.enforce,I6=Fr.get,Gu=me.Int8Array,a0=Gu&&Gu.prototype,f1=me.Uint8ClampedArray,h1=f1&&f1.prototype,sn=Gu&&gi(Gu),Kr=a0&&gi(a0),N6=Object.prototype,s0=me.TypeError,p1=gt("toStringTag"),l0=la("TYPED_ARRAY_TAG"),Fn=T6&&!!yn&&go(me.opera)!=="Opera",H4=!1,Pn={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Ay={BigInt64Array:8,BigUint64Array:8},G4=function(e){var t=gi(e);if(Ze(t)){var r=I6(t);return r&&oe(r,"TypedArrayConstructor")?r.TypedArrayConstructor:G4(t)}},v1=function(e){if(!Ze(e))return!1;var t=go(e);return oe(Pn,t)||oe(Ay,t)};for(gr in Pn)(Hu=(Ko=me[gr])&&Ko.prototype)?W4(Hu).TypedArrayConstructor=Ko:Fn=!1;for(gr in Ay)(Hu=(Ko=me[gr])&&Ko.prototype)&&(W4(Hu).TypedArrayConstructor=Ko);if((!Fn||!Ue(sn)||sn===Function.prototype)&&(sn=function(){throw s0("Incorrect invocation")},Fn))for(gr in Pn)me[gr]&&yn(me[gr],sn);if((!Fn||!Kr||Kr===N6)&&(Kr=sn.prototype,Fn))for(gr in Pn)me[gr]&&yn(me[gr].prototype,Kr);if(Fn&&gi(h1)!==Kr&&yn(h1,Kr),Fe&&!oe(Kr,p1))for(gr in H4=!0,P6(Kr,p1,{get:function(){return Ze(this)?this[l0]:void 0}}),Pn)me[gr]&&mf(me[gr],l0,gr);var wf={NATIVE_ARRAY_BUFFER_VIEWS:Fn,TYPED_ARRAY_TAG:H4&&l0,aTypedArray:function(e){if(v1(e))return e;throw s0("Target is not a typed array")},aTypedArrayConstructor:function(e){if(Ue(e)&&(!yn||oo(sn,e)))return e;throw s0(Da(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(Fe){if(r)for(var i in Pn){var o=me[i];if(o&&oe(o.prototype,e))try{delete o.prototype[e]}catch{try{o.prototype[e]=t}catch{}}}Kr[e]&&!r||or(Kr,e,r?t:Fn&&a0[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,i;if(Fe){if(yn){if(r){for(n in Pn)if((i=me[n])&&oe(i,e))try{delete i[e]}catch{}}if(sn[e]&&!r)return;try{return or(sn,e,r?t:Fn&&sn[e]||t)}catch{}}for(n in Pn)!(i=me[n])||i[e]&&!r||or(i,e,t)}},getTypedArrayConstructor:G4,isView:function(e){if(!Ze(e))return!1;var t=go(e);return t==="DataView"||oe(Pn,t)||oe(Ay,t)},isTypedArray:v1,TypedArray:sn,TypedArrayPrototype:Kr},A6=TypeError,D6=gt("species"),R6=function(e,t){var r,n=Lt(e).constructor;return n===void 0||Aa(r=Lt(n)[D6])?t:function(i){if(Oy(i))return i;throw A6(Da(i)+" is not a constructor")}(r)},F6=wf.aTypedArrayConstructor,L6=wf.getTypedArrayConstructor,M6=wf.aTypedArray;(0,wf.exportTypedArrayMethod)("slice",function(e,t){for(var r,n=Ty(M6(this),e,t),i=F6(R6(r=this,L6(r))),o=0,a=n.length,s=new i(a);a>o;)s[o]=n[o++];return s},Ge(function(){new Int8Array(1).slice()}));var j6=Xt.f,c0=gt("unscopables"),u0=Array.prototype;u0[c0]==null&&j6(u0,c0,{configurable:!0,value:yi(null)});var xc=function(e){u0[c0][e]=!0},V6=h4.includes,z6=Ge(function(){return!Array(1).includes()});Mt({target:"Array",proto:!0,forced:z6},{includes:function(e){return V6(this,e,arguments.length>1?arguments[1]:void 0)}}),xc("includes"),Ey("Array","includes");var U6=we("".indexOf);Mt({target:"String",proto:!0,forced:!g4("includes")},{includes:function(e){return!!~U6(jn(bl(this)),jn(y4(e)),arguments.length>1?arguments[1]:void 0)}}),Ey("String","includes");var B6=Xt.f,q6=Fr.set,W6=Fr.getterFor("Array Iterator");Iy(Array,"Array",function(e,t){q6(this,{type:"Array Iterator",target:xn(e),index:0,kind:t})},function(){var e=W6(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,ua(void 0,!0)):ua(r=="keys"?n:r=="values"?t[n]:[n,t[n]],!1)},"values");var m1=ca.Arguments=ca.Array;if(xc("keys"),xc("values"),xc("entries"),Fe&&m1.name!=="values")try{B6(m1,"name",{value:"values"})}catch{}var y1=Ge(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Hl=Object.isExtensible,bh=Ge(function(){Hl(1)})||y1?function(e){return!!Ze(e)&&(!y1||Rn(e)!="ArrayBuffer")&&(!Hl||Hl(e))}:Hl,H6=!Ge(function(){return Object.isExtensible(Object.preventExtensions({}))}),Vo=Na(function(e){var t=Xt.f,r=!1,n=la("meta"),i=0,o=function(s){t(s,n,{value:{objectID:"O"+i++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},r=!0;var s=Us.f,l=we([].splice),c={};c[n]=1,s(c).length&&(Us.f=function(u){for(var d=s(u),f=0,h=d.length;f<h;f++)if(d[f]===n){l(d,f,1);break}return d},Mt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Cy.f}))},fastKey:function(s,l){if(!Ze(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!oe(s,n)){if(!bh(s))return"F";if(!l)return"E";o(s)}return s[n].objectID},getWeakData:function(s,l){if(!oe(s,n)){if(!bh(s))return!0;if(!l)return!1;o(s)}return s[n].weakData},onFreeze:function(s){return H6&&r&&bh(s)&&!oe(s,n)&&o(s),s}};Fa[n]=!0});Vo.enable,Vo.fastKey,Vo.getWeakData,Vo.onFreeze;var G6=TypeError,Ec=function(e,t){this.stopped=e,this.result=t},g1=Ec.prototype,Q4=function(e,t,r){var n,i,o,a,s,l,c,u=r&&r.that,d=!(!r||!r.AS_ENTRIES),f=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),m=bf(t,u),v=function(y){return n&&o0(n,"normal",y),new Ec(!0,y)},b=function(y){return d?(Lt(y),p?m(y[0],y[1],v):m(y[0],y[1])):p?m(y,v):m(y)};if(f)n=e.iterator;else if(h)n=e;else{if(!(i=Ny(e)))throw G6(Da(e)+" is not iterable");if(V4(i)){for(o=0,a=La(e);a>o;o++)if((s=b(e[o]))&&oo(g1,s))return s;return new Ec(!1)}n=z4(e,i)}for(l=f?e.next:n.next;!(c=rr(l,n)).done;){try{s=b(c.value)}catch(y){o0(n,"throw",y)}if(typeof s=="object"&&s&&oo(g1,s))return s}return new Ec(!1)},Q6=TypeError,K4=function(e,t){if(oo(t,e))return e;throw Q6("Incorrect invocation")},b1=function(e,t,r){for(var n in t)or(e,n,t[n],r);return e},$1=gt("species"),K6=Xt.f,w1=Vo.fastKey,_1=Fr.set,$h=Fr.getterFor,Y6={getConstructor:function(e,t,r,n){var i=e(function(c,u){K4(c,o),_1(c,{type:t,index:yi(null),first:void 0,last:void 0,size:0}),Fe||(c.size=0),Aa(u)||Q4(u,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=$h(t),s=function(c,u,d){var f,h,p=a(c),m=l(c,u);return m?m.value=d:(p.last=m={index:h=w1(u,!0),key:u,value:d,previous:f=p.last,next:void 0,removed:!1},p.first||(p.first=m),f&&(f.next=m),Fe?p.size++:c.size++,h!=="F"&&(p.index[h]=m)),c},l=function(c,u){var d,f=a(c),h=w1(u);if(h!=="F")return f.index[h];for(d=f.first;d;d=d.next)if(d.key==u)return d};return b1(o,{clear:function(){for(var c=a(this),u=c.index,d=c.first;d;)d.removed=!0,d.previous&&(d.previous=d.previous.next=void 0),delete u[d.index],d=d.next;c.first=c.last=void 0,Fe?c.size=0:this.size=0},delete:function(c){var u=this,d=a(u),f=l(u,c);if(f){var h=f.next,p=f.previous;delete d.index[f.index],f.removed=!0,p&&(p.next=h),h&&(h.previous=p),d.first==f&&(d.first=h),d.last==f&&(d.last=p),Fe?d.size--:u.size--}return!!f},forEach:function(c){for(var u,d=a(this),f=bf(c,arguments.length>1?arguments[1]:void 0);u=u?u.next:d.first;)for(f(u.value,u.key,this);u&&u.removed;)u=u.previous},has:function(c){return!!l(this,c)}}),b1(o,r?{get:function(c){var u=l(this,c);return u&&u.value},set:function(c,u){return s(this,c===0?0:c,u)}}:{add:function(c){return s(this,c=c===0?0:c,c)}}),Fe&&K6(o,"size",{get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=$h(t),o=$h(n);Iy(e,t,function(a,s){_1(this,{type:n,target:a,state:i(a),kind:s,last:void 0})},function(){for(var a=o(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return a.target&&(a.last=l=l?l.next:a.state.first)?ua(s=="keys"?l.key:s=="values"?l.value:[l.key,l.value],!1):(a.target=void 0,ua(void 0,!0))},r?"entries":"values",!r,!0),function(a){var s=en(a),l=Xt.f;Fe&&s&&!s[$1]&&l(s,$1,{configurable:!0,get:function(){return this}})}(t)}};function Y4(e){var t=this.constructor;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){return t.reject(r)})})}function X4(e){return new this(function(t,r){if(!e||e.length===void 0)return r(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var n=Array.prototype.slice.call(e);if(n.length===0)return t([]);var i=n.length;function o(s,l){if(l&&(typeof l=="object"||typeof l=="function")){var c=l.then;if(typeof c=="function")return void c.call(l,function(u){o(s,u)},function(u){n[s]={status:"rejected",reason:u},--i==0&&t(n)})}n[s]={status:"fulfilled",value:l},--i==0&&t(n)}for(var a=0;a<n.length;a++)o(a,n[a])})}(function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=me[e],s=a&&a.prototype,l=a,c={},u=function(v){var b=we(s[v]);or(s,v,v=="add"?function(y){return b(this,y===0?0:y),this}:v=="delete"?function(y){return!(i&&!Ze(y))&&b(this,y===0?0:y)}:v=="get"?function(y){return i&&!Ze(y)?void 0:b(this,y===0?0:y)}:v=="has"?function(y){return!(i&&!Ze(y))&&b(this,y===0?0:y)}:function(y,g){return b(this,y===0?0:y,g),this})};if(e0(e,!Ue(a)||!(i||s.forEach&&!Ge(function(){new a().entries().next()}))))l=r.getConstructor(t,e,n,o),Vo.enable();else if(e0(e,!0)){var d=new l,f=d[o](i?{}:-0,1)!=d,h=Ge(function(){d.has(1)}),p=q4(function(v){new a(v)}),m=!i&&Ge(function(){for(var v=new a,b=5;b--;)v[o](b,b);return!v.has(-0)});p||((l=t(function(v,b){K4(v,s);var y=function(g,$,_){var S,w;return yn&&Ue(S=$.constructor)&&S!==_&&Ze(w=S.prototype)&&w!==_.prototype&&yn(g,w),g}(new a,v,l);return Aa(b)||Q4(b,y[o],{that:y,AS_ENTRIES:n}),y})).prototype=s,s.constructor=l),(h||m)&&(u("delete"),u("has"),n&&u("get")),(m||f)&&u(o),i&&s.clear&&delete s.clear}c[e]=l,Mt({global:!0,constructor:!0,forced:l!=a},c),ci(l,e),i||r.setStrong(l,e,n)})("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Y6),qs.Set;var X6=setTimeout;function x1(e){return!!(e&&e.length!==void 0)}function J6(){}function at(e){if(!(this instanceof at))throw new TypeError("Promises must be constructed via new");if(typeof e!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],Z4(e,this)}function J4(e,t){for(;e._state===3;)e=e._value;e._state!==0?(e._handled=!0,at._immediateFn(function(){var r=e._state===1?t.onFulfilled:t.onRejected;if(r!==null){var n;try{n=r(e._value)}catch(i){return void Ws(t.promise,i)}d0(t.promise,n)}else(e._state===1?d0:Ws)(t.promise,e._value)})):e._deferreds.push(t)}function d0(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&(typeof t=="object"||typeof t=="function")){var r=t.then;if(t instanceof at)return e._state=3,e._value=t,void f0(e);if(typeof r=="function")return void Z4((n=r,i=t,function(){n.apply(i,arguments)}),e)}e._state=1,e._value=t,f0(e)}catch(o){Ws(e,o)}var n,i}function Ws(e,t){e._state=2,e._value=t,f0(e)}function f0(e){e._state===2&&e._deferreds.length===0&&at._immediateFn(function(){e._handled||at._unhandledRejectionFn(e._value)});for(var t=0,r=e._deferreds.length;t<r;t++)J4(e,e._deferreds[t]);e._deferreds=null}function Z6(e,t,r){this.onFulfilled=typeof e=="function"?e:null,this.onRejected=typeof t=="function"?t:null,this.promise=r}function Z4(e,t){var r=!1;try{e(function(n){r||(r=!0,d0(t,n))},function(n){r||(r=!0,Ws(t,n))})}catch(n){if(r)return;r=!0,Ws(t,n)}}at.prototype.catch=function(e){return this.then(null,e)},at.prototype.then=function(e,t){var r=new this.constructor(J6);return J4(this,new Z6(e,t,r)),r},at.prototype.finally=Y4,at.all=function(e){return new at(function(t,r){if(!x1(e))return r(new TypeError("Promise.all accepts an array"));var n=Array.prototype.slice.call(e);if(n.length===0)return t([]);var i=n.length;function o(s,l){try{if(l&&(typeof l=="object"||typeof l=="function")){var c=l.then;if(typeof c=="function")return void c.call(l,function(u){o(s,u)},r)}n[s]=l,--i==0&&t(n)}catch(u){r(u)}}for(var a=0;a<n.length;a++)o(a,n[a])})},at.allSettled=X4,at.resolve=function(e){return e&&typeof e=="object"&&e.constructor===at?e:new at(function(t){t(e)})},at.reject=function(e){return new at(function(t,r){r(e)})},at.race=function(e){return new at(function(t,r){if(!x1(e))return r(new TypeError("Promise.race accepts an array"));for(var n=0,i=e.length;n<i;n++)at.resolve(e[n]).then(t,r)})},at._immediateFn=typeof setImmediate=="function"&&function(e){setImmediate(e)}||function(e){X6(e,0)},at._unhandledRejectionFn=function(e){typeof console<"u"&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var So=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}();typeof So.Promise!="function"?So.Promise=at:(So.Promise.prototype.finally||(So.Promise.prototype.finally=Y4),So.Promise.allSettled||(So.Promise.allSettled=X4)),function(e){function t(h){for(var p=0,m=Math.min(65536,h.length+1),v=new Uint16Array(m),b=[],y=0;;){var g=p<h.length;if(!g||y>=m-1){var $=v.subarray(0,y);if(b.push(String.fromCharCode.apply(null,$)),!g)return b.join("");h=h.subarray(p),p=0,y=0}var _=h[p++];if(!(128&_))v[y++]=_;else if((224&_)==192){var S=63&h[p++];v[y++]=(31&_)<<6|S}else if((240&_)==224){S=63&h[p++];var w=63&h[p++];v[y++]=(31&_)<<12|S<<6|w}else if((248&_)==240){var k=(7&_)<<18|(S=63&h[p++])<<12|(w=63&h[p++])<<6|63&h[p++];k>65535&&(k-=65536,v[y++]=k>>>10&1023|55296,k=56320|1023&k),v[y++]=k}}}var r="Failed to ",n=function(h,p,m){if(h)throw new Error("".concat(r).concat(p,": the '").concat(m,"' option is unsupported."))},i=typeof Buffer=="function"&&Buffer.from,o=i?function(h){return Buffer.from(h)}:function(h){for(var p=0,m=h.length,v=0,b=Math.max(32,m+(m>>>1)+7),y=new Uint8Array(b>>>3<<3);p<m;){var g=h.charCodeAt(p++);if(g>=55296&&g<=56319){if(p<m){var $=h.charCodeAt(p);(64512&$)==56320&&(++p,g=((1023&g)<<10)+(1023&$)+65536)}if(g>=55296&&g<=56319)continue}if(v+4>y.length){b+=8,b=(b*=1+p/h.length*2)>>>3<<3;var _=new Uint8Array(b);_.set(y),y=_}if(4294967168&g){if(!(4294965248&g))y[v++]=g>>>6&31|192;else if(!(4294901760&g))y[v++]=g>>>12&15|224,y[v++]=g>>>6&63|128;else{if(4292870144&g)continue;y[v++]=g>>>18&7|240,y[v++]=g>>>12&63|128,y[v++]=g>>>6&63|128}y[v++]=63&g|128}else y[v++]=g}return y.slice?y.slice(0,v):y.subarray(0,v)};function a(){this.encoding="utf-8"}a.prototype.encode=function(h,p){return n(p&&p.stream,"encode","stream"),o(h)};var s=!i&&typeof Blob=="function"&&typeof URL=="function"&&typeof URL.createObjectURL=="function",l=["utf-8","utf8","unicode-1-1-utf-8"],c=t;i?c=function(h,p){return(h instanceof Buffer?h:Buffer.from(h.buffer,h.byteOffset,h.byteLength)).toString(p)}:s&&(c=function(h){try{return function(p){var m;try{var v=new Blob([p],{type:"text/plain;charset=UTF-8"});m=URL.createObjectURL(v);var b=new XMLHttpRequest;return b.open("GET",m,!1),b.send(),b.responseText}finally{m&&URL.revokeObjectURL(m)}}(h)}catch{return t(h)}});var u="construct 'TextDecoder'",d="".concat(r," ").concat(u,": the ");function f(h,p){if(n(p&&p.fatal,u,"fatal"),h=h||"utf-8",!(i?Buffer.isEncoding(h):l.indexOf(h.toLowerCase())!==-1))throw new RangeError("".concat(d," encoding label provided ('").concat(h,"') is invalid."));this.encoding=h,this.fatal=!1,this.ignoreBOM=!1}f.prototype.decode=function(h,p){var m;return n(p&&p.stream,"decode","stream"),m=h instanceof Uint8Array?h:h.buffer instanceof ArrayBuffer?new Uint8Array(h.buffer):new Uint8Array(h),c(m,this.encoding)},e.TextEncoder=e.TextEncoder||a,e.TextDecoder=e.TextDecoder||f}(typeof window<"u"?window:dn),function(){function e(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function t(v,b){for(var y=0;y<b.length;y++){var g=b[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(v,g.key,g)}}function r(v,b,y){return b&&t(v.prototype,b),y&&t(v,y),v}function n(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(b&&b.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),b&&o(v,b)}function i(v){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(b){return b.__proto__||Object.getPrototypeOf(b)},i(v)}function o(v,b){return o=Object.setPrototypeOf||function(y,g){return y.__proto__=g,y},o(v,b)}function a(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function s(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function l(v,b){return!b||typeof b!="object"&&typeof b!="function"?s(v):b}function c(v){var b=a();return function(){var y,g=i(v);if(b){var $=i(this).constructor;y=Reflect.construct(g,arguments,$)}else y=g.apply(this,arguments);return l(this,y)}}function u(v,b){for(;!Object.prototype.hasOwnProperty.call(v,b)&&(v=i(v))!==null;);return v}function d(v,b,y){return d=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(g,$,_){var S=u(g,$);if(S){var w=Object.getOwnPropertyDescriptor(S,$);return w.get?w.get.call(_):w.value}},d(v,b,y||v)}var f=function(){function v(){e(this,v),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return r(v,[{key:"addEventListener",value:function(b,y,g){b in this.listeners||(this.listeners[b]=[]),this.listeners[b].push({callback:y,options:g})}},{key:"removeEventListener",value:function(b,y){if(b in this.listeners){for(var g=this.listeners[b],$=0,_=g.length;$<_;$++)if(g[$].callback===y)return void g.splice($,1)}}},{key:"dispatchEvent",value:function(b){if(b.type in this.listeners){for(var y=this.listeners[b.type].slice(),g=0,$=y.length;g<$;g++){var _=y[g];try{_.callback.call(this,b)}catch(S){Promise.resolve().then(function(){throw S})}_.options&&_.options.once&&this.removeEventListener(b.type,_.callback)}return!b.defaultPrevented}}}]),v}(),h=function(v){n(y,v);var b=c(y);function y(){var g;return e(this,y),(g=b.call(this)).listeners||f.call(s(g)),Object.defineProperty(s(g),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(s(g),"onabort",{value:null,writable:!0,configurable:!0}),g}return r(y,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(g){g.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,g)),d(i(y.prototype),"dispatchEvent",this).call(this,g)}}]),y}(f),p=function(){function v(){e(this,v),Object.defineProperty(this,"signal",{value:new h,writable:!0,configurable:!0})}return r(v,[{key:"abort",value:function(){var b;try{b=new Event("abort")}catch{typeof document<"u"?document.createEvent?(b=document.createEvent("Event")).initEvent("abort",!1,!1):(b=document.createEventObject()).type="abort":b={type:"abort",bubbles:!1,cancelable:!1}}this.signal.dispatchEvent(b)}},{key:"toString",value:function(){return"[object AbortController]"}}]),v}();function m(v){return v.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof v.Request=="function"&&!v.Request.prototype.hasOwnProperty("signal")||!v.AbortController}typeof Symbol<"u"&&Symbol.toStringTag&&(p.prototype[Symbol.toStringTag]="AbortController",h.prototype[Symbol.toStringTag]="AbortSignal"),function(v){m(v)&&(v.AbortController=p,v.AbortSignal=h)}(typeof self<"u"?self:dn)}();var Vi=Na(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function n(){var i=this;this.locked=new Map,this.addToLocked=function(o,a){var s=i.locked.get(o);s===void 0?a===void 0?i.locked.set(o,[]):i.locked.set(o,[a]):a!==void 0&&(s.unshift(a),i.locked.set(o,s))},this.isLocked=function(o){return i.locked.has(o)},this.lock=function(o){return new Promise(function(a,s){i.isLocked(o)?i.addToLocked(o,a):(i.addToLocked(o),a())})},this.unlock=function(o){var a=i.locked.get(o);if(a!==void 0&&a.length!==0){var s=a.pop();i.locked.set(o,a),s!==void 0&&setTimeout(s,0)}else i.locked.delete(o)}}return n.getInstance=function(){return n.instance===void 0&&(n.instance=new n),n.instance},n}();t.default=function(){return r.getInstance()}});my(Vi);var e7=Na(function(e,t){var r=dn&&dn.__awaiter||function(l,c,u,d){return new(u||(u=Promise))(function(f,h){function p(b){try{v(d.next(b))}catch(y){h(y)}}function m(b){try{v(d.throw(b))}catch(y){h(y)}}function v(b){b.done?f(b.value):new u(function(y){y(b.value)}).then(p,m)}v((d=d.apply(l,c||[])).next())})},n=dn&&dn.__generator||function(l,c){var u,d,f,h,p={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return h={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function m(v){return function(b){return function(y){if(u)throw new TypeError("Generator is already executing.");for(;p;)try{if(u=1,d&&(f=2&y[0]?d.return:y[0]?d.throw||((f=d.return)&&f.call(d),0):d.next)&&!(f=f.call(d,y[1])).done)return f;switch(d=0,f&&(y=[2&y[0],f.value]),y[0]){case 0:case 1:f=y;break;case 4:return p.label++,{value:y[1],done:!1};case 5:p.label++,d=y[1],y=[0];continue;case 7:y=p.ops.pop(),p.trys.pop();continue;default:if(f=p.trys,!((f=f.length>0&&f[f.length-1])||y[0]!==6&&y[0]!==2)){p=0;continue}if(y[0]===3&&(!f||y[1]>f[0]&&y[1]<f[3])){p.label=y[1];break}if(y[0]===6&&p.label<f[1]){p.label=f[1],f=y;break}if(f&&p.label<f[2]){p.label=f[2],p.ops.push(y);break}f[2]&&p.ops.pop(),p.trys.pop();continue}y=c.call(l,p)}catch(g){y=[6,g],d=0}finally{u=f=0}if(5&y[0])throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}([v,b])}}};Object.defineProperty(t,"__esModule",{value:!0});var i="browser-tabs-lock-key";function o(l){return new Promise(function(c){return setTimeout(c,l)})}function a(l){for(var c="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",u="",d=0;d<l;d++)u+=c[Math.floor(Math.random()*c.length)];return u}var s=function(){function l(){this.acquiredIatSet=new Set,this.id=Date.now().toString()+a(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),l.waiters===void 0&&(l.waiters=[])}return l.prototype.acquireLock=function(c,u){return u===void 0&&(u=5e3),r(this,void 0,void 0,function(){var d,f,h,p,m,v;return n(this,function(b){switch(b.label){case 0:d=Date.now()+a(4),f=Date.now()+u,h=i+"-"+c,p=window.localStorage,b.label=1;case 1:return Date.now()<f?[4,o(30)]:[3,8];case 2:return b.sent(),p.getItem(h)!==null?[3,5]:(m=this.id+"-"+c+"-"+d,[4,o(Math.floor(25*Math.random()))]);case 3:return b.sent(),p.setItem(h,JSON.stringify({id:this.id,iat:d,timeoutKey:m,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,o(30)];case 4:return b.sent(),(v=p.getItem(h))!==null&&(v=JSON.parse(v)).id===this.id&&v.iat===d?(this.acquiredIatSet.add(d),this.refreshLockWhileAcquired(h,d),[2,!0]):[3,7];case 5:return l.lockCorrector(),[4,this.waitForSomethingToChange(f)];case 6:b.sent(),b.label=7;case 7:return d=Date.now()+a(4),[3,1];case 8:return[2,!1]}})})},l.prototype.refreshLockWhileAcquired=function(c,u){return r(this,void 0,void 0,function(){var d=this;return n(this,function(f){return setTimeout(function(){return r(d,void 0,void 0,function(){var h,p;return n(this,function(m){switch(m.label){case 0:return[4,Vi.default().lock(u)];case 1:return m.sent(),this.acquiredIatSet.has(u)?(h=window.localStorage,(p=h.getItem(c))===null?(Vi.default().unlock(u),[2]):((p=JSON.parse(p)).timeRefreshed=Date.now(),h.setItem(c,JSON.stringify(p)),Vi.default().unlock(u),this.refreshLockWhileAcquired(c,u),[2])):(Vi.default().unlock(u),[2])}})})},1e3),[2]})})},l.prototype.waitForSomethingToChange=function(c){return r(this,void 0,void 0,function(){return n(this,function(u){switch(u.label){case 0:return[4,new Promise(function(d){var f=!1,h=Date.now(),p=!1;function m(){if(p||(window.removeEventListener("storage",m),l.removeFromWaiting(m),clearTimeout(v),p=!0),!f){f=!0;var b=50-(Date.now()-h);b>0?setTimeout(d,b):d()}}window.addEventListener("storage",m),l.addToWaiting(m);var v=setTimeout(m,Math.max(0,c-Date.now()))})];case 1:return u.sent(),[2]}})})},l.addToWaiting=function(c){this.removeFromWaiting(c),l.waiters!==void 0&&l.waiters.push(c)},l.removeFromWaiting=function(c){l.waiters!==void 0&&(l.waiters=l.waiters.filter(function(u){return u!==c}))},l.notifyWaiters=function(){l.waiters!==void 0&&l.waiters.slice().forEach(function(c){return c()})},l.prototype.releaseLock=function(c){return r(this,void 0,void 0,function(){return n(this,function(u){switch(u.label){case 0:return[4,this.releaseLock__private__(c)];case 1:return[2,u.sent()]}})})},l.prototype.releaseLock__private__=function(c){return r(this,void 0,void 0,function(){var u,d,f;return n(this,function(h){switch(h.label){case 0:return u=window.localStorage,d=i+"-"+c,(f=u.getItem(d))===null?[2]:(f=JSON.parse(f)).id!==this.id?[3,2]:[4,Vi.default().lock(f.iat)];case 1:h.sent(),this.acquiredIatSet.delete(f.iat),u.removeItem(d),Vi.default().unlock(f.iat),l.notifyWaiters(),h.label=2;case 2:return[2]}})})},l.lockCorrector=function(){for(var c=Date.now()-5e3,u=window.localStorage,d=Object.keys(u),f=!1,h=0;h<d.length;h++){var p=d[h];if(p.includes(i)){var m=u.getItem(p);m!==null&&((m=JSON.parse(m)).timeRefreshed===void 0&&m.timeAcquired<c||m.timeRefreshed!==void 0&&m.timeRefreshed<c)&&(u.removeItem(p),f=!0)}}f&&l.notifyWaiters()},l.waiters=void 0,l}();t.default=s}),t7=my(e7),xl=function(e){function t(r,n){var i=e.call(this,n)||this;return i.error=r,i.error_description=n,Object.setPrototypeOf(i,t.prototype),i}return yo(t,e),t.fromPayload=function(r){return new t(r.error,r.error_description)},t}(Error);(function(e){function t(r,n,i,o){o===void 0&&(o=null);var a=e.call(this,r,n)||this;return a.state=i,a.appState=o,Object.setPrototypeOf(a,t.prototype),a}return yo(t,e),t})(xl);var r7=function(e){function t(){var r=e.call(this,"timeout","Timeout")||this;return Object.setPrototypeOf(r,t.prototype),r}return yo(t,e),t}(xl);(function(e){function t(r){var n=e.call(this)||this;return n.popup=r,Object.setPrototypeOf(n,t.prototype),n}return yo(t,e),t})(r7);(function(e){function t(r){var n=e.call(this,"cancelled","Popup closed")||this;return n.popup=r,Object.setPrototypeOf(n,t.prototype),n}return yo(t,e),t})(xl);(function(e){function t(r,n,i){var o=e.call(this,r,n)||this;return o.mfa_token=i,Object.setPrototypeOf(o,t.prototype),o}return yo(t,e),t})(xl);(function(e){function t(r,n){var i=e.call(this,"missing_refresh_token","Missing Refresh Token (audience: '".concat(E1(r,["default"]),"', scope: '").concat(E1(n),"')"))||this;return i.audience=r,i.scope=n,Object.setPrototypeOf(i,t.prototype),i}return yo(t,e),t})(xl);function E1(e,t){return t===void 0&&(t=[]),e&&!t.includes(e)?e:""}var Gi=Na(function(e,t){var r=dn&&dn.__assign||function(){return r=Object.assign||function(l){for(var c,u=1,d=arguments.length;u<d;u++)for(var f in c=arguments[u])Object.prototype.hasOwnProperty.call(c,f)&&(l[f]=c[f]);return l},r.apply(this,arguments)};function n(l,c){if(!c)return"";var u="; "+l;return c===!0?u:u+"="+c}function i(l,c,u){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(c).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(d){if(typeof d.expires=="number"){var f=new Date;f.setMilliseconds(f.getMilliseconds()+864e5*d.expires),d.expires=f}return n("Expires",d.expires?d.expires.toUTCString():"")+n("Domain",d.domain)+n("Path",d.path)+n("Secure",d.secure)+n("SameSite",d.sameSite)}(u)}function o(l){for(var c={},u=l?l.split("; "):[],d=/(%[\dA-F]{2})+/gi,f=0;f<u.length;f++){var h=u[f].split("="),p=h.slice(1).join("=");p.charAt(0)==='"'&&(p=p.slice(1,-1));try{c[h[0].replace(d,decodeURIComponent)]=p.replace(d,decodeURIComponent)}catch{}}return c}function a(){return o(document.cookie)}function s(l,c,u){document.cookie=i(l,c,r({path:"/"},u))}t.__esModule=!0,t.encode=i,t.parse=o,t.getAll=a,t.get=function(l){return a()[l]},t.set=s,t.remove=function(l,c){s(l,"",r(r({},c),{expires:-1}))}});my(Gi),Gi.encode,Gi.parse,Gi.getAll;Gi.get;Gi.set;Gi.remove;new t7;var wh="Invariant Violation",S1=Object.setPrototypeOf,n7=S1===void 0?function(e,t){return e.__proto__=t,e}:S1,He=function(e){Zr(t,e);function t(r){r===void 0&&(r=wh);var n=e.call(this,typeof r=="number"?wh+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=wh,n7(n,t.prototype),n}return t}(Error);function fe(e,t){if(!e)throw new He(t)}var e5=["debug","log","warn","error","silent"],i7=e5.indexOf("log");function Gl(e){return function(){if(e5.indexOf(e)>=i7){var t=console[e]||console.log;return t.apply(console,arguments)}}}(function(e){e.debug=Gl("debug"),e.log=Gl("log"),e.warn=Gl("warn"),e.error=Gl("error")})(fe||(fe={}));function Pr(e){try{return e()}catch{}}const O1=Pr(function(){return globalThis})||Pr(function(){return window})||Pr(function(){return self})||Pr(function(){return global})||Pr(function(){return Pr.constructor("return this")()});var k1="__",C1=[k1,k1].join("DEV");function o7(){try{return!!__DEV__}catch{return Object.defineProperty(O1,C1,{value:Pr(function(){return"production"})!=="production",enumerable:!1,configurable:!0,writable:!0}),O1[C1]}}const _h=o7();function ri(e){try{return e()}catch{}}var h0=ri(function(){return globalThis})||ri(function(){return window})||ri(function(){return self})||ri(function(){return global})||ri(function(){return ri.constructor("return this")()}),p0=!1;function a7(){h0&&!ri(function(){return"production"})&&!ri(function(){return process})&&(Object.defineProperty(h0,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),p0=!0)}a7();function s7(){p0&&(delete h0.process,p0=!1)}function Sc(e,t){if(!e)throw new Error(t)}function l7(e){return typeof e=="object"&&e!==null}function c7(e,t){if(!e)throw new Error(t??"Unexpected invariant triggered.")}const u7=/\r\n|[\n\r]/g;function v0(e,t){let r=0,n=1;for(const i of e.body.matchAll(u7)){if(typeof i.index=="number"||c7(!1),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}function d7(e){return t5(e.source,v0(e.source,e.start))}function t5(e,t){const r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=t.line===1?r:0,l=t.column+s,c=`${e.name}:${a}:${l}
8
8
  `,u=n.split(/\r\n|[\n\r]/g),d=u[i];if(d.length>120){const f=Math.floor(l/80),h=l%80,p=[];for(let m=0;m<d.length;m+=80)p.push(d.slice(m,m+80));return c+T1([[`${a} |`,p[0]],...p.slice(1,f+1).map(m=>["|",m]),["|","^".padStart(h)],["|",p[f+1]]])}return c+T1([[`${a-1} |`,u[i-1]],[`${a} |`,d],["|","^".padStart(l)],[`${a+1} |`,u[i+1]]])}function T1(e){const t=e.filter(([n,i])=>i!==void 0),r=Math.max(...t.map(([n])=>n.length));return t.map(([n,i])=>n.padStart(r)+(i?" "+i:"")).join(`
9
9
  `)}function f7(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}class Dy extends Error{constructor(t,...r){var n,i,o;const{nodes:a,source:s,positions:l,path:c,originalError:u,extensions:d}=f7(r);super(t),this.name="GraphQLError",this.path=c??void 0,this.originalError=u??void 0,this.nodes=P1(Array.isArray(a)?a:a?[a]:void 0);const f=P1((n=this.nodes)===null||n===void 0?void 0:n.map(p=>p.loc).filter(p=>p!=null));this.source=s??(f==null||(i=f[0])===null||i===void 0?void 0:i.source),this.positions=l??f?.map(p=>p.start),this.locations=l&&s?l.map(p=>v0(s,p)):f?.map(p=>v0(p.source,p.start));const h=l7(u?.extensions)?u?.extensions:void 0;this.extensions=(o=d??h)!==null&&o!==void 0?o: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}}),u!=null&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Dy):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const r of this.nodes)r.loc&&(t+=`
10
10
 
@@ -41,8 +41,8 @@ ${e}. Is your HTML properly formed?`;let i=n.content.firstChild;return r&&(i=i.f
41
41
  `)),`
42
42
  }`)}function xe(e,t,r=""){return t!=null&&t!==""?e+t+r:""}function Oc(e){return xe(" ",e.replace(/\n/g,`
43
43
  `))}function A1(e){var t;return(t=e?.some(r=>r.includes(`
44
- `)))!==null&&t!==void 0?t:!1}function Q7(){return s7()}function K7(){__DEV__?fe(typeof _h=="boolean",_h):fe(typeof _h=="boolean",39)}Q7();K7();function Ry(e,t){var r=e.directives;return!r||!r.length?!0:J7(r).every(function(n){var i=n.directive,o=n.ifArgument,a=!1;return o.value.kind==="Variable"?(a=t&&t[o.value.name.value],__DEV__?fe(a!==void 0,"Invalid variable referenced in @".concat(i.name.value," directive.")):fe(a!==void 0,40)):a=o.value.value,i.name.value==="skip"?!a:a})}function Y7(e,t,r){var n=new Set(e),i=n.size;return Ef(t,{Directive:function(o){if(n.delete(o.name.value)&&(!r||!n.size))return f5}}),r?!n.size:n.size<i}function X7(e){var t=e.name.value;return t==="skip"||t==="include"}function J7(e){var t=[];return e&&e.length&&e.forEach(function(r){if(X7(r)){var n=r.arguments,i=r.name.value;__DEV__?fe(n&&n.length===1,"Incorrect number of arguments for the @".concat(i," directive.")):fe(n&&n.length===1,41);var o=n[0];__DEV__?fe(o.name&&o.name.value==="if","Invalid argument for the @".concat(i," directive.")):fe(o.name&&o.name.value==="if",42);var a=o.value;__DEV__?fe(a&&(a.kind==="Variable"||a.kind==="BooleanValue"),"Argument for the @".concat(i," directive must be a variable or a boolean value.")):fe(a&&(a.kind==="Variable"||a.kind==="BooleanValue"),43),t.push({directive:r,ifArgument:o})}}),t}function Z7(e,t){var r=t,n=[];e.definitions.forEach(function(o){if(o.kind==="OperationDefinition")throw __DEV__?new He("Found a ".concat(o.operation," operation").concat(o.name?" named '".concat(o.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new He(44);o.kind==="FragmentDefinition"&&n.push(o)}),typeof r>"u"&&(__DEV__?fe(n.length===1,"Found ".concat(n.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):fe(n.length===1,45),r=n[0].name.value);var i=M(M({},e),{definitions:Mu([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)});return i}function eC(e){e===void 0&&(e=[]);var t={};return e.forEach(function(r){t[r.name.value]=r}),t}function Fy(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{var r=e.name.value;if(typeof t=="function")return t(r);var n=t&&t[r];return __DEV__?fe(n,"No fragment named ".concat(r)):fe(n,46),n||null}default:return null}}function St(e){return e!==null&&typeof e=="object"}function Yo(e){return{__ref:String(e)}}function De(e){return Boolean(e&&typeof e=="object"&&typeof e.__ref=="string")}function tC(e){return e.kind==="StringValue"}function rC(e){return e.kind==="BooleanValue"}function nC(e){return e.kind==="IntValue"}function iC(e){return e.kind==="FloatValue"}function oC(e){return e.kind==="Variable"}function aC(e){return e.kind==="ObjectValue"}function sC(e){return e.kind==="ListValue"}function lC(e){return e.kind==="EnumValue"}function cC(e){return e.kind==="NullValue"}function da(e,t,r,n){if(nC(r)||iC(r))e[t.value]=Number(r.value);else if(rC(r)||tC(r))e[t.value]=r.value;else if(aC(r)){var i={};r.fields.map(function(a){return da(i,a.name,a.value,n)}),e[t.value]=i}else if(oC(r)){var o=(n||{})[r.name.value];e[t.value]=o}else if(sC(r))e[t.value]=r.values.map(function(a){var s={};return da(s,t,a,n),s[t.value]});else if(lC(r))e[t.value]=r.value;else if(cC(r))e[t.value]=null;else throw __DEV__?new He('The inline argument "'.concat(t.value,'" of kind "').concat(r.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new He(55)}function uC(e,t){var r=null;e.directives&&(r={},e.directives.forEach(function(i){r[i.name.value]={},i.arguments&&i.arguments.forEach(function(o){var a=o.name,s=o.value;return da(r[i.name.value],a,s,t)})}));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(i){var o=i.name,a=i.value;return da(n,o,a,t)})),Ly(e.name.value,n,r)}var dC=["connection","include","skip","client","rest","export"],Ly=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key)if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(s){i[s]=t[s]}),"".concat(r.connection.key,"(").concat(rs(i),")")}else return r.connection.key;var o=e;if(t){var a=rs(t);o+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(s){dC.indexOf(s)===-1&&(r[s]&&Object.keys(r[s]).length?o+="@".concat(s,"(").concat(rs(r[s]),")"):o+="@".concat(s))}),o},{setStringify:function(e){var t=rs;return rs=e,t}}),rs=function(e){return JSON.stringify(e,fC)};function fC(e,t){return St(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(r,n){return r[n]=t[n],r},{})),t}function My(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(n){var i=n.name,o=n.value;return da(r,i,o,t)}),r}return null}function Gs(e){return e.alias?e.alias.value:e.name.value}function g0(e,t,r){if(typeof e.__typename=="string")return e.__typename;for(var n=0,i=t.selections;n<i.length;n++){var o=i[n];if(fa(o)){if(o.name.value==="__typename")return e[Gs(o)]}else{var a=g0(e,Fy(o,r).selectionSet,r);if(typeof a=="string")return a}}}function fa(e){return e.kind==="Field"}function h5(e){__DEV__?fe(e&&e.kind==="Document",'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'):fe(e&&e.kind==="Document",47);var t=e.definitions.filter(function(r){return r.kind!=="FragmentDefinition"}).map(function(r){if(r.kind!=="OperationDefinition")throw __DEV__?new He('Schema type definitions not allowed in queries. Found: "'.concat(r.kind,'"')):new He(48);return r});return __DEV__?fe(t.length<=1,"Ambiguous GraphQL document: contains ".concat(t.length," operations")):fe(t.length<=1,49),e}function jy(e){return h5(e),e.definitions.filter(function(t){return t.kind==="OperationDefinition"})[0]}function hC(e){return e.definitions.filter(function(t){return t.kind==="OperationDefinition"&&!!t.name}).map(function(t){return t.name.value})[0]||null}function pC(e){return e.definitions.filter(function(t){return t.kind==="FragmentDefinition"})}function p5(e){var t=jy(e);return __DEV__?fe(t&&t.operation==="query","Must contain a query definition."):fe(t&&t.operation==="query",50),t}function vC(e){h5(e);for(var t,r=0,n=e.definitions;r<n.length;r++){var i=n[r];if(i.kind==="OperationDefinition"){var o=i.operation;if(o==="query"||o==="mutation"||o==="subscription")return i}i.kind==="FragmentDefinition"&&!t&&(t=i)}if(t)return t;throw __DEV__?new He("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new He(54)}function v5(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(n){n.defaultValue&&da(t,n.variable.name,n.defaultValue)}),t}var vt=Array.isArray;function Qs(e){return Array.isArray(e)&&e.length>0}var D1={kind:ie.FIELD,name:{kind:ie.NAME,value:"__typename"}},Vy=Object.assign(function(e){return Ef(e,{SelectionSet:{enter:function(t,r,n){if(!(n&&n.kind===ie.OPERATION_DEFINITION)){var i=t.selections;if(i){var o=i.some(function(s){return fa(s)&&(s.name.value==="__typename"||s.name.value.lastIndexOf("__",0)===0)});if(!o){var a=n;if(!(fa(a)&&a.directives&&a.directives.some(function(s){return s.name.value==="export"})))return M(M({},t),{selections:Mu(Mu([],i,!0),[D1],!1)})}}}}}})},{added:function(e){return e===D1}}),mC=Object.prototype.hasOwnProperty;function yC(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new ha,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var gC=function(e,t,r){return this.merge(e[r],t[r])},ha=function(){function e(t){t===void 0&&(t=gC),this.reconciler=t,this.isObject=St,this.pastCopies=new Set}return e.prototype.merge=function(t,r){for(var n=this,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];return St(r)&&St(t)?(Object.keys(r).forEach(function(a){if(mC.call(t,a)){var s=t[a];if(r[a]!==s){var l=n.reconciler.apply(n,Mu([t,r,a],i,!1));l!==s&&(t=n.shallowCopyForMerge(t),t[a]=l)}}else t=n.shallowCopyForMerge(t),t[a]=r[a]}),t):r},e.prototype.shallowCopyForMerge=function(t){return St(t)&&(this.pastCopies.has(t)||(Array.isArray(t)?t=t.slice(0):t=M({__proto__:Object.getPrototypeOf(t)},t),this.pastCopies.add(t))),t},e}();function bC(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=$C(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
45
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $C(e,t){if(e){if(typeof e=="string")return R1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return R1(e,t)}}function R1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function F1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function zy(e,t,r){return t&&F1(e.prototype,t),r&&F1(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var Uy=function(){return typeof Symbol=="function"},By=function(e){return Uy()&&Boolean(Symbol[e])},qy=function(e){return By(e)?Symbol[e]:"@@"+e};Uy()&&!By("observable")&&(Symbol.observable=Symbol("observable"));var wC=qy("iterator"),b0=qy("observable"),m5=qy("species");function Qu(e,t){var r=e[t];if(r!=null){if(typeof r!="function")throw new TypeError(r+" is not a function");return r}}function ns(e){var t=e.constructor;return t!==void 0&&(t=t[m5],t===null&&(t=void 0)),t!==void 0?t:pt}function _C(e){return e instanceof pt}function pa(e){pa.log?pa.log(e):setTimeout(function(){throw e})}function kc(e){Promise.resolve().then(function(){try{e()}catch(t){pa(t)}})}function y5(e){var t=e._cleanup;if(t!==void 0&&(e._cleanup=void 0,!!t))try{if(typeof t=="function")t();else{var r=Qu(t,"unsubscribe");r&&r.call(t)}}catch(n){pa(n)}}function $0(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function xC(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(g5(e,t[r].type,t[r].value),e._state!=="closed");++r);}}function g5(e,t,r){e._state="running";var n=e._observer;try{var i=Qu(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if($0(e),i)i.call(n,r);else throw r;break;case"complete":$0(e),i&&i.call(n);break}}catch(o){pa(o)}e._state==="closed"?y5(e):e._state==="running"&&(e._state="ready")}function Eh(e,t,r){if(e._state!=="closed"){if(e._state==="buffering"){e._queue.push({type:t,value:r});return}if(e._state!=="ready"){e._state="buffering",e._queue=[{type:t,value:r}],kc(function(){return xC(e)});return}g5(e,t,r)}}var EC=function(){function e(r,n){this._cleanup=void 0,this._observer=r,this._queue=void 0,this._state="initializing";var i=new SC(this);try{this._cleanup=n.call(void 0,i)}catch(o){i.error(o)}this._state==="initializing"&&(this._state="ready")}var t=e.prototype;return t.unsubscribe=function(){this._state!=="closed"&&($0(this),y5(this))},zy(e,[{key:"closed",get:function(){return this._state==="closed"}}]),e}(),SC=function(){function e(r){this._subscription=r}var t=e.prototype;return t.next=function(r){Eh(this._subscription,"next",r)},t.error=function(r){Eh(this._subscription,"error",r)},t.complete=function(){Eh(this._subscription,"complete")},zy(e,[{key:"closed",get:function(){return this._subscription._state==="closed"}}]),e}(),pt=function(){function e(r){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if(typeof r!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=r}var t=e.prototype;return t.subscribe=function(r){return(typeof r!="object"||r===null)&&(r={next:r,error:arguments[1],complete:arguments[2]}),new EC(r,this._subscriber)},t.forEach=function(r){var n=this;return new Promise(function(i,o){if(typeof r!="function"){o(new TypeError(r+" is not a function"));return}function a(){s.unsubscribe(),i()}var s=n.subscribe({next:function(l){try{r(l,a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i})})},t.map=function(r){var n=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var i=ns(this);return new i(function(o){return n.subscribe({next:function(a){try{a=r(a)}catch(s){return o.error(s)}o.next(a)},error:function(a){o.error(a)},complete:function(){o.complete()}})})},t.filter=function(r){var n=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var i=ns(this);return new i(function(o){return n.subscribe({next:function(a){try{if(!r(a))return}catch(s){return o.error(s)}o.next(a)},error:function(a){o.error(a)},complete:function(){o.complete()}})})},t.reduce=function(r){var n=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var i=ns(this),o=arguments.length>1,a=!1,s=arguments[1],l=s;return new i(function(c){return n.subscribe({next:function(u){var d=!a;if(a=!0,!d||o)try{l=r(l,u)}catch(f){return c.error(f)}else l=u},error:function(u){c.error(u)},complete:function(){if(!a&&!o)return c.error(new TypeError("Cannot reduce an empty sequence"));c.next(l),c.complete()}})})},t.concat=function(){for(var r=this,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=ns(this);return new a(function(s){var l,c=0;function u(d){l=d.subscribe({next:function(f){s.next(f)},error:function(f){s.error(f)},complete:function(){c===i.length?(l=void 0,s.complete()):u(a.from(i[c++]))}})}return u(r),function(){l&&(l.unsubscribe(),l=void 0)}})},t.flatMap=function(r){var n=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var i=ns(this);return new i(function(o){var a=[],s=n.subscribe({next:function(c){if(r)try{c=r(c)}catch(d){return o.error(d)}var u=i.from(c).subscribe({next:function(d){o.next(d)},error:function(d){o.error(d)},complete:function(){var d=a.indexOf(u);d>=0&&a.splice(d,1),l()}});a.push(u)},error:function(c){o.error(c)},complete:function(){l()}});function l(){s.closed&&a.length===0&&o.complete()}return function(){a.forEach(function(c){return c.unsubscribe()}),s.unsubscribe()}})},t[b0]=function(){return this},e.from=function(r){var n=typeof this=="function"?this:e;if(r==null)throw new TypeError(r+" is not an object");var i=Qu(r,b0);if(i){var o=i.call(r);if(Object(o)!==o)throw new TypeError(o+" is not an object");return _C(o)&&o.constructor===n?o:new n(function(a){return o.subscribe(a)})}if(By("iterator")&&(i=Qu(r,wC),i))return new n(function(a){kc(function(){if(!a.closed){for(var s=bC(i.call(r)),l;!(l=s()).done;){var c=l.value;if(a.next(c),a.closed)return}a.complete()}})});if(Array.isArray(r))return new n(function(a){kc(function(){if(!a.closed){for(var s=0;s<r.length;++s)if(a.next(r[s]),a.closed)return;a.complete()}})});throw new TypeError(r+" is not observable")},e.of=function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o=typeof this=="function"?this:e;return new o(function(a){kc(function(){if(!a.closed){for(var s=0;s<n.length;++s)if(a.next(n[s]),a.closed)return;a.complete()}})})},zy(e,null,[{key:m5,get:function(){return this}}]),e}();Uy()&&Object.defineProperty(pt,Symbol("extensions"),{value:{symbol:b0,hostReportError:pa},configurable:!0});function OC(e){var t,r=e.Symbol;if(typeof r=="function")if(r.observable)t=r.observable;else{typeof r.for=="function"?t=r.for("https://github.com/benlesh/symbol-observable"):t=r("https://github.com/benlesh/symbol-observable");try{r.observable=t}catch{}}else t="@@observable";return t}var Do;typeof self<"u"?Do=self:typeof window<"u"?Do=window:typeof global<"u"?Do=global:typeof module<"u"?Do=module:Do=Function("return this")();OC(Do);var L1=pt.prototype,M1="@@observable";L1[M1]||(L1[M1]=function(){return this});var kC=Object.prototype.toString;function b5(e){return w0(e)}function w0(e,t){switch(kC.call(e)){case"[object Array]":{if(t=t||new Map,t.has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach(function(i,o){r[o]=w0(i,t)}),r}case"[object Object]":{if(t=t||new Map,t.has(e))return t.get(e);var n=Object.create(Object.getPrototypeOf(e));return t.set(e,n),Object.keys(e).forEach(function(i){n[i]=w0(e[i],t)}),n}default:return e}}function CC(e){var t=new Set([e]);return t.forEach(function(r){St(r)&&TC(r)===r&&Object.getOwnPropertyNames(r).forEach(function(n){St(r[n])&&t.add(r[n])})}),e}function TC(e){if(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(t){if(t instanceof TypeError)return null;throw t}return e}function _0(e){return __DEV__&&CC(e),e}function Ns(e,t,r){var n=[];e.forEach(function(i){return i[t]&&n.push(i)}),n.forEach(function(i){return i[t](r)})}var El=typeof WeakMap=="function"&&Pr(function(){return navigator.product})!=="ReactNative",PC=typeof WeakSet=="function",$5=typeof Symbol=="function"&&typeof Symbol.for=="function",Sf=$5&&Symbol.asyncIterator;Pr(function(){return window.document.createElement});Pr(function(){return navigator.userAgent.indexOf("jsdom")>=0});function w5(e){function t(r){Object.defineProperty(e,r,{value:pt})}return $5&&Symbol.species&&t(Symbol.species),t("@@species"),e}function j1(e){return e&&typeof e.then=="function"}var IC=function(e){Zr(t,e);function t(r){var n=e.call(this,function(i){return n.addObserver(i),function(){return n.removeObserver(i)}})||this;return n.observers=new Set,n.promise=new Promise(function(i,o){n.resolve=i,n.reject=o}),n.handlers={next:function(i){n.sub!==null&&(n.latest=["next",i],n.notify("next",i),Ns(n.observers,"next",i))},error:function(i){var o=n.sub;o!==null&&(o&&setTimeout(function(){return o.unsubscribe()}),n.sub=null,n.latest=["error",i],n.reject(i),n.notify("error",i),Ns(n.observers,"error",i))},complete:function(){var i=n,o=i.sub,a=i.sources,s=a===void 0?[]:a;if(o!==null){var l=s.shift();l?j1(l)?l.then(function(c){return n.sub=c.subscribe(n.handlers)}):n.sub=l.subscribe(n.handlers):(o&&setTimeout(function(){return o.unsubscribe()}),n.sub=null,n.latest&&n.latest[0]==="next"?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),Ns(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(i){n.reject(i),n.sources=[],n.handlers.complete()},n.promise.catch(function(i){}),typeof r=="function"&&(r=[new pt(r)]),j1(r)?r.then(function(i){return n.start(i)},n.handlers.error):n.start(r),n}return t.prototype.start=function(r){this.sub===void 0&&(this.sources=Array.from(r),this.handlers.complete())},t.prototype.deliverLastMessage=function(r){if(this.latest){var n=this.latest[0],i=r[n];i&&i.call(r,this.latest[1]),this.sub===null&&n==="next"&&r.complete&&r.complete()}},t.prototype.addObserver=function(r){this.observers.has(r)||(this.deliverLastMessage(r),this.observers.add(r))},t.prototype.removeObserver=function(r){this.observers.delete(r)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(r,n){var i=this.nextResultListeners;i.size&&(this.nextResultListeners=new Set,i.forEach(function(o){return o(r,n)}))},t.prototype.beforeNext=function(r){var n=!1;this.nextResultListeners.add(function(i,o){n||(n=!0,r(i,o))})},t}(pt);w5(IC);function Wy(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach(function(n){!n||Object.keys(n).forEach(function(i){var o=n[i];o!==void 0&&(r[i]=o)})}),r}var V1=new Map;function NC(e){var t=V1.get(e)||1;return V1.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function AC(e){var t=NC("stringifyForDisplay");return JSON.stringify(e,function(r,n){return n===void 0?t:n}).split(JSON.stringify(t)).join("<undefined>")}function z1(e){return new pt(function(t){t.error(e)})}var x0=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n};function DC(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];if(t.indexOf(i)<0)throw __DEV__?new He("illegal argument: ".concat(i)):new He(27)}return e}function RC(e,t){var r=M({},e),n=function(o){typeof o=="function"?r=M(M({},r),o(r)):r=M(M({},r),o)},i=function(){return M({},r)};return Object.defineProperty(t,"setContext",{enumerable:!1,value:n}),Object.defineProperty(t,"getContext",{enumerable:!1,value:i}),t}function FC(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName=typeof t.query!="string"?hC(t.query)||void 0:""),t}function U1(e,t){return t?t(e):pt.of()}function is(e){return typeof e=="function"?new Of(e):e}function Kl(e){return e.request.length<=1}var LC=function(e){Zr(t,e);function t(r,n){var i=e.call(this,r)||this;return i.link=n,i}return t}(Error),Of=function(){function e(t){t&&(this.request=t)}return e.empty=function(){return new e(function(){return pt.of()})},e.from=function(t){return t.length===0?e.empty():t.map(is).reduce(function(r,n){return r.concat(n)})},e.split=function(t,r,n){var i=is(r),o=is(n||new e(U1));return Kl(i)&&Kl(o)?new e(function(a){return t(a)?i.request(a)||pt.of():o.request(a)||pt.of()}):new e(function(a,s){return t(a)?i.request(a,s)||pt.of():o.request(a,s)||pt.of()})},e.execute=function(t,r){return t.request(RC(r.context,FC(DC(r))))||pt.of()},e.concat=function(t,r){var n=is(t);if(Kl(n))return __DEV__&&fe.warn(new LC("You are calling concat on a terminating link, which will have no effect",n)),n;var i=is(r);return Kl(i)?new e(function(o){return n.request(o,function(a){return i.request(a)||pt.of()})||pt.of()}):new e(function(o,a){return n.request(o,function(s){return i.request(s,a)||pt.of()})||pt.of()})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(U1)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(t,r){throw __DEV__?new He("request is not implemented"):new He(22)},e.prototype.onError=function(t,r){if(r&&r.error)return r.error(t),!1;throw t},e.prototype.setOnError=function(t){return this.onError=t,this},e}();Of.execute;function MC(e){return!!e.body}function jC(e){return!!e.getReader}function VC(e){return!!(Sf&&e[Symbol.asyncIterator])}function zC(e){return!!e.stream}function UC(e){return!!e.arrayBuffer}function BC(e){return!!e.pipe}function qC(e){var t,r=e[Symbol.asyncIterator]();return t={next:function(){return r.next()}},t[Symbol.asyncIterator]=function(){return this},t}function WC(e){var t=null,r=null,n=!1,i=[],o=[];function a(d){if(!r){if(o.length){var f=o.shift();if(Array.isArray(f)&&f[0])return f[0]({value:d,done:!1})}i.push(d)}}function s(d){r=d;var f=o.slice();f.forEach(function(h){h[1](d)}),!t||t()}function l(){n=!0;var d=o.slice();d.forEach(function(f){f[0]({value:void 0,done:!0})}),!t||t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",s),e.removeListener("end",l),e.removeListener("finish",l),e.removeListener("close",l)},e.on("data",a),e.on("error",s),e.on("end",l),e.on("finish",l),e.on("close",l);function c(){return new Promise(function(d,f){if(r)return f(r);if(i.length)return d({value:i.shift(),done:!1});if(n)return d({value:void 0,done:!0});o.push([d,f])})}var u={next:function(){return c()}};return Sf&&(u[Symbol.asyncIterator]=function(){return this}),u}function HC(e){var t=!1,r={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise(function(n,i){e.then(function(o){n({value:o,done:!1})}).catch(i)}))}};return Sf&&(r[Symbol.asyncIterator]=function(){return this}),r}function B1(e){var t={next:function(){return e.read()}};return Sf&&(t[Symbol.asyncIterator]=function(){return this}),t}function GC(e){var t=e;if(MC(e)&&(t=e.body),VC(t))return qC(t);if(jC(t))return B1(t.getReader());if(zC(t))return B1(t.stream().getReader());if(UC(t))return HC(t.arrayBuffer());if(BC(t))return WC(t);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var q1=Object.prototype.hasOwnProperty;function QC(e,t){var r,n,i;return f8(this,void 0,void 0,function(){var o,a,s,l,c,u,d,f,h,p,m,v,b,y,g,$,_,S,w,k;return h8(this,function(A){switch(A.label){case 0:if(TextDecoder===void 0)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");o=new TextDecoder("utf-8"),a=(r=e.headers)===null||r===void 0?void 0:r.get("content-type"),s="boundary=",l=a?.includes(s)?a?.substring(a?.indexOf(s)+s.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",c="--".concat(l),u="",d=GC(e),f=!0,A.label=1;case 1:return f?[4,d.next()]:[3,3];case 2:for(h=A.sent(),p=h.value,m=h.done,v=typeof p=="string"?p:o.decode(p),f=!m,u+=v,b=u.indexOf(c);b>-1;){if(y=void 0,k=[u.slice(0,b),u.slice(b+c.length)],y=k[0],u=k[1],y.trim()){if(g=y.indexOf(`\r
44
+ `)))!==null&&t!==void 0?t:!1}function Q7(){return s7()}function K7(){__DEV__?fe(typeof _h=="boolean",_h):fe(typeof _h=="boolean",39)}Q7();K7();function Ry(e,t){var r=e.directives;return!r||!r.length?!0:J7(r).every(function(n){var i=n.directive,o=n.ifArgument,a=!1;return o.value.kind==="Variable"?(a=t&&t[o.value.name.value],__DEV__?fe(a!==void 0,"Invalid variable referenced in @".concat(i.name.value," directive.")):fe(a!==void 0,40)):a=o.value.value,i.name.value==="skip"?!a:a})}function Y7(e,t,r){var n=new Set(e),i=n.size;return Ef(t,{Directive:function(o){if(n.delete(o.name.value)&&(!r||!n.size))return f5}}),r?!n.size:n.size<i}function X7(e){var t=e.name.value;return t==="skip"||t==="include"}function J7(e){var t=[];return e&&e.length&&e.forEach(function(r){if(X7(r)){var n=r.arguments,i=r.name.value;__DEV__?fe(n&&n.length===1,"Incorrect number of arguments for the @".concat(i," directive.")):fe(n&&n.length===1,41);var o=n[0];__DEV__?fe(o.name&&o.name.value==="if","Invalid argument for the @".concat(i," directive.")):fe(o.name&&o.name.value==="if",42);var a=o.value;__DEV__?fe(a&&(a.kind==="Variable"||a.kind==="BooleanValue"),"Argument for the @".concat(i," directive must be a variable or a boolean value.")):fe(a&&(a.kind==="Variable"||a.kind==="BooleanValue"),43),t.push({directive:r,ifArgument:o})}}),t}function Z7(e,t){var r=t,n=[];e.definitions.forEach(function(o){if(o.kind==="OperationDefinition")throw __DEV__?new He("Found a ".concat(o.operation," operation").concat(o.name?" named '".concat(o.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new He(44);o.kind==="FragmentDefinition"&&n.push(o)}),typeof r>"u"&&(__DEV__?fe(n.length===1,"Found ".concat(n.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):fe(n.length===1,45),r=n[0].name.value);var i=M(M({},e),{definitions:Mu([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)});return i}function eC(e){e===void 0&&(e=[]);var t={};return e.forEach(function(r){t[r.name.value]=r}),t}function Fy(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{var r=e.name.value;if(typeof t=="function")return t(r);var n=t&&t[r];return __DEV__?fe(n,"No fragment named ".concat(r)):fe(n,46),n||null}default:return null}}function St(e){return e!==null&&typeof e=="object"}function Yo(e){return{__ref:String(e)}}function De(e){return!!(e&&typeof e=="object"&&typeof e.__ref=="string")}function tC(e){return e.kind==="StringValue"}function rC(e){return e.kind==="BooleanValue"}function nC(e){return e.kind==="IntValue"}function iC(e){return e.kind==="FloatValue"}function oC(e){return e.kind==="Variable"}function aC(e){return e.kind==="ObjectValue"}function sC(e){return e.kind==="ListValue"}function lC(e){return e.kind==="EnumValue"}function cC(e){return e.kind==="NullValue"}function da(e,t,r,n){if(nC(r)||iC(r))e[t.value]=Number(r.value);else if(rC(r)||tC(r))e[t.value]=r.value;else if(aC(r)){var i={};r.fields.map(function(a){return da(i,a.name,a.value,n)}),e[t.value]=i}else if(oC(r)){var o=(n||{})[r.name.value];e[t.value]=o}else if(sC(r))e[t.value]=r.values.map(function(a){var s={};return da(s,t,a,n),s[t.value]});else if(lC(r))e[t.value]=r.value;else if(cC(r))e[t.value]=null;else throw __DEV__?new He('The inline argument "'.concat(t.value,'" of kind "').concat(r.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new He(55)}function uC(e,t){var r=null;e.directives&&(r={},e.directives.forEach(function(i){r[i.name.value]={},i.arguments&&i.arguments.forEach(function(o){var a=o.name,s=o.value;return da(r[i.name.value],a,s,t)})}));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(i){var o=i.name,a=i.value;return da(n,o,a,t)})),Ly(e.name.value,n,r)}var dC=["connection","include","skip","client","rest","export"],Ly=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key)if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(s){i[s]=t[s]}),"".concat(r.connection.key,"(").concat(rs(i),")")}else return r.connection.key;var o=e;if(t){var a=rs(t);o+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(s){dC.indexOf(s)===-1&&(r[s]&&Object.keys(r[s]).length?o+="@".concat(s,"(").concat(rs(r[s]),")"):o+="@".concat(s))}),o},{setStringify:function(e){var t=rs;return rs=e,t}}),rs=function(e){return JSON.stringify(e,fC)};function fC(e,t){return St(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(r,n){return r[n]=t[n],r},{})),t}function My(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(n){var i=n.name,o=n.value;return da(r,i,o,t)}),r}return null}function Gs(e){return e.alias?e.alias.value:e.name.value}function g0(e,t,r){if(typeof e.__typename=="string")return e.__typename;for(var n=0,i=t.selections;n<i.length;n++){var o=i[n];if(fa(o)){if(o.name.value==="__typename")return e[Gs(o)]}else{var a=g0(e,Fy(o,r).selectionSet,r);if(typeof a=="string")return a}}}function fa(e){return e.kind==="Field"}function h5(e){__DEV__?fe(e&&e.kind==="Document",'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'):fe(e&&e.kind==="Document",47);var t=e.definitions.filter(function(r){return r.kind!=="FragmentDefinition"}).map(function(r){if(r.kind!=="OperationDefinition")throw __DEV__?new He('Schema type definitions not allowed in queries. Found: "'.concat(r.kind,'"')):new He(48);return r});return __DEV__?fe(t.length<=1,"Ambiguous GraphQL document: contains ".concat(t.length," operations")):fe(t.length<=1,49),e}function jy(e){return h5(e),e.definitions.filter(function(t){return t.kind==="OperationDefinition"})[0]}function hC(e){return e.definitions.filter(function(t){return t.kind==="OperationDefinition"&&!!t.name}).map(function(t){return t.name.value})[0]||null}function pC(e){return e.definitions.filter(function(t){return t.kind==="FragmentDefinition"})}function p5(e){var t=jy(e);return __DEV__?fe(t&&t.operation==="query","Must contain a query definition."):fe(t&&t.operation==="query",50),t}function vC(e){h5(e);for(var t,r=0,n=e.definitions;r<n.length;r++){var i=n[r];if(i.kind==="OperationDefinition"){var o=i.operation;if(o==="query"||o==="mutation"||o==="subscription")return i}i.kind==="FragmentDefinition"&&!t&&(t=i)}if(t)return t;throw __DEV__?new He("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new He(54)}function v5(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(n){n.defaultValue&&da(t,n.variable.name,n.defaultValue)}),t}var vt=Array.isArray;function Qs(e){return Array.isArray(e)&&e.length>0}var D1={kind:ie.FIELD,name:{kind:ie.NAME,value:"__typename"}},Vy=Object.assign(function(e){return Ef(e,{SelectionSet:{enter:function(t,r,n){if(!(n&&n.kind===ie.OPERATION_DEFINITION)){var i=t.selections;if(i){var o=i.some(function(s){return fa(s)&&(s.name.value==="__typename"||s.name.value.lastIndexOf("__",0)===0)});if(!o){var a=n;if(!(fa(a)&&a.directives&&a.directives.some(function(s){return s.name.value==="export"})))return M(M({},t),{selections:Mu(Mu([],i,!0),[D1],!1)})}}}}}})},{added:function(e){return e===D1}}),mC=Object.prototype.hasOwnProperty;function yC(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new ha,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var gC=function(e,t,r){return this.merge(e[r],t[r])},ha=function(){function e(t){t===void 0&&(t=gC),this.reconciler=t,this.isObject=St,this.pastCopies=new Set}return e.prototype.merge=function(t,r){for(var n=this,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];return St(r)&&St(t)?(Object.keys(r).forEach(function(a){if(mC.call(t,a)){var s=t[a];if(r[a]!==s){var l=n.reconciler.apply(n,Mu([t,r,a],i,!1));l!==s&&(t=n.shallowCopyForMerge(t),t[a]=l)}}else t=n.shallowCopyForMerge(t),t[a]=r[a]}),t):r},e.prototype.shallowCopyForMerge=function(t){return St(t)&&(this.pastCopies.has(t)||(Array.isArray(t)?t=t.slice(0):t=M({__proto__:Object.getPrototypeOf(t)},t),this.pastCopies.add(t))),t},e}();function bC(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=$C(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
45
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $C(e,t){if(e){if(typeof e=="string")return R1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return R1(e,t)}}function R1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function F1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function zy(e,t,r){return t&&F1(e.prototype,t),r&&F1(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var Uy=function(){return typeof Symbol=="function"},By=function(e){return Uy()&&!!Symbol[e]},qy=function(e){return By(e)?Symbol[e]:"@@"+e};Uy()&&!By("observable")&&(Symbol.observable=Symbol("observable"));var wC=qy("iterator"),b0=qy("observable"),m5=qy("species");function Qu(e,t){var r=e[t];if(r!=null){if(typeof r!="function")throw new TypeError(r+" is not a function");return r}}function ns(e){var t=e.constructor;return t!==void 0&&(t=t[m5],t===null&&(t=void 0)),t!==void 0?t:pt}function _C(e){return e instanceof pt}function pa(e){pa.log?pa.log(e):setTimeout(function(){throw e})}function kc(e){Promise.resolve().then(function(){try{e()}catch(t){pa(t)}})}function y5(e){var t=e._cleanup;if(t!==void 0&&(e._cleanup=void 0,!!t))try{if(typeof t=="function")t();else{var r=Qu(t,"unsubscribe");r&&r.call(t)}}catch(n){pa(n)}}function $0(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function xC(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(g5(e,t[r].type,t[r].value),e._state!=="closed");++r);}}function g5(e,t,r){e._state="running";var n=e._observer;try{var i=Qu(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if($0(e),i)i.call(n,r);else throw r;break;case"complete":$0(e),i&&i.call(n);break}}catch(o){pa(o)}e._state==="closed"?y5(e):e._state==="running"&&(e._state="ready")}function Eh(e,t,r){if(e._state!=="closed"){if(e._state==="buffering"){e._queue.push({type:t,value:r});return}if(e._state!=="ready"){e._state="buffering",e._queue=[{type:t,value:r}],kc(function(){return xC(e)});return}g5(e,t,r)}}var EC=function(){function e(r,n){this._cleanup=void 0,this._observer=r,this._queue=void 0,this._state="initializing";var i=new SC(this);try{this._cleanup=n.call(void 0,i)}catch(o){i.error(o)}this._state==="initializing"&&(this._state="ready")}var t=e.prototype;return t.unsubscribe=function(){this._state!=="closed"&&($0(this),y5(this))},zy(e,[{key:"closed",get:function(){return this._state==="closed"}}]),e}(),SC=function(){function e(r){this._subscription=r}var t=e.prototype;return t.next=function(r){Eh(this._subscription,"next",r)},t.error=function(r){Eh(this._subscription,"error",r)},t.complete=function(){Eh(this._subscription,"complete")},zy(e,[{key:"closed",get:function(){return this._subscription._state==="closed"}}]),e}(),pt=function(){function e(r){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if(typeof r!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=r}var t=e.prototype;return t.subscribe=function(r){return(typeof r!="object"||r===null)&&(r={next:r,error:arguments[1],complete:arguments[2]}),new EC(r,this._subscriber)},t.forEach=function(r){var n=this;return new Promise(function(i,o){if(typeof r!="function"){o(new TypeError(r+" is not a function"));return}function a(){s.unsubscribe(),i()}var s=n.subscribe({next:function(l){try{r(l,a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i})})},t.map=function(r){var n=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var i=ns(this);return new i(function(o){return n.subscribe({next:function(a){try{a=r(a)}catch(s){return o.error(s)}o.next(a)},error:function(a){o.error(a)},complete:function(){o.complete()}})})},t.filter=function(r){var n=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var i=ns(this);return new i(function(o){return n.subscribe({next:function(a){try{if(!r(a))return}catch(s){return o.error(s)}o.next(a)},error:function(a){o.error(a)},complete:function(){o.complete()}})})},t.reduce=function(r){var n=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var i=ns(this),o=arguments.length>1,a=!1,s=arguments[1],l=s;return new i(function(c){return n.subscribe({next:function(u){var d=!a;if(a=!0,!d||o)try{l=r(l,u)}catch(f){return c.error(f)}else l=u},error:function(u){c.error(u)},complete:function(){if(!a&&!o)return c.error(new TypeError("Cannot reduce an empty sequence"));c.next(l),c.complete()}})})},t.concat=function(){for(var r=this,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=ns(this);return new a(function(s){var l,c=0;function u(d){l=d.subscribe({next:function(f){s.next(f)},error:function(f){s.error(f)},complete:function(){c===i.length?(l=void 0,s.complete()):u(a.from(i[c++]))}})}return u(r),function(){l&&(l.unsubscribe(),l=void 0)}})},t.flatMap=function(r){var n=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var i=ns(this);return new i(function(o){var a=[],s=n.subscribe({next:function(c){if(r)try{c=r(c)}catch(d){return o.error(d)}var u=i.from(c).subscribe({next:function(d){o.next(d)},error:function(d){o.error(d)},complete:function(){var d=a.indexOf(u);d>=0&&a.splice(d,1),l()}});a.push(u)},error:function(c){o.error(c)},complete:function(){l()}});function l(){s.closed&&a.length===0&&o.complete()}return function(){a.forEach(function(c){return c.unsubscribe()}),s.unsubscribe()}})},t[b0]=function(){return this},e.from=function(r){var n=typeof this=="function"?this:e;if(r==null)throw new TypeError(r+" is not an object");var i=Qu(r,b0);if(i){var o=i.call(r);if(Object(o)!==o)throw new TypeError(o+" is not an object");return _C(o)&&o.constructor===n?o:new n(function(a){return o.subscribe(a)})}if(By("iterator")&&(i=Qu(r,wC),i))return new n(function(a){kc(function(){if(!a.closed){for(var s=bC(i.call(r)),l;!(l=s()).done;){var c=l.value;if(a.next(c),a.closed)return}a.complete()}})});if(Array.isArray(r))return new n(function(a){kc(function(){if(!a.closed){for(var s=0;s<r.length;++s)if(a.next(r[s]),a.closed)return;a.complete()}})});throw new TypeError(r+" is not observable")},e.of=function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o=typeof this=="function"?this:e;return new o(function(a){kc(function(){if(!a.closed){for(var s=0;s<n.length;++s)if(a.next(n[s]),a.closed)return;a.complete()}})})},zy(e,null,[{key:m5,get:function(){return this}}]),e}();Uy()&&Object.defineProperty(pt,Symbol("extensions"),{value:{symbol:b0,hostReportError:pa},configurable:!0});function OC(e){var t,r=e.Symbol;if(typeof r=="function")if(r.observable)t=r.observable;else{typeof r.for=="function"?t=r.for("https://github.com/benlesh/symbol-observable"):t=r("https://github.com/benlesh/symbol-observable");try{r.observable=t}catch{}}else t="@@observable";return t}var Do;typeof self<"u"?Do=self:typeof window<"u"?Do=window:typeof global<"u"?Do=global:typeof module<"u"?Do=module:Do=Function("return this")();OC(Do);var L1=pt.prototype,M1="@@observable";L1[M1]||(L1[M1]=function(){return this});var kC=Object.prototype.toString;function b5(e){return w0(e)}function w0(e,t){switch(kC.call(e)){case"[object Array]":{if(t=t||new Map,t.has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach(function(i,o){r[o]=w0(i,t)}),r}case"[object Object]":{if(t=t||new Map,t.has(e))return t.get(e);var n=Object.create(Object.getPrototypeOf(e));return t.set(e,n),Object.keys(e).forEach(function(i){n[i]=w0(e[i],t)}),n}default:return e}}function CC(e){var t=new Set([e]);return t.forEach(function(r){St(r)&&TC(r)===r&&Object.getOwnPropertyNames(r).forEach(function(n){St(r[n])&&t.add(r[n])})}),e}function TC(e){if(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(t){if(t instanceof TypeError)return null;throw t}return e}function _0(e){return __DEV__&&CC(e),e}function Ns(e,t,r){var n=[];e.forEach(function(i){return i[t]&&n.push(i)}),n.forEach(function(i){return i[t](r)})}var El=typeof WeakMap=="function"&&Pr(function(){return navigator.product})!=="ReactNative",PC=typeof WeakSet=="function",$5=typeof Symbol=="function"&&typeof Symbol.for=="function",Sf=$5&&Symbol.asyncIterator;Pr(function(){return window.document.createElement});Pr(function(){return navigator.userAgent.indexOf("jsdom")>=0});function w5(e){function t(r){Object.defineProperty(e,r,{value:pt})}return $5&&Symbol.species&&t(Symbol.species),t("@@species"),e}function j1(e){return e&&typeof e.then=="function"}var IC=function(e){Zr(t,e);function t(r){var n=e.call(this,function(i){return n.addObserver(i),function(){return n.removeObserver(i)}})||this;return n.observers=new Set,n.promise=new Promise(function(i,o){n.resolve=i,n.reject=o}),n.handlers={next:function(i){n.sub!==null&&(n.latest=["next",i],n.notify("next",i),Ns(n.observers,"next",i))},error:function(i){var o=n.sub;o!==null&&(o&&setTimeout(function(){return o.unsubscribe()}),n.sub=null,n.latest=["error",i],n.reject(i),n.notify("error",i),Ns(n.observers,"error",i))},complete:function(){var i=n,o=i.sub,a=i.sources,s=a===void 0?[]:a;if(o!==null){var l=s.shift();l?j1(l)?l.then(function(c){return n.sub=c.subscribe(n.handlers)}):n.sub=l.subscribe(n.handlers):(o&&setTimeout(function(){return o.unsubscribe()}),n.sub=null,n.latest&&n.latest[0]==="next"?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),Ns(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(i){n.reject(i),n.sources=[],n.handlers.complete()},n.promise.catch(function(i){}),typeof r=="function"&&(r=[new pt(r)]),j1(r)?r.then(function(i){return n.start(i)},n.handlers.error):n.start(r),n}return t.prototype.start=function(r){this.sub===void 0&&(this.sources=Array.from(r),this.handlers.complete())},t.prototype.deliverLastMessage=function(r){if(this.latest){var n=this.latest[0],i=r[n];i&&i.call(r,this.latest[1]),this.sub===null&&n==="next"&&r.complete&&r.complete()}},t.prototype.addObserver=function(r){this.observers.has(r)||(this.deliverLastMessage(r),this.observers.add(r))},t.prototype.removeObserver=function(r){this.observers.delete(r)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(r,n){var i=this.nextResultListeners;i.size&&(this.nextResultListeners=new Set,i.forEach(function(o){return o(r,n)}))},t.prototype.beforeNext=function(r){var n=!1;this.nextResultListeners.add(function(i,o){n||(n=!0,r(i,o))})},t}(pt);w5(IC);function Wy(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach(function(n){n&&Object.keys(n).forEach(function(i){var o=n[i];o!==void 0&&(r[i]=o)})}),r}var V1=new Map;function NC(e){var t=V1.get(e)||1;return V1.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function AC(e){var t=NC("stringifyForDisplay");return JSON.stringify(e,function(r,n){return n===void 0?t:n}).split(JSON.stringify(t)).join("<undefined>")}function z1(e){return new pt(function(t){t.error(e)})}var x0=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n};function DC(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];if(t.indexOf(i)<0)throw __DEV__?new He("illegal argument: ".concat(i)):new He(27)}return e}function RC(e,t){var r=M({},e),n=function(o){typeof o=="function"?r=M(M({},r),o(r)):r=M(M({},r),o)},i=function(){return M({},r)};return Object.defineProperty(t,"setContext",{enumerable:!1,value:n}),Object.defineProperty(t,"getContext",{enumerable:!1,value:i}),t}function FC(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName=typeof t.query!="string"?hC(t.query)||void 0:""),t}function U1(e,t){return t?t(e):pt.of()}function is(e){return typeof e=="function"?new Of(e):e}function Kl(e){return e.request.length<=1}var LC=function(e){Zr(t,e);function t(r,n){var i=e.call(this,r)||this;return i.link=n,i}return t}(Error),Of=function(){function e(t){t&&(this.request=t)}return e.empty=function(){return new e(function(){return pt.of()})},e.from=function(t){return t.length===0?e.empty():t.map(is).reduce(function(r,n){return r.concat(n)})},e.split=function(t,r,n){var i=is(r),o=is(n||new e(U1));return Kl(i)&&Kl(o)?new e(function(a){return t(a)?i.request(a)||pt.of():o.request(a)||pt.of()}):new e(function(a,s){return t(a)?i.request(a,s)||pt.of():o.request(a,s)||pt.of()})},e.execute=function(t,r){return t.request(RC(r.context,FC(DC(r))))||pt.of()},e.concat=function(t,r){var n=is(t);if(Kl(n))return __DEV__&&fe.warn(new LC("You are calling concat on a terminating link, which will have no effect",n)),n;var i=is(r);return Kl(i)?new e(function(o){return n.request(o,function(a){return i.request(a)||pt.of()})||pt.of()}):new e(function(o,a){return n.request(o,function(s){return i.request(s,a)||pt.of()})||pt.of()})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(U1)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(t,r){throw __DEV__?new He("request is not implemented"):new He(22)},e.prototype.onError=function(t,r){if(r&&r.error)return r.error(t),!1;throw t},e.prototype.setOnError=function(t){return this.onError=t,this},e}();Of.execute;function MC(e){return!!e.body}function jC(e){return!!e.getReader}function VC(e){return!!(Sf&&e[Symbol.asyncIterator])}function zC(e){return!!e.stream}function UC(e){return!!e.arrayBuffer}function BC(e){return!!e.pipe}function qC(e){var t,r=e[Symbol.asyncIterator]();return t={next:function(){return r.next()}},t[Symbol.asyncIterator]=function(){return this},t}function WC(e){var t=null,r=null,n=!1,i=[],o=[];function a(d){if(!r){if(o.length){var f=o.shift();if(Array.isArray(f)&&f[0])return f[0]({value:d,done:!1})}i.push(d)}}function s(d){r=d;var f=o.slice();f.forEach(function(h){h[1](d)}),!t||t()}function l(){n=!0;var d=o.slice();d.forEach(function(f){f[0]({value:void 0,done:!0})}),!t||t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",s),e.removeListener("end",l),e.removeListener("finish",l),e.removeListener("close",l)},e.on("data",a),e.on("error",s),e.on("end",l),e.on("finish",l),e.on("close",l);function c(){return new Promise(function(d,f){if(r)return f(r);if(i.length)return d({value:i.shift(),done:!1});if(n)return d({value:void 0,done:!0});o.push([d,f])})}var u={next:function(){return c()}};return Sf&&(u[Symbol.asyncIterator]=function(){return this}),u}function HC(e){var t=!1,r={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise(function(n,i){e.then(function(o){n({value:o,done:!1})}).catch(i)}))}};return Sf&&(r[Symbol.asyncIterator]=function(){return this}),r}function B1(e){var t={next:function(){return e.read()}};return Sf&&(t[Symbol.asyncIterator]=function(){return this}),t}function GC(e){var t=e;if(MC(e)&&(t=e.body),VC(t))return qC(t);if(jC(t))return B1(t.getReader());if(zC(t))return B1(t.stream().getReader());if(UC(t))return HC(t.arrayBuffer());if(BC(t))return WC(t);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var q1=Object.prototype.hasOwnProperty;function QC(e,t){var r,n,i;return f8(this,void 0,void 0,function(){var o,a,s,l,c,u,d,f,h,p,m,v,b,y,g,$,_,S,w,k;return h8(this,function(A){switch(A.label){case 0:if(TextDecoder===void 0)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");o=new TextDecoder("utf-8"),a=(r=e.headers)===null||r===void 0?void 0:r.get("content-type"),s="boundary=",l=a?.includes(s)?a?.substring(a?.indexOf(s)+s.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",c="--".concat(l),u="",d=GC(e),f=!0,A.label=1;case 1:return f?[4,d.next()]:[3,3];case 2:for(h=A.sent(),p=h.value,m=h.done,v=typeof p=="string"?p:o.decode(p),f=!m,u+=v,b=u.indexOf(c);b>-1;){if(y=void 0,k=[u.slice(0,b),u.slice(b+c.length)],y=k[0],u=k[1],y.trim()){if(g=y.indexOf(`\r
46
46
  \r
47
47
  `),$=KC(y.slice(0,g)),_=$["content-type"],_&&_.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");S=y.slice(g);try{w=_5(e,S.replace(`\r
48
48
  `,"")),(Object.keys(w).length>1||"data"in w||"incremental"in w||"errors"in w)&&((n=t.next)===null||n===void 0||n.call(t,w))}catch(F){Hy(F,t)}}b=u.indexOf(c)}return[3,1];case 3:return(i=t.complete)===null||i===void 0||i.call(t),[2]}})})}function KC(e){var t={};return e.split(`
@@ -54,7 +54,7 @@ import { ApolloClient, HttpLink } from '@apollo/client';
54
54
  const client = new ApolloClient({
55
55
  link: new HttpLink({ uri: '/graphql', fetch })
56
56
  });
57
- `):new He(23)},aT=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}},sT=function(e,t){var r=e.getContext(),n=r.uri;return n||(typeof t=="function"?t(e):t||"/graphql")};function lT(e,t){var r=[],n=function(d,f){r.push("".concat(d,"=").concat(encodeURIComponent(f)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=E0(t.variables,"Variables map")}catch(d){return{parseError:d}}n("variables",i)}if(t.extensions){var o=void 0;try{o=E0(t.extensions,"Extensions map")}catch(d){return{parseError:d}}n("extensions",o)}var a="",s=e,l=e.indexOf("#");l!==-1&&(a=e.substr(l),s=e.substr(0,l));var c=s.indexOf("?")===-1?"?":"&",u=s+c+r.join("&")+a;return{newURI:u}}var W1=Pr(function(){return fetch}),cT=function(e){e===void 0&&(e={});var t=e.uri,r=t===void 0?"/graphql":t,n=e.fetch,i=e.print,o=i===void 0?rT:i,a=e.includeExtensions,s=e.preserveHeaderCase,l=e.useGETForQueries,c=e.includeUnusedVariables,u=c===void 0?!1:c,d=aa(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);__DEV__&&oT(n||W1);var f={http:{includeExtensions:a,preserveHeaderCase:s},options:d.fetchOptions,credentials:d.credentials,headers:d.headers};return new Of(function(h){var p=sT(h,r),m=h.getContext(),v={};if(m.clientAwareness){var b=m.clientAwareness,y=b.name,g=b.version;y&&(v["apollographql-client-name"]=y),g&&(v["apollographql-client-version"]=g)}var $=M(M({},v),m.headers),_={http:m.http,options:m.fetchOptions,credentials:m.credentials,headers:$},S=nT(h,o,tT,f,_),w=S.options,k=S.body;if(k.variables&&!u){var A=new Set(Object.keys(k.variables));Ef(h.query,{Variable:function(H,te,le){le&&le.kind!=="VariableDefinition"&&A.delete(H.name.value)}}),A.size&&(k.variables=M({},k.variables),A.forEach(function(H){delete k.variables[H]}))}var F;if(!w.signal){var K=aT(),U=K.controller,N=K.signal;F=U,F&&(w.signal=N)}var Q=function(H){return H.kind==="OperationDefinition"&&H.operation==="mutation"};if(l&&!h.query.definitions.some(Q)&&(w.method="GET"),Y7(["defer"],h.query)&&(w.headers=w.headers||{},w.headers.accept="multipart/mixed; deferSpec=20220824, application/json"),w.method==="GET"){var j=lT(p,k),W=j.newURI,V=j.parseError;if(V)return z1(V);p=W}else try{w.body=E0(k,"Payload")}catch(H){return z1(H)}return new pt(function(H){var te=n||Pr(function(){return fetch})||W1;return te(p,w).then(function(le){var de;h.setContext({response:le});var O=(de=le.headers)===null||de===void 0?void 0:de.get("content-type");return O!==null&&/^multipart\/mixed/i.test(O)?QC(le,H):YC(le,h,H)}).catch(function(le){return Hy(le,H)}),function(){F&&F.abort()}})})};(function(e){Zr(t,e);function t(r){r===void 0&&(r={});var n=e.call(this,cT(r).request)||this;return n.options=r,n}return t})(Of);var x5=Object.prototype,H1=x5.toString,uT=x5.hasOwnProperty,G1=Function.prototype.toString,S0=new Map;function Wr(e,t){try{return O0(e,t)}finally{S0.clear()}}function O0(e,t){if(e===t)return!0;var r=H1.call(e),n=H1.call(t);if(r!==n)return!1;switch(r){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(K1(e,t))return!0;var i=Q1(e),o=Q1(t),a=i.length;if(a!==o.length)return!1;for(var s=0;s<a;++s)if(!uT.call(t,i[s]))return!1;for(var s=0;s<a;++s){var l=i[s];if(!O0(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=="".concat(t);case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(K1(e,t))return!0;for(var c=e.entries(),u=r==="[object Map]";;){var d=c.next();if(d.done)break;var f=d.value,h=f[0],p=f[1];if(!t.has(h)||u&&!O0(p,t.get(h)))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 m===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{var v=G1.call(e);return v!==G1.call(t)?!1:!hT(v,fT)}}return!1}function Q1(e){return Object.keys(e).filter(dT,e)}function dT(e){return this[e]!==void 0}var fT="{ [native code] }";function hT(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function K1(e,t){var r=S0.get(e);if(r){if(r.has(t))return!0}else S0.set(e,r=new Set);return r.add(t),!1}var pT=function(){return Object.create(null)},E5=Array.prototype,vT=E5.forEach,mT=E5.slice,Sl=function(){function e(t,r){t===void 0&&(t=!0),r===void 0&&(r=pT),this.weakness=t,this.makeData=r}return e.prototype.lookup=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return this.lookupArray(t)},e.prototype.lookupArray=function(t){var r=this;return vT.call(t,function(n){return r=r.getChildTrie(n)}),r.data||(r.data=this.makeData(mT.call(t)))},e.prototype.getChildTrie=function(t){var r=this.weakness&&yT(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),n=r.get(t);return n||r.set(t,n=new e(this.weakness,this.makeData)),n},e}();function yT(e){switch(typeof e){case"object":if(e===null)break;case"function":return!0}return!1}var Bt=null,Y1={},gT=1,bT=function(){return function(){function e(){this.id=["slot",gT++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var t=Bt;t;t=t.parent)if(this.id in t.slots){var r=t.slots[this.id];if(r===Y1)break;return t!==Bt&&(Bt.slots[this.id]=r),!0}return Bt&&(Bt.slots[this.id]=Y1),!1},e.prototype.getValue=function(){if(this.hasValue())return Bt.slots[this.id]},e.prototype.withValue=function(t,r,n,i){var o,a=(o={__proto__:null},o[this.id]=t,o),s=Bt;Bt={parent:s,slots:a};try{return r.apply(i,n)}finally{Bt=s}},e.bind=function(t){var r=Bt;return function(){var n=Bt;try{return Bt=r,t.apply(this,arguments)}finally{Bt=n}}},e.noContext=function(t,r,n){if(Bt){var i=Bt;try{return Bt=null,t.apply(n,r)}finally{Bt=i}}else return t.apply(n,r)},e}()};function X1(e){try{return e()}catch{}}var Sh="@wry/context:Slot",$T=X1(function(){return globalThis})||X1(function(){return global})||Object.create(null),J1=$T,kf=J1[Sh]||Array[Sh]||function(e){try{Object.defineProperty(J1,Sh,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(bT());kf.bind;kf.noContext;function wT(){}var _T=function(){function e(t,r){t===void 0&&(t=1/0),r===void 0&&(r=wT),this.max=t,this.dispose=r,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(t){return this.map.has(t)},e.prototype.get=function(t){var r=this.getNode(t);return r&&r.value},e.prototype.getNode=function(t){var r=this.map.get(t);if(r&&r!==this.newest){var n=r.older,i=r.newer;i&&(i.older=n),n&&(n.newer=i),r.older=this.newest,r.older.newer=r,r.newer=null,this.newest=r,r===this.oldest&&(this.oldest=i)}return r},e.prototype.set=function(t,r){var n=this.getNode(t);return n?n.value=r:(n={key:t,value:r,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(t,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(t){var r=this.map.get(t);return r?(r===this.newest&&(this.newest=r.older),r===this.oldest&&(this.oldest=r.newer),r.newer&&(r.newer.older=r.older),r.older&&(r.older.newer=r.newer),this.map.delete(t),this.dispose(r.value,t),!0):!1},e}(),Cf=new kf,Oh,xT=Object.prototype.hasOwnProperty,Gy=(Oh=Array.from,Oh===void 0?function(e){var t=[];return e.forEach(function(r){return t.push(r)}),t}:Oh);function Ku(e){var t=e.unsubscribe;typeof t=="function"&&(e.unsubscribe=void 0,t())}var Ks=[],ET=100;function va(e,t){if(!e)throw new Error(t||"assertion failure")}function ST(e,t){var r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function S5(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function OT(e){return e.slice(0)}var kT=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(this.value.length===1&&!bi(this))return Z1(this),this.value[0]},e.prototype.recompute=function(t){return va(!this.recomputing,"already recomputing"),Z1(this),bi(this)?CT(this,t):S5(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,O5(this),Ku(this))},e.prototype.dispose=function(){var t=this;this.setDirty(),I5(this),Qy(this,function(r,n){r.setDirty(),N5(r,t)})},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(t){t.add(this),this.deps||(this.deps=Ks.pop()||new Set),this.deps.add(t)},e.prototype.forgetDeps=function(){var t=this;this.deps&&(Gy(this.deps).forEach(function(r){return r.delete(t)}),this.deps.clear(),Ks.push(this.deps),this.deps=null)},e.count=0,e}();function Z1(e){var t=Cf.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),bi(e)?C5(t,e):T5(t,e),t}function CT(e,t){return I5(e),Cf.withValue(e,TT,[e,t]),IT(e,t)&&PT(e),S5(e.value)}function TT(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(r){e.value[1]=r}e.recomputing=!1}function bi(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function PT(e){e.dirty=!1,!bi(e)&&k5(e)}function O5(e){Qy(e,C5)}function k5(e){Qy(e,T5)}function Qy(e,t){var r=e.parents.size;if(r)for(var n=Gy(e.parents),i=0;i<r;++i)t(n[i],e)}function C5(e,t){va(e.childValues.has(t)),va(bi(t));var r=!bi(e);if(!e.dirtyChildren)e.dirtyChildren=Ks.pop()||new Set;else if(e.dirtyChildren.has(t))return;e.dirtyChildren.add(t),r&&O5(e)}function T5(e,t){va(e.childValues.has(t)),va(!bi(t));var r=e.childValues.get(t);r.length===0?e.childValues.set(t,OT(t.value)):ST(r,t.value)||e.setDirty(),P5(e,t),!bi(e)&&k5(e)}function P5(e,t){var r=e.dirtyChildren;r&&(r.delete(t),r.size===0&&(Ks.length<ET&&Ks.push(r),e.dirtyChildren=null))}function I5(e){e.childValues.size>0&&e.childValues.forEach(function(t,r){N5(e,r)}),e.forgetDeps(),va(e.dirtyChildren===null)}function N5(e,t){t.parents.delete(e),e.childValues.delete(t),P5(e,t)}function IT(e,t){if(typeof e.subscribe=="function")try{Ku(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}var NT={setDirty:!0,dispose:!0,forget:!0};function A5(e){var t=new Map,r=e&&e.subscribe;function n(i){var o=Cf.getValue();if(o){var a=t.get(i);a||t.set(i,a=new Set),o.dependOn(a),typeof r=="function"&&(Ku(a),a.unsubscribe=r(i))}}return n.dirty=function(i,o){var a=t.get(i);if(a){var s=o&&xT.call(NT,o)?o:"setDirty";Gy(a).forEach(function(l){return l[s]()}),t.delete(i),Ku(a)}},n}function D5(){var e=new Sl(typeof WeakMap=="function");return function(){return e.lookupArray(arguments)}}D5();var kh=new Set;function Yu(e,t){t===void 0&&(t=Object.create(null));var r=new _T(t.max||Math.pow(2,16),function(c){return c.dispose()}),n=t.keyArgs,i=t.makeCacheKey||D5(),o=function(){var c=i.apply(null,n?n.apply(null,arguments):arguments);if(c===void 0)return e.apply(null,arguments);var u=r.get(c);u||(r.set(c,u=new kT(e)),u.subscribe=t.subscribe,u.forget=function(){return r.delete(c)});var d=u.recompute(Array.prototype.slice.call(arguments));return r.set(c,u),kh.add(r),Cf.hasValue()||(kh.forEach(function(f){return f.clean()}),kh.clear()),d};Object.defineProperty(o,"size",{get:function(){return r.map.size},configurable:!1,enumerable:!1});function a(c){var u=r.get(c);u&&u.setDirty()}o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))};function s(c){var u=r.get(c);if(u)return u.peek()}o.peekKey=s,o.peek=function(){return s(i.apply(null,arguments))};function l(c){return r.delete(c)}return o.forgetKey=l,o.forget=function(){return l(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=n?function(){return i.apply(null,n.apply(null,arguments))}:i,Object.freeze(o)}var AT=function(){function e(){this.getFragmentDoc=Yu(Z7)}return e.prototype.batch=function(t){var r=this,n=typeof t.optimistic=="string"?t.optimistic:t.optimistic===!1?null:void 0,i;return this.performTransaction(function(){return i=t.update(r)},n),i},e.prototype.recordOptimisticTransaction=function(t,r){this.performTransaction(t,r)},e.prototype.transformDocument=function(t){return t},e.prototype.transformForLink=function(t){return t},e.prototype.identify=function(t){},e.prototype.gc=function(){return[]},e.prototype.modify=function(t){return!1},e.prototype.readQuery=function(t,r){return r===void 0&&(r=!!t.optimistic),this.read(M(M({},t),{rootId:t.id||"ROOT_QUERY",optimistic:r}))},e.prototype.readFragment=function(t,r){return r===void 0&&(r=!!t.optimistic),this.read(M(M({},t),{query:this.getFragmentDoc(t.fragment,t.fragmentName),rootId:t.id,optimistic:r}))},e.prototype.writeQuery=function(t){var r=t.id,n=t.data,i=aa(t,["id","data"]);return this.write(Object.assign(i,{dataId:r||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(t){var r=t.id,n=t.data,i=t.fragment,o=t.fragmentName,a=aa(t,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(i,o),dataId:r,result:n}))},e.prototype.updateQuery=function(t,r){return this.batch({update:function(n){var i=n.readQuery(t),o=r(i);return o==null?i:(n.writeQuery(M(M({},t),{data:o})),o)}})},e.prototype.updateFragment=function(t,r){return this.batch({update:function(n){var i=n.readFragment(t),o=r(i);return o==null?i:(n.writeFragment(M(M({},t),{data:o})),o)}})},e}(),R5=function(e){Zr(t,e);function t(r,n,i,o){var a,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var l=s.path.length-1;l>=0;--l)s.missing=(a={},a[s.path[l]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return t}(Error),At=Object.prototype.hasOwnProperty;function os(e){return e==null}function F5(e,t){var r=e.__typename,n=e.id,i=e._id;if(typeof r=="string"&&(t&&(t.keyObject=os(n)?os(i)?void 0:{_id:i}:{id:n}),os(n)&&!os(i)&&(n=i),!os(n)))return"".concat(r,":").concat(typeof n=="number"||typeof n=="string"?n:JSON.stringify(n))}var L5={dataIdFromObject:F5,addTypename:!0,resultCaching:!0,canonizeResults:!1};function DT(e){return Wy(L5,e)}function M5(e){var t=e.canonizeResults;return t===void 0?L5.canonizeResults:t}function RT(e,t){return De(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var j5=/^[_a-z][_0-9a-z]*/i;function $i(e){var t=e.match(j5);return t?t[0]:e}function k0(e,t,r){return St(t)?vt(t)?t.every(function(n){return k0(e,n,r)}):e.selections.every(function(n){if(fa(n)&&Ry(n,r)){var i=Gs(n);return At.call(t,i)&&(!n.selectionSet||k0(n.selectionSet,t[i],r))}return!0}):!1}function Uo(e){return St(e)&&!De(e)&&!vt(e)}function FT(){return new ha}function V5(e,t){var r=eC(pC(e));return{fragmentMap:r,lookupFragment:function(n){var i=r[n];return!i&&t&&(i=t.lookup(n)),i||null}}}var Cc=Object.create(null),Ch=function(){return Cc},e2=Object.create(null),Ys=function(){function e(t,r){var n=this;this.policies=t,this.group=r,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(i,o){return _0(De(i)?n.get(i.__ref,o):i&&i[o])},this.canRead=function(i){return De(i)?n.has(i.__ref):typeof i=="object"},this.toReference=function(i,o){if(typeof i=="string")return Yo(i);if(De(i))return i;var a=n.policies.identify(i)[0];if(a){var s=Yo(a);return o&&n.merge(a,i),s}}}return e.prototype.toObject=function(){return M({},this.data)},e.prototype.has=function(t){return this.lookup(t,!0)!==void 0},e.prototype.get=function(t,r){if(this.group.depend(t,r),At.call(this.data,t)){var n=this.data[t];if(n&&At.call(n,r))return n[r]}if(r==="__typename"&&At.call(this.policies.rootTypenamesById,t))return this.policies.rootTypenamesById[t];if(this instanceof Zn)return this.parent.get(t,r)},e.prototype.lookup=function(t,r){if(r&&this.group.depend(t,"__exists"),At.call(this.data,t))return this.data[t];if(this instanceof Zn)return this.parent.lookup(t,r);if(this.policies.rootTypenamesById[t])return Object.create(null)},e.prototype.merge=function(t,r){var n=this,i;De(t)&&(t=t.__ref),De(r)&&(r=r.__ref);var o=typeof t=="string"?this.lookup(i=t):t,a=typeof r=="string"?this.lookup(i=r):r;if(a){__DEV__?fe(typeof i=="string","store.merge expects a string ID"):fe(typeof i=="string",1);var s=new ha(MT).merge(o,a);if(this.data[i]=s,s!==o&&(delete this.refs[i],this.group.caching)){var l=Object.create(null);o||(l.__exists=1),Object.keys(a).forEach(function(c){if(!o||o[c]!==s[c]){l[c]=1;var u=$i(c);u!==c&&!n.policies.hasKeyArgs(s.__typename,u)&&(l[u]=1),s[c]===void 0&&!(n instanceof Zn)&&delete s[c]}}),l.__typename&&!(o&&o.__typename)&&this.policies.rootTypenamesById[i]===s.__typename&&delete l.__typename,Object.keys(l).forEach(function(c){return n.group.dirty(i,c)})}}},e.prototype.modify=function(t,r){var n=this,i=this.lookup(t);if(i){var o=Object.create(null),a=!1,s=!0,l={DELETE:Cc,INVALIDATE:e2,isReference:De,toReference:this.toReference,canRead:this.canRead,readField:function(c,u){return n.policies.readField(typeof c=="string"?{fieldName:c,from:u||Yo(t)}:c,{store:n})}};if(Object.keys(i).forEach(function(c){var u=$i(c),d=i[c];if(d!==void 0){var f=typeof r=="function"?r:r[c]||r[u];if(f){var h=f===Ch?Cc:f(_0(d),M(M({},l),{fieldName:u,storeFieldName:c,storage:n.getStorage(t,c)}));h===e2?n.group.dirty(t,c):(h===Cc&&(h=void 0),h!==d&&(o[c]=h,a=!0,d=h))}d!==void 0&&(s=!1)}}),a)return this.merge(t,o),s&&(this instanceof Zn?this.data[t]=void 0:delete this.data[t],this.group.dirty(t,"__exists")),!0}return!1},e.prototype.delete=function(t,r,n){var i,o=this.lookup(t);if(o){var a=this.getFieldValue(o,"__typename"),s=r&&n?this.policies.getStoreFieldName({typename:a,fieldName:r,args:n}):r;return this.modify(t,s?(i={},i[s]=Ch,i):Ch)}return!1},e.prototype.evict=function(t,r){var n=!1;return t.id&&(At.call(this.data,t.id)&&(n=this.delete(t.id,t.fieldName,t.args)),this instanceof Zn&&this!==r&&(n=this.parent.evict(t,r)||n),(t.fieldName||n)&&this.group.dirty(t.id,t.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var t=this,r=this.toObject(),n=[];return this.getRootIdSet().forEach(function(i){At.call(t.policies.rootTypenamesById,i)||n.push(i)}),n.length&&(r.__META={extraRootIds:n.sort()}),r},e.prototype.replace=function(t){var r=this;if(Object.keys(this.data).forEach(function(o){t&&At.call(t,o)||r.delete(o)}),t){var n=t.__META,i=aa(t,["__META"]);Object.keys(i).forEach(function(o){r.merge(o,i[o])}),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(t){return this.rootIds[t]=(this.rootIds[t]||0)+1},e.prototype.release=function(t){if(this.rootIds[t]>0){var r=--this.rootIds[t];return r||delete this.rootIds[t],r}return 0},e.prototype.getRootIdSet=function(t){return t===void 0&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof Zn?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},e.prototype.gc=function(){var t=this,r=this.getRootIdSet(),n=this.toObject();r.forEach(function(a){At.call(n,a)&&(Object.keys(t.findChildRefIds(a)).forEach(r.add,r),delete n[a])});var i=Object.keys(n);if(i.length){for(var o=this;o instanceof Zn;)o=o.parent;i.forEach(function(a){return o.delete(a)})}return i},e.prototype.findChildRefIds=function(t){if(!At.call(this.refs,t)){var r=this.refs[t]=Object.create(null),n=this.data[t];if(!n)return r;var i=new Set([n]);i.forEach(function(o){De(o)&&(r[o.__ref]=!0),St(o)&&Object.keys(o).forEach(function(a){var s=o[a];St(s)&&i.add(s)})})}return this.refs[t]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),z5=function(){function e(t,r){r===void 0&&(r=null),this.caching=t,this.parent=r,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?A5():null,this.keyMaker=new Sl(El)},e.prototype.depend=function(t,r){if(this.d){this.d(Th(t,r));var n=$i(r);n!==r&&this.d(Th(t,n)),this.parent&&this.parent.depend(t,r)}},e.prototype.dirty=function(t,r){this.d&&this.d.dirty(Th(t,r),r==="__exists"?"forget":"setDirty")},e}();function Th(e,t){return t+"#"+e}function t2(e,t){As(e)&&e.group.depend(t,"__exists")}(function(e){var t=function(r){Zr(n,r);function n(i){var o=i.policies,a=i.resultCaching,s=a===void 0?!0:a,l=i.seed,c=r.call(this,o,new z5(s))||this;return c.stump=new LT(c),c.storageTrie=new Sl(El),l&&c.replace(l),c}return n.prototype.addLayer=function(i,o){return this.stump.addLayer(i,o)},n.prototype.removeLayer=function(){return this},n.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},n}(e);e.Root=t})(Ys||(Ys={}));var Zn=function(e){Zr(t,e);function t(r,n,i,o){var a=e.call(this,n.policies,o)||this;return a.id=r,a.parent=n,a.replay=i,a.group=o,i(a),a}return t.prototype.addLayer=function(r,n){return new t(r,this,n,this.group)},t.prototype.removeLayer=function(r){var n=this,i=this.parent.removeLayer(r);return r===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(o){var a=n.data[o],s=i.lookup(o);s?a?a!==s&&Object.keys(a).forEach(function(l){Wr(a[l],s[l])||n.group.dirty(o,l)}):(n.group.dirty(o,"__exists"),Object.keys(s).forEach(function(l){n.group.dirty(o,l)})):n.delete(o)}),i):i===this.parent?this:i.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return M(M({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(r){var n=this.parent.findChildRefIds(r);return At.call(this.data,r)?M(M({},n),e.prototype.findChildRefIds.call(this,r)):n},t.prototype.getStorage=function(){for(var r=this.parent;r.parent;)r=r.parent;return r.getStorage.apply(r,arguments)},t}(Ys),LT=function(e){Zr(t,e);function t(r){return e.call(this,"EntityStore.Stump",r,function(){},new z5(r.group.caching,r.group))||this}return t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(Zn);function MT(e,t,r){var n=e[r],i=t[r];return Wr(n,i)?n:i}function As(e){return!!(e instanceof Ys&&e.group.caching)}function jT(e){return St(e)?vt(e)?e.slice(0):M({__proto__:Object.getPrototypeOf(e)},e):e}var C0=function(){function e(){this.known=new(PC?WeakSet:Set),this.pool=new Sl(El),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(t){return St(t)&&this.known.has(t)},e.prototype.pass=function(t){if(St(t)){var r=jT(t);return this.passes.set(r,t),r}return t},e.prototype.admit=function(t){var r=this;if(St(t)){var n=this.passes.get(t);if(n)return n;var i=Object.getPrototypeOf(t);switch(i){case Array.prototype:{if(this.known.has(t))return t;var o=t.map(this.admit,this),a=this.pool.lookupArray(o);return a.array||(this.known.add(a.array=o),__DEV__&&Object.freeze(o)),a.array}case null:case Object.prototype:{if(this.known.has(t))return t;var s=Object.getPrototypeOf(t),l=[s],c=this.sortedKeys(t);l.push(c.json);var u=l.length;c.sorted.forEach(function(h){l.push(r.admit(t[h]))});var a=this.pool.lookupArray(l);if(!a.object){var d=a.object=Object.create(s);this.known.add(d),c.sorted.forEach(function(h,p){d[h]=l[u+p]}),__DEV__&&Object.freeze(d)}return a.object}}}return t},e.prototype.sortedKeys=function(t){var r=Object.keys(t),n=this.pool.lookupArray(r);if(!n.keys){r.sort();var i=JSON.stringify(r);(n.keys=this.keysByJSON.get(i))||this.keysByJSON.set(i,n.keys={sorted:r,json:i})}return n.keys},e}(),Xo=Object.assign(function(e){if(St(e)){T0===void 0&&r2();var t=T0.admit(e),r=P0.get(t);return r===void 0&&P0.set(t,r=JSON.stringify(t)),r}return JSON.stringify(e)},{reset:r2}),T0,P0;function r2(){T0=new C0,P0=new(El?WeakMap:Map)}function n2(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var VT=function(){function e(t){var r=this;this.knownResults=new(El?WeakMap:Map),this.config=Wy(t,{addTypename:t.addTypename!==!1,canonizeResults:M5(t)}),this.canon=t.canon||new C0,this.executeSelectionSet=Yu(function(n){var i,o=n.context.canonizeResults,a=n2(n);a[3]=!o;var s=(i=r.executeSelectionSet).peek.apply(i,a);return s?o?M(M({},s),{result:r.canon.admit(s.result)}):s:(t2(n.context.store,n.enclosingRef.__ref),r.execSelectionSetImpl(n))},{max:this.config.resultCacheMaxSize,keyArgs:n2,makeCacheKey:function(n,i,o,a){if(As(o.store))return o.store.makeCacheKey(n,De(i)?i.__ref:i,o.varString,a)}}),this.executeSubSelectedArray=Yu(function(n){return t2(n.context.store,n.enclosingRef.__ref),r.execSubSelectedArrayImpl(n)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(n){var i=n.field,o=n.array,a=n.context;if(As(a.store))return a.store.makeCacheKey(i,o,a.varString)}})}return e.prototype.resetCanon=function(){this.canon=new C0},e.prototype.diffQueryAgainstStore=function(t){var r=t.store,n=t.query,i=t.rootId,o=i===void 0?"ROOT_QUERY":i,a=t.variables,s=t.returnPartialData,l=s===void 0?!0:s,c=t.canonizeResults,u=c===void 0?this.config.canonizeResults:c,d=this.config.cache.policies;a=M(M({},v5(p5(n))),a);var f=Yo(o),h=this.executeSelectionSet({selectionSet:vC(n).selectionSet,objectOrReference:f,enclosingRef:f,context:M({store:r,query:n,policies:d,variables:a,varString:Xo(a),canonizeResults:u},V5(n,this.config.fragments))}),p;if(h.missing&&(p=[new R5(zT(h.missing),h.missing,n,a)],!l))throw p[0];return{result:h.result,complete:!p,missing:p}},e.prototype.isFresh=function(t,r,n,i){if(As(i.store)&&this.knownResults.get(t)===n){var o=this.executeSelectionSet.peek(n,r,i,this.canon.isKnown(t));if(o&&t===o.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(t){var r=this,n=t.selectionSet,i=t.objectOrReference,o=t.enclosingRef,a=t.context;if(De(i)&&!a.policies.rootTypenamesById[i.__ref]&&!a.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var s=a.variables,l=a.policies,c=a.store,u=c.getFieldValue(i,"__typename"),d=[],f,h=new ha;this.config.addTypename&&typeof u=="string"&&!l.rootIdsByTypename[u]&&d.push({__typename:u});function p(g,$){var _;return g.missing&&(f=h.merge(f,(_={},_[$]=g.missing,_))),g.result}var m=new Set(n.selections);m.forEach(function(g){var $,_;if(Ry(g,s))if(fa(g)){var S=l.readField({fieldName:g.name.value,field:g,variables:a.variables,from:i},a),w=Gs(g);S===void 0?Vy.added(g)||(f=h.merge(f,($={},$[w]="Can't find field '".concat(g.name.value,"' on ").concat(De(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),$))):vt(S)?S=p(r.executeSubSelectedArray({field:g,array:S,enclosingRef:o,context:a}),w):g.selectionSet?S!=null&&(S=p(r.executeSelectionSet({selectionSet:g.selectionSet,objectOrReference:S,enclosingRef:De(S)?S:o,context:a}),w)):a.canonizeResults&&(S=r.canon.pass(S)),S!==void 0&&d.push((_={},_[w]=S,_))}else{var k=Fy(g,a.lookupFragment);if(!k&&g.kind===ie.FRAGMENT_SPREAD)throw __DEV__?new He("No fragment named ".concat(g.name.value)):new He(5);k&&l.fragmentMatches(k,u)&&k.selectionSet.selections.forEach(m.add,m)}});var v=yC(d),b={result:v,missing:f},y=a.canonizeResults?this.canon.admit(b):_0(b);return y.result&&this.knownResults.set(y.result,n),y},e.prototype.execSubSelectedArrayImpl=function(t){var r=this,n=t.field,i=t.array,o=t.enclosingRef,a=t.context,s,l=new ha;function c(u,d){var f;return u.missing&&(s=l.merge(s,(f={},f[d]=u.missing,f))),u.result}return n.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map(function(u,d){return u===null?null:vt(u)?c(r.executeSubSelectedArray({field:n,array:u,enclosingRef:o,context:a}),d):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:u,enclosingRef:De(u)?u:o,context:a}),d):(__DEV__&&UT(a.store,n,u),u)}),{result:a.canonizeResults?this.canon.admit(i):i,missing:s}},e}();function zT(e){try{JSON.stringify(e,function(t,r){if(typeof r=="string")throw r;return r})}catch(t){return t}}function UT(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach(function(i){St(i)&&(__DEV__?fe(!De(i),"Missing selection set for object of type ".concat(RT(e,i)," returned for query field ").concat(t.name.value)):fe(!De(i),6),Object.values(i).forEach(n.add,n))})}}var U5=new kf,i2=new WeakMap;function Ds(e){var t=i2.get(e);return t||i2.set(e,t={vars:new Set,dep:A5()}),t}function o2(e){Ds(e).vars.forEach(function(t){return t.forgetCache(e)})}function BT(e){Ds(e).vars.forEach(function(t){return t.attachCache(e)})}function qT(e){var t=new Set,r=new Set,n=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(l){Ds(l).dep.dirty(n),WT(l)});var a=Array.from(r);r.clear(),a.forEach(function(l){return l(e)})}}else{var s=U5.getValue();s&&(i(s),Ds(s).dep(n))}return e};n.onNextChange=function(o){return r.add(o),function(){r.delete(o)}};var i=n.attachCache=function(o){return t.add(o),Ds(o).vars.add(n),n};return n.forgetCache=function(o){return t.delete(o)},n}function WT(e){e.broadcastWatches&&e.broadcastWatches()}var a2=Object.create(null);function Ky(e){var t=JSON.stringify(e);return a2[t]||(a2[t]=Object.create(null))}function s2(e){var t=Ky(e);return t.keyFieldsFn||(t.keyFieldsFn=function(r,n){var i=function(a,s){return n.readField(s,a)},o=n.keyObject=Yy(e,function(a){var s=Jo(n.storeObject,a,i);return s===void 0&&r!==n.storeObject&&At.call(r,a[0])&&(s=Jo(r,a,q5)),__DEV__?fe(s!==void 0,"Missing field '".concat(a.join("."),"' while extracting keyFields from ").concat(JSON.stringify(r))):fe(s!==void 0,2),s});return"".concat(n.typename,":").concat(JSON.stringify(o))})}function l2(e){var t=Ky(e);return t.keyArgsFn||(t.keyArgsFn=function(r,n){var i=n.field,o=n.variables,a=n.fieldName,s=Yy(e,function(c){var u=c[0],d=u.charAt(0);if(d==="@"){if(i&&Qs(i.directives)){var f=u.slice(1),h=i.directives.find(function(b){return b.name.value===f}),p=h&&My(h,o);return p&&Jo(p,c.slice(1))}return}if(d==="$"){var m=u.slice(1);if(o&&At.call(o,m)){var v=c.slice(0);return v[0]=m,Jo(o,v)}return}if(r)return Jo(r,c)}),l=JSON.stringify(s);return(r||l!=="{}")&&(a+=":"+l),a})}function Yy(e,t){var r=new ha;return B5(e).reduce(function(n,i){var o,a=t(i);if(a!==void 0){for(var s=i.length-1;s>=0;--s)a=(o={},o[i[s]]=a,o);n=r.merge(n,a)}return n},Object.create(null))}function B5(e){var t=Ky(e);if(!t.paths){var r=t.paths=[],n=[];e.forEach(function(i,o){vt(i)?(B5(i).forEach(function(a){return r.push(n.concat(a))}),n.length=0):(n.push(i),vt(e[o+1])||(r.push(n.slice(0)),n.length=0))})}return t.paths}function q5(e,t){return e[t]}function Jo(e,t,r){return r=r||q5,W5(t.reduce(function n(i,o){return vt(i)?i.map(function(a){return n(a,o)}):i&&r(i,o)},e))}function W5(e){return St(e)?vt(e)?e.map(W5):Yy(Object.keys(e).sort(),function(t){return Jo(e,t)}):e}Ly.setStringify(Xo);function I0(e){return e.args!==void 0?e.args:e.field?My(e.field,e.variables):null}var HT=function(){},c2=function(e,t){return t.fieldName},u2=function(e,t,r){var n=r.mergeObjects;return n(e,t)},d2=function(e,t){return t},GT=function(){function e(t){this.config=t,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=M({dataIdFromObject:F5},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return e.prototype.identify=function(t,r){var n,i=this,o=r&&(r.typename||((n=r.storeObject)===null||n===void 0?void 0:n.__typename))||t.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a=r&&r.storeObject||t,s=M(M({},r),{typename:o,storeObject:a,readField:r&&r.readField||function(){var f=Xy(arguments,a);return i.readField(f,{store:i.cache.data,variables:f.variables})}}),l,c=o&&this.getTypePolicy(o),u=c&&c.keyFn||this.config.dataIdFromObject;u;){var d=u(t,s);if(vt(d))u=s2(d);else{l=d;break}}return l=l?String(l):void 0,s.keyObject?[l,s.keyObject]:[l]},e.prototype.addTypePolicies=function(t){var r=this;Object.keys(t).forEach(function(n){var i=t[n],o=i.queryType,a=i.mutationType,s=i.subscriptionType,l=aa(i,["queryType","mutationType","subscriptionType"]);o&&r.setRootTypename("Query",n),a&&r.setRootTypename("Mutation",n),s&&r.setRootTypename("Subscription",n),At.call(r.toBeAdded,n)?r.toBeAdded[n].push(l):r.toBeAdded[n]=[l]})},e.prototype.updateTypePolicy=function(t,r){var n=this,i=this.getTypePolicy(t),o=r.keyFields,a=r.fields;function s(l,c){l.merge=typeof c=="function"?c:c===!0?u2:c===!1?d2:l.merge}s(i,r.merge),i.keyFn=o===!1?HT:vt(o)?s2(o):typeof o=="function"?o:i.keyFn,a&&Object.keys(a).forEach(function(l){var c=n.getFieldPolicy(t,l,!0),u=a[l];if(typeof u=="function")c.read=u;else{var d=u.keyArgs,f=u.read,h=u.merge;c.keyFn=d===!1?c2:vt(d)?l2(d):typeof d=="function"?d:c.keyFn,typeof f=="function"&&(c.read=f),s(c,h)}c.read&&c.merge&&(c.keyFn=c.keyFn||c2)})},e.prototype.setRootTypename=function(t,r){r===void 0&&(r=t);var n="ROOT_"+t.toUpperCase(),i=this.rootTypenamesById[n];r!==i&&(__DEV__?fe(!i||i===t,"Cannot change root ".concat(t," __typename more than once")):fe(!i||i===t,3),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[r]=n,this.rootTypenamesById[n]=r)},e.prototype.addPossibleTypes=function(t){var r=this;this.usingPossibleTypes=!0,Object.keys(t).forEach(function(n){r.getSupertypeSet(n,!0),t[n].forEach(function(i){r.getSupertypeSet(i,!0).add(n);var o=i.match(j5);(!o||o[0]!==i)&&r.fuzzySubtypes.set(i,new RegExp(i))})})},e.prototype.getTypePolicy=function(t){var r=this;if(!At.call(this.typePolicies,t)){var n=this.typePolicies[t]=Object.create(null);n.fields=Object.create(null);var i=this.supertypeMap.get(t);i&&i.size&&i.forEach(function(a){var s=r.getTypePolicy(a),l=s.fields,c=aa(s,["fields"]);Object.assign(n,c),Object.assign(n.fields,l)})}var o=this.toBeAdded[t];return o&&o.length&&o.splice(0).forEach(function(a){r.updateTypePolicy(t,a)}),this.typePolicies[t]},e.prototype.getFieldPolicy=function(t,r,n){if(t){var i=this.getTypePolicy(t).fields;return i[r]||n&&(i[r]=Object.create(null))}},e.prototype.getSupertypeSet=function(t,r){var n=this.supertypeMap.get(t);return!n&&r&&this.supertypeMap.set(t,n=new Set),n},e.prototype.fragmentMatches=function(t,r,n,i){var o=this;if(!t.typeCondition)return!0;if(!r)return!1;var a=t.typeCondition.name.value;if(r===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var s=this.getSupertypeSet(r,!0),l=[s],c=function(p){var m=o.getSupertypeSet(p,!1);m&&m.size&&l.indexOf(m)<0&&l.push(m)},u=!!(n&&this.fuzzySubtypes.size),d=!1,f=0;f<l.length;++f){var h=l[f];if(h.has(a))return s.has(a)||(d&&__DEV__&&fe.warn("Inferring subtype ".concat(r," of supertype ").concat(a)),s.add(a)),!0;h.forEach(c),u&&f===l.length-1&&k0(t.selectionSet,n,i)&&(u=!1,d=!0,this.fuzzySubtypes.forEach(function(p,m){var v=r.match(p);v&&v[0]===r&&c(m)}))}return!1},e.prototype.hasKeyArgs=function(t,r){var n=this.getFieldPolicy(t,r,!1);return!!(n&&n.keyFn)},e.prototype.getStoreFieldName=function(t){var r=t.typename,n=t.fieldName,i=this.getFieldPolicy(r,n,!1),o,a=i&&i.keyFn;if(a&&r)for(var s={typename:r,fieldName:n,field:t.field||null,variables:t.variables},l=I0(t);a;){var c=a(l,s);if(vt(c))a=l2(c);else{o=c||n;break}}return o===void 0&&(o=t.field?uC(t.field,t.variables):Ly(n,I0(t))),o===!1?n:n===$i(o)?o:n+":"+o},e.prototype.readField=function(t,r){var n=t.from;if(n){var i=t.field||t.fieldName;if(i){if(t.typename===void 0){var o=r.store.getFieldValue(n,"__typename");o&&(t.typename=o)}var a=this.getStoreFieldName(t),s=$i(a),l=r.store.getFieldValue(n,a),c=this.getFieldPolicy(t.typename,s,!1),u=c&&c.read;if(u){var d=f2(this,n,t,r,r.store.getStorage(De(n)?n.__ref:n,a));return U5.withValue(this.cache,u,[l,d])}return l}}},e.prototype.getReadFunction=function(t,r){var n=this.getFieldPolicy(t,r,!1);return n&&n.read},e.prototype.getMergeFunction=function(t,r,n){var i=this.getFieldPolicy(t,r,!1),o=i&&i.merge;return!o&&n&&(i=this.getTypePolicy(n),o=i&&i.merge),o},e.prototype.runMergeFunction=function(t,r,n,i,o){var a=n.field,s=n.typename,l=n.merge;return l===u2?H5(i.store)(t,r):l===d2?r:(i.overwrite&&(t=void 0),l(t,r,f2(this,void 0,{typename:s,fieldName:a.name.value,field:a,variables:i.variables},i,o||Object.create(null))))},e}();function f2(e,t,r,n,i){var o=e.getStoreFieldName(r),a=$i(o),s=r.variables||n.variables,l=n.store,c=l.toReference,u=l.canRead;return{args:I0(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:De,toReference:c,storage:i,cache:e.cache,canRead:u,readField:function(){return e.readField(Xy(arguments,t,s),n)},mergeObjects:H5(n.store)}}function Xy(e,t,r){var n=e[0],i=e[1],o=e.length,a;return typeof n=="string"?a={fieldName:n,from:o>1?i:t}:(a=M({},n),At.call(a,"from")||(a.from=t)),__DEV__&&a.from===void 0&&__DEV__&&fe.warn("Undefined 'from' passed to readField with arguments ".concat(AC(Array.from(e)))),a.variables===void 0&&(a.variables=r),a}function H5(e){return function(t,r){if(vt(t)||vt(r))throw __DEV__?new He("Cannot automatically merge arrays"):new He(4);if(St(t)&&St(r)){var n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename"),o=n&&i&&n!==i;if(o)return r;if(De(t)&&Uo(r))return e.merge(t.__ref,r),t;if(Uo(t)&&De(r))return e.merge(t,r.__ref),r;if(Uo(t)&&Uo(r))return M(M({},t),r)}return r}}function Ph(e,t,r){var n="".concat(t).concat(r),i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:M(M({},e),{clientOnly:t,deferred:r})),i}var QT=function(){function e(t,r,n){this.cache=t,this.reader=r,this.fragments=n}return e.prototype.writeToStore=function(t,r){var n=this,i=r.query,o=r.result,a=r.dataId,s=r.variables,l=r.overwrite,c=jy(i),u=FT();s=M(M({},v5(c)),s);var d=M(M({store:t,written:Object.create(null),merge:function(h,p){return u.merge(h,p)},variables:s,varString:Xo(s)},V5(i,this.fragments)),{overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),f=this.processSelectionSet({result:o||Object.create(null),dataId:a,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:d});if(!De(f))throw __DEV__?new He("Could not identify object ".concat(JSON.stringify(o))):new He(7);return d.incomingById.forEach(function(h,p){var m=h.storeObject,v=h.mergeTree,b=h.fieldNodeSet,y=Yo(p);if(v&&v.map.size){var g=n.applyMerges(v,y,m,d);if(De(g))return;m=g}if(__DEV__&&!d.overwrite){var $=Object.create(null);b.forEach(function(w){w.selectionSet&&($[w.name.value]=!0)});var _=function(w){return $[$i(w)]===!0},S=function(w){var k=v&&v.map.get(w);return Boolean(k&&k.info&&k.info.merge)};Object.keys(m).forEach(function(w){_(w)&&!S(w)&&KT(y,m,w,d.store)})}t.merge(p,m)}),t.retain(f.__ref),f},e.prototype.processSelectionSet=function(t){var r=this,n=t.dataId,i=t.result,o=t.selectionSet,a=t.context,s=t.mergeTree,l=this.cache.policies,c=Object.create(null),u=n&&l.rootTypenamesById[n]||g0(i,o,a.fragmentMap)||n&&a.store.get(n,"__typename");typeof u=="string"&&(c.__typename=u);var d=function(){var g=Xy(arguments,c,a.variables);if(De(g.from)){var $=a.incomingById.get(g.from.__ref);if($){var _=l.readField(M(M({},g),{from:$.storeObject}),a);if(_!==void 0)return _}}return l.readField(g,a)},f=new Set;this.flattenFields(o,i,a,u).forEach(function(g,$){var _,S=Gs($),w=i[S];if(f.add($),w!==void 0){var k=l.getStoreFieldName({typename:u,fieldName:$.name.value,field:$,variables:g.variables}),A=h2(s,k),F=r.processFieldValue(w,$,$.selectionSet?Ph(g,!1,!1):g,A),K=void 0;$.selectionSet&&(De(F)||Uo(F))&&(K=d("__typename",F));var U=l.getMergeFunction(u,$.name.value,K);U?A.info={field:$,typename:u,merge:U}:p2(s,k),c=g.merge(c,(_={},_[k]=F,_))}else __DEV__&&!g.clientOnly&&!g.deferred&&!Vy.added($)&&!l.getReadFunction(u,$.name.value)&&__DEV__&&fe.error("Missing field '".concat(Gs($),"' while writing result ").concat(JSON.stringify(i,null,2)).substring(0,1e3))});try{var h=l.identify(i,{typename:u,selectionSet:o,fragmentMap:a.fragmentMap,storeObject:c,readField:d}),p=h[0],m=h[1];n=n||p,m&&(c=a.merge(c,m))}catch(g){if(!n)throw g}if(typeof n=="string"){var v=Yo(n),b=a.written[n]||(a.written[n]=[]);if(b.indexOf(o)>=0||(b.push(o),this.reader&&this.reader.isFresh(i,v,o,a)))return v;var y=a.incomingById.get(n);return y?(y.storeObject=a.merge(y.storeObject,c),y.mergeTree=N0(y.mergeTree,s),f.forEach(function(g){return y.fieldNodeSet.add(g)})):a.incomingById.set(n,{storeObject:c,mergeTree:Xu(s)?void 0:s,fieldNodeSet:f}),v}return c},e.prototype.processFieldValue=function(t,r,n,i){var o=this;return!r.selectionSet||t===null?__DEV__?b5(t):t:vt(t)?t.map(function(a,s){var l=o.processFieldValue(a,r,n,h2(i,s));return p2(i,s),l}):this.processSelectionSet({result:t,selectionSet:r.selectionSet,context:n,mergeTree:i})},e.prototype.flattenFields=function(t,r,n,i){i===void 0&&(i=g0(r,t,n.fragmentMap));var o=new Map,a=this.cache.policies,s=new Sl(!1);return function l(c,u){var d=s.lookup(c,u.clientOnly,u.deferred);d.visited||(d.visited=!0,c.selections.forEach(function(f){if(Ry(f,n.variables)){var h=u.clientOnly,p=u.deferred;if(!(h&&p)&&Qs(f.directives)&&f.directives.forEach(function(b){var y=b.name.value;if(y==="client"&&(h=!0),y==="defer"){var g=My(b,n.variables);(!g||g.if!==!1)&&(p=!0)}}),fa(f)){var m=o.get(f);m&&(h=h&&m.clientOnly,p=p&&m.deferred),o.set(f,Ph(n,h,p))}else{var v=Fy(f,n.lookupFragment);if(!v&&f.kind===ie.FRAGMENT_SPREAD)throw __DEV__?new He("No fragment named ".concat(f.name.value)):new He(8);v&&a.fragmentMatches(v,i,r,n.variables)&&l(v.selectionSet,Ph(n,h,p))}}}))}(t,n),o},e.prototype.applyMerges=function(t,r,n,i,o){var a,s=this;if(t.map.size&&!De(n)){var l=!vt(n)&&(De(r)||Uo(r))?r:void 0,c=n;l&&!o&&(o=[De(l)?l.__ref:l]);var u,d=function(f,h){return vt(f)?typeof h=="number"?f[h]:void 0:i.store.getFieldValue(f,String(h))};t.map.forEach(function(f,h){var p=d(l,h),m=d(c,h);if(m!==void 0){o&&o.push(h);var v=s.applyMerges(f,p,m,i,o);v!==m&&(u=u||new Map,u.set(h,v)),o&&fe(o.pop()===h)}}),u&&(n=vt(c)?c.slice(0):M({},c),u.forEach(function(f,h){n[h]=f}))}return t.info?this.cache.policies.runMergeFunction(r,n,t.info,i,o&&(a=i.store).getStorage.apply(a,o)):n},e}(),G5=[];function h2(e,t){var r=e.map;return r.has(t)||r.set(t,G5.pop()||{map:new Map}),r.get(t)}function N0(e,t){if(e===t||!t||Xu(t))return e;if(!e||Xu(e))return t;var r=e.info&&t.info?M(M({},e.info),t.info):e.info||t.info,n=e.map.size&&t.map.size,i=n?new Map:e.map.size?e.map:t.map,o={info:r,map:i};if(n){var a=new Set(t.map.keys());e.map.forEach(function(s,l){o.map.set(l,N0(s,t.map.get(l))),a.delete(l)}),a.forEach(function(s){o.map.set(s,N0(t.map.get(s),e.map.get(s)))})}return o}function Xu(e){return!e||!(e.info||e.map.size)}function p2(e,t){var r=e.map,n=r.get(t);n&&Xu(n)&&(G5.push(n),r.delete(t))}var v2=new Set;function KT(e,t,r,n){var i=function(d){var f=n.getFieldValue(d,r);return typeof f=="object"&&f},o=i(e);if(o){var a=i(t);if(!!a&&!De(o)&&!Wr(o,a)&&!Object.keys(o).every(function(d){return n.getFieldValue(a,d)!==void 0})){var s=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),l=$i(r),c="".concat(s,".").concat(l);if(!v2.has(c)){v2.add(c);var u=[];!vt(o)&&!vt(a)&&[o,a].forEach(function(d){var f=n.getFieldValue(d,"__typename");typeof f=="string"&&!u.includes(f)&&u.push(f)}),__DEV__&&fe.warn("Cache data may be lost when replacing the ".concat(l," field of a ").concat(s,` object.
57
+ `):new He(23)},aT=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}},sT=function(e,t){var r=e.getContext(),n=r.uri;return n||(typeof t=="function"?t(e):t||"/graphql")};function lT(e,t){var r=[],n=function(d,f){r.push("".concat(d,"=").concat(encodeURIComponent(f)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=E0(t.variables,"Variables map")}catch(d){return{parseError:d}}n("variables",i)}if(t.extensions){var o=void 0;try{o=E0(t.extensions,"Extensions map")}catch(d){return{parseError:d}}n("extensions",o)}var a="",s=e,l=e.indexOf("#");l!==-1&&(a=e.substr(l),s=e.substr(0,l));var c=s.indexOf("?")===-1?"?":"&",u=s+c+r.join("&")+a;return{newURI:u}}var W1=Pr(function(){return fetch}),cT=function(e){e===void 0&&(e={});var t=e.uri,r=t===void 0?"/graphql":t,n=e.fetch,i=e.print,o=i===void 0?rT:i,a=e.includeExtensions,s=e.preserveHeaderCase,l=e.useGETForQueries,c=e.includeUnusedVariables,u=c===void 0?!1:c,d=aa(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);__DEV__&&oT(n||W1);var f={http:{includeExtensions:a,preserveHeaderCase:s},options:d.fetchOptions,credentials:d.credentials,headers:d.headers};return new Of(function(h){var p=sT(h,r),m=h.getContext(),v={};if(m.clientAwareness){var b=m.clientAwareness,y=b.name,g=b.version;y&&(v["apollographql-client-name"]=y),g&&(v["apollographql-client-version"]=g)}var $=M(M({},v),m.headers),_={http:m.http,options:m.fetchOptions,credentials:m.credentials,headers:$},S=nT(h,o,tT,f,_),w=S.options,k=S.body;if(k.variables&&!u){var A=new Set(Object.keys(k.variables));Ef(h.query,{Variable:function(H,te,le){le&&le.kind!=="VariableDefinition"&&A.delete(H.name.value)}}),A.size&&(k.variables=M({},k.variables),A.forEach(function(H){delete k.variables[H]}))}var F;if(!w.signal){var K=aT(),U=K.controller,N=K.signal;F=U,F&&(w.signal=N)}var Q=function(H){return H.kind==="OperationDefinition"&&H.operation==="mutation"};if(l&&!h.query.definitions.some(Q)&&(w.method="GET"),Y7(["defer"],h.query)&&(w.headers=w.headers||{},w.headers.accept="multipart/mixed; deferSpec=20220824, application/json"),w.method==="GET"){var j=lT(p,k),W=j.newURI,V=j.parseError;if(V)return z1(V);p=W}else try{w.body=E0(k,"Payload")}catch(H){return z1(H)}return new pt(function(H){var te=n||Pr(function(){return fetch})||W1;return te(p,w).then(function(le){var de;h.setContext({response:le});var O=(de=le.headers)===null||de===void 0?void 0:de.get("content-type");return O!==null&&/^multipart\/mixed/i.test(O)?QC(le,H):YC(le,h,H)}).catch(function(le){return Hy(le,H)}),function(){F&&F.abort()}})})};(function(e){Zr(t,e);function t(r){r===void 0&&(r={});var n=e.call(this,cT(r).request)||this;return n.options=r,n}return t})(Of);var x5=Object.prototype,H1=x5.toString,uT=x5.hasOwnProperty,G1=Function.prototype.toString,S0=new Map;function Wr(e,t){try{return O0(e,t)}finally{S0.clear()}}function O0(e,t){if(e===t)return!0;var r=H1.call(e),n=H1.call(t);if(r!==n)return!1;switch(r){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(K1(e,t))return!0;var i=Q1(e),o=Q1(t),a=i.length;if(a!==o.length)return!1;for(var s=0;s<a;++s)if(!uT.call(t,i[s]))return!1;for(var s=0;s<a;++s){var l=i[s];if(!O0(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=="".concat(t);case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(K1(e,t))return!0;for(var c=e.entries(),u=r==="[object Map]";;){var d=c.next();if(d.done)break;var f=d.value,h=f[0],p=f[1];if(!t.has(h)||u&&!O0(p,t.get(h)))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 m===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{var v=G1.call(e);return v!==G1.call(t)?!1:!hT(v,fT)}}return!1}function Q1(e){return Object.keys(e).filter(dT,e)}function dT(e){return this[e]!==void 0}var fT="{ [native code] }";function hT(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function K1(e,t){var r=S0.get(e);if(r){if(r.has(t))return!0}else S0.set(e,r=new Set);return r.add(t),!1}var pT=function(){return Object.create(null)},E5=Array.prototype,vT=E5.forEach,mT=E5.slice,Sl=function(){function e(t,r){t===void 0&&(t=!0),r===void 0&&(r=pT),this.weakness=t,this.makeData=r}return e.prototype.lookup=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return this.lookupArray(t)},e.prototype.lookupArray=function(t){var r=this;return vT.call(t,function(n){return r=r.getChildTrie(n)}),r.data||(r.data=this.makeData(mT.call(t)))},e.prototype.getChildTrie=function(t){var r=this.weakness&&yT(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),n=r.get(t);return n||r.set(t,n=new e(this.weakness,this.makeData)),n},e}();function yT(e){switch(typeof e){case"object":if(e===null)break;case"function":return!0}return!1}var Bt=null,Y1={},gT=1,bT=function(){return function(){function e(){this.id=["slot",gT++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var t=Bt;t;t=t.parent)if(this.id in t.slots){var r=t.slots[this.id];if(r===Y1)break;return t!==Bt&&(Bt.slots[this.id]=r),!0}return Bt&&(Bt.slots[this.id]=Y1),!1},e.prototype.getValue=function(){if(this.hasValue())return Bt.slots[this.id]},e.prototype.withValue=function(t,r,n,i){var o,a=(o={__proto__:null},o[this.id]=t,o),s=Bt;Bt={parent:s,slots:a};try{return r.apply(i,n)}finally{Bt=s}},e.bind=function(t){var r=Bt;return function(){var n=Bt;try{return Bt=r,t.apply(this,arguments)}finally{Bt=n}}},e.noContext=function(t,r,n){if(Bt){var i=Bt;try{return Bt=null,t.apply(n,r)}finally{Bt=i}}else return t.apply(n,r)},e}()};function X1(e){try{return e()}catch{}}var Sh="@wry/context:Slot",$T=X1(function(){return globalThis})||X1(function(){return global})||Object.create(null),J1=$T,kf=J1[Sh]||Array[Sh]||function(e){try{Object.defineProperty(J1,Sh,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(bT());kf.bind;kf.noContext;function wT(){}var _T=function(){function e(t,r){t===void 0&&(t=1/0),r===void 0&&(r=wT),this.max=t,this.dispose=r,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(t){return this.map.has(t)},e.prototype.get=function(t){var r=this.getNode(t);return r&&r.value},e.prototype.getNode=function(t){var r=this.map.get(t);if(r&&r!==this.newest){var n=r.older,i=r.newer;i&&(i.older=n),n&&(n.newer=i),r.older=this.newest,r.older.newer=r,r.newer=null,this.newest=r,r===this.oldest&&(this.oldest=i)}return r},e.prototype.set=function(t,r){var n=this.getNode(t);return n?n.value=r:(n={key:t,value:r,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(t,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(t){var r=this.map.get(t);return r?(r===this.newest&&(this.newest=r.older),r===this.oldest&&(this.oldest=r.newer),r.newer&&(r.newer.older=r.older),r.older&&(r.older.newer=r.newer),this.map.delete(t),this.dispose(r.value,t),!0):!1},e}(),Cf=new kf,Oh,xT=Object.prototype.hasOwnProperty,Gy=(Oh=Array.from,Oh===void 0?function(e){var t=[];return e.forEach(function(r){return t.push(r)}),t}:Oh);function Ku(e){var t=e.unsubscribe;typeof t=="function"&&(e.unsubscribe=void 0,t())}var Ks=[],ET=100;function va(e,t){if(!e)throw new Error(t||"assertion failure")}function ST(e,t){var r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function S5(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function OT(e){return e.slice(0)}var kT=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(this.value.length===1&&!bi(this))return Z1(this),this.value[0]},e.prototype.recompute=function(t){return va(!this.recomputing,"already recomputing"),Z1(this),bi(this)?CT(this,t):S5(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,O5(this),Ku(this))},e.prototype.dispose=function(){var t=this;this.setDirty(),I5(this),Qy(this,function(r,n){r.setDirty(),N5(r,t)})},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(t){t.add(this),this.deps||(this.deps=Ks.pop()||new Set),this.deps.add(t)},e.prototype.forgetDeps=function(){var t=this;this.deps&&(Gy(this.deps).forEach(function(r){return r.delete(t)}),this.deps.clear(),Ks.push(this.deps),this.deps=null)},e.count=0,e}();function Z1(e){var t=Cf.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),bi(e)?C5(t,e):T5(t,e),t}function CT(e,t){return I5(e),Cf.withValue(e,TT,[e,t]),IT(e,t)&&PT(e),S5(e.value)}function TT(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(r){e.value[1]=r}e.recomputing=!1}function bi(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function PT(e){e.dirty=!1,!bi(e)&&k5(e)}function O5(e){Qy(e,C5)}function k5(e){Qy(e,T5)}function Qy(e,t){var r=e.parents.size;if(r)for(var n=Gy(e.parents),i=0;i<r;++i)t(n[i],e)}function C5(e,t){va(e.childValues.has(t)),va(bi(t));var r=!bi(e);if(!e.dirtyChildren)e.dirtyChildren=Ks.pop()||new Set;else if(e.dirtyChildren.has(t))return;e.dirtyChildren.add(t),r&&O5(e)}function T5(e,t){va(e.childValues.has(t)),va(!bi(t));var r=e.childValues.get(t);r.length===0?e.childValues.set(t,OT(t.value)):ST(r,t.value)||e.setDirty(),P5(e,t),!bi(e)&&k5(e)}function P5(e,t){var r=e.dirtyChildren;r&&(r.delete(t),r.size===0&&(Ks.length<ET&&Ks.push(r),e.dirtyChildren=null))}function I5(e){e.childValues.size>0&&e.childValues.forEach(function(t,r){N5(e,r)}),e.forgetDeps(),va(e.dirtyChildren===null)}function N5(e,t){t.parents.delete(e),e.childValues.delete(t),P5(e,t)}function IT(e,t){if(typeof e.subscribe=="function")try{Ku(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}var NT={setDirty:!0,dispose:!0,forget:!0};function A5(e){var t=new Map,r=e&&e.subscribe;function n(i){var o=Cf.getValue();if(o){var a=t.get(i);a||t.set(i,a=new Set),o.dependOn(a),typeof r=="function"&&(Ku(a),a.unsubscribe=r(i))}}return n.dirty=function(i,o){var a=t.get(i);if(a){var s=o&&xT.call(NT,o)?o:"setDirty";Gy(a).forEach(function(l){return l[s]()}),t.delete(i),Ku(a)}},n}function D5(){var e=new Sl(typeof WeakMap=="function");return function(){return e.lookupArray(arguments)}}D5();var kh=new Set;function Yu(e,t){t===void 0&&(t=Object.create(null));var r=new _T(t.max||Math.pow(2,16),function(c){return c.dispose()}),n=t.keyArgs,i=t.makeCacheKey||D5(),o=function(){var c=i.apply(null,n?n.apply(null,arguments):arguments);if(c===void 0)return e.apply(null,arguments);var u=r.get(c);u||(r.set(c,u=new kT(e)),u.subscribe=t.subscribe,u.forget=function(){return r.delete(c)});var d=u.recompute(Array.prototype.slice.call(arguments));return r.set(c,u),kh.add(r),Cf.hasValue()||(kh.forEach(function(f){return f.clean()}),kh.clear()),d};Object.defineProperty(o,"size",{get:function(){return r.map.size},configurable:!1,enumerable:!1});function a(c){var u=r.get(c);u&&u.setDirty()}o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))};function s(c){var u=r.get(c);if(u)return u.peek()}o.peekKey=s,o.peek=function(){return s(i.apply(null,arguments))};function l(c){return r.delete(c)}return o.forgetKey=l,o.forget=function(){return l(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=n?function(){return i.apply(null,n.apply(null,arguments))}:i,Object.freeze(o)}var AT=function(){function e(){this.getFragmentDoc=Yu(Z7)}return e.prototype.batch=function(t){var r=this,n=typeof t.optimistic=="string"?t.optimistic:t.optimistic===!1?null:void 0,i;return this.performTransaction(function(){return i=t.update(r)},n),i},e.prototype.recordOptimisticTransaction=function(t,r){this.performTransaction(t,r)},e.prototype.transformDocument=function(t){return t},e.prototype.transformForLink=function(t){return t},e.prototype.identify=function(t){},e.prototype.gc=function(){return[]},e.prototype.modify=function(t){return!1},e.prototype.readQuery=function(t,r){return r===void 0&&(r=!!t.optimistic),this.read(M(M({},t),{rootId:t.id||"ROOT_QUERY",optimistic:r}))},e.prototype.readFragment=function(t,r){return r===void 0&&(r=!!t.optimistic),this.read(M(M({},t),{query:this.getFragmentDoc(t.fragment,t.fragmentName),rootId:t.id,optimistic:r}))},e.prototype.writeQuery=function(t){var r=t.id,n=t.data,i=aa(t,["id","data"]);return this.write(Object.assign(i,{dataId:r||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(t){var r=t.id,n=t.data,i=t.fragment,o=t.fragmentName,a=aa(t,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(i,o),dataId:r,result:n}))},e.prototype.updateQuery=function(t,r){return this.batch({update:function(n){var i=n.readQuery(t),o=r(i);return o==null?i:(n.writeQuery(M(M({},t),{data:o})),o)}})},e.prototype.updateFragment=function(t,r){return this.batch({update:function(n){var i=n.readFragment(t),o=r(i);return o==null?i:(n.writeFragment(M(M({},t),{data:o})),o)}})},e}(),R5=function(e){Zr(t,e);function t(r,n,i,o){var a,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var l=s.path.length-1;l>=0;--l)s.missing=(a={},a[s.path[l]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return t}(Error),At=Object.prototype.hasOwnProperty;function os(e){return e==null}function F5(e,t){var r=e.__typename,n=e.id,i=e._id;if(typeof r=="string"&&(t&&(t.keyObject=os(n)?os(i)?void 0:{_id:i}:{id:n}),os(n)&&!os(i)&&(n=i),!os(n)))return"".concat(r,":").concat(typeof n=="number"||typeof n=="string"?n:JSON.stringify(n))}var L5={dataIdFromObject:F5,addTypename:!0,resultCaching:!0,canonizeResults:!1};function DT(e){return Wy(L5,e)}function M5(e){var t=e.canonizeResults;return t===void 0?L5.canonizeResults:t}function RT(e,t){return De(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var j5=/^[_a-z][_0-9a-z]*/i;function $i(e){var t=e.match(j5);return t?t[0]:e}function k0(e,t,r){return St(t)?vt(t)?t.every(function(n){return k0(e,n,r)}):e.selections.every(function(n){if(fa(n)&&Ry(n,r)){var i=Gs(n);return At.call(t,i)&&(!n.selectionSet||k0(n.selectionSet,t[i],r))}return!0}):!1}function Uo(e){return St(e)&&!De(e)&&!vt(e)}function FT(){return new ha}function V5(e,t){var r=eC(pC(e));return{fragmentMap:r,lookupFragment:function(n){var i=r[n];return!i&&t&&(i=t.lookup(n)),i||null}}}var Cc=Object.create(null),Ch=function(){return Cc},e2=Object.create(null),Ys=function(){function e(t,r){var n=this;this.policies=t,this.group=r,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(i,o){return _0(De(i)?n.get(i.__ref,o):i&&i[o])},this.canRead=function(i){return De(i)?n.has(i.__ref):typeof i=="object"},this.toReference=function(i,o){if(typeof i=="string")return Yo(i);if(De(i))return i;var a=n.policies.identify(i)[0];if(a){var s=Yo(a);return o&&n.merge(a,i),s}}}return e.prototype.toObject=function(){return M({},this.data)},e.prototype.has=function(t){return this.lookup(t,!0)!==void 0},e.prototype.get=function(t,r){if(this.group.depend(t,r),At.call(this.data,t)){var n=this.data[t];if(n&&At.call(n,r))return n[r]}if(r==="__typename"&&At.call(this.policies.rootTypenamesById,t))return this.policies.rootTypenamesById[t];if(this instanceof Zn)return this.parent.get(t,r)},e.prototype.lookup=function(t,r){if(r&&this.group.depend(t,"__exists"),At.call(this.data,t))return this.data[t];if(this instanceof Zn)return this.parent.lookup(t,r);if(this.policies.rootTypenamesById[t])return Object.create(null)},e.prototype.merge=function(t,r){var n=this,i;De(t)&&(t=t.__ref),De(r)&&(r=r.__ref);var o=typeof t=="string"?this.lookup(i=t):t,a=typeof r=="string"?this.lookup(i=r):r;if(a){__DEV__?fe(typeof i=="string","store.merge expects a string ID"):fe(typeof i=="string",1);var s=new ha(MT).merge(o,a);if(this.data[i]=s,s!==o&&(delete this.refs[i],this.group.caching)){var l=Object.create(null);o||(l.__exists=1),Object.keys(a).forEach(function(c){if(!o||o[c]!==s[c]){l[c]=1;var u=$i(c);u!==c&&!n.policies.hasKeyArgs(s.__typename,u)&&(l[u]=1),s[c]===void 0&&!(n instanceof Zn)&&delete s[c]}}),l.__typename&&!(o&&o.__typename)&&this.policies.rootTypenamesById[i]===s.__typename&&delete l.__typename,Object.keys(l).forEach(function(c){return n.group.dirty(i,c)})}}},e.prototype.modify=function(t,r){var n=this,i=this.lookup(t);if(i){var o=Object.create(null),a=!1,s=!0,l={DELETE:Cc,INVALIDATE:e2,isReference:De,toReference:this.toReference,canRead:this.canRead,readField:function(c,u){return n.policies.readField(typeof c=="string"?{fieldName:c,from:u||Yo(t)}:c,{store:n})}};if(Object.keys(i).forEach(function(c){var u=$i(c),d=i[c];if(d!==void 0){var f=typeof r=="function"?r:r[c]||r[u];if(f){var h=f===Ch?Cc:f(_0(d),M(M({},l),{fieldName:u,storeFieldName:c,storage:n.getStorage(t,c)}));h===e2?n.group.dirty(t,c):(h===Cc&&(h=void 0),h!==d&&(o[c]=h,a=!0,d=h))}d!==void 0&&(s=!1)}}),a)return this.merge(t,o),s&&(this instanceof Zn?this.data[t]=void 0:delete this.data[t],this.group.dirty(t,"__exists")),!0}return!1},e.prototype.delete=function(t,r,n){var i,o=this.lookup(t);if(o){var a=this.getFieldValue(o,"__typename"),s=r&&n?this.policies.getStoreFieldName({typename:a,fieldName:r,args:n}):r;return this.modify(t,s?(i={},i[s]=Ch,i):Ch)}return!1},e.prototype.evict=function(t,r){var n=!1;return t.id&&(At.call(this.data,t.id)&&(n=this.delete(t.id,t.fieldName,t.args)),this instanceof Zn&&this!==r&&(n=this.parent.evict(t,r)||n),(t.fieldName||n)&&this.group.dirty(t.id,t.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var t=this,r=this.toObject(),n=[];return this.getRootIdSet().forEach(function(i){At.call(t.policies.rootTypenamesById,i)||n.push(i)}),n.length&&(r.__META={extraRootIds:n.sort()}),r},e.prototype.replace=function(t){var r=this;if(Object.keys(this.data).forEach(function(o){t&&At.call(t,o)||r.delete(o)}),t){var n=t.__META,i=aa(t,["__META"]);Object.keys(i).forEach(function(o){r.merge(o,i[o])}),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(t){return this.rootIds[t]=(this.rootIds[t]||0)+1},e.prototype.release=function(t){if(this.rootIds[t]>0){var r=--this.rootIds[t];return r||delete this.rootIds[t],r}return 0},e.prototype.getRootIdSet=function(t){return t===void 0&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof Zn?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},e.prototype.gc=function(){var t=this,r=this.getRootIdSet(),n=this.toObject();r.forEach(function(a){At.call(n,a)&&(Object.keys(t.findChildRefIds(a)).forEach(r.add,r),delete n[a])});var i=Object.keys(n);if(i.length){for(var o=this;o instanceof Zn;)o=o.parent;i.forEach(function(a){return o.delete(a)})}return i},e.prototype.findChildRefIds=function(t){if(!At.call(this.refs,t)){var r=this.refs[t]=Object.create(null),n=this.data[t];if(!n)return r;var i=new Set([n]);i.forEach(function(o){De(o)&&(r[o.__ref]=!0),St(o)&&Object.keys(o).forEach(function(a){var s=o[a];St(s)&&i.add(s)})})}return this.refs[t]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),z5=function(){function e(t,r){r===void 0&&(r=null),this.caching=t,this.parent=r,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?A5():null,this.keyMaker=new Sl(El)},e.prototype.depend=function(t,r){if(this.d){this.d(Th(t,r));var n=$i(r);n!==r&&this.d(Th(t,n)),this.parent&&this.parent.depend(t,r)}},e.prototype.dirty=function(t,r){this.d&&this.d.dirty(Th(t,r),r==="__exists"?"forget":"setDirty")},e}();function Th(e,t){return t+"#"+e}function t2(e,t){As(e)&&e.group.depend(t,"__exists")}(function(e){var t=function(r){Zr(n,r);function n(i){var o=i.policies,a=i.resultCaching,s=a===void 0?!0:a,l=i.seed,c=r.call(this,o,new z5(s))||this;return c.stump=new LT(c),c.storageTrie=new Sl(El),l&&c.replace(l),c}return n.prototype.addLayer=function(i,o){return this.stump.addLayer(i,o)},n.prototype.removeLayer=function(){return this},n.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},n}(e);e.Root=t})(Ys||(Ys={}));var Zn=function(e){Zr(t,e);function t(r,n,i,o){var a=e.call(this,n.policies,o)||this;return a.id=r,a.parent=n,a.replay=i,a.group=o,i(a),a}return t.prototype.addLayer=function(r,n){return new t(r,this,n,this.group)},t.prototype.removeLayer=function(r){var n=this,i=this.parent.removeLayer(r);return r===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(o){var a=n.data[o],s=i.lookup(o);s?a?a!==s&&Object.keys(a).forEach(function(l){Wr(a[l],s[l])||n.group.dirty(o,l)}):(n.group.dirty(o,"__exists"),Object.keys(s).forEach(function(l){n.group.dirty(o,l)})):n.delete(o)}),i):i===this.parent?this:i.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return M(M({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(r){var n=this.parent.findChildRefIds(r);return At.call(this.data,r)?M(M({},n),e.prototype.findChildRefIds.call(this,r)):n},t.prototype.getStorage=function(){for(var r=this.parent;r.parent;)r=r.parent;return r.getStorage.apply(r,arguments)},t}(Ys),LT=function(e){Zr(t,e);function t(r){return e.call(this,"EntityStore.Stump",r,function(){},new z5(r.group.caching,r.group))||this}return t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(Zn);function MT(e,t,r){var n=e[r],i=t[r];return Wr(n,i)?n:i}function As(e){return!!(e instanceof Ys&&e.group.caching)}function jT(e){return St(e)?vt(e)?e.slice(0):M({__proto__:Object.getPrototypeOf(e)},e):e}var C0=function(){function e(){this.known=new(PC?WeakSet:Set),this.pool=new Sl(El),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(t){return St(t)&&this.known.has(t)},e.prototype.pass=function(t){if(St(t)){var r=jT(t);return this.passes.set(r,t),r}return t},e.prototype.admit=function(t){var r=this;if(St(t)){var n=this.passes.get(t);if(n)return n;var i=Object.getPrototypeOf(t);switch(i){case Array.prototype:{if(this.known.has(t))return t;var o=t.map(this.admit,this),a=this.pool.lookupArray(o);return a.array||(this.known.add(a.array=o),__DEV__&&Object.freeze(o)),a.array}case null:case Object.prototype:{if(this.known.has(t))return t;var s=Object.getPrototypeOf(t),l=[s],c=this.sortedKeys(t);l.push(c.json);var u=l.length;c.sorted.forEach(function(h){l.push(r.admit(t[h]))});var a=this.pool.lookupArray(l);if(!a.object){var d=a.object=Object.create(s);this.known.add(d),c.sorted.forEach(function(h,p){d[h]=l[u+p]}),__DEV__&&Object.freeze(d)}return a.object}}}return t},e.prototype.sortedKeys=function(t){var r=Object.keys(t),n=this.pool.lookupArray(r);if(!n.keys){r.sort();var i=JSON.stringify(r);(n.keys=this.keysByJSON.get(i))||this.keysByJSON.set(i,n.keys={sorted:r,json:i})}return n.keys},e}(),Xo=Object.assign(function(e){if(St(e)){T0===void 0&&r2();var t=T0.admit(e),r=P0.get(t);return r===void 0&&P0.set(t,r=JSON.stringify(t)),r}return JSON.stringify(e)},{reset:r2}),T0,P0;function r2(){T0=new C0,P0=new(El?WeakMap:Map)}function n2(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var VT=function(){function e(t){var r=this;this.knownResults=new(El?WeakMap:Map),this.config=Wy(t,{addTypename:t.addTypename!==!1,canonizeResults:M5(t)}),this.canon=t.canon||new C0,this.executeSelectionSet=Yu(function(n){var i,o=n.context.canonizeResults,a=n2(n);a[3]=!o;var s=(i=r.executeSelectionSet).peek.apply(i,a);return s?o?M(M({},s),{result:r.canon.admit(s.result)}):s:(t2(n.context.store,n.enclosingRef.__ref),r.execSelectionSetImpl(n))},{max:this.config.resultCacheMaxSize,keyArgs:n2,makeCacheKey:function(n,i,o,a){if(As(o.store))return o.store.makeCacheKey(n,De(i)?i.__ref:i,o.varString,a)}}),this.executeSubSelectedArray=Yu(function(n){return t2(n.context.store,n.enclosingRef.__ref),r.execSubSelectedArrayImpl(n)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(n){var i=n.field,o=n.array,a=n.context;if(As(a.store))return a.store.makeCacheKey(i,o,a.varString)}})}return e.prototype.resetCanon=function(){this.canon=new C0},e.prototype.diffQueryAgainstStore=function(t){var r=t.store,n=t.query,i=t.rootId,o=i===void 0?"ROOT_QUERY":i,a=t.variables,s=t.returnPartialData,l=s===void 0?!0:s,c=t.canonizeResults,u=c===void 0?this.config.canonizeResults:c,d=this.config.cache.policies;a=M(M({},v5(p5(n))),a);var f=Yo(o),h=this.executeSelectionSet({selectionSet:vC(n).selectionSet,objectOrReference:f,enclosingRef:f,context:M({store:r,query:n,policies:d,variables:a,varString:Xo(a),canonizeResults:u},V5(n,this.config.fragments))}),p;if(h.missing&&(p=[new R5(zT(h.missing),h.missing,n,a)],!l))throw p[0];return{result:h.result,complete:!p,missing:p}},e.prototype.isFresh=function(t,r,n,i){if(As(i.store)&&this.knownResults.get(t)===n){var o=this.executeSelectionSet.peek(n,r,i,this.canon.isKnown(t));if(o&&t===o.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(t){var r=this,n=t.selectionSet,i=t.objectOrReference,o=t.enclosingRef,a=t.context;if(De(i)&&!a.policies.rootTypenamesById[i.__ref]&&!a.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var s=a.variables,l=a.policies,c=a.store,u=c.getFieldValue(i,"__typename"),d=[],f,h=new ha;this.config.addTypename&&typeof u=="string"&&!l.rootIdsByTypename[u]&&d.push({__typename:u});function p(g,$){var _;return g.missing&&(f=h.merge(f,(_={},_[$]=g.missing,_))),g.result}var m=new Set(n.selections);m.forEach(function(g){var $,_;if(Ry(g,s))if(fa(g)){var S=l.readField({fieldName:g.name.value,field:g,variables:a.variables,from:i},a),w=Gs(g);S===void 0?Vy.added(g)||(f=h.merge(f,($={},$[w]="Can't find field '".concat(g.name.value,"' on ").concat(De(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),$))):vt(S)?S=p(r.executeSubSelectedArray({field:g,array:S,enclosingRef:o,context:a}),w):g.selectionSet?S!=null&&(S=p(r.executeSelectionSet({selectionSet:g.selectionSet,objectOrReference:S,enclosingRef:De(S)?S:o,context:a}),w)):a.canonizeResults&&(S=r.canon.pass(S)),S!==void 0&&d.push((_={},_[w]=S,_))}else{var k=Fy(g,a.lookupFragment);if(!k&&g.kind===ie.FRAGMENT_SPREAD)throw __DEV__?new He("No fragment named ".concat(g.name.value)):new He(5);k&&l.fragmentMatches(k,u)&&k.selectionSet.selections.forEach(m.add,m)}});var v=yC(d),b={result:v,missing:f},y=a.canonizeResults?this.canon.admit(b):_0(b);return y.result&&this.knownResults.set(y.result,n),y},e.prototype.execSubSelectedArrayImpl=function(t){var r=this,n=t.field,i=t.array,o=t.enclosingRef,a=t.context,s,l=new ha;function c(u,d){var f;return u.missing&&(s=l.merge(s,(f={},f[d]=u.missing,f))),u.result}return n.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map(function(u,d){return u===null?null:vt(u)?c(r.executeSubSelectedArray({field:n,array:u,enclosingRef:o,context:a}),d):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:u,enclosingRef:De(u)?u:o,context:a}),d):(__DEV__&&UT(a.store,n,u),u)}),{result:a.canonizeResults?this.canon.admit(i):i,missing:s}},e}();function zT(e){try{JSON.stringify(e,function(t,r){if(typeof r=="string")throw r;return r})}catch(t){return t}}function UT(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach(function(i){St(i)&&(__DEV__?fe(!De(i),"Missing selection set for object of type ".concat(RT(e,i)," returned for query field ").concat(t.name.value)):fe(!De(i),6),Object.values(i).forEach(n.add,n))})}}var U5=new kf,i2=new WeakMap;function Ds(e){var t=i2.get(e);return t||i2.set(e,t={vars:new Set,dep:A5()}),t}function o2(e){Ds(e).vars.forEach(function(t){return t.forgetCache(e)})}function BT(e){Ds(e).vars.forEach(function(t){return t.attachCache(e)})}function qT(e){var t=new Set,r=new Set,n=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(l){Ds(l).dep.dirty(n),WT(l)});var a=Array.from(r);r.clear(),a.forEach(function(l){return l(e)})}}else{var s=U5.getValue();s&&(i(s),Ds(s).dep(n))}return e};n.onNextChange=function(o){return r.add(o),function(){r.delete(o)}};var i=n.attachCache=function(o){return t.add(o),Ds(o).vars.add(n),n};return n.forgetCache=function(o){return t.delete(o)},n}function WT(e){e.broadcastWatches&&e.broadcastWatches()}var a2=Object.create(null);function Ky(e){var t=JSON.stringify(e);return a2[t]||(a2[t]=Object.create(null))}function s2(e){var t=Ky(e);return t.keyFieldsFn||(t.keyFieldsFn=function(r,n){var i=function(a,s){return n.readField(s,a)},o=n.keyObject=Yy(e,function(a){var s=Jo(n.storeObject,a,i);return s===void 0&&r!==n.storeObject&&At.call(r,a[0])&&(s=Jo(r,a,q5)),__DEV__?fe(s!==void 0,"Missing field '".concat(a.join("."),"' while extracting keyFields from ").concat(JSON.stringify(r))):fe(s!==void 0,2),s});return"".concat(n.typename,":").concat(JSON.stringify(o))})}function l2(e){var t=Ky(e);return t.keyArgsFn||(t.keyArgsFn=function(r,n){var i=n.field,o=n.variables,a=n.fieldName,s=Yy(e,function(c){var u=c[0],d=u.charAt(0);if(d==="@"){if(i&&Qs(i.directives)){var f=u.slice(1),h=i.directives.find(function(b){return b.name.value===f}),p=h&&My(h,o);return p&&Jo(p,c.slice(1))}return}if(d==="$"){var m=u.slice(1);if(o&&At.call(o,m)){var v=c.slice(0);return v[0]=m,Jo(o,v)}return}if(r)return Jo(r,c)}),l=JSON.stringify(s);return(r||l!=="{}")&&(a+=":"+l),a})}function Yy(e,t){var r=new ha;return B5(e).reduce(function(n,i){var o,a=t(i);if(a!==void 0){for(var s=i.length-1;s>=0;--s)a=(o={},o[i[s]]=a,o);n=r.merge(n,a)}return n},Object.create(null))}function B5(e){var t=Ky(e);if(!t.paths){var r=t.paths=[],n=[];e.forEach(function(i,o){vt(i)?(B5(i).forEach(function(a){return r.push(n.concat(a))}),n.length=0):(n.push(i),vt(e[o+1])||(r.push(n.slice(0)),n.length=0))})}return t.paths}function q5(e,t){return e[t]}function Jo(e,t,r){return r=r||q5,W5(t.reduce(function n(i,o){return vt(i)?i.map(function(a){return n(a,o)}):i&&r(i,o)},e))}function W5(e){return St(e)?vt(e)?e.map(W5):Yy(Object.keys(e).sort(),function(t){return Jo(e,t)}):e}Ly.setStringify(Xo);function I0(e){return e.args!==void 0?e.args:e.field?My(e.field,e.variables):null}var HT=function(){},c2=function(e,t){return t.fieldName},u2=function(e,t,r){var n=r.mergeObjects;return n(e,t)},d2=function(e,t){return t},GT=function(){function e(t){this.config=t,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=M({dataIdFromObject:F5},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return e.prototype.identify=function(t,r){var n,i=this,o=r&&(r.typename||((n=r.storeObject)===null||n===void 0?void 0:n.__typename))||t.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a=r&&r.storeObject||t,s=M(M({},r),{typename:o,storeObject:a,readField:r&&r.readField||function(){var f=Xy(arguments,a);return i.readField(f,{store:i.cache.data,variables:f.variables})}}),l,c=o&&this.getTypePolicy(o),u=c&&c.keyFn||this.config.dataIdFromObject;u;){var d=u(t,s);if(vt(d))u=s2(d);else{l=d;break}}return l=l?String(l):void 0,s.keyObject?[l,s.keyObject]:[l]},e.prototype.addTypePolicies=function(t){var r=this;Object.keys(t).forEach(function(n){var i=t[n],o=i.queryType,a=i.mutationType,s=i.subscriptionType,l=aa(i,["queryType","mutationType","subscriptionType"]);o&&r.setRootTypename("Query",n),a&&r.setRootTypename("Mutation",n),s&&r.setRootTypename("Subscription",n),At.call(r.toBeAdded,n)?r.toBeAdded[n].push(l):r.toBeAdded[n]=[l]})},e.prototype.updateTypePolicy=function(t,r){var n=this,i=this.getTypePolicy(t),o=r.keyFields,a=r.fields;function s(l,c){l.merge=typeof c=="function"?c:c===!0?u2:c===!1?d2:l.merge}s(i,r.merge),i.keyFn=o===!1?HT:vt(o)?s2(o):typeof o=="function"?o:i.keyFn,a&&Object.keys(a).forEach(function(l){var c=n.getFieldPolicy(t,l,!0),u=a[l];if(typeof u=="function")c.read=u;else{var d=u.keyArgs,f=u.read,h=u.merge;c.keyFn=d===!1?c2:vt(d)?l2(d):typeof d=="function"?d:c.keyFn,typeof f=="function"&&(c.read=f),s(c,h)}c.read&&c.merge&&(c.keyFn=c.keyFn||c2)})},e.prototype.setRootTypename=function(t,r){r===void 0&&(r=t);var n="ROOT_"+t.toUpperCase(),i=this.rootTypenamesById[n];r!==i&&(__DEV__?fe(!i||i===t,"Cannot change root ".concat(t," __typename more than once")):fe(!i||i===t,3),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[r]=n,this.rootTypenamesById[n]=r)},e.prototype.addPossibleTypes=function(t){var r=this;this.usingPossibleTypes=!0,Object.keys(t).forEach(function(n){r.getSupertypeSet(n,!0),t[n].forEach(function(i){r.getSupertypeSet(i,!0).add(n);var o=i.match(j5);(!o||o[0]!==i)&&r.fuzzySubtypes.set(i,new RegExp(i))})})},e.prototype.getTypePolicy=function(t){var r=this;if(!At.call(this.typePolicies,t)){var n=this.typePolicies[t]=Object.create(null);n.fields=Object.create(null);var i=this.supertypeMap.get(t);i&&i.size&&i.forEach(function(a){var s=r.getTypePolicy(a),l=s.fields,c=aa(s,["fields"]);Object.assign(n,c),Object.assign(n.fields,l)})}var o=this.toBeAdded[t];return o&&o.length&&o.splice(0).forEach(function(a){r.updateTypePolicy(t,a)}),this.typePolicies[t]},e.prototype.getFieldPolicy=function(t,r,n){if(t){var i=this.getTypePolicy(t).fields;return i[r]||n&&(i[r]=Object.create(null))}},e.prototype.getSupertypeSet=function(t,r){var n=this.supertypeMap.get(t);return!n&&r&&this.supertypeMap.set(t,n=new Set),n},e.prototype.fragmentMatches=function(t,r,n,i){var o=this;if(!t.typeCondition)return!0;if(!r)return!1;var a=t.typeCondition.name.value;if(r===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var s=this.getSupertypeSet(r,!0),l=[s],c=function(p){var m=o.getSupertypeSet(p,!1);m&&m.size&&l.indexOf(m)<0&&l.push(m)},u=!!(n&&this.fuzzySubtypes.size),d=!1,f=0;f<l.length;++f){var h=l[f];if(h.has(a))return s.has(a)||(d&&__DEV__&&fe.warn("Inferring subtype ".concat(r," of supertype ").concat(a)),s.add(a)),!0;h.forEach(c),u&&f===l.length-1&&k0(t.selectionSet,n,i)&&(u=!1,d=!0,this.fuzzySubtypes.forEach(function(p,m){var v=r.match(p);v&&v[0]===r&&c(m)}))}return!1},e.prototype.hasKeyArgs=function(t,r){var n=this.getFieldPolicy(t,r,!1);return!!(n&&n.keyFn)},e.prototype.getStoreFieldName=function(t){var r=t.typename,n=t.fieldName,i=this.getFieldPolicy(r,n,!1),o,a=i&&i.keyFn;if(a&&r)for(var s={typename:r,fieldName:n,field:t.field||null,variables:t.variables},l=I0(t);a;){var c=a(l,s);if(vt(c))a=l2(c);else{o=c||n;break}}return o===void 0&&(o=t.field?uC(t.field,t.variables):Ly(n,I0(t))),o===!1?n:n===$i(o)?o:n+":"+o},e.prototype.readField=function(t,r){var n=t.from;if(n){var i=t.field||t.fieldName;if(i){if(t.typename===void 0){var o=r.store.getFieldValue(n,"__typename");o&&(t.typename=o)}var a=this.getStoreFieldName(t),s=$i(a),l=r.store.getFieldValue(n,a),c=this.getFieldPolicy(t.typename,s,!1),u=c&&c.read;if(u){var d=f2(this,n,t,r,r.store.getStorage(De(n)?n.__ref:n,a));return U5.withValue(this.cache,u,[l,d])}return l}}},e.prototype.getReadFunction=function(t,r){var n=this.getFieldPolicy(t,r,!1);return n&&n.read},e.prototype.getMergeFunction=function(t,r,n){var i=this.getFieldPolicy(t,r,!1),o=i&&i.merge;return!o&&n&&(i=this.getTypePolicy(n),o=i&&i.merge),o},e.prototype.runMergeFunction=function(t,r,n,i,o){var a=n.field,s=n.typename,l=n.merge;return l===u2?H5(i.store)(t,r):l===d2?r:(i.overwrite&&(t=void 0),l(t,r,f2(this,void 0,{typename:s,fieldName:a.name.value,field:a,variables:i.variables},i,o||Object.create(null))))},e}();function f2(e,t,r,n,i){var o=e.getStoreFieldName(r),a=$i(o),s=r.variables||n.variables,l=n.store,c=l.toReference,u=l.canRead;return{args:I0(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:De,toReference:c,storage:i,cache:e.cache,canRead:u,readField:function(){return e.readField(Xy(arguments,t,s),n)},mergeObjects:H5(n.store)}}function Xy(e,t,r){var n=e[0],i=e[1],o=e.length,a;return typeof n=="string"?a={fieldName:n,from:o>1?i:t}:(a=M({},n),At.call(a,"from")||(a.from=t)),__DEV__&&a.from===void 0&&__DEV__&&fe.warn("Undefined 'from' passed to readField with arguments ".concat(AC(Array.from(e)))),a.variables===void 0&&(a.variables=r),a}function H5(e){return function(t,r){if(vt(t)||vt(r))throw __DEV__?new He("Cannot automatically merge arrays"):new He(4);if(St(t)&&St(r)){var n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename"),o=n&&i&&n!==i;if(o)return r;if(De(t)&&Uo(r))return e.merge(t.__ref,r),t;if(Uo(t)&&De(r))return e.merge(t,r.__ref),r;if(Uo(t)&&Uo(r))return M(M({},t),r)}return r}}function Ph(e,t,r){var n="".concat(t).concat(r),i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:M(M({},e),{clientOnly:t,deferred:r})),i}var QT=function(){function e(t,r,n){this.cache=t,this.reader=r,this.fragments=n}return e.prototype.writeToStore=function(t,r){var n=this,i=r.query,o=r.result,a=r.dataId,s=r.variables,l=r.overwrite,c=jy(i),u=FT();s=M(M({},v5(c)),s);var d=M(M({store:t,written:Object.create(null),merge:function(h,p){return u.merge(h,p)},variables:s,varString:Xo(s)},V5(i,this.fragments)),{overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),f=this.processSelectionSet({result:o||Object.create(null),dataId:a,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:d});if(!De(f))throw __DEV__?new He("Could not identify object ".concat(JSON.stringify(o))):new He(7);return d.incomingById.forEach(function(h,p){var m=h.storeObject,v=h.mergeTree,b=h.fieldNodeSet,y=Yo(p);if(v&&v.map.size){var g=n.applyMerges(v,y,m,d);if(De(g))return;m=g}if(__DEV__&&!d.overwrite){var $=Object.create(null);b.forEach(function(w){w.selectionSet&&($[w.name.value]=!0)});var _=function(w){return $[$i(w)]===!0},S=function(w){var k=v&&v.map.get(w);return!!(k&&k.info&&k.info.merge)};Object.keys(m).forEach(function(w){_(w)&&!S(w)&&KT(y,m,w,d.store)})}t.merge(p,m)}),t.retain(f.__ref),f},e.prototype.processSelectionSet=function(t){var r=this,n=t.dataId,i=t.result,o=t.selectionSet,a=t.context,s=t.mergeTree,l=this.cache.policies,c=Object.create(null),u=n&&l.rootTypenamesById[n]||g0(i,o,a.fragmentMap)||n&&a.store.get(n,"__typename");typeof u=="string"&&(c.__typename=u);var d=function(){var g=Xy(arguments,c,a.variables);if(De(g.from)){var $=a.incomingById.get(g.from.__ref);if($){var _=l.readField(M(M({},g),{from:$.storeObject}),a);if(_!==void 0)return _}}return l.readField(g,a)},f=new Set;this.flattenFields(o,i,a,u).forEach(function(g,$){var _,S=Gs($),w=i[S];if(f.add($),w!==void 0){var k=l.getStoreFieldName({typename:u,fieldName:$.name.value,field:$,variables:g.variables}),A=h2(s,k),F=r.processFieldValue(w,$,$.selectionSet?Ph(g,!1,!1):g,A),K=void 0;$.selectionSet&&(De(F)||Uo(F))&&(K=d("__typename",F));var U=l.getMergeFunction(u,$.name.value,K);U?A.info={field:$,typename:u,merge:U}:p2(s,k),c=g.merge(c,(_={},_[k]=F,_))}else __DEV__&&!g.clientOnly&&!g.deferred&&!Vy.added($)&&!l.getReadFunction(u,$.name.value)&&__DEV__&&fe.error("Missing field '".concat(Gs($),"' while writing result ").concat(JSON.stringify(i,null,2)).substring(0,1e3))});try{var h=l.identify(i,{typename:u,selectionSet:o,fragmentMap:a.fragmentMap,storeObject:c,readField:d}),p=h[0],m=h[1];n=n||p,m&&(c=a.merge(c,m))}catch(g){if(!n)throw g}if(typeof n=="string"){var v=Yo(n),b=a.written[n]||(a.written[n]=[]);if(b.indexOf(o)>=0||(b.push(o),this.reader&&this.reader.isFresh(i,v,o,a)))return v;var y=a.incomingById.get(n);return y?(y.storeObject=a.merge(y.storeObject,c),y.mergeTree=N0(y.mergeTree,s),f.forEach(function(g){return y.fieldNodeSet.add(g)})):a.incomingById.set(n,{storeObject:c,mergeTree:Xu(s)?void 0:s,fieldNodeSet:f}),v}return c},e.prototype.processFieldValue=function(t,r,n,i){var o=this;return!r.selectionSet||t===null?__DEV__?b5(t):t:vt(t)?t.map(function(a,s){var l=o.processFieldValue(a,r,n,h2(i,s));return p2(i,s),l}):this.processSelectionSet({result:t,selectionSet:r.selectionSet,context:n,mergeTree:i})},e.prototype.flattenFields=function(t,r,n,i){i===void 0&&(i=g0(r,t,n.fragmentMap));var o=new Map,a=this.cache.policies,s=new Sl(!1);return function l(c,u){var d=s.lookup(c,u.clientOnly,u.deferred);d.visited||(d.visited=!0,c.selections.forEach(function(f){if(Ry(f,n.variables)){var h=u.clientOnly,p=u.deferred;if(!(h&&p)&&Qs(f.directives)&&f.directives.forEach(function(b){var y=b.name.value;if(y==="client"&&(h=!0),y==="defer"){var g=My(b,n.variables);(!g||g.if!==!1)&&(p=!0)}}),fa(f)){var m=o.get(f);m&&(h=h&&m.clientOnly,p=p&&m.deferred),o.set(f,Ph(n,h,p))}else{var v=Fy(f,n.lookupFragment);if(!v&&f.kind===ie.FRAGMENT_SPREAD)throw __DEV__?new He("No fragment named ".concat(f.name.value)):new He(8);v&&a.fragmentMatches(v,i,r,n.variables)&&l(v.selectionSet,Ph(n,h,p))}}}))}(t,n),o},e.prototype.applyMerges=function(t,r,n,i,o){var a,s=this;if(t.map.size&&!De(n)){var l=!vt(n)&&(De(r)||Uo(r))?r:void 0,c=n;l&&!o&&(o=[De(l)?l.__ref:l]);var u,d=function(f,h){return vt(f)?typeof h=="number"?f[h]:void 0:i.store.getFieldValue(f,String(h))};t.map.forEach(function(f,h){var p=d(l,h),m=d(c,h);if(m!==void 0){o&&o.push(h);var v=s.applyMerges(f,p,m,i,o);v!==m&&(u=u||new Map,u.set(h,v)),o&&fe(o.pop()===h)}}),u&&(n=vt(c)?c.slice(0):M({},c),u.forEach(function(f,h){n[h]=f}))}return t.info?this.cache.policies.runMergeFunction(r,n,t.info,i,o&&(a=i.store).getStorage.apply(a,o)):n},e}(),G5=[];function h2(e,t){var r=e.map;return r.has(t)||r.set(t,G5.pop()||{map:new Map}),r.get(t)}function N0(e,t){if(e===t||!t||Xu(t))return e;if(!e||Xu(e))return t;var r=e.info&&t.info?M(M({},e.info),t.info):e.info||t.info,n=e.map.size&&t.map.size,i=n?new Map:e.map.size?e.map:t.map,o={info:r,map:i};if(n){var a=new Set(t.map.keys());e.map.forEach(function(s,l){o.map.set(l,N0(s,t.map.get(l))),a.delete(l)}),a.forEach(function(s){o.map.set(s,N0(t.map.get(s),e.map.get(s)))})}return o}function Xu(e){return!e||!(e.info||e.map.size)}function p2(e,t){var r=e.map,n=r.get(t);n&&Xu(n)&&(G5.push(n),r.delete(t))}var v2=new Set;function KT(e,t,r,n){var i=function(d){var f=n.getFieldValue(d,r);return typeof f=="object"&&f},o=i(e);if(o){var a=i(t);if(a&&!De(o)&&!Wr(o,a)&&!Object.keys(o).every(function(d){return n.getFieldValue(a,d)!==void 0})){var s=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),l=$i(r),c="".concat(s,".").concat(l);if(!v2.has(c)){v2.add(c);var u=[];!vt(o)&&!vt(a)&&[o,a].forEach(function(d){var f=n.getFieldValue(d,"__typename");typeof f=="string"&&!u.includes(f)&&u.push(f)}),__DEV__&&fe.warn("Cache data may be lost when replacing the ".concat(l," field of a ").concat(s,` object.
58
58
 
59
59
  To address this problem (which is not a bug in Apollo Client), `).concat(u.length?"either ensure all objects of type "+u.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(c,` field, so InMemoryCache can safely merge these objects:
60
60
 
@@ -431,7 +431,7 @@ For more information about these options, please refer to the documentation:
431
431
  Did you mean to call refetch(variables) instead of refetch({ variables })?`))}return r&&!kt(this.options.variables,r)&&(i.variables=this.options.variables=P(P({},this.options.variables),r)),this.queryInfo.resetLastWrite(),this.reobserve(i,je.refetch)},t.prototype.fetchMore=function(r){var n=this,i=P(P({},r.query?r:P(P(P(P({},this.options),{query:this.query}),r),{variables:P(P({},this.options.variables),r.variables)})),{fetchPolicy:"no-cache"}),o=this.queryManager.generateQueryId(),a=this.queryInfo,s=a.networkStatus;a.networkStatus=je.fetchMore,i.notifyOnNetworkStatusChange&&this.observe();var l=new Set;return this.queryManager.fetchQuery(o,i,je.fetchMore).then(function(c){return n.queryManager.removeQuery(o),a.networkStatus===je.fetchMore&&(a.networkStatus=s),n.queryManager.cache.batch({update:function(u){var d=r.updateQuery;d?u.updateQuery({query:n.query,variables:n.variables,returnPartialData:!0,optimistic:!1},function(f){return d(f,{fetchMoreResult:c.data,variables:i.variables})}):u.writeQuery({query:i.query,variables:i.variables,data:c.data})},onWatchUpdated:function(u){l.add(u.query)}}),c}).finally(function(){l.has(n.query)||KS(n)})},t.prototype.subscribeToMore=function(r){var n=this,i=this.queryManager.startGraphQLSubscription({query:r.document,variables:r.variables,context:r.context}).subscribe({next:function(o){var a=r.updateQuery;a&&n.updateQuery(function(s,l){var c=l.variables;return a(s,{subscriptionData:o,variables:c})})},error:function(o){if(r.onError){r.onError(o);return}__DEV__&&q.error("Unhandled GraphQL subscription error",o)}});return this.subscriptions.add(i),function(){n.subscriptions.delete(i)&&i.unsubscribe()}},t.prototype.setOptions=function(r){return this.reobserve(r)},t.prototype.setVariables=function(r){return kt(this.variables,r)?this.observers.size?this.result():Promise.resolve():(this.options.variables=r,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:r},je.setVariables):Promise.resolve())},t.prototype.updateQuery=function(r){var n=this.queryManager,i=n.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,o=r(i,{variables:this.variables});o&&(n.cache.writeQuery({query:this.options.query,data:o,variables:this.variables}),n.broadcastQueries())},t.prototype.startPolling=function(r){this.options.pollInterval=r,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(r,n){if(n.nextFetchPolicy){var i=n.fetchPolicy,o=i===void 0?"cache-first":i,a=n.initialFetchPolicy,s=a===void 0?o:a;o==="standby"||(typeof n.nextFetchPolicy=="function"?n.fetchPolicy=n.nextFetchPolicy(o,{reason:r,options:n,observable:this,initialFetchPolicy:s}):r==="variables-changed"?n.fetchPolicy=s:n.fetchPolicy=n.nextFetchPolicy)}return n.fetchPolicy},t.prototype.fetch=function(r,n){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,r,n)},t.prototype.updatePolling=function(){var r=this;if(!this.queryManager.ssrMode){var n=this,i=n.pollingInfo,o=n.options.pollInterval;if(!o){i&&(clearTimeout(i.timeout),delete this.pollingInfo);return}if(!(i&&i.interval===o)){__DEV__?q(o,"Attempted to start a polling query without a polling interval."):q(o,13);var a=i||(this.pollingInfo={});a.interval=o;var s=function(){r.pollingInfo&&(al(r.queryInfo.networkStatus)?l():r.reobserve({fetchPolicy:r.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},je.poll).then(l,l))},l=function(){var c=r.pollingInfo;c&&(clearTimeout(c.timeout),c.timeout=setTimeout(s,c.interval))};l()}}},t.prototype.updateLastResult=function(r,n){return n===void 0&&(n=this.variables),this.last=P(P({},this.last),{result:this.queryManager.assumeImmutableResults?r:bS(r),variables:n}),Mr(r.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(r,n){var i=this;this.isTornDown=!1;var o=n===je.refetch||n===je.fetchMore||n===je.poll,a=this.options.variables,s=this.options.fetchPolicy,l=qf(this.options,r||{}),c=o?l:JF(this.options,l);o||(this.updatePolling(),r&&r.variables&&!kt(r.variables,a)&&c.fetchPolicy!=="standby"&&c.fetchPolicy===s&&(this.applyNextFetchPolicy("variables-changed",c),n===void 0&&(n=je.setVariables)));var u=c.variables&&P({},c.variables),d=this.fetch(c,n),f={next:function(h){i.reportResult(h,u)},error:function(h){i.reportError(h,u)}};return o||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=d,this.observer=f),d.addObserver(f),d.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(r,n){var i=this.getLastError();(i||this.isDifferentFromLastResult(r,n))&&((i||!r.partial||this.options.returnPartialData)&&this.updateLastResult(r,n),Fs(this.observers,"next",r))},t.prototype.reportError=function(r,n){var i=P(P({},this.getLastResult()),{error:r,errors:r.graphQLErrors,networkStatus:je.error,loading:!1});this.updateLastResult(i,n),Fs(this.observers,"error",this.last.error=r)},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(r){return r.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(ze);wS(Tv);function KS(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return r==="cache-and-network"||r==="network-only"?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=n,typeof n=="function"?n.apply(this,arguments):r}}):e.reobserve()}function eL(e){__DEV__&&q.error("Unhandled error",e.message,e.stack)}function YS(e){__DEV__&&e&&__DEV__&&q.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}var XS=function(){function e(t){var r=t.cache,n=t.client,i=t.resolvers,o=t.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=r,n&&(this.client=n),i&&this.addResolvers(i),o&&this.setFragmentMatcher(o)}return e.prototype.addResolvers=function(t){var r=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach(function(n){r.resolvers=Q$(r.resolvers,n)}):this.resolvers=Q$(this.resolvers,t)},e.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(t){var r=t.document,n=t.remoteResult,i=t.context,o=t.variables,a=t.onlyRunForcedResolvers,s=a===void 0?!1:a;return pe(this,void 0,void 0,function(){return ni(this,function(l){return r?[2,this.resolveDocument(r,n.data,i,o,this.fragmentMatcher,s).then(function(c){return P(P({},n),{data:c.result})})]:[2,n]})})},e.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(t){return wg(["client"],t)&&this.resolvers?t:null},e.prototype.serverQuery=function(t){return pR(t)},e.prototype.prepareContext=function(t){var r=this.cache;return P(P({},t),{cache:r,getCacheKey:function(n){return r.identify(n)}})},e.prototype.addExportedVariables=function(t,r,n){return r===void 0&&(r={}),n===void 0&&(n={}),pe(this,void 0,void 0,function(){return ni(this,function(i){return t?[2,this.resolveDocument(t,this.buildRootValueFromCache(t,r)||{},this.prepareContext(n),r).then(function(o){return P(P({},r),o.exportedVariables)})]:[2,P({},r)]})})},e.prototype.shouldForceResolvers=function(t){var r=!1;return qn(t,{Directive:{enter:function(n){if(n.name.value==="client"&&n.arguments&&(r=n.arguments.some(function(i){return i.name.value==="always"&&i.value.kind==="BooleanValue"&&i.value.value===!0}),r))return $g}}}),r},e.prototype.buildRootValueFromCache=function(t,r){return this.cache.diff({query:hR(t),variables:r,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(t,r,n,i,o,a){return n===void 0&&(n={}),i===void 0&&(i={}),o===void 0&&(o=function(){return!0}),a===void 0&&(a=!1),pe(this,void 0,void 0,function(){var s,l,c,u,d,f,h,p,m,v,b;return ni(this,function(y){return s=Og(t),l=Sg(t),c=_g(l),u=this.collectSelectionsToResolve(s,c),d=s.operation,f=d?d.charAt(0).toUpperCase()+d.slice(1):"Query",h=this,p=h.cache,m=h.client,v={fragmentMap:c,context:P(P({},n),{cache:p,client:m}),variables:i,fragmentMatcher:o,defaultOperationType:f,exportedVariables:{},selectionsToResolve:u,onlyRunForcedResolvers:a},b=!1,[2,this.resolveSelectionSet(s.selectionSet,b,r,v).then(function(g){return{result:g,exportedVariables:v.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(t,r,n,i){return pe(this,void 0,void 0,function(){var o,a,s,l,c,u=this;return ni(this,function(d){return o=i.fragmentMap,a=i.context,s=i.variables,l=[n],c=function(f){return pe(u,void 0,void 0,function(){var h,p;return ni(this,function(m){return!r&&!i.selectionsToResolve.has(f)?[2]:Vf(f,s)?po(f)?[2,this.resolveField(f,r,n,i).then(function(v){var b;typeof v<"u"&&l.push((b={},b[ho(f)]=v,b))})]:(sR(f)?h=f:(h=o[f.name.value],__DEV__?q(h,"No fragment named ".concat(f.name.value)):q(h,11)),h&&h.typeCondition&&(p=h.typeCondition.name.value,i.fragmentMatcher(n,p,a))?[2,this.resolveSelectionSet(h.selectionSet,r,n,i).then(function(v){l.push(v)})]:[2]):[2]})})},[2,Promise.all(t.selections.map(c)).then(function(){return Tg(l)})]})})},e.prototype.resolveField=function(t,r,n,i){return pe(this,void 0,void 0,function(){var o,a,s,l,c,u,d,f,h,p=this;return ni(this,function(m){return n?(o=i.variables,a=t.name.value,s=ho(t),l=a!==s,c=n[s]||n[a],u=Promise.resolve(c),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(t))&&(d=n.__typename||i.defaultOperationType,f=this.resolvers&&this.resolvers[d],f&&(h=f[l?a:s],h&&(u=Promise.resolve(Lg.withValue(this.cache,h,[n,zf(t,o),i.context,{field:t,fragmentMap:i.fragmentMap}]))))),[2,u.then(function(v){var b,y;if(v===void 0&&(v=c),t.directives&&t.directives.forEach(function($){$.name.value==="export"&&$.arguments&&$.arguments.forEach(function(_){_.name.value==="as"&&_.value.kind==="StringValue"&&(i.exportedVariables[_.value.value]=v)})}),!t.selectionSet||v==null)return v;var g=(y=(b=t.directives)===null||b===void 0?void 0:b.some(function($){return $.name.value==="client"}))!==null&&y!==void 0?y:!1;if(Array.isArray(v))return p.resolveSubSelectedArray(t,r||g,v,i);if(t.selectionSet)return p.resolveSelectionSet(t.selectionSet,r||g,v,i)})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(t,r,n,i){var o=this;return Promise.all(n.map(function(a){if(a===null)return null;if(Array.isArray(a))return o.resolveSubSelectedArray(t,r,a,i);if(t.selectionSet)return o.resolveSelectionSet(t.selectionSet,r,a,i)}))},e.prototype.collectSelectionsToResolve=function(t,r){var n=function(a){return!Array.isArray(a)},i=this.selectionsToResolveCache;function o(a){if(!i.has(a)){var s=new Set;i.set(a,s),qn(a,{Directive:function(l,c,u,d,f){l.name.value==="client"&&f.forEach(function(h){n(h)&&W$(h)&&s.add(h)})},FragmentSpread:function(l,c,u,d,f){var h=r[l.name.value];__DEV__?q(h,"No fragment named ".concat(l.name.value)):q(h,12);var p=o(h);p.size>0&&(f.forEach(function(m){n(m)&&W$(m)&&s.add(m)}),s.add(l),p.forEach(function(m){s.add(m)}))}})}return i.get(a)}return o(t)},e}(),Go=new(wo?WeakMap:Map);function lp(e,t){var r=e[t];typeof r=="function"&&(e[t]=function(){return Go.set(e,(Go.get(e)+1)%1e15),r.apply(this,arguments)})}function Pw(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var cp=function(){function e(t,r){r===void 0&&(r=t.generateQueryId()),this.queryId=r,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=t.cache;Go.has(n)||(Go.set(n,0),lp(n,"evict"),lp(n,"modify"),lp(n,"reset"))}return e.prototype.init=function(t){var r=t.networkStatus||je.loading;return this.variables&&this.networkStatus!==je.loading&&!kt(this.variables,t.variables)&&(r=je.setVariables),kt(t.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:t.document,variables:t.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:r}),t.observableQuery&&this.setObservableQuery(t.observableQuery),t.lastRequestId&&(this.lastRequestId=t.lastRequestId),this},e.prototype.reset=function(){Pw(this),this.dirty=!1},e.prototype.getDiff=function(t){t===void 0&&(t=this.variables);var r=this.getDiffOptions(t);if(this.lastDiff&&kt(r,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=t);var n=this.observableQuery;if(n&&n.options.fetchPolicy==="no-cache")return{complete:!1};var i=this.cache.diff(r);return this.updateLastDiff(i,r),i},e.prototype.updateLastDiff=function(t,r){this.lastDiff=t?{diff:t,options:r||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(t){var r;return t===void 0&&(t=this.variables),{query:this.document,variables:t,returnPartialData:!0,optimistic:!0,canonizeResults:(r=this.observableQuery)===null||r===void 0?void 0:r.options.canonizeResults}},e.prototype.setDiff=function(t){var r=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(t),!this.dirty&&!kt(n&&n.result,t&&t.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return r.notify()},0)))},e.prototype.setObservableQuery=function(t){var r=this;t!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=t,t?(t.queryInfo=this,this.listeners.add(this.oqListener=function(){var n=r.getDiff();n.fromOptimisticTransaction?t.observe():KS(t)})):delete this.oqListener)},e.prototype.notify=function(){var t=this;Pw(this),this.shouldNotify()&&this.listeners.forEach(function(r){return r(t)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(al(this.networkStatus)&&this.observableQuery){var t=this.observableQuery.options.fetchPolicy;if(t!=="cache-only"&&t!=="cache-and-network")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(r){return r.unsubscribe()});var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(t){var r=this;t===void 0&&(t=this.variables);var n=this.observableQuery;if(!(n&&n.options.fetchPolicy==="no-cache")){var i=P(P({},this.getDiffOptions(t)),{watcher:this,callback:function(o){return r.setDiff(o)}});(!this.lastWatch||!kt(i,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(t,r){var n=this.lastWrite;return!(n&&n.dmCount===Go.get(this.cache)&&kt(r,n.variables)&&kt(t.data,n.result.data))},e.prototype.markResult=function(t,r,n,i){var o=this,a=new Ei,s=Mr(t.errors)?t.errors.slice(0):[];if(this.reset(),"incremental"in t&&Mr(t.incremental)){var l=_S(this.getDiff().result,t);t.data=l}else if("hasNext"in t&&t.hasNext){var c=this.getDiff();t.data=a.merge(c.result,t.data)}this.graphQLErrors=s,n.fetchPolicy==="no-cache"?this.updateLastDiff({result:t.data,complete:!0},this.getDiffOptions(n.variables)):i!==0&&(Pv(t,n.errorPolicy)?this.cache.performTransaction(function(u){if(o.shouldWrite(t,n.variables))u.writeQuery({query:r,data:t.data,variables:n.variables,overwrite:i===1}),o.lastWrite={result:t,variables:n.variables,dmCount:Go.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete){t.data=o.lastDiff.diff.result;return}var d=o.getDiffOptions(n.variables),f=u.diff(d);o.stopped||o.updateWatch(n.variables),o.updateLastDiff(f,d),f.complete&&(t.data=f.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=je.ready},e.prototype.markError=function(t){return this.networkStatus=je.error,this.lastWrite=void 0,this.reset(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},e}();function Pv(e,t){t===void 0&&(t="none");var r=t==="ignore"||t==="all",n=!Lc(e);return!n&&r&&e.data&&(n=!0),n}var tL=Object.prototype.hasOwnProperty,rL=function(){function e(t){var r=t.cache,n=t.link,i=t.defaultOptions,o=t.queryDeduplication,a=o===void 0?!1:o,s=t.onBroadcast,l=t.ssrMode,c=l===void 0?!1:l,u=t.clientAwareness,d=u===void 0?{}:u,f=t.localState,h=t.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(wo?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=r,this.link=n,this.defaultOptions=i||Object.create(null),this.queryDeduplication=a,this.clientAwareness=d,this.localState=f||new XS({cache:r}),this.ssrMode=c,this.assumeImmutableResults=!!h,(this.onBroadcast=s)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var t=this;this.queries.forEach(function(r,n){t.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(__DEV__?new Ie("QueryManager stopped while query was in flight"):new Ie(14))},e.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(r){return r(t)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(t){var r,n,i=t.mutation,o=t.variables,a=t.optimisticResponse,s=t.updateQueries,l=t.refetchQueries,c=l===void 0?[]:l,u=t.awaitRefetchQueries,d=u===void 0?!1:u,f=t.update,h=t.onQueryUpdated,p=t.fetchPolicy,m=p===void 0?((r=this.defaultOptions.mutate)===null||r===void 0?void 0:r.fetchPolicy)||"network-only":p,v=t.errorPolicy,b=v===void 0?((n=this.defaultOptions.mutate)===null||n===void 0?void 0:n.errorPolicy)||"none":v,y=t.keepRootFields,g=t.context;return pe(this,void 0,void 0,function(){var $,_,S,w,k,A;return ni(this,function(F){switch(F.label){case 0:return __DEV__?q(i,"mutation option is required. You must specify your GraphQL document in the mutation option."):q(i,15),__DEV__?q(m==="network-only"||m==="no-cache","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."):q(m==="network-only"||m==="no-cache",16),$=this.generateMutationId(),_=this.transform(i),S=_.document,w=_.hasClientExports,i=this.cache.transformForLink(S),o=this.getVariables(i,o),w?[4,this.localState.addExportedVariables(i,o,g)]:[3,2];case 1:o=F.sent(),F.label=2;case 2:return k=this.mutationStore&&(this.mutationStore[$]={mutation:i,variables:o,loading:!0,error:null}),a&&this.markMutationOptimistic(a,{mutationId:$,document:i,variables:o,fetchPolicy:m,errorPolicy:b,context:g,updateQueries:s,update:f,keepRootFields:y}),this.broadcastQueries(),A=this,[2,new Promise(function(K,U){return ep(A.getObservableFromLink(i,P(P({},g),{optimisticResponse:a}),o,!1),function(N){if(Lc(N)&&b==="none")throw new To({graphQLErrors:mv(N)});k&&(k.loading=!1,k.error=null);var Q=P({},N);return typeof c=="function"&&(c=c(Q)),b==="ignore"&&Lc(Q)&&delete Q.errors,A.markMutationResult({mutationId:$,result:Q,document:i,variables:o,fetchPolicy:m,errorPolicy:b,context:g,update:f,updateQueries:s,awaitRefetchQueries:d,refetchQueries:c,removeOptimistic:a?$:void 0,onQueryUpdated:h,keepRootFields:y})}).subscribe({next:function(N){A.broadcastQueries(),(!("hasNext"in N)||N.hasNext===!1)&&K(N)},error:function(N){k&&(k.loading=!1,k.error=N),a&&A.cache.removeOptimistic($),A.broadcastQueries(),U(N instanceof To?N:new To({networkError:N}))}})})]}})})},e.prototype.markMutationResult=function(t,r){var n=this;r===void 0&&(r=this.cache);var i=t.result,o=[],a=t.fetchPolicy==="no-cache";if(!a&&Pv(i,t.errorPolicy)){if(ta(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),ta(i)&&Mr(i.incremental)){var s=r.diff({id:"ROOT_MUTATION",query:this.transform(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}),l=void 0;s.result&&(l=_S(s.result,i)),typeof l<"u"&&(i.data=l,o.push({result:l,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}))}var c=t.updateQueries;c&&this.queries.forEach(function(d,f){var h=d.observableQuery,p=h&&h.queryName;if(!(!p||!tL.call(c,p))){var m=c[p],v=n.queries.get(f),b=v.document,y=v.variables,g=r.diff({query:b,variables:y,returnPartialData:!0,optimistic:!1}),$=g.result,_=g.complete;if(_&&$){var S=m($,{mutationResult:i,queryName:b&&dv(b)||void 0,queryVariables:y});S&&o.push({result:S,dataId:"ROOT_QUERY",query:b,variables:y})}}})}if(o.length>0||t.refetchQueries||t.update||t.onQueryUpdated||t.removeOptimistic){var u=[];if(this.refetchQueries({updateCache:function(d){a||o.forEach(function(m){return d.write(m)});var f=t.update,h=!PR(i)||ta(i)&&!i.hasNext;if(f){if(!a){var p=d.diff({id:"ROOT_MUTATION",query:n.transform(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});p.complete&&(i=P(P({},i),{data:p.result}),"incremental"in i&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}h&&f(d,i,{context:t.context,variables:t.variables})}!a&&!t.keepRootFields&&h&&d.modify({id:"ROOT_MUTATION",fields:function(m,v){var b=v.fieldName,y=v.DELETE;return b==="__typename"?m:y}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(function(d){return u.push(d)}),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(u).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(t,r){var n=this,i=typeof t=="function"?t(r.variables):t;return this.cache.recordOptimisticTransaction(function(o){try{n.markMutationResult(P(P({},r),{result:{data:i}}),o)}catch(a){__DEV__&&q.error(a)}},r.mutationId)},e.prototype.fetchQuery=function(t,r,n){return this.fetchQueryObservable(t,r,n).promise},e.prototype.getQueryStore=function(){var t=Object.create(null);return this.queries.forEach(function(r,n){t[n]={variables:r.variables,networkStatus:r.networkStatus,networkError:r.networkError,graphQLErrors:r.graphQLErrors}}),t},e.prototype.resetErrors=function(t){var r=this.queries.get(t);r&&(r.networkError=void 0,r.graphQLErrors=[])},e.prototype.transform=function(t){var r=this.transformCache;if(!r.has(t)){var n=this.cache.transformDocument(t),i=fR(n),o=this.localState.clientQuery(n),a=i&&this.localState.serverQuery(i),s={document:n,hasClientExports:qD(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:o,serverQuery:a,defaultVars:kg(Il(n)),asQuery:P(P({},n),{definitions:n.definitions.map(function(c){return c.kind==="OperationDefinition"&&c.operation!=="query"?P(P({},c),{operation:"query"}):c})})},l=function(c){c&&!r.has(c)&&r.set(c,s)};l(t),l(n),l(o),l(a)}return r.get(t)},e.prototype.getVariables=function(t,r){return P(P({},this.transform(t).defaultVars),r)},e.prototype.watchQuery=function(t){t=P(P({},t),{variables:this.getVariables(t.query,t.variables)}),typeof t.notifyOnNetworkStatusChange>"u"&&(t.notifyOnNetworkStatusChange=!1);var r=new cp(this),n=new Tv({queryManager:this,queryInfo:r,options:t});return this.queries.set(n.queryId,r),r.init({document:n.query,observableQuery:n,variables:n.variables}),n},e.prototype.query=function(t,r){var n=this;return r===void 0&&(r=this.generateQueryId()),__DEV__?q(t.query,"query option is required. You must specify your GraphQL document in the query option."):q(t.query,17),__DEV__?q(t.query.kind==="Document",'You must wrap the query string in a "gql" tag.'):q(t.query.kind==="Document",18),__DEV__?q(!t.returnPartialData,"returnPartialData option only supported on watchQuery."):q(!t.returnPartialData,19),__DEV__?q(!t.pollInterval,"pollInterval option only supported on watchQuery."):q(!t.pollInterval,20),this.fetchQuery(r,t).finally(function(){return n.stopQuery(r)})},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(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(t){var r=this.queries.get(t);r&&r.stop()},e.prototype.clearStore=function(t){return t===void 0&&(t={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new Ie("Store reset while query was in flight (not completed in link chain)"):new Ie(21)),this.queries.forEach(function(r){r.observableQuery?r.networkStatus=je.loading:r.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(t)},e.prototype.getObservableQueries=function(t){var r=this;t===void 0&&(t="active");var n=new Map,i=new Map,o=new Set;return Array.isArray(t)&&t.forEach(function(a){typeof a=="string"?i.set(a,!1):QD(a)?i.set(r.transform(a).document,!1):ct(a)&&a.query&&o.add(a)}),this.queries.forEach(function(a,s){var l=a.observableQuery,c=a.document;if(l){if(t==="all"){n.set(s,l);return}var u=l.queryName,d=l.options.fetchPolicy;if(d==="standby"||t==="active"&&!l.hasObservers())return;(t==="active"||u&&i.has(u)||c&&i.has(c))&&(n.set(s,l),u&&i.set(u,!0),c&&i.set(c,!0))}}),o.size&&o.forEach(function(a){var s=yv("legacyOneTimeQuery"),l=r.getQuery(s).init({document:a.query,variables:a.variables}),c=new Tv({queryManager:r,queryInfo:l,options:P(P({},a),{fetchPolicy:"network-only"})});q(c.queryId===s),l.setObservableQuery(c),n.set(s,c)}),__DEV__&&i.size&&i.forEach(function(a,s){a||__DEV__&&q.warn("Unknown query ".concat(typeof s=="string"?"named ":"").concat(JSON.stringify(s,null,2)," requested in refetchQueries options.include array"))}),n},e.prototype.reFetchObservableQueries=function(t){var r=this;t===void 0&&(t=!1);var n=[];return this.getObservableQueries(t?"all":"active").forEach(function(i,o){var a=i.options.fetchPolicy;i.resetLastResults(),(t||a!=="standby"&&a!=="cache-only")&&n.push(i.refetch()),r.getQuery(o).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(t){this.getQuery(t.queryId).setObservableQuery(t)},e.prototype.startGraphQLSubscription=function(t){var r=this,n=t.query,i=t.fetchPolicy,o=t.errorPolicy,a=t.variables,s=t.context,l=s===void 0?{}:s;n=this.transform(n).document,a=this.getVariables(n,a);var c=function(d){return r.getObservableFromLink(n,l,d).map(function(f){if(i!=="no-cache"&&(Pv(f,o)&&r.cache.write({query:n,result:f.data,dataId:"ROOT_SUBSCRIPTION",variables:d}),r.broadcastQueries()),Lc(f))throw new To({graphQLErrors:f.errors});return f})};if(this.transform(n).hasClientExports){var u=this.localState.addExportedVariables(n,a,l).then(c);return new ze(function(d){var f=null;return u.then(function(h){return f=h.subscribe(d)},d.error),function(){return f&&f.unsubscribe()}})}return c(a)},e.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},e.prototype.removeQuery=function(t){this.fetchCancelFns.delete(t),this.queries.has(t)&&(this.getQuery(t).stop(),this.queries.delete(t))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(t){return t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(t,r,n,i){var o=this,a;i===void 0&&(i=(a=r?.queryDeduplication)!==null&&a!==void 0?a:this.queryDeduplication);var s,l=this.transform(t).serverQuery;if(l){var c=this,u=c.inFlightLinkObservables,d=c.link,f={query:l,variables:n,operationName:dv(l)||void 0,context:this.prepareContext(P(P({},r),{forceFetch:!i}))};if(r=f.context,i){var h=u.get(l)||new Map;u.set(l,h);var p=to(n);if(s=h.get(p),!s){var m=new Cs([bv(d,f)]);h.set(p,s=m),m.beforeNext(function(){h.delete(p)&&h.size<1&&u.delete(l)})}}else s=new Cs([bv(d,f)])}else s=new Cs([ze.of({data:{}})]),r=this.prepareContext(r);var v=this.transform(t).clientQuery;return v&&(s=ep(s,function(b){return o.localState.runResolvers({document:v,remoteResult:b,context:r,variables:n})})),s},e.prototype.getResultsFromLink=function(t,r,n){var i=t.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(this.transform(t.document).document);return ep(this.getObservableFromLink(o,n.context,n.variables),function(a){var s=mv(a),l=s.length>0;if(i>=t.lastRequestId){if(l&&n.errorPolicy==="none")throw t.markError(new To({graphQLErrors:s}));t.markResult(a,o,n,r),t.markReady()}var c={data:a.data,loading:!1,networkStatus:je.ready};return l&&n.errorPolicy!=="ignore"&&(c.errors=s,c.networkStatus=je.error),c},function(a){var s=YF(a)?a:new To({networkError:a});throw i>=t.lastRequestId&&t.markError(s),s})},e.prototype.fetchQueryObservable=function(t,r,n){var i=this;n===void 0&&(n=je.loading);var o=this.transform(r.query).document,a=this.getVariables(o,r.variables),s=this.getQuery(t),l=this.defaultOptions.watchQuery,c=r.fetchPolicy,u=c===void 0?l&&l.fetchPolicy||"cache-first":c,d=r.errorPolicy,f=d===void 0?l&&l.errorPolicy||"none":d,h=r.returnPartialData,p=h===void 0?!1:h,m=r.notifyOnNetworkStatusChange,v=m===void 0?!1:m,b=r.context,y=b===void 0?{}:b,g=Object.assign({},r,{query:o,variables:a,fetchPolicy:u,errorPolicy:f,returnPartialData:p,notifyOnNetworkStatusChange:v,context:y}),$=function(w){g.variables=w;var k=i.fetchQueryByPolicy(s,g,n);return g.fetchPolicy!=="standby"&&k.length>0&&s.observableQuery&&s.observableQuery.applyNextFetchPolicy("after-fetch",r),k},_=function(){return i.fetchCancelFns.delete(t)};this.fetchCancelFns.set(t,function(w){_(),setTimeout(function(){return S.cancel(w)})});var S=new Cs(this.transform(g.query).hasClientExports?this.localState.addExportedVariables(g.query,g.variables,g.context).then($):$(g.variables));return S.promise.then(_,_),S},e.prototype.refetchQueries=function(t){var r=this,n=t.updateCache,i=t.include,o=t.optimistic,a=o===void 0?!1:o,s=t.removeOptimistic,l=s===void 0?a?yv("refetchQueries"):void 0:s,c=t.onQueryUpdated,u=new Map;i&&this.getObservableQueries(i).forEach(function(f,h){u.set(h,{oq:f,lastDiff:r.getQuery(h).getDiff()})});var d=new Map;return n&&this.cache.batch({update:n,optimistic:a&&l||!1,removeOptimistic:l,onWatchUpdated:function(f,h,p){var m=f.watcher instanceof cp&&f.watcher.observableQuery;if(m){if(c){u.delete(m.queryId);var v=c(m,h,p);return v===!0&&(v=m.refetch()),v!==!1&&d.set(m,v),v}c!==null&&u.set(m.queryId,{oq:m,lastDiff:p,diff:h})}}}),u.size&&u.forEach(function(f,h){var p=f.oq,m=f.lastDiff,v=f.diff,b;if(c){if(!v){var y=p.queryInfo;y.reset(),v=y.getDiff()}b=c(p,v,m)}(!c||b===!0)&&(b=p.refetch()),b!==!1&&d.set(p,b),h.indexOf("legacyOneTimeQuery")>=0&&r.stopQueryNoBroadcast(h)}),l&&this.cache.removeOptimistic(l),d},e.prototype.fetchQueryByPolicy=function(t,r,n){var i=this,o=r.query,a=r.variables,s=r.fetchPolicy,l=r.refetchWritePolicy,c=r.errorPolicy,u=r.returnPartialData,d=r.context,f=r.notifyOnNetworkStatusChange,h=t.networkStatus;t.init({document:this.transform(o).document,variables:a,networkStatus:n});var p=function(){return t.getDiff(a)},m=function($,_){_===void 0&&(_=t.networkStatus||je.loading);var S=$.result;__DEV__&&!u&&!kt(S,{})&&YS($.missing);var w=function(k){return ze.of(P({data:k,loading:al(_),networkStatus:_},$.complete?null:{partial:!0}))};return S&&i.transform(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:S},context:d,variables:a,onlyRunForcedResolvers:!0}).then(function(k){return w(k.data||void 0)}):c==="none"&&_===je.refetch&&Array.isArray($.missing)?w(void 0):w(S)},v=s==="no-cache"?0:n===je.refetch&&l!=="merge"?1:2,b=function(){return i.getResultsFromLink(t,v,{variables:a,context:d,fetchPolicy:s,errorPolicy:c})},y=f&&typeof h=="number"&&h!==n&&al(n);switch(s){default:case"cache-first":{var g=p();return g.complete?[m(g,t.markReady())]:u||y?[m(g),b()]:[b()]}case"cache-and-network":{var g=p();return g.complete||u||y?[m(g),b()]:[b()]}case"cache-only":return[m(p(),t.markReady())];case"network-only":return y?[m(p()),b()]:[b()];case"no-cache":return y?[m(t.getDiff()),b()]:[b()];case"standby":return[]}},e.prototype.getQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new cp(this,t)),this.queries.get(t)},e.prototype.prepareContext=function(t){t===void 0&&(t={});var r=this.localState.prepareContext(t);return P(P({},r),{clientAwareness:this.clientAwareness})},e}(),Iw=!1,nL=function(){function e(t){var r=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=t.uri,i=t.credentials,o=t.headers,a=t.cache,s=t.ssrMode,l=s===void 0?!1:s,c=t.ssrForceFetchDelay,u=c===void 0?0:c,d=t.connectToDevTools,f=d===void 0?typeof window=="object"&&!window.__APOLLO_CLIENT__&&__DEV__:d,h=t.queryDeduplication,p=h===void 0?!0:h,m=t.defaultOptions,v=t.assumeImmutableResults,b=v===void 0?!1:v,y=t.resolvers,g=t.typeDefs,$=t.fragmentMatcher,_=t.name,S=t.version,w=t.link;if(w||(w=n?new ES({uri:n,credentials:i,headers:o}):Ha.empty()),!a)throw __DEV__?new Ie(`To initialize Apollo Client, you must specify a 'cache' property in the options object.
432
432
  For more information, please visit: https://go.apollo.dev/c/docs`):new Ie(9);if(this.link=w,this.cache=a,this.disableNetworkFetches=l||u>0,this.queryDeduplication=p,this.defaultOptions=m||Object.create(null),this.typeDefs=g,u&&setTimeout(function(){return r.disableNetworkFetches=!1},u),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&&typeof window=="object"&&(window.__APOLLO_CLIENT__=this),!Iw&&f&&__DEV__&&(Iw=!0,typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var k=window.navigator,A=k&&k.userAgent,F=void 0;typeof A=="string"&&(A.indexOf("Chrome/")>-1?F="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":A.indexOf("Firefox/")>-1&&(F="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),F&&__DEV__&&q.log("Download the Apollo DevTools for a better development experience: "+F)}this.version=FR,this.localState=new XS({cache:a,client:this,resolvers:y,fragmentMatcher:$}),this.queryManager=new rL({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:p,ssrMode:l,clientAwareness:{name:_,version:S},localState:this.localState,assumeImmutableResults:b,onBroadcast:f?function(){r.devToolsHookCb&&r.devToolsHookCb({action:{},state:{queries:r.queryManager.getQueryStore(),mutations:r.queryManager.mutationStore||{}},dataWithOptimisticResults:r.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=tp(this.defaultOptions.watchQuery,t)),this.disableNetworkFetches&&(t.fetchPolicy==="network-only"||t.fetchPolicy==="cache-and-network")&&(t=P(P({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},e.prototype.query=function(t){return this.defaultOptions.query&&(t=tp(this.defaultOptions.query,t)),__DEV__?q(t.fetchPolicy!=="cache-and-network","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."):q(t.fetchPolicy!=="cache-and-network",10),this.disableNetworkFetches&&t.fetchPolicy==="network-only"&&(t=P(P({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},e.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=tp(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},e.prototype.subscribe=function(t){return this.queryManager.startGraphQLSubscription(t)},e.prototype.readQuery=function(t,r){return r===void 0&&(r=!1),this.cache.readQuery(t,r)},e.prototype.readFragment=function(t,r){return r===void 0&&(r=!1),this.cache.readFragment(t,r)},e.prototype.writeQuery=function(t){var r=this.cache.writeQuery(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),r},e.prototype.writeFragment=function(t){var r=this.cache.writeFragment(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),r},e.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},e.prototype.__requestRaw=function(t){return bv(this.link,t)},e.prototype.resetStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(t.resetStoreCallbacks.map(function(r){return r()}))}).then(function(){return t.reFetchObservableQueries()})},e.prototype.clearStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(t.clearStoreCallbacks.map(function(r){return r()}))})},e.prototype.onResetStore=function(t){var r=this;return this.resetStoreCallbacks.push(t),function(){r.resetStoreCallbacks=r.resetStoreCallbacks.filter(function(n){return n!==t})}},e.prototype.onClearStore=function(t){var r=this;return this.clearStoreCallbacks.push(t),function(){r.clearStoreCallbacks=r.clearStoreCallbacks.filter(function(n){return n!==t})}},e.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},e.prototype.refetchQueries=function(t){var r=this.queryManager.refetchQueries(t),n=[],i=[];r.forEach(function(a,s){n.push(s),i.push(a)});var o=Promise.all(i);return o.queries=n,o.results=i,o.catch(function(a){__DEV__&&q.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(a))}),o},e.prototype.getObservableQueries=function(t){return t===void 0&&(t="active"),this.queryManager.getObservableQueries(t)},e.prototype.extract=function(t){return this.cache.extract(t)},e.prototype.restore=function(t){return this.cache.restore(t)},e.prototype.addResolvers=function(t){this.localState.addResolvers(t)},e.prototype.setResolvers=function(t){this.localState.setResolvers(t)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},e.prototype.setLink=function(t){this.link=this.queryManager.link=t},e}(),jc=new Map,Iv=new Map,JS=!0,vd=!1;function ZS(e){return e.replace(/[\s,]+/g," ").trim()}function iL(e){return ZS(e.source.body.substring(e.start,e.end))}function oL(e){var t=new Set,r=[];return e.definitions.forEach(function(n){if(n.kind==="FragmentDefinition"){var i=n.name.value,o=iL(n.loc),a=Iv.get(i);a&&!a.has(o)?JS&&console.warn("Warning: fragment with name "+i+` already exists.
433
433
  graphql-tag enforces all fragment names across your application to be unique; read more about
434
- this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a||Iv.set(i,a=new Set),a.add(o),t.has(o)||(t.add(o),r.push(n))}else r.push(n)}),P(P({},e),{definitions:r})}function aL(e){var t=new Set(e.definitions);t.forEach(function(n){n.loc&&delete n.loc,Object.keys(n).forEach(function(i){var o=n[i];o&&typeof o=="object"&&t.add(o)})});var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}function sL(e){var t=ZS(e);if(!jc.has(t)){var r=ND(e,{experimentalFragmentVariables:vd,allowLegacyFragmentVariables:vd});if(!r||r.kind!=="Document")throw new Error("Not a valid GraphQL document.");jc.set(t,aL(oL(r)))}return jc.get(t)}function ee(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];typeof e=="string"&&(e=[e]);var n=e[0];return t.forEach(function(i,o){i&&i.kind==="Document"?n+=i.loc.source.body:n+=i,n+=e[o+1]}),sL(n)}function lL(){jc.clear(),Iv.clear()}function cL(){JS=!1}function uL(){vd=!0}function dL(){vd=!1}var vs={gql:ee,resetCaches:lL,disableFragmentWarnings:cL,enableExperimentalFragmentVariables:uL,disableExperimentalFragmentVariables:dL};(function(e){e.gql=vs.gql,e.resetCaches=vs.resetCaches,e.disableFragmentWarnings=vs.disableFragmentWarnings,e.enableExperimentalFragmentVariables=vs.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=vs.disableExperimentalFragmentVariables})(ee||(ee={}));ee.default=ee;const Al=ee;function fL(e){return new Ha(function(t,r){var n=wi(t,[]);return new ze(function(i){var o,a=!1;return Promise.resolve(n).then(function(s){return e(s,t.getContext())}).then(t.setContext).then(function(){a||(o=r(t).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)}))}).catch(i.error.bind(i)),function(){a=!0,o&&o.unsubscribe()}})})}const hL=/[?&]code=[^&]+/,pL=/[?&]state=[^&]+/,vL=/[?&]error=[^&]+/;class Nw{constructor({authentication:t,organization:r,audience:n="https://api.photon.health"}){this.authentication=t,this.organization=r,this.audience=n}login({organizationId:t,invitation:r,appState:n}){return pe(this,void 0,void 0,function*(){let i={redirectMethod:"assign"};return(t||this.organization)&&(i=Object.assign(i,{organization:t||this.organization})),r&&(i=Object.assign(i,{invitation:r})),n&&(i=Object.assign(i,{appState:n})),this.authentication.loginWithRedirect(i)})}logout({returnTo:t,federated:r=!1}){return pe(this,void 0,void 0,function*(){const n=Object.assign(Object.assign({},t?{returnTo:t}:{}),r?{federated:r}:{});return this.authentication.logout(n)})}hasAuthParams(t=window.location.search){return(hL.test(t)||vL.test(t))&&pL.test(t)}getAccessToken({audience:t}={audience:this.audience}){return pe(this,void 0,void 0,function*(){let r=Object.assign({audience:t||this.audience||void 0},this.organization?{organization:this.organization}:{});try{return this.authentication.getTokenSilently(r)}catch(n){if(n.message.includes("Consent required"))return this.authentication.getTokenWithPopup(r);throw n}})}getAccessTokenWithConsent({audience:t}={audience:this.audience}){return pe(this,void 0,void 0,function*(){let r=Object.assign({audience:t||this.audience||void 0},this.organization?{organization:this.organization}:{});return this.authentication.getTokenWithPopup(r)})}checkSession(){return pe(this,void 0,void 0,function*(){return this.authentication.checkSession()})}handleRedirect(t){return pe(this,void 0,void 0,function*(){try{return this.authentication.handleRedirectCallback(t)}catch(r){throw r}})}getUser(){return pe(this,void 0,void 0,function*(){return this.authentication.getUser()})}isAuthenticated(){return pe(this,void 0,void 0,function*(){try{return yield this.authentication.checkSession(),yield this.authentication.isAuthenticated()}catch{return!1}})}}const sc=ee`
434
+ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a||Iv.set(i,a=new Set),a.add(o),t.has(o)||(t.add(o),r.push(n))}else r.push(n)}),P(P({},e),{definitions:r})}function aL(e){var t=new Set(e.definitions);t.forEach(function(n){n.loc&&delete n.loc,Object.keys(n).forEach(function(i){var o=n[i];o&&typeof o=="object"&&t.add(o)})});var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}function sL(e){var t=ZS(e);if(!jc.has(t)){var r=ND(e,{experimentalFragmentVariables:vd,allowLegacyFragmentVariables:vd});if(!r||r.kind!=="Document")throw new Error("Not a valid GraphQL document.");jc.set(t,aL(oL(r)))}return jc.get(t)}function ee(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];typeof e=="string"&&(e=[e]);var n=e[0];return t.forEach(function(i,o){i&&i.kind==="Document"?n+=i.loc.source.body:n+=i,n+=e[o+1]}),sL(n)}function lL(){jc.clear(),Iv.clear()}function cL(){JS=!1}function uL(){vd=!0}function dL(){vd=!1}var vs={gql:ee,resetCaches:lL,disableFragmentWarnings:cL,enableExperimentalFragmentVariables:uL,disableExperimentalFragmentVariables:dL};(function(e){e.gql=vs.gql,e.resetCaches=vs.resetCaches,e.disableFragmentWarnings=vs.disableFragmentWarnings,e.enableExperimentalFragmentVariables=vs.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=vs.disableExperimentalFragmentVariables})(ee||(ee={}));ee.default=ee;const Al=ee;function fL(e){return new Ha(function(t,r){var n=wi(t,[]);return new ze(function(i){var o,a=!1;return Promise.resolve(n).then(function(s){return e(s,t.getContext())}).then(t.setContext).then(function(){a||(o=r(t).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)}))}).catch(i.error.bind(i)),function(){a=!0,o&&o.unsubscribe()}})})}const hL=/[?&]code=[^&]+/,pL=/[?&]state=[^&]+/,vL=/[?&]error=[^&]+/;class Nw{constructor({authentication:t,organization:r,audience:n="https://api.photon.health"}){this.authentication=t,this.organization=r,this.audience=n}login({organizationId:t,invitation:r,appState:n}){return pe(this,void 0,void 0,function*(){let i={redirectMethod:"assign"};return(t||this.organization)&&(i=Object.assign(i,{organization:t||this.organization})),r&&(i=Object.assign(i,{invitation:r})),n&&(i=Object.assign(i,{appState:n})),this.authentication.loginWithRedirect(i)})}logout({returnTo:t,federated:r=!1}){return pe(this,void 0,void 0,function*(){const n=Object.assign(Object.assign({},t?{returnTo:t}:{}),r?{federated:r}:{});return this.authentication.logout(n)})}hasAuthParams(t=window.location.search){return(hL.test(t)||vL.test(t))&&pL.test(t)}getAccessToken({audience:t}={audience:this.audience}){return pe(this,void 0,void 0,function*(){let r=Object.assign({audience:t||this.audience||void 0},this.organization?{organization:this.organization}:{}),n;try{n=yield this.authentication.getTokenSilently(r)}catch(i){if(i.message.includes("Consent required"))n=yield this.authentication.getTokenWithPopup(r);else throw i}return n})}getAccessTokenWithConsent({audience:t}={audience:this.audience}){return pe(this,void 0,void 0,function*(){let r=Object.assign({audience:t||this.audience||void 0},this.organization?{organization:this.organization}:{});return this.authentication.getTokenWithPopup(r)})}checkSession(){return pe(this,void 0,void 0,function*(){return this.authentication.checkSession()})}handleRedirect(t){return pe(this,void 0,void 0,function*(){try{return this.authentication.handleRedirectCallback(t)}catch(r){throw r}})}getUser(){return pe(this,void 0,void 0,function*(){return this.authentication.getUser()})}isAuthenticated(){return pe(this,void 0,void 0,function*(){try{return yield this.authentication.checkSession(),yield this.authentication.isAuthenticated()}catch{return!1}})}}const sc=ee`
435
435
  fragment OrganizationFields on Organization {
436
436
  id
437
437
  name
package/dist/index.mjs CHANGED
@@ -1699,7 +1699,7 @@ var Ul, ky = Object.keys || function(e) {
1699
1699
  } catch {
1700
1700
  }
1701
1701
  var e, t;
1702
- _c = typeof document < "u" ? document.domain && Ul ? Bb(Ul) : ((t = s4("iframe")).style.display = "none", Dk.appendChild(t), t.src = String("javascript:"), (e = t.contentWindow.document).open(), e.write(k4("document.F=Object")), e.close(), e.F) : Bb(Ul);
1702
+ _c = typeof document < "u" ? document.domain && Ul ? Bb(Ul) : ((t = s4("iframe")).style.display = "none", Dk.appendChild(t), t.src = "javascript:", (e = t.contentWindow.document).open(), e.write(k4("document.F=Object")), e.close(), e.F) : Bb(Ul);
1703
1703
  for (var r = Bu.length; r--; )
1704
1704
  delete _c.prototype[Bu[r]];
1705
1705
  return _c();
@@ -2398,7 +2398,7 @@ function X4(e) {
2398
2398
  }, Y6), qs.Set;
2399
2399
  var X6 = setTimeout;
2400
2400
  function x1(e) {
2401
- return Boolean(e && e.length !== void 0);
2401
+ return !!(e && e.length !== void 0);
2402
2402
  }
2403
2403
  function J6() {
2404
2404
  }
@@ -2545,7 +2545,7 @@ typeof So.Promise != "function" ? So.Promise = at : (So.Promise.prototype.finall
2545
2545
  h = h.subarray(p), p = 0, y = 0;
2546
2546
  }
2547
2547
  var _ = h[p++];
2548
- if ((128 & _) == 0)
2548
+ if (!(128 & _))
2549
2549
  v[y++] = _;
2550
2550
  else if ((224 & _) == 192) {
2551
2551
  var S = 63 & h[p++];
@@ -2581,13 +2581,13 @@ typeof So.Promise != "function" ? So.Promise = at : (So.Promise.prototype.finall
2581
2581
  var _ = new Uint8Array(b);
2582
2582
  _.set(y), y = _;
2583
2583
  }
2584
- if ((4294967168 & g) != 0) {
2585
- if ((4294965248 & g) == 0)
2584
+ if (4294967168 & g) {
2585
+ if (!(4294965248 & g))
2586
2586
  y[v++] = g >>> 6 & 31 | 192;
2587
- else if ((4294901760 & g) == 0)
2587
+ else if (!(4294901760 & g))
2588
2588
  y[v++] = g >>> 12 & 15 | 224, y[v++] = g >>> 6 & 63 | 128;
2589
2589
  else {
2590
- if ((4292870144 & g) != 0)
2590
+ if (4292870144 & g)
2591
2591
  continue;
2592
2592
  y[v++] = g >>> 18 & 7 | 240, y[v++] = g >>> 12 & 63 | 128, y[v++] = g >>> 6 & 63 | 128;
2593
2593
  }
@@ -3094,7 +3094,7 @@ var Gi = Na(function(e, t) {
3094
3094
  function i(l, c, u) {
3095
3095
  return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent).replace(/\(/g, "%28").replace(/\)/g, "%29") + "=" + encodeURIComponent(c).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent) + function(d) {
3096
3096
  if (typeof d.expires == "number") {
3097
- var f = new Date();
3097
+ var f = /* @__PURE__ */ new Date();
3098
3098
  f.setMilliseconds(f.getMilliseconds() + 864e5 * d.expires), d.expires = f;
3099
3099
  }
3100
3100
  return n("Expires", d.expires ? d.expires.toUTCString() : "") + n("Domain", d.domain) + n("Path", d.path) + n("Secure", d.secure) + n("SameSite", d.sameSite);
@@ -3175,7 +3175,7 @@ const O1 = Pr(function() {
3175
3175
  var k1 = "__", C1 = [k1, k1].join("DEV");
3176
3176
  function o7() {
3177
3177
  try {
3178
- return Boolean(__DEV__);
3178
+ return !!__DEV__;
3179
3179
  } catch {
3180
3180
  return Object.defineProperty(O1, C1, {
3181
3181
  value: Pr(function() {
@@ -3226,14 +3226,14 @@ function s7() {
3226
3226
  p0 && (delete h0.process, p0 = !1);
3227
3227
  }
3228
3228
  function Sc(e, t) {
3229
- if (!Boolean(e))
3229
+ if (!e)
3230
3230
  throw new Error(t);
3231
3231
  }
3232
3232
  function l7(e) {
3233
3233
  return typeof e == "object" && e !== null;
3234
3234
  }
3235
3235
  function c7(e, t) {
3236
- if (!Boolean(e))
3236
+ if (!e)
3237
3237
  throw new Error(
3238
3238
  t ?? "Unexpected invariant triggered."
3239
3239
  );
@@ -5353,7 +5353,7 @@ function Yo(e) {
5353
5353
  return { __ref: String(e) };
5354
5354
  }
5355
5355
  function De(e) {
5356
- return Boolean(e && typeof e == "object" && typeof e.__ref == "string");
5356
+ return !!(e && typeof e == "object" && typeof e.__ref == "string");
5357
5357
  }
5358
5358
  function tC(e) {
5359
5359
  return e.kind === "StringValue";
@@ -5654,7 +5654,7 @@ function zy(e, t, r) {
5654
5654
  var Uy = function() {
5655
5655
  return typeof Symbol == "function";
5656
5656
  }, By = function(e) {
5657
- return Uy() && Boolean(Symbol[e]);
5657
+ return Uy() && !!Symbol[e];
5658
5658
  }, qy = function(e) {
5659
5659
  return By(e) ? Symbol[e] : "@@" + e;
5660
5660
  };
@@ -6207,7 +6207,7 @@ function Wy() {
6207
6207
  e[t] = arguments[t];
6208
6208
  var r = /* @__PURE__ */ Object.create(null);
6209
6209
  return e.forEach(function(n) {
6210
- !n || Object.keys(n).forEach(function(i) {
6210
+ n && Object.keys(n).forEach(function(i) {
6211
6211
  var o = n[i];
6212
6212
  o !== void 0 && (r[i] = o);
6213
6213
  });
@@ -8156,7 +8156,7 @@ var QT = function() {
8156
8156
  return $[$i(w)] === !0;
8157
8157
  }, S = function(w) {
8158
8158
  var k = v && v.map.get(w);
8159
- return Boolean(k && k.info && k.info.merge);
8159
+ return !!(k && k.info && k.info.merge);
8160
8160
  };
8161
8161
  Object.keys(m).forEach(function(w) {
8162
8162
  _(w) && !S(w) && KT(y, m, w, d.store);
@@ -8319,7 +8319,7 @@ function KT(e, t, r, n) {
8319
8319
  }, o = i(e);
8320
8320
  if (o) {
8321
8321
  var a = i(t);
8322
- if (!!a && !De(o) && !Wr(o, a) && !Object.keys(o).every(function(d) {
8322
+ if (a && !De(o) && !Wr(o, a) && !Object.keys(o).every(function(d) {
8323
8323
  return n.getFieldValue(a, d) !== void 0;
8324
8324
  })) {
8325
8325
  var s = n.getFieldValue(e, "__typename") || n.getFieldValue(t, "__typename"), l = $i(r), c = "".concat(s, ".").concat(l);
@@ -19808,14 +19808,16 @@ class Nw {
19808
19808
  audience: this.audience
19809
19809
  }) {
19810
19810
  return pe(this, void 0, void 0, function* () {
19811
- let r = Object.assign({ audience: t || this.audience || void 0 }, this.organization ? { organization: this.organization } : {});
19811
+ let r = Object.assign({ audience: t || this.audience || void 0 }, this.organization ? { organization: this.organization } : {}), n;
19812
19812
  try {
19813
- return this.authentication.getTokenSilently(r);
19814
- } catch (n) {
19815
- if (n.message.includes("Consent required"))
19816
- return this.authentication.getTokenWithPopup(r);
19817
- throw n;
19813
+ n = yield this.authentication.getTokenSilently(r);
19814
+ } catch (i) {
19815
+ if (i.message.includes("Consent required"))
19816
+ n = yield this.authentication.getTokenWithPopup(r);
19817
+ else
19818
+ throw i;
19818
19819
  }
19820
+ return n;
19819
19821
  });
19820
19822
  }
19821
19823
  getAccessTokenWithConsent({ audience: t } = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photonhealth/elements",
3
- "version": "0.0.97",
3
+ "version": "0.0.98",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -56,7 +56,6 @@
56
56
  "vite-plugin-static-copy": "^0.13.1"
57
57
  },
58
58
  "dependencies": {
59
- "@photonhealth/components": "*",
60
59
  "@photonhealth/sdk": "*",
61
60
  "@shoelace-style/shoelace": "^2.0.0-beta.82",
62
61
  "@solid-primitives/scheduled": "^1.2.0",