@fugood/bricks-cli 2.25.0-beta.62 → 2.25.0-beta.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/1010.js +1 -0
- package/lib/1178.js +1 -0
- package/lib/1215.js +1 -0
- package/lib/1708.js +9 -0
- package/lib/1759.js +1 -0
- package/lib/1936.js +1 -0
- package/lib/2151.js +1 -0
- package/lib/{209.js → 2209.js} +3 -3
- package/lib/2247.js +1 -0
- package/lib/2486.js +1 -0
- package/lib/2557.js +1 -0
- package/lib/{223.js → 3223.js} +1 -1
- package/lib/3332.js +13 -0
- package/lib/3690.js +1 -0
- package/lib/3774.js +44 -0
- package/lib/3976.js +14 -0
- package/lib/4305.js +1 -0
- package/lib/4456.js +3 -0
- package/lib/{192.js → 4479.js} +4 -4
- package/lib/4530.js +22 -0
- package/lib/4642.js +9 -0
- package/lib/4685.js +1202 -0
- package/lib/5212.js +1 -0
- package/lib/{658.js → 5658.js} +1 -1
- package/lib/5785.js +1 -0
- package/lib/6194.js +3 -0
- package/lib/6370.js +1 -0
- package/lib/6645.js +1 -0
- package/lib/6818.js +1 -0
- package/lib/7111.js +2 -0
- package/lib/7456.js +1 -0
- package/lib/7511.js +1 -0
- package/lib/7574.js +1 -0
- package/lib/7648.js +1 -0
- package/lib/8026.js +1 -0
- package/lib/{117.js → 8117.js} +2 -2
- package/lib/8166.js +1 -0
- package/lib/853.js +1 -0
- package/lib/915.js +4 -4
- package/lib/9320.js +3 -0
- package/lib/{387.js → 9387.js} +1 -1
- package/lib/9405.js +1 -0
- package/lib/9430.js +1 -0
- package/lib/{583.js → 9583.js} +1 -1
- package/lib/9663.js +1 -0
- package/lib/{866.js → 9866.js} +1 -1
- package/lib/9940.js +19 -0
- package/lib/index.js +17 -17
- package/lib/simulator-host-bridge.cjs +1 -0
- package/lib/simulator-main.mjs +3 -3
- package/package.json +5 -5
- package/lib/10.js +0 -1
- package/lib/111.js +0 -2
- package/lib/166.js +0 -1
- package/lib/178.js +0 -1
- package/lib/212.js +0 -1
- package/lib/215.js +0 -1
- package/lib/247.js +0 -1
- package/lib/274.js +0 -16
- package/lib/305.js +0 -1
- package/lib/306.js +0 -1
- package/lib/320.js +0 -3
- package/lib/332.js +0 -13
- package/lib/358.js +0 -1
- package/lib/370.js +0 -1
- package/lib/405.js +0 -1
- package/lib/430.js +0 -1
- package/lib/456.js +0 -3
- package/lib/479.js +0 -1231
- package/lib/486.js +0 -1
- package/lib/511.js +0 -1
- package/lib/557.js +0 -1
- package/lib/574.js +0 -1
- package/lib/645.js +0 -1
- package/lib/648.js +0 -1
- package/lib/663.js +0 -1
- package/lib/690.js +0 -1
- package/lib/708.js +0 -9
- package/lib/75.js +0 -1
- package/lib/759.js +0 -1
- package/lib/785.js +0 -1
- package/lib/818.js +0 -1
- package/lib/917.js +0 -1
- package/lib/936.js +0 -1
- package/lib/940.js +0 -19
package/lib/305.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const __rspack_esm_id=305;export const __rspack_esm_ids=[305];export const __webpack_modules__={7944(e,o,r){r.r(o),r.d(o,{DEVTOOLS_TOKEN_REFRESH_AHEAD_MS:()=>a,getOrIssueDevtoolsToken:()=>k,issueDevtoolsAccessTokenCore:()=>c});var s,t,n=r(99436),i=r(47988),a=6048e5,c=(s=n(function*({client:e,ttlSeconds:o}={}){if(!e?.issueDevtoolsAccessToken)throw Error("A BRICKS workspace client is required to issue a DevTools access token.");return e.issueDevtoolsAccessToken({ttlSeconds:o})}),function(){return s.apply(this,arguments)}),k=(t=n(function*({profile:e,client:o,workspaceId:r,ttlSeconds:s,force:t=!1,now:n=Date.now()}={}){var k=e||(0,i.getCurrentProfile)(),p=(0,i.getTokenInfo)(k),u=p?.workspaceId,l=r||u;if(!l)throw Error(`Profile ${k} is not logged in or has no workspace id.`);var f=i.default.get("devtoolsTokens")||{},_=f[k]||{},d=_[l];if(!t&&((e,o=Date.now())=>{if(!e?.token||!e?.expiresAt)return!1;var r=new Date(e.expiresAt).getTime();return Number.isFinite(r)&&r-o>a})(d,n))return d;if(String(l)!==String(u))throw Error(`Profile ${k} has no usable DevTools token for workspace ${l}.`);var v=yield c({client:o,ttlSeconds:s});if(!v?.token||!v?.expiresAt)throw Error("DevTools access token response was incomplete.");var w={token:v.token,expiresAt:v.expiresAt,jti:v.jti,workspaceId:v.workspaceId||l};return i.default.set("devtoolsTokens",{...f,[k]:{..._,[l]:w}}),w}),function(){return t.apply(this,arguments)})}};
|
package/lib/306.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const __rspack_esm_id=306;export const __rspack_esm_ids=[306];export const __webpack_modules__={99548(e,t,r){r.d(t,{L:()=>d});var n=r(76502),i=r.n(n),o=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 o=r.reduce(function(e,r){var n=i()(t,r);return e.distance>n?{value:r,distance:n}:e},{distance:1/0,value:""});return o.distance<t.length?(void 0===n?function(e){return"Did you mean '"+e+"'?"}:n)(o.value):""},p=function(e){return e.split("/").pop()},f=function(e){var t=e.object,r=e.pnter,n=e.fallback;try{return o.Jt(t,r)}catch(e){return n}},d=function(e){var t=e.errors,r=e.data,n=e.schema,i=e.basePath,o=void 0===i?"{base}":i;return Array.isArray(t)&&0!==t.length?Object.values(t.reduce(function(e,t){var r,n,i,o,s,u,l=t.instancePath+(null!=(r=null!=(n=null==(i=t.params)?void 0:i.additionalProperty)?n:null==(o=t.params)?void 0:o.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,i=(o+e.instancePath).replace(c,"."),a=p(e.instancePath),d={errorType:e.keyword},y=(a?"property '"+a+"'":i)+" "+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:i,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:i,context:s({},d,{allowedValues:e.params.allowedValues})};break;case"type":t={message:"'"+p(e.instancePath)+"' property type must be "+e.params.type,path:i,context:d};break;case"required":t={message:i+" must have required property '"+e.params.missingProperty+"'",path:i,context:d};break;case"const":return{message:"'"+a+"' property must be equal to the allowed value",path:i,context:s({},d,{allowedValue:e.params.allowedValue})};default:return{message:y,path:i,context:d}}for(var m=Object.entries(t),w=0;w<m.length;w++){var _=m[w],I=_[0],P=_[1];(null==P||""===P)&&delete t[I]}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 i=e.call(this,t)||this;return i.timeout=r,i.statusCode=n,i}return n(t,e),t}(Error)},17681(e,t,r){var n,i=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)}),o=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);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 i(t,e),t.prototype.request=function(e,t){var r,n=this,i=e.getContext().timeout||this.timeout;if("u">typeof AbortController){var u=e.getContext().fetchOptions||{};r=u.controller||new AbortController,u=o({},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 i<=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=o({},s,{controller:null,signal:null}),e.setContext({fetchOptions:s}))}t.error(new a.default("Timeout exceeded",i,n.statusCode)),u.unsubscribe()},i);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:()=>i});var n=r(19371);function i(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,i=0,o=e.definitions;i<o.length;i++){var s=o[i];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,i=t.cmp&&(r=t.cmp,function(e){return function(t,n){return r({key:t,value:e[t]},{key:n,value:e[n]})}}),o=[];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!==o.indexOf(t)){if(n)return JSON.stringify("__cycle__");throw TypeError("Converting circular structure to JSON")}var r,s,a=o.push(t)-1,u=Object.keys(t).sort(i&&i(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 o.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")},i=RegExp("^0[0-7]+$","i"),o=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 i=0,o=-1,s=(e.match(u.zoneIndex)||[])[0];for(s&&(s=s.substring(1),e=e.replace(/%.+$/,""));(o=e.indexOf(":",o+1))>=0;)i++;if("::"===e.substr(0,2)&&i--,"::"===e.substr(-2,2)&&i--,i>t)return null;for(n=t-i,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 i;if(e.length!==t.length)throw Error("ipaddr: cannot match CIDR for objects with different lengths");let o=0;for(;n>0;){if((i=r-n)<0&&(i=0),e[o]>>i!=t[o]>>i)return!1;n-=r,o+=1}return!0}function h(e){if(o.test(e))return parseInt(e,16);if("0"===e[0]&&!isNaN(parseInt(e[1],10))){if(i.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,i=!1,o={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 o)||(r=o[t],i&&0!==r))return null;8!==r&&(i=!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(),i=[],o=0;for(;o<4;)i.push(parseInt(r[o],10)|255^parseInt(n[o],10)),o++;return new this(i)}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,i,o;try{for(n=(t=this.parseCIDR(e))[0].toByteArray(),o=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],r=0;r<4;)i.push(parseInt(n[r],10)&parseInt(o[r],10)),r++;return new this(i)}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 i=t.slice(1,5),o=[];if((r=h(i[2]))>65535||r<0)throw Error("ipaddr: address outside defined range");return o.push(h(i[0])),o.push(h(i[1])),o.push(r>>8&255),o.push(255&r),o}},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,i={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 o=7;o>=0;o-=1){if(!((e=this.parts[o])in i)||(t=i[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,i=-1;for(;e=t.exec(r);)e[0].length>i&&(n=e.index,i=e[0].length);return i<0?r:`${r.substring(0,n)}::${r.substring(n+i)}`},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(),i=[],o=0;for(;o<16;)i.push(parseInt(r[o],10)|255^parseInt(n[o],10)),o++;return new this(i)}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,i,o;try{for(n=(t=this.parseCIDR(e))[0].toByteArray(),o=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],r=0;r<16;)i.push(parseInt(n[r],10)&parseInt(o[r],10)),r++;return new this(i)}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,i,o,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,o=[parseInt(n[2]),parseInt(n[3]),parseInt(n[4]),parseInt(n[5])];r<o.length;r++)if(!(0<=(i=o[r])&&i<=255))return null;return t.parts.push(o[0]<<8|o[1]),t.parts.push(o[2]<<8|o[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,i,o,s;for(i in null==r&&(r="unicast"),t)if(Object.prototype.hasOwnProperty.call(t,i)){for(!(o=t[i])[0]||o[0]instanceof Array||(o=[o]),n=0;n<o.length;n++)if(s=o[n],e.kind()===s[0].kind()&&e.match.apply(e,s))return i}return r},e.exports?e.exports=p:t.ipaddr=p}(this)},45838(e,t){var r=/~/,n=/~[01]/g;function i(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 o,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[o=t[a++],r.test(o)?o.replace(n,i):o],s===a)return e;if("object"!=typeof e||null===e)return}}},76502(e){let t=[],r=[],n=(e,n)=>{let i,o,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,i=n.charCodeAt(h+f),s=f++,o=f;p<l;p++)a=i===r[p]?s:s+1,s=t[p],o=t[p]=s>o?a>o?o+1:a:a>s?s+1:a;return o};e.exports=n,e.exports.default=n},46123(e,t,r){var n=r(57923);e.exports=function(e,t,r){var i=null==e?void 0:n(e,t);return void 0===i?r:i}},95479(e,t,r){var n=r(93640),i=r(5485);e.exports=n(function(e,t,r){return e+(r?" ":"")+i(t)})},45620(e,t,r){r.d(t,{v4:()=>c});var n=r(76982),i=r.n(n);let o=new Uint8Array(256),s=o.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>o.length-16&&(i().randomFillSync(o),s=0),o.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)}},22268(e,t,r){r.d(t,{R:()=>K});var n=r(85608),i=r(70916),o=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),I=r(21461),P=r(36054),x=r(45637),k=r(53570),E=r(18709),S=r(75950),R=r(30671),O=new((r(51360)).et?WeakMap:Map);function q(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return O.set(e,(O.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;O.has(r)||(O.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 i=(0,n.__assign)((0,n.__assign)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,l.equal)(i,this.lastWatch)||(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===O.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 i,o=this,s=new R.ZI,a=(0,b.E)(e.errors)?e.errors.slice(0):[];if(null==(i=this.observableQuery)||i.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(i){if(o.shouldWrite(e,r.variables))i.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),o.lastWrite={result:e,variables:r.variables,dmCount:O.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete){e.data=o.lastDiff.diff.result;return}var s=o.getDiffOptions(r.variables),a=i.diff(s);!o.stopped&&(0,l.equal)(o.variables,r.variables)&&o.updateWatch(r.variables),o.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,i.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,o,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,I=e.fetchPolicy,P=void 0===I?(null==(u=this.defaultOptions.mutate)?void 0:u.fetchPolicy)||"network-only":I,x=e.errorPolicy,E=void 0===x?(null==(l=this.defaultOptions.mutate)?void 0:l.errorPolicy)||"none":x,S=e.keepRootFields,R=e.context;return(0,n.__generator)(this,function(e){switch(e.label){case 0:if((0,i.invariant)(c,28),(0,i.invariant)("network-only"===P||"no-cache"===P,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,R)];case 1:h=e.sent(),e.label=2;case 2:return o=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:P,errorPolicy:E,context:R,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)({},R),{optimisticResponse:s?p:void 0}),h,{},!1),function(e){if((0,g.t)(e)&&"none"===E)throw new k.ApolloError({graphQLErrors:(0,g.M)(e)});o&&(o.loading=!1,o.error=null);var r=(0,n.__assign)({},e);return"function"==typeof y&&(y=y(r)),"ignore"===E&&(0,g.t)(r)&&delete r.errors,a.markMutationResult({mutationId:t,result:r,document:c,variables:h,fetchPolicy:P,errorPolicy:E,context:R,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:P,id:t})}))},error:function(e){o&&(o.loading=!1,o.error=e),s&&a.cache.removeOptimistic(t),a.broadcastQueries(),r(e instanceof k.ApolloError?e:new k.ApolloError({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var i=e.result,o=[],s="no-cache"===e.fetchPolicy;if(!s&&A(i,e.errorPolicy)){if((0,c.ST)(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,c.ST)(i)&&(0,b.E)(i.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,i)),void 0!==u&&(i.data=u,o.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:i,queryName:h&&(0,m.n4)(h)||void 0,queryVariables:p});y&&o.push({result:y,dataId:"ROOT_QUERY",query:h,variables:p})}}})}if(o.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var h=[];if(this.refetchQueries({updateCache:function(t){s||o.forEach(function(e){return t.write(e)});var a=e.update,u=!(0,c.YX)(i)||(0,c.ST)(i)&&!i.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(i=(0,n.__assign)((0,n.__assign)({},i),{data:l.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}u&&a(t,i,{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 i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var r=this,o="function"==typeof e?e(t.variables,{IGNORE:$}):e;return o!==$&&(this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,n.__assign)((0,n.__assign)({},t),{result:{data:o}}),e)}catch(e){!1!==globalThis.__DEV__&&i.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),i=new E.U({queryManager:this,queryInfo:r,options:e});return i.lastQuery=t,E.U.inactiveOnCreation.getValue()||this.queries.set(i.queryId,r),r.init({document:t,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(e,t){var r=this;void 0===t&&(t=this.generateQueryId()),(0,i.invariant)(e.query,30),(0,i.invariant)("Document"===e.query.kind,31),(0,i.invariant)(!e.returnPartialData,32),(0,i.invariant)(!e.pollInterval,33);var o=this.transform(e.query);return this.fetchQuery(t,(0,n.__assign)((0,n.__assign)({},e),{query:o})).then(function(i){return i&&(0,n.__assign)((0,n.__assign)({},i),{data:r.maskOperation({document:o,data:i.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,i.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,o=new Map,s=new Map,a=new Set;return Array.isArray(e)&&e.forEach(function(e){if("string"==typeof e)o.set(e,e),s.set(e,!1);else if((0,w.Kc)(e)){var r=(0,M.y)(t.transform(e));o.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 i=t.observableQuery,o=t.document;if(i){if("all"===e)return void r.set(n,i);var a=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||a&&s.has(a)||o&&s.has((0,M.y)(o)))&&(r.set(n,i),a&&s.set(a,!0),o&&s.set((0,M.y)(o),!0))}}),a.size&&a.forEach(function(e){var o=(0,I.v)("legacyOneTimeQuery"),s=t.getOrCreateQuery(o).init({document:e.query,variables:e.variables}),a=new E.U({queryManager:t,queryInfo:s,options:(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"network-only"})});(0,i.invariant)(a.queryId===o),s.setObservableQuery(a),r.set(o,a)}),!1!==globalThis.__DEV__&&s.size&&s.forEach(function(e,t){if(!e){var r=o.get(t);r?!1!==globalThis.__DEV__&&i.invariant.warn(35,r):!1!==globalThis.__DEV__&&i.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,i){var o=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),(t.queries.get(i)||n.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.variables,i=e.fetchPolicy,o=e.errorPolicy,s=void 0===o?"none":o,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"!==i&&(A(n,s)&&t.cache.write({query:r,result:n.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var o=(0,g.t)(n),a=(0,k.graphQLResultHasProtocolErrors)(n);if(o||a){var u={};if(o&&(u.graphQLErrors=n.errors),a&&(u.protocolErrors=n.extensions[k.PROTOCOL_ERRORS_SYMBOL]),"none"===s||a)throw new k.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 P.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,i,o){var a,u,l=this;void 0===o&&(o=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:!o})),extensions:i};if(t=g.context,o){var b=(0,M.y)(h),w=(0,d.M)(r),_=f.lookup(b,w);if(!(u=_.observable)){var I=new x.E([(0,s.g)(y,g)]);u=_.observable=I,I.beforeNext(function e(t,r){"next"===t&&"hasNext"in r&&r.hasNext?I.beforeNext(e):f.remove(b,w)})}}else u=new x.E([(0,s.g)(y,g)])}else u=new x.E([P.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(),i=this.cache.transformForLink(r.query);return(0,v.x)(this.getObservableFromLink(i,r.context,r.variables),function(o){var s=(0,g.M)(o),a=s.length>0,u=r.errorPolicy;if(n>=e.lastRequestId){if(a&&"none"===u)throw e.markError(new k.ApolloError({graphQLErrors:s}));e.markResult(o,i,r,t),e.markReady()}var l={data:o.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,k.isApolloError)(t)?t:new k.ApolloError({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i,o,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 i=s.fetchQueryByPolicy(e,v,r);return"standby"!==v.fetchPolicy&&i.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy("after-fetch",t),i},b=function(){return s.fetchCancelFns.delete(e.queryId)};if(this.fetchCancelFns.set(e.queryId,function(e){b(),setTimeout(function(){return i.cancel(e)})}),this.getDocumentInfo(v.query).hasClientExports)i=new x.E(this.localState.addExportedVariables(v.query,v.variables,v.context).then(g).then(function(e){return e.sources})),o=!0;else{var m=g(v.variables);o=m.fromLink,i=new x.E(m.sources)}return i.promise.then(b,b),{concast:i,fromLink:o}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,o=void 0!==i&&i,s=e.removeOptimistic,a=void 0===s?o?(0,I.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:o&&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 i=u(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&c.set(n,i),i}null!==u&&l.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),l.size&&l.forEach(function(e,r){var n,i=e.oq,o=e.lastDiff,s=e.diff;u&&(s||(s=t.cache.diff(i.queryInfo.getDiffOptions())),n=u(i,s,o)),u&&!0!==n||(n=i.refetch()),!1!==n&&c.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),a&&this.cache.removeOptimistic(a),c},e.prototype.maskOperation=function(e){var t,r,n,o=e.document,s=e.data;if(!1!==globalThis.__DEV__){var a=e.fetchPolicy,u=e.id,l=null==(t=(0,m.Vu)(o))?void 0:t.operation,c=(null!=(r=null==l?void 0:l[0])?r:"o")+u;!this.dataMasking||"no-cache"!==a||(0,f.s6)(o)||this.noCacheWarningsByQueryId.has(c)||(this.noCacheWarningsByQueryId.add(c),!1!==globalThis.__DEV__&&i.invariant.warn(37,null!=(n=(0,m.n4)(o))?n:"Unnamed ".concat(null!=l?l:"operation")))}return this.dataMasking?(0,F.m)(s,o,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 i=this,o=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:o,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,E.y)(t.missing);var u=function(e){return P.c.of((0,n.__assign)({data:e,loading:(0,S.bi)(r),networkStatus:r},t.complete?null:{partial:!0}))};return a&&i.getDocumentInfo(o).hasForcedResolvers?i.localState.runResolvers({document:o,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 i.getResultsFromLink(e,g,{query:o,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,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,R.D9)(t.resolvers,e)}):this.resolvers=(0,R.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,i=e.context,o=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,i,o,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(i){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,i,o,s){var a,u,l,c,h,p,d,y,v,g;return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=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:i,fragmentMatcher:o,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,o){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=o.fragmentMap,a=o.context,u=o.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||o.selectionsToResolve.has(e))&&(0,h.MS)(e,u)?(0,w.dt)(e)?[2,this.resolveField(e,t,r,o).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,i.invariant)(c,19,e.name.value)),c&&c.typeCondition&&(p=c.typeCondition.name.value,o.fragmentMatcher(r,p,a)))?[2,this.resolveSelectionSet(c.selectionSet,t,r,o).then(function(e){l.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(c)).then(function(){return(0,R.IM)(l)})]})})},e.prototype.resolveField=function(e,t,r,i){return(0,n.__awaiter)(this,void 0,void 0,function(){var o,s,a,u,l,c,h,p,f,d=this;return(0,n.__generator)(this,function(n){return r?(o=i.variables,u=(s=e.name.value)!==(a=(0,w.ue)(e)),c=Promise.resolve(l=r[a]||r[s]),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(h=r.__typename||i.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,o),i.context,{field:e,fragmentMap:i.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&&(i.exportedVariables[e.value.value]=r)})}),!e.selectionSet||null==r)return r;var n,o,s=null!=(o=null==(n=e.directives)?void 0:n.some(function(e){return"client"===e.name.value}))&&o;return Array.isArray(r)?d.resolveSubSelectedArray(e,t||s,r,i):e.selectionSet?d.resolveSelectionSet(e.selectionSet,t||s,r,i):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.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(o){if(!n.has(o)){var s=new Set;n.set(o,s),(0,V.YR)(o,{Directive:function(e,t,n,i,o){"client"===e.name.value&&o.forEach(function(e){r(e)&&(0,j.VK)(e)&&s.add(e)})},FragmentSpread:function(n,o,a,u,l){var c=t[n.name.value];(0,i.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(o)}(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,i.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,I=e.assumeImmutableResults,P=void 0===I?h.assumeImmutableResults:I,x=e.resolvers,k=e.typeDefs,E=e.fragmentMatcher,S=e.name,R=e.version,O=e.devtools,q=e.dataMasking,C=e.link;C||(C=s?new u.P({uri:s,credentials:l,headers:c}):o.C.empty()),this.link=C,this.cache=h,this.disableNetworkFetches=d||v>0,this.queryDeduplication=m,this.defaultOptions=w||Object.create(null),this.typeDefs=k,this.devtoolsConfig=(0,n.__assign)((0,n.__assign)({},O),{enabled:null!=(t=null==O?void 0:O.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:x,fragmentMatcher:E}),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:R},localState:this.localState,assumeImmutableResults:P,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__&&i.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,i.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(i){return(0,n.__assign)((0,n.__assign)({},i),{data:t.queryManager.maskOperation({document:e.query,data:i.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 o=Promise.all(n);return o.queries=r,o.results=n,o.catch(function(e){!1!==globalThis.__DEV__&&i.invariant.debug(18,e)}),o},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),i=r(70916),o=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 i=r.queryManager,o=r.queryInfo,s=r.options,a=this,l=t.inactiveOnCreation.getValue();(a=e.call(this,function(e){l&&(i.queries.set(a.queryId,o),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=o,a.queryManager=i,a.waitForOwnResult=I(s.fetchPolicy),a.isTornDown=!1,a.subscribeToMore=a.subscribeToMore.bind(a),a.maskResult=a.maskResult.bind(a);var c=i.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=o.queryId||i.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(){i.unsubscribe()},0)},error:r},i=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,i=(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(I(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)&&(i.data=l.result),(0,o.equal)(i.data,{})&&(i.data=void 0),l.complete?(delete i.partial,l.complete&&i.networkStatus===s.pT.loading&&("cache-first"===u||"cache-only"===u)&&(i.networkStatus=s.pT.ready,i.loading=!1)):i.partial=!0,i.networkStatus===s.pT.ready&&(i.error||i.errors)&&(i.networkStatus=s.pT.error),!1===globalThis.__DEV__||l.complete||this.options.partialRefetch||i.loading||i.data||i.error||_(l.missing)}return e&&this.updateLastResult(i),i},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,i=n?r.nonReactiveQuery:this.query;return(n||r.hasNonreactiveDirective?!(0,y.a)(i,this.last.result,e,this.variables):!(0,o.equal)(this.last.result,e))||t&&!(0,o.equal)(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||(0,o.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__||i.invariant.warn(21,e,(null==(t=a.name)?void 0:t.value)||a)}return e&&!(0,o.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 o=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,i.invariant)(c,22),this.queryManager.fetchQuery(o,r,s.pT.fetchMore).then(function(i){if(t.queryManager.removeQuery(o),a.networkStatus===s.pT.fetchMore&&(a.networkStatus=u),h)t.queryManager.cache.batch({update:function(n){var o=e.updateQuery;o?n.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return o(e,{fetchMoreResult:i.data,variables:r.variables})}):n.writeQuery({query:r.query,variables:r.variables,data:i.data})},onWatchUpdated:function(e){l.add(e.query)}});else{var p=t.getLast("result"),f=c(p.data,{fetchMoreResult:i.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(i)}).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 i=e.updateQuery;i&&t.updateQuery(function(e,t){return i(e,(0,n.__assign)({subscriptionData:r},t))})},error:function(t){e.onError?e.onError(t):!1!==globalThis.__DEV__&&i.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,o.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,i=r.complete,o=e(n,{variables:this.variables,complete:!!i,previousData:n});o&&(t.cache.writeQuery({query:this.options.query,data:o,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,i=t.initialFetchPolicy,o=void 0===i?n:i;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:o}):"variables-changed"===e?t.fetchPolicy=o: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,i.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))?o():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},s.pT.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};o()}}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var r=this.getLastError();return r&&this.last&&!(0,o.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 i=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=i?c:g(this.options,c),p=this.transformDocument(h.query);this.lastQuery=p,!i&&(this.updatePolling(),e&&e.variables&&!(0,o.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=I(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,o.equal)(r.variables,y)&&(f(),r.reportResult(e,y))},error:function(e){(0,o.equal)(r.variables,y)&&((0,d.isApolloError)(e)||(e=new d.ApolloError({networkError:e})),f(),r.reportError(e,y))}};return i||!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__&&i.invariant.error(25,e.message,e.stack)}function _(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&i.invariant.debug(26,e)}function I(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:()=>o.U,checkFetcher:()=>y.checkFetcher,concat:()=>d.concat,createHttpLink:()=>y.createHttpLink,createSignalIfSupported:()=>y.createSignalIfSupported,defaultDataIdFromObject:()=>p.or,defaultPrinter:()=>y.defaultPrinter,disableExperimentalFragmentVariables:()=>x.disableExperimentalFragmentVariables,disableFragmentWarnings:()=>x.disableFragmentWarnings,empty:()=>d.empty,enableExperimentalFragmentVariables:()=>x.enableExperimentalFragmentVariables,execute:()=>d.execute,fallbackHttpConfig:()=>y.fallbackHttpConfig,from:()=>d.from,fromError:()=>v.N,fromPromise:()=>b.S,gql:()=>x.gql,isApolloError:()=>a.isApolloError,isNetworkRequestSettled:()=>s.D2,isReference:()=>I.A_,makeReference:()=>I.WU,makeVar:()=>f.UT,mergeOptions:()=>i.l,parseAndCheckHttpResponse:()=>y.parseAndCheckHttpResponse,resetCaches:()=>x.resetCaches,rewriteURIForGET:()=>y.rewriteURIForGET,selectHttpOptionsAndBody:()=>y.selectHttpOptionsAndBody,selectHttpOptionsAndBodyInternal:()=>y.selectHttpOptionsAndBodyInternal,selectURI:()=>y.selectURI,serializeFetchParameter:()=>y.serializeFetchParameter,setLogVerbosity:()=>P.setVerbosity,split:()=>d.split,throwServerError:()=>m.A,toPromise:()=>g.h});var n=r(22268),i=r(31507),o=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),I=r(28907),P=r(19371),x=r(94370);(0,P.setVerbosity)(!1!==globalThis.__DEV__?"log":"silent")},75950(e,t,r){var n,i;function o(e){return!!e&&e<7}function s(e){return 7===e||8===e}r.d(t,{D2:()=>s,bi:()=>o,pT:()=>n}),(i=n||(n={}))[i.loading=1]="loading",i[i.setVariables=2]="setVariables",i[i.fetchMore=3]="fetchMore",i[i.refetch=4]="refetch",i[i.poll=6]="poll",i[i.ready=7]="ready",i[i.error=8]="error"},74114(e,t,r){r.d(t,{z:()=>m});var n=r(85608),i=r(19074),o=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,i=e.batchHandler,o=e.batchKey;this.batchesByKey=new Map,this.scheduledBatchTimerByKey=new Map,this.batchDebounce=t,this.batchInterval=r,this.batchMax=n||0,this.batchHandler=i,this.batchKey=o||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}),i=this.batchKey(e.operation);return r.observable||(r.observable=new u.c(function(e){var n=t.batchesByKey.get(i);n||t.batchesByKey.set(i,n=new Set);var o=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)),(o||t.batchDebounce)&&t.scheduleQueueConsumption(i),n.size===t.batchMax&&t.consumeQueue(i),function(){var o;r.subscribers.delete(e)&&r.subscribers.size<1&&n.delete(r)&&n.size<1&&(t.consumeQueue(i),null==(o=n.subscription)||o.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=[],i=[],o=[],s=[],a=[];t.forEach(function(e){r.push(e.operation),n.push(e.forward),i.push(e.observable),o.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]),o.length!==e.length){var t=Error("server returned results with length ".concat(e.length,", expected length of ").concat(o.length));return t.result=e,c(t)}e.forEach(function(e,t){o[t]&&o[t].forEach(function(t){return t(e)})})},error:c,complete:function(){a.forEach(function(e){e&&e.forEach(function(e){return e()})})}}),i}},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||{},i=n.batchDebounce,o=n.batchInterval,s=n.batchMax,a=n.batchHandler,u=n.batchKey;return r.batcher=new y({batchDebounce:i,batchInterval:void 0===o?10:o,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}(i.C),g=r(70783),b=(0,o.maybe)(function(){return fetch}),m=function(e){function t(t){var r=e.call(this)||this,i=t||{},y=i.uri,m=void 0===y?"/graphql":y,w=i.fetch,_=i.print,I=void 0===_?c.i1:_,P=i.includeExtensions,x=i.preserveHeaderCase,k=i.batchInterval,E=i.batchDebounce,S=i.batchMax,R=i.batchKey,O=i.includeUnusedVariables,q=void 0!==O&&O,C=(0,n.__rest)(i,["uri","fetch","print","includeExtensions","preserveHeaderCase","batchInterval","batchDebounce","batchMax","batchKey","includeUnusedVariables"]);!1!==globalThis.__DEV__&&(0,h.S)(w||b);var A={http:{includeExtensions:P,preserveHeaderCase:x},options:C.fetchOptions,credentials:C.credentials,headers:C.headers};return r.batchDebounce=E,r.batchInterval=k||10,r.batchMax=S||10,R=R||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:R,batchHandler:function(e){var t,r=(0,p.z)(e[0],m),i=e[0].getContext(),h={};if(i.clientAwareness){var y=i.clientAwareness,v=y.name,_=y.version;v&&(h["apollographql-client-name"]=v),_&&(h["apollographql-client-version"]=_)}var P={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:(0,n.__assign)((0,n.__assign)({},h),i.headers)},x=e.map(function(e){var t=e.query;return(0,s.d8)(["client"],t)?(0,a.er)(t):t});if(x.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 k=e.map(function(e,t){var r=(0,c.HY)((0,n.__assign)((0,n.__assign)({},e),{query:x[t]}),I,c.R4,A,P);return r.body.variables&&!q&&(r.body.variables=(0,g.X)(r.body.variables,e.query)),r}),E=k.map(function(e){return e.body}),S=k[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)(E,"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,o.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}(i.C)},26197(e,t,r){r.d(t,{o:()=>s});var n=r(85608),i=r(19074),o=r(36054);function s(e){return new i.C(function(t,r){var i=(0,n.__rest)(t,[]);return new o.c(function(n){var o,s=!1;return Promise.resolve(i).then(function(r){return e(r,t.getContext())}).then(t.setContext).then(function(){s||(o=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,o&&o.unsubscribe()}})})}},79556(e,t,r){r.d(t,{S:()=>a});var n=r(85608),i=r(53570),o=r(36054),s=r(19074);function a(e){return new s.C(function(t,r){return new o.c(function(n){var o,s,a;try{o=r(t).subscribe({next:function(o){if(o.errors?a=e({graphQLErrors:o.errors,response:o,operation:t,forward:r}):(0,i.graphQLResultHasProtocolErrors)(o)&&(a=e({protocolErrors:o.extensions[i.PROTOCOL_ERRORS_SYMBOL],response:o,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(o)},error:function(i){if(a=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.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(i)},complete:function(){a||n.complete.bind(n)()}})}catch(i){e({networkError:i,operation:t,forward:r}),n.error(i)}return function(){o&&o.unsubscribe(),s&&o.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),i=r(19074),o=r(36054),s=r(53570),a=function(){function e(e,t,r,i,o){var s=this;this.observer=e,this.operation=t,this.forward=r,this.delayFor=i,this.retryIf=o,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,i,o,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:(i=void 0===(n=(r=g||{}).initial)?300:n,s=void 0===(o=r.jitter)||o,u=void 0===(a=r.max)?1/0:a,l=s?i:i/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 o.c(function(n){var i=new a(n,e,t,r.delayFor,r.retryIf);return function(){i.cancel()}})},t}(i.C)},42028(e,t,r){r.d(t,{c:()=>l});var n=r(85608),i=r(38678),o=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,i.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}(o.C)},99815(e,t,r){function n(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function i(e){return"object"===n(e)}function o(e,t){return e.length<124?e:t}function s(e){if(!i(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&&!i(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(!i(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&&!i(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&&!i(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(!i(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,i=r.apply(e,t||[]),o=[];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){i[e]&&(n[e]=function(t){return new Promise(function(r,n){o.push([e,t,r,n])>1||a(e,t)})},t&&(n[e]=t(n[e])))}function a(e,t){try{var r;(r=i[e](t)).value instanceof p?Promise.resolve(r.value.v).then(u,l):c(o[0][2],r)}catch(e){c(o[0][3],e)}}function u(e){a("next",e)}function l(e){a("throw",e)}function c(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}};function d(e){let t,r,n,i,{url:u,connectionParams:l,lazy:d=!0,onNonLazyError:g=console.error,lazyCloseTimeout:b=0,keepAlive:m=0,disablePong:w,connectionAckWaitTimeout:_=0,retryAttempts:I=5,retryWait:P=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:x=v,isFatalConnectionProblem:k,on:E,webSocketImpl:S,generateID:R=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:O,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))}},i={connecting:(null==E?void 0:E.connecting)?[E.connecting]:[],opened:(null==E?void 0:E.opened)?[E.opened]:[],connected:(null==E?void 0:E.connected)?[E.connected]:[],ping:(null==E?void 0:E.ping)?[E.ping]:[],pong:(null==E?void 0:E.pong)?[E.pong]:[],message:(null==E?void 0:E.message)?[n.emit,E.message]:[n.emit],closed:(null==E?void 0:E.closed)?[E.closed]:[],error:(null==E?void 0:E.error)?[E.error]:[]},{onMessage:n.on,on(e,t){let r=i[e];return r.push(t),()=>{r.splice(r.indexOf(t),1)}},emit(e,...t){for(let r of[...i[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 P(N),!Q)return D=void 0,t({code:1e3,reason:"All Subscriptions Gone"});N++}M.emit("connecting",L);let i=new A("function"==typeof u?await u():u,"graphql-transport-ws");function p(){isFinite(m)&&m>0&&(clearTimeout(n),n=setTimeout(()=>{i.readyState===A.OPEN&&(i.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&&(i.close(4499,"Terminated"),i.onerror=null,i.onclose=null)}),i.onerror=e=>M.emit("error",e),i.onclose=e=>M.emit("closed",e),i.onopen=async()=>{try{M.emit("opened",i);let e="function"==typeof l?await l():l;if(i.readyState!==A.OPEN)return;i.send(a(e?{type:h.ConnectionInit,payload:e}:{type:h.ConnectionInit},O)),isFinite(_)&&_>0&&(r=setTimeout(()=>{i.close(c.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},_)),p()}catch(e){M.emit("error",e),i.close(c.InternalClientError,o(e instanceof Error?e.message:Error(e).message,"Internal client error"))}};let f=!1;i.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||(i.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",i,n.payload,L),L=!1,N=0,e([i,new Promise((e,t)=>T(t))])}catch(e){i.onmessage=null,M.emit("error",e),i.close(c.BadResponse,o(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(!I||N>=I||!x(e)||(null==k?void 0:k(e)))throw e;return L=!0}function j(e,t){let r=R(e),n=!1,i=!1,o=()=>{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:i=!0,n=!0,t.error(e.payload),o();return;case h.Complete:n=!0,o();return}});s.send(a({id:r,type:h.Subscribe,payload:e},O)),o=()=>{n||s.readyState!==A.OPEN||s.send(a({id:r,type:h.Complete},O)),Q--,n=!0,u()},await l.finally(c);return}catch(e){if(!V(e))return}})().then(()=>{i||t.complete()}).catch(e=>{t.error(e)}),()=>{n||o()}}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()}}),i=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 i.throw=async e=>(r.done||(r.done=!0,r.error=e,r.resolve()),{done:!0,value:void 0}),i.return=async()=>(n(),{done:!0,value:void 0}),i},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 i(e)&&"code"in e&&"reason"in e}},96423(e,t,r){r.d(t,{A:()=>x});let n=(e,t="Internal Logic Error")=>{if(!e)throw Error("function"==typeof t?t():t)};class i{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 o{constructor(e,t=null){this.left=null===t,this.link=null===t?new o(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 i("",!1);if(Array.isArray(e))return 0===e.length?new i("",!1):e.map((r,n)=>"number"==typeof r?(t.useArraySelector||l("Forbidden Array Selector",JSON.stringify(e),{idx:n}),new i(`[${r}]`,!1)):new i(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 o(a)):(r.push(new i(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 i=r[r.length-2];i instanceof o&&!0===i.left&&r.push(i.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 i=0;i<e.length;i+=1){let o=e[i];r||"\\"!==o?r||"*"!==o?r||"+"!==o?r||"?"!==o?(v.includes(o)&&(n=!1,t+="\\"),t+=o,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:i})=>{let o=[[[e,null]]],s=!1;((e,t)=>{let r=[e],n=[null],i=[],o=[],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]&&(o[n[s]]+=e.length-1)):(void 0===i[s]?(i[s]=0,o[s]=0):0!==o[s]&&(r.splice(s+1,o[s]),n.splice(s+1,o[s]),o[s]=0),i[s]<e.length?(r.splice(s+1,0,e[i[s]]),n.splice(s+1,0,s),i[s]=(i[s]||0)+1,o[s]+=1,a=!0,s+=1):(i[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),o.length-=2;else if("ADD"===r){if(!0===a.excluded){if(s)throw Error(`Redundant Exclusion: "${t}"`);s=!0}let e=[],r=o[o.length-2];o[o.length-1].forEach(([t,i])=>n(t,i,a,r,r=>e.push([r,t]))),o.push(a,e)}else o[o.length-1].filter(([t])=>t!==e).forEach(([e,t])=>i(e,t,a,s))})})(e,t,r,{onAdd:(e,r,i,s,a)=>{if(e.addNeedle(t),i instanceof o)return void(!0===i.left?(i.isStarRec&&i.setPointer(e),i.setNode(new b("*",n)),n.links.push(e,i.node),a(i.node)):(i.target="target"in s?s.target:r.get(s.value),n.links.push(i.target,i.node),null!==i.pointer&&(a(i.pointer),i.setPointer(null)),a(e)));let u=i.isStarRec&&i.value===s?.value;if(u&&n.strict)throw Error(`Redundant Recursion: "${t}"`);if(u)i.target=e;else{let t=e.get(i.value);void 0===t&&(t=new b(i.value,n),e.add(t)),a(t)}i.isStarRec&&a(e)},onFin:(e,r,i,o)=>{if(n.strict&&i.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,o,n.counter),n.counter+=1}})},w=(e,t)=>{let r=[];for(let n=0,i=e.length;n<i;n+=1){let i=e[n][t];for(let e=0,t=i.length;e<t;e+=1){let t=i[e];r.includes(t)||r.push(t)}}return r},_=e=>{let t=-1,r=!1,n=e.length;for(;n--;){let{index:i,match:o}=e[n];i>t&&(t=i,r=o)}return r},I=(e,t)=>t?d(e):[...e],P=(e,t,r)=>{n(r.includes(typeof e[t]),()=>`Option "${t}" not one of [${r.join(", ")}]`)},x=(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 i=(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"),P(r,"filterFn",["function","undefined"]),P(r,"breakFn",["function","undefined"]),P(r,"beforeFn",["function","undefined"]),P(r,"afterFn",["function","undefined"]),P(r,"compareFn",["function","undefined"]),P(r,"reverse",["boolean"]),P(r,"orderByNeedles",["boolean"]),P(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'),P(r,"joined",["boolean"]),P(r,"useArraySelector",["boolean"]),P(r,"strict",["boolean"]),r),o=((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 i=e[n],o=[c(i,t)];m(r,i,o,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,i);return(e,t)=>((e,t,r)=>{let n,i,o,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)=>I(l,e),get key(){return p.getKey()},getValue:()=>h,get value(){return p.getValue()},getEntry:(e=r.joined)=>[I(l,e),h],get entry(){return p.getEntry()},getIsMatch:()=>s,get isMatch(){return p.getIsMatch()},getMatchedBy:()=>w(o,"leafNeedlesMatch"),get matchedBy(){return p.getMatchedBy()},getExcludedBy:()=>w(o,"leafNeedlesExclude"),get excludedBy(){return p.getExcludedBy()},getTraversedBy:()=>w(o,"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(),i=u.pop(),o=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(i),h=h[i]):null!==i?(l[l.length-1]=i,h=c[c.length-1][i]):h=a.haystack,s){(void 0===r.filterFn||!1!==r.filterFn(p))&&(f.onMatch(p),r.abort&&(u.length=0));continue}if(!o.some(({matches:e})=>e))continue;let d=!1===r.useArraySelector&&Array.isArray(h);if(!d&&_(o)&&(u.push(!0,o,i,n),s=!0),(void 0===r.breakFn||!0!==r.breakFn(p))&&h instanceof Object){let e=Array.isArray(h),i=e?h.map((e,t)=>t).filter(()=>!0):Object.keys(h);!e&&r.compareFn&&i.sort(r.compareFn(p)),r.reverse||i.reverse();for(let s=0,a=i.length;s<a;s+=1){let a=i[s],l=[];if(d)l.push(...o),0===n&&l.push(...t.roots);else for(let t=0,r=o.length;t!==r;t+=1){let r=o[t];r.recMatch(a)&&l.push(r);let{children:n}=r,i=n.length;for(;i--;){let t=n[i];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,o,{context:t,...i,rtn:i.rtn||(void 0===t?"key":"context")})}},79861(e,t,r){r.d(t,{fJ:()=>v});var n=r(77030),i=r(37067),o=r(44708),s=r(68875),a=r(40610);let u=[],l=[],c=({address:e,host:t,family:r},i)=>{if(0!==n.isIP(e))try{let n=s.parse(e).range();if(i.allowIPAddressList.length>0&&i.allowIPAddressList.includes(e))return;if(!i.allowMetaIPAddress&&"unspecified"===n)return Error(`DNS lookup ${e}(family:${r}, host:${t}) is not allowed. Because, It is meta IP address.`);if(!i.allowPrivateIPAddress&&"unicast"!==n)return Error(`DNS lookup ${e}(family:${r}, host:${t}) is not allowed. Because, It is private IP address.`);if(i.denyIPAddressList.length>0&&i.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,i)=>{let o,s=e.lookup||a.lookup;o=n.all?(e,n)=>{if(e)return void i(e);for(let{address:e,family:o}of n){let n=c({address:e,family:o,host:r},t);if(n)return void i(n)}i(null,n)}:(e,n,o)=>{if(e)return void i(e);let s=c({address:n,family:o,host:r},t);s?i(s):i(null,n,o)},s(r,n,o)};class p 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: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 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:[],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}};
|
package/lib/320.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export const __rspack_esm_id=320;export const __rspack_esm_ids=[320];export const __webpack_modules__={65650(t,e,r){t.exports=r(78942).Symbol},87379(t,e,r){var o=r(65650),n=r(8870),i=r(29005),s=o?o.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?n(t):i(t)}},86403(t,e,r){var o=r(62945),n=/^\s+/;t.exports=function(t){return t?t.slice(0,o(t)+1).replace(n,""):t}},74967(t){t.exports="object"==typeof global&&global&&global.Object===Object&&global},8870(t,e,r){var o=r(65650),n=Object.prototype,i=n.hasOwnProperty,s=n.toString,a=o?o.toStringTag:void 0;t.exports=function(t){var e=i.call(t,a),r=t[a];try{t[a]=void 0;var o=!0}catch(t){}var n=s.call(t);return o&&(e?t[a]=r:delete t[a]),n}},29005(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},78942(t,e,r){var o=r(74967),n="object"==typeof self&&self&&self.Object===Object&&self;t.exports=o||n||Function("return this")()},62945(t){var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},12784(t,e,r){var o=r(41580),n=r(94495),i=r(6131),s=Math.max,a=Math.min;t.exports=function(t,e,r){var u,l,c,p,f,h,d=0,v=!1,y=!1,m=!0;if("function"!=typeof t)throw TypeError("Expected a function");function b(e){var r=u,o=l;return u=l=void 0,d=e,p=t.apply(o,r)}function x(t){var r=t-h,o=t-d;return void 0===h||r>=e||r<0||y&&o>=c}function _(){var t,r,o,i=n();if(x(i))return g(i);f=setTimeout(_,(t=i-h,r=i-d,o=e-t,y?a(o,c-r):o))}function g(t){return(f=void 0,m&&u)?b(t):(u=l=void 0,p)}function w(){var t,r=n(),o=x(r);if(u=arguments,l=this,h=r,o){if(void 0===f)return d=t=h,f=setTimeout(_,e),v?b(t):p;if(y)return clearTimeout(f),f=setTimeout(_,e),b(h)}return void 0===f&&(f=setTimeout(_,e)),p}return e=i(e)||0,o(r)&&(v=!!r.leading,c=(y="maxWait"in r)?s(i(r.maxWait)||0,e):c,m="trailing"in r?!!r.trailing:m),w.cancel=function(){void 0!==f&&clearTimeout(f),d=0,u=h=l=f=void 0},w.flush=function(){return void 0===f?p:g(n())},w}},41580(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},80547(t){t.exports=function(t){return null!=t&&"object"==typeof t}},51187(t,e,r){var o=r(87379),n=r(80547);t.exports=function(t){return"symbol"==typeof t||n(t)&&"[object Symbol]"==o(t)}},94495(t,e,r){var o=r(78942);t.exports=function(){return o.Date.now()}},6131(t,e,r){var o=r(86403),n=r(41580),i=r(51187),s=0/0,a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return s;if(n(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=n(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=o(t);var r=u.test(t);return r||l.test(t)?c(t.slice(2),r?2:8):a.test(t)?s:+t}},5018(t){t.exports=function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},44668(t,e,r){var o=r(56347);function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}t.exports=function(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},70604(t){t.exports=function(t){if("u">typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},90250(t,e,r){var o=r(3634),n=r(70604),i=r(78243),s=r(5523);t.exports=function(t){return o(t)||n(t)||i(t)||s()},t.exports.__esModule=!0,t.exports.default=t.exports},23878(t,e,r){var o=r(14319).default;t.exports=function(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},56347(t,e,r){var o=r(14319).default,n=r(23878);t.exports=function(t){var e=n(t,"string");return"symbol"==o(e)?e:e+""},t.exports.__esModule=!0,t.exports.default=t.exports},14319(t){function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},75720(t,e,r){r.d(e,{p:()=>p,sh:()=>d});var o,n,i=r(90250),s=r(99436),a=r(5018),u=r(44668),l=r(31421),c=r(73024),p=()=>{var t=process.argv[1];return t&&(0,c.existsSync)(t)?[process.execPath,t]:[process.execPath]},f=u(function t(e){a(this,t),this._cwd=void 0,this._mode="default",this._throw=!0,this._env=void 0,this._promise=null,this.args=e},[{key:"cwd",value:function(t){return this._cwd=t,this}},{key:"quiet",value:function(){return this._mode="quiet",this}},{key:"nothrow",value:function(){return this._throw=!1,this}},{key:"env",value:function(t){return this._env={...this._env,...t},this}},{key:"text",value:(o=s(function*(){return"default"===this._mode&&(this._mode="text"),(yield this.run()).stdout.toString("utf8")}),function(){return o.apply(this,arguments)})},{key:"then",value:function(t,e){return this.run().then(t,e)}},{key:"run",value:function(){return this._promise||(this._promise=this.exec()),this._promise}},{key:"exec",value:(n=s(function*(){var t=i(this.args),e=t[0],r=(function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=Array(e);r<e;r++)o[r]=t[r];return o})(t).slice(1);if(!e)throw Error("sh: empty command");var o="default"===this._mode?["inherit","pipe","pipe"]:"quiet"===this._mode?["ignore","pipe","pipe"]:["inherit","pipe","pipe"],n=this._env?{...process.env,...this._env}:void 0,s=(0,l.spawn)(e,r,{cwd:this._cwd,stdio:o,env:n}),a=[],u=[];s.stdout?.on("data",t=>{a.push(t),"default"===this._mode&&process.stdout.write(t)}),s.stderr?.on("data",t=>{u.push(t),"default"===this._mode&&process.stderr.write(t)});var c=yield new Promise((t,e)=>{s.on("error",e),s.on("close",e=>t(e??0))}),p=Buffer.concat(a),f=Buffer.concat(u);if(0!==c&&this._throw){var h=Error(`sh: command failed with exit ${c}: ${this.args.join(" ")}`);throw h.exitCode=c,h.stdout=p,h.stderr=f,h}return{exitCode:c,stdout:p,stderr:f}}),function(){return n.apply(this,arguments)})}]),h=/\s/;function d(t,...e){var r,o,n,i,s,a=(r=[],o="",n=!1,i=()=>{n&&(r.push(o),o="",n=!1)},s=t=>{o+=t,n=!0},(t.forEach((t,r)=>{for(var o=0;o<t.length;o++){var n=t[o];h.test(n)?i():s(n)}r<e.length&&(t=>{if(null!=t){if(Array.isArray(t))return t.forEach((t,e)=>{e>0&&i(),s(String(t))});s(String(t))}})(e[r])}),i(),r.length>=3&&"cd"===r[0]&&"&&"===r[2])?{tokens:r.slice(3),initialCwd:r[1]}:{tokens:r}),u=a.tokens,l=a.initialCwd,c=new f(u);return l&&c.cwd(l),c}},16749(t,e,r){r.d(e,{W:()=>s});var o=r(73024),n=r(76760),i=r(73136);function s(t){var e=(0,n.dirname)((0,i.fileURLToPath)(t)),r=[(0,n.join)(e,"simulator-main.mjs"),(0,n.join)(e,"..","simulator-main.mjs"),(0,n.join)((0,n.dirname)(process.execPath),"simulator-main.mjs")];for(var s of r)if((0,o.existsSync)(s))return s;throw Error(`Unable to locate the simulator entry (simulator-main.mjs). Probed paths:
|
|
2
|
-
${r.map(t=>` - ${t}`).join("\n")}
|
|
3
|
-
If you installed the standalone bricks binary, re-run the installer to restore the simulator assets.`)}},7931(t,e,r){r.r(e),r.d(e,{simulator:()=>f});var o=r(99436),n=r(31421),i=r(51455),s=r(73024),a=r(80481),u=r(57975),l=r(12784),c=r(75720),p=r(16749);function f(){return h.apply(this,arguments)}function h(){return(h=o(function*(t=[]){var e,r=(0,u.parseArgs)({args:t,options:{"skip-typecheck":{type:"boolean"},"clear-cache":{type:"boolean"},screenshot:{type:"boolean"},"screenshot-delay":{type:"string"},"screenshot-width":{type:"string"},"screenshot-height":{type:"string"},"screenshot-path":{type:"string"},"screenshot-no-headless":{type:"boolean"},"show-menu":{type:"boolean"},"test-id":{type:"string"},"test-title-like":{type:"string"},"no-keep-open":{type:"boolean"},"cdp-port":{type:"string"},"no-cdp":{type:"boolean"}},strict:!0,allowPositionals:!0}).values,f=process.cwd(),h=JSON.parse((yield(0,i.readFile)(`${f}/application.json`,"utf8"))),d=[];r["clear-cache"]&&d.push("--clear-cache");var v=!0;if(r.screenshot&&(d.push("--take-screenshot"),d.push(JSON.stringify({delay:Number(r["screenshot-delay"])||1e3,width:Number(r["screenshot-width"])||600,height:Number(r["screenshot-height"])||480,path:r["screenshot-path"]||`${f}/screenshot.jpg`,noHeadless:r["screenshot-no-headless"]??!1})),v=!r["no-keep-open"]),r["show-menu"]&&d.push("--show-menu"),r["test-id"]&&d.push("--test-id",r["test-id"]),r["test-title-like"]&&d.push("--test-title-like",r["test-title-like"]),r["no-keep-open"]&&d.push("--no-keep-open"),!r["no-cdp"]){var y=parseInt(r["cdp-port"]||"",10)||19852;d.push("--cdp-port",String(y))}var m=!r["skip-typecheck"],b=(e=o(function*(){yield(0,c.sh)`${(0,c.p)()} ctor compile ${m?[]:["--no-check"]}`}),function(){return e.apply(this,arguments)});yield b();var x=null;if(v){var _=l(b,500);x=(0,s.watch)(`${f}/subspaces`,{recursive:!0},(t,e)=>{console.log(`Detected ${t} in ${e}`),_()})}var g=`${f}/.bricks/devtools.json`,w=()=>{try{(0,s.unlinkSync)(g)}catch{}};try{var k=JSON.parse((yield(0,i.readFile)(g,"utf8")));if(k.pid){try{process.kill(k.pid)}catch{}w()}}catch{}var S=(0,p.W)("file:///Users/jhen/workspace/mybigday-bricks/packages/bricks-cli/src/ctor/tools/simulator.js"),j=(0,n.spawn)("bunx",["--bun","electron",S,...d],{env:{...process.env,BRICKS_STAGE:h.stage||"production"},stdio:["inherit","pipe","inherit"]});(0,a.createInterface)({input:j.stdout}).on("line",t=>{if(t.startsWith("[TEST_RESULT_TOON]"))return void console.log(t.replace("[TEST_RESULT_TOON]",""));if(t){var e=t.match(/^CDP server: ws:\/\/localhost:(\d+)/);if(e){var r={port:parseInt(e[1],10),pid:j.pid,address:"localhost",name:`${h.name||"Unnamed"} (CTOR Simulator)`,startedAt:new Date().toISOString()};(0,i.writeFile)(g,JSON.stringify(r,null,2))}console.log(t)}}),yield new Promise(t=>{j.on("close",()=>t())}),w(),x&&x.close()})).apply(this,arguments)}}};
|