From ccc153459a66f79cdc57dccbed3c3f407f726da3 Mon Sep 17 00:00:00 2001 From: Github Deployment Date: Wed, 10 Apr 2024 08:12:50 +0000 Subject: [PATCH] deploy latest main --- api/papee/index.html | 2 +- ...odegen-0upoFArx.js => codegen-Bh5eoQDz.js} | 2 +- ...xample-CNmpC2Im.js => example-CNsmIRzd.js} | 2 +- ...Ql8xbZh.js => getting-started-DcUe33g8.js} | 2 +- .../{index-1iYsOfm9.js => index-CM6mkaqy.js} | 18 +++++------ .../{index-CfsVT3Xj.js => index-IzcaZyYV.js} | 2 +- .../{papee-BKXhDthB.js => papee-CMy-8tBd.js} | 2 +- ...ders-BtaotMKj.js => providers-BKYES1bh.js} | 2 +- ...igners-UAUMqQPV.js => signers-Cfud28Tt.js} | 2 +- .../{types-CyrJcgNJ.js => types-DUI4UvkS.js} | 31 +++++++++++++++++-- codegen/index.html | 2 +- examples/example/index.html | 2 +- getting-started/index.html | 2 +- index.html | 2 +- providers/index.html | 2 +- signers/index.html | 2 +- types/index.html | 2 +- 17 files changed, 52 insertions(+), 27 deletions(-) rename assets/{codegen-0upoFArx.js => codegen-Bh5eoQDz.js} (99%) rename assets/{example-CNmpC2Im.js => example-CNsmIRzd.js} (89%) rename assets/{getting-started-CQl8xbZh.js => getting-started-DcUe33g8.js} (99%) rename assets/{index-1iYsOfm9.js => index-CM6mkaqy.js} (96%) rename assets/{index-CfsVT3Xj.js => index-IzcaZyYV.js} (98%) rename assets/{papee-BKXhDthB.js => papee-CMy-8tBd.js} (89%) rename assets/{providers-BtaotMKj.js => providers-BKYES1bh.js} (89%) rename assets/{signers-UAUMqQPV.js => signers-Cfud28Tt.js} (89%) rename assets/{types-CyrJcgNJ.js => types-DUI4UvkS.js} (73%) diff --git a/api/papee/index.html b/api/papee/index.html index df48980f..6bc39ab6 100644 --- a/api/papee/index.html +++ b/api/papee/index.html @@ -12,7 +12,7 @@ - + diff --git a/assets/codegen-0upoFArx.js b/assets/codegen-Bh5eoQDz.js similarity index 99% rename from assets/codegen-0upoFArx.js rename to assets/codegen-Bh5eoQDz.js index b01a0057..f4189302 100644 --- a/assets/codegen-0upoFArx.js +++ b/assets/codegen-Bh5eoQDz.js @@ -1,4 +1,4 @@ -import{u as l,j as s}from"./index-1iYsOfm9.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-CM6mkaqy.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-CNmpC2Im.js b/assets/example-CNsmIRzd.js similarity index 89% rename from assets/example-CNmpC2Im.js rename to assets/example-CNsmIRzd.js index 85109e03..06e1bbdd 100644 --- a/assets/example-CNmpC2Im.js +++ b/assets/example-CNsmIRzd.js @@ -1,2 +1,2 @@ -import{u as r,j as e}from"./index-1iYsOfm9.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-CM6mkaqy.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-CQl8xbZh.js b/assets/getting-started-DcUe33g8.js similarity index 99% rename from assets/getting-started-CQl8xbZh.js rename to assets/getting-started-DcUe33g8.js index af7476a3..2d30d039 100644 --- a/assets/getting-started-CQl8xbZh.js +++ b/assets/getting-started-DcUe33g8.js @@ -1,4 +1,4 @@ -import{j as s,$ as h,a as t,b as k,c as p,u as d}from"./index-1iYsOfm9.js";const n=({options:i,children:e})=>s.jsxs(h,{className:"Tabs__root border rounded bg-[--vocs-color_codeBlockBackground] border-[--vocs-color_codeInlineBorder]",defaultValue:Object.keys(i)[0],children:[s.jsx(t,{className:"Tabs__list flex flex-wrap px-2 bg-[--vocs-color_codeTitleBackground]",children:Object.entries(i).map(([r,o])=>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:o},r))}),e]}),l=i=>s.jsx(p,{...i}),x=Object.freeze(Object.defineProperty({__proto__:null,Content:l,Root:n},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",...d(),...i.components};return x||a("Tabs",!1),l||a("Tabs.Content",!0),n||a("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 h,a as t,b as k,c as p,u as d}from"./index-CM6mkaqy.js";const n=({options:i,children:e})=>s.jsxs(h,{className:"Tabs__root border rounded bg-[--vocs-color_codeBlockBackground] border-[--vocs-color_codeInlineBorder]",defaultValue:Object.keys(i)[0],children:[s.jsx(t,{className:"Tabs__list flex flex-wrap px-2 bg-[--vocs-color_codeTitleBackground]",children:Object.entries(i).map(([r,o])=>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:o},r))}),e]}),l=i=>s.jsx(p,{...i}),x=Object.freeze(Object.defineProperty({__proto__:null,Content:l,Root:n},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",...d(),...i.components};return x||a("Tabs",!1),l||a("Tabs.Content",!0),n||a("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.jsx(e.p,{children:"Start by installing papee and a JSON RPC provider of your choice."}),` `,s.jsxs(n,{options:{web:"WebSocket",sc:"@substrate/connect",sm:"Smoldot"},children:[s.jsx(l,{value:"web",children: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:" papee"})]})})})}),s.jsx(l,{value:"sc",children: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:" papee"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" @substrate/connect"})]})})})}),s.jsx(l,{value:"sm",children: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:" papee"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" smoldot"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" @substrate/connect-known-chains"})]})})})})]}),` `,s.jsx(e.aside,{"data-callout":"warning",children:s.jsxs(e.p,{children:[s.jsx(e.code,{children:"papee"})," is a tentative package name while it's in beta. The package name might change, but the API is expected to be fairly stable."]})}),` diff --git a/assets/index-1iYsOfm9.js b/assets/index-CM6mkaqy.js similarity index 96% rename from assets/index-1iYsOfm9.js rename to assets/index-CM6mkaqy.js index adf521dc..29e9ddb4 100644 --- a/assets/index-1iYsOfm9.js +++ b/assets/index-CM6mkaqy.js @@ -34,10 +34,10 @@ function Du(e,t){for(var n=0;nl||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{us=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Xo(e):""}function Zy(e){switch(e.tag){case 5:return Xo(e.type);case 16:return Xo("Lazy");case 13:return Xo("Suspense");case 19:return Xo("SuspenseList");case 0:case 2:case 15:return e=fs(e.type,!1),e;case 11:return e=fs(e.type.render,!1),e;case 1:return e=fs(e.type,!0),e;default:return""}}function hc(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 uc:return"Profiler";case Ku:return"StrictMode";case fc:return"Suspense";case dc: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 Yu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gu:return t=e.displayName||null,t!==null?t:hc(e.type)||"Memo";case An:t=e._payload,e=e._init;try{return hc(e(t))}catch{}}return null}function Xy(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 hc(t);case 8:return t===Ku?"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 Jy(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=Jy(e))}function _v(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 pc(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 bv(e,t){t=t.checked,t!=null&&Wu(e,"checked",t,!1)}function vc(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")?mc(e,t.type,n):t.hasOwnProperty("defaultValue")&&mc(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 mc(e,t,n){(t!=="number"||Ka(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Jo=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 hi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ni={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},qy=["Webkit","ms","Moz","O"];Object.keys(ni).forEach(function(e){qy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ni[t]=ni[e]})});function Rv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ni.hasOwnProperty(e)&&ni[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 e2=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 wc(e,t){if(t){if(e2[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 xc(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 Cc=null;function Qu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ec=null,no=null,ro=null;function Nd(e){if(e=zi(e)){if(typeof Ec!="function")throw Error(M(280));var t=e.stateNode;t&&(t=Pl(t),Ec(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,Nd(e),t)for(e=0;e>>=0,e===0?32:31-(f2(e)/d2|0)|0}var na=64,ra=4194304;function qo(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=qo(l):(i&=a,i!==0&&(r=qo(i)))}else a=n&~o,a!==0?r=qo(a):i!==0&&(r=qo(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 m2(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=oi),Fd=" ",zd=!1;function Jv(e,t){switch(e){case"keyup":return V2.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 K2(e,t){switch(e){case"compositionend":return qv(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 Y2(e,t){if(Hr)return e==="compositionend"||!rf&&Jv(e,t)?(e=Zv(),Pa=ef=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 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 of(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 nw(e){var t=om(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&rm(n.ownerDocument.documentElement,n)){if(r!==null&&of(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,kc=null,ai=null,Rc=!1;function Kd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rc||Vr==null||Vr!==Ka(r)||(r=Vr,"selectionStart"in r&&of(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}),ai&&wi(ai,r)||(ai=r,r=qa(kc,"onSelect"),0Yr||(e.current=Lc[Yr],Lc[Yr]=null,Yr--)}function ve(e,t){Yr++,Lc[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 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,Xy(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=hm(e,t,mr),r.__reactInternalMemoizedMergedChildContext=e,ge(mt),ge(rt),ve(rt,e)):ge(mt),ve(mt,n)}var sn=null,Al=!1,bs=!1;function pm(e){sn===null?sn=[e]:sn.push(e)}function pw(e){Al=!0,pm(e)}function tr(){if(!bs&&sn!==null){bs=!0;var e=0,t=ue;try{var n=sn;for(ue=1;e>=a,o-=a,cn=1<<32-Wt(t)+o|n<$?(k=b,b=null):k=b.sibling;var P=d(v,b,x[$],E);if(P===null){b===null&&(b=k);break}e&&b&&P.alternate===null&&t(v,b),m=i(P,m,$),S===null?_=P:S.sibling=P,S=P,b=k}if($===x.length)return n(v,b),Se&&ir(v,$),_;if(b===null){for(;$$?(k=b,b=null):k=b.sibling;var j=d(v,b,P.value,E);if(j===null){b===null&&(b=k);break}e&&b&&j.alternate===null&&t(v,b),m=i(j,m,$),S===null?_=j:S.sibling=j,S=j,b=k}if(P.done)return n(v,b),Se&&ir(v,$),_;if(b===null){for(;!P.done;$++,P=x.next())P=u(v,P.value,E),P!==null&&(m=i(P,m,$),S===null?_=P:S.sibling=P,S=P);return Se&&ir(v,$),_}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,$),S===null?_=P:S.sibling=P,S=P);return e&&b.forEach(function(L){return t(v,L)}),Se&&ir(v,$),_}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 _=x.key,S=m;S!==null;){if(S.key===_){if(_=x.type,_===Ur){if(S.tag===7){n(v,S.sibling),m=o(S,x.props.children),m.return=v,v=m;break e}}else if(S.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===An&&lh(_)===S.type){n(v,S.sibling),m=o(S,x.props),m.ref=Fo(v,S,x),m.return=v,v=m;break e}n(v,S);break}else t(v,S);S=S.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=Fo(v,m,x),E.return=v,v=E)}return a(v);case Br:e:{for(S=x.key;m!==null;){if(m.key===S)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=Os(x,v.mode,E),m.return=v,v=m}return a(v);case An:return S=x._init,C(v,m,S(x._payload),E)}if(Jo(x))return y(v,m,x,E);if(Io(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=As(x,v.mode,E),m.return=v,v=m),a(v)):n(v,m)}return C}var po=Em(!0),Sm=Em(!1),Bi={},tn=er(Bi),Si=er(Bi),_i=er(Bi);function cr(e){if(e===Bi)throw Error(M(174));return e}function pf(e,t){switch(ve(_i,t),ve(Si,e),ve(tn,Bi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:yc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=yc(t,e)}ge(tn),ve(tn,t)}function vo(){ge(tn),ge(Si),ge(_i)}function _m(e){cr(_i.current);var t=cr(tn.current),n=yc(t,e.type);t!==n&&(ve(Si,e),ve(tn,n))}function vf(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 $s=[];function mf(){for(var e=0;e<$s.length;e++)$s[e]._workInProgressVersionPrimary=null;$s.length=0}var Ia=xn.ReactCurrentDispatcher,Ts=xn.ReactCurrentBatchConfig,yr=0,Te=null,De=null,We=null,cl=!1,li=!1,bi=0,mw=0;function qe(){throw Error(M(321))}function gf(e,t){if(t===null)return!1;for(var n=0;nn?n:4,e(!0);var r=Ts.transition;Ts.transition={};try{e(!1),t()}finally{ue=n,Ts.transition=r}}function zm(){return Lt().memoizedState}function yw(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 ww(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,df(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){li=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,Xu(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},xw={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,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=yw.bind(null,Te,e),[r.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:sh,useDebugValue:Cf,useDeferredValue:function(e){return Xt().memoizedState=e},useTransition:function(){var e=sh(!1),t=e[0];return e=gw.bind(null,e[1]),Xt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Te,o=Xt();if(Se){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,ch(Rm.bind(null,r,i,e),[e]),r.flags|=2048,Ti(9,km.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Xt(),t=Ke.identifierPrefix;if(Se){var n=un,r=cn;n=(r&~(1<<32-Wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=bi++,0")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{us=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Xo(e):""}function Zy(e){switch(e.tag){case 5:return Xo(e.type);case 16:return Xo("Lazy");case 13:return Xo("Suspense");case 19:return Xo("SuspenseList");case 0:case 2:case 15:return e=fs(e.type,!1),e;case 11:return e=fs(e.type.render,!1),e;case 1:return e=fs(e.type,!0),e;default:return""}}function hc(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 uc:return"Profiler";case Ku:return"StrictMode";case fc:return"Suspense";case dc: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 Yu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gu:return t=e.displayName||null,t!==null?t:hc(e.type)||"Memo";case An:t=e._payload,e=e._init;try{return hc(e(t))}catch{}}return null}function Xy(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 hc(t);case 8:return t===Ku?"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 Jy(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=Jy(e))}function _v(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 pc(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 bv(e,t){t=t.checked,t!=null&&Wu(e,"checked",t,!1)}function vc(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")?mc(e,t.type,n):t.hasOwnProperty("defaultValue")&&mc(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 mc(e,t,n){(t!=="number"||Ka(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Jo=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 hi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ni={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},qy=["Webkit","ms","Moz","O"];Object.keys(ni).forEach(function(e){qy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ni[t]=ni[e]})});function Rv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ni.hasOwnProperty(e)&&ni[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 e2=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 wc(e,t){if(t){if(e2[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 xc(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 Cc=null;function Qu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ec=null,no=null,ro=null;function Nd(e){if(e=zi(e)){if(typeof Ec!="function")throw Error(M(280));var t=e.stateNode;t&&(t=Pl(t),Ec(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,Nd(e),t)for(e=0;e>>=0,e===0?32:31-(f2(e)/d2|0)|0}var na=64,ra=4194304;function qo(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=qo(l):(i&=a,i!==0&&(r=qo(i)))}else a=n&~o,a!==0?r=qo(a):i!==0&&(r=qo(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 m2(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=oi),Fd=" ",zd=!1;function Jv(e,t){switch(e){case"keyup":return V2.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 K2(e,t){switch(e){case"compositionend":return qv(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 Y2(e,t){if(Hr)return e==="compositionend"||!rf&&Jv(e,t)?(e=Zv(),Pa=ef=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 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 of(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 n3(e){var t=om(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&rm(n.ownerDocument.documentElement,n)){if(r!==null&&of(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,kc=null,ai=null,Rc=!1;function Kd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rc||Vr==null||Vr!==Ka(r)||(r=Vr,"selectionStart"in r&&of(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}),ai&&wi(ai,r)||(ai=r,r=qa(kc,"onSelect"),0Yr||(e.current=Lc[Yr],Lc[Yr]=null,Yr--)}function ve(e,t){Yr++,Lc[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 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,Xy(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=hm(e,t,mr),r.__reactInternalMemoizedMergedChildContext=e,ge(mt),ge(rt),ve(rt,e)):ge(mt),ve(mt,n)}var sn=null,Al=!1,bs=!1;function pm(e){sn===null?sn=[e]:sn.push(e)}function p3(e){Al=!0,pm(e)}function tr(){if(!bs&&sn!==null){bs=!0;var e=0,t=ue;try{var n=sn;for(ue=1;e>=a,o-=a,cn=1<<32-Wt(t)+o|n<$?(k=b,b=null):k=b.sibling;var P=d(v,b,x[$],E);if(P===null){b===null&&(b=k);break}e&&b&&P.alternate===null&&t(v,b),m=i(P,m,$),S===null?_=P:S.sibling=P,S=P,b=k}if($===x.length)return n(v,b),Se&&ir(v,$),_;if(b===null){for(;$$?(k=b,b=null):k=b.sibling;var j=d(v,b,P.value,E);if(j===null){b===null&&(b=k);break}e&&b&&j.alternate===null&&t(v,b),m=i(j,m,$),S===null?_=j:S.sibling=j,S=j,b=k}if(P.done)return n(v,b),Se&&ir(v,$),_;if(b===null){for(;!P.done;$++,P=x.next())P=u(v,P.value,E),P!==null&&(m=i(P,m,$),S===null?_=P:S.sibling=P,S=P);return Se&&ir(v,$),_}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,$),S===null?_=P:S.sibling=P,S=P);return e&&b.forEach(function(L){return t(v,L)}),Se&&ir(v,$),_}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 _=x.key,S=m;S!==null;){if(S.key===_){if(_=x.type,_===Ur){if(S.tag===7){n(v,S.sibling),m=o(S,x.props.children),m.return=v,v=m;break e}}else if(S.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===An&&lh(_)===S.type){n(v,S.sibling),m=o(S,x.props),m.ref=Fo(v,S,x),m.return=v,v=m;break e}n(v,S);break}else t(v,S);S=S.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=Fo(v,m,x),E.return=v,v=E)}return a(v);case Br:e:{for(S=x.key;m!==null;){if(m.key===S)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=Os(x,v.mode,E),m.return=v,v=m}return a(v);case An:return S=x._init,C(v,m,S(x._payload),E)}if(Jo(x))return y(v,m,x,E);if(Io(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=As(x,v.mode,E),m.return=v,v=m),a(v)):n(v,m)}return C}var po=Em(!0),Sm=Em(!1),Bi={},tn=er(Bi),Si=er(Bi),_i=er(Bi);function cr(e){if(e===Bi)throw Error(M(174));return e}function pf(e,t){switch(ve(_i,t),ve(Si,e),ve(tn,Bi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:yc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=yc(t,e)}ge(tn),ve(tn,t)}function vo(){ge(tn),ge(Si),ge(_i)}function _m(e){cr(_i.current);var t=cr(tn.current),n=yc(t,e.type);t!==n&&(ve(Si,e),ve(tn,n))}function vf(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 $s=[];function mf(){for(var e=0;e<$s.length;e++)$s[e]._workInProgressVersionPrimary=null;$s.length=0}var Ia=xn.ReactCurrentDispatcher,Ts=xn.ReactCurrentBatchConfig,yr=0,Te=null,De=null,We=null,cl=!1,li=!1,bi=0,m3=0;function qe(){throw Error(M(321))}function gf(e,t){if(t===null)return!1;for(var n=0;nn?n:4,e(!0);var r=Ts.transition;Ts.transition={};try{e(!1),t()}finally{ue=n,Ts.transition=r}}function zm(){return Lt().memoizedState}function y3(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 w3(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,df(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){li=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,Xu(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},x3={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,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=y3.bind(null,Te,e),[r.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:sh,useDebugValue:Cf,useDeferredValue:function(e){return Xt().memoizedState=e},useTransition:function(){var e=sh(!1),t=e[0];return e=g3.bind(null,e[1]),Xt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Te,o=Xt();if(Se){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,ch(Rm.bind(null,r,i,e),[e]),r.flags|=2048,Ti(9,km.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Xt(),t=Ke.identifierPrefix;if(Se){var n=un,r=cn;n=(r&~(1<<32-Wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=bi++,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[Ei]=r,Jm(e,t,!1,!1),t.stateNode=e;e:{switch(a=xc(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,zo(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),zo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Se)return et(t),null}else 2*Me()-i.renderingStartTime>go&&n!==1073741824&&(t.flags|=128,r=!0,zo(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 Tf(),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 kw(e,t){switch(lf(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),mf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vf(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 ff(t.type._context),null;case 22:case 23:return Tf(),null;case 24:return null;default:return null}}var da=!1,tt=!1,Rw=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 Yc(e,t,n){try{n()}catch(r){Ae(e,t,r)}}var yh=!1;function Nw(e,t){if(Nc=Xa,e=om(),of(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,c=0,f=0,u=e,d=null;t:for(;;){for(var p;u!==n||o!==0&&u.nodeType!==3||(l=a+o),u!==i||r!==0&&u.nodeType!==3||(s=a+r),u.nodeType===3&&(a+=u.nodeValue.length),(p=u.firstChild)!==null;)d=u,u=p;for(;;){if(u===e)break t;if(d===n&&++c===o&&(l=a),d===i&&++f===r&&(s=a),(p=u.nextSibling)!==null)break;u=d,d=u.parentNode}u=p}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pc={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 si(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&&Yc(t,n,i)}o=o.next}while(o!==r)}}function Ll(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 Gc(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[Ei],delete t[Ic],delete t[dw],delete t[hw])),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 wh(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 Qc(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(Qc(e,t,n),e=e.sibling;e!==null;)Qc(e,t,n),e=e.sibling}function Zc(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(Zc(e,t,n),e=e.sibling;e!==null;)Zc(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(Tl,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),gi(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)&&Yc(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 Rw),t.forEach(function(r){var o=Fw.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*Aw(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()-bf?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 Dw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),f0(e,n)}function Fw(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,$w(e,t,n);vt=!!(e.flags&131072)}else vt=!1,Se&&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=yf(null,t,r,e,o,n);var i=wf();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,hf(t),o.updater=Ol,t.stateNode=o,o._reactInternals=t,zc(t,r,e,n),t=Hc(null,t,r,!0,i,n)):(t.tag=0,Se&&i&&af(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=Bw(r),e=Ft(r,e),o){case 0:t=Uc(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),Uc(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(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=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(St=Bn(t.stateNode.containerInfo.firstChild),_t=t,Se=!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 _m(t),e===null&&jc(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Ac(r,o)?a=null:i!==null&&Ac(r,i)&&(t.flags|=32),Gm(e,t),it(e,t,a,n),t.child;case 6:return e===null&&jc(t),null;case 13:return Zm(e,t,n);case 4:return pf(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 c=i.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?s.next=s:(s.next=f.next,f.next=s),c.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Dc(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),Dc(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 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),zc(t,r,o,n),Hc(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 zw(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 zw(e,t,n,r)}function Rf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bw(e){if(typeof e=="function")return Rf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Yu)return 11;if(e===Gu)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")Rf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ur:return pr(n.children,o,i,t);case Ku:a=8,o|=8;break;case uc:return e=At(12,n,t,o|2),e.elementType=uc,e.lanes=i,e;case fc:return e=At(13,n,t,o),e.elementType=fc,e.lanes=i,e;case dc:return e=At(19,n,t,o),e.elementType=dc,e.lanes=i,e;case Ev:return jl(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 Yu:a=11;break e;case Gu: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 jl(e,t,n,r){return e=At(22,e,r,t),e.elementType=Ev,e.lanes=n,e.stateNode={isHidden:!1},e}function As(e,t,n){return e=At(6,e,null,t),e.lanes=n,e}function Os(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 Uw(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=hs(0),this.expirationTimes=hs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hs(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Nf(e,t,n,r,o,i,a,l,s){return e=new Uw(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},hf(i),e}function Hw(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 $o=vv.exports;const y0=Jn($o),Gw=Du({__proto__:null,default:y0},[$o]);var w0,kh=$o;kh.createRoot,w0=kh.hydrateRoot;/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Ns(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Bc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var S3=typeof WeakMap=="function"?WeakMap:Map;function Vm(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,Xc=r),Bc(e,t)},n}function Wm(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(){Bc(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Bc(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=j3.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 _3=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=yf(e,t,n,r,i,o),n=wf(),e!==null&&!vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,mn(e,t,o)):(Se&&n&&af(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"&&!Rf(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Km(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:wi,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 Km(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(wi(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 Uc(e,t,n,r,o)}function Ym(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 Gm(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Uc(e,t,n,r,o){var i=gt(n)?mr:rt.current;return i=fo(t,i),io(t,o),n=yf(e,t,n,r,i,o),r=wf(),e!==null&&!vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,mn(e,t,o)):(Se&&r&&af(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),Cm(t,n,r),zc(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=It(c):(c=gt(n)?mr:rt.current,c=fo(t,c));var f=n.getDerivedStateFromProps,u=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";u||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||s!==c)&&ah(t,a,r,c),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"&&(Fc(t,n,f,r),s=t.memoizedState),(l=On||ih(t,n,l,r,d,s,c))?(u||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=c,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,wm(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Ft(t.type,l),a.props=c,u=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!==u||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!==u||d!==y||mt.current||On?(typeof p=="function"&&(Fc(t,n,p,r),y=t.memoizedState),(c=On||ih(t,n,c,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=c):(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 Hc(e,t,n,r,i,o)}function Hc(e,t,n,r,o,i){Gm(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&eh(t,n,!1),mn(e,t,i);r=t.stateNode,_3.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 Qm(e){var t=e.stateNode;t.pendingContext?qd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&qd(e,t.context,!1),pf(e,t.containerInfo)}function mh(e,t,n,r,o){return ho(),sf(o),t.flags|=256,it(e,t,n,r),t.child}var Vc={dehydrated:null,treeContext:null,retryLane:0};function Wc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Zm(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 jc(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=jl(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=Wc(n),t.memoizedState=Vc,e):Ef(t,a));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return b3(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?Wc(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=Vc,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 Ef(e,t){return t=jl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function fa(e,t,n,r){return r!==null&&sf(r),po(t,e.child,null,n),e=Ef(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function b3(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=Ns(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=jl({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=Wc(a),t.memoizedState=Vc,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=Ns(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 kf(),r=Ns(Error(M(421))),fa(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=D3.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,St=Bn(o.nextSibling),_t=t,Se=!0,Ut=null,e!==null&&(Nt[Pt++]=cn,Nt[Pt++]=un,Nt[Pt++]=gr,cn=e.id,un=e.overflow,gr=t),t=Ef(t,r.children),t.flags|=4096,t)}function gh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Dc(e.return,t,n)}function Ps(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 Xm(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),Ps(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}Ps(t,!0,n,null,i);break;case"together":Ps(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 $3(e,t,n){switch(t.tag){case 3:Qm(t),ho();break;case 5:_m(t);break;case 1:gt(t.type)&&nl(t);break;case 4:pf(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?Zm(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 Xm(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,Ym(e,t,n)}return mn(e,t,n)}var Jm,Kc,qm,e0;Jm=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}};Kc=function(){};qm=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=pc(e,o),r=pc(e,r),i=[];break;case"select":o=ke({},o,{value:void 0}),r=ke({},r,{value:void 0}),i=[];break;case"textarea":o=gc(e,o),r=gc(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=el)}wc(n,r);var a;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var l=o[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(di.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var s=r[c];if(l=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&s!==l&&(s!=null||l!=null))if(c==="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(c,n)),n=s;else c==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(i=i||[]).push(c,s)):c==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(c,""+s):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(di.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&me("scroll",e),i||l===s||(i=[])):(i=i||[]).push(c,s))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};e0=function(e,t,n,r){n!==r&&(t.flags|=4)};function zo(e,t){if(!Se)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 T3(e,t,n){var r=t.pendingProps;switch(lf(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),mf(),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&&(eu(Ut),Ut=null))),Kc(e,t),et(t),null;case 5:vf(t);var o=cr(_i.current);if(n=t.type,e!==null&&t.stateNode!=null)qm(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[Ei]=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[Ei]=r,Jm(e,t,!1,!1),t.stateNode=e;e:{switch(a=xc(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,zo(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),zo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Se)return et(t),null}else 2*Me()-i.renderingStartTime>go&&n!==1073741824&&(t.flags|=128,r=!0,zo(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 Tf(),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 k3(e,t){switch(lf(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),mf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vf(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 ff(t.type._context),null;case 22:case 23:return Tf(),null;case 24:return null;default:return null}}var da=!1,tt=!1,R3=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 Yc(e,t,n){try{n()}catch(r){Ae(e,t,r)}}var yh=!1;function N3(e,t){if(Nc=Xa,e=om(),of(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,c=0,f=0,u=e,d=null;t:for(;;){for(var p;u!==n||o!==0&&u.nodeType!==3||(l=a+o),u!==i||r!==0&&u.nodeType!==3||(s=a+r),u.nodeType===3&&(a+=u.nodeValue.length),(p=u.firstChild)!==null;)d=u,u=p;for(;;){if(u===e)break t;if(d===n&&++c===o&&(l=a),d===i&&++f===r&&(s=a),(p=u.nextSibling)!==null)break;u=d,d=u.parentNode}u=p}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pc={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 si(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&&Yc(t,n,i)}o=o.next}while(o!==r)}}function Ll(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 Gc(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[Ei],delete t[Ic],delete t[d3],delete t[h3])),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 wh(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 Qc(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(Qc(e,t,n),e=e.sibling;e!==null;)Qc(e,t,n),e=e.sibling}function Zc(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(Zc(e,t,n),e=e.sibling;e!==null;)Zc(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(Tl,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),gi(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)&&Yc(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 R3),t.forEach(function(r){var o=F3.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*A3(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()-bf?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 D3(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),f0(e,n)}function F3(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,$3(e,t,n);vt=!!(e.flags&131072)}else vt=!1,Se&&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=yf(null,t,r,e,o,n);var i=wf();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,hf(t),o.updater=Ol,t.stateNode=o,o._reactInternals=t,zc(t,r,e,n),t=Hc(null,t,r,!0,i,n)):(t.tag=0,Se&&i&&af(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=B3(r),e=Ft(r,e),o){case 0:t=Uc(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),Uc(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(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=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(St=Bn(t.stateNode.containerInfo.firstChild),_t=t,Se=!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 _m(t),e===null&&jc(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Ac(r,o)?a=null:i!==null&&Ac(r,i)&&(t.flags|=32),Gm(e,t),it(e,t,a,n),t.child;case 6:return e===null&&jc(t),null;case 13:return Zm(e,t,n);case 4:return pf(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 c=i.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?s.next=s:(s.next=f.next,f.next=s),c.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Dc(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),Dc(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 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),zc(t,r,o,n),Hc(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 z3(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 z3(e,t,n,r)}function Rf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function B3(e){if(typeof e=="function")return Rf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Yu)return 11;if(e===Gu)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")Rf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ur:return pr(n.children,o,i,t);case Ku:a=8,o|=8;break;case uc:return e=At(12,n,t,o|2),e.elementType=uc,e.lanes=i,e;case fc:return e=At(13,n,t,o),e.elementType=fc,e.lanes=i,e;case dc:return e=At(19,n,t,o),e.elementType=dc,e.lanes=i,e;case Ev:return jl(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 Yu:a=11;break e;case Gu: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 jl(e,t,n,r){return e=At(22,e,r,t),e.elementType=Ev,e.lanes=n,e.stateNode={isHidden:!1},e}function As(e,t,n){return e=At(6,e,null,t),e.lanes=n,e}function Os(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 U3(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=hs(0),this.expirationTimes=hs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hs(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Nf(e,t,n,r,o,i,a,l,s){return e=new U3(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},hf(i),e}function H3(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 $o=vv.exports;const y0=Jn($o),G3=Du({__proto__:null,default:y0},[$o]);var w0,kh=$o;kh.createRoot,w0=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 Zw(){return Math.random().toString(36).substr(2,8)}function Nh(e,t){return{usr:e.state,key:e.key,idx:t}}function Ri(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||Zw()})}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 Xw(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,c=f();c==null&&(c=0,a.replaceState(Oe({},a.state,{idx:c}),""));function f(){return(a.state||{idx:null}).idx}function u(){l=Ie.Pop;let C=f(),v=C==null?null:C-c;c=C,s&&s({action:l,location:g.location,delta:v})}function d(C,v){l=Ie.Push;let m=Ri(g.location,C,v);n&&n(m,C),c=f()+1;let x=Nh(m,c),E=g.createHref(m);try{a.pushState(x,"",E)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;o.location.assign(E)}i&&s&&s({action:l,location:g.location,delta:1})}function p(C,v){l=Ie.Replace;let m=Ri(g.location,C,v);n&&n(m,C),c=f();let x=Nh(m,c),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,u),s=C,()=>{o.removeEventListener(Rh,u),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 Jw=new Set(["lazy","caseSensitive","path","id","index","children"]);function qw(e){return e.index===!0}function tu(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`),qw(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=tu(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);e3(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 c=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 "'+c+'".')),C0(i.children,t,f,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:l3(c,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 e3(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:s3(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const t3=/^:[\w-]+$/,n3=3,r3=2,o3=1,i3=10,a3=-2,Ph=e=>e==="*";function l3(e,t){let n=e.split("/"),r=n.length;return n.some(Ph)&&(r+=a3),t&&(r+=r3),n.filter(o=>!Ph(o)).reduce((o,i)=>o+(t3.test(i)?n3:i===""?o3:i3),r)}function s3(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 c3(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[u]||"";a=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const y=l[u];return p&&!y?c[d]=void 0:c[d]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function u3(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 f3(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 d3(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:h3(n,t):t,search:v3(r),hash:m3(o)}}function h3(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 Is(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 If(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 Lf(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("?"),Is("?","pathname","search",o)),te(!o.pathname||!o.pathname.includes("#"),Is("#","pathname","hash",o)),te(!o.search||!o.search.includes("#"),Is("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=n;else{let u=t.length-1;if(!r&&a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),u-=1;o.pathname=d.join("/")}l=u>=0?t[u]:"/"}let s=d3(o,l),c=a&&a!=="/"&&a.endsWith("/"),f=(i||a===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(c||f)&&(s.pathname+="/"),s}const dn=e=>e.join("/").replace(/\/\/+/g,"/"),p3=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),v3=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,m3=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Mf{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 _0(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"],g3=new Set(b0),y3=["get",...b0],w3=new Set(y3),x3=new Set([301,302,303,307,308]),C3=new Set([307,308]),Ls={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},E3={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Uo={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},$0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,S3=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),T0="remix-router-transitions";function _3(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 T=e.detectErrorBoundary;o=R=>({hasErrorBoundary:T(R)})}else o=S3;let i={},a=tu(e.routes,o,void 0,i),l,s=e.basename||"/",c=Oe({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),f=null,u=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 T=Rt(404,{pathname:e.history.location.pathname}),{matches:R,route:A}=Fh(a);C=R,v={[A.id]:T}}let m,x=C.some(T=>T.route.lazy),E=C.some(T=>T.route.loader);if(x)m=!1;else if(!E)m=!0;else if(c.v7_partialHydration){let T=e.hydrationData?e.hydrationData.loaderData:null,R=e.hydrationData?e.hydrationData.errors:null,A=B=>B.route.loader?B.route.loader.hydrate===!0?!1:T&&T[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:Ls,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,k,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(T=>{let{action:R,location:A,delta:B}=T;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:S.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(S.blockers);re.set(W,Uo),be({blockers:re})}});return}return wt(R,A)}),n){L3(t,j);let T=()=>M3(t,j);t.addEventListener("pagehide",T),L=()=>t.removeEventListener("pagehide",T)}return S.initialized||wt(Ie.Pop,S.location,{initialHydration:!0}),_}function _e(){f&&f(),L&&L(),u.clear(),k&&k.abort(),S.fetchers.forEach((T,R)=>Gi(R)),S.blockers.forEach((T,R)=>md(R))}function jt(T){return u.add(T),()=>u.delete(T)}function be(T,R){R===void 0&&(R={}),S=Oe({},S,T);let A=[],B=[];c.v7_fetcherPersist&&S.fetchers.forEach((W,re)=>{W.state==="idle"&&(ye.has(re)?B.push(re):A.push(re))}),[...u].forEach(W=>W(S,{deletedFetchers:B,unstable_viewTransitionOpts:R.viewTransitionOpts,unstable_flushSync:R.flushSync===!0})),c.v7_fetcherPersist&&(A.forEach(W=>S.fetchers.delete(W)),B.forEach(W=>Gi(W)))}function ft(T,R,A){var B,W;let{flushSync:re}=A===void 0?{}:A,X=S.actionData!=null&&S.navigation.formMethod!=null&&Bt(S.navigation.formMethod)&&S.navigation.state==="loading"&&((B=T.state)==null?void 0:B._isRedirect)!==!0,Q;R.actionData?Object.keys(R.actionData).length>0?Q=R.actionData:Q=null:X?Q=S.actionData:Q=null;let G=R.loaderData?Dh(S.loaderData,R.loaderData,R.matches||[],R.errors):S.loaderData,ie=S.blockers;ie.size>0&&(ie=new Map(ie),ie.forEach((he,Ye)=>ie.set(Ye,Uo)));let He=$===!0||S.navigation.formMethod!=null&&Bt(S.navigation.formMethod)&&((W=T.state)==null?void 0:W._isRedirect)!==!0;l&&(a=l,l=void 0),D||b===Ie.Pop||(b===Ie.Push?e.history.push(T,T.state):b===Ie.Replace&&e.history.replace(T,T.state));let ee;if(b===Ie.Pop){let he=j.get(S.location.pathname);he&&he.has(T.pathname)?ee={currentLocation:S.location,nextLocation:T}:j.has(T.pathname)&&(ee={currentLocation:T,nextLocation:S.location})}else if(P){let he=j.get(S.location.pathname);he?he.add(T.pathname):(he=new Set([T.pathname]),j.set(S.location.pathname,he)),ee={currentLocation:S.location,nextLocation:T}}be(Oe({},R,{actionData:Q,loaderData:G,historyAction:b,location:T,initialized:!0,navigation:Ls,revalidation:"idle",restoreScrollPosition:wd(T,R.matches||S.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(T,R){if(typeof T=="number"){e.history.go(T);return}let A=nu(S.location,S.matches,s,c.v7_prependBasename,T,c.v7_relativeSplatPath,R==null?void 0:R.fromRouteId,R==null?void 0:R.relative),{path:B,submission:W,error:re}=Ah(c.v7_normalizeFormMethod,!1,A,R),X=S.location,Q=Ri(S.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===S.location.pathname+S.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(T,R)},reset(){let Ye=new Map(S.blockers);Ye.set(he,Uo),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 Jl(){if(rs(),be({revalidation:"loading"}),S.navigation.state!=="submitting"){if(S.navigation.state==="idle"){wt(S.historyAction,S.location,{startUninterruptedRevalidation:!0});return}wt(b||S.historyAction,S.navigation.location,{overrideNavigation:S.navigation})}}async function wt(T,R,A){k&&k.abort(),k=null,b=T,D=(A&&A.startUninterruptedRevalidation)===!0,yy(S.location,S.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);os(),ft(R,{matches:xt,loaderData:{},errors:{[Ve.id]:Ye}},{flushSync:X});return}if(S.initialized&&!N&&R3(S.location,R)&&!(A&&A.submission&&Bt(A.submission.formMethod))){ft(R,{matches:re},{flushSync:X});return}k=new AbortController;let Q=Vo(e.history,R,k.signal,A&&A.submission),G,ie;if(A&&A.pendingError)ie={[fi(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=Ms(R,A.submission),X=!1,Q=new Request(Q.url,{signal:Q.signal})}let{shortCircuited:He,loaderData:ee,errors:he}=await ql(Q,R,re,W,A&&A.submission,A&&A.fetcherSubmission,A&&A.replace,A&&A.initialHydration===!0,X,G,ie);He||(k=null,ft(R,Oe({matches:re},G?{actionData:G}:{},{loaderData:ee,errors:he})))}async function Yi(T,R,A,B,W){W===void 0&&(W={}),rs();let re=O3(R,A);be({navigation:re},{flushSync:W.flushSync===!0});let X,Q=ou(B,R);if(!Q.route.action&&!Q.route.lazy)X={type:Pe.error,error:Rt(405,{method:T.method,pathname:R.pathname,routeId:Q.route.id})};else if(X=await Ho("action",T,Q,B,i,o,s,c.v7_relativeSplatPath),T.signal.aborted)return{shortCircuited:!0};if(dr(X)){let G;return W&&W.replace!=null?G=W.replace:G=X.location===S.location.pathname+S.location.search,await Qt(S,X,{submission:A,replace:G}),{shortCircuited:!0}}if(qr(X)){let G=fi(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 ql(T,R,A,B,W,re,X,Q,G,ie,He){let ee=B||Ms(R,W),he=W||re||Uh(ee),Ye=l||a,[xt,Ve]=Oh(e.history,S,A,he,R,c.v7_partialHydration&&Q===!0,N,z,V,ye,se,J,Ye,s,ie,He);if(os(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(S.fetchers)}:{}),{flushSync:G}),{shortCircuited:!0}}if(!D&&(!c.v7_partialHydration||!Q)){Ve.forEach(de=>{let dt=S.fetchers.get(de.key),Xi=Wo(void 0,dt?dt.data:void 0);S.fetchers.set(de.key,Xi)});let ce=ie||S.actionData;be(Oe({navigation:ee},ce?Object.keys(ce).length===0?{actionData:null}:{actionData:ce}:{},Ve.length>0?{fetchers:new Map(S.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));k&&k.signal.addEventListener("abort",Ar);let{results:is,loaderResults:Or,fetcherResults:kn}=await fd(S.matches,A,xt,Ve,T);if(T.signal.aborted)return{shortCircuited:!0};k&&k.signal.removeEventListener("abort",Ar),Ve.forEach(ce=>U.delete(ce.key));let or=zh(is);if(or){if(or.idx>=xt.length){let ce=Ve[or.idx-xt.length].key;J.add(ce)}return await Qt(S,or.result,{replace:X}),{shortCircuited:!0}}let{loaderData:as,errors:Oo}=jh(S,A,xt,Or,He,Ve,kn,Ne);Ne.forEach((ce,de)=>{ce.subscribe(dt=>{(dt||ce.done)&&Ne.delete(de)})}),c.v7_partialHydration&&Q&&S.errors&&Object.entries(S.errors).filter(ce=>{let[de]=ce;return!xt.some(dt=>dt.route.id===de)}).forEach(ce=>{let[de,dt]=ce;Oo=Object.assign(Oo||{},{[de]:dt})});let ls=pd(),Ir=vd(F),Zi=ls||Ir||Ve.length>0;return Oe({loaderData:as,errors:Oo},Zi?{fetchers:new Map(S.fetchers)}:{})}function es(T,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(T)&&Tn(T);let W=(B&&B.unstable_flushSync)===!0,re=l||a,X=nu(S.location,S.matches,s,c.v7_prependBasename,A,c.v7_relativeSplatPath,R,B==null?void 0:B.relative),Q=ur(re,X,s);if(!Q){Ao(T,R,Rt(404,{pathname:X}),{flushSync:W});return}let{path:G,submission:ie,error:He}=Ah(c.v7_normalizeFormMethod,!0,X,B);if(He){Ao(T,R,He,{flushSync:W});return}let ee=ou(Q,G);if($=(B&&B.preventScrollReset)===!0,ie&&Bt(ie.formMethod)){ts(T,R,G,ee,Q,W,ie);return}se.set(T,{routeId:R,path:G}),ns(T,R,G,ee,Q,W,ie)}async function ts(T,R,A,B,W,re,X){if(rs(),se.delete(T),!B.route.action&&!B.route.lazy){let de=Rt(405,{method:X.formMethod,pathname:A,routeId:R});Ao(T,R,de,{flushSync:re});return}let Q=S.fetchers.get(T);$n(T,I3(X,Q),{flushSync:re});let G=new AbortController,ie=Vo(e.history,A,G.signal,X);U.set(T,G);let He=O,ee=await Ho("action",ie,B,W,i,o,s,c.v7_relativeSplatPath);if(ie.signal.aborted){U.get(T)===G&&U.delete(T);return}if(c.v7_fetcherPersist&&ye.has(T)){if(dr(ee)||qr(ee)){$n(T,Nn(void 0));return}}else{if(dr(ee))if(U.delete(T),F>He){$n(T,Nn(void 0));return}else return J.add(T),$n(T,Wo(X)),Qt(S,ee,{fetcherSubmission:X});if(qr(ee)){Ao(T,R,ee.error);return}}if(fr(ee))throw Rt(400,{type:"defer-action"});let he=S.navigation.location||S.location,Ye=Vo(e.history,he,G.signal),xt=l||a,Ve=S.navigation.state!=="idle"?ur(xt,S.navigation.location,s):S.matches;te(Ve,"Didn't find any matches after fetcher action");let Ar=++O;K.set(T,Ar);let is=Wo(X,ee.data);S.fetchers.set(T,is);let[Or,kn]=Oh(e.history,S,Ve,X,he,!1,N,z,V,ye,se,J,xt,s,{[B.route.id]:ee.data},void 0);kn.filter(de=>de.key!==T).forEach(de=>{let dt=de.key,Xi=S.fetchers.get(dt),xy=Wo(void 0,Xi?Xi.data:void 0);S.fetchers.set(dt,xy),U.has(dt)&&Tn(dt),de.controller&&U.set(dt,de.controller)}),be({fetchers:new Map(S.fetchers)});let or=()=>kn.forEach(de=>Tn(de.key));G.signal.addEventListener("abort",or);let{results:as,loaderResults:Oo,fetcherResults:ls}=await fd(S.matches,Ve,Or,kn,Ye);if(G.signal.aborted)return;G.signal.removeEventListener("abort",or),K.delete(T),U.delete(T),kn.forEach(de=>U.delete(de.key));let Ir=zh(as);if(Ir){if(Ir.idx>=Or.length){let de=kn[Ir.idx-Or.length].key;J.add(de)}return Qt(S,Ir.result)}let{loaderData:Zi,errors:ce}=jh(S,S.matches,Or,Oo,void 0,kn,ls,Ne);if(S.fetchers.has(T)){let de=Nn(ee.data);S.fetchers.set(T,de)}vd(Ar),S.navigation.state==="loading"&&Ar>F?(te(b,"Expected pending action"),k&&k.abort(),ft(S.navigation.location,{matches:Ve,loaderData:Zi,errors:ce,fetchers:new Map(S.fetchers)})):(be({errors:ce,loaderData:Dh(S.loaderData,Zi,Ve,ce),fetchers:new Map(S.fetchers)}),N=!1)}async function ns(T,R,A,B,W,re,X){let Q=S.fetchers.get(T);$n(T,Wo(X,Q?Q.data:void 0),{flushSync:re});let G=new AbortController,ie=Vo(e.history,A,G.signal);U.set(T,G);let He=O,ee=await Ho("loader",ie,B,W,i,o,s,c.v7_relativeSplatPath);if(fr(ee)&&(ee=await N0(ee,ie.signal,!0)||ee),U.get(T)===G&&U.delete(T),!ie.signal.aborted){if(ye.has(T)){$n(T,Nn(void 0));return}if(dr(ee))if(F>He){$n(T,Nn(void 0));return}else{J.add(T),await Qt(S,ee);return}if(qr(ee)){Ao(T,R,ee.error);return}te(!fr(ee),"Unhandled fetcher deferred data"),$n(T,Nn(ee.data))}}async function Qt(T,R,A){let{submission:B,fetcherSubmission:W,replace:re}=A===void 0?{}:A;R.revalidate&&(N=!0);let X=Ri(T.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}}k=null;let Q=re===!0?Ie.Replace:Ie.Push,{formMethod:G,formAction:ie,formEncType:He}=T.navigation;!B&&!W&&G&&ie&&He&&(B=Uh(T.navigation));let ee=B||W;if(C3.has(R.status)&&ee&&Bt(ee.formMethod))await wt(Q,X,{submission:Oe({},ee,{formAction:R.location}),preventScrollReset:$});else{let he=Ms(X,B);await wt(Q,X,{overrideNavigation:he,fetcherSubmission:W,preventScrollReset:$})}}async function fd(T,R,A,B,W){let re=await Promise.all([...A.map(G=>Ho("loader",W,G,R,i,o,s,c.v7_relativeSplatPath)),...B.map(G=>G.matches&&G.match&&G.controller?Ho("loader",Vo(e.history,G.path,G.controller.signal),G.match,G.matches,i,o,s,c.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(T,A,X,X.map(()=>W.signal),!1,S.loaderData),Bh(T,B.map(G=>G.match),Q,B.map(G=>G.controller?G.controller.signal:null),!0)]),{results:re,loaderResults:X,fetcherResults:Q}}function rs(){N=!0,z.push(...os()),se.forEach((T,R)=>{U.has(R)&&(V.push(R),Tn(R))})}function $n(T,R,A){A===void 0&&(A={}),S.fetchers.set(T,R),be({fetchers:new Map(S.fetchers)},{flushSync:(A&&A.flushSync)===!0})}function Ao(T,R,A,B){B===void 0&&(B={});let W=fi(S.matches,R);Gi(T),be({errors:{[W.route.id]:A},fetchers:new Map(S.fetchers)},{flushSync:(B&&B.flushSync)===!0})}function dd(T){return c.v7_fetcherPersist&&(Be.set(T,(Be.get(T)||0)+1),ye.has(T)&&ye.delete(T)),S.fetchers.get(T)||E3}function Gi(T){let R=S.fetchers.get(T);U.has(T)&&!(R&&R.state==="loading"&&K.has(T))&&Tn(T),se.delete(T),K.delete(T),J.delete(T),ye.delete(T),S.fetchers.delete(T)}function vy(T){if(c.v7_fetcherPersist){let R=(Be.get(T)||0)-1;R<=0?(Be.delete(T),ye.add(T)):Be.set(T,R)}else Gi(T);be({fetchers:new Map(S.fetchers)})}function Tn(T){let R=U.get(T);te(R,"Expected fetch controller: "+T),R.abort(),U.delete(T)}function hd(T){for(let R of T){let A=dd(R),B=Nn(A.data);S.fetchers.set(R,B)}}function pd(){let T=[],R=!1;for(let A of J){let B=S.fetchers.get(A);te(B,"Expected fetcher: "+A),B.state==="loading"&&(J.delete(A),T.push(A),R=!0)}return hd(T),R}function vd(T){let R=[];for(let[A,B]of K)if(B0}function my(T,R){let A=S.blockers.get(T)||Uo;return we.get(T)!==R&&we.set(T,R),A}function md(T){S.blockers.delete(T),we.delete(T)}function Qi(T,R){let A=S.blockers.get(T)||Uo;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(S.blockers);B.set(T,R),be({blockers:B})}function gd(T){let{currentLocation:R,nextLocation:A,historyAction:B}=T;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=S.blockers.get(re);if(!(Q&&Q.state==="proceeding")&&X({currentLocation:R,nextLocation:A,historyAction:B}))return re}function os(T){let R=[];return Ne.forEach((A,B)=>{(!T||T(B))&&(A.cancel(),R.push(B),Ne.delete(B))}),R}function gy(T,R,A){if(d=T,y=R,p=A||null,!g&&S.navigation===Ls){g=!0;let B=wd(S.location,S.matches);B!=null&&be({restoreScrollPosition:B})}return()=>{d=null,y=null,p=null}}function yd(T,R){return p&&p(T,R.map(B=>x0(B,S.loaderData)))||T.key}function yy(T,R){if(d&&y){let A=yd(T,R);d[A]=y()}}function wd(T,R){if(d){let A=yd(T,R),B=d[A];if(typeof B=="number")return B}return null}function wy(T){i={},l=tu(T,o,void 0,i)}return _={get basename(){return s},get future(){return c},get state(){return S},get routes(){return a},get window(){return t},initialize:xe,subscribe:jt,enableScrollRestoration:gy,navigate:Ki,fetch:es,revalidate:Jl,createHref:T=>e.history.createHref(T),encodeLocation:T=>e.history.encodeLocation(T),getFetcher:dd,deleteFetcher:vy,dispose:_e,getBlocker:my,deleteBlocker:md,_internalFetchControllers:U,_internalActiveDeferreds:Ne,_internalSetRoutes:wy},_}function b3(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function nu(e,t,n,r,o,i,a,l){let s,c;if(a){s=[];for(let u of t)if(s.push(u),u.route.id===a){c=u;break}}else s=t,c=t[t.length-1];let f=Lf(o||".",If(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===".")&&c&&c.route.index&&!jf(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||!b3(r))return{path:n};if(r.formMethod&&!A3(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,c;if(r.formData)s=ru(r.formData),c=r.formData;else if(r.body instanceof FormData)s=ru(r.body),c=r.body;else if(r.body instanceof URLSearchParams)s=r.body,c=Mh(s);else if(r.body==null)s=new URLSearchParams,c=new FormData;else try{s=new URLSearchParams(r.body),c=Mh(s)}catch{return o()}let f={formMethod:a,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Bt(f.formMethod))return{path:n,submission:f};let u=Cn(n);return t&&u.search&&jf(u.search)&&s.append("index",""),u.search="?"+s,{path:Cr(u),submission:f}}function $3(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,c,f,u,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,_=$3(n,x).filter((b,$)=>{let{route:k}=b;if(k.lazy)return!0;if(k.loader==null)return!1;if(i)return k.loader.hydrate?!0:t.loaderData[k.id]===void 0&&(!t.errors||t.errors[k.id]===void 0);if(T3(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||k0(P,j)}))}),S=[];return f.forEach((b,$)=>{if(i||!n.some(D=>D.route.id===b.routeId)||c.has($))return;let k=ur(d,b.path,p);if(!k){S.push({key:$,routeId:b.routeId,path:b.path,matches:null,match:null,controller:null});return}let P=t.fetchers.get($),j=ou(k,b.path),L=!1;u.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&&S.push({key:$,routeId:b.routeId,path:b.path,matches:k,match:j,controller:new AbortController})}),[_,S]}function T3(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 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&&!Jw.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,Oe({},t(o),{lazy:void 0}))}async function Ho(e,t,n,r,o,i,a,l,s){s===void 0&&(s={});let c,f,u,d=g=>{let C,v=new Promise((m,x)=>C=x);return u=()=>C(),t.signal.addEventListener("abort",u),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){c=Pe.error,f=g}finally{u&&t.signal.removeEventListener("abort",u)}if(P3(f)){let g=f.status;if(x3.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=nu(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:c===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 c===Pe.error?{type:c,error:new Mf(g,f.statusText,C),headers:f.headers}:{type:Pe.data,data:C,statusCode:f.status,headers:f.headers}}if(c===Pe.error)return{type:c,error:f};if(N3(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 Vo(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=ru(r.formData):i.body=r.formData}return new Request(o,i)}function ru(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 k3(e,t,n,r,o){let i={},a=null,l,s=!1,c={};return n.forEach((f,u)=>{let d=t[u].route.id;if(te(!dr(f),"Cannot handle redirect results in processLoaderData"),qr(f)){let p=fi(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=_0(f.error)?f.error.status:500),f.headers&&(c[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&&(c[d]=f.headers)}),r&&(a=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:a,statusCode:l||200,loaderHeaders:c}}function jh(e,t,n,r,o,i,a,l){let{loaderData:s,errors:c}=k3(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 Mf(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 R0(e){let t=typeof e=="string"?Cn(e):e;return Cr(Oe({},t,{hash:""}))}function R3(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 N3(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 P3(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function A3(e){return w3.has(e.toLowerCase())}function Bt(e){return g3.has(e.toLowerCase())}async function Bh(e,t,n,r,o,i){for(let a=0;au.route.id===s.route.id),f=c!=null&&!k0(c,s)&&(i&&i[s.route.id])!==void 0;if(fr(l)&&(o||f)){let u=r[a];te(u,"Expected an AbortSignal for revalidating fetcher deferred result"),await N0(l,u,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 jf(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ou(e,t){let n=typeof t=="string"?Cn(t).search:t.search;if(e[e.length-1].route.index&&jf(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 Ms(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 O3(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 Wo(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 I3(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 L3(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 M3(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 Z3(){return Math.random().toString(36).substr(2,8)}function Nh(e,t){return{usr:e.state,key:e.key,idx:t}}function Ri(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||Z3()})}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 X3(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,c=f();c==null&&(c=0,a.replaceState(Oe({},a.state,{idx:c}),""));function f(){return(a.state||{idx:null}).idx}function u(){l=Ie.Pop;let C=f(),v=C==null?null:C-c;c=C,s&&s({action:l,location:g.location,delta:v})}function d(C,v){l=Ie.Push;let m=Ri(g.location,C,v);n&&n(m,C),c=f()+1;let x=Nh(m,c),E=g.createHref(m);try{a.pushState(x,"",E)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;o.location.assign(E)}i&&s&&s({action:l,location:g.location,delta:1})}function p(C,v){l=Ie.Replace;let m=Ri(g.location,C,v);n&&n(m,C),c=f();let x=Nh(m,c),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,u),s=C,()=>{o.removeEventListener(Rh,u),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 J3=new Set(["lazy","caseSensitive","path","id","index","children"]);function q3(e){return e.index===!0}function tu(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`),q3(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=tu(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);ew(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 c=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 "'+c+'".')),C0(i.children,t,f,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:lw(c,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 ew(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:sw(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const tw=/^:[\w-]+$/,nw=3,rw=2,ow=1,iw=10,aw=-2,Ph=e=>e==="*";function lw(e,t){let n=e.split("/"),r=n.length;return n.some(Ph)&&(r+=aw),t&&(r+=rw),n.filter(o=>!Ph(o)).reduce((o,i)=>o+(tw.test(i)?nw:i===""?ow:iw),r)}function sw(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 cw(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[u]||"";a=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const y=l[u];return p&&!y?c[d]=void 0:c[d]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function uw(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 fw(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 dw(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:hw(n,t):t,search:vw(r),hash:mw(o)}}function hw(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 Is(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 If(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 Lf(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("?"),Is("?","pathname","search",o)),te(!o.pathname||!o.pathname.includes("#"),Is("#","pathname","hash",o)),te(!o.search||!o.search.includes("#"),Is("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=n;else{let u=t.length-1;if(!r&&a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),u-=1;o.pathname=d.join("/")}l=u>=0?t[u]:"/"}let s=dw(o,l),c=a&&a!=="/"&&a.endsWith("/"),f=(i||a===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(c||f)&&(s.pathname+="/"),s}const dn=e=>e.join("/").replace(/\/\/+/g,"/"),pw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),vw=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,mw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Mf{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 _0(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"],gw=new Set(b0),yw=["get",...b0],ww=new Set(yw),xw=new Set([301,302,303,307,308]),Cw=new Set([307,308]),Ls={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ew={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Uo={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 _w(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 T=e.detectErrorBoundary;o=R=>({hasErrorBoundary:T(R)})}else o=Sw;let i={},a=tu(e.routes,o,void 0,i),l,s=e.basename||"/",c=Oe({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),f=null,u=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 T=Rt(404,{pathname:e.history.location.pathname}),{matches:R,route:A}=Fh(a);C=R,v={[A.id]:T}}let m,x=C.some(T=>T.route.lazy),E=C.some(T=>T.route.loader);if(x)m=!1;else if(!E)m=!0;else if(c.v7_partialHydration){let T=e.hydrationData?e.hydrationData.loaderData:null,R=e.hydrationData?e.hydrationData.errors:null,A=B=>B.route.loader?B.route.loader.hydrate===!0?!1:T&&T[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:Ls,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,k,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(T=>{let{action:R,location:A,delta:B}=T;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:S.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(S.blockers);re.set(W,Uo),be({blockers:re})}});return}return wt(R,A)}),n){Lw(t,j);let T=()=>Mw(t,j);t.addEventListener("pagehide",T),L=()=>t.removeEventListener("pagehide",T)}return S.initialized||wt(Ie.Pop,S.location,{initialHydration:!0}),_}function _e(){f&&f(),L&&L(),u.clear(),k&&k.abort(),S.fetchers.forEach((T,R)=>Gi(R)),S.blockers.forEach((T,R)=>md(R))}function jt(T){return u.add(T),()=>u.delete(T)}function be(T,R){R===void 0&&(R={}),S=Oe({},S,T);let A=[],B=[];c.v7_fetcherPersist&&S.fetchers.forEach((W,re)=>{W.state==="idle"&&(ye.has(re)?B.push(re):A.push(re))}),[...u].forEach(W=>W(S,{deletedFetchers:B,unstable_viewTransitionOpts:R.viewTransitionOpts,unstable_flushSync:R.flushSync===!0})),c.v7_fetcherPersist&&(A.forEach(W=>S.fetchers.delete(W)),B.forEach(W=>Gi(W)))}function ft(T,R,A){var B,W;let{flushSync:re}=A===void 0?{}:A,X=S.actionData!=null&&S.navigation.formMethod!=null&&Bt(S.navigation.formMethod)&&S.navigation.state==="loading"&&((B=T.state)==null?void 0:B._isRedirect)!==!0,Q;R.actionData?Object.keys(R.actionData).length>0?Q=R.actionData:Q=null:X?Q=S.actionData:Q=null;let G=R.loaderData?Dh(S.loaderData,R.loaderData,R.matches||[],R.errors):S.loaderData,ie=S.blockers;ie.size>0&&(ie=new Map(ie),ie.forEach((he,Ye)=>ie.set(Ye,Uo)));let He=$===!0||S.navigation.formMethod!=null&&Bt(S.navigation.formMethod)&&((W=T.state)==null?void 0:W._isRedirect)!==!0;l&&(a=l,l=void 0),D||b===Ie.Pop||(b===Ie.Push?e.history.push(T,T.state):b===Ie.Replace&&e.history.replace(T,T.state));let ee;if(b===Ie.Pop){let he=j.get(S.location.pathname);he&&he.has(T.pathname)?ee={currentLocation:S.location,nextLocation:T}:j.has(T.pathname)&&(ee={currentLocation:T,nextLocation:S.location})}else if(P){let he=j.get(S.location.pathname);he?he.add(T.pathname):(he=new Set([T.pathname]),j.set(S.location.pathname,he)),ee={currentLocation:S.location,nextLocation:T}}be(Oe({},R,{actionData:Q,loaderData:G,historyAction:b,location:T,initialized:!0,navigation:Ls,revalidation:"idle",restoreScrollPosition:wd(T,R.matches||S.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(T,R){if(typeof T=="number"){e.history.go(T);return}let A=nu(S.location,S.matches,s,c.v7_prependBasename,T,c.v7_relativeSplatPath,R==null?void 0:R.fromRouteId,R==null?void 0:R.relative),{path:B,submission:W,error:re}=Ah(c.v7_normalizeFormMethod,!1,A,R),X=S.location,Q=Ri(S.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===S.location.pathname+S.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(T,R)},reset(){let Ye=new Map(S.blockers);Ye.set(he,Uo),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 Jl(){if(rs(),be({revalidation:"loading"}),S.navigation.state!=="submitting"){if(S.navigation.state==="idle"){wt(S.historyAction,S.location,{startUninterruptedRevalidation:!0});return}wt(b||S.historyAction,S.navigation.location,{overrideNavigation:S.navigation})}}async function wt(T,R,A){k&&k.abort(),k=null,b=T,D=(A&&A.startUninterruptedRevalidation)===!0,yy(S.location,S.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);os(),ft(R,{matches:xt,loaderData:{},errors:{[Ve.id]:Ye}},{flushSync:X});return}if(S.initialized&&!N&&Rw(S.location,R)&&!(A&&A.submission&&Bt(A.submission.formMethod))){ft(R,{matches:re},{flushSync:X});return}k=new AbortController;let Q=Vo(e.history,R,k.signal,A&&A.submission),G,ie;if(A&&A.pendingError)ie={[fi(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=Ms(R,A.submission),X=!1,Q=new Request(Q.url,{signal:Q.signal})}let{shortCircuited:He,loaderData:ee,errors:he}=await ql(Q,R,re,W,A&&A.submission,A&&A.fetcherSubmission,A&&A.replace,A&&A.initialHydration===!0,X,G,ie);He||(k=null,ft(R,Oe({matches:re},G?{actionData:G}:{},{loaderData:ee,errors:he})))}async function Yi(T,R,A,B,W){W===void 0&&(W={}),rs();let re=Ow(R,A);be({navigation:re},{flushSync:W.flushSync===!0});let X,Q=ou(B,R);if(!Q.route.action&&!Q.route.lazy)X={type:Pe.error,error:Rt(405,{method:T.method,pathname:R.pathname,routeId:Q.route.id})};else if(X=await Ho("action",T,Q,B,i,o,s,c.v7_relativeSplatPath),T.signal.aborted)return{shortCircuited:!0};if(dr(X)){let G;return W&&W.replace!=null?G=W.replace:G=X.location===S.location.pathname+S.location.search,await Qt(S,X,{submission:A,replace:G}),{shortCircuited:!0}}if(qr(X)){let G=fi(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 ql(T,R,A,B,W,re,X,Q,G,ie,He){let ee=B||Ms(R,W),he=W||re||Uh(ee),Ye=l||a,[xt,Ve]=Oh(e.history,S,A,he,R,c.v7_partialHydration&&Q===!0,N,z,V,ye,se,J,Ye,s,ie,He);if(os(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(S.fetchers)}:{}),{flushSync:G}),{shortCircuited:!0}}if(!D&&(!c.v7_partialHydration||!Q)){Ve.forEach(de=>{let dt=S.fetchers.get(de.key),Xi=Wo(void 0,dt?dt.data:void 0);S.fetchers.set(de.key,Xi)});let ce=ie||S.actionData;be(Oe({navigation:ee},ce?Object.keys(ce).length===0?{actionData:null}:{actionData:ce}:{},Ve.length>0?{fetchers:new Map(S.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));k&&k.signal.addEventListener("abort",Ar);let{results:is,loaderResults:Or,fetcherResults:kn}=await fd(S.matches,A,xt,Ve,T);if(T.signal.aborted)return{shortCircuited:!0};k&&k.signal.removeEventListener("abort",Ar),Ve.forEach(ce=>U.delete(ce.key));let or=zh(is);if(or){if(or.idx>=xt.length){let ce=Ve[or.idx-xt.length].key;J.add(ce)}return await Qt(S,or.result,{replace:X}),{shortCircuited:!0}}let{loaderData:as,errors:Oo}=jh(S,A,xt,Or,He,Ve,kn,Ne);Ne.forEach((ce,de)=>{ce.subscribe(dt=>{(dt||ce.done)&&Ne.delete(de)})}),c.v7_partialHydration&&Q&&S.errors&&Object.entries(S.errors).filter(ce=>{let[de]=ce;return!xt.some(dt=>dt.route.id===de)}).forEach(ce=>{let[de,dt]=ce;Oo=Object.assign(Oo||{},{[de]:dt})});let ls=pd(),Ir=vd(F),Zi=ls||Ir||Ve.length>0;return Oe({loaderData:as,errors:Oo},Zi?{fetchers:new Map(S.fetchers)}:{})}function es(T,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(T)&&Tn(T);let W=(B&&B.unstable_flushSync)===!0,re=l||a,X=nu(S.location,S.matches,s,c.v7_prependBasename,A,c.v7_relativeSplatPath,R,B==null?void 0:B.relative),Q=ur(re,X,s);if(!Q){Ao(T,R,Rt(404,{pathname:X}),{flushSync:W});return}let{path:G,submission:ie,error:He}=Ah(c.v7_normalizeFormMethod,!0,X,B);if(He){Ao(T,R,He,{flushSync:W});return}let ee=ou(Q,G);if($=(B&&B.preventScrollReset)===!0,ie&&Bt(ie.formMethod)){ts(T,R,G,ee,Q,W,ie);return}se.set(T,{routeId:R,path:G}),ns(T,R,G,ee,Q,W,ie)}async function ts(T,R,A,B,W,re,X){if(rs(),se.delete(T),!B.route.action&&!B.route.lazy){let de=Rt(405,{method:X.formMethod,pathname:A,routeId:R});Ao(T,R,de,{flushSync:re});return}let Q=S.fetchers.get(T);$n(T,Iw(X,Q),{flushSync:re});let G=new AbortController,ie=Vo(e.history,A,G.signal,X);U.set(T,G);let He=O,ee=await Ho("action",ie,B,W,i,o,s,c.v7_relativeSplatPath);if(ie.signal.aborted){U.get(T)===G&&U.delete(T);return}if(c.v7_fetcherPersist&&ye.has(T)){if(dr(ee)||qr(ee)){$n(T,Nn(void 0));return}}else{if(dr(ee))if(U.delete(T),F>He){$n(T,Nn(void 0));return}else return J.add(T),$n(T,Wo(X)),Qt(S,ee,{fetcherSubmission:X});if(qr(ee)){Ao(T,R,ee.error);return}}if(fr(ee))throw Rt(400,{type:"defer-action"});let he=S.navigation.location||S.location,Ye=Vo(e.history,he,G.signal),xt=l||a,Ve=S.navigation.state!=="idle"?ur(xt,S.navigation.location,s):S.matches;te(Ve,"Didn't find any matches after fetcher action");let Ar=++O;K.set(T,Ar);let is=Wo(X,ee.data);S.fetchers.set(T,is);let[Or,kn]=Oh(e.history,S,Ve,X,he,!1,N,z,V,ye,se,J,xt,s,{[B.route.id]:ee.data},void 0);kn.filter(de=>de.key!==T).forEach(de=>{let dt=de.key,Xi=S.fetchers.get(dt),xy=Wo(void 0,Xi?Xi.data:void 0);S.fetchers.set(dt,xy),U.has(dt)&&Tn(dt),de.controller&&U.set(dt,de.controller)}),be({fetchers:new Map(S.fetchers)});let or=()=>kn.forEach(de=>Tn(de.key));G.signal.addEventListener("abort",or);let{results:as,loaderResults:Oo,fetcherResults:ls}=await fd(S.matches,Ve,Or,kn,Ye);if(G.signal.aborted)return;G.signal.removeEventListener("abort",or),K.delete(T),U.delete(T),kn.forEach(de=>U.delete(de.key));let Ir=zh(as);if(Ir){if(Ir.idx>=Or.length){let de=kn[Ir.idx-Or.length].key;J.add(de)}return Qt(S,Ir.result)}let{loaderData:Zi,errors:ce}=jh(S,S.matches,Or,Oo,void 0,kn,ls,Ne);if(S.fetchers.has(T)){let de=Nn(ee.data);S.fetchers.set(T,de)}vd(Ar),S.navigation.state==="loading"&&Ar>F?(te(b,"Expected pending action"),k&&k.abort(),ft(S.navigation.location,{matches:Ve,loaderData:Zi,errors:ce,fetchers:new Map(S.fetchers)})):(be({errors:ce,loaderData:Dh(S.loaderData,Zi,Ve,ce),fetchers:new Map(S.fetchers)}),N=!1)}async function ns(T,R,A,B,W,re,X){let Q=S.fetchers.get(T);$n(T,Wo(X,Q?Q.data:void 0),{flushSync:re});let G=new AbortController,ie=Vo(e.history,A,G.signal);U.set(T,G);let He=O,ee=await Ho("loader",ie,B,W,i,o,s,c.v7_relativeSplatPath);if(fr(ee)&&(ee=await N0(ee,ie.signal,!0)||ee),U.get(T)===G&&U.delete(T),!ie.signal.aborted){if(ye.has(T)){$n(T,Nn(void 0));return}if(dr(ee))if(F>He){$n(T,Nn(void 0));return}else{J.add(T),await Qt(S,ee);return}if(qr(ee)){Ao(T,R,ee.error);return}te(!fr(ee),"Unhandled fetcher deferred data"),$n(T,Nn(ee.data))}}async function Qt(T,R,A){let{submission:B,fetcherSubmission:W,replace:re}=A===void 0?{}:A;R.revalidate&&(N=!0);let X=Ri(T.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}}k=null;let Q=re===!0?Ie.Replace:Ie.Push,{formMethod:G,formAction:ie,formEncType:He}=T.navigation;!B&&!W&&G&&ie&&He&&(B=Uh(T.navigation));let ee=B||W;if(Cw.has(R.status)&&ee&&Bt(ee.formMethod))await wt(Q,X,{submission:Oe({},ee,{formAction:R.location}),preventScrollReset:$});else{let he=Ms(X,B);await wt(Q,X,{overrideNavigation:he,fetcherSubmission:W,preventScrollReset:$})}}async function fd(T,R,A,B,W){let re=await Promise.all([...A.map(G=>Ho("loader",W,G,R,i,o,s,c.v7_relativeSplatPath)),...B.map(G=>G.matches&&G.match&&G.controller?Ho("loader",Vo(e.history,G.path,G.controller.signal),G.match,G.matches,i,o,s,c.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(T,A,X,X.map(()=>W.signal),!1,S.loaderData),Bh(T,B.map(G=>G.match),Q,B.map(G=>G.controller?G.controller.signal:null),!0)]),{results:re,loaderResults:X,fetcherResults:Q}}function rs(){N=!0,z.push(...os()),se.forEach((T,R)=>{U.has(R)&&(V.push(R),Tn(R))})}function $n(T,R,A){A===void 0&&(A={}),S.fetchers.set(T,R),be({fetchers:new Map(S.fetchers)},{flushSync:(A&&A.flushSync)===!0})}function Ao(T,R,A,B){B===void 0&&(B={});let W=fi(S.matches,R);Gi(T),be({errors:{[W.route.id]:A},fetchers:new Map(S.fetchers)},{flushSync:(B&&B.flushSync)===!0})}function dd(T){return c.v7_fetcherPersist&&(Be.set(T,(Be.get(T)||0)+1),ye.has(T)&&ye.delete(T)),S.fetchers.get(T)||Ew}function Gi(T){let R=S.fetchers.get(T);U.has(T)&&!(R&&R.state==="loading"&&K.has(T))&&Tn(T),se.delete(T),K.delete(T),J.delete(T),ye.delete(T),S.fetchers.delete(T)}function vy(T){if(c.v7_fetcherPersist){let R=(Be.get(T)||0)-1;R<=0?(Be.delete(T),ye.add(T)):Be.set(T,R)}else Gi(T);be({fetchers:new Map(S.fetchers)})}function Tn(T){let R=U.get(T);te(R,"Expected fetch controller: "+T),R.abort(),U.delete(T)}function hd(T){for(let R of T){let A=dd(R),B=Nn(A.data);S.fetchers.set(R,B)}}function pd(){let T=[],R=!1;for(let A of J){let B=S.fetchers.get(A);te(B,"Expected fetcher: "+A),B.state==="loading"&&(J.delete(A),T.push(A),R=!0)}return hd(T),R}function vd(T){let R=[];for(let[A,B]of K)if(B0}function my(T,R){let A=S.blockers.get(T)||Uo;return we.get(T)!==R&&we.set(T,R),A}function md(T){S.blockers.delete(T),we.delete(T)}function Qi(T,R){let A=S.blockers.get(T)||Uo;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(S.blockers);B.set(T,R),be({blockers:B})}function gd(T){let{currentLocation:R,nextLocation:A,historyAction:B}=T;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=S.blockers.get(re);if(!(Q&&Q.state==="proceeding")&&X({currentLocation:R,nextLocation:A,historyAction:B}))return re}function os(T){let R=[];return Ne.forEach((A,B)=>{(!T||T(B))&&(A.cancel(),R.push(B),Ne.delete(B))}),R}function gy(T,R,A){if(d=T,y=R,p=A||null,!g&&S.navigation===Ls){g=!0;let B=wd(S.location,S.matches);B!=null&&be({restoreScrollPosition:B})}return()=>{d=null,y=null,p=null}}function yd(T,R){return p&&p(T,R.map(B=>x0(B,S.loaderData)))||T.key}function yy(T,R){if(d&&y){let A=yd(T,R);d[A]=y()}}function wd(T,R){if(d){let A=yd(T,R),B=d[A];if(typeof B=="number")return B}return null}function wy(T){i={},l=tu(T,o,void 0,i)}return _={get basename(){return s},get future(){return c},get state(){return S},get routes(){return a},get window(){return t},initialize:xe,subscribe:jt,enableScrollRestoration:gy,navigate:Ki,fetch:es,revalidate:Jl,createHref:T=>e.history.createHref(T),encodeLocation:T=>e.history.encodeLocation(T),getFetcher:dd,deleteFetcher:vy,dispose:_e,getBlocker:my,deleteBlocker:md,_internalFetchControllers:U,_internalActiveDeferreds:Ne,_internalSetRoutes:wy},_}function bw(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function nu(e,t,n,r,o,i,a,l){let s,c;if(a){s=[];for(let u of t)if(s.push(u),u.route.id===a){c=u;break}}else s=t,c=t[t.length-1];let f=Lf(o||".",If(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===".")&&c&&c.route.index&&!jf(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||!bw(r))return{path:n};if(r.formMethod&&!Aw(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,c;if(r.formData)s=ru(r.formData),c=r.formData;else if(r.body instanceof FormData)s=ru(r.body),c=r.body;else if(r.body instanceof URLSearchParams)s=r.body,c=Mh(s);else if(r.body==null)s=new URLSearchParams,c=new FormData;else try{s=new URLSearchParams(r.body),c=Mh(s)}catch{return o()}let f={formMethod:a,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Bt(f.formMethod))return{path:n,submission:f};let u=Cn(n);return t&&u.search&&jf(u.search)&&s.append("index",""),u.search="?"+s,{path:Cr(u),submission:f}}function $w(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,c,f,u,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,_=$w(n,x).filter((b,$)=>{let{route:k}=b;if(k.lazy)return!0;if(k.loader==null)return!1;if(i)return k.loader.hydrate?!0:t.loaderData[k.id]===void 0&&(!t.errors||t.errors[k.id]===void 0);if(Tw(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||k0(P,j)}))}),S=[];return f.forEach((b,$)=>{if(i||!n.some(D=>D.route.id===b.routeId)||c.has($))return;let k=ur(d,b.path,p);if(!k){S.push({key:$,routeId:b.routeId,path:b.path,matches:null,match:null,controller:null});return}let P=t.fetchers.get($),j=ou(k,b.path),L=!1;u.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&&S.push({key:$,routeId:b.routeId,path:b.path,matches:k,match:j,controller:new AbortController})}),[_,S]}function Tw(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 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&&!J3.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,Oe({},t(o),{lazy:void 0}))}async function Ho(e,t,n,r,o,i,a,l,s){s===void 0&&(s={});let c,f,u,d=g=>{let C,v=new Promise((m,x)=>C=x);return u=()=>C(),t.signal.addEventListener("abort",u),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){c=Pe.error,f=g}finally{u&&t.signal.removeEventListener("abort",u)}if(Pw(f)){let g=f.status;if(xw.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=nu(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:c===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 c===Pe.error?{type:c,error:new Mf(g,f.statusText,C),headers:f.headers}:{type:Pe.data,data:C,statusCode:f.status,headers:f.headers}}if(c===Pe.error)return{type:c,error:f};if(Nw(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 Vo(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=ru(r.formData):i.body=r.formData}return new Request(o,i)}function ru(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 kw(e,t,n,r,o){let i={},a=null,l,s=!1,c={};return n.forEach((f,u)=>{let d=t[u].route.id;if(te(!dr(f),"Cannot handle redirect results in processLoaderData"),qr(f)){let p=fi(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=_0(f.error)?f.error.status:500),f.headers&&(c[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&&(c[d]=f.headers)}),r&&(a=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:a,statusCode:l||200,loaderHeaders:c}}function jh(e,t,n,r,o,i,a,l){let{loaderData:s,errors:c}=kw(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 Mf(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 R0(e){let t=typeof e=="string"?Cn(e):e;return Cr(Oe({},t,{hash:""}))}function Rw(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 Nw(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 Pw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Aw(e){return ww.has(e.toLowerCase())}function Bt(e){return gw.has(e.toLowerCase())}async function Bh(e,t,n,r,o,i){for(let a=0;au.route.id===s.route.id),f=c!=null&&!k0(c,s)&&(i&&i[s.route.id])!==void 0;if(fr(l)&&(o||f)){let u=r[a];te(u,"Expected an AbortSignal for revalidating fetcher deferred result"),await N0(l,u,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 jf(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ou(e,t){let n=typeof t=="string"?Cn(t).search:t.search;if(e[e.length-1].route.index&&jf(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 Ms(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 Ow(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 Wo(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 Iw(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 Lw(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 Mw(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+").")}}}/** * 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 Ni(){return Ni=Object.assign?Object.assign.bind():function(e){for(var t=1;tUl(e,t),[t,e])}function A0(e){h.useContext(nr).static||h.useLayoutEffect(e)}function Ff(){let{isDataRoute:e}=h.useContext($r);return e?X3():F3()}function F3(){To()||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(If(o,n.v7_relativeSplatPath)),l=h.useRef(!1);return A0(()=>{l.current=!0}),h.useCallback(function(c,f){if(f===void 0&&(f={}),!l.current)return;if(typeof c=="number"){r.go(c);return}let u=Lf(c,JSON.parse(a),i,f.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:dn([t,u.pathname])),(f.replace?r.replace:r.push)(u,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(If(o,r.v7_relativeSplatPath));return h.useMemo(()=>Lf(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function z3(e,t,n,r){To()||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 c=Re(),f;if(t){var u;let C=typeof t=="string"?Cn(t):t;s==="/"||(u=C.pathname)!=null&&u.startsWith(s)||te(!1),f=C}else f=c;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=W3(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(Hl.Provider,{value:{location:Ni({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Ie.Pop}},g):g}function B3(){let e=Z3(),t=_0(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 U3=h.createElement(B3,null);class H3 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 V3(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 W3(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(u=>u.route.id&&(l==null?void 0:l[u.route.id]));f>=0||te(!1),a=a.slice(0,Math.min(a.length,f+1))}let s=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((f,u,d)=>{let p,y=!1,g=null,C=null;n&&(p=l&&u.route.id?l[u.route.id]:void 0,g=u.route.errorElement||U3,s&&(c<0&&d===0?(J3("route-fallback",!1),y=!0,C=null):c===d&&(y=!0,C=u.route.hydrateFallbackElement||null)));let v=t.concat(a.slice(0,d+1)),m=()=>{let x;return p?x=g:y?x=C:u.route.Component?x=h.createElement(u.route.Component,null):u.route.element?x=u.route.element:x=f,h.createElement(V3,{match:u,routeContext:{outlet:f,matches:v,isDataRoute:n!=null},children:x})};return n&&(u.route.ErrorBoundary||u.route.errorElement||d===0)?h.createElement(H3,{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 K3(e){let t=h.useContext(Ui);return t||te(!1),t}function zf(e){let t=h.useContext(Df);return t||te(!1),t}function Y3(e){let t=h.useContext($r);return t||te(!1),t}function L0(e){let t=Y3(),n=t.matches[t.matches.length-1];return n.route.id||te(!1),n.route.id}function G3(){return zf(wo.UseNavigation).navigation}function Q3(){let{matches:e,loaderData:t}=zf(wo.UseMatches);return h.useMemo(()=>e.map(n=>x0(n,t)),[e,t])}function Z3(){var e;let t=h.useContext(P0),n=zf(wo.UseRouteError),r=L0(wo.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function X3(){let{router:e}=K3(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,Ni({fromRouteId:t},i)))},[e,t])}const Hh={};function J3(e,t,n){!t&&!Hh[e]&&(Hh[e]=!0)}function q3(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Ie.Pop,navigator:i,static:a=!1,future:l}=e;To()&&te(!1);let s=t.replace(/^\/*/,"/"),c=h.useMemo(()=>({basename:s,navigator:i,static:a,future:Ni({v7_relativeSplatPath:!1},l)}),[s,l,i,a]);typeof r=="string"&&(r=Cn(r));let{pathname:f="/",search:u="",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:u,hash:d,state:p,key:y},navigationType:o}},[s,f,u,d,p,y,o]);return g==null?null:h.createElement(nr.Provider,{value:c},h.createElement(Hl.Provider,{children:n,value:g}))}new Promise(()=>{});function ex(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 Ni(){return Ni=Object.assign?Object.assign.bind():function(e){for(var t=1;tUl(e,t),[t,e])}function A0(e){h.useContext(nr).static||h.useLayoutEffect(e)}function Ff(){let{isDataRoute:e}=h.useContext($r);return e?Xw():Fw()}function Fw(){To()||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(If(o,n.v7_relativeSplatPath)),l=h.useRef(!1);return A0(()=>{l.current=!0}),h.useCallback(function(c,f){if(f===void 0&&(f={}),!l.current)return;if(typeof c=="number"){r.go(c);return}let u=Lf(c,JSON.parse(a),i,f.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:dn([t,u.pathname])),(f.replace?r.replace:r.push)(u,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(If(o,r.v7_relativeSplatPath));return h.useMemo(()=>Lf(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function zw(e,t,n,r){To()||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 c=Re(),f;if(t){var u;let C=typeof t=="string"?Cn(t):t;s==="/"||(u=C.pathname)!=null&&u.startsWith(s)||te(!1),f=C}else f=c;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=Ww(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(Hl.Provider,{value:{location:Ni({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Ie.Pop}},g):g}function Bw(){let e=Zw(),t=_0(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 Uw=h.createElement(Bw,null);class Hw 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 Vw(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 Ww(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(u=>u.route.id&&(l==null?void 0:l[u.route.id]));f>=0||te(!1),a=a.slice(0,Math.min(a.length,f+1))}let s=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((f,u,d)=>{let p,y=!1,g=null,C=null;n&&(p=l&&u.route.id?l[u.route.id]:void 0,g=u.route.errorElement||Uw,s&&(c<0&&d===0?(Jw("route-fallback",!1),y=!0,C=null):c===d&&(y=!0,C=u.route.hydrateFallbackElement||null)));let v=t.concat(a.slice(0,d+1)),m=()=>{let x;return p?x=g:y?x=C:u.route.Component?x=h.createElement(u.route.Component,null):u.route.element?x=u.route.element:x=f,h.createElement(Vw,{match:u,routeContext:{outlet:f,matches:v,isDataRoute:n!=null},children:x})};return n&&(u.route.ErrorBoundary||u.route.errorElement||d===0)?h.createElement(Hw,{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 Kw(e){let t=h.useContext(Ui);return t||te(!1),t}function zf(e){let t=h.useContext(Df);return t||te(!1),t}function Yw(e){let t=h.useContext($r);return t||te(!1),t}function L0(e){let t=Yw(),n=t.matches[t.matches.length-1];return n.route.id||te(!1),n.route.id}function Gw(){return zf(wo.UseNavigation).navigation}function Qw(){let{matches:e,loaderData:t}=zf(wo.UseMatches);return h.useMemo(()=>e.map(n=>x0(n,t)),[e,t])}function Zw(){var e;let t=h.useContext(P0),n=zf(wo.UseRouteError),r=L0(wo.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Xw(){let{router:e}=Kw(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,Ni({fromRouteId:t},i)))},[e,t])}const Hh={};function Jw(e,t,n){!t&&!Hh[e]&&(Hh[e]=!0)}function qw(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Ie.Pop,navigator:i,static:a=!1,future:l}=e;To()&&te(!1);let s=t.replace(/^\/*/,"/"),c=h.useMemo(()=>({basename:s,navigator:i,static:a,future:Ni({v7_relativeSplatPath:!1},l)}),[s,l,i,a]);typeof r=="string"&&(r=Cn(r));let{pathname:f="/",search:u="",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:u,hash:d,state:p,key:y},navigationType:o}},[s,f,u,d,p,y,o]);return g==null?null:h.createElement(nr.Provider,{value:c},h.createElement(Hl.Provider,{children:n,value:g}))}new Promise(()=>{});function ex(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 nx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function rx(e,t){return e.button===0&&(!t||t==="_self")&&!nx(e)}const ox=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],ix="6";try{window.__reactRouterVersion=ix}catch{}function ax(e,t){return _3({basename:t==null?void 0:t.basename,future:xo({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Qw({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||lx(),routes:e,mapRouteProperties:ex,window:t==null?void 0:t.window}).initialize()}function lx(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=xo({},t,{errors:sx(t.errors)})),t}function sx(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 Mf(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 cx=h.createContext({isTransitioning:!1}),ux=h.createContext(new Map),fx="startTransition",Vh=$l[fx],dx="flushSync",Wh=Gw[dx];function hx(e){Vh?Vh(e):e()}function Ko(e){Wh?Wh(e):e()}class px{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 vx(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=h.useState(n.state),[a,l]=h.useState(),[s,c]=h.useState({isTransitioning:!1}),[f,u]=h.useState(),[d,p]=h.useState(),[y,g]=h.useState(),C=h.useRef(new Map),{v7_startTransition:v}=r||{},m=h.useCallback(b=>{v?hx(b):b()},[v]),x=h.useCallback((b,$)=>{let{deletedFetchers:k,unstable_flushSync:P,unstable_viewTransitionOpts:j}=$;k.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?Ko(()=>i(b)):m(()=>i(b));return}if(P){Ko(()=>{d&&(f&&f.resolve(),d.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:j.currentLocation,nextLocation:j.nextLocation})});let D=n.window.document.startViewTransition(()=>{Ko(()=>i(b))});D.finished.finally(()=>{Ko(()=>{u(void 0),p(void 0),l(void 0),c({isTransitioning:!1})})}),Ko(()=>p(D));return}d?(f&&f.resolve(),d.skipTransition(),g({state:b,currentLocation:j.currentLocation,nextLocation:j.nextLocation})):(l(b),c({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&&u(new px)},[s]),h.useEffect(()=>{if(f&&a&&n.window){let b=a,$=f.promise,k=n.window.document.startViewTransition(async()=>{m(()=>i(b)),await $});k.finished.finally(()=>{u(void 0),p(void 0),l(void 0),c({isTransitioning:!1})}),p(k)}},[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),c({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,$,k)=>n.navigate(b,{state:$,preventScrollReset:k==null?void 0:k.preventScrollReset}),replace:(b,$,k)=>n.navigate(b,{replace:!0,state:$,preventScrollReset:k==null?void 0:k.preventScrollReset})}),[n]),_=n.basename||"/",S=h.useMemo(()=>({router:n,navigator:E,static:!1,basename:_}),[n,E,_]);return h.createElement(h.Fragment,null,h.createElement(Ui.Provider,{value:S},h.createElement(Df.Provider,{value:o},h.createElement(ux.Provider,{value:C.current},h.createElement(cx.Provider,{value:s},h.createElement(q3,{basename:_,location:o.location,navigationType:o.historyAction,navigator:E,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?h.createElement(mx,{routes:n.routes,future:n.future,state:o}):t))))),null)}function mx(e){let{routes:t,future:n,state:r}=e;return z3(t,void 0,r,n)}const gx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",yx=/^(?:[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:c,preventScrollReset:f,unstable_viewTransition:u}=t,d=tx(t,ox),{basename:p}=h.useContext(nr),y,g=!1;if(typeof c=="string"&&yx.test(c)&&(y=c,gx))try{let x=new URL(window.location.href),E=c.startsWith("//")?new URL(x.protocol+c):new URL(c),_=br(E.pathname,p);E.origin===x.origin&&_!=null?c=_+E.search+E.hash:g=!0}catch{}let C=j3(c,{relative:o}),v=Ex(c,{replace:a,state:l,target:s,preventScrollReset:f,relative:o,unstable_viewTransition:u});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 wx(e){let{getKey:t,storageKey:n}=e;return Sx({getKey:t,storageKey:n}),null}var iu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(iu||(iu={}));var au;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(au||(au={}));function xx(e){let t=h.useContext(Ui);return t||te(!1),t}function Cx(e){let t=h.useContext(Df);return t||te(!1),t}function Ex(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=Ff(),c=Re(),f=O0(e,{relative:a});return h.useCallback(u=>{if(rx(u,n)){u.preventDefault();let d=r!==void 0?r:Cr(c)===Cr(f);s(e,{replace:d,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[c,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}=xx(iu.UseScrollRestoration),{restoreScrollPosition:o,preventScrollReset:i}=Cx(au.UseScrollRestoration),{basename:a}=h.useContext(nr),l=Re(),s=Q3(),c=G3();h.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),_x(h.useCallback(()=>{if(c.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,c.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,u=r==null?void 0:r.enableScrollRestoration(va,()=>window.scrollY,f);return()=>u&&u()},[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 _x(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:"Papee",link:"/api/papee"}]},{text:"Examples",collapsed:!0,items:[{text:"Example",link:"/api/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 bx({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 $x="modulepreload",Tx=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=Tx(s),s in Yh)return;Yh[s]=!0;const c=s.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(!!r)for(let p=i.length-1;p>=0;p--){const y=i[p];if(y.href===s&&(!c||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${f}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":$x,c||(d.as="script",d.crossOrigin=""),d.href=s,l&&d.setAttribute("nonce",l),document.head.appendChild(d),c)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-0upoFArx.js"),[]),path:"/codegen",type:"mdx",filePath:"codegen.mdx",lastUpdatedAt:1712676272e3},{lazy:()=>ot(()=>import("./codegen-0upoFArx.js"),[]),path:"/codegen.html",type:"mdx",filePath:"codegen.mdx",lastUpdatedAt:1712676272e3},{lazy:()=>ot(()=>import("./getting-started-CQl8xbZh.js"),[]),path:"/getting-started",type:"mdx",filePath:"getting-started.mdx",lastUpdatedAt:1712676272e3},{lazy:()=>ot(()=>import("./getting-started-CQl8xbZh.js"),[]),path:"/getting-started.html",type:"mdx",filePath:"getting-started.mdx",lastUpdatedAt:1712676272e3},{lazy:()=>ot(()=>import("./index-CfsVT3Xj.js"),[]),path:"/",type:"mdx",filePath:"index.mdx",lastUpdatedAt:1712676272e3},{lazy:()=>ot(()=>import("./providers-BtaotMKj.js"),[]),path:"/providers",type:"mdx",filePath:"providers.mdx",lastUpdatedAt:1712676272e3},{lazy:()=>ot(()=>import("./providers-BtaotMKj.js"),[]),path:"/providers.html",type:"mdx",filePath:"providers.mdx",lastUpdatedAt:1712676272e3},{lazy:()=>ot(()=>import("./signers-UAUMqQPV.js"),[]),path:"/signers",type:"mdx",filePath:"signers.mdx",lastUpdatedAt:1712676272e3},{lazy:()=>ot(()=>import("./signers-UAUMqQPV.js"),[]),path:"/signers.html",type:"mdx",filePath:"signers.mdx",lastUpdatedAt:1712676272e3},{lazy:()=>ot(()=>import("./types-CyrJcgNJ.js"),[]),path:"/types",type:"mdx",filePath:"types.mdx",lastUpdatedAt:1712676272e3},{lazy:()=>ot(()=>import("./types-CyrJcgNJ.js"),[]),path:"/types.html",type:"mdx",filePath:"types.mdx",lastUpdatedAt:1712676272e3},{lazy:()=>ot(()=>import("./papee-BKXhDthB.js"),[]),path:"/api/papee",type:"mdx",filePath:"api/papee.mdx",lastUpdatedAt:1712676272e3},{lazy:()=>ot(()=>import("./papee-BKXhDthB.js"),[]),path:"/api/papee.html",type:"mdx",filePath:"api/papee.mdx",lastUpdatedAt:1712676272e3},{lazy:()=>ot(()=>import("./example-CNmpC2Im.js"),[]),path:"/examples/example",type:"mdx",filePath:"examples/example.mdx",lastUpdatedAt:1712676272e3},{lazy:()=>ot(()=>import("./example-CNmpC2Im.js"),[]),path:"/examples/example.html",type:"mdx",filePath:"examples/example.mdx",lastUpdatedAt:1712676272e3}];var js={horizontalPadding:"var(--vocs-content_horizontalPadding)",verticalPadding:"var(--vocs-content_verticalPadding)",width:"var(--vocs-content_width)"},kx={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'},Rx={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)"},Ds={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 c=Nx(r,s);n[Qh(c)]=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 Px="var(--vocs_ExternalLink_iconUrl)",Ax="vocs_ExternalLink";const Ox=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:Ax),href:r,target:"_blank",rel:"noopener noreferrer",style:Gt({[Px]:`url(${l}/.vocs/icons/arrow-diagonal.svg)`}),...o,children:t})});var Zh="vocs_Link_accent_underlined",Xh="vocs_Link",Jh="vocs_Link_styleless",lu=new Map,ma=new WeakMap,qh=0,Ix=void 0;function Lx(e){return e?(ma.has(e)||(qh+=1,ma.set(e,qh.toString())),ma.get(e)):"0"}function Mx(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?Lx(e.root):e[t]}`).toString()}function jx(e){const t=Mx(e);let n=lu.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(a=>{a.forEach(l=>{var s;const c=l.isIntersecting&&o.some(f=>l.intersectionRatio>=f);e.trackVisibility&&typeof l.isVisible>"u"&&(l.isVisible=c),(s=r.get(l.target))==null||s.forEach(f=>{f(c,l)})})},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},lu.set(t,n)}return n}function Dx(e,t,n={},r=Ix){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}=jx(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(),lu.delete(o))}}function U0({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:a,initialInView:l,fallbackInView:s,onChange:c}={}){var f;const[u,d]=h.useState(null),p=h.useRef(),[y,g]=h.useState({inView:!!l,entry:void 0});p.current=c,h.useEffect(()=>{if(a||!u)return;let x;return x=Dx(u,(E,_)=>{g({inView:E,entry:_}),p.current&&p.current(E,_),_.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,u,o,r,i,a,n,s,t]);const C=(f=y.entry)==null?void 0:f.target,v=h.useRef();!u&&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 Fx(...e){return t=>{zx(t,...e)}}function zx(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(M0,{ref:Fx(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(Ox,{...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 Bx="vocs_NotFound_divider",Ux="vocs_NotFound",Hx="vocs_H1",H0="vocs_Heading",V0="vocs_Heading_slugTarget";function ko({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(ko,{...e,className:I(e.className,Hx),level:1})}var Vx="vocs_Paragraph";function K0(e){return w.jsx("p",{...e,className:I(e.className,Vx)})}function Wx(){return w.jsxs("div",{className:Ux,children:[w.jsx(W0,{children:"Page Not Found"}),w.jsx("div",{style:{height:Ds[24]}}),w.jsx("hr",{className:Bx}),w.jsx("div",{style:{height:Ds[24]}}),w.jsx(K0,{children:"The page you were looking for could not be found."}),w.jsx("div",{style:{height:Ds[8]}}),w.jsx(nn,{href:"/",children:"Go to Home Page"})]})}var Kx="var(--vocs_Banner_bannerBackgroundColor)",Yx="var(--vocs_Banner_bannerHeight)",Gx="var(--vocs_Banner_bannerTextColor)",Qx="vocs_Banner_closeButton",Zx="vocs_Banner_content",Xx="vocs_Banner_inner",Jx="vocs_Banner";const qx=Object.getPrototypeOf(e5).constructor;async function e5(e,t){return new qx(String(e))(t)}function t5(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 n5=["color"],r5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,n5);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"}))}),o5=["color"],i5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,o5);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"}))}),a5=["color"],l5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,a5);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"}))}),s5=["color"],c5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,s5);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"}))}),u5=["color"],f5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,u5);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"}))}),d5=["color"],Uf=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,d5);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"}))}),h5=["color"],p5=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:"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 v5({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}=t5(r,{...Vy,Fragment:h.Fragment});return o},[t]);return n?w.jsx("div",{className:I(Jx),style:Gt({[Kx]:t==null?void 0:t.backgroundColor,[Gx]:t==null?void 0:t.textColor}),children:w.jsxs("div",{className:I(Xx),children:[w.jsx("div",{className:I(Zx),children:w.jsx(n,{})}),(t==null?void 0:t.dismissable)!=="false"&&w.jsx("button",{className:I(Qx),onClick:e,type:"button",children:w.jsx(l5,{width:14,height:14})})]})}):null}var m5="vocs_Content";function Y0({children:e,className:t}){return w.jsx("article",{className:I(t,m5),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 Vl(){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=Vl(),{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 g5(){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 y5="vocs_utils_visibleDark",w5="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=>x5(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 c(u){const{scope:d,children:p,...y}=u,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(u,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(`\`${u}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,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,C5(o,...t)]}function C5(...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:c})=>{const u=s(i)[`__scope${c}`];return{...l,...u}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}const gn=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},E5=$l.useId||(()=>{});let S5=0;function rn(e){const[t,n]=h.useState(E5());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]=_5({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,l=at(n),s=h.useCallback(c=>{if(i){const u=typeof c=="function"?c(e):c;u!==e&&l(u)}else o(c)},[i,e,o,l]);return[a,s]}function _5({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($5);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(su,Y({},r,{ref:t}),h.isValidElement(a)?h.cloneElement(a,void 0,l):null)}return h.createElement(su,Y({},r,{ref:t}),n)});Co.displayName="Slot";const su=h.forwardRef((e,t)=>{const{children:n,...r}=e;return h.isValidElement(n)?h.cloneElement(n,{...T5(r,n.props),ref:t?X0(t,n.ref):n.ref}):h.Children.count(n)>1?h.Children.only(null):null});su.displayName="SlotClone";const b5=({children:e})=>h.createElement(h.Fragment,null,e);function $5(e){return h.isValidElement(e)&&e.type===b5}function T5(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 k5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],fe=k5.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 cu(e,t){e&&$o.flushSync(()=>e.dispatchEvent(t))}function R5(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 uu="dismissableLayer.update",N5="dismissableLayer.pointerDownOutside",P5="dismissableLayer.focusOutside";let ep;const A5=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,...c}=e,f=h.useContext(A5),[u,d]=h.useState(null),p=(n=u==null?void 0:u.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=u?C.indexOf(u):-1,E=f.layersWithOutsidePointerEventsDisabled.size>0,_=x>=m,S=O5($=>{const k=$.target,P=[...f.branches].some(j=>j.contains(k));!_||P||(i==null||i($),l==null||l($),$.defaultPrevented||s==null||s())},p),b=I5($=>{const k=$.target;[...f.branches].some(j=>j.contains(k))||(a==null||a($),l==null||l($),$.defaultPrevented||s==null||s())},p);return R5($=>{x===f.layers.size-1&&(o==null||o($),!$.defaultPrevented&&s&&($.preventDefault(),s()))},p),h.useEffect(()=>{if(u)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(ep=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(u)),f.layers.add(u),tp(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=ep)}},[u,p,r,f]),h.useEffect(()=>()=>{u&&(f.layers.delete(u),f.layersWithOutsidePointerEventsDisabled.delete(u),tp())},[u,f]),h.useEffect(()=>{const $=()=>y({});return document.addEventListener(uu,$),()=>document.removeEventListener(uu,$)},[]),h.createElement(fe.div,Y({},c,{ref:g,style:{pointerEvents:E?_?"auto":"none":void 0,...e.style},onFocusCapture:ae(e.onFocusCapture,b.onFocusCapture),onBlurCapture:ae(e.onBlurCapture,b.onBlurCapture),onPointerDownCapture:ae(e.onPointerDownCapture,S.onPointerDownCapture)}))});function O5(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 c=function(){J0(N5,n,s,{discrete:!0})};const s={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}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 I5(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(P5,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(uu);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?cu(o,i):o.dispatchEvent(i)}const Fs="focusScope.autoFocusOnMount",zs="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),c=at(o),f=at(i),u=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)?u.current=E:Pn(u.current,{select:!0})},C=function(x){if(p.paused||!l)return;const E=x.relatedTarget;E!==null&&(l.contains(E)||Pn(u.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const _ of x)_.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(Fs,np);l.addEventListener(Fs,c),l.dispatchEvent(v),v.defaultPrevented||(L5(z5(eg(l)),{select:!0}),document.activeElement===g&&Pn(l))}return()=>{l.removeEventListener(Fs,c),setTimeout(()=>{const v=new CustomEvent(zs,np);l.addEventListener(zs,f),l.dispatchEvent(v),v.defaultPrevented||Pn(g??document.body,{select:!0}),l.removeEventListener(zs,f),op.remove(p)},0)}}},[l,c,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]=M5(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 L5(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Pn(r,{select:t}),document.activeElement!==n)return}function M5(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(!j5(n,{upTo:t}))return n}function j5(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 D5(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&&D5(e)&&t&&e.select()}}const op=F5();function F5(){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 z5(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 B5(e,t){return h.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Sn=e=>{const{present:t,children:n}=e,r=U5(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};Sn.displayName="Presence";function U5(e){const[t,n]=h.useState(),r=h.useRef({}),o=h.useRef(e),i=h.useRef("none"),a=e?"mounted":"unmounted",[l,s]=B5(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const c=ga(r.current);i.current=l==="mounted"?c:"none"},[l]),gn(()=>{const c=r.current,f=o.current;if(f!==e){const d=i.current,p=ga(c);e?s("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?s("UNMOUNT"):s(f&&d!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),gn(()=>{if(t){const c=u=>{const p=ga(r.current).includes(u.animationName);u.target===t&&p&&$o.flushSync(()=>s("ANIMATION_END"))},f=u=>{u.target===t&&(i.current=ga(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:h.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function ga(e){return(e==null?void 0:e.animationName)||"none"}let Bs=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()),Bs++,()=>{Bs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Bs--}},[])}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 i4;var t=a4(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])}},s4=ag(),lo="data-scroll-locked",c4=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 nx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function rx(e,t){return e.button===0&&(!t||t==="_self")&&!nx(e)}const ox=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],ix="6";try{window.__reactRouterVersion=ix}catch{}function ax(e,t){return _w({basename:t==null?void 0:t.basename,future:xo({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Q3({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||lx(),routes:e,mapRouteProperties:ex,window:t==null?void 0:t.window}).initialize()}function lx(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=xo({},t,{errors:sx(t.errors)})),t}function sx(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 Mf(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 cx=h.createContext({isTransitioning:!1}),ux=h.createContext(new Map),fx="startTransition",Vh=$l[fx],dx="flushSync",Wh=G3[dx];function hx(e){Vh?Vh(e):e()}function Ko(e){Wh?Wh(e):e()}class px{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 vx(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=h.useState(n.state),[a,l]=h.useState(),[s,c]=h.useState({isTransitioning:!1}),[f,u]=h.useState(),[d,p]=h.useState(),[y,g]=h.useState(),C=h.useRef(new Map),{v7_startTransition:v}=r||{},m=h.useCallback(b=>{v?hx(b):b()},[v]),x=h.useCallback((b,$)=>{let{deletedFetchers:k,unstable_flushSync:P,unstable_viewTransitionOpts:j}=$;k.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?Ko(()=>i(b)):m(()=>i(b));return}if(P){Ko(()=>{d&&(f&&f.resolve(),d.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:j.currentLocation,nextLocation:j.nextLocation})});let D=n.window.document.startViewTransition(()=>{Ko(()=>i(b))});D.finished.finally(()=>{Ko(()=>{u(void 0),p(void 0),l(void 0),c({isTransitioning:!1})})}),Ko(()=>p(D));return}d?(f&&f.resolve(),d.skipTransition(),g({state:b,currentLocation:j.currentLocation,nextLocation:j.nextLocation})):(l(b),c({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&&u(new px)},[s]),h.useEffect(()=>{if(f&&a&&n.window){let b=a,$=f.promise,k=n.window.document.startViewTransition(async()=>{m(()=>i(b)),await $});k.finished.finally(()=>{u(void 0),p(void 0),l(void 0),c({isTransitioning:!1})}),p(k)}},[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),c({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,$,k)=>n.navigate(b,{state:$,preventScrollReset:k==null?void 0:k.preventScrollReset}),replace:(b,$,k)=>n.navigate(b,{replace:!0,state:$,preventScrollReset:k==null?void 0:k.preventScrollReset})}),[n]),_=n.basename||"/",S=h.useMemo(()=>({router:n,navigator:E,static:!1,basename:_}),[n,E,_]);return h.createElement(h.Fragment,null,h.createElement(Ui.Provider,{value:S},h.createElement(Df.Provider,{value:o},h.createElement(ux.Provider,{value:C.current},h.createElement(cx.Provider,{value:s},h.createElement(qw,{basename:_,location:o.location,navigationType:o.historyAction,navigator:E,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?h.createElement(mx,{routes:n.routes,future:n.future,state:o}):t))))),null)}function mx(e){let{routes:t,future:n,state:r}=e;return zw(t,void 0,r,n)}const gx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",yx=/^(?:[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:c,preventScrollReset:f,unstable_viewTransition:u}=t,d=tx(t,ox),{basename:p}=h.useContext(nr),y,g=!1;if(typeof c=="string"&&yx.test(c)&&(y=c,gx))try{let x=new URL(window.location.href),E=c.startsWith("//")?new URL(x.protocol+c):new URL(c),_=br(E.pathname,p);E.origin===x.origin&&_!=null?c=_+E.search+E.hash:g=!0}catch{}let C=jw(c,{relative:o}),v=Ex(c,{replace:a,state:l,target:s,preventScrollReset:f,relative:o,unstable_viewTransition:u});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 wx(e){let{getKey:t,storageKey:n}=e;return Sx({getKey:t,storageKey:n}),null}var iu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(iu||(iu={}));var au;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(au||(au={}));function xx(e){let t=h.useContext(Ui);return t||te(!1),t}function Cx(e){let t=h.useContext(Df);return t||te(!1),t}function Ex(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=Ff(),c=Re(),f=O0(e,{relative:a});return h.useCallback(u=>{if(rx(u,n)){u.preventDefault();let d=r!==void 0?r:Cr(c)===Cr(f);s(e,{replace:d,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[c,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}=xx(iu.UseScrollRestoration),{restoreScrollPosition:o,preventScrollReset:i}=Cx(au.UseScrollRestoration),{basename:a}=h.useContext(nr),l=Re(),s=Qw(),c=Gw();h.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),_x(h.useCallback(()=>{if(c.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,c.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,u=r==null?void 0:r.enableScrollRestoration(va,()=>window.scrollY,f);return()=>u&&u()},[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 _x(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:"Papee",link:"/api/papee"}]},{text:"Examples",collapsed:!0,items:[{text:"Example",link:"/api/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 bx({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 $x="modulepreload",Tx=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=Tx(s),s in Yh)return;Yh[s]=!0;const c=s.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(!!r)for(let p=i.length-1;p>=0;p--){const y=i[p];if(y.href===s&&(!c||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${f}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":$x,c||(d.as="script",d.crossOrigin=""),d.href=s,l&&d.setAttribute("nonce",l),document.head.appendChild(d),c)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-Bh5eoQDz.js"),[]),path:"/codegen",type:"mdx",filePath:"codegen.mdx",lastUpdatedAt:1712736726e3},{lazy:()=>ot(()=>import("./codegen-Bh5eoQDz.js"),[]),path:"/codegen.html",type:"mdx",filePath:"codegen.mdx",lastUpdatedAt:1712736726e3},{lazy:()=>ot(()=>import("./getting-started-DcUe33g8.js"),[]),path:"/getting-started",type:"mdx",filePath:"getting-started.mdx",lastUpdatedAt:1712736726e3},{lazy:()=>ot(()=>import("./getting-started-DcUe33g8.js"),[]),path:"/getting-started.html",type:"mdx",filePath:"getting-started.mdx",lastUpdatedAt:1712736726e3},{lazy:()=>ot(()=>import("./index-IzcaZyYV.js"),[]),path:"/",type:"mdx",filePath:"index.mdx",lastUpdatedAt:1712736726e3},{lazy:()=>ot(()=>import("./providers-BKYES1bh.js"),[]),path:"/providers",type:"mdx",filePath:"providers.mdx",lastUpdatedAt:1712736726e3},{lazy:()=>ot(()=>import("./providers-BKYES1bh.js"),[]),path:"/providers.html",type:"mdx",filePath:"providers.mdx",lastUpdatedAt:1712736726e3},{lazy:()=>ot(()=>import("./signers-Cfud28Tt.js"),[]),path:"/signers",type:"mdx",filePath:"signers.mdx",lastUpdatedAt:1712736726e3},{lazy:()=>ot(()=>import("./signers-Cfud28Tt.js"),[]),path:"/signers.html",type:"mdx",filePath:"signers.mdx",lastUpdatedAt:1712736726e3},{lazy:()=>ot(()=>import("./types-DUI4UvkS.js"),[]),path:"/types",type:"mdx",filePath:"types.mdx",lastUpdatedAt:1712736726e3},{lazy:()=>ot(()=>import("./types-DUI4UvkS.js"),[]),path:"/types.html",type:"mdx",filePath:"types.mdx",lastUpdatedAt:1712736726e3},{lazy:()=>ot(()=>import("./papee-CMy-8tBd.js"),[]),path:"/api/papee",type:"mdx",filePath:"api/papee.mdx",lastUpdatedAt:1712736726e3},{lazy:()=>ot(()=>import("./papee-CMy-8tBd.js"),[]),path:"/api/papee.html",type:"mdx",filePath:"api/papee.mdx",lastUpdatedAt:1712736726e3},{lazy:()=>ot(()=>import("./example-CNsmIRzd.js"),[]),path:"/examples/example",type:"mdx",filePath:"examples/example.mdx",lastUpdatedAt:1712736726e3},{lazy:()=>ot(()=>import("./example-CNsmIRzd.js"),[]),path:"/examples/example.html",type:"mdx",filePath:"examples/example.mdx",lastUpdatedAt:1712736726e3}];var js={horizontalPadding:"var(--vocs-content_horizontalPadding)",verticalPadding:"var(--vocs-content_verticalPadding)",width:"var(--vocs-content_width)"},kx={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'},Rx={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)"},Ds={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 c=Nx(r,s);n[Qh(c)]=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 Px="var(--vocs_ExternalLink_iconUrl)",Ax="vocs_ExternalLink";const Ox=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:Ax),href:r,target:"_blank",rel:"noopener noreferrer",style:Gt({[Px]:`url(${l}/.vocs/icons/arrow-diagonal.svg)`}),...o,children:t})});var Zh="vocs_Link_accent_underlined",Xh="vocs_Link",Jh="vocs_Link_styleless",lu=new Map,ma=new WeakMap,qh=0,Ix=void 0;function Lx(e){return e?(ma.has(e)||(qh+=1,ma.set(e,qh.toString())),ma.get(e)):"0"}function Mx(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?Lx(e.root):e[t]}`).toString()}function jx(e){const t=Mx(e);let n=lu.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(a=>{a.forEach(l=>{var s;const c=l.isIntersecting&&o.some(f=>l.intersectionRatio>=f);e.trackVisibility&&typeof l.isVisible>"u"&&(l.isVisible=c),(s=r.get(l.target))==null||s.forEach(f=>{f(c,l)})})},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},lu.set(t,n)}return n}function Dx(e,t,n={},r=Ix){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}=jx(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(),lu.delete(o))}}function U0({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:a,initialInView:l,fallbackInView:s,onChange:c}={}){var f;const[u,d]=h.useState(null),p=h.useRef(),[y,g]=h.useState({inView:!!l,entry:void 0});p.current=c,h.useEffect(()=>{if(a||!u)return;let x;return x=Dx(u,(E,_)=>{g({inView:E,entry:_}),p.current&&p.current(E,_),_.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,u,o,r,i,a,n,s,t]);const C=(f=y.entry)==null?void 0:f.target,v=h.useRef();!u&&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 Fx(...e){return t=>{zx(t,...e)}}function zx(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(M0,{ref:Fx(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(Ox,{...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 Bx="vocs_NotFound_divider",Ux="vocs_NotFound",Hx="vocs_H1",H0="vocs_Heading",V0="vocs_Heading_slugTarget";function ko({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(ko,{...e,className:I(e.className,Hx),level:1})}var Vx="vocs_Paragraph";function K0(e){return w.jsx("p",{...e,className:I(e.className,Vx)})}function Wx(){return w.jsxs("div",{className:Ux,children:[w.jsx(W0,{children:"Page Not Found"}),w.jsx("div",{style:{height:Ds[24]}}),w.jsx("hr",{className:Bx}),w.jsx("div",{style:{height:Ds[24]}}),w.jsx(K0,{children:"The page you were looking for could not be found."}),w.jsx("div",{style:{height:Ds[8]}}),w.jsx(nn,{href:"/",children:"Go to Home Page"})]})}var Kx="var(--vocs_Banner_bannerBackgroundColor)",Yx="var(--vocs_Banner_bannerHeight)",Gx="var(--vocs_Banner_bannerTextColor)",Qx="vocs_Banner_closeButton",Zx="vocs_Banner_content",Xx="vocs_Banner_inner",Jx="vocs_Banner";const qx=Object.getPrototypeOf(e5).constructor;async function e5(e,t){return new qx(String(e))(t)}function t5(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 n5=["color"],r5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,n5);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"}))}),o5=["color"],i5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,o5);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"}))}),a5=["color"],l5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,a5);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"}))}),s5=["color"],c5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,s5);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"}))}),u5=["color"],f5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,u5);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"}))}),d5=["color"],Uf=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,d5);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"}))}),h5=["color"],p5=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:"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 v5({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}=t5(r,{...Vy,Fragment:h.Fragment});return o},[t]);return n?w.jsx("div",{className:I(Jx),style:Gt({[Kx]:t==null?void 0:t.backgroundColor,[Gx]:t==null?void 0:t.textColor}),children:w.jsxs("div",{className:I(Xx),children:[w.jsx("div",{className:I(Zx),children:w.jsx(n,{})}),(t==null?void 0:t.dismissable)!=="false"&&w.jsx("button",{className:I(Qx),onClick:e,type:"button",children:w.jsx(l5,{width:14,height:14})})]})}):null}var m5="vocs_Content";function Y0({children:e,className:t}){return w.jsx("article",{className:I(t,m5),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 Vl(){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=Vl(),{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 g5(){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 y5="vocs_utils_visibleDark",w5="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=>x5(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 c(u){const{scope:d,children:p,...y}=u,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(u,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(`\`${u}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,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,C5(o,...t)]}function C5(...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:c})=>{const u=s(i)[`__scope${c}`];return{...l,...u}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}const gn=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},E5=$l.useId||(()=>{});let S5=0;function rn(e){const[t,n]=h.useState(E5());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]=_5({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,l=at(n),s=h.useCallback(c=>{if(i){const u=typeof c=="function"?c(e):c;u!==e&&l(u)}else o(c)},[i,e,o,l]);return[a,s]}function _5({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($5);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(su,Y({},r,{ref:t}),h.isValidElement(a)?h.cloneElement(a,void 0,l):null)}return h.createElement(su,Y({},r,{ref:t}),n)});Co.displayName="Slot";const su=h.forwardRef((e,t)=>{const{children:n,...r}=e;return h.isValidElement(n)?h.cloneElement(n,{...T5(r,n.props),ref:t?X0(t,n.ref):n.ref}):h.Children.count(n)>1?h.Children.only(null):null});su.displayName="SlotClone";const b5=({children:e})=>h.createElement(h.Fragment,null,e);function $5(e){return h.isValidElement(e)&&e.type===b5}function T5(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 k5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],fe=k5.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 cu(e,t){e&&$o.flushSync(()=>e.dispatchEvent(t))}function R5(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 uu="dismissableLayer.update",N5="dismissableLayer.pointerDownOutside",P5="dismissableLayer.focusOutside";let ep;const A5=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,...c}=e,f=h.useContext(A5),[u,d]=h.useState(null),p=(n=u==null?void 0:u.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=u?C.indexOf(u):-1,E=f.layersWithOutsidePointerEventsDisabled.size>0,_=x>=m,S=O5($=>{const k=$.target,P=[...f.branches].some(j=>j.contains(k));!_||P||(i==null||i($),l==null||l($),$.defaultPrevented||s==null||s())},p),b=I5($=>{const k=$.target;[...f.branches].some(j=>j.contains(k))||(a==null||a($),l==null||l($),$.defaultPrevented||s==null||s())},p);return R5($=>{x===f.layers.size-1&&(o==null||o($),!$.defaultPrevented&&s&&($.preventDefault(),s()))},p),h.useEffect(()=>{if(u)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(ep=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(u)),f.layers.add(u),tp(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=ep)}},[u,p,r,f]),h.useEffect(()=>()=>{u&&(f.layers.delete(u),f.layersWithOutsidePointerEventsDisabled.delete(u),tp())},[u,f]),h.useEffect(()=>{const $=()=>y({});return document.addEventListener(uu,$),()=>document.removeEventListener(uu,$)},[]),h.createElement(fe.div,Y({},c,{ref:g,style:{pointerEvents:E?_?"auto":"none":void 0,...e.style},onFocusCapture:ae(e.onFocusCapture,b.onFocusCapture),onBlurCapture:ae(e.onBlurCapture,b.onBlurCapture),onPointerDownCapture:ae(e.onPointerDownCapture,S.onPointerDownCapture)}))});function O5(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 c=function(){J0(N5,n,s,{discrete:!0})};const s={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}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 I5(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(P5,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(uu);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?cu(o,i):o.dispatchEvent(i)}const Fs="focusScope.autoFocusOnMount",zs="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),c=at(o),f=at(i),u=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)?u.current=E:Pn(u.current,{select:!0})},C=function(x){if(p.paused||!l)return;const E=x.relatedTarget;E!==null&&(l.contains(E)||Pn(u.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const _ of x)_.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(Fs,np);l.addEventListener(Fs,c),l.dispatchEvent(v),v.defaultPrevented||(L5(z5(eg(l)),{select:!0}),document.activeElement===g&&Pn(l))}return()=>{l.removeEventListener(Fs,c),setTimeout(()=>{const v=new CustomEvent(zs,np);l.addEventListener(zs,f),l.dispatchEvent(v),v.defaultPrevented||Pn(g??document.body,{select:!0}),l.removeEventListener(zs,f),op.remove(p)},0)}}},[l,c,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]=M5(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 L5(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Pn(r,{select:t}),document.activeElement!==n)return}function M5(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(!j5(n,{upTo:t}))return n}function j5(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 D5(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&&D5(e)&&t&&e.select()}}const op=F5();function F5(){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 z5(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 B5(e,t){return h.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Sn=e=>{const{present:t,children:n}=e,r=U5(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};Sn.displayName="Presence";function U5(e){const[t,n]=h.useState(),r=h.useRef({}),o=h.useRef(e),i=h.useRef("none"),a=e?"mounted":"unmounted",[l,s]=B5(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const c=ga(r.current);i.current=l==="mounted"?c:"none"},[l]),gn(()=>{const c=r.current,f=o.current;if(f!==e){const d=i.current,p=ga(c);e?s("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?s("UNMOUNT"):s(f&&d!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),gn(()=>{if(t){const c=u=>{const p=ga(r.current).includes(u.animationName);u.target===t&&p&&$o.flushSync(()=>s("ANIMATION_END"))},f=u=>{u.target===t&&(i.current=ga(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:h.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function ga(e){return(e==null?void 0:e.animationName)||"none"}let Bs=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()),Bs++,()=>{Bs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Bs--}},[])}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 i4;var t=a4(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])}},s4=ag(),lo="data-scroll-locked",c4=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(V5,` { overflow: hidden `).concat(r,`; padding-right: `).concat(l,"px ").concat(r,`; @@ -105,12 +105,12 @@ Error generating stack: `+i.message+` `)},sp=function(){var e=parseInt(document.body.getAttribute(lo)||"0",10);return isFinite(e)?e:0},u4=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())}},[])},f4=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;u4();var i=h.useMemo(function(){return l4(o)},[o]);return h.createElement(s4,{styles:c4(i,!t,o,n?"":"!important")})},fu=!1;if(typeof window<"u")try{var ya=Object.defineProperty({},"passive",{get:function(){return fu=!0,!0}});window.addEventListener("test",ya,ya),window.removeEventListener("test",ya,ya)}catch{fu=!1}var Mr=fu?{passive:!1}:!1,d4=function(e){return e.tagName==="TEXTAREA"},lg=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!d4(e)&&n[t]==="visible")},h4=function(e){return lg(e,"overflowY")},p4=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},v4=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},m4=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},sg=function(e,t){return e==="v"?h4(t):p4(t)},cg=function(e,t){return e==="v"?v4(t):m4(t)},g4=function(e,t){return e==="h"&&t==="rtl"?-1:1},y4=function(e,t,n,r,o){var i=g4(e,window.getComputedStyle(t).direction),a=i*r,l=n.target,s=t.contains(l),c=!1,f=a>0,u=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)&&(u+=v,d+=y),l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(f&&(o&&u===0||!o&&a>u)||!f&&(o&&d===0||!o&&-a>d))&&(c=!0),c},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},w4=function(e,t){return e[0]===t[0]&&e[1]===t[1]},x4=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},C4=0,jr=[];function E4(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(C4++)[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=H5([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"&&S.type==="range")return!1;var $=cp(b,S);if(!$)return!0;if($?_=b:(_=b==="v"?"h":"v",$=cp(b,S)),!$)return!1;if(!r.current&&"changedTouches"in g&&(x||E)&&(r.current=_),!_)return!0;var k=r.current||_;return y4(k,C,g,k==="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(_){return _.name===C.type&&_.target===C.target&&w4(_.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(_){return _.contains(C.target)}),E=x.length>0?l(C,x[0]):!a.current.noIsolation;E&&C.cancelable&&C.preventDefault()}}},[]),c=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},[]),u=h.useCallback(function(g){c(g.type,up(g),g.target,l(g,e.lockRef.current))},[]),d=h.useCallback(function(g){c(g.type,wa(g),g.target,l(g,e.lockRef.current))},[]);h.useEffect(function(){return jr.push(i),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,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:x4(o)}):null,p?h.createElement(f4,{gapMode:"margin"}):null)}const S4=J5(ig,E4);var ug=h.forwardRef(function(e,t){return h.createElement(Wl,qt({},e,{ref:t,sideCar:S4}))});ug.classNames=Wl.classNames;const fg=ug;var _4=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={},Ws=0,dg=function(e){return e&&(e.host||dg(e.parentNode))},b4=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})},$4=function(e,t,n,r){var o=b4(t,Array.isArray(e)?e:[e]);Ca[n]||(Ca[n]=new WeakMap);var i=Ca[n],a=[],l=new Set,s=new Set(o),c=function(u){!u||l.has(u)||(l.add(u),c(u.parentNode))};o.forEach(c);var f=function(u){!u||s.has(u)||Array.prototype.forEach.call(u.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(),Ws++,function(){a.forEach(function(u){var d=Dr.get(u)-1,p=i.get(u)-1;Dr.set(u,d),i.set(u,p),d||(xa.has(u)||u.removeAttribute(r),xa.delete(u)),p||u.removeAttribute(n)}),Ws--,Ws||(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||_4(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),$4(r,o,n,"aria-hidden")):function(){return null}};const pg="Dialog",[vg,qb]=En(pg),[T4,_n]=vg(pg),k4=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,l=h.useRef(null),s=h.useRef(null),[c=!1,f]=rr({prop:r,defaultProp:o,onChange:i});return h.createElement(T4,{scope:t,triggerRef:l,contentRef:s,contentId:rn(),titleId:rn(),descriptionId:rn(),open:c,onOpenChange:f,onOpenToggle:h.useCallback(()=>f(u=>!u),[f]),modal:a},n)},R4="DialogTrigger",N4=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_n(R4,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",[P4,gg]=vg(mg,{forceMount:void 0}),A4=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=_n(mg,t);return h.createElement(P4,{scope:t,forceMount:n},h.Children.map(r,a=>h.createElement(Sn,{present:n||i.open},h.createElement(tg,{asChild:!0,container:o},a))))},du="DialogOverlay",O4=h.forwardRef((e,t)=>{const n=gg(du,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=_n(du,e.__scopeDialog);return i.modal?h.createElement(Sn,{present:r||i.open},h.createElement(I4,Y({},o,{ref:t}))):null}),I4=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_n(du,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}})))}),Pi="DialogContent",L4=h.forwardRef((e,t)=>{const n=gg(Pi,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=_n(Pi,e.__scopeDialog);return h.createElement(Sn,{present:r||i.open},i.modal?h.createElement(M4,Y({},o,{ref:t})):h.createElement(j4,Y({},o,{ref:t})))}),M4=h.forwardRef((e,t)=>{const n=_n(Pi,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())}))}),j4=h.forwardRef((e,t)=>{const n=_n(Pi,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=_n(Pi,n),s=h.useRef(null),c=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:c,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),D4="DialogTitle",F4=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_n(D4,n);return h.createElement(fe.h2,Y({id:o.titleId},r,{ref:t}))});function Vf(e){return e?"open":"closed"}const wg=k4,xg=N4,z4=A4,B4=O4,U4=L4,H4=F4;var pe=function(){return pe=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[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 K4="ENTRIES",Cg="KEYS",Eg="VALUES",Qe="",Ks=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]},Y4=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}Sg(e.get(p),t,n,r,o,g,a,l+p)}}}catch(D){s={error:D}}finally{try{d&&!d.done&&(c=u.return)&&c.call(u)}finally{if(s)throw s.error}}},Ys=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],c=l[1];try{for(var f=ne(s.keys()),u=f.next();!u.done;u=f.next()){var d=u.value;if(d!==Qe&&d.startsWith(c)){var p=new Map;return p.set(d.slice(c.length),s.get(d)),new e(p,t)}}}catch(y){n={error:y}}finally{try{u&&!u.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,G4(this._tree,t)},e.prototype.entries=function(){return new Ks(this,K4)},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(c){n={error:c}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.fuzzyGet=function(t,n){return Y4(this._tree,t,n)},e.prototype.get=function(t){var n=hu(this._tree,t);return n!==void 0?n.get(Qe):void 0},e.prototype.has=function(t){var n=hu(this._tree,t);return n!==void 0&&n.has(Qe)},e.prototype.keys=function(){return new Ks(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=Gs(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=Gs(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=Gs(this._tree,t),o=r.get(Qe);return o===void 0&&r.set(Qe,o=n()),o},e.prototype.values=function(){return new Ks(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],c=l[1];o.set(s,c)}}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)},hu=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 hu(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}}},Gs=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 Ys,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=vu,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 V4(this,void 0,void 0,function(){var r,o,i,a,l,s,c,f,u,d,p,y,g,C,v,m,x,E,_,S,b,$,k,P,j;return W4(this,function(L){switch(L.label){case 0:if(r=this._dirtCount,!this.vacuumConditionsMet(n))return[3,10];o=t.batchSize||pu.batchSize,i=t.batchWait||pu.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];c=Le(s.value,2),f=c[0],u=c[1];try{for(d=($=void 0,ne(u)),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?u.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&&(k=d.return)&&k.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 _=L.sent(),S={error:_},[3,9];case 8:try{s&&!s.done&&(b=l.return)&&b.call(l)}finally{if(S)throw S.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||Xs.minDirtCount,r=r||Xs.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 c=Le(s.value,2),f=c[0],u=c[1],d=u.score,p=u.terms,y=u.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)),c=s.next();!c.done;c=s.next()){var f=c.value,u=f.score,d=f.terms,p=d.join(" "),y=l.get(p);y!=null?(y.score+=u,y.count+=1):l.set(p,{score:u,terms:d,count:1})}}catch(_){r={error:_}}finally{try{c&&!c.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],u=x.score,d=x.terms,E=x.count;g.push({suggestion:y,terms:d,score:u/E})}}catch(_){i={error:_}}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(Zs.hasOwnProperty(t))return Qs(Zs,t);throw new Error('MiniSearch: unknown option "'.concat(t,'"'))},e.loadJS=function(t,n){var r,o,i,a,l,s,c=t.index,f=t.documentCount,u=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=u,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 Ys;try{for(var E=ne(x._documentIds),_=E.next();!_.done;_=E.next()){var S=Le(_.value,2),b=S[0],$=S[1];x._idToShortId.set($,b)}}catch(F){r={error:F}}finally{try{_&&!_.done&&(o=E.return)&&o.call(E)}finally{if(r)throw r.error}}try{for(var k=ne(c),P=k.next();!P.done;P=k.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=k.return)&&a.call(k)}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,c=a.searchOptions,f=pe(pe({tokenize:l,processTerm:s},c),n),u=f.tokenize,d=f.processTerm,p=u(t).flatMap(function(C){return d(C)}).filter(function(C){return!!C}),y=p.map(e7(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]=Qs(l.boost,O)||1,F))},{}),c=l.boostDocument,f=l.weights,u=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,c,d),m,x;if(t.prefix&&(m=this._index.atPrefix(t.term)),t.fuzzy){var E=t.fuzzy===!0?.2:t.fuzzy,_=E<1?Math.min(u,Math.round(t.term.length*E)):E;_&&(x=this._index.fuzzyGet(t.term,_))}if(m)try{for(var S=ne(m),b=S.next();!b.done;b=S.next()){var $=Le(b.value,2),k=$[0],P=$[1],j=k.length-t.term.length;if(j){x==null||x.delete(k);var L=g*k.length/(k.length+.3*j);this.termResults(t.term,k,L,P,s,c,d,v)}}}catch(U){r={error:U}}finally{try{b&&!b.done&&(o=S.return)&&o.call(S)}finally{if(r)throw r.error}}if(x)try{for(var D=ne(x.keys()),N=D.next();!N.done;N=D.next()){var k=N.value,z=Le(x.get(k),2),V=z[0],j=z[1];if(j){var L=y*k.length/(k.length+j);this.termResults(t.term,k,L,V,s,c,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),c=s[0],f=s[1],u=i.boostDocument?i.boostDocument(f,"",this._storedFields.get(c)):1;o.set(c,{score:u,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(X4[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),c=s[0],f=s[1],u={};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];u[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([c,u])}}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 c,f,u,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,_=this._avgFieldLength[m];try{for(var S=(u=void 0,ne(x.keys())),b=S.next();!b.done;b=S.next()){var $=b.value;if(!this._documentIds.has($)){this.removeTerm(m,$,n),E-=1;continue}var k=a?a(this._documentIds.get($),n,this._storedFields.get($)):1;if(k){var P=x.get($),j=this._fieldLength.get($)[m],L=q4(P,E,this._documentCount,j,_,l),D=r*v*k*L,N=s.get($);if(N){N.score+=D,n7(N.terms,t);var z=Qs(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){u={error:V}}finally{try{b&&!b.done&&(d=S.return)&&d.call(S)}finally{if(u)throw u.error}}}}}catch(V){c={error:V}}finally{try{g&&!g.done&&(f=y.return)&&f.call(y)}finally{if(c)throw c.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(c){o={error:c}}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-b16c61b4.json")).json());let Js;function Tg(){const[e,t]=h.useState();return h.useEffect(()=>{(async()=>{Js||(Js=o7());const n=await Js,r=Z4.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 i7="vocs_DesktopSearch_search",a7="vocs_DesktopSearch_searchCommand";const l7=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()}}))),s7=l7;var kg={exports:{}};/*!*************************************************** +`)},C4=0,jr=[];function E4(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(C4++)[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=H5([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"&&S.type==="range")return!1;var $=cp(b,S);if(!$)return!0;if($?_=b:(_=b==="v"?"h":"v",$=cp(b,S)),!$)return!1;if(!r.current&&"changedTouches"in g&&(x||E)&&(r.current=_),!_)return!0;var k=r.current||_;return y4(k,C,g,k==="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(_){return _.name===C.type&&_.target===C.target&&w4(_.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(_){return _.contains(C.target)}),E=x.length>0?l(C,x[0]):!a.current.noIsolation;E&&C.cancelable&&C.preventDefault()}}},[]),c=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},[]),u=h.useCallback(function(g){c(g.type,up(g),g.target,l(g,e.lockRef.current))},[]),d=h.useCallback(function(g){c(g.type,wa(g),g.target,l(g,e.lockRef.current))},[]);h.useEffect(function(){return jr.push(i),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,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:x4(o)}):null,p?h.createElement(f4,{gapMode:"margin"}):null)}const S4=J5(ig,E4);var ug=h.forwardRef(function(e,t){return h.createElement(Wl,qt({},e,{ref:t,sideCar:S4}))});ug.classNames=Wl.classNames;const fg=ug;var _4=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={},Ws=0,dg=function(e){return e&&(e.host||dg(e.parentNode))},b4=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})},$4=function(e,t,n,r){var o=b4(t,Array.isArray(e)?e:[e]);Ca[n]||(Ca[n]=new WeakMap);var i=Ca[n],a=[],l=new Set,s=new Set(o),c=function(u){!u||l.has(u)||(l.add(u),c(u.parentNode))};o.forEach(c);var f=function(u){!u||s.has(u)||Array.prototype.forEach.call(u.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(),Ws++,function(){a.forEach(function(u){var d=Dr.get(u)-1,p=i.get(u)-1;Dr.set(u,d),i.set(u,p),d||(xa.has(u)||u.removeAttribute(r),xa.delete(u)),p||u.removeAttribute(n)}),Ws--,Ws||(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||_4(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),$4(r,o,n,"aria-hidden")):function(){return null}};const pg="Dialog",[vg,qb]=En(pg),[T4,_n]=vg(pg),k4=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,l=h.useRef(null),s=h.useRef(null),[c=!1,f]=rr({prop:r,defaultProp:o,onChange:i});return h.createElement(T4,{scope:t,triggerRef:l,contentRef:s,contentId:rn(),titleId:rn(),descriptionId:rn(),open:c,onOpenChange:f,onOpenToggle:h.useCallback(()=>f(u=>!u),[f]),modal:a},n)},R4="DialogTrigger",N4=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_n(R4,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",[P4,gg]=vg(mg,{forceMount:void 0}),A4=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=_n(mg,t);return h.createElement(P4,{scope:t,forceMount:n},h.Children.map(r,a=>h.createElement(Sn,{present:n||i.open},h.createElement(tg,{asChild:!0,container:o},a))))},du="DialogOverlay",O4=h.forwardRef((e,t)=>{const n=gg(du,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=_n(du,e.__scopeDialog);return i.modal?h.createElement(Sn,{present:r||i.open},h.createElement(I4,Y({},o,{ref:t}))):null}),I4=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_n(du,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}})))}),Pi="DialogContent",L4=h.forwardRef((e,t)=>{const n=gg(Pi,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=_n(Pi,e.__scopeDialog);return h.createElement(Sn,{present:r||i.open},i.modal?h.createElement(M4,Y({},o,{ref:t})):h.createElement(j4,Y({},o,{ref:t})))}),M4=h.forwardRef((e,t)=>{const n=_n(Pi,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())}))}),j4=h.forwardRef((e,t)=>{const n=_n(Pi,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=_n(Pi,n),s=h.useRef(null),c=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:c,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),D4="DialogTitle",F4=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=_n(D4,n);return h.createElement(fe.h2,Y({id:o.titleId},r,{ref:t}))});function Vf(e){return e?"open":"closed"}const wg=k4,xg=N4,z4=A4,B4=O4,U4=L4,H4=F4;var pe=function(){return pe=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[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 K4="ENTRIES",Cg="KEYS",Eg="VALUES",Qe="",Ks=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]},Y4=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}Sg(e.get(p),t,n,r,o,g,a,l+p)}}}catch(D){s={error:D}}finally{try{d&&!d.done&&(c=u.return)&&c.call(u)}finally{if(s)throw s.error}}},Ys=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],c=l[1];try{for(var f=ne(s.keys()),u=f.next();!u.done;u=f.next()){var d=u.value;if(d!==Qe&&d.startsWith(c)){var p=new Map;return p.set(d.slice(c.length),s.get(d)),new e(p,t)}}}catch(y){n={error:y}}finally{try{u&&!u.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,G4(this._tree,t)},e.prototype.entries=function(){return new Ks(this,K4)},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(c){n={error:c}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.fuzzyGet=function(t,n){return Y4(this._tree,t,n)},e.prototype.get=function(t){var n=hu(this._tree,t);return n!==void 0?n.get(Qe):void 0},e.prototype.has=function(t){var n=hu(this._tree,t);return n!==void 0&&n.has(Qe)},e.prototype.keys=function(){return new Ks(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=Gs(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=Gs(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=Gs(this._tree,t),o=r.get(Qe);return o===void 0&&r.set(Qe,o=n()),o},e.prototype.values=function(){return new Ks(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],c=l[1];o.set(s,c)}}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)},hu=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 hu(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}}},Gs=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 Ys,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=vu,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 V4(this,void 0,void 0,function(){var r,o,i,a,l,s,c,f,u,d,p,y,g,C,v,m,x,E,_,S,b,$,k,P,j;return W4(this,function(L){switch(L.label){case 0:if(r=this._dirtCount,!this.vacuumConditionsMet(n))return[3,10];o=t.batchSize||pu.batchSize,i=t.batchWait||pu.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];c=Le(s.value,2),f=c[0],u=c[1];try{for(d=($=void 0,ne(u)),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?u.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&&(k=d.return)&&k.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 _=L.sent(),S={error:_},[3,9];case 8:try{s&&!s.done&&(b=l.return)&&b.call(l)}finally{if(S)throw S.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||Xs.minDirtCount,r=r||Xs.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 c=Le(s.value,2),f=c[0],u=c[1],d=u.score,p=u.terms,y=u.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)),c=s.next();!c.done;c=s.next()){var f=c.value,u=f.score,d=f.terms,p=d.join(" "),y=l.get(p);y!=null?(y.score+=u,y.count+=1):l.set(p,{score:u,terms:d,count:1})}}catch(_){r={error:_}}finally{try{c&&!c.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],u=x.score,d=x.terms,E=x.count;g.push({suggestion:y,terms:d,score:u/E})}}catch(_){i={error:_}}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(Zs.hasOwnProperty(t))return Qs(Zs,t);throw new Error('MiniSearch: unknown option "'.concat(t,'"'))},e.loadJS=function(t,n){var r,o,i,a,l,s,c=t.index,f=t.documentCount,u=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=u,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 Ys;try{for(var E=ne(x._documentIds),_=E.next();!_.done;_=E.next()){var S=Le(_.value,2),b=S[0],$=S[1];x._idToShortId.set($,b)}}catch(F){r={error:F}}finally{try{_&&!_.done&&(o=E.return)&&o.call(E)}finally{if(r)throw r.error}}try{for(var k=ne(c),P=k.next();!P.done;P=k.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=k.return)&&a.call(k)}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,c=a.searchOptions,f=pe(pe({tokenize:l,processTerm:s},c),n),u=f.tokenize,d=f.processTerm,p=u(t).flatMap(function(C){return d(C)}).filter(function(C){return!!C}),y=p.map(e7(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]=Qs(l.boost,O)||1,F))},{}),c=l.boostDocument,f=l.weights,u=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,c,d),m,x;if(t.prefix&&(m=this._index.atPrefix(t.term)),t.fuzzy){var E=t.fuzzy===!0?.2:t.fuzzy,_=E<1?Math.min(u,Math.round(t.term.length*E)):E;_&&(x=this._index.fuzzyGet(t.term,_))}if(m)try{for(var S=ne(m),b=S.next();!b.done;b=S.next()){var $=Le(b.value,2),k=$[0],P=$[1],j=k.length-t.term.length;if(j){x==null||x.delete(k);var L=g*k.length/(k.length+.3*j);this.termResults(t.term,k,L,P,s,c,d,v)}}}catch(U){r={error:U}}finally{try{b&&!b.done&&(o=S.return)&&o.call(S)}finally{if(r)throw r.error}}if(x)try{for(var D=ne(x.keys()),N=D.next();!N.done;N=D.next()){var k=N.value,z=Le(x.get(k),2),V=z[0],j=z[1];if(j){var L=y*k.length/(k.length+j);this.termResults(t.term,k,L,V,s,c,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),c=s[0],f=s[1],u=i.boostDocument?i.boostDocument(f,"",this._storedFields.get(c)):1;o.set(c,{score:u,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(X4[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),c=s[0],f=s[1],u={};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];u[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([c,u])}}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 c,f,u,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,_=this._avgFieldLength[m];try{for(var S=(u=void 0,ne(x.keys())),b=S.next();!b.done;b=S.next()){var $=b.value;if(!this._documentIds.has($)){this.removeTerm(m,$,n),E-=1;continue}var k=a?a(this._documentIds.get($),n,this._storedFields.get($)):1;if(k){var P=x.get($),j=this._fieldLength.get($)[m],L=q4(P,E,this._documentCount,j,_,l),D=r*v*k*L,N=s.get($);if(N){N.score+=D,n7(N.terms,t);var z=Qs(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){u={error:V}}finally{try{b&&!b.done&&(d=S.return)&&d.call(S)}finally{if(u)throw u.error}}}}}catch(V){c={error:V}}finally{try{g&&!g.done&&(f=y.return)&&f.call(y)}finally{if(c)throw c.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(c){o={error:c}}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-791aa912.json")).json());let Js;function Tg(){const[e,t]=h.useState();return h.useEffect(()=>{(async()=>{Js||(Js=o7());const n=await Js,r=Z4.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 i7="vocs_DesktopSearch_search",a7="vocs_DesktopSearch_searchCommand";const l7=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()}}))),s7=l7;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()})(Cy,function(){var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},r=function(c,f){if(!(c instanceof f))throw new TypeError("Cannot call a class as a function")},o=function(){function c(f,u){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,c),this.ctx=f,this.iframes=u,this.exclude=d,this.iframesTimeout=p}return o(c,[{key:"getContexts",value:function(){var u=void 0,d=[];return typeof this.ctx>"u"||!this.ctx?u=[]:NodeList.prototype.isPrototypeOf(this.ctx)?u=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?u=this.ctx:typeof this.ctx=="string"?u=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):u=[this.ctx],u.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(u,d){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},y=void 0;try{var g=u.contentWindow;if(y=g.document,!g||!y)throw new Error("iframe inaccessible")}catch{p()}y&&d(y)}},{key:"isIframeBlank",value:function(u){var d="about:blank",p=u.getAttribute("src").trim(),y=u.contentWindow.location.href;return y===d&&p!==d&&p}},{key:"observeIframeLoad",value:function(u,d,p){var y=this,g=!1,C=null,v=function m(){if(!g){g=!0,clearTimeout(C);try{y.isIframeBlank(u)||(u.removeEventListener("load",m),y.getIframeContents(u,d,p))}catch{p()}}};u.addEventListener("load",v),C=setTimeout(v,this.iframesTimeout)}},{key:"onIframeReady",value:function(u,d,p){try{u.contentWindow.document.readyState==="complete"?this.isIframeBlank(u)?this.observeIframeLoad(u,d,p):this.getIframeContents(u,d,p):this.observeIframeLoad(u,d,p)}catch{p()}}},{key:"waitForIframes",value:function(u,d){var p=this,y=0;this.forEachIframe(u,function(){return!0},function(g){y++,p.waitForIframes(g.querySelector("html"),function(){--y||d()})},function(g){g||d()})}},{key:"forEachIframe",value:function(u,d,p){var y=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},C=u.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){c.matches(E,y.exclude)?x():y.onIframeReady(E,function(_){d(E)&&(m++,p(_)),x()},x)})}},{key:"createIterator",value:function(u,d,p){return document.createNodeIterator(u,d,p,!1)}},{key:"createInstanceOnIframe",value:function(u){return new c(u.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(u,d,p){var y=u.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(u){var d=u.previousNode(),p=void 0;return d===null?p=u.nextNode():p=u.nextNode()&&u.nextNode(),{prevNode:d,node:p}}},{key:"checkIframeFilter",value:function(u,d,p,y){var g=!1,C=!1;return y.forEach(function(v,m){v.val===p&&(g=m,C=v.handled)}),this.compareNodeIframe(u,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(u,d,p,y){var g=this;u.forEach(function(C){C.handled||g.getIframeContents(C.val,function(v){g.createInstanceOnIframe(v).forEachNode(d,p,y)})})}},{key:"iterateThroughNodes",value:function(u,d,p,y,g){for(var C=this,v=this.createIterator(d,u,y),m=[],x=[],E=void 0,_=void 0,S=function(){var $=C.getIteratorNode(v);return _=$.prevNode,E=$.node,E};S();)this.iframes&&this.forEachIframe(d,function(b){return C.checkIframeFilter(E,_,b,m)},function(b){C.createInstanceOnIframe(b).forEachNode(u,function($){return x.push($)},y)}),x.push(E);x.forEach(function(b){p(b)}),this.iframes&&this.handleOpenIframes(m,u,p,y),g()}},{key:"forEachNode",value:function(u,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(u,m,d,p,function(){--v<=0&&g()})};y.iframes?y.waitForIframes(m,x):x()})}}],[{key:"matches",value:function(u,d){var p=typeof d=="string"?[d]:d,y=u.matches||u.matchesSelector||u.msMatchesSelector||u.mozMatchesSelector||u.oMatchesSelector||u.webkitMatchesSelector;if(y){var g=!1;return p.every(function(C){return y.call(u,C)?(g=!0,!1):!0}),g}else return!1}}]),c}(),l=function(){function c(f){r(this,c),this.ctx=f,this.ie=!1;var u=window.navigator.userAgent;(u.indexOf("MSIE")>-1||u.indexOf("Trident")>-1)&&(this.ie=!0)}return o(c,[{key:"log",value:function(u){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: "+u)}},{key:"escapeStr",value:function(u){return u.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(u){return this.opt.wildcards!=="disabled"&&(u=this.setupWildcardsRegExp(u)),u=this.escapeStr(u),Object.keys(this.opt.synonyms).length&&(u=this.createSynonymsRegExp(u)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(u=this.setupIgnoreJoinersRegExp(u)),this.opt.diacritics&&(u=this.createDiacriticsRegExp(u)),u=this.createMergedBlanksRegExp(u),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(u=this.createJoinersRegExp(u)),this.opt.wildcards!=="disabled"&&(u=this.createWildcardsRegExp(u)),u=this.createAccuracyRegExp(u),u}},{key:"createSynonymsRegExp",value:function(u){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!==""&&(u=u.replace(new RegExp("("+this.escapeStr(v)+"|"+this.escapeStr(m)+")","gm"+p),y+("("+this.processSynomyms(v)+"|")+(this.processSynomyms(m)+")")+y))}return u}},{key:"processSynomyms",value:function(u){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(u=this.setupIgnoreJoinersRegExp(u)),u}},{key:"setupWildcardsRegExp",value:function(u){return u=u.replace(/(?:\\)*\?/g,function(d){return d.charAt(0)==="\\"?"?":""}),u.replace(/(?:\\)*\*/g,function(d){return d.charAt(0)==="\\"?"*":""})}},{key:"createWildcardsRegExp",value:function(u){var d=this.opt.wildcards==="withSpaces";return u.replace(/\u0001/g,d?"[\\S\\s]?":"\\S?").replace(/\u0002/g,d?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(u){return u.replace(/[^(|)\\]/g,function(d,p,y){var g=y.charAt(p+1);return/[(|)\\]/.test(g)||g===""?d:d+"\0"})}},{key:"createJoinersRegExp",value:function(u){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?u.split(/\u0000+/).join("["+d.join("")+"]*"):u}},{key:"createDiacriticsRegExp",value:function(u){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 u.split("").forEach(function(g){p.every(function(C){if(C.indexOf(g)!==-1){if(y.indexOf(C)>-1)return!1;u=u.replace(new RegExp("["+C+"]","gm"+d),"["+C+"]"),y.push(C)}return!0})}),u}},{key:"createMergedBlanksRegExp",value:function(u){return u.replace(/[\s]+/gmi,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(u){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"()("+u+")";case"complementary":return v="\\s"+(v||this.escapeStr(p)),"()([^"+v+"]*"+u+"[^"+v+"]*)";case"exactly":return"(^|\\s"+v+")("+u+")(?=$|\\s"+v+")"}}},{key:"getSeparatedKeywords",value:function(u){var d=this,p=[];return u.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(u){return Number(parseFloat(u))==u}},{key:"checkRanges",value:function(u){var d=this;if(!Array.isArray(u)||Object.prototype.toString.call(u[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(u),[];var p=[],y=0;return u.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(u,d){var p=void 0,y=void 0,g=!1;return u&&typeof u.start<"u"?(p=parseInt(u.start,10),y=p+parseInt(u.length,10),this.isNumeric(u.start)&&this.isNumeric(u.length)&&y-d>0&&y-p>0?g=!0:(this.log("Ignoring invalid or overlapping range: "+(""+JSON.stringify(u))),this.opt.noMatch(u))):(this.log("Ignoring invalid range: "+JSON.stringify(u)),this.opt.noMatch(u)),{start:p,end:y,valid:g}}},{key:"checkWhitespaceRanges",value:function(u,d,p){var y=void 0,g=!0,C=p.length,v=d-C,m=parseInt(u.start,10)-v;return m=m>C?C:m,y=m+parseInt(u.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(u)),this.opt.noMatch(u)):p.substring(m,y).replace(/\s+/g,"")===""&&(g=!1,this.log("Skipping whitespace only range: "+JSON.stringify(u)),this.opt.noMatch(u)),{start:m,end:y,valid:g}}},{key:"getTextNodes",value:function(u){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(){u({value:p,nodes:y})})}},{key:"matchesExclude",value:function(u){return a.matches(u,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(u,d,p){var y=this.opt.element?this.opt.element:"mark",g=u.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(u,d,p,y,g){var C=this;u.nodes.every(function(v,m){var x=u.nodes[m+1];if(typeof x>"u"||x.start>d){if(!y(v.node))return!1;var E=d-v.start,_=(p>v.end?v.end:p)-v.start,S=u.value.substr(0,v.start),b=u.value.substr(_+v.start);if(v.node=C.wrapRangeInTextNode(v.node,E,_),u.value=S+b,u.nodes.forEach(function($,k){k>=m&&(u.nodes[k].start>0&&k!==m&&(u.nodes[k].start-=_),u.nodes[k].end-=_)}),p-=_,g(v.node.previousSibling,v.start),p>v.end)d=v.end;else return!1}return!0})}},{key:"wrapMatches",value:function(u,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=u.exec(x.textContent))!==null&&E[v]!=="";)if(p(E[v],x)){var _=E.index;if(v!==0)for(var S=1;S{const o=setTimeout(()=>r(e),t||500);return()=>{clearTimeout(o)}},[e,t]),n}function mu(e,t){const[n,r]=h.useState();h.useEffect(()=>{const i=d7(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 d7(e){try{const t=localStorage.getItem(e);return typeof t=="string"?JSON.parse(t):void 0}catch{return}}var h7="vocs_Kbd";function Rg(e){return w.jsx("kbd",{...e,className:I(e.className,h7)})}var p7="vocs_KeyboardShortcut_kbdGroup",v7="vocs_KeyboardShortcut";function eo(e){const{description:t,keys:n}=e;return w.jsxs("span",{className:v7,children:[t,w.jsx("span",{className:p7,children:n.map(r=>w.jsx(Rg,{children:r},r))})]})}var m7="vocs_SearchDialog_content",mp="vocs_SearchDialog_excerpt",g7="vocs_SearchDialog_overlay",y7="vocs_SearchDialog_result",gp="vocs_SearchDialog_resultIcon",w7="vocs_SearchDialog_resultSelected",x7="vocs_SearchDialog_results",C7="vocs_SearchDialog",E7="vocs_SearchDialog_searchBox",S7="vocs_SearchDialog_searchInput",Sa="vocs_SearchDialog_searchInputIcon",_7="vocs_SearchDialog_searchInputIconDesktop",b7="vocs_SearchDialog_searchInputIconMobile",$7="vocs_SearchDialog_searchShortcuts",yp="vocs_SearchDialog_title",T7="vocs_SearchDialog_titleIcon",k7="vocs_SearchDialog_titles";function Ng(e){const t=Ff(),n=h.useRef(null),r=h.useRef(null),[o,i]=mu("filterText",""),a=f7(o,200),l=Tg(),[s,c]=h.useState(-1),[f,u]=h.useState(!1),[d,p]=mu("showDetailView",!0),y=h.useMemo(()=>l?a?(c(0),l.search(a).slice(0,16)):(c(-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 k in $.match)m.add(k);const x=new u7(r.current);x.unmark({done(){x==null||x.markRegExp(R7(m))}});const E=r.current.querySelectorAll(`.${mp}`);for(const $ of E)(_=$.querySelector('mark[data-markjs="true"]'))==null||_.scrollIntoView({block:"center"});(b=(S=r.current)==null?void 0:S.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(),c(_=>{var $;let S=_+1;S>=g&&(S=0);const b=($=r.current)==null?void 0:$.children[S];return b==null||b.scrollIntoView({block:"nearest"}),S}),u(!0);break}case"ArrowUp":{x.preventDefault(),c(_=>{var $;let S=_-1;S<0&&(S=g-1);const b=($=r.current)==null?void 0:$.children[S];return b==null||b.scrollIntoView({block:"nearest"}),S}),u(!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(z4,{children:[w.jsx(B4,{className:g7}),w.jsxs(U4,{onOpenAutoFocus:m=>{n.current&&(m.preventDefault(),n.current.focus()),v()},onCloseAutoFocus:()=>{c(0)},className:C7,"aria-describedby":void 0,children:[w.jsx(H4,{className:Z0,children:"Search"}),w.jsxs("form",{className:E7,children:[w.jsx("button",{"aria-label":"Close search dialog",type:"button",onClick:()=>e.onClose(),className:b7,children:w.jsx(r5,{className:Sa,height:20,width:20})}),w.jsx(s7,{htmlFor:"search-input",children:w.jsx(Uf,{"aria-label":"Search",className:I(Sa,_7),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(f5,{className:Sa,height:20,width:20})}),w.jsx("button",{"aria-label":"Reset search",type:"button",className:Sa,onClick:()=>{var m;i(""),(m=n.current)==null||m.focus()},children:"⌫"})]}),w.jsxs("ul",{className:x7,role:y.length?"listbox":void 0,onMouseMove:()=>u(!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(y7,x===s&&w7),"aria-selected":x===s,"aria-label":[...m.titles.filter(_=>!!_),m.title].join(" > "),children:w.jsxs(M0,{to:m.href,onClick:_=>{_.metaKey||e.onClose()},onMouseEnter:()=>!f&&c(x),onFocus:()=>c(x),children:[w.jsxs("div",{className:k7,children:[m.isPage?w.jsx(c5,{className:gp}):w.jsx("span",{className:gp,children:"#"}),m.titles.filter(_=>!!_).map(_=>w.jsxs("span",{className:yp,children:[w.jsx("span",{dangerouslySetInnerHTML:{__html:_}}),w.jsx(i5,{className:T7})]},_)),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:m7,children:w.jsx("div",{dangerouslySetInnerHTML:{__html:m.html}})})})]})},m.id)})]}),w.jsxs("div",{className:$7,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 R7(e){return new RegExp([...e].sort((t,n)=>n.length-t.length).map(t=>`(${t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")})`).join("|"),"gi")}function N7(){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:i7,type:"button",children:[w.jsx(Uf,{style:{marginTop:2}}),"Search",w.jsx("div",{className:a7,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",P7="vocs_DesktopTopNav_content",A7="vocs_DesktopTopNav_curtain",wp="vocs_DesktopTopNav_divider",qs="vocs_DesktopTopNav_group",_a="vocs_DesktopTopNav_hideCompact",gu="vocs_DesktopTopNav_icon",yl="vocs_DesktopTopNav_item",O7="vocs_DesktopTopNav_logo",I7="vocs_DesktopTopNav_logoWrapper",L7="vocs_DesktopTopNav",xp="vocs_DesktopTopNav_section",M7="vocs_DesktopTopNav_withLogo",j7="vocs_Icon",yu="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(j7,e),role:"img",style:{...o,...Gt({[yu]:r})},children:w.jsx(n,{height:r,width:r})})}var D7="vocs_Logo_logoDark",F7="vocs_Logo_logoLight",ec="vocs_Logo";function z7({className:e}){const{logoUrl:t}=Je();return t?w.jsx(w.Fragment,{children:typeof t=="string"?w.jsx("img",{alt:"Logo",className:I(e,ec),src:t}):w.jsxs(w.Fragment,{children:[w.jsx("img",{alt:"Logo",className:I(e,ec,D7),src:t.dark}),w.jsx("img",{alt:"Logo",className:I(e,ec,F7),src:t.light})]})}):null}var B7="vocs_NavLogo_logoImage",U7="vocs_NavLogo_title";function Yf(){const e=Je();return e.logoUrl?w.jsx(z7,{className:B7}):w.jsx("div",{className:U7,children:e.title})}const H7=h.createContext(void 0);function Kl(e){const t=h.useContext(H7);return e||t||"ltr"}function Yl(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)}),c=e+"CollectionItemSlot",f="data-radix-collection-item",u=Z.forwardRef((p,y)=>{const{scope:g,children:C,...v}=p,m=Z.useRef(null),x=ze(y,m),E=i(c,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,_)=>v.indexOf(E.ref.current)-v.indexOf(_.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:a,Slot:s,ItemSlot:u},d,r]}function V7(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 W7=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}}))),K7=W7,Vi="NavigationMenu",[Gf,Y7,G7]=Yl(Vi),[wu,Q7,Z7]=Yl(Vi),[Qf,e$]=En(Vi,[G7,Z7]),[X7,Nr]=Qf(Vi),[J7,t$]=Qf(Vi),q7=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,delayDuration:a=200,skipDelayDuration:l=300,orientation:s="horizontal",dir:c,...f}=e,[u,d]=h.useState(null),p=ze(t,k=>d(k)),y=Kl(c),g=h.useRef(0),C=h.useRef(0),v=h.useRef(0),[m,x]=h.useState(!0),[E="",_]=rr({prop:r,onChange:k=>{const P=k!=="",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(k)},defaultProp:i}),S=h.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>_(""),150)},[_]),b=h.useCallback(k=>{window.clearTimeout(C.current),_(k)},[_]),$=h.useCallback(k=>{E===k?window.clearTimeout(C.current):g.current=window.setTimeout(()=>{window.clearTimeout(C.current),_(k)},a)},[E,_,a]);return h.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(C.current),window.clearTimeout(v.current)},[]),h.createElement(e6,{scope:n,isRootMenu:!0,value:E,dir:y,orientation:s,rootNavigationMenu:u,onTriggerEnter:k=>{window.clearTimeout(g.current),m?$(k):b(k)},onTriggerLeave:()=>{window.clearTimeout(g.current),S()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:S,onItemSelect:k=>{_(P=>P===k?"":k)},onItemDismiss:()=>_("")},h.createElement(fe.nav,Y({"aria-label":"Main","data-orientation":s,dir:y},f,{ref:p})))}),e6=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:i,children:a,value:l,onItemSelect:s,onItemDismiss:c,onTriggerEnter:f,onTriggerLeave:u,onContentEnter:d,onContentLeave:p}=e,[y,g]=h.useState(null),[C,v]=h.useState(new Map),[m,x]=h.useState(null);return h.createElement(X7,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:l,previousValue:V7(l),baseId:rn(),dir:o,orientation:i,viewport:y,onViewportChange:g,indicatorTrack:m,onIndicatorTrackChange:x,onTriggerEnter:at(f),onTriggerLeave:at(u),onContentEnter:at(d),onContentLeave:at(p),onItemSelect:at(s),onItemDismiss:at(c),onViewportContentChange:h.useCallback((E,_)=>{v(S=>(S.set(E,_),new Map(S)))},[]),onViewportContentRemove:h.useCallback(E=>{v(_=>_.has(E)?(_.delete(E),new Map(_)):_)},[])},h.createElement(Gf.Provider,{scope:t},h.createElement(J7,{scope:t,items:C},a)))},t6="NavigationMenuList",n6=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Nr(t6,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))}),r6="NavigationMenuItem",[o6,Ag]=Qf(r6),i6=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),c=h.useRef(null),f=h.useRef(()=>{}),u=h.useRef(!1),d=h.useCallback((y="start")=>{if(l.current){f.current();const g=xu(l.current);g.length&&Zf(y==="start"?g:g.reverse())}},[]),p=h.useCallback(()=>{if(l.current){const y=xu(l.current);y.length&&(f.current=h6(y))}},[]);return h.createElement(o6,{scope:n,value:a,triggerRef:s,contentRef:l,focusProxyRef:c,wasEscapeCloseRef:u,onEntryKeyDown:d,onFocusProxyEnter:d,onRootContentClose:p,onContentFocusOutside:p},h.createElement(fe.li,Y({},o,{ref:t})))}),Cp="NavigationMenuTrigger",a6=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),c=Mg(i.baseId,a.value),f=jg(i.baseId,a.value),u=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:c,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,Cu(()=>{r||d.current||a.wasEscapeCloseRef.current||u.current||(i.onTriggerEnter(a.value),u.current=!0)})),onPointerLeave:ae(e.onPointerLeave,Cu(()=>{r||(i.onTriggerLeave(),u.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(K7,{"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",l6=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,c=>o==null?void 0:o(c),{once:!0}),cu(l,s),!s.defaultPrevented&&!a.metaKey){const c=new CustomEvent(Ua,{bubbles:!0,cancelable:!0});cu(l,c)}},{checkForDefaultPrevented:!1})})))}),wl="NavigationMenuContent",s6=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(c6,Y({forceMount:n},s,{ref:a})):h.createElement(Sn,{present:n||l},h.createElement(u6,Y({"data-state":Lg(l)},s,{ref:a,onPointerEnter:ae(e.onPointerEnter,o.onContentEnter),onPointerLeave:ae(e.onPointerLeave,Cu(o.onContentLeave)),style:{pointerEvents:!l&&o.isRootMenu?"none":void 0,...s.style}})))}),c6=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",u6=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:i,wasEscapeCloseRef:a,onRootContentClose:l,onContentFocusOutside:s,...c}=e,f=Nr(wl,n),u=h.useRef(null),d=ze(u,t),p=Mg(f.baseId,r),y=jg(f.baseId,r),g=Y7(n),C=h.useRef(null),{onItemDismiss:v}=f;h.useEffect(()=>{const x=u.current;if(f.isRootMenu&&x){const E=()=>{var _;v(),l(),x.contains(document.activeElement)&&((_=o.current)===null||_===void 0||_.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 _=E.indexOf(f.value),S=E.indexOf(f.previousValue),b=r===f.value,$=S===E.indexOf(r);if(!b&&!$)return C.current;const k=(()=>{if(_!==S){if(b&&S!==-1)return _>S?"from-end":"from-start";if($&&_!==-1)return _>S?"to-start":"to-end"}return null})();return C.current=k,k},[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},c,{ref:d,onDismiss:()=>{var x;const E=new Event(Ua,{bubbles:!0,cancelable:!0});(x=u.current)===null||x===void 0||x.dispatchEvent(E)},onFocusOutside:ae(e.onFocusOutside,x=>{var E;s();const _=x.target;(E=f.rootNavigationMenu)!==null&&E!==void 0&&E.contains(_)&&x.preventDefault()}),onPointerDownOutside:ae(e.onPointerDownOutside,x=>{var E;const _=x.target,S=g().some($=>{var k;return(k=$.ref.current)===null||k===void 0?void 0:k.contains(_)}),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=xu(x.currentTarget),$=document.activeElement,k=b.findIndex(L=>L===$),j=x.shiftKey?b.slice(0,k).reverse():b.slice(k+1,b.length);if(Zf(j))x.preventDefault();else{var S;(S=i.current)===null||S===void 0||S.focus()}}}),onEscapeKeyDown:ae(e.onEscapeKeyDown,x=>{a.current=!0})})))}),f6="FocusGroup",Og=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Nr(f6,n);return h.createElement(wu.Provider,{scope:n},h.createElement(wu.Slot,{scope:n},h.createElement(fe.div,Y({dir:o.dir},r,{ref:t}))))}),Sp=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],d6="FocusGroupItem",Ig=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Q7(n),i=Nr(d6,n);return h.createElement(wu.ItemSlot,{scope:n},h.createElement(fe.button,Y({},r,{ref:t,onKeyDown:ae(e.onKeyDown,a=>{if(["Home","End",...Sp].includes(a.key)){let s=o().map(u=>u.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(a.key)&&s.reverse(),Sp.includes(a.key)){const u=s.indexOf(a.currentTarget);s=s.slice(u+1)}setTimeout(()=>Zf(s)),a.preventDefault()}})})))});function xu(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 h6(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 Cu(e){return t=>t.pointerType==="mouse"?e(t):void 0}const p6=q7,v6=n6,m6=i6,g6=a6,y6=l6,w6=s6;var x6="var(--vocs_NavigationMenu_chevronDownIcon)",C6="vocs_NavigationMenu_content",E6="vocs_NavigationMenu_item",S6="vocs_NavigationMenu_link",_6="vocs_NavigationMenu_list",b6="vocs_NavigationMenu",$6="vocs_NavigationMenu_trigger vocs_NavigationMenu_link";const Dg=e=>w.jsx(p6,{...e,className:I(e.className,b6)}),Fg=e=>w.jsx(v6,{...e,className:I(e.className,_6)}),Gl=({active:e,children:t,className:n,href:r})=>w.jsx(y6,{asChild:!0,children:w.jsx(nn,{"data-active":e,className:I(n,S6),href:r,variant:"styleless",children:t})}),zg=e=>w.jsx(m6,{...e,className:I(e.className,E6)}),Bg=({active:e,className:t,...n})=>{const{basePath:r}=Je(),o=r;return w.jsx(g6,{...n,"data-active":e,className:I(t,$6),style:Gt({[x6]:`url(${o}/.vocs/icons/chevron-down.svg)`})})},Ug=e=>w.jsx(w6,{...e,className:I(e.className,C6)});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 T6(){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 k6(){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"})]})}Eu.Curtain=R6;function Eu(){var r,o,i,a;const e=Je(),{showLogo:t,showSidebar:n}=Rr();return w.jsxs("div",{className:I(L7,t&&!n&&M7),children:[w.jsx(N7,{}),t&&w.jsx("div",{className:I7,children:w.jsx("div",{className:O7,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:qs,children:w.jsx(N6,{})}),w.jsx("div",{className:I(wp,_a)})]}),e.socials&&((o=e.socials)==null?void 0:o.length)>0&&w.jsxs(w.Fragment,{children:[w.jsx("div",{className:I(qs,_a),style:{marginLeft:"-8px",marginRight:"-8px"},children:e.socials.map((l,s)=>w.jsx("div",{className:yl,children:w.jsx(L6,{...l})},s))}),!((i=e.theme)!=null&&i.colorScheme)&&w.jsx("div",{className:I(wp,_a)})]}),!((a=e.theme)!=null&&a.colorScheme)&&w.jsx("div",{className:I(qs,_a),style:{marginLeft:"-8px",marginRight:"-8px"},children:w.jsx("div",{className:yl,children:w.jsx(A6,{})})})]})]})}function R6(){return w.jsx("div",{className:A7})}function N6(){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(Gl,{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:P7,children:w.jsx(P6,{items:r.items})})]},o):null)})})}function P6({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(Gl,{active:n.includes(r.id),href:r.link,children:r.text},o))})}function A6(){const{toggle:e}=g5();return w.jsxs("button",{className:Pg,onClick:e,type:"button",children:[w.jsx(st,{className:I(gu,y5),size:"20px",label:"Light",icon:k6}),w.jsx(st,{className:I(gu,w5),size:"20px",label:"Dark",icon:T6,style:{marginTop:"-2px"}})]})}const O6={discord:Hg,github:Vg,telegram:Wg,warpcast:Kg,x:Yg},I6={discord:"23px",github:"20px",telegram:"21px",warpcast:"20px",x:"18px"};function L6({icon:e,label:t,link:n}){return w.jsx("a",{className:Pg,href:n,target:"_blank",rel:"noopener noreferrer",children:w.jsx(st,{className:gu,label:t,icon:O6[e],size:I6[e]||"20px"})})}const M6=({children:e})=>e,j6=({children:e})=>e;function D6(){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 F6="vocs_Footer_container",z6="vocs_Footer_editLink",B6="vocs_Footer_lastUpdated",U6="vocs_Footer_navigation",_p="vocs_Footer_navigationIcon",H6="vocs_Footer_navigationIcon_left",V6="vocs_Footer_navigationIcon_right",bp="vocs_Footer_navigationItem",W6="vocs_Footer_navigationItem_left",K6="vocs_Footer_navigationItem_right",$p="vocs_Footer_navigationText",Tp="vocs_Footer_navigationTextInner",Y6="vocs_Footer";function G6(){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 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 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 Z6(){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:Y6,children:[e==="docs"&&w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:F6,children:[w.jsx(X6,{}),t&&n.lastUpdatedAt&&w.jsxs("div",{className:B6,children:["Last updated:"," ",w.jsx("time",{dateTime:o,children:new Intl.DateTimeFormat(void 0,{dateStyle:"short",timeStyle:"short"}).format(r)})]})]}),w.jsx(J6,{})]}),w.jsx(j6,{})]})}function X6(){const e=D6();return e.url?w.jsx("div",{children:w.jsxs(nn,{className:z6,href:e.url,children:[w.jsx(p5,{})," ",e.text]})}):null}function J6(){const e=Gg(),t=Vl(),{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=Ff();return h.useEffect(()=>{let s=o,c=!1;const f=d=>{if(d.code==="ShiftLeft"&&(c=!0),c){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--)}},u=d=>{d.code==="ShiftLeft"&&(c=!1)};return window.addEventListener("keydown",f),window.addEventListener("keyup",u),()=>{window.removeEventListener("keydown",f),window.removeEventListener("keyup",u)}},[]),e?w.jsxs("div",{className:U6,children:[i?w.jsxs(nn,{className:I(bp,W6),href:i.link,variant:"styleless",children:[w.jsxs("div",{className:$p,children:[w.jsx("div",{className:I(_p,H6),style:Gt({[yu]:"0.75em"}),children:w.jsx(st,{label:"Previous",icon:G6})}),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,K6),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(_p,V6),style:Gt({[yu]:"0.75em"}),children:w.jsx(st,{label:"Next",icon:Q6})})]}),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",[q6,Xg]=En(Zg),[e8,Xf]=q6(Zg),t8=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:a,...l}=e,[s=!1,c]=rr({prop:r,defaultProp:o,onChange:a});return h.createElement(e8,{scope:n,disabled:i,contentId:rn(),open:s,onOpenToggle:h.useCallback(()=>c(f=>!f),[c])},h.createElement(fe.div,Y({"data-state":Jf(s),"data-disabled":i?"":void 0},l,{ref:t})))}),n8="CollapsibleTrigger",r8=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Xf(n8,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",o8=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Xf(Jg,e.__scopeCollapsible);return h.createElement(Sn,{present:n||o.open},({present:i})=>h.createElement(i8,Y({},r,{ref:t,present:i})))}),i8=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,a=Xf(Jg,n),[l,s]=h.useState(r),c=h.useRef(null),f=ze(t,c),u=h.useRef(0),d=u.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=c.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();u.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 a8=t8,l8=r8,s8=o8,Pr="Accordion",c8=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[qf,u8,f8]=Yl(Pr),[Ql,n$]=En(Pr,[f8,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(v8,Y({},i,{ref:t})):Z.createElement(p8,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,d8]=Ql(Pr),[t1,h8]=Ql(Pr,{collapsible:!1}),p8=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}))))}),v8=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((u=[])=>[...u,f]),[l]),c=Z.useCallback(f=>l((u=[])=>u.filter(d=>d!==f)),[l]);return Z.createElement(e1,{scope:e.__scopeAccordion,value:a,onItemOpen:s,onItemClose:c},Z.createElement(t1,{scope:e.__scopeAccordion,collapsible:!0},Z.createElement(n1,Y({},i,{ref:t}))))}),[m8,td]=Ql(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),c=u8(n),u=Kl(o)==="ltr",d=ae(e.onKeyDown,p=>{var y;if(!c8.includes(p.key))return;const g=p.target,C=c().filter(k=>{var P;return!((P=k.ref.current)!==null&&P!==void 0&&P.disabled)}),v=C.findIndex(k=>k.ref.current===g),m=C.length;if(v===-1)return;p.preventDefault();let x=v;const E=0,_=m-1,S=()=>{x=v+1,x>_&&(x=E)},b=()=>{x=v-1,x{const{__scopeAccordion:n,value:r,...o}=e,i=td(Su,n),a=d8(Su,n),l=ed(n),s=rn(),c=r&&a.value.includes(r)||!1,f=i.disabled||e.disabled;return Z.createElement(g8,{scope:n,open:c,disabled:f,triggerId:s},Z.createElement(a8,Y({"data-orientation":i.orientation,"data-state":E8(c)},l,o,{ref:t,disabled:f,open:c,onOpenChange:u=>{u?a.onItemOpen(r):a.onItemClose(r)}})))}),kp="AccordionTrigger",w8=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=td(Pr,n),i=r1(kp,n),a=h8(kp,n),l=ed(n);return Z.createElement(qf.ItemSlot,{scope:n},Z.createElement(l8,Y({"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId},l,r,{ref:t})))}),x8="AccordionContent",C8=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=td(Pr,n),i=r1(x8,n),a=ed(n);return Z.createElement(s8,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 E8(e){return e?"open":"closed"}const S8=qg,_8=y8,b8=w8,$8=C8;var T8="vocs_MobileSearch_searchButton";function k8(){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:T8,type:"button","aria-label":"Search",children:w.jsx(Uf,{height:21,width:21})})}),w.jsx(Ng,{open:e,onClose:()=>t(!1)})]})}var R8="vocs_MobileTopNav_button",N8="var(--vocs_MobileTopNav_chevronDownIcon)",P8="var(--vocs_MobileTopNav_chevronUpIcon)",A8="vocs_MobileTopNav_content",O8="vocs_MobileTopNav_curtain",Rp="vocs_MobileTopNav_curtainGroup",tc="vocs_MobileTopNav_curtainItem",I8="vocs_MobileTopNav_divider",ba="vocs_MobileTopNav_group",L8="vocs_MobileTopNav_icon",M8="vocs_MobileTopNav_item",j8="vocs_MobileTopNav_logo",D8="vocs_MobileTopNav_menuTitle",o1="vocs_MobileTopNav_menuTrigger",i1="vocs_MobileTopNav_navigation",F8="vocs_MobileTopNav_navigationContent",Go="vocs_MobileTopNav_navigationItem",z8="vocs_MobileTopNav_trigger",B8="vocs_MobileTopNav_navigation_compact",U8="vocs_MobileTopNav_outlinePopover",Np="vocs_MobileTopNav_outlineTrigger",H8="vocs_MobileTopNav",Pp="vocs_MobileTopNav_section",V8="vocs_MobileTopNav_separator",W8="vocs_MobileTopNav_sidebarPopover",K8="vocs_MobileTopNav_topNavPopover";function Y8(e,t){let n=!1;return()=>{n=!0,setTimeout(()=>{n&&e(),n=!1},t)}}var G8="vocs_Outline_heading",Q8="vocs_Outline_item",Z8="vocs_Outline_items",X8="vocs_Outline_link",J8="vocs_Outline_nav",q8="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:c,hash:f}=Re(),[u,d]=h.useState([]);h.useEffect(()=>{if(typeof window>"u")return;const v=Array.from(document.querySelectorAll(`.${H0}`));d(v)},[c]);const p=h.useMemo(()=>u?u.map(v=>{const m=v.querySelector(`.${V0}`);if(!m)return null;const x=m.getBoundingClientRect(),E=m.id,_=Number(v.tagName[1]),S=v.textContent,b=window.scrollY+x.top;return _l?null:{id:E,level:_,slugTargetElement:m,text:S,topOffset:b}}).filter(Boolean):[],[u,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(k=>k.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=Y8(()=>{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 _=0;_window.removeEventListener("scroll",v)},[p]),p.length===0)return null;const C=p.filter(v=>v.level===e);return w.jsxs("aside",{className:q8,children:[w.jsxs("nav",{className:J8,children:[o&&w.jsx("h2",{className:G8,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:Z8,children:n.map(({id:a,level:l,text:s})=>{const c=`#${a}`,f=e===a,u=(()=>{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:X8,children:s})}),u&&w.jsx(l1,{activeId:e,levelItems:u,items:t,onClickItem:r,setActiveId:o})]},a)})})}const eC=["top","right","bottom","left"],Qn=Math.min,Et=Math.max,xl=Math.round,$a=Math.floor,Zn=e=>({x:e,y:e}),tC={left:"right",right:"left",bottom:"top",top:"bottom"},nC={start:"end",end:"start"};function _u(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 Ro(e){return e.split("-")[1]}function nd(e){return e==="x"?"y":"x"}function rd(e){return e==="y"?"height":"width"}function No(e){return["top","bottom"].includes(wn(e))?"y":"x"}function od(e){return nd(No(e))}function rC(e,t,n){n===void 0&&(n=!1);const r=Ro(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 oC(e){const t=Cl(e);return[bu(e),t,bu(t)]}function bu(e){return e.replace(/start|end/g,t=>nC[t])}function iC(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 aC(e,t,n,r){const o=Ro(e);let i=iC(wn(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(bu)))),i}function Cl(e){return e.replace(/left|right|bottom|top/g,t=>tC[t])}function lC(e){return{top:0,right:0,bottom:0,left:0,...e}}function s1(e){return typeof e!="number"?lC(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=No(t),a=od(t),l=rd(a),s=wn(t),c=i==="y",f=r.x+r.width/2-o.width/2,u=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:u};break;case"left":p={x:r.x-o.width,y:u};break;default:p={x:r.x,y:r.y}}switch(Ro(t)){case"start":p[a]-=d*(n&&c?-1:1);break;case"end":p[a]+=d*(n&&c?-1:1);break}return p}const sC=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 c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:u}=Ap(c,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:c,padding:f=0}=yn(e,t)||{};if(c==null)return{};const u=s1(f),d={x:n,y:r},p=od(o),y=rd(p),g=await a.getDimensions(c),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],_=d[p]-i.reference[p],S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let b=S?S[x]:0;(!b||!await(a.isElement==null?void 0:a.isElement(S)))&&(b=l.floating[x]||i.floating[y]);const $=E/2-_/2,k=b/2-g[y]/2-1,P=Qn(u[v],k),j=Qn(u[m],k),L=P,D=b-g[y]-j,N=b/2-g[y]/2+$,z=_u(L,N,D),V=!s.arrow&&Ro(o)!=null&&N!==z&&i.reference[y]/2-(NL<=0)){var k,P;const L=(((k=i.flip)==null?void 0:k.index)||0)+1,D=_[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 eC.some(t=>e[t]>=0)}const fC=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 Ai(t,{...o,elementContext:"reference"}),a=Op(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ip(a)}}}case"escaped":{const i=await Ai(t,{...o,altBoundary:!0}),a=Op(i,n.floating);return{data:{escapedOffsets:a,escaped:Ip(a)}}}default:return{}}}}};async function dC(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=Ro(n),s=No(n)==="y",c=["left","top"].includes(a)?-1:1,f=i&&s?-1:1,u=yn(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:y}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return l&&typeof y=="number"&&(p=l==="end"?y*-1:y),s?{x:p*f,y:d*c}:{x:d*c,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 dC(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}}}}},hC=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),c={x:n,y:r},f=await Ai(t,s),u=No(wn(o)),d=nd(u);let p=c[d],y=c[u];if(i){const C=d==="y"?"top":"left",v=d==="y"?"bottom":"right",m=p+f[C],x=p-f[v];p=_u(m,p,x)}if(a){const C=u==="y"?"top":"left",v=u==="y"?"bottom":"right",m=y+f[C],x=y-f[v];y=_u(m,y,x)}const g=l.fn({...t,[d]:p,[u]:y});return{...g,data:{x:g.x-n,y:g.y-r}}}}},pC=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:c=!0}=yn(e,t),f={x:n,y:r},u=No(o),d=nd(u);let p=f[d],y=f[u];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,_=i.reference[d]+i.reference[x]-C.mainAxis;p_&&(p=_)}if(c){var v,m;const x=d==="y"?"width":"height",E=["top","left"].includes(wn(o)),_=i.reference[u]-i.floating[x]+(E&&((v=a.offset)==null?void 0:v[u])||0)+(E?0:C.crossAxis),S=i.reference[u]+i.reference[x]+(E?0:((m=a.offset)==null?void 0:m[u])||0)-(E?C.crossAxis:0);y<_?y=_:y>S&&(y=S)}return{[d]:p,[u]:y}}}},vC=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 Ai(t,l),c=wn(n),f=Ro(n),u=No(n)==="y",{width:d,height:p}=r.floating;let y,g;c==="top"||c==="bottom"?(y=c,g=f===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(g=c,y=f==="end"?"top":"bottom");const C=p-s[y],v=d-s[g],m=!t.middlewareData.shift;let x=C,E=v;if(u){const S=d-s.left-s.right;E=f||m?Qn(v,S):S}else{const S=p-s.top-s.bottom;x=f||m?Qn(C,S):S}if(m&&!f){const S=Et(s.left,0),b=Et(s.right,0),$=Et(s.top,0),k=Et(s.bottom,0);u?E=d-2*(S!==0||b!==0?S+b:Et(s.left,s.right)):x=p-2*($!==0||k!==0?$+k:Et(s.top,s.bottom))}await a({...t,availableWidth:E,availableHeight:x});const _=await o.getDimensions(i.floating);return d!==_.width||p!==_.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 $u(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 mC(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 gC(e){let t=Eo(e);for(;on(t)&&!Zl(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 Zl(e){return["html","body","#document"].includes(Xn(e))}function Mt(e){return bt(e).getComputedStyle(e)}function Xl(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||$u(e)&&e.host||bn(e);return $u(t)?t.host:t}function f1(e){const t=Eo(e);return Zl(t)?e.ownerDocument?e.ownerDocument.body:e.body:on(t)&&Wi(t)?t:f1(t)}function Oi(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?Oi(a.frameElement):[]):t.concat(o,Oi(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 yC=Zn(0);function h1(e){const t=bt(e);return!ad()||!t.visualViewport?yC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wC(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=wC(i,n,r)?h1(i):Zn(0);let s=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,f=o.width/a.x,u=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,c*=C.y,f*=C.x,u*=C.y,s+=x,c+=E,y=bt(g),g=y.frameElement}}return El({width:f,height:u,x:s,y:c})}const xC=[":popover-open",":modal"];function p1(e){return xC.some(t=>{try{return e.matches(t)}catch{return!1}})}function CC(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},c=Zn(1);const f=Zn(0),u=on(r);if((u||!u&&!i)&&((Xn(r)!=="body"||Wi(a))&&(s=Xl(r)),on(r))){const d=Er(r);c=so(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+f.x,y:n.y*c.y-s.scrollTop*c.y+f.y}}function EC(e){return Array.from(e.getClientRects())}function v1(e){return Er(bn(e)).left+Xl(e).scrollLeft}function SC(e){const t=bn(e),n=Xl(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 _C(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 c=ad();(!c||c&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}function bC(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,c=r*i.y;return{width:a,height:l,x:s,y:c}}function Lp(e,t,n){let r;if(t==="viewport")r=_C(e,n);else if(t==="document")r=SC(bn(e));else if(nt(t))r=bC(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)||Zl(n)?!1:Mt(n).position==="fixed"||m1(n,t)}function $C(e,t){const n=t.get(e);if(n)return n;let r=Oi(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)&&!Zl(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 TC(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?$C(t,this._c):[].concat(n),r],l=a[0],s=a.reduce((c,f)=>{const u=Lp(t,f,o);return c.top=Et(u.top,c.top),c.right=Qn(u.right,c.right),c.bottom=Qn(u.bottom,c.bottom),c.left=Et(u.left,c.left),c},Lp(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function kC(e){const{width:t,height:n}=d1(e);return{width:t,height:n}}function RC(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=Xl(t)),r){const u=Er(t,!0,i,t);s.x=u.x+t.clientLeft,s.y=u.y+t.clientTop}else o&&(s.x=v1(o));const c=a.left+l.scrollLeft-s.x,f=a.top+l.scrollTop-s.y;return{x:c,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&&mC(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||gC(e)||n}const NC=async function(e){const t=this.getOffsetParent||g1,n=this.getDimensions;return{reference:RC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function PC(e){return Mt(e).direction==="rtl"}const y1={convertOffsetParentRelativeRectToViewportRelativeRect:CC,getDocumentElement:bn,getClippingRect:TC,getOffsetParent:g1,getElementRects:NC,getClientRects:EC,getDimensions:kC,getScale:so,isElement:nt,isRTL:PC};function AC(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:c,top:f,width:u,height:d}=e.getBoundingClientRect();if(l||t(),!u||!d)return;const p=$a(f),y=$a(o.clientWidth-(c+u)),g=$a(o.clientHeight-(f+d)),C=$a(c),m={rootMargin:-p+"px "+-y+"px "+-g+"px "+-C+"px",threshold:Et(0,Qn(1,s))||1};let x=!0;function E(_){const S=_[0].intersectionRatio;if(S!==s){if(!x)return a();S?a(!1,S):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 OC(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,c=ld(e),f=o||i?[...c?Oi(c):[],...Oi(t)]:[];f.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const u=c&&l?AC(c,n):null;let d=-1,p=null;a&&(p=new ResizeObserver(v=>{let[m]=v;m&&m.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),c&&!s&&p.observe(c),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)}),u==null||u(),(v=p)==null||v.disconnect(),p=null,s&&cancelAnimationFrame(y)}}const w1=hC,IC=uC,LC=vC,MC=fC,jp=cC,jC=pC,DC=(e,t,n)=>{const r=new Map,o={platform:y1,...n},i={...o.platform,_c:r};return sC(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 Sl(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(!Sl(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)&&!Sl(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:c}=e,[f,u]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=h.useState(r);Sl(d,r)||p(r);const[y,g]=h.useState(null),[C,v]=h.useState(null),m=h.useCallback(U=>{U!==S.current&&(S.current=U,g(U))},[]),x=h.useCallback(U=>{U!==b.current&&(b.current=U,v(U))},[]),E=i||y,_=a||C,S=h.useRef(null),b=h.useRef(null),$=h.useRef(f),k=s!=null,P=Fp(s),j=Fp(o),L=h.useCallback(()=>{if(!S.current||!b.current)return;const U={placement:t,strategy:n,middleware:d};j.current&&(U.platform=j.current),DC(S.current,b.current,U).then(O=>{const F={...O,isPositioned:!0};D.current&&!Sl($.current,F)&&($.current=F,$o.flushSync(()=>{u(F)}))})},[d,t,n,j]);Ha(()=>{c===!1&&$.current.isPositioned&&($.current.isPositioned=!1,u(U=>({...U,isPositioned:!1})))},[c]);const D=h.useRef(!1);Ha(()=>(D.current=!0,()=>{D.current=!1}),[]),Ha(()=>{if(E&&(S.current=E),_&&(b.current=_),E&&_){if(P.current)return P.current(E,_,L);L()}},[E,_,L,P,k]);const N=h.useMemo(()=>({reference:S,floating:b,setReference:m,setFloating:x}),[m,x]),z=h.useMemo(()=>({reference:E,floating:_}),[E,_]),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 FC(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,c=Array.isArray(s)?s[0]:s;a=c.inlineSize,l=c.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 S1="Popper",[_1,b1]=En(S1),[zC,$1]=_1(S1),BC=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return h.createElement(zC,{scope:t,anchor:r,onAnchorChange:o},n)},UC="PopperAnchor",HC=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=$1(UC,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",[VC,r$]=_1(T1),WC=h.forwardRef((e,t)=>{var n,r,o,i,a,l,s,c;const{__scopePopper:f,side:u="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:_="optimized",onPlaced:S,...b}=e,$=$1(T1,f),[k,P]=h.useState(null),j=ze(t,wt=>P(wt)),[L,D]=h.useState(null),N=FC(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=u+(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(KC),altBoundary:K},{refs:se,floatingStyles:Be,placement:ye,isPositioned:Ne,middlewareData:we}=E1({strategy:"fixed",placement:U,whileElementsMounted:(...wt)=>OC(...wt,{animationFrame:_==="always"}),elements:{reference:$.anchor},middleware:[c1({mainAxis:d+V,alignmentAxis:y}),C&&w1({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?jC():void 0,...J}),C&&IC({...J}),LC({...J,apply:({elements:wt,rects:Yi,availableWidth:ql,availableHeight:es})=>{const{width:ts,height:ns}=Yi.reference,Qt=wt.floating.style;Qt.setProperty("--radix-popper-available-width",`${ql}px`),Qt.setProperty("--radix-popper-available-height",`${es}px`),Qt.setProperty("--radix-popper-anchor-width",`${ts}px`),Qt.setProperty("--radix-popper-anchor-height",`${ns}px`)}}),L&&x1({element:L,padding:g}),YC({arrowWidth:z,arrowHeight:V}),E&&MC({strategy:"referenceHidden",...J})]}),[Ue,xe]=k1(ye),_e=at(S);gn(()=>{Ne&&(_e==null||_e())},[Ne,_e]);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,Jl]=h.useState();return gn(()=>{k&&Jl(window.getComputedStyle(k).zIndex)},[k]),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(VC,{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:(c=we.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))});function KC(e){return e!==null}const YC=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:l,rects:s,middlewareData:c}=t,u=((n=c.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,d=u?0:e.arrowWidth,p=u?0:e.arrowHeight,[y,g]=k1(l),C={start:"0%",center:"50%",end:"100%"}[g],v=((r=(o=c.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+d/2,m=((i=(a=c.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+p/2;let x="",E="";return y==="bottom"?(x=u?C:`${v}px`,E=`${-p}px`):y==="top"?(x=u?C:`${v}px`,E=`${s.floating.height+p}px`):y==="right"?(x=`${-p}px`,E=u?C:`${m}px`):y==="left"&&(x=`${s.floating.width+p}px`,E=u?C:`${m}px`),{data:{x,y:E}}}});function k1(e){const[t,n="center"]=e.split("-");return[t,n]}const GC=BC,QC=HC,ZC=WC,R1="Popover",[N1,o$]=En(R1,[b1]),sd=b1(),[XC,Po]=N1(R1),JC=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,l=sd(t),s=h.useRef(null),[c,f]=h.useState(!1),[u=!1,d]=rr({prop:r,defaultProp:o,onChange:i});return h.createElement(GC,l,h.createElement(XC,{scope:t,contentId:rn(),triggerRef:s,open:u,onOpenChange:d,onOpenToggle:h.useCallback(()=>d(p=>!p),[d]),hasCustomAnchor:c,onCustomAnchorAdd:h.useCallback(()=>f(!0),[]),onCustomAnchorRemove:h.useCallback(()=>f(!1),[]),modal:a},n))},qC="PopoverTrigger",eE=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Po(qC,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(QC,Y({asChild:!0},i),l)}),P1="PopoverPortal",[tE,nE]=N1(P1,{forceMount:void 0}),rE=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Po(P1,t);return h.createElement(tE,{scope:t,forceMount:n},h.createElement(Sn,{present:n||i.open},h.createElement(tg,{asChild:!0,container:o},r)))},Ii="PopoverContent",oE=h.forwardRef((e,t)=>{const n=nE(Ii,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Po(Ii,e.__scopePopover);return h.createElement(Sn,{present:r||i.open},i.modal?h.createElement(iE,Y({},o,{ref:t})):h.createElement(aE,Y({},o,{ref:t})))}),iE=h.forwardRef((e,t)=>{const n=Po(Ii,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,c=l.button===2||s;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:ae(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})))}),aE=h.forwardRef((e,t)=>{const n=Po(Ii,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:c,onInteractOutside:f,...u}=e,d=Po(Ii,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:c,onDismiss:()=>d.onOpenChange(!1)},h.createElement(ZC,Y({"data-state":O1(d.open),role:"dialog",id:d.contentId},p,u,{ref:t,style:{...u.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 lE=JC,sE=eE,cE=rE,uE=oE;var fE="vocs_Popover";Ht.Root=lE;Ht.Trigger=sE;function Ht({children:e,className:t}){return w.jsx(cE,{children:w.jsx(uE,{className:I(fE,t),sideOffset:12,children:e})})}var dE="vocs_Sidebar_backLink",hE="vocs_Sidebar_divider",pE="vocs_Sidebar_group",ti="vocs_Sidebar_item",I1="vocs_Sidebar_items",vE="vocs_Sidebar_level",mE="vocs_Sidebar_levelCollapsed",gE="vocs_Sidebar_levelInset",yE="vocs_Sidebar_logo",wE="vocs_Sidebar_logoWrapper",xE="vocs_Sidebar_navigation",CE="vocs_Sidebar",L1="vocs_Sidebar_section",EE="vocs_Sidebar_sectionCollapse",SE="vocs_Sidebar_sectionCollapseActive",_E="vocs_Sidebar_sectionHeader",bE="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 c;const{className:t,onClickItem:n}=e,{previousPath:r}=kr(),o=h.useRef(null),i=Vl(),[a,l]=h.useState("/");if(h.useEffect(()=>{typeof window>"u"||r&&l(r)},[i.key,i.backLink]),!i)return null;const s=$E(i.items);return w.jsxs("aside",{ref:o,className:I(CE,t),children:[w.jsxs("div",{className:wE,children:[w.jsx("div",{className:yE,children:w.jsx(Gn,{to:"/",style:{alignItems:"center",display:"flex",height:"100%"},children:w.jsx(Yf,{})})}),w.jsx("div",{className:hE})]}),w.jsx("nav",{className:xE,children:w.jsxs("div",{className:pE,children:[i.backLink&&w.jsx("section",{className:L1,children:w.jsx("div",{className:I1,children:w.jsxs(Gn,{className:I(ti,dE),to:a,children:["←"," ",typeof history<"u"&&((c=history.state)!=null&&c.key)&&a!=="/"?"Back":"Home"]})})}),s.map((f,u)=>w.jsx(F1,{depth:0,item:f,onClick:n,sidebarRef:o},`${f.text}${u}`))]})})]},i.key)}function $E(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=>Ul(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=D3(n.link??""),s=h.useMemo(()=>n.items?!!D1(n.items,a):!1,[n.items,a]),[c,f]=h.useState(()=>l||!n.items||s?!1:!!n.collapsed),u=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,!Ul(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:ti,to:n.link,children:n.text}):w.jsx("div",{className:ti,children:n.text})})}function TE(){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 kE(){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 RE(){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"})]})}Tu.Curtain=ME;function Tu(){var n,r;const e=Je(),{showLogo:t}=Rr();return w.jsxs("div",{className:H8,children:[w.jsxs("div",{className:Pp,children:[t&&w.jsx("div",{className:ba,children:w.jsx("div",{className:j8,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(NE,{items:e.topNav}),w.jsx(AE,{items:e.topNav})]})})]}),w.jsxs("div",{className:Pp,children:[w.jsx("div",{className:ba,style:{marginRight:"-8px"},children:w.jsx(k8,{})}),e.socials&&((n=e.socials)==null?void 0:n.length)>0&&w.jsxs(w.Fragment,{children:[w.jsx("div",{className:I8}),w.jsx("div",{className:ba,style:{marginLeft:"-8px"},children:(r=e.socials)==null?void 0:r.map((o,i)=>w.jsx(LE,{...o},i))})]})]})]})}function NE({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(Gl,{active:n==null?void 0:n.includes(r.id),href:r.link,children:r.text},o):w.jsxs(zg,{className:M8,children:[w.jsx(Bg,{active:n==null?void 0:n.includes(r.id),children:r.text}),w.jsx(Ug,{className:A8,children:w.jsx(PE,{items:r.items||[]})})]},o))})})}function PE({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(Gl,{active:n.includes(r.id),href:r.link,children:r.text},o))})}function AE({items:e}){var s;const[t,n]=h.useState(!1),{pathname:r}=Re(),o=Hi({pathname:r,items:e}),i=e.filter(c=>c.id===o[0])[0],{basePath:a}=Je(),l=a;return w.jsx("div",{className:I(i1,B8),children:i?w.jsxs(Ht.Root,{modal:!0,open:t,onOpenChange:n,children:[w.jsxs(Ht.Trigger,{className:I(o1,Go),children:[i.text,w.jsx(st,{label:"Menu",icon:TE,size:"11px"})]}),w.jsx(Ht,{className:K8,children:w.jsx(S8,{type:"single",collapsible:!0,style:{display:"flex",flexDirection:"column"},children:e.map((c,f)=>{var u;return c!=null&&c.link?w.jsx(nn,{"data-active":o.includes(c.id),className:Go,href:c.link,onClick:()=>n(!1),variant:"styleless",children:c.text},f):w.jsxs(_8,{value:f.toString(),children:[w.jsx(b8,{className:I(Go,z8),"data-active":o.includes(c.id),style:Gt({[N8]:`url(${l}/.vocs/icons/chevron-down.svg)`,[P8]:`url(${l}/.vocs/icons/chevron-up.svg)`}),children:c.text}),w.jsx($8,{className:F8,children:(u=c.items)==null?void 0:u.map((d,p)=>w.jsx(nn,{className:Go,href:d.link,onClick:()=>n(!1),variant:"styleless",children:d.text},p))})]},f)})})})]}):(s=e[0])!=null&&s.link?w.jsx(nn,{className:Go,href:e[0].link,variant:"styleless",children:e[0].text}):null})}const OE={discord:Hg,github:Vg,telegram:Wg,warpcast:Kg,x:Yg},IE={discord:"21px",github:"18px",telegram:"21px",warpcast:"18px",x:"16px"};function LE({icon:e,label:t,link:n,type:r}){return w.jsx("a",{className:R8,href:n,target:"_blank",rel:"noopener noreferrer",children:w.jsx(st,{className:L8,label:t,icon:OE[e],size:IE[r]||"18px"})})}function ME({enableScrollToTop:e}){const{pathname:t}=Re(),{layout:n,showSidebar:r}=Rr(),{frontmatter:o={}}=kr(),i=Vl(),[a,l]=h.useState(!1),[s,c]=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]),u=h.useMemo(()=>{var p;if(!(typeof window>"u"))return(p=document.querySelector(".vocs_Content h1"))==null?void 0:p.textContent},[]),d=f||o.title||u;return w.jsxs("div",{className:O8,children:[w.jsx("div",{className:Rp,children:w.jsx("div",{className:tc,children:r?w.jsxs(Ht.Root,{modal:!0,open:s,onOpenChange:c,children:[w.jsxs(Ht.Trigger,{className:o1,children:[w.jsx(st,{label:"Menu",icon:RE,size:"13px"}),w.jsx("div",{className:D8,children:d})]}),w.jsx(Ht,{className:W8,children:w.jsx(j1,{onClickItem:()=>c(!1)})})]}):d})}),w.jsxs("div",{className:Rp,children:[e&&w.jsxs(w.Fragment,{children:[w.jsx("div",{className:tc,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:kE,size:"10px"})]})}),w.jsx("div",{className:V8})]}),n==="docs"&&w.jsx("div",{className:tc,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:U8,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 jE="vocs_SkipLink";const B1="vocs-content";function DE(){const{pathname:e}=Re();return w.jsx("a",{className:I(jE,Z0),href:`${e}#${B1}`,children:"Skip to content"})}var FE="vocs_DocsLayout_content",zE="vocs_DocsLayout_content_withSidebar",BE="vocs_DocsLayout_content_withTopNav",UE="vocs_DocsLayout_gutterLeft",HE="vocs_DocsLayout_gutterRight",VE="vocs_DocsLayout_gutterRight_withSidebar",WE="vocs_DocsLayout_gutterTop",KE="vocs_DocsLayout_gutterTopCurtain",YE="vocs_DocsLayout_gutterTopCurtain_hidden",GE="vocs_DocsLayout_gutterTopCurtain_withSidebar",QE="vocs_DocsLayout_gutterTop_offsetLeftGutter",ZE="vocs_DocsLayout_gutterTop_sticky",XE="vocs_DocsLayout",JE="vocs_DocsLayout_sidebar";function ku({children:e}){const{banner:t,font:n}=Je(),{frontmatter:r={}}=kr(),{content:o}=r,{layout:i,showOutline:a,showSidebar:l,showTopNav:s}=Rr(),{ref:c,inView:f}=U0({initialInView:!0,rootMargin:"100px 0px 0px 0px"}),[u,d]=mu("banner",!0);return w.jsxs("div",{className:XE,"data-layout":i,style:Gt({[Yx]:u?t==null?void 0:t.height:void 0,[Rx.default]:n!=null&&n.google?`${n.google}, ${kx.default}`:void 0}),children:[w.jsx(DE,{}),u&&w.jsx(v5,{hide:()=>d(!1)}),l&&w.jsx("div",{className:UE,children:w.jsx(j1,{className:JE})}),s&&w.jsxs(w.Fragment,{children:[w.jsxs("div",{ref:c,className:I(WE,l&&QE,(i==="minimal"||i==="landing")&&ZE),children:[w.jsx(Eu,{}),w.jsx(Tu,{})]}),w.jsxs("div",{className:I(KE,l&&GE,(i==="minimal"||i==="landing")&&YE),children:[w.jsx(Eu.Curtain,{}),w.jsx(Tu.Curtain,{enableScrollToTop:!f})]})]}),a&&w.jsx("div",{className:I(HE,l&&VE),children:w.jsx(a1,{})}),w.jsxs("div",{id:B1,className:I(FE,l&&zE,s&&BE),style:Gt({[js.horizontalPadding]:o==null?void 0:o.horizontalPadding,[js.width]:o==null?void 0:o.width,[js.verticalPadding]:o==null?void 0:o.verticalPadding}),children:[w.jsx(Y0,{children:e}),w.jsx(Z6,{})]}),w.jsx("div",{"data-bottom-observer":!0})]})}const Ru={},U1=Z.createContext(Ru);function qE(e){const t=Z.useContext(U1);return Z.useMemo(function(){return typeof e=="function"?e(t):{...t,...e}},[t,e])}function eS(e){let t;return e.disableParentContext?t=typeof e.components=="function"?e.components(Ru):e.components||Ru:t=qE(e.components),Z.createElement(U1.Provider,{value:t},e.children)}var H1={exports:{}},tS="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",nS=tS,rS=nS;function V1(){}function W1(){}W1.resetWarningCache=V1;var oS=function(){function e(r,o,i,a,l,s){if(s!==rS){var c=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 c.name="Invariant Violation",c}}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=oS();var iS=H1.exports;const Ce=Jn(iS);function aS(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var K1=h,lS=aS(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 sS(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var cS=!!(typeof window<"u"&&window.document&&window.document.createElement);function uS(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})),c.canUseDOM?t(l):n&&(l=n(l))}var c=function(f){sS(u,f);function u(){return f.apply(this,arguments)||this}u.peek=function(){return l},u.rewind=function(){if(u.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=u.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 lS.createElement(i,this.props)},u}(K1.PureComponent);return Bp(c,"displayName","SideEffect("+r(i)+")"),Bp(c,"canUseDOM",cS),c}}var fS=uS;const dS=Jn(fS);var hS=typeof Element<"u",pS=typeof Map=="function",vS=typeof Set=="function",mS=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(pS&&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(vS&&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(mS&&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(hS&&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 gS=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 yS=Jn(gS);/* +*****************************************************/(function(e,t){(function(n,r){e.exports=r()})(Cy,function(){var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},r=function(c,f){if(!(c instanceof f))throw new TypeError("Cannot call a class as a function")},o=function(){function c(f,u){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,c),this.ctx=f,this.iframes=u,this.exclude=d,this.iframesTimeout=p}return o(c,[{key:"getContexts",value:function(){var u=void 0,d=[];return typeof this.ctx>"u"||!this.ctx?u=[]:NodeList.prototype.isPrototypeOf(this.ctx)?u=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?u=this.ctx:typeof this.ctx=="string"?u=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):u=[this.ctx],u.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(u,d){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},y=void 0;try{var g=u.contentWindow;if(y=g.document,!g||!y)throw new Error("iframe inaccessible")}catch{p()}y&&d(y)}},{key:"isIframeBlank",value:function(u){var d="about:blank",p=u.getAttribute("src").trim(),y=u.contentWindow.location.href;return y===d&&p!==d&&p}},{key:"observeIframeLoad",value:function(u,d,p){var y=this,g=!1,C=null,v=function m(){if(!g){g=!0,clearTimeout(C);try{y.isIframeBlank(u)||(u.removeEventListener("load",m),y.getIframeContents(u,d,p))}catch{p()}}};u.addEventListener("load",v),C=setTimeout(v,this.iframesTimeout)}},{key:"onIframeReady",value:function(u,d,p){try{u.contentWindow.document.readyState==="complete"?this.isIframeBlank(u)?this.observeIframeLoad(u,d,p):this.getIframeContents(u,d,p):this.observeIframeLoad(u,d,p)}catch{p()}}},{key:"waitForIframes",value:function(u,d){var p=this,y=0;this.forEachIframe(u,function(){return!0},function(g){y++,p.waitForIframes(g.querySelector("html"),function(){--y||d()})},function(g){g||d()})}},{key:"forEachIframe",value:function(u,d,p){var y=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},C=u.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){c.matches(E,y.exclude)?x():y.onIframeReady(E,function(_){d(E)&&(m++,p(_)),x()},x)})}},{key:"createIterator",value:function(u,d,p){return document.createNodeIterator(u,d,p,!1)}},{key:"createInstanceOnIframe",value:function(u){return new c(u.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(u,d,p){var y=u.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(u){var d=u.previousNode(),p=void 0;return d===null?p=u.nextNode():p=u.nextNode()&&u.nextNode(),{prevNode:d,node:p}}},{key:"checkIframeFilter",value:function(u,d,p,y){var g=!1,C=!1;return y.forEach(function(v,m){v.val===p&&(g=m,C=v.handled)}),this.compareNodeIframe(u,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(u,d,p,y){var g=this;u.forEach(function(C){C.handled||g.getIframeContents(C.val,function(v){g.createInstanceOnIframe(v).forEachNode(d,p,y)})})}},{key:"iterateThroughNodes",value:function(u,d,p,y,g){for(var C=this,v=this.createIterator(d,u,y),m=[],x=[],E=void 0,_=void 0,S=function(){var $=C.getIteratorNode(v);return _=$.prevNode,E=$.node,E};S();)this.iframes&&this.forEachIframe(d,function(b){return C.checkIframeFilter(E,_,b,m)},function(b){C.createInstanceOnIframe(b).forEachNode(u,function($){return x.push($)},y)}),x.push(E);x.forEach(function(b){p(b)}),this.iframes&&this.handleOpenIframes(m,u,p,y),g()}},{key:"forEachNode",value:function(u,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(u,m,d,p,function(){--v<=0&&g()})};y.iframes?y.waitForIframes(m,x):x()})}}],[{key:"matches",value:function(u,d){var p=typeof d=="string"?[d]:d,y=u.matches||u.matchesSelector||u.msMatchesSelector||u.mozMatchesSelector||u.oMatchesSelector||u.webkitMatchesSelector;if(y){var g=!1;return p.every(function(C){return y.call(u,C)?(g=!0,!1):!0}),g}else return!1}}]),c}(),l=function(){function c(f){r(this,c),this.ctx=f,this.ie=!1;var u=window.navigator.userAgent;(u.indexOf("MSIE")>-1||u.indexOf("Trident")>-1)&&(this.ie=!0)}return o(c,[{key:"log",value:function(u){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: "+u)}},{key:"escapeStr",value:function(u){return u.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(u){return this.opt.wildcards!=="disabled"&&(u=this.setupWildcardsRegExp(u)),u=this.escapeStr(u),Object.keys(this.opt.synonyms).length&&(u=this.createSynonymsRegExp(u)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(u=this.setupIgnoreJoinersRegExp(u)),this.opt.diacritics&&(u=this.createDiacriticsRegExp(u)),u=this.createMergedBlanksRegExp(u),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(u=this.createJoinersRegExp(u)),this.opt.wildcards!=="disabled"&&(u=this.createWildcardsRegExp(u)),u=this.createAccuracyRegExp(u),u}},{key:"createSynonymsRegExp",value:function(u){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!==""&&(u=u.replace(new RegExp("("+this.escapeStr(v)+"|"+this.escapeStr(m)+")","gm"+p),y+("("+this.processSynomyms(v)+"|")+(this.processSynomyms(m)+")")+y))}return u}},{key:"processSynomyms",value:function(u){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(u=this.setupIgnoreJoinersRegExp(u)),u}},{key:"setupWildcardsRegExp",value:function(u){return u=u.replace(/(?:\\)*\?/g,function(d){return d.charAt(0)==="\\"?"?":""}),u.replace(/(?:\\)*\*/g,function(d){return d.charAt(0)==="\\"?"*":""})}},{key:"createWildcardsRegExp",value:function(u){var d=this.opt.wildcards==="withSpaces";return u.replace(/\u0001/g,d?"[\\S\\s]?":"\\S?").replace(/\u0002/g,d?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(u){return u.replace(/[^(|)\\]/g,function(d,p,y){var g=y.charAt(p+1);return/[(|)\\]/.test(g)||g===""?d:d+"\0"})}},{key:"createJoinersRegExp",value:function(u){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?u.split(/\u0000+/).join("["+d.join("")+"]*"):u}},{key:"createDiacriticsRegExp",value:function(u){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 u.split("").forEach(function(g){p.every(function(C){if(C.indexOf(g)!==-1){if(y.indexOf(C)>-1)return!1;u=u.replace(new RegExp("["+C+"]","gm"+d),"["+C+"]"),y.push(C)}return!0})}),u}},{key:"createMergedBlanksRegExp",value:function(u){return u.replace(/[\s]+/gmi,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(u){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"()("+u+")";case"complementary":return v="\\s"+(v||this.escapeStr(p)),"()([^"+v+"]*"+u+"[^"+v+"]*)";case"exactly":return"(^|\\s"+v+")("+u+")(?=$|\\s"+v+")"}}},{key:"getSeparatedKeywords",value:function(u){var d=this,p=[];return u.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(u){return Number(parseFloat(u))==u}},{key:"checkRanges",value:function(u){var d=this;if(!Array.isArray(u)||Object.prototype.toString.call(u[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(u),[];var p=[],y=0;return u.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(u,d){var p=void 0,y=void 0,g=!1;return u&&typeof u.start<"u"?(p=parseInt(u.start,10),y=p+parseInt(u.length,10),this.isNumeric(u.start)&&this.isNumeric(u.length)&&y-d>0&&y-p>0?g=!0:(this.log("Ignoring invalid or overlapping range: "+(""+JSON.stringify(u))),this.opt.noMatch(u))):(this.log("Ignoring invalid range: "+JSON.stringify(u)),this.opt.noMatch(u)),{start:p,end:y,valid:g}}},{key:"checkWhitespaceRanges",value:function(u,d,p){var y=void 0,g=!0,C=p.length,v=d-C,m=parseInt(u.start,10)-v;return m=m>C?C:m,y=m+parseInt(u.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(u)),this.opt.noMatch(u)):p.substring(m,y).replace(/\s+/g,"")===""&&(g=!1,this.log("Skipping whitespace only range: "+JSON.stringify(u)),this.opt.noMatch(u)),{start:m,end:y,valid:g}}},{key:"getTextNodes",value:function(u){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(){u({value:p,nodes:y})})}},{key:"matchesExclude",value:function(u){return a.matches(u,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(u,d,p){var y=this.opt.element?this.opt.element:"mark",g=u.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(u,d,p,y,g){var C=this;u.nodes.every(function(v,m){var x=u.nodes[m+1];if(typeof x>"u"||x.start>d){if(!y(v.node))return!1;var E=d-v.start,_=(p>v.end?v.end:p)-v.start,S=u.value.substr(0,v.start),b=u.value.substr(_+v.start);if(v.node=C.wrapRangeInTextNode(v.node,E,_),u.value=S+b,u.nodes.forEach(function($,k){k>=m&&(u.nodes[k].start>0&&k!==m&&(u.nodes[k].start-=_),u.nodes[k].end-=_)}),p-=_,g(v.node.previousSibling,v.start),p>v.end)d=v.end;else return!1}return!0})}},{key:"wrapMatches",value:function(u,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=u.exec(x.textContent))!==null&&E[v]!=="";)if(p(E[v],x)){var _=E.index;if(v!==0)for(var S=1;S{const o=setTimeout(()=>r(e),t||500);return()=>{clearTimeout(o)}},[e,t]),n}function mu(e,t){const[n,r]=h.useState();h.useEffect(()=>{const i=d7(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 d7(e){try{const t=localStorage.getItem(e);return typeof t=="string"?JSON.parse(t):void 0}catch{return}}var h7="vocs_Kbd";function Rg(e){return w.jsx("kbd",{...e,className:I(e.className,h7)})}var p7="vocs_KeyboardShortcut_kbdGroup",v7="vocs_KeyboardShortcut";function eo(e){const{description:t,keys:n}=e;return w.jsxs("span",{className:v7,children:[t,w.jsx("span",{className:p7,children:n.map(r=>w.jsx(Rg,{children:r},r))})]})}var m7="vocs_SearchDialog_content",mp="vocs_SearchDialog_excerpt",g7="vocs_SearchDialog_overlay",y7="vocs_SearchDialog_result",gp="vocs_SearchDialog_resultIcon",w7="vocs_SearchDialog_resultSelected",x7="vocs_SearchDialog_results",C7="vocs_SearchDialog",E7="vocs_SearchDialog_searchBox",S7="vocs_SearchDialog_searchInput",Sa="vocs_SearchDialog_searchInputIcon",_7="vocs_SearchDialog_searchInputIconDesktop",b7="vocs_SearchDialog_searchInputIconMobile",$7="vocs_SearchDialog_searchShortcuts",yp="vocs_SearchDialog_title",T7="vocs_SearchDialog_titleIcon",k7="vocs_SearchDialog_titles";function Ng(e){const t=Ff(),n=h.useRef(null),r=h.useRef(null),[o,i]=mu("filterText",""),a=f7(o,200),l=Tg(),[s,c]=h.useState(-1),[f,u]=h.useState(!1),[d,p]=mu("showDetailView",!0),y=h.useMemo(()=>l?a?(c(0),l.search(a).slice(0,16)):(c(-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 k in $.match)m.add(k);const x=new u7(r.current);x.unmark({done(){x==null||x.markRegExp(R7(m))}});const E=r.current.querySelectorAll(`.${mp}`);for(const $ of E)(_=$.querySelector('mark[data-markjs="true"]'))==null||_.scrollIntoView({block:"center"});(b=(S=r.current)==null?void 0:S.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(),c(_=>{var $;let S=_+1;S>=g&&(S=0);const b=($=r.current)==null?void 0:$.children[S];return b==null||b.scrollIntoView({block:"nearest"}),S}),u(!0);break}case"ArrowUp":{x.preventDefault(),c(_=>{var $;let S=_-1;S<0&&(S=g-1);const b=($=r.current)==null?void 0:$.children[S];return b==null||b.scrollIntoView({block:"nearest"}),S}),u(!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(z4,{children:[w.jsx(B4,{className:g7}),w.jsxs(U4,{onOpenAutoFocus:m=>{n.current&&(m.preventDefault(),n.current.focus()),v()},onCloseAutoFocus:()=>{c(0)},className:C7,"aria-describedby":void 0,children:[w.jsx(H4,{className:Z0,children:"Search"}),w.jsxs("form",{className:E7,children:[w.jsx("button",{"aria-label":"Close search dialog",type:"button",onClick:()=>e.onClose(),className:b7,children:w.jsx(r5,{className:Sa,height:20,width:20})}),w.jsx(s7,{htmlFor:"search-input",children:w.jsx(Uf,{"aria-label":"Search",className:I(Sa,_7),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(f5,{className:Sa,height:20,width:20})}),w.jsx("button",{"aria-label":"Reset search",type:"button",className:Sa,onClick:()=>{var m;i(""),(m=n.current)==null||m.focus()},children:"⌫"})]}),w.jsxs("ul",{className:x7,role:y.length?"listbox":void 0,onMouseMove:()=>u(!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(y7,x===s&&w7),"aria-selected":x===s,"aria-label":[...m.titles.filter(_=>!!_),m.title].join(" > "),children:w.jsxs(M0,{to:m.href,onClick:_=>{_.metaKey||e.onClose()},onMouseEnter:()=>!f&&c(x),onFocus:()=>c(x),children:[w.jsxs("div",{className:k7,children:[m.isPage?w.jsx(c5,{className:gp}):w.jsx("span",{className:gp,children:"#"}),m.titles.filter(_=>!!_).map(_=>w.jsxs("span",{className:yp,children:[w.jsx("span",{dangerouslySetInnerHTML:{__html:_}}),w.jsx(i5,{className:T7})]},_)),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:m7,children:w.jsx("div",{dangerouslySetInnerHTML:{__html:m.html}})})})]})},m.id)})]}),w.jsxs("div",{className:$7,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 R7(e){return new RegExp([...e].sort((t,n)=>n.length-t.length).map(t=>`(${t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")})`).join("|"),"gi")}function N7(){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:i7,type:"button",children:[w.jsx(Uf,{style:{marginTop:2}}),"Search",w.jsx("div",{className:a7,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",P7="vocs_DesktopTopNav_content",A7="vocs_DesktopTopNav_curtain",wp="vocs_DesktopTopNav_divider",qs="vocs_DesktopTopNav_group",_a="vocs_DesktopTopNav_hideCompact",gu="vocs_DesktopTopNav_icon",yl="vocs_DesktopTopNav_item",O7="vocs_DesktopTopNav_logo",I7="vocs_DesktopTopNav_logoWrapper",L7="vocs_DesktopTopNav",xp="vocs_DesktopTopNav_section",M7="vocs_DesktopTopNav_withLogo",j7="vocs_Icon",yu="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(j7,e),role:"img",style:{...o,...Gt({[yu]:r})},children:w.jsx(n,{height:r,width:r})})}var D7="vocs_Logo_logoDark",F7="vocs_Logo_logoLight",ec="vocs_Logo";function z7({className:e}){const{logoUrl:t}=Je();return t?w.jsx(w.Fragment,{children:typeof t=="string"?w.jsx("img",{alt:"Logo",className:I(e,ec),src:t}):w.jsxs(w.Fragment,{children:[w.jsx("img",{alt:"Logo",className:I(e,ec,D7),src:t.dark}),w.jsx("img",{alt:"Logo",className:I(e,ec,F7),src:t.light})]})}):null}var B7="vocs_NavLogo_logoImage",U7="vocs_NavLogo_title";function Yf(){const e=Je();return e.logoUrl?w.jsx(z7,{className:B7}):w.jsx("div",{className:U7,children:e.title})}const H7=h.createContext(void 0);function Kl(e){const t=h.useContext(H7);return e||t||"ltr"}function Yl(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)}),c=e+"CollectionItemSlot",f="data-radix-collection-item",u=Z.forwardRef((p,y)=>{const{scope:g,children:C,...v}=p,m=Z.useRef(null),x=ze(y,m),E=i(c,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,_)=>v.indexOf(E.ref.current)-v.indexOf(_.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:a,Slot:s,ItemSlot:u},d,r]}function V7(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 W7=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}}))),K7=W7,Vi="NavigationMenu",[Gf,Y7,G7]=Yl(Vi),[wu,Q7,Z7]=Yl(Vi),[Qf,e$]=En(Vi,[G7,Z7]),[X7,Nr]=Qf(Vi),[J7,t$]=Qf(Vi),q7=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,delayDuration:a=200,skipDelayDuration:l=300,orientation:s="horizontal",dir:c,...f}=e,[u,d]=h.useState(null),p=ze(t,k=>d(k)),y=Kl(c),g=h.useRef(0),C=h.useRef(0),v=h.useRef(0),[m,x]=h.useState(!0),[E="",_]=rr({prop:r,onChange:k=>{const P=k!=="",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(k)},defaultProp:i}),S=h.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>_(""),150)},[_]),b=h.useCallback(k=>{window.clearTimeout(C.current),_(k)},[_]),$=h.useCallback(k=>{E===k?window.clearTimeout(C.current):g.current=window.setTimeout(()=>{window.clearTimeout(C.current),_(k)},a)},[E,_,a]);return h.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(C.current),window.clearTimeout(v.current)},[]),h.createElement(e6,{scope:n,isRootMenu:!0,value:E,dir:y,orientation:s,rootNavigationMenu:u,onTriggerEnter:k=>{window.clearTimeout(g.current),m?$(k):b(k)},onTriggerLeave:()=>{window.clearTimeout(g.current),S()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:S,onItemSelect:k=>{_(P=>P===k?"":k)},onItemDismiss:()=>_("")},h.createElement(fe.nav,Y({"aria-label":"Main","data-orientation":s,dir:y},f,{ref:p})))}),e6=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:i,children:a,value:l,onItemSelect:s,onItemDismiss:c,onTriggerEnter:f,onTriggerLeave:u,onContentEnter:d,onContentLeave:p}=e,[y,g]=h.useState(null),[C,v]=h.useState(new Map),[m,x]=h.useState(null);return h.createElement(X7,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:l,previousValue:V7(l),baseId:rn(),dir:o,orientation:i,viewport:y,onViewportChange:g,indicatorTrack:m,onIndicatorTrackChange:x,onTriggerEnter:at(f),onTriggerLeave:at(u),onContentEnter:at(d),onContentLeave:at(p),onItemSelect:at(s),onItemDismiss:at(c),onViewportContentChange:h.useCallback((E,_)=>{v(S=>(S.set(E,_),new Map(S)))},[]),onViewportContentRemove:h.useCallback(E=>{v(_=>_.has(E)?(_.delete(E),new Map(_)):_)},[])},h.createElement(Gf.Provider,{scope:t},h.createElement(J7,{scope:t,items:C},a)))},t6="NavigationMenuList",n6=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Nr(t6,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))}),r6="NavigationMenuItem",[o6,Ag]=Qf(r6),i6=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),c=h.useRef(null),f=h.useRef(()=>{}),u=h.useRef(!1),d=h.useCallback((y="start")=>{if(l.current){f.current();const g=xu(l.current);g.length&&Zf(y==="start"?g:g.reverse())}},[]),p=h.useCallback(()=>{if(l.current){const y=xu(l.current);y.length&&(f.current=h6(y))}},[]);return h.createElement(o6,{scope:n,value:a,triggerRef:s,contentRef:l,focusProxyRef:c,wasEscapeCloseRef:u,onEntryKeyDown:d,onFocusProxyEnter:d,onRootContentClose:p,onContentFocusOutside:p},h.createElement(fe.li,Y({},o,{ref:t})))}),Cp="NavigationMenuTrigger",a6=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),c=Mg(i.baseId,a.value),f=jg(i.baseId,a.value),u=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:c,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,Cu(()=>{r||d.current||a.wasEscapeCloseRef.current||u.current||(i.onTriggerEnter(a.value),u.current=!0)})),onPointerLeave:ae(e.onPointerLeave,Cu(()=>{r||(i.onTriggerLeave(),u.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(K7,{"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",l6=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,c=>o==null?void 0:o(c),{once:!0}),cu(l,s),!s.defaultPrevented&&!a.metaKey){const c=new CustomEvent(Ua,{bubbles:!0,cancelable:!0});cu(l,c)}},{checkForDefaultPrevented:!1})})))}),wl="NavigationMenuContent",s6=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(c6,Y({forceMount:n},s,{ref:a})):h.createElement(Sn,{present:n||l},h.createElement(u6,Y({"data-state":Lg(l)},s,{ref:a,onPointerEnter:ae(e.onPointerEnter,o.onContentEnter),onPointerLeave:ae(e.onPointerLeave,Cu(o.onContentLeave)),style:{pointerEvents:!l&&o.isRootMenu?"none":void 0,...s.style}})))}),c6=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",u6=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:i,wasEscapeCloseRef:a,onRootContentClose:l,onContentFocusOutside:s,...c}=e,f=Nr(wl,n),u=h.useRef(null),d=ze(u,t),p=Mg(f.baseId,r),y=jg(f.baseId,r),g=Y7(n),C=h.useRef(null),{onItemDismiss:v}=f;h.useEffect(()=>{const x=u.current;if(f.isRootMenu&&x){const E=()=>{var _;v(),l(),x.contains(document.activeElement)&&((_=o.current)===null||_===void 0||_.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 _=E.indexOf(f.value),S=E.indexOf(f.previousValue),b=r===f.value,$=S===E.indexOf(r);if(!b&&!$)return C.current;const k=(()=>{if(_!==S){if(b&&S!==-1)return _>S?"from-end":"from-start";if($&&_!==-1)return _>S?"to-start":"to-end"}return null})();return C.current=k,k},[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},c,{ref:d,onDismiss:()=>{var x;const E=new Event(Ua,{bubbles:!0,cancelable:!0});(x=u.current)===null||x===void 0||x.dispatchEvent(E)},onFocusOutside:ae(e.onFocusOutside,x=>{var E;s();const _=x.target;(E=f.rootNavigationMenu)!==null&&E!==void 0&&E.contains(_)&&x.preventDefault()}),onPointerDownOutside:ae(e.onPointerDownOutside,x=>{var E;const _=x.target,S=g().some($=>{var k;return(k=$.ref.current)===null||k===void 0?void 0:k.contains(_)}),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=xu(x.currentTarget),$=document.activeElement,k=b.findIndex(L=>L===$),j=x.shiftKey?b.slice(0,k).reverse():b.slice(k+1,b.length);if(Zf(j))x.preventDefault();else{var S;(S=i.current)===null||S===void 0||S.focus()}}}),onEscapeKeyDown:ae(e.onEscapeKeyDown,x=>{a.current=!0})})))}),f6="FocusGroup",Og=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Nr(f6,n);return h.createElement(wu.Provider,{scope:n},h.createElement(wu.Slot,{scope:n},h.createElement(fe.div,Y({dir:o.dir},r,{ref:t}))))}),Sp=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],d6="FocusGroupItem",Ig=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Q7(n),i=Nr(d6,n);return h.createElement(wu.ItemSlot,{scope:n},h.createElement(fe.button,Y({},r,{ref:t,onKeyDown:ae(e.onKeyDown,a=>{if(["Home","End",...Sp].includes(a.key)){let s=o().map(u=>u.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(a.key)&&s.reverse(),Sp.includes(a.key)){const u=s.indexOf(a.currentTarget);s=s.slice(u+1)}setTimeout(()=>Zf(s)),a.preventDefault()}})})))});function xu(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 h6(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 Cu(e){return t=>t.pointerType==="mouse"?e(t):void 0}const p6=q7,v6=n6,m6=i6,g6=a6,y6=l6,w6=s6;var x6="var(--vocs_NavigationMenu_chevronDownIcon)",C6="vocs_NavigationMenu_content",E6="vocs_NavigationMenu_item",S6="vocs_NavigationMenu_link",_6="vocs_NavigationMenu_list",b6="vocs_NavigationMenu",$6="vocs_NavigationMenu_trigger vocs_NavigationMenu_link";const Dg=e=>w.jsx(p6,{...e,className:I(e.className,b6)}),Fg=e=>w.jsx(v6,{...e,className:I(e.className,_6)}),Gl=({active:e,children:t,className:n,href:r})=>w.jsx(y6,{asChild:!0,children:w.jsx(nn,{"data-active":e,className:I(n,S6),href:r,variant:"styleless",children:t})}),zg=e=>w.jsx(m6,{...e,className:I(e.className,E6)}),Bg=({active:e,className:t,...n})=>{const{basePath:r}=Je(),o=r;return w.jsx(g6,{...n,"data-active":e,className:I(t,$6),style:Gt({[x6]:`url(${o}/.vocs/icons/chevron-down.svg)`})})},Ug=e=>w.jsx(w6,{...e,className:I(e.className,C6)});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 T6(){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 k6(){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"})]})}Eu.Curtain=R6;function Eu(){var r,o,i,a;const e=Je(),{showLogo:t,showSidebar:n}=Rr();return w.jsxs("div",{className:I(L7,t&&!n&&M7),children:[w.jsx(N7,{}),t&&w.jsx("div",{className:I7,children:w.jsx("div",{className:O7,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:qs,children:w.jsx(N6,{})}),w.jsx("div",{className:I(wp,_a)})]}),e.socials&&((o=e.socials)==null?void 0:o.length)>0&&w.jsxs(w.Fragment,{children:[w.jsx("div",{className:I(qs,_a),style:{marginLeft:"-8px",marginRight:"-8px"},children:e.socials.map((l,s)=>w.jsx("div",{className:yl,children:w.jsx(L6,{...l})},s))}),!((i=e.theme)!=null&&i.colorScheme)&&w.jsx("div",{className:I(wp,_a)})]}),!((a=e.theme)!=null&&a.colorScheme)&&w.jsx("div",{className:I(qs,_a),style:{marginLeft:"-8px",marginRight:"-8px"},children:w.jsx("div",{className:yl,children:w.jsx(A6,{})})})]})]})}function R6(){return w.jsx("div",{className:A7})}function N6(){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(Gl,{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:P7,children:w.jsx(P6,{items:r.items})})]},o):null)})})}function P6({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(Gl,{active:n.includes(r.id),href:r.link,children:r.text},o))})}function A6(){const{toggle:e}=g5();return w.jsxs("button",{className:Pg,onClick:e,type:"button",children:[w.jsx(st,{className:I(gu,y5),size:"20px",label:"Light",icon:k6}),w.jsx(st,{className:I(gu,w5),size:"20px",label:"Dark",icon:T6,style:{marginTop:"-2px"}})]})}const O6={discord:Hg,github:Vg,telegram:Wg,warpcast:Kg,x:Yg},I6={discord:"23px",github:"20px",telegram:"21px",warpcast:"20px",x:"18px"};function L6({icon:e,label:t,link:n}){return w.jsx("a",{className:Pg,href:n,target:"_blank",rel:"noopener noreferrer",children:w.jsx(st,{className:gu,label:t,icon:O6[e],size:I6[e]||"20px"})})}const M6=({children:e})=>e,j6=({children:e})=>e;function D6(){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 F6="vocs_Footer_container",z6="vocs_Footer_editLink",B6="vocs_Footer_lastUpdated",U6="vocs_Footer_navigation",_p="vocs_Footer_navigationIcon",H6="vocs_Footer_navigationIcon_left",V6="vocs_Footer_navigationIcon_right",bp="vocs_Footer_navigationItem",W6="vocs_Footer_navigationItem_left",K6="vocs_Footer_navigationItem_right",$p="vocs_Footer_navigationText",Tp="vocs_Footer_navigationTextInner",Y6="vocs_Footer";function G6(){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 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 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 Z6(){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:Y6,children:[e==="docs"&&w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:F6,children:[w.jsx(X6,{}),t&&n.lastUpdatedAt&&w.jsxs("div",{className:B6,children:["Last updated:"," ",w.jsx("time",{dateTime:o,children:new Intl.DateTimeFormat(void 0,{dateStyle:"short",timeStyle:"short"}).format(r)})]})]}),w.jsx(J6,{})]}),w.jsx(j6,{})]})}function X6(){const e=D6();return e.url?w.jsx("div",{children:w.jsxs(nn,{className:z6,href:e.url,children:[w.jsx(p5,{})," ",e.text]})}):null}function J6(){const e=Gg(),t=Vl(),{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=Ff();return h.useEffect(()=>{let s=o,c=!1;const f=d=>{if(d.code==="ShiftLeft"&&(c=!0),c){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--)}},u=d=>{d.code==="ShiftLeft"&&(c=!1)};return window.addEventListener("keydown",f),window.addEventListener("keyup",u),()=>{window.removeEventListener("keydown",f),window.removeEventListener("keyup",u)}},[]),e?w.jsxs("div",{className:U6,children:[i?w.jsxs(nn,{className:I(bp,W6),href:i.link,variant:"styleless",children:[w.jsxs("div",{className:$p,children:[w.jsx("div",{className:I(_p,H6),style:Gt({[yu]:"0.75em"}),children:w.jsx(st,{label:"Previous",icon:G6})}),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,K6),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(_p,V6),style:Gt({[yu]:"0.75em"}),children:w.jsx(st,{label:"Next",icon:Q6})})]}),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",[q6,Xg]=En(Zg),[e8,Xf]=q6(Zg),t8=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:a,...l}=e,[s=!1,c]=rr({prop:r,defaultProp:o,onChange:a});return h.createElement(e8,{scope:n,disabled:i,contentId:rn(),open:s,onOpenToggle:h.useCallback(()=>c(f=>!f),[c])},h.createElement(fe.div,Y({"data-state":Jf(s),"data-disabled":i?"":void 0},l,{ref:t})))}),n8="CollapsibleTrigger",r8=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Xf(n8,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",o8=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Xf(Jg,e.__scopeCollapsible);return h.createElement(Sn,{present:n||o.open},({present:i})=>h.createElement(i8,Y({},r,{ref:t,present:i})))}),i8=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,a=Xf(Jg,n),[l,s]=h.useState(r),c=h.useRef(null),f=ze(t,c),u=h.useRef(0),d=u.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=c.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();u.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 a8=t8,l8=r8,s8=o8,Pr="Accordion",c8=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[qf,u8,f8]=Yl(Pr),[Ql,n$]=En(Pr,[f8,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(v8,Y({},i,{ref:t})):Z.createElement(p8,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,d8]=Ql(Pr),[t1,h8]=Ql(Pr,{collapsible:!1}),p8=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}))))}),v8=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((u=[])=>[...u,f]),[l]),c=Z.useCallback(f=>l((u=[])=>u.filter(d=>d!==f)),[l]);return Z.createElement(e1,{scope:e.__scopeAccordion,value:a,onItemOpen:s,onItemClose:c},Z.createElement(t1,{scope:e.__scopeAccordion,collapsible:!0},Z.createElement(n1,Y({},i,{ref:t}))))}),[m8,td]=Ql(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),c=u8(n),u=Kl(o)==="ltr",d=ae(e.onKeyDown,p=>{var y;if(!c8.includes(p.key))return;const g=p.target,C=c().filter(k=>{var P;return!((P=k.ref.current)!==null&&P!==void 0&&P.disabled)}),v=C.findIndex(k=>k.ref.current===g),m=C.length;if(v===-1)return;p.preventDefault();let x=v;const E=0,_=m-1,S=()=>{x=v+1,x>_&&(x=E)},b=()=>{x=v-1,x{const{__scopeAccordion:n,value:r,...o}=e,i=td(Su,n),a=d8(Su,n),l=ed(n),s=rn(),c=r&&a.value.includes(r)||!1,f=i.disabled||e.disabled;return Z.createElement(g8,{scope:n,open:c,disabled:f,triggerId:s},Z.createElement(a8,Y({"data-orientation":i.orientation,"data-state":E8(c)},l,o,{ref:t,disabled:f,open:c,onOpenChange:u=>{u?a.onItemOpen(r):a.onItemClose(r)}})))}),kp="AccordionTrigger",w8=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=td(Pr,n),i=r1(kp,n),a=h8(kp,n),l=ed(n);return Z.createElement(qf.ItemSlot,{scope:n},Z.createElement(l8,Y({"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId},l,r,{ref:t})))}),x8="AccordionContent",C8=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=td(Pr,n),i=r1(x8,n),a=ed(n);return Z.createElement(s8,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 E8(e){return e?"open":"closed"}const S8=qg,_8=y8,b8=w8,$8=C8;var T8="vocs_MobileSearch_searchButton";function k8(){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:T8,type:"button","aria-label":"Search",children:w.jsx(Uf,{height:21,width:21})})}),w.jsx(Ng,{open:e,onClose:()=>t(!1)})]})}var R8="vocs_MobileTopNav_button",N8="var(--vocs_MobileTopNav_chevronDownIcon)",P8="var(--vocs_MobileTopNav_chevronUpIcon)",A8="vocs_MobileTopNav_content",O8="vocs_MobileTopNav_curtain",Rp="vocs_MobileTopNav_curtainGroup",tc="vocs_MobileTopNav_curtainItem",I8="vocs_MobileTopNav_divider",ba="vocs_MobileTopNav_group",L8="vocs_MobileTopNav_icon",M8="vocs_MobileTopNav_item",j8="vocs_MobileTopNav_logo",D8="vocs_MobileTopNav_menuTitle",o1="vocs_MobileTopNav_menuTrigger",i1="vocs_MobileTopNav_navigation",F8="vocs_MobileTopNav_navigationContent",Go="vocs_MobileTopNav_navigationItem",z8="vocs_MobileTopNav_trigger",B8="vocs_MobileTopNav_navigation_compact",U8="vocs_MobileTopNav_outlinePopover",Np="vocs_MobileTopNav_outlineTrigger",H8="vocs_MobileTopNav",Pp="vocs_MobileTopNav_section",V8="vocs_MobileTopNav_separator",W8="vocs_MobileTopNav_sidebarPopover",K8="vocs_MobileTopNav_topNavPopover";function Y8(e,t){let n=!1;return()=>{n=!0,setTimeout(()=>{n&&e(),n=!1},t)}}var G8="vocs_Outline_heading",Q8="vocs_Outline_item",Z8="vocs_Outline_items",X8="vocs_Outline_link",J8="vocs_Outline_nav",q8="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:c,hash:f}=Re(),[u,d]=h.useState([]);h.useEffect(()=>{if(typeof window>"u")return;const v=Array.from(document.querySelectorAll(`.${H0}`));d(v)},[c]);const p=h.useMemo(()=>u?u.map(v=>{const m=v.querySelector(`.${V0}`);if(!m)return null;const x=m.getBoundingClientRect(),E=m.id,_=Number(v.tagName[1]),S=v.textContent,b=window.scrollY+x.top;return _l?null:{id:E,level:_,slugTargetElement:m,text:S,topOffset:b}}).filter(Boolean):[],[u,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(k=>k.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=Y8(()=>{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 _=0;_window.removeEventListener("scroll",v)},[p]),p.length===0)return null;const C=p.filter(v=>v.level===e);return w.jsxs("aside",{className:q8,children:[w.jsxs("nav",{className:J8,children:[o&&w.jsx("h2",{className:G8,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:Z8,children:n.map(({id:a,level:l,text:s})=>{const c=`#${a}`,f=e===a,u=(()=>{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:X8,children:s})}),u&&w.jsx(l1,{activeId:e,levelItems:u,items:t,onClickItem:r,setActiveId:o})]},a)})})}const eC=["top","right","bottom","left"],Qn=Math.min,Et=Math.max,xl=Math.round,$a=Math.floor,Zn=e=>({x:e,y:e}),tC={left:"right",right:"left",bottom:"top",top:"bottom"},nC={start:"end",end:"start"};function _u(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 Ro(e){return e.split("-")[1]}function nd(e){return e==="x"?"y":"x"}function rd(e){return e==="y"?"height":"width"}function No(e){return["top","bottom"].includes(wn(e))?"y":"x"}function od(e){return nd(No(e))}function rC(e,t,n){n===void 0&&(n=!1);const r=Ro(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 oC(e){const t=Cl(e);return[bu(e),t,bu(t)]}function bu(e){return e.replace(/start|end/g,t=>nC[t])}function iC(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 aC(e,t,n,r){const o=Ro(e);let i=iC(wn(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(bu)))),i}function Cl(e){return e.replace(/left|right|bottom|top/g,t=>tC[t])}function lC(e){return{top:0,right:0,bottom:0,left:0,...e}}function s1(e){return typeof e!="number"?lC(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=No(t),a=od(t),l=rd(a),s=wn(t),c=i==="y",f=r.x+r.width/2-o.width/2,u=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:u};break;case"left":p={x:r.x-o.width,y:u};break;default:p={x:r.x,y:r.y}}switch(Ro(t)){case"start":p[a]-=d*(n&&c?-1:1);break;case"end":p[a]+=d*(n&&c?-1:1);break}return p}const sC=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 c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:u}=Ap(c,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:c,padding:f=0}=yn(e,t)||{};if(c==null)return{};const u=s1(f),d={x:n,y:r},p=od(o),y=rd(p),g=await a.getDimensions(c),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],_=d[p]-i.reference[p],S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let b=S?S[x]:0;(!b||!await(a.isElement==null?void 0:a.isElement(S)))&&(b=l.floating[x]||i.floating[y]);const $=E/2-_/2,k=b/2-g[y]/2-1,P=Qn(u[v],k),j=Qn(u[m],k),L=P,D=b-g[y]-j,N=b/2-g[y]/2+$,z=_u(L,N,D),V=!s.arrow&&Ro(o)!=null&&N!==z&&i.reference[y]/2-(NL<=0)){var k,P;const L=(((k=i.flip)==null?void 0:k.index)||0)+1,D=_[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 eC.some(t=>e[t]>=0)}const fC=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 Ai(t,{...o,elementContext:"reference"}),a=Op(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ip(a)}}}case"escaped":{const i=await Ai(t,{...o,altBoundary:!0}),a=Op(i,n.floating);return{data:{escapedOffsets:a,escaped:Ip(a)}}}default:return{}}}}};async function dC(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=Ro(n),s=No(n)==="y",c=["left","top"].includes(a)?-1:1,f=i&&s?-1:1,u=yn(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:y}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return l&&typeof y=="number"&&(p=l==="end"?y*-1:y),s?{x:p*f,y:d*c}:{x:d*c,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 dC(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}}}}},hC=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),c={x:n,y:r},f=await Ai(t,s),u=No(wn(o)),d=nd(u);let p=c[d],y=c[u];if(i){const C=d==="y"?"top":"left",v=d==="y"?"bottom":"right",m=p+f[C],x=p-f[v];p=_u(m,p,x)}if(a){const C=u==="y"?"top":"left",v=u==="y"?"bottom":"right",m=y+f[C],x=y-f[v];y=_u(m,y,x)}const g=l.fn({...t,[d]:p,[u]:y});return{...g,data:{x:g.x-n,y:g.y-r}}}}},pC=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:c=!0}=yn(e,t),f={x:n,y:r},u=No(o),d=nd(u);let p=f[d],y=f[u];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,_=i.reference[d]+i.reference[x]-C.mainAxis;p_&&(p=_)}if(c){var v,m;const x=d==="y"?"width":"height",E=["top","left"].includes(wn(o)),_=i.reference[u]-i.floating[x]+(E&&((v=a.offset)==null?void 0:v[u])||0)+(E?0:C.crossAxis),S=i.reference[u]+i.reference[x]+(E?0:((m=a.offset)==null?void 0:m[u])||0)-(E?C.crossAxis:0);y<_?y=_:y>S&&(y=S)}return{[d]:p,[u]:y}}}},vC=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 Ai(t,l),c=wn(n),f=Ro(n),u=No(n)==="y",{width:d,height:p}=r.floating;let y,g;c==="top"||c==="bottom"?(y=c,g=f===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(g=c,y=f==="end"?"top":"bottom");const C=p-s[y],v=d-s[g],m=!t.middlewareData.shift;let x=C,E=v;if(u){const S=d-s.left-s.right;E=f||m?Qn(v,S):S}else{const S=p-s.top-s.bottom;x=f||m?Qn(C,S):S}if(m&&!f){const S=Et(s.left,0),b=Et(s.right,0),$=Et(s.top,0),k=Et(s.bottom,0);u?E=d-2*(S!==0||b!==0?S+b:Et(s.left,s.right)):x=p-2*($!==0||k!==0?$+k:Et(s.top,s.bottom))}await a({...t,availableWidth:E,availableHeight:x});const _=await o.getDimensions(i.floating);return d!==_.width||p!==_.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 $u(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 mC(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 gC(e){let t=Eo(e);for(;on(t)&&!Zl(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 Zl(e){return["html","body","#document"].includes(Xn(e))}function Mt(e){return bt(e).getComputedStyle(e)}function Xl(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||$u(e)&&e.host||bn(e);return $u(t)?t.host:t}function f1(e){const t=Eo(e);return Zl(t)?e.ownerDocument?e.ownerDocument.body:e.body:on(t)&&Wi(t)?t:f1(t)}function Oi(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?Oi(a.frameElement):[]):t.concat(o,Oi(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 yC=Zn(0);function h1(e){const t=bt(e);return!ad()||!t.visualViewport?yC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wC(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=wC(i,n,r)?h1(i):Zn(0);let s=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,f=o.width/a.x,u=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,c*=C.y,f*=C.x,u*=C.y,s+=x,c+=E,y=bt(g),g=y.frameElement}}return El({width:f,height:u,x:s,y:c})}const xC=[":popover-open",":modal"];function p1(e){return xC.some(t=>{try{return e.matches(t)}catch{return!1}})}function CC(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},c=Zn(1);const f=Zn(0),u=on(r);if((u||!u&&!i)&&((Xn(r)!=="body"||Wi(a))&&(s=Xl(r)),on(r))){const d=Er(r);c=so(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+f.x,y:n.y*c.y-s.scrollTop*c.y+f.y}}function EC(e){return Array.from(e.getClientRects())}function v1(e){return Er(bn(e)).left+Xl(e).scrollLeft}function SC(e){const t=bn(e),n=Xl(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 _C(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 c=ad();(!c||c&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}function bC(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,c=r*i.y;return{width:a,height:l,x:s,y:c}}function Lp(e,t,n){let r;if(t==="viewport")r=_C(e,n);else if(t==="document")r=SC(bn(e));else if(nt(t))r=bC(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)||Zl(n)?!1:Mt(n).position==="fixed"||m1(n,t)}function $C(e,t){const n=t.get(e);if(n)return n;let r=Oi(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)&&!Zl(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 TC(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?$C(t,this._c):[].concat(n),r],l=a[0],s=a.reduce((c,f)=>{const u=Lp(t,f,o);return c.top=Et(u.top,c.top),c.right=Qn(u.right,c.right),c.bottom=Qn(u.bottom,c.bottom),c.left=Et(u.left,c.left),c},Lp(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function kC(e){const{width:t,height:n}=d1(e);return{width:t,height:n}}function RC(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=Xl(t)),r){const u=Er(t,!0,i,t);s.x=u.x+t.clientLeft,s.y=u.y+t.clientTop}else o&&(s.x=v1(o));const c=a.left+l.scrollLeft-s.x,f=a.top+l.scrollTop-s.y;return{x:c,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&&mC(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||gC(e)||n}const NC=async function(e){const t=this.getOffsetParent||g1,n=this.getDimensions;return{reference:RC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function PC(e){return Mt(e).direction==="rtl"}const y1={convertOffsetParentRelativeRectToViewportRelativeRect:CC,getDocumentElement:bn,getClippingRect:TC,getOffsetParent:g1,getElementRects:NC,getClientRects:EC,getDimensions:kC,getScale:so,isElement:nt,isRTL:PC};function AC(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:c,top:f,width:u,height:d}=e.getBoundingClientRect();if(l||t(),!u||!d)return;const p=$a(f),y=$a(o.clientWidth-(c+u)),g=$a(o.clientHeight-(f+d)),C=$a(c),m={rootMargin:-p+"px "+-y+"px "+-g+"px "+-C+"px",threshold:Et(0,Qn(1,s))||1};let x=!0;function E(_){const S=_[0].intersectionRatio;if(S!==s){if(!x)return a();S?a(!1,S):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 OC(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,c=ld(e),f=o||i?[...c?Oi(c):[],...Oi(t)]:[];f.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const u=c&&l?AC(c,n):null;let d=-1,p=null;a&&(p=new ResizeObserver(v=>{let[m]=v;m&&m.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),c&&!s&&p.observe(c),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)}),u==null||u(),(v=p)==null||v.disconnect(),p=null,s&&cancelAnimationFrame(y)}}const w1=hC,IC=uC,LC=vC,MC=fC,jp=cC,jC=pC,DC=(e,t,n)=>{const r=new Map,o={platform:y1,...n},i={...o.platform,_c:r};return sC(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 Sl(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(!Sl(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)&&!Sl(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:c}=e,[f,u]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=h.useState(r);Sl(d,r)||p(r);const[y,g]=h.useState(null),[C,v]=h.useState(null),m=h.useCallback(U=>{U!==S.current&&(S.current=U,g(U))},[]),x=h.useCallback(U=>{U!==b.current&&(b.current=U,v(U))},[]),E=i||y,_=a||C,S=h.useRef(null),b=h.useRef(null),$=h.useRef(f),k=s!=null,P=Fp(s),j=Fp(o),L=h.useCallback(()=>{if(!S.current||!b.current)return;const U={placement:t,strategy:n,middleware:d};j.current&&(U.platform=j.current),DC(S.current,b.current,U).then(O=>{const F={...O,isPositioned:!0};D.current&&!Sl($.current,F)&&($.current=F,$o.flushSync(()=>{u(F)}))})},[d,t,n,j]);Ha(()=>{c===!1&&$.current.isPositioned&&($.current.isPositioned=!1,u(U=>({...U,isPositioned:!1})))},[c]);const D=h.useRef(!1);Ha(()=>(D.current=!0,()=>{D.current=!1}),[]),Ha(()=>{if(E&&(S.current=E),_&&(b.current=_),E&&_){if(P.current)return P.current(E,_,L);L()}},[E,_,L,P,k]);const N=h.useMemo(()=>({reference:S,floating:b,setReference:m,setFloating:x}),[m,x]),z=h.useMemo(()=>({reference:E,floating:_}),[E,_]),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 FC(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,c=Array.isArray(s)?s[0]:s;a=c.inlineSize,l=c.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 S1="Popper",[_1,b1]=En(S1),[zC,$1]=_1(S1),BC=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return h.createElement(zC,{scope:t,anchor:r,onAnchorChange:o},n)},UC="PopperAnchor",HC=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=$1(UC,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",[VC,r$]=_1(T1),WC=h.forwardRef((e,t)=>{var n,r,o,i,a,l,s,c;const{__scopePopper:f,side:u="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:_="optimized",onPlaced:S,...b}=e,$=$1(T1,f),[k,P]=h.useState(null),j=ze(t,wt=>P(wt)),[L,D]=h.useState(null),N=FC(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=u+(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(KC),altBoundary:K},{refs:se,floatingStyles:Be,placement:ye,isPositioned:Ne,middlewareData:we}=E1({strategy:"fixed",placement:U,whileElementsMounted:(...wt)=>OC(...wt,{animationFrame:_==="always"}),elements:{reference:$.anchor},middleware:[c1({mainAxis:d+V,alignmentAxis:y}),C&&w1({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?jC():void 0,...J}),C&&IC({...J}),LC({...J,apply:({elements:wt,rects:Yi,availableWidth:ql,availableHeight:es})=>{const{width:ts,height:ns}=Yi.reference,Qt=wt.floating.style;Qt.setProperty("--radix-popper-available-width",`${ql}px`),Qt.setProperty("--radix-popper-available-height",`${es}px`),Qt.setProperty("--radix-popper-anchor-width",`${ts}px`),Qt.setProperty("--radix-popper-anchor-height",`${ns}px`)}}),L&&x1({element:L,padding:g}),YC({arrowWidth:z,arrowHeight:V}),E&&MC({strategy:"referenceHidden",...J})]}),[Ue,xe]=k1(ye),_e=at(S);gn(()=>{Ne&&(_e==null||_e())},[Ne,_e]);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,Jl]=h.useState();return gn(()=>{k&&Jl(window.getComputedStyle(k).zIndex)},[k]),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(VC,{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:(c=we.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))});function KC(e){return e!==null}const YC=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:l,rects:s,middlewareData:c}=t,u=((n=c.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,d=u?0:e.arrowWidth,p=u?0:e.arrowHeight,[y,g]=k1(l),C={start:"0%",center:"50%",end:"100%"}[g],v=((r=(o=c.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+d/2,m=((i=(a=c.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+p/2;let x="",E="";return y==="bottom"?(x=u?C:`${v}px`,E=`${-p}px`):y==="top"?(x=u?C:`${v}px`,E=`${s.floating.height+p}px`):y==="right"?(x=`${-p}px`,E=u?C:`${m}px`):y==="left"&&(x=`${s.floating.width+p}px`,E=u?C:`${m}px`),{data:{x,y:E}}}});function k1(e){const[t,n="center"]=e.split("-");return[t,n]}const GC=BC,QC=HC,ZC=WC,R1="Popover",[N1,o$]=En(R1,[b1]),sd=b1(),[XC,Po]=N1(R1),JC=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,l=sd(t),s=h.useRef(null),[c,f]=h.useState(!1),[u=!1,d]=rr({prop:r,defaultProp:o,onChange:i});return h.createElement(GC,l,h.createElement(XC,{scope:t,contentId:rn(),triggerRef:s,open:u,onOpenChange:d,onOpenToggle:h.useCallback(()=>d(p=>!p),[d]),hasCustomAnchor:c,onCustomAnchorAdd:h.useCallback(()=>f(!0),[]),onCustomAnchorRemove:h.useCallback(()=>f(!1),[]),modal:a},n))},qC="PopoverTrigger",eE=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Po(qC,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(QC,Y({asChild:!0},i),l)}),P1="PopoverPortal",[tE,nE]=N1(P1,{forceMount:void 0}),rE=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Po(P1,t);return h.createElement(tE,{scope:t,forceMount:n},h.createElement(Sn,{present:n||i.open},h.createElement(tg,{asChild:!0,container:o},r)))},Ii="PopoverContent",oE=h.forwardRef((e,t)=>{const n=nE(Ii,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Po(Ii,e.__scopePopover);return h.createElement(Sn,{present:r||i.open},i.modal?h.createElement(iE,Y({},o,{ref:t})):h.createElement(aE,Y({},o,{ref:t})))}),iE=h.forwardRef((e,t)=>{const n=Po(Ii,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,c=l.button===2||s;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:ae(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})))}),aE=h.forwardRef((e,t)=>{const n=Po(Ii,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:c,onInteractOutside:f,...u}=e,d=Po(Ii,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:c,onDismiss:()=>d.onOpenChange(!1)},h.createElement(ZC,Y({"data-state":O1(d.open),role:"dialog",id:d.contentId},p,u,{ref:t,style:{...u.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 lE=JC,sE=eE,cE=rE,uE=oE;var fE="vocs_Popover";Ht.Root=lE;Ht.Trigger=sE;function Ht({children:e,className:t}){return w.jsx(cE,{children:w.jsx(uE,{className:I(fE,t),sideOffset:12,children:e})})}var dE="vocs_Sidebar_backLink",hE="vocs_Sidebar_divider",pE="vocs_Sidebar_group",ti="vocs_Sidebar_item",I1="vocs_Sidebar_items",vE="vocs_Sidebar_level",mE="vocs_Sidebar_levelCollapsed",gE="vocs_Sidebar_levelInset",yE="vocs_Sidebar_logo",wE="vocs_Sidebar_logoWrapper",xE="vocs_Sidebar_navigation",CE="vocs_Sidebar",L1="vocs_Sidebar_section",EE="vocs_Sidebar_sectionCollapse",SE="vocs_Sidebar_sectionCollapseActive",_E="vocs_Sidebar_sectionHeader",bE="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 c;const{className:t,onClickItem:n}=e,{previousPath:r}=kr(),o=h.useRef(null),i=Vl(),[a,l]=h.useState("/");if(h.useEffect(()=>{typeof window>"u"||r&&l(r)},[i.key,i.backLink]),!i)return null;const s=$E(i.items);return w.jsxs("aside",{ref:o,className:I(CE,t),children:[w.jsxs("div",{className:wE,children:[w.jsx("div",{className:yE,children:w.jsx(Gn,{to:"/",style:{alignItems:"center",display:"flex",height:"100%"},children:w.jsx(Yf,{})})}),w.jsx("div",{className:hE})]}),w.jsx("nav",{className:xE,children:w.jsxs("div",{className:pE,children:[i.backLink&&w.jsx("section",{className:L1,children:w.jsx("div",{className:I1,children:w.jsxs(Gn,{className:I(ti,dE),to:a,children:["←"," ",typeof history<"u"&&((c=history.state)!=null&&c.key)&&a!=="/"?"Back":"Home"]})})}),s.map((f,u)=>w.jsx(F1,{depth:0,item:f,onClick:n,sidebarRef:o},`${f.text}${u}`))]})})]},i.key)}function $E(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=>Ul(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=Dw(n.link??""),s=h.useMemo(()=>n.items?!!D1(n.items,a):!1,[n.items,a]),[c,f]=h.useState(()=>l||!n.items||s?!1:!!n.collapsed),u=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,!Ul(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:ti,to:n.link,children:n.text}):w.jsx("div",{className:ti,children:n.text})})}function TE(){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 kE(){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 RE(){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"})]})}Tu.Curtain=ME;function Tu(){var n,r;const e=Je(),{showLogo:t}=Rr();return w.jsxs("div",{className:H8,children:[w.jsxs("div",{className:Pp,children:[t&&w.jsx("div",{className:ba,children:w.jsx("div",{className:j8,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(NE,{items:e.topNav}),w.jsx(AE,{items:e.topNav})]})})]}),w.jsxs("div",{className:Pp,children:[w.jsx("div",{className:ba,style:{marginRight:"-8px"},children:w.jsx(k8,{})}),e.socials&&((n=e.socials)==null?void 0:n.length)>0&&w.jsxs(w.Fragment,{children:[w.jsx("div",{className:I8}),w.jsx("div",{className:ba,style:{marginLeft:"-8px"},children:(r=e.socials)==null?void 0:r.map((o,i)=>w.jsx(LE,{...o},i))})]})]})]})}function NE({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(Gl,{active:n==null?void 0:n.includes(r.id),href:r.link,children:r.text},o):w.jsxs(zg,{className:M8,children:[w.jsx(Bg,{active:n==null?void 0:n.includes(r.id),children:r.text}),w.jsx(Ug,{className:A8,children:w.jsx(PE,{items:r.items||[]})})]},o))})})}function PE({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(Gl,{active:n.includes(r.id),href:r.link,children:r.text},o))})}function AE({items:e}){var s;const[t,n]=h.useState(!1),{pathname:r}=Re(),o=Hi({pathname:r,items:e}),i=e.filter(c=>c.id===o[0])[0],{basePath:a}=Je(),l=a;return w.jsx("div",{className:I(i1,B8),children:i?w.jsxs(Ht.Root,{modal:!0,open:t,onOpenChange:n,children:[w.jsxs(Ht.Trigger,{className:I(o1,Go),children:[i.text,w.jsx(st,{label:"Menu",icon:TE,size:"11px"})]}),w.jsx(Ht,{className:K8,children:w.jsx(S8,{type:"single",collapsible:!0,style:{display:"flex",flexDirection:"column"},children:e.map((c,f)=>{var u;return c!=null&&c.link?w.jsx(nn,{"data-active":o.includes(c.id),className:Go,href:c.link,onClick:()=>n(!1),variant:"styleless",children:c.text},f):w.jsxs(_8,{value:f.toString(),children:[w.jsx(b8,{className:I(Go,z8),"data-active":o.includes(c.id),style:Gt({[N8]:`url(${l}/.vocs/icons/chevron-down.svg)`,[P8]:`url(${l}/.vocs/icons/chevron-up.svg)`}),children:c.text}),w.jsx($8,{className:F8,children:(u=c.items)==null?void 0:u.map((d,p)=>w.jsx(nn,{className:Go,href:d.link,onClick:()=>n(!1),variant:"styleless",children:d.text},p))})]},f)})})})]}):(s=e[0])!=null&&s.link?w.jsx(nn,{className:Go,href:e[0].link,variant:"styleless",children:e[0].text}):null})}const OE={discord:Hg,github:Vg,telegram:Wg,warpcast:Kg,x:Yg},IE={discord:"21px",github:"18px",telegram:"21px",warpcast:"18px",x:"16px"};function LE({icon:e,label:t,link:n,type:r}){return w.jsx("a",{className:R8,href:n,target:"_blank",rel:"noopener noreferrer",children:w.jsx(st,{className:L8,label:t,icon:OE[e],size:IE[r]||"18px"})})}function ME({enableScrollToTop:e}){const{pathname:t}=Re(),{layout:n,showSidebar:r}=Rr(),{frontmatter:o={}}=kr(),i=Vl(),[a,l]=h.useState(!1),[s,c]=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]),u=h.useMemo(()=>{var p;if(!(typeof window>"u"))return(p=document.querySelector(".vocs_Content h1"))==null?void 0:p.textContent},[]),d=f||o.title||u;return w.jsxs("div",{className:O8,children:[w.jsx("div",{className:Rp,children:w.jsx("div",{className:tc,children:r?w.jsxs(Ht.Root,{modal:!0,open:s,onOpenChange:c,children:[w.jsxs(Ht.Trigger,{className:o1,children:[w.jsx(st,{label:"Menu",icon:RE,size:"13px"}),w.jsx("div",{className:D8,children:d})]}),w.jsx(Ht,{className:W8,children:w.jsx(j1,{onClickItem:()=>c(!1)})})]}):d})}),w.jsxs("div",{className:Rp,children:[e&&w.jsxs(w.Fragment,{children:[w.jsx("div",{className:tc,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:kE,size:"10px"})]})}),w.jsx("div",{className:V8})]}),n==="docs"&&w.jsx("div",{className:tc,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:U8,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 jE="vocs_SkipLink";const B1="vocs-content";function DE(){const{pathname:e}=Re();return w.jsx("a",{className:I(jE,Z0),href:`${e}#${B1}`,children:"Skip to content"})}var FE="vocs_DocsLayout_content",zE="vocs_DocsLayout_content_withSidebar",BE="vocs_DocsLayout_content_withTopNav",UE="vocs_DocsLayout_gutterLeft",HE="vocs_DocsLayout_gutterRight",VE="vocs_DocsLayout_gutterRight_withSidebar",WE="vocs_DocsLayout_gutterTop",KE="vocs_DocsLayout_gutterTopCurtain",YE="vocs_DocsLayout_gutterTopCurtain_hidden",GE="vocs_DocsLayout_gutterTopCurtain_withSidebar",QE="vocs_DocsLayout_gutterTop_offsetLeftGutter",ZE="vocs_DocsLayout_gutterTop_sticky",XE="vocs_DocsLayout",JE="vocs_DocsLayout_sidebar";function ku({children:e}){const{banner:t,font:n}=Je(),{frontmatter:r={}}=kr(),{content:o}=r,{layout:i,showOutline:a,showSidebar:l,showTopNav:s}=Rr(),{ref:c,inView:f}=U0({initialInView:!0,rootMargin:"100px 0px 0px 0px"}),[u,d]=mu("banner",!0);return w.jsxs("div",{className:XE,"data-layout":i,style:Gt({[Yx]:u?t==null?void 0:t.height:void 0,[Rx.default]:n!=null&&n.google?`${n.google}, ${kx.default}`:void 0}),children:[w.jsx(DE,{}),u&&w.jsx(v5,{hide:()=>d(!1)}),l&&w.jsx("div",{className:UE,children:w.jsx(j1,{className:JE})}),s&&w.jsxs(w.Fragment,{children:[w.jsxs("div",{ref:c,className:I(WE,l&&QE,(i==="minimal"||i==="landing")&&ZE),children:[w.jsx(Eu,{}),w.jsx(Tu,{})]}),w.jsxs("div",{className:I(KE,l&&GE,(i==="minimal"||i==="landing")&&YE),children:[w.jsx(Eu.Curtain,{}),w.jsx(Tu.Curtain,{enableScrollToTop:!f})]})]}),a&&w.jsx("div",{className:I(HE,l&&VE),children:w.jsx(a1,{})}),w.jsxs("div",{id:B1,className:I(FE,l&&zE,s&&BE),style:Gt({[js.horizontalPadding]:o==null?void 0:o.horizontalPadding,[js.width]:o==null?void 0:o.width,[js.verticalPadding]:o==null?void 0:o.verticalPadding}),children:[w.jsx(Y0,{children:e}),w.jsx(Z6,{})]}),w.jsx("div",{"data-bottom-observer":!0})]})}const Ru={},U1=Z.createContext(Ru);function qE(e){const t=Z.useContext(U1);return Z.useMemo(function(){return typeof e=="function"?e(t):{...t,...e}},[t,e])}function eS(e){let t;return e.disableParentContext?t=typeof e.components=="function"?e.components(Ru):e.components||Ru:t=qE(e.components),Z.createElement(U1.Provider,{value:t},e.children)}var H1={exports:{}},tS="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",nS=tS,rS=nS;function V1(){}function W1(){}W1.resetWarningCache=V1;var oS=function(){function e(r,o,i,a,l,s){if(s!==rS){var c=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 c.name="Invariant Violation",c}}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=oS();var iS=H1.exports;const Ce=Jn(iS);function aS(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var K1=h,lS=aS(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 sS(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var cS=!!(typeof window<"u"&&window.document&&window.document.createElement);function uS(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})),c.canUseDOM?t(l):n&&(l=n(l))}var c=function(f){sS(u,f);function u(){return f.apply(this,arguments)||this}u.peek=function(){return l},u.rewind=function(){if(u.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=u.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 lS.createElement(i,this.props)},u}(K1.PureComponent);return Bp(c,"displayName","SideEffect("+r(i)+")"),Bp(c,"canUseDOM",cS),c}}var fS=uS;const dS=Jn(fS);var hS=typeof Element<"u",pS=typeof Map=="function",vS=typeof Set=="function",mS=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(pS&&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(vS&&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(mS&&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(hS&&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 gS=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 yS=Jn(gS);/* object-assign (c) Sindre Sorhus @license MIT diff --git a/assets/index-CfsVT3Xj.js b/assets/index-IzcaZyYV.js similarity index 98% rename from assets/index-CfsVT3Xj.js rename to assets/index-IzcaZyYV.js index ba98def1..59451d1e 100644 --- a/assets/index-CfsVT3Xj.js +++ b/assets/index-IzcaZyYV.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-1iYsOfm9.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:"papee",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-CM6mkaqy.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:"papee",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/papee-BKXhDthB.js b/assets/papee-CMy-8tBd.js similarity index 89% rename from assets/papee-BKXhDthB.js rename to assets/papee-CMy-8tBd.js index 0d228dda..e63b1e73 100644 --- a/assets/papee-BKXhDthB.js +++ b/assets/papee-CMy-8tBd.js @@ -1,2 +1,2 @@ -import{u as r,j as e}from"./index-1iYsOfm9.js";const i={title:"papee",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:"papee",children:["papee",e.jsx(n.a,{"aria-hidden":"true",tabIndex:"-1",href:"#papee",children:e.jsx(n.div,{"data-autolink-icon":!0})})]})}),` +import{u as r,j as e}from"./index-CM6mkaqy.js";const i={title:"papee",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:"papee",children:["papee",e.jsx(n.a,{"aria-hidden":"true",tabIndex:"-1",href:"#papee",children:e.jsx(n.div,{"data-autolink-icon":!0})})]})}),` `,e.jsx(n.p,{children:"Papee"})]})}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/providers-BtaotMKj.js b/assets/providers-BKYES1bh.js similarity index 89% rename from assets/providers-BtaotMKj.js rename to assets/providers-BKYES1bh.js index 74e2617a..33adaa39 100644 --- a/assets/providers-BtaotMKj.js +++ b/assets/providers-BKYES1bh.js @@ -1,2 +1,2 @@ -import{u as d,j as e}from"./index-1iYsOfm9.js";const o={title:"Providers",description:"undefined"};function t(r){const n={a:"a",div:"div",h1:"h1",header:"header",p:"p",...d(),...r.components};return e.jsxs(e.Fragment,{children:[e.jsx(n.header,{children:e.jsxs(n.h1,{id:"providers",children:["Providers",e.jsx(n.a,{"aria-hidden":"true",tabIndex:"-1",href:"#providers",children:e.jsx(n.div,{"data-autolink-icon":!0})})]})}),` +import{u as d,j as e}from"./index-CM6mkaqy.js";const o={title:"Providers",description:"undefined"};function t(r){const n={a:"a",div:"div",h1:"h1",header:"header",p:"p",...d(),...r.components};return e.jsxs(e.Fragment,{children:[e.jsx(n.header,{children:e.jsxs(n.h1,{id:"providers",children:["Providers",e.jsx(n.a,{"aria-hidden":"true",tabIndex:"-1",href:"#providers",children:e.jsx(n.div,{"data-autolink-icon":!0})})]})}),` `,e.jsx(n.p,{children:"providers"})]})}function s(r={}){const{wrapper:n}={...d(),...r.components};return n?e.jsx(n,{...r,children:e.jsx(t,{...r})}):t(r)}export{s as default,o as frontmatter}; diff --git a/assets/signers-UAUMqQPV.js b/assets/signers-Cfud28Tt.js similarity index 89% rename from assets/signers-UAUMqQPV.js rename to assets/signers-Cfud28Tt.js index 0632eae7..53fbf655 100644 --- a/assets/signers-UAUMqQPV.js +++ b/assets/signers-Cfud28Tt.js @@ -1,2 +1,2 @@ -import{u as s,j as e}from"./index-1iYsOfm9.js";const d={title:"Signers",description:"undefined"};function r(t){const n={a:"a",div:"div",h1:"h1",header:"header",p:"p",...s(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(n.header,{children:e.jsxs(n.h1,{id:"signers",children:["Signers",e.jsx(n.a,{"aria-hidden":"true",tabIndex:"-1",href:"#signers",children:e.jsx(n.div,{"data-autolink-icon":!0})})]})}),` +import{u as s,j as e}from"./index-CM6mkaqy.js";const d={title:"Signers",description:"undefined"};function r(t){const n={a:"a",div:"div",h1:"h1",header:"header",p:"p",...s(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(n.header,{children:e.jsxs(n.h1,{id:"signers",children:["Signers",e.jsx(n.a,{"aria-hidden":"true",tabIndex:"-1",href:"#signers",children:e.jsx(n.div,{"data-autolink-icon":!0})})]})}),` `,e.jsx(n.p,{children:"signers"})]})}function a(t={}){const{wrapper:n}={...s(),...t.components};return n?e.jsx(n,{...t,children:e.jsx(r,{...t})}):r(t)}export{a as default,d as frontmatter}; diff --git a/assets/types-CyrJcgNJ.js b/assets/types-DUI4UvkS.js similarity index 73% rename from assets/types-CyrJcgNJ.js rename to assets/types-DUI4UvkS.js index a2249436..e22ee388 100644 --- a/assets/types-CyrJcgNJ.js +++ b/assets/types-DUI4UvkS.js @@ -1,4 +1,4 @@ -import{u as r,j as s}from"./index-1iYsOfm9.js";const l={title:"Types",description:"undefined"};function n(i){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",...r(),...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-CM6mkaqy.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})})]}),` @@ -18,8 +18,33 @@ import{u as r,j as s}from"./index-1iYsOfm9.js";const l={title:"Types",descriptio `,s.jsxs(e.h2,{id:"enum",children:["Enum",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#enum",children:s.jsx(e.div,{"data-autolink-icon":!0})})]}),` `,s.jsxs(e.p,{children:["Enums in the chain are represented as ",s.jsx(e.code,{children:"{ type: string, value: T }"}),". As many of the types have nested enums that would make it hard to work with (both creating these types and also reading them), Polkadot-API helps through a set of utilites."]}),` `,s.jsxs(e.p,{children:["First of all, the Enums that are widely used across multiple chains are in a directory of well-known types, and they are represented with a descriptive name. A few examples: ",s.jsx(e.code,{children:"MultiAddress"}),", ",s.jsx(e.code,{children:"BalanceStatus"}),", ",s.jsx(e.code,{children:"IdentityJudgement"}),", and many of the XCM pallet types: ",s.jsx(e.code,{children:"XcmV3Junction"}),", ",s.jsx(e.code,{children:"XcmV3MultiassetFungibility"}),", etc."]}),` -`,s.jsx(e.p,{children:"For these types, you can import them directly from the generated code and use them by calling their type:"}),` +`,s.jsx(e.p,{children:"For these types, you can import them directly from the generated code and use them by calling their type. The call signature shown by an IDE will tell you exactly which enum types you should use to write your value. The following video shows how it might look like:"}),` `,s.jsx("video",{src:"enums.mp4",controls:!0}),` +`,s.jsx(e.p,{children:"The enums that are not well-known types, they are anonymous. In that case, you will find something like the following in the call signature:"}),` +`,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:"#24292E","--shiki-dark":"#ADBAC7"},children:"("}),s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"value"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" IEnum"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<{"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" transfer_allow_death"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" dest"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" MultiAddress"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" value"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" bigint"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),` +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" };"})}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" force_transfer"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" dest"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" MultiAddress"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" value"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" bigint"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" source"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" MultiAddress"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),` +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" };"})}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ..."}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" 4"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" more"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ...;"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" force_set_balance"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),` +`,s.jsxs(e.span,{className:"line",children:[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,{className:"line",children: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:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" PolkadotRuntimeRuntimeCall"})]})]})}),` +`,s.jsxs(e.p,{children:["This indicates that the parameter value is an enum, whose key will be either one of the keys of the object type (i.e. ",s.jsx(e.code,{children:"transfer_allow_death"}),", ",s.jsx(e.code,{children:"force_transfer"}),", ..., ",s.jsx(e.code,{children:"force_set_balance"}),"), and the type will be the value for that particular key."]}),` +`,s.jsxs(e.p,{children:["For these cases, you should use the function ",s.jsx(e.code,{children:"Enum(type, value)"}),", imported from ",s.jsx(e.code,{children:"@polkadot-api/client"}),". This has full type inference support, and creates an Enum object that can be used as a parameter of a call:"]}),` +`,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:"#24292E","--shiki-dark":"#ADBAC7"},children:"dotApi.apis.TransactionPaymentCallApi."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:"query_call_info"}),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:" PolkadotRuntimeRuntimeCall."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:"Balances"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"("})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" Enum"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"("}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:'"transfer_allow_death"'}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", { dest: MultiAddress."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:"Id"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"(address), value: "}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:"3"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"n"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" })"})]}),` +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ),"})}),` +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" 10"})}),` +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:");"})})]})}),` +`,s.jsxs(e.p,{children:["When reading from Enums, these are objects with ",s.jsx(e.code,{children:"{ type: string, value: unknown }"})," with discriminated types based on the ",s.jsx(e.code,{children:"type"})," (so if you do ",s.jsx(e.code,{children:"switch (enum.type) {"})," you will have the correct value for the ",s.jsx(e.code,{children:"type"}),")."]}),` `,s.jsxs(e.h2,{id:"binary",children:["Binary",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#binary",children:s.jsx(e.div,{"data-autolink-icon":!0})})]}),` `,s.jsx(e.p,{children:"Any array of u8's is represented as Binary. This is a utility type that has a few functions to easily create binary data:"}),` `,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:"#24292E","--shiki-dark":"#ADBAC7"},children:"Binary."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:"fromBytes"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"("}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"new"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" Uint8Array"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"())"})]}),` @@ -81,4 +106,4 @@ import{u as r,j as s}from"./index-1iYsOfm9.js";const l={title:"Types",descriptio `,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:"// Errors"})}),` `,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"function"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" logError"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"("}),s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"error"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" DotErrors"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"["}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:"'System'"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"]["}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:"'InvalidSpecName'"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"]) {"})]}),` `,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:" // ..."})}),` -`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}"})})]})})]})}function c(i={}){const{wrapper:e}={...r(),...i.components};return e?s.jsx(e,{...i,children:s.jsx(n,{...i})}):n(i)}export{c as default,l as frontmatter}; +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}"})})]})})]})}function c(i={}){const{wrapper:e}={...n(),...i.components};return e?s.jsx(e,{...i,children:s.jsx(l,{...i})}):l(i)}export{c as default,a as frontmatter}; diff --git a/codegen/index.html b/codegen/index.html index df48980f..6bc39ab6 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 df48980f..6bc39ab6 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 df48980f..6bc39ab6 100644 --- a/getting-started/index.html +++ b/getting-started/index.html @@ -12,7 +12,7 @@ - + diff --git a/index.html b/index.html index df48980f..6bc39ab6 100644 --- a/index.html +++ b/index.html @@ -12,7 +12,7 @@ - + diff --git a/providers/index.html b/providers/index.html index df48980f..6bc39ab6 100644 --- a/providers/index.html +++ b/providers/index.html @@ -12,7 +12,7 @@ - + diff --git a/signers/index.html b/signers/index.html index df48980f..6bc39ab6 100644 --- a/signers/index.html +++ b/signers/index.html @@ -12,7 +12,7 @@ - + diff --git a/types/index.html b/types/index.html index df48980f..6bc39ab6 100644 --- a/types/index.html +++ b/types/index.html @@ -12,7 +12,7 @@ - +