@fugood/bricks-cli 2.25.0-beta.8 → 2.25.0-beta.81

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.
Files changed (70) hide show
  1. package/README.md +115 -28
  2. package/lib/1001.js +1 -0
  3. package/lib/1010.js +1 -0
  4. package/lib/1178.js +1 -0
  5. package/lib/1215.js +1 -0
  6. package/lib/1708.js +9 -0
  7. package/lib/1759.js +1 -0
  8. package/lib/1936.js +1 -0
  9. package/lib/1946.js +1 -0
  10. package/lib/2151.js +1 -0
  11. package/lib/2247.js +1 -0
  12. package/lib/2486.js +1 -0
  13. package/lib/2557.js +1 -0
  14. package/lib/3223.js +4 -0
  15. package/lib/3332.js +13 -0
  16. package/lib/3593.js +1 -0
  17. package/lib/3690.js +1 -0
  18. package/lib/3774.js +44 -0
  19. package/lib/3976.js +14 -0
  20. package/lib/4305.js +1 -0
  21. package/lib/4456.js +3 -0
  22. package/lib/4479.js +30 -0
  23. package/lib/4530.js +22 -0
  24. package/lib/4642.js +9 -0
  25. package/lib/4685.js +1202 -0
  26. package/lib/5212.js +1 -0
  27. package/lib/563.js +4 -0
  28. package/lib/5658.js +2 -0
  29. package/lib/6194.js +3 -0
  30. package/lib/6645.js +1 -0
  31. package/lib/6818.js +1 -0
  32. package/lib/7111.js +2 -0
  33. package/lib/7233.js +2546 -0
  34. package/lib/7294.js +19 -0
  35. package/lib/7456.js +1 -0
  36. package/lib/7494.js +18 -0
  37. package/lib/7511.js +1 -0
  38. package/lib/7574.js +1 -0
  39. package/lib/7648.js +1 -0
  40. package/lib/8166.js +1 -0
  41. package/lib/8295.js +109 -0
  42. package/lib/831.js +1 -0
  43. package/lib/853.js +1 -0
  44. package/lib/907.js +918 -0
  45. package/lib/9215.js +1 -0
  46. package/lib/9320.js +3 -0
  47. package/lib/9387.js +32 -0
  48. package/lib/9405.js +1 -0
  49. package/lib/9430.js +1 -0
  50. package/lib/9583.js +19 -0
  51. package/lib/9590.js +7 -0
  52. package/lib/9663.js +1 -0
  53. package/lib/9866.js +7 -0
  54. package/lib/index.js +165 -974
  55. package/lib/lib.js +1121 -0
  56. package/lib/simulator-host-bridge.cjs +1 -0
  57. package/lib/simulator-main.mjs +23 -0
  58. package/lib/simulator-preload.cjs +1 -0
  59. package/package.json +28 -8
  60. package/lib/10.js +0 -1
  61. package/lib/117.js +0 -2543
  62. package/lib/166.js +0 -1
  63. package/lib/178.js +0 -1
  64. package/lib/3.js +0 -1
  65. package/lib/456.js +0 -1
  66. package/lib/511.js +0 -1
  67. package/lib/587.js +0 -7
  68. package/lib/602.js +0 -3
  69. package/lib/647.js +0 -30
  70. package/lib/940.js +0 -1
package/lib/853.js ADDED
@@ -0,0 +1 @@
1
+ export const __rspack_esm_id=853;export const __rspack_esm_ids=[853];export const __webpack_modules__={99548(e,t,r){r.d(t,{L:()=>d});var n=r(76502),o=r.n(n),i=r(45838);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var a={enum:1,type:0},u=/"/g,l=/NOT/g,c=/\//g,h=function(e){var t=e.value,r=e.suggestions,n=e.format;if(!t)return"";var i=r.reduce(function(e,r){var n=o()(t,r);return e.distance>n?{value:r,distance:n}:e},{distance:1/0,value:""});return i.distance<t.length?(void 0===n?function(e){return"Did you mean '"+e+"'?"}:n)(i.value):""},p=function(e){return e.split("/").pop()},f=function(e){var t=e.object,r=e.pnter,n=e.fallback;try{return i.Jt(t,r)}catch(e){return n}},d=function(e){var t=e.errors,r=e.data,n=e.schema,o=e.basePath,i=void 0===o?"{base}":o;return Array.isArray(t)&&0!==t.length?Object.values(t.reduce(function(e,t){var r,n,o,i,s,u,l=t.instancePath+(null!=(r=null!=(n=null==(o=t.params)?void 0:o.additionalProperty)?n:null==(i=t.params)?void 0:i.missingProperty)?r:""),c=e[l];return c?(null!=(s=a[t.keyword])?s:0)>(null!=(u=a[c.keyword])?u:0)&&(e[l]=t):e[l]=t,e},{})).map(function(e){var t,o=(i+e.instancePath).replace(c,"."),a=p(e.instancePath),d={errorType:e.keyword},y=(a?"property '"+a+"'":o)+" "+e.message.replace(u,"'").replace(l,"not");switch(e.keyword){case"additionalProperties":var v=e.params.additionalProperty,g=f({object:n,pnter:e.schemaPath.replace("#","").replace("/additionalProperties",""),fallback:{properties:{}}}).properties;t={message:"'"+v+"' property is not expected to be here",suggestion:h({value:v,suggestions:Object.keys(null!=g?g:{}),format:function(e){return"Did you mean property '"+e+"'?"}}),path:o,context:d};break;case"enum":var b=e.params.allowedValues.map(function(e){return e.toString()});t={message:"'"+p(e.instancePath)+"' property must be equal to one of the allowed values",suggestion:h({value:f({object:r,pnter:e.instancePath,fallback:""}),suggestions:b}),path:o,context:s({},d,{allowedValues:e.params.allowedValues})};break;case"type":t={message:"'"+p(e.instancePath)+"' property type must be "+e.params.type,path:o,context:d};break;case"required":t={message:o+" must have required property '"+e.params.missingProperty+"'",path:o,context:d};break;case"const":return{message:"'"+a+"' property must be equal to the allowed value",path:o,context:s({},d,{allowedValue:e.params.allowedValue})};default:return{message:y,path:o,context:d}}for(var m=Object.entries(t),w=0;w<m.length;w++){var _=m[w],x=_[0],I=_[1];(null==I||""===I)&&delete t[x]}return t}):[]}},90879(e,t){var r,n=this&&this.__extends||(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,r,n){void 0===n&&(n=408);var o=e.call(this,t)||this;return o.timeout=r,o.statusCode=n,o}return n(t,e),t}(Error)},17681(e,t,r){var n,o=this&&this.__extends||(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var s=r(2714),a=r(90879);t.default=function(e){function t(t,r){var n=e.call(this)||this;return n.timeout=t||15e3,n.statusCode=r,n}return o(t,e),t.prototype.request=function(e,t){var r,n=this,o=e.getContext().timeout||this.timeout;if("u">typeof AbortController){var u=e.getContext().fetchOptions||{};r=u.controller||new AbortController,u=i({},u,{controller:r,signal:r.signal}),e.setContext({fetchOptions:u})}var l=t(e),c=e.query.definitions.find(function(e){return"OperationDefinition"===e.kind}).operation;return o<=0||"subscription"===c?l:new s.Observable(function(t){var s,u=l.subscribe(function(e){clearTimeout(s),t.next(e),t.complete()},function(e){clearTimeout(s),t.error(e),t.complete()});s=setTimeout(function(){if(r){r.abort();var s=e.getContext().fetchOptions||{};s.controller===r&&s.signal===r.signal&&(s=i({},s,{controller:null,signal:null}),e.setContext({fetchOptions:s}))}t.error(new a.default("Timeout exceeded",o,n.statusCode)),u.unsubscribe()},o);var c=e.getContext().timeoutRef;return c&&c({unsubscribe:function(){clearTimeout(s),u.unsubscribe()}}),function(){clearTimeout(s),u.unsubscribe()}})},t}(s.ApolloLink)},10655(e,t,r){r.d(t,{Vn:()=>o});var n=r(19371);function o(e){(0,n.invariant)(e&&"Document"===e.kind,2),t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw new n.InvariantError(3);return e}),(0,n.invariant)(t.length<=1,4);for(var t,r,o=0,i=e.definitions;o<i.length;o++){var s=i[o];if("OperationDefinition"===s.kind){var a=s.operation;if("query"===a||"mutation"===a||"subscription"===a)return s}"FragmentDefinition"!==s.kind||r||(r=s)}if(r)return r;throw new n.InvariantError(10)}r(56075),"function"==typeof WeakMap&&("object"!=typeof navigator||navigator.product),Object.prototype.toString,Object.prototype.hasOwnProperty,Object.create({})},56075(e){e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r,n="boolean"==typeof t.cycles&&t.cycles,o=t.cmp&&(r=t.cmp,function(e){return function(t,n){return r({key:t,value:e[t]},{key:n,value:e[n]})}}),i=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);if(Array.isArray(t)){for(r=0,s="[";r<t.length;r++)r&&(s+=","),s+=e(t[r])||"null";return s+"]"}if(null===t)return"null";if(-1!==i.indexOf(t)){if(n)return JSON.stringify("__cycle__");throw TypeError("Converting circular structure to JSON")}var r,s,a=i.push(t)-1,u=Object.keys(t).sort(o&&o(t));for(r=0,s="";r<u.length;r++){var l=u[r],c=e(t[l]);c&&(s&&(s+=","),s+=JSON.stringify(l)+":"+c)}return i.splice(a,1),"{"+s+"}"}}(e)}},68875(e){!function(t){"use strict";let r="(0?\\d+|0x[a-f0-9]+)",n={fourOctet:RegExp(`^${r}\\.${r}\\.${r}\\.${r}$`,"i"),threeOctet:RegExp(`^${r}\\.${r}\\.${r}$`,"i"),twoOctet:RegExp(`^${r}\\.${r}$`,"i"),longValue:RegExp(`^${r}$`,"i")},o=RegExp("^0[0-7]+$","i"),i=RegExp("^0x[a-f0-9]+$","i"),s="%[0-9a-z]{1,}",a="(?:[0-9a-f]+::?)+",u={zoneIndex:RegExp(s,"i"),native:RegExp(`^(::)?(${a})?([0-9a-f]+)?(::)?(${s})?$`,"i"),deprecatedTransitional:RegExp(`^(?:::)(${r}\\.${r}\\.${r}\\.${r}(${s})?)$`,"i"),transitional:RegExp(`^((?:${a})|(?:::)(?:${a})?)${r}\\.${r}\\.${r}\\.${r}(${s})?$`,"i")};function l(e,t){let r,n;if(e.indexOf("::")!==e.lastIndexOf("::"))return null;let o=0,i=-1,s=(e.match(u.zoneIndex)||[])[0];for(s&&(s=s.substring(1),e=e.replace(/%.+$/,""));(i=e.indexOf(":",i+1))>=0;)o++;if("::"===e.substr(0,2)&&o--,"::"===e.substr(-2,2)&&o--,o>t)return null;for(n=t-o,r=":";n--;)r+="0:";return":"===(e=e.replace("::",r))[0]&&(e=e.slice(1)),":"===e[e.length-1]&&(e=e.slice(0,-1)),{parts:t=function(){let t=e.split(":"),r=[];for(let e=0;e<t.length;e++)r.push(parseInt(t[e],16));return r}(),zoneId:s}}function c(e,t,r,n){let o;if(e.length!==t.length)throw Error("ipaddr: cannot match CIDR for objects with different lengths");let i=0;for(;n>0;){if((o=r-n)<0&&(o=0),e[i]>>o!=t[i]>>o)return!1;n-=r,i+=1}return!0}function h(e){if(i.test(e))return parseInt(e,16);if("0"===e[0]&&!isNaN(parseInt(e[1],10))){if(o.test(e))return parseInt(e,8);throw Error(`ipaddr: cannot parse ${e} as octal`)}return parseInt(e,10)}let p={};p.IPv4=function(){function e(e){let t,r;if(4!==e.length)throw Error("ipaddr: ipv4 octet count should be 4");for(t=0;t<e.length;t++)if(!(0<=(r=e[t])&&r<=255))throw Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=e}return e.prototype.SpecialRanges={unspecified:[[new e([0,0,0,0]),8]],broadcast:[[new e([255,255,255,255]),32]],multicast:[[new e([224,0,0,0]),4]],linkLocal:[[new e([169,254,0,0]),16]],loopback:[[new e([127,0,0,0]),8]],carrierGradeNat:[[new e([100,64,0,0]),10]],private:[[new e([10,0,0,0]),8],[new e([172,16,0,0]),12],[new e([192,168,0,0]),16]],reserved:[[new e([192,0,0,0]),24],[new e([192,0,2,0]),24],[new e([192,88,99,0]),24],[new e([198,18,0,0]),15],[new e([198,51,100,0]),24],[new e([203,0,113,0]),24],[new e([240,0,0,0]),4]],as112:[[new e([192,175,48,0]),24],[new e([192,31,196,0]),24]],amt:[[new e([192,52,193,0]),24]]},e.prototype.kind=function(){return"ipv4"},e.prototype.match=function(e,t){let r;if(void 0===t&&(e=(r=e)[0],t=r[1]),"ipv4"!==e.kind())throw Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return c(this.octets,e.octets,8,t)},e.prototype.prefixLengthFromSubnetMask=function(){let e,t,r,n=0,o=!1,i={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0};for(e=3;e>=0;e-=1){if(!((t=this.octets[e])in i)||(r=i[t],o&&0!==r))return null;8!==r&&(o=!0),n+=r}return 32-n},e.prototype.range=function(){return p.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){return this.octets.slice(0)},e.prototype.toIPv4MappedAddress=function(){return p.IPv6.parse(`::ffff:${this.toString()}`)},e.prototype.toNormalizedString=function(){return this.toString()},e.prototype.toString=function(){return this.octets.join(".")},e}(),p.IPv4.broadcastAddressFromCIDR=function(e){try{let t=this.parseCIDR(e),r=t[0].toByteArray(),n=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),o=[],i=0;for(;i<4;)o.push(parseInt(r[i],10)|255^parseInt(n[i],10)),i++;return new this(o)}catch(e){throw Error("ipaddr: the address does not have IPv4 CIDR format")}},p.IPv4.isIPv4=function(e){return null!==this.parser(e)},p.IPv4.isValid=function(e){try{return new this(this.parser(e)),!0}catch(e){return!1}},p.IPv4.isValidCIDR=function(e){try{return this.parseCIDR(e),!0}catch(e){return!1}},p.IPv4.isValidFourPartDecimal=function(e){return!!(p.IPv4.isValid(e)&&e.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},p.IPv4.isValidCIDRFourPartDecimal=function(e){let t=e.match(/^(.+)\/(\d+)$/);return!!p.IPv4.isValidCIDR(e)&&!!t&&p.IPv4.isValidFourPartDecimal(t[1])},p.IPv4.networkAddressFromCIDR=function(e){let t,r,n,o,i;try{for(n=(t=this.parseCIDR(e))[0].toByteArray(),i=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),o=[],r=0;r<4;)o.push(parseInt(n[r],10)&parseInt(i[r],10)),r++;return new this(o)}catch(e){throw Error("ipaddr: the address does not have IPv4 CIDR format")}},p.IPv4.parse=function(e){let t=this.parser(e);if(null===t)throw Error("ipaddr: string is not formatted like an IPv4 Address");return new this(t)},p.IPv4.parseCIDR=function(e){let t;if(t=e.match(/^(.+)\/(\d+)$/)){let e=parseInt(t[2]);if(e>=0&&e<=32){let r=[this.parse(t[1]),e];return Object.defineProperty(r,"toString",{value:function(){return this.join("/")}}),r}}throw Error("ipaddr: string is not formatted like an IPv4 CIDR range")},p.IPv4.parser=function(e){let t,r;if(t=e.match(n.fourOctet)){let e=t.slice(1,6),r=[];for(let t=0;t<e.length;t++)r.push(h(e[t]));return r}if(t=e.match(n.longValue)){if((r=h(t[1]))>0xffffffff||r<0)throw Error("ipaddr: address outside defined range");return(function(){let e,t=[];for(e=0;e<=24;e+=8)t.push(r>>e&255);return t})().reverse()}if(t=e.match(n.twoOctet)){let e=t.slice(1,4),n=[];if((r=h(e[1]))>0xffffff||r<0)throw Error("ipaddr: address outside defined range");return n.push(h(e[0])),n.push(r>>16&255),n.push(r>>8&255),n.push(255&r),n}{if(!(t=e.match(n.threeOctet)))return null;let o=t.slice(1,5),i=[];if((r=h(o[2]))>65535||r<0)throw Error("ipaddr: address outside defined range");return i.push(h(o[0])),i.push(h(o[1])),i.push(r>>8&255),i.push(255&r),i}},p.IPv4.subnetMaskFromPrefixLength=function(e){if((e=parseInt(e))<0||e>32)throw Error("ipaddr: invalid IPv4 prefix length");let t=[0,0,0,0],r=0,n=Math.floor(e/8);for(;r<n;)t[r]=255,r++;return n<4&&(t[n]=Math.pow(2,e%8)-1<<8-e%8),new this(t)},p.IPv6=function(){function e(e,t){let r,n;if(16===e.length)for(r=0,this.parts=[];r<=14;r+=2)this.parts.push(e[r]<<8|e[r+1]);else if(8===e.length)this.parts=e;else throw Error("ipaddr: ipv6 part count should be 8 or 16");for(r=0;r<this.parts.length;r++)if(!(0<=(n=this.parts[r])&&n<=65535))throw Error("ipaddr: ipv6 part should fit in 16 bits");t&&(this.zoneId=t)}return e.prototype.SpecialRanges={unspecified:[new e([0,0,0,0,0,0,0,0]),128],linkLocal:[new e([65152,0,0,0,0,0,0,0]),10],multicast:[new e([65280,0,0,0,0,0,0,0]),8],loopback:[new e([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new e([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new e([0,0,0,0,0,65535,0,0]),96],discard:[new e([256,0,0,0,0,0,0,0]),64],rfc6145:[new e([0,0,0,0,65535,0,0,0]),96],rfc6052:[new e([100,65435,0,0,0,0,0,0]),96],"6to4":[new e([8194,0,0,0,0,0,0,0]),16],teredo:[new e([8193,0,0,0,0,0,0,0]),32],benchmarking:[new e([8193,2,0,0,0,0,0,0]),48],amt:[new e([8193,3,0,0,0,0,0,0]),32],as112v6:[[new e([8193,4,274,0,0,0,0,0]),48],[new e([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new e([8193,16,0,0,0,0,0,0]),28],orchid2:[new e([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new e([8193,48,0,0,0,0,0,0]),28],reserved:[[new e([8193,0,0,0,0,0,0,0]),23],[new e([8193,3512,0,0,0,0,0,0]),32]]},e.prototype.isIPv4MappedAddress=function(){return"ipv4Mapped"===this.range()},e.prototype.kind=function(){return"ipv6"},e.prototype.match=function(e,t){let r;if(void 0===t&&(e=(r=e)[0],t=r[1]),"ipv6"!==e.kind())throw Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return c(this.parts,e.parts,16,t)},e.prototype.prefixLengthFromSubnetMask=function(){let e,t,r=0,n=!1,o={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0};for(let i=7;i>=0;i-=1){if(!((e=this.parts[i])in o)||(t=o[e],n&&0!==t))return null;16!==t&&(n=!0),r+=t}return 128-r},e.prototype.range=function(){return p.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){let e,t=[],r=this.parts;for(let n=0;n<r.length;n++)t.push((e=r[n])>>8),t.push(255&e);return t},e.prototype.toFixedLengthString=function(){let e=(function(){let e=[];for(let t=0;t<this.parts.length;t++)e.push(function(e){for(;e.length<4;)e=`0${e}`;return e}(this.parts[t].toString(16)));return e}).call(this).join(":"),t="";return this.zoneId&&(t=`%${this.zoneId}`),e+t},e.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let e=this.parts.slice(-2),t=e[0],r=e[1];return new p.IPv4([t>>8,255&t,r>>8,255&r])},e.prototype.toNormalizedString=function(){let e=(function(){let e=[];for(let t=0;t<this.parts.length;t++)e.push(this.parts[t].toString(16));return e}).call(this).join(":"),t="";return this.zoneId&&(t=`%${this.zoneId}`),e+t},e.prototype.toRFC5952String=function(){let e,t=/((^|:)(0(:|$)){2,})/g,r=this.toNormalizedString(),n=0,o=-1;for(;e=t.exec(r);)e[0].length>o&&(n=e.index,o=e[0].length);return o<0?r:`${r.substring(0,n)}::${r.substring(n+o)}`},e.prototype.toString=function(){return this.toRFC5952String()},e}(),p.IPv6.broadcastAddressFromCIDR=function(e){try{let t=this.parseCIDR(e),r=t[0].toByteArray(),n=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),o=[],i=0;for(;i<16;)o.push(parseInt(r[i],10)|255^parseInt(n[i],10)),i++;return new this(o)}catch(e){throw Error(`ipaddr: the address does not have IPv6 CIDR format (${e})`)}},p.IPv6.isIPv6=function(e){return null!==this.parser(e)},p.IPv6.isValid=function(e){if("string"==typeof e&&-1===e.indexOf(":"))return!1;try{let t=this.parser(e);return new this(t.parts,t.zoneId),!0}catch(e){return!1}},p.IPv6.isValidCIDR=function(e){if("string"==typeof e&&-1===e.indexOf(":"))return!1;try{return this.parseCIDR(e),!0}catch(e){return!1}},p.IPv6.networkAddressFromCIDR=function(e){let t,r,n,o,i;try{for(n=(t=this.parseCIDR(e))[0].toByteArray(),i=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),o=[],r=0;r<16;)o.push(parseInt(n[r],10)&parseInt(i[r],10)),r++;return new this(o)}catch(e){throw Error(`ipaddr: the address does not have IPv6 CIDR format (${e})`)}},p.IPv6.parse=function(e){let t=this.parser(e);if(null===t.parts)throw Error("ipaddr: string is not formatted like an IPv6 Address");return new this(t.parts,t.zoneId)},p.IPv6.parseCIDR=function(e){let t,r,n;if((r=e.match(/^(.+)\/(\d+)$/))&&(t=parseInt(r[2]))>=0&&t<=128)return Object.defineProperty(n=[this.parse(r[1]),t],"toString",{value:function(){return this.join("/")}}),n;throw Error("ipaddr: string is not formatted like an IPv6 CIDR range")},p.IPv6.parser=function(e){let t,r,n,o,i,s;if(n=e.match(u.deprecatedTransitional))return this.parser(`::ffff:${n[1]}`);if(u.native.test(e))return l(e,8);if((n=e.match(u.transitional))&&(s=n[6]||"",t=n[1],n[1].endsWith("::")||(t=t.slice(0,-1)),(t=l(t+s,6)).parts)){for(r=0,i=[parseInt(n[2]),parseInt(n[3]),parseInt(n[4]),parseInt(n[5])];r<i.length;r++)if(!(0<=(o=i[r])&&o<=255))return null;return t.parts.push(i[0]<<8|i[1]),t.parts.push(i[2]<<8|i[3]),{parts:t.parts,zoneId:t.zoneId}}return null},p.IPv6.subnetMaskFromPrefixLength=function(e){if((e=parseInt(e))<0||e>128)throw Error("ipaddr: invalid IPv6 prefix length");let t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r=0,n=Math.floor(e/8);for(;r<n;)t[r]=255,r++;return n<16&&(t[n]=Math.pow(2,e%8)-1<<8-e%8),new this(t)},p.fromByteArray=function(e){let t=e.length;if(4===t)return new p.IPv4(e);if(16===t)return new p.IPv6(e);throw Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},p.isValid=function(e){return p.IPv6.isValid(e)||p.IPv4.isValid(e)},p.isValidCIDR=function(e){return p.IPv6.isValidCIDR(e)||p.IPv4.isValidCIDR(e)},p.parse=function(e){if(p.IPv6.isValid(e))return p.IPv6.parse(e);if(p.IPv4.isValid(e))return p.IPv4.parse(e);throw Error("ipaddr: the address has neither IPv6 nor IPv4 format")},p.parseCIDR=function(e){try{return p.IPv6.parseCIDR(e)}catch(t){try{return p.IPv4.parseCIDR(e)}catch(e){throw Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},p.process=function(e){let t=this.parse(e);return"ipv6"===t.kind()&&t.isIPv4MappedAddress()?t.toIPv4Address():t},p.subnetMatch=function(e,t,r){let n,o,i,s;for(o in null==r&&(r="unicast"),t)if(Object.prototype.hasOwnProperty.call(t,o)){for(!(i=t[o])[0]||i[0]instanceof Array||(i=[i]),n=0;n<i.length;n++)if(s=i[n],e.kind()===s[0].kind()&&e.match.apply(e,s))return o}return r},e.exports?e.exports=p:t.ipaddr=p}(this)},45838(e,t){var r=/~/,n=/~[01]/g;function o(e){switch(e){case"~1":return"/";case"~0":return"~"}throw Error("Invalid tilde escape: "+e)}t.Jt=function(e,t){if("object"!=typeof e)throw Error("Invalid input object.");var i,s=(t=function(e){if("string"==typeof e){if(""===(e=e.split("/"))[0])return e}else if(Array.isArray(e)){for(let t of e)if("string"!=typeof t&&"number"!=typeof t)throw Error("Invalid JSON pointer. Must be of type string or number.");return e}throw Error("Invalid JSON pointer.")}(t)).length;if(1===s)return e;for(var a=1;a<s;){if(e=e[i=t[a++],r.test(i)?i.replace(n,o):i],s===a)return e;if("object"!=typeof e||null===e)return}}},76502(e){let t=[],r=[],n=(e,n)=>{let o,i,s,a;if(e===n)return 0;let u=e;e.length>n.length&&(e=n,n=u);let l=e.length,c=n.length;for(;l>0&&e.charCodeAt(~-l)===n.charCodeAt(~-c);)l--,c--;let h=0;for(;h<l&&e.charCodeAt(h)===n.charCodeAt(h);)h++;if(l-=h,c-=h,0===l)return c;let p=0,f=0;for(;p<l;)r[p]=e.charCodeAt(h+p),t[p]=++p;for(;f<c;)for(p=0,o=n.charCodeAt(h+f),s=f++,i=f;p<l;p++)a=o===r[p]?s:s+1,s=t[p],i=t[p]=s>i?a>i?i+1:a:a>s?s+1:a;return i};e.exports=n,e.exports.default=n},46123(e,t,r){var n=r(57923);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},95479(e,t,r){var n=r(93640),o=r(5485);e.exports=n(function(e,t,r){return e+(r?" ":"")+o(t)})},45620(e,t,r){r.d(t,{v4:()=>c});var n=r(76982),o=r.n(n);let i=new Uint8Array(256),s=i.length,a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,u=[];for(let e=0;e<256;++e)u.push((e+256).toString(16).substr(1));let l=function(e,t=0){let r=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!("string"==typeof r&&a.test(r)))throw TypeError("Stringified UUID is invalid");return r},c=function(e,t,r){let n=(e=e||{}).random||(e.rng||function(){return s>i.length-16&&(o().randomFillSync(i),s=0),i.slice(s,s+=16)})();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return l(n)}},65372(e){e.exports=function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},30409(e){function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},40906(e,t,r){var n=r(69893);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},63315(e,t,r){var n=r(14319).default,o=r(65372);e.exports=function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},69893(e){function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},22268(e,t,r){r.d(t,{R:()=>K});var n=r(85608),o=r(70916),i=r(19074),s=r(25174),a=r(73972),u=r(49952),l=r(55888),c=r(37396),h=r(82307),p=r(53925),f=r(2904),d=r(44214),y=r(9354),v=r(5762),g=r(32710),b=r(73767),m=r(3777),w=r(28907),_=r(21777),x=r(21461),I=r(36054),P=r(45637),E=r(53570),k=r(18709),S=r(75950),O=r(30671),R=new((r(51360)).et?WeakMap:Map);function q(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return R.set(e,(R.get(e)+1)%1e15),r.apply(this,arguments)})}var C=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var r=this.cache=e.cache;R.has(r)||(R.set(r,0),q(r,"evict"),q(r,"modify"),q(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||S.pT.loading;return this.variables&&this.networkStatus!==S.pT.loading&&!(0,l.equal)(this.variables,e.variables)&&(t=S.pT.setVariables),(0,l.equal)(e.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&(0,l.equal)(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(e);return this.updateLastDiff(r,e),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null==(t=this.observableQuery)?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,r,n=this.lastDiff&&this.lastDiff.diff;!(e&&!e.complete&&(null==(t=this.observableQuery)?void 0:t.getLastError()))&&(this.updateLastDiff(e),(0,l.equal)(n&&n.result,e&&e.result)||null==(r=this.observableQuery)||r.scheduleNotify())},e.prototype.setObservableQuery=function(e){e!==this.observableQuery&&(this.observableQuery=e,e&&(e.queryInfo=this))},e.prototype.stop=function(){var e;if(!this.stopped){this.stopped=!0,null==(e=this.observableQuery)||e.resetNotifications(),this.cancel();var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){var e;null==(e=this.cancelWatch)||e.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var o=(0,n.__assign)((0,n.__assign)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,l.equal)(o,this.lastWatch)||(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=o))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===R.get(this.cache)&&(0,l.equal)(t,r.variables)&&(0,l.equal)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var o,i=this,s=new O.ZI,a=(0,b.E)(e.errors)?e.errors.slice(0):[];if(null==(o=this.observableQuery)||o.resetNotifications(),"incremental"in e&&(0,b.E)(e.incremental)){var u=(0,c.bd)(this.getDiff().result,e);e.data=u}else if("hasNext"in e&&e.hasNext){var h=this.getDiff();e.data=s.merge(h.result,e.data)}this.graphQLErrors=a,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(A(e,r.errorPolicy)?this.cache.performTransaction(function(o){if(i.shouldWrite(e,r.variables))o.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),i.lastWrite={result:e,variables:r.variables,dmCount:R.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){e.data=i.lastDiff.diff.result;return}var s=i.getDiffOptions(r.variables),a=o.diff(s);!i.stopped&&(0,l.equal)(i.variables,r.variables)&&i.updateWatch(r.variables),i.updateLastDiff(a,s),a.complete&&(e.data=a.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=S.pT.ready},e.prototype.markError=function(e){var t;return this.networkStatus=S.pT.error,this.lastWrite=void 0,null==(t=this.observableQuery)||t.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function A(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!(0,g.t)(e);return!n&&r&&e.data&&(n=!0),n}var M=r(38678),T=r(44592),D=r(45078),Q=r(555),F=r(28354),L=r(62959),N=Object.prototype.hasOwnProperty,$=Object.create(null),B=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new D.A(Q.v["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new T.Trie(!1),this.noCacheWarningsByQueryId=new Set;var r=new y.c(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var n=e.documentTransform;this.documentTransform=n?r.concat(n).concat(r):r,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches((0,o.newInvariantError)(27))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,n.__awaiter)(this,arguments,void 0,function(e){var t,r,i,s,a,u,l,c=e.mutation,h=e.variables,p=e.optimisticResponse,f=e.updateQueries,d=e.refetchQueries,y=void 0===d?[]:d,b=e.awaitRefetchQueries,m=void 0!==b&&b,w=e.update,_=e.onQueryUpdated,x=e.fetchPolicy,I=void 0===x?(null==(u=this.defaultOptions.mutate)?void 0:u.fetchPolicy)||"network-only":x,P=e.errorPolicy,k=void 0===P?(null==(l=this.defaultOptions.mutate)?void 0:l.errorPolicy)||"none":P,S=e.keepRootFields,O=e.context;return(0,n.__generator)(this,function(e){switch(e.label){case 0:if((0,o.invariant)(c,28),(0,o.invariant)("network-only"===I||"no-cache"===I,29),t=this.generateMutationId(),c=this.cache.transformForLink(this.transform(c)),r=this.getDocumentInfo(c).hasClientExports,h=this.getVariables(c,h),!r)return[3,2];return[4,this.localState.addExportedVariables(c,h,O)];case 1:h=e.sent(),e.label=2;case 2:return i=this.mutationStore&&(this.mutationStore[t]={mutation:c,variables:h,loading:!0,error:null}),s=p&&this.markMutationOptimistic(p,{mutationId:t,document:c,variables:h,fetchPolicy:I,errorPolicy:k,context:O,updateQueries:f,update:w,keepRootFields:S}),this.broadcastQueries(),a=this,[2,new Promise(function(e,r){return(0,v.x)(a.getObservableFromLink(c,(0,n.__assign)((0,n.__assign)({},O),{optimisticResponse:s?p:void 0}),h,{},!1),function(e){if((0,g.t)(e)&&"none"===k)throw new E.ApolloError({graphQLErrors:(0,g.M)(e)});i&&(i.loading=!1,i.error=null);var r=(0,n.__assign)({},e);return"function"==typeof y&&(y=y(r)),"ignore"===k&&(0,g.t)(r)&&delete r.errors,a.markMutationResult({mutationId:t,result:r,document:c,variables:h,fetchPolicy:I,errorPolicy:k,context:O,update:w,updateQueries:f,awaitRefetchQueries:m,refetchQueries:y,removeOptimistic:s?t:void 0,onQueryUpdated:_,keepRootFields:S})}).subscribe({next:function(r){a.broadcastQueries(),"hasNext"in r&&!1!==r.hasNext||e((0,n.__assign)((0,n.__assign)({},r),{data:a.maskOperation({document:c,data:r.data,fetchPolicy:I,id:t})}))},error:function(e){i&&(i.loading=!1,i.error=e),s&&a.cache.removeOptimistic(t),a.broadcastQueries(),r(e instanceof E.ApolloError?e:new E.ApolloError({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var o=e.result,i=[],s="no-cache"===e.fetchPolicy;if(!s&&A(o,e.errorPolicy)){if((0,c.ST)(o)||i.push({result:o.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,c.ST)(o)&&(0,b.E)(o.incremental)){var a=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),u=void 0;a.result&&(u=(0,c.bd)(a.result,o)),void 0!==u&&(o.data=u,i.push({result:u,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var l=e.updateQueries;l&&this.queries.forEach(function(e,n){var s=e.observableQuery,a=s&&s.queryName;if(a&&N.call(l,a)){var u=l[a],c=r.queries.get(n),h=c.document,p=c.variables,f=t.diff({query:h,variables:p,returnPartialData:!0,optimistic:!1}),d=f.result;if(f.complete&&d){var y=u(d,{mutationResult:o,queryName:h&&(0,m.n4)(h)||void 0,queryVariables:p});y&&i.push({result:y,dataId:"ROOT_QUERY",query:h,variables:p})}}})}if(i.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var h=[];if(this.refetchQueries({updateCache:function(t){s||i.forEach(function(e){return t.write(e)});var a=e.update,u=!(0,c.YX)(o)||(0,c.ST)(o)&&!o.hasNext;if(a){if(!s){var l=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});l.complete&&("incremental"in(o=(0,n.__assign)((0,n.__assign)({},o),{data:l.result}))&&delete o.incremental,"hasNext"in o&&delete o.hasNext)}u&&a(t,o,{context:e.context,variables:e.variables})}s||e.keepRootFields||!u||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return h.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(h).then(function(){return o})}return Promise.resolve(o)},e.prototype.markMutationOptimistic=function(e,t){var r=this,i="function"==typeof e?e(t.variables,{IGNORE:$}):e;return i!==$&&(this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,n.__assign)((0,n.__assign)({},t),{result:{data:i}}),e)}catch(e){!1!==globalThis.__DEV__&&o.invariant.error(e)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(this.getOrCreateQuery(e),t,r).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var r={hasClientExports:(0,h.f2)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,h.d8)(["nonreactive"],e),nonReactiveQuery:(0,p.x3)(e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,p.iz)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:(0,m.wY)((0,m.Vu)(e)),asQuery:(0,n.__assign)((0,n.__assign)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,n.__assign)((0,n.__assign)({},e),{operation:"query"}):e})})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,n.__assign)((0,n.__assign)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,n.__assign)((0,n.__assign)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new C(this),o=new k.U({queryManager:this,queryInfo:r,options:e});return o.lastQuery=t,k.U.inactiveOnCreation.getValue()||this.queries.set(o.queryId,r),r.init({document:t,observableQuery:o,variables:o.variables}),o},e.prototype.query=function(e,t){var r=this;void 0===t&&(t=this.generateQueryId()),(0,o.invariant)(e.query,30),(0,o.invariant)("Document"===e.query.kind,31),(0,o.invariant)(!e.returnPartialData,32),(0,o.invariant)(!e.pollInterval,33);var i=this.transform(e.query);return this.fetchQuery(t,(0,n.__assign)((0,n.__assign)({},e),{query:i})).then(function(o){return o&&(0,n.__assign)((0,n.__assign)({},o),{data:r.maskOperation({document:i,data:o.data,fetchPolicy:e.fetchPolicy,id:t})})}).finally(function(){return r.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches((0,o.newInvariantError)(34)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=S.pT.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,i=new Map,s=new Map,a=new Set;return Array.isArray(e)&&e.forEach(function(e){if("string"==typeof e)i.set(e,e),s.set(e,!1);else if((0,w.Kc)(e)){var r=(0,M.y)(t.transform(e));i.set(r,(0,m.n4)(e)),s.set(r,!1)}else(0,_.U)(e)&&e.query&&a.add(e)}),this.queries.forEach(function(t,n){var o=t.observableQuery,i=t.document;if(o){if("all"===e)return void r.set(n,o);var a=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||a&&s.has(a)||i&&s.has((0,M.y)(i)))&&(r.set(n,o),a&&s.set(a,!0),i&&s.set((0,M.y)(i),!0))}}),a.size&&a.forEach(function(e){var i=(0,x.v)("legacyOneTimeQuery"),s=t.getOrCreateQuery(i).init({document:e.query,variables:e.variables}),a=new k.U({queryManager:t,queryInfo:s,options:(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"network-only"})});(0,o.invariant)(a.queryId===i),s.setObservableQuery(a),r.set(i,a)}),!1!==globalThis.__DEV__&&s.size&&s.forEach(function(e,t){if(!e){var r=i.get(t);r?!1!==globalThis.__DEV__&&o.invariant.warn(35,r):!1!==globalThis.__DEV__&&o.invariant.warn(36)}}),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,o){var i=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==i&&"cache-only"!==i)&&r.push(n.refetch()),(t.queries.get(o)||n.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.variables,o=e.fetchPolicy,i=e.errorPolicy,s=void 0===i?"none":i,a=e.context,u=void 0===a?{}:a,l=e.extensions,c=void 0===l?{}:l;r=this.transform(r),n=this.getVariables(r,n);var h=function(e){return t.getObservableFromLink(r,u,e,c).map(function(n){"no-cache"!==o&&(A(n,s)&&t.cache.write({query:r,result:n.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var i=(0,g.t)(n),a=(0,E.graphQLResultHasProtocolErrors)(n);if(i||a){var u={};if(i&&(u.graphQLErrors=n.errors),a&&(u.protocolErrors=n.extensions[E.PROTOCOL_ERRORS_SYMBOL]),"none"===s||a)throw new E.ApolloError(u)}return"ignore"===s&&delete n.errors,n})};if(this.getDocumentInfo(r).hasClientExports){var p=this.localState.addExportedVariables(r,n,u).then(h);return new I.c(function(e){var t=null;return p.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return h(n)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){var t;this.fetchCancelFns.delete(e),this.queries.has(e)&&(null==(t=this.queries.get(e))||t.stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){var t;return null==(t=e.observableQuery)?void 0:t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,o,i){var a,u,l=this;void 0===i&&(i=null!=(a=null==t?void 0:t.queryDeduplication)?a:this.queryDeduplication);var c=this.getDocumentInfo(e),h=c.serverQuery,p=c.clientQuery;if(h){var f=this.inFlightLinkObservables,y=this.link,g={query:h,variables:r,operationName:(0,m.n4)(h)||void 0,context:this.prepareContext((0,n.__assign)((0,n.__assign)({},t),{forceFetch:!i})),extensions:o};if(t=g.context,i){var b=(0,M.y)(h),w=(0,d.M)(r),_=f.lookup(b,w);if(!(u=_.observable)){var x=new P.E([(0,s.g)(y,g)]);u=_.observable=x,x.beforeNext(function e(t,r){"next"===t&&"hasNext"in r&&r.hasNext?x.beforeNext(e):f.remove(b,w)})}}else u=new P.E([(0,s.g)(y,g)])}else u=new P.E([I.c.of({data:{}})]),t=this.prepareContext(t);return p&&(u=(0,v.x)(u,function(e){return l.localState.runResolvers({document:p,remoteResult:e,context:t,variables:r})})),u},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(r.query);return(0,v.x)(this.getObservableFromLink(o,r.context,r.variables),function(i){var s=(0,g.M)(i),a=s.length>0,u=r.errorPolicy;if(n>=e.lastRequestId){if(a&&"none"===u)throw e.markError(new E.ApolloError({graphQLErrors:s}));e.markResult(i,o,r,t),e.markReady()}var l={data:i.data,loading:!1,networkStatus:S.pT.ready};return a&&"none"===u&&(l.data=void 0),a&&"ignore"!==u&&(l.errors=s,l.networkStatus=S.pT.error),l},function(t){var r=(0,E.isApolloError)(t)?t:new E.ApolloError({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var o,i,s=this;void 0===r&&(r=S.pT.loading),void 0===n&&(n=t.query);var a=this.getVariables(n,t.variables),u=this.defaultOptions.watchQuery,l=t.fetchPolicy,c=void 0===l?u&&u.fetchPolicy||"cache-first":l,h=t.errorPolicy,p=void 0===h?u&&u.errorPolicy||"none":h,f=t.returnPartialData,d=t.notifyOnNetworkStatusChange,y=t.context,v=Object.assign({},t,{query:n,variables:a,fetchPolicy:c,errorPolicy:p,returnPartialData:void 0!==f&&f,notifyOnNetworkStatusChange:void 0!==d&&d,context:void 0===y?{}:y}),g=function(n){v.variables=n;var o=s.fetchQueryByPolicy(e,v,r);return"standby"!==v.fetchPolicy&&o.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy("after-fetch",t),o},b=function(){return s.fetchCancelFns.delete(e.queryId)};if(this.fetchCancelFns.set(e.queryId,function(e){b(),setTimeout(function(){return o.cancel(e)})}),this.getDocumentInfo(v.query).hasClientExports)o=new P.E(this.localState.addExportedVariables(v.query,v.variables,v.context).then(g).then(function(e){return e.sources})),i=!0;else{var m=g(v.variables);i=m.fromLink,o=new P.E(m.sources)}return o.promise.then(b,b),{concast:o,fromLink:i}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,o=e.optimistic,i=void 0!==o&&o,s=e.removeOptimistic,a=void 0===s?i?(0,x.v)("refetchQueries"):void 0:s,u=e.onQueryUpdated,l=new Map;n&&this.getObservableQueries(n).forEach(function(e,r){l.set(r,{oq:e,lastDiff:(t.queries.get(r)||e.queryInfo).getDiff()})});var c=new Map;return r&&this.cache.batch({update:r,optimistic:i&&a||!1,removeOptimistic:a,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof C&&e.watcher.observableQuery;if(n){if(u){l.delete(n.queryId);var o=u(n,t,r);return!0===o&&(o=n.refetch()),!1!==o&&c.set(n,o),o}null!==u&&l.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),l.size&&l.forEach(function(e,r){var n,o=e.oq,i=e.lastDiff,s=e.diff;u&&(s||(s=t.cache.diff(o.queryInfo.getDiffOptions())),n=u(o,s,i)),u&&!0!==n||(n=o.refetch()),!1!==n&&c.set(o,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),a&&this.cache.removeOptimistic(a),c},e.prototype.maskOperation=function(e){var t,r,n,i=e.document,s=e.data;if(!1!==globalThis.__DEV__){var a=e.fetchPolicy,u=e.id,l=null==(t=(0,m.Vu)(i))?void 0:t.operation,c=(null!=(r=null==l?void 0:l[0])?r:"o")+u;!this.dataMasking||"no-cache"!==a||(0,f.s6)(i)||this.noCacheWarningsByQueryId.has(c)||(this.noCacheWarningsByQueryId.add(c),!1!==globalThis.__DEV__&&o.invariant.warn(37,null!=(n=(0,m.n4)(i))?n:"Unnamed ".concat(null!=l?l:"operation")))}return this.dataMasking?(0,F.m)(s,i,this.cache):s},e.prototype.maskFragment=function(e){var t=e.data,r=e.fragment,n=e.fragmentName;return this.dataMasking?(0,L.z)(t,r,this.cache,n):t},e.prototype.fetchQueryByPolicy=function(e,t,r){var o=this,i=t.query,s=t.variables,a=t.fetchPolicy,u=t.refetchWritePolicy,c=t.errorPolicy,h=t.returnPartialData,p=t.context,f=t.notifyOnNetworkStatusChange,d=e.networkStatus;e.init({document:i,variables:s,networkStatus:r});var y=function(){return e.getDiff()},v=function(t,r){void 0===r&&(r=e.networkStatus||S.pT.loading);var a=t.result;!1===globalThis.__DEV__||h||(0,l.equal)(a,{})||(0,k.y)(t.missing);var u=function(e){return I.c.of((0,n.__assign)({data:e,loading:(0,S.bi)(r),networkStatus:r},t.complete?null:{partial:!0}))};return a&&o.getDocumentInfo(i).hasForcedResolvers?o.localState.runResolvers({document:i,remoteResult:{data:a},context:p,variables:s,onlyRunForcedResolvers:!0}).then(function(e){return u(e.data||void 0)}):"none"===c&&r===S.pT.refetch&&Array.isArray(t.missing)?u(void 0):u(a)},g="no-cache"===a?0:r===S.pT.refetch&&"merge"!==u?1:2,b=function(){return o.getResultsFromLink(e,g,{query:i,variables:s,context:p,fetchPolicy:a,errorPolicy:c})},m=f&&"number"==typeof d&&d!==r&&(0,S.bi)(r);switch(a){default:case"cache-first":var w=y();if(w.complete)return{fromLink:!1,sources:[v(w,e.markReady())]};if(h||m)return{fromLink:!0,sources:[v(w),b()]};return{fromLink:!0,sources:[b()]};case"cache-and-network":var w=y();if(w.complete||h||m)return{fromLink:!0,sources:[v(w),b()]};return{fromLink:!0,sources:[b()]};case"cache-only":return{fromLink:!1,sources:[v(y(),e.markReady())]};case"network-only":if(m)return{fromLink:!0,sources:[v(y()),b()]};return{fromLink:!0,sources:[b()]};case"no-cache":if(m)return{fromLink:!0,sources:[v(e.getDiff()),b()]};return{fromLink:!0,sources:[b()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new C(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,n.__assign)((0,n.__assign)((0,n.__assign)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}(),V=r(90424),j=r(3420),W=r(777),z=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,o=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),o&&this.setFragmentMatcher(o)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,O.D9)(t.resolvers,e)}):this.resolvers=(0,O.D9)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return(0,n.__awaiter)(this,arguments,void 0,function(e){var t=e.document,r=e.remoteResult,o=e.context,i=e.variables,s=e.onlyRunForcedResolvers,a=void 0!==s&&s;return(0,n.__generator)(this,function(e){return t?[2,this.resolveDocument(t,r.data,o,i,this.fragmentMatcher,a).then(function(e){return(0,n.__assign)((0,n.__assign)({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,h.d8)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,p.er)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,n.__assign)((0,n.__assign)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,n.__awaiter)(this,arguments,void 0,function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,n.__generator)(this,function(o){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,n.__assign)((0,n.__assign)({},t),e.exportedVariables)})]:[2,(0,n.__assign)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,V.YR)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return V.sP}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,p.zc)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,n.__awaiter)(this,arguments,void 0,function(e,t,r,o,i,s){var a,u,l,c,h,p,d,y,v,g;return void 0===r&&(r={}),void 0===o&&(o={}),void 0===i&&(i=function(){return!0}),void 0===s&&(s=!1),(0,n.__generator)(this,function(b){return a=(0,m.Vn)(e),u=(0,m.zK)(e),l=(0,f.JG)(u),c=this.collectSelectionsToResolve(a,l),p=(h=a.operation)?h.charAt(0).toUpperCase()+h.slice(1):"Query",d=this,y=d.cache,v=d.client,g={fragmentMap:l,context:(0,n.__assign)((0,n.__assign)({},r),{cache:y,client:v}),variables:o,fragmentMatcher:i,defaultOperationType:p,exportedVariables:{},selectionsToResolve:c,onlyRunForcedResolvers:s},[2,this.resolveSelectionSet(a.selectionSet,!1,t,g).then(function(e){return{result:e,exportedVariables:g.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,i){return(0,n.__awaiter)(this,void 0,void 0,function(){var s,a,u,l,c,p=this;return(0,n.__generator)(this,function(f){return s=i.fragmentMap,a=i.context,u=i.variables,l=[r],c=function(e){return(0,n.__awaiter)(p,void 0,void 0,function(){var c,p;return(0,n.__generator)(this,function(n){return(t||i.selectionsToResolve.has(e))&&(0,h.MS)(e,u)?(0,w.dt)(e)?[2,this.resolveField(e,t,r,i).then(function(t){var r;void 0!==t&&l.push(((r={})[(0,w.ue)(e)]=t,r))})]:((0,w.kd)(e)?c=e:(c=s[e.name.value],(0,o.invariant)(c,19,e.name.value)),c&&c.typeCondition&&(p=c.typeCondition.name.value,i.fragmentMatcher(r,p,a)))?[2,this.resolveSelectionSet(c.selectionSet,t,r,i).then(function(e){l.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(c)).then(function(){return(0,O.IM)(l)})]})})},e.prototype.resolveField=function(e,t,r,o){return(0,n.__awaiter)(this,void 0,void 0,function(){var i,s,a,u,l,c,h,p,f,d=this;return(0,n.__generator)(this,function(n){return r?(i=o.variables,u=(s=e.name.value)!==(a=(0,w.ue)(e)),c=Promise.resolve(l=r[a]||r[s]),(!o.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(h=r.__typename||o.defaultOperationType,(p=this.resolvers&&this.resolvers[h])&&(f=p[u?s:a])&&(c=Promise.resolve(W.bl.withValue(this.cache,f,[r,(0,w.MB)(e,i),o.context,{field:e,fragmentMap:o.fragmentMap}])))),[2,c.then(function(r){if(void 0===r&&(r=l),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(o.exportedVariables[e.value.value]=r)})}),!e.selectionSet||null==r)return r;var n,i,s=null!=(i=null==(n=e.directives)?void 0:n.some(function(e){return"client"===e.name.value}))&&i;return Array.isArray(r)?d.resolveSubSelectedArray(e,t||s,r,o):e.selectionSet?d.resolveSelectionSet(e.selectionSet,t||s,r,o):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var o=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?o.resolveSubSelectedArray(e,t,r,n):e.selectionSet?o.resolveSelectionSet(e.selectionSet,t,r,n):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(i){if(!n.has(i)){var s=new Set;n.set(i,s),(0,V.YR)(i,{Directive:function(e,t,n,o,i){"client"===e.name.value&&i.forEach(function(e){r(e)&&(0,j.VK)(e)&&s.add(e)})},FragmentSpread:function(n,i,a,u,l){var c=t[n.name.value];(0,o.invariant)(c,20,n.name.value);var h=e(c);h.size>0&&(l.forEach(function(e){r(e)&&(0,j.VK)(e)&&s.add(e)}),s.add(n),h.forEach(function(e){s.add(e)}))}})}return n.get(i)}(e)},e}(),U=r(31507),G=r(44114),H=!1,K=function(){function e(e){var t,r=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,o.newInvariantError)(16);var s=e.uri,l=e.credentials,c=e.headers,h=e.cache,p=e.documentTransform,f=e.ssrMode,d=void 0!==f&&f,y=e.ssrForceFetchDelay,v=void 0===y?0:y,g=e.connectToDevTools,b=e.queryDeduplication,m=void 0===b||b,w=e.defaultOptions,_=e.defaultContext,x=e.assumeImmutableResults,I=void 0===x?h.assumeImmutableResults:x,P=e.resolvers,E=e.typeDefs,k=e.fragmentMatcher,S=e.name,O=e.version,R=e.devtools,q=e.dataMasking,C=e.link;C||(C=s?new u.P({uri:s,credentials:l,headers:c}):i.C.empty()),this.link=C,this.cache=h,this.disableNetworkFetches=d||v>0,this.queryDeduplication=m,this.defaultOptions=w||Object.create(null),this.typeDefs=E,this.devtoolsConfig=(0,n.__assign)((0,n.__assign)({},R),{enabled:null!=(t=null==R?void 0:R.enabled)?t:g}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),v&&setTimeout(function(){return r.disableNetworkFetches=!1},v),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=a.r,this.localState=new z({cache:h,client:this,resolvers:P,fragmentMatcher:k}),this.queryManager=new B({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:_,documentTransform:p,queryDeduplication:m,ssrMode:d,dataMasking:!!q,clientAwareness:{name:S,version:O},localState:this.localState,assumeImmutableResults:I,onBroadcast:this.devtoolsConfig.enabled?function(){r.devToolsHookCb&&r.devToolsHookCb({action:{},state:{queries:r.queryManager.getQueryStore(),mutations:r.queryManager.mutationStore||{}},dataWithOptimisticResults:r.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("u">typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!H&&!1!==globalThis.__DEV__&&(H=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,r=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?r="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(r="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),r&&!1!==globalThis.__DEV__&&o.invariant.log("Download the Apollo DevTools for a better development experience: %s",r)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,U.l)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,U.l)(this.defaultOptions.query,e)),(0,o.invariant)("cache-and-network"!==e.fetchPolicy,17),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,U.l)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,r=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(o){return(0,n.__assign)((0,n.__assign)({},o),{data:t.queryManager.maskOperation({document:e.query,data:o.data,fetchPolicy:e.fetchPolicy,id:r})})})},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){var t;return this.cache.watchFragment((0,n.__assign)((0,n.__assign)({},e),((t={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,t)))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return(0,s.g)(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach(function(e,t){r.push(t),n.push(e)});var i=Promise.all(n);return i.queries=r,i.results=n,i.catch(function(e){!1!==globalThis.__DEV__&&o.invariant.debug(18,e)}),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(K.prototype.getMemoryInternals=G.ep)},18709(e,t,r){r.d(t,{U:()=>m,y:()=>_});var n=r(85608),o=r(70916),i=r(55888),s=r(75950),a=r(36054),u=r(3777),l=r(50492),c=r(20906),h=r(30234),p=r(87613),f=r(35892),d=r(53570),y=r(55427),v=r(60837),g=Object.assign,b=Object.hasOwnProperty,m=function(e){function t(r){var o=r.queryManager,i=r.queryInfo,s=r.options,a=this,l=t.inactiveOnCreation.getValue();(a=e.call(this,function(e){l&&(o.queries.set(a.queryId,i),l=!1);try{var t=e._subscription._observer;t&&!t.error&&(t.error=w)}catch(e){}var r=!a.observers.size;a.observers.add(e);var n=a.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(a.maskResult(n.result)),r&&a.reobserve().catch(function(){}),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}})||this).observers=new Set,a.subscriptions=new Set,a.dirty=!1,a.queryInfo=i,a.queryManager=o,a.waitForOwnResult=x(s.fetchPolicy),a.isTornDown=!1,a.subscribeToMore=a.subscribeToMore.bind(a),a.maskResult=a.maskResult.bind(a);var c=o.defaultOptions.watchQuery,h=(void 0===c?{}:c).fetchPolicy,p=void 0===h?"cache-first":h,f=s.fetchPolicy,d=void 0===f?p:f,y=s.initialFetchPolicy,v=void 0===y?"standby"===d?p:d:y;a.options=(0,n.__assign)((0,n.__assign)({},s),{initialFetchPolicy:v,fetchPolicy:d}),a.queryId=i.queryId||o.generateQueryId();var g=(0,u.Vu)(a.query);return a.queryName=g&&g.name&&g.name.value,a}return(0,n.__extends)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){o.unsubscribe()},0)},error:r},o=e.subscribe(n)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentFullResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||s.pT.ready,o=(0,n.__assign)((0,n.__assign)({},t),{loading:(0,s.bi)(r),networkStatus:r}),a=this.options.fetchPolicy,u=void 0===a?"cache-first":a;if(x(u)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var l=this.queryInfo.getDiff();(l.complete||this.options.returnPartialData)&&(o.data=l.result),(0,i.equal)(o.data,{})&&(o.data=void 0),l.complete?(delete o.partial,l.complete&&o.networkStatus===s.pT.loading&&("cache-first"===u||"cache-only"===u)&&(o.networkStatus=s.pT.ready,o.loading=!1)):o.partial=!0,o.networkStatus===s.pT.ready&&(o.error||o.errors)&&(o.networkStatus=s.pT.error),!1===globalThis.__DEV__||l.complete||this.options.partialRefetch||o.loading||o.data||o.error||_(l.missing)}return e&&this.updateLastResult(o),o},t.prototype.getCurrentResult=function(e){return void 0===e&&(e=!0),this.maskResult(this.getCurrentFullResult(e))},t.prototype.isDifferentFromLastResult=function(e,t){if(!this.last)return!0;var r=this.queryManager.getDocumentInfo(this.query),n=this.queryManager.dataMasking,o=n?r.nonReactiveQuery:this.query;return(n||r.hasNonreactiveDirective?!(0,y.a)(o,this.last.result,e,this.variables):!(0,i.equal)(this.last.result,e))||t&&!(0,i.equal)(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||(0,i.equal)(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0};if("no-cache"===this.options.fetchPolicy?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",!1!==globalThis.__DEV__&&e&&b.call(e,"variables")){var a=(0,u.AT)(this.query),l=a.variableDefinitions;l&&l.some(function(e){return"variables"===e.variable.name.value})||!1===globalThis.__DEV__||o.invariant.warn(21,e,(null==(t=a.name)?void 0:t.value)||a)}return e&&!(0,i.equal)(this.options.variables,e)&&(r.variables=this.options.variables=(0,n.__assign)((0,n.__assign)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,s.pT.refetch)},t.prototype.fetchMore=function(e){var t=this,r=(0,n.__assign)((0,n.__assign)({},e.query?e:(0,n.__assign)((0,n.__assign)((0,n.__assign)((0,n.__assign)({},this.options),{query:this.options.query}),e),{variables:(0,n.__assign)((0,n.__assign)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});r.query=this.transformDocument(r.query);var i=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):r.query;var a=this.queryInfo,u=a.networkStatus;a.networkStatus=s.pT.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var l=new Set,c=null==e?void 0:e.updateQuery,h="no-cache"!==this.options.fetchPolicy;return h||(0,o.invariant)(c,22),this.queryManager.fetchQuery(i,r,s.pT.fetchMore).then(function(o){if(t.queryManager.removeQuery(i),a.networkStatus===s.pT.fetchMore&&(a.networkStatus=u),h)t.queryManager.cache.batch({update:function(n){var i=e.updateQuery;i?n.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return i(e,{fetchMoreResult:o.data,variables:r.variables})}):n.writeQuery({query:r.query,variables:r.variables,data:o.data})},onWatchUpdated:function(e){l.add(e.query)}});else{var p=t.getLast("result"),f=c(p.data,{fetchMoreResult:o.data,variables:r.variables});t.reportResult((0,n.__assign)((0,n.__assign)({},p),{networkStatus:u,loading:(0,s.bi)(u),data:f}),t.variables)}return t.maskResult(o)}).finally(function(){h&&!l.has(t.query)&&t.reobserveCacheFirst()})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var o=e.updateQuery;o&&t.updateQuery(function(e,t){return o(e,(0,n.__assign)({subscriptionData:r},t))})},error:function(t){e.onError?e.onError(t):!1!==globalThis.__DEV__&&o.invariant.error(23,t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=(0,l.o)(this.options,e||{});g(this.options,t)},t.prototype.setVariables=function(e){return(0,i.equal)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},s.pT.setVariables):Promise.resolve()},t.prototype.updateQuery=function(e){var t=this.queryManager,r=t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),n=r.result,o=r.complete,i=e(n,{variables:this.variables,complete:!!o,previousData:n});i&&(t.cache.writeQuery({query:this.options.query,data:i,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,o=t.initialFetchPolicy,i=void 0===o?n:o;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:i}):"variables-changed"===e?t.fetchPolicy=i:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,r){var n=this.queryManager.getOrCreateQuery(this.queryId);return n.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(n,e,t,r)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(!r||!this.hasObservers()){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==r){(0,o.invariant)(r,24),(t||(this.pollingInfo={})).interval=r;var n=function(){var t,r;e.pollingInfo&&((0,s.bi)(e.queryInfo.networkStatus)||(null==(r=(t=e.options).skipPollAttempt)?void 0:r.call(t))?i():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},s.pT.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};i()}}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var r=this.getLastError();return r&&this.last&&!(0,i.equal)(t,this.last.variables)&&(r=void 0),this.last=(0,n.__assign)({result:this.queryManager.assumeImmutableResults?e:(0,c.m)(e),variables:t},r?{error:r}:null)},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var o=t===s.pT.refetch||t===s.pT.fetchMore||t===s.pT.poll,a=this.options.variables,u=this.options.fetchPolicy,c=(0,l.o)(this.options,e||{}),h=o?c:g(this.options,c),p=this.transformDocument(h.query);this.lastQuery=p,!o&&(this.updatePolling(),e&&e.variables&&!(0,i.equal)(e.variables,a)&&"standby"!==h.fetchPolicy&&(h.fetchPolicy===u||"function"==typeof h.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",h),void 0===t&&(t=s.pT.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=x(h.fetchPolicy));var f=function(){r.concast===b&&(r.waitForOwnResult=!1)},y=h.variables&&(0,n.__assign)({},h.variables),v=this.fetch(h,t,p),b=v.concast,m=v.fromLink,w={next:function(e){(0,i.equal)(r.variables,y)&&(f(),r.reportResult(e,y))},error:function(e){(0,i.equal)(r.variables,y)&&((0,d.isApolloError)(e)||(e=new d.ApolloError({networkError:e})),f(),r.reportError(e,y))}};return o||!m&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=b,this.observer=w),b.addObserver(w),b},t.prototype.reobserve=function(e,t){return(0,h.X)(this.reobserveAsConcast(e,t).promise.then(this.maskResult))},t.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.last;this.resetLastResults();var n=this.subscribe.apply(this,e);return this.last=r,n},t.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this.getLastError(),n=this.isDifferentFromLastResult(e,t);(r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(r||n)&&(0,p.w)(this.observers,"next",this.maskResult(e))},t.prototype.reportError=function(e,t){var r=(0,n.__assign)((0,n.__assign)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:s.pT.error,loading:!1});this.updateLastResult(r,t),(0,p.w)(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t.prototype.maskResult=function(e){return e&&"data"in e?(0,n.__assign)((0,n.__assign)({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},t.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},t.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},t.prototype.scheduleNotify=function(){var e=this;!this.dirty&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return e.notify()},0)))},t.prototype.notify=function(){this.cancelNotifyTimeout(),this.dirty&&("cache-only"==this.options.fetchPolicy||"cache-and-network"==this.options.fetchPolicy||!(0,s.bi)(this.queryInfo.networkStatus))&&(this.queryInfo.getDiff().fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()),this.dirty=!1},t.prototype.reobserveCacheFirst=function(){var e=this.options,t=e.fetchPolicy,r=e.nextFetchPolicy;return"cache-and-network"===t||"network-only"===t?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,n){return(this.nextFetchPolicy=r,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(e,n):t}}):this.reobserve()},t.inactiveOnCreation=new v.Slot,t}(a.c);function w(e){!1!==globalThis.__DEV__&&o.invariant.error(25,e.message,e.stack)}function _(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&o.invariant.debug(26,e)}function x(e){return"network-only"===e||"no-cache"===e||"standby"===e}(0,f.r)(m)},2714(e,t,r){r.r(t),r.d(t,{ApolloCache:()=>l.k,ApolloClient:()=>n.R,ApolloError:()=>a.ApolloError,ApolloLink:()=>d.ApolloLink,Cache:()=>u.l,DocumentTransform:()=>w.c,HttpLink:()=>y.HttpLink,InMemoryCache:()=>c.D,MissingFieldError:()=>h.Z,NetworkStatus:()=>s.pT,Observable:()=>_.c,ObservableQuery:()=>i.U,checkFetcher:()=>y.checkFetcher,concat:()=>d.concat,createHttpLink:()=>y.createHttpLink,createSignalIfSupported:()=>y.createSignalIfSupported,defaultDataIdFromObject:()=>p.or,defaultPrinter:()=>y.defaultPrinter,disableExperimentalFragmentVariables:()=>P.disableExperimentalFragmentVariables,disableFragmentWarnings:()=>P.disableFragmentWarnings,empty:()=>d.empty,enableExperimentalFragmentVariables:()=>P.enableExperimentalFragmentVariables,execute:()=>d.execute,fallbackHttpConfig:()=>y.fallbackHttpConfig,from:()=>d.from,fromError:()=>v.N,fromPromise:()=>b.S,gql:()=>P.gql,isApolloError:()=>a.isApolloError,isNetworkRequestSettled:()=>s.D2,isReference:()=>x.A_,makeReference:()=>x.WU,makeVar:()=>f.UT,mergeOptions:()=>o.l,parseAndCheckHttpResponse:()=>y.parseAndCheckHttpResponse,resetCaches:()=>P.resetCaches,rewriteURIForGET:()=>y.rewriteURIForGET,selectHttpOptionsAndBody:()=>y.selectHttpOptionsAndBody,selectHttpOptionsAndBodyInternal:()=>y.selectHttpOptionsAndBodyInternal,selectURI:()=>y.selectURI,serializeFetchParameter:()=>y.serializeFetchParameter,setLogVerbosity:()=>I.setVerbosity,split:()=>d.split,throwServerError:()=>m.A,toPromise:()=>g.h});var n=r(22268),o=r(31507),i=r(18709),s=r(75950),a=r(53570),u=r(84673),l=r(42495),c=r(7068),h=r(65702),p=r(35207),f=r(777),d=r(4232),y=r(28876),v=r(93161),g=r(60441),b=r(22594),m=r(3848),w=r(9354),_=r(36054),x=r(28907),I=r(19371),P=r(94370);(0,I.setVerbosity)(!1!==globalThis.__DEV__?"log":"silent")},75950(e,t,r){var n,o;function i(e){return!!e&&e<7}function s(e){return 7===e||8===e}r.d(t,{D2:()=>s,bi:()=>i,pT:()=>n}),(o=n||(n={}))[o.loading=1]="loading",o[o.setVariables=2]="setVariables",o[o.fetchMore=3]="fetchMore",o[o.refetch=4]="refetch",o[o.poll=6]="poll",o[o.ready=7]="ready",o[o.error=8]="error"},74114(e,t,r){r.d(t,{z:()=>m});var n=r(85608),o=r(19074),i=r(70916),s=r(82307),a=r(53925),u=r(36054),l=r(93161),c=r(74559),h=r(67195),p=r(33068),f=r(63647),d=r(90117),y=function(){function e(e){var t=e.batchDebounce,r=e.batchInterval,n=e.batchMax,o=e.batchHandler,i=e.batchKey;this.batchesByKey=new Map,this.scheduledBatchTimerByKey=new Map,this.batchDebounce=t,this.batchInterval=r,this.batchMax=n||0,this.batchHandler=o,this.batchKey=i||function(){return""}}return e.prototype.enqueueRequest=function(e){var t=this,r=(0,n.__assign)((0,n.__assign)({},e),{next:[],error:[],complete:[],subscribers:new Set}),o=this.batchKey(e.operation);return r.observable||(r.observable=new u.c(function(e){var n=t.batchesByKey.get(o);n||t.batchesByKey.set(o,n=new Set);var i=0===n.size,s=0===r.subscribers.size;return r.subscribers.add(e),s&&n.add(r),e.next&&r.next.push(e.next.bind(e)),e.error&&r.error.push(e.error.bind(e)),e.complete&&r.complete.push(e.complete.bind(e)),(i||t.batchDebounce)&&t.scheduleQueueConsumption(o),n.size===t.batchMax&&t.consumeQueue(o),function(){var i;r.subscribers.delete(e)&&r.subscribers.size<1&&n.delete(r)&&n.size<1&&(t.consumeQueue(o),null==(i=n.subscription)||i.unsubscribe())}})),r.observable},e.prototype.consumeQueue=function(e){void 0===e&&(e="");var t=this.batchesByKey.get(e);if(this.batchesByKey.delete(e),t&&t.size){var r=[],n=[],o=[],i=[],s=[],a=[];t.forEach(function(e){r.push(e.operation),n.push(e.forward),o.push(e.observable),i.push(e.next),s.push(e.error),a.push(e.complete)});var l=this.batchHandler(r,n)||u.c.of(),c=function(e){s.forEach(function(t){t&&t.forEach(function(t){return t(e)})})};return t.subscription=l.subscribe({next:function(e){if(Array.isArray(e)||(e=[e]),i.length!==e.length){var t=Error("server returned results with length ".concat(e.length,", expected length of ").concat(i.length));return t.result=e,c(t)}e.forEach(function(e,t){i[t]&&i[t].forEach(function(t){return t(e)})})},error:c,complete:function(){a.forEach(function(e){e&&e.forEach(function(e){return e()})})}}),o}},e.prototype.scheduleQueueConsumption=function(e){var t=this;clearTimeout(this.scheduledBatchTimerByKey.get(e)),this.scheduledBatchTimerByKey.set(e,setTimeout(function(){t.consumeQueue(e),t.scheduledBatchTimerByKey.delete(e)},this.batchInterval))},e}(),v=function(e){function t(t){var r=e.call(this)||this,n=t||{},o=n.batchDebounce,i=n.batchInterval,s=n.batchMax,a=n.batchHandler,u=n.batchKey;return r.batcher=new y({batchDebounce:o,batchInterval:void 0===i?10:i,batchMax:void 0===s?0:s,batchHandler:void 0===a?function(){return null}:a,batchKey:void 0===u?function(){return""}:u}),t.batchHandler.length<=1&&(r.request=function(e){return r.batcher.enqueueRequest({operation:e})}),r}return(0,n.__extends)(t,e),t.prototype.request=function(e,t){return this.batcher.enqueueRequest({operation:e,forward:t})},t}(o.C),g=r(70783),b=(0,i.maybe)(function(){return fetch}),m=function(e){function t(t){var r=e.call(this)||this,o=t||{},y=o.uri,m=void 0===y?"/graphql":y,w=o.fetch,_=o.print,x=void 0===_?c.i1:_,I=o.includeExtensions,P=o.preserveHeaderCase,E=o.batchInterval,k=o.batchDebounce,S=o.batchMax,O=o.batchKey,R=o.includeUnusedVariables,q=void 0!==R&&R,C=(0,n.__rest)(o,["uri","fetch","print","includeExtensions","preserveHeaderCase","batchInterval","batchDebounce","batchMax","batchKey","includeUnusedVariables"]);!1!==globalThis.__DEV__&&(0,h.S)(w||b);var A={http:{includeExtensions:I,preserveHeaderCase:P},options:C.fetchOptions,credentials:C.credentials,headers:C.headers};return r.batchDebounce=k,r.batchInterval=E||10,r.batchMax=S||10,O=O||function(e){var t=e.getContext(),r={http:t.http,options:t.fetchOptions,credentials:t.credentials,headers:t.headers};return(0,p.z)(e,m)+JSON.stringify(r)},r.batcher=new v({batchDebounce:r.batchDebounce,batchInterval:r.batchInterval,batchMax:r.batchMax,batchKey:O,batchHandler:function(e){var t,r=(0,p.z)(e[0],m),o=e[0].getContext(),h={};if(o.clientAwareness){var y=o.clientAwareness,v=y.name,_=y.version;v&&(h["apollographql-client-name"]=v),_&&(h["apollographql-client-version"]=_)}var I={http:o.http,options:o.fetchOptions,credentials:o.credentials,headers:(0,n.__assign)((0,n.__assign)({},h),o.headers)},P=e.map(function(e){var t=e.query;return(0,s.d8)(["client"],t)?(0,a.er)(t):t});if(P.some(function(e){return!e}))return(0,l.N)(Error("BatchHttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or enable the `transformOptions.removeClientFields` option."));var E=e.map(function(e,t){var r=(0,c.HY)((0,n.__assign)((0,n.__assign)({},e),{query:P[t]}),x,c.R4,A,I);return r.body.variables&&!q&&(r.body.variables=(0,g.X)(r.body.variables,e.query)),r}),k=E.map(function(e){return e.body}),S=E[0].options;if("GET"===S.method)return(0,l.N)(Error("apollo-link-batch-http does not support GET requests"));try{S.body=(0,f.Y)(k,"Payload")}catch(e){return(0,l.N)(e)}return!S.signal&&"u">typeof AbortController&&(S.signal=(t=new AbortController).signal),new u.c(function(n){return(w||(0,i.maybe)(function(){return fetch})||b)(r,S).then(function(t){return e.forEach(function(e){return e.setContext({response:t})}),t}).then((0,d.OQ)(e)).then(function(e){return t=void 0,n.next(e),n.complete(),e}).catch(function(e){t=void 0,e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e)}),function(){t&&t.abort()}})}}),r}return(0,n.__extends)(t,e),t.prototype.request=function(e){return this.batcher.request(e)},t}(o.C)},26197(e,t,r){r.d(t,{o:()=>s});var n=r(85608),o=r(19074),i=r(36054);function s(e){return new o.C(function(t,r){var o=(0,n.__rest)(t,[]);return new i.c(function(n){var i,s=!1;return Promise.resolve(o).then(function(r){return e(r,t.getContext())}).then(t.setContext).then(function(){s||(i=r(t).subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}))}).catch(n.error.bind(n)),function(){s=!0,i&&i.unsubscribe()}})})}},79556(e,t,r){r.d(t,{S:()=>a});var n=r(85608),o=r(53570),i=r(36054),s=r(19074);function a(e){return new s.C(function(t,r){return new i.c(function(n){var i,s,a;try{i=r(t).subscribe({next:function(i){if(i.errors?a=e({graphQLErrors:i.errors,response:i,operation:t,forward:r}):(0,o.graphQLResultHasProtocolErrors)(i)&&(a=e({protocolErrors:i.extensions[o.PROTOCOL_ERRORS_SYMBOL],response:i,operation:t,forward:r})),a){s=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.next(i)},error:function(o){if(a=e({operation:t,networkError:o,graphQLErrors:o&&o.result&&o.result.errors||void 0,forward:r})){s=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.error(o)},complete:function(){a||n.complete.bind(n)()}})}catch(o){e({networkError:o,operation:t,forward:r}),n.error(o)}return function(){i&&i.unsubscribe(),s&&i.unsubscribe()}})})}var u=s.C;function l(e){var t=u.call(this)||this;return t.link=a(e),t}(0,n.__extends)(l,u),l.prototype.request=function(e,t){return this.link.request(e,t)}},78342(e,t,r){r.d(t,{z:()=>u});var n=r(85608),o=r(19074),i=r(36054),s=r(53570),a=function(){function e(e,t,r,o,i){var s=this;this.observer=e,this.operation=t,this.forward=r,this.delayFor=o,this.retryIf=i,this.retryCount=0,this.currentSubscription=null,this.onError=function(e){return(0,n.__awaiter)(s,void 0,void 0,function(){return(0,n.__generator)(this,function(t){switch(t.label){case 0:return this.retryCount+=1,[4,this.retryIf(this.retryCount,this.operation,e)];case 1:if(t.sent())return this.scheduleRetry(this.delayFor(this.retryCount,this.operation,e)),[2];return this.observer.error(e),[2]}})})},this.try()}return e.prototype.cancel=function(){this.currentSubscription&&this.currentSubscription.unsubscribe(),clearTimeout(this.timerId),this.timerId=void 0,this.currentSubscription=null},e.prototype.try=function(){var e=this;this.currentSubscription=this.forward(this.operation).subscribe({next:function(t){var r;if((0,s.graphQLResultHasProtocolErrors)(t)){e.onError(new s.ApolloError({protocolErrors:t.extensions[s.PROTOCOL_ERRORS_SYMBOL]})),null==(r=e.currentSubscription)||r.unsubscribe();return}e.observer.next(t)},error:this.onError,complete:this.observer.complete.bind(this.observer)})},e.prototype.scheduleRetry=function(e){var t=this;if(this.timerId)throw Error("RetryLink BUG! Encountered overlapping retries");this.timerId=setTimeout(function(){t.timerId=void 0,t.try()},e)},e}(),u=function(e){function t(t){var r,n,o,i,s,a,u,l,c,h,p,f,d=e.call(this)||this,y=t||{},v=y.attempts,g=y.delay;return d.delayFor="function"==typeof g?g:(o=void 0===(n=(r=g||{}).initial)?300:n,s=void 0===(i=r.jitter)||i,u=void 0===(a=r.max)?1/0:a,l=s?o:o/2,function(e){var t=Math.min(u,l*Math.pow(2,e));return s&&(t=Math.random()*t),t}),d.retryIf="function"==typeof v?v:(h=(c=v||{}).retryIf,f=void 0===(p=c.max)?5:p,function(e,t,r){return!(e>=f)&&(h?h(r,t):!!r)}),d}return(0,n.__extends)(t,e),t.prototype.request=function(e,t){var r=this;return new i.c(function(n){var o=new a(n,e,t,r.delayFor,r.retryIf);return function(){o.cancel()}})},t}(o.C)},42028(e,t,r){r.d(t,{c:()=>l});var n=r(85608),o=r(38678),i=r(19074),s=r(21777),a=r(36054),u=r(53570),l=function(e){function t(t){var r=e.call(this)||this;return r.client=t,r}return(0,n.__extends)(t,e),t.prototype.request=function(e){var t=this;return new a.c(function(r){return t.client.subscribe((0,n.__assign)((0,n.__assign)({},e),{query:(0,o.y)(e.query)}),{next:r.next.bind(r),complete:r.complete.bind(r),error:function(e){if(e instanceof Error)return r.error(e);var t,n=(0,s.U)(e)&&"code"in e&&"reason"in e;return n||(0,s.U)(e)&&(null==(t=e.target)?void 0:t.readyState)===WebSocket.CLOSED?r.error(Error("Socket closed".concat(n?" with event ".concat(e.code):"").concat(n?" ".concat(e.reason):""))):r.error(new u.ApolloError({graphQLErrors:Array.isArray(e)?e:[e]}))}})})},t}(i.C)},99815(e,t,r){function n(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function o(e){return"object"===n(e)}function i(e,t){return e.length<124?e:t}function s(e){if(!o(e))throw Error(`Message is expected to be an object, but got ${n(e)}`);if(!e.type)throw Error("Message is missing the 'type' property");if("string"!=typeof e.type)throw Error(`Message is expects the 'type' property to be a string, but got ${n(e.type)}`);switch(e.type){case h.ConnectionInit:case h.ConnectionAck:case h.Ping:case h.Pong:if(null!=e.payload&&!o(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break;case h.Subscribe:if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${n(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!o(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${n(e.payload)}`);if("string"!=typeof e.payload.query)throw Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${n(e.payload.query)}`);if(null!=e.payload.variables&&!o(e.payload.variables))throw Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${n(e.payload.variables)}`);if(null!=e.payload.operationName&&"string"!==n(e.payload.operationName))throw Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${n(e.payload.operationName)}`);if(null!=e.payload.extensions&&!o(e.payload.extensions))throw Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${n(e.payload.extensions)}`);break;case h.Next:if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${n(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!o(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${n(e.payload)}`);break;case h.Error:var t;if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${n(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!(Array.isArray(t=e.payload)&&t.length>0&&t.every(e=>"message"in e)))throw Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break;case h.Complete:if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${n(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);break;default:throw Error(`Invalid message 'type' property "${e.type}"`)}return e}function a(e,t){return s(e),JSON.stringify(e,t)}r.d(t,{UU:()=>d}),(u=c||(c={}))[u.InternalServerError=4500]="InternalServerError",u[u.InternalClientError=4005]="InternalClientError",u[u.BadRequest=4400]="BadRequest",u[u.BadResponse=4004]="BadResponse",u[u.Unauthorized=4401]="Unauthorized",u[u.Forbidden=4403]="Forbidden",u[u.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",u[u.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",u[u.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",u[u.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",u[u.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",(l=h||(h={})).ConnectionInit="connection_init",l.ConnectionAck="connection_ack",l.Ping="ping",l.Pong="pong",l.Subscribe="subscribe",l.Next="next",l.Error="error",l.Complete="complete";var u,l,c,h,p=function(e){return this instanceof p?(this.v=e,this):new p(e)},f=function(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",function(e){return function(t){return Promise.resolve(t).then(e,l)}}),n[Symbol.asyncIterator]=function(){return this},n;function s(e,t){o[e]&&(n[e]=function(t){return new Promise(function(r,n){i.push([e,t,r,n])>1||a(e,t)})},t&&(n[e]=t(n[e])))}function a(e,t){try{var r;(r=o[e](t)).value instanceof p?Promise.resolve(r.value.v).then(u,l):c(i[0][2],r)}catch(e){c(i[0][3],e)}}function u(e){a("next",e)}function l(e){a("throw",e)}function c(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}};function d(e){let t,r,n,o,{url:u,connectionParams:l,lazy:d=!0,onNonLazyError:g=console.error,lazyCloseTimeout:b=0,keepAlive:m=0,disablePong:w,connectionAckWaitTimeout:_=0,retryAttempts:x=5,retryWait:I=async function(e){let t=1e3;for(let r=0;r<e;r++)t*=2;await new Promise(e=>setTimeout(e,t+Math.floor(2700*Math.random()+300)))},shouldRetry:P=v,isFatalConnectionProblem:E,on:k,webSocketImpl:S,generateID:O=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},jsonMessageReplacer:R,jsonMessageReviver:q}=e;if(S){var C;if(!("function"==typeof(C=S)&&"constructor"in C&&"CLOSED"in C&&"CLOSING"in C&&"CONNECTING"in C&&"OPEN"in C))throw Error("Invalid WebSocket implementation provided");t=S}else"u">typeof WebSocket?t=WebSocket:"u">typeof global?t=global.WebSocket||global.MozWebSocket:"u">typeof window&&(t=window.WebSocket||window.MozWebSocket);if(!t)throw Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");let A=t,M=(r={},n={on:(e,t)=>(r[e]=t,()=>{delete r[e]}),emit(e){var t;"id"in e&&(null==(t=r[e.id])||t.call(r,e))}},o={connecting:(null==k?void 0:k.connecting)?[k.connecting]:[],opened:(null==k?void 0:k.opened)?[k.opened]:[],connected:(null==k?void 0:k.connected)?[k.connected]:[],ping:(null==k?void 0:k.ping)?[k.ping]:[],pong:(null==k?void 0:k.pong)?[k.pong]:[],message:(null==k?void 0:k.message)?[n.emit,k.message]:[n.emit],closed:(null==k?void 0:k.closed)?[k.closed]:[],error:(null==k?void 0:k.error)?[k.error]:[]},{onMessage:n.on,on(e,t){let r=o[e];return r.push(t),()=>{r.splice(r.indexOf(t),1)}},emit(e,...t){for(let r of[...o[e]])r(...t)}});function T(e){let t=[M.on("error",r=>{t.forEach(e=>e()),e(r)}),M.on("closed",r=>{t.forEach(e=>e()),e(r)})]}let D,Q=0,F,L=!1,N=0,$=!1;async function B(){clearTimeout(F);let[e,t]=await (null!=D?D:D=new Promise((e,t)=>(async()=>{let r,n;if(L){if(await I(N),!Q)return D=void 0,t({code:1e3,reason:"All Subscriptions Gone"});N++}M.emit("connecting",L);let o=new A("function"==typeof u?await u():u,"graphql-transport-ws");function p(){isFinite(m)&&m>0&&(clearTimeout(n),n=setTimeout(()=>{o.readyState===A.OPEN&&(o.send(a({type:h.Ping})),M.emit("ping",!1,void 0))},m))}T(e=>{D=void 0,clearTimeout(r),clearTimeout(n),t(e),e instanceof y&&(o.close(4499,"Terminated"),o.onerror=null,o.onclose=null)}),o.onerror=e=>M.emit("error",e),o.onclose=e=>M.emit("closed",e),o.onopen=async()=>{try{M.emit("opened",o);let e="function"==typeof l?await l():l;if(o.readyState!==A.OPEN)return;o.send(a(e?{type:h.ConnectionInit,payload:e}:{type:h.ConnectionInit},R)),isFinite(_)&&_>0&&(r=setTimeout(()=>{o.close(c.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},_)),p()}catch(e){M.emit("error",e),o.close(c.InternalClientError,i(e instanceof Error?e.message:Error(e).message,"Internal client error"))}};let f=!1;o.onmessage=({data:t})=>{try{let n=s("string"==typeof t?JSON.parse(t,q):t);if(M.emit("message",n),"ping"===n.type||"pong"===n.type){M.emit(n.type,!0,n.payload),"pong"===n.type?p():w||(o.send(a(n.payload?{type:h.Pong,payload:n.payload}:{type:h.Pong})),M.emit("pong",!1,n.payload));return}if(f)return;if(n.type!==h.ConnectionAck)throw Error(`First message cannot be of type ${n.type}`);clearTimeout(r),f=!0,M.emit("connected",o,n.payload,L),L=!1,N=0,e([o,new Promise((e,t)=>T(t))])}catch(e){o.onmessage=null,M.emit("error",e),o.close(c.BadResponse,i(e instanceof Error?e.message:Error(e).message,"Bad response"))}}})()));e.readyState===A.CLOSING&&await t;let r=()=>{},n=new Promise(e=>r=e);return[e,r,Promise.race([n.then(()=>{Q||(isFinite(b)&&b>0?F=setTimeout(()=>{e.readyState===A.OPEN&&e.close(1e3,"Normal Closure")},b):e.close(1e3,"Normal Closure"))}),t])]}function V(e){var t;if(v(e)&&(![1e3,1001,1006,1005,1012,1013,1014].includes(t=e.code)&&t>=1e3&&t<=1999||[c.InternalServerError,c.InternalClientError,c.BadRequest,c.BadResponse,c.Unauthorized,c.SubprotocolNotAcceptable,c.SubscriberAlreadyExists,c.TooManyInitialisationRequests].includes(e.code)))throw e;if($)return!1;if(v(e)&&1e3===e.code)return Q>0;if(!x||N>=x||!P(e)||(null==E?void 0:E(e)))throw e;return L=!0}function j(e,t){let r=O(e),n=!1,o=!1,i=()=>{Q--,n=!0};return(async()=>{for(Q++;;)try{let[s,u,l]=await B();if(n)return u();let c=M.onMessage(r,e=>{switch(e.type){case h.Next:return void t.next(e.payload);case h.Error:o=!0,n=!0,t.error(e.payload),i();return;case h.Complete:n=!0,i();return}});s.send(a({id:r,type:h.Subscribe,payload:e},R)),i=()=>{n||s.readyState!==A.OPEN||s.send(a({id:r,type:h.Complete},R)),Q--,n=!0,u()},await l.finally(c);return}catch(e){if(!V(e))return}})().then(()=>{o||t.complete()}).catch(e=>{t.error(e)}),()=>{n||i()}}return d||(async()=>{for(Q++;;)try{let[,,e]=await B();await e}catch(e){try{if(!V(e))return}catch(e){return null==g?void 0:g(e)}}})(),{on:M.on,subscribe:j,iterate(e){let t=[],r={done:!1,error:null,resolve:()=>{}},n=j(e,{next(e){t.push(e),r.resolve()},error(e){r.done=!0,r.error=e,r.resolve()},complete(){r.done=!0,r.resolve()}}),o=function(){return f(this,arguments,function*(){for(;;){for(t.length||(yield p(new Promise(e=>r.resolve=e)));t.length;)yield yield p(t.shift());if(r.error)throw r.error;if(r.done)return yield p(void 0)}})}();return o.throw=async e=>(r.done||(r.done=!0,r.error=e,r.resolve()),{done:!0,value:void 0}),o.return=async()=>(n(),{done:!0,value:void 0}),o},async dispose(){if($=!0,D){let[e]=await D;e.close(1e3,"Normal Closure")}},terminate(){D&&M.emit("closed",new y)}}}class y extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function v(e){return o(e)&&"code"in e&&"reason"in e}},96423(e,t,r){r.d(t,{A:()=>P});let n=(e,t="Internal Logic Error")=>{if(!e)throw Error("function"==typeof t?t():t)};class o{constructor(e,t){this.value=e,this.excluded=t,this.isSimpleStarRec="**"===e,this.isRegexStarRec=e.startsWith("**(")&&e.endsWith(")"),this.isStarRec=this.isSimpleStarRec||this.isRegexStarRec}}class i{constructor(e,t=null){this.left=null===t,this.link=null===t?new i(e,this):t,this.type=e,this.isStarRec="**"===this.type,this.node=null,this.pointer=null}setPointer(e){this.pointer=e,this.link.pointer=e}setNode(e){this.node=e,this.link.node=e}}let s=(e,t,r={})=>{throw Error(Object.entries(r).reduce((e,[t,r])=>`${e}, ${t} ${r}`,`${e}: ${t}`))},a=e=>1===e.length?e[0]:e,u=/^[?*+\d]+$/,l=(e,t,r={})=>{throw Error(Object.entries(r).reduce((e,[t,r])=>`${e}, ${t} ${r}`,`${e}: ${t}`))},c=(e,t)=>{let r,c,h,p,f,d,y;if(""===e)return new o("",!1);if(Array.isArray(e))return 0===e.length?new o("",!1):e.map((r,n)=>"number"==typeof r?(t.useArraySelector||l("Forbidden Array Selector",JSON.stringify(e),{idx:n}),new o(`[${r}]`,!1)):new o(r.replaceAll("\\","\\\\"),!1));let v=((r=[]).or=!0,c=!1,h=!1,p=0,f=[],d=e=>{!0===r.excluded&&(n(!1===h),h=!0),f.push(r),(r=[]).or=e},y=()=>{let e=f.pop(),t=a(r);!0===e.or&&!0===t.or?e.push(...t):e.push(t),r=e},d(!1),{setInArray:(t,r)=>{c===t&&s(c?"Bad Array Start":"Bad Array Terminator",e,{char:r}),c=t},finishElement:(t,n,a,{finReq:l=!1,group:f=!1}={})=>{if(p===t)a.includes(e[t-1]||null)||s(n,e,{char:t}),p+=1;else{l&&s(n,e,{char:t});let a=e.slice(p,t);f&&!["**","++"].includes(a)&&s("Bad Group Start",e,{char:t}),c&&!(u.test(a)||a.startsWith("(")&&a.endsWith(")"))&&s("Bad Array Selector",e,{selector:a}),f?r.push(new i(a)):(r.push(new o(c?`[${a}]`:a,h)),h=!1),p=t+1}},startExclusion:t=>{!1!==h&&s("Redundant Exclusion",e,{char:t}),h=!0},startGroup:()=>{d(!0),h&&(r.excluded=!0,h=!1),d(!1)},newGroupElement:()=>{y(),d(!1)},finishGroup:t=>{f.length<2&&s("Unexpected Group Terminator",e,{char:t}),y(),y(),n(Array.isArray(r));let o=r[r.length-2];o instanceof i&&!0===o.left&&r.push(o.link)},finalizeResult:()=>(y(),n(!1===h),0!==f.length&&s("Non Terminated Group",e),c&&s("Non Terminated Array",e),a(r))}),g=e.length,b=!1,m=0;for(let r=0;r<g;r+=1){let n=e[r];if(!1===b){if(0===m)switch(n){case".":v.finishElement(r,"Bad Path Separator",["]","}"]);break;case"[":t.useArraySelector||l("Forbidden Array Selector",e,{char:r}),v.finishElement(r,"Bad Array Start",[null,"!","{",",","}","]"]),v.setInArray(!0,r);break;case"]":v.finishElement(r,"Bad Array Terminator",["}"]),v.setInArray(!1,r);break;case"{":v.finishElement(r,"Bad Group Start",[null,"!",".","[","{",","],{group:!0}),v.startGroup();break;case",":v.finishElement(r,"Bad Group Separator",["]","}"]),v.newGroupElement();break;case"}":v.finishElement(r,"Bad Group Terminator",["]","}"]),v.finishGroup(r);break;case"!":v.finishElement(r,"Bad Exclusion",[null,".",",","{","["],{finReq:!0}),v.startExclusion(r)}switch(n){case"(":m+=1;break;case")":0===m&&l("Unexpected Parentheses",e,{char:r}),m-=1}}b="\\"===n&&!b}return!1!==b&&l("Dangling Escape",e,{char:g-1}),0!==m&&l("Unterminated Parentheses",e),v.finishElement(g,"Bad Terminator",["]","}"]),v.finalizeResult()},h=/[?!,.*+[\](){}\\]/g,p=/^\^?[^-/\\^$*+?.()|[\]{}]*\$?$/g,f=e=>{if(p.test(e)){let t=e.startsWith("^"),r=e.endsWith("$");if(t&&r){let t=e.slice(1,-1);return{test:e=>String(e)===t}}if(t){let t=e.slice(1);return{test:e=>String(e).startsWith(t)}}if(r){let t=e.slice(0,-1);return{test:e=>String(e).endsWith(t)}}return{test:t=>String(t).includes(e)}}try{return new RegExp(e)}catch(t){throw Error(`Invalid Regex: "${e}"`)}},d=e=>e.reduce((e,t)=>`${e}${"number"==typeof t?`[${t}]`:`${e?".":""}${t.replace(h,"\\$&")}`}`,""),y=e=>Array.isArray(e)?d(e):e,v=["-","/","\\","^","$","*","+","?",".","(",")","|","[","]","{","}"],g=e=>{let t="",r=!1,n=!0;for(let o=0;o<e.length;o+=1){let i=e[o];r||"\\"!==i?r||"*"!==i?r||"+"!==i?r||"?"!==i?(v.includes(i)&&(n=!1,t+="\\"),t+=i,r=!1):(n=!1,t+="."):(n=!1,t+=".+"):(n=!1,t+=".*"):r=!0}return n?{test:e=>String(e)===t}:".+"===t?{test:e=>""!==e}:RegExp(`^${t}$`)};class b{constructor(e,t){if(t.nodes.push(this),this.value=e,this.ctx=t,this.order=t.counter,this.children=[],this.match=!1,this.matches=!1,this.needles=[],this.leafNeedles=[],this.leafNeedlesExclude=[],this.leafNeedlesMatch=[],this.isArrayTarget=e.startsWith("[")&&e.endsWith("]"),this.isSimpleStarRec="**"===e,this.isSimplePlusRec="++"===e,this.isSimpleRec=this.isSimpleStarRec||this.isSimplePlusRec,this.isRegexStarRec=e.startsWith("**(")&&e.endsWith(")"),this.isRegexPlusRec=e.startsWith("++(")&&e.endsWith(")"),this.isStarRec=this.isSimpleStarRec||this.isRegexStarRec,this.isPlusRec=this.isSimplePlusRec||this.isRegexPlusRec,this.isRec=this.isStarRec||this.isPlusRec,this.isAnyArrayTarget="[*]"===e,this.isAnyObjTarget="*"===e,this.isSimpleRec||this.isAnyObjTarget||this.isAnyArrayTarget)this.regex=null;else{let{regex:r}=t;e in r||(r[e]=(e.startsWith("**(")||e.startsWith("++("))&&e.endsWith(")")?f(e.slice(3,-1)):e.startsWith("[(")&&e.endsWith(")]")?f(e.slice(2,-2)):e.startsWith("(")&&e.endsWith(")")?f(e.slice(1,-1)):e.startsWith("[")&&e.endsWith("]")?g(e.slice(1,-1)):g(e)),this.regex=r[e]}}recMatch(e){return!!this.isRec&&(!!this.isSimpleRec||this.regex.test(e))}typeMatch(e,t){return!!this.isSimpleRec||(this.isAnyArrayTarget?t:this.isAnyObjTarget?!t:(t===this.isArrayTarget||!!this.isRec)&&this.regex.test(e))}add(e){this.children.push(e)}get(e){return this.children.find(({value:t})=>t===e)}markMatches(){this.matches=!0}addNeedle(e){this.needles.includes(e)||this.needles.push(e)}setRoots(e){this.roots=e}finish(e,t,r){this.addNeedle(e),this.leafNeedles.includes(e)||this.leafNeedles.push(e);let n=t?this.leafNeedlesExclude:this.leafNeedlesMatch;n.includes(e)||n.push(e),this.match=!t,this.matches=this.match,this.index=r}}let m=(e,t,r,n)=>{((e,t,r,{onAdd:n,onFin:o})=>{let i=[[[e,null]]],s=!1;((e,t)=>{let r=[e],n=[null],o=[],i=[],s=0,a=!0;for(;-1!==s;){let e=r[s];Array.isArray(e)?!0!==e.or?(r.splice(s,1,...e),n.splice(s,1,...Array(e.length).fill(n[s])),null!==n[s]&&(i[n[s]]+=e.length-1)):(void 0===o[s]?(o[s]=0,i[s]=0):0!==i[s]&&(r.splice(s+1,i[s]),n.splice(s+1,i[s]),i[s]=0),o[s]<e.length?(r.splice(s+1,0,e[o[s]]),n.splice(s+1,0,s),o[s]=(o[s]||0)+1,i[s]+=1,a=!0,s+=1):(o[s]=0,s-=1)):!0===a?(t("ADD",e),s===r.length-1?(t("FIN",e),a=!1):s+=1):(t("RM",e),s-=1)}})(r,(r,a)=>{if("RM"===r)!0===a.excluded&&(s=!1),i.length-=2;else if("ADD"===r){if(!0===a.excluded){if(s)throw Error(`Redundant Exclusion: "${t}"`);s=!0}let e=[],r=i[i.length-2];i[i.length-1].forEach(([t,o])=>n(t,o,a,r,r=>e.push([r,t]))),i.push(a,e)}else i[i.length-1].filter(([t])=>t!==e).forEach(([e,t])=>o(e,t,a,s))})})(e,t,r,{onAdd:(e,r,o,s,a)=>{if(e.addNeedle(t),o instanceof i)return void(!0===o.left?(o.isStarRec&&o.setPointer(e),o.setNode(new b("*",n)),n.links.push(e,o.node),a(o.node)):(o.target="target"in s?s.target:r.get(s.value),n.links.push(o.target,o.node),null!==o.pointer&&(a(o.pointer),o.setPointer(null)),a(e)));let u=o.isStarRec&&o.value===s?.value;if(u&&n.strict)throw Error(`Redundant Recursion: "${t}"`);if(u)o.target=e;else{let t=e.get(o.value);void 0===t&&(t=new b(o.value,n),e.add(t)),a(t)}o.isStarRec&&a(e)},onFin:(e,r,o,i)=>{if(n.strict&&o.isSimpleStarRec){let e=r.children.filter(({value:e})=>!["","**"].includes(e));if(0!==e.length)throw Error(`Needle Target Invalidated: "${e[0].needles[0]}" by "${t}"`)}if(n.strict&&0!==e.leafNeedles.length){let r=y(e.leafNeedles[0]),n=y(t);throw Error(`Redundant Needle Target: "${r}" vs "${n}"`)}e.finish(t,i,n.counter),n.counter+=1}})},w=(e,t)=>{let r=[];for(let n=0,o=e.length;n<o;n+=1){let o=e[n][t];for(let e=0,t=o.length;e<t;e+=1){let t=o[e];r.includes(t)||r.push(t)}}return r},_=e=>{let t=-1,r=!1,n=e.length;for(;n--;){let{index:o,match:i}=e[n];o>t&&(t=o,r=i)}return r},x=(e,t)=>t?d(e):[...e],I=(e,t,r)=>{n(r.includes(typeof e[t]),()=>`Option "${t}" not one of [${r.join(", ")}]`)},P=(e,t={})=>{let r;if(n(Array.isArray(e),'Argument "needles" expected to be Array'),n(t instanceof Object&&!Array.isArray(t),'Argument "opts" expected to be Object'),0===e.length)return(e,t)=>void 0===t?[]:t;let o=(n(12===Object.keys(r={filterFn:void 0,breakFn:void 0,beforeFn:void 0,afterFn:void 0,compareFn:void 0,reverse:!0,orderByNeedles:!1,abort:!1,rtn:void 0,joined:!1,useArraySelector:!0,strict:!0,...t}).length,"Unexpected Option provided"),I(r,"filterFn",["function","undefined"]),I(r,"breakFn",["function","undefined"]),I(r,"beforeFn",["function","undefined"]),I(r,"afterFn",["function","undefined"]),I(r,"compareFn",["function","undefined"]),I(r,"reverse",["boolean"]),I(r,"orderByNeedles",["boolean"]),I(r,"abort",["boolean"]),n("function"==typeof r.rtn&&1===r.rtn.length||[void 0,"context","key","value","entry","property","gproperty","parent","gparent","parents","isMatch","matchedBy","excludedBy","traversedBy","isCircular","isLeaf","depth","bool","count","sum"].includes(r.rtn)||Array.isArray(r.rtn)&&r.rtn.every(e=>["key","value","entry","property","gproperty","parent","gparent","parents","isMatch","matchedBy","excludedBy","traversedBy","isCircular","isLeaf","depth"].includes(e)),'Option "rtn" is malformed'),I(r,"joined",["boolean"]),I(r,"useArraySelector",["boolean"]),I(r,"strict",["boolean"]),r),i=((e,t)=>{t.counter=0,t.links=[],t.nodes=[],t.regex=Object.create(null);let r=new b("*",t);for(let n=0;n<e.length;n+=1){let o=e[n],i=[c(o,t)];m(r,o,i,t)}return((e,t)=>{let{links:r}=t;for(;0!==r.length;){let e=r.pop(),t=r.pop(),{children:n}=t;t.children=[...e.children.filter(e=>!n.includes(e)),...n]}!1===t.useArraySelector&&e.setRoots(e.children.filter(({isStarRec:e,value:t})=>e||""===t));let{nodes:n}=t;for(;0!==n.length;){let e=n.pop(),{children:t}=e;t.reverse(),t.some(({matches:e})=>e)&&e.markMatches()}})(r,t),r})(e,o);return(e,t)=>((e,t,r)=>{let n,o,i,s,a={haystack:e,context:r.context};if(void 0!==r.beforeFn){let e=r.beforeFn(a);void 0!==e&&(a.haystack=e)}let u=[!1,[t],null,0],l=[],c=[],h=a.haystack,p={getKey:(e=r.joined)=>x(l,e),get key(){return p.getKey()},getValue:()=>h,get value(){return p.getValue()},getEntry:(e=r.joined)=>[x(l,e),h],get entry(){return p.getEntry()},getIsMatch:()=>s,get isMatch(){return p.getIsMatch()},getMatchedBy:()=>w(i,"leafNeedlesMatch"),get matchedBy(){return p.getMatchedBy()},getExcludedBy:()=>w(i,"leafNeedlesExclude"),get excludedBy(){return p.getExcludedBy()},getTraversedBy:()=>w(i,"needles"),get traversedBy(){return p.getTraversedBy()},getGproperty:()=>l[l.length-2],get gproperty(){return p.getGproperty()},getProperty:()=>l[l.length-1],get property(){return p.getProperty()},getGparent:()=>c[c.length-2],get gparent(){return p.getGparent()},getParent:()=>c[c.length-1],get parent(){return p.getParent()},getParents:()=>[...c].reverse(),get parents(){return p.getParents()},getIsCircular:()=>c.includes(h),get isCircular(){return p.getIsCircular()},getIsLeaf:()=>!(h instanceof Object),get isLeaf(){return p.getIsLeaf()},getDepth:()=>l.length,get depth(){return p.getDepth()},get result(){return p.getResult()},context:a.context},f=((e,t)=>{if("context"===t.rtn)return{onMatch:()=>{},get:()=>e.context};if("bool"===t.rtn){let e=!1;return{onMatch:()=>{e=!0},get:()=>e}}if("count"===t.rtn){let e=0;return{onMatch:()=>{e+=1},get:()=>e}}if("sum"===t.rtn){let e=0;return{onMatch:({value:t})=>{e+=t},get:()=>e}}let r=[];return{onMatch:"function"==typeof t.rtn?()=>r.push(t.rtn(e)):Array.isArray(t.rtn)?()=>r.push(t.rtn.map(t=>e[t])):()=>r.push(e[t.rtn]),get:()=>t.abort?r[0]:r}})(p,r);if(p.getResult=()=>f.get(),r.useArraySelector||!Array.isArray(a.haystack)){let e=t.get("");void 0!==e&&u[1].push(e)}do{n=u.pop(),o=u.pop(),i=u.pop(),s=u.pop();let e=l.length-n;for(let t=0;t<e;t+=1)c.pop(),l.pop();if(-1===e?(c.push(h),l.push(o),h=h[o]):null!==o?(l[l.length-1]=o,h=c[c.length-1][o]):h=a.haystack,s){(void 0===r.filterFn||!1!==r.filterFn(p))&&(f.onMatch(p),r.abort&&(u.length=0));continue}if(!i.some(({matches:e})=>e))continue;let d=!1===r.useArraySelector&&Array.isArray(h);if(!d&&_(i)&&(u.push(!0,i,o,n),s=!0),(void 0===r.breakFn||!0!==r.breakFn(p))&&h instanceof Object){let e=Array.isArray(h),o=e?h.map((e,t)=>t).filter(()=>!0):Object.keys(h);!e&&r.compareFn&&o.sort(r.compareFn(p)),r.reverse||o.reverse();for(let s=0,a=o.length;s<a;s+=1){let a=o[s],l=[];if(d)l.push(...i),0===n&&l.push(...t.roots);else for(let t=0,r=i.length;t!==r;t+=1){let r=i[t];r.recMatch(a)&&l.push(r);let{children:n}=r,o=n.length;for(;o--;){let t=n[o];t.typeMatch(a,e)&&l.push(t)}}if(r.orderByNeedles){l.index=Buffer.from(l.map(({order:e})=>e).sort());let e=u.length-3,t=e-4*s;for(;e!==t&&1===Buffer.compare(l.index,u[e].index);)e-=4;u.splice(e+3,0,!1,l,a,n+1)}else u.push(!1,l,a,n+1)}}}while(0!==u.length);if(a.result=f.get(),void 0!==r.afterFn){let e=r.afterFn(a);void 0!==e&&(a.result=e)}return a.result})(e,i,{context:t,...o,rtn:o.rtn||(void 0===t?"key":"context")})}},79861(e,t,r){r.d(t,{fJ:()=>v});var n=r(77030),o=r(37067),i=r(44708),s=r(68875),a=r(40610);let u=[],l=[],c=({address:e,host:t,family:r},o)=>{if(0!==n.isIP(e))try{let n=s.parse(e).range();if(o.allowIPAddressList.length>0&&o.allowIPAddressList.includes(e))return;if(!o.allowMetaIPAddress&&"unspecified"===n)return Error(`DNS lookup ${e}(family:${r}, host:${t}) is not allowed. Because, It is meta IP address.`);if(!o.allowPrivateIPAddress&&"unicast"!==n)return Error(`DNS lookup ${e}(family:${r}, host:${t}) is not allowed. Because, It is private IP address.`);if(o.denyIPAddressList.length>0&&o.denyIPAddressList.includes(e))return Error(`DNS lookup ${e}(family:${r}, host:${t}) is not allowed. Because It is defined in denyIPAddressList.`)}catch(e){return e}},h=(e,t)=>(r,n,o)=>{let i,s=e.lookup||a.lookup;i=n.all?(e,n)=>{if(e)return void o(e);for(let{address:e,family:i}of n){let n=c({address:e,family:i,host:r},t);if(n)return void o(n)}o(null,n)}:(e,n,i)=>{if(e)return void o(e);let s=c({address:n,family:i,host:r},t);s?o(s):o(null,n,i)},s(r,n,i)};class p extends o.Agent{requestFilterOptions;constructor(e){super(e),this.requestFilterOptions={allowPrivateIPAddress:!!e&&void 0!==e.allowPrivateIPAddress&&e.allowPrivateIPAddress,allowMetaIPAddress:!!e&&void 0!==e.allowMetaIPAddress&&e.allowMetaIPAddress,allowIPAddressList:e&&e.allowIPAddressList?e.allowIPAddressList:u,denyIPAddressList:e&&e.denyIPAddressList?e.denyIPAddressList:l}}createConnection(e,t){let{host:r}=e;if(void 0!==r){let e=c({address:r},this.requestFilterOptions);if(e)throw e}return super.createConnection({...e,lookup:h(e,this.requestFilterOptions)},t)}}class f extends i.Agent{requestFilterOptions;constructor(e){super(e),this.requestFilterOptions={allowPrivateIPAddress:!!e&&void 0!==e.allowPrivateIPAddress&&e.allowPrivateIPAddress,allowMetaIPAddress:!!e&&void 0!==e.allowMetaIPAddress&&e.allowMetaIPAddress,allowIPAddressList:e&&e.allowIPAddressList?e.allowIPAddressList:[],denyIPAddressList:e&&e.denyIPAddressList?e.denyIPAddressList:[]}}createConnection(e,t){let{host:r}=e;if(void 0!==r){let e=c({address:r},this.requestFilterOptions);if(e)throw e}return super.createConnection({...e,lookup:h(e,this.requestFilterOptions)},t)}}let d=new p,y=new f,v=(e,t)=>t?e.startsWith("https")?new f(t):new p(t):e.startsWith("https")?y:d}};