diff --git a/api/polkadot_api/index.html b/api/polkadot_api/index.html index 8cc9c2a8..0560e48d 100644 --- a/api/polkadot_api/index.html +++ b/api/polkadot_api/index.html @@ -12,7 +12,7 @@ - + diff --git a/assets/codegen-CnbYZc7w.js b/assets/codegen-MMSNiuKu.js similarity index 99% rename from assets/codegen-CnbYZc7w.js rename to assets/codegen-MMSNiuKu.js index a63a8e59..5460e09f 100644 --- a/assets/codegen-CnbYZc7w.js +++ b/assets/codegen-MMSNiuKu.js @@ -1,4 +1,4 @@ -import{u as l,j as s}from"./index-O67QIW1D.js";const r={title:"Codegen",description:"undefined"};function n(i){const e={a:"a",aside:"aside",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",span:"span",ul:"ul",...l(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"codegen",children:["Codegen",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#codegen",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` +import{u as l,j as s}from"./index-rJOHic4W.js";const r={title:"Codegen",description:"undefined"};function n(i){const e={a:"a",aside:"aside",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",span:"span",ul:"ul",...l(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"codegen",children:["Codegen",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#codegen",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` `,s.jsx(e.p,{children:"Technically, to connect to a chain, all you need is just the provider. But to interact with it, you need to know the list of storage, runtime, and transaction calls and their types."}),` `,s.jsx(e.p,{children:"During runtime, the library can request the metadata for the chain it's connected to, and from this, it generates all the codecs to interact with it. But as a developer, you need to get that information beforehand."}),` `,s.jsx(e.p,{children:"Polkadot-API has a CLI that downloads the metadata for a chain and then uses that metadata to generate all the type descriptors."}),` diff --git a/assets/example-BQvU0spJ.js b/assets/example-DeC6E7XP.js similarity index 89% rename from assets/example-BQvU0spJ.js rename to assets/example-DeC6E7XP.js index 31514064..1d680032 100644 --- a/assets/example-BQvU0spJ.js +++ b/assets/example-DeC6E7XP.js @@ -1,2 +1,2 @@ -import{u as r,j as e}from"./index-O67QIW1D.js";const i={title:"Example",description:"undefined"};function a(t){const n={a:"a",div:"div",h1:"h1",header:"header",p:"p",...r(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(n.header,{children:e.jsxs(n.h1,{id:"example",children:["Example",e.jsx(n.a,{"aria-hidden":"true",tabIndex:"-1",href:"#example",children:e.jsx(n.div,{"data-autolink-icon":!0})})]})}),` +import{u as r,j as e}from"./index-rJOHic4W.js";const i={title:"Example",description:"undefined"};function a(t){const n={a:"a",div:"div",h1:"h1",header:"header",p:"p",...r(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(n.header,{children:e.jsxs(n.h1,{id:"example",children:["Example",e.jsx(n.a,{"aria-hidden":"true",tabIndex:"-1",href:"#example",children:e.jsx(n.div,{"data-autolink-icon":!0})})]})}),` `,e.jsx(n.p,{children:"Example"})]})}function o(t={}){const{wrapper:n}={...r(),...t.components};return n?e.jsx(n,{...t,children:e.jsx(a,{...t})}):a(t)}export{o as default,i as frontmatter}; diff --git a/assets/getting-started-DF8MU59x.js b/assets/getting-started-hHyuSENX.js similarity index 99% rename from assets/getting-started-DF8MU59x.js rename to assets/getting-started-hHyuSENX.js index 1c4ebd67..fc089b80 100644 --- a/assets/getting-started-DF8MU59x.js +++ b/assets/getting-started-hHyuSENX.js @@ -1,4 +1,4 @@ -import{j as s,$ as t,a as h,b as k,c as p,u as o}from"./index-O67QIW1D.js";const a=({options:i,children:e})=>s.jsxs(t,{className:"Tabs__root border rounded bg-[--vocs-color_codeBlockBackground] border-[--vocs-color_codeInlineBorder]",defaultValue:Object.keys(i)[0],children:[s.jsx(h,{className:"Tabs__list flex flex-wrap px-2 bg-[--vocs-color_codeTitleBackground]",children:Object.entries(i).map(([r,d])=>s.jsx(k,{className:"text-sm p-3 pb-2 text-[--vocs-color_text3] border-b border-transparent hover:text-[--vocs-color_text] [&[data-state='active']]:text-[--vocs-color_text] [&[data-state='active']]:border-[--vocs-color_borderAccent]",value:r,children:d},r))}),e]}),l=i=>s.jsx(p,{...i}),x=Object.freeze(Object.defineProperty({__proto__:null,Content:l,Root:a},Symbol.toStringTag,{value:"Module"})),y={title:"Getting Started",description:"undefined"};function c(i){const e={a:"a",aside:"aside",code:"code",div:"div",h1:"h1",header:"header",p:"p",pre:"pre",span:"span",...o(),...i.components};return x||n("Tabs",!1),l||n("Tabs.Content",!0),a||n("Tabs.Root",!0),s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"getting-started",children:["Getting Started",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#getting-started",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` +import{j as s,$ as t,a as h,b as k,c as p,u as o}from"./index-rJOHic4W.js";const a=({options:i,children:e})=>s.jsxs(t,{className:"Tabs__root border rounded bg-[--vocs-color_codeBlockBackground] border-[--vocs-color_codeInlineBorder]",defaultValue:Object.keys(i)[0],children:[s.jsx(h,{className:"Tabs__list flex flex-wrap px-2 bg-[--vocs-color_codeTitleBackground]",children:Object.entries(i).map(([r,d])=>s.jsx(k,{className:"text-sm p-3 pb-2 text-[--vocs-color_text3] border-b border-transparent hover:text-[--vocs-color_text] [&[data-state='active']]:text-[--vocs-color_text] [&[data-state='active']]:border-[--vocs-color_borderAccent]",value:r,children:d},r))}),e]}),l=i=>s.jsx(p,{...i}),x=Object.freeze(Object.defineProperty({__proto__:null,Content:l,Root:a},Symbol.toStringTag,{value:"Module"})),y={title:"Getting Started",description:"undefined"};function c(i){const e={a:"a",aside:"aside",code:"code",div:"div",h1:"h1",header:"header",p:"p",pre:"pre",span:"span",...o(),...i.components};return x||n("Tabs",!1),l||n("Tabs.Content",!0),a||n("Tabs.Root",!0),s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"getting-started",children:["Getting Started",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#getting-started",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` `,s.jsxs(e.p,{children:["Start by installing ",s.jsx(e.code,{children:"polkadot-api"})," and ",s.jsx(e.code,{children:"@polkadot-api/descriptors"})]}),` `,s.jsx(e.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsx(e.code,{children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"npm"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" i"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" polkadot-api"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" @polkadot-api/descriptors"})]})})}),` `,s.jsx(e.p,{children:"Next, download the latest metadata from the chain you want to connect to and generate the types:"}),` diff --git a/assets/index-x2CuOhNl.js b/assets/index-BpjhD_eD.js similarity index 98% rename from assets/index-x2CuOhNl.js rename to assets/index-BpjhD_eD.js index cb34f7c6..0482027c 100644 --- a/assets/index-x2CuOhNl.js +++ b/assets/index-BpjhD_eD.js @@ -1 +1 @@ -import{j as e,L as b,d as s,e as _,f as P,R as y,g as N,T as r,C as l,u as j}from"./index-O67QIW1D.js";var H="vocs_Button_button",w="vocs_Button_button_accent";function k({children:t,className:n,href:i,variant:v}){return e.jsx(b,{className:s(n,H,v==="accent"&&w),href:i,variant:"styleless",children:t})}var L="vocs_HomePage_button",C="vocs_HomePage_buttons",M="vocs_HomePage_description",B="vocs_HomePage_logo",c="vocs_HomePage_packageManager",I="vocs_HomePage",D="vocs_HomePage_tabs",d="vocs_HomePage_tabsContent",R="vocs_HomePage_tabsList",T="vocs_HomePage_tagline",$="vocs_HomePage_title";function m({children:t,className:n}){return e.jsx("div",{className:s(n,I),children:t})}function h({className:t}){const{logoUrl:n,title:i}=_();return n?e.jsx("div",{className:s(t,B),children:e.jsx(P,{})}):e.jsx("h1",{className:s(t,$),children:i})}function A({children:t,className:n}){return e.jsx("div",{className:s(n,T),children:t})}function x({children:t,className:n}){return e.jsx("div",{className:s(n,M),children:t})}function g({children:t,className:n}){return e.jsx("div",{className:s(n,C),children:t})}function o(t){return e.jsx(k,{...t,className:s(L,t.className)})}function f({name:t,type:n="install"}){return e.jsxs(y,{className:D,defaultValue:"npm",children:[e.jsxs(N,{className:R,children:[e.jsx(r,{value:"npm",children:"npm"}),e.jsx(r,{value:"pnpm",children:"pnpm"}),e.jsx(r,{value:"yarn",children:"yarn"})]}),e.jsxs(l,{className:d,value:"npm",children:[e.jsx("span",{className:c,children:"npm"})," ",n==="init"?"init":"install"," ",t]}),e.jsxs(l,{className:d,value:"pnpm",children:[e.jsx("span",{className:c,children:"pnpm"})," ",n==="init"?"create":"install"," ",t]}),e.jsxs(l,{className:d,value:"yarn",children:[e.jsx("span",{className:c,children:"yarn"})," ",n==="init"?"create":"install"," ",t]})]})}const E=Object.freeze(Object.defineProperty({__proto__:null,Button:o,Buttons:g,Description:x,InstallPackage:f,Logo:h,Root:m,Tagline:A},Symbol.toStringTag,{value:"Module"})),u=({title:t,children:n})=>e.jsxs("div",{className:"w-full border rounded border-gray-500 p-4 text-left",children:[e.jsx("div",{className:"text-[--vocs-color_heading] text-lg py-2 font-bold",children:t}),e.jsx("div",{children:n})]}),O={layout:"landing",content:{width:"60rem"}};function p(t){const n={p:"p",...j(),...t.components};return E||a("HomePage",!1),o||a("HomePage.Button",!0),g||a("HomePage.Buttons",!0),x||a("HomePage.Description",!0),f||a("HomePage.InstallPackage",!0),h||a("HomePage.Logo",!0),m||a("HomePage.Root",!0),e.jsxs(m,{children:[e.jsxs("div",{className:"flex justify-between w-full flex-col md:flex-row gap-4",children:[e.jsxs("div",{className:"flex flex-col text-left",children:[e.jsx(h,{}),e.jsx(x,{children:"Typescript API to interact with Polkadot chains."}),e.jsxs(g,{className:"py-2",children:[e.jsx(o,{href:"/getting-started",variant:"accent",children:"Get started"}),e.jsx(o,{href:"https://github.com/polkadot-api/polkadot-api",children:"GitHub"})]})]}),e.jsx(f,{name:"polkadot-api",type:"i"})]}),e.jsxs("div",{className:"flex gap-2 flex-col md:flex-row mt-8",children:[e.jsx(u,{title:"Light client first",children:e.jsx(n.p,{children:"Built from the ground up for the light client, allowing the running of a node from the browser."})}),e.jsx(u,{title:"Fully typed API",children:e.jsx(n.p,{children:"IDEs show all the type information for every operation of a chain."})}),e.jsx(u,{title:"Lightweight",children:e.jsx(n.p,{children:"Minimal impact on the main bundle (under 50kB)."})})]}),e.jsxs("div",{className:"text-left w-full max-w-2xl p-2",children:[e.jsx("h2",{className:"text-[--vocs-color_heading] text-3xl py-4 border-b border-gray-500 mb-4",children:"Features"}),e.jsxs("ul",{className:"list-disc pl-5",children:[e.jsx("li",{children:"Connect to the chain through a light client, a WebSocket connection, or an extension."}),e.jsx("li",{children:"Perform storage queries or runtime calls."}),e.jsx("li",{children:"Generate the types of a chain through its current metadata."}),e.jsx("li",{children:"Compatibility checks."}),e.jsx("li",{children:"Multiple connections to different chains."}),e.jsx("li",{children:"Transaction API in read-only and read/write mode."}),e.jsx("li",{children:"Promise-based or Observable-based API for your needs."})]})]})]})}function S(t={}){const{wrapper:n}={...j(),...t.components};return n?e.jsx(n,{...t,children:e.jsx(p,{...t})}):p(t)}function a(t,n){throw new Error("Expected "+(n?"component":"object")+" `"+t+"` to be defined: you likely forgot to import, pass, or provide it.")}export{S as default,O as frontmatter}; +import{j as e,L as b,d as s,e as _,f as P,R as y,g as N,T as r,C as l,u as j}from"./index-rJOHic4W.js";var H="vocs_Button_button",w="vocs_Button_button_accent";function k({children:t,className:n,href:i,variant:v}){return e.jsx(b,{className:s(n,H,v==="accent"&&w),href:i,variant:"styleless",children:t})}var L="vocs_HomePage_button",C="vocs_HomePage_buttons",M="vocs_HomePage_description",B="vocs_HomePage_logo",c="vocs_HomePage_packageManager",I="vocs_HomePage",D="vocs_HomePage_tabs",d="vocs_HomePage_tabsContent",R="vocs_HomePage_tabsList",T="vocs_HomePage_tagline",$="vocs_HomePage_title";function m({children:t,className:n}){return e.jsx("div",{className:s(n,I),children:t})}function h({className:t}){const{logoUrl:n,title:i}=_();return n?e.jsx("div",{className:s(t,B),children:e.jsx(P,{})}):e.jsx("h1",{className:s(t,$),children:i})}function A({children:t,className:n}){return e.jsx("div",{className:s(n,T),children:t})}function x({children:t,className:n}){return e.jsx("div",{className:s(n,M),children:t})}function g({children:t,className:n}){return e.jsx("div",{className:s(n,C),children:t})}function o(t){return e.jsx(k,{...t,className:s(L,t.className)})}function f({name:t,type:n="install"}){return e.jsxs(y,{className:D,defaultValue:"npm",children:[e.jsxs(N,{className:R,children:[e.jsx(r,{value:"npm",children:"npm"}),e.jsx(r,{value:"pnpm",children:"pnpm"}),e.jsx(r,{value:"yarn",children:"yarn"})]}),e.jsxs(l,{className:d,value:"npm",children:[e.jsx("span",{className:c,children:"npm"})," ",n==="init"?"init":"install"," ",t]}),e.jsxs(l,{className:d,value:"pnpm",children:[e.jsx("span",{className:c,children:"pnpm"})," ",n==="init"?"create":"install"," ",t]}),e.jsxs(l,{className:d,value:"yarn",children:[e.jsx("span",{className:c,children:"yarn"})," ",n==="init"?"create":"install"," ",t]})]})}const E=Object.freeze(Object.defineProperty({__proto__:null,Button:o,Buttons:g,Description:x,InstallPackage:f,Logo:h,Root:m,Tagline:A},Symbol.toStringTag,{value:"Module"})),u=({title:t,children:n})=>e.jsxs("div",{className:"w-full border rounded border-gray-500 p-4 text-left",children:[e.jsx("div",{className:"text-[--vocs-color_heading] text-lg py-2 font-bold",children:t}),e.jsx("div",{children:n})]}),O={layout:"landing",content:{width:"60rem"}};function p(t){const n={p:"p",...j(),...t.components};return E||a("HomePage",!1),o||a("HomePage.Button",!0),g||a("HomePage.Buttons",!0),x||a("HomePage.Description",!0),f||a("HomePage.InstallPackage",!0),h||a("HomePage.Logo",!0),m||a("HomePage.Root",!0),e.jsxs(m,{children:[e.jsxs("div",{className:"flex justify-between w-full flex-col md:flex-row gap-4",children:[e.jsxs("div",{className:"flex flex-col text-left",children:[e.jsx(h,{}),e.jsx(x,{children:"Typescript API to interact with Polkadot chains."}),e.jsxs(g,{className:"py-2",children:[e.jsx(o,{href:"/getting-started",variant:"accent",children:"Get started"}),e.jsx(o,{href:"https://github.com/polkadot-api/polkadot-api",children:"GitHub"})]})]}),e.jsx(f,{name:"polkadot-api",type:"i"})]}),e.jsxs("div",{className:"flex gap-2 flex-col md:flex-row mt-8",children:[e.jsx(u,{title:"Light client first",children:e.jsx(n.p,{children:"Built from the ground up for the light client, allowing the running of a node from the browser."})}),e.jsx(u,{title:"Fully typed API",children:e.jsx(n.p,{children:"IDEs show all the type information for every operation of a chain."})}),e.jsx(u,{title:"Lightweight",children:e.jsx(n.p,{children:"Minimal impact on the main bundle (under 50kB)."})})]}),e.jsxs("div",{className:"text-left w-full max-w-2xl p-2",children:[e.jsx("h2",{className:"text-[--vocs-color_heading] text-3xl py-4 border-b border-gray-500 mb-4",children:"Features"}),e.jsxs("ul",{className:"list-disc pl-5",children:[e.jsx("li",{children:"Connect to the chain through a light client, a WebSocket connection, or an extension."}),e.jsx("li",{children:"Perform storage queries or runtime calls."}),e.jsx("li",{children:"Generate the types of a chain through its current metadata."}),e.jsx("li",{children:"Compatibility checks."}),e.jsx("li",{children:"Multiple connections to different chains."}),e.jsx("li",{children:"Transaction API in read-only and read/write mode."}),e.jsx("li",{children:"Promise-based or Observable-based API for your needs."})]})]})]})}function S(t={}){const{wrapper:n}={...j(),...t.components};return n?e.jsx(n,{...t,children:e.jsx(p,{...t})}):p(t)}function a(t,n){throw new Error("Expected "+(n?"component":"object")+" `"+t+"` to be defined: you likely forgot to import, pass, or provide it.")}export{S as default,O as frontmatter}; diff --git a/assets/index-O67QIW1D.js b/assets/index-rJOHic4W.js similarity index 78% rename from assets/index-O67QIW1D.js rename to assets/index-rJOHic4W.js index 58b66907..1d4a0629 100644 --- a/assets/index-O67QIW1D.js +++ b/assets/index-rJOHic4W.js @@ -1,4 +1,4 @@ -function Mu(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Ey=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var iv={exports:{}},bl={},av={exports:{}},oe={};/** +function Mu(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Ey=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var av={exports:{}},bl={},lv={exports:{}},oe={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function Mu(e,t){for(var n=0;n>>1,se=O[J];if(0>>1;Jo(Ne,K))weo(Ue,Ne)?(O[J]=Ue,O[we]=K,J=we):(O[J]=Ne,O[ye]=K,J=ye);else if(weo(Ue,K))O[J]=Ue,O[we]=K,J=we;else break e}}return F}function o(O,F){var K=O.sortIndex-F.sortIndex;return K!==0?K:O.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],f=1,c=null,d=3,p=!1,y=!1,g=!1,C=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(O){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=O)r(u),F.sortIndex=F.expirationTime,t(s,F);else break;F=n(u)}}function E(O){if(g=!1,x(O),!y)if(n(s)!==null)y=!0,V(S);else{var F=n(u);F!==null&&U(E,F.startTime-O)}}function S(O,F){y=!1,g&&(g=!1,v($),$=-1),p=!0;var K=d;try{for(x(F),c=n(s);c!==null&&(!(c.expirationTime>F)||O&&!j());){var J=c.callback;if(typeof J=="function"){c.callback=null,d=c.priorityLevel;var se=J(c.expirationTime<=F);F=e.unstable_now(),typeof se=="function"?c.callback=se:c===n(s)&&r(s),x(F)}else r(s);c=n(s)}if(c!==null)var Be=!0;else{var ye=n(u);ye!==null&&U(E,ye.startTime-F),Be=!1}return Be}finally{c=null,d=K,p=!1}}var _=!1,b=null,$=-1,T=5,P=-1;function j(){return!(e.unstable_now()-PO||125J?(O.sortIndex=K,t(u,O),n(s)===null&&O===n(u)&&(g?(v($),$=-1):g=!0,U(E,K-J))):(O.sortIndex=se,t(s,O),y||p||(y=!0,V(S))),O},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(O){var F=d;return function(){var K=d;d=F;try{return O.apply(this,arguments)}finally{d=K}}}})(gv);mv.exports=gv;var Ky=mv.exports;/** + */(function(e){function t(O,F){var K=O.length;O.push(F);e:for(;0>>1,se=O[J];if(0>>1;Jo(Ne,K))weo(Ue,Ne)?(O[J]=Ue,O[we]=K,J=we):(O[J]=Ne,O[ye]=K,J=ye);else if(weo(Ue,K))O[J]=Ue,O[we]=K,J=we;else break e}}return F}function o(O,F){var K=O.sortIndex-F.sortIndex;return K!==0?K:O.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],f=1,c=null,d=3,p=!1,y=!1,g=!1,C=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(O){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=O)r(u),F.sortIndex=F.expirationTime,t(s,F);else break;F=n(u)}}function E(O){if(g=!1,x(O),!y)if(n(s)!==null)y=!0,V(S);else{var F=n(u);F!==null&&U(E,F.startTime-O)}}function S(O,F){y=!1,g&&(g=!1,v($),$=-1),p=!0;var K=d;try{for(x(F),c=n(s);c!==null&&(!(c.expirationTime>F)||O&&!j());){var J=c.callback;if(typeof J=="function"){c.callback=null,d=c.priorityLevel;var se=J(c.expirationTime<=F);F=e.unstable_now(),typeof se=="function"?c.callback=se:c===n(s)&&r(s),x(F)}else r(s);c=n(s)}if(c!==null)var Be=!0;else{var ye=n(u);ye!==null&&U(E,ye.startTime-F),Be=!1}return Be}finally{c=null,d=K,p=!1}}var _=!1,b=null,$=-1,T=5,P=-1;function j(){return!(e.unstable_now()-PO||125J?(O.sortIndex=K,t(u,O),n(s)===null&&O===n(u)&&(g?(v($),$=-1):g=!0,U(E,K-J))):(O.sortIndex=se,t(s,O),y||p||(y=!0,V(S))),O},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(O){var F=d;return function(){var K=d;d=F;try{return O.apply(this,arguments)}finally{d=K}}}})(yv);gv.exports=yv;var Ky=gv.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function Mu(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lc=Object.prototype.hasOwnProperty,Yy=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ed={},_d={};function Gy(e){return lc.call(_d,e)?!0:lc.call(Ed,e)?!1:Yy.test(e)?_d[e]=!0:(Ed[e]=!0,!1)}function Qy(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Zy(e,t,n,r){if(t===null||typeof t>"u"||Qy(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ut(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xe[e]=new ut(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xe[t]=new ut(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xe[e]=new ut(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xe[e]=new ut(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Xe[e]=new ut(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xe[e]=new ut(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xe[e]=new ut(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xe[e]=new ut(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xe[e]=new ut(e,5,!1,e.toLowerCase(),null,!1,!1)});var Uu=/[\-:]([a-z])/g;function Hu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Uu,Hu);Xe[t]=new ut(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Uu,Hu);Xe[t]=new ut(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Uu,Hu);Xe[t]=new ut(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xe[e]=new ut(e,1,!1,e.toLowerCase(),null,!1,!1)});Xe.xlinkHref=new ut("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xe[e]=new ut(e,1,!1,e.toLowerCase(),null,!0,!0)});function Vu(e,t,n,r){var o=Xe.hasOwnProperty(t)?Xe[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lc=Object.prototype.hasOwnProperty,Yy=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,_d={},Sd={};function Gy(e){return lc.call(Sd,e)?!0:lc.call(_d,e)?!1:Yy.test(e)?Sd[e]=!0:(_d[e]=!0,!1)}function Qy(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Zy(e,t,n,r){if(t===null||typeof t>"u"||Qy(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ut(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xe[e]=new ut(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xe[t]=new ut(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xe[e]=new ut(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xe[e]=new ut(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Xe[e]=new ut(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xe[e]=new ut(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xe[e]=new ut(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xe[e]=new ut(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xe[e]=new ut(e,5,!1,e.toLowerCase(),null,!1,!1)});var Uu=/[\-:]([a-z])/g;function Hu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Uu,Hu);Xe[t]=new ut(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Uu,Hu);Xe[t]=new ut(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Uu,Hu);Xe[t]=new ut(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xe[e]=new ut(e,1,!1,e.toLowerCase(),null,!1,!1)});Xe.xlinkHref=new ut("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xe[e]=new ut(e,1,!1,e.toLowerCase(),null,!0,!0)});function Vu(e,t,n,r){var o=Xe.hasOwnProperty(t)?Xe[t]:null;(o!==null?o.type!==0:r||!(2l||o[a]!==i[l]){var s=` -`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{cs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Jo(e):""}function Xy(e){switch(e.tag){case 5:return Jo(e.type);case 16:return Jo("Lazy");case 13:return Jo("Suspense");case 19:return Jo("SuspenseList");case 0:case 2:case 15:return e=us(e.type,!1),e;case 11:return e=us(e.type.render,!1),e;case 1:return e=us(e.type,!0),e;default:return""}}function fc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ur:return"Fragment";case Br:return"Portal";case sc:return"Profiler";case Wu:return"StrictMode";case cc:return"Suspense";case uc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Cv:return(e.displayName||"Context")+".Consumer";case xv:return(e._context.displayName||"Context")+".Provider";case Ku:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Yu:return t=e.displayName||null,t!==null?t:fc(e.type)||"Memo";case An:t=e._payload,e=e._init;try{return fc(e(t))}catch{}}return null}function Jy(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fc(t);case 8:return t===Wu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _v(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qy(e){var t=_v(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ea(e){e._valueTracker||(e._valueTracker=qy(e))}function Sv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=_v(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ka(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function dc(e,t){var n=t.checked;return ke({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function bd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function bv(e,t){t=t.checked,t!=null&&Vu(e,"checked",t,!1)}function hc(e,t){bv(e,t);var n=Kn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?pc(e,t.type,n):t.hasOwnProperty("defaultValue")&&pc(e,t.type,Kn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $d(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function pc(e,t,n){(t!=="number"||Ka(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var qo=Array.isArray;function to(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ta.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function pi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ri={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},e2=["Webkit","ms","Moz","O"];Object.keys(ri).forEach(function(e){e2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ri[t]=ri[e]})});function Rv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ri.hasOwnProperty(e)&&ri[e]?(""+t).trim():t+"px"}function Nv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Rv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var t2=ke({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function gc(e,t){if(t){if(t2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function yc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wc=null;function Gu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xc=null,no=null,ro=null;function Rd(e){if(e=zi(e)){if(typeof xc!="function")throw Error(M(280));var t=e.stateNode;t&&(t=Nl(t),xc(e.stateNode,e.type,t))}}function Pv(e){no?ro?ro.push(e):ro=[e]:no=e}function Av(){if(no){var e=no,t=ro;if(ro=no=null,Rd(e),t)for(e=0;e>>=0,e===0?32:31-(d2(e)/h2|0)|0}var na=64,ra=4194304;function ei(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Za(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=ei(l):(i&=a,i!==0&&(r=ei(i)))}else a=n&~o,a!==0?r=ei(a):i!==0&&(r=ei(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Di(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Wt(t),e[t]=n}function g2(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ii),Dd=" ",Fd=!1;function Jv(e,t){switch(e){case"keyup":return W2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hr=!1;function Y2(e,t){switch(e){case"compositionend":return qv(t);case"keypress":return t.which!==32?null:(Fd=!0,Dd);case"textInput":return e=t.data,e===Dd&&Fd?null:e;default:return null}}function G2(e,t){if(Hr)return e==="compositionend"||!nf&&Jv(e,t)?(e=Zv(),Pa=qu=Mn=null,Hr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Hd(n)}}function rm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function om(){for(var e=window,t=Ka();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ka(e.document)}return t}function rf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function r3(e){var t=om(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&rm(n.ownerDocument.documentElement,n)){if(r!==null&&rf(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Vd(n,i);var a=Vd(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Vr=null,$c=null,li=null,Tc=!1;function Wd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Tc||Vr==null||Vr!==Ka(r)||(r=Vr,"selectionStart"in r&&rf(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),li&&xi(li,r)||(li=r,r=qa($c,"onSelect"),0Yr||(e.current=Oc[Yr],Oc[Yr]=null,Yr--)}function ve(e,t){Yr++,Oc[Yr]=e.current,e.current=t}var Yn={},rt=er(Yn),mt=er(!1),mr=Yn;function fo(e,t){var n=e.type.contextTypes;if(!n)return Yn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function gt(e){return e=e.childContextTypes,e!=null}function tl(){ge(mt),ge(rt)}function Jd(e,t,n){if(rt.current!==Yn)throw Error(M(168));ve(rt,t),ve(mt,n)}function hm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(M(108,Jy(e)||"Unknown",o));return ke({},n,r)}function nl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yn,mr=rt.current,ve(rt,e),ve(mt,mt.current),!0}function qd(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=hm(e,t,mr),r.__reactInternalMemoizedMergedChildContext=e,ge(mt),ge(rt),ve(rt,e)):ge(mt),ve(mt,n)}var sn=null,Pl=!1,Ss=!1;function pm(e){sn===null?sn=[e]:sn.push(e)}function v3(e){Pl=!0,pm(e)}function tr(){if(!Ss&&sn!==null){Ss=!0;var e=0,t=ue;try{var n=sn;for(ue=1;e>=a,o-=a,cn=1<<32-Wt(t)+o|n<$?(T=b,b=null):T=b.sibling;var P=d(v,b,x[$],E);if(P===null){b===null&&(b=T);break}e&&b&&P.alternate===null&&t(v,b),m=i(P,m,$),_===null?S=P:_.sibling=P,_=P,b=T}if($===x.length)return n(v,b),_e&&ir(v,$),S;if(b===null){for(;$$?(T=b,b=null):T=b.sibling;var j=d(v,b,P.value,E);if(j===null){b===null&&(b=T);break}e&&b&&j.alternate===null&&t(v,b),m=i(j,m,$),_===null?S=j:_.sibling=j,_=j,b=T}if(P.done)return n(v,b),_e&&ir(v,$),S;if(b===null){for(;!P.done;$++,P=x.next())P=c(v,P.value,E),P!==null&&(m=i(P,m,$),_===null?S=P:_.sibling=P,_=P);return _e&&ir(v,$),S}for(b=r(v,b);!P.done;$++,P=x.next())P=p(b,v,$,P.value,E),P!==null&&(e&&P.alternate!==null&&b.delete(P.key===null?$:P.key),m=i(P,m,$),_===null?S=P:_.sibling=P,_=P);return e&&b.forEach(function(L){return t(v,L)}),_e&&ir(v,$),S}function C(v,m,x,E){if(typeof x=="object"&&x!==null&&x.type===Ur&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case qi:e:{for(var S=x.key,_=m;_!==null;){if(_.key===S){if(S=x.type,S===Ur){if(_.tag===7){n(v,_.sibling),m=o(_,x.props.children),m.return=v,v=m;break e}}else if(_.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===An&&ah(S)===_.type){n(v,_.sibling),m=o(_,x.props),m.ref=zo(v,_,x),m.return=v,v=m;break e}n(v,_);break}else t(v,_);_=_.sibling}x.type===Ur?(m=pr(x.props.children,v.mode,E,x.key),m.return=v,v=m):(E=Fa(x.type,x.key,x.props,null,v.mode,E),E.ref=zo(v,m,x),E.return=v,v=E)}return a(v);case Br:e:{for(_=x.key;m!==null;){if(m.key===_)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){n(v,m.sibling),m=o(m,x.children||[]),m.return=v,v=m;break e}else{n(v,m);break}else t(v,m);m=m.sibling}m=As(x,v.mode,E),m.return=v,v=m}return a(v);case An:return _=x._init,C(v,m,_(x._payload),E)}if(qo(x))return y(v,m,x,E);if(Lo(x))return g(v,m,x,E);ua(v,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(n(v,m.sibling),m=o(m,x),m.return=v,v=m):(n(v,m),m=Ps(x,v.mode,E),m.return=v,v=m),a(v)):n(v,m)}return C}var po=Em(!0),_m=Em(!1),Bi={},tn=er(Bi),Si=er(Bi),bi=er(Bi);function cr(e){if(e===Bi)throw Error(M(174));return e}function hf(e,t){switch(ve(bi,t),ve(Si,e),ve(tn,Bi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:mc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=mc(t,e)}ge(tn),ve(tn,t)}function vo(){ge(tn),ge(Si),ge(bi)}function Sm(e){cr(bi.current);var t=cr(tn.current),n=mc(t,e.type);t!==n&&(ve(Si,e),ve(tn,n))}function pf(e){Si.current===e&&(ge(tn),ge(Si))}var $e=er(0);function sl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var bs=[];function vf(){for(var e=0;en?n:4,e(!0);var r=$s.transition;$s.transition={};try{e(!1),t()}finally{ue=n,$s.transition=r}}function zm(){return Lt().memoizedState}function w3(e,t,n){var r=Vn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Bm(e))Um(t,n);else if(n=ym(e,t,n,r),n!==null){var o=lt();Kt(n,e,r,o),Hm(n,t,r)}}function x3(e,t,n){var r=Vn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bm(e))Um(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,Yt(l,a)){var s=t.interleaved;s===null?(o.next=o,ff(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=ym(e,t,o,r),n!==null&&(o=lt(),Kt(n,e,r,o),Hm(n,t,r))}}function Bm(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function Um(e,t){si=cl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Hm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zu(e,n)}}var ul={readContext:It,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useInsertionEffect:qe,useLayoutEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useMutableSource:qe,useSyncExternalStore:qe,useId:qe,unstable_isNewReconciler:!1},C3={readContext:It,useCallback:function(e,t){return Xt().memoizedState=[e,t===void 0?null:t],e},useContext:It,useEffect:sh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,La(4194308,4,Lm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return La(4194308,4,e,t)},useInsertionEffect:function(e,t){return La(4,2,e,t)},useMemo:function(e,t){var n=Xt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=w3.bind(null,Te,e),[r.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:lh,useDebugValue:xf,useDeferredValue:function(e){return Xt().memoizedState=e},useTransition:function(){var e=lh(!1),t=e[0];return e=y3.bind(null,e[1]),Xt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Te,o=Xt();if(_e){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),Ke===null)throw Error(M(349));yr&30||Tm(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,sh(Rm.bind(null,r,i,e),[e]),r.flags|=2048,ki(9,km.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Xt(),t=Ke.identifierPrefix;if(_e){var n=un,r=cn;n=(r&~(1<<32-Wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=$i++,0")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{cs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Jo(e):""}function Xy(e){switch(e.tag){case 5:return Jo(e.type);case 16:return Jo("Lazy");case 13:return Jo("Suspense");case 19:return Jo("SuspenseList");case 0:case 2:case 15:return e=us(e.type,!1),e;case 11:return e=us(e.type.render,!1),e;case 1:return e=us(e.type,!0),e;default:return""}}function fc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ur:return"Fragment";case Br:return"Portal";case sc:return"Profiler";case Wu:return"StrictMode";case cc:return"Suspense";case uc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ev:return(e.displayName||"Context")+".Consumer";case Cv:return(e._context.displayName||"Context")+".Provider";case Ku:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Yu:return t=e.displayName||null,t!==null?t:fc(e.type)||"Memo";case An:t=e._payload,e=e._init;try{return fc(e(t))}catch{}}return null}function Jy(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fc(t);case 8:return t===Wu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Sv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qy(e){var t=Sv(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ea(e){e._valueTracker||(e._valueTracker=qy(e))}function bv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Sv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ka(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function dc(e,t){var n=t.checked;return ke({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $d(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function $v(e,t){t=t.checked,t!=null&&Vu(e,"checked",t,!1)}function hc(e,t){$v(e,t);var n=Kn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?pc(e,t.type,n):t.hasOwnProperty("defaultValue")&&pc(e,t.type,Kn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Td(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function pc(e,t,n){(t!=="number"||Ka(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var qo=Array.isArray;function to(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ta.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function pi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ri={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},e2=["Webkit","ms","Moz","O"];Object.keys(ri).forEach(function(e){e2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ri[t]=ri[e]})});function Nv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ri.hasOwnProperty(e)&&ri[e]?(""+t).trim():t+"px"}function Pv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Nv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var t2=ke({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function gc(e,t){if(t){if(t2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function yc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wc=null;function Gu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xc=null,no=null,ro=null;function Nd(e){if(e=zi(e)){if(typeof xc!="function")throw Error(M(280));var t=e.stateNode;t&&(t=Nl(t),xc(e.stateNode,e.type,t))}}function Av(e){no?ro?ro.push(e):ro=[e]:no=e}function Ov(){if(no){var e=no,t=ro;if(ro=no=null,Nd(e),t)for(e=0;e>>=0,e===0?32:31-(d2(e)/h2|0)|0}var na=64,ra=4194304;function ei(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Za(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=ei(l):(i&=a,i!==0&&(r=ei(i)))}else a=n&~o,a!==0?r=ei(a):i!==0&&(r=ei(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Di(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Wt(t),e[t]=n}function g2(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ii),Fd=" ",zd=!1;function qv(e,t){switch(e){case"keyup":return W2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function em(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hr=!1;function Y2(e,t){switch(e){case"compositionend":return em(t);case"keypress":return t.which!==32?null:(zd=!0,Fd);case"textInput":return e=t.data,e===Fd&&zd?null:e;default:return null}}function G2(e,t){if(Hr)return e==="compositionend"||!nf&&qv(e,t)?(e=Xv(),Pa=qu=Mn=null,Hr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Vd(n)}}function om(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?om(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function im(){for(var e=window,t=Ka();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ka(e.document)}return t}function rf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function r3(e){var t=im(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&om(n.ownerDocument.documentElement,n)){if(r!==null&&rf(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Wd(n,i);var a=Wd(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Vr=null,$c=null,li=null,Tc=!1;function Kd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Tc||Vr==null||Vr!==Ka(r)||(r=Vr,"selectionStart"in r&&rf(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),li&&xi(li,r)||(li=r,r=qa($c,"onSelect"),0Yr||(e.current=Oc[Yr],Oc[Yr]=null,Yr--)}function ve(e,t){Yr++,Oc[Yr]=e.current,e.current=t}var Yn={},rt=er(Yn),mt=er(!1),mr=Yn;function fo(e,t){var n=e.type.contextTypes;if(!n)return Yn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function gt(e){return e=e.childContextTypes,e!=null}function tl(){ge(mt),ge(rt)}function qd(e,t,n){if(rt.current!==Yn)throw Error(M(168));ve(rt,t),ve(mt,n)}function pm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(M(108,Jy(e)||"Unknown",o));return ke({},n,r)}function nl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yn,mr=rt.current,ve(rt,e),ve(mt,mt.current),!0}function eh(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=pm(e,t,mr),r.__reactInternalMemoizedMergedChildContext=e,ge(mt),ge(rt),ve(rt,e)):ge(mt),ve(mt,n)}var sn=null,Pl=!1,Ss=!1;function vm(e){sn===null?sn=[e]:sn.push(e)}function v3(e){Pl=!0,vm(e)}function tr(){if(!Ss&&sn!==null){Ss=!0;var e=0,t=ue;try{var n=sn;for(ue=1;e>=a,o-=a,cn=1<<32-Wt(t)+o|n<$?(T=b,b=null):T=b.sibling;var P=d(v,b,x[$],E);if(P===null){b===null&&(b=T);break}e&&b&&P.alternate===null&&t(v,b),m=i(P,m,$),_===null?S=P:_.sibling=P,_=P,b=T}if($===x.length)return n(v,b),_e&&ir(v,$),S;if(b===null){for(;$$?(T=b,b=null):T=b.sibling;var j=d(v,b,P.value,E);if(j===null){b===null&&(b=T);break}e&&b&&j.alternate===null&&t(v,b),m=i(j,m,$),_===null?S=j:_.sibling=j,_=j,b=T}if(P.done)return n(v,b),_e&&ir(v,$),S;if(b===null){for(;!P.done;$++,P=x.next())P=c(v,P.value,E),P!==null&&(m=i(P,m,$),_===null?S=P:_.sibling=P,_=P);return _e&&ir(v,$),S}for(b=r(v,b);!P.done;$++,P=x.next())P=p(b,v,$,P.value,E),P!==null&&(e&&P.alternate!==null&&b.delete(P.key===null?$:P.key),m=i(P,m,$),_===null?S=P:_.sibling=P,_=P);return e&&b.forEach(function(L){return t(v,L)}),_e&&ir(v,$),S}function C(v,m,x,E){if(typeof x=="object"&&x!==null&&x.type===Ur&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case qi:e:{for(var S=x.key,_=m;_!==null;){if(_.key===S){if(S=x.type,S===Ur){if(_.tag===7){n(v,_.sibling),m=o(_,x.props.children),m.return=v,v=m;break e}}else if(_.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===An&&lh(S)===_.type){n(v,_.sibling),m=o(_,x.props),m.ref=zo(v,_,x),m.return=v,v=m;break e}n(v,_);break}else t(v,_);_=_.sibling}x.type===Ur?(m=pr(x.props.children,v.mode,E,x.key),m.return=v,v=m):(E=Fa(x.type,x.key,x.props,null,v.mode,E),E.ref=zo(v,m,x),E.return=v,v=E)}return a(v);case Br:e:{for(_=x.key;m!==null;){if(m.key===_)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){n(v,m.sibling),m=o(m,x.children||[]),m.return=v,v=m;break e}else{n(v,m);break}else t(v,m);m=m.sibling}m=As(x,v.mode,E),m.return=v,v=m}return a(v);case An:return _=x._init,C(v,m,_(x._payload),E)}if(qo(x))return y(v,m,x,E);if(Lo(x))return g(v,m,x,E);ua(v,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(n(v,m.sibling),m=o(m,x),m.return=v,v=m):(n(v,m),m=Ps(x,v.mode,E),m.return=v,v=m),a(v)):n(v,m)}return C}var po=_m(!0),Sm=_m(!1),Bi={},tn=er(Bi),Si=er(Bi),bi=er(Bi);function cr(e){if(e===Bi)throw Error(M(174));return e}function hf(e,t){switch(ve(bi,t),ve(Si,e),ve(tn,Bi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:mc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=mc(t,e)}ge(tn),ve(tn,t)}function vo(){ge(tn),ge(Si),ge(bi)}function bm(e){cr(bi.current);var t=cr(tn.current),n=mc(t,e.type);t!==n&&(ve(Si,e),ve(tn,n))}function pf(e){Si.current===e&&(ge(tn),ge(Si))}var $e=er(0);function sl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var bs=[];function vf(){for(var e=0;en?n:4,e(!0);var r=$s.transition;$s.transition={};try{e(!1),t()}finally{ue=n,$s.transition=r}}function Bm(){return Lt().memoizedState}function w3(e,t,n){var r=Vn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Um(e))Hm(t,n);else if(n=wm(e,t,n,r),n!==null){var o=lt();Kt(n,e,r,o),Vm(n,t,r)}}function x3(e,t,n){var r=Vn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Um(e))Hm(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,Yt(l,a)){var s=t.interleaved;s===null?(o.next=o,ff(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=wm(e,t,o,r),n!==null&&(o=lt(),Kt(n,e,r,o),Vm(n,t,r))}}function Um(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function Hm(e,t){si=cl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zu(e,n)}}var ul={readContext:It,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useInsertionEffect:qe,useLayoutEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useMutableSource:qe,useSyncExternalStore:qe,useId:qe,unstable_isNewReconciler:!1},C3={readContext:It,useCallback:function(e,t){return Xt().memoizedState=[e,t===void 0?null:t],e},useContext:It,useEffect:ch,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,La(4194308,4,Mm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return La(4194308,4,e,t)},useInsertionEffect:function(e,t){return La(4,2,e,t)},useMemo:function(e,t){var n=Xt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=w3.bind(null,Te,e),[r.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:sh,useDebugValue:xf,useDeferredValue:function(e){return Xt().memoizedState=e},useTransition:function(){var e=sh(!1),t=e[0];return e=y3.bind(null,e[1]),Xt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Te,o=Xt();if(_e){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),Ke===null)throw Error(M(349));yr&30||km(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,ch(Nm.bind(null,r,i,e),[e]),r.flags|=2048,ki(9,Rm.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Xt(),t=Ke.identifierPrefix;if(_e){var n=un,r=cn;n=(r&~(1<<32-Wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=$i++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Jt]=t,e[_i]=r,Jm(e,t,!1,!1),t.stateNode=e;e:{switch(a=yc(n,r),n){case"dialog":me("cancel",e),me("close",e),o=r;break;case"iframe":case"object":case"embed":me("load",e),o=r;break;case"video":case"audio":for(o=0;ogo&&(t.flags|=128,r=!0,Bo(i,!1),t.lanes=4194304)}else{if(!r)if(e=sl(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Bo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!_e)return et(t),null}else 2*Me()-i.renderingStartTime>go&&n!==1073741824&&(t.flags|=128,r=!0,Bo(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Me(),t.sibling=null,n=$e.current,ve($e,r?n&1|2:n&1),t):(et(t),null);case 22:case 23:return $f(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ct&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function R3(e,t){switch(af(t),t.tag){case 1:return gt(t.type)&&tl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vo(),ge(mt),ge(rt),vf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return pf(t),null;case 13:if(ge($e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));ho()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ge($e),null;case 4:return vo(),null;case 10:return uf(t.type._context),null;case 22:case 23:return $f(),null;case 24:return null;default:return null}}var da=!1,tt=!1,N3=typeof WeakSet=="function"?WeakSet:Set,H=null;function Xr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ae(e,t,r)}else n.current=null}function Wc(e,t,n){try{n()}catch(r){Ae(e,t,r)}}var gh=!1;function P3(e,t){if(kc=Xa,e=om(),rf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,s=-1,u=0,f=0,c=e,d=null;t:for(;;){for(var p;c!==n||o!==0&&c.nodeType!==3||(l=a+o),c!==i||r!==0&&c.nodeType!==3||(s=a+r),c.nodeType===3&&(a+=c.nodeValue.length),(p=c.firstChild)!==null;)d=c,c=p;for(;;){if(c===e)break t;if(d===n&&++u===o&&(l=a),d===i&&++f===r&&(s=a),(p=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=p}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Rc={focusedElem:e,selectionRange:n},Xa=!1,H=t;H!==null;)if(t=H,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var g=y.memoizedProps,C=y.memoizedState,v=t.stateNode,m=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ft(t.type,g),C);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(E){Ae(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return y=gh,gh=!1,y}function ci(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Wc(t,n,i)}o=o.next}while(o!==r)}}function Il(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Kc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function t0(e){var t=e.alternate;t!==null&&(e.alternate=null,t0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Jt],delete t[_i],delete t[Ac],delete t[h3],delete t[p3])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function n0(e){return e.tag===5||e.tag===3||e.tag===4}function yh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||n0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Yc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=el));else if(r!==4&&(e=e.child,e!==null))for(Yc(e,t,n),e=e.sibling;e!==null;)Yc(e,t,n),e=e.sibling}function Gc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Gc(e,t,n),e=e.sibling;e!==null;)Gc(e,t,n),e=e.sibling}var Ge=null,zt=!1;function Rn(e,t,n){for(n=n.child;n!==null;)r0(e,t,n),n=n.sibling}function r0(e,t,n){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount($l,n)}catch{}switch(n.tag){case 5:tt||Xr(n,t);case 6:var r=Ge,o=zt;Ge=null,Rn(e,t,n),Ge=r,zt=o,Ge!==null&&(zt?(e=Ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ge.removeChild(n.stateNode));break;case 18:Ge!==null&&(zt?(e=Ge,n=n.stateNode,e.nodeType===8?_s(e.parentNode,n):e.nodeType===1&&_s(e,n),yi(e)):_s(Ge,n.stateNode));break;case 4:r=Ge,o=zt,Ge=n.stateNode.containerInfo,zt=!0,Rn(e,t,n),Ge=r,zt=o;break;case 0:case 11:case 14:case 15:if(!tt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Wc(n,t,a),o=o.next}while(o!==r)}Rn(e,t,n);break;case 1:if(!tt&&(Xr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ae(n,t,l)}Rn(e,t,n);break;case 21:Rn(e,t,n);break;case 22:n.mode&1?(tt=(r=tt)||n.memoizedState!==null,Rn(e,t,n),tt=r):Rn(e,t,n);break;default:Rn(e,t,n)}}function wh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new N3),t.forEach(function(r){var o=z3.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*O3(r/1960))-r,10e?16:e,jn===null)var r=!1;else{if(e=jn,jn=null,hl=0,le&6)throw Error(M(331));var o=le;for(le|=4,H=e.current;H!==null;){var i=H,a=i.child;if(H.flags&16){var l=i.deletions;if(l!==null){for(var s=0;sMe()-Sf?hr(e,0):_f|=n),yt(e,t)}function f0(e,t){t===0&&(e.mode&1?(t=ra,ra<<=1,!(ra&130023424)&&(ra=4194304)):t=1);var n=lt();e=vn(e,t),e!==null&&(Di(e,t,n),yt(e,n))}function F3(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),f0(e,n)}function z3(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(M(314))}r!==null&&r.delete(t),f0(e,n)}var d0;d0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||mt.current)vt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return vt=!1,T3(e,t,n);vt=!!(e.flags&131072)}else vt=!1,_e&&t.flags&1048576&&vm(t,ol,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ma(e,t),e=t.pendingProps;var o=fo(t,rt.current);io(t,n),o=gf(null,t,r,e,o,n);var i=yf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,gt(r)?(i=!0,nl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,df(t),o.updater=Al,t.stateNode=o,o._reactInternals=t,Dc(t,r,e,n),t=Bc(null,t,r,!0,i,n)):(t.tag=0,_e&&i&&of(t),it(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ma(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=U3(r),e=Ft(r,e),o){case 0:t=zc(null,t,r,e,n);break e;case 1:t=ph(null,t,r,e,n);break e;case 11:t=dh(null,t,r,e,n);break e;case 14:t=hh(null,t,r,Ft(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),zc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),ph(e,t,r,o,n);case 3:e:{if(Qm(t),e===null)throw Error(M(387));r=t.pendingProps,i=t.memoizedState,o=i.element,wm(e,t),ll(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=mo(Error(M(423)),t),t=vh(e,t,r,n,o);break e}else if(r!==o){o=mo(Error(M(424)),t),t=vh(e,t,r,n,o);break e}else for(_t=Bn(t.stateNode.containerInfo.firstChild),St=t,_e=!0,Ut=null,n=_m(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ho(),r===o){t=mn(e,t,n);break e}it(e,t,r,n)}t=t.child}return t;case 5:return Sm(t),e===null&&Lc(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Nc(r,o)?a=null:i!==null&&Nc(r,i)&&(t.flags|=32),Gm(e,t),it(e,t,a,n),t.child;case 6:return e===null&&Lc(t),null;case 13:return Zm(e,t,n);case 4:return hf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=po(t,null,r,n):it(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),dh(e,t,r,o,n);case 7:return it(e,t,t.pendingProps,n),t.child;case 8:return it(e,t,t.pendingProps.children,n),t.child;case 12:return it(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,ve(il,r._currentValue),r._currentValue=a,i!==null)if(Yt(i.value,a)){if(i.children===o.children&&!mt.current){t=mn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=fn(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?s.next=s:(s.next=f.next,f.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Mc(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(M(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Mc(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}it(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,io(t,n),o=It(o),r=r(o),t.flags|=1,it(e,t,r,n),t.child;case 14:return r=t.type,o=Ft(r,t.pendingProps),o=Ft(r.type,o),hh(e,t,r,o,n);case 15:return Km(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),Ma(e,t),t.tag=1,gt(r)?(e=!0,nl(t)):e=!1,io(t,n),Cm(t,r,o),Dc(t,r,o,n),Bc(null,t,r,!0,e,n);case 19:return Xm(e,t,n);case 22:return Ym(e,t,n)}throw Error(M(156,t.tag))};function h0(e,t){return Fv(e,t)}function B3(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,n,r){return new B3(e,t,n,r)}function kf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function U3(e){if(typeof e=="function")return kf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ku)return 11;if(e===Yu)return 14}return 2}function Wn(e,t){var n=e.alternate;return n===null?(n=At(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fa(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")kf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ur:return pr(n.children,o,i,t);case Wu:a=8,o|=8;break;case sc:return e=At(12,n,t,o|2),e.elementType=sc,e.lanes=i,e;case cc:return e=At(13,n,t,o),e.elementType=cc,e.lanes=i,e;case uc:return e=At(19,n,t,o),e.elementType=uc,e.lanes=i,e;case Ev:return Ml(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case xv:a=10;break e;case Cv:a=9;break e;case Ku:a=11;break e;case Yu:a=14;break e;case An:a=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=At(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function pr(e,t,n,r){return e=At(7,e,r,t),e.lanes=n,e}function Ml(e,t,n,r){return e=At(22,e,r,t),e.elementType=Ev,e.lanes=n,e.stateNode={isHidden:!1},e}function Ps(e,t,n){return e=At(6,e,null,t),e.lanes=n,e}function As(e,t,n){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function H3(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ds(0),this.expirationTimes=ds(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ds(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Rf(e,t,n,r,o,i,a,l,s){return e=new H3(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=At(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},df(i),e}function V3(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(g0)}catch(e){console.error(e)}}g0(),vv.exports=Tt;var To=vv.exports;const y0=Jn(To),Q3=Mu({__proto__:null,default:y0},[To]);var w0,Th=To;Th.createRoot,w0=Th.hydrateRoot;/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Rs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Fc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var S3=typeof WeakMap=="function"?WeakMap:Map;function Wm(e,t,n){n=fn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){dl||(dl=!0,Qc=r),Fc(e,t)},n}function Km(e,t,n){n=fn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Fc(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Fc(e,t),typeof r!="function"&&(Hn===null?Hn=new Set([this]):Hn.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function uh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new S3;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=D3.bind(null,e,t,n),t.then(e,e))}function fh(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function dh(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=fn(-1,1),t.tag=2,Un(n,t,1))),n.lanes|=1),e)}var b3=xn.ReactCurrentOwner,vt=!1;function it(e,t,n,r){t.child=e===null?Sm(t,null,n,r):po(t,e.child,n,r)}function hh(e,t,n,r,o){n=n.render;var i=t.ref;return io(t,o),r=gf(e,t,n,r,i,o),n=yf(),e!==null&&!vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,mn(e,t,o)):(_e&&n&&of(t),t.flags|=1,it(e,t,r,o),t.child)}function ph(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!kf(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Ym(e,t,i,r,o)):(e=Fa(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:xi,n(a,r)&&e.ref===t.ref)return mn(e,t,o)}return t.flags|=1,e=Wn(i,r),e.ref=t.ref,e.return=t,t.child=e}function Ym(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(xi(i,r)&&e.ref===t.ref)if(vt=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(vt=!0);else return t.lanes=e.lanes,mn(e,t,o)}return zc(e,t,n,r,o)}function Gm(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ve(Jr,Ct),Ct|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ve(Jr,Ct),Ct|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ve(Jr,Ct),Ct|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ve(Jr,Ct),Ct|=r;return it(e,t,o,n),t.child}function Qm(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function zc(e,t,n,r,o){var i=gt(n)?mr:rt.current;return i=fo(t,i),io(t,o),n=gf(e,t,n,r,i,o),r=yf(),e!==null&&!vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,mn(e,t,o)):(_e&&r&&of(t),t.flags|=1,it(e,t,n,o),t.child)}function vh(e,t,n,r,o){if(gt(n)){var i=!0;nl(t)}else i=!1;if(io(t,o),t.stateNode===null)Ma(e,t),Em(t,n,r),Dc(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=It(u):(u=gt(n)?mr:rt.current,u=fo(t,u));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";c||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||s!==u)&&ah(t,a,r,u),On=!1;var d=t.memoizedState;a.state=d,ll(t,r,a,o),s=t.memoizedState,l!==r||d!==s||mt.current||On?(typeof f=="function"&&(jc(t,n,f,r),s=t.memoizedState),(l=On||ih(t,n,l,r,d,s,u))?(c||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,xm(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Ft(t.type,l),a.props=u,c=t.pendingProps,d=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=It(s):(s=gt(n)?mr:rt.current,s=fo(t,s));var p=n.getDerivedStateFromProps;(f=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==c||d!==s)&&ah(t,a,r,s),On=!1,d=t.memoizedState,a.state=d,ll(t,r,a,o);var y=t.memoizedState;l!==c||d!==y||mt.current||On?(typeof p=="function"&&(jc(t,n,p,r),y=t.memoizedState),(u=On||ih(t,n,u,r,d,y,s)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,y,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,y,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),a.props=r,a.state=y,a.context=s,r=u):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Bc(e,t,n,r,i,o)}function Bc(e,t,n,r,o,i){Qm(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&eh(t,n,!1),mn(e,t,i);r=t.stateNode,b3.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=po(t,e.child,null,i),t.child=po(t,null,l,i)):it(e,t,l,i),t.memoizedState=r.state,o&&eh(t,n,!0),t.child}function Zm(e){var t=e.stateNode;t.pendingContext?qd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&qd(e,t.context,!1),hf(e,t.containerInfo)}function mh(e,t,n,r,o){return ho(),lf(o),t.flags|=256,it(e,t,n,r),t.child}var Uc={dehydrated:null,treeContext:null,retryLane:0};function Hc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Xm(e,t,n){var r=t.pendingProps,o=$e.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ve($e,o&1),e===null)return Lc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Ml(a,r,0,null),e=pr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Hc(n),t.memoizedState=Uc,e):Cf(t,a));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return $3(e,t,a,r,l,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,l=o.sibling;var s={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=Wn(o,s),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=Wn(l,i):(i=pr(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?Hc(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=Uc,r}return i=e.child,e=i.sibling,r=Wn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Cf(e,t){return t=Ml({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function fa(e,t,n,r){return r!==null&&lf(r),po(t,e.child,null,n),e=Cf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $3(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=Rs(Error(M(422))),fa(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Ml({mode:"visible",children:r.children},o,0,null),i=pr(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&po(t,e.child,null,a),t.child.memoizedState=Hc(a),t.memoizedState=Uc,i);if(!(t.mode&1))return fa(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(M(419)),r=Rs(i,r,void 0),fa(e,t,a,r)}if(l=(a&e.childLanes)!==0,vt||l){if(r=Ke,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,vn(e,o),Kt(r,e,o,-1))}return Tf(),r=Rs(Error(M(421))),fa(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=F3.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,_t=Bn(o.nextSibling),St=t,_e=!0,Ut=null,e!==null&&(Nt[Pt++]=cn,Nt[Pt++]=un,Nt[Pt++]=gr,cn=e.id,un=e.overflow,gr=t),t=Cf(t,r.children),t.flags|=4096,t)}function gh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Mc(e.return,t,n)}function Ns(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Jm(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(it(e,t,r.children,n),r=$e.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&gh(e,n,t);else if(e.tag===19)gh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ve($e,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&sl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ns(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&sl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ns(t,!0,n,null,i);break;case"together":Ns(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ma(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function mn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),wr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(M(153));if(t.child!==null){for(e=t.child,n=Wn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Wn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function T3(e,t,n){switch(t.tag){case 3:Zm(t),ho();break;case 5:bm(t);break;case 1:gt(t.type)&&nl(t);break;case 4:hf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ve(il,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ve($e,$e.current&1),t.flags|=128,null):n&t.child.childLanes?Xm(e,t,n):(ve($e,$e.current&1),e=mn(e,t,n),e!==null?e.sibling:null);ve($e,$e.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Jm(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ve($e,$e.current),r)break;return null;case 22:case 23:return t.lanes=0,Gm(e,t,n)}return mn(e,t,n)}var qm,Vc,e0,t0;qm=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Vc=function(){};e0=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,cr(tn.current);var i=null;switch(n){case"input":o=dc(e,o),r=dc(e,r),i=[];break;case"select":o=ke({},o,{value:void 0}),r=ke({},r,{value:void 0}),i=[];break;case"textarea":o=vc(e,o),r=vc(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=el)}gc(n,r);var a;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(hi.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var s=r[u];if(l=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&s!==l&&(s!=null||l!=null))if(u==="style")if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(i||(i=[]),i.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(i=i||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(hi.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&me("scroll",e),i||l===s||(i=[])):(i=i||[]).push(u,s))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};t0=function(e,t,n,r){n!==r&&(t.flags|=4)};function Bo(e,t){if(!_e)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function k3(e,t,n){var r=t.pendingProps;switch(af(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return gt(t.type)&&tl(),et(t),null;case 3:return r=t.stateNode,vo(),ge(mt),ge(rt),vf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ca(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ut!==null&&(Jc(Ut),Ut=null))),Vc(e,t),et(t),null;case 5:pf(t);var o=cr(bi.current);if(n=t.type,e!==null&&t.stateNode!=null)e0(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(M(166));return et(t),null}if(e=cr(tn.current),ca(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Jt]=t,r[_i]=i,e=(t.mode&1)!==0,n){case"dialog":me("cancel",r),me("close",r);break;case"iframe":case"object":case"embed":me("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Jt]=t,e[_i]=r,qm(e,t,!1,!1),t.stateNode=e;e:{switch(a=yc(n,r),n){case"dialog":me("cancel",e),me("close",e),o=r;break;case"iframe":case"object":case"embed":me("load",e),o=r;break;case"video":case"audio":for(o=0;ogo&&(t.flags|=128,r=!0,Bo(i,!1),t.lanes=4194304)}else{if(!r)if(e=sl(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Bo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!_e)return et(t),null}else 2*Me()-i.renderingStartTime>go&&n!==1073741824&&(t.flags|=128,r=!0,Bo(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Me(),t.sibling=null,n=$e.current,ve($e,r?n&1|2:n&1),t):(et(t),null);case 22:case 23:return $f(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ct&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function R3(e,t){switch(af(t),t.tag){case 1:return gt(t.type)&&tl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vo(),ge(mt),ge(rt),vf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return pf(t),null;case 13:if(ge($e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));ho()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ge($e),null;case 4:return vo(),null;case 10:return uf(t.type._context),null;case 22:case 23:return $f(),null;case 24:return null;default:return null}}var da=!1,tt=!1,N3=typeof WeakSet=="function"?WeakSet:Set,H=null;function Xr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ae(e,t,r)}else n.current=null}function Wc(e,t,n){try{n()}catch(r){Ae(e,t,r)}}var yh=!1;function P3(e,t){if(kc=Xa,e=im(),rf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,s=-1,u=0,f=0,c=e,d=null;t:for(;;){for(var p;c!==n||o!==0&&c.nodeType!==3||(l=a+o),c!==i||r!==0&&c.nodeType!==3||(s=a+r),c.nodeType===3&&(a+=c.nodeValue.length),(p=c.firstChild)!==null;)d=c,c=p;for(;;){if(c===e)break t;if(d===n&&++u===o&&(l=a),d===i&&++f===r&&(s=a),(p=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=p}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Rc={focusedElem:e,selectionRange:n},Xa=!1,H=t;H!==null;)if(t=H,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var g=y.memoizedProps,C=y.memoizedState,v=t.stateNode,m=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ft(t.type,g),C);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(E){Ae(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return y=yh,yh=!1,y}function ci(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Wc(t,n,i)}o=o.next}while(o!==r)}}function Il(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Kc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function n0(e){var t=e.alternate;t!==null&&(e.alternate=null,n0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Jt],delete t[_i],delete t[Ac],delete t[h3],delete t[p3])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function r0(e){return e.tag===5||e.tag===3||e.tag===4}function wh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||r0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Yc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=el));else if(r!==4&&(e=e.child,e!==null))for(Yc(e,t,n),e=e.sibling;e!==null;)Yc(e,t,n),e=e.sibling}function Gc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Gc(e,t,n),e=e.sibling;e!==null;)Gc(e,t,n),e=e.sibling}var Ge=null,zt=!1;function Rn(e,t,n){for(n=n.child;n!==null;)o0(e,t,n),n=n.sibling}function o0(e,t,n){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount($l,n)}catch{}switch(n.tag){case 5:tt||Xr(n,t);case 6:var r=Ge,o=zt;Ge=null,Rn(e,t,n),Ge=r,zt=o,Ge!==null&&(zt?(e=Ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ge.removeChild(n.stateNode));break;case 18:Ge!==null&&(zt?(e=Ge,n=n.stateNode,e.nodeType===8?_s(e.parentNode,n):e.nodeType===1&&_s(e,n),yi(e)):_s(Ge,n.stateNode));break;case 4:r=Ge,o=zt,Ge=n.stateNode.containerInfo,zt=!0,Rn(e,t,n),Ge=r,zt=o;break;case 0:case 11:case 14:case 15:if(!tt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Wc(n,t,a),o=o.next}while(o!==r)}Rn(e,t,n);break;case 1:if(!tt&&(Xr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ae(n,t,l)}Rn(e,t,n);break;case 21:Rn(e,t,n);break;case 22:n.mode&1?(tt=(r=tt)||n.memoizedState!==null,Rn(e,t,n),tt=r):Rn(e,t,n);break;default:Rn(e,t,n)}}function xh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new N3),t.forEach(function(r){var o=z3.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*O3(r/1960))-r,10e?16:e,jn===null)var r=!1;else{if(e=jn,jn=null,hl=0,le&6)throw Error(M(331));var o=le;for(le|=4,H=e.current;H!==null;){var i=H,a=i.child;if(H.flags&16){var l=i.deletions;if(l!==null){for(var s=0;sMe()-Sf?hr(e,0):_f|=n),yt(e,t)}function d0(e,t){t===0&&(e.mode&1?(t=ra,ra<<=1,!(ra&130023424)&&(ra=4194304)):t=1);var n=lt();e=vn(e,t),e!==null&&(Di(e,t,n),yt(e,n))}function F3(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),d0(e,n)}function z3(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(M(314))}r!==null&&r.delete(t),d0(e,n)}var h0;h0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||mt.current)vt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return vt=!1,T3(e,t,n);vt=!!(e.flags&131072)}else vt=!1,_e&&t.flags&1048576&&mm(t,ol,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ma(e,t),e=t.pendingProps;var o=fo(t,rt.current);io(t,n),o=gf(null,t,r,e,o,n);var i=yf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,gt(r)?(i=!0,nl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,df(t),o.updater=Al,t.stateNode=o,o._reactInternals=t,Dc(t,r,e,n),t=Bc(null,t,r,!0,i,n)):(t.tag=0,_e&&i&&of(t),it(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ma(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=U3(r),e=Ft(r,e),o){case 0:t=zc(null,t,r,e,n);break e;case 1:t=vh(null,t,r,e,n);break e;case 11:t=hh(null,t,r,e,n);break e;case 14:t=ph(null,t,r,Ft(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),zc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),vh(e,t,r,o,n);case 3:e:{if(Zm(t),e===null)throw Error(M(387));r=t.pendingProps,i=t.memoizedState,o=i.element,xm(e,t),ll(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=mo(Error(M(423)),t),t=mh(e,t,r,n,o);break e}else if(r!==o){o=mo(Error(M(424)),t),t=mh(e,t,r,n,o);break e}else for(_t=Bn(t.stateNode.containerInfo.firstChild),St=t,_e=!0,Ut=null,n=Sm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ho(),r===o){t=mn(e,t,n);break e}it(e,t,r,n)}t=t.child}return t;case 5:return bm(t),e===null&&Lc(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Nc(r,o)?a=null:i!==null&&Nc(r,i)&&(t.flags|=32),Qm(e,t),it(e,t,a,n),t.child;case 6:return e===null&&Lc(t),null;case 13:return Xm(e,t,n);case 4:return hf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=po(t,null,r,n):it(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),hh(e,t,r,o,n);case 7:return it(e,t,t.pendingProps,n),t.child;case 8:return it(e,t,t.pendingProps.children,n),t.child;case 12:return it(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,ve(il,r._currentValue),r._currentValue=a,i!==null)if(Yt(i.value,a)){if(i.children===o.children&&!mt.current){t=mn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=fn(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?s.next=s:(s.next=f.next,f.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Mc(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(M(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Mc(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}it(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,io(t,n),o=It(o),r=r(o),t.flags|=1,it(e,t,r,n),t.child;case 14:return r=t.type,o=Ft(r,t.pendingProps),o=Ft(r.type,o),ph(e,t,r,o,n);case 15:return Ym(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),Ma(e,t),t.tag=1,gt(r)?(e=!0,nl(t)):e=!1,io(t,n),Em(t,r,o),Dc(t,r,o,n),Bc(null,t,r,!0,e,n);case 19:return Jm(e,t,n);case 22:return Gm(e,t,n)}throw Error(M(156,t.tag))};function p0(e,t){return zv(e,t)}function B3(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,n,r){return new B3(e,t,n,r)}function kf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function U3(e){if(typeof e=="function")return kf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ku)return 11;if(e===Yu)return 14}return 2}function Wn(e,t){var n=e.alternate;return n===null?(n=At(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fa(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")kf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ur:return pr(n.children,o,i,t);case Wu:a=8,o|=8;break;case sc:return e=At(12,n,t,o|2),e.elementType=sc,e.lanes=i,e;case cc:return e=At(13,n,t,o),e.elementType=cc,e.lanes=i,e;case uc:return e=At(19,n,t,o),e.elementType=uc,e.lanes=i,e;case _v:return Ml(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Cv:a=10;break e;case Ev:a=9;break e;case Ku:a=11;break e;case Yu:a=14;break e;case An:a=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=At(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function pr(e,t,n,r){return e=At(7,e,r,t),e.lanes=n,e}function Ml(e,t,n,r){return e=At(22,e,r,t),e.elementType=_v,e.lanes=n,e.stateNode={isHidden:!1},e}function Ps(e,t,n){return e=At(6,e,null,t),e.lanes=n,e}function As(e,t,n){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function H3(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ds(0),this.expirationTimes=ds(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ds(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Rf(e,t,n,r,o,i,a,l,s){return e=new H3(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=At(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},df(i),e}function V3(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(y0)}catch(e){console.error(e)}}y0(),mv.exports=Tt;var To=mv.exports;const w0=Jn(To),Q3=Mu({__proto__:null,default:w0},[To]);var x0,kh=To;kh.createRoot,x0=kh.hydrateRoot;/** * @remix-run/router v1.15.3 * * Copyright (c) Remix Software Inc. @@ -46,8 +46,8 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function yo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function X3(){return Math.random().toString(36).substr(2,8)}function Rh(e,t){return{usr:e.state,key:e.key,idx:t}}function Ni(e,t,n,r){return n===void 0&&(n=null),Oe({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Cn(t):t,{state:n,key:t&&t.key||r||X3()})}function Cr(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Cn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function J3(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=Ie.Pop,s=null,u=f();u==null&&(u=0,a.replaceState(Oe({},a.state,{idx:u}),""));function f(){return(a.state||{idx:null}).idx}function c(){l=Ie.Pop;let C=f(),v=C==null?null:C-u;u=C,s&&s({action:l,location:g.location,delta:v})}function d(C,v){l=Ie.Push;let m=Ni(g.location,C,v);n&&n(m,C),u=f()+1;let x=Rh(m,u),E=g.createHref(m);try{a.pushState(x,"",E)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(E)}i&&s&&s({action:l,location:g.location,delta:1})}function p(C,v){l=Ie.Replace;let m=Ni(g.location,C,v);n&&n(m,C),u=f();let x=Rh(m,u),E=g.createHref(m);a.replaceState(x,"",E),i&&s&&s({action:l,location:g.location,delta:0})}function y(C){let v=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof C=="string"?C:Cr(C);return m=m.replace(/ $/,"%20"),te(v,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,v)}let g={get action(){return l},get location(){return e(o,a)},listen(C){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(kh,c),s=C,()=>{o.removeEventListener(kh,c),s=null}},createHref(C){return t(o,C)},createURL:y,encodeLocation(C){let v=y(C);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:d,replace:p,go(C){return a.go(C)}};return g}var Pe;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Pe||(Pe={}));const q3=new Set(["lazy","caseSensitive","path","id","index","children"]);function ew(e){return e.index===!0}function qc(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,i],l=typeof o.id=="string"?o.id:a.join("-");if(te(o.index!==!0||!o.children,"Cannot specify children on an index route"),te(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),ew(o)){let s=Oe({},o,t(o),{id:l});return r[l]=s,s}else{let s=Oe({},o,t(o),{id:l,children:void 0});return r[l]=s,o.children&&(s.children=qc(o.children,t,a,r)),s}})}function ur(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Cn(t):t,o=br(r.pathname||"/",n);if(o==null)return null;let i=C0(e);tw(i);let a=null;for(let l=0;a==null&&l{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(te(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=dn([r,s.relativePath]),f=n.concat(s);i.children&&i.children.length>0&&(te(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),C0(i.children,t,f,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:sw(u,i.index),routesMeta:f})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of E0(i.path))o(i,a,s)}),t}function E0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=E0(r.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function tw(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:cw(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const nw=/^:[\w-]+$/,rw=3,ow=2,iw=1,aw=10,lw=-2,Nh=e=>e==="*";function sw(e,t){let n=e.split("/"),r=n.length;return n.some(Nh)&&(r+=lw),t&&(r+=ow),n.filter(o=>!Nh(o)).reduce((o,i)=>o+(nw.test(i)?rw:i===""?iw:aw),r)}function cw(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function uw(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{let{paramName:d,isOptional:p}=f;if(d==="*"){let g=l[c]||"";a=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const y=l[c];return p&&!y?u[d]=void 0:u[d]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function fw(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),yo(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function dw(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return yo(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function br(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function hw(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Cn(e):e;return{pathname:n?n.startsWith("/")?n:pw(n,t):t,search:mw(r),hash:gw(o)}}function pw(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Os(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function _0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Of(e,t){let n=_0(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function If(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Cn(e):(o=Oe({},e),te(!o.pathname||!o.pathname.includes("?"),Os("?","pathname","search",o)),te(!o.pathname||!o.pathname.includes("#"),Os("#","pathname","hash",o)),te(!o.search||!o.search.includes("#"),Os("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=n;else{let c=t.length-1;if(!r&&a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),c-=1;o.pathname=d.join("/")}l=c>=0?t[c]:"/"}let s=hw(o,l),u=a&&a!=="/"&&a.endsWith("/"),f=(i||a===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||f)&&(s.pathname+="/"),s}const dn=e=>e.join("/").replace(/\/\/+/g,"/"),vw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),mw=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Lf{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function S0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const b0=["post","put","patch","delete"],yw=new Set(b0),ww=["get",...b0],xw=new Set(ww),Cw=new Set([301,302,303,307,308]),Ew=new Set([307,308]),Is={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},_w={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ho={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},$0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Sw=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),T0="remix-router-transitions";function bw(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;te(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let k=e.detectErrorBoundary;o=R=>({hasErrorBoundary:k(R)})}else o=Sw;let i={},a=qc(e.routes,o,void 0,i),l,s=e.basename||"/",u=Oe({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),f=null,c=new Set,d=null,p=null,y=null,g=e.hydrationData!=null,C=ur(a,e.history.location,s),v=null;if(C==null){let k=Rt(404,{pathname:e.history.location.pathname}),{matches:R,route:A}=Dh(a);C=R,v={[A.id]:k}}let m,x=C.some(k=>k.route.lazy),E=C.some(k=>k.route.loader);if(x)m=!1;else if(!E)m=!0;else if(u.v7_partialHydration){let k=e.hydrationData?e.hydrationData.loaderData:null,R=e.hydrationData?e.hydrationData.errors:null,A=B=>B.route.loader?B.route.loader.hydrate===!0?!1:k&&k[B.route.id]!==void 0||R&&R[B.route.id]!==void 0:!0;if(R){let B=C.findIndex(W=>R[W.route.id]!==void 0);m=C.slice(0,B+1).every(A)}else m=C.every(A)}else m=e.hydrationData!=null;let S,_={historyAction:e.history.action,location:e.history.location,matches:C,initialized:m,navigation:Is,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},b=Ie.Pop,$=!1,T,P=!1,j=new Map,L=null,D=!1,N=!1,z=[],V=[],U=new Map,O=0,F=-1,K=new Map,J=new Set,se=new Map,Be=new Map,ye=new Set,Ne=new Map,we=new Map,Ue=!1;function xe(){if(f=e.history.listen(k=>{let{action:R,location:A,delta:B}=k;if(Ue){Ue=!1;return}yo(we.size===0||B!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let W=md({currentLocation:_.location,nextLocation:A,historyAction:R});if(W&&B!=null){Ue=!0,e.history.go(B*-1),Qi(W,{state:"blocked",location:A,proceed(){Qi(W,{state:"proceeding",proceed:void 0,reset:void 0,location:A}),e.history.go(B)},reset(){let re=new Map(_.blockers);re.set(W,Ho),be({blockers:re})}});return}return wt(R,A)}),n){Mw(t,j);let k=()=>jw(t,j);t.addEventListener("pagehide",k),L=()=>t.removeEventListener("pagehide",k)}return _.initialized||wt(Ie.Pop,_.location,{initialHydration:!0}),S}function Se(){f&&f(),L&&L(),c.clear(),T&&T.abort(),_.fetchers.forEach((k,R)=>Gi(R)),_.blockers.forEach((k,R)=>vd(R))}function jt(k){return c.add(k),()=>c.delete(k)}function be(k,R){R===void 0&&(R={}),_=Oe({},_,k);let A=[],B=[];u.v7_fetcherPersist&&_.fetchers.forEach((W,re)=>{W.state==="idle"&&(ye.has(re)?B.push(re):A.push(re))}),[...c].forEach(W=>W(_,{deletedFetchers:B,unstable_viewTransitionOpts:R.viewTransitionOpts,unstable_flushSync:R.flushSync===!0})),u.v7_fetcherPersist&&(A.forEach(W=>_.fetchers.delete(W)),B.forEach(W=>Gi(W)))}function ft(k,R,A){var B,W;let{flushSync:re}=A===void 0?{}:A,X=_.actionData!=null&&_.navigation.formMethod!=null&&Bt(_.navigation.formMethod)&&_.navigation.state==="loading"&&((B=k.state)==null?void 0:B._isRedirect)!==!0,Q;R.actionData?Object.keys(R.actionData).length>0?Q=R.actionData:Q=null:X?Q=_.actionData:Q=null;let G=R.loaderData?jh(_.loaderData,R.loaderData,R.matches||[],R.errors):_.loaderData,ie=_.blockers;ie.size>0&&(ie=new Map(ie),ie.forEach((he,Ye)=>ie.set(Ye,Ho)));let He=$===!0||_.navigation.formMethod!=null&&Bt(_.navigation.formMethod)&&((W=k.state)==null?void 0:W._isRedirect)!==!0;l&&(a=l,l=void 0),D||b===Ie.Pop||(b===Ie.Push?e.history.push(k,k.state):b===Ie.Replace&&e.history.replace(k,k.state));let ee;if(b===Ie.Pop){let he=j.get(_.location.pathname);he&&he.has(k.pathname)?ee={currentLocation:_.location,nextLocation:k}:j.has(k.pathname)&&(ee={currentLocation:k,nextLocation:_.location})}else if(P){let he=j.get(_.location.pathname);he?he.add(k.pathname):(he=new Set([k.pathname]),j.set(_.location.pathname,he)),ee={currentLocation:_.location,nextLocation:k}}be(Oe({},R,{actionData:Q,loaderData:G,historyAction:b,location:k,initialized:!0,navigation:Is,revalidation:"idle",restoreScrollPosition:yd(k,R.matches||_.matches),preventScrollReset:He,blockers:ie}),{viewTransitionOpts:ee,flushSync:re===!0}),b=Ie.Pop,$=!1,P=!1,D=!1,N=!1,z=[],V=[]}async function Ki(k,R){if(typeof k=="number"){e.history.go(k);return}let A=eu(_.location,_.matches,s,u.v7_prependBasename,k,u.v7_relativeSplatPath,R==null?void 0:R.fromRouteId,R==null?void 0:R.relative),{path:B,submission:W,error:re}=Ph(u.v7_normalizeFormMethod,!1,A,R),X=_.location,Q=Ni(_.location,B,R&&R.state);Q=Oe({},Q,e.history.encodeLocation(Q));let G=R&&R.replace!=null?R.replace:void 0,ie=Ie.Push;G===!0?ie=Ie.Replace:G===!1||W!=null&&Bt(W.formMethod)&&W.formAction===_.location.pathname+_.location.search&&(ie=Ie.Replace);let He=R&&"preventScrollReset"in R?R.preventScrollReset===!0:void 0,ee=(R&&R.unstable_flushSync)===!0,he=md({currentLocation:X,nextLocation:Q,historyAction:ie});if(he){Qi(he,{state:"blocked",location:Q,proceed(){Qi(he,{state:"proceeding",proceed:void 0,reset:void 0,location:Q}),Ki(k,R)},reset(){let Ye=new Map(_.blockers);Ye.set(he,Ho),be({blockers:Ye})}});return}return await wt(ie,Q,{submission:W,pendingError:re,preventScrollReset:He,replace:R&&R.replace,enableViewTransition:R&&R.unstable_viewTransition,flushSync:ee})}function Xl(){if(ns(),be({revalidation:"loading"}),_.navigation.state!=="submitting"){if(_.navigation.state==="idle"){wt(_.historyAction,_.location,{startUninterruptedRevalidation:!0});return}wt(b||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation})}}async function wt(k,R,A){T&&T.abort(),T=null,b=k,D=(A&&A.startUninterruptedRevalidation)===!0,wy(_.location,_.matches),$=(A&&A.preventScrollReset)===!0,P=(A&&A.enableViewTransition)===!0;let B=l||a,W=A&&A.overrideNavigation,re=ur(B,R,s),X=(A&&A.flushSync)===!0;if(!re){let Ye=Rt(404,{pathname:R.pathname}),{matches:xt,route:Ve}=Dh(B);rs(),ft(R,{matches:xt,loaderData:{},errors:{[Ve.id]:Ye}},{flushSync:X});return}if(_.initialized&&!N&&Nw(_.location,R)&&!(A&&A.submission&&Bt(A.submission.formMethod))){ft(R,{matches:re},{flushSync:X});return}T=new AbortController;let Q=Wo(e.history,R,T.signal,A&&A.submission),G,ie;if(A&&A.pendingError)ie={[di(re).route.id]:A.pendingError};else if(A&&A.submission&&Bt(A.submission.formMethod)){let Ye=await Yi(Q,R,A.submission,re,{replace:A.replace,flushSync:X});if(Ye.shortCircuited)return;G=Ye.pendingActionData,ie=Ye.pendingActionError,W=Ls(R,A.submission),X=!1,Q=new Request(Q.url,{signal:Q.signal})}let{shortCircuited:He,loaderData:ee,errors:he}=await Jl(Q,R,re,W,A&&A.submission,A&&A.fetcherSubmission,A&&A.replace,A&&A.initialHydration===!0,X,G,ie);He||(T=null,ft(R,Oe({matches:re},G?{actionData:G}:{},{loaderData:ee,errors:he})))}async function Yi(k,R,A,B,W){W===void 0&&(W={}),ns();let re=Iw(R,A);be({navigation:re},{flushSync:W.flushSync===!0});let X,Q=nu(B,R);if(!Q.route.action&&!Q.route.lazy)X={type:Pe.error,error:Rt(405,{method:k.method,pathname:R.pathname,routeId:Q.route.id})};else if(X=await Vo("action",k,Q,B,i,o,s,u.v7_relativeSplatPath),k.signal.aborted)return{shortCircuited:!0};if(dr(X)){let G;return W&&W.replace!=null?G=W.replace:G=X.location===_.location.pathname+_.location.search,await Qt(_,X,{submission:A,replace:G}),{shortCircuited:!0}}if(qr(X)){let G=di(B,Q.route.id);return(W&&W.replace)!==!0&&(b=Ie.Push),{pendingActionData:{},pendingActionError:{[G.route.id]:X.error}}}if(fr(X))throw Rt(400,{type:"defer-action"});return{pendingActionData:{[Q.route.id]:X.data}}}async function Jl(k,R,A,B,W,re,X,Q,G,ie,He){let ee=B||Ls(R,W),he=W||re||Bh(ee),Ye=l||a,[xt,Ve]=Ah(e.history,_,A,he,R,u.v7_partialHydration&&Q===!0,N,z,V,ye,se,J,Ye,s,ie,He);if(rs(ce=>!(A&&A.some(de=>de.route.id===ce))||xt&&xt.some(de=>de.route.id===ce)),F=++O,xt.length===0&&Ve.length===0){let ce=hd();return ft(R,Oe({matches:A,loaderData:{},errors:He||null},ie?{actionData:ie}:{},ce?{fetchers:new Map(_.fetchers)}:{}),{flushSync:G}),{shortCircuited:!0}}if(!D&&(!u.v7_partialHydration||!Q)){Ve.forEach(de=>{let dt=_.fetchers.get(de.key),Xi=Ko(void 0,dt?dt.data:void 0);_.fetchers.set(de.key,Xi)});let ce=ie||_.actionData;be(Oe({navigation:ee},ce?Object.keys(ce).length===0?{actionData:null}:{actionData:ce}:{},Ve.length>0?{fetchers:new Map(_.fetchers)}:{}),{flushSync:G})}Ve.forEach(ce=>{U.has(ce.key)&&Tn(ce.key),ce.controller&&U.set(ce.key,ce.controller)});let Ar=()=>Ve.forEach(ce=>Tn(ce.key));T&&T.signal.addEventListener("abort",Ar);let{results:os,loaderResults:Or,fetcherResults:kn}=await ud(_.matches,A,xt,Ve,k);if(k.signal.aborted)return{shortCircuited:!0};T&&T.signal.removeEventListener("abort",Ar),Ve.forEach(ce=>U.delete(ce.key));let or=Fh(os);if(or){if(or.idx>=xt.length){let ce=Ve[or.idx-xt.length].key;J.add(ce)}return await Qt(_,or.result,{replace:X}),{shortCircuited:!0}}let{loaderData:is,errors:Io}=Mh(_,A,xt,Or,He,Ve,kn,Ne);Ne.forEach((ce,de)=>{ce.subscribe(dt=>{(dt||ce.done)&&Ne.delete(de)})}),u.v7_partialHydration&&Q&&_.errors&&Object.entries(_.errors).filter(ce=>{let[de]=ce;return!xt.some(dt=>dt.route.id===de)}).forEach(ce=>{let[de,dt]=ce;Io=Object.assign(Io||{},{[de]:dt})});let as=hd(),Ir=pd(F),Zi=as||Ir||Ve.length>0;return Oe({loaderData:is,errors:Io},Zi?{fetchers:new Map(_.fetchers)}:{})}function ql(k,R,A,B){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");U.has(k)&&Tn(k);let W=(B&&B.unstable_flushSync)===!0,re=l||a,X=eu(_.location,_.matches,s,u.v7_prependBasename,A,u.v7_relativeSplatPath,R,B==null?void 0:B.relative),Q=ur(re,X,s);if(!Q){Oo(k,R,Rt(404,{pathname:X}),{flushSync:W});return}let{path:G,submission:ie,error:He}=Ph(u.v7_normalizeFormMethod,!0,X,B);if(He){Oo(k,R,He,{flushSync:W});return}let ee=nu(Q,G);if($=(B&&B.preventScrollReset)===!0,ie&&Bt(ie.formMethod)){es(k,R,G,ee,Q,W,ie);return}se.set(k,{routeId:R,path:G}),ts(k,R,G,ee,Q,W,ie)}async function es(k,R,A,B,W,re,X){if(ns(),se.delete(k),!B.route.action&&!B.route.lazy){let de=Rt(405,{method:X.formMethod,pathname:A,routeId:R});Oo(k,R,de,{flushSync:re});return}let Q=_.fetchers.get(k);$n(k,Lw(X,Q),{flushSync:re});let G=new AbortController,ie=Wo(e.history,A,G.signal,X);U.set(k,G);let He=O,ee=await Vo("action",ie,B,W,i,o,s,u.v7_relativeSplatPath);if(ie.signal.aborted){U.get(k)===G&&U.delete(k);return}if(u.v7_fetcherPersist&&ye.has(k)){if(dr(ee)||qr(ee)){$n(k,Nn(void 0));return}}else{if(dr(ee))if(U.delete(k),F>He){$n(k,Nn(void 0));return}else return J.add(k),$n(k,Ko(X)),Qt(_,ee,{fetcherSubmission:X});if(qr(ee)){Oo(k,R,ee.error);return}}if(fr(ee))throw Rt(400,{type:"defer-action"});let he=_.navigation.location||_.location,Ye=Wo(e.history,he,G.signal),xt=l||a,Ve=_.navigation.state!=="idle"?ur(xt,_.navigation.location,s):_.matches;te(Ve,"Didn't find any matches after fetcher action");let Ar=++O;K.set(k,Ar);let os=Ko(X,ee.data);_.fetchers.set(k,os);let[Or,kn]=Ah(e.history,_,Ve,X,he,!1,N,z,V,ye,se,J,xt,s,{[B.route.id]:ee.data},void 0);kn.filter(de=>de.key!==k).forEach(de=>{let dt=de.key,Xi=_.fetchers.get(dt),Cy=Ko(void 0,Xi?Xi.data:void 0);_.fetchers.set(dt,Cy),U.has(dt)&&Tn(dt),de.controller&&U.set(dt,de.controller)}),be({fetchers:new Map(_.fetchers)});let or=()=>kn.forEach(de=>Tn(de.key));G.signal.addEventListener("abort",or);let{results:is,loaderResults:Io,fetcherResults:as}=await ud(_.matches,Ve,Or,kn,Ye);if(G.signal.aborted)return;G.signal.removeEventListener("abort",or),K.delete(k),U.delete(k),kn.forEach(de=>U.delete(de.key));let Ir=Fh(is);if(Ir){if(Ir.idx>=Or.length){let de=kn[Ir.idx-Or.length].key;J.add(de)}return Qt(_,Ir.result)}let{loaderData:Zi,errors:ce}=Mh(_,_.matches,Or,Io,void 0,kn,as,Ne);if(_.fetchers.has(k)){let de=Nn(ee.data);_.fetchers.set(k,de)}pd(Ar),_.navigation.state==="loading"&&Ar>F?(te(b,"Expected pending action"),T&&T.abort(),ft(_.navigation.location,{matches:Ve,loaderData:Zi,errors:ce,fetchers:new Map(_.fetchers)})):(be({errors:ce,loaderData:jh(_.loaderData,Zi,Ve,ce),fetchers:new Map(_.fetchers)}),N=!1)}async function ts(k,R,A,B,W,re,X){let Q=_.fetchers.get(k);$n(k,Ko(X,Q?Q.data:void 0),{flushSync:re});let G=new AbortController,ie=Wo(e.history,A,G.signal);U.set(k,G);let He=O,ee=await Vo("loader",ie,B,W,i,o,s,u.v7_relativeSplatPath);if(fr(ee)&&(ee=await N0(ee,ie.signal,!0)||ee),U.get(k)===G&&U.delete(k),!ie.signal.aborted){if(ye.has(k)){$n(k,Nn(void 0));return}if(dr(ee))if(F>He){$n(k,Nn(void 0));return}else{J.add(k),await Qt(_,ee);return}if(qr(ee)){Oo(k,R,ee.error);return}te(!fr(ee),"Unhandled fetcher deferred data"),$n(k,Nn(ee.data))}}async function Qt(k,R,A){let{submission:B,fetcherSubmission:W,replace:re}=A===void 0?{}:A;R.revalidate&&(N=!0);let X=Ni(k.location,R.location,{_isRedirect:!0});if(te(X,"Expected a location on the redirect navigation"),n){let he=!1;if(R.reloadDocument)he=!0;else if($0.test(R.location)){const Ye=e.history.createURL(R.location);he=Ye.origin!==t.location.origin||br(Ye.pathname,s)==null}if(he){re?t.location.replace(R.location):t.location.assign(R.location);return}}T=null;let Q=re===!0?Ie.Replace:Ie.Push,{formMethod:G,formAction:ie,formEncType:He}=k.navigation;!B&&!W&&G&&ie&&He&&(B=Bh(k.navigation));let ee=B||W;if(Ew.has(R.status)&&ee&&Bt(ee.formMethod))await wt(Q,X,{submission:Oe({},ee,{formAction:R.location}),preventScrollReset:$});else{let he=Ls(X,B);await wt(Q,X,{overrideNavigation:he,fetcherSubmission:W,preventScrollReset:$})}}async function ud(k,R,A,B,W){let re=await Promise.all([...A.map(G=>Vo("loader",W,G,R,i,o,s,u.v7_relativeSplatPath)),...B.map(G=>G.matches&&G.match&&G.controller?Vo("loader",Wo(e.history,G.path,G.controller.signal),G.match,G.matches,i,o,s,u.v7_relativeSplatPath):{type:Pe.error,error:Rt(404,{pathname:G.path})})]),X=re.slice(0,A.length),Q=re.slice(A.length);return await Promise.all([zh(k,A,X,X.map(()=>W.signal),!1,_.loaderData),zh(k,B.map(G=>G.match),Q,B.map(G=>G.controller?G.controller.signal:null),!0)]),{results:re,loaderResults:X,fetcherResults:Q}}function ns(){N=!0,z.push(...rs()),se.forEach((k,R)=>{U.has(R)&&(V.push(R),Tn(R))})}function $n(k,R,A){A===void 0&&(A={}),_.fetchers.set(k,R),be({fetchers:new Map(_.fetchers)},{flushSync:(A&&A.flushSync)===!0})}function Oo(k,R,A,B){B===void 0&&(B={});let W=di(_.matches,R);Gi(k),be({errors:{[W.route.id]:A},fetchers:new Map(_.fetchers)},{flushSync:(B&&B.flushSync)===!0})}function fd(k){return u.v7_fetcherPersist&&(Be.set(k,(Be.get(k)||0)+1),ye.has(k)&&ye.delete(k)),_.fetchers.get(k)||_w}function Gi(k){let R=_.fetchers.get(k);U.has(k)&&!(R&&R.state==="loading"&&K.has(k))&&Tn(k),se.delete(k),K.delete(k),J.delete(k),ye.delete(k),_.fetchers.delete(k)}function my(k){if(u.v7_fetcherPersist){let R=(Be.get(k)||0)-1;R<=0?(Be.delete(k),ye.add(k)):Be.set(k,R)}else Gi(k);be({fetchers:new Map(_.fetchers)})}function Tn(k){let R=U.get(k);te(R,"Expected fetch controller: "+k),R.abort(),U.delete(k)}function dd(k){for(let R of k){let A=fd(R),B=Nn(A.data);_.fetchers.set(R,B)}}function hd(){let k=[],R=!1;for(let A of J){let B=_.fetchers.get(A);te(B,"Expected fetcher: "+A),B.state==="loading"&&(J.delete(A),k.push(A),R=!0)}return dd(k),R}function pd(k){let R=[];for(let[A,B]of K)if(B0}function gy(k,R){let A=_.blockers.get(k)||Ho;return we.get(k)!==R&&we.set(k,R),A}function vd(k){_.blockers.delete(k),we.delete(k)}function Qi(k,R){let A=_.blockers.get(k)||Ho;te(A.state==="unblocked"&&R.state==="blocked"||A.state==="blocked"&&R.state==="blocked"||A.state==="blocked"&&R.state==="proceeding"||A.state==="blocked"&&R.state==="unblocked"||A.state==="proceeding"&&R.state==="unblocked","Invalid blocker state transition: "+A.state+" -> "+R.state);let B=new Map(_.blockers);B.set(k,R),be({blockers:B})}function md(k){let{currentLocation:R,nextLocation:A,historyAction:B}=k;if(we.size===0)return;we.size>1&&yo(!1,"A router only supports one blocker at a time");let W=Array.from(we.entries()),[re,X]=W[W.length-1],Q=_.blockers.get(re);if(!(Q&&Q.state==="proceeding")&&X({currentLocation:R,nextLocation:A,historyAction:B}))return re}function rs(k){let R=[];return Ne.forEach((A,B)=>{(!k||k(B))&&(A.cancel(),R.push(B),Ne.delete(B))}),R}function yy(k,R,A){if(d=k,y=R,p=A||null,!g&&_.navigation===Is){g=!0;let B=yd(_.location,_.matches);B!=null&&be({restoreScrollPosition:B})}return()=>{d=null,y=null,p=null}}function gd(k,R){return p&&p(k,R.map(B=>x0(B,_.loaderData)))||k.key}function wy(k,R){if(d&&y){let A=gd(k,R);d[A]=y()}}function yd(k,R){if(d){let A=gd(k,R),B=d[A];if(typeof B=="number")return B}return null}function xy(k){i={},l=qc(k,o,void 0,i)}return S={get basename(){return s},get future(){return u},get state(){return _},get routes(){return a},get window(){return t},initialize:xe,subscribe:jt,enableScrollRestoration:yy,navigate:Ki,fetch:ql,revalidate:Xl,createHref:k=>e.history.createHref(k),encodeLocation:k=>e.history.encodeLocation(k),getFetcher:fd,deleteFetcher:my,dispose:Se,getBlocker:gy,deleteBlocker:vd,_internalFetchControllers:U,_internalActiveDeferreds:Ne,_internalSetRoutes:xy},S}function $w(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function eu(e,t,n,r,o,i,a,l){let s,u;if(a){s=[];for(let c of t)if(s.push(c),c.route.id===a){u=c;break}}else s=t,u=t[t.length-1];let f=If(o||".",Of(s,i),br(e.pathname,n)||e.pathname,l==="path");return o==null&&(f.search=e.search,f.hash=e.hash),(o==null||o===""||o===".")&&u&&u.route.index&&!Mf(f.search)&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(f.pathname=f.pathname==="/"?n:dn([n,f.pathname])),Cr(f)}function Ph(e,t,n,r){if(!r||!$w(r))return{path:n};if(r.formMethod&&!Ow(r.formMethod))return{path:n,error:Rt(405,{method:r.formMethod})};let o=()=>({path:n,error:Rt(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),l=R0(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Bt(a))return o();let d=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((p,y)=>{let[g,C]=y;return""+p+g+"="+C+` -`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!Bt(a))return o();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch{return o()}}}te(typeof FormData=="function","FormData is not available in this environment");let s,u;if(r.formData)s=tu(r.formData),u=r.formData;else if(r.body instanceof FormData)s=tu(r.body),u=r.body;else if(r.body instanceof URLSearchParams)s=r.body,u=Lh(s);else if(r.body==null)s=new URLSearchParams,u=new FormData;else try{s=new URLSearchParams(r.body),u=Lh(s)}catch{return o()}let f={formMethod:a,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Bt(f.formMethod))return{path:n,submission:f};let c=Cn(n);return t&&c.search&&Mf(c.search)&&s.append("index",""),c.search="?"+s,{path:Cr(c),submission:f}}function Tw(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Ah(e,t,n,r,o,i,a,l,s,u,f,c,d,p,y,g){let C=g?Object.values(g)[0]:y?Object.values(y)[0]:void 0,v=e.createURL(t.location),m=e.createURL(o),x=g?Object.keys(g)[0]:void 0,S=Tw(n,x).filter((b,$)=>{let{route:T}=b;if(T.lazy)return!0;if(T.loader==null)return!1;if(i)return T.loader.hydrate?!0:t.loaderData[T.id]===void 0&&(!t.errors||t.errors[T.id]===void 0);if(kw(t.loaderData,t.matches[$],b)||l.some(L=>L===b.route.id))return!0;let P=t.matches[$],j=b;return Oh(b,Oe({currentUrl:v,currentParams:P.params,nextUrl:m,nextParams:j.params},r,{actionResult:C,defaultShouldRevalidate:a||v.pathname+v.search===m.pathname+m.search||v.search!==m.search||k0(P,j)}))}),_=[];return f.forEach((b,$)=>{if(i||!n.some(D=>D.route.id===b.routeId)||u.has($))return;let T=ur(d,b.path,p);if(!T){_.push({key:$,routeId:b.routeId,path:b.path,matches:null,match:null,controller:null});return}let P=t.fetchers.get($),j=nu(T,b.path),L=!1;c.has($)?L=!1:s.includes($)?L=!0:P&&P.state!=="idle"&&P.data===void 0?L=a:L=Oh(j,Oe({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:m,nextParams:n[n.length-1].params},r,{actionResult:C,defaultShouldRevalidate:a})),L&&_.push({key:$,routeId:b.routeId,path:b.path,matches:T,match:j,controller:new AbortController})}),[S,_]}function kw(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function k0(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Oh(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Ih(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];te(o,"No route found in manifest");let i={};for(let a in r){let s=o[a]!==void 0&&a!=="hasErrorBoundary";yo(!s,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!s&&!q3.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,Oe({},t(o),{lazy:void 0}))}async function Vo(e,t,n,r,o,i,a,l,s){s===void 0&&(s={});let u,f,c,d=g=>{let C,v=new Promise((m,x)=>C=x);return c=()=>C(),t.signal.addEventListener("abort",c),Promise.race([g({request:t,params:n.params,context:s.requestContext}),v])};try{let g=n.route[e];if(n.route.lazy)if(g){let C,v=await Promise.all([d(g).catch(m=>{C=m}),Ih(n.route,i,o)]);if(C)throw C;f=v[0]}else if(await Ih(n.route,i,o),g=n.route[e],g)f=await d(g);else if(e==="action"){let C=new URL(t.url),v=C.pathname+C.search;throw Rt(405,{method:t.method,pathname:v,routeId:n.route.id})}else return{type:Pe.data,data:void 0};else if(g)f=await d(g);else{let C=new URL(t.url),v=C.pathname+C.search;throw Rt(404,{pathname:v})}te(f!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(g){u=Pe.error,f=g}finally{c&&t.signal.removeEventListener("abort",c)}if(Aw(f)){let g=f.status;if(Cw.has(g)){let v=f.headers.get("Location");if(te(v,"Redirects returned/thrown from loaders/actions must have a Location header"),!$0.test(v))v=eu(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,!0,v,l);else if(!s.isStaticRequest){let m=new URL(t.url),x=v.startsWith("//")?new URL(m.protocol+v):new URL(v),E=br(x.pathname,a)!=null;x.origin===m.origin&&E&&(v=x.pathname+x.search+x.hash)}if(s.isStaticRequest)throw f.headers.set("Location",v),f;return{type:Pe.redirect,status:g,location:v,revalidate:f.headers.get("X-Remix-Revalidate")!==null,reloadDocument:f.headers.get("X-Remix-Reload-Document")!==null}}if(s.isRouteRequest)throw{type:u===Pe.error?Pe.error:Pe.data,response:f};let C;try{let v=f.headers.get("Content-Type");v&&/\bapplication\/json\b/.test(v)?f.body==null?C=null:C=await f.json():C=await f.text()}catch(v){return{type:Pe.error,error:v}}return u===Pe.error?{type:u,error:new Lf(g,f.statusText,C),headers:f.headers}:{type:Pe.data,data:C,statusCode:f.status,headers:f.headers}}if(u===Pe.error)return{type:u,error:f};if(Pw(f)){var p,y;return{type:Pe.deferred,deferredData:f,statusCode:(p=f.init)==null?void 0:p.status,headers:((y=f.init)==null?void 0:y.headers)&&new Headers(f.init.headers)}}return{type:Pe.data,data:f}}function Wo(e,t,n,r){let o=e.createURL(R0(t)).toString(),i={signal:n};if(r&&Bt(r.formMethod)){let{formMethod:a,formEncType:l}=r;i.method=a.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(r.json)):l==="text/plain"?i.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?i.body=tu(r.formData):i.body=r.formData}return new Request(o,i)}function tu(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Lh(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Rw(e,t,n,r,o){let i={},a=null,l,s=!1,u={};return n.forEach((f,c)=>{let d=t[c].route.id;if(te(!dr(f),"Cannot handle redirect results in processLoaderData"),qr(f)){let p=di(e,d),y=f.error;r&&(y=Object.values(r)[0],r=void 0),a=a||{},a[p.route.id]==null&&(a[p.route.id]=y),i[d]=void 0,s||(s=!0,l=S0(f.error)?f.error.status:500),f.headers&&(u[d]=f.headers)}else fr(f)?(o.set(d,f.deferredData),i[d]=f.deferredData.data):i[d]=f.data,f.statusCode!=null&&f.statusCode!==200&&!s&&(l=f.statusCode),f.headers&&(u[d]=f.headers)}),r&&(a=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:a,statusCode:l||200,loaderHeaders:u}}function Mh(e,t,n,r,o,i,a,l){let{loaderData:s,errors:u}=Rw(t,n,r,o,l);for(let f=0;fr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Dh(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Rt(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,a="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(a="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(a="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",l='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new Lf(e||500,a,new Error(l),!0)}function Fh(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(dr(n))return{result:n,idx:t}}}function R0(e){let t=typeof e=="string"?Cn(e):e;return Cr(Oe({},t,{hash:""}))}function Nw(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function fr(e){return e.type===Pe.deferred}function qr(e){return e.type===Pe.error}function dr(e){return(e&&e.type)===Pe.redirect}function Pw(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Aw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Ow(e){return xw.has(e.toLowerCase())}function Bt(e){return yw.has(e.toLowerCase())}async function zh(e,t,n,r,o,i){for(let a=0;ac.route.id===s.route.id),f=u!=null&&!k0(u,s)&&(i&&i[s.route.id])!==void 0;if(fr(l)&&(o||f)){let c=r[a];te(c,"Expected an AbortSignal for revalidating fetcher deferred result"),await N0(l,c,o).then(d=>{d&&(n[a]=d||n[a])})}}}async function N0(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Pe.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Pe.error,error:o}}return{type:Pe.data,data:e.deferredData.data}}}function Mf(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function nu(e,t){let n=typeof t=="string"?Cn(t).search:t.search;if(e[e.length-1].route.index&&Mf(n||""))return e[e.length-1];let r=_0(e);return r[r.length-1]}function Bh(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function Ls(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Iw(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Ko(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Lw(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Nn(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Mw(e,t){try{let n=e.sessionStorage.getItem(T0);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function jw(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(T0,JSON.stringify(n))}catch(r){yo(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function yo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function X3(){return Math.random().toString(36).substr(2,8)}function Nh(e,t){return{usr:e.state,key:e.key,idx:t}}function Ni(e,t,n,r){return n===void 0&&(n=null),Oe({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Cn(t):t,{state:n,key:t&&t.key||r||X3()})}function Cr(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Cn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function J3(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=Ie.Pop,s=null,u=f();u==null&&(u=0,a.replaceState(Oe({},a.state,{idx:u}),""));function f(){return(a.state||{idx:null}).idx}function c(){l=Ie.Pop;let C=f(),v=C==null?null:C-u;u=C,s&&s({action:l,location:g.location,delta:v})}function d(C,v){l=Ie.Push;let m=Ni(g.location,C,v);n&&n(m,C),u=f()+1;let x=Nh(m,u),E=g.createHref(m);try{a.pushState(x,"",E)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(E)}i&&s&&s({action:l,location:g.location,delta:1})}function p(C,v){l=Ie.Replace;let m=Ni(g.location,C,v);n&&n(m,C),u=f();let x=Nh(m,u),E=g.createHref(m);a.replaceState(x,"",E),i&&s&&s({action:l,location:g.location,delta:0})}function y(C){let v=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof C=="string"?C:Cr(C);return m=m.replace(/ $/,"%20"),te(v,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,v)}let g={get action(){return l},get location(){return e(o,a)},listen(C){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(Rh,c),s=C,()=>{o.removeEventListener(Rh,c),s=null}},createHref(C){return t(o,C)},createURL:y,encodeLocation(C){let v=y(C);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:d,replace:p,go(C){return a.go(C)}};return g}var Pe;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Pe||(Pe={}));const q3=new Set(["lazy","caseSensitive","path","id","index","children"]);function ew(e){return e.index===!0}function qc(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,i],l=typeof o.id=="string"?o.id:a.join("-");if(te(o.index!==!0||!o.children,"Cannot specify children on an index route"),te(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),ew(o)){let s=Oe({},o,t(o),{id:l});return r[l]=s,s}else{let s=Oe({},o,t(o),{id:l,children:void 0});return r[l]=s,o.children&&(s.children=qc(o.children,t,a,r)),s}})}function ur(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Cn(t):t,o=br(r.pathname||"/",n);if(o==null)return null;let i=E0(e);tw(i);let a=null;for(let l=0;a==null&&l{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(te(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=dn([r,s.relativePath]),f=n.concat(s);i.children&&i.children.length>0&&(te(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),E0(i.children,t,f,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:sw(u,i.index),routesMeta:f})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of _0(i.path))o(i,a,s)}),t}function _0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=_0(r.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function tw(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:cw(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const nw=/^:[\w-]+$/,rw=3,ow=2,iw=1,aw=10,lw=-2,Ph=e=>e==="*";function sw(e,t){let n=e.split("/"),r=n.length;return n.some(Ph)&&(r+=lw),t&&(r+=ow),n.filter(o=>!Ph(o)).reduce((o,i)=>o+(nw.test(i)?rw:i===""?iw:aw),r)}function cw(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function uw(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{let{paramName:d,isOptional:p}=f;if(d==="*"){let g=l[c]||"";a=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const y=l[c];return p&&!y?u[d]=void 0:u[d]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function fw(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),yo(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function dw(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return yo(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function br(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function hw(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Cn(e):e;return{pathname:n?n.startsWith("/")?n:pw(n,t):t,search:mw(r),hash:gw(o)}}function pw(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Os(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function S0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Of(e,t){let n=S0(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function If(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Cn(e):(o=Oe({},e),te(!o.pathname||!o.pathname.includes("?"),Os("?","pathname","search",o)),te(!o.pathname||!o.pathname.includes("#"),Os("#","pathname","hash",o)),te(!o.search||!o.search.includes("#"),Os("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=n;else{let c=t.length-1;if(!r&&a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),c-=1;o.pathname=d.join("/")}l=c>=0?t[c]:"/"}let s=hw(o,l),u=a&&a!=="/"&&a.endsWith("/"),f=(i||a===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||f)&&(s.pathname+="/"),s}const dn=e=>e.join("/").replace(/\/\/+/g,"/"),vw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),mw=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Lf{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function b0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const $0=["post","put","patch","delete"],yw=new Set($0),ww=["get",...$0],xw=new Set(ww),Cw=new Set([301,302,303,307,308]),Ew=new Set([307,308]),Is={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},_w={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ho={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},T0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Sw=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),k0="remix-router-transitions";function bw(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;te(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let k=e.detectErrorBoundary;o=R=>({hasErrorBoundary:k(R)})}else o=Sw;let i={},a=qc(e.routes,o,void 0,i),l,s=e.basename||"/",u=Oe({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),f=null,c=new Set,d=null,p=null,y=null,g=e.hydrationData!=null,C=ur(a,e.history.location,s),v=null;if(C==null){let k=Rt(404,{pathname:e.history.location.pathname}),{matches:R,route:A}=Fh(a);C=R,v={[A.id]:k}}let m,x=C.some(k=>k.route.lazy),E=C.some(k=>k.route.loader);if(x)m=!1;else if(!E)m=!0;else if(u.v7_partialHydration){let k=e.hydrationData?e.hydrationData.loaderData:null,R=e.hydrationData?e.hydrationData.errors:null,A=B=>B.route.loader?B.route.loader.hydrate===!0?!1:k&&k[B.route.id]!==void 0||R&&R[B.route.id]!==void 0:!0;if(R){let B=C.findIndex(W=>R[W.route.id]!==void 0);m=C.slice(0,B+1).every(A)}else m=C.every(A)}else m=e.hydrationData!=null;let S,_={historyAction:e.history.action,location:e.history.location,matches:C,initialized:m,navigation:Is,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},b=Ie.Pop,$=!1,T,P=!1,j=new Map,L=null,D=!1,N=!1,z=[],V=[],U=new Map,O=0,F=-1,K=new Map,J=new Set,se=new Map,Be=new Map,ye=new Set,Ne=new Map,we=new Map,Ue=!1;function xe(){if(f=e.history.listen(k=>{let{action:R,location:A,delta:B}=k;if(Ue){Ue=!1;return}yo(we.size===0||B!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let W=gd({currentLocation:_.location,nextLocation:A,historyAction:R});if(W&&B!=null){Ue=!0,e.history.go(B*-1),Qi(W,{state:"blocked",location:A,proceed(){Qi(W,{state:"proceeding",proceed:void 0,reset:void 0,location:A}),e.history.go(B)},reset(){let re=new Map(_.blockers);re.set(W,Ho),be({blockers:re})}});return}return wt(R,A)}),n){Mw(t,j);let k=()=>jw(t,j);t.addEventListener("pagehide",k),L=()=>t.removeEventListener("pagehide",k)}return _.initialized||wt(Ie.Pop,_.location,{initialHydration:!0}),S}function Se(){f&&f(),L&&L(),c.clear(),T&&T.abort(),_.fetchers.forEach((k,R)=>Gi(R)),_.blockers.forEach((k,R)=>md(R))}function jt(k){return c.add(k),()=>c.delete(k)}function be(k,R){R===void 0&&(R={}),_=Oe({},_,k);let A=[],B=[];u.v7_fetcherPersist&&_.fetchers.forEach((W,re)=>{W.state==="idle"&&(ye.has(re)?B.push(re):A.push(re))}),[...c].forEach(W=>W(_,{deletedFetchers:B,unstable_viewTransitionOpts:R.viewTransitionOpts,unstable_flushSync:R.flushSync===!0})),u.v7_fetcherPersist&&(A.forEach(W=>_.fetchers.delete(W)),B.forEach(W=>Gi(W)))}function ft(k,R,A){var B,W;let{flushSync:re}=A===void 0?{}:A,X=_.actionData!=null&&_.navigation.formMethod!=null&&Bt(_.navigation.formMethod)&&_.navigation.state==="loading"&&((B=k.state)==null?void 0:B._isRedirect)!==!0,Q;R.actionData?Object.keys(R.actionData).length>0?Q=R.actionData:Q=null:X?Q=_.actionData:Q=null;let G=R.loaderData?Dh(_.loaderData,R.loaderData,R.matches||[],R.errors):_.loaderData,ie=_.blockers;ie.size>0&&(ie=new Map(ie),ie.forEach((he,Ye)=>ie.set(Ye,Ho)));let He=$===!0||_.navigation.formMethod!=null&&Bt(_.navigation.formMethod)&&((W=k.state)==null?void 0:W._isRedirect)!==!0;l&&(a=l,l=void 0),D||b===Ie.Pop||(b===Ie.Push?e.history.push(k,k.state):b===Ie.Replace&&e.history.replace(k,k.state));let ee;if(b===Ie.Pop){let he=j.get(_.location.pathname);he&&he.has(k.pathname)?ee={currentLocation:_.location,nextLocation:k}:j.has(k.pathname)&&(ee={currentLocation:k,nextLocation:_.location})}else if(P){let he=j.get(_.location.pathname);he?he.add(k.pathname):(he=new Set([k.pathname]),j.set(_.location.pathname,he)),ee={currentLocation:_.location,nextLocation:k}}be(Oe({},R,{actionData:Q,loaderData:G,historyAction:b,location:k,initialized:!0,navigation:Is,revalidation:"idle",restoreScrollPosition:wd(k,R.matches||_.matches),preventScrollReset:He,blockers:ie}),{viewTransitionOpts:ee,flushSync:re===!0}),b=Ie.Pop,$=!1,P=!1,D=!1,N=!1,z=[],V=[]}async function Ki(k,R){if(typeof k=="number"){e.history.go(k);return}let A=eu(_.location,_.matches,s,u.v7_prependBasename,k,u.v7_relativeSplatPath,R==null?void 0:R.fromRouteId,R==null?void 0:R.relative),{path:B,submission:W,error:re}=Ah(u.v7_normalizeFormMethod,!1,A,R),X=_.location,Q=Ni(_.location,B,R&&R.state);Q=Oe({},Q,e.history.encodeLocation(Q));let G=R&&R.replace!=null?R.replace:void 0,ie=Ie.Push;G===!0?ie=Ie.Replace:G===!1||W!=null&&Bt(W.formMethod)&&W.formAction===_.location.pathname+_.location.search&&(ie=Ie.Replace);let He=R&&"preventScrollReset"in R?R.preventScrollReset===!0:void 0,ee=(R&&R.unstable_flushSync)===!0,he=gd({currentLocation:X,nextLocation:Q,historyAction:ie});if(he){Qi(he,{state:"blocked",location:Q,proceed(){Qi(he,{state:"proceeding",proceed:void 0,reset:void 0,location:Q}),Ki(k,R)},reset(){let Ye=new Map(_.blockers);Ye.set(he,Ho),be({blockers:Ye})}});return}return await wt(ie,Q,{submission:W,pendingError:re,preventScrollReset:He,replace:R&&R.replace,enableViewTransition:R&&R.unstable_viewTransition,flushSync:ee})}function Xl(){if(ns(),be({revalidation:"loading"}),_.navigation.state!=="submitting"){if(_.navigation.state==="idle"){wt(_.historyAction,_.location,{startUninterruptedRevalidation:!0});return}wt(b||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation})}}async function wt(k,R,A){T&&T.abort(),T=null,b=k,D=(A&&A.startUninterruptedRevalidation)===!0,wy(_.location,_.matches),$=(A&&A.preventScrollReset)===!0,P=(A&&A.enableViewTransition)===!0;let B=l||a,W=A&&A.overrideNavigation,re=ur(B,R,s),X=(A&&A.flushSync)===!0;if(!re){let Ye=Rt(404,{pathname:R.pathname}),{matches:xt,route:Ve}=Fh(B);rs(),ft(R,{matches:xt,loaderData:{},errors:{[Ve.id]:Ye}},{flushSync:X});return}if(_.initialized&&!N&&Nw(_.location,R)&&!(A&&A.submission&&Bt(A.submission.formMethod))){ft(R,{matches:re},{flushSync:X});return}T=new AbortController;let Q=Wo(e.history,R,T.signal,A&&A.submission),G,ie;if(A&&A.pendingError)ie={[di(re).route.id]:A.pendingError};else if(A&&A.submission&&Bt(A.submission.formMethod)){let Ye=await Yi(Q,R,A.submission,re,{replace:A.replace,flushSync:X});if(Ye.shortCircuited)return;G=Ye.pendingActionData,ie=Ye.pendingActionError,W=Ls(R,A.submission),X=!1,Q=new Request(Q.url,{signal:Q.signal})}let{shortCircuited:He,loaderData:ee,errors:he}=await Jl(Q,R,re,W,A&&A.submission,A&&A.fetcherSubmission,A&&A.replace,A&&A.initialHydration===!0,X,G,ie);He||(T=null,ft(R,Oe({matches:re},G?{actionData:G}:{},{loaderData:ee,errors:he})))}async function Yi(k,R,A,B,W){W===void 0&&(W={}),ns();let re=Iw(R,A);be({navigation:re},{flushSync:W.flushSync===!0});let X,Q=nu(B,R);if(!Q.route.action&&!Q.route.lazy)X={type:Pe.error,error:Rt(405,{method:k.method,pathname:R.pathname,routeId:Q.route.id})};else if(X=await Vo("action",k,Q,B,i,o,s,u.v7_relativeSplatPath),k.signal.aborted)return{shortCircuited:!0};if(dr(X)){let G;return W&&W.replace!=null?G=W.replace:G=X.location===_.location.pathname+_.location.search,await Qt(_,X,{submission:A,replace:G}),{shortCircuited:!0}}if(qr(X)){let G=di(B,Q.route.id);return(W&&W.replace)!==!0&&(b=Ie.Push),{pendingActionData:{},pendingActionError:{[G.route.id]:X.error}}}if(fr(X))throw Rt(400,{type:"defer-action"});return{pendingActionData:{[Q.route.id]:X.data}}}async function Jl(k,R,A,B,W,re,X,Q,G,ie,He){let ee=B||Ls(R,W),he=W||re||Uh(ee),Ye=l||a,[xt,Ve]=Oh(e.history,_,A,he,R,u.v7_partialHydration&&Q===!0,N,z,V,ye,se,J,Ye,s,ie,He);if(rs(ce=>!(A&&A.some(de=>de.route.id===ce))||xt&&xt.some(de=>de.route.id===ce)),F=++O,xt.length===0&&Ve.length===0){let ce=pd();return ft(R,Oe({matches:A,loaderData:{},errors:He||null},ie?{actionData:ie}:{},ce?{fetchers:new Map(_.fetchers)}:{}),{flushSync:G}),{shortCircuited:!0}}if(!D&&(!u.v7_partialHydration||!Q)){Ve.forEach(de=>{let dt=_.fetchers.get(de.key),Xi=Ko(void 0,dt?dt.data:void 0);_.fetchers.set(de.key,Xi)});let ce=ie||_.actionData;be(Oe({navigation:ee},ce?Object.keys(ce).length===0?{actionData:null}:{actionData:ce}:{},Ve.length>0?{fetchers:new Map(_.fetchers)}:{}),{flushSync:G})}Ve.forEach(ce=>{U.has(ce.key)&&Tn(ce.key),ce.controller&&U.set(ce.key,ce.controller)});let Ar=()=>Ve.forEach(ce=>Tn(ce.key));T&&T.signal.addEventListener("abort",Ar);let{results:os,loaderResults:Or,fetcherResults:kn}=await fd(_.matches,A,xt,Ve,k);if(k.signal.aborted)return{shortCircuited:!0};T&&T.signal.removeEventListener("abort",Ar),Ve.forEach(ce=>U.delete(ce.key));let or=zh(os);if(or){if(or.idx>=xt.length){let ce=Ve[or.idx-xt.length].key;J.add(ce)}return await Qt(_,or.result,{replace:X}),{shortCircuited:!0}}let{loaderData:is,errors:Io}=jh(_,A,xt,Or,He,Ve,kn,Ne);Ne.forEach((ce,de)=>{ce.subscribe(dt=>{(dt||ce.done)&&Ne.delete(de)})}),u.v7_partialHydration&&Q&&_.errors&&Object.entries(_.errors).filter(ce=>{let[de]=ce;return!xt.some(dt=>dt.route.id===de)}).forEach(ce=>{let[de,dt]=ce;Io=Object.assign(Io||{},{[de]:dt})});let as=pd(),Ir=vd(F),Zi=as||Ir||Ve.length>0;return Oe({loaderData:is,errors:Io},Zi?{fetchers:new Map(_.fetchers)}:{})}function ql(k,R,A,B){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");U.has(k)&&Tn(k);let W=(B&&B.unstable_flushSync)===!0,re=l||a,X=eu(_.location,_.matches,s,u.v7_prependBasename,A,u.v7_relativeSplatPath,R,B==null?void 0:B.relative),Q=ur(re,X,s);if(!Q){Oo(k,R,Rt(404,{pathname:X}),{flushSync:W});return}let{path:G,submission:ie,error:He}=Ah(u.v7_normalizeFormMethod,!0,X,B);if(He){Oo(k,R,He,{flushSync:W});return}let ee=nu(Q,G);if($=(B&&B.preventScrollReset)===!0,ie&&Bt(ie.formMethod)){es(k,R,G,ee,Q,W,ie);return}se.set(k,{routeId:R,path:G}),ts(k,R,G,ee,Q,W,ie)}async function es(k,R,A,B,W,re,X){if(ns(),se.delete(k),!B.route.action&&!B.route.lazy){let de=Rt(405,{method:X.formMethod,pathname:A,routeId:R});Oo(k,R,de,{flushSync:re});return}let Q=_.fetchers.get(k);$n(k,Lw(X,Q),{flushSync:re});let G=new AbortController,ie=Wo(e.history,A,G.signal,X);U.set(k,G);let He=O,ee=await Vo("action",ie,B,W,i,o,s,u.v7_relativeSplatPath);if(ie.signal.aborted){U.get(k)===G&&U.delete(k);return}if(u.v7_fetcherPersist&&ye.has(k)){if(dr(ee)||qr(ee)){$n(k,Nn(void 0));return}}else{if(dr(ee))if(U.delete(k),F>He){$n(k,Nn(void 0));return}else return J.add(k),$n(k,Ko(X)),Qt(_,ee,{fetcherSubmission:X});if(qr(ee)){Oo(k,R,ee.error);return}}if(fr(ee))throw Rt(400,{type:"defer-action"});let he=_.navigation.location||_.location,Ye=Wo(e.history,he,G.signal),xt=l||a,Ve=_.navigation.state!=="idle"?ur(xt,_.navigation.location,s):_.matches;te(Ve,"Didn't find any matches after fetcher action");let Ar=++O;K.set(k,Ar);let os=Ko(X,ee.data);_.fetchers.set(k,os);let[Or,kn]=Oh(e.history,_,Ve,X,he,!1,N,z,V,ye,se,J,xt,s,{[B.route.id]:ee.data},void 0);kn.filter(de=>de.key!==k).forEach(de=>{let dt=de.key,Xi=_.fetchers.get(dt),Cy=Ko(void 0,Xi?Xi.data:void 0);_.fetchers.set(dt,Cy),U.has(dt)&&Tn(dt),de.controller&&U.set(dt,de.controller)}),be({fetchers:new Map(_.fetchers)});let or=()=>kn.forEach(de=>Tn(de.key));G.signal.addEventListener("abort",or);let{results:is,loaderResults:Io,fetcherResults:as}=await fd(_.matches,Ve,Or,kn,Ye);if(G.signal.aborted)return;G.signal.removeEventListener("abort",or),K.delete(k),U.delete(k),kn.forEach(de=>U.delete(de.key));let Ir=zh(is);if(Ir){if(Ir.idx>=Or.length){let de=kn[Ir.idx-Or.length].key;J.add(de)}return Qt(_,Ir.result)}let{loaderData:Zi,errors:ce}=jh(_,_.matches,Or,Io,void 0,kn,as,Ne);if(_.fetchers.has(k)){let de=Nn(ee.data);_.fetchers.set(k,de)}vd(Ar),_.navigation.state==="loading"&&Ar>F?(te(b,"Expected pending action"),T&&T.abort(),ft(_.navigation.location,{matches:Ve,loaderData:Zi,errors:ce,fetchers:new Map(_.fetchers)})):(be({errors:ce,loaderData:Dh(_.loaderData,Zi,Ve,ce),fetchers:new Map(_.fetchers)}),N=!1)}async function ts(k,R,A,B,W,re,X){let Q=_.fetchers.get(k);$n(k,Ko(X,Q?Q.data:void 0),{flushSync:re});let G=new AbortController,ie=Wo(e.history,A,G.signal);U.set(k,G);let He=O,ee=await Vo("loader",ie,B,W,i,o,s,u.v7_relativeSplatPath);if(fr(ee)&&(ee=await P0(ee,ie.signal,!0)||ee),U.get(k)===G&&U.delete(k),!ie.signal.aborted){if(ye.has(k)){$n(k,Nn(void 0));return}if(dr(ee))if(F>He){$n(k,Nn(void 0));return}else{J.add(k),await Qt(_,ee);return}if(qr(ee)){Oo(k,R,ee.error);return}te(!fr(ee),"Unhandled fetcher deferred data"),$n(k,Nn(ee.data))}}async function Qt(k,R,A){let{submission:B,fetcherSubmission:W,replace:re}=A===void 0?{}:A;R.revalidate&&(N=!0);let X=Ni(k.location,R.location,{_isRedirect:!0});if(te(X,"Expected a location on the redirect navigation"),n){let he=!1;if(R.reloadDocument)he=!0;else if(T0.test(R.location)){const Ye=e.history.createURL(R.location);he=Ye.origin!==t.location.origin||br(Ye.pathname,s)==null}if(he){re?t.location.replace(R.location):t.location.assign(R.location);return}}T=null;let Q=re===!0?Ie.Replace:Ie.Push,{formMethod:G,formAction:ie,formEncType:He}=k.navigation;!B&&!W&&G&&ie&&He&&(B=Uh(k.navigation));let ee=B||W;if(Ew.has(R.status)&&ee&&Bt(ee.formMethod))await wt(Q,X,{submission:Oe({},ee,{formAction:R.location}),preventScrollReset:$});else{let he=Ls(X,B);await wt(Q,X,{overrideNavigation:he,fetcherSubmission:W,preventScrollReset:$})}}async function fd(k,R,A,B,W){let re=await Promise.all([...A.map(G=>Vo("loader",W,G,R,i,o,s,u.v7_relativeSplatPath)),...B.map(G=>G.matches&&G.match&&G.controller?Vo("loader",Wo(e.history,G.path,G.controller.signal),G.match,G.matches,i,o,s,u.v7_relativeSplatPath):{type:Pe.error,error:Rt(404,{pathname:G.path})})]),X=re.slice(0,A.length),Q=re.slice(A.length);return await Promise.all([Bh(k,A,X,X.map(()=>W.signal),!1,_.loaderData),Bh(k,B.map(G=>G.match),Q,B.map(G=>G.controller?G.controller.signal:null),!0)]),{results:re,loaderResults:X,fetcherResults:Q}}function ns(){N=!0,z.push(...rs()),se.forEach((k,R)=>{U.has(R)&&(V.push(R),Tn(R))})}function $n(k,R,A){A===void 0&&(A={}),_.fetchers.set(k,R),be({fetchers:new Map(_.fetchers)},{flushSync:(A&&A.flushSync)===!0})}function Oo(k,R,A,B){B===void 0&&(B={});let W=di(_.matches,R);Gi(k),be({errors:{[W.route.id]:A},fetchers:new Map(_.fetchers)},{flushSync:(B&&B.flushSync)===!0})}function dd(k){return u.v7_fetcherPersist&&(Be.set(k,(Be.get(k)||0)+1),ye.has(k)&&ye.delete(k)),_.fetchers.get(k)||_w}function Gi(k){let R=_.fetchers.get(k);U.has(k)&&!(R&&R.state==="loading"&&K.has(k))&&Tn(k),se.delete(k),K.delete(k),J.delete(k),ye.delete(k),_.fetchers.delete(k)}function my(k){if(u.v7_fetcherPersist){let R=(Be.get(k)||0)-1;R<=0?(Be.delete(k),ye.add(k)):Be.set(k,R)}else Gi(k);be({fetchers:new Map(_.fetchers)})}function Tn(k){let R=U.get(k);te(R,"Expected fetch controller: "+k),R.abort(),U.delete(k)}function hd(k){for(let R of k){let A=dd(R),B=Nn(A.data);_.fetchers.set(R,B)}}function pd(){let k=[],R=!1;for(let A of J){let B=_.fetchers.get(A);te(B,"Expected fetcher: "+A),B.state==="loading"&&(J.delete(A),k.push(A),R=!0)}return hd(k),R}function vd(k){let R=[];for(let[A,B]of K)if(B0}function gy(k,R){let A=_.blockers.get(k)||Ho;return we.get(k)!==R&&we.set(k,R),A}function md(k){_.blockers.delete(k),we.delete(k)}function Qi(k,R){let A=_.blockers.get(k)||Ho;te(A.state==="unblocked"&&R.state==="blocked"||A.state==="blocked"&&R.state==="blocked"||A.state==="blocked"&&R.state==="proceeding"||A.state==="blocked"&&R.state==="unblocked"||A.state==="proceeding"&&R.state==="unblocked","Invalid blocker state transition: "+A.state+" -> "+R.state);let B=new Map(_.blockers);B.set(k,R),be({blockers:B})}function gd(k){let{currentLocation:R,nextLocation:A,historyAction:B}=k;if(we.size===0)return;we.size>1&&yo(!1,"A router only supports one blocker at a time");let W=Array.from(we.entries()),[re,X]=W[W.length-1],Q=_.blockers.get(re);if(!(Q&&Q.state==="proceeding")&&X({currentLocation:R,nextLocation:A,historyAction:B}))return re}function rs(k){let R=[];return Ne.forEach((A,B)=>{(!k||k(B))&&(A.cancel(),R.push(B),Ne.delete(B))}),R}function yy(k,R,A){if(d=k,y=R,p=A||null,!g&&_.navigation===Is){g=!0;let B=wd(_.location,_.matches);B!=null&&be({restoreScrollPosition:B})}return()=>{d=null,y=null,p=null}}function yd(k,R){return p&&p(k,R.map(B=>C0(B,_.loaderData)))||k.key}function wy(k,R){if(d&&y){let A=yd(k,R);d[A]=y()}}function wd(k,R){if(d){let A=yd(k,R),B=d[A];if(typeof B=="number")return B}return null}function xy(k){i={},l=qc(k,o,void 0,i)}return S={get basename(){return s},get future(){return u},get state(){return _},get routes(){return a},get window(){return t},initialize:xe,subscribe:jt,enableScrollRestoration:yy,navigate:Ki,fetch:ql,revalidate:Xl,createHref:k=>e.history.createHref(k),encodeLocation:k=>e.history.encodeLocation(k),getFetcher:dd,deleteFetcher:my,dispose:Se,getBlocker:gy,deleteBlocker:md,_internalFetchControllers:U,_internalActiveDeferreds:Ne,_internalSetRoutes:xy},S}function $w(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function eu(e,t,n,r,o,i,a,l){let s,u;if(a){s=[];for(let c of t)if(s.push(c),c.route.id===a){u=c;break}}else s=t,u=t[t.length-1];let f=If(o||".",Of(s,i),br(e.pathname,n)||e.pathname,l==="path");return o==null&&(f.search=e.search,f.hash=e.hash),(o==null||o===""||o===".")&&u&&u.route.index&&!Mf(f.search)&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(f.pathname=f.pathname==="/"?n:dn([n,f.pathname])),Cr(f)}function Ah(e,t,n,r){if(!r||!$w(r))return{path:n};if(r.formMethod&&!Ow(r.formMethod))return{path:n,error:Rt(405,{method:r.formMethod})};let o=()=>({path:n,error:Rt(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),l=N0(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Bt(a))return o();let d=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((p,y)=>{let[g,C]=y;return""+p+g+"="+C+` +`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!Bt(a))return o();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch{return o()}}}te(typeof FormData=="function","FormData is not available in this environment");let s,u;if(r.formData)s=tu(r.formData),u=r.formData;else if(r.body instanceof FormData)s=tu(r.body),u=r.body;else if(r.body instanceof URLSearchParams)s=r.body,u=Mh(s);else if(r.body==null)s=new URLSearchParams,u=new FormData;else try{s=new URLSearchParams(r.body),u=Mh(s)}catch{return o()}let f={formMethod:a,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Bt(f.formMethod))return{path:n,submission:f};let c=Cn(n);return t&&c.search&&Mf(c.search)&&s.append("index",""),c.search="?"+s,{path:Cr(c),submission:f}}function Tw(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Oh(e,t,n,r,o,i,a,l,s,u,f,c,d,p,y,g){let C=g?Object.values(g)[0]:y?Object.values(y)[0]:void 0,v=e.createURL(t.location),m=e.createURL(o),x=g?Object.keys(g)[0]:void 0,S=Tw(n,x).filter((b,$)=>{let{route:T}=b;if(T.lazy)return!0;if(T.loader==null)return!1;if(i)return T.loader.hydrate?!0:t.loaderData[T.id]===void 0&&(!t.errors||t.errors[T.id]===void 0);if(kw(t.loaderData,t.matches[$],b)||l.some(L=>L===b.route.id))return!0;let P=t.matches[$],j=b;return Ih(b,Oe({currentUrl:v,currentParams:P.params,nextUrl:m,nextParams:j.params},r,{actionResult:C,defaultShouldRevalidate:a||v.pathname+v.search===m.pathname+m.search||v.search!==m.search||R0(P,j)}))}),_=[];return f.forEach((b,$)=>{if(i||!n.some(D=>D.route.id===b.routeId)||u.has($))return;let T=ur(d,b.path,p);if(!T){_.push({key:$,routeId:b.routeId,path:b.path,matches:null,match:null,controller:null});return}let P=t.fetchers.get($),j=nu(T,b.path),L=!1;c.has($)?L=!1:s.includes($)?L=!0:P&&P.state!=="idle"&&P.data===void 0?L=a:L=Ih(j,Oe({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:m,nextParams:n[n.length-1].params},r,{actionResult:C,defaultShouldRevalidate:a})),L&&_.push({key:$,routeId:b.routeId,path:b.path,matches:T,match:j,controller:new AbortController})}),[S,_]}function kw(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function R0(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Ih(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Lh(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];te(o,"No route found in manifest");let i={};for(let a in r){let s=o[a]!==void 0&&a!=="hasErrorBoundary";yo(!s,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!s&&!q3.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,Oe({},t(o),{lazy:void 0}))}async function Vo(e,t,n,r,o,i,a,l,s){s===void 0&&(s={});let u,f,c,d=g=>{let C,v=new Promise((m,x)=>C=x);return c=()=>C(),t.signal.addEventListener("abort",c),Promise.race([g({request:t,params:n.params,context:s.requestContext}),v])};try{let g=n.route[e];if(n.route.lazy)if(g){let C,v=await Promise.all([d(g).catch(m=>{C=m}),Lh(n.route,i,o)]);if(C)throw C;f=v[0]}else if(await Lh(n.route,i,o),g=n.route[e],g)f=await d(g);else if(e==="action"){let C=new URL(t.url),v=C.pathname+C.search;throw Rt(405,{method:t.method,pathname:v,routeId:n.route.id})}else return{type:Pe.data,data:void 0};else if(g)f=await d(g);else{let C=new URL(t.url),v=C.pathname+C.search;throw Rt(404,{pathname:v})}te(f!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(g){u=Pe.error,f=g}finally{c&&t.signal.removeEventListener("abort",c)}if(Aw(f)){let g=f.status;if(Cw.has(g)){let v=f.headers.get("Location");if(te(v,"Redirects returned/thrown from loaders/actions must have a Location header"),!T0.test(v))v=eu(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,!0,v,l);else if(!s.isStaticRequest){let m=new URL(t.url),x=v.startsWith("//")?new URL(m.protocol+v):new URL(v),E=br(x.pathname,a)!=null;x.origin===m.origin&&E&&(v=x.pathname+x.search+x.hash)}if(s.isStaticRequest)throw f.headers.set("Location",v),f;return{type:Pe.redirect,status:g,location:v,revalidate:f.headers.get("X-Remix-Revalidate")!==null,reloadDocument:f.headers.get("X-Remix-Reload-Document")!==null}}if(s.isRouteRequest)throw{type:u===Pe.error?Pe.error:Pe.data,response:f};let C;try{let v=f.headers.get("Content-Type");v&&/\bapplication\/json\b/.test(v)?f.body==null?C=null:C=await f.json():C=await f.text()}catch(v){return{type:Pe.error,error:v}}return u===Pe.error?{type:u,error:new Lf(g,f.statusText,C),headers:f.headers}:{type:Pe.data,data:C,statusCode:f.status,headers:f.headers}}if(u===Pe.error)return{type:u,error:f};if(Pw(f)){var p,y;return{type:Pe.deferred,deferredData:f,statusCode:(p=f.init)==null?void 0:p.status,headers:((y=f.init)==null?void 0:y.headers)&&new Headers(f.init.headers)}}return{type:Pe.data,data:f}}function Wo(e,t,n,r){let o=e.createURL(N0(t)).toString(),i={signal:n};if(r&&Bt(r.formMethod)){let{formMethod:a,formEncType:l}=r;i.method=a.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(r.json)):l==="text/plain"?i.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?i.body=tu(r.formData):i.body=r.formData}return new Request(o,i)}function tu(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Mh(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Rw(e,t,n,r,o){let i={},a=null,l,s=!1,u={};return n.forEach((f,c)=>{let d=t[c].route.id;if(te(!dr(f),"Cannot handle redirect results in processLoaderData"),qr(f)){let p=di(e,d),y=f.error;r&&(y=Object.values(r)[0],r=void 0),a=a||{},a[p.route.id]==null&&(a[p.route.id]=y),i[d]=void 0,s||(s=!0,l=b0(f.error)?f.error.status:500),f.headers&&(u[d]=f.headers)}else fr(f)?(o.set(d,f.deferredData),i[d]=f.deferredData.data):i[d]=f.data,f.statusCode!=null&&f.statusCode!==200&&!s&&(l=f.statusCode),f.headers&&(u[d]=f.headers)}),r&&(a=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:a,statusCode:l||200,loaderHeaders:u}}function jh(e,t,n,r,o,i,a,l){let{loaderData:s,errors:u}=Rw(t,n,r,o,l);for(let f=0;fr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Fh(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Rt(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,a="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(a="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(a="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",l='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new Lf(e||500,a,new Error(l),!0)}function zh(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(dr(n))return{result:n,idx:t}}}function N0(e){let t=typeof e=="string"?Cn(e):e;return Cr(Oe({},t,{hash:""}))}function Nw(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function fr(e){return e.type===Pe.deferred}function qr(e){return e.type===Pe.error}function dr(e){return(e&&e.type)===Pe.redirect}function Pw(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Aw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Ow(e){return xw.has(e.toLowerCase())}function Bt(e){return yw.has(e.toLowerCase())}async function Bh(e,t,n,r,o,i){for(let a=0;ac.route.id===s.route.id),f=u!=null&&!R0(u,s)&&(i&&i[s.route.id])!==void 0;if(fr(l)&&(o||f)){let c=r[a];te(c,"Expected an AbortSignal for revalidating fetcher deferred result"),await P0(l,c,o).then(d=>{d&&(n[a]=d||n[a])})}}}async function P0(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Pe.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Pe.error,error:o}}return{type:Pe.data,data:e.deferredData.data}}}function Mf(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function nu(e,t){let n=typeof t=="string"?Cn(t).search:t.search;if(e[e.length-1].route.index&&Mf(n||""))return e[e.length-1];let r=S0(e);return r[r.length-1]}function Uh(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function Ls(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Iw(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Ko(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Lw(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Nn(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Mw(e,t){try{let n=e.sessionStorage.getItem(k0);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function jw(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(k0,JSON.stringify(n))}catch(r){yo(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.22.3 * * Copyright (c) Remix Software Inc. @@ -56,7 +56,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Pi(){return Pi=Object.assign?Object.assign.bind():function(e){for(var t=1;tBl(e,t),[t,e])}function A0(e){h.useContext(nr).static||h.useLayoutEffect(e)}function Df(){let{isDataRoute:e}=h.useContext($r);return e?Jw():zw()}function zw(){ko()||te(!1);let e=h.useContext(Ui),{basename:t,future:n,navigator:r}=h.useContext(nr),{matches:o}=h.useContext($r),{pathname:i}=Re(),a=JSON.stringify(Of(o,n.v7_relativeSplatPath)),l=h.useRef(!1);return A0(()=>{l.current=!0}),h.useCallback(function(u,f){if(f===void 0&&(f={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let c=If(u,JSON.parse(a),i,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:dn([t,c.pathname])),(f.replace?r.replace:r.push)(c,f.state,f)},[t,r,a,i,e])}function O0(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=h.useContext(nr),{matches:o}=h.useContext($r),{pathname:i}=Re(),a=JSON.stringify(Of(o,r.v7_relativeSplatPath));return h.useMemo(()=>If(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function Bw(e,t,n,r){ko()||te(!1);let{navigator:o}=h.useContext(nr),{matches:i}=h.useContext($r),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let u=Re(),f;if(t){var c;let C=typeof t=="string"?Cn(t):t;s==="/"||(c=C.pathname)!=null&&c.startsWith(s)||te(!1),f=C}else f=u;let d=f.pathname||"/",p=d;if(s!=="/"){let C=s.replace(/^\//,"").split("/");p="/"+d.replace(/^\//,"").split("/").slice(C.length).join("/")}let y=ur(e,{pathname:p}),g=Kw(y&&y.map(C=>Object.assign({},C,{params:Object.assign({},l,C.params),pathname:dn([s,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?s:dn([s,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,r);return t&&g?h.createElement(Ul.Provider,{value:{location:Pi({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Ie.Pop}},g):g}function Uw(){let e=Xw(),t=S0(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.createElement("pre",{style:o},n):null,null)}const Hw=h.createElement(Uw,null);class Vw extends h.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?h.createElement($r.Provider,{value:this.props.routeContext},h.createElement(P0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ww(e){let{routeContext:t,match:n,children:r}=e,o=h.useContext(Ui);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement($r.Provider,{value:t},r)}function Kw(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let f=a.findIndex(c=>c.route.id&&(l==null?void 0:l[c.route.id]));f>=0||te(!1),a=a.slice(0,Math.min(a.length,f+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((f,c,d)=>{let p,y=!1,g=null,C=null;n&&(p=l&&c.route.id?l[c.route.id]:void 0,g=c.route.errorElement||Hw,s&&(u<0&&d===0?(qw("route-fallback",!1),y=!0,C=null):u===d&&(y=!0,C=c.route.hydrateFallbackElement||null)));let v=t.concat(a.slice(0,d+1)),m=()=>{let x;return p?x=g:y?x=C:c.route.Component?x=h.createElement(c.route.Component,null):c.route.element?x=c.route.element:x=f,h.createElement(Ww,{match:c,routeContext:{outlet:f,matches:v,isDataRoute:n!=null},children:x})};return n&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?h.createElement(Vw,{location:n.location,revalidation:n.revalidation,component:g,error:p,children:m(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):m()},null)}var I0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(I0||{}),wo=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(wo||{});function Yw(e){let t=h.useContext(Ui);return t||te(!1),t}function Ff(e){let t=h.useContext(jf);return t||te(!1),t}function Gw(e){let t=h.useContext($r);return t||te(!1),t}function L0(e){let t=Gw(),n=t.matches[t.matches.length-1];return n.route.id||te(!1),n.route.id}function Qw(){return Ff(wo.UseNavigation).navigation}function Zw(){let{matches:e,loaderData:t}=Ff(wo.UseMatches);return h.useMemo(()=>e.map(n=>x0(n,t)),[e,t])}function Xw(){var e;let t=h.useContext(P0),n=Ff(wo.UseRouteError),r=L0(wo.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Jw(){let{router:e}=Yw(I0.UseNavigateStable),t=L0(wo.UseNavigateStable),n=h.useRef(!1);return A0(()=>{n.current=!0}),h.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Pi({fromRouteId:t},i)))},[e,t])}const Uh={};function qw(e,t,n){!t&&!Uh[e]&&(Uh[e]=!0)}function ex(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Ie.Pop,navigator:i,static:a=!1,future:l}=e;ko()&&te(!1);let s=t.replace(/^\/*/,"/"),u=h.useMemo(()=>({basename:s,navigator:i,static:a,future:Pi({v7_relativeSplatPath:!1},l)}),[s,l,i,a]);typeof r=="string"&&(r=Cn(r));let{pathname:f="/",search:c="",hash:d="",state:p=null,key:y="default"}=r,g=h.useMemo(()=>{let C=br(f,s);return C==null?null:{location:{pathname:C,search:c,hash:d,state:p,key:y},navigationType:o}},[s,f,c,d,p,y,o]);return g==null?null:h.createElement(nr.Provider,{value:u},h.createElement(Ul.Provider,{children:n,value:g}))}new Promise(()=>{});function tx(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:h.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:h.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:h.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function Pi(){return Pi=Object.assign?Object.assign.bind():function(e){for(var t=1;tBl(e,t),[t,e])}function O0(e){h.useContext(nr).static||h.useLayoutEffect(e)}function Df(){let{isDataRoute:e}=h.useContext($r);return e?Jw():zw()}function zw(){ko()||te(!1);let e=h.useContext(Ui),{basename:t,future:n,navigator:r}=h.useContext(nr),{matches:o}=h.useContext($r),{pathname:i}=Re(),a=JSON.stringify(Of(o,n.v7_relativeSplatPath)),l=h.useRef(!1);return O0(()=>{l.current=!0}),h.useCallback(function(u,f){if(f===void 0&&(f={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let c=If(u,JSON.parse(a),i,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:dn([t,c.pathname])),(f.replace?r.replace:r.push)(c,f.state,f)},[t,r,a,i,e])}function I0(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=h.useContext(nr),{matches:o}=h.useContext($r),{pathname:i}=Re(),a=JSON.stringify(Of(o,r.v7_relativeSplatPath));return h.useMemo(()=>If(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function Bw(e,t,n,r){ko()||te(!1);let{navigator:o}=h.useContext(nr),{matches:i}=h.useContext($r),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let u=Re(),f;if(t){var c;let C=typeof t=="string"?Cn(t):t;s==="/"||(c=C.pathname)!=null&&c.startsWith(s)||te(!1),f=C}else f=u;let d=f.pathname||"/",p=d;if(s!=="/"){let C=s.replace(/^\//,"").split("/");p="/"+d.replace(/^\//,"").split("/").slice(C.length).join("/")}let y=ur(e,{pathname:p}),g=Kw(y&&y.map(C=>Object.assign({},C,{params:Object.assign({},l,C.params),pathname:dn([s,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?s:dn([s,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,r);return t&&g?h.createElement(Ul.Provider,{value:{location:Pi({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Ie.Pop}},g):g}function Uw(){let e=Xw(),t=b0(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.createElement("pre",{style:o},n):null,null)}const Hw=h.createElement(Uw,null);class Vw extends h.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?h.createElement($r.Provider,{value:this.props.routeContext},h.createElement(A0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ww(e){let{routeContext:t,match:n,children:r}=e,o=h.useContext(Ui);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement($r.Provider,{value:t},r)}function Kw(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let f=a.findIndex(c=>c.route.id&&(l==null?void 0:l[c.route.id]));f>=0||te(!1),a=a.slice(0,Math.min(a.length,f+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((f,c,d)=>{let p,y=!1,g=null,C=null;n&&(p=l&&c.route.id?l[c.route.id]:void 0,g=c.route.errorElement||Hw,s&&(u<0&&d===0?(qw("route-fallback",!1),y=!0,C=null):u===d&&(y=!0,C=c.route.hydrateFallbackElement||null)));let v=t.concat(a.slice(0,d+1)),m=()=>{let x;return p?x=g:y?x=C:c.route.Component?x=h.createElement(c.route.Component,null):c.route.element?x=c.route.element:x=f,h.createElement(Ww,{match:c,routeContext:{outlet:f,matches:v,isDataRoute:n!=null},children:x})};return n&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?h.createElement(Vw,{location:n.location,revalidation:n.revalidation,component:g,error:p,children:m(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):m()},null)}var L0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(L0||{}),wo=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(wo||{});function Yw(e){let t=h.useContext(Ui);return t||te(!1),t}function Ff(e){let t=h.useContext(jf);return t||te(!1),t}function Gw(e){let t=h.useContext($r);return t||te(!1),t}function M0(e){let t=Gw(),n=t.matches[t.matches.length-1];return n.route.id||te(!1),n.route.id}function Qw(){return Ff(wo.UseNavigation).navigation}function Zw(){let{matches:e,loaderData:t}=Ff(wo.UseMatches);return h.useMemo(()=>e.map(n=>C0(n,t)),[e,t])}function Xw(){var e;let t=h.useContext(A0),n=Ff(wo.UseRouteError),r=M0(wo.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Jw(){let{router:e}=Yw(L0.UseNavigateStable),t=M0(wo.UseNavigateStable),n=h.useRef(!1);return O0(()=>{n.current=!0}),h.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Pi({fromRouteId:t},i)))},[e,t])}const Hh={};function qw(e,t,n){!t&&!Hh[e]&&(Hh[e]=!0)}function ex(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Ie.Pop,navigator:i,static:a=!1,future:l}=e;ko()&&te(!1);let s=t.replace(/^\/*/,"/"),u=h.useMemo(()=>({basename:s,navigator:i,static:a,future:Pi({v7_relativeSplatPath:!1},l)}),[s,l,i,a]);typeof r=="string"&&(r=Cn(r));let{pathname:f="/",search:c="",hash:d="",state:p=null,key:y="default"}=r,g=h.useMemo(()=>{let C=br(f,s);return C==null?null:{location:{pathname:C,search:c,hash:d,state:p,key:y},navigationType:o}},[s,f,c,d,p,y,o]);return g==null?null:h.createElement(nr.Provider,{value:u},h.createElement(Ul.Provider,{children:n,value:g}))}new Promise(()=>{});function tx(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:h.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:h.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:h.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.22.3 * * Copyright (c) Remix Software Inc. @@ -65,7 +65,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function xo(){return xo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function rx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ox(e,t){return e.button===0&&(!t||t==="_self")&&!rx(e)}const ix=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],ax="6";try{window.__reactRouterVersion=ax}catch{}function lx(e,t){return bw({basename:t==null?void 0:t.basename,future:xo({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Z3({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||sx(),routes:e,mapRouteProperties:tx,window:t==null?void 0:t.window}).initialize()}function sx(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=xo({},t,{errors:cx(t.errors)})),t}function cx(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new Lf(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const ux=h.createContext({isTransitioning:!1}),fx=h.createContext(new Map),dx="startTransition",Hh=Bu[dx],hx="flushSync",Vh=Q3[hx];function px(e){Hh?Hh(e):e()}function Yo(e){Vh?Vh(e):e()}class vx{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function mx(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=h.useState(n.state),[a,l]=h.useState(),[s,u]=h.useState({isTransitioning:!1}),[f,c]=h.useState(),[d,p]=h.useState(),[y,g]=h.useState(),C=h.useRef(new Map),{v7_startTransition:v}=r||{},m=h.useCallback(b=>{v?px(b):b()},[v]),x=h.useCallback((b,$)=>{let{deletedFetchers:T,unstable_flushSync:P,unstable_viewTransitionOpts:j}=$;T.forEach(D=>C.current.delete(D)),b.fetchers.forEach((D,N)=>{D.data!==void 0&&C.current.set(N,D.data)});let L=n.window==null||typeof n.window.document.startViewTransition!="function";if(!j||L){P?Yo(()=>i(b)):m(()=>i(b));return}if(P){Yo(()=>{d&&(f&&f.resolve(),d.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:j.currentLocation,nextLocation:j.nextLocation})});let D=n.window.document.startViewTransition(()=>{Yo(()=>i(b))});D.finished.finally(()=>{Yo(()=>{c(void 0),p(void 0),l(void 0),u({isTransitioning:!1})})}),Yo(()=>p(D));return}d?(f&&f.resolve(),d.skipTransition(),g({state:b,currentLocation:j.currentLocation,nextLocation:j.nextLocation})):(l(b),u({isTransitioning:!0,flushSync:!1,currentLocation:j.currentLocation,nextLocation:j.nextLocation}))},[n.window,d,f,C,m]);h.useLayoutEffect(()=>n.subscribe(x),[n,x]),h.useEffect(()=>{s.isTransitioning&&!s.flushSync&&c(new vx)},[s]),h.useEffect(()=>{if(f&&a&&n.window){let b=a,$=f.promise,T=n.window.document.startViewTransition(async()=>{m(()=>i(b)),await $});T.finished.finally(()=>{c(void 0),p(void 0),l(void 0),u({isTransitioning:!1})}),p(T)}},[m,a,f,n.window]),h.useEffect(()=>{f&&a&&o.location.key===a.location.key&&f.resolve()},[f,d,o.location,a]),h.useEffect(()=>{!s.isTransitioning&&y&&(l(y.state),u({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),g(void 0))},[s.isTransitioning,y]),h.useEffect(()=>{},[]);let E=h.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:b=>n.navigate(b),push:(b,$,T)=>n.navigate(b,{state:$,preventScrollReset:T==null?void 0:T.preventScrollReset}),replace:(b,$,T)=>n.navigate(b,{replace:!0,state:$,preventScrollReset:T==null?void 0:T.preventScrollReset})}),[n]),S=n.basename||"/",_=h.useMemo(()=>({router:n,navigator:E,static:!1,basename:S}),[n,E,S]);return h.createElement(h.Fragment,null,h.createElement(Ui.Provider,{value:_},h.createElement(jf.Provider,{value:o},h.createElement(fx.Provider,{value:C.current},h.createElement(ux.Provider,{value:s},h.createElement(ex,{basename:S,location:o.location,navigationType:o.historyAction,navigator:E,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?h.createElement(gx,{routes:n.routes,future:n.future,state:o}):t))))),null)}function gx(e){let{routes:t,future:n,state:r}=e;return Bw(t,void 0,r,n)}const yx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",wx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,M0=h.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:l,target:s,to:u,preventScrollReset:f,unstable_viewTransition:c}=t,d=nx(t,ix),{basename:p}=h.useContext(nr),y,g=!1;if(typeof u=="string"&&wx.test(u)&&(y=u,yx))try{let x=new URL(window.location.href),E=u.startsWith("//")?new URL(x.protocol+u):new URL(u),S=br(E.pathname,p);E.origin===x.origin&&S!=null?u=S+E.search+E.hash:g=!0}catch{}let C=Dw(u,{relative:o}),v=_x(u,{replace:a,state:l,target:s,preventScrollReset:f,relative:o,unstable_viewTransition:c});function m(x){r&&r(x),x.defaultPrevented||v(x)}return h.createElement("a",xo({},d,{href:y||C,onClick:g||i?r:m,ref:n,target:s}))});function xx(e){let{getKey:t,storageKey:n}=e;return Sx({getKey:t,storageKey:n}),null}var ru;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ru||(ru={}));var ou;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ou||(ou={}));function Cx(e){let t=h.useContext(Ui);return t||te(!1),t}function Ex(e){let t=h.useContext(jf);return t||te(!1),t}function _x(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=Df(),u=Re(),f=O0(e,{relative:a});return h.useCallback(c=>{if(ox(c,n)){c.preventDefault();let d=r!==void 0?r:Cr(u)===Cr(f);s(e,{replace:d,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[u,s,f,r,o,n,e,i,a,l])}const Wh="react-router-scroll-positions";let va={};function Sx(e){let{getKey:t,storageKey:n}=e===void 0?{}:e,{router:r}=Cx(ru.UseScrollRestoration),{restoreScrollPosition:o,preventScrollReset:i}=Ex(ou.UseScrollRestoration),{basename:a}=h.useContext(nr),l=Re(),s=Zw(),u=Qw();h.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),bx(h.useCallback(()=>{if(u.state==="idle"){let f=(t?t(l,s):null)||l.key;va[f]=window.scrollY}try{sessionStorage.setItem(n||Wh,JSON.stringify(va))}catch{}window.history.scrollRestoration="auto"},[n,t,u.state,l,s])),typeof document<"u"&&(h.useLayoutEffect(()=>{try{let f=sessionStorage.getItem(n||Wh);f&&(va=JSON.parse(f))}catch{}},[n]),h.useLayoutEffect(()=>{let f=t&&a!=="/"?(d,p)=>t(xo({},d,{pathname:br(d.pathname,a)||d.pathname}),p):t,c=r==null?void 0:r.enableScrollRestoration(va,()=>window.scrollY,f);return()=>c&&c()},[r,a,t]),h.useLayoutEffect(()=>{if(o!==!1){if(typeof o=="number"){window.scrollTo(0,o);return}if(l.hash){let f=document.getElementById(decodeURIComponent(l.hash.slice(1)));if(f){f.scrollIntoView();return}}i!==!0&&window.scrollTo(0,0)}},[l,o,i]))}function bx(e,t){let{capture:n}=t||{};h.useEffect(()=>{let r=n!=null?{capture:n}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,n])}const j0={blogDir:"./pages/blog",rootDir:"docs",title:"Polkadot-API",titleTemplate:"%s – Polkadot-API",description:"Typescript API to interact with polkadot chains",basePath:"/polkadot-api-docs",sidebar:[{text:"Getting Started",link:"/getting-started"},{text:"Providers",link:"/providers"},{text:"Codegen",link:"/codegen"},{text:"Types",link:"/types"},{text:"Signers",link:"/signers"},{text:"API",collapsed:!0,items:[{text:"Polkadot-API",link:"/api/polkadot_api"}]},{text:"Examples",collapsed:!0,items:[{text:"Example",link:"/examples/example"}]}],socials:[{icon:"github",link:"https://github.com/polkadot-api/polkadot-api",label:"GitHub",type:"github"}],markdown:{code:{themes:{dark:"github-dark-dimmed",light:"github-light"}}},topNav:[],theme:{},vite:{base:"/polkadot-api-docs"}},D0=h.createContext(j0);function F0(){return typeof window<"u",j0}function $x({children:e,config:t}){const[n,r]=h.useState(()=>t||F0());return h.useEffect(()=>{},[]),h.useEffect(()=>{typeof window<"u"},[n]),w.jsx(D0.Provider,{value:n,children:e})}function Je(){return h.useContext(D0)}const Tx="modulepreload",kx=function(e){return"/polkadot-api-docs/"+e},Kh={},ot=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=Promise.all(n.map(s=>{if(s=kx(s),s in Kh)return;Kh[s]=!0;const u=s.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(!!r)for(let p=i.length-1;p>=0;p--){const y=i[p];if(y.href===s&&(!u||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${f}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":Tx,u||(d.as="script",d.crossOrigin=""),d.href=s,l&&d.setAttribute("nonce",l),document.head.appendChild(d),u)return new Promise((p,y)=>{d.addEventListener("load",p),d.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${s}`)))})}))}return o.then(()=>t()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})},zf=[{lazy:()=>ot(()=>import("./codegen-CnbYZc7w.js"),[]),path:"/codegen",type:"mdx",filePath:"codegen.md",lastUpdatedAt:1713173559e3},{lazy:()=>ot(()=>import("./codegen-CnbYZc7w.js"),[]),path:"/codegen.html",type:"mdx",filePath:"codegen.md",lastUpdatedAt:1713173559e3},{lazy:()=>ot(()=>import("./getting-started-DF8MU59x.js"),[]),path:"/getting-started",type:"mdx",filePath:"getting-started.mdx",lastUpdatedAt:1713173559e3},{lazy:()=>ot(()=>import("./getting-started-DF8MU59x.js"),[]),path:"/getting-started.html",type:"mdx",filePath:"getting-started.mdx",lastUpdatedAt:1713173559e3},{lazy:()=>ot(()=>import("./index-x2CuOhNl.js"),[]),path:"/",type:"mdx",filePath:"index.mdx",lastUpdatedAt:1713173559e3},{lazy:()=>ot(()=>import("./providers-BIDLrsp-.js"),[]),path:"/providers",type:"mdx",filePath:"providers.md",lastUpdatedAt:1713173559e3},{lazy:()=>ot(()=>import("./providers-BIDLrsp-.js"),[]),path:"/providers.html",type:"mdx",filePath:"providers.md",lastUpdatedAt:1713173559e3},{lazy:()=>ot(()=>import("./signers-WdyFE5Xg.js"),[]),path:"/signers",type:"mdx",filePath:"signers.md",lastUpdatedAt:1713173559e3},{lazy:()=>ot(()=>import("./signers-WdyFE5Xg.js"),[]),path:"/signers.html",type:"mdx",filePath:"signers.md",lastUpdatedAt:1713173559e3},{lazy:()=>ot(()=>import("./types-C0RxJ6XT.js"),[]),path:"/types",type:"mdx",filePath:"types.mdx",lastUpdatedAt:1713173559e3},{lazy:()=>ot(()=>import("./types-C0RxJ6XT.js"),[]),path:"/types.html",type:"mdx",filePath:"types.mdx",lastUpdatedAt:1713173559e3},{lazy:()=>ot(()=>import("./polkadot_api-BdReTaME.js"),[]),path:"/api/polkadot_api",type:"mdx",filePath:"api/polkadot_api.mdx",lastUpdatedAt:1713173559e3},{lazy:()=>ot(()=>import("./polkadot_api-BdReTaME.js"),[]),path:"/api/polkadot_api.html",type:"mdx",filePath:"api/polkadot_api.mdx",lastUpdatedAt:1713173559e3},{lazy:()=>ot(()=>import("./example-BQvU0spJ.js"),[]),path:"/examples/example",type:"mdx",filePath:"examples/example.mdx",lastUpdatedAt:1713173559e3},{lazy:()=>ot(()=>import("./example-BQvU0spJ.js"),[]),path:"/examples/example.html",type:"mdx",filePath:"examples/example.mdx",lastUpdatedAt:1713173559e3}];var Ms={horizontalPadding:"var(--vocs-content_horizontalPadding)",verticalPadding:"var(--vocs-content_verticalPadding)",width:"var(--vocs-content_width)"},Rx={default:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif",mono:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'},Nx={default:"var(--vocs-fontFamily_default)",mono:"var(--vocs-fontFamily_mono)"},Yh={white:"var(--vocs-color_white)",black:"var(--vocs-color_black)",background:"var(--vocs-color_background)",background2:"var(--vocs-color_background2)",background3:"var(--vocs-color_background3)",background4:"var(--vocs-color_background4)",background5:"var(--vocs-color_background5)",backgroundAccent:"var(--vocs-color_backgroundAccent)",backgroundAccentHover:"var(--vocs-color_backgroundAccentHover)",backgroundAccentText:"var(--vocs-color_backgroundAccentText)",backgroundBlueTint:"var(--vocs-color_backgroundBlueTint)",backgroundDark:"var(--vocs-color_backgroundDark)",backgroundGreenTint:"var(--vocs-color_backgroundGreenTint)",backgroundGreenTint2:"var(--vocs-color_backgroundGreenTint2)",backgroundIrisTint:"var(--vocs-color_backgroundIrisTint)",backgroundRedTint:"var(--vocs-color_backgroundRedTint)",backgroundRedTint2:"var(--vocs-color_backgroundRedTint2)",backgroundYellowTint:"var(--vocs-color_backgroundYellowTint)",border:"var(--vocs-color_border)",border2:"var(--vocs-color_border2)",borderAccent:"var(--vocs-color_borderAccent)",borderBlue:"var(--vocs-color_borderBlue)",borderGreen:"var(--vocs-color_borderGreen)",borderIris:"var(--vocs-color_borderIris)",borderRed:"var(--vocs-color_borderRed)",borderYellow:"var(--vocs-color_borderYellow)",heading:"var(--vocs-color_heading)",inverted:"var(--vocs-color_inverted)",shadow:"var(--vocs-color_shadow)",shadow2:"var(--vocs-color_shadow2)",text:"var(--vocs-color_text)",text2:"var(--vocs-color_text2)",text3:"var(--vocs-color_text3)",text4:"var(--vocs-color_text4)",textAccent:"var(--vocs-color_textAccent)",textAccentHover:"var(--vocs-color_textAccentHover)",textBlue:"var(--vocs-color_textBlue)",textBlueHover:"var(--vocs-color_textBlueHover)",textGreen:"var(--vocs-color_textGreen)",textGreenHover:"var(--vocs-color_textGreenHover)",textIris:"var(--vocs-color_textIris)",textIrisHover:"var(--vocs-color_textIrisHover)",textRed:"var(--vocs-color_textRed)",textRedHover:"var(--vocs-color_textRedHover)",textYellow:"var(--vocs-color_textYellow)",textYellowHover:"var(--vocs-color_textYellowHover)",title:"var(--vocs-color_title)"},js={0:"var(--vocs-space_0)",1:"var(--vocs-space_1)",2:"var(--vocs-space_2)",3:"var(--vocs-space_3)",4:"var(--vocs-space_4)",6:"var(--vocs-space_6)",8:"var(--vocs-space_8)",12:"var(--vocs-space_12)",14:"var(--vocs-space_14)",16:"var(--vocs-space_16)",18:"var(--vocs-space_18)",20:"var(--vocs-space_20)",22:"var(--vocs-space_22)",24:"var(--vocs-space_24)",28:"var(--vocs-space_28)",32:"var(--vocs-space_32)",36:"var(--vocs-space_36)",40:"var(--vocs-space_40)",44:"var(--vocs-space_44)",48:"var(--vocs-space_48)",56:"var(--vocs-space_56)",64:"var(--vocs-space_64)",72:"var(--vocs-space_72)",80:"var(--vocs-space_80)"};function z0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t ")," does not exist in object"));n=n[r]}return n}function B0(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r={};for(var o in e){var i=e[o],a=[...n,o];typeof i=="string"||typeof i=="number"||i==null?r[o]=t(i,a):typeof i=="object"&&!Array.isArray(i)?r[o]=B0(i,t,a):console.warn('Skipping invalid key "'.concat(a.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(i)?"Array":typeof i,'"'))}return r}function Gt(e,t){var n={};if(typeof t=="object"){var r=e;B0(t,(l,s)=>{if(l!=null){var u=Px(r,s);n[Gh(u)]=String(l)}})}else{var o=e;for(var i in o){var a=o[i];a!=null&&(n[Gh(i)]=a)}}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(s=>"".concat(s,":").concat(this[s])).join(";")},writable:!1}),n}var Ax="var(--vocs_ExternalLink_iconUrl)",Ox="vocs_ExternalLink";const Ix=h.forwardRef(({className:e,children:t,hideExternalIcon:n,href:r,...o},i)=>{const{basePath:a}=Je(),l=a;return w.jsx("a",{ref:i,className:I(e,n||typeof t!="string"?void 0:Ox),href:r,target:"_blank",rel:"noopener noreferrer",style:Gt({[Ax]:`url(${l}/.vocs/icons/arrow-diagonal.svg)`}),...o,children:t})});var Qh="vocs_Link_accent_underlined",Zh="vocs_Link",Xh="vocs_Link_styleless",iu=new Map,ma=new WeakMap,Jh=0,Lx=void 0;function Mx(e){return e?(ma.has(e)||(Jh+=1,ma.set(e,Jh.toString())),ma.get(e)):"0"}function jx(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?Mx(e.root):e[t]}`).toString()}function Dx(e){const t=jx(e);let n=iu.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(a=>{a.forEach(l=>{var s;const u=l.isIntersecting&&o.some(f=>l.intersectionRatio>=f);e.trackVisibility&&typeof l.isVisible>"u"&&(l.isVisible=u),(s=r.get(l.target))==null||s.forEach(f=>{f(u,l)})})},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},iu.set(t,n)}return n}function Fx(e,t,n={},r=Lx){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const s=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:s,intersectionRect:s,rootBounds:s}),()=>{}}const{id:o,observer:i,elements:a}=Dx(n),l=a.get(e)||[];return a.has(e)||a.set(e,l),l.push(t),i.observe(e),function(){l.splice(l.indexOf(t),1),l.length===0&&(a.delete(e),i.unobserve(e)),a.size===0&&(i.disconnect(),iu.delete(o))}}function U0({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:a,initialInView:l,fallbackInView:s,onChange:u}={}){var f;const[c,d]=h.useState(null),p=h.useRef(),[y,g]=h.useState({inView:!!l,entry:void 0});p.current=u,h.useEffect(()=>{if(a||!c)return;let x;return x=Fx(c,(E,S)=>{g({inView:E,entry:S}),p.current&&p.current(E,S),S.isIntersecting&&i&&x&&(x(),x=void 0)},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},s),()=>{x&&x()}},[Array.isArray(e)?e.toString():e,c,o,r,i,a,n,s,t]);const C=(f=y.entry)==null?void 0:f.target,v=h.useRef();!c&&C&&!i&&!a&&v.current!==C&&(v.current=C,g({inView:!!l,entry:void 0}));const m=[d,y.inView,y.entry];return m.ref=m[0],m.inView=m[1],m.entry=m[2],m}function zx(...e){return t=>{Bx(t,...e)}}function Bx(e,...t){t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}const Gn=h.forwardRef((e,t)=>{const n=()=>{var i;return(i=zf.find(a=>a.path===e.to))==null?void 0:i.lazy()},{ref:r,inView:o}=U0();return h.useEffect(()=>{o&&n()},[o,n]),w.jsx(M0,{ref:zx(t,r),...e})}),nn=h.forwardRef((e,t)=>{const{href:n,variant:r="accent underlined"}=e,{pathname:o}=Re();if(n!=null&&n.match(/^(www|https?)/))return w.jsx(Ix,{...e,ref:t,className:I(e.className,Zh,r==="accent underlined"&&Qh,r==="styleless"&&Xh),hideExternalIcon:e.hideExternalIcon});const[i,a]=(n||"").split("#"),l=`${i||o}${a?`#${a}`:""}`;return w.jsx(Gn,{...e,ref:t,className:I(e.className,Zh,r==="accent underlined"&&Qh,r==="styleless"&&Xh),to:l})});var Ux="vocs_NotFound_divider",Hx="vocs_NotFound",Vx="vocs_H1",H0="vocs_Heading",V0="vocs_Heading_slugTarget";function Ro({level:e,...t}){const n=`h${e}`;return w.jsxs(n,{...t,id:void 0,className:I(t.className,H0),children:[w.jsx("div",{id:t.id,className:V0}),t.children]})}function W0(e){return w.jsx(Ro,{...e,className:I(e.className,Vx),level:1})}var Wx="vocs_Paragraph";function K0(e){return w.jsx("p",{...e,className:I(e.className,Wx)})}function Kx(){return w.jsxs("div",{className:Hx,children:[w.jsx(W0,{children:"Page Not Found"}),w.jsx("div",{style:{height:js[24]}}),w.jsx("hr",{className:Ux}),w.jsx("div",{style:{height:js[24]}}),w.jsx(K0,{children:"The page you were looking for could not be found."}),w.jsx("div",{style:{height:js[8]}}),w.jsx(nn,{href:"/",children:"Go to Home Page"})]})}var Yx="var(--vocs_Banner_bannerBackgroundColor)",Gx="var(--vocs_Banner_bannerHeight)",Qx="var(--vocs_Banner_bannerTextColor)",Zx="vocs_Banner_closeButton",Xx="vocs_Banner_content",Jx="vocs_Banner_inner",qx="vocs_Banner";const e5=Object.getPrototypeOf(t5).constructor;async function t5(e,t){return new e5(String(e))(t)}function n5(e,t){return new Function(String(e))(t)}function Tr(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var r5=["color"],o5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,r5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M6.85355 3.14645C7.04882 3.34171 7.04882 3.65829 6.85355 3.85355L3.70711 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H3.70711L6.85355 11.1464C7.04882 11.3417 7.04882 11.6583 6.85355 11.8536C6.65829 12.0488 6.34171 12.0488 6.14645 11.8536L2.14645 7.85355C1.95118 7.65829 1.95118 7.34171 2.14645 7.14645L6.14645 3.14645C6.34171 2.95118 6.65829 2.95118 6.85355 3.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),i5=["color"],a5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,i5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),l5=["color"],s5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,l5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M12.8536 2.85355C13.0488 2.65829 13.0488 2.34171 12.8536 2.14645C12.6583 1.95118 12.3417 1.95118 12.1464 2.14645L7.5 6.79289L2.85355 2.14645C2.65829 1.95118 2.34171 1.95118 2.14645 2.14645C1.95118 2.34171 1.95118 2.65829 2.14645 2.85355L6.79289 7.5L2.14645 12.1464C1.95118 12.3417 1.95118 12.6583 2.14645 12.8536C2.34171 13.0488 2.65829 13.0488 2.85355 12.8536L7.5 8.20711L12.1464 12.8536C12.3417 13.0488 12.6583 13.0488 12.8536 12.8536C13.0488 12.6583 13.0488 12.3417 12.8536 12.1464L8.20711 7.5L12.8536 2.85355Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),c5=["color"],u5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,c5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M3.5 2C3.22386 2 3 2.22386 3 2.5V12.5C3 12.7761 3.22386 13 3.5 13H11.5C11.7761 13 12 12.7761 12 12.5V6H8.5C8.22386 6 8 5.77614 8 5.5V2H3.5ZM9 2.70711L11.2929 5H9V2.70711ZM2 2.5C2 1.67157 2.67157 1 3.5 1H8.5C8.63261 1 8.75979 1.05268 8.85355 1.14645L12.8536 5.14645C12.9473 5.24021 13 5.36739 13 5.5V12.5C13 13.3284 12.3284 14 11.5 14H3.5C2.67157 14 2 13.3284 2 12.5V2.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),f5=["color"],d5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,f5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M1.5 5.25C1.91421 5.25 2.25 4.91421 2.25 4.5C2.25 4.08579 1.91421 3.75 1.5 3.75C1.08579 3.75 0.75 4.08579 0.75 4.5C0.75 4.91421 1.08579 5.25 1.5 5.25ZM4 4.5C4 4.22386 4.22386 4 4.5 4H13.5C13.7761 4 14 4.22386 14 4.5C14 4.77614 13.7761 5 13.5 5H4.5C4.22386 5 4 4.77614 4 4.5ZM4.5 7C4.22386 7 4 7.22386 4 7.5C4 7.77614 4.22386 8 4.5 8H13.5C13.7761 8 14 7.77614 14 7.5C14 7.22386 13.7761 7 13.5 7H4.5ZM4.5 10C4.22386 10 4 10.2239 4 10.5C4 10.7761 4.22386 11 4.5 11H13.5C13.7761 11 14 10.7761 14 10.5C14 10.2239 13.7761 10 13.5 10H4.5ZM2.25 7.5C2.25 7.91421 1.91421 8.25 1.5 8.25C1.08579 8.25 0.75 7.91421 0.75 7.5C0.75 7.08579 1.08579 6.75 1.5 6.75C1.91421 6.75 2.25 7.08579 2.25 7.5ZM1.5 11.25C1.91421 11.25 2.25 10.9142 2.25 10.5C2.25 10.0858 1.91421 9.75 1.5 9.75C1.08579 9.75 0.75 10.0858 0.75 10.5C0.75 10.9142 1.08579 11.25 1.5 11.25Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),h5=["color"],Bf=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,h5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),p5=["color"],v5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,p5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M12.1464 1.14645C12.3417 0.951184 12.6583 0.951184 12.8535 1.14645L14.8535 3.14645C15.0488 3.34171 15.0488 3.65829 14.8535 3.85355L10.9109 7.79618C10.8349 7.87218 10.7471 7.93543 10.651 7.9835L6.72359 9.94721C6.53109 10.0435 6.29861 10.0057 6.14643 9.85355C5.99425 9.70137 5.95652 9.46889 6.05277 9.27639L8.01648 5.34897C8.06455 5.25283 8.1278 5.16507 8.2038 5.08907L12.1464 1.14645ZM12.5 2.20711L8.91091 5.79618L7.87266 7.87267L8.12731 8.12732L10.2038 7.08907L13.7929 3.5L12.5 2.20711ZM9.99998 2L8.99998 3H4.9C4.47171 3 4.18056 3.00039 3.95552 3.01877C3.73631 3.03668 3.62421 3.06915 3.54601 3.10899C3.35785 3.20487 3.20487 3.35785 3.10899 3.54601C3.06915 3.62421 3.03669 3.73631 3.01878 3.95552C3.00039 4.18056 3 4.47171 3 4.9V11.1C3 11.5283 3.00039 11.8194 3.01878 12.0445C3.03669 12.2637 3.06915 12.3758 3.10899 12.454C3.20487 12.6422 3.35785 12.7951 3.54601 12.891C3.62421 12.9309 3.73631 12.9633 3.95552 12.9812C4.18056 12.9996 4.47171 13 4.9 13H11.1C11.5283 13 11.8194 12.9996 12.0445 12.9812C12.2637 12.9633 12.3758 12.9309 12.454 12.891C12.6422 12.7951 12.7951 12.6422 12.891 12.454C12.9309 12.3758 12.9633 12.2637 12.9812 12.0445C12.9996 11.8194 13 11.5283 13 11.1V6.99998L14 5.99998V11.1V11.1207C14 11.5231 14 11.8553 13.9779 12.1259C13.9549 12.407 13.9057 12.6653 13.782 12.908C13.5903 13.2843 13.2843 13.5903 12.908 13.782C12.6653 13.9057 12.407 13.9549 12.1259 13.9779C11.8553 14 11.5231 14 11.1207 14H11.1H4.9H4.87934C4.47686 14 4.14468 14 3.87409 13.9779C3.59304 13.9549 3.33469 13.9057 3.09202 13.782C2.7157 13.5903 2.40973 13.2843 2.21799 12.908C2.09434 12.6653 2.04506 12.407 2.0221 12.1259C1.99999 11.8553 1.99999 11.5231 2 11.1207V11.1206V11.1V4.9V4.87935V4.87932V4.87931C1.99999 4.47685 1.99999 4.14468 2.0221 3.87409C2.04506 3.59304 2.09434 3.33469 2.21799 3.09202C2.40973 2.71569 2.7157 2.40973 3.09202 2.21799C3.33469 2.09434 3.59304 2.04506 3.87409 2.0221C4.14468 1.99999 4.47685 1.99999 4.87932 2H4.87935H4.9H9.99998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});function ml(e,t){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map((r,o)=>ml(r,o));const n=e.props.children?{...e.props,children:ml(e.props.children)}:e.props;return Z.createElement(e.type,{...n,key:t})}function m5({hide:e}){const{banner:t}=Je(),n=h.useMemo(()=>{const r=(t==null?void 0:t.content)??"";if(!r)return null;if(typeof r!="string")return()=>ml(r);const{default:o}=n5(r,{...Wy,Fragment:h.Fragment});return o},[t]);return n?w.jsx("div",{className:I(qx),style:Gt({[Yx]:t==null?void 0:t.backgroundColor,[Qx]:t==null?void 0:t.textColor}),children:w.jsxs("div",{className:I(Jx),children:[w.jsx("div",{className:I(Xx),children:w.jsx(n,{})}),(t==null?void 0:t.dismissable)!=="false"&&w.jsx("button",{className:I(Zx),onClick:e,type:"button",children:w.jsx(s5,{width:14,height:14})})]})}):null}var g5="vocs_Content";function Y0({children:e,className:t}){return w.jsx("article",{className:I(t,g5),children:e})}function G0({items:e,pathname:t}){const n=t.replace(/\.html$/,""),r=[];for(const o of e)(o.link&&n.startsWith(o.match||o.link)||o.items&&G0({items:o.items,pathname:t}).length>0)&&r.push(o.id);return r}function Hi({items:e,pathname:t}){return h.useMemo(()=>G0({items:e,pathname:t}),[e,t])}function kr(){const e=h.useContext(Q0);if(!e)throw new Error("`usePageData` must be used within `PageDataContext.Provider`.");return e}const Q0=h.createContext(void 0);function Hl(){const{pathname:e}=Re(),t=Je(),{sidebar:n}=t;if(!n)return{items:[]};if(Array.isArray(n))return{items:n};const r=h.useMemo(()=>{const o=Object.keys(n).filter(i=>e.startsWith(i));return o[o.length-1]},[n,e]);return r?Array.isArray(n[r])?{key:r,items:n[r]}:{...n[r],key:r}:{items:[]}}function Rr(){const e=Hl(),{frontmatter:t}=kr(),{layout:n,showLogo:r,showOutline:o,showSidebar:i,showTopNav:a}=t||{},l=n??"docs";return{layout:l,get showLogo(){return typeof r<"u"?r:!0},get showOutline(){return typeof o<"u"?o:l==="docs"},get showSidebar(){return e.items.length===0?!1:typeof i<"u"?i:!(l==="minimal"||l==="landing")},get showTopNav(){return typeof a<"u"?a:!0}}}function y5(){const[e,t]=h.useState(()=>{if(!(typeof window>"u")){if(localStorage.getItem("vocs.theme")){const n=localStorage.getItem("vocs.theme");if(n)return n}return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}});return h.useEffect(()=>{e&&localStorage.setItem("vocs.theme",e),e==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},[e]),{theme:e,toggle(){t(n=>n==="light"?"dark":"light")}}}var w5="vocs_utils_visibleDark",x5="vocs_utils_visibleLight",Z0="vocs_utils_visuallyHidden";function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>C5(n,t))}function ze(...e){return h.useCallback(X0(...e),e)}function En(e,t=[]){let n=[];function r(i,a){const l=h.createContext(a),s=n.length;n=[...n,a];function u(c){const{scope:d,children:p,...y}=c,g=(d==null?void 0:d[e][s])||l,C=h.useMemo(()=>y,Object.values(y));return h.createElement(g.Provider,{value:C},p)}function f(c,d){const p=(d==null?void 0:d[e][s])||l,y=h.useContext(p);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,f]}const o=()=>{const i=n.map(a=>h.createContext(a));return function(l){const s=(l==null?void 0:l[e])||i;return h.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return o.scopeName=e,[r,E5(o,...t)]}function E5(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((l,{useScope:s,scopeName:u})=>{const c=s(i)[`__scope${u}`];return{...l,...c}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}const gn=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},_5=Bu.useId||(()=>{});let S5=0;function rn(e){const[t,n]=h.useState(_5());return gn(()=>{e||n(r=>r??String(S5++))},[e]),e||(t?`radix-${t}`:"")}function at(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function rr({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=b5({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,l=at(n),s=h.useCallback(u=>{if(i){const c=typeof u=="function"?u(e):u;c!==e&&l(c)}else o(u)},[i,e,o,l]);return[a,s]}function b5({defaultProp:e,onChange:t}){const n=h.useState(e),[r]=n,o=h.useRef(r),i=at(t);return h.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const Co=h.forwardRef((e,t)=>{const{children:n,...r}=e,o=h.Children.toArray(n),i=o.find(T5);if(i){const a=i.props.children,l=o.map(s=>s===i?h.Children.count(a)>1?h.Children.only(null):h.isValidElement(a)?a.props.children:null:s);return h.createElement(au,Y({},r,{ref:t}),h.isValidElement(a)?h.cloneElement(a,void 0,l):null)}return h.createElement(au,Y({},r,{ref:t}),n)});Co.displayName="Slot";const au=h.forwardRef((e,t)=>{const{children:n,...r}=e;return h.isValidElement(n)?h.cloneElement(n,{...k5(r,n.props),ref:t?X0(t,n.ref):n.ref}):h.Children.count(n)>1?h.Children.only(null):null});au.displayName="SlotClone";const $5=({children:e})=>h.createElement(h.Fragment,null,e);function T5(e){return h.isValidElement(e)&&e.type===$5}function k5(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{i(...l),o(...l)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const R5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],fe=R5.reduce((e,t)=>{const n=h.forwardRef((r,o)=>{const{asChild:i,...a}=r,l=i?Co:t;return h.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),h.createElement(l,Y({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function lu(e,t){e&&To.flushSync(()=>e.dispatchEvent(t))}function N5(e,t=globalThis==null?void 0:globalThis.document){const n=at(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const su="dismissableLayer.update",P5="dismissableLayer.pointerDownOutside",A5="dismissableLayer.focusOutside";let qh;const O5=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Uf=h.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:l,onDismiss:s,...u}=e,f=h.useContext(O5),[c,d]=h.useState(null),p=(n=c==null?void 0:c.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,y]=h.useState({}),g=ze(t,$=>d($)),C=Array.from(f.layers),[v]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),m=C.indexOf(v),x=c?C.indexOf(c):-1,E=f.layersWithOutsidePointerEventsDisabled.size>0,S=x>=m,_=I5($=>{const T=$.target,P=[...f.branches].some(j=>j.contains(T));!S||P||(i==null||i($),l==null||l($),$.defaultPrevented||s==null||s())},p),b=L5($=>{const T=$.target;[...f.branches].some(j=>j.contains(T))||(a==null||a($),l==null||l($),$.defaultPrevented||s==null||s())},p);return N5($=>{x===f.layers.size-1&&(o==null||o($),!$.defaultPrevented&&s&&($.preventDefault(),s()))},p),h.useEffect(()=>{if(c)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(qh=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(c)),f.layers.add(c),ep(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=qh)}},[c,p,r,f]),h.useEffect(()=>()=>{c&&(f.layers.delete(c),f.layersWithOutsidePointerEventsDisabled.delete(c),ep())},[c,f]),h.useEffect(()=>{const $=()=>y({});return document.addEventListener(su,$),()=>document.removeEventListener(su,$)},[]),h.createElement(fe.div,Y({},u,{ref:g,style:{pointerEvents:E?S?"auto":"none":void 0,...e.style},onFocusCapture:ae(e.onFocusCapture,b.onFocusCapture),onBlurCapture:ae(e.onBlurCapture,b.onBlurCapture),onPointerDownCapture:ae(e.onPointerDownCapture,_.onPointerDownCapture)}))});function I5(e,t=globalThis==null?void 0:globalThis.document){const n=at(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let u=function(){J0(P5,n,s,{discrete:!0})};const s={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function L5(e,t=globalThis==null?void 0:globalThis.document){const n=at(e),r=h.useRef(!1);return h.useEffect(()=>{const o=i=>{i.target&&!r.current&&J0(A5,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ep(){const e=new CustomEvent(su);document.dispatchEvent(e)}function J0(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?lu(o,i):o.dispatchEvent(i)}const Ds="focusScope.autoFocusOnMount",Fs="focusScope.autoFocusOnUnmount",tp={bubbles:!1,cancelable:!0},q0=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,s]=h.useState(null),u=at(o),f=at(i),c=h.useRef(null),d=ze(t,g=>s(g)),p=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let g=function(x){if(p.paused||!l)return;const E=x.target;l.contains(E)?c.current=E:Pn(c.current,{select:!0})},C=function(x){if(p.paused||!l)return;const E=x.relatedTarget;E!==null&&(l.contains(E)||Pn(c.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Pn(l)};document.addEventListener("focusin",g),document.addEventListener("focusout",C);const m=new MutationObserver(v);return l&&m.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",C),m.disconnect()}}},[r,l,p.paused]),h.useEffect(()=>{if(l){rp.add(p);const g=document.activeElement;if(!l.contains(g)){const v=new CustomEvent(Ds,tp);l.addEventListener(Ds,u),l.dispatchEvent(v),v.defaultPrevented||(M5(B5(eg(l)),{select:!0}),document.activeElement===g&&Pn(l))}return()=>{l.removeEventListener(Ds,u),setTimeout(()=>{const v=new CustomEvent(Fs,tp);l.addEventListener(Fs,f),l.dispatchEvent(v),v.defaultPrevented||Pn(g??document.body,{select:!0}),l.removeEventListener(Fs,f),rp.remove(p)},0)}}},[l,u,f,p]);const y=h.useCallback(g=>{if(!n&&!r||p.paused)return;const C=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,v=document.activeElement;if(C&&v){const m=g.currentTarget,[x,E]=j5(m);x&&E?!g.shiftKey&&v===E?(g.preventDefault(),n&&Pn(x,{select:!0})):g.shiftKey&&v===x&&(g.preventDefault(),n&&Pn(E,{select:!0})):v===m&&g.preventDefault()}},[n,r,p.paused]);return h.createElement(fe.div,Y({tabIndex:-1},a,{ref:d,onKeyDown:y}))});function M5(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Pn(r,{select:t}),document.activeElement!==n)return}function j5(e){const t=eg(e),n=np(t,e),r=np(t.reverse(),e);return[n,r]}function eg(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function np(e,t){for(const n of e)if(!D5(n,{upTo:t}))return n}function D5(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function F5(e){return e instanceof HTMLInputElement&&"select"in e}function Pn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&F5(e)&&t&&e.select()}}const rp=z5();function z5(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=op(e,t),e.unshift(t)},remove(t){var n;e=op(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function op(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function B5(e){return e.filter(t=>t.tagName!=="A")}const tg=h.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?y0.createPortal(h.createElement(fe.div,Y({},o,{ref:t})),r):null});function U5(e,t){return h.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const _n=e=>{const{present:t,children:n}=e,r=H5(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),i=ze(r.ref,o.ref);return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:i}):null};_n.displayName="Presence";function H5(e){const[t,n]=h.useState(),r=h.useRef({}),o=h.useRef(e),i=h.useRef("none"),a=e?"mounted":"unmounted",[l,s]=U5(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const u=ga(r.current);i.current=l==="mounted"?u:"none"},[l]),gn(()=>{const u=r.current,f=o.current;if(f!==e){const d=i.current,p=ga(u);e?s("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(f&&d!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),gn(()=>{if(t){const u=c=>{const p=ga(r.current).includes(c.animationName);c.target===t&&p&&To.flushSync(()=>s("ANIMATION_END"))},f=c=>{c.target===t&&(i.current=ga(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:h.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function ga(e){return(e==null?void 0:e.animationName)||"none"}let zs=0;function ng(){h.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:ip()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:ip()),zs++,()=>{zs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),zs--}},[])}function ip(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var qt=function(){return qt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return a4;var t=l4(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},c4=ag(),lo="data-scroll-locked",u4=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return n===void 0&&(n="margin"),` + */function xo(){return xo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function rx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ox(e,t){return e.button===0&&(!t||t==="_self")&&!rx(e)}const ix=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],ax="6";try{window.__reactRouterVersion=ax}catch{}function lx(e,t){return bw({basename:t==null?void 0:t.basename,future:xo({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Z3({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||sx(),routes:e,mapRouteProperties:tx,window:t==null?void 0:t.window}).initialize()}function sx(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=xo({},t,{errors:cx(t.errors)})),t}function cx(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new Lf(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const ux=h.createContext({isTransitioning:!1}),fx=h.createContext(new Map),dx="startTransition",Vh=Bu[dx],hx="flushSync",Wh=Q3[hx];function px(e){Vh?Vh(e):e()}function Yo(e){Wh?Wh(e):e()}class vx{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function mx(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=h.useState(n.state),[a,l]=h.useState(),[s,u]=h.useState({isTransitioning:!1}),[f,c]=h.useState(),[d,p]=h.useState(),[y,g]=h.useState(),C=h.useRef(new Map),{v7_startTransition:v}=r||{},m=h.useCallback(b=>{v?px(b):b()},[v]),x=h.useCallback((b,$)=>{let{deletedFetchers:T,unstable_flushSync:P,unstable_viewTransitionOpts:j}=$;T.forEach(D=>C.current.delete(D)),b.fetchers.forEach((D,N)=>{D.data!==void 0&&C.current.set(N,D.data)});let L=n.window==null||typeof n.window.document.startViewTransition!="function";if(!j||L){P?Yo(()=>i(b)):m(()=>i(b));return}if(P){Yo(()=>{d&&(f&&f.resolve(),d.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:j.currentLocation,nextLocation:j.nextLocation})});let D=n.window.document.startViewTransition(()=>{Yo(()=>i(b))});D.finished.finally(()=>{Yo(()=>{c(void 0),p(void 0),l(void 0),u({isTransitioning:!1})})}),Yo(()=>p(D));return}d?(f&&f.resolve(),d.skipTransition(),g({state:b,currentLocation:j.currentLocation,nextLocation:j.nextLocation})):(l(b),u({isTransitioning:!0,flushSync:!1,currentLocation:j.currentLocation,nextLocation:j.nextLocation}))},[n.window,d,f,C,m]);h.useLayoutEffect(()=>n.subscribe(x),[n,x]),h.useEffect(()=>{s.isTransitioning&&!s.flushSync&&c(new vx)},[s]),h.useEffect(()=>{if(f&&a&&n.window){let b=a,$=f.promise,T=n.window.document.startViewTransition(async()=>{m(()=>i(b)),await $});T.finished.finally(()=>{c(void 0),p(void 0),l(void 0),u({isTransitioning:!1})}),p(T)}},[m,a,f,n.window]),h.useEffect(()=>{f&&a&&o.location.key===a.location.key&&f.resolve()},[f,d,o.location,a]),h.useEffect(()=>{!s.isTransitioning&&y&&(l(y.state),u({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),g(void 0))},[s.isTransitioning,y]),h.useEffect(()=>{},[]);let E=h.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:b=>n.navigate(b),push:(b,$,T)=>n.navigate(b,{state:$,preventScrollReset:T==null?void 0:T.preventScrollReset}),replace:(b,$,T)=>n.navigate(b,{replace:!0,state:$,preventScrollReset:T==null?void 0:T.preventScrollReset})}),[n]),S=n.basename||"/",_=h.useMemo(()=>({router:n,navigator:E,static:!1,basename:S}),[n,E,S]);return h.createElement(h.Fragment,null,h.createElement(Ui.Provider,{value:_},h.createElement(jf.Provider,{value:o},h.createElement(fx.Provider,{value:C.current},h.createElement(ux.Provider,{value:s},h.createElement(ex,{basename:S,location:o.location,navigationType:o.historyAction,navigator:E,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?h.createElement(gx,{routes:n.routes,future:n.future,state:o}):t))))),null)}function gx(e){let{routes:t,future:n,state:r}=e;return Bw(t,void 0,r,n)}const yx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",wx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,zf=h.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:l,target:s,to:u,preventScrollReset:f,unstable_viewTransition:c}=t,d=nx(t,ix),{basename:p}=h.useContext(nr),y,g=!1;if(typeof u=="string"&&wx.test(u)&&(y=u,yx))try{let x=new URL(window.location.href),E=u.startsWith("//")?new URL(x.protocol+u):new URL(u),S=br(E.pathname,p);E.origin===x.origin&&S!=null?u=S+E.search+E.hash:g=!0}catch{}let C=Dw(u,{relative:o}),v=_x(u,{replace:a,state:l,target:s,preventScrollReset:f,relative:o,unstable_viewTransition:c});function m(x){r&&r(x),x.defaultPrevented||v(x)}return h.createElement("a",xo({},d,{href:y||C,onClick:g||i?r:m,ref:n,target:s}))});function xx(e){let{getKey:t,storageKey:n}=e;return Sx({getKey:t,storageKey:n}),null}var ru;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ru||(ru={}));var ou;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ou||(ou={}));function Cx(e){let t=h.useContext(Ui);return t||te(!1),t}function Ex(e){let t=h.useContext(jf);return t||te(!1),t}function _x(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=Df(),u=Re(),f=I0(e,{relative:a});return h.useCallback(c=>{if(ox(c,n)){c.preventDefault();let d=r!==void 0?r:Cr(u)===Cr(f);s(e,{replace:d,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[u,s,f,r,o,n,e,i,a,l])}const Kh="react-router-scroll-positions";let va={};function Sx(e){let{getKey:t,storageKey:n}=e===void 0?{}:e,{router:r}=Cx(ru.UseScrollRestoration),{restoreScrollPosition:o,preventScrollReset:i}=Ex(ou.UseScrollRestoration),{basename:a}=h.useContext(nr),l=Re(),s=Zw(),u=Qw();h.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),bx(h.useCallback(()=>{if(u.state==="idle"){let f=(t?t(l,s):null)||l.key;va[f]=window.scrollY}try{sessionStorage.setItem(n||Kh,JSON.stringify(va))}catch{}window.history.scrollRestoration="auto"},[n,t,u.state,l,s])),typeof document<"u"&&(h.useLayoutEffect(()=>{try{let f=sessionStorage.getItem(n||Kh);f&&(va=JSON.parse(f))}catch{}},[n]),h.useLayoutEffect(()=>{let f=t&&a!=="/"?(d,p)=>t(xo({},d,{pathname:br(d.pathname,a)||d.pathname}),p):t,c=r==null?void 0:r.enableScrollRestoration(va,()=>window.scrollY,f);return()=>c&&c()},[r,a,t]),h.useLayoutEffect(()=>{if(o!==!1){if(typeof o=="number"){window.scrollTo(0,o);return}if(l.hash){let f=document.getElementById(decodeURIComponent(l.hash.slice(1)));if(f){f.scrollIntoView();return}}i!==!0&&window.scrollTo(0,0)}},[l,o,i]))}function bx(e,t){let{capture:n}=t||{};h.useEffect(()=>{let r=n!=null?{capture:n}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,n])}const j0={blogDir:"./pages/blog",rootDir:"docs",title:"Polkadot-API",titleTemplate:"%s – Polkadot-API",description:"Typescript API to interact with polkadot chains",basePath:"/polkadot-api-docs",sidebar:[{text:"Getting Started",link:"/getting-started"},{text:"Providers",link:"/providers"},{text:"Codegen",link:"/codegen"},{text:"Types",link:"/types"},{text:"Signers",link:"/signers"},{text:"API",collapsed:!0,items:[{text:"Polkadot-API",link:"/api/polkadot_api"}]},{text:"Examples",collapsed:!0,items:[{text:"Example",link:"/examples/example"}]}],socials:[{icon:"github",link:"https://github.com/polkadot-api/polkadot-api",label:"GitHub",type:"github"}],markdown:{code:{themes:{dark:"github-dark-dimmed",light:"github-light"}}},topNav:[],theme:{},vite:{base:"/polkadot-api-docs"}},D0=h.createContext(j0);function F0(){return typeof window<"u",j0}function $x({children:e,config:t}){const[n,r]=h.useState(()=>t||F0());return h.useEffect(()=>{},[]),h.useEffect(()=>{typeof window<"u"},[n]),w.jsx(D0.Provider,{value:n,children:e})}function Je(){return h.useContext(D0)}const Tx="modulepreload",kx=function(e){return"/polkadot-api-docs/"+e},Yh={},ot=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=Promise.all(n.map(s=>{if(s=kx(s),s in Yh)return;Yh[s]=!0;const u=s.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(!!r)for(let p=i.length-1;p>=0;p--){const y=i[p];if(y.href===s&&(!u||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${f}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":Tx,u||(d.as="script",d.crossOrigin=""),d.href=s,l&&d.setAttribute("nonce",l),document.head.appendChild(d),u)return new Promise((p,y)=>{d.addEventListener("load",p),d.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${s}`)))})}))}return o.then(()=>t()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})},Bf=[{lazy:()=>ot(()=>import("./codegen-MMSNiuKu.js"),[]),path:"/codegen",type:"mdx",filePath:"codegen.md",lastUpdatedAt:1713217692e3},{lazy:()=>ot(()=>import("./codegen-MMSNiuKu.js"),[]),path:"/codegen.html",type:"mdx",filePath:"codegen.md",lastUpdatedAt:1713217692e3},{lazy:()=>ot(()=>import("./getting-started-hHyuSENX.js"),[]),path:"/getting-started",type:"mdx",filePath:"getting-started.mdx",lastUpdatedAt:1713217692e3},{lazy:()=>ot(()=>import("./getting-started-hHyuSENX.js"),[]),path:"/getting-started.html",type:"mdx",filePath:"getting-started.mdx",lastUpdatedAt:1713217692e3},{lazy:()=>ot(()=>import("./index-BpjhD_eD.js"),[]),path:"/",type:"mdx",filePath:"index.mdx",lastUpdatedAt:1713217692e3},{lazy:()=>ot(()=>import("./providers-CwKpKyCj.js"),[]),path:"/providers",type:"mdx",filePath:"providers.md",lastUpdatedAt:1713217692e3},{lazy:()=>ot(()=>import("./providers-CwKpKyCj.js"),[]),path:"/providers.html",type:"mdx",filePath:"providers.md",lastUpdatedAt:1713217692e3},{lazy:()=>ot(()=>import("./signers-ByG5EHuD.js"),[]),path:"/signers",type:"mdx",filePath:"signers.md",lastUpdatedAt:1713217692e3},{lazy:()=>ot(()=>import("./signers-ByG5EHuD.js"),[]),path:"/signers.html",type:"mdx",filePath:"signers.md",lastUpdatedAt:1713217692e3},{lazy:()=>ot(()=>import("./types-B4mGaoaZ.js"),[]),path:"/types",type:"mdx",filePath:"types.mdx",lastUpdatedAt:1713217692e3},{lazy:()=>ot(()=>import("./types-B4mGaoaZ.js"),[]),path:"/types.html",type:"mdx",filePath:"types.mdx",lastUpdatedAt:1713217692e3},{lazy:()=>ot(()=>import("./polkadot_api-BKIqpXQ4.js"),[]),path:"/api/polkadot_api",type:"mdx",filePath:"api/polkadot_api.mdx",lastUpdatedAt:1713217692e3},{lazy:()=>ot(()=>import("./polkadot_api-BKIqpXQ4.js"),[]),path:"/api/polkadot_api.html",type:"mdx",filePath:"api/polkadot_api.mdx",lastUpdatedAt:1713217692e3},{lazy:()=>ot(()=>import("./example-DeC6E7XP.js"),[]),path:"/examples/example",type:"mdx",filePath:"examples/example.mdx",lastUpdatedAt:1713217692e3},{lazy:()=>ot(()=>import("./example-DeC6E7XP.js"),[]),path:"/examples/example.html",type:"mdx",filePath:"examples/example.mdx",lastUpdatedAt:1713217692e3}];var Ms={horizontalPadding:"var(--vocs-content_horizontalPadding)",verticalPadding:"var(--vocs-content_verticalPadding)",width:"var(--vocs-content_width)"},Rx={default:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif",mono:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'},Nx={default:"var(--vocs-fontFamily_default)",mono:"var(--vocs-fontFamily_mono)"},Gh={white:"var(--vocs-color_white)",black:"var(--vocs-color_black)",background:"var(--vocs-color_background)",background2:"var(--vocs-color_background2)",background3:"var(--vocs-color_background3)",background4:"var(--vocs-color_background4)",background5:"var(--vocs-color_background5)",backgroundAccent:"var(--vocs-color_backgroundAccent)",backgroundAccentHover:"var(--vocs-color_backgroundAccentHover)",backgroundAccentText:"var(--vocs-color_backgroundAccentText)",backgroundBlueTint:"var(--vocs-color_backgroundBlueTint)",backgroundDark:"var(--vocs-color_backgroundDark)",backgroundGreenTint:"var(--vocs-color_backgroundGreenTint)",backgroundGreenTint2:"var(--vocs-color_backgroundGreenTint2)",backgroundIrisTint:"var(--vocs-color_backgroundIrisTint)",backgroundRedTint:"var(--vocs-color_backgroundRedTint)",backgroundRedTint2:"var(--vocs-color_backgroundRedTint2)",backgroundYellowTint:"var(--vocs-color_backgroundYellowTint)",border:"var(--vocs-color_border)",border2:"var(--vocs-color_border2)",borderAccent:"var(--vocs-color_borderAccent)",borderBlue:"var(--vocs-color_borderBlue)",borderGreen:"var(--vocs-color_borderGreen)",borderIris:"var(--vocs-color_borderIris)",borderRed:"var(--vocs-color_borderRed)",borderYellow:"var(--vocs-color_borderYellow)",heading:"var(--vocs-color_heading)",inverted:"var(--vocs-color_inverted)",shadow:"var(--vocs-color_shadow)",shadow2:"var(--vocs-color_shadow2)",text:"var(--vocs-color_text)",text2:"var(--vocs-color_text2)",text3:"var(--vocs-color_text3)",text4:"var(--vocs-color_text4)",textAccent:"var(--vocs-color_textAccent)",textAccentHover:"var(--vocs-color_textAccentHover)",textBlue:"var(--vocs-color_textBlue)",textBlueHover:"var(--vocs-color_textBlueHover)",textGreen:"var(--vocs-color_textGreen)",textGreenHover:"var(--vocs-color_textGreenHover)",textIris:"var(--vocs-color_textIris)",textIrisHover:"var(--vocs-color_textIrisHover)",textRed:"var(--vocs-color_textRed)",textRedHover:"var(--vocs-color_textRedHover)",textYellow:"var(--vocs-color_textYellow)",textYellowHover:"var(--vocs-color_textYellowHover)",title:"var(--vocs-color_title)"},js={0:"var(--vocs-space_0)",1:"var(--vocs-space_1)",2:"var(--vocs-space_2)",3:"var(--vocs-space_3)",4:"var(--vocs-space_4)",6:"var(--vocs-space_6)",8:"var(--vocs-space_8)",12:"var(--vocs-space_12)",14:"var(--vocs-space_14)",16:"var(--vocs-space_16)",18:"var(--vocs-space_18)",20:"var(--vocs-space_20)",22:"var(--vocs-space_22)",24:"var(--vocs-space_24)",28:"var(--vocs-space_28)",32:"var(--vocs-space_32)",36:"var(--vocs-space_36)",40:"var(--vocs-space_40)",44:"var(--vocs-space_44)",48:"var(--vocs-space_48)",56:"var(--vocs-space_56)",64:"var(--vocs-space_64)",72:"var(--vocs-space_72)",80:"var(--vocs-space_80)"};function z0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t ")," does not exist in object"));n=n[r]}return n}function B0(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r={};for(var o in e){var i=e[o],a=[...n,o];typeof i=="string"||typeof i=="number"||i==null?r[o]=t(i,a):typeof i=="object"&&!Array.isArray(i)?r[o]=B0(i,t,a):console.warn('Skipping invalid key "'.concat(a.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(i)?"Array":typeof i,'"'))}return r}function Gt(e,t){var n={};if(typeof t=="object"){var r=e;B0(t,(l,s)=>{if(l!=null){var u=Px(r,s);n[Qh(u)]=String(l)}})}else{var o=e;for(var i in o){var a=o[i];a!=null&&(n[Qh(i)]=a)}}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(s=>"".concat(s,":").concat(this[s])).join(";")},writable:!1}),n}var Ax="var(--vocs_ExternalLink_iconUrl)",Ox="vocs_ExternalLink";const Ix=h.forwardRef(({className:e,children:t,hideExternalIcon:n,href:r,...o},i)=>{const{basePath:a}=Je(),l=a;return w.jsx("a",{ref:i,className:I(e,n||typeof t!="string"?void 0:Ox),href:r,target:"_blank",rel:"noopener noreferrer",style:Gt({[Ax]:`url(${l}/.vocs/icons/arrow-diagonal.svg)`}),...o,children:t})});var Zh="vocs_Link_accent_underlined",Xh="vocs_Link",Jh="vocs_Link_styleless",iu=new Map,ma=new WeakMap,qh=0,Lx=void 0;function Mx(e){return e?(ma.has(e)||(qh+=1,ma.set(e,qh.toString())),ma.get(e)):"0"}function jx(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?Mx(e.root):e[t]}`).toString()}function Dx(e){const t=jx(e);let n=iu.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(a=>{a.forEach(l=>{var s;const u=l.isIntersecting&&o.some(f=>l.intersectionRatio>=f);e.trackVisibility&&typeof l.isVisible>"u"&&(l.isVisible=u),(s=r.get(l.target))==null||s.forEach(f=>{f(u,l)})})},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},iu.set(t,n)}return n}function Fx(e,t,n={},r=Lx){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const s=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:s,intersectionRect:s,rootBounds:s}),()=>{}}const{id:o,observer:i,elements:a}=Dx(n),l=a.get(e)||[];return a.has(e)||a.set(e,l),l.push(t),i.observe(e),function(){l.splice(l.indexOf(t),1),l.length===0&&(a.delete(e),i.unobserve(e)),a.size===0&&(i.disconnect(),iu.delete(o))}}function U0({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:a,initialInView:l,fallbackInView:s,onChange:u}={}){var f;const[c,d]=h.useState(null),p=h.useRef(),[y,g]=h.useState({inView:!!l,entry:void 0});p.current=u,h.useEffect(()=>{if(a||!c)return;let x;return x=Fx(c,(E,S)=>{g({inView:E,entry:S}),p.current&&p.current(E,S),S.isIntersecting&&i&&x&&(x(),x=void 0)},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},s),()=>{x&&x()}},[Array.isArray(e)?e.toString():e,c,o,r,i,a,n,s,t]);const C=(f=y.entry)==null?void 0:f.target,v=h.useRef();!c&&C&&!i&&!a&&v.current!==C&&(v.current=C,g({inView:!!l,entry:void 0}));const m=[d,y.inView,y.entry];return m.ref=m[0],m.inView=m[1],m.entry=m[2],m}function zx(...e){return t=>{Bx(t,...e)}}function Bx(e,...t){t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}const Gn=h.forwardRef((e,t)=>{const n=()=>{var i;return(i=Bf.find(a=>a.path===e.to))==null?void 0:i.lazy()},{ref:r,inView:o}=U0();return h.useEffect(()=>{o&&n()},[o,n]),w.jsx(zf,{ref:zx(t,r),...e})}),nn=h.forwardRef((e,t)=>{const{href:n,variant:r="accent underlined"}=e,{pathname:o}=Re();if(n!=null&&n.match(/^(www|https?)/))return w.jsx(Ix,{...e,ref:t,className:I(e.className,Xh,r==="accent underlined"&&Zh,r==="styleless"&&Jh),hideExternalIcon:e.hideExternalIcon});const[i,a]=(n||"").split("#"),l=`${i||o}${a?`#${a}`:""}`;return w.jsx(Gn,{...e,ref:t,className:I(e.className,Xh,r==="accent underlined"&&Zh,r==="styleless"&&Jh),to:l})});var Ux="vocs_NotFound_divider",Hx="vocs_NotFound",Vx="vocs_H1",H0="vocs_Heading",V0="vocs_Heading_slugTarget";function Ro({level:e,...t}){const n=`h${e}`;return w.jsxs(n,{...t,id:void 0,className:I(t.className,H0),children:[w.jsx("div",{id:t.id,className:V0}),t.children]})}function W0(e){return w.jsx(Ro,{...e,className:I(e.className,Vx),level:1})}var Wx="vocs_Paragraph";function K0(e){return w.jsx("p",{...e,className:I(e.className,Wx)})}function Kx(){return w.jsxs("div",{className:Hx,children:[w.jsx(W0,{children:"Page Not Found"}),w.jsx("div",{style:{height:js[24]}}),w.jsx("hr",{className:Ux}),w.jsx("div",{style:{height:js[24]}}),w.jsx(K0,{children:"The page you were looking for could not be found."}),w.jsx("div",{style:{height:js[8]}}),w.jsx(nn,{href:"/",children:"Go to Home Page"})]})}var Yx="var(--vocs_Banner_bannerBackgroundColor)",Gx="var(--vocs_Banner_bannerHeight)",Qx="var(--vocs_Banner_bannerTextColor)",Zx="vocs_Banner_closeButton",Xx="vocs_Banner_content",Jx="vocs_Banner_inner",qx="vocs_Banner";const e5=Object.getPrototypeOf(t5).constructor;async function t5(e,t){return new e5(String(e))(t)}function n5(e,t){return new Function(String(e))(t)}function Tr(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var r5=["color"],o5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,r5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M6.85355 3.14645C7.04882 3.34171 7.04882 3.65829 6.85355 3.85355L3.70711 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H3.70711L6.85355 11.1464C7.04882 11.3417 7.04882 11.6583 6.85355 11.8536C6.65829 12.0488 6.34171 12.0488 6.14645 11.8536L2.14645 7.85355C1.95118 7.65829 1.95118 7.34171 2.14645 7.14645L6.14645 3.14645C6.34171 2.95118 6.65829 2.95118 6.85355 3.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),i5=["color"],a5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,i5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),l5=["color"],s5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,l5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M12.8536 2.85355C13.0488 2.65829 13.0488 2.34171 12.8536 2.14645C12.6583 1.95118 12.3417 1.95118 12.1464 2.14645L7.5 6.79289L2.85355 2.14645C2.65829 1.95118 2.34171 1.95118 2.14645 2.14645C1.95118 2.34171 1.95118 2.65829 2.14645 2.85355L6.79289 7.5L2.14645 12.1464C1.95118 12.3417 1.95118 12.6583 2.14645 12.8536C2.34171 13.0488 2.65829 13.0488 2.85355 12.8536L7.5 8.20711L12.1464 12.8536C12.3417 13.0488 12.6583 13.0488 12.8536 12.8536C13.0488 12.6583 13.0488 12.3417 12.8536 12.1464L8.20711 7.5L12.8536 2.85355Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),c5=["color"],u5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,c5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M3.5 2C3.22386 2 3 2.22386 3 2.5V12.5C3 12.7761 3.22386 13 3.5 13H11.5C11.7761 13 12 12.7761 12 12.5V6H8.5C8.22386 6 8 5.77614 8 5.5V2H3.5ZM9 2.70711L11.2929 5H9V2.70711ZM2 2.5C2 1.67157 2.67157 1 3.5 1H8.5C8.63261 1 8.75979 1.05268 8.85355 1.14645L12.8536 5.14645C12.9473 5.24021 13 5.36739 13 5.5V12.5C13 13.3284 12.3284 14 11.5 14H3.5C2.67157 14 2 13.3284 2 12.5V2.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),f5=["color"],d5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,f5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M1.5 5.25C1.91421 5.25 2.25 4.91421 2.25 4.5C2.25 4.08579 1.91421 3.75 1.5 3.75C1.08579 3.75 0.75 4.08579 0.75 4.5C0.75 4.91421 1.08579 5.25 1.5 5.25ZM4 4.5C4 4.22386 4.22386 4 4.5 4H13.5C13.7761 4 14 4.22386 14 4.5C14 4.77614 13.7761 5 13.5 5H4.5C4.22386 5 4 4.77614 4 4.5ZM4.5 7C4.22386 7 4 7.22386 4 7.5C4 7.77614 4.22386 8 4.5 8H13.5C13.7761 8 14 7.77614 14 7.5C14 7.22386 13.7761 7 13.5 7H4.5ZM4.5 10C4.22386 10 4 10.2239 4 10.5C4 10.7761 4.22386 11 4.5 11H13.5C13.7761 11 14 10.7761 14 10.5C14 10.2239 13.7761 10 13.5 10H4.5ZM2.25 7.5C2.25 7.91421 1.91421 8.25 1.5 8.25C1.08579 8.25 0.75 7.91421 0.75 7.5C0.75 7.08579 1.08579 6.75 1.5 6.75C1.91421 6.75 2.25 7.08579 2.25 7.5ZM1.5 11.25C1.91421 11.25 2.25 10.9142 2.25 10.5C2.25 10.0858 1.91421 9.75 1.5 9.75C1.08579 9.75 0.75 10.0858 0.75 10.5C0.75 10.9142 1.08579 11.25 1.5 11.25Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),h5=["color"],Uf=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,h5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),p5=["color"],v5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,p5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M12.1464 1.14645C12.3417 0.951184 12.6583 0.951184 12.8535 1.14645L14.8535 3.14645C15.0488 3.34171 15.0488 3.65829 14.8535 3.85355L10.9109 7.79618C10.8349 7.87218 10.7471 7.93543 10.651 7.9835L6.72359 9.94721C6.53109 10.0435 6.29861 10.0057 6.14643 9.85355C5.99425 9.70137 5.95652 9.46889 6.05277 9.27639L8.01648 5.34897C8.06455 5.25283 8.1278 5.16507 8.2038 5.08907L12.1464 1.14645ZM12.5 2.20711L8.91091 5.79618L7.87266 7.87267L8.12731 8.12732L10.2038 7.08907L13.7929 3.5L12.5 2.20711ZM9.99998 2L8.99998 3H4.9C4.47171 3 4.18056 3.00039 3.95552 3.01877C3.73631 3.03668 3.62421 3.06915 3.54601 3.10899C3.35785 3.20487 3.20487 3.35785 3.10899 3.54601C3.06915 3.62421 3.03669 3.73631 3.01878 3.95552C3.00039 4.18056 3 4.47171 3 4.9V11.1C3 11.5283 3.00039 11.8194 3.01878 12.0445C3.03669 12.2637 3.06915 12.3758 3.10899 12.454C3.20487 12.6422 3.35785 12.7951 3.54601 12.891C3.62421 12.9309 3.73631 12.9633 3.95552 12.9812C4.18056 12.9996 4.47171 13 4.9 13H11.1C11.5283 13 11.8194 12.9996 12.0445 12.9812C12.2637 12.9633 12.3758 12.9309 12.454 12.891C12.6422 12.7951 12.7951 12.6422 12.891 12.454C12.9309 12.3758 12.9633 12.2637 12.9812 12.0445C12.9996 11.8194 13 11.5283 13 11.1V6.99998L14 5.99998V11.1V11.1207C14 11.5231 14 11.8553 13.9779 12.1259C13.9549 12.407 13.9057 12.6653 13.782 12.908C13.5903 13.2843 13.2843 13.5903 12.908 13.782C12.6653 13.9057 12.407 13.9549 12.1259 13.9779C11.8553 14 11.5231 14 11.1207 14H11.1H4.9H4.87934C4.47686 14 4.14468 14 3.87409 13.9779C3.59304 13.9549 3.33469 13.9057 3.09202 13.782C2.7157 13.5903 2.40973 13.2843 2.21799 12.908C2.09434 12.6653 2.04506 12.407 2.0221 12.1259C1.99999 11.8553 1.99999 11.5231 2 11.1207V11.1206V11.1V4.9V4.87935V4.87932V4.87931C1.99999 4.47685 1.99999 4.14468 2.0221 3.87409C2.04506 3.59304 2.09434 3.33469 2.21799 3.09202C2.40973 2.71569 2.7157 2.40973 3.09202 2.21799C3.33469 2.09434 3.59304 2.04506 3.87409 2.0221C4.14468 1.99999 4.47685 1.99999 4.87932 2H4.87935H4.9H9.99998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});function ml(e,t){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map((r,o)=>ml(r,o));const n=e.props.children?{...e.props,children:ml(e.props.children)}:e.props;return Z.createElement(e.type,{...n,key:t})}function m5({hide:e}){const{banner:t}=Je(),n=h.useMemo(()=>{const r=(t==null?void 0:t.content)??"";if(!r)return null;if(typeof r!="string")return()=>ml(r);const{default:o}=n5(r,{...Wy,Fragment:h.Fragment});return o},[t]);return n?w.jsx("div",{className:I(qx),style:Gt({[Yx]:t==null?void 0:t.backgroundColor,[Qx]:t==null?void 0:t.textColor}),children:w.jsxs("div",{className:I(Jx),children:[w.jsx("div",{className:I(Xx),children:w.jsx(n,{})}),(t==null?void 0:t.dismissable)!=="false"&&w.jsx("button",{className:I(Zx),onClick:e,type:"button",children:w.jsx(s5,{width:14,height:14})})]})}):null}var g5="vocs_Content";function Y0({children:e,className:t}){return w.jsx("article",{className:I(t,g5),children:e})}function G0({items:e,pathname:t}){const n=t.replace(/\.html$/,""),r=[];for(const o of e)(o.link&&n.startsWith(o.match||o.link)||o.items&&G0({items:o.items,pathname:t}).length>0)&&r.push(o.id);return r}function Hi({items:e,pathname:t}){return h.useMemo(()=>G0({items:e,pathname:t}),[e,t])}function kr(){const e=h.useContext(Q0);if(!e)throw new Error("`usePageData` must be used within `PageDataContext.Provider`.");return e}const Q0=h.createContext(void 0);function Hl(){const{pathname:e}=Re(),t=Je(),{sidebar:n}=t;if(!n)return{items:[]};if(Array.isArray(n))return{items:n};const r=h.useMemo(()=>{const o=Object.keys(n).filter(i=>e.startsWith(i));return o[o.length-1]},[n,e]);return r?Array.isArray(n[r])?{key:r,items:n[r]}:{...n[r],key:r}:{items:[]}}function Rr(){const e=Hl(),{frontmatter:t}=kr(),{layout:n,showLogo:r,showOutline:o,showSidebar:i,showTopNav:a}=t||{},l=n??"docs";return{layout:l,get showLogo(){return typeof r<"u"?r:!0},get showOutline(){return typeof o<"u"?o:l==="docs"},get showSidebar(){return e.items.length===0?!1:typeof i<"u"?i:!(l==="minimal"||l==="landing")},get showTopNav(){return typeof a<"u"?a:!0}}}function y5(){const[e,t]=h.useState(()=>{if(!(typeof window>"u")){if(localStorage.getItem("vocs.theme")){const n=localStorage.getItem("vocs.theme");if(n)return n}return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}});return h.useEffect(()=>{e&&localStorage.setItem("vocs.theme",e),e==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},[e]),{theme:e,toggle(){t(n=>n==="light"?"dark":"light")}}}var w5="vocs_utils_visibleDark",x5="vocs_utils_visibleLight",Z0="vocs_utils_visuallyHidden";function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>C5(n,t))}function ze(...e){return h.useCallback(X0(...e),e)}function En(e,t=[]){let n=[];function r(i,a){const l=h.createContext(a),s=n.length;n=[...n,a];function u(c){const{scope:d,children:p,...y}=c,g=(d==null?void 0:d[e][s])||l,C=h.useMemo(()=>y,Object.values(y));return h.createElement(g.Provider,{value:C},p)}function f(c,d){const p=(d==null?void 0:d[e][s])||l,y=h.useContext(p);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,f]}const o=()=>{const i=n.map(a=>h.createContext(a));return function(l){const s=(l==null?void 0:l[e])||i;return h.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return o.scopeName=e,[r,E5(o,...t)]}function E5(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((l,{useScope:s,scopeName:u})=>{const c=s(i)[`__scope${u}`];return{...l,...c}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}const gn=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},_5=Bu.useId||(()=>{});let S5=0;function rn(e){const[t,n]=h.useState(_5());return gn(()=>{e||n(r=>r??String(S5++))},[e]),e||(t?`radix-${t}`:"")}function at(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function rr({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=b5({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,l=at(n),s=h.useCallback(u=>{if(i){const c=typeof u=="function"?u(e):u;c!==e&&l(c)}else o(u)},[i,e,o,l]);return[a,s]}function b5({defaultProp:e,onChange:t}){const n=h.useState(e),[r]=n,o=h.useRef(r),i=at(t);return h.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const Co=h.forwardRef((e,t)=>{const{children:n,...r}=e,o=h.Children.toArray(n),i=o.find(T5);if(i){const a=i.props.children,l=o.map(s=>s===i?h.Children.count(a)>1?h.Children.only(null):h.isValidElement(a)?a.props.children:null:s);return h.createElement(au,Y({},r,{ref:t}),h.isValidElement(a)?h.cloneElement(a,void 0,l):null)}return h.createElement(au,Y({},r,{ref:t}),n)});Co.displayName="Slot";const au=h.forwardRef((e,t)=>{const{children:n,...r}=e;return h.isValidElement(n)?h.cloneElement(n,{...k5(r,n.props),ref:t?X0(t,n.ref):n.ref}):h.Children.count(n)>1?h.Children.only(null):null});au.displayName="SlotClone";const $5=({children:e})=>h.createElement(h.Fragment,null,e);function T5(e){return h.isValidElement(e)&&e.type===$5}function k5(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{i(...l),o(...l)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const R5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],fe=R5.reduce((e,t)=>{const n=h.forwardRef((r,o)=>{const{asChild:i,...a}=r,l=i?Co:t;return h.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),h.createElement(l,Y({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function lu(e,t){e&&To.flushSync(()=>e.dispatchEvent(t))}function N5(e,t=globalThis==null?void 0:globalThis.document){const n=at(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const su="dismissableLayer.update",P5="dismissableLayer.pointerDownOutside",A5="dismissableLayer.focusOutside";let ep;const O5=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Hf=h.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:l,onDismiss:s,...u}=e,f=h.useContext(O5),[c,d]=h.useState(null),p=(n=c==null?void 0:c.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,y]=h.useState({}),g=ze(t,$=>d($)),C=Array.from(f.layers),[v]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),m=C.indexOf(v),x=c?C.indexOf(c):-1,E=f.layersWithOutsidePointerEventsDisabled.size>0,S=x>=m,_=I5($=>{const T=$.target,P=[...f.branches].some(j=>j.contains(T));!S||P||(i==null||i($),l==null||l($),$.defaultPrevented||s==null||s())},p),b=L5($=>{const T=$.target;[...f.branches].some(j=>j.contains(T))||(a==null||a($),l==null||l($),$.defaultPrevented||s==null||s())},p);return N5($=>{x===f.layers.size-1&&(o==null||o($),!$.defaultPrevented&&s&&($.preventDefault(),s()))},p),h.useEffect(()=>{if(c)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(ep=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(c)),f.layers.add(c),tp(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=ep)}},[c,p,r,f]),h.useEffect(()=>()=>{c&&(f.layers.delete(c),f.layersWithOutsidePointerEventsDisabled.delete(c),tp())},[c,f]),h.useEffect(()=>{const $=()=>y({});return document.addEventListener(su,$),()=>document.removeEventListener(su,$)},[]),h.createElement(fe.div,Y({},u,{ref:g,style:{pointerEvents:E?S?"auto":"none":void 0,...e.style},onFocusCapture:ae(e.onFocusCapture,b.onFocusCapture),onBlurCapture:ae(e.onBlurCapture,b.onBlurCapture),onPointerDownCapture:ae(e.onPointerDownCapture,_.onPointerDownCapture)}))});function I5(e,t=globalThis==null?void 0:globalThis.document){const n=at(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let u=function(){J0(P5,n,s,{discrete:!0})};const s={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function L5(e,t=globalThis==null?void 0:globalThis.document){const n=at(e),r=h.useRef(!1);return h.useEffect(()=>{const o=i=>{i.target&&!r.current&&J0(A5,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function tp(){const e=new CustomEvent(su);document.dispatchEvent(e)}function J0(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?lu(o,i):o.dispatchEvent(i)}const Ds="focusScope.autoFocusOnMount",Fs="focusScope.autoFocusOnUnmount",np={bubbles:!1,cancelable:!0},q0=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,s]=h.useState(null),u=at(o),f=at(i),c=h.useRef(null),d=ze(t,g=>s(g)),p=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let g=function(x){if(p.paused||!l)return;const E=x.target;l.contains(E)?c.current=E:Pn(c.current,{select:!0})},C=function(x){if(p.paused||!l)return;const E=x.relatedTarget;E!==null&&(l.contains(E)||Pn(c.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Pn(l)};document.addEventListener("focusin",g),document.addEventListener("focusout",C);const m=new MutationObserver(v);return l&&m.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",C),m.disconnect()}}},[r,l,p.paused]),h.useEffect(()=>{if(l){op.add(p);const g=document.activeElement;if(!l.contains(g)){const v=new CustomEvent(Ds,np);l.addEventListener(Ds,u),l.dispatchEvent(v),v.defaultPrevented||(M5(B5(eg(l)),{select:!0}),document.activeElement===g&&Pn(l))}return()=>{l.removeEventListener(Ds,u),setTimeout(()=>{const v=new CustomEvent(Fs,np);l.addEventListener(Fs,f),l.dispatchEvent(v),v.defaultPrevented||Pn(g??document.body,{select:!0}),l.removeEventListener(Fs,f),op.remove(p)},0)}}},[l,u,f,p]);const y=h.useCallback(g=>{if(!n&&!r||p.paused)return;const C=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,v=document.activeElement;if(C&&v){const m=g.currentTarget,[x,E]=j5(m);x&&E?!g.shiftKey&&v===E?(g.preventDefault(),n&&Pn(x,{select:!0})):g.shiftKey&&v===x&&(g.preventDefault(),n&&Pn(E,{select:!0})):v===m&&g.preventDefault()}},[n,r,p.paused]);return h.createElement(fe.div,Y({tabIndex:-1},a,{ref:d,onKeyDown:y}))});function M5(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Pn(r,{select:t}),document.activeElement!==n)return}function j5(e){const t=eg(e),n=rp(t,e),r=rp(t.reverse(),e);return[n,r]}function eg(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function rp(e,t){for(const n of e)if(!D5(n,{upTo:t}))return n}function D5(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function F5(e){return e instanceof HTMLInputElement&&"select"in e}function Pn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&F5(e)&&t&&e.select()}}const op=z5();function z5(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ip(e,t),e.unshift(t)},remove(t){var n;e=ip(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function ip(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function B5(e){return e.filter(t=>t.tagName!=="A")}const tg=h.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?w0.createPortal(h.createElement(fe.div,Y({},o,{ref:t})),r):null});function U5(e,t){return h.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const _n=e=>{const{present:t,children:n}=e,r=H5(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),i=ze(r.ref,o.ref);return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:i}):null};_n.displayName="Presence";function H5(e){const[t,n]=h.useState(),r=h.useRef({}),o=h.useRef(e),i=h.useRef("none"),a=e?"mounted":"unmounted",[l,s]=U5(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const u=ga(r.current);i.current=l==="mounted"?u:"none"},[l]),gn(()=>{const u=r.current,f=o.current;if(f!==e){const d=i.current,p=ga(u);e?s("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(f&&d!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),gn(()=>{if(t){const u=c=>{const p=ga(r.current).includes(c.animationName);c.target===t&&p&&To.flushSync(()=>s("ANIMATION_END"))},f=c=>{c.target===t&&(i.current=ga(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:h.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function ga(e){return(e==null?void 0:e.animationName)||"none"}let zs=0;function ng(){h.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:ap()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:ap()),zs++,()=>{zs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),zs--}},[])}function ap(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var qt=function(){return qt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return a4;var t=l4(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},c4=ag(),lo="data-scroll-locked",u4=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return n===void 0&&(n="margin"),` .`.concat(W5,` { overflow: hidden `).concat(r,`; padding-right: `).concat(l,"px ").concat(r,`; @@ -102,16 +102,16 @@ Error generating stack: `+i.message+` body[`).concat(lo,`] { `).concat(K5,": ").concat(l,`px; } -`)},lp=function(){var e=parseInt(document.body.getAttribute(lo)||"0",10);return isFinite(e)?e:0},f4=function(){h.useEffect(function(){return document.body.setAttribute(lo,(lp()+1).toString()),function(){var e=lp()-1;e<=0?document.body.removeAttribute(lo):document.body.setAttribute(lo,e.toString())}},[])},d4=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;f4();var i=h.useMemo(function(){return s4(o)},[o]);return h.createElement(c4,{styles:u4(i,!t,o,n?"":"!important")})},cu=!1;if(typeof window<"u")try{var ya=Object.defineProperty({},"passive",{get:function(){return cu=!0,!0}});window.addEventListener("test",ya,ya),window.removeEventListener("test",ya,ya)}catch{cu=!1}var Mr=cu?{passive:!1}:!1,h4=function(e){return e.tagName==="TEXTAREA"},lg=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!h4(e)&&n[t]==="visible")},p4=function(e){return lg(e,"overflowY")},v4=function(e){return lg(e,"overflowX")},sp=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=sg(e,n);if(r){var o=cg(e,n),i=o[1],a=o[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},m4=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},g4=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},sg=function(e,t){return e==="v"?p4(t):v4(t)},cg=function(e,t){return e==="v"?m4(t):g4(t)},y4=function(e,t){return e==="h"&&t==="rtl"?-1:1},w4=function(e,t,n,r,o){var i=y4(e,window.getComputedStyle(t).direction),a=i*r,l=n.target,s=t.contains(l),u=!1,f=a>0,c=0,d=0;do{var p=cg(e,l),y=p[0],g=p[1],C=p[2],v=g-C-i*y;(y||v)&&sg(e,l)&&(c+=v,d+=y),l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(f&&(o&&c===0||!o&&a>c)||!f&&(o&&d===0||!o&&-a>d))&&(u=!0),u},wa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},cp=function(e){return[e.deltaX,e.deltaY]},up=function(e){return e&&"current"in e?e.current:e},x4=function(e,t){return e[0]===t[0]&&e[1]===t[1]},C4=function(e){return` +`)},sp=function(){var e=parseInt(document.body.getAttribute(lo)||"0",10);return isFinite(e)?e:0},f4=function(){h.useEffect(function(){return document.body.setAttribute(lo,(sp()+1).toString()),function(){var e=sp()-1;e<=0?document.body.removeAttribute(lo):document.body.setAttribute(lo,e.toString())}},[])},d4=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;f4();var i=h.useMemo(function(){return s4(o)},[o]);return h.createElement(c4,{styles:u4(i,!t,o,n?"":"!important")})},cu=!1;if(typeof window<"u")try{var ya=Object.defineProperty({},"passive",{get:function(){return cu=!0,!0}});window.addEventListener("test",ya,ya),window.removeEventListener("test",ya,ya)}catch{cu=!1}var Mr=cu?{passive:!1}:!1,h4=function(e){return e.tagName==="TEXTAREA"},lg=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!h4(e)&&n[t]==="visible")},p4=function(e){return lg(e,"overflowY")},v4=function(e){return lg(e,"overflowX")},cp=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=sg(e,n);if(r){var o=cg(e,n),i=o[1],a=o[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},m4=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},g4=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},sg=function(e,t){return e==="v"?p4(t):v4(t)},cg=function(e,t){return e==="v"?m4(t):g4(t)},y4=function(e,t){return e==="h"&&t==="rtl"?-1:1},w4=function(e,t,n,r,o){var i=y4(e,window.getComputedStyle(t).direction),a=i*r,l=n.target,s=t.contains(l),u=!1,f=a>0,c=0,d=0;do{var p=cg(e,l),y=p[0],g=p[1],C=p[2],v=g-C-i*y;(y||v)&&sg(e,l)&&(c+=v,d+=y),l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(f&&(o&&c===0||!o&&a>c)||!f&&(o&&d===0||!o&&-a>d))&&(u=!0),u},wa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},up=function(e){return[e.deltaX,e.deltaY]},fp=function(e){return e&&"current"in e?e.current:e},x4=function(e,t){return e[0]===t[0]&&e[1]===t[1]},C4=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},E4=0,jr=[];function _4(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(E4++)[0],i=h.useState(function(){return ag()})[0],a=h.useRef(e);h.useEffect(function(){a.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=V5([e.lockRef.current],(e.shards||[]).map(up),!0).filter(Boolean);return g.forEach(function(C){return C.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=h.useCallback(function(g,C){if("touches"in g&&g.touches.length===2)return!a.current.allowPinchZoom;var v=wa(g),m=n.current,x="deltaX"in g?g.deltaX:m[0]-v[0],E="deltaY"in g?g.deltaY:m[1]-v[1],S,_=g.target,b=Math.abs(x)>Math.abs(E)?"h":"v";if("touches"in g&&b==="h"&&_.type==="range")return!1;var $=sp(b,_);if(!$)return!0;if($?S=b:(S=b==="v"?"h":"v",$=sp(b,_)),!$)return!1;if(!r.current&&"changedTouches"in g&&(x||E)&&(r.current=S),!S)return!0;var T=r.current||S;return w4(T,C,g,T==="h"?x:E,!0)},[]),s=h.useCallback(function(g){var C=g;if(!(!jr.length||jr[jr.length-1]!==i)){var v="deltaY"in C?cp(C):wa(C),m=t.current.filter(function(S){return S.name===C.type&&S.target===C.target&&x4(S.delta,v)})[0];if(m&&m.should){C.cancelable&&C.preventDefault();return}if(!m){var x=(a.current.shards||[]).map(up).filter(Boolean).filter(function(S){return S.contains(C.target)}),E=x.length>0?l(C,x[0]):!a.current.noIsolation;E&&C.cancelable&&C.preventDefault()}}},[]),u=h.useCallback(function(g,C,v,m){var x={name:g,delta:C,target:v,should:m};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(E){return E!==x})},1)},[]),f=h.useCallback(function(g){n.current=wa(g),r.current=void 0},[]),c=h.useCallback(function(g){u(g.type,cp(g),g.target,l(g,e.lockRef.current))},[]),d=h.useCallback(function(g){u(g.type,wa(g),g.target,l(g,e.lockRef.current))},[]);h.useEffect(function(){return jr.push(i),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:d}),document.addEventListener("wheel",s,Mr),document.addEventListener("touchmove",s,Mr),document.addEventListener("touchstart",f,Mr),function(){jr=jr.filter(function(g){return g!==i}),document.removeEventListener("wheel",s,Mr),document.removeEventListener("touchmove",s,Mr),document.removeEventListener("touchstart",f,Mr)}},[]);var p=e.removeScrollBar,y=e.inert;return h.createElement(h.Fragment,null,y?h.createElement(i,{styles:C4(o)}):null,p?h.createElement(d4,{gapMode:"margin"}):null)}const S4=q5(ig,_4);var ug=h.forwardRef(function(e,t){return h.createElement(Vl,qt({},e,{ref:t,sideCar:S4}))});ug.classNames=Vl.classNames;const fg=ug;var b4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Dr=new WeakMap,xa=new WeakMap,Ca={},Vs=0,dg=function(e){return e&&(e.host||dg(e.parentNode))},$4=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=dg(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},T4=function(e,t,n,r){var o=$4(t,Array.isArray(e)?e:[e]);Ca[n]||(Ca[n]=new WeakMap);var i=Ca[n],a=[],l=new Set,s=new Set(o),u=function(c){!c||l.has(c)||(l.add(c),u(c.parentNode))};o.forEach(u);var f=function(c){!c||s.has(c)||Array.prototype.forEach.call(c.children,function(d){if(l.has(d))f(d);else try{var p=d.getAttribute(r),y=p!==null&&p!=="false",g=(Dr.get(d)||0)+1,C=(i.get(d)||0)+1;Dr.set(d,g),i.set(d,C),a.push(d),g===1&&y&&xa.set(d,!0),C===1&&d.setAttribute(n,"true"),y||d.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",d,v)}})};return f(t),l.clear(),Vs++,function(){a.forEach(function(c){var d=Dr.get(c)-1,p=i.get(c)-1;Dr.set(c,d),i.set(c,p),d||(xa.has(c)||c.removeAttribute(r),xa.delete(c)),p||c.removeAttribute(n)}),Vs--,Vs||(Dr=new WeakMap,Dr=new WeakMap,xa=new WeakMap,Ca={})}},hg=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||b4(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),T4(r,o,n,"aria-hidden")):function(){return null}};const pg="Dialog",[vg,e$]=En(pg),[k4,Sn]=vg(pg),R4=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,l=h.useRef(null),s=h.useRef(null),[u=!1,f]=rr({prop:r,defaultProp:o,onChange:i});return h.createElement(k4,{scope:t,triggerRef:l,contentRef:s,contentId:rn(),titleId:rn(),descriptionId:rn(),open:u,onOpenChange:f,onOpenToggle:h.useCallback(()=>f(c=>!c),[f]),modal:a},n)},N4="DialogTrigger",P4=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Sn(N4,n),i=ze(t,o.triggerRef);return h.createElement(fe.button,Y({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Hf(o.open)},r,{ref:i,onClick:ae(e.onClick,o.onOpenToggle)}))}),mg="DialogPortal",[A4,gg]=vg(mg,{forceMount:void 0}),O4=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Sn(mg,t);return h.createElement(A4,{scope:t,forceMount:n},h.Children.map(r,a=>h.createElement(_n,{present:n||i.open},h.createElement(tg,{asChild:!0,container:o},a))))},uu="DialogOverlay",I4=h.forwardRef((e,t)=>{const n=gg(uu,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Sn(uu,e.__scopeDialog);return i.modal?h.createElement(_n,{present:r||i.open},h.createElement(L4,Y({},o,{ref:t}))):null}),L4=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Sn(uu,n);return h.createElement(fg,{as:Co,allowPinchZoom:!0,shards:[o.contentRef]},h.createElement(fe.div,Y({"data-state":Hf(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Ai="DialogContent",M4=h.forwardRef((e,t)=>{const n=gg(Ai,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Sn(Ai,e.__scopeDialog);return h.createElement(_n,{present:r||i.open},i.modal?h.createElement(j4,Y({},o,{ref:t})):h.createElement(D4,Y({},o,{ref:t})))}),j4=h.forwardRef((e,t)=>{const n=Sn(Ai,e.__scopeDialog),r=h.useRef(null),o=ze(t,n.contentRef,r);return h.useEffect(()=>{const i=r.current;if(i)return hg(i)},[]),h.createElement(yg,Y({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ae(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:ae(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&i.preventDefault()}),onFocusOutside:ae(e.onFocusOutside,i=>i.preventDefault())}))}),D4=h.forwardRef((e,t)=>{const n=Sn(Ai,e.__scopeDialog),r=h.useRef(!1),o=h.useRef(!1);return h.createElement(yg,Y({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,i),!i.defaultPrevented){var l;r.current||(l=n.triggerRef.current)===null||l===void 0||l.focus(),i.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:i=>{var a,l;(a=e.onInteractOutside)===null||a===void 0||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((l=n.triggerRef.current)===null||l===void 0?void 0:l.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),yg=h.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,l=Sn(Ai,n),s=h.useRef(null),u=ze(t,s);return ng(),h.createElement(h.Fragment,null,h.createElement(q0,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},h.createElement(Uf,Y({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Hf(l.open)},a,{ref:u,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),F4="DialogTitle",z4=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Sn(F4,n);return h.createElement(fe.h2,Y({id:o.titleId},r,{ref:t}))});function Hf(e){return e?"open":"closed"}const wg=R4,xg=P4,B4=O4,U4=I4,H4=M4,V4=z4;var pe=function(){return pe=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Le(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i}var Y4="ENTRIES",Cg="KEYS",Eg="VALUES",Qe="",Ws=function(){function e(t,n){var r=t._tree,o=Array.from(r.keys());this.set=t,this._type=n,this._path=o.length>0?[{node:r,keys:o}]:[]}return e.prototype.next=function(){var t=this.dive();return this.backtrack(),t},e.prototype.dive=function(){if(this._path.length===0)return{done:!0,value:void 0};var t=Fr(this._path),n=t.node,r=t.keys;if(Fr(r)===Qe)return{done:!1,value:this.result()};var o=n.get(Fr(r));return this._path.push({node:o,keys:Array.from(o.keys())}),this.dive()},e.prototype.backtrack=function(){if(this._path.length!==0){var t=Fr(this._path).keys;t.pop(),!(t.length>0)&&(this._path.pop(),this.backtrack())}},e.prototype.key=function(){return this.set._prefix+this._path.map(function(t){var n=t.keys;return Fr(n)}).filter(function(t){return t!==Qe}).join("")},e.prototype.value=function(){return Fr(this._path).node.get(Qe)},e.prototype.result=function(){switch(this._type){case Eg:return this.value();case Cg:return this.key();default:return[this.key(),this.value()]}},e.prototype[Symbol.iterator]=function(){return this},e}(),Fr=function(e){return e[e.length-1]},G4=function(e,t,n){var r=new Map;if(t===void 0)return r;for(var o=t.length+1,i=o+n,a=new Uint8Array(i*o).fill(n+1),l=0;ln)continue e}_g(e.get(p),t,n,r,o,g,a,l+p)}}}catch(D){s={error:D}}finally{try{d&&!d.done&&(u=c.return)&&u.call(c)}finally{if(s)throw s.error}}},Ks=function(){function e(t,n){t===void 0&&(t=new Map),n===void 0&&(n=""),this._size=void 0,this._tree=t,this._prefix=n}return e.prototype.atPrefix=function(t){var n,r;if(!t.startsWith(this._prefix))throw new Error("Mismatched prefix");var o=Le(gl(this._tree,t.slice(this._prefix.length)),2),i=o[0],a=o[1];if(i===void 0){var l=Le(Vf(a),2),s=l[0],u=l[1];try{for(var f=ne(s.keys()),c=f.next();!c.done;c=f.next()){var d=c.value;if(d!==Qe&&d.startsWith(u)){var p=new Map;return p.set(d.slice(u.length),s.get(d)),new e(p,t)}}}catch(y){n={error:y}}finally{try{c&&!c.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}}return new e(i,t)},e.prototype.clear=function(){this._size=void 0,this._tree.clear()},e.prototype.delete=function(t){return this._size=void 0,Q4(this._tree,t)},e.prototype.entries=function(){return new Ws(this,Y4)},e.prototype.forEach=function(t){var n,r;try{for(var o=ne(this),i=o.next();!i.done;i=o.next()){var a=Le(i.value,2),l=a[0],s=a[1];t(l,s,this)}}catch(u){n={error:u}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.fuzzyGet=function(t,n){return G4(this._tree,t,n)},e.prototype.get=function(t){var n=fu(this._tree,t);return n!==void 0?n.get(Qe):void 0},e.prototype.has=function(t){var n=fu(this._tree,t);return n!==void 0&&n.has(Qe)},e.prototype.keys=function(){return new Ws(this,Cg)},e.prototype.set=function(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;var r=Ys(this._tree,t);return r.set(Qe,n),this},Object.defineProperty(e.prototype,"size",{get:function(){if(this._size)return this._size;this._size=0;for(var t=this.entries();!t.next().done;)this._size+=1;return this._size},enumerable:!1,configurable:!0}),e.prototype.update=function(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;var r=Ys(this._tree,t);return r.set(Qe,n(r.get(Qe))),this},e.prototype.fetch=function(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;var r=Ys(this._tree,t),o=r.get(Qe);return o===void 0&&r.set(Qe,o=n()),o},e.prototype.values=function(){return new Ws(this,Eg)},e.prototype[Symbol.iterator]=function(){return this.entries()},e.from=function(t){var n,r,o=new e;try{for(var i=ne(t),a=i.next();!a.done;a=i.next()){var l=Le(a.value,2),s=l[0],u=l[1];o.set(s,u)}}catch(f){n={error:f}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o},e.fromObject=function(t){return e.from(Object.entries(t))},e}(),gl=function(e,t,n){var r,o;if(n===void 0&&(n=[]),t.length===0||e==null)return[e,n];try{for(var i=ne(e.keys()),a=i.next();!a.done;a=i.next()){var l=a.value;if(l!==Qe&&t.startsWith(l))return n.push([e,l]),gl(e.get(l),t.slice(l.length),n)}}catch(s){r={error:s}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return n.push([e,t]),gl(void 0,"",n)},fu=function(e,t){var n,r;if(t.length===0||e==null)return e;try{for(var o=ne(e.keys()),i=o.next();!i.done;i=o.next()){var a=i.value;if(a!==Qe&&t.startsWith(a))return fu(e.get(a),t.slice(a.length))}}catch(l){n={error:l}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},Ys=function(e,t){var n,r,o=t.length;e:for(var i=0;e&&i0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new Ks,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}},e.prototype.discard=function(t){var n=this,r=this._idToShortId.get(t);if(r==null)throw new Error("MiniSearch: cannot discard document with ID ".concat(t,": it is not in the index"));this._idToShortId.delete(t),this._documentIds.delete(r),this._storedFields.delete(r),(this._fieldLength.get(r)||[]).forEach(function(o,i){n.removeFieldLength(r,i,n._documentCount,o)}),this._fieldLength.delete(r),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()},e.prototype.maybeAutoVacuum=function(){if(this._options.autoVacuum!==!1){var t=this._options.autoVacuum,n=t.minDirtFactor,r=t.minDirtCount,o=t.batchSize,i=t.batchWait;this.conditionalVacuum({batchSize:o,batchWait:i},{minDirtCount:r,minDirtFactor:n})}},e.prototype.discardAll=function(t){var n,r,o=this._options.autoVacuum;try{this._options.autoVacuum=!1;try{for(var i=ne(t),a=i.next();!a.done;a=i.next()){var l=a.value;this.discard(l)}}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}finally{this._options.autoVacuum=o}this.maybeAutoVacuum()},e.prototype.replace=function(t){var n=this._options,r=n.idField,o=n.extractField,i=o(t,r);this.discard(i),this.add(t)},e.prototype.vacuum=function(t){return t===void 0&&(t={}),this.conditionalVacuum(t)},e.prototype.conditionalVacuum=function(t,n){var r=this;return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&n,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(function(){var o=r._enqueuedVacuumConditions;return r._enqueuedVacuumConditions=hu,r.performVacuuming(t,o)}),this._enqueuedVacuum)):this.vacuumConditionsMet(n)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(t),this._currentVacuum)},e.prototype.performVacuuming=function(t,n){return W4(this,void 0,void 0,function(){var r,o,i,a,l,s,u,f,c,d,p,y,g,C,v,m,x,E,S,_,b,$,T,P,j;return K4(this,function(L){switch(L.label){case 0:if(r=this._dirtCount,!this.vacuumConditionsMet(n))return[3,10];o=t.batchSize||du.batchSize,i=t.batchWait||du.batchWait,a=1,L.label=1;case 1:L.trys.push([1,7,8,9]),l=ne(this._index),s=l.next(),L.label=2;case 2:if(s.done)return[3,6];u=Le(s.value,2),f=u[0],c=u[1];try{for(d=($=void 0,ne(c)),p=d.next();!p.done;p=d.next()){y=Le(p.value,2),g=y[0],C=y[1];try{for(v=(P=void 0,ne(C)),m=v.next();!m.done;m=v.next())x=Le(m.value,1),E=x[0],!this._documentIds.has(E)&&(C.size<=1?c.delete(g):C.delete(E))}catch(D){P={error:D}}finally{try{m&&!m.done&&(j=v.return)&&j.call(v)}finally{if(P)throw P.error}}}}catch(D){$={error:D}}finally{try{p&&!p.done&&(T=d.return)&&T.call(d)}finally{if($)throw $.error}}return this._index.get(f).size===0&&this._index.delete(f),a%o!==0?[3,4]:[4,new Promise(function(D){return setTimeout(D,i)})];case 3:L.sent(),L.label=4;case 4:a+=1,L.label=5;case 5:return s=l.next(),[3,2];case 6:return[3,9];case 7:return S=L.sent(),_={error:S},[3,9];case 8:try{s&&!s.done&&(b=l.return)&&b.call(l)}finally{if(_)throw _.error}return[7];case 9:this._dirtCount-=r,L.label=10;case 10:return[4,null];case 11:return L.sent(),this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null,[2]}})})},e.prototype.vacuumConditionsMet=function(t){if(t==null)return!0;var n=t.minDirtCount,r=t.minDirtFactor;return n=n||Zs.minDirtCount,r=r||Zs.minDirtFactor,this.dirtCount>=n&&this.dirtFactor>=r},Object.defineProperty(e.prototype,"isVacuuming",{get:function(){return this._currentVacuum!=null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dirtCount",{get:function(){return this._dirtCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dirtFactor",{get:function(){return this._dirtCount/(1+this._documentCount+this._dirtCount)},enumerable:!1,configurable:!0}),e.prototype.has=function(t){return this._idToShortId.has(t)},e.prototype.getStoredFields=function(t){var n=this._idToShortId.get(t);if(n!=null)return this._storedFields.get(n)},e.prototype.search=function(t,n){var r,o;n===void 0&&(n={});var i=this.executeQuery(t,n),a=[];try{for(var l=ne(i),s=l.next();!s.done;s=l.next()){var u=Le(s.value,2),f=u[0],c=u[1],d=c.score,p=c.terms,y=c.match,g=p.length||1,C={id:this._documentIds.get(f),score:d*g,terms:Object.keys(y),queryTerms:p,match:y};Object.assign(C,this._storedFields.get(f)),(n.filter==null||n.filter(C))&&a.push(C)}}catch(v){r={error:v}}finally{try{s&&!s.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}return t===e.wildcard&&n.boostDocument==null&&this._options.searchOptions.boostDocument==null||a.sort(hp),a},e.prototype.autoSuggest=function(t,n){var r,o,i,a;n===void 0&&(n={}),n=pe(pe({},this._options.autoSuggestOptions),n);var l=new Map;try{for(var s=ne(this.search(t,n)),u=s.next();!u.done;u=s.next()){var f=u.value,c=f.score,d=f.terms,p=d.join(" "),y=l.get(p);y!=null?(y.score+=c,y.count+=1):l.set(p,{score:c,terms:d,count:1})}}catch(S){r={error:S}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}var g=[];try{for(var C=ne(l),v=C.next();!v.done;v=C.next()){var m=Le(v.value,2),y=m[0],x=m[1],c=x.score,d=x.terms,E=x.count;g.push({suggestion:y,terms:d,score:c/E})}}catch(S){i={error:S}}finally{try{v&&!v.done&&(a=C.return)&&a.call(C)}finally{if(i)throw i.error}}return g.sort(hp),g},Object.defineProperty(e.prototype,"documentCount",{get:function(){return this._documentCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"termCount",{get:function(){return this._index.size},enumerable:!1,configurable:!0}),e.loadJSON=function(t,n){if(n==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(t),n)},e.getDefault=function(t){if(Qs.hasOwnProperty(t))return Gs(Qs,t);throw new Error('MiniSearch: unknown option "'.concat(t,'"'))},e.loadJS=function(t,n){var r,o,i,a,l,s,u=t.index,f=t.documentCount,c=t.nextId,d=t.documentIds,p=t.fieldIds,y=t.fieldLength,g=t.averageFieldLength,C=t.storedFields,v=t.dirtCount,m=t.serializationVersion;if(m!==1&&m!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");var x=new e(n);x._documentCount=f,x._nextId=c,x._documentIds=Ea(d),x._idToShortId=new Map,x._fieldIds=p,x._fieldLength=Ea(y),x._avgFieldLength=g,x._storedFields=Ea(C),x._dirtCount=v||0,x._index=new Ks;try{for(var E=ne(x._documentIds),S=E.next();!S.done;S=E.next()){var _=Le(S.value,2),b=_[0],$=_[1];x._idToShortId.set($,b)}}catch(F){r={error:F}}finally{try{S&&!S.done&&(o=E.return)&&o.call(E)}finally{if(r)throw r.error}}try{for(var T=ne(u),P=T.next();!P.done;P=T.next()){var j=Le(P.value,2),L=j[0],D=j[1],N=new Map;try{for(var z=(l=void 0,ne(Object.keys(D))),V=z.next();!V.done;V=z.next()){var U=V.value,O=D[U];m===1&&(O=O.ds),N.set(parseInt(U,10),Ea(O))}}catch(F){l={error:F}}finally{try{V&&!V.done&&(s=z.return)&&s.call(z)}finally{if(l)throw l.error}}x._index.set(L,N)}}catch(F){i={error:F}}finally{try{P&&!P.done&&(a=T.return)&&a.call(T)}finally{if(i)throw i.error}}return x},e.prototype.executeQuery=function(t,n){var r=this;if(n===void 0&&(n={}),t===e.wildcard)return this.executeWildcardQuery(n);if(typeof t!="string"){var o=pe(pe(pe({},n),t),{queries:void 0}),i=t.queries.map(function(C){return r.executeQuery(C,o)});return this.combineResults(i,o.combineWith)}var a=this._options,l=a.tokenize,s=a.processTerm,u=a.searchOptions,f=pe(pe({tokenize:l,processTerm:s},u),n),c=f.tokenize,d=f.processTerm,p=c(t).flatMap(function(C){return d(C)}).filter(function(C){return!!C}),y=p.map(t7(f)),g=y.map(function(C){return r.executeQuerySpec(C,f)});return this.combineResults(g,f.combineWith)},e.prototype.executeQuerySpec=function(t,n){var r,o,i,a,l=pe(pe({},this._options.searchOptions),n),s=(l.fields||this._options.fields).reduce(function(U,O){var F;return pe(pe({},U),(F={},F[O]=Gs(l.boost,O)||1,F))},{}),u=l.boostDocument,f=l.weights,c=l.maxFuzzy,d=l.bm25,p=pe(pe({},fp.weights),f),y=p.fuzzy,g=p.prefix,C=this._index.get(t.term),v=this.termResults(t.term,t.term,1,C,s,u,d),m,x;if(t.prefix&&(m=this._index.atPrefix(t.term)),t.fuzzy){var E=t.fuzzy===!0?.2:t.fuzzy,S=E<1?Math.min(c,Math.round(t.term.length*E)):E;S&&(x=this._index.fuzzyGet(t.term,S))}if(m)try{for(var _=ne(m),b=_.next();!b.done;b=_.next()){var $=Le(b.value,2),T=$[0],P=$[1],j=T.length-t.term.length;if(j){x==null||x.delete(T);var L=g*T.length/(T.length+.3*j);this.termResults(t.term,T,L,P,s,u,d,v)}}}catch(U){r={error:U}}finally{try{b&&!b.done&&(o=_.return)&&o.call(_)}finally{if(r)throw r.error}}if(x)try{for(var D=ne(x.keys()),N=D.next();!N.done;N=D.next()){var T=N.value,z=Le(x.get(T),2),V=z[0],j=z[1];if(j){var L=y*T.length/(T.length+j);this.termResults(t.term,T,L,V,s,u,d,v)}}}catch(U){i={error:U}}finally{try{N&&!N.done&&(a=D.return)&&a.call(D)}finally{if(i)throw i.error}}return v},e.prototype.executeWildcardQuery=function(t){var n,r,o=new Map,i=pe(pe({},this._options.searchOptions),t);try{for(var a=ne(this._documentIds),l=a.next();!l.done;l=a.next()){var s=Le(l.value,2),u=s[0],f=s[1],c=i.boostDocument?i.boostDocument(f,"",this._storedFields.get(u)):1;o.set(u,{score:c,terms:[],match:{}})}}catch(d){n={error:d}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o},e.prototype.combineResults=function(t,n){if(n===void 0&&(n=Wf),t.length===0)return new Map;var r=n.toLowerCase();return t.reduce(J4[r])||new Map},e.prototype.toJSON=function(){var t,n,r,o,i=[];try{for(var a=ne(this._index),l=a.next();!l.done;l=a.next()){var s=Le(l.value,2),u=s[0],f=s[1],c={};try{for(var d=(r=void 0,ne(f)),p=d.next();!p.done;p=d.next()){var y=Le(p.value,2),g=y[0],C=y[1];c[g]=Object.fromEntries(C)}}catch(v){r={error:v}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}i.push([u,c])}}catch(v){t={error:v}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:i,serializationVersion:2}},e.prototype.termResults=function(t,n,r,o,i,a,l,s){var u,f,c,d,p;if(s===void 0&&(s=new Map),o==null)return s;try{for(var y=ne(Object.keys(i)),g=y.next();!g.done;g=y.next()){var C=g.value,v=i[C],m=this._fieldIds[C],x=o.get(m);if(x!=null){var E=x.size,S=this._avgFieldLength[m];try{for(var _=(c=void 0,ne(x.keys())),b=_.next();!b.done;b=_.next()){var $=b.value;if(!this._documentIds.has($)){this.removeTerm(m,$,n),E-=1;continue}var T=a?a(this._documentIds.get($),n,this._storedFields.get($)):1;if(T){var P=x.get($),j=this._fieldLength.get($)[m],L=e7(P,E,this._documentCount,j,S,l),D=r*v*T*L,N=s.get($);if(N){N.score+=D,r7(N.terms,t);var z=Gs(N.match,n);z?z.push(C):N.match[n]=[C]}else s.set($,{score:D,terms:[t],match:(p={},p[n]=[C],p)})}}}catch(V){c={error:V}}finally{try{b&&!b.done&&(d=_.return)&&d.call(_)}finally{if(c)throw c.error}}}}}catch(V){u={error:V}}finally{try{g&&!g.done&&(f=y.return)&&f.call(y)}finally{if(u)throw u.error}}return s},e.prototype.addTerm=function(t,n,r){var o=this._index.fetch(r,pp),i=o.get(t);if(i==null)i=new Map,i.set(n,1),o.set(t,i);else{var a=i.get(n);i.set(n,(a||0)+1)}},e.prototype.removeTerm=function(t,n,r){if(!this._index.has(r)){this.warnDocumentChanged(n,t,r);return}var o=this._index.fetch(r,pp),i=o.get(t);i==null||i.get(n)==null?this.warnDocumentChanged(n,t,r):i.get(n)<=1?i.size<=1?o.delete(t):i.delete(n):i.set(n,i.get(n)-1),this._index.get(r).size===0&&this._index.delete(r)},e.prototype.warnDocumentChanged=function(t,n,r){var o,i;try{for(var a=ne(Object.keys(this._fieldIds)),l=a.next();!l.done;l=a.next()){var s=l.value;if(this._fieldIds[s]===n){this._options.logger("warn","MiniSearch: document with ID ".concat(this._documentIds.get(t),' has changed before removal: term "').concat(r,'" was not present in field "').concat(s,'". Removing a document after it has changed can corrupt the index!'),"version_conflict");return}}}catch(u){o={error:u}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}},e.prototype.addDocumentId=function(t){var n=this._nextId;return this._idToShortId.set(t,n),this._documentIds.set(n,t),this._documentCount+=1,this._nextId+=1,n},e.prototype.addFields=function(t){for(var n=0;nJSON.stringify(await(await fetch("/polkadot-api-docs/.vocs/search-index-8794b762.json")).json());let Xs;function Tg(){const[e,t]=h.useState();return h.useEffect(()=>{(async()=>{Xs||(Xs=i7());const n=await Xs,r=X4.loadJSON(n,{fields:["title","titles","text"],searchOptions:{boost:{title:4,text:2,titles:1},fuzzy:.2,prefix:!0},storeFields:["href","html","isPage","text","title","titles"]});t(r)})()},[]),h.useEffect(()=>{},[]),e}var a7="vocs_DesktopSearch_search",l7="vocs_DesktopSearch_searchCommand";const s7=h.forwardRef((e,t)=>h.createElement(fe.label,Y({},e,{ref:t,onMouseDown:n=>{var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),c7=s7;var kg={exports:{}};/*!*************************************************** +`)},E4=0,jr=[];function _4(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(E4++)[0],i=h.useState(function(){return ag()})[0],a=h.useRef(e);h.useEffect(function(){a.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=V5([e.lockRef.current],(e.shards||[]).map(fp),!0).filter(Boolean);return g.forEach(function(C){return C.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=h.useCallback(function(g,C){if("touches"in g&&g.touches.length===2)return!a.current.allowPinchZoom;var v=wa(g),m=n.current,x="deltaX"in g?g.deltaX:m[0]-v[0],E="deltaY"in g?g.deltaY:m[1]-v[1],S,_=g.target,b=Math.abs(x)>Math.abs(E)?"h":"v";if("touches"in g&&b==="h"&&_.type==="range")return!1;var $=cp(b,_);if(!$)return!0;if($?S=b:(S=b==="v"?"h":"v",$=cp(b,_)),!$)return!1;if(!r.current&&"changedTouches"in g&&(x||E)&&(r.current=S),!S)return!0;var T=r.current||S;return w4(T,C,g,T==="h"?x:E,!0)},[]),s=h.useCallback(function(g){var C=g;if(!(!jr.length||jr[jr.length-1]!==i)){var v="deltaY"in C?up(C):wa(C),m=t.current.filter(function(S){return S.name===C.type&&S.target===C.target&&x4(S.delta,v)})[0];if(m&&m.should){C.cancelable&&C.preventDefault();return}if(!m){var x=(a.current.shards||[]).map(fp).filter(Boolean).filter(function(S){return S.contains(C.target)}),E=x.length>0?l(C,x[0]):!a.current.noIsolation;E&&C.cancelable&&C.preventDefault()}}},[]),u=h.useCallback(function(g,C,v,m){var x={name:g,delta:C,target:v,should:m};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(E){return E!==x})},1)},[]),f=h.useCallback(function(g){n.current=wa(g),r.current=void 0},[]),c=h.useCallback(function(g){u(g.type,up(g),g.target,l(g,e.lockRef.current))},[]),d=h.useCallback(function(g){u(g.type,wa(g),g.target,l(g,e.lockRef.current))},[]);h.useEffect(function(){return jr.push(i),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:d}),document.addEventListener("wheel",s,Mr),document.addEventListener("touchmove",s,Mr),document.addEventListener("touchstart",f,Mr),function(){jr=jr.filter(function(g){return g!==i}),document.removeEventListener("wheel",s,Mr),document.removeEventListener("touchmove",s,Mr),document.removeEventListener("touchstart",f,Mr)}},[]);var p=e.removeScrollBar,y=e.inert;return h.createElement(h.Fragment,null,y?h.createElement(i,{styles:C4(o)}):null,p?h.createElement(d4,{gapMode:"margin"}):null)}const S4=q5(ig,_4);var ug=h.forwardRef(function(e,t){return h.createElement(Vl,qt({},e,{ref:t,sideCar:S4}))});ug.classNames=Vl.classNames;const fg=ug;var b4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Dr=new WeakMap,xa=new WeakMap,Ca={},Vs=0,dg=function(e){return e&&(e.host||dg(e.parentNode))},$4=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=dg(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},T4=function(e,t,n,r){var o=$4(t,Array.isArray(e)?e:[e]);Ca[n]||(Ca[n]=new WeakMap);var i=Ca[n],a=[],l=new Set,s=new Set(o),u=function(c){!c||l.has(c)||(l.add(c),u(c.parentNode))};o.forEach(u);var f=function(c){!c||s.has(c)||Array.prototype.forEach.call(c.children,function(d){if(l.has(d))f(d);else try{var p=d.getAttribute(r),y=p!==null&&p!=="false",g=(Dr.get(d)||0)+1,C=(i.get(d)||0)+1;Dr.set(d,g),i.set(d,C),a.push(d),g===1&&y&&xa.set(d,!0),C===1&&d.setAttribute(n,"true"),y||d.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",d,v)}})};return f(t),l.clear(),Vs++,function(){a.forEach(function(c){var d=Dr.get(c)-1,p=i.get(c)-1;Dr.set(c,d),i.set(c,p),d||(xa.has(c)||c.removeAttribute(r),xa.delete(c)),p||c.removeAttribute(n)}),Vs--,Vs||(Dr=new WeakMap,Dr=new WeakMap,xa=new WeakMap,Ca={})}},hg=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||b4(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),T4(r,o,n,"aria-hidden")):function(){return null}};const pg="Dialog",[vg,e$]=En(pg),[k4,Sn]=vg(pg),R4=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,l=h.useRef(null),s=h.useRef(null),[u=!1,f]=rr({prop:r,defaultProp:o,onChange:i});return h.createElement(k4,{scope:t,triggerRef:l,contentRef:s,contentId:rn(),titleId:rn(),descriptionId:rn(),open:u,onOpenChange:f,onOpenToggle:h.useCallback(()=>f(c=>!c),[f]),modal:a},n)},N4="DialogTrigger",P4=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Sn(N4,n),i=ze(t,o.triggerRef);return h.createElement(fe.button,Y({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Vf(o.open)},r,{ref:i,onClick:ae(e.onClick,o.onOpenToggle)}))}),mg="DialogPortal",[A4,gg]=vg(mg,{forceMount:void 0}),O4=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Sn(mg,t);return h.createElement(A4,{scope:t,forceMount:n},h.Children.map(r,a=>h.createElement(_n,{present:n||i.open},h.createElement(tg,{asChild:!0,container:o},a))))},uu="DialogOverlay",I4=h.forwardRef((e,t)=>{const n=gg(uu,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Sn(uu,e.__scopeDialog);return i.modal?h.createElement(_n,{present:r||i.open},h.createElement(L4,Y({},o,{ref:t}))):null}),L4=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Sn(uu,n);return h.createElement(fg,{as:Co,allowPinchZoom:!0,shards:[o.contentRef]},h.createElement(fe.div,Y({"data-state":Vf(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Ai="DialogContent",M4=h.forwardRef((e,t)=>{const n=gg(Ai,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Sn(Ai,e.__scopeDialog);return h.createElement(_n,{present:r||i.open},i.modal?h.createElement(j4,Y({},o,{ref:t})):h.createElement(D4,Y({},o,{ref:t})))}),j4=h.forwardRef((e,t)=>{const n=Sn(Ai,e.__scopeDialog),r=h.useRef(null),o=ze(t,n.contentRef,r);return h.useEffect(()=>{const i=r.current;if(i)return hg(i)},[]),h.createElement(yg,Y({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ae(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:ae(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&i.preventDefault()}),onFocusOutside:ae(e.onFocusOutside,i=>i.preventDefault())}))}),D4=h.forwardRef((e,t)=>{const n=Sn(Ai,e.__scopeDialog),r=h.useRef(!1),o=h.useRef(!1);return h.createElement(yg,Y({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,i),!i.defaultPrevented){var l;r.current||(l=n.triggerRef.current)===null||l===void 0||l.focus(),i.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:i=>{var a,l;(a=e.onInteractOutside)===null||a===void 0||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((l=n.triggerRef.current)===null||l===void 0?void 0:l.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),yg=h.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,l=Sn(Ai,n),s=h.useRef(null),u=ze(t,s);return ng(),h.createElement(h.Fragment,null,h.createElement(q0,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},h.createElement(Hf,Y({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Vf(l.open)},a,{ref:u,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),F4="DialogTitle",z4=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Sn(F4,n);return h.createElement(fe.h2,Y({id:o.titleId},r,{ref:t}))});function Vf(e){return e?"open":"closed"}const wg=R4,xg=P4,B4=O4,U4=I4,H4=M4,V4=z4;var pe=function(){return pe=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Le(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i}var Y4="ENTRIES",Cg="KEYS",Eg="VALUES",Qe="",Ws=function(){function e(t,n){var r=t._tree,o=Array.from(r.keys());this.set=t,this._type=n,this._path=o.length>0?[{node:r,keys:o}]:[]}return e.prototype.next=function(){var t=this.dive();return this.backtrack(),t},e.prototype.dive=function(){if(this._path.length===0)return{done:!0,value:void 0};var t=Fr(this._path),n=t.node,r=t.keys;if(Fr(r)===Qe)return{done:!1,value:this.result()};var o=n.get(Fr(r));return this._path.push({node:o,keys:Array.from(o.keys())}),this.dive()},e.prototype.backtrack=function(){if(this._path.length!==0){var t=Fr(this._path).keys;t.pop(),!(t.length>0)&&(this._path.pop(),this.backtrack())}},e.prototype.key=function(){return this.set._prefix+this._path.map(function(t){var n=t.keys;return Fr(n)}).filter(function(t){return t!==Qe}).join("")},e.prototype.value=function(){return Fr(this._path).node.get(Qe)},e.prototype.result=function(){switch(this._type){case Eg:return this.value();case Cg:return this.key();default:return[this.key(),this.value()]}},e.prototype[Symbol.iterator]=function(){return this},e}(),Fr=function(e){return e[e.length-1]},G4=function(e,t,n){var r=new Map;if(t===void 0)return r;for(var o=t.length+1,i=o+n,a=new Uint8Array(i*o).fill(n+1),l=0;ln)continue e}_g(e.get(p),t,n,r,o,g,a,l+p)}}}catch(D){s={error:D}}finally{try{d&&!d.done&&(u=c.return)&&u.call(c)}finally{if(s)throw s.error}}},Ks=function(){function e(t,n){t===void 0&&(t=new Map),n===void 0&&(n=""),this._size=void 0,this._tree=t,this._prefix=n}return e.prototype.atPrefix=function(t){var n,r;if(!t.startsWith(this._prefix))throw new Error("Mismatched prefix");var o=Le(gl(this._tree,t.slice(this._prefix.length)),2),i=o[0],a=o[1];if(i===void 0){var l=Le(Wf(a),2),s=l[0],u=l[1];try{for(var f=ne(s.keys()),c=f.next();!c.done;c=f.next()){var d=c.value;if(d!==Qe&&d.startsWith(u)){var p=new Map;return p.set(d.slice(u.length),s.get(d)),new e(p,t)}}}catch(y){n={error:y}}finally{try{c&&!c.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}}return new e(i,t)},e.prototype.clear=function(){this._size=void 0,this._tree.clear()},e.prototype.delete=function(t){return this._size=void 0,Q4(this._tree,t)},e.prototype.entries=function(){return new Ws(this,Y4)},e.prototype.forEach=function(t){var n,r;try{for(var o=ne(this),i=o.next();!i.done;i=o.next()){var a=Le(i.value,2),l=a[0],s=a[1];t(l,s,this)}}catch(u){n={error:u}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.fuzzyGet=function(t,n){return G4(this._tree,t,n)},e.prototype.get=function(t){var n=fu(this._tree,t);return n!==void 0?n.get(Qe):void 0},e.prototype.has=function(t){var n=fu(this._tree,t);return n!==void 0&&n.has(Qe)},e.prototype.keys=function(){return new Ws(this,Cg)},e.prototype.set=function(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;var r=Ys(this._tree,t);return r.set(Qe,n),this},Object.defineProperty(e.prototype,"size",{get:function(){if(this._size)return this._size;this._size=0;for(var t=this.entries();!t.next().done;)this._size+=1;return this._size},enumerable:!1,configurable:!0}),e.prototype.update=function(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;var r=Ys(this._tree,t);return r.set(Qe,n(r.get(Qe))),this},e.prototype.fetch=function(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;var r=Ys(this._tree,t),o=r.get(Qe);return o===void 0&&r.set(Qe,o=n()),o},e.prototype.values=function(){return new Ws(this,Eg)},e.prototype[Symbol.iterator]=function(){return this.entries()},e.from=function(t){var n,r,o=new e;try{for(var i=ne(t),a=i.next();!a.done;a=i.next()){var l=Le(a.value,2),s=l[0],u=l[1];o.set(s,u)}}catch(f){n={error:f}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o},e.fromObject=function(t){return e.from(Object.entries(t))},e}(),gl=function(e,t,n){var r,o;if(n===void 0&&(n=[]),t.length===0||e==null)return[e,n];try{for(var i=ne(e.keys()),a=i.next();!a.done;a=i.next()){var l=a.value;if(l!==Qe&&t.startsWith(l))return n.push([e,l]),gl(e.get(l),t.slice(l.length),n)}}catch(s){r={error:s}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return n.push([e,t]),gl(void 0,"",n)},fu=function(e,t){var n,r;if(t.length===0||e==null)return e;try{for(var o=ne(e.keys()),i=o.next();!i.done;i=o.next()){var a=i.value;if(a!==Qe&&t.startsWith(a))return fu(e.get(a),t.slice(a.length))}}catch(l){n={error:l}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},Ys=function(e,t){var n,r,o=t.length;e:for(var i=0;e&&i0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new Ks,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}},e.prototype.discard=function(t){var n=this,r=this._idToShortId.get(t);if(r==null)throw new Error("MiniSearch: cannot discard document with ID ".concat(t,": it is not in the index"));this._idToShortId.delete(t),this._documentIds.delete(r),this._storedFields.delete(r),(this._fieldLength.get(r)||[]).forEach(function(o,i){n.removeFieldLength(r,i,n._documentCount,o)}),this._fieldLength.delete(r),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()},e.prototype.maybeAutoVacuum=function(){if(this._options.autoVacuum!==!1){var t=this._options.autoVacuum,n=t.minDirtFactor,r=t.minDirtCount,o=t.batchSize,i=t.batchWait;this.conditionalVacuum({batchSize:o,batchWait:i},{minDirtCount:r,minDirtFactor:n})}},e.prototype.discardAll=function(t){var n,r,o=this._options.autoVacuum;try{this._options.autoVacuum=!1;try{for(var i=ne(t),a=i.next();!a.done;a=i.next()){var l=a.value;this.discard(l)}}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}finally{this._options.autoVacuum=o}this.maybeAutoVacuum()},e.prototype.replace=function(t){var n=this._options,r=n.idField,o=n.extractField,i=o(t,r);this.discard(i),this.add(t)},e.prototype.vacuum=function(t){return t===void 0&&(t={}),this.conditionalVacuum(t)},e.prototype.conditionalVacuum=function(t,n){var r=this;return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&n,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(function(){var o=r._enqueuedVacuumConditions;return r._enqueuedVacuumConditions=hu,r.performVacuuming(t,o)}),this._enqueuedVacuum)):this.vacuumConditionsMet(n)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(t),this._currentVacuum)},e.prototype.performVacuuming=function(t,n){return W4(this,void 0,void 0,function(){var r,o,i,a,l,s,u,f,c,d,p,y,g,C,v,m,x,E,S,_,b,$,T,P,j;return K4(this,function(L){switch(L.label){case 0:if(r=this._dirtCount,!this.vacuumConditionsMet(n))return[3,10];o=t.batchSize||du.batchSize,i=t.batchWait||du.batchWait,a=1,L.label=1;case 1:L.trys.push([1,7,8,9]),l=ne(this._index),s=l.next(),L.label=2;case 2:if(s.done)return[3,6];u=Le(s.value,2),f=u[0],c=u[1];try{for(d=($=void 0,ne(c)),p=d.next();!p.done;p=d.next()){y=Le(p.value,2),g=y[0],C=y[1];try{for(v=(P=void 0,ne(C)),m=v.next();!m.done;m=v.next())x=Le(m.value,1),E=x[0],!this._documentIds.has(E)&&(C.size<=1?c.delete(g):C.delete(E))}catch(D){P={error:D}}finally{try{m&&!m.done&&(j=v.return)&&j.call(v)}finally{if(P)throw P.error}}}}catch(D){$={error:D}}finally{try{p&&!p.done&&(T=d.return)&&T.call(d)}finally{if($)throw $.error}}return this._index.get(f).size===0&&this._index.delete(f),a%o!==0?[3,4]:[4,new Promise(function(D){return setTimeout(D,i)})];case 3:L.sent(),L.label=4;case 4:a+=1,L.label=5;case 5:return s=l.next(),[3,2];case 6:return[3,9];case 7:return S=L.sent(),_={error:S},[3,9];case 8:try{s&&!s.done&&(b=l.return)&&b.call(l)}finally{if(_)throw _.error}return[7];case 9:this._dirtCount-=r,L.label=10;case 10:return[4,null];case 11:return L.sent(),this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null,[2]}})})},e.prototype.vacuumConditionsMet=function(t){if(t==null)return!0;var n=t.minDirtCount,r=t.minDirtFactor;return n=n||Zs.minDirtCount,r=r||Zs.minDirtFactor,this.dirtCount>=n&&this.dirtFactor>=r},Object.defineProperty(e.prototype,"isVacuuming",{get:function(){return this._currentVacuum!=null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dirtCount",{get:function(){return this._dirtCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dirtFactor",{get:function(){return this._dirtCount/(1+this._documentCount+this._dirtCount)},enumerable:!1,configurable:!0}),e.prototype.has=function(t){return this._idToShortId.has(t)},e.prototype.getStoredFields=function(t){var n=this._idToShortId.get(t);if(n!=null)return this._storedFields.get(n)},e.prototype.search=function(t,n){var r,o;n===void 0&&(n={});var i=this.executeQuery(t,n),a=[];try{for(var l=ne(i),s=l.next();!s.done;s=l.next()){var u=Le(s.value,2),f=u[0],c=u[1],d=c.score,p=c.terms,y=c.match,g=p.length||1,C={id:this._documentIds.get(f),score:d*g,terms:Object.keys(y),queryTerms:p,match:y};Object.assign(C,this._storedFields.get(f)),(n.filter==null||n.filter(C))&&a.push(C)}}catch(v){r={error:v}}finally{try{s&&!s.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}return t===e.wildcard&&n.boostDocument==null&&this._options.searchOptions.boostDocument==null||a.sort(pp),a},e.prototype.autoSuggest=function(t,n){var r,o,i,a;n===void 0&&(n={}),n=pe(pe({},this._options.autoSuggestOptions),n);var l=new Map;try{for(var s=ne(this.search(t,n)),u=s.next();!u.done;u=s.next()){var f=u.value,c=f.score,d=f.terms,p=d.join(" "),y=l.get(p);y!=null?(y.score+=c,y.count+=1):l.set(p,{score:c,terms:d,count:1})}}catch(S){r={error:S}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}var g=[];try{for(var C=ne(l),v=C.next();!v.done;v=C.next()){var m=Le(v.value,2),y=m[0],x=m[1],c=x.score,d=x.terms,E=x.count;g.push({suggestion:y,terms:d,score:c/E})}}catch(S){i={error:S}}finally{try{v&&!v.done&&(a=C.return)&&a.call(C)}finally{if(i)throw i.error}}return g.sort(pp),g},Object.defineProperty(e.prototype,"documentCount",{get:function(){return this._documentCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"termCount",{get:function(){return this._index.size},enumerable:!1,configurable:!0}),e.loadJSON=function(t,n){if(n==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(t),n)},e.getDefault=function(t){if(Qs.hasOwnProperty(t))return Gs(Qs,t);throw new Error('MiniSearch: unknown option "'.concat(t,'"'))},e.loadJS=function(t,n){var r,o,i,a,l,s,u=t.index,f=t.documentCount,c=t.nextId,d=t.documentIds,p=t.fieldIds,y=t.fieldLength,g=t.averageFieldLength,C=t.storedFields,v=t.dirtCount,m=t.serializationVersion;if(m!==1&&m!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");var x=new e(n);x._documentCount=f,x._nextId=c,x._documentIds=Ea(d),x._idToShortId=new Map,x._fieldIds=p,x._fieldLength=Ea(y),x._avgFieldLength=g,x._storedFields=Ea(C),x._dirtCount=v||0,x._index=new Ks;try{for(var E=ne(x._documentIds),S=E.next();!S.done;S=E.next()){var _=Le(S.value,2),b=_[0],$=_[1];x._idToShortId.set($,b)}}catch(F){r={error:F}}finally{try{S&&!S.done&&(o=E.return)&&o.call(E)}finally{if(r)throw r.error}}try{for(var T=ne(u),P=T.next();!P.done;P=T.next()){var j=Le(P.value,2),L=j[0],D=j[1],N=new Map;try{for(var z=(l=void 0,ne(Object.keys(D))),V=z.next();!V.done;V=z.next()){var U=V.value,O=D[U];m===1&&(O=O.ds),N.set(parseInt(U,10),Ea(O))}}catch(F){l={error:F}}finally{try{V&&!V.done&&(s=z.return)&&s.call(z)}finally{if(l)throw l.error}}x._index.set(L,N)}}catch(F){i={error:F}}finally{try{P&&!P.done&&(a=T.return)&&a.call(T)}finally{if(i)throw i.error}}return x},e.prototype.executeQuery=function(t,n){var r=this;if(n===void 0&&(n={}),t===e.wildcard)return this.executeWildcardQuery(n);if(typeof t!="string"){var o=pe(pe(pe({},n),t),{queries:void 0}),i=t.queries.map(function(C){return r.executeQuery(C,o)});return this.combineResults(i,o.combineWith)}var a=this._options,l=a.tokenize,s=a.processTerm,u=a.searchOptions,f=pe(pe({tokenize:l,processTerm:s},u),n),c=f.tokenize,d=f.processTerm,p=c(t).flatMap(function(C){return d(C)}).filter(function(C){return!!C}),y=p.map(t7(f)),g=y.map(function(C){return r.executeQuerySpec(C,f)});return this.combineResults(g,f.combineWith)},e.prototype.executeQuerySpec=function(t,n){var r,o,i,a,l=pe(pe({},this._options.searchOptions),n),s=(l.fields||this._options.fields).reduce(function(U,O){var F;return pe(pe({},U),(F={},F[O]=Gs(l.boost,O)||1,F))},{}),u=l.boostDocument,f=l.weights,c=l.maxFuzzy,d=l.bm25,p=pe(pe({},dp.weights),f),y=p.fuzzy,g=p.prefix,C=this._index.get(t.term),v=this.termResults(t.term,t.term,1,C,s,u,d),m,x;if(t.prefix&&(m=this._index.atPrefix(t.term)),t.fuzzy){var E=t.fuzzy===!0?.2:t.fuzzy,S=E<1?Math.min(c,Math.round(t.term.length*E)):E;S&&(x=this._index.fuzzyGet(t.term,S))}if(m)try{for(var _=ne(m),b=_.next();!b.done;b=_.next()){var $=Le(b.value,2),T=$[0],P=$[1],j=T.length-t.term.length;if(j){x==null||x.delete(T);var L=g*T.length/(T.length+.3*j);this.termResults(t.term,T,L,P,s,u,d,v)}}}catch(U){r={error:U}}finally{try{b&&!b.done&&(o=_.return)&&o.call(_)}finally{if(r)throw r.error}}if(x)try{for(var D=ne(x.keys()),N=D.next();!N.done;N=D.next()){var T=N.value,z=Le(x.get(T),2),V=z[0],j=z[1];if(j){var L=y*T.length/(T.length+j);this.termResults(t.term,T,L,V,s,u,d,v)}}}catch(U){i={error:U}}finally{try{N&&!N.done&&(a=D.return)&&a.call(D)}finally{if(i)throw i.error}}return v},e.prototype.executeWildcardQuery=function(t){var n,r,o=new Map,i=pe(pe({},this._options.searchOptions),t);try{for(var a=ne(this._documentIds),l=a.next();!l.done;l=a.next()){var s=Le(l.value,2),u=s[0],f=s[1],c=i.boostDocument?i.boostDocument(f,"",this._storedFields.get(u)):1;o.set(u,{score:c,terms:[],match:{}})}}catch(d){n={error:d}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o},e.prototype.combineResults=function(t,n){if(n===void 0&&(n=Kf),t.length===0)return new Map;var r=n.toLowerCase();return t.reduce(J4[r])||new Map},e.prototype.toJSON=function(){var t,n,r,o,i=[];try{for(var a=ne(this._index),l=a.next();!l.done;l=a.next()){var s=Le(l.value,2),u=s[0],f=s[1],c={};try{for(var d=(r=void 0,ne(f)),p=d.next();!p.done;p=d.next()){var y=Le(p.value,2),g=y[0],C=y[1];c[g]=Object.fromEntries(C)}}catch(v){r={error:v}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}i.push([u,c])}}catch(v){t={error:v}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:i,serializationVersion:2}},e.prototype.termResults=function(t,n,r,o,i,a,l,s){var u,f,c,d,p;if(s===void 0&&(s=new Map),o==null)return s;try{for(var y=ne(Object.keys(i)),g=y.next();!g.done;g=y.next()){var C=g.value,v=i[C],m=this._fieldIds[C],x=o.get(m);if(x!=null){var E=x.size,S=this._avgFieldLength[m];try{for(var _=(c=void 0,ne(x.keys())),b=_.next();!b.done;b=_.next()){var $=b.value;if(!this._documentIds.has($)){this.removeTerm(m,$,n),E-=1;continue}var T=a?a(this._documentIds.get($),n,this._storedFields.get($)):1;if(T){var P=x.get($),j=this._fieldLength.get($)[m],L=e7(P,E,this._documentCount,j,S,l),D=r*v*T*L,N=s.get($);if(N){N.score+=D,r7(N.terms,t);var z=Gs(N.match,n);z?z.push(C):N.match[n]=[C]}else s.set($,{score:D,terms:[t],match:(p={},p[n]=[C],p)})}}}catch(V){c={error:V}}finally{try{b&&!b.done&&(d=_.return)&&d.call(_)}finally{if(c)throw c.error}}}}}catch(V){u={error:V}}finally{try{g&&!g.done&&(f=y.return)&&f.call(y)}finally{if(u)throw u.error}}return s},e.prototype.addTerm=function(t,n,r){var o=this._index.fetch(r,vp),i=o.get(t);if(i==null)i=new Map,i.set(n,1),o.set(t,i);else{var a=i.get(n);i.set(n,(a||0)+1)}},e.prototype.removeTerm=function(t,n,r){if(!this._index.has(r)){this.warnDocumentChanged(n,t,r);return}var o=this._index.fetch(r,vp),i=o.get(t);i==null||i.get(n)==null?this.warnDocumentChanged(n,t,r):i.get(n)<=1?i.size<=1?o.delete(t):i.delete(n):i.set(n,i.get(n)-1),this._index.get(r).size===0&&this._index.delete(r)},e.prototype.warnDocumentChanged=function(t,n,r){var o,i;try{for(var a=ne(Object.keys(this._fieldIds)),l=a.next();!l.done;l=a.next()){var s=l.value;if(this._fieldIds[s]===n){this._options.logger("warn","MiniSearch: document with ID ".concat(this._documentIds.get(t),' has changed before removal: term "').concat(r,'" was not present in field "').concat(s,'". Removing a document after it has changed can corrupt the index!'),"version_conflict");return}}}catch(u){o={error:u}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}},e.prototype.addDocumentId=function(t){var n=this._nextId;return this._idToShortId.set(t,n),this._documentIds.set(n,t),this._documentCount+=1,this._nextId+=1,n},e.prototype.addFields=function(t){for(var n=0;nJSON.stringify(await(await fetch("/polkadot-api-docs/.vocs/search-index-8794b762.json")).json());let Xs;function Tg(){const[e,t]=h.useState();return h.useEffect(()=>{(async()=>{Xs||(Xs=i7());const n=await Xs,r=X4.loadJSON(n,{fields:["title","titles","text"],searchOptions:{boost:{title:4,text:2,titles:1},fuzzy:.2,prefix:!0},storeFields:["href","html","isPage","text","title","titles"]});t(r)})()},[]),h.useEffect(()=>{},[]),e}var a7="vocs_DesktopSearch_search",l7="vocs_DesktopSearch_searchCommand";const s7=h.forwardRef((e,t)=>h.createElement(fe.label,Y({},e,{ref:t,onMouseDown:n=>{var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),c7=s7;var kg={exports:{}};/*!*************************************************** * mark.js v8.11.1 * https://markjs.io/ * Copyright (c) 2014–2018, Julian Kühnel * Released under the MIT license https://git.io/vwTVl -*****************************************************/(function(e,t){(function(n,r){e.exports=r()})(Ey,function(){var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},r=function(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")},o=function(){function u(f,c){for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!0,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;r(this,u),this.ctx=f,this.iframes=c,this.exclude=d,this.iframesTimeout=p}return o(u,[{key:"getContexts",value:function(){var c=void 0,d=[];return typeof this.ctx>"u"||!this.ctx?c=[]:NodeList.prototype.isPrototypeOf(this.ctx)?c=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?c=this.ctx:typeof this.ctx=="string"?c=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):c=[this.ctx],c.forEach(function(p){var y=d.filter(function(g){return g.contains(p)}).length>0;d.indexOf(p)===-1&&!y&&d.push(p)}),d}},{key:"getIframeContents",value:function(c,d){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},y=void 0;try{var g=c.contentWindow;if(y=g.document,!g||!y)throw new Error("iframe inaccessible")}catch{p()}y&&d(y)}},{key:"isIframeBlank",value:function(c){var d="about:blank",p=c.getAttribute("src").trim(),y=c.contentWindow.location.href;return y===d&&p!==d&&p}},{key:"observeIframeLoad",value:function(c,d,p){var y=this,g=!1,C=null,v=function m(){if(!g){g=!0,clearTimeout(C);try{y.isIframeBlank(c)||(c.removeEventListener("load",m),y.getIframeContents(c,d,p))}catch{p()}}};c.addEventListener("load",v),C=setTimeout(v,this.iframesTimeout)}},{key:"onIframeReady",value:function(c,d,p){try{c.contentWindow.document.readyState==="complete"?this.isIframeBlank(c)?this.observeIframeLoad(c,d,p):this.getIframeContents(c,d,p):this.observeIframeLoad(c,d,p)}catch{p()}}},{key:"waitForIframes",value:function(c,d){var p=this,y=0;this.forEachIframe(c,function(){return!0},function(g){y++,p.waitForIframes(g.querySelector("html"),function(){--y||d()})},function(g){g||d()})}},{key:"forEachIframe",value:function(c,d,p){var y=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},C=c.querySelectorAll("iframe"),v=C.length,m=0;C=Array.prototype.slice.call(C);var x=function(){--v<=0&&g(m)};v||x(),C.forEach(function(E){u.matches(E,y.exclude)?x():y.onIframeReady(E,function(S){d(E)&&(m++,p(S)),x()},x)})}},{key:"createIterator",value:function(c,d,p){return document.createNodeIterator(c,d,p,!1)}},{key:"createInstanceOnIframe",value:function(c){return new u(c.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(c,d,p){var y=c.compareDocumentPosition(p),g=Node.DOCUMENT_POSITION_PRECEDING;if(y&g)if(d!==null){var C=d.compareDocumentPosition(p),v=Node.DOCUMENT_POSITION_FOLLOWING;if(C&v)return!0}else return!0;return!1}},{key:"getIteratorNode",value:function(c){var d=c.previousNode(),p=void 0;return d===null?p=c.nextNode():p=c.nextNode()&&c.nextNode(),{prevNode:d,node:p}}},{key:"checkIframeFilter",value:function(c,d,p,y){var g=!1,C=!1;return y.forEach(function(v,m){v.val===p&&(g=m,C=v.handled)}),this.compareNodeIframe(c,d,p)?(g===!1&&!C?y.push({val:p,handled:!0}):g!==!1&&!C&&(y[g].handled=!0),!0):(g===!1&&y.push({val:p,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(c,d,p,y){var g=this;c.forEach(function(C){C.handled||g.getIframeContents(C.val,function(v){g.createInstanceOnIframe(v).forEachNode(d,p,y)})})}},{key:"iterateThroughNodes",value:function(c,d,p,y,g){for(var C=this,v=this.createIterator(d,c,y),m=[],x=[],E=void 0,S=void 0,_=function(){var $=C.getIteratorNode(v);return S=$.prevNode,E=$.node,E};_();)this.iframes&&this.forEachIframe(d,function(b){return C.checkIframeFilter(E,S,b,m)},function(b){C.createInstanceOnIframe(b).forEachNode(c,function($){return x.push($)},y)}),x.push(E);x.forEach(function(b){p(b)}),this.iframes&&this.handleOpenIframes(m,c,p,y),g()}},{key:"forEachNode",value:function(c,d,p){var y=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},C=this.getContexts(),v=C.length;v||g(),C.forEach(function(m){var x=function(){y.iterateThroughNodes(c,m,d,p,function(){--v<=0&&g()})};y.iframes?y.waitForIframes(m,x):x()})}}],[{key:"matches",value:function(c,d){var p=typeof d=="string"?[d]:d,y=c.matches||c.matchesSelector||c.msMatchesSelector||c.mozMatchesSelector||c.oMatchesSelector||c.webkitMatchesSelector;if(y){var g=!1;return p.every(function(C){return y.call(c,C)?(g=!0,!1):!0}),g}else return!1}}]),u}(),l=function(){function u(f){r(this,u),this.ctx=f,this.ie=!1;var c=window.navigator.userAgent;(c.indexOf("MSIE")>-1||c.indexOf("Trident")>-1)&&(this.ie=!0)}return o(u,[{key:"log",value:function(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"debug",p=this.opt.log;this.opt.debug&&(typeof p>"u"?"undefined":n(p))==="object"&&typeof p[d]=="function"&&p[d]("mark.js: "+c)}},{key:"escapeStr",value:function(c){return c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(c){return this.opt.wildcards!=="disabled"&&(c=this.setupWildcardsRegExp(c)),c=this.escapeStr(c),Object.keys(this.opt.synonyms).length&&(c=this.createSynonymsRegExp(c)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(c=this.setupIgnoreJoinersRegExp(c)),this.opt.diacritics&&(c=this.createDiacriticsRegExp(c)),c=this.createMergedBlanksRegExp(c),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(c=this.createJoinersRegExp(c)),this.opt.wildcards!=="disabled"&&(c=this.createWildcardsRegExp(c)),c=this.createAccuracyRegExp(c),c}},{key:"createSynonymsRegExp",value:function(c){var d=this.opt.synonyms,p=this.opt.caseSensitive?"":"i",y=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var g in d)if(d.hasOwnProperty(g)){var C=d[g],v=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(g):this.escapeStr(g),m=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(C):this.escapeStr(C);v!==""&&m!==""&&(c=c.replace(new RegExp("("+this.escapeStr(v)+"|"+this.escapeStr(m)+")","gm"+p),y+("("+this.processSynomyms(v)+"|")+(this.processSynomyms(m)+")")+y))}return c}},{key:"processSynomyms",value:function(c){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(c=this.setupIgnoreJoinersRegExp(c)),c}},{key:"setupWildcardsRegExp",value:function(c){return c=c.replace(/(?:\\)*\?/g,function(d){return d.charAt(0)==="\\"?"?":""}),c.replace(/(?:\\)*\*/g,function(d){return d.charAt(0)==="\\"?"*":""})}},{key:"createWildcardsRegExp",value:function(c){var d=this.opt.wildcards==="withSpaces";return c.replace(/\u0001/g,d?"[\\S\\s]?":"\\S?").replace(/\u0002/g,d?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(c){return c.replace(/[^(|)\\]/g,function(d,p,y){var g=y.charAt(p+1);return/[(|)\\]/.test(g)||g===""?d:d+"\0"})}},{key:"createJoinersRegExp",value:function(c){var d=[],p=this.opt.ignorePunctuation;return Array.isArray(p)&&p.length&&d.push(this.escapeStr(p.join(""))),this.opt.ignoreJoiners&&d.push("\\u00ad\\u200b\\u200c\\u200d"),d.length?c.split(/\u0000+/).join("["+d.join("")+"]*"):c}},{key:"createDiacriticsRegExp",value:function(c){var d=this.opt.caseSensitive?"":"i",p=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],y=[];return c.split("").forEach(function(g){p.every(function(C){if(C.indexOf(g)!==-1){if(y.indexOf(C)>-1)return!1;c=c.replace(new RegExp("["+C+"]","gm"+d),"["+C+"]"),y.push(C)}return!0})}),c}},{key:"createMergedBlanksRegExp",value:function(c){return c.replace(/[\s]+/gmi,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(c){var d=this,p="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿",y=this.opt.accuracy,g=typeof y=="string"?y:y.value,C=typeof y=="string"?[]:y.limiters,v="";switch(C.forEach(function(m){v+="|"+d.escapeStr(m)}),g){case"partially":default:return"()("+c+")";case"complementary":return v="\\s"+(v||this.escapeStr(p)),"()([^"+v+"]*"+c+"[^"+v+"]*)";case"exactly":return"(^|\\s"+v+")("+c+")(?=$|\\s"+v+")"}}},{key:"getSeparatedKeywords",value:function(c){var d=this,p=[];return c.forEach(function(y){d.opt.separateWordSearch?y.split(" ").forEach(function(g){g.trim()&&p.indexOf(g)===-1&&p.push(g)}):y.trim()&&p.indexOf(y)===-1&&p.push(y)}),{keywords:p.sort(function(y,g){return g.length-y.length}),length:p.length}}},{key:"isNumeric",value:function(c){return Number(parseFloat(c))==c}},{key:"checkRanges",value:function(c){var d=this;if(!Array.isArray(c)||Object.prototype.toString.call(c[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(c),[];var p=[],y=0;return c.sort(function(g,C){return g.start-C.start}).forEach(function(g){var C=d.callNoMatchOnInvalidRanges(g,y),v=C.start,m=C.end,x=C.valid;x&&(g.start=v,g.length=m-v,p.push(g),y=m)}),p}},{key:"callNoMatchOnInvalidRanges",value:function(c,d){var p=void 0,y=void 0,g=!1;return c&&typeof c.start<"u"?(p=parseInt(c.start,10),y=p+parseInt(c.length,10),this.isNumeric(c.start)&&this.isNumeric(c.length)&&y-d>0&&y-p>0?g=!0:(this.log("Ignoring invalid or overlapping range: "+(""+JSON.stringify(c))),this.opt.noMatch(c))):(this.log("Ignoring invalid range: "+JSON.stringify(c)),this.opt.noMatch(c)),{start:p,end:y,valid:g}}},{key:"checkWhitespaceRanges",value:function(c,d,p){var y=void 0,g=!0,C=p.length,v=d-C,m=parseInt(c.start,10)-v;return m=m>C?C:m,y=m+parseInt(c.length,10),y>C&&(y=C,this.log("End range automatically set to the max value of "+C)),m<0||y-m<0||m>C||y>C?(g=!1,this.log("Invalid range: "+JSON.stringify(c)),this.opt.noMatch(c)):p.substring(m,y).replace(/\s+/g,"")===""&&(g=!1,this.log("Skipping whitespace only range: "+JSON.stringify(c)),this.opt.noMatch(c)),{start:m,end:y,valid:g}}},{key:"getTextNodes",value:function(c){var d=this,p="",y=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(g){y.push({start:p.length,end:(p+=g.textContent).length,node:g})},function(g){return d.matchesExclude(g.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){c({value:p,nodes:y})})}},{key:"matchesExclude",value:function(c){return a.matches(c,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(c,d,p){var y=this.opt.element?this.opt.element:"mark",g=c.splitText(d),C=g.splitText(p-d),v=document.createElement(y);return v.setAttribute("data-markjs","true"),this.opt.className&&v.setAttribute("class",this.opt.className),v.textContent=g.textContent,g.parentNode.replaceChild(v,g),C}},{key:"wrapRangeInMappedTextNode",value:function(c,d,p,y,g){var C=this;c.nodes.every(function(v,m){var x=c.nodes[m+1];if(typeof x>"u"||x.start>d){if(!y(v.node))return!1;var E=d-v.start,S=(p>v.end?v.end:p)-v.start,_=c.value.substr(0,v.start),b=c.value.substr(S+v.start);if(v.node=C.wrapRangeInTextNode(v.node,E,S),c.value=_+b,c.nodes.forEach(function($,T){T>=m&&(c.nodes[T].start>0&&T!==m&&(c.nodes[T].start-=S),c.nodes[T].end-=S)}),p-=S,g(v.node.previousSibling,v.start),p>v.end)d=v.end;else return!1}return!0})}},{key:"wrapMatches",value:function(c,d,p,y,g){var C=this,v=d===0?0:d+1;this.getTextNodes(function(m){m.nodes.forEach(function(x){x=x.node;for(var E=void 0;(E=c.exec(x.textContent))!==null&&E[v]!=="";)if(p(E[v],x)){var S=E.index;if(v!==0)for(var _=1;_{const o=setTimeout(()=>r(e),t||500);return()=>{clearTimeout(o)}},[e,t]),n}function pu(e,t){const[n,r]=h.useState();h.useEffect(()=>{const i=h7(e);r(typeof i>"u"||i===null?typeof t=="function"?t():t:i)},[t,e]);const o=h.useCallback(i=>{r(a=>{let l;typeof i=="function"?l=i(a):l=i;try{localStorage.setItem(e,JSON.stringify(l))}catch{}return l})},[e]);return[n,o]}function h7(e){try{const t=localStorage.getItem(e);return typeof t=="string"?JSON.parse(t):void 0}catch{return}}var p7="vocs_Kbd";function Rg(e){return w.jsx("kbd",{...e,className:I(e.className,p7)})}var v7="vocs_KeyboardShortcut_kbdGroup",m7="vocs_KeyboardShortcut";function eo(e){const{description:t,keys:n}=e;return w.jsxs("span",{className:m7,children:[t,w.jsx("span",{className:v7,children:n.map(r=>w.jsx(Rg,{children:r},r))})]})}var g7="vocs_SearchDialog_content",vp="vocs_SearchDialog_excerpt",y7="vocs_SearchDialog_overlay",w7="vocs_SearchDialog_result",mp="vocs_SearchDialog_resultIcon",x7="vocs_SearchDialog_resultSelected",C7="vocs_SearchDialog_results",E7="vocs_SearchDialog",_7="vocs_SearchDialog_searchBox",S7="vocs_SearchDialog_searchInput",_a="vocs_SearchDialog_searchInputIcon",b7="vocs_SearchDialog_searchInputIconDesktop",$7="vocs_SearchDialog_searchInputIconMobile",T7="vocs_SearchDialog_searchShortcuts",gp="vocs_SearchDialog_title",k7="vocs_SearchDialog_titleIcon",R7="vocs_SearchDialog_titles";function Ng(e){const t=Df(),n=h.useRef(null),r=h.useRef(null),[o,i]=pu("filterText",""),a=d7(o,200),l=Tg(),[s,u]=h.useState(-1),[f,c]=h.useState(!1),[d,p]=pu("showDetailView",!0),y=h.useMemo(()=>l?a?(u(0),l.search(a).slice(0,16)):(u(-1),[]):[],[l,a]),g=y.length,C=y[s],v=h.useCallback(()=>{var S,_,b;if(!r.current)return;const m=new Set;for(const $ of y)for(const T in $.match)m.add(T);const x=new f7(r.current);x.unmark({done(){x==null||x.markRegExp(N7(m))}});const E=r.current.querySelectorAll(`.${vp}`);for(const $ of E)(S=$.querySelector('mark[data-markjs="true"]'))==null||S.scrollIntoView({block:"center"});(b=(_=r.current)==null?void 0:_.firstElementChild)==null||b.scrollIntoView({block:"start"})},[y]);return h.useEffect(()=>{if(!e.open)return;function m(x){var E;switch(x.key){case"ArrowDown":{x.preventDefault(),u(S=>{var $;let _=S+1;_>=g&&(_=0);const b=($=r.current)==null?void 0:$.children[_];return b==null||b.scrollIntoView({block:"nearest"}),_}),c(!0);break}case"ArrowUp":{x.preventDefault(),u(S=>{var $;let _=S-1;_<0&&(_=g-1);const b=($=r.current)==null?void 0:$.children[_];return b==null||b.scrollIntoView({block:"nearest"}),_}),c(!0);break}case"Backspace":{if(!x.metaKey)return;x.preventDefault(),i(""),(E=n.current)==null||E.focus();break}case"Enter":{if(x.target instanceof HTMLButtonElement&&x.target.type!=="submit"||!C)return;x.preventDefault(),t(C.href),e.onClose();break}}}return window.addEventListener("keydown",m),()=>{window.removeEventListener("keydown",m)}},[t,g,i,C,e.open,e.onClose]),h.useEffect(()=>{a!==""&&r.current&&v()},[v,a]),w.jsxs(B4,{children:[w.jsx(U4,{className:y7}),w.jsxs(H4,{onOpenAutoFocus:m=>{n.current&&(m.preventDefault(),n.current.focus()),v()},onCloseAutoFocus:()=>{u(0)},className:E7,"aria-describedby":void 0,children:[w.jsx(V4,{className:Z0,children:"Search"}),w.jsxs("form",{className:_7,children:[w.jsx("button",{"aria-label":"Close search dialog",type:"button",onClick:()=>e.onClose(),className:$7,children:w.jsx(o5,{className:_a,height:20,width:20})}),w.jsx(c7,{htmlFor:"search-input",children:w.jsx(Bf,{"aria-label":"Search",className:I(_a,b7),height:20,width:20})}),w.jsx("input",{ref:n,tabIndex:0,className:S7,id:"search-input",onChange:m=>i(m.target.value),placeholder:"Search",type:"search",value:o}),w.jsx("button",{"aria-label":"Toggle detail view",type:"button",onClick:()=>p(m=>!m),children:w.jsx(d5,{className:_a,height:20,width:20})}),w.jsx("button",{"aria-label":"Reset search",type:"button",className:_a,onClick:()=>{var m;i(""),(m=n.current)==null||m.focus()},children:"⌫"})]}),w.jsxs("ul",{className:C7,role:y.length?"listbox":void 0,onMouseMove:()=>c(!1),ref:r,children:[a&&y.length===0&&w.jsxs("li",{children:['No results for "',w.jsx("span",{children:a}),'"']}),y.map((m,x)=>{var E;return w.jsx("li",{role:"option",className:I(w7,x===s&&x7),"aria-selected":x===s,"aria-label":[...m.titles.filter(S=>!!S),m.title].join(" > "),children:w.jsxs(M0,{to:m.href,onClick:S=>{S.metaKey||e.onClose()},onMouseEnter:()=>!f&&u(x),onFocus:()=>u(x),children:[w.jsxs("div",{className:R7,children:[m.isPage?w.jsx(u5,{className:mp}):w.jsx("span",{className:mp,children:"#"}),m.titles.filter(S=>!!S).map(S=>w.jsxs("span",{className:gp,children:[w.jsx("span",{dangerouslySetInnerHTML:{__html:S}}),w.jsx(a5,{className:k7})]},S)),w.jsx("span",{className:gp,children:w.jsx("span",{dangerouslySetInnerHTML:{__html:m.title}})})]}),d&&((E=m.text)==null?void 0:E.trim())&&w.jsx("div",{className:vp,children:w.jsx(Y0,{className:g7,children:w.jsx("div",{dangerouslySetInnerHTML:{__html:m.html}})})})]})},m.id)})]}),w.jsxs("div",{className:T7,children:[w.jsx(eo,{description:"Navigate",keys:["↑","↓"]}),w.jsx(eo,{description:"Select",keys:["enter"]}),w.jsx(eo,{description:"Close",keys:["esc"]}),w.jsx(eo,{description:"Reset",keys:["⌘","⌫"]})]})]})]})}function N7(e){return new RegExp([...e].sort((t,n)=>n.length-t.length).map(t=>`(${t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")})`).join("|"),"gi")}function P7(){Tg();const[e,t]=h.useState(!1);return h.useEffect(()=>{function n(r){const o=document.activeElement instanceof HTMLElement&&(["input","select","textarea"].includes(document.activeElement.tagName.toLowerCase())||document.activeElement.isContentEditable);r.key==="/"&&!e&&!o?(r.preventDefault(),t(!0)):r.metaKey===!0&&r.key==="k"&&(r.preventDefault(),t(i=>!i))}return window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}},[e]),w.jsxs(wg,{open:e,onOpenChange:t,children:[w.jsx(xg,{asChild:!0,children:w.jsxs("button",{className:a7,type:"button",children:[w.jsx(Bf,{style:{marginTop:2}}),"Search",w.jsx("div",{className:l7,children:w.jsx("div",{style:{background:"currentColor",transform:"rotate(45deg)",width:1.5,borderRadius:2,height:"100%"}})})]})}),w.jsx(Ng,{open:e,onClose:()=>t(!1)})]})}var Pg="vocs_DesktopTopNav_button",A7="vocs_DesktopTopNav_content",O7="vocs_DesktopTopNav_curtain",yp="vocs_DesktopTopNav_divider",Js="vocs_DesktopTopNav_group",Sa="vocs_DesktopTopNav_hideCompact",vu="vocs_DesktopTopNav_icon",yl="vocs_DesktopTopNav_item",I7="vocs_DesktopTopNav_logo",L7="vocs_DesktopTopNav_logoWrapper",M7="vocs_DesktopTopNav",wp="vocs_DesktopTopNav_section",j7="vocs_DesktopTopNav_withLogo",D7="vocs_Icon",mu="var(--vocs_Icon_size)";function st({className:e,label:t,icon:n,size:r,style:o}){return w.jsx("div",{"aria-label":t,className:I(D7,e),role:"img",style:{...o,...Gt({[mu]:r})},children:w.jsx(n,{height:r,width:r})})}var F7="vocs_Logo_logoDark",z7="vocs_Logo_logoLight",qs="vocs_Logo";function B7({className:e}){const{logoUrl:t}=Je();return t?w.jsx(w.Fragment,{children:typeof t=="string"?w.jsx("img",{alt:"Logo",className:I(e,qs),src:t}):w.jsxs(w.Fragment,{children:[w.jsx("img",{alt:"Logo",className:I(e,qs,F7),src:t.dark}),w.jsx("img",{alt:"Logo",className:I(e,qs,z7),src:t.light})]})}):null}var U7="vocs_NavLogo_logoImage",H7="vocs_NavLogo_title";function Kf(){const e=Je();return e.logoUrl?w.jsx(B7,{className:U7}):w.jsx("div",{className:H7,children:e.title})}const V7=h.createContext(void 0);function Wl(e){const t=h.useContext(V7);return e||t||"ltr"}function Kl(e){const t=e+"CollectionProvider",[n,r]=En(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=p=>{const{scope:y,children:g}=p,C=Z.useRef(null),v=Z.useRef(new Map).current;return Z.createElement(o,{scope:y,itemMap:v,collectionRef:C},g)},l=e+"CollectionSlot",s=Z.forwardRef((p,y)=>{const{scope:g,children:C}=p,v=i(l,g),m=ze(y,v.collectionRef);return Z.createElement(Co,{ref:m},C)}),u=e+"CollectionItemSlot",f="data-radix-collection-item",c=Z.forwardRef((p,y)=>{const{scope:g,children:C,...v}=p,m=Z.useRef(null),x=ze(y,m),E=i(u,g);return Z.useEffect(()=>(E.itemMap.set(m,{ref:m,...v}),()=>void E.itemMap.delete(m))),Z.createElement(Co,{[f]:"",ref:x},C)});function d(p){const y=i(e+"CollectionConsumer",p);return Z.useCallback(()=>{const C=y.collectionRef.current;if(!C)return[];const v=Array.from(C.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((E,S)=>v.indexOf(E.ref.current)-v.indexOf(S.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:a,Slot:s,ItemSlot:c},d,r]}function W7(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const K7=h.forwardRef((e,t)=>h.createElement(fe.span,Y({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),Y7=K7,Vi="NavigationMenu",[Yf,G7,Q7]=Kl(Vi),[gu,Z7,X7]=Kl(Vi),[Gf,t$]=En(Vi,[Q7,X7]),[J7,Nr]=Gf(Vi),[q7,n$]=Gf(Vi),e6=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,delayDuration:a=200,skipDelayDuration:l=300,orientation:s="horizontal",dir:u,...f}=e,[c,d]=h.useState(null),p=ze(t,T=>d(T)),y=Wl(u),g=h.useRef(0),C=h.useRef(0),v=h.useRef(0),[m,x]=h.useState(!0),[E="",S]=rr({prop:r,onChange:T=>{const P=T!=="",j=l>0;P?(window.clearTimeout(v.current),j&&x(!1)):(window.clearTimeout(v.current),v.current=window.setTimeout(()=>x(!0),l)),o==null||o(T)},defaultProp:i}),_=h.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>S(""),150)},[S]),b=h.useCallback(T=>{window.clearTimeout(C.current),S(T)},[S]),$=h.useCallback(T=>{E===T?window.clearTimeout(C.current):g.current=window.setTimeout(()=>{window.clearTimeout(C.current),S(T)},a)},[E,S,a]);return h.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(C.current),window.clearTimeout(v.current)},[]),h.createElement(t6,{scope:n,isRootMenu:!0,value:E,dir:y,orientation:s,rootNavigationMenu:c,onTriggerEnter:T=>{window.clearTimeout(g.current),m?$(T):b(T)},onTriggerLeave:()=>{window.clearTimeout(g.current),_()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:_,onItemSelect:T=>{S(P=>P===T?"":T)},onItemDismiss:()=>S("")},h.createElement(fe.nav,Y({"aria-label":"Main","data-orientation":s,dir:y},f,{ref:p})))}),t6=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:i,children:a,value:l,onItemSelect:s,onItemDismiss:u,onTriggerEnter:f,onTriggerLeave:c,onContentEnter:d,onContentLeave:p}=e,[y,g]=h.useState(null),[C,v]=h.useState(new Map),[m,x]=h.useState(null);return h.createElement(J7,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:l,previousValue:W7(l),baseId:rn(),dir:o,orientation:i,viewport:y,onViewportChange:g,indicatorTrack:m,onIndicatorTrackChange:x,onTriggerEnter:at(f),onTriggerLeave:at(c),onContentEnter:at(d),onContentLeave:at(p),onItemSelect:at(s),onItemDismiss:at(u),onViewportContentChange:h.useCallback((E,S)=>{v(_=>(_.set(E,S),new Map(_)))},[]),onViewportContentRemove:h.useCallback(E=>{v(S=>S.has(E)?(S.delete(E),new Map(S)):S)},[])},h.createElement(Yf.Provider,{scope:t},h.createElement(q7,{scope:t,items:C},a)))},n6="NavigationMenuList",r6=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Nr(n6,n),i=h.createElement(fe.ul,Y({"data-orientation":o.orientation},r,{ref:t}));return h.createElement(fe.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange},h.createElement(Yf.Slot,{scope:n},o.isRootMenu?h.createElement(Og,{asChild:!0},i):i))}),o6="NavigationMenuItem",[i6,Ag]=Gf(o6),a6=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,i=rn(),a=r||i||"LEGACY_REACT_AUTO_VALUE",l=h.useRef(null),s=h.useRef(null),u=h.useRef(null),f=h.useRef(()=>{}),c=h.useRef(!1),d=h.useCallback((y="start")=>{if(l.current){f.current();const g=yu(l.current);g.length&&Qf(y==="start"?g:g.reverse())}},[]),p=h.useCallback(()=>{if(l.current){const y=yu(l.current);y.length&&(f.current=p6(y))}},[]);return h.createElement(i6,{scope:n,value:a,triggerRef:s,contentRef:l,focusProxyRef:u,wasEscapeCloseRef:c,onEntryKeyDown:d,onFocusProxyEnter:d,onRootContentClose:p,onContentFocusOutside:p},h.createElement(fe.li,Y({},o,{ref:t})))}),xp="NavigationMenuTrigger",l6=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,i=Nr(xp,e.__scopeNavigationMenu),a=Ag(xp,e.__scopeNavigationMenu),l=h.useRef(null),s=ze(l,a.triggerRef,t),u=Mg(i.baseId,a.value),f=jg(i.baseId,a.value),c=h.useRef(!1),d=h.useRef(!1),p=a.value===i.value;return h.createElement(h.Fragment,null,h.createElement(Yf.ItemSlot,{scope:n,value:a.value},h.createElement(Ig,{asChild:!0},h.createElement(fe.button,Y({id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":Lg(p),"aria-expanded":p,"aria-controls":f},o,{ref:s,onPointerEnter:ae(e.onPointerEnter,()=>{d.current=!1,a.wasEscapeCloseRef.current=!1}),onPointerMove:ae(e.onPointerMove,wu(()=>{r||d.current||a.wasEscapeCloseRef.current||c.current||(i.onTriggerEnter(a.value),c.current=!0)})),onPointerLeave:ae(e.onPointerLeave,wu(()=>{r||(i.onTriggerLeave(),c.current=!1)})),onClick:ae(e.onClick,()=>{i.onItemSelect(a.value),d.current=p}),onKeyDown:ae(e.onKeyDown,y=>{const C={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];p&&y.key===C&&(a.onEntryKeyDown(),y.preventDefault())})})))),p&&h.createElement(h.Fragment,null,h.createElement(Y7,{"aria-hidden":!0,tabIndex:0,ref:a.focusProxyRef,onFocus:y=>{const g=a.contentRef.current,C=y.relatedTarget,v=C===l.current,m=g==null?void 0:g.contains(C);(v||!m)&&a.onFocusProxyEnter(v?"start":"end")}}),i.viewport&&h.createElement("span",{"aria-owns":f})))}),Cp="navigationMenu.linkSelect",s6=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return h.createElement(Ig,{asChild:!0},h.createElement(fe.a,Y({"data-active":r?"":void 0,"aria-current":r?"page":void 0},i,{ref:t,onClick:ae(e.onClick,a=>{const l=a.target,s=new CustomEvent(Cp,{bubbles:!0,cancelable:!0});if(l.addEventListener(Cp,u=>o==null?void 0:o(u),{once:!0}),lu(l,s),!s.defaultPrevented&&!a.metaKey){const u=new CustomEvent(Ua,{bubbles:!0,cancelable:!0});lu(l,u)}},{checkForDefaultPrevented:!1})})))}),wl="NavigationMenuContent",c6=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Nr(wl,e.__scopeNavigationMenu),i=Ag(wl,e.__scopeNavigationMenu),a=ze(i.contentRef,t),l=i.value===o.value,s={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return o.viewport?h.createElement(u6,Y({forceMount:n},s,{ref:a})):h.createElement(_n,{present:n||l},h.createElement(f6,Y({"data-state":Lg(l)},s,{ref:a,onPointerEnter:ae(e.onPointerEnter,o.onContentEnter),onPointerLeave:ae(e.onPointerLeave,wu(o.onContentLeave)),style:{pointerEvents:!l&&o.isRootMenu?"none":void 0,...s.style}})))}),u6=h.forwardRef((e,t)=>{const n=Nr(wl,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return gn(()=>{r(e.value,{ref:t,...e})},[e,t,r]),gn(()=>()=>o(e.value),[e.value,o]),null}),Ua="navigationMenu.rootContentDismiss",f6=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:i,wasEscapeCloseRef:a,onRootContentClose:l,onContentFocusOutside:s,...u}=e,f=Nr(wl,n),c=h.useRef(null),d=ze(c,t),p=Mg(f.baseId,r),y=jg(f.baseId,r),g=G7(n),C=h.useRef(null),{onItemDismiss:v}=f;h.useEffect(()=>{const x=c.current;if(f.isRootMenu&&x){const E=()=>{var S;v(),l(),x.contains(document.activeElement)&&((S=o.current)===null||S===void 0||S.focus())};return x.addEventListener(Ua,E),()=>x.removeEventListener(Ua,E)}},[f.isRootMenu,e.value,o,v,l]);const m=h.useMemo(()=>{const E=g().map(P=>P.value);f.dir==="rtl"&&E.reverse();const S=E.indexOf(f.value),_=E.indexOf(f.previousValue),b=r===f.value,$=_===E.indexOf(r);if(!b&&!$)return C.current;const T=(()=>{if(S!==_){if(b&&_!==-1)return S>_?"from-end":"from-start";if($&&S!==-1)return S>_?"to-start":"to-end"}return null})();return C.current=T,T},[f.previousValue,f.value,f.dir,g,r]);return h.createElement(Og,{asChild:!0},h.createElement(Uf,Y({id:y,"aria-labelledby":p,"data-motion":m,"data-orientation":f.orientation},u,{ref:d,onDismiss:()=>{var x;const E=new Event(Ua,{bubbles:!0,cancelable:!0});(x=c.current)===null||x===void 0||x.dispatchEvent(E)},onFocusOutside:ae(e.onFocusOutside,x=>{var E;s();const S=x.target;(E=f.rootNavigationMenu)!==null&&E!==void 0&&E.contains(S)&&x.preventDefault()}),onPointerDownOutside:ae(e.onPointerDownOutside,x=>{var E;const S=x.target,_=g().some($=>{var T;return(T=$.ref.current)===null||T===void 0?void 0:T.contains(S)}),b=f.isRootMenu&&((E=f.viewport)===null||E===void 0?void 0:E.contains(S));(_||b||!f.isRootMenu)&&x.preventDefault()}),onKeyDown:ae(e.onKeyDown,x=>{const E=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!E){const b=yu(x.currentTarget),$=document.activeElement,T=b.findIndex(L=>L===$),j=x.shiftKey?b.slice(0,T).reverse():b.slice(T+1,b.length);if(Qf(j))x.preventDefault();else{var _;(_=i.current)===null||_===void 0||_.focus()}}}),onEscapeKeyDown:ae(e.onEscapeKeyDown,x=>{a.current=!0})})))}),d6="FocusGroup",Og=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Nr(d6,n);return h.createElement(gu.Provider,{scope:n},h.createElement(gu.Slot,{scope:n},h.createElement(fe.div,Y({dir:o.dir},r,{ref:t}))))}),Ep=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],h6="FocusGroupItem",Ig=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Z7(n),i=Nr(h6,n);return h.createElement(gu.ItemSlot,{scope:n},h.createElement(fe.button,Y({},r,{ref:t,onKeyDown:ae(e.onKeyDown,a=>{if(["Home","End",...Ep].includes(a.key)){let s=o().map(c=>c.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(a.key)&&s.reverse(),Ep.includes(a.key)){const c=s.indexOf(a.currentTarget);s=s.slice(c+1)}setTimeout(()=>Qf(s)),a.preventDefault()}})})))});function yu(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Qf(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function p6(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function Lg(e){return e?"open":"closed"}function Mg(e,t){return`${e}-trigger-${t}`}function jg(e,t){return`${e}-content-${t}`}function wu(e){return t=>t.pointerType==="mouse"?e(t):void 0}const v6=e6,m6=r6,g6=a6,y6=l6,w6=s6,x6=c6;var C6="var(--vocs_NavigationMenu_chevronDownIcon)",E6="vocs_NavigationMenu_content",_6="vocs_NavigationMenu_item",S6="vocs_NavigationMenu_link",b6="vocs_NavigationMenu_list",$6="vocs_NavigationMenu",T6="vocs_NavigationMenu_trigger vocs_NavigationMenu_link";const Dg=e=>w.jsx(v6,{...e,className:I(e.className,$6)}),Fg=e=>w.jsx(m6,{...e,className:I(e.className,b6)}),Yl=({active:e,children:t,className:n,href:r})=>w.jsx(w6,{asChild:!0,children:w.jsx(nn,{"data-active":e,className:I(n,S6),href:r,variant:"styleless",children:t})}),zg=e=>w.jsx(g6,{...e,className:I(e.className,_6)}),Bg=({active:e,className:t,...n})=>{const{basePath:r}=Je(),o=r;return w.jsx(y6,{...n,"data-active":e,className:I(t,T6),style:Gt({[C6]:`url(${o}/.vocs/icons/chevron-down.svg)`})})},Ug=e=>w.jsx(x6,{...e,className:I(e.className,E6)});function Hg(){return w.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 127.14 96.36",children:[w.jsx("title",{children:"Discord"}),w.jsx("g",{id:"图层_2","data-name":"图层 2",children:w.jsx("g",{id:"Discord_Logos","data-name":"Discord Logos",children:w.jsx("g",{id:"Discord_Logo_-_Large_-_White","data-name":"Discord Logo - Large - White",children:w.jsx("path",{d:"M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z",fill:"currentColor"})})})})]})}function Vg(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 98 96",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"GitHub"}),w.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z",fill:"currentColor"})]})}function k6(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 78 82",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Moon"}),w.jsx("path",{d:"M62.8455 45.9668C63.6268 45.9668 64.2127 45.3809 64.3104 44.5508C65.4334 34.3457 66.0682 33.9551 76.4197 32.3438C77.3963 32.1973 77.9334 31.7578 77.9334 30.8789C77.9334 30.0977 77.3963 29.5605 76.6151 29.4629C66.1658 27.4609 65.4334 27.4609 64.3104 17.2559C64.2127 16.377 63.6268 15.8398 62.8455 15.8398C62.0154 15.8398 61.4783 16.377 61.3807 17.207C60.1111 27.6074 59.6229 28.0957 49.0272 29.4629C48.2947 29.5117 47.7088 30.0977 47.7088 30.8789C47.7088 31.709 48.2947 32.1973 49.0272 32.3438C59.6229 34.3457 60.0623 34.4434 61.3807 44.6484C61.4783 45.3809 62.0154 45.9668 62.8455 45.9668ZM44.535 19.5508C45.0233 19.5508 45.3162 19.2578 45.4139 18.7695C46.6834 12.4707 46.5369 12.373 53.1287 11.0547C53.5682 10.957 53.91 10.7129 53.91 10.1758C53.91 9.63868 53.5682 9.39448 53.1287 9.29688C46.5369 7.97848 46.6834 7.88089 45.4139 1.58199C45.3162 1.09379 45.0233 0.800781 44.535 0.800781C43.9979 0.800781 43.7049 1.09379 43.6072 1.58199C42.3377 7.88089 42.4842 7.97848 35.9412 9.29688C35.4529 9.39448 35.1111 9.63868 35.1111 10.1758C35.1111 10.7129 35.4529 10.957 35.9412 11.0547C42.4842 12.373 42.3865 12.4707 43.6072 18.7695C43.7049 19.2578 43.9979 19.5508 44.535 19.5508Z",fill:"currentColor"}),w.jsx("path",{d:"M34.3298 81.2696C48.49 81.2696 59.9157 74.043 65.0915 61.7872C65.8239 59.9806 65.5798 58.6134 64.7497 57.7833C64.0173 57.0509 62.7478 56.9044 61.3318 57.4903C58.4509 58.6134 54.9353 59.2481 50.6384 59.2481C33.695 59.2481 22.7575 48.6036 22.7575 32.2462C22.7575 27.4122 23.6853 22.6759 24.7595 20.5763C25.5407 18.9161 25.4919 17.5001 24.8083 16.67C24.0271 15.7423 22.6599 15.4005 20.7068 16.1329C8.64624 20.7716 0.345459 33.4181 0.345459 47.8712C0.345459 66.8165 14.5056 81.2696 34.3298 81.2696ZM34.4275 74.5801C18.4607 74.5801 7.03494 62.9591 7.03494 47.3341C7.03494 38.2521 10.9411 30.0489 17.6306 24.629C16.8005 27.0704 16.361 30.6837 16.361 34.1505C16.361 52.8517 29.5446 65.6935 48.8806 65.6935C52.0544 65.6935 54.9841 65.3517 56.4001 64.9122C51.615 70.918 43.4607 74.5801 34.4275 74.5801Z",fill:"currentColor"})]})}function R6(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 84 84",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Sun"}),w.jsx("path",{d:"M41.8675 15.5254C43.9183 15.5254 45.6273 13.7676 45.6273 11.7168V3.80658C45.6273 1.75588 43.9183 0.046875 41.8675 0.046875C39.7679 0.046875 38.0589 1.75588 38.0589 3.80658V11.7168C38.0589 13.7676 39.7679 15.5254 41.8675 15.5254ZM60.3246 23.2402C61.7895 24.7051 64.2309 24.7539 65.7446 23.2402L71.3598 17.6738C72.7758 16.209 72.7758 13.7188 71.3598 12.2539C69.8949 10.7891 67.4535 10.7891 65.9887 12.2539L60.3246 17.918C58.9086 19.3828 58.9086 21.7754 60.3246 23.2402ZM67.9906 41.7461C67.9906 43.7969 69.7485 45.5547 71.7992 45.5547H79.6117C81.7113 45.5547 83.4202 43.7969 83.4202 41.7461C83.4202 39.6953 81.7113 37.9375 79.6117 37.9375H71.7992C69.7485 37.9375 67.9906 39.6953 67.9906 41.7461ZM60.3246 60.3008C58.9086 61.7656 58.9086 64.1582 60.3246 65.623L65.9887 71.2871C67.4535 72.7519 69.8949 72.7031 71.3598 71.2383C72.7758 69.7734 72.7758 67.332 71.3598 65.8672L65.6957 60.3008C64.2309 58.8359 61.7895 58.8359 60.3246 60.3008ZM41.8675 67.9668C39.7679 67.9668 38.0589 69.7246 38.0589 71.7754V79.6855C38.0589 81.7363 39.7679 83.4453 41.8675 83.4453C43.9183 83.4453 45.6273 81.7363 45.6273 79.6855V71.7754C45.6273 69.7246 43.9183 67.9668 41.8675 67.9668ZM23.3617 60.3008C21.8969 58.8359 19.4067 58.8359 17.9418 60.3008L12.3754 65.8184C10.9106 67.2832 10.9106 69.7246 12.3266 71.1894C13.7914 72.6543 16.2328 72.7031 17.6977 71.2383L23.3129 65.623C24.7778 64.1582 24.7778 61.7656 23.3617 60.3008ZM15.6957 41.7461C15.6957 39.6953 13.9867 37.9375 11.8871 37.9375H4.07455C1.97497 37.9375 0.265991 39.6953 0.265991 41.7461C0.265991 43.7969 1.97497 45.5547 4.07455 45.5547H11.8871C13.9867 45.5547 15.6957 43.7969 15.6957 41.7461ZM23.3129 23.2402C24.7778 21.8242 24.7778 19.334 23.3617 17.918L17.7465 12.2539C16.3305 10.8379 13.8403 10.7891 12.4242 12.2539C10.9594 13.7188 10.9594 16.209 12.3754 17.625L17.9418 23.2402C19.4067 24.7051 21.8481 24.7051 23.3129 23.2402Z",fill:"currentColor"}),w.jsx("path",{d:"M41.8675 61.668C52.7073 61.668 61.7405 52.6836 61.7405 41.7461C61.7405 30.8086 52.7073 21.8242 41.8675 21.8242C30.9788 21.8242 21.9456 30.8086 21.9456 41.7461C21.9456 52.6836 30.9788 61.668 41.8675 61.668ZM41.8675 55.0273C34.5921 55.0273 28.5862 48.9727 28.5862 41.7461C28.5862 34.5195 34.5921 28.4648 41.8675 28.4648C49.0941 28.4648 55.0999 34.5195 55.0999 41.7461C55.0999 48.9727 49.0941 55.0273 41.8675 55.0273Z",fill:"currentColor"})]})}function Wg(){return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 50 50",children:[w.jsx("title",{children:"Telegram"}),w.jsx("path",{d:"M25 2c12.703 0 23 10.297 23 23S37.703 48 25 48 2 37.703 2 25 12.297 2 25 2zm7.934 32.375c.423-1.298 2.405-14.234 2.65-16.783.074-.772-.17-1.285-.648-1.514-.578-.278-1.434-.139-2.427.219-1.362.491-18.774 7.884-19.78 8.312-.954.405-1.856.847-1.856 1.487 0 .45.267.703 1.003.966.766.273 2.695.858 3.834 1.172 1.097.303 2.346.04 3.046-.395.742-.461 9.305-6.191 9.92-6.693.614-.502 1.104.141.602.644-.502.502-6.38 6.207-7.155 6.997-.941.959-.273 1.953.358 2.351.721.454 5.906 3.932 6.687 4.49.781.558 1.573.811 2.298.811.725 0 1.107-.955 1.468-2.064z",fill:"currentColor"})]})}function Kg(){return w.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Warpcast"}),w.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.92028 31.9901H24.0698C28.4371 31.9901 31.9901 28.4373 31.9901 24.0699V7.92053C31.9901 3.55319 28.4371 0.000137329 24.0698 0.000137329H7.92028C3.55304 0.000137329 0 3.55319 0 7.92053V24.0699C0 28.4373 3.55304 31.9901 7.92028 31.9901ZM19.4134 16.048L20.9908 10.124H25.1383L21.2924 23.2218H17.7062L15.9951 17.1397L14.284 23.2218H10.7055L6.85115 10.124H10.999L12.5915 16.0916L14.1891 10.124H17.8309L19.4134 16.048Z",fill:"currentColor"})]})}function Yg(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 1200 1227",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"X"}),w.jsx("path",{d:"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z",fill:"currentColor"})]})}xu.Curtain=N6;function xu(){var r,o,i,a;const e=Je(),{showLogo:t,showSidebar:n}=Rr();return w.jsxs("div",{className:I(M7,t&&!n&&j7),children:[w.jsx(P7,{}),t&&w.jsx("div",{className:L7,children:w.jsx("div",{className:I7,children:w.jsx(Gn,{to:"/",style:{alignItems:"center",display:"flex",height:"56px",marginTop:"4px"},children:w.jsx(Kf,{})})})}),w.jsx("div",{className:wp}),w.jsxs("div",{className:wp,children:[(((r=e.topNav)==null?void 0:r.length)||0)>0&&w.jsxs(w.Fragment,{children:[w.jsx("div",{className:Js,children:w.jsx(P6,{})}),w.jsx("div",{className:I(yp,Sa)})]}),e.socials&&((o=e.socials)==null?void 0:o.length)>0&&w.jsxs(w.Fragment,{children:[w.jsx("div",{className:I(Js,Sa),style:{marginLeft:"-8px",marginRight:"-8px"},children:e.socials.map((l,s)=>w.jsx("div",{className:yl,children:w.jsx(M6,{...l})},s))}),!((i=e.theme)!=null&&i.colorScheme)&&w.jsx("div",{className:I(yp,Sa)})]}),!((a=e.theme)!=null&&a.colorScheme)&&w.jsx("div",{className:I(Js,Sa),style:{marginLeft:"-8px",marginRight:"-8px"},children:w.jsx("div",{className:yl,children:w.jsx(O6,{})})})]})]})}function N6(){return w.jsx("div",{className:O7})}function P6(){const{topNav:e}=Je();if(!e)return null;const{pathname:t}=Re(),n=Hi({pathname:t,items:e});return w.jsx(Dg,{delayDuration:0,children:w.jsx(Fg,{children:e.map((r,o)=>r.link?w.jsx(Yl,{active:n.includes(r.id),className:yl,href:r.link,children:r.text},o):r.items?w.jsxs(zg,{className:yl,children:[w.jsx(Bg,{active:n.includes(r.id),children:r.text}),w.jsx(Ug,{className:A7,children:w.jsx(A6,{items:r.items})})]},o):null)})})}function A6({items:e}){const{pathname:t}=Re(),n=Hi({pathname:t,items:e});return w.jsx("ul",{children:e==null?void 0:e.map((r,o)=>w.jsx(Yl,{active:n.includes(r.id),href:r.link,children:r.text},o))})}function O6(){const{toggle:e}=y5();return w.jsxs("button",{className:Pg,onClick:e,type:"button",children:[w.jsx(st,{className:I(vu,w5),size:"20px",label:"Light",icon:R6}),w.jsx(st,{className:I(vu,x5),size:"20px",label:"Dark",icon:k6,style:{marginTop:"-2px"}})]})}const I6={discord:Hg,github:Vg,telegram:Wg,warpcast:Kg,x:Yg},L6={discord:"23px",github:"20px",telegram:"21px",warpcast:"20px",x:"18px"};function M6({icon:e,label:t,link:n}){return w.jsx("a",{className:Pg,href:n,target:"_blank",rel:"noopener noreferrer",children:w.jsx(st,{className:vu,label:t,icon:I6[e],size:L6[e]||"20px"})})}const j6=({children:e})=>e,D6=({children:e})=>e;function F6(){const e=kr(),t=Je();return h.useMemo(()=>{const{pattern:n="",text:r="Edit page"}=t.editLink??{};let o="";return typeof n=="function"?o="":e.filePath&&(o=n.replace(/:path/g,e.filePath)),{url:o,text:r}},[t.editLink,e.filePath])}function Gg(){const[e,t]=h.useState(!1);return h.useEffect(()=>{t(!0)},[]),e}var z6="vocs_Footer_container",B6="vocs_Footer_editLink",U6="vocs_Footer_lastUpdated",H6="vocs_Footer_navigation",_p="vocs_Footer_navigationIcon",V6="vocs_Footer_navigationIcon_left",W6="vocs_Footer_navigationIcon_right",Sp="vocs_Footer_navigationItem",K6="vocs_Footer_navigationItem_left",Y6="vocs_Footer_navigationItem_right",bp="vocs_Footer_navigationText",$p="vocs_Footer_navigationTextInner",G6="vocs_Footer";function Q6(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 72 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Arrow Left"}),w.jsx("path",{d:"M0.325684 29.7461C0.325684 30.8203 0.813963 31.8457 1.69286 32.6758L26.8882 57.8223C27.7671 58.6524 28.7437 59.043 29.7691 59.043C31.9175 59.043 33.5777 57.4317 33.5777 55.2344C33.5777 54.209 33.2359 53.1836 32.5035 52.5L25.7652 45.5176L9.26126 30.6738L8.38236 32.7734L21.3706 33.7012H67.4644C69.7593 33.7012 71.3706 32.041 71.3706 29.7461C71.3706 27.4512 69.7593 25.791 67.4644 25.791H21.3706L8.38236 26.7188L9.26126 28.8672L25.7652 13.9746L32.5035 6.99221C33.2359 6.30861 33.5777 5.28322 33.5777 4.25782C33.5777 2.06052 31.9175 0.449219 29.7691 0.449219C28.7437 0.449219 27.7671 0.839814 26.8882 1.66991L1.69286 26.8164C0.813963 27.6465 0.325684 28.6719 0.325684 29.7461Z",fill:"currentColor"})]})}function Z6(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 72 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Arrow Right"}),w.jsx("path",{d:"M71.3706 29.7461C71.3706 28.6719 70.8824 27.6465 70.0035 26.8164L44.8081 1.66991C43.9292 0.839814 42.9527 0.449219 41.9273 0.449219C39.7789 0.449219 38.1187 2.06052 38.1187 4.25782C38.1187 5.28322 38.4605 6.30861 39.1929 6.99221L45.9312 13.9746L62.4351 28.8672L63.314 26.7188L50.3257 25.791H4.23196C1.93706 25.791 0.325684 27.4512 0.325684 29.7461C0.325684 32.041 1.93706 33.7012 4.23196 33.7012H50.3257L63.314 32.7734L62.4351 30.6738L45.9312 45.5176L39.1929 52.5C38.4605 53.1836 38.1187 54.209 38.1187 55.2344C38.1187 57.4317 39.7789 59.043 41.9273 59.043C42.9527 59.043 43.9292 58.6524 44.8081 57.8223L70.0035 32.6758C70.8824 31.8457 71.3706 30.8203 71.3706 29.7461Z",fill:"currentColor"})]})}function X6(){const{layout:e}=Rr(),t=Gg(),n=kr(),r=h.useMemo(()=>n.lastUpdatedAt?new Date(n.lastUpdatedAt):void 0,[n.lastUpdatedAt]),o=h.useMemo(()=>r==null?void 0:r.toISOString(),[r]);return w.jsxs("footer",{className:G6,children:[e==="docs"&&w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:z6,children:[w.jsx(J6,{}),t&&n.lastUpdatedAt&&w.jsxs("div",{className:U6,children:["Last updated:"," ",w.jsx("time",{dateTime:o,children:new Intl.DateTimeFormat(void 0,{dateStyle:"short",timeStyle:"short"}).format(r)})]})]}),w.jsx(q6,{})]}),w.jsx(D6,{})]})}function J6(){const e=F6();return e.url?w.jsx("div",{children:w.jsxs(nn,{className:B6,href:e.url,children:[w.jsx(v5,{})," ",e.text]})}):null}function q6(){const e=Gg(),t=Hl(),{pathname:n}=Re(),r=h.useMemo(()=>Qg(t.items||[]).filter(s=>s.link),[t]),o=h.useMemo(()=>r.findIndex(s=>s.link===n),[r,n]),[i,a]=h.useMemo(()=>o<0?[]:o===0?[null,r[o+1]]:o===r.length-1?[r[o-1],null]:[r[o-1],r[o+1]],[o,r]),l=Df();return h.useEffect(()=>{let s=o,u=!1;const f=d=>{if(d.code==="ShiftLeft"&&(u=!0),u){const p=r[s+1],y=r[s-1];d.code==="ArrowRight"&&(p!=null&&p.link)&&(l(p.link),s++),d.code==="ArrowLeft"&&(y!=null&&y.link)&&(l(y.link),s--)}},c=d=>{d.code==="ShiftLeft"&&(u=!1)};return window.addEventListener("keydown",f),window.addEventListener("keyup",c),()=>{window.removeEventListener("keydown",f),window.removeEventListener("keyup",c)}},[]),e?w.jsxs("div",{className:H6,children:[i?w.jsxs(nn,{className:I(Sp,K6),href:i.link,variant:"styleless",children:[w.jsxs("div",{className:bp,children:[w.jsx("div",{className:I(_p,V6),style:Gt({[mu]:"0.75em"}),children:w.jsx(st,{label:"Previous",icon:Q6})}),w.jsx("div",{className:$p,children:i.text})]}),w.jsx(eo,{description:"Previous",keys:["shift","←"]})]}):w.jsx("div",{}),a?w.jsxs(nn,{className:I(Sp,Y6),href:a.link,variant:"styleless",children:[w.jsxs("div",{className:bp,children:[w.jsx("div",{className:$p,style:{textAlign:"right"},children:a.text}),w.jsx("div",{className:I(_p,W6),style:Gt({[mu]:"0.75em"}),children:w.jsx(st,{label:"Next",icon:Z6})})]}),w.jsx(eo,{description:"Next",keys:["shift","→"]})]}):w.jsx("div",{})]}):null}function Qg(e){const t=[];for(const n of e){if(n.items){t.push(...Qg(n.items));continue}t.push(n)}return t}const Zg="Collapsible",[e8,Xg]=En(Zg),[t8,Zf]=e8(Zg),n8=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:a,...l}=e,[s=!1,u]=rr({prop:r,defaultProp:o,onChange:a});return h.createElement(t8,{scope:n,disabled:i,contentId:rn(),open:s,onOpenToggle:h.useCallback(()=>u(f=>!f),[u])},h.createElement(fe.div,Y({"data-state":Xf(s),"data-disabled":i?"":void 0},l,{ref:t})))}),r8="CollapsibleTrigger",o8=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Zf(r8,n);return h.createElement(fe.button,Y({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Xf(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},r,{ref:t,onClick:ae(e.onClick,o.onOpenToggle)}))}),Jg="CollapsibleContent",i8=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Zf(Jg,e.__scopeCollapsible);return h.createElement(_n,{present:n||o.open},({present:i})=>h.createElement(a8,Y({},r,{ref:t,present:i})))}),a8=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,a=Zf(Jg,n),[l,s]=h.useState(r),u=h.useRef(null),f=ze(t,u),c=h.useRef(0),d=c.current,p=h.useRef(0),y=p.current,g=a.open||l,C=h.useRef(g),v=h.useRef();return h.useEffect(()=>{const m=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(m)},[]),gn(()=>{const m=u.current;if(m){v.current=v.current||{transitionDuration:m.style.transitionDuration,animationName:m.style.animationName},m.style.transitionDuration="0s",m.style.animationName="none";const x=m.getBoundingClientRect();c.current=x.height,p.current=x.width,C.current||(m.style.transitionDuration=v.current.transitionDuration,m.style.animationName=v.current.animationName),s(r)}},[a.open,r]),h.createElement(fe.div,Y({"data-state":Xf(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!g},i,{ref:f,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style}}),g&&o)});function Xf(e){return e?"open":"closed"}const l8=n8,s8=o8,c8=i8,Pr="Accordion",u8=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Jf,f8,d8]=Kl(Pr),[Gl,r$]=En(Pr,[d8,Xg]),qf=Xg(),qg=Z.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return Z.createElement(Jf.Provider,{scope:e.__scopeAccordion},n==="multiple"?Z.createElement(m8,Y({},i,{ref:t})):Z.createElement(v8,Y({},o,{ref:t})))});qg.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[e1,h8]=Gl(Pr),[t1,p8]=Gl(Pr,{collapsible:!1}),v8=Z.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...a}=e,[l,s]=rr({prop:n,defaultProp:r,onChange:o});return Z.createElement(e1,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:s,onItemClose:Z.useCallback(()=>i&&s(""),[i,s])},Z.createElement(t1,{scope:e.__scopeAccordion,collapsible:i},Z.createElement(n1,Y({},a,{ref:t}))))}),m8=Z.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[a=[],l]=rr({prop:n,defaultProp:r,onChange:o}),s=Z.useCallback(f=>l((c=[])=>[...c,f]),[l]),u=Z.useCallback(f=>l((c=[])=>c.filter(d=>d!==f)),[l]);return Z.createElement(e1,{scope:e.__scopeAccordion,value:a,onItemOpen:s,onItemClose:u},Z.createElement(t1,{scope:e.__scopeAccordion,collapsible:!0},Z.createElement(n1,Y({},i,{ref:t}))))}),[g8,ed]=Gl(Pr),n1=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...a}=e,l=Z.useRef(null),s=ze(l,t),u=f8(n),c=Wl(o)==="ltr",d=ae(e.onKeyDown,p=>{var y;if(!u8.includes(p.key))return;const g=p.target,C=u().filter(T=>{var P;return!((P=T.ref.current)!==null&&P!==void 0&&P.disabled)}),v=C.findIndex(T=>T.ref.current===g),m=C.length;if(v===-1)return;p.preventDefault();let x=v;const E=0,S=m-1,_=()=>{x=v+1,x>S&&(x=E)},b=()=>{x=v-1,x{const{__scopeAccordion:n,value:r,...o}=e,i=ed(Cu,n),a=h8(Cu,n),l=qf(n),s=rn(),u=r&&a.value.includes(r)||!1,f=i.disabled||e.disabled;return Z.createElement(y8,{scope:n,open:u,disabled:f,triggerId:s},Z.createElement(l8,Y({"data-orientation":i.orientation,"data-state":_8(u)},l,o,{ref:t,disabled:f,open:u,onOpenChange:c=>{c?a.onItemOpen(r):a.onItemClose(r)}})))}),Tp="AccordionTrigger",x8=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ed(Pr,n),i=r1(Tp,n),a=p8(Tp,n),l=qf(n);return Z.createElement(Jf.ItemSlot,{scope:n},Z.createElement(s8,Y({"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId},l,r,{ref:t})))}),C8="AccordionContent",E8=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ed(Pr,n),i=r1(C8,n),a=qf(n);return Z.createElement(c8,Y({role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation},a,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function _8(e){return e?"open":"closed"}const S8=qg,b8=w8,$8=x8,T8=E8;var k8="vocs_MobileSearch_searchButton";function R8(){const[e,t]=h.useState(!1);return w.jsxs(wg,{open:e,onOpenChange:t,children:[w.jsx(xg,{asChild:!0,children:w.jsx("button",{className:k8,type:"button","aria-label":"Search",children:w.jsx(Bf,{height:21,width:21})})}),w.jsx(Ng,{open:e,onClose:()=>t(!1)})]})}var N8="vocs_MobileTopNav_button",P8="var(--vocs_MobileTopNav_chevronDownIcon)",A8="var(--vocs_MobileTopNav_chevronUpIcon)",O8="vocs_MobileTopNav_content",I8="vocs_MobileTopNav_curtain",kp="vocs_MobileTopNav_curtainGroup",ec="vocs_MobileTopNav_curtainItem",L8="vocs_MobileTopNav_divider",ba="vocs_MobileTopNav_group",M8="vocs_MobileTopNav_icon",j8="vocs_MobileTopNav_item",D8="vocs_MobileTopNav_logo",F8="vocs_MobileTopNav_menuTitle",o1="vocs_MobileTopNav_menuTrigger",i1="vocs_MobileTopNav_navigation",z8="vocs_MobileTopNav_navigationContent",Qo="vocs_MobileTopNav_navigationItem",B8="vocs_MobileTopNav_trigger",U8="vocs_MobileTopNav_navigation_compact",H8="vocs_MobileTopNav_outlinePopover",Rp="vocs_MobileTopNav_outlineTrigger",V8="vocs_MobileTopNav",Np="vocs_MobileTopNav_section",W8="vocs_MobileTopNav_separator",K8="vocs_MobileTopNav_sidebarPopover",Y8="vocs_MobileTopNav_topNavPopover";function G8(e,t){let n=!1;return()=>{n=!0,setTimeout(()=>{n&&e(),n=!1},t)}}var Q8="vocs_Outline_heading",Z8="vocs_Outline_item",X8="vocs_Outline_items",J8="vocs_Outline_link",q8="vocs_Outline_nav",eC="vocs_Outline";function a1({minLevel:e=2,maxLevel:t=3,highlightActive:n=!0,onClickItem:r,showTitle:o=!0}={}){const{outlineFooter:i}=Je(),{showOutline:a}=Rr(),l=typeof a=="number"?e+a-1:t,s=h.useRef(!0),{pathname:u,hash:f}=Re(),[c,d]=h.useState([]);h.useEffect(()=>{if(typeof window>"u")return;const v=Array.from(document.querySelectorAll(`.${H0}`));d(v)},[u]);const p=h.useMemo(()=>c?c.map(v=>{const m=v.querySelector(`.${V0}`);if(!m)return null;const x=m.getBoundingClientRect(),E=m.id,S=Number(v.tagName[1]),_=v.textContent,b=window.scrollY+x.top;return Sl?null:{id:E,level:S,slugTargetElement:m,text:_,topOffset:b}}).filter(Boolean):[],[c,l,e]),[y,g]=h.useState(f.replace("#",""));if(h.useEffect(()=>{if(typeof window>"u")return;const v=new IntersectionObserver(([m])=>{var E;if(!s.current)return;const x=m.target.id;if(m.isIntersecting)g(x);else{if(!(m.target.getBoundingClientRect().top>0))return;const b=p.findIndex(T=>T.id===y),$=(E=p[b-1])==null?void 0:E.id;g($)}},{rootMargin:"0px 0px -95% 0px"});for(const m of p)v.observe(m.slugTargetElement);return()=>v.disconnect()},[y,p]),h.useEffect(()=>{if(typeof window>"u")return;const v=new IntersectionObserver(([m])=>{var E;if(!s.current)return;const x=(E=p[p.length-1])==null?void 0:E.id;m.isIntersecting?g(x):y===x&&g(p[p.length-2].id)});return v.observe(document.querySelector("[data-bottom-observer]")),()=>v.disconnect()},[y,p]),h.useEffect(()=>{if(typeof window>"u")return;const v=G8(()=>{var m,x,E;if(s.current){if(window.scrollY===0){g((m=p[0])==null?void 0:m.id);return}if(window.scrollY+document.documentElement.clientHeight>=document.documentElement.scrollHeight){g((x=p[p.length-1])==null?void 0:x.id);return}for(let S=0;Swindow.removeEventListener("scroll",v)},[p]),p.length===0)return null;const C=p.filter(v=>v.level===e);return w.jsxs("aside",{className:eC,children:[w.jsxs("nav",{className:q8,children:[o&&w.jsx("h2",{className:Q8,children:"On this page"}),w.jsx(l1,{activeId:n?y:null,items:p,onClickItem:()=>{r==null||r(),s.current=!1,setTimeout(()=>{s.current=!0},500)},levelItems:C,setActiveId:g})]}),ml(i)]})}function l1({activeId:e,items:t,levelItems:n,onClickItem:r,setActiveId:o}){const{pathname:i}=Re();return w.jsx("ul",{className:X8,children:n.map(({id:a,level:l,text:s})=>{const u=`#${a}`,f=e===a,c=(()=>{var C;const p=t.findIndex(v=>v.id===a)+1,y=(C=t[p])==null?void 0:C.level;if(y<=l)return null;const g=[];for(let v=p;v{r==null||r(),o(a)},className:J8,children:s})}),c&&w.jsx(l1,{activeId:e,levelItems:c,items:t,onClickItem:r,setActiveId:o})]},a)})})}const tC=["top","right","bottom","left"],Qn=Math.min,Et=Math.max,xl=Math.round,$a=Math.floor,Zn=e=>({x:e,y:e}),nC={left:"right",right:"left",bottom:"top",top:"bottom"},rC={start:"end",end:"start"};function Eu(e,t,n){return Et(e,Qn(t,n))}function yn(e,t){return typeof e=="function"?e(t):e}function wn(e){return e.split("-")[0]}function No(e){return e.split("-")[1]}function td(e){return e==="x"?"y":"x"}function nd(e){return e==="y"?"height":"width"}function Po(e){return["top","bottom"].includes(wn(e))?"y":"x"}function rd(e){return td(Po(e))}function oC(e,t,n){n===void 0&&(n=!1);const r=No(e),o=rd(e),i=nd(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Cl(a)),[a,Cl(a)]}function iC(e){const t=Cl(e);return[_u(e),t,_u(t)]}function _u(e){return e.replace(/start|end/g,t=>rC[t])}function aC(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function lC(e,t,n,r){const o=No(e);let i=aC(wn(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(_u)))),i}function Cl(e){return e.replace(/left|right|bottom|top/g,t=>nC[t])}function sC(e){return{top:0,right:0,bottom:0,left:0,...e}}function s1(e){return typeof e!="number"?sC(e):{top:e,right:e,bottom:e,left:e}}function El(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Pp(e,t,n){let{reference:r,floating:o}=e;const i=Po(t),a=rd(t),l=nd(a),s=wn(t),u=i==="y",f=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,d=r[l]/2-o[l]/2;let p;switch(s){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:c};break;case"left":p={x:r.x-o.width,y:c};break;default:p={x:r.x,y:r.y}}switch(No(t)){case"start":p[a]-=d*(n&&u?-1:1);break;case"end":p[a]+=d*(n&&u?-1:1);break}return p}const cC=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:c}=Pp(u,r,s),d=r,p={},y=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:u,padding:f=0}=yn(e,t)||{};if(u==null)return{};const c=s1(f),d={x:n,y:r},p=rd(o),y=nd(p),g=await a.getDimensions(u),C=p==="y",v=C?"top":"left",m=C?"bottom":"right",x=C?"clientHeight":"clientWidth",E=i.reference[y]+i.reference[p]-d[p]-i.floating[y],S=d[p]-i.reference[p],_=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let b=_?_[x]:0;(!b||!await(a.isElement==null?void 0:a.isElement(_)))&&(b=l.floating[x]||i.floating[y]);const $=E/2-S/2,T=b/2-g[y]/2-1,P=Qn(c[v],T),j=Qn(c[m],T),L=P,D=b-g[y]-j,N=b/2-g[y]/2+$,z=Eu(L,N,D),V=!s.arrow&&No(o)!=null&&N!==z&&i.reference[y]/2-(NL<=0)){var T,P;const L=(((T=i.flip)==null?void 0:T.index)||0)+1,D=S[L];if(D)return{data:{index:L,overflows:$},reset:{placement:D}};let N=(P=$.filter(z=>z.overflows[0]<=0).sort((z,V)=>z.overflows[1]-V.overflows[1])[0])==null?void 0:P.placement;if(!N)switch(p){case"bestFit":{var j;const z=(j=$.map(V=>[V.placement,V.overflows.filter(U=>U>0).reduce((U,O)=>U+O,0)]).sort((V,U)=>V[1]-U[1])[0])==null?void 0:j[0];z&&(N=z);break}case"initialPlacement":N=l;break}if(o!==N)return{reset:{placement:N}}}return{}}}};function Ap(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Op(e){return tC.some(t=>e[t]>=0)}const dC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=yn(e,t);switch(r){case"referenceHidden":{const i=await Oi(t,{...o,elementContext:"reference"}),a=Ap(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Op(a)}}}case"escaped":{const i=await Oi(t,{...o,altBoundary:!0}),a=Ap(i,n.floating);return{data:{escapedOffsets:a,escaped:Op(a)}}}default:return{}}}}};async function hC(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=wn(n),l=No(n),s=Po(n)==="y",u=["left","top"].includes(a)?-1:1,f=i&&s?-1:1,c=yn(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:y}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return l&&typeof y=="number"&&(p=l==="end"?y*-1:y),s?{x:p*f,y:d*u}:{x:d*u,y:p*f}}const c1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await hC(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},pC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:C=>{let{x:v,y:m}=C;return{x:v,y:m}}},...s}=yn(e,t),u={x:n,y:r},f=await Oi(t,s),c=Po(wn(o)),d=td(c);let p=u[d],y=u[c];if(i){const C=d==="y"?"top":"left",v=d==="y"?"bottom":"right",m=p+f[C],x=p-f[v];p=Eu(m,p,x)}if(a){const C=c==="y"?"top":"left",v=c==="y"?"bottom":"right",m=y+f[C],x=y-f[v];y=Eu(m,y,x)}const g=l.fn({...t,[d]:p,[c]:y});return{...g,data:{x:g.x-n,y:g.y-r}}}}},vC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=yn(e,t),f={x:n,y:r},c=Po(o),d=td(c);let p=f[d],y=f[c];const g=yn(l,t),C=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(s){const x=d==="y"?"height":"width",E=i.reference[d]-i.floating[x]+C.mainAxis,S=i.reference[d]+i.reference[x]-C.mainAxis;pS&&(p=S)}if(u){var v,m;const x=d==="y"?"width":"height",E=["top","left"].includes(wn(o)),S=i.reference[c]-i.floating[x]+(E&&((v=a.offset)==null?void 0:v[c])||0)+(E?0:C.crossAxis),_=i.reference[c]+i.reference[x]+(E?0:((m=a.offset)==null?void 0:m[c])||0)-(E?C.crossAxis:0);y_&&(y=_)}return{[d]:p,[c]:y}}}},mC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=()=>{},...l}=yn(e,t),s=await Oi(t,l),u=wn(n),f=No(n),c=Po(n)==="y",{width:d,height:p}=r.floating;let y,g;u==="top"||u==="bottom"?(y=u,g=f===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(g=u,y=f==="end"?"top":"bottom");const C=p-s[y],v=d-s[g],m=!t.middlewareData.shift;let x=C,E=v;if(c){const _=d-s.left-s.right;E=f||m?Qn(v,_):_}else{const _=p-s.top-s.bottom;x=f||m?Qn(C,_):_}if(m&&!f){const _=Et(s.left,0),b=Et(s.right,0),$=Et(s.top,0),T=Et(s.bottom,0);c?E=d-2*(_!==0||b!==0?_+b:Et(s.left,s.right)):x=p-2*($!==0||T!==0?$+T:Et(s.top,s.bottom))}await a({...t,availableWidth:E,availableHeight:x});const S=await o.getDimensions(i.floating);return d!==S.width||p!==S.height?{reset:{rects:!0}}:{}}}};function Xn(e){return u1(e)?(e.nodeName||"").toLowerCase():"#document"}function bt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function bn(e){var t;return(t=(u1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function u1(e){return e instanceof Node||e instanceof bt(e).Node}function nt(e){return e instanceof Element||e instanceof bt(e).Element}function on(e){return e instanceof HTMLElement||e instanceof bt(e).HTMLElement}function Su(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof bt(e).ShadowRoot}function Wi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Mt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function gC(e){return["table","td","th"].includes(Xn(e))}function od(e){const t=id(),n=Mt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function yC(e){let t=Eo(e);for(;on(t)&&!Ql(t);){if(od(t))return t;t=Eo(t)}return null}function id(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ql(e){return["html","body","#document"].includes(Xn(e))}function Mt(e){return bt(e).getComputedStyle(e)}function Zl(e){return nt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Eo(e){if(Xn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Su(e)&&e.host||bn(e);return Su(t)?t.host:t}function f1(e){const t=Eo(e);return Ql(t)?e.ownerDocument?e.ownerDocument.body:e.body:on(t)&&Wi(t)?t:f1(t)}function Ii(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=f1(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=bt(o);return i?t.concat(a,a.visualViewport||[],Wi(o)?o:[],a.frameElement&&n?Ii(a.frameElement):[]):t.concat(o,Ii(o,[],n))}function d1(e){const t=Mt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=on(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=xl(n)!==i||xl(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function ad(e){return nt(e)?e:e.contextElement}function so(e){const t=ad(e);if(!on(t))return Zn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=d1(t);let a=(i?xl(n.width):n.width)/r,l=(i?xl(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const wC=Zn(0);function h1(e){const t=bt(e);return!id()||!t.visualViewport?wC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==bt(e)?!1:t}function Er(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=ad(e);let a=Zn(1);t&&(r?nt(r)&&(a=so(r)):a=so(e));const l=xC(i,n,r)?h1(i):Zn(0);let s=(o.left+l.x)/a.x,u=(o.top+l.y)/a.y,f=o.width/a.x,c=o.height/a.y;if(i){const d=bt(i),p=r&&nt(r)?bt(r):r;let y=d,g=y.frameElement;for(;g&&r&&p!==y;){const C=so(g),v=g.getBoundingClientRect(),m=Mt(g),x=v.left+(g.clientLeft+parseFloat(m.paddingLeft))*C.x,E=v.top+(g.clientTop+parseFloat(m.paddingTop))*C.y;s*=C.x,u*=C.y,f*=C.x,c*=C.y,s+=x,u+=E,y=bt(g),g=y.frameElement}}return El({width:f,height:c,x:s,y:u})}const CC=[":popover-open",":modal"];function p1(e){return CC.some(t=>{try{return e.matches(t)}catch{return!1}})}function EC(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=bn(r),l=t?p1(t.floating):!1;if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},u=Zn(1);const f=Zn(0),c=on(r);if((c||!c&&!i)&&((Xn(r)!=="body"||Wi(a))&&(s=Zl(r)),on(r))){const d=Er(r);u=so(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+f.x,y:n.y*u.y-s.scrollTop*u.y+f.y}}function _C(e){return Array.from(e.getClientRects())}function v1(e){return Er(bn(e)).left+Zl(e).scrollLeft}function SC(e){const t=bn(e),n=Zl(e),r=e.ownerDocument.body,o=Et(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Et(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+v1(e);const l=-n.scrollTop;return Mt(r).direction==="rtl"&&(a+=Et(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}function bC(e,t){const n=bt(e),r=bn(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const u=id();(!u||u&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}function $C(e,t){const n=Er(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=on(e)?so(e):Zn(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,s=o*i.x,u=r*i.y;return{width:a,height:l,x:s,y:u}}function Ip(e,t,n){let r;if(t==="viewport")r=bC(e,n);else if(t==="document")r=SC(bn(e));else if(nt(t))r=$C(t,n);else{const o=h1(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return El(r)}function m1(e,t){const n=Eo(e);return n===t||!nt(n)||Ql(n)?!1:Mt(n).position==="fixed"||m1(n,t)}function TC(e,t){const n=t.get(e);if(n)return n;let r=Ii(e,[],!1).filter(l=>nt(l)&&Xn(l)!=="body"),o=null;const i=Mt(e).position==="fixed";let a=i?Eo(e):e;for(;nt(a)&&!Ql(a);){const l=Mt(a),s=od(a);!s&&l.position==="fixed"&&(o=null),(i?!s&&!o:!s&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Wi(a)&&!s&&m1(e,a))?r=r.filter(f=>f!==a):o=l,a=Eo(a)}return t.set(e,r),r}function kC(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?TC(t,this._c):[].concat(n),r],l=a[0],s=a.reduce((u,f)=>{const c=Ip(t,f,o);return u.top=Et(c.top,u.top),u.right=Qn(c.right,u.right),u.bottom=Qn(c.bottom,u.bottom),u.left=Et(c.left,u.left),u},Ip(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function RC(e){const{width:t,height:n}=d1(e);return{width:t,height:n}}function NC(e,t,n){const r=on(t),o=bn(t),i=n==="fixed",a=Er(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=Zn(0);if(r||!r&&!i)if((Xn(t)!=="body"||Wi(o))&&(l=Zl(t)),r){const c=Er(t,!0,i,t);s.x=c.x+t.clientLeft,s.y=c.y+t.clientTop}else o&&(s.x=v1(o));const u=a.left+l.scrollLeft-s.x,f=a.top+l.scrollTop-s.y;return{x:u,y:f,width:a.width,height:a.height}}function Lp(e,t){return!on(e)||Mt(e).position==="fixed"?null:t?t(e):e.offsetParent}function g1(e,t){const n=bt(e);if(!on(e)||p1(e))return n;let r=Lp(e,t);for(;r&&gC(r)&&Mt(r).position==="static";)r=Lp(r,t);return r&&(Xn(r)==="html"||Xn(r)==="body"&&Mt(r).position==="static"&&!od(r))?n:r||yC(e)||n}const PC=async function(e){const t=this.getOffsetParent||g1,n=this.getDimensions;return{reference:NC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function AC(e){return Mt(e).direction==="rtl"}const y1={convertOffsetParentRelativeRectToViewportRelativeRect:EC,getDocumentElement:bn,getClippingRect:kC,getOffsetParent:g1,getElementRects:PC,getClientRects:_C,getDimensions:RC,getScale:so,isElement:nt,isRTL:AC};function OC(e,t){let n=null,r;const o=bn(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();const{left:u,top:f,width:c,height:d}=e.getBoundingClientRect();if(l||t(),!c||!d)return;const p=$a(f),y=$a(o.clientWidth-(u+c)),g=$a(o.clientHeight-(f+d)),C=$a(u),m={rootMargin:-p+"px "+-y+"px "+-g+"px "+-C+"px",threshold:Et(0,Qn(1,s))||1};let x=!0;function E(S){const _=S[0].intersectionRatio;if(_!==s){if(!x)return a();_?a(!1,_):r=setTimeout(()=>{a(!1,1e-7)},100)}x=!1}try{n=new IntersectionObserver(E,{...m,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,m)}n.observe(e)}return a(!0),i}function IC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,u=ad(e),f=o||i?[...u?Ii(u):[],...Ii(t)]:[];f.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const c=u&&l?OC(u,n):null;let d=-1,p=null;a&&(p=new ResizeObserver(v=>{let[m]=v;m&&m.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),u&&!s&&p.observe(u),p.observe(t));let y,g=s?Er(e):null;s&&C();function C(){const v=Er(e);g&&(v.x!==g.x||v.y!==g.y||v.width!==g.width||v.height!==g.height)&&n(),g=v,y=requestAnimationFrame(C)}return n(),()=>{var v;f.forEach(m=>{o&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),c==null||c(),(v=p)==null||v.disconnect(),p=null,s&&cancelAnimationFrame(y)}}const w1=pC,LC=fC,MC=mC,jC=dC,Mp=uC,DC=vC,FC=(e,t,n)=>{const r=new Map,o={platform:y1,...n},i={...o.platform,_c:r};return cC(e,t,{...o,platform:i})},x1=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Mp({element:r.current,padding:o}).fn(n):{}:r?Mp({element:r,padding:o}).fn(n):{}}}};var Ha=typeof document<"u"?h.useLayoutEffect:h.useEffect;function _l(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!_l(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!_l(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function C1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function jp(e,t){const n=C1(e);return Math.round(t*n)/n}function Dp(e){const t=h.useRef(e);return Ha(()=>{t.current=e}),t}function E1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:l=!0,whileElementsMounted:s,open:u}=e,[f,c]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=h.useState(r);_l(d,r)||p(r);const[y,g]=h.useState(null),[C,v]=h.useState(null),m=h.useCallback(U=>{U!==_.current&&(_.current=U,g(U))},[]),x=h.useCallback(U=>{U!==b.current&&(b.current=U,v(U))},[]),E=i||y,S=a||C,_=h.useRef(null),b=h.useRef(null),$=h.useRef(f),T=s!=null,P=Dp(s),j=Dp(o),L=h.useCallback(()=>{if(!_.current||!b.current)return;const U={placement:t,strategy:n,middleware:d};j.current&&(U.platform=j.current),FC(_.current,b.current,U).then(O=>{const F={...O,isPositioned:!0};D.current&&!_l($.current,F)&&($.current=F,To.flushSync(()=>{c(F)}))})},[d,t,n,j]);Ha(()=>{u===!1&&$.current.isPositioned&&($.current.isPositioned=!1,c(U=>({...U,isPositioned:!1})))},[u]);const D=h.useRef(!1);Ha(()=>(D.current=!0,()=>{D.current=!1}),[]),Ha(()=>{if(E&&(_.current=E),S&&(b.current=S),E&&S){if(P.current)return P.current(E,S,L);L()}},[E,S,L,P,T]);const N=h.useMemo(()=>({reference:_,floating:b,setReference:m,setFloating:x}),[m,x]),z=h.useMemo(()=>({reference:E,floating:S}),[E,S]),V=h.useMemo(()=>{const U={position:n,left:0,top:0};if(!z.floating)return U;const O=jp(z.floating,f.x),F=jp(z.floating,f.y);return l?{...U,transform:"translate("+O+"px, "+F+"px)",...C1(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:F}},[n,l,z.floating,f.x,f.y]);return h.useMemo(()=>({...f,update:L,refs:N,elements:z,floatingStyles:V}),[f,L,N,z,V])}function zC(e){const[t,n]=h.useState(void 0);return gn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,l;if("borderBoxSize"in i){const s=i.borderBoxSize,u=Array.isArray(s)?s[0]:s;a=u.inlineSize,l=u.blockSize}else a=e.offsetWidth,l=e.offsetHeight;n({width:a,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const _1="Popper",[S1,b1]=En(_1),[BC,$1]=S1(_1),UC=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return h.createElement(BC,{scope:t,anchor:r,onAnchorChange:o},n)},HC="PopperAnchor",VC=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=$1(HC,n),a=h.useRef(null),l=ze(t,a);return h.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:h.createElement(fe.div,Y({},o,{ref:l}))}),T1="PopperContent",[WC,o$]=S1(T1),KC=h.forwardRef((e,t)=>{var n,r,o,i,a,l,s,u;const{__scopePopper:f,side:c="bottom",sideOffset:d=0,align:p="center",alignOffset:y=0,arrowPadding:g=0,avoidCollisions:C=!0,collisionBoundary:v=[],collisionPadding:m=0,sticky:x="partial",hideWhenDetached:E=!1,updatePositionStrategy:S="optimized",onPlaced:_,...b}=e,$=$1(T1,f),[T,P]=h.useState(null),j=ze(t,wt=>P(wt)),[L,D]=h.useState(null),N=zC(L),z=(n=N==null?void 0:N.width)!==null&&n!==void 0?n:0,V=(r=N==null?void 0:N.height)!==null&&r!==void 0?r:0,U=c+(p!=="center"?"-"+p:""),O=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},F=Array.isArray(v)?v:[v],K=F.length>0,J={padding:O,boundary:F.filter(YC),altBoundary:K},{refs:se,floatingStyles:Be,placement:ye,isPositioned:Ne,middlewareData:we}=E1({strategy:"fixed",placement:U,whileElementsMounted:(...wt)=>IC(...wt,{animationFrame:S==="always"}),elements:{reference:$.anchor},middleware:[c1({mainAxis:d+V,alignmentAxis:y}),C&&w1({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?DC():void 0,...J}),C&&LC({...J}),MC({...J,apply:({elements:wt,rects:Yi,availableWidth:Jl,availableHeight:ql})=>{const{width:es,height:ts}=Yi.reference,Qt=wt.floating.style;Qt.setProperty("--radix-popper-available-width",`${Jl}px`),Qt.setProperty("--radix-popper-available-height",`${ql}px`),Qt.setProperty("--radix-popper-anchor-width",`${es}px`),Qt.setProperty("--radix-popper-anchor-height",`${ts}px`)}}),L&&x1({element:L,padding:g}),GC({arrowWidth:z,arrowHeight:V}),E&&jC({strategy:"referenceHidden",...J})]}),[Ue,xe]=k1(ye),Se=at(_);gn(()=>{Ne&&(Se==null||Se())},[Ne,Se]);const jt=(o=we.arrow)===null||o===void 0?void 0:o.x,be=(i=we.arrow)===null||i===void 0?void 0:i.y,ft=((a=we.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[Ki,Xl]=h.useState();return gn(()=>{T&&Xl(window.getComputedStyle(T).zIndex)},[T]),h.createElement("div",{ref:se.setFloating,"data-radix-popper-content-wrapper":"",style:{...Be,transform:Ne?Be.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ki,"--radix-popper-transform-origin":[(l=we.transformOrigin)===null||l===void 0?void 0:l.x,(s=we.transformOrigin)===null||s===void 0?void 0:s.y].join(" ")},dir:e.dir},h.createElement(WC,{scope:f,placedSide:Ue,onArrowChange:D,arrowX:jt,arrowY:be,shouldHideArrow:ft},h.createElement(fe.div,Y({"data-side":Ue,"data-align":xe},b,{ref:j,style:{...b.style,animation:Ne?void 0:"none",opacity:(u=we.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))});function YC(e){return e!==null}const GC=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:l,rects:s,middlewareData:u}=t,c=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,p=c?0:e.arrowHeight,[y,g]=k1(l),C={start:"0%",center:"50%",end:"100%"}[g],v=((r=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+d/2,m=((i=(a=u.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+p/2;let x="",E="";return y==="bottom"?(x=c?C:`${v}px`,E=`${-p}px`):y==="top"?(x=c?C:`${v}px`,E=`${s.floating.height+p}px`):y==="right"?(x=`${-p}px`,E=c?C:`${m}px`):y==="left"&&(x=`${s.floating.width+p}px`,E=c?C:`${m}px`),{data:{x,y:E}}}});function k1(e){const[t,n="center"]=e.split("-");return[t,n]}const QC=UC,ZC=VC,XC=KC,R1="Popover",[N1,i$]=En(R1,[b1]),ld=b1(),[JC,Ao]=N1(R1),qC=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,l=ld(t),s=h.useRef(null),[u,f]=h.useState(!1),[c=!1,d]=rr({prop:r,defaultProp:o,onChange:i});return h.createElement(QC,l,h.createElement(JC,{scope:t,contentId:rn(),triggerRef:s,open:c,onOpenChange:d,onOpenToggle:h.useCallback(()=>d(p=>!p),[d]),hasCustomAnchor:u,onCustomAnchorAdd:h.useCallback(()=>f(!0),[]),onCustomAnchorRemove:h.useCallback(()=>f(!1),[]),modal:a},n))},eE="PopoverTrigger",tE=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Ao(eE,n),i=ld(n),a=ze(t,o.triggerRef),l=h.createElement(fe.button,Y({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":O1(o.open)},r,{ref:a,onClick:ae(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?l:h.createElement(ZC,Y({asChild:!0},i),l)}),P1="PopoverPortal",[nE,rE]=N1(P1,{forceMount:void 0}),oE=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Ao(P1,t);return h.createElement(nE,{scope:t,forceMount:n},h.createElement(_n,{present:n||i.open},h.createElement(tg,{asChild:!0,container:o},r)))},Li="PopoverContent",iE=h.forwardRef((e,t)=>{const n=rE(Li,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Ao(Li,e.__scopePopover);return h.createElement(_n,{present:r||i.open},i.modal?h.createElement(aE,Y({},o,{ref:t})):h.createElement(lE,Y({},o,{ref:t})))}),aE=h.forwardRef((e,t)=>{const n=Ao(Li,e.__scopePopover),r=h.useRef(null),o=ze(t,r),i=h.useRef(!1);return h.useEffect(()=>{const a=r.current;if(a)return hg(a)},[]),h.createElement(fg,{as:Co,allowPinchZoom:!0},h.createElement(A1,Y({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ae(e.onCloseAutoFocus,a=>{var l;a.preventDefault(),i.current||(l=n.triggerRef.current)===null||l===void 0||l.focus()}),onPointerDownOutside:ae(e.onPointerDownOutside,a=>{const l=a.detail.originalEvent,s=l.button===0&&l.ctrlKey===!0,u=l.button===2||s;i.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:ae(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})))}),lE=h.forwardRef((e,t)=>{const n=Ao(Li,e.__scopePopover),r=h.useRef(!1),o=h.useRef(!1);return h.createElement(A1,Y({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,i),!i.defaultPrevented){var l;r.current||(l=n.triggerRef.current)===null||l===void 0||l.focus(),i.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:i=>{var a,l;(a=e.onInteractOutside)===null||a===void 0||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((l=n.triggerRef.current)===null||l===void 0?void 0:l.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),A1=h.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:f,...c}=e,d=Ao(Li,n),p=ld(n);return ng(),h.createElement(q0,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},h.createElement(Uf,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onDismiss:()=>d.onOpenChange(!1)},h.createElement(XC,Y({"data-state":O1(d.open),role:"dialog",id:d.contentId},p,c,{ref:t,style:{...c.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))});function O1(e){return e?"open":"closed"}const sE=qC,cE=tE,uE=oE,fE=iE;var dE="vocs_Popover";Ht.Root=sE;Ht.Trigger=cE;function Ht({children:e,className:t}){return w.jsx(uE,{children:w.jsx(fE,{className:I(dE,t),sideOffset:12,children:e})})}var hE="vocs_Sidebar_backLink",pE="vocs_Sidebar_divider",vE="vocs_Sidebar_group",ni="vocs_Sidebar_item",I1="vocs_Sidebar_items",mE="vocs_Sidebar_level",gE="vocs_Sidebar_levelCollapsed",yE="vocs_Sidebar_levelInset",wE="vocs_Sidebar_logo",xE="vocs_Sidebar_logoWrapper",CE="vocs_Sidebar_navigation",EE="vocs_Sidebar",L1="vocs_Sidebar_section",_E="vocs_Sidebar_sectionCollapse",SE="vocs_Sidebar_sectionCollapseActive",bE="vocs_Sidebar_sectionHeader",$E="vocs_Sidebar_sectionHeaderActive",Fp="vocs_Sidebar_sectionTitle";function M1(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 39 69",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Chevron Right"}),w.jsx("path",{d:"M38.8697 34.7461C38.8697 33.6719 38.4791 32.6953 37.649 31.8652L7.47318 1.8848C6.74078 1.1035 5.76418 0.712891 4.64118 0.712891C2.34618 0.712891 0.588379 2.42189 0.588379 4.71679C0.588379 5.79099 1.07668 6.81639 1.76028 7.59769L29.0552 34.7461L1.76028 61.8945C1.07668 62.6758 0.588379 63.6523 0.588379 64.7754C0.588379 67.0703 2.34618 68.7793 4.64118 68.7793C5.76418 68.7793 6.74078 68.3887 7.47318 67.6074L37.649 37.627C38.4791 36.7969 38.8697 35.8203 38.8697 34.7461Z",fill:"currentColor"})]})}function j1(e){var u;const{className:t,onClickItem:n}=e,{previousPath:r}=kr(),o=h.useRef(null),i=Hl(),[a,l]=h.useState("/");if(h.useEffect(()=>{typeof window>"u"||r&&l(r)},[i.key,i.backLink]),!i)return null;const s=TE(i.items);return w.jsxs("aside",{ref:o,className:I(EE,t),children:[w.jsxs("div",{className:xE,children:[w.jsx("div",{className:wE,children:w.jsx(Gn,{to:"/",style:{alignItems:"center",display:"flex",height:"100%"},children:w.jsx(Kf,{})})}),w.jsx("div",{className:pE})]}),w.jsx("nav",{className:CE,children:w.jsxs("div",{className:vE,children:[i.backLink&&w.jsx("section",{className:L1,children:w.jsx("div",{className:I1,children:w.jsxs(Gn,{className:I(ni,hE),to:a,children:["←"," ",typeof history<"u"&&((u=history.state)!=null&&u.key)&&a!=="/"?"Back":"Home"]})})}),s.map((f,c)=>w.jsx(F1,{depth:0,item:f,onClick:n,sidebarRef:o},`${f.text}${c}`))]})})]},i.key)}function TE(e){const t=[];let n=0;for(const r of e){if(r.items){n=t.push(r);continue}t[n]?t[n].items.push(r):t.push({text:"",items:[r]})}return t}function D1(e,t){return e.find(n=>Bl(t,n.link??"")||n.link===t?!0:n.items?D1(n.items,t):!1)}function F1(e){const{depth:t,item:n,onClick:r,sidebarRef:o}=e,i=h.useRef(null),{pathname:a}=Re(),l=Fw(n.link??""),s=h.useMemo(()=>n.items?!!D1(n.items,a):!1,[n.items,a]),[u,f]=h.useState(()=>l||!n.items||s?!1:!!n.collapsed),c=n.collapsed!==void 0&&n.items!==void 0,d=h.useCallback(g=>{"key"in g&&g.key!=="Enter"||n.link||f(C=>!C)},[n.link]),p=h.useCallback(g=>{"key"in g&&g.key!=="Enter"||n.link&&f(C=>!C)},[n.link]),y=h.useRef(!0);return h.useEffect(()=>{!y.current||(y.current=!1,!Bl(a,n.link??""))||requestAnimationFrame(()=>{var m,x,E;const C=((m=i.current)==null?void 0:m.offsetTop)??0,v=((x=o==null?void 0:o.current)==null?void 0:x.clientHeight)??0;C0&&t<5&&n.items.map((g,C)=>w.jsx(F1,{depth:t+1,item:g,onClick:r,sidebarRef:o},`${g.text}${C}`))})]}):w.jsx(w.Fragment,{children:n.link?w.jsx(Gn,{ref:i,"data-active":!!l,onClick:r,className:ni,to:n.link,children:n.text}):w.jsx("div",{className:ni,children:n.text})})}function kE(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 69 39",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Chevron Down"}),w.jsx("path",{d:"M34.8677 38.8398C35.9419 38.8398 37.0161 38.4492 37.7485 37.6191L67.729 7.44339C68.4614 6.71089 68.9009 5.73439 68.9009 4.61129C68.9009 2.31639 67.1919 0.558594 64.897 0.558594C63.8227 0.558594 62.7485 1.04689 62.0161 1.73049L32.5727 31.2715H37.1138L7.67042 1.73049C6.93802 1.04689 5.96142 0.558594 4.83842 0.558594C2.54342 0.558594 0.785645 2.31639 0.785645 4.61129C0.785645 5.73439 1.22512 6.71089 1.95752 7.44339L31.9868 37.6191C32.768 38.4492 33.7446 38.8398 34.8677 38.8398Z",fill:"currentColor"})]})}function RE(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 69 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Chevron Up"}),w.jsx("path",{d:"M1.95752 32.2441C1.22512 32.9277 0.785645 33.9531 0.785645 35.0762C0.785645 37.3711 2.54342 39.1289 4.83842 39.1289C5.96142 39.1289 6.98682 38.6895 7.67042 37.957L37.1138 8.36716H32.5727L62.0161 37.957C62.6997 38.6895 63.8227 39.1289 64.897 39.1289C67.1919 39.1289 68.9009 37.3711 68.9009 35.0762C68.9009 33.9531 68.4614 32.9277 67.729 32.2441L37.7485 2.06836C37.0161 1.23826 35.9419 0.847656 34.8677 0.847656C33.7446 0.847656 32.7192 1.23826 31.9868 2.06836L1.95752 32.2441Z",fill:"currentColor"})]})}function NE(){return w.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 79 48",fill:"none",children:[w.jsx("title",{children:"Menu"}),w.jsx("path",{fill:"currentColor",d:"M19.528 47.232h40.87c1.952 0 3.515-1.562 3.515-3.564a3.5 3.5 0 0 0-3.516-3.516H19.528a3.501 3.501 0 0 0-3.515 3.516c0 2.002 1.562 3.564 3.515 3.564ZM12.057 27.262h55.81a3.501 3.501 0 0 0 3.516-3.516 3.501 3.501 0 0 0-3.515-3.515h-55.81a3.501 3.501 0 0 0-3.516 3.515 3.501 3.501 0 0 0 3.515 3.516ZM4.391 7.34H75.29c2.002 0 3.515-1.563 3.515-3.516 0-2.002-1.513-3.564-3.515-3.564H4.39C2.438.26.876 1.822.876 3.824A3.501 3.501 0 0 0 4.39 7.34Z"})]})}bu.Curtain=jE;function bu(){var n,r;const e=Je(),{showLogo:t}=Rr();return w.jsxs("div",{className:V8,children:[w.jsxs("div",{className:Np,children:[t&&w.jsx("div",{className:ba,children:w.jsx("div",{className:D8,children:w.jsx(Gn,{to:"/",style:{alignItems:"center",display:"flex",height:"100%"},children:w.jsx(Kf,{})})})}),e.topNav&&w.jsx(w.Fragment,{children:w.jsxs("div",{className:ba,children:[w.jsx(PE,{items:e.topNav}),w.jsx(OE,{items:e.topNav})]})})]}),w.jsxs("div",{className:Np,children:[w.jsx("div",{className:ba,style:{marginRight:"-8px"},children:w.jsx(R8,{})}),e.socials&&((n=e.socials)==null?void 0:n.length)>0&&w.jsxs(w.Fragment,{children:[w.jsx("div",{className:L8}),w.jsx("div",{className:ba,style:{marginLeft:"-8px"},children:(r=e.socials)==null?void 0:r.map((o,i)=>w.jsx(ME,{...o},i))})]})]})]})}function PE({items:e}){const{pathname:t}=Re(),n=Hi({pathname:t,items:e});return w.jsx(Dg,{className:i1,children:w.jsx(Fg,{children:e.map((r,o)=>r!=null&&r.link?w.jsx(Yl,{active:n==null?void 0:n.includes(r.id),href:r.link,children:r.text},o):w.jsxs(zg,{className:j8,children:[w.jsx(Bg,{active:n==null?void 0:n.includes(r.id),children:r.text}),w.jsx(Ug,{className:O8,children:w.jsx(AE,{items:r.items||[]})})]},o))})})}function AE({items:e}){const{pathname:t}=Re(),n=Hi({pathname:t,items:e});return w.jsx("ul",{children:e==null?void 0:e.map((r,o)=>w.jsx(Yl,{active:n.includes(r.id),href:r.link,children:r.text},o))})}function OE({items:e}){var s;const[t,n]=h.useState(!1),{pathname:r}=Re(),o=Hi({pathname:r,items:e}),i=e.filter(u=>u.id===o[0])[0],{basePath:a}=Je(),l=a;return w.jsx("div",{className:I(i1,U8),children:i?w.jsxs(Ht.Root,{modal:!0,open:t,onOpenChange:n,children:[w.jsxs(Ht.Trigger,{className:I(o1,Qo),children:[i.text,w.jsx(st,{label:"Menu",icon:kE,size:"11px"})]}),w.jsx(Ht,{className:Y8,children:w.jsx(S8,{type:"single",collapsible:!0,style:{display:"flex",flexDirection:"column"},children:e.map((u,f)=>{var c;return u!=null&&u.link?w.jsx(nn,{"data-active":o.includes(u.id),className:Qo,href:u.link,onClick:()=>n(!1),variant:"styleless",children:u.text},f):w.jsxs(b8,{value:f.toString(),children:[w.jsx($8,{className:I(Qo,B8),"data-active":o.includes(u.id),style:Gt({[P8]:`url(${l}/.vocs/icons/chevron-down.svg)`,[A8]:`url(${l}/.vocs/icons/chevron-up.svg)`}),children:u.text}),w.jsx(T8,{className:z8,children:(c=u.items)==null?void 0:c.map((d,p)=>w.jsx(nn,{className:Qo,href:d.link,onClick:()=>n(!1),variant:"styleless",children:d.text},p))})]},f)})})})]}):(s=e[0])!=null&&s.link?w.jsx(nn,{className:Qo,href:e[0].link,variant:"styleless",children:e[0].text}):null})}const IE={discord:Hg,github:Vg,telegram:Wg,warpcast:Kg,x:Yg},LE={discord:"21px",github:"18px",telegram:"21px",warpcast:"18px",x:"16px"};function ME({icon:e,label:t,link:n,type:r}){return w.jsx("a",{className:N8,href:n,target:"_blank",rel:"noopener noreferrer",children:w.jsx(st,{className:M8,label:t,icon:IE[e],size:LE[r]||"18px"})})}function jE({enableScrollToTop:e}){const{pathname:t}=Re(),{layout:n,showSidebar:r}=Rr(),{frontmatter:o={}}=kr(),i=Hl(),[a,l]=h.useState(!1),[s,u]=h.useState(!1),f=h.useMemo(()=>{if(!i||n==="minimal")return;const p=z1({sidebarItems:i.items,pathname:t});return p==null?void 0:p.text},[n,t,i]),c=h.useMemo(()=>{var p;if(!(typeof window>"u"))return(p=document.querySelector(".vocs_Content h1"))==null?void 0:p.textContent},[]),d=f||o.title||c;return w.jsxs("div",{className:I8,children:[w.jsx("div",{className:kp,children:w.jsx("div",{className:ec,children:r?w.jsxs(Ht.Root,{modal:!0,open:s,onOpenChange:u,children:[w.jsxs(Ht.Trigger,{className:o1,children:[w.jsx(st,{label:"Menu",icon:NE,size:"13px"}),w.jsx("div",{className:F8,children:d})]}),w.jsx(Ht,{className:K8,children:w.jsx(j1,{onClickItem:()=>u(!1)})})]}):d})}),w.jsxs("div",{className:kp,children:[e&&w.jsxs(w.Fragment,{children:[w.jsx("div",{className:ec,children:w.jsxs("button",{className:Rp,onClick:()=>window.scrollTo({behavior:"smooth",top:0}),type:"button",children:["Top",w.jsx(st,{label:"Scroll to top",icon:RE,size:"10px"})]})}),w.jsx("div",{className:W8})]}),n==="docs"&&w.jsx("div",{className:ec,children:w.jsxs(Ht.Root,{modal:!0,open:a,onOpenChange:l,children:[w.jsxs(Ht.Trigger,{className:Rp,children:["On this page",w.jsx(st,{label:"On this page",icon:M1,size:"10px"})]}),w.jsx(Ht,{className:H8,children:w.jsx(a1,{onClickItem:()=>l(!1),showTitle:!1})})]})})]})]})}function z1({sidebarItems:e,pathname:t}){const n=t.replace(/(.+)\/$/,"$1");for(const r of e){if((r==null?void 0:r.link)===n)return r;if(r.items){const o=z1({sidebarItems:r.items,pathname:n});if(o)return o}}}var DE="vocs_SkipLink";const B1="vocs-content";function FE(){const{pathname:e}=Re();return w.jsx("a",{className:I(DE,Z0),href:`${e}#${B1}`,children:"Skip to content"})}var zE="vocs_DocsLayout_content",BE="vocs_DocsLayout_content_withSidebar",UE="vocs_DocsLayout_content_withTopNav",HE="vocs_DocsLayout_gutterLeft",VE="vocs_DocsLayout_gutterRight",WE="vocs_DocsLayout_gutterRight_withSidebar",KE="vocs_DocsLayout_gutterTop",YE="vocs_DocsLayout_gutterTopCurtain",GE="vocs_DocsLayout_gutterTopCurtain_hidden",QE="vocs_DocsLayout_gutterTopCurtain_withSidebar",ZE="vocs_DocsLayout_gutterTop_offsetLeftGutter",XE="vocs_DocsLayout_gutterTop_sticky",JE="vocs_DocsLayout",qE="vocs_DocsLayout_sidebar";function $u({children:e}){const{banner:t,font:n}=Je(),{frontmatter:r={}}=kr(),{content:o}=r,{layout:i,showOutline:a,showSidebar:l,showTopNav:s}=Rr(),{ref:u,inView:f}=U0({initialInView:!0,rootMargin:"100px 0px 0px 0px"}),[c,d]=pu("banner",!0);return w.jsxs("div",{className:JE,"data-layout":i,style:Gt({[Gx]:c?t==null?void 0:t.height:void 0,[Nx.default]:n!=null&&n.google?`${n.google}, ${Rx.default}`:void 0}),children:[w.jsx(FE,{}),c&&w.jsx(m5,{hide:()=>d(!1)}),l&&w.jsx("div",{className:HE,children:w.jsx(j1,{className:qE})}),s&&w.jsxs(w.Fragment,{children:[w.jsxs("div",{ref:u,className:I(KE,l&&ZE,(i==="minimal"||i==="landing")&&XE),children:[w.jsx(xu,{}),w.jsx(bu,{})]}),w.jsxs("div",{className:I(YE,l&&QE,(i==="minimal"||i==="landing")&&GE),children:[w.jsx(xu.Curtain,{}),w.jsx(bu.Curtain,{enableScrollToTop:!f})]})]}),a&&w.jsx("div",{className:I(VE,l&&WE),children:w.jsx(a1,{})}),w.jsxs("div",{id:B1,className:I(zE,l&&BE,s&&UE),style:Gt({[Ms.horizontalPadding]:o==null?void 0:o.horizontalPadding,[Ms.width]:o==null?void 0:o.width,[Ms.verticalPadding]:o==null?void 0:o.verticalPadding}),children:[w.jsx(Y0,{children:e}),w.jsx(X6,{})]}),w.jsx("div",{"data-bottom-observer":!0})]})}const Tu={},U1=Z.createContext(Tu);function e_(e){const t=Z.useContext(U1);return Z.useMemo(function(){return typeof e=="function"?e(t):{...t,...e}},[t,e])}function t_(e){let t;return e.disableParentContext?t=typeof e.components=="function"?e.components(Tu):e.components||Tu:t=e_(e.components),Z.createElement(U1.Provider,{value:t},e.children)}var H1={exports:{}},n_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",r_=n_,o_=r_;function V1(){}function W1(){}W1.resetWarningCache=V1;var i_=function(){function e(r,o,i,a,l,s){if(s!==o_){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:W1,resetWarningCache:V1};return n.PropTypes=n,n};H1.exports=i_();var a_=H1.exports;const Ce=Jn(a_);function l_(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var K1=h,s_=l_(K1);function zp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var u_=!!(typeof window<"u"&&window.document&&window.document.createElement);function f_(e,t,n){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function r(o){return o.displayName||o.name||"Component"}return function(i){if(typeof i!="function")throw new Error("Expected WrappedComponent to be a React component.");var a=[],l;function s(){l=e(a.map(function(f){return f.props})),u.canUseDOM?t(l):n&&(l=n(l))}var u=function(f){c_(c,f);function c(){return f.apply(this,arguments)||this}c.peek=function(){return l},c.rewind=function(){if(c.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var y=l;return l=void 0,a=[],y};var d=c.prototype;return d.UNSAFE_componentWillMount=function(){a.push(this),s()},d.componentDidUpdate=function(){s()},d.componentWillUnmount=function(){var y=a.indexOf(this);a.splice(y,1),s()},d.render=function(){return s_.createElement(i,this.props)},c}(K1.PureComponent);return zp(u,"displayName","SideEffect("+r(i)+")"),zp(u,"canUseDOM",u_),u}}var d_=f_;const h_=Jn(d_);var p_=typeof Element<"u",v_=typeof Map=="function",m_=typeof Set=="function",g_=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Va(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Va(e[r],t[r]))return!1;return!0}var i;if(v_&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Va(r.value[1],t.get(r.value[0])))return!1;return!0}if(m_&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(g_&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(p_&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Va(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var y_=function(t,n){try{return Va(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const w_=Jn(y_);/* +*****************************************************/(function(e,t){(function(n,r){e.exports=r()})(Ey,function(){var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},r=function(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")},o=function(){function u(f,c){for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!0,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;r(this,u),this.ctx=f,this.iframes=c,this.exclude=d,this.iframesTimeout=p}return o(u,[{key:"getContexts",value:function(){var c=void 0,d=[];return typeof this.ctx>"u"||!this.ctx?c=[]:NodeList.prototype.isPrototypeOf(this.ctx)?c=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?c=this.ctx:typeof this.ctx=="string"?c=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):c=[this.ctx],c.forEach(function(p){var y=d.filter(function(g){return g.contains(p)}).length>0;d.indexOf(p)===-1&&!y&&d.push(p)}),d}},{key:"getIframeContents",value:function(c,d){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},y=void 0;try{var g=c.contentWindow;if(y=g.document,!g||!y)throw new Error("iframe inaccessible")}catch{p()}y&&d(y)}},{key:"isIframeBlank",value:function(c){var d="about:blank",p=c.getAttribute("src").trim(),y=c.contentWindow.location.href;return y===d&&p!==d&&p}},{key:"observeIframeLoad",value:function(c,d,p){var y=this,g=!1,C=null,v=function m(){if(!g){g=!0,clearTimeout(C);try{y.isIframeBlank(c)||(c.removeEventListener("load",m),y.getIframeContents(c,d,p))}catch{p()}}};c.addEventListener("load",v),C=setTimeout(v,this.iframesTimeout)}},{key:"onIframeReady",value:function(c,d,p){try{c.contentWindow.document.readyState==="complete"?this.isIframeBlank(c)?this.observeIframeLoad(c,d,p):this.getIframeContents(c,d,p):this.observeIframeLoad(c,d,p)}catch{p()}}},{key:"waitForIframes",value:function(c,d){var p=this,y=0;this.forEachIframe(c,function(){return!0},function(g){y++,p.waitForIframes(g.querySelector("html"),function(){--y||d()})},function(g){g||d()})}},{key:"forEachIframe",value:function(c,d,p){var y=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},C=c.querySelectorAll("iframe"),v=C.length,m=0;C=Array.prototype.slice.call(C);var x=function(){--v<=0&&g(m)};v||x(),C.forEach(function(E){u.matches(E,y.exclude)?x():y.onIframeReady(E,function(S){d(E)&&(m++,p(S)),x()},x)})}},{key:"createIterator",value:function(c,d,p){return document.createNodeIterator(c,d,p,!1)}},{key:"createInstanceOnIframe",value:function(c){return new u(c.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(c,d,p){var y=c.compareDocumentPosition(p),g=Node.DOCUMENT_POSITION_PRECEDING;if(y&g)if(d!==null){var C=d.compareDocumentPosition(p),v=Node.DOCUMENT_POSITION_FOLLOWING;if(C&v)return!0}else return!0;return!1}},{key:"getIteratorNode",value:function(c){var d=c.previousNode(),p=void 0;return d===null?p=c.nextNode():p=c.nextNode()&&c.nextNode(),{prevNode:d,node:p}}},{key:"checkIframeFilter",value:function(c,d,p,y){var g=!1,C=!1;return y.forEach(function(v,m){v.val===p&&(g=m,C=v.handled)}),this.compareNodeIframe(c,d,p)?(g===!1&&!C?y.push({val:p,handled:!0}):g!==!1&&!C&&(y[g].handled=!0),!0):(g===!1&&y.push({val:p,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(c,d,p,y){var g=this;c.forEach(function(C){C.handled||g.getIframeContents(C.val,function(v){g.createInstanceOnIframe(v).forEachNode(d,p,y)})})}},{key:"iterateThroughNodes",value:function(c,d,p,y,g){for(var C=this,v=this.createIterator(d,c,y),m=[],x=[],E=void 0,S=void 0,_=function(){var $=C.getIteratorNode(v);return S=$.prevNode,E=$.node,E};_();)this.iframes&&this.forEachIframe(d,function(b){return C.checkIframeFilter(E,S,b,m)},function(b){C.createInstanceOnIframe(b).forEachNode(c,function($){return x.push($)},y)}),x.push(E);x.forEach(function(b){p(b)}),this.iframes&&this.handleOpenIframes(m,c,p,y),g()}},{key:"forEachNode",value:function(c,d,p){var y=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},C=this.getContexts(),v=C.length;v||g(),C.forEach(function(m){var x=function(){y.iterateThroughNodes(c,m,d,p,function(){--v<=0&&g()})};y.iframes?y.waitForIframes(m,x):x()})}}],[{key:"matches",value:function(c,d){var p=typeof d=="string"?[d]:d,y=c.matches||c.matchesSelector||c.msMatchesSelector||c.mozMatchesSelector||c.oMatchesSelector||c.webkitMatchesSelector;if(y){var g=!1;return p.every(function(C){return y.call(c,C)?(g=!0,!1):!0}),g}else return!1}}]),u}(),l=function(){function u(f){r(this,u),this.ctx=f,this.ie=!1;var c=window.navigator.userAgent;(c.indexOf("MSIE")>-1||c.indexOf("Trident")>-1)&&(this.ie=!0)}return o(u,[{key:"log",value:function(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"debug",p=this.opt.log;this.opt.debug&&(typeof p>"u"?"undefined":n(p))==="object"&&typeof p[d]=="function"&&p[d]("mark.js: "+c)}},{key:"escapeStr",value:function(c){return c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(c){return this.opt.wildcards!=="disabled"&&(c=this.setupWildcardsRegExp(c)),c=this.escapeStr(c),Object.keys(this.opt.synonyms).length&&(c=this.createSynonymsRegExp(c)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(c=this.setupIgnoreJoinersRegExp(c)),this.opt.diacritics&&(c=this.createDiacriticsRegExp(c)),c=this.createMergedBlanksRegExp(c),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(c=this.createJoinersRegExp(c)),this.opt.wildcards!=="disabled"&&(c=this.createWildcardsRegExp(c)),c=this.createAccuracyRegExp(c),c}},{key:"createSynonymsRegExp",value:function(c){var d=this.opt.synonyms,p=this.opt.caseSensitive?"":"i",y=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var g in d)if(d.hasOwnProperty(g)){var C=d[g],v=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(g):this.escapeStr(g),m=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(C):this.escapeStr(C);v!==""&&m!==""&&(c=c.replace(new RegExp("("+this.escapeStr(v)+"|"+this.escapeStr(m)+")","gm"+p),y+("("+this.processSynomyms(v)+"|")+(this.processSynomyms(m)+")")+y))}return c}},{key:"processSynomyms",value:function(c){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(c=this.setupIgnoreJoinersRegExp(c)),c}},{key:"setupWildcardsRegExp",value:function(c){return c=c.replace(/(?:\\)*\?/g,function(d){return d.charAt(0)==="\\"?"?":""}),c.replace(/(?:\\)*\*/g,function(d){return d.charAt(0)==="\\"?"*":""})}},{key:"createWildcardsRegExp",value:function(c){var d=this.opt.wildcards==="withSpaces";return c.replace(/\u0001/g,d?"[\\S\\s]?":"\\S?").replace(/\u0002/g,d?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(c){return c.replace(/[^(|)\\]/g,function(d,p,y){var g=y.charAt(p+1);return/[(|)\\]/.test(g)||g===""?d:d+"\0"})}},{key:"createJoinersRegExp",value:function(c){var d=[],p=this.opt.ignorePunctuation;return Array.isArray(p)&&p.length&&d.push(this.escapeStr(p.join(""))),this.opt.ignoreJoiners&&d.push("\\u00ad\\u200b\\u200c\\u200d"),d.length?c.split(/\u0000+/).join("["+d.join("")+"]*"):c}},{key:"createDiacriticsRegExp",value:function(c){var d=this.opt.caseSensitive?"":"i",p=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],y=[];return c.split("").forEach(function(g){p.every(function(C){if(C.indexOf(g)!==-1){if(y.indexOf(C)>-1)return!1;c=c.replace(new RegExp("["+C+"]","gm"+d),"["+C+"]"),y.push(C)}return!0})}),c}},{key:"createMergedBlanksRegExp",value:function(c){return c.replace(/[\s]+/gmi,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(c){var d=this,p="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿",y=this.opt.accuracy,g=typeof y=="string"?y:y.value,C=typeof y=="string"?[]:y.limiters,v="";switch(C.forEach(function(m){v+="|"+d.escapeStr(m)}),g){case"partially":default:return"()("+c+")";case"complementary":return v="\\s"+(v||this.escapeStr(p)),"()([^"+v+"]*"+c+"[^"+v+"]*)";case"exactly":return"(^|\\s"+v+")("+c+")(?=$|\\s"+v+")"}}},{key:"getSeparatedKeywords",value:function(c){var d=this,p=[];return c.forEach(function(y){d.opt.separateWordSearch?y.split(" ").forEach(function(g){g.trim()&&p.indexOf(g)===-1&&p.push(g)}):y.trim()&&p.indexOf(y)===-1&&p.push(y)}),{keywords:p.sort(function(y,g){return g.length-y.length}),length:p.length}}},{key:"isNumeric",value:function(c){return Number(parseFloat(c))==c}},{key:"checkRanges",value:function(c){var d=this;if(!Array.isArray(c)||Object.prototype.toString.call(c[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(c),[];var p=[],y=0;return c.sort(function(g,C){return g.start-C.start}).forEach(function(g){var C=d.callNoMatchOnInvalidRanges(g,y),v=C.start,m=C.end,x=C.valid;x&&(g.start=v,g.length=m-v,p.push(g),y=m)}),p}},{key:"callNoMatchOnInvalidRanges",value:function(c,d){var p=void 0,y=void 0,g=!1;return c&&typeof c.start<"u"?(p=parseInt(c.start,10),y=p+parseInt(c.length,10),this.isNumeric(c.start)&&this.isNumeric(c.length)&&y-d>0&&y-p>0?g=!0:(this.log("Ignoring invalid or overlapping range: "+(""+JSON.stringify(c))),this.opt.noMatch(c))):(this.log("Ignoring invalid range: "+JSON.stringify(c)),this.opt.noMatch(c)),{start:p,end:y,valid:g}}},{key:"checkWhitespaceRanges",value:function(c,d,p){var y=void 0,g=!0,C=p.length,v=d-C,m=parseInt(c.start,10)-v;return m=m>C?C:m,y=m+parseInt(c.length,10),y>C&&(y=C,this.log("End range automatically set to the max value of "+C)),m<0||y-m<0||m>C||y>C?(g=!1,this.log("Invalid range: "+JSON.stringify(c)),this.opt.noMatch(c)):p.substring(m,y).replace(/\s+/g,"")===""&&(g=!1,this.log("Skipping whitespace only range: "+JSON.stringify(c)),this.opt.noMatch(c)),{start:m,end:y,valid:g}}},{key:"getTextNodes",value:function(c){var d=this,p="",y=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(g){y.push({start:p.length,end:(p+=g.textContent).length,node:g})},function(g){return d.matchesExclude(g.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){c({value:p,nodes:y})})}},{key:"matchesExclude",value:function(c){return a.matches(c,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(c,d,p){var y=this.opt.element?this.opt.element:"mark",g=c.splitText(d),C=g.splitText(p-d),v=document.createElement(y);return v.setAttribute("data-markjs","true"),this.opt.className&&v.setAttribute("class",this.opt.className),v.textContent=g.textContent,g.parentNode.replaceChild(v,g),C}},{key:"wrapRangeInMappedTextNode",value:function(c,d,p,y,g){var C=this;c.nodes.every(function(v,m){var x=c.nodes[m+1];if(typeof x>"u"||x.start>d){if(!y(v.node))return!1;var E=d-v.start,S=(p>v.end?v.end:p)-v.start,_=c.value.substr(0,v.start),b=c.value.substr(S+v.start);if(v.node=C.wrapRangeInTextNode(v.node,E,S),c.value=_+b,c.nodes.forEach(function($,T){T>=m&&(c.nodes[T].start>0&&T!==m&&(c.nodes[T].start-=S),c.nodes[T].end-=S)}),p-=S,g(v.node.previousSibling,v.start),p>v.end)d=v.end;else return!1}return!0})}},{key:"wrapMatches",value:function(c,d,p,y,g){var C=this,v=d===0?0:d+1;this.getTextNodes(function(m){m.nodes.forEach(function(x){x=x.node;for(var E=void 0;(E=c.exec(x.textContent))!==null&&E[v]!=="";)if(p(E[v],x)){var S=E.index;if(v!==0)for(var _=1;_{const o=setTimeout(()=>r(e),t||500);return()=>{clearTimeout(o)}},[e,t]),n}function pu(e,t){const[n,r]=h.useState();h.useEffect(()=>{const i=h7(e);r(typeof i>"u"||i===null?typeof t=="function"?t():t:i)},[t,e]);const o=h.useCallback(i=>{r(a=>{let l;typeof i=="function"?l=i(a):l=i;try{localStorage.setItem(e,JSON.stringify(l))}catch{}return l})},[e]);return[n,o]}function h7(e){try{const t=localStorage.getItem(e);return typeof t=="string"?JSON.parse(t):void 0}catch{return}}var p7="vocs_Kbd";function Rg(e){return w.jsx("kbd",{...e,className:I(e.className,p7)})}var v7="vocs_KeyboardShortcut_kbdGroup",m7="vocs_KeyboardShortcut";function eo(e){const{description:t,keys:n}=e;return w.jsxs("span",{className:m7,children:[t,w.jsx("span",{className:v7,children:n.map(r=>w.jsx(Rg,{children:r},r))})]})}var g7="vocs_SearchDialog_content",mp="vocs_SearchDialog_excerpt",y7="vocs_SearchDialog_overlay",w7="vocs_SearchDialog_result",gp="vocs_SearchDialog_resultIcon",x7="vocs_SearchDialog_resultSelected",C7="vocs_SearchDialog_results",E7="vocs_SearchDialog",_7="vocs_SearchDialog_searchBox",S7="vocs_SearchDialog_searchInput",_a="vocs_SearchDialog_searchInputIcon",b7="vocs_SearchDialog_searchInputIconDesktop",$7="vocs_SearchDialog_searchInputIconMobile",T7="vocs_SearchDialog_searchShortcuts",yp="vocs_SearchDialog_title",k7="vocs_SearchDialog_titleIcon",R7="vocs_SearchDialog_titles";function Ng(e){const t=Df(),n=h.useRef(null),r=h.useRef(null),[o,i]=pu("filterText",""),a=d7(o,200),l=Tg(),[s,u]=h.useState(-1),[f,c]=h.useState(!1),[d,p]=pu("showDetailView",!0),y=h.useMemo(()=>l?a?(u(0),l.search(a).slice(0,16)):(u(-1),[]):[],[l,a]),g=y.length,C=y[s],v=h.useCallback(()=>{var S,_,b;if(!r.current)return;const m=new Set;for(const $ of y)for(const T in $.match)m.add(T);const x=new f7(r.current);x.unmark({done(){x==null||x.markRegExp(N7(m))}});const E=r.current.querySelectorAll(`.${mp}`);for(const $ of E)(S=$.querySelector('mark[data-markjs="true"]'))==null||S.scrollIntoView({block:"center"});(b=(_=r.current)==null?void 0:_.firstElementChild)==null||b.scrollIntoView({block:"start"})},[y]);return h.useEffect(()=>{if(!e.open)return;function m(x){var E;switch(x.key){case"ArrowDown":{x.preventDefault(),u(S=>{var $;let _=S+1;_>=g&&(_=0);const b=($=r.current)==null?void 0:$.children[_];return b==null||b.scrollIntoView({block:"nearest"}),_}),c(!0);break}case"ArrowUp":{x.preventDefault(),u(S=>{var $;let _=S-1;_<0&&(_=g-1);const b=($=r.current)==null?void 0:$.children[_];return b==null||b.scrollIntoView({block:"nearest"}),_}),c(!0);break}case"Backspace":{if(!x.metaKey)return;x.preventDefault(),i(""),(E=n.current)==null||E.focus();break}case"Enter":{if(x.target instanceof HTMLButtonElement&&x.target.type!=="submit"||!C)return;x.preventDefault(),t(C.href),e.onClose();break}}}return window.addEventListener("keydown",m),()=>{window.removeEventListener("keydown",m)}},[t,g,i,C,e.open,e.onClose]),h.useEffect(()=>{a!==""&&r.current&&v()},[v,a]),w.jsxs(B4,{children:[w.jsx(U4,{className:y7}),w.jsxs(H4,{onOpenAutoFocus:m=>{n.current&&(m.preventDefault(),n.current.focus()),v()},onCloseAutoFocus:()=>{u(0)},className:E7,"aria-describedby":void 0,children:[w.jsx(V4,{className:Z0,children:"Search"}),w.jsxs("form",{className:_7,children:[w.jsx("button",{"aria-label":"Close search dialog",type:"button",onClick:()=>e.onClose(),className:$7,children:w.jsx(o5,{className:_a,height:20,width:20})}),w.jsx(c7,{htmlFor:"search-input",children:w.jsx(Uf,{"aria-label":"Search",className:I(_a,b7),height:20,width:20})}),w.jsx("input",{ref:n,tabIndex:0,className:S7,id:"search-input",onChange:m=>i(m.target.value),placeholder:"Search",type:"search",value:o}),w.jsx("button",{"aria-label":"Toggle detail view",type:"button",onClick:()=>p(m=>!m),children:w.jsx(d5,{className:_a,height:20,width:20})}),w.jsx("button",{"aria-label":"Reset search",type:"button",className:_a,onClick:()=>{var m;i(""),(m=n.current)==null||m.focus()},children:"⌫"})]}),w.jsxs("ul",{className:C7,role:y.length?"listbox":void 0,onMouseMove:()=>c(!1),ref:r,children:[a&&y.length===0&&w.jsxs("li",{children:['No results for "',w.jsx("span",{children:a}),'"']}),y.map((m,x)=>{var E;return w.jsx("li",{role:"option",className:I(w7,x===s&&x7),"aria-selected":x===s,"aria-label":[...m.titles.filter(S=>!!S),m.title].join(" > "),children:w.jsxs(zf,{to:m.href,onClick:S=>{S.metaKey||e.onClose()},onMouseEnter:()=>!f&&u(x),onFocus:()=>u(x),children:[w.jsxs("div",{className:R7,children:[m.isPage?w.jsx(u5,{className:gp}):w.jsx("span",{className:gp,children:"#"}),m.titles.filter(S=>!!S).map(S=>w.jsxs("span",{className:yp,children:[w.jsx("span",{dangerouslySetInnerHTML:{__html:S}}),w.jsx(a5,{className:k7})]},S)),w.jsx("span",{className:yp,children:w.jsx("span",{dangerouslySetInnerHTML:{__html:m.title}})})]}),d&&((E=m.text)==null?void 0:E.trim())&&w.jsx("div",{className:mp,children:w.jsx(Y0,{className:g7,children:w.jsx("div",{dangerouslySetInnerHTML:{__html:m.html}})})})]})},m.id)})]}),w.jsxs("div",{className:T7,children:[w.jsx(eo,{description:"Navigate",keys:["↑","↓"]}),w.jsx(eo,{description:"Select",keys:["enter"]}),w.jsx(eo,{description:"Close",keys:["esc"]}),w.jsx(eo,{description:"Reset",keys:["⌘","⌫"]})]})]})]})}function N7(e){return new RegExp([...e].sort((t,n)=>n.length-t.length).map(t=>`(${t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")})`).join("|"),"gi")}function P7(){Tg();const[e,t]=h.useState(!1);return h.useEffect(()=>{function n(r){const o=document.activeElement instanceof HTMLElement&&(["input","select","textarea"].includes(document.activeElement.tagName.toLowerCase())||document.activeElement.isContentEditable);r.key==="/"&&!e&&!o?(r.preventDefault(),t(!0)):r.metaKey===!0&&r.key==="k"&&(r.preventDefault(),t(i=>!i))}return window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}},[e]),w.jsxs(wg,{open:e,onOpenChange:t,children:[w.jsx(xg,{asChild:!0,children:w.jsxs("button",{className:a7,type:"button",children:[w.jsx(Uf,{style:{marginTop:2}}),"Search",w.jsx("div",{className:l7,children:w.jsx("div",{style:{background:"currentColor",transform:"rotate(45deg)",width:1.5,borderRadius:2,height:"100%"}})})]})}),w.jsx(Ng,{open:e,onClose:()=>t(!1)})]})}var Pg="vocs_DesktopTopNav_button",A7="vocs_DesktopTopNav_content",O7="vocs_DesktopTopNav_curtain",wp="vocs_DesktopTopNav_divider",Js="vocs_DesktopTopNav_group",Sa="vocs_DesktopTopNav_hideCompact",vu="vocs_DesktopTopNav_icon",yl="vocs_DesktopTopNav_item",I7="vocs_DesktopTopNav_logo",L7="vocs_DesktopTopNav_logoWrapper",M7="vocs_DesktopTopNav",xp="vocs_DesktopTopNav_section",j7="vocs_DesktopTopNav_withLogo",D7="vocs_Icon",mu="var(--vocs_Icon_size)";function st({className:e,label:t,icon:n,size:r,style:o}){return w.jsx("div",{"aria-label":t,className:I(D7,e),role:"img",style:{...o,...Gt({[mu]:r})},children:w.jsx(n,{height:r,width:r})})}var F7="vocs_Logo_logoDark",z7="vocs_Logo_logoLight",qs="vocs_Logo";function B7({className:e}){const{logoUrl:t}=Je();return t?w.jsx(w.Fragment,{children:typeof t=="string"?w.jsx("img",{alt:"Logo",className:I(e,qs),src:t}):w.jsxs(w.Fragment,{children:[w.jsx("img",{alt:"Logo",className:I(e,qs,F7),src:t.dark}),w.jsx("img",{alt:"Logo",className:I(e,qs,z7),src:t.light})]})}):null}var U7="vocs_NavLogo_logoImage",H7="vocs_NavLogo_title";function Yf(){const e=Je();return e.logoUrl?w.jsx(B7,{className:U7}):w.jsx("div",{className:H7,children:e.title})}const V7=h.createContext(void 0);function Wl(e){const t=h.useContext(V7);return e||t||"ltr"}function Kl(e){const t=e+"CollectionProvider",[n,r]=En(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=p=>{const{scope:y,children:g}=p,C=Z.useRef(null),v=Z.useRef(new Map).current;return Z.createElement(o,{scope:y,itemMap:v,collectionRef:C},g)},l=e+"CollectionSlot",s=Z.forwardRef((p,y)=>{const{scope:g,children:C}=p,v=i(l,g),m=ze(y,v.collectionRef);return Z.createElement(Co,{ref:m},C)}),u=e+"CollectionItemSlot",f="data-radix-collection-item",c=Z.forwardRef((p,y)=>{const{scope:g,children:C,...v}=p,m=Z.useRef(null),x=ze(y,m),E=i(u,g);return Z.useEffect(()=>(E.itemMap.set(m,{ref:m,...v}),()=>void E.itemMap.delete(m))),Z.createElement(Co,{[f]:"",ref:x},C)});function d(p){const y=i(e+"CollectionConsumer",p);return Z.useCallback(()=>{const C=y.collectionRef.current;if(!C)return[];const v=Array.from(C.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((E,S)=>v.indexOf(E.ref.current)-v.indexOf(S.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:a,Slot:s,ItemSlot:c},d,r]}function W7(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const K7=h.forwardRef((e,t)=>h.createElement(fe.span,Y({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),Y7=K7,Vi="NavigationMenu",[Gf,G7,Q7]=Kl(Vi),[gu,Z7,X7]=Kl(Vi),[Qf,t$]=En(Vi,[Q7,X7]),[J7,Nr]=Qf(Vi),[q7,n$]=Qf(Vi),e6=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,delayDuration:a=200,skipDelayDuration:l=300,orientation:s="horizontal",dir:u,...f}=e,[c,d]=h.useState(null),p=ze(t,T=>d(T)),y=Wl(u),g=h.useRef(0),C=h.useRef(0),v=h.useRef(0),[m,x]=h.useState(!0),[E="",S]=rr({prop:r,onChange:T=>{const P=T!=="",j=l>0;P?(window.clearTimeout(v.current),j&&x(!1)):(window.clearTimeout(v.current),v.current=window.setTimeout(()=>x(!0),l)),o==null||o(T)},defaultProp:i}),_=h.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>S(""),150)},[S]),b=h.useCallback(T=>{window.clearTimeout(C.current),S(T)},[S]),$=h.useCallback(T=>{E===T?window.clearTimeout(C.current):g.current=window.setTimeout(()=>{window.clearTimeout(C.current),S(T)},a)},[E,S,a]);return h.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(C.current),window.clearTimeout(v.current)},[]),h.createElement(t6,{scope:n,isRootMenu:!0,value:E,dir:y,orientation:s,rootNavigationMenu:c,onTriggerEnter:T=>{window.clearTimeout(g.current),m?$(T):b(T)},onTriggerLeave:()=>{window.clearTimeout(g.current),_()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:_,onItemSelect:T=>{S(P=>P===T?"":T)},onItemDismiss:()=>S("")},h.createElement(fe.nav,Y({"aria-label":"Main","data-orientation":s,dir:y},f,{ref:p})))}),t6=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:i,children:a,value:l,onItemSelect:s,onItemDismiss:u,onTriggerEnter:f,onTriggerLeave:c,onContentEnter:d,onContentLeave:p}=e,[y,g]=h.useState(null),[C,v]=h.useState(new Map),[m,x]=h.useState(null);return h.createElement(J7,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:l,previousValue:W7(l),baseId:rn(),dir:o,orientation:i,viewport:y,onViewportChange:g,indicatorTrack:m,onIndicatorTrackChange:x,onTriggerEnter:at(f),onTriggerLeave:at(c),onContentEnter:at(d),onContentLeave:at(p),onItemSelect:at(s),onItemDismiss:at(u),onViewportContentChange:h.useCallback((E,S)=>{v(_=>(_.set(E,S),new Map(_)))},[]),onViewportContentRemove:h.useCallback(E=>{v(S=>S.has(E)?(S.delete(E),new Map(S)):S)},[])},h.createElement(Gf.Provider,{scope:t},h.createElement(q7,{scope:t,items:C},a)))},n6="NavigationMenuList",r6=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Nr(n6,n),i=h.createElement(fe.ul,Y({"data-orientation":o.orientation},r,{ref:t}));return h.createElement(fe.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange},h.createElement(Gf.Slot,{scope:n},o.isRootMenu?h.createElement(Og,{asChild:!0},i):i))}),o6="NavigationMenuItem",[i6,Ag]=Qf(o6),a6=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,i=rn(),a=r||i||"LEGACY_REACT_AUTO_VALUE",l=h.useRef(null),s=h.useRef(null),u=h.useRef(null),f=h.useRef(()=>{}),c=h.useRef(!1),d=h.useCallback((y="start")=>{if(l.current){f.current();const g=yu(l.current);g.length&&Zf(y==="start"?g:g.reverse())}},[]),p=h.useCallback(()=>{if(l.current){const y=yu(l.current);y.length&&(f.current=p6(y))}},[]);return h.createElement(i6,{scope:n,value:a,triggerRef:s,contentRef:l,focusProxyRef:u,wasEscapeCloseRef:c,onEntryKeyDown:d,onFocusProxyEnter:d,onRootContentClose:p,onContentFocusOutside:p},h.createElement(fe.li,Y({},o,{ref:t})))}),Cp="NavigationMenuTrigger",l6=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,i=Nr(Cp,e.__scopeNavigationMenu),a=Ag(Cp,e.__scopeNavigationMenu),l=h.useRef(null),s=ze(l,a.triggerRef,t),u=Mg(i.baseId,a.value),f=jg(i.baseId,a.value),c=h.useRef(!1),d=h.useRef(!1),p=a.value===i.value;return h.createElement(h.Fragment,null,h.createElement(Gf.ItemSlot,{scope:n,value:a.value},h.createElement(Ig,{asChild:!0},h.createElement(fe.button,Y({id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":Lg(p),"aria-expanded":p,"aria-controls":f},o,{ref:s,onPointerEnter:ae(e.onPointerEnter,()=>{d.current=!1,a.wasEscapeCloseRef.current=!1}),onPointerMove:ae(e.onPointerMove,wu(()=>{r||d.current||a.wasEscapeCloseRef.current||c.current||(i.onTriggerEnter(a.value),c.current=!0)})),onPointerLeave:ae(e.onPointerLeave,wu(()=>{r||(i.onTriggerLeave(),c.current=!1)})),onClick:ae(e.onClick,()=>{i.onItemSelect(a.value),d.current=p}),onKeyDown:ae(e.onKeyDown,y=>{const C={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];p&&y.key===C&&(a.onEntryKeyDown(),y.preventDefault())})})))),p&&h.createElement(h.Fragment,null,h.createElement(Y7,{"aria-hidden":!0,tabIndex:0,ref:a.focusProxyRef,onFocus:y=>{const g=a.contentRef.current,C=y.relatedTarget,v=C===l.current,m=g==null?void 0:g.contains(C);(v||!m)&&a.onFocusProxyEnter(v?"start":"end")}}),i.viewport&&h.createElement("span",{"aria-owns":f})))}),Ep="navigationMenu.linkSelect",s6=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return h.createElement(Ig,{asChild:!0},h.createElement(fe.a,Y({"data-active":r?"":void 0,"aria-current":r?"page":void 0},i,{ref:t,onClick:ae(e.onClick,a=>{const l=a.target,s=new CustomEvent(Ep,{bubbles:!0,cancelable:!0});if(l.addEventListener(Ep,u=>o==null?void 0:o(u),{once:!0}),lu(l,s),!s.defaultPrevented&&!a.metaKey){const u=new CustomEvent(Ua,{bubbles:!0,cancelable:!0});lu(l,u)}},{checkForDefaultPrevented:!1})})))}),wl="NavigationMenuContent",c6=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Nr(wl,e.__scopeNavigationMenu),i=Ag(wl,e.__scopeNavigationMenu),a=ze(i.contentRef,t),l=i.value===o.value,s={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return o.viewport?h.createElement(u6,Y({forceMount:n},s,{ref:a})):h.createElement(_n,{present:n||l},h.createElement(f6,Y({"data-state":Lg(l)},s,{ref:a,onPointerEnter:ae(e.onPointerEnter,o.onContentEnter),onPointerLeave:ae(e.onPointerLeave,wu(o.onContentLeave)),style:{pointerEvents:!l&&o.isRootMenu?"none":void 0,...s.style}})))}),u6=h.forwardRef((e,t)=>{const n=Nr(wl,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return gn(()=>{r(e.value,{ref:t,...e})},[e,t,r]),gn(()=>()=>o(e.value),[e.value,o]),null}),Ua="navigationMenu.rootContentDismiss",f6=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:i,wasEscapeCloseRef:a,onRootContentClose:l,onContentFocusOutside:s,...u}=e,f=Nr(wl,n),c=h.useRef(null),d=ze(c,t),p=Mg(f.baseId,r),y=jg(f.baseId,r),g=G7(n),C=h.useRef(null),{onItemDismiss:v}=f;h.useEffect(()=>{const x=c.current;if(f.isRootMenu&&x){const E=()=>{var S;v(),l(),x.contains(document.activeElement)&&((S=o.current)===null||S===void 0||S.focus())};return x.addEventListener(Ua,E),()=>x.removeEventListener(Ua,E)}},[f.isRootMenu,e.value,o,v,l]);const m=h.useMemo(()=>{const E=g().map(P=>P.value);f.dir==="rtl"&&E.reverse();const S=E.indexOf(f.value),_=E.indexOf(f.previousValue),b=r===f.value,$=_===E.indexOf(r);if(!b&&!$)return C.current;const T=(()=>{if(S!==_){if(b&&_!==-1)return S>_?"from-end":"from-start";if($&&S!==-1)return S>_?"to-start":"to-end"}return null})();return C.current=T,T},[f.previousValue,f.value,f.dir,g,r]);return h.createElement(Og,{asChild:!0},h.createElement(Hf,Y({id:y,"aria-labelledby":p,"data-motion":m,"data-orientation":f.orientation},u,{ref:d,onDismiss:()=>{var x;const E=new Event(Ua,{bubbles:!0,cancelable:!0});(x=c.current)===null||x===void 0||x.dispatchEvent(E)},onFocusOutside:ae(e.onFocusOutside,x=>{var E;s();const S=x.target;(E=f.rootNavigationMenu)!==null&&E!==void 0&&E.contains(S)&&x.preventDefault()}),onPointerDownOutside:ae(e.onPointerDownOutside,x=>{var E;const S=x.target,_=g().some($=>{var T;return(T=$.ref.current)===null||T===void 0?void 0:T.contains(S)}),b=f.isRootMenu&&((E=f.viewport)===null||E===void 0?void 0:E.contains(S));(_||b||!f.isRootMenu)&&x.preventDefault()}),onKeyDown:ae(e.onKeyDown,x=>{const E=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!E){const b=yu(x.currentTarget),$=document.activeElement,T=b.findIndex(L=>L===$),j=x.shiftKey?b.slice(0,T).reverse():b.slice(T+1,b.length);if(Zf(j))x.preventDefault();else{var _;(_=i.current)===null||_===void 0||_.focus()}}}),onEscapeKeyDown:ae(e.onEscapeKeyDown,x=>{a.current=!0})})))}),d6="FocusGroup",Og=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Nr(d6,n);return h.createElement(gu.Provider,{scope:n},h.createElement(gu.Slot,{scope:n},h.createElement(fe.div,Y({dir:o.dir},r,{ref:t}))))}),_p=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],h6="FocusGroupItem",Ig=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Z7(n),i=Nr(h6,n);return h.createElement(gu.ItemSlot,{scope:n},h.createElement(fe.button,Y({},r,{ref:t,onKeyDown:ae(e.onKeyDown,a=>{if(["Home","End",..._p].includes(a.key)){let s=o().map(c=>c.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(a.key)&&s.reverse(),_p.includes(a.key)){const c=s.indexOf(a.currentTarget);s=s.slice(c+1)}setTimeout(()=>Zf(s)),a.preventDefault()}})})))});function yu(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Zf(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function p6(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function Lg(e){return e?"open":"closed"}function Mg(e,t){return`${e}-trigger-${t}`}function jg(e,t){return`${e}-content-${t}`}function wu(e){return t=>t.pointerType==="mouse"?e(t):void 0}const v6=e6,m6=r6,g6=a6,y6=l6,w6=s6,x6=c6;var C6="var(--vocs_NavigationMenu_chevronDownIcon)",E6="vocs_NavigationMenu_content",_6="vocs_NavigationMenu_item",S6="vocs_NavigationMenu_link",b6="vocs_NavigationMenu_list",$6="vocs_NavigationMenu",T6="vocs_NavigationMenu_trigger vocs_NavigationMenu_link";const Dg=e=>w.jsx(v6,{...e,className:I(e.className,$6)}),Fg=e=>w.jsx(m6,{...e,className:I(e.className,b6)}),Yl=({active:e,children:t,className:n,href:r})=>w.jsx(w6,{asChild:!0,children:w.jsx(nn,{"data-active":e,className:I(n,S6),href:r,variant:"styleless",children:t})}),zg=e=>w.jsx(g6,{...e,className:I(e.className,_6)}),Bg=({active:e,className:t,...n})=>{const{basePath:r}=Je(),o=r;return w.jsx(y6,{...n,"data-active":e,className:I(t,T6),style:Gt({[C6]:`url(${o}/.vocs/icons/chevron-down.svg)`})})},Ug=e=>w.jsx(x6,{...e,className:I(e.className,E6)});function Hg(){return w.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 127.14 96.36",children:[w.jsx("title",{children:"Discord"}),w.jsx("g",{id:"图层_2","data-name":"图层 2",children:w.jsx("g",{id:"Discord_Logos","data-name":"Discord Logos",children:w.jsx("g",{id:"Discord_Logo_-_Large_-_White","data-name":"Discord Logo - Large - White",children:w.jsx("path",{d:"M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z",fill:"currentColor"})})})})]})}function Vg(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 98 96",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"GitHub"}),w.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z",fill:"currentColor"})]})}function k6(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 78 82",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Moon"}),w.jsx("path",{d:"M62.8455 45.9668C63.6268 45.9668 64.2127 45.3809 64.3104 44.5508C65.4334 34.3457 66.0682 33.9551 76.4197 32.3438C77.3963 32.1973 77.9334 31.7578 77.9334 30.8789C77.9334 30.0977 77.3963 29.5605 76.6151 29.4629C66.1658 27.4609 65.4334 27.4609 64.3104 17.2559C64.2127 16.377 63.6268 15.8398 62.8455 15.8398C62.0154 15.8398 61.4783 16.377 61.3807 17.207C60.1111 27.6074 59.6229 28.0957 49.0272 29.4629C48.2947 29.5117 47.7088 30.0977 47.7088 30.8789C47.7088 31.709 48.2947 32.1973 49.0272 32.3438C59.6229 34.3457 60.0623 34.4434 61.3807 44.6484C61.4783 45.3809 62.0154 45.9668 62.8455 45.9668ZM44.535 19.5508C45.0233 19.5508 45.3162 19.2578 45.4139 18.7695C46.6834 12.4707 46.5369 12.373 53.1287 11.0547C53.5682 10.957 53.91 10.7129 53.91 10.1758C53.91 9.63868 53.5682 9.39448 53.1287 9.29688C46.5369 7.97848 46.6834 7.88089 45.4139 1.58199C45.3162 1.09379 45.0233 0.800781 44.535 0.800781C43.9979 0.800781 43.7049 1.09379 43.6072 1.58199C42.3377 7.88089 42.4842 7.97848 35.9412 9.29688C35.4529 9.39448 35.1111 9.63868 35.1111 10.1758C35.1111 10.7129 35.4529 10.957 35.9412 11.0547C42.4842 12.373 42.3865 12.4707 43.6072 18.7695C43.7049 19.2578 43.9979 19.5508 44.535 19.5508Z",fill:"currentColor"}),w.jsx("path",{d:"M34.3298 81.2696C48.49 81.2696 59.9157 74.043 65.0915 61.7872C65.8239 59.9806 65.5798 58.6134 64.7497 57.7833C64.0173 57.0509 62.7478 56.9044 61.3318 57.4903C58.4509 58.6134 54.9353 59.2481 50.6384 59.2481C33.695 59.2481 22.7575 48.6036 22.7575 32.2462C22.7575 27.4122 23.6853 22.6759 24.7595 20.5763C25.5407 18.9161 25.4919 17.5001 24.8083 16.67C24.0271 15.7423 22.6599 15.4005 20.7068 16.1329C8.64624 20.7716 0.345459 33.4181 0.345459 47.8712C0.345459 66.8165 14.5056 81.2696 34.3298 81.2696ZM34.4275 74.5801C18.4607 74.5801 7.03494 62.9591 7.03494 47.3341C7.03494 38.2521 10.9411 30.0489 17.6306 24.629C16.8005 27.0704 16.361 30.6837 16.361 34.1505C16.361 52.8517 29.5446 65.6935 48.8806 65.6935C52.0544 65.6935 54.9841 65.3517 56.4001 64.9122C51.615 70.918 43.4607 74.5801 34.4275 74.5801Z",fill:"currentColor"})]})}function R6(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 84 84",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Sun"}),w.jsx("path",{d:"M41.8675 15.5254C43.9183 15.5254 45.6273 13.7676 45.6273 11.7168V3.80658C45.6273 1.75588 43.9183 0.046875 41.8675 0.046875C39.7679 0.046875 38.0589 1.75588 38.0589 3.80658V11.7168C38.0589 13.7676 39.7679 15.5254 41.8675 15.5254ZM60.3246 23.2402C61.7895 24.7051 64.2309 24.7539 65.7446 23.2402L71.3598 17.6738C72.7758 16.209 72.7758 13.7188 71.3598 12.2539C69.8949 10.7891 67.4535 10.7891 65.9887 12.2539L60.3246 17.918C58.9086 19.3828 58.9086 21.7754 60.3246 23.2402ZM67.9906 41.7461C67.9906 43.7969 69.7485 45.5547 71.7992 45.5547H79.6117C81.7113 45.5547 83.4202 43.7969 83.4202 41.7461C83.4202 39.6953 81.7113 37.9375 79.6117 37.9375H71.7992C69.7485 37.9375 67.9906 39.6953 67.9906 41.7461ZM60.3246 60.3008C58.9086 61.7656 58.9086 64.1582 60.3246 65.623L65.9887 71.2871C67.4535 72.7519 69.8949 72.7031 71.3598 71.2383C72.7758 69.7734 72.7758 67.332 71.3598 65.8672L65.6957 60.3008C64.2309 58.8359 61.7895 58.8359 60.3246 60.3008ZM41.8675 67.9668C39.7679 67.9668 38.0589 69.7246 38.0589 71.7754V79.6855C38.0589 81.7363 39.7679 83.4453 41.8675 83.4453C43.9183 83.4453 45.6273 81.7363 45.6273 79.6855V71.7754C45.6273 69.7246 43.9183 67.9668 41.8675 67.9668ZM23.3617 60.3008C21.8969 58.8359 19.4067 58.8359 17.9418 60.3008L12.3754 65.8184C10.9106 67.2832 10.9106 69.7246 12.3266 71.1894C13.7914 72.6543 16.2328 72.7031 17.6977 71.2383L23.3129 65.623C24.7778 64.1582 24.7778 61.7656 23.3617 60.3008ZM15.6957 41.7461C15.6957 39.6953 13.9867 37.9375 11.8871 37.9375H4.07455C1.97497 37.9375 0.265991 39.6953 0.265991 41.7461C0.265991 43.7969 1.97497 45.5547 4.07455 45.5547H11.8871C13.9867 45.5547 15.6957 43.7969 15.6957 41.7461ZM23.3129 23.2402C24.7778 21.8242 24.7778 19.334 23.3617 17.918L17.7465 12.2539C16.3305 10.8379 13.8403 10.7891 12.4242 12.2539C10.9594 13.7188 10.9594 16.209 12.3754 17.625L17.9418 23.2402C19.4067 24.7051 21.8481 24.7051 23.3129 23.2402Z",fill:"currentColor"}),w.jsx("path",{d:"M41.8675 61.668C52.7073 61.668 61.7405 52.6836 61.7405 41.7461C61.7405 30.8086 52.7073 21.8242 41.8675 21.8242C30.9788 21.8242 21.9456 30.8086 21.9456 41.7461C21.9456 52.6836 30.9788 61.668 41.8675 61.668ZM41.8675 55.0273C34.5921 55.0273 28.5862 48.9727 28.5862 41.7461C28.5862 34.5195 34.5921 28.4648 41.8675 28.4648C49.0941 28.4648 55.0999 34.5195 55.0999 41.7461C55.0999 48.9727 49.0941 55.0273 41.8675 55.0273Z",fill:"currentColor"})]})}function Wg(){return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 50 50",children:[w.jsx("title",{children:"Telegram"}),w.jsx("path",{d:"M25 2c12.703 0 23 10.297 23 23S37.703 48 25 48 2 37.703 2 25 12.297 2 25 2zm7.934 32.375c.423-1.298 2.405-14.234 2.65-16.783.074-.772-.17-1.285-.648-1.514-.578-.278-1.434-.139-2.427.219-1.362.491-18.774 7.884-19.78 8.312-.954.405-1.856.847-1.856 1.487 0 .45.267.703 1.003.966.766.273 2.695.858 3.834 1.172 1.097.303 2.346.04 3.046-.395.742-.461 9.305-6.191 9.92-6.693.614-.502 1.104.141.602.644-.502.502-6.38 6.207-7.155 6.997-.941.959-.273 1.953.358 2.351.721.454 5.906 3.932 6.687 4.49.781.558 1.573.811 2.298.811.725 0 1.107-.955 1.468-2.064z",fill:"currentColor"})]})}function Kg(){return w.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Warpcast"}),w.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.92028 31.9901H24.0698C28.4371 31.9901 31.9901 28.4373 31.9901 24.0699V7.92053C31.9901 3.55319 28.4371 0.000137329 24.0698 0.000137329H7.92028C3.55304 0.000137329 0 3.55319 0 7.92053V24.0699C0 28.4373 3.55304 31.9901 7.92028 31.9901ZM19.4134 16.048L20.9908 10.124H25.1383L21.2924 23.2218H17.7062L15.9951 17.1397L14.284 23.2218H10.7055L6.85115 10.124H10.999L12.5915 16.0916L14.1891 10.124H17.8309L19.4134 16.048Z",fill:"currentColor"})]})}function Yg(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 1200 1227",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"X"}),w.jsx("path",{d:"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z",fill:"currentColor"})]})}xu.Curtain=N6;function xu(){var r,o,i,a;const e=Je(),{showLogo:t,showSidebar:n}=Rr();return w.jsxs("div",{className:I(M7,t&&!n&&j7),children:[w.jsx(P7,{}),t&&w.jsx("div",{className:L7,children:w.jsx("div",{className:I7,children:w.jsx(Gn,{to:"/",style:{alignItems:"center",display:"flex",height:"56px",marginTop:"4px"},children:w.jsx(Yf,{})})})}),w.jsx("div",{className:xp}),w.jsxs("div",{className:xp,children:[(((r=e.topNav)==null?void 0:r.length)||0)>0&&w.jsxs(w.Fragment,{children:[w.jsx("div",{className:Js,children:w.jsx(P6,{})}),w.jsx("div",{className:I(wp,Sa)})]}),e.socials&&((o=e.socials)==null?void 0:o.length)>0&&w.jsxs(w.Fragment,{children:[w.jsx("div",{className:I(Js,Sa),style:{marginLeft:"-8px",marginRight:"-8px"},children:e.socials.map((l,s)=>w.jsx("div",{className:yl,children:w.jsx(M6,{...l})},s))}),!((i=e.theme)!=null&&i.colorScheme)&&w.jsx("div",{className:I(wp,Sa)})]}),!((a=e.theme)!=null&&a.colorScheme)&&w.jsx("div",{className:I(Js,Sa),style:{marginLeft:"-8px",marginRight:"-8px"},children:w.jsx("div",{className:yl,children:w.jsx(O6,{})})})]})]})}function N6(){return w.jsx("div",{className:O7})}function P6(){const{topNav:e}=Je();if(!e)return null;const{pathname:t}=Re(),n=Hi({pathname:t,items:e});return w.jsx(Dg,{delayDuration:0,children:w.jsx(Fg,{children:e.map((r,o)=>r.link?w.jsx(Yl,{active:n.includes(r.id),className:yl,href:r.link,children:r.text},o):r.items?w.jsxs(zg,{className:yl,children:[w.jsx(Bg,{active:n.includes(r.id),children:r.text}),w.jsx(Ug,{className:A7,children:w.jsx(A6,{items:r.items})})]},o):null)})})}function A6({items:e}){const{pathname:t}=Re(),n=Hi({pathname:t,items:e});return w.jsx("ul",{children:e==null?void 0:e.map((r,o)=>w.jsx(Yl,{active:n.includes(r.id),href:r.link,children:r.text},o))})}function O6(){const{toggle:e}=y5();return w.jsxs("button",{className:Pg,onClick:e,type:"button",children:[w.jsx(st,{className:I(vu,w5),size:"20px",label:"Light",icon:R6}),w.jsx(st,{className:I(vu,x5),size:"20px",label:"Dark",icon:k6,style:{marginTop:"-2px"}})]})}const I6={discord:Hg,github:Vg,telegram:Wg,warpcast:Kg,x:Yg},L6={discord:"23px",github:"20px",telegram:"21px",warpcast:"20px",x:"18px"};function M6({icon:e,label:t,link:n}){return w.jsx("a",{className:Pg,href:n,target:"_blank",rel:"noopener noreferrer",children:w.jsx(st,{className:vu,label:t,icon:I6[e],size:L6[e]||"20px"})})}const j6=({children:e})=>e,D6=({children:e})=>e;function F6(){const e=kr(),t=Je();return h.useMemo(()=>{const{pattern:n="",text:r="Edit page"}=t.editLink??{};let o="";return typeof n=="function"?o="":e.filePath&&(o=n.replace(/:path/g,e.filePath)),{url:o,text:r}},[t.editLink,e.filePath])}function Gg(){const[e,t]=h.useState(!1);return h.useEffect(()=>{t(!0)},[]),e}var z6="vocs_Footer_container",B6="vocs_Footer_editLink",U6="vocs_Footer_lastUpdated",H6="vocs_Footer_navigation",Sp="vocs_Footer_navigationIcon",V6="vocs_Footer_navigationIcon_left",W6="vocs_Footer_navigationIcon_right",bp="vocs_Footer_navigationItem",K6="vocs_Footer_navigationItem_left",Y6="vocs_Footer_navigationItem_right",$p="vocs_Footer_navigationText",Tp="vocs_Footer_navigationTextInner",G6="vocs_Footer";function Q6(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 72 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Arrow Left"}),w.jsx("path",{d:"M0.325684 29.7461C0.325684 30.8203 0.813963 31.8457 1.69286 32.6758L26.8882 57.8223C27.7671 58.6524 28.7437 59.043 29.7691 59.043C31.9175 59.043 33.5777 57.4317 33.5777 55.2344C33.5777 54.209 33.2359 53.1836 32.5035 52.5L25.7652 45.5176L9.26126 30.6738L8.38236 32.7734L21.3706 33.7012H67.4644C69.7593 33.7012 71.3706 32.041 71.3706 29.7461C71.3706 27.4512 69.7593 25.791 67.4644 25.791H21.3706L8.38236 26.7188L9.26126 28.8672L25.7652 13.9746L32.5035 6.99221C33.2359 6.30861 33.5777 5.28322 33.5777 4.25782C33.5777 2.06052 31.9175 0.449219 29.7691 0.449219C28.7437 0.449219 27.7671 0.839814 26.8882 1.66991L1.69286 26.8164C0.813963 27.6465 0.325684 28.6719 0.325684 29.7461Z",fill:"currentColor"})]})}function Z6(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 72 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Arrow Right"}),w.jsx("path",{d:"M71.3706 29.7461C71.3706 28.6719 70.8824 27.6465 70.0035 26.8164L44.8081 1.66991C43.9292 0.839814 42.9527 0.449219 41.9273 0.449219C39.7789 0.449219 38.1187 2.06052 38.1187 4.25782C38.1187 5.28322 38.4605 6.30861 39.1929 6.99221L45.9312 13.9746L62.4351 28.8672L63.314 26.7188L50.3257 25.791H4.23196C1.93706 25.791 0.325684 27.4512 0.325684 29.7461C0.325684 32.041 1.93706 33.7012 4.23196 33.7012H50.3257L63.314 32.7734L62.4351 30.6738L45.9312 45.5176L39.1929 52.5C38.4605 53.1836 38.1187 54.209 38.1187 55.2344C38.1187 57.4317 39.7789 59.043 41.9273 59.043C42.9527 59.043 43.9292 58.6524 44.8081 57.8223L70.0035 32.6758C70.8824 31.8457 71.3706 30.8203 71.3706 29.7461Z",fill:"currentColor"})]})}function X6(){const{layout:e}=Rr(),t=Gg(),n=kr(),r=h.useMemo(()=>n.lastUpdatedAt?new Date(n.lastUpdatedAt):void 0,[n.lastUpdatedAt]),o=h.useMemo(()=>r==null?void 0:r.toISOString(),[r]);return w.jsxs("footer",{className:G6,children:[e==="docs"&&w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:z6,children:[w.jsx(J6,{}),t&&n.lastUpdatedAt&&w.jsxs("div",{className:U6,children:["Last updated:"," ",w.jsx("time",{dateTime:o,children:new Intl.DateTimeFormat(void 0,{dateStyle:"short",timeStyle:"short"}).format(r)})]})]}),w.jsx(q6,{})]}),w.jsx(D6,{})]})}function J6(){const e=F6();return e.url?w.jsx("div",{children:w.jsxs(nn,{className:B6,href:e.url,children:[w.jsx(v5,{})," ",e.text]})}):null}function q6(){const e=Gg(),t=Hl(),{pathname:n}=Re(),r=h.useMemo(()=>Qg(t.items||[]).filter(s=>s.link),[t]),o=h.useMemo(()=>r.findIndex(s=>s.link===n),[r,n]),[i,a]=h.useMemo(()=>o<0?[]:o===0?[null,r[o+1]]:o===r.length-1?[r[o-1],null]:[r[o-1],r[o+1]],[o,r]),l=Df();return h.useEffect(()=>{let s=o,u=!1;const f=d=>{if(d.code==="ShiftLeft"&&(u=!0),u){const p=r[s+1],y=r[s-1];d.code==="ArrowRight"&&(p!=null&&p.link)&&(l(p.link),s++),d.code==="ArrowLeft"&&(y!=null&&y.link)&&(l(y.link),s--)}},c=d=>{d.code==="ShiftLeft"&&(u=!1)};return window.addEventListener("keydown",f),window.addEventListener("keyup",c),()=>{window.removeEventListener("keydown",f),window.removeEventListener("keyup",c)}},[]),e?w.jsxs("div",{className:H6,children:[i?w.jsxs(nn,{className:I(bp,K6),href:i.link,variant:"styleless",children:[w.jsxs("div",{className:$p,children:[w.jsx("div",{className:I(Sp,V6),style:Gt({[mu]:"0.75em"}),children:w.jsx(st,{label:"Previous",icon:Q6})}),w.jsx("div",{className:Tp,children:i.text})]}),w.jsx(eo,{description:"Previous",keys:["shift","←"]})]}):w.jsx("div",{}),a?w.jsxs(nn,{className:I(bp,Y6),href:a.link,variant:"styleless",children:[w.jsxs("div",{className:$p,children:[w.jsx("div",{className:Tp,style:{textAlign:"right"},children:a.text}),w.jsx("div",{className:I(Sp,W6),style:Gt({[mu]:"0.75em"}),children:w.jsx(st,{label:"Next",icon:Z6})})]}),w.jsx(eo,{description:"Next",keys:["shift","→"]})]}):w.jsx("div",{})]}):null}function Qg(e){const t=[];for(const n of e){if(n.items){t.push(...Qg(n.items));continue}t.push(n)}return t}const Zg="Collapsible",[e8,Xg]=En(Zg),[t8,Xf]=e8(Zg),n8=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:a,...l}=e,[s=!1,u]=rr({prop:r,defaultProp:o,onChange:a});return h.createElement(t8,{scope:n,disabled:i,contentId:rn(),open:s,onOpenToggle:h.useCallback(()=>u(f=>!f),[u])},h.createElement(fe.div,Y({"data-state":Jf(s),"data-disabled":i?"":void 0},l,{ref:t})))}),r8="CollapsibleTrigger",o8=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Xf(r8,n);return h.createElement(fe.button,Y({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Jf(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},r,{ref:t,onClick:ae(e.onClick,o.onOpenToggle)}))}),Jg="CollapsibleContent",i8=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Xf(Jg,e.__scopeCollapsible);return h.createElement(_n,{present:n||o.open},({present:i})=>h.createElement(a8,Y({},r,{ref:t,present:i})))}),a8=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,a=Xf(Jg,n),[l,s]=h.useState(r),u=h.useRef(null),f=ze(t,u),c=h.useRef(0),d=c.current,p=h.useRef(0),y=p.current,g=a.open||l,C=h.useRef(g),v=h.useRef();return h.useEffect(()=>{const m=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(m)},[]),gn(()=>{const m=u.current;if(m){v.current=v.current||{transitionDuration:m.style.transitionDuration,animationName:m.style.animationName},m.style.transitionDuration="0s",m.style.animationName="none";const x=m.getBoundingClientRect();c.current=x.height,p.current=x.width,C.current||(m.style.transitionDuration=v.current.transitionDuration,m.style.animationName=v.current.animationName),s(r)}},[a.open,r]),h.createElement(fe.div,Y({"data-state":Jf(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!g},i,{ref:f,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style}}),g&&o)});function Jf(e){return e?"open":"closed"}const l8=n8,s8=o8,c8=i8,Pr="Accordion",u8=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[qf,f8,d8]=Kl(Pr),[Gl,r$]=En(Pr,[d8,Xg]),ed=Xg(),qg=Z.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return Z.createElement(qf.Provider,{scope:e.__scopeAccordion},n==="multiple"?Z.createElement(m8,Y({},i,{ref:t})):Z.createElement(v8,Y({},o,{ref:t})))});qg.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[e1,h8]=Gl(Pr),[t1,p8]=Gl(Pr,{collapsible:!1}),v8=Z.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...a}=e,[l,s]=rr({prop:n,defaultProp:r,onChange:o});return Z.createElement(e1,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:s,onItemClose:Z.useCallback(()=>i&&s(""),[i,s])},Z.createElement(t1,{scope:e.__scopeAccordion,collapsible:i},Z.createElement(n1,Y({},a,{ref:t}))))}),m8=Z.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[a=[],l]=rr({prop:n,defaultProp:r,onChange:o}),s=Z.useCallback(f=>l((c=[])=>[...c,f]),[l]),u=Z.useCallback(f=>l((c=[])=>c.filter(d=>d!==f)),[l]);return Z.createElement(e1,{scope:e.__scopeAccordion,value:a,onItemOpen:s,onItemClose:u},Z.createElement(t1,{scope:e.__scopeAccordion,collapsible:!0},Z.createElement(n1,Y({},i,{ref:t}))))}),[g8,td]=Gl(Pr),n1=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...a}=e,l=Z.useRef(null),s=ze(l,t),u=f8(n),c=Wl(o)==="ltr",d=ae(e.onKeyDown,p=>{var y;if(!u8.includes(p.key))return;const g=p.target,C=u().filter(T=>{var P;return!((P=T.ref.current)!==null&&P!==void 0&&P.disabled)}),v=C.findIndex(T=>T.ref.current===g),m=C.length;if(v===-1)return;p.preventDefault();let x=v;const E=0,S=m-1,_=()=>{x=v+1,x>S&&(x=E)},b=()=>{x=v-1,x{const{__scopeAccordion:n,value:r,...o}=e,i=td(Cu,n),a=h8(Cu,n),l=ed(n),s=rn(),u=r&&a.value.includes(r)||!1,f=i.disabled||e.disabled;return Z.createElement(y8,{scope:n,open:u,disabled:f,triggerId:s},Z.createElement(l8,Y({"data-orientation":i.orientation,"data-state":_8(u)},l,o,{ref:t,disabled:f,open:u,onOpenChange:c=>{c?a.onItemOpen(r):a.onItemClose(r)}})))}),kp="AccordionTrigger",x8=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=td(Pr,n),i=r1(kp,n),a=p8(kp,n),l=ed(n);return Z.createElement(qf.ItemSlot,{scope:n},Z.createElement(s8,Y({"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId},l,r,{ref:t})))}),C8="AccordionContent",E8=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=td(Pr,n),i=r1(C8,n),a=ed(n);return Z.createElement(c8,Y({role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation},a,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function _8(e){return e?"open":"closed"}const S8=qg,b8=w8,$8=x8,T8=E8;var k8="vocs_MobileSearch_searchButton";function R8(){const[e,t]=h.useState(!1);return w.jsxs(wg,{open:e,onOpenChange:t,children:[w.jsx(xg,{asChild:!0,children:w.jsx("button",{className:k8,type:"button","aria-label":"Search",children:w.jsx(Uf,{height:21,width:21})})}),w.jsx(Ng,{open:e,onClose:()=>t(!1)})]})}var N8="vocs_MobileTopNav_button",P8="var(--vocs_MobileTopNav_chevronDownIcon)",A8="var(--vocs_MobileTopNav_chevronUpIcon)",O8="vocs_MobileTopNav_content",I8="vocs_MobileTopNav_curtain",Rp="vocs_MobileTopNav_curtainGroup",ec="vocs_MobileTopNav_curtainItem",L8="vocs_MobileTopNav_divider",ba="vocs_MobileTopNav_group",M8="vocs_MobileTopNav_icon",j8="vocs_MobileTopNav_item",D8="vocs_MobileTopNav_logo",F8="vocs_MobileTopNav_menuTitle",o1="vocs_MobileTopNav_menuTrigger",i1="vocs_MobileTopNav_navigation",z8="vocs_MobileTopNav_navigationContent",Qo="vocs_MobileTopNav_navigationItem",B8="vocs_MobileTopNav_trigger",U8="vocs_MobileTopNav_navigation_compact",H8="vocs_MobileTopNav_outlinePopover",Np="vocs_MobileTopNav_outlineTrigger",V8="vocs_MobileTopNav",Pp="vocs_MobileTopNav_section",W8="vocs_MobileTopNav_separator",K8="vocs_MobileTopNav_sidebarPopover",Y8="vocs_MobileTopNav_topNavPopover";function G8(e,t){let n=!1;return()=>{n=!0,setTimeout(()=>{n&&e(),n=!1},t)}}var Q8="vocs_Outline_heading",Z8="vocs_Outline_item",X8="vocs_Outline_items",J8="vocs_Outline_link",q8="vocs_Outline_nav",eC="vocs_Outline";function a1({minLevel:e=2,maxLevel:t=3,highlightActive:n=!0,onClickItem:r,showTitle:o=!0}={}){const{outlineFooter:i}=Je(),{showOutline:a}=Rr(),l=typeof a=="number"?e+a-1:t,s=h.useRef(!0),{pathname:u,hash:f}=Re(),[c,d]=h.useState([]);h.useEffect(()=>{if(typeof window>"u")return;const v=Array.from(document.querySelectorAll(`.${H0}`));d(v)},[u]);const p=h.useMemo(()=>c?c.map(v=>{const m=v.querySelector(`.${V0}`);if(!m)return null;const x=m.getBoundingClientRect(),E=m.id,S=Number(v.tagName[1]),_=v.textContent,b=window.scrollY+x.top;return Sl?null:{id:E,level:S,slugTargetElement:m,text:_,topOffset:b}}).filter(Boolean):[],[c,l,e]),[y,g]=h.useState(f.replace("#",""));if(h.useEffect(()=>{if(typeof window>"u")return;const v=new IntersectionObserver(([m])=>{var E;if(!s.current)return;const x=m.target.id;if(m.isIntersecting)g(x);else{if(!(m.target.getBoundingClientRect().top>0))return;const b=p.findIndex(T=>T.id===y),$=(E=p[b-1])==null?void 0:E.id;g($)}},{rootMargin:"0px 0px -95% 0px"});for(const m of p)v.observe(m.slugTargetElement);return()=>v.disconnect()},[y,p]),h.useEffect(()=>{if(typeof window>"u")return;const v=new IntersectionObserver(([m])=>{var E;if(!s.current)return;const x=(E=p[p.length-1])==null?void 0:E.id;m.isIntersecting?g(x):y===x&&g(p[p.length-2].id)});return v.observe(document.querySelector("[data-bottom-observer]")),()=>v.disconnect()},[y,p]),h.useEffect(()=>{if(typeof window>"u")return;const v=G8(()=>{var m,x,E;if(s.current){if(window.scrollY===0){g((m=p[0])==null?void 0:m.id);return}if(window.scrollY+document.documentElement.clientHeight>=document.documentElement.scrollHeight){g((x=p[p.length-1])==null?void 0:x.id);return}for(let S=0;Swindow.removeEventListener("scroll",v)},[p]),p.length===0)return null;const C=p.filter(v=>v.level===e);return w.jsxs("aside",{className:eC,children:[w.jsxs("nav",{className:q8,children:[o&&w.jsx("h2",{className:Q8,children:"On this page"}),w.jsx(l1,{activeId:n?y:null,items:p,onClickItem:()=>{r==null||r(),s.current=!1,setTimeout(()=>{s.current=!0},500)},levelItems:C,setActiveId:g})]}),ml(i)]})}function l1({activeId:e,items:t,levelItems:n,onClickItem:r,setActiveId:o}){const{pathname:i}=Re();return w.jsx("ul",{className:X8,children:n.map(({id:a,level:l,text:s})=>{const u=`#${a}`,f=e===a,c=(()=>{var C;const p=t.findIndex(v=>v.id===a)+1,y=(C=t[p])==null?void 0:C.level;if(y<=l)return null;const g=[];for(let v=p;v{r==null||r(),o(a)},className:J8,children:s})}),c&&w.jsx(l1,{activeId:e,levelItems:c,items:t,onClickItem:r,setActiveId:o})]},a)})})}const tC=["top","right","bottom","left"],Qn=Math.min,Et=Math.max,xl=Math.round,$a=Math.floor,Zn=e=>({x:e,y:e}),nC={left:"right",right:"left",bottom:"top",top:"bottom"},rC={start:"end",end:"start"};function Eu(e,t,n){return Et(e,Qn(t,n))}function yn(e,t){return typeof e=="function"?e(t):e}function wn(e){return e.split("-")[0]}function No(e){return e.split("-")[1]}function nd(e){return e==="x"?"y":"x"}function rd(e){return e==="y"?"height":"width"}function Po(e){return["top","bottom"].includes(wn(e))?"y":"x"}function od(e){return nd(Po(e))}function oC(e,t,n){n===void 0&&(n=!1);const r=No(e),o=od(e),i=rd(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Cl(a)),[a,Cl(a)]}function iC(e){const t=Cl(e);return[_u(e),t,_u(t)]}function _u(e){return e.replace(/start|end/g,t=>rC[t])}function aC(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function lC(e,t,n,r){const o=No(e);let i=aC(wn(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(_u)))),i}function Cl(e){return e.replace(/left|right|bottom|top/g,t=>nC[t])}function sC(e){return{top:0,right:0,bottom:0,left:0,...e}}function s1(e){return typeof e!="number"?sC(e):{top:e,right:e,bottom:e,left:e}}function El(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Ap(e,t,n){let{reference:r,floating:o}=e;const i=Po(t),a=od(t),l=rd(a),s=wn(t),u=i==="y",f=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,d=r[l]/2-o[l]/2;let p;switch(s){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:c};break;case"left":p={x:r.x-o.width,y:c};break;default:p={x:r.x,y:r.y}}switch(No(t)){case"start":p[a]-=d*(n&&u?-1:1);break;case"end":p[a]+=d*(n&&u?-1:1);break}return p}const cC=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:c}=Ap(u,r,s),d=r,p={},y=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:u,padding:f=0}=yn(e,t)||{};if(u==null)return{};const c=s1(f),d={x:n,y:r},p=od(o),y=rd(p),g=await a.getDimensions(u),C=p==="y",v=C?"top":"left",m=C?"bottom":"right",x=C?"clientHeight":"clientWidth",E=i.reference[y]+i.reference[p]-d[p]-i.floating[y],S=d[p]-i.reference[p],_=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let b=_?_[x]:0;(!b||!await(a.isElement==null?void 0:a.isElement(_)))&&(b=l.floating[x]||i.floating[y]);const $=E/2-S/2,T=b/2-g[y]/2-1,P=Qn(c[v],T),j=Qn(c[m],T),L=P,D=b-g[y]-j,N=b/2-g[y]/2+$,z=Eu(L,N,D),V=!s.arrow&&No(o)!=null&&N!==z&&i.reference[y]/2-(NL<=0)){var T,P;const L=(((T=i.flip)==null?void 0:T.index)||0)+1,D=S[L];if(D)return{data:{index:L,overflows:$},reset:{placement:D}};let N=(P=$.filter(z=>z.overflows[0]<=0).sort((z,V)=>z.overflows[1]-V.overflows[1])[0])==null?void 0:P.placement;if(!N)switch(p){case"bestFit":{var j;const z=(j=$.map(V=>[V.placement,V.overflows.filter(U=>U>0).reduce((U,O)=>U+O,0)]).sort((V,U)=>V[1]-U[1])[0])==null?void 0:j[0];z&&(N=z);break}case"initialPlacement":N=l;break}if(o!==N)return{reset:{placement:N}}}return{}}}};function Op(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ip(e){return tC.some(t=>e[t]>=0)}const dC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=yn(e,t);switch(r){case"referenceHidden":{const i=await Oi(t,{...o,elementContext:"reference"}),a=Op(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ip(a)}}}case"escaped":{const i=await Oi(t,{...o,altBoundary:!0}),a=Op(i,n.floating);return{data:{escapedOffsets:a,escaped:Ip(a)}}}default:return{}}}}};async function hC(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=wn(n),l=No(n),s=Po(n)==="y",u=["left","top"].includes(a)?-1:1,f=i&&s?-1:1,c=yn(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:y}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return l&&typeof y=="number"&&(p=l==="end"?y*-1:y),s?{x:p*f,y:d*u}:{x:d*u,y:p*f}}const c1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await hC(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},pC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:C=>{let{x:v,y:m}=C;return{x:v,y:m}}},...s}=yn(e,t),u={x:n,y:r},f=await Oi(t,s),c=Po(wn(o)),d=nd(c);let p=u[d],y=u[c];if(i){const C=d==="y"?"top":"left",v=d==="y"?"bottom":"right",m=p+f[C],x=p-f[v];p=Eu(m,p,x)}if(a){const C=c==="y"?"top":"left",v=c==="y"?"bottom":"right",m=y+f[C],x=y-f[v];y=Eu(m,y,x)}const g=l.fn({...t,[d]:p,[c]:y});return{...g,data:{x:g.x-n,y:g.y-r}}}}},vC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=yn(e,t),f={x:n,y:r},c=Po(o),d=nd(c);let p=f[d],y=f[c];const g=yn(l,t),C=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(s){const x=d==="y"?"height":"width",E=i.reference[d]-i.floating[x]+C.mainAxis,S=i.reference[d]+i.reference[x]-C.mainAxis;pS&&(p=S)}if(u){var v,m;const x=d==="y"?"width":"height",E=["top","left"].includes(wn(o)),S=i.reference[c]-i.floating[x]+(E&&((v=a.offset)==null?void 0:v[c])||0)+(E?0:C.crossAxis),_=i.reference[c]+i.reference[x]+(E?0:((m=a.offset)==null?void 0:m[c])||0)-(E?C.crossAxis:0);y_&&(y=_)}return{[d]:p,[c]:y}}}},mC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=()=>{},...l}=yn(e,t),s=await Oi(t,l),u=wn(n),f=No(n),c=Po(n)==="y",{width:d,height:p}=r.floating;let y,g;u==="top"||u==="bottom"?(y=u,g=f===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(g=u,y=f==="end"?"top":"bottom");const C=p-s[y],v=d-s[g],m=!t.middlewareData.shift;let x=C,E=v;if(c){const _=d-s.left-s.right;E=f||m?Qn(v,_):_}else{const _=p-s.top-s.bottom;x=f||m?Qn(C,_):_}if(m&&!f){const _=Et(s.left,0),b=Et(s.right,0),$=Et(s.top,0),T=Et(s.bottom,0);c?E=d-2*(_!==0||b!==0?_+b:Et(s.left,s.right)):x=p-2*($!==0||T!==0?$+T:Et(s.top,s.bottom))}await a({...t,availableWidth:E,availableHeight:x});const S=await o.getDimensions(i.floating);return d!==S.width||p!==S.height?{reset:{rects:!0}}:{}}}};function Xn(e){return u1(e)?(e.nodeName||"").toLowerCase():"#document"}function bt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function bn(e){var t;return(t=(u1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function u1(e){return e instanceof Node||e instanceof bt(e).Node}function nt(e){return e instanceof Element||e instanceof bt(e).Element}function on(e){return e instanceof HTMLElement||e instanceof bt(e).HTMLElement}function Su(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof bt(e).ShadowRoot}function Wi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Mt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function gC(e){return["table","td","th"].includes(Xn(e))}function id(e){const t=ad(),n=Mt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function yC(e){let t=Eo(e);for(;on(t)&&!Ql(t);){if(id(t))return t;t=Eo(t)}return null}function ad(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ql(e){return["html","body","#document"].includes(Xn(e))}function Mt(e){return bt(e).getComputedStyle(e)}function Zl(e){return nt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Eo(e){if(Xn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Su(e)&&e.host||bn(e);return Su(t)?t.host:t}function f1(e){const t=Eo(e);return Ql(t)?e.ownerDocument?e.ownerDocument.body:e.body:on(t)&&Wi(t)?t:f1(t)}function Ii(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=f1(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=bt(o);return i?t.concat(a,a.visualViewport||[],Wi(o)?o:[],a.frameElement&&n?Ii(a.frameElement):[]):t.concat(o,Ii(o,[],n))}function d1(e){const t=Mt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=on(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=xl(n)!==i||xl(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function ld(e){return nt(e)?e:e.contextElement}function so(e){const t=ld(e);if(!on(t))return Zn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=d1(t);let a=(i?xl(n.width):n.width)/r,l=(i?xl(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const wC=Zn(0);function h1(e){const t=bt(e);return!ad()||!t.visualViewport?wC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==bt(e)?!1:t}function Er(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=ld(e);let a=Zn(1);t&&(r?nt(r)&&(a=so(r)):a=so(e));const l=xC(i,n,r)?h1(i):Zn(0);let s=(o.left+l.x)/a.x,u=(o.top+l.y)/a.y,f=o.width/a.x,c=o.height/a.y;if(i){const d=bt(i),p=r&&nt(r)?bt(r):r;let y=d,g=y.frameElement;for(;g&&r&&p!==y;){const C=so(g),v=g.getBoundingClientRect(),m=Mt(g),x=v.left+(g.clientLeft+parseFloat(m.paddingLeft))*C.x,E=v.top+(g.clientTop+parseFloat(m.paddingTop))*C.y;s*=C.x,u*=C.y,f*=C.x,c*=C.y,s+=x,u+=E,y=bt(g),g=y.frameElement}}return El({width:f,height:c,x:s,y:u})}const CC=[":popover-open",":modal"];function p1(e){return CC.some(t=>{try{return e.matches(t)}catch{return!1}})}function EC(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=bn(r),l=t?p1(t.floating):!1;if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},u=Zn(1);const f=Zn(0),c=on(r);if((c||!c&&!i)&&((Xn(r)!=="body"||Wi(a))&&(s=Zl(r)),on(r))){const d=Er(r);u=so(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+f.x,y:n.y*u.y-s.scrollTop*u.y+f.y}}function _C(e){return Array.from(e.getClientRects())}function v1(e){return Er(bn(e)).left+Zl(e).scrollLeft}function SC(e){const t=bn(e),n=Zl(e),r=e.ownerDocument.body,o=Et(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Et(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+v1(e);const l=-n.scrollTop;return Mt(r).direction==="rtl"&&(a+=Et(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}function bC(e,t){const n=bt(e),r=bn(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const u=ad();(!u||u&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}function $C(e,t){const n=Er(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=on(e)?so(e):Zn(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,s=o*i.x,u=r*i.y;return{width:a,height:l,x:s,y:u}}function Lp(e,t,n){let r;if(t==="viewport")r=bC(e,n);else if(t==="document")r=SC(bn(e));else if(nt(t))r=$C(t,n);else{const o=h1(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return El(r)}function m1(e,t){const n=Eo(e);return n===t||!nt(n)||Ql(n)?!1:Mt(n).position==="fixed"||m1(n,t)}function TC(e,t){const n=t.get(e);if(n)return n;let r=Ii(e,[],!1).filter(l=>nt(l)&&Xn(l)!=="body"),o=null;const i=Mt(e).position==="fixed";let a=i?Eo(e):e;for(;nt(a)&&!Ql(a);){const l=Mt(a),s=id(a);!s&&l.position==="fixed"&&(o=null),(i?!s&&!o:!s&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Wi(a)&&!s&&m1(e,a))?r=r.filter(f=>f!==a):o=l,a=Eo(a)}return t.set(e,r),r}function kC(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?TC(t,this._c):[].concat(n),r],l=a[0],s=a.reduce((u,f)=>{const c=Lp(t,f,o);return u.top=Et(c.top,u.top),u.right=Qn(c.right,u.right),u.bottom=Qn(c.bottom,u.bottom),u.left=Et(c.left,u.left),u},Lp(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function RC(e){const{width:t,height:n}=d1(e);return{width:t,height:n}}function NC(e,t,n){const r=on(t),o=bn(t),i=n==="fixed",a=Er(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=Zn(0);if(r||!r&&!i)if((Xn(t)!=="body"||Wi(o))&&(l=Zl(t)),r){const c=Er(t,!0,i,t);s.x=c.x+t.clientLeft,s.y=c.y+t.clientTop}else o&&(s.x=v1(o));const u=a.left+l.scrollLeft-s.x,f=a.top+l.scrollTop-s.y;return{x:u,y:f,width:a.width,height:a.height}}function Mp(e,t){return!on(e)||Mt(e).position==="fixed"?null:t?t(e):e.offsetParent}function g1(e,t){const n=bt(e);if(!on(e)||p1(e))return n;let r=Mp(e,t);for(;r&&gC(r)&&Mt(r).position==="static";)r=Mp(r,t);return r&&(Xn(r)==="html"||Xn(r)==="body"&&Mt(r).position==="static"&&!id(r))?n:r||yC(e)||n}const PC=async function(e){const t=this.getOffsetParent||g1,n=this.getDimensions;return{reference:NC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function AC(e){return Mt(e).direction==="rtl"}const y1={convertOffsetParentRelativeRectToViewportRelativeRect:EC,getDocumentElement:bn,getClippingRect:kC,getOffsetParent:g1,getElementRects:PC,getClientRects:_C,getDimensions:RC,getScale:so,isElement:nt,isRTL:AC};function OC(e,t){let n=null,r;const o=bn(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();const{left:u,top:f,width:c,height:d}=e.getBoundingClientRect();if(l||t(),!c||!d)return;const p=$a(f),y=$a(o.clientWidth-(u+c)),g=$a(o.clientHeight-(f+d)),C=$a(u),m={rootMargin:-p+"px "+-y+"px "+-g+"px "+-C+"px",threshold:Et(0,Qn(1,s))||1};let x=!0;function E(S){const _=S[0].intersectionRatio;if(_!==s){if(!x)return a();_?a(!1,_):r=setTimeout(()=>{a(!1,1e-7)},100)}x=!1}try{n=new IntersectionObserver(E,{...m,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,m)}n.observe(e)}return a(!0),i}function IC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,u=ld(e),f=o||i?[...u?Ii(u):[],...Ii(t)]:[];f.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const c=u&&l?OC(u,n):null;let d=-1,p=null;a&&(p=new ResizeObserver(v=>{let[m]=v;m&&m.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),u&&!s&&p.observe(u),p.observe(t));let y,g=s?Er(e):null;s&&C();function C(){const v=Er(e);g&&(v.x!==g.x||v.y!==g.y||v.width!==g.width||v.height!==g.height)&&n(),g=v,y=requestAnimationFrame(C)}return n(),()=>{var v;f.forEach(m=>{o&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),c==null||c(),(v=p)==null||v.disconnect(),p=null,s&&cancelAnimationFrame(y)}}const w1=pC,LC=fC,MC=mC,jC=dC,jp=uC,DC=vC,FC=(e,t,n)=>{const r=new Map,o={platform:y1,...n},i={...o.platform,_c:r};return cC(e,t,{...o,platform:i})},x1=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?jp({element:r.current,padding:o}).fn(n):{}:r?jp({element:r,padding:o}).fn(n):{}}}};var Ha=typeof document<"u"?h.useLayoutEffect:h.useEffect;function _l(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!_l(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!_l(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function C1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Dp(e,t){const n=C1(e);return Math.round(t*n)/n}function Fp(e){const t=h.useRef(e);return Ha(()=>{t.current=e}),t}function E1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:l=!0,whileElementsMounted:s,open:u}=e,[f,c]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=h.useState(r);_l(d,r)||p(r);const[y,g]=h.useState(null),[C,v]=h.useState(null),m=h.useCallback(U=>{U!==_.current&&(_.current=U,g(U))},[]),x=h.useCallback(U=>{U!==b.current&&(b.current=U,v(U))},[]),E=i||y,S=a||C,_=h.useRef(null),b=h.useRef(null),$=h.useRef(f),T=s!=null,P=Fp(s),j=Fp(o),L=h.useCallback(()=>{if(!_.current||!b.current)return;const U={placement:t,strategy:n,middleware:d};j.current&&(U.platform=j.current),FC(_.current,b.current,U).then(O=>{const F={...O,isPositioned:!0};D.current&&!_l($.current,F)&&($.current=F,To.flushSync(()=>{c(F)}))})},[d,t,n,j]);Ha(()=>{u===!1&&$.current.isPositioned&&($.current.isPositioned=!1,c(U=>({...U,isPositioned:!1})))},[u]);const D=h.useRef(!1);Ha(()=>(D.current=!0,()=>{D.current=!1}),[]),Ha(()=>{if(E&&(_.current=E),S&&(b.current=S),E&&S){if(P.current)return P.current(E,S,L);L()}},[E,S,L,P,T]);const N=h.useMemo(()=>({reference:_,floating:b,setReference:m,setFloating:x}),[m,x]),z=h.useMemo(()=>({reference:E,floating:S}),[E,S]),V=h.useMemo(()=>{const U={position:n,left:0,top:0};if(!z.floating)return U;const O=Dp(z.floating,f.x),F=Dp(z.floating,f.y);return l?{...U,transform:"translate("+O+"px, "+F+"px)",...C1(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:F}},[n,l,z.floating,f.x,f.y]);return h.useMemo(()=>({...f,update:L,refs:N,elements:z,floatingStyles:V}),[f,L,N,z,V])}function zC(e){const[t,n]=h.useState(void 0);return gn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,l;if("borderBoxSize"in i){const s=i.borderBoxSize,u=Array.isArray(s)?s[0]:s;a=u.inlineSize,l=u.blockSize}else a=e.offsetWidth,l=e.offsetHeight;n({width:a,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const _1="Popper",[S1,b1]=En(_1),[BC,$1]=S1(_1),UC=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return h.createElement(BC,{scope:t,anchor:r,onAnchorChange:o},n)},HC="PopperAnchor",VC=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=$1(HC,n),a=h.useRef(null),l=ze(t,a);return h.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:h.createElement(fe.div,Y({},o,{ref:l}))}),T1="PopperContent",[WC,o$]=S1(T1),KC=h.forwardRef((e,t)=>{var n,r,o,i,a,l,s,u;const{__scopePopper:f,side:c="bottom",sideOffset:d=0,align:p="center",alignOffset:y=0,arrowPadding:g=0,avoidCollisions:C=!0,collisionBoundary:v=[],collisionPadding:m=0,sticky:x="partial",hideWhenDetached:E=!1,updatePositionStrategy:S="optimized",onPlaced:_,...b}=e,$=$1(T1,f),[T,P]=h.useState(null),j=ze(t,wt=>P(wt)),[L,D]=h.useState(null),N=zC(L),z=(n=N==null?void 0:N.width)!==null&&n!==void 0?n:0,V=(r=N==null?void 0:N.height)!==null&&r!==void 0?r:0,U=c+(p!=="center"?"-"+p:""),O=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},F=Array.isArray(v)?v:[v],K=F.length>0,J={padding:O,boundary:F.filter(YC),altBoundary:K},{refs:se,floatingStyles:Be,placement:ye,isPositioned:Ne,middlewareData:we}=E1({strategy:"fixed",placement:U,whileElementsMounted:(...wt)=>IC(...wt,{animationFrame:S==="always"}),elements:{reference:$.anchor},middleware:[c1({mainAxis:d+V,alignmentAxis:y}),C&&w1({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?DC():void 0,...J}),C&&LC({...J}),MC({...J,apply:({elements:wt,rects:Yi,availableWidth:Jl,availableHeight:ql})=>{const{width:es,height:ts}=Yi.reference,Qt=wt.floating.style;Qt.setProperty("--radix-popper-available-width",`${Jl}px`),Qt.setProperty("--radix-popper-available-height",`${ql}px`),Qt.setProperty("--radix-popper-anchor-width",`${es}px`),Qt.setProperty("--radix-popper-anchor-height",`${ts}px`)}}),L&&x1({element:L,padding:g}),GC({arrowWidth:z,arrowHeight:V}),E&&jC({strategy:"referenceHidden",...J})]}),[Ue,xe]=k1(ye),Se=at(_);gn(()=>{Ne&&(Se==null||Se())},[Ne,Se]);const jt=(o=we.arrow)===null||o===void 0?void 0:o.x,be=(i=we.arrow)===null||i===void 0?void 0:i.y,ft=((a=we.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[Ki,Xl]=h.useState();return gn(()=>{T&&Xl(window.getComputedStyle(T).zIndex)},[T]),h.createElement("div",{ref:se.setFloating,"data-radix-popper-content-wrapper":"",style:{...Be,transform:Ne?Be.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ki,"--radix-popper-transform-origin":[(l=we.transformOrigin)===null||l===void 0?void 0:l.x,(s=we.transformOrigin)===null||s===void 0?void 0:s.y].join(" ")},dir:e.dir},h.createElement(WC,{scope:f,placedSide:Ue,onArrowChange:D,arrowX:jt,arrowY:be,shouldHideArrow:ft},h.createElement(fe.div,Y({"data-side":Ue,"data-align":xe},b,{ref:j,style:{...b.style,animation:Ne?void 0:"none",opacity:(u=we.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))});function YC(e){return e!==null}const GC=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:l,rects:s,middlewareData:u}=t,c=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,p=c?0:e.arrowHeight,[y,g]=k1(l),C={start:"0%",center:"50%",end:"100%"}[g],v=((r=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+d/2,m=((i=(a=u.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+p/2;let x="",E="";return y==="bottom"?(x=c?C:`${v}px`,E=`${-p}px`):y==="top"?(x=c?C:`${v}px`,E=`${s.floating.height+p}px`):y==="right"?(x=`${-p}px`,E=c?C:`${m}px`):y==="left"&&(x=`${s.floating.width+p}px`,E=c?C:`${m}px`),{data:{x,y:E}}}});function k1(e){const[t,n="center"]=e.split("-");return[t,n]}const QC=UC,ZC=VC,XC=KC,R1="Popover",[N1,i$]=En(R1,[b1]),sd=b1(),[JC,Ao]=N1(R1),qC=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,l=sd(t),s=h.useRef(null),[u,f]=h.useState(!1),[c=!1,d]=rr({prop:r,defaultProp:o,onChange:i});return h.createElement(QC,l,h.createElement(JC,{scope:t,contentId:rn(),triggerRef:s,open:c,onOpenChange:d,onOpenToggle:h.useCallback(()=>d(p=>!p),[d]),hasCustomAnchor:u,onCustomAnchorAdd:h.useCallback(()=>f(!0),[]),onCustomAnchorRemove:h.useCallback(()=>f(!1),[]),modal:a},n))},eE="PopoverTrigger",tE=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Ao(eE,n),i=sd(n),a=ze(t,o.triggerRef),l=h.createElement(fe.button,Y({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":O1(o.open)},r,{ref:a,onClick:ae(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?l:h.createElement(ZC,Y({asChild:!0},i),l)}),P1="PopoverPortal",[nE,rE]=N1(P1,{forceMount:void 0}),oE=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Ao(P1,t);return h.createElement(nE,{scope:t,forceMount:n},h.createElement(_n,{present:n||i.open},h.createElement(tg,{asChild:!0,container:o},r)))},Li="PopoverContent",iE=h.forwardRef((e,t)=>{const n=rE(Li,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Ao(Li,e.__scopePopover);return h.createElement(_n,{present:r||i.open},i.modal?h.createElement(aE,Y({},o,{ref:t})):h.createElement(lE,Y({},o,{ref:t})))}),aE=h.forwardRef((e,t)=>{const n=Ao(Li,e.__scopePopover),r=h.useRef(null),o=ze(t,r),i=h.useRef(!1);return h.useEffect(()=>{const a=r.current;if(a)return hg(a)},[]),h.createElement(fg,{as:Co,allowPinchZoom:!0},h.createElement(A1,Y({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ae(e.onCloseAutoFocus,a=>{var l;a.preventDefault(),i.current||(l=n.triggerRef.current)===null||l===void 0||l.focus()}),onPointerDownOutside:ae(e.onPointerDownOutside,a=>{const l=a.detail.originalEvent,s=l.button===0&&l.ctrlKey===!0,u=l.button===2||s;i.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:ae(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})))}),lE=h.forwardRef((e,t)=>{const n=Ao(Li,e.__scopePopover),r=h.useRef(!1),o=h.useRef(!1);return h.createElement(A1,Y({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,i),!i.defaultPrevented){var l;r.current||(l=n.triggerRef.current)===null||l===void 0||l.focus(),i.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:i=>{var a,l;(a=e.onInteractOutside)===null||a===void 0||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((l=n.triggerRef.current)===null||l===void 0?void 0:l.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),A1=h.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:f,...c}=e,d=Ao(Li,n),p=sd(n);return ng(),h.createElement(q0,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},h.createElement(Hf,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onDismiss:()=>d.onOpenChange(!1)},h.createElement(XC,Y({"data-state":O1(d.open),role:"dialog",id:d.contentId},p,c,{ref:t,style:{...c.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))});function O1(e){return e?"open":"closed"}const sE=qC,cE=tE,uE=oE,fE=iE;var dE="vocs_Popover";Ht.Root=sE;Ht.Trigger=cE;function Ht({children:e,className:t}){return w.jsx(uE,{children:w.jsx(fE,{className:I(dE,t),sideOffset:12,children:e})})}var hE="vocs_Sidebar_backLink",pE="vocs_Sidebar_divider",vE="vocs_Sidebar_group",ni="vocs_Sidebar_item",I1="vocs_Sidebar_items",mE="vocs_Sidebar_level",gE="vocs_Sidebar_levelCollapsed",yE="vocs_Sidebar_levelInset",wE="vocs_Sidebar_logo",xE="vocs_Sidebar_logoWrapper",CE="vocs_Sidebar_navigation",EE="vocs_Sidebar",L1="vocs_Sidebar_section",_E="vocs_Sidebar_sectionCollapse",SE="vocs_Sidebar_sectionCollapseActive",bE="vocs_Sidebar_sectionHeader",$E="vocs_Sidebar_sectionHeaderActive",zp="vocs_Sidebar_sectionTitle";function M1(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 39 69",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Chevron Right"}),w.jsx("path",{d:"M38.8697 34.7461C38.8697 33.6719 38.4791 32.6953 37.649 31.8652L7.47318 1.8848C6.74078 1.1035 5.76418 0.712891 4.64118 0.712891C2.34618 0.712891 0.588379 2.42189 0.588379 4.71679C0.588379 5.79099 1.07668 6.81639 1.76028 7.59769L29.0552 34.7461L1.76028 61.8945C1.07668 62.6758 0.588379 63.6523 0.588379 64.7754C0.588379 67.0703 2.34618 68.7793 4.64118 68.7793C5.76418 68.7793 6.74078 68.3887 7.47318 67.6074L37.649 37.627C38.4791 36.7969 38.8697 35.8203 38.8697 34.7461Z",fill:"currentColor"})]})}function j1(e){var u;const{className:t,onClickItem:n}=e,{previousPath:r}=kr(),o=h.useRef(null),i=Hl(),[a,l]=h.useState("/");if(h.useEffect(()=>{typeof window>"u"||r&&l(r)},[i.key,i.backLink]),!i)return null;const s=TE(i.items);return w.jsxs("aside",{ref:o,className:I(EE,t),children:[w.jsxs("div",{className:xE,children:[w.jsx("div",{className:wE,children:w.jsx(Gn,{to:"/",style:{alignItems:"center",display:"flex",height:"100%"},children:w.jsx(Yf,{})})}),w.jsx("div",{className:pE})]}),w.jsx("nav",{className:CE,children:w.jsxs("div",{className:vE,children:[i.backLink&&w.jsx("section",{className:L1,children:w.jsx("div",{className:I1,children:w.jsxs(Gn,{className:I(ni,hE),to:a,children:["←"," ",typeof history<"u"&&((u=history.state)!=null&&u.key)&&a!=="/"?"Back":"Home"]})})}),s.map((f,c)=>w.jsx(F1,{depth:0,item:f,onClick:n,sidebarRef:o},`${f.text}${c}`))]})})]},i.key)}function TE(e){const t=[];let n=0;for(const r of e){if(r.items){n=t.push(r);continue}t[n]?t[n].items.push(r):t.push({text:"",items:[r]})}return t}function D1(e,t){return e.find(n=>Bl(t,n.link??"")||n.link===t?!0:n.items?D1(n.items,t):!1)}function F1(e){const{depth:t,item:n,onClick:r,sidebarRef:o}=e,i=h.useRef(null),{pathname:a}=Re(),l=Fw(n.link??""),s=h.useMemo(()=>n.items?!!D1(n.items,a):!1,[n.items,a]),[u,f]=h.useState(()=>l||!n.items||s?!1:!!n.collapsed),c=n.collapsed!==void 0&&n.items!==void 0,d=h.useCallback(g=>{"key"in g&&g.key!=="Enter"||n.link||f(C=>!C)},[n.link]),p=h.useCallback(g=>{"key"in g&&g.key!=="Enter"||n.link&&f(C=>!C)},[n.link]),y=h.useRef(!0);return h.useEffect(()=>{!y.current||(y.current=!1,!Bl(a,n.link??""))||requestAnimationFrame(()=>{var m,x,E;const C=((m=i.current)==null?void 0:m.offsetTop)??0,v=((x=o==null?void 0:o.current)==null?void 0:x.clientHeight)??0;C0&&t<5&&n.items.map((g,C)=>w.jsx(F1,{depth:t+1,item:g,onClick:r,sidebarRef:o},`${g.text}${C}`))})]}):w.jsx(w.Fragment,{children:n.link?w.jsx(Gn,{ref:i,"data-active":!!l,onClick:r,className:ni,to:n.link,children:n.text}):w.jsx("div",{className:ni,children:n.text})})}function kE(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 69 39",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Chevron Down"}),w.jsx("path",{d:"M34.8677 38.8398C35.9419 38.8398 37.0161 38.4492 37.7485 37.6191L67.729 7.44339C68.4614 6.71089 68.9009 5.73439 68.9009 4.61129C68.9009 2.31639 67.1919 0.558594 64.897 0.558594C63.8227 0.558594 62.7485 1.04689 62.0161 1.73049L32.5727 31.2715H37.1138L7.67042 1.73049C6.93802 1.04689 5.96142 0.558594 4.83842 0.558594C2.54342 0.558594 0.785645 2.31639 0.785645 4.61129C0.785645 5.73439 1.22512 6.71089 1.95752 7.44339L31.9868 37.6191C32.768 38.4492 33.7446 38.8398 34.8677 38.8398Z",fill:"currentColor"})]})}function RE(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 69 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Chevron Up"}),w.jsx("path",{d:"M1.95752 32.2441C1.22512 32.9277 0.785645 33.9531 0.785645 35.0762C0.785645 37.3711 2.54342 39.1289 4.83842 39.1289C5.96142 39.1289 6.98682 38.6895 7.67042 37.957L37.1138 8.36716H32.5727L62.0161 37.957C62.6997 38.6895 63.8227 39.1289 64.897 39.1289C67.1919 39.1289 68.9009 37.3711 68.9009 35.0762C68.9009 33.9531 68.4614 32.9277 67.729 32.2441L37.7485 2.06836C37.0161 1.23826 35.9419 0.847656 34.8677 0.847656C33.7446 0.847656 32.7192 1.23826 31.9868 2.06836L1.95752 32.2441Z",fill:"currentColor"})]})}function NE(){return w.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 79 48",fill:"none",children:[w.jsx("title",{children:"Menu"}),w.jsx("path",{fill:"currentColor",d:"M19.528 47.232h40.87c1.952 0 3.515-1.562 3.515-3.564a3.5 3.5 0 0 0-3.516-3.516H19.528a3.501 3.501 0 0 0-3.515 3.516c0 2.002 1.562 3.564 3.515 3.564ZM12.057 27.262h55.81a3.501 3.501 0 0 0 3.516-3.516 3.501 3.501 0 0 0-3.515-3.515h-55.81a3.501 3.501 0 0 0-3.516 3.515 3.501 3.501 0 0 0 3.515 3.516ZM4.391 7.34H75.29c2.002 0 3.515-1.563 3.515-3.516 0-2.002-1.513-3.564-3.515-3.564H4.39C2.438.26.876 1.822.876 3.824A3.501 3.501 0 0 0 4.39 7.34Z"})]})}bu.Curtain=jE;function bu(){var n,r;const e=Je(),{showLogo:t}=Rr();return w.jsxs("div",{className:V8,children:[w.jsxs("div",{className:Pp,children:[t&&w.jsx("div",{className:ba,children:w.jsx("div",{className:D8,children:w.jsx(Gn,{to:"/",style:{alignItems:"center",display:"flex",height:"100%"},children:w.jsx(Yf,{})})})}),e.topNav&&w.jsx(w.Fragment,{children:w.jsxs("div",{className:ba,children:[w.jsx(PE,{items:e.topNav}),w.jsx(OE,{items:e.topNav})]})})]}),w.jsxs("div",{className:Pp,children:[w.jsx("div",{className:ba,style:{marginRight:"-8px"},children:w.jsx(R8,{})}),e.socials&&((n=e.socials)==null?void 0:n.length)>0&&w.jsxs(w.Fragment,{children:[w.jsx("div",{className:L8}),w.jsx("div",{className:ba,style:{marginLeft:"-8px"},children:(r=e.socials)==null?void 0:r.map((o,i)=>w.jsx(ME,{...o},i))})]})]})]})}function PE({items:e}){const{pathname:t}=Re(),n=Hi({pathname:t,items:e});return w.jsx(Dg,{className:i1,children:w.jsx(Fg,{children:e.map((r,o)=>r!=null&&r.link?w.jsx(Yl,{active:n==null?void 0:n.includes(r.id),href:r.link,children:r.text},o):w.jsxs(zg,{className:j8,children:[w.jsx(Bg,{active:n==null?void 0:n.includes(r.id),children:r.text}),w.jsx(Ug,{className:O8,children:w.jsx(AE,{items:r.items||[]})})]},o))})})}function AE({items:e}){const{pathname:t}=Re(),n=Hi({pathname:t,items:e});return w.jsx("ul",{children:e==null?void 0:e.map((r,o)=>w.jsx(Yl,{active:n.includes(r.id),href:r.link,children:r.text},o))})}function OE({items:e}){var s;const[t,n]=h.useState(!1),{pathname:r}=Re(),o=Hi({pathname:r,items:e}),i=e.filter(u=>u.id===o[0])[0],{basePath:a}=Je(),l=a;return w.jsx("div",{className:I(i1,U8),children:i?w.jsxs(Ht.Root,{modal:!0,open:t,onOpenChange:n,children:[w.jsxs(Ht.Trigger,{className:I(o1,Qo),children:[i.text,w.jsx(st,{label:"Menu",icon:kE,size:"11px"})]}),w.jsx(Ht,{className:Y8,children:w.jsx(S8,{type:"single",collapsible:!0,style:{display:"flex",flexDirection:"column"},children:e.map((u,f)=>{var c;return u!=null&&u.link?w.jsx(nn,{"data-active":o.includes(u.id),className:Qo,href:u.link,onClick:()=>n(!1),variant:"styleless",children:u.text},f):w.jsxs(b8,{value:f.toString(),children:[w.jsx($8,{className:I(Qo,B8),"data-active":o.includes(u.id),style:Gt({[P8]:`url(${l}/.vocs/icons/chevron-down.svg)`,[A8]:`url(${l}/.vocs/icons/chevron-up.svg)`}),children:u.text}),w.jsx(T8,{className:z8,children:(c=u.items)==null?void 0:c.map((d,p)=>w.jsx(nn,{className:Qo,href:d.link,onClick:()=>n(!1),variant:"styleless",children:d.text},p))})]},f)})})})]}):(s=e[0])!=null&&s.link?w.jsx(nn,{className:Qo,href:e[0].link,variant:"styleless",children:e[0].text}):null})}const IE={discord:Hg,github:Vg,telegram:Wg,warpcast:Kg,x:Yg},LE={discord:"21px",github:"18px",telegram:"21px",warpcast:"18px",x:"16px"};function ME({icon:e,label:t,link:n,type:r}){return w.jsx("a",{className:N8,href:n,target:"_blank",rel:"noopener noreferrer",children:w.jsx(st,{className:M8,label:t,icon:IE[e],size:LE[r]||"18px"})})}function jE({enableScrollToTop:e}){const{pathname:t}=Re(),{layout:n,showSidebar:r}=Rr(),{frontmatter:o={}}=kr(),i=Hl(),[a,l]=h.useState(!1),[s,u]=h.useState(!1),f=h.useMemo(()=>{if(!i||n==="minimal")return;const p=z1({sidebarItems:i.items,pathname:t});return p==null?void 0:p.text},[n,t,i]),c=h.useMemo(()=>{var p;if(!(typeof window>"u"))return(p=document.querySelector(".vocs_Content h1"))==null?void 0:p.textContent},[]),d=f||o.title||c;return w.jsxs("div",{className:I8,children:[w.jsx("div",{className:Rp,children:w.jsx("div",{className:ec,children:r?w.jsxs(Ht.Root,{modal:!0,open:s,onOpenChange:u,children:[w.jsxs(Ht.Trigger,{className:o1,children:[w.jsx(st,{label:"Menu",icon:NE,size:"13px"}),w.jsx("div",{className:F8,children:d})]}),w.jsx(Ht,{className:K8,children:w.jsx(j1,{onClickItem:()=>u(!1)})})]}):d})}),w.jsxs("div",{className:Rp,children:[e&&w.jsxs(w.Fragment,{children:[w.jsx("div",{className:ec,children:w.jsxs("button",{className:Np,onClick:()=>window.scrollTo({behavior:"smooth",top:0}),type:"button",children:["Top",w.jsx(st,{label:"Scroll to top",icon:RE,size:"10px"})]})}),w.jsx("div",{className:W8})]}),n==="docs"&&w.jsx("div",{className:ec,children:w.jsxs(Ht.Root,{modal:!0,open:a,onOpenChange:l,children:[w.jsxs(Ht.Trigger,{className:Np,children:["On this page",w.jsx(st,{label:"On this page",icon:M1,size:"10px"})]}),w.jsx(Ht,{className:H8,children:w.jsx(a1,{onClickItem:()=>l(!1),showTitle:!1})})]})})]})]})}function z1({sidebarItems:e,pathname:t}){const n=t.replace(/(.+)\/$/,"$1");for(const r of e){if((r==null?void 0:r.link)===n)return r;if(r.items){const o=z1({sidebarItems:r.items,pathname:n});if(o)return o}}}var DE="vocs_SkipLink";const B1="vocs-content";function FE(){const{pathname:e}=Re();return w.jsx("a",{className:I(DE,Z0),href:`${e}#${B1}`,children:"Skip to content"})}var zE="vocs_DocsLayout_content",BE="vocs_DocsLayout_content_withSidebar",UE="vocs_DocsLayout_content_withTopNav",HE="vocs_DocsLayout_gutterLeft",VE="vocs_DocsLayout_gutterRight",WE="vocs_DocsLayout_gutterRight_withSidebar",KE="vocs_DocsLayout_gutterTop",YE="vocs_DocsLayout_gutterTopCurtain",GE="vocs_DocsLayout_gutterTopCurtain_hidden",QE="vocs_DocsLayout_gutterTopCurtain_withSidebar",ZE="vocs_DocsLayout_gutterTop_offsetLeftGutter",XE="vocs_DocsLayout_gutterTop_sticky",JE="vocs_DocsLayout",qE="vocs_DocsLayout_sidebar";function $u({children:e}){const{banner:t,font:n}=Je(),{frontmatter:r={}}=kr(),{content:o}=r,{layout:i,showOutline:a,showSidebar:l,showTopNav:s}=Rr(),{ref:u,inView:f}=U0({initialInView:!0,rootMargin:"100px 0px 0px 0px"}),[c,d]=pu("banner",!0);return w.jsxs("div",{className:JE,"data-layout":i,style:Gt({[Gx]:c?t==null?void 0:t.height:void 0,[Nx.default]:n!=null&&n.google?`${n.google}, ${Rx.default}`:void 0}),children:[w.jsx(FE,{}),c&&w.jsx(m5,{hide:()=>d(!1)}),l&&w.jsx("div",{className:HE,children:w.jsx(j1,{className:qE})}),s&&w.jsxs(w.Fragment,{children:[w.jsxs("div",{ref:u,className:I(KE,l&&ZE,(i==="minimal"||i==="landing")&&XE),children:[w.jsx(xu,{}),w.jsx(bu,{})]}),w.jsxs("div",{className:I(YE,l&&QE,(i==="minimal"||i==="landing")&&GE),children:[w.jsx(xu.Curtain,{}),w.jsx(bu.Curtain,{enableScrollToTop:!f})]})]}),a&&w.jsx("div",{className:I(VE,l&&WE),children:w.jsx(a1,{})}),w.jsxs("div",{id:B1,className:I(zE,l&&BE,s&&UE),style:Gt({[Ms.horizontalPadding]:o==null?void 0:o.horizontalPadding,[Ms.width]:o==null?void 0:o.width,[Ms.verticalPadding]:o==null?void 0:o.verticalPadding}),children:[w.jsx(Y0,{children:e}),w.jsx(X6,{})]}),w.jsx("div",{"data-bottom-observer":!0})]})}const Tu={},U1=Z.createContext(Tu);function e_(e){const t=Z.useContext(U1);return Z.useMemo(function(){return typeof e=="function"?e(t):{...t,...e}},[t,e])}function t_(e){let t;return e.disableParentContext?t=typeof e.components=="function"?e.components(Tu):e.components||Tu:t=e_(e.components),Z.createElement(U1.Provider,{value:t},e.children)}var H1={exports:{}},n_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",r_=n_,o_=r_;function V1(){}function W1(){}W1.resetWarningCache=V1;var i_=function(){function e(r,o,i,a,l,s){if(s!==o_){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:W1,resetWarningCache:V1};return n.PropTypes=n,n};H1.exports=i_();var a_=H1.exports;const Ce=Jn(a_);function l_(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var K1=h,s_=l_(K1);function Bp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var u_=!!(typeof window<"u"&&window.document&&window.document.createElement);function f_(e,t,n){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function r(o){return o.displayName||o.name||"Component"}return function(i){if(typeof i!="function")throw new Error("Expected WrappedComponent to be a React component.");var a=[],l;function s(){l=e(a.map(function(f){return f.props})),u.canUseDOM?t(l):n&&(l=n(l))}var u=function(f){c_(c,f);function c(){return f.apply(this,arguments)||this}c.peek=function(){return l},c.rewind=function(){if(c.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var y=l;return l=void 0,a=[],y};var d=c.prototype;return d.UNSAFE_componentWillMount=function(){a.push(this),s()},d.componentDidUpdate=function(){s()},d.componentWillUnmount=function(){var y=a.indexOf(this);a.splice(y,1),s()},d.render=function(){return s_.createElement(i,this.props)},c}(K1.PureComponent);return Bp(u,"displayName","SideEffect("+r(i)+")"),Bp(u,"canUseDOM",u_),u}}var d_=f_;const h_=Jn(d_);var p_=typeof Element<"u",v_=typeof Map=="function",m_=typeof Set=="function",g_=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Va(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Va(e[r],t[r]))return!1;return!0}var i;if(v_&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Va(r.value[1],t.get(r.value[0])))return!1;return!0}if(m_&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(g_&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(p_&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Va(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var y_=function(t,n){try{return Va(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const w_=Jn(y_);/* object-assign (c) Sindre Sorhus @license MIT -*/var Bp=Object.getOwnPropertySymbols,x_=Object.prototype.hasOwnProperty,C_=Object.prototype.propertyIsEnumerable;function E_(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function __(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(r.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var S_=__()?Object.assign:function(e,t){for(var n,r=E_(e),o,i=1;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},A_=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},ku=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(t):String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},O_=function(t){var n=co(t,q.TITLE),r=co(t,Mi.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var o=co(t,Mi.DEFAULT_TITLE);return n||o||void 0},I_=function(t){return co(t,Mi.ON_CHANGE_CLIENT_STATE)||function(){}},tc=function(t,n){return n.filter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,o){return ht({},r,o)},{})},L_=function(t,n){return n.filter(function(r){return typeof r[q.BASE]<"u"}).map(function(r){return r[q.BASE]}).reverse().reduce(function(r,o){if(!r.length)for(var i=Object.keys(o),a=0;a=0;r--){var o=t[r];if(o.hasOwnProperty(n))return o[n]}return null},M_=function(t){return{baseTag:L_([Ee.HREF,Ee.TARGET],t),bodyAttributes:tc(vr.BODY,t),defer:co(t,Mi.DEFER),encode:co(t,Mi.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:tc(vr.HTML,t),linkTags:Zo(q.LINK,[Ee.REL,Ee.HREF],t),metaTags:Zo(q.META,[Ee.NAME,Ee.CHARSET,Ee.HTTPEQUIV,Ee.PROPERTY,Ee.ITEM_PROP],t),noscriptTags:Zo(q.NOSCRIPT,[Ee.INNER_HTML],t),onChangeClientState:I_(t),scriptTags:Zo(q.SCRIPT,[Ee.SRC,Ee.INNER_HTML],t),styleTags:Zo(q.STYLE,[Ee.CSS_TEXT],t),title:O_(t),titleAttributes:tc(vr.TITLE,t)}},Ru=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){Ru(t)},0)}}(),Hp=function(t){return clearTimeout(t)},j_=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Ru:global.requestAnimationFrame||Ru,D_=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Hp:global.cancelAnimationFrame||Hp,F_=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},Xo=null,z_=function(t){Xo&&D_(Xo),t.defer?Xo=j_(function(){Vp(t,function(){Xo=null})}):(Vp(t),Xo=null)},Vp=function(t,n){var r=t.baseTag,o=t.bodyAttributes,i=t.htmlAttributes,a=t.linkTags,l=t.metaTags,s=t.noscriptTags,u=t.onChangeClientState,f=t.scriptTags,c=t.styleTags,d=t.title,p=t.titleAttributes;Nu(q.BODY,o),Nu(q.HTML,i),B_(d,p);var y={baseTag:zr(q.BASE,r),linkTags:zr(q.LINK,a),metaTags:zr(q.META,l),noscriptTags:zr(q.NOSCRIPT,s),scriptTags:zr(q.SCRIPT,f),styleTags:zr(q.STYLE,c)},g={},C={};Object.keys(y).forEach(function(v){var m=y[v],x=m.newTags,E=m.oldTags;x.length&&(g[v]=x),E.length&&(C[v]=y[v].oldTags)}),n&&n(),u(t,g,C)},Y1=function(t){return Array.isArray(t)?t.join(""):t},B_=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=Y1(t)),Nu(q.TITLE,n)},Nu=function(t,n){var r=document.getElementsByTagName(t)[0];if(r){for(var o=r.getAttribute(Vt),i=o?o.split(","):[],a=[].concat(i),l=Object.keys(n),s=0;s=0;d--)r.removeAttribute(a[d]);i.length===a.length?r.removeAttribute(Vt):r.getAttribute(Vt)!==l.join(",")&&r.setAttribute(Vt,l.join(","))}},zr=function(t,n){var r=document.head||document.querySelector(q.HEAD),o=r.querySelectorAll(t+"["+Vt+"]"),i=Array.prototype.slice.call(o),a=[],l=void 0;return n&&n.length&&n.forEach(function(s){var u=document.createElement(t);for(var f in s)if(s.hasOwnProperty(f))if(f===Ee.INNER_HTML)u.innerHTML=s.innerHTML;else if(f===Ee.CSS_TEXT)u.styleSheet?u.styleSheet.cssText=s.cssText:u.appendChild(document.createTextNode(s.cssText));else{var c=typeof s[f]>"u"?"":s[f];u.setAttribute(f,c)}u.setAttribute(Vt,"true"),i.some(function(d,p){return l=p,u.isEqualNode(d)})?i.splice(l,1):a.push(u)}),i.forEach(function(s){return s.parentNode.removeChild(s)}),a.forEach(function(s){return r.appendChild(s)}),{oldTags:i,newTags:a}},G1=function(t){return Object.keys(t).reduce(function(n,r){var o=typeof t[r]<"u"?r+'="'+t[r]+'"':""+r;return n?n+" "+o:o},"")},U_=function(t,n,r,o){var i=G1(r),a=Y1(n);return i?"<"+t+" "+Vt+'="true" '+i+">"+ku(a,o)+"":"<"+t+" "+Vt+'="true">'+ku(a,o)+""},H_=function(t,n,r){return n.reduce(function(o,i){var a=Object.keys(i).filter(function(u){return!(u===Ee.INNER_HTML||u===Ee.CSS_TEXT)}).reduce(function(u,f){var c=typeof i[f]>"u"?f:f+'="'+ku(i[f],r)+'"';return u?u+" "+c:c},""),l=i.innerHTML||i.cssText||"",s=T_.indexOf(t)===-1;return o+"<"+t+" "+Vt+'="true" '+a+(s?"/>":">"+l+"")},"")},Q1=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[Sl[o]||o]=t[o],r},n)},V_=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[$_[o]||o]=t[o],r},n)},W_=function(t,n,r){var o,i=(o={key:n},o[Vt]=!0,o),a=Q1(r,i);return[Z.createElement(q.TITLE,a,n)]},K_=function(t,n){return n.map(function(r,o){var i,a=(i={key:o},i[Vt]=!0,i);return Object.keys(r).forEach(function(l){var s=Sl[l]||l;if(s===Ee.INNER_HTML||s===Ee.CSS_TEXT){var u=r.innerHTML||r.cssText;a.dangerouslySetInnerHTML={__html:u}}else a[s]=r[l]}),Z.createElement(t,a)})},an=function(t,n,r){switch(t){case q.TITLE:return{toComponent:function(){return W_(t,n.title,n.titleAttributes)},toString:function(){return U_(t,n.title,n.titleAttributes,r)}};case vr.BODY:case vr.HTML:return{toComponent:function(){return Q1(n)},toString:function(){return G1(n)}};default:return{toComponent:function(){return K_(t,n)},toString:function(){return H_(t,n,r)}}}},Z1=function(t){var n=t.baseTag,r=t.bodyAttributes,o=t.encode,i=t.htmlAttributes,a=t.linkTags,l=t.metaTags,s=t.noscriptTags,u=t.scriptTags,f=t.styleTags,c=t.title,d=c===void 0?"":c,p=t.titleAttributes;return{base:an(q.BASE,n,o),bodyAttributes:an(vr.BODY,r,o),htmlAttributes:an(vr.HTML,i,o),link:an(q.LINK,a,o),meta:an(q.META,l,o),noscript:an(q.NOSCRIPT,s,o),script:an(q.SCRIPT,u,o),style:an(q.STYLE,f,o),title:an(q.TITLE,{title:d,titleAttributes:p},o)}},Y_=function(t){var n,r;return r=n=function(o){P_(i,o);function i(){return R_(this,i),A_(this,o.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(l){return!w_(this.props,l)},i.prototype.mapNestedChildrenToProps=function(l,s){if(!s)return null;switch(l.type){case q.SCRIPT:case q.NOSCRIPT:return{innerHTML:s};case q.STYLE:return{cssText:s}}throw new Error("<"+l.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},i.prototype.flattenArrayTypeChildren=function(l){var s,u=l.child,f=l.arrayTypeChildren,c=l.newChildProps,d=l.nestedChildren;return ht({},f,(s={},s[u.type]=[].concat(f[u.type]||[],[ht({},c,this.mapNestedChildrenToProps(u,d))]),s))},i.prototype.mapObjectTypeChildren=function(l){var s,u,f=l.child,c=l.newProps,d=l.newChildProps,p=l.nestedChildren;switch(f.type){case q.TITLE:return ht({},c,(s={},s[f.type]=p,s.titleAttributes=ht({},d),s));case q.BODY:return ht({},c,{bodyAttributes:ht({},d)});case q.HTML:return ht({},c,{htmlAttributes:ht({},d)})}return ht({},c,(u={},u[f.type]=ht({},d),u))},i.prototype.mapArrayTypeChildrenToProps=function(l,s){var u=ht({},s);return Object.keys(l).forEach(function(f){var c;u=ht({},u,(c={},c[f]=l[f],c))}),u},i.prototype.warnOnInvalidChildren=function(l,s){return!0},i.prototype.mapChildrenToProps=function(l,s){var u=this,f={};return Z.Children.forEach(l,function(c){if(!(!c||!c.props)){var d=c.props,p=d.children,y=Up(d,["children"]),g=V_(y);switch(u.warnOnInvalidChildren(c,p),c.type){case q.LINK:case q.META:case q.NOSCRIPT:case q.SCRIPT:case q.STYLE:f=u.flattenArrayTypeChildren({child:c,arrayTypeChildren:f,newChildProps:g,nestedChildren:p});break;default:s=u.mapObjectTypeChildren({child:c,newProps:s,newChildProps:g,nestedChildren:p});break}}}),s=this.mapArrayTypeChildrenToProps(f,s),s},i.prototype.render=function(){var l=this.props,s=l.children,u=Up(l,["children"]),f=ht({},u);return s&&(f=this.mapChildrenToProps(s,f)),Z.createElement(t,f)},N_(i,null,[{key:"canUseDOM",set:function(l){t.canUseDOM=l}}]),i}(Z.Component),n.propTypes={base:Ce.object,bodyAttributes:Ce.object,children:Ce.oneOfType([Ce.arrayOf(Ce.node),Ce.node]),defaultTitle:Ce.string,defer:Ce.bool,encodeSpecialCharacters:Ce.bool,htmlAttributes:Ce.object,link:Ce.arrayOf(Ce.object),meta:Ce.arrayOf(Ce.object),noscript:Ce.arrayOf(Ce.object),onChangeClientState:Ce.func,script:Ce.arrayOf(Ce.object),style:Ce.arrayOf(Ce.object),title:Ce.string,titleAttributes:Ce.object,titleTemplate:Ce.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var o=t.rewind();return o||(o=Z1({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),o},r},G_=function(){return null},Q_=h_(M_,z_,Z1)(G_),Pu=Y_(Q_);Pu.renderStatic=Pu.rewind;var nc="vocs_Anchor",Z_="vocs_Autolink";function X_(e){const{pathname:t}=Re();return w.jsx("a",{...e,className:I(e.className,Z_),href:`${t}${e.href}`})}function J_(e){const{children:t,href:n}=e,{pathname:r}=Re();return t&&typeof t=="object"&&"props"in t&&t.props["data-autolink-icon"]?w.jsx(X_,{className:I(e.className,nc),...e}):n!=null&&n.match(/^#/)?w.jsx("a",{className:I(e.className,nc),...e,href:`${r}${n}`}):w.jsx(nn,{className:I(e.className,nc),...e})}var q_="vocs_Callout_danger",eS="vocs_Callout_info",tS="vocs_Callout_note",X1="vocs_Callout",nS="vocs_Callout_success",rS="vocs_Callout_tip",oS="vocs_Callout_warning";const iS=Object.freeze(Object.defineProperty({__proto__:null,danger:q_,info:eS,note:tS,root:X1,success:nS,tip:rS,warning:oS},Symbol.toStringTag,{value:"Module"}));function aS({className:e,children:t,type:n}){return w.jsx("aside",{className:I(e,X1,iS[n]),children:t})}var lS="vocs_Aside";function sS(e){const t=I(e.className,lS);return"data-callout"in e?w.jsx(aS,{className:t,type:e["data-callout"],children:e.children}):w.jsx("aside",{...e,className:t})}var cS="vocs_Blockquote";function uS(e){return w.jsx("blockquote",{...e,className:I(e.className,cS)})}var fS="vocs_Code";function dS(e){const t=hS(e.children);return w.jsx("code",{...e,className:I(e.className,fS),children:t})}function hS(e){return Array.isArray(e)?e.map((t,n)=>{var r,o,i;return t.props&&"data-line"in t.props&&typeof t.props.children=="string"&&t.props.children.trim()===""&&((i=(o=(r=e[n+1])==null?void 0:r.props)==null?void 0:o.className)!=null&&i.includes("twoslash-tag-line"))?null:t}).filter(Boolean):e}var pS="vocs_Details";function vS(e){return w.jsx("details",{...e,className:I(e.className,pS)})}var mS="vocs_Authors_authors",gS="vocs_Authors_link",yS="vocs_Authors",Wp="vocs_Authors_separator";function J1(e){const{frontmatter:t}=kr(),{authors:n=t==null?void 0:t.authors,date:r=t==null?void 0:t.date}=e,o=h.useMemo(()=>{if(n)return Array.isArray(n)?n:n.split(",").map(a=>a.trim())},[n]),i=h.useMemo(()=>r?new Date(r).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}):null,[r]);return w.jsxs("div",{className:yS,children:[i,o&&(i?" by ":"By "),w.jsx("span",{className:mS,children:o==null?void 0:o.map((a,l)=>{const{text:s,url:u}=wS(a);return w.jsxs(h.Fragment,{children:[u?w.jsx("a",{className:gS,href:u,target:"_blank",rel:"noopener noreferrer",children:s}):s,lw.jsxs(h.Fragment,{children:[w.jsx("div",{className:ES,children:w.jsxs(Gn,{to:e.path,children:[w.jsx("h2",{className:bS,children:e.title}),w.jsx(J1,{authors:e.authors,date:e.date}),w.jsxs("p",{className:xS,children:[e.description," ",w.jsx("span",{className:_S,children:"[→]"})]})]})}),tw.jsxs(h.Fragment,{children:[w.jsx("div",{className:IS,children:t.name}),t.items.map((r,o)=>{var i;return w.jsx("div",{className:AS,style:Gt({[kS]:r.length.toString(),[RS]:`${((i=t.height)==null?void 0:i.toString())??"40"}px`}),children:r.map((a,l)=>w.jsx(nn,{className:I(TS,a?OS:void 0),hideExternalIcon:!0,href:a==null?void 0:a.link,variant:"styleless",children:w.jsx("img",{className:NS,src:a==null?void 0:a.image,alt:a==null?void 0:a.name})},l))},o)})]},n))})}var MS="var(--vocs_AutolinkIcon_iconUrl)",jS="vocs_AutolinkIcon";function DS(e){const{basePath:t}=Je(),n=t;return w.jsx("div",{...e,className:I(e.className,jS),style:Gt({[MS]:`url(${n}/.vocs/icons/link.svg)`})})}const rc="rovingFocusGroup.onEntryFocus",FS={bubbles:!1,cancelable:!0},sd="RovingFocusGroup",[Au,q1,zS]=Kl(sd),[BS,ey]=En(sd,[zS]),[US,HS]=BS(sd),VS=h.forwardRef((e,t)=>h.createElement(Au.Provider,{scope:e.__scopeRovingFocusGroup},h.createElement(Au.Slot,{scope:e.__scopeRovingFocusGroup},h.createElement(WS,Y({},e,{ref:t}))))),WS=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:u,...f}=e,c=h.useRef(null),d=ze(t,c),p=Wl(i),[y=null,g]=rr({prop:a,defaultProp:l,onChange:s}),[C,v]=h.useState(!1),m=at(u),x=q1(n),E=h.useRef(!1),[S,_]=h.useState(0);return h.useEffect(()=>{const b=c.current;if(b)return b.addEventListener(rc,m),()=>b.removeEventListener(rc,m)},[m]),h.createElement(US,{scope:n,orientation:r,dir:p,loop:o,currentTabStopId:y,onItemFocus:h.useCallback(b=>g(b),[g]),onItemShiftTab:h.useCallback(()=>v(!0),[]),onFocusableItemAdd:h.useCallback(()=>_(b=>b+1),[]),onFocusableItemRemove:h.useCallback(()=>_(b=>b-1),[])},h.createElement(fe.div,Y({tabIndex:C||S===0?-1:0,"data-orientation":r},f,{ref:d,style:{outline:"none",...e.style},onMouseDown:ae(e.onMouseDown,()=>{E.current=!0}),onFocus:ae(e.onFocus,b=>{const $=!E.current;if(b.target===b.currentTarget&&$&&!C){const T=new CustomEvent(rc,FS);if(b.currentTarget.dispatchEvent(T),!T.defaultPrevented){const P=x().filter(z=>z.focusable),j=P.find(z=>z.active),L=P.find(z=>z.id===y),N=[j,L,...P].filter(Boolean).map(z=>z.ref.current);ty(N)}}E.current=!1}),onBlur:ae(e.onBlur,()=>v(!1))})))}),KS="RovingFocusGroupItem",YS=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,l=rn(),s=i||l,u=HS(KS,n),f=u.currentTabStopId===s,c=q1(n),{onFocusableItemAdd:d,onFocusableItemRemove:p}=u;return h.useEffect(()=>{if(r)return d(),()=>p()},[r,d,p]),h.createElement(Au.ItemSlot,{scope:n,id:s,focusable:r,active:o},h.createElement(fe.span,Y({tabIndex:f?0:-1,"data-orientation":u.orientation},a,{ref:t,onMouseDown:ae(e.onMouseDown,y=>{r?u.onItemFocus(s):y.preventDefault()}),onFocus:ae(e.onFocus,()=>u.onItemFocus(s)),onKeyDown:ae(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){u.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const g=ZS(y,u.orientation,u.dir);if(g!==void 0){y.preventDefault();let v=c().filter(m=>m.focusable).map(m=>m.ref.current);if(g==="last")v.reverse();else if(g==="prev"||g==="next"){g==="prev"&&v.reverse();const m=v.indexOf(y.currentTarget);v=u.loop?XS(v,m+1):v.slice(m+1)}setTimeout(()=>ty(v))}})})))}),GS={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function QS(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ZS(e,t,n){const r=QS(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return GS[r]}function ty(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function XS(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const JS=VS,qS=YS,ny="Tabs",[e9,a$]=En(ny,[ey]),ry=ey(),[t9,cd]=e9(ny),n9=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:l,activationMode:s="automatic",...u}=e,f=Wl(l),[c,d]=rr({prop:r,onChange:o,defaultProp:i});return h.createElement(t9,{scope:n,baseId:rn(),value:c,onValueChange:d,orientation:a,dir:f,activationMode:s},h.createElement(fe.div,Y({dir:f,"data-orientation":a},u,{ref:t})))}),r9="TabsList",o9=h.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=cd(r9,n),a=ry(n);return h.createElement(JS,Y({asChild:!0},a,{orientation:i.orientation,dir:i.dir,loop:r}),h.createElement(fe.div,Y({role:"tablist","aria-orientation":i.orientation},o,{ref:t})))}),i9="TabsTrigger",a9=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=cd(i9,n),l=ry(n),s=oy(a.baseId,r),u=iy(a.baseId,r),f=r===a.value;return h.createElement(qS,Y({asChild:!0},l,{focusable:!o,active:f}),h.createElement(fe.button,Y({type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:s},i,{ref:t,onMouseDown:ae(e.onMouseDown,c=>{!o&&c.button===0&&c.ctrlKey===!1?a.onValueChange(r):c.preventDefault()}),onKeyDown:ae(e.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&a.onValueChange(r)}),onFocus:ae(e.onFocus,()=>{const c=a.activationMode!=="manual";!f&&!o&&c&&a.onValueChange(r)})})))}),l9="TabsContent",s9=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,l=cd(l9,n),s=oy(l.baseId,r),u=iy(l.baseId,r),f=r===l.value,c=h.useRef(f);return h.useEffect(()=>{const d=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(d)},[]),h.createElement(_n,{present:o||f},({present:d})=>h.createElement(fe.div,Y({"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":s,hidden:!d,id:u,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:c.current?"0s":void 0}}),d&&i))});function oy(e,t){return`${e}-trigger-${t}`}function iy(e,t){return`${e}-content-${t}`}const c9=n9,u9=o9,f9=a9,d9=s9;var h9="vocs_Tabs_content",p9="vocs_Tabs_list",v9="vocs_Tabs",m9="vocs_Tabs_trigger";function g9(e){return w.jsx(c9,{...e,className:I(e.className,v9)})}function y9(e){return w.jsx(u9,{...e,className:I(e.className,p9)})}function w9(e){return w.jsx(f9,{...e,className:I(e.className,m9)})}function x9(e){return w.jsx(d9,{...e,className:I(e.className,h9)})}var C9="vocs_CodeGroup";function E9({children:e}){if(!Array.isArray(e))return null;const t=e.map(n=>{const r=n.props["data-title"]?n:n.props.children,{props:o}=r,i=o["data-title"],a=o.children;return{title:i,content:a}});return w.jsxs(g9,{className:C9,defaultValue:t[0].title,children:[w.jsx(y9,{"aria-label":"Code group",children:t.map(({title:n},r)=>w.jsx(w9,{value:n||r.toString(),children:n},n||r.toString()))}),t.map(({title:n,content:r},o)=>{var a,l;const i=(l=(a=r.props)==null?void 0:a.className)==null?void 0:l.includes("shiki");return w.jsx(x9,{"data-shiki":i,value:n||o.toString(),children:r},n||o.toString())})]})}var _9="vocs_Div",S9="vocs_Step_content",b9="vocs_Step",ay="vocs_Step_title",$9="vocs_H2";function ly(e){return w.jsx(Ro,{...e,className:I(e.className,$9),level:2})}var T9="vocs_H3";function sy(e){return w.jsx(Ro,{...e,className:I(e.className,T9),level:3})}var k9="vocs_H4";function cy(e){return w.jsx(Ro,{...e,className:I(e.className,k9),level:4})}var R9="vocs_H5";function uy(e){return w.jsx(Ro,{...e,className:I(e.className,R9),level:5})}var N9="vocs_H6";function fy(e){return w.jsx(Ro,{...e,className:I(e.className,N9),level:6})}function P9({children:e,className:t,title:n,titleLevel:r=2}){const o=(()=>{if(r===2)return ly;if(r===3)return sy;if(r===4)return cy;if(r===5)return uy;if(r===6)return fy;throw new Error("Invalid.")})();return w.jsxs("div",{className:I(t,b9),children:[typeof n=="string"?w.jsx(o,{className:ay,children:n}):n,w.jsx("div",{className:S9,children:e})]})}var A9="vocs_Steps";function O9({children:e,className:t}){return w.jsx("div",{className:I(t,A9),children:e})}function I9({children:e}){return Array.isArray(e)?w.jsx(O9,{children:e.map(({props:t},n)=>{const[r,...o]=Array.isArray(t.children)?t.children:[t.children];return w.jsx(P9,{title:h.cloneElement(r,{className:ay}),children:o},n)})}):null}var L9="vocs_Subtitle";function M9({children:e}){return w.jsx("div",{className:L9,role:"doc-subtitle",children:e})}function j9(e){const{layout:t}=Rr(),n=I(e.className,_9);return e.className==="code-group"?w.jsx(E9,{...e,className:n}):"data-authors"in e?w.jsx(J1,{}):"data-blog-posts"in e?w.jsx($S,{}):"data-sponsors"in e?w.jsx(LS,{}):"data-autolink-icon"in e&&t==="docs"?w.jsx(DS,{...e,className:n}):"data-vocs-steps"in e?w.jsx(I9,{...e,className:n}):e.role==="doc-subtitle"?w.jsx(M9,{...e}):w.jsx("div",{...e,className:n})}var D9="vocs_Figcaption";function F9(e){const t=I(e.className,D9);return w.jsx("figcaption",{...e,className:t})}var z9="vocs_Figure";function B9(e){const t=I(e.className,z9);return w.jsx("figure",{...e,className:t})}var U9="vocs_Header";function H9(e){return w.jsx("header",{...e,className:I(e.className,U9)})}var V9="vocs_HorizontalRule";function W9(e){return w.jsx("hr",{...e,className:I(e.className,V9)})}var K9="vocs_List_ordered",Y9="vocs_List",G9="vocs_List_unordered";function Yp({ordered:e,...t}){const n=e?"ol":"ul";return w.jsx(n,{...t,className:I(t.className,Y9,e?K9:G9)})}var Q9="vocs_ListItem";function Z9(e){return w.jsx("li",{...e,className:I(e.className,Q9)})}function X9(){const e=h.useRef(null),[t,n]=h.useState(!1);h.useEffect(()=>{if(!t)return;const o=setTimeout(()=>n(!1),1e3);return()=>clearTimeout(o)},[t]);function r(){var a;n(!0);const o=(a=e.current)==null?void 0:a.cloneNode(!0),i=o==null?void 0:o.querySelectorAll("button,.line.diff.remove,.twoslash-popup-info-hover,.twoslash-popup-info,.twoslash-meta-line,.twoslash-tag-line");for(const l of i??[])l.remove();navigator.clipboard.writeText(o==null?void 0:o.textContent)}return{copied:t,copy:r,ref:e}}var J9="vocs_CopyButton";function q9(){return w.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 68 67",children:[w.jsx("title",{children:"Checkmark"}),w.jsx("path",{fill:"currentColor",d:"M26.175 66.121c1.904 0 3.418-.83 4.492-2.49L66.263 7.332c.83-1.27 1.123-2.295 1.123-3.32 0-2.393-1.563-4.004-4.004-4.004-1.758 0-2.734.586-3.809 2.295L25.98 56.209 8.304 32.381c-1.123-1.514-2.198-2.149-3.809-2.149-2.441 0-4.2 1.71-4.2 4.15 0 1.026.44 2.15 1.27 3.224l19.971 25.927c1.367 1.758 2.734 2.588 4.639 2.588Z"})]})}function eb(){return w.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 82 82",children:[w.jsx("title",{children:"Copy"}),w.jsx("path",{fill:"currentColor",d:"M12.451 63.281h38.38c8.3 0 12.45-4.053 12.45-12.256v-38.77C63.281 4.054 59.131 0 50.831 0H12.45C4.101 0 0 4.053 0 12.256v38.77C0 59.227 4.102 63.28 12.451 63.28Zm.098-7.031c-3.516 0-5.518-1.904-5.518-5.615V12.647c0-3.711 2.002-5.616 5.518-5.616h38.183c3.516 0 5.518 1.905 5.518 5.615v37.989c0 3.71-2.002 5.615-5.518 5.615H12.55Z"}),w.jsx("path",{stroke:"currentColor",strokeWidth:"6.75px",d:"M69.385 78.266h-38.38c-3.679 0-5.782-.894-6.987-2.081-1.196-1.178-2.088-3.219-2.088-6.8v-38.77c0-3.581.892-5.622 2.088-6.8 1.205-1.187 3.308-2.08 6.988-2.08h38.379c3.65 0 5.758.89 6.973 2.084 1.203 1.182 2.103 3.225 2.103 6.796v38.77c0 3.57-.9 5.614-2.103 6.796-1.215 1.193-3.323 2.085-6.973 2.085Z"})]})}function tb({copy:e,copied:t}){return w.jsx("button",{className:J9,onClick:e,type:"button",children:t?w.jsx(st,{label:"Copied",size:"14px",icon:q9}):w.jsx(st,{label:"Copy",size:"18px",icon:eb})})}var nb="vocs_CodeBlock";function rb(e){return w.jsx("div",{...e,className:I(e.className,nb)})}function ob(){return w.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 94 99",fill:"none",children:[w.jsx("title",{children:"File"}),w.jsx("rect",{width:"77px",height:"89px",x:"8px",y:"3px",stroke:"currentColor",strokeWidth:"6px",rx:"7px"}),w.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"6px",d:"M25 22h43M25 35h43M25 48h22"})]})}function ib(){return w.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 79 95",fill:"none",children:[w.jsx("title",{children:"Terminal"}),w.jsx("path",{fill:"currentColor",d:"M38.281 34.033c0-1.074-.39-2.05-1.22-2.88L6.885 1.171C6.152.39 5.175 0 4.053 0 1.758 0 0 1.709 0 4.004c0 1.074.488 2.1 1.172 2.88l27.295 27.15L1.172 61.181C.488 61.962 0 62.939 0 64.062c0 2.295 1.758 4.004 4.053 4.004 1.123 0 2.1-.39 2.832-1.172l30.176-29.98c.83-.83 1.22-1.807 1.22-2.88Z"}),w.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"8px",d:"M36 75h55"})]})}var ab="vocs_CodeTitle";function lb({children:e,className:t,language:n,...r}){return w.jsxs("div",{...r,className:I(t,ab),children:[n==="bash"?w.jsx(st,{label:"Terminal",size:"14px",icon:ib,style:{marginTop:3}}):e.match(/\.(.*)$/)?w.jsx(st,{label:"File",size:"14px",icon:ob,style:{marginTop:1}}):null,e]})}var sb="vocs_Pre",cb="vocs_Pre_wrapper";function ub({children:e,className:t,...n}){const{copied:r,copy:o,ref:i}=X9();function a(u){return!u||typeof u!="object"?u:"props"in u?{...u,props:{...u.props,children:Array.isArray(u.props.children)?u.props.children.map(a):a(u.props.children)}}:u}const l=h.useMemo(()=>a(e),[e]);return(u=>t!=null&&t.includes("shiki")?w.jsxs(rb,{children:[n["data-title"]&&w.jsx(lb,{language:n["data-lang"],children:n["data-title"]}),u]}):u)(w.jsx("div",{className:I(cb),children:w.jsxs("pre",{ref:i,...n,className:I(t,sb),children:["data-language"in n&&w.jsx(tb,{copied:r,copy:o}),l]})}))}var fb="vocs_Footnotes";function db(e){return w.jsx("section",{...e,className:I(e.className,fb)})}var Gp="vocs_Section";function hb(e){return"data-footnotes"in e?w.jsx(db,{...e,className:I(e.className,Gp)}):w.jsx("section",{...e,className:I(e.className,Gp)})}var Qp="vocs_Span";function Wa(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Su(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Ou(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Ta(e){return(e==null?void 0:e.ownerDocument)||document}function pb(e){return"composedPath"in e?e.composedPath()[0]:e.target}const dy={...Bu},vb=dy.useInsertionEffect,mb=vb||(e=>e());function gb(e){const t=h.useRef(()=>{});return mb(()=>{t.current=e}),h.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o"floating-ui-"+Math.random().toString(36).slice(2,6)+yb++;function wb(){const[e,t]=h.useState(()=>Zp?Xp():void 0);return _o(()=>{e==null&&t(Xp())},[]),h.useEffect(()=>{Zp=!0},[]),e}const xb=dy.useId,hy=xb||wb,Cb=h.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:o},middlewareData:{arrow:i}},width:a=14,height:l=7,tipRadius:s=0,strokeWidth:u=0,staticOffset:f,stroke:c,d,style:{transform:p,...y}={},...g}=t,C=hy();if(!o)return null;const v=u*2,m=v/2,x=a/2*(s/-8+1),E=l/2*s/4,[S,_]=r.split("-"),b=y1.isRTL(o),$=!!d,T=S==="top"||S==="bottom",P=f&&_==="end"?"bottom":"top";let j=f&&_==="end"?"right":"left";f&&b&&(j=_==="end"?"left":"right");const L=(i==null?void 0:i.x)!=null?f||i.x:"",D=(i==null?void 0:i.y)!=null?f||i.y:"",N=d||"M0,0"+(" H"+a)+(" L"+(a-x)+","+(l-E))+(" Q"+a/2+","+l+" "+x+","+(l-E))+" Z",z={top:$?"rotate(180deg)":"",left:$?"rotate(90deg)":"rotate(-90deg)",bottom:$?"":"rotate(180deg)",right:$?"rotate(-90deg)":"rotate(90deg)"}[S];return h.createElement("svg",Iu({},g,{"aria-hidden":!0,ref:n,width:$?a:a+v,height:a,viewBox:"0 0 "+a+" "+(l>a?l:a),style:{position:"absolute",pointerEvents:"none",[j]:L,[P]:D,[S]:T||$?"100%":"calc(100% - "+v/2+"px)",transform:""+z+(p??""),...y}}),v>0&&h.createElement("path",{clipPath:"url(#"+C+")",fill:"none",stroke:c,strokeWidth:v+(d?0:1),d:N}),h.createElement("path",{stroke:v&&!d?g.fill:"none",d:N}),h.createElement("clipPath",{id:C},h.createElement("rect",{x:-m,y:m*($?-1:1),width:a+v,height:a})))});function Eb(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const _b=h.createContext(null),Sb=h.createContext(null),py=()=>{var e;return((e=h.useContext(_b))==null?void 0:e.id)||null},vy=()=>h.useContext(Sb);function bb(e){return"data-floating-ui-"+e}function Jp(e){const t=h.useRef(e);return _o(()=>{t.current=e}),t}const qp=bb("safe-polygon");function oc(e,t,n){return n&&!Ou(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function $b(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:{domReference:a,floating:l},refs:s}=e,{enabled:u=!0,delay:f=0,handleClose:c=null,mouseOnly:d=!1,restMs:p=0,move:y=!0}=t,g=vy(),C=py(),v=Jp(c),m=Jp(f),x=h.useRef(),E=h.useRef(),S=h.useRef(),_=h.useRef(),b=h.useRef(!0),$=h.useRef(!1),T=h.useRef(()=>{}),P=h.useCallback(()=>{var N;const z=(N=o.current.openEvent)==null?void 0:N.type;return(z==null?void 0:z.includes("mouse"))&&z!=="mousedown"},[o]);h.useEffect(()=>{if(!u)return;function N(z){let{open:V}=z;V||(clearTimeout(E.current),clearTimeout(_.current),b.current=!0)}return i.on("openchange",N),()=>{i.off("openchange",N)}},[u,i]),h.useEffect(()=>{if(!u||!v.current||!n)return;function N(V){P()&&r(!1,V,"hover")}const z=Ta(l).documentElement;return z.addEventListener("mouseleave",N),()=>{z.removeEventListener("mouseleave",N)}},[l,n,r,u,v,P]);const j=h.useCallback(function(N,z,V){z===void 0&&(z=!0),V===void 0&&(V="hover");const U=oc(m.current,"close",x.current);U&&!S.current?(clearTimeout(E.current),E.current=setTimeout(()=>r(!1,N,V),U)):z&&(clearTimeout(E.current),r(!1,N,V))},[m,r]),L=h.useCallback(()=>{T.current(),S.current=void 0},[]),D=h.useCallback(()=>{if($.current){const N=Ta(s.floating.current).body;N.style.pointerEvents="",N.removeAttribute(qp),$.current=!1}},[s]);return h.useEffect(()=>{if(!u)return;function N(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function z(O){if(clearTimeout(E.current),b.current=!1,d&&!Ou(x.current)||p>0&&oc(m.current,"open")===0)return;const F=oc(m.current,"open",x.current);F?E.current=setTimeout(()=>{r(!0,O,"hover")},F):r(!0,O,"hover")}function V(O){if(N())return;T.current();const F=Ta(l);if(clearTimeout(_.current),v.current){n||clearTimeout(E.current),S.current=v.current({...e,tree:g,x:O.clientX,y:O.clientY,onClose(){D(),L(),j(O,!0,"safe-polygon")}});const J=S.current;F.addEventListener("mousemove",J),T.current=()=>{F.removeEventListener("mousemove",J)};return}(x.current==="touch"?!Wa(l,O.relatedTarget):!0)&&j(O)}function U(O){N()||v.current==null||v.current({...e,tree:g,x:O.clientX,y:O.clientY,onClose(){D(),L(),j(O)}})(O)}if(nt(a)){const O=a;return n&&O.addEventListener("mouseleave",U),l==null||l.addEventListener("mouseleave",U),y&&O.addEventListener("mousemove",z,{once:!0}),O.addEventListener("mouseenter",z),O.addEventListener("mouseleave",V),()=>{n&&O.removeEventListener("mouseleave",U),l==null||l.removeEventListener("mouseleave",U),y&&O.removeEventListener("mousemove",z),O.removeEventListener("mouseenter",z),O.removeEventListener("mouseleave",V)}}},[a,l,u,e,d,p,y,j,L,D,r,n,g,m,v,o]),_o(()=>{var N;if(u&&n&&(N=v.current)!=null&&N.__options.blockPointerEvents&&P()){const V=Ta(l).body;if(V.setAttribute(qp,""),V.style.pointerEvents="none",$.current=!0,nt(a)&&l){var z;const U=a,O=g==null||(z=g.nodesRef.current.find(F=>F.id===C))==null||(z=z.context)==null?void 0:z.elements.floating;return O&&(O.style.pointerEvents=""),U.style.pointerEvents="auto",l.style.pointerEvents="auto",()=>{U.style.pointerEvents="",l.style.pointerEvents=""}}}},[u,n,C,l,a,g,v,P]),_o(()=>{n||(x.current=void 0,L(),D())},[n,L,D]),h.useEffect(()=>()=>{L(),clearTimeout(E.current),clearTimeout(_.current),D()},[u,a,L,D]),h.useMemo(()=>{if(!u)return{};function N(z){x.current=z.pointerType}return{reference:{onPointerDown:N,onPointerEnter:N,onMouseMove(z){function V(){b.current||r(!0,z.nativeEvent,"hover")}d&&!Ou(x.current)||n||p===0||(clearTimeout(_.current),x.current==="touch"?V():_.current=setTimeout(V,p))}},floating:{onMouseEnter(){clearTimeout(E.current)},onMouseLeave(z){j(z.nativeEvent,!1)}}}},[u,d,n,p,r,j])}function Tb(e,t){let n=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)}),r=n;for(;r.length;)r=e.filter(o=>{var i;return(i=r)==null?void 0:i.some(a=>{var l;return o.parentId===a.id&&((l=o.context)==null?void 0:l.open)})}),n=n.concat(r);return n}function kb(e){var t;e===void 0&&(e={});const{open:n=!1,onOpenChange:r,nodeId:o}=e,[i,a]=h.useState(null),[l,s]=h.useState(null),f=((t=e.elements)==null?void 0:t.reference)||i;_o(()=>{f&&(g.current=f)},[f]);const c=E1({...e,elements:{...e.elements,...l&&{reference:l}}}),d=vy(),p=py()!=null,y=gb(($,T,P)=>{C.current.openEvent=$?T:void 0,v.emit("openchange",{open:$,event:T,reason:P,nested:p}),r==null||r($,T,P)}),g=h.useRef(null),C=h.useRef({}),v=h.useState(()=>Eb())[0],m=hy(),x=h.useCallback($=>{const T=nt($)?{getBoundingClientRect:()=>$.getBoundingClientRect(),contextElement:$}:$;s(T),c.refs.setReference(T)},[c.refs]),E=h.useCallback($=>{(nt($)||$===null)&&(g.current=$,a($)),(nt(c.refs.reference.current)||c.refs.reference.current===null||$!==null&&!nt($))&&c.refs.setReference($)},[c.refs]),S=h.useMemo(()=>({...c.refs,setReference:E,setPositionReference:x,domReference:g}),[c.refs,E,x]),_=h.useMemo(()=>({...c.elements,domReference:f}),[c.elements,f]),b=h.useMemo(()=>({...c,refs:S,elements:_,dataRef:C,nodeId:o,floatingId:m,events:v,open:n,onOpenChange:y}),[c,o,m,v,n,y,S,_]);return _o(()=>{const $=d==null?void 0:d.nodesRef.current.find(T=>T.id===o);$&&($.context=b)}),h.useMemo(()=>({...c,context:b,refs:S,elements:_}),[c,S,_,b])}const ev="active",tv="selected";function ic(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[ev]:a,[tv]:l,...s}=e;i=s}return{...n==="floating"&&{tabIndex:-1},...i,...t.map(a=>{const l=a?a[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((a,l)=>(l&&Object.entries(l).forEach(s=>{let[u,f]=s;if(!(o&&[ev,tv].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof f=="function"){var c;(c=r.get(u))==null||c.push(f),a[u]=function(){for(var d,p=arguments.length,y=new Array(p),g=0;gC(...y)).find(C=>C!==void 0)}}}else a[u]=f}),a),{})}}function Rb(e){e===void 0&&(e=[]);const t=e,n=h.useCallback(i=>ic(i,e,"reference"),t),r=h.useCallback(i=>ic(i,e,"floating"),t),o=h.useCallback(i=>ic(i,e,"item"),e.map(i=>i==null?void 0:i.item));return h.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o}),[n,r,o])}function nv(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let a=0,l=i-1;a=r!=c>=r&&n<=(f-s)*(r-u)/(c-u)+s&&(o=!o)}return o}function Nb(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Pb(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,a=null,l=null,s=performance.now();function u(c,d){const p=performance.now(),y=p-s;if(a===null||l===null||y===0)return a=c,l=d,s=p,null;const g=c-a,C=d-l,m=Math.sqrt(g*g+C*C)/y;return a=c,l=d,s=p,m}const f=c=>{let{x:d,y:p,placement:y,elements:g,onClose:C,nodeId:v,tree:m}=c;return function(E){function S(){clearTimeout(o),C()}if(clearTimeout(o),!g.domReference||!g.floating||y==null||d==null||p==null)return;const{clientX:_,clientY:b}=E,$=[_,b],T=pb(E),P=E.type==="mouseleave",j=Wa(g.floating,T),L=Wa(g.domReference,T),D=g.domReference.getBoundingClientRect(),N=g.floating.getBoundingClientRect(),z=y.split("-")[0],V=d>N.right-N.width/2,U=p>N.bottom-N.height/2,O=Nb($,D),F=N.width>D.width,K=N.height>D.height,J=(F?D:N).left,se=(F?D:N).right,Be=(K?D:N).top,ye=(K?D:N).bottom;if(j&&(i=!0,!P))return;if(L&&(i=!1),L&&!P){i=!0;return}if(P&&nt(E.relatedTarget)&&Wa(g.floating,E.relatedTarget)||m&&Tb(m.nodesRef.current,v).some(Ue=>{let{context:xe}=Ue;return xe==null?void 0:xe.open}))return;if(z==="top"&&p>=D.bottom-1||z==="bottom"&&p<=D.top+1||z==="left"&&d>=D.right-1||z==="right"&&d<=D.left+1)return S();let Ne=[];switch(z){case"top":Ne=[[J,D.top+1],[J,N.bottom-1],[se,N.bottom-1],[se,D.top+1]];break;case"bottom":Ne=[[J,N.top+1],[J,D.bottom-1],[se,D.bottom-1],[se,N.top+1]];break;case"left":Ne=[[N.right-1,ye],[N.right-1,Be],[D.left+1,Be],[D.left+1,ye]];break;case"right":Ne=[[D.right-1,ye],[D.right-1,Be],[N.left+1,Be],[N.left+1,ye]];break}function we(Ue){let[xe,Se]=Ue;switch(z){case"top":{const jt=[F?xe+t/2:V?xe+t*4:xe-t*4,Se+t+1],be=[F?xe-t/2:V?xe+t*4:xe-t*4,Se+t+1],ft=[[N.left,V||F?N.bottom-t:N.top],[N.right,V?F?N.bottom-t:N.top:N.bottom-t]];return[jt,be,...ft]}case"bottom":{const jt=[F?xe+t/2:V?xe+t*4:xe-t*4,Se-t],be=[F?xe-t/2:V?xe+t*4:xe-t*4,Se-t],ft=[[N.left,V||F?N.top+t:N.bottom],[N.right,V?F?N.top+t:N.bottom:N.top+t]];return[jt,be,...ft]}case"left":{const jt=[xe+t+1,K?Se+t/2:U?Se+t*4:Se-t*4],be=[xe+t+1,K?Se-t/2:U?Se+t*4:Se-t*4];return[...[[U||K?N.right-t:N.left,N.top],[U?K?N.right-t:N.left:N.right-t,N.bottom]],jt,be]}case"right":{const jt=[xe-t,K?Se+t/2:U?Se+t*4:Se-t*4],be=[xe-t,K?Se-t/2:U?Se+t*4:Se-t*4],ft=[[U||K?N.left+t:N.right,N.top],[U?K?N.left+t:N.right:N.left+t,N.bottom]];return[jt,be,...ft]}}}if(!nv([_,b],Ne)){if(i&&!O)return S();if(!P&&r){const Ue=u(E.clientX,E.clientY);if(Ue!==null&&Ue<.1)return S()}nv([_,b],we([d,p]))?!i&&r&&(o=window.setTimeout(S,40)):S()}}};return f.__options={blockPointerEvents:n},f}function Ab({children:e,...t}){const[n,r]=e,o=h.useRef(null),[i,a]=h.useState(!1),{context:l,refs:s,floatingStyles:u}=kb({middleware:[x1({element:o}),c1(8),w1()],open:i,onOpenChange:a,placement:"bottom-start"}),f=$b(l,{handleClose:Pb()}),{getReferenceProps:c,getFloatingProps:d}=Rb([f]),p=r.props.children,y=n.props.children;return w.jsxs("span",{...t,children:[w.jsx("span",{className:"twoslash-target",ref:s.setReference,...c(),children:p}),i&&w.jsxs("div",{className:"twoslash-popup-info-hover",ref:s.setFloating,style:u,...d(),children:[w.jsx(Cb,{ref:o,context:l,fill:Yh.background5,height:3,stroke:Yh.border2,strokeWidth:1,width:7}),w.jsx("div",{className:"twoslash-popup-scroll-container",children:y})]})]})}function Ob(e){var n;const t=I(e.className,Qp);return(n=e.className)!=null&&n.includes("twoslash-hover")?w.jsx(Ab,{...e,className:t}):w.jsx("span",{...e,className:I(e.className,Qp)})}var Ib="vocs_CalloutTitle";function Lb({className:e,children:t}){return w.jsx("strong",{className:I(e,Ib),children:t})}var rv="vocs_Strong";function Mb(e){return"data-callout-title"in e&&typeof e.children=="string"?w.jsx(Lb,{...e,className:I(e.className,rv),children:e.children}):w.jsx("strong",{...e,className:I(e.className,rv)})}var jb="vocs_Summary";function Db(e){return w.jsx("summary",{...e,className:I(e.className,jb)})}var Fb="vocs_Table";function zb(e){return w.jsx("table",{...e,className:I(e.className,Fb)})}var Bb="vocs_TableCell";function Ub(e){return w.jsx("td",{...e,className:I(e.className,Bb)})}var Hb="vocs_TableHeader";function Vb(e){return w.jsx("th",{...e,className:I(e.className,Hb)})}var Wb="vocs_TableRow";function Kb(e){return w.jsx("tr",{...e,className:I(e.className,Wb)})}const Yb={a:J_,aside:sS,blockquote:uS,code:dS,details:vS,div:j9,pre:ub,header:H9,figcaption:F9,figure:B9,h1:W0,h2:ly,h3:sy,h4:cy,h5:uy,h6:fy,hr:W9,kd:Rg,li:Z9,ol:e=>w.jsx(Yp,{ordered:!0,...e}),p:K0,section:hb,span:Ob,strong:Mb,summary:Db,table:zb,td:Ub,th:Vb,tr:Kb,ul:e=>w.jsx(Yp,{ordered:!1,...e})};function Gb(){const{pathname:e}=Re(),t=Je(),{ogImageUrl:n}=t;if(!n)return;if(typeof n=="string")return n;const r=h.useMemo(()=>{const o=Object.keys(n).filter(i=>e.startsWith(i));return o[o.length-1]},[n,e]);if(r)return n[r]}function Lu(e){const{children:t,filePath:n,frontmatter:r,lastUpdatedAt:o,path:i}=e,{pathname:a}=Re(),l=h.useRef();return h.useEffect(()=>{l.current=a}),w.jsxs(w.Fragment,{children:[w.jsx(Qb,{frontmatter:r}),typeof window<"u"&&w.jsx(xx,{}),w.jsx(t_,{components:Yb,children:w.jsx(j6,{frontmatter:r,path:i,children:w.jsx(Q0.Provider,{value:{filePath:n,frontmatter:r,lastUpdatedAt:o,previousPath:l.current},children:t})})})]})}function Qb({frontmatter:e}){const t=Je(),n=Gb(),{baseUrl:r,font:o,iconUrl:i,logoUrl:a}=t,l=(e==null?void 0:e.title)??t.title,s=(e==null?void 0:e.description)??t.description,u=t.title&&!l.includes(t.title),f=typeof window<"u"&&window.location.hostname==="localhost";return w.jsxs(Pu,{defaultTitle:t.title,titleTemplate:u?t.titleTemplate:void 0,children:[l&&w.jsx("title",{children:l}),r&&!0&&!f&&w.jsx("base",{href:r}),s!=="undefined"&&w.jsx("meta",{name:"description",content:s}),i&&typeof i=="string"&&w.jsx("link",{rel:"icon",href:i,type:ac(i)}),i&&typeof i!="string"&&w.jsx("link",{rel:"icon",href:i.light,type:ac(i.light)}),i&&typeof i!="string"&&w.jsx("link",{rel:"icon",href:i.dark,type:ac(i.dark),media:"(prefers-color-scheme: dark)"}),w.jsx("meta",{property:"og:type",content:"website"}),w.jsx("meta",{property:"og:title",content:l||t.title}),r&&w.jsx("meta",{property:"og:url",content:r}),s!=="undefined"&&w.jsx("meta",{property:"og:description",content:s}),n&&w.jsx("meta",{property:"og:image",content:n.replace("%logo",`${r||""}${typeof a=="string"?a:(a==null?void 0:a.dark)||""}`).replace("%title",l||"").replace("%description",(s!=="undefined"?s:"")||"")}),(o==null?void 0:o.google)&&w.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(o==null?void 0:o.google)&&w.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:""}),(o==null?void 0:o.google)&&w.jsx("link",{href:`https://fonts.googleapis.com/css2?family=${o.google}:wght@300;400;500&display=swap`,rel:"stylesheet"}),w.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),n&&w.jsx("meta",{property:"twitter:image",content:n.replace("%logo",`${r||""}${typeof a=="string"?a:(a==null?void 0:a.dark)||""}`).replace("%title",l||"").replace("%description",(s!=="undefined"?s:"")||"")})]})}function ac(e){if(e.endsWith(".svg"))return"image/svg+xml";if(e.endsWith(".png"))return"image/png";if(e.endsWith(".jpg"))return"image/jpeg";if(e.endsWith(".ico"))return"image/x-icon";if(e.endsWith(".webp"))return"image/webp"}const Zb=(()=>{const e=zf.find(({path:t})=>t==="*");return e?{path:e.path,lazy:async()=>{const{frontmatter:t,...n}=await e.lazy();return{...n,element:w.jsx(Lu,{frontmatter:t,path:e.path,children:w.jsx($u,{children:w.jsx(n.default,{})})})}}}:{path:"*",lazy:void 0,element:w.jsx(Lu,{frontmatter:{layout:"minimal"},path:"*",children:w.jsx($u,{children:w.jsx(Kx,{})})})}})(),ov=[...zf.filter(({path:e})=>e!=="*").map(e=>({path:e.path,lazy:async()=>{const{frontmatter:t,...n}=await e.lazy();return{...n,element:w.jsx(Lu,{filePath:e.filePath,frontmatter:t,lastUpdatedAt:e.lastUpdatedAt,path:e.path,children:w.jsx($u,{children:w.jsx(n.default,{})})})}}})),Zb];async function Xb(e,t){var r;const n=(r=ur(e,window.location,t))==null?void 0:r.filter(o=>o.route.lazy);n&&(n==null?void 0:n.length)>0&&await Promise.all(n.map(async o=>{const i=await o.route.lazy();Object.assign(o.route,{...i,lazy:void 0})}))}function Jb(){const e=document.querySelectorAll('style[data-vocs-temp-style="true"]');for(const t of e)t.remove()}qb();async function qb(){const e=F0().basePath;await Xb(ov,e),Jb();const t=lx(ov,{basename:e});w0(document.getElementById("app"),w.jsx($x,{children:w.jsx(mx,{router:t})}))}export{c9 as $,x9 as C,nn as L,g9 as R,w9 as T,u9 as a,f9 as b,d9 as c,I as d,Je as e,B7 as f,y9 as g,w as j,e_ as u}; +*/var Up=Object.getOwnPropertySymbols,x_=Object.prototype.hasOwnProperty,C_=Object.prototype.propertyIsEnumerable;function E_(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function __(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(r.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var S_=__()?Object.assign:function(e,t){for(var n,r=E_(e),o,i=1;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},A_=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},ku=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(t):String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},O_=function(t){var n=co(t,q.TITLE),r=co(t,Mi.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var o=co(t,Mi.DEFAULT_TITLE);return n||o||void 0},I_=function(t){return co(t,Mi.ON_CHANGE_CLIENT_STATE)||function(){}},tc=function(t,n){return n.filter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,o){return ht({},r,o)},{})},L_=function(t,n){return n.filter(function(r){return typeof r[q.BASE]<"u"}).map(function(r){return r[q.BASE]}).reverse().reduce(function(r,o){if(!r.length)for(var i=Object.keys(o),a=0;a=0;r--){var o=t[r];if(o.hasOwnProperty(n))return o[n]}return null},M_=function(t){return{baseTag:L_([Ee.HREF,Ee.TARGET],t),bodyAttributes:tc(vr.BODY,t),defer:co(t,Mi.DEFER),encode:co(t,Mi.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:tc(vr.HTML,t),linkTags:Zo(q.LINK,[Ee.REL,Ee.HREF],t),metaTags:Zo(q.META,[Ee.NAME,Ee.CHARSET,Ee.HTTPEQUIV,Ee.PROPERTY,Ee.ITEM_PROP],t),noscriptTags:Zo(q.NOSCRIPT,[Ee.INNER_HTML],t),onChangeClientState:I_(t),scriptTags:Zo(q.SCRIPT,[Ee.SRC,Ee.INNER_HTML],t),styleTags:Zo(q.STYLE,[Ee.CSS_TEXT],t),title:O_(t),titleAttributes:tc(vr.TITLE,t)}},Ru=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){Ru(t)},0)}}(),Vp=function(t){return clearTimeout(t)},j_=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Ru:global.requestAnimationFrame||Ru,D_=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Vp:global.cancelAnimationFrame||Vp,F_=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},Xo=null,z_=function(t){Xo&&D_(Xo),t.defer?Xo=j_(function(){Wp(t,function(){Xo=null})}):(Wp(t),Xo=null)},Wp=function(t,n){var r=t.baseTag,o=t.bodyAttributes,i=t.htmlAttributes,a=t.linkTags,l=t.metaTags,s=t.noscriptTags,u=t.onChangeClientState,f=t.scriptTags,c=t.styleTags,d=t.title,p=t.titleAttributes;Nu(q.BODY,o),Nu(q.HTML,i),B_(d,p);var y={baseTag:zr(q.BASE,r),linkTags:zr(q.LINK,a),metaTags:zr(q.META,l),noscriptTags:zr(q.NOSCRIPT,s),scriptTags:zr(q.SCRIPT,f),styleTags:zr(q.STYLE,c)},g={},C={};Object.keys(y).forEach(function(v){var m=y[v],x=m.newTags,E=m.oldTags;x.length&&(g[v]=x),E.length&&(C[v]=y[v].oldTags)}),n&&n(),u(t,g,C)},Y1=function(t){return Array.isArray(t)?t.join(""):t},B_=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=Y1(t)),Nu(q.TITLE,n)},Nu=function(t,n){var r=document.getElementsByTagName(t)[0];if(r){for(var o=r.getAttribute(Vt),i=o?o.split(","):[],a=[].concat(i),l=Object.keys(n),s=0;s=0;d--)r.removeAttribute(a[d]);i.length===a.length?r.removeAttribute(Vt):r.getAttribute(Vt)!==l.join(",")&&r.setAttribute(Vt,l.join(","))}},zr=function(t,n){var r=document.head||document.querySelector(q.HEAD),o=r.querySelectorAll(t+"["+Vt+"]"),i=Array.prototype.slice.call(o),a=[],l=void 0;return n&&n.length&&n.forEach(function(s){var u=document.createElement(t);for(var f in s)if(s.hasOwnProperty(f))if(f===Ee.INNER_HTML)u.innerHTML=s.innerHTML;else if(f===Ee.CSS_TEXT)u.styleSheet?u.styleSheet.cssText=s.cssText:u.appendChild(document.createTextNode(s.cssText));else{var c=typeof s[f]>"u"?"":s[f];u.setAttribute(f,c)}u.setAttribute(Vt,"true"),i.some(function(d,p){return l=p,u.isEqualNode(d)})?i.splice(l,1):a.push(u)}),i.forEach(function(s){return s.parentNode.removeChild(s)}),a.forEach(function(s){return r.appendChild(s)}),{oldTags:i,newTags:a}},G1=function(t){return Object.keys(t).reduce(function(n,r){var o=typeof t[r]<"u"?r+'="'+t[r]+'"':""+r;return n?n+" "+o:o},"")},U_=function(t,n,r,o){var i=G1(r),a=Y1(n);return i?"<"+t+" "+Vt+'="true" '+i+">"+ku(a,o)+"":"<"+t+" "+Vt+'="true">'+ku(a,o)+""},H_=function(t,n,r){return n.reduce(function(o,i){var a=Object.keys(i).filter(function(u){return!(u===Ee.INNER_HTML||u===Ee.CSS_TEXT)}).reduce(function(u,f){var c=typeof i[f]>"u"?f:f+'="'+ku(i[f],r)+'"';return u?u+" "+c:c},""),l=i.innerHTML||i.cssText||"",s=T_.indexOf(t)===-1;return o+"<"+t+" "+Vt+'="true" '+a+(s?"/>":">"+l+"")},"")},Q1=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[Sl[o]||o]=t[o],r},n)},V_=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[$_[o]||o]=t[o],r},n)},W_=function(t,n,r){var o,i=(o={key:n},o[Vt]=!0,o),a=Q1(r,i);return[Z.createElement(q.TITLE,a,n)]},K_=function(t,n){return n.map(function(r,o){var i,a=(i={key:o},i[Vt]=!0,i);return Object.keys(r).forEach(function(l){var s=Sl[l]||l;if(s===Ee.INNER_HTML||s===Ee.CSS_TEXT){var u=r.innerHTML||r.cssText;a.dangerouslySetInnerHTML={__html:u}}else a[s]=r[l]}),Z.createElement(t,a)})},an=function(t,n,r){switch(t){case q.TITLE:return{toComponent:function(){return W_(t,n.title,n.titleAttributes)},toString:function(){return U_(t,n.title,n.titleAttributes,r)}};case vr.BODY:case vr.HTML:return{toComponent:function(){return Q1(n)},toString:function(){return G1(n)}};default:return{toComponent:function(){return K_(t,n)},toString:function(){return H_(t,n,r)}}}},Z1=function(t){var n=t.baseTag,r=t.bodyAttributes,o=t.encode,i=t.htmlAttributes,a=t.linkTags,l=t.metaTags,s=t.noscriptTags,u=t.scriptTags,f=t.styleTags,c=t.title,d=c===void 0?"":c,p=t.titleAttributes;return{base:an(q.BASE,n,o),bodyAttributes:an(vr.BODY,r,o),htmlAttributes:an(vr.HTML,i,o),link:an(q.LINK,a,o),meta:an(q.META,l,o),noscript:an(q.NOSCRIPT,s,o),script:an(q.SCRIPT,u,o),style:an(q.STYLE,f,o),title:an(q.TITLE,{title:d,titleAttributes:p},o)}},Y_=function(t){var n,r;return r=n=function(o){P_(i,o);function i(){return R_(this,i),A_(this,o.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(l){return!w_(this.props,l)},i.prototype.mapNestedChildrenToProps=function(l,s){if(!s)return null;switch(l.type){case q.SCRIPT:case q.NOSCRIPT:return{innerHTML:s};case q.STYLE:return{cssText:s}}throw new Error("<"+l.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},i.prototype.flattenArrayTypeChildren=function(l){var s,u=l.child,f=l.arrayTypeChildren,c=l.newChildProps,d=l.nestedChildren;return ht({},f,(s={},s[u.type]=[].concat(f[u.type]||[],[ht({},c,this.mapNestedChildrenToProps(u,d))]),s))},i.prototype.mapObjectTypeChildren=function(l){var s,u,f=l.child,c=l.newProps,d=l.newChildProps,p=l.nestedChildren;switch(f.type){case q.TITLE:return ht({},c,(s={},s[f.type]=p,s.titleAttributes=ht({},d),s));case q.BODY:return ht({},c,{bodyAttributes:ht({},d)});case q.HTML:return ht({},c,{htmlAttributes:ht({},d)})}return ht({},c,(u={},u[f.type]=ht({},d),u))},i.prototype.mapArrayTypeChildrenToProps=function(l,s){var u=ht({},s);return Object.keys(l).forEach(function(f){var c;u=ht({},u,(c={},c[f]=l[f],c))}),u},i.prototype.warnOnInvalidChildren=function(l,s){return!0},i.prototype.mapChildrenToProps=function(l,s){var u=this,f={};return Z.Children.forEach(l,function(c){if(!(!c||!c.props)){var d=c.props,p=d.children,y=Hp(d,["children"]),g=V_(y);switch(u.warnOnInvalidChildren(c,p),c.type){case q.LINK:case q.META:case q.NOSCRIPT:case q.SCRIPT:case q.STYLE:f=u.flattenArrayTypeChildren({child:c,arrayTypeChildren:f,newChildProps:g,nestedChildren:p});break;default:s=u.mapObjectTypeChildren({child:c,newProps:s,newChildProps:g,nestedChildren:p});break}}}),s=this.mapArrayTypeChildrenToProps(f,s),s},i.prototype.render=function(){var l=this.props,s=l.children,u=Hp(l,["children"]),f=ht({},u);return s&&(f=this.mapChildrenToProps(s,f)),Z.createElement(t,f)},N_(i,null,[{key:"canUseDOM",set:function(l){t.canUseDOM=l}}]),i}(Z.Component),n.propTypes={base:Ce.object,bodyAttributes:Ce.object,children:Ce.oneOfType([Ce.arrayOf(Ce.node),Ce.node]),defaultTitle:Ce.string,defer:Ce.bool,encodeSpecialCharacters:Ce.bool,htmlAttributes:Ce.object,link:Ce.arrayOf(Ce.object),meta:Ce.arrayOf(Ce.object),noscript:Ce.arrayOf(Ce.object),onChangeClientState:Ce.func,script:Ce.arrayOf(Ce.object),style:Ce.arrayOf(Ce.object),title:Ce.string,titleAttributes:Ce.object,titleTemplate:Ce.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var o=t.rewind();return o||(o=Z1({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),o},r},G_=function(){return null},Q_=h_(M_,z_,Z1)(G_),Pu=Y_(Q_);Pu.renderStatic=Pu.rewind;var nc="vocs_Anchor",Z_="vocs_Autolink";function X_(e){const{pathname:t}=Re();return w.jsx("a",{...e,className:I(e.className,Z_),href:`${t}${e.href}`})}function J_(e){const{children:t,href:n}=e,{pathname:r}=Re();return t&&typeof t=="object"&&"props"in t&&t.props["data-autolink-icon"]?w.jsx(X_,{className:I(e.className,nc),...e}):n!=null&&n.match(/^#/)?w.jsx("a",{className:I(e.className,nc),...e,href:`${r}${n}`}):w.jsx(nn,{className:I(e.className,nc),...e})}var q_="vocs_Callout_danger",eS="vocs_Callout_info",tS="vocs_Callout_note",X1="vocs_Callout",nS="vocs_Callout_success",rS="vocs_Callout_tip",oS="vocs_Callout_warning";const iS=Object.freeze(Object.defineProperty({__proto__:null,danger:q_,info:eS,note:tS,root:X1,success:nS,tip:rS,warning:oS},Symbol.toStringTag,{value:"Module"}));function aS({className:e,children:t,type:n}){return w.jsx("aside",{className:I(e,X1,iS[n]),children:t})}var lS="vocs_Aside";function sS(e){const t=I(e.className,lS);return"data-callout"in e?w.jsx(aS,{className:t,type:e["data-callout"],children:e.children}):w.jsx("aside",{...e,className:t})}var cS="vocs_Blockquote";function uS(e){return w.jsx("blockquote",{...e,className:I(e.className,cS)})}var fS="vocs_Code";function dS(e){const t=hS(e.children);return w.jsx("code",{...e,className:I(e.className,fS),children:t})}function hS(e){return Array.isArray(e)?e.map((t,n)=>{var r,o,i;return t.props&&"data-line"in t.props&&typeof t.props.children=="string"&&t.props.children.trim()===""&&((i=(o=(r=e[n+1])==null?void 0:r.props)==null?void 0:o.className)!=null&&i.includes("twoslash-tag-line"))?null:t}).filter(Boolean):e}var pS="vocs_Details";function vS(e){return w.jsx("details",{...e,className:I(e.className,pS)})}var mS="vocs_Authors_authors",gS="vocs_Authors_link",yS="vocs_Authors",Kp="vocs_Authors_separator";function J1(e){const{frontmatter:t}=kr(),{authors:n=t==null?void 0:t.authors,date:r=t==null?void 0:t.date}=e,o=h.useMemo(()=>{if(n)return Array.isArray(n)?n:n.split(",").map(a=>a.trim())},[n]),i=h.useMemo(()=>r?new Date(r).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}):null,[r]);return w.jsxs("div",{className:yS,children:[i,o&&(i?" by ":"By "),w.jsx("span",{className:mS,children:o==null?void 0:o.map((a,l)=>{const{text:s,url:u}=wS(a);return w.jsxs(h.Fragment,{children:[u?w.jsx("a",{className:gS,href:u,target:"_blank",rel:"noopener noreferrer",children:s}):s,lw.jsxs(h.Fragment,{children:[w.jsx("div",{className:ES,children:w.jsxs(Gn,{to:e.path,children:[w.jsx("h2",{className:bS,children:e.title}),w.jsx(J1,{authors:e.authors,date:e.date}),w.jsxs("p",{className:xS,children:[e.description," ",w.jsx("span",{className:_S,children:"[→]"})]})]})}),tw.jsxs(h.Fragment,{children:[w.jsx("div",{className:IS,children:t.name}),t.items.map((r,o)=>{var i;return w.jsx("div",{className:AS,style:Gt({[kS]:r.length.toString(),[RS]:`${((i=t.height)==null?void 0:i.toString())??"40"}px`}),children:r.map((a,l)=>w.jsx(nn,{className:I(TS,a?OS:void 0),hideExternalIcon:!0,href:a==null?void 0:a.link,variant:"styleless",children:w.jsx("img",{className:NS,src:a==null?void 0:a.image,alt:a==null?void 0:a.name})},l))},o)})]},n))})}var MS="var(--vocs_AutolinkIcon_iconUrl)",jS="vocs_AutolinkIcon";function DS(e){const{basePath:t}=Je(),n=t;return w.jsx("div",{...e,className:I(e.className,jS),style:Gt({[MS]:`url(${n}/.vocs/icons/link.svg)`})})}const rc="rovingFocusGroup.onEntryFocus",FS={bubbles:!1,cancelable:!0},cd="RovingFocusGroup",[Au,q1,zS]=Kl(cd),[BS,ey]=En(cd,[zS]),[US,HS]=BS(cd),VS=h.forwardRef((e,t)=>h.createElement(Au.Provider,{scope:e.__scopeRovingFocusGroup},h.createElement(Au.Slot,{scope:e.__scopeRovingFocusGroup},h.createElement(WS,Y({},e,{ref:t}))))),WS=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:u,...f}=e,c=h.useRef(null),d=ze(t,c),p=Wl(i),[y=null,g]=rr({prop:a,defaultProp:l,onChange:s}),[C,v]=h.useState(!1),m=at(u),x=q1(n),E=h.useRef(!1),[S,_]=h.useState(0);return h.useEffect(()=>{const b=c.current;if(b)return b.addEventListener(rc,m),()=>b.removeEventListener(rc,m)},[m]),h.createElement(US,{scope:n,orientation:r,dir:p,loop:o,currentTabStopId:y,onItemFocus:h.useCallback(b=>g(b),[g]),onItemShiftTab:h.useCallback(()=>v(!0),[]),onFocusableItemAdd:h.useCallback(()=>_(b=>b+1),[]),onFocusableItemRemove:h.useCallback(()=>_(b=>b-1),[])},h.createElement(fe.div,Y({tabIndex:C||S===0?-1:0,"data-orientation":r},f,{ref:d,style:{outline:"none",...e.style},onMouseDown:ae(e.onMouseDown,()=>{E.current=!0}),onFocus:ae(e.onFocus,b=>{const $=!E.current;if(b.target===b.currentTarget&&$&&!C){const T=new CustomEvent(rc,FS);if(b.currentTarget.dispatchEvent(T),!T.defaultPrevented){const P=x().filter(z=>z.focusable),j=P.find(z=>z.active),L=P.find(z=>z.id===y),N=[j,L,...P].filter(Boolean).map(z=>z.ref.current);ty(N)}}E.current=!1}),onBlur:ae(e.onBlur,()=>v(!1))})))}),KS="RovingFocusGroupItem",YS=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,l=rn(),s=i||l,u=HS(KS,n),f=u.currentTabStopId===s,c=q1(n),{onFocusableItemAdd:d,onFocusableItemRemove:p}=u;return h.useEffect(()=>{if(r)return d(),()=>p()},[r,d,p]),h.createElement(Au.ItemSlot,{scope:n,id:s,focusable:r,active:o},h.createElement(fe.span,Y({tabIndex:f?0:-1,"data-orientation":u.orientation},a,{ref:t,onMouseDown:ae(e.onMouseDown,y=>{r?u.onItemFocus(s):y.preventDefault()}),onFocus:ae(e.onFocus,()=>u.onItemFocus(s)),onKeyDown:ae(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){u.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const g=ZS(y,u.orientation,u.dir);if(g!==void 0){y.preventDefault();let v=c().filter(m=>m.focusable).map(m=>m.ref.current);if(g==="last")v.reverse();else if(g==="prev"||g==="next"){g==="prev"&&v.reverse();const m=v.indexOf(y.currentTarget);v=u.loop?XS(v,m+1):v.slice(m+1)}setTimeout(()=>ty(v))}})})))}),GS={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function QS(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ZS(e,t,n){const r=QS(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return GS[r]}function ty(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function XS(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const JS=VS,qS=YS,ny="Tabs",[e9,a$]=En(ny,[ey]),ry=ey(),[t9,ud]=e9(ny),n9=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:l,activationMode:s="automatic",...u}=e,f=Wl(l),[c,d]=rr({prop:r,onChange:o,defaultProp:i});return h.createElement(t9,{scope:n,baseId:rn(),value:c,onValueChange:d,orientation:a,dir:f,activationMode:s},h.createElement(fe.div,Y({dir:f,"data-orientation":a},u,{ref:t})))}),r9="TabsList",o9=h.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=ud(r9,n),a=ry(n);return h.createElement(JS,Y({asChild:!0},a,{orientation:i.orientation,dir:i.dir,loop:r}),h.createElement(fe.div,Y({role:"tablist","aria-orientation":i.orientation},o,{ref:t})))}),i9="TabsTrigger",a9=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=ud(i9,n),l=ry(n),s=oy(a.baseId,r),u=iy(a.baseId,r),f=r===a.value;return h.createElement(qS,Y({asChild:!0},l,{focusable:!o,active:f}),h.createElement(fe.button,Y({type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:s},i,{ref:t,onMouseDown:ae(e.onMouseDown,c=>{!o&&c.button===0&&c.ctrlKey===!1?a.onValueChange(r):c.preventDefault()}),onKeyDown:ae(e.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&a.onValueChange(r)}),onFocus:ae(e.onFocus,()=>{const c=a.activationMode!=="manual";!f&&!o&&c&&a.onValueChange(r)})})))}),l9="TabsContent",s9=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,l=ud(l9,n),s=oy(l.baseId,r),u=iy(l.baseId,r),f=r===l.value,c=h.useRef(f);return h.useEffect(()=>{const d=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(d)},[]),h.createElement(_n,{present:o||f},({present:d})=>h.createElement(fe.div,Y({"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":s,hidden:!d,id:u,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:c.current?"0s":void 0}}),d&&i))});function oy(e,t){return`${e}-trigger-${t}`}function iy(e,t){return`${e}-content-${t}`}const c9=n9,u9=o9,f9=a9,d9=s9;var h9="vocs_Tabs_content",p9="vocs_Tabs_list",v9="vocs_Tabs",m9="vocs_Tabs_trigger";function g9(e){return w.jsx(c9,{...e,className:I(e.className,v9)})}function y9(e){return w.jsx(u9,{...e,className:I(e.className,p9)})}function w9(e){return w.jsx(f9,{...e,className:I(e.className,m9)})}function x9(e){return w.jsx(d9,{...e,className:I(e.className,h9)})}var C9="vocs_CodeGroup";function E9({children:e}){if(!Array.isArray(e))return null;const t=e.map(n=>{const r=n.props["data-title"]?n:n.props.children,{props:o}=r,i=o["data-title"],a=o.children;return{title:i,content:a}});return w.jsxs(g9,{className:C9,defaultValue:t[0].title,children:[w.jsx(y9,{"aria-label":"Code group",children:t.map(({title:n},r)=>w.jsx(w9,{value:n||r.toString(),children:n},n||r.toString()))}),t.map(({title:n,content:r},o)=>{var a,l;const i=(l=(a=r.props)==null?void 0:a.className)==null?void 0:l.includes("shiki");return w.jsx(x9,{"data-shiki":i,value:n||o.toString(),children:r},n||o.toString())})]})}var _9="vocs_Div",S9="vocs_Step_content",b9="vocs_Step",ay="vocs_Step_title",$9="vocs_H2";function ly(e){return w.jsx(Ro,{...e,className:I(e.className,$9),level:2})}var T9="vocs_H3";function sy(e){return w.jsx(Ro,{...e,className:I(e.className,T9),level:3})}var k9="vocs_H4";function cy(e){return w.jsx(Ro,{...e,className:I(e.className,k9),level:4})}var R9="vocs_H5";function uy(e){return w.jsx(Ro,{...e,className:I(e.className,R9),level:5})}var N9="vocs_H6";function fy(e){return w.jsx(Ro,{...e,className:I(e.className,N9),level:6})}function P9({children:e,className:t,title:n,titleLevel:r=2}){const o=(()=>{if(r===2)return ly;if(r===3)return sy;if(r===4)return cy;if(r===5)return uy;if(r===6)return fy;throw new Error("Invalid.")})();return w.jsxs("div",{className:I(t,b9),children:[typeof n=="string"?w.jsx(o,{className:ay,children:n}):n,w.jsx("div",{className:S9,children:e})]})}var A9="vocs_Steps";function O9({children:e,className:t}){return w.jsx("div",{className:I(t,A9),children:e})}function I9({children:e}){return Array.isArray(e)?w.jsx(O9,{children:e.map(({props:t},n)=>{const[r,...o]=Array.isArray(t.children)?t.children:[t.children];return w.jsx(P9,{title:h.cloneElement(r,{className:ay}),children:o},n)})}):null}var L9="vocs_Subtitle";function M9({children:e}){return w.jsx("div",{className:L9,role:"doc-subtitle",children:e})}function j9(e){const{layout:t}=Rr(),n=I(e.className,_9);return e.className==="code-group"?w.jsx(E9,{...e,className:n}):"data-authors"in e?w.jsx(J1,{}):"data-blog-posts"in e?w.jsx($S,{}):"data-sponsors"in e?w.jsx(LS,{}):"data-autolink-icon"in e&&t==="docs"?w.jsx(DS,{...e,className:n}):"data-vocs-steps"in e?w.jsx(I9,{...e,className:n}):e.role==="doc-subtitle"?w.jsx(M9,{...e}):w.jsx("div",{...e,className:n})}var D9="vocs_Figcaption";function F9(e){const t=I(e.className,D9);return w.jsx("figcaption",{...e,className:t})}var z9="vocs_Figure";function B9(e){const t=I(e.className,z9);return w.jsx("figure",{...e,className:t})}var U9="vocs_Header";function H9(e){return w.jsx("header",{...e,className:I(e.className,U9)})}var V9="vocs_HorizontalRule";function W9(e){return w.jsx("hr",{...e,className:I(e.className,V9)})}var K9="vocs_List_ordered",Y9="vocs_List",G9="vocs_List_unordered";function Gp({ordered:e,...t}){const n=e?"ol":"ul";return w.jsx(n,{...t,className:I(t.className,Y9,e?K9:G9)})}var Q9="vocs_ListItem";function Z9(e){return w.jsx("li",{...e,className:I(e.className,Q9)})}function X9(){const e=h.useRef(null),[t,n]=h.useState(!1);h.useEffect(()=>{if(!t)return;const o=setTimeout(()=>n(!1),1e3);return()=>clearTimeout(o)},[t]);function r(){var a;n(!0);const o=(a=e.current)==null?void 0:a.cloneNode(!0),i=o==null?void 0:o.querySelectorAll("button,.line.diff.remove,.twoslash-popup-info-hover,.twoslash-popup-info,.twoslash-meta-line,.twoslash-tag-line");for(const l of i??[])l.remove();navigator.clipboard.writeText(o==null?void 0:o.textContent)}return{copied:t,copy:r,ref:e}}var J9="vocs_CopyButton";function q9(){return w.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 68 67",children:[w.jsx("title",{children:"Checkmark"}),w.jsx("path",{fill:"currentColor",d:"M26.175 66.121c1.904 0 3.418-.83 4.492-2.49L66.263 7.332c.83-1.27 1.123-2.295 1.123-3.32 0-2.393-1.563-4.004-4.004-4.004-1.758 0-2.734.586-3.809 2.295L25.98 56.209 8.304 32.381c-1.123-1.514-2.198-2.149-3.809-2.149-2.441 0-4.2 1.71-4.2 4.15 0 1.026.44 2.15 1.27 3.224l19.971 25.927c1.367 1.758 2.734 2.588 4.639 2.588Z"})]})}function eb(){return w.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 82 82",children:[w.jsx("title",{children:"Copy"}),w.jsx("path",{fill:"currentColor",d:"M12.451 63.281h38.38c8.3 0 12.45-4.053 12.45-12.256v-38.77C63.281 4.054 59.131 0 50.831 0H12.45C4.101 0 0 4.053 0 12.256v38.77C0 59.227 4.102 63.28 12.451 63.28Zm.098-7.031c-3.516 0-5.518-1.904-5.518-5.615V12.647c0-3.711 2.002-5.616 5.518-5.616h38.183c3.516 0 5.518 1.905 5.518 5.615v37.989c0 3.71-2.002 5.615-5.518 5.615H12.55Z"}),w.jsx("path",{stroke:"currentColor",strokeWidth:"6.75px",d:"M69.385 78.266h-38.38c-3.679 0-5.782-.894-6.987-2.081-1.196-1.178-2.088-3.219-2.088-6.8v-38.77c0-3.581.892-5.622 2.088-6.8 1.205-1.187 3.308-2.08 6.988-2.08h38.379c3.65 0 5.758.89 6.973 2.084 1.203 1.182 2.103 3.225 2.103 6.796v38.77c0 3.57-.9 5.614-2.103 6.796-1.215 1.193-3.323 2.085-6.973 2.085Z"})]})}function tb({copy:e,copied:t}){return w.jsx("button",{className:J9,onClick:e,type:"button",children:t?w.jsx(st,{label:"Copied",size:"14px",icon:q9}):w.jsx(st,{label:"Copy",size:"18px",icon:eb})})}var nb="vocs_CodeBlock";function rb(e){return w.jsx("div",{...e,className:I(e.className,nb)})}function ob(){return w.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 94 99",fill:"none",children:[w.jsx("title",{children:"File"}),w.jsx("rect",{width:"77px",height:"89px",x:"8px",y:"3px",stroke:"currentColor",strokeWidth:"6px",rx:"7px"}),w.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"6px",d:"M25 22h43M25 35h43M25 48h22"})]})}function ib(){return w.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 79 95",fill:"none",children:[w.jsx("title",{children:"Terminal"}),w.jsx("path",{fill:"currentColor",d:"M38.281 34.033c0-1.074-.39-2.05-1.22-2.88L6.885 1.171C6.152.39 5.175 0 4.053 0 1.758 0 0 1.709 0 4.004c0 1.074.488 2.1 1.172 2.88l27.295 27.15L1.172 61.181C.488 61.962 0 62.939 0 64.062c0 2.295 1.758 4.004 4.053 4.004 1.123 0 2.1-.39 2.832-1.172l30.176-29.98c.83-.83 1.22-1.807 1.22-2.88Z"}),w.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"8px",d:"M36 75h55"})]})}var ab="vocs_CodeTitle";function lb({children:e,className:t,language:n,...r}){return w.jsxs("div",{...r,className:I(t,ab),children:[n==="bash"?w.jsx(st,{label:"Terminal",size:"14px",icon:ib,style:{marginTop:3}}):e.match(/\.(.*)$/)?w.jsx(st,{label:"File",size:"14px",icon:ob,style:{marginTop:1}}):null,e]})}var sb="vocs_Pre",cb="vocs_Pre_wrapper";function ub({children:e,className:t,...n}){const{copied:r,copy:o,ref:i}=X9();function a(u){return!u||typeof u!="object"?u:"props"in u?{...u,props:{...u.props,children:Array.isArray(u.props.children)?u.props.children.map(a):a(u.props.children)}}:u}const l=h.useMemo(()=>a(e),[e]);return(u=>t!=null&&t.includes("shiki")?w.jsxs(rb,{children:[n["data-title"]&&w.jsx(lb,{language:n["data-lang"],children:n["data-title"]}),u]}):u)(w.jsx("div",{className:I(cb),children:w.jsxs("pre",{ref:i,...n,className:I(t,sb),children:["data-language"in n&&w.jsx(tb,{copied:r,copy:o}),l]})}))}var fb="vocs_Footnotes";function db(e){return w.jsx("section",{...e,className:I(e.className,fb)})}var Qp="vocs_Section";function hb(e){return"data-footnotes"in e?w.jsx(db,{...e,className:I(e.className,Qp)}):w.jsx("section",{...e,className:I(e.className,Qp)})}var Zp="vocs_Span";function Wa(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Su(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Ou(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Ta(e){return(e==null?void 0:e.ownerDocument)||document}function pb(e){return"composedPath"in e?e.composedPath()[0]:e.target}const dy={...Bu},vb=dy.useInsertionEffect,mb=vb||(e=>e());function gb(e){const t=h.useRef(()=>{});return mb(()=>{t.current=e}),h.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o"floating-ui-"+Math.random().toString(36).slice(2,6)+yb++;function wb(){const[e,t]=h.useState(()=>Xp?Jp():void 0);return _o(()=>{e==null&&t(Jp())},[]),h.useEffect(()=>{Xp=!0},[]),e}const xb=dy.useId,hy=xb||wb,Cb=h.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:o},middlewareData:{arrow:i}},width:a=14,height:l=7,tipRadius:s=0,strokeWidth:u=0,staticOffset:f,stroke:c,d,style:{transform:p,...y}={},...g}=t,C=hy();if(!o)return null;const v=u*2,m=v/2,x=a/2*(s/-8+1),E=l/2*s/4,[S,_]=r.split("-"),b=y1.isRTL(o),$=!!d,T=S==="top"||S==="bottom",P=f&&_==="end"?"bottom":"top";let j=f&&_==="end"?"right":"left";f&&b&&(j=_==="end"?"left":"right");const L=(i==null?void 0:i.x)!=null?f||i.x:"",D=(i==null?void 0:i.y)!=null?f||i.y:"",N=d||"M0,0"+(" H"+a)+(" L"+(a-x)+","+(l-E))+(" Q"+a/2+","+l+" "+x+","+(l-E))+" Z",z={top:$?"rotate(180deg)":"",left:$?"rotate(90deg)":"rotate(-90deg)",bottom:$?"":"rotate(180deg)",right:$?"rotate(-90deg)":"rotate(90deg)"}[S];return h.createElement("svg",Iu({},g,{"aria-hidden":!0,ref:n,width:$?a:a+v,height:a,viewBox:"0 0 "+a+" "+(l>a?l:a),style:{position:"absolute",pointerEvents:"none",[j]:L,[P]:D,[S]:T||$?"100%":"calc(100% - "+v/2+"px)",transform:""+z+(p??""),...y}}),v>0&&h.createElement("path",{clipPath:"url(#"+C+")",fill:"none",stroke:c,strokeWidth:v+(d?0:1),d:N}),h.createElement("path",{stroke:v&&!d?g.fill:"none",d:N}),h.createElement("clipPath",{id:C},h.createElement("rect",{x:-m,y:m*($?-1:1),width:a+v,height:a})))});function Eb(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const _b=h.createContext(null),Sb=h.createContext(null),py=()=>{var e;return((e=h.useContext(_b))==null?void 0:e.id)||null},vy=()=>h.useContext(Sb);function bb(e){return"data-floating-ui-"+e}function qp(e){const t=h.useRef(e);return _o(()=>{t.current=e}),t}const ev=bb("safe-polygon");function oc(e,t,n){return n&&!Ou(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function $b(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:{domReference:a,floating:l},refs:s}=e,{enabled:u=!0,delay:f=0,handleClose:c=null,mouseOnly:d=!1,restMs:p=0,move:y=!0}=t,g=vy(),C=py(),v=qp(c),m=qp(f),x=h.useRef(),E=h.useRef(),S=h.useRef(),_=h.useRef(),b=h.useRef(!0),$=h.useRef(!1),T=h.useRef(()=>{}),P=h.useCallback(()=>{var N;const z=(N=o.current.openEvent)==null?void 0:N.type;return(z==null?void 0:z.includes("mouse"))&&z!=="mousedown"},[o]);h.useEffect(()=>{if(!u)return;function N(z){let{open:V}=z;V||(clearTimeout(E.current),clearTimeout(_.current),b.current=!0)}return i.on("openchange",N),()=>{i.off("openchange",N)}},[u,i]),h.useEffect(()=>{if(!u||!v.current||!n)return;function N(V){P()&&r(!1,V,"hover")}const z=Ta(l).documentElement;return z.addEventListener("mouseleave",N),()=>{z.removeEventListener("mouseleave",N)}},[l,n,r,u,v,P]);const j=h.useCallback(function(N,z,V){z===void 0&&(z=!0),V===void 0&&(V="hover");const U=oc(m.current,"close",x.current);U&&!S.current?(clearTimeout(E.current),E.current=setTimeout(()=>r(!1,N,V),U)):z&&(clearTimeout(E.current),r(!1,N,V))},[m,r]),L=h.useCallback(()=>{T.current(),S.current=void 0},[]),D=h.useCallback(()=>{if($.current){const N=Ta(s.floating.current).body;N.style.pointerEvents="",N.removeAttribute(ev),$.current=!1}},[s]);return h.useEffect(()=>{if(!u)return;function N(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function z(O){if(clearTimeout(E.current),b.current=!1,d&&!Ou(x.current)||p>0&&oc(m.current,"open")===0)return;const F=oc(m.current,"open",x.current);F?E.current=setTimeout(()=>{r(!0,O,"hover")},F):r(!0,O,"hover")}function V(O){if(N())return;T.current();const F=Ta(l);if(clearTimeout(_.current),v.current){n||clearTimeout(E.current),S.current=v.current({...e,tree:g,x:O.clientX,y:O.clientY,onClose(){D(),L(),j(O,!0,"safe-polygon")}});const J=S.current;F.addEventListener("mousemove",J),T.current=()=>{F.removeEventListener("mousemove",J)};return}(x.current==="touch"?!Wa(l,O.relatedTarget):!0)&&j(O)}function U(O){N()||v.current==null||v.current({...e,tree:g,x:O.clientX,y:O.clientY,onClose(){D(),L(),j(O)}})(O)}if(nt(a)){const O=a;return n&&O.addEventListener("mouseleave",U),l==null||l.addEventListener("mouseleave",U),y&&O.addEventListener("mousemove",z,{once:!0}),O.addEventListener("mouseenter",z),O.addEventListener("mouseleave",V),()=>{n&&O.removeEventListener("mouseleave",U),l==null||l.removeEventListener("mouseleave",U),y&&O.removeEventListener("mousemove",z),O.removeEventListener("mouseenter",z),O.removeEventListener("mouseleave",V)}}},[a,l,u,e,d,p,y,j,L,D,r,n,g,m,v,o]),_o(()=>{var N;if(u&&n&&(N=v.current)!=null&&N.__options.blockPointerEvents&&P()){const V=Ta(l).body;if(V.setAttribute(ev,""),V.style.pointerEvents="none",$.current=!0,nt(a)&&l){var z;const U=a,O=g==null||(z=g.nodesRef.current.find(F=>F.id===C))==null||(z=z.context)==null?void 0:z.elements.floating;return O&&(O.style.pointerEvents=""),U.style.pointerEvents="auto",l.style.pointerEvents="auto",()=>{U.style.pointerEvents="",l.style.pointerEvents=""}}}},[u,n,C,l,a,g,v,P]),_o(()=>{n||(x.current=void 0,L(),D())},[n,L,D]),h.useEffect(()=>()=>{L(),clearTimeout(E.current),clearTimeout(_.current),D()},[u,a,L,D]),h.useMemo(()=>{if(!u)return{};function N(z){x.current=z.pointerType}return{reference:{onPointerDown:N,onPointerEnter:N,onMouseMove(z){function V(){b.current||r(!0,z.nativeEvent,"hover")}d&&!Ou(x.current)||n||p===0||(clearTimeout(_.current),x.current==="touch"?V():_.current=setTimeout(V,p))}},floating:{onMouseEnter(){clearTimeout(E.current)},onMouseLeave(z){j(z.nativeEvent,!1)}}}},[u,d,n,p,r,j])}function Tb(e,t){let n=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)}),r=n;for(;r.length;)r=e.filter(o=>{var i;return(i=r)==null?void 0:i.some(a=>{var l;return o.parentId===a.id&&((l=o.context)==null?void 0:l.open)})}),n=n.concat(r);return n}function kb(e){var t;e===void 0&&(e={});const{open:n=!1,onOpenChange:r,nodeId:o}=e,[i,a]=h.useState(null),[l,s]=h.useState(null),f=((t=e.elements)==null?void 0:t.reference)||i;_o(()=>{f&&(g.current=f)},[f]);const c=E1({...e,elements:{...e.elements,...l&&{reference:l}}}),d=vy(),p=py()!=null,y=gb(($,T,P)=>{C.current.openEvent=$?T:void 0,v.emit("openchange",{open:$,event:T,reason:P,nested:p}),r==null||r($,T,P)}),g=h.useRef(null),C=h.useRef({}),v=h.useState(()=>Eb())[0],m=hy(),x=h.useCallback($=>{const T=nt($)?{getBoundingClientRect:()=>$.getBoundingClientRect(),contextElement:$}:$;s(T),c.refs.setReference(T)},[c.refs]),E=h.useCallback($=>{(nt($)||$===null)&&(g.current=$,a($)),(nt(c.refs.reference.current)||c.refs.reference.current===null||$!==null&&!nt($))&&c.refs.setReference($)},[c.refs]),S=h.useMemo(()=>({...c.refs,setReference:E,setPositionReference:x,domReference:g}),[c.refs,E,x]),_=h.useMemo(()=>({...c.elements,domReference:f}),[c.elements,f]),b=h.useMemo(()=>({...c,refs:S,elements:_,dataRef:C,nodeId:o,floatingId:m,events:v,open:n,onOpenChange:y}),[c,o,m,v,n,y,S,_]);return _o(()=>{const $=d==null?void 0:d.nodesRef.current.find(T=>T.id===o);$&&($.context=b)}),h.useMemo(()=>({...c,context:b,refs:S,elements:_}),[c,S,_,b])}const tv="active",nv="selected";function ic(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[tv]:a,[nv]:l,...s}=e;i=s}return{...n==="floating"&&{tabIndex:-1},...i,...t.map(a=>{const l=a?a[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((a,l)=>(l&&Object.entries(l).forEach(s=>{let[u,f]=s;if(!(o&&[tv,nv].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof f=="function"){var c;(c=r.get(u))==null||c.push(f),a[u]=function(){for(var d,p=arguments.length,y=new Array(p),g=0;gC(...y)).find(C=>C!==void 0)}}}else a[u]=f}),a),{})}}function Rb(e){e===void 0&&(e=[]);const t=e,n=h.useCallback(i=>ic(i,e,"reference"),t),r=h.useCallback(i=>ic(i,e,"floating"),t),o=h.useCallback(i=>ic(i,e,"item"),e.map(i=>i==null?void 0:i.item));return h.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o}),[n,r,o])}function rv(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let a=0,l=i-1;a=r!=c>=r&&n<=(f-s)*(r-u)/(c-u)+s&&(o=!o)}return o}function Nb(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Pb(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,a=null,l=null,s=performance.now();function u(c,d){const p=performance.now(),y=p-s;if(a===null||l===null||y===0)return a=c,l=d,s=p,null;const g=c-a,C=d-l,m=Math.sqrt(g*g+C*C)/y;return a=c,l=d,s=p,m}const f=c=>{let{x:d,y:p,placement:y,elements:g,onClose:C,nodeId:v,tree:m}=c;return function(E){function S(){clearTimeout(o),C()}if(clearTimeout(o),!g.domReference||!g.floating||y==null||d==null||p==null)return;const{clientX:_,clientY:b}=E,$=[_,b],T=pb(E),P=E.type==="mouseleave",j=Wa(g.floating,T),L=Wa(g.domReference,T),D=g.domReference.getBoundingClientRect(),N=g.floating.getBoundingClientRect(),z=y.split("-")[0],V=d>N.right-N.width/2,U=p>N.bottom-N.height/2,O=Nb($,D),F=N.width>D.width,K=N.height>D.height,J=(F?D:N).left,se=(F?D:N).right,Be=(K?D:N).top,ye=(K?D:N).bottom;if(j&&(i=!0,!P))return;if(L&&(i=!1),L&&!P){i=!0;return}if(P&&nt(E.relatedTarget)&&Wa(g.floating,E.relatedTarget)||m&&Tb(m.nodesRef.current,v).some(Ue=>{let{context:xe}=Ue;return xe==null?void 0:xe.open}))return;if(z==="top"&&p>=D.bottom-1||z==="bottom"&&p<=D.top+1||z==="left"&&d>=D.right-1||z==="right"&&d<=D.left+1)return S();let Ne=[];switch(z){case"top":Ne=[[J,D.top+1],[J,N.bottom-1],[se,N.bottom-1],[se,D.top+1]];break;case"bottom":Ne=[[J,N.top+1],[J,D.bottom-1],[se,D.bottom-1],[se,N.top+1]];break;case"left":Ne=[[N.right-1,ye],[N.right-1,Be],[D.left+1,Be],[D.left+1,ye]];break;case"right":Ne=[[D.right-1,ye],[D.right-1,Be],[N.left+1,Be],[N.left+1,ye]];break}function we(Ue){let[xe,Se]=Ue;switch(z){case"top":{const jt=[F?xe+t/2:V?xe+t*4:xe-t*4,Se+t+1],be=[F?xe-t/2:V?xe+t*4:xe-t*4,Se+t+1],ft=[[N.left,V||F?N.bottom-t:N.top],[N.right,V?F?N.bottom-t:N.top:N.bottom-t]];return[jt,be,...ft]}case"bottom":{const jt=[F?xe+t/2:V?xe+t*4:xe-t*4,Se-t],be=[F?xe-t/2:V?xe+t*4:xe-t*4,Se-t],ft=[[N.left,V||F?N.top+t:N.bottom],[N.right,V?F?N.top+t:N.bottom:N.top+t]];return[jt,be,...ft]}case"left":{const jt=[xe+t+1,K?Se+t/2:U?Se+t*4:Se-t*4],be=[xe+t+1,K?Se-t/2:U?Se+t*4:Se-t*4];return[...[[U||K?N.right-t:N.left,N.top],[U?K?N.right-t:N.left:N.right-t,N.bottom]],jt,be]}case"right":{const jt=[xe-t,K?Se+t/2:U?Se+t*4:Se-t*4],be=[xe-t,K?Se-t/2:U?Se+t*4:Se-t*4],ft=[[U||K?N.left+t:N.right,N.top],[U?K?N.left+t:N.right:N.left+t,N.bottom]];return[jt,be,...ft]}}}if(!rv([_,b],Ne)){if(i&&!O)return S();if(!P&&r){const Ue=u(E.clientX,E.clientY);if(Ue!==null&&Ue<.1)return S()}rv([_,b],we([d,p]))?!i&&r&&(o=window.setTimeout(S,40)):S()}}};return f.__options={blockPointerEvents:n},f}function Ab({children:e,...t}){const[n,r]=e,o=h.useRef(null),[i,a]=h.useState(!1),{context:l,refs:s,floatingStyles:u}=kb({middleware:[x1({element:o}),c1(8),w1()],open:i,onOpenChange:a,placement:"bottom-start"}),f=$b(l,{handleClose:Pb()}),{getReferenceProps:c,getFloatingProps:d}=Rb([f]),p=r.props.children,y=n.props.children;return w.jsxs("span",{...t,children:[w.jsx("span",{className:"twoslash-target",ref:s.setReference,...c(),children:p}),i&&w.jsxs("div",{className:"twoslash-popup-info-hover",ref:s.setFloating,style:u,...d(),children:[w.jsx(Cb,{ref:o,context:l,fill:Gh.background5,height:3,stroke:Gh.border2,strokeWidth:1,width:7}),w.jsx("div",{className:"twoslash-popup-scroll-container",children:y})]})]})}function Ob(e){var n;const t=I(e.className,Zp);return(n=e.className)!=null&&n.includes("twoslash-hover")?w.jsx(Ab,{...e,className:t}):w.jsx("span",{...e,className:I(e.className,Zp)})}var Ib="vocs_CalloutTitle";function Lb({className:e,children:t}){return w.jsx("strong",{className:I(e,Ib),children:t})}var ov="vocs_Strong";function Mb(e){return"data-callout-title"in e&&typeof e.children=="string"?w.jsx(Lb,{...e,className:I(e.className,ov),children:e.children}):w.jsx("strong",{...e,className:I(e.className,ov)})}var jb="vocs_Summary";function Db(e){return w.jsx("summary",{...e,className:I(e.className,jb)})}var Fb="vocs_Table";function zb(e){return w.jsx("table",{...e,className:I(e.className,Fb)})}var Bb="vocs_TableCell";function Ub(e){return w.jsx("td",{...e,className:I(e.className,Bb)})}var Hb="vocs_TableHeader";function Vb(e){return w.jsx("th",{...e,className:I(e.className,Hb)})}var Wb="vocs_TableRow";function Kb(e){return w.jsx("tr",{...e,className:I(e.className,Wb)})}const Yb={a:J_,aside:sS,blockquote:uS,code:dS,details:vS,div:j9,pre:ub,header:H9,figcaption:F9,figure:B9,h1:W0,h2:ly,h3:sy,h4:cy,h5:uy,h6:fy,hr:W9,kd:Rg,li:Z9,ol:e=>w.jsx(Gp,{ordered:!0,...e}),p:K0,section:hb,span:Ob,strong:Mb,summary:Db,table:zb,td:Ub,th:Vb,tr:Kb,ul:e=>w.jsx(Gp,{ordered:!1,...e})};function Gb(){const{pathname:e}=Re(),t=Je(),{ogImageUrl:n}=t;if(!n)return;if(typeof n=="string")return n;const r=h.useMemo(()=>{const o=Object.keys(n).filter(i=>e.startsWith(i));return o[o.length-1]},[n,e]);if(r)return n[r]}function Lu(e){const{children:t,filePath:n,frontmatter:r,lastUpdatedAt:o,path:i}=e,{pathname:a}=Re(),l=h.useRef();return h.useEffect(()=>{l.current=a}),w.jsxs(w.Fragment,{children:[w.jsx(Qb,{frontmatter:r}),typeof window<"u"&&w.jsx(xx,{}),w.jsx(t_,{components:Yb,children:w.jsx(j6,{frontmatter:r,path:i,children:w.jsx(Q0.Provider,{value:{filePath:n,frontmatter:r,lastUpdatedAt:o,previousPath:l.current},children:t})})})]})}function Qb({frontmatter:e}){const t=Je(),n=Gb(),{baseUrl:r,font:o,iconUrl:i,logoUrl:a}=t,l=(e==null?void 0:e.title)??t.title,s=(e==null?void 0:e.description)??t.description,u=t.title&&!l.includes(t.title),f=typeof window<"u"&&window.location.hostname==="localhost";return w.jsxs(Pu,{defaultTitle:t.title,titleTemplate:u?t.titleTemplate:void 0,children:[l&&w.jsx("title",{children:l}),r&&!0&&!f&&w.jsx("base",{href:r}),s!=="undefined"&&w.jsx("meta",{name:"description",content:s}),i&&typeof i=="string"&&w.jsx("link",{rel:"icon",href:i,type:ac(i)}),i&&typeof i!="string"&&w.jsx("link",{rel:"icon",href:i.light,type:ac(i.light)}),i&&typeof i!="string"&&w.jsx("link",{rel:"icon",href:i.dark,type:ac(i.dark),media:"(prefers-color-scheme: dark)"}),w.jsx("meta",{property:"og:type",content:"website"}),w.jsx("meta",{property:"og:title",content:l||t.title}),r&&w.jsx("meta",{property:"og:url",content:r}),s!=="undefined"&&w.jsx("meta",{property:"og:description",content:s}),n&&w.jsx("meta",{property:"og:image",content:n.replace("%logo",`${r||""}${typeof a=="string"?a:(a==null?void 0:a.dark)||""}`).replace("%title",l||"").replace("%description",(s!=="undefined"?s:"")||"")}),(o==null?void 0:o.google)&&w.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(o==null?void 0:o.google)&&w.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:""}),(o==null?void 0:o.google)&&w.jsx("link",{href:`https://fonts.googleapis.com/css2?family=${o.google}:wght@300;400;500&display=swap`,rel:"stylesheet"}),w.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),n&&w.jsx("meta",{property:"twitter:image",content:n.replace("%logo",`${r||""}${typeof a=="string"?a:(a==null?void 0:a.dark)||""}`).replace("%title",l||"").replace("%description",(s!=="undefined"?s:"")||"")})]})}function ac(e){if(e.endsWith(".svg"))return"image/svg+xml";if(e.endsWith(".png"))return"image/png";if(e.endsWith(".jpg"))return"image/jpeg";if(e.endsWith(".ico"))return"image/x-icon";if(e.endsWith(".webp"))return"image/webp"}const Zb=(()=>{const e=Bf.find(({path:t})=>t==="*");return e?{path:e.path,lazy:async()=>{const{frontmatter:t,...n}=await e.lazy();return{...n,element:w.jsx(Lu,{frontmatter:t,path:e.path,children:w.jsx($u,{children:w.jsx(n.default,{})})})}}}:{path:"*",lazy:void 0,element:w.jsx(Lu,{frontmatter:{layout:"minimal"},path:"*",children:w.jsx($u,{children:w.jsx(Kx,{})})})}})(),iv=[...Bf.filter(({path:e})=>e!=="*").map(e=>({path:e.path,lazy:async()=>{const{frontmatter:t,...n}=await e.lazy();return{...n,element:w.jsx(Lu,{filePath:e.filePath,frontmatter:t,lastUpdatedAt:e.lastUpdatedAt,path:e.path,children:w.jsx($u,{children:w.jsx(n.default,{})})})}}})),Zb];async function Xb(e,t){var r;const n=(r=ur(e,window.location,t))==null?void 0:r.filter(o=>o.route.lazy);n&&(n==null?void 0:n.length)>0&&await Promise.all(n.map(async o=>{const i=await o.route.lazy();Object.assign(o.route,{...i,lazy:void 0})}))}function Jb(){const e=document.querySelectorAll('style[data-vocs-temp-style="true"]');for(const t of e)t.remove()}qb();async function qb(){const e=F0().basePath;await Xb(iv,e),Jb();const t=lx(iv,{basename:e});x0(document.getElementById("app"),w.jsx($x,{children:w.jsx(mx,{router:t})}))}export{c9 as $,x9 as C,nn as L,g9 as R,w9 as T,u9 as a,f9 as b,d9 as c,I as d,Je as e,B7 as f,y9 as g,w as j,e_ as u}; diff --git a/assets/polkadot_api-BdReTaME.js b/assets/polkadot_api-BKIqpXQ4.js similarity index 89% rename from assets/polkadot_api-BdReTaME.js rename to assets/polkadot_api-BKIqpXQ4.js index f7505a91..f51efc0e 100644 --- a/assets/polkadot_api-BdReTaME.js +++ b/assets/polkadot_api-BKIqpXQ4.js @@ -1,2 +1,2 @@ -import{u as a,j as t}from"./index-O67QIW1D.js";const i={title:"Polkadot-API",description:"undefined"};function o(n){const e={a:"a",div:"div",h1:"h1",header:"header",p:"p",...a(),...n.components};return t.jsxs(t.Fragment,{children:[t.jsx(e.header,{children:t.jsxs(e.h1,{id:"polkadot-api",children:["Polkadot-API",t.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#polkadot-api",children:t.jsx(e.div,{"data-autolink-icon":!0})})]})}),` +import{u as a,j as t}from"./index-rJOHic4W.js";const i={title:"Polkadot-API",description:"undefined"};function o(n){const e={a:"a",div:"div",h1:"h1",header:"header",p:"p",...a(),...n.components};return t.jsxs(t.Fragment,{children:[t.jsx(e.header,{children:t.jsxs(e.h1,{id:"polkadot-api",children:["Polkadot-API",t.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#polkadot-api",children:t.jsx(e.div,{"data-autolink-icon":!0})})]})}),` `,t.jsx(e.p,{children:"polkadot-api"})]})}function r(n={}){const{wrapper:e}={...a(),...n.components};return e?t.jsx(e,{...n,children:t.jsx(o,{...n})}):o(n)}export{r as default,i as frontmatter}; diff --git a/assets/providers-BIDLrsp-.js b/assets/providers-CwKpKyCj.js similarity index 99% rename from assets/providers-BIDLrsp-.js rename to assets/providers-CwKpKyCj.js index 37ea9cfb..64c1f616 100644 --- a/assets/providers-BIDLrsp-.js +++ b/assets/providers-CwKpKyCj.js @@ -1,4 +1,4 @@ -import{u as l,j as s}from"./index-O67QIW1D.js";const o={title:"Providers",description:"undefined"};function r(i){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",span:"span",ul:"ul",...l(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"providers",children:["Providers",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#providers",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` +import{u as l,j as s}from"./index-rJOHic4W.js";const o={title:"Providers",description:"undefined"};function r(i){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",span:"span",ul:"ul",...l(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"providers",children:["Providers",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#providers",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` `,s.jsxs(e.p,{children:["The entry point of Polkadot-API, ",s.jsx(e.code,{children:"createClient(provider)"})," requires one ",s.jsx(e.code,{children:"JsonRpcProvider"}),", which lets Polkadot-API communicate with a node. It's a function with the following shape:"]}),` `,s.jsx(e.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(e.code,{children:[s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"interface"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" JsonRpcProvider"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),` `,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ("}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:"onMessage"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ("}),s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"message"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" string"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:") "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" void"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:") "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" JsonRpcConnection"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),` diff --git a/assets/signers-WdyFE5Xg.js b/assets/signers-ByG5EHuD.js similarity index 99% rename from assets/signers-WdyFE5Xg.js rename to assets/signers-ByG5EHuD.js index 1d697831..6d040edf 100644 --- a/assets/signers-WdyFE5Xg.js +++ b/assets/signers-ByG5EHuD.js @@ -1,4 +1,4 @@ -import{u as r,j as s}from"./index-O67QIW1D.js";const a={title:"Signers",description:"undefined"};function n(e){const i={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",...r(),...e.components};return s.jsxs(s.Fragment,{children:[s.jsx(i.header,{children:s.jsxs(i.h1,{id:"signers",children:["Signers",s.jsx(i.a,{"aria-hidden":"true",tabIndex:"-1",href:"#signers",children:s.jsx(i.div,{"data-autolink-icon":!0})})]})}),` +import{u as r,j as s}from"./index-rJOHic4W.js";const a={title:"Signers",description:"undefined"};function n(e){const i={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",...r(),...e.components};return s.jsxs(s.Fragment,{children:[s.jsx(i.header,{children:s.jsxs(i.h1,{id:"signers",children:["Signers",s.jsx(i.a,{"aria-hidden":"true",tabIndex:"-1",href:"#signers",children:s.jsx(i.div,{"data-autolink-icon":!0})})]})}),` `,s.jsx(i.p,{children:"For transactions, the generated descriptors and its corresponding typed API are needed to create the transaction extrinsics, but for these transactions to be signed, we also need a signer, which is the responsible of taking it the call data and signing it."}),` `,s.jsx(i.p,{children:"Every method on Polkadot-API that needs to sign something, takes in a signer with the following interface:"}),` `,s.jsx(i.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(i.code,{children:[s.jsxs(i.span,{className:"line",children:[s.jsx(i.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"interface"}),s.jsx(i.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" PolkadotSigner"}),s.jsx(i.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),` diff --git a/assets/types-C0RxJ6XT.js b/assets/types-B4mGaoaZ.js similarity index 99% rename from assets/types-C0RxJ6XT.js rename to assets/types-B4mGaoaZ.js index 14b0ecf7..7e38e15b 100644 --- a/assets/types-C0RxJ6XT.js +++ b/assets/types-B4mGaoaZ.js @@ -1,4 +1,4 @@ -import{u as n,j as s}from"./index-O67QIW1D.js";const a={title:"Types",description:"undefined"};function l(i){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",...n(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"types",children:["Types",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#types",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` +import{u as n,j as s}from"./index-rJOHic4W.js";const a={title:"Types",description:"undefined"};function l(i){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",...n(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"types",children:["Types",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#types",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` `,s.jsx(e.p,{children:"All the types defined in the metadata of a chain are anonymous: They represent the structure of the data, down to the primitive types."}),` `,s.jsx(e.p,{children:"Polkadot-API has some types defined that make it easier working with chain data."}),` `,s.jsxs(e.h2,{id:"ss58string",children:["SS58String",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#ss58string",children:s.jsx(e.div,{"data-autolink-icon":!0})})]}),` diff --git a/codegen/index.html b/codegen/index.html index 8cc9c2a8..0560e48d 100644 --- a/codegen/index.html +++ b/codegen/index.html @@ -12,7 +12,7 @@ - + diff --git a/examples/example/index.html b/examples/example/index.html index 8cc9c2a8..0560e48d 100644 --- a/examples/example/index.html +++ b/examples/example/index.html @@ -12,7 +12,7 @@ - + diff --git a/getting-started/index.html b/getting-started/index.html index 8cc9c2a8..0560e48d 100644 --- a/getting-started/index.html +++ b/getting-started/index.html @@ -12,7 +12,7 @@ - + diff --git a/index.html b/index.html index 8cc9c2a8..0560e48d 100644 --- a/index.html +++ b/index.html @@ -12,7 +12,7 @@ - + diff --git a/providers/index.html b/providers/index.html index 8cc9c2a8..0560e48d 100644 --- a/providers/index.html +++ b/providers/index.html @@ -12,7 +12,7 @@ - + diff --git a/signers/index.html b/signers/index.html index 8cc9c2a8..0560e48d 100644 --- a/signers/index.html +++ b/signers/index.html @@ -12,7 +12,7 @@ - + diff --git a/types/index.html b/types/index.html index 8cc9c2a8..0560e48d 100644 --- a/types/index.html +++ b/types/index.html @@ -12,7 +12,7 @@ - +