(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[679],{5125:function(module,__unused_webpack_exports,__webpack_require__){module=__webpack_require__.nmd(module),function _f(self){"use strict";let Y;try{module&&(self=module)}catch(e){}function u(ee){return void 0===ee||ee}function aa(ee){let en=Array(ee);for(let er=0;er<ee;er++)en[er]=v();return en}function v(){return Object.create(null)}function ba(ee,en){return en.length-ee.length}function x(ee){return"string"==typeof ee}function C(ee){return"object"==typeof ee}function D(ee){return"function"==typeof ee}function ca(ee,en){var er=da;if(ee&&(en&&(ee=E(ee,en)),this.H&&(ee=E(ee,this.H)),this.J&&1<ee.length&&(ee=E(ee,this.J)),er||""===er)&&(ee=ee.split(er),this.filter)){en=this.filter,er=ee.length;let eo=[];for(let ei=0,es=0;ei<er;ei++){let er=ee[ei];er&&!en[er]&&(eo[es++]=er)}ee=eo}return ee}self._factory=_f;let da=/[\p{Z}\p{S}\p{P}\p{C}]+/u,ea=/[\u0300-\u036f]/g;function fa(ee,en){let er=Object.keys(ee),eo=er.length,ei=[],es="",eu=0;for(let ec=0,ed,ep;ec<eo;ec++)(ep=ee[ed=er[ec]])?(ei[eu++]=F(en?"(?!\\b)"+ed+"(\\b|_)":ed),ei[eu++]=ep):es+=(es?"|":"")+ed;return es&&(ei[eu++]=F(en?"(?!\\b)("+es+")(\\b|_)":"("+es+")"),ei[eu]=""),ei}function E(ee,en){for(let er=0,eo=en.length;er<eo&&(ee=ee.replace(en[er],en[er+1]));er+=2);return ee}function F(ee){return RegExp(ee,"g")}function ha(ee){let en="",er="";for(let eo=0,ei=ee.length,es;eo<ei;eo++)(es=ee[eo])!==er&&(en+=er=es);return en}var t,ja={encode:ia,F:!1,G:""};function ia(ee){return ca.call(this,(""+ee).toLowerCase(),!1)}let ka={},G={};function la(ee){I(ee,"add"),I(ee,"append"),I(ee,"search"),I(ee,"update"),I(ee,"remove")}function I(ee,en){ee[en+"Async"]=function(){let ee;let er=this,eo=arguments;var ei=eo[eo.length-1];return D(ei)&&(ee=ei,delete eo[eo.length-1]),ei=new Promise(function(ee){setTimeout(function(){er.async=!0;let ei=er[en].apply(er,eo);er.async=!1,ee(ei)})}),ee?(ei.then(ee),this):ei}}function ma(ee,en,er,eo){let ei=ee.length,es=[],eu,ec,ed=0;eo&&(eo=[]);for(let ep=ei-1;0<=ep;ep--){let ef=ee[ep],eh=ef.length,em=v(),ex=!eu;for(let ee=0;ee<eh;ee++){let eh=ef[ee],eg=eh.length;if(eg)for(let ee=0,ef,ev;ee<eg;ee++)if(ev=eh[ee],eu){if(eu[ev]){if(!ep){if(er)er--;else if(es[ed++]=ev,ed===en)return es}(ep||eo)&&(em[ev]=1),ex=!0}if(eo&&(ef=(ec[ev]||0)+1,ec[ev]=ef,ef<ei)){let ee=eo[ef-2]||(eo[ef-2]=[]);ee[ee.length]=ev}}else em[ev]=1}if(eo)eu||(ec=em);else if(!ex)return[];eu=em}if(eo)for(let ee=eo.length-1,ei,ec;0<=ee;ee--){ec=(ei=eo[ee]).length;for(let ee=0,eo;ee<ec;ee++)if(!eu[eo=ei[ee]]){if(er)er--;else if(es[ed++]=eo,ed===en)return es;eu[eo]=1}}return es}function na(ee,en){let er=v(),eo=v(),ei=[];for(let en=0;en<ee.length;en++)er[ee[en]]=1;for(let ee=0,es;ee<en.length;ee++){es=en[ee];for(let ee=0,en;ee<es.length;ee++)er[en=es[ee]]&&!eo[en]&&(eo[en]=1,ei[ei.length]=en)}return ei}function J(ee){this.l=!0!==ee&&ee,this.cache=v(),this.h=[]}function oa(ee,en,er){C(ee)&&(ee=ee.query);let eo=this.cache.get(ee);return eo||(eo=this.search(ee,en,er),this.cache.set(ee,eo)),eo}J.prototype.set=function(ee,en){if(!this.cache[ee]){var er=this.h.length;for(er===this.l?delete this.cache[this.h[er-1]]:er++,--er;0<er;er--)this.h[er]=this.h[er-1];this.h[0]=ee}this.cache[ee]=en},J.prototype.get=function(ee){let en=this.cache[ee];if(this.l&&en&&(ee=this.h.indexOf(ee))){let en=this.h[ee-1];this.h[ee-1]=this.h[ee],this.h[ee]=en}return en};let qa={memory:{charset:"latin:extra",D:3,B:4,m:!1},performance:{D:3,B:3,s:!1,context:{depth:2,D:1}},match:{charset:"latin:extra",G:"reverse"},score:{charset:"latin:advanced",D:20,B:3,context:{depth:3,D:9}},default:{}};function ra(ee,en,er,eo,ei,es,eu){setTimeout(function(){let ec=ee(er?er+"."+eo:eo,JSON.stringify(eu));ec&&ec.then?ec.then(function(){en.export(ee,en,er,ei,es+1)}):en.export(ee,en,er,ei,es+1)})}function K(ee,en){if(!(this instanceof K))return new K(ee);if(ee){x(ee)?ee=qa[ee]:(er=ee.preset)&&(ee=Object.assign({},er[er],ee)),er=ee.charset;var er,eo=ee.lang;x(er)&&(-1===er.indexOf(":")&&(er+=":default"),er=G[er]),x(eo)&&(eo=ka[eo])}else ee={};let ei,es,eu=ee.context||{};if(this.encode=ee.encode||er&&er.encode||ia,this.register=en||v(),this.D=ei=ee.resolution||9,this.G=en=er&&er.G||ee.tokenize||"strict",this.depth="strict"===en&&eu.depth,this.l=u(eu.bidirectional),this.s=es=u(ee.optimize),this.m=u(ee.fastupdate),this.B=ee.minlength||1,this.C=ee.boost,this.map=es?aa(ei):v(),this.A=ei=eu.resolution||1,this.h=es?aa(ei):v(),this.F=er&&er.F||ee.rtl,this.H=(en=ee.matcher||eo&&eo.H)&&fa(en,!1),this.J=(en=ee.stemmer||eo&&eo.J)&&fa(en,!0),er=en=ee.filter||eo&&eo.filter){er=en,eo=v();for(let ee=0,en=er.length;ee<en;ee++)eo[er[ee]]=1;er=eo}this.filter=er,this.cache=(en=ee.cache)&&new J(en)}function L(ee,en,er,eo,ei){return er&&1<ee?en+(eo||0)<=ee?er+(ei||0):(ee-1)/(en+(eo||0))*(er+(ei||0))+1|0:0}function M(ee,en,er,eo,ei,es,eu){let ec=eu?ee.h:ee.map;(!en[er]||eu&&!en[er][eu])&&(ee.s&&(ec=ec[eo]),eu?((en=en[er]||(en[er]=v()))[eu]=1,ec=ec[eu]||(ec[eu]=v())):en[er]=1,ec=ec[er]||(ec[er]=[]),ee.s||(ec=ec[eo]||(ec[eo]=[])),es&&ec.includes(ei)||(ec[ec.length]=ei,ee.m&&((ee=ee.register[ei]||(ee.register[ei]=[]))[ee.length]=ec)))}function sa(ee,en,er,eo,ei,es,eu,ec){let ed=[],ep=ec?ee.h:ee.map;if(ee.s||(ep=ua(ep,eu,ec,ee.l)),ep){let er=0,ef=Math.min(ep.length,ec?ee.A:ee.D);for(let en=0,eh=0,em,ex;en<ef&&(!(em=ep[en])||(ee.s&&(em=ua(em,eu,ec,ee.l)),ei&&em&&es&&((ex=em.length)<=ei?(ei-=ex,em=null):(em=em.slice(ei),ei=0)),!em||(ed[er++]=em,!es||!((eh+=em.length)>=eo))));en++);if(er)return es?ta(ed,eo,0):void(en[en.length]=ed)}return!er&&ed}function ta(ee,en,er){return ee=1===ee.length?ee[0]:[].concat.apply([],ee),er||ee.length>en?ee.slice(er,er+en):ee}function ua(ee,en,er,eo){return ee=er?(ee=ee[(eo=eo&&en>er)?en:er])&&ee[eo?er:en]:ee[en]}function N(ee,en,er,eo,ei){let es=0;if(ee.constructor===Array){if(ei)-1!==(en=ee.indexOf(en))?1<ee.length&&(ee.splice(en,1),es++):es++;else{ei=Math.min(ee.length,er);for(let eu=0,ec;eu<ei;eu++)(ec=ee[eu])&&(es=N(ec,en,er,eo,ei),eo||es||delete ee[eu])}}else for(let eu in ee)(es=N(ee[eu],en,er,eo,ei))||delete ee[eu];return es}function va(ee){ee=ee.data;var en=self._index;let er=ee.args;var eo=ee.task;"init"===eo?(eo=ee.options||{},ee=ee.factory,en=eo.encode,eo.cache=!1,en&&0===en.indexOf("function")&&(eo.encode=Function("return "+en)()),ee?(Function("return "+ee)()(self),self._index=new self.FlexSearch.Index(eo),delete self.FlexSearch):self._index=new K(eo)):(ee=ee.id,en=en[eo].apply(en,er),postMessage("search"===eo?{id:ee,msg:en}:{id:ee}))}t=K.prototype,t.append=function(ee,en){return this.add(ee,en,!0)},t.add=function(ee,en,er,eo){if(en&&(ee||0===ee)){if(!eo&&!er&&this.register[ee])return this.update(ee,en);if(eo=(en=this.encode(en)).length){let ep=v(),ef=v(),eh=this.depth,em=this.D;for(let ex=0;ex<eo;ex++){let eg=en[this.F?eo-1-ex:ex];var ei=eg.length;if(eg&&ei>=this.B&&(eh||!ef[eg])){var es=L(em,eo,ex),eu="";switch(this.G){case"full":if(2<ei){for(es=0;es<ei;es++)for(var ec=ei;ec>es;ec--)if(ec-es>=this.B){var ed=L(em,eo,ex,ei,es);M(this,ef,eu=eg.substring(es,ec),ed,ee,er)}break}case"reverse":if(1<ei){for(ec=ei-1;0<ec;ec--)(eu=eg[ec]+eu).length>=this.B&&M(this,ef,eu,L(em,eo,ex,ei,ec),ee,er);eu=""}case"forward":if(1<ei){for(ec=0;ec<ei;ec++)(eu+=eg[ec]).length>=this.B&&M(this,ef,eu,es,ee,er);break}default:if(this.C&&(es=Math.min(es/this.C(en,eg,ex)|0,em-1)),M(this,ef,eg,es,ee,er),eh&&1<eo&&ex<eo-1){for(ei=v(),eu=this.A,es=eg,ec=Math.min(eh+1,eo-ex),ei[es]=1,ed=1;ed<ec;ed++)if((eg=en[this.F?eo-1-ex-ed:ex+ed])&&eg.length>=this.B&&!ei[eg]){ei[eg]=1;let en=this.l&&eg>es;M(this,ep,en?es:eg,L(eu+(eo/2>eu?0:1),eo,ex,ec-1,ed-1),ee,er,en?eg:es)}}}}}this.m||(this.register[ee]=1)}}return this},t.search=function(ee,en,er){let eo,ei,es;er||(!en&&C(ee)?ee=(er=ee).query:C(en)&&(er=en));let eu=[],ec,ed,ep=0;if(er){ee=er.query||ee,en=er.limit,ep=er.offset||0;var ef=er.context;ed=er.suggest}if(ee&&1<(ec=(ee=this.encode(""+ee)).length)){er=v();var eh=[];for(let en=0,eo=0,ei;en<ec;en++)if((ei=ee[en])&&ei.length>=this.B&&!er[ei]){if(!this.s&&!ed&&!this.map[ei])return eu;eh[eo++]=ei,er[ei]=1}ec=(ee=eh).length}if(!ec)return eu;for(en||(en=100),ef=this.depth&&1<ec&&!1!==ef,er=0,ef?(eo=ee[0],er=1):1<ec&&ee.sort(ba);er<ec;er++){if(es=ee[er],ef?(ei=sa(this,eu,ed,en,ep,2===ec,es,eo),ed&&!1===ei&&eu.length||(eo=es)):ei=sa(this,eu,ed,en,ep,1===ec,es),ei)return ei;if(ed&&er===ec-1){if(!(eh=eu.length)){if(ef){ef=0,er=-1;continue}return eu}if(1===eh)return ta(eu[0],en,ep)}}return ma(eu,en,ep,ed)},t.contain=function(ee){return!!this.register[ee]},t.update=function(ee,en){return this.remove(ee).add(ee,en)},t.remove=function(ee,en){let er=this.register[ee];if(er){if(this.m)for(let en=0,eo;en<er.length;en++)(eo=er[en]).splice(eo.indexOf(ee),1);else N(this.map,ee,this.D,this.s),this.depth&&N(this.h,ee,this.A,this.s);if(en||delete this.register[ee],this.cache){en=this.cache;for(let er=0,eo;er<en.h.length;er++)eo=en.h[er],en.cache[eo].includes(ee)&&(en.h.splice(er--,1),delete en.cache[eo])}}return this},t.searchCache=oa,t.export=function(ee,en,er,eo,ei){let es,eu;switch(ei||(ei=0)){case 0:if(es="reg",this.m)for(let ee in eu=v(),this.register)eu[ee]=1;else eu=this.register;break;case 1:es="cfg",eu={doc:0,opt:this.s?1:0};break;case 2:es="map",eu=this.map;break;case 3:es="ctx",eu=this.h;break;default:return}return ra(ee,en||this,er,es,eo,ei,eu),!0},t.import=function(ee,en){if(en)switch(x(en)&&(en=JSON.parse(en)),ee){case"cfg":this.s=!!en.opt;break;case"reg":this.m=!1,this.register=en;break;case"map":this.map=en;break;case"ctx":this.h=en}},la(K.prototype);let wa=0;function O(ee){var en;if(!(this instanceof O))return new O(ee);ee?D(en=ee.encode)&&(ee.encode=en.toString()):ee={},(en=(self||window)._factory)&&(en=en.toString());let er="undefined"==typeof window&&self.exports,eo=this;this.o=xa(en,er,ee.worker),this.h=v(),this.o&&(er?this.o.on("message",function(ee){eo.h[ee.id](ee.msg),delete eo.h[ee.id]}):this.o.onmessage=function(ee){ee=ee.data,eo.h[ee.id](ee.msg),delete eo.h[ee.id]},this.o.postMessage({task:"init",factory:en,options:ee}))}function P(ee){O.prototype[ee]=O.prototype[ee+"Async"]=function(){let en;let er=this,eo=[].slice.call(arguments);var ei=eo[eo.length-1];return D(ei)&&(en=ei,eo.splice(eo.length-1,1)),ei=new Promise(function(en){setTimeout(function(){er.h[++wa]=en,er.o.postMessage({task:ee,id:wa,args:eo})})}),en?(ei.then(en),this):ei}}function xa(a,b,c){let d;try{d=b?eval('new (require("worker_threads")["Worker"])("../dist/node/node.js")'):a?new Worker(URL.createObjectURL(new Blob(["onmessage="+va.toString()],{type:"text/javascript"}))):new Worker(x(c)?c:"worker/worker.js",{type:"module"})}catch(e){}return d}function Q(ee){if(!(this instanceof Q))return new Q(ee);var en,er=ee.document||ee.doc||ee;this.K=[],this.h=[],this.A=[],this.register=v(),this.key=(en=er.key||er.id)&&S(en,this.A)||"id",this.m=u(ee.fastupdate),this.C=(en=er.store)&&!0!==en&&[],this.store=en&&v(),this.I=(en=er.tag)&&S(en,this.A),this.l=en&&v(),this.cache=(en=ee.cache)&&new J(en),ee.cache=!1,this.o=ee.worker,this.async=!1,en=v();let eo=er.index||er.field||er;x(eo)&&(eo=[eo]);for(let er=0,ei,es;er<eo.length;er++)x(ei=eo[er])||(es=ei,ei=ei.field),es=C(es)?Object.assign({},ee,es):ee,this.o&&(en[ei]=new O(es),en[ei].o||(this.o=!1)),this.o||(en[ei]=new K(es,this.register)),this.K[er]=S(ei,this.A),this.h[er]=ei;if(this.C)for(x(ee=er.store)&&(ee=[ee]),er=0;er<ee.length;er++)this.C[er]=S(ee[er],this.A);this.index=en}function S(ee,en){let er=ee.split(":"),eo=0;for(let ei=0;ei<er.length;ei++)0<=(ee=er[ei]).indexOf("[]")&&(ee=ee.substring(0,ee.length-2))&&(en[eo]=!0),ee&&(er[eo++]=ee);return eo<er.length&&(er.length=eo),1<eo?er:er[0]}function T(ee,en){if(x(en))ee=ee[en];else for(let er=0;ee&&er<en.length;er++)ee=ee[en[er]];return ee}function U(ee,en,er,eo,ei){if(ee=ee[ei],eo===er.length-1)en[ei]=ee;else if(ee){if(ee.constructor===Array)for(en=en[ei]=Array(ee.length),ei=0;ei<ee.length;ei++)U(ee,en,er,eo,ei);else en=en[ei]||(en[ei]=v()),ei=er[++eo],U(ee,en,er,eo,ei)}}function V(ee,en,er,eo,ei,es,eu,ec){if(ee=ee[eu]){if(eo===en.length-1){if(ee.constructor===Array){if(er[eo]){for(en=0;en<ee.length;en++)ei.add(es,ee[en],!0,!0);return}ee=ee.join(" ")}ei.add(es,ee,ec,!0)}else if(ee.constructor===Array)for(eu=0;eu<ee.length;eu++)V(ee,en,er,eo,ei,es,eu,ec);else eu=en[++eo],V(ee,en,er,eo,ei,es,eu,ec)}}function ya(ee,en,er,eo){let ei=this.l[ee],es=ei&&ei.length-er;if(es&&0<es)return(es>en||er)&&(ei=ei.slice(er,er+en)),eo&&(ei=za.call(this,ei)),{tag:ee,result:ei}}function za(ee){let en=Array(ee.length);for(let er=0,eo;er<ee.length;er++)eo=ee[er],en[er]={id:eo,doc:this.store[eo]};return en}P("add"),P("append"),P("search"),P("update"),P("remove"),t=Q.prototype,t.add=function(ee,en,er){if(C(ee)&&(ee=T(en=ee,this.key)),en&&(ee||0===ee)){if(!er&&this.register[ee])return this.update(ee,en);for(let eo=0,ei,es;eo<this.h.length;eo++)es=this.h[eo],x(ei=this.K[eo])&&(ei=[ei]),V(en,ei,this.A,0,this.index[es],ee,ei[0],er);if(this.I){let eo=T(en,this.I),ei=v();x(eo)&&(eo=[eo]);for(let en=0,es,eu;en<eo.length;en++)if(!ei[es=eo[en]]&&(ei[es]=1,eu=this.l[es]||(this.l[es]=[]),!er||!eu.includes(ee))&&(eu[eu.length]=ee,this.m)){let en=this.register[ee]||(this.register[ee]=[]);en[en.length]=eu}}if(this.store&&(!er||!this.store[ee])){let er;if(this.C){er=v();for(let ee=0,eo;ee<this.C.length;ee++)x(eo=this.C[ee])?er[eo]=en[eo]:U(en,er,eo,0,eo[0])}this.store[ee]=er||en}}return this},t.append=function(ee,en){return this.add(ee,en,!0)},t.update=function(ee,en){return this.remove(ee).add(ee,en)},t.remove=function(ee){if(C(ee)&&(ee=T(ee,this.key)),this.register[ee]){for(var en=0;en<this.h.length&&(this.index[this.h[en]].remove(ee,!this.o),!this.m);en++);if(this.I&&!this.m)for(let er in this.l){en=this.l[er];let eo=en.indexOf(ee);-1!==eo&&(1<en.length?en.splice(eo,1):delete this.l[er])}this.store&&delete this.store[ee],delete this.register[ee]}return this},t.search=function(ee,en,er,eo){er||(!en&&C(ee)?(er=ee,ee=""):C(en)&&(er=en,en=0));let ei=[],es=[],eu,ec,ed,ep,ef,eh,em=0;if(er){if(er.constructor===Array)ed=er,er=null;else{if(ee=er.query||ee,ed=(eu=er.pluck)||er.index||er.field,ep=er.tag,ec=this.store&&er.enrich,ef="and"===er.bool,en=er.limit||en||100,eh=er.offset||0,ep&&(x(ep)&&(ep=[ep]),!ee)){for(let ee=0,er;ee<ep.length;ee++)(er=ya.call(this,ep[ee],en,eh,ec))&&(ei[ei.length]=er,em++);return em?ei:[]}x(ed)&&(ed=[ed])}}ed||(ed=this.h),ef=ef&&(1<ed.length||ep&&1<ep.length);let ex=!eo&&(this.o||this.async)&&[];for(let eu=0,ec,eg,ev;eu<ed.length;eu++){let ey;if(x(eg=ed[eu])||(eg=(ey=eg).field,ee=ey.query||ee,en=ey.limit||en),ex)ex[eu]=this.index[eg].searchAsync(ee,en,ey||er);else{if(ev=(ec=eo?eo[eu]:this.index[eg].search(ee,en,ey||er))&&ec.length,ep&&ev){let ee=[],er=0;ef&&(ee[0]=[ec]);for(let en=0,eo,ei;en<ep.length;en++)eo=ep[en],(ev=(ei=this.l[eo])&&ei.length)&&(er++,ee[ee.length]=ef?[ei]:ei);er&&(ev=(ec=ef?ma(ee,en||100,eh||0):na(ec,ee)).length)}if(ev)es[em]=eg,ei[em++]=ec;else if(ef)return[]}}if(ex){let eo=this;return new Promise(function(ei){Promise.all(ex).then(function(es){ei(eo.search(ee,en,er,es))})})}if(!em)return[];if(eu&&(!ec||!this.store))return ei[0];for(let ee=0,en;ee<es.length;ee++){if((en=ei[ee]).length&&ec&&(en=za.call(this,en)),eu)return en;ei[ee]={field:es[ee],result:en}}return ei},t.contain=function(ee){return!!this.register[ee]},t.get=function(ee){return this.store[ee]},t.set=function(ee,en){return this.store[ee]=en,this},t.searchCache=oa,t.export=function(ee,en,er,eo,ei){if(ei||(ei=0),eo||(eo=0),eo<this.h.length){let er=this.h[eo],es=this.index[er];en=this,setTimeout(function(){es.export(ee,en,ei?er:"",eo,ei++)||(eo++,ei=1,en.export(ee,en,er,eo,ei))})}else{let en,es;switch(ei){case 1:en="tag",es=this.l;break;case 2:en="store",es=this.store;break;default:return}ra(ee,this,er,en,eo,ei,es)}},t.import=function(ee,en){if(en)switch(x(en)&&(en=JSON.parse(en)),ee){case"tag":this.l=en;break;case"reg":this.m=!1,this.register=en;for(let ee=0,er;ee<this.h.length;ee++)(er=this.index[this.h[ee]]).register=en,er.m=!1;break;case"store":this.store=en;break;default:ee=ee.split(".");let er=ee[0];ee=ee[1],er&&ee&&this.index[er].import(ee,en)}},la(Q.prototype);var Ba={encode:Aa,F:!1,G:""};let Ca=[F("[\xe0\xe1\xe2\xe3\xe4\xe5]"),"a",F("[\xe8\xe9\xea\xeb]"),"e",F("[\xec\xed\xee\xef]"),"i",F("[\xf2\xf3\xf4\xf5\xf6ő]"),"o",F("[\xf9\xfa\xfb\xfcű]"),"u",F("[\xfdŷ\xff]"),"y",F("\xf1"),"n",F("[\xe7c]"),"k",F("\xdf"),"s",F(" & ")," and "];function Aa(ee){var en=ee=""+ee;return en.normalize&&(en=en.normalize("NFD").replace(ea,"")),ca.call(this,en.toLowerCase(),!ee.normalize&&Ca)}var Ea={encode:Da,F:!1,G:"strict"};let Fa=/[^a-z0-9]+/,Ga={b:"p",v:"f",w:"f",z:"s",x:"s",ß:"s",d:"t",n:"m",c:"k",g:"k",j:"k",q:"k",i:"e",y:"e",u:"o"};function Da(ee){ee=Aa.call(this,ee).join(" ");let en=[];if(ee){let er=ee.split(Fa),eo=er.length;for(let ei=0,es,eu=0;ei<eo;ei++)if((ee=er[ei])&&(!this.filter||!this.filter[ee])){let er=Ga[es=ee[0]]||es,eo=er;for(let en=1;en<ee.length;en++){es=ee[en];let ei=Ga[es]||es;ei&&ei!==eo&&(er+=ei,eo=ei)}en[eu++]=er}}return en}var Ia={encode:Ha,F:!1,G:""};let Ja=[F("ae"),"a",F("oe"),"o",F("sh"),"s",F("th"),"t",F("ph"),"f",F("pf"),"f",F("(?![aeo])h(?![aeo])"),"",F("(?!^[aeo])h(?!^[aeo])"),""];function Ha(ee,en){return ee&&(2<(ee=Da.call(this,ee).join(" ")).length&&(ee=E(ee,Ja)),en||(1<ee.length&&(ee=ha(ee)),ee&&(ee=ee.split(" ")))),ee||[]}var La={encode:Ka,F:!1,G:""};let Ma=F("(?!\\b)[aeo]");function Ka(ee){return ee&&(1<(ee=Ha.call(this,ee,!0)).length&&(ee=ee.replace(Ma,"")),1<ee.length&&(ee=ha(ee)),ee&&(ee=ee.split(" "))),ee||[]}G["latin:default"]=ja,G["latin:simple"]=Ba,G["latin:balance"]=Ea,G["latin:advanced"]=Ia,G["latin:extra"]=La;let W=self,Z={Index:K,Document:Q,Worker:O,registerCharset:function(ee,en){G[ee]=en},registerLanguage:function(ee,en){ka[ee]=en}};(Y=W.define)&&Y.amd?Y([],function(){return Z}):W.exports?W.exports=Z:W.FlexSearch=Z}(this)},3611:function(){!function(ee,en){en()}(0,function(){"use strict";function applyFocusVisiblePolyfill(ee){var en=!0,er=!1,eo=null,ei={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function isValidFocusTarget(ee){return!!ee&&ee!==document&&"HTML"!==ee.nodeName&&"BODY"!==ee.nodeName&&"classList"in ee&&"contains"in ee.classList}function focusTriggersKeyboardModality(ee){var en=ee.type,er=ee.tagName;return"INPUT"===er&&!!ei[en]&&!ee.readOnly||"TEXTAREA"===er&&!ee.readOnly||!!ee.isContentEditable}function addFocusVisibleClass(ee){ee.classList.contains("focus-visible")||(ee.classList.add("focus-visible"),ee.setAttribute("data-focus-visible-added",""))}function removeFocusVisibleClass(ee){ee.hasAttribute("data-focus-visible-added")&&(ee.classList.remove("focus-visible"),ee.removeAttribute("data-focus-visible-added"))}function onKeyDown(er){er.metaKey||er.altKey||er.ctrlKey||(isValidFocusTarget(ee.activeElement)&&addFocusVisibleClass(ee.activeElement),en=!0)}function onPointerDown(ee){en=!1}function onFocus(ee){isValidFocusTarget(ee.target)&&(en||focusTriggersKeyboardModality(ee.target))&&addFocusVisibleClass(ee.target)}function onBlur(ee){isValidFocusTarget(ee.target)&&(ee.target.classList.contains("focus-visible")||ee.target.hasAttribute("data-focus-visible-added"))&&(er=!0,window.clearTimeout(eo),eo=window.setTimeout(function(){er=!1},100),removeFocusVisibleClass(ee.target))}function onVisibilityChange(ee){"hidden"===document.visibilityState&&(er&&(en=!0),addInitialPointerMoveListeners())}function addInitialPointerMoveListeners(){document.addEventListener("mousemove",onInitialPointerMove),document.addEventListener("mousedown",onInitialPointerMove),document.addEventListener("mouseup",onInitialPointerMove),document.addEventListener("pointermove",onInitialPointerMove),document.addEventListener("pointerdown",onInitialPointerMove),document.addEventListener("pointerup",onInitialPointerMove),document.addEventListener("touchmove",onInitialPointerMove),document.addEventListener("touchstart",onInitialPointerMove),document.addEventListener("touchend",onInitialPointerMove)}function removeInitialPointerMoveListeners(){document.removeEventListener("mousemove",onInitialPointerMove),document.removeEventListener("mousedown",onInitialPointerMove),document.removeEventListener("mouseup",onInitialPointerMove),document.removeEventListener("pointermove",onInitialPointerMove),document.removeEventListener("pointerdown",onInitialPointerMove),document.removeEventListener("pointerup",onInitialPointerMove),document.removeEventListener("touchmove",onInitialPointerMove),document.removeEventListener("touchstart",onInitialPointerMove),document.removeEventListener("touchend",onInitialPointerMove)}function onInitialPointerMove(ee){ee.target.nodeName&&"html"===ee.target.nodeName.toLowerCase()||(en=!1,removeInitialPointerMoveListeners())}document.addEventListener("keydown",onKeyDown,!0),document.addEventListener("mousedown",onPointerDown,!0),document.addEventListener("pointerdown",onPointerDown,!0),document.addEventListener("touchstart",onPointerDown,!0),document.addEventListener("visibilitychange",onVisibilityChange,!0),addInitialPointerMoveListeners(),ee.addEventListener("focus",onFocus,!0),ee.addEventListener("blur",onBlur,!0),ee.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&ee.host?ee.host.setAttribute("data-js-focus-visible",""):ee.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if("undefined"!=typeof window&&"undefined"!=typeof document){var ee;window.applyFocusVisiblePolyfill=applyFocusVisiblePolyfill;try{ee=new CustomEvent("focus-visible-polyfill-ready")}catch(en){(ee=document.createEvent("CustomEvent")).initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(ee)}"undefined"!=typeof document&&applyFocusVisiblePolyfill(document)})},2590:function(ee,en,er){"use strict";var eo=er(5145),ei=er(8542);function gitUp(ee){var en=eo(ee);return en.token="","x-oauth-basic"===en.password?en.token=en.user:"x-token-auth"===en.user&&(en.token=en.password),ei(en.protocols)||0===en.protocols.length&&ei(ee)?en.protocol="ssh":en.protocols.length?en.protocol=en.protocols[0]:(en.protocol="file",en.protocols=["file"]),en.href=en.href.replace(/\/$/,""),en}ee.exports=gitUp},6680:function(ee,en,er){"use strict";var eo=er(2590);function gitUrlParse(ee){if("string"!=typeof ee)throw Error("The url must be a string.");/^([a-z\d-]{1,39})\/([-\.\w]{1,100})$/i.test(ee)&&(ee="https://github.com/"+ee);var en=eo(ee),er=en.resource.split("."),ei=null;switch(en.toString=function(ee){return gitUrlParse.stringify(this,ee)},en.source=er.length>2?er.slice(1-er.length).join("."):en.source=en.resource,en.git_suffix=/\.git$/.test(en.pathname),en.name=decodeURIComponent((en.pathname||en.href).replace(/(^\/)|(\/$)/g,"").replace(/\.git$/,"")),en.owner=decodeURIComponent(en.user),en.source){case"git.cloudforge.com":en.owner=en.user,en.organization=er[0],en.source="cloudforge.com";break;case"visualstudio.com":if("vs-ssh.visualstudio.com"===en.resource){4===(ei=en.name.split("/")).length&&(en.organization=ei[1],en.owner=ei[2],en.name=ei[3],en.full_name=ei[2]+"/"+ei[3]);break}2===(ei=en.name.split("/")).length?(en.owner=ei[1],en.name=ei[1],en.full_name="_git/"+en.name):3===ei.length?(en.name=ei[2],"DefaultCollection"===ei[0]?(en.owner=ei[2],en.organization=ei[0],en.full_name=en.organization+"/_git/"+en.name):(en.owner=ei[0],en.full_name=en.owner+"/_git/"+en.name)):4===ei.length&&(en.organization=ei[0],en.owner=ei[1],en.name=ei[3],en.full_name=en.organization+"/"+en.owner+"/_git/"+en.name);break;case"dev.azure.com":case"azure.com":if("ssh.dev.azure.com"===en.resource){4===(ei=en.name.split("/")).length&&(en.organization=ei[1],en.owner=ei[2],en.name=ei[3]);break}5===(ei=en.name.split("/")).length?(en.organization=ei[0],en.owner=ei[1],en.name=ei[4],en.full_name="_git/"+en.name):3===ei.length?(en.name=ei[2],"DefaultCollection"===ei[0]?(en.owner=ei[2],en.organization=ei[0],en.full_name=en.organization+"/_git/"+en.name):(en.owner=ei[0],en.full_name=en.owner+"/_git/"+en.name)):4===ei.length&&(en.organization=ei[0],en.owner=ei[1],en.name=ei[3],en.full_name=en.organization+"/"+en.owner+"/_git/"+en.name),en.query&&en.query.path&&(en.filepath=en.query.path.replace(/^\/+/g,"")),en.query&&en.query.version&&(en.ref=en.query.version.replace(/^GB/,""));break;default:var es=(ei=en.name.split("/")).length-1;if(ei.length>=2){var eu=ei.indexOf("-",2),ec=ei.indexOf("blob",2),ed=ei.indexOf("tree",2),ep=ei.indexOf("commit",2),ef=ei.indexOf("src",2),eh=ei.indexOf("raw",2),em=ei.indexOf("edit",2);es=eu>0?eu-1:ec>0?ec-1:ed>0?ed-1:ep>0?ep-1:ef>0?ef-1:eh>0?eh-1:em>0?em-1:es,en.owner=ei.slice(0,es).join("/"),en.name=ei[es],ep&&(en.commit=ei[es+2])}en.ref="",en.filepathtype="",en.filepath="";var ex=ei.length>es&&"-"===ei[es+1]?es+1:es;ei.length>ex+2&&["raw","src","blob","tree","edit"].indexOf(ei[ex+1])>=0&&(en.filepathtype=ei[ex+1],en.ref=ei[ex+2],ei.length>ex+3&&(en.filepath=ei.slice(ex+3).join("/"))),en.organization=en.owner}!en.full_name&&(en.full_name=en.owner,en.name&&(en.full_name&&(en.full_name+="/"),en.full_name+=en.name)),en.owner.startsWith("scm/")&&(en.source="bitbucket-server",en.owner=en.owner.replace("scm/",""),en.organization=en.owner,en.full_name=en.owner+"/"+en.name);var eg=/(projects|users)\/(.*?)\/repos\/(.*?)((\/.*$)|$)/.exec(en.pathname);return null!=eg&&(en.source="bitbucket-server","users"===eg[1]?en.owner="~"+eg[2]:en.owner=eg[2],en.organization=en.owner,en.name=eg[3],(ei=eg[4].split("/")).length>1&&(["raw","browse"].indexOf(ei[1])>=0?(en.filepathtype=ei[1],ei.length>2&&(en.filepath=ei.slice(2).join("/"))):"commits"===ei[1]&&ei.length>2&&(en.commit=ei[2])),en.full_name=en.owner+"/"+en.name,en.query.at?en.ref=en.query.at:en.ref=""),en}/*!
 * buildToken
 * Builds OAuth token prefix (helper function)
 *
 * @name buildToken
 * @function
 * @param {GitUrl} obj The parsed Git url object.
 * @return {String} token prefix
 */function buildToken(ee){return"bitbucket.org"===ee.source?"x-token-auth:"+ee.token+"@":ee.token+"@"}function buildPath(ee){return"bitbucket-server"===ee.source?"scm/"+ee.full_name:""+ee.full_name}gitUrlParse.stringify=function(ee,en){en=en||(ee.protocols&&ee.protocols.length?ee.protocols.join("+"):ee.protocol);var er=ee.port?":"+ee.port:"",eo=ee.user||"git",ei=ee.git_suffix?".git":"";switch(en){case"ssh":if(er)return"ssh://"+eo+"@"+ee.resource+er+"/"+ee.full_name+ei;return eo+"@"+ee.resource+":"+ee.full_name+ei;case"git+ssh":case"ssh+git":case"ftp":case"ftps":return en+"://"+eo+"@"+ee.resource+er+"/"+ee.full_name+ei;case"http":case"https":return en+"://"+(ee.token?buildToken(ee):ee.user&&(ee.protocols.includes("http")||ee.protocols.includes("https"))?ee.user+"@":"")+ee.resource+er+"/"+buildPath(ee)+ei;default:return ee.href}},ee.exports=gitUrlParse},5085:function(){!function(){"use strict";if("object"==typeof window){if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}var ee=function(ee){for(var en=ee,er=getFrameElement(en);er;)er=getFrameElement(en=er.ownerDocument);return en}(window.document),en=[],er=null,eo=null;IntersectionObserver.prototype.THROTTLE_TIMEOUT=100,IntersectionObserver.prototype.POLL_INTERVAL=null,IntersectionObserver.prototype.USE_MUTATION_OBSERVER=!0,IntersectionObserver._setupCrossOriginUpdater=function(){return er||(er=function(ee,er){eo=ee&&er?convertFromParentRect(ee,er):getEmptyRect(),en.forEach(function(ee){ee._checkForIntersections()})}),er},IntersectionObserver._resetCrossOriginUpdater=function(){er=null,eo=null},IntersectionObserver.prototype.observe=function(ee){if(!this._observationTargets.some(function(en){return en.element==ee})){if(!(ee&&1==ee.nodeType))throw Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:ee,entry:null}),this._monitorIntersections(ee.ownerDocument),this._checkForIntersections()}},IntersectionObserver.prototype.unobserve=function(ee){this._observationTargets=this._observationTargets.filter(function(en){return en.element!=ee}),this._unmonitorIntersections(ee.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},IntersectionObserver.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},IntersectionObserver.prototype.takeRecords=function(){var ee=this._queuedEntries.slice();return this._queuedEntries=[],ee},IntersectionObserver.prototype._initThresholds=function(ee){var en=ee||[0];return Array.isArray(en)||(en=[en]),en.sort().filter(function(ee,en,er){if("number"!=typeof ee||isNaN(ee)||ee<0||ee>1)throw Error("threshold must be a number between 0 and 1 inclusively");return ee!==er[en-1]})},IntersectionObserver.prototype._parseRootMargin=function(ee){var en=(ee||"0px").split(/\s+/).map(function(ee){var en=/^(-?\d*\.?\d+)(px|%)$/.exec(ee);if(!en)throw Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(en[1]),unit:en[2]}});return en[1]=en[1]||en[0],en[2]=en[2]||en[0],en[3]=en[3]||en[1],en},IntersectionObserver.prototype._monitorIntersections=function(en){var er=en.defaultView;if(er&&-1==this._monitoringDocuments.indexOf(en)){var eo=this._checkForIntersections,ei=null,es=null;if(this.POLL_INTERVAL?ei=er.setInterval(eo,this.POLL_INTERVAL):(addEvent(er,"resize",eo,!0),addEvent(en,"scroll",eo,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in er&&(es=new er.MutationObserver(eo)).observe(en,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(en),this._monitoringUnsubscribes.push(function(){var ee=en.defaultView;ee&&(ei&&ee.clearInterval(ei),removeEvent(ee,"resize",eo,!0)),removeEvent(en,"scroll",eo,!0),es&&es.disconnect()}),en!=(this.root&&(this.root.ownerDocument||this.root)||ee)){var eu=getFrameElement(en);eu&&this._monitorIntersections(eu.ownerDocument)}}},IntersectionObserver.prototype._unmonitorIntersections=function(en){var er=this._monitoringDocuments.indexOf(en);if(-1!=er){var eo=this.root&&(this.root.ownerDocument||this.root)||ee;if(!this._observationTargets.some(function(ee){var er=ee.element.ownerDocument;if(er==en)return!0;for(;er&&er!=eo;){var ei=getFrameElement(er);if((er=ei&&ei.ownerDocument)==en)return!0}return!1})){var ei=this._monitoringUnsubscribes[er];if(this._monitoringDocuments.splice(er,1),this._monitoringUnsubscribes.splice(er,1),ei(),en!=eo){var es=getFrameElement(en);es&&this._unmonitorIntersections(es.ownerDocument)}}}},IntersectionObserver.prototype._unmonitorAllIntersections=function(){var ee=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var en=0;en<ee.length;en++)ee[en]()},IntersectionObserver.prototype._checkForIntersections=function(){if(this.root||!er||eo){var ee=this._rootIsInDom(),en=ee?this._getRootRect():getEmptyRect();this._observationTargets.forEach(function(eo){var ei=eo.element,es=getBoundingClientRect(ei),eu=this._rootContainsTarget(ei),ec=eo.entry,ed=ee&&eu&&this._computeTargetAndRootIntersection(ei,es,en),ep=null;this._rootContainsTarget(ei)?(!er||this.root)&&(ep=en):ep=getEmptyRect();var ef=eo.entry=new IntersectionObserverEntry({time:now(),target:ei,boundingClientRect:es,rootBounds:ep,intersectionRect:ed});ec?ee&&eu?this._hasCrossedThreshold(ec,ef)&&this._queuedEntries.push(ef):ec&&ec.isIntersecting&&this._queuedEntries.push(ef):this._queuedEntries.push(ef)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},IntersectionObserver.prototype._computeTargetAndRootIntersection=function(en,ei,es){if("none"!=window.getComputedStyle(en).display){for(var eu=ei,ec=getParentNode(en),ed=!1;!ed&&ec;){var ep=null,ef=1==ec.nodeType?window.getComputedStyle(ec):{};if("none"==ef.display)return null;if(ec==this.root||9==ec.nodeType){if(ed=!0,ec==this.root||ec==ee)er&&!this.root?eo&&(0!=eo.width||0!=eo.height)?ep=eo:(ec=null,ep=null,eu=null):ep=es;else{var eh=getParentNode(ec),em=eh&&getBoundingClientRect(eh),ex=eh&&this._computeTargetAndRootIntersection(eh,em,es);em&&ex?(ec=eh,ep=convertFromParentRect(em,ex)):(ec=null,eu=null)}}else{var eg=ec.ownerDocument;ec!=eg.body&&ec!=eg.documentElement&&"visible"!=ef.overflow&&(ep=getBoundingClientRect(ec))}if(ep&&(eu=computeRectIntersection(ep,eu)),!eu)break;ec=ec&&getParentNode(ec)}return eu}},IntersectionObserver.prototype._getRootRect=function(){var en;if(this.root&&!isDoc(this.root))en=getBoundingClientRect(this.root);else{var er=isDoc(this.root)?this.root:ee,eo=er.documentElement,ei=er.body;en={top:0,left:0,right:eo.clientWidth||ei.clientWidth,width:eo.clientWidth||ei.clientWidth,bottom:eo.clientHeight||ei.clientHeight,height:eo.clientHeight||ei.clientHeight}}return this._expandRectByRootMargin(en)},IntersectionObserver.prototype._expandRectByRootMargin=function(ee){var en=this._rootMarginValues.map(function(en,er){return"px"==en.unit?en.value:en.value*(er%2?ee.width:ee.height)/100}),er={top:ee.top-en[0],right:ee.right+en[1],bottom:ee.bottom+en[2],left:ee.left-en[3]};return er.width=er.right-er.left,er.height=er.bottom-er.top,er},IntersectionObserver.prototype._hasCrossedThreshold=function(ee,en){var er=ee&&ee.isIntersecting?ee.intersectionRatio||0:-1,eo=en.isIntersecting?en.intersectionRatio||0:-1;if(er!==eo)for(var ei=0;ei<this.thresholds.length;ei++){var es=this.thresholds[ei];if(es==er||es==eo||es<er!=es<eo)return!0}},IntersectionObserver.prototype._rootIsInDom=function(){return!this.root||containsDeep(ee,this.root)},IntersectionObserver.prototype._rootContainsTarget=function(en){var er=this.root&&(this.root.ownerDocument||this.root)||ee;return containsDeep(er,en)&&(!this.root||er==en.ownerDocument)},IntersectionObserver.prototype._registerInstance=function(){0>en.indexOf(this)&&en.push(this)},IntersectionObserver.prototype._unregisterInstance=function(){var ee=en.indexOf(this);-1!=ee&&en.splice(ee,1)},window.IntersectionObserver=IntersectionObserver,window.IntersectionObserverEntry=IntersectionObserverEntry}function getFrameElement(ee){try{return ee.defaultView&&ee.defaultView.frameElement||null}catch(ee){return null}}function IntersectionObserverEntry(ee){this.time=ee.time,this.target=ee.target,this.rootBounds=ensureDOMRect(ee.rootBounds),this.boundingClientRect=ensureDOMRect(ee.boundingClientRect),this.intersectionRect=ensureDOMRect(ee.intersectionRect||getEmptyRect()),this.isIntersecting=!!ee.intersectionRect;var en=this.boundingClientRect,er=en.width*en.height,eo=this.intersectionRect,ei=eo.width*eo.height;er?this.intersectionRatio=Number((ei/er).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function IntersectionObserver(ee,en){var er=en||{};if("function"!=typeof ee)throw Error("callback must be a function");if(er.root&&1!=er.root.nodeType&&9!=er.root.nodeType)throw Error("root must be a Document or Element");this._checkForIntersections=throttle(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=ee,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(er.rootMargin),this.thresholds=this._initThresholds(er.threshold),this.root=er.root||null,this.rootMargin=this._rootMarginValues.map(function(ee){return ee.value+ee.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function now(){return window.performance&&performance.now&&performance.now()}function throttle(ee,en){var er=null;return function(){er||(er=setTimeout(function(){ee(),er=null},en))}}function addEvent(ee,en,er,eo){"function"==typeof ee.addEventListener?ee.addEventListener(en,er,eo||!1):"function"==typeof ee.attachEvent&&ee.attachEvent("on"+en,er)}function removeEvent(ee,en,er,eo){"function"==typeof ee.removeEventListener?ee.removeEventListener(en,er,eo||!1):"function"==typeof ee.detachEvent&&ee.detachEvent("on"+en,er)}function computeRectIntersection(ee,en){var er=Math.max(ee.top,en.top),eo=Math.min(ee.bottom,en.bottom),ei=Math.max(ee.left,en.left),es=Math.min(ee.right,en.right),eu=es-ei,ec=eo-er;return eu>=0&&ec>=0&&{top:er,bottom:eo,left:ei,right:es,width:eu,height:ec}||null}function getBoundingClientRect(ee){var en;try{en=ee.getBoundingClientRect()}catch(ee){}return en?(en.width&&en.height||(en={top:en.top,right:en.right,bottom:en.bottom,left:en.left,width:en.right-en.left,height:en.bottom-en.top}),en):getEmptyRect()}function getEmptyRect(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function ensureDOMRect(ee){return!ee||"x"in ee?ee:{top:ee.top,y:ee.top,bottom:ee.bottom,left:ee.left,x:ee.left,right:ee.right,width:ee.width,height:ee.height}}function convertFromParentRect(ee,en){var er=en.top-ee.top,eo=en.left-ee.left;return{top:er,left:eo,height:en.height,width:en.width,bottom:er+en.height,right:eo+en.width}}function containsDeep(ee,en){for(var er=en;er;){if(er==ee)return!0;er=getParentNode(er)}return!1}function getParentNode(en){var er=en.parentNode;return 9==en.nodeType&&en!=ee?getFrameElement(en):(er&&er.assignedSlot&&(er=er.assignedSlot.parentNode),er&&11==er.nodeType&&er.host)?er.host:er}function isDoc(ee){return ee&&9===ee.nodeType}}()},8542:function(ee,en,er){"use strict";var eo=er(5164);function isSsh(ee){if(Array.isArray(ee))return -1!==ee.indexOf("ssh")||-1!==ee.indexOf("rsync");if("string"!=typeof ee)return!1;var en=eo(ee);if(ee=ee.substring(ee.indexOf("://")+3),isSsh(en))return!0;var er=RegExp(".([a-zA-Z\\d]+):(\\d+)/");return!ee.match(er)&&ee.indexOf("@")<ee.indexOf(":")}ee.exports=isSsh},6325:function(ee,en,er){var eo="Expected a function",ei="__lodash_hash_undefined__",es=1/0,eu="[object Function]",ec="[object GeneratorFunction]",ed="[object Symbol]",ep=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ef=/^\w*$/,eh=/^\./,em=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ex=/[\\^$.*+?()[\]{}|]/g,eg=/\\(\\)?/g,ev=/^\[object .+?Constructor\]$/,ey="object"==typeof er.g&&er.g&&er.g.Object===Object&&er.g,eb="object"==typeof self&&self&&self.Object===Object&&self,e_=ey||eb||Function("return this")();function getValue(ee,en){return null==ee?void 0:ee[en]}function isHostObject(ee){var en=!1;if(null!=ee&&"function"!=typeof ee.toString)try{en=!!(ee+"")}catch(ee){}return en}var ew=Array.prototype,ek=Function.prototype,eC=Object.prototype,eT=e_["__core-js_shared__"],eE=function(){var ee=/[^.]+$/.exec(eT&&eT.keys&&eT.keys.IE_PROTO||"");return ee?"Symbol(src)_1."+ee:""}(),eO=ek.toString,eS=eC.hasOwnProperty,ej=eC.toString,eI=RegExp("^"+eO.call(eS).replace(ex,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),eP=e_.Symbol,eN=ew.splice,eR=getNative(e_,"Map"),eZ=getNative(Object,"create"),eM=eP?eP.prototype:void 0,eA=eM?eM.toString:void 0;function Hash(ee){var en=-1,er=ee?ee.length:0;for(this.clear();++en<er;){var eo=ee[en];this.set(eo[0],eo[1])}}function hashClear(){this.__data__=eZ?eZ(null):{}}function hashDelete(ee){return this.has(ee)&&delete this.__data__[ee]}function hashGet(ee){var en=this.__data__;if(eZ){var er=en[ee];return er===ei?void 0:er}return eS.call(en,ee)?en[ee]:void 0}function hashHas(ee){var en=this.__data__;return eZ?void 0!==en[ee]:eS.call(en,ee)}function hashSet(ee,en){return this.__data__[ee]=eZ&&void 0===en?ei:en,this}function ListCache(ee){var en=-1,er=ee?ee.length:0;for(this.clear();++en<er;){var eo=ee[en];this.set(eo[0],eo[1])}}function listCacheClear(){this.__data__=[]}function listCacheDelete(ee){var en=this.__data__,er=assocIndexOf(en,ee);return!(er<0)&&(er==en.length-1?en.pop():eN.call(en,er,1),!0)}function listCacheGet(ee){var en=this.__data__,er=assocIndexOf(en,ee);return er<0?void 0:en[er][1]}function listCacheHas(ee){return assocIndexOf(this.__data__,ee)>-1}function listCacheSet(ee,en){var er=this.__data__,eo=assocIndexOf(er,ee);return eo<0?er.push([ee,en]):er[eo][1]=en,this}function MapCache(ee){var en=-1,er=ee?ee.length:0;for(this.clear();++en<er;){var eo=ee[en];this.set(eo[0],eo[1])}}function mapCacheClear(){this.__data__={hash:new Hash,map:new(eR||ListCache),string:new Hash}}function mapCacheDelete(ee){return getMapData(this,ee).delete(ee)}function mapCacheGet(ee){return getMapData(this,ee).get(ee)}function mapCacheHas(ee){return getMapData(this,ee).has(ee)}function mapCacheSet(ee,en){return getMapData(this,ee).set(ee,en),this}function assocIndexOf(ee,en){for(var er=ee.length;er--;)if(eq(ee[er][0],en))return er;return -1}function baseGet(ee,en){en=isKey(en,ee)?[en]:castPath(en);for(var er=0,eo=en.length;null!=ee&&er<eo;)ee=ee[toKey(en[er++])];return er&&er==eo?ee:void 0}function baseIsNative(ee){return!(!isObject(ee)||isMasked(ee))&&(isFunction(ee)||isHostObject(ee)?eI:ev).test(toSource(ee))}function baseToString(ee){if("string"==typeof ee)return ee;if(isSymbol(ee))return eA?eA.call(ee):"";var en=ee+"";return"0"==en&&1/ee==-es?"-0":en}function castPath(ee){return eD(ee)?ee:eL(ee)}function getMapData(ee,en){var er=ee.__data__;return isKeyable(en)?er["string"==typeof en?"string":"hash"]:er.map}function getNative(ee,en){var er=getValue(ee,en);return baseIsNative(er)?er:void 0}function isKey(ee,en){if(eD(ee))return!1;var er=typeof ee;return!!("number"==er||"symbol"==er||"boolean"==er||null==ee||isSymbol(ee))||ef.test(ee)||!ep.test(ee)||null!=en&&ee in Object(en)}function isKeyable(ee){var en=typeof ee;return"string"==en||"number"==en||"symbol"==en||"boolean"==en?"__proto__"!==ee:null===ee}function isMasked(ee){return!!eE&&eE in ee}Hash.prototype.clear=hashClear,Hash.prototype.delete=hashDelete,Hash.prototype.get=hashGet,Hash.prototype.has=hashHas,Hash.prototype.set=hashSet,ListCache.prototype.clear=listCacheClear,ListCache.prototype.delete=listCacheDelete,ListCache.prototype.get=listCacheGet,ListCache.prototype.has=listCacheHas,ListCache.prototype.set=listCacheSet,MapCache.prototype.clear=mapCacheClear,MapCache.prototype.delete=mapCacheDelete,MapCache.prototype.get=mapCacheGet,MapCache.prototype.has=mapCacheHas,MapCache.prototype.set=mapCacheSet;var eL=memoize(function(ee){ee=toString(ee);var en=[];return eh.test(ee)&&en.push(""),ee.replace(em,function(ee,er,eo,ei){en.push(eo?ei.replace(eg,"$1"):er||ee)}),en});function toKey(ee){if("string"==typeof ee||isSymbol(ee))return ee;var en=ee+"";return"0"==en&&1/ee==-es?"-0":en}function toSource(ee){if(null!=ee){try{return eO.call(ee)}catch(ee){}try{return ee+""}catch(ee){}}return""}function memoize(ee,en){if("function"!=typeof ee||en&&"function"!=typeof en)throw TypeError(eo);var memoized=function(){var er=arguments,eo=en?en.apply(this,er):er[0],ei=memoized.cache;if(ei.has(eo))return ei.get(eo);var es=ee.apply(this,er);return memoized.cache=ei.set(eo,es),es};return memoized.cache=new(memoize.Cache||MapCache),memoized}function eq(ee,en){return ee===en||ee!=ee&&en!=en}memoize.Cache=MapCache;var eD=Array.isArray;function isFunction(ee){var en=isObject(ee)?ej.call(ee):"";return en==eu||en==ec}function isObject(ee){var en=typeof ee;return!!ee&&("object"==en||"function"==en)}function isObjectLike(ee){return!!ee&&"object"==typeof ee}function isSymbol(ee){return"symbol"==typeof ee||isObjectLike(ee)&&ej.call(ee)==ed}function toString(ee){return null==ee?"":baseToString(ee)}function get(ee,en,er){var eo=null==ee?void 0:baseGet(ee,en);return void 0===eo?er:eo}ee.exports=get},3345:function(ee,en,er){"use strict";var eo,ei;ee.exports=(null==(eo=er.g.process)?void 0:eo.env)&&"object"==typeof(null==(ei=er.g.process)?void 0:ei.env)?er.g.process:er(1482)},6692:function(ee,en){"use strict";var er;Object.defineProperty(en,"__esModule",{value:!0}),function(ee,en){for(var er in en)Object.defineProperty(ee,er,{enumerable:!0,get:en[er]})}(en,{PrefetchKind:function(){return er},ACTION_REFRESH:function(){return eo},ACTION_NAVIGATE:function(){return ei},ACTION_RESTORE:function(){return es},ACTION_SERVER_PATCH:function(){return eu},ACTION_PREFETCH:function(){return ec},ACTION_FAST_REFRESH:function(){return ed},ACTION_SERVER_ACTION:function(){return ep}});let eo="refresh",ei="navigate",es="restore",eu="server-patch",ec="prefetch",ed="fast-refresh",ep="server-action";!function(ee){ee.AUTO="auto",ee.FULL="full",ee.TEMPORARY="temporary"}(er||(er={})),("function"==typeof en.default||"object"==typeof en.default&&null!==en.default)&&void 0===en.default.__esModule&&(Object.defineProperty(en.default,"__esModule",{value:!0}),Object.assign(en.default,en),ee.exports=en.default)},8053:function(ee,en,er){"use strict";function getDomainLocale(ee,en,er,eo){return!1}Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"getDomainLocale",{enumerable:!0,get:function(){return getDomainLocale}}),er(9450),("function"==typeof en.default||"object"==typeof en.default&&null!==en.default)&&void 0===en.default.__esModule&&(Object.defineProperty(en.default,"__esModule",{value:!0}),Object.assign(en.default,en),ee.exports=en.default)},2016:function(ee,en,er){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"Image",{enumerable:!0,get:function(){return ev}});let eo=er(3166),ei=er(4925),es=ei._(er(2983)),eu=eo._(er(3730)),ec=eo._(er(2505)),ed=er(5442),ep=er(1061),ef=er(3160);er(394);let eh=er(3588),em=eo._(er(434)),ex={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function handleLoading(ee,en,er,eo,ei,es){let eu=null==ee?void 0:ee.src;if(!ee||ee["data-loaded-src"]===eu)return;ee["data-loaded-src"]=eu;let ec="decode"in ee?ee.decode():Promise.resolve();ec.catch(()=>{}).then(()=>{if(ee.parentElement&&ee.isConnected){if("empty"!==en&&ei(!0),null==er?void 0:er.current){let en=new Event("load");Object.defineProperty(en,"target",{writable:!1,value:ee});let eo=!1,ei=!1;er.current({...en,nativeEvent:en,currentTarget:ee,target:ee,isDefaultPrevented:()=>eo,isPropagationStopped:()=>ei,persist:()=>{},preventDefault:()=>{eo=!0,en.preventDefault()},stopPropagation:()=>{ei=!0,en.stopPropagation()}})}(null==eo?void 0:eo.current)&&eo.current(ee)}})}function getDynamicProps(ee){let[en,er]=es.version.split("."),eo=parseInt(en,10),ei=parseInt(er,10);return eo>18||18===eo&&ei>=3?{fetchPriority:ee}:{fetchpriority:ee}}let eg=(0,es.forwardRef)((ee,en)=>{let{src:er,srcSet:eo,sizes:ei,height:eu,width:ec,decoding:ed,className:ep,style:ef,fetchPriority:eh,placeholder:em,loading:ex,unoptimized:eg,fill:ev,onLoadRef:ey,onLoadingCompleteRef:eb,setBlurComplete:e_,setShowAltText:ew,onLoad:ek,onError:eC,...eT}=ee;return es.default.createElement("img",{...eT,...getDynamicProps(eh),loading:ex,width:ec,height:eu,decoding:ed,"data-nimg":ev?"fill":"1",className:ep,style:ef,sizes:ei,srcSet:eo,src:er,ref:(0,es.useCallback)(ee=>{en&&("function"==typeof en?en(ee):"object"==typeof en&&(en.current=ee)),ee&&(eC&&(ee.src=ee.src),ee.complete&&handleLoading(ee,em,ey,eb,e_,eg))},[er,em,ey,eb,e_,eC,eg,en]),onLoad:ee=>{let en=ee.currentTarget;handleLoading(en,em,ey,eb,e_,eg)},onError:ee=>{ew(!0),"empty"!==em&&e_(!0),eC&&eC(ee)}})});function ImagePreload(ee){let{isAppRouter:en,imgAttributes:er}=ee,eo={as:"image",imageSrcSet:er.srcSet,imageSizes:er.sizes,crossOrigin:er.crossOrigin,referrerPolicy:er.referrerPolicy,...getDynamicProps(er.fetchPriority)};return en&&eu.default.preload?(eu.default.preload(er.src,eo),null):es.default.createElement(ec.default,null,es.default.createElement("link",{key:"__nimg-"+er.src+er.srcSet+er.sizes,rel:"preload",href:er.srcSet?void 0:er.src,...eo}))}let ev=(0,es.forwardRef)((ee,en)=>{let er=(0,es.useContext)(eh.RouterContext),eo=!er,ei=(0,es.useContext)(ef.ImageConfigContext),eu=(0,es.useMemo)(()=>{let ee=ex||ei||ep.imageConfigDefault,en=[...ee.deviceSizes,...ee.imageSizes].sort((ee,en)=>ee-en),er=ee.deviceSizes.sort((ee,en)=>ee-en);return{...ee,allSizes:en,deviceSizes:er}},[ei]),{onLoad:ec,onLoadingComplete:ev}=ee,ey=(0,es.useRef)(ec);(0,es.useEffect)(()=>{ey.current=ec},[ec]);let eb=(0,es.useRef)(ev);(0,es.useEffect)(()=>{eb.current=ev},[ev]);let[e_,ew]=(0,es.useState)(!1),[ek,eC]=(0,es.useState)(!1),{props:eT,meta:eE}=(0,ed.getImgProps)(ee,{defaultLoader:em.default,imgConf:eu,blurComplete:e_,showAltText:ek});return es.default.createElement(es.default.Fragment,null,es.default.createElement(eg,{...eT,unoptimized:eE.unoptimized,placeholder:eE.placeholder,fill:eE.fill,onLoadRef:ey,onLoadingCompleteRef:eb,setBlurComplete:ew,setShowAltText:eC,ref:en}),eE.priority?es.default.createElement(ImagePreload,{isAppRouter:eo,imgAttributes:eT}):null)});("function"==typeof en.default||"object"==typeof en.default&&null!==en.default)&&void 0===en.default.__esModule&&(Object.defineProperty(en.default,"__esModule",{value:!0}),Object.assign(en.default,en),ee.exports=en.default)},4195:function(ee,en,er){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"default",{enumerable:!0,get:function(){return e_}});let eo=er(3166),ei=eo._(er(2983)),es=er(793),eu=er(8675),ec=er(1317),ed=er(3181),ep=er(5068),ef=er(3588),eh=er(8630),em=er(9018),ex=er(8053),eg=er(336),ev=er(6692),ey=new Set;function prefetch(ee,en,er,eo,ei,es){if(!es&&!(0,eu.isLocalURL)(en))return;if(!eo.bypassPrefetchedCheck){let ei=void 0!==eo.locale?eo.locale:"locale"in ee?ee.locale:void 0,es=en+"%"+er+"%"+ei;if(ey.has(es))return;ey.add(es)}let ec=es?ee.prefetch(en,ei):ee.prefetch(en,er,eo);Promise.resolve(ec).catch(ee=>{})}function isModifiedEvent(ee){let en=ee.currentTarget,er=en.getAttribute("target");return er&&"_self"!==er||ee.metaKey||ee.ctrlKey||ee.shiftKey||ee.altKey||ee.nativeEvent&&2===ee.nativeEvent.which}function linkClicked(ee,en,er,eo,es,ec,ed,ep,ef,eh){let{nodeName:em}=ee.currentTarget,ex="A"===em.toUpperCase();if(ex&&(isModifiedEvent(ee)||!ef&&!(0,eu.isLocalURL)(er)))return;ee.preventDefault();let navigate=()=>{let ee=null==ed||ed;"beforePopState"in en?en[es?"replace":"push"](er,eo,{shallow:ec,locale:ep,scroll:ee}):en[es?"replace":"push"](eo||er,{forceOptimisticNavigation:!eh,scroll:ee})};ef?ei.default.startTransition(navigate):navigate()}function formatStringOrUrl(ee){return"string"==typeof ee?ee:(0,ec.formatUrl)(ee)}let eb=ei.default.forwardRef(function(ee,en){let er,eo;let{href:eu,as:ec,children:ey,prefetch:eb=null,passHref:e_,replace:ew,shallow:ek,scroll:eC,locale:eT,onClick:eE,onMouseEnter:eO,onTouchStart:eS,legacyBehavior:ej=!1,...eI}=ee;er=ey,ej&&("string"==typeof er||"number"==typeof er)&&(er=ei.default.createElement("a",null,er));let eP=ei.default.useContext(ef.RouterContext),eN=ei.default.useContext(eh.AppRouterContext),eR=null!=eP?eP:eN,eZ=!eP,eM=!1!==eb,eA=null===eb?ev.PrefetchKind.AUTO:ev.PrefetchKind.FULL,{href:eL,as:eD}=ei.default.useMemo(()=>{if(!eP){let ee=formatStringOrUrl(eu);return{href:ee,as:ec?formatStringOrUrl(ec):ee}}let[ee,en]=(0,es.resolveHref)(eP,eu,!0);return{href:ee,as:ec?(0,es.resolveHref)(eP,ec):en||ee}},[eP,eu,ec]),eF=ei.default.useRef(eL),ez=ei.default.useRef(eD);ej&&(eo=ei.default.Children.only(er));let eV=ej?eo&&"object"==typeof eo&&eo.ref:en,[eU,eH,e$]=(0,em.useIntersection)({rootMargin:"200px"}),eB=ei.default.useCallback(ee=>{(ez.current!==eD||eF.current!==eL)&&(e$(),ez.current=eD,eF.current=eL),eU(ee),eV&&("function"==typeof eV?eV(ee):"object"==typeof eV&&(eV.current=ee))},[eD,eV,eL,e$,eU]);ei.default.useEffect(()=>{eR&&eH&&eM&&prefetch(eR,eL,eD,{locale:eT},{kind:eA},eZ)},[eD,eL,eH,eT,eM,null==eP?void 0:eP.locale,eR,eZ,eA]);let eW={ref:eB,onClick(ee){ej||"function"!=typeof eE||eE(ee),ej&&eo.props&&"function"==typeof eo.props.onClick&&eo.props.onClick(ee),eR&&!ee.defaultPrevented&&linkClicked(ee,eR,eL,eD,ew,ek,eC,eT,eZ,eM)},onMouseEnter(ee){ej||"function"!=typeof eO||eO(ee),ej&&eo.props&&"function"==typeof eo.props.onMouseEnter&&eo.props.onMouseEnter(ee),eR&&(eM||!eZ)&&prefetch(eR,eL,eD,{locale:eT,priority:!0,bypassPrefetchedCheck:!0},{kind:eA},eZ)},onTouchStart(ee){ej||"function"!=typeof eS||eS(ee),ej&&eo.props&&"function"==typeof eo.props.onTouchStart&&eo.props.onTouchStart(ee),eR&&(eM||!eZ)&&prefetch(eR,eL,eD,{locale:eT,priority:!0,bypassPrefetchedCheck:!0},{kind:eA},eZ)}};if((0,ed.isAbsoluteUrl)(eD))eW.href=eD;else if(!ej||e_||"a"===eo.type&&!("href"in eo.props)){let ee=void 0!==eT?eT:null==eP?void 0:eP.locale,en=(null==eP?void 0:eP.isLocaleDomain)&&(0,ex.getDomainLocale)(eD,ee,null==eP?void 0:eP.locales,null==eP?void 0:eP.domainLocales);eW.href=en||(0,eg.addBasePath)((0,ep.addLocale)(eD,ee,null==eP?void 0:eP.defaultLocale))}return ej?ei.default.cloneElement(eo,eW):ei.default.createElement("a",{...eI,...eW},er)}),e_=eb;("function"==typeof en.default||"object"==typeof en.default&&null!==en.default)&&void 0===en.default.__esModule&&(Object.defineProperty(en.default,"__esModule",{value:!0}),Object.assign(en.default,en),ee.exports=en.default)},9018:function(ee,en,er){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"useIntersection",{enumerable:!0,get:function(){return useIntersection}});let eo=er(2983),ei=er(1675),es="function"==typeof IntersectionObserver,eu=new Map,ec=[];function createObserver(ee){let en;let er={root:ee.root||null,margin:ee.rootMargin||""},eo=ec.find(ee=>ee.root===er.root&&ee.margin===er.margin);if(eo&&(en=eu.get(eo)))return en;let ei=new Map,es=new IntersectionObserver(ee=>{ee.forEach(ee=>{let en=ei.get(ee.target),er=ee.isIntersecting||ee.intersectionRatio>0;en&&er&&en(er)})},ee);return en={id:er,observer:es,elements:ei},ec.push(er),eu.set(er,en),en}function observe(ee,en,er){let{id:eo,observer:ei,elements:es}=createObserver(er);return es.set(ee,en),ei.observe(ee),function(){if(es.delete(ee),ei.unobserve(ee),0===es.size){ei.disconnect(),eu.delete(eo);let ee=ec.findIndex(ee=>ee.root===eo.root&&ee.margin===eo.margin);ee>-1&&ec.splice(ee,1)}}}function useIntersection(ee){let{rootRef:en,rootMargin:er,disabled:eu}=ee,ec=eu||!es,[ed,ep]=(0,eo.useState)(!1),ef=(0,eo.useRef)(null),eh=(0,eo.useCallback)(ee=>{ef.current=ee},[]);(0,eo.useEffect)(()=>{if(es){if(ec||ed)return;let ee=ef.current;if(ee&&ee.tagName){let eo=observe(ee,ee=>ee&&ep(ee),{root:null==en?void 0:en.current,rootMargin:er});return eo}}else if(!ed){let ee=(0,ei.requestIdleCallback)(()=>ep(!0));return()=>(0,ei.cancelIdleCallback)(ee)}},[ec,er,en,ed,ef.current]);let em=(0,eo.useCallback)(()=>{ep(!1)},[]);return[eh,ed,em]}("function"==typeof en.default||"object"==typeof en.default&&null!==en.default)&&void 0===en.default.__esModule&&(Object.defineProperty(en.default,"__esModule",{value:!0}),Object.assign(en.default,en),ee.exports=en.default)},5442:function(ee,en,er){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"getImgProps",{enumerable:!0,get:function(){return getImgProps}}),er(394);let eo=er(9543),ei=er(1061);function isStaticRequire(ee){return void 0!==ee.default}function isStaticImageData(ee){return void 0!==ee.src}function isStaticImport(ee){return"object"==typeof ee&&(isStaticRequire(ee)||isStaticImageData(ee))}function getInt(ee){return void 0===ee?ee:"number"==typeof ee?Number.isFinite(ee)?ee:NaN:"string"==typeof ee&&/^[0-9]+$/.test(ee)?parseInt(ee,10):NaN}function getWidths(ee,en,er){let{deviceSizes:eo,allSizes:ei}=ee;if(er){let ee=/(^|\s)(1?\d?\d)vw/g,en=[];for(let eo;eo=ee.exec(er);eo)en.push(parseInt(eo[2]));if(en.length){let ee=.01*Math.min(...en);return{widths:ei.filter(en=>en>=eo[0]*ee),kind:"w"}}return{widths:ei,kind:"w"}}if("number"!=typeof en)return{widths:eo,kind:"w"};let es=[...new Set([en,2*en].map(ee=>ei.find(en=>en>=ee)||ei[ei.length-1]))];return{widths:es,kind:"x"}}function generateImgAttrs(ee){let{config:en,src:er,unoptimized:eo,width:ei,quality:es,sizes:eu,loader:ec}=ee;if(eo)return{src:er,srcSet:void 0,sizes:void 0};let{widths:ed,kind:ep}=getWidths(en,ei,eu),ef=ed.length-1;return{sizes:eu||"w"!==ep?eu:"100vw",srcSet:ed.map((ee,eo)=>ec({config:en,src:er,quality:es,width:ee})+" "+("w"===ep?ee:eo+1)+ep).join(", "),src:ec({config:en,src:er,quality:es,width:ed[ef]})}}function getImgProps(ee,en){let er,es,eu,{src:ec,sizes:ed,unoptimized:ep=!1,priority:ef=!1,loading:eh,className:em,quality:ex,width:eg,height:ev,fill:ey=!1,style:eb,onLoad:e_,onLoadingComplete:ew,placeholder:ek="empty",blurDataURL:eC,fetchPriority:eT,layout:eE,objectFit:eO,objectPosition:eS,lazyBoundary:ej,lazyRoot:eI,...eP}=ee,{imgConf:eN,showAltText:eR,blurComplete:eZ,defaultLoader:eM}=en,eA=eN||ei.imageConfigDefault;if("allSizes"in eA)er=eA;else{let ee=[...eA.deviceSizes,...eA.imageSizes].sort((ee,en)=>ee-en),en=eA.deviceSizes.sort((ee,en)=>ee-en);er={...eA,allSizes:ee,deviceSizes:en}}let eL=eP.loader||eM;delete eP.loader,delete eP.srcSet;let eD="__next_img_default"in eL;if(eD){if("custom"===er.loader)throw Error('Image with src "'+ec+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let ee=eL;eL=en=>{let{config:er,...eo}=en;return ee(eo)}}if(eE){"fill"===eE&&(ey=!0);let ee={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},en={responsive:"100vw",fill:"100vw"},er=ee[eE];er&&(eb={...eb,...er});let eo=en[eE];eo&&!ed&&(ed=eo)}let eF="",ez=getInt(eg),eV=getInt(ev);if(isStaticImport(ec)){let ee=isStaticRequire(ec)?ec.default:ec;if(!ee.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(ee));if(!ee.height||!ee.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(ee));if(es=ee.blurWidth,eu=ee.blurHeight,eC=eC||ee.blurDataURL,eF=ee.src,!ey){if(ez||eV){if(ez&&!eV){let en=ez/ee.width;eV=Math.round(ee.height*en)}else if(!ez&&eV){let en=eV/ee.height;ez=Math.round(ee.width*en)}}else ez=ee.width,eV=ee.height}}let eU=!ef&&("lazy"===eh||void 0===eh);(!(ec="string"==typeof ec?ec:eF)||ec.startsWith("data:")||ec.startsWith("blob:"))&&(ep=!0,eU=!1),er.unoptimized&&(ep=!0),eD&&ec.endsWith(".svg")&&!er.dangerouslyAllowSVG&&(ep=!0),ef&&(eT="high");let eH=getInt(ex),e$=Object.assign(ey?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:eO,objectPosition:eS}:{},eR?{}:{color:"transparent"},eb),eB=eZ||"empty"===ek?null:"blur"===ek?'url("data:image/svg+xml;charset=utf-8,'+(0,eo.getImageBlurSvg)({widthInt:ez,heightInt:eV,blurWidth:es,blurHeight:eu,blurDataURL:eC||"",objectFit:e$.objectFit})+'")':'url("'+ek+'")',eW=eB?{backgroundSize:e$.objectFit||"cover",backgroundPosition:e$.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:eB}:{},eG=generateImgAttrs({config:er,src:ec,unoptimized:ep,width:ez,quality:eH,sizes:ed,loader:eL}),eK={...eP,loading:eU?"lazy":eh,fetchPriority:eT,width:ez,height:eV,decoding:"async",className:em,style:{...e$,...eW},sizes:eG.sizes,srcSet:eG.srcSet,src:eG.src},eY={unoptimized:ep,priority:ef,placeholder:ek,fill:ey};return{props:eK,meta:eY}}},9543:function(ee,en){"use strict";function getImageBlurSvg(ee){let{widthInt:en,heightInt:er,blurWidth:eo,blurHeight:ei,blurDataURL:es,objectFit:eu}=ee,ec=20,ed=eo?40*eo:en,ep=ei?40*ei:er,ef=ed&&ep?"viewBox='0 0 "+ed+" "+ep+"'":"",eh=ef?"none":"contain"===eu?"xMidYMid":"cover"===eu?"xMidYMid slice":"none";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+ef+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+ec+"'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='"+ec+"'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+eh+"' style='filter: url(%23b);' href='"+es+"'/%3E%3C/svg%3E"}Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"getImageBlurSvg",{enumerable:!0,get:function(){return getImageBlurSvg}})},3986:function(ee,en,er){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),function(ee,en){for(var er in en)Object.defineProperty(ee,er,{enumerable:!0,get:en[er]})}(en,{unstable_getImgProps:function(){return unstable_getImgProps},default:function(){return ed}});let eo=er(3166),ei=er(5442),es=er(394),eu=er(2016),ec=eo._(er(434)),unstable_getImgProps=ee=>{(0,es.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:en}=(0,ei.getImgProps)(ee,{defaultLoader:ec.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[ee,er]of Object.entries(en))void 0===er&&delete en[ee];return{props:en}},ed=eu.Image},434:function(ee,en){"use strict";function defaultLoader(ee){let{config:en,src:er,width:eo,quality:ei}=ee;return en.path+"?url="+encodeURIComponent(er)+"&w="+eo+"&q="+(ei||75)}Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"default",{enumerable:!0,get:function(){return er}}),defaultLoader.__next_img_default=!0;let er=defaultLoader},1919:function(){},5349:function(ee){var en="/";!function(){"use strict";var er={114:function(ee){function assertPath(ee){if("string"!=typeof ee)throw TypeError("Path must be a string. Received "+JSON.stringify(ee))}function normalizeStringPosix(ee,en){for(var er,eo="",ei=0,es=-1,eu=0,ec=0;ec<=ee.length;++ec){if(ec<ee.length)er=ee.charCodeAt(ec);else if(47===er)break;else er=47;if(47===er){if(es===ec-1||1===eu);else if(es!==ec-1&&2===eu){if(eo.length<2||2!==ei||46!==eo.charCodeAt(eo.length-1)||46!==eo.charCodeAt(eo.length-2)){if(eo.length>2){var ed=eo.lastIndexOf("/");if(ed!==eo.length-1){-1===ed?(eo="",ei=0):ei=(eo=eo.slice(0,ed)).length-1-eo.lastIndexOf("/"),es=ec,eu=0;continue}}else if(2===eo.length||1===eo.length){eo="",ei=0,es=ec,eu=0;continue}}en&&(eo.length>0?eo+="/..":eo="..",ei=2)}else eo.length>0?eo+="/"+ee.slice(es+1,ec):eo=ee.slice(es+1,ec),ei=ec-es-1;es=ec,eu=0}else 46===er&&-1!==eu?++eu:eu=-1}return eo}function _format(ee,en){var er=en.dir||en.root,eo=en.base||(en.name||"")+(en.ext||"");return er?er===en.root?er+eo:er+ee+eo:eo}var en={resolve:function(){for(var ee,en,er="",eo=!1,ei=arguments.length-1;ei>=-1&&!eo;ei--)ei>=0?en=arguments[ei]:(void 0===ee&&(ee=""),en=ee),assertPath(en),0!==en.length&&(er=en+"/"+er,eo=47===en.charCodeAt(0));return(er=normalizeStringPosix(er,!eo),eo)?er.length>0?"/"+er:"/":er.length>0?er:"."},normalize:function(ee){if(assertPath(ee),0===ee.length)return".";var en=47===ee.charCodeAt(0),er=47===ee.charCodeAt(ee.length-1);return(0!==(ee=normalizeStringPosix(ee,!en)).length||en||(ee="."),ee.length>0&&er&&(ee+="/"),en)?"/"+ee:ee},isAbsolute:function(ee){return assertPath(ee),ee.length>0&&47===ee.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var ee,er=0;er<arguments.length;++er){var eo=arguments[er];assertPath(eo),eo.length>0&&(void 0===ee?ee=eo:ee+="/"+eo)}return void 0===ee?".":en.normalize(ee)},relative:function(ee,er){if(assertPath(ee),assertPath(er),ee===er||(ee=en.resolve(ee))===(er=en.resolve(er)))return"";for(var eo=1;eo<ee.length&&47===ee.charCodeAt(eo);++eo);for(var ei=ee.length,es=ei-eo,eu=1;eu<er.length&&47===er.charCodeAt(eu);++eu);for(var ec=er.length-eu,ed=es<ec?es:ec,ep=-1,ef=0;ef<=ed;++ef){if(ef===ed){if(ec>ed){if(47===er.charCodeAt(eu+ef))return er.slice(eu+ef+1);if(0===ef)return er.slice(eu+ef)}else es>ed&&(47===ee.charCodeAt(eo+ef)?ep=ef:0===ef&&(ep=0));break}var eh=ee.charCodeAt(eo+ef);if(eh!==er.charCodeAt(eu+ef))break;47===eh&&(ep=ef)}var em="";for(ef=eo+ep+1;ef<=ei;++ef)(ef===ei||47===ee.charCodeAt(ef))&&(0===em.length?em+="..":em+="/..");return em.length>0?em+er.slice(eu+ep):(eu+=ep,47===er.charCodeAt(eu)&&++eu,er.slice(eu))},_makeLong:function(ee){return ee},dirname:function(ee){if(assertPath(ee),0===ee.length)return".";for(var en=ee.charCodeAt(0),er=47===en,eo=-1,ei=!0,es=ee.length-1;es>=1;--es)if(47===(en=ee.charCodeAt(es))){if(!ei){eo=es;break}}else ei=!1;return -1===eo?er?"/":".":er&&1===eo?"//":ee.slice(0,eo)},basename:function(ee,en){if(void 0!==en&&"string"!=typeof en)throw TypeError('"ext" argument must be a string');assertPath(ee);var er,eo=0,ei=-1,es=!0;if(void 0!==en&&en.length>0&&en.length<=ee.length){if(en.length===ee.length&&en===ee)return"";var eu=en.length-1,ec=-1;for(er=ee.length-1;er>=0;--er){var ed=ee.charCodeAt(er);if(47===ed){if(!es){eo=er+1;break}}else -1===ec&&(es=!1,ec=er+1),eu>=0&&(ed===en.charCodeAt(eu)?-1==--eu&&(ei=er):(eu=-1,ei=ec))}return eo===ei?ei=ec:-1===ei&&(ei=ee.length),ee.slice(eo,ei)}for(er=ee.length-1;er>=0;--er)if(47===ee.charCodeAt(er)){if(!es){eo=er+1;break}}else -1===ei&&(es=!1,ei=er+1);return -1===ei?"":ee.slice(eo,ei)},extname:function(ee){assertPath(ee);for(var en=-1,er=0,eo=-1,ei=!0,es=0,eu=ee.length-1;eu>=0;--eu){var ec=ee.charCodeAt(eu);if(47===ec){if(!ei){er=eu+1;break}continue}-1===eo&&(ei=!1,eo=eu+1),46===ec?-1===en?en=eu:1!==es&&(es=1):-1!==en&&(es=-1)}return -1===en||-1===eo||0===es||1===es&&en===eo-1&&en===er+1?"":ee.slice(en,eo)},format:function(ee){if(null===ee||"object"!=typeof ee)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof ee);return _format("/",ee)},parse:function(ee){assertPath(ee);var en,er={root:"",dir:"",base:"",ext:"",name:""};if(0===ee.length)return er;var eo=ee.charCodeAt(0),ei=47===eo;ei?(er.root="/",en=1):en=0;for(var es=-1,eu=0,ec=-1,ed=!0,ep=ee.length-1,ef=0;ep>=en;--ep){if(47===(eo=ee.charCodeAt(ep))){if(!ed){eu=ep+1;break}continue}-1===ec&&(ed=!1,ec=ep+1),46===eo?-1===es?es=ep:1!==ef&&(ef=1):-1!==es&&(ef=-1)}return -1===es||-1===ec||0===ef||1===ef&&es===ec-1&&es===eu+1?-1!==ec&&(0===eu&&ei?er.base=er.name=ee.slice(1,ec):er.base=er.name=ee.slice(eu,ec)):(0===eu&&ei?(er.name=ee.slice(1,es),er.base=ee.slice(1,ec)):(er.name=ee.slice(eu,es),er.base=ee.slice(eu,ec)),er.ext=ee.slice(es,ec)),eu>0?er.dir=ee.slice(0,eu-1):ei&&(er.dir="/"),er},sep:"/",delimiter:":",win32:null,posix:null};en.posix=en,ee.exports=en}},eo={};function __nccwpck_require__(ee){var en=eo[ee];if(void 0!==en)return en.exports;var ei=eo[ee]={exports:{}},es=!0;try{er[ee](ei,ei.exports,__nccwpck_require__),es=!1}finally{es&&delete eo[ee]}return ei.exports}__nccwpck_require__.ab=en+"/";var ei=__nccwpck_require__(114);ee.exports=ei}()},1482:function(ee){var en="/";!function(){var er={229:function(ee){var en,er,eo,ei=ee.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(ee){if(en===setTimeout)return setTimeout(ee,0);if((en===defaultSetTimout||!en)&&setTimeout)return en=setTimeout,setTimeout(ee,0);try{return en(ee,0)}catch(er){try{return en.call(null,ee,0)}catch(er){return en.call(this,ee,0)}}}function runClearTimeout(ee){if(er===clearTimeout)return clearTimeout(ee);if((er===defaultClearTimeout||!er)&&clearTimeout)return er=clearTimeout,clearTimeout(ee);try{return er(ee)}catch(en){try{return er.call(null,ee)}catch(en){return er.call(this,ee)}}}!function(){try{en="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(ee){en=defaultSetTimout}try{er="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(ee){er=defaultClearTimeout}}();var es=[],eu=!1,ec=-1;function cleanUpNextTick(){eu&&eo&&(eu=!1,eo.length?es=eo.concat(es):ec=-1,es.length&&drainQueue())}function drainQueue(){if(!eu){var ee=runTimeout(cleanUpNextTick);eu=!0;for(var en=es.length;en;){for(eo=es,es=[];++ec<en;)eo&&eo[ec].run();ec=-1,en=es.length}eo=null,eu=!1,runClearTimeout(ee)}}function Item(ee,en){this.fun=ee,this.array=en}function noop(){}ei.nextTick=function(ee){var en=Array(arguments.length-1);if(arguments.length>1)for(var er=1;er<arguments.length;er++)en[er-1]=arguments[er];es.push(new Item(ee,en)),1!==es.length||eu||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},ei.title="browser",ei.browser=!0,ei.env={},ei.argv=[],ei.version="",ei.versions={},ei.on=noop,ei.addListener=noop,ei.once=noop,ei.off=noop,ei.removeListener=noop,ei.removeAllListeners=noop,ei.emit=noop,ei.prependListener=noop,ei.prependOnceListener=noop,ei.listeners=function(ee){return[]},ei.binding=function(ee){throw Error("process.binding is not supported")},ei.cwd=function(){return"/"},ei.chdir=function(ee){throw Error("process.chdir is not supported")},ei.umask=function(){return 0}}},eo={};function __nccwpck_require__(ee){var en=eo[ee];if(void 0!==en)return en.exports;var ei=eo[ee]={exports:{}},es=!0;try{er[ee](ei,ei.exports,__nccwpck_require__),es=!1}finally{es&&delete eo[ee]}return ei.exports}__nccwpck_require__.ab=en+"/";var ei=__nccwpck_require__(229);ee.exports=ei}()},5945:function(ee,en,er){ee.exports=er(2505)},9945:function(ee,en,er){ee.exports=er(3986)},4202:function(ee,en,er){ee.exports=er(4195)},8540:function(ee,en,er){ee.exports=er(8889)},1944:function(ee,en,er){"use strict";let eo;er.d(en,{ZP:function(){return Layout}});var ei,es,eu,ec,ed,ep,ef,eh,em,ex,eg,ev,ey,eb,e_,ew=er(8540),ek=er(2983);er(3611);var eC=er(8364);function useMounted(){let[ee,en]=(0,ek.useState)(!1);return(0,ek.useEffect)(()=>{en(!0)},[]),ee}var eT=er(4664),eE="https://nextra.vercel.app",useFSRoute=()=>{let{locale:ee=eT.ZW,asPath:en,route:er}=(0,ew.useRouter)();return(0,ek.useMemo)(()=>{let eo=eT.hV.has(er)?er:en,{pathname:ei}=new URL(eo,eE),es=ee?ei.replace(RegExp(`\\.${ee}(\\/|$)`),"$1"):ei;return es.replace(/\.html$/,"").replace(/\/index(\/|$)/,"$1").replace(/\/$/,"")||"/"},[en,ee,er])},eO=er(2029),eS=er(9013);!function(ee){function assertIs(ee){}function assertNever(ee){throw Error()}function joinValues(ee,en=" | "){return ee.map(ee=>"string"==typeof ee?`'${ee}'`:ee).join(en)}ee.assertEqual=ee=>ee,ee.assertIs=assertIs,ee.assertNever=assertNever,ee.arrayToEnum=ee=>{let en={};for(let er of ee)en[er]=er;return en},ee.getValidEnumValues=en=>{let er=ee.objectKeys(en).filter(ee=>"number"!=typeof en[en[ee]]),eo={};for(let ee of er)eo[ee]=en[ee];return ee.objectValues(eo)},ee.objectValues=en=>ee.objectKeys(en).map(function(ee){return en[ee]}),ee.objectKeys="function"==typeof Object.keys?ee=>Object.keys(ee):ee=>{let en=[];for(let er in ee)Object.prototype.hasOwnProperty.call(ee,er)&&en.push(er);return en},ee.find=(ee,en)=>{for(let er of ee)if(en(er))return er},ee.isInteger="function"==typeof Number.isInteger?ee=>Number.isInteger(ee):ee=>"number"==typeof ee&&isFinite(ee)&&Math.floor(ee)===ee,ee.joinValues=joinValues,ee.jsonStringifyReplacer=(ee,en)=>"bigint"==typeof en?en.toString():en}(eg||(eg={})),function(ee){ee.mergeShapes=(ee,en)=>({...ee,...en})}(ev||(ev={}));let ej=eg.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),getParsedType=ee=>{let en=typeof ee;switch(en){case"undefined":return ej.undefined;case"string":return ej.string;case"number":return isNaN(ee)?ej.nan:ej.number;case"boolean":return ej.boolean;case"function":return ej.function;case"bigint":return ej.bigint;case"symbol":return ej.symbol;case"object":if(Array.isArray(ee))return ej.array;if(null===ee)return ej.null;if(ee.then&&"function"==typeof ee.then&&ee.catch&&"function"==typeof ee.catch)return ej.promise;if("undefined"!=typeof Map&&ee instanceof Map)return ej.map;if("undefined"!=typeof Set&&ee instanceof Set)return ej.set;if("undefined"!=typeof Date&&ee instanceof Date)return ej.date;return ej.object;default:return ej.unknown}},eI=eg.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),quotelessJson=ee=>{let en=JSON.stringify(ee,null,2);return en.replace(/"([^"]+)":/g,"$1:")};let ZodError=class ZodError extends Error{constructor(ee){super(),this.issues=[],this.addIssue=ee=>{this.issues=[...this.issues,ee]},this.addIssues=(ee=[])=>{this.issues=[...this.issues,...ee]};let en=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,en):this.__proto__=en,this.name="ZodError",this.issues=ee}get errors(){return this.issues}format(ee){let en=ee||function(ee){return ee.message},er={_errors:[]},processError=ee=>{for(let eo of ee.issues)if("invalid_union"===eo.code)eo.unionErrors.map(processError);else if("invalid_return_type"===eo.code)processError(eo.returnTypeError);else if("invalid_arguments"===eo.code)processError(eo.argumentsError);else if(0===eo.path.length)er._errors.push(en(eo));else{let ee=er,ei=0;for(;ei<eo.path.length;){let er=eo.path[ei],es=ei===eo.path.length-1;es?(ee[er]=ee[er]||{_errors:[]},ee[er]._errors.push(en(eo))):ee[er]=ee[er]||{_errors:[]},ee=ee[er],ei++}}};return processError(this),er}toString(){return this.message}get message(){return JSON.stringify(this.issues,eg.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(ee=ee=>ee.message){let en={},er=[];for(let eo of this.issues)eo.path.length>0?(en[eo.path[0]]=en[eo.path[0]]||[],en[eo.path[0]].push(ee(eo))):er.push(ee(eo));return{formErrors:er,fieldErrors:en}}get formErrors(){return this.flatten()}};ZodError.create=ee=>{let en=new ZodError(ee);return en};let errorMap=(ee,en)=>{let er;switch(ee.code){case eI.invalid_type:er=ee.received===ej.undefined?"Required":`Expected ${ee.expected}, received ${ee.received}`;break;case eI.invalid_literal:er=`Invalid literal value, expected ${JSON.stringify(ee.expected,eg.jsonStringifyReplacer)}`;break;case eI.unrecognized_keys:er=`Unrecognized key(s) in object: ${eg.joinValues(ee.keys,", ")}`;break;case eI.invalid_union:er="Invalid input";break;case eI.invalid_union_discriminator:er=`Invalid discriminator value. Expected ${eg.joinValues(ee.options)}`;break;case eI.invalid_enum_value:er=`Invalid enum value. Expected ${eg.joinValues(ee.options)}, received '${ee.received}'`;break;case eI.invalid_arguments:er="Invalid function arguments";break;case eI.invalid_return_type:er="Invalid function return type";break;case eI.invalid_date:er="Invalid date";break;case eI.invalid_string:"object"==typeof ee.validation?"includes"in ee.validation?(er=`Invalid input: must include "${ee.validation.includes}"`,"number"==typeof ee.validation.position&&(er=`${er} at one or more positions greater than or equal to ${ee.validation.position}`)):"startsWith"in ee.validation?er=`Invalid input: must start with "${ee.validation.startsWith}"`:"endsWith"in ee.validation?er=`Invalid input: must end with "${ee.validation.endsWith}"`:eg.assertNever(ee.validation):er="regex"!==ee.validation?`Invalid ${ee.validation}`:"Invalid";break;case eI.too_small:er="array"===ee.type?`Array must contain ${ee.exact?"exactly":ee.inclusive?"at least":"more than"} ${ee.minimum} element(s)`:"string"===ee.type?`String must contain ${ee.exact?"exactly":ee.inclusive?"at least":"over"} ${ee.minimum} character(s)`:"number"===ee.type?`Number must be ${ee.exact?"exactly equal to ":ee.inclusive?"greater than or equal to ":"greater than "}${ee.minimum}`:"date"===ee.type?`Date must be ${ee.exact?"exactly equal to ":ee.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(ee.minimum))}`:"Invalid input";break;case eI.too_big:er="array"===ee.type?`Array must contain ${ee.exact?"exactly":ee.inclusive?"at most":"less than"} ${ee.maximum} element(s)`:"string"===ee.type?`String must contain ${ee.exact?"exactly":ee.inclusive?"at most":"under"} ${ee.maximum} character(s)`:"number"===ee.type?`Number must be ${ee.exact?"exactly":ee.inclusive?"less than or equal to":"less than"} ${ee.maximum}`:"bigint"===ee.type?`BigInt must be ${ee.exact?"exactly":ee.inclusive?"less than or equal to":"less than"} ${ee.maximum}`:"date"===ee.type?`Date must be ${ee.exact?"exactly":ee.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(ee.maximum))}`:"Invalid input";break;case eI.custom:er="Invalid input";break;case eI.invalid_intersection_types:er="Intersection results could not be merged";break;case eI.not_multiple_of:er=`Number must be a multiple of ${ee.multipleOf}`;break;case eI.not_finite:er="Number must be finite";break;default:er=en.defaultError,eg.assertNever(ee)}return{message:er}},eP=errorMap;function setErrorMap(ee){eP=ee}function getErrorMap(){return eP}let makeIssue=ee=>{let{data:en,path:er,errorMaps:eo,issueData:ei}=ee,es=[...er,...ei.path||[]],eu={...ei,path:es},ec="",ed=eo.filter(ee=>!!ee).slice().reverse();for(let ee of ed)ec=ee(eu,{data:en,defaultError:ec}).message;return{...ei,path:es,message:ei.message||ec}},eN=[];function addIssueToContext(ee,en){let er=makeIssue({issueData:en,data:ee.data,path:ee.path,errorMaps:[ee.common.contextualErrorMap,ee.schemaErrorMap,getErrorMap(),errorMap].filter(ee=>!!ee)});ee.common.issues.push(er)}let ParseStatus=class ParseStatus{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(ee,en){let er=[];for(let eo of en){if("aborted"===eo.status)return eR;"dirty"===eo.status&&ee.dirty(),er.push(eo.value)}return{status:ee.value,value:er}}static async mergeObjectAsync(ee,en){let er=[];for(let ee of en)er.push({key:await ee.key,value:await ee.value});return ParseStatus.mergeObjectSync(ee,er)}static mergeObjectSync(ee,en){let er={};for(let eo of en){let{key:en,value:ei}=eo;if("aborted"===en.status||"aborted"===ei.status)return eR;"dirty"===en.status&&ee.dirty(),"dirty"===ei.status&&ee.dirty(),"__proto__"!==en.value&&(void 0!==ei.value||eo.alwaysSet)&&(er[en.value]=ei.value)}return{status:ee.value,value:er}}};let eR=Object.freeze({status:"aborted"}),DIRTY=ee=>({status:"dirty",value:ee}),OK=ee=>({status:"valid",value:ee}),isAborted=ee=>"aborted"===ee.status,isDirty=ee=>"dirty"===ee.status,isValid=ee=>"valid"===ee.status,isAsync=ee=>"undefined"!=typeof Promise&&ee instanceof Promise;!function(ee){ee.errToObj=ee=>"string"==typeof ee?{message:ee}:ee||{},ee.toString=ee=>"string"==typeof ee?ee:null==ee?void 0:ee.message}(ey||(ey={}));let ParseInputLazyPath=class ParseInputLazyPath{constructor(ee,en,er,eo){this._cachedPath=[],this.parent=ee,this.data=en,this._path=er,this._key=eo}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}};let handleResult=(ee,en)=>{if(isValid(en))return{success:!0,data:en.value};if(!ee.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let en=new ZodError(ee.common.issues);return this._error=en,this._error}}};function processCreateParams(ee){if(!ee)return{};let{errorMap:en,invalid_type_error:er,required_error:eo,description:ei}=ee;if(en&&(er||eo))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(en)return{errorMap:en,description:ei};let customMap=(ee,en)=>"invalid_type"!==ee.code?{message:en.defaultError}:void 0===en.data?{message:null!=eo?eo:en.defaultError}:{message:null!=er?er:en.defaultError};return{errorMap:customMap,description:ei}}let ZodType=class ZodType{constructor(ee){this.spa=this.safeParseAsync,this._def=ee,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(ee){return getParsedType(ee.data)}_getOrReturnCtx(ee,en){return en||{common:ee.parent.common,data:ee.data,parsedType:getParsedType(ee.data),schemaErrorMap:this._def.errorMap,path:ee.path,parent:ee.parent}}_processInputParams(ee){return{status:new ParseStatus,ctx:{common:ee.parent.common,data:ee.data,parsedType:getParsedType(ee.data),schemaErrorMap:this._def.errorMap,path:ee.path,parent:ee.parent}}}_parseSync(ee){let en=this._parse(ee);if(isAsync(en))throw Error("Synchronous parse encountered promise.");return en}_parseAsync(ee){let en=this._parse(ee);return Promise.resolve(en)}parse(ee,en){let er=this.safeParse(ee,en);if(er.success)return er.data;throw er.error}safeParse(ee,en){var er;let eo={common:{issues:[],async:null!==(er=null==en?void 0:en.async)&&void 0!==er&&er,contextualErrorMap:null==en?void 0:en.errorMap},path:(null==en?void 0:en.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:ee,parsedType:getParsedType(ee)},ei=this._parseSync({data:ee,path:eo.path,parent:eo});return handleResult(eo,ei)}async parseAsync(ee,en){let er=await this.safeParseAsync(ee,en);if(er.success)return er.data;throw er.error}async safeParseAsync(ee,en){let er={common:{issues:[],contextualErrorMap:null==en?void 0:en.errorMap,async:!0},path:(null==en?void 0:en.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:ee,parsedType:getParsedType(ee)},eo=this._parse({data:ee,path:er.path,parent:er}),ei=await (isAsync(eo)?eo:Promise.resolve(eo));return handleResult(er,ei)}refine(ee,en){let getIssueProperties=ee=>"string"==typeof en||void 0===en?{message:en}:"function"==typeof en?en(ee):en;return this._refinement((en,er)=>{let eo=ee(en),setError=()=>er.addIssue({code:eI.custom,...getIssueProperties(en)});return"undefined"!=typeof Promise&&eo instanceof Promise?eo.then(ee=>!!ee||(setError(),!1)):!!eo||(setError(),!1)})}refinement(ee,en){return this._refinement((er,eo)=>!!ee(er)||(eo.addIssue("function"==typeof en?en(er,eo):en),!1))}_refinement(ee){return new ZodEffects({schema:this,typeName:eb.ZodEffects,effect:{type:"refinement",refinement:ee}})}superRefine(ee){return this._refinement(ee)}optional(){return ZodOptional.create(this,this._def)}nullable(){return ZodNullable.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ZodArray.create(this,this._def)}promise(){return ZodPromise.create(this,this._def)}or(ee){return ZodUnion.create([this,ee],this._def)}and(ee){return ZodIntersection.create(this,ee,this._def)}transform(ee){return new ZodEffects({...processCreateParams(this._def),schema:this,typeName:eb.ZodEffects,effect:{type:"transform",transform:ee}})}default(ee){let en="function"==typeof ee?ee:()=>ee;return new ZodDefault({...processCreateParams(this._def),innerType:this,defaultValue:en,typeName:eb.ZodDefault})}brand(){return new ZodBranded({typeName:eb.ZodBranded,type:this,...processCreateParams(this._def)})}catch(ee){let en="function"==typeof ee?ee:()=>ee;return new ZodCatch({...processCreateParams(this._def),innerType:this,catchValue:en,typeName:eb.ZodCatch})}describe(ee){let en=this.constructor;return new en({...this._def,description:ee})}pipe(ee){return ZodPipeline.create(this,ee)}readonly(){return ZodReadonly.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};let eZ=/^c[^\s-]{8,}$/i,eM=/^[a-z][a-z0-9]*$/,eA=/^[0-9A-HJKMNP-TV-Z]{26}$/,eL=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,eD=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,eF="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",ez=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,eV=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,datetimeRegex=ee=>ee.precision?ee.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${ee.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${ee.precision}}Z$`):0===ee.precision?ee.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):ee.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function isValidIP(ee,en){return!!(("v4"===en||!en)&&ez.test(ee)||("v6"===en||!en)&&eV.test(ee))}let ZodString=class ZodString extends ZodType{_parse(ee){let en;this._def.coerce&&(ee.data=String(ee.data));let er=this._getType(ee);if(er!==ej.string){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eI.invalid_type,expected:ej.string,received:en.parsedType}),eR}let ei=new ParseStatus;for(let er of this._def.checks)if("min"===er.kind)ee.data.length<er.value&&(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eI.too_small,minimum:er.value,type:"string",inclusive:!0,exact:!1,message:er.message}),ei.dirty());else if("max"===er.kind)ee.data.length>er.value&&(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eI.too_big,maximum:er.value,type:"string",inclusive:!0,exact:!1,message:er.message}),ei.dirty());else if("length"===er.kind){let eo=ee.data.length>er.value,es=ee.data.length<er.value;(eo||es)&&(en=this._getOrReturnCtx(ee,en),eo?addIssueToContext(en,{code:eI.too_big,maximum:er.value,type:"string",inclusive:!0,exact:!0,message:er.message}):es&&addIssueToContext(en,{code:eI.too_small,minimum:er.value,type:"string",inclusive:!0,exact:!0,message:er.message}),ei.dirty())}else if("email"===er.kind)eD.test(ee.data)||(addIssueToContext(en=this._getOrReturnCtx(ee,en),{validation:"email",code:eI.invalid_string,message:er.message}),ei.dirty());else if("emoji"===er.kind)eo||(eo=RegExp(eF,"u")),eo.test(ee.data)||(addIssueToContext(en=this._getOrReturnCtx(ee,en),{validation:"emoji",code:eI.invalid_string,message:er.message}),ei.dirty());else if("uuid"===er.kind)eL.test(ee.data)||(addIssueToContext(en=this._getOrReturnCtx(ee,en),{validation:"uuid",code:eI.invalid_string,message:er.message}),ei.dirty());else if("cuid"===er.kind)eZ.test(ee.data)||(addIssueToContext(en=this._getOrReturnCtx(ee,en),{validation:"cuid",code:eI.invalid_string,message:er.message}),ei.dirty());else if("cuid2"===er.kind)eM.test(ee.data)||(addIssueToContext(en=this._getOrReturnCtx(ee,en),{validation:"cuid2",code:eI.invalid_string,message:er.message}),ei.dirty());else if("ulid"===er.kind)eA.test(ee.data)||(addIssueToContext(en=this._getOrReturnCtx(ee,en),{validation:"ulid",code:eI.invalid_string,message:er.message}),ei.dirty());else if("url"===er.kind)try{new URL(ee.data)}catch(eo){addIssueToContext(en=this._getOrReturnCtx(ee,en),{validation:"url",code:eI.invalid_string,message:er.message}),ei.dirty()}else if("regex"===er.kind){er.regex.lastIndex=0;let eo=er.regex.test(ee.data);eo||(addIssueToContext(en=this._getOrReturnCtx(ee,en),{validation:"regex",code:eI.invalid_string,message:er.message}),ei.dirty())}else if("trim"===er.kind)ee.data=ee.data.trim();else if("includes"===er.kind)ee.data.includes(er.value,er.position)||(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eI.invalid_string,validation:{includes:er.value,position:er.position},message:er.message}),ei.dirty());else if("toLowerCase"===er.kind)ee.data=ee.data.toLowerCase();else if("toUpperCase"===er.kind)ee.data=ee.data.toUpperCase();else if("startsWith"===er.kind)ee.data.startsWith(er.value)||(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eI.invalid_string,validation:{startsWith:er.value},message:er.message}),ei.dirty());else if("endsWith"===er.kind)ee.data.endsWith(er.value)||(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eI.invalid_string,validation:{endsWith:er.value},message:er.message}),ei.dirty());else if("datetime"===er.kind){let eo=datetimeRegex(er);eo.test(ee.data)||(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eI.invalid_string,validation:"datetime",message:er.message}),ei.dirty())}else"ip"===er.kind?isValidIP(ee.data,er.version)||(addIssueToContext(en=this._getOrReturnCtx(ee,en),{validation:"ip",code:eI.invalid_string,message:er.message}),ei.dirty()):eg.assertNever(er);return{status:ei.value,value:ee.data}}_regex(ee,en,er){return this.refinement(en=>ee.test(en),{validation:en,code:eI.invalid_string,...ey.errToObj(er)})}_addCheck(ee){return new ZodString({...this._def,checks:[...this._def.checks,ee]})}email(ee){return this._addCheck({kind:"email",...ey.errToObj(ee)})}url(ee){return this._addCheck({kind:"url",...ey.errToObj(ee)})}emoji(ee){return this._addCheck({kind:"emoji",...ey.errToObj(ee)})}uuid(ee){return this._addCheck({kind:"uuid",...ey.errToObj(ee)})}cuid(ee){return this._addCheck({kind:"cuid",...ey.errToObj(ee)})}cuid2(ee){return this._addCheck({kind:"cuid2",...ey.errToObj(ee)})}ulid(ee){return this._addCheck({kind:"ulid",...ey.errToObj(ee)})}ip(ee){return this._addCheck({kind:"ip",...ey.errToObj(ee)})}datetime(ee){var en;return"string"==typeof ee?this._addCheck({kind:"datetime",precision:null,offset:!1,message:ee}):this._addCheck({kind:"datetime",precision:void 0===(null==ee?void 0:ee.precision)?null:null==ee?void 0:ee.precision,offset:null!==(en=null==ee?void 0:ee.offset)&&void 0!==en&&en,...ey.errToObj(null==ee?void 0:ee.message)})}regex(ee,en){return this._addCheck({kind:"regex",regex:ee,...ey.errToObj(en)})}includes(ee,en){return this._addCheck({kind:"includes",value:ee,position:null==en?void 0:en.position,...ey.errToObj(null==en?void 0:en.message)})}startsWith(ee,en){return this._addCheck({kind:"startsWith",value:ee,...ey.errToObj(en)})}endsWith(ee,en){return this._addCheck({kind:"endsWith",value:ee,...ey.errToObj(en)})}min(ee,en){return this._addCheck({kind:"min",value:ee,...ey.errToObj(en)})}max(ee,en){return this._addCheck({kind:"max",value:ee,...ey.errToObj(en)})}length(ee,en){return this._addCheck({kind:"length",value:ee,...ey.errToObj(en)})}nonempty(ee){return this.min(1,ey.errToObj(ee))}trim(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(ee=>"datetime"===ee.kind)}get isEmail(){return!!this._def.checks.find(ee=>"email"===ee.kind)}get isURL(){return!!this._def.checks.find(ee=>"url"===ee.kind)}get isEmoji(){return!!this._def.checks.find(ee=>"emoji"===ee.kind)}get isUUID(){return!!this._def.checks.find(ee=>"uuid"===ee.kind)}get isCUID(){return!!this._def.checks.find(ee=>"cuid"===ee.kind)}get isCUID2(){return!!this._def.checks.find(ee=>"cuid2"===ee.kind)}get isULID(){return!!this._def.checks.find(ee=>"ulid"===ee.kind)}get isIP(){return!!this._def.checks.find(ee=>"ip"===ee.kind)}get minLength(){let ee=null;for(let en of this._def.checks)"min"===en.kind&&(null===ee||en.value>ee)&&(ee=en.value);return ee}get maxLength(){let ee=null;for(let en of this._def.checks)"max"===en.kind&&(null===ee||en.value<ee)&&(ee=en.value);return ee}};function floatSafeRemainder(ee,en){let er=(ee.toString().split(".")[1]||"").length,eo=(en.toString().split(".")[1]||"").length,ei=er>eo?er:eo,es=parseInt(ee.toFixed(ei).replace(".","")),eu=parseInt(en.toFixed(ei).replace(".",""));return es%eu/Math.pow(10,ei)}ZodString.create=ee=>{var en;return new ZodString({checks:[],typeName:eb.ZodString,coerce:null!==(en=null==ee?void 0:ee.coerce)&&void 0!==en&&en,...processCreateParams(ee)})};let ZodNumber=class ZodNumber extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(ee){let en;this._def.coerce&&(ee.data=Number(ee.data));let er=this._getType(ee);if(er!==ej.number){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eI.invalid_type,expected:ej.number,received:en.parsedType}),eR}let eo=new ParseStatus;for(let er of this._def.checks)if("int"===er.kind)eg.isInteger(ee.data)||(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eI.invalid_type,expected:"integer",received:"float",message:er.message}),eo.dirty());else if("min"===er.kind){let ei=er.inclusive?ee.data<er.value:ee.data<=er.value;ei&&(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eI.too_small,minimum:er.value,type:"number",inclusive:er.inclusive,exact:!1,message:er.message}),eo.dirty())}else if("max"===er.kind){let ei=er.inclusive?ee.data>er.value:ee.data>=er.value;ei&&(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eI.too_big,maximum:er.value,type:"number",inclusive:er.inclusive,exact:!1,message:er.message}),eo.dirty())}else"multipleOf"===er.kind?0!==floatSafeRemainder(ee.data,er.value)&&(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eI.not_multiple_of,multipleOf:er.value,message:er.message}),eo.dirty()):"finite"===er.kind?Number.isFinite(ee.data)||(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eI.not_finite,message:er.message}),eo.dirty()):eg.assertNever(er);return{status:eo.value,value:ee.data}}gte(ee,en){return this.setLimit("min",ee,!0,ey.toString(en))}gt(ee,en){return this.setLimit("min",ee,!1,ey.toString(en))}lte(ee,en){return this.setLimit("max",ee,!0,ey.toString(en))}lt(ee,en){return this.setLimit("max",ee,!1,ey.toString(en))}setLimit(ee,en,er,eo){return new ZodNumber({...this._def,checks:[...this._def.checks,{kind:ee,value:en,inclusive:er,message:ey.toString(eo)}]})}_addCheck(ee){return new ZodNumber({...this._def,checks:[...this._def.checks,ee]})}int(ee){return this._addCheck({kind:"int",message:ey.toString(ee)})}positive(ee){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ey.toString(ee)})}negative(ee){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ey.toString(ee)})}nonpositive(ee){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ey.toString(ee)})}nonnegative(ee){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ey.toString(ee)})}multipleOf(ee,en){return this._addCheck({kind:"multipleOf",value:ee,message:ey.toString(en)})}finite(ee){return this._addCheck({kind:"finite",message:ey.toString(ee)})}safe(ee){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ey.toString(ee)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ey.toString(ee)})}get minValue(){let ee=null;for(let en of this._def.checks)"min"===en.kind&&(null===ee||en.value>ee)&&(ee=en.value);return ee}get maxValue(){let ee=null;for(let en of this._def.checks)"max"===en.kind&&(null===ee||en.value<ee)&&(ee=en.value);return ee}get isInt(){return!!this._def.checks.find(ee=>"int"===ee.kind||"multipleOf"===ee.kind&&eg.isInteger(ee.value))}get isFinite(){let ee=null,en=null;for(let er of this._def.checks){if("finite"===er.kind||"int"===er.kind||"multipleOf"===er.kind)return!0;"min"===er.kind?(null===en||er.value>en)&&(en=er.value):"max"===er.kind&&(null===ee||er.value<ee)&&(ee=er.value)}return Number.isFinite(en)&&Number.isFinite(ee)}};ZodNumber.create=ee=>new ZodNumber({checks:[],typeName:eb.ZodNumber,coerce:(null==ee?void 0:ee.coerce)||!1,...processCreateParams(ee)});let ZodBigInt=class ZodBigInt extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(ee){let en;this._def.coerce&&(ee.data=BigInt(ee.data));let er=this._getType(ee);if(er!==ej.bigint){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eI.invalid_type,expected:ej.bigint,received:en.parsedType}),eR}let eo=new ParseStatus;for(let er of this._def.checks)if("min"===er.kind){let ei=er.inclusive?ee.data<er.value:ee.data<=er.value;ei&&(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eI.too_small,type:"bigint",minimum:er.value,inclusive:er.inclusive,message:er.message}),eo.dirty())}else if("max"===er.kind){let ei=er.inclusive?ee.data>er.value:ee.data>=er.value;ei&&(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eI.too_big,type:"bigint",maximum:er.value,inclusive:er.inclusive,message:er.message}),eo.dirty())}else"multipleOf"===er.kind?ee.data%er.value!==BigInt(0)&&(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eI.not_multiple_of,multipleOf:er.value,message:er.message}),eo.dirty()):eg.assertNever(er);return{status:eo.value,value:ee.data}}gte(ee,en){return this.setLimit("min",ee,!0,ey.toString(en))}gt(ee,en){return this.setLimit("min",ee,!1,ey.toString(en))}lte(ee,en){return this.setLimit("max",ee,!0,ey.toString(en))}lt(ee,en){return this.setLimit("max",ee,!1,ey.toString(en))}setLimit(ee,en,er,eo){return new ZodBigInt({...this._def,checks:[...this._def.checks,{kind:ee,value:en,inclusive:er,message:ey.toString(eo)}]})}_addCheck(ee){return new ZodBigInt({...this._def,checks:[...this._def.checks,ee]})}positive(ee){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ey.toString(ee)})}negative(ee){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ey.toString(ee)})}nonpositive(ee){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ey.toString(ee)})}nonnegative(ee){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ey.toString(ee)})}multipleOf(ee,en){return this._addCheck({kind:"multipleOf",value:ee,message:ey.toString(en)})}get minValue(){let ee=null;for(let en of this._def.checks)"min"===en.kind&&(null===ee||en.value>ee)&&(ee=en.value);return ee}get maxValue(){let ee=null;for(let en of this._def.checks)"max"===en.kind&&(null===ee||en.value<ee)&&(ee=en.value);return ee}};ZodBigInt.create=ee=>{var en;return new ZodBigInt({checks:[],typeName:eb.ZodBigInt,coerce:null!==(en=null==ee?void 0:ee.coerce)&&void 0!==en&&en,...processCreateParams(ee)})};let ZodBoolean=class ZodBoolean extends ZodType{_parse(ee){this._def.coerce&&(ee.data=!!ee.data);let en=this._getType(ee);if(en!==ej.boolean){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eI.invalid_type,expected:ej.boolean,received:en.parsedType}),eR}return OK(ee.data)}};ZodBoolean.create=ee=>new ZodBoolean({typeName:eb.ZodBoolean,coerce:(null==ee?void 0:ee.coerce)||!1,...processCreateParams(ee)});let ZodDate=class ZodDate extends ZodType{_parse(ee){let en;this._def.coerce&&(ee.data=new Date(ee.data));let er=this._getType(ee);if(er!==ej.date){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eI.invalid_type,expected:ej.date,received:en.parsedType}),eR}if(isNaN(ee.data.getTime())){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eI.invalid_date}),eR}let eo=new ParseStatus;for(let er of this._def.checks)"min"===er.kind?ee.data.getTime()<er.value&&(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eI.too_small,message:er.message,inclusive:!0,exact:!1,minimum:er.value,type:"date"}),eo.dirty()):"max"===er.kind?ee.data.getTime()>er.value&&(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eI.too_big,message:er.message,inclusive:!0,exact:!1,maximum:er.value,type:"date"}),eo.dirty()):eg.assertNever(er);return{status:eo.value,value:new Date(ee.data.getTime())}}_addCheck(ee){return new ZodDate({...this._def,checks:[...this._def.checks,ee]})}min(ee,en){return this._addCheck({kind:"min",value:ee.getTime(),message:ey.toString(en)})}max(ee,en){return this._addCheck({kind:"max",value:ee.getTime(),message:ey.toString(en)})}get minDate(){let ee=null;for(let en of this._def.checks)"min"===en.kind&&(null===ee||en.value>ee)&&(ee=en.value);return null!=ee?new Date(ee):null}get maxDate(){let ee=null;for(let en of this._def.checks)"max"===en.kind&&(null===ee||en.value<ee)&&(ee=en.value);return null!=ee?new Date(ee):null}};ZodDate.create=ee=>new ZodDate({checks:[],coerce:(null==ee?void 0:ee.coerce)||!1,typeName:eb.ZodDate,...processCreateParams(ee)});let ZodSymbol=class ZodSymbol extends ZodType{_parse(ee){let en=this._getType(ee);if(en!==ej.symbol){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eI.invalid_type,expected:ej.symbol,received:en.parsedType}),eR}return OK(ee.data)}};ZodSymbol.create=ee=>new ZodSymbol({typeName:eb.ZodSymbol,...processCreateParams(ee)});let ZodUndefined=class ZodUndefined extends ZodType{_parse(ee){let en=this._getType(ee);if(en!==ej.undefined){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eI.invalid_type,expected:ej.undefined,received:en.parsedType}),eR}return OK(ee.data)}};ZodUndefined.create=ee=>new ZodUndefined({typeName:eb.ZodUndefined,...processCreateParams(ee)});let ZodNull=class ZodNull extends ZodType{_parse(ee){let en=this._getType(ee);if(en!==ej.null){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eI.invalid_type,expected:ej.null,received:en.parsedType}),eR}return OK(ee.data)}};ZodNull.create=ee=>new ZodNull({typeName:eb.ZodNull,...processCreateParams(ee)});let ZodAny=class ZodAny extends ZodType{constructor(){super(...arguments),this._any=!0}_parse(ee){return OK(ee.data)}};ZodAny.create=ee=>new ZodAny({typeName:eb.ZodAny,...processCreateParams(ee)});let ZodUnknown=class ZodUnknown extends ZodType{constructor(){super(...arguments),this._unknown=!0}_parse(ee){return OK(ee.data)}};ZodUnknown.create=ee=>new ZodUnknown({typeName:eb.ZodUnknown,...processCreateParams(ee)});let ZodNever=class ZodNever extends ZodType{_parse(ee){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eI.invalid_type,expected:ej.never,received:en.parsedType}),eR}};ZodNever.create=ee=>new ZodNever({typeName:eb.ZodNever,...processCreateParams(ee)});let ZodVoid=class ZodVoid extends ZodType{_parse(ee){let en=this._getType(ee);if(en!==ej.undefined){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eI.invalid_type,expected:ej.void,received:en.parsedType}),eR}return OK(ee.data)}};ZodVoid.create=ee=>new ZodVoid({typeName:eb.ZodVoid,...processCreateParams(ee)});let ZodArray=class ZodArray extends ZodType{_parse(ee){let{ctx:en,status:er}=this._processInputParams(ee),eo=this._def;if(en.parsedType!==ej.array)return addIssueToContext(en,{code:eI.invalid_type,expected:ej.array,received:en.parsedType}),eR;if(null!==eo.exactLength){let ee=en.data.length>eo.exactLength.value,ei=en.data.length<eo.exactLength.value;(ee||ei)&&(addIssueToContext(en,{code:ee?eI.too_big:eI.too_small,minimum:ei?eo.exactLength.value:void 0,maximum:ee?eo.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:eo.exactLength.message}),er.dirty())}if(null!==eo.minLength&&en.data.length<eo.minLength.value&&(addIssueToContext(en,{code:eI.too_small,minimum:eo.minLength.value,type:"array",inclusive:!0,exact:!1,message:eo.minLength.message}),er.dirty()),null!==eo.maxLength&&en.data.length>eo.maxLength.value&&(addIssueToContext(en,{code:eI.too_big,maximum:eo.maxLength.value,type:"array",inclusive:!0,exact:!1,message:eo.maxLength.message}),er.dirty()),en.common.async)return Promise.all([...en.data].map((ee,er)=>eo.type._parseAsync(new ParseInputLazyPath(en,ee,en.path,er)))).then(ee=>ParseStatus.mergeArray(er,ee));let ei=[...en.data].map((ee,er)=>eo.type._parseSync(new ParseInputLazyPath(en,ee,en.path,er)));return ParseStatus.mergeArray(er,ei)}get element(){return this._def.type}min(ee,en){return new ZodArray({...this._def,minLength:{value:ee,message:ey.toString(en)}})}max(ee,en){return new ZodArray({...this._def,maxLength:{value:ee,message:ey.toString(en)}})}length(ee,en){return new ZodArray({...this._def,exactLength:{value:ee,message:ey.toString(en)}})}nonempty(ee){return this.min(1,ee)}};function deepPartialify(ee){if(ee instanceof ZodObject){let en={};for(let er in ee.shape){let eo=ee.shape[er];en[er]=ZodOptional.create(deepPartialify(eo))}return new ZodObject({...ee._def,shape:()=>en})}return ee instanceof ZodArray?new ZodArray({...ee._def,type:deepPartialify(ee.element)}):ee instanceof ZodOptional?ZodOptional.create(deepPartialify(ee.unwrap())):ee instanceof ZodNullable?ZodNullable.create(deepPartialify(ee.unwrap())):ee instanceof ZodTuple?ZodTuple.create(ee.items.map(ee=>deepPartialify(ee))):ee}ZodArray.create=(ee,en)=>new ZodArray({type:ee,minLength:null,maxLength:null,exactLength:null,typeName:eb.ZodArray,...processCreateParams(en)});let ZodObject=class ZodObject extends ZodType{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let ee=this._def.shape(),en=eg.objectKeys(ee);return this._cached={shape:ee,keys:en}}_parse(ee){let en=this._getType(ee);if(en!==ej.object){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eI.invalid_type,expected:ej.object,received:en.parsedType}),eR}let{status:er,ctx:eo}=this._processInputParams(ee),{shape:ei,keys:es}=this._getCached(),eu=[];if(!(this._def.catchall instanceof ZodNever&&"strip"===this._def.unknownKeys))for(let ee in eo.data)es.includes(ee)||eu.push(ee);let ec=[];for(let ee of es){let en=ei[ee],er=eo.data[ee];ec.push({key:{status:"valid",value:ee},value:en._parse(new ParseInputLazyPath(eo,er,eo.path,ee)),alwaysSet:ee in eo.data})}if(this._def.catchall instanceof ZodNever){let ee=this._def.unknownKeys;if("passthrough"===ee)for(let ee of eu)ec.push({key:{status:"valid",value:ee},value:{status:"valid",value:eo.data[ee]}});else if("strict"===ee)eu.length>0&&(addIssueToContext(eo,{code:eI.unrecognized_keys,keys:eu}),er.dirty());else if("strip"===ee);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let ee=this._def.catchall;for(let en of eu){let er=eo.data[en];ec.push({key:{status:"valid",value:en},value:ee._parse(new ParseInputLazyPath(eo,er,eo.path,en)),alwaysSet:en in eo.data})}}return eo.common.async?Promise.resolve().then(async()=>{let ee=[];for(let en of ec){let er=await en.key;ee.push({key:er,value:await en.value,alwaysSet:en.alwaysSet})}return ee}).then(ee=>ParseStatus.mergeObjectSync(er,ee)):ParseStatus.mergeObjectSync(er,ec)}get shape(){return this._def.shape()}strict(ee){return ey.errToObj,new ZodObject({...this._def,unknownKeys:"strict",...void 0!==ee?{errorMap:(en,er)=>{var eo,ei,es,eu;let ec=null!==(es=null===(ei=(eo=this._def).errorMap)||void 0===ei?void 0:ei.call(eo,en,er).message)&&void 0!==es?es:er.defaultError;return"unrecognized_keys"===en.code?{message:null!==(eu=ey.errToObj(ee).message)&&void 0!==eu?eu:ec}:{message:ec}}}:{}})}strip(){return new ZodObject({...this._def,unknownKeys:"strip"})}passthrough(){return new ZodObject({...this._def,unknownKeys:"passthrough"})}extend(ee){return new ZodObject({...this._def,shape:()=>({...this._def.shape(),...ee})})}merge(ee){let en=new ZodObject({unknownKeys:ee._def.unknownKeys,catchall:ee._def.catchall,shape:()=>({...this._def.shape(),...ee._def.shape()}),typeName:eb.ZodObject});return en}setKey(ee,en){return this.augment({[ee]:en})}catchall(ee){return new ZodObject({...this._def,catchall:ee})}pick(ee){let en={};return eg.objectKeys(ee).forEach(er=>{ee[er]&&this.shape[er]&&(en[er]=this.shape[er])}),new ZodObject({...this._def,shape:()=>en})}omit(ee){let en={};return eg.objectKeys(this.shape).forEach(er=>{ee[er]||(en[er]=this.shape[er])}),new ZodObject({...this._def,shape:()=>en})}deepPartial(){return deepPartialify(this)}partial(ee){let en={};return eg.objectKeys(this.shape).forEach(er=>{let eo=this.shape[er];ee&&!ee[er]?en[er]=eo:en[er]=eo.optional()}),new ZodObject({...this._def,shape:()=>en})}required(ee){let en={};return eg.objectKeys(this.shape).forEach(er=>{if(ee&&!ee[er])en[er]=this.shape[er];else{let ee=this.shape[er],eo=ee;for(;eo instanceof ZodOptional;)eo=eo._def.innerType;en[er]=eo}}),new ZodObject({...this._def,shape:()=>en})}keyof(){return createZodEnum(eg.objectKeys(this.shape))}};ZodObject.create=(ee,en)=>new ZodObject({shape:()=>ee,unknownKeys:"strip",catchall:ZodNever.create(),typeName:eb.ZodObject,...processCreateParams(en)}),ZodObject.strictCreate=(ee,en)=>new ZodObject({shape:()=>ee,unknownKeys:"strict",catchall:ZodNever.create(),typeName:eb.ZodObject,...processCreateParams(en)}),ZodObject.lazycreate=(ee,en)=>new ZodObject({shape:ee,unknownKeys:"strip",catchall:ZodNever.create(),typeName:eb.ZodObject,...processCreateParams(en)});let ZodUnion=class ZodUnion extends ZodType{_parse(ee){let{ctx:en}=this._processInputParams(ee),er=this._def.options;function handleResults(ee){for(let en of ee)if("valid"===en.result.status)return en.result;for(let er of ee)if("dirty"===er.result.status)return en.common.issues.push(...er.ctx.common.issues),er.result;let er=ee.map(ee=>new ZodError(ee.ctx.common.issues));return addIssueToContext(en,{code:eI.invalid_union,unionErrors:er}),eR}if(en.common.async)return Promise.all(er.map(async ee=>{let er={...en,common:{...en.common,issues:[]},parent:null};return{result:await ee._parseAsync({data:en.data,path:en.path,parent:er}),ctx:er}})).then(handleResults);{let ee;let eo=[];for(let ei of er){let er={...en,common:{...en.common,issues:[]},parent:null},es=ei._parseSync({data:en.data,path:en.path,parent:er});if("valid"===es.status)return es;"dirty"!==es.status||ee||(ee={result:es,ctx:er}),er.common.issues.length&&eo.push(er.common.issues)}if(ee)return en.common.issues.push(...ee.ctx.common.issues),ee.result;let ei=eo.map(ee=>new ZodError(ee));return addIssueToContext(en,{code:eI.invalid_union,unionErrors:ei}),eR}}get options(){return this._def.options}};ZodUnion.create=(ee,en)=>new ZodUnion({options:ee,typeName:eb.ZodUnion,...processCreateParams(en)});let getDiscriminator=ee=>{if(ee instanceof ZodLazy)return getDiscriminator(ee.schema);if(ee instanceof ZodEffects)return getDiscriminator(ee.innerType());if(ee instanceof ZodLiteral)return[ee.value];if(ee instanceof ZodEnum)return ee.options;if(ee instanceof ZodNativeEnum)return Object.keys(ee.enum);if(ee instanceof ZodDefault)return getDiscriminator(ee._def.innerType);if(ee instanceof ZodUndefined)return[void 0];else if(ee instanceof ZodNull)return[null];else return null};let ZodDiscriminatedUnion=class ZodDiscriminatedUnion extends ZodType{_parse(ee){let{ctx:en}=this._processInputParams(ee);if(en.parsedType!==ej.object)return addIssueToContext(en,{code:eI.invalid_type,expected:ej.object,received:en.parsedType}),eR;let er=this.discriminator,eo=en.data[er],ei=this.optionsMap.get(eo);return ei?en.common.async?ei._parseAsync({data:en.data,path:en.path,parent:en}):ei._parseSync({data:en.data,path:en.path,parent:en}):(addIssueToContext(en,{code:eI.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[er]}),eR)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(ee,en,er){let eo=new Map;for(let er of en){let en=getDiscriminator(er.shape[ee]);if(!en)throw Error(`A discriminator value for key \`${ee}\` could not be extracted from all schema options`);for(let ei of en){if(eo.has(ei))throw Error(`Discriminator property ${String(ee)} has duplicate value ${String(ei)}`);eo.set(ei,er)}}return new ZodDiscriminatedUnion({typeName:eb.ZodDiscriminatedUnion,discriminator:ee,options:en,optionsMap:eo,...processCreateParams(er)})}};function mergeValues(ee,en){let er=getParsedType(ee),eo=getParsedType(en);if(ee===en)return{valid:!0,data:ee};if(er===ej.object&&eo===ej.object){let er=eg.objectKeys(en),eo=eg.objectKeys(ee).filter(ee=>-1!==er.indexOf(ee)),ei={...ee,...en};for(let er of eo){let eo=mergeValues(ee[er],en[er]);if(!eo.valid)return{valid:!1};ei[er]=eo.data}return{valid:!0,data:ei}}if(er===ej.array&&eo===ej.array){if(ee.length!==en.length)return{valid:!1};let er=[];for(let eo=0;eo<ee.length;eo++){let ei=ee[eo],es=en[eo],eu=mergeValues(ei,es);if(!eu.valid)return{valid:!1};er.push(eu.data)}return{valid:!0,data:er}}return er===ej.date&&eo===ej.date&&+ee==+en?{valid:!0,data:ee}:{valid:!1}}let ZodIntersection=class ZodIntersection extends ZodType{_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee),handleParsed=(ee,eo)=>{if(isAborted(ee)||isAborted(eo))return eR;let ei=mergeValues(ee.value,eo.value);return ei.valid?((isDirty(ee)||isDirty(eo))&&en.dirty(),{status:en.value,value:ei.data}):(addIssueToContext(er,{code:eI.invalid_intersection_types}),eR)};return er.common.async?Promise.all([this._def.left._parseAsync({data:er.data,path:er.path,parent:er}),this._def.right._parseAsync({data:er.data,path:er.path,parent:er})]).then(([ee,en])=>handleParsed(ee,en)):handleParsed(this._def.left._parseSync({data:er.data,path:er.path,parent:er}),this._def.right._parseSync({data:er.data,path:er.path,parent:er}))}};ZodIntersection.create=(ee,en,er)=>new ZodIntersection({left:ee,right:en,typeName:eb.ZodIntersection,...processCreateParams(er)});let ZodTuple=class ZodTuple extends ZodType{_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.parsedType!==ej.array)return addIssueToContext(er,{code:eI.invalid_type,expected:ej.array,received:er.parsedType}),eR;if(er.data.length<this._def.items.length)return addIssueToContext(er,{code:eI.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),eR;let eo=this._def.rest;!eo&&er.data.length>this._def.items.length&&(addIssueToContext(er,{code:eI.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),en.dirty());let ei=[...er.data].map((ee,en)=>{let eo=this._def.items[en]||this._def.rest;return eo?eo._parse(new ParseInputLazyPath(er,ee,er.path,en)):null}).filter(ee=>!!ee);return er.common.async?Promise.all(ei).then(ee=>ParseStatus.mergeArray(en,ee)):ParseStatus.mergeArray(en,ei)}get items(){return this._def.items}rest(ee){return new ZodTuple({...this._def,rest:ee})}};ZodTuple.create=(ee,en)=>{if(!Array.isArray(ee))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new ZodTuple({items:ee,typeName:eb.ZodTuple,rest:null,...processCreateParams(en)})};let ZodRecord=class ZodRecord extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.parsedType!==ej.object)return addIssueToContext(er,{code:eI.invalid_type,expected:ej.object,received:er.parsedType}),eR;let eo=[],ei=this._def.keyType,es=this._def.valueType;for(let ee in er.data)eo.push({key:ei._parse(new ParseInputLazyPath(er,ee,er.path,ee)),value:es._parse(new ParseInputLazyPath(er,er.data[ee],er.path,ee))});return er.common.async?ParseStatus.mergeObjectAsync(en,eo):ParseStatus.mergeObjectSync(en,eo)}get element(){return this._def.valueType}static create(ee,en,er){return new ZodRecord(en instanceof ZodType?{keyType:ee,valueType:en,typeName:eb.ZodRecord,...processCreateParams(er)}:{keyType:ZodString.create(),valueType:ee,typeName:eb.ZodRecord,...processCreateParams(en)})}};let ZodMap=class ZodMap extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.parsedType!==ej.map)return addIssueToContext(er,{code:eI.invalid_type,expected:ej.map,received:er.parsedType}),eR;let eo=this._def.keyType,ei=this._def.valueType,es=[...er.data.entries()].map(([ee,en],es)=>({key:eo._parse(new ParseInputLazyPath(er,ee,er.path,[es,"key"])),value:ei._parse(new ParseInputLazyPath(er,en,er.path,[es,"value"]))}));if(er.common.async){let ee=new Map;return Promise.resolve().then(async()=>{for(let er of es){let eo=await er.key,ei=await er.value;if("aborted"===eo.status||"aborted"===ei.status)return eR;("dirty"===eo.status||"dirty"===ei.status)&&en.dirty(),ee.set(eo.value,ei.value)}return{status:en.value,value:ee}})}{let ee=new Map;for(let er of es){let eo=er.key,ei=er.value;if("aborted"===eo.status||"aborted"===ei.status)return eR;("dirty"===eo.status||"dirty"===ei.status)&&en.dirty(),ee.set(eo.value,ei.value)}return{status:en.value,value:ee}}}};ZodMap.create=(ee,en,er)=>new ZodMap({valueType:en,keyType:ee,typeName:eb.ZodMap,...processCreateParams(er)});let ZodSet=class ZodSet extends ZodType{_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.parsedType!==ej.set)return addIssueToContext(er,{code:eI.invalid_type,expected:ej.set,received:er.parsedType}),eR;let eo=this._def;null!==eo.minSize&&er.data.size<eo.minSize.value&&(addIssueToContext(er,{code:eI.too_small,minimum:eo.minSize.value,type:"set",inclusive:!0,exact:!1,message:eo.minSize.message}),en.dirty()),null!==eo.maxSize&&er.data.size>eo.maxSize.value&&(addIssueToContext(er,{code:eI.too_big,maximum:eo.maxSize.value,type:"set",inclusive:!0,exact:!1,message:eo.maxSize.message}),en.dirty());let ei=this._def.valueType;function finalizeSet(ee){let er=new Set;for(let eo of ee){if("aborted"===eo.status)return eR;"dirty"===eo.status&&en.dirty(),er.add(eo.value)}return{status:en.value,value:er}}let es=[...er.data.values()].map((ee,en)=>ei._parse(new ParseInputLazyPath(er,ee,er.path,en)));return er.common.async?Promise.all(es).then(ee=>finalizeSet(ee)):finalizeSet(es)}min(ee,en){return new ZodSet({...this._def,minSize:{value:ee,message:ey.toString(en)}})}max(ee,en){return new ZodSet({...this._def,maxSize:{value:ee,message:ey.toString(en)}})}size(ee,en){return this.min(ee,en).max(ee,en)}nonempty(ee){return this.min(1,ee)}};ZodSet.create=(ee,en)=>new ZodSet({valueType:ee,minSize:null,maxSize:null,typeName:eb.ZodSet,...processCreateParams(en)});let ZodFunction=class ZodFunction extends ZodType{constructor(){super(...arguments),this.validate=this.implement}_parse(ee){let{ctx:en}=this._processInputParams(ee);if(en.parsedType!==ej.function)return addIssueToContext(en,{code:eI.invalid_type,expected:ej.function,received:en.parsedType}),eR;function makeArgsIssue(ee,er){return makeIssue({data:ee,path:en.path,errorMaps:[en.common.contextualErrorMap,en.schemaErrorMap,getErrorMap(),errorMap].filter(ee=>!!ee),issueData:{code:eI.invalid_arguments,argumentsError:er}})}function makeReturnsIssue(ee,er){return makeIssue({data:ee,path:en.path,errorMaps:[en.common.contextualErrorMap,en.schemaErrorMap,getErrorMap(),errorMap].filter(ee=>!!ee),issueData:{code:eI.invalid_return_type,returnTypeError:er}})}let er={errorMap:en.common.contextualErrorMap},eo=en.data;if(this._def.returns instanceof ZodPromise){let ee=this;return OK(async function(...en){let ei=new ZodError([]),es=await ee._def.args.parseAsync(en,er).catch(ee=>{throw ei.addIssue(makeArgsIssue(en,ee)),ei}),eu=await Reflect.apply(eo,this,es),ec=await ee._def.returns._def.type.parseAsync(eu,er).catch(ee=>{throw ei.addIssue(makeReturnsIssue(eu,ee)),ei});return ec})}{let ee=this;return OK(function(...en){let ei=ee._def.args.safeParse(en,er);if(!ei.success)throw new ZodError([makeArgsIssue(en,ei.error)]);let es=Reflect.apply(eo,this,ei.data),eu=ee._def.returns.safeParse(es,er);if(!eu.success)throw new ZodError([makeReturnsIssue(es,eu.error)]);return eu.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...ee){return new ZodFunction({...this._def,args:ZodTuple.create(ee).rest(ZodUnknown.create())})}returns(ee){return new ZodFunction({...this._def,returns:ee})}implement(ee){let en=this.parse(ee);return en}strictImplement(ee){let en=this.parse(ee);return en}static create(ee,en,er){return new ZodFunction({args:ee||ZodTuple.create([]).rest(ZodUnknown.create()),returns:en||ZodUnknown.create(),typeName:eb.ZodFunction,...processCreateParams(er)})}};let ZodLazy=class ZodLazy extends ZodType{get schema(){return this._def.getter()}_parse(ee){let{ctx:en}=this._processInputParams(ee),er=this._def.getter();return er._parse({data:en.data,path:en.path,parent:en})}};ZodLazy.create=(ee,en)=>new ZodLazy({getter:ee,typeName:eb.ZodLazy,...processCreateParams(en)});let ZodLiteral=class ZodLiteral extends ZodType{_parse(ee){if(ee.data!==this._def.value){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{received:en.data,code:eI.invalid_literal,expected:this._def.value}),eR}return{status:"valid",value:ee.data}}get value(){return this._def.value}};function createZodEnum(ee,en){return new ZodEnum({values:ee,typeName:eb.ZodEnum,...processCreateParams(en)})}ZodLiteral.create=(ee,en)=>new ZodLiteral({value:ee,typeName:eb.ZodLiteral,...processCreateParams(en)});let ZodEnum=class ZodEnum extends ZodType{_parse(ee){if("string"!=typeof ee.data){let en=this._getOrReturnCtx(ee),er=this._def.values;return addIssueToContext(en,{expected:eg.joinValues(er),received:en.parsedType,code:eI.invalid_type}),eR}if(-1===this._def.values.indexOf(ee.data)){let en=this._getOrReturnCtx(ee),er=this._def.values;return addIssueToContext(en,{received:en.data,code:eI.invalid_enum_value,options:er}),eR}return OK(ee.data)}get options(){return this._def.values}get enum(){let ee={};for(let en of this._def.values)ee[en]=en;return ee}get Values(){let ee={};for(let en of this._def.values)ee[en]=en;return ee}get Enum(){let ee={};for(let en of this._def.values)ee[en]=en;return ee}extract(ee){return ZodEnum.create(ee)}exclude(ee){return ZodEnum.create(this.options.filter(en=>!ee.includes(en)))}};ZodEnum.create=createZodEnum;let ZodNativeEnum=class ZodNativeEnum extends ZodType{_parse(ee){let en=eg.getValidEnumValues(this._def.values),er=this._getOrReturnCtx(ee);if(er.parsedType!==ej.string&&er.parsedType!==ej.number){let ee=eg.objectValues(en);return addIssueToContext(er,{expected:eg.joinValues(ee),received:er.parsedType,code:eI.invalid_type}),eR}if(-1===en.indexOf(ee.data)){let ee=eg.objectValues(en);return addIssueToContext(er,{received:er.data,code:eI.invalid_enum_value,options:ee}),eR}return OK(ee.data)}get enum(){return this._def.values}};ZodNativeEnum.create=(ee,en)=>new ZodNativeEnum({values:ee,typeName:eb.ZodNativeEnum,...processCreateParams(en)});let ZodPromise=class ZodPromise extends ZodType{unwrap(){return this._def.type}_parse(ee){let{ctx:en}=this._processInputParams(ee);if(en.parsedType!==ej.promise&&!1===en.common.async)return addIssueToContext(en,{code:eI.invalid_type,expected:ej.promise,received:en.parsedType}),eR;let er=en.parsedType===ej.promise?en.data:Promise.resolve(en.data);return OK(er.then(ee=>this._def.type.parseAsync(ee,{path:en.path,errorMap:en.common.contextualErrorMap})))}};ZodPromise.create=(ee,en)=>new ZodPromise({type:ee,typeName:eb.ZodPromise,...processCreateParams(en)});let ZodEffects=class ZodEffects extends ZodType{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===eb.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee),eo=this._def.effect||null,ei={addIssue:ee=>{addIssueToContext(er,ee),ee.fatal?en.abort():en.dirty()},get path(){return er.path}};if(ei.addIssue=ei.addIssue.bind(ei),"preprocess"===eo.type){let ee=eo.transform(er.data,ei);return er.common.issues.length?{status:"dirty",value:er.data}:er.common.async?Promise.resolve(ee).then(ee=>this._def.schema._parseAsync({data:ee,path:er.path,parent:er})):this._def.schema._parseSync({data:ee,path:er.path,parent:er})}if("refinement"===eo.type){let executeRefinement=ee=>{let en=eo.refinement(ee,ei);if(er.common.async)return Promise.resolve(en);if(en instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return ee};if(!1!==er.common.async)return this._def.schema._parseAsync({data:er.data,path:er.path,parent:er}).then(ee=>"aborted"===ee.status?eR:("dirty"===ee.status&&en.dirty(),executeRefinement(ee.value).then(()=>({status:en.value,value:ee.value}))));{let ee=this._def.schema._parseSync({data:er.data,path:er.path,parent:er});return"aborted"===ee.status?eR:("dirty"===ee.status&&en.dirty(),executeRefinement(ee.value),{status:en.value,value:ee.value})}}if("transform"===eo.type){if(!1!==er.common.async)return this._def.schema._parseAsync({data:er.data,path:er.path,parent:er}).then(ee=>isValid(ee)?Promise.resolve(eo.transform(ee.value,ei)).then(ee=>({status:en.value,value:ee})):ee);{let ee=this._def.schema._parseSync({data:er.data,path:er.path,parent:er});if(!isValid(ee))return ee;let es=eo.transform(ee.value,ei);if(es instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:en.value,value:es}}}eg.assertNever(eo)}};ZodEffects.create=(ee,en,er)=>new ZodEffects({schema:ee,typeName:eb.ZodEffects,effect:en,...processCreateParams(er)}),ZodEffects.createWithPreprocess=(ee,en,er)=>new ZodEffects({schema:en,effect:{type:"preprocess",transform:ee},typeName:eb.ZodEffects,...processCreateParams(er)});let ZodOptional=class ZodOptional extends ZodType{_parse(ee){let en=this._getType(ee);return en===ej.undefined?OK(void 0):this._def.innerType._parse(ee)}unwrap(){return this._def.innerType}};ZodOptional.create=(ee,en)=>new ZodOptional({innerType:ee,typeName:eb.ZodOptional,...processCreateParams(en)});let ZodNullable=class ZodNullable extends ZodType{_parse(ee){let en=this._getType(ee);return en===ej.null?OK(null):this._def.innerType._parse(ee)}unwrap(){return this._def.innerType}};ZodNullable.create=(ee,en)=>new ZodNullable({innerType:ee,typeName:eb.ZodNullable,...processCreateParams(en)});let ZodDefault=class ZodDefault extends ZodType{_parse(ee){let{ctx:en}=this._processInputParams(ee),er=en.data;return en.parsedType===ej.undefined&&(er=this._def.defaultValue()),this._def.innerType._parse({data:er,path:en.path,parent:en})}removeDefault(){return this._def.innerType}};ZodDefault.create=(ee,en)=>new ZodDefault({innerType:ee,typeName:eb.ZodDefault,defaultValue:"function"==typeof en.default?en.default:()=>en.default,...processCreateParams(en)});let ZodCatch=class ZodCatch extends ZodType{_parse(ee){let{ctx:en}=this._processInputParams(ee),er={...en,common:{...en.common,issues:[]}},eo=this._def.innerType._parse({data:er.data,path:er.path,parent:{...er}});return isAsync(eo)?eo.then(ee=>({status:"valid",value:"valid"===ee.status?ee.value:this._def.catchValue({get error(){return new ZodError(er.common.issues)},input:er.data})})):{status:"valid",value:"valid"===eo.status?eo.value:this._def.catchValue({get error(){return new ZodError(er.common.issues)},input:er.data})}}removeCatch(){return this._def.innerType}};ZodCatch.create=(ee,en)=>new ZodCatch({innerType:ee,typeName:eb.ZodCatch,catchValue:"function"==typeof en.catch?en.catch:()=>en.catch,...processCreateParams(en)});let ZodNaN=class ZodNaN extends ZodType{_parse(ee){let en=this._getType(ee);if(en!==ej.nan){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eI.invalid_type,expected:ej.nan,received:en.parsedType}),eR}return{status:"valid",value:ee.data}}};ZodNaN.create=ee=>new ZodNaN({typeName:eb.ZodNaN,...processCreateParams(ee)});let eU=Symbol("zod_brand");let ZodBranded=class ZodBranded extends ZodType{_parse(ee){let{ctx:en}=this._processInputParams(ee),er=en.data;return this._def.type._parse({data:er,path:en.path,parent:en})}unwrap(){return this._def.type}};let ZodPipeline=class ZodPipeline extends ZodType{_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.common.async){let handleAsync=async()=>{let ee=await this._def.in._parseAsync({data:er.data,path:er.path,parent:er});return"aborted"===ee.status?eR:"dirty"===ee.status?(en.dirty(),DIRTY(ee.value)):this._def.out._parseAsync({data:ee.value,path:er.path,parent:er})};return handleAsync()}{let ee=this._def.in._parseSync({data:er.data,path:er.path,parent:er});return"aborted"===ee.status?eR:"dirty"===ee.status?(en.dirty(),{status:"dirty",value:ee.value}):this._def.out._parseSync({data:ee.value,path:er.path,parent:er})}}static create(ee,en){return new ZodPipeline({in:ee,out:en,typeName:eb.ZodPipeline})}};let ZodReadonly=class ZodReadonly extends ZodType{_parse(ee){let en=this._def.innerType._parse(ee);return isValid(en)&&(en.value=Object.freeze(en.value)),en}};ZodReadonly.create=(ee,en)=>new ZodReadonly({innerType:ee,typeName:eb.ZodReadonly,...processCreateParams(en)});let custom=(ee,en={},er)=>ee?ZodAny.create().superRefine((eo,ei)=>{var es,eu;if(!ee(eo)){let ee="function"==typeof en?en(eo):"string"==typeof en?{message:en}:en,ec=null===(eu=null!==(es=ee.fatal)&&void 0!==es?es:er)||void 0===eu||eu,ed="string"==typeof ee?{message:ee}:ee;ei.addIssue({code:"custom",...ed,fatal:ec})}}):ZodAny.create(),eH={object:ZodObject.lazycreate};!function(ee){ee.ZodString="ZodString",ee.ZodNumber="ZodNumber",ee.ZodNaN="ZodNaN",ee.ZodBigInt="ZodBigInt",ee.ZodBoolean="ZodBoolean",ee.ZodDate="ZodDate",ee.ZodSymbol="ZodSymbol",ee.ZodUndefined="ZodUndefined",ee.ZodNull="ZodNull",ee.ZodAny="ZodAny",ee.ZodUnknown="ZodUnknown",ee.ZodNever="ZodNever",ee.ZodVoid="ZodVoid",ee.ZodArray="ZodArray",ee.ZodObject="ZodObject",ee.ZodUnion="ZodUnion",ee.ZodDiscriminatedUnion="ZodDiscriminatedUnion",ee.ZodIntersection="ZodIntersection",ee.ZodTuple="ZodTuple",ee.ZodRecord="ZodRecord",ee.ZodMap="ZodMap",ee.ZodSet="ZodSet",ee.ZodFunction="ZodFunction",ee.ZodLazy="ZodLazy",ee.ZodLiteral="ZodLiteral",ee.ZodEnum="ZodEnum",ee.ZodEffects="ZodEffects",ee.ZodNativeEnum="ZodNativeEnum",ee.ZodOptional="ZodOptional",ee.ZodNullable="ZodNullable",ee.ZodDefault="ZodDefault",ee.ZodCatch="ZodCatch",ee.ZodPromise="ZodPromise",ee.ZodBranded="ZodBranded",ee.ZodPipeline="ZodPipeline",ee.ZodReadonly="ZodReadonly"}(eb||(eb={}));let instanceOfType=(ee,en={message:`Input not instance of ${ee.name}`})=>custom(en=>en instanceof ee,en),e$=ZodString.create,eB=ZodNumber.create,eW=ZodNaN.create,eG=ZodBigInt.create,eK=ZodBoolean.create,eY=ZodDate.create,eQ=ZodSymbol.create,eJ=ZodUndefined.create,eX=ZodNull.create,e0=ZodAny.create,e1=ZodUnknown.create,e2=ZodNever.create,e4=ZodVoid.create,e5=ZodArray.create,e3=ZodObject.create,e6=ZodObject.strictCreate,e8=ZodUnion.create,e7=ZodDiscriminatedUnion.create,e9=ZodIntersection.create,tt=ZodTuple.create,tn=ZodRecord.create,tr=ZodMap.create,to=ZodSet.create,ti=ZodFunction.create,ts=ZodLazy.create,tl=ZodLiteral.create,tu=ZodEnum.create,tc=ZodNativeEnum.create,td=ZodPromise.create,tp=ZodEffects.create,tf=ZodOptional.create,th=ZodNullable.create,tm=ZodEffects.createWithPreprocess,tx=ZodPipeline.create,ostring=()=>e$().optional(),onumber=()=>eB().optional(),oboolean=()=>eK().optional(),tg={string:ee=>ZodString.create({...ee,coerce:!0}),number:ee=>ZodNumber.create({...ee,coerce:!0}),boolean:ee=>ZodBoolean.create({...ee,coerce:!0}),bigint:ee=>ZodBigInt.create({...ee,coerce:!0}),date:ee=>ZodDate.create({...ee,coerce:!0})},tv=eR;var ty=Object.freeze({__proto__:null,defaultErrorMap:errorMap,setErrorMap:setErrorMap,getErrorMap:getErrorMap,makeIssue:makeIssue,EMPTY_PATH:eN,addIssueToContext:addIssueToContext,ParseStatus:ParseStatus,INVALID:eR,DIRTY:DIRTY,OK:OK,isAborted:isAborted,isDirty:isDirty,isValid:isValid,isAsync:isAsync,get util(){return eg},get objectUtil(){return ev},ZodParsedType:ej,getParsedType:getParsedType,ZodType:ZodType,ZodString:ZodString,ZodNumber:ZodNumber,ZodBigInt:ZodBigInt,ZodBoolean:ZodBoolean,ZodDate:ZodDate,ZodSymbol:ZodSymbol,ZodUndefined:ZodUndefined,ZodNull:ZodNull,ZodAny:ZodAny,ZodUnknown:ZodUnknown,ZodNever:ZodNever,ZodVoid:ZodVoid,ZodArray:ZodArray,ZodObject:ZodObject,ZodUnion:ZodUnion,ZodDiscriminatedUnion:ZodDiscriminatedUnion,ZodIntersection:ZodIntersection,ZodTuple:ZodTuple,ZodRecord:ZodRecord,ZodMap:ZodMap,ZodSet:ZodSet,ZodFunction:ZodFunction,ZodLazy:ZodLazy,ZodLiteral:ZodLiteral,ZodEnum:ZodEnum,ZodNativeEnum:ZodNativeEnum,ZodPromise:ZodPromise,ZodEffects:ZodEffects,ZodTransformer:ZodEffects,ZodOptional:ZodOptional,ZodNullable:ZodNullable,ZodDefault:ZodDefault,ZodCatch:ZodCatch,ZodNaN:ZodNaN,BRAND:eU,ZodBranded:ZodBranded,ZodPipeline:ZodPipeline,ZodReadonly:ZodReadonly,custom:custom,Schema:ZodType,ZodSchema:ZodType,late:eH,get ZodFirstPartyTypeKind(){return eb},coerce:tg,any:e0,array:e5,bigint:eG,boolean:eK,date:eY,discriminatedUnion:e7,effect:tp,enum:tu,function:ti,instanceof:instanceOfType,intersection:e9,lazy:ts,literal:tl,map:tr,nan:eW,nativeEnum:tc,never:e2,null:eX,nullable:th,number:eB,object:e3,oboolean:oboolean,onumber:onumber,optional:tf,ostring:ostring,pipeline:tx,preprocess:tm,promise:td,record:tn,set:to,strictObject:e6,string:e$,symbol:eQ,transformer:tp,tuple:tt,undefined:eJ,union:e8,unknown:e1,void:e4,NEVER:tv,ZodIssueCode:eI,quotelessJson:quotelessJson,ZodError:ZodError}),tb=er(4202),t_=er.n(tb),tw={i8:"13.5.6"};er(5085);var tk=er(7458);let tC=["light","dark"],tT="(prefers-color-scheme: dark)",tE="undefined"==typeof window,tO=(0,ek.createContext)(void 0),tS={setTheme:ee=>{},themes:[]},y=()=>{var ee;return null!==(ee=(0,ek.useContext)(tO))&&void 0!==ee?ee:tS},$=ee=>(0,ek.useContext)(tO)?ek.createElement(ek.Fragment,null,ee.children):ek.createElement(f,ee),tj=["light","dark"],f=({forcedTheme:ee,disableTransitionOnChange:en=!1,enableSystem:er=!0,enableColorScheme:eo=!0,storageKey:ei="theme",themes:es=tj,defaultTheme:eu=er?"system":"light",attribute:ec="data-theme",value:ed,children:ep,nonce:ef})=>{let[eh,em]=(0,ek.useState)(()=>S(ei,eu)),[ex,eg]=(0,ek.useState)(()=>S(ei)),ev=ed?Object.values(ed):es,ey=(0,ek.useCallback)(ee=>{let ei=ee;if(!ei)return;"system"===ee&&er&&(ei=p());let es=ed?ed[ei]:ei,ep=en?b():null,ef=document.documentElement;if("class"===ec?(ef.classList.remove(...ev),es&&ef.classList.add(es)):es?ef.setAttribute(ec,es):ef.removeAttribute(ec),eo){let ee=tC.includes(eu)?eu:null,en=tC.includes(ei)?ei:ee;ef.style.colorScheme=en}null==ep||ep()},[]),eb=(0,ek.useCallback)(ee=>{em(ee);try{localStorage.setItem(ei,ee)}catch(ee){}},[ee]),e_=(0,ek.useCallback)(en=>{let eo=p(en);eg(eo),"system"===eh&&er&&!ee&&ey("system")},[eh,ee]);(0,ek.useEffect)(()=>{let ee=window.matchMedia(tT);return ee.addListener(e_),e_(ee),()=>ee.removeListener(e_)},[e_]),(0,ek.useEffect)(()=>{let e=ee=>{ee.key===ei&&eb(ee.newValue||eu)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[eb]),(0,ek.useEffect)(()=>{ey(null!=ee?ee:eh)},[ee,eh]);let ew=(0,ek.useMemo)(()=>({theme:eh,setTheme:eb,forcedTheme:ee,resolvedTheme:"system"===eh?ex:eh,themes:er?[...es,"system"]:es,systemTheme:er?ex:void 0}),[eh,eb,ee,ex,er,es]);return ek.createElement(tO.Provider,{value:ew},ek.createElement(tI,{forcedTheme:ee,disableTransitionOnChange:en,enableSystem:er,enableColorScheme:eo,storageKey:ei,themes:es,defaultTheme:eu,attribute:ec,value:ed,children:ep,attrs:ev,nonce:ef}),ep)},tI=(0,ek.memo)(({forcedTheme:ee,storageKey:en,attribute:er,enableSystem:eo,enableColorScheme:ei,defaultTheme:es,value:eu,attrs:ec,nonce:ed})=>{let ep="system"===es,ef="class"===er?`var d=document.documentElement,c=d.classList;c.remove(${ec.map(ee=>`'${ee}'`).join(",")});`:`var d=document.documentElement,n='${er}',s='setAttribute';`,eh=ei?tC.includes(es)&&es?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${es}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",$=(ee,en=!1,eo=!0)=>{let es=eu?eu[ee]:ee,ec=en?ee+"|| ''":`'${es}'`,ed="";return ei&&eo&&!en&&tC.includes(ee)&&(ed+=`d.style.colorScheme = '${ee}';`),"class"===er?ed+=en||es?`c.add(${ec})`:"null":es&&(ed+=`d[s](n,${ec})`),ed},em=ee?`!function(){${ef}${$(ee)}}()`:eo?`!function(){try{${ef}var e=localStorage.getItem('${en}');if('system'===e||(!e&&${ep})){var t='${tT}',m=window.matchMedia(t);if(m.media!==t||m.matches){${$("dark")}}else{${$("light")}}}else if(e){${eu?`var x=${JSON.stringify(eu)};`:""}${$(eu?"x[e]":"e",!0)}}${ep?"":"else{"+$(es,!1,!1)+"}"}${eh}}catch(e){}}()`:`!function(){try{${ef}var e=localStorage.getItem('${en}');if(e){${eu?`var x=${JSON.stringify(eu)};`:""}${$(eu?"x[e]":"e",!0)}}else{${$(es,!1,!1)};}${eh}}catch(t){}}();`;return ek.createElement("script",{nonce:ed,dangerouslySetInnerHTML:{__html:em}})},()=>!0),S=(ee,en)=>{let er;if(!tE){try{er=localStorage.getItem(ee)||void 0}catch(ee){}return er||en}},b=()=>{let ee=document.createElement("style");return ee.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(ee),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(ee)},1)}},p=ee=>(ee||(ee=window.matchMedia(tT)),ee.matches?"dark":"light");var tP={breadcrumb:!0,collapsed:!1,footer:!0,layout:"default",navbar:!0,pagination:!0,sidebar:!0,timestamp:!0,toc:!0,typesetting:"default"},tN=ty.strictObject({breadcrumb:ty.boolean(),collapsed:ty.boolean(),footer:ty.boolean(),layout:ty.enum(["default","full","raw"]),navbar:ty.boolean(),pagination:ty.boolean(),sidebar:ty.boolean(),timestamp:ty.boolean(),toc:ty.boolean(),typesetting:ty.enum(["default","article"])}),tR=ty.enum(["normal","hidden","children"]),tZ=ty.string(),tM=ty.strictObject({href:ty.string(),newWindow:ty.boolean(),title:tZ}),tA=ty.strictObject({display:tR.optional(),items:ty.record(tM.partial({href:!0,newWindow:!0})),title:tZ,type:ty.literal("menu")}),tL=ty.strictObject({title:tZ.optional(),type:ty.literal("separator")}),tD=tM.extend({display:tR,theme:tN,title:tZ,type:ty.enum(["page","doc"])}).deepPartial();function extendMeta(ee={},en){"string"==typeof ee&&(ee={title:ee});let er=Object.assign({},en.theme,ee.theme);return Object.assign({},en,ee,{theme:er})}function findFirstRoute(ee){for(let en of ee){if(en.route)return en.route;if(en.children){let ee=findFirstRoute(en.children);if(ee)return ee}}}function normalizePages({list:ee,locale:en,defaultLocale:er,route:eo,docsRoot:ei="",underCurrentDocsRoot:es=!1,pageThemeContext:eu=tP}){let ec,ed;for(let er of ee)if("Meta"===er.kind){if(er.locale===en){ec=er.data;break}ec||(ec=er.data)}let ep=ec||{},ef=Object.keys(ep);for(let ee of ef)"string"==typeof ep[ee]&&(ep[ee]={title:ep[ee]});let eh=[],em=[],ex=[],eg=[],ev=[],ey=0,eb=eu,e_=[],ew=-1,ek=ep["*"]||{};delete ek.title,delete ek.href;let eC=ee.filter(ee=>"Meta"!==ee.kind&&!ee.name.startsWith("_")&&(!("locale"in ee)||!ee.locale||[en,er].includes(ee.locale))).sort((ee,en)=>{let er=ef.indexOf(ee.name),eo=ef.indexOf(en.name);return -1===er&&-1===eo?ee.name<en.name?-1:1:-1===er?1:-1===eo?-1:er-eo}).flatMap(ee=>{let en;let er=[],eo=ef.indexOf(ee.name);if(-1!==eo){for(let ee=ew+1;ee<eo;ee++){let en=ef[ee];"*"!==en&&er.push({name:en,route:"",...ep[en]})}ew=eo,en={...ep[ee.name],...ee}}return er.push(en||ee),er});for(let ee=ew+1;ee<ef.length;ee++){let en=ef[ee];"*"!==en&&eC.push({name:en,route:"#",...ep[en]})}for(let ee=0;ee<eC.length;ee++){let ec=eC[ee];if(ee+1<eC.length&&ec.name===eC[ee+1].name){eC[ee+1]={...eC[ee+1],withIndexPage:!0},ec.children&&!eC[ee+1].children&&(eC[ee+1].children=ec.children);continue}let ef=extendMeta(ep[ec.name],ek),{display:ew,type:eE="doc"}=ef,eO={...eu,...ef.theme},eS=eo.startsWith(ei),ej=ec.children&&normalizePages({list:ec.children,locale:en,defaultLocale:er,route:eo,docsRoot:"page"===eE||"menu"===eE?ec.route:ei,underCurrentDocsRoot:es||eS,pageThemeContext:eO}),eI=ef.title||"separator"!==eE&&ec.name,getItem=()=>({...ec,type:eE,...eI&&{title:eI},...ew&&{display:ew},...ej&&{children:[]}}),eP=getItem(),eN=getItem(),eR=getItem();if(eN.isUnderCurrentDocsTree=eS,"separator"===eE&&(eP.isUnderCurrentDocsTree=eS),ec.route===eo)switch(e_=[eP],ed=eE,eb={...eb,...eO},eE){case"page":case"menu":ey=ev.length;break;case"doc":ey=eg.length}if(!("hidden"===ew&&"Folder"!==eP.kind||eT.hV.has(ec.route))){if(ej){if(void 0!==ej.activeIndex&&void 0!==ej.activeType){switch(eb=ej.activeThemeContext,ed=ej.activeType,e_=[eP,...ej.activePath],ed){case"page":case"menu":ey=ev.length+ej.activeIndex;break;case"doc":ey=eg.length+ej.activeIndex}ec.withIndexPage&&"doc"===eE&&ey++}switch(eE){case"page":case"menu":eR.children.push(...ej.directories),ex.push(...ej.docsDirectories),ej.flatDirectories.length?(eR.firstChildRoute=findFirstRoute(ej.flatDirectories),ev.push(eR)):eR.withIndexPage&&ev.push(eR);break;case"doc":Array.isArray(eN.children)&&eN.children.push(...ej.docsDirectories),eP.withIndexPage&&"children"!==ew&&eg.push(eN)}em.push(...ej.flatDirectories),eg.push(...ej.flatDocsDirectories),Array.isArray(eP.children)&&eP.children.push(...ej.directories)}else switch(em.push(eP),eE){case"page":case"menu":ev.push(eR);break;case"doc":eg.push(eN)}switch("doc"===eE&&"children"===ew?eN.children&&(eh.push(...eN.children),ex.push(...eN.children)):eh.push(eP),eE){case"page":case"menu":ex.push(eR);break;case"doc":"children"!==ew&&ex.push(eN);break;case"separator":ex.push(eP)}}}return{activeType:ed,activeIndex:ey,activeThemeContext:eb,activePath:e_,directories:eh,flatDirectories:em,docsDirectories:ex,flatDocsDirectories:eg,topLevelNavbarItems:ev}}ty.string().or(tA).or(tL).or(tD);var tF=er(6680),tz=er.n(tF);function getWindow(ee){if(null==ee)return window;if("[object Window]"!==ee.toString()){var en=ee.ownerDocument;return en&&en.defaultView||window}return ee}function isElement(ee){var en=getWindow(ee).Element;return ee instanceof en||ee instanceof Element}function isHTMLElement(ee){var en=getWindow(ee).HTMLElement;return ee instanceof en||ee instanceof HTMLElement}function isShadowRoot(ee){if("undefined"==typeof ShadowRoot)return!1;var en=getWindow(ee).ShadowRoot;return ee instanceof en||ee instanceof ShadowRoot}var tV=Math.max,tU=Math.min,tH=Math.round;function getUAString(){var ee=navigator.userAgentData;return null!=ee&&ee.brands&&Array.isArray(ee.brands)?ee.brands.map(function(ee){return ee.brand+"/"+ee.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(ee,en,er){void 0===en&&(en=!1),void 0===er&&(er=!1);var eo=ee.getBoundingClientRect(),ei=1,es=1;en&&isHTMLElement(ee)&&(ei=ee.offsetWidth>0&&tH(eo.width)/ee.offsetWidth||1,es=ee.offsetHeight>0&&tH(eo.height)/ee.offsetHeight||1);var eu=(isElement(ee)?getWindow(ee):window).visualViewport,ec=!isLayoutViewport()&&er,ed=(eo.left+(ec&&eu?eu.offsetLeft:0))/ei,ep=(eo.top+(ec&&eu?eu.offsetTop:0))/es,ef=eo.width/ei,eh=eo.height/es;return{width:ef,height:eh,top:ep,right:ed+ef,bottom:ep+eh,left:ed,x:ed,y:ep}}function getWindowScroll(ee){var en=getWindow(ee);return{scrollLeft:en.pageXOffset,scrollTop:en.pageYOffset}}function getHTMLElementScroll(ee){return{scrollLeft:ee.scrollLeft,scrollTop:ee.scrollTop}}function getNodeScroll(ee){return ee!==getWindow(ee)&&isHTMLElement(ee)?getHTMLElementScroll(ee):getWindowScroll(ee)}function getNodeName(ee){return ee?(ee.nodeName||"").toLowerCase():null}function getDocumentElement(ee){return((isElement(ee)?ee.ownerDocument:ee.document)||window.document).documentElement}function getWindowScrollBarX(ee){return getBoundingClientRect(getDocumentElement(ee)).left+getWindowScroll(ee).scrollLeft}function getComputedStyle_getComputedStyle(ee){return getWindow(ee).getComputedStyle(ee)}function isScrollParent(ee){var en=getComputedStyle_getComputedStyle(ee),er=en.overflow,eo=en.overflowX,ei=en.overflowY;return/auto|scroll|overlay|hidden/.test(er+ei+eo)}function isElementScaled(ee){var en=ee.getBoundingClientRect(),er=tH(en.width)/ee.offsetWidth||1,eo=tH(en.height)/ee.offsetHeight||1;return 1!==er||1!==eo}function getCompositeRect(ee,en,er){void 0===er&&(er=!1);var eo=isHTMLElement(en),ei=isHTMLElement(en)&&isElementScaled(en),es=getDocumentElement(en),eu=getBoundingClientRect(ee,ei,er),ec={scrollLeft:0,scrollTop:0},ed={x:0,y:0};return(eo||!eo&&!er)&&(("body"!==getNodeName(en)||isScrollParent(es))&&(ec=getNodeScroll(en)),isHTMLElement(en)?(ed=getBoundingClientRect(en,!0),ed.x+=en.clientLeft,ed.y+=en.clientTop):es&&(ed.x=getWindowScrollBarX(es))),{x:eu.left+ec.scrollLeft-ed.x,y:eu.top+ec.scrollTop-ed.y,width:eu.width,height:eu.height}}function getLayoutRect(ee){var en=getBoundingClientRect(ee),er=ee.offsetWidth,eo=ee.offsetHeight;return 1>=Math.abs(en.width-er)&&(er=en.width),1>=Math.abs(en.height-eo)&&(eo=en.height),{x:ee.offsetLeft,y:ee.offsetTop,width:er,height:eo}}function getParentNode(ee){return"html"===getNodeName(ee)?ee:ee.assignedSlot||ee.parentNode||(isShadowRoot(ee)?ee.host:null)||getDocumentElement(ee)}function getScrollParent(ee){return["html","body","#document"].indexOf(getNodeName(ee))>=0?ee.ownerDocument.body:isHTMLElement(ee)&&isScrollParent(ee)?ee:getScrollParent(getParentNode(ee))}function listScrollParents(ee,en){void 0===en&&(en=[]);var er,eo=getScrollParent(ee),ei=eo===(null==(er=ee.ownerDocument)?void 0:er.body),es=getWindow(eo),eu=ei?[es].concat(es.visualViewport||[],isScrollParent(eo)?eo:[]):eo,ec=en.concat(eu);return ei?ec:ec.concat(listScrollParents(getParentNode(eu)))}function isTableElement(ee){return["table","td","th"].indexOf(getNodeName(ee))>=0}function getTrueOffsetParent(ee){return isHTMLElement(ee)&&"fixed"!==getComputedStyle_getComputedStyle(ee).position?ee.offsetParent:null}function getContainingBlock(ee){var en=/firefox/i.test(getUAString());if(/Trident/i.test(getUAString())&&isHTMLElement(ee)&&"fixed"===getComputedStyle_getComputedStyle(ee).position)return null;var er=getParentNode(ee);for(isShadowRoot(er)&&(er=er.host);isHTMLElement(er)&&0>["html","body"].indexOf(getNodeName(er));){var eo=getComputedStyle_getComputedStyle(er);if("none"!==eo.transform||"none"!==eo.perspective||"paint"===eo.contain||-1!==["transform","perspective"].indexOf(eo.willChange)||en&&"filter"===eo.willChange||en&&eo.filter&&"none"!==eo.filter)return er;er=er.parentNode}return null}function getOffsetParent(ee){for(var en=getWindow(ee),er=getTrueOffsetParent(ee);er&&isTableElement(er)&&"static"===getComputedStyle_getComputedStyle(er).position;)er=getTrueOffsetParent(er);return er&&("html"===getNodeName(er)||"body"===getNodeName(er)&&"static"===getComputedStyle_getComputedStyle(er).position)?en:er||getContainingBlock(ee)||en}var t$="top",tB="bottom",tW="right",tG="left",tK="auto",tq=[t$,tB,tW,tG],tY="start",tQ="end",tJ="clippingParents",tX="viewport",t0="popper",t1="reference",t2=tq.reduce(function(ee,en){return ee.concat([en+"-"+tY,en+"-"+tQ])},[]),t4=[].concat(tq,[tK]).reduce(function(ee,en){return ee.concat([en,en+"-"+tY,en+"-"+tQ])},[]),t5=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function order(ee){var en=new Map,er=new Set,eo=[];function sort(ee){er.add(ee.name),[].concat(ee.requires||[],ee.requiresIfExists||[]).forEach(function(ee){if(!er.has(ee)){var eo=en.get(ee);eo&&sort(eo)}}),eo.push(ee)}return ee.forEach(function(ee){en.set(ee.name,ee)}),ee.forEach(function(ee){er.has(ee.name)||sort(ee)}),eo}function orderModifiers(ee){var en=order(ee);return t5.reduce(function(ee,er){return ee.concat(en.filter(function(ee){return ee.phase===er}))},[])}function debounce(ee){var en;return function(){return en||(en=new Promise(function(er){Promise.resolve().then(function(){en=void 0,er(ee())})})),en}}function mergeByName(ee){var en=ee.reduce(function(ee,en){var er=ee[en.name];return ee[en.name]=er?Object.assign({},er,en,{options:Object.assign({},er.options,en.options),data:Object.assign({},er.data,en.data)}):en,ee},{});return Object.keys(en).map(function(ee){return en[ee]})}var t3={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var ee=arguments.length,en=Array(ee),er=0;er<ee;er++)en[er]=arguments[er];return!en.some(function(ee){return!(ee&&"function"==typeof ee.getBoundingClientRect)})}var t6={passive:!0};function getBasePlacement(ee){return ee.split("-")[0]}function getVariation(ee){return ee.split("-")[1]}function getMainAxisFromPlacement(ee){return["top","bottom"].indexOf(ee)>=0?"x":"y"}function computeOffsets(ee){var en,er=ee.reference,eo=ee.element,ei=ee.placement,es=ei?getBasePlacement(ei):null,eu=ei?getVariation(ei):null,ec=er.x+er.width/2-eo.width/2,ed=er.y+er.height/2-eo.height/2;switch(es){case t$:en={x:ec,y:er.y-eo.height};break;case tB:en={x:ec,y:er.y+er.height};break;case tW:en={x:er.x+er.width,y:ed};break;case tG:en={x:er.x-eo.width,y:ed};break;default:en={x:er.x,y:er.y}}var ep=es?getMainAxisFromPlacement(es):null;if(null!=ep){var ef="y"===ep?"height":"width";switch(eu){case tY:en[ep]=en[ep]-(er[ef]/2-eo[ef]/2);break;case tQ:en[ep]=en[ep]+(er[ef]/2-eo[ef]/2)}}return en}var t8={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(ee,en){var er=ee.x,eo=ee.y,ei=en.devicePixelRatio||1;return{x:tH(er*ei)/ei||0,y:tH(eo*ei)/ei||0}}function mapToStyles(ee){var en,er,eo=ee.popper,ei=ee.popperRect,es=ee.placement,eu=ee.variation,ec=ee.offsets,ed=ee.position,ep=ee.gpuAcceleration,ef=ee.adaptive,eh=ee.roundOffsets,em=ee.isFixed,ex=ec.x,eg=void 0===ex?0:ex,ev=ec.y,ey=void 0===ev?0:ev,eb="function"==typeof eh?eh({x:eg,y:ey}):{x:eg,y:ey};eg=eb.x,ey=eb.y;var e_=ec.hasOwnProperty("x"),ew=ec.hasOwnProperty("y"),ek=tG,eC=t$,eT=window;if(ef){var eE=getOffsetParent(eo),eO="clientHeight",eS="clientWidth";eE===getWindow(eo)&&"static"!==getComputedStyle_getComputedStyle(eE=getDocumentElement(eo)).position&&"absolute"===ed&&(eO="scrollHeight",eS="scrollWidth"),(es===t$||(es===tG||es===tW)&&eu===tQ)&&(eC=tB,ey-=(em&&eE===eT&&eT.visualViewport?eT.visualViewport.height:eE[eO])-ei.height,ey*=ep?1:-1),(es===tG||(es===t$||es===tB)&&eu===tQ)&&(ek=tW,eg-=(em&&eE===eT&&eT.visualViewport?eT.visualViewport.width:eE[eS])-ei.width,eg*=ep?1:-1)}var ej=Object.assign({position:ed},ef&&t8),eI=!0===eh?roundOffsetsByDPR({x:eg,y:ey},getWindow(eo)):{x:eg,y:ey};return(eg=eI.x,ey=eI.y,ep)?Object.assign({},ej,((er={})[eC]=ew?"0":"",er[ek]=e_?"0":"",er.transform=1>=(eT.devicePixelRatio||1)?"translate("+eg+"px, "+ey+"px)":"translate3d("+eg+"px, "+ey+"px, 0)",er)):Object.assign({},ej,((en={})[eC]=ew?ey+"px":"",en[ek]=e_?eg+"px":"",en.transform="",en))}function distanceAndSkiddingToXY(ee,en,er){var eo=getBasePlacement(ee),ei=[tG,t$].indexOf(eo)>=0?-1:1,es="function"==typeof er?er(Object.assign({},en,{placement:ee})):er,eu=es[0],ec=es[1];return eu=eu||0,ec=(ec||0)*ei,[tG,tW].indexOf(eo)>=0?{x:ec,y:eu}:{x:eu,y:ec}}var t7={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(ee){return ee.replace(/left|right|bottom|top/g,function(ee){return t7[ee]})}var t9={start:"end",end:"start"};function getOppositeVariationPlacement(ee){return ee.replace(/start|end/g,function(ee){return t9[ee]})}function getViewportRect(ee,en){var er=getWindow(ee),eo=getDocumentElement(ee),ei=er.visualViewport,es=eo.clientWidth,eu=eo.clientHeight,ec=0,ed=0;if(ei){es=ei.width,eu=ei.height;var ep=isLayoutViewport();(ep||!ep&&"fixed"===en)&&(ec=ei.offsetLeft,ed=ei.offsetTop)}return{width:es,height:eu,x:ec+getWindowScrollBarX(ee),y:ed}}function getDocumentRect(ee){var en,er=getDocumentElement(ee),eo=getWindowScroll(ee),ei=null==(en=ee.ownerDocument)?void 0:en.body,es=tV(er.scrollWidth,er.clientWidth,ei?ei.scrollWidth:0,ei?ei.clientWidth:0),eu=tV(er.scrollHeight,er.clientHeight,ei?ei.scrollHeight:0,ei?ei.clientHeight:0),ec=-eo.scrollLeft+getWindowScrollBarX(ee),ed=-eo.scrollTop;return"rtl"===getComputedStyle_getComputedStyle(ei||er).direction&&(ec+=tV(er.clientWidth,ei?ei.clientWidth:0)-es),{width:es,height:eu,x:ec,y:ed}}function contains(ee,en){var er=en.getRootNode&&en.getRootNode();if(ee.contains(en))return!0;if(er&&isShadowRoot(er)){var eo=en;do{if(eo&&ee.isSameNode(eo))return!0;eo=eo.parentNode||eo.host}while(eo)}return!1}function rectToClientRect(ee){return Object.assign({},ee,{left:ee.x,top:ee.y,right:ee.x+ee.width,bottom:ee.y+ee.height})}function getInnerBoundingClientRect(ee,en){var er=getBoundingClientRect(ee,!1,"fixed"===en);return er.top=er.top+ee.clientTop,er.left=er.left+ee.clientLeft,er.bottom=er.top+ee.clientHeight,er.right=er.left+ee.clientWidth,er.width=ee.clientWidth,er.height=ee.clientHeight,er.x=er.left,er.y=er.top,er}function getClientRectFromMixedType(ee,en,er){return en===tX?rectToClientRect(getViewportRect(ee,er)):isElement(en)?getInnerBoundingClientRect(en,er):rectToClientRect(getDocumentRect(getDocumentElement(ee)))}function getClippingParents(ee){var en=listScrollParents(getParentNode(ee)),er=["absolute","fixed"].indexOf(getComputedStyle_getComputedStyle(ee).position)>=0&&isHTMLElement(ee)?getOffsetParent(ee):ee;return isElement(er)?en.filter(function(ee){return isElement(ee)&&contains(ee,er)&&"body"!==getNodeName(ee)}):[]}function getClippingRect(ee,en,er,eo){var ei=[].concat("clippingParents"===en?getClippingParents(ee):[].concat(en),[er]),es=ei[0],eu=ei.reduce(function(en,er){var ei=getClientRectFromMixedType(ee,er,eo);return en.top=tV(ei.top,en.top),en.right=tU(ei.right,en.right),en.bottom=tU(ei.bottom,en.bottom),en.left=tV(ei.left,en.left),en},getClientRectFromMixedType(ee,es,eo));return eu.width=eu.right-eu.left,eu.height=eu.bottom-eu.top,eu.x=eu.left,eu.y=eu.top,eu}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(ee){return Object.assign({},getFreshSideObject(),ee)}function expandToHashMap(ee,en){return en.reduce(function(en,er){return en[er]=ee,en},{})}function detectOverflow(ee,en){void 0===en&&(en={});var er=en,eo=er.placement,ei=void 0===eo?ee.placement:eo,es=er.strategy,eu=void 0===es?ee.strategy:es,ec=er.boundary,ed=void 0===ec?tJ:ec,ep=er.rootBoundary,ef=void 0===ep?tX:ep,eh=er.elementContext,em=void 0===eh?t0:eh,ex=er.altBoundary,eg=void 0!==ex&&ex,ev=er.padding,ey=void 0===ev?0:ev,eb=mergePaddingObject("number"!=typeof ey?ey:expandToHashMap(ey,tq)),e_=em===t0?t1:t0,ew=ee.rects.popper,ek=ee.elements[eg?e_:em],eC=getClippingRect(isElement(ek)?ek:ek.contextElement||getDocumentElement(ee.elements.popper),ed,ef,eu),eT=getBoundingClientRect(ee.elements.reference),eE=computeOffsets({reference:eT,element:ew,strategy:"absolute",placement:ei}),eO=rectToClientRect(Object.assign({},ew,eE)),eS=em===t0?eO:eT,ej={top:eC.top-eS.top+eb.top,bottom:eS.bottom-eC.bottom+eb.bottom,left:eC.left-eS.left+eb.left,right:eS.right-eC.right+eb.right},eI=ee.modifiersData.offset;if(em===t0&&eI){var eP=eI[ei];Object.keys(ej).forEach(function(ee){var en=[tW,tB].indexOf(ee)>=0?1:-1,er=[t$,tB].indexOf(ee)>=0?"y":"x";ej[ee]+=eP[er]*en})}return ej}function computeAutoPlacement(ee,en){void 0===en&&(en={});var er=en,eo=er.placement,ei=er.boundary,es=er.rootBoundary,eu=er.padding,ec=er.flipVariations,ed=er.allowedAutoPlacements,ep=void 0===ed?t4:ed,ef=getVariation(eo),eh=ef?ec?t2:t2.filter(function(ee){return getVariation(ee)===ef}):tq,em=eh.filter(function(ee){return ep.indexOf(ee)>=0});0===em.length&&(em=eh);var ex=em.reduce(function(en,er){return en[er]=detectOverflow(ee,{placement:er,boundary:ei,rootBoundary:es,padding:eu})[getBasePlacement(er)],en},{});return Object.keys(ex).sort(function(ee,en){return ex[ee]-ex[en]})}function getExpandedFallbackPlacements(ee){if(getBasePlacement(ee)===tK)return[];var en=getOppositePlacement(ee);return[getOppositeVariationPlacement(ee),en,getOppositeVariationPlacement(en)]}function getAltAxis(ee){return"x"===ee?"y":"x"}function within(ee,en,er){return tV(ee,tU(en,er))}function withinMaxClamp(ee,en,er){var eo=within(ee,en,er);return eo>er?er:eo}var toPaddingObject=function(ee,en){return mergePaddingObject("number"!=typeof(ee="function"==typeof ee?ee(Object.assign({},en.rects,{placement:en.placement})):ee)?ee:expandToHashMap(ee,tq))};function getSideOffsets(ee,en,er){return void 0===er&&(er={x:0,y:0}),{top:ee.top-en.height-er.y,right:ee.right-en.width+er.x,bottom:ee.bottom-en.height+er.y,left:ee.left-en.width-er.x}}function isAnySideFullyClipped(ee){return[t$,tW,tB,tG].some(function(en){return ee[en]>=0})}var ne=function(ee){void 0===ee&&(ee={});var en=ee,er=en.defaultModifiers,eo=void 0===er?[]:er,ei=en.defaultOptions,es=void 0===ei?t3:ei;return function(ee,en,er){void 0===er&&(er=es);var ei={placement:"bottom",orderedModifiers:[],options:Object.assign({},t3,es),modifiersData:{},elements:{reference:ee,popper:en},attributes:{},styles:{}},eu=[],ec=!1,ed={state:ei,setOptions:function(er){var eu="function"==typeof er?er(ei.options):er;cleanupModifierEffects(),ei.options=Object.assign({},es,ei.options,eu),ei.scrollParents={reference:isElement(ee)?listScrollParents(ee):ee.contextElement?listScrollParents(ee.contextElement):[],popper:listScrollParents(en)};var ec=orderModifiers(mergeByName([].concat(eo,ei.options.modifiers)));return ei.orderedModifiers=ec.filter(function(ee){return ee.enabled}),runModifierEffects(),ed.update()},forceUpdate:function(){if(!ec){var ee=ei.elements,en=ee.reference,er=ee.popper;if(areValidElements(en,er)){ei.rects={reference:getCompositeRect(en,getOffsetParent(er),"fixed"===ei.options.strategy),popper:getLayoutRect(er)},ei.reset=!1,ei.placement=ei.options.placement,ei.orderedModifiers.forEach(function(ee){return ei.modifiersData[ee.name]=Object.assign({},ee.data)});for(var eo=0;eo<ei.orderedModifiers.length;eo++){if(!0===ei.reset){ei.reset=!1,eo=-1;continue}var es=ei.orderedModifiers[eo],eu=es.fn,ep=es.options,ef=void 0===ep?{}:ep,eh=es.name;"function"==typeof eu&&(ei=eu({state:ei,options:ef,name:eh,instance:ed})||ei)}}}},update:debounce(function(){return new Promise(function(ee){ed.forceUpdate(),ee(ei)})}),destroy:function(){cleanupModifierEffects(),ec=!0}};if(!areValidElements(ee,en))return ed;function runModifierEffects(){ei.orderedModifiers.forEach(function(ee){var en=ee.name,er=ee.options,eo=void 0===er?{}:er,es=ee.effect;if("function"==typeof es){var ec=es({state:ei,name:en,instance:ed,options:eo}),noopFn=function(){};eu.push(ec||noopFn)}})}function cleanupModifierEffects(){eu.forEach(function(ee){return ee()}),eu=[]}return ed.setOptions(er).then(function(ee){!ec&&er.onFirstUpdate&&er.onFirstUpdate(ee)}),ed}}({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(ee){var en=ee.state,er=ee.instance,eo=ee.options,ei=eo.scroll,es=void 0===ei||ei,eu=eo.resize,ec=void 0===eu||eu,ed=getWindow(en.elements.popper),ep=[].concat(en.scrollParents.reference,en.scrollParents.popper);return es&&ep.forEach(function(ee){ee.addEventListener("scroll",er.update,t6)}),ec&&ed.addEventListener("resize",er.update,t6),function(){es&&ep.forEach(function(ee){ee.removeEventListener("scroll",er.update,t6)}),ec&&ed.removeEventListener("resize",er.update,t6)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(ee){var en=ee.state,er=ee.name;en.modifiersData[er]=computeOffsets({reference:en.rects.reference,element:en.rects.popper,strategy:"absolute",placement:en.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(ee){var en=ee.state,er=ee.options,eo=er.gpuAcceleration,ei=void 0===eo||eo,es=er.adaptive,eu=void 0===es||es,ec=er.roundOffsets,ed=void 0===ec||ec,ep={placement:getBasePlacement(en.placement),variation:getVariation(en.placement),popper:en.elements.popper,popperRect:en.rects.popper,gpuAcceleration:ei,isFixed:"fixed"===en.options.strategy};null!=en.modifiersData.popperOffsets&&(en.styles.popper=Object.assign({},en.styles.popper,mapToStyles(Object.assign({},ep,{offsets:en.modifiersData.popperOffsets,position:en.options.strategy,adaptive:eu,roundOffsets:ed})))),null!=en.modifiersData.arrow&&(en.styles.arrow=Object.assign({},en.styles.arrow,mapToStyles(Object.assign({},ep,{offsets:en.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:ed})))),en.attributes.popper=Object.assign({},en.attributes.popper,{"data-popper-placement":en.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(ee){var en=ee.state;Object.keys(en.elements).forEach(function(ee){var er=en.styles[ee]||{},eo=en.attributes[ee]||{},ei=en.elements[ee];isHTMLElement(ei)&&getNodeName(ei)&&(Object.assign(ei.style,er),Object.keys(eo).forEach(function(ee){var en=eo[ee];!1===en?ei.removeAttribute(ee):ei.setAttribute(ee,!0===en?"":en)}))})},effect:function(ee){var en=ee.state,er={popper:{position:en.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(en.elements.popper.style,er.popper),en.styles=er,en.elements.arrow&&Object.assign(en.elements.arrow.style,er.arrow),function(){Object.keys(en.elements).forEach(function(ee){var eo=en.elements[ee],ei=en.attributes[ee]||{},es=Object.keys(en.styles.hasOwnProperty(ee)?en.styles[ee]:er[ee]).reduce(function(ee,en){return ee[en]="",ee},{});isHTMLElement(eo)&&getNodeName(eo)&&(Object.assign(eo.style,es),Object.keys(ei).forEach(function(ee){eo.removeAttribute(ee)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(ee){var en=ee.state,er=ee.options,eo=ee.name,ei=er.offset,es=void 0===ei?[0,0]:ei,eu=t4.reduce(function(ee,er){return ee[er]=distanceAndSkiddingToXY(er,en.rects,es),ee},{}),ec=eu[en.placement],ed=ec.x,ep=ec.y;null!=en.modifiersData.popperOffsets&&(en.modifiersData.popperOffsets.x+=ed,en.modifiersData.popperOffsets.y+=ep),en.modifiersData[eo]=eu}},{name:"flip",enabled:!0,phase:"main",fn:function(ee){var en=ee.state,er=ee.options,eo=ee.name;if(!en.modifiersData[eo]._skip){for(var ei=er.mainAxis,es=void 0===ei||ei,eu=er.altAxis,ec=void 0===eu||eu,ed=er.fallbackPlacements,ep=er.padding,ef=er.boundary,eh=er.rootBoundary,em=er.altBoundary,ex=er.flipVariations,eg=void 0===ex||ex,ev=er.allowedAutoPlacements,ey=en.options.placement,eb=getBasePlacement(ey)===ey,e_=ed||(eb||!eg?[getOppositePlacement(ey)]:getExpandedFallbackPlacements(ey)),ew=[ey].concat(e_).reduce(function(ee,er){return ee.concat(getBasePlacement(er)===tK?computeAutoPlacement(en,{placement:er,boundary:ef,rootBoundary:eh,padding:ep,flipVariations:eg,allowedAutoPlacements:ev}):er)},[]),ek=en.rects.reference,eC=en.rects.popper,eT=new Map,eE=!0,eO=ew[0],eS=0;eS<ew.length;eS++){var ej=ew[eS],eI=getBasePlacement(ej),eP=getVariation(ej)===tY,eN=[t$,tB].indexOf(eI)>=0,eR=eN?"width":"height",eZ=detectOverflow(en,{placement:ej,boundary:ef,rootBoundary:eh,altBoundary:em,padding:ep}),eM=eN?eP?tW:tG:eP?tB:t$;ek[eR]>eC[eR]&&(eM=getOppositePlacement(eM));var eA=getOppositePlacement(eM),eL=[];if(es&&eL.push(eZ[eI]<=0),ec&&eL.push(eZ[eM]<=0,eZ[eA]<=0),eL.every(function(ee){return ee})){eO=ej,eE=!1;break}eT.set(ej,eL)}if(eE)for(var eD=eg?3:1,_loop=function(ee){var en=ew.find(function(en){var er=eT.get(en);if(er)return er.slice(0,ee).every(function(ee){return ee})});if(en)return eO=en,"break"},eF=eD;eF>0&&"break"!==_loop(eF);eF--);en.placement!==eO&&(en.modifiersData[eo]._skip=!0,en.placement=eO,en.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(ee){var en=ee.state,er=ee.options,eo=ee.name,ei=er.mainAxis,es=void 0===ei||ei,eu=er.altAxis,ec=void 0!==eu&&eu,ed=er.boundary,ep=er.rootBoundary,ef=er.altBoundary,eh=er.padding,em=er.tether,ex=void 0===em||em,eg=er.tetherOffset,ev=void 0===eg?0:eg,ey=detectOverflow(en,{boundary:ed,rootBoundary:ep,padding:eh,altBoundary:ef}),eb=getBasePlacement(en.placement),e_=getVariation(en.placement),ew=!e_,ek=getMainAxisFromPlacement(eb),eC=getAltAxis(ek),eT=en.modifiersData.popperOffsets,eE=en.rects.reference,eO=en.rects.popper,eS="function"==typeof ev?ev(Object.assign({},en.rects,{placement:en.placement})):ev,ej="number"==typeof eS?{mainAxis:eS,altAxis:eS}:Object.assign({mainAxis:0,altAxis:0},eS),eI=en.modifiersData.offset?en.modifiersData.offset[en.placement]:null,eP={x:0,y:0};if(eT){if(es){var eN,eR="y"===ek?t$:tG,eZ="y"===ek?tB:tW,eM="y"===ek?"height":"width",eA=eT[ek],eL=eA+ey[eR],eD=eA-ey[eZ],eF=ex?-eO[eM]/2:0,ez=e_===tY?eE[eM]:eO[eM],eV=e_===tY?-eO[eM]:-eE[eM],eU=en.elements.arrow,eH=ex&&eU?getLayoutRect(eU):{width:0,height:0},e$=en.modifiersData["arrow#persistent"]?en.modifiersData["arrow#persistent"].padding:getFreshSideObject(),eB=e$[eR],eW=e$[eZ],eG=within(0,eE[eM],eH[eM]),eK=ew?eE[eM]/2-eF-eG-eB-ej.mainAxis:ez-eG-eB-ej.mainAxis,eY=ew?-eE[eM]/2+eF+eG+eW+ej.mainAxis:eV+eG+eW+ej.mainAxis,eQ=en.elements.arrow&&getOffsetParent(en.elements.arrow),eJ=eQ?"y"===ek?eQ.clientTop||0:eQ.clientLeft||0:0,eX=null!=(eN=null==eI?void 0:eI[ek])?eN:0,e0=eA+eK-eX-eJ,e1=eA+eY-eX,e2=within(ex?tU(eL,e0):eL,eA,ex?tV(eD,e1):eD);eT[ek]=e2,eP[ek]=e2-eA}if(ec){var e4,e5="x"===ek?t$:tG,e3="x"===ek?tB:tW,e6=eT[eC],e8="y"===eC?"height":"width",e7=e6+ey[e5],e9=e6-ey[e3],tt=-1!==[t$,tG].indexOf(eb),tn=null!=(e4=null==eI?void 0:eI[eC])?e4:0,tr=tt?e7:e6-eE[e8]-eO[e8]-tn+ej.altAxis,to=tt?e6+eE[e8]+eO[e8]-tn-ej.altAxis:e9,ti=ex&&tt?withinMaxClamp(tr,e6,to):within(ex?tr:e7,e6,ex?to:e9);eT[eC]=ti,eP[eC]=ti-e6}en.modifiersData[eo]=eP}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(ee){var en,er=ee.state,eo=ee.name,ei=ee.options,es=er.elements.arrow,eu=er.modifiersData.popperOffsets,ec=getBasePlacement(er.placement),ed=getMainAxisFromPlacement(ec),ep=[tG,tW].indexOf(ec)>=0?"height":"width";if(es&&eu){var ef=toPaddingObject(ei.padding,er),eh=getLayoutRect(es),em="y"===ed?t$:tG,ex="y"===ed?tB:tW,eg=er.rects.reference[ep]+er.rects.reference[ed]-eu[ed]-er.rects.popper[ep],ev=eu[ed]-er.rects.reference[ed],ey=getOffsetParent(es),eb=ey?"y"===ed?ey.clientHeight||0:ey.clientWidth||0:0,e_=eg/2-ev/2,ew=ef[em],ek=eb-eh[ep]-ef[ex],eC=eb/2-eh[ep]/2+e_,eT=within(ew,eC,ek),eE=ed;er.modifiersData[eo]=((en={})[eE]=eT,en.centerOffset=eT-eC,en)}},effect:function(ee){var en=ee.state,er=ee.options.element,eo=void 0===er?"[data-popper-arrow]":er;null!=eo&&("string"!=typeof eo||(eo=en.elements.popper.querySelector(eo)))&&contains(en.elements.popper,eo)&&(en.elements.arrow=eo)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(ee){var en=ee.state,er=ee.name,eo=en.rects.reference,ei=en.rects.popper,es=en.modifiersData.preventOverflow,eu=detectOverflow(en,{elementContext:"reference"}),ec=detectOverflow(en,{altBoundary:!0}),ed=getSideOffsets(eu,eo),ep=getSideOffsets(ec,ei,es),ef=isAnySideFullyClipped(ed),eh=isAnySideFullyClipped(ep);en.modifiersData[er]={referenceClippingOffsets:ed,popperEscapeOffsets:ep,isReferenceHidden:ef,hasPopperEscaped:eh},en.attributes.popper=Object.assign({},en.attributes.popper,{"data-popper-reference-hidden":ef,"data-popper-escaped":eh})}}]}),nt=er(5125),nn=er.n(nt);function escapeStringRegexp(ee){if("string"!=typeof ee)throw TypeError("Expected a string");return ee.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var nr=er(8291);function use_disposables_p(){let[ee]=(0,ek.useState)(nr.k);return(0,ek.useEffect)(()=>()=>ee.dispose(),[ee]),ee}var no=er(8141),ni=er(358);function use_flags_c(ee=0){let[en,er]=(0,ek.useState)(ee),eo=(0,ni.t)(),ei=(0,ek.useCallback)(ee=>{eo.current&&er(en=>en|ee)},[en,eo]),es=(0,ek.useCallback)(ee=>!!(en&ee),[en]);return{flags:en,addFlag:ei,hasFlag:es,removeFlag:(0,ek.useCallback)(ee=>{eo.current&&er(en=>en&~ee)},[er,eo]),toggleFlag:(0,ek.useCallback)(ee=>{eo.current&&er(en=>en^ee)},[er])}}var ns=er(5701),nl=er(3910),nu=er(9896),nc=er(1596),nd=er(4228);function once_l(ee){let en={called:!1};return(...er)=>{if(!en.called)return en.called=!0,ee(...er)}}function transition_g(ee,...en){ee&&en.length>0&&ee.classList.add(...en)}function transition_v(ee,...en){ee&&en.length>0&&ee.classList.remove(...en)}function transition_b(ee,en){let er=(0,nr.k)();if(!ee)return er.dispose;let{transitionDuration:eo,transitionDelay:ei}=getComputedStyle(ee),[es,eu]=[eo,ei].map(ee=>{let[en=0]=ee.split(",").filter(Boolean).map(ee=>ee.includes("ms")?parseFloat(ee):1e3*parseFloat(ee)).sort((ee,en)=>en-ee);return en}),ec=es+eu;if(0!==ec){er.group(er=>{er.setTimeout(()=>{en(),er.dispose()},ec),er.addEventListener(ee,"transitionrun",ee=>{ee.target===ee.currentTarget&&er.dispose()})});let eo=er.addEventListener(ee,"transitionend",ee=>{ee.target===ee.currentTarget&&(en(),eo())})}else en();return er.add(()=>en()),er.dispose}function M(ee,en,er,eo){let ei=er?"enter":"leave",es=(0,nr.k)(),eu=void 0!==eo?once_l(eo):()=>{};"enter"===ei&&(ee.removeAttribute("hidden"),ee.style.display="");let ec=(0,nd.E)(ei,{enter:()=>en.enter,leave:()=>en.leave}),ed=(0,nd.E)(ei,{enter:()=>en.enterTo,leave:()=>en.leaveTo}),ep=(0,nd.E)(ei,{enter:()=>en.enterFrom,leave:()=>en.leaveFrom});return transition_v(ee,...en.base,...en.enter,...en.enterTo,...en.enterFrom,...en.leave,...en.leaveFrom,...en.leaveTo,...en.entered),transition_g(ee,...en.base,...ec,...ep),es.nextFrame(()=>{transition_v(ee,...en.base,...ec,...ep),transition_g(ee,...en.base,...ec,...ed),transition_b(ee,()=>(transition_v(ee,...en.base,...ec),transition_g(ee,...en.base,...en.entered),eu()))}),es.dispose}function use_transition_D({immediate:ee,container:en,direction:er,classes:eo,onStart:ei,onStop:es}){let eu=(0,ni.t)(),ec=use_disposables_p(),ed=(0,nl.E)(er);(0,ns.e)(()=>{ee&&(ed.current="enter")},[ee]),(0,ns.e)(()=>{let ee=(0,nr.k)();ec.add(ee.dispose);let er=en.current;if(er&&"idle"!==ed.current&&eu.current)return ee.dispose(),ei.current(ed.current),ee.add(M(er,eo.current,"enter"===ed.current,()=>{ee.dispose(),es.current(ed.current)})),ee.dispose},[er])}let np=(0,ek.createContext)(null);np.displayName="OpenClosedContext";var nf=((ei=nf||{})[ei.Open=1]="Open",ei[ei.Closed=2]="Closed",ei[ei.Closing=4]="Closing",ei[ei.Opening=8]="Opening",ei);function open_closed_u(){return(0,ek.useContext)(np)}function open_closed_s({value:ee,children:en}){return ek.createElement(np.Provider,{value:ee},en)}var nh=er(8805),nm=er(8372);function transition_S(ee=""){return ee.split(/\s+/).filter(ee=>ee.length>1)}let nx=(0,ek.createContext)(null);nx.displayName="TransitionContext";var ng=((es=ng||{}).Visible="visible",es.Hidden="hidden",es);function ye(){let ee=(0,ek.useContext)(nx);if(null===ee)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return ee}function xe(){let ee=(0,ek.useContext)(nv);if(null===ee)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return ee}let nv=(0,ek.createContext)(null);function U(ee){return"children"in ee?U(ee.children):ee.current.filter(({el:ee})=>null!==ee.current).filter(({state:ee})=>"visible"===ee).length>0}function se(ee,en){let er=(0,nl.E)(ee),eo=(0,ek.useRef)([]),ei=(0,ni.t)(),es=use_disposables_p(),eu=(0,no.z)((ee,en=nm.l4.Hidden)=>{let eu=eo.current.findIndex(({el:en})=>en===ee);-1!==eu&&((0,nd.E)(en,{[nm.l4.Unmount](){eo.current.splice(eu,1)},[nm.l4.Hidden](){eo.current[eu].state="hidden"}}),es.microTask(()=>{var ee;!U(eo)&&ei.current&&(null==(ee=er.current)||ee.call(er))}))}),ec=(0,no.z)(ee=>{let en=eo.current.find(({el:en})=>en===ee);return en?"visible"!==en.state&&(en.state="visible"):eo.current.push({el:ee,state:"visible"}),()=>eu(ee,nm.l4.Unmount)}),ed=(0,ek.useRef)([]),ep=(0,ek.useRef)(Promise.resolve()),ef=(0,ek.useRef)({enter:[],leave:[],idle:[]}),eh=(0,no.z)((ee,er,eo)=>{ed.current.splice(0),en&&(en.chains.current[er]=en.chains.current[er].filter(([en])=>en!==ee)),null==en||en.chains.current[er].push([ee,new Promise(ee=>{ed.current.push(ee)})]),null==en||en.chains.current[er].push([ee,new Promise(ee=>{Promise.all(ef.current[er].map(([ee,en])=>en)).then(()=>ee())})]),"enter"===er?ep.current=ep.current.then(()=>null==en?void 0:en.wait.current).then(()=>eo(er)):eo(er)}),em=(0,no.z)((ee,en,er)=>{Promise.all(ef.current[en].splice(0).map(([ee,en])=>en)).then(()=>{var ee;null==(ee=ed.current.shift())||ee()}).then(()=>er(en))});return(0,ek.useMemo)(()=>({children:eo,register:ec,unregister:eu,onStart:eh,onStop:em,wait:ep,chains:ef}),[ec,eu,eo,eh,em,ef,ep])}function Ne(){}nv.displayName="NestingContext";let ny=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function ae(ee){var en;let er={};for(let eo of ny)er[eo]=null!=(en=ee[eo])?en:Ne;return er}function Re(ee){let en=(0,ek.useRef)(ae(ee));return(0,ek.useEffect)(()=>{en.current=ae(ee)},[ee]),en}let nb="div",n_=nm.AN.RenderStrategy;function He(ee,en){var er,eo;let{beforeEnter:ei,afterEnter:es,beforeLeave:eu,afterLeave:ec,enter:ed,enterFrom:ep,enterTo:ef,entered:eh,leave:em,leaveFrom:ex,leaveTo:eg,...ev}=ee,ey=(0,ek.useRef)(null),eb=(0,nc.T)(ey,en),e_=null==(er=ev.unmount)||er?nm.l4.Unmount:nm.l4.Hidden,{show:ew,appear:eC,initial:eT}=ye(),[eE,eO]=(0,ek.useState)(ew?"visible":"hidden"),eS=xe(),{register:ej,unregister:eI}=eS;(0,ek.useEffect)(()=>ej(ey),[ej,ey]),(0,ek.useEffect)(()=>{if(e_===nm.l4.Hidden&&ey.current){if(ew&&"visible"!==eE){eO("visible");return}return(0,nd.E)(eE,{hidden:()=>eI(ey),visible:()=>ej(ey)})}},[eE,ey,ej,eI,ew,e_]);let eP=(0,nl.E)({base:transition_S(ev.className),enter:transition_S(ed),enterFrom:transition_S(ep),enterTo:transition_S(ef),entered:transition_S(eh),leave:transition_S(em),leaveFrom:transition_S(ex),leaveTo:transition_S(eg)}),eN=Re({beforeEnter:ei,afterEnter:es,beforeLeave:eu,afterLeave:ec}),eR=(0,nu.H)();(0,ek.useEffect)(()=>{if(eR&&"visible"===eE&&null===ey.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[ey,eE,eR]);let eZ=eT&&!eC,eM=eC&&ew&&eT,eA=!eR||eZ?"idle":ew?"enter":"leave",eL=use_flags_c(0),eD=(0,no.z)(ee=>(0,nd.E)(ee,{enter:()=>{eL.addFlag(nf.Opening),eN.current.beforeEnter()},leave:()=>{eL.addFlag(nf.Closing),eN.current.beforeLeave()},idle:()=>{}})),eF=(0,no.z)(ee=>(0,nd.E)(ee,{enter:()=>{eL.removeFlag(nf.Opening),eN.current.afterEnter()},leave:()=>{eL.removeFlag(nf.Closing),eN.current.afterLeave()},idle:()=>{}})),ez=se(()=>{eO("hidden"),eI(ey)},eS),eV=(0,ek.useRef)(!1);use_transition_D({immediate:eM,container:ey,classes:eP,direction:eA,onStart:(0,nl.E)(ee=>{eV.current=!0,ez.onStart(ey,ee,eD)}),onStop:(0,nl.E)(ee=>{eV.current=!1,ez.onStop(ey,ee,eF),"leave"!==ee||U(ez)||(eO("hidden"),eI(ey))})});let eU=ev,eH={ref:eb};return eM?eU={...eU,className:(0,nh.A)(ev.className,...eP.current.enter,...eP.current.enterFrom)}:eV.current&&(eU.className=(0,nh.A)(ev.className,null==(eo=ey.current)?void 0:eo.className),""===eU.className&&delete eU.className),ek.createElement(nv.Provider,{value:ez},ek.createElement(open_closed_s,{value:(0,nd.E)(eE,{visible:nf.Open,hidden:nf.Closed})|eL.flags},(0,nm.sY)({ourProps:eH,theirProps:eU,defaultTag:nb,features:n_,visible:"visible"===eE,name:"Transition.Child"})))}function Fe(ee,en){let{show:er,appear:eo=!1,unmount:ei=!0,...es}=ee,eu=(0,ek.useRef)(null),ec=(0,nc.T)(eu,en);(0,nu.H)();let ed=open_closed_u();if(void 0===er&&null!==ed&&(er=(ed&nf.Open)===nf.Open),![!0,!1].includes(er))throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[ep,ef]=(0,ek.useState)(er?"visible":"hidden"),eh=se(()=>{ef("hidden")}),[em,ex]=(0,ek.useState)(!0),eg=(0,ek.useRef)([er]);(0,ns.e)(()=>{!1!==em&&eg.current[eg.current.length-1]!==er&&(eg.current.push(er),ex(!1))},[eg,er]);let ev=(0,ek.useMemo)(()=>({show:er,appear:eo,initial:em}),[er,eo,em]);(0,ek.useEffect)(()=>{if(er)ef("visible");else if(U(eh)){let ee=eu.current;if(!ee)return;let en=ee.getBoundingClientRect();0===en.x&&0===en.y&&0===en.width&&0===en.height&&ef("hidden")}else ef("hidden")},[er,eh]);let ey={unmount:ei},eb=(0,no.z)(()=>{var en;em&&ex(!1),null==(en=ee.beforeEnter)||en.call(ee)}),e_=(0,no.z)(()=>{var en;em&&ex(!1),null==(en=ee.beforeLeave)||en.call(ee)});return ek.createElement(nv.Provider,{value:eh},ek.createElement(nx.Provider,{value:ev},(0,nm.sY)({ourProps:{...ey,as:ek.Fragment,children:ek.createElement(nk,{ref:ec,...ey,...es,beforeEnter:eb,beforeLeave:e_})},theirProps:{},defaultTag:ek.Fragment,features:n_,visible:"visible"===ep,name:"Transition"})))}function _e(ee,en){let er=null!==(0,ek.useContext)(nx),eo=null!==open_closed_u();return ek.createElement(ek.Fragment,null,!er&&eo?ek.createElement(nw,{ref:en,...ee}):ek.createElement(nk,{ref:en,...ee}))}let nw=(0,nm.yV)(Fe),nk=(0,nm.yV)(He),nC=Object.assign(nw,{Child:(0,nm.yV)(_e),Root:nw});var nT=er(336);function use_computed_i(ee,en){let[er,eo]=(0,ek.useState)(ee),ei=(0,nl.E)(ee);return(0,ns.e)(()=>eo(ei.current),[ei,eo,...en]),er}function use_controllable_T(ee,en,er){let[eo,ei]=(0,ek.useState)(er),es=void 0!==ee,eu=(0,ek.useRef)(es),ec=(0,ek.useRef)(!1),ed=(0,ek.useRef)(!1);return!es||eu.current||ec.current?es||!eu.current||ed.current||(ed.current=!0,eu.current=es,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(ec.current=!0,eu.current=es,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[es?ee:eo,(0,no.z)(ee=>(es||ei(ee),null==en?void 0:en(ee)))]}var nE=er(3788),nO=er(1858);function t(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function platform_i(){return/Android/gi.test(window.navigator.userAgent)}function platform_n(){return t()||platform_i()}function use_document_event_d(ee,en,er){let eo=(0,nl.E)(en);(0,ek.useEffect)(()=>{function t(ee){eo.current(ee)}return document.addEventListener(ee,t,er),()=>document.removeEventListener(ee,t,er)},[ee,er])}function use_window_event_s(ee,en,er){let eo=(0,nl.E)(en);(0,ek.useEffect)(()=>{function t(ee){eo.current(ee)}return window.addEventListener(ee,t,er),()=>window.removeEventListener(ee,t,er)},[ee,er])}function use_outside_click_y(ee,en,er=!0){let eo=(0,ek.useRef)(!1);function c(er,ei){if(!eo.current||er.defaultPrevented)return;let es=ei(er);if(null!==es&&es.getRootNode().contains(es)&&es.isConnected){for(let en of function u(ee){return"function"==typeof ee?u(ee()):Array.isArray(ee)||ee instanceof Set?ee:[ee]}(ee)){if(null===en)continue;let ee=en instanceof HTMLElement?en:en.current;if(null!=ee&&ee.contains(es)||er.composed&&er.composedPath().includes(ee))return}return(0,nO.sP)(es,nO.tJ.Loose)||-1===es.tabIndex||er.preventDefault(),en(er,es)}}(0,ek.useEffect)(()=>{requestAnimationFrame(()=>{eo.current=er})},[er]);let ei=(0,ek.useRef)(null);use_document_event_d("pointerdown",ee=>{var en,er;eo.current&&(ei.current=(null==(er=null==(en=ee.composedPath)?void 0:en.call(ee))?void 0:er[0])||ee.target)},!0),use_document_event_d("mousedown",ee=>{var en,er;eo.current&&(ei.current=(null==(er=null==(en=ee.composedPath)?void 0:en.call(ee))?void 0:er[0])||ee.target)},!0),use_document_event_d("click",ee=>{platform_n()||ei.current&&(c(ee,()=>ei.current),ei.current=null)},!0),use_document_event_d("touchend",ee=>c(ee,()=>ee.target instanceof HTMLElement?ee.target:null),!0),use_window_event_s("blur",ee=>c(ee,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var nS=er(5751);let nj=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function o(ee){var en,er;let eo=null!=(en=ee.innerText)?en:"",ei=ee.cloneNode(!0);if(!(ei instanceof HTMLElement))return eo;let es=!1;for(let ee of ei.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))ee.remove(),es=!0;let eu=es?null!=(er=ei.innerText)?er:"":eo;return nj.test(eu)&&(eu=eu.replace(nj,"")),eu}function get_text_value_g(ee){let en=ee.getAttribute("aria-label");if("string"==typeof en)return en.trim();let er=ee.getAttribute("aria-labelledby");if(er){let ee=er.split(" ").map(ee=>{let en=document.getElementById(ee);if(en){let ee=en.getAttribute("aria-label");return"string"==typeof ee?ee.trim():o(en).trim()}return null}).filter(Boolean);if(ee.length>0)return ee.join(", ")}return o(ee).trim()}function use_text_value_s(ee){let en=(0,ek.useRef)(""),er=(0,ek.useRef)("");return(0,no.z)(()=>{let eo=ee.current;if(!eo)return"";let ei=eo.innerText;if(en.current===ei)return er.current;let es=get_text_value_g(eo).trim().toLowerCase();return en.current=ei,er.current=es,es})}function use_tracked_pointer_t(ee){return[ee.screenX,ee.screenY]}function use_tracked_pointer_u(){let ee=(0,ek.useRef)([-1,-1]);return{wasMoved(en){let er=use_tracked_pointer_t(en);return(ee.current[0]!==er[0]||ee.current[1]!==er[1])&&(ee.current=er,!0)},update(en){ee.current=use_tracked_pointer_t(en)}}}var nI=er(6769);function bugs_r(ee){let en=ee.parentElement,er=null;for(;en&&!(en instanceof HTMLFieldSetElement);)en instanceof HTMLLegendElement&&(er=en),en=en.parentElement;let eo=(null==en?void 0:en.getAttribute("disabled"))==="";return!(eo&&bugs_i(er))&&eo}function bugs_i(ee){if(!ee)return!1;let en=ee.previousElementSibling;for(;null!==en;){if(en instanceof HTMLLegendElement)return!1;en=en.previousElementSibling}return!0}function calculate_active_index_u(ee){throw Error("Unexpected object: "+ee)}var nP=((eu=nP||{})[eu.First=0]="First",eu[eu.Previous=1]="Previous",eu[eu.Next=2]="Next",eu[eu.Last=3]="Last",eu[eu.Specific=4]="Specific",eu[eu.Nothing=5]="Nothing",eu);function calculate_active_index_f(ee,en){let er=en.resolveItems();if(er.length<=0)return null;let eo=en.resolveActiveIndex(),ei=null!=eo?eo:-1;switch(ee.focus){case 0:for(let ee=0;ee<er.length;++ee)if(!en.resolveDisabled(er[ee],ee,er))return ee;return eo;case 1:for(let ee=ei-1;ee>=0;--ee)if(!en.resolveDisabled(er[ee],ee,er))return ee;return eo;case 2:for(let ee=ei+1;ee<er.length;++ee)if(!en.resolveDisabled(er[ee],ee,er))return ee;return eo;case 3:for(let ee=er.length-1;ee>=0;--ee)if(!en.resolveDisabled(er[ee],ee,er))return ee;return eo;case 4:for(let eo=0;eo<er.length;++eo)if(en.resolveId(er[eo],eo,er)===ee.id)return eo;return eo;case 5:return null;default:calculate_active_index_u(ee)}}function form_e(ee={},en=null,er=[]){for(let[eo,ei]of Object.entries(ee))form_o(er,form_f(en,eo),ei);return er}function form_f(ee,en){return ee?ee+"["+en+"]":en}function form_o(ee,en,er){if(Array.isArray(er))for(let[eo,ei]of er.entries())form_o(ee,form_f(en,eo.toString()),ei);else er instanceof Date?ee.push([en,er.toISOString()]):"boolean"==typeof er?ee.push([en,er?"1":"0"]):"string"==typeof er?ee.push([en,er]):"number"==typeof er?ee.push([en,`${er}`]):null==er?ee.push([en,""]):form_e(er,en,ee)}var nN=er(3638),nR=er(8656),nZ=((ec=nZ||{})[ec.Open=0]="Open",ec[ec.Closed=1]="Closed",ec),nM=((ed=nM||{})[ed.Single=0]="Single",ed[ed.Multi=1]="Multi",ed),nA=((ep=nA||{})[ep.Pointer=0]="Pointer",ep[ep.Other=1]="Other",ep),nL=((ef=nL||{})[ef.OpenListbox=0]="OpenListbox",ef[ef.CloseListbox=1]="CloseListbox",ef[ef.GoToOption=2]="GoToOption",ef[ef.Search=3]="Search",ef[ef.ClearSearch=4]="ClearSearch",ef[ef.RegisterOption=5]="RegisterOption",ef[ef.UnregisterOption=6]="UnregisterOption",ef[ef.RegisterLabel=7]="RegisterLabel",ef);function listbox_z(ee,en=ee=>ee){let er=null!==ee.activeOptionIndex?ee.options[ee.activeOptionIndex]:null,eo=(0,nO.z2)(en(ee.options.slice()),ee=>ee.dataRef.current.domRef.current),ei=er?eo.indexOf(er):null;return -1===ei&&(ei=null),{options:eo,activeOptionIndex:ei}}let nD={1:ee=>ee.dataRef.current.disabled||1===ee.listboxState?ee:{...ee,activeOptionIndex:null,listboxState:1},0(ee){if(ee.dataRef.current.disabled||0===ee.listboxState)return ee;let en=ee.activeOptionIndex,{isSelected:er}=ee.dataRef.current,eo=ee.options.findIndex(ee=>er(ee.dataRef.current.value));return -1!==eo&&(en=eo),{...ee,listboxState:0,activeOptionIndex:en}},2(ee,en){var er;if(ee.dataRef.current.disabled||1===ee.listboxState)return ee;let eo=listbox_z(ee),ei=calculate_active_index_f(en,{resolveItems:()=>eo.options,resolveActiveIndex:()=>eo.activeOptionIndex,resolveId:ee=>ee.id,resolveDisabled:ee=>ee.dataRef.current.disabled});return{...ee,...eo,searchQuery:"",activeOptionIndex:ei,activationTrigger:null!=(er=en.trigger)?er:1}},3:(ee,en)=>{if(ee.dataRef.current.disabled||1===ee.listboxState)return ee;let er=""!==ee.searchQuery?0:1,eo=ee.searchQuery+en.value.toLowerCase(),ei=(null!==ee.activeOptionIndex?ee.options.slice(ee.activeOptionIndex+er).concat(ee.options.slice(0,ee.activeOptionIndex+er)):ee.options).find(ee=>{var en;return!ee.dataRef.current.disabled&&(null==(en=ee.dataRef.current.textValue)?void 0:en.startsWith(eo))}),es=ei?ee.options.indexOf(ei):-1;return -1===es||es===ee.activeOptionIndex?{...ee,searchQuery:eo}:{...ee,searchQuery:eo,activeOptionIndex:es,activationTrigger:1}},4:ee=>ee.dataRef.current.disabled||1===ee.listboxState||""===ee.searchQuery?ee:{...ee,searchQuery:""},5:(ee,en)=>{let er={id:en.id,dataRef:en.dataRef},eo=listbox_z(ee,ee=>[...ee,er]);return null===ee.activeOptionIndex&&ee.dataRef.current.isSelected(en.dataRef.current.value)&&(eo.activeOptionIndex=eo.options.indexOf(er)),{...ee,...eo}},6:(ee,en)=>{let er=listbox_z(ee,ee=>{let er=ee.findIndex(ee=>ee.id===en.id);return -1!==er&&ee.splice(er,1),ee});return{...ee,...er,activationTrigger:1}},7:(ee,en)=>({...ee,labelId:en.id})},nF=(0,ek.createContext)(null);function k(ee){let en=(0,ek.useContext)(nF);if(null===en){let en=Error(`<${ee} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,k),en}return en}nF.displayName="ListboxActionsContext";let nz=(0,ek.createContext)(null);function w(ee){let en=(0,ek.useContext)(nz);if(null===en){let en=Error(`<${ee} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,w),en}return en}function Ve(ee,en){return(0,nd.E)(en.type,nD,ee,en)}nz.displayName="ListboxDataContext";let nV=ek.Fragment;function Qe(ee,en){let{value:er,defaultValue:eo,form:ei,name:es,onChange:eu,by:ec=(ee,en)=>ee===en,disabled:ed=!1,horizontal:ep=!1,multiple:ef=!1,...eh}=ee,em=ep?"horizontal":"vertical",ex=(0,nc.T)(en),[eg=ef?[]:void 0,ev]=use_controllable_T(er,eu,eo),[ey,eb]=(0,ek.useReducer)(Ve,{dataRef:(0,ek.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),e_=(0,ek.useRef)({static:!1,hold:!1}),ew=(0,ek.useRef)(null),eC=(0,ek.useRef)(null),eT=(0,ek.useRef)(null),eE=(0,no.z)("string"==typeof ec?(ee,en)=>{let er=ec;return(null==ee?void 0:ee[er])===(null==en?void 0:en[er])}:ec),eO=(0,ek.useCallback)(ee=>(0,nd.E)(eS.mode,{1:()=>eg.some(en=>eE(en,ee)),0:()=>eE(eg,ee)}),[eg]),eS=(0,ek.useMemo)(()=>({...ey,value:eg,disabled:ed,mode:ef?1:0,orientation:em,compare:eE,isSelected:eO,optionsPropsRef:e_,labelRef:ew,buttonRef:eC,optionsRef:eT}),[eg,ed,ef,ey]);(0,ns.e)(()=>{ey.dataRef.current=eS},[eS]),use_outside_click_y([eS.buttonRef,eS.optionsRef],(ee,en)=>{var er;eb({type:1}),(0,nO.sP)(en,nO.tJ.Loose)||(ee.preventDefault(),null==(er=eS.buttonRef.current)||er.focus())},0===eS.listboxState);let ej=(0,ek.useMemo)(()=>({open:0===eS.listboxState,disabled:ed,value:eg}),[eS,ed,eg]),eI=(0,no.z)(ee=>{let en=eS.options.find(en=>en.id===ee);en&&eL(en.dataRef.current.value)}),eP=(0,no.z)(()=>{if(null!==eS.activeOptionIndex){let{dataRef:ee,id:en}=eS.options[eS.activeOptionIndex];eL(ee.current.value),eb({type:2,focus:nP.Specific,id:en})}}),eN=(0,no.z)(()=>eb({type:0})),eR=(0,no.z)(()=>eb({type:1})),eZ=(0,no.z)((ee,en,er)=>ee===nP.Specific?eb({type:2,focus:nP.Specific,id:en,trigger:er}):eb({type:2,focus:ee,trigger:er})),eM=(0,no.z)((ee,en)=>(eb({type:5,id:ee,dataRef:en}),()=>eb({type:6,id:ee}))),eA=(0,no.z)(ee=>(eb({type:7,id:ee}),()=>eb({type:7,id:null}))),eL=(0,no.z)(ee=>(0,nd.E)(eS.mode,{0:()=>null==ev?void 0:ev(ee),1(){let en=eS.value.slice(),er=en.findIndex(en=>eE(en,ee));return -1===er?en.push(ee):en.splice(er,1),null==ev?void 0:ev(en)}})),eD=(0,no.z)(ee=>eb({type:3,value:ee})),eF=(0,no.z)(()=>eb({type:4})),ez=(0,ek.useMemo)(()=>({onChange:eL,registerOption:eM,registerLabel:eA,goToOption:eZ,closeListbox:eR,openListbox:eN,selectActiveOption:eP,selectOption:eI,search:eD,clearSearch:eF}),[]),eV={ref:ex},eU=(0,ek.useRef)(null),eH=use_disposables_p();return(0,ek.useEffect)(()=>{eU.current&&void 0!==eo&&eH.addEventListener(eU.current,"reset",()=>{null==ev||ev(eo)})},[eU,ev]),ek.createElement(nF.Provider,{value:ez},ek.createElement(nz.Provider,{value:eS},ek.createElement(open_closed_s,{value:(0,nd.E)(eS.listboxState,{0:nf.Open,1:nf.Closed})},null!=es&&null!=eg&&form_e({[es]:eg}).map(([ee,en],er)=>ek.createElement(nI._,{features:nI.A.Hidden,ref:0===er?ee=>{var en;eU.current=null!=(en=null==ee?void 0:ee.closest("form"))?en:null}:void 0,...(0,nm.oA)({key:ee,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:ei,name:ee,value:en})})),(0,nm.sY)({ourProps:eV,theirProps:eh,slot:ej,defaultTag:nV,name:"Listbox"}))))}let nU="button";function Xe(ee,en){var er;let eo=(0,nE.M)(),{id:ei=`headlessui-listbox-button-${eo}`,...es}=ee,eu=w("Listbox.Button"),ec=k("Listbox.Button"),ed=(0,nc.T)(eu.buttonRef,en),ep=use_disposables_p(),ef=(0,no.z)(ee=>{switch(ee.key){case nR.R.Space:case nR.R.Enter:case nR.R.ArrowDown:ee.preventDefault(),ec.openListbox(),ep.nextFrame(()=>{eu.value||ec.goToOption(nP.First)});break;case nR.R.ArrowUp:ee.preventDefault(),ec.openListbox(),ep.nextFrame(()=>{eu.value||ec.goToOption(nP.Last)})}}),eh=(0,no.z)(ee=>{ee.key===nR.R.Space&&ee.preventDefault()}),em=(0,no.z)(ee=>{if(bugs_r(ee.currentTarget))return ee.preventDefault();0===eu.listboxState?(ec.closeListbox(),ep.nextFrame(()=>{var ee;return null==(ee=eu.buttonRef.current)?void 0:ee.focus({preventScroll:!0})})):(ee.preventDefault(),ec.openListbox())}),ex=use_computed_i(()=>{if(eu.labelId)return[eu.labelId,ei].join(" ")},[eu.labelId,ei]),eg=(0,ek.useMemo)(()=>({open:0===eu.listboxState,disabled:eu.disabled,value:eu.value}),[eu]),ev={ref:ed,id:ei,type:(0,nS.f)(ee,eu.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(er=eu.optionsRef.current)?void 0:er.id,"aria-expanded":0===eu.listboxState,"aria-labelledby":ex,disabled:eu.disabled,onKeyDown:ef,onKeyUp:eh,onClick:em};return(0,nm.sY)({ourProps:ev,theirProps:es,slot:eg,defaultTag:nU,name:"Listbox.Button"})}let nH="label";function ze(ee,en){let er=(0,nE.M)(),{id:eo=`headlessui-listbox-label-${er}`,...ei}=ee,es=w("Listbox.Label"),eu=k("Listbox.Label"),ec=(0,nc.T)(es.labelRef,en);(0,ns.e)(()=>eu.registerLabel(eo),[eo]);let ed=(0,no.z)(()=>{var ee;return null==(ee=es.buttonRef.current)?void 0:ee.focus({preventScroll:!0})}),ep=(0,ek.useMemo)(()=>({open:0===es.listboxState,disabled:es.disabled}),[es]);return(0,nm.sY)({ourProps:{ref:ec,id:eo,onClick:ed},theirProps:ei,slot:ep,defaultTag:nH,name:"Listbox.Label"})}let n$="ul",nB=nm.AN.RenderStrategy|nm.AN.Static;function Ye(ee,en){var er;let eo=(0,nE.M)(),{id:ei=`headlessui-listbox-options-${eo}`,...es}=ee,eu=w("Listbox.Options"),ec=k("Listbox.Options"),ed=(0,nc.T)(eu.optionsRef,en),ep=use_disposables_p(),ef=use_disposables_p(),eh=open_closed_u(),em=null!==eh?(eh&nf.Open)===nf.Open:0===eu.listboxState;(0,ek.useEffect)(()=>{var ee;let en=eu.optionsRef.current;en&&0===eu.listboxState&&en!==(null==(ee=(0,nN.r)(en))?void 0:ee.activeElement)&&en.focus({preventScroll:!0})},[eu.listboxState,eu.optionsRef]);let ex=(0,no.z)(ee=>{switch(ef.dispose(),ee.key){case nR.R.Space:if(""!==eu.searchQuery)return ee.preventDefault(),ee.stopPropagation(),ec.search(ee.key);case nR.R.Enter:if(ee.preventDefault(),ee.stopPropagation(),null!==eu.activeOptionIndex){let{dataRef:ee}=eu.options[eu.activeOptionIndex];ec.onChange(ee.current.value)}0===eu.mode&&(ec.closeListbox(),(0,nr.k)().nextFrame(()=>{var ee;return null==(ee=eu.buttonRef.current)?void 0:ee.focus({preventScroll:!0})}));break;case(0,nd.E)(eu.orientation,{vertical:nR.R.ArrowDown,horizontal:nR.R.ArrowRight}):return ee.preventDefault(),ee.stopPropagation(),ec.goToOption(nP.Next);case(0,nd.E)(eu.orientation,{vertical:nR.R.ArrowUp,horizontal:nR.R.ArrowLeft}):return ee.preventDefault(),ee.stopPropagation(),ec.goToOption(nP.Previous);case nR.R.Home:case nR.R.PageUp:return ee.preventDefault(),ee.stopPropagation(),ec.goToOption(nP.First);case nR.R.End:case nR.R.PageDown:return ee.preventDefault(),ee.stopPropagation(),ec.goToOption(nP.Last);case nR.R.Escape:return ee.preventDefault(),ee.stopPropagation(),ec.closeListbox(),ep.nextFrame(()=>{var ee;return null==(ee=eu.buttonRef.current)?void 0:ee.focus({preventScroll:!0})});case nR.R.Tab:ee.preventDefault(),ee.stopPropagation();break;default:1===ee.key.length&&(ec.search(ee.key),ef.setTimeout(()=>ec.clearSearch(),350))}}),eg=use_computed_i(()=>{var ee;return null==(ee=eu.buttonRef.current)?void 0:ee.id},[eu.buttonRef.current]),ev=(0,ek.useMemo)(()=>({open:0===eu.listboxState}),[eu]),ey={"aria-activedescendant":null===eu.activeOptionIndex||null==(er=eu.options[eu.activeOptionIndex])?void 0:er.id,"aria-multiselectable":1===eu.mode||void 0,"aria-labelledby":eg,"aria-orientation":eu.orientation,id:ei,onKeyDown:ex,role:"listbox",tabIndex:0,ref:ed};return(0,nm.sY)({ourProps:ey,theirProps:es,slot:ev,defaultTag:n$,features:nB,visible:em,name:"Listbox.Options"})}let nW="li";function et(ee,en){let er=(0,nE.M)(),{id:eo=`headlessui-listbox-option-${er}`,disabled:ei=!1,value:es,...eu}=ee,ec=w("Listbox.Option"),ed=k("Listbox.Option"),ep=null!==ec.activeOptionIndex&&ec.options[ec.activeOptionIndex].id===eo,ef=ec.isSelected(es),eh=(0,ek.useRef)(null),em=use_text_value_s(eh),ex=(0,nl.E)({disabled:ei,value:es,domRef:eh,get textValue(){return em()}}),eg=(0,nc.T)(en,eh);(0,ns.e)(()=>{if(0!==ec.listboxState||!ep||0===ec.activationTrigger)return;let ee=(0,nr.k)();return ee.requestAnimationFrame(()=>{var ee,en;null==(en=null==(ee=eh.current)?void 0:ee.scrollIntoView)||en.call(ee,{block:"nearest"})}),ee.dispose},[eh,ep,ec.listboxState,ec.activationTrigger,ec.activeOptionIndex]),(0,ns.e)(()=>ed.registerOption(eo,ex),[ex,eo]);let ev=(0,no.z)(ee=>{if(ei)return ee.preventDefault();ed.onChange(es),0===ec.mode&&(ed.closeListbox(),(0,nr.k)().nextFrame(()=>{var ee;return null==(ee=ec.buttonRef.current)?void 0:ee.focus({preventScroll:!0})}))}),ey=(0,no.z)(()=>{if(ei)return ed.goToOption(nP.Nothing);ed.goToOption(nP.Specific,eo)}),eb=use_tracked_pointer_u(),e_=(0,no.z)(ee=>eb.update(ee)),ew=(0,no.z)(ee=>{eb.wasMoved(ee)&&(ei||ep||ed.goToOption(nP.Specific,eo,0))}),eC=(0,no.z)(ee=>{eb.wasMoved(ee)&&(ei||ep&&ed.goToOption(nP.Nothing))}),eT=(0,ek.useMemo)(()=>({active:ep,selected:ef,disabled:ei}),[ep,ef,ei]);return(0,nm.sY)({ourProps:{id:eo,ref:eg,role:"option",tabIndex:!0===ei?void 0:-1,"aria-disabled":!0===ei||void 0,"aria-selected":ef,disabled:void 0,onClick:ev,onFocus:ey,onPointerEnter:e_,onMouseEnter:e_,onPointerMove:ew,onMouseMove:ew,onPointerLeave:eC,onMouseLeave:eC},theirProps:eu,slot:eT,defaultTag:nW,name:"Listbox.Option"})}let nG=Object.assign((0,nm.yV)(Qe),{Button:(0,nm.yV)(Xe),Label:(0,nm.yV)(ze),Options:(0,nm.yV)(Ye),Option:(0,nm.yV)(et)});var nK=er(3730),nq=er(5945),nY=er.n(nq);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(ee){for(var en=1;en<arguments.length;en++){var er=arguments[en];for(var eo in er)Object.prototype.hasOwnProperty.call(er,eo)&&(ee[eo]=er[eo])}return ee}).apply(this,arguments)}function _objectWithoutPropertiesLoose(ee,en){if(null==ee)return{};var er,eo,ei={},es=Object.keys(ee);for(eo=0;eo<es.length;eo++)er=es[eo],en.indexOf(er)>=0||(ei[er]=ee[er]);return ei}var nQ=["keyOverride"],nJ=["crossOrigin"],nX={templateTitle:"",noindex:!1,nofollow:!1,defaultOpenGraphImageWidth:0,defaultOpenGraphImageHeight:0,defaultOpenGraphVideoWidth:0,defaultOpenGraphVideoHeight:0},buildOpenGraphMediaTags=function(ee,en,er){void 0===en&&(en=[]);var eo=void 0===er?{}:er,ei=eo.defaultWidth,es=eo.defaultHeight;return en.reduce(function(en,er,eo){return en.push(ek.createElement("meta",{key:"og:"+ee+":0"+eo,property:"og:"+ee,content:er.url})),er.alt&&en.push(ek.createElement("meta",{key:"og:"+ee+":alt0"+eo,property:"og:"+ee+":alt",content:er.alt})),er.secureUrl&&en.push(ek.createElement("meta",{key:"og:"+ee+":secure_url0"+eo,property:"og:"+ee+":secure_url",content:er.secureUrl.toString()})),er.type&&en.push(ek.createElement("meta",{key:"og:"+ee+":type0"+eo,property:"og:"+ee+":type",content:er.type.toString()})),er.width?en.push(ek.createElement("meta",{key:"og:"+ee+":width0"+eo,property:"og:"+ee+":width",content:er.width.toString()})):ei&&en.push(ek.createElement("meta",{key:"og:"+ee+":width0"+eo,property:"og:"+ee+":width",content:ei.toString()})),er.height?en.push(ek.createElement("meta",{key:"og:"+ee+":height"+eo,property:"og:"+ee+":height",content:er.height.toString()})):es&&en.push(ek.createElement("meta",{key:"og:"+ee+":height"+eo,property:"og:"+ee+":height",content:es.toString()})),en},[])},buildTags=function(ee){var en,er,eo,ei,es,eu=[];ee.titleTemplate&&(nX.templateTitle=ee.titleTemplate);var ec="";ee.title?(ec=ee.title,nX.templateTitle&&(ec=nX.templateTitle.replace(/%s/g,function(){return ec}))):ee.defaultTitle&&(ec=ee.defaultTitle),ec&&eu.push(ek.createElement("title",{key:"title"},ec));var ed=void 0===ee.noindex?nX.noindex||ee.dangerouslySetAllPagesToNoIndex:ee.noindex,ep=void 0===ee.nofollow?nX.nofollow||ee.dangerouslySetAllPagesToNoFollow:ee.nofollow,ef="";if(ee.robotsProps){var eh=ee.robotsProps,em=eh.nosnippet,ex=eh.maxSnippet,eg=eh.maxImagePreview,ev=eh.maxVideoPreview,ey=eh.noarchive,eb=eh.noimageindex,e_=eh.notranslate,ew=eh.unavailableAfter;ef=(em?",nosnippet":"")+(ex?",max-snippet:"+ex:"")+(eg?",max-image-preview:"+eg:"")+(ey?",noarchive":"")+(ew?",unavailable_after:"+ew:"")+(eb?",noimageindex":"")+(ev?",max-video-preview:"+ev:"")+(e_?",notranslate":"")}if(ed||ep?(ee.dangerouslySetAllPagesToNoIndex&&(nX.noindex=!0),ee.dangerouslySetAllPagesToNoFollow&&(nX.nofollow=!0),eu.push(ek.createElement("meta",{key:"robots",name:"robots",content:(ed?"noindex":"index")+","+(ep?"nofollow":"follow")+ef}))):eu.push(ek.createElement("meta",{key:"robots",name:"robots",content:"index,follow"+ef})),ee.description&&eu.push(ek.createElement("meta",{key:"description",name:"description",content:ee.description})),ee.themeColor&&eu.push(ek.createElement("meta",{key:"theme-color",name:"theme-color",content:ee.themeColor})),ee.mobileAlternate&&eu.push(ek.createElement("link",{rel:"alternate",key:"mobileAlternate",media:ee.mobileAlternate.media,href:ee.mobileAlternate.href})),ee.languageAlternates&&ee.languageAlternates.length>0&&ee.languageAlternates.forEach(function(ee){eu.push(ek.createElement("link",{rel:"alternate",key:"languageAlternate-"+ee.hrefLang,hrefLang:ee.hrefLang,href:ee.href}))}),ee.twitter&&(ee.twitter.cardType&&eu.push(ek.createElement("meta",{key:"twitter:card",name:"twitter:card",content:ee.twitter.cardType})),ee.twitter.site&&eu.push(ek.createElement("meta",{key:"twitter:site",name:"twitter:site",content:ee.twitter.site})),ee.twitter.handle&&eu.push(ek.createElement("meta",{key:"twitter:creator",name:"twitter:creator",content:ee.twitter.handle}))),ee.facebook&&ee.facebook.appId&&eu.push(ek.createElement("meta",{key:"fb:app_id",property:"fb:app_id",content:ee.facebook.appId})),(null!=(en=ee.openGraph)&&en.title||ec)&&eu.push(ek.createElement("meta",{key:"og:title",property:"og:title",content:(null==(ei=ee.openGraph)?void 0:ei.title)||ec})),(null!=(er=ee.openGraph)&&er.description||ee.description)&&eu.push(ek.createElement("meta",{key:"og:description",property:"og:description",content:(null==(es=ee.openGraph)?void 0:es.description)||ee.description})),ee.openGraph){if((ee.openGraph.url||ee.canonical)&&eu.push(ek.createElement("meta",{key:"og:url",property:"og:url",content:ee.openGraph.url||ee.canonical})),ee.openGraph.type){var eC=ee.openGraph.type.toLowerCase();eu.push(ek.createElement("meta",{key:"og:type",property:"og:type",content:eC})),"profile"===eC&&ee.openGraph.profile?(ee.openGraph.profile.firstName&&eu.push(ek.createElement("meta",{key:"profile:first_name",property:"profile:first_name",content:ee.openGraph.profile.firstName})),ee.openGraph.profile.lastName&&eu.push(ek.createElement("meta",{key:"profile:last_name",property:"profile:last_name",content:ee.openGraph.profile.lastName})),ee.openGraph.profile.username&&eu.push(ek.createElement("meta",{key:"profile:username",property:"profile:username",content:ee.openGraph.profile.username})),ee.openGraph.profile.gender&&eu.push(ek.createElement("meta",{key:"profile:gender",property:"profile:gender",content:ee.openGraph.profile.gender}))):"book"===eC&&ee.openGraph.book?(ee.openGraph.book.authors&&ee.openGraph.book.authors.length&&ee.openGraph.book.authors.forEach(function(ee,en){eu.push(ek.createElement("meta",{key:"book:author:0"+en,property:"book:author",content:ee}))}),ee.openGraph.book.isbn&&eu.push(ek.createElement("meta",{key:"book:isbn",property:"book:isbn",content:ee.openGraph.book.isbn})),ee.openGraph.book.releaseDate&&eu.push(ek.createElement("meta",{key:"book:release_date",property:"book:release_date",content:ee.openGraph.book.releaseDate})),ee.openGraph.book.tags&&ee.openGraph.book.tags.length&&ee.openGraph.book.tags.forEach(function(ee,en){eu.push(ek.createElement("meta",{key:"book:tag:0"+en,property:"book:tag",content:ee}))})):"article"===eC&&ee.openGraph.article?(ee.openGraph.article.publishedTime&&eu.push(ek.createElement("meta",{key:"article:published_time",property:"article:published_time",content:ee.openGraph.article.publishedTime})),ee.openGraph.article.modifiedTime&&eu.push(ek.createElement("meta",{key:"article:modified_time",property:"article:modified_time",content:ee.openGraph.article.modifiedTime})),ee.openGraph.article.expirationTime&&eu.push(ek.createElement("meta",{key:"article:expiration_time",property:"article:expiration_time",content:ee.openGraph.article.expirationTime})),ee.openGraph.article.authors&&ee.openGraph.article.authors.length&&ee.openGraph.article.authors.forEach(function(ee,en){eu.push(ek.createElement("meta",{key:"article:author:0"+en,property:"article:author",content:ee}))}),ee.openGraph.article.section&&eu.push(ek.createElement("meta",{key:"article:section",property:"article:section",content:ee.openGraph.article.section})),ee.openGraph.article.tags&&ee.openGraph.article.tags.length&&ee.openGraph.article.tags.forEach(function(ee,en){eu.push(ek.createElement("meta",{key:"article:tag:0"+en,property:"article:tag",content:ee}))})):("video.movie"===eC||"video.episode"===eC||"video.tv_show"===eC||"video.other"===eC)&&ee.openGraph.video&&(ee.openGraph.video.actors&&ee.openGraph.video.actors.length&&ee.openGraph.video.actors.forEach(function(ee,en){ee.profile&&eu.push(ek.createElement("meta",{key:"video:actor:0"+en,property:"video:actor",content:ee.profile})),ee.role&&eu.push(ek.createElement("meta",{key:"video:actor:role:0"+en,property:"video:actor:role",content:ee.role}))}),ee.openGraph.video.directors&&ee.openGraph.video.directors.length&&ee.openGraph.video.directors.forEach(function(ee,en){eu.push(ek.createElement("meta",{key:"video:director:0"+en,property:"video:director",content:ee}))}),ee.openGraph.video.writers&&ee.openGraph.video.writers.length&&ee.openGraph.video.writers.forEach(function(ee,en){eu.push(ek.createElement("meta",{key:"video:writer:0"+en,property:"video:writer",content:ee}))}),ee.openGraph.video.duration&&eu.push(ek.createElement("meta",{key:"video:duration",property:"video:duration",content:ee.openGraph.video.duration.toString()})),ee.openGraph.video.releaseDate&&eu.push(ek.createElement("meta",{key:"video:release_date",property:"video:release_date",content:ee.openGraph.video.releaseDate})),ee.openGraph.video.tags&&ee.openGraph.video.tags.length&&ee.openGraph.video.tags.forEach(function(ee,en){eu.push(ek.createElement("meta",{key:"video:tag:0"+en,property:"video:tag",content:ee}))}),ee.openGraph.video.series&&eu.push(ek.createElement("meta",{key:"video:series",property:"video:series",content:ee.openGraph.video.series})))}ee.defaultOpenGraphImageWidth&&(nX.defaultOpenGraphImageWidth=ee.defaultOpenGraphImageWidth),ee.defaultOpenGraphImageHeight&&(nX.defaultOpenGraphImageHeight=ee.defaultOpenGraphImageHeight),ee.openGraph.images&&ee.openGraph.images.length&&eu.push.apply(eu,buildOpenGraphMediaTags("image",ee.openGraph.images,{defaultWidth:nX.defaultOpenGraphImageWidth,defaultHeight:nX.defaultOpenGraphImageHeight})),ee.defaultOpenGraphVideoWidth&&(nX.defaultOpenGraphVideoWidth=ee.defaultOpenGraphVideoWidth),ee.defaultOpenGraphVideoHeight&&(nX.defaultOpenGraphVideoHeight=ee.defaultOpenGraphVideoHeight),ee.openGraph.videos&&ee.openGraph.videos.length&&eu.push.apply(eu,buildOpenGraphMediaTags("video",ee.openGraph.videos,{defaultWidth:nX.defaultOpenGraphVideoWidth,defaultHeight:nX.defaultOpenGraphVideoHeight})),ee.openGraph.audio&&eu.push.apply(eu,buildOpenGraphMediaTags("audio",ee.openGraph.audio)),ee.openGraph.locale&&eu.push(ek.createElement("meta",{key:"og:locale",property:"og:locale",content:ee.openGraph.locale})),(ee.openGraph.siteName||ee.openGraph.site_name)&&eu.push(ek.createElement("meta",{key:"og:site_name",property:"og:site_name",content:ee.openGraph.siteName||ee.openGraph.site_name}))}return ee.canonical&&eu.push(ek.createElement("link",{rel:"canonical",href:ee.canonical,key:"canonical"})),ee.additionalMetaTags&&ee.additionalMetaTags.length>0&&ee.additionalMetaTags.forEach(function(ee){var en,er,eo=ee.keyOverride,ei=_objectWithoutPropertiesLoose(ee,nQ);eu.push(ek.createElement("meta",_extends({key:"meta:"+(null!=(en=null!=(er=null!=eo?eo:ei.name)?er:ei.property)?en:ei.httpEquiv)},ei)))}),null!=(eo=ee.additionalLinkTags)&&eo.length&&ee.additionalLinkTags.forEach(function(ee){var en,er=ee.crossOrigin,eo=_objectWithoutPropertiesLoose(ee,nJ),ei="anonymous"===er||"use-credentials"===er||""===er?er:void 0;eu.push(ek.createElement("link",_extends({key:"link"+(null!=(en=eo.keyOverride)?en:eo.href)+eo.rel},eo,{crossOrigin:ei})))}),eu},WithHead=function(ee){return ek.createElement(nY(),null,buildTags(ee))},NextSeo=function(ee){var en=ee.title,er=ee.themeColor,eo=ee.noindex,ei=ee.nofollow,es=ee.robotsProps,eu=ee.description,ec=ee.canonical,ed=ee.openGraph,ep=ee.facebook,ef=ee.twitter,eh=ee.additionalMetaTags,em=ee.titleTemplate,ex=ee.defaultTitle,eg=ee.mobileAlternate,ev=ee.languageAlternates,ey=ee.additionalLinkTags;return ek.createElement(ek.Fragment,null,ek.createElement(WithHead,{title:en,themeColor:er,noindex:eo,nofollow:ei,robotsProps:es,description:eu,canonical:ec,facebook:ep,openGraph:ed,additionalMetaTags:eh,twitter:ef,titleTemplate:em,defaultTitle:ex,mobileAlternate:eg,languageAlternates:ev,additionalLinkTags:ey}))};function use_owner_n(...ee){return(0,ek.useMemo)(()=>(0,nN.r)(...ee),[...ee])}function F({container:ee,accept:en,walk:er,enabled:eo=!0}){let ei=(0,ek.useRef)(en),es=(0,ek.useRef)(er);(0,ek.useEffect)(()=>{ei.current=en,es.current=er},[en,er]),(0,ns.e)(()=>{if(!ee||!eo)return;let en=(0,nN.r)(ee);if(!en)return;let er=ei.current,eu=es.current,ec=Object.assign(ee=>er(ee),{acceptNode:er}),ed=en.createTreeWalker(ee,NodeFilter.SHOW_ELEMENT,ec,!1);for(;ed.nextNode();)eu(ed.currentNode)},[ee,eo,ei,es])}RegExp("["+Object.keys(Object.freeze({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;"})).join("")+"]","g");var n0=((eh=n0||{})[eh.Open=0]="Open",eh[eh.Closed=1]="Closed",eh),n1=((em=n1||{})[em.Pointer=0]="Pointer",em[em.Other=1]="Other",em),n2=((ex=n2||{})[ex.OpenMenu=0]="OpenMenu",ex[ex.CloseMenu=1]="CloseMenu",ex[ex.GoToItem=2]="GoToItem",ex[ex.Search=3]="Search",ex[ex.ClearSearch=4]="ClearSearch",ex[ex.RegisterItem=5]="RegisterItem",ex[ex.UnregisterItem=6]="UnregisterItem",ex);function menu_w(ee,en=ee=>ee){let er=null!==ee.activeItemIndex?ee.items[ee.activeItemIndex]:null,eo=(0,nO.z2)(en(ee.items.slice()),ee=>ee.dataRef.current.domRef.current),ei=er?eo.indexOf(er):null;return -1===ei&&(ei=null),{items:eo,activeItemIndex:ei}}let n4={1:ee=>1===ee.menuState?ee:{...ee,activeItemIndex:null,menuState:1},0:ee=>0===ee.menuState?ee:{...ee,__demoMode:!1,menuState:0},2:(ee,en)=>{var er;let eo=menu_w(ee),ei=calculate_active_index_f(en,{resolveItems:()=>eo.items,resolveActiveIndex:()=>eo.activeItemIndex,resolveId:ee=>ee.id,resolveDisabled:ee=>ee.dataRef.current.disabled});return{...ee,...eo,searchQuery:"",activeItemIndex:ei,activationTrigger:null!=(er=en.trigger)?er:1}},3:(ee,en)=>{let er=""!==ee.searchQuery?0:1,eo=ee.searchQuery+en.value.toLowerCase(),ei=(null!==ee.activeItemIndex?ee.items.slice(ee.activeItemIndex+er).concat(ee.items.slice(0,ee.activeItemIndex+er)):ee.items).find(ee=>{var en;return(null==(en=ee.dataRef.current.textValue)?void 0:en.startsWith(eo))&&!ee.dataRef.current.disabled}),es=ei?ee.items.indexOf(ei):-1;return -1===es||es===ee.activeItemIndex?{...ee,searchQuery:eo}:{...ee,searchQuery:eo,activeItemIndex:es,activationTrigger:1}},4:ee=>""===ee.searchQuery?ee:{...ee,searchQuery:"",searchActiveItemIndex:null},5:(ee,en)=>{let er=menu_w(ee,ee=>[...ee,{id:en.id,dataRef:en.dataRef}]);return{...ee,...er}},6:(ee,en)=>{let er=menu_w(ee,ee=>{let er=ee.findIndex(ee=>ee.id===en.id);return -1!==er&&ee.splice(er,1),ee});return{...ee,...er,activationTrigger:1}}},n5=(0,ek.createContext)(null);function C(ee){let en=(0,ek.useContext)(n5);if(null===en){let en=Error(`<${ee} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,C),en}return en}function menu_ye(ee,en){return(0,nd.E)(en.type,n4,ee,en)}n5.displayName="MenuContext";let n3=ek.Fragment;function Me(ee,en){let{__demoMode:er=!1,...eo}=ee,ei=(0,ek.useReducer)(menu_ye,{__demoMode:er,menuState:er?0:1,buttonRef:(0,ek.createRef)(),itemsRef:(0,ek.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:es,itemsRef:eu,buttonRef:ec},ed]=ei,ep=(0,nc.T)(en);use_outside_click_y([ec,eu],(ee,en)=>{var er;ed({type:1}),(0,nO.sP)(en,nO.tJ.Loose)||(ee.preventDefault(),null==(er=ec.current)||er.focus())},0===es);let ef=(0,no.z)(()=>{ed({type:1})}),eh=(0,ek.useMemo)(()=>({open:0===es,close:ef}),[es,ef]),em={ref:ep};return ek.createElement(n5.Provider,{value:ei},ek.createElement(open_closed_s,{value:(0,nd.E)(es,{0:nf.Open,1:nf.Closed})},(0,nm.sY)({ourProps:em,theirProps:eo,slot:eh,defaultTag:n3,name:"Menu"})))}let n6="button";function menu_Re(ee,en){var er;let eo=(0,nE.M)(),{id:ei=`headlessui-menu-button-${eo}`,...es}=ee,[eu,ec]=C("Menu.Button"),ed=(0,nc.T)(eu.buttonRef,en),ep=use_disposables_p(),ef=(0,no.z)(ee=>{switch(ee.key){case nR.R.Space:case nR.R.Enter:case nR.R.ArrowDown:ee.preventDefault(),ee.stopPropagation(),ec({type:0}),ep.nextFrame(()=>ec({type:2,focus:nP.First}));break;case nR.R.ArrowUp:ee.preventDefault(),ee.stopPropagation(),ec({type:0}),ep.nextFrame(()=>ec({type:2,focus:nP.Last}))}}),eh=(0,no.z)(ee=>{ee.key===nR.R.Space&&ee.preventDefault()}),em=(0,no.z)(en=>{if(bugs_r(en.currentTarget))return en.preventDefault();ee.disabled||(0===eu.menuState?(ec({type:1}),ep.nextFrame(()=>{var ee;return null==(ee=eu.buttonRef.current)?void 0:ee.focus({preventScroll:!0})})):(en.preventDefault(),ec({type:0})))}),ex=(0,ek.useMemo)(()=>({open:0===eu.menuState}),[eu]),eg={ref:ed,id:ei,type:(0,nS.f)(ee,eu.buttonRef),"aria-haspopup":"menu","aria-controls":null==(er=eu.itemsRef.current)?void 0:er.id,"aria-expanded":0===eu.menuState,onKeyDown:ef,onKeyUp:eh,onClick:em};return(0,nm.sY)({ourProps:eg,theirProps:es,slot:ex,defaultTag:n6,name:"Menu.Button"})}let n8="div",n7=nm.AN.RenderStrategy|nm.AN.Static;function Ee(ee,en){var er,eo;let ei=(0,nE.M)(),{id:es=`headlessui-menu-items-${ei}`,...eu}=ee,[ec,ed]=C("Menu.Items"),ep=(0,nc.T)(ec.itemsRef,en),ef=use_owner_n(ec.itemsRef),eh=use_disposables_p(),em=open_closed_u(),ex=null!==em?(em&nf.Open)===nf.Open:0===ec.menuState;(0,ek.useEffect)(()=>{let ee=ec.itemsRef.current;ee&&0===ec.menuState&&ee!==(null==ef?void 0:ef.activeElement)&&ee.focus({preventScroll:!0})},[ec.menuState,ec.itemsRef,ef]),F({container:ec.itemsRef.current,enabled:0===ec.menuState,accept:ee=>"menuitem"===ee.getAttribute("role")?NodeFilter.FILTER_REJECT:ee.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(ee){ee.setAttribute("role","none")}});let eg=(0,no.z)(ee=>{var en,er;switch(eh.dispose(),ee.key){case nR.R.Space:if(""!==ec.searchQuery)return ee.preventDefault(),ee.stopPropagation(),ed({type:3,value:ee.key});case nR.R.Enter:if(ee.preventDefault(),ee.stopPropagation(),ed({type:1}),null!==ec.activeItemIndex){let{dataRef:ee}=ec.items[ec.activeItemIndex];null==(er=null==(en=ee.current)?void 0:en.domRef.current)||er.click()}(0,nO.wI)(ec.buttonRef.current);break;case nR.R.ArrowDown:return ee.preventDefault(),ee.stopPropagation(),ed({type:2,focus:nP.Next});case nR.R.ArrowUp:return ee.preventDefault(),ee.stopPropagation(),ed({type:2,focus:nP.Previous});case nR.R.Home:case nR.R.PageUp:return ee.preventDefault(),ee.stopPropagation(),ed({type:2,focus:nP.First});case nR.R.End:case nR.R.PageDown:return ee.preventDefault(),ee.stopPropagation(),ed({type:2,focus:nP.Last});case nR.R.Escape:ee.preventDefault(),ee.stopPropagation(),ed({type:1}),(0,nr.k)().nextFrame(()=>{var ee;return null==(ee=ec.buttonRef.current)?void 0:ee.focus({preventScroll:!0})});break;case nR.R.Tab:ee.preventDefault(),ee.stopPropagation(),ed({type:1}),(0,nr.k)().nextFrame(()=>{(0,nO.EO)(ec.buttonRef.current,ee.shiftKey?nO.TO.Previous:nO.TO.Next)});break;default:1===ee.key.length&&(ed({type:3,value:ee.key}),eh.setTimeout(()=>ed({type:4}),350))}}),ev=(0,no.z)(ee=>{ee.key===nR.R.Space&&ee.preventDefault()}),ey=(0,ek.useMemo)(()=>({open:0===ec.menuState}),[ec]),eb={"aria-activedescendant":null===ec.activeItemIndex||null==(er=ec.items[ec.activeItemIndex])?void 0:er.id,"aria-labelledby":null==(eo=ec.buttonRef.current)?void 0:eo.id,id:es,onKeyDown:eg,onKeyUp:ev,role:"menu",tabIndex:0,ref:ep};return(0,nm.sY)({ourProps:eb,theirProps:eu,slot:ey,defaultTag:n8,features:n7,visible:ex,name:"Menu.Items"})}let n9=ek.Fragment;function menu_xe(ee,en){let er=(0,nE.M)(),{id:eo=`headlessui-menu-item-${er}`,disabled:ei=!1,...es}=ee,[eu,ec]=C("Menu.Item"),ed=null!==eu.activeItemIndex&&eu.items[eu.activeItemIndex].id===eo,ep=(0,ek.useRef)(null),ef=(0,nc.T)(en,ep);(0,ns.e)(()=>{if(eu.__demoMode||0!==eu.menuState||!ed||0===eu.activationTrigger)return;let ee=(0,nr.k)();return ee.requestAnimationFrame(()=>{var ee,en;null==(en=null==(ee=ep.current)?void 0:ee.scrollIntoView)||en.call(ee,{block:"nearest"})}),ee.dispose},[eu.__demoMode,ep,ed,eu.menuState,eu.activationTrigger,eu.activeItemIndex]);let eh=use_text_value_s(ep),em=(0,ek.useRef)({disabled:ei,domRef:ep,get textValue(){return eh()}});(0,ns.e)(()=>{em.current.disabled=ei},[em,ei]),(0,ns.e)(()=>(ec({type:5,id:eo,dataRef:em}),()=>ec({type:6,id:eo})),[em,eo]);let ex=(0,no.z)(()=>{ec({type:1})}),eg=(0,no.z)(ee=>{if(ei)return ee.preventDefault();ec({type:1}),(0,nO.wI)(eu.buttonRef.current)}),ev=(0,no.z)(()=>{if(ei)return ec({type:2,focus:nP.Nothing});ec({type:2,focus:nP.Specific,id:eo})}),ey=use_tracked_pointer_u(),eb=(0,no.z)(ee=>ey.update(ee)),e_=(0,no.z)(ee=>{ey.wasMoved(ee)&&(ei||ed||ec({type:2,focus:nP.Specific,id:eo,trigger:0}))}),ew=(0,no.z)(ee=>{ey.wasMoved(ee)&&(ei||ed&&ec({type:2,focus:nP.Nothing}))}),eC=(0,ek.useMemo)(()=>({active:ed,disabled:ei,close:ex}),[ed,ei,ex]);return(0,nm.sY)({ourProps:{id:eo,ref:ef,role:"menuitem",tabIndex:!0===ei?void 0:-1,"aria-disabled":!0===ei||void 0,disabled:void 0,onClick:eg,onFocus:ev,onPointerEnter:eb,onMouseEnter:eb,onPointerMove:e_,onMouseMove:e_,onPointerLeave:ew,onMouseLeave:ew},theirProps:es,slot:eC,defaultTag:n9,name:"Menu.Item"})}let rt=Object.assign((0,nm.yV)(Me),{Button:(0,nm.yV)(menu_Re),Items:(0,nm.yV)(Ee),Item:(0,nm.yV)(menu_xe)}),dist_t=ee=>"object"==typeof ee&&null!=ee&&1===ee.nodeType,e=(ee,en)=>(!en||"hidden"!==ee)&&"visible"!==ee&&"clip"!==ee,dist_n=(ee,en)=>{if(ee.clientHeight<ee.scrollHeight||ee.clientWidth<ee.scrollWidth){let er=getComputedStyle(ee,null);return e(er.overflowY,en)||e(er.overflowX,en)||(ee=>{let en=(ee=>{if(!ee.ownerDocument||!ee.ownerDocument.defaultView)return null;try{return ee.ownerDocument.defaultView.frameElement}catch(ee){return null}})(ee);return!!en&&(en.clientHeight<ee.scrollHeight||en.clientWidth<ee.scrollWidth)})(ee)}return!1},dist_o=(ee,en,er,eo,ei,es,eu,ec)=>es<ee&&eu>en||es>ee&&eu<en?0:es<=ee&&ec<=er||eu>=en&&ec>=er?es-ee-eo:eu>en&&ec<er||es<ee&&ec>er?eu-en+ei:0,l=ee=>{let en=ee.parentElement;return null==en?ee.getRootNode().host||null:en},dist_r=(ee,en)=>{var er,eo,ei,es;if("undefined"==typeof document)return[];let{scrollMode:eu,block:ec,inline:ed,boundary:ep,skipOverflowHiddenElements:ef}=en,eh="function"==typeof ep?ep:ee=>ee!==ep;if(!dist_t(ee))throw TypeError("Invalid target");let em=document.scrollingElement||document.documentElement,ex=[],eg=ee;for(;dist_t(eg)&&eh(eg);){if((eg=l(eg))===em){ex.push(eg);break}null!=eg&&eg===document.body&&dist_n(eg)&&!dist_n(document.documentElement)||null!=eg&&dist_n(eg,ef)&&ex.push(eg)}let ev=null!=(eo=null==(er=window.visualViewport)?void 0:er.width)?eo:innerWidth,ey=null!=(es=null==(ei=window.visualViewport)?void 0:ei.height)?es:innerHeight,{scrollX:eb,scrollY:e_}=window,{height:ew,width:ek,top:eC,right:eT,bottom:eE,left:eO}=ee.getBoundingClientRect(),{top:eS,right:ej,bottom:eI,left:eP}=(ee=>{let en=window.getComputedStyle(ee);return{top:parseFloat(en.scrollMarginTop)||0,right:parseFloat(en.scrollMarginRight)||0,bottom:parseFloat(en.scrollMarginBottom)||0,left:parseFloat(en.scrollMarginLeft)||0}})(ee),eN="start"===ec||"nearest"===ec?eC-eS:"end"===ec?eE+eI:eC+ew/2-eS+eI,eR="center"===ed?eO+ek/2-eP+ej:"end"===ed?eT+ej:eO-eP,eZ=[];for(let ee=0;ee<ex.length;ee++){let en=ex[ee],{height:er,width:eo,top:ei,right:es,bottom:ep,left:ef}=en.getBoundingClientRect();if("if-needed"===eu&&eC>=0&&eO>=0&&eE<=ey&&eT<=ev&&eC>=ei&&eE<=ep&&eO>=ef&&eT<=es)break;let eh=getComputedStyle(en),eg=parseInt(eh.borderLeftWidth,10),eS=parseInt(eh.borderTopWidth,10),ej=parseInt(eh.borderRightWidth,10),eI=parseInt(eh.borderBottomWidth,10),eP=0,eM=0,eA="offsetWidth"in en?en.offsetWidth-en.clientWidth-eg-ej:0,eL="offsetHeight"in en?en.offsetHeight-en.clientHeight-eS-eI:0,eD="offsetWidth"in en?0===en.offsetWidth?0:eo/en.offsetWidth:0,eF="offsetHeight"in en?0===en.offsetHeight?0:er/en.offsetHeight:0;if(em===en)eP="start"===ec?eN:"end"===ec?eN-ey:"nearest"===ec?dist_o(e_,e_+ey,ey,eS,eI,e_+eN,e_+eN+ew,ew):eN-ey/2,eM="start"===ed?eR:"center"===ed?eR-ev/2:"end"===ed?eR-ev:dist_o(eb,eb+ev,ev,eg,ej,eb+eR,eb+eR+ek,ek),eP=Math.max(0,eP+e_),eM=Math.max(0,eM+eb);else{eP="start"===ec?eN-ei-eS:"end"===ec?eN-ep+eI+eL:"nearest"===ec?dist_o(ei,ep,er,eS,eI+eL,eN,eN+ew,ew):eN-(ei+er/2)+eL/2,eM="start"===ed?eR-ef-eg:"center"===ed?eR-(ef+eo/2)+eA/2:"end"===ed?eR-es+ej+eA:dist_o(ef,es,eo,eg,ej+eA,eR,eR+ek,ek);let{scrollLeft:ee,scrollTop:eu}=en;eP=0===eF?0:Math.max(0,Math.min(eu+eP/eF,en.scrollHeight-er/eF+eL)),eM=0===eD?0:Math.max(0,Math.min(ee+eM/eD,en.scrollWidth-eo/eD+eA)),eN+=eu-eP,eR+=ee-eM}eZ.push({el:en,top:eP,left:eM})}return eZ},scroll_into_view_if_needed_dist_o=ee=>{var en;return!1===ee?{block:"end",inline:"nearest"}:(en=ee,en===Object(en)&&0!==Object.keys(en).length)?ee:{block:"start",inline:"nearest"}};function dist_e(ee,en){var er;if(!ee.isConnected||!(ee=>{let en=ee;for(;en&&en.parentNode;){if(en.parentNode===document)return!0;en=en.parentNode instanceof ShadowRoot?en.parentNode.host:en.parentNode}return!1})(ee))return;let eo=(ee=>{let en=window.getComputedStyle(ee);return{top:parseFloat(en.scrollMarginTop)||0,right:parseFloat(en.scrollMarginRight)||0,bottom:parseFloat(en.scrollMarginBottom)||0,left:parseFloat(en.scrollMarginLeft)||0}})(ee);if("object"==typeof(er=en)&&"function"==typeof er.behavior)return en.behavior(dist_r(ee,en));let ei="boolean"==typeof en||null==en?void 0:en.behavior;for(let{el:er,top:es,left:eu}of dist_r(ee,scroll_into_view_if_needed_dist_o(en))){let ee=es-eo.top+eo.bottom,en=eu-eo.left+eo.right;er.scroll({top:ee,left:en,behavior:ei})}}function extends_extends(){return(extends_extends=Object.assign?Object.assign.bind():function(ee){for(var en=1;en<arguments.length;en++){var er=arguments[en];for(var eo in er)Object.prototype.hasOwnProperty.call(er,eo)&&(ee[eo]=er[eo])}return ee}).apply(this,arguments)}var rn=er(6976),rr=er.n(rn),ro={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};matchSorter.rankings=ro;var defaultBaseSortFn=function(ee,en){return String(ee.rankedValue).localeCompare(String(en.rankedValue))};function matchSorter(ee,en,er){void 0===er&&(er={});var eo=er,ei=eo.keys,es=eo.threshold,eu=void 0===es?ro.MATCHES:es,ec=eo.baseSort,ed=void 0===ec?defaultBaseSortFn:ec,ep=eo.sorter;return(void 0===ep?function(ee){return ee.sort(function(ee,en){return sortRankedValues(ee,en,ed)})}:ep)(ee.reduce(reduceItemsToRanked,[])).map(function(ee){return ee.item});function reduceItemsToRanked(ee,eo,es){var ec=getHighestRanking(eo,ei,en,er),ed=ec.rank,ep=ec.keyThreshold;return ed>=(void 0===ep?eu:ep)&&ee.push(extends_extends({},ec,{item:eo,index:es})),ee}}function getHighestRanking(ee,en,er,eo){if(!en){var ei=ee;return{rankedValue:ei,rank:getMatchRanking(ei,er,eo),keyIndex:-1,keyThreshold:eo.threshold}}return getAllValuesToRank(ee,en).reduce(function(ee,en,ei){var es=ee.rank,eu=ee.rankedValue,ec=ee.keyIndex,ed=ee.keyThreshold,ep=en.itemValue,ef=en.attributes,eh=getMatchRanking(ep,er,eo),em=eu,ex=ef.minRanking,eg=ef.maxRanking,ev=ef.threshold;return eh<ex&&eh>=ro.MATCHES?eh=ex:eh>eg&&(eh=eg),eh>es&&(es=eh,ec=ei,ed=ev,em=ep),{rankedValue:em,rank:es,keyIndex:ec,keyThreshold:ed}},{rankedValue:ee,rank:ro.NO_MATCH,keyIndex:-1,keyThreshold:eo.threshold})}function getMatchRanking(ee,en,er){return(ee=prepareValueForComparison(ee,er),(en=prepareValueForComparison(en,er)).length>ee.length)?ro.NO_MATCH:ee===en?ro.CASE_SENSITIVE_EQUAL:(ee=ee.toLowerCase())===(en=en.toLowerCase())?ro.EQUAL:ee.startsWith(en)?ro.STARTS_WITH:ee.includes(" "+en)?ro.WORD_STARTS_WITH:ee.includes(en)?ro.CONTAINS:1===en.length?ro.NO_MATCH:getAcronym(ee).includes(en)?ro.ACRONYM:getClosenessRanking(ee,en)}function getAcronym(ee){var en="";return ee.split(" ").forEach(function(ee){ee.split("-").forEach(function(ee){en+=ee.substr(0,1)})}),en}function getClosenessRanking(ee,en){var er=0,eo=0;function findMatchingCharacter(ee,en,eo){for(var ei=eo,es=en.length;ei<es;ei++)if(en[ei]===ee)return er+=1,ei+1;return -1}function getRanking(ee){var eo=1/ee,ei=er/en.length;return ro.MATCHES+ei*eo}var ei=findMatchingCharacter(en[0],ee,0);if(ei<0)return ro.NO_MATCH;eo=ei;for(var es=1,eu=en.length;es<eu;es++)if(!((eo=findMatchingCharacter(en[es],ee,eo))>-1))return ro.NO_MATCH;return getRanking(eo-ei)}function sortRankedValues(ee,en,er){var eo=-1,ei=1,es=ee.rank,eu=ee.keyIndex,ec=en.rank,ed=en.keyIndex;return es!==ec?es>ec?eo:ei:eu===ed?er(ee,en):eu<ed?eo:ei}function prepareValueForComparison(ee,en){return ee=""+ee,en.keepDiacritics||(ee=rr()(ee)),ee}function getItemValues(ee,en){var er;if("object"==typeof en&&(en=en.key),"function"==typeof en)er=en(ee);else if(null==ee)er=null;else if(Object.hasOwnProperty.call(ee,en))er=ee[en];else{if(en.includes("."))return getNestedValues(en,ee);er=null}return null==er?[]:Array.isArray(er)?er:[String(er)]}function getNestedValues(ee,en){for(var er=ee.split("."),eo=[en],ei=0,es=er.length;ei<es;ei++){for(var eu=er[ei],ec=[],ed=0,ep=eo.length;ed<ep;ed++){var ef=eo[ed];if(null!=ef){if(Object.hasOwnProperty.call(ef,eu)){var eh=ef[eu];null!=eh&&ec.push(eh)}else"*"===eu&&(ec=ec.concat(ef))}}eo=ec}if(Array.isArray(eo[0])){var em=[];return em.concat.apply(em,eo)}return eo}function getAllValuesToRank(ee,en){for(var er=[],eo=0,ei=en.length;eo<ei;eo++)for(var es=en[eo],eu=getKeyAttributes(es),ec=getItemValues(ee,es),ed=0,ep=ec.length;ed<ep;ed++)er.push({itemValue:ec[ed],attributes:eu});return er}var ri={maxRanking:1/0,minRanking:-1/0};function getKeyAttributes(ee){return"string"==typeof ee?ri:extends_extends({},ri,ee)}var rs=er(5874),rl=Object.defineProperty,ru=Object.defineProperties,rc=Object.getOwnPropertyDescriptors,rd=Object.getOwnPropertySymbols,rp=Object.prototype.hasOwnProperty,rf=Object.prototype.propertyIsEnumerable,__defNormalProp=(ee,en,er)=>en in ee?rl(ee,en,{enumerable:!0,configurable:!0,writable:!0,value:er}):ee[en]=er,__spreadValues=(ee,en)=>{for(var er in en||(en={}))rp.call(en,er)&&__defNormalProp(ee,er,en[er]);if(rd)for(var er of rd(en))rf.call(en,er)&&__defNormalProp(ee,er,en[er]);return ee},__spreadProps=(ee,en)=>ru(ee,rc(en)),__objRest=(ee,en)=>{var er={};for(var eo in ee)rp.call(ee,eo)&&0>en.indexOf(eo)&&(er[eo]=ee[eo]);if(null!=ee&&rd)for(var eo of rd(ee))0>en.indexOf(eo)&&rf.call(ee,eo)&&(er[eo]=ee[eo]);return er},__async=(ee,en,er)=>new Promise((eo,ei)=>{var fulfilled=ee=>{try{step(er.next(ee))}catch(ee){ei(ee)}},rejected=ee=>{try{step(er.throw(ee))}catch(ee){ei(ee)}},step=ee=>ee.done?eo(ee.value):Promise.resolve(ee.value).then(fulfilled,rejected);step((er=er.apply(ee,en)).next())}),rh=(0,ek.createContext)({}),rm=(0,ek.createContext)(ee=>ee),rx=(0,ek.createContext)(null),rg=new WeakMap,rv=(0,ek.createContext)(rg),useActiveAnchor=()=>(0,ek.useContext)(rh),useSetActiveAnchor=()=>(0,ek.useContext)(rm),useIntersectionObserver=()=>(0,ek.useContext)(rx),useSlugs=()=>(0,ek.useContext)(rv),ActiveAnchorProvider=({children:ee})=>{let[en,er]=(0,ek.useState)({}),eo=(0,ek.useRef)(null);return rB&&!eo.current&&(eo.current=new IntersectionObserver(ee=>{er(en=>{let er=__spreadValues({},en);for(let en of ee)if((null==en?void 0:en.rootBounds)&&rg.has(en.target)){let[ee,eo]=rg.get(en.target),ei=en.boundingClientRect.y+en.boundingClientRect.height<=en.rootBounds.y+en.rootBounds.height,es=en.intersectionRatio>0;er[ee]={index:eo,aboveHalfViewport:ei,insideHalfViewport:es}}let eo="",ei=1/0,es=-1;for(let ee in er)er[ee].isActive=!1,er[ee].insideHalfViewport&&er[ee].index<ei&&(ei=er[ee].index,eo=ee),ei===1/0&&er[ee].aboveHalfViewport&&er[ee].index>es&&(es=er[ee].index,eo=ee);return er[eo]&&(er[eo].isActive=!0),er})},{rootMargin:"0px 0px -50%",threshold:[0,1]})),(0,tk.jsx)(rh.Provider,{value:en,children:(0,tk.jsx)(rm.Provider,{value:er,children:(0,tk.jsx)(rv.Provider,{value:rg,children:(0,tk.jsx)(rx.Provider,{value:eo.current,children:ee})})})})},ry=(0,ek.createContext)({menu:!1,setMenu:()=>!1}),useMenu=()=>(0,ek.useContext)(ry),rb=ry.Provider,r_=(0,ek.createContext)(__spreadValues({title:"",frontMatter:{}},rQ));function useConfig(){return(0,ek.useContext)(r_)}var ConfigProvider=({children:ee,value:{themeConfig:en,pageOpts:er}})=>{let[eo,ei]=(0,ek.useState)(!1);e_||(e_=__spreadValues(__spreadValues({},rQ),Object.fromEntries(Object.entries(en).map(([ee,en])=>[ee,en&&"object"==typeof en&&rJ.includes(ee)?__spreadValues(__spreadValues({},rQ[ee]),en):en]))));let es=__spreadProps(__spreadValues(__spreadProps(__spreadValues({},e_),{flexsearch:er.flexsearch}),"boolean"==typeof er.newNextLinkBehavior&&{newNextLinkBehavior:er.newNextLinkBehavior}),{title:er.title,frontMatter:er.frontMatter}),{nextThemes:eu}=es;return(0,tk.jsx)($,{attribute:"class",disableTransitionOnChange:!0,defaultTheme:eu.defaultTheme,storageKey:eu.storageKey,forcedTheme:eu.forcedTheme,children:(0,tk.jsx)(r_.Provider,{value:es,children:(0,tk.jsx)(rb,{value:{menu:eo,setMenu:ei},children:ee})})})},rw=(0,ek.createContext)(ee=>ee),useDetails=()=>(0,ek.useContext)(rw),rk=rw.Provider,rC=Number(tw.i8.split(".")[0]),rT=(0,ek.forwardRef)(function(ee,en){var er=ee,{href:eo="",children:ei,newWindow:es}=er,eu=__objRest(er,["href","children","newWindow"]);let ec=useConfig();return es?(0,tk.jsxs)("a",__spreadProps(__spreadValues({ref:en,href:eo,target:"_blank",rel:"noreferrer"},eu),{children:[ei,(0,tk.jsx)("span",{className:"nx-sr-only nx-select-none",children:" (opens in a new tab)"})]})):eo?rC>12||ec.newNextLinkBehavior?(0,tk.jsx)(t_(),__spreadProps(__spreadValues({ref:en,href:eo},eu),{children:ei})):(0,tk.jsx)(t_(),{href:eo,passHref:!0,children:(0,tk.jsx)("a",__spreadProps(__spreadValues({ref:en},eu),{children:ei}))}):(0,tk.jsx)("a",__spreadProps(__spreadValues({ref:en},eu),{children:ei}))});rT.displayName="Anchor";var getGitIssueUrl=({repository:ee="",title:en,labels:er})=>{let eo=tz()(ee);if(!eo)throw Error("Invalid `docsRepositoryBase` URL!");return eo.resource.includes("gitlab")?`${eo.protocol}://${eo.resource}/${eo.owner}/${eo.name}/-/issues/new?issue[title]=${encodeURIComponent(en)}${er?`&issue[description]=/label${encodeURIComponent(` ~${er}
`)}`:""}`:eo.resource.includes("github")?`${eo.protocol}://${eo.resource}/${eo.owner}/${eo.name}/issues/new?title=${encodeURIComponent(en)}&labels=${er||""}`:"#"};function renderComponent(ee,en){return ee?"function"!=typeof ee?ee:(0,tk.jsx)(ee,__spreadValues({},en)):null}function renderString(ee,en={}){let er="function"==typeof ee?ee(en):ee;return er||""}function usePopper(ee){let en=(0,ek.useRef)(null),er=(0,ek.useRef)(null),eo=(0,ek.useRef)(),ei=(0,ek.useCallback)(()=>{var ei;en.current&&er.current&&(null==(ei=eo.current)||ei.call(eo),eo.current=ne(en.current,er.current,ee).destroy)},[en,er,eo,ee]);return(0,ek.useMemo)(()=>[ee=>{en.current=ee,ei()},ee=>{er.current=ee,ei()}],[en,er,ei])}function useGitEditUrl(ee=""){let en=useConfig(),er=tz()(en.docsRepositoryBase||"");if(!er)throw Error("Invalid `docsRepositoryBase` URL!");return`${er.href}/${ee}`}function Banner(){let{banner:ee}=useConfig();if(!ee.text)return null;let en=`try{if(localStorage.getItem(${JSON.stringify(ee.key)})==='0'){document.body.classList.add('nextra-banner-hidden')}}catch(e){}`;return(0,tk.jsxs)(tk.Fragment,{children:[(0,tk.jsx)("script",{dangerouslySetInnerHTML:{__html:en}}),(0,tk.jsxs)("div",{className:(0,eC.Z)("nextra-banner-container nx-sticky nx-top-0 nx-z-20 nx-flex nx-items-center md:nx-relative","nx-h-[var(--nextra-banner-height)] [body.nextra-banner-hidden_&]:nx-hidden","nx-text-slate-50 dark:nx-text-white nx-bg-neutral-900 dark:nx-bg-[linear-gradient(1deg,#383838,#212121)]","nx-px-2 ltr:nx-pl-10 rtl:nx-pr-10 print:nx-hidden"),children:[(0,tk.jsx)("div",{className:"nx-w-full nx-truncate nx-px-4 nx-text-center nx-font-medium nx-text-sm",children:renderComponent(ee.text)}),ee.dismissible&&(0,tk.jsx)("button",{type:"button","aria-label":"Dismiss banner",className:"nx-w-8 nx-h-8 nx-opacity-80 hover:nx-opacity-100",onClick:()=>{try{localStorage.setItem(ee.key,"0")}catch(ee){}document.body.classList.add("nextra-banner-hidden")},children:(0,tk.jsx)(eS.b0,{className:"nx-mx-auto nx-h-4 nx-w-4"})})]})]})}function Breadcrumb({activePath:ee}){return(0,tk.jsx)("div",{className:"nextra-breadcrumb nx-mt-1.5 nx-flex nx-items-center nx-gap-1 nx-overflow-hidden nx-text-sm nx-text-gray-500 dark:nx-text-gray-400 contrast-more:nx-text-current",children:ee.map((en,er)=>{let eo=!en.children||en.withIndexPage,ei=er===ee.length-1;return(0,tk.jsxs)(ek.Fragment,{children:[er>0&&(0,tk.jsx)(eS.LZ,{className:"nx-w-3.5 nx-shrink-0"}),(0,tk.jsx)("div",{className:(0,eC.Z)("nx-whitespace-nowrap nx-transition-colors",ei?"nx-font-medium nx-text-gray-700 contrast-more:nx-font-bold contrast-more:nx-text-current dark:nx-text-gray-100 contrast-more:dark:nx-text-current":["nx-min-w-[24px] nx-overflow-hidden nx-text-ellipsis",eo&&"hover:nx-text-gray-900 dark:hover:nx-text-gray-100"]),title:en.title,children:eo&&!ei?(0,tk.jsx)(rT,{href:en.route,children:en.title}):en.title})]},en.route+en.name)})})}function Collapse({children:ee,className:en,isOpen:er,horizontal:eo=!1}){let ei=(0,ek.useRef)(null),es=(0,ek.useRef)(null),eu=(0,ek.useRef)(0),ec=(0,ek.useRef)(er),ed=(0,ek.useRef)(!0);return(0,ek.useEffect)(()=>{let ee=ei.current,en=es.current,ec=eu.current;ec&&clearTimeout(ec),!ed.current&&ee&&en&&(ee.classList.toggle("nx-duration-500",!er),ee.classList.toggle("nx-duration-300",er),eo?(en.style.width=`${en.clientWidth}px`,ee.style.width=`${en.clientWidth}px`):ee.style.height=`${en.clientHeight}px`,er?eu.current=window.setTimeout(()=>{ee.style.removeProperty("height")},300):setTimeout(()=>{eo?ee.style.width="0px":ee.style.height="0px"},0))},[eo,er]),(0,ek.useEffect)(()=>{ed.current=!1},[]),(0,tk.jsx)("div",{ref:ei,className:"nx-transform-gpu nx-overflow-hidden nx-transition-all nx-ease-in-out motion-reduce:nx-transition-none",style:ec.current||eo?void 0:{height:0},children:(0,tk.jsx)("div",{ref:es,className:(0,eC.Z)("nx-transition-opacity nx-duration-500 nx-ease-in-out motion-reduce:nx-transition-none",er?"nx-opacity-100":"nx-opacity-0",en),children:ee})})}var rE=(0,ek.memo)(function({value:ee,match:en}){let er;if(!ee)return null;let eo=ee.split(""),ei=escapeStringRegexp(en.trim()),es=RegExp(ei.replaceAll(" ","|"),"ig"),eu=0,ec=[];for(;(er=es.exec(ee))&&0!==es.lastIndex;){let ee=eo.splice(0,er.index-eu).join(""),en=eo.splice(0,es.lastIndex-er.index).join("");ec.push(ee,(0,tk.jsx)("span",{className:"nx-text-primary-600",children:en},er.index)),eu=es.lastIndex}return(0,tk.jsxs)(tk.Fragment,{children:[ec,eo.join("")]})}),rO=(0,ek.forwardRef)((ee,en)=>{var er=ee,{className:eo,suffix:ei}=er,es=__objRest(er,["className","suffix"]);return(0,tk.jsxs)("div",{className:"nx-relative nx-flex nx-items-center nx-text-gray-900 contrast-more:nx-text-gray-800 dark:nx-text-gray-300 contrast-more:dark:nx-text-gray-300",children:[(0,tk.jsx)("input",__spreadValues({ref:en,spellCheck:!1,className:(0,eC.Z)(eo,"nx-block nx-w-full nx-appearance-none nx-rounded-lg nx-px-3 nx-py-2 nx-transition-colors","nx-text-base nx-leading-tight md:nx-text-sm","nx-bg-black/[.05] dark:nx-bg-gray-50/10","focus:nx-bg-white dark:focus:nx-bg-dark","placeholder:nx-text-gray-500 dark:placeholder:nx-text-gray-400","contrast-more:nx-border contrast-more:nx-border-current")},es)),ei]})});rO.displayName="Input";var rS=["input","select","button","textarea"];function Search({className:ee,overlayClassName:en,value:er,onChange:eo,onActive:ei,loading:es,error:eu,results:ec}){let[ed,ep]=(0,ek.useState)(!1),ef=useConfig(),[eh,em]=(0,ek.useState)(0),ex=(0,ew.useRouter)(),{setMenu:eg}=useMenu(),ev=(0,ek.useRef)(null),ey=(0,ek.useRef)(null),[eb,e_]=(0,ek.useState)(!1),[eT,eE]=(0,ek.useState)(!0);(0,ek.useEffect)(()=>{em(0)},[er]),(0,ek.useEffect)(()=>{let down=ee=>{let en=document.activeElement,er=null==en?void 0:en.tagName.toLowerCase();!ev.current||!er||rS.includes(er)||null!=en&&en.isContentEditable||("/"===ee.key||"k"===ee.key&&(ee.metaKey||ee.ctrlKey)?(ee.preventDefault(),ev.current.focus({preventScroll:!0})):"Escape"===ee.key&&(ep(!1),ev.current.blur()))};return window.addEventListener("keydown",down),()=>{window.removeEventListener("keydown",down)}},[]);let eO=(0,ek.useCallback)(()=>{var ee;null==(ee=ev.current)||ee.blur(),eo(""),ep(!1),eg(!1)},[eo,eg]),ej=(0,ek.useCallback)(ee=>{let{index:en}=ee.currentTarget.dataset;em(Number(en))},[]),eI=(0,ek.useCallback)(function(ee){var en,er,eo;switch(ee.key){case"ArrowDown":if(eh+1<ec.length){let er=null==(en=ey.current)?void 0:en.querySelector(`li:nth-of-type(${eh+2}) > a`);er&&(ee.preventDefault(),ej({currentTarget:er}),er.focus())}break;case"ArrowUp":if(eh-1>=0){let en=null==(er=ey.current)?void 0:er.querySelector(`li:nth-of-type(${eh}) > a`);en&&(ee.preventDefault(),ej({currentTarget:en}),en.focus())}break;case"Enter":{let ee=ec[eh];ee&&eT&&(ex.push(ee.route),eO());break}case"Escape":ep(!1),null==(eo=ev.current)||eo.blur()}},[eh,ec,ex,eO,ej,eT]),eP=useMounted(),eN=ed&&!!er,eR=(0,tk.jsx)(nC,{show:eP&&(!ed||!!er),as:ek.Fragment,enter:"nx-transition-opacity",enterFrom:"nx-opacity-0",enterTo:"nx-opacity-100",leave:"nx-transition-opacity",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:(0,tk.jsx)("kbd",{className:(0,eC.Z)("nx-absolute nx-my-1.5 nx-select-none ltr:nx-right-1.5 rtl:nx-left-1.5","nx-h-5 nx-rounded nx-bg-white nx-px-1.5 nx-font-mono nx-text-[10px] nx-font-medium nx-text-gray-500","nx-border dark:nx-border-gray-100/20 dark:nx-bg-dark/50","contrast-more:nx-border-current contrast-more:nx-text-current contrast-more:dark:nx-border-current","nx-items-center nx-gap-1 nx-transition-opacity",er?"nx-z-20 nx-flex nx-cursor-pointer hover:nx-opacity-70":"nx-pointer-events-none nx-hidden sm:nx-flex"),title:er?"Clear":void 0,onClick:()=>{eo("")},children:er&&eb?"ESC":eP&&(navigator.userAgent.includes("Macintosh")?(0,tk.jsxs)(tk.Fragment,{children:[(0,tk.jsx)("span",{className:"nx-text-xs",children:"⌘"}),"K"]}):"CTRL K")})}),eZ=(0,ek.useCallback)(ee=>{eE("compositionend"===ee.type)},[]);return(0,tk.jsxs)("div",{className:(0,eC.Z)("nextra-search nx-relative md:nx-w-64",ee),children:[eN&&(0,tk.jsx)("div",{className:"nx-fixed nx-inset-0 nx-z-10",onClick:()=>ep(!1)}),(0,tk.jsx)(rO,{ref:ev,value:er,onChange:ee=>{let{value:en}=ee.target;eo(en),ep(!!en)},onFocus:()=>{null==ei||ei(!0),e_(!0)},onBlur:()=>{e_(!1)},onCompositionStart:eZ,onCompositionEnd:eZ,type:"search",placeholder:renderString(ef.search.placeholder),onKeyDown:eI,suffix:eR}),(0,tk.jsx)(nC,{show:eN,as:nC.Child,leave:"nx-transition-opacity nx-duration-100",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:(0,tk.jsx)("ul",{className:(0,eC.Z)("nextra-scrollbar","nx-border nx-border-gray-200 nx-bg-white nx-text-gray-100 dark:nx-border-neutral-800 dark:nx-bg-neutral-900","nx-absolute nx-top-full nx-z-20 nx-mt-2 nx-overflow-auto nx-overscroll-contain nx-rounded-xl nx-py-2.5 nx-shadow-xl","nx-max-h-[min(calc(50vh-11rem-env(safe-area-inset-bottom)),400px)]","md:nx-max-h-[min(calc(100vh-5rem-env(safe-area-inset-bottom)),400px)]","nx-inset-x-0 ltr:md:nx-left-auto rtl:md:nx-right-auto","contrast-more:nx-border contrast-more:nx-border-gray-900 contrast-more:dark:nx-border-gray-50",en),ref:ey,style:{transition:"max-height .2s ease"},children:eu?(0,tk.jsxs)("span",{className:"nx-flex nx-select-none nx-justify-center nx-gap-2 nx-p-8 nx-text-center nx-text-sm nx-text-red-500",children:[(0,tk.jsx)(eS.AV,{className:"nx-h-5 nx-w-5"}),renderString(ef.search.error)]}):es?(0,tk.jsxs)("span",{className:"nx-flex nx-select-none nx-justify-center nx-gap-2 nx-p-8 nx-text-center nx-text-sm nx-text-gray-400",children:[(0,tk.jsx)(eS.L4,{className:"nx-h-5 nx-w-5 nx-animate-spin"}),renderComponent(ef.search.loading)]}):ec.length>0?ec.map(({route:ee,prefix:en,children:er,id:eo},ei)=>(0,tk.jsxs)(ek.Fragment,{children:[en,(0,tk.jsx)("li",{className:(0,eC.Z)("nx-mx-2.5 nx-break-words nx-rounded-md","contrast-more:nx-border",ei===eh?"nx-bg-primary-500/10 nx-text-primary-600 contrast-more:nx-border-primary-500":"nx-text-gray-800 contrast-more:nx-border-transparent dark:nx-text-gray-300"),children:(0,tk.jsx)(rT,{className:"nx-block nx-scroll-m-12 nx-px-2.5 nx-py-2",href:ee,"data-index":ei,onFocus:ej,onMouseMove:ej,onClick:eO,onKeyDown:eI,children:er})})]},eo)):renderComponent(ef.search.emptyResult)})})]})}var rj={},rI=new Map,loadIndexes=(ee,en)=>{let er=ee+"@"+en;if(rI.has(er))return rI.get(er);let eo=loadIndexesImpl(ee,en);return rI.set(er,eo),eo},loadIndexesImpl=(ee,en)=>__async(void 0,null,function*(){let er=yield fetch(`${ee}/_next/static/chunks/nextra-data-${en}.json`),eo=yield er.json(),ei=new(nn()).Document({cache:100,tokenize:"full",document:{id:"id",index:"content",store:["title"]},context:{resolution:9,depth:2,bidirectional:!0}}),es=new(nn()).Document({cache:100,tokenize:"full",document:{id:"id",index:"content",tag:"pageId",store:["title","content","url","display"]},context:{resolution:9,depth:2,bidirectional:!0}}),eu=0;for(let[ee,en]of Object.entries(eo)){let er="";for(let[eo,ei]of(++eu,Object.entries(en.data))){let[ec,ed]=eo.split("#"),ep=ee+(ec?"#"+ec:""),ef=ed||en.title,eh=ei.split("\n");es.add(__spreadValues({id:ep,url:ep,title:ef,pageId:`page_${eu}`,content:ef},eh[0]&&{display:eh[0]}));for(let ee=0;ee<eh.length;ee++)es.add({id:`${ep}_${ee}`,url:ep,title:ef,pageId:`page_${eu}`,content:eh[ee]});er+=` ${ef} ${ei}`}ei.add({id:eu,title:en.title,content:er})}rj[en]=[ei,es]});function Flexsearch({className:ee}){let{locale:en=r$,basePath:er}=(0,ew.useRouter)(),[eo,ei]=(0,ek.useState)(!1),[es,eu]=(0,ek.useState)(!1),[ec,ed]=(0,ek.useState)([]),[ep,ef]=(0,ek.useState)(""),doSearch=ee=>{var er,eo;if(!ee)return;let[ei,es]=rj[en],eu=(null==(er=ei.search(ee,5,{enrich:!0,suggest:!0})[0])?void 0:er.result)||[],ec=[],ep={};for(let en=0;en<eu.length;en++){let er=eu[en];ep[en]=0;let ei=(null==(eo=es.search(ee,5,{enrich:!0,suggest:!0,tag:`page_${er.id}`})[0])?void 0:eo.result)||[],ed=!0,ef={};for(let eo=0;eo<ei.length;eo++){let{doc:es}=ei[eo],eu=void 0!==es.display;eu&&ep[en]++;let{url:eh,title:em}=es,ex=es.display||es.content;ef[eh+"@"+ex]||(ef[eh+"@"+ex]=!0,ec.push({_page_rk:en,_section_rk:eo,route:eh,prefix:ed&&(0,tk.jsx)("div",{className:(0,eC.Z)("nx-mx-2.5 nx-mb-2 nx-mt-6 nx-select-none nx-border-b nx-border-black/10 nx-px-2.5 nx-pb-1.5 nx-text-xs nx-font-semibold nx-uppercase nx-text-gray-500 first:nx-mt-0 dark:nx-border-white/20 dark:nx-text-gray-300","contrast-more:nx-border-gray-600 contrast-more:nx-text-gray-900 contrast-more:dark:nx-border-gray-50 contrast-more:dark:nx-text-gray-50"),children:er.doc.title}),children:(0,tk.jsxs)(tk.Fragment,{children:[(0,tk.jsx)("div",{className:"nx-text-base nx-font-semibold nx-leading-5",children:(0,tk.jsx)(rE,{match:ee,value:em})}),ex&&(0,tk.jsx)("div",{className:"excerpt nx-mt-1 nx-text-sm nx-leading-[1.35rem] nx-text-gray-600 dark:nx-text-gray-400 contrast-more:dark:nx-text-gray-50",children:(0,tk.jsx)(rE,{match:ee,value:ex})})]})}),ed=!1)}}ed(ec.sort((ee,en)=>ee._page_rk===en._page_rk?ee._section_rk-en._section_rk:ep[ee._page_rk]!==ep[en._page_rk]?ep[en._page_rk]-ep[ee._page_rk]:ee._page_rk-en._page_rk).map(ee=>({id:`${ee._page_rk}_${ee._section_rk}`,route:ee.route,prefix:ee.prefix,children:ee.children})))},eh=(0,ek.useCallback)(ee=>__async(this,null,function*(){if(ee&&!rj[en]){ei(!0);try{yield loadIndexes(er,en)}catch(ee){eu(!0)}ei(!1)}}),[en,er]),handleChange=ee=>__async(this,null,function*(){if(ef(ee),!eo){if(!rj[en]){ei(!0);try{yield loadIndexes(er,en)}catch(ee){eu(!0)}ei(!1)}doSearch(ee)}});return(0,tk.jsx)(Search,{loading:eo,error:es,value:ep,onChange:handleChange,onActive:eh,className:ee,overlayClassName:"nx-w-screen nx-min-h-[100px] nx-max-w-[min(calc(100vw-2rem),calc(100%+20rem))]",results:ec})}function Select({options:ee,selected:en,onChange:er,title:eo,className:ei}){let[es,eu]=usePopper({strategy:"fixed",placement:"top-start",modifiers:[{name:"offset",options:{offset:[0,10]}},{name:"sameWidth",enabled:!0,fn({state:ee}){ee.styles.popper.minWidth=`${ee.rects.reference.width}px`},phase:"beforeWrite",requires:["computeStyles"]}]});return(0,tk.jsx)(nG,{value:en,onChange:er,children:({open:er})=>(0,tk.jsxs)(nG.Button,{ref:es,title:eo,className:(0,eC.Z)("nx-h-7 nx-rounded-md nx-px-2 nx-text-left nx-text-xs nx-font-medium nx-text-gray-600 nx-transition-colors dark:nx-text-gray-400",er?"nx-bg-gray-200 nx-text-gray-900 dark:nx-bg-primary-100/10 dark:nx-text-gray-50":"hover:nx-bg-gray-100 hover:nx-text-gray-900 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50",ei),children:[en.name,(0,tk.jsx)(Portal,{children:(0,tk.jsx)(nC,{ref:eu,show:er,as:nG.Options,className:"nx-z-20 nx-max-h-64 nx-overflow-auto nx-rounded-md nx-ring-1 nx-ring-black/5 nx-bg-white nx-py-1 nx-text-sm nx-shadow-lg dark:nx-ring-white/20 dark:nx-bg-neutral-800",leave:"nx-transition-opacity",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:ee.map(ee=>(0,tk.jsxs)(nG.Option,{value:ee,className:({active:ee})=>(0,eC.Z)(ee?"nx-bg-primary-50 nx-text-primary-600 dark:nx-bg-primary-500/10":"nx-text-gray-800 dark:nx-text-gray-100","nx-relative nx-cursor-pointer nx-whitespace-nowrap nx-py-1.5","nx-transition-colors ltr:nx-pl-3 ltr:nx-pr-9 rtl:nx-pr-3 rtl:nx-pl-9"),children:[ee.name,ee.key===en.key&&(0,tk.jsx)("span",{className:"nx-absolute nx-inset-y-0 nx-flex nx-items-center ltr:nx-right-3 rtl:nx-left-3",children:(0,tk.jsx)(eS.nQ,{})})]},ee.key))})})]})})}function Portal(ee){let en=useMounted();return en?(0,nK.createPortal)(ee.children,document.body):null}function LocaleSwitch({lite:ee,className:en}){let er=useConfig(),{locale:eo,asPath:ei}=(0,ew.useRouter)(),es=er.i18n;if(!es.length)return null;let eu=es.find(ee=>eo===ee.locale);return(0,tk.jsx)(Select,{title:"Change language",className:en,onChange:ee=>{let en=new Date(Date.now()+31536e6);document.cookie=`NEXT_LOCALE=${ee.key}; expires=${en.toUTCString()}; path=/`,location.href=(0,nT.addBasePath)(ei)},selected:{key:(null==eu?void 0:eu.locale)||"",name:(0,tk.jsxs)("span",{className:"nx-flex nx-items-center nx-gap-2",children:[(0,tk.jsx)(eS.n9,{}),(0,tk.jsx)("span",{className:ee?"nx-hidden":"",children:null==eu?void 0:eu.text})]})},options:es.map(ee=>({key:ee.locale,name:ee.text}))})}function Footer({menu:ee}){let en=useConfig();return(0,tk.jsxs)("footer",{className:"nx-bg-gray-100 nx-pb-[env(safe-area-inset-bottom)] dark:nx-bg-neutral-900 print:nx-bg-transparent",children:[(0,tk.jsxs)("div",{className:(0,eC.Z)("nx-mx-auto nx-flex nx-max-w-[90rem] nx-gap-2 nx-py-2 nx-px-4",ee&&(en.i18n.length>0||en.darkMode)?"nx-flex":"nx-hidden"),children:[(0,tk.jsx)(LocaleSwitch,{}),en.darkMode&&renderComponent(en.themeSwitch.component)]}),(0,tk.jsx)("hr",{className:"dark:nx-border-neutral-800"}),(0,tk.jsx)("div",{className:(0,eC.Z)("nx-mx-auto nx-flex nx-max-w-[90rem] nx-justify-center nx-py-12 nx-text-gray-600 dark:nx-text-gray-400 md:nx-justify-start","nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]"),children:renderComponent(en.footer.text)})]})}function dist_Head(){var ee;let en=useConfig(),{resolvedTheme:er}=y(),eo=useMounted(),ei="function"==typeof en.head?en.head({}):en.head,{primaryHue:es,primarySaturation:eu}=en,{dark:ec,light:ed}="number"==typeof es?{dark:es,light:es}:es,{dark:ep,light:ef}="number"==typeof eu?{dark:eu,light:eu}:eu,eh=en.frontMatter;return(0,tk.jsxs)(tk.Fragment,{children:[(0,tk.jsx)(NextSeo,__spreadValues({title:en.title,description:eh.description,canonical:eh.canonical,openGraph:eh.openGraph},null==(ee=en.useNextSeoProps)?void 0:ee.call(en))),(0,tk.jsxs)(nY(),{children:[en.faviconGlyph?(0,tk.jsx)("link",{rel:"icon",href:`data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text x='50' y='.9em' font-size='90' text-anchor='middle'>${en.faviconGlyph}</text><style>text{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";fill:black}@media(prefers-color-scheme:dark){text{fill:white}}</style></svg>`}):null,eo?(0,tk.jsx)("meta",{name:"theme-color",content:"dark"===er?"#111":"#fff"}):(0,tk.jsxs)(tk.Fragment,{children:[(0,tk.jsx)("meta",{name:"theme-color",content:"#fff",media:"(prefers-color-scheme: light)"}),(0,tk.jsx)("meta",{name:"theme-color",content:"#111",media:"(prefers-color-scheme: dark)"})]}),(0,tk.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, viewport-fit=cover"}),(0,tk.jsx)("style",{children:`
        :root {
          --nextra-primary-hue: ${ed}deg;
          --nextra-primary-saturation: ${ef}%;
          --nextra-navbar-height: 4rem;
          --nextra-menu-height: 3.75rem;
          --nextra-banner-height: 2.5rem;
        }
        
        .dark {
          --nextra-primary-hue: ${ec}deg;
          --nextra-primary-saturation: ${ep}%;
        }
      `}),ei]})]})}var rP={link:(0,eC.Z)("nx-flex nx-max-w-[50%] nx-items-center nx-gap-1 nx-py-4 nx-text-base nx-font-medium nx-text-gray-600 nx-transition-colors [word-break:break-word] hover:nx-text-primary-600 dark:nx-text-gray-300 md:nx-text-lg"),icon:(0,eC.Z)("nx-inline nx-h-5 nx-shrink-0")},NavLinks=({flatDirectories:ee,currentIndex:en})=>{let er=useConfig(),eo=er.navigation,ei="boolean"==typeof eo?{prev:eo,next:eo}:eo,es=ei.prev&&ee[en-1],eu=ei.next&&ee[en+1];return(es&&!es.isUnderCurrentDocsTree&&(es=!1),eu&&!eu.isUnderCurrentDocsTree&&(eu=!1),es||eu)?(0,tk.jsxs)("div",{className:(0,eC.Z)("nx-mb-8 nx-flex nx-items-center nx-border-t nx-pt-8 dark:nx-border-neutral-800","contrast-more:nx-border-neutral-400 dark:contrast-more:nx-border-neutral-400","print:nx-hidden"),children:[es&&(0,tk.jsxs)(rT,{href:es.route,title:es.title,className:(0,eC.Z)(rP.link,"ltr:nx-pr-4 rtl:nx-pl-4"),children:[(0,tk.jsx)(eS.LZ,{className:(0,eC.Z)(rP.icon,"ltr:nx-rotate-180")}),es.title]}),eu&&(0,tk.jsxs)(rT,{href:eu.route,title:eu.title,className:(0,eC.Z)(rP.link,"ltr:nx-ml-auto ltr:nx-pl-4 ltr:nx-text-right rtl:nx-mr-auto rtl:nx-pr-4 rtl:nx-text-left"),children:[eu.title,(0,tk.jsx)(eS.LZ,{className:(0,eC.Z)(rP.icon,"rtl:nx-rotate-180")})]})]}):null},rN={link:(0,eC.Z)("nx-text-sm contrast-more:nx-text-gray-700 contrast-more:dark:nx-text-gray-100"),active:(0,eC.Z)("nx-font-medium nx-subpixel-antialiased"),inactive:(0,eC.Z)("nx-text-gray-600 hover:nx-text-gray-800 dark:nx-text-gray-400 dark:hover:nx-text-gray-200")};function NavbarMenu({className:ee,menu:en,children:er}){let{items:eo}=en,ei=Object.fromEntries((en.children||[]).map(ee=>[ee.name,ee]));return(0,tk.jsx)("div",{className:"nx-relative nx-inline-block",children:(0,tk.jsxs)(rt,{children:[(0,tk.jsx)(rt.Button,{className:(0,eC.Z)(ee,"-nx-ml-2 nx-hidden nx-items-center nx-whitespace-nowrap nx-rounded nx-p-2 md:nx-inline-flex",rN.inactive),children:er}),(0,tk.jsx)(nC,{leave:"nx-transition-opacity",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:(0,tk.jsx)(rt.Items,{className:"nx-absolute nx-right-0 nx-z-20 nx-mt-1 nx-max-h-64 nx-min-w-full nx-overflow-auto nx-rounded-md nx-ring-1 nx-ring-black/5 nx-bg-white nx-py-1 nx-text-sm nx-shadow-lg dark:nx-ring-white/20 dark:nx-bg-neutral-800",children:Object.entries(eo||{}).map(([ee,er])=>{var eo;return(0,tk.jsx)(rt.Item,{children:(0,tk.jsx)(rT,{href:er.href||(null==(eo=ei[ee])?void 0:eo.route)||en.route+"/"+ee,className:(0,eC.Z)("nx-relative nx-hidden nx-w-full nx-select-none nx-whitespace-nowrap nx-text-gray-600 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-100 md:nx-inline-block","nx-py-1.5 nx-transition-colors ltr:nx-pl-3 ltr:nx-pr-9 rtl:nx-pr-3 rtl:nx-pl-9"),newWindow:er.newWindow,children:er.title||ee})},ee)})})})]})})}function Navbar({flatDirectories:ee,items:en}){let er=useConfig(),eo=useFSRoute(),{menu:ei,setMenu:es}=useMenu();return(0,tk.jsxs)("div",{className:"nextra-nav-container nx-sticky nx-top-0 nx-z-20 nx-w-full nx-bg-transparent print:nx-hidden",children:[(0,tk.jsx)("div",{className:(0,eC.Z)("nextra-nav-container-blur","nx-pointer-events-none nx-absolute nx-z-[-1] nx-h-full nx-w-full nx-bg-white dark:nx-bg-dark","nx-shadow-[0_2px_4px_rgba(0,0,0,.02),0_1px_0_rgba(0,0,0,.06)] dark:nx-shadow-[0_-1px_0_rgba(255,255,255,.1)_inset]","contrast-more:nx-shadow-[0_0_0_1px_#000] contrast-more:dark:nx-shadow-[0_0_0_1px_#fff]")}),(0,tk.jsxs)("nav",{className:"nx-mx-auto nx-flex nx-h-[var(--nextra-navbar-height)] nx-max-w-[90rem] nx-items-center nx-justify-end nx-gap-2 nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]",children:[er.logoLink?(0,tk.jsx)(rT,{href:"string"==typeof er.logoLink?er.logoLink:"/",className:"nx-flex nx-items-center hover:nx-opacity-75 ltr:nx-mr-auto rtl:nx-ml-auto",children:renderComponent(er.logo)}):(0,tk.jsx)("div",{className:"nx-flex nx-items-center ltr:nx-mr-auto rtl:nx-ml-auto",children:renderComponent(er.logo)}),en.map(ee=>{if("hidden"===ee.display)return null;if("menu"===ee.type){let en=ee;return(0,tk.jsxs)(NavbarMenu,{className:(0,eC.Z)(rN.link,"nx-flex nx-gap-1",rN.inactive),menu:en,children:[en.title,(0,tk.jsx)(eS.LZ,{className:"nx-h-[18px] nx-min-w-[18px] nx-rounded-sm nx-p-0.5",pathClassName:"nx-origin-center nx-transition-transform nx-rotate-90"})]},en.title)}let en=ee,er=en.href||en.route||"#";en.children&&(er=(en.withIndexPage?en.route:en.firstChildRoute)||er);let ei=en.route===eo||eo.startsWith(en.route+"/");return(0,tk.jsxs)(rT,{href:er,className:(0,eC.Z)(rN.link,"nx-relative -nx-ml-2 nx-hidden nx-whitespace-nowrap nx-p-2 md:nx-inline-block",!ei||en.newWindow?rN.inactive:rN.active),newWindow:en.newWindow,"aria-current":!en.newWindow&&ei,children:[(0,tk.jsx)("span",{className:"nx-absolute nx-inset-x-0 nx-text-center",children:en.title}),(0,tk.jsx)("span",{className:"nx-invisible nx-font-medium",children:en.title})]},er)}),renderComponent(er.search.component,{directories:ee,className:"nx-hidden md:nx-inline-block mx-min-w-[200px]"}),er.project.link?(0,tk.jsx)(rT,{className:"nx-p-2 nx-text-current",href:er.project.link,newWindow:!0,children:renderComponent(er.project.icon)}):null,er.chat.link?(0,tk.jsx)(rT,{className:"nx-p-2 nx-text-current",href:er.chat.link,newWindow:!0,children:renderComponent(er.chat.icon)}):null,renderComponent(er.navbar.extraContent),(0,tk.jsx)("button",{type:"button","aria-label":"Menu",className:"nextra-hamburger -nx-mr-2 nx-rounded nx-p-2 active:nx-bg-gray-400/20 md:nx-hidden",onClick:()=>es(!ei),children:(0,tk.jsx)(eS.Oq,{className:(0,eC.Z)({open:ei})})})]})]})}var rR=Object.create(null),rZ=(0,ek.createContext)(null),rM=(0,ek.createContext)(null),rA=(0,ek.createContext)(0),rL=(0,ek.memo)(function(ee){let en=(0,ek.useContext)(rA);return(0,tk.jsx)(rA.Provider,{value:en+1,children:(0,tk.jsx)(FolderImpl,__spreadValues({},ee))})}),rD={link:(0,eC.Z)("nx-flex nx-rounded nx-px-2 nx-py-1.5 nx-text-sm nx-transition-colors [word-break:break-word]","nx-cursor-pointer [-webkit-tap-highlight-color:transparent] [-webkit-touch-callout:none] contrast-more:nx-border"),inactive:(0,eC.Z)("nx-text-gray-500 hover:nx-bg-gray-100 hover:nx-text-gray-900","dark:nx-text-neutral-400 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50","contrast-more:nx-text-gray-900 contrast-more:dark:nx-text-gray-50","contrast-more:nx-border-transparent contrast-more:hover:nx-border-gray-900 contrast-more:dark:hover:nx-border-gray-50"),active:(0,eC.Z)("nx-bg-primary-100 nx-font-semibold nx-text-primary-800 dark:nx-bg-primary-400/10 dark:nx-text-primary-600","contrast-more:nx-border-primary-500 contrast-more:dark:nx-border-primary-500"),list:(0,eC.Z)("nx-flex nx-flex-col nx-gap-1"),border:(0,eC.Z)("nx-relative before:nx-absolute before:nx-inset-y-1",'before:nx-w-px before:nx-bg-gray-200 before:nx-content-[""] dark:before:nx-bg-neutral-800',"ltr:nx-pl-3 ltr:before:nx-left-0 rtl:nx-pr-3 rtl:before:nx-right-0")};function FolderImpl({item:ee,anchors:en}){let er=useFSRoute(),[eo]=er.split("#"),ei=[eo,eo+"/"].includes(ee.route+"/"),es=ei||eo.startsWith(ee.route+"/"),eu=(0,ek.useContext)(rZ),ec=!!(null==eu?void 0:eu.startsWith(ee.route+"/")),ed=(0,ek.useContext)(rA),{setMenu:ep}=useMenu(),ef=useConfig(),{theme:eh}=ee,em=void 0===rR[ee.route]?ei||es||ec||(eh&&"collapsed"in eh?!eh.collapsed:ed<ef.sidebar.defaultMenuCollapseLevel):rR[ee.route]||ec,ex=(0,ek.useState)({})[1];if((0,ek.useEffect)(()=>{let updateTreeState=()=>{(es||ec)&&(rR[ee.route]=!0)},updateAndPruneTreeState=()=>{es&&ec?rR[ee.route]=!0:delete rR[ee.route]};ef.sidebar.autoCollapse?updateAndPruneTreeState():updateTreeState()},[es,ec,ee.route,ef.sidebar.autoCollapse]),"menu"===ee.type){let en=ee,er=Object.fromEntries((en.children||[]).map(ee=>[ee.name,ee]));ee.children=Object.entries(en.items||{}).map(([ee,eo])=>{let ei=er[ee]||__spreadProps(__spreadValues({name:ee},"locale"in en&&{locale:en.locale}),{route:en.route+"/"+ee});return __spreadValues(__spreadValues({},ei),eo)})}let eg="withIndexPage"in ee&&ee.withIndexPage,ev=eg?rT:"button";return(0,tk.jsxs)("li",{className:(0,eC.Z)({open:em,active:ei}),children:[(0,tk.jsxs)(ev,{href:eg?ee.route:void 0,className:(0,eC.Z)("nx-items-center nx-justify-between nx-gap-2",!eg&&"nx-text-left nx-w-full",rD.link,ei?rD.active:rD.inactive),onClick:en=>{let er=["svg","path"].includes(en.target.tagName.toLowerCase());if(er&&en.preventDefault(),eg){ei||er?rR[ee.route]=!em:(rR[ee.route]=!0,ep(!1)),ex({});return}ei||(rR[ee.route]=!em,ex({}))},children:[renderComponent(ef.sidebar.titleComponent,{title:ee.title,type:ee.type,route:ee.route}),(0,tk.jsx)(eS.LZ,{className:"nx-h-[18px] nx-min-w-[18px] nx-rounded-sm nx-p-0.5 hover:nx-bg-gray-800/5 dark:hover:nx-bg-gray-100/5",pathClassName:(0,eC.Z)("nx-origin-center nx-transition-transform rtl:-nx-rotate-180",em&&"ltr:nx-rotate-90 rtl:nx-rotate-[-270deg]")})]}),(0,tk.jsx)(Collapse,{className:"ltr:nx-pr-0 rtl:nx-pl-0 nx-pt-1",isOpen:em,children:Array.isArray(ee.children)?(0,tk.jsx)(Menu2,{className:(0,eC.Z)(rD.border,"ltr:nx-ml-3 rtl:nx-mr-3"),directories:ee.children,base:ee.route,anchors:en}):null})]})}function Separator({title:ee}){let en=useConfig();return(0,tk.jsx)("li",{className:(0,eC.Z)("[word-break:break-word]",ee?"nx-mt-5 nx-mb-2 nx-px-2 nx-py-1.5 nx-text-sm nx-font-semibold nx-text-gray-900 first:nx-mt-0 dark:nx-text-gray-100":"nx-my-4"),children:ee?renderComponent(en.sidebar.titleComponent,{title:ee,type:"separator",route:""}):(0,tk.jsx)("hr",{className:"nx-mx-2 nx-border-t nx-border-gray-200 dark:nx-border-primary-100/10"})})}function File({item:ee,anchors:en}){let er=useFSRoute(),eo=(0,ek.useContext)(rM),ei=ee.route&&[er,er+"/"].includes(ee.route+"/"),es=useActiveAnchor(),{setMenu:eu}=useMenu(),ec=useConfig();return"separator"===ee.type?(0,tk.jsx)(Separator,{title:ee.title}):(0,tk.jsxs)("li",{className:(0,eC.Z)(rD.list,{active:ei}),children:[(0,tk.jsx)(rT,{href:ee.href||ee.route,newWindow:ee.newWindow,className:(0,eC.Z)(rD.link,ei?rD.active:rD.inactive),onClick:()=>{eu(!1)},onFocus:()=>{null==eo||eo(ee.route)},onBlur:()=>{null==eo||eo(null)},children:renderComponent(ec.sidebar.titleComponent,{title:ee.title,type:ee.type,route:ee.route})}),ei&&en.length>0&&(0,tk.jsx)("ul",{className:(0,eC.Z)(rD.list,rD.border,"ltr:nx-ml-3 rtl:nx-mr-3"),children:en.map(({id:ee,value:en})=>{var er;return(0,tk.jsx)("li",{children:(0,tk.jsx)("a",{href:`#${ee}`,className:(0,eC.Z)(rD.link,'nx-flex nx-gap-2 before:nx-opacity-25 before:nx-content-["#"]',(null==(er=es[ee])?void 0:er.isActive)?rD.active:rD.inactive),onClick:()=>{eu(!1)},children:en})},ee)})})]})}function Menu2({directories:ee,anchors:en,className:er,onlyCurrentDocs:eo}){return(0,tk.jsx)("ul",{className:(0,eC.Z)(rD.list,er),children:ee.map(ee=>!eo||ee.isUnderCurrentDocsTree?"menu"===ee.type||ee.children&&(ee.children.length||!ee.withIndexPage)?(0,tk.jsx)(rL,{item:ee,anchors:en},ee.name):(0,tk.jsx)(File,{item:ee,anchors:en},ee.name):null)})}function Sidebar({docsDirectories:ee,flatDirectories:en,fullDirectories:er,asPopover:eo=!1,headings:ei,includePlaceholder:es}){let eu=useConfig(),{menu:ec,setMenu:ed}=useMenu(),ep=(0,ew.useRouter)(),[ef,eh]=(0,ek.useState)(null),[em,ex]=(0,ek.useState)(!0),[eg,ev]=(0,ek.useState)(!1),ey=(0,ek.useMemo)(()=>ei.filter(ee=>2===ee.depth),[ei]),eb=(0,ek.useRef)(null),e_=(0,ek.useRef)(null),eT=useMounted();(0,ek.useEffect)(()=>{ec?document.body.classList.add("nx-overflow-hidden","md:nx-overflow-auto"):document.body.classList.remove("nx-overflow-hidden","md:nx-overflow-auto")},[ec]),(0,ek.useEffect)(()=>{var ee;let en=null==(ee=eb.current)?void 0:ee.querySelector("li.active");if(en&&(window.innerWidth>767||ec)){let scroll=()=>{dist_e(en,{block:"center",inline:"center",scrollMode:"always",boundary:e_.current})};ec?setTimeout(scroll,300):scroll()}},[ec]),(0,ek.useEffect)(()=>{ed(!1)},[ep.asPath,ed]);let eE=eu.i18n.length>0,eO=eu.darkMode||eE||eu.sidebar.toggleButton;return(0,tk.jsxs)(tk.Fragment,{children:[es&&eo?(0,tk.jsx)("div",{className:"max-xl:nx-hidden nx-h-0 nx-w-64 nx-shrink-0"}):null,(0,tk.jsx)("div",{className:(0,eC.Z)("motion-reduce:nx-transition-none [transition:background-color_1.5s_ease]",ec?"nx-fixed nx-inset-0 nx-z-10 nx-bg-black/80 dark:nx-bg-black/60":"nx-bg-transparent"),onClick:()=>ed(!1)}),(0,tk.jsxs)("aside",{className:(0,eC.Z)("nextra-sidebar-container nx-flex nx-flex-col","md:nx-top-16 md:nx-shrink-0 motion-reduce:nx-transform-none","nx-transform-gpu nx-transition-all nx-ease-in-out","print:nx-hidden",em?"md:nx-w-64":"md:nx-w-20",eo?"md:nx-hidden":"md:nx-sticky md:nx-self-start",ec?"max-md:[transform:translate3d(0,0,0)]":"max-md:[transform:translate3d(0,-100%,0)]"),ref:e_,children:[(0,tk.jsx)("div",{className:"nx-px-4 nx-pt-4 md:nx-hidden",children:renderComponent(eu.search.component,{directories:en})}),(0,tk.jsx)(rZ.Provider,{value:ef,children:(0,tk.jsx)(rM.Provider,{value:ee=>{eh(ee)},children:(0,tk.jsxs)("div",{className:(0,eC.Z)("nx-overflow-y-auto nx-overflow-x-hidden","nx-p-4 nx-grow md:nx-h-[calc(100vh-var(--nextra-navbar-height)-var(--nextra-menu-height))]",em?"nextra-scrollbar":"no-scrollbar"),ref:eb,children:[(!eo||!em)&&(0,tk.jsx)(Collapse,{isOpen:em,horizontal:!0,children:(0,tk.jsx)(Menu2,{className:"nextra-menu-desktop max-md:nx-hidden",directories:ee,anchors:eu.toc.float?[]:ey,onlyCurrentDocs:!0})}),eT&&window.innerWidth<768&&(0,tk.jsx)(Menu2,{className:"nextra-menu-mobile md:nx-hidden",directories:er,anchors:ey})]})})}),eO&&(0,tk.jsxs)("div",{className:(0,eC.Z)("nx-sticky nx-bottom-0","nx-bg-white dark:nx-bg-dark","nx-mx-4 nx-py-4 nx-shadow-[0_-12px_16px_#fff]","nx-flex nx-items-center nx-gap-2","dark:nx-border-neutral-800 dark:nx-shadow-[0_-12px_16px_#111]","contrast-more:nx-border-neutral-400 contrast-more:nx-shadow-none contrast-more:dark:nx-shadow-none",em?(0,eC.Z)(eE&&"nx-justify-end","nx-border-t"):"nx-py-4 nx-flex-wrap nx-justify-center"),"data-toggle-animation":eg?em?"show":"hide":"off",children:[(0,tk.jsx)(LocaleSwitch,{lite:!em,className:(0,eC.Z)(em?"nx-grow":"max-md:nx-grow")}),eu.darkMode&&(0,tk.jsx)("div",{className:em&&!eE?"nx-grow nx-flex nx-flex-col":"",children:renderComponent(eu.themeSwitch.component,{lite:!em||eE})}),eu.sidebar.toggleButton&&(0,tk.jsx)("button",{title:em?"Hide sidebar":"Show sidebar",className:"max-md:nx-hidden nx-h-7 nx-rounded-md nx-transition-colors nx-text-gray-600 dark:nx-text-gray-400 nx-px-2 hover:nx-bg-gray-100 hover:nx-text-gray-900 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50",onClick:()=>{ex(!em),ev(!0)},children:(0,tk.jsx)(eS.Qq,{isOpen:em})})]})]})]})}var rF="reach-skip-nav",rz="Skip to content";(0,ek.forwardRef)(function(ee,en){var er=ee,{className:eo,id:ei,label:es=rz,styled:eu}=er,ec=__objRest(er,["className","id","label","styled"]);let ed=void 0===eo?eu?(0,eC.Z)("nx-sr-only","focus:nx-not-sr-only focus:nx-fixed focus:nx-z-50 focus:nx-m-3 focus:nx-ml-4 focus:nx-h-[calc(var(--nextra-navbar-height)-1.5rem)] focus:nx-rounded-lg focus:nx-border focus:nx-px-3 focus:nx-py-2 focus:nx-align-middle focus:nx-text-sm focus:nx-font-bold","focus:nx-text-gray-900 focus:dark:nx-text-gray-100","focus:nx-bg-white focus:dark:nx-bg-neutral-900","focus:nx-border-neutral-400 focus:dark:nx-border-neutral-800"):"":eo;return(0,tk.jsx)("a",__spreadProps(__spreadValues({},ec),{ref:en,href:`#${ei||rF}`,className:ed,"data-reach-skip-link":"",children:es}))}).displayName="SkipNavLink";var rV=(0,ek.forwardRef)(function(ee,en){var er=ee,{id:eo}=er,ei=__objRest(er,["id"]);return(0,tk.jsx)("div",__spreadProps(__spreadValues({},ei),{ref:en,id:eo||rF}))});rV.displayName="SkipNavContent";var rU=ty.strictObject({light:ty.string(),dark:ty.string(),system:ty.string()});function ThemeSwitch({lite:ee,className:en}){let{setTheme:er,resolvedTheme:eo,theme:ei=""}=y(),es=useMounted(),eu=useConfig().themeSwitch,ec=es&&"dark"===eo?eS.kL:eS.NW,ed="function"==typeof eu.useOptions?eu.useOptions():eu.useOptions;return(0,tk.jsx)(Select,{className:en,title:"Change theme",options:[{key:"light",name:ed.light},{key:"dark",name:ed.dark},{key:"system",name:ed.system}],onChange:ee=>{er(ee.key)},selected:{key:ei,name:(0,tk.jsxs)("div",{className:"nx-flex nx-items-center nx-gap-2 nx-capitalize",children:[(0,tk.jsx)(ec,{}),(0,tk.jsx)("span",{className:ee?"md:nx-hidden":"",children:es?ed[ei]:ed.light})]})}})}function scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}function BackToTop({className:ee}){let en=(0,ek.useRef)(null);return(0,ek.useEffect)(()=>{function toggleVisible(){var ee;let{scrollTop:er}=document.documentElement;null==(ee=en.current)||ee.classList.toggle("nx-opacity-0",er<300)}return window.addEventListener("scroll",toggleVisible),()=>{window.removeEventListener("scroll",toggleVisible)}},[]),(0,tk.jsxs)("button",{ref:en,"aria-hidden":"true",onClick:scrollToTop,className:(0,eC.Z)("nx-flex nx-items-center nx-gap-1.5 nx-transition nx-opacity-0",ee),children:["Scroll to top",(0,tk.jsx)(eS.LZ,{className:"-nx-rotate-90 nx-w-3.5 nx-h-3.5 nx-border nx-rounded-full nx-border-current"})]})}var rH=(0,eC.Z)("nx-text-xs nx-font-medium nx-text-gray-500 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-100","contrast-more:nx-text-gray-800 contrast-more:dark:nx-text-gray-50");function TOC({headings:ee,filePath:en}){var er;let eo=useActiveAnchor(),ei=useConfig(),es=(0,ek.useRef)(null),eu=(0,ek.useMemo)(()=>ee.filter(ee=>ee.depth>1),[ee]),ec=eu.length>0,ed=!!(ei.feedback.content||ei.editLink.component||ei.toc.extraContent),ep=null==(er=Object.entries(eo).find(([,{isActive:ee}])=>ee))?void 0:er[0];return(0,ek.useEffect)(()=>{var ee;if(!ep)return;let en=null==(ee=es.current)?void 0:ee.querySelector(`li > a[href="#${ep}"]`);en&&dist_e(en,{behavior:"smooth",block:"center",inline:"center",scrollMode:"always",boundary:es.current})},[ep]),(0,tk.jsxs)("div",{ref:es,className:(0,eC.Z)("nextra-scrollbar nx-sticky nx-top-16 nx-overflow-y-auto nx-pr-4 nx-pt-6 nx-text-sm [hyphens:auto]","nx-max-h-[calc(100vh-var(--nextra-navbar-height)-env(safe-area-inset-bottom))] ltr:-nx-mr-4 rtl:-nx-ml-4"),children:[ec&&(0,tk.jsxs)(tk.Fragment,{children:[(0,tk.jsx)("p",{className:"nx-mb-4 nx-font-semibold nx-tracking-tight",children:renderComponent(ei.toc.title)}),(0,tk.jsx)("ul",{children:eu.map(({id:ee,value:en,depth:er})=>{var es,eu,ec,ed;return(0,tk.jsx)("li",{className:"nx-my-2 nx-scroll-my-6 nx-scroll-py-6",children:(0,tk.jsx)("a",{href:`#${ee}`,className:(0,eC.Z)({2:"nx-font-semibold",3:"ltr:nx-pl-4 rtl:nx-pr-4",4:"ltr:nx-pl-8 rtl:nx-pr-8",5:"ltr:nx-pl-12 rtl:nx-pr-12",6:"ltr:nx-pl-16 rtl:nx-pr-16"}[er],"nx-inline-block",(null==(es=eo[ee])?void 0:es.isActive)?"nx-text-primary-600 nx-subpixel-antialiased contrast-more:!nx-text-primary-600":"nx-text-gray-500 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-300","contrast-more:nx-text-gray-900 contrast-more:nx-underline contrast-more:dark:nx-text-gray-50 nx-w-full nx-break-words"),children:null!=(ed=null==(ec=(eu=ei.toc).headingComponent)?void 0:ec.call(eu,{id:ee,children:en}))?ed:en})},ee)})})]}),ed&&(0,tk.jsxs)("div",{className:(0,eC.Z)(ec&&"nx-mt-8 nx-border-t nx-bg-white nx-pt-8 nx-shadow-[0_-12px_16px_white] dark:nx-bg-dark dark:nx-shadow-[0_-12px_16px_#111]","nx-sticky nx-bottom-0 nx-flex nx-flex-col nx-items-start nx-gap-2 nx-pb-8 dark:nx-border-neutral-800","contrast-more:nx-border-t contrast-more:nx-border-neutral-400 contrast-more:nx-shadow-none contrast-more:dark:nx-border-neutral-400"),children:[ei.feedback.content?(0,tk.jsx)(rT,{className:rH,href:ei.feedback.useLink(),newWindow:!0,children:renderComponent(ei.feedback.content)}):null,renderComponent(ei.editLink.component,{filePath:en,className:rH,children:renderComponent(ei.editLink.text)}),renderComponent(ei.toc.extraContent),ei.toc.backToTop&&(0,tk.jsx)(BackToTop,{className:rH})]})]})}function MatchSorterSearch({className:ee,directories:en}){let[er,eo]=(0,ek.useState)(""),ei=(0,ek.useMemo)(()=>er?matchSorter(en,er,{keys:["title"]}).map(({route:ee,title:en})=>({id:ee+en,route:ee,children:(0,tk.jsx)(rE,{value:en,match:er})})):[],[er,en]);return(0,tk.jsx)(Search,{value:er,onChange:eo,className:ee,overlayClassName:"nx-w-full",results:ei})}var r$="en-US",rB="undefined"!=typeof window;function isReactNode(ee){return null==ee||"string"==typeof ee||isFunction(ee)||(0,ek.isValidElement)(ee)}function isFunction(ee){return"function"==typeof ee}var rW=ty.array(ty.strictObject({direction:ty.enum(["ltr","rtl"]).optional(),locale:ty.string(),text:ty.string()})),rG=[isReactNode,{message:"Must be React.ReactNode or React.FC"}],rK=[isFunction,{message:"Must be React.FC"}];ty.strictObject({banner:ty.strictObject({dismissible:ty.boolean(),key:ty.string(),text:ty.custom(...rG).optional()}),chat:ty.strictObject({icon:ty.custom(...rG),link:ty.string().startsWith("https://").optional()}),components:ty.record(ty.custom(...rK)).optional(),darkMode:ty.boolean(),direction:ty.enum(["ltr","rtl"]),docsRepositoryBase:ty.string().startsWith("https://"),editLink:ty.strictObject({component:ty.custom(...rK).or(ty.null()),text:ty.custom(...rG)}),faviconGlyph:ty.string().optional(),feedback:ty.strictObject({content:ty.custom(...rG),labels:ty.string(),useLink:ty.function().returns(ty.string())}),footer:ty.strictObject({component:ty.custom(...rG),text:ty.custom(...rG)}),gitTimestamp:ty.custom(...rG),head:ty.custom(...rG),i18n:rW,logo:ty.custom(...rG),logoLink:ty.boolean().or(ty.string()),main:ty.custom(...rK).optional(),navbar:ty.strictObject({component:ty.custom(...rG),extraContent:ty.custom(...rG).optional()}),navigation:ty.boolean().or(ty.strictObject({next:ty.boolean(),prev:ty.boolean()})),nextThemes:ty.strictObject({defaultTheme:ty.string(),forcedTheme:ty.string().optional(),storageKey:ty.string()}),notFound:ty.strictObject({content:ty.custom(...rG),labels:ty.string()}),primaryHue:ty.number().or(ty.strictObject({dark:ty.number(),light:ty.number()})),primarySaturation:ty.number().or(ty.strictObject({dark:ty.number(),light:ty.number()})),project:ty.strictObject({icon:ty.custom(...rG),link:ty.string().startsWith("https://").optional()}),search:ty.strictObject({component:ty.custom(...rG),emptyResult:ty.custom(...rG),error:ty.string().or(ty.function().returns(ty.string())),loading:ty.custom(...rG),placeholder:ty.string().or(ty.function().returns(ty.string()))}),serverSideError:ty.strictObject({content:ty.custom(...rG),labels:ty.string()}),sidebar:ty.strictObject({autoCollapse:ty.boolean().optional(),defaultMenuCollapseLevel:ty.number().min(1).int(),titleComponent:ty.custom(...rG),toggleButton:ty.boolean()}),themeSwitch:ty.strictObject({component:ty.custom(...rG),useOptions:rU.or(ty.function().returns(rU))}),toc:ty.strictObject({backToTop:ty.boolean(),component:ty.custom(...rG),extraContent:ty.custom(...rG),float:ty.boolean(),headingComponent:ty.custom(...rK).optional(),title:ty.custom(...rG)}),useNextSeoProps:ty.custom(isFunction)}).deepPartial().extend({i18n:rW.optional()});var rq={"en-US":"Loading",fr:"Сhargement",ru:"Загрузка","zh-CN":"正在加载"},rY={"en-US":"Search documentation",fr:"Rechercher documents",ru:"Поиск документации","zh-CN":"搜索文档"},rQ={banner:{dismissible:!0,key:"nextra-banner"},chat:{icon:(0,tk.jsxs)(tk.Fragment,{children:[(0,tk.jsx)(eS.D7,{}),(0,tk.jsx)("span",{className:"nx-sr-only",children:"Discord"})]})},darkMode:!0,direction:"ltr",docsRepositoryBase:"https://github.com/shuding/nextra",editLink:{component:function({className:ee,filePath:en,children:er}){let eo=useGitEditUrl(en);return eo?(0,tk.jsx)(rT,{className:ee,href:eo,children:er}):null},text:"Edit this page"},feedback:{content:"Question? Give us feedback →",labels:"feedback",useLink(){let ee=useConfig();return getGitIssueUrl({labels:ee.feedback.labels,repository:ee.docsRepositoryBase,title:`Feedback for \u201C${ee.title}\u201D`})}},footer:{component:Footer,text:`MIT ${new Date().getFullYear()} \xa9 Nextra.`},gitTimestamp:function({timestamp:ee}){let{locale:en=r$}=(0,ew.useRouter)();return(0,tk.jsxs)(tk.Fragment,{children:["Last updated on"," ",(0,tk.jsx)("time",{dateTime:ee.toISOString(),children:ee.toLocaleDateString(en,{day:"numeric",month:"long",year:"numeric"})})]})},head:(0,tk.jsxs)(tk.Fragment,{children:[(0,tk.jsx)("meta",{name:"msapplication-TileColor",content:"#fff"}),(0,tk.jsx)("meta",{httpEquiv:"Content-Language",content:"en"}),(0,tk.jsx)("meta",{name:"description",content:"Nextra: the next docs builder"}),(0,tk.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,tk.jsx)("meta",{name:"twitter:site",content:"@shuding_"}),(0,tk.jsx)("meta",{property:"og:title",content:"Nextra: the next docs builder"}),(0,tk.jsx)("meta",{property:"og:description",content:"Nextra: the next docs builder"}),(0,tk.jsx)("meta",{name:"apple-mobile-web-app-title",content:"Nextra"})]}),i18n:[],logo:(0,tk.jsxs)(tk.Fragment,{children:[(0,tk.jsx)("span",{className:"nx-font-extrabold",children:"Nextra"}),(0,tk.jsx)("span",{className:"nx-ml-2 nx-hidden nx-font-normal nx-text-gray-600 md:nx-inline",children:"The Next Docs Builder"})]}),logoLink:!0,navbar:{component:Navbar},navigation:!0,nextThemes:{defaultTheme:"system",storageKey:"theme"},notFound:{content:"Submit an issue about broken link →",labels:"bug"},primaryHue:{dark:204,light:212},primarySaturation:{dark:100,light:100},project:{icon:(0,tk.jsxs)(tk.Fragment,{children:[(0,tk.jsx)(eS.fy,{}),(0,tk.jsx)("span",{className:"nx-sr-only",children:"GitHub"})]})},search:{component:function({className:ee,directories:en}){let er=useConfig();return er.flexsearch?(0,tk.jsx)(Flexsearch,{className:ee}):(0,tk.jsx)(MatchSorterSearch,{className:ee,directories:en})},emptyResult:(0,tk.jsx)("span",{className:"nx-block nx-select-none nx-p-8 nx-text-center nx-text-sm nx-text-gray-400",children:"No results found."}),error:"Failed to load search index.",loading:function(){let{locale:ee,defaultLocale:en=r$}=(0,ew.useRouter)(),er=ee&&rq[ee]||rq[en];return(0,tk.jsxs)(tk.Fragment,{children:[er,"…"]})},placeholder:function(){let{locale:ee,defaultLocale:en=r$}=(0,ew.useRouter)(),er=ee&&rY[ee]||rY[en];return`${er}\u2026`}},serverSideError:{content:"Submit an issue about error in url →",labels:"bug"},sidebar:{defaultMenuCollapseLevel:2,titleComponent:({title:ee})=>(0,tk.jsx)(tk.Fragment,{children:ee}),toggleButton:!1},themeSwitch:{component:ThemeSwitch,useOptions(){let{locale:ee}=(0,ew.useRouter)();return"zh-CN"===ee?{dark:"深色主题",light:"浅色主题",system:"系统默认"}:{dark:"Dark",light:"Light",system:"System"}}},toc:{backToTop:!1,component:TOC,float:!0,title:"On This Page"},useNextSeoProps:()=>({titleTemplate:"%s – Nextra"})},rJ=Object.entries(rQ).map(([ee,en])=>{let er=en&&"object"==typeof en&&!Array.isArray(en)&&!(0,ek.isValidElement)(en);if(er)return ee}).filter(Boolean);if(rB){let ee;let addResizingClass=()=>{document.body.classList.add("resizing"),clearTimeout(ee),ee=setTimeout(()=>{document.body.classList.remove("resizing")},200)};window.addEventListener("resize",addResizingClass)}function HeadingLink(ee){var en=ee,{tag:er,context:eo,children:ei,id:es,className:eu}=en,ec=__objRest(en,["tag","context","children","id","className"]);let ed=useSetActiveAnchor(),ep=useSlugs(),ef=useIntersectionObserver(),eh=(0,ek.useRef)(null);return(0,ek.useEffect)(()=>{if(!es)return;let ee=eh.current;if(ee)return ep.set(ee,[es,eo.index+=1]),null==ef||ef.observe(ee),()=>{null==ef||ef.disconnect(),ep.delete(ee),ed(ee=>{let en=__spreadValues({},ee);return delete en[es],en})}},[es,eo,ep,ef,ed]),(0,tk.jsxs)(er,__spreadProps(__spreadValues({className:"sr-only"===eu?"nx-sr-only":(0,eC.Z)("nx-font-semibold nx-tracking-tight nx-text-slate-900 dark:nx-text-slate-100",{h2:"nx-mt-10 nx-border-b nx-pb-1 nx-text-3xl nx-border-neutral-200/70 contrast-more:nx-border-neutral-400 dark:nx-border-primary-100/10 contrast-more:dark:nx-border-neutral-400",h3:"nx-mt-8 nx-text-2xl",h4:"nx-mt-8 nx-text-xl",h5:"nx-mt-8 nx-text-lg",h6:"nx-mt-8 nx-text-base"}[er])},ec),{children:[ei,es&&(0,tk.jsx)("a",{href:`#${es}`,id:es,className:"subheading-anchor","aria-label":"Permalink for this section",ref:eh})]}))}var findSummary=ee=>{let en=null,er=[];return ek.Children.forEach(ee,(ee,eo)=>{var ei;if(ee&&ee.type===Summary){en||(en=ee);return}let es=ee;if(!en&&ee&&"object"==typeof ee&&ee.type!==Details&&"props"in ee&&ee.props){let er=findSummary(ee.props.children);en=er[0],es=(0,ek.cloneElement)(ee,__spreadProps(__spreadValues({},ee.props),{children:(null==(ei=er[1])?void 0:ei.length)?er[1]:void 0,key:eo}))}er.push(es)}),[en,er]},Details=ee=>{var en=ee,{children:er,open:eo}=en,ei=__objRest(en,["children","open"]);let[es,eu]=(0,ek.useState)(!!eo),[ec,ed]=findSummary(er),[ep,ef]=(0,ek.useState)(es);return(0,ek.useEffect)(()=>{if(es)ef(!0);else{let ee=setTimeout(()=>ef(es),500);return()=>clearTimeout(ee)}},[es]),(0,tk.jsxs)("details",__spreadProps(__spreadValues(__spreadProps(__spreadValues({className:"nx-my-4 nx-rounded nx-border nx-border-gray-200 nx-bg-white nx-p-2 nx-shadow-sm first:nx-mt-0 dark:nx-border-neutral-800 dark:nx-bg-neutral-900"},ei),{open:ep}),es&&{"data-expanded":!0}),{children:[(0,tk.jsx)(rk,{value:eu,children:ec}),(0,tk.jsx)(Collapse,{isOpen:es,children:ed})]}))},Summary=ee=>{let en=useDetails();return(0,tk.jsx)("summary",__spreadProps(__spreadValues({className:(0,eC.Z)("nx-flex nx-items-center nx-cursor-pointer nx-list-none nx-p-1 nx-transition-colors hover:nx-bg-gray-100 dark:hover:nx-bg-neutral-800","before:nx-mr-1 before:nx-inline-block before:nx-transition-transform before:nx-content-[''] dark:before:nx-invert before:nx-shrink-0","rtl:before:nx-rotate-180 [[data-expanded]>&]:before:nx-rotate-90")},ee),{onClick:ee=>{ee.preventDefault(),en(ee=>!ee)}}))},rX=/https?:\/\//,Link=ee=>{var en=ee,{href:er="",className:eo}=en,ei=__objRest(en,["href","className"]);return(0,tk.jsx)(rT,__spreadValues({href:er,newWindow:rX.test(er),className:(0,eC.Z)("nx-text-primary-600 nx-underline nx-decoration-from-font [text-underline-position:from-font]",eo)},ei))},A=ee=>{var en=ee,{href:er=""}=en,eo=__objRest(en,["href"]);return(0,tk.jsx)(rT,__spreadValues({href:er,newWindow:rX.test(er)},eo))},getComponents=({isRawLayout:ee,components:en})=>{if(ee)return{a:A};let er={index:0};return __spreadValues({h1:ee=>(0,tk.jsx)("h1",__spreadValues({className:"nx-mt-2 nx-text-4xl nx-font-bold nx-tracking-tight nx-text-slate-900 dark:nx-text-slate-100"},ee)),h2:ee=>(0,tk.jsx)(HeadingLink,__spreadValues({tag:"h2",context:er},ee)),h3:ee=>(0,tk.jsx)(HeadingLink,__spreadValues({tag:"h3",context:er},ee)),h4:ee=>(0,tk.jsx)(HeadingLink,__spreadValues({tag:"h4",context:er},ee)),h5:ee=>(0,tk.jsx)(HeadingLink,__spreadValues({tag:"h5",context:er},ee)),h6:ee=>(0,tk.jsx)(HeadingLink,__spreadValues({tag:"h6",context:er},ee)),ul:ee=>(0,tk.jsx)("ul",__spreadValues({className:"nx-mt-6 nx-list-disc first:nx-mt-0 ltr:nx-ml-6 rtl:nx-mr-6"},ee)),ol:ee=>(0,tk.jsx)("ol",__spreadValues({className:"nx-mt-6 nx-list-decimal first:nx-mt-0 ltr:nx-ml-6 rtl:nx-mr-6"},ee)),li:ee=>(0,tk.jsx)("li",__spreadValues({className:"nx-my-2"},ee)),blockquote:ee=>(0,tk.jsx)("blockquote",__spreadValues({className:(0,eC.Z)("nx-mt-6 nx-border-gray-300 nx-italic nx-text-gray-700 dark:nx-border-gray-700 dark:nx-text-gray-400","first:nx-mt-0 ltr:nx-border-l-2 ltr:nx-pl-6 rtl:nx-border-r-2 rtl:nx-pr-6")},ee)),hr:ee=>(0,tk.jsx)("hr",__spreadValues({className:"nx-my-8 nx-border-neutral-200/70 contrast-more:nx-border-neutral-400 dark:nx-border-primary-100/10 contrast-more:dark:nx-border-neutral-400"},ee)),a:Link,table:ee=>(0,tk.jsx)(rs.iA,__spreadValues({className:"nextra-scrollbar nx-mt-6 nx-p-0 first:nx-mt-0"},ee)),p:ee=>(0,tk.jsx)("p",__spreadValues({className:"nx-mt-6 nx-leading-7 first:nx-mt-0"},ee)),tr:rs.Tr,th:rs.Th,td:rs.Td,details:Details,summary:Summary,pre:rs.SU,code:rs.EK},en)},r0={toc:(0,eC.Z)("nextra-toc nx-order-last nx-hidden nx-w-64 nx-shrink-0 xl:nx-block print:nx-hidden"),main:(0,eC.Z)("nx-w-full nx-break-words")},Body=({themeContext:ee,breadcrumb:en,timestamp:er,navigation:eo,children:ei})=>{var es;let eu=useConfig(),ec=useMounted();if("raw"===ee.layout)return(0,tk.jsx)("div",{className:r0.main,children:ei});let ed=ee.timestamp&&eu.gitTimestamp&&er?new Date(er):null,ep=ec&&ed?(0,tk.jsx)("div",{className:"nx-mt-12 nx-mb-8 nx-block nx-text-xs nx-text-gray-500 ltr:nx-text-right rtl:nx-text-left dark:nx-text-gray-400",children:renderComponent(eu.gitTimestamp,{timestamp:ed})}):(0,tk.jsx)("div",{className:"nx-mt-16"}),ef=(0,tk.jsxs)(tk.Fragment,{children:[ei,ep,eo]}),eh=(null==(es=eu.main)?void 0:es.call(eu,{children:ef}))||ef;return"full"===ee.layout?(0,tk.jsx)("article",{className:(0,eC.Z)(r0.main,"nextra-content nx-min-h-[calc(100vh-var(--nextra-navbar-height))] nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]"),children:eh}):(0,tk.jsx)("article",{className:(0,eC.Z)(r0.main,"nextra-content nx-flex nx-min-h-[calc(100vh-var(--nextra-navbar-height))] nx-min-w-0 nx-justify-center nx-pb-8 nx-pr-[calc(env(safe-area-inset-right)-1.5rem)]","article"===ee.typesetting&&"nextra-body-typesetting-article"),children:(0,tk.jsxs)("main",{className:"nx-w-full nx-min-w-0 nx-max-w-6xl nx-px-6 nx-pt-4 md:nx-px-12",children:[en,eh]})})},InnerLayout=({filePath:ee,pageMap:en,frontMatter:er,headings:eo,timestamp:ei,children:es})=>{let eu=useConfig(),{locale:ec=r$,defaultLocale:ed}=(0,ew.useRouter)(),ep=useFSRoute(),{activeType:ef,activeIndex:eh,activeThemeContext:em,activePath:ex,topLevelNavbarItems:eg,docsDirectories:ev,flatDirectories:ey,flatDocsDirectories:eb,directories:e_}=(0,ek.useMemo)(()=>normalizePages({list:en,locale:ec,defaultLocale:ed,route:ep}),[en,ec,ed,ep]),eT=__spreadValues(__spreadValues({},em),er),eE=!eT.sidebar||"raw"===eT.layout||"page"===ef,eS="page"!==ef&&eT.toc&&"default"===eT.layout?(0,tk.jsx)("nav",{className:(0,eC.Z)(r0.toc,"nx-px-4"),"aria-label":"table of contents",children:renderComponent(eu.toc.component,{headings:eu.toc.float?eo:[],filePath:ee})}):"full"!==eT.layout&&"raw"!==eT.layout&&(0,tk.jsx)("nav",{className:r0.toc,"aria-label":"table of contents"}),ej=eu.i18n.find(ee=>ee.locale===ec),eI=ej?"rtl"===ej.direction:"rtl"===eu.direction,eP=eI?"rtl":"ltr";return(0,tk.jsxs)("div",{dir:eP,children:[(0,tk.jsx)("script",{dangerouslySetInnerHTML:{__html:`document.documentElement.setAttribute('dir','${eP}')`}}),(0,tk.jsx)(dist_Head,{}),(0,tk.jsx)(Banner,{}),eT.navbar&&renderComponent(eu.navbar.component,{flatDirectories:ey,items:eg}),(0,tk.jsx)("div",{className:(0,eC.Z)("nx-mx-auto nx-flex","raw"!==eT.layout&&"nx-max-w-[90rem]"),children:(0,tk.jsxs)(ActiveAnchorProvider,{children:[(0,tk.jsx)(Sidebar,{docsDirectories:ev,flatDirectories:ey,fullDirectories:e_,headings:eo,asPopover:eE,includePlaceholder:"default"===eT.layout}),eS,(0,tk.jsx)(rV,{}),(0,tk.jsx)(Body,{themeContext:eT,breadcrumb:"page"!==ef&&eT.breadcrumb?(0,tk.jsx)(Breadcrumb,{activePath:ex}):null,timestamp:ei,navigation:"page"!==ef&&eT.pagination?(0,tk.jsx)(NavLinks,{flatDirectories:eb,currentIndex:eh}):null,children:(0,tk.jsx)(eO.Z,{components:getComponents({isRawLayout:"raw"===eT.layout,components:eu.components}),children:es})})]})}),eT.footer&&renderComponent(eu.footer.component,{menu:eE})]})};function Layout(ee){var en=ee,{children:er}=en,eo=__objRest(en,["children"]);return(0,tk.jsx)(ConfigProvider,{value:eo,children:(0,tk.jsx)(InnerLayout,__spreadProps(__spreadValues({},eo.pageOpts),{children:er}))})}},5874:function(ee,en,er){"use strict";er.d(en,{UW:function(){return Callout},Zb:function(){return Card},oy:function(){return eG},EK:function(){return Code},SU:function(){return Pre},iA:function(){return Table},Td:function(){return Td},Th:function(){return Th},Tr:function(){return Tr}});var eo,ei,es,eu=er(8364),ec=er(7458),Button=({children:ee,className:en,...er})=>(0,ec.jsx)("button",{className:(0,eu.Z)("nextra-button nx-transition-all active:nx-opacity-50","nx-bg-primary-700/5 nx-border nx-border-black/5 nx-text-gray-600 hover:nx-text-gray-900 nx-rounded-md nx-p-1.5","dark:nx-bg-primary-300/10 dark:nx-border-white/10 dark:nx-text-gray-400 dark:hover:nx-text-gray-50",en),...er,children:ee}),ed=er(9013),ep={default:"\uD83D\uDCA1",error:"\uD83D\uDEAB",info:(0,ec.jsx)(ed.AV,{className:"nx-mt-1"}),warning:"⚠️"},ef={default:(0,eu.Z)("nx-border-orange-100 nx-bg-orange-50 nx-text-orange-800 dark:nx-border-orange-400/30 dark:nx-bg-orange-400/20 dark:nx-text-orange-300"),error:(0,eu.Z)("nx-border-red-200 nx-bg-red-100 nx-text-red-900 dark:nx-border-red-200/30 dark:nx-bg-red-900/30 dark:nx-text-red-200"),info:(0,eu.Z)("nx-border-blue-200 nx-bg-blue-100 nx-text-blue-900 dark:nx-border-blue-200/30 dark:nx-bg-blue-900/30 dark:nx-text-blue-200"),warning:(0,eu.Z)("nx-border-yellow-100 nx-bg-yellow-50 nx-text-yellow-900 dark:nx-border-yellow-200/30 dark:nx-bg-yellow-700/30 dark:nx-text-yellow-200")};function Callout({children:ee,type:en="default",emoji:er=ep[en]}){return(0,ec.jsxs)("div",{className:(0,eu.Z)("nextra-callout nx-overflow-x-auto nx-mt-6 nx-flex nx-rounded-lg nx-border nx-py-2 ltr:nx-pr-4 rtl:nx-pl-4","contrast-more:nx-border-current contrast-more:dark:nx-border-current",ef[en]),children:[(0,ec.jsx)("div",{className:"nx-select-none nx-text-xl ltr:nx-pl-3 ltr:nx-pr-2 rtl:nx-pr-3 rtl:nx-pl-2",style:{fontFamily:'"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'},children:er}),(0,ec.jsx)("div",{className:"nx-w-full nx-min-w-0 nx-leading-7",children:ee})]})}var eh=er(2983),CopyToClipboard=({getValue:ee,...en})=>{let[er,eo]=(0,eh.useState)(!1);(0,eh.useEffect)(()=>{if(!er)return;let ee=setTimeout(()=>{eo(!1)},2e3);return()=>{clearTimeout(ee)}},[er]);let ei=(0,eh.useCallback)(async()=>{eo(!0),navigator?.clipboard||console.error("Access to clipboard rejected!");try{await navigator.clipboard.writeText(ee())}catch{console.error("Failed to copy!")}},[ee]),es=er?ed.nQ:ed.TI;return(0,ec.jsx)(Button,{onClick:ei,title:"Copy code",tabIndex:0,...en,children:(0,ec.jsx)(es,{className:"nextra-copy-icon nx-pointer-events-none nx-h-4 nx-w-4"})})},Code=({children:ee,className:en,...er})=>{let eo="data-line-numbers"in er;return(0,ec.jsx)("code",{className:(0,eu.Z)("nx-border-black nx-border-opacity-[0.04] nx-bg-opacity-[0.03] nx-bg-black nx-break-words nx-rounded-md nx-border nx-py-0.5 nx-px-[.25em] nx-text-[.9em]","dark:nx-border-white/10 dark:nx-bg-white/10",eo&&"[counter-reset:line]",en),dir:"ltr",...er,children:ee})},Pre=({children:ee,className:en,hasCopyCode:er,filename:eo,...ei})=>{let es=(0,eh.useRef)(null),ep=(0,eh.useCallback)(()=>{let ee=document.documentElement.dataset,en="nextraWordWrap"in ee;en?delete ee.nextraWordWrap:ee.nextraWordWrap=""},[]);return(0,ec.jsxs)("div",{className:"nextra-code-block nx-relative nx-mt-6 first:nx-mt-0",children:[eo&&(0,ec.jsx)("div",{className:"nx-absolute nx-top-0 nx-z-[1] nx-w-full nx-truncate nx-rounded-t-xl nx-bg-primary-700/5 nx-py-2 nx-px-4 nx-text-xs nx-text-gray-700 dark:nx-bg-primary-300/10 dark:nx-text-gray-200",children:eo}),(0,ec.jsx)("pre",{className:(0,eu.Z)("nx-bg-primary-700/5 nx-mb-4 nx-overflow-x-auto nx-rounded-xl nx-subpixel-antialiased dark:nx-bg-primary-300/10 nx-text-[.9em]","contrast-more:nx-border contrast-more:nx-border-primary-900/20 contrast-more:nx-contrast-150 contrast-more:dark:nx-border-primary-100/40",eo?"nx-pt-12 nx-pb-4":"nx-py-4",en),ref:es,...ei,children:ee}),(0,ec.jsxs)("div",{className:(0,eu.Z)("nx-opacity-0 nx-transition [div:hover>&]:nx-opacity-100 focus-within:nx-opacity-100","nx-flex nx-gap-1 nx-absolute nx-m-[11px] nx-right-0",eo?"nx-top-8":"nx-top-0"),children:[(0,ec.jsx)(Button,{onClick:ep,className:"md:nx-hidden",title:"Toggle word wrap",children:(0,ec.jsx)(ed.NK,{className:"nx-pointer-events-none nx-h-4 nx-w-4"})}),er&&(0,ec.jsx)(CopyToClipboard,{getValue:()=>es.current?.querySelector("code")?.textContent||""})]})]})},em=er(8656),ex=er(8141),eg=er(3788),ev=er(5701),ey=er(3910),eb=er(5751),e_=er(1596),ew=er(358),ek=er(6769);function focus_sentinel_b({onFocus:ee}){let[en,er]=(0,eh.useState)(!0),eo=(0,ew.t)();return en?eh.createElement(ek._,{as:"button",type:"button",features:ek.A.Focusable,onFocus:en=>{en.preventDefault();let ei,es=50;function t(){if(es--<=0){ei&&cancelAnimationFrame(ei);return}if(ee()){if(cancelAnimationFrame(ei),!eo.current)return;er(!1);return}ei=requestAnimationFrame(t)}ei=requestAnimationFrame(t)}}):null}var eC=er(1858),eT=er(4228),eE=er(6376),eO=er(3638),eS=er(8372);let ej=eh.createContext(null);function a(){return{groups:new Map,get(ee,en){var er;let eo=this.groups.get(ee);eo||(eo=new Map,this.groups.set(ee,eo));let ei=null!=(er=eo.get(en))?er:0;function i(){let ee=eo.get(en);ee>1?eo.set(en,ee-1):eo.delete(en)}return eo.set(en,ei+1),[Array.from(eo.keys()).indexOf(en),i]}}}function C({children:ee}){let en=eh.useRef(a());return eh.createElement(ej.Provider,{value:en},ee)}function stable_collection_d(ee){let en=eh.useContext(ej);if(!en)throw Error("You must wrap your component in a <StableCollection>");let er=f(),[eo,ei]=en.current.get(ee,er);return eh.useEffect(()=>ei,[]),eo}function f(){var ee,en,er;let eo=null!=(er=null==(en=null==(ee=eh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)?void 0:ee.ReactCurrentOwner)?void 0:en.current)?er:null;if(!eo)return Symbol();let ei=[],es=eo;for(;es;)ei.push(es.index),es=es.return;return"$."+ei.join(".")}var eI=((eo=eI||{})[eo.Forwards=0]="Forwards",eo[eo.Backwards=1]="Backwards",eo),eP=((ei=eP||{})[ei.Less=-1]="Less",ei[ei.Equal=0]="Equal",ei[ei.Greater=1]="Greater",ei),eN=((es=eN||{})[es.SetSelectedIndex=0]="SetSelectedIndex",es[es.RegisterTab=1]="RegisterTab",es[es.UnregisterTab=2]="UnregisterTab",es[es.RegisterPanel=3]="RegisterPanel",es[es.UnregisterPanel=4]="UnregisterPanel",es);let eR={0(ee,en){var er;let eo=(0,eC.z2)(ee.tabs,ee=>ee.current),ei=(0,eC.z2)(ee.panels,ee=>ee.current),es=eo.filter(ee=>{var en;return!(null!=(en=ee.current)&&en.hasAttribute("disabled"))}),eu={...ee,tabs:eo,panels:ei};if(en.index<0||en.index>eo.length-1){let er=(0,eT.E)(Math.sign(en.index-ee.selectedIndex),{[-1]:()=>1,0:()=>(0,eT.E)(Math.sign(en.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===es.length)return eu;let ei=(0,eT.E)(er,{0:()=>eo.indexOf(es[0]),1:()=>eo.indexOf(es[es.length-1])});return{...eu,selectedIndex:-1===ei?ee.selectedIndex:ei}}let ec=eo.slice(0,en.index),ed=[...eo.slice(en.index),...ec].find(ee=>es.includes(ee));if(!ed)return eu;let ep=null!=(er=eo.indexOf(ed))?er:ee.selectedIndex;return -1===ep&&(ep=ee.selectedIndex),{...eu,selectedIndex:ep}},1(ee,en){var er;if(ee.tabs.includes(en.tab))return ee;let eo=ee.tabs[ee.selectedIndex],ei=(0,eC.z2)([...ee.tabs,en.tab],ee=>ee.current),es=null!=(er=ei.indexOf(eo))?er:ee.selectedIndex;return -1===es&&(es=ee.selectedIndex),{...ee,tabs:ei,selectedIndex:es}},2:(ee,en)=>({...ee,tabs:ee.tabs.filter(ee=>ee!==en.tab)}),3:(ee,en)=>ee.panels.includes(en.panel)?ee:{...ee,panels:(0,eC.z2)([...ee.panels,en.panel],ee=>ee.current)},4:(ee,en)=>({...ee,panels:ee.panels.filter(ee=>ee!==en.panel)})},eZ=(0,eh.createContext)(null);function h(ee){let en=(0,eh.useContext)(eZ);if(null===en){let en=Error(`<${ee} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,h),en}return en}eZ.displayName="TabsDataContext";let eM=(0,eh.createContext)(null);function q(ee){let en=(0,eh.useContext)(eM);if(null===en){let en=Error(`<${ee} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,q),en}return en}function fe(ee,en){return(0,eT.E)(en.type,eR,ee,en)}eM.displayName="TabsActionsContext";let eA=eh.Fragment;function me(ee,en){let{defaultIndex:er=0,vertical:eo=!1,manual:ei=!1,onChange:es,selectedIndex:eu=null,...ec}=ee,ed=eo?"vertical":"horizontal",ep=ei?"manual":"auto",ef=null!==eu,em=(0,e_.T)(en),[eg,eb]=(0,eh.useReducer)(fe,{selectedIndex:null!=eu?eu:er,tabs:[],panels:[]}),ew=(0,eh.useMemo)(()=>({selectedIndex:eg.selectedIndex}),[eg.selectedIndex]),ek=(0,ey.E)(es||(()=>{})),eT=(0,ey.E)(eg.tabs),eE=(0,eh.useMemo)(()=>({orientation:ed,activation:ep,...eg}),[ed,ep,eg]),eO=(0,ex.z)(ee=>(eb({type:1,tab:ee}),()=>eb({type:2,tab:ee}))),ej=(0,ex.z)(ee=>(eb({type:3,panel:ee}),()=>eb({type:4,panel:ee}))),eI=(0,ex.z)(ee=>{eP.current!==ee&&ek.current(ee),ef||eb({type:0,index:ee})}),eP=(0,ey.E)(ef?ee.selectedIndex:eg.selectedIndex),eN=(0,eh.useMemo)(()=>({registerTab:eO,registerPanel:ej,change:eI}),[]);(0,ev.e)(()=>{eb({type:0,index:null!=eu?eu:er})},[eu]),(0,ev.e)(()=>{if(void 0===eP.current||eg.tabs.length<=0)return;let ee=(0,eC.z2)(eg.tabs,ee=>ee.current);ee.some((ee,en)=>eg.tabs[en]!==ee)&&eI(ee.indexOf(eg.tabs[eP.current]))});let eR={ref:em};return eh.createElement(C,null,eh.createElement(eM.Provider,{value:eN},eh.createElement(eZ.Provider,{value:eE},eE.tabs.length<=0&&eh.createElement(focus_sentinel_b,{onFocus:()=>{var ee,en;for(let er of eT.current)if((null==(ee=er.current)?void 0:ee.tabIndex)===0)return null==(en=er.current)||en.focus(),!0;return!1}}),(0,eS.sY)({ourProps:eR,theirProps:ec,slot:ew,defaultTag:eA,name:"Tabs"}))))}let eL="div";function ye(ee,en){let{orientation:er,selectedIndex:eo}=h("Tab.List"),ei=(0,e_.T)(en);return(0,eS.sY)({ourProps:{ref:ei,role:"tablist","aria-orientation":er},theirProps:ee,slot:{selectedIndex:eo},defaultTag:eL,name:"Tabs.List"})}let eD="button";function ge(ee,en){var er,eo;let ei=(0,eg.M)(),{id:es=`headlessui-tabs-tab-${ei}`,...eu}=ee,{orientation:ec,activation:ed,selectedIndex:ep,tabs:ef,panels:ey}=h("Tab"),ew=q("Tab"),ek=h("Tab"),ej=(0,eh.useRef)(null),eI=(0,e_.T)(ej,en);(0,ev.e)(()=>ew.registerTab(ej),[ew,ej]);let eP=stable_collection_d("tabs"),eN=ef.indexOf(ej);-1===eN&&(eN=eP);let eR=eN===ep,eZ=(0,ex.z)(ee=>{var en;let er=ee();if(er===eC.fE.Success&&"auto"===ed){let ee=null==(en=(0,eO.r)(ej))?void 0:en.activeElement,er=ek.tabs.findIndex(en=>en.current===ee);-1!==er&&ew.change(er)}return er}),eM=(0,ex.z)(ee=>{let en=ef.map(ee=>ee.current).filter(Boolean);if(ee.key===em.R.Space||ee.key===em.R.Enter){ee.preventDefault(),ee.stopPropagation(),ew.change(eN);return}switch(ee.key){case em.R.Home:case em.R.PageUp:return ee.preventDefault(),ee.stopPropagation(),eZ(()=>(0,eC.jA)(en,eC.TO.First));case em.R.End:case em.R.PageDown:return ee.preventDefault(),ee.stopPropagation(),eZ(()=>(0,eC.jA)(en,eC.TO.Last))}if(eZ(()=>(0,eT.E)(ec,{vertical:()=>ee.key===em.R.ArrowUp?(0,eC.jA)(en,eC.TO.Previous|eC.TO.WrapAround):ee.key===em.R.ArrowDown?(0,eC.jA)(en,eC.TO.Next|eC.TO.WrapAround):eC.fE.Error,horizontal:()=>ee.key===em.R.ArrowLeft?(0,eC.jA)(en,eC.TO.Previous|eC.TO.WrapAround):ee.key===em.R.ArrowRight?(0,eC.jA)(en,eC.TO.Next|eC.TO.WrapAround):eC.fE.Error}))===eC.fE.Success)return ee.preventDefault()}),eA=(0,eh.useRef)(!1),eL=(0,ex.z)(()=>{var ee;eA.current||(eA.current=!0,null==(ee=ej.current)||ee.focus({preventScroll:!0}),ew.change(eN),(0,eE.Y)(()=>{eA.current=!1}))}),eF=(0,ex.z)(ee=>{ee.preventDefault()}),ez=(0,eh.useMemo)(()=>({selected:eR}),[eR]),eV={ref:eI,onKeyDown:eM,onMouseDown:eF,onClick:eL,id:es,role:"tab",type:(0,eb.f)(ee,ej),"aria-controls":null==(eo=null==(er=ey[eN])?void 0:er.current)?void 0:eo.id,"aria-selected":eR,tabIndex:eR?0:-1};return(0,eS.sY)({ourProps:eV,theirProps:eu,slot:ez,defaultTag:eD,name:"Tabs.Tab"})}let eF="div";function Ae(ee,en){let{selectedIndex:er}=h("Tab.Panels"),eo=(0,e_.T)(en),ei=(0,eh.useMemo)(()=>({selectedIndex:er}),[er]);return(0,eS.sY)({ourProps:{ref:eo},theirProps:ee,slot:ei,defaultTag:eF,name:"Tabs.Panels"})}let ez="div",eV=eS.AN.RenderStrategy|eS.AN.Static;function _e(ee,en){var er,eo,ei,es;let eu=(0,eg.M)(),{id:ec=`headlessui-tabs-panel-${eu}`,tabIndex:ed=0,...ep}=ee,{selectedIndex:ef,tabs:em,panels:ex}=h("Tab.Panel"),ey=q("Tab.Panel"),eb=(0,eh.useRef)(null),ew=(0,e_.T)(eb,en);(0,ev.e)(()=>ey.registerPanel(eb),[ey,eb]);let eC=stable_collection_d("panels"),eT=ex.indexOf(eb);-1===eT&&(eT=eC);let eE=eT===ef,eO=(0,eh.useMemo)(()=>({selected:eE}),[eE]),ej={ref:ew,id:ec,role:"tabpanel","aria-labelledby":null==(eo=null==(er=em[eT])?void 0:er.current)?void 0:eo.id,tabIndex:eE?ed:-1};return eE||null!=(ei=ep.unmount)&&!ei||null!=(es=ep.static)&&es?(0,eS.sY)({ourProps:ej,theirProps:ep,slot:eO,defaultTag:ez,features:eV,visible:eE,name:"Tabs.Panel"}):eh.createElement(ek._,{as:"span","aria-hidden":"true",...ej})}let eU=Object.assign((0,eS.yV)(ge),{Group:(0,eS.yV)(me),List:(0,eS.yV)(ye),Panels:(0,eS.yV)(Ae),Panel:(0,eS.yV)(_e)});function isTabObjectItem(ee){return!!ee&&"object"==typeof ee&&"label"in ee}Object.assign(function({items:ee,selectedIndex:en,defaultIndex:er=0,onChange:eo,children:ei,storageKey:es}){let[ed,ep]=(0,eh.useState)(er);(0,eh.useEffect)(()=>{void 0!==en&&ep(en)},[en]),(0,eh.useEffect)(()=>{if(!es)return;function fn(ee){ee.key===es&&ep(Number(ee.newValue))}let ee=Number(localStorage.getItem(es));return ep(Number.isNaN(ee)?0:ee),window.addEventListener("storage",fn),()=>{window.removeEventListener("storage",fn)}},[]);let ef=(0,eh.useCallback)(ee=>{if(es){let en=String(ee);localStorage.setItem(es,en),window.dispatchEvent(new StorageEvent("storage",{key:es,newValue:en}));return}ep(ee),eo?.(ee)},[]);return(0,ec.jsxs)(eU.Group,{selectedIndex:ed,defaultIndex:er,onChange:ef,children:[(0,ec.jsx)("div",{className:"nextra-scrollbar nx-overflow-x-auto nx-overflow-y-hidden nx-overscroll-x-contain",children:(0,ec.jsx)(eU.List,{className:"nx-mt-4 nx-flex nx-w-max nx-min-w-full nx-border-b nx-border-gray-200 nx-pb-px dark:nx-border-neutral-800",children:ee.map((ee,en)=>{let er=isTabObjectItem(ee)&&ee.disabled;return(0,ec.jsx)(eU,{disabled:er,className:({selected:ee})=>(0,eu.Z)("nx-mr-2 nx-rounded-t nx-p-2 nx-font-medium nx-leading-5 nx-transition-colors","-nx-mb-0.5 nx-select-none nx-border-b-2",ee?"nx-border-primary-500 nx-text-primary-600":"nx-border-transparent nx-text-gray-600 hover:nx-border-gray-200 hover:nx-text-black dark:nx-text-gray-200 dark:hover:nx-border-neutral-800 dark:hover:nx-text-white",er&&"nx-pointer-events-none nx-text-gray-400 dark:nx-text-neutral-600"),children:isTabObjectItem(ee)?ee.label:ee},en)})})}),(0,ec.jsx)(eU.Panels,{children:ei})]})},{displayName:"Tabs",Tab:function({children:ee,...en}){return(0,ec.jsx)(eU.Panel,{...en,className:"nx-rounded nx-pt-6",children:ee})}});var Td=({className:ee="",...en})=>(0,ec.jsx)("td",{className:(0,eu.Z)("nx-m-0 nx-border nx-border-gray-300 nx-px-4 nx-py-2 dark:nx-border-gray-600",ee),...en}),Table=({className:ee="",...en})=>(0,ec.jsx)("table",{className:(0,eu.Z)("nx-block nx-overflow-x-scroll",ee),...en}),Th=({className:ee="",...en})=>(0,ec.jsx)("th",{className:(0,eu.Z)("nx-m-0 nx-border nx-border-gray-300 nx-px-4 nx-py-2 nx-font-semibold dark:nx-border-gray-600",ee),...en}),Tr=({className:ee="",...en})=>(0,ec.jsx)("tr",{className:(0,eu.Z)("nx-m-0 nx-border-t nx-border-gray-300 nx-p-0 dark:nx-border-gray-600","even:nx-bg-gray-100 even:dark:nx-bg-gray-600/20",ee),...en}),eH=er(4202),e$=er.n(eH),eB={cards:(0,eu.Z)("nextra-cards nx-mt-4 nx-gap-4 nx-grid","nx-not-prose"),card:(0,eu.Z)("nextra-card nx-group nx-flex nx-flex-col nx-justify-start nx-overflow-hidden nx-rounded-lg nx-border nx-border-gray-200","nx-text-current nx-no-underline dark:nx-shadow-none","hover:nx-shadow-gray-100 dark:hover:nx-shadow-none nx-shadow-gray-100","active:nx-shadow-sm active:nx-shadow-gray-200","nx-transition-all nx-duration-200 hover:nx-border-gray-300"),title:(0,eu.Z)("nx-flex nx-font-semibold nx-items-start nx-gap-2 nx-p-4 nx-text-gray-700 hover:nx-text-gray-900")},eW=(0,ec.jsx)("span",{className:"nx-transition-transform nx-duration-75 group-hover:nx-translate-x-[2px]",children:"→"});function Card({children:ee,title:en,icon:er,image:eo,arrow:ei,href:es,...ed}){let ep=ei?eW:null;return eo?(0,ec.jsxs)(e$(),{href:es,className:(0,eu.Z)(eB.card,"nx-bg-gray-100 nx-shadow dark:nx-border-neutral-700 dark:nx-bg-neutral-800 dark:nx-text-gray-50 hover:nx-shadow-lg dark:hover:nx-border-neutral-500 dark:hover:nx-bg-neutral-700"),...ed,children:[ee,(0,ec.jsxs)("span",{className:(0,eu.Z)(eB.title,"dark:nx-text-gray-300 dark:hover:nx-text-gray-100"),children:[er,(0,ec.jsxs)("span",{className:"nx-flex nx-gap-1",children:[en,ep]})]})]}):(0,ec.jsx)(e$(),{href:es,className:(0,eu.Z)(eB.card,"nx-bg-transparent nx-shadow-sm dark:nx-border-neutral-800 hover:nx-bg-slate-50 hover:nx-shadow-md dark:hover:nx-border-neutral-700 dark:hover:nx-bg-neutral-900"),...ed,children:(0,ec.jsxs)("span",{className:(0,eu.Z)(eB.title,"dark:nx-text-neutral-200 dark:hover:nx-text-neutral-50 nx-flex nx-items-center"),children:[er,en,ep]})})}var eG=Object.assign(function({children:ee,num:en=3,className:er,style:eo,...ei}){return(0,ec.jsx)("div",{className:(0,eu.Z)(eB.cards,er),...ei,style:{...eo,"--rows":en},children:ee})},{displayName:"Cards",Card}),eK=(0,eh.createContext)(0);function useIndent(){return(0,eh.useContext)(eK)}function Tree({children:ee}){return(0,ec.jsx)("div",{className:(0,eu.Z)("nextra-filetree nx-mt-6 nx-select-none nx-text-sm nx-text-gray-800 dark:nx-text-gray-300","nx-not-prose"),children:(0,ec.jsx)("div",{className:"nx-inline-block nx-rounded-lg nx-border nx-px-4 nx-py-2 dark:nx-border-neutral-800",children:ee})})}function Ident(){let ee=useIndent();return(0,ec.jsx)(ec.Fragment,{children:Array.from({length:ee},(ee,en)=>(0,ec.jsx)("span",{className:"nx-w-5"},en))})}var eY=(0,eh.memo)(({label:ee,name:en,open:er,children:eo,defaultOpen:ei=!1,onToggle:es})=>{let eu=useIndent(),[ed,ep]=(0,eh.useState)(ei),ef=(0,eh.useCallback)(()=>{es?.(!ed),ep(!ed)},[ed,es]),em=void 0===er?ed:er;return(0,ec.jsxs)("li",{className:"nx-flex nx-list-none nx-flex-col",children:[(0,ec.jsxs)("button",{onClick:ef,title:en,className:"nx-inline-flex nx-cursor-pointer nx-items-center nx-py-1 hover:nx-opacity-60",children:[(0,ec.jsx)(Ident,{}),(0,ec.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",children:(0,ec.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:em?"M5 19a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h4l2 2h4a2 2 0 0 1 2 2v1M5 19h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2Z":"M3 7v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-6l-2-2H5a2 2 0 0 0-2 2Z"})}),(0,ec.jsx)("span",{className:"nx-ml-1",children:ee??en})]}),em&&(0,ec.jsx)("ul",{children:(0,ec.jsx)(eK.Provider,{value:eu+1,children:eo})})]})});eY.displayName="Folder";var eQ=(0,eh.memo)(({label:ee,name:en,active:er})=>(0,ec.jsx)("li",{className:(0,eu.Z)("nx-flex nx-list-none",er&&"nx-text-primary-600 contrast-more:nx-underline"),children:(0,ec.jsxs)("span",{className:"nx-inline-flex nx-cursor-default nx-items-center nx-py-1",children:[(0,ec.jsx)(Ident,{}),(0,ec.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",children:(0,ec.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5.586a1 1 0 0 1 .707.293l5.414 5.414a1 1 0 0 1 .293.707V19a2 2 0 0 1-2 2Z"})}),(0,ec.jsx)("span",{className:"nx-ml-1",children:ee??en})]})}));eQ.displayName="File",Object.assign(Tree,{Folder:eY,File:eQ})},9013:function(ee,en,er){"use strict";er.d(en,{LZ:function(){return ArrowRightIcon},nQ:function(){return CheckIcon},TI:function(){return CopyIcon},D7:function(){return DiscordIcon},Qq:function(){return ExpandIcon},fy:function(){return GitHubIcon},n9:function(){return GlobeIcon},AV:function(){return InformationCircleIcon},Oq:function(){return MenuIcon},kL:function(){return MoonIcon},L4:function(){return SpinnerIcon},NW:function(){return SunIcon},NK:function(){return WordWrapIcon},b0:function(){return XIcon}});var eo=er(7458);function ArrowRightIcon({pathClassName:ee,...en}){return(0,eo.jsx)("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",...en,children:(0,eo.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 5l7 7-7 7",className:ee})})}function CheckIcon(ee){return(0,eo.jsx)("svg",{viewBox:"0 0 20 20",width:"1em",height:"1em",fill:"currentColor",...ee,children:(0,eo.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}function CopyIcon(ee){return(0,eo.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",...ee,children:[(0,eo.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,eo.jsx)("path",{d:"M5 15H4C2.89543 15 2 14.1046 2 13V4C2 2.89543 2.89543 2 4 2H13C14.1046 2 15 2.89543 15 4V5",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function DiscordIcon(ee){return(0,eo.jsxs)("svg",{width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 5 30.67 23.25",...ee,children:[(0,eo.jsx)("title",{children:"Discord"}),(0,eo.jsx)("path",{d:"M26.0015 6.9529C24.0021 6.03845 21.8787 5.37198 19.6623 5C19.3833 5.48048 19.0733 6.13144 18.8563 6.64292C16.4989 6.30193 14.1585 6.30193 11.8336 6.64292C11.6166 6.13144 11.2911 5.48048 11.0276 5C8.79575 5.37198 6.67235 6.03845 4.6869 6.9529C0.672601 12.8736 -0.41235 18.6548 0.130124 24.3585C2.79599 26.2959 5.36889 27.4739 7.89682 28.2489C8.51679 27.4119 9.07477 26.5129 9.55525 25.5675C8.64079 25.2265 7.77283 24.808 6.93587 24.312C7.15286 24.1571 7.36986 23.9866 7.57135 23.8161C12.6241 26.1255 18.0969 26.1255 23.0876 23.8161C23.3046 23.9866 23.5061 24.1571 23.7231 24.312C22.8861 24.808 22.0182 25.2265 21.1037 25.5675C21.5842 26.5129 22.1422 27.4119 22.7621 28.2489C25.2885 27.4739 27.8769 26.2959 30.5288 24.3585C31.1952 17.7559 29.4733 12.0212 26.0015 6.9529ZM10.2527 20.8402C8.73376 20.8402 7.49382 19.4608 7.49382 17.7714C7.49382 16.082 8.70276 14.7025 10.2527 14.7025C11.7871 14.7025 13.0425 16.082 13.0115 17.7714C13.0115 19.4608 11.7871 20.8402 10.2527 20.8402ZM20.4373 20.8402C18.9183 20.8402 17.6768 19.4608 17.6768 17.7714C17.6768 16.082 18.8873 14.7025 20.4373 14.7025C21.9717 14.7025 23.2271 16.082 23.1961 17.7714C23.1961 19.4608 21.9872 20.8402 20.4373 20.8402Z"})]})}function ExpandIcon({isOpen:ee,...en}){return(0,eo.jsxs)("svg",{height:"12",width:"12",viewBox:"0 0 16 16",fill:"currentColor",...en,children:[(0,eo.jsx)("path",{fillRule:"evenodd",d:"M4.177 7.823l2.396-2.396A.25.25 0 017 5.604v4.792a.25.25 0 01-.427.177L4.177 8.177a.25.25 0 010-.354z",className:ee?"":"nx-origin-[35%] nx-rotate-180"}),(0,eo.jsx)("path",{fillRule:"evenodd",d:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0114.25 16H1.75A1.75 1.75 0 010 14.25V1.75zm1.75-.25a.25.25 0 00-.25.25v12.5c0 .138.112.25.25.25H9.5v-13H1.75zm12.5 13H11v-13h3.25a.25.25 0 01.25.25v12.5a.25.25 0 01-.25.25z"})]})}function GitHubIcon(ee){return(0,eo.jsxs)("svg",{width:"24",height:"24",fill:"currentColor",viewBox:"3 3 18 18",...ee,children:[(0,eo.jsx)("title",{children:"GitHub"}),(0,eo.jsx)("path",{d:"M12 3C7.0275 3 3 7.12937 3 12.2276C3 16.3109 5.57625 19.7597 9.15374 20.9824C9.60374 21.0631 9.77249 20.7863 9.77249 20.5441C9.77249 20.3249 9.76125 19.5982 9.76125 18.8254C7.5 19.2522 6.915 18.2602 6.735 17.7412C6.63375 17.4759 6.19499 16.6569 5.8125 16.4378C5.4975 16.2647 5.0475 15.838 5.80124 15.8264C6.51 15.8149 7.01625 16.4954 7.18499 16.7723C7.99499 18.1679 9.28875 17.7758 9.80625 17.5335C9.885 16.9337 10.1212 16.53 10.38 16.2993C8.3775 16.0687 6.285 15.2728 6.285 11.7432C6.285 10.7397 6.63375 9.9092 7.20749 9.26326C7.1175 9.03257 6.8025 8.08674 7.2975 6.81794C7.2975 6.81794 8.05125 6.57571 9.77249 7.76377C10.4925 7.55615 11.2575 7.45234 12.0225 7.45234C12.7875 7.45234 13.5525 7.55615 14.2725 7.76377C15.9937 6.56418 16.7475 6.81794 16.7475 6.81794C17.2424 8.08674 16.9275 9.03257 16.8375 9.26326C17.4113 9.9092 17.76 10.7281 17.76 11.7432C17.76 15.2843 15.6563 16.0687 13.6537 16.2993C13.98 16.5877 14.2613 17.1414 14.2613 18.0065C14.2613 19.2407 14.25 20.2326 14.25 20.5441C14.25 20.7863 14.4188 21.0746 14.8688 20.9824C16.6554 20.364 18.2079 19.1866 19.3078 17.6162C20.4077 16.0457 20.9995 14.1611 21 12.2276C21 7.12937 16.9725 3 12 3Z"})]})}function GlobeIcon(ee){return(0,eo.jsx)("svg",{viewBox:"2 2 16 16",width:"12",height:"12",fill:"currentColor",...ee,children:(0,eo.jsx)("path",{fillRule:"evenodd",d:"M4.083 9h1.946c.089-1.546.383-2.97.837-4.118A6.004 6.004 0 004.083 9zM10 2a8 8 0 100 16 8 8 0 000-16zm0 2c-.076 0-.232.032-.465.262-.238.234-.497.623-.737 1.182-.389.907-.673 2.142-.766 3.556h3.936c-.093-1.414-.377-2.649-.766-3.556-.24-.56-.5-.948-.737-1.182C10.232 4.032 10.076 4 10 4zm3.971 5c-.089-1.546-.383-2.97-.837-4.118A6.004 6.004 0 0115.917 9h-1.946zm-2.003 2H8.032c.093 1.414.377 2.649.766 3.556.24.56.5.948.737 1.182.233.23.389.262.465.262.076 0 .232-.032.465-.262.238-.234.498-.623.737-1.182.389-.907.673-2.142.766-3.556zm1.166 4.118c.454-1.147.748-2.572.837-4.118h1.946a6.004 6.004 0 01-2.783 4.118zm-6.268 0C6.412 13.97 6.118 12.546 6.03 11H4.083a6.004 6.004 0 002.783 4.118z",clipRule:"evenodd"})})}function InformationCircleIcon(ee){return(0,eo.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",width:"20",height:"20",...ee,children:(0,eo.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z"})})}function MenuIcon(ee){return(0,eo.jsxs)("svg",{fill:"none",width:"24",height:"24",viewBox:"0 0 24 24",stroke:"currentColor",...ee,children:[(0,eo.jsx)("g",{children:(0,eo.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16"})}),(0,eo.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 12h16"}),(0,eo.jsx)("g",{children:(0,eo.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 18h16"})})]})}function MoonIcon(ee){return(0,eo.jsx)("svg",{fill:"none",viewBox:"2 2 20 20",width:"12",height:"12",stroke:"currentColor",...ee,children:(0,eo.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",fill:"currentColor",d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})})}function SpinnerIcon(ee){return(0,eo.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24",...ee,children:[(0,eo.jsx)("circle",{className:"nx-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,eo.jsx)("path",{className:"nx-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}function SunIcon(ee){return(0,eo.jsx)("svg",{fill:"none",viewBox:"3 3 18 18",width:"12",height:"12",stroke:"currentColor",...ee,children:(0,eo.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",fill:"currentColor",d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})})}function WordWrapIcon(ee){return(0,eo.jsx)("svg",{viewBox:"0 0 24 24",width:"24",height:"24",...ee,children:(0,eo.jsx)("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})})}function XIcon(ee){return(0,eo.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",...ee,children:(0,eo.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})}},2029:function(ee,en,er){"use strict";er.d(en,{Z:function(){return MDXProvider},a:function(){return mdx_useMDXComponents}});var eo=er(2983);let ei=eo.createContext({});function useMDXComponents(ee){let en=eo.useContext(ei);return eo.useMemo(()=>"function"==typeof ee?ee(en):{...en,...ee},[en,ee])}let es={};function MDXProvider({components:ee,children:en,disableParentContext:er}){let eu;return eu=er?"function"==typeof ee?ee({}):ee||es:useMDXComponents(ee),eo.createElement(ei.Provider,{value:eu},en)}var eu=er(9945),ec=er.n(eu),ed={img:ee=>(0,eo.createElement)("object"==typeof ee.src?ec():"img",ee)},mdx_useMDXComponents=ee=>useMDXComponents({...ed,...ee})},1577:function(ee,en,er){"use strict";er.d(en,{j:function(){return setupNextraPage}});var eo,ei=er(6325),es=er.n(ei),eu=er(4664),ec=er(2983);er(966),"undefined"!=typeof window&&(window.requestIdleCallback=window.requestIdleCallback||function(ee){var en=Date.now();return setTimeout(function(){ee({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-en))}})},1)},window.cancelIdleCallback=window.cancelIdleCallback||function(ee){clearTimeout(ee)}),er(2029);var ed=er(7458),ep=(0,ec.createContext)(!1),ef=er(8540);function useInternals(){let ee=globalThis[eu.eZ],{route:en}=(0,ef.useRouter)();(0,ec.useState)({})[1];let er=ee.context[en];if(!er)throw Error("No content found for the current route. This is a Nextra bug.");return{context:er,Layout:ee.Layout}}function Nextra({__nextra_pageMap:ee,__nextra_dynamic_opts:en,...er}){let{context:eo,Layout:ei}=useInternals(),{Content:es,...eu}=eo;if(ee&&(eu.pageOpts={...eu.pageOpts,pageMap:ee}),en){let{headings:ee,title:er,frontMatter:eo}=JSON.parse(en);eu.pageOpts={...eu.pageOpts,headings:ee,title:er,frontMatter:eo}}return(0,ed.jsx)(ei,{...eu,pageProps:er,children:(0,ed.jsx)(ep.Provider,{value:er,children:(0,ed.jsx)(es,{...er})})})}var eh=er(5349),em=er(2544),ex=er(9839);function normalizePageRoute(ee,en){return em(eh.join(ee,en.replace(/^index$/,"")))}function pageTitleFromFilename(ee){return ex(ee.replaceAll(/[-_]/g," "))}function isFolder(ee){return!!ee&&"object"==typeof ee&&"folder"===ee.type}function normalizeMetaData(ee){return Object.fromEntries(Object.entries(ee).map(([ee,en])=>{if(isFolder(en)){let er=ee.replace("/","");return[er,en.title||pageTitleFromFilename(er)]}return[ee,en||pageTitleFromFilename(ee)]}))}function collectCatchAllRoutes(ee,en,er=!0){if(er){collectCatchAllRoutes(ee,{kind:"Meta",data:en.data,locale:en.locale},!1),en.data=normalizeMetaData(en.data);return}for(let[er,eo]of Object.entries(en.data)){if(!isFolder(eo)){if("*"===er)continue;ee.children.push({kind:"MdxPage",...en.locale&&{locale:en.locale},name:er,route:normalizePageRoute(ee.route,er)});continue}let ei=er.replace("/",""),es={kind:"Folder",name:ei,route:`${ee.route}/${ei}`,children:[{kind:"Meta",...en.locale&&{locale:en.locale},data:normalizeMetaData(eo.items)}]};ee.children.push(es),collectCatchAllRoutes(es,{kind:"Meta",data:eo.items,locale:en.locale},!1)}}function setupNextraPage({pageNextRoute:ee,pageOpts:en,nextraLayout:er,themeConfig:ei,MDXContent:ec,hot:ed,pageOptsChecksum:ep,dynamicMetaModules:ef=[]}){var eh;"undefined"==typeof window&&(globalThis.__nextra_resolvePageMap=async()=>{if(eo)return eo;let ee=JSON.parse(JSON.stringify(em.pageMap));return await Promise.all(ef.map(async([en,{metaObjectKeyPath:er,metaParentKeyPath:eo}])=>{let ei=await en,eu=await ei.default(),ec=es()(ee,er);ec.data=eu;let ed=es()(ee,eo);collectCatchAllRoutes(ed,ec)})),eo=ee});let em=globalThis[eh=eu.eZ]||(globalThis[eh]=Object.create(null));return en.pageMap?(em.pageMap=en.pageMap,em.Layout=er):(en={...en,pageMap:em.pageMap,flexsearch:em.flexsearch},ei=em.themeConfig),en={frontMatter:{},...en},em.route=en.route,em.context||(em.context=Object.create(null)),em.context[ee]={Content:ec,pageOpts:en,themeConfig:ei},Nextra}},9525:function(ee,en,er){"use strict";var eo=er(5164);function parsePath(ee){var en={protocols:[],protocol:null,port:null,resource:"",host:"",user:"",password:"",pathname:"",hash:"",search:"",href:ee,query:{},parse_failed:!1};try{var er=new URL(ee);en.protocols=eo(er),en.protocol=en.protocols[0],en.port=er.port,en.resource=er.hostname,en.host=er.host,en.user=er.username||"",en.password=er.password||"",en.pathname=er.pathname,en.hash=er.hash.slice(1),en.search=er.search.slice(1),en.href=er.href,en.query=Object.fromEntries(er.searchParams)}catch(er){en.protocols=["file"],en.protocol=en.protocols[0],en.port="",en.resource="",en.user="",en.pathname="",en.hash="",en.search="",en.href=ee,en.query={},en.parse_failed=!0}return en}ee.exports=parsePath},5145:function(ee,en,er){"use strict";var eo=function(ee){return ee&&"object"==typeof ee&&"default"in ee?ee:{default:ee}}(er(9525));let ei="text/plain",es="us-ascii",testParameter=(ee,en)=>en.some(en=>en instanceof RegExp?en.test(ee):en===ee),normalizeDataURL=(ee,{stripHash:en})=>{let er=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(ee);if(!er)throw Error(`Invalid URL: ${ee}`);let{type:eo,data:eu,hash:ec}=er.groups,ed=eo.split(";");ec=en?"":ec;let ep=!1;"base64"===ed[ed.length-1]&&(ed.pop(),ep=!0);let ef=(ed.shift()||"").toLowerCase(),eh=ed.map(ee=>{let[en,er=""]=ee.split("=").map(ee=>ee.trim());return"charset"===en&&(er=er.toLowerCase())===es?"":`${en}${er?`=${er}`:""}`}).filter(Boolean),em=[...eh];return ep&&em.push("base64"),(em.length>0||ef&&ef!==ei)&&em.unshift(ef),`data:${em.join(";")},${ep?eu.trim():eu}${ec?`#${ec}`:""}`};function normalizeUrl(ee,en){if(en={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...en},ee=ee.trim(),/^data:/i.test(ee))return normalizeDataURL(ee,en);if(/^view-source:/i.test(ee))throw Error("`view-source:` is not supported as it is a non-standard protocol");let er=ee.startsWith("//"),eo=!er&&/^\.*\//.test(ee);eo||(ee=ee.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,en.defaultProtocol));let ei=new URL(ee);if(en.forceHttp&&en.forceHttps)throw Error("The `forceHttp` and `forceHttps` options cannot be used together");if(en.forceHttp&&"https:"===ei.protocol&&(ei.protocol="http:"),en.forceHttps&&"http:"===ei.protocol&&(ei.protocol="https:"),en.stripAuthentication&&(ei.username="",ei.password=""),en.stripHash?ei.hash="":en.stripTextFragment&&(ei.hash=ei.hash.replace(/#?:~:text.*?$/i,"")),ei.pathname){let ee=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,en=0,er="";for(;;){let eo=ee.exec(ei.pathname);if(!eo)break;let es=eo[0],eu=eo.index,ec=ei.pathname.slice(en,eu);er+=ec.replace(/\/{2,}/g,"/")+es,en=eu+es.length}let eo=ei.pathname.slice(en,ei.pathname.length);er+=eo.replace(/\/{2,}/g,"/"),ei.pathname=er}if(ei.pathname)try{ei.pathname=decodeURI(ei.pathname)}catch{}if(!0===en.removeDirectoryIndex&&(en.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(en.removeDirectoryIndex)&&en.removeDirectoryIndex.length>0){let ee=ei.pathname.split("/"),er=ee[ee.length-1];testParameter(er,en.removeDirectoryIndex)&&(ee=ee.slice(0,-1),ei.pathname=ee.slice(1).join("/")+"/")}if(ei.hostname&&(ei.hostname=ei.hostname.replace(/\.$/,""),en.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(ei.hostname)&&(ei.hostname=ei.hostname.replace(/^www\./,""))),Array.isArray(en.removeQueryParameters))for(let ee of[...ei.searchParams.keys()])testParameter(ee,en.removeQueryParameters)&&ei.searchParams.delete(ee);if(!0===en.removeQueryParameters&&(ei.search=""),en.sortQueryParameters){ei.searchParams.sort();try{ei.search=decodeURIComponent(ei.search)}catch{}}en.removeTrailingSlash&&(ei.pathname=ei.pathname.replace(/\/$/,""));let es=ee;return ee=ei.toString(),en.removeSingleSlash||"/"!==ei.pathname||es.endsWith("/")||""!==ei.hash||(ee=ee.replace(/\/$/,"")),(en.removeTrailingSlash||"/"===ei.pathname)&&""===ei.hash&&en.removeSingleSlash&&(ee=ee.replace(/\/$/,"")),er&&!en.normalizeProtocol&&(ee=ee.replace(/^http:\/\//,"//")),en.stripProtocol&&(ee=ee.replace(/^(?:https?:)?\/\//,"")),ee}let parseUrl=(ee,en=!1)=>{let er=/^(?:([a-z_][a-z0-9_-]{0,31})@|https?:\/\/)([\w\.\-@]+)[\/:]([\~,\.\w,\-,\_,\/]+?(?:\.git|\/)?)$/,throwErr=en=>{let er=Error(en);throw er.subject_url=ee,er};"string"==typeof ee&&ee.trim()||throwErr("Invalid url."),ee.length>parseUrl.MAX_INPUT_LENGTH&&throwErr("Input exceeds maximum length. If needed, change the value of parseUrl.MAX_INPUT_LENGTH."),en&&("object"!=typeof en&&(en={stripHash:!1}),ee=normalizeUrl(ee,en));let ei=eo.default(ee);if(ei.parse_failed){let ee=ei.href.match(er);ee?(ei.protocols=["ssh"],ei.protocol="ssh",ei.resource=ee[2],ei.host=ee[2],ei.user=ee[1],ei.pathname=`/${ee[3]}`,ei.parse_failed=!1):throwErr("URL parsing failed.")}return ei};parseUrl.MAX_INPUT_LENGTH=2048,ee.exports=parseUrl},5164:function(ee){"use strict";ee.exports=function(ee,en){!0===en&&(en=0);var er="";if("string"==typeof ee)try{er=new URL(ee).protocol}catch(ee){}else ee&&ee.constructor===URL&&(er=ee.protocol);var eo=er.split(/\:|\+/).filter(Boolean);return"number"==typeof en?eo[en]:eo}},6976:function(ee){var en={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",Ĳ:"IJ",ĳ:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ŉ:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},er=Object.keys(en).join("|"),eo=RegExp(er,"g"),ei=RegExp(er,""),removeAccents=function(ee){return ee.replace(eo,function(ee){return en[ee]})},hasAccents=function(ee){return!!ee.match(ei)};ee.exports=removeAccents,ee.exports.has=hasAccents,ee.exports.remove=removeAccents},2544:function(ee){"use strict";ee.exports=ee=>{let en=/^\\\\\?\\/.test(ee),er=/[^\u0000-\u0080]+/.test(ee);return en||er?ee:ee.replace(/\\/g,"/")}},9839:function(ee,en,er){let eo=er(421),ei=er(928),es="[^\\s'’\\(\\)!?;:\"-]",eu=RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${es}))|(${es}))(${es}*[’']*${es}*)`,"g"),convertToRegExp=ee=>ee.map(ee=>[RegExp(`\\b${ee}\\b`,"gi"),ee]);function parseMatch(ee){let en=ee[0];return/\s/.test(en)?ee.slice(1):/[\(\)]/.test(en)?null:ee}ee.exports=(ee,en={})=>{ee=ee.toLowerCase().replace(eu,(ee,en="",er,ei,es,eu,ec)=>{let ed=ee.length+eu>=ec.length,ep=parseMatch(ee);if(!ep)return ee;if(!er){let ee=ei+es;if(eo.has(ee)&&!ed)return ep}return en+(ei||er).toUpperCase()+es});let er=en.special||[],es=[...ei,...er],ec=convertToRegExp(es);return ec.forEach(([en,er])=>{ee=ee.replace(en,er)}),ee}},421:function(ee){let en=["for","and","nor","but","or","yet","so"],er=["a","an","the"],eo=["aboard","about","above","across","after","against","along","amid","among","anti","around","as","at","before","behind","below","beneath","beside","besides","between","beyond","but","by","concerning","considering","despite","down","during","except","excepting","excluding","following","for","from","in","inside","into","like","minus","near","of","off","on","onto","opposite","over","past","per","plus","regarding","round","save","since","than","through","to","toward","towards","under","underneath","unlike","until","up","upon","versus","via","with","within","without"];ee.exports=new Set([...en,...er,...eo])},928:function(ee){let en=["ZEIT","ZEIT Inc.","Vercel","Vercel Inc.","CLI","API","HTTP","HTTPS","JSX","DNS","URL","now.sh","now.json","vercel.app","vercel.json","CI","CD","CDN","package.json","package.lock","yarn.lock","GitHub","GitLab","CSS","Sass","JS","JavaScript","TypeScript","HTML","WordPress","Next.js","Node.js","Webpack","Docker","Bash","Kubernetes","SWR","TinaCMS","UI","UX","TS","TSX","iPhone","iPad","watchOS","iOS","iPadOS","macOS","PHP","composer.json","composer.lock","CMS","SQL","C","C#","GraphQL","GraphiQL","JWT","JWTs"];ee.exports=en},966:function(ee,en,er){er(7458)},8656:function(ee,en,er){"use strict";er.d(en,{R:function(){return ei}});var eo,ei=((eo=ei||{}).Space=" ",eo.Enter="Enter",eo.Escape="Escape",eo.Backspace="Backspace",eo.Delete="Delete",eo.ArrowLeft="ArrowLeft",eo.ArrowUp="ArrowUp",eo.ArrowRight="ArrowRight",eo.ArrowDown="ArrowDown",eo.Home="Home",eo.End="End",eo.PageUp="PageUp",eo.PageDown="PageDown",eo.Tab="Tab",eo)},8141:function(ee,en,er){"use strict";er.d(en,{z:function(){return o}});var eo=er(2983),ei=er(3910);let o=function(ee){let en=(0,ei.E)(ee);return eo.useCallback((...ee)=>en.current(...ee),[en])}},3788:function(ee,en,er){"use strict";er.d(en,{M:function(){return ed}});var eo,ei=er(2983),es=er(6283),eu=er(5701),ec=er(9896);let ed=null!=(eo=ei.useId)?eo:function(){let ee=(0,ec.H)(),[en,er]=ei.useState(ee?()=>es.O.nextId():null);return(0,eu.e)(()=>{null===en&&er(es.O.nextId())},[en]),null!=en?""+en:void 0}},358:function(ee,en,er){"use strict";er.d(en,{t:function(){return f}});var eo=er(2983),ei=er(5701);function f(){let ee=(0,eo.useRef)(!1);return(0,ei.e)(()=>(ee.current=!0,()=>{ee.current=!1}),[]),ee}},5701:function(ee,en,er){"use strict";er.d(en,{e:function(){return l}});var eo=er(2983),ei=er(6283);let l=(ee,en)=>{ei.O.isServer?(0,eo.useEffect)(ee,en):(0,eo.useLayoutEffect)(ee,en)}},3910:function(ee,en,er){"use strict";er.d(en,{E:function(){return s}});var eo=er(2983),ei=er(5701);function s(ee){let en=(0,eo.useRef)(ee);return(0,ei.e)(()=>{en.current=ee},[ee]),en}},5751:function(ee,en,er){"use strict";er.d(en,{f:function(){return T}});var eo=er(2983),ei=er(5701);function i(ee){var en;if(ee.type)return ee.type;let er=null!=(en=ee.as)?en:"button";if("string"==typeof er&&"button"===er.toLowerCase())return"button"}function T(ee,en){let[er,es]=(0,eo.useState)(()=>i(ee));return(0,ei.e)(()=>{es(i(ee))},[ee.type,ee.as]),(0,ei.e)(()=>{er||en.current&&en.current instanceof HTMLButtonElement&&!en.current.hasAttribute("type")&&es("button")},[er,en]),er}},9896:function(ee,en,er){"use strict";er.d(en,{H:function(){return l}});var eo,ei=er(2983),es=er(6283);function s(){let ee="undefined"==typeof document;return(0,(eo||(eo=er.t(ei,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!ee)}function l(){let ee=s(),[en,er]=ei.useState(es.O.isHandoffComplete);return en&&!1===es.O.isHandoffComplete&&er(!1),ei.useEffect(()=>{!0!==en&&er(!0)},[en]),ei.useEffect(()=>es.O.handoff(),[]),!ee&&en}},1596:function(ee,en,er){"use strict";er.d(en,{T:function(){return y}});var eo=er(2983),ei=er(8141);let es=Symbol();function y(...ee){let en=(0,eo.useRef)(ee);(0,eo.useEffect)(()=>{en.current=ee},[ee]);let er=(0,ei.z)(ee=>{for(let er of en.current)null!=er&&("function"==typeof er?er(ee):er.current=ee)});return ee.every(ee=>null==ee||(null==ee?void 0:ee[es]))?void 0:er}},6769:function(ee,en,er){"use strict";er.d(en,{A:function(){return eu},_:function(){return ec}});var eo,ei=er(8372);let es="div";var eu=((eo=eu||{})[eo.None=1]="None",eo[eo.Focusable=2]="Focusable",eo[eo.Hidden=4]="Hidden",eo);function l(ee,en){var er;let{features:eo=1,...eu}=ee,ec={ref:en,"aria-hidden":(2&eo)==2||(null!=(er=eu["aria-hidden"])?er:void 0),style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&eo)==4&&(2&eo)!=2&&{display:"none"}}};return(0,ei.sY)({ourProps:ec,theirProps:eu,slot:{},defaultTag:es,name:"Hidden"})}let ec=(0,ei.yV)(l)},8805:function(ee,en,er){"use strict";function t(...ee){return Array.from(new Set(ee.flatMap(ee=>"string"==typeof ee?ee.split(" "):[]))).filter(Boolean).join(" ")}er.d(en,{A:function(){return t}})},8291:function(ee,en,er){"use strict";er.d(en,{k:function(){return o}});var eo=er(6376);function o(){let ee=[],en={addEventListener:(ee,er,eo,ei)=>(ee.addEventListener(er,eo,ei),en.add(()=>ee.removeEventListener(er,eo,ei))),requestAnimationFrame(...ee){let er=requestAnimationFrame(...ee);return en.add(()=>cancelAnimationFrame(er))},nextFrame:(...ee)=>en.requestAnimationFrame(()=>en.requestAnimationFrame(...ee)),setTimeout(...ee){let er=setTimeout(...ee);return en.add(()=>clearTimeout(er))},microTask(...ee){let er={current:!0};return(0,eo.Y)(()=>{er.current&&ee[0]()}),en.add(()=>{er.current=!1})},style(ee,en,er){let eo=ee.style.getPropertyValue(en);return Object.assign(ee.style,{[en]:er}),this.add(()=>{Object.assign(ee.style,{[en]:eo})})},group(ee){let en=o();return ee(en),this.add(()=>en.dispose())},add:en=>(ee.push(en),()=>{let er=ee.indexOf(en);if(er>=0)for(let en of ee.splice(er,1))en()}),dispose(){for(let en of ee.splice(0))en()}};return en}},6283:function(ee,en,er){"use strict";er.d(en,{O:function(){return ei}});var eo=Object.defineProperty,d=(ee,en,er)=>en in ee?eo(ee,en,{enumerable:!0,configurable:!0,writable:!0,value:er}):ee[en]=er,r=(ee,en,er)=>(d(ee,"symbol"!=typeof en?en+"":en,er),er);let o=class o{constructor(){r(this,"current",this.detect()),r(this,"handoffState","pending"),r(this,"currentId",0)}set(ee){this.current!==ee&&(this.handoffState="pending",this.currentId=0,this.current=ee)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};let ei=new o},1858:function(ee,en,er){"use strict";er.d(en,{EO:function(){return _},TO:function(){return em},fE:function(){return ex},jA:function(){return O},sP:function(){return h},tJ:function(){return ev},wI:function(){return D},z2:function(){return I}});var eo,ei,es,eu,ec,ed=er(8291),ep=er(4228),ef=er(3638);let eh=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(ee=>`${ee}:not([tabindex='-1'])`).join(",");var em=((eo=em||{})[eo.First=1]="First",eo[eo.Previous=2]="Previous",eo[eo.Next=4]="Next",eo[eo.Last=8]="Last",eo[eo.WrapAround=16]="WrapAround",eo[eo.NoScroll=32]="NoScroll",eo),ex=((ei=ex||{})[ei.Error=0]="Error",ei[ei.Overflow=1]="Overflow",ei[ei.Success=2]="Success",ei[ei.Underflow=3]="Underflow",ei),eg=((es=eg||{})[es.Previous=-1]="Previous",es[es.Next=1]="Next",es);function f(ee=document.body){return null==ee?[]:Array.from(ee.querySelectorAll(eh)).sort((ee,en)=>Math.sign((ee.tabIndex||Number.MAX_SAFE_INTEGER)-(en.tabIndex||Number.MAX_SAFE_INTEGER)))}var ev=((eu=ev||{})[eu.Strict=0]="Strict",eu[eu.Loose=1]="Loose",eu);function h(ee,en=0){var er;return ee!==(null==(er=(0,ef.r)(ee))?void 0:er.body)&&(0,ep.E)(en,{0:()=>ee.matches(eh),1(){let en=ee;for(;null!==en;){if(en.matches(eh))return!0;en=en.parentElement}return!1}})}function D(ee){let en=(0,ef.r)(ee);(0,ed.k)().nextFrame(()=>{en&&!h(en.activeElement,0)&&y(ee)})}var ey=((ec=ey||{})[ec.Keyboard=0]="Keyboard",ec[ec.Mouse=1]="Mouse",ec);function y(ee){null==ee||ee.focus({preventScroll:!0})}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",ee=>{ee.metaKey||ee.altKey||ee.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",ee=>{1===ee.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===ee.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let eb="textarea,input";function H(ee){var en,er;return null!=(er=null==(en=null==ee?void 0:ee.matches)?void 0:en.call(ee,eb))&&er}function I(ee,en=ee=>ee){return ee.slice().sort((ee,er)=>{let eo=en(ee),ei=en(er);if(null===eo||null===ei)return 0;let es=eo.compareDocumentPosition(ei);return es&Node.DOCUMENT_POSITION_FOLLOWING?-1:es&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function _(ee,en){return O(f(),en,{relativeTo:ee})}function O(ee,en,{sorted:er=!0,relativeTo:eo=null,skipElements:ei=[]}={}){let es=Array.isArray(ee)?ee.length>0?ee[0].ownerDocument:document:ee.ownerDocument,eu=Array.isArray(ee)?er?I(ee):ee:f(ee);ei.length>0&&eu.length>1&&(eu=eu.filter(ee=>!ei.includes(ee))),eo=null!=eo?eo:es.activeElement;let ec=(()=>{if(5&en)return 1;if(10&en)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),ed=(()=>{if(1&en)return 0;if(2&en)return Math.max(0,eu.indexOf(eo))-1;if(4&en)return Math.max(0,eu.indexOf(eo))+1;if(8&en)return eu.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),ep=32&en?{preventScroll:!0}:{},ef=0,eh=eu.length,em;do{if(ef>=eh||ef+eh<=0)return 0;let ee=ed+ef;if(16&en)ee=(ee+eh)%eh;else{if(ee<0)return 3;if(ee>=eh)return 1}null==(em=eu[ee])||em.focus(ep),ef+=ec}while(em!==es.activeElement);return 6&en&&H(em)&&em.select(),2}},4228:function(ee,en,er){"use strict";function u(ee,en,...er){if(ee in en){let eo=en[ee];return"function"==typeof eo?eo(...er):eo}let eo=Error(`Tried to handle "${ee}" but there is no handler defined. Only defined handlers are: ${Object.keys(en).map(ee=>`"${ee}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(eo,u),eo}er.d(en,{E:function(){return u}})},6376:function(ee,en,er){"use strict";function t(ee){"function"==typeof queueMicrotask?queueMicrotask(ee):Promise.resolve().then(ee).catch(ee=>setTimeout(()=>{throw ee}))}er.d(en,{Y:function(){return t}})},3638:function(ee,en,er){"use strict";er.d(en,{r:function(){return o}});var eo=er(6283);function o(ee){return eo.O.isServer?null:ee instanceof Node?ee.ownerDocument:null!=ee&&ee.hasOwnProperty("current")&&ee.current instanceof Node?ee.current.ownerDocument:document}},8372:function(ee,en,er){"use strict";er.d(en,{AN:function(){return ed},l4:function(){return ep},oA:function(){return x},sY:function(){return C},yV:function(){return U}});var eo,ei,es=er(2983),eu=er(8805),ec=er(4228),ed=((eo=ed||{})[eo.None=0]="None",eo[eo.RenderStrategy=1]="RenderStrategy",eo[eo.Static=2]="Static",eo),ep=((ei=ep||{})[ei.Unmount=0]="Unmount",ei[ei.Hidden=1]="Hidden",ei);function C({ourProps:ee,theirProps:en,slot:er,defaultTag:eo,features:ei,visible:es=!0,name:eu,mergeRefs:ed}){ed=null!=ed?ed:k;let ep=R(en,ee);if(es)return m(ep,er,eo,eu,ed);let ef=null!=ei?ei:0;if(2&ef){let{static:ee=!1,...en}=ep;if(ee)return m(en,er,eo,eu,ed)}if(1&ef){let{unmount:ee=!0,...en}=ep;return(0,ec.E)(ee?0:1,{0:()=>null,1:()=>m({...en,hidden:!0,style:{display:"none"}},er,eo,eu,ed)})}return m(ep,er,eo,eu,ed)}function m(ee,en={},er,eo,ei){let{as:ec=er,children:ed,refName:ep="ref",...ef}=F(ee,["unmount","static"]),eh=void 0!==ee.ref?{[ep]:ee.ref}:{},em="function"==typeof ed?ed(en):ed;"className"in ef&&ef.className&&"function"==typeof ef.className&&(ef.className=ef.className(en));let ex={};if(en){let ee=!1,er=[];for(let[eo,ei]of Object.entries(en))"boolean"==typeof ei&&(ee=!0),!0===ei&&er.push(eo);ee&&(ex["data-headlessui-state"]=er.join(" "))}if(ec===es.Fragment&&Object.keys(x(ef)).length>0){if(!(0,es.isValidElement)(em)||Array.isArray(em)&&em.length>1)throw Error(['Passing props on "Fragment"!',"",`The current component <${eo} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(ef).map(ee=>`  - ${ee}`).join(`
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(ee=>`  - ${ee}`).join(`
`)].join(`
`));let ee=em.props,en="function"==typeof(null==ee?void 0:ee.className)?(...en)=>(0,eu.A)(null==ee?void 0:ee.className(...en),ef.className):(0,eu.A)(null==ee?void 0:ee.className,ef.className),er=en?{className:en}:{};return(0,es.cloneElement)(em,Object.assign({},R(em.props,x(F(ef,["ref"]))),ex,eh,{ref:ei(em.ref,eh.ref)},er))}return(0,es.createElement)(ec,Object.assign({},F(ef,["ref"]),ec!==es.Fragment&&eh,ec!==es.Fragment&&ex),em)}function k(...ee){return ee.every(ee=>null==ee)?void 0:en=>{for(let er of ee)null!=er&&("function"==typeof er?er(en):er.current=en)}}function R(...ee){var en;if(0===ee.length)return{};if(1===ee.length)return ee[0];let er={},eo={};for(let ei of ee)for(let ee in ei)ee.startsWith("on")&&"function"==typeof ei[ee]?(null!=(en=eo[ee])||(eo[ee]=[]),eo[ee].push(ei[ee])):er[ee]=ei[ee];if(er.disabled||er["aria-disabled"])return Object.assign(er,Object.fromEntries(Object.keys(eo).map(ee=>[ee,void 0])));for(let ee in eo)Object.assign(er,{[ee](en,...er){for(let ei of eo[ee]){if((en instanceof Event||(null==en?void 0:en.nativeEvent)instanceof Event)&&en.defaultPrevented)return;ei(en,...er)}}});return er}function U(ee){var en;return Object.assign((0,es.forwardRef)(ee),{displayName:null!=(en=ee.displayName)?en:ee.name})}function x(ee){let en=Object.assign({},ee);for(let ee in en)void 0===en[ee]&&delete en[ee];return en}function F(ee,en=[]){let er=Object.assign({},ee);for(let ee of en)ee in er&&delete er[ee];return er}},8364:function(ee,en,er){"use strict";function r(ee){var en,er,eo="";if("string"==typeof ee||"number"==typeof ee)eo+=ee;else if("object"==typeof ee){if(Array.isArray(ee)){var ei=ee.length;for(en=0;en<ei;en++)ee[en]&&(er=r(ee[en]))&&(eo&&(eo+=" "),eo+=er)}else for(er in ee)ee[er]&&(eo&&(eo+=" "),eo+=er)}return eo}function clsx(){for(var ee,en,er=0,eo="",ei=arguments.length;er<ei;er++)(ee=arguments[er])&&(en=r(ee))&&(eo&&(eo+=" "),eo+=en);return eo}en.Z=clsx},4664:function(ee,en,er){"use strict";er.d(en,{ZW:function(){return es},eZ:function(){return ec},hV:function(){return ed}});var eo=er(5349),ei=er(3345),es="en-US",eu=ei.cwd();eo.join(eu,"public");var ec=Symbol.for("__nextra_internal__"),ed=new Set(["/404","/500"])}}]);