From f41a8276be07a15121e267e3443063e3abd8ad9f Mon Sep 17 00:00:00 2001 From: Polkadot Wiki CI Date: Sat, 7 Oct 2023 00:15:10 +0000 Subject: [PATCH] Deploy website - based on 502c731cc2603953da983cff0b8262bff8031263 --- 404.html | 4 +- assets/js/918b38b6.f22722ab.js | 1 - assets/js/918b38b6.fef65b10.js | 1 + assets/js/9447.7b380a6b.js | 1 - assets/js/9447.8074d0f3.js | 1 + ...n.2dc5ab42.js => runtime~main.2a9d48fc.js} | 2 +- docs/ambassadors.html | 4 +- docs/bug-bounty.html | 4 +- docs/build-data.html | 4 +- docs/build-guide.html | 4 +- docs/build-hackathon.html | 4 +- docs/build-hrmp-channels.html | 4 +- docs/build-index.html | 4 +- docs/build-integrate-assets.html | 4 +- docs/build-integration.html | 4 +- docs/build-node-interaction.html | 4 +- docs/build-node-management.html | 4 +- docs/build-open-source.html | 4 +- docs/build-oracle.html | 4 +- docs/build-pdk.html | 4 +- docs/build-protocol-info.html | 4 +- docs/build-smart-contracts.html | 4 +- docs/build-ss58-registry.html | 4 +- docs/build-storage.html | 4 +- docs/build-substrate.html | 4 +- docs/build-tools-index.html | 4 +- docs/build-transaction-construction.html | 4 +- docs/builders-program.html | 4 +- docs/community-index.html | 4 +- docs/community.html | 4 +- docs/contributing.html | 4 +- docs/contributors.html | 4 +- docs/dashboards-index.html | 4 +- docs/dev-heroes.html | 4 +- docs/faq.html | 4 +- docs/general-index.html | 4 +- docs/getting-started.html | 4 +- docs/glossary.html | 4 +- docs/grants.html | 4 +- docs/how-to-dyor.html | 4 +- docs/kusama-adversarial-cheatsheet.html | 4 +- docs/kusama-bug-bounty.html | 4 +- docs/kusama-claims.html | 4 +- docs/kusama-coc.html | 4 +- docs/kusama-community.html | 4 +- docs/kusama-getting-started.html | 4 +- docs/kusama-index.html | 4 +- docs/kusama-parameters.html | 4 +- docs/kusama-social-recovery.html | 4 +- docs/kusama-timeline.html | 4 +- docs/learn-DOT.html | 4 +- docs/learn-account-abstraction.html | 4 +- docs/learn-account-advanced.html | 4 +- docs/learn-account-generation.html | 4 +- docs/learn-account-multisig.html | 4 +- docs/learn-accounts-index.html | 4 +- docs/learn-accounts.html | 4 +- docs/learn-advanced-index.html | 4 +- docs/learn-architecture-index.html | 4 +- docs/learn-architecture.html | 4 +- docs/learn-archive-index.html | 4 +- docs/learn-assets-index.html | 4 +- docs/learn-assets.html | 4 +- docs/learn-async-backing.html | 112 +++++++++--------- docs/learn-auction.html | 4 +- docs/learn-balance-transfers.html | 4 +- docs/learn-basics-index.html | 4 +- docs/learn-bridges.html | 4 +- docs/learn-collator.html | 4 +- docs/learn-comparisons-avalanche.html | 4 +- docs/learn-comparisons-cosmos.html | 4 +- docs/learn-comparisons-ethereum-2.html | 4 +- docs/learn-comparisons-index.html | 4 +- docs/learn-comparisons-kusama.html | 4 +- docs/learn-comparisons-rollups.html | 4 +- docs/learn-comparisons.html | 4 +- docs/learn-components-index.html | 4 +- docs/learn-consensus.html | 4 +- docs/learn-controller.html | 4 +- docs/learn-crowdloans.html | 4 +- docs/learn-cryptography.html | 4 +- docs/learn-extrinsics.html | 4 +- docs/learn-future-implementations-index.html | 4 +- docs/learn-governance.html | 4 +- docs/learn-guides-assets-create.html | 4 +- docs/learn-guides-assets-index.html | 4 +- docs/learn-guides-assets-ledger.html | 4 +- docs/learn-guides-identity.html | 4 +- docs/learn-guides-index.html | 4 +- docs/learn-guides-polkadot-opengov.html | 4 +- docs/learn-guides-staking-index.html | 4 +- docs/learn-guides-staking-pools.html | 4 +- docs/learn-guides-staking.html | 4 +- docs/learn-guides-treasury.html | 4 +- docs/learn-guides-vault.html | 4 +- docs/learn-identity.html | 4 +- docs/learn-implementations.html | 4 +- docs/learn-index.html | 4 +- docs/learn-inflation.html | 4 +- docs/learn-launch.html | 4 +- docs/learn-nft-index.html | 4 +- docs/learn-nft-pallets.html | 4 +- docs/learn-nft-projects.html | 4 +- docs/learn-nft.html | 4 +- docs/learn-nomination-pools.html | 4 +- docs/learn-nominator.html | 4 +- docs/learn-parachains-faq.html | 4 +- docs/learn-parachains-index.html | 4 +- docs/learn-parachains-protocol.html | 4 +- docs/learn-parachains.html | 4 +- docs/learn-parathreads.html | 4 +- docs/learn-participants-index.html | 4 +- docs/learn-phragmen.html | 4 +- docs/learn-polkadot-host.html | 4 +- docs/learn-polkadot-opengov-treasury.html | 4 +- docs/learn-polkadot-opengov.html | 4 +- docs/learn-proxies-pure.html | 4 +- docs/learn-proxies.html | 4 +- docs/learn-redenomination.html | 4 +- docs/learn-runtime-upgrades.html | 4 +- docs/learn-sassafras.html | 4 +- docs/learn-scams.html | 4 +- docs/learn-spree.html | 4 +- docs/learn-staking-advanced.html | 4 +- docs/learn-staking-index.html | 4 +- docs/learn-staking.html | 4 +- docs/learn-system-chains.html | 4 +- docs/learn-teleport.html | 4 +- docs/learn-transaction-fees.html | 4 +- docs/learn-transactions-index.html | 4 +- docs/learn-treasury.html | 4 +- docs/learn-validator.html | 4 +- docs/learn-video-tutorials.html | 4 +- docs/learn-wasm.html | 4 +- docs/learn-xcm-index.html | 4 +- docs/learn-xcm-instructions.html | 4 +- docs/learn-xcm-pallet.html | 4 +- docs/learn-xcm-transport.html | 4 +- docs/learn-xcm-usecases.html | 4 +- docs/learn-xcm.html | 4 +- docs/learn-xcvm.html | 4 +- docs/learn/xcm.html | 4 +- docs/learn/xcm/config-deep-dive.html | 4 +- docs/learn/xcm/fundamentals-fees.html | 4 +- docs/learn/xcm/fundamentals-multiasset.html | 4 +- docs/learn/xcm/fundamentals-summary.html | 4 +- docs/learn/xcm/fundamentals-xcvm.html | 4 +- docs/learn/xcm/fundamentals.html | 4 +- .../fundamentals/multilocation-example.html | 4 +- .../fundamentals/multilocation-junctions.html | 4 +- .../fundamentals/multilocation-summary.html | 4 +- .../learn/xcm/fundamentals/multilocation.html | 4 +- docs/learn/xcm/introduction.html | 4 +- docs/learn/xcm/journey-assets.html | 4 +- docs/learn/xcm/journey-channels.html | 4 +- docs/learn/xcm/journey-expectations.html | 4 +- docs/learn/xcm/journey-fees.html | 4 +- docs/learn/xcm/journey-holding.html | 4 +- docs/learn/xcm/journey-locks.html | 4 +- docs/learn/xcm/journey-origin.html | 4 +- docs/learn/xcm/journey-queries.html | 4 +- docs/learn/xcm/journey-register.html | 4 +- docs/learn/xcm/journey-summary.html | 4 +- docs/learn/xcm/journey-transact.html | 4 +- docs/learn/xcm/journey-version.html | 4 +- docs/learn/xcm/journey.html | 4 +- docs/learn/xcm/journey/transfers-reserve.html | 4 +- docs/learn/xcm/journey/transfers-summary.html | 4 +- .../learn/xcm/journey/transfers-teleport.html | 4 +- docs/learn/xcm/journey/transfers.html | 4 +- docs/learn/xcm/overview-architecture.html | 4 +- docs/learn/xcm/overview-format.html | 4 +- docs/learn/xcm/overview-intro.html | 4 +- docs/learn/xcm/overview-summary.html | 4 +- docs/learn/xcm/overview-xcvm.html | 4 +- docs/learn/xcm/overview.html | 4 +- docs/learn/xcm/quickstart-first-look.html | 4 +- docs/learn/xcm/quickstart-simulator.html | 4 +- docs/learn/xcm/quickstart-summary.html | 4 +- docs/learn/xcm/quickstart.html | 4 +- docs/learn/xcm/reference-glossary.html | 4 +- docs/learn/xcm/reference-xcvm-registers.html | 4 +- docs/learn/xcm/references.html | 4 +- docs/learn/xcm/testing.html | 4 +- docs/ledger.html | 4 +- docs/maintain-bootnode.html | 4 +- docs/maintain-endpoints.html | 4 +- docs/maintain-errors.html | 4 +- docs/maintain-guides-avoid-slashing.html | 4 +- docs/maintain-guides-democracy.html | 4 +- docs/maintain-guides-how-to-chill.html | 4 +- docs/maintain-guides-how-to-join-council.html | 4 +- ...ntain-guides-how-to-monitor-your-node.html | 4 +- ...aintain-guides-how-to-nominate-kusama.html | 4 +- ...ntain-guides-how-to-nominate-polkadot.html | 4 +- ...aintain-guides-how-to-stop-validating.html | 4 +- docs/maintain-guides-how-to-systemd.html | 4 +- docs/maintain-guides-how-to-upgrade.html | 4 +- ...aintain-guides-how-to-validate-kusama.html | 4 +- ...ntain-guides-how-to-validate-polkadot.html | 4 +- ...aintain-guides-how-to-vote-councillor.html | 4 +- docs/maintain-guides-polkadot-opengov.html | 4 +- docs/maintain-guides-secure-validator.html | 4 +- docs/maintain-guides-society-kusama.html | 4 +- docs/maintain-guides-validator-community.html | 4 +- docs/maintain-guides-validator-payout.html | 4 +- docs/maintain-index.html | 4 +- docs/maintain-networks.html | 4 +- docs/maintain-polkadot-parameters.html | 4 +- docs/maintain-rpc.html | 4 +- docs/maintain-sync.html | 4 +- docs/maintain-wss.html | 4 +- docs/metadata.html | 4 +- docs/polkadot-direction.html | 4 +- docs/polkadot-v1.html | 4 +- docs/polkadot-vault.html | 4 +- docs/polkadot-vision-index.html | 4 +- docs/polkadotjs-ui.html | 4 +- docs/polkadotjs.html | 4 +- docs/programmes-index.html | 4 +- docs/research.html | 4 +- docs/staking-dashboard.html | 4 +- docs/start-building.html | 4 +- docs/stay-safe-index.html | 4 +- docs/thousand-contributors.html | 4 +- docs/thousand-validators.html | 4 +- docs/wallets-and-extensions.html | 4 +- docs/wallets-index.html | 4 +- docs/web3-and-polkadot.html | 4 +- index.html | 4 +- search.html | 4 +- 231 files changed, 508 insertions(+), 510 deletions(-) delete mode 100644 assets/js/918b38b6.f22722ab.js create mode 100644 assets/js/918b38b6.fef65b10.js delete mode 100644 assets/js/9447.7b380a6b.js create mode 100644 assets/js/9447.8074d0f3.js rename assets/js/{runtime~main.2dc5ab42.js => runtime~main.2a9d48fc.js} (99%) diff --git a/404.html b/404.html index 94ae2f072329..de9f1346fbeb 100644 --- a/404.html +++ b/404.html @@ -19,13 +19,13 @@ - +
Skip to main content

Page Not Found

We could not find what you were looking for.

Please contact the owner of the site that linked you to the original URL and let them know their link is broken.

- + \ No newline at end of file diff --git a/assets/js/918b38b6.f22722ab.js b/assets/js/918b38b6.f22722ab.js deleted file mode 100644 index c568bad895e4..000000000000 --- a/assets/js/918b38b6.f22722ab.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[2508],{47940:(e,a,n)=>{"use strict";n.d(a,{Z:()=>h});var t=n(74165),o=n(15861),i=n(67294),r=n(87152),s=n(34200),c=n(67425);function l(e,a,n){return d.apply(this,arguments)}function d(){return(d=(0,o.Z)((0,t.Z)().mark((function e(a,n,o){var i,c,l,d,p;return(0,t.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=void 0,c=void 0,e.t0=a,e.next="polkadot"===e.t0?5:"kusama"===e.t0?7:"statemine"===e.t0?9:"statemint"===e.t0?11:13;break;case 5:return i="wss://rpc.polkadot.io",e.abrupt("break",14);case 7:return i="wss://kusama-rpc.polkadot.io/",e.abrupt("break",14);case 9:return i="wss://statemine-rpc.polkadot.io/",e.abrupt("break",14);case 11:return i="wss://statemint-rpc.polkadot.io/",e.abrupt("break",14);case 13:console.log("Unknown socket url provided, no connection made.");case 14:if(void 0!==i){e.next=18;break}return e.abrupt("return");case 18:return l=new r.U(i),e.next=21,s.G.create({provider:l});case 21:d=e.sent,(p=n.split(".")).forEach((function(e){e in d&&(d=d[e])})),e.t1=p[0],e.next="consts"===e.t1?27:"query"===e.t1?29:34;break;case 27:return c=d.toString(),e.abrupt("break",35);case 29:return e.next=31,d();case 31:return c=(c=e.sent).toString(),e.abrupt("break",35);case 34:console.log("Unknown path prefix ("+p[0]+") in "+n);case 35:return e.abrupt("return",c);case 36:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e,a,n,t){switch(a){case"humanReadable":(0,c.HumanReadable)(e,n,t);break;case"precise":(0,c.Precise)(e,n,t);break;case"blocksToDays":(0,c.BlocksToDays)(e,t);break;case"percentage":(0,c.Percentage)(e,t);break;case"arrayLength":(0,c.ArrayLength)(e,t);break;default:return void console.log("Ignoring unknown filter type")}}const h=function(e){var a=e.network,n=e.path,r=e.defaultValue,s=e.filter,c=void 0===s?void 0:s,d=(0,i.useState)(""),h=d[0],k=d[1];return a=a.toLowerCase(),(0,i.useEffect)((function(){void 0!==c?p(r.toString(),c,a,k):k(r.toString());var e=void 0;switch(a){case"polkadot":e="wss://rpc.polkadot.io";break;case"kusama":e="wss://kusama-rpc.polkadot.io/";break;case"statemine":e="wss://statemine-rpc.polkadot.io/";break;case"statemint":e="wss://statemint-rpc.polkadot.io/";break;default:console.log("Unknown network provided, "+a)}if(void 0===e)console.log("Failed to connect to a valid websocket, applying default");else{var i=function(){var e=(0,o.Z)((0,t.Z)().mark((function e(){var o;return(0,t.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l(a,n,k);case 2:if(void 0!==(o=e.sent)){e.next=7;break}return e.abrupt("return");case 7:void 0!==c?p(o,c,a,k):k(o);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();try{i()}catch(s){console.log(s)}}}),[]),h}},67425:e=>{var a={polkadot:{precision:1e10,symbol:"DOT"},kusama:{precision:1e12,symbol:"KSM"},statemint:{precision:1e10,symbol:"DOT"},statemine:{precision:1e12,symbol:"KSM"}};e.exports={HumanReadable:function(e,n,t){var o=void 0;if("polkadot"===n||"statemint"===n)o=3;else{if("kusama"!==n&&"statemine"!==n)return void console.log("Unknown network type found when attempting to apply 'Human Readable' filter");o=6}e=parseFloat(e),t((e=Number.isInteger(e/a[n].precision)?e/a[n].precision+" "+a[n].symbol:(e/a[n].precision).toFixed(o)+" "+a[n].symbol).toString())},Precise:function(e,n,t){t(e=(e=parseFloat(e))/a[n].precision+" "+a[n].symbol)},BlocksToDays:function(e,a){a((e=6*e/86400).toString())},Percentage:function(e,a){a((e/=1e7).toString())},ArrayLength:function(e,a){a((e=e.split(",").length).toString())}}},90594:(e,a,n)=>{"use strict";n.r(a),n.d(a,{assets:()=>d,contentTitle:()=>c,default:()=>u,frontMatter:()=>s,metadata:()=>l,toc:()=>p});var t=n(87462),o=n(63366),i=(n(67294),n(3905)),r=(n(47940),["components"]),s={id:"learn-async-backing",title:"Asynchronous Backing",sidebar_label:"Asynchronous Backing",description:"A brief overview of asynchronous backing, and how it affects Polkadot's scalability.",keywords:["parachains","backing","parablock","perspective parachains","unincluded segments"],slug:"../learn-async-backing"},c=void 0,l={unversionedId:"learn/learn-async-backing",id:"learn/learn-async-backing",title:"Asynchronous Backing",description:"A brief overview of asynchronous backing, and how it affects Polkadot's scalability.",source:"@site/../docs/learn/learn-async-backing.md",sourceDirName:"learn",slug:"/learn-async-backing",permalink:"/docs/learn-async-backing",draft:!1,editUrl:"https://github.com/w3f/polkadot-wiki/edit/master/docs/learn/learn-async-backing.md",tags:[],version:"current",lastUpdatedBy:"Filippo",lastUpdatedAt:1696525337,formattedLastUpdatedAt:"Oct 5, 2023",frontMatter:{id:"learn-async-backing",title:"Asynchronous Backing",sidebar_label:"Asynchronous Backing",description:"A brief overview of asynchronous backing, and how it affects Polkadot's scalability.",keywords:["parachains","backing","parablock","perspective parachains","unincluded segments"],slug:"../learn-async-backing"},sidebar:"docs",previous:{title:"Parathreads",permalink:"/docs/learn-parathreads"},next:{title:"SASSAFRAS",permalink:"/docs/learn-sassafras"}},d={},p=[{value:"Synchronous Backing",id:"synchronous-backing",level:2},{value:"Asynchronous Backing",id:"asynchronous-backing",level:2},{value:"Synchronous vs. Asynchronous Backing",id:"synchronous-vs-asynchronous-backing",level:3},{value:"Sync Backing as special case of Async Backing",id:"sync-backing-as-special-case-of-async-backing",level:3},{value:"Async Backing Diagram",id:"async-backing-diagram",level:3},{value:"Terminology",id:"terminology",level:2},{value:"Candidate Receipt",id:"candidate-receipt",level:3},{value:"Pipelining",id:"pipelining",level:3},{value:"Unincluded Segments",id:"unincluded-segments",level:3},{value:"Prospective Parachains",id:"prospective-parachains",level:3},{value:"Learn More",id:"learn-more",level:2}],h={toc:p},k="wrapper";function u(e){var a=e.components,s=(0,o.Z)(e,r);return(0,i.kt)(k,(0,t.Z)({},h,s,{components:a,mdxType:"MDXLayout"}),(0,i.kt)("admonition",{title:"Learn about Parachain Consensus",type:"info"},(0,i.kt)("p",{parentName:"admonition"},"To fully follow the material on this page, it is recommended to be familiar with the primary stages\nof the ",(0,i.kt)("a",{parentName:"p",href:"/docs/learn-parachains-protocol"},"Parachain Protocol"),".")),(0,i.kt)("p",null,"In Polkadot, parablocks are generated by ",(0,i.kt)("a",{parentName:"p",href:"/docs/learn-collator"},"collators")," on the parachain side and\nsent to ",(0,i.kt)("a",{parentName:"p",href:"/docs/learn-validator"},"validators")," on the relay chain side for backing."),(0,i.kt)("admonition",{title:"What is backing?",type:"info"},(0,i.kt)("p",{parentName:"admonition"},(0,i.kt)("strong",{parentName:"p"},"Backing")," refers to the process in which parablocks are verified by a subset of validators or\nbacking groups. It is an important step in the validation process for parablocks, as it is the first\nline of defense in ensuring censorship resistance. Parablocks only need to be backed by one\nvalidator, and as a consequence backing does not ensure parablock validity.")),(0,i.kt)("p",null,"Backed parablocks are sent to other validators for inclusion into the relay chain. Parablocks are\nincluded when validators have attested to having received\n",(0,i.kt)("a",{parentName:"p",href:"/docs/learn-parachains-protocol#erasure-codes"},"erasure coded chunks")," of the parablock data. Note\n",(0,i.kt)("a",{parentName:"p",href:"#candidate-receipt"},"candidate receipts")," and not the parablocks themselves are included in relay\nblocks (but for simplicity we just refer to parablocks as being included). From the time they are\ngenerated, parablocks must be anchored to a relay chain block called ",(0,i.kt)("strong",{parentName:"p"},"relay parent"),". The relay\nparent is an input to parablock candidate generation. It provides necessary context to build the\nnext parablock. Note that the relay parent of a parablock and the relay block including that\nparablock are always different."),(0,i.kt)("h2",{id:"synchronous-backing"},"Synchronous Backing"),(0,i.kt)("p",null,"Before diving into asynchronous backing, it is important to understand what synchronous backing is\nand what its main limitations are. In synchronous backing, parablock generation is tightly coupled\nto the relay chain's progression:"),(0,i.kt)("ol",null,(0,i.kt)("li",{parentName:"ol"},"A new parablock can be produced after including the previous one (i.e. every 12 seconds)."),(0,i.kt)("li",{parentName:"ol"},"Context to build the next parablock is drawn from the latest included parablock ancestor"),(0,i.kt)("li",{parentName:"ol"},"The relay parent must be the latest relay chain block.")),(0,i.kt)("p",null,"Because of (1) parablocks can be generated every other relay chain block (i.e. every 12 seconds).\nBecause of (2) generation of parablock ",(0,i.kt)("inlineCode",{parentName:"p"},"P")," can only start when ",(0,i.kt)("inlineCode",{parentName:"p"},"P - 1")," is included (there is no\n",(0,i.kt)("a",{parentName:"p",href:"#pipelining"},"pipelining"),"). Because of (3) execution time can take maximum 0.5 seconds as parablock\n",(0,i.kt)("inlineCode",{parentName:"p"},"P")," is rushing to be backed in the next 5.5 seconds (2 seconds needed for backing and the rest for\ngossiping). Every parablock is backed in 6 seconds (one relay chain block), and included in the next\n6 seconds (next relay chain block). Time from generation to inclusion is 12 seconds. This limits the\namount of data a collator can add to each parablock."),(0,i.kt)("p",null,"Note that parablock generation will choose the most recently received relay block as a relay parent,\nalthough with imperfect network that may not be the same as the true most recent relay block. So, in\ngeneral, if relay block ",(0,i.kt)("inlineCode",{parentName:"p"},"R")," is the relay parent of parablock ",(0,i.kt)("inlineCode",{parentName:"p"},"P"),", then ",(0,i.kt)("inlineCode",{parentName:"p"},"P")," could be backed in\n",(0,i.kt)("inlineCode",{parentName:"p"},"R + 1")," and included in ",(0,i.kt)("inlineCode",{parentName:"p"},"R + 2"),"."),(0,i.kt)("p",null,(0,i.kt)("img",{alt:"sync-backing",src:n(54804).Z,width:"1920",height:"800"})),(0,i.kt)("p",null,"From left to right, parablock P1 is anchored to the relay parent R0 (showed with an ",(0,i.kt)("inlineCode",{parentName:"p"},"x"),"), backed\ninto the relay chain block R1, and included in R2. After the inclusion of P1, collators can start\ngenerating P2 that must be anchored to the relay parent R2. Note that R2 will be the relay parent of\nP2 if R2 is included on the relay chain and gossiped to the collator producing P2."),(0,i.kt)("admonition",{title:"Every collator also runs an attached relay chain full node",type:"info"},(0,i.kt)("p",{parentName:"admonition"},"The attached relay node receives relay blocks via gossip. Then the relay node talks to the parachain\nnode through the ",(0,i.kt)("inlineCode",{parentName:"p"},"CollationGeneration")," subsystem. R2 is gossiped to the relay full node attached to\nthe collator producing P2. Then ",(0,i.kt)("inlineCode",{parentName:"p"},"CollationGeneration")," passes information about R2 to the collator\nnode. Finally, relay parent information from R2 informs the generation of candidate P2.")),(0,i.kt)("p",null,"Because P2 is rushing to be backed in 6 seconds into R3, collators have only 0.5 seconds to generate\nit and present it to backing groups on the relay chain that will take approximately 2 seconds to\nback it and some extra time for gossiping it (the whole process from collation to backing lasts 6\nseconds). P2 is included in R4, which could be used as a relay parent for P3 (not shown). After 24\nseconds P1 and P2 are included into the relay chain. Note how collators can start new parablocks\nevery 12 seconds, but only have 0.5 seconds to generate them."),(0,i.kt)("h2",{id:"asynchronous-backing"},"Asynchronous Backing"),(0,i.kt)("admonition",{title:"Disclaimer: Performance Measurements",type:"warning"},(0,i.kt)("p",{parentName:"admonition"},"Due to asynchronous backing not being fully implemented in a running production network, each\nperformance metric is not thoroughly tested nor guaranteed until proper benchmarking has occurred.")),(0,i.kt)("p",null,(0,i.kt)("img",{alt:"sync-vs-async-backing",src:n(4919).Z,width:"1920",height:"800"})),(0,i.kt)("p",null,"In asynchronous backing parablocks (P) are included every 6 seconds, and backing (B) and inclusion\n(I) can happen within the same relay chain block (R)."),(0,i.kt)("h3",{id:"synchronous-vs-asynchronous-backing"},"Synchronous vs. Asynchronous Backing"),(0,i.kt)("p",null,"Below, a table showing the main differences between synchronous and asynchronous backing."),(0,i.kt)("table",null,(0,i.kt)("thead",{parentName:"table"},(0,i.kt)("tr",{parentName:"thead"},(0,i.kt)("th",{parentName:"tr",align:"left"}),(0,i.kt)("th",{parentName:"tr",align:"center"},"Sync Backing"),(0,i.kt)("th",{parentName:"tr",align:"center"},"Async Backing"),(0,i.kt)("th",{parentName:"tr",align:"center"},"Async Backing Advantage"))),(0,i.kt)("tbody",{parentName:"table"},(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:"left"},(0,i.kt)("strong",{parentName:"td"},"Parablocks included every")),(0,i.kt)("td",{parentName:"tr",align:"center"},"12 seconds"),(0,i.kt)("td",{parentName:"tr",align:"center"},"6 seconds"),(0,i.kt)("td",{parentName:"tr",align:"center"},"2x more throughput or 2x less latency")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:"left"},(0,i.kt)("strong",{parentName:"td"},"Parablock's maximum generation time")),(0,i.kt)("td",{parentName:"tr",align:"center"},"0.5 seconds"),(0,i.kt)("td",{parentName:"tr",align:"center"},"Recommended 2 seconds, but higher values are possible"),(0,i.kt)("td",{parentName:"tr",align:"center"},"4x more data in a parablock")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:"left"},(0,i.kt)("strong",{parentName:"td"},"Relay parent")),(0,i.kt)("td",{parentName:"tr",align:"center"},"Is the latest relay chain block"),(0,i.kt)("td",{parentName:"tr",align:"center"},"Is not necessarily the latest relay chain block"),(0,i.kt)("td",{parentName:"tr",align:"center"},"Collators can submit parablocks to backing groups in advance")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:"left"},(0,i.kt)("strong",{parentName:"td"},"Collators can build on")),(0,i.kt)("td",{parentName:"tr",align:"center"},"The most recent ancestor included in the latest relay chain block"),(0,i.kt)("td",{parentName:"tr",align:"center"},"An ancestor included in a relay chain block (not necessarily the latest), with augmented information from the latest ancestor in the ",(0,i.kt)("a",{parentName:"td",href:"#unincluded-segments"},"unincluded segment")),(0,i.kt)("td",{parentName:"tr",align:"center"},"Collators can start building parablocks in advance")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:"left"},(0,i.kt)("strong",{parentName:"td"},"Number of unincluded parablocks")),(0,i.kt)("td",{parentName:"tr",align:"center"},"Only one"),(0,i.kt)("td",{parentName:"tr",align:"center"},"One, or more than one (depends on configuration parameters)"),(0,i.kt)("td",{parentName:"tr",align:"center"},"More efficiency and scalability")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:"left"},(0,i.kt)("strong",{parentName:"td"},"Unincluded parablocks")),(0,i.kt)("td",{parentName:"tr",align:"center"},"Cannot be re-proposed"),(0,i.kt)("td",{parentName:"tr",align:"center"},"Can be re-proposed if not successfully included in the first attempt"),(0,i.kt)("td",{parentName:"tr",align:"center"},"Decrease wastage of unused blockspace")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:"left"},(0,i.kt)("strong",{parentName:"td"},"Parablock's Backing-to-inclusion time")),(0,i.kt)("td",{parentName:"tr",align:"center"},"12 seconds"),(0,i.kt)("td",{parentName:"tr",align:"center"},"12 seconds"),(0,i.kt)("td",{parentName:"tr",align:"center"},"No change")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:"left"},(0,i.kt)("strong",{parentName:"td"},"Parablock's Inclusion-to-finality time")),(0,i.kt)("td",{parentName:"tr",align:"center"},"30 seconds"),(0,i.kt)("td",{parentName:"tr",align:"center"},"30 seconds"),(0,i.kt)("td",{parentName:"tr",align:"center"},"No change")))),(0,i.kt)("p",null,"In synchronous backing collators generate parablocks using context entirely pulled from the relay\nchain. While in asynchronous backing collators use additional context from the\n",(0,i.kt)("a",{parentName:"p",href:"#unincluded-segments"},"unincluded segment"),". Parablocks are included every 6 seconds because backing\nof parablock ",(0,i.kt)("inlineCode",{parentName:"p"},"N + 1")," and inclusion of parablock ",(0,i.kt)("inlineCode",{parentName:"p"},"N")," can happen on the same relay chain bock\n(",(0,i.kt)("a",{parentName:"p",href:"#pipelining"},"pipelining"),"). However, as for synchronous backing, a parablock takes 12 seconds to\nget backed and included, and from inclusion to finality there is an additional 30-second time\nwindow."),(0,i.kt)("p",null,"Because the throughput is increased by 2x and parachains have 4x more time to generate blocks,\nasynchronous backing is expected to deliver 8x more blockspace to parachains."),(0,i.kt)("h3",{id:"sync-backing-as-special-case-of-async-backing"},"Sync Backing as special case of Async Backing"),(0,i.kt)("p",null,"Two parameters of asynchronous backing can be controlled by\n",(0,i.kt)("a",{parentName:"p",href:"/docs/learn-polkadot-opengov"},"Governance"),":"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("p",{parentName:"li"},(0,i.kt)("a",{parentName:"p",href:"https://github.com/paritytech/polkadot-sdk/blob/f204e3264f945c33b4cea18a49f7232c180b07c5/polkadot/primitives/src/vstaging/mod.rs#L49"},(0,i.kt)("inlineCode",{parentName:"a"},"max_candidate_depth")),":\nthe number of parachain blocks a collator can produce that are not yet included in the relay\nchain.")),(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("p",{parentName:"li"},(0,i.kt)("a",{parentName:"p",href:"https://github.com/paritytech/polkadot-sdk/blob/f204e3264f945c33b4cea18a49f7232c180b07c5/polkadot/primitives/src/vstaging/mod.rs#L54"},(0,i.kt)("inlineCode",{parentName:"a"},"allowed_ancestry_len")),":\nthe oldest relay chain parent a parachain block can be built on top of."))),(0,i.kt)("p",null,"Values of zero for both correspond to synchronous backing: ",(0,i.kt)("inlineCode",{parentName:"p"},"max_candidate_depth = 0")," means there can\nbe only one unincluded parablock at all times, and ",(0,i.kt)("inlineCode",{parentName:"p"},"allowed_ancestry_len = 0")," means a parablock can\nbe built only on the latest relay parent for that parachain. Initial values will be set to 3 (4\nunincluded parablocks at all times) and 2 (relay parent can be the third last)."),(0,i.kt)("h3",{id:"async-backing-diagram"},"Async Backing Diagram"),(0,i.kt)("p",null,(0,i.kt)("img",{alt:"async-backing",src:n(16588).Z,width:"1920",height:"800"})),(0,i.kt)("p",null,"The diagram assumes:"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("inlineCode",{parentName:"li"},"max_candidate_depth = 2"),", meaning that there can be a maximum of three unincluded parablocks at\nall times"),(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("inlineCode",{parentName:"li"},"allowed_ancestry_len = 1"),", meaning parablocks can be anchored to the last or second-last relay\nparent (i.e. collators can start preparing parablocks 6 seconds in advance)")),(0,i.kt)("p",null,"From left to right, parablock P1 is backed into the relay chain block R1 and included into R2. While\nP1 undergoes backing, collators can already start to generate P2, which will have R0 as a relay\nparent (showed with an ",(0,i.kt)("inlineCode",{parentName:"p"},"x"),"). Note how R0 can also be relay parent for P1 as long as in the\nunincluded segment there is a maximum of three unincluded parablocks. Parablock P2 can be backed in\nR2 (the same relay block where P1 is included) and included in R3. Collators can now use up to two\nseconds to generate parablocks. And so on, P3 can be generated while P2 is checked by backing\ngroups, and P4 can be built while P3 undergoing backing. In 24 seconds, P1 to P3 are included into\nthe relay chain."),(0,i.kt)("p",null,"Note how there are always three unincluded parablocks at all times, i.e. compared to synchronous\nbacking there can be multiple unincluded parablocks (i.e. ",(0,i.kt)("a",{parentName:"p",href:"#pipelining"},"pipelining"),"). For example,\nwhen P1 undergoing inclusion, P2 and P3 are undergoing backing. Collators were able to generate\nmultiple unincluded parablocks because on their end they have the\n",(0,i.kt)("a",{parentName:"p",href:"#unincluded-segments"},"unincluded segment"),", a local storage of not included parablock ancestors that\nthey can use to fetch information to build new parablocks. On the relay chain side\n",(0,i.kt)("a",{parentName:"p",href:"#prospective-parachains"},"perspective parachains")," repeats the work each unincluded segment does in\ntracking candidates (as validators cannot trust the record kept on parachains)."),(0,i.kt)("p",null,"The 6-second relay chain block delay includes a backing execution timeout (2 seconds) and some time\nfor network latency (the time it takes to gossip messages across the entire network). The limit\ncollators have to generate parablocks is how long it takes to back it (i.e., 2 seconds). Collation\ngeneration conservatively always gives itself the same time limits. If there is extra time for\ncollation generation and backing (i.e., more than 2s + 6s), then all that extra time is allocated to\nbacking (see figure). This could result in backable blocks waiting their turn at the end of the\nbacking step for a few extra seconds until a core frees up to back that block as of the next relay\nblock or some later relay block. Note a core is occupied after backing and before inclusion."),(0,i.kt)("p",null,"The 2-second block generation time is thus a limiter, not a system limitation. If block generation\ntakes >2 seconds, the unincluded segment will shrink (less unincluded parablocks), while if it takes\n<2 seconds, the segment will grow (more unincluded parablocks that will need to be backed and\nincluded). Such flexibility from the parachain side will be possible when, on the relay chain side,\nthere will be elastic scaling (i.e.,\n",(0,i.kt)("a",{parentName:"p",href:"/docs/polkadot-direction#agile-core-usage"},"agile core usage")," and\n",(0,i.kt)("a",{parentName:"p",href:"/docs/polkadot-direction#agile-coretime-allocation"},"coretime allocation"),")."),(0,i.kt)("h2",{id:"terminology"},"Terminology"),(0,i.kt)("h3",{id:"candidate-receipt"},"Candidate Receipt"),(0,i.kt)("p",null,"Saying that a parablock has been included in a realy chain parent does not mean that the entire\nparablock is in the relay chain block. Instead, ",(0,i.kt)("strong",{parentName:"p"},"candidate receipt")," consisting of the hash of the\nparablock, state roots and ID info is placed on the parent block on the relay chain. The relay chain\ndoes not access the entire state of a parachain but only the values that changed during that block\nand the merkelized hashes of the unchanged values."),(0,i.kt)("h3",{id:"pipelining"},"Pipelining"),(0,i.kt)("p",null,"Asynchronous backing is a feature that introduces\n",(0,i.kt)("a",{parentName:"p",href:"https://www.techtarget.com/whatis/definition/pipelining"},"pipelining")," to the parachain block\n",(0,i.kt)("a",{parentName:"p",href:"/docs/learn-parachains-protocol"},"generation, backing and inclusion"),'. It is analogous to the logical\npipelining of processor instruction in "traditional" architectures, where some instructions may be\nexecuted before others are complete. Instructions may also be executed in parallel, enabling\nmultiple processor parts to work on potentially different instructions simultaneously.'),(0,i.kt)("p",null,"Bundles of state transitions represented as blocks may be processed similarly. In the context of\nPolkadot, pipelining aims to increase the\nthroughput of the entire network by completing the backing and inclusion steps for different blocks\nat the same time. Asynchronous backing does not just allow for pipelining within a single pipe (or\ncore). It lays the foundation for a large number of pipes (or cores) to run for the same parachain\nat the same time. In that way we have two distinct new forms of parallel computation."),(0,i.kt)("h3",{id:"unincluded-segments"},"Unincluded Segments"),(0,i.kt)("p",null,"Unincluded segments are chains of candidate parablocks that have yet to be included in the relay\nchain, i.e. they can contain parablocks at any stage pre-inclusion. An unincluded segment may thus\ninclude candidates that are seconded, backable, or backed. Every parablock candidate recorded in the\nunincluded segment is immediately advertised to validators to begin the backing process."),(0,i.kt)("p",null,"The backing process occurs on the relay chain, whereas unincluded segments live in the runtimes of\nparachain collators. The core functionality that asynchronous backing brings is the ability to build\non these unincluded segments of block ancestors rather than building only on ancestors included in\nthe relay chain state."),(0,i.kt)("p",null,"The purpose of each unincluded segment is two fold:"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},"Make each parachain aware of when and at what depth it can build blocks that won't be rejected by\nthe relay chain"),(0,i.kt)("li",{parentName:"ul"},"Provide critical context necessary to build parablocks with parent blocks that have yet to be\nincluded. The unincluded segment is all about building parablocks.")),(0,i.kt)("h3",{id:"prospective-parachains"},"Prospective Parachains"),(0,i.kt)("p",null,"The purpose of\n",(0,i.kt)("a",{parentName:"p",href:"https://paritytech.github.io/polkadot/book/node/backing/prospective-parachains.html"},"prospective parachains"),"\nis two fold:"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("p",{parentName:"li"},"Keep track of parablocks which have been submitted to backers but not yet included. This includes\ntracking the full unincluded ancestry of each parablock, without which it wouldn't be possible to\nverify their legitimacy.")),(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("p",{parentName:"li"},"Look up and provide candidates which are children of the most recently included parablock for each\nparachain. These are taken as inputs to the availability process. Prospective parachains is all\nabout tracking, storing, and providing candidates to the availability/inclusion step."))),(0,i.kt)("p",null,"Prospective parachains essentially repeats the work each ",(0,i.kt)("a",{parentName:"p",href:"#unincluded-segments"},"unincluded segment"),"\ndoes in tracking candidates. Validators cannot simply trust the availability or validity of records\nkept on parachains. Prospective parachains is the relay chain's record of all parablock candidates\nundergoing the backing and inclusion process. It is the authoritative gate keeper for parablock\nvalidity. Whereas the unincluded segment is a local record which allows parachains to produce blocks\nwhich comply with the rules prospective parachains later enforces."),(0,i.kt)("p",null,"The unincluded segment lives in the parachain runtime, so it doesn't know or care about forks/other\nparachains. Prospective parachains lives in the relay chain client. So it has to simultaneously keep\ntrack of candidates from all forks of all parachains. It is as if you folded the unincluded segments\nfrom every fork of every parachain into one giant data structure. When you fold unincluded segments\nrepresenting different chain forks together, they create a tree structure. Hence the term\n",(0,i.kt)("a",{parentName:"p",href:"https://paritytech.github.io/polkadot/book/node/backing/prospective-parachains.html#fragment-trees"},(0,i.kt)("strong",{parentName:"a"},"fragment tree")),"."),(0,i.kt)("p",null,"A single unincluded segment tells a collator whether it can build on top of one fork of one\nparachain. Prospective parachains tells a validator whether it should accept blocks built on top of\nany fork from any parachain."),(0,i.kt)("p",null,"A parablock stops being a prospective parablock at the moment when it is included on chain. At that\npoint prospective parachains doesn't have to care about it anymore. Alternatively, a parablock's\nrelay parent can get too old before that parablock is included, in which case prospective parachains\ncan throw away the candidate."),(0,i.kt)("h2",{id:"learn-more"},"Learn More"),(0,i.kt)("p",null,"This topic is evolving and being implemented at the moment, keep up to date using the following\nresources:"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("a",{parentName:"li",href:"https://polkadot.network/blog/polkadot-roadmap-roundup"},"Polkadot Roadmap Roundup")," - Article by\nRob Habermeier, Polkadot founder, details the plans for Polkadot for 2023."),(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("a",{parentName:"li",href:"https://github.com/paritytech/polkadot/issues/3779"},"Asynchronous Backing Spec & Tracking Issue")," -\nThe implementation tracking issue for asynchronous backing"),(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("a",{parentName:"li",href:"https://paritytech.github.io/polkadot/book/node/backing/prospective-parachains.html"},"Prospective Parachains Subsystem - The Polkadot Parachain Host Implementers' Guide")),(0,i.kt)("li",{parentName:"ul"},"Chapter 6.11. from Polkadot Blockchain Academy (PBA) lecture material:\n",(0,i.kt)("a",{parentName:"li",href:"https://polkadot-blockchain-academy.github.io/pba-book/polkadot/async-backing-shallow/page.html"},"Asynchronous Backing (Shallow)")),(0,i.kt)("li",{parentName:"ul"},"Chapter 6.15. from PBA lecture material:\n",(0,i.kt)("a",{parentName:"li",href:"https://polkadot-blockchain-academy.github.io/pba-book/polkadot/async-backing-deep/page.html"},"Asynchronous Backing (Deep)")),(0,i.kt)("li",{parentName:"ul"},"Polkadot Blog Post -\n",(0,i.kt)("a",{parentName:"li",href:"https://www.polkadot.network/blog/elevating-polkadots-performance-and-scale-with-asynchronous-backing"},"Asynchronous Backing: Elevating Polkadot's Performance and Scale"))))}u.isMDXComponent=!0},16588:(e,a,n)=>{"use strict";n.d(a,{Z:()=>t});const t=n.p+"assets/images/async-backing-30d83e1ed114a3fb5e4ac44e58e2d6dc.png"},54804:(e,a,n)=>{"use strict";n.d(a,{Z:()=>t});const t=n.p+"assets/images/sync-backing-e5c74751cd62df36651f23fab421f7cf.png"},4919:(e,a,n)=>{"use strict";n.d(a,{Z:()=>t});const t=n.p+"assets/images/sync-vs-async-backing-3548388f98c44fc684a6176a6ccb8ed2.png"},46601:()=>{}}]); \ No newline at end of file diff --git a/assets/js/918b38b6.fef65b10.js b/assets/js/918b38b6.fef65b10.js new file mode 100644 index 000000000000..ef02aa8220f9 --- /dev/null +++ b/assets/js/918b38b6.fef65b10.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[2508],{47940:(e,a,n)=>{"use strict";n.d(a,{Z:()=>h});var t=n(74165),o=n(15861),i=n(67294),r=n(87152),s=n(34200),c=n(67425);function l(e,a,n){return d.apply(this,arguments)}function d(){return(d=(0,o.Z)((0,t.Z)().mark((function e(a,n,o){var i,c,l,d,p;return(0,t.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=void 0,c=void 0,e.t0=a,e.next="polkadot"===e.t0?5:"kusama"===e.t0?7:"statemine"===e.t0?9:"statemint"===e.t0?11:13;break;case 5:return i="wss://rpc.polkadot.io",e.abrupt("break",14);case 7:return i="wss://kusama-rpc.polkadot.io/",e.abrupt("break",14);case 9:return i="wss://statemine-rpc.polkadot.io/",e.abrupt("break",14);case 11:return i="wss://statemint-rpc.polkadot.io/",e.abrupt("break",14);case 13:console.log("Unknown socket url provided, no connection made.");case 14:if(void 0!==i){e.next=18;break}return e.abrupt("return");case 18:return l=new r.U(i),e.next=21,s.G.create({provider:l});case 21:d=e.sent,(p=n.split(".")).forEach((function(e){e in d&&(d=d[e])})),e.t1=p[0],e.next="consts"===e.t1?27:"query"===e.t1?29:34;break;case 27:return c=d.toString(),e.abrupt("break",35);case 29:return e.next=31,d();case 31:return c=(c=e.sent).toString(),e.abrupt("break",35);case 34:console.log("Unknown path prefix ("+p[0]+") in "+n);case 35:return e.abrupt("return",c);case 36:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e,a,n,t){switch(a){case"humanReadable":(0,c.HumanReadable)(e,n,t);break;case"precise":(0,c.Precise)(e,n,t);break;case"blocksToDays":(0,c.BlocksToDays)(e,t);break;case"percentage":(0,c.Percentage)(e,t);break;case"arrayLength":(0,c.ArrayLength)(e,t);break;default:return void console.log("Ignoring unknown filter type")}}const h=function(e){var a=e.network,n=e.path,r=e.defaultValue,s=e.filter,c=void 0===s?void 0:s,d=(0,i.useState)(""),h=d[0],k=d[1];return a=a.toLowerCase(),(0,i.useEffect)((function(){void 0!==c?p(r.toString(),c,a,k):k(r.toString());var e=void 0;switch(a){case"polkadot":e="wss://rpc.polkadot.io";break;case"kusama":e="wss://kusama-rpc.polkadot.io/";break;case"statemine":e="wss://statemine-rpc.polkadot.io/";break;case"statemint":e="wss://statemint-rpc.polkadot.io/";break;default:console.log("Unknown network provided, "+a)}if(void 0===e)console.log("Failed to connect to a valid websocket, applying default");else{var i=function(){var e=(0,o.Z)((0,t.Z)().mark((function e(){var o;return(0,t.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l(a,n,k);case 2:if(void 0!==(o=e.sent)){e.next=7;break}return e.abrupt("return");case 7:void 0!==c?p(o,c,a,k):k(o);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();try{i()}catch(s){console.log(s)}}}),[]),h}},67425:e=>{var a={polkadot:{precision:1e10,symbol:"DOT"},kusama:{precision:1e12,symbol:"KSM"},statemint:{precision:1e10,symbol:"DOT"},statemine:{precision:1e12,symbol:"KSM"}};e.exports={HumanReadable:function(e,n,t){var o=void 0;if("polkadot"===n||"statemint"===n)o=3;else{if("kusama"!==n&&"statemine"!==n)return void console.log("Unknown network type found when attempting to apply 'Human Readable' filter");o=6}e=parseFloat(e),t((e=Number.isInteger(e/a[n].precision)?e/a[n].precision+" "+a[n].symbol:(e/a[n].precision).toFixed(o)+" "+a[n].symbol).toString())},Precise:function(e,n,t){t(e=(e=parseFloat(e))/a[n].precision+" "+a[n].symbol)},BlocksToDays:function(e,a){a((e=6*e/86400).toString())},Percentage:function(e,a){a((e/=1e7).toString())},ArrayLength:function(e,a){a((e=e.split(",").length).toString())}}},90594:(e,a,n)=>{"use strict";n.r(a),n.d(a,{assets:()=>d,contentTitle:()=>c,default:()=>u,frontMatter:()=>s,metadata:()=>l,toc:()=>p});var t=n(87462),o=n(63366),i=(n(67294),n(3905)),r=(n(47940),["components"]),s={id:"learn-async-backing",title:"Asynchronous Backing",sidebar_label:"Asynchronous Backing",description:"A brief overview of asynchronous backing, and how it affects Polkadot's scalability.",keywords:["parachains","backing","parablock","perspective parachains","unincluded segments"],slug:"../learn-async-backing"},c=void 0,l={unversionedId:"learn/learn-async-backing",id:"learn/learn-async-backing",title:"Asynchronous Backing",description:"A brief overview of asynchronous backing, and how it affects Polkadot's scalability.",source:"@site/../docs/learn/learn-async-backing.md",sourceDirName:"learn",slug:"/learn-async-backing",permalink:"/docs/learn-async-backing",draft:!1,editUrl:"https://github.com/w3f/polkadot-wiki/edit/master/docs/learn/learn-async-backing.md",tags:[],version:"current",lastUpdatedBy:"Filippo",lastUpdatedAt:1696596726,formattedLastUpdatedAt:"Oct 6, 2023",frontMatter:{id:"learn-async-backing",title:"Asynchronous Backing",sidebar_label:"Asynchronous Backing",description:"A brief overview of asynchronous backing, and how it affects Polkadot's scalability.",keywords:["parachains","backing","parablock","perspective parachains","unincluded segments"],slug:"../learn-async-backing"},sidebar:"docs",previous:{title:"Parathreads",permalink:"/docs/learn-parathreads"},next:{title:"SASSAFRAS",permalink:"/docs/learn-sassafras"}},d={},p=[{value:"Synchronous Backing",id:"synchronous-backing",level:2},{value:"Asynchronous Backing",id:"asynchronous-backing",level:2},{value:"Synchronous vs. Asynchronous Backing",id:"synchronous-vs-asynchronous-backing",level:3},{value:"Sync Backing as a special case of Async Backing",id:"sync-backing-as-a-special-case-of-async-backing",level:3},{value:"Async Backing Diagram",id:"async-backing-diagram",level:3},{value:"Terminology",id:"terminology",level:2},{value:"Candidate Receipt",id:"candidate-receipt",level:3},{value:"Pipelining",id:"pipelining",level:3},{value:"Unincluded Segments",id:"unincluded-segments",level:3},{value:"Prospective Parachains",id:"prospective-parachains",level:3},{value:"Learn More",id:"learn-more",level:2}],h={toc:p},k="wrapper";function u(e){var a=e.components,s=(0,o.Z)(e,r);return(0,i.kt)(k,(0,t.Z)({},h,s,{components:a,mdxType:"MDXLayout"}),(0,i.kt)("admonition",{title:"Learn about Parachain Consensus",type:"info"},(0,i.kt)("p",{parentName:"admonition"},"To fully follow the material on this page, it is recommended to be familiar with the primary stages\nof the ",(0,i.kt)("a",{parentName:"p",href:"/docs/learn-parachains-protocol"},"Parachain Protocol"),".")),(0,i.kt)("p",null,"In Polkadot, parablocks are generated by ",(0,i.kt)("a",{parentName:"p",href:"/docs/learn-collator"},"collators")," on the parachain side and\nsent to ",(0,i.kt)("a",{parentName:"p",href:"/docs/learn-validator"},"validators")," on the relay chain side for backing."),(0,i.kt)("admonition",{title:"What is backing?",type:"info"},(0,i.kt)("p",{parentName:"admonition"},(0,i.kt)("strong",{parentName:"p"},"Backing")," refers to the process in which parablocks are verified by a subset of validators or\nbacking groups. It is an important step in the validation process for parablocks, as it is the first\nline of defense in ensuring censorship resistance. Parablocks only need to be backed by one\nvalidator, and as a consequence, backing does not ensure parablock validity.")),(0,i.kt)("p",null,"Backed parablocks are sent to other validators for inclusion into the relay chain. Parablocks are\nincluded when validators have attested to having received\n",(0,i.kt)("a",{parentName:"p",href:"/docs/learn-parachains-protocol#erasure-codes"},"erasure coded chunks")," of the parablock data. Note\n",(0,i.kt)("a",{parentName:"p",href:"#candidate-receipt"},"candidate receipts")," and not the parablocks themselves are included in relay\nblocks (but for simplicity, we refer to parablocks as being included). When generated, parablocks\nmust be anchored to a relay chain block called ",(0,i.kt)("strong",{parentName:"p"},"relay parent"),". The relay parent is an input to\nparablock candidate generation. It provides the necessary context to build the next parablock. Note\nthat the relay parent of a parablock and the relay block including that parablock are always\ndifferent."),(0,i.kt)("h2",{id:"synchronous-backing"},"Synchronous Backing"),(0,i.kt)("p",null,"Before diving into asynchronous backing, it is important to understand what synchronous backing is\nand its main limitations. In synchronous backing, parablock generation is tightly coupled to the\nrelay chain's progression:"),(0,i.kt)("ol",null,(0,i.kt)("li",{parentName:"ol"},"A new parablock can be produced after including the previous one (i.e., every 12 seconds)."),(0,i.kt)("li",{parentName:"ol"},"Context to build the next parablock is drawn from the latest included parablock ancestor"),(0,i.kt)("li",{parentName:"ol"},"The relay parent must be the latest relay chain block.")),(0,i.kt)("p",null,"Because of (1) parablocks can be generated every other relay chain block (i.e., every 12 seconds).\nBecause of (2) generation of parablock ",(0,i.kt)("inlineCode",{parentName:"p"},"P")," can only start when ",(0,i.kt)("inlineCode",{parentName:"p"},"P - 1")," is included (there is no\n",(0,i.kt)("a",{parentName:"p",href:"#pipelining"},"pipelining"),"). Because of (3) execution time can take maximum 0.5 seconds as parablock\n",(0,i.kt)("inlineCode",{parentName:"p"},"P")," is rushing to be backed in the next 5.5 seconds (2 seconds needed for backing and the rest for\ngossiping). Every parablock is backed in 6 seconds (one relay chain block) and included in the next\n6 seconds (next relay chain block). The time from generation to inclusion is 12 seconds. This limits\nthe amount of data a collator can add to each parablock."),(0,i.kt)("p",null,"Parablock generation will choose the most recently received relay block as a relay parent, although\nwith an imperfect network that may differ from the true most recent relay block. So, in general, if\nrelay block ",(0,i.kt)("inlineCode",{parentName:"p"},"R")," is the relay parent of parablock ",(0,i.kt)("inlineCode",{parentName:"p"},"P"),", then ",(0,i.kt)("inlineCode",{parentName:"p"},"P")," could be backed in ",(0,i.kt)("inlineCode",{parentName:"p"},"R + 1")," and\nincluded in ",(0,i.kt)("inlineCode",{parentName:"p"},"R + 2"),"."),(0,i.kt)("p",null,(0,i.kt)("img",{alt:"sync-backing",src:n(54804).Z,width:"1920",height:"800"})),(0,i.kt)("p",null,"From left to right, parablock P1 is anchored to the relay parent R0 (showed with an ",(0,i.kt)("inlineCode",{parentName:"p"},"x"),"), backed\ninto the relay chain block R1, and included in R2. After including P1, collators can start\ngenerating P2 that must be anchored to the relay parent R2. Note that R2 will be the relay parent of\nP2 if R2 is included on the relay chain and gossiped to the collator producing P2."),(0,i.kt)("admonition",{title:"Every collator also runs an attached relay chain full node",type:"info"},(0,i.kt)("p",{parentName:"admonition"},"The attached relay node receives relay blocks via gossip. Then, the relay node talks to the\nparachain node through the ",(0,i.kt)("inlineCode",{parentName:"p"},"CollationGeneration")," subsystem. R2 is gossiped to the relay full node\nattached to the collator producing P2. Then, ",(0,i.kt)("inlineCode",{parentName:"p"},"CollationGeneration")," passes information about R2 to\nthe collator node. Finally, relay parent information from R2 informs the generation of candidate P2.")),(0,i.kt)("p",null,"Because P2 is rushing to be backed in 6 seconds into R3, collators have only 0.5 seconds to generate\nit and present it to backing groups on the relay chain that will take approximately 2 seconds to\nback it and some extra time for gossiping it (the whole process from collation to backing lasts 6\nseconds). P2 is included in R4, which could be used as a relay parent for P3 (not shown). After 24\nseconds P1 and P2 are included in the relay chain. Note how collators can start new parablocks every\n12 seconds but only have 0.5 seconds to generate them."),(0,i.kt)("h2",{id:"asynchronous-backing"},"Asynchronous Backing"),(0,i.kt)("admonition",{title:"Disclaimer: Performance Measurements",type:"warning"},(0,i.kt)("p",{parentName:"admonition"},"Due to asynchronous backing not being fully implemented in a running production network, each\nperformance metric is not thoroughly tested nor guaranteed until proper benchmarking has occurred.")),(0,i.kt)("p",null,(0,i.kt)("img",{alt:"sync-vs-async-backing",src:n(4919).Z,width:"1920",height:"800"})),(0,i.kt)("p",null,"In asynchronous backing, parablocks (P) are included every 6 seconds, and backing (B) and inclusion\n(I) can happen within the same relay chain block (R)."),(0,i.kt)("h3",{id:"synchronous-vs-asynchronous-backing"},"Synchronous vs. Asynchronous Backing"),(0,i.kt)("p",null,"Below is a table showing the main differences between synchronous and asynchronous backing."),(0,i.kt)("table",null,(0,i.kt)("thead",{parentName:"table"},(0,i.kt)("tr",{parentName:"thead"},(0,i.kt)("th",{parentName:"tr",align:"left"}),(0,i.kt)("th",{parentName:"tr",align:"center"},"Sync Backing"),(0,i.kt)("th",{parentName:"tr",align:"center"},"Async Backing"),(0,i.kt)("th",{parentName:"tr",align:"center"},"Async Backing Advantage"))),(0,i.kt)("tbody",{parentName:"table"},(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:"left"},(0,i.kt)("strong",{parentName:"td"},"Parablocks included every")),(0,i.kt)("td",{parentName:"tr",align:"center"},"12 seconds"),(0,i.kt)("td",{parentName:"tr",align:"center"},"6 seconds"),(0,i.kt)("td",{parentName:"tr",align:"center"},"2x more throughput or 2x less latency")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:"left"},(0,i.kt)("strong",{parentName:"td"},"Parablock's maximum generation time")),(0,i.kt)("td",{parentName:"tr",align:"center"},"0.5 seconds"),(0,i.kt)("td",{parentName:"tr",align:"center"},"2 seconds"),(0,i.kt)("td",{parentName:"tr",align:"center"},"4x more data in a parablock")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:"left"},(0,i.kt)("strong",{parentName:"td"},"Relay parent")),(0,i.kt)("td",{parentName:"tr",align:"center"},"Is the latest relay chain block"),(0,i.kt)("td",{parentName:"tr",align:"center"},"Is not necessarily the latest relay chain block"),(0,i.kt)("td",{parentName:"tr",align:"center"},"Collators can submit parablocks to backing groups in advance")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:"left"},(0,i.kt)("strong",{parentName:"td"},"Collators can build on")),(0,i.kt)("td",{parentName:"tr",align:"center"},"The most recent ancestor included in the latest relay chain block"),(0,i.kt)("td",{parentName:"tr",align:"center"},"An ancestor included in a relay chain block (not necessarily the latest), with augmented information from the latest ancestor in the ",(0,i.kt)("a",{parentName:"td",href:"#unincluded-segments"},"unincluded segment")),(0,i.kt)("td",{parentName:"tr",align:"center"},"Collators can start building parablocks in advance")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:"left"},(0,i.kt)("strong",{parentName:"td"},"Number of unincluded parablocks")),(0,i.kt)("td",{parentName:"tr",align:"center"},"Only one"),(0,i.kt)("td",{parentName:"tr",align:"center"},"One, or more than one (depends on configuration parameters)"),(0,i.kt)("td",{parentName:"tr",align:"center"},"More efficiency and scalability")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:"left"},(0,i.kt)("strong",{parentName:"td"},"Unincluded parablocks")),(0,i.kt)("td",{parentName:"tr",align:"center"},"Cannot be re-proposed"),(0,i.kt)("td",{parentName:"tr",align:"center"},"Can be re-proposed if not successfully included in the first attempt"),(0,i.kt)("td",{parentName:"tr",align:"center"},"Decrease wastage of unused blockspace")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:"left"},(0,i.kt)("strong",{parentName:"td"},"Parablock's Backing-to-inclusion time")),(0,i.kt)("td",{parentName:"tr",align:"center"},"12 seconds"),(0,i.kt)("td",{parentName:"tr",align:"center"},"12 seconds"),(0,i.kt)("td",{parentName:"tr",align:"center"},"No change")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",{parentName:"tr",align:"left"},(0,i.kt)("strong",{parentName:"td"},"Parablock's Inclusion-to-finality time")),(0,i.kt)("td",{parentName:"tr",align:"center"},"30 seconds"),(0,i.kt)("td",{parentName:"tr",align:"center"},"30 seconds"),(0,i.kt)("td",{parentName:"tr",align:"center"},"No change")))),(0,i.kt)("p",null,"In synchronous backing, collators generate parablocks using context entirely pulled from the relay\nchain. While in asynchronous backing, collators use additional context from the\n",(0,i.kt)("a",{parentName:"p",href:"#unincluded-segments"},"unincluded segment"),". Parablocks are included every 6 seconds because backing\nof parablock ",(0,i.kt)("inlineCode",{parentName:"p"},"N + 1")," and inclusion of parablock ",(0,i.kt)("inlineCode",{parentName:"p"},"N")," can happen on the same relay chain bock\n(",(0,i.kt)("a",{parentName:"p",href:"#pipelining"},"pipelining"),"). However, as for synchronous backing, a parablock takes 12 seconds to\nget backed and included, and from inclusion to finality there is an additional 30-second time\nwindow."),(0,i.kt)("p",null,"Because the throughput is increased by 2x and parachains have 4x more time to generate blocks,\nasynchronous backing is expected to deliver 8x more blockspace to parachains."),(0,i.kt)("h3",{id:"sync-backing-as-a-special-case-of-async-backing"},"Sync Backing as a special case of Async Backing"),(0,i.kt)("p",null,"Two parameters of asynchronous backing can be controlled by\n",(0,i.kt)("a",{parentName:"p",href:"/docs/learn-polkadot-opengov"},"Governance"),":"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("p",{parentName:"li"},(0,i.kt)("a",{parentName:"p",href:"https://github.com/paritytech/polkadot-sdk/blob/f204e3264f945c33b4cea18a49f7232c180b07c5/polkadot/primitives/src/vstaging/mod.rs#L49"},(0,i.kt)("inlineCode",{parentName:"a"},"max_candidate_depth")),":\nthe number of parachain blocks a collator can produce that are not yet included in the relay\nchain.")),(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("p",{parentName:"li"},(0,i.kt)("a",{parentName:"p",href:"https://github.com/paritytech/polkadot-sdk/blob/f204e3264f945c33b4cea18a49f7232c180b07c5/polkadot/primitives/src/vstaging/mod.rs#L54"},(0,i.kt)("inlineCode",{parentName:"a"},"allowed_ancestry_len")),":\nthe oldest relay chain parent a parachain block can be built on top of."))),(0,i.kt)("p",null,"Values of zero for both correspond to synchronous backing: ",(0,i.kt)("inlineCode",{parentName:"p"},"max_candidate_depth = 0")," means there can\nbe only one unincluded parablock at all times, and ",(0,i.kt)("inlineCode",{parentName:"p"},"allowed_ancestry_len = 0")," means a parablock can\nbe built only on the latest relay parent for that parachain. Initial values will be set to 3 (4\nunincluded parablocks at all times) and 2 (relay parent can be the third last)."),(0,i.kt)("h3",{id:"async-backing-diagram"},"Async Backing Diagram"),(0,i.kt)("p",null,(0,i.kt)("img",{alt:"async-backing",src:n(16588).Z,width:"1920",height:"800"})),(0,i.kt)("p",null,"The diagram assumes:"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("inlineCode",{parentName:"li"},"max_candidate_depth = 2"),", meaning that there can be a maximum of three unincluded parablocks at\nall times"),(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("inlineCode",{parentName:"li"},"allowed_ancestry_len = 1"),", meaning parablocks can be anchored to the last or second-last relay\nparent (i.e., collators can start preparing parablocks 6 seconds in advance)")),(0,i.kt)("p",null,"From left to right, parablock P1 is backed into the relay chain block R1 and included in R2. While\nP1 undergoes backing, collators can already generate P2, which will have R0 as a relay parent\n(showed with an ",(0,i.kt)("inlineCode",{parentName:"p"},"x"),"). Note how R0 can also be relay parent for P1 as long as in the unincluded\nsegment there is a maximum of three unincluded parablocks. Parablock P2 can be backed in R2 (the\nsame relay block where P1 is included) and included in R3. Collators can now use up to two seconds\nto generate parablocks. And so on, P3 can be generated while backing groups check P2, and P4 can be\nbuilt while P3 undergoing backing. In 24 seconds, P1 to P3 are included in the relay chain."),(0,i.kt)("p",null,"Note how there are always three unincluded parablocks at all times, i.e. compared to synchronous\nbacking there can be multiple unincluded parablocks (i.e. ",(0,i.kt)("a",{parentName:"p",href:"#pipelining"},"pipelining"),"). For example,\nwhen P1 is undergoing inclusion, P2 and P3 are undergoing backing. Collators were able to generate\nmultiple unincluded parablocks because on their end they have the\n",(0,i.kt)("a",{parentName:"p",href:"#unincluded-segments"},"unincluded segment"),", a local storage of not-included parablock ancestors that\nthey can use to fetch information to build new parablocks. On the relay chain side,\n",(0,i.kt)("a",{parentName:"p",href:"#prospective-parachains"},"perspective parachains")," repeats the work each unincluded segment does in\ntracking candidates (as validators cannot trust the record kept on parachains)."),(0,i.kt)("p",null,"The 6-second relay chain block delay includes a backing execution timeout (2 seconds) and some time\nfor network latency (the time it takes to gossip messages across the entire network). The limit\ncollators have to generate parablocks is how long it takes to back it (i.e., 2 seconds). Collation\ngeneration conservatively always gives itself the same time limits. If there is extra time for\ncollation generation and backing (i.e., more than 2s + 6s), then all that extra time is allocated to\nbacking (see figure). This could result in backable blocks waiting their turn at the end of the\nbacking step for a few extra seconds until a core frees up to back that block as of the next relay\nblock or some later relay block. Note a core is occupied after backing and before inclusion."),(0,i.kt)("p",null,"The 2-second block generation time is thus a limiter, not a system limitation. If block generation\ntakes >2 seconds, the unincluded segment will shrink (less unincluded parablocks), while if it takes\n<2 seconds, the segment will grow (more unincluded parablocks that will need to be backed and\nincluded). Such flexibility from the parachain side will be possible when, on the relay chain side,\nthere will be elastic scaling (i.e.,\n",(0,i.kt)("a",{parentName:"p",href:"/docs/polkadot-direction#agile-core-usage"},"agile core usage")," and\n",(0,i.kt)("a",{parentName:"p",href:"/docs/polkadot-direction#agile-coretime-allocation"},"coretime allocation"),")."),(0,i.kt)("h2",{id:"terminology"},"Terminology"),(0,i.kt)("h3",{id:"candidate-receipt"},"Candidate Receipt"),(0,i.kt)("p",null,"Saying that a parablock has been included in a relay chain parent does not mean the entire parablock\nis in the relay chain block. Instead, ",(0,i.kt)("strong",{parentName:"p"},"candidate receipt")," consisting of the hash of the parablock,\nstate roots, and ID info is placed on the parent block on the relay chain. The relay chain does not\naccess the entire state of a parachain but only the values that changed during that block and the\nmerkelized hashes of the unchanged values."),(0,i.kt)("h3",{id:"pipelining"},"Pipelining"),(0,i.kt)("p",null,"Asynchronous backing is a feature that introduces\n",(0,i.kt)("a",{parentName:"p",href:"https://www.techtarget.com/whatis/definition/pipelining"},"pipelining")," to the parachain block\n",(0,i.kt)("a",{parentName:"p",href:"/docs/learn-parachains-protocol"},"generation, backing and inclusion"),'. It is analogous to the logical\npipelining of processor instruction in "traditional" architectures, where some instructions may be\nexecuted before others are complete. Instructions may also be executed in parallel, enabling\nmultiple processor parts to work on potentially different instructions simultaneously.'),(0,i.kt)("p",null,"Bundles of state transitions represented as blocks may be processed similarly. In the context of\nPolkadot, pipelining aims to increase the\nthroughput of the entire network by completing the backing and inclusion steps for different blocks\nat the same time. Asynchronous backing does not just allow for pipelining within a single pipe (or\ncore). It lays the foundation for a large number of pipes (or cores) to run for the same parachain\nat the same time. In that way, we have two distinct new forms of parallel computation."),(0,i.kt)("h3",{id:"unincluded-segments"},"Unincluded Segments"),(0,i.kt)("p",null,"Unincluded segments are chains of candidate parablocks that have yet to be included in the relay\nchain, i.e. they can contain parablocks at any stage pre-inclusion. An unincluded segment may thus\ninclude candidates that are seconded, backable, or backed. Every parablock candidate recorded in the\nunincluded segment is immediately advertised to validators to begin the backing process."),(0,i.kt)("p",null,"The backing process occurs on the relay chain, whereas unincluded segments live in the runtimes of\nparachain collators. The core functionality that asynchronous backing brings is the ability to build\non these unincluded segments of block ancestors rather than building only on ancestors included in\nthe relay chain state."),(0,i.kt)("p",null,"The purpose of each unincluded segment is twofold:"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},"Make each parachain aware of when and at what depth it can build blocks that won't be rejected by\nthe relay chain"),(0,i.kt)("li",{parentName:"ul"},"Provide critical context necessary to build parablocks with parent blocks that have yet to be\nincluded. The unincluded segment is all about building parablocks.")),(0,i.kt)("h3",{id:"prospective-parachains"},"Prospective Parachains"),(0,i.kt)("p",null,"The purpose of\n",(0,i.kt)("a",{parentName:"p",href:"https://paritytech.github.io/polkadot/book/node/backing/prospective-parachains.html"},"prospective parachains"),"\nis twofold:"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("p",{parentName:"li"},"Keep track of parablocks that have been submitted to backers but have yet to be included. This\nincludes tracking the full unincluded ancestry of each parablock, without which it wouldn't be\npossible to verify their legitimacy.")),(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("p",{parentName:"li"},"Look up and provide candidates which are children of the most recently included parablock for each\nparachain. These are taken as inputs to the availability process. Prospective parachains is all\nabout tracking, storing, and providing candidates to the availability/inclusion step."))),(0,i.kt)("p",null,"Prospective parachains essentially repeats the work each ",(0,i.kt)("a",{parentName:"p",href:"#unincluded-segments"},"unincluded segment"),"\ndoes in tracking candidates. Validators cannot simply trust the availability or validity of records\nkept on parachains. Prospective parachains is the relay chain's record of all parablock candidates\nundergoing the backing and inclusion process. It is the authoritative gatekeeper for parablock\nvalidity. Whereas the unincluded segment is a local record that allows parachains to produce blocks\nthat comply with the rules prospective parachains later enforces."),(0,i.kt)("p",null,"The unincluded segment lives in the parachain runtime, so it doesn't know or care about forks/other\nparachains. Prospective parachains lives in the relay chain client. So it has to simultaneously keep\ntrack of candidates from all forks of all parachains. It is as if you folded the unincluded segments\nfrom every fork of every parachain into one giant data structure. When you fold unincluded segments\nrepresenting different chain forks together, they create a tree structure. Hence the term\n",(0,i.kt)("a",{parentName:"p",href:"https://paritytech.github.io/polkadot/book/node/backing/prospective-parachains.html#fragment-trees"},(0,i.kt)("strong",{parentName:"a"},"fragment tree")),"."),(0,i.kt)("p",null,"A single unincluded segment tells a collator whether it can build on top of one fork of one\nparachain. Prospective parachains tells a validator whether it should accept blocks built on top of\nany fork from any parachain."),(0,i.kt)("p",null,"A parablock stops being a prospective parablock when it is included on chain. At that point\nprospective parachains does not have to care about it anymore. Alternatively, a parablock's relay\nparent can get too old before that parablock is included, in which case prospective parachains can\nthrow away the candidate."),(0,i.kt)("h2",{id:"learn-more"},"Learn More"),(0,i.kt)("p",null,"The information provided here is subject to change; keep up to date using the following resources:"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("a",{parentName:"li",href:"https://polkadot.network/blog/polkadot-roadmap-roundup"},"Polkadot Roadmap Roundup")," - Article by\nRob Habermeier, Polkadot founder, details the plans for Polkadot for 2023."),(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("a",{parentName:"li",href:"https://github.com/paritytech/polkadot/issues/3779"},"Asynchronous Backing Spec & Tracking Issue")," -\nThe implementation tracking issue for asynchronous backing"),(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("a",{parentName:"li",href:"https://paritytech.github.io/polkadot/book/node/backing/prospective-parachains.html"},"Prospective Parachains Subsystem - The Polkadot Parachain Host Implementers' Guide")),(0,i.kt)("li",{parentName:"ul"},"Chapter 6.11. from Polkadot Blockchain Academy (PBA) lecture material:\n",(0,i.kt)("a",{parentName:"li",href:"https://polkadot-blockchain-academy.github.io/pba-book/polkadot/async-backing-shallow/page.html"},"Asynchronous Backing (Shallow)")),(0,i.kt)("li",{parentName:"ul"},"Chapter 6.15. from PBA lecture material:\n",(0,i.kt)("a",{parentName:"li",href:"https://polkadot-blockchain-academy.github.io/pba-book/polkadot/async-backing-deep/page.html"},"Asynchronous Backing (Deep)")),(0,i.kt)("li",{parentName:"ul"},"Polkadot Blog Post -\n",(0,i.kt)("a",{parentName:"li",href:"https://www.polkadot.network/blog/elevating-polkadots-performance-and-scale-with-asynchronous-backing"},"Asynchronous Backing: Elevating Polkadot's Performance and Scale"))))}u.isMDXComponent=!0},16588:(e,a,n)=>{"use strict";n.d(a,{Z:()=>t});const t=n.p+"assets/images/async-backing-30d83e1ed114a3fb5e4ac44e58e2d6dc.png"},54804:(e,a,n)=>{"use strict";n.d(a,{Z:()=>t});const t=n.p+"assets/images/sync-backing-e5c74751cd62df36651f23fab421f7cf.png"},4919:(e,a,n)=>{"use strict";n.d(a,{Z:()=>t});const t=n.p+"assets/images/sync-vs-async-backing-3548388f98c44fc684a6176a6ccb8ed2.png"},46601:()=>{}}]); \ No newline at end of file diff --git a/assets/js/9447.7b380a6b.js b/assets/js/9447.7b380a6b.js deleted file mode 100644 index 97e5b1e2ab9b..000000000000 --- a/assets/js/9447.7b380a6b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9447],{68806:(e,t,r)=>{r.d(t,{Ps:()=>X});var n=r(97582);function i(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const o=/\r\n|[\n\r]/g;function s(e,t){let r=0,n=1;for(const s of e.body.matchAll(o)){if("number"==typeof s.index||i(!1),s.index>=t)break;r=s.index+s[0].length,n+=1}return{line:n,column:t+1-r}}function a(e,t){const r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=1===t.line?r:0,u=t.column+a,l=`${e.name}:${s}:${u}\n`,f=n.split(/\r\n|[\n\r]/g),h=f[i];if(h.length>120){const e=Math.floor(u/80),t=u%80,r=[];for(let n=0;n["|",e])),["|","^".padStart(t)],["|",r[e+1]]])}return l+c([[s-1+" |",f[i-1]],[`${s} |`,h],["|","^".padStart(u)],[`${s+1} |`,f[i+1]]])}function c(e){const t=e.filter((([e,t])=>void 0!==t)),r=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(r)+(t?" "+t:""))).join("\n")}class u extends Error{constructor(e,...t){var r,n,i;const{nodes:o,source:a,positions:c,path:f,originalError:h,extensions:p}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=f?f:void 0,this.originalError=null!=h?h:void 0,this.nodes=l(Array.isArray(o)?o:o?[o]:void 0);const d=l(null===(r=this.nodes)||void 0===r?void 0:r.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=a?a:null==d||null===(n=d[0])||void 0===n?void 0:n.source,this.positions=null!=c?c:null==d?void 0:d.map((e=>e.start)),this.locations=c&&a?c.map((e=>s(a,e))):null==d?void 0:d.map((e=>s(e.source,e.start)));const v="object"==typeof(y=null==h?void 0:h.extensions)&&null!==y?null==h?void 0:h.extensions:void 0;var y;this.extensions=null!==(i=null!=p?p:v)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=h&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,u):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const r of this.nodes)r.loc&&(e+="\n\n"+a((t=r.loc).source,s(t.source,t.start)));else if(this.source&&this.locations)for(const r of this.locations)e+="\n\n"+a(this.source,r);var t;return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function l(e){return void 0===e||0===e.length?void 0:e}function f(e,t,r){return new u(`Syntax Error: ${r}`,{source:e,positions:[t]})}var h,p=r(72380);!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(h||(h={}));var d,v=r(97359),y=r(87392),m=r(68297);!function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(d||(d={}));class b{constructor(e){const t=new p.WU(d.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==d.EOF)do{if(e.next)e=e.next;else{const t=T(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===d.COMMENT);return e}}function g(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function E(e,t){return k(e.charCodeAt(t))&&O(e.charCodeAt(t+1))}function k(e){return e>=55296&&e<=56319}function O(e){return e>=56320&&e<=57343}function _(e,t){const r=e.source.body.codePointAt(t);if(void 0===r)return d.EOF;if(r>=32&&r<=126){const e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function w(e,t,r,n,i){const o=e.line,s=1+r-e.lineStart;return new p.WU(t,r,n,o,s,i)}function T(e,t){const r=e.source.body,n=r.length;let i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function C(e,t){const r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw f(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function P(e,t){const r=e.source.body,n=r.length;let i=e.lineStart,o=t+3,s=o,a="";const c=[];for(;o0||(0,M.a)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,M.a)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class Q{constructor(e,t={}){const r=function(e){return q(e,V)}(e)?e:new V(e);this._lexer=new b(r),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(d.NAME);return this.node(e,{kind:v.h.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:v.h.DOCUMENT,definitions:this.many(d.SOF,this.parseDefinition,d.EOF)})}parseDefinition(){if(this.peek(d.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===d.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw f(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(d.BRACE_L))return this.node(e,{kind:v.h.OPERATION_DEFINITION,operation:p.ku.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let r;return this.peek(d.NAME)&&(r=this.parseName()),this.node(e,{kind:v.h.OPERATION_DEFINITION,operation:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(d.NAME);switch(e.value){case"query":return p.ku.QUERY;case"mutation":return p.ku.MUTATION;case"subscription":return p.ku.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(d.PAREN_L,this.parseVariableDefinition,d.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:v.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(d.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(d.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(d.DOLLAR),this.node(e,{kind:v.h.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:v.h.SELECTION_SET,selections:this.many(d.BRACE_L,this.parseSelection,d.BRACE_R)})}parseSelection(){return this.peek(d.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let r,n;return this.expectOptionalToken(d.COLON)?(r=t,n=this.parseName()):n=t,this.node(e,{kind:v.h.FIELD,alias:r,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(d.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(d.PAREN_L,t,d.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,r=this.parseName();return this.expectToken(d.COLON),this.node(t,{kind:v.h.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(d.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(d.NAME)?this.node(e,{kind:v.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:v.h.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:v.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:v.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case d.BRACKET_L:return this.parseList(e);case d.BRACE_L:return this.parseObject(e);case d.INT:return this.advanceLexer(),this.node(t,{kind:v.h.INT,value:t.value});case d.FLOAT:return this.advanceLexer(),this.node(t,{kind:v.h.FLOAT,value:t.value});case d.STRING:case d.BLOCK_STRING:return this.parseStringLiteral();case d.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:v.h.BOOLEAN,value:!0});case"false":return this.node(t,{kind:v.h.BOOLEAN,value:!1});case"null":return this.node(t,{kind:v.h.NULL});default:return this.node(t,{kind:v.h.ENUM,value:t.value})}case d.DOLLAR:if(e){if(this.expectToken(d.DOLLAR),this._lexer.token.kind===d.NAME){const e=this._lexer.token.value;throw f(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:v.h.STRING,value:e.value,block:e.kind===d.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:v.h.LIST,values:this.any(d.BRACKET_L,(()=>this.parseValueLiteral(e)),d.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:v.h.OBJECT,fields:this.any(d.BRACE_L,(()=>this.parseObjectField(e)),d.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,r=this.parseName();return this.expectToken(d.COLON),this.node(t,{kind:v.h.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(d.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(d.AT),this.node(t,{kind:v.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(d.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(d.BRACKET_R),t=this.node(e,{kind:v.h.LIST_TYPE,type:r})}else t=this.parseNamedType();return this.expectOptionalToken(d.BANG)?this.node(e,{kind:v.h.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:v.h.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(d.STRING)||this.peek(d.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.many(d.BRACE_L,this.parseOperationTypeDefinition,d.BRACE_R);return this.node(e,{kind:v.h.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(d.COLON);const r=this.parseNamedType();return this.node(e,{kind:v.h.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:v.h.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:v.h.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(d.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(d.BRACE_L,this.parseFieldDefinition,d.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(d.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:v.h.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(d.PAREN_L,this.parseInputValueDef,d.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseName();this.expectToken(d.COLON);const n=this.parseTypeReference();let i;this.expectOptionalToken(d.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:v.h.INPUT_VALUE_DEFINITION,description:t,name:r,type:n,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:v.h.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:v.h.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(d.EQUALS)?this.delimitedMany(d.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:v.h.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany(d.BRACE_L,this.parseEnumValueDefinition,d.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:v.h.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw f(this._lexer.source,this._lexer.token.start,`${B(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:v.h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(d.BRACE_L,this.parseInputValueDef,d.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===d.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),r=this.optionalMany(d.BRACE_L,this.parseOperationTypeDefinition,d.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:v.h.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:v.h.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:v.h.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:v.h.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:v.h.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:v.h.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:v.h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(d.AT);const r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:v.h.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(d.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(h,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new p.Ye(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw f(this._lexer.source,t.start,`Expected ${U(e)}, found ${B(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==d.NAME||t.value!==e)throw f(this._lexer.source,t.start,`Expected "${e}", found ${B(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===d.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return f(this._lexer.source,t.start,`Unexpected ${B(t)}.`)}any(e,t,r){this.expectToken(e);const n=[];for(;!this.expectOptionalToken(r);)n.push(t.call(this));return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);const n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);const r=[];do{r.push(t.call(this))}while(this.expectOptionalToken(e));return r}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==d.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw f(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function B(e){const t=e.value;return U(e.kind)+(null!=t?` "${t}"`:"")}function U(e){return function(e){return e===d.BANG||e===d.DOLLAR||e===d.AMP||e===d.PAREN_L||e===d.PAREN_R||e===d.SPREAD||e===d.COLON||e===d.EQUALS||e===d.AT||e===d.BRACKET_L||e===d.BRACKET_R||e===d.BRACE_L||e===d.PIPE||e===d.BRACE_R}(e)?`"${e}"`:e}var G=new Map,z=new Map,K=!0,Y=!1;function W(e){return e.replace(/[\s,]+/g," ").trim()}function $(e){var t=new Set,r=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,i=W((s=e.loc).source.body.substring(s.start,s.end)),o=z.get(n);o&&!o.has(i)?K&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||z.set(n,o=new Set),o.add(i),t.has(i)||(t.add(i),r.push(e))}else r.push(e);var s})),(0,n.pi)((0,n.pi)({},e),{definitions:r})}function J(e){var t=W(e);if(!G.has(t)){var r=function(e,t){return new Q(e,t).parseDocument()}(e,{experimentalFragmentVariables:Y,allowLegacyFragmentVariables:Y});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");G.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(r){var n=e[r];n&&"object"==typeof n&&t.add(n)}))}));var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}($(r)))}return G.get(t)}function X(e){for(var t=[],r=1;r{r.d(t,{h:()=>we});var n=r(97582),i=r(78287),o=r(33893),s=r(30020),a=r(23361),c=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,o.re)(a.Yk)}return e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction((function(){return t=e.update(r)}),n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,n.pi)((0,n.pi)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,n.pi)((0,n.pi)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,i=(0,n._T)(e,["id","data"]);return this.write(Object.assign(i,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,i=e.fragment,o=e.fragmentName,s=(0,n._T)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(s,{query:this.getFragmentDoc(i,o),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var i=r.readQuery(e),o=t(i);return null==o?i:(r.writeQuery((0,n.pi)((0,n.pi)({},e),{data:o})),o)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var i=r.readFragment(e),o=t(i);return null==o?i:(r.writeFragment((0,n.pi)((0,n.pi)({},e),{data:o})),o)}})},e}(),u=function(e){function t(r,n,i,o){var s,a=e.call(this,r)||this;if(a.message=r,a.path=n,a.query=i,a.variables=o,Array.isArray(a.path)){a.missing=a.message;for(var c=a.path.length-1;c>=0;--c)a.missing=((s={})[a.path[c]]=a.missing,s)}else a.missing=a.path;return a.__proto__=t.prototype,a}return(0,n.ZT)(t,e),t}(Error),l=r(18056),f=r(76487),h=r(51761),p=r(97359),d=r(30320),v=r(53712),y=r(36765),m=r(182),b=r(19065),g=r(13154);function E(e){var t=new Set([e]);return t.forEach((function(e){(0,g.s)(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(t){if(t instanceof TypeError)return null;throw t}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((function(r){(0,g.s)(e[r])&&t.add(e[r])}))})),e}function k(e){return!1!==globalThis.__DEV__&&E(e),e}var O=r(75028),_=r(21436),w=Object.prototype.hasOwnProperty;function T(e){return null==e}function S(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=T(n)?T(i)?void 0:{_id:i}:{id:n}),T(n)&&!T(i)&&(n=i),!T(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var D={dataIdFromObject:S,addTypename:!0,resultCaching:!0,canonizeResults:!1};function I(e){var t=e.canonizeResults;return void 0===t?D.canonizeResults:t}var x=/^[_a-z][_0-9a-z]*/i;function N(e){var t=e.match(x);return t?t[0]:e}function A(e,t,r){return!!(0,g.s)(t)&&((0,_.k)(t)?t.every((function(t){return A(e,t,r)})):e.selections.every((function(e){if((0,h.My)(e)&&(0,b.LZ)(e,r)){var n=(0,h.u2)(e);return w.call(t,n)&&(!e.selectionSet||A(e.selectionSet,t[n],r))}return!0})))}function R(e){return(0,g.s)(e)&&!(0,h.Yk)(e)&&!(0,_.k)(e)}function F(e,t){var r=(0,a.F)((0,y.kU)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var C=Object.create(null),P=function(){return C},L=Object.create(null),M=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return k((0,h.Yk)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,h.Yk)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,h.kQ)(e);if((0,h.Yk)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,h.kQ)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,n.pi)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),w.call(this.data,e)){var r=this.data[e];if(r&&w.call(r,t))return r[t]}return"__typename"===t&&w.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof Q?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),w.call(this.data,e)?this.data[e]:this instanceof Q?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;(0,h.Yk)(e)&&(e=e.__ref),(0,h.Yk)(t)&&(t=t.__ref);var o="string"==typeof e?this.lookup(r=e):e,s="string"==typeof t?this.lookup(r=t):t;if(s){(0,i.kG)("string"==typeof r,1);var a=new m.w0(U).merge(o,s);if(this.data[r]=a,a!==o&&(delete this.refs[r],this.group.caching)){var c=Object.create(null);o||(c.__exists=1),Object.keys(s).forEach((function(e){if(!o||o[e]!==a[e]){c[e]=1;var t=N(e);t===e||n.policies.hasKeyArgs(a.__typename,t)||(c[t]=1),void 0!==a[e]||n instanceof Q||delete a[e]}})),!c.__typename||o&&o.__typename||this.policies.rootTypenamesById[r]!==a.__typename||delete c.__typename,Object.keys(c).forEach((function(e){return n.group.dirty(r,e)}))}}},e.prototype.modify=function(e,t){var r=this,i=this.lookup(e);if(i){var o=Object.create(null),s=!1,a=!0,c={DELETE:C,INVALIDATE:L,isReference:h.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,h.kQ)(e)}:t,{store:r})}};if(Object.keys(i).forEach((function(u){var l=N(u),f=i[u];if(void 0!==f){var h="function"==typeof t?t:t[u]||t[l];if(h){var p=h===P?C:h(k(f),(0,n.pi)((0,n.pi)({},c),{fieldName:l,storeFieldName:u,storage:r.getStorage(e,u)}));p===L?r.group.dirty(e,u):(p===C&&(p=void 0),p!==f&&(o[u]=p,s=!0,f=p))}void 0!==f&&(a=!1)}})),s)return this.merge(e,o),a&&(this instanceof Q?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),s=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,s?((n={})[s]=P,n):P)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(w.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof Q&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach((function(t){w.call(e.policies.rootTypenamesById,t)||r.push(t)})),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(r){e&&w.call(e,r)||t.delete(r)})),e){var r=e.__META,i=(0,n._T)(e,["__META"]);Object.keys(i).forEach((function(e){t.merge(e,i[e])})),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof Q?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach((function(n){w.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])}));var n=Object.keys(r);if(n.length){for(var i=this;i instanceof Q;)i=i.parent;n.forEach((function(e){return i.delete(e)}))}return n},e.prototype.findChildRefIds=function(e){if(!w.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach((function(e){(0,h.Yk)(e)&&(t[e.__ref]=!0),(0,g.s)(e)&&Object.keys(e).forEach((function(t){var r=e[t];(0,g.s)(r)&&n.add(r)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),j=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,o.dP)():null,this.keyMaker=new O.B(d.mr)},e.prototype.depend=function(e,t){if(this.d){this.d(q(e,t));var r=N(t);r!==t&&this.d(q(e,r)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(q(e,t),"__exists"===t?"forget":"setDirty")},e}();function q(e,t){return t+"#"+e}function V(e,t){G(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=void 0===n||n,o=t.seed,s=e.call(this,r,new j(i))||this;return s.stump=new B(s),s.storageTrie=new O.B(d.mr),o&&s.replace(o),s}return(0,n.ZT)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(M||(M={}));var Q=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return(0,n.ZT)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach((function(r){(0,s.D)(n[r],i[r])||t.group.dirty(e,r)})):(t.group.dirty(e,"__exists"),Object.keys(i).forEach((function(r){t.group.dirty(e,r)}))):t.delete(e)})),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,n.pi)((0,n.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return w.call(this.data,t)?(0,n.pi)((0,n.pi)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(M),B=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new j(t.group.caching,t.group))||this}return(0,n.ZT)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(Q);function U(e,t,r){var n=e[r],i=t[r];return(0,s.D)(n,i)?n:i}function G(e){return!!(e instanceof M&&e.group.caching)}var z=r(80900);function K(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Y=function(){function e(e){var t=this;this.knownResults=new(d.mr?WeakMap:Map),this.config=(0,v.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:I(e)}),this.canon=e.canon||new z.h,this.executeSelectionSet=(0,o.re)((function(e){var r,i=e.context.canonizeResults,o=K(e);o[3]=!i;var s=(r=t.executeSelectionSet).peek.apply(r,o);return s?i?(0,n.pi)((0,n.pi)({},s),{result:t.canon.admit(s.result)}):s:(V(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:K,makeCacheKey:function(e,t,r,n){if(G(r.store))return r.store.makeCacheKey(e,(0,h.Yk)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=(0,o.re)((function(e){return V(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(G(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new z.h},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,i=e.rootId,o=void 0===i?"ROOT_QUERY":i,s=e.variables,a=e.returnPartialData,c=void 0===a||a,l=e.canonizeResults,f=void 0===l?this.config.canonizeResults:l,p=this.config.cache.policies;s=(0,n.pi)((0,n.pi)({},(0,y.O4)((0,y.iW)(r))),s);var d,v=(0,h.kQ)(o),m=this.executeSelectionSet({selectionSet:(0,y.p$)(r).selectionSet,objectOrReference:v,enclosingRef:v,context:(0,n.pi)({store:t,query:r,policies:p,variables:s,varString:(0,z.B)(s),canonizeResults:f},F(r,this.config.fragments))});if(m.missing&&(d=[new u(W(m.missing),m.missing,r,s)],!c))throw d[0];return{result:m.result,complete:!d,missing:d}},e.prototype.isFresh=function(e,t,r,n){if(G(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,r=e.selectionSet,n=e.objectOrReference,o=e.enclosingRef,s=e.context;if((0,h.Yk)(n)&&!s.policies.rootTypenamesById[n.__ref]&&!s.store.has(n.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(n.__ref," object")};var c,u=s.variables,l=s.policies,d=s.store.getFieldValue(n,"__typename"),v=[],y=new m.w0;function g(e,t){var r;return e.missing&&(c=y.merge(c,((r={})[t]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof d&&!l.rootIdsByTypename[d]&&v.push({__typename:d});var E=new Set(r.selections);E.forEach((function(e){var r,m;if((0,b.LZ)(e,u))if((0,h.My)(e)){var k=l.readField({fieldName:e.name.value,field:e,variables:s.variables,from:n},s),O=(0,h.u2)(e);void 0===k?f.Gw.added(e)||(c=y.merge(c,((r={})[O]="Can't find field '".concat(e.name.value,"' on ").concat((0,h.Yk)(n)?n.__ref+" object":"object "+JSON.stringify(n,null,2)),r))):(0,_.k)(k)?k=g(t.executeSubSelectedArray({field:e,array:k,enclosingRef:o,context:s}),O):e.selectionSet?null!=k&&(k=g(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:k,enclosingRef:(0,h.Yk)(k)?k:o,context:s}),O)):s.canonizeResults&&(k=t.canon.pass(k)),void 0!==k&&v.push(((m={})[O]=k,m))}else{var w=(0,a.hi)(e,s.lookupFragment);if(!w&&e.kind===p.h.FRAGMENT_SPREAD)throw(0,i._K)(7,e.name.value);w&&l.fragmentMatches(w,d)&&w.selectionSet.selections.forEach(E.add,E)}}));var O={result:(0,m.bw)(v),missing:c},w=s.canonizeResults?this.canon.admit(O):k(O);return w.result&&this.knownResults.set(w.result,r),w},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,o=e.array,s=e.enclosingRef,a=e.context,c=new m.w0;function u(e,r){var n;return e.missing&&(t=c.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(o=o.filter(a.store.canRead)),o=o.map((function(e,t){return null===e?null:(0,_.k)(e)?u(r.executeSubSelectedArray({field:n,array:e,enclosingRef:s,context:a}),t):n.selectionSet?u(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,h.Yk)(e)?e:s,context:a}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach((function(r){(0,g.s)(r)&&((0,i.kG)(!(0,h.Yk)(r),8,function(e,t){return(0,h.Yk)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,r),t.name.value),Object.values(r).forEach(n.add,n))}))}}(a.store,n,e),e)})),{result:a.canonizeResults?this.canon.admit(o):o,missing:t}},e}();function W(e){try{JSON.stringify(e,(function(e,t){if("string"==typeof t)throw t;return t}))}catch(t){return t}}var $=r(79487),J=r(13887),X=r(66438),H=Object.create(null);function Z(e){var t=JSON.stringify(e);return H[t]||(H[t]=Object.create(null))}function ee(e){var t=Z(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},o=r.keyObject=re(e,(function(e){var o=oe(r.storeObject,e,n);return void 0===o&&t!==r.storeObject&&w.call(t,e[0])&&(o=oe(t,e,ie)),(0,i.kG)(void 0!==o,2,e.join("."),t),o}));return"".concat(r.typename,":").concat(JSON.stringify(o))})}function te(e){var t=Z(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,s=re(e,(function(e){var r=e[0],o=r.charAt(0);if("@"!==o)if("$"!==o){if(t)return oe(t,e)}else{var s=r.slice(1);if(i&&w.call(i,s)){var a=e.slice(0);return a[0]=s,oe(i,a)}}else if(n&&(0,_.O)(n.directives)){var c=r.slice(1),u=n.directives.find((function(e){return e.name.value===c})),l=u&&(0,h.NC)(u,i);return l&&oe(l,e.slice(1))}})),a=JSON.stringify(s);return(t||"{}"!==a)&&(o+=":"+a),o})}function re(e,t){var r=new m.w0;return ne(e).reduce((function(e,n){var i,o=t(n);if(void 0!==o){for(var s=n.length-1;s>=0;--s)(i={})[n[s]]=o,o=i;e=r.merge(e,o)}return e}),Object.create(null))}function ne(e){var t=Z(e);if(!t.paths){var r=t.paths=[],n=[];e.forEach((function(t,i){(0,_.k)(t)?(ne(t).forEach((function(e){return r.push(n.concat(e))})),n.length=0):(n.push(t),(0,_.k)(e[i+1])||(r.push(n.slice(0)),n.length=0))}))}return t.paths}function ie(e,t){return e[t]}function oe(e,t,r){return r=r||ie,se(t.reduce((function e(t,n){return(0,_.k)(t)?t.map((function(t){return e(t,n)})):t&&r(t,n)}),e))}function se(e){return(0,g.s)(e)?(0,_.k)(e)?e.map(se):re(Object.keys(e).sort(),(function(t){return oe(e,t)})):e}function ae(e){return void 0!==e.args?e.args:e.field?(0,h.NC)(e.field,e.variables):null}h.PT.setStringify(z.B);var ce=function(){},ue=function(e,t){return t.fieldName},le=function(e,t,r){return(0,r.mergeObjects)(e,t)},fe=function(e,t){return t},he=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,n.pi)({dataIdFromObject:S},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,i=this,o=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var s,a=t&&t.storeObject||e,c=(0,n.pi)((0,n.pi)({},t),{typename:o,storeObject:a,readField:t&&t.readField||function(){var e=de(arguments,a);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),u=o&&this.getTypePolicy(o),l=u&&u.keyFn||this.config.dataIdFromObject;l;){var f=l((0,n.pi)((0,n.pi)({},e),a),c);if(!(0,_.k)(f)){s=f;break}l=ee(f)}return s=s?String(s):void 0,c.keyObject?[s,c.keyObject]:[s]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(r){var i=e[r],o=i.queryType,s=i.mutationType,a=i.subscriptionType,c=(0,n._T)(i,["queryType","mutationType","subscriptionType"]);o&&t.setRootTypename("Query",r),s&&t.setRootTypename("Mutation",r),a&&t.setRootTypename("Subscription",r),w.call(t.toBeAdded,r)?t.toBeAdded[r].push(c):t.toBeAdded[r]=[c]}))},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function s(e,t){e.merge="function"==typeof t?t:!0===t?le:!1===t?fe:e.merge}s(n,t.merge),n.keyFn=!1===i?ce:(0,_.k)(i)?ee(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEach((function(t){var n=r.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)n.read=i;else{var a=i.keyArgs,c=i.read,u=i.merge;n.keyFn=!1===a?ue:(0,_.k)(a)?te(a):"function"==typeof a?a:n.keyFn,"function"==typeof c&&(n.read=c),s(n,u)}n.read&&n.merge&&(n.keyFn=n.keyFn||ue)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,i.kG)(!n||n===e,3,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(r){t.getSupertypeSet(r,!0),e[r].forEach((function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(x);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!w.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((function(r,n){if(r.test(e)){var o=t.supertypeMap.get(n);o&&o.forEach((function(e){return i.add(e)}))}}))),i&&i.size&&i.forEach((function(e){var i=t.getTypePolicy(e),o=i.fields,s=(0,n._T)(i,["fields"]);Object.assign(r,s),Object.assign(r.fields,o)}))}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach((function(r){t.updateTypePolicy(e,r)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var o=this;if(!e.typeCondition)return!0;if(!t)return!1;var s=e.typeCondition.name.value;if(t===s)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(s))for(var a=this.getSupertypeSet(t,!0),c=[a],u=function(e){var t=o.getSupertypeSet(e,!1);t&&t.size&&c.indexOf(t)<0&&c.push(t)},l=!(!r||!this.fuzzySubtypes.size),f=!1,h=0;h1?a:t}:(o=(0,n.pi)({},s),w.call(o,"from")||(o.from=t)),!1!==globalThis.__DEV__&&void 0===o.from&&!1!==globalThis.__DEV__&&i.kG.warn(5,(0,J.v)(Array.from(e))),void 0===o.variables&&(o.variables=r),o}function ve(e){return function(t,r){if((0,_.k)(t)||(0,_.k)(r))throw(0,i._K)(6);if((0,g.s)(t)&&(0,g.s)(r)){var o=e.getFieldValue(t,"__typename"),s=e.getFieldValue(r,"__typename");if(o&&s&&o!==s)return r;if((0,h.Yk)(t)&&R(r))return e.merge(t.__ref,r),t;if(R(t)&&(0,h.Yk)(r))return e.merge(t,r.__ref),r;if(R(t)&&R(r))return(0,n.pi)((0,n.pi)({},t),r)}return r}}function ye(e,t,r){var i="".concat(t).concat(r),o=e.flavors.get(i);return o||e.flavors.set(i,o=e.clientOnly===t&&e.deferred===r?e:(0,n.pi)((0,n.pi)({},e),{clientOnly:t,deferred:r})),o}var me=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,o=t.query,a=t.result,c=t.dataId,u=t.variables,l=t.overwrite,f=(0,y.$H)(o),p=new m.w0;u=(0,n.pi)((0,n.pi)({},(0,y.O4)(f)),u);var d=(0,n.pi)((0,n.pi)({store:e,written:Object.create(null),merge:function(e,t){return p.merge(e,t)},variables:u,varString:(0,z.B)(u)},F(o,this.fragments)),{overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),v=this.processSelectionSet({result:a||Object.create(null),dataId:c,selectionSet:f.selectionSet,mergeTree:{map:new Map},context:d});if(!(0,h.Yk)(v))throw(0,i._K)(9,a);return d.incomingById.forEach((function(t,n){var o=t.storeObject,a=t.mergeTree,c=t.fieldNodeSet,u=(0,h.kQ)(n);if(a&&a.map.size){var l=r.applyMerges(a,u,o,d);if((0,h.Yk)(l))return;o=l}if(!1!==globalThis.__DEV__&&!d.overwrite){var f=Object.create(null);c.forEach((function(e){e.selectionSet&&(f[e.name.value]=!0)}));Object.keys(o).forEach((function(e){(function(e){return!0===f[N(e)]})(e)&&!function(e){var t=a&&a.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,r,n){var o=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},a=o(e);if(!a)return;var c=o(t);if(!c)return;if((0,h.Yk)(a))return;if((0,s.D)(a,c))return;if(Object.keys(a).every((function(e){return void 0!==n.getFieldValue(c,e)})))return;var u=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),l=N(r),f="".concat(u,".").concat(l);if(_e.has(f))return;_e.add(f);var p=[];(0,_.k)(a)||(0,_.k)(c)||[a,c].forEach((function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||p.includes(t)||p.push(t)}));!1!==globalThis.__DEV__&&i.kG.warn(12,l,u,p.length?"either ensure all objects of type "+p.join(" and ")+" have an ID or a custom merge function, or ":"",f,a,c)}(u,o,e,d.store)}))}e.merge(n,o)})),e.retain(v.__ref),v},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,o=e.result,s=e.selectionSet,a=e.context,c=e.mergeTree,u=this.cache.policies,l=Object.create(null),p=r&&u.rootTypenamesById[r]||(0,h.qw)(o,s,a.fragmentMap)||r&&a.store.get(r,"__typename");"string"==typeof p&&(l.__typename=p);var d=function(){var e=de(arguments,l,a.variables);if((0,h.Yk)(e.from)){var t=a.incomingById.get(e.from.__ref);if(t){var r=u.readField((0,n.pi)((0,n.pi)({},e),{from:t.storeObject}),a);if(void 0!==r)return r}}return u.readField(e,a)},v=new Set;this.flattenFields(s,o,a,p).forEach((function(e,r){var n,s=(0,h.u2)(r),a=o[s];if(v.add(r),void 0!==a){var y=u.getStoreFieldName({typename:p,fieldName:r.name.value,field:r,variables:e.variables}),m=ge(c,y),b=t.processFieldValue(a,r,r.selectionSet?ye(e,!1,!1):e,m),g=void 0;r.selectionSet&&((0,h.Yk)(b)||R(b))&&(g=d("__typename",b));var E=u.getMergeFunction(p,r.name.value,g);E?m.info={field:r,typename:p,merge:E}:Oe(c,y),l=e.merge(l,((n={})[y]=b,n))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||f.Gw.added(r)||u.getReadFunction(p,r.name.value)||!1!==globalThis.__DEV__&&i.kG.error(10,(0,h.u2)(r),o)}));try{var y=u.identify(o,{typename:p,selectionSet:s,fragmentMap:a.fragmentMap,storeObject:l,readField:d}),m=y[0],b=y[1];r=r||m,b&&(l=a.merge(l,b))}catch(O){if(!r)throw O}if("string"==typeof r){var g=(0,h.kQ)(r),E=a.written[r]||(a.written[r]=[]);if(E.indexOf(s)>=0)return g;if(E.push(s),this.reader&&this.reader.isFresh(o,g,s,a))return g;var k=a.incomingById.get(r);return k?(k.storeObject=a.merge(k.storeObject,l),k.mergeTree=Ee(k.mergeTree,c),v.forEach((function(e){return k.fieldNodeSet.add(e)}))):a.incomingById.set(r,{storeObject:l,mergeTree:ke(c)?void 0:c,fieldNodeSet:v}),g}return l},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,_.k)(e)?e.map((function(e,o){var s=i.processFieldValue(e,t,r,ge(n,o));return Oe(n,o),s})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?(0,$.X)(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,h.qw)(t,e,r.fragmentMap));var o=new Map,s=this.cache.policies,c=new O.B(!1);return function e(u,l){var f=c.lookup(u,l.clientOnly,l.deferred);f.visited||(f.visited=!0,u.selections.forEach((function(c){if((0,b.LZ)(c,r.variables)){var u=l.clientOnly,f=l.deferred;if(u&&f||!(0,_.O)(c.directives)||c.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(u=!0),"defer"===t){var n=(0,h.NC)(e,r.variables);n&&!1===n.if||(f=!0)}})),(0,h.My)(c)){var d=o.get(c);d&&(u=u&&d.clientOnly,f=f&&d.deferred),o.set(c,ye(r,u,f))}else{var v=(0,a.hi)(c,r.lookupFragment);if(!v&&c.kind===p.h.FRAGMENT_SPREAD)throw(0,i._K)(11,c.name.value);v&&s.fragmentMatches(v,n,t,r.variables)&&e(v.selectionSet,ye(r,u,f))}}})))}(e,r),o},e.prototype.applyMerges=function(e,t,r,o,s){var a,c=this;if(e.map.size&&!(0,h.Yk)(r)){var u,l=(0,_.k)(r)||!(0,h.Yk)(t)&&!R(t)?void 0:t,f=r;l&&!s&&(s=[(0,h.Yk)(l)?l.__ref:l]);var p=function(e,t){return(0,_.k)(e)?"number"==typeof t?e[t]:void 0:o.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var r=p(l,t),n=p(f,t);if(void 0!==n){s&&s.push(t);var a=c.applyMerges(e,r,n,o,s);a!==n&&(u=u||new Map).set(t,a),s&&(0,i.kG)(s.pop()===t)}})),u&&(r=(0,_.k)(f)?f.slice(0):(0,n.pi)({},f),u.forEach((function(e,t){r[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,o,s&&(a=o.store).getStorage.apply(a,s)):r},e}(),be=[];function ge(e,t){var r=e.map;return r.has(t)||r.set(t,be.pop()||{map:new Map}),r.get(t)}function Ee(e,t){if(e===t||!t||ke(t))return e;if(!e||ke(e))return t;var r=e.info&&t.info?(0,n.pi)((0,n.pi)({},e.info),t.info):e.info||t.info,i=e.map.size&&t.map.size,o={info:r,map:i?new Map:e.map.size?e.map:t.map};if(i){var s=new Set(t.map.keys());e.map.forEach((function(e,r){o.map.set(r,Ee(e,t.map.get(r))),s.delete(r)})),s.forEach((function(r){o.map.set(r,Ee(t.map.get(r),e.map.get(r)))}))}return o}function ke(e){return!e||!(e.info||e.map.size)}function Oe(e,t){var r=e.map,n=r.get(t);n&&ke(n)&&(be.push(n),r.delete(t))}var _e=new Set;var we=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new l.A(f.Gw),r.assumeImmutableResults=!0,r.makeVar=X.QS,r.txCount=0,r.config=function(e){return(0,v.o)(D,e)}(t),r.addTypename=!!r.config.addTypename,r.policies=new he({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return(0,n.ZT)(t,e),t.prototype.init=function(){var e=this.data=new M.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new me(this,this.storeReader=new Y({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:I(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=(0,o.re)((function(e,r){return t.broadcastWatch(e,r)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(G(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,(0,z.B)({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,r=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore((0,n.pi)((0,n.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:r})).result||null}catch(i){if(i instanceof u)return null;throw i}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(w.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,n.pi)((0,n.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,X._v)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,X.li)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){z.B.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,h.Yk)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(t){!1!==globalThis.__DEV__&&i.kG.warn(t)}},t.prototype.evict=function(e){if(!e.id){if(w.call(e,"id"))return!1;e=(0,n.pi)((0,n.pi)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),z.B.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),(0,X.li)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,i=e.update,o=e.optimistic,s=void 0===o||o,a=e.removeOptimistic,c=e.onWatchUpdated,u=function(e){var n=r,o=n.data,s=n.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=i(r)}finally{--r.txCount,r.data=o,r.optimisticData=s}},l=new Set;return c&&!this.txCount&&this.broadcastWatches((0,n.pi)((0,n.pi)({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof s?this.optimisticData=this.optimisticData.addLayer(s,u):!1===s?u(this.data):u(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),c&&l.size?(this.broadcastWatches((0,n.pi)((0,n.pi)({},e),{onWatchUpdated:function(e,t){var r=c.call(this,e,t);return!1!==r&&l.delete(e),r}})),l.size&&l.forEach((function(e){return r.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(r){return t.maybeBroadcastWatch(r,e)}))},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,n,r))||r&&(0,s.D)(r.result,n.result)||e.callback(e.lastDiff=n,r)},t}(c)},80900:(e,t,r)=>{r.d(t,{B:()=>f,h:()=>l});var n=r(97582),i=r(75028),o=r(13154),s=r(30320),a=r(21436);var c,u,l=function(){function e(){this.known=new(s.sy?WeakSet:Set),this.pool=new i.B(s.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,o.s)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,o.s)(e)){var t=function(e){return(0,o.s)(e)?(0,a.k)(e)?e.slice(0):(0,n.pi)({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,o.s)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var n=e.map(this.admit,this);return(c=this.pool.lookupArray(n)).array||(this.known.add(c.array=n),!1!==globalThis.__DEV__&&Object.freeze(n)),c.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),s=[i],a=this.sortedKeys(e);s.push(a.json);var c,u=s.length;if(a.sorted.forEach((function(r){s.push(t.admit(e[r]))})),!(c=this.pool.lookupArray(s)).object){var l=c.object=Object.create(i);this.known.add(l),a.sorted.forEach((function(e,t){l[e]=s[u+t]})),!1!==globalThis.__DEV__&&Object.freeze(l)}return c.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}(),f=Object.assign((function(e){if((0,o.s)(e)){void 0===c&&h();var t=c.admit(e),r=u.get(t);return void 0===r&&u.set(t,r=JSON.stringify(t)),r}return JSON.stringify(e)}),{reset:h});function h(){c=new l,u=new(s.mr?WeakMap:Map)}},66438:(e,t,r)=>{r.d(t,{QS:()=>u,_v:()=>c,ab:()=>i,li:()=>a});var n=r(33893),i=new(r(70093).g7),o=new WeakMap;function s(e){var t=o.get(e);return t||o.set(e,t={vars:new Set,dep:(0,n.dP)()}),t}function a(e){s(e).vars.forEach((function(t){return t.forgetCache(e)}))}function c(e){s(e).vars.forEach((function(t){return t.attachCache(e)}))}function u(e){var t=new Set,r=new Set,n=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach((function(e){s(e).dep.dirty(n),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)}));var c=Array.from(r);r.clear(),c.forEach((function(t){return t(e)}))}}else{var u=i.getValue();u&&(o(u),s(u).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var o=n.attachCache=function(e){return t.add(e),s(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}},7015:(e,t,r)=>{r.d(t,{f:()=>ce});var n=r(97582),i=r(78287),o=r(48702),s=o.i.execute,a=r(49379),c=r(56429),u=r(30020),l=r(37280),f=r(19065),h=r(76487),p=r(80900),d=r(30320),v=r(18056),y=r(48216);function m(e,t,r){return new y.y((function(n){var i=n.next,o=n.error,s=n.complete,a=0,c=!1,u={then:function(e){return new Promise((function(t){return t(e())}))}};function l(e,t){return e?function(t){++a;var r=function(){return e(t)};u=u.then(r,r).then((function(e){--a,i&&i.call(n,e),c&&f.complete()}),(function(e){throw--a,e})).catch((function(e){o&&o.call(n,e)}))}:function(e){return t&&t.call(n,e)}}var f={next:l(t,i),error:l(r,o),complete:function(){c=!0,a||s&&s.call(n)}},h=e.subscribe(f);return function(){return h.unsubscribe()}}))}var b=r(21436);function g(e){var t=E(e);return(0,b.O)(t)}function E(e){var t=(0,b.O)(e.errors)?e.errors.slice(0):[];return(0,l.GG)(e)&&(0,b.O)(e.incremental)&&e.incremental.forEach((function(e){e.errors&&t.push.apply(t,e.errors)})),t}var k=r(36765),O=r(51761),_=r(13154),w=r(60897);function T(e,t,r){var n=[];e.forEach((function(e){return e[t]&&n.push(e)})),n.forEach((function(e){return e[t](r)}))}function S(e){function t(t){Object.defineProperty(e,t,{value:y.y})}return d.aS&&Symbol.species&&t(Symbol.species),t("@@species"),e}function D(e){return e&&"function"==typeof e.then}var I=function(e){function t(t){var r=e.call(this,(function(e){return r.addObserver(e),function(){return r.removeObserver(e)}}))||this;return r.observers=new Set,r.promise=new Promise((function(e,t){r.resolve=e,r.reject=t})),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),T(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),T(r.observers,"error",e))},complete:function(){var e=r,t=e.sub,n=e.sources;if(null!==t){var i=(void 0===n?[]:n).shift();i?D(i)?i.then((function(e){return r.sub=e.subscribe(r.handlers)})):r.sub=i.subscribe(r.handlers):(t&&setTimeout((function(){return t.unsubscribe()})),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),T(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.complete()},r.promise.catch((function(e){})),"function"==typeof t&&(t=[new y.y(t)]),D(t)?t.then((function(e){return r.start(e)}),r.handlers.error):r.start(t),r}return(0,n.ZT)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach((function(r){return r(e,t)})))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add((function(r,n){t||(t=!0,e(r,n))}))},t}(y.y);S(I);var x,N=r(30990);function A(e){return!!e&&e<7}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(x||(x={}));var R=r(53712),F=r(79487),C=r(23361);function P(e,t,r,i){var o=t.data,s=(0,n._T)(t,["data"]),a=r.data,c=(0,n._T)(r,["data"]);return(0,u.Z)(s,c)&&L((0,k.p$)(e).selectionSet,o,a,{fragmentMap:(0,C.F)((0,k.kU)(e)),variables:i})}function L(e,t,r,n){if(t===r)return!0;var i=new Set;return e.selections.every((function(e){if(i.has(e))return!0;if(i.add(e),!(0,f.LZ)(e,n.variables))return!0;if(M(e))return!0;if((0,O.My)(e)){var o=(0,O.u2)(e),s=t&&t[o],a=r&&r[o],c=e.selectionSet;if(!c)return(0,u.Z)(s,a);var l=Array.isArray(s),h=Array.isArray(a);if(l!==h)return!1;if(l&&h){var p=s.length;if(a.length!==p)return!1;for(var d=0;d0},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}(y.y);function B(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=n,"function"==typeof n?n.apply(this,arguments):r}}):e.reobserve()}function U(e){!1!==globalThis.__DEV__&&i.kG.error(21,e.message,e.stack)}function G(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&i.kG.debug(22,e)}function z(e){return"network-only"===e||"no-cache"===e||"standby"===e}S(Q);var K=r(77304),Y=r(97359);function W(e){return e.kind===Y.h.FIELD||e.kind===Y.h.FRAGMENT_SPREAD||e.kind===Y.h.INLINE_FRAGMENT}var $=r(182),J=r(66438),X=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,$.Ee)(t.resolvers,e)})):this.resolvers=(0,$.Ee)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,r=e.remoteResult,i=e.context,o=e.variables,s=e.onlyRunForcedResolvers,a=void 0!==s&&s;return(0,n.mG)(this,void 0,void 0,(function(){return(0,n.Jh)(this,(function(e){return t?[2,this.resolveDocument(t,r.data,i,o,this.fragmentMatcher,a).then((function(e){return(0,n.pi)((0,n.pi)({},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,f.FS)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,h.ob)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,n.pi)((0,n.pi)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,n.mG)(this,void 0,void 0,(function(){return(0,n.Jh)(this,(function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then((function(e){return(0,n.pi)((0,n.pi)({},t),e.exportedVariables)}))]:[2,(0,n.pi)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,K.Vn)(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 K.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,h.aL)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,i,o,s){return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===s&&(s=!1),(0,n.mG)(this,void 0,void 0,(function(){var a,c,u,l,f,h,p,d,v,y;return(0,n.Jh)(this,(function(m){return a=(0,k.p$)(e),c=(0,k.kU)(e),u=(0,C.F)(c),l=this.collectSelectionsToResolve(a,u),f=a.operation,h=f?f.charAt(0).toUpperCase()+f.slice(1):"Query",d=(p=this).cache,v=p.client,y={fragmentMap:u,context:(0,n.pi)((0,n.pi)({},r),{cache:d,client:v}),variables:i,fragmentMatcher:o,defaultOperationType:h,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:s},!1,[2,this.resolveSelectionSet(a.selectionSet,false,t,y).then((function(e){return{result:e,exportedVariables:y.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,r,o){return(0,n.mG)(this,void 0,void 0,(function(){var s,a,c,u,l,h=this;return(0,n.Jh)(this,(function(p){return s=o.fragmentMap,a=o.context,c=o.variables,u=[r],l=function(e){return(0,n.mG)(h,void 0,void 0,(function(){var l,h;return(0,n.Jh)(this,(function(n){return(t||o.selectionsToResolve.has(e))&&(0,f.LZ)(e,c)?(0,O.My)(e)?[2,this.resolveField(e,t,r,o).then((function(t){var r;void 0!==t&&u.push(((r={})[(0,O.u2)(e)]=t,r))}))]:((0,O.Ao)(e)?l=e:(l=s[e.name.value],(0,i.kG)(l,16,e.name.value)),l&&l.typeCondition&&(h=l.typeCondition.name.value,o.fragmentMatcher(r,h,a))?[2,this.resolveSelectionSet(l.selectionSet,t,r,o).then((function(e){u.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(l)).then((function(){return(0,$.bw)(u)}))]}))}))},e.prototype.resolveField=function(e,t,r,i){return(0,n.mG)(this,void 0,void 0,(function(){var o,s,a,c,u,l,f,h,p,d=this;return(0,n.Jh)(this,(function(n){return r?(o=i.variables,s=e.name.value,a=(0,O.u2)(e),c=s!==a,u=r[a]||r[s],l=Promise.resolve(u),i.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(f=r.__typename||i.defaultOperationType,(h=this.resolvers&&this.resolvers[f])&&(p=h[c?s:a])&&(l=Promise.resolve(J.ab.withValue(this.cache,p,[r,(0,O.NC)(e,o),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,l.then((function(r){var n,o;if(void 0===r&&(r=u),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)return r;if(null==r)return r;var s=null!==(o=null===(n=e.directives)||void 0===n?void 0:n.some((function(e){return"client"===e.name.value})))&&void 0!==o&&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,K.Vn)(o,{Directive:function(e,t,n,i,o){"client"===e.name.value&&o.forEach((function(e){r(e)&&W(e)&&s.add(e)}))},FragmentSpread:function(n,o,a,c,u){var l=t[n.name.value];(0,i.kG)(l,17,n.name.value);var f=e(l);f.size>0&&(u.forEach((function(e){r(e)&&W(e)&&s.add(e)})),s.add(n),f.forEach((function(e){s.add(e)})))}})}return n.get(o)}(e)},e}(),H=new(d.mr?WeakMap:Map);function Z(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return H.set(e,(H.get(e)+1)%1e15),r.apply(this,arguments)})}function ee(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var te=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;H.has(r)||(H.set(r,0),Z(r,"evict"),Z(r,"modify"),Z(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||x.loading;return this.variables&&this.networkStatus!==x.loading&&!(0,u.D)(this.variables,e.variables)&&(t=x.setVariables),(0,u.D)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){ee(this),this.dirty=!1},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&(0,u.D)(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?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,r=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||(0,u.D)(r&&r.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():B(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;ee(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(A(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach((function(e){return e.unsubscribe()}));var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var i=(0,n.pi)((0,n.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,u.D)(i,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===H.get(this.cache)&&(0,u.D)(t,r.variables)&&(0,u.D)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i=this,o=new $.w0,s=(0,b.O)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,b.O)(e.incremental)){var a=(0,l.mT)(this.getDiff().result,e);e.data=a}else if("hasNext"in e&&e.hasNext){var c=this.getDiff();e.data=o.merge(c.result,e.data)}this.graphQLErrors=s,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(re(e,r.errorPolicy)?this.cache.performTransaction((function(o){if(i.shouldWrite(e,r.variables))o.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),i.lastWrite={result:e,variables:r.variables,dmCount:H.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete)return void(e.data=i.lastDiff.diff.result);var s=i.getDiffOptions(r.variables),a=o.diff(s);!i.stopped&&(0,u.D)(i.variables,r.variables)&&i.updateWatch(r.variables),i.updateLastDiff(a,s),a.complete&&(e.data=a.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=x.ready},e.prototype.markError=function(e){return this.networkStatus=x.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function re(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!g(e);return!n&&r&&e.data&&(n=!0),n}var ne=r(50713),ie=Object.prototype.hasOwnProperty,oe=function(){function e(e){var t=this,r=e.cache,n=e.link,i=e.defaultOptions,o=e.documentTransform,s=e.queryDeduplication,a=void 0!==s&&s,c=e.onBroadcast,u=e.ssrMode,l=void 0!==u&&u,f=e.clientAwareness,h=void 0===f?{}:f,p=e.localState,y=e.assumeImmutableResults,m=void 0===y?!!r.assumeImmutableResults:y;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(d.mr?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map;var b=new v.A((function(e){return t.cache.transformDocument(e)}),{cache:!1});this.cache=r,this.link=n,this.defaultOptions=i||Object.create(null),this.queryDeduplication=a,this.clientAwareness=h,this.localState=p||new X({cache:r}),this.ssrMode=l,this.assumeImmutableResults=m,this.documentTransform=o?b.concat(o).concat(b):b,(this.onBroadcast=c)&&(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._K)(23))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,r,o=e.mutation,s=e.variables,a=e.optimisticResponse,c=e.updateQueries,u=e.refetchQueries,l=void 0===u?[]:u,f=e.awaitRefetchQueries,h=void 0!==f&&f,p=e.update,d=e.onQueryUpdated,v=e.fetchPolicy,y=void 0===v?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":v,b=e.errorPolicy,k=void 0===b?(null===(r=this.defaultOptions.mutate)||void 0===r?void 0:r.errorPolicy)||"none":b,O=e.keepRootFields,_=e.context;return(0,n.mG)(this,void 0,void 0,(function(){var e,t,r,u;return(0,n.Jh)(this,(function(f){switch(f.label){case 0:return(0,i.kG)(o,24),(0,i.kG)("network-only"===y||"no-cache"===y,25),e=this.generateMutationId(),o=this.cache.transformForLink(this.transform(o)),t=this.getDocumentInfo(o).hasClientExports,s=this.getVariables(o,s),t?[4,this.localState.addExportedVariables(o,s,_)]:[3,2];case 1:s=f.sent(),f.label=2;case 2:return r=this.mutationStore&&(this.mutationStore[e]={mutation:o,variables:s,loading:!0,error:null}),a&&this.markMutationOptimistic(a,{mutationId:e,document:o,variables:s,fetchPolicy:y,errorPolicy:k,context:_,updateQueries:c,update:p,keepRootFields:O}),this.broadcastQueries(),u=this,[2,new Promise((function(t,i){return m(u.getObservableFromLink(o,(0,n.pi)((0,n.pi)({},_),{optimisticResponse:a}),s,!1),(function(t){if(g(t)&&"none"===k)throw new N.cA({graphQLErrors:E(t)});r&&(r.loading=!1,r.error=null);var i=(0,n.pi)({},t);return"function"==typeof l&&(l=l(i)),"ignore"===k&&g(i)&&delete i.errors,u.markMutationResult({mutationId:e,result:i,document:o,variables:s,fetchPolicy:y,errorPolicy:k,context:_,update:p,updateQueries:c,awaitRefetchQueries:h,refetchQueries:l,removeOptimistic:a?e:void 0,onQueryUpdated:d,keepRootFields:O})})).subscribe({next:function(e){u.broadcastQueries(),"hasNext"in e&&!1!==e.hasNext||t(e)},error:function(t){r&&(r.loading=!1,r.error=t),a&&u.cache.removeOptimistic(e),u.broadcastQueries(),i(t instanceof N.cA?t:new N.cA({networkError:t}))}})}))]}}))}))},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&&re(i,e.errorPolicy)){if((0,l.GG)(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,l.GG)(i)&&(0,b.O)(i.incremental)){var a=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),c=void 0;a.result&&(c=(0,l.mT)(a.result,i)),void 0!==c&&(i.data=c,o.push({result:c,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var u=e.updateQueries;u&&this.queries.forEach((function(e,n){var s=e.observableQuery,a=s&&s.queryName;if(a&&ie.call(u,a)){var c=u[a],l=r.queries.get(n),f=l.document,h=l.variables,p=t.diff({query:f,variables:h,returnPartialData:!0,optimistic:!1}),d=p.result;if(p.complete&&d){var v=c(d,{mutationResult:i,queryName:f&&(0,k.rY)(f)||void 0,queryVariables:h});v&&o.push({result:v,dataId:"ROOT_QUERY",query:f,variables:h})}}}))}if(o.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var f=[];if(this.refetchQueries({updateCache:function(t){s||o.forEach((function(e){return t.write(e)}));var a=e.update,c=!(0,l.M0)(i)||(0,l.GG)(i)&&!i.hasNext;if(a){if(!s){var u=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});u.complete&&("incremental"in(i=(0,n.pi)((0,n.pi)({},i),{data:u.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}c&&a(t,i,{context:e.context,variables:e.variables})}s||e.keepRootFields||!c||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 f.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(f).then((function(){return i}))}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var r=this,o="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{r.markMutationResult((0,n.pi)((0,n.pi)({},t),{result:{data:o}}),e)}catch(s){!1!==globalThis.__DEV__&&i.kG.error(s)}}),t.mutationId)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(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,f.mj)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,f.FS)(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,h.bi)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:(0,k.O4)((0,k.$H)(e)),asQuery:(0,n.pi)((0,n.pi)({},e),{definitions:e.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,n.pi)((0,n.pi)({},e),{operation:"query"}):e}))})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,n.pi)((0,n.pi)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,n.pi)((0,n.pi)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new te(this),i=new Q({queryManager:this,queryInfo:r,options:e});return i.lastQuery=t,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;return void 0===t&&(t=this.generateQueryId()),(0,i.kG)(e.query,26),(0,i.kG)("Document"===e.query.kind,27),(0,i.kG)(!e.returnPartialData,28),(0,i.kG)(!e.pollInterval,29),this.fetchQuery(t,(0,n.pi)((0,n.pi)({},e),{query:this.transform(e.query)})).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._K)(30)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=x.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 Set;return Array.isArray(e)&&e.forEach((function(e){"string"==typeof e?o.set(e,!1):(0,O.JW)(e)?o.set(t.transform(e),!1):(0,_.s)(e)&&e.query&&s.add(e)})),this.queries.forEach((function(t,n){var i=t.observableQuery,s=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&&o.has(a)||s&&o.has(s))&&(r.set(n,i),a&&o.set(a,!0),s&&o.set(s,!0))}})),s.size&&s.forEach((function(e){var o=(0,w.X)("legacyOneTimeQuery"),s=t.getQuery(o).init({document:e.query,variables:e.variables}),a=new Q({queryManager:t,queryInfo:s,options:(0,n.pi)((0,n.pi)({},e),{fetchPolicy:"network-only"})});(0,i.kG)(a.queryId===o),s.setObservableQuery(a),r.set(o,a)})),!1!==globalThis.__DEV__&&o.size&&o.forEach((function(e,t){e||!1!==globalThis.__DEV__&&i.kG.warn("string"==typeof t?31:32,t)})),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.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,o=void 0===i?"none":i,s=e.variables,a=e.context,c=void 0===a?{}:a;r=this.transform(r),s=this.getVariables(r,s);var u=function(e){return t.getObservableFromLink(r,c,e).map((function(i){"no-cache"!==n&&(re(i,o)&&t.cache.write({query:r,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var s=g(i),a=(0,N.ls)(i);if(s||a){var c={};if(s&&(c.graphQLErrors=i.errors),a&&(c.protocolErrors=i.extensions[N.YG]),"none"===o||a)throw new N.cA(c)}return"ignore"===o&&delete i.errors,i}))};if(this.getDocumentInfo(r).hasClientExports){var l=this.localState.addExportedVariables(r,s,c).then(u);return new y.y((function(e){var t=null;return l.then((function(r){return t=r.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return u(s)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,i){var o,a,c=this;void 0===i&&(i=null!==(o=null==t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var u=this.getDocumentInfo(e),l=u.serverQuery,f=u.clientQuery;if(l){var h=this.inFlightLinkObservables,d=this.link,v={query:l,variables:r,operationName:(0,k.rY)(l)||void 0,context:this.prepareContext((0,n.pi)((0,n.pi)({},t),{forceFetch:!i}))};if(t=v.context,i){var b=(0,ne.S)(l),g=h.get(b)||new Map;h.set(b,g);var E=(0,p.B)(r);if(!(a=g.get(E))){var O=new I([s(d,v)]);g.set(E,a=O),O.beforeNext((function(){g.delete(E)&&g.size<1&&h.delete(b)}))}}else a=new I([s(d,v)])}else a=new I([y.y.of({data:{}})]),t=this.prepareContext(t);return f&&(a=m(a,(function(e){return c.localState.runResolvers({document:f,remoteResult:e,context:t,variables:r})}))),a},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return m(this.getObservableFromLink(i,r.context,r.variables),(function(o){var s=E(o),a=s.length>0;if(n>=e.lastRequestId){if(a&&"none"===r.errorPolicy)throw e.markError(new N.cA({graphQLErrors:s}));e.markResult(o,i,r,t),e.markReady()}var c={data:o.data,loading:!1,networkStatus:x.ready};return a&&"ignore"!==r.errorPolicy&&(c.errors=s,c.networkStatus=x.error),c}),(function(t){var r=(0,N.MS)(t)?t:new N.cA({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r}))},e.prototype.fetchConcastWithInfo=function(e,t,r){var n=this;void 0===r&&(r=x.loading);var i,o,s=t.query,a=this.getVariables(s,t.variables),c=this.getQuery(e),u=this.defaultOptions.watchQuery,l=t.fetchPolicy,f=void 0===l?u&&u.fetchPolicy||"cache-first":l,h=t.errorPolicy,p=void 0===h?u&&u.errorPolicy||"none":h,d=t.returnPartialData,v=void 0!==d&&d,y=t.notifyOnNetworkStatusChange,m=void 0!==y&&y,b=t.context,g=void 0===b?{}:b,E=Object.assign({},t,{query:s,variables:a,fetchPolicy:f,errorPolicy:p,returnPartialData:v,notifyOnNetworkStatusChange:m,context:g}),k=function(e){E.variables=e;var i=n.fetchQueryByPolicy(c,E,r);return"standby"!==E.fetchPolicy&&i.sources.length>0&&c.observableQuery&&c.observableQuery.applyNextFetchPolicy("after-fetch",t),i},O=function(){return n.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,(function(e){O(),setTimeout((function(){return i.cancel(e)}))})),this.getDocumentInfo(E.query).hasClientExports)i=new I(this.localState.addExportedVariables(E.query,E.variables,E.context).then(k).then((function(e){return e.sources}))),o=!0;else{var _=k(E.variables);o=_.fromLink,i=new I(_.sources)}return i.promise.then(O,O),{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,w.X)("refetchQueries"):void 0:s,c=e.onQueryUpdated,u=new Map;n&&this.getObservableQueries(n).forEach((function(e,r){u.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})}));var l=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 te&&e.watcher.observableQuery;if(n){if(c){u.delete(n.queryId);var i=c(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==c&&u.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),u.size&&u.forEach((function(e,r){var n,i=e.oq,o=e.lastDiff,s=e.diff;if(c){if(!s){var a=i.queryInfo;a.reset(),s=a.getDiff()}n=c(i,s,o)}c&&!0!==n||(n=i.refetch()),!1!==n&&l.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)})),a&&this.cache.removeOptimistic(a),l},e.prototype.fetchQueryByPolicy=function(e,t,r){var i=this,o=t.query,s=t.variables,a=t.fetchPolicy,c=t.refetchWritePolicy,l=t.errorPolicy,f=t.returnPartialData,h=t.context,p=t.notifyOnNetworkStatusChange,d=e.networkStatus;e.init({document:o,variables:s,networkStatus:r});var v=function(){return e.getDiff()},m=function(t,r){void 0===r&&(r=e.networkStatus||x.loading);var a=t.result;!1===globalThis.__DEV__||f||(0,u.D)(a,{})||G(t.missing);var c=function(e){return y.y.of((0,n.pi)({data:e,loading:A(r),networkStatus:r},t.complete?null:{partial:!0}))};return a&&i.getDocumentInfo(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:a},context:h,variables:s,onlyRunForcedResolvers:!0}).then((function(e){return c(e.data||void 0)})):"none"===l&&r===x.refetch&&Array.isArray(t.missing)?c(void 0):c(a)},b="no-cache"===a?0:r===x.refetch&&"merge"!==c?1:2,g=function(){return i.getResultsFromLink(e,b,{query:o,variables:s,context:h,fetchPolicy:a,errorPolicy:l})},E=p&&"number"==typeof d&&d!==r&&A(r);switch(a){default:case"cache-first":return(k=v()).complete?{fromLink:!1,sources:[m(k,e.markReady())]}:f||E?{fromLink:!0,sources:[m(k),g()]}:{fromLink:!0,sources:[g()]};case"cache-and-network":var k;return(k=v()).complete||f||E?{fromLink:!0,sources:[m(k),g()]}:{fromLink:!0,sources:[g()]};case"cache-only":return{fromLink:!1,sources:[m(v(),e.markReady())]};case"network-only":return E?{fromLink:!0,sources:[m(v()),g()]}:{fromLink:!0,sources:[g()]};case"no-cache":return E?{fromLink:!0,sources:[m(e.getDiff()),g()]}:{fromLink:!0,sources:[g()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new te(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,n.pi)((0,n.pi)({},t),{clientAwareness:this.clientAwareness})},e}();function se(e,t){return(0,R.o)(e,t,t.variables&&{variables:(0,R.o)((0,n.pi)((0,n.pi)({},e&&e.variables),t.variables))})}var ae=!1,ce=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,i._K)(13);var r=e.uri,n=e.credentials,s=e.headers,u=e.cache,l=e.documentTransform,f=e.ssrMode,h=void 0!==f&&f,p=e.ssrForceFetchDelay,d=void 0===p?0:p,v=e.connectToDevTools,y=void 0===v?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1!==globalThis.__DEV__:v,m=e.queryDeduplication,b=void 0===m||m,g=e.defaultOptions,E=e.assumeImmutableResults,k=void 0===E?u.assumeImmutableResults:E,O=e.resolvers,_=e.typeDefs,w=e.fragmentMatcher,T=e.name,S=e.version,D=e.link;D||(D=r?new c.u({uri:r,credentials:n,headers:s}):o.i.empty()),this.link=D,this.cache=u,this.disableNetworkFetches=h||d>0,this.queryDeduplication=b,this.defaultOptions=g||Object.create(null),this.typeDefs=_,d&&setTimeout((function(){return t.disableNetworkFetches=!1}),d),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=a.i,this.localState=new X({cache:u,client:this,resolvers:O,fragmentMatcher:w}),this.queryManager=new oe({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,documentTransform:l,queryDeduplication:b,ssrMode:h,clientAwareness:{name:T,version:S},localState:this.localState,assumeImmutableResults:k,onBroadcast:y?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),y&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("object"==typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this}ae||!1===globalThis.__DEV__||(ae=!0,setTimeout((function(){if("undefined"!=typeof window&&window.document&&window.top===window.self&&!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.kG.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=se(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=(0,n.pi)((0,n.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=se(this.defaultOptions.query,e)),(0,i.kG)("cache-and-network"!==e.fetchPolicy,14),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,n.pi)((0,n.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=se(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){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 s(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.kG.debug(15,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},e}()},30990:(e,t,r)=>{r.d(t,{MS:()=>a,YG:()=>o,cA:()=>c,ls:()=>s});var n=r(97582),i=(r(78287),r(13154)),o=Symbol();function s(e){return!!e.extensions&&Array.isArray(e.extensions[o])}function a(e){return e.hasOwnProperty("graphQLErrors")}var c=function(e){function t(r){var o,s,a=r.graphQLErrors,c=r.protocolErrors,u=r.clientErrors,l=r.networkError,f=r.errorMessage,h=r.extraInfo,p=e.call(this,f)||this;return p.name="ApolloError",p.graphQLErrors=a||[],p.protocolErrors=c||[],p.clientErrors=u||[],p.networkError=l||null,p.message=f||(o=p,s=(0,n.ev)((0,n.ev)((0,n.ev)([],o.graphQLErrors,!0),o.clientErrors,!0),o.protocolErrors,!0),o.networkError&&s.push(o.networkError),s.map((function(e){return(0,i.s)(e)&&e.message||"Error message not found."})).join("\n")),p.extraInfo=h,p.__proto__=t.prototype,p}return(0,n.ZT)(t,e),t}(Error)},48702:(e,t,r)=>{r.d(t,{i:()=>l});var n=r(78287),i=r(48216),o=r(97582);var s=r(36765);function a(e,t){return t?t(e):i.y.of()}function c(e){return"function"==typeof e?new l(e):e}function u(e){return e.request.length<=1}var l=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return i.y.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(c).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,r,n){var o=c(r),s=c(n||new e(a));return u(o)&&u(s)?new e((function(e){return t(e)?o.request(e)||i.y.of():s.request(e)||i.y.of()})):new e((function(e,r){return t(e)?o.request(e,r)||i.y.of():s.request(e,r)||i.y.of()}))},e.execute=function(e,t){return e.request(function(e,t){var r=(0,o.pi)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){r="function"==typeof e?(0,o.pi)((0,o.pi)({},r),e(r)):(0,o.pi)((0,o.pi)({},r),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return(0,o.pi)({},r)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?(0,s.rY)(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,i=Object.keys(e);r{r.d(t,{u:()=>x});var n=r(97582),i=r(48702),o=r(78287),s=r(19065),a=r(48216),c=function(e,t){var r;try{r=JSON.stringify(e)}catch(i){var n=(0,o._K)(37,t,i.message);throw n.parseError=i,n}return r},u=r(30320);function l(e){var t=null,r=null,n=!1,i=[],o=[];function s(e){if(!r){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function a(e){r=e,o.slice().forEach((function(t){t[1](e)})),!t||t()}function c(){n=!0,o.slice().forEach((function(e){e[0]({value:void 0,done:!0})})),!t||t()}t=function(){t=null,e.removeListener("data",s),e.removeListener("error",a),e.removeListener("end",c),e.removeListener("finish",c),e.removeListener("close",c)},e.on("data",s),e.on("error",a),e.on("end",c),e.on("finish",c),e.on("close",c);var l={next:function(){return new Promise((function(e,t){return r?t(r):i.length?e({value:i.shift(),done:!1}):n?e({value:void 0,done:!0}):void o.push([e,t])}))}};return u.DN&&(l[Symbol.asyncIterator]=function(){return this}),l}function f(e){var t={next:function(){return e.read()}};return u.DN&&(t[Symbol.asyncIterator]=function(){return this}),t}function h(e){var t,r,n=e;if(e.body&&(n=e.body),function(e){return!(!u.DN||!e[Symbol.asyncIterator])}(n))return r=n[Symbol.asyncIterator](),(t={next:function(){return r.next()}})[Symbol.asyncIterator]=function(){return this},t;if(function(e){return!!e.getReader}(n))return f(n.getReader());if(function(e){return!!e.stream}(n))return f(n.stream().getReader());if(function(e){return!!e.arrayBuffer}(n))return function(e){var t=!1,r={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise((function(t,r){e.then((function(e){t({value:e,done:!1})})).catch(r)})))}};return u.DN&&(r[Symbol.asyncIterator]=function(){return this}),r}(n.arrayBuffer());if(function(e){return!!e.pipe}(n))return l(n);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var p=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},d=r(30990),v=r(37280),y=Object.prototype.hasOwnProperty;function m(e){var t={};return e.split("\n").forEach((function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}})),t}function b(e,t){if(e.status>=300){p(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(n){var r=n;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}var g=r(50713),E={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},k=function(e,t){return t(e)};function O(e,t){for(var r=[],i=2;i-1;){if(_=void 0,N=[u.slice(0,O),u.slice(O+c.length)],u=N[1],w=(_=N[0]).indexOf("\r\n\r\n"),T=m(_.slice(0,w)),(S=T["content-type"])&&-1===S.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(D=_.slice(w))if(I=b(e,D),Object.keys(I).length>1||"data"in I||"incremental"in I||"errors"in I||"payload"in I)(0,v.yU)(I)?(x={},"payload"in I&&(x=(0,n.pi)({},I.payload)),"errors"in I&&(x=(0,n.pi)((0,n.pi)({},x),{extensions:(0,n.pi)((0,n.pi)({},"extensions"in x?x.extensions:null),(A={},A[d.YG]=I.errors,A))})),t(x)):t(I);else if(1===Object.keys(I).length&&"hasNext"in I&&!I.hasNext)return[2];O=u.indexOf(c)}return[3,1];case 3:return[2]}}))}))}(t,s):(i=e,function(e){return e.text().then((function(t){return b(e,t)})).then((function(t){return e.status>=300&&p(e,t,"Response not successful: Received status code ".concat(e.status)),Array.isArray(t)||y.call(t,"data")||y.call(t,"errors")||p(e,t,"Server response was missing for query '".concat(Array.isArray(i)?i.map((function(e){return e.operationName})):i.operationName,"'.")),t}))})(t).then(s)})).then((function(){q=void 0,r.complete()})).catch((function(e){q=void 0,function(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(e,r)})),function(){q&&q.abort()}}))}))},x=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,I(t).request)||this;return r.options=t,r}return(0,n.ZT)(t,e),t}(i.i)},21436:(e,t,r)=>{r.d(t,{O:()=>i,k:()=>n});var n=Array.isArray;function i(e){return Array.isArray(e)&&e.length>0}},30320:(e,t,r)=>{r.d(t,{DN:()=>a,aS:()=>s,mr:()=>i,sy:()=>o});var n=r(78287),i="function"==typeof WeakMap&&"ReactNative"!==(0,n.wY)((function(){return navigator.product})),o="function"==typeof WeakSet,s="function"==typeof Symbol&&"function"==typeof Symbol.for,a=s&&Symbol.asyncIterator;(0,n.wY)((function(){return window.document.createElement})),(0,n.wY)((function(){return navigator.userAgent.indexOf("jsdom")>=0}))},79487:(e,t,r)=>{r.d(t,{X:()=>i});var n=Object.prototype.toString;function i(e){return o(e)}function o(e,t){switch(n.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach((function(e,n){r[n]=o(e,t)})),r;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var i=Object.create(Object.getPrototypeOf(e));return t.set(e,i),Object.keys(e).forEach((function(r){i[r]=o(e[r],t)})),i;default:return e}}},53712:(e,t,r)=>{function n(){for(var e=[],t=0;tn})},37280:(e,t,r)=>{r.d(t,{GG:()=>s,M0:()=>a,mT:()=>u,yU:()=>c});var n=r(13154),i=r(21436),o=r(182);function s(e){return"incremental"in e}function a(e){return s(e)||function(e){return"hasNext"in e&&"data"in e}(e)}function c(e){return(0,n.s)(e)&&"payload"in e}function u(e,t){var r=e,n=new o.w0;return s(t)&&(0,i.O)(t.incremental)&&t.incremental.forEach((function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var s=i[o],a=!isNaN(+s)?[]:{};a[s]=t,t=a}r=n.merge(r,t)})),r}},60897:(e,t,r)=>{r.d(t,{X:()=>i});var n=new Map;function i(e){var t=n.get(e)||1;return n.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},182:(e,t,r)=>{r.d(t,{Ee:()=>s,bw:()=>a,w0:()=>u});var n=r(97582),i=r(13154),o=Object.prototype.hasOwnProperty;function s(){for(var e=[],t=0;t1)for(var n=new u,i=1;i{function n(e){return null!==e&&"object"==typeof e}r.d(t,{s:()=>n})},13887:(e,t,r)=>{r.d(t,{v:()=>i});var n=r(60897);function i(e,t){void 0===t&&(t=0);var r=(0,n.X)("stringifyForDisplay");return JSON.stringify(e,(function(e,t){return void 0===t?r:t}),t).split(JSON.stringify(r)).join("")}},78287:(e,t,r)=>{r.d(t,{kG:()=>m,wY:()=>p,_K:()=>b});var n=r(97582),i="Invariant Violation",o=Object.setPrototypeOf,s=void 0===o?function(e,t){return e.__proto__=t,e}:o,a=function(e){function t(r){void 0===r&&(r=i);var n=e.call(this,"number"==typeof r?i+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=i,s(n,t.prototype),n}return(0,n.ZT)(t,e),t}(Error);function c(e,t){if(!e)throw new a(t)}var u=["debug","log","warn","error","silent"],l=u.indexOf("log");function f(e){return function(){if(u.indexOf(e)>=l)return(console[e]||console.log).apply(console,arguments)}}!function(e){e.debug=f("debug"),e.log=f("log"),e.warn=f("warn"),e.error=f("error")}(c||(c={}));var h=r(49379);function p(e){try{return e()}catch(o){}}const d=p((function(){return globalThis}))||p((function(){return window}))||p((function(){return self}))||p((function(){return global}))||p((function(){return p.constructor("return this")()}));var v=r(13887);function y(e){return function(t){for(var r=[],i=1;i{r.d(t,{A:()=>c});var n=r(75028),i=r(30320),o=r(36765),s=r(78287);function a(e){return e}var c=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=i.sy?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),!1!==t.cache&&(this.stableCacheKeys=new n.B(i.mr,(function(e){return{key:e}})))}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(a,{cache:!1})},e.split=function(t,r,n){return void 0===n&&(n=e.identity()),new e((function(e){return(t(e)?r:n).transformDocument(e)}),{cache:!1})},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.getStableCacheEntry(e);if(t&&t.value)return t.value;(0,o.A$)(e);var r=this.transform(e);return this.resultCache.add(r),t&&(t.value=r),r},e.prototype.concat=function(t){var r=this;return new e((function(e){return t.transformDocument(r.transformDocument(e))}),{cache:!1})},e.prototype.getStableCacheEntry=function(e){if(this.stableCacheKeys){var t=this.getCacheKey(e);return t?((0,s.kG)(Array.isArray(t),63),this.stableCacheKeys.lookupArray(t)):void 0}},e}()},19065:(e,t,r)=>{r.d(t,{FS:()=>s,LZ:()=>o,mj:()=>a});var n=r(78287),i=r(77304);function o(e,t){var r=e.directives;return!r||!r.length||function(e){var t=[];e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var r=e.arguments,i=e.name.value;(0,n.kG)(r&&1===r.length,65,i);var o=r[0];(0,n.kG)(o.name&&"if"===o.name.value,66,i);var s=o.value;(0,n.kG)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),67,i),t.push({directive:e,ifArgument:o})}}));return t}(r).every((function(e){var r=e.directive,i=e.ifArgument,o=!1;return"Variable"===i.value.kind?(o=t&&t[i.value.name.value],(0,n.kG)(void 0!==o,64,r.name.value)):o=i.value.value,"skip"===r.name.value?!o:o}))}function s(e,t,r){var n=new Set(e),o=n.size;return(0,i.Vn)(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return i.$_}}),r?!n.size:n.size{r.d(t,{F:()=>s,Yk:()=>o,hi:()=>a});var n=r(97582),i=r(78287);function o(e,t){var r=t,o=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw(0,i._K)(68,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&o.push(e)})),void 0===r&&((0,i.kG)(1===o.length,69,o.length),r=o[0].name.value),(0,n.pi)((0,n.pi)({},e),{definitions:(0,n.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function s(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function a(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=e.name.value;if("function"==typeof t)return t(r);var n=t&&t[r];return(0,i.kG)(n,70,r),n||null;default:return null}}},36765:(e,t,r)=>{r.d(t,{$H:()=>s,A$:()=>o,O4:()=>h,iW:()=>u,kU:()=>c,p$:()=>f,pD:()=>l,rY:()=>a});var n=r(78287),i=r(51761);function o(e){(0,n.kG)(e&&"Document"===e.kind,71);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw(0,n._K)(72,e.kind);return e}));return(0,n.kG)(t.length<=1,73,t.length),e}function s(e){return o(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function a(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&!!e.name})).map((function(e){return e.name.value}))[0]||null}function c(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function u(e){var t=s(e);return(0,n.kG)(t&&"query"===t.operation,74),t}function l(e){(0,n.kG)("Document"===e.kind,75),(0,n.kG)(e.definitions.length<=1,76);var t=e.definitions[0];return(0,n.kG)("FragmentDefinition"===t.kind,77),t}function f(e){var t;o(e);for(var r=0,i=e.definitions;r{r.d(t,{S:()=>v});var n=r(87392);const i=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function o(e){return s[e.charCodeAt(0)]}const s=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var a=r(77304);const c={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>u(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=f("(",u(e.variableDefinitions,", "),")"),r=u([e.operation,u([e.name,t]),u(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+f(" = ",r)+f(" ",u(n," "))},SelectionSet:{leave:({selections:e})=>l(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){const o=f("",e,": ")+t;let s=o+f("(",u(r,", "),")");return s.length>80&&(s=o+f("(\n",h(u(r,"\n")),"\n)")),u([s,u(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+f(" ",u(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>u(["...",f("on ",e),u(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${f("(",u(r,", "),")")} on ${t} ${f("",u(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,n.LZ)(e):`"${e.replace(i,o)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+u(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+u(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+f("(",u(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>f("",e,"\n")+u(["schema",u(t," "),l(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>f("",e,"\n")+u(["scalar",t,u(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>f("",e,"\n")+u(["type",t,f("implements ",u(r," & ")),u(n," "),l(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>f("",e,"\n")+t+(p(r)?f("(\n",h(u(r,"\n")),"\n)"):f("(",u(r,", "),")"))+": "+n+f(" ",u(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>f("",e,"\n")+u([t+": "+r,f("= ",n),u(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>f("",e,"\n")+u(["interface",t,f("implements ",u(r," & ")),u(n," "),l(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>f("",e,"\n")+u(["union",t,u(r," "),f("= ",u(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>f("",e,"\n")+u(["enum",t,u(r," "),l(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>f("",e,"\n")+u([t,u(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>f("",e,"\n")+u(["input",t,u(r," "),l(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>f("",e,"\n")+"directive @"+t+(p(r)?f("(\n",h(u(r,"\n")),"\n)"):f("(",u(r,", "),")"))+(n?" repeatable":"")+" on "+u(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>u(["extend schema",u(e," "),l(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>u(["extend scalar",e,u(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>u(["extend type",e,f("implements ",u(t," & ")),u(r," "),l(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>u(["extend interface",e,f("implements ",u(t," & ")),u(r," "),l(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>u(["extend union",e,u(t," "),f("= ",u(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>u(["extend enum",e,u(t," "),l(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>u(["extend input",e,u(t," "),l(r)]," ")}};function u(e,t=""){var r;return null!==(r=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==r?r:""}function l(e){return f("{\n",h(u(e,"\n")),"\n}")}function f(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function h(e){return f(" ",e.replace(/\n/g,"\n "))}function p(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}var d=r(30320).mr?new WeakMap:void 0,v=function(e){var t;return(t=null==d?void 0:d.get(e))||(t=function(e){return(0,a.Vn)(e,c)}(e),null==d||d.set(e,t)),t}},51761:(e,t,r)=>{r.d(t,{Ao:()=>g,JW:()=>c,My:()=>b,NC:()=>v,PT:()=>h,Yk:()=>a,kQ:()=>s,qw:()=>m,u2:()=>y,vb:()=>u,vf:()=>l});var n=r(78287),i=r(13154),o=r(23361);function s(e){return{__ref:String(e)}}function a(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function c(e){return(0,i.s)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function u(e,t,r,i){if(function(e){return"IntValue"===e.kind}(r)||function(e){return"FloatValue"===e.kind}(r))e[t.value]=Number(r.value);else if(function(e){return"BooleanValue"===e.kind}(r)||function(e){return"StringValue"===e.kind}(r))e[t.value]=r.value;else if(function(e){return"ObjectValue"===e.kind}(r)){var o={};r.fields.map((function(e){return u(o,e.name,e.value,i)})),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(r)){var s=(i||{})[r.name.value];e[t.value]=s}else if(function(e){return"ListValue"===e.kind}(r))e[t.value]=r.values.map((function(e){var r={};return u(r,t,e,i),r[t.value]}));else if(function(e){return"EnumValue"===e.kind}(r))e[t.value]=r.value;else{if(!function(e){return"NullValue"===e.kind}(r))throw(0,n._K)(79,t.value,r.kind);e[t.value]=null}}function l(e,t){var r=null;e.directives&&(r={},e.directives.forEach((function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach((function(n){var i=n.name,o=n.value;return u(r[e.name.value],i,o,t)}))})));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach((function(e){var r=e.name,i=e.value;return u(n,r,i,t)}))),h(e.name.value,n,r)}var f=["connection","include","skip","client","rest","export","nonreactive"],h=Object.assign((function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach((function(e){i[e]=t[e]})),"".concat(r.connection.key,"(").concat(p(i),")")}return r.connection.key}var o=e;if(t){var s=p(t);o+="(".concat(s,")")}return r&&Object.keys(r).forEach((function(e){-1===f.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(p(r[e]),")"):o+="@".concat(e))})),o}),{setStringify:function(e){var t=p;return p=e,t}}),p=function(e){return JSON.stringify(e,d)};function d(e,t){return(0,i.s)(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,r){return e[r]=t[r],e}),{})),t}function v(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach((function(e){var n=e.name,i=e.value;return u(r,n,i,t)})),r}return null}function y(e){return e.alias?e.alias.value:e.name.value}function m(e,t,r){for(var n,i=0,s=t.selections;i{r.d(t,{Gw:()=>m,aL:()=>b,bi:()=>y,ob:()=>g});var n=r(97582),i=r(78287),o=r(97359),s=r(77304),a=r(36765),c=r(51761),u=r(23361),l=r(21436),f={kind:o.h.FIELD,name:{kind:o.h.NAME,value:"__typename"}};function h(e,t){return!e||e.selectionSet.selections.every((function(e){return e.kind===o.h.FRAGMENT_SPREAD&&h(t[e.name.value],t)}))}function p(e){return h((0,a.$H)(e)||(0,a.pD)(e),(0,u.F)((0,a.kU)(e)))?null:e}function d(e){var t=new Map,r=new Map;return e.forEach((function(e){e&&(e.name?t.set(e.name,e):e.test&&r.set(e.test,e))})),function(e){var n=t.get(e.name.value);return!n&&r.size&&r.forEach((function(t,r){r(e)&&(n=t)})),n}}function v(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function y(e,t){(0,a.A$)(t);for(var r=v(""),c=v(""),u=function(e){for(var t=0,n=void 0;t=0;--h)t.definitions[h].kind===o.h.OPERATION_DEFINITION&&++f;var y=d(e),m=function(e){return(0,l.O)(e)&&e.map(y).some((function(e){return e&&e.remove}))},b=new Map,g=!1,E={enter:function(e){if(m(e.directives))return g=!0,null}},k=(0,s.Vn)(t,{Field:E,InlineFragment:E,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var o=u(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(m(e.directives))return g=!0,null;var o=u(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){b.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===b.get(JSON.stringify(n))?e:f>0&&e.selectionSet.selections.every((function(e){return e.kind===o.h.FIELD&&"__typename"===e.name.value}))?(c(e.name.value).removed=!0,g=!0,null):void 0}},Directive:{leave:function(e){if(y(e))return g=!0,null}}});if(!g)return t;var O=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach((function(t){O(c(t)).transitiveVars.forEach((function(t){e.transitiveVars.add(t)}))}))),e},_=new Set;k.definitions.forEach((function(e){e.kind===o.h.OPERATION_DEFINITION?O(r(e.name&&e.name.value)).fragmentSpreads.forEach((function(e){_.add(e)})):e.kind!==o.h.FRAGMENT_DEFINITION||0!==f||c(e.name.value).removed||_.add(e.name.value)})),_.forEach((function(e){O(c(e)).fragmentSpreads.forEach((function(e){_.add(e)}))}));var w={enter:function(e){if(t=e.name.value,!_.has(t)||c(t).removed)return null;var t}};return p((0,s.Vn)(k,{FragmentSpread:w,FragmentDefinition:w,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=O(r(e.name&&e.name.value)).transitiveVars;if(t.size{r.d(t,{i:()=>n});var n="3.8.4"},81880:(e,t,r)=>{function n(e,t){return t||(t=e.slice(0)),e.raw=t,e}r.d(t,{Z:()=>n})},70093:(e,t,r)=>{r.d(t,{g7:()=>u});let n=null;const i={};let o=1;function s(e){try{return e()}catch(t){}}const a="@wry/context:Slot",c=s((()=>globalThis))||s((()=>global))||Object.create(null),u=c[a]||Array[a]||function(e){try{Object.defineProperty(c,a,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",o++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=n;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===i)break;return e!==n&&(n.slots[this.id]=t),!0}return n&&(n.slots[this.id]=i),!1}getValue(){if(this.hasValue())return n.slots[this.id]}withValue(e,t,r,i){const o={__proto__:null,[this.id]:e},s=n;n={parent:s,slots:o};try{return t.apply(i,r)}finally{n=s}}static bind(e){const t=n;return function(){const r=n;try{return n=t,e.apply(this,arguments)}finally{n=r}}}static noContext(e,t,r){if(!n)return e.apply(r,t);{const i=n;try{return n=null,e.apply(r,t)}finally{n=i}}}}),{bind:l,noContext:f}=u},30020:(e,t,r)=>{r.d(t,{D:()=>a,Z:()=>c});const{toString:n,hasOwnProperty:i}=Object.prototype,o=Function.prototype.toString,s=new Map;function a(e,t){try{return u(e,t)}finally{s.clear()}}const c=a;function u(e,t){if(e===t)return!0;const r=n.call(e);if(r!==n.call(t))return!1;switch(r){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(p(e,t))return!0;const r=l(e),n=l(t),o=r.length;if(o!==n.length)return!1;for(let e=0;e=0&&e.indexOf(t,r)===r}(r,h)}}return!1}function l(e){return Object.keys(e).filter(f,e)}function f(e){return void 0!==this[e]}const h="{ [native code] }";function p(e,t){let r=s.get(e);if(r){if(r.has(t))return!0}else s.set(e,r=new Set);return r.add(t),!1}},75028:(e,t,r)=>{r.d(t,{B:()=>a});const n=()=>Object.create(null),{forEach:i,slice:o}=Array.prototype,{hasOwnProperty:s}=Object.prototype;class a{constructor(e=!0,t=n){this.weakness=e,this.makeData=t}lookup(...e){return this.lookupArray(e)}lookupArray(e){let t=this;return i.call(e,(e=>t=t.getChildTrie(e))),s.call(t,"data")?t.data:t.data=this.makeData(o.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r{function n(e,t){if(!Boolean(e))throw new Error(t)}r.d(t,{a:()=>n})},25821:(e,t,r)=>{r.d(t,{X:()=>o});const n=10,i=2;function o(e){return s(e,[])}function s(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:s(t,r)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>i)return"[Array]";const r=Math.min(n,e.length),o=e.length-r,a=[];for(let n=0;n1&&a.push(`... ${o} more items`);return"["+a.join(", ")+"]"}(e,r);return function(e,t){const r=Object.entries(e);if(0===r.length)return"{}";if(t.length>i)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const n=r.map((([e,r])=>e+": "+s(r,t)));return"{ "+n.join(", ")+" }"}(e,r)}(e,t);default:return String(e)}}},72380:(e,t,r)=>{r.d(t,{UG:()=>a,WU:()=>i,Ye:()=>n,h8:()=>o,ku:()=>c});class n{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class i{constructor(e,t,r,n,i,o){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const o={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},s=new Set(Object.keys(o));function a(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&s.has(t)}var c;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(c||(c={}))},87392:(e,t,r)=>{r.d(t,{LZ:()=>s,wv:()=>i});var n=r(68297);function i(e){var t;let r=Number.MAX_SAFE_INTEGER,n=null,i=-1;for(let a=0;a0===t?e:e.slice(r))).slice(null!==(t=n)&&void 0!==t?t:0,i+1)}function o(e){let t=0;for(;t1&&i.slice(1).every((e=>0===e.length||(0,n.FD)(e.charCodeAt(0)))),a=r.endsWith('\\"""'),c=e.endsWith('"')&&!a,u=e.endsWith("\\"),l=c||u,f=!(null!=t&&t.minimize)&&(!o||e.length>70||l||s||a);let h="";const p=o&&(0,n.FD)(e.charCodeAt(0));return(f&&!p||s)&&(h+="\n"),h+=r,(f||l)&&(h+="\n"),'"""'+h+'"""'}},68297:(e,t,r)=>{function n(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function o(e){return e>=97&&e<=122||e>=65&&e<=90}function s(e){return o(e)||95===e}function a(e){return o(e)||i(e)||95===e}r.d(t,{FD:()=>n,HQ:()=>a,LQ:()=>s,X1:()=>i})},97359:(e,t,r)=>{var n;r.d(t,{h:()=>n}),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(n||(n={}))},77304:(e,t,r)=>{r.d(t,{$_:()=>a,Vn:()=>c});var n=r(37826),i=r(25821),o=r(72380),s=r(97359);const a=Object.freeze({});function c(e,t,r=o.h8){const c=new Map;for(const n of Object.values(s.h))c.set(n,u(t,n));let l,f,h,p=Array.isArray(e),d=[e],v=-1,y=[],m=e;const b=[],g=[];do{v++;const e=v===d.length,s=e&&0!==y.length;if(e){if(f=0===g.length?void 0:b[b.length-1],m=h,h=g.pop(),s)if(p){m=m.slice();let e=0;for(const[t,r]of y){const n=t-e;null===r?(m.splice(n,1),e++):m[n]=r}}else{m=Object.defineProperties({},Object.getOwnPropertyDescriptors(m));for(const[e,t]of y)m[e]=t}v=l.index,d=l.keys,y=l.edits,p=l.inArray,l=l.prev}else if(h){if(f=p?v:d[v],m=h[f],null==m)continue;b.push(f)}let u;if(!Array.isArray(m)){var E,k;(0,o.UG)(m)||(0,n.a)(!1,`Invalid AST Node: ${(0,i.X)(m)}.`);const r=e?null===(E=c.get(m.kind))||void 0===E?void 0:E.leave:null===(k=c.get(m.kind))||void 0===k?void 0:k.enter;if(u=null==r?void 0:r.call(t,m,f,h,b,g),u===a)break;if(!1===u){if(!e){b.pop();continue}}else if(void 0!==u&&(y.push([f,u]),!e)){if(!(0,o.UG)(u)){b.pop();continue}m=u}}var O;if(void 0===u&&s&&y.push([f,m]),e)b.pop();else l={inArray:p,index:v,keys:d,edits:y,prev:l},p=Array.isArray(m),d=p?m:null!==(O=r[m.kind])&&void 0!==O?O:[],v=-1,y=[],h&&g.push(h),h=m}while(void 0!==l);return 0!==y.length?y[y.length-1][1]:e}function u(e,t){const r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}},33893:(e,t,r)=>{r.d(t,{dP:()=>D,re:()=>A});var n=r(75028);function i(){}class o{constructor(e=1/0,t=i){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}const s=new(r(70093).g7);const{hasOwnProperty:a}=Object.prototype,c=Array.from||function(e){const t=[];return e.forEach((e=>t.push(e))),t};function u(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}const l=[],f=100;function h(e,t){if(!e)throw new Error(t||"assertion failure")}function p(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class d{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++d.count}peek(){if(1===this.value.length&&!m(this))return v(this),this.value[0]}recompute(e){return h(!this.recomputing,"already recomputing"),v(this),m(this)?function(e,t){w(e),s.withValue(e,y,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{u(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(r){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,m(e))return;g(e)}(e);return p(e.value)}(this,e):p(this.value)}setDirty(){this.dirty||(this.dirty=!0,this.value.length=0,b(this),u(this))}dispose(){this.setDirty(),w(this),E(this,((e,t)=>{e.setDirty(),T(e,this)}))}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=l.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(c(this.deps).forEach((e=>e.delete(this))),this.deps.clear(),l.push(this.deps),this.deps=null)}}function v(e){const t=s.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),m(e)?k(t,e):O(t,e),t}function y(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(r){e.value[1]=r}e.recomputing=!1}function m(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function b(e){E(e,k)}function g(e){E(e,O)}function E(e,t){const r=e.parents.size;if(r){const n=c(e.parents);for(let i=0;i0&&r===t.length&&e[r-1]===t[r-1]}(r,t.value)||e.setDirty(),_(e,t),m(e)||g(e)}function _(e,t){const r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(l.length0&&e.childValues.forEach(((t,r)=>{T(e,r)})),e.forgetDeps(),h(null===e.dirtyChildren)}function T(e,t){t.parents.delete(e),e.childValues.delete(t),_(e,t)}d.count=0;const S={setDirty:!0,dispose:!0,forget:!0};function D(e){const t=new Map,r=e&&e.subscribe;function n(e){const n=s.getValue();if(n){let i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(u(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){const n=t.get(e);if(n){const i=r&&a.call(S,r)?r:"setDirty";c(n).forEach((e=>e[i]())),t.delete(e),u(n)}},n}let I;function x(...e){return(I||(I=new n.B("function"==typeof WeakMap))).lookupArray(e)}const N=new Set;function A(e,{max:t=Math.pow(2,16),makeCacheKey:r=x,keyArgs:n,subscribe:i}=Object.create(null)){const a=new o(t,(e=>e.dispose())),c=function(){const t=r.apply(null,n?n.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let o=a.get(t);o||(a.set(t,o=new d(e)),o.subscribe=i,o.forget=()=>a.delete(t));const c=o.recompute(Array.prototype.slice.call(arguments));return a.set(t,o),N.add(a),s.hasValue()||(N.forEach((e=>e.clean())),N.clear()),c};function u(e){const t=a.get(e);t&&t.setDirty()}function l(e){const t=a.get(e);if(t)return t.peek()}function f(e){return a.delete(e)}return Object.defineProperty(c,"size",{get:()=>a.map.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:t,makeCacheKey:r,keyArgs:n,subscribe:i}),c.dirtyKey=u,c.dirty=function(){u(r.apply(null,arguments))},c.peekKey=l,c.peek=function(){return l(r.apply(null,arguments))},c.forgetKey=f,c.forget=function(){return f(r.apply(null,arguments))},c.makeCacheKey=r,c.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(c)}},48216:(e,t,r)=>{function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rw});var a=function(){return"function"==typeof Symbol},c=function(e){return a()&&Boolean(Symbol[e])},u=function(e){return c(e)?Symbol[e]:"@@"+e};a()&&!c("observable")&&(Symbol.observable=Symbol("observable"));var l=u("iterator"),f=u("observable"),h=u("species");function p(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw new TypeError(r+" is not a function");return r}}function d(e){var t=e.constructor;return void 0!==t&&null===(t=t[h])&&(t=void 0),void 0!==t?t:w}function v(e){return e instanceof w}function y(e){y.log?y.log(e):setTimeout((function(){throw e}))}function m(e){Promise.resolve().then((function(){try{e()}catch(t){y(t)}}))}function b(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var r=p(t,"unsubscribe");r&&r.call(t)}}catch(n){y(n)}}function g(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function E(e,t,r){e._state="running";var n=e._observer;try{var i=p(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(g(e),!i)throw r;i.call(n,r);break;case"complete":g(e),i&&i.call(n)}}catch(o){y(o)}"closed"===e._state?b(e):"running"===e._state&&(e._state="ready")}function k(e,t,r){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:r}],void m((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r1,i=!1,o=arguments[1];return new r((function(r){return t.subscribe({next:function(t){var s=!i;if(i=!0,!s||n)try{o=e(o,t)}catch(a){return r.error(a)}else o=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(o),r.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n=0&&i.splice(e,1),s()}});i.push(o)},error:function(e){n.error(e)},complete:function(){s()}});function s(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))},t[f]=function(){return this},e.from=function(t){var r="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var i=p(t,f);if(i){var o=i.call(t);if(Object(o)!==o)throw new TypeError(o+" is not an object");return v(o)&&o.constructor===r?o:new r((function(e){return o.subscribe(e)}))}if(c("iterator")&&(i=p(t,l)))return new r((function(e){m((function(){if(!e.closed){for(var r,o=n(i.call(t));!(r=o()).done;){var s=r.value;if(e.next(s),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new r((function(e){m((function(){if(!e.closed){for(var r=0;r{r.d(t,{Ps:()=>X});var n=r(97582);function i(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const o=/\r\n|[\n\r]/g;function s(e,t){let r=0,n=1;for(const s of e.body.matchAll(o)){if("number"==typeof s.index||i(!1),s.index>=t)break;r=s.index+s[0].length,n+=1}return{line:n,column:t+1-r}}function a(e,t){const r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=1===t.line?r:0,u=t.column+a,l=`${e.name}:${s}:${u}\n`,f=n.split(/\r\n|[\n\r]/g),h=f[i];if(h.length>120){const e=Math.floor(u/80),t=u%80,r=[];for(let n=0;n["|",e])),["|","^".padStart(t)],["|",r[e+1]]])}return l+c([[s-1+" |",f[i-1]],[`${s} |`,h],["|","^".padStart(u)],[`${s+1} |`,f[i+1]]])}function c(e){const t=e.filter((([e,t])=>void 0!==t)),r=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(r)+(t?" "+t:""))).join("\n")}class u extends Error{constructor(e,...t){var r,n,i;const{nodes:o,source:a,positions:c,path:f,originalError:h,extensions:p}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=f?f:void 0,this.originalError=null!=h?h:void 0,this.nodes=l(Array.isArray(o)?o:o?[o]:void 0);const d=l(null===(r=this.nodes)||void 0===r?void 0:r.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=a?a:null==d||null===(n=d[0])||void 0===n?void 0:n.source,this.positions=null!=c?c:null==d?void 0:d.map((e=>e.start)),this.locations=c&&a?c.map((e=>s(a,e))):null==d?void 0:d.map((e=>s(e.source,e.start)));const v="object"==typeof(y=null==h?void 0:h.extensions)&&null!==y?null==h?void 0:h.extensions:void 0;var y;this.extensions=null!==(i=null!=p?p:v)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=h&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,u):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const r of this.nodes)r.loc&&(e+="\n\n"+a((t=r.loc).source,s(t.source,t.start)));else if(this.source&&this.locations)for(const r of this.locations)e+="\n\n"+a(this.source,r);var t;return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function l(e){return void 0===e||0===e.length?void 0:e}function f(e,t,r){return new u(`Syntax Error: ${r}`,{source:e,positions:[t]})}var h,p=r(72380);!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(h||(h={}));var d,v=r(97359),y=r(87392),m=r(68297);!function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(d||(d={}));class b{constructor(e){const t=new p.WU(d.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==d.EOF)do{if(e.next)e=e.next;else{const t=T(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===d.COMMENT);return e}}function g(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function E(e,t){return k(e.charCodeAt(t))&&O(e.charCodeAt(t+1))}function k(e){return e>=55296&&e<=56319}function O(e){return e>=56320&&e<=57343}function _(e,t){const r=e.source.body.codePointAt(t);if(void 0===r)return d.EOF;if(r>=32&&r<=126){const e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function w(e,t,r,n,i){const o=e.line,s=1+r-e.lineStart;return new p.WU(t,r,n,o,s,i)}function T(e,t){const r=e.source.body,n=r.length;let i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function C(e,t){const r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw f(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function P(e,t){const r=e.source.body,n=r.length;let i=e.lineStart,o=t+3,s=o,a="";const c=[];for(;o0||(0,M.a)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,M.a)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class Q{constructor(e,t={}){const r=function(e){return q(e,V)}(e)?e:new V(e);this._lexer=new b(r),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(d.NAME);return this.node(e,{kind:v.h.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:v.h.DOCUMENT,definitions:this.many(d.SOF,this.parseDefinition,d.EOF)})}parseDefinition(){if(this.peek(d.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===d.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw f(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(d.BRACE_L))return this.node(e,{kind:v.h.OPERATION_DEFINITION,operation:p.ku.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let r;return this.peek(d.NAME)&&(r=this.parseName()),this.node(e,{kind:v.h.OPERATION_DEFINITION,operation:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(d.NAME);switch(e.value){case"query":return p.ku.QUERY;case"mutation":return p.ku.MUTATION;case"subscription":return p.ku.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(d.PAREN_L,this.parseVariableDefinition,d.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:v.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(d.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(d.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(d.DOLLAR),this.node(e,{kind:v.h.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:v.h.SELECTION_SET,selections:this.many(d.BRACE_L,this.parseSelection,d.BRACE_R)})}parseSelection(){return this.peek(d.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let r,n;return this.expectOptionalToken(d.COLON)?(r=t,n=this.parseName()):n=t,this.node(e,{kind:v.h.FIELD,alias:r,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(d.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(d.PAREN_L,t,d.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,r=this.parseName();return this.expectToken(d.COLON),this.node(t,{kind:v.h.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(d.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(d.NAME)?this.node(e,{kind:v.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:v.h.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:v.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:v.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case d.BRACKET_L:return this.parseList(e);case d.BRACE_L:return this.parseObject(e);case d.INT:return this.advanceLexer(),this.node(t,{kind:v.h.INT,value:t.value});case d.FLOAT:return this.advanceLexer(),this.node(t,{kind:v.h.FLOAT,value:t.value});case d.STRING:case d.BLOCK_STRING:return this.parseStringLiteral();case d.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:v.h.BOOLEAN,value:!0});case"false":return this.node(t,{kind:v.h.BOOLEAN,value:!1});case"null":return this.node(t,{kind:v.h.NULL});default:return this.node(t,{kind:v.h.ENUM,value:t.value})}case d.DOLLAR:if(e){if(this.expectToken(d.DOLLAR),this._lexer.token.kind===d.NAME){const e=this._lexer.token.value;throw f(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:v.h.STRING,value:e.value,block:e.kind===d.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:v.h.LIST,values:this.any(d.BRACKET_L,(()=>this.parseValueLiteral(e)),d.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:v.h.OBJECT,fields:this.any(d.BRACE_L,(()=>this.parseObjectField(e)),d.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,r=this.parseName();return this.expectToken(d.COLON),this.node(t,{kind:v.h.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(d.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(d.AT),this.node(t,{kind:v.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(d.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(d.BRACKET_R),t=this.node(e,{kind:v.h.LIST_TYPE,type:r})}else t=this.parseNamedType();return this.expectOptionalToken(d.BANG)?this.node(e,{kind:v.h.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:v.h.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(d.STRING)||this.peek(d.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.many(d.BRACE_L,this.parseOperationTypeDefinition,d.BRACE_R);return this.node(e,{kind:v.h.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(d.COLON);const r=this.parseNamedType();return this.node(e,{kind:v.h.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:v.h.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:v.h.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(d.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(d.BRACE_L,this.parseFieldDefinition,d.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(d.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:v.h.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(d.PAREN_L,this.parseInputValueDef,d.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseName();this.expectToken(d.COLON);const n=this.parseTypeReference();let i;this.expectOptionalToken(d.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:v.h.INPUT_VALUE_DEFINITION,description:t,name:r,type:n,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:v.h.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:v.h.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(d.EQUALS)?this.delimitedMany(d.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:v.h.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany(d.BRACE_L,this.parseEnumValueDefinition,d.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:v.h.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw f(this._lexer.source,this._lexer.token.start,`${B(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:v.h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(d.BRACE_L,this.parseInputValueDef,d.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===d.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),r=this.optionalMany(d.BRACE_L,this.parseOperationTypeDefinition,d.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:v.h.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:v.h.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:v.h.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:v.h.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:v.h.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:v.h.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:v.h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(d.AT);const r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:v.h.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(d.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(h,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new p.Ye(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw f(this._lexer.source,t.start,`Expected ${U(e)}, found ${B(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==d.NAME||t.value!==e)throw f(this._lexer.source,t.start,`Expected "${e}", found ${B(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===d.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return f(this._lexer.source,t.start,`Unexpected ${B(t)}.`)}any(e,t,r){this.expectToken(e);const n=[];for(;!this.expectOptionalToken(r);)n.push(t.call(this));return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);const n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);const r=[];do{r.push(t.call(this))}while(this.expectOptionalToken(e));return r}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==d.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw f(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function B(e){const t=e.value;return U(e.kind)+(null!=t?` "${t}"`:"")}function U(e){return function(e){return e===d.BANG||e===d.DOLLAR||e===d.AMP||e===d.PAREN_L||e===d.PAREN_R||e===d.SPREAD||e===d.COLON||e===d.EQUALS||e===d.AT||e===d.BRACKET_L||e===d.BRACKET_R||e===d.BRACE_L||e===d.PIPE||e===d.BRACE_R}(e)?`"${e}"`:e}var G=new Map,z=new Map,K=!0,Y=!1;function W(e){return e.replace(/[\s,]+/g," ").trim()}function $(e){var t=new Set,r=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,i=W((s=e.loc).source.body.substring(s.start,s.end)),o=z.get(n);o&&!o.has(i)?K&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||z.set(n,o=new Set),o.add(i),t.has(i)||(t.add(i),r.push(e))}else r.push(e);var s})),(0,n.pi)((0,n.pi)({},e),{definitions:r})}function J(e){var t=W(e);if(!G.has(t)){var r=function(e,t){return new Q(e,t).parseDocument()}(e,{experimentalFragmentVariables:Y,allowLegacyFragmentVariables:Y});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");G.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(r){var n=e[r];n&&"object"==typeof n&&t.add(n)}))}));var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}($(r)))}return G.get(t)}function X(e){for(var t=[],r=1;r{r.d(t,{h:()=>we});var n=r(97582),i=r(78287),o=r(33893),s=r(30020),a=r(23361),c=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,o.re)(a.Yk)}return e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction((function(){return t=e.update(r)}),n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,n.pi)((0,n.pi)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,n.pi)((0,n.pi)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,i=(0,n._T)(e,["id","data"]);return this.write(Object.assign(i,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,i=e.fragment,o=e.fragmentName,s=(0,n._T)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(s,{query:this.getFragmentDoc(i,o),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var i=r.readQuery(e),o=t(i);return null==o?i:(r.writeQuery((0,n.pi)((0,n.pi)({},e),{data:o})),o)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var i=r.readFragment(e),o=t(i);return null==o?i:(r.writeFragment((0,n.pi)((0,n.pi)({},e),{data:o})),o)}})},e}(),u=function(e){function t(r,n,i,o){var s,a=e.call(this,r)||this;if(a.message=r,a.path=n,a.query=i,a.variables=o,Array.isArray(a.path)){a.missing=a.message;for(var c=a.path.length-1;c>=0;--c)a.missing=((s={})[a.path[c]]=a.missing,s)}else a.missing=a.path;return a.__proto__=t.prototype,a}return(0,n.ZT)(t,e),t}(Error),l=r(18056),f=r(76487),h=r(51761),p=r(97359),d=r(30320),v=r(53712),y=r(36765),m=r(182),b=r(19065),g=r(13154);function E(e){var t=new Set([e]);return t.forEach((function(e){(0,g.s)(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(t){if(t instanceof TypeError)return null;throw t}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((function(r){(0,g.s)(e[r])&&t.add(e[r])}))})),e}function k(e){return!1!==globalThis.__DEV__&&E(e),e}var O=r(75028),_=r(21436),w=Object.prototype.hasOwnProperty;function T(e){return null==e}function S(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=T(n)?T(i)?void 0:{_id:i}:{id:n}),T(n)&&!T(i)&&(n=i),!T(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var D={dataIdFromObject:S,addTypename:!0,resultCaching:!0,canonizeResults:!1};function I(e){var t=e.canonizeResults;return void 0===t?D.canonizeResults:t}var x=/^[_a-z][_0-9a-z]*/i;function N(e){var t=e.match(x);return t?t[0]:e}function A(e,t,r){return!!(0,g.s)(t)&&((0,_.k)(t)?t.every((function(t){return A(e,t,r)})):e.selections.every((function(e){if((0,h.My)(e)&&(0,b.LZ)(e,r)){var n=(0,h.u2)(e);return w.call(t,n)&&(!e.selectionSet||A(e.selectionSet,t[n],r))}return!0})))}function R(e){return(0,g.s)(e)&&!(0,h.Yk)(e)&&!(0,_.k)(e)}function F(e,t){var r=(0,a.F)((0,y.kU)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var C=Object.create(null),P=function(){return C},L=Object.create(null),M=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return k((0,h.Yk)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,h.Yk)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,h.kQ)(e);if((0,h.Yk)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,h.kQ)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,n.pi)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),w.call(this.data,e)){var r=this.data[e];if(r&&w.call(r,t))return r[t]}return"__typename"===t&&w.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof Q?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),w.call(this.data,e)?this.data[e]:this instanceof Q?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;(0,h.Yk)(e)&&(e=e.__ref),(0,h.Yk)(t)&&(t=t.__ref);var o="string"==typeof e?this.lookup(r=e):e,s="string"==typeof t?this.lookup(r=t):t;if(s){(0,i.kG)("string"==typeof r,1);var a=new m.w0(U).merge(o,s);if(this.data[r]=a,a!==o&&(delete this.refs[r],this.group.caching)){var c=Object.create(null);o||(c.__exists=1),Object.keys(s).forEach((function(e){if(!o||o[e]!==a[e]){c[e]=1;var t=N(e);t===e||n.policies.hasKeyArgs(a.__typename,t)||(c[t]=1),void 0!==a[e]||n instanceof Q||delete a[e]}})),!c.__typename||o&&o.__typename||this.policies.rootTypenamesById[r]!==a.__typename||delete c.__typename,Object.keys(c).forEach((function(e){return n.group.dirty(r,e)}))}}},e.prototype.modify=function(e,t){var r=this,i=this.lookup(e);if(i){var o=Object.create(null),s=!1,a=!0,c={DELETE:C,INVALIDATE:L,isReference:h.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,h.kQ)(e)}:t,{store:r})}};if(Object.keys(i).forEach((function(u){var l=N(u),f=i[u];if(void 0!==f){var h="function"==typeof t?t:t[u]||t[l];if(h){var p=h===P?C:h(k(f),(0,n.pi)((0,n.pi)({},c),{fieldName:l,storeFieldName:u,storage:r.getStorage(e,u)}));p===L?r.group.dirty(e,u):(p===C&&(p=void 0),p!==f&&(o[u]=p,s=!0,f=p))}void 0!==f&&(a=!1)}})),s)return this.merge(e,o),a&&(this instanceof Q?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),s=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,s?((n={})[s]=P,n):P)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(w.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof Q&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach((function(t){w.call(e.policies.rootTypenamesById,t)||r.push(t)})),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(r){e&&w.call(e,r)||t.delete(r)})),e){var r=e.__META,i=(0,n._T)(e,["__META"]);Object.keys(i).forEach((function(e){t.merge(e,i[e])})),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof Q?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach((function(n){w.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])}));var n=Object.keys(r);if(n.length){for(var i=this;i instanceof Q;)i=i.parent;n.forEach((function(e){return i.delete(e)}))}return n},e.prototype.findChildRefIds=function(e){if(!w.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach((function(e){(0,h.Yk)(e)&&(t[e.__ref]=!0),(0,g.s)(e)&&Object.keys(e).forEach((function(t){var r=e[t];(0,g.s)(r)&&n.add(r)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),j=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,o.dP)():null,this.keyMaker=new O.B(d.mr)},e.prototype.depend=function(e,t){if(this.d){this.d(q(e,t));var r=N(t);r!==t&&this.d(q(e,r)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(q(e,t),"__exists"===t?"forget":"setDirty")},e}();function q(e,t){return t+"#"+e}function V(e,t){G(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=void 0===n||n,o=t.seed,s=e.call(this,r,new j(i))||this;return s.stump=new B(s),s.storageTrie=new O.B(d.mr),o&&s.replace(o),s}return(0,n.ZT)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(M||(M={}));var Q=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return(0,n.ZT)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach((function(r){(0,s.D)(n[r],i[r])||t.group.dirty(e,r)})):(t.group.dirty(e,"__exists"),Object.keys(i).forEach((function(r){t.group.dirty(e,r)}))):t.delete(e)})),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,n.pi)((0,n.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return w.call(this.data,t)?(0,n.pi)((0,n.pi)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(M),B=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new j(t.group.caching,t.group))||this}return(0,n.ZT)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(Q);function U(e,t,r){var n=e[r],i=t[r];return(0,s.D)(n,i)?n:i}function G(e){return!!(e instanceof M&&e.group.caching)}var z=r(80900);function K(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Y=function(){function e(e){var t=this;this.knownResults=new(d.mr?WeakMap:Map),this.config=(0,v.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:I(e)}),this.canon=e.canon||new z.h,this.executeSelectionSet=(0,o.re)((function(e){var r,i=e.context.canonizeResults,o=K(e);o[3]=!i;var s=(r=t.executeSelectionSet).peek.apply(r,o);return s?i?(0,n.pi)((0,n.pi)({},s),{result:t.canon.admit(s.result)}):s:(V(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:K,makeCacheKey:function(e,t,r,n){if(G(r.store))return r.store.makeCacheKey(e,(0,h.Yk)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=(0,o.re)((function(e){return V(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(G(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new z.h},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,i=e.rootId,o=void 0===i?"ROOT_QUERY":i,s=e.variables,a=e.returnPartialData,c=void 0===a||a,l=e.canonizeResults,f=void 0===l?this.config.canonizeResults:l,p=this.config.cache.policies;s=(0,n.pi)((0,n.pi)({},(0,y.O4)((0,y.iW)(r))),s);var d,v=(0,h.kQ)(o),m=this.executeSelectionSet({selectionSet:(0,y.p$)(r).selectionSet,objectOrReference:v,enclosingRef:v,context:(0,n.pi)({store:t,query:r,policies:p,variables:s,varString:(0,z.B)(s),canonizeResults:f},F(r,this.config.fragments))});if(m.missing&&(d=[new u(W(m.missing),m.missing,r,s)],!c))throw d[0];return{result:m.result,complete:!d,missing:d}},e.prototype.isFresh=function(e,t,r,n){if(G(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,r=e.selectionSet,n=e.objectOrReference,o=e.enclosingRef,s=e.context;if((0,h.Yk)(n)&&!s.policies.rootTypenamesById[n.__ref]&&!s.store.has(n.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(n.__ref," object")};var c,u=s.variables,l=s.policies,d=s.store.getFieldValue(n,"__typename"),v=[],y=new m.w0;function g(e,t){var r;return e.missing&&(c=y.merge(c,((r={})[t]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof d&&!l.rootIdsByTypename[d]&&v.push({__typename:d});var E=new Set(r.selections);E.forEach((function(e){var r,m;if((0,b.LZ)(e,u))if((0,h.My)(e)){var k=l.readField({fieldName:e.name.value,field:e,variables:s.variables,from:n},s),O=(0,h.u2)(e);void 0===k?f.Gw.added(e)||(c=y.merge(c,((r={})[O]="Can't find field '".concat(e.name.value,"' on ").concat((0,h.Yk)(n)?n.__ref+" object":"object "+JSON.stringify(n,null,2)),r))):(0,_.k)(k)?k=g(t.executeSubSelectedArray({field:e,array:k,enclosingRef:o,context:s}),O):e.selectionSet?null!=k&&(k=g(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:k,enclosingRef:(0,h.Yk)(k)?k:o,context:s}),O)):s.canonizeResults&&(k=t.canon.pass(k)),void 0!==k&&v.push(((m={})[O]=k,m))}else{var w=(0,a.hi)(e,s.lookupFragment);if(!w&&e.kind===p.h.FRAGMENT_SPREAD)throw(0,i._K)(7,e.name.value);w&&l.fragmentMatches(w,d)&&w.selectionSet.selections.forEach(E.add,E)}}));var O={result:(0,m.bw)(v),missing:c},w=s.canonizeResults?this.canon.admit(O):k(O);return w.result&&this.knownResults.set(w.result,r),w},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,o=e.array,s=e.enclosingRef,a=e.context,c=new m.w0;function u(e,r){var n;return e.missing&&(t=c.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(o=o.filter(a.store.canRead)),o=o.map((function(e,t){return null===e?null:(0,_.k)(e)?u(r.executeSubSelectedArray({field:n,array:e,enclosingRef:s,context:a}),t):n.selectionSet?u(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,h.Yk)(e)?e:s,context:a}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach((function(r){(0,g.s)(r)&&((0,i.kG)(!(0,h.Yk)(r),8,function(e,t){return(0,h.Yk)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,r),t.name.value),Object.values(r).forEach(n.add,n))}))}}(a.store,n,e),e)})),{result:a.canonizeResults?this.canon.admit(o):o,missing:t}},e}();function W(e){try{JSON.stringify(e,(function(e,t){if("string"==typeof t)throw t;return t}))}catch(t){return t}}var $=r(79487),J=r(13887),X=r(66438),H=Object.create(null);function Z(e){var t=JSON.stringify(e);return H[t]||(H[t]=Object.create(null))}function ee(e){var t=Z(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},o=r.keyObject=re(e,(function(e){var o=oe(r.storeObject,e,n);return void 0===o&&t!==r.storeObject&&w.call(t,e[0])&&(o=oe(t,e,ie)),(0,i.kG)(void 0!==o,2,e.join("."),t),o}));return"".concat(r.typename,":").concat(JSON.stringify(o))})}function te(e){var t=Z(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,s=re(e,(function(e){var r=e[0],o=r.charAt(0);if("@"!==o)if("$"!==o){if(t)return oe(t,e)}else{var s=r.slice(1);if(i&&w.call(i,s)){var a=e.slice(0);return a[0]=s,oe(i,a)}}else if(n&&(0,_.O)(n.directives)){var c=r.slice(1),u=n.directives.find((function(e){return e.name.value===c})),l=u&&(0,h.NC)(u,i);return l&&oe(l,e.slice(1))}})),a=JSON.stringify(s);return(t||"{}"!==a)&&(o+=":"+a),o})}function re(e,t){var r=new m.w0;return ne(e).reduce((function(e,n){var i,o=t(n);if(void 0!==o){for(var s=n.length-1;s>=0;--s)(i={})[n[s]]=o,o=i;e=r.merge(e,o)}return e}),Object.create(null))}function ne(e){var t=Z(e);if(!t.paths){var r=t.paths=[],n=[];e.forEach((function(t,i){(0,_.k)(t)?(ne(t).forEach((function(e){return r.push(n.concat(e))})),n.length=0):(n.push(t),(0,_.k)(e[i+1])||(r.push(n.slice(0)),n.length=0))}))}return t.paths}function ie(e,t){return e[t]}function oe(e,t,r){return r=r||ie,se(t.reduce((function e(t,n){return(0,_.k)(t)?t.map((function(t){return e(t,n)})):t&&r(t,n)}),e))}function se(e){return(0,g.s)(e)?(0,_.k)(e)?e.map(se):re(Object.keys(e).sort(),(function(t){return oe(e,t)})):e}function ae(e){return void 0!==e.args?e.args:e.field?(0,h.NC)(e.field,e.variables):null}h.PT.setStringify(z.B);var ce=function(){},ue=function(e,t){return t.fieldName},le=function(e,t,r){return(0,r.mergeObjects)(e,t)},fe=function(e,t){return t},he=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,n.pi)({dataIdFromObject:S},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,i=this,o=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var s,a=t&&t.storeObject||e,c=(0,n.pi)((0,n.pi)({},t),{typename:o,storeObject:a,readField:t&&t.readField||function(){var e=de(arguments,a);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),u=o&&this.getTypePolicy(o),l=u&&u.keyFn||this.config.dataIdFromObject;l;){var f=l((0,n.pi)((0,n.pi)({},e),a),c);if(!(0,_.k)(f)){s=f;break}l=ee(f)}return s=s?String(s):void 0,c.keyObject?[s,c.keyObject]:[s]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(r){var i=e[r],o=i.queryType,s=i.mutationType,a=i.subscriptionType,c=(0,n._T)(i,["queryType","mutationType","subscriptionType"]);o&&t.setRootTypename("Query",r),s&&t.setRootTypename("Mutation",r),a&&t.setRootTypename("Subscription",r),w.call(t.toBeAdded,r)?t.toBeAdded[r].push(c):t.toBeAdded[r]=[c]}))},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function s(e,t){e.merge="function"==typeof t?t:!0===t?le:!1===t?fe:e.merge}s(n,t.merge),n.keyFn=!1===i?ce:(0,_.k)(i)?ee(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEach((function(t){var n=r.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)n.read=i;else{var a=i.keyArgs,c=i.read,u=i.merge;n.keyFn=!1===a?ue:(0,_.k)(a)?te(a):"function"==typeof a?a:n.keyFn,"function"==typeof c&&(n.read=c),s(n,u)}n.read&&n.merge&&(n.keyFn=n.keyFn||ue)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,i.kG)(!n||n===e,3,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(r){t.getSupertypeSet(r,!0),e[r].forEach((function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(x);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!w.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((function(r,n){if(r.test(e)){var o=t.supertypeMap.get(n);o&&o.forEach((function(e){return i.add(e)}))}}))),i&&i.size&&i.forEach((function(e){var i=t.getTypePolicy(e),o=i.fields,s=(0,n._T)(i,["fields"]);Object.assign(r,s),Object.assign(r.fields,o)}))}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach((function(r){t.updateTypePolicy(e,r)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var o=this;if(!e.typeCondition)return!0;if(!t)return!1;var s=e.typeCondition.name.value;if(t===s)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(s))for(var a=this.getSupertypeSet(t,!0),c=[a],u=function(e){var t=o.getSupertypeSet(e,!1);t&&t.size&&c.indexOf(t)<0&&c.push(t)},l=!(!r||!this.fuzzySubtypes.size),f=!1,h=0;h1?a:t}:(o=(0,n.pi)({},s),w.call(o,"from")||(o.from=t)),!1!==globalThis.__DEV__&&void 0===o.from&&!1!==globalThis.__DEV__&&i.kG.warn(5,(0,J.v)(Array.from(e))),void 0===o.variables&&(o.variables=r),o}function ve(e){return function(t,r){if((0,_.k)(t)||(0,_.k)(r))throw(0,i._K)(6);if((0,g.s)(t)&&(0,g.s)(r)){var o=e.getFieldValue(t,"__typename"),s=e.getFieldValue(r,"__typename");if(o&&s&&o!==s)return r;if((0,h.Yk)(t)&&R(r))return e.merge(t.__ref,r),t;if(R(t)&&(0,h.Yk)(r))return e.merge(t,r.__ref),r;if(R(t)&&R(r))return(0,n.pi)((0,n.pi)({},t),r)}return r}}function ye(e,t,r){var i="".concat(t).concat(r),o=e.flavors.get(i);return o||e.flavors.set(i,o=e.clientOnly===t&&e.deferred===r?e:(0,n.pi)((0,n.pi)({},e),{clientOnly:t,deferred:r})),o}var me=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,o=t.query,a=t.result,c=t.dataId,u=t.variables,l=t.overwrite,f=(0,y.$H)(o),p=new m.w0;u=(0,n.pi)((0,n.pi)({},(0,y.O4)(f)),u);var d=(0,n.pi)((0,n.pi)({store:e,written:Object.create(null),merge:function(e,t){return p.merge(e,t)},variables:u,varString:(0,z.B)(u)},F(o,this.fragments)),{overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),v=this.processSelectionSet({result:a||Object.create(null),dataId:c,selectionSet:f.selectionSet,mergeTree:{map:new Map},context:d});if(!(0,h.Yk)(v))throw(0,i._K)(9,a);return d.incomingById.forEach((function(t,n){var o=t.storeObject,a=t.mergeTree,c=t.fieldNodeSet,u=(0,h.kQ)(n);if(a&&a.map.size){var l=r.applyMerges(a,u,o,d);if((0,h.Yk)(l))return;o=l}if(!1!==globalThis.__DEV__&&!d.overwrite){var f=Object.create(null);c.forEach((function(e){e.selectionSet&&(f[e.name.value]=!0)}));Object.keys(o).forEach((function(e){(function(e){return!0===f[N(e)]})(e)&&!function(e){var t=a&&a.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,r,n){var o=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},a=o(e);if(!a)return;var c=o(t);if(!c)return;if((0,h.Yk)(a))return;if((0,s.D)(a,c))return;if(Object.keys(a).every((function(e){return void 0!==n.getFieldValue(c,e)})))return;var u=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),l=N(r),f="".concat(u,".").concat(l);if(_e.has(f))return;_e.add(f);var p=[];(0,_.k)(a)||(0,_.k)(c)||[a,c].forEach((function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||p.includes(t)||p.push(t)}));!1!==globalThis.__DEV__&&i.kG.warn(12,l,u,p.length?"either ensure all objects of type "+p.join(" and ")+" have an ID or a custom merge function, or ":"",f,a,c)}(u,o,e,d.store)}))}e.merge(n,o)})),e.retain(v.__ref),v},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,o=e.result,s=e.selectionSet,a=e.context,c=e.mergeTree,u=this.cache.policies,l=Object.create(null),p=r&&u.rootTypenamesById[r]||(0,h.qw)(o,s,a.fragmentMap)||r&&a.store.get(r,"__typename");"string"==typeof p&&(l.__typename=p);var d=function(){var e=de(arguments,l,a.variables);if((0,h.Yk)(e.from)){var t=a.incomingById.get(e.from.__ref);if(t){var r=u.readField((0,n.pi)((0,n.pi)({},e),{from:t.storeObject}),a);if(void 0!==r)return r}}return u.readField(e,a)},v=new Set;this.flattenFields(s,o,a,p).forEach((function(e,r){var n,s=(0,h.u2)(r),a=o[s];if(v.add(r),void 0!==a){var y=u.getStoreFieldName({typename:p,fieldName:r.name.value,field:r,variables:e.variables}),m=ge(c,y),b=t.processFieldValue(a,r,r.selectionSet?ye(e,!1,!1):e,m),g=void 0;r.selectionSet&&((0,h.Yk)(b)||R(b))&&(g=d("__typename",b));var E=u.getMergeFunction(p,r.name.value,g);E?m.info={field:r,typename:p,merge:E}:Oe(c,y),l=e.merge(l,((n={})[y]=b,n))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||f.Gw.added(r)||u.getReadFunction(p,r.name.value)||!1!==globalThis.__DEV__&&i.kG.error(10,(0,h.u2)(r),o)}));try{var y=u.identify(o,{typename:p,selectionSet:s,fragmentMap:a.fragmentMap,storeObject:l,readField:d}),m=y[0],b=y[1];r=r||m,b&&(l=a.merge(l,b))}catch(O){if(!r)throw O}if("string"==typeof r){var g=(0,h.kQ)(r),E=a.written[r]||(a.written[r]=[]);if(E.indexOf(s)>=0)return g;if(E.push(s),this.reader&&this.reader.isFresh(o,g,s,a))return g;var k=a.incomingById.get(r);return k?(k.storeObject=a.merge(k.storeObject,l),k.mergeTree=Ee(k.mergeTree,c),v.forEach((function(e){return k.fieldNodeSet.add(e)}))):a.incomingById.set(r,{storeObject:l,mergeTree:ke(c)?void 0:c,fieldNodeSet:v}),g}return l},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,_.k)(e)?e.map((function(e,o){var s=i.processFieldValue(e,t,r,ge(n,o));return Oe(n,o),s})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?(0,$.X)(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,h.qw)(t,e,r.fragmentMap));var o=new Map,s=this.cache.policies,c=new O.B(!1);return function e(u,l){var f=c.lookup(u,l.clientOnly,l.deferred);f.visited||(f.visited=!0,u.selections.forEach((function(c){if((0,b.LZ)(c,r.variables)){var u=l.clientOnly,f=l.deferred;if(u&&f||!(0,_.O)(c.directives)||c.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(u=!0),"defer"===t){var n=(0,h.NC)(e,r.variables);n&&!1===n.if||(f=!0)}})),(0,h.My)(c)){var d=o.get(c);d&&(u=u&&d.clientOnly,f=f&&d.deferred),o.set(c,ye(r,u,f))}else{var v=(0,a.hi)(c,r.lookupFragment);if(!v&&c.kind===p.h.FRAGMENT_SPREAD)throw(0,i._K)(11,c.name.value);v&&s.fragmentMatches(v,n,t,r.variables)&&e(v.selectionSet,ye(r,u,f))}}})))}(e,r),o},e.prototype.applyMerges=function(e,t,r,o,s){var a,c=this;if(e.map.size&&!(0,h.Yk)(r)){var u,l=(0,_.k)(r)||!(0,h.Yk)(t)&&!R(t)?void 0:t,f=r;l&&!s&&(s=[(0,h.Yk)(l)?l.__ref:l]);var p=function(e,t){return(0,_.k)(e)?"number"==typeof t?e[t]:void 0:o.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var r=p(l,t),n=p(f,t);if(void 0!==n){s&&s.push(t);var a=c.applyMerges(e,r,n,o,s);a!==n&&(u=u||new Map).set(t,a),s&&(0,i.kG)(s.pop()===t)}})),u&&(r=(0,_.k)(f)?f.slice(0):(0,n.pi)({},f),u.forEach((function(e,t){r[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,o,s&&(a=o.store).getStorage.apply(a,s)):r},e}(),be=[];function ge(e,t){var r=e.map;return r.has(t)||r.set(t,be.pop()||{map:new Map}),r.get(t)}function Ee(e,t){if(e===t||!t||ke(t))return e;if(!e||ke(e))return t;var r=e.info&&t.info?(0,n.pi)((0,n.pi)({},e.info),t.info):e.info||t.info,i=e.map.size&&t.map.size,o={info:r,map:i?new Map:e.map.size?e.map:t.map};if(i){var s=new Set(t.map.keys());e.map.forEach((function(e,r){o.map.set(r,Ee(e,t.map.get(r))),s.delete(r)})),s.forEach((function(r){o.map.set(r,Ee(t.map.get(r),e.map.get(r)))}))}return o}function ke(e){return!e||!(e.info||e.map.size)}function Oe(e,t){var r=e.map,n=r.get(t);n&&ke(n)&&(be.push(n),r.delete(t))}var _e=new Set;var we=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new l.A(f.Gw),r.assumeImmutableResults=!0,r.makeVar=X.QS,r.txCount=0,r.config=function(e){return(0,v.o)(D,e)}(t),r.addTypename=!!r.config.addTypename,r.policies=new he({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return(0,n.ZT)(t,e),t.prototype.init=function(){var e=this.data=new M.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new me(this,this.storeReader=new Y({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:I(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=(0,o.re)((function(e,r){return t.broadcastWatch(e,r)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(G(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,(0,z.B)({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,r=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore((0,n.pi)((0,n.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:r})).result||null}catch(i){if(i instanceof u)return null;throw i}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(w.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,n.pi)((0,n.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,X._v)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,X.li)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){z.B.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,h.Yk)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(t){!1!==globalThis.__DEV__&&i.kG.warn(t)}},t.prototype.evict=function(e){if(!e.id){if(w.call(e,"id"))return!1;e=(0,n.pi)((0,n.pi)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),z.B.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),(0,X.li)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,i=e.update,o=e.optimistic,s=void 0===o||o,a=e.removeOptimistic,c=e.onWatchUpdated,u=function(e){var n=r,o=n.data,s=n.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=i(r)}finally{--r.txCount,r.data=o,r.optimisticData=s}},l=new Set;return c&&!this.txCount&&this.broadcastWatches((0,n.pi)((0,n.pi)({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof s?this.optimisticData=this.optimisticData.addLayer(s,u):!1===s?u(this.data):u(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),c&&l.size?(this.broadcastWatches((0,n.pi)((0,n.pi)({},e),{onWatchUpdated:function(e,t){var r=c.call(this,e,t);return!1!==r&&l.delete(e),r}})),l.size&&l.forEach((function(e){return r.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(r){return t.maybeBroadcastWatch(r,e)}))},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,n,r))||r&&(0,s.D)(r.result,n.result)||e.callback(e.lastDiff=n,r)},t}(c)},80900:(e,t,r)=>{r.d(t,{B:()=>f,h:()=>l});var n=r(97582),i=r(75028),o=r(13154),s=r(30320),a=r(21436);var c,u,l=function(){function e(){this.known=new(s.sy?WeakSet:Set),this.pool=new i.B(s.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,o.s)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,o.s)(e)){var t=function(e){return(0,o.s)(e)?(0,a.k)(e)?e.slice(0):(0,n.pi)({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,o.s)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var n=e.map(this.admit,this);return(c=this.pool.lookupArray(n)).array||(this.known.add(c.array=n),!1!==globalThis.__DEV__&&Object.freeze(n)),c.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),s=[i],a=this.sortedKeys(e);s.push(a.json);var c,u=s.length;if(a.sorted.forEach((function(r){s.push(t.admit(e[r]))})),!(c=this.pool.lookupArray(s)).object){var l=c.object=Object.create(i);this.known.add(l),a.sorted.forEach((function(e,t){l[e]=s[u+t]})),!1!==globalThis.__DEV__&&Object.freeze(l)}return c.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}(),f=Object.assign((function(e){if((0,o.s)(e)){void 0===c&&h();var t=c.admit(e),r=u.get(t);return void 0===r&&u.set(t,r=JSON.stringify(t)),r}return JSON.stringify(e)}),{reset:h});function h(){c=new l,u=new(s.mr?WeakMap:Map)}},66438:(e,t,r)=>{r.d(t,{QS:()=>u,_v:()=>c,ab:()=>i,li:()=>a});var n=r(33893),i=new(r(70093).g7),o=new WeakMap;function s(e){var t=o.get(e);return t||o.set(e,t={vars:new Set,dep:(0,n.dP)()}),t}function a(e){s(e).vars.forEach((function(t){return t.forgetCache(e)}))}function c(e){s(e).vars.forEach((function(t){return t.attachCache(e)}))}function u(e){var t=new Set,r=new Set,n=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach((function(e){s(e).dep.dirty(n),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)}));var c=Array.from(r);r.clear(),c.forEach((function(t){return t(e)}))}}else{var u=i.getValue();u&&(o(u),s(u).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var o=n.attachCache=function(e){return t.add(e),s(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}},7015:(e,t,r)=>{r.d(t,{f:()=>ce});var n=r(97582),i=r(78287),o=r(48702),s=o.i.execute,a=r(49379),c=r(56429),u=r(30020),l=r(37280),f=r(19065),h=r(76487),p=r(80900),d=r(30320),v=r(18056),y=r(48216);function m(e,t,r){return new y.y((function(n){var i={then:function(e){return new Promise((function(t){return t(e())}))}};function o(e,t){return function(r){if(e){var o=function(){return n.closed?0:e(r)};i=i.then(o,o).then((function(e){return n.next(e)}),(function(e){return n.error(e)}))}else n[t](r)}}var s={next:o(t,"next"),error:o(r,"error"),complete:function(){i.then((function(){return n.complete()}))}},a=e.subscribe(s);return function(){return a.unsubscribe()}}))}var b=r(21436);function g(e){var t=E(e);return(0,b.O)(t)}function E(e){var t=(0,b.O)(e.errors)?e.errors.slice(0):[];return(0,l.GG)(e)&&(0,b.O)(e.incremental)&&e.incremental.forEach((function(e){e.errors&&t.push.apply(t,e.errors)})),t}var k=r(36765),O=r(51761),_=r(13154),w=r(60897);function T(e,t,r){var n=[];e.forEach((function(e){return e[t]&&n.push(e)})),n.forEach((function(e){return e[t](r)}))}function S(e){function t(t){Object.defineProperty(e,t,{value:y.y})}return d.aS&&Symbol.species&&t(Symbol.species),t("@@species"),e}function D(e){return e&&"function"==typeof e.then}var I=function(e){function t(t){var r=e.call(this,(function(e){return r.addObserver(e),function(){return r.removeObserver(e)}}))||this;return r.observers=new Set,r.promise=new Promise((function(e,t){r.resolve=e,r.reject=t})),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),T(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),T(r.observers,"error",e))},complete:function(){var e=r,t=e.sub,n=e.sources;if(null!==t){var i=(void 0===n?[]:n).shift();i?D(i)?i.then((function(e){return r.sub=e.subscribe(r.handlers)})):r.sub=i.subscribe(r.handlers):(t&&setTimeout((function(){return t.unsubscribe()})),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),T(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.complete()},r.promise.catch((function(e){})),"function"==typeof t&&(t=[new y.y(t)]),D(t)?t.then((function(e){return r.start(e)}),r.handlers.error):r.start(t),r}return(0,n.ZT)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach((function(r){return r(e,t)})))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add((function(r,n){t||(t=!0,e(r,n))}))},t}(y.y);S(I);var x,N=r(30990);function A(e){return!!e&&e<7}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(x||(x={}));var R=r(53712),F=r(79487),C=r(23361);function P(e,t,r,i){var o=t.data,s=(0,n._T)(t,["data"]),a=r.data,c=(0,n._T)(r,["data"]);return(0,u.Z)(s,c)&&L((0,k.p$)(e).selectionSet,o,a,{fragmentMap:(0,C.F)((0,k.kU)(e)),variables:i})}function L(e,t,r,n){if(t===r)return!0;var i=new Set;return e.selections.every((function(e){if(i.has(e))return!0;if(i.add(e),!(0,f.LZ)(e,n.variables))return!0;if(M(e))return!0;if((0,O.My)(e)){var o=(0,O.u2)(e),s=t&&t[o],a=r&&r[o],c=e.selectionSet;if(!c)return(0,u.Z)(s,a);var l=Array.isArray(s),h=Array.isArray(a);if(l!==h)return!1;if(l&&h){var p=s.length;if(a.length!==p)return!1;for(var d=0;d0},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}(y.y);function B(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=n,"function"==typeof n?n.apply(this,arguments):r}}):e.reobserve()}function U(e){!1!==globalThis.__DEV__&&i.kG.error(21,e.message,e.stack)}function G(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&i.kG.debug(22,e)}function z(e){return"network-only"===e||"no-cache"===e||"standby"===e}S(Q);var K=r(77304),Y=r(97359);function W(e){return e.kind===Y.h.FIELD||e.kind===Y.h.FRAGMENT_SPREAD||e.kind===Y.h.INLINE_FRAGMENT}var $=r(182),J=r(66438),X=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,$.Ee)(t.resolvers,e)})):this.resolvers=(0,$.Ee)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,r=e.remoteResult,i=e.context,o=e.variables,s=e.onlyRunForcedResolvers,a=void 0!==s&&s;return(0,n.mG)(this,void 0,void 0,(function(){return(0,n.Jh)(this,(function(e){return t?[2,this.resolveDocument(t,r.data,i,o,this.fragmentMatcher,a).then((function(e){return(0,n.pi)((0,n.pi)({},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,f.FS)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,h.ob)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,n.pi)((0,n.pi)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,n.mG)(this,void 0,void 0,(function(){return(0,n.Jh)(this,(function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then((function(e){return(0,n.pi)((0,n.pi)({},t),e.exportedVariables)}))]:[2,(0,n.pi)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,K.Vn)(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 K.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,h.aL)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,i,o,s){return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===s&&(s=!1),(0,n.mG)(this,void 0,void 0,(function(){var a,c,u,l,f,h,p,d,v,y;return(0,n.Jh)(this,(function(m){return a=(0,k.p$)(e),c=(0,k.kU)(e),u=(0,C.F)(c),l=this.collectSelectionsToResolve(a,u),f=a.operation,h=f?f.charAt(0).toUpperCase()+f.slice(1):"Query",d=(p=this).cache,v=p.client,y={fragmentMap:u,context:(0,n.pi)((0,n.pi)({},r),{cache:d,client:v}),variables:i,fragmentMatcher:o,defaultOperationType:h,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:s},!1,[2,this.resolveSelectionSet(a.selectionSet,false,t,y).then((function(e){return{result:e,exportedVariables:y.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,r,o){return(0,n.mG)(this,void 0,void 0,(function(){var s,a,c,u,l,h=this;return(0,n.Jh)(this,(function(p){return s=o.fragmentMap,a=o.context,c=o.variables,u=[r],l=function(e){return(0,n.mG)(h,void 0,void 0,(function(){var l,h;return(0,n.Jh)(this,(function(n){return(t||o.selectionsToResolve.has(e))&&(0,f.LZ)(e,c)?(0,O.My)(e)?[2,this.resolveField(e,t,r,o).then((function(t){var r;void 0!==t&&u.push(((r={})[(0,O.u2)(e)]=t,r))}))]:((0,O.Ao)(e)?l=e:(l=s[e.name.value],(0,i.kG)(l,16,e.name.value)),l&&l.typeCondition&&(h=l.typeCondition.name.value,o.fragmentMatcher(r,h,a))?[2,this.resolveSelectionSet(l.selectionSet,t,r,o).then((function(e){u.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(l)).then((function(){return(0,$.bw)(u)}))]}))}))},e.prototype.resolveField=function(e,t,r,i){return(0,n.mG)(this,void 0,void 0,(function(){var o,s,a,c,u,l,f,h,p,d=this;return(0,n.Jh)(this,(function(n){return r?(o=i.variables,s=e.name.value,a=(0,O.u2)(e),c=s!==a,u=r[a]||r[s],l=Promise.resolve(u),i.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(f=r.__typename||i.defaultOperationType,(h=this.resolvers&&this.resolvers[f])&&(p=h[c?s:a])&&(l=Promise.resolve(J.ab.withValue(this.cache,p,[r,(0,O.NC)(e,o),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,l.then((function(r){var n,o;if(void 0===r&&(r=u),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)return r;if(null==r)return r;var s=null!==(o=null===(n=e.directives)||void 0===n?void 0:n.some((function(e){return"client"===e.name.value})))&&void 0!==o&&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,K.Vn)(o,{Directive:function(e,t,n,i,o){"client"===e.name.value&&o.forEach((function(e){r(e)&&W(e)&&s.add(e)}))},FragmentSpread:function(n,o,a,c,u){var l=t[n.name.value];(0,i.kG)(l,17,n.name.value);var f=e(l);f.size>0&&(u.forEach((function(e){r(e)&&W(e)&&s.add(e)})),s.add(n),f.forEach((function(e){s.add(e)})))}})}return n.get(o)}(e)},e}(),H=new(d.mr?WeakMap:Map);function Z(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return H.set(e,(H.get(e)+1)%1e15),r.apply(this,arguments)})}function ee(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var te=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;H.has(r)||(H.set(r,0),Z(r,"evict"),Z(r,"modify"),Z(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||x.loading;return this.variables&&this.networkStatus!==x.loading&&!(0,u.D)(this.variables,e.variables)&&(t=x.setVariables),(0,u.D)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){ee(this),this.dirty=!1},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&(0,u.D)(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?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,r=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||(0,u.D)(r&&r.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():B(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;ee(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(A(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var i=(0,n.pi)((0,n.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,u.D)(i,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===H.get(this.cache)&&(0,u.D)(t,r.variables)&&(0,u.D)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i=this,o=new $.w0,s=(0,b.O)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,b.O)(e.incremental)){var a=(0,l.mT)(this.getDiff().result,e);e.data=a}else if("hasNext"in e&&e.hasNext){var c=this.getDiff();e.data=o.merge(c.result,e.data)}this.graphQLErrors=s,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(re(e,r.errorPolicy)?this.cache.performTransaction((function(o){if(i.shouldWrite(e,r.variables))o.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),i.lastWrite={result:e,variables:r.variables,dmCount:H.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete)return void(e.data=i.lastDiff.diff.result);var s=i.getDiffOptions(r.variables),a=o.diff(s);!i.stopped&&(0,u.D)(i.variables,r.variables)&&i.updateWatch(r.variables),i.updateLastDiff(a,s),a.complete&&(e.data=a.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=x.ready},e.prototype.markError=function(e){return this.networkStatus=x.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function re(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!g(e);return!n&&r&&e.data&&(n=!0),n}var ne=r(50713),ie=Object.prototype.hasOwnProperty,oe=function(){function e(e){var t=this,r=e.cache,n=e.link,i=e.defaultOptions,o=e.documentTransform,s=e.queryDeduplication,a=void 0!==s&&s,c=e.onBroadcast,u=e.ssrMode,l=void 0!==u&&u,f=e.clientAwareness,h=void 0===f?{}:f,p=e.localState,y=e.assumeImmutableResults,m=void 0===y?!!r.assumeImmutableResults:y;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(d.mr?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map;var b=new v.A((function(e){return t.cache.transformDocument(e)}),{cache:!1});this.cache=r,this.link=n,this.defaultOptions=i||Object.create(null),this.queryDeduplication=a,this.clientAwareness=h,this.localState=p||new X({cache:r}),this.ssrMode=l,this.assumeImmutableResults=m,this.documentTransform=o?b.concat(o).concat(b):b,(this.onBroadcast=c)&&(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._K)(23))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,r,o=e.mutation,s=e.variables,a=e.optimisticResponse,c=e.updateQueries,u=e.refetchQueries,l=void 0===u?[]:u,f=e.awaitRefetchQueries,h=void 0!==f&&f,p=e.update,d=e.onQueryUpdated,v=e.fetchPolicy,y=void 0===v?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":v,b=e.errorPolicy,k=void 0===b?(null===(r=this.defaultOptions.mutate)||void 0===r?void 0:r.errorPolicy)||"none":b,O=e.keepRootFields,_=e.context;return(0,n.mG)(this,void 0,void 0,(function(){var e,t,r,u;return(0,n.Jh)(this,(function(f){switch(f.label){case 0:return(0,i.kG)(o,24),(0,i.kG)("network-only"===y||"no-cache"===y,25),e=this.generateMutationId(),o=this.cache.transformForLink(this.transform(o)),t=this.getDocumentInfo(o).hasClientExports,s=this.getVariables(o,s),t?[4,this.localState.addExportedVariables(o,s,_)]:[3,2];case 1:s=f.sent(),f.label=2;case 2:return r=this.mutationStore&&(this.mutationStore[e]={mutation:o,variables:s,loading:!0,error:null}),a&&this.markMutationOptimistic(a,{mutationId:e,document:o,variables:s,fetchPolicy:y,errorPolicy:k,context:_,updateQueries:c,update:p,keepRootFields:O}),this.broadcastQueries(),u=this,[2,new Promise((function(t,i){return m(u.getObservableFromLink(o,(0,n.pi)((0,n.pi)({},_),{optimisticResponse:a}),s,!1),(function(t){if(g(t)&&"none"===k)throw new N.cA({graphQLErrors:E(t)});r&&(r.loading=!1,r.error=null);var i=(0,n.pi)({},t);return"function"==typeof l&&(l=l(i)),"ignore"===k&&g(i)&&delete i.errors,u.markMutationResult({mutationId:e,result:i,document:o,variables:s,fetchPolicy:y,errorPolicy:k,context:_,update:p,updateQueries:c,awaitRefetchQueries:h,refetchQueries:l,removeOptimistic:a?e:void 0,onQueryUpdated:d,keepRootFields:O})})).subscribe({next:function(e){u.broadcastQueries(),"hasNext"in e&&!1!==e.hasNext||t(e)},error:function(t){r&&(r.loading=!1,r.error=t),a&&u.cache.removeOptimistic(e),u.broadcastQueries(),i(t instanceof N.cA?t:new N.cA({networkError:t}))}})}))]}}))}))},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&&re(i,e.errorPolicy)){if((0,l.GG)(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,l.GG)(i)&&(0,b.O)(i.incremental)){var a=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),c=void 0;a.result&&(c=(0,l.mT)(a.result,i)),void 0!==c&&(i.data=c,o.push({result:c,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var u=e.updateQueries;u&&this.queries.forEach((function(e,n){var s=e.observableQuery,a=s&&s.queryName;if(a&&ie.call(u,a)){var c=u[a],l=r.queries.get(n),f=l.document,h=l.variables,p=t.diff({query:f,variables:h,returnPartialData:!0,optimistic:!1}),d=p.result;if(p.complete&&d){var v=c(d,{mutationResult:i,queryName:f&&(0,k.rY)(f)||void 0,queryVariables:h});v&&o.push({result:v,dataId:"ROOT_QUERY",query:f,variables:h})}}}))}if(o.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var f=[];if(this.refetchQueries({updateCache:function(t){s||o.forEach((function(e){return t.write(e)}));var a=e.update,c=!(0,l.M0)(i)||(0,l.GG)(i)&&!i.hasNext;if(a){if(!s){var u=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});u.complete&&("incremental"in(i=(0,n.pi)((0,n.pi)({},i),{data:u.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}c&&a(t,i,{context:e.context,variables:e.variables})}s||e.keepRootFields||!c||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 f.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(f).then((function(){return i}))}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var r=this,o="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{r.markMutationResult((0,n.pi)((0,n.pi)({},t),{result:{data:o}}),e)}catch(s){!1!==globalThis.__DEV__&&i.kG.error(s)}}),t.mutationId)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(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,f.mj)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,f.FS)(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,h.bi)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:(0,k.O4)((0,k.$H)(e)),asQuery:(0,n.pi)((0,n.pi)({},e),{definitions:e.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,n.pi)((0,n.pi)({},e),{operation:"query"}):e}))})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,n.pi)((0,n.pi)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,n.pi)((0,n.pi)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new te(this),i=new Q({queryManager:this,queryInfo:r,options:e});return i.lastQuery=t,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;return void 0===t&&(t=this.generateQueryId()),(0,i.kG)(e.query,26),(0,i.kG)("Document"===e.query.kind,27),(0,i.kG)(!e.returnPartialData,28),(0,i.kG)(!e.pollInterval,29),this.fetchQuery(t,(0,n.pi)((0,n.pi)({},e),{query:this.transform(e.query)})).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._K)(30)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=x.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 Set;return Array.isArray(e)&&e.forEach((function(e){"string"==typeof e?o.set(e,!1):(0,O.JW)(e)?o.set(t.transform(e),!1):(0,_.s)(e)&&e.query&&s.add(e)})),this.queries.forEach((function(t,n){var i=t.observableQuery,s=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&&o.has(a)||s&&o.has(s))&&(r.set(n,i),a&&o.set(a,!0),s&&o.set(s,!0))}})),s.size&&s.forEach((function(e){var o=(0,w.X)("legacyOneTimeQuery"),s=t.getQuery(o).init({document:e.query,variables:e.variables}),a=new Q({queryManager:t,queryInfo:s,options:(0,n.pi)((0,n.pi)({},e),{fetchPolicy:"network-only"})});(0,i.kG)(a.queryId===o),s.setObservableQuery(a),r.set(o,a)})),!1!==globalThis.__DEV__&&o.size&&o.forEach((function(e,t){e||!1!==globalThis.__DEV__&&i.kG.warn("string"==typeof t?31:32,t)})),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.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,o=void 0===i?"none":i,s=e.variables,a=e.context,c=void 0===a?{}:a;r=this.transform(r),s=this.getVariables(r,s);var u=function(e){return t.getObservableFromLink(r,c,e).map((function(i){"no-cache"!==n&&(re(i,o)&&t.cache.write({query:r,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var s=g(i),a=(0,N.ls)(i);if(s||a){var c={};if(s&&(c.graphQLErrors=i.errors),a&&(c.protocolErrors=i.extensions[N.YG]),"none"===o||a)throw new N.cA(c)}return"ignore"===o&&delete i.errors,i}))};if(this.getDocumentInfo(r).hasClientExports){var l=this.localState.addExportedVariables(r,s,c).then(u);return new y.y((function(e){var t=null;return l.then((function(r){return t=r.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return u(s)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,i){var o,a,c=this;void 0===i&&(i=null!==(o=null==t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var u=this.getDocumentInfo(e),l=u.serverQuery,f=u.clientQuery;if(l){var h=this.inFlightLinkObservables,d=this.link,v={query:l,variables:r,operationName:(0,k.rY)(l)||void 0,context:this.prepareContext((0,n.pi)((0,n.pi)({},t),{forceFetch:!i}))};if(t=v.context,i){var b=(0,ne.S)(l),g=h.get(b)||new Map;h.set(b,g);var E=(0,p.B)(r);if(!(a=g.get(E))){var O=new I([s(d,v)]);g.set(E,a=O),O.beforeNext((function(){g.delete(E)&&g.size<1&&h.delete(b)}))}}else a=new I([s(d,v)])}else a=new I([y.y.of({data:{}})]),t=this.prepareContext(t);return f&&(a=m(a,(function(e){return c.localState.runResolvers({document:f,remoteResult:e,context:t,variables:r})}))),a},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return m(this.getObservableFromLink(i,r.context,r.variables),(function(o){var s=E(o),a=s.length>0;if(n>=e.lastRequestId){if(a&&"none"===r.errorPolicy)throw e.markError(new N.cA({graphQLErrors:s}));e.markResult(o,i,r,t),e.markReady()}var c={data:o.data,loading:!1,networkStatus:x.ready};return a&&"ignore"!==r.errorPolicy&&(c.errors=s,c.networkStatus=x.error),c}),(function(t){var r=(0,N.MS)(t)?t:new N.cA({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r}))},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i=this;void 0===r&&(r=x.loading),void 0===n&&(n=t.query);var o,s,a=this.getVariables(n,t.variables),c=this.getQuery(e),u=this.defaultOptions.watchQuery,l=t.fetchPolicy,f=void 0===l?u&&u.fetchPolicy||"cache-first":l,h=t.errorPolicy,p=void 0===h?u&&u.errorPolicy||"none":h,d=t.returnPartialData,v=void 0!==d&&d,y=t.notifyOnNetworkStatusChange,m=void 0!==y&&y,b=t.context,g=void 0===b?{}:b,E=Object.assign({},t,{query:n,variables:a,fetchPolicy:f,errorPolicy:p,returnPartialData:v,notifyOnNetworkStatusChange:m,context:g}),k=function(e){E.variables=e;var n=i.fetchQueryByPolicy(c,E,r);return"standby"!==E.fetchPolicy&&n.sources.length>0&&c.observableQuery&&c.observableQuery.applyNextFetchPolicy("after-fetch",t),n},O=function(){return i.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,(function(e){O(),setTimeout((function(){return o.cancel(e)}))})),this.getDocumentInfo(E.query).hasClientExports)o=new I(this.localState.addExportedVariables(E.query,E.variables,E.context).then(k).then((function(e){return e.sources}))),s=!0;else{var _=k(E.variables);s=_.fromLink,o=new I(_.sources)}return o.promise.then(O,O),{concast:o,fromLink:s}},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,w.X)("refetchQueries"):void 0:s,c=e.onQueryUpdated,u=new Map;n&&this.getObservableQueries(n).forEach((function(e,r){u.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})}));var l=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 te&&e.watcher.observableQuery;if(n){if(c){u.delete(n.queryId);var i=c(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==c&&u.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),u.size&&u.forEach((function(e,r){var n,i=e.oq,o=e.lastDiff,s=e.diff;if(c){if(!s){var a=i.queryInfo;a.reset(),s=a.getDiff()}n=c(i,s,o)}c&&!0!==n||(n=i.refetch()),!1!==n&&l.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)})),a&&this.cache.removeOptimistic(a),l},e.prototype.fetchQueryByPolicy=function(e,t,r){var i=this,o=t.query,s=t.variables,a=t.fetchPolicy,c=t.refetchWritePolicy,l=t.errorPolicy,f=t.returnPartialData,h=t.context,p=t.notifyOnNetworkStatusChange,d=e.networkStatus;e.init({document:o,variables:s,networkStatus:r});var v=function(){return e.getDiff()},m=function(t,r){void 0===r&&(r=e.networkStatus||x.loading);var a=t.result;!1===globalThis.__DEV__||f||(0,u.D)(a,{})||G(t.missing);var c=function(e){return y.y.of((0,n.pi)({data:e,loading:A(r),networkStatus:r},t.complete?null:{partial:!0}))};return a&&i.getDocumentInfo(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:a},context:h,variables:s,onlyRunForcedResolvers:!0}).then((function(e){return c(e.data||void 0)})):"none"===l&&r===x.refetch&&Array.isArray(t.missing)?c(void 0):c(a)},b="no-cache"===a?0:r===x.refetch&&"merge"!==c?1:2,g=function(){return i.getResultsFromLink(e,b,{query:o,variables:s,context:h,fetchPolicy:a,errorPolicy:l})},E=p&&"number"==typeof d&&d!==r&&A(r);switch(a){default:case"cache-first":return(k=v()).complete?{fromLink:!1,sources:[m(k,e.markReady())]}:f||E?{fromLink:!0,sources:[m(k),g()]}:{fromLink:!0,sources:[g()]};case"cache-and-network":var k;return(k=v()).complete||f||E?{fromLink:!0,sources:[m(k),g()]}:{fromLink:!0,sources:[g()]};case"cache-only":return{fromLink:!1,sources:[m(v(),e.markReady())]};case"network-only":return E?{fromLink:!0,sources:[m(v()),g()]}:{fromLink:!0,sources:[g()]};case"no-cache":return E?{fromLink:!0,sources:[m(e.getDiff()),g()]}:{fromLink:!0,sources:[g()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new te(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,n.pi)((0,n.pi)({},t),{clientAwareness:this.clientAwareness})},e}();function se(e,t){return(0,R.o)(e,t,t.variables&&{variables:(0,R.o)((0,n.pi)((0,n.pi)({},e&&e.variables),t.variables))})}var ae=!1,ce=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,i._K)(13);var r=e.uri,n=e.credentials,s=e.headers,u=e.cache,l=e.documentTransform,f=e.ssrMode,h=void 0!==f&&f,p=e.ssrForceFetchDelay,d=void 0===p?0:p,v=e.connectToDevTools,y=void 0===v?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1!==globalThis.__DEV__:v,m=e.queryDeduplication,b=void 0===m||m,g=e.defaultOptions,E=e.assumeImmutableResults,k=void 0===E?u.assumeImmutableResults:E,O=e.resolvers,_=e.typeDefs,w=e.fragmentMatcher,T=e.name,S=e.version,D=e.link;D||(D=r?new c.u({uri:r,credentials:n,headers:s}):o.i.empty()),this.link=D,this.cache=u,this.disableNetworkFetches=h||d>0,this.queryDeduplication=b,this.defaultOptions=g||Object.create(null),this.typeDefs=_,d&&setTimeout((function(){return t.disableNetworkFetches=!1}),d),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=a.i,this.localState=new X({cache:u,client:this,resolvers:O,fragmentMatcher:w}),this.queryManager=new oe({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,documentTransform:l,queryDeduplication:b,ssrMode:h,clientAwareness:{name:T,version:S},localState:this.localState,assumeImmutableResults:k,onBroadcast:y?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),y&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("object"==typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this}ae||!1===globalThis.__DEV__||(ae=!0,setTimeout((function(){if("undefined"!=typeof window&&window.document&&window.top===window.self&&!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.kG.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=se(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=(0,n.pi)((0,n.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=se(this.defaultOptions.query,e)),(0,i.kG)("cache-and-network"!==e.fetchPolicy,14),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,n.pi)((0,n.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=se(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){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 s(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.kG.debug(15,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},e}()},30990:(e,t,r)=>{r.d(t,{MS:()=>a,YG:()=>o,cA:()=>c,ls:()=>s});var n=r(97582),i=(r(78287),r(13154)),o=Symbol();function s(e){return!!e.extensions&&Array.isArray(e.extensions[o])}function a(e){return e.hasOwnProperty("graphQLErrors")}var c=function(e){function t(r){var o,s,a=r.graphQLErrors,c=r.protocolErrors,u=r.clientErrors,l=r.networkError,f=r.errorMessage,h=r.extraInfo,p=e.call(this,f)||this;return p.name="ApolloError",p.graphQLErrors=a||[],p.protocolErrors=c||[],p.clientErrors=u||[],p.networkError=l||null,p.message=f||(o=p,s=(0,n.ev)((0,n.ev)((0,n.ev)([],o.graphQLErrors,!0),o.clientErrors,!0),o.protocolErrors,!0),o.networkError&&s.push(o.networkError),s.map((function(e){return(0,i.s)(e)&&e.message||"Error message not found."})).join("\n")),p.extraInfo=h,p.__proto__=t.prototype,p}return(0,n.ZT)(t,e),t}(Error)},48702:(e,t,r)=>{r.d(t,{i:()=>l});var n=r(78287),i=r(48216),o=r(97582);var s=r(36765);function a(e,t){return t?t(e):i.y.of()}function c(e){return"function"==typeof e?new l(e):e}function u(e){return e.request.length<=1}var l=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return i.y.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(c).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,r,n){var o=c(r),s=c(n||new e(a));return u(o)&&u(s)?new e((function(e){return t(e)?o.request(e)||i.y.of():s.request(e)||i.y.of()})):new e((function(e,r){return t(e)?o.request(e,r)||i.y.of():s.request(e,r)||i.y.of()}))},e.execute=function(e,t){return e.request(function(e,t){var r=(0,o.pi)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){r="function"==typeof e?(0,o.pi)((0,o.pi)({},r),e(r)):(0,o.pi)((0,o.pi)({},r),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return(0,o.pi)({},r)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?(0,s.rY)(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,i=Object.keys(e);r{r.d(t,{u:()=>x});var n=r(97582),i=r(48702),o=r(78287),s=r(19065),a=r(48216),c=function(e,t){var r;try{r=JSON.stringify(e)}catch(i){var n=(0,o._K)(37,t,i.message);throw n.parseError=i,n}return r},u=r(30320);function l(e){var t=null,r=null,n=!1,i=[],o=[];function s(e){if(!r){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function a(e){r=e,o.slice().forEach((function(t){t[1](e)})),!t||t()}function c(){n=!0,o.slice().forEach((function(e){e[0]({value:void 0,done:!0})})),!t||t()}t=function(){t=null,e.removeListener("data",s),e.removeListener("error",a),e.removeListener("end",c),e.removeListener("finish",c),e.removeListener("close",c)},e.on("data",s),e.on("error",a),e.on("end",c),e.on("finish",c),e.on("close",c);var l={next:function(){return new Promise((function(e,t){return r?t(r):i.length?e({value:i.shift(),done:!1}):n?e({value:void 0,done:!0}):void o.push([e,t])}))}};return u.DN&&(l[Symbol.asyncIterator]=function(){return this}),l}function f(e){var t={next:function(){return e.read()}};return u.DN&&(t[Symbol.asyncIterator]=function(){return this}),t}function h(e){var t,r,n=e;if(e.body&&(n=e.body),function(e){return!(!u.DN||!e[Symbol.asyncIterator])}(n))return r=n[Symbol.asyncIterator](),(t={next:function(){return r.next()}})[Symbol.asyncIterator]=function(){return this},t;if(function(e){return!!e.getReader}(n))return f(n.getReader());if(function(e){return!!e.stream}(n))return f(n.stream().getReader());if(function(e){return!!e.arrayBuffer}(n))return function(e){var t=!1,r={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise((function(t,r){e.then((function(e){t({value:e,done:!1})})).catch(r)})))}};return u.DN&&(r[Symbol.asyncIterator]=function(){return this}),r}(n.arrayBuffer());if(function(e){return!!e.pipe}(n))return l(n);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var p=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},d=r(30990),v=r(37280),y=Object.prototype.hasOwnProperty;function m(e){var t={};return e.split("\n").forEach((function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}})),t}function b(e,t){if(e.status>=300){p(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(n){var r=n;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}var g=r(50713),E={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},k=function(e,t){return t(e)};function O(e,t){for(var r=[],i=2;i-1;){if(_=void 0,N=[u.slice(0,O),u.slice(O+c.length)],u=N[1],w=(_=N[0]).indexOf("\r\n\r\n"),T=m(_.slice(0,w)),(S=T["content-type"])&&-1===S.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(D=_.slice(w))if(I=b(e,D),Object.keys(I).length>1||"data"in I||"incremental"in I||"errors"in I||"payload"in I)(0,v.yU)(I)?(x={},"payload"in I&&(x=(0,n.pi)({},I.payload)),"errors"in I&&(x=(0,n.pi)((0,n.pi)({},x),{extensions:(0,n.pi)((0,n.pi)({},"extensions"in x?x.extensions:null),(A={},A[d.YG]=I.errors,A))})),t(x)):t(I);else if(1===Object.keys(I).length&&"hasNext"in I&&!I.hasNext)return[2];O=u.indexOf(c)}return[3,1];case 3:return[2]}}))}))}(t,s):(i=e,function(e){return e.text().then((function(t){return b(e,t)})).then((function(t){return e.status>=300&&p(e,t,"Response not successful: Received status code ".concat(e.status)),Array.isArray(t)||y.call(t,"data")||y.call(t,"errors")||p(e,t,"Server response was missing for query '".concat(Array.isArray(i)?i.map((function(e){return e.operationName})):i.operationName,"'.")),t}))})(t).then(s)})).then((function(){q=void 0,r.complete()})).catch((function(e){q=void 0,function(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(e,r)})),function(){q&&q.abort()}}))}))},x=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,I(t).request)||this;return r.options=t,r}return(0,n.ZT)(t,e),t}(i.i)},21436:(e,t,r)=>{r.d(t,{O:()=>i,k:()=>n});var n=Array.isArray;function i(e){return Array.isArray(e)&&e.length>0}},30320:(e,t,r)=>{r.d(t,{DN:()=>a,aS:()=>s,mr:()=>i,sy:()=>o});var n=r(78287),i="function"==typeof WeakMap&&"ReactNative"!==(0,n.wY)((function(){return navigator.product})),o="function"==typeof WeakSet,s="function"==typeof Symbol&&"function"==typeof Symbol.for,a=s&&Symbol.asyncIterator;(0,n.wY)((function(){return window.document.createElement})),(0,n.wY)((function(){return navigator.userAgent.indexOf("jsdom")>=0}))},79487:(e,t,r)=>{r.d(t,{X:()=>i});var n=Object.prototype.toString;function i(e){return o(e)}function o(e,t){switch(n.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach((function(e,n){r[n]=o(e,t)})),r;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var i=Object.create(Object.getPrototypeOf(e));return t.set(e,i),Object.keys(e).forEach((function(r){i[r]=o(e[r],t)})),i;default:return e}}},53712:(e,t,r)=>{function n(){for(var e=[],t=0;tn})},37280:(e,t,r)=>{r.d(t,{GG:()=>s,M0:()=>a,mT:()=>u,yU:()=>c});var n=r(13154),i=r(21436),o=r(182);function s(e){return"incremental"in e}function a(e){return s(e)||function(e){return"hasNext"in e&&"data"in e}(e)}function c(e){return(0,n.s)(e)&&"payload"in e}function u(e,t){var r=e,n=new o.w0;return s(t)&&(0,i.O)(t.incremental)&&t.incremental.forEach((function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var s=i[o],a=!isNaN(+s)?[]:{};a[s]=t,t=a}r=n.merge(r,t)})),r}},60897:(e,t,r)=>{r.d(t,{X:()=>i});var n=new Map;function i(e){var t=n.get(e)||1;return n.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},182:(e,t,r)=>{r.d(t,{Ee:()=>s,bw:()=>a,w0:()=>u});var n=r(97582),i=r(13154),o=Object.prototype.hasOwnProperty;function s(){for(var e=[],t=0;t1)for(var n=new u,i=1;i{function n(e){return null!==e&&"object"==typeof e}r.d(t,{s:()=>n})},13887:(e,t,r)=>{r.d(t,{v:()=>i});var n=r(60897);function i(e,t){void 0===t&&(t=0);var r=(0,n.X)("stringifyForDisplay");return JSON.stringify(e,(function(e,t){return void 0===t?r:t}),t).split(JSON.stringify(r)).join("")}},78287:(e,t,r)=>{r.d(t,{kG:()=>m,wY:()=>p,_K:()=>b});var n=r(97582),i="Invariant Violation",o=Object.setPrototypeOf,s=void 0===o?function(e,t){return e.__proto__=t,e}:o,a=function(e){function t(r){void 0===r&&(r=i);var n=e.call(this,"number"==typeof r?i+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=i,s(n,t.prototype),n}return(0,n.ZT)(t,e),t}(Error);function c(e,t){if(!e)throw new a(t)}var u=["debug","log","warn","error","silent"],l=u.indexOf("log");function f(e){return function(){if(u.indexOf(e)>=l)return(console[e]||console.log).apply(console,arguments)}}!function(e){e.debug=f("debug"),e.log=f("log"),e.warn=f("warn"),e.error=f("error")}(c||(c={}));var h=r(49379);function p(e){try{return e()}catch(o){}}const d=p((function(){return globalThis}))||p((function(){return window}))||p((function(){return self}))||p((function(){return global}))||p((function(){return p.constructor("return this")()}));var v=r(13887);function y(e){return function(t){for(var r=[],n=1;n{r.d(t,{A:()=>c});var n=r(75028),i=r(30320),o=r(36765),s=r(78287);function a(e){return e}var c=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=i.sy?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),!1!==t.cache&&(this.stableCacheKeys=new n.B(i.mr,(function(e){return{key:e}})))}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(a,{cache:!1})},e.split=function(t,r,n){return void 0===n&&(n=e.identity()),new e((function(e){return(t(e)?r:n).transformDocument(e)}),{cache:!1})},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.getStableCacheEntry(e);if(t&&t.value)return t.value;(0,o.A$)(e);var r=this.transform(e);return this.resultCache.add(r),t&&(t.value=r),r},e.prototype.concat=function(t){var r=this;return new e((function(e){return t.transformDocument(r.transformDocument(e))}),{cache:!1})},e.prototype.getStableCacheEntry=function(e){if(this.stableCacheKeys){var t=this.getCacheKey(e);return t?((0,s.kG)(Array.isArray(t),63),this.stableCacheKeys.lookupArray(t)):void 0}},e}()},19065:(e,t,r)=>{r.d(t,{FS:()=>s,LZ:()=>o,mj:()=>a});var n=r(78287),i=r(77304);function o(e,t){var r=e.directives;return!r||!r.length||function(e){var t=[];e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var r=e.arguments,i=e.name.value;(0,n.kG)(r&&1===r.length,65,i);var o=r[0];(0,n.kG)(o.name&&"if"===o.name.value,66,i);var s=o.value;(0,n.kG)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),67,i),t.push({directive:e,ifArgument:o})}}));return t}(r).every((function(e){var r=e.directive,i=e.ifArgument,o=!1;return"Variable"===i.value.kind?(o=t&&t[i.value.name.value],(0,n.kG)(void 0!==o,64,r.name.value)):o=i.value.value,"skip"===r.name.value?!o:o}))}function s(e,t,r){var n=new Set(e),o=n.size;return(0,i.Vn)(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return i.$_}}),r?!n.size:n.size{r.d(t,{F:()=>s,Yk:()=>o,hi:()=>a});var n=r(97582),i=r(78287);function o(e,t){var r=t,o=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw(0,i._K)(68,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&o.push(e)})),void 0===r&&((0,i.kG)(1===o.length,69,o.length),r=o[0].name.value),(0,n.pi)((0,n.pi)({},e),{definitions:(0,n.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function s(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function a(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=e.name.value;if("function"==typeof t)return t(r);var n=t&&t[r];return(0,i.kG)(n,70,r),n||null;default:return null}}},36765:(e,t,r)=>{r.d(t,{$H:()=>s,A$:()=>o,O4:()=>h,iW:()=>u,kU:()=>c,p$:()=>f,pD:()=>l,rY:()=>a});var n=r(78287),i=r(51761);function o(e){(0,n.kG)(e&&"Document"===e.kind,71);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw(0,n._K)(72,e.kind);return e}));return(0,n.kG)(t.length<=1,73,t.length),e}function s(e){return o(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function a(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&!!e.name})).map((function(e){return e.name.value}))[0]||null}function c(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function u(e){var t=s(e);return(0,n.kG)(t&&"query"===t.operation,74),t}function l(e){(0,n.kG)("Document"===e.kind,75),(0,n.kG)(e.definitions.length<=1,76);var t=e.definitions[0];return(0,n.kG)("FragmentDefinition"===t.kind,77),t}function f(e){var t;o(e);for(var r=0,i=e.definitions;r{r.d(t,{S:()=>v});var n=r(87392);const i=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function o(e){return s[e.charCodeAt(0)]}const s=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var a=r(77304);const c={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>u(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=f("(",u(e.variableDefinitions,", "),")"),r=u([e.operation,u([e.name,t]),u(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+f(" = ",r)+f(" ",u(n," "))},SelectionSet:{leave:({selections:e})=>l(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){const o=f("",e,": ")+t;let s=o+f("(",u(r,", "),")");return s.length>80&&(s=o+f("(\n",h(u(r,"\n")),"\n)")),u([s,u(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+f(" ",u(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>u(["...",f("on ",e),u(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${f("(",u(r,", "),")")} on ${t} ${f("",u(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,n.LZ)(e):`"${e.replace(i,o)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+u(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+u(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+f("(",u(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>f("",e,"\n")+u(["schema",u(t," "),l(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>f("",e,"\n")+u(["scalar",t,u(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>f("",e,"\n")+u(["type",t,f("implements ",u(r," & ")),u(n," "),l(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>f("",e,"\n")+t+(p(r)?f("(\n",h(u(r,"\n")),"\n)"):f("(",u(r,", "),")"))+": "+n+f(" ",u(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>f("",e,"\n")+u([t+": "+r,f("= ",n),u(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>f("",e,"\n")+u(["interface",t,f("implements ",u(r," & ")),u(n," "),l(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>f("",e,"\n")+u(["union",t,u(r," "),f("= ",u(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>f("",e,"\n")+u(["enum",t,u(r," "),l(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>f("",e,"\n")+u([t,u(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>f("",e,"\n")+u(["input",t,u(r," "),l(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>f("",e,"\n")+"directive @"+t+(p(r)?f("(\n",h(u(r,"\n")),"\n)"):f("(",u(r,", "),")"))+(n?" repeatable":"")+" on "+u(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>u(["extend schema",u(e," "),l(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>u(["extend scalar",e,u(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>u(["extend type",e,f("implements ",u(t," & ")),u(r," "),l(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>u(["extend interface",e,f("implements ",u(t," & ")),u(r," "),l(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>u(["extend union",e,u(t," "),f("= ",u(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>u(["extend enum",e,u(t," "),l(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>u(["extend input",e,u(t," "),l(r)]," ")}};function u(e,t=""){var r;return null!==(r=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==r?r:""}function l(e){return f("{\n",h(u(e,"\n")),"\n}")}function f(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function h(e){return f(" ",e.replace(/\n/g,"\n "))}function p(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}var d=r(30320).mr?new WeakMap:void 0,v=function(e){var t;return(t=null==d?void 0:d.get(e))||(t=function(e){return(0,a.Vn)(e,c)}(e),null==d||d.set(e,t)),t}},51761:(e,t,r)=>{r.d(t,{Ao:()=>g,JW:()=>c,My:()=>b,NC:()=>v,PT:()=>h,Yk:()=>a,kQ:()=>s,qw:()=>m,u2:()=>y,vb:()=>u,vf:()=>l});var n=r(78287),i=r(13154),o=r(23361);function s(e){return{__ref:String(e)}}function a(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function c(e){return(0,i.s)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function u(e,t,r,i){if(function(e){return"IntValue"===e.kind}(r)||function(e){return"FloatValue"===e.kind}(r))e[t.value]=Number(r.value);else if(function(e){return"BooleanValue"===e.kind}(r)||function(e){return"StringValue"===e.kind}(r))e[t.value]=r.value;else if(function(e){return"ObjectValue"===e.kind}(r)){var o={};r.fields.map((function(e){return u(o,e.name,e.value,i)})),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(r)){var s=(i||{})[r.name.value];e[t.value]=s}else if(function(e){return"ListValue"===e.kind}(r))e[t.value]=r.values.map((function(e){var r={};return u(r,t,e,i),r[t.value]}));else if(function(e){return"EnumValue"===e.kind}(r))e[t.value]=r.value;else{if(!function(e){return"NullValue"===e.kind}(r))throw(0,n._K)(79,t.value,r.kind);e[t.value]=null}}function l(e,t){var r=null;e.directives&&(r={},e.directives.forEach((function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach((function(n){var i=n.name,o=n.value;return u(r[e.name.value],i,o,t)}))})));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach((function(e){var r=e.name,i=e.value;return u(n,r,i,t)}))),h(e.name.value,n,r)}var f=["connection","include","skip","client","rest","export","nonreactive"],h=Object.assign((function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach((function(e){i[e]=t[e]})),"".concat(r.connection.key,"(").concat(p(i),")")}return r.connection.key}var o=e;if(t){var s=p(t);o+="(".concat(s,")")}return r&&Object.keys(r).forEach((function(e){-1===f.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(p(r[e]),")"):o+="@".concat(e))})),o}),{setStringify:function(e){var t=p;return p=e,t}}),p=function(e){return JSON.stringify(e,d)};function d(e,t){return(0,i.s)(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,r){return e[r]=t[r],e}),{})),t}function v(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach((function(e){var n=e.name,i=e.value;return u(r,n,i,t)})),r}return null}function y(e){return e.alias?e.alias.value:e.name.value}function m(e,t,r){for(var n,i=0,s=t.selections;i{r.d(t,{Gw:()=>m,aL:()=>b,bi:()=>y,ob:()=>g});var n=r(97582),i=r(78287),o=r(97359),s=r(77304),a=r(36765),c=r(51761),u=r(23361),l=r(21436),f={kind:o.h.FIELD,name:{kind:o.h.NAME,value:"__typename"}};function h(e,t){return!e||e.selectionSet.selections.every((function(e){return e.kind===o.h.FRAGMENT_SPREAD&&h(t[e.name.value],t)}))}function p(e){return h((0,a.$H)(e)||(0,a.pD)(e),(0,u.F)((0,a.kU)(e)))?null:e}function d(e){var t=new Map,r=new Map;return e.forEach((function(e){e&&(e.name?t.set(e.name,e):e.test&&r.set(e.test,e))})),function(e){var n=t.get(e.name.value);return!n&&r.size&&r.forEach((function(t,r){r(e)&&(n=t)})),n}}function v(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function y(e,t){(0,a.A$)(t);for(var r=v(""),c=v(""),u=function(e){for(var t=0,n=void 0;t=0;--h)t.definitions[h].kind===o.h.OPERATION_DEFINITION&&++f;var y=d(e),m=function(e){return(0,l.O)(e)&&e.map(y).some((function(e){return e&&e.remove}))},b=new Map,g=!1,E={enter:function(e){if(m(e.directives))return g=!0,null}},k=(0,s.Vn)(t,{Field:E,InlineFragment:E,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var o=u(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(m(e.directives))return g=!0,null;var o=u(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){b.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===b.get(JSON.stringify(n))?e:f>0&&e.selectionSet.selections.every((function(e){return e.kind===o.h.FIELD&&"__typename"===e.name.value}))?(c(e.name.value).removed=!0,g=!0,null):void 0}},Directive:{leave:function(e){if(y(e))return g=!0,null}}});if(!g)return t;var O=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach((function(t){O(c(t)).transitiveVars.forEach((function(t){e.transitiveVars.add(t)}))}))),e},_=new Set;k.definitions.forEach((function(e){e.kind===o.h.OPERATION_DEFINITION?O(r(e.name&&e.name.value)).fragmentSpreads.forEach((function(e){_.add(e)})):e.kind!==o.h.FRAGMENT_DEFINITION||0!==f||c(e.name.value).removed||_.add(e.name.value)})),_.forEach((function(e){O(c(e)).fragmentSpreads.forEach((function(e){_.add(e)}))}));var w={enter:function(e){if(t=e.name.value,!_.has(t)||c(t).removed)return null;var t}};return p((0,s.Vn)(k,{FragmentSpread:w,FragmentDefinition:w,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=O(r(e.name&&e.name.value)).transitiveVars;if(t.size{r.d(t,{i:()=>n});var n="3.8.5"},81880:(e,t,r)=>{function n(e,t){return t||(t=e.slice(0)),e.raw=t,e}r.d(t,{Z:()=>n})},70093:(e,t,r)=>{r.d(t,{g7:()=>u});let n=null;const i={};let o=1;function s(e){try{return e()}catch(t){}}const a="@wry/context:Slot",c=s((()=>globalThis))||s((()=>global))||Object.create(null),u=c[a]||Array[a]||function(e){try{Object.defineProperty(c,a,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",o++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=n;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===i)break;return e!==n&&(n.slots[this.id]=t),!0}return n&&(n.slots[this.id]=i),!1}getValue(){if(this.hasValue())return n.slots[this.id]}withValue(e,t,r,i){const o={__proto__:null,[this.id]:e},s=n;n={parent:s,slots:o};try{return t.apply(i,r)}finally{n=s}}static bind(e){const t=n;return function(){const r=n;try{return n=t,e.apply(this,arguments)}finally{n=r}}}static noContext(e,t,r){if(!n)return e.apply(r,t);{const i=n;try{return n=null,e.apply(r,t)}finally{n=i}}}}),{bind:l,noContext:f}=u},30020:(e,t,r)=>{r.d(t,{D:()=>a,Z:()=>c});const{toString:n,hasOwnProperty:i}=Object.prototype,o=Function.prototype.toString,s=new Map;function a(e,t){try{return u(e,t)}finally{s.clear()}}const c=a;function u(e,t){if(e===t)return!0;const r=n.call(e);if(r!==n.call(t))return!1;switch(r){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(p(e,t))return!0;const r=l(e),n=l(t),o=r.length;if(o!==n.length)return!1;for(let e=0;e=0&&e.indexOf(t,r)===r}(r,h)}}return!1}function l(e){return Object.keys(e).filter(f,e)}function f(e){return void 0!==this[e]}const h="{ [native code] }";function p(e,t){let r=s.get(e);if(r){if(r.has(t))return!0}else s.set(e,r=new Set);return r.add(t),!1}},75028:(e,t,r)=>{r.d(t,{B:()=>a});const n=()=>Object.create(null),{forEach:i,slice:o}=Array.prototype,{hasOwnProperty:s}=Object.prototype;class a{constructor(e=!0,t=n){this.weakness=e,this.makeData=t}lookup(...e){return this.lookupArray(e)}lookupArray(e){let t=this;return i.call(e,(e=>t=t.getChildTrie(e))),s.call(t,"data")?t.data:t.data=this.makeData(o.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r{function n(e,t){if(!Boolean(e))throw new Error(t)}r.d(t,{a:()=>n})},25821:(e,t,r)=>{r.d(t,{X:()=>o});const n=10,i=2;function o(e){return s(e,[])}function s(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:s(t,r)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>i)return"[Array]";const r=Math.min(n,e.length),o=e.length-r,a=[];for(let n=0;n1&&a.push(`... ${o} more items`);return"["+a.join(", ")+"]"}(e,r);return function(e,t){const r=Object.entries(e);if(0===r.length)return"{}";if(t.length>i)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const n=r.map((([e,r])=>e+": "+s(r,t)));return"{ "+n.join(", ")+" }"}(e,r)}(e,t);default:return String(e)}}},72380:(e,t,r)=>{r.d(t,{UG:()=>a,WU:()=>i,Ye:()=>n,h8:()=>o,ku:()=>c});class n{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class i{constructor(e,t,r,n,i,o){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const o={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},s=new Set(Object.keys(o));function a(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&s.has(t)}var c;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(c||(c={}))},87392:(e,t,r)=>{r.d(t,{LZ:()=>s,wv:()=>i});var n=r(68297);function i(e){var t;let r=Number.MAX_SAFE_INTEGER,n=null,i=-1;for(let a=0;a0===t?e:e.slice(r))).slice(null!==(t=n)&&void 0!==t?t:0,i+1)}function o(e){let t=0;for(;t1&&i.slice(1).every((e=>0===e.length||(0,n.FD)(e.charCodeAt(0)))),a=r.endsWith('\\"""'),c=e.endsWith('"')&&!a,u=e.endsWith("\\"),l=c||u,f=!(null!=t&&t.minimize)&&(!o||e.length>70||l||s||a);let h="";const p=o&&(0,n.FD)(e.charCodeAt(0));return(f&&!p||s)&&(h+="\n"),h+=r,(f||l)&&(h+="\n"),'"""'+h+'"""'}},68297:(e,t,r)=>{function n(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function o(e){return e>=97&&e<=122||e>=65&&e<=90}function s(e){return o(e)||95===e}function a(e){return o(e)||i(e)||95===e}r.d(t,{FD:()=>n,HQ:()=>a,LQ:()=>s,X1:()=>i})},97359:(e,t,r)=>{var n;r.d(t,{h:()=>n}),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(n||(n={}))},77304:(e,t,r)=>{r.d(t,{$_:()=>a,Vn:()=>c});var n=r(37826),i=r(25821),o=r(72380),s=r(97359);const a=Object.freeze({});function c(e,t,r=o.h8){const c=new Map;for(const n of Object.values(s.h))c.set(n,u(t,n));let l,f,h,p=Array.isArray(e),d=[e],v=-1,y=[],m=e;const b=[],g=[];do{v++;const e=v===d.length,s=e&&0!==y.length;if(e){if(f=0===g.length?void 0:b[b.length-1],m=h,h=g.pop(),s)if(p){m=m.slice();let e=0;for(const[t,r]of y){const n=t-e;null===r?(m.splice(n,1),e++):m[n]=r}}else{m=Object.defineProperties({},Object.getOwnPropertyDescriptors(m));for(const[e,t]of y)m[e]=t}v=l.index,d=l.keys,y=l.edits,p=l.inArray,l=l.prev}else if(h){if(f=p?v:d[v],m=h[f],null==m)continue;b.push(f)}let u;if(!Array.isArray(m)){var E,k;(0,o.UG)(m)||(0,n.a)(!1,`Invalid AST Node: ${(0,i.X)(m)}.`);const r=e?null===(E=c.get(m.kind))||void 0===E?void 0:E.leave:null===(k=c.get(m.kind))||void 0===k?void 0:k.enter;if(u=null==r?void 0:r.call(t,m,f,h,b,g),u===a)break;if(!1===u){if(!e){b.pop();continue}}else if(void 0!==u&&(y.push([f,u]),!e)){if(!(0,o.UG)(u)){b.pop();continue}m=u}}var O;if(void 0===u&&s&&y.push([f,m]),e)b.pop();else l={inArray:p,index:v,keys:d,edits:y,prev:l},p=Array.isArray(m),d=p?m:null!==(O=r[m.kind])&&void 0!==O?O:[],v=-1,y=[],h&&g.push(h),h=m}while(void 0!==l);return 0!==y.length?y[y.length-1][1]:e}function u(e,t){const r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}},33893:(e,t,r)=>{r.d(t,{dP:()=>D,re:()=>A});var n=r(75028);function i(){}class o{constructor(e=1/0,t=i){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}const s=new(r(70093).g7);const{hasOwnProperty:a}=Object.prototype,c=Array.from||function(e){const t=[];return e.forEach((e=>t.push(e))),t};function u(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}const l=[],f=100;function h(e,t){if(!e)throw new Error(t||"assertion failure")}function p(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class d{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++d.count}peek(){if(1===this.value.length&&!m(this))return v(this),this.value[0]}recompute(e){return h(!this.recomputing,"already recomputing"),v(this),m(this)?function(e,t){w(e),s.withValue(e,y,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{u(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(r){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,m(e))return;g(e)}(e);return p(e.value)}(this,e):p(this.value)}setDirty(){this.dirty||(this.dirty=!0,this.value.length=0,b(this),u(this))}dispose(){this.setDirty(),w(this),E(this,((e,t)=>{e.setDirty(),T(e,this)}))}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=l.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(c(this.deps).forEach((e=>e.delete(this))),this.deps.clear(),l.push(this.deps),this.deps=null)}}function v(e){const t=s.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),m(e)?k(t,e):O(t,e),t}function y(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(r){e.value[1]=r}e.recomputing=!1}function m(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function b(e){E(e,k)}function g(e){E(e,O)}function E(e,t){const r=e.parents.size;if(r){const n=c(e.parents);for(let i=0;i0&&r===t.length&&e[r-1]===t[r-1]}(r,t.value)||e.setDirty(),_(e,t),m(e)||g(e)}function _(e,t){const r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(l.length0&&e.childValues.forEach(((t,r)=>{T(e,r)})),e.forgetDeps(),h(null===e.dirtyChildren)}function T(e,t){t.parents.delete(e),e.childValues.delete(t),_(e,t)}d.count=0;const S={setDirty:!0,dispose:!0,forget:!0};function D(e){const t=new Map,r=e&&e.subscribe;function n(e){const n=s.getValue();if(n){let i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(u(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){const n=t.get(e);if(n){const i=r&&a.call(S,r)?r:"setDirty";c(n).forEach((e=>e[i]())),t.delete(e),u(n)}},n}let I;function x(...e){return(I||(I=new n.B("function"==typeof WeakMap))).lookupArray(e)}const N=new Set;function A(e,{max:t=Math.pow(2,16),makeCacheKey:r=x,keyArgs:n,subscribe:i}=Object.create(null)){const a=new o(t,(e=>e.dispose())),c=function(){const t=r.apply(null,n?n.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let o=a.get(t);o||(a.set(t,o=new d(e)),o.subscribe=i,o.forget=()=>a.delete(t));const c=o.recompute(Array.prototype.slice.call(arguments));return a.set(t,o),N.add(a),s.hasValue()||(N.forEach((e=>e.clean())),N.clear()),c};function u(e){const t=a.get(e);t&&t.setDirty()}function l(e){const t=a.get(e);if(t)return t.peek()}function f(e){return a.delete(e)}return Object.defineProperty(c,"size",{get:()=>a.map.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:t,makeCacheKey:r,keyArgs:n,subscribe:i}),c.dirtyKey=u,c.dirty=function(){u(r.apply(null,arguments))},c.peekKey=l,c.peek=function(){return l(r.apply(null,arguments))},c.forgetKey=f,c.forget=function(){return f(r.apply(null,arguments))},c.makeCacheKey=r,c.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(c)}},48216:(e,t,r)=>{function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rw});var a=function(){return"function"==typeof Symbol},c=function(e){return a()&&Boolean(Symbol[e])},u=function(e){return c(e)?Symbol[e]:"@@"+e};a()&&!c("observable")&&(Symbol.observable=Symbol("observable"));var l=u("iterator"),f=u("observable"),h=u("species");function p(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw new TypeError(r+" is not a function");return r}}function d(e){var t=e.constructor;return void 0!==t&&null===(t=t[h])&&(t=void 0),void 0!==t?t:w}function v(e){return e instanceof w}function y(e){y.log?y.log(e):setTimeout((function(){throw e}))}function m(e){Promise.resolve().then((function(){try{e()}catch(t){y(t)}}))}function b(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var r=p(t,"unsubscribe");r&&r.call(t)}}catch(n){y(n)}}function g(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function E(e,t,r){e._state="running";var n=e._observer;try{var i=p(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(g(e),!i)throw r;i.call(n,r);break;case"complete":g(e),i&&i.call(n)}}catch(o){y(o)}"closed"===e._state?b(e):"running"===e._state&&(e._state="ready")}function k(e,t,r){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:r}],void m((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r1,i=!1,o=arguments[1];return new r((function(r){return t.subscribe({next:function(t){var s=!i;if(i=!0,!s||n)try{o=e(o,t)}catch(a){return r.error(a)}else o=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(o),r.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n=0&&i.splice(e,1),s()}});i.push(o)},error:function(e){n.error(e)},complete:function(){s()}});function s(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))},t[f]=function(){return this},e.from=function(t){var r="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var i=p(t,f);if(i){var o=i.call(t);if(Object(o)!==o)throw new TypeError(o+" is not an object");return v(o)&&o.constructor===r?o:new r((function(e){return o.subscribe(e)}))}if(c("iterator")&&(i=p(t,l)))return new r((function(e){m((function(){if(!e.closed){for(var r,o=n(i.call(t));!(r=o()).done;){var s=r.value;if(e.next(s),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new r((function(e){m((function(){if(!e.closed){for(var r=0;r{"use strict";var e,f,c,a,d={},b={};function r(e){var f=b[e];if(void 0!==f)return f.exports;var c=b[e]={id:e,loaded:!1,exports:{}};return d[e].call(c.exports,c,c.exports,r),c.loaded=!0,c.exports}r.m=d,e=[],r.O=(f,c,a,d)=>{if(!c){var b=1/0;for(i=0;i=d)&&Object.keys(r.O).every((e=>r.O[e](c[o])))?c.splice(o--,1):(t=!1,d0&&e[i-1][2]>d;i--)e[i]=e[i-1];e[i]=[c,a,d]},r.n=e=>{var f=e&&e.__esModule?()=>e.default:()=>e;return r.d(f,{a:f}),f},c=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(e,a){if(1&a&&(e=this(e)),8&a)return e;if("object"==typeof e&&e){if(4&a&&e.__esModule)return e;if(16&a&&"function"==typeof e.then)return e}var d=Object.create(null);r.r(d);var b={};f=f||[null,c({}),c([]),c(c)];for(var t=2&a&&e;"object"==typeof t&&!~f.indexOf(t);t=c(t))Object.getOwnPropertyNames(t).forEach((f=>b[f]=()=>e[f]));return b.default=()=>e,r.d(d,b),d},r.d=(e,f)=>{for(var c in f)r.o(f,c)&&!r.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:f[c]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((f,c)=>(r.f[c](e,f),f)),[])),r.u=e=>"assets/js/"+({1:"f4fb6e9c",6:"408829bd",12:"1d6d4797",53:"935f2afb",63:"9f319605",192:"f189ca9f",217:"c7a044bb",250:"f2717f8e",315:"9528ac88",502:"2d429218",537:"3829cf1d",601:"0c06bca3",609:"d569989b",626:"79d4be33",657:"386bfe51",691:"145746f5",785:"04a995e6",810:"23498fd5",1062:"f90fa732",1083:"899aadcc",1090:"cfd53ea4",1211:"73c3bebc",1213:"25f2bd2a",1239:"f359a251",1288:"fabebe44",1299:"74df6a22",1372:"b61f6dc7",1415:"4d76887f",1419:"f750c690",1446:"5136ee31",1481:"4dff184a",1486:"8dd7cee0",1494:"b21dd8a7",1506:"c977dfe8",1529:"ffe9c3c9",1585:"33b0bcab",1592:"b336bb09",1598:"7fbac68a",1678:"fa343ad1",1686:"f7191335",1703:"a5002e4a",1723:"0df78d26",1748:"987d08ef",1774:"9e6341e5",1786:"d9ef69a7",1825:"48074a08",1872:"78e1e977",1953:"1ed3671a",1957:"df154d69",1966:"f47489cd",1979:"0cb62240",2008:"4f031749",2042:"dd32e389",2078:"84f79495",2117:"21877fa5",2136:"ecb495b7",2169:"1646726c",2194:"6151e7ce",2242:"f3027c84",2248:"da9f79cb",2354:"493c7fdf",2399:"8d3a1bf8",2483:"d6d2b2d5",2505:"9a101178",2507:"7c78c461",2508:"918b38b6",2552:"863c4753",2609:"db0b42b0",2633:"e2e89062",2665:"f4130007",2677:"ece9fdae",2704:"f3bde756",2712:"c2c6a3a6",2754:"78868b16",2758:"9e3f6a8a",2791:"7d54ab5a",2884:"5d69d9d4",2909:"f4200fe5",2914:"2be0d940",2949:"2ea50c63",3066:"af40287e",3132:"85afe03a",3262:"8a8a7d05",3330:"e31fc461",3332:"3497b7c6",3347:"32dac8d4",3348:"7ccc428f",3356:"f14351c1",3484:"5c90fc9b",3513:"41b7b3e8",3554:"d5909206",3599:"21899dd2",3620:"f137ce68",3635:"75a6958b",3665:"f1585bfb",3667:"b0cbc1d4",3668:"b225a2ce",3669:"dbbd9e76",3757:"bea375d6",3842:"ff6596ea",3933:"cda87995",3944:"fac80962",3945:"f8518919",4004:"ec3b6a32",4097:"eef3f1dd",4105:"702d5d94",4174:"a7c27f4d",4195:"c4f5d8e4",4355:"19ed4d4c",4363:"f2c21b54",4379:"c662f00a",4428:"991ceaa9",4445:"4d9b9869",4476:"f4003c83",4507:"a7b37b86",4537:"1ae2b102",4541:"3e56470e",4543:"295fff6c",4566:"694e7470",4620:"48d75399",4634:"54338ffb",4666:"f41c4e9d",4672:"43ee4f22",4696:"1dc05242",4909:"f0855ff9",4916:"c1bbdb2a",5005:"320c8a05",5011:"7e9389ad",5013:"c41801b5",5103:"db039c7f",5157:"d27ae88d",5281:"31bd35e0",5422:"b3719d54",5483:"f7acb151",5492:"1882e65d",5526:"0c68fb82",5548:"d6b0148d",5651:"9e2042f5",5704:"b9b4ec9e",5989:"fbf58567",6104:"c7c5ba1a",6140:"32e8da05",6220:"d01f45b7",6253:"a29dc56e",6255:"452ad91d",6277:"a62d9768",6294:"bbba852d",6312:"dbc4065c",6357:"43cda9e8",6373:"ceaa29cb",6482:"49816380",6585:"13b7bafa",6598:"ca9fe671",6689:"f2521980",6730:"fea93377",6776:"666ba125",6827:"279fb1d6",6862:"60e73337",6918:"29a046f3",6920:"ccc1222e",6946:"4642ab5c",7022:"543610b9",7061:"feea648c",7202:"4a8eb552",7211:"f44ed8f8",7280:"fbea1897",7288:"6f1a81b8",7313:"db3d6c4d",7368:"bb8b1738",7388:"bd701914",7466:"a5b3561d",7485:"d3db551a",7633:"b940de31",7654:"c07c2447",7683:"cc44e8fd",7714:"591eca19",7778:"41871d53",7799:"8b670b2b",7823:"9e76b49d",7830:"15985664",7837:"0a3f0c9b",7858:"d6a97e7e",7908:"33bbe353",7918:"17896441",7920:"1a4e3797",7940:"ad762f86",7961:"a2800a5b",8034:"fecdcc34",8067:"69b97ecd",8080:"77a2b809",8115:"8247eba8",8138:"694672cd",8139:"386099fc",8178:"9a679a70",8215:"30d868e8",8236:"ffd76171",8270:"12331e8b",8355:"c91a9c06",8361:"824749c6",8618:"e4f3654b",8648:"71ed82b9",8702:"a74a59a0",8757:"83d4859f",8791:"ab138bf8",8831:"3bd77df4",8855:"d3a753cf",8860:"766a10e1",8866:"98a30fd8",8876:"31c99aa1",8901:"b48c599b",9062:"b38833d4",9071:"60738e36",9112:"a4b71220",9126:"924835c1",9217:"64c7e1cc",9226:"2f3b630e",9247:"8167490d",9276:"e344dd79",9315:"6d2ffbf3",9323:"131c7f55",9383:"a996ffc3",9478:"c7a2145e",9514:"1be78505",9548:"f95cee6f",9626:"32c9742a",9764:"dc776cbc",9779:"cd144357",9802:"1e15616a",9806:"51fbc2c9",9817:"14eb3368",9905:"b0cb055f",9993:"482bfb5c"}[e]||e)+"."+{1:"5563b650",6:"1f73546c",12:"1d49c46e",53:"989b826e",63:"4e5acc1b",192:"2ac0e4f9",217:"0102c432",250:"11cfd82d",315:"5a1a76c0",502:"b0bc7324",537:"2aa85719",601:"fdd54faa",609:"7ea29085",626:"04fdcb9b",657:"f5513d14",691:"057bf6a6",785:"8b77bad6",810:"a76eb85f",1062:"f79ad7a8",1083:"ac5baa92",1090:"26932415",1211:"ff50cb20",1213:"fee6731f",1239:"229ef67b",1288:"a5dae372",1299:"7dda7011",1372:"4867e413",1415:"68f49da4",1419:"3038c1cd",1446:"2265d608",1481:"ee5894bb",1486:"b802faeb",1494:"06ba09e6",1506:"13ff4738",1529:"5e89d63c",1585:"e1ec66d3",1592:"5581008d",1598:"c2253902",1678:"fd4b34be",1686:"6d75f37a",1703:"11033614",1723:"679d1be0",1748:"4e45b476",1774:"1c405b46",1786:"6a2d15ec",1825:"7886665d",1872:"342366ba",1953:"e4392cf0",1957:"20d04add",1966:"159ec2ae",1979:"6d282955",2008:"d9fd5038",2042:"58ff2936",2078:"17164550",2117:"17c8218b",2136:"dbf5ae7f",2169:"f5054254",2194:"dc7e4b47",2242:"ed88ff37",2248:"f8b898cb",2354:"06d84356",2399:"ce4dc016",2483:"e1906e64",2505:"93f7a5dc",2507:"1df35914",2508:"f22722ab",2552:"6484aed3",2609:"c959d9e0",2633:"07cb844a",2665:"5df8cc2a",2677:"6a600a13",2704:"c83746c5",2712:"3547dfc9",2754:"82d7eade",2758:"7a12fb0f",2791:"e6f92028",2859:"f06cf7d7",2884:"3b223315",2909:"025c4bbe",2914:"480a9951",2949:"7738f0eb",3066:"2d6ba895",3132:"85a16703",3262:"c248e7da",3330:"f8f9d28c",3332:"59059207",3347:"cbbdbed4",3348:"ec74ef03",3356:"92ca1efd",3484:"e60b3258",3513:"06973ce4",3554:"6dc12371",3599:"e4d7458a",3620:"c1d05422",3635:"380802aa",3665:"fb1d42b5",3667:"b8d02200",3668:"b34aa74c",3669:"127bb89f",3757:"bc4ede3b",3842:"e0217335",3933:"72a66ef4",3944:"a4c24ce9",3945:"b5d18aaa",4004:"5b01424d",4097:"8a90e754",4105:"3b4a799e",4174:"93985089",4195:"66467c10",4355:"2d9fa8b7",4363:"e88e5818",4379:"2d13fe17",4428:"67f2e04e",4445:"75e079a4",4476:"5948c0f4",4507:"bed350d5",4537:"c965ef47",4541:"978ae83c",4543:"d644a3e2",4566:"ab0d60ad",4620:"d02a17da",4634:"f0073246",4666:"13717c6f",4672:"7513894d",4696:"27d5f43b",4909:"3ae4713d",4916:"4b3a7688",4972:"2c004fcc",5005:"2dd41bcb",5011:"98b0975e",5013:"da533e91",5103:"3f268ad3",5157:"899f2267",5281:"6761b31b",5422:"8c5403fb",5483:"daef5619",5492:"7b10a32b",5526:"20b79d53",5548:"e68f018e",5651:"701df6e6",5704:"70bd0ba6",5989:"0fdc298d",6104:"5ca45843",6140:"952b82c2",6220:"8b344451",6253:"fe535738",6255:"8509f60e",6277:"a769d3bc",6294:"b077023f",6312:"ed91dbbd",6316:"86a075e6",6357:"6a6a3bfc",6373:"b8a24443",6482:"502a0b67",6495:"4071f460",6585:"69ef2e32",6598:"5f760aa9",6689:"60ffe859",6730:"52c45925",6776:"0a7bd7c5",6780:"35cedf78",6827:"3fb13981",6862:"494b1047",6918:"61dac2e1",6920:"a34cbecc",6945:"96d36007",6946:"62348511",7022:"083a8378",7061:"89e327b0",7202:"795d2adc",7211:"bf56e06e",7280:"47e41d56",7288:"59752a80",7313:"f998873b",7368:"77d8ddea",7388:"53d48c10",7466:"6c38d255",7485:"82d47cfd",7633:"522211f9",7654:"7e8735bb",7683:"7de880dc",7714:"a69296c3",7724:"05bda7f2",7778:"8da5b4da",7799:"5d0c65da",7823:"6c8a30f2",7830:"a2703576",7837:"b9260b47",7858:"f9862ed2",7908:"0da511b2",7918:"7dd2ce47",7920:"56c00901",7940:"e5c7d8f2",7961:"c0d1b031",8034:"dca0d1af",8067:"af36ecc3",8080:"1adae4dd",8115:"2ebb714e",8138:"11462c7d",8139:"7c760262",8178:"62f5ed0b",8215:"775d309b",8236:"63fecdb9",8270:"1dd5ba80",8355:"caef1eb9",8361:"5c7bc601",8618:"f5896277",8648:"34316a10",8702:"cf207d29",8757:"4f1ee155",8791:"a3cd97ad",8831:"16eb75ba",8855:"9d00af7a",8860:"48171767",8866:"4bdda915",8876:"a30609d2",8894:"ba661129",8901:"cc3ae736",9062:"9cc9144f",9071:"0695351a",9112:"38b794db",9126:"f0242db8",9217:"d87f81ce",9226:"3d3d91d5",9247:"a0154dc8",9276:"c9f1c397",9315:"d5006aa3",9323:"faa9a3ec",9383:"dec8392d",9447:"7b380a6b",9478:"8f4b04f5",9487:"ca8bca46",9514:"693800c6",9548:"f095b5ce",9626:"b43c6d01",9764:"012ce7bf",9779:"4c7efdf9",9802:"11684b0f",9806:"c3977137",9817:"beb63dbf",9905:"3e1ce1bd",9993:"98eb3afc"}[e]+".js",r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,f)=>Object.prototype.hasOwnProperty.call(e,f),a={},r.l=(e,f,c,d)=>{if(a[e])a[e].push(f);else{var b,t;if(void 0!==c)for(var o=document.getElementsByTagName("script"),n=0;n{b.onerror=b.onload=null,clearTimeout(u);var d=a[e];if(delete a[e],b.parentNode&&b.parentNode.removeChild(b),d&&d.forEach((e=>e(c))),f)return f(c)},u=setTimeout(l.bind(null,void 0,{type:"timeout",target:b}),12e4);b.onerror=l.bind(null,b.onerror),b.onload=l.bind(null,b.onload),t&&document.head.appendChild(b)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.p="/",r.gca=function(e){return e={15985664:"7830",17896441:"7918",49816380:"6482",f4fb6e9c:"1","408829bd":"6","1d6d4797":"12","935f2afb":"53","9f319605":"63",f189ca9f:"192",c7a044bb:"217",f2717f8e:"250","9528ac88":"315","2d429218":"502","3829cf1d":"537","0c06bca3":"601",d569989b:"609","79d4be33":"626","386bfe51":"657","145746f5":"691","04a995e6":"785","23498fd5":"810",f90fa732:"1062","899aadcc":"1083",cfd53ea4:"1090","73c3bebc":"1211","25f2bd2a":"1213",f359a251:"1239",fabebe44:"1288","74df6a22":"1299",b61f6dc7:"1372","4d76887f":"1415",f750c690:"1419","5136ee31":"1446","4dff184a":"1481","8dd7cee0":"1486",b21dd8a7:"1494",c977dfe8:"1506",ffe9c3c9:"1529","33b0bcab":"1585",b336bb09:"1592","7fbac68a":"1598",fa343ad1:"1678",f7191335:"1686",a5002e4a:"1703","0df78d26":"1723","987d08ef":"1748","9e6341e5":"1774",d9ef69a7:"1786","48074a08":"1825","78e1e977":"1872","1ed3671a":"1953",df154d69:"1957",f47489cd:"1966","0cb62240":"1979","4f031749":"2008",dd32e389:"2042","84f79495":"2078","21877fa5":"2117",ecb495b7:"2136","1646726c":"2169","6151e7ce":"2194",f3027c84:"2242",da9f79cb:"2248","493c7fdf":"2354","8d3a1bf8":"2399",d6d2b2d5:"2483","9a101178":"2505","7c78c461":"2507","918b38b6":"2508","863c4753":"2552",db0b42b0:"2609",e2e89062:"2633",f4130007:"2665",ece9fdae:"2677",f3bde756:"2704",c2c6a3a6:"2712","78868b16":"2754","9e3f6a8a":"2758","7d54ab5a":"2791","5d69d9d4":"2884",f4200fe5:"2909","2be0d940":"2914","2ea50c63":"2949",af40287e:"3066","85afe03a":"3132","8a8a7d05":"3262",e31fc461:"3330","3497b7c6":"3332","32dac8d4":"3347","7ccc428f":"3348",f14351c1:"3356","5c90fc9b":"3484","41b7b3e8":"3513",d5909206:"3554","21899dd2":"3599",f137ce68:"3620","75a6958b":"3635",f1585bfb:"3665",b0cbc1d4:"3667",b225a2ce:"3668",dbbd9e76:"3669",bea375d6:"3757",ff6596ea:"3842",cda87995:"3933",fac80962:"3944",f8518919:"3945",ec3b6a32:"4004",eef3f1dd:"4097","702d5d94":"4105",a7c27f4d:"4174",c4f5d8e4:"4195","19ed4d4c":"4355",f2c21b54:"4363",c662f00a:"4379","991ceaa9":"4428","4d9b9869":"4445",f4003c83:"4476",a7b37b86:"4507","1ae2b102":"4537","3e56470e":"4541","295fff6c":"4543","694e7470":"4566","48d75399":"4620","54338ffb":"4634",f41c4e9d:"4666","43ee4f22":"4672","1dc05242":"4696",f0855ff9:"4909",c1bbdb2a:"4916","320c8a05":"5005","7e9389ad":"5011",c41801b5:"5013",db039c7f:"5103",d27ae88d:"5157","31bd35e0":"5281",b3719d54:"5422",f7acb151:"5483","1882e65d":"5492","0c68fb82":"5526",d6b0148d:"5548","9e2042f5":"5651",b9b4ec9e:"5704",fbf58567:"5989",c7c5ba1a:"6104","32e8da05":"6140",d01f45b7:"6220",a29dc56e:"6253","452ad91d":"6255",a62d9768:"6277",bbba852d:"6294",dbc4065c:"6312","43cda9e8":"6357",ceaa29cb:"6373","13b7bafa":"6585",ca9fe671:"6598",f2521980:"6689",fea93377:"6730","666ba125":"6776","279fb1d6":"6827","60e73337":"6862","29a046f3":"6918",ccc1222e:"6920","4642ab5c":"6946","543610b9":"7022",feea648c:"7061","4a8eb552":"7202",f44ed8f8:"7211",fbea1897:"7280","6f1a81b8":"7288",db3d6c4d:"7313",bb8b1738:"7368",bd701914:"7388",a5b3561d:"7466",d3db551a:"7485",b940de31:"7633",c07c2447:"7654",cc44e8fd:"7683","591eca19":"7714","41871d53":"7778","8b670b2b":"7799","9e76b49d":"7823","0a3f0c9b":"7837",d6a97e7e:"7858","33bbe353":"7908","1a4e3797":"7920",ad762f86:"7940",a2800a5b:"7961",fecdcc34:"8034","69b97ecd":"8067","77a2b809":"8080","8247eba8":"8115","694672cd":"8138","386099fc":"8139","9a679a70":"8178","30d868e8":"8215",ffd76171:"8236","12331e8b":"8270",c91a9c06:"8355","824749c6":"8361",e4f3654b:"8618","71ed82b9":"8648",a74a59a0:"8702","83d4859f":"8757",ab138bf8:"8791","3bd77df4":"8831",d3a753cf:"8855","766a10e1":"8860","98a30fd8":"8866","31c99aa1":"8876",b48c599b:"8901",b38833d4:"9062","60738e36":"9071",a4b71220:"9112","924835c1":"9126","64c7e1cc":"9217","2f3b630e":"9226","8167490d":"9247",e344dd79:"9276","6d2ffbf3":"9315","131c7f55":"9323",a996ffc3:"9383",c7a2145e:"9478","1be78505":"9514",f95cee6f:"9548","32c9742a":"9626",dc776cbc:"9764",cd144357:"9779","1e15616a":"9802","51fbc2c9":"9806","14eb3368":"9817",b0cb055f:"9905","482bfb5c":"9993"}[e]||e,r.p+r.u(e)},(()=>{var e={1303:0,532:0};r.f.j=(f,c)=>{var a=r.o(e,f)?e[f]:void 0;if(0!==a)if(a)c.push(a[2]);else if(/^(1303|532)$/.test(f))e[f]=0;else{var d=new Promise(((c,d)=>a=e[f]=[c,d]));c.push(a[2]=d);var b=r.p+r.u(f),t=new Error;r.l(b,(c=>{if(r.o(e,f)&&(0!==(a=e[f])&&(e[f]=void 0),a)){var d=c&&("load"===c.type?"missing":c.type),b=c&&c.target&&c.target.src;t.message="Loading chunk "+f+" failed.\n("+d+": "+b+")",t.name="ChunkLoadError",t.type=d,t.request=b,a[1](t)}}),"chunk-"+f,f)}},r.O.j=f=>0===e[f];var f=(f,c)=>{var a,d,[b,t,o]=c,n=0;if(b.some((f=>0!==e[f]))){for(a in t)r.o(t,a)&&(r.m[a]=t[a]);if(o)var i=o(r)}for(f&&f(c);n{"use strict";var e,f,c,a,d={},b={};function r(e){var f=b[e];if(void 0!==f)return f.exports;var c=b[e]={id:e,loaded:!1,exports:{}};return d[e].call(c.exports,c,c.exports,r),c.loaded=!0,c.exports}r.m=d,e=[],r.O=(f,c,a,d)=>{if(!c){var b=1/0;for(i=0;i=d)&&Object.keys(r.O).every((e=>r.O[e](c[o])))?c.splice(o--,1):(t=!1,d0&&e[i-1][2]>d;i--)e[i]=e[i-1];e[i]=[c,a,d]},r.n=e=>{var f=e&&e.__esModule?()=>e.default:()=>e;return r.d(f,{a:f}),f},c=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(e,a){if(1&a&&(e=this(e)),8&a)return e;if("object"==typeof e&&e){if(4&a&&e.__esModule)return e;if(16&a&&"function"==typeof e.then)return e}var d=Object.create(null);r.r(d);var b={};f=f||[null,c({}),c([]),c(c)];for(var t=2&a&&e;"object"==typeof t&&!~f.indexOf(t);t=c(t))Object.getOwnPropertyNames(t).forEach((f=>b[f]=()=>e[f]));return b.default=()=>e,r.d(d,b),d},r.d=(e,f)=>{for(var c in f)r.o(f,c)&&!r.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:f[c]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((f,c)=>(r.f[c](e,f),f)),[])),r.u=e=>"assets/js/"+({1:"f4fb6e9c",6:"408829bd",12:"1d6d4797",53:"935f2afb",63:"9f319605",192:"f189ca9f",217:"c7a044bb",250:"f2717f8e",315:"9528ac88",502:"2d429218",537:"3829cf1d",601:"0c06bca3",609:"d569989b",626:"79d4be33",657:"386bfe51",691:"145746f5",785:"04a995e6",810:"23498fd5",1062:"f90fa732",1083:"899aadcc",1090:"cfd53ea4",1211:"73c3bebc",1213:"25f2bd2a",1239:"f359a251",1288:"fabebe44",1299:"74df6a22",1372:"b61f6dc7",1415:"4d76887f",1419:"f750c690",1446:"5136ee31",1481:"4dff184a",1486:"8dd7cee0",1494:"b21dd8a7",1506:"c977dfe8",1529:"ffe9c3c9",1585:"33b0bcab",1592:"b336bb09",1598:"7fbac68a",1678:"fa343ad1",1686:"f7191335",1703:"a5002e4a",1723:"0df78d26",1748:"987d08ef",1774:"9e6341e5",1786:"d9ef69a7",1825:"48074a08",1872:"78e1e977",1953:"1ed3671a",1957:"df154d69",1966:"f47489cd",1979:"0cb62240",2008:"4f031749",2042:"dd32e389",2078:"84f79495",2117:"21877fa5",2136:"ecb495b7",2169:"1646726c",2194:"6151e7ce",2242:"f3027c84",2248:"da9f79cb",2354:"493c7fdf",2399:"8d3a1bf8",2483:"d6d2b2d5",2505:"9a101178",2507:"7c78c461",2508:"918b38b6",2552:"863c4753",2609:"db0b42b0",2633:"e2e89062",2665:"f4130007",2677:"ece9fdae",2704:"f3bde756",2712:"c2c6a3a6",2754:"78868b16",2758:"9e3f6a8a",2791:"7d54ab5a",2884:"5d69d9d4",2909:"f4200fe5",2914:"2be0d940",2949:"2ea50c63",3066:"af40287e",3132:"85afe03a",3262:"8a8a7d05",3330:"e31fc461",3332:"3497b7c6",3347:"32dac8d4",3348:"7ccc428f",3356:"f14351c1",3484:"5c90fc9b",3513:"41b7b3e8",3554:"d5909206",3599:"21899dd2",3620:"f137ce68",3635:"75a6958b",3665:"f1585bfb",3667:"b0cbc1d4",3668:"b225a2ce",3669:"dbbd9e76",3757:"bea375d6",3842:"ff6596ea",3933:"cda87995",3944:"fac80962",3945:"f8518919",4004:"ec3b6a32",4097:"eef3f1dd",4105:"702d5d94",4174:"a7c27f4d",4195:"c4f5d8e4",4355:"19ed4d4c",4363:"f2c21b54",4379:"c662f00a",4428:"991ceaa9",4445:"4d9b9869",4476:"f4003c83",4507:"a7b37b86",4537:"1ae2b102",4541:"3e56470e",4543:"295fff6c",4566:"694e7470",4620:"48d75399",4634:"54338ffb",4666:"f41c4e9d",4672:"43ee4f22",4696:"1dc05242",4909:"f0855ff9",4916:"c1bbdb2a",5005:"320c8a05",5011:"7e9389ad",5013:"c41801b5",5103:"db039c7f",5157:"d27ae88d",5281:"31bd35e0",5422:"b3719d54",5483:"f7acb151",5492:"1882e65d",5526:"0c68fb82",5548:"d6b0148d",5651:"9e2042f5",5704:"b9b4ec9e",5989:"fbf58567",6104:"c7c5ba1a",6140:"32e8da05",6220:"d01f45b7",6253:"a29dc56e",6255:"452ad91d",6277:"a62d9768",6294:"bbba852d",6312:"dbc4065c",6357:"43cda9e8",6373:"ceaa29cb",6482:"49816380",6585:"13b7bafa",6598:"ca9fe671",6689:"f2521980",6730:"fea93377",6776:"666ba125",6827:"279fb1d6",6862:"60e73337",6918:"29a046f3",6920:"ccc1222e",6946:"4642ab5c",7022:"543610b9",7061:"feea648c",7202:"4a8eb552",7211:"f44ed8f8",7280:"fbea1897",7288:"6f1a81b8",7313:"db3d6c4d",7368:"bb8b1738",7388:"bd701914",7466:"a5b3561d",7485:"d3db551a",7633:"b940de31",7654:"c07c2447",7683:"cc44e8fd",7714:"591eca19",7778:"41871d53",7799:"8b670b2b",7823:"9e76b49d",7830:"15985664",7837:"0a3f0c9b",7858:"d6a97e7e",7908:"33bbe353",7918:"17896441",7920:"1a4e3797",7940:"ad762f86",7961:"a2800a5b",8034:"fecdcc34",8067:"69b97ecd",8080:"77a2b809",8115:"8247eba8",8138:"694672cd",8139:"386099fc",8178:"9a679a70",8215:"30d868e8",8236:"ffd76171",8270:"12331e8b",8355:"c91a9c06",8361:"824749c6",8618:"e4f3654b",8648:"71ed82b9",8702:"a74a59a0",8757:"83d4859f",8791:"ab138bf8",8831:"3bd77df4",8855:"d3a753cf",8860:"766a10e1",8866:"98a30fd8",8876:"31c99aa1",8901:"b48c599b",9062:"b38833d4",9071:"60738e36",9112:"a4b71220",9126:"924835c1",9217:"64c7e1cc",9226:"2f3b630e",9247:"8167490d",9276:"e344dd79",9315:"6d2ffbf3",9323:"131c7f55",9383:"a996ffc3",9478:"c7a2145e",9514:"1be78505",9548:"f95cee6f",9626:"32c9742a",9764:"dc776cbc",9779:"cd144357",9802:"1e15616a",9806:"51fbc2c9",9817:"14eb3368",9905:"b0cb055f",9993:"482bfb5c"}[e]||e)+"."+{1:"5563b650",6:"1f73546c",12:"1d49c46e",53:"989b826e",63:"4e5acc1b",192:"2ac0e4f9",217:"0102c432",250:"11cfd82d",315:"5a1a76c0",502:"b0bc7324",537:"2aa85719",601:"fdd54faa",609:"7ea29085",626:"04fdcb9b",657:"f5513d14",691:"057bf6a6",785:"8b77bad6",810:"a76eb85f",1062:"f79ad7a8",1083:"ac5baa92",1090:"26932415",1211:"ff50cb20",1213:"fee6731f",1239:"229ef67b",1288:"a5dae372",1299:"7dda7011",1372:"4867e413",1415:"68f49da4",1419:"3038c1cd",1446:"2265d608",1481:"ee5894bb",1486:"b802faeb",1494:"06ba09e6",1506:"13ff4738",1529:"5e89d63c",1585:"e1ec66d3",1592:"5581008d",1598:"c2253902",1678:"fd4b34be",1686:"6d75f37a",1703:"11033614",1723:"679d1be0",1748:"4e45b476",1774:"1c405b46",1786:"6a2d15ec",1825:"7886665d",1872:"342366ba",1953:"e4392cf0",1957:"20d04add",1966:"159ec2ae",1979:"6d282955",2008:"d9fd5038",2042:"58ff2936",2078:"17164550",2117:"17c8218b",2136:"dbf5ae7f",2169:"f5054254",2194:"dc7e4b47",2242:"ed88ff37",2248:"f8b898cb",2354:"06d84356",2399:"ce4dc016",2483:"e1906e64",2505:"93f7a5dc",2507:"1df35914",2508:"fef65b10",2552:"6484aed3",2609:"c959d9e0",2633:"07cb844a",2665:"5df8cc2a",2677:"6a600a13",2704:"c83746c5",2712:"3547dfc9",2754:"82d7eade",2758:"7a12fb0f",2791:"e6f92028",2859:"f06cf7d7",2884:"3b223315",2909:"025c4bbe",2914:"480a9951",2949:"7738f0eb",3066:"2d6ba895",3132:"85a16703",3262:"c248e7da",3330:"f8f9d28c",3332:"59059207",3347:"cbbdbed4",3348:"ec74ef03",3356:"92ca1efd",3484:"e60b3258",3513:"06973ce4",3554:"6dc12371",3599:"e4d7458a",3620:"c1d05422",3635:"380802aa",3665:"fb1d42b5",3667:"b8d02200",3668:"b34aa74c",3669:"127bb89f",3757:"bc4ede3b",3842:"e0217335",3933:"72a66ef4",3944:"a4c24ce9",3945:"b5d18aaa",4004:"5b01424d",4097:"8a90e754",4105:"3b4a799e",4174:"93985089",4195:"66467c10",4355:"2d9fa8b7",4363:"e88e5818",4379:"2d13fe17",4428:"67f2e04e",4445:"75e079a4",4476:"5948c0f4",4507:"bed350d5",4537:"c965ef47",4541:"978ae83c",4543:"d644a3e2",4566:"ab0d60ad",4620:"d02a17da",4634:"f0073246",4666:"13717c6f",4672:"7513894d",4696:"27d5f43b",4909:"3ae4713d",4916:"4b3a7688",4972:"2c004fcc",5005:"2dd41bcb",5011:"98b0975e",5013:"da533e91",5103:"3f268ad3",5157:"899f2267",5281:"6761b31b",5422:"8c5403fb",5483:"daef5619",5492:"7b10a32b",5526:"20b79d53",5548:"e68f018e",5651:"701df6e6",5704:"70bd0ba6",5989:"0fdc298d",6104:"5ca45843",6140:"952b82c2",6220:"8b344451",6253:"fe535738",6255:"8509f60e",6277:"a769d3bc",6294:"b077023f",6312:"ed91dbbd",6316:"86a075e6",6357:"6a6a3bfc",6373:"b8a24443",6482:"502a0b67",6495:"4071f460",6585:"69ef2e32",6598:"5f760aa9",6689:"60ffe859",6730:"52c45925",6776:"0a7bd7c5",6780:"35cedf78",6827:"3fb13981",6862:"494b1047",6918:"61dac2e1",6920:"a34cbecc",6945:"96d36007",6946:"62348511",7022:"083a8378",7061:"89e327b0",7202:"795d2adc",7211:"bf56e06e",7280:"47e41d56",7288:"59752a80",7313:"f998873b",7368:"77d8ddea",7388:"53d48c10",7466:"6c38d255",7485:"82d47cfd",7633:"522211f9",7654:"7e8735bb",7683:"7de880dc",7714:"a69296c3",7724:"05bda7f2",7778:"8da5b4da",7799:"5d0c65da",7823:"6c8a30f2",7830:"a2703576",7837:"b9260b47",7858:"f9862ed2",7908:"0da511b2",7918:"7dd2ce47",7920:"56c00901",7940:"e5c7d8f2",7961:"c0d1b031",8034:"dca0d1af",8067:"af36ecc3",8080:"1adae4dd",8115:"2ebb714e",8138:"11462c7d",8139:"7c760262",8178:"62f5ed0b",8215:"775d309b",8236:"63fecdb9",8270:"1dd5ba80",8355:"caef1eb9",8361:"5c7bc601",8618:"f5896277",8648:"34316a10",8702:"cf207d29",8757:"4f1ee155",8791:"a3cd97ad",8831:"16eb75ba",8855:"9d00af7a",8860:"48171767",8866:"4bdda915",8876:"a30609d2",8894:"ba661129",8901:"cc3ae736",9062:"9cc9144f",9071:"0695351a",9112:"38b794db",9126:"f0242db8",9217:"d87f81ce",9226:"3d3d91d5",9247:"a0154dc8",9276:"c9f1c397",9315:"d5006aa3",9323:"faa9a3ec",9383:"dec8392d",9447:"8074d0f3",9478:"8f4b04f5",9487:"ca8bca46",9514:"693800c6",9548:"f095b5ce",9626:"b43c6d01",9764:"012ce7bf",9779:"4c7efdf9",9802:"11684b0f",9806:"c3977137",9817:"beb63dbf",9905:"3e1ce1bd",9993:"98eb3afc"}[e]+".js",r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,f)=>Object.prototype.hasOwnProperty.call(e,f),a={},r.l=(e,f,c,d)=>{if(a[e])a[e].push(f);else{var b,t;if(void 0!==c)for(var o=document.getElementsByTagName("script"),n=0;n{b.onerror=b.onload=null,clearTimeout(u);var d=a[e];if(delete a[e],b.parentNode&&b.parentNode.removeChild(b),d&&d.forEach((e=>e(c))),f)return f(c)},u=setTimeout(l.bind(null,void 0,{type:"timeout",target:b}),12e4);b.onerror=l.bind(null,b.onerror),b.onload=l.bind(null,b.onload),t&&document.head.appendChild(b)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.p="/",r.gca=function(e){return e={15985664:"7830",17896441:"7918",49816380:"6482",f4fb6e9c:"1","408829bd":"6","1d6d4797":"12","935f2afb":"53","9f319605":"63",f189ca9f:"192",c7a044bb:"217",f2717f8e:"250","9528ac88":"315","2d429218":"502","3829cf1d":"537","0c06bca3":"601",d569989b:"609","79d4be33":"626","386bfe51":"657","145746f5":"691","04a995e6":"785","23498fd5":"810",f90fa732:"1062","899aadcc":"1083",cfd53ea4:"1090","73c3bebc":"1211","25f2bd2a":"1213",f359a251:"1239",fabebe44:"1288","74df6a22":"1299",b61f6dc7:"1372","4d76887f":"1415",f750c690:"1419","5136ee31":"1446","4dff184a":"1481","8dd7cee0":"1486",b21dd8a7:"1494",c977dfe8:"1506",ffe9c3c9:"1529","33b0bcab":"1585",b336bb09:"1592","7fbac68a":"1598",fa343ad1:"1678",f7191335:"1686",a5002e4a:"1703","0df78d26":"1723","987d08ef":"1748","9e6341e5":"1774",d9ef69a7:"1786","48074a08":"1825","78e1e977":"1872","1ed3671a":"1953",df154d69:"1957",f47489cd:"1966","0cb62240":"1979","4f031749":"2008",dd32e389:"2042","84f79495":"2078","21877fa5":"2117",ecb495b7:"2136","1646726c":"2169","6151e7ce":"2194",f3027c84:"2242",da9f79cb:"2248","493c7fdf":"2354","8d3a1bf8":"2399",d6d2b2d5:"2483","9a101178":"2505","7c78c461":"2507","918b38b6":"2508","863c4753":"2552",db0b42b0:"2609",e2e89062:"2633",f4130007:"2665",ece9fdae:"2677",f3bde756:"2704",c2c6a3a6:"2712","78868b16":"2754","9e3f6a8a":"2758","7d54ab5a":"2791","5d69d9d4":"2884",f4200fe5:"2909","2be0d940":"2914","2ea50c63":"2949",af40287e:"3066","85afe03a":"3132","8a8a7d05":"3262",e31fc461:"3330","3497b7c6":"3332","32dac8d4":"3347","7ccc428f":"3348",f14351c1:"3356","5c90fc9b":"3484","41b7b3e8":"3513",d5909206:"3554","21899dd2":"3599",f137ce68:"3620","75a6958b":"3635",f1585bfb:"3665",b0cbc1d4:"3667",b225a2ce:"3668",dbbd9e76:"3669",bea375d6:"3757",ff6596ea:"3842",cda87995:"3933",fac80962:"3944",f8518919:"3945",ec3b6a32:"4004",eef3f1dd:"4097","702d5d94":"4105",a7c27f4d:"4174",c4f5d8e4:"4195","19ed4d4c":"4355",f2c21b54:"4363",c662f00a:"4379","991ceaa9":"4428","4d9b9869":"4445",f4003c83:"4476",a7b37b86:"4507","1ae2b102":"4537","3e56470e":"4541","295fff6c":"4543","694e7470":"4566","48d75399":"4620","54338ffb":"4634",f41c4e9d:"4666","43ee4f22":"4672","1dc05242":"4696",f0855ff9:"4909",c1bbdb2a:"4916","320c8a05":"5005","7e9389ad":"5011",c41801b5:"5013",db039c7f:"5103",d27ae88d:"5157","31bd35e0":"5281",b3719d54:"5422",f7acb151:"5483","1882e65d":"5492","0c68fb82":"5526",d6b0148d:"5548","9e2042f5":"5651",b9b4ec9e:"5704",fbf58567:"5989",c7c5ba1a:"6104","32e8da05":"6140",d01f45b7:"6220",a29dc56e:"6253","452ad91d":"6255",a62d9768:"6277",bbba852d:"6294",dbc4065c:"6312","43cda9e8":"6357",ceaa29cb:"6373","13b7bafa":"6585",ca9fe671:"6598",f2521980:"6689",fea93377:"6730","666ba125":"6776","279fb1d6":"6827","60e73337":"6862","29a046f3":"6918",ccc1222e:"6920","4642ab5c":"6946","543610b9":"7022",feea648c:"7061","4a8eb552":"7202",f44ed8f8:"7211",fbea1897:"7280","6f1a81b8":"7288",db3d6c4d:"7313",bb8b1738:"7368",bd701914:"7388",a5b3561d:"7466",d3db551a:"7485",b940de31:"7633",c07c2447:"7654",cc44e8fd:"7683","591eca19":"7714","41871d53":"7778","8b670b2b":"7799","9e76b49d":"7823","0a3f0c9b":"7837",d6a97e7e:"7858","33bbe353":"7908","1a4e3797":"7920",ad762f86:"7940",a2800a5b:"7961",fecdcc34:"8034","69b97ecd":"8067","77a2b809":"8080","8247eba8":"8115","694672cd":"8138","386099fc":"8139","9a679a70":"8178","30d868e8":"8215",ffd76171:"8236","12331e8b":"8270",c91a9c06:"8355","824749c6":"8361",e4f3654b:"8618","71ed82b9":"8648",a74a59a0:"8702","83d4859f":"8757",ab138bf8:"8791","3bd77df4":"8831",d3a753cf:"8855","766a10e1":"8860","98a30fd8":"8866","31c99aa1":"8876",b48c599b:"8901",b38833d4:"9062","60738e36":"9071",a4b71220:"9112","924835c1":"9126","64c7e1cc":"9217","2f3b630e":"9226","8167490d":"9247",e344dd79:"9276","6d2ffbf3":"9315","131c7f55":"9323",a996ffc3:"9383",c7a2145e:"9478","1be78505":"9514",f95cee6f:"9548","32c9742a":"9626",dc776cbc:"9764",cd144357:"9779","1e15616a":"9802","51fbc2c9":"9806","14eb3368":"9817",b0cb055f:"9905","482bfb5c":"9993"}[e]||e,r.p+r.u(e)},(()=>{var e={1303:0,532:0};r.f.j=(f,c)=>{var a=r.o(e,f)?e[f]:void 0;if(0!==a)if(a)c.push(a[2]);else if(/^(1303|532)$/.test(f))e[f]=0;else{var d=new Promise(((c,d)=>a=e[f]=[c,d]));c.push(a[2]=d);var b=r.p+r.u(f),t=new Error;r.l(b,(c=>{if(r.o(e,f)&&(0!==(a=e[f])&&(e[f]=void 0),a)){var d=c&&("load"===c.type?"missing":c.type),b=c&&c.target&&c.target.src;t.message="Loading chunk "+f+" failed.\n("+d+": "+b+")",t.name="ChunkLoadError",t.type=d,t.request=b,a[1](t)}}),"chunk-"+f,f)}},r.O.j=f=>0===e[f];var f=(f,c)=>{var a,d,[b,t,o]=c,n=0;if(b.some((f=>0!==e[f]))){for(a in t)r.o(t,a)&&(r.m[a]=t[a]);if(o)var i=o(r)}for(f&&f(c);n - + @@ -30,7 +30,7 @@ communication channels of core team members, and gain access to Polkadot events.

There are many ways you can get involved in expanding Polkadot’s ecosystem, such as:

  • Contributing code and documentation related to the ecosystem
  • Speaking about Polkadot at events, workshops, and meetups
  • Writing blog posts
  • Representing Polkadot in your region
  • Mentoring and onboarding newcomers
  • Identifying partnerships and opportunities for the Polkadot ecosystem
  • Participating in calls and tasks that help drive the ecosystem forward

How to apply:

To become a Polkadot Ambassador, please fill out your application here.

Find out more about the programme and how to join here.

- + \ No newline at end of file diff --git a/docs/bug-bounty.html b/docs/bug-bounty.html index e8c7fe217411..f077c5ae68a8 100644 --- a/docs/bug-bounty.html +++ b/docs/bug-bounty.html @@ -19,7 +19,7 @@ - + @@ -43,7 +43,7 @@ not to be disruptive or harmful to our users or us. Otherwise, your actions might be interpreted as an attack rather than an effort to be helpful.

How to report a bug

Please follow the instructions at web3.foundation/security-report/.

- + \ No newline at end of file diff --git a/docs/build-data.html b/docs/build-data.html index 43cf36508e56..f946b9199f3d 100644 --- a/docs/build-data.html +++ b/docs/build-data.html @@ -19,7 +19,7 @@ - + @@ -50,7 +50,7 @@ for details on how to access the data.

Polkadot-based Explorers

As you can imagine, blockchain explorers also offer data analytics through an interface where users can examine common data points.

Some block explorers in the Polkadot ecosystem are listed on the tools page.

- + \ No newline at end of file diff --git a/docs/build-guide.html b/docs/build-guide.html index 659303b455f5..68099532968e 100644 --- a/docs/build-guide.html +++ b/docs/build-guide.html @@ -19,7 +19,7 @@ - + @@ -139,7 +139,7 @@ ecosystem contains various SDKs to tap into the relay chain and parachains.

For front-end applications, several options exist for interfacing with Substrate-based chains (parachains, relay chains, etc.) and smart contracts. These often will interact with the RPC of a Substrate node:

Promise and RxJS APIs around Polkadot and Substrate based chains via RPC calls. It is dynamically generated based on what the Substrate runtime provides in terms of metadata. Full documentation & examples available here.

For a full list of tools please take a look here: Tools, APIs and Languages

- + \ No newline at end of file diff --git a/docs/build-hackathon.html b/docs/build-hackathon.html index 8cb8d8f223a0..91439e5f3435 100644 --- a/docs/build-hackathon.html +++ b/docs/build-hackathon.html @@ -19,7 +19,7 @@ - + @@ -46,7 +46,7 @@ that can be a feature of you hackathon or suggested prerequisite for those joining to use.

Support / Contact

If you have any questions regarding organizing a hackathon, please free feel to contact us by email or ask us via Element chat.

- + \ No newline at end of file diff --git a/docs/build-hrmp-channels.html b/docs/build-hrmp-channels.html index 72f41a01f824..0c50a0254631 100644 --- a/docs/build-hrmp-channels.html +++ b/docs/build-hrmp-channels.html @@ -19,7 +19,7 @@ - + @@ -59,7 +59,7 @@ encourage the community to vote on this, highlighting the benefits for your chain, use cases enabled with this submission, among other things. After the enactment period is over, both chains will authorize the channel.

- + \ No newline at end of file diff --git a/docs/build-index.html b/docs/build-index.html index 7e403ed6ec48..6d625dba77c2 100644 --- a/docs/build-index.html +++ b/docs/build-index.html @@ -19,7 +19,7 @@ - + @@ -39,7 +39,7 @@ are building.

Grants

  • Grants - Information regarding grants and funding sources available in the Polkadot ecosystem.

PCPs

Polkadot Contracts Proposals (PCPs) are standards for smart contracts in the Polkadot ecosystem.

Hackathon

- + \ No newline at end of file diff --git a/docs/build-integrate-assets.html b/docs/build-integrate-assets.html index 6df7fdb64412..bd25bccb0519 100644 --- a/docs/build-integrate-assets.html +++ b/docs/build-integrate-assets.html @@ -19,7 +19,7 @@ - + @@ -127,7 +127,7 @@ can be claimed).

A great resource to learn more about Error Management in XCM is the Polkadot blog post from Gavin Wood, XCM Part III: Execution and Error Management.

- + \ No newline at end of file diff --git a/docs/build-integration.html b/docs/build-integration.html index a61036874b09..9c6a0823a8ae 100644 --- a/docs/build-integration.html +++ b/docs/build-integration.html @@ -19,7 +19,7 @@ - + @@ -42,7 +42,7 @@ transactions. Parity and Web3 Foundation will be able to provide the best support if you use these tools.

If your team would like support, join some of our community channels or contact support@polkadot.network.

- + \ No newline at end of file diff --git a/docs/build-node-interaction.html b/docs/build-node-interaction.html index f743f071a432..772095d3aa09 100644 --- a/docs/build-node-interaction.html +++ b/docs/build-node-interaction.html @@ -19,7 +19,7 @@ - + @@ -57,7 +57,7 @@ block by the block author.

{
"number":"7409038",
"hash":"0x0e9610f3c89fac046ef83aa625ad414d5403031faa026b7ab2a918184e389968",
"parentHash":"0xba308541eb207bc639f36d392706309a031c21622f883fb07411060389c5ffdd",
"stateRoot":"0x4426383b64a944ad7222a4019aefd558c749da0c6920cfcdfd587741d54abbe2",
"extrinsicsRoot":"0x74749e5f5aeb610bc23fd6d8d79fd8bbf5e4b6053f70ba94ea6b3cc271df4b3a",
"authorId":"Fvvz6Ej1D5ZR5ZTK1vE1dCjBvkbxE1VncptEtmFaecXe4PF",
"logs":[
{
"type":"PreRuntime",
"index":"6",
"value":[
"BABE",
"0x023a0200009c7d191000000000"
]
},
{
"type":"Seal",
"index":"5",
"value":[
"BABE",
"0x2296a50fa4fea3a46a95ad5b1f09de76d22c6ed3dc6755718c976e2d14c63e4dd3c6257813d9bdc03bb180b1e20393f1558ae1204982e5c7570df393e11f908b"
]
}
],
"onInitialize":{
"events":[

]
},
"extrinsics":[
{
"method":{
"pallet":"timestamp",
"method":"set"
},
"signature":null,
"nonce":null,
"args":{
"now":"1620636072000"
},
"tip":null,
"hash":"0x8b853f49b6543e4fcbc796ad3574ea5601d2869d80629e080e501da4cb7b74b4",
"info":{

},
"events":[
{
"method":{
"pallet":"system",
"method":"ExtrinsicSuccess"
},
"data":[
{
"weight":"185253000",
"class":"Mandatory",
"paysFee":"Yes"
}
]
}
],
"success":true,
"paysFee":false
},
{
"method":{
"pallet":"balances",
"method":"transfer"
},
"signature":{
"signature":"0x94b63112648e8e692f0076fa1ccab3a04510c269d1392c1df2560503865e144e3afd578f1e37e98063b64b98a77a89a9cdc8ade579dcac0984e78d90646a052001",
"signer":{
"id":"Gr5sBB1EgdmQ7FG3Ud2BdECWQTMDXNgGPfdHMMtDsmT4Dj3"
}
},
"nonce":"12",
"args":{
"dest":{
"id":"J6ksma2jVeHRcRoYPZBkJRzRbckys7oSmgvjKLrVbj1U8bE"
},
"value":"100000000"
},
"tip":"0",
"hash":"0xfbc5e5de75d64abe5aa3ee9272a3112b3ce53710664f6f2b9416b2ffda8799c2",
"info":{
"weight":"201217000",
"class":"Normal",
"partialFee":"2583332634"
},
"events":[
{
"method":{
"pallet":"balances",
"method":"Transfer"
},
"data":[
"Gr5sBB1EgdmQ7FG3Ud2BdECWQTMDXNgGPfdHMMtDsmT4Dj3",
"J6ksma2jVeHRcRoYPZBkJRzRbckys7oSmgvjKLrVbj1U8bE",
"100000000"
]
},
{
"method":{
"pallet":"balances",
"method":"Deposit"
},
"data":[
"Fvvz6Ej1D5ZR5ZTK1vE1dCjBvkbxE1VncptEtmFaecXe4PF",
"2583332634"
]
},
{
"method":{
"pallet":"system",
"method":"ExtrinsicSuccess"
},
"data":[
{
"weight":"201217000",
"class":"Normal",
"paysFee":"Yes"
}
]
}
],
"success":true,
"paysFee":true
},
{
"method":{
"pallet":"utility",
"method":"batch"
},
"signature":{
"signature":"0x8aa2fc3f0cff52533745679523705720cff42d0e7258b9797feed193deb0ca73474726e148af0a0b096d44c07f20e5292819ec92279cffb2897e95cc337e638e",
"signer":{
"id":"F4gmSZGiM9pMYPsKW7xnGktDr4zRmN2jqy5Ze678y9YWR7F"
}
},
"nonce":"687",
"args":{
"calls":[
{
"method":{
"pallet":"staking",
"method":"payoutStakers"
},
"args":{
"validator_stash":"Cfish3zJiFnTvR9jscCap7imeA9ep3cH1wZfcZwAp2gdZHo",
"era":"2229"
}
},
{
"method":{
"pallet":"staking",
"method":"payoutStakers"
},
"args":{
"validator_stash":"Cfish3zJiFnTvR9jscCap7imeA9ep3cH1wZfcZwAp2gdZHo",
"era":"2230"
}
},
{
"method":{
"pallet":"staking",
"method":"payoutStakers"
},
"args":{
"validator_stash":"Cfish3zJiFnTvR9jscCap7imeA9ep3cH1wZfcZwAp2gdZHo",
"era":"2231"
}
},
{
"method":{
"pallet":"staking",
"method":"payoutStakers"
},
"args":{
"validator_stash":"DifishR4auphofhzxsy2aupgYo4NaUECH7qgt71CgiB2o6P",
"era":"2231"
}
},
{
"method":{
"pallet":"staking",
"method":"payoutStakers"
},
"args":{
"validator_stash":"J1fishfH94nFZLNScHgC2HorWpFD2xdPxd96wtTCHLvKxfa",
"era":"2231"
}
}
]
},
"tip":"0",
"hash":"0x69171ec3f4e5e4dfd27f4d1c5b5dbc884932c5d9a078c84495bb7ab875c8785f",
"info":{
"weight":"629782467000",
"class":"Normal",
"partialFee":"5150837715"
},
"events":[
{
"method":{
"pallet":"staking",
"method":"Reward"
},
"data":[
"Cfish3zJiFnTvR9jscCap7imeA9ep3cH1wZfcZwAp2gdZHo",
"40730624074"
]
},
{
"method":{
"pallet":"staking",
"method":"Reward"
},
"data":[
"FhLcXuFkTwyc3o9K82VBahpain1YHWyGeNMDTTyeDJKfm5b",
"4296071738"
]
},
{
"method":{
"pallet":"staking",
"method":"Reward"
},
"data":[
"F1NyXFUayqmVMdjNK45hcaTCE3JiqdU83sEGhQ3HQXn2Rpq",
"1770904403"
]
},

// ...

{
"method":{
"pallet":"utility",
"method":"BatchCompleted"
},
"data":[

]
},
{
"method":{
"pallet":"balances",
"method":"Deposit"
},
"data":[
"Fvvz6Ej1D5ZR5ZTK1vE1dCjBvkbxE1VncptEtmFaecXe4PF",
"5150837715"
]
},
{
"method":{
"pallet":"system",
"method":"ExtrinsicSuccess"
},
"data":[
{
"weight":"629782467000",
"class":"Normal",
"paysFee":"Yes"
}
]
}
],
"success":true,
"paysFee":true
}
],
"onFinalize":{
"events":[

]
},
"finalized":true
}
The JS number type is a 53 bit precision float

There is no guarantee that the numerical values in the response will have a numerical type. Any numbers larger than 2**53-1 will have a string type.

Submitting a Transaction

Submit a serialized transaction using the transaction endpoint with an HTTP POST request.

import requests
import json

url = 'http://127.0.0.1:8080/transaction/'
tx_headers = {'Content-type' : 'application/json', 'Accept' : 'text/plain'}
response = requests.post(
url,
data='{"tx": "0xed0...000"}', # A serialized tx.
headers=tx_headers
)
tx_response = json.loads(response.text)

If successful, this endpoint returns a JSON with the transaction hash. In case of error, it will return an error report, e.g.:

{
"error": "Failed to parse a tx" | "Failed to submit a tx",
"cause": "Upstream error description"
}
- + \ No newline at end of file diff --git a/docs/build-node-management.html b/docs/build-node-management.html index d91a2c06c81a..11bb9541f7ce 100644 --- a/docs/build-node-management.html +++ b/docs/build-node-management.html @@ -19,7 +19,7 @@ - + @@ -67,7 +67,7 @@ has a monitor node metrics tutorial which uses this endpoint.

- + \ No newline at end of file diff --git a/docs/build-open-source.html b/docs/build-open-source.html index e1dba8d9ab5e..29f3cad20ca9 100644 --- a/docs/build-open-source.html +++ b/docs/build-open-source.html @@ -19,7 +19,7 @@ - + @@ -34,7 +34,7 @@ the tech stack.

❗ All technologies listed above need to be open-source. Ideally, the links lead directly to the code.

Note: You will need a GitHub account to suggest changes or open issues. If you do not have one, you may sign up for free.

- + \ No newline at end of file diff --git a/docs/build-oracle.html b/docs/build-oracle.html index 42d26f015823..237115f328ec 100644 --- a/docs/build-oracle.html +++ b/docs/build-oracle.html @@ -19,7 +19,7 @@ - + @@ -49,7 +49,7 @@ ecosystem develops and oracle parachains begin to appear, this article will be updated with a comparison of the different solutions and the benefits and drawbacks that each provide.

- + \ No newline at end of file diff --git a/docs/build-pdk.html b/docs/build-pdk.html index f4057d1573f2..5000032575dd 100644 --- a/docs/build-pdk.html +++ b/docs/build-pdk.html @@ -19,7 +19,7 @@ - + @@ -188,7 +188,7 @@ transition into a Relay Chain.

For more information on how parathread per-block auctions work, see the more detailed parathread page.

Resources

- + \ No newline at end of file diff --git a/docs/build-protocol-info.html b/docs/build-protocol-info.html index 3516c5b0dfe4..35013c8615cc 100644 --- a/docs/build-protocol-info.html +++ b/docs/build-protocol-info.html @@ -19,7 +19,7 @@ - + @@ -173,7 +173,7 @@ to cancel a runtime upgrade. Using a finalized depth of ten blocks should be safe.

Note that block production and finality are isolated processes in Polkadot, and the chain can have a long unfinalized head.

Do users need to interact with any smart contracts?

No, users interact directly with the chain's logic.

Does Polkadot have state rent?

No, Polkadot uses the existential deposit to prevent dust accounts and other economic mechanisms like locking or reserving tokens for operations that utilize state.

What is an external source to see the current chain height?

- + \ No newline at end of file diff --git a/docs/build-smart-contracts.html b/docs/build-smart-contracts.html index 0f5b9c61e5d1..3f89cd5f1a72 100644 --- a/docs/build-smart-contracts.html +++ b/docs/build-smart-contracts.html @@ -19,7 +19,7 @@ - + @@ -144,7 +144,7 @@ Substrate and Polkadot StackExchange to ask their questions. As always, keep up to date with Polkadot and Kusama by following the social channels.

- + \ No newline at end of file diff --git a/docs/build-ss58-registry.html b/docs/build-ss58-registry.html index 9f4894604cd4..5ef453a50cba 100644 --- a/docs/build-ss58-registry.html +++ b/docs/build-ss58-registry.html @@ -19,7 +19,7 @@ - + @@ -27,7 +27,7 @@
- + \ No newline at end of file diff --git a/docs/build-storage.html b/docs/build-storage.html index d068b4730a4b..332ea6d559eb 100644 --- a/docs/build-storage.html +++ b/docs/build-storage.html @@ -19,7 +19,7 @@ - + @@ -59,7 +59,7 @@ directory info will not be visible if you switch to a new browser or clear the browser cache. The storage module allows you to export file directory info from the current browser and import it to the new browser.

manage file dir

note

These above images are taken from this pull request

- + \ No newline at end of file diff --git a/docs/build-substrate.html b/docs/build-substrate.html index 656f62fba4a5..40f17f82b639 100644 --- a/docs/build-substrate.html +++ b/docs/build-substrate.html @@ -19,7 +19,7 @@ - + @@ -54,7 +54,7 @@ end-users to interact with applications connected to multiple blockchains or connect their own blockchains to applications that support it.

note

Substrate Connect will auto-detect whether a user is using the extension. If not, the Wasm light client will be created in-page for them.

Resources

- + \ No newline at end of file diff --git a/docs/build-tools-index.html b/docs/build-tools-index.html index 44b973267fc4..d5145a5751e5 100644 --- a/docs/build-tools-index.html +++ b/docs/build-tools-index.html @@ -19,7 +19,7 @@ - + @@ -104,7 +104,7 @@ Squid Archive Registry
  • Polka-store - A tool which scans a Substrate chain and stores balance-relevant transactions in an SQLite database.
  • Substrate-graph - A compact indexer for Substrate based nodes providing a GraphQL interface.
  • - + \ No newline at end of file diff --git a/docs/build-transaction-construction.html b/docs/build-transaction-construction.html index bff5ebb3bc6e..4228b75f98e1 100644 --- a/docs/build-transaction-construction.html +++ b/docs/build-transaction-construction.html @@ -19,7 +19,7 @@ - + @@ -59,7 +59,7 @@ author_submitAndWatchExtrinsic, the latter of which will subscribe you to events to be notified as a transaction gets validated and included in the chain.

    Notes

    Some addresses to use in the examples. See Subkey documentation.

    $ subkey --network polkadot generate
    Secret phrase `pulp gaze fuel ... mercy inherit equal` is account:
    Secret seed: 0x57450b3e09ba4598 ... ... ... ... ... ... ... .. 219756eeba80bb16
    Public key (hex): 0x2ca17d26ca376087dc30ed52deb74bf0f64aca96fe78b05ec3e720a72adb1235
    Account ID: 0x2ca17d26ca376087dc30ed52deb74bf0f64aca96fe78b05ec3e720a72adb1235
    SS58 Address: 121X5bEgTZcGQx5NZjwuTjqqKoiG8B2wEAvrUFjuw24ZGZf2

    $ subkey --network polkadot generate
    Secret phrase `exercise auction soft ... obey control easily` is account:
    Secret seed: 0x5f4bbb9fbb69261a ... ... ... ... ... ... ... .. 4691ed7d1130fbbd
    Public key (hex): 0xda04de6cd781c98acf0693dfb97c11011938ad22fcc476ed0089ac5aec3fe243
    Account ID: 0xda04de6cd781c98acf0693dfb97c11011938ad22fcc476ed0089ac5aec3fe243
    SS58 Address: 15vrtLsCQFG3qRYUcaEeeEih4JwepocNJHkpsrqojqnZPc2y
    - + \ No newline at end of file diff --git a/docs/builders-program.html b/docs/builders-program.html index 4fc2bc542118..8bb2c7817784 100644 --- a/docs/builders-program.html +++ b/docs/builders-program.html @@ -19,7 +19,7 @@ - + @@ -46,7 +46,7 @@ form of tooling, UI, middleware, bridges, and more.

    Application track

    This track supports builders who are building on top of Substrate-based chains.

    Check out the official Substrate Builders Program site for more information and steps on how to apply.

    - + \ No newline at end of file diff --git a/docs/community-index.html b/docs/community-index.html index b839ee350b2a..96fdb875f158 100644 --- a/docs/community-index.html +++ b/docs/community-index.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/community.html b/docs/community.html index 232ea30555e3..bae92c2aa33c 100644 --- a/docs/community.html +++ b/docs/community.html @@ -19,7 +19,7 @@ - + @@ -60,7 +60,7 @@ development and where there's room for your contributions.
  • Teams Building on Polkadot - Community maintained list of teams building on Polkadot and/or Substrate. (Note that this may contain inaccuracies, as it's unofficial).
  • - + \ No newline at end of file diff --git a/docs/contributing.html b/docs/contributing.html index c246213ea876..36e244c87f51 100644 --- a/docs/contributing.html +++ b/docs/contributing.html @@ -19,7 +19,7 @@ - + @@ -58,7 +58,7 @@ the official crowdin knowledge base as well.




    The following shows an example in Arabic. You can type in your desired translation for each section in the provided area, while using the suggestions generated by the crowdin built-in translator.


    Make sure to save your translation.

    - + \ No newline at end of file diff --git a/docs/contributors.html b/docs/contributors.html index 0c6826ba1cfa..f8c550ba2d1d 100644 --- a/docs/contributors.html +++ b/docs/contributors.html @@ -19,7 +19,7 @@ - + @@ -95,7 +95,7 @@ for the Polkadot protocol. He contributed in creating written content and example applications that demonstrate how to use these new technologies.

    You can now find Logan leading efforts to define the prediction market space at Zeitgeist.

    - + \ No newline at end of file diff --git a/docs/dashboards-index.html b/docs/dashboards-index.html index 236e74073977..18efd041a787 100644 --- a/docs/dashboards-index.html +++ b/docs/dashboards-index.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/dev-heroes.html b/docs/dev-heroes.html index 500c6946d9ab..a76ea3abaab6 100644 --- a/docs/dev-heroes.html +++ b/docs/dev-heroes.html @@ -19,7 +19,7 @@ - + @@ -40,7 +40,7 @@ open source technology stack list and contribute with a pull request, an issue, or find and fix bugs.

  • Create content: Write a blog post, record a video tutorial, and write a Twitter thread. Share about your latest coding success, something you learned and are excited about.

  • Speak at events: Do a workshop or talk at meetups and conferences.

  • - + \ No newline at end of file diff --git a/docs/faq.html b/docs/faq.html index 8f271bcb97b0..2e9eb5280189 100644 --- a/docs/faq.html +++ b/docs/faq.html @@ -19,7 +19,7 @@ - + @@ -189,7 +189,7 @@ fee calculation page in the Substrate documentation for more detailed information.

    Answered by Gav series

    The "Answered by Gav" series is a collection of posts uploaded to Reddit of questions that have been asked in the Polkadot Watercooler Riot channel and answered by Polkadot founder Gavin Wood.

    - + \ No newline at end of file diff --git a/docs/general-index.html b/docs/general-index.html index 3fd4e944509d..cc474c850f73 100644 --- a/docs/general-index.html +++ b/docs/general-index.html @@ -19,13 +19,13 @@ - +
    - + \ No newline at end of file diff --git a/docs/getting-started.html b/docs/getting-started.html index 3fb7fe36b94e..af40b7414272 100644 --- a/docs/getting-started.html +++ b/docs/getting-started.html @@ -19,7 +19,7 @@ - + @@ -111,7 +111,7 @@ about Polkadot.
  • Sample Applications - Sample applications that are built on or currently being built for Polkadot.
  • Contributing Guide - Rules for contributing to the wiki.
  • Polkadot Knowledge Base - Troubleshooting resources for specific errors and problems.
  • - + \ No newline at end of file diff --git a/docs/glossary.html b/docs/glossary.html index 6ead88d81768..0c9465d59ce8 100644 --- a/docs/glossary.html +++ b/docs/glossary.html @@ -19,7 +19,7 @@ - + @@ -287,7 +287,7 @@ transaction weights and fees.

    Witness

    Cryptographic proof statements of data validity.

    Whitelist Pallet

    Allows one Origin to escalate the privilege level of another Origin for a certain operation. In terms of OpenGov, it allows the Fellowship to authorise a new origin (which we will call Whitelisted-Root) to be executed with Root-level privileges.

    - + \ No newline at end of file diff --git a/docs/grants.html b/docs/grants.html index dd4b0f3026ea..f0ed52fbadb0 100644 --- a/docs/grants.html +++ b/docs/grants.html @@ -19,7 +19,7 @@ - + @@ -39,7 +39,7 @@ Foundation has considered new ways to distribute KSM for people who need KSM to build.

    If you are interested in obtaining KSM for building or research, you can apply through the Treasury or receive a tip for doing something cool in the community.

    Other Grant Programs

    Below is a list of other grant programs in the Polkadot/Substrate ecosystem.

    - + \ No newline at end of file diff --git a/docs/how-to-dyor.html b/docs/how-to-dyor.html index 70de4bbfe548..dc98fd9bec91 100644 --- a/docs/how-to-dyor.html +++ b/docs/how-to-dyor.html @@ -19,7 +19,7 @@ - + @@ -222,7 +222,7 @@ aims to bring to the ecosystem.

    This does not fall under fact-checking and verifying claims, but it is important to mention: fully understanding what something does and its prospective impact is an integral part of making an informed decision, so do not overlook it.

    - + \ No newline at end of file diff --git a/docs/kusama-adversarial-cheatsheet.html b/docs/kusama-adversarial-cheatsheet.html index fe5cb04b5812..71c78e5e9e90 100644 --- a/docs/kusama-adversarial-cheatsheet.html +++ b/docs/kusama-adversarial-cheatsheet.html @@ -19,14 +19,14 @@ - +

    Adversarial Cheatsheet

    Expect things to break on Kusama. To help you break some things, take a look at the following threat model.

    Hacker wants to …Security promise that should prevent the hackHacking IncentiveHacking DamageHacking value details
    Double spend tokens via getting the clients to accept a different chainIntegrity (System-wide)HighHighIf attackers are able to double spend tokens, they are able to get services without paying for them. This gives them a high monetary incentive to execute the attack.
    Cause system to mint tokens to his own accountIntegrity (System-wide) MediumLow - MediumIf an attacker is able to craft transactions that mint tokens to their account, then this provides a high monetary incentive to execute this attack.
    Validate malicious blocks to double spend tokensAvailability (System-wide) HighMediumIf an attacker is able to double spend tokens, they are able to get services without paying for them. This gives them a high monetary incentive to execute the attack.
    Undermine consensus mechanism to split chainIntegrity (System-wide)HighHigh"If an attacker is able to double spend tokens, they are able to get services without paying for them. This gives them a high monetary incentive to execute the attack. Betting on decrease in value of the cryptocurrency or competitors want to damage the reputation, so that the value of their blockchain increases.
    Tamper/manipulate blockchain history to invalidate transactions (e.g. a voting result)Integrity (System-wide)MediumMedium - HighAttacker can rollback undesired transactions by intentionally invalidating the block where transaction has happened. Attacker can force a governance decision (or even an on-chain update) that favors them.
    Undermine blockchain or consensus mechanism to damage the ecosystem's reputationAvailability (System-wide)HighHighBetting on decrease in value of the cryptocurrency or competitors want to damage the reputation, so that the value of their blockchain increases
    CensorshipAvailability (System-wide)MediumHighHackers are able to block undesirable types of transactions (e.g. industry competitor transactions or referendum votes). This could be achieved by colluding with other stakeholders or by otherwise obtaining more voting power.
    Deanonymize usersConfidentiality (Node)MediumMediumParties that want to de-anonymize users can use the information to oppress the opposition (e.g. political activists).
    Steal token from nodeIntegrity (Node)HighHighAttackers that are able to steal tokens from nodes can claim assets for themselves, which gives them a high monetary incentive to execute the attack.
    Steal token from node by leaking credentialsConfidentiality (Node)HighHighAttackers that are able to steal tokens from nodes can claim assets for themselves, which gives them a high monetary incentive to execute the attack.
    Prevent node from accessing the Polkadot networkAvailability (Node)LowLow - MediumRun a targeted denial-of-service attack out of revenge, monetary interests (in case of a competing coin exchange, etc.).
    Defraud other participantsIntegrity (Node)MediumLow - MediumAttacker can abuse other participants’ misunderstanding of Polkadot's security guarantees to defraud them. Also, if the reward for calling out bad behavior can be set up so that it is higher than the according punishment, a set of self-handled nodes can be set up to generate a source cycle. Other participants are not needed for this attack.
    Defraud other participantsIntegrity (System-wide)HighHighAn attacker could abuse bugs in Polkadot's economic system to defraud other participants. For example, an attacker could exploit a logic bug to not pay transaction fees.
    - + \ No newline at end of file diff --git a/docs/kusama-bug-bounty.html b/docs/kusama-bug-bounty.html index 03f739c861f3..4a523a5d964f 100644 --- a/docs/kusama-bug-bounty.html +++ b/docs/kusama-bug-bounty.html @@ -19,7 +19,7 @@ - + @@ -44,7 +44,7 @@ not to be disruptive or harmful to our users or us. Otherwise, your actions might be interpreted as an attack rather than an effort to be helpful.

    How to report a bug

    Please follow the instructions at web3.foundation/security-report/.

    - + \ No newline at end of file diff --git a/docs/kusama-claims.html b/docs/kusama-claims.html index 6388d0f710c1..6f5b183d7503 100644 --- a/docs/kusama-claims.html +++ b/docs/kusama-claims.html @@ -19,7 +19,7 @@ - + @@ -98,7 +98,7 @@ Polkadot Support page.

    Third Party Claims Processes

    We do not recommend using a third-party app or process to perform your claim or acquire KSM.

    Claiming using a third-party process can lead to the loss of your allocation; therefore, we cannot recommend using any third-party apps to do so. Manually specifying your transaction data, as specified in our claims process, is the only way to be certain you will receive your allocation.

    - + \ No newline at end of file diff --git a/docs/kusama-coc.html b/docs/kusama-coc.html index e467462477d3..6010a484ef4a 100644 --- a/docs/kusama-coc.html +++ b/docs/kusama-coc.html @@ -19,7 +19,7 @@ - + @@ -42,7 +42,7 @@ on feedback from the Kusama participants and/or the Polkadot community.

    Bugs

    Please understand that this network is, despite its success, an experiment with potential flaws, so it’s appreciated that community members help report any sort of exploits directly to the team before sharing publicly. Please see the bug bounty program.

    - + \ No newline at end of file diff --git a/docs/kusama-community.html b/docs/kusama-community.html index 03847128f8cc..42432fe897a7 100644 --- a/docs/kusama-community.html +++ b/docs/kusama-community.html @@ -19,7 +19,7 @@ - + @@ -42,7 +42,7 @@ for technical questions on building with Substrate.
  • Smart Contracts & Parity Ink! - A room to discuss developing Substrate smart contracts using Parity Ink!
  • Social

    Blogs and tutorials

    Newsletters

    - + \ No newline at end of file diff --git a/docs/kusama-getting-started.html b/docs/kusama-getting-started.html index 584ff450f5b6..87d4c80f4f6a 100644 --- a/docs/kusama-getting-started.html +++ b/docs/kusama-getting-started.html @@ -19,7 +19,7 @@ - + @@ -55,7 +55,7 @@ here.

    While Kusama does not support smart contracts natively, building apps on it is still possible (e.g. RMRK.app). If you're interested in diving deeper into proper development, however, check out the builders guide.

    Additional Resources:

    - + \ No newline at end of file diff --git a/docs/kusama-index.html b/docs/kusama-index.html index 13a6e9098e41..6a75a1816d85 100644 --- a/docs/kusama-index.html +++ b/docs/kusama-index.html @@ -19,7 +19,7 @@ - + @@ -27,7 +27,7 @@

    Kusama

    Polkadot's Canary Network

    Kusama is a canary network for Polkadot; an earlier release of the code that is available first and holds real economic value. For developers, Kusama is a proving ground for runtime upgrades, on-chain governance, and parachains.

    No Promises.

    Kusama has a dedicated Wiki guide. Click on the image below to access it.

    guide
    Kusama Guide
    - + \ No newline at end of file diff --git a/docs/kusama-parameters.html b/docs/kusama-parameters.html index a4d72db55be7..88a09b7a0db5 100644 --- a/docs/kusama-parameters.html +++ b/docs/kusama-parameters.html @@ -19,7 +19,7 @@ - + @@ -41,7 +41,7 @@ redirected into the Society's treasury to fund growth.

    Precision

    KSM have 12 decimals of precision. In other words, 1e12 (1_000_000_000_000, or one trillion) Plancks make up a single KSM.

    - + \ No newline at end of file diff --git a/docs/kusama-social-recovery.html b/docs/kusama-social-recovery.html index 15b225263a23..5366a68ff3f7 100644 --- a/docs/kusama-social-recovery.html +++ b/docs/kusama-social-recovery.html @@ -19,7 +19,7 @@ - + @@ -66,7 +66,7 @@ either go through the council or submit a public proposal. To learn more about governance, see here.

    Further Reading

    - + \ No newline at end of file diff --git a/docs/kusama-timeline.html b/docs/kusama-timeline.html index a14cdb43589b..f39102a2cad4 100644 --- a/docs/kusama-timeline.html +++ b/docs/kusama-timeline.html @@ -19,7 +19,7 @@ - + @@ -57,7 +57,7 @@ forkless upgradability provided by Substrate, chaos continues, and in the spirit of chaos, more teams are eager to deploy on Kusama. The path of Kusama deployment has paved the way to Polkadot's parachains as the technology became proven.

    - + \ No newline at end of file diff --git a/docs/learn-DOT.html b/docs/learn-DOT.html index 65d56116b90e..f0af8656dec2 100644 --- a/docs/learn-DOT.html +++ b/docs/learn-DOT.html @@ -19,7 +19,7 @@ - + @@ -92,7 +92,7 @@ through the Treasury. Alternatively, they can be obtained on the open market.

    Polkadot Mainnet DOT

    Polkadot Mainnet DOT are not freely given away. If you purchased DOT in the original 2017 offering, you may claim them via the Polkadot claims process. Alternatively, they are available on the open market.

    - + \ No newline at end of file diff --git a/docs/learn-account-abstraction.html b/docs/learn-account-abstraction.html index 2c187ac6a79a..a422ddcd294b 100644 --- a/docs/learn-account-abstraction.html +++ b/docs/learn-account-abstraction.html @@ -19,7 +19,7 @@ - + @@ -84,7 +84,7 @@ Bader Youssef - "Abstracting Away Account Abstraction on Polkadot"
  • Parity Blog Post by Joe Petrowski - "Building a Hot Wallet with Substrate Primitives"
  • - + \ No newline at end of file diff --git a/docs/learn-account-advanced.html b/docs/learn-account-advanced.html index c2b5896fea43..85a8cc7cd341 100644 --- a/docs/learn-account-advanced.html +++ b/docs/learn-account-advanced.html @@ -19,7 +19,7 @@ - + @@ -172,7 +172,7 @@ directly in the browser on the new one.

    This has been tested on Brave and Chrome, but not other browsers.

    1. Go to Polkadot-JS Apps
    2. Go to JavaScript console on the browser (Available in Developer Tools)
    3. Type in the command:
    JSON.stringify(localStorage)
    1. Copy and paste the returned string to a text editor and save the file.
    2. Check that the string you pasted begins and ends with a tick mark ('). If not, add one to the beginning and end.
    3. Save and send that file with the copied string to the new computer.
    4. On the new computer, go to Polkadot-JS Apps
    5. Open the Javascript console on the browser (Available in Developer Tools)
    6. Set a variable raw equal to the string from the text file
    raw = ... copy-pasted json from original computer ...
    1. Run the following code on the console:
    accounts = JSON.parse(raw);
    for (var key in accounts) {
    if (accounts.hasOwnProperty(key)) {
    val = JSON.stringify(accounts[key]).replace(/\\/g,'').slice(1,-1);
    console.log(key + " -> " + val);
    localStorage.setItem(key, val);
    }
    }
    1. Refresh Polkadot-JS App browser and check the Accounts and Addresses pages. All of your accounts and addresses should now be available.
    - + \ No newline at end of file diff --git a/docs/learn-account-generation.html b/docs/learn-account-generation.html index 9f3fd62bff02..9fd1f9c5f64f 100644 --- a/docs/learn-account-generation.html +++ b/docs/learn-account-generation.html @@ -19,7 +19,7 @@ - + @@ -141,7 +141,7 @@ encrypting/decrypting your wallet. If you cannot load a JSON file, please use the latest version of the wallet software. If you cannot load it, ensure that the wallet software uses the newest version of the Polkadot API.

    - + \ No newline at end of file diff --git a/docs/learn-account-multisig.html b/docs/learn-account-multisig.html index 3d4f9f46de5b..fdc300af9fe8 100644 --- a/docs/learn-account-multisig.html +++ b/docs/learn-account-multisig.html @@ -19,7 +19,7 @@ - + @@ -114,7 +114,7 @@ Check the "How to use a multisig account" in the support docs on how to decode the multisig call data.

    - + \ No newline at end of file diff --git a/docs/learn-accounts-index.html b/docs/learn-accounts-index.html index b898d510dc5c..afd42ae145d5 100644 --- a/docs/learn-accounts-index.html +++ b/docs/learn-accounts-index.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/learn-accounts.html b/docs/learn-accounts.html index 50e8c6dae71f..ffc03fc5123c 100644 --- a/docs/learn-accounts.html +++ b/docs/learn-accounts.html @@ -19,7 +19,7 @@ - + @@ -140,7 +140,7 @@ multi-signature accounts, including their use-cases.

    Resources

    - + \ No newline at end of file diff --git a/docs/learn-advanced-index.html b/docs/learn-advanced-index.html index dd76f0198fb9..827101c52a1e 100644 --- a/docs/learn-advanced-index.html +++ b/docs/learn-advanced-index.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/learn-architecture-index.html b/docs/learn-architecture-index.html index 59f9e4bf16b2..12a13b78edfc 100644 --- a/docs/learn-architecture-index.html +++ b/docs/learn-architecture-index.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/learn-architecture.html b/docs/learn-architecture.html index 0a44f16ae2e3..872810422d09 100644 --- a/docs/learn-architecture.html +++ b/docs/learn-architecture.html @@ -19,7 +19,7 @@ - + @@ -86,7 +86,7 @@ verify their validity (and later, their availability).


    Whiteboard Series

    For a video overview of the architecture of Polkadot watch the video below for the whiteboard interview with W3F researcher Alistair Stewart:

    Architecture Overview

    - + \ No newline at end of file diff --git a/docs/learn-archive-index.html b/docs/learn-archive-index.html index c42e372d1844..412764c4d060 100644 --- a/docs/learn-archive-index.html +++ b/docs/learn-archive-index.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/learn-assets-index.html b/docs/learn-assets-index.html index aa42e2e093e2..3630c7e1b6a0 100644 --- a/docs/learn-assets-index.html +++ b/docs/learn-assets-index.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/learn-assets.html b/docs/learn-assets.html index d4b57416a616..71565026cafe 100644 --- a/docs/learn-assets.html +++ b/docs/learn-assets.html @@ -19,7 +19,7 @@ - + @@ -126,7 +126,7 @@ create a 2-of-2 multisig from two pure proxies, and then set members from each group as proxies to those two accounts.

    - + \ No newline at end of file diff --git a/docs/learn-async-backing.html b/docs/learn-async-backing.html index cbe64a22d93e..82efc806a56c 100644 --- a/docs/learn-async-backing.html +++ b/docs/learn-async-backing.html @@ -19,7 +19,7 @@ - + @@ -29,46 +29,46 @@ sent to validators on the relay chain side for backing.

    What is backing?

    Backing refers to the process in which parablocks are verified by a subset of validators or backing groups. It is an important step in the validation process for parablocks, as it is the first line of defense in ensuring censorship resistance. Parablocks only need to be backed by one -validator, and as a consequence backing does not ensure parablock validity.

    Backed parablocks are sent to other validators for inclusion into the relay chain. Parablocks are +validator, and as a consequence, backing does not ensure parablock validity.

    Backed parablocks are sent to other validators for inclusion into the relay chain. Parablocks are included when validators have attested to having received erasure coded chunks of the parablock data. Note candidate receipts and not the parablocks themselves are included in relay -blocks (but for simplicity we just refer to parablocks as being included). From the time they are -generated, parablocks must be anchored to a relay chain block called relay parent. The relay -parent is an input to parablock candidate generation. It provides necessary context to build the -next parablock. Note that the relay parent of a parablock and the relay block including that -parablock are always different.

    Synchronous Backing

    Before diving into asynchronous backing, it is important to understand what synchronous backing is -and what its main limitations are. In synchronous backing, parablock generation is tightly coupled -to the relay chain's progression:

    1. A new parablock can be produced after including the previous one (i.e. every 12 seconds).
    2. Context to build the next parablock is drawn from the latest included parablock ancestor
    3. The relay parent must be the latest relay chain block.

    Because of (1) parablocks can be generated every other relay chain block (i.e. every 12 seconds). +blocks (but for simplicity, we refer to parablocks as being included). When generated, parablocks +must be anchored to a relay chain block called relay parent. The relay parent is an input to +parablock candidate generation. It provides the necessary context to build the next parablock. Note +that the relay parent of a parablock and the relay block including that parablock are always +different.

    Synchronous Backing

    Before diving into asynchronous backing, it is important to understand what synchronous backing is +and its main limitations. In synchronous backing, parablock generation is tightly coupled to the +relay chain's progression:

    1. A new parablock can be produced after including the previous one (i.e., every 12 seconds).
    2. Context to build the next parablock is drawn from the latest included parablock ancestor
    3. The relay parent must be the latest relay chain block.

    Because of (1) parablocks can be generated every other relay chain block (i.e., every 12 seconds). Because of (2) generation of parablock P can only start when P - 1 is included (there is no pipelining). Because of (3) execution time can take maximum 0.5 seconds as parablock P is rushing to be backed in the next 5.5 seconds (2 seconds needed for backing and the rest for -gossiping). Every parablock is backed in 6 seconds (one relay chain block), and included in the next -6 seconds (next relay chain block). Time from generation to inclusion is 12 seconds. This limits the -amount of data a collator can add to each parablock.

    Note that parablock generation will choose the most recently received relay block as a relay parent, -although with imperfect network that may not be the same as the true most recent relay block. So, in -general, if relay block R is the relay parent of parablock P, then P could be backed in -R + 1 and included in R + 2.

    sync-backing

    From left to right, parablock P1 is anchored to the relay parent R0 (showed with an x), backed -into the relay chain block R1, and included in R2. After the inclusion of P1, collators can start +gossiping). Every parablock is backed in 6 seconds (one relay chain block) and included in the next +6 seconds (next relay chain block). The time from generation to inclusion is 12 seconds. This limits +the amount of data a collator can add to each parablock.

    Parablock generation will choose the most recently received relay block as a relay parent, although +with an imperfect network that may differ from the true most recent relay block. So, in general, if +relay block R is the relay parent of parablock P, then P could be backed in R + 1 and +included in R + 2.

    sync-backing

    From left to right, parablock P1 is anchored to the relay parent R0 (showed with an x), backed +into the relay chain block R1, and included in R2. After including P1, collators can start generating P2 that must be anchored to the relay parent R2. Note that R2 will be the relay parent of -P2 if R2 is included on the relay chain and gossiped to the collator producing P2.

    Every collator also runs an attached relay chain full node

    The attached relay node receives relay blocks via gossip. Then the relay node talks to the parachain -node through the CollationGeneration subsystem. R2 is gossiped to the relay full node attached to -the collator producing P2. Then CollationGeneration passes information about R2 to the collator -node. Finally, relay parent information from R2 informs the generation of candidate P2.

    Because P2 is rushing to be backed in 6 seconds into R3, collators have only 0.5 seconds to generate +P2 if R2 is included on the relay chain and gossiped to the collator producing P2.

    Every collator also runs an attached relay chain full node

    The attached relay node receives relay blocks via gossip. Then, the relay node talks to the +parachain node through the CollationGeneration subsystem. R2 is gossiped to the relay full node +attached to the collator producing P2. Then, CollationGeneration passes information about R2 to +the collator node. Finally, relay parent information from R2 informs the generation of candidate P2.

    Because P2 is rushing to be backed in 6 seconds into R3, collators have only 0.5 seconds to generate it and present it to backing groups on the relay chain that will take approximately 2 seconds to back it and some extra time for gossiping it (the whole process from collation to backing lasts 6 seconds). P2 is included in R4, which could be used as a relay parent for P3 (not shown). After 24 -seconds P1 and P2 are included into the relay chain. Note how collators can start new parablocks -every 12 seconds, but only have 0.5 seconds to generate them.

    Asynchronous Backing

    Disclaimer: Performance Measurements

    Due to asynchronous backing not being fully implemented in a running production network, each -performance metric is not thoroughly tested nor guaranteed until proper benchmarking has occurred.

    sync-vs-async-backing

    In asynchronous backing parablocks (P) are included every 6 seconds, and backing (B) and inclusion -(I) can happen within the same relay chain block (R).

    Synchronous vs. Asynchronous Backing

    Below, a table showing the main differences between synchronous and asynchronous backing.

    Sync BackingAsync BackingAsync Backing Advantage
    Parablocks included every12 seconds6 seconds2x more throughput or 2x less latency
    Parablock's maximum generation time0.5 secondsRecommended 2 seconds, but higher values are possible4x more data in a parablock
    Relay parentIs the latest relay chain blockIs not necessarily the latest relay chain blockCollators can submit parablocks to backing groups in advance
    Collators can build onThe most recent ancestor included in the latest relay chain blockAn ancestor included in a relay chain block (not necessarily the latest), with augmented information from the latest ancestor in the unincluded segmentCollators can start building parablocks in advance
    Number of unincluded parablocksOnly oneOne, or more than one (depends on configuration parameters)More efficiency and scalability
    Unincluded parablocksCannot be re-proposedCan be re-proposed if not successfully included in the first attemptDecrease wastage of unused blockspace
    Parablock's Backing-to-inclusion time12 seconds12 secondsNo change
    Parablock's Inclusion-to-finality time30 seconds30 secondsNo change

    In synchronous backing collators generate parablocks using context entirely pulled from the relay -chain. While in asynchronous backing collators use additional context from the +seconds P1 and P2 are included in the relay chain. Note how collators can start new parablocks every +12 seconds but only have 0.5 seconds to generate them.

    Asynchronous Backing

    Disclaimer: Performance Measurements

    Due to asynchronous backing not being fully implemented in a running production network, each +performance metric is not thoroughly tested nor guaranteed until proper benchmarking has occurred.

    sync-vs-async-backing

    In asynchronous backing, parablocks (P) are included every 6 seconds, and backing (B) and inclusion +(I) can happen within the same relay chain block (R).

    Synchronous vs. Asynchronous Backing

    Below is a table showing the main differences between synchronous and asynchronous backing.

    Sync BackingAsync BackingAsync Backing Advantage
    Parablocks included every12 seconds6 seconds2x more throughput or 2x less latency
    Parablock's maximum generation time0.5 seconds2 seconds4x more data in a parablock
    Relay parentIs the latest relay chain blockIs not necessarily the latest relay chain blockCollators can submit parablocks to backing groups in advance
    Collators can build onThe most recent ancestor included in the latest relay chain blockAn ancestor included in a relay chain block (not necessarily the latest), with augmented information from the latest ancestor in the unincluded segmentCollators can start building parablocks in advance
    Number of unincluded parablocksOnly oneOne, or more than one (depends on configuration parameters)More efficiency and scalability
    Unincluded parablocksCannot be re-proposedCan be re-proposed if not successfully included in the first attemptDecrease wastage of unused blockspace
    Parablock's Backing-to-inclusion time12 seconds12 secondsNo change
    Parablock's Inclusion-to-finality time30 seconds30 secondsNo change

    In synchronous backing, collators generate parablocks using context entirely pulled from the relay +chain. While in asynchronous backing, collators use additional context from the unincluded segment. Parablocks are included every 6 seconds because backing of parablock N + 1 and inclusion of parablock N can happen on the same relay chain bock (pipelining). However, as for synchronous backing, a parablock takes 12 seconds to get backed and included, and from inclusion to finality there is an additional 30-second time window.

    Because the throughput is increased by 2x and parachains have 4x more time to generate blocks, -asynchronous backing is expected to deliver 8x more blockspace to parachains.

    Sync Backing as special case of Async Backing

    Two parameters of asynchronous backing can be controlled by +asynchronous backing is expected to deliver 8x more blockspace to parachains.

    Sync Backing as a special case of Async Backing

    Two parameters of asynchronous backing can be controlled by Governance:

    • max_candidate_depth: the number of parachain blocks a collator can produce that are not yet included in the relay chain.

    • allowed_ancestry_len: @@ -77,19 +77,18 @@ be built only on the latest relay parent for that parachain. Initial values will be set to 3 (4 unincluded parablocks at all times) and 2 (relay parent can be the third last).

      Async Backing Diagram

      async-backing

      The diagram assumes:

      • max_candidate_depth = 2, meaning that there can be a maximum of three unincluded parablocks at all times
      • allowed_ancestry_len = 1, meaning parablocks can be anchored to the last or second-last relay -parent (i.e. collators can start preparing parablocks 6 seconds in advance)

      From left to right, parablock P1 is backed into the relay chain block R1 and included into R2. While -P1 undergoes backing, collators can already start to generate P2, which will have R0 as a relay -parent (showed with an x). Note how R0 can also be relay parent for P1 as long as in the -unincluded segment there is a maximum of three unincluded parablocks. Parablock P2 can be backed in -R2 (the same relay block where P1 is included) and included in R3. Collators can now use up to two -seconds to generate parablocks. And so on, P3 can be generated while P2 is checked by backing -groups, and P4 can be built while P3 undergoing backing. In 24 seconds, P1 to P3 are included into -the relay chain.

      Note how there are always three unincluded parablocks at all times, i.e. compared to synchronous +parent (i.e., collators can start preparing parablocks 6 seconds in advance)

    From left to right, parablock P1 is backed into the relay chain block R1 and included in R2. While +P1 undergoes backing, collators can already generate P2, which will have R0 as a relay parent +(showed with an x). Note how R0 can also be relay parent for P1 as long as in the unincluded +segment there is a maximum of three unincluded parablocks. Parablock P2 can be backed in R2 (the +same relay block where P1 is included) and included in R3. Collators can now use up to two seconds +to generate parablocks. And so on, P3 can be generated while backing groups check P2, and P4 can be +built while P3 undergoing backing. In 24 seconds, P1 to P3 are included in the relay chain.

    Note how there are always three unincluded parablocks at all times, i.e. compared to synchronous backing there can be multiple unincluded parablocks (i.e. pipelining). For example, -when P1 undergoing inclusion, P2 and P3 are undergoing backing. Collators were able to generate +when P1 is undergoing inclusion, P2 and P3 are undergoing backing. Collators were able to generate multiple unincluded parablocks because on their end they have the -unincluded segment, a local storage of not included parablock ancestors that -they can use to fetch information to build new parablocks. On the relay chain side +unincluded segment, a local storage of not-included parablock ancestors that +they can use to fetch information to build new parablocks. On the relay chain side, perspective parachains repeats the work each unincluded segment does in tracking candidates (as validators cannot trust the record kept on parachains).

    The 6-second relay chain block delay includes a backing execution timeout (2 seconds) and some time for network latency (the time it takes to gossip messages across the entire network). The limit @@ -104,11 +103,11 @@ included). Such flexibility from the parachain side will be possible when, on the relay chain side, there will be elastic scaling (i.e., agile core usage and -coretime allocation).

    Terminology

    Candidate Receipt

    Saying that a parablock has been included in a realy chain parent does not mean that the entire -parablock is in the relay chain block. Instead, candidate receipt consisting of the hash of the -parablock, state roots and ID info is placed on the parent block on the relay chain. The relay chain -does not access the entire state of a parachain but only the values that changed during that block -and the merkelized hashes of the unchanged values.

    Pipelining

    Asynchronous backing is a feature that introduces +coretime allocation).

    Terminology

    Candidate Receipt

    Saying that a parablock has been included in a relay chain parent does not mean the entire parablock +is in the relay chain block. Instead, candidate receipt consisting of the hash of the parablock, +state roots, and ID info is placed on the parent block on the relay chain. The relay chain does not +access the entire state of a parachain but only the values that changed during that block and the +merkelized hashes of the unchanged values.

    Pipelining

    Asynchronous backing is a feature that introduces pipelining to the parachain block generation, backing and inclusion. It is analogous to the logical pipelining of processor instruction in "traditional" architectures, where some instructions may be @@ -118,43 +117,42 @@ throughput of the entire network by completing the backing and inclusion steps for different blocks at the same time. Asynchronous backing does not just allow for pipelining within a single pipe (or core). It lays the foundation for a large number of pipes (or cores) to run for the same parachain -at the same time. In that way we have two distinct new forms of parallel computation.

    Unincluded Segments

    Unincluded segments are chains of candidate parablocks that have yet to be included in the relay +at the same time. In that way, we have two distinct new forms of parallel computation.

    Unincluded Segments

    Unincluded segments are chains of candidate parablocks that have yet to be included in the relay chain, i.e. they can contain parablocks at any stage pre-inclusion. An unincluded segment may thus include candidates that are seconded, backable, or backed. Every parablock candidate recorded in the unincluded segment is immediately advertised to validators to begin the backing process.

    The backing process occurs on the relay chain, whereas unincluded segments live in the runtimes of parachain collators. The core functionality that asynchronous backing brings is the ability to build on these unincluded segments of block ancestors rather than building only on ancestors included in -the relay chain state.

    The purpose of each unincluded segment is two fold:

    - + \ No newline at end of file diff --git a/docs/learn-collator.html b/docs/learn-collator.html index 861fe03ecec5..61e773149e0a 100644 --- a/docs/learn-collator.html +++ b/docs/learn-collator.html @@ -19,7 +19,7 @@ - + @@ -65,7 +65,7 @@ Cumulus repository. More information can be found under the Cumulus section on the build parachain page.

    Guides and Tools

    - + \ No newline at end of file diff --git a/docs/learn-comparisons-avalanche.html b/docs/learn-comparisons-avalanche.html index 9fdaed39ca39..80fe1c960ea4 100644 --- a/docs/learn-comparisons-avalanche.html +++ b/docs/learn-comparisons-avalanche.html @@ -19,7 +19,7 @@ - + @@ -113,7 +113,7 @@ need a recommended minimum of 5 validators, which make the costs of launch predictable. Avalanche has plans to implement shared security, interoperability, composability and on-chain governance features which are already offered by Polkadot.

    References

    1. The Avalanche Platform Whitepaper
    2. The Avalanche Consensus Whitepaper
    3. The AVAX Token Dynamics Paper
    4. Nakomoto vs Snow consensus
    - + \ No newline at end of file diff --git a/docs/learn-comparisons-cosmos.html b/docs/learn-comparisons-cosmos.html index bc56b20a46de..b79c0133acb4 100644 --- a/docs/learn-comparisons-cosmos.html +++ b/docs/learn-comparisons-cosmos.html @@ -19,7 +19,7 @@ - + @@ -132,7 +132,7 @@ chain must trust the sending chain. Thus, each blockchain in the Cosmos network has its independent security mechanisms. They're independently secured and do not rely on the security of other blockchains or the hub.

    - + \ No newline at end of file diff --git a/docs/learn-comparisons-ethereum-2.html b/docs/learn-comparisons-ethereum-2.html index a98a401b2b32..fde1abb485f0 100644 --- a/docs/learn-comparisons-ethereum-2.html +++ b/docs/learn-comparisons-ethereum-2.html @@ -19,7 +19,7 @@ - + @@ -157,7 +157,7 @@ enacted autonomously via forkless upgrades.
  • Validator selection mechanisms differ as Polkadot can provide strong availability and validity guarantees with fewer validators per shard.
  • - + \ No newline at end of file diff --git a/docs/learn-comparisons-index.html b/docs/learn-comparisons-index.html index 2a507ad6bb5c..65b44f4afa27 100644 --- a/docs/learn-comparisons-index.html +++ b/docs/learn-comparisons-index.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/learn-comparisons-kusama.html b/docs/learn-comparisons-kusama.html index e59d1512de22..04a4c27a04b5 100644 --- a/docs/learn-comparisons-kusama.html +++ b/docs/learn-comparisons-kusama.html @@ -19,7 +19,7 @@ - + @@ -76,7 +76,7 @@ the future, we’re also likely to see Kusama bridged to Polkadot for cross-network interoperability. Web3 Foundation remains committed to both networks going forward, providing crucial support and guidance to teams building for the ecosystem.

    Explore more

    - + \ No newline at end of file diff --git a/docs/learn-comparisons-rollups.html b/docs/learn-comparisons-rollups.html index 36e5cc2595a6..7a847e58063d 100644 --- a/docs/learn-comparisons-rollups.html +++ b/docs/learn-comparisons-rollups.html @@ -19,7 +19,7 @@ - + @@ -94,7 +94,7 @@ transition data.

    Despite these drawbacks, Polkadot remains upgradable through forkless upgrades, which allows the protocol to be easily upgradable to stay in line with future technological advances.

    - + \ No newline at end of file diff --git a/docs/learn-comparisons.html b/docs/learn-comparisons.html index 7fcf0cb6f52f..0fb285c07f95 100644 --- a/docs/learn-comparisons.html +++ b/docs/learn-comparisons.html @@ -19,7 +19,7 @@ - + @@ -61,7 +61,7 @@ Chain, and as the number of validators in the active set on Polkadot are increased, more parachains can be supported.

    - + \ No newline at end of file diff --git a/docs/learn-components-index.html b/docs/learn-components-index.html index ff032adf6163..258a228f164d 100644 --- a/docs/learn-components-index.html +++ b/docs/learn-components-index.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/learn-consensus.html b/docs/learn-consensus.html index 2f2576d0735d..0c56ff6feadf 100644 --- a/docs/learn-consensus.html +++ b/docs/learn-consensus.html @@ -19,7 +19,7 @@ - + @@ -154,7 +154,7 @@ with Bill Laboon.
  • Block Production and Finalization in Polkadot: Understanding the BABE and GRANDPA Protocols - An academic talk by Bill Laboon, given at MIT Cryptoeconomic Systems 2020, describing Polkadot's hybrid consensus model in-depth.
  • - + \ No newline at end of file diff --git a/docs/learn-controller.html b/docs/learn-controller.html index 63ae095c049b..ba5ace80d918 100644 --- a/docs/learn-controller.html +++ b/docs/learn-controller.html @@ -19,7 +19,7 @@ - + @@ -41,7 +41,7 @@ used less often and usually signed by the stash.

    stash-not-as-controller

    From a practical perspective, there were two accounts, and we needed to remember two passwords. From a security perspective, the party who wanted to control our staking actions was required to control two accounts.

    - + \ No newline at end of file diff --git a/docs/learn-crowdloans.html b/docs/learn-crowdloans.html index 4f05fc4a83dd..62baa9c96d55 100644 --- a/docs/learn-crowdloans.html +++ b/docs/learn-crowdloans.html @@ -19,7 +19,7 @@ - + @@ -94,7 +94,7 @@ Apps page.

    Here is an example of the crowdloans in play during the very first Kusama auction.

    crowdloan dashboard

    Furthermore, check out this video on How to Participate in Crowdloans for steps on how to access available crowdloans on PolkadotJS apps.

    - + \ No newline at end of file diff --git a/docs/learn-cryptography.html b/docs/learn-cryptography.html index 37f8355b8cbb..13b23a44bdb8 100644 --- a/docs/learn-cryptography.html +++ b/docs/learn-cryptography.html @@ -19,7 +19,7 @@ - + @@ -175,7 +175,7 @@ make passive attacks much harder if such a backdoor exists.

    However an alternative exists in the form of Curve25519. This algorithm has been proposed in 2006 by DJB [Curve25519]. Its main strengths are its speed, its constant-time run time (and resistance against side-channel attacks), and its lack of nebulous hard-coded constants.

    - + \ No newline at end of file diff --git a/docs/learn-extrinsics.html b/docs/learn-extrinsics.html index 3c989d19e552..5e5da124b82c 100644 --- a/docs/learn-extrinsics.html +++ b/docs/learn-extrinsics.html @@ -19,7 +19,7 @@ - + @@ -101,7 +101,7 @@ without the possibility of verifying it.

    Defense against Attacks

    danger

    If you can't verify the extrinsic or you suspect you are signing something different than what you intended, don't sign it!

    To avoid being victim of an attack:

    • Use only trusted extensions, sites and software in general.
    • Use cold storage options (Ledger, Signer) and verify on them. Trust what these devices tell you over what is shown in the app or the browser extension.
    • Update Signer metadata only from trusted sources (or do it yourself).
    • Accept metadata updates for the extension only from trusted apps.
    - + \ No newline at end of file diff --git a/docs/learn-future-implementations-index.html b/docs/learn-future-implementations-index.html index c4658286573b..cffc9439d415 100644 --- a/docs/learn-future-implementations-index.html +++ b/docs/learn-future-implementations-index.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/learn-governance.html b/docs/learn-governance.html index 4c689f396673..55f87ef26421 100644 --- a/docs/learn-governance.html +++ b/docs/learn-governance.html @@ -19,7 +19,7 @@ - + @@ -241,7 +241,7 @@ case for why the change should be made.

    Resources

    - + \ No newline at end of file diff --git a/docs/learn-guides-assets-create.html b/docs/learn-guides-assets-create.html index 840dcccf9cb3..043ac09e9725 100644 --- a/docs/learn-guides-assets-create.html +++ b/docs/learn-guides-assets-create.html @@ -19,7 +19,7 @@ - + @@ -60,7 +60,7 @@ an ID that has already been taken. After all the details are entered, click on the next button.

    Add Asset Metadata

    • Choose the admin, issuer and the freezer accounts for your asset and click on the create button.

    Asset managing accounts

    • Sign and submit the transaction (If you like to verify the transaction details before signing, you can click on the dropdown button pointed by the arrow in the snapshot below).

    Sign asset creating transaction

    If the transaction is successful, you should see the asset and its details displayed in the Network > Assets page on the Asset Hub.

    - + \ No newline at end of file diff --git a/docs/learn-guides-assets-index.html b/docs/learn-guides-assets-index.html index 50bdf63177f0..c25ba15d056b 100644 --- a/docs/learn-guides-assets-index.html +++ b/docs/learn-guides-assets-index.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/learn-guides-assets-ledger.html b/docs/learn-guides-assets-ledger.html index 55ba13b15ece..9394de8994d2 100644 --- a/docs/learn-guides-assets-ledger.html +++ b/docs/learn-guides-assets-ledger.html @@ -19,7 +19,7 @@ - + @@ -95,7 +95,7 @@ here.
  • Transfer the desired amount as described above. If you want to send exactly the amount you want to teleport, don't forget take into account the fees for teleporting that will be deducted in the next step.
  • Teleport your tokens following the instructions you will find here.
  • Teleporting to a Ledger account from a non-Ledger account doesn't require these extra steps.

    Support

    If you need support, please visit the Polkadot Support page.

    - + \ No newline at end of file diff --git a/docs/learn-guides-identity.html b/docs/learn-guides-identity.html index b9d49c4cdf6e..ae9b116f6bdc 100644 --- a/docs/learn-guides-identity.html +++ b/docs/learn-guides-identity.html @@ -19,7 +19,7 @@ - + @@ -55,7 +55,7 @@ for each sub-identity. This reserved account balance is freed once you clear the identities on the account.

    Sub-identity example

    - + \ No newline at end of file diff --git a/docs/learn-guides-index.html b/docs/learn-guides-index.html index 2c68958a4289..f83c0cd8983a 100644 --- a/docs/learn-guides-index.html +++ b/docs/learn-guides-index.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/learn-guides-polkadot-opengov.html b/docs/learn-guides-polkadot-opengov.html index 9e66e6309d0f..59c3a5d0c532 100644 --- a/docs/learn-guides-polkadot-opengov.html +++ b/docs/learn-guides-polkadot-opengov.html @@ -19,7 +19,7 @@ - + @@ -67,7 +67,7 @@ Small Tipper Track would be fine for any kind of deposit refund up to 250 DOT.

    - + \ No newline at end of file diff --git a/docs/learn-guides-staking-index.html b/docs/learn-guides-staking-index.html index 39dd17a544d3..beaa84620203 100644 --- a/docs/learn-guides-staking-index.html +++ b/docs/learn-guides-staking-index.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/learn-guides-staking-pools.html b/docs/learn-guides-staking-pools.html index 2b1edb6a67d5..ee46980b3f23 100644 --- a/docs/learn-guides-staking-pools.html +++ b/docs/learn-guides-staking-pools.html @@ -19,7 +19,7 @@ - + @@ -65,7 +65,7 @@ Polkadot-JS UI Extrinsic Tab and issue the following extrisics:

    • nominationPools.claimPayoutOthers extrinsic specifying ALICE's account. This will claim the rewards as a free balance on ALICE's account.

    pools-payoutOthers

    • nominationPools.bondExtraOthers extrinsic specifying ALICE's account and the option to bond:
      • the free balance currently available in ALICE's account (FreeBalance) or
      • the pool rewards (Rewards) unclaimed by ALICE.

    pools-bondExtraOthers

    - + \ No newline at end of file diff --git a/docs/learn-guides-staking.html b/docs/learn-guides-staking.html index 3d253cd540a0..1121019af4cf 100644 --- a/docs/learn-guides-staking.html +++ b/docs/learn-guides-staking.html @@ -19,7 +19,7 @@ - + @@ -41,7 +41,7 @@ which will list all the pending payouts for your stashes.

    pending-payouts

    To then claim your reward, select the "Payout all" button. This will prompt you to select your stash accounts for payout.

    select-payouts

    Once you are done with payout, another screen will appear asking for you to sign and submit the transaction.

    transaction-payouts

    - + \ No newline at end of file diff --git a/docs/learn-guides-treasury.html b/docs/learn-guides-treasury.html index f7a059f9001e..fe56adffb21c 100644 --- a/docs/learn-guides-treasury.html +++ b/docs/learn-guides-treasury.html @@ -19,7 +19,7 @@ - + @@ -62,7 +62,7 @@ to the 32 / Small Spender track, you will need to submit it to the 30 / Small Tipper or 31 / Big Tipper tracks depending on the number of tokens to be requested.

    Briefly, you will need to:

    • Create a preimage using the treasury.Spend extrinsic and specifying the number of tokens and the beneficiary of the tip, and
    • Submit a proposal to the right track (i.e. 30 or 31) using the preimage hash.
    - + \ No newline at end of file diff --git a/docs/learn-guides-vault.html b/docs/learn-guides-vault.html index 4d8367592061..4ca5978db635 100644 --- a/docs/learn-guides-vault.html +++ b/docs/learn-guides-vault.html @@ -19,7 +19,7 @@ - + @@ -70,7 +70,7 @@ chain and version is the version of the metadata.

    Add the renamed files to the /public/qr folder within the Metadata Portal repository.

    Run Portal

    Open the terminal within the Metadata Portal repository and run make updater. Then run make collector; this will create the _latest.apng files for each of the chains (removed by the command make cleaner). Finally, run yarn start to load the metadata portal on your localhost.

    - + \ No newline at end of file diff --git a/docs/learn-identity.html b/docs/learn-identity.html index 5a2205f0b252..b51837dcb0de 100644 --- a/docs/learn-identity.html +++ b/docs/learn-identity.html @@ -19,7 +19,7 @@ - + @@ -108,7 +108,7 @@ an identity also clears all sub accounts and returns their deposits.

    Visit the section "Clear an Identity" on

    this support article for guidelines about clearing identities.

    Killing: The Council can kill an identity that it deems erroneous. This results in a slash of the deposit.

    - + \ No newline at end of file diff --git a/docs/learn-implementations.html b/docs/learn-implementations.html index 7ab4ee179ec7..f131c2bfb91f 100644 --- a/docs/learn-implementations.html +++ b/docs/learn-implementations.html @@ -19,7 +19,7 @@ - + @@ -57,7 +57,7 @@ collection of tools, interfaces, and libraries for Polkadot and Substrate.

    Other implementations that have received grants

    While the ecosystem continues to grow rapidly, the continued development of alternative implementations will only make Polkadot stronger. Consider becoming a contributor to the ecosystem, and learn about the how you can receieve a grant for your development.

    - + \ No newline at end of file diff --git a/docs/learn-index.html b/docs/learn-index.html index d4a3f3bcf891..ad8ee838f278 100644 --- a/docs/learn-index.html +++ b/docs/learn-index.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/learn-inflation.html b/docs/learn-inflation.html index c8227f38aea6..7355630bc068 100644 --- a/docs/learn-inflation.html +++ b/docs/learn-inflation.html @@ -19,7 +19,7 @@ - + @@ -72,7 +72,7 @@ incentivizing them to stake more tokens on the network. On the contrary, staking rewards drop if staked tokens exceed the ideal staking rate. This results from the change in the percentage of staking rewards that go to the Treasury.

    - + \ No newline at end of file diff --git a/docs/learn-launch.html b/docs/learn-launch.html index 957b5b51cb8b..5ff7c575c88c 100644 --- a/docs/learn-launch.html +++ b/docs/learn-launch.html @@ -19,7 +19,7 @@ - + @@ -47,7 +47,7 @@ block number 1_205_128 on August 18, 2020, at 16:39 UTC.

    Core Functionality

    After five years of research and development and a multi-stage launch that began in May 2020, Polkadot launch was completed on December 18, 2021, with all auction-winning parachains producing blocks on the network.

    Check out these resources for further information:

    - + \ No newline at end of file diff --git a/docs/learn-nft-index.html b/docs/learn-nft-index.html index cae808712839..9d59dc30a04e 100644 --- a/docs/learn-nft-index.html +++ b/docs/learn-nft-index.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/learn-nft-pallets.html b/docs/learn-nft-pallets.html index d8d917467c0d..0feb72fda3f2 100644 --- a/docs/learn-nft-pallets.html +++ b/docs/learn-nft-pallets.html @@ -19,7 +19,7 @@ - + @@ -108,7 +108,7 @@ balance-keeping chain for both fungible and non-fungibles.

    These NFTs can be viewed and interacted with on RMRK's Singular platform, by switching the top right menu from Kusama to the Asset Hub.

    nft-hub

    They can also be interacted with directly through the extrinsics tab of the Asset Hub:

    uniques.png

    - + \ No newline at end of file diff --git a/docs/learn-nft-projects.html b/docs/learn-nft-projects.html index 0733c06bc067..7b4cc7adadd8 100644 --- a/docs/learn-nft-projects.html +++ b/docs/learn-nft-projects.html @@ -19,7 +19,7 @@ - + @@ -99,7 +99,7 @@ on, rather than entering the NFT space themselves as an end-product.

    Unique Network aims to make their marketplace technology open-source and whitelabel-friendly. In theory, it should be trivial to set up a new marketplace for your project using Unique's technology. Unique network aims to be a parachain on Polkadot, and Quartz is their Kusama counterpart.

    - + \ No newline at end of file diff --git a/docs/learn-nft.html b/docs/learn-nft.html index 24d993880fee..19bbab7af28a 100644 --- a/docs/learn-nft.html +++ b/docs/learn-nft.html @@ -19,7 +19,7 @@ - + @@ -64,7 +64,7 @@ RMRK hackathon for porting RMRK NFTs into simplified IOUs on EVM chains

    References

    - + \ No newline at end of file diff --git a/docs/learn-nomination-pools.html b/docs/learn-nomination-pools.html index 2de41ce7b268..679d716de1a2 100644 --- a/docs/learn-nomination-pools.html +++ b/docs/learn-nomination-pools.html @@ -19,7 +19,7 @@ - + @@ -201,7 +201,7 @@ in the nomination pools and earn staking rewards. For additional information, see this blog post. Check the wiki doc on nomination pools for more information.

    NominatingJoining a Pool
    Minimum 250 DOT to nominate.Minimum 1 DOT to be a member.
    Rewards can be compounded automatically or sent to any account.Rewards can be manually claimed to the pool member's account and be bonded in the pool again to compound them.
    If the active validator gets slashed, all active nominators are subjected to slashing, also those that do not receive rewards due to the oversubscription issue.If the active validator gets slashed, all pool members are subjected to slashing.
    Can bond and stake DOT indefinitely.Can bond and stake DOT until the pool exists.
    Unbonding period of 28 days. Can switch validators without unbonding.Unbonding period of 28 days. Need to unbond before switching to a different pool.
    Maximum uncapped.Maximum uncapped.
    Should bond more than the minimum active nomination in an era to be eligible to earn staking rewards, although it can depend on multiple other factors outlined in the linked document.A nomination pool earns rewards in an era if it satisfies all the conditions mentioned for the nominator (as the nomination pool is just a nominator from the NPoS system perspective).
    Staked tokens can be used for participation in Governance.Staked tokens cannot be used for participation in Governance.
    Rewards payout can be triggered permissionlessly by anyone (typically done by the validator).The pool member must claim the rewards.
    Bonded funds remain in your account.Bonded funds are transferred to a pool account which is administered by the network protocol and is not accessible to anyone else. See System Accounts for more information.
    Nominator manages the list of staked validators (up to 16).Nominations managed by the pool operator.
    - + \ No newline at end of file diff --git a/docs/learn-nominator.html b/docs/learn-nominator.html index 62c7c10195d4..9f1901f78f05 100644 --- a/docs/learn-nominator.html +++ b/docs/learn-nominator.html @@ -19,7 +19,7 @@ - + @@ -270,7 +270,7 @@ Polkadot JS Apps > Network > Staking > Targets page.

    Minimum Active Nomination

    Guides

    - + \ No newline at end of file diff --git a/docs/learn-parachains-faq.html b/docs/learn-parachains-faq.html index 2975c49d4895..259644474b3c 100644 --- a/docs/learn-parachains-faq.html +++ b/docs/learn-parachains-faq.html @@ -19,7 +19,7 @@ - + @@ -111,7 +111,7 @@ initiate an auction, however, Root origin (via referendum) is needed to cancel an auction. Here is a proposal that gives a glimpse of what goes into planning auctions schedule - Proposed Polkadot Auction Schedule 2022.

    - + \ No newline at end of file diff --git a/docs/learn-parachains-index.html b/docs/learn-parachains-index.html index 53038809b49d..eddad4c670d2 100644 --- a/docs/learn-parachains-index.html +++ b/docs/learn-parachains-index.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/learn-parachains-protocol.html b/docs/learn-parachains-protocol.html index ce0275a1152c..81915461957a 100644 --- a/docs/learn-parachains-protocol.html +++ b/docs/learn-parachains-protocol.html @@ -19,7 +19,7 @@ - + @@ -272,7 +272,7 @@ Parity analyst Joe Petrowski expounds on the validity checks that a parachain block must pass in order to progress the parachain.
  • Availability and Validity - Paper by the W3F Research Team that specifies the availability and validity protocol in detail.
  • - + \ No newline at end of file diff --git a/docs/learn-parachains.html b/docs/learn-parachains.html index 33e885c3cc65..2aab26d11925 100644 --- a/docs/learn-parachains.html +++ b/docs/learn-parachains.html @@ -19,7 +19,7 @@ - + @@ -189,7 +189,7 @@ its own. The Relay Chain provides security to attached parachains, but also provides a guarantee of secure message-passing between them."
  • The Path of a Parachain Block - A technical walk-through of how parachains interact with the Relay Chain.
  • - + \ No newline at end of file diff --git a/docs/learn-parathreads.html b/docs/learn-parathreads.html index 32e442de9546..6fc1b10df85e 100644 --- a/docs/learn-parathreads.html +++ b/docs/learn-parathreads.html @@ -19,7 +19,7 @@ - + @@ -90,7 +90,7 @@ produce new blocks when they need to.

    Parathreads help ease the sharp stop of the parachain slot term by allowing parachains that are still doing something useful to produce blocks, even if it is no longer economically viable to rent a parachain slot.

    Resources

    - + \ No newline at end of file diff --git a/docs/learn-participants-index.html b/docs/learn-participants-index.html index 078386f414de..5b5cd4b5a160 100644 --- a/docs/learn-participants-index.html +++ b/docs/learn-participants-index.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/learn-phragmen.html b/docs/learn-phragmen.html index a32b2de4a93b..a8b6067815a5 100644 --- a/docs/learn-phragmen.html +++ b/docs/learn-phragmen.html @@ -19,7 +19,7 @@ - + @@ -272,7 +272,7 @@ This paper by Brill et al. is the source for the simple Phragmén method, along with proofs about its properties.
  • Offline Phragmén - Script to generate the Phragmén validator election outcome before the start of an era.
  • - + \ No newline at end of file diff --git a/docs/learn-polkadot-host.html b/docs/learn-polkadot-host.html index 710ee6a072e3..18c390a3a918 100644 --- a/docs/learn-polkadot-host.html +++ b/docs/learn-polkadot-host.html @@ -19,7 +19,7 @@ - + @@ -45,7 +45,7 @@ Host is referred to as the Executor. For additional technical implementation details, check out this section of the Polkadot Spec.

    Resources

    - + \ No newline at end of file diff --git a/docs/learn-polkadot-opengov-treasury.html b/docs/learn-polkadot-opengov-treasury.html index b077cc332490..fa9927b49e51 100644 --- a/docs/learn-polkadot-opengov-treasury.html +++ b/docs/learn-polkadot-opengov-treasury.html @@ -19,7 +19,7 @@ - + @@ -57,7 +57,7 @@ requires a decision deposit of 10 DOT.

    Small Tipper

    This track can be used for treasury spending requests up to 100 DOT per referendum. Each referendum requires a decision deposit of 1 DOT.

    - + \ No newline at end of file diff --git a/docs/learn-polkadot-opengov.html b/docs/learn-polkadot-opengov.html index 3e1faec80f59..01ef6a3020e5 100644 --- a/docs/learn-polkadot-opengov.html +++ b/docs/learn-polkadot-opengov.html @@ -19,7 +19,7 @@ - + @@ -293,7 +293,7 @@ these guidelines.

    Future plans include that public members can apply to become a Fellowship candidate by placing a small deposit (which will be returned once they become members). Their candidacy will go through a referendum to be approved to become a member.

    Resources

    - + \ No newline at end of file diff --git a/docs/learn-proxies-pure.html b/docs/learn-proxies-pure.html index 68775c2a4161..1e2c88d26979 100644 --- a/docs/learn-proxies-pure.html +++ b/docs/learn-proxies-pure.html @@ -19,7 +19,7 @@ - + @@ -129,7 +129,7 @@ automatically ask for Charly's signature. Thus one proxy call will trigger the second one because Charly's is the only any proxy of P-C, and P-C cannot sign anything. While if we want to use Bob's account we will need to submit all three proxy calls.

    - + \ No newline at end of file diff --git a/docs/learn-proxies.html b/docs/learn-proxies.html index 8da6806ec7c0..8608c8e0f103 100644 --- a/docs/learn-proxies.html +++ b/docs/learn-proxies.html @@ -19,7 +19,7 @@ - + @@ -140,7 +140,7 @@ get an error "Proxy unannounced" since the announcement will be done after the time delay. Also note that regular proxy.proxy calls do not work with time-delayed proxies, you need to announce the call first and then execute the announced call on a separate transaction.

    - + \ No newline at end of file diff --git a/docs/learn-redenomination.html b/docs/learn-redenomination.html index 12db92441436..195d1d600e1f 100644 --- a/docs/learn-redenomination.html +++ b/docs/learn-redenomination.html @@ -19,7 +19,7 @@ - + @@ -84,7 +84,7 @@ Ecosystem Redenomination Guide for recommendations.

    Please reach out to support@polkadot.network if you need any assistance in making sure your software is compatible with the redenomination.

    - + \ No newline at end of file diff --git a/docs/learn-runtime-upgrades.html b/docs/learn-runtime-upgrades.html index c6f24bf75274..985c8de7de41 100644 --- a/docs/learn-runtime-upgrades.html +++ b/docs/learn-runtime-upgrades.html @@ -19,7 +19,7 @@ - + @@ -84,7 +84,7 @@ may be up to the last block before execution, but it will not work if this is missing.
  • democracy(Executed) events for actual execution. In the case of a runtime upgrade, there will also be a system(CodeUpdated) event.
  • You can also monitor Polkassembly for discussions on on-chain proposals and referenda.

    * E.g. via pallets/democracy/storage/ReferendumInfoOf?key1=index&at=blockNumber on Sidecar.

    - + \ No newline at end of file diff --git a/docs/learn-sassafras.html b/docs/learn-sassafras.html index 32c11d9112b2..788d1d1cf37d 100644 --- a/docs/learn-sassafras.html +++ b/docs/learn-sassafras.html @@ -19,7 +19,7 @@ - + @@ -31,7 +31,7 @@ with time-constant intervals. The protocol utilizes zk-SNARKs to construct a ring-VRF and is a work in progress.

    This page will be updated as progress ensues.

    Resources

    - + \ No newline at end of file diff --git a/docs/learn-scams.html b/docs/learn-scams.html index c9bc8ebffd18..2a06b69195b8 100644 --- a/docs/learn-scams.html +++ b/docs/learn-scams.html @@ -19,7 +19,7 @@ - + @@ -82,7 +82,7 @@ for steps you should take to prevent further loss and contact Polkadot Support from the same page. Finally, make sure to read the present article carefully to learn how to avoid falling victim in the future.

    - + \ No newline at end of file diff --git a/docs/learn-spree.html b/docs/learn-spree.html index f0bfa20f7b9e..45ecdf816a55 100644 --- a/docs/learn-spree.html +++ b/docs/learn-spree.html @@ -19,7 +19,7 @@ - + @@ -78,7 +78,7 @@ instances, and the next state root of the instance. They do this validation by checking it against the validate function as provided by the SPREE module API. Collators are expected to be able to provide this information to progress their parachains.

    - + \ No newline at end of file diff --git a/docs/learn-staking-advanced.html b/docs/learn-staking-advanced.html index d78c9d5ca0da..3e3333add66c 100644 --- a/docs/learn-staking-advanced.html +++ b/docs/learn-staking-advanced.html @@ -19,7 +19,7 @@ - + @@ -313,7 +313,7 @@ which is a fixed amount.

    Further Resources

    If you want to run a staking miner on your validator, refer to the repository provided in the resources section below.

    - + \ No newline at end of file diff --git a/docs/learn-staking-index.html b/docs/learn-staking-index.html index 3d46a7f7a934..7c65176b2496 100644 --- a/docs/learn-staking-index.html +++ b/docs/learn-staking-index.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/learn-staking.html b/docs/learn-staking.html index 87c39cf714b2..60675549737b 100644 --- a/docs/learn-staking.html +++ b/docs/learn-staking.html @@ -19,7 +19,7 @@ - + @@ -355,7 +355,7 @@ this support page for the FAQs about staking.

    Resources

    - + \ No newline at end of file diff --git a/docs/learn-system-chains.html b/docs/learn-system-chains.html index 28af305311d1..fd924fb59b86 100644 --- a/docs/learn-system-chains.html +++ b/docs/learn-system-chains.html @@ -19,7 +19,7 @@ - + @@ -87,7 +87,7 @@ isolation provided by parachains.

    See the Bridges page for information on the latest bridge projects. Currently, a Bridge Hub parachain is in development that will be a portal for trust-minimized bridges to other networks.

    - + \ No newline at end of file diff --git a/docs/learn-teleport.html b/docs/learn-teleport.html index e1f408334bb7..a77512a8129a 100644 --- a/docs/learn-teleport.html +++ b/docs/learn-teleport.html @@ -19,7 +19,7 @@ - + @@ -50,7 +50,7 @@ condition will result in a change in the asset's total issuance (in the case of fungible tokens) or a complete loss/duplication of an NFT.

    Teleporting Tokens using the Polkadot-JS UI

    Troubleshooting

    If you do not see "Accounts > Teleport" in [Polkadot-JS UI], the source chain that you have selected does not support teleportation yet.

    - + \ No newline at end of file diff --git a/docs/learn-transaction-fees.html b/docs/learn-transaction-fees.html index 93b788c93f8c..cd8b2bc6a76b 100644 --- a/docs/learn-transaction-fees.html +++ b/docs/learn-transaction-fees.html @@ -19,7 +19,7 @@ - + @@ -142,7 +142,7 @@ how reasonable they find the timestamp. In Polkadot, it must be within some acceptable range of their own system clocks.

    Learn More

    - + \ No newline at end of file diff --git a/docs/learn-transactions-index.html b/docs/learn-transactions-index.html index f0261a3e5400..934f0ef518b9 100644 --- a/docs/learn-transactions-index.html +++ b/docs/learn-transactions-index.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/learn-treasury.html b/docs/learn-treasury.html index f96df869f9f7..d525db7bd845 100644 --- a/docs/learn-treasury.html +++ b/docs/learn-treasury.html @@ -19,7 +19,7 @@ - + @@ -170,7 +170,7 @@ taking place. The time delay then allows chain participants time to respond. The response may take the form of governance measures or - in the most extreme cases a liquidation of their holdings and a migration to a minority fork. However, the possibility of this scenario is quite low.

    Further Reading

    - + \ No newline at end of file diff --git a/docs/learn-validator.html b/docs/learn-validator.html index 508401722730..8f7a399a84b7 100644 --- a/docs/learn-validator.html +++ b/docs/learn-validator.html @@ -19,7 +19,7 @@ - + @@ -95,7 +95,7 @@ statistics.
  • YieldScan - Staking yield maximization platform, designed to minimize effort.
  • Subscan Validators Page - Displays information on the current validators - not as tailored for validators as the other sites.
  • - + \ No newline at end of file diff --git a/docs/learn-video-tutorials.html b/docs/learn-video-tutorials.html index 768bee36f060..00c61aa20508 100644 --- a/docs/learn-video-tutorials.html +++ b/docs/learn-video-tutorials.html @@ -19,7 +19,7 @@ - + @@ -27,7 +27,7 @@ - + \ No newline at end of file diff --git a/docs/learn-wasm.html b/docs/learn-wasm.html index beb1c6141554..511c97e61bbf 100644 --- a/docs/learn-wasm.html +++ b/docs/learn-wasm.html @@ -19,7 +19,7 @@ - + @@ -35,7 +35,7 @@ spec.
  • Wasmi - WebAssembly interpreter written in Rust.
  • Parity Wasm - WebAssembly serialization/deserialization in Rust.
  • Wasm utils - Collection of Wasm utilities used in Parity and Wasm contract development.
  • - + \ No newline at end of file diff --git a/docs/learn-xcm-index.html b/docs/learn-xcm-index.html index 533a00ba88e6..f10900f0066e 100644 --- a/docs/learn-xcm-index.html +++ b/docs/learn-xcm-index.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/learn-xcm-instructions.html b/docs/learn-xcm-instructions.html index 049249e006c4..cb4d6de7e41f 100644 --- a/docs/learn-xcm-instructions.html +++ b/docs/learn-xcm-instructions.html @@ -19,7 +19,7 @@ - + @@ -37,7 +37,7 @@ system and may not be transferred. It may only be unlocked with the receipt of the UnlockAsset instruction from this chain.

  • RequestUnlock(MultiAsset, MultiLocation) - Send an UnlockAsset instruction to the locker for the given asset.

  • - + \ No newline at end of file diff --git a/docs/learn-xcm-pallet.html b/docs/learn-xcm-pallet.html index dd92ef69a919..791bd4ed0047 100644 --- a/docs/learn-xcm-pallet.html +++ b/docs/learn-xcm-pallet.html @@ -19,7 +19,7 @@ - + @@ -86,7 +86,7 @@ calculates the total fee based on the number of instructions.

    The Trader used to calculate the weight (time for computation in consensus) to include in the message. Fee calculation in XCM is highly configurable and, for this reason, subjective to whichever configuration is in place.

    - + \ No newline at end of file diff --git a/docs/learn-xcm-transport.html b/docs/learn-xcm-transport.html index 4f1344e1b592..f30e0188ecda 100644 --- a/docs/learn-xcm-transport.html +++ b/docs/learn-xcm-transport.html @@ -19,7 +19,7 @@ - + @@ -69,7 +69,7 @@ asset transfer as intended.

    The collator now hands this block to the validator, which itself will verify that this message was processed. If the message was processed and all other aspects of the block are valid, the validator will include this block for parachain B into the Relay Chain.

    - + \ No newline at end of file diff --git a/docs/learn-xcm-usecases.html b/docs/learn-xcm-usecases.html index da7345e6a09b..b6bdefa99363 100644 --- a/docs/learn-xcm-usecases.html +++ b/docs/learn-xcm-usecases.html @@ -19,7 +19,7 @@ - + @@ -46,7 +46,7 @@ destination's sovereign account, and sends this instruction onwards to the destination. The destination receives the instruction and processes it, minting the derivative assets as a result of the process.

    1. DepositAsset

    The destination deposits the derivative assets minted to the receiving account.

    - + \ No newline at end of file diff --git a/docs/learn-xcm.html b/docs/learn-xcm.html index 8cd27068c01d..525732794233 100644 --- a/docs/learn-xcm.html +++ b/docs/learn-xcm.html @@ -19,7 +19,7 @@ - + @@ -92,7 +92,7 @@ Technical audit report by Quarkslab prepared for Parity.

  • XCM pallet code - The pallet that contains XCM logic from the Polkadot code repository

  • XCM Config & Pallet-XCM | Polkadot Deep Dives - A technical deep dive into pallet-xcm and the XCM configuration.

  • - + \ No newline at end of file diff --git a/docs/learn-xcvm.html b/docs/learn-xcvm.html index ac9fea991ed2..cb08d0b07c52 100644 --- a/docs/learn-xcvm.html +++ b/docs/learn-xcvm.html @@ -19,7 +19,7 @@ - + @@ -110,7 +110,7 @@ a MultiLocation.

    Simulating XCVM using the xcm-simulator

    Within the Polkadot repository exists the xcm-simulator, which allows developers to experiment with building, executing, and simulating various XCM use scenarios.

    - + \ No newline at end of file diff --git a/docs/learn/xcm.html b/docs/learn/xcm.html index f4fc25704080..fa173578c914 100644 --- a/docs/learn/xcm.html +++ b/docs/learn/xcm.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/learn/xcm/config-deep-dive.html b/docs/learn/xcm/config-deep-dive.html index 1c0a4a8718f4..899740d8a6f8 100644 --- a/docs/learn/xcm/config-deep-dive.html +++ b/docs/learn/xcm/config-deep-dive.html @@ -19,7 +19,7 @@ - + @@ -132,7 +132,7 @@ Statemine, or Trappist for examples of how to implement the xcm-executor config.

    - + \ No newline at end of file diff --git a/docs/learn/xcm/fundamentals-fees.html b/docs/learn/xcm/fundamentals-fees.html index c9d0a7dc3923..1d7e8a4421ec 100644 --- a/docs/learn/xcm/fundamentals-fees.html +++ b/docs/learn/xcm/fundamentals-fees.html @@ -19,7 +19,7 @@ - + @@ -56,7 +56,7 @@ and charging execution fees.

    XCM pallet

    FRAME pallets, like the XCM pallet, specify weights for each extrinsic they expose. That means that when interacting with pallets that deal with XCM, there will be an additional fee at the beginning for calling the extrinsic locally.

    - + \ No newline at end of file diff --git a/docs/learn/xcm/fundamentals-multiasset.html b/docs/learn/xcm/fundamentals-multiasset.html index fd7709281cdc..012bdcf63918 100644 --- a/docs/learn/xcm/fundamentals-multiasset.html +++ b/docs/learn/xcm/fundamentals-multiasset.html @@ -19,7 +19,7 @@ - + @@ -56,7 +56,7 @@ MultiAssets and WildMultiAsset allowing either a wildcard or a list of definite (i.e. not wildcard) assets to be specified.

    pub enum MultiAssetFilter {
    /// Specify the filter as being everything contained by the given `MultiAssets` inner.
    Definite(MultiAssets),
    /// Specify the filter as the given `WildMultiAsset` wildcard.
    Wild(WildMultiAsset),
    }

    Examples

    MultiAsset

    For more information about the MultiLocations used to define concrete assets, see MultiLocation and Junction.

    // Location Relay Chain
    // 100 Native Asset (three ways)
    MultiAsset {id: Concrete(MultiLocation {parents: 0, interior: Here}), fun: Fungible(100u128)};
    MultiAsset {id: Here.into(), fun: 100.into()};
    let _: MultiAsset = (Here, 100u128).into();

    // 100 Parachain's Native Asset
    let _: MultiAsset = (X1(Parachain(1000)), 100u128).into();
    // 100 Fungible assets in Parachain 1000 with id 1234
    let _: MultiAsset = (X2(Parachain(1000), GeneralIndex(1234)), 100u128).into();
    // Non Fungible asset with asset class 1234 containing only one nft instance in Parachain 1000
    let _: MultiAsset = (X2(Parachain(1000), GeneralIndex(1234)), Undefined).into();
    // Non Fungible asset with asset class 1234 and AssetInstance 1 in Parachain 1000
    let _: MultiAsset = (X2(Parachain(1000), GeneralIndex(1234)), Index(1)).into();

    MultiAssetFilter

    let a1: MultiAssets = MultiAssets::from(vec![MultiAsset {id: Here.into(), fun: 100u128.into()}]);
    let b1: MultiAssets = (Here, 100u128).into();
    assert_eq!(a1, b1);

    let a2: MultiAssetFilter = a1.into();
    let b2 = MultiAssetFilter::Definite((Here, 100u128).into());
    assert_eq!(a2, b2);

    let a3 = MultiAssetFilter::Wild(WildMultiAsset::All);
    let b3: MultiAssetFilter = All.into();
    assert_eq!(a3, b3);
    - + \ No newline at end of file diff --git a/docs/learn/xcm/fundamentals-summary.html b/docs/learn/xcm/fundamentals-summary.html index 03c6050675e7..9a4400e6dd92 100644 --- a/docs/learn/xcm/fundamentals-summary.html +++ b/docs/learn/xcm/fundamentals-summary.html @@ -19,14 +19,14 @@ - + - + \ No newline at end of file diff --git a/docs/learn/xcm/fundamentals-xcvm.html b/docs/learn/xcm/fundamentals-xcvm.html index acd5cbcd51a0..1f613784d7b3 100644 --- a/docs/learn/xcm/fundamentals-xcvm.html +++ b/docs/learn/xcm/fundamentals-xcvm.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/learn/xcm/fundamentals.html b/docs/learn/xcm/fundamentals.html index 64e4a2e9eca9..516b476c0755 100644 --- a/docs/learn/xcm/fundamentals.html +++ b/docs/learn/xcm/fundamentals.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/learn/xcm/fundamentals/multilocation-example.html b/docs/learn/xcm/fundamentals/multilocation-example.html index 8a7f621db179..c40fcee83feb 100644 --- a/docs/learn/xcm/fundamentals/multilocation-example.html +++ b/docs/learn/xcm/fundamentals/multilocation-example.html @@ -19,14 +19,14 @@ - +

    Example

    In this example we show different MultiLocations for the system hierarchy in the image below. Example

    From the perspective of RelayA

    // ParaA
    let _: MultiLocation = Parachain(1000).into();
    // AccountId32 in Parachain A
    let _: MultiLocation = (Parachain(1000), AccountId32 { network: RELAY_A_NETWORK, id: [0u8; 32]}).into();
    // Asset in Parachain A
    let _: MultiLocation = (Parachain(1000), PalletInstance(1), GeneralIndex(1)).into();
    // Ethereum based account on Parachain B
    let _: MultiLocation = (Parachain(2000), AccountKey20 { network: RELAY_A_NETWORK, key: [0u8; 20] }).into();
    // Smart Contract
    let _: MultiLocation = (Parachain(2000), PalletInstance(1), AccountKey20 { network: RELAY_A_NETWORK, key: [0u8; 20] }).into();
    // RelayB
    let _: MultiLocation = (Parent, GlobalConsensus(RELAY_B_NETWORK)).into();
    // NFT on Parachain C
    let _: MultiLocation = (Parent, GlobalConsensus(RELAY_B_NETWORK), Parachain(1000), GeneralIndex(1)).into();

    From the perspective of Parachain C

    // Relay A
    let _: MultiLocation = Parent.into();
    // Plurality Example. Many more BodyId/BodyPart combos imaginable
    let _: MultiLocation = (Parent, Plurality { id: BodyId::Index(0), part: BodyPart::Members { count: 10 } }).into();
    // Account in Relay
    let _: MultiLocation = (Parent, AccountId32 { network: None, id: [0u8; 32] }).into();

    From the perspective of the Smart Contract

    // Asset in Parachain A
    let _: MultiLocation = (Parent, Parent, Parachain(1000), PalletInstance(1), GeneralIndex(1)).into();

    - + \ No newline at end of file diff --git a/docs/learn/xcm/fundamentals/multilocation-junctions.html b/docs/learn/xcm/fundamentals/multilocation-junctions.html index a74865109dca..b0363a32bc83 100644 --- a/docs/learn/xcm/fundamentals/multilocation-junctions.html +++ b/docs/learn/xcm/fundamentals/multilocation-junctions.html @@ -19,7 +19,7 @@ - + @@ -59,7 +59,7 @@ relay chain from the perspective of the Polkadot relay chain as {parents: 1, interior: GlobalConsensus(Kusama)}. An example use case could be routing XCMs between global consensus networks using bridges.

    Multiple ways to create a MultiLocation

    // Current Location
    MultiLocation {parents: 0, interior: Here};
    MultiLocation::new(0, Here);
    MultiLocation::here();
    MultiLocation::default();
    let _: MultiLocation = Here.into();

    // Parent Location
    MultiLocation {parents: 1, interior: Here};
    MultiLocation::parent();
    let _: MultiLocation = Parent.into();

    // Conversion
    MultiLocation { parents: 2, interior: X2(Parachain(1), GeneralIndex(1))};
    let _: MultiLocation = (Parent, Parent, Parachain(1), GeneralIndex(1)).into();
    - + \ No newline at end of file diff --git a/docs/learn/xcm/fundamentals/multilocation-summary.html b/docs/learn/xcm/fundamentals/multilocation-summary.html index 6798133cce9f..78eb726022d3 100644 --- a/docs/learn/xcm/fundamentals/multilocation-summary.html +++ b/docs/learn/xcm/fundamentals/multilocation-summary.html @@ -19,7 +19,7 @@ - + @@ -54,7 +54,7 @@ .. are followed by some number of Junctions, all separated by /. The X1 and X2 variants are expressing the number of Junctions that we step down in the hierarchical structure (see Junctions for an explanation).

    // From: RelayA
    // To: ParaB
    // Location: Parachain(2000)
    MultiLocation {parents: 0, interior: X1(Parachain(2000))};
    // To: Account in ParaA
    // Location: Parachain(1000)/AccountId32(0x00..)
    MultiLocation {
    parents: 0,
    interior: X2(
    Parachain(1000),
    AccountId32{network: None, id: [0u8; 32]}
    )
    };

    // From: ParaB
    // To: RelayA
    // Location: ../Here
    MultiLocation {parents: 1, interior: Here};
    // To: Account in ParaA
    // Location: ../Parachain(1000)/AccountId32(0x00..)
    MultiLocation {
    parents: 1,
    interior: X2(
    Parachain(1000),
    AccountId32{network: None, id: [0u8; 32]}
    )
    };

    What's next:

    • More information about junctions
    • More MultiLocation examples
    • Expressing assets using Multilocations: [MultiAsset][../multiasset.md]
    - + \ No newline at end of file diff --git a/docs/learn/xcm/fundamentals/multilocation.html b/docs/learn/xcm/fundamentals/multilocation.html index f77f962a9150..63a4f06517e1 100644 --- a/docs/learn/xcm/fundamentals/multilocation.html +++ b/docs/learn/xcm/fundamentals/multilocation.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/learn/xcm/introduction.html b/docs/learn/xcm/introduction.html index b2637062fb79..ce4236a2348e 100644 --- a/docs/learn/xcm/introduction.html +++ b/docs/learn/xcm/introduction.html @@ -19,7 +19,7 @@ - + @@ -35,7 +35,7 @@ open an issue. If you want to contribute to the format, check out the RFC process.

    - + \ No newline at end of file diff --git a/docs/learn/xcm/journey-assets.html b/docs/learn/xcm/journey-assets.html index e3dae3d25c20..c8724b6e0820 100644 --- a/docs/learn/xcm/journey-assets.html +++ b/docs/learn/xcm/journey-assets.html @@ -19,7 +19,7 @@ - + @@ -42,7 +42,7 @@ relay chain. The assets are trapped because an error is thrown and the execution is halted. Parachain A claims the trapped assets and receives a report of the holding register.

    Parachain A sends the following message to the relay chain. The message errors because of the Trap instruction, so all assets in the Holding Register are trapped.

    let message = Xcm(vec![
    WithdrawAsset((Here, 10 * CENTS).into()),
    BuyExecution { fees: (Here, CENTS).into(), weight_limit: WeightLimit::Unlimited },
    Trap(0), // <-- Errors
    DepositAsset { // <-- Not executed because of error.
    assets: All.into(),
    beneficiary: AccountId32 {
    network: Some(parachain::RelayNetwork::get()),
    id: ALICE.into()
    }.into()
    }
    ]);

    Parachain A claims the assets, reports them to itself and deposits them in the Account of Alice.

    let claim_message = Xcm(vec![
    ClaimAsset { assets: (Here, 10 * CENTS).into(), ticket: Here.into() },
    ReportHolding {
    response_info: QueryResponseInfo {
    destination: Parachain(1).into(),
    query_id: QUERY_ID,
    max_weight: Weight::from_parts(1_000_000_000, 64*64) },
    assets: All.into()
    },
    DepositAsset {
    assets: All.into(),
    beneficiary: AccountId32 {
    network: Some(parachain::RelayNetwork::get()),
    id: ALICE.into()
    }.into()
    },
    ]);
    - + \ No newline at end of file diff --git a/docs/learn/xcm/journey-channels.html b/docs/learn/xcm/journey-channels.html index cb054464f46b..38c8d91999d0 100644 --- a/docs/learn/xcm/journey-channels.html +++ b/docs/learn/xcm/journey-channels.html @@ -19,7 +19,7 @@ - + @@ -51,7 +51,7 @@ network), you would call with network: NetworkId::Kusama and destination: X1(Parachain(1000)). Alternatively, to export a message for execution on Polkadot, you would call with network: NetworkId:: Polkadot and destination: Here.

    - + \ No newline at end of file diff --git a/docs/learn/xcm/journey-expectations.html b/docs/learn/xcm/journey-expectations.html index efd5b1fb3908..45344d2b27a8 100644 --- a/docs/learn/xcm/journey-expectations.html +++ b/docs/learn/xcm/journey-expectations.html @@ -19,7 +19,7 @@ - + @@ -44,7 +44,7 @@ the error handler, when a specific error is thrown.

        ExpectError(Option<(u32, Error)>)

    Example

    For the full example, check here.

    SetErrorHandler(Xcm(vec![
    ExpectError(Some((1, XcmError::VersionIncompatible))),
    ReportError(QueryResponseInfo {
    destination: Parachain(1).into(),
    query_id: QUERY_ID,
    max_weight: Weight::from_all(0),
    }),
    ])),
    // Pallet index is wrong, so throws `PalletNotFound` error.
    ExpectPallet {
    index: 100,
    name: "Balances".into(),
    module_name: "pallet_balances".into(),
    crate_major: 4,
    min_crate_minor: 0,
    },

    ExpectTransactStatus

    The ExpectTransactStatus instruction throws an ExpectationFalse error if the transact status register does not equal the expected transact status.

    Example

    For the full example, check here. The transact status is reported to Parachain(1) if the call in the Transact errors.

    SetErrorHandler(Xcm(vec![ReportTransactStatus(QueryResponseInfo {
    destination: Parachain(1).into(),
    query_id: QUERY_ID,
    max_weight: Weight::from_all(0),
    })])),
    Transact {
    origin_kind: OriginKind::SovereignAccount,
    require_weight_at_most: Weight::from_parts(INITIAL_BALANCE as u64, 1024 * 1024),
    call: call.encode().into(),
    },
    ExpectTransactStatus(MaybeErrorCode::Success),
    - + \ No newline at end of file diff --git a/docs/learn/xcm/journey-fees.html b/docs/learn/xcm/journey-fees.html index 5b60de792ff0..75332c7bd7e6 100644 --- a/docs/learn/xcm/journey-fees.html +++ b/docs/learn/xcm/journey-fees.html @@ -19,7 +19,7 @@ - + @@ -62,7 +62,7 @@ throws an error, the error handler will be called and the weight for all the instructions that weren't executed is refunded. For the full example, check our repo.

    - + \ No newline at end of file diff --git a/docs/learn/xcm/journey-holding.html b/docs/learn/xcm/journey-holding.html index 3c48a606add3..0f5fe3788c5a 100644 --- a/docs/learn/xcm/journey-holding.html +++ b/docs/learn/xcm/journey-holding.html @@ -19,7 +19,7 @@ - + @@ -47,7 +47,7 @@ results could differ.

    The Assets in the exchange in Parachain(1). This is a custom exchange implementation just for testing purposes.

    let assets_in_exchange = vec![(Parent, 10 * CENTS).into()];
    parachain::set_exchange_assets(assets_in_exchange);

    The message that is send:

    let message = Xcm(vec![
    WithdrawAsset((Here, 10 * CENTS).into()),
    BuyExecution { fees: (Here, CENTS).into(), weight_limit: WeightLimit::Unlimited },
    // Maximal field set to true.
    ExchangeAsset {
    give: Definite((Here, 5 * CENTS).into()),
    want: (Parent, 5 * CENTS).into(),
    maximal: true,
    },
    DepositAsset {
    assets: AllCounted(2).into(),
    beneficiary: AccountId32 {
    network: Some(parachain::RelayNetwork::get()),
    id: ALICE.into(),
    }
    .into(),
    },
    ]);

    Alice receives 5 CENTS worth of native assets (Here) and 5 CENTS worth of relay chain derivative assets (Parent).

    - + \ No newline at end of file diff --git a/docs/learn/xcm/journey-locks.html b/docs/learn/xcm/journey-locks.html index 5924475292ff..d46ef70b8917 100644 --- a/docs/learn/xcm/journey-locks.html +++ b/docs/learn/xcm/journey-locks.html @@ -19,7 +19,7 @@ - + @@ -55,7 +55,7 @@ pallet-balances: 10.
    ParaA::execute_with(|| {
    let message = Xcm(vec![
    LockAsset { asset: (Here, 10 * CENTS).into(), unlocker: (Parachain(2)).into() },
    LockAsset { asset: (Here, 5 * CENTS).into(), unlocker: (Parachain(3)).into() },
    ]);
    assert_ok!(ParachainPalletXcm::send_xcm(Here, Parent, message.clone()));
    });

    Relay::execute_with(|| {
    assert_eq!(
    relay_chain::Balances::locks(&parachain_sovereign_account_id(1)),
    vec![BalanceLock { id: *b"py/xcmlk", amount: 10 * CENTS, reasons: Reasons::All }]
    );
    });
    1. Parachain B and C receive the NoteUnlockable instruction.
    ParaB::execute_with(|| {
    assert_eq!(
    parachain::MsgQueue::received_dmp(),
    vec![Xcm(vec![NoteUnlockable {
    owner: (Parent, Parachain(1)).into(),
    asset: (Parent, 10 * CENTS).into()
    }])]
    );
    });

    ParaC::execute_with(|| {
    assert_eq!(
    parachain::MsgQueue::received_dmp(),
    vec![Xcm(vec![NoteUnlockable {
    owner: (Parent, Parachain(1)).into(),
    asset: (Parent, 5 * CENTS).into()
    }])]
    );
    });
    1. Parachain A sends a RequestUnlock instruction to Parachain B for 8 CENTS.
    ParaA::execute_with(|| {
    let message = Xcm(vec![RequestUnlock {
    asset: (Parent, 8 * CENTS).into(),
    locker: Parent.into(),
    }]);

    assert_ok!(ParachainPalletXcm::send_xcm(Here, (Parent, Parachain(2)), message.clone()));
    });
    1. Parachain B Unlocks a part of the funds by sending an UnlockAsset to the relay chain. we check the lock in the balances-pallet. Unlockers: B, C; Funds registered in pallet-xcm: 2, 5. Lock set in pallet-balances: 5.
    Relay::execute_with(|| {
    assert_eq!(
    relay_chain::Balances::locks(&parachain_sovereign_account_id(1)),
    vec![BalanceLock { id: *b"py/xcmlk", amount: 5 * CENTS, reasons: Reasons::All }]
    );
    });
    - + \ No newline at end of file diff --git a/docs/learn/xcm/journey-origin.html b/docs/learn/xcm/journey-origin.html index e40fabd5038d..7f9335c1982a 100644 --- a/docs/learn/xcm/journey-origin.html +++ b/docs/learn/xcm/journey-origin.html @@ -19,7 +19,7 @@ - + @@ -47,7 +47,7 @@ for certain values of X (thereby allowing sibling chains to use the same account IDs) or Parachain(X)/ (allowing a Relay-chain to use the account IDs native to its child parachains) or just Parent/ (allowing parachains to use AccountIds of the Relay-chain).

    - + \ No newline at end of file diff --git a/docs/learn/xcm/journey-queries.html b/docs/learn/xcm/journey-queries.html index 90575e24feeb..b85edc408b46 100644 --- a/docs/learn/xcm/journey-queries.html +++ b/docs/learn/xcm/journey-queries.html @@ -19,7 +19,7 @@ - + @@ -51,7 +51,7 @@ specified destination.

    ReportTransactStatus(QueryResponseInfo)

    Example

    For the full example, check here. Dispatches a call on the consensus system receiving this Xcm and reports back the status of the Transact Status Register.

    Xcm(vec![
    Transact {
    origin_kind: OriginKind::SovereignAccount,
    require_weight_at_most: Weight::from_parts(INITIAL_BALANCE as u64, 1024 * 1024),
    call: remark.encode().into(),
    },
    ReportTransactStatus(QueryResponseInfo {
    destination: Parachain(1).into(),
    query_id: QUERY_ID,
    max_weight: Weight::from_all(0),
    }),
    ]);
    - + \ No newline at end of file diff --git a/docs/learn/xcm/journey-register.html b/docs/learn/xcm/journey-register.html index 3bc2f18a5400..acca61c7b345 100644 --- a/docs/learn/xcm/journey-register.html +++ b/docs/learn/xcm/journey-register.html @@ -19,7 +19,7 @@ - + @@ -33,7 +33,7 @@ and error handler instruction are executed. These instructions are executed regardless of whether an error occurred.

    ClearError

    ClearError

    The ClearError instruction clears the Error Register by setting it to None.

    ClearTransactStatus

    ClearTransactStatus

    The ClearTransactStatus instruction sets the Transact Status Register to its default, cleared, value.

    SetTopic

    SetTopic([u8; 32])

    The SetTopic instruction sets the Topic Register.

    ClearTopic

    ClearTopic

    The ClearTopic instruction clears the Topic Register.

    - + \ No newline at end of file diff --git a/docs/learn/xcm/journey-summary.html b/docs/learn/xcm/journey-summary.html index 0ad4d8e46a84..4af233c879eb 100644 --- a/docs/learn/xcm/journey-summary.html +++ b/docs/learn/xcm/journey-summary.html @@ -19,7 +19,7 @@ - + @@ -27,7 +27,7 @@ - + \ No newline at end of file diff --git a/docs/learn/xcm/journey-transact.html b/docs/learn/xcm/journey-transact.html index 408035779865..2574bc23767c 100644 --- a/docs/learn/xcm/journey-transact.html +++ b/docs/learn/xcm/journey-transact.html @@ -19,7 +19,7 @@ - + @@ -50,7 +50,7 @@ Parachain(1). This function requires the origin to be root. We enable the root origin for the relay chain by setting ParentAsSuperuser for the OriginConverter config type.

    let call = parachain::RuntimeCall::Balances(
    pallet_balances::Call::<parachain::Runtime>::set_balance {
    who: ALICE,
    new_free: 5 * AMOUNT,
    new_reserved: 0,
    },
    );

    let message = Xcm(vec![
    WithdrawAsset((Here, AMOUNT).into()),
    BuyExecution { fees: (Here, AMOUNT).into(), weight_limit: WeightLimit::Unlimited },
    Transact {
    origin_kind: OriginKind::Superuser,
    require_weight_at_most: Weight::from_parts(INITIAL_BALANCE as u64, 1024 * 1024),
    call: call.encode().into(),
    },
    ]);

    Example 2

    For the full example, check the repo.

    In this example, as Parachain(1), we create an NFT collection on the relay chain and we then mint an NFT with ID 1. The admin for the nft collection is parachain(1). The call looks as follows:

    let create_collection = relay_chain::RuntimeCall::Uniques(
    pallet_uniques::Call::<relay_chain::Runtime>::create {
    collection: 1u32,
    admin: parachain_sovereign_account_id(1),
    }
    );

    The owner of the NFT is Alice. The nft mint call looks as follows:

    let mint = relay_chain::RuntimeCall::Uniques(
    pallet_uniques::Call::<relay_chain::Runtime>::mint {
    collection: 1u32,
    item: 1u32,
    owner: ALICE,
    }
    );

    The xcm message contains the following instructions:

    1. Withdraw native assets from the Parachain(1)'s sovereign account.
    2. Buy weight with these assets.
    3. Create a collection with as admin and owner the sovereign account of Parachain(1).
    4. Mints an NFT in the collection with item ID 1 and as owner Alice.
    let message = Xcm(vec![
    WithdrawAsset((Here, AMOUNT).into()),
    BuyExecution { fees: (Here, AMOUNT).into(), weight_limit: WeightLimit::Unlimited },
    Transact {
    origin_kind: OriginKind::SovereignAccount,
    require_weight_at_most: Weight::from_parts(INITIAL_BALANCE as u64, 1024 * 1024),
    call: create_collection.encode().into(),
    },
    Transact {
    origin_kind: OriginKind::SovereignAccount,
    require_weight_at_most: Weight::from_parts(INITIAL_BALANCE as u64, 1024 * 1024),
    call: mint.encode().into(),
    },
    ]);

    Next:

    Check out the following instructions that interact with the Transact Status Register:

    - + \ No newline at end of file diff --git a/docs/learn/xcm/journey-version.html b/docs/learn/xcm/journey-version.html index 94a40d04434e..d3d808fd66ad 100644 --- a/docs/learn/xcm/journey-version.html +++ b/docs/learn/xcm/journey-version.html @@ -19,7 +19,7 @@ - + @@ -35,7 +35,7 @@ send back its currently AdvertisedVersion and will keep the subscribed location up to date when the version changes. The subscribed location can unsubscribe to version changes by sending the UnsubscribeVersion instruction.

    SubscribeVersion {
    #[codec(compact)]
    query_id: QueryId,
    max_response_weight: Weight,
    }

    UnsubscribeVersion

    Check out the example.

    - + \ No newline at end of file diff --git a/docs/learn/xcm/journey.html b/docs/learn/xcm/journey.html index 9c5b85b70f3c..2b87e8e4d79c 100644 --- a/docs/learn/xcm/journey.html +++ b/docs/learn/xcm/journey.html @@ -19,13 +19,13 @@ - +
    - + \ No newline at end of file diff --git a/docs/learn/xcm/journey/transfers-reserve.html b/docs/learn/xcm/journey/transfers-reserve.html index 16907a2bcea7..5638f74f908d 100644 --- a/docs/learn/xcm/journey/transfers-reserve.html +++ b/docs/learn/xcm/journey/transfers-reserve.html @@ -19,7 +19,7 @@ - + @@ -73,7 +73,7 @@ It's the sender the one who doesn't need to trust the destination, since it'll ever only be minting derivatives anyway, the sender/reserve controls the real assets and issuance.

    Next steps

    Next, we'll talk about a very important topic we mentioned before but skipped in this chapter, paying fees for the effects our XCMs have.

    - + \ No newline at end of file diff --git a/docs/learn/xcm/journey/transfers-summary.html b/docs/learn/xcm/journey/transfers-summary.html index 2edf642e208d..4c574cedb28d 100644 --- a/docs/learn/xcm/journey/transfers-summary.html +++ b/docs/learn/xcm/journey/transfers-summary.html @@ -19,7 +19,7 @@ - + @@ -42,7 +42,7 @@ paying for execution and depositing the rest to another account on the same system. The full example can be seen in the repo.

    Transferring between systems

    But what if you want to make a transfer from one system to another? There are two ways of doing this:

    • Asset teleportation
    • Reserve-backed transfers

    We'll be discussing both in the following chapters.

    - + \ No newline at end of file diff --git a/docs/learn/xcm/journey/transfers-teleport.html b/docs/learn/xcm/journey/transfers-teleport.html index ed4f67d11a39..2a3254734c6e 100644 --- a/docs/learn/xcm/journey/transfers-teleport.html +++ b/docs/learn/xcm/journey/transfers-teleport.html @@ -19,7 +19,7 @@ - + @@ -61,7 +61,7 @@ another system. We could do so with the following program:

    let message = Xcm(vec![
    WithdrawAsset((GeneralIndex(1), 42u32).into()),
    InitiateTeleport {
    assets: All.into(),
    dest: Parachain(1).into(),
    xcm: Xcm(vec![DepositAsset {
    assets: All.into(),
    beneficiary: Junction::AccountId32 {
    id: ALICE.into(),
    network: None,
    }.into()
    }]),
    },
    ]);

    Very little changes, in fact, only the MultiAsset we're referencing changes, like we would expect. All the teleportation logic stays the same. The example assumes an NFT with index 42 inside a collection with index 1.

    Next steps

    We'll look at reserve-backed transfers next.

    - + \ No newline at end of file diff --git a/docs/learn/xcm/journey/transfers.html b/docs/learn/xcm/journey/transfers.html index f8f96abf21dd..16c7a53646e5 100644 --- a/docs/learn/xcm/journey/transfers.html +++ b/docs/learn/xcm/journey/transfers.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/learn/xcm/overview-architecture.html b/docs/learn/xcm/overview-architecture.html index c6fce8dc5f9d..675b22276a56 100644 --- a/docs/learn/xcm/overview-architecture.html +++ b/docs/learn/xcm/overview-architecture.html @@ -19,7 +19,7 @@ - + @@ -48,7 +48,7 @@ about later. It's the glue between XCM and FRAME, which is highly used in the Polkadot ecosystem.

    Simulator

    The simulator allows for testing XCMs fast, without needing to boot up several different nodes in a network, or test in production. It's a very useful tool which we'll use throughout this document to build and test different XCMs.

    - + \ No newline at end of file diff --git a/docs/learn/xcm/overview-format.html b/docs/learn/xcm/overview-format.html index 6fcdc8125943..99e04d3fdfc6 100644 --- a/docs/learn/xcm/overview-format.html +++ b/docs/learn/xcm/overview-format.html @@ -19,7 +19,7 @@ - + @@ -38,7 +38,7 @@ changes. XCM communicates intentions; the actual interpretation and behaviour of each instruction in an XCM is defined by target's XCVM implementation.

    Both simple and more complex scenarios can be expressed, and developers are encouraged to design and implement diverse cross-consensus communication solutions.

    - + \ No newline at end of file diff --git a/docs/learn/xcm/overview-intro.html b/docs/learn/xcm/overview-intro.html index 3f27cfb12835..59749cbd826d 100644 --- a/docs/learn/xcm/overview-intro.html +++ b/docs/learn/xcm/overview-intro.html @@ -19,7 +19,7 @@ - + @@ -41,7 +41,7 @@ propose changes, which end up in newer versions, the current one being v3. To keep up with the development of the format, or to propose changes, go to the XCM format repository.

    - + \ No newline at end of file diff --git a/docs/learn/xcm/overview-summary.html b/docs/learn/xcm/overview-summary.html index 77593fc6f7d2..b85a2ccdf38b 100644 --- a/docs/learn/xcm/overview-summary.html +++ b/docs/learn/xcm/overview-summary.html @@ -19,7 +19,7 @@ - + @@ -32,7 +32,7 @@ interactions between them. XCM is meant to be used by developers to package these interactions into their runtime logic before exposing that functionality to end users.

    This chapter will cover what XCM is, what it isn't, and why it matters before exploring the different components that make up the XCM ecosystem.

    - + \ No newline at end of file diff --git a/docs/learn/xcm/overview-xcvm.html b/docs/learn/xcm/overview-xcvm.html index 1db50c423f93..1d156b15a966 100644 --- a/docs/learn/xcm/overview-xcvm.html +++ b/docs/learn/xcm/overview-xcvm.html @@ -19,7 +19,7 @@ - + @@ -41,7 +41,7 @@ putting them in and taking them from this register. This register is used by several of the instructions we will look at later, including DepositAsset and WithdrawAsset.

    For more information on other registers, see the All XCVM Registers section.

    - + \ No newline at end of file diff --git a/docs/learn/xcm/overview.html b/docs/learn/xcm/overview.html index fcac5dda00d3..1123563ce599 100644 --- a/docs/learn/xcm/overview.html +++ b/docs/learn/xcm/overview.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/learn/xcm/quickstart-first-look.html b/docs/learn/xcm/quickstart-first-look.html index e544a009494f..4dea1bf71aed 100644 --- a/docs/learn/xcm/quickstart-first-look.html +++ b/docs/learn/xcm/quickstart-first-look.html @@ -19,7 +19,7 @@ - + @@ -51,7 +51,7 @@ examples for every instruction in the journey through XCM chapter. First, it's important to learn the fundamentals, MultiLocation, MultiAsset, and other concepts in XCM. We'll talk about those next.

    - + \ No newline at end of file diff --git a/docs/learn/xcm/quickstart-simulator.html b/docs/learn/xcm/quickstart-simulator.html index b5062eab30e5..3d75ce2db601 100644 --- a/docs/learn/xcm/quickstart-simulator.html +++ b/docs/learn/xcm/quickstart-simulator.html @@ -19,7 +19,7 @@ - + @@ -31,7 +31,7 @@ actually test your XCM-powered solution. We'll get into tools and best practices for testing in the testing chapter.

    We'll use the simulator throughout the documentation to show different XCMs in action. In the next section we will take a first look at an XCM.

    - + \ No newline at end of file diff --git a/docs/learn/xcm/quickstart-summary.html b/docs/learn/xcm/quickstart-summary.html index 6a48176dda34..5d206e83b1a1 100644 --- a/docs/learn/xcm/quickstart-summary.html +++ b/docs/learn/xcm/quickstart-summary.html @@ -19,7 +19,7 @@ - + @@ -29,7 +29,7 @@ installation guide.

    Running the Examples

    All examples in the documentation are located in the repository. Follow these steps to run the first-look example. First clone the repository:

    git clone git@github.com:paritytech/xcm-docs.git
    cd xcm-docs/examples

    To run the first-look example, run the following line:

    cargo test -p xcm-examples para_a_simple_transfer -- --nocapture

    It should show you the following output:

    running 1 test
    test first_look::tests::para_a_simple_transfer ... ok

    test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 1 filtered out; finished in 0.01s
    - + \ No newline at end of file diff --git a/docs/learn/xcm/quickstart.html b/docs/learn/xcm/quickstart.html index 34920cc65a0a..d24de74bc1c5 100644 --- a/docs/learn/xcm/quickstart.html +++ b/docs/learn/xcm/quickstart.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/learn/xcm/reference-glossary.html b/docs/learn/xcm/reference-glossary.html index 4d75de885b6e..05ff6dd05ca1 100644 --- a/docs/learn/xcm/reference-glossary.html +++ b/docs/learn/xcm/reference-glossary.html @@ -19,7 +19,7 @@ - + @@ -44,7 +44,7 @@ through the relay chain.

    HRMP (Horizontal Message Passing)

    Transport-layer protocol that allows a parachain to send messages to a sibling parachain going through the relay chain. It's a precursor to XCMP, also known as XCMP-lite. It uses a mixture of UMP and VMP.

    - + \ No newline at end of file diff --git a/docs/learn/xcm/reference-xcvm-registers.html b/docs/learn/xcm/reference-xcvm-registers.html index 137429687bae..7672051f8ad7 100644 --- a/docs/learn/xcm/reference-xcvm-registers.html +++ b/docs/learn/xcm/reference-xcvm-registers.html @@ -19,7 +19,7 @@ - + @@ -27,7 +27,7 @@
    - + \ No newline at end of file diff --git a/docs/learn/xcm/references.html b/docs/learn/xcm/references.html index 9e3c750e0ac4..c12942db278a 100644 --- a/docs/learn/xcm/references.html +++ b/docs/learn/xcm/references.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/learn/xcm/testing.html b/docs/learn/xcm/testing.html index 2a8089185039..710c3d3d57e1 100644 --- a/docs/learn/xcm/testing.html +++ b/docs/learn/xcm/testing.html @@ -19,7 +19,7 @@ - + @@ -39,7 +39,7 @@ messaging infrastructure as live networks, as the transport mechanism is being mocked out. Also, consensus related events are not tested, like disputes, staking and iamonline events. To test for these events, parachains can use E2E tests.

    End-to-End testing

    There are two frameworks being used in the ecosystem to do e2e testing:

    - + \ No newline at end of file diff --git a/docs/ledger.html b/docs/ledger.html index b8874bb1753c..88e135842256 100644 --- a/docs/ledger.html +++ b/docs/ledger.html @@ -19,7 +19,7 @@ - + @@ -141,7 +141,7 @@ device after the installation.
  • If you wish to revert the version to the stable release, go to Ledger Live. The app will automatically detect the developer release and give the option to install the previous stable release.
  • - + \ No newline at end of file diff --git a/docs/maintain-bootnode.html b/docs/maintain-bootnode.html index aede5bb4d59d..ef5747243a64 100644 --- a/docs/maintain-bootnode.html +++ b/docs/maintain-bootnode.html @@ -19,7 +19,7 @@ - + @@ -41,7 +41,7 @@ port 30311:

    /etc/nginx/sites-enabled/dot-bootnode

    server {
    listen 30312 ssl http2 default_server;
    server_name dot-bootnode.stakeworld.io;
    root /var/www/html;

    ssl_certificate "<your_cert";
    ssl_certificate_key "<your_key>";

    location / {
    proxy_buffers 16 4k;
    proxy_buffer_size 2k;
    proxy_pass http://localhost:30311;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
    proxy_set_header Host $host;
    }

    }

    Testing Bootnode Connection

    If we have the above node running with DNS name dot-bootnode.stakeworld.io, proxied with a valid certificate and node-id 12D3KooWAb5MyC1UJiEQJk4Hg4B2Vi3AJdqSUhTGYUqSnEqCFMFg then the following commands should give you a: "syncing 1 peers".

    tip

    You can add -lsub-libp2p=trace on the end to get libp2p trace logging for debugging purposes.

    p2p:

    polkadot --chain polkadot --base-path /tmp/node --name "Bootnode testnode" --reserved-only --reserved-nodes "/dns/dot-bootnode.stakeworld.io/tcp/30310/p2p/12D3KooWAb5MyC1UJiEQJk4Hg4B2Vi3AJdqSUhTGYUqSnEqCFMFg" --no-hardware-benchmarks

    p2p/ws:

    polkadot --chain polkadot --base-path /tmp/node --name "Bootnode testnode" --reserved-only --reserved-nodes "/dns/dot-bootnode.stakeworld.io/tcp/30311/ws/p2p/12D3KooWAb5MyC1UJiEQJk4Hg4B2Vi3AJdqSUhTGYUqSnEqCFMFg" --no-hardware-benchmarks

    p2p/wss:

    polkadot --chain polkadot --base-path /tmp/node --name "Bootnode testnode" --reserved-only --reserved-nodes "/dns/dot-bootnode.stakeworld.io/tcp/30312/wss/p2p/12D3KooWAb5MyC1UJiEQJk4Hg4B2Vi3AJdqSUhTGYUqSnEqCFMFg" --no-hardware-benchmarks
    - + \ No newline at end of file diff --git a/docs/maintain-endpoints.html b/docs/maintain-endpoints.html index 580fe8aba69b..647f2c1e653c 100644 --- a/docs/maintain-endpoints.html +++ b/docs/maintain-endpoints.html @@ -19,7 +19,7 @@ - + @@ -40,7 +40,7 @@ provide additional services such as higher rate limits, potentially more reliable and scalable service, and additional metrics.

    note

    The list of third party RPC endpoints above for Polkadot and Kusama is directly fetched from Polkdot-JS UI

    - + \ No newline at end of file diff --git a/docs/maintain-errors.html b/docs/maintain-errors.html index bf2e8ab6a251..1ee48a511345 100644 --- a/docs/maintain-errors.html +++ b/docs/maintain-errors.html @@ -19,7 +19,7 @@ - + @@ -50,7 +50,7 @@ will wait to be executed at the correct place in the nonce sequence OR it will get discarded due to some other error (ex. the validity period expires).*

    Error Table

    The below table is a reference to the errors that exists in Polkadot. It is generated from the runtime's metadata.

    PalletErrorDocumentation
    System (0)
    InvalidSpecName (0)The name of specification does not match between the current runtime and the new runtime.
    SpecVersionNeedsToIncrease (1)The specification version is not allowed to decrease between the current runtime and the new runtime.
    FailedToExtractRuntimeVersion (2)Failed to extract the runtime version from the new runtime. Either calling Core_version or decoding RuntimeVersion failed.
    NonDefaultComposite (3)Suicide called when the account has non-default composite data.
    NonZeroRefCount (4)There is a non-zero reference count preventing the account from being purged.
    Scheduler (1)
    FailedToSchedule (0)Failed to schedule a call
    NotFound (1)Cannot find the scheduled call.
    TargetBlockNumberInPast (2)Given target block number is in the past.
    RescheduleNoChange (3)Reschedule failed because it does not change scheduled time.
    Balances (5)
    VestingBalance (0)Vesting balance too high to send value
    LiquidityRestrictions (1)Account liquidity restrictions prevent withdrawal
    Overflow (2)Got an overflow after adding
    InsufficientBalance (3)Balance too low to send value
    ExistentialDeposit (4)Value too low to create account due to existential deposit
    KeepAlive (5)Transfer/payment would kill account
    ExistingVestingSchedule (6)A vesting schedule already exists for this account
    DeadAccount (7)Beneficiary account must pre-exist
    Authorship (6)
    InvalidUncleParent (0)The uncle parent not in the chain.
    UnclesAlreadySet (1)Uncles already set in the block.
    TooManyUncles (2)Too many uncles.
    GenesisUncle (3)The uncle is genesis.
    TooHighUncle (4)The uncle is too high in chain.
    UncleAlreadyIncluded (5)The uncle is already included.
    OldUncle (6)The uncle isn't recent enough to be included.
    Staking (7)
    NotController (0)Not a controller account.
    NotStash (1)Not a stash account.
    AlreadyBonded (2)Stash is already bonded.
    AlreadyPaired (3)Controller is already paired.
    EmptyTargets (4)Targets cannot be empty.
    DuplicateIndex (5)Duplicate index.
    InvalidSlashIndex (6)Slash record index out of bounds.
    InsufficientValue (7)Can not bond with value less than minimum balance.
    NoMoreChunks (8)Can not schedule more unlock chunks.
    NoUnlockChunk (9)Can not rebond without unlocking chunks.
    FundedTarget (10)Attempting to target a stash that still has funds.
    InvalidEraToReward (11)Invalid era to reward.
    InvalidNumberOfNominations (12)Invalid number of nominations.
    NotSortedAndUnique (13)Items are not sorted and unique.
    AlreadyClaimed (14)Rewards for this era have already been claimed for this validator.
    OffchainElectionEarlySubmission (15)The submitted result is received out of the open window.
    OffchainElectionWeakSubmission (16)The submitted result is not as good as the one stored on chain.
    SnapshotUnavailable (17)The snapshot data of the current window is missing.
    OffchainElectionBogusWinnerCount (18)Incorrect number of winners were presented.
    OffchainElectionBogusWinner (19)One of the submitted winners is not an active candidate on chain (index is out of range in snapshot).
    OffchainElectionBogusCompact (20)Error while building the assignment type from the compact. This can happen if an index is invalid, or if the weights overflow.
    OffchainElectionBogusNominator (21)One of the submitted nominators is not an active nominator on chain.
    OffchainElectionBogusNomination (22)One of the submitted nominators has an edge to which they have not voted on chain.
    OffchainElectionSlashedNomination (23)One of the submitted nominators has an edge which is submitted before the last non-zero slash of the target.
    OffchainElectionBogusSelfVote (24)A self vote must only be originated from a validator to ONLY themselves.
    OffchainElectionBogusEdge (25)The submitted result has unknown edges that are not among the presented winners.
    OffchainElectionBogusScore (26)The claimed score does not match with the one computed from the data.
    OffchainElectionBogusElectionSize (27)The election size is invalid.
    CallNotAllowed (28)The call is not allowed at the given time due to restrictions of election period.
    IncorrectHistoryDepth (29)Incorrect previous history depth input provided.
    IncorrectSlashingSpans (30)Incorrect number of slashing spans provided.
    Session (9)
    InvalidProof (0)Invalid ownership proof.
    NoAssociatedValidatorId (1)No associated validator ID for account.
    DuplicatedKey (2)Registered duplicate key.
    NoKeys (3)No keys are associated with this account.
    Grandpa (11)
    PauseFailed (0)Attempt to signal GRANDPA pause when the authority set isn't live (either paused or already pending pause).
    ResumeFailed (1)Attempt to signal GRANDPA resume when the authority set isn't paused (either live or already pending resume).
    ChangePending (2)Attempt to signal GRANDPA change with one already pending.
    TooSoon (3)Cannot signal forced change so soon after last.
    InvalidKeyOwnershipProof (4)A key ownership proof provided as part of an equivocation report is invalid.
    InvalidEquivocationProof (5)An equivocation proof provided as part of an equivocation report is invalid.
    DuplicateOffenceReport (6)A given equivocation report is valid but already previously reported.
    ImOnline (12)
    InvalidKey (0)Non existent public key.
    DuplicatedHeartbeat (1)Duplicated heartbeat.
    Democracy (14)
    ValueLow (0)Value too low
    ProposalMissing (1)Proposal does not exist
    BadIndex (2)Unknown index
    AlreadyCanceled (3)Cannot cancel the same proposal twice
    DuplicateProposal (4)Proposal already made
    ProposalBlacklisted (5)Proposal still blacklisted
    NotSimpleMajority (6)Next external proposal not simple majority
    InvalidHash (7)Invalid hash
    NoProposal (8)No external proposal
    AlreadyVetoed (9)Identity may not veto a proposal twice
    NotDelegated (10)Not delegated
    DuplicatePreimage (11)Preimage already noted
    NotImminent (12)Not imminent
    TooEarly (13)Too early
    Imminent (14)Imminent
    PreimageMissing (15)Preimage not found
    ReferendumInvalid (16)Vote given for invalid referendum
    PreimageInvalid (17)Invalid preimage
    NoneWaiting (18)No proposals waiting
    NotLocked (19)The target account does not have a lock.
    NotExpired (20)The lock on the account to be unlocked has not yet expired.
    NotVoter (21)The given account did not vote on the referendum.
    NoPermission (22)The actor has no permission to conduct the action.
    AlreadyDelegating (23)The account is already delegating.
    Overflow (24)An unexpected integer overflow occurred.
    Underflow (25)An unexpected integer underflow occurred.
    InsufficientFunds (26)Too high a balance was provided that the account cannot afford.
    NotDelegating (27)The account is not currently delegating.
    VotesExist (28)The account currently has votes attached to it and the operation cannot succeed until these are removed, either through unvote or reap_vote.
    InstantNotAllowed (29)The instant referendum origin is currently disallowed.
    Nonsense (30)Delegation to oneself makes no sense.
    WrongUpperBound (31)Invalid upper bound.
    MaxVotesReached (32)Maximum number of votes reached.
    InvalidWitness (33)The provided witness data is wrong.
    TooManyProposals (34)Maximum number of proposals reached.
    Council (15)
    NotMember (0)Account is not a member
    DuplicateProposal (1)Duplicate proposals not allowed
    ProposalMissing (2)Proposal must exist
    WrongIndex (3)Mismatched index
    DuplicateVote (4)Duplicate vote ignored
    AlreadyInitialized (5)Members are already initialized!
    TooEarly (6)The close call was made too early, before the end of the voting.
    TooManyProposals (7)There can only be a maximum of MaxProposals active proposals.
    WrongProposalWeight (8)The given weight bound for the proposal was too low.
    WrongProposalLength (9)The given length bound for the proposal was too low.
    TechnicalCommittee (16)
    NotMember (0)Account is not a member
    DuplicateProposal (1)Duplicate proposals not allowed
    ProposalMissing (2)Proposal must exist
    WrongIndex (3)Mismatched index
    DuplicateVote (4)Duplicate vote ignored
    AlreadyInitialized (5)Members are already initialized!
    TooEarly (6)The close call was made too early, before the end of the voting.
    TooManyProposals (7)There can only be a maximum of MaxProposals active proposals.
    WrongProposalWeight (8)The given weight bound for the proposal was too low.
    WrongProposalLength (9)The given length bound for the proposal was too low.
    ElectionsPhragmen (17)
    UnableToVote (0)Cannot vote when no candidates or members exist.
    NoVotes (1)Must vote for at least one candidate.
    TooManyVotes (2)Cannot vote more than candidates.
    MaximumVotesExceeded (3)Cannot vote more than maximum allowed.
    LowBalance (4)Cannot vote with stake less than minimum balance.
    UnableToPayBond (5)Voter can not pay voting bond.
    MustBeVoter (6)Must be a voter.
    ReportSelf (7)Cannot report self.
    DuplicatedCandidate (8)Duplicated candidate submission.
    MemberSubmit (9)Member cannot re-submit candidacy.
    RunnerSubmit (10)Runner cannot re-submit candidacy.
    InsufficientCandidateFunds (11)Candidate does not have enough funds.
    NotMember (12)Not a member.
    InvalidCandidateCount (13)The provided count of number of candidates is incorrect.
    InvalidVoteCount (14)The provided count of number of votes is incorrect.
    InvalidRenouncing (15)The renouncing origin presented a wrong Renouncing parameter.
    InvalidReplacement (16)Prediction regarding replacement after member removal is wrong.
    Treasury (19)
    InsufficientProposersBalance (0)Proposer's balance is too low.
    InvalidIndex (1)No proposal or bounty at that index.
    ReasonTooBig (2)The reason given is just too big.
    AlreadyKnown (3)The tip was already found/started.
    UnknownTip (4)The tip hash is unknown.
    NotFinder (5)The account attempting to retract the tip is not the finder of the tip.
    StillOpen (6)The tip cannot be claimed/closed because there are not enough tippers yet.
    Premature (7)The tip cannot be claimed/closed because it's still in the countdown period.
    UnexpectedStatus (8)The bounty status is unexpected.
    RequireCurator (9)Require bounty curator.
    InvalidValue (10)Invalid bounty value.
    InvalidFee (11)Invalid bounty fee.
    PendingPayout (12)A bounty payout is pending. To cancel the bounty, you must unassign and slash the curator.
    Claims (24)
    InvalidEthereumSignature (0)Invalid Ethereum signature.
    SignerHasNoClaim (1)Ethereum address has no claim.
    SenderHasNoClaim (2)Account ID sending tx has no claim.
    PotUnderflow (3)There's not enough in the pot to pay out some unvested amount. Generally implies a logic error.
    InvalidStatement (4)A needed statement was not included.
    VestedBalanceExists (5)The account already has a vested balance.
    Vesting (25)
    NotVesting (0)The account given is not vesting.
    ExistingVestingSchedule (1)An existing vesting schedule already exists for this account that cannot be clobbered.
    AmountLow (2)Amount being transferred is too low to create a vesting schedule.
    Identity (28)
    TooManySubAccounts (0)Too many subs-accounts.
    NotFound (1)Account isn't found.
    NotNamed (2)Account isn't named.
    EmptyIndex (3)Empty index.
    FeeChanged (4)Fee is changed.
    NoIdentity (5)No identity found.
    StickyJudgement (6)Sticky judgement.
    JudgementGiven (7)Judgement given.
    InvalidJudgement (8)Invalid judgement.
    InvalidIndex (9)The index is invalid.
    InvalidTarget (10)The target is invalid.
    TooManyFields (11)Too many additional fields.
    TooManyRegistrars (12)Maximum amount of registrars reached. Cannot add any more.
    AlreadyClaimed (13)Account ID is already named.
    NotSub (14)Sender is not a sub-account.
    NotOwned (15)Sub-account isn't owned by sender.
    Proxy (29)
    TooMany (0)There are too many proxies registered or too many announcements pending.
    NotFound (1)Proxy registration not found.
    NotProxy (2)Sender is not a proxy of the account to be proxied.
    Unproxyable (3)A call which is incompatible with the proxy type's filter was attempted.
    Duplicate (4)Account is already a proxy.
    NoPermission (5)Call may not be made by proxy because it may escalate its privileges.
    Unannounced (6)Announcement, if made at all, was made too recently.
    Multisig (30)
    MinimumThreshold (0)Threshold must be 2 or greater.
    AlreadyApproved (1)Call is already approved by this signatory.
    NoApprovalsNeeded (2)Call doesn't need any (more) approvals.
    TooFewSignatories (3)There are too few signatories in the list.
    TooManySignatories (4)There are too many signatories in the list.
    SignatoriesOutOfOrder (5)The signatories were provided out of order; they should be ordered.
    SenderInSignatories (6)The sender was contained in the other signatories; it shouldn't be.
    NotFound (7)Multisig operation not found when attempting to cancel.
    NotOwner (8)Only the account that originally created the multisig is able to cancel it.
    NoTimepoint (9)No timepoint was given, yet the multisig operation is already underway.
    WrongTimepoint (10)A different timepoint was given to the multisig operation that is underway.
    UnexpectedTimepoint (11)A timepoint was given, yet no multisig operation is underway.
    WeightTooLow (12)The maximum weight information provided was too low.
    AlreadyStored (13)The data to be stored is already stored.
    - + \ No newline at end of file diff --git a/docs/maintain-guides-avoid-slashing.html b/docs/maintain-guides-avoid-slashing.html index ff1e7044ea46..1984723cdbd8 100644 --- a/docs/maintain-guides-avoid-slashing.html +++ b/docs/maintain-guides-avoid-slashing.html @@ -19,7 +19,7 @@ - + @@ -68,7 +68,7 @@ obtain pristine binaries or source code and to ensure the security of their node:

    1. Always download either source files or binaries from the official Parity repository
    2. Verify the hash of downloaded files.
    3. Use the W3F secure validator setup or adhere to its principles
    4. Ensure essential security items are checked, use a firewall, manage user access, use SSH certificates
    5. Avoid using your server as a general-purpose system. Hosting a validator on your workstation or one that hosts other services increases the risk of maleficence.

    Examples

    NetworkEraEvent TypeDetailsAction Taken
    Polkadot774Small EquivocationThe validator migrated servers and cloned the keystore folder. The on-chain event can be viewed here.The validator did not submit a request for the slash to be canceled.
    Kusama3329Small EquivocationThe validator operated a test machine with cloned keys; the test machine was online at the same time as the primary, which resulted in a slash. Details can be found here.The validator requested a cancellation of the slash, but the council declined.
    Kusama3995Small EquivocationThe validator noticed several errors, after which the client crashed, and a slash was applied. The validator recorded all events and opened GitHub issues to allow for technical opinions to be shared. Details can be found here.The validator requested to cancel the slash. The council approved the request as they believed the error was not operator related.
    Kusama4543Medium UnresponsivenessA large amount of disputes flooded the network resulting in an application fault. The fault caused the client software to hang and as a result ~197 unique validators become unresponsive. Further details can be found here.The pending slash was cancelled and with runtime 9350 all lost nominations were restored. The application bug was addressed with client version 0.9.36
    - + \ No newline at end of file diff --git a/docs/maintain-guides-democracy.html b/docs/maintain-guides-democracy.html index 302f0e9d5ae9..904eb9177b6e 100644 --- a/docs/maintain-guides-democracy.html +++ b/docs/maintain-guides-democracy.html @@ -19,7 +19,7 @@ - + @@ -162,7 +162,7 @@ a decimal integer. The bitfield stores both the conviction and aye/nay boolean, where the boolean is represented using the MSB of the byte. This would mean that the grouping of the 7 remaining bits is used to store the conviction.

    - + \ No newline at end of file diff --git a/docs/maintain-guides-how-to-chill.html b/docs/maintain-guides-how-to-chill.html index 951170a2ebb5..8efd70e47d07 100644 --- a/docs/maintain-guides-how-to-chill.html +++ b/docs/maintain-guides-how-to-chill.html @@ -19,7 +19,7 @@ - + @@ -79,7 +79,7 @@ Polkadot is set to None eliminating the upper bound on the number of nominators on the network. Due to this, the chillOther extrinsic on Polkadot network has no effect as the chill threshold will never be met.

    - + \ No newline at end of file diff --git a/docs/maintain-guides-how-to-join-council.html b/docs/maintain-guides-how-to-join-council.html index 32b89fbcca53..fbe69b3569a8 100644 --- a/docs/maintain-guides-how-to-join-council.html +++ b/docs/maintain-guides-how-to-join-council.html @@ -19,7 +19,7 @@ - + @@ -43,7 +43,7 @@ the row "Members".

    council members list

    Now you are able to participate on the council by making motions or voting proposals. To join in on the active discussions, join the Polkadot Direction channel.

    - + \ No newline at end of file diff --git a/docs/maintain-guides-how-to-monitor-your-node.html b/docs/maintain-guides-how-to-monitor-your-node.html index a3cd2ab0329e..e8d7e4b47a93 100644 --- a/docs/maintain-guides-how-to-monitor-your-node.html +++ b/docs/maintain-guides-how-to-monitor-your-node.html @@ -19,7 +19,7 @@ - + @@ -83,7 +83,7 @@ here. There are other interesting alerts you may find useful here.

    groups:
    - name: alert_rules
    rules:
    - alert: InstanceDown
    expr: up == 0
    for: 5m
    labels:
    severity: critical
    annotations:
    summary: "Instance [{{ $labels.instance }}] down"
    description: "[{{ $labels.instance }}] of job [{{ $labels.job }}] has been down for more than 1 minute."

    Change the ownership of this file to prometheus instead of root by running:

    sudo chown prometheus:prometheus rules.yml

    To check the rules defined in the "rules.yml" is syntactically correct, run the following command:

    sudo -u prometheus promtool check rules rules.yml

    Finally, restart everything by running:

    sudo systemctl restart prometheus && sudo systemctl restart alertmanager

    Now if one of your target instances down, you will receive an alert on the AlertManager and Gmail like below.

    grafana-am-6

    - + \ No newline at end of file diff --git a/docs/maintain-guides-how-to-nominate-kusama.html b/docs/maintain-guides-how-to-nominate-kusama.html index 1ee3fb54dd36..9675969fb05e 100644 --- a/docs/maintain-guides-how-to-nominate-kusama.html +++ b/docs/maintain-guides-how-to-nominate-kusama.html @@ -19,7 +19,7 @@ - + @@ -96,7 +96,7 @@ Polkascan. Also, you can verify the bonding state under the Staking page on the Polkadot-JS Apps Dashboard.

    Step 3. Nominate a validator

    To nominate a validator, you can execute the following command:

    polkadot-js-api --seed "MNEMONIC_PHRASE" tx.staking.nominate '["VALIDATOR_ADDRESS"]' --ws WS_ENDPOINT
    polkadot-js-api --seed "xxxx xxxxx xxxx xxxxx" tx.staking.nominate '["CmD9vaMYoiKe7HiFnfkftwvhKbxN9bhyjcDrfFRGbifJEG8","E457XaKbj2yTB2URy8N4UuzmyuFRkcdxYs67UvSgVr7HyFb"]' --ws wss://kusama-rpc.polkadot.io/

    After a few seconds, you should see the hash of the transaction and if you would like to verify the nomination status, you can check that on the Polkadot-JS UI as well.

    - + \ No newline at end of file diff --git a/docs/maintain-guides-how-to-nominate-polkadot.html b/docs/maintain-guides-how-to-nominate-polkadot.html index 97848d145273..c58cfbe0c76b 100644 --- a/docs/maintain-guides-how-to-nominate-polkadot.html +++ b/docs/maintain-guides-how-to-nominate-polkadot.html @@ -19,7 +19,7 @@ - + @@ -67,7 +67,7 @@ Polkascan. Also, you can verify the bonding state under the Staking page on the Polkadot-JS Apps Dashboard.

    Step 3. Nominate a validator

    To nominate a validator, you can execute the following command:

    polkadot-js-api --seed "MNEMONIC_PHRASE" tx.staking.nominate '["VALIDATOR_ADDRESS"]' --ws WS_ENDPOINT
    polkadot-js-api --seed "xxxx xxxxx xxxx xxxxx" tx.staking.nominate '["CmD9vaMYoiKe7HiFnfkftwvhKbxN9bhyjcDrfFRGbifJEG8","E457XaKbj2yTB2URy8N4UuzmyuFRkcdxYs67UvSgVr7HyFb"]' --ws wss://rpc.polkadot.io

    After a few seconds, you should see the hash of the transaction, and if you would like to verify the nomination status, you can check that on the Polkadot-JS UI as well.

    - + \ No newline at end of file diff --git a/docs/maintain-guides-how-to-stop-validating.html b/docs/maintain-guides-how-to-stop-validating.html index bd3a9cd74237..1ed5dbd61565 100644 --- a/docs/maintain-guides-how-to-stop-validating.html +++ b/docs/maintain-guides-how-to-stop-validating.html @@ -19,7 +19,7 @@ - + @@ -40,7 +40,7 @@ transfer your tokens.

    See Unbonding and Rebonding for more details.

    Unbond your tokens

    Unbonding your tokens can be done through the Network > Staking > Account actions page in PolkadotJS Apps by clicking the corresponding stash account dropdown and selecting "Unbond funds". This can also be done through the staking.unbond() extrinsic with the staking proxy account.

    - + \ No newline at end of file diff --git a/docs/maintain-guides-how-to-systemd.html b/docs/maintain-guides-how-to-systemd.html index ded79482553c..db6369d65357 100644 --- a/docs/maintain-guides-how-to-systemd.html +++ b/docs/maintain-guides-how-to-systemd.html @@ -19,7 +19,7 @@ - + @@ -32,7 +32,7 @@ not recognize votes that didn't make it to disk, and will then cast conflicting votes. Delaying the restart will allow the network to progress past potentially conflicting votes, at which point other nodes will not accept them.

    To enable this to autostart on bootup run:

    systemctl enable polkadot-validator.service

    Start it manually with:

    systemctl start polkadot-validator.service

    You can check that it's working with:

    systemctl status polkadot-validator.service

    You can tail the logs with journalctl like so:

    journalctl -f -u polkadot-validator
    - + \ No newline at end of file diff --git a/docs/maintain-guides-how-to-upgrade.html b/docs/maintain-guides-how-to-upgrade.html index 232949ab5453..fd5a6be1accb 100644 --- a/docs/maintain-guides-how-to-upgrade.html +++ b/docs/maintain-guides-how-to-upgrade.html @@ -19,7 +19,7 @@ - + @@ -50,7 +50,7 @@ Validator A.
  • Take note of the Session that this extrinsic was executed in.
  • Again, it is imperative that Validator B is kept running until the current session finishes and two further full sessions have elapsed.

    Once this time has elapsed, Validator A will take over. You can safely stop Validator B.

    NOTE: To verify that the Session has changed, make sure that a block in the new Session is finalized. You should see log messages like the ones below to confirm the change:

    2019-10-28 21:44:13 Applying authority set change scheduled at block #450092
    2019-10-28 21:44:13 Applying GRANDPA set change to new set with 20 authorities
    - + \ No newline at end of file diff --git a/docs/maintain-guides-how-to-validate-kusama.html b/docs/maintain-guides-how-to-validate-kusama.html index c12e139bee5b..d7aea7f0b92f 100644 --- a/docs/maintain-guides-how-to-validate-kusama.html +++ b/docs/maintain-guides-how-to-validate-kusama.html @@ -19,7 +19,7 @@ - + @@ -68,7 +68,7 @@ validator payout document.

    Run a Kusama Validator

    Running a validator on the Kusama network is identical to running a Polkadot validator. Check out the Polkadot guide on how to setup a validator.

    Make sure to adjust the Polkadot guide to run a Kusama network validator (the instructions will also be available in the Polkadot Validator guide):

    • When starting the node pass --chain=kusama CLI flag
    - + \ No newline at end of file diff --git a/docs/maintain-guides-how-to-validate-polkadot.html b/docs/maintain-guides-how-to-validate-polkadot.html index ff48581bd4ea..86f45d3041ae 100644 --- a/docs/maintain-guides-how-to-validate-polkadot.html +++ b/docs/maintain-guides-how-to-validate-polkadot.html @@ -19,7 +19,7 @@ - + @@ -259,7 +259,7 @@ instance, Digital Ocean lists "Mining of Cryptocurrencies" under the Network Abuse section of their Acceptable Use Policy and requires explicit permission to do so. This may extend to other cryptocurrency activity.

    - + \ No newline at end of file diff --git a/docs/maintain-guides-how-to-vote-councillor.html b/docs/maintain-guides-how-to-vote-councillor.html index 0e1aca249f3f..cfcd3a4aae92 100644 --- a/docs/maintain-guides-how-to-vote-councillor.html +++ b/docs/maintain-guides-how-to-vote-councillor.html @@ -19,7 +19,7 @@ - + @@ -47,7 +47,7 @@ Polkadot-JS Apps Dashboard.

    Under the "Council overview" tab, click on "Vote".

    polkadotjs_removeVoter

    Issue the "Unvote all" option.

    When the transaction is included in a block you should have your reserved tokens made liquid again and your vote will no longer be counting for any councillors in the elections starting in the next term.

    - + \ No newline at end of file diff --git a/docs/maintain-guides-polkadot-opengov.html b/docs/maintain-guides-polkadot-opengov.html index aa349040889c..17205242459d 100644 --- a/docs/maintain-guides-polkadot-opengov.html +++ b/docs/maintain-guides-polkadot-opengov.html @@ -19,7 +19,7 @@ - + @@ -144,7 +144,7 @@ If you like to use Polkadot-JS UI for performing multi-role delegation, the instructions are available here.

    - + \ No newline at end of file diff --git a/docs/maintain-guides-secure-validator.html b/docs/maintain-guides-secure-validator.html index 0c1ba86c2bda..f614d4db3a4c 100644 --- a/docs/maintain-guides-secure-validator.html +++ b/docs/maintain-guides-secure-validator.html @@ -19,7 +19,7 @@ - + @@ -65,7 +65,7 @@ hardware. The provisioning of the validator machine should be automated and defined in code. This code should be kept in private version control, reviewed, audited, and tested.

  • Session keys should be generated and provided in a secure way.

  • Polkadot should be started at boot and restarted if stopped for any reason (supervisor process).

  • Polkadot should run as a non-root user.

  • Monitoring

    • There should be an on-call rotation for managing the alerts.

    • There should be a clear protocol with actions to perform for each level of each alert and an escalation policy.

    Resources

    - + \ No newline at end of file diff --git a/docs/maintain-guides-society-kusama.html b/docs/maintain-guides-society-kusama.html index 952a6629552f..e698dd09399b 100644 --- a/docs/maintain-guides-society-kusama.html +++ b/docs/maintain-guides-society-kusama.html @@ -19,7 +19,7 @@ - + @@ -93,7 +93,7 @@ extrinsic's parameters go to Element 1 ("proposal") -> "value" -> "params" -> Element 2 ("rules") and copy the value corresponding to the key "value". You can use a hex-to-UTF8 converter to then display the text. Note that the text is formatted with Markdown.

    - + \ No newline at end of file diff --git a/docs/maintain-guides-validator-community.html b/docs/maintain-guides-validator-community.html index fd7f01ff17db..33e7ffb33773 100644 --- a/docs/maintain-guides-validator-community.html +++ b/docs/maintain-guides-validator-community.html @@ -19,7 +19,7 @@ - + @@ -163,7 +163,7 @@ monitoring, observability services, staking dashboards, wallets, command-line utilities, or porting implementations to other languages. Additionally, this may also be eligible to be funded via a Web3 Foundation Grant.

    - + \ No newline at end of file diff --git a/docs/maintain-guides-validator-payout.html b/docs/maintain-guides-validator-payout.html index 440fbc334a4a..e1634a1202c2 100644 --- a/docs/maintain-guides-validator-payout.html +++ b/docs/maintain-guides-validator-payout.html @@ -19,7 +19,7 @@ - + @@ -109,7 +109,7 @@ brackets ([]) next to each validator. Note that since the validator payment is public knowledge, having a low or non-existent validator payment may attract more stake from nominators, since they know they will receive a larger reward.

    Validator Set Size (v): 4
    Validator 1 Stake (v1) [20% commission]: 18 DOT (9 validator, 9 nominator)
    Validator 2 Stake (v2) [40% commission]: 9 DOT (3 validator, 6 nominator)
    Validator 3 Stake (v3) [10% commission]: 8 DOT (4 validator, 4 nominator)
    Validator 4 Stake (v4) [ 0% commission]: 6 DOT (1 validator, 5 nominator)
    Payout (p): 8 DOT

    Payout for each validator (v1 - v4):
    p / v = 8 / 4 = 2 DOT

    v1:
    (0.2 * 2) = 0.4 DOT -> validator payment
    (2 - 0.4) = 1.6 -> shared between all stake
    (9 / 18) * 1.6 = 0.8 -> validator stake share
    (9 / 18) * 1.6 = 0.8 -> nominator stake share
    v1 validator total reward: 0.4 + 0.8 = 1.2 DOT
    v1 nominator reward: 0.8 DOT

    v2:
    (0.4 * 2) = 0.8 DOT -> validator payment
    (2 - 0.8) = 1.2 -> shared between all stake
    (3 / 9) * 1.2 = 0.4 -> validator stake share
    (6 / 9) * 1.2 = 0.8 -> nominator stake share
    v2 validator total reward: 0.8 + 0.4 = 1.2 DOT
    v2 nominator reward: 0.8 DOT

    v3:
    (0.1 * 2) = 0.2 DOT -> validator payment
    (2 - 0.2) = 1.8 -> shared between all stake
    (4 / 8) * 1.8 = 0.9 -> validator stake share
    (4 / 8) * 1.8 = 0.9 -> nominator stake share
    v3 validator total reward: 0.2 + 0.9 DOT = 1.1 DOT
    v3 nominator reward: 0.9 DOT

    v4:
    (0 * 2) = 0 DOT -> validator payment
    (2 - 0) = 2.0 -> shared between all stake
    (1 / 6) * 2 = 0.33 -> validator stake share
    (5 / 6) * 2 = 1.67 -> nominator stake share
    v4 validator total reward: 0 + 0.33 DOT = 0.33 DOT
    v4 nominator reward: 1.67 DOT
    - + \ No newline at end of file diff --git a/docs/maintain-index.html b/docs/maintain-index.html index 9f1655448c43..e65ea21fb340 100644 --- a/docs/maintain-index.html +++ b/docs/maintain-index.html @@ -19,7 +19,7 @@ - + @@ -45,7 +45,7 @@ participate in governance.
  • How to join the Council - Step by step guide for running for the Council.
  • How to vote for a Councillor - Step by step guide for voting for your favorite councillors.
  • - + \ No newline at end of file diff --git a/docs/maintain-networks.html b/docs/maintain-networks.html index 8db794e9a92b..45b11fd28522 100644 --- a/docs/maintain-networks.html +++ b/docs/maintain-networks.html @@ -19,7 +19,7 @@ - + @@ -54,7 +54,7 @@ the public Telemetry service.

    You can verify that your node is connected by navigating to the correct network on the dashboard and finding the name of your node.

    There is a built-in search function on the nodes page. Simply start typing keystrokes in the main window to make it available.

    - + \ No newline at end of file diff --git a/docs/maintain-polkadot-parameters.html b/docs/maintain-polkadot-parameters.html index e5ddd270d075..fe7e77acfceb 100644 --- a/docs/maintain-polkadot-parameters.html +++ b/docs/maintain-polkadot-parameters.html @@ -19,7 +19,7 @@ - + @@ -39,7 +39,7 @@

    PolkadotTimeSlotsDescription
    Term duration1 Day14_400The time for which a validator is in the set after being elected. Note, this duration can be shortened in the case that a validator misbehaves.
    Nomination period1 Day14_400How often a new validator set is elected according to Phragmén's method.
    Bonding duration28 days403_200How long until your funds will be transferrable after unbonding. Note that the bonding duration is defined in eras, not directly by slots.
    Slash defer duration28 days403_200Prevents overslashing and validators "escaping" and getting their nominators slashed with no repercussions to themselves. Note that the bonding duration is defined in eras, not directly by slots.

    Parachains

    Crowdloans and AuctionsTimeSlotsDescription
    Auction duration7 days100_800The total duration of the slot auction, subject to the candle auction mechanism.
    Opening period2 days28_800The opening period of the slot auction.
    Ending period5 days72_000The ending period of the slot auction.
    Parachain SlotTimeSlotsDescription
    Lease period12 weeks1_209_600The length of one lease period in a parachain slot.
    Total slot duration2 years10_512_000The maximum duration a parachain can lease by winning a slot auction (8 lease periods).

    Treasury

    TreasuryTimeSlotsDescription
    Periods between spends24 days345_600When the treasury can spend again after spending previously.

    Burn percentage is currently 1.00%.

    Precision

    DOT have 10 decimals of precision. In other words, 10 ** 10 (10_000_000_000 or ten billion) Plancks make up a DOT.

    The denomination of DOT was changed from 12 decimals of precision at block #1,248,328 in an event known as Denomination Day. See Redenomination for details.

    - + \ No newline at end of file diff --git a/docs/maintain-rpc.html b/docs/maintain-rpc.html index 0c4e9bbff763..bd1258d3e45b 100644 --- a/docs/maintain-rpc.html +++ b/docs/maintain-rpc.html @@ -19,7 +19,7 @@ - + @@ -54,7 +54,7 @@ node. Activate the "Development" toggle and input your node's address - either the domain or the IP address. Remember to prefix with wss://, and if you're using the 443 port, append :443 like so: wss://example.com:443.

    A sync-in-progress chain connected to Polkadot-JS UI

    Now you have a secure remote connect setup for your Substrate node.

    - + \ No newline at end of file diff --git a/docs/maintain-sync.html b/docs/maintain-sync.html index 3f8ab24f3e2f..041dc8b0b295 100644 --- a/docs/maintain-sync.html +++ b/docs/maintain-sync.html @@ -19,7 +19,7 @@ - + @@ -90,7 +90,7 @@ on localhost by default. If you would like to connect to your node's services (rpc, and prometheus) you need to ensure that you run you node with the --rpc-external, and --prometheus-external commands.

    docker run -p 9944:9944 -p 9615:9615 parity/polkadot:v0.9.13 --name "calling_home_from_a_docker_container" --rpc-external --prometheus-external
    - + \ No newline at end of file diff --git a/docs/maintain-wss.html b/docs/maintain-wss.html index 36922fd3633d..8236b8ba78df 100644 --- a/docs/maintain-wss.html +++ b/docs/maintain-wss.html @@ -19,7 +19,7 @@ - + @@ -43,7 +43,7 @@ node. Activate the "Development" toggle and input your node's address - either the domain or the IP address. Remember to prefix with wss:// and if you're using the 443 port, append :443, like so: wss://example.com:443.

    A sync-in-progress chain connected to Polkadot-JS UI

    Now you have a secure remote connect setup for your Substrate node.

    - + \ No newline at end of file diff --git a/docs/metadata.html b/docs/metadata.html index fd8f4ea51079..f0bba4664036 100644 --- a/docs/metadata.html +++ b/docs/metadata.html @@ -19,7 +19,7 @@ - + @@ -29,7 +29,7 @@ The dropdown below allows you to update the chain selection to visualize. You can search all sub-categories using the provided search field. The information is categorized by the chains Pallets, RPC and Runtime information.

    - + \ No newline at end of file diff --git a/docs/polkadot-direction.html b/docs/polkadot-direction.html index e57049d0041f..6b894567b735 100644 --- a/docs/polkadot-direction.html +++ b/docs/polkadot-direction.html @@ -19,7 +19,7 @@ - + @@ -141,7 +141,7 @@ decentralizing the network is ensuring experts on which the maintenance of the system relies upon are incentivized and recruited over time by the Polkadot network and not by organizations within the Polkadot ecosystem. - + \ No newline at end of file diff --git a/docs/polkadot-v1.html b/docs/polkadot-v1.html index 15027f647bbd..f559bb61e677 100644 --- a/docs/polkadot-v1.html +++ b/docs/polkadot-v1.html @@ -19,7 +19,7 @@ - + @@ -109,7 +109,7 @@ could become.

    Polkadot is perfecting its implementation through RFCs to continue being a decentralized, secure, ubiquitous computing engine to power the next generation of Web3 applications.

    - + \ No newline at end of file diff --git a/docs/polkadot-vault.html b/docs/polkadot-vault.html index 14f13ed1c8a5..3c37bb842c7d 100644 --- a/docs/polkadot-vault.html +++ b/docs/polkadot-vault.html @@ -19,7 +19,7 @@ - + @@ -89,7 +89,7 @@ this article for detailed instructions. If you choose this approach, you should trust the provider you choose.

    Advanced How-to Guides

    See the advanced guides for more information about how to add chain specification and do metadata updates yourself.

    - + \ No newline at end of file diff --git a/docs/polkadot-vision-index.html b/docs/polkadot-vision-index.html index d9a8e2608760..afa8f6078b88 100644 --- a/docs/polkadot-vision-index.html +++ b/docs/polkadot-vision-index.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/polkadotjs-ui.html b/docs/polkadotjs-ui.html index 4454159d3026..68dcbce76267 100644 --- a/docs/polkadotjs-ui.html +++ b/docs/polkadotjs-ui.html @@ -19,7 +19,7 @@ - + @@ -73,7 +73,7 @@ nomination pool settings (nomination and roles) and use non-transfer proxies, destroy assets, and much more.

    Beginner's Guide to Polkadot-JS

    - + \ No newline at end of file diff --git a/docs/polkadotjs.html b/docs/polkadotjs.html index e2a81b667683..30621c4ae6f5 100644 --- a/docs/polkadotjs.html +++ b/docs/polkadotjs.html @@ -19,7 +19,7 @@ - + @@ -92,7 +92,7 @@ of spam prevention, whereas signed transactions are issued by the originator account of a transaction which contains a signature of that account, which will be subject to a fee to include it on the chain.

    - + \ No newline at end of file diff --git a/docs/programmes-index.html b/docs/programmes-index.html index f6051778f4cb..85385569a37d 100644 --- a/docs/programmes-index.html +++ b/docs/programmes-index.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/research.html b/docs/research.html index a2ef095aae80..be7c9fc58513 100644 --- a/docs/research.html +++ b/docs/research.html @@ -19,7 +19,7 @@ - + @@ -54,7 +54,7 @@ – Gives an outline of Nominated Proof of Stake in Polkadot. Author: Alfonzo Cevallos
  • Messaging Protocol Workshop Outcomes – An initiative to design and implement a privacy-preserving communication system for decentralized applications.
  • - + \ No newline at end of file diff --git a/docs/staking-dashboard.html b/docs/staking-dashboard.html index c96966b2a723..b6ba01d04d49 100644 --- a/docs/staking-dashboard.html +++ b/docs/staking-dashboard.html @@ -19,7 +19,7 @@ - + @@ -157,7 +157,7 @@ feature request. We take your feedback seriously, do not hesitate to contact us.

    Network

    Under Network, you can connect to either Polkadot, Kusama, or Westend through public RPC nodes or light clients for a true Web3 experience. For more information about light clients, see this page.

    - + \ No newline at end of file diff --git a/docs/start-building.html b/docs/start-building.html index 70552b6e188d..44edc439b391 100644 --- a/docs/start-building.html +++ b/docs/start-building.html @@ -19,7 +19,7 @@ - + @@ -38,7 +38,7 @@ code for the Agile Coretime Broker pallet was added to the Substrate FRAME system.

    Polkadot SDK

    info

    For more information about building on Polkadot, see the Builder's Guide.

    The Polkadot Software Development Kit (SDK) includes all the tools needed to build on the Polkadot ecosystem. The main repositories include:

    The programming language used for development is Rust.

    - + \ No newline at end of file diff --git a/docs/stay-safe-index.html b/docs/stay-safe-index.html index 74e2ff76bbfd..723d008e810f 100644 --- a/docs/stay-safe-index.html +++ b/docs/stay-safe-index.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/thousand-contributors.html b/docs/thousand-contributors.html index 36368f6520a6..dd4360748908 100644 --- a/docs/thousand-contributors.html +++ b/docs/thousand-contributors.html @@ -19,7 +19,7 @@ - + @@ -35,7 +35,7 @@ the account shared with us.

    Submission reviews

    The review process follows the present pipeline in the 1KC public GitHub project.

    Learn more about the program and its components on the official 1KC repository

    - + \ No newline at end of file diff --git a/docs/thousand-validators.html b/docs/thousand-validators.html index cc040feed4e0..e6a64e3c48ec 100644 --- a/docs/thousand-validators.html +++ b/docs/thousand-validators.html @@ -19,7 +19,7 @@ - + @@ -87,7 +87,7 @@ things time to resolve; if they don't, leave a message in the dedicated matrix room or open an issue on GitHub.
  • The 1000 validators website is not up to date? See these resources for more up-to-date information.
  • Resources

    To extract and display the 1KV Program scores there are various tools listed below.

    ResourceGithub sourceInfo
    Main 1KV sitegithubMain site and 1KV backend.
    SubVT telegram bot for polkadot and kusamagithubTelegram bot with overviews and alerts for various polkadot and kusama related events, including 1KV events.
    SubVT ios and android appgithubSubVT app version for mobile phones.
    Validator earnings overviewgithubOverview of validators' earnings.
    Math Crypto's Insightsgithub1KV-oriented scoring overview of Kusama and Polkadot.
    One-T for polkadot and kusamagithubA performance report bot for the Polkadot and Kusama network with special focus on the 1KV programme.
    One-T parachains overviewgithubOne-T's parachain overview.
    Metaspan's 1KV overviewgithubOverview of 1KV programme, including the newly introduced endpoints, see here for available endpoints.
    Decentradot's 1KV overviewgithubOverview of the 1KV programme, including the newly introduced endpoints.
    Hirish 1KV overviewgithub?Overview of the 1KV Programme.
    - + \ No newline at end of file diff --git a/docs/wallets-and-extensions.html b/docs/wallets-and-extensions.html index 5397232bff98..70794ad867f5 100644 --- a/docs/wallets-and-extensions.html +++ b/docs/wallets-and-extensions.html @@ -19,7 +19,7 @@ - + @@ -89,7 +89,7 @@ your accounts on over 150+ Substrate and EVM networks. NFT Management, ledger Support, fiat On-ramp, portfolio tracking. Talisman received funding from Polkadot Treasury [1].

    - + \ No newline at end of file diff --git a/docs/wallets-index.html b/docs/wallets-index.html index bccc4329f362..0a53128d66c4 100644 --- a/docs/wallets-index.html +++ b/docs/wallets-index.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file diff --git a/docs/web3-and-polkadot.html b/docs/web3-and-polkadot.html index 6cbee86c87a6..657adcb9105a 100644 --- a/docs/web3-and-polkadot.html +++ b/docs/web3-and-polkadot.html @@ -19,7 +19,7 @@ - + @@ -148,7 +148,7 @@ all blockchains attached to it. For more information, see the Polkadot 1.0 page and the section about XCM and Accords in Polkadot Direction page.

    - + \ No newline at end of file diff --git a/index.html b/index.html index 2a1cf4174838..885ef4bd5f49 100644 --- a/index.html +++ b/index.html @@ -19,13 +19,13 @@ - +

    Learn about Polkadot’s canary network Kusama

    Kusama is Polkadot’s “canary network”, a scalable, multi-chain network for radical innovation and early stage Polkadot deployments. For developers, Kusama is a proving ground for all things Polkadot I.e runtime upgrades, on-chain governance, parachains, parathreads, etc.

    language

    Help improve this wiki

    This wiki was started by and is maintained by Web3 Foundation. It is an open-source-ish project and aims to be the most extensive resource of knowledge on Polkadot and the Polkadot ecosystem.

    - + \ No newline at end of file diff --git a/search.html b/search.html index 2761ee0164d7..9273cbf7552c 100644 --- a/search.html +++ b/search.html @@ -19,13 +19,13 @@ - + - + \ No newline at end of file