@paroicms/site-generator-plugin 0.14.1 → 0.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var Vy=Object.defineProperty;var Qy=(i,l,s)=>l in i?Vy(i,l,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[l]=s;var Ae=(i,l,s)=>Qy(i,typeof l!="symbol"?l+"":l,s);function Up(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var fo={exports:{}},Jl={};/**
1
+ var A0=Object.defineProperty;var O0=(i,n,r)=>n in i?A0(i,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[n]=r;var Oe=(i,n,r)=>O0(i,typeof n!="symbol"?n+"":n,r);function rm(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Ro={exports:{}},ii={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@ var Vy=Object.defineProperty;var Qy=(i,l,s)=>l in i?Vy(i,l,{enumerable:!0,config
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Kh;function Xy(){if(Kh)return Jl;Kh=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function s(r,c,f){var p=null;if(f!==void 0&&(p=""+f),c.key!==void 0&&(p=""+c.key),"key"in c){f={};for(var h in c)h!=="key"&&(f[h]=c[h])}else f=c;return c=f.ref,{$$typeof:i,type:r,key:p,ref:c!==void 0?c:null,props:f}}return Jl.Fragment=l,Jl.jsx=s,Jl.jsxs=s,Jl}var Jh;function Zy(){return Jh||(Jh=1,fo.exports=Xy()),fo.exports}var E=Zy();const ae=i=>typeof i=="string",Fl=()=>{let i,l;const s=new Promise((r,c)=>{i=r,l=c});return s.resolve=i,s.reject=l,s},Fh=i=>i==null?"":""+i,Ky=(i,l,s)=>{i.forEach(r=>{l[r]&&(s[r]=l[r])})},Jy=/###/g,Wh=i=>i&&i.indexOf("###")>-1?i.replace(Jy,"."):i,Ph=i=>!i||ae(i),ni=(i,l,s)=>{const r=ae(l)?l.split("."):l;let c=0;for(;c<r.length-1;){if(Ph(i))return{};const f=Wh(r[c]);!i[f]&&s&&(i[f]=new s),Object.prototype.hasOwnProperty.call(i,f)?i=i[f]:i={},++c}return Ph(i)?{}:{obj:i,k:Wh(r[c])}},Ih=(i,l,s)=>{const{obj:r,k:c}=ni(i,l,Object);if(r!==void 0||l.length===1){r[c]=s;return}let f=l[l.length-1],p=l.slice(0,l.length-1),h=ni(i,p,Object);for(;h.obj===void 0&&p.length;)f=`${p[p.length-1]}.${f}`,p=p.slice(0,p.length-1),h=ni(i,p,Object),h!=null&&h.obj&&typeof h.obj[`${h.k}.${f}`]<"u"&&(h.obj=void 0);h.obj[`${h.k}.${f}`]=s},Fy=(i,l,s,r)=>{const{obj:c,k:f}=ni(i,l,Object);c[f]=c[f]||[],c[f].push(s)},Lu=(i,l)=>{const{obj:s,k:r}=ni(i,l);if(s&&Object.prototype.hasOwnProperty.call(s,r))return s[r]},Wy=(i,l,s)=>{const r=Lu(i,s);return r!==void 0?r:Lu(l,s)},Hp=(i,l,s)=>{for(const r in l)r!=="__proto__"&&r!=="constructor"&&(r in i?ae(i[r])||i[r]instanceof String||ae(l[r])||l[r]instanceof String?s&&(i[r]=l[r]):Hp(i[r],l[r],s):i[r]=l[r]);return i},Za=i=>i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Py={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Iy=i=>ae(i)?i.replace(/[&<>"'\/]/g,l=>Py[l]):i;class ev{constructor(l){this.capacity=l,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(l){const s=this.regExpMap.get(l);if(s!==void 0)return s;const r=new RegExp(l);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(l,r),this.regExpQueue.push(l),r}}const tv=[" ",",","?","!",";"],nv=new ev(20),av=(i,l,s)=>{l=l||"",s=s||"";const r=tv.filter(p=>l.indexOf(p)<0&&s.indexOf(p)<0);if(r.length===0)return!0;const c=nv.getRegExp(`(${r.map(p=>p==="?"?"\\?":p).join("|")})`);let f=!c.test(i);if(!f){const p=i.indexOf(s);p>0&&!c.test(i.substring(0,p))&&(f=!0)}return f},wo=(i,l,s=".")=>{if(!i)return;if(i[l])return Object.prototype.hasOwnProperty.call(i,l)?i[l]:void 0;const r=l.split(s);let c=i;for(let f=0;f<r.length;){if(!c||typeof c!="object")return;let p,h="";for(let g=f;g<r.length;++g)if(g!==f&&(h+=s),h+=r[g],p=c[h],p!==void 0){if(["string","number","boolean"].indexOf(typeof p)>-1&&g<r.length-1)continue;f+=g-f+1;break}c=p}return c},li=i=>i==null?void 0:i.replace("_","-"),lv={type:"logger",log(i){this.output("log",i)},warn(i){this.output("warn",i)},error(i){this.output("error",i)},output(i,l){var s,r;(r=(s=console==null?void 0:console[i])==null?void 0:s.apply)==null||r.call(s,console,l)}};class Uu{constructor(l,s={}){this.init(l,s)}init(l,s={}){this.prefix=s.prefix||"i18next:",this.logger=l||lv,this.options=s,this.debug=s.debug}log(...l){return this.forward(l,"log","",!0)}warn(...l){return this.forward(l,"warn","",!0)}error(...l){return this.forward(l,"error","")}deprecate(...l){return this.forward(l,"warn","WARNING DEPRECATED: ",!0)}forward(l,s,r,c){return c&&!this.debug?null:(ae(l[0])&&(l[0]=`${r}${this.prefix} ${l[0]}`),this.logger[s](l))}create(l){return new Uu(this.logger,{prefix:`${this.prefix}:${l}:`,...this.options})}clone(l){return l=l||this.options,l.prefix=l.prefix||this.prefix,new Uu(this.logger,l)}}var Qt=new Uu;class Vu{constructor(){this.observers={}}on(l,s){return l.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const c=this.observers[r].get(s)||0;this.observers[r].set(s,c+1)}),this}off(l,s){if(this.observers[l]){if(!s){delete this.observers[l];return}this.observers[l].delete(s)}}emit(l,...s){this.observers[l]&&Array.from(this.observers[l].entries()).forEach(([c,f])=>{for(let p=0;p<f;p++)c(...s)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([c,f])=>{for(let p=0;p<f;p++)c.apply(c,[l,...s])})}}class ep extends Vu{constructor(l,s={ns:["translation"],defaultNS:"translation"}){super(),this.data=l||{},this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(l){this.options.ns.indexOf(l)<0&&this.options.ns.push(l)}removeNamespaces(l){const s=this.options.ns.indexOf(l);s>-1&&this.options.ns.splice(s,1)}getResource(l,s,r,c={}){var d,y;const f=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,p=c.ignoreJSONStructure!==void 0?c.ignoreJSONStructure:this.options.ignoreJSONStructure;let h;l.indexOf(".")>-1?h=l.split("."):(h=[l,s],r&&(Array.isArray(r)?h.push(...r):ae(r)&&f?h.push(...r.split(f)):h.push(r)));const g=Lu(this.data,h);return!g&&!s&&!r&&l.indexOf(".")>-1&&(l=h[0],s=h[1],r=h.slice(2).join(".")),g||!p||!ae(r)?g:wo((y=(d=this.data)==null?void 0:d[l])==null?void 0:y[s],r,f)}addResource(l,s,r,c,f={silent:!1}){const p=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let h=[l,s];r&&(h=h.concat(p?r.split(p):r)),l.indexOf(".")>-1&&(h=l.split("."),c=s,s=h[1]),this.addNamespaces(s),Ih(this.data,h,c),f.silent||this.emit("added",l,s,r,c)}addResources(l,s,r,c={silent:!1}){for(const f in r)(ae(r[f])||Array.isArray(r[f]))&&this.addResource(l,s,f,r[f],{silent:!0});c.silent||this.emit("added",l,s,r)}addResourceBundle(l,s,r,c,f,p={silent:!1,skipCopy:!1}){let h=[l,s];l.indexOf(".")>-1&&(h=l.split("."),c=r,r=s,s=h[1]),this.addNamespaces(s);let g=Lu(this.data,h)||{};p.skipCopy||(r=JSON.parse(JSON.stringify(r))),c?Hp(g,r,f):g={...g,...r},Ih(this.data,h,g),p.silent||this.emit("added",l,s,r)}removeResourceBundle(l,s){this.hasResourceBundle(l,s)&&delete this.data[l][s],this.removeNamespaces(s),this.emit("removed",l,s)}hasResourceBundle(l,s){return this.getResource(l,s)!==void 0}getResourceBundle(l,s){return s||(s=this.options.defaultNS),this.getResource(l,s)}getDataByLanguage(l){return this.data[l]}hasLanguageSomeTranslations(l){const s=this.getDataByLanguage(l);return!!(s&&Object.keys(s)||[]).find(c=>s[c]&&Object.keys(s[c]).length>0)}toJSON(){return this.data}}var Bp={processors:{},addPostProcessor(i){this.processors[i.name]=i},handle(i,l,s,r,c){return i.forEach(f=>{var p;l=((p=this.processors[f])==null?void 0:p.process(l,s,r,c))??l}),l}};const tp={},np=i=>!ae(i)&&typeof i!="boolean"&&typeof i!="number";class Hu extends Vu{constructor(l,s={}){super(),Ky(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],l,this),this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Qt.create("translator")}changeLanguage(l){l&&(this.language=l)}exists(l,s={interpolation:{}}){const r={...s};if(l==null)return!1;const c=this.resolve(l,r);return(c==null?void 0:c.res)!==void 0}extractFromKey(l,s){let r=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const c=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let f=s.ns||this.options.defaultNS||[];const p=r&&l.indexOf(r)>-1,h=!this.options.userDefinedKeySeparator&&!s.keySeparator&&!this.options.userDefinedNsSeparator&&!s.nsSeparator&&!av(l,r,c);if(p&&!h){const g=l.match(this.interpolator.nestingRegexp);if(g&&g.length>0)return{key:l,namespaces:ae(f)?[f]:f};const d=l.split(r);(r!==c||r===c&&this.options.ns.indexOf(d[0])>-1)&&(f=d.shift()),l=d.join(c)}return{key:l,namespaces:ae(f)?[f]:f}}translate(l,s,r){let c=typeof s=="object"?{...s}:s;if(typeof c!="object"&&this.options.overloadTranslationOptionHandler&&(c=this.options.overloadTranslationOptionHandler(arguments)),typeof options=="object"&&(c={...c}),c||(c={}),l==null)return"";Array.isArray(l)||(l=[String(l)]);const f=c.returnDetails!==void 0?c.returnDetails:this.options.returnDetails,p=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,{key:h,namespaces:g}=this.extractFromKey(l[l.length-1],c),d=g[g.length-1];let y=c.nsSeparator!==void 0?c.nsSeparator:this.options.nsSeparator;y===void 0&&(y=":");const S=c.lng||this.language,b=c.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((S==null?void 0:S.toLowerCase())==="cimode")return b?f?{res:`${d}${y}${h}`,usedKey:h,exactUsedKey:h,usedLng:S,usedNS:d,usedParams:this.getUsedParamsDetails(c)}:`${d}${y}${h}`:f?{res:h,usedKey:h,exactUsedKey:h,usedLng:S,usedNS:d,usedParams:this.getUsedParamsDetails(c)}:h;const _=this.resolve(l,c);let T=_==null?void 0:_.res;const M=(_==null?void 0:_.usedKey)||h,G=(_==null?void 0:_.exactUsedKey)||h,B=["[object Number]","[object Function]","[object RegExp]"],q=c.joinArrays!==void 0?c.joinArrays:this.options.joinArrays,X=!this.i18nFormat||this.i18nFormat.handleAsObject,F=c.count!==void 0&&!ae(c.count),Z=Hu.hasDefaultValue(c),de=F?this.pluralResolver.getSuffix(S,c.count,c):"",le=c.ordinal&&F?this.pluralResolver.getSuffix(S,c.count,{ordinal:!1}):"",ie=F&&!c.ordinal&&c.count===0,Q=ie&&c[`defaultValue${this.options.pluralSeparator}zero`]||c[`defaultValue${de}`]||c[`defaultValue${le}`]||c.defaultValue;let ee=T;X&&!T&&Z&&(ee=Q);const he=np(ee),De=Object.prototype.toString.apply(ee);if(X&&ee&&he&&B.indexOf(De)<0&&!(ae(q)&&Array.isArray(ee))){if(!c.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const Ue=this.options.returnedObjectHandler?this.options.returnedObjectHandler(M,ee,{...c,ns:g}):`key '${h} (${this.language})' returned an object instead of string.`;return f?(_.res=Ue,_.usedParams=this.getUsedParamsDetails(c),_):Ue}if(p){const Ue=Array.isArray(ee),Ce=Ue?[]:{},$e=Ue?G:M;for(const D in ee)if(Object.prototype.hasOwnProperty.call(ee,D)){const $=`${$e}${p}${D}`;Z&&!T?Ce[D]=this.translate($,{...c,defaultValue:np(Q)?Q[D]:void 0,joinArrays:!1,ns:g}):Ce[D]=this.translate($,{...c,joinArrays:!1,ns:g}),Ce[D]===$&&(Ce[D]=ee[D])}T=Ce}}else if(X&&ae(q)&&Array.isArray(T))T=T.join(q),T&&(T=this.extendTranslation(T,l,c,r));else{let Ue=!1,Ce=!1;!this.isValidLookup(T)&&Z&&(Ue=!0,T=Q),this.isValidLookup(T)||(Ce=!0,T=h);const D=(c.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Ce?void 0:T,$=Z&&Q!==T&&this.options.updateMissing;if(Ce||Ue||$){if(this.logger.log($?"updateKey":"missingKey",S,d,h,$?Q:T),p){const U=this.resolve(h,{...c,keySeparator:!1});U&&U.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let W=[];const me=this.languageUtils.getFallbackCodes(this.options.fallbackLng,c.lng||this.language);if(this.options.saveMissingTo==="fallback"&&me&&me[0])for(let U=0;U<me.length;U++)W.push(me[U]);else this.options.saveMissingTo==="all"?W=this.languageUtils.toResolveHierarchy(c.lng||this.language):W.push(c.lng||this.language);const R=(U,V,Y)=>{var pe;const P=Z&&Y!==T?Y:D;this.options.missingKeyHandler?this.options.missingKeyHandler(U,d,V,P,$,c):(pe=this.backendConnector)!=null&&pe.saveMissing&&this.backendConnector.saveMissing(U,d,V,P,$,c),this.emit("missingKey",U,d,V,T)};this.options.saveMissing&&(this.options.saveMissingPlurals&&F?W.forEach(U=>{const V=this.pluralResolver.getSuffixes(U,c);ie&&c[`defaultValue${this.options.pluralSeparator}zero`]&&V.indexOf(`${this.options.pluralSeparator}zero`)<0&&V.push(`${this.options.pluralSeparator}zero`),V.forEach(Y=>{R([U],h+Y,c[`defaultValue${Y}`]||Q)})}):R(W,h,Q))}T=this.extendTranslation(T,l,c,_,r),Ce&&T===h&&this.options.appendNamespaceToMissingKey&&(T=`${d}${y}${h}`),(Ce||Ue)&&this.options.parseMissingKeyHandler&&(T=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}${y}${h}`:h,Ue?T:void 0,c))}return f?(_.res=T,_.usedParams=this.getUsedParamsDetails(c),_):T}extendTranslation(l,s,r,c,f){var g,d;if((g=this.i18nFormat)!=null&&g.parse)l=this.i18nFormat.parse(l,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||c.usedLng,c.usedNS,c.usedKey,{resolved:c});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const y=ae(l)&&(((d=r==null?void 0:r.interpolation)==null?void 0:d.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let S;if(y){const _=l.match(this.interpolator.nestingRegexp);S=_&&_.length}let b=r.replace&&!ae(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(b={...this.options.interpolation.defaultVariables,...b}),l=this.interpolator.interpolate(l,b,r.lng||this.language||c.usedLng,r),y){const _=l.match(this.interpolator.nestingRegexp),T=_&&_.length;S<T&&(r.nest=!1)}!r.lng&&c&&c.res&&(r.lng=this.language||c.usedLng),r.nest!==!1&&(l=this.interpolator.nest(l,(..._)=>(f==null?void 0:f[0])===_[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${_[0]} in key: ${s[0]}`),null):this.translate(..._,s),r)),r.interpolation&&this.interpolator.reset()}const p=r.postProcess||this.options.postProcess,h=ae(p)?[p]:p;return l!=null&&(h!=null&&h.length)&&r.applyPostProcessor!==!1&&(l=Bp.handle(h,l,s,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...c,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),l}resolve(l,s={}){let r,c,f,p,h;return ae(l)&&(l=[l]),l.forEach(g=>{if(this.isValidLookup(r))return;const d=this.extractFromKey(g,s),y=d.key;c=y;let S=d.namespaces;this.options.fallbackNS&&(S=S.concat(this.options.fallbackNS));const b=s.count!==void 0&&!ae(s.count),_=b&&!s.ordinal&&s.count===0,T=s.context!==void 0&&(ae(s.context)||typeof s.context=="number")&&s.context!=="",M=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);S.forEach(G=>{var B,q;this.isValidLookup(r)||(h=G,!tp[`${M[0]}-${G}`]&&((B=this.utils)!=null&&B.hasLoadedNamespace)&&!((q=this.utils)!=null&&q.hasLoadedNamespace(h))&&(tp[`${M[0]}-${G}`]=!0,this.logger.warn(`key "${c}" for languages "${M.join(", ")}" won't get resolved as namespace "${h}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),M.forEach(X=>{var de;if(this.isValidLookup(r))return;p=X;const F=[y];if((de=this.i18nFormat)!=null&&de.addLookupKeys)this.i18nFormat.addLookupKeys(F,y,X,G,s);else{let le;b&&(le=this.pluralResolver.getSuffix(X,s.count,s));const ie=`${this.options.pluralSeparator}zero`,Q=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(b&&(F.push(y+le),s.ordinal&&le.indexOf(Q)===0&&F.push(y+le.replace(Q,this.options.pluralSeparator)),_&&F.push(y+ie)),T){const ee=`${y}${this.options.contextSeparator}${s.context}`;F.push(ee),b&&(F.push(ee+le),s.ordinal&&le.indexOf(Q)===0&&F.push(ee+le.replace(Q,this.options.pluralSeparator)),_&&F.push(ee+ie))}}let Z;for(;Z=F.pop();)this.isValidLookup(r)||(f=Z,r=this.getResource(X,G,Z,s))}))})}),{res:r,usedKey:c,exactUsedKey:f,usedLng:p,usedNS:h}}isValidLookup(l){return l!==void 0&&!(!this.options.returnNull&&l===null)&&!(!this.options.returnEmptyString&&l==="")}getResource(l,s,r,c={}){var f;return(f=this.i18nFormat)!=null&&f.getResource?this.i18nFormat.getResource(l,s,r,c):this.resourceStore.getResource(l,s,r,c)}getUsedParamsDetails(l={}){const s=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=l.replace&&!ae(l.replace);let c=r?l.replace:l;if(r&&typeof l.count<"u"&&(c.count=l.count),this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),!r){c={...c};for(const f of s)delete c[f]}return c}static hasDefaultValue(l){const s="defaultValue";for(const r in l)if(Object.prototype.hasOwnProperty.call(l,r)&&s===r.substring(0,s.length)&&l[r]!==void 0)return!0;return!1}}class ap{constructor(l){this.options=l,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Qt.create("languageUtils")}getScriptPartFromCode(l){if(l=li(l),!l||l.indexOf("-")<0)return null;const s=l.split("-");return s.length===2||(s.pop(),s[s.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(s.join("-"))}getLanguagePartFromCode(l){if(l=li(l),!l||l.indexOf("-")<0)return l;const s=l.split("-");return this.formatLanguageCode(s[0])}formatLanguageCode(l){if(ae(l)&&l.indexOf("-")>-1){let s;try{s=Intl.getCanonicalLocales(l)[0]}catch{}return s&&this.options.lowerCaseLng&&(s=s.toLowerCase()),s||(this.options.lowerCaseLng?l.toLowerCase():l)}return this.options.cleanCode||this.options.lowerCaseLng?l.toLowerCase():l}isSupportedCode(l){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(l=this.getLanguagePartFromCode(l)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(l)>-1}getBestMatchFromCodes(l){if(!l)return null;let s;return l.forEach(r=>{if(s)return;const c=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(c))&&(s=c)}),!s&&this.options.supportedLngs&&l.forEach(r=>{if(s)return;const c=this.getScriptPartFromCode(r);if(this.isSupportedCode(c))return s=c;const f=this.getLanguagePartFromCode(r);if(this.isSupportedCode(f))return s=f;s=this.options.supportedLngs.find(p=>{if(p===f)return p;if(!(p.indexOf("-")<0&&f.indexOf("-")<0)&&(p.indexOf("-")>0&&f.indexOf("-")<0&&p.substring(0,p.indexOf("-"))===f||p.indexOf(f)===0&&f.length>1))return p})}),s||(s=this.getFallbackCodes(this.options.fallbackLng)[0]),s}getFallbackCodes(l,s){if(!l)return[];if(typeof l=="function"&&(l=l(s)),ae(l)&&(l=[l]),Array.isArray(l))return l;if(!s)return l.default||[];let r=l[s];return r||(r=l[this.getScriptPartFromCode(s)]),r||(r=l[this.formatLanguageCode(s)]),r||(r=l[this.getLanguagePartFromCode(s)]),r||(r=l.default),r||[]}toResolveHierarchy(l,s){const r=this.getFallbackCodes((s===!1?[]:s)||this.options.fallbackLng||[],l),c=[],f=p=>{p&&(this.isSupportedCode(p)?c.push(p):this.logger.warn(`rejecting language code not found in supportedLngs: ${p}`))};return ae(l)&&(l.indexOf("-")>-1||l.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(l)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(l)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(l))):ae(l)&&f(this.formatLanguageCode(l)),r.forEach(p=>{c.indexOf(p)<0&&f(this.formatLanguageCode(p))}),c}}const lp={zero:0,one:1,two:2,few:3,many:4,other:5},ip={select:i=>i===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class iv{constructor(l,s={}){this.languageUtils=l,this.options=s,this.logger=Qt.create("pluralResolver"),this.pluralRulesCache={}}addRule(l,s){this.rules[l]=s}clearCache(){this.pluralRulesCache={}}getRule(l,s={}){const r=li(l==="dev"?"en":l),c=s.ordinal?"ordinal":"cardinal",f=JSON.stringify({cleanedCode:r,type:c});if(f in this.pluralRulesCache)return this.pluralRulesCache[f];let p;try{p=new Intl.PluralRules(r,{type:c})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),ip;if(!l.match(/-|_/))return ip;const g=this.languageUtils.getLanguagePartFromCode(l);p=this.getRule(g,s)}return this.pluralRulesCache[f]=p,p}needsPlural(l,s={}){let r=this.getRule(l,s);return r||(r=this.getRule("dev",s)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(l,s,r={}){return this.getSuffixes(l,r).map(c=>`${s}${c}`)}getSuffixes(l,s={}){let r=this.getRule(l,s);return r||(r=this.getRule("dev",s)),r?r.resolvedOptions().pluralCategories.sort((c,f)=>lp[c]-lp[f]).map(c=>`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${c}`):[]}getSuffix(l,s,r={}){const c=this.getRule(l,r);return c?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${c.select(s)}`:(this.logger.warn(`no plural rule found for: ${l}`),this.getSuffix("dev",s,r))}}const up=(i,l,s,r=".",c=!0)=>{let f=Wy(i,l,s);return!f&&c&&ae(s)&&(f=wo(i,s,r),f===void 0&&(f=wo(l,s,r))),f},ho=i=>i.replace(/\$/g,"$$$$");class uv{constructor(l={}){var s;this.logger=Qt.create("interpolator"),this.options=l,this.format=((s=l==null?void 0:l.interpolation)==null?void 0:s.format)||(r=>r),this.init(l)}init(l={}){l.interpolation||(l.interpolation={escapeValue:!0});const{escape:s,escapeValue:r,useRawValueToEscape:c,prefix:f,prefixEscaped:p,suffix:h,suffixEscaped:g,formatSeparator:d,unescapeSuffix:y,unescapePrefix:S,nestingPrefix:b,nestingPrefixEscaped:_,nestingSuffix:T,nestingSuffixEscaped:M,nestingOptionsSeparator:G,maxReplaces:B,alwaysFormat:q}=l.interpolation;this.escape=s!==void 0?s:Iy,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=c!==void 0?c:!1,this.prefix=f?Za(f):p||"{{",this.suffix=h?Za(h):g||"}}",this.formatSeparator=d||",",this.unescapePrefix=y?"":S||"-",this.unescapeSuffix=this.unescapePrefix?"":y||"",this.nestingPrefix=b?Za(b):_||Za("$t("),this.nestingSuffix=T?Za(T):M||Za(")"),this.nestingOptionsSeparator=G||",",this.maxReplaces=B||1e3,this.alwaysFormat=q!==void 0?q:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const l=(s,r)=>(s==null?void 0:s.source)===r?(s.lastIndex=0,s):new RegExp(r,"g");this.regexp=l(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=l(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=l(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(l,s,r,c){var _;let f,p,h;const g=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},d=T=>{if(T.indexOf(this.formatSeparator)<0){const q=up(s,g,T,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(q,void 0,r,{...c,...s,interpolationkey:T}):q}const M=T.split(this.formatSeparator),G=M.shift().trim(),B=M.join(this.formatSeparator).trim();return this.format(up(s,g,G,this.options.keySeparator,this.options.ignoreJSONStructure),B,r,{...c,...s,interpolationkey:G})};this.resetRegExp();const y=(c==null?void 0:c.missingInterpolationHandler)||this.options.missingInterpolationHandler,S=((_=c==null?void 0:c.interpolation)==null?void 0:_.skipOnVariables)!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:T=>ho(T)},{regex:this.regexp,safeValue:T=>this.escapeValue?ho(this.escape(T)):ho(T)}].forEach(T=>{for(h=0;f=T.regex.exec(l);){const M=f[1].trim();if(p=d(M),p===void 0)if(typeof y=="function"){const B=y(l,f,c);p=ae(B)?B:""}else if(c&&Object.prototype.hasOwnProperty.call(c,M))p="";else if(S){p=f[0];continue}else this.logger.warn(`missed to pass in variable ${M} for interpolating ${l}`),p="";else!ae(p)&&!this.useRawValueToEscape&&(p=Fh(p));const G=T.safeValue(p);if(l=l.replace(f[0],G),S?(T.regex.lastIndex+=p.length,T.regex.lastIndex-=f[0].length):T.regex.lastIndex=0,h++,h>=this.maxReplaces)break}}),l}nest(l,s,r={}){let c,f,p;const h=(g,d)=>{const y=this.nestingOptionsSeparator;if(g.indexOf(y)<0)return g;const S=g.split(new RegExp(`${y}[ ]*{`));let b=`{${S[1]}`;g=S[0],b=this.interpolate(b,p);const _=b.match(/'/g),T=b.match(/"/g);(((_==null?void 0:_.length)??0)%2===0&&!T||T.length%2!==0)&&(b=b.replace(/'/g,'"'));try{p=JSON.parse(b),d&&(p={...d,...p})}catch(M){return this.logger.warn(`failed parsing options string in nesting for key ${g}`,M),`${g}${y}${b}`}return p.defaultValue&&p.defaultValue.indexOf(this.prefix)>-1&&delete p.defaultValue,g};for(;c=this.nestingRegexp.exec(l);){let g=[];p={...r},p=p.replace&&!ae(p.replace)?p.replace:p,p.applyPostProcessor=!1,delete p.defaultValue;let d=!1;if(c[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(c[1])){const y=c[1].split(this.formatSeparator).map(S=>S.trim());c[1]=y.shift(),g=y,d=!0}if(f=s(h.call(this,c[1].trim(),p),p),f&&c[0]===l&&!ae(f))return f;ae(f)||(f=Fh(f)),f||(this.logger.warn(`missed to resolve ${c[1]} for nesting ${l}`),f=""),d&&(f=g.reduce((y,S)=>this.format(y,S,r.lng,{...r,interpolationkey:c[1].trim()}),f.trim())),l=l.replace(c[0],f),this.regexp.lastIndex=0}return l}}const sv=i=>{let l=i.toLowerCase().trim();const s={};if(i.indexOf("(")>-1){const r=i.split("(");l=r[0].toLowerCase().trim();const c=r[1].substring(0,r[1].length-1);l==="currency"&&c.indexOf(":")<0?s.currency||(s.currency=c.trim()):l==="relativetime"&&c.indexOf(":")<0?s.range||(s.range=c.trim()):c.split(";").forEach(p=>{if(p){const[h,...g]=p.split(":"),d=g.join(":").trim().replace(/^'+|'+$/g,""),y=h.trim();s[y]||(s[y]=d),d==="false"&&(s[y]=!1),d==="true"&&(s[y]=!0),isNaN(d)||(s[y]=parseInt(d,10))}})}return{formatName:l,formatOptions:s}},sp=i=>{const l={};return(s,r,c)=>{let f=c;c&&c.interpolationkey&&c.formatParams&&c.formatParams[c.interpolationkey]&&c[c.interpolationkey]&&(f={...f,[c.interpolationkey]:void 0});const p=r+JSON.stringify(f);let h=l[p];return h||(h=i(li(r),c),l[p]=h),h(s)}},rv=i=>(l,s,r)=>i(li(s),r)(l);class ov{constructor(l={}){this.logger=Qt.create("formatter"),this.options=l,this.init(l)}init(l,s={interpolation:{}}){this.formatSeparator=s.interpolation.formatSeparator||",";const r=s.cacheInBuiltFormats?sp:rv;this.formats={number:r((c,f)=>{const p=new Intl.NumberFormat(c,{...f});return h=>p.format(h)}),currency:r((c,f)=>{const p=new Intl.NumberFormat(c,{...f,style:"currency"});return h=>p.format(h)}),datetime:r((c,f)=>{const p=new Intl.DateTimeFormat(c,{...f});return h=>p.format(h)}),relativetime:r((c,f)=>{const p=new Intl.RelativeTimeFormat(c,{...f});return h=>p.format(h,f.range||"day")}),list:r((c,f)=>{const p=new Intl.ListFormat(c,{...f});return h=>p.format(h)})}}add(l,s){this.formats[l.toLowerCase().trim()]=s}addCached(l,s){this.formats[l.toLowerCase().trim()]=sp(s)}format(l,s,r,c={}){const f=s.split(this.formatSeparator);if(f.length>1&&f[0].indexOf("(")>1&&f[0].indexOf(")")<0&&f.find(h=>h.indexOf(")")>-1)){const h=f.findIndex(g=>g.indexOf(")")>-1);f[0]=[f[0],...f.splice(1,h)].join(this.formatSeparator)}return f.reduce((h,g)=>{var S;const{formatName:d,formatOptions:y}=sv(g);if(this.formats[d]){let b=h;try{const _=((S=c==null?void 0:c.formatParams)==null?void 0:S[c.interpolationkey])||{},T=_.locale||_.lng||c.locale||c.lng||r;b=this.formats[d](h,T,{...y,...c,..._})}catch(_){this.logger.warn(_)}return b}else this.logger.warn(`there was no format function for ${d}`);return h},l)}}const cv=(i,l)=>{i.pending[l]!==void 0&&(delete i.pending[l],i.pendingCount--)};class fv extends Vu{constructor(l,s,r,c={}){var f,p;super(),this.backend=l,this.store=s,this.services=r,this.languageUtils=r.languageUtils,this.options=c,this.logger=Qt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=c.maxParallelReads||10,this.readingCalls=0,this.maxRetries=c.maxRetries>=0?c.maxRetries:5,this.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,this.state={},this.queue=[],(p=(f=this.backend)==null?void 0:f.init)==null||p.call(f,r,c.backend,c)}queueLoad(l,s,r,c){const f={},p={},h={},g={};return l.forEach(d=>{let y=!0;s.forEach(S=>{const b=`${d}|${S}`;!r.reload&&this.store.hasResourceBundle(d,S)?this.state[b]=2:this.state[b]<0||(this.state[b]===1?p[b]===void 0&&(p[b]=!0):(this.state[b]=1,y=!1,p[b]===void 0&&(p[b]=!0),f[b]===void 0&&(f[b]=!0),g[S]===void 0&&(g[S]=!0)))}),y||(h[d]=!0)}),(Object.keys(f).length||Object.keys(p).length)&&this.queue.push({pending:p,pendingCount:Object.keys(p).length,loaded:{},errors:[],callback:c}),{toLoad:Object.keys(f),pending:Object.keys(p),toLoadLanguages:Object.keys(h),toLoadNamespaces:Object.keys(g)}}loaded(l,s,r){const c=l.split("|"),f=c[0],p=c[1];s&&this.emit("failedLoading",f,p,s),!s&&r&&this.store.addResourceBundle(f,p,r,void 0,void 0,{skipCopy:!0}),this.state[l]=s?-1:2,s&&r&&(this.state[l]=0);const h={};this.queue.forEach(g=>{Fy(g.loaded,[f],p),cv(g,l),s&&g.errors.push(s),g.pendingCount===0&&!g.done&&(Object.keys(g.loaded).forEach(d=>{h[d]||(h[d]={});const y=g.loaded[d];y.length&&y.forEach(S=>{h[d][S]===void 0&&(h[d][S]=!0)})}),g.done=!0,g.errors.length?g.callback(g.errors):g.callback())}),this.emit("loaded",h),this.queue=this.queue.filter(g=>!g.done)}read(l,s,r,c=0,f=this.retryTimeout,p){if(!l.length)return p(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:l,ns:s,fcName:r,tried:c,wait:f,callback:p});return}this.readingCalls++;const h=(d,y)=>{if(this.readingCalls--,this.waitingReads.length>0){const S=this.waitingReads.shift();this.read(S.lng,S.ns,S.fcName,S.tried,S.wait,S.callback)}if(d&&y&&c<this.maxRetries){setTimeout(()=>{this.read.call(this,l,s,r,c+1,f*2,p)},f);return}p(d,y)},g=this.backend[r].bind(this.backend);if(g.length===2){try{const d=g(l,s);d&&typeof d.then=="function"?d.then(y=>h(null,y)).catch(h):h(null,d)}catch(d){h(d)}return}return g(l,s,h)}prepareLoading(l,s,r={},c){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),c&&c();ae(l)&&(l=this.languageUtils.toResolveHierarchy(l)),ae(s)&&(s=[s]);const f=this.queueLoad(l,s,r,c);if(!f.toLoad.length)return f.pending.length||c(),null;f.toLoad.forEach(p=>{this.loadOne(p)})}load(l,s,r){this.prepareLoading(l,s,{},r)}reload(l,s,r){this.prepareLoading(l,s,{reload:!0},r)}loadOne(l,s=""){const r=l.split("|"),c=r[0],f=r[1];this.read(c,f,"read",void 0,void 0,(p,h)=>{p&&this.logger.warn(`${s}loading namespace ${f} for language ${c} failed`,p),!p&&h&&this.logger.log(`${s}loaded namespace ${f} for language ${c}`,h),this.loaded(l,p,h)})}saveMissing(l,s,r,c,f,p={},h=()=>{}){var g,d,y,S,b;if((d=(g=this.services)==null?void 0:g.utils)!=null&&d.hasLoadedNamespace&&!((S=(y=this.services)==null?void 0:y.utils)!=null&&S.hasLoadedNamespace(s))){this.logger.warn(`did not save key "${r}" as the namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((b=this.backend)!=null&&b.create){const _={...p,isUpdate:f},T=this.backend.create.bind(this.backend);if(T.length<6)try{let M;T.length===5?M=T(l,s,r,c,_):M=T(l,s,r,c),M&&typeof M.then=="function"?M.then(G=>h(null,G)).catch(h):h(null,M)}catch(M){h(M)}else T(l,s,r,c,h,_)}!l||!l[0]||this.store.addResource(l[0],s,r,c)}}}const rp=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:i=>{let l={};if(typeof i[1]=="object"&&(l=i[1]),ae(i[1])&&(l.defaultValue=i[1]),ae(i[2])&&(l.tDescription=i[2]),typeof i[2]=="object"||typeof i[3]=="object"){const s=i[3]||i[2];Object.keys(s).forEach(r=>{l[r]=s[r]})}return l},interpolation:{escapeValue:!0,format:i=>i,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),op=i=>{var l,s;return ae(i.ns)&&(i.ns=[i.ns]),ae(i.fallbackLng)&&(i.fallbackLng=[i.fallbackLng]),ae(i.fallbackNS)&&(i.fallbackNS=[i.fallbackNS]),((s=(l=i.supportedLngs)==null?void 0:l.indexOf)==null?void 0:s.call(l,"cimode"))<0&&(i.supportedLngs=i.supportedLngs.concat(["cimode"])),typeof i.initImmediate=="boolean"&&(i.initAsync=i.initImmediate),i},Au=()=>{},dv=i=>{Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach(s=>{typeof i[s]=="function"&&(i[s]=i[s].bind(i))})};class ii extends Vu{constructor(l={},s){if(super(),this.options=op(l),this.services={},this.logger=Qt,this.modules={external:[]},dv(this),s&&!this.isInitialized&&!l.isClone){if(!this.options.initAsync)return this.init(l,s),this;setTimeout(()=>{this.init(l,s)},0)}}init(l={},s){this.isInitializing=!0,typeof l=="function"&&(s=l,l={}),l.defaultNS==null&&l.ns&&(ae(l.ns)?l.defaultNS=l.ns:l.ns.indexOf("translation")<0&&(l.defaultNS=l.ns[0]));const r=rp();this.options={...r,...this.options,...op(l)},this.options.interpolation={...r.interpolation,...this.options.interpolation},l.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=l.keySeparator),l.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=l.nsSeparator);const c=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?Qt.init(c(this.modules.logger),this.options):Qt.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=ov;const y=new ap(this.options);this.store=new ep(this.options.resources,this.options);const S=this.services;S.logger=Qt,S.resourceStore=this.store,S.languageUtils=y,S.pluralResolver=new iv(y,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(S.formatter=c(d),S.formatter.init(S,this.options),this.options.interpolation.format=S.formatter.format.bind(S.formatter)),S.interpolator=new uv(this.options),S.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},S.backendConnector=new fv(c(this.modules.backend),S.resourceStore,S,this.options),S.backendConnector.on("*",(b,..._)=>{this.emit(b,..._)}),this.modules.languageDetector&&(S.languageDetector=c(this.modules.languageDetector),S.languageDetector.init&&S.languageDetector.init(S,this.options.detection,this.options)),this.modules.i18nFormat&&(S.i18nFormat=c(this.modules.i18nFormat),S.i18nFormat.init&&S.i18nFormat.init(this)),this.translator=new Hu(this.services,this.options),this.translator.on("*",(b,..._)=>{this.emit(b,..._)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,s||(s=Au),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=(...y)=>this.store[d](...y)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=(...y)=>(this.store[d](...y),this)});const h=Fl(),g=()=>{const d=(y,S)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),h.resolve(S),s(y,S)};if(this.languages&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?g():setTimeout(g,0),h}loadResources(l,s=Au){var f,p;let r=s;const c=ae(l)?l:this.language;if(typeof l=="function"&&(r=l),!this.options.resources||this.options.partialBundledLanguages){if((c==null?void 0:c.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const h=[],g=d=>{if(!d||d==="cimode")return;this.services.languageUtils.toResolveHierarchy(d).forEach(S=>{S!=="cimode"&&h.indexOf(S)<0&&h.push(S)})};c?g(c):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(y=>g(y)),(p=(f=this.options.preload)==null?void 0:f.forEach)==null||p.call(f,d=>g(d)),this.services.backendConnector.load(h,this.options.ns,d=>{!d&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(d)})}else r(null)}reloadResources(l,s,r){const c=Fl();return typeof l=="function"&&(r=l,l=void 0),typeof s=="function"&&(r=s,s=void 0),l||(l=this.languages),s||(s=this.options.ns),r||(r=Au),this.services.backendConnector.reload(l,s,f=>{c.resolve(),r(f)}),c}use(l){if(!l)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!l.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return l.type==="backend"&&(this.modules.backend=l),(l.type==="logger"||l.log&&l.warn&&l.error)&&(this.modules.logger=l),l.type==="languageDetector"&&(this.modules.languageDetector=l),l.type==="i18nFormat"&&(this.modules.i18nFormat=l),l.type==="postProcessor"&&Bp.addPostProcessor(l),l.type==="formatter"&&(this.modules.formatter=l),l.type==="3rdParty"&&this.modules.external.push(l),this}setResolvedLanguage(l){if(!(!l||!this.languages)&&!(["cimode","dev"].indexOf(l)>-1)){for(let s=0;s<this.languages.length;s++){const r=this.languages[s];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(l)<0&&this.store.hasLanguageSomeTranslations(l)&&(this.resolvedLanguage=l,this.languages.unshift(l))}}changeLanguage(l,s){this.isLanguageChangingTo=l;const r=Fl();this.emit("languageChanging",l);const c=h=>{this.language=h,this.languages=this.services.languageUtils.toResolveHierarchy(h),this.resolvedLanguage=void 0,this.setResolvedLanguage(h)},f=(h,g)=>{g?this.isLanguageChangingTo===l&&(c(g),this.translator.changeLanguage(g),this.isLanguageChangingTo=void 0,this.emit("languageChanged",g),this.logger.log("languageChanged",g)):this.isLanguageChangingTo=void 0,r.resolve((...d)=>this.t(...d)),s&&s(h,(...d)=>this.t(...d))},p=h=>{var y,S;!l&&!h&&this.services.languageDetector&&(h=[]);const g=ae(h)?h:h&&h[0],d=this.store.hasLanguageSomeTranslations(g)?g:this.services.languageUtils.getBestMatchFromCodes(ae(h)?[h]:h);d&&(this.language||c(d),this.translator.language||this.translator.changeLanguage(d),(S=(y=this.services.languageDetector)==null?void 0:y.cacheUserLanguage)==null||S.call(y,d)),this.loadResources(d,b=>{f(b,d)})};return!l&&this.services.languageDetector&&!this.services.languageDetector.async?p(this.services.languageDetector.detect()):!l&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(p):this.services.languageDetector.detect(p):p(l),r}getFixedT(l,s,r){const c=(f,p,...h)=>{let g;typeof p!="object"?g=this.options.overloadTranslationOptionHandler([f,p].concat(h)):g={...p},g.lng=g.lng||c.lng,g.lngs=g.lngs||c.lngs,g.ns=g.ns||c.ns,g.keyPrefix!==""&&(g.keyPrefix=g.keyPrefix||r||c.keyPrefix);const d=this.options.keySeparator||".";let y;return g.keyPrefix&&Array.isArray(f)?y=f.map(S=>`${g.keyPrefix}${d}${S}`):y=g.keyPrefix?`${g.keyPrefix}${d}${f}`:f,this.t(y,g)};return ae(l)?c.lng=l:c.lngs=l,c.ns=s,c.keyPrefix=r,c}t(...l){var s;return(s=this.translator)==null?void 0:s.translate(...l)}exists(...l){var s;return(s=this.translator)==null?void 0:s.exists(...l)}setDefaultNamespace(l){this.options.defaultNS=l}hasLoadedNamespace(l,s={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=s.lng||this.resolvedLanguage||this.languages[0],c=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const p=(h,g)=>{const d=this.services.backendConnector.state[`${h}|${g}`];return d===-1||d===0||d===2};if(s.precheck){const h=s.precheck(this,p);if(h!==void 0)return h}return!!(this.hasResourceBundle(r,l)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||p(r,l)&&(!c||p(f,l)))}loadNamespaces(l,s){const r=Fl();return this.options.ns?(ae(l)&&(l=[l]),l.forEach(c=>{this.options.ns.indexOf(c)<0&&this.options.ns.push(c)}),this.loadResources(c=>{r.resolve(),s&&s(c)}),r):(s&&s(),Promise.resolve())}loadLanguages(l,s){const r=Fl();ae(l)&&(l=[l]);const c=this.options.preload||[],f=l.filter(p=>c.indexOf(p)<0&&this.services.languageUtils.isSupportedCode(p));return f.length?(this.options.preload=c.concat(f),this.loadResources(p=>{r.resolve(),s&&s(p)}),r):(s&&s(),Promise.resolve())}dir(l){var c,f;if(l||(l=this.resolvedLanguage||(((c=this.languages)==null?void 0:c.length)>0?this.languages[0]:this.language)),!l)return"rtl";const s=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((f=this.services)==null?void 0:f.languageUtils)||new ap(rp());return s.indexOf(r.getLanguagePartFromCode(l))>-1||l.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(l={},s){return new ii(l,s)}cloneInstance(l={},s=Au){const r=l.forkResourceStore;r&&delete l.forkResourceStore;const c={...this.options,...l,isClone:!0},f=new ii(c);if((l.debug!==void 0||l.prefix!==void 0)&&(f.logger=f.logger.clone(l)),["store","services","language"].forEach(h=>{f[h]=this[h]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},r){const h=Object.keys(this.store.data).reduce((g,d)=>(g[d]={...this.store.data[d]},g[d]=Object.keys(g[d]).reduce((y,S)=>(y[S]={...g[d][S]},y),g[d]),g),{});f.store=new ep(h,c),f.services.resourceStore=f.store}return f.translator=new Hu(f.services,c),f.translator.on("*",(h,...g)=>{f.emit(h,...g)}),f.init(c,s),f.translator.options=c,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const nt=ii.createInstance();nt.createInstance=ii.createInstance;nt.createInstance;nt.dir;nt.init;nt.loadResources;nt.reloadResources;nt.use;nt.changeLanguage;nt.getFixedT;nt.t;nt.exists;nt.setDefaultNamespace;nt.hasLoadedNamespace;nt.loadNamespaces;nt.loadLanguages;var po={exports:{}},se={};/**
9
+ */var yp;function k0(){if(yp)return ii;yp=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(s,o,f){var p=null;if(f!==void 0&&(p=""+f),o.key!==void 0&&(p=""+o.key),"key"in o){f={};for(var h in o)h!=="key"&&(f[h]=o[h])}else f=o;return o=f.ref,{$$typeof:i,type:s,key:p,ref:o!==void 0?o:null,props:f}}return ii.Fragment=n,ii.jsx=r,ii.jsxs=r,ii}var bp;function L0(){return bp||(bp=1,Ro.exports=k0()),Ro.exports}var b=L0();const ie=i=>typeof i=="string",ri=()=>{let i,n;const r=new Promise((s,o)=>{i=s,n=o});return r.resolve=i,r.reject=n,r},Sp=i=>i==null?"":""+i,z0=(i,n,r)=>{i.forEach(s=>{n[s]&&(r[s]=n[s])})},D0=/###/g,xp=i=>i&&i.indexOf("###")>-1?i.replace(D0,"."):i,Np=i=>!i||ie(i),di=(i,n,r)=>{const s=ie(n)?n.split("."):n;let o=0;for(;o<s.length-1;){if(Np(i))return{};const f=xp(s[o]);!i[f]&&r&&(i[f]=new r),Object.prototype.hasOwnProperty.call(i,f)?i=i[f]:i={},++o}return Np(i)?{}:{obj:i,k:xp(s[o])}},Ep=(i,n,r)=>{const{obj:s,k:o}=di(i,n,Object);if(s!==void 0||n.length===1){s[o]=r;return}let f=n[n.length-1],p=n.slice(0,n.length-1),h=di(i,p,Object);for(;h.obj===void 0&&p.length;)f=`${p[p.length-1]}.${f}`,p=p.slice(0,p.length-1),h=di(i,p,Object),h!=null&&h.obj&&typeof h.obj[`${h.k}.${f}`]<"u"&&(h.obj=void 0);h.obj[`${h.k}.${f}`]=r},_0=(i,n,r,s)=>{const{obj:o,k:f}=di(i,n,Object);o[f]=o[f]||[],o[f].push(r)},Xr=(i,n)=>{const{obj:r,k:s}=di(i,n);if(r&&Object.prototype.hasOwnProperty.call(r,s))return r[s]},M0=(i,n,r)=>{const s=Xr(i,r);return s!==void 0?s:Xr(n,r)},sm=(i,n,r)=>{for(const s in n)s!=="__proto__"&&s!=="constructor"&&(s in i?ie(i[s])||i[s]instanceof String||ie(n[s])||n[s]instanceof String?r&&(i[s]=n[s]):sm(i[s],n[s],r):i[s]=n[s]);return i},al=i=>i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var U0={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const B0=i=>ie(i)?i.replace(/[&<>"'\/]/g,n=>U0[n]):i;class H0{constructor(n){this.capacity=n,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(n){const r=this.regExpMap.get(n);if(r!==void 0)return r;const s=new RegExp(n);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(n,s),this.regExpQueue.push(n),s}}const V0=[" ",",","?","!",";"],$0=new H0(20),q0=(i,n,r)=>{n=n||"",r=r||"";const s=V0.filter(p=>n.indexOf(p)<0&&r.indexOf(p)<0);if(s.length===0)return!0;const o=$0.getRegExp(`(${s.map(p=>p==="?"?"\\?":p).join("|")})`);let f=!o.test(i);if(!f){const p=i.indexOf(r);p>0&&!o.test(i.substring(0,p))&&(f=!0)}return f},Uo=(i,n,r=".")=>{if(!i)return;if(i[n])return Object.prototype.hasOwnProperty.call(i,n)?i[n]:void 0;const s=n.split(r);let o=i;for(let f=0;f<s.length;){if(!o||typeof o!="object")return;let p,h="";for(let m=f;m<s.length;++m)if(m!==f&&(h+=r),h+=s[m],p=o[h],p!==void 0){if(["string","number","boolean"].indexOf(typeof p)>-1&&m<s.length-1)continue;f+=m-f+1;break}o=p}return o},pi=i=>i==null?void 0:i.replace("_","-"),G0={type:"logger",log(i){this.output("log",i)},warn(i){this.output("warn",i)},error(i){this.output("error",i)},output(i,n){var r,s;(s=(r=console==null?void 0:console[i])==null?void 0:r.apply)==null||s.call(r,console,n)}};class Jr{constructor(n,r={}){this.init(n,r)}init(n,r={}){this.prefix=r.prefix||"i18next:",this.logger=n||G0,this.options=r,this.debug=r.debug}log(...n){return this.forward(n,"log","",!0)}warn(...n){return this.forward(n,"warn","",!0)}error(...n){return this.forward(n,"error","")}deprecate(...n){return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(n,r,s,o){return o&&!this.debug?null:(ie(n[0])&&(n[0]=`${s}${this.prefix} ${n[0]}`),this.logger[r](n))}create(n){return new Jr(this.logger,{prefix:`${this.prefix}:${n}:`,...this.options})}clone(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new Jr(this.logger,n)}}var Wt=new Jr;class ts{constructor(){this.observers={}}on(n,r){return n.split(" ").forEach(s=>{this.observers[s]||(this.observers[s]=new Map);const o=this.observers[s].get(r)||0;this.observers[s].set(r,o+1)}),this}off(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n].delete(r)}}emit(n,...r){this.observers[n]&&Array.from(this.observers[n].entries()).forEach(([o,f])=>{for(let p=0;p<f;p++)o(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,f])=>{for(let p=0;p<f;p++)o.apply(o,[n,...r])})}}class Rp extends ts{constructor(n,r={ns:["translation"],defaultNS:"translation"}){super(),this.data=n||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}removeNamespaces(n){const r=this.options.ns.indexOf(n);r>-1&&this.options.ns.splice(r,1)}getResource(n,r,s,o={}){var d,v;const f=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,p=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let h;n.indexOf(".")>-1?h=n.split("."):(h=[n,r],s&&(Array.isArray(s)?h.push(...s):ie(s)&&f?h.push(...s.split(f)):h.push(s)));const m=Xr(this.data,h);return!m&&!r&&!s&&n.indexOf(".")>-1&&(n=h[0],r=h[1],s=h.slice(2).join(".")),m||!p||!ie(s)?m:Uo((v=(d=this.data)==null?void 0:d[n])==null?void 0:v[r],s,f)}addResource(n,r,s,o,f={silent:!1}){const p=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let h=[n,r];s&&(h=h.concat(p?s.split(p):s)),n.indexOf(".")>-1&&(h=n.split("."),o=r,r=h[1]),this.addNamespaces(r),Ep(this.data,h,o),f.silent||this.emit("added",n,r,s,o)}addResources(n,r,s,o={silent:!1}){for(const f in s)(ie(s[f])||Array.isArray(s[f]))&&this.addResource(n,r,f,s[f],{silent:!0});o.silent||this.emit("added",n,r,s)}addResourceBundle(n,r,s,o,f,p={silent:!1,skipCopy:!1}){let h=[n,r];n.indexOf(".")>-1&&(h=n.split("."),o=s,s=r,r=h[1]),this.addNamespaces(r);let m=Xr(this.data,h)||{};p.skipCopy||(s=JSON.parse(JSON.stringify(s))),o?sm(m,s,f):m={...m,...s},Ep(this.data,h,m),p.silent||this.emit("added",n,r,s)}removeResourceBundle(n,r){this.hasResourceBundle(n,r)&&delete this.data[n][r],this.removeNamespaces(r),this.emit("removed",n,r)}hasResourceBundle(n,r){return this.getResource(n,r)!==void 0}getResourceBundle(n,r){return r||(r=this.options.defaultNS),this.getResource(n,r)}getDataByLanguage(n){return this.data[n]}hasLanguageSomeTranslations(n){const r=this.getDataByLanguage(n);return!!(r&&Object.keys(r)||[]).find(o=>r[o]&&Object.keys(r[o]).length>0)}toJSON(){return this.data}}var um={processors:{},addPostProcessor(i){this.processors[i.name]=i},handle(i,n,r,s,o){return i.forEach(f=>{var p;n=((p=this.processors[f])==null?void 0:p.process(n,r,s,o))??n}),n}};const Tp={},wp=i=>!ie(i)&&typeof i!="boolean"&&typeof i!="number";class Fr extends ts{constructor(n,r={}){super(),z0(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Wt.create("translator")}changeLanguage(n){n&&(this.language=n)}exists(n,r={interpolation:{}}){const s={...r};if(n==null)return!1;const o=this.resolve(n,s);return(o==null?void 0:o.res)!==void 0}extractFromKey(n,r){let s=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let f=r.ns||this.options.defaultNS||[];const p=s&&n.indexOf(s)>-1,h=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!q0(n,s,o);if(p&&!h){const m=n.match(this.interpolator.nestingRegexp);if(m&&m.length>0)return{key:n,namespaces:ie(f)?[f]:f};const d=n.split(s);(s!==o||s===o&&this.options.ns.indexOf(d[0])>-1)&&(f=d.shift()),n=d.join(o)}return{key:n,namespaces:ie(f)?[f]:f}}translate(n,r,s){let o=typeof r=="object"?{...r}:r;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof options=="object"&&(o={...o}),o||(o={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);const f=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,p=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:h,namespaces:m}=this.extractFromKey(n[n.length-1],o),d=m[m.length-1];let v=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;v===void 0&&(v=":");const x=o.lng||this.language,S=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((x==null?void 0:x.toLowerCase())==="cimode")return S?f?{res:`${d}${v}${h}`,usedKey:h,exactUsedKey:h,usedLng:x,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:`${d}${v}${h}`:f?{res:h,usedKey:h,exactUsedKey:h,usedLng:x,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:h;const C=this.resolve(n,o);let E=C==null?void 0:C.res;const z=(C==null?void 0:C.usedKey)||h,B=(C==null?void 0:C.exactUsedKey)||h,U=["[object Number]","[object Function]","[object RegExp]"],D=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,G=!this.i18nFormat||this.i18nFormat.handleAsObject,J=o.count!==void 0&&!ie(o.count),K=Fr.hasDefaultValue(o),ue=J?this.pluralResolver.getSuffix(x,o.count,o):"",re=o.ordinal&&J?this.pluralResolver.getSuffix(x,o.count,{ordinal:!1}):"",ee=J&&!o.ordinal&&o.count===0,F=ee&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${ue}`]||o[`defaultValue${re}`]||o.defaultValue;let ne=E;G&&!E&&K&&(ne=F);const pe=wp(ne),Ke=Object.prototype.toString.apply(ne);if(G&&ne&&pe&&U.indexOf(Ke)<0&&!(ie(D)&&Array.isArray(ne))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const Xe=this.options.returnedObjectHandler?this.options.returnedObjectHandler(z,ne,{...o,ns:m}):`key '${h} (${this.language})' returned an object instead of string.`;return f?(C.res=Xe,C.usedParams=this.getUsedParamsDetails(o),C):Xe}if(p){const Xe=Array.isArray(ne),Ge=Xe?[]:{},Ye=Xe?B:z;for(const _ in ne)if(Object.prototype.hasOwnProperty.call(ne,_)){const Y=`${Ye}${p}${_}`;K&&!E?Ge[_]=this.translate(Y,{...o,defaultValue:wp(F)?F[_]:void 0,joinArrays:!1,ns:m}):Ge[_]=this.translate(Y,{...o,joinArrays:!1,ns:m}),Ge[_]===Y&&(Ge[_]=ne[_])}E=Ge}}else if(G&&ie(D)&&Array.isArray(E))E=E.join(D),E&&(E=this.extendTranslation(E,n,o,s));else{let Xe=!1,Ge=!1;!this.isValidLookup(E)&&K&&(Xe=!0,E=F),this.isValidLookup(E)||(Ge=!0,E=h);const _=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Ge?void 0:E,Y=K&&F!==E&&this.options.updateMissing;if(Ge||Xe||Y){if(this.logger.log(Y?"updateKey":"missingKey",x,d,h,Y?F:E),p){const $=this.resolve(h,{...o,keySeparator:!1});$&&$.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let W=[];const ye=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ye&&ye[0])for(let $=0;$<ye.length;$++)W.push(ye[$]);else this.options.saveMissingTo==="all"?W=this.languageUtils.toResolveHierarchy(o.lng||this.language):W.push(o.lng||this.language);const R=($,Z,Q)=>{var me;const I=K&&Q!==E?Q:_;this.options.missingKeyHandler?this.options.missingKeyHandler($,d,Z,I,Y,o):(me=this.backendConnector)!=null&&me.saveMissing&&this.backendConnector.saveMissing($,d,Z,I,Y,o),this.emit("missingKey",$,d,Z,E)};this.options.saveMissing&&(this.options.saveMissingPlurals&&J?W.forEach($=>{const Z=this.pluralResolver.getSuffixes($,o);ee&&o[`defaultValue${this.options.pluralSeparator}zero`]&&Z.indexOf(`${this.options.pluralSeparator}zero`)<0&&Z.push(`${this.options.pluralSeparator}zero`),Z.forEach(Q=>{R([$],h+Q,o[`defaultValue${Q}`]||F)})}):R(W,h,F))}E=this.extendTranslation(E,n,o,C,s),Ge&&E===h&&this.options.appendNamespaceToMissingKey&&(E=`${d}${v}${h}`),(Ge||Xe)&&this.options.parseMissingKeyHandler&&(E=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}${v}${h}`:h,Xe?E:void 0,o))}return f?(C.res=E,C.usedParams=this.getUsedParamsDetails(o),C):E}extendTranslation(n,r,s,o,f){var m,d;if((m=this.i18nFormat)!=null&&m.parse)n=this.i18nFormat.parse(n,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const v=ie(n)&&(((d=s==null?void 0:s.interpolation)==null?void 0:d.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let x;if(v){const C=n.match(this.interpolator.nestingRegexp);x=C&&C.length}let S=s.replace&&!ie(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(S={...this.options.interpolation.defaultVariables,...S}),n=this.interpolator.interpolate(n,S,s.lng||this.language||o.usedLng,s),v){const C=n.match(this.interpolator.nestingRegexp),E=C&&C.length;x<E&&(s.nest=!1)}!s.lng&&o&&o.res&&(s.lng=this.language||o.usedLng),s.nest!==!1&&(n=this.interpolator.nest(n,(...C)=>(f==null?void 0:f[0])===C[0]&&!s.context?(this.logger.warn(`It seems you are nesting recursively key: ${C[0]} in key: ${r[0]}`),null):this.translate(...C,r),s)),s.interpolation&&this.interpolator.reset()}const p=s.postProcess||this.options.postProcess,h=ie(p)?[p]:p;return n!=null&&(h!=null&&h.length)&&s.applyPostProcessor!==!1&&(n=um.handle(h,n,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),n}resolve(n,r={}){let s,o,f,p,h;return ie(n)&&(n=[n]),n.forEach(m=>{if(this.isValidLookup(s))return;const d=this.extractFromKey(m,r),v=d.key;o=v;let x=d.namespaces;this.options.fallbackNS&&(x=x.concat(this.options.fallbackNS));const S=r.count!==void 0&&!ie(r.count),C=S&&!r.ordinal&&r.count===0,E=r.context!==void 0&&(ie(r.context)||typeof r.context=="number")&&r.context!=="",z=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);x.forEach(B=>{var U,D;this.isValidLookup(s)||(h=B,!Tp[`${z[0]}-${B}`]&&((U=this.utils)!=null&&U.hasLoadedNamespace)&&!((D=this.utils)!=null&&D.hasLoadedNamespace(h))&&(Tp[`${z[0]}-${B}`]=!0,this.logger.warn(`key "${o}" for languages "${z.join(", ")}" won't get resolved as namespace "${h}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),z.forEach(G=>{var ue;if(this.isValidLookup(s))return;p=G;const J=[v];if((ue=this.i18nFormat)!=null&&ue.addLookupKeys)this.i18nFormat.addLookupKeys(J,v,G,B,r);else{let re;S&&(re=this.pluralResolver.getSuffix(G,r.count,r));const ee=`${this.options.pluralSeparator}zero`,F=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(S&&(J.push(v+re),r.ordinal&&re.indexOf(F)===0&&J.push(v+re.replace(F,this.options.pluralSeparator)),C&&J.push(v+ee)),E){const ne=`${v}${this.options.contextSeparator}${r.context}`;J.push(ne),S&&(J.push(ne+re),r.ordinal&&re.indexOf(F)===0&&J.push(ne+re.replace(F,this.options.pluralSeparator)),C&&J.push(ne+ee))}}let K;for(;K=J.pop();)this.isValidLookup(s)||(f=K,s=this.getResource(G,B,K,r))}))})}),{res:s,usedKey:o,exactUsedKey:f,usedLng:p,usedNS:h}}isValidLookup(n){return n!==void 0&&!(!this.options.returnNull&&n===null)&&!(!this.options.returnEmptyString&&n==="")}getResource(n,r,s,o={}){var f;return(f=this.i18nFormat)!=null&&f.getResource?this.i18nFormat.getResource(n,r,s,o):this.resourceStore.getResource(n,r,s,o)}getUsedParamsDetails(n={}){const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=n.replace&&!ie(n.replace);let o=s?n.replace:n;if(s&&typeof n.count<"u"&&(o.count=n.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!s){o={...o};for(const f of r)delete o[f]}return o}static hasDefaultValue(n){const r="defaultValue";for(const s in n)if(Object.prototype.hasOwnProperty.call(n,s)&&r===s.substring(0,r.length)&&n[s]!==void 0)return!0;return!1}}class Cp{constructor(n){this.options=n,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Wt.create("languageUtils")}getScriptPartFromCode(n){if(n=pi(n),!n||n.indexOf("-")<0)return null;const r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(n){if(n=pi(n),!n||n.indexOf("-")<0)return n;const r=n.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(n){if(ie(n)&&n.indexOf("-")>-1){let r;try{r=Intl.getCanonicalLocales(n)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(this.options.lowerCaseLng?n.toLowerCase():n)}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}isSupportedCode(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}getBestMatchFromCodes(n){if(!n)return null;let r;return n.forEach(s=>{if(r)return;const o=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&n.forEach(s=>{if(r)return;const o=this.getScriptPartFromCode(s);if(this.isSupportedCode(o))return r=o;const f=this.getLanguagePartFromCode(s);if(this.isSupportedCode(f))return r=f;r=this.options.supportedLngs.find(p=>{if(p===f)return p;if(!(p.indexOf("-")<0&&f.indexOf("-")<0)&&(p.indexOf("-")>0&&f.indexOf("-")<0&&p.substring(0,p.indexOf("-"))===f||p.indexOf(f)===0&&f.length>1))return p})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),ie(n)&&(n=[n]),Array.isArray(n))return n;if(!r)return n.default||[];let s=n[r];return s||(s=n[this.getScriptPartFromCode(r)]),s||(s=n[this.formatLanguageCode(r)]),s||(s=n[this.getLanguagePartFromCode(r)]),s||(s=n.default),s||[]}toResolveHierarchy(n,r){const s=this.getFallbackCodes((r===!1?[]:r)||this.options.fallbackLng||[],n),o=[],f=p=>{p&&(this.isSupportedCode(p)?o.push(p):this.logger.warn(`rejecting language code not found in supportedLngs: ${p}`))};return ie(n)&&(n.indexOf("-")>-1||n.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(n))):ie(n)&&f(this.formatLanguageCode(n)),s.forEach(p=>{o.indexOf(p)<0&&f(this.formatLanguageCode(p))}),o}}const jp={zero:0,one:1,two:2,few:3,many:4,other:5},Ap={select:i=>i===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Y0{constructor(n,r={}){this.languageUtils=n,this.options=r,this.logger=Wt.create("pluralResolver"),this.pluralRulesCache={}}addRule(n,r){this.rules[n]=r}clearCache(){this.pluralRulesCache={}}getRule(n,r={}){const s=pi(n==="dev"?"en":n),o=r.ordinal?"ordinal":"cardinal",f=JSON.stringify({cleanedCode:s,type:o});if(f in this.pluralRulesCache)return this.pluralRulesCache[f];let p;try{p=new Intl.PluralRules(s,{type:o})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Ap;if(!n.match(/-|_/))return Ap;const m=this.languageUtils.getLanguagePartFromCode(n);p=this.getRule(m,r)}return this.pluralRulesCache[f]=p,p}needsPlural(n,r={}){let s=this.getRule(n,r);return s||(s=this.getRule("dev",r)),(s==null?void 0:s.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(n,r,s={}){return this.getSuffixes(n,s).map(o=>`${r}${o}`)}getSuffixes(n,r={}){let s=this.getRule(n,r);return s||(s=this.getRule("dev",r)),s?s.resolvedOptions().pluralCategories.sort((o,f)=>jp[o]-jp[f]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(n,r,s={}){const o=this.getRule(n,s);return o?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:(this.logger.warn(`no plural rule found for: ${n}`),this.getSuffix("dev",r,s))}}const Op=(i,n,r,s=".",o=!0)=>{let f=M0(i,n,r);return!f&&o&&ie(r)&&(f=Uo(i,r,s),f===void 0&&(f=Uo(n,r,s))),f},To=i=>i.replace(/\$/g,"$$$$");class Q0{constructor(n={}){var r;this.logger=Wt.create("interpolator"),this.options=n,this.format=((r=n==null?void 0:n.interpolation)==null?void 0:r.format)||(s=>s),this.init(n)}init(n={}){n.interpolation||(n.interpolation={escapeValue:!0});const{escape:r,escapeValue:s,useRawValueToEscape:o,prefix:f,prefixEscaped:p,suffix:h,suffixEscaped:m,formatSeparator:d,unescapeSuffix:v,unescapePrefix:x,nestingPrefix:S,nestingPrefixEscaped:C,nestingSuffix:E,nestingSuffixEscaped:z,nestingOptionsSeparator:B,maxReplaces:U,alwaysFormat:D}=n.interpolation;this.escape=r!==void 0?r:B0,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=f?al(f):p||"{{",this.suffix=h?al(h):m||"}}",this.formatSeparator=d||",",this.unescapePrefix=v?"":x||"-",this.unescapeSuffix=this.unescapePrefix?"":v||"",this.nestingPrefix=S?al(S):C||al("$t("),this.nestingSuffix=E?al(E):z||al(")"),this.nestingOptionsSeparator=B||",",this.maxReplaces=U||1e3,this.alwaysFormat=D!==void 0?D:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const n=(r,s)=>(r==null?void 0:r.source)===s?(r.lastIndex=0,r):new RegExp(s,"g");this.regexp=n(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=n(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=n(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(n,r,s,o){var C;let f,p,h;const m=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},d=E=>{if(E.indexOf(this.formatSeparator)<0){const D=Op(r,m,E,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(D,void 0,s,{...o,...r,interpolationkey:E}):D}const z=E.split(this.formatSeparator),B=z.shift().trim(),U=z.join(this.formatSeparator).trim();return this.format(Op(r,m,B,this.options.keySeparator,this.options.ignoreJSONStructure),U,s,{...o,...r,interpolationkey:B})};this.resetRegExp();const v=(o==null?void 0:o.missingInterpolationHandler)||this.options.missingInterpolationHandler,x=((C=o==null?void 0:o.interpolation)==null?void 0:C.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:E=>To(E)},{regex:this.regexp,safeValue:E=>this.escapeValue?To(this.escape(E)):To(E)}].forEach(E=>{for(h=0;f=E.regex.exec(n);){const z=f[1].trim();if(p=d(z),p===void 0)if(typeof v=="function"){const U=v(n,f,o);p=ie(U)?U:""}else if(o&&Object.prototype.hasOwnProperty.call(o,z))p="";else if(x){p=f[0];continue}else this.logger.warn(`missed to pass in variable ${z} for interpolating ${n}`),p="";else!ie(p)&&!this.useRawValueToEscape&&(p=Sp(p));const B=E.safeValue(p);if(n=n.replace(f[0],B),x?(E.regex.lastIndex+=p.length,E.regex.lastIndex-=f[0].length):E.regex.lastIndex=0,h++,h>=this.maxReplaces)break}}),n}nest(n,r,s={}){let o,f,p;const h=(m,d)=>{const v=this.nestingOptionsSeparator;if(m.indexOf(v)<0)return m;const x=m.split(new RegExp(`${v}[ ]*{`));let S=`{${x[1]}`;m=x[0],S=this.interpolate(S,p);const C=S.match(/'/g),E=S.match(/"/g);(((C==null?void 0:C.length)??0)%2===0&&!E||E.length%2!==0)&&(S=S.replace(/'/g,'"'));try{p=JSON.parse(S),d&&(p={...d,...p})}catch(z){return this.logger.warn(`failed parsing options string in nesting for key ${m}`,z),`${m}${v}${S}`}return p.defaultValue&&p.defaultValue.indexOf(this.prefix)>-1&&delete p.defaultValue,m};for(;o=this.nestingRegexp.exec(n);){let m=[];p={...s},p=p.replace&&!ie(p.replace)?p.replace:p,p.applyPostProcessor=!1,delete p.defaultValue;let d=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const v=o[1].split(this.formatSeparator).map(x=>x.trim());o[1]=v.shift(),m=v,d=!0}if(f=r(h.call(this,o[1].trim(),p),p),f&&o[0]===n&&!ie(f))return f;ie(f)||(f=Sp(f)),f||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${n}`),f=""),d&&(f=m.reduce((v,x)=>this.format(v,x,s.lng,{...s,interpolationkey:o[1].trim()}),f.trim())),n=n.replace(o[0],f),this.regexp.lastIndex=0}return n}}const Z0=i=>{let n=i.toLowerCase().trim();const r={};if(i.indexOf("(")>-1){const s=i.split("(");n=s[0].toLowerCase().trim();const o=s[1].substring(0,s[1].length-1);n==="currency"&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):n==="relativetime"&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach(p=>{if(p){const[h,...m]=p.split(":"),d=m.join(":").trim().replace(/^'+|'+$/g,""),v=h.trim();r[v]||(r[v]=d),d==="false"&&(r[v]=!1),d==="true"&&(r[v]=!0),isNaN(d)||(r[v]=parseInt(d,10))}})}return{formatName:n,formatOptions:r}},kp=i=>{const n={};return(r,s,o)=>{let f=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(f={...f,[o.interpolationkey]:void 0});const p=s+JSON.stringify(f);let h=n[p];return h||(h=i(pi(s),o),n[p]=h),h(r)}},K0=i=>(n,r,s)=>i(pi(r),s)(n);class X0{constructor(n={}){this.logger=Wt.create("formatter"),this.options=n,this.init(n)}init(n,r={interpolation:{}}){this.formatSeparator=r.interpolation.formatSeparator||",";const s=r.cacheInBuiltFormats?kp:K0;this.formats={number:s((o,f)=>{const p=new Intl.NumberFormat(o,{...f});return h=>p.format(h)}),currency:s((o,f)=>{const p=new Intl.NumberFormat(o,{...f,style:"currency"});return h=>p.format(h)}),datetime:s((o,f)=>{const p=new Intl.DateTimeFormat(o,{...f});return h=>p.format(h)}),relativetime:s((o,f)=>{const p=new Intl.RelativeTimeFormat(o,{...f});return h=>p.format(h,f.range||"day")}),list:s((o,f)=>{const p=new Intl.ListFormat(o,{...f});return h=>p.format(h)})}}add(n,r){this.formats[n.toLowerCase().trim()]=r}addCached(n,r){this.formats[n.toLowerCase().trim()]=kp(r)}format(n,r,s,o={}){const f=r.split(this.formatSeparator);if(f.length>1&&f[0].indexOf("(")>1&&f[0].indexOf(")")<0&&f.find(h=>h.indexOf(")")>-1)){const h=f.findIndex(m=>m.indexOf(")")>-1);f[0]=[f[0],...f.splice(1,h)].join(this.formatSeparator)}return f.reduce((h,m)=>{var x;const{formatName:d,formatOptions:v}=Z0(m);if(this.formats[d]){let S=h;try{const C=((x=o==null?void 0:o.formatParams)==null?void 0:x[o.interpolationkey])||{},E=C.locale||C.lng||o.locale||o.lng||s;S=this.formats[d](h,E,{...v,...o,...C})}catch(C){this.logger.warn(C)}return S}else this.logger.warn(`there was no format function for ${d}`);return h},n)}}const J0=(i,n)=>{i.pending[n]!==void 0&&(delete i.pending[n],i.pendingCount--)};class F0 extends ts{constructor(n,r,s,o={}){var f,p;super(),this.backend=n,this.store=r,this.services=s,this.languageUtils=s.languageUtils,this.options=o,this.logger=Wt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],(p=(f=this.backend)==null?void 0:f.init)==null||p.call(f,s,o.backend,o)}queueLoad(n,r,s,o){const f={},p={},h={},m={};return n.forEach(d=>{let v=!0;r.forEach(x=>{const S=`${d}|${x}`;!s.reload&&this.store.hasResourceBundle(d,x)?this.state[S]=2:this.state[S]<0||(this.state[S]===1?p[S]===void 0&&(p[S]=!0):(this.state[S]=1,v=!1,p[S]===void 0&&(p[S]=!0),f[S]===void 0&&(f[S]=!0),m[x]===void 0&&(m[x]=!0)))}),v||(h[d]=!0)}),(Object.keys(f).length||Object.keys(p).length)&&this.queue.push({pending:p,pendingCount:Object.keys(p).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(f),pending:Object.keys(p),toLoadLanguages:Object.keys(h),toLoadNamespaces:Object.keys(m)}}loaded(n,r,s){const o=n.split("|"),f=o[0],p=o[1];r&&this.emit("failedLoading",f,p,r),!r&&s&&this.store.addResourceBundle(f,p,s,void 0,void 0,{skipCopy:!0}),this.state[n]=r?-1:2,r&&s&&(this.state[n]=0);const h={};this.queue.forEach(m=>{_0(m.loaded,[f],p),J0(m,n),r&&m.errors.push(r),m.pendingCount===0&&!m.done&&(Object.keys(m.loaded).forEach(d=>{h[d]||(h[d]={});const v=m.loaded[d];v.length&&v.forEach(x=>{h[d][x]===void 0&&(h[d][x]=!0)})}),m.done=!0,m.errors.length?m.callback(m.errors):m.callback())}),this.emit("loaded",h),this.queue=this.queue.filter(m=>!m.done)}read(n,r,s,o=0,f=this.retryTimeout,p){if(!n.length)return p(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:n,ns:r,fcName:s,tried:o,wait:f,callback:p});return}this.readingCalls++;const h=(d,v)=>{if(this.readingCalls--,this.waitingReads.length>0){const x=this.waitingReads.shift();this.read(x.lng,x.ns,x.fcName,x.tried,x.wait,x.callback)}if(d&&v&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,n,r,s,o+1,f*2,p)},f);return}p(d,v)},m=this.backend[s].bind(this.backend);if(m.length===2){try{const d=m(n,r);d&&typeof d.then=="function"?d.then(v=>h(null,v)).catch(h):h(null,d)}catch(d){h(d)}return}return m(n,r,h)}prepareLoading(n,r,s={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();ie(n)&&(n=this.languageUtils.toResolveHierarchy(n)),ie(r)&&(r=[r]);const f=this.queueLoad(n,r,s,o);if(!f.toLoad.length)return f.pending.length||o(),null;f.toLoad.forEach(p=>{this.loadOne(p)})}load(n,r,s){this.prepareLoading(n,r,{},s)}reload(n,r,s){this.prepareLoading(n,r,{reload:!0},s)}loadOne(n,r=""){const s=n.split("|"),o=s[0],f=s[1];this.read(o,f,"read",void 0,void 0,(p,h)=>{p&&this.logger.warn(`${r}loading namespace ${f} for language ${o} failed`,p),!p&&h&&this.logger.log(`${r}loaded namespace ${f} for language ${o}`,h),this.loaded(n,p,h)})}saveMissing(n,r,s,o,f,p={},h=()=>{}){var m,d,v,x,S;if((d=(m=this.services)==null?void 0:m.utils)!=null&&d.hasLoadedNamespace&&!((x=(v=this.services)==null?void 0:v.utils)!=null&&x.hasLoadedNamespace(r))){this.logger.warn(`did not save key "${s}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if((S=this.backend)!=null&&S.create){const C={...p,isUpdate:f},E=this.backend.create.bind(this.backend);if(E.length<6)try{let z;E.length===5?z=E(n,r,s,o,C):z=E(n,r,s,o),z&&typeof z.then=="function"?z.then(B=>h(null,B)).catch(h):h(null,z)}catch(z){h(z)}else E(n,r,s,o,h,C)}!n||!n[0]||this.store.addResource(n[0],r,s,o)}}}const Lp=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:i=>{let n={};if(typeof i[1]=="object"&&(n=i[1]),ie(i[1])&&(n.defaultValue=i[1]),ie(i[2])&&(n.tDescription=i[2]),typeof i[2]=="object"||typeof i[3]=="object"){const r=i[3]||i[2];Object.keys(r).forEach(s=>{n[s]=r[s]})}return n},interpolation:{escapeValue:!0,format:i=>i,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),zp=i=>{var n,r;return ie(i.ns)&&(i.ns=[i.ns]),ie(i.fallbackLng)&&(i.fallbackLng=[i.fallbackLng]),ie(i.fallbackNS)&&(i.fallbackNS=[i.fallbackNS]),((r=(n=i.supportedLngs)==null?void 0:n.indexOf)==null?void 0:r.call(n,"cimode"))<0&&(i.supportedLngs=i.supportedLngs.concat(["cimode"])),typeof i.initImmediate=="boolean"&&(i.initAsync=i.initImmediate),i},Br=()=>{},P0=i=>{Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach(r=>{typeof i[r]=="function"&&(i[r]=i[r].bind(i))})};class mi extends ts{constructor(n={},r){if(super(),this.options=zp(n),this.services={},this.logger=Wt,this.modules={external:[]},P0(this),r&&!this.isInitialized&&!n.isClone){if(!this.options.initAsync)return this.init(n,r),this;setTimeout(()=>{this.init(n,r)},0)}}init(n={},r){this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),n.defaultNS==null&&n.ns&&(ie(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const s=Lp();this.options={...s,...this.options,...zp(n)},this.options.interpolation={...s.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?Wt.init(o(this.modules.logger),this.options):Wt.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=X0;const v=new Cp(this.options);this.store=new Rp(this.options.resources,this.options);const x=this.services;x.logger=Wt,x.resourceStore=this.store,x.languageUtils=v,x.pluralResolver=new Y0(v,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(x.formatter=o(d),x.formatter.init(x,this.options),this.options.interpolation.format=x.formatter.format.bind(x.formatter)),x.interpolator=new Q0(this.options),x.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},x.backendConnector=new F0(o(this.modules.backend),x.resourceStore,x,this.options),x.backendConnector.on("*",(S,...C)=>{this.emit(S,...C)}),this.modules.languageDetector&&(x.languageDetector=o(this.modules.languageDetector),x.languageDetector.init&&x.languageDetector.init(x,this.options.detection,this.options)),this.modules.i18nFormat&&(x.i18nFormat=o(this.modules.i18nFormat),x.i18nFormat.init&&x.i18nFormat.init(this)),this.translator=new Fr(this.services,this.options),this.translator.on("*",(S,...C)=>{this.emit(S,...C)}),this.modules.external.forEach(S=>{S.init&&S.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Br),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=(...v)=>this.store[d](...v)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=(...v)=>(this.store[d](...v),this)});const h=ri(),m=()=>{const d=(v,x)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),h.resolve(x),r(v,x)};if(this.languages&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?m():setTimeout(m,0),h}loadResources(n,r=Br){var f,p;let s=r;const o=ie(n)?n:this.language;if(typeof n=="function"&&(s=n),!this.options.resources||this.options.partialBundledLanguages){if((o==null?void 0:o.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const h=[],m=d=>{if(!d||d==="cimode")return;this.services.languageUtils.toResolveHierarchy(d).forEach(x=>{x!=="cimode"&&h.indexOf(x)<0&&h.push(x)})};o?m(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(v=>m(v)),(p=(f=this.options.preload)==null?void 0:f.forEach)==null||p.call(f,d=>m(d)),this.services.backendConnector.load(h,this.options.ns,d=>{!d&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(d)})}else s(null)}reloadResources(n,r,s){const o=ri();return typeof n=="function"&&(s=n,n=void 0),typeof r=="function"&&(s=r,r=void 0),n||(n=this.languages),r||(r=this.options.ns),s||(s=Br),this.services.backendConnector.reload(n,r,f=>{o.resolve(),s(f)}),o}use(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&um.addPostProcessor(n),n.type==="formatter"&&(this.modules.formatter=n),n.type==="3rdParty"&&this.modules.external.push(n),this}setResolvedLanguage(n){if(!(!n||!this.languages)&&!(["cimode","dev"].indexOf(n)>-1)){for(let r=0;r<this.languages.length;r++){const s=this.languages[r];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}!this.resolvedLanguage&&this.languages.indexOf(n)<0&&this.store.hasLanguageSomeTranslations(n)&&(this.resolvedLanguage=n,this.languages.unshift(n))}}changeLanguage(n,r){this.isLanguageChangingTo=n;const s=ri();this.emit("languageChanging",n);const o=h=>{this.language=h,this.languages=this.services.languageUtils.toResolveHierarchy(h),this.resolvedLanguage=void 0,this.setResolvedLanguage(h)},f=(h,m)=>{m?this.isLanguageChangingTo===n&&(o(m),this.translator.changeLanguage(m),this.isLanguageChangingTo=void 0,this.emit("languageChanged",m),this.logger.log("languageChanged",m)):this.isLanguageChangingTo=void 0,s.resolve((...d)=>this.t(...d)),r&&r(h,(...d)=>this.t(...d))},p=h=>{var v,x;!n&&!h&&this.services.languageDetector&&(h=[]);const m=ie(h)?h:h&&h[0],d=this.store.hasLanguageSomeTranslations(m)?m:this.services.languageUtils.getBestMatchFromCodes(ie(h)?[h]:h);d&&(this.language||o(d),this.translator.language||this.translator.changeLanguage(d),(x=(v=this.services.languageDetector)==null?void 0:v.cacheUserLanguage)==null||x.call(v,d)),this.loadResources(d,S=>{f(S,d)})};return!n&&this.services.languageDetector&&!this.services.languageDetector.async?p(this.services.languageDetector.detect()):!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(p):this.services.languageDetector.detect(p):p(n),s}getFixedT(n,r,s){const o=(f,p,...h)=>{let m;typeof p!="object"?m=this.options.overloadTranslationOptionHandler([f,p].concat(h)):m={...p},m.lng=m.lng||o.lng,m.lngs=m.lngs||o.lngs,m.ns=m.ns||o.ns,m.keyPrefix!==""&&(m.keyPrefix=m.keyPrefix||s||o.keyPrefix);const d=this.options.keySeparator||".";let v;return m.keyPrefix&&Array.isArray(f)?v=f.map(x=>`${m.keyPrefix}${d}${x}`):v=m.keyPrefix?`${m.keyPrefix}${d}${f}`:f,this.t(v,m)};return ie(n)?o.lng=n:o.lngs=n,o.ns=r,o.keyPrefix=s,o}t(...n){var r;return(r=this.translator)==null?void 0:r.translate(...n)}exists(...n){var r;return(r=this.translator)==null?void 0:r.exists(...n)}setDefaultNamespace(n){this.options.defaultNS=n}hasLoadedNamespace(n,r={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=r.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const p=(h,m)=>{const d=this.services.backendConnector.state[`${h}|${m}`];return d===-1||d===0||d===2};if(r.precheck){const h=r.precheck(this,p);if(h!==void 0)return h}return!!(this.hasResourceBundle(s,n)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||p(s,n)&&(!o||p(f,n)))}loadNamespaces(n,r){const s=ri();return this.options.ns?(ie(n)&&(n=[n]),n.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{s.resolve(),r&&r(o)}),s):(r&&r(),Promise.resolve())}loadLanguages(n,r){const s=ri();ie(n)&&(n=[n]);const o=this.options.preload||[],f=n.filter(p=>o.indexOf(p)<0&&this.services.languageUtils.isSupportedCode(p));return f.length?(this.options.preload=o.concat(f),this.loadResources(p=>{s.resolve(),r&&r(p)}),s):(r&&r(),Promise.resolve())}dir(n){var o,f;if(n||(n=this.resolvedLanguage||(((o=this.languages)==null?void 0:o.length)>0?this.languages[0]:this.language)),!n)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=((f=this.services)==null?void 0:f.languageUtils)||new Cp(Lp());return r.indexOf(s.getLanguagePartFromCode(n))>-1||n.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(n={},r){return new mi(n,r)}cloneInstance(n={},r=Br){const s=n.forkResourceStore;s&&delete n.forkResourceStore;const o={...this.options,...n,isClone:!0},f=new mi(o);if((n.debug!==void 0||n.prefix!==void 0)&&(f.logger=f.logger.clone(n)),["store","services","language"].forEach(h=>{f[h]=this[h]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},s){const h=Object.keys(this.store.data).reduce((m,d)=>(m[d]={...this.store.data[d]},m[d]=Object.keys(m[d]).reduce((v,x)=>(v[x]={...m[d][x]},v),m[d]),m),{});f.store=new Rp(h,o),f.services.resourceStore=f.store}return f.translator=new Fr(f.services,o),f.translator.on("*",(h,...m)=>{f.emit(h,...m)}),f.init(o,r),f.translator.options=o,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const at=mi.createInstance();at.createInstance=mi.createInstance;at.createInstance;at.dir;at.init;at.loadResources;at.reloadResources;at.use;at.changeLanguage;at.getFixedT;at.t;at.exists;at.setDefaultNamespace;at.hasLoadedNamespace;at.loadNamespaces;at.loadLanguages;var wo={exports:{}},oe={};/**
10
10
  * @license React
11
11
  * react.production.js
12
12
  *
@@ -14,15 +14,17 @@ var Vy=Object.defineProperty;var Qy=(i,l,s)=>l in i?Vy(i,l,{enumerable:!0,config
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var cp;function hv(){if(cp)return se;cp=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),p=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),S=Symbol.iterator;function b(R){return R===null||typeof R!="object"?null:(R=S&&R[S]||R["@@iterator"],typeof R=="function"?R:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,M={};function G(R,U,V){this.props=R,this.context=U,this.refs=M,this.updater=V||_}G.prototype.isReactComponent={},G.prototype.setState=function(R,U){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,U,"setState")},G.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function B(){}B.prototype=G.prototype;function q(R,U,V){this.props=R,this.context=U,this.refs=M,this.updater=V||_}var X=q.prototype=new B;X.constructor=q,T(X,G.prototype),X.isPureReactComponent=!0;var F=Array.isArray,Z={H:null,A:null,T:null,S:null,V:null},de=Object.prototype.hasOwnProperty;function le(R,U,V,Y,P,pe){return V=pe.ref,{$$typeof:i,type:R,key:U,ref:V!==void 0?V:null,props:pe}}function ie(R,U){return le(R.type,U,void 0,void 0,void 0,R.props)}function Q(R){return typeof R=="object"&&R!==null&&R.$$typeof===i}function ee(R){var U={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(V){return U[V]})}var he=/\/+/g;function De(R,U){return typeof R=="object"&&R!==null&&R.key!=null?ee(""+R.key):U.toString(36)}function Ue(){}function Ce(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(Ue,Ue):(R.status="pending",R.then(function(U){R.status==="pending"&&(R.status="fulfilled",R.value=U)},function(U){R.status==="pending"&&(R.status="rejected",R.reason=U)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function $e(R,U,V,Y,P){var pe=typeof R;(pe==="undefined"||pe==="boolean")&&(R=null);var ue=!1;if(R===null)ue=!0;else switch(pe){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(R.$$typeof){case i:case l:ue=!0;break;case y:return ue=R._init,$e(ue(R._payload),U,V,Y,P)}}if(ue)return P=P(R),ue=Y===""?"."+De(R,0):Y,F(P)?(V="",ue!=null&&(V=ue.replace(he,"$&/")+"/"),$e(P,U,V,"",function(dn){return dn})):P!=null&&(Q(P)&&(P=ie(P,V+(P.key==null||R&&R.key===P.key?"":(""+P.key).replace(he,"$&/")+"/")+ue)),U.push(P)),1;ue=0;var dt=Y===""?".":Y+":";if(F(R))for(var ze=0;ze<R.length;ze++)Y=R[ze],pe=dt+De(Y,ze),ue+=$e(Y,U,V,pe,P);else if(ze=b(R),typeof ze=="function")for(R=ze.call(R),ze=0;!(Y=R.next()).done;)Y=Y.value,pe=dt+De(Y,ze++),ue+=$e(Y,U,V,pe,P);else if(pe==="object"){if(typeof R.then=="function")return $e(Ce(R),U,V,Y,P);throw U=String(R),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return ue}function D(R,U,V){if(R==null)return R;var Y=[],P=0;return $e(R,Y,"","",function(pe){return U.call(V,pe,P++)}),Y}function $(R){if(R._status===-1){var U=R._result;U=U(),U.then(function(V){(R._status===0||R._status===-1)&&(R._status=1,R._result=V)},function(V){(R._status===0||R._status===-1)&&(R._status=2,R._result=V)}),R._status===-1&&(R._status=0,R._result=U)}if(R._status===1)return R._result.default;throw R._result}var W=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)};function me(){}return se.Children={map:D,forEach:function(R,U,V){D(R,function(){U.apply(this,arguments)},V)},count:function(R){var U=0;return D(R,function(){U++}),U},toArray:function(R){return D(R,function(U){return U})||[]},only:function(R){if(!Q(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},se.Component=G,se.Fragment=s,se.Profiler=c,se.PureComponent=q,se.StrictMode=r,se.Suspense=g,se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,se.__COMPILER_RUNTIME={__proto__:null,c:function(R){return Z.H.useMemoCache(R)}},se.cache=function(R){return function(){return R.apply(null,arguments)}},se.cloneElement=function(R,U,V){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var Y=T({},R.props),P=R.key,pe=void 0;if(U!=null)for(ue in U.ref!==void 0&&(pe=void 0),U.key!==void 0&&(P=""+U.key),U)!de.call(U,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&U.ref===void 0||(Y[ue]=U[ue]);var ue=arguments.length-2;if(ue===1)Y.children=V;else if(1<ue){for(var dt=Array(ue),ze=0;ze<ue;ze++)dt[ze]=arguments[ze+2];Y.children=dt}return le(R.type,P,void 0,void 0,pe,Y)},se.createContext=function(R){return R={$$typeof:p,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:f,_context:R},R},se.createElement=function(R,U,V){var Y,P={},pe=null;if(U!=null)for(Y in U.key!==void 0&&(pe=""+U.key),U)de.call(U,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(P[Y]=U[Y]);var ue=arguments.length-2;if(ue===1)P.children=V;else if(1<ue){for(var dt=Array(ue),ze=0;ze<ue;ze++)dt[ze]=arguments[ze+2];P.children=dt}if(R&&R.defaultProps)for(Y in ue=R.defaultProps,ue)P[Y]===void 0&&(P[Y]=ue[Y]);return le(R,pe,void 0,void 0,null,P)},se.createRef=function(){return{current:null}},se.forwardRef=function(R){return{$$typeof:h,render:R}},se.isValidElement=Q,se.lazy=function(R){return{$$typeof:y,_payload:{_status:-1,_result:R},_init:$}},se.memo=function(R,U){return{$$typeof:d,type:R,compare:U===void 0?null:U}},se.startTransition=function(R){var U=Z.T,V={};Z.T=V;try{var Y=R(),P=Z.S;P!==null&&P(V,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(me,W)}catch(pe){W(pe)}finally{Z.T=U}},se.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},se.use=function(R){return Z.H.use(R)},se.useActionState=function(R,U,V){return Z.H.useActionState(R,U,V)},se.useCallback=function(R,U){return Z.H.useCallback(R,U)},se.useContext=function(R){return Z.H.useContext(R)},se.useDebugValue=function(){},se.useDeferredValue=function(R,U){return Z.H.useDeferredValue(R,U)},se.useEffect=function(R,U,V){var Y=Z.H;if(typeof V=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Y.useEffect(R,U)},se.useId=function(){return Z.H.useId()},se.useImperativeHandle=function(R,U,V){return Z.H.useImperativeHandle(R,U,V)},se.useInsertionEffect=function(R,U){return Z.H.useInsertionEffect(R,U)},se.useLayoutEffect=function(R,U){return Z.H.useLayoutEffect(R,U)},se.useMemo=function(R,U){return Z.H.useMemo(R,U)},se.useOptimistic=function(R,U){return Z.H.useOptimistic(R,U)},se.useReducer=function(R,U,V){return Z.H.useReducer(R,U,V)},se.useRef=function(R){return Z.H.useRef(R)},se.useState=function(R){return Z.H.useState(R)},se.useSyncExternalStore=function(R,U,V){return Z.H.useSyncExternalStore(R,U,V)},se.useTransition=function(){return Z.H.useTransition()},se.version="19.1.0",se}var fp;function Lo(){return fp||(fp=1,po.exports=hv()),po.exports}var A=Lo();const No=Up(A),pv=(i,l,s,r)=>{var f,p,h,g;const c=[s,{code:l,...r||{}}];if((p=(f=i==null?void 0:i.services)==null?void 0:f.logger)!=null&&p.forward)return i.services.logger.forward(c,"warn","react-i18next::",!0);aa(c[0])&&(c[0]=`react-i18next:: ${c[0]}`),(g=(h=i==null?void 0:i.services)==null?void 0:h.logger)!=null&&g.warn?i.services.logger.warn(...c):console!=null&&console.warn&&console.warn(...c)},dp={},Ao=(i,l,s,r)=>{aa(s)&&dp[s]||(aa(s)&&(dp[s]=new Date),pv(i,l,s,r))},qp=(i,l)=>()=>{if(i.isInitialized)l();else{const s=()=>{setTimeout(()=>{i.off("initialized",s)},0),l()};i.on("initialized",s)}},Oo=(i,l,s)=>{i.loadNamespaces(l,qp(i,s))},hp=(i,l,s,r)=>{if(aa(s)&&(s=[s]),i.options.preload&&i.options.preload.indexOf(l)>-1)return Oo(i,s,r);s.forEach(c=>{i.options.ns.indexOf(c)<0&&i.options.ns.push(c)}),i.loadLanguages(l,qp(i,r))},gv=(i,l,s={})=>!l.languages||!l.languages.length?(Ao(l,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:l.languages}),!0):l.hasLoadedNamespace(i,{lng:s.lng,precheck:(r,c)=>{var f;if(((f=s.bindI18n)==null?void 0:f.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!c(r.isLanguageChangingTo,i))return!1}}),aa=i=>typeof i=="string",mv=i=>typeof i=="object"&&i!==null,yv=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,vv={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},bv=i=>vv[i],Sv=i=>i.replace(yv,bv);let Co={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Sv};const xv=(i={})=>{Co={...Co,...i}},Ev=()=>Co;let Gp;const Tv=i=>{Gp=i},Rv=()=>Gp,wv={type:"3rdParty",init(i){xv(i.options.react),Tv(i)}},Nv=A.createContext();class Av{constructor(){this.usedNamespaces={}}addUsedNamespaces(l){l.forEach(s=>{this.usedNamespaces[s]||(this.usedNamespaces[s]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Ov=(i,l)=>{const s=A.useRef();return A.useEffect(()=>{s.current=i},[i,l]),s.current},$p=(i,l,s,r)=>i.getFixedT(l,s,r),Cv=(i,l,s,r)=>A.useCallback($p(i,l,s,r),[i,l,s,r]),ut=(i,l={})=>{var F,Z,de,le;const{i18n:s}=l,{i18n:r,defaultNS:c}=A.useContext(Nv)||{},f=s||r||Rv();if(f&&!f.reportNamespaces&&(f.reportNamespaces=new Av),!f){Ao(f,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const ie=(ee,he)=>aa(he)?he:mv(he)&&aa(he.defaultValue)?he.defaultValue:Array.isArray(ee)?ee[ee.length-1]:ee,Q=[ie,{},!1];return Q.t=ie,Q.i18n={},Q.ready=!1,Q}(F=f.options.react)!=null&&F.wait&&Ao(f,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const p={...Ev(),...f.options.react,...l},{useSuspense:h,keyPrefix:g}=p;let d=c||((Z=f.options)==null?void 0:Z.defaultNS);d=aa(d)?[d]:d||["translation"],(le=(de=f.reportNamespaces).addUsedNamespaces)==null||le.call(de,d);const y=(f.isInitialized||f.initializedStoreOnce)&&d.every(ie=>gv(ie,f,p)),S=Cv(f,l.lng||null,p.nsMode==="fallback"?d:d[0],g),b=()=>S,_=()=>$p(f,l.lng||null,p.nsMode==="fallback"?d:d[0],g),[T,M]=A.useState(b);let G=d.join();l.lng&&(G=`${l.lng}${G}`);const B=Ov(G),q=A.useRef(!0);A.useEffect(()=>{const{bindI18n:ie,bindI18nStore:Q}=p;q.current=!0,!y&&!h&&(l.lng?hp(f,l.lng,d,()=>{q.current&&M(_)}):Oo(f,d,()=>{q.current&&M(_)})),y&&B&&B!==G&&q.current&&M(_);const ee=()=>{q.current&&M(_)};return ie&&(f==null||f.on(ie,ee)),Q&&(f==null||f.store.on(Q,ee)),()=>{q.current=!1,f&&(ie==null||ie.split(" ").forEach(he=>f.off(he,ee))),Q&&f&&Q.split(" ").forEach(he=>f.store.off(he,ee))}},[f,G]),A.useEffect(()=>{q.current&&y&&M(b)},[f,g,y]);const X=[T,f,y];if(X.t=T,X.i18n=f,X.ready=y,y||!y&&!h)return X;throw new Promise(ie=>{l.lng?hp(f,l.lng,d,()=>ie()):Oo(f,d,()=>ie())})},zv="ParoiCMS Site Generator",kv="<p>Describe here the data structure of your website: what types of pages it has and in which sections. In a page type, it is also possible to describe lists of sub-parts.</p><p>Supported languages: English, French.</p>",_v="Create a website about… It will include a blog section, a list of pages, and a dedicated section about… that itself contains the following sub-sections: … The home page should contain an image carousel and a list of subparts, each containing an image and a text.",Dv="Add a new text field to the page…",Mv="Modify the Site Schema",jv="Create a Site Schema",Lv="Generate the website",Uv="Generate site with sample data (recommended)",Hv="Generate an empty site",Bv="Open the back-office",qv="Open the site",Gv="Generated Schema",$v="Tree View",Yv="Site Schema",Vv="Node Types",Qv="Labels",Xv="Select language",Zv="Explanations",Kv="Current Activity",Jv="An error occurred: {{ message }}",Fv="An error occurred",Wv="Start Again",Pv="Step",Iv="Step {{stepNumber}}: {{kind}}",e0="This step is in progress…",t0="This step failed.",n0="This step had no effect.",a0="No session data available",l0="Step not found",i0="Welcome to ParoiCMS Site Generator",u0="Close and start again",s0="Reset Schema",r0="unknown error",o0="Create New Site",c0="Generating your site…",f0="The site is generated",d0="Email:",h0="Password:",p0="I agree",g0="You are about to generate your website.",m0="Cancel",y0="Confirm",v0="Site URL:",b0="Admin URL:",S0="Copy all information to clipboard",x0="<p>Welcome to the ParoiCMS Site Generator tool. This tool helps you create a new website with just a few steps.</p><p>To get started, please verify you're human by completing the CAPTCHA below.</p>",E0="Initial Schema Creation",T0="Schema Update",R0="Site Generation",w0={initial1:"Analyzing your request for site structure…",initial2:"Choosing from predefined fields…",updating1:"Analyzing your update request…",updating2:"Updating schema structure with changes…",generatingSite:"Building your website…",generatingContent:"Creating sample content for your site…"},N0="Login Email",A0="Login Password",O0="Generated Site",C0="Your session has expired. Please refresh the page to start a new session.",z0="Failed to submit your prompt. Please try again.",k0="Failed to generate the site. Please try again.",_0='The source code of this generator is available <a href="https://gitlab.com/paroi/opensource/paroicms/-/tree/main/plugins/site-generator-plugin?ref_type=heads" target="_blank">on GitLab</a> — <a href="https://www.paroicms.org/en" target="_blank">ParoiCMS</a> — Contact me <a href="https://paroi.tech/en" target="_blank">here</a>.',D0="Extend your session",M0="Failed to refresh your session. Please try again.",j0="Error connecting to server. Please check your connection and try again.",L0="Tip: If you want to start over, open the generator in a new tab and close this one.",U0={title:zv,startInstruction:kv,createPromptPlaceholder:_v,updatePromptPlaceholder:Dv,modifySchema:Mv,createSchema:jv,generateTheWebsite:Lv,generateSiteWithData:Uv,generateEmptySite:Hv,administration:Bv,viewSite:qv,generatedSchema:Gv,treeView:$v,siteSchema:Yv,nodeTypes:Vv,labels:Qv,languageSelector:Xv,explanation:Zv,currentActivity:Kv,errorOccurred:Jv,unknownErrorOccurred:Fv,startAgain:Wv,step:Pv,stepTitle:Iv,stepPending:e0,stepFailed:t0,stepNoEffect:n0,noSessionData:a0,stepNotFound:l0,welcomeTitle:i0,reset:u0,resetSchema:s0,unknownError:r0,createNewSite:o0,generatingSite:c0,siteGenerated:f0,email:d0,password:h0,agree:p0,aboutToGenerateWebsite:g0,cancel:m0,confirm:y0,siteUrl:v0,adminUrl:b0,copyToClipboard:S0,introduction:x0,initialSchema:E0,updateSchema:T0,generateSite:R0,activity:w0,loginEmail:N0,loginPassword:A0,generatedSite:O0,sessionExpired:C0,promptSubmissionFailed:z0,generationFailed:k0,footerText:_0,extendYourSession:D0,sessionRenewalFailed:M0,errorConnectingToServer:j0,newTabRestartMessage:L0},H0="ParoiCMS - Générateur de Site",B0="<p>Décrivez ici la structure des données de votre site web : quels types de pages, dans quelles rubriques. Il est également possible de décrire des listes de sous-parties de pages.</p><p>Langages autorisés : Français, Anglais.</p>",q0="Génère un site web à propos de… Il contiendra une rubrique blog, une liste de pages, une rubrique dédiée à… contenant elle-même les sous-rubriques suivantes : … La page d'accueil doit contenir un carrousel d'images, et une liste de sous-parties contenant chacune une image et un texte.",G0="Ajoute un nouveau champ texte à la page…",$0="Modifier le schéma du site",Y0="Créer un schéma de site",V0="Générer le site web",Q0="Générer le site avec des données d'exemple (recommandé)",X0="Générer un site vide",Z0="Ouvrir l'espace d'administration du site",K0="Ouvrir le site",J0="Schéma généré",F0="Arborescence",W0="Schéma du site",P0="Types de nœuds",I0="Libellés",eb="Sélectionner la langue",tb="Explications",nb="Activité en cours",ab="Une erreur est survenue : {{ message }}",lb="Une erreur est survenue",ib="Recommencer",ub="Étape",sb="Étape {{stepNumber}} : {{kind}}",rb="Cette étape est en cours…",ob="Cette étape a échoué.",cb="Cette étape n'a eu aucun effet.",fb="Données de session non disponibles",db="Étape introuvable",hb="Bienvenue sur le générateur de site ParoiCMS",pb="Fermer et réinitialiser",gb="Réinitialiser le schéma",mb="erreur inconnue",yb="Créer un nouveau site",vb="Génération de votre site…",bb="Le site est généré",Sb="Email :",xb="Mot de passe :",Eb="J'accepte",Tb="Vous êtes sur le point de générer votre site web.",Rb="Annuler",wb="Confirmer",Nb="URL du site :",Ab="URL d'admin :",Ob="Copier toutes les informations dans le presse-papier",Cb="<p>Bienvenue sur l'outil de génération de site ParoiCMS. Cet outil vous aide à créer un nouveau site web en quelques étapes.</p><p>Pour commencer, veuillez vérifier que vous êtes humain en complétant le CAPTCHA ci-dessous.</p>",zb="Création du schéma initial",kb="Mise à jour du schéma",_b="Génération du site",Db={initial1:"Analyse de votre demande pour la structure du site…",initial2:"Choix parmi les champs prédéfinis…",updating1:"Analyse de votre demande de mise à jour…",updating2:"Mise à jour de la structure du schéma…",generatingSite:"Construction de votre site web…",generatingContent:"Création de contenu exemple pour votre site…"},Mb="Email de connexion",jb="Mot de passe",Lb="Site généré",Ub="Votre session a expiré. Veuillez rafraîchir la page pour démarrer une nouvelle session.",Hb="Échec de l'envoi de votre demande. Veuillez réessayer.",Bb="Échec de la génération du site. Veuillez réessayer.",qb='Le code source de ce générateur est disponible <a href="https://gitlab.com/paroi/opensource/paroicms/-/tree/main/plugins/site-generator-plugin?ref_type=heads" target="_blank">sur GitLab</a> — <a href="https://www.paroicms.org/fr" target="_blank">ParoiCMS</a> — Contactez-moi <a href="https://paroi.tech/fr" target="_blank">ici</a>.',Gb="Prolonger votre session",$b="Échec du renouvellement de votre session. Veuillez réessayer.",Yb="Erreur de connexion au serveur. Veuillez vérifier votre connexion et réessayer.",Vb="Astuce : si vous souhaitez repartir de zéro, ouvrez le générateur dans un nouvel onglet et fermez celui-ci.",Qb={title:H0,startInstruction:B0,createPromptPlaceholder:q0,updatePromptPlaceholder:G0,modifySchema:$0,createSchema:Y0,generateTheWebsite:V0,generateSiteWithData:Q0,generateEmptySite:X0,administration:Z0,viewSite:K0,generatedSchema:J0,treeView:F0,siteSchema:W0,nodeTypes:P0,labels:I0,languageSelector:eb,explanation:tb,currentActivity:nb,errorOccurred:ab,unknownErrorOccurred:lb,startAgain:ib,step:ub,stepTitle:sb,stepPending:rb,stepFailed:ob,stepNoEffect:cb,noSessionData:fb,stepNotFound:db,welcomeTitle:hb,reset:pb,resetSchema:gb,unknownError:mb,createNewSite:yb,generatingSite:vb,siteGenerated:bb,email:Sb,password:xb,agree:Eb,aboutToGenerateWebsite:Tb,cancel:Rb,confirm:wb,siteUrl:Nb,adminUrl:Ab,copyToClipboard:Ob,introduction:Cb,initialSchema:zb,updateSchema:kb,generateSite:_b,activity:Db,loginEmail:Mb,loginPassword:jb,generatedSite:Lb,sessionExpired:Ub,promptSubmissionFailed:Hb,generationFailed:Bb,footerText:qb,extendYourSession:Gb,sessionRenewalFailed:$b,errorConnectingToServer:Yb,newTabRestartMessage:Vb},Xb=`<p>Welcome!</p>
18
- <p>ParoiCMS is a nice CMS, its core feature is that you can define the structure of your website. This tool will help you to describe your website.</p>
19
- <p>A session identifier will follow you on the tab of your browser, it will be deleted when you close the tab. But your session data will be kept a while for debug purposes.</p>`,Zb=`<p>Bienvenue !</p>
20
- <p>ParoiCMS est un CMS agréable, sa fonctionnalité principale est que vous pouvez définir la structure de votre site web. Cet outil vous aidera à décrire votre site web.</p>
21
- <p>Un identifiant de session vous suivra dans l'onglet de votre navigateur, il sera supprimé lorsque vous fermerez l'onglet. Mais vos données de session seront conservées un moment à des fins de débogage.</p>`,Kb=`<p>Congratulations! Your website has been generated. Now you can authenticate on the back-office (using the <strong>local account</strong>) and play with it.</p>
22
- <p>Notice that it will be deleted in 48 hours. However, if you want to keep it, you can make a backup. <strong>Each backup is a zip file that contains a full Nodejs project, ready to be installed and executed in a local environment.</strong> In this platform, generated websites will be deleted in 48 hours.</p>
23
- <p>Make sure to copy the information below, as it will be lost once you close this panel.</p>`,Jb=`<p>Félicitations ! Votre site web a été généré. Vous pouvez maintenant vous authentifier sur le back-office (en utilisant le <strong>compte local</strong>) et l'explorer.</p>
24
- <p>Notez qu'il sera supprimé dans 48 heures. Cependant, si vous souhaitez le conserver, vous pouvez en faire une sauvegarde. <strong>Chaque sauvegarde est un fichier zip qui contient un projet Node.js complet, prêt à être installé et exécuté dans un environnement local.</strong> Sur cette plateforme, les sites web générés seront supprimés dans 48 heures.</p>
25
- <p>Assurez-vous de copier les informations ci-dessous, car elles seront perdues une fois que vous fermerez ce panneau.</p>`,Fb={en:{translation:{...U0,introduction:Xb,userManual:Kb}},fr:{translation:{...Qb,introduction:Zb,userManual:Jb}}};nt.use(wv).init({resources:Fb,lng:navigator.language.split("-")[0],fallbackLng:"en",interpolation:{escapeValue:!1}});var go={exports:{}},Wl={},mo={exports:{}},yo={};/**
17
+ */var Dp;function W0(){if(Dp)return oe;Dp=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),p=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.iterator;function S(R){return R===null||typeof R!="object"?null:(R=x&&R[x]||R["@@iterator"],typeof R=="function"?R:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,z={};function B(R,$,Z){this.props=R,this.context=$,this.refs=z,this.updater=Z||C}B.prototype.isReactComponent={},B.prototype.setState=function(R,$){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,$,"setState")},B.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function U(){}U.prototype=B.prototype;function D(R,$,Z){this.props=R,this.context=$,this.refs=z,this.updater=Z||C}var G=D.prototype=new U;G.constructor=D,E(G,B.prototype),G.isPureReactComponent=!0;var J=Array.isArray,K={H:null,A:null,T:null,S:null,V:null},ue=Object.prototype.hasOwnProperty;function re(R,$,Z,Q,I,me){return Z=me.ref,{$$typeof:i,type:R,key:$,ref:Z!==void 0?Z:null,props:me}}function ee(R,$){return re(R.type,$,void 0,void 0,void 0,R.props)}function F(R){return typeof R=="object"&&R!==null&&R.$$typeof===i}function ne(R){var $={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(Z){return $[Z]})}var pe=/\/+/g;function Ke(R,$){return typeof R=="object"&&R!==null&&R.key!=null?ne(""+R.key):$.toString(36)}function Xe(){}function Ge(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(Xe,Xe):(R.status="pending",R.then(function($){R.status==="pending"&&(R.status="fulfilled",R.value=$)},function($){R.status==="pending"&&(R.status="rejected",R.reason=$)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function Ye(R,$,Z,Q,I){var me=typeof R;(me==="undefined"||me==="boolean")&&(R=null);var se=!1;if(R===null)se=!0;else switch(me){case"bigint":case"string":case"number":se=!0;break;case"object":switch(R.$$typeof){case i:case n:se=!0;break;case v:return se=R._init,Ye(se(R._payload),$,Z,Q,I)}}if(se)return I=I(R),se=Q===""?"."+Ke(R,0):Q,J(I)?(Z="",se!=null&&(Z=se.replace(pe,"$&/")+"/"),Ye(I,$,Z,"",function(ya){return ya})):I!=null&&(F(I)&&(I=ee(I,Z+(I.key==null||R&&R.key===I.key?"":(""+I.key).replace(pe,"$&/")+"/")+se)),$.push(I)),1;se=0;var gt=Q===""?".":Q+":";if(J(R))for(var ze=0;ze<R.length;ze++)Q=R[ze],me=gt+Ke(Q,ze),se+=Ye(Q,$,Z,me,I);else if(ze=S(R),typeof ze=="function")for(R=ze.call(R),ze=0;!(Q=R.next()).done;)Q=Q.value,me=gt+Ke(Q,ze++),se+=Ye(Q,$,Z,me,I);else if(me==="object"){if(typeof R.then=="function")return Ye(Ge(R),$,Z,Q,I);throw $=String(R),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}return se}function _(R,$,Z){if(R==null)return R;var Q=[],I=0;return Ye(R,Q,"","",function(me){return $.call(Z,me,I++)}),Q}function Y(R){if(R._status===-1){var $=R._result;$=$(),$.then(function(Z){(R._status===0||R._status===-1)&&(R._status=1,R._result=Z)},function(Z){(R._status===0||R._status===-1)&&(R._status=2,R._result=Z)}),R._status===-1&&(R._status=0,R._result=$)}if(R._status===1)return R._result.default;throw R._result}var W=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent($))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)};function ye(){}return oe.Children={map:_,forEach:function(R,$,Z){_(R,function(){$.apply(this,arguments)},Z)},count:function(R){var $=0;return _(R,function(){$++}),$},toArray:function(R){return _(R,function($){return $})||[]},only:function(R){if(!F(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},oe.Component=B,oe.Fragment=r,oe.Profiler=o,oe.PureComponent=D,oe.StrictMode=s,oe.Suspense=m,oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,oe.__COMPILER_RUNTIME={__proto__:null,c:function(R){return K.H.useMemoCache(R)}},oe.cache=function(R){return function(){return R.apply(null,arguments)}},oe.cloneElement=function(R,$,Z){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var Q=E({},R.props),I=R.key,me=void 0;if($!=null)for(se in $.ref!==void 0&&(me=void 0),$.key!==void 0&&(I=""+$.key),$)!ue.call($,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&$.ref===void 0||(Q[se]=$[se]);var se=arguments.length-2;if(se===1)Q.children=Z;else if(1<se){for(var gt=Array(se),ze=0;ze<se;ze++)gt[ze]=arguments[ze+2];Q.children=gt}return re(R.type,I,void 0,void 0,me,Q)},oe.createContext=function(R){return R={$$typeof:p,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:f,_context:R},R},oe.createElement=function(R,$,Z){var Q,I={},me=null;if($!=null)for(Q in $.key!==void 0&&(me=""+$.key),$)ue.call($,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(I[Q]=$[Q]);var se=arguments.length-2;if(se===1)I.children=Z;else if(1<se){for(var gt=Array(se),ze=0;ze<se;ze++)gt[ze]=arguments[ze+2];I.children=gt}if(R&&R.defaultProps)for(Q in se=R.defaultProps,se)I[Q]===void 0&&(I[Q]=se[Q]);return re(R,me,void 0,void 0,null,I)},oe.createRef=function(){return{current:null}},oe.forwardRef=function(R){return{$$typeof:h,render:R}},oe.isValidElement=F,oe.lazy=function(R){return{$$typeof:v,_payload:{_status:-1,_result:R},_init:Y}},oe.memo=function(R,$){return{$$typeof:d,type:R,compare:$===void 0?null:$}},oe.startTransition=function(R){var $=K.T,Z={};K.T=Z;try{var Q=R(),I=K.S;I!==null&&I(Z,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(ye,W)}catch(me){W(me)}finally{K.T=$}},oe.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},oe.use=function(R){return K.H.use(R)},oe.useActionState=function(R,$,Z){return K.H.useActionState(R,$,Z)},oe.useCallback=function(R,$){return K.H.useCallback(R,$)},oe.useContext=function(R){return K.H.useContext(R)},oe.useDebugValue=function(){},oe.useDeferredValue=function(R,$){return K.H.useDeferredValue(R,$)},oe.useEffect=function(R,$,Z){var Q=K.H;if(typeof Z=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Q.useEffect(R,$)},oe.useId=function(){return K.H.useId()},oe.useImperativeHandle=function(R,$,Z){return K.H.useImperativeHandle(R,$,Z)},oe.useInsertionEffect=function(R,$){return K.H.useInsertionEffect(R,$)},oe.useLayoutEffect=function(R,$){return K.H.useLayoutEffect(R,$)},oe.useMemo=function(R,$){return K.H.useMemo(R,$)},oe.useOptimistic=function(R,$){return K.H.useOptimistic(R,$)},oe.useReducer=function(R,$,Z){return K.H.useReducer(R,$,Z)},oe.useRef=function(R){return K.H.useRef(R)},oe.useState=function(R){return K.H.useState(R)},oe.useSyncExternalStore=function(R,$,Z){return K.H.useSyncExternalStore(R,$,Z)},oe.useTransition=function(){return K.H.useTransition()},oe.version="19.1.0",oe}var _p;function Fo(){return _p||(_p=1,wo.exports=W0()),wo.exports}var T=Fo();const Bo=rm(T),I0=(i,n,r,s)=>{var f,p,h,m;const o=[r,{code:n,...s||{}}];if((p=(f=i==null?void 0:i.services)==null?void 0:f.logger)!=null&&p.forward)return i.services.logger.forward(o,"warn","react-i18next::",!0);fn(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),(m=(h=i==null?void 0:i.services)==null?void 0:h.logger)!=null&&m.warn?i.services.logger.warn(...o):console!=null&&console.warn&&console.warn(...o)},Mp={},Ho=(i,n,r,s)=>{fn(r)&&Mp[r]||(fn(r)&&(Mp[r]=new Date),I0(i,n,r,s))},om=(i,n)=>()=>{if(i.isInitialized)n();else{const r=()=>{setTimeout(()=>{i.off("initialized",r)},0),n()};i.on("initialized",r)}},Vo=(i,n,r)=>{i.loadNamespaces(n,om(i,r))},Up=(i,n,r,s)=>{if(fn(r)&&(r=[r]),i.options.preload&&i.options.preload.indexOf(n)>-1)return Vo(i,r,s);r.forEach(o=>{i.options.ns.indexOf(o)<0&&i.options.ns.push(o)}),i.loadLanguages(n,om(i,s))},eb=(i,n,r={})=>!n.languages||!n.languages.length?(Ho(n,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:n.languages}),!0):n.hasLoadedNamespace(i,{lng:r.lng,precheck:(s,o)=>{var f;if(((f=r.bindI18n)==null?void 0:f.indexOf("languageChanging"))>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!o(s.isLanguageChangingTo,i))return!1}}),fn=i=>typeof i=="string",tb=i=>typeof i=="object"&&i!==null,ab=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,nb={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},lb=i=>nb[i],ib=i=>i.replace(ab,lb);let $o={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:ib};const rb=(i={})=>{$o={...$o,...i}},sb=()=>$o;let cm;const ub=i=>{cm=i},ob=()=>cm,cb={type:"3rdParty",init(i){rb(i.options.react),ub(i)}},fb=T.createContext();class db{constructor(){this.usedNamespaces={}}addUsedNamespaces(n){n.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const hb=(i,n)=>{const r=T.useRef();return T.useEffect(()=>{r.current=i},[i,n]),r.current},fm=(i,n,r,s)=>i.getFixedT(n,r,s),pb=(i,n,r,s)=>T.useCallback(fm(i,n,r,s),[i,n,r,s]),ot=(i,n={})=>{var J,K,ue,re;const{i18n:r}=n,{i18n:s,defaultNS:o}=T.useContext(fb)||{},f=r||s||ob();if(f&&!f.reportNamespaces&&(f.reportNamespaces=new db),!f){Ho(f,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const ee=(ne,pe)=>fn(pe)?pe:tb(pe)&&fn(pe.defaultValue)?pe.defaultValue:Array.isArray(ne)?ne[ne.length-1]:ne,F=[ee,{},!1];return F.t=ee,F.i18n={},F.ready=!1,F}(J=f.options.react)!=null&&J.wait&&Ho(f,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const p={...sb(),...f.options.react,...n},{useSuspense:h,keyPrefix:m}=p;let d=o||((K=f.options)==null?void 0:K.defaultNS);d=fn(d)?[d]:d||["translation"],(re=(ue=f.reportNamespaces).addUsedNamespaces)==null||re.call(ue,d);const v=(f.isInitialized||f.initializedStoreOnce)&&d.every(ee=>eb(ee,f,p)),x=pb(f,n.lng||null,p.nsMode==="fallback"?d:d[0],m),S=()=>x,C=()=>fm(f,n.lng||null,p.nsMode==="fallback"?d:d[0],m),[E,z]=T.useState(S);let B=d.join();n.lng&&(B=`${n.lng}${B}`);const U=hb(B),D=T.useRef(!0);T.useEffect(()=>{const{bindI18n:ee,bindI18nStore:F}=p;D.current=!0,!v&&!h&&(n.lng?Up(f,n.lng,d,()=>{D.current&&z(C)}):Vo(f,d,()=>{D.current&&z(C)})),v&&U&&U!==B&&D.current&&z(C);const ne=()=>{D.current&&z(C)};return ee&&(f==null||f.on(ee,ne)),F&&(f==null||f.store.on(F,ne)),()=>{D.current=!1,f&&(ee==null||ee.split(" ").forEach(pe=>f.off(pe,ne))),F&&f&&F.split(" ").forEach(pe=>f.store.off(pe,ne))}},[f,B]),T.useEffect(()=>{D.current&&v&&z(S)},[f,m,v]);const G=[E,f,v];if(G.t=E,G.i18n=f,G.ready=v,v||!v&&!h)return G;throw new Promise(ee=>{n.lng?Up(f,n.lng,d,()=>ee()):Vo(f,d,()=>ee())})},mb="ParoiCMS Site Generator",gb="<p>Describe here the data structure of your website: what types of pages it has and in which sections. In a page type, it is also possible to describe lists of sub-parts.</p><p>Supported languages: English, French.</p>",vb="Create a website about… It will include a blog section, a list of pages, and a dedicated section about… that itself contains the following sub-sections: … The home page should contain an image carousel and a list of subparts, each containing an image and a text.",yb="Add a new text field to the page…",bb="Modify the Site Schema",Sb="Create a Site Schema",xb="Generate the website",Nb="Generate site with sample data (recommended)",Eb="Generate an empty site",Rb="Open the back-office",Tb="Open the site",wb="Generated Schema",Cb="Tree View",jb="Site Schema",Ab="Node Types",Ob="Labels",kb="Select language",Lb="Explanations",zb="Current Activity",Db="An error occurred: {{ message }}",_b="An error occurred",Mb="Start Again",Ub="Step {{stepNumber}}: {{kind}}",Bb="This step is in progress…",Hb="This step failed.",Vb="This step had no effect.",$b="No session data available",qb="Step not found",Gb="Welcome to ParoiCMS Site Generator",Yb="Close and start again",Qb="Reset Schema",Zb="unknown error",Kb="Create New Site",Xb="Generating your site…",Jb="The site is generated",Fb="Email:",Pb="Password:",Wb="I agree",Ib="You are about to generate your website.",eS="Cancel",tS="Confirm",aS="Site URL:",nS="Admin URL:",lS="Copy all information to clipboard",iS="<p>Welcome to the ParoiCMS Site Generator tool. This tool helps you create a new website with just a few steps.</p><p>To get started, please verify you're human by completing the CAPTCHA below.</p>",rS="Initial Schema Creation",sS="Schema Update",uS="Site Generation",oS={initial1:"Analyzing your request for site structure…",initial2:"Choosing from predefined fields…",updating1:"Analyzing your update request…",updating2:"Updating schema structure with changes…",generatingSite:"Building your website…",generatingContent:"Creating sample content for your site…"},cS="Login Email",fS="Login Password",dS="Generated Site",hS="Your session has expired. Please refresh the page to start a new session.",pS="Failed to submit your prompt. Please try again.",mS="Failed to generate the site. Please try again.",gS='The source code of this generator is available <a href="https://gitlab.com/paroi/opensource/paroicms/-/tree/main/plugins/site-generator-plugin?ref_type=heads" target="_blank">on GitLab</a> — <a href="https://www.paroicms.org/en" target="_blank">ParoiCMS</a> — Contact me <a href="https://paroi.tech/en" target="_blank">here</a>.',vS="Extend your session",yS="Failed to refresh your session. Please try again.",bS="Error connecting to server. Please check your connection and try again.",SS="Tip: If you want to start over, open the generator in a new tab and close this one.",xS={title:mb,startInstruction:gb,createPromptPlaceholder:vb,updatePromptPlaceholder:yb,modifySchema:bb,createSchema:Sb,generateTheWebsite:xb,generateSiteWithData:Nb,generateEmptySite:Eb,administration:Rb,viewSite:Tb,generatedSchema:wb,treeView:Cb,siteSchema:jb,nodeTypes:Ab,labels:Ob,languageSelector:kb,explanation:Lb,currentActivity:zb,errorOccurred:Db,unknownErrorOccurred:_b,startAgain:Mb,stepTitle:Ub,stepPending:Bb,stepFailed:Hb,stepNoEffect:Vb,noSessionData:$b,stepNotFound:qb,welcomeTitle:Gb,reset:Yb,resetSchema:Qb,unknownError:Zb,createNewSite:Kb,generatingSite:Xb,siteGenerated:Jb,email:Fb,password:Pb,agree:Wb,aboutToGenerateWebsite:Ib,cancel:eS,confirm:tS,siteUrl:aS,adminUrl:nS,copyToClipboard:lS,introduction:iS,initialSchema:rS,updateSchema:sS,generateSite:uS,activity:oS,loginEmail:cS,loginPassword:fS,generatedSite:dS,sessionExpired:hS,promptSubmissionFailed:pS,generationFailed:mS,footerText:gS,extendYourSession:vS,sessionRenewalFailed:yS,errorConnectingToServer:bS,newTabRestartMessage:SS},NS="ParoiCMS - Générateur de Site",ES="<p>Décrivez ici la structure des données de votre site web : quels types de pages, dans quelles rubriques. Il est également possible de décrire des listes de sous-parties de pages.</p><p>Langages autorisés : Français, Anglais.</p>",RS="Génère un site web à propos de… Il contiendra une rubrique blog, une liste de pages, une rubrique dédiée à… contenant elle-même les sous-rubriques suivantes : … La page d'accueil doit contenir un carrousel d'images, et une liste de sous-parties contenant chacune une image et un texte.",TS="Ajoute un nouveau champ texte à la page…",wS="Modifier le schéma du site",CS="Créer un schéma de site",jS="Générer le site web",AS="Générer le site avec des données d'exemple (recommandé)",OS="Générer un site vide",kS="Ouvrir l'espace d'administration du site",LS="Ouvrir le site",zS="Schéma généré",DS="Arborescence",_S="Schéma du site",MS="Types de nœuds",US="Libellés",BS="Sélectionner la langue",HS="Explications",VS="Activité en cours",$S="Une erreur est survenue : {{ message }}",qS="Une erreur est survenue",GS="Recommencer",YS="Étape {{stepNumber}} : {{kind}}",QS="Cette étape est en cours…",ZS="Cette étape a échoué.",KS="Cette étape n'a eu aucun effet.",XS="Données de session non disponibles",JS="Étape introuvable",FS="Bienvenue sur le générateur de site ParoiCMS",PS="Fermer et réinitialiser",WS="Réinitialiser le schéma",IS="erreur inconnue",ex="Créer un nouveau site",tx="Génération de votre site…",ax="Le site est généré",nx="Email :",lx="Mot de passe :",ix="J'accepte",rx="Vous êtes sur le point de générer votre site web.",sx="Annuler",ux="Confirmer",ox="URL du site :",cx="URL d'admin :",fx="Copier toutes les informations dans le presse-papier",dx="<p>Bienvenue sur l'outil de génération de site ParoiCMS. Cet outil vous aide à créer un nouveau site web en quelques étapes.</p><p>Pour commencer, veuillez vérifier que vous êtes humain en complétant le CAPTCHA ci-dessous.</p>",hx="Création du schéma initial",px="Mise à jour du schéma",mx="Génération du site",gx={initial1:"Analyse de votre demande pour la structure du site…",initial2:"Choix parmi les champs prédéfinis…",updating1:"Analyse de votre demande de mise à jour…",updating2:"Mise à jour de la structure du schéma…",generatingSite:"Construction de votre site web…",generatingContent:"Création de contenu exemple pour votre site…"},vx="Email de connexion",yx="Mot de passe",bx="Site généré",Sx="Votre session a expiré. Veuillez rafraîchir la page pour démarrer une nouvelle session.",xx="Échec de l'envoi de votre demande. Veuillez réessayer.",Nx="Échec de la génération du site. Veuillez réessayer.",Ex='Le code source de ce générateur est disponible <a href="https://gitlab.com/paroi/opensource/paroicms/-/tree/main/plugins/site-generator-plugin?ref_type=heads" target="_blank">sur GitLab</a> — <a href="https://www.paroicms.org/fr" target="_blank">ParoiCMS</a> — Contactez-moi <a href="https://paroi.tech/fr" target="_blank">ici</a>.',Rx="Prolonger votre session",Tx="Échec du renouvellement de votre session. Veuillez réessayer.",wx="Erreur de connexion au serveur. Veuillez vérifier votre connexion et réessayer.",Cx="Astuce : si vous souhaitez repartir de zéro, ouvrez le générateur dans un nouvel onglet et fermez celui-ci.",jx={title:NS,startInstruction:ES,createPromptPlaceholder:RS,updatePromptPlaceholder:TS,modifySchema:wS,createSchema:CS,generateTheWebsite:jS,generateSiteWithData:AS,generateEmptySite:OS,administration:kS,viewSite:LS,generatedSchema:zS,treeView:DS,siteSchema:_S,nodeTypes:MS,labels:US,languageSelector:BS,explanation:HS,currentActivity:VS,errorOccurred:$S,unknownErrorOccurred:qS,startAgain:GS,stepTitle:YS,stepPending:QS,stepFailed:ZS,stepNoEffect:KS,noSessionData:XS,stepNotFound:JS,welcomeTitle:FS,reset:PS,resetSchema:WS,unknownError:IS,createNewSite:ex,generatingSite:tx,siteGenerated:ax,email:nx,password:lx,agree:ix,aboutToGenerateWebsite:rx,cancel:sx,confirm:ux,siteUrl:ox,adminUrl:cx,copyToClipboard:fx,introduction:dx,initialSchema:hx,updateSchema:px,generateSite:mx,activity:gx,loginEmail:vx,loginPassword:yx,generatedSite:bx,sessionExpired:Sx,promptSubmissionFailed:xx,generationFailed:Nx,footerText:Ex,extendYourSession:Rx,sessionRenewalFailed:Tx,errorConnectingToServer:wx,newTabRestartMessage:Cx},Ax=`<p>Welcome!</p>
18
+ <p>ParoiCMS is a CMS for showcase websites. Its core feature is that you define the structure of your website. This tool will help you to do it.</p>
19
+ <p>A session identifier will follow you on the tab of your browser, it will be deleted when you close the tab. However, your session data may be retained for debugging purposes.</p>`,Ox=`<p>Bienvenue !</p>
20
+ <p>ParoiCMS est un CMS pour sites vitrines. Sa fonctionnalité principale est que vous définissez la structure de votre site web. Le générateur vous aidera dans cette tâche.</p>
21
+ <p>Un identifiant de session vous suivra dans l'onglet de votre navigateur, il sera supprimé lorsque vous fermerez l'onglet. Mais vos données de session pourront être conservées à des fins de débogage.</p>`,kx=`<p>Congratulations! Your website has been generated. Now you can authenticate on the back-office (using the <strong>local account</strong>) and play with it.</p>
22
+ <p>Notice that it will be deleted in 48 hours. However, if you want to keep it, then <strong>make a backup</strong>. <em>Each backup is a zip file that contains a full Node.js project, ready to be installed and executed in a local environment.</em></p>
23
+ <p>An unattractive theme has been generated. Its purpose is to demonstrate how to write templates for your data structure.</p>
24
+ <p>Make sure to copy the information below, as it will be lost once you close this tab.</p>`,Lx=`<p>Félicitations ! Votre site web a été généré. Vous pouvez maintenant vous authentifier sur le back-office (en utilisant le <strong>compte local</strong>) et l'explorer.</p>
25
+ <p>Notez qu'il sera supprimé dans 48 heures. Cependant, si vous souhaitez le conserver, alors <strong>faites une sauvegarde</strong>. <em>Chaque sauvegarde est un fichier zip qui contient un projet Node.js complet, prêt à être installé et exécuté dans un environnement local.</em></p>
26
+ <p>Un thème tout moche a été généré. Son but est de montrer comment écrire des templates pour votre structure de données.</p>
27
+ <p>Assurez-vous de copier les informations ci-dessous, car elles seront perdues une fois que vous fermerez cet onglet.</p>`,zx={en:{translation:{...xS,introduction:Ax,userManual:kx}},fr:{translation:{...jx,introduction:Ox,userManual:Lx}}};at.use(cb).init({resources:zx,lng:navigator.language.split("-")[0],fallbackLng:"en",interpolation:{escapeValue:!1}});var Co={exports:{}},si={},jo={exports:{}},Ao={};/**
26
28
  * @license React
27
29
  * scheduler.production.js
28
30
  *
@@ -30,7 +32,7 @@ var Vy=Object.defineProperty;var Qy=(i,l,s)=>l in i?Vy(i,l,{enumerable:!0,config
30
32
  *
31
33
  * This source code is licensed under the MIT license found in the
32
34
  * LICENSE file in the root directory of this source tree.
33
- */var pp;function Wb(){return pp||(pp=1,function(i){function l(D,$){var W=D.length;D.push($);e:for(;0<W;){var me=W-1>>>1,R=D[me];if(0<c(R,$))D[me]=$,D[W]=R,W=me;else break e}}function s(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var $=D[0],W=D.pop();if(W!==$){D[0]=W;e:for(var me=0,R=D.length,U=R>>>1;me<U;){var V=2*(me+1)-1,Y=D[V],P=V+1,pe=D[P];if(0>c(Y,W))P<R&&0>c(pe,Y)?(D[me]=pe,D[P]=W,me=P):(D[me]=Y,D[V]=W,me=V);else if(P<R&&0>c(pe,W))D[me]=pe,D[P]=W,me=P;else break e}}return $}function c(D,$){var W=D.sortIndex-$.sortIndex;return W!==0?W:D.id-$.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var p=Date,h=p.now();i.unstable_now=function(){return p.now()-h}}var g=[],d=[],y=1,S=null,b=3,_=!1,T=!1,M=!1,G=!1,B=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function F(D){for(var $=s(d);$!==null;){if($.callback===null)r(d);else if($.startTime<=D)r(d),$.sortIndex=$.expirationTime,l(g,$);else break;$=s(d)}}function Z(D){if(M=!1,F(D),!T)if(s(g)!==null)T=!0,de||(de=!0,De());else{var $=s(d);$!==null&&$e(Z,$.startTime-D)}}var de=!1,le=-1,ie=5,Q=-1;function ee(){return G?!0:!(i.unstable_now()-Q<ie)}function he(){if(G=!1,de){var D=i.unstable_now();Q=D;var $=!0;try{e:{T=!1,M&&(M=!1,q(le),le=-1),_=!0;var W=b;try{t:{for(F(D),S=s(g);S!==null&&!(S.expirationTime>D&&ee());){var me=S.callback;if(typeof me=="function"){S.callback=null,b=S.priorityLevel;var R=me(S.expirationTime<=D);if(D=i.unstable_now(),typeof R=="function"){S.callback=R,F(D),$=!0;break t}S===s(g)&&r(g),F(D)}else r(g);S=s(g)}if(S!==null)$=!0;else{var U=s(d);U!==null&&$e(Z,U.startTime-D),$=!1}}break e}finally{S=null,b=W,_=!1}$=void 0}}finally{$?De():de=!1}}}var De;if(typeof X=="function")De=function(){X(he)};else if(typeof MessageChannel<"u"){var Ue=new MessageChannel,Ce=Ue.port2;Ue.port1.onmessage=he,De=function(){Ce.postMessage(null)}}else De=function(){B(he,0)};function $e(D,$){le=B(function(){D(i.unstable_now())},$)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(D){D.callback=null},i.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ie=0<D?Math.floor(1e3/D):5},i.unstable_getCurrentPriorityLevel=function(){return b},i.unstable_next=function(D){switch(b){case 1:case 2:case 3:var $=3;break;default:$=b}var W=b;b=$;try{return D()}finally{b=W}},i.unstable_requestPaint=function(){G=!0},i.unstable_runWithPriority=function(D,$){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var W=b;b=D;try{return $()}finally{b=W}},i.unstable_scheduleCallback=function(D,$,W){var me=i.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?me+W:me):W=me,D){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=W+R,D={id:y++,callback:$,priorityLevel:D,startTime:W,expirationTime:R,sortIndex:-1},W>me?(D.sortIndex=W,l(d,D),s(g)===null&&D===s(d)&&(M?(q(le),le=-1):M=!0,$e(Z,W-me))):(D.sortIndex=R,l(g,D),T||_||(T=!0,de||(de=!0,De()))),D},i.unstable_shouldYield=ee,i.unstable_wrapCallback=function(D){var $=b;return function(){var W=b;b=$;try{return D.apply(this,arguments)}finally{b=W}}}}(yo)),yo}var gp;function Pb(){return gp||(gp=1,mo.exports=Wb()),mo.exports}var vo={exports:{}},et={};/**
35
+ */var Bp;function Dx(){return Bp||(Bp=1,function(i){function n(_,Y){var W=_.length;_.push(Y);e:for(;0<W;){var ye=W-1>>>1,R=_[ye];if(0<o(R,Y))_[ye]=Y,_[W]=R,W=ye;else break e}}function r(_){return _.length===0?null:_[0]}function s(_){if(_.length===0)return null;var Y=_[0],W=_.pop();if(W!==Y){_[0]=W;e:for(var ye=0,R=_.length,$=R>>>1;ye<$;){var Z=2*(ye+1)-1,Q=_[Z],I=Z+1,me=_[I];if(0>o(Q,W))I<R&&0>o(me,Q)?(_[ye]=me,_[I]=W,ye=I):(_[ye]=Q,_[Z]=W,ye=Z);else if(I<R&&0>o(me,W))_[ye]=me,_[I]=W,ye=I;else break e}}return Y}function o(_,Y){var W=_.sortIndex-Y.sortIndex;return W!==0?W:_.id-Y.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var p=Date,h=p.now();i.unstable_now=function(){return p.now()-h}}var m=[],d=[],v=1,x=null,S=3,C=!1,E=!1,z=!1,B=!1,U=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function J(_){for(var Y=r(d);Y!==null;){if(Y.callback===null)s(d);else if(Y.startTime<=_)s(d),Y.sortIndex=Y.expirationTime,n(m,Y);else break;Y=r(d)}}function K(_){if(z=!1,J(_),!E)if(r(m)!==null)E=!0,ue||(ue=!0,Ke());else{var Y=r(d);Y!==null&&Ye(K,Y.startTime-_)}}var ue=!1,re=-1,ee=5,F=-1;function ne(){return B?!0:!(i.unstable_now()-F<ee)}function pe(){if(B=!1,ue){var _=i.unstable_now();F=_;var Y=!0;try{e:{E=!1,z&&(z=!1,D(re),re=-1),C=!0;var W=S;try{t:{for(J(_),x=r(m);x!==null&&!(x.expirationTime>_&&ne());){var ye=x.callback;if(typeof ye=="function"){x.callback=null,S=x.priorityLevel;var R=ye(x.expirationTime<=_);if(_=i.unstable_now(),typeof R=="function"){x.callback=R,J(_),Y=!0;break t}x===r(m)&&s(m),J(_)}else s(m);x=r(m)}if(x!==null)Y=!0;else{var $=r(d);$!==null&&Ye(K,$.startTime-_),Y=!1}}break e}finally{x=null,S=W,C=!1}Y=void 0}}finally{Y?Ke():ue=!1}}}var Ke;if(typeof G=="function")Ke=function(){G(pe)};else if(typeof MessageChannel<"u"){var Xe=new MessageChannel,Ge=Xe.port2;Xe.port1.onmessage=pe,Ke=function(){Ge.postMessage(null)}}else Ke=function(){U(pe,0)};function Ye(_,Y){re=U(function(){_(i.unstable_now())},Y)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(_){_.callback=null},i.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<_?Math.floor(1e3/_):5},i.unstable_getCurrentPriorityLevel=function(){return S},i.unstable_next=function(_){switch(S){case 1:case 2:case 3:var Y=3;break;default:Y=S}var W=S;S=Y;try{return _()}finally{S=W}},i.unstable_requestPaint=function(){B=!0},i.unstable_runWithPriority=function(_,Y){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var W=S;S=_;try{return Y()}finally{S=W}},i.unstable_scheduleCallback=function(_,Y,W){var ye=i.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?ye+W:ye):W=ye,_){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=W+R,_={id:v++,callback:Y,priorityLevel:_,startTime:W,expirationTime:R,sortIndex:-1},W>ye?(_.sortIndex=W,n(d,_),r(m)===null&&_===r(d)&&(z?(D(re),re=-1):z=!0,Ye(K,W-ye))):(_.sortIndex=R,n(m,_),E||C||(E=!0,ue||(ue=!0,Ke()))),_},i.unstable_shouldYield=ne,i.unstable_wrapCallback=function(_){var Y=S;return function(){var W=S;S=Y;try{return _.apply(this,arguments)}finally{S=W}}}}(Ao)),Ao}var Hp;function _x(){return Hp||(Hp=1,jo.exports=Dx()),jo.exports}var Oo={exports:{}},it={};/**
34
36
  * @license React
35
37
  * react-dom.production.js
36
38
  *
@@ -38,7 +40,7 @@ var Vy=Object.defineProperty;var Qy=(i,l,s)=>l in i?Vy(i,l,{enumerable:!0,config
38
40
  *
39
41
  * This source code is licensed under the MIT license found in the
40
42
  * LICENSE file in the root directory of this source tree.
41
- */var mp;function Ib(){if(mp)return et;mp=1;var i=Lo();function l(g){var d="https://react.dev/errors/"+g;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)d+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+g+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={d:{f:s,r:function(){throw Error(l(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(g,d,y){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:S==null?null:""+S,children:g,containerInfo:d,implementation:y}}var p=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(g,d){if(g==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return et.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,et.createPortal=function(g,d){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(l(299));return f(g,d,null,y)},et.flushSync=function(g){var d=p.T,y=r.p;try{if(p.T=null,r.p=2,g)return g()}finally{p.T=d,r.p=y,r.d.f()}},et.preconnect=function(g,d){typeof g=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(g,d))},et.prefetchDNS=function(g){typeof g=="string"&&r.d.D(g)},et.preinit=function(g,d){if(typeof g=="string"&&d&&typeof d.as=="string"){var y=d.as,S=h(y,d.crossOrigin),b=typeof d.integrity=="string"?d.integrity:void 0,_=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;y==="style"?r.d.S(g,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:S,integrity:b,fetchPriority:_}):y==="script"&&r.d.X(g,{crossOrigin:S,integrity:b,fetchPriority:_,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},et.preinitModule=function(g,d){if(typeof g=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var y=h(d.as,d.crossOrigin);r.d.M(g,{crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(g)},et.preload=function(g,d){if(typeof g=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var y=d.as,S=h(y,d.crossOrigin);r.d.L(g,y,{crossOrigin:S,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},et.preloadModule=function(g,d){if(typeof g=="string")if(d){var y=h(d.as,d.crossOrigin);r.d.m(g,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(g)},et.requestFormReset=function(g){r.d.r(g)},et.unstable_batchedUpdates=function(g,d){return g(d)},et.useFormState=function(g,d,y){return p.H.useFormState(g,d,y)},et.useFormStatus=function(){return p.H.useHostTransitionStatus()},et.version="19.1.0",et}var yp;function eS(){if(yp)return vo.exports;yp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),vo.exports=Ib(),vo.exports}/**
43
+ */var Vp;function Mx(){if(Vp)return it;Vp=1;var i=Fo();function n(m){var d="https://react.dev/errors/"+m;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)d+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+m+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(m,d,v){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:x==null?null:""+x,children:m,containerInfo:d,implementation:v}}var p=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,d){if(m==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return it.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,it.createPortal=function(m,d){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(n(299));return f(m,d,null,v)},it.flushSync=function(m){var d=p.T,v=s.p;try{if(p.T=null,s.p=2,m)return m()}finally{p.T=d,s.p=v,s.d.f()}},it.preconnect=function(m,d){typeof m=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,s.d.C(m,d))},it.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},it.preinit=function(m,d){if(typeof m=="string"&&d&&typeof d.as=="string"){var v=d.as,x=h(v,d.crossOrigin),S=typeof d.integrity=="string"?d.integrity:void 0,C=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;v==="style"?s.d.S(m,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:x,integrity:S,fetchPriority:C}):v==="script"&&s.d.X(m,{crossOrigin:x,integrity:S,fetchPriority:C,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},it.preinitModule=function(m,d){if(typeof m=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var v=h(d.as,d.crossOrigin);s.d.M(m,{crossOrigin:v,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&s.d.M(m)},it.preload=function(m,d){if(typeof m=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var v=d.as,x=h(v,d.crossOrigin);s.d.L(m,v,{crossOrigin:x,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},it.preloadModule=function(m,d){if(typeof m=="string")if(d){var v=h(d.as,d.crossOrigin);s.d.m(m,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:v,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else s.d.m(m)},it.requestFormReset=function(m){s.d.r(m)},it.unstable_batchedUpdates=function(m,d){return m(d)},it.useFormState=function(m,d,v){return p.H.useFormState(m,d,v)},it.useFormStatus=function(){return p.H.useHostTransitionStatus()},it.version="19.1.0",it}var $p;function Ux(){if($p)return Oo.exports;$p=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),Oo.exports=Mx(),Oo.exports}/**
42
44
  * @license React
43
45
  * react-dom-client.production.js
44
46
  *
@@ -46,75 +48,75 @@ var Vy=Object.defineProperty;var Qy=(i,l,s)=>l in i?Vy(i,l,{enumerable:!0,config
46
48
  *
47
49
  * This source code is licensed under the MIT license found in the
48
50
  * LICENSE file in the root directory of this source tree.
49
- */var vp;function tS(){if(vp)return Wl;vp=1;var i=Pb(),l=Lo(),s=eS();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(f(e)!==e)throw Error(r(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,a=t;;){var u=n.return;if(u===null)break;var o=u.alternate;if(o===null){if(a=u.return,a!==null){n=a;continue}break}if(u.child===o.child){for(o=u.child;o;){if(o===n)return h(u),e;if(o===a)return h(u),t;o=o.sibling}throw Error(r(188))}if(n.return!==a.return)n=u,a=o;else{for(var m=!1,v=u.child;v;){if(v===n){m=!0,n=u,a=o;break}if(v===a){m=!0,a=u,n=o;break}v=v.sibling}if(!m){for(v=o.child;v;){if(v===n){m=!0,n=o,a=u;break}if(v===a){m=!0,a=o,n=u;break}v=v.sibling}if(!m)throw Error(r(189))}}if(n.alternate!==a)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,S=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),q=Symbol.for("react.consumer"),X=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),de=Symbol.for("react.suspense_list"),le=Symbol.for("react.memo"),ie=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),he=Symbol.iterator;function De(e){return e===null||typeof e!="object"?null:(e=he&&e[he]||e["@@iterator"],typeof e=="function"?e:null)}var Ue=Symbol.for("react.client.reference");function Ce(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ue?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case G:return"Profiler";case M:return"StrictMode";case Z:return"Suspense";case de:return"SuspenseList";case Q:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case _:return"Portal";case X:return(e.displayName||"Context")+".Provider";case q:return(e._context.displayName||"Context")+".Consumer";case F:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case le:return t=e.displayName||null,t!==null?t:Ce(e.type)||"Memo";case ie:t=e._payload,e=e._init;try{return Ce(e(t))}catch{}}return null}var $e=Array.isArray,D=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},me=[],R=-1;function U(e){return{current:e}}function V(e){0>R||(e.current=me[R],me[R]=null,R--)}function Y(e,t){R++,me[R]=e.current,e.current=t}var P=U(null),pe=U(null),ue=U(null),dt=U(null);function ze(e,t){switch(Y(ue,t),Y(pe,e),Y(P,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Eh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Eh(t),e=Th(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(P),Y(P,e)}function dn(){V(P),V(pe),V(ue)}function Fu(e){e.memoizedState!==null&&Y(dt,e);var t=P.current,n=Th(t,e.type);t!==n&&(Y(pe,e),Y(P,n))}function di(e){pe.current===e&&(V(P),V(pe)),dt.current===e&&(V(dt),Vl._currentValue=W)}var Wu=Object.prototype.hasOwnProperty,Pu=i.unstable_scheduleCallback,Iu=i.unstable_cancelCallback,Eg=i.unstable_shouldYield,Tg=i.unstable_requestPaint,Ht=i.unstable_now,Rg=i.unstable_getCurrentPriorityLevel,tc=i.unstable_ImmediatePriority,nc=i.unstable_UserBlockingPriority,hi=i.unstable_NormalPriority,wg=i.unstable_LowPriority,ac=i.unstable_IdlePriority,Ng=i.log,Ag=i.unstable_setDisableYieldValue,Pa=null,ht=null;function hn(e){if(typeof Ng=="function"&&Ag(e),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode(Pa,e)}catch{}}var pt=Math.clz32?Math.clz32:zg,Og=Math.log,Cg=Math.LN2;function zg(e){return e>>>=0,e===0?32:31-(Og(e)/Cg|0)|0}var pi=256,gi=4194304;function Bn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function mi(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var u=0,o=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var v=a&134217727;return v!==0?(a=v&~o,a!==0?u=Bn(a):(m&=v,m!==0?u=Bn(m):n||(n=v&~e,n!==0&&(u=Bn(n))))):(v=a&~o,v!==0?u=Bn(v):m!==0?u=Bn(m):n||(n=a&~e,n!==0&&(u=Bn(n)))),u===0?0:t!==0&&t!==u&&(t&o)===0&&(o=u&-u,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:u}function Ia(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function kg(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function lc(){var e=pi;return pi<<=1,(pi&4194048)===0&&(pi=256),e}function ic(){var e=gi;return gi<<=1,(gi&62914560)===0&&(gi=4194304),e}function es(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function el(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function _g(e,t,n,a,u,o){var m=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var v=e.entanglements,x=e.expirationTimes,C=e.hiddenUpdates;for(n=m&~n;0<n;){var j=31-pt(n),H=1<<j;v[j]=0,x[j]=-1;var z=C[j];if(z!==null)for(C[j]=null,j=0;j<z.length;j++){var k=z[j];k!==null&&(k.lane&=-536870913)}n&=~H}a!==0&&uc(e,a,0),o!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=o&~(m&~t))}function uc(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-pt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&4194090}function sc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-pt(n),u=1<<a;u&t|e[a]&t&&(e[a]|=t),n&=~u}}function ts(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ns(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function rc(){var e=$.p;return e!==0?e:(e=window.event,e===void 0?32:$h(e.type))}function Dg(e,t){var n=$.p;try{return $.p=e,t()}finally{$.p=n}}var pn=Math.random().toString(36).slice(2),Pe="__reactFiber$"+pn,st="__reactProps$"+pn,ra="__reactContainer$"+pn,as="__reactEvents$"+pn,Mg="__reactListeners$"+pn,jg="__reactHandles$"+pn,oc="__reactResources$"+pn,tl="__reactMarker$"+pn;function ls(e){delete e[Pe],delete e[st],delete e[as],delete e[Mg],delete e[jg]}function oa(e){var t=e[Pe];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ra]||n[Pe]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ah(e);e!==null;){if(n=e[Pe])return n;e=Ah(e)}return t}e=n,n=e.parentNode}return null}function ca(e){if(e=e[Pe]||e[ra]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function nl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function fa(e){var t=e[oc];return t||(t=e[oc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Qe(e){e[tl]=!0}var cc=new Set,fc={};function qn(e,t){da(e,t),da(e+"Capture",t)}function da(e,t){for(fc[e]=t,e=0;e<t.length;e++)cc.add(t[e])}var Lg=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),dc={},hc={};function Ug(e){return Wu.call(hc,e)?!0:Wu.call(dc,e)?!1:Lg.test(e)?hc[e]=!0:(dc[e]=!0,!1)}function yi(e,t,n){if(Ug(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function vi(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Xt(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}var is,pc;function ha(e){if(is===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);is=t&&t[1]||"",pc=-1<n.stack.indexOf(`
50
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
51
- `+is+e+pc}var us=!1;function ss(e,t){if(!e||us)return"";us=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(k){var z=k}Reflect.construct(e,[],H)}else{try{H.call()}catch(k){z=k}e.call(H.prototype)}}else{try{throw Error()}catch(k){z=k}(H=e())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(k){if(k&&z&&typeof k.stack=="string")return[k.stack,z.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=a.DetermineComponentFrameRoot(),m=o[0],v=o[1];if(m&&v){var x=m.split(`
52
- `),C=v.split(`
53
- `);for(u=a=0;a<x.length&&!x[a].includes("DetermineComponentFrameRoot");)a++;for(;u<C.length&&!C[u].includes("DetermineComponentFrameRoot");)u++;if(a===x.length||u===C.length)for(a=x.length-1,u=C.length-1;1<=a&&0<=u&&x[a]!==C[u];)u--;for(;1<=a&&0<=u;a--,u--)if(x[a]!==C[u]){if(a!==1||u!==1)do if(a--,u--,0>u||x[a]!==C[u]){var j=`
54
- `+x[a].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),j}while(1<=a&&0<=u);break}}}finally{us=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ha(n):""}function Hg(e){switch(e.tag){case 26:case 27:case 5:return ha(e.type);case 16:return ha("Lazy");case 13:return ha("Suspense");case 19:return ha("SuspenseList");case 0:case 15:return ss(e.type,!1);case 11:return ss(e.type.render,!1);case 1:return ss(e.type,!0);case 31:return ha("Activity");default:return""}}function gc(e){try{var t="";do t+=Hg(e),e=e.return;while(e);return t}catch(n){return`
55
- Error generating stack: `+n.message+`
56
- `+n.stack}}function Tt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Bg(e){var t=mc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var u=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(m){a=""+m,o.call(this,m)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(m){a=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bi(e){e._valueTracker||(e._valueTracker=Bg(e))}function yc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=mc(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Si(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var qg=/[\n"\\]/g;function Rt(e){return e.replace(qg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function rs(e,t,n,a,u,o,m,v){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Tt(t)):e.value!==""+Tt(t)&&(e.value=""+Tt(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?os(e,m,Tt(t)):n!=null?os(e,m,Tt(n)):a!=null&&e.removeAttribute("value"),u==null&&o!=null&&(e.defaultChecked=!!o),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Tt(v):e.removeAttribute("name")}function vc(e,t,n,a,u,o,m,v){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null))return;n=n!=null?""+Tt(n):"",t=t!=null?""+Tt(t):n,v||t===e.value||(e.value=t),e.defaultValue=t}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=v?e.checked:!!a,e.defaultChecked=!!a,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m)}function os(e,t,n){t==="number"&&Si(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function pa(e,t,n,a){if(e=e.options,t){t={};for(var u=0;u<n.length;u++)t["$"+n[u]]=!0;for(n=0;n<e.length;n++)u=t.hasOwnProperty("$"+e[n].value),e[n].selected!==u&&(e[n].selected=u),u&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Tt(n),t=null,u=0;u<e.length;u++){if(e[u].value===n){e[u].selected=!0,a&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function bc(e,t,n){if(t!=null&&(t=""+Tt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Tt(n):""}function Sc(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(r(92));if($e(a)){if(1<a.length)throw Error(r(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Tt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a)}function ga(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gg=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function xc(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||Gg.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Ec(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var u in t)a=t[u],t.hasOwnProperty(u)&&n[u]!==a&&xc(e,u,a)}else for(var o in t)t.hasOwnProperty(o)&&xc(e,o,t[o])}function cs(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var $g=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Yg=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function xi(e){return Yg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var fs=null;function ds(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ma=null,ya=null;function Tc(e){var t=ca(e);if(t&&(e=t.stateNode)){var n=e[st]||null;e:switch(e=t.stateNode,t.type){case"input":if(rs(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Rt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var u=a[st]||null;if(!u)throw Error(r(90));rs(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&yc(a)}break e;case"textarea":bc(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&pa(e,!!n.multiple,t,!1)}}}var hs=!1;function Rc(e,t,n){if(hs)return e(t,n);hs=!0;try{var a=e(t);return a}finally{if(hs=!1,(ma!==null||ya!==null)&&(uu(),ma&&(t=ma,e=ya,ya=ma=null,Tc(t),e)))for(t=0;t<e.length;t++)Tc(e[t])}}function al(e,t){var n=e.stateNode;if(n===null)return null;var a=n[st]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var Zt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ps=!1;if(Zt)try{var ll={};Object.defineProperty(ll,"passive",{get:function(){ps=!0}}),window.addEventListener("test",ll,ll),window.removeEventListener("test",ll,ll)}catch{ps=!1}var gn=null,gs=null,Ei=null;function wc(){if(Ei)return Ei;var e,t=gs,n=t.length,a,u="value"in gn?gn.value:gn.textContent,o=u.length;for(e=0;e<n&&t[e]===u[e];e++);var m=n-e;for(a=1;a<=m&&t[n-a]===u[o-a];a++);return Ei=u.slice(e,1<a?1-a:void 0)}function Ti(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ri(){return!0}function Nc(){return!1}function rt(e){function t(n,a,u,o,m){this._reactName=n,this._targetInst=u,this.type=a,this.nativeEvent=o,this.target=m,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(o):o[v]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Ri:Nc,this.isPropagationStopped=Nc,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ri)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ri)},persist:function(){},isPersistent:Ri}),t}var Gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wi=rt(Gn),il=y({},Gn,{view:0,detail:0}),Vg=rt(il),ms,ys,ul,Ni=y({},il,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bs,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ul&&(ul&&e.type==="mousemove"?(ms=e.screenX-ul.screenX,ys=e.screenY-ul.screenY):ys=ms=0,ul=e),ms)},movementY:function(e){return"movementY"in e?e.movementY:ys}}),Ac=rt(Ni),Qg=y({},Ni,{dataTransfer:0}),Xg=rt(Qg),Zg=y({},il,{relatedTarget:0}),vs=rt(Zg),Kg=y({},Gn,{animationName:0,elapsedTime:0,pseudoElement:0}),Jg=rt(Kg),Fg=y({},Gn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Wg=rt(Fg),Pg=y({},Gn,{data:0}),Oc=rt(Pg),Ig={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},em={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},tm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function nm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=tm[e])?!!t[e]:!1}function bs(){return nm}var am=y({},il,{key:function(e){if(e.key){var t=Ig[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ti(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?em[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bs,charCode:function(e){return e.type==="keypress"?Ti(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ti(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),lm=rt(am),im=y({},Ni,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cc=rt(im),um=y({},il,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bs}),sm=rt(um),rm=y({},Gn,{propertyName:0,elapsedTime:0,pseudoElement:0}),om=rt(rm),cm=y({},Ni,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),fm=rt(cm),dm=y({},Gn,{newState:0,oldState:0}),hm=rt(dm),pm=[9,13,27,32],Ss=Zt&&"CompositionEvent"in window,sl=null;Zt&&"documentMode"in document&&(sl=document.documentMode);var gm=Zt&&"TextEvent"in window&&!sl,zc=Zt&&(!Ss||sl&&8<sl&&11>=sl),kc=" ",_c=!1;function Dc(e,t){switch(e){case"keyup":return pm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var va=!1;function mm(e,t){switch(e){case"compositionend":return Mc(t);case"keypress":return t.which!==32?null:(_c=!0,kc);case"textInput":return e=t.data,e===kc&&_c?null:e;default:return null}}function ym(e,t){if(va)return e==="compositionend"||!Ss&&Dc(e,t)?(e=wc(),Ei=gs=gn=null,va=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return zc&&t.locale!=="ko"?null:t.data;default:return null}}var vm={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function jc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!vm[e.type]:t==="textarea"}function Lc(e,t,n,a){ma?ya?ya.push(a):ya=[a]:ma=a,t=du(t,"onChange"),0<t.length&&(n=new wi("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var rl=null,ol=null;function bm(e){yh(e,0)}function Ai(e){var t=nl(e);if(yc(t))return e}function Uc(e,t){if(e==="change")return t}var Hc=!1;if(Zt){var xs;if(Zt){var Es="oninput"in document;if(!Es){var Bc=document.createElement("div");Bc.setAttribute("oninput","return;"),Es=typeof Bc.oninput=="function"}xs=Es}else xs=!1;Hc=xs&&(!document.documentMode||9<document.documentMode)}function qc(){rl&&(rl.detachEvent("onpropertychange",Gc),ol=rl=null)}function Gc(e){if(e.propertyName==="value"&&Ai(ol)){var t=[];Lc(t,ol,e,ds(e)),Rc(bm,t)}}function Sm(e,t,n){e==="focusin"?(qc(),rl=t,ol=n,rl.attachEvent("onpropertychange",Gc)):e==="focusout"&&qc()}function xm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ai(ol)}function Em(e,t){if(e==="click")return Ai(t)}function Tm(e,t){if(e==="input"||e==="change")return Ai(t)}function Rm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gt=typeof Object.is=="function"?Object.is:Rm;function cl(e,t){if(gt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var u=n[a];if(!Wu.call(t,u)||!gt(e[u],t[u]))return!1}return!0}function $c(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yc(e,t){var n=$c(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$c(n)}}function Vc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Vc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Qc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Si(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Si(e.document)}return t}function Ts(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var wm=Zt&&"documentMode"in document&&11>=document.documentMode,ba=null,Rs=null,fl=null,ws=!1;function Xc(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ws||ba==null||ba!==Si(a)||(a=ba,"selectionStart"in a&&Ts(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),fl&&cl(fl,a)||(fl=a,a=du(Rs,"onSelect"),0<a.length&&(t=new wi("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=ba)))}function $n(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sa={animationend:$n("Animation","AnimationEnd"),animationiteration:$n("Animation","AnimationIteration"),animationstart:$n("Animation","AnimationStart"),transitionrun:$n("Transition","TransitionRun"),transitionstart:$n("Transition","TransitionStart"),transitioncancel:$n("Transition","TransitionCancel"),transitionend:$n("Transition","TransitionEnd")},Ns={},Zc={};Zt&&(Zc=document.createElement("div").style,"AnimationEvent"in window||(delete Sa.animationend.animation,delete Sa.animationiteration.animation,delete Sa.animationstart.animation),"TransitionEvent"in window||delete Sa.transitionend.transition);function Yn(e){if(Ns[e])return Ns[e];if(!Sa[e])return e;var t=Sa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Zc)return Ns[e]=t[n];return e}var Kc=Yn("animationend"),Jc=Yn("animationiteration"),Fc=Yn("animationstart"),Nm=Yn("transitionrun"),Am=Yn("transitionstart"),Om=Yn("transitioncancel"),Wc=Yn("transitionend"),Pc=new Map,As="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");As.push("scrollEnd");function Dt(e,t){Pc.set(e,t),qn(t,[e])}var Ic=new WeakMap;function wt(e,t){if(typeof e=="object"&&e!==null){var n=Ic.get(e);return n!==void 0?n:(t={value:e,source:t,stack:gc(t)},Ic.set(e,t),t)}return{value:e,source:t,stack:gc(t)}}var Nt=[],xa=0,Os=0;function Oi(){for(var e=xa,t=Os=xa=0;t<e;){var n=Nt[t];Nt[t++]=null;var a=Nt[t];Nt[t++]=null;var u=Nt[t];Nt[t++]=null;var o=Nt[t];if(Nt[t++]=null,a!==null&&u!==null){var m=a.pending;m===null?u.next=u:(u.next=m.next,m.next=u),a.pending=u}o!==0&&ef(n,u,o)}}function Ci(e,t,n,a){Nt[xa++]=e,Nt[xa++]=t,Nt[xa++]=n,Nt[xa++]=a,Os|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Cs(e,t,n,a){return Ci(e,t,n,a),zi(e)}function Ea(e,t){return Ci(e,null,null,t),zi(e)}function ef(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var u=!1,o=e.return;o!==null;)o.childLanes|=n,a=o.alternate,a!==null&&(a.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(u=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,u&&t!==null&&(u=31-pt(n),e=o.hiddenUpdates,a=e[u],a===null?e[u]=[t]:a.push(t),t.lane=n|536870912),o):null}function zi(e){if(50<Ll)throw Ll=0,jr=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ta={};function Cm(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mt(e,t,n,a){return new Cm(e,t,n,a)}function zs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Kt(e,t){var n=e.alternate;return n===null?(n=mt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function tf(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ki(e,t,n,a,u,o){var m=0;if(a=e,typeof e=="function")zs(e)&&(m=1);else if(typeof e=="string")m=ky(e,n,P.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Q:return e=mt(31,n,t,u),e.elementType=Q,e.lanes=o,e;case T:return Vn(n.children,u,o,t);case M:m=8,u|=24;break;case G:return e=mt(12,n,t,u|2),e.elementType=G,e.lanes=o,e;case Z:return e=mt(13,n,t,u),e.elementType=Z,e.lanes=o,e;case de:return e=mt(19,n,t,u),e.elementType=de,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case B:case X:m=10;break e;case q:m=9;break e;case F:m=11;break e;case le:m=14;break e;case ie:m=16,a=null;break e}m=29,n=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=mt(m,n,t,u),t.elementType=e,t.type=a,t.lanes=o,t}function Vn(e,t,n,a){return e=mt(7,e,a,t),e.lanes=n,e}function ks(e,t,n){return e=mt(6,e,null,t),e.lanes=n,e}function _s(e,t,n){return t=mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ra=[],wa=0,_i=null,Di=0,At=[],Ot=0,Qn=null,Jt=1,Ft="";function Xn(e,t){Ra[wa++]=Di,Ra[wa++]=_i,_i=e,Di=t}function nf(e,t,n){At[Ot++]=Jt,At[Ot++]=Ft,At[Ot++]=Qn,Qn=e;var a=Jt;e=Ft;var u=32-pt(a)-1;a&=~(1<<u),n+=1;var o=32-pt(t)+u;if(30<o){var m=u-u%5;o=(a&(1<<m)-1).toString(32),a>>=m,u-=m,Jt=1<<32-pt(t)+u|n<<u|a,Ft=o+e}else Jt=1<<o|n<<u|a,Ft=e}function Ds(e){e.return!==null&&(Xn(e,1),nf(e,1,0))}function Ms(e){for(;e===_i;)_i=Ra[--wa],Ra[wa]=null,Di=Ra[--wa],Ra[wa]=null;for(;e===Qn;)Qn=At[--Ot],At[Ot]=null,Ft=At[--Ot],At[Ot]=null,Jt=At[--Ot],At[Ot]=null}var at=null,je=null,ve=!1,Zn=null,Bt=!1,js=Error(r(519));function Kn(e){var t=Error(r(418,""));throw pl(wt(t,e)),js}function af(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Pe]=e,t[st]=a,n){case"dialog":fe("cancel",t),fe("close",t);break;case"iframe":case"object":case"embed":fe("load",t);break;case"video":case"audio":for(n=0;n<Hl.length;n++)fe(Hl[n],t);break;case"source":fe("error",t);break;case"img":case"image":case"link":fe("error",t),fe("load",t);break;case"details":fe("toggle",t);break;case"input":fe("invalid",t),vc(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),bi(t);break;case"select":fe("invalid",t);break;case"textarea":fe("invalid",t),Sc(t,a.value,a.defaultValue,a.children),bi(t)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||xh(t.textContent,n)?(a.popover!=null&&(fe("beforetoggle",t),fe("toggle",t)),a.onScroll!=null&&fe("scroll",t),a.onScrollEnd!=null&&fe("scrollend",t),a.onClick!=null&&(t.onclick=hu),t=!0):t=!1,t||Kn(e)}function lf(e){for(at=e.return;at;)switch(at.tag){case 5:case 13:Bt=!1;return;case 27:case 3:Bt=!0;return;default:at=at.return}}function dl(e){if(e!==at)return!1;if(!ve)return lf(e),ve=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Wr(e.type,e.memoizedProps)),n=!n),n&&je&&Kn(e),lf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){je=jt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}je=null}}else t===27?(t=je,kn(e.type)?(e=to,to=null,je=e):je=t):je=at?jt(e.stateNode.nextSibling):null;return!0}function hl(){je=at=null,ve=!1}function uf(){var e=Zn;return e!==null&&(ft===null?ft=e:ft.push.apply(ft,e),Zn=null),e}function pl(e){Zn===null?Zn=[e]:Zn.push(e)}var Ls=U(null),Jn=null,Wt=null;function mn(e,t,n){Y(Ls,t._currentValue),t._currentValue=n}function Pt(e){e._currentValue=Ls.current,V(Ls)}function Us(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Hs(e,t,n,a){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var o=u.dependencies;if(o!==null){var m=u.child;o=o.firstContext;e:for(;o!==null;){var v=o;o=u;for(var x=0;x<t.length;x++)if(v.context===t[x]){o.lanes|=n,v=o.alternate,v!==null&&(v.lanes|=n),Us(o.return,n,e),a||(m=null);break e}o=v.next}}else if(u.tag===18){if(m=u.return,m===null)throw Error(r(341));m.lanes|=n,o=m.alternate,o!==null&&(o.lanes|=n),Us(m,n,e),m=null}else m=u.child;if(m!==null)m.return=u;else for(m=u;m!==null;){if(m===e){m=null;break}if(u=m.sibling,u!==null){u.return=m.return,m=u;break}m=m.return}u=m}}function gl(e,t,n,a){e=null;for(var u=t,o=!1;u!==null;){if(!o){if((u.flags&524288)!==0)o=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var m=u.alternate;if(m===null)throw Error(r(387));if(m=m.memoizedProps,m!==null){var v=u.type;gt(u.pendingProps.value,m.value)||(e!==null?e.push(v):e=[v])}}else if(u===dt.current){if(m=u.alternate,m===null)throw Error(r(387));m.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Vl):e=[Vl])}u=u.return}e!==null&&Hs(t,e,n,a),t.flags|=262144}function Mi(e){for(e=e.firstContext;e!==null;){if(!gt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Fn(e){Jn=e,Wt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ie(e){return sf(Jn,e)}function ji(e,t){return Jn===null&&Fn(e),sf(e,t)}function sf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Wt===null){if(e===null)throw Error(r(308));Wt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wt=Wt.next=t;return n}var zm=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},km=i.unstable_scheduleCallback,_m=i.unstable_NormalPriority,Ye={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Bs(){return{controller:new zm,data:new Map,refCount:0}}function ml(e){e.refCount--,e.refCount===0&&km(_m,function(){e.controller.abort()})}var yl=null,qs=0,Na=0,Aa=null;function Dm(e,t){if(yl===null){var n=yl=[];qs=0,Na=$r(),Aa={status:"pending",value:void 0,then:function(a){n.push(a)}}}return qs++,t.then(rf,rf),t}function rf(){if(--qs===0&&yl!==null){Aa!==null&&(Aa.status="fulfilled");var e=yl;yl=null,Na=0,Aa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Mm(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(u){n.push(u)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var u=0;u<n.length;u++)(0,n[u])(t)},function(u){for(a.status="rejected",a.reason=u,u=0;u<n.length;u++)(0,n[u])(void 0)}),a}var of=D.S;D.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Dm(e,t),of!==null&&of(e,t)};var Wn=U(null);function Gs(){var e=Wn.current;return e!==null?e:Oe.pooledCache}function Li(e,t){t===null?Y(Wn,Wn.current):Y(Wn,t.pool)}function cf(){var e=Gs();return e===null?null:{parent:Ye._currentValue,pool:e}}var vl=Error(r(460)),ff=Error(r(474)),Ui=Error(r(542)),$s={then:function(){}};function df(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Hi(){}function hf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Hi,Hi),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,gf(e),e;default:if(typeof t.status=="string")t.then(Hi,Hi);else{if(e=Oe,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=a}},function(a){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,gf(e),e}throw bl=t,vl}}var bl=null;function pf(){if(bl===null)throw Error(r(459));var e=bl;return bl=null,e}function gf(e){if(e===vl||e===Ui)throw Error(r(483))}var yn=!1;function Ys(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Vs(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function vn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function bn(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Se&2)!==0){var u=a.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),a.pending=t,t=zi(e),ef(e,null,n),t}return Ci(e,a,t,n),zi(e)}function Sl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,sc(e,n)}}function Qs(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var u=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?u=o=m:o=o.next=m,n=n.next}while(n!==null);o===null?u=o=t:o=o.next=t}else u=o=t;n={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:o,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Xs=!1;function xl(){if(Xs){var e=Aa;if(e!==null)throw e}}function El(e,t,n,a){Xs=!1;var u=e.updateQueue;yn=!1;var o=u.firstBaseUpdate,m=u.lastBaseUpdate,v=u.shared.pending;if(v!==null){u.shared.pending=null;var x=v,C=x.next;x.next=null,m===null?o=C:m.next=C,m=x;var j=e.alternate;j!==null&&(j=j.updateQueue,v=j.lastBaseUpdate,v!==m&&(v===null?j.firstBaseUpdate=C:v.next=C,j.lastBaseUpdate=x))}if(o!==null){var H=u.baseState;m=0,j=C=x=null,v=o;do{var z=v.lane&-536870913,k=z!==v.lane;if(k?(ge&z)===z:(a&z)===z){z!==0&&z===Na&&(Xs=!0),j!==null&&(j=j.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ne=e,I=v;z=t;var we=n;switch(I.tag){case 1:if(ne=I.payload,typeof ne=="function"){H=ne.call(we,H,z);break e}H=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=I.payload,z=typeof ne=="function"?ne.call(we,H,z):ne,z==null)break e;H=y({},H,z);break e;case 2:yn=!0}}z=v.callback,z!==null&&(e.flags|=64,k&&(e.flags|=8192),k=u.callbacks,k===null?u.callbacks=[z]:k.push(z))}else k={lane:z,tag:v.tag,payload:v.payload,callback:v.callback,next:null},j===null?(C=j=k,x=H):j=j.next=k,m|=z;if(v=v.next,v===null){if(v=u.shared.pending,v===null)break;k=v,v=k.next,k.next=null,u.lastBaseUpdate=k,u.shared.pending=null}}while(!0);j===null&&(x=H),u.baseState=x,u.firstBaseUpdate=C,u.lastBaseUpdate=j,o===null&&(u.shared.lanes=0),An|=m,e.lanes=m,e.memoizedState=H}}function mf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function yf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)mf(n[e],t)}var Oa=U(null),Bi=U(0);function vf(e,t){e=un,Y(Bi,e),Y(Oa,t),un=e|t.baseLanes}function Zs(){Y(Bi,un),Y(Oa,Oa.current)}function Ks(){un=Bi.current,V(Oa),V(Bi)}var Sn=0,re=null,Te=null,qe=null,qi=!1,Ca=!1,Pn=!1,Gi=0,Tl=0,za=null,jm=0;function He(){throw Error(r(321))}function Js(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!gt(e[n],t[n]))return!1;return!0}function Fs(e,t,n,a,u,o){return Sn=o,re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?td:nd,Pn=!1,o=n(a,u),Pn=!1,Ca&&(o=Sf(t,n,a,u)),bf(e),o}function bf(e){D.H=Zi;var t=Te!==null&&Te.next!==null;if(Sn=0,qe=Te=re=null,qi=!1,Tl=0,za=null,t)throw Error(r(300));e===null||Xe||(e=e.dependencies,e!==null&&Mi(e)&&(Xe=!0))}function Sf(e,t,n,a){re=e;var u=0;do{if(Ca&&(za=null),Tl=0,Ca=!1,25<=u)throw Error(r(301));if(u+=1,qe=Te=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}D.H=$m,o=t(n,a)}while(Ca);return o}function Lm(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Rl(t):t,e=e.useState()[0],(Te!==null?Te.memoizedState:null)!==e&&(re.flags|=1024),t}function Ws(){var e=Gi!==0;return Gi=0,e}function Ps(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Is(e){if(qi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}qi=!1}Sn=0,qe=Te=re=null,Ca=!1,Tl=Gi=0,za=null}function ot(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qe===null?re.memoizedState=qe=e:qe=qe.next=e,qe}function Ge(){if(Te===null){var e=re.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=qe===null?re.memoizedState:qe.next;if(t!==null)qe=t,Te=e;else{if(e===null)throw re.alternate===null?Error(r(467)):Error(r(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},qe===null?re.memoizedState=qe=e:qe=qe.next=e}return qe}function er(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Rl(e){var t=Tl;return Tl+=1,za===null&&(za=[]),e=hf(za,e,t),t=re,(qe===null?t.memoizedState:qe.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?td:nd),e}function $i(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Rl(e);if(e.$$typeof===X)return Ie(e)}throw Error(r(438,String(e)))}function tr(e){var t=null,n=re.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=re.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=er(),re.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=ee;return t.index++,n}function It(e,t){return typeof t=="function"?t(e):t}function Yi(e){var t=Ge();return nr(t,Te,e)}function nr(e,t,n){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=n;var u=e.baseQueue,o=a.pending;if(o!==null){if(u!==null){var m=u.next;u.next=o.next,o.next=m}t.baseQueue=u=o,a.pending=null}if(o=e.baseState,u===null)e.memoizedState=o;else{t=u.next;var v=m=null,x=null,C=t,j=!1;do{var H=C.lane&-536870913;if(H!==C.lane?(ge&H)===H:(Sn&H)===H){var z=C.revertLane;if(z===0)x!==null&&(x=x.next={lane:0,revertLane:0,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),H===Na&&(j=!0);else if((Sn&z)===z){C=C.next,z===Na&&(j=!0);continue}else H={lane:0,revertLane:C.revertLane,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},x===null?(v=x=H,m=o):x=x.next=H,re.lanes|=z,An|=z;H=C.action,Pn&&n(o,H),o=C.hasEagerState?C.eagerState:n(o,H)}else z={lane:H,revertLane:C.revertLane,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},x===null?(v=x=z,m=o):x=x.next=z,re.lanes|=H,An|=H;C=C.next}while(C!==null&&C!==t);if(x===null?m=o:x.next=v,!gt(o,e.memoizedState)&&(Xe=!0,j&&(n=Aa,n!==null)))throw n;e.memoizedState=o,e.baseState=m,e.baseQueue=x,a.lastRenderedState=o}return u===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function ar(e){var t=Ge(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var a=n.dispatch,u=n.pending,o=t.memoizedState;if(u!==null){n.pending=null;var m=u=u.next;do o=e(o,m.action),m=m.next;while(m!==u);gt(o,t.memoizedState)||(Xe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function xf(e,t,n){var a=re,u=Ge(),o=ve;if(o){if(n===void 0)throw Error(r(407));n=n()}else n=t();var m=!gt((Te||u).memoizedState,n);m&&(u.memoizedState=n,Xe=!0),u=u.queue;var v=Rf.bind(null,a,u,e);if(wl(2048,8,v,[e]),u.getSnapshot!==t||m||qe!==null&&qe.memoizedState.tag&1){if(a.flags|=2048,ka(9,Vi(),Tf.bind(null,a,u,n,t),null),Oe===null)throw Error(r(349));o||(Sn&124)!==0||Ef(a,t,n)}return n}function Ef(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=re.updateQueue,t===null?(t=er(),re.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Tf(e,t,n,a){t.value=n,t.getSnapshot=a,wf(t)&&Nf(e)}function Rf(e,t,n){return n(function(){wf(t)&&Nf(e)})}function wf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!gt(e,n)}catch{return!0}}function Nf(e){var t=Ea(e,2);t!==null&&xt(t,e,2)}function lr(e){var t=ot();if(typeof e=="function"){var n=e;if(e=n(),Pn){hn(!0);try{n()}finally{hn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:It,lastRenderedState:e},t}function Af(e,t,n,a){return e.baseState=n,nr(e,Te,typeof a=="function"?a:It)}function Um(e,t,n,a,u){if(Xi(e))throw Error(r(485));if(e=t.action,e!==null){var o={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){o.listeners.push(m)}};D.T!==null?n(!0):o.isTransition=!1,a(o),n=t.pending,n===null?(o.next=t.pending=o,Of(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Of(e,t){var n=t.action,a=t.payload,u=e.state;if(t.isTransition){var o=D.T,m={};D.T=m;try{var v=n(u,a),x=D.S;x!==null&&x(m,v),Cf(e,t,v)}catch(C){ir(e,t,C)}finally{D.T=o}}else try{o=n(u,a),Cf(e,t,o)}catch(C){ir(e,t,C)}}function Cf(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){zf(e,t,a)},function(a){return ir(e,t,a)}):zf(e,t,n)}function zf(e,t,n){t.status="fulfilled",t.value=n,kf(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Of(e,n)))}function ir(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,kf(t),t=t.next;while(t!==a)}e.action=null}function kf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function _f(e,t){return t}function Df(e,t){if(ve){var n=Oe.formState;if(n!==null){e:{var a=re;if(ve){if(je){t:{for(var u=je,o=Bt;u.nodeType!==8;){if(!o){u=null;break t}if(u=jt(u.nextSibling),u===null){u=null;break t}}o=u.data,u=o==="F!"||o==="F"?u:null}if(u){je=jt(u.nextSibling),a=u.data==="F!";break e}}Kn(a)}a=!1}a&&(t=n[0])}}return n=ot(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_f,lastRenderedState:t},n.queue=a,n=Pf.bind(null,re,a),a.dispatch=n,a=lr(!1),o=cr.bind(null,re,!1,a.queue),a=ot(),u={state:t,dispatch:null,action:e,pending:null},a.queue=u,n=Um.bind(null,re,u,o,n),u.dispatch=n,a.memoizedState=e,[t,n,!1]}function Mf(e){var t=Ge();return jf(t,Te,e)}function jf(e,t,n){if(t=nr(e,t,_f)[0],e=Yi(It)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Rl(t)}catch(m){throw m===vl?Ui:m}else a=t;t=Ge();var u=t.queue,o=u.dispatch;return n!==t.memoizedState&&(re.flags|=2048,ka(9,Vi(),Hm.bind(null,u,n),null)),[a,o,e]}function Hm(e,t){e.action=t}function Lf(e){var t=Ge(),n=Te;if(n!==null)return jf(t,n,e);Ge(),t=t.memoizedState,n=Ge();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function ka(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=re.updateQueue,t===null&&(t=er(),re.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Vi(){return{destroy:void 0,resource:void 0}}function Uf(){return Ge().memoizedState}function Qi(e,t,n,a){var u=ot();a=a===void 0?null:a,re.flags|=e,u.memoizedState=ka(1|t,Vi(),n,a)}function wl(e,t,n,a){var u=Ge();a=a===void 0?null:a;var o=u.memoizedState.inst;Te!==null&&a!==null&&Js(a,Te.memoizedState.deps)?u.memoizedState=ka(t,o,n,a):(re.flags|=e,u.memoizedState=ka(1|t,o,n,a))}function Hf(e,t){Qi(8390656,8,e,t)}function Bf(e,t){wl(2048,8,e,t)}function qf(e,t){return wl(4,2,e,t)}function Gf(e,t){return wl(4,4,e,t)}function $f(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Yf(e,t,n){n=n!=null?n.concat([e]):null,wl(4,4,$f.bind(null,t,e),n)}function ur(){}function Vf(e,t){var n=Ge();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Js(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Qf(e,t){var n=Ge();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Js(t,a[1]))return a[0];if(a=e(),Pn){hn(!0);try{e()}finally{hn(!1)}}return n.memoizedState=[a,t],a}function sr(e,t,n){return n===void 0||(Sn&1073741824)!==0?e.memoizedState=t:(e.memoizedState=n,e=Kd(),re.lanes|=e,An|=e,n)}function Xf(e,t,n,a){return gt(n,t)?n:Oa.current!==null?(e=sr(e,n,a),gt(e,t)||(Xe=!0),e):(Sn&42)===0?(Xe=!0,e.memoizedState=n):(e=Kd(),re.lanes|=e,An|=e,t)}function Zf(e,t,n,a,u){var o=$.p;$.p=o!==0&&8>o?o:8;var m=D.T,v={};D.T=v,cr(e,!1,t,n);try{var x=u(),C=D.S;if(C!==null&&C(v,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var j=Mm(x,a);Nl(e,t,j,St(e))}else Nl(e,t,a,St(e))}catch(H){Nl(e,t,{then:function(){},status:"rejected",reason:H},St())}finally{$.p=o,D.T=m}}function Bm(){}function rr(e,t,n,a){if(e.tag!==5)throw Error(r(476));var u=Kf(e).queue;Zf(e,u,t,W,n===null?Bm:function(){return Jf(e),n(a)})}function Kf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:It,lastRenderedState:W},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:It,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Jf(e){var t=Kf(e).next.queue;Nl(e,t,{},St())}function or(){return Ie(Vl)}function Ff(){return Ge().memoizedState}function Wf(){return Ge().memoizedState}function qm(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=St();e=vn(n);var a=bn(t,e,n);a!==null&&(xt(a,t,n),Sl(a,t,n)),t={cache:Bs()},e.payload=t;return}t=t.return}}function Gm(e,t,n){var a=St();n={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Xi(e)?If(t,n):(n=Cs(e,t,n,a),n!==null&&(xt(n,e,a),ed(n,t,a)))}function Pf(e,t,n){var a=St();Nl(e,t,n,a)}function Nl(e,t,n,a){var u={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xi(e))If(t,u);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var m=t.lastRenderedState,v=o(m,n);if(u.hasEagerState=!0,u.eagerState=v,gt(v,m))return Ci(e,t,u,0),Oe===null&&Oi(),!1}catch{}finally{}if(n=Cs(e,t,u,a),n!==null)return xt(n,e,a),ed(n,t,a),!0}return!1}function cr(e,t,n,a){if(a={lane:2,revertLane:$r(),action:a,hasEagerState:!1,eagerState:null,next:null},Xi(e)){if(t)throw Error(r(479))}else t=Cs(e,n,a,2),t!==null&&xt(t,e,2)}function Xi(e){var t=e.alternate;return e===re||t!==null&&t===re}function If(e,t){Ca=qi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ed(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,sc(e,n)}}var Zi={readContext:Ie,use:$i,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He},td={readContext:Ie,use:$i,useCallback:function(e,t){return ot().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:Hf,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Qi(4194308,4,$f.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qi(4194308,4,e,t)},useInsertionEffect:function(e,t){Qi(4,2,e,t)},useMemo:function(e,t){var n=ot();t=t===void 0?null:t;var a=e();if(Pn){hn(!0);try{e()}finally{hn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=ot();if(n!==void 0){var u=n(t);if(Pn){hn(!0);try{n(t)}finally{hn(!1)}}}else u=t;return a.memoizedState=a.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},a.queue=e,e=e.dispatch=Gm.bind(null,re,e),[a.memoizedState,e]},useRef:function(e){var t=ot();return e={current:e},t.memoizedState=e},useState:function(e){e=lr(e);var t=e.queue,n=Pf.bind(null,re,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ur,useDeferredValue:function(e,t){var n=ot();return sr(n,e,t)},useTransition:function(){var e=lr(!1);return e=Zf.bind(null,re,e.queue,!0,!1),ot().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=re,u=ot();if(ve){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Oe===null)throw Error(r(349));(ge&124)!==0||Ef(a,t,n)}u.memoizedState=n;var o={value:n,getSnapshot:t};return u.queue=o,Hf(Rf.bind(null,a,o,e),[e]),a.flags|=2048,ka(9,Vi(),Tf.bind(null,a,o,n,t),null),n},useId:function(){var e=ot(),t=Oe.identifierPrefix;if(ve){var n=Ft,a=Jt;n=(a&~(1<<32-pt(a)-1)).toString(32)+n,t="«"+t+"R"+n,n=Gi++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=jm++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:or,useFormState:Df,useActionState:Df,useOptimistic:function(e){var t=ot();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=cr.bind(null,re,!0,n),n.dispatch=t,[e,t]},useMemoCache:tr,useCacheRefresh:function(){return ot().memoizedState=qm.bind(null,re)}},nd={readContext:Ie,use:$i,useCallback:Vf,useContext:Ie,useEffect:Bf,useImperativeHandle:Yf,useInsertionEffect:qf,useLayoutEffect:Gf,useMemo:Qf,useReducer:Yi,useRef:Uf,useState:function(){return Yi(It)},useDebugValue:ur,useDeferredValue:function(e,t){var n=Ge();return Xf(n,Te.memoizedState,e,t)},useTransition:function(){var e=Yi(It)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:Rl(e),t]},useSyncExternalStore:xf,useId:Ff,useHostTransitionStatus:or,useFormState:Mf,useActionState:Mf,useOptimistic:function(e,t){var n=Ge();return Af(n,Te,e,t)},useMemoCache:tr,useCacheRefresh:Wf},$m={readContext:Ie,use:$i,useCallback:Vf,useContext:Ie,useEffect:Bf,useImperativeHandle:Yf,useInsertionEffect:qf,useLayoutEffect:Gf,useMemo:Qf,useReducer:ar,useRef:Uf,useState:function(){return ar(It)},useDebugValue:ur,useDeferredValue:function(e,t){var n=Ge();return Te===null?sr(n,e,t):Xf(n,Te.memoizedState,e,t)},useTransition:function(){var e=ar(It)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:Rl(e),t]},useSyncExternalStore:xf,useId:Ff,useHostTransitionStatus:or,useFormState:Lf,useActionState:Lf,useOptimistic:function(e,t){var n=Ge();return Te!==null?Af(n,Te,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:tr,useCacheRefresh:Wf},_a=null,Al=0;function Ki(e){var t=Al;return Al+=1,_a===null&&(_a=[]),hf(_a,e,t)}function Ol(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ji(e,t){throw t.$$typeof===S?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ad(e){var t=e._init;return t(e._payload)}function ld(e){function t(N,w){if(e){var O=N.deletions;O===null?(N.deletions=[w],N.flags|=16):O.push(w)}}function n(N,w){if(!e)return null;for(;w!==null;)t(N,w),w=w.sibling;return null}function a(N){for(var w=new Map;N!==null;)N.key!==null?w.set(N.key,N):w.set(N.index,N),N=N.sibling;return w}function u(N,w){return N=Kt(N,w),N.index=0,N.sibling=null,N}function o(N,w,O){return N.index=O,e?(O=N.alternate,O!==null?(O=O.index,O<w?(N.flags|=67108866,w):O):(N.flags|=67108866,w)):(N.flags|=1048576,w)}function m(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function v(N,w,O,L){return w===null||w.tag!==6?(w=ks(O,N.mode,L),w.return=N,w):(w=u(w,O),w.return=N,w)}function x(N,w,O,L){var K=O.type;return K===T?j(N,w,O.props.children,L,O.key):w!==null&&(w.elementType===K||typeof K=="object"&&K!==null&&K.$$typeof===ie&&ad(K)===w.type)?(w=u(w,O.props),Ol(w,O),w.return=N,w):(w=ki(O.type,O.key,O.props,null,N.mode,L),Ol(w,O),w.return=N,w)}function C(N,w,O,L){return w===null||w.tag!==4||w.stateNode.containerInfo!==O.containerInfo||w.stateNode.implementation!==O.implementation?(w=_s(O,N.mode,L),w.return=N,w):(w=u(w,O.children||[]),w.return=N,w)}function j(N,w,O,L,K){return w===null||w.tag!==7?(w=Vn(O,N.mode,L,K),w.return=N,w):(w=u(w,O),w.return=N,w)}function H(N,w,O){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=ks(""+w,N.mode,O),w.return=N,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case b:return O=ki(w.type,w.key,w.props,null,N.mode,O),Ol(O,w),O.return=N,O;case _:return w=_s(w,N.mode,O),w.return=N,w;case ie:var L=w._init;return w=L(w._payload),H(N,w,O)}if($e(w)||De(w))return w=Vn(w,N.mode,O,null),w.return=N,w;if(typeof w.then=="function")return H(N,Ki(w),O);if(w.$$typeof===X)return H(N,ji(N,w),O);Ji(N,w)}return null}function z(N,w,O,L){var K=w!==null?w.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return K!==null?null:v(N,w,""+O,L);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case b:return O.key===K?x(N,w,O,L):null;case _:return O.key===K?C(N,w,O,L):null;case ie:return K=O._init,O=K(O._payload),z(N,w,O,L)}if($e(O)||De(O))return K!==null?null:j(N,w,O,L,null);if(typeof O.then=="function")return z(N,w,Ki(O),L);if(O.$$typeof===X)return z(N,w,ji(N,O),L);Ji(N,O)}return null}function k(N,w,O,L,K){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return N=N.get(O)||null,v(w,N,""+L,K);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case b:return N=N.get(L.key===null?O:L.key)||null,x(w,N,L,K);case _:return N=N.get(L.key===null?O:L.key)||null,C(w,N,L,K);case ie:var oe=L._init;return L=oe(L._payload),k(N,w,O,L,K)}if($e(L)||De(L))return N=N.get(O)||null,j(w,N,L,K,null);if(typeof L.then=="function")return k(N,w,O,Ki(L),K);if(L.$$typeof===X)return k(N,w,O,ji(w,L),K);Ji(w,L)}return null}function ne(N,w,O,L){for(var K=null,oe=null,J=w,te=w=0,Ke=null;J!==null&&te<O.length;te++){J.index>te?(Ke=J,J=null):Ke=J.sibling;var ye=z(N,J,O[te],L);if(ye===null){J===null&&(J=Ke);break}e&&J&&ye.alternate===null&&t(N,J),w=o(ye,w,te),oe===null?K=ye:oe.sibling=ye,oe=ye,J=Ke}if(te===O.length)return n(N,J),ve&&Xn(N,te),K;if(J===null){for(;te<O.length;te++)J=H(N,O[te],L),J!==null&&(w=o(J,w,te),oe===null?K=J:oe.sibling=J,oe=J);return ve&&Xn(N,te),K}for(J=a(J);te<O.length;te++)Ke=k(J,N,te,O[te],L),Ke!==null&&(e&&Ke.alternate!==null&&J.delete(Ke.key===null?te:Ke.key),w=o(Ke,w,te),oe===null?K=Ke:oe.sibling=Ke,oe=Ke);return e&&J.forEach(function(Ln){return t(N,Ln)}),ve&&Xn(N,te),K}function I(N,w,O,L){if(O==null)throw Error(r(151));for(var K=null,oe=null,J=w,te=w=0,Ke=null,ye=O.next();J!==null&&!ye.done;te++,ye=O.next()){J.index>te?(Ke=J,J=null):Ke=J.sibling;var Ln=z(N,J,ye.value,L);if(Ln===null){J===null&&(J=Ke);break}e&&J&&Ln.alternate===null&&t(N,J),w=o(Ln,w,te),oe===null?K=Ln:oe.sibling=Ln,oe=Ln,J=Ke}if(ye.done)return n(N,J),ve&&Xn(N,te),K;if(J===null){for(;!ye.done;te++,ye=O.next())ye=H(N,ye.value,L),ye!==null&&(w=o(ye,w,te),oe===null?K=ye:oe.sibling=ye,oe=ye);return ve&&Xn(N,te),K}for(J=a(J);!ye.done;te++,ye=O.next())ye=k(J,N,te,ye.value,L),ye!==null&&(e&&ye.alternate!==null&&J.delete(ye.key===null?te:ye.key),w=o(ye,w,te),oe===null?K=ye:oe.sibling=ye,oe=ye);return e&&J.forEach(function(Yy){return t(N,Yy)}),ve&&Xn(N,te),K}function we(N,w,O,L){if(typeof O=="object"&&O!==null&&O.type===T&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case b:e:{for(var K=O.key;w!==null;){if(w.key===K){if(K=O.type,K===T){if(w.tag===7){n(N,w.sibling),L=u(w,O.props.children),L.return=N,N=L;break e}}else if(w.elementType===K||typeof K=="object"&&K!==null&&K.$$typeof===ie&&ad(K)===w.type){n(N,w.sibling),L=u(w,O.props),Ol(L,O),L.return=N,N=L;break e}n(N,w);break}else t(N,w);w=w.sibling}O.type===T?(L=Vn(O.props.children,N.mode,L,O.key),L.return=N,N=L):(L=ki(O.type,O.key,O.props,null,N.mode,L),Ol(L,O),L.return=N,N=L)}return m(N);case _:e:{for(K=O.key;w!==null;){if(w.key===K)if(w.tag===4&&w.stateNode.containerInfo===O.containerInfo&&w.stateNode.implementation===O.implementation){n(N,w.sibling),L=u(w,O.children||[]),L.return=N,N=L;break e}else{n(N,w);break}else t(N,w);w=w.sibling}L=_s(O,N.mode,L),L.return=N,N=L}return m(N);case ie:return K=O._init,O=K(O._payload),we(N,w,O,L)}if($e(O))return ne(N,w,O,L);if(De(O)){if(K=De(O),typeof K!="function")throw Error(r(150));return O=K.call(O),I(N,w,O,L)}if(typeof O.then=="function")return we(N,w,Ki(O),L);if(O.$$typeof===X)return we(N,w,ji(N,O),L);Ji(N,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,w!==null&&w.tag===6?(n(N,w.sibling),L=u(w,O),L.return=N,N=L):(n(N,w),L=ks(O,N.mode,L),L.return=N,N=L),m(N)):n(N,w)}return function(N,w,O,L){try{Al=0;var K=we(N,w,O,L);return _a=null,K}catch(J){if(J===vl||J===Ui)throw J;var oe=mt(29,J,null,N.mode);return oe.lanes=L,oe.return=N,oe}finally{}}}var Da=ld(!0),id=ld(!1),Ct=U(null),qt=null;function xn(e){var t=e.alternate;Y(Ve,Ve.current&1),Y(Ct,e),qt===null&&(t===null||Oa.current!==null||t.memoizedState!==null)&&(qt=e)}function ud(e){if(e.tag===22){if(Y(Ve,Ve.current),Y(Ct,e),qt===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(qt=e)}}else En()}function En(){Y(Ve,Ve.current),Y(Ct,Ct.current)}function en(e){V(Ct),qt===e&&(qt=null),V(Ve)}var Ve=U(0);function Fi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||eo(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function fr(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:y({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var dr={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=St(),u=vn(a);u.payload=t,n!=null&&(u.callback=n),t=bn(e,u,a),t!==null&&(xt(t,e,a),Sl(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=St(),u=vn(a);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=bn(e,u,a),t!==null&&(xt(t,e,a),Sl(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=St(),a=vn(n);a.tag=2,t!=null&&(a.callback=t),t=bn(e,a,n),t!==null&&(xt(t,e,n),Sl(t,e,n))}};function sd(e,t,n,a,u,o,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,o,m):t.prototype&&t.prototype.isPureReactComponent?!cl(n,a)||!cl(u,o):!0}function rd(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&dr.enqueueReplaceState(t,t.state,null)}function In(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=y({},n));for(var u in e)n[u]===void 0&&(n[u]=e[u])}return n}var Wi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function od(e){Wi(e)}function cd(e){console.error(e)}function fd(e){Wi(e)}function Pi(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function dd(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function hr(e,t,n){return n=vn(n),n.tag=3,n.payload={element:null},n.callback=function(){Pi(e,t)},n}function hd(e){return e=vn(e),e.tag=3,e}function pd(e,t,n,a){var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var o=a.value;e.payload=function(){return u(o)},e.callback=function(){dd(t,n,a)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){dd(t,n,a),typeof u!="function"&&(On===null?On=new Set([this]):On.add(this));var v=a.stack;this.componentDidCatch(a.value,{componentStack:v!==null?v:""})})}function Ym(e,t,n,a,u){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&gl(t,n,u,!0),n=Ct.current,n!==null){switch(n.tag){case 13:return qt===null?Ur():n.alternate===null&&Le===0&&(Le=3),n.flags&=-257,n.flags|=65536,n.lanes=u,a===$s?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),Br(e,a,u)),!1;case 22:return n.flags|=65536,a===$s?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),Br(e,a,u)),!1}throw Error(r(435,n.tag))}return Br(e,a,u),Ur(),!1}if(ve)return t=Ct.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,a!==js&&(e=Error(r(422),{cause:a}),pl(wt(e,n)))):(a!==js&&(t=Error(r(423),{cause:a}),pl(wt(t,n))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,a=wt(a,n),u=hr(e.stateNode,a,u),Qs(e,u),Le!==4&&(Le=2)),!1;var o=Error(r(520),{cause:a});if(o=wt(o,n),jl===null?jl=[o]:jl.push(o),Le!==4&&(Le=2),t===null)return!0;a=wt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=u&-u,n.lanes|=e,e=hr(n.stateNode,a,e),Qs(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(On===null||!On.has(o))))return n.flags|=65536,u&=-u,n.lanes|=u,u=hd(u),pd(u,e,n,a),Qs(n,u),!1}n=n.return}while(n!==null);return!1}var gd=Error(r(461)),Xe=!1;function Je(e,t,n,a){t.child=e===null?id(t,null,n,a):Da(t,e.child,n,a)}function md(e,t,n,a,u){n=n.render;var o=t.ref;if("ref"in a){var m={};for(var v in a)v!=="ref"&&(m[v]=a[v])}else m=a;return Fn(t),a=Fs(e,t,n,m,o,u),v=Ws(),e!==null&&!Xe?(Ps(e,t,u),tn(e,t,u)):(ve&&v&&Ds(t),t.flags|=1,Je(e,t,a,u),t.child)}function yd(e,t,n,a,u){if(e===null){var o=n.type;return typeof o=="function"&&!zs(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,vd(e,t,o,a,u)):(e=ki(n.type,null,a,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!xr(e,u)){var m=o.memoizedProps;if(n=n.compare,n=n!==null?n:cl,n(m,a)&&e.ref===t.ref)return tn(e,t,u)}return t.flags|=1,e=Kt(o,a),e.ref=t.ref,e.return=t,t.child=e}function vd(e,t,n,a,u){if(e!==null){var o=e.memoizedProps;if(cl(o,a)&&e.ref===t.ref)if(Xe=!1,t.pendingProps=a=o,xr(e,u))(e.flags&131072)!==0&&(Xe=!0);else return t.lanes=e.lanes,tn(e,t,u)}return pr(e,t,n,a,u)}function bd(e,t,n){var a=t.pendingProps,u=a.children,o=e!==null?e.memoizedState:null;if(a.mode==="hidden"){if((t.flags&128)!==0){if(a=o!==null?o.baseLanes|n:n,e!==null){for(u=t.child=e.child,o=0;u!==null;)o=o|u.lanes|u.childLanes,u=u.sibling;t.childLanes=o&~a}else t.childLanes=0,t.child=null;return Sd(e,t,a,n)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Li(t,o!==null?o.cachePool:null),o!==null?vf(t,o):Zs(),ud(t);else return t.lanes=t.childLanes=536870912,Sd(e,t,o!==null?o.baseLanes|n:n,n)}else o!==null?(Li(t,o.cachePool),vf(t,o),En(),t.memoizedState=null):(e!==null&&Li(t,null),Zs(),En());return Je(e,t,u,n),t.child}function Sd(e,t,n,a){var u=Gs();return u=u===null?null:{parent:Ye._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&Li(t,null),Zs(),ud(t),e!==null&&gl(e,t,a,!0),null}function Ii(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function pr(e,t,n,a,u){return Fn(t),n=Fs(e,t,n,a,void 0,u),a=Ws(),e!==null&&!Xe?(Ps(e,t,u),tn(e,t,u)):(ve&&a&&Ds(t),t.flags|=1,Je(e,t,n,u),t.child)}function xd(e,t,n,a,u,o){return Fn(t),t.updateQueue=null,n=Sf(t,a,n,u),bf(e),a=Ws(),e!==null&&!Xe?(Ps(e,t,o),tn(e,t,o)):(ve&&a&&Ds(t),t.flags|=1,Je(e,t,n,o),t.child)}function Ed(e,t,n,a,u){if(Fn(t),t.stateNode===null){var o=Ta,m=n.contextType;typeof m=="object"&&m!==null&&(o=Ie(m)),o=new n(a,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=dr,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=a,o.state=t.memoizedState,o.refs={},Ys(t),m=n.contextType,o.context=typeof m=="object"&&m!==null?Ie(m):Ta,o.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(fr(t,n,m,a),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(m=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),m!==o.state&&dr.enqueueReplaceState(o,o.state,null),El(t,a,o,u),xl(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){o=t.stateNode;var v=t.memoizedProps,x=In(n,v);o.props=x;var C=o.context,j=n.contextType;m=Ta,typeof j=="object"&&j!==null&&(m=Ie(j));var H=n.getDerivedStateFromProps;j=typeof H=="function"||typeof o.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,j||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(v||C!==m)&&rd(t,o,a,m),yn=!1;var z=t.memoizedState;o.state=z,El(t,a,o,u),xl(),C=t.memoizedState,v||z!==C||yn?(typeof H=="function"&&(fr(t,n,H,a),C=t.memoizedState),(x=yn||sd(t,n,x,a,z,C,m))?(j||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=C),o.props=a,o.state=C,o.context=m,a=x):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,Vs(e,t),m=t.memoizedProps,j=In(n,m),o.props=j,H=t.pendingProps,z=o.context,C=n.contextType,x=Ta,typeof C=="object"&&C!==null&&(x=Ie(C)),v=n.getDerivedStateFromProps,(C=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(m!==H||z!==x)&&rd(t,o,a,x),yn=!1,z=t.memoizedState,o.state=z,El(t,a,o,u),xl();var k=t.memoizedState;m!==H||z!==k||yn||e!==null&&e.dependencies!==null&&Mi(e.dependencies)?(typeof v=="function"&&(fr(t,n,v,a),k=t.memoizedState),(j=yn||sd(t,n,j,a,z,k,x)||e!==null&&e.dependencies!==null&&Mi(e.dependencies))?(C||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,k,x),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,k,x)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=k),o.props=a,o.state=k,o.context=x,a=j):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),a=!1)}return o=a,Ii(e,t),a=(t.flags&128)!==0,o||a?(o=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&a?(t.child=Da(t,e.child,null,u),t.child=Da(t,null,n,u)):Je(e,t,n,u),t.memoizedState=o.state,e=t.child):e=tn(e,t,u),e}function Td(e,t,n,a){return hl(),t.flags|=256,Je(e,t,n,a),t.child}var gr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mr(e){return{baseLanes:e,cachePool:cf()}}function yr(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=zt),e}function Rd(e,t,n){var a=t.pendingProps,u=!1,o=(t.flags&128)!==0,m;if((m=o)||(m=e!==null&&e.memoizedState===null?!1:(Ve.current&2)!==0),m&&(u=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(ve){if(u?xn(t):En(),ve){var v=je,x;if(x=v){e:{for(x=v,v=Bt;x.nodeType!==8;){if(!v){v=null;break e}if(x=jt(x.nextSibling),x===null){v=null;break e}}v=x}v!==null?(t.memoizedState={dehydrated:v,treeContext:Qn!==null?{id:Jt,overflow:Ft}:null,retryLane:536870912,hydrationErrors:null},x=mt(18,null,null,0),x.stateNode=v,x.return=t,t.child=x,at=t,je=null,x=!0):x=!1}x||Kn(t)}if(v=t.memoizedState,v!==null&&(v=v.dehydrated,v!==null))return eo(v)?t.lanes=32:t.lanes=536870912,null;en(t)}return v=a.children,a=a.fallback,u?(En(),u=t.mode,v=eu({mode:"hidden",children:v},u),a=Vn(a,u,n,null),v.return=t,a.return=t,v.sibling=a,t.child=v,u=t.child,u.memoizedState=mr(n),u.childLanes=yr(e,m,n),t.memoizedState=gr,a):(xn(t),vr(t,v))}if(x=e.memoizedState,x!==null&&(v=x.dehydrated,v!==null)){if(o)t.flags&256?(xn(t),t.flags&=-257,t=br(e,t,n)):t.memoizedState!==null?(En(),t.child=e.child,t.flags|=128,t=null):(En(),u=a.fallback,v=t.mode,a=eu({mode:"visible",children:a.children},v),u=Vn(u,v,n,null),u.flags|=2,a.return=t,u.return=t,a.sibling=u,t.child=a,Da(t,e.child,null,n),a=t.child,a.memoizedState=mr(n),a.childLanes=yr(e,m,n),t.memoizedState=gr,t=u);else if(xn(t),eo(v)){if(m=v.nextSibling&&v.nextSibling.dataset,m)var C=m.dgst;m=C,a=Error(r(419)),a.stack="",a.digest=m,pl({value:a,source:null,stack:null}),t=br(e,t,n)}else if(Xe||gl(e,t,n,!1),m=(n&e.childLanes)!==0,Xe||m){if(m=Oe,m!==null&&(a=n&-n,a=(a&42)!==0?1:ts(a),a=(a&(m.suspendedLanes|n))!==0?0:a,a!==0&&a!==x.retryLane))throw x.retryLane=a,Ea(e,a),xt(m,e,a),gd;v.data==="$?"||Ur(),t=br(e,t,n)}else v.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=x.treeContext,je=jt(v.nextSibling),at=t,ve=!0,Zn=null,Bt=!1,e!==null&&(At[Ot++]=Jt,At[Ot++]=Ft,At[Ot++]=Qn,Jt=e.id,Ft=e.overflow,Qn=t),t=vr(t,a.children),t.flags|=4096);return t}return u?(En(),u=a.fallback,v=t.mode,x=e.child,C=x.sibling,a=Kt(x,{mode:"hidden",children:a.children}),a.subtreeFlags=x.subtreeFlags&65011712,C!==null?u=Kt(C,u):(u=Vn(u,v,n,null),u.flags|=2),u.return=t,a.return=t,a.sibling=u,t.child=a,a=u,u=t.child,v=e.child.memoizedState,v===null?v=mr(n):(x=v.cachePool,x!==null?(C=Ye._currentValue,x=x.parent!==C?{parent:C,pool:C}:x):x=cf(),v={baseLanes:v.baseLanes|n,cachePool:x}),u.memoizedState=v,u.childLanes=yr(e,m,n),t.memoizedState=gr,a):(xn(t),n=e.child,e=n.sibling,n=Kt(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=n,t.memoizedState=null,n)}function vr(e,t){return t=eu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function eu(e,t){return e=mt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function br(e,t,n){return Da(t,e.child,null,n),e=vr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wd(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Us(e.return,t,n)}function Sr(e,t,n,a,u){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:u}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=a,o.tail=n,o.tailMode=u)}function Nd(e,t,n){var a=t.pendingProps,u=a.revealOrder,o=a.tail;if(Je(e,t,a.children,n),a=Ve.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wd(e,n,t);else if(e.tag===19)wd(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}switch(Y(Ve,a),u){case"forwards":for(n=t.child,u=null;n!==null;)e=n.alternate,e!==null&&Fi(e)===null&&(u=n),n=n.sibling;n=u,n===null?(u=t.child,t.child=null):(u=n.sibling,n.sibling=null),Sr(t,!1,u,n,o);break;case"backwards":for(n=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&Fi(e)===null){t.child=u;break}e=u.sibling,u.sibling=n,n=u,u=e}Sr(t,!0,n,null,o);break;case"together":Sr(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function tn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),An|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(gl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=Kt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Kt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function xr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Mi(e)))}function Vm(e,t,n){switch(t.tag){case 3:ze(t,t.stateNode.containerInfo),mn(t,Ye,e.memoizedState.cache),hl();break;case 27:case 5:Fu(t);break;case 4:ze(t,t.stateNode.containerInfo);break;case 10:mn(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(xn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Rd(e,t,n):(xn(t),e=tn(e,t,n),e!==null?e.sibling:null);xn(t);break;case 19:var u=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(gl(e,t,n,!1),a=(n&t.childLanes)!==0),u){if(a)return Nd(e,t,n);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Y(Ve,Ve.current),a)break;return null;case 22:case 23:return t.lanes=0,bd(e,t,n);case 24:mn(t,Ye,e.memoizedState.cache)}return tn(e,t,n)}function Ad(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Xe=!0;else{if(!xr(e,n)&&(t.flags&128)===0)return Xe=!1,Vm(e,t,n);Xe=(e.flags&131072)!==0}else Xe=!1,ve&&(t.flags&1048576)!==0&&nf(t,Di,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var a=t.elementType,u=a._init;if(a=u(a._payload),t.type=a,typeof a=="function")zs(a)?(e=In(a,e),t.tag=1,t=Ed(null,t,a,e,n)):(t.tag=0,t=pr(null,t,a,e,n));else{if(a!=null){if(u=a.$$typeof,u===F){t.tag=11,t=md(null,t,a,e,n);break e}else if(u===le){t.tag=14,t=yd(null,t,a,e,n);break e}}throw t=Ce(a)||a,Error(r(306,t,""))}}return t;case 0:return pr(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,u=In(a,t.pendingProps),Ed(e,t,a,u,n);case 3:e:{if(ze(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var o=t.memoizedState;u=o.element,Vs(e,t),El(t,a,null,n);var m=t.memoizedState;if(a=m.cache,mn(t,Ye,a),a!==o.cache&&Hs(t,[Ye],n,!0),xl(),a=m.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Td(e,t,a,n);break e}else if(a!==u){u=wt(Error(r(424)),t),pl(u),t=Td(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(je=jt(e.firstChild),at=t,ve=!0,Zn=null,Bt=!0,n=id(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(hl(),a===u){t=tn(e,t,n);break e}Je(e,t,a,n)}t=t.child}return t;case 26:return Ii(e,t),e===null?(n=kh(t.type,null,t.pendingProps,null))?t.memoizedState=n:ve||(n=t.type,e=t.pendingProps,a=pu(ue.current).createElement(n),a[Pe]=t,a[st]=e,We(a,n,e),Qe(a),t.stateNode=a):t.memoizedState=kh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Fu(t),e===null&&ve&&(a=t.stateNode=Oh(t.type,t.pendingProps,ue.current),at=t,Bt=!0,u=je,kn(t.type)?(to=u,je=jt(a.firstChild)):je=u),Je(e,t,t.pendingProps.children,n),Ii(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ve&&((u=a=je)&&(a=vy(a,t.type,t.pendingProps,Bt),a!==null?(t.stateNode=a,at=t,je=jt(a.firstChild),Bt=!1,u=!0):u=!1),u||Kn(t)),Fu(t),u=t.type,o=t.pendingProps,m=e!==null?e.memoizedProps:null,a=o.children,Wr(u,o)?a=null:m!==null&&Wr(u,m)&&(t.flags|=32),t.memoizedState!==null&&(u=Fs(e,t,Lm,null,null,n),Vl._currentValue=u),Ii(e,t),Je(e,t,a,n),t.child;case 6:return e===null&&ve&&((e=n=je)&&(n=by(n,t.pendingProps,Bt),n!==null?(t.stateNode=n,at=t,je=null,e=!0):e=!1),e||Kn(t)),null;case 13:return Rd(e,t,n);case 4:return ze(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Da(t,null,a,n):Je(e,t,a,n),t.child;case 11:return md(e,t,t.type,t.pendingProps,n);case 7:return Je(e,t,t.pendingProps,n),t.child;case 8:return Je(e,t,t.pendingProps.children,n),t.child;case 12:return Je(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,mn(t,t.type,a.value),Je(e,t,a.children,n),t.child;case 9:return u=t.type._context,a=t.pendingProps.children,Fn(t),u=Ie(u),a=a(u),t.flags|=1,Je(e,t,a,n),t.child;case 14:return yd(e,t,t.type,t.pendingProps,n);case 15:return vd(e,t,t.type,t.pendingProps,n);case 19:return Nd(e,t,n);case 31:return a=t.pendingProps,n=t.mode,a={mode:a.mode,children:a.children},e===null?(n=eu(a,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=Kt(e.child,a),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return bd(e,t,n);case 24:return Fn(t),a=Ie(Ye),e===null?(u=Gs(),u===null&&(u=Oe,o=Bs(),u.pooledCache=o,o.refCount++,o!==null&&(u.pooledCacheLanes|=n),u=o),t.memoizedState={parent:a,cache:u},Ys(t),mn(t,Ye,u)):((e.lanes&n)!==0&&(Vs(e,t),El(t,null,null,n),xl()),u=e.memoizedState,o=t.memoizedState,u.parent!==a?(u={parent:a,cache:a},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),mn(t,Ye,a)):(a=o.cache,mn(t,Ye,a),a!==u.cache&&Hs(t,[Ye],n,!0))),Je(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function nn(e){e.flags|=4}function Od(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Lh(t)){if(t=Ct.current,t!==null&&((ge&4194048)===ge?qt!==null:(ge&62914560)!==ge&&(ge&536870912)===0||t!==qt))throw bl=$s,ff;e.flags|=8192}}function tu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ic():536870912,e.lanes|=t,Ua|=t)}function Cl(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Me(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var u=e.child;u!==null;)n|=u.lanes|u.childLanes,a|=u.subtreeFlags&65011712,a|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)n|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function Qm(e,t,n){var a=t.pendingProps;switch(Ms(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Me(t),null;case 1:return Me(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Pt(Ye),dn(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(dl(t)?nn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,uf())),Me(t),null;case 26:return n=t.memoizedState,e===null?(nn(t),n!==null?(Me(t),Od(t,n)):(Me(t),t.flags&=-16777217)):n?n!==e.memoizedState?(nn(t),Me(t),Od(t,n)):(Me(t),t.flags&=-16777217):(e.memoizedProps!==a&&nn(t),Me(t),t.flags&=-16777217),null;case 27:di(t),n=ue.current;var u=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==a&&nn(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Me(t),null}e=P.current,dl(t)?af(t):(e=Oh(u,a,n),t.stateNode=e,nn(t))}return Me(t),null;case 5:if(di(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&nn(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Me(t),null}if(e=P.current,dl(t))af(t);else{switch(u=pu(ue.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof a.is=="string"?u.createElement("select",{is:a.is}):u.createElement("select"),a.multiple?e.multiple=!0:a.size&&(e.size=a.size);break;default:e=typeof a.is=="string"?u.createElement(n,{is:a.is}):u.createElement(n)}}e[Pe]=t,e[st]=a;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)e.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=e;e:switch(We(e,n,a),n){case"button":case"input":case"select":case"textarea":e=!!a.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&nn(t)}}return Me(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&nn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=ue.current,dl(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,u=at,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}e[Pe]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||xh(e.nodeValue,n)),e||Kn(t)}else e=pu(e).createTextNode(a),e[Pe]=t,t.stateNode=e}return Me(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=dl(t),a!==null&&a.dehydrated!==null){if(e===null){if(!u)throw Error(r(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[Pe]=t}else hl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Me(t),u=!1}else u=uf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(en(t),t):(en(t),null)}if(en(t),(t.flags&128)!==0)return t.lanes=n,t;if(n=a!==null,e=e!==null&&e.memoizedState!==null,n){a=t.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool);var o=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==u&&(a.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),tu(t,t.updateQueue),Me(t),null;case 4:return dn(),e===null&&Xr(t.stateNode.containerInfo),Me(t),null;case 10:return Pt(t.type),Me(t),null;case 19:if(V(Ve),u=t.memoizedState,u===null)return Me(t),null;if(a=(t.flags&128)!==0,o=u.rendering,o===null)if(a)Cl(u,!1);else{if(Le!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Fi(e),o!==null){for(t.flags|=128,Cl(u,!1),e=o.updateQueue,t.updateQueue=e,tu(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)tf(n,e),n=n.sibling;return Y(Ve,Ve.current&1|2),t.child}e=e.sibling}u.tail!==null&&Ht()>lu&&(t.flags|=128,a=!0,Cl(u,!1),t.lanes=4194304)}else{if(!a)if(e=Fi(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,tu(t,e),Cl(u,!0),u.tail===null&&u.tailMode==="hidden"&&!o.alternate&&!ve)return Me(t),null}else 2*Ht()-u.renderingStartTime>lu&&n!==536870912&&(t.flags|=128,a=!0,Cl(u,!1),t.lanes=4194304);u.isBackwards?(o.sibling=t.child,t.child=o):(e=u.last,e!==null?e.sibling=o:t.child=o,u.last=o)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Ht(),t.sibling=null,e=Ve.current,Y(Ve,a?e&1|2:e&1),t):(Me(t),null);case 22:case 23:return en(t),Ks(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),n=t.updateQueue,n!==null&&tu(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&V(Wn),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Pt(Ye),Me(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Xm(e,t){switch(Ms(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pt(Ye),dn(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return di(t),null;case 13:if(en(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));hl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(Ve),null;case 4:return dn(),null;case 10:return Pt(t.type),null;case 22:case 23:return en(t),Ks(),e!==null&&V(Wn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Pt(Ye),null;case 25:return null;default:return null}}function Cd(e,t){switch(Ms(t),t.tag){case 3:Pt(Ye),dn();break;case 26:case 27:case 5:di(t);break;case 4:dn();break;case 13:en(t);break;case 19:V(Ve);break;case 10:Pt(t.type);break;case 22:case 23:en(t),Ks(),e!==null&&V(Wn);break;case 24:Pt(Ye)}}function zl(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;do{if((n.tag&e)===e){a=void 0;var o=n.create,m=n.inst;a=o(),m.destroy=a}n=n.next}while(n!==u)}}catch(v){Ne(t,t.return,v)}}function Tn(e,t,n){try{var a=t.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var o=u.next;a=o;do{if((a.tag&e)===e){var m=a.inst,v=m.destroy;if(v!==void 0){m.destroy=void 0,u=t;var x=n,C=v;try{C()}catch(j){Ne(u,x,j)}}}a=a.next}while(a!==o)}}catch(j){Ne(t,t.return,j)}}function zd(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{yf(t,n)}catch(a){Ne(e,e.return,a)}}}function kd(e,t,n){n.props=In(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Ne(e,t,a)}}function kl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(u){Ne(e,t,u)}}function Gt(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(u){Ne(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){Ne(e,t,u)}else n.current=null}function _d(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(u){Ne(e,e.return,u)}}function Er(e,t,n){try{var a=e.stateNode;hy(a,e.type,n,t),a[st]=t}catch(u){Ne(e,e.return,u)}}function Dd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&kn(e.type)||e.tag===4}function Tr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Dd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&kn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Rr(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=hu));else if(a!==4&&(a===27&&kn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Rr(e,t,n),e=e.sibling;e!==null;)Rr(e,t,n),e=e.sibling}function nu(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&kn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(nu(e,t,n),e=e.sibling;e!==null;)nu(e,t,n),e=e.sibling}function Md(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);We(t,a,n),t[Pe]=e,t[st]=n}catch(o){Ne(e,e.return,o)}}var an=!1,Be=!1,wr=!1,jd=typeof WeakSet=="function"?WeakSet:Set,Ze=null;function Zm(e,t){if(e=e.containerInfo,Jr=Su,e=Qc(e),Ts(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var u=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var m=0,v=-1,x=-1,C=0,j=0,H=e,z=null;t:for(;;){for(var k;H!==n||u!==0&&H.nodeType!==3||(v=m+u),H!==o||a!==0&&H.nodeType!==3||(x=m+a),H.nodeType===3&&(m+=H.nodeValue.length),(k=H.firstChild)!==null;)z=H,H=k;for(;;){if(H===e)break t;if(z===n&&++C===u&&(v=m),z===o&&++j===a&&(x=m),(k=H.nextSibling)!==null)break;H=z,z=H.parentNode}H=k}n=v===-1||x===-1?null:{start:v,end:x}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fr={focusedElem:e,selectionRange:n},Su=!1,Ze=t;Ze!==null;)if(t=Ze,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Ze=e;else for(;Ze!==null;){switch(t=Ze,o=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,u=o.memoizedProps,o=o.memoizedState,a=n.stateNode;try{var ne=In(n.type,u,n.elementType===n.type);e=a.getSnapshotBeforeUpdate(ne,o),a.__reactInternalSnapshotBeforeUpdate=e}catch(I){Ne(n,n.return,I)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Ir(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ir(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,Ze=e;break}Ze=t.return}}function Ld(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Rn(e,n),a&4&&zl(5,n);break;case 1:if(Rn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){Ne(n,n.return,m)}else{var u=In(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Ne(n,n.return,m)}}a&64&&zd(n),a&512&&kl(n,n.return);break;case 3:if(Rn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{yf(e,t)}catch(m){Ne(n,n.return,m)}}break;case 27:t===null&&a&4&&Md(n);case 26:case 5:Rn(e,n),t===null&&a&4&&_d(n),a&512&&kl(n,n.return);break;case 12:Rn(e,n);break;case 13:Rn(e,n),a&4&&Bd(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=ny.bind(null,n),Sy(e,n))));break;case 22:if(a=n.memoizedState!==null||an,!a){t=t!==null&&t.memoizedState!==null||Be,u=an;var o=Be;an=a,(Be=t)&&!o?wn(e,n,(n.subtreeFlags&8772)!==0):Rn(e,n),an=u,Be=o}break;case 30:break;default:Rn(e,n)}}function Ud(e){var t=e.alternate;t!==null&&(e.alternate=null,Ud(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ls(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ke=null,ct=!1;function ln(e,t,n){for(n=n.child;n!==null;)Hd(e,t,n),n=n.sibling}function Hd(e,t,n){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(Pa,n)}catch{}switch(n.tag){case 26:Be||Gt(n,t),ln(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Be||Gt(n,t);var a=ke,u=ct;kn(n.type)&&(ke=n.stateNode,ct=!1),ln(e,t,n),ql(n.stateNode),ke=a,ct=u;break;case 5:Be||Gt(n,t);case 6:if(a=ke,u=ct,ke=null,ln(e,t,n),ke=a,ct=u,ke!==null)if(ct)try{(ke.nodeType===9?ke.body:ke.nodeName==="HTML"?ke.ownerDocument.body:ke).removeChild(n.stateNode)}catch(o){Ne(n,t,o)}else try{ke.removeChild(n.stateNode)}catch(o){Ne(n,t,o)}break;case 18:ke!==null&&(ct?(e=ke,Nh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Kl(e)):Nh(ke,n.stateNode));break;case 4:a=ke,u=ct,ke=n.stateNode.containerInfo,ct=!0,ln(e,t,n),ke=a,ct=u;break;case 0:case 11:case 14:case 15:Be||Tn(2,n,t),Be||Tn(4,n,t),ln(e,t,n);break;case 1:Be||(Gt(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&kd(n,t,a)),ln(e,t,n);break;case 21:ln(e,t,n);break;case 22:Be=(a=Be)||n.memoizedState!==null,ln(e,t,n),Be=a;break;default:ln(e,t,n)}}function Bd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Kl(e)}catch(n){Ne(t,t.return,n)}}function Km(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new jd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new jd),t;default:throw Error(r(435,e.tag))}}function Nr(e,t){var n=Km(e);t.forEach(function(a){var u=ay.bind(null,e,a);n.has(a)||(n.add(a),a.then(u,u))})}function yt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var u=n[a],o=e,m=t,v=m;e:for(;v!==null;){switch(v.tag){case 27:if(kn(v.type)){ke=v.stateNode,ct=!1;break e}break;case 5:ke=v.stateNode,ct=!1;break e;case 3:case 4:ke=v.stateNode.containerInfo,ct=!0;break e}v=v.return}if(ke===null)throw Error(r(160));Hd(o,m,u),ke=null,ct=!1,o=u.alternate,o!==null&&(o.return=null),u.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)qd(t,e),t=t.sibling}var Mt=null;function qd(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:yt(t,e),vt(e),a&4&&(Tn(3,e,e.return),zl(3,e),Tn(5,e,e.return));break;case 1:yt(t,e),vt(e),a&512&&(Be||n===null||Gt(n,n.return)),a&64&&an&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var u=Mt;if(yt(t,e),vt(e),a&512&&(Be||n===null||Gt(n,n.return)),a&4){var o=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,u=u.ownerDocument||u;t:switch(a){case"title":o=u.getElementsByTagName("title")[0],(!o||o[tl]||o[Pe]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=u.createElement(a),u.head.insertBefore(o,u.querySelector("head > title"))),We(o,a,n),o[Pe]=e,Qe(o),a=o;break e;case"link":var m=Mh("link","href",u).get(a+(n.href||""));if(m){for(var v=0;v<m.length;v++)if(o=m[v],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(v,1);break t}}o=u.createElement(a),We(o,a,n),u.head.appendChild(o);break;case"meta":if(m=Mh("meta","content",u).get(a+(n.content||""))){for(v=0;v<m.length;v++)if(o=m[v],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(v,1);break t}}o=u.createElement(a),We(o,a,n),u.head.appendChild(o);break;default:throw Error(r(468,a))}o[Pe]=e,Qe(o),a=o}e.stateNode=a}else jh(u,e.type,e.stateNode);else e.stateNode=Dh(u,a,e.memoizedProps);else o!==a?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,a===null?jh(u,e.type,e.stateNode):Dh(u,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Er(e,e.memoizedProps,n.memoizedProps)}break;case 27:yt(t,e),vt(e),a&512&&(Be||n===null||Gt(n,n.return)),n!==null&&a&4&&Er(e,e.memoizedProps,n.memoizedProps);break;case 5:if(yt(t,e),vt(e),a&512&&(Be||n===null||Gt(n,n.return)),e.flags&32){u=e.stateNode;try{ga(u,"")}catch(k){Ne(e,e.return,k)}}a&4&&e.stateNode!=null&&(u=e.memoizedProps,Er(e,u,n!==null?n.memoizedProps:u)),a&1024&&(wr=!0);break;case 6:if(yt(t,e),vt(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(k){Ne(e,e.return,k)}}break;case 3:if(yu=null,u=Mt,Mt=gu(t.containerInfo),yt(t,e),Mt=u,vt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Kl(t.containerInfo)}catch(k){Ne(e,e.return,k)}wr&&(wr=!1,Gd(e));break;case 4:a=Mt,Mt=gu(e.stateNode.containerInfo),yt(t,e),vt(e),Mt=a;break;case 12:yt(t,e),vt(e);break;case 13:yt(t,e),vt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(_r=Ht()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Nr(e,a)));break;case 22:u=e.memoizedState!==null;var x=n!==null&&n.memoizedState!==null,C=an,j=Be;if(an=C||u,Be=j||x,yt(t,e),Be=j,an=C,vt(e),a&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(n===null||x||an||Be||ea(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){x=n=t;try{if(o=x.stateNode,u)m=o.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{v=x.stateNode;var H=x.memoizedProps.style,z=H!=null&&H.hasOwnProperty("display")?H.display:null;v.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(k){Ne(x,x.return,k)}}}else if(t.tag===6){if(n===null){x=t;try{x.stateNode.nodeValue=u?"":x.memoizedProps}catch(k){Ne(x,x.return,k)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Nr(e,n))));break;case 19:yt(t,e),vt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Nr(e,a)));break;case 30:break;case 21:break;default:yt(t,e),vt(e)}}function vt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Dd(a)){n=a;break}a=a.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var u=n.stateNode,o=Tr(e);nu(e,o,u);break;case 5:var m=n.stateNode;n.flags&32&&(ga(m,""),n.flags&=-33);var v=Tr(e);nu(e,v,m);break;case 3:case 4:var x=n.stateNode.containerInfo,C=Tr(e);Rr(e,C,x);break;default:throw Error(r(161))}}catch(j){Ne(e,e.return,j)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Gd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Gd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Rn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Ld(e,t.alternate,t),t=t.sibling}function ea(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Tn(4,t,t.return),ea(t);break;case 1:Gt(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&kd(t,t.return,n),ea(t);break;case 27:ql(t.stateNode);case 26:case 5:Gt(t,t.return),ea(t);break;case 22:t.memoizedState===null&&ea(t);break;case 30:ea(t);break;default:ea(t)}e=e.sibling}}function wn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,u=e,o=t,m=o.flags;switch(o.tag){case 0:case 11:case 15:wn(u,o,n),zl(4,o);break;case 1:if(wn(u,o,n),a=o,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(C){Ne(a,a.return,C)}if(a=o,u=a.updateQueue,u!==null){var v=a.stateNode;try{var x=u.shared.hiddenCallbacks;if(x!==null)for(u.shared.hiddenCallbacks=null,u=0;u<x.length;u++)mf(x[u],v)}catch(C){Ne(a,a.return,C)}}n&&m&64&&zd(o),kl(o,o.return);break;case 27:Md(o);case 26:case 5:wn(u,o,n),n&&a===null&&m&4&&_d(o),kl(o,o.return);break;case 12:wn(u,o,n);break;case 13:wn(u,o,n),n&&m&4&&Bd(u,o);break;case 22:o.memoizedState===null&&wn(u,o,n),kl(o,o.return);break;case 30:break;default:wn(u,o,n)}t=t.sibling}}function Ar(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ml(n))}function Or(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ml(e))}function $t(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)$d(e,t,n,a),t=t.sibling}function $d(e,t,n,a){var u=t.flags;switch(t.tag){case 0:case 11:case 15:$t(e,t,n,a),u&2048&&zl(9,t);break;case 1:$t(e,t,n,a);break;case 3:$t(e,t,n,a),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ml(e)));break;case 12:if(u&2048){$t(e,t,n,a),e=t.stateNode;try{var o=t.memoizedProps,m=o.id,v=o.onPostCommit;typeof v=="function"&&v(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(x){Ne(t,t.return,x)}}else $t(e,t,n,a);break;case 13:$t(e,t,n,a);break;case 23:break;case 22:o=t.stateNode,m=t.alternate,t.memoizedState!==null?o._visibility&2?$t(e,t,n,a):_l(e,t):o._visibility&2?$t(e,t,n,a):(o._visibility|=2,Ma(e,t,n,a,(t.subtreeFlags&10256)!==0)),u&2048&&Ar(m,t);break;case 24:$t(e,t,n,a),u&2048&&Or(t.alternate,t);break;default:$t(e,t,n,a)}}function Ma(e,t,n,a,u){for(u=u&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var o=e,m=t,v=n,x=a,C=m.flags;switch(m.tag){case 0:case 11:case 15:Ma(o,m,v,x,u),zl(8,m);break;case 23:break;case 22:var j=m.stateNode;m.memoizedState!==null?j._visibility&2?Ma(o,m,v,x,u):_l(o,m):(j._visibility|=2,Ma(o,m,v,x,u)),u&&C&2048&&Ar(m.alternate,m);break;case 24:Ma(o,m,v,x,u),u&&C&2048&&Or(m.alternate,m);break;default:Ma(o,m,v,x,u)}t=t.sibling}}function _l(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,u=a.flags;switch(a.tag){case 22:_l(n,a),u&2048&&Ar(a.alternate,a);break;case 24:_l(n,a),u&2048&&Or(a.alternate,a);break;default:_l(n,a)}t=t.sibling}}var Dl=8192;function ja(e){if(e.subtreeFlags&Dl)for(e=e.child;e!==null;)Yd(e),e=e.sibling}function Yd(e){switch(e.tag){case 26:ja(e),e.flags&Dl&&e.memoizedState!==null&&Dy(Mt,e.memoizedState,e.memoizedProps);break;case 5:ja(e);break;case 3:case 4:var t=Mt;Mt=gu(e.stateNode.containerInfo),ja(e),Mt=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Dl,Dl=16777216,ja(e),Dl=t):ja(e));break;default:ja(e)}}function Vd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ml(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Ze=a,Xd(a,e)}Vd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Qd(e),e=e.sibling}function Qd(e){switch(e.tag){case 0:case 11:case 15:Ml(e),e.flags&2048&&Tn(9,e,e.return);break;case 3:Ml(e);break;case 12:Ml(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,au(e)):Ml(e);break;default:Ml(e)}}function au(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Ze=a,Xd(a,e)}Vd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Tn(8,t,t.return),au(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,au(t));break;default:au(t)}e=e.sibling}}function Xd(e,t){for(;Ze!==null;){var n=Ze;switch(n.tag){case 0:case 11:case 15:Tn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:ml(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Ze=a;else e:for(n=e;Ze!==null;){a=Ze;var u=a.sibling,o=a.return;if(Ud(a),a===n){Ze=null;break e}if(u!==null){u.return=o,Ze=u;break e}Ze=o}}}var Jm={getCacheForType:function(e){var t=Ie(Ye),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},Fm=typeof WeakMap=="function"?WeakMap:Map,Se=0,Oe=null,ce=null,ge=0,xe=0,bt=null,Nn=!1,La=!1,Cr=!1,un=0,Le=0,An=0,ta=0,zr=0,zt=0,Ua=0,jl=null,ft=null,kr=!1,_r=0,lu=1/0,iu=null,On=null,Fe=0,Cn=null,Ha=null,Ba=0,Dr=0,Mr=null,Zd=null,Ll=0,jr=null;function St(){if((Se&2)!==0&&ge!==0)return ge&-ge;if(D.T!==null){var e=Na;return e!==0?e:$r()}return rc()}function Kd(){zt===0&&(zt=(ge&536870912)===0||ve?lc():536870912);var e=Ct.current;return e!==null&&(e.flags|=32),zt}function xt(e,t,n){(e===Oe&&(xe===2||xe===9)||e.cancelPendingCommit!==null)&&(qa(e,0),zn(e,ge,zt,!1)),el(e,n),((Se&2)===0||e!==Oe)&&(e===Oe&&((Se&2)===0&&(ta|=n),Le===4&&zn(e,ge,zt,!1)),Yt(e))}function Jd(e,t,n){if((Se&6)!==0)throw Error(r(327));var a=!n&&(t&124)===0&&(t&e.expiredLanes)===0||Ia(e,t),u=a?Im(e,t):Hr(e,t,!0),o=a;do{if(u===0){La&&!a&&zn(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Wm(n)){u=Hr(e,t,!1),o=!1;continue}if(u===2){if(o=t,e.errorRecoveryDisabledLanes&o)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var v=e;u=jl;var x=v.current.memoizedState.isDehydrated;if(x&&(qa(v,m).flags|=256),m=Hr(v,m,!1),m!==2){if(Cr&&!x){v.errorRecoveryDisabledLanes|=o,ta|=o,u=4;break e}o=ft,ft=u,o!==null&&(ft===null?ft=o:ft.push.apply(ft,o))}u=m}if(o=!1,u!==2)continue}}if(u===1){qa(e,0),zn(e,t,0,!0);break}e:{switch(a=e,o=u,o){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:zn(a,t,zt,!Nn);break e;case 2:ft=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(u=_r+300-Ht(),10<u)){if(zn(a,t,zt,!Nn),mi(a,0,!0)!==0)break e;a.timeoutHandle=Rh(Fd.bind(null,a,n,ft,iu,kr,t,zt,ta,Ua,Nn,o,2,-0,0),u);break e}Fd(a,n,ft,iu,kr,t,zt,ta,Ua,Nn,o,0,-0,0)}}break}while(!0);Yt(e)}function Fd(e,t,n,a,u,o,m,v,x,C,j,H,z,k){if(e.timeoutHandle=-1,H=t.subtreeFlags,(H&8192||(H&16785408)===16785408)&&(Yl={stylesheets:null,count:0,unsuspend:_y},Yd(t),H=My(),H!==null)){e.cancelPendingCommit=H(ah.bind(null,e,t,o,n,a,u,m,v,x,j,1,z,k)),zn(e,o,m,!C);return}ah(e,t,o,n,a,u,m,v,x)}function Wm(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var u=n[a],o=u.getSnapshot;u=u.value;try{if(!gt(o(),u))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function zn(e,t,n,a){t&=~zr,t&=~ta,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var u=t;0<u;){var o=31-pt(u),m=1<<o;a[o]=-1,u&=~m}n!==0&&uc(e,n,t)}function uu(){return(Se&6)===0?(Ul(0),!1):!0}function Lr(){if(ce!==null){if(xe===0)var e=ce.return;else e=ce,Wt=Jn=null,Is(e),_a=null,Al=0,e=ce;for(;e!==null;)Cd(e.alternate,e),e=e.return;ce=null}}function qa(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,gy(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Lr(),Oe=e,ce=n=Kt(e.current,null),ge=t,xe=0,bt=null,Nn=!1,La=Ia(e,t),Cr=!1,Ua=zt=zr=ta=An=Le=0,ft=jl=null,kr=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var u=31-pt(a),o=1<<u;t|=e[u],a&=~o}return un=t,Oi(),n}function Wd(e,t){re=null,D.H=Zi,t===vl||t===Ui?(t=pf(),xe=3):t===ff?(t=pf(),xe=4):xe=t===gd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,bt=t,ce===null&&(Le=1,Pi(e,wt(t,e.current)))}function Pd(){var e=D.H;return D.H=Zi,e===null?Zi:e}function Id(){var e=D.A;return D.A=Jm,e}function Ur(){Le=4,Nn||(ge&4194048)!==ge&&Ct.current!==null||(La=!0),(An&134217727)===0&&(ta&134217727)===0||Oe===null||zn(Oe,ge,zt,!1)}function Hr(e,t,n){var a=Se;Se|=2;var u=Pd(),o=Id();(Oe!==e||ge!==t)&&(iu=null,qa(e,t)),t=!1;var m=Le;e:do try{if(xe!==0&&ce!==null){var v=ce,x=bt;switch(xe){case 8:Lr(),m=6;break e;case 3:case 2:case 9:case 6:Ct.current===null&&(t=!0);var C=xe;if(xe=0,bt=null,Ga(e,v,x,C),n&&La){m=0;break e}break;default:C=xe,xe=0,bt=null,Ga(e,v,x,C)}}Pm(),m=Le;break}catch(j){Wd(e,j)}while(!0);return t&&e.shellSuspendCounter++,Wt=Jn=null,Se=a,D.H=u,D.A=o,ce===null&&(Oe=null,ge=0,Oi()),m}function Pm(){for(;ce!==null;)eh(ce)}function Im(e,t){var n=Se;Se|=2;var a=Pd(),u=Id();Oe!==e||ge!==t?(iu=null,lu=Ht()+500,qa(e,t)):La=Ia(e,t);e:do try{if(xe!==0&&ce!==null){t=ce;var o=bt;t:switch(xe){case 1:xe=0,bt=null,Ga(e,t,o,1);break;case 2:case 9:if(df(o)){xe=0,bt=null,th(t);break}t=function(){xe!==2&&xe!==9||Oe!==e||(xe=7),Yt(e)},o.then(t,t);break e;case 3:xe=7;break e;case 4:xe=5;break e;case 7:df(o)?(xe=0,bt=null,th(t)):(xe=0,bt=null,Ga(e,t,o,7));break;case 5:var m=null;switch(ce.tag){case 26:m=ce.memoizedState;case 5:case 27:var v=ce;if(!m||Lh(m)){xe=0,bt=null;var x=v.sibling;if(x!==null)ce=x;else{var C=v.return;C!==null?(ce=C,su(C)):ce=null}break t}}xe=0,bt=null,Ga(e,t,o,5);break;case 6:xe=0,bt=null,Ga(e,t,o,6);break;case 8:Lr(),Le=6;break e;default:throw Error(r(462))}}ey();break}catch(j){Wd(e,j)}while(!0);return Wt=Jn=null,D.H=a,D.A=u,Se=n,ce!==null?0:(Oe=null,ge=0,Oi(),Le)}function ey(){for(;ce!==null&&!Eg();)eh(ce)}function eh(e){var t=Ad(e.alternate,e,un);e.memoizedProps=e.pendingProps,t===null?su(e):ce=t}function th(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=xd(n,t,t.pendingProps,t.type,void 0,ge);break;case 11:t=xd(n,t,t.pendingProps,t.type.render,t.ref,ge);break;case 5:Is(t);default:Cd(n,t),t=ce=tf(t,un),t=Ad(n,t,un)}e.memoizedProps=e.pendingProps,t===null?su(e):ce=t}function Ga(e,t,n,a){Wt=Jn=null,Is(t),_a=null,Al=0;var u=t.return;try{if(Ym(e,u,t,n,ge)){Le=1,Pi(e,wt(n,e.current)),ce=null;return}}catch(o){if(u!==null)throw ce=u,o;Le=1,Pi(e,wt(n,e.current)),ce=null;return}t.flags&32768?(ve||a===1?e=!0:La||(ge&536870912)!==0?e=!1:(Nn=e=!0,(a===2||a===9||a===3||a===6)&&(a=Ct.current,a!==null&&a.tag===13&&(a.flags|=16384))),nh(t,e)):su(t)}function su(e){var t=e;do{if((t.flags&32768)!==0){nh(t,Nn);return}e=t.return;var n=Qm(t.alternate,t,un);if(n!==null){ce=n;return}if(t=t.sibling,t!==null){ce=t;return}ce=t=e}while(t!==null);Le===0&&(Le=5)}function nh(e,t){do{var n=Xm(e.alternate,e);if(n!==null){n.flags&=32767,ce=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ce=e;return}ce=e=n}while(e!==null);Le=6,ce=null}function ah(e,t,n,a,u,o,m,v,x){e.cancelPendingCommit=null;do ru();while(Fe!==0);if((Se&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(o=t.lanes|t.childLanes,o|=Os,_g(e,n,o,m,v,x),e===Oe&&(ce=Oe=null,ge=0),Ha=t,Cn=e,Ba=n,Dr=o,Mr=u,Zd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ly(hi,function(){return rh(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null,u=$.p,$.p=2,m=Se,Se|=4;try{Zm(e,t,n)}finally{Se=m,$.p=u,D.T=a}}Fe=1,lh(),ih(),uh()}}function lh(){if(Fe===1){Fe=0;var e=Cn,t=Ha,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=D.T,D.T=null;var a=$.p;$.p=2;var u=Se;Se|=4;try{qd(t,e);var o=Fr,m=Qc(e.containerInfo),v=o.focusedElem,x=o.selectionRange;if(m!==v&&v&&v.ownerDocument&&Vc(v.ownerDocument.documentElement,v)){if(x!==null&&Ts(v)){var C=x.start,j=x.end;if(j===void 0&&(j=C),"selectionStart"in v)v.selectionStart=C,v.selectionEnd=Math.min(j,v.value.length);else{var H=v.ownerDocument||document,z=H&&H.defaultView||window;if(z.getSelection){var k=z.getSelection(),ne=v.textContent.length,I=Math.min(x.start,ne),we=x.end===void 0?I:Math.min(x.end,ne);!k.extend&&I>we&&(m=we,we=I,I=m);var N=Yc(v,I),w=Yc(v,we);if(N&&w&&(k.rangeCount!==1||k.anchorNode!==N.node||k.anchorOffset!==N.offset||k.focusNode!==w.node||k.focusOffset!==w.offset)){var O=H.createRange();O.setStart(N.node,N.offset),k.removeAllRanges(),I>we?(k.addRange(O),k.extend(w.node,w.offset)):(O.setEnd(w.node,w.offset),k.addRange(O))}}}}for(H=[],k=v;k=k.parentNode;)k.nodeType===1&&H.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<H.length;v++){var L=H[v];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}Su=!!Jr,Fr=Jr=null}finally{Se=u,$.p=a,D.T=n}}e.current=t,Fe=2}}function ih(){if(Fe===2){Fe=0;var e=Cn,t=Ha,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=D.T,D.T=null;var a=$.p;$.p=2;var u=Se;Se|=4;try{Ld(e,t.alternate,t)}finally{Se=u,$.p=a,D.T=n}}Fe=3}}function uh(){if(Fe===4||Fe===3){Fe=0,Tg();var e=Cn,t=Ha,n=Ba,a=Zd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Fe=5:(Fe=0,Ha=Cn=null,sh(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(On=null),ns(n),t=t.stateNode,ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot(Pa,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=D.T,u=$.p,$.p=2,D.T=null;try{for(var o=e.onRecoverableError,m=0;m<a.length;m++){var v=a[m];o(v.value,{componentStack:v.stack})}}finally{D.T=t,$.p=u}}(Ba&3)!==0&&ru(),Yt(e),u=e.pendingLanes,(n&4194090)!==0&&(u&42)!==0?e===jr?Ll++:(Ll=0,jr=e):Ll=0,Ul(0)}}function sh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ml(t)))}function ru(e){return lh(),ih(),uh(),rh()}function rh(){if(Fe!==5)return!1;var e=Cn,t=Dr;Dr=0;var n=ns(Ba),a=D.T,u=$.p;try{$.p=32>n?32:n,D.T=null,n=Mr,Mr=null;var o=Cn,m=Ba;if(Fe=0,Ha=Cn=null,Ba=0,(Se&6)!==0)throw Error(r(331));var v=Se;if(Se|=4,Qd(o.current),$d(o,o.current,m,n),Se=v,Ul(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(Pa,o)}catch{}return!0}finally{$.p=u,D.T=a,sh(e,t)}}function oh(e,t,n){t=wt(n,t),t=hr(e.stateNode,t,2),e=bn(e,t,2),e!==null&&(el(e,2),Yt(e))}function Ne(e,t,n){if(e.tag===3)oh(e,e,n);else for(;t!==null;){if(t.tag===3){oh(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(On===null||!On.has(a))){e=wt(n,e),n=hd(2),a=bn(t,n,2),a!==null&&(pd(n,a,t,e),el(a,2),Yt(a));break}}t=t.return}}function Br(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Fm;var u=new Set;a.set(t,u)}else u=a.get(t),u===void 0&&(u=new Set,a.set(t,u));u.has(n)||(Cr=!0,u.add(n),e=ty.bind(null,e,t,n),t.then(e,e))}function ty(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Oe===e&&(ge&n)===n&&(Le===4||Le===3&&(ge&62914560)===ge&&300>Ht()-_r?(Se&2)===0&&qa(e,0):zr|=n,Ua===ge&&(Ua=0)),Yt(e)}function ch(e,t){t===0&&(t=ic()),e=Ea(e,t),e!==null&&(el(e,t),Yt(e))}function ny(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ch(e,n)}function ay(e,t){var n=0;switch(e.tag){case 13:var a=e.stateNode,u=e.memoizedState;u!==null&&(n=u.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),ch(e,n)}function ly(e,t){return Pu(e,t)}var ou=null,$a=null,qr=!1,cu=!1,Gr=!1,na=0;function Yt(e){e!==$a&&e.next===null&&($a===null?ou=$a=e:$a=$a.next=e),cu=!0,qr||(qr=!0,uy())}function Ul(e,t){if(!Gr&&cu){Gr=!0;do for(var n=!1,a=ou;a!==null;){if(e!==0){var u=a.pendingLanes;if(u===0)var o=0;else{var m=a.suspendedLanes,v=a.pingedLanes;o=(1<<31-pt(42|e)+1)-1,o&=u&~(m&~v),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,ph(a,o))}else o=ge,o=mi(a,a===Oe?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(o&3)===0||Ia(a,o)||(n=!0,ph(a,o));a=a.next}while(n);Gr=!1}}function iy(){fh()}function fh(){cu=qr=!1;var e=0;na!==0&&(py()&&(e=na),na=0);for(var t=Ht(),n=null,a=ou;a!==null;){var u=a.next,o=dh(a,t);o===0?(a.next=null,n===null?ou=u:n.next=u,u===null&&($a=n)):(n=a,(e!==0||(o&3)!==0)&&(cu=!0)),a=u}Ul(e)}function dh(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,u=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var m=31-pt(o),v=1<<m,x=u[m];x===-1?((v&n)===0||(v&a)!==0)&&(u[m]=kg(v,t)):x<=t&&(e.expiredLanes|=v),o&=~v}if(t=Oe,n=ge,n=mi(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(xe===2||xe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Iu(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ia(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Iu(a),ns(n)){case 2:case 8:n=nc;break;case 32:n=hi;break;case 268435456:n=ac;break;default:n=hi}return a=hh.bind(null,e),n=Pu(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Iu(a),e.callbackPriority=2,e.callbackNode=null,2}function hh(e,t){if(Fe!==0&&Fe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ru()&&e.callbackNode!==n)return null;var a=ge;return a=mi(e,e===Oe?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Jd(e,a,t),dh(e,Ht()),e.callbackNode!=null&&e.callbackNode===n?hh.bind(null,e):null)}function ph(e,t){if(ru())return null;Jd(e,t,!0)}function uy(){my(function(){(Se&6)!==0?Pu(tc,iy):fh()})}function $r(){return na===0&&(na=lc()),na}function gh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:xi(""+e)}function mh(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function sy(e,t,n,a,u){if(t==="submit"&&n&&n.stateNode===u){var o=gh((u[st]||null).action),m=a.submitter;m&&(t=(t=m[st]||null)?gh(t.formAction):m.getAttribute("formAction"),t!==null&&(o=t,m=null));var v=new wi("action","action",null,a,u);e.push({event:v,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(na!==0){var x=m?mh(u,m):new FormData(u);rr(n,{pending:!0,data:x,method:u.method,action:o},null,x)}}else typeof o=="function"&&(v.preventDefault(),x=m?mh(u,m):new FormData(u),rr(n,{pending:!0,data:x,method:u.method,action:o},o,x))},currentTarget:u}]})}}for(var Yr=0;Yr<As.length;Yr++){var Vr=As[Yr],ry=Vr.toLowerCase(),oy=Vr[0].toUpperCase()+Vr.slice(1);Dt(ry,"on"+oy)}Dt(Kc,"onAnimationEnd"),Dt(Jc,"onAnimationIteration"),Dt(Fc,"onAnimationStart"),Dt("dblclick","onDoubleClick"),Dt("focusin","onFocus"),Dt("focusout","onBlur"),Dt(Nm,"onTransitionRun"),Dt(Am,"onTransitionStart"),Dt(Om,"onTransitionCancel"),Dt(Wc,"onTransitionEnd"),da("onMouseEnter",["mouseout","mouseover"]),da("onMouseLeave",["mouseout","mouseover"]),da("onPointerEnter",["pointerout","pointerover"]),da("onPointerLeave",["pointerout","pointerover"]),qn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),qn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),qn("onBeforeInput",["compositionend","keypress","textInput","paste"]),qn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),qn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),qn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),cy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Hl));function yh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],u=a.event;a=a.listeners;e:{var o=void 0;if(t)for(var m=a.length-1;0<=m;m--){var v=a[m],x=v.instance,C=v.currentTarget;if(v=v.listener,x!==o&&u.isPropagationStopped())break e;o=v,u.currentTarget=C;try{o(u)}catch(j){Wi(j)}u.currentTarget=null,o=x}else for(m=0;m<a.length;m++){if(v=a[m],x=v.instance,C=v.currentTarget,v=v.listener,x!==o&&u.isPropagationStopped())break e;o=v,u.currentTarget=C;try{o(u)}catch(j){Wi(j)}u.currentTarget=null,o=x}}}}function fe(e,t){var n=t[as];n===void 0&&(n=t[as]=new Set);var a=e+"__bubble";n.has(a)||(vh(t,e,2,!1),n.add(a))}function Qr(e,t,n){var a=0;t&&(a|=4),vh(n,e,a,t)}var fu="_reactListening"+Math.random().toString(36).slice(2);function Xr(e){if(!e[fu]){e[fu]=!0,cc.forEach(function(n){n!=="selectionchange"&&(cy.has(n)||Qr(n,!1,e),Qr(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fu]||(t[fu]=!0,Qr("selectionchange",!1,t))}}function vh(e,t,n,a){switch($h(t)){case 2:var u=Uy;break;case 8:u=Hy;break;default:u=uo}n=u.bind(null,t,n,e),u=void 0,!ps||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),a?u!==void 0?e.addEventListener(t,n,{capture:!0,passive:u}):e.addEventListener(t,n,!0):u!==void 0?e.addEventListener(t,n,{passive:u}):e.addEventListener(t,n,!1)}function Zr(e,t,n,a,u){var o=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var m=a.tag;if(m===3||m===4){var v=a.stateNode.containerInfo;if(v===u)break;if(m===4)for(m=a.return;m!==null;){var x=m.tag;if((x===3||x===4)&&m.stateNode.containerInfo===u)return;m=m.return}for(;v!==null;){if(m=oa(v),m===null)return;if(x=m.tag,x===5||x===6||x===26||x===27){a=o=m;continue e}v=v.parentNode}}a=a.return}Rc(function(){var C=o,j=ds(n),H=[];e:{var z=Pc.get(e);if(z!==void 0){var k=wi,ne=e;switch(e){case"keypress":if(Ti(n)===0)break e;case"keydown":case"keyup":k=lm;break;case"focusin":ne="focus",k=vs;break;case"focusout":ne="blur",k=vs;break;case"beforeblur":case"afterblur":k=vs;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=Ac;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=Xg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=sm;break;case Kc:case Jc:case Fc:k=Jg;break;case Wc:k=om;break;case"scroll":case"scrollend":k=Vg;break;case"wheel":k=fm;break;case"copy":case"cut":case"paste":k=Wg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=Cc;break;case"toggle":case"beforetoggle":k=hm}var I=(t&4)!==0,we=!I&&(e==="scroll"||e==="scrollend"),N=I?z!==null?z+"Capture":null:z;I=[];for(var w=C,O;w!==null;){var L=w;if(O=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||O===null||N===null||(L=al(w,N),L!=null&&I.push(Bl(w,L,O))),we)break;w=w.return}0<I.length&&(z=new k(z,ne,null,n,j),H.push({event:z,listeners:I}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",z&&n!==fs&&(ne=n.relatedTarget||n.fromElement)&&(oa(ne)||ne[ra]))break e;if((k||z)&&(z=j.window===j?j:(z=j.ownerDocument)?z.defaultView||z.parentWindow:window,k?(ne=n.relatedTarget||n.toElement,k=C,ne=ne?oa(ne):null,ne!==null&&(we=f(ne),I=ne.tag,ne!==we||I!==5&&I!==27&&I!==6)&&(ne=null)):(k=null,ne=C),k!==ne)){if(I=Ac,L="onMouseLeave",N="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(I=Cc,L="onPointerLeave",N="onPointerEnter",w="pointer"),we=k==null?z:nl(k),O=ne==null?z:nl(ne),z=new I(L,w+"leave",k,n,j),z.target=we,z.relatedTarget=O,L=null,oa(j)===C&&(I=new I(N,w+"enter",ne,n,j),I.target=O,I.relatedTarget=we,L=I),we=L,k&&ne)t:{for(I=k,N=ne,w=0,O=I;O;O=Ya(O))w++;for(O=0,L=N;L;L=Ya(L))O++;for(;0<w-O;)I=Ya(I),w--;for(;0<O-w;)N=Ya(N),O--;for(;w--;){if(I===N||N!==null&&I===N.alternate)break t;I=Ya(I),N=Ya(N)}I=null}else I=null;k!==null&&bh(H,z,k,I,!1),ne!==null&&we!==null&&bh(H,we,ne,I,!0)}}e:{if(z=C?nl(C):window,k=z.nodeName&&z.nodeName.toLowerCase(),k==="select"||k==="input"&&z.type==="file")var K=Uc;else if(jc(z))if(Hc)K=Tm;else{K=xm;var oe=Sm}else k=z.nodeName,!k||k.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?C&&cs(C.elementType)&&(K=Uc):K=Em;if(K&&(K=K(e,C))){Lc(H,K,n,j);break e}oe&&oe(e,z,C),e==="focusout"&&C&&z.type==="number"&&C.memoizedProps.value!=null&&os(z,"number",z.value)}switch(oe=C?nl(C):window,e){case"focusin":(jc(oe)||oe.contentEditable==="true")&&(ba=oe,Rs=C,fl=null);break;case"focusout":fl=Rs=ba=null;break;case"mousedown":ws=!0;break;case"contextmenu":case"mouseup":case"dragend":ws=!1,Xc(H,n,j);break;case"selectionchange":if(wm)break;case"keydown":case"keyup":Xc(H,n,j)}var J;if(Ss)e:{switch(e){case"compositionstart":var te="onCompositionStart";break e;case"compositionend":te="onCompositionEnd";break e;case"compositionupdate":te="onCompositionUpdate";break e}te=void 0}else va?Dc(e,n)&&(te="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(te="onCompositionStart");te&&(zc&&n.locale!=="ko"&&(va||te!=="onCompositionStart"?te==="onCompositionEnd"&&va&&(J=wc()):(gn=j,gs="value"in gn?gn.value:gn.textContent,va=!0)),oe=du(C,te),0<oe.length&&(te=new Oc(te,e,null,n,j),H.push({event:te,listeners:oe}),J?te.data=J:(J=Mc(n),J!==null&&(te.data=J)))),(J=gm?mm(e,n):ym(e,n))&&(te=du(C,"onBeforeInput"),0<te.length&&(oe=new Oc("onBeforeInput","beforeinput",null,n,j),H.push({event:oe,listeners:te}),oe.data=J)),sy(H,e,C,n,j)}yh(H,t)})}function Bl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function du(e,t){for(var n=t+"Capture",a=[];e!==null;){var u=e,o=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||o===null||(u=al(e,n),u!=null&&a.unshift(Bl(e,u,o)),u=al(e,t),u!=null&&a.push(Bl(e,u,o))),e.tag===3)return a;e=e.return}return[]}function Ya(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function bh(e,t,n,a,u){for(var o=t._reactName,m=[];n!==null&&n!==a;){var v=n,x=v.alternate,C=v.stateNode;if(v=v.tag,x!==null&&x===a)break;v!==5&&v!==26&&v!==27||C===null||(x=C,u?(C=al(n,o),C!=null&&m.unshift(Bl(n,C,x))):u||(C=al(n,o),C!=null&&m.push(Bl(n,C,x)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var fy=/\r\n?/g,dy=/\u0000|\uFFFD/g;function Sh(e){return(typeof e=="string"?e:""+e).replace(fy,`
57
- `).replace(dy,"")}function xh(e,t){return t=Sh(t),Sh(e)===t}function hu(){}function Re(e,t,n,a,u,o){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ga(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ga(e,""+a);break;case"className":vi(e,"class",a);break;case"tabIndex":vi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":vi(e,n,a);break;case"style":Ec(e,a,o);break;case"data":if(t!=="object"){vi(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=xi(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&Re(e,t,"name",u.name,u,null),Re(e,t,"formEncType",u.formEncType,u,null),Re(e,t,"formMethod",u.formMethod,u,null),Re(e,t,"formTarget",u.formTarget,u,null)):(Re(e,t,"encType",u.encType,u,null),Re(e,t,"method",u.method,u,null),Re(e,t,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=xi(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=hu);break;case"onScroll":a!=null&&fe("scroll",e);break;case"onScrollEnd":a!=null&&fe("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=xi(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":fe("beforetoggle",e),fe("toggle",e),yi(e,"popover",a);break;case"xlinkActuate":Xt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Xt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Xt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Xt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Xt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Xt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":yi(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=$g.get(n)||n,yi(e,n,a))}}function Kr(e,t,n,a,u,o){switch(n){case"style":Ec(e,a,o);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof a=="string"?ga(e,a):(typeof a=="number"||typeof a=="bigint")&&ga(e,""+a);break;case"onScroll":a!=null&&fe("scroll",e);break;case"onScrollEnd":a!=null&&fe("scrollend",e);break;case"onClick":a!=null&&(e.onclick=hu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fc.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(u=n.endsWith("Capture"),t=n.slice(2,u?n.length-7:void 0),o=e[st]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,u),typeof a=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,u);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):yi(e,n,a)}}}function We(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":fe("error",e),fe("load",e);var a=!1,u=!1,o;for(o in n)if(n.hasOwnProperty(o)){var m=n[o];if(m!=null)switch(o){case"src":a=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Re(e,t,o,m,n,null)}}u&&Re(e,t,"srcSet",n.srcSet,n,null),a&&Re(e,t,"src",n.src,n,null);return;case"input":fe("invalid",e);var v=o=m=u=null,x=null,C=null;for(a in n)if(n.hasOwnProperty(a)){var j=n[a];if(j!=null)switch(a){case"name":u=j;break;case"type":m=j;break;case"checked":x=j;break;case"defaultChecked":C=j;break;case"value":o=j;break;case"defaultValue":v=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(137,t));break;default:Re(e,t,a,j,n,null)}}vc(e,o,v,x,C,m,u,!1),bi(e);return;case"select":fe("invalid",e),a=m=o=null;for(u in n)if(n.hasOwnProperty(u)&&(v=n[u],v!=null))switch(u){case"value":o=v;break;case"defaultValue":m=v;break;case"multiple":a=v;default:Re(e,t,u,v,n,null)}t=o,n=m,e.multiple=!!a,t!=null?pa(e,!!a,t,!1):n!=null&&pa(e,!!a,n,!0);return;case"textarea":fe("invalid",e),o=u=a=null;for(m in n)if(n.hasOwnProperty(m)&&(v=n[m],v!=null))switch(m){case"value":a=v;break;case"defaultValue":u=v;break;case"children":o=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:Re(e,t,m,v,n,null)}Sc(e,a,u,o),bi(e);return;case"option":for(x in n)if(n.hasOwnProperty(x)&&(a=n[x],a!=null))switch(x){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Re(e,t,x,a,n,null)}return;case"dialog":fe("beforetoggle",e),fe("toggle",e),fe("cancel",e),fe("close",e);break;case"iframe":case"object":fe("load",e);break;case"video":case"audio":for(a=0;a<Hl.length;a++)fe(Hl[a],e);break;case"image":fe("error",e),fe("load",e);break;case"details":fe("toggle",e);break;case"embed":case"source":case"link":fe("error",e),fe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(C in n)if(n.hasOwnProperty(C)&&(a=n[C],a!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Re(e,t,C,a,n,null)}return;default:if(cs(t)){for(j in n)n.hasOwnProperty(j)&&(a=n[j],a!==void 0&&Kr(e,t,j,a,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(a=n[v],a!=null&&Re(e,t,v,a,n,null))}function hy(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,o=null,m=null,v=null,x=null,C=null,j=null;for(k in n){var H=n[k];if(n.hasOwnProperty(k)&&H!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":x=H;default:a.hasOwnProperty(k)||Re(e,t,k,null,a,H)}}for(var z in a){var k=a[z];if(H=n[z],a.hasOwnProperty(z)&&(k!=null||H!=null))switch(z){case"type":o=k;break;case"name":u=k;break;case"checked":C=k;break;case"defaultChecked":j=k;break;case"value":m=k;break;case"defaultValue":v=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(137,t));break;default:k!==H&&Re(e,t,z,k,a,H)}}rs(e,m,v,x,C,j,o,u);return;case"select":k=m=v=z=null;for(o in n)if(x=n[o],n.hasOwnProperty(o)&&x!=null)switch(o){case"value":break;case"multiple":k=x;default:a.hasOwnProperty(o)||Re(e,t,o,null,a,x)}for(u in a)if(o=a[u],x=n[u],a.hasOwnProperty(u)&&(o!=null||x!=null))switch(u){case"value":z=o;break;case"defaultValue":v=o;break;case"multiple":m=o;default:o!==x&&Re(e,t,u,o,a,x)}t=v,n=m,a=k,z!=null?pa(e,!!n,z,!1):!!a!=!!n&&(t!=null?pa(e,!!n,t,!0):pa(e,!!n,n?[]:"",!1));return;case"textarea":k=z=null;for(v in n)if(u=n[v],n.hasOwnProperty(v)&&u!=null&&!a.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Re(e,t,v,null,a,u)}for(m in a)if(u=a[m],o=n[m],a.hasOwnProperty(m)&&(u!=null||o!=null))switch(m){case"value":z=u;break;case"defaultValue":k=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==o&&Re(e,t,m,u,a,o)}bc(e,z,k);return;case"option":for(var ne in n)if(z=n[ne],n.hasOwnProperty(ne)&&z!=null&&!a.hasOwnProperty(ne))switch(ne){case"selected":e.selected=!1;break;default:Re(e,t,ne,null,a,z)}for(x in a)if(z=a[x],k=n[x],a.hasOwnProperty(x)&&z!==k&&(z!=null||k!=null))switch(x){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Re(e,t,x,z,a,k)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var I in n)z=n[I],n.hasOwnProperty(I)&&z!=null&&!a.hasOwnProperty(I)&&Re(e,t,I,null,a,z);for(C in a)if(z=a[C],k=n[C],a.hasOwnProperty(C)&&z!==k&&(z!=null||k!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,t));break;default:Re(e,t,C,z,a,k)}return;default:if(cs(t)){for(var we in n)z=n[we],n.hasOwnProperty(we)&&z!==void 0&&!a.hasOwnProperty(we)&&Kr(e,t,we,void 0,a,z);for(j in a)z=a[j],k=n[j],!a.hasOwnProperty(j)||z===k||z===void 0&&k===void 0||Kr(e,t,j,z,a,k);return}}for(var N in n)z=n[N],n.hasOwnProperty(N)&&z!=null&&!a.hasOwnProperty(N)&&Re(e,t,N,null,a,z);for(H in a)z=a[H],k=n[H],!a.hasOwnProperty(H)||z===k||z==null&&k==null||Re(e,t,H,z,a,k)}var Jr=null,Fr=null;function pu(e){return e.nodeType===9?e:e.ownerDocument}function Eh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Th(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Wr(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Pr=null;function py(){var e=window.event;return e&&e.type==="popstate"?e===Pr?!1:(Pr=e,!0):(Pr=null,!1)}var Rh=typeof setTimeout=="function"?setTimeout:void 0,gy=typeof clearTimeout=="function"?clearTimeout:void 0,wh=typeof Promise=="function"?Promise:void 0,my=typeof queueMicrotask=="function"?queueMicrotask:typeof wh<"u"?function(e){return wh.resolve(null).then(e).catch(yy)}:Rh;function yy(e){setTimeout(function(){throw e})}function kn(e){return e==="head"}function Nh(e,t){var n=t,a=0,u=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(0<a&&8>a){n=a;var m=e.ownerDocument;if(n&1&&ql(m.documentElement),n&2&&ql(m.body),n&4)for(n=m.head,ql(n),m=n.firstChild;m;){var v=m.nextSibling,x=m.nodeName;m[tl]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&m.rel.toLowerCase()==="stylesheet"||n.removeChild(m),m=v}}if(u===0){e.removeChild(o),Kl(t);return}u--}else n==="$"||n==="$?"||n==="$!"?u++:a=n.charCodeAt(0)-48;else a=0;n=o}while(n);Kl(t)}function Ir(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ir(n),ls(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function vy(e,t,n,a){for(;e.nodeType===1;){var u=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[tl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=jt(e.nextSibling),e===null)break}return null}function by(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=jt(e.nextSibling),e===null))return null;return e}function eo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Sy(e,t){var n=e.ownerDocument;if(e.data!=="$?"||n.readyState==="complete")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function jt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var to=null;function Ah(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}function Oh(e,t,n){switch(t=pu(n),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function ql(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ls(e)}var kt=new Map,Ch=new Set;function gu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var sn=$.d;$.d={f:xy,r:Ey,D:Ty,C:Ry,L:wy,m:Ny,X:Oy,S:Ay,M:Cy};function xy(){var e=sn.f(),t=uu();return e||t}function Ey(e){var t=ca(e);t!==null&&t.tag===5&&t.type==="form"?Jf(t):sn.r(e)}var Va=typeof document>"u"?null:document;function zh(e,t,n){var a=Va;if(a&&typeof t=="string"&&t){var u=Rt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),Ch.has(u)||(Ch.add(u),e={rel:e,crossOrigin:n,href:t},a.querySelector(u)===null&&(t=a.createElement("link"),We(t,"link",e),Qe(t),a.head.appendChild(t)))}}function Ty(e){sn.D(e),zh("dns-prefetch",e,null)}function Ry(e,t){sn.C(e,t),zh("preconnect",e,t)}function wy(e,t,n){sn.L(e,t,n);var a=Va;if(a&&e&&t){var u='link[rel="preload"][as="'+Rt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+Rt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+Rt(n.imageSizes)+'"]')):u+='[href="'+Rt(e)+'"]';var o=u;switch(t){case"style":o=Qa(e);break;case"script":o=Xa(e)}kt.has(o)||(e=y({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),kt.set(o,e),a.querySelector(u)!==null||t==="style"&&a.querySelector(Gl(o))||t==="script"&&a.querySelector($l(o))||(t=a.createElement("link"),We(t,"link",e),Qe(t),a.head.appendChild(t)))}}function Ny(e,t){sn.m(e,t);var n=Va;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Rt(a)+'"][href="'+Rt(e)+'"]',o=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Xa(e)}if(!kt.has(o)&&(e=y({rel:"modulepreload",href:e},t),kt.set(o,e),n.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector($l(o)))return}a=n.createElement("link"),We(a,"link",e),Qe(a),n.head.appendChild(a)}}}function Ay(e,t,n){sn.S(e,t,n);var a=Va;if(a&&e){var u=fa(a).hoistableStyles,o=Qa(e);t=t||"default";var m=u.get(o);if(!m){var v={loading:0,preload:null};if(m=a.querySelector(Gl(o)))v.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},n),(n=kt.get(o))&&no(e,n);var x=m=a.createElement("link");Qe(x),We(x,"link",e),x._p=new Promise(function(C,j){x.onload=C,x.onerror=j}),x.addEventListener("load",function(){v.loading|=1}),x.addEventListener("error",function(){v.loading|=2}),v.loading|=4,mu(m,t,a)}m={type:"stylesheet",instance:m,count:1,state:v},u.set(o,m)}}}function Oy(e,t){sn.X(e,t);var n=Va;if(n&&e){var a=fa(n).hoistableScripts,u=Xa(e),o=a.get(u);o||(o=n.querySelector($l(u)),o||(e=y({src:e,async:!0},t),(t=kt.get(u))&&ao(e,t),o=n.createElement("script"),Qe(o),We(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(u,o))}}function Cy(e,t){sn.M(e,t);var n=Va;if(n&&e){var a=fa(n).hoistableScripts,u=Xa(e),o=a.get(u);o||(o=n.querySelector($l(u)),o||(e=y({src:e,async:!0,type:"module"},t),(t=kt.get(u))&&ao(e,t),o=n.createElement("script"),Qe(o),We(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(u,o))}}function kh(e,t,n,a){var u=(u=ue.current)?gu(u):null;if(!u)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Qa(n.href),n=fa(u).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Qa(n.href);var o=fa(u).hoistableStyles,m=o.get(e);if(m||(u=u.ownerDocument||u,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,m),(o=u.querySelector(Gl(e)))&&!o._p&&(m.instance=o,m.state.loading=5),kt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},kt.set(e,n),o||zy(u,e,n,m.state))),t&&a===null)throw Error(r(528,""));return m}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Xa(n),n=fa(u).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Qa(e){return'href="'+Rt(e)+'"'}function Gl(e){return'link[rel="stylesheet"]['+e+"]"}function _h(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function zy(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),We(t,"link",n),Qe(t),e.head.appendChild(t))}function Xa(e){return'[src="'+Rt(e)+'"]'}function $l(e){return"script[async]"+e}function Dh(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Rt(n.href)+'"]');if(a)return t.instance=a,Qe(a),a;var u=y({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Qe(a),We(a,"style",u),mu(a,n.precedence,e),t.instance=a;case"stylesheet":u=Qa(n.href);var o=e.querySelector(Gl(u));if(o)return t.state.loading|=4,t.instance=o,Qe(o),o;a=_h(n),(u=kt.get(u))&&no(a,u),o=(e.ownerDocument||e).createElement("link"),Qe(o);var m=o;return m._p=new Promise(function(v,x){m.onload=v,m.onerror=x}),We(o,"link",a),t.state.loading|=4,mu(o,n.precedence,e),t.instance=o;case"script":return o=Xa(n.src),(u=e.querySelector($l(o)))?(t.instance=u,Qe(u),u):(a=n,(u=kt.get(o))&&(a=y({},n),ao(a,u)),e=e.ownerDocument||e,u=e.createElement("script"),Qe(u),We(u,"link",a),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,mu(a,n.precedence,e));return t.instance}function mu(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,o=u,m=0;m<a.length;m++){var v=a[m];if(v.dataset.precedence===t)o=v;else if(o!==u)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function no(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ao(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var yu=null;function Mh(e,t,n){if(yu===null){var a=new Map,u=yu=new Map;u.set(n,a)}else u=yu,a=u.get(n),a||(a=new Map,u.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),u=0;u<n.length;u++){var o=n[u];if(!(o[tl]||o[Pe]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var m=o.getAttribute(t)||"";m=e+m;var v=a.get(m);v?v.push(o):a.set(m,[o])}}return a}function jh(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function ky(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Lh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Yl=null;function _y(){}function Dy(e,t,n){if(Yl===null)throw Error(r(475));var a=Yl;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var u=Qa(n.href),o=e.querySelector(Gl(u));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(a.count++,a=vu.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=o,Qe(o);return}o=e.ownerDocument||e,n=_h(n),(u=kt.get(u))&&no(n,u),o=o.createElement("link"),Qe(o);var m=o;m._p=new Promise(function(v,x){m.onload=v,m.onerror=x}),We(o,"link",n),t.instance=o}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(a.count++,t=vu.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}function My(){if(Yl===null)throw Error(r(475));var e=Yl;return e.stylesheets&&e.count===0&&lo(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&lo(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function vu(){if(this.count--,this.count===0){if(this.stylesheets)lo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var bu=null;function lo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,bu=new Map,t.forEach(jy,e),bu=null,vu.call(e))}function jy(e,t){if(!(t.state.loading&4)){var n=bu.get(e);if(n)var a=n.get(null);else{n=new Map,bu.set(e,n);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<u.length;o++){var m=u[o];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),a=m)}a&&n.set(null,a)}u=t.instance,m=u.getAttribute("data-precedence"),o=n.get(m)||a,o===a&&n.set(null,u),n.set(m,u),this.count++,a=vu.bind(this),u.addEventListener("load",a),u.addEventListener("error",a),o?o.parentNode.insertBefore(u,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var Vl={$$typeof:X,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function Ly(e,t,n,a,u,o,m,v){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=es(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=es(0),this.hiddenUpdates=es(null),this.identifierPrefix=a,this.onUncaughtError=u,this.onCaughtError=o,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function Uh(e,t,n,a,u,o,m,v,x,C,j,H){return e=new Ly(e,t,n,m,v,x,C,H),t=1,o===!0&&(t|=24),o=mt(3,null,null,t),e.current=o,o.stateNode=e,t=Bs(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:t},Ys(o),e}function Hh(e){return e?(e=Ta,e):Ta}function Bh(e,t,n,a,u,o){u=Hh(u),a.context===null?a.context=u:a.pendingContext=u,a=vn(t),a.payload={element:n},o=o===void 0?null:o,o!==null&&(a.callback=o),n=bn(e,a,t),n!==null&&(xt(n,e,t),Sl(n,e,t))}function qh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function io(e,t){qh(e,t),(e=e.alternate)&&qh(e,t)}function Gh(e){if(e.tag===13){var t=Ea(e,67108864);t!==null&&xt(t,e,67108864),io(e,67108864)}}var Su=!0;function Uy(e,t,n,a){var u=D.T;D.T=null;var o=$.p;try{$.p=2,uo(e,t,n,a)}finally{$.p=o,D.T=u}}function Hy(e,t,n,a){var u=D.T;D.T=null;var o=$.p;try{$.p=8,uo(e,t,n,a)}finally{$.p=o,D.T=u}}function uo(e,t,n,a){if(Su){var u=so(a);if(u===null)Zr(e,t,a,xu,n),Yh(e,a);else if(qy(u,e,t,n,a))a.stopPropagation();else if(Yh(e,a),t&4&&-1<By.indexOf(e)){for(;u!==null;){var o=ca(u);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var m=Bn(o.pendingLanes);if(m!==0){var v=o;for(v.pendingLanes|=2,v.entangledLanes|=2;m;){var x=1<<31-pt(m);v.entanglements[1]|=x,m&=~x}Yt(o),(Se&6)===0&&(lu=Ht()+500,Ul(0))}}break;case 13:v=Ea(o,2),v!==null&&xt(v,o,2),uu(),io(o,2)}if(o=so(a),o===null&&Zr(e,t,a,xu,n),o===u)break;u=o}u!==null&&a.stopPropagation()}else Zr(e,t,a,null,n)}}function so(e){return e=ds(e),ro(e)}var xu=null;function ro(e){if(xu=null,e=oa(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=p(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return xu=e,null}function $h(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Rg()){case tc:return 2;case nc:return 8;case hi:case wg:return 32;case ac:return 268435456;default:return 32}default:return 32}}var oo=!1,_n=null,Dn=null,Mn=null,Ql=new Map,Xl=new Map,jn=[],By="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Yh(e,t){switch(e){case"focusin":case"focusout":_n=null;break;case"dragenter":case"dragleave":Dn=null;break;case"mouseover":case"mouseout":Mn=null;break;case"pointerover":case"pointerout":Ql.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xl.delete(t.pointerId)}}function Zl(e,t,n,a,u,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:o,targetContainers:[u]},t!==null&&(t=ca(t),t!==null&&Gh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function qy(e,t,n,a,u){switch(t){case"focusin":return _n=Zl(_n,e,t,n,a,u),!0;case"dragenter":return Dn=Zl(Dn,e,t,n,a,u),!0;case"mouseover":return Mn=Zl(Mn,e,t,n,a,u),!0;case"pointerover":var o=u.pointerId;return Ql.set(o,Zl(Ql.get(o)||null,e,t,n,a,u)),!0;case"gotpointercapture":return o=u.pointerId,Xl.set(o,Zl(Xl.get(o)||null,e,t,n,a,u)),!0}return!1}function Vh(e){var t=oa(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=p(n),t!==null){e.blockedOn=t,Dg(e.priority,function(){if(n.tag===13){var a=St();a=ts(a);var u=Ea(n,a);u!==null&&xt(u,n,a),io(n,a)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Eu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=so(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);fs=a,n.target.dispatchEvent(a),fs=null}else return t=ca(n),t!==null&&Gh(t),e.blockedOn=n,!1;t.shift()}return!0}function Qh(e,t,n){Eu(e)&&n.delete(t)}function Gy(){oo=!1,_n!==null&&Eu(_n)&&(_n=null),Dn!==null&&Eu(Dn)&&(Dn=null),Mn!==null&&Eu(Mn)&&(Mn=null),Ql.forEach(Qh),Xl.forEach(Qh)}function Tu(e,t){e.blockedOn===t&&(e.blockedOn=null,oo||(oo=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Gy)))}var Ru=null;function Xh(e){Ru!==e&&(Ru=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Ru===e&&(Ru=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],u=e[t+2];if(typeof a!="function"){if(ro(a||n)===null)continue;break}var o=ca(n);o!==null&&(e.splice(t,3),t-=3,rr(o,{pending:!0,data:u,method:n.method,action:a},a,u))}}))}function Kl(e){function t(x){return Tu(x,e)}_n!==null&&Tu(_n,e),Dn!==null&&Tu(Dn,e),Mn!==null&&Tu(Mn,e),Ql.forEach(t),Xl.forEach(t);for(var n=0;n<jn.length;n++){var a=jn[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<jn.length&&(n=jn[0],n.blockedOn===null);)Vh(n),n.blockedOn===null&&jn.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var u=n[a],o=n[a+1],m=u[st]||null;if(typeof o=="function")m||Xh(n);else if(m){var v=null;if(o&&o.hasAttribute("formAction")){if(u=o,m=o[st]||null)v=m.formAction;else if(ro(u)!==null)continue}else v=m.action;typeof v=="function"?n[a+1]=v:(n.splice(a,3),a-=3),Xh(n)}}}function co(e){this._internalRoot=e}wu.prototype.render=co.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,a=St();Bh(n,a,e,t,null,null)},wu.prototype.unmount=co.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Bh(e.current,2,null,e,null,null),uu(),t[ra]=null}};function wu(e){this._internalRoot=e}wu.prototype.unstable_scheduleHydration=function(e){if(e){var t=rc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jn.length&&t!==0&&t<jn[n].priority;n++);jn.splice(n,0,e),n===0&&Vh(e)}};var Zh=l.version;if(Zh!=="19.1.0")throw Error(r(527,Zh,"19.1.0"));$.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=g(t),e=e!==null?d(e):null,e=e===null?null:e.stateNode,e};var $y={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nu.isDisabled&&Nu.supportsFiber)try{Pa=Nu.inject($y),ht=Nu}catch{}}return Wl.createRoot=function(e,t){if(!c(e))throw Error(r(299));var n=!1,a="",u=od,o=cd,m=fd,v=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(v=t.unstable_transitionCallbacks)),t=Uh(e,1,!1,null,null,n,a,u,o,m,v,null),e[ra]=t.current,Xr(e),new co(t)},Wl.hydrateRoot=function(e,t,n){if(!c(e))throw Error(r(299));var a=!1,u="",o=od,m=cd,v=fd,x=null,C=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(x=n.unstable_transitionCallbacks),n.formState!==void 0&&(C=n.formState)),t=Uh(e,1,!0,t,n??null,a,u,o,m,v,x,C),t.context=Hh(null),n=t.current,a=St(),a=ts(a),u=vn(a),u.callback=null,bn(n,u,a),n=a,t.current.lanes=n,el(t,n),Yt(t),e[ra]=t.current,Xr(e),new wu(t)},Wl.version="19.1.0",Wl}var bp;function nS(){if(bp)return go.exports;bp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),go.exports=tS(),go.exports}var aS=nS();const lS=Up(aS);var Pl={},Sp;function iS(){if(Sp)return Pl;Sp=1,Object.defineProperty(Pl,"__esModule",{value:!0}),Pl.parse=p,Pl.serialize=d;const i=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,l=/^[\u0021-\u003A\u003C-\u007E]*$/,s=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,c=Object.prototype.toString,f=(()=>{const b=function(){};return b.prototype=Object.create(null),b})();function p(b,_){const T=new f,M=b.length;if(M<2)return T;const G=(_==null?void 0:_.decode)||y;let B=0;do{const q=b.indexOf("=",B);if(q===-1)break;const X=b.indexOf(";",B),F=X===-1?M:X;if(q>F){B=b.lastIndexOf(";",q-1)+1;continue}const Z=h(b,B,q),de=g(b,q,Z),le=b.slice(Z,de);if(T[le]===void 0){let ie=h(b,q+1,F),Q=g(b,F,ie);const ee=G(b.slice(ie,Q));T[le]=ee}B=F+1}while(B<M);return T}function h(b,_,T){do{const M=b.charCodeAt(_);if(M!==32&&M!==9)return _}while(++_<T);return T}function g(b,_,T){for(;_>T;){const M=b.charCodeAt(--_);if(M!==32&&M!==9)return _+1}return T}function d(b,_,T){const M=(T==null?void 0:T.encode)||encodeURIComponent;if(!i.test(b))throw new TypeError(`argument name is invalid: ${b}`);const G=M(_);if(!l.test(G))throw new TypeError(`argument val is invalid: ${_}`);let B=b+"="+G;if(!T)return B;if(T.maxAge!==void 0){if(!Number.isInteger(T.maxAge))throw new TypeError(`option maxAge is invalid: ${T.maxAge}`);B+="; Max-Age="+T.maxAge}if(T.domain){if(!s.test(T.domain))throw new TypeError(`option domain is invalid: ${T.domain}`);B+="; Domain="+T.domain}if(T.path){if(!r.test(T.path))throw new TypeError(`option path is invalid: ${T.path}`);B+="; Path="+T.path}if(T.expires){if(!S(T.expires)||!Number.isFinite(T.expires.valueOf()))throw new TypeError(`option expires is invalid: ${T.expires}`);B+="; Expires="+T.expires.toUTCString()}if(T.httpOnly&&(B+="; HttpOnly"),T.secure&&(B+="; Secure"),T.partitioned&&(B+="; Partitioned"),T.priority)switch(typeof T.priority=="string"?T.priority.toLowerCase():void 0){case"low":B+="; Priority=Low";break;case"medium":B+="; Priority=Medium";break;case"high":B+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${T.priority}`)}if(T.sameSite)switch(typeof T.sameSite=="string"?T.sameSite.toLowerCase():T.sameSite){case!0:case"strict":B+="; SameSite=Strict";break;case"lax":B+="; SameSite=Lax";break;case"none":B+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${T.sameSite}`)}return B}function y(b){if(b.indexOf("%")===-1)return b;try{return decodeURIComponent(b)}catch{return b}}function S(b){return c.call(b)==="[object Date]"}return Pl}iS();var xp="popstate";function uS(i={}){function l(c,f){let{pathname:p="/",search:h="",hash:g=""}=ia(c.location.hash.substring(1));return!p.startsWith("/")&&!p.startsWith(".")&&(p="/"+p),zo("",{pathname:p,search:h,hash:g},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function s(c,f){let p=c.document.querySelector("base"),h="";if(p&&p.getAttribute("href")){let g=c.location.href,d=g.indexOf("#");h=d===-1?g:g.slice(0,d)}return h+"#"+(typeof f=="string"?f:ui(f))}function r(c,f){_t(c.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(f)})`)}return rS(l,s,r,i)}function _e(i,l){if(i===!1||i===null||typeof i>"u")throw new Error(l)}function _t(i,l){if(!i){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function sS(){return Math.random().toString(36).substring(2,10)}function Ep(i,l){return{usr:i.state,key:i.key,idx:l}}function zo(i,l,s=null,r){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof l=="string"?ia(l):l,state:s,key:l&&l.key||r||sS()}}function ui({pathname:i="/",search:l="",hash:s=""}){return l&&l!=="?"&&(i+=l.charAt(0)==="?"?l:"?"+l),s&&s!=="#"&&(i+=s.charAt(0)==="#"?s:"#"+s),i}function ia(i){let l={};if(i){let s=i.indexOf("#");s>=0&&(l.hash=i.substring(s),i=i.substring(0,s));let r=i.indexOf("?");r>=0&&(l.search=i.substring(r),i=i.substring(0,r)),i&&(l.pathname=i)}return l}function rS(i,l,s,r={}){let{window:c=document.defaultView,v5Compat:f=!1}=r,p=c.history,h="POP",g=null,d=y();d==null&&(d=0,p.replaceState({...p.state,idx:d},""));function y(){return(p.state||{idx:null}).idx}function S(){h="POP";let G=y(),B=G==null?null:G-d;d=G,g&&g({action:h,location:M.location,delta:B})}function b(G,B){h="PUSH";let q=zo(M.location,G,B);s&&s(q,G),d=y()+1;let X=Ep(q,d),F=M.createHref(q);try{p.pushState(X,"",F)}catch(Z){if(Z instanceof DOMException&&Z.name==="DataCloneError")throw Z;c.location.assign(F)}f&&g&&g({action:h,location:M.location,delta:1})}function _(G,B){h="REPLACE";let q=zo(M.location,G,B);s&&s(q,G),d=y();let X=Ep(q,d),F=M.createHref(q);p.replaceState(X,"",F),f&&g&&g({action:h,location:M.location,delta:0})}function T(G){return oS(G)}let M={get action(){return h},get location(){return i(c,p)},listen(G){if(g)throw new Error("A history only accepts one active listener");return c.addEventListener(xp,S),g=G,()=>{c.removeEventListener(xp,S),g=null}},createHref(G){return l(c,G)},createURL:T,encodeLocation(G){let B=T(G);return{pathname:B.pathname,search:B.search,hash:B.hash}},push:b,replace:_,go(G){return p.go(G)}};return M}function oS(i,l=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),_e(s,"No window.location.(origin|href) available to create URL");let r=typeof i=="string"?i:ui(i);return r=r.replace(/ $/,"%20"),!l&&r.startsWith("//")&&(r=s+r),new URL(r,s)}function Yp(i,l,s="/"){return cS(i,l,s,!1)}function cS(i,l,s,r){let c=typeof l=="string"?ia(l):l,f=fn(c.pathname||"/",s);if(f==null)return null;let p=Vp(i);fS(p);let h=null;for(let g=0;h==null&&g<p.length;++g){let d=ES(f);h=SS(p[g],d,r)}return h}function Vp(i,l=[],s=[],r=""){let c=(f,p,h)=>{let g={relativePath:h===void 0?f.path||"":h,caseSensitive:f.caseSensitive===!0,childrenIndex:p,route:f};g.relativePath.startsWith("/")&&(_e(g.relativePath.startsWith(r),`Absolute route path "${g.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(r.length));let d=cn([r,g.relativePath]),y=s.concat(g);f.children&&f.children.length>0&&(_e(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),Vp(f.children,l,y,d)),!(f.path==null&&!f.index)&&l.push({path:d,score:vS(d,f.index),routesMeta:y})};return i.forEach((f,p)=>{var h;if(f.path===""||!((h=f.path)!=null&&h.includes("?")))c(f,p);else for(let g of Qp(f.path))c(f,p,g)}),l}function Qp(i){let l=i.split("/");if(l.length===0)return[];let[s,...r]=l,c=s.endsWith("?"),f=s.replace(/\?$/,"");if(r.length===0)return c?[f,""]:[f];let p=Qp(r.join("/")),h=[];return h.push(...p.map(g=>g===""?f:[f,g].join("/"))),c&&h.push(...p),h.map(g=>i.startsWith("/")&&g===""?"/":g)}function fS(i){i.sort((l,s)=>l.score!==s.score?s.score-l.score:bS(l.routesMeta.map(r=>r.childrenIndex),s.routesMeta.map(r=>r.childrenIndex)))}var dS=/^:[\w-]+$/,hS=3,pS=2,gS=1,mS=10,yS=-2,Tp=i=>i==="*";function vS(i,l){let s=i.split("/"),r=s.length;return s.some(Tp)&&(r+=yS),l&&(r+=pS),s.filter(c=>!Tp(c)).reduce((c,f)=>c+(dS.test(f)?hS:f===""?gS:mS),r)}function bS(i,l){return i.length===l.length&&i.slice(0,-1).every((r,c)=>r===l[c])?i[i.length-1]-l[l.length-1]:0}function SS(i,l,s=!1){let{routesMeta:r}=i,c={},f="/",p=[];for(let h=0;h<r.length;++h){let g=r[h],d=h===r.length-1,y=f==="/"?l:l.slice(f.length)||"/",S=Bu({path:g.relativePath,caseSensitive:g.caseSensitive,end:d},y),b=g.route;if(!S&&d&&s&&!r[r.length-1].route.index&&(S=Bu({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},y)),!S)return null;Object.assign(c,S.params),p.push({params:c,pathname:cn([f,S.pathname]),pathnameBase:NS(cn([f,S.pathnameBase])),route:b}),S.pathnameBase!=="/"&&(f=cn([f,S.pathnameBase]))}return p}function Bu(i,l){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[s,r]=xS(i.path,i.caseSensitive,i.end),c=l.match(s);if(!c)return null;let f=c[0],p=f.replace(/(.)\/+$/,"$1"),h=c.slice(1);return{params:r.reduce((d,{paramName:y,isOptional:S},b)=>{if(y==="*"){let T=h[b]||"";p=f.slice(0,f.length-T.length).replace(/(.)\/+$/,"$1")}const _=h[b];return S&&!_?d[y]=void 0:d[y]=(_||"").replace(/%2F/g,"/"),d},{}),pathname:f,pathnameBase:p,pattern:i}}function xS(i,l=!1,s=!0){_t(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let r=[],c="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,h,g)=>(r.push({paramName:h,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)"));return i.endsWith("*")?(r.push({paramName:"*"}),c+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?c+="\\/*$":i!==""&&i!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,l?void 0:"i"),r]}function ES(i){try{return i.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return _t(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),i}}function fn(i,l){if(l==="/")return i;if(!i.toLowerCase().startsWith(l.toLowerCase()))return null;let s=l.endsWith("/")?l.length-1:l.length,r=i.charAt(s);return r&&r!=="/"?null:i.slice(s)||"/"}function TS(i,l="/"){let{pathname:s,search:r="",hash:c=""}=typeof i=="string"?ia(i):i;return{pathname:s?s.startsWith("/")?s:RS(s,l):l,search:AS(r),hash:OS(c)}}function RS(i,l){let s=l.replace(/\/+$/,"").split("/");return i.split("/").forEach(c=>{c===".."?s.length>1&&s.pop():c!=="."&&s.push(c)}),s.length>1?s.join("/"):"/"}function bo(i,l,s,r){return`Cannot include a '${i}' character in a manually specified \`to.${l}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function wS(i){return i.filter((l,s)=>s===0||l.route.path&&l.route.path.length>0)}function Uo(i){let l=wS(i);return l.map((s,r)=>r===l.length-1?s.pathname:s.pathnameBase)}function Ho(i,l,s,r=!1){let c;typeof i=="string"?c=ia(i):(c={...i},_e(!c.pathname||!c.pathname.includes("?"),bo("?","pathname","search",c)),_e(!c.pathname||!c.pathname.includes("#"),bo("#","pathname","hash",c)),_e(!c.search||!c.search.includes("#"),bo("#","search","hash",c)));let f=i===""||c.pathname==="",p=f?"/":c.pathname,h;if(p==null)h=s;else{let S=l.length-1;if(!r&&p.startsWith("..")){let b=p.split("/");for(;b[0]==="..";)b.shift(),S-=1;c.pathname=b.join("/")}h=S>=0?l[S]:"/"}let g=TS(c,h),d=p&&p!=="/"&&p.endsWith("/"),y=(f||p===".")&&s.endsWith("/");return!g.pathname.endsWith("/")&&(d||y)&&(g.pathname+="/"),g}var cn=i=>i.join("/").replace(/\/\/+/g,"/"),NS=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),AS=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,OS=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i;function CS(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}var Xp=["POST","PUT","PATCH","DELETE"];new Set(Xp);var zS=["GET",...Xp];new Set(zS);var Ja=A.createContext(null);Ja.displayName="DataRouter";var Qu=A.createContext(null);Qu.displayName="DataRouterState";var Zp=A.createContext({isTransitioning:!1});Zp.displayName="ViewTransition";var kS=A.createContext(new Map);kS.displayName="Fetchers";var _S=A.createContext(null);_S.displayName="Await";var Lt=A.createContext(null);Lt.displayName="Navigation";var ri=A.createContext(null);ri.displayName="Location";var Ut=A.createContext({outlet:null,matches:[],isDataRoute:!1});Ut.displayName="Route";var Bo=A.createContext(null);Bo.displayName="RouteError";function DS(i,{relative:l}={}){_e(Fa(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:r}=A.useContext(Lt),{hash:c,pathname:f,search:p}=oi(i,{relative:l}),h=f;return s!=="/"&&(h=f==="/"?s:cn([s,f])),r.createHref({pathname:h,search:p,hash:c})}function Fa(){return A.useContext(ri)!=null}function Hn(){return _e(Fa(),"useLocation() may be used only in the context of a <Router> component."),A.useContext(ri).location}var Kp="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Jp(i){A.useContext(Lt).static||A.useLayoutEffect(i)}function Wa(){let{isDataRoute:i}=A.useContext(Ut);return i?ZS():MS()}function MS(){_e(Fa(),"useNavigate() may be used only in the context of a <Router> component.");let i=A.useContext(Ja),{basename:l,navigator:s}=A.useContext(Lt),{matches:r}=A.useContext(Ut),{pathname:c}=Hn(),f=JSON.stringify(Uo(r)),p=A.useRef(!1);return Jp(()=>{p.current=!0}),A.useCallback((g,d={})=>{if(_t(p.current,Kp),!p.current)return;if(typeof g=="number"){s.go(g);return}let y=Ho(g,JSON.parse(f),c,d.relative==="path");i==null&&l!=="/"&&(y.pathname=y.pathname==="/"?l:cn([l,y.pathname])),(d.replace?s.replace:s.push)(y,d.state,d)},[l,s,f,c,i])}A.createContext(null);function jS(){let{matches:i}=A.useContext(Ut),l=i[i.length-1];return l?l.params:{}}function oi(i,{relative:l}={}){let{matches:s}=A.useContext(Ut),{pathname:r}=Hn(),c=JSON.stringify(Uo(s));return A.useMemo(()=>Ho(i,JSON.parse(c),r,l==="path"),[i,c,r,l])}function LS(i,l){return Fp(i,l)}function Fp(i,l,s,r){var B;_e(Fa(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=A.useContext(Lt),{matches:f}=A.useContext(Ut),p=f[f.length-1],h=p?p.params:{},g=p?p.pathname:"/",d=p?p.pathnameBase:"/",y=p&&p.route;{let q=y&&y.path||"";Wp(g,!y||q.endsWith("*")||q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${q}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
51
+ */var qp;function Bx(){if(qp)return si;qp=1;var i=_x(),n=Fo(),r=Ux();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(f(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,l=t;;){var u=a.return;if(u===null)break;var c=u.alternate;if(c===null){if(l=u.return,l!==null){a=l;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===a)return h(u),e;if(c===l)return h(u),t;c=c.sibling}throw Error(s(188))}if(a.return!==l.return)a=u,l=c;else{for(var g=!1,y=u.child;y;){if(y===a){g=!0,a=u,l=c;break}if(y===l){g=!0,l=u,a=c;break}y=y.sibling}if(!g){for(y=c.child;y;){if(y===a){g=!0,a=c,l=u;break}if(y===l){g=!0,l=c,a=u;break}y=y.sibling}if(!g)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,x=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),U=Symbol.for("react.provider"),D=Symbol.for("react.consumer"),G=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),ue=Symbol.for("react.suspense_list"),re=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),ne=Symbol.for("react.memo_cache_sentinel"),pe=Symbol.iterator;function Ke(e){return e===null||typeof e!="object"?null:(e=pe&&e[pe]||e["@@iterator"],typeof e=="function"?e:null)}var Xe=Symbol.for("react.client.reference");function Ge(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Xe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case B:return"Profiler";case z:return"StrictMode";case K:return"Suspense";case ue:return"SuspenseList";case F:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case C:return"Portal";case G:return(e.displayName||"Context")+".Provider";case D:return(e._context.displayName||"Context")+".Consumer";case J:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case re:return t=e.displayName||null,t!==null?t:Ge(e.type)||"Memo";case ee:t=e._payload,e=e._init;try{return Ge(e(t))}catch{}}return null}var Ye=Array.isArray,_=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},ye=[],R=-1;function $(e){return{current:e}}function Z(e){0>R||(e.current=ye[R],ye[R]=null,R--)}function Q(e,t){R++,ye[R]=e.current,e.current=t}var I=$(null),me=$(null),se=$(null),gt=$(null);function ze(e,t){switch(Q(se,t),Q(me,e),Q(I,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Zh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Zh(t),e=Kh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Z(I),Q(I,e)}function ya(){Z(I),Z(me),Z(se)}function us(e){e.memoizedState!==null&&Q(gt,e);var t=I.current,a=Kh(t,e.type);t!==a&&(Q(me,e),Q(I,a))}function Ei(e){me.current===e&&(Z(I),Z(me)),gt.current===e&&(Z(gt),ei._currentValue=W)}var os=Object.prototype.hasOwnProperty,cs=i.unstable_scheduleCallback,fs=i.unstable_cancelCallback,sv=i.unstable_shouldYield,uv=i.unstable_requestPaint,Qt=i.unstable_now,ov=i.unstable_getCurrentPriorityLevel,Tc=i.unstable_ImmediatePriority,wc=i.unstable_UserBlockingPriority,Ri=i.unstable_NormalPriority,cv=i.unstable_LowPriority,Cc=i.unstable_IdlePriority,fv=i.log,dv=i.unstable_setDisableYieldValue,ul=null,vt=null;function ba(e){if(typeof fv=="function"&&dv(e),vt&&typeof vt.setStrictMode=="function")try{vt.setStrictMode(ul,e)}catch{}}var yt=Math.clz32?Math.clz32:mv,hv=Math.log,pv=Math.LN2;function mv(e){return e>>>=0,e===0?32:31-(hv(e)/pv|0)|0}var Ti=256,wi=4194304;function Za(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ci(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var u=0,c=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var y=l&134217727;return y!==0?(l=y&~c,l!==0?u=Za(l):(g&=y,g!==0?u=Za(g):a||(a=y&~e,a!==0&&(u=Za(a))))):(y=l&~c,y!==0?u=Za(y):g!==0?u=Za(g):a||(a=l&~e,a!==0&&(u=Za(a)))),u===0?0:t!==0&&t!==u&&(t&c)===0&&(c=u&-u,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:u}function ol(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function gv(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function jc(){var e=Ti;return Ti<<=1,(Ti&4194048)===0&&(Ti=256),e}function Ac(){var e=wi;return wi<<=1,(wi&62914560)===0&&(wi=4194304),e}function ds(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function cl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function vv(e,t,a,l,u,c){var g=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var y=e.entanglements,N=e.expirationTimes,O=e.hiddenUpdates;for(a=g&~a;0<a;){var H=31-yt(a),q=1<<H;y[H]=0,N[H]=-1;var k=O[H];if(k!==null)for(O[H]=null,H=0;H<k.length;H++){var L=k[H];L!==null&&(L.lane&=-536870913)}a&=~q}l!==0&&Oc(e,l,0),c!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=c&~(g&~t))}function Oc(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-yt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&4194090}function kc(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-yt(a),u=1<<l;u&t|e[l]&t&&(e[l]|=t),a&=~u}}function hs(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ps(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Lc(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:dp(e.type))}function yv(e,t){var a=Y.p;try{return Y.p=e,t()}finally{Y.p=a}}var Sa=Math.random().toString(36).slice(2),nt="__reactFiber$"+Sa,ct="__reactProps$"+Sa,vn="__reactContainer$"+Sa,ms="__reactEvents$"+Sa,bv="__reactListeners$"+Sa,Sv="__reactHandles$"+Sa,zc="__reactResources$"+Sa,fl="__reactMarker$"+Sa;function gs(e){delete e[nt],delete e[ct],delete e[ms],delete e[bv],delete e[Sv]}function yn(e){var t=e[nt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[vn]||a[nt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Ph(e);e!==null;){if(a=e[nt])return a;e=Ph(e)}return t}e=a,a=e.parentNode}return null}function bn(e){if(e=e[nt]||e[vn]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function dl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Sn(e){var t=e[zc];return t||(t=e[zc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Je(e){e[fl]=!0}var Dc=new Set,_c={};function Ka(e,t){xn(e,t),xn(e+"Capture",t)}function xn(e,t){for(_c[e]=t,e=0;e<t.length;e++)Dc.add(t[e])}var xv=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Mc={},Uc={};function Nv(e){return os.call(Uc,e)?!0:os.call(Mc,e)?!1:xv.test(e)?Uc[e]=!0:(Mc[e]=!0,!1)}function ji(e,t,a){if(Nv(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Ai(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function It(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}var vs,Bc;function Nn(e){if(vs===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);vs=t&&t[1]||"",Bc=-1<a.stack.indexOf(`
52
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
53
+ `+vs+e+Bc}var ys=!1;function bs(e,t){if(!e||ys)return"";ys=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(L){var k=L}Reflect.construct(e,[],q)}else{try{q.call()}catch(L){k=L}e.call(q.prototype)}}else{try{throw Error()}catch(L){k=L}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(L){if(L&&k&&typeof L.stack=="string")return[L.stack,k.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),g=c[0],y=c[1];if(g&&y){var N=g.split(`
54
+ `),O=y.split(`
55
+ `);for(u=l=0;l<N.length&&!N[l].includes("DetermineComponentFrameRoot");)l++;for(;u<O.length&&!O[u].includes("DetermineComponentFrameRoot");)u++;if(l===N.length||u===O.length)for(l=N.length-1,u=O.length-1;1<=l&&0<=u&&N[l]!==O[u];)u--;for(;1<=l&&0<=u;l--,u--)if(N[l]!==O[u]){if(l!==1||u!==1)do if(l--,u--,0>u||N[l]!==O[u]){var H=`
56
+ `+N[l].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=l&&0<=u);break}}}finally{ys=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Nn(a):""}function Ev(e){switch(e.tag){case 26:case 27:case 5:return Nn(e.type);case 16:return Nn("Lazy");case 13:return Nn("Suspense");case 19:return Nn("SuspenseList");case 0:case 15:return bs(e.type,!1);case 11:return bs(e.type.render,!1);case 1:return bs(e.type,!0);case 31:return Nn("Activity");default:return""}}function Hc(e){try{var t="";do t+=Ev(e),e=e.return;while(e);return t}catch(a){return`
57
+ Error generating stack: `+a.message+`
58
+ `+a.stack}}function jt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Rv(e){var t=Vc(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(g){l=""+g,c.call(this,g)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(g){l=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Oi(e){e._valueTracker||(e._valueTracker=Rv(e))}function $c(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Vc(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function ki(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Tv=/[\n"\\]/g;function At(e){return e.replace(Tv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ss(e,t,a,l,u,c,g,y){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+jt(t)):e.value!==""+jt(t)&&(e.value=""+jt(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?xs(e,g,jt(t)):a!=null?xs(e,g,jt(a)):l!=null&&e.removeAttribute("value"),u==null&&c!=null&&(e.defaultChecked=!!c),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+jt(y):e.removeAttribute("name")}function qc(e,t,a,l,u,c,g,y){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null))return;a=a!=null?""+jt(a):"",t=t!=null?""+jt(t):a,y||t===e.value||(e.value=t),e.defaultValue=t}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=y?e.checked:!!l,e.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g)}function xs(e,t,a){t==="number"&&ki(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function En(e,t,a,l){if(e=e.options,t){t={};for(var u=0;u<a.length;u++)t["$"+a[u]]=!0;for(a=0;a<e.length;a++)u=t.hasOwnProperty("$"+e[a].value),e[a].selected!==u&&(e[a].selected=u),u&&l&&(e[a].defaultSelected=!0)}else{for(a=""+jt(a),t=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,l&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Gc(e,t,a){if(t!=null&&(t=""+jt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+jt(a):""}function Yc(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(s(92));if(Ye(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=jt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l)}function Rn(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var wv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Qc(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||wv.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Zc(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var u in t)l=t[u],t.hasOwnProperty(u)&&a[u]!==l&&Qc(e,u,l)}else for(var c in t)t.hasOwnProperty(c)&&Qc(e,c,t[c])}function Ns(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Cv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),jv=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Li(e){return jv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Es=null;function Rs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Tn=null,wn=null;function Kc(e){var t=bn(e);if(t&&(e=t.stateNode)){var a=e[ct]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ss(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+At(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var u=l[ct]||null;if(!u)throw Error(s(90));Ss(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&$c(l)}break e;case"textarea":Gc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&En(e,!!a.multiple,t,!1)}}}var Ts=!1;function Xc(e,t,a){if(Ts)return e(t,a);Ts=!0;try{var l=e(t);return l}finally{if(Ts=!1,(Tn!==null||wn!==null)&&(vr(),Tn&&(t=Tn,e=wn,wn=Tn=null,Kc(t),e)))for(t=0;t<e.length;t++)Kc(e[t])}}function hl(e,t){var a=e.stateNode;if(a===null)return null;var l=a[ct]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var ea=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ws=!1;if(ea)try{var pl={};Object.defineProperty(pl,"passive",{get:function(){ws=!0}}),window.addEventListener("test",pl,pl),window.removeEventListener("test",pl,pl)}catch{ws=!1}var xa=null,Cs=null,zi=null;function Jc(){if(zi)return zi;var e,t=Cs,a=t.length,l,u="value"in xa?xa.value:xa.textContent,c=u.length;for(e=0;e<a&&t[e]===u[e];e++);var g=a-e;for(l=1;l<=g&&t[a-l]===u[c-l];l++);return zi=u.slice(e,1<l?1-l:void 0)}function Di(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function _i(){return!0}function Fc(){return!1}function ft(e){function t(a,l,u,c,g){this._reactName=a,this._targetInst=u,this.type=l,this.nativeEvent=c,this.target=g,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(a=e[y],this[y]=a?a(c):c[y]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?_i:Fc,this.isPropagationStopped=Fc,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=_i)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=_i)},persist:function(){},isPersistent:_i}),t}var Xa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mi=ft(Xa),ml=v({},Xa,{view:0,detail:0}),Av=ft(ml),js,As,gl,Ui=v({},ml,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ks,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==gl&&(gl&&e.type==="mousemove"?(js=e.screenX-gl.screenX,As=e.screenY-gl.screenY):As=js=0,gl=e),js)},movementY:function(e){return"movementY"in e?e.movementY:As}}),Pc=ft(Ui),Ov=v({},Ui,{dataTransfer:0}),kv=ft(Ov),Lv=v({},ml,{relatedTarget:0}),Os=ft(Lv),zv=v({},Xa,{animationName:0,elapsedTime:0,pseudoElement:0}),Dv=ft(zv),_v=v({},Xa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Mv=ft(_v),Uv=v({},Xa,{data:0}),Wc=ft(Uv),Bv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hv={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Vv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $v(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Vv[e])?!!t[e]:!1}function ks(){return $v}var qv=v({},ml,{key:function(e){if(e.key){var t=Bv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Di(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Hv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ks,charCode:function(e){return e.type==="keypress"?Di(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Di(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Gv=ft(qv),Yv=v({},Ui,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ic=ft(Yv),Qv=v({},ml,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ks}),Zv=ft(Qv),Kv=v({},Xa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xv=ft(Kv),Jv=v({},Ui,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Fv=ft(Jv),Pv=v({},Xa,{newState:0,oldState:0}),Wv=ft(Pv),Iv=[9,13,27,32],Ls=ea&&"CompositionEvent"in window,vl=null;ea&&"documentMode"in document&&(vl=document.documentMode);var ey=ea&&"TextEvent"in window&&!vl,ef=ea&&(!Ls||vl&&8<vl&&11>=vl),tf=" ",af=!1;function nf(e,t){switch(e){case"keyup":return Iv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cn=!1;function ty(e,t){switch(e){case"compositionend":return lf(t);case"keypress":return t.which!==32?null:(af=!0,tf);case"textInput":return e=t.data,e===tf&&af?null:e;default:return null}}function ay(e,t){if(Cn)return e==="compositionend"||!Ls&&nf(e,t)?(e=Jc(),zi=Cs=xa=null,Cn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ef&&t.locale!=="ko"?null:t.data;default:return null}}var ny={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function rf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ny[e.type]:t==="textarea"}function sf(e,t,a,l){Tn?wn?wn.push(l):wn=[l]:Tn=l,t=Er(t,"onChange"),0<t.length&&(a=new Mi("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var yl=null,bl=null;function ly(e){$h(e,0)}function Bi(e){var t=dl(e);if($c(t))return e}function uf(e,t){if(e==="change")return t}var of=!1;if(ea){var zs;if(ea){var Ds="oninput"in document;if(!Ds){var cf=document.createElement("div");cf.setAttribute("oninput","return;"),Ds=typeof cf.oninput=="function"}zs=Ds}else zs=!1;of=zs&&(!document.documentMode||9<document.documentMode)}function ff(){yl&&(yl.detachEvent("onpropertychange",df),bl=yl=null)}function df(e){if(e.propertyName==="value"&&Bi(bl)){var t=[];sf(t,bl,e,Rs(e)),Xc(ly,t)}}function iy(e,t,a){e==="focusin"?(ff(),yl=t,bl=a,yl.attachEvent("onpropertychange",df)):e==="focusout"&&ff()}function ry(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Bi(bl)}function sy(e,t){if(e==="click")return Bi(t)}function uy(e,t){if(e==="input"||e==="change")return Bi(t)}function oy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bt=typeof Object.is=="function"?Object.is:oy;function Sl(e,t){if(bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var u=a[l];if(!os.call(t,u)||!bt(e[u],t[u]))return!1}return!0}function hf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pf(e,t){var a=hf(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=hf(a)}}function mf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ki(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=ki(e.document)}return t}function _s(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var cy=ea&&"documentMode"in document&&11>=document.documentMode,jn=null,Ms=null,xl=null,Us=!1;function vf(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Us||jn==null||jn!==ki(l)||(l=jn,"selectionStart"in l&&_s(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),xl&&Sl(xl,l)||(xl=l,l=Er(Ms,"onSelect"),0<l.length&&(t=new Mi("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=jn)))}function Ja(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var An={animationend:Ja("Animation","AnimationEnd"),animationiteration:Ja("Animation","AnimationIteration"),animationstart:Ja("Animation","AnimationStart"),transitionrun:Ja("Transition","TransitionRun"),transitionstart:Ja("Transition","TransitionStart"),transitioncancel:Ja("Transition","TransitionCancel"),transitionend:Ja("Transition","TransitionEnd")},Bs={},yf={};ea&&(yf=document.createElement("div").style,"AnimationEvent"in window||(delete An.animationend.animation,delete An.animationiteration.animation,delete An.animationstart.animation),"TransitionEvent"in window||delete An.transitionend.transition);function Fa(e){if(Bs[e])return Bs[e];if(!An[e])return e;var t=An[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in yf)return Bs[e]=t[a];return e}var bf=Fa("animationend"),Sf=Fa("animationiteration"),xf=Fa("animationstart"),fy=Fa("transitionrun"),dy=Fa("transitionstart"),hy=Fa("transitioncancel"),Nf=Fa("transitionend"),Ef=new Map,Hs="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Hs.push("scrollEnd");function Ht(e,t){Ef.set(e,t),Ka(t,[e])}var Rf=new WeakMap;function Ot(e,t){if(typeof e=="object"&&e!==null){var a=Rf.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Hc(t)},Rf.set(e,t),t)}return{value:e,source:t,stack:Hc(t)}}var kt=[],On=0,Vs=0;function Hi(){for(var e=On,t=Vs=On=0;t<e;){var a=kt[t];kt[t++]=null;var l=kt[t];kt[t++]=null;var u=kt[t];kt[t++]=null;var c=kt[t];if(kt[t++]=null,l!==null&&u!==null){var g=l.pending;g===null?u.next=u:(u.next=g.next,g.next=u),l.pending=u}c!==0&&Tf(a,u,c)}}function Vi(e,t,a,l){kt[On++]=e,kt[On++]=t,kt[On++]=a,kt[On++]=l,Vs|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function $s(e,t,a,l){return Vi(e,t,a,l),$i(e)}function kn(e,t){return Vi(e,null,null,t),$i(e)}function Tf(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var u=!1,c=e.return;c!==null;)c.childLanes|=a,l=c.alternate,l!==null&&(l.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(u=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,u&&t!==null&&(u=31-yt(a),e=c.hiddenUpdates,l=e[u],l===null?e[u]=[t]:l.push(t),t.lane=a|536870912),c):null}function $i(e){if(50<Zl)throw Zl=0,Ku=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ln={};function py(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function St(e,t,a,l){return new py(e,t,a,l)}function qs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ta(e,t){var a=e.alternate;return a===null?(a=St(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function wf(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function qi(e,t,a,l,u,c){var g=0;if(l=e,typeof e=="function")qs(e)&&(g=1);else if(typeof e=="string")g=g0(e,a,I.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case F:return e=St(31,a,t,u),e.elementType=F,e.lanes=c,e;case E:return Pa(a.children,u,c,t);case z:g=8,u|=24;break;case B:return e=St(12,a,t,u|2),e.elementType=B,e.lanes=c,e;case K:return e=St(13,a,t,u),e.elementType=K,e.lanes=c,e;case ue:return e=St(19,a,t,u),e.elementType=ue,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case U:case G:g=10;break e;case D:g=9;break e;case J:g=11;break e;case re:g=14;break e;case ee:g=16,l=null;break e}g=29,a=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=St(g,a,t,u),t.elementType=e,t.type=l,t.lanes=c,t}function Pa(e,t,a,l){return e=St(7,e,l,t),e.lanes=a,e}function Gs(e,t,a){return e=St(6,e,null,t),e.lanes=a,e}function Ys(e,t,a){return t=St(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var zn=[],Dn=0,Gi=null,Yi=0,Lt=[],zt=0,Wa=null,aa=1,na="";function Ia(e,t){zn[Dn++]=Yi,zn[Dn++]=Gi,Gi=e,Yi=t}function Cf(e,t,a){Lt[zt++]=aa,Lt[zt++]=na,Lt[zt++]=Wa,Wa=e;var l=aa;e=na;var u=32-yt(l)-1;l&=~(1<<u),a+=1;var c=32-yt(t)+u;if(30<c){var g=u-u%5;c=(l&(1<<g)-1).toString(32),l>>=g,u-=g,aa=1<<32-yt(t)+u|a<<u|l,na=c+e}else aa=1<<c|a<<u|l,na=e}function Qs(e){e.return!==null&&(Ia(e,1),Cf(e,1,0))}function Zs(e){for(;e===Gi;)Gi=zn[--Dn],zn[Dn]=null,Yi=zn[--Dn],zn[Dn]=null;for(;e===Wa;)Wa=Lt[--zt],Lt[zt]=null,na=Lt[--zt],Lt[zt]=null,aa=Lt[--zt],Lt[zt]=null}var st=null,Ue=null,Se=!1,en=null,Zt=!1,Ks=Error(s(519));function tn(e){var t=Error(s(418,""));throw Rl(Ot(t,e)),Ks}function jf(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[nt]=e,t[ct]=l,a){case"dialog":he("cancel",t),he("close",t);break;case"iframe":case"object":case"embed":he("load",t);break;case"video":case"audio":for(a=0;a<Xl.length;a++)he(Xl[a],t);break;case"source":he("error",t);break;case"img":case"image":case"link":he("error",t),he("load",t);break;case"details":he("toggle",t);break;case"input":he("invalid",t),qc(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),Oi(t);break;case"select":he("invalid",t);break;case"textarea":he("invalid",t),Yc(t,l.value,l.defaultValue,l.children),Oi(t)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Qh(t.textContent,a)?(l.popover!=null&&(he("beforetoggle",t),he("toggle",t)),l.onScroll!=null&&he("scroll",t),l.onScrollEnd!=null&&he("scrollend",t),l.onClick!=null&&(t.onclick=Rr),t=!0):t=!1,t||tn(e)}function Af(e){for(st=e.return;st;)switch(st.tag){case 5:case 13:Zt=!1;return;case 27:case 3:Zt=!0;return;default:st=st.return}}function Nl(e){if(e!==st)return!1;if(!Se)return Af(e),Se=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||oo(e.type,e.memoizedProps)),a=!a),a&&Ue&&tn(e),Af(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(t===0){Ue=$t(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}Ue=null}}else t===27?(t=Ue,Ua(e.type)?(e=po,po=null,Ue=e):Ue=t):Ue=st?$t(e.stateNode.nextSibling):null;return!0}function El(){Ue=st=null,Se=!1}function Of(){var e=en;return e!==null&&(pt===null?pt=e:pt.push.apply(pt,e),en=null),e}function Rl(e){en===null?en=[e]:en.push(e)}var Xs=$(null),an=null,la=null;function Na(e,t,a){Q(Xs,t._currentValue),t._currentValue=a}function ia(e){e._currentValue=Xs.current,Z(Xs)}function Js(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Fs(e,t,a,l){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var c=u.dependencies;if(c!==null){var g=u.child;c=c.firstContext;e:for(;c!==null;){var y=c;c=u;for(var N=0;N<t.length;N++)if(y.context===t[N]){c.lanes|=a,y=c.alternate,y!==null&&(y.lanes|=a),Js(c.return,a,e),l||(g=null);break e}c=y.next}}else if(u.tag===18){if(g=u.return,g===null)throw Error(s(341));g.lanes|=a,c=g.alternate,c!==null&&(c.lanes|=a),Js(g,a,e),g=null}else g=u.child;if(g!==null)g.return=u;else for(g=u;g!==null;){if(g===e){g=null;break}if(u=g.sibling,u!==null){u.return=g.return,g=u;break}g=g.return}u=g}}function Tl(e,t,a,l){e=null;for(var u=t,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var g=u.alternate;if(g===null)throw Error(s(387));if(g=g.memoizedProps,g!==null){var y=u.type;bt(u.pendingProps.value,g.value)||(e!==null?e.push(y):e=[y])}}else if(u===gt.current){if(g=u.alternate,g===null)throw Error(s(387));g.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(ei):e=[ei])}u=u.return}e!==null&&Fs(t,e,a,l),t.flags|=262144}function Qi(e){for(e=e.firstContext;e!==null;){if(!bt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function nn(e){an=e,la=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return kf(an,e)}function Zi(e,t){return an===null&&nn(e),kf(e,t)}function kf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},la===null){if(e===null)throw Error(s(308));la=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else la=la.next=t;return a}var my=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},gy=i.unstable_scheduleCallback,vy=i.unstable_NormalPriority,Qe={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ps(){return{controller:new my,data:new Map,refCount:0}}function wl(e){e.refCount--,e.refCount===0&&gy(vy,function(){e.controller.abort()})}var Cl=null,Ws=0,_n=0,Mn=null;function yy(e,t){if(Cl===null){var a=Cl=[];Ws=0,_n=eo(),Mn={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Ws++,t.then(Lf,Lf),t}function Lf(){if(--Ws===0&&Cl!==null){Mn!==null&&(Mn.status="fulfilled");var e=Cl;Cl=null,_n=0,Mn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function by(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var u=0;u<a.length;u++)(0,a[u])(t)},function(u){for(l.status="rejected",l.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),l}var zf=_.S;_.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&yy(e,t),zf!==null&&zf(e,t)};var ln=$(null);function Is(){var e=ln.current;return e!==null?e:ke.pooledCache}function Ki(e,t){t===null?Q(ln,ln.current):Q(ln,t.pool)}function Df(){var e=Is();return e===null?null:{parent:Qe._currentValue,pool:e}}var jl=Error(s(460)),_f=Error(s(474)),Xi=Error(s(542)),eu={then:function(){}};function Mf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ji(){}function Uf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Ji,Ji),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Hf(e),e;default:if(typeof t.status=="string")t.then(Ji,Ji);else{if(e=ke,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=l}},function(l){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Hf(e),e}throw Al=t,jl}}var Al=null;function Bf(){if(Al===null)throw Error(s(459));var e=Al;return Al=null,e}function Hf(e){if(e===jl||e===Xi)throw Error(s(483))}var Ea=!1;function tu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function au(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ra(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ta(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ne&2)!==0){var u=l.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),l.pending=t,t=$i(e),Tf(e,null,a),t}return Vi(e,l,t,a),$i(e)}function Ol(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,kc(e,a)}}function nu(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var u=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var g={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?u=c=g:c=c.next=g,a=a.next}while(a!==null);c===null?u=c=t:c=c.next=t}else u=c=t;a={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var lu=!1;function kl(){if(lu){var e=Mn;if(e!==null)throw e}}function Ll(e,t,a,l){lu=!1;var u=e.updateQueue;Ea=!1;var c=u.firstBaseUpdate,g=u.lastBaseUpdate,y=u.shared.pending;if(y!==null){u.shared.pending=null;var N=y,O=N.next;N.next=null,g===null?c=O:g.next=O,g=N;var H=e.alternate;H!==null&&(H=H.updateQueue,y=H.lastBaseUpdate,y!==g&&(y===null?H.firstBaseUpdate=O:y.next=O,H.lastBaseUpdate=N))}if(c!==null){var q=u.baseState;g=0,H=O=N=null,y=c;do{var k=y.lane&-536870913,L=k!==y.lane;if(L?(ve&k)===k:(l&k)===k){k!==0&&k===_n&&(lu=!0),H!==null&&(H=H.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var le=e,te=y;k=t;var je=a;switch(te.tag){case 1:if(le=te.payload,typeof le=="function"){q=le.call(je,q,k);break e}q=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=te.payload,k=typeof le=="function"?le.call(je,q,k):le,k==null)break e;q=v({},q,k);break e;case 2:Ea=!0}}k=y.callback,k!==null&&(e.flags|=64,L&&(e.flags|=8192),L=u.callbacks,L===null?u.callbacks=[k]:L.push(k))}else L={lane:k,tag:y.tag,payload:y.payload,callback:y.callback,next:null},H===null?(O=H=L,N=q):H=H.next=L,g|=k;if(y=y.next,y===null){if(y=u.shared.pending,y===null)break;L=y,y=L.next,L.next=null,u.lastBaseUpdate=L,u.shared.pending=null}}while(!0);H===null&&(N=q),u.baseState=N,u.firstBaseUpdate=O,u.lastBaseUpdate=H,c===null&&(u.shared.lanes=0),za|=g,e.lanes=g,e.memoizedState=q}}function Vf(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function $f(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Vf(a[e],t)}var Un=$(null),Fi=$(0);function qf(e,t){e=da,Q(Fi,e),Q(Un,t),da=e|t.baseLanes}function iu(){Q(Fi,da),Q(Un,Un.current)}function ru(){da=Fi.current,Z(Un),Z(Fi)}var wa=0,ce=null,we=null,$e=null,Pi=!1,Bn=!1,rn=!1,Wi=0,zl=0,Hn=null,Sy=0;function He(){throw Error(s(321))}function su(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!bt(e[a],t[a]))return!1;return!0}function uu(e,t,a,l,u,c){return wa=c,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?Td:wd,rn=!1,c=a(l,u),rn=!1,Bn&&(c=Yf(t,a,l,u)),Gf(e),c}function Gf(e){_.H=lr;var t=we!==null&&we.next!==null;if(wa=0,$e=we=ce=null,Pi=!1,zl=0,Hn=null,t)throw Error(s(300));e===null||Fe||(e=e.dependencies,e!==null&&Qi(e)&&(Fe=!0))}function Yf(e,t,a,l){ce=e;var u=0;do{if(Bn&&(Hn=null),zl=0,Bn=!1,25<=u)throw Error(s(301));if(u+=1,$e=we=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}_.H=Cy,c=t(a,l)}while(Bn);return c}function xy(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?Dl(t):t,e=e.useState()[0],(we!==null?we.memoizedState:null)!==e&&(ce.flags|=1024),t}function ou(){var e=Wi!==0;return Wi=0,e}function cu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function fu(e){if(Pi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Pi=!1}wa=0,$e=we=ce=null,Bn=!1,zl=Wi=0,Hn=null}function dt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?ce.memoizedState=$e=e:$e=$e.next=e,$e}function qe(){if(we===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=we.next;var t=$e===null?ce.memoizedState:$e.next;if(t!==null)$e=t,we=e;else{if(e===null)throw ce.alternate===null?Error(s(467)):Error(s(310));we=e,e={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},$e===null?ce.memoizedState=$e=e:$e=$e.next=e}return $e}function du(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Dl(e){var t=zl;return zl+=1,Hn===null&&(Hn=[]),e=Uf(Hn,e,t),t=ce,($e===null?t.memoizedState:$e.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?Td:wd),e}function Ii(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Dl(e);if(e.$$typeof===G)return lt(e)}throw Error(s(438,String(e)))}function hu(e){var t=null,a=ce.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=ce.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=du(),ce.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=ne;return t.index++,a}function ra(e,t){return typeof t=="function"?t(e):t}function er(e){var t=qe();return pu(t,we,e)}function pu(e,t,a){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var u=e.baseQueue,c=l.pending;if(c!==null){if(u!==null){var g=u.next;u.next=c.next,c.next=g}t.baseQueue=u=c,l.pending=null}if(c=e.baseState,u===null)e.memoizedState=c;else{t=u.next;var y=g=null,N=null,O=t,H=!1;do{var q=O.lane&-536870913;if(q!==O.lane?(ve&q)===q:(wa&q)===q){var k=O.revertLane;if(k===0)N!==null&&(N=N.next={lane:0,revertLane:0,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),q===_n&&(H=!0);else if((wa&k)===k){O=O.next,k===_n&&(H=!0);continue}else q={lane:0,revertLane:O.revertLane,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},N===null?(y=N=q,g=c):N=N.next=q,ce.lanes|=k,za|=k;q=O.action,rn&&a(c,q),c=O.hasEagerState?O.eagerState:a(c,q)}else k={lane:q,revertLane:O.revertLane,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},N===null?(y=N=k,g=c):N=N.next=k,ce.lanes|=q,za|=q;O=O.next}while(O!==null&&O!==t);if(N===null?g=c:N.next=y,!bt(c,e.memoizedState)&&(Fe=!0,H&&(a=Mn,a!==null)))throw a;e.memoizedState=c,e.baseState=g,e.baseQueue=N,l.lastRenderedState=c}return u===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function mu(e){var t=qe(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var l=a.dispatch,u=a.pending,c=t.memoizedState;if(u!==null){a.pending=null;var g=u=u.next;do c=e(c,g.action),g=g.next;while(g!==u);bt(c,t.memoizedState)||(Fe=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,l]}function Qf(e,t,a){var l=ce,u=qe(),c=Se;if(c){if(a===void 0)throw Error(s(407));a=a()}else a=t();var g=!bt((we||u).memoizedState,a);g&&(u.memoizedState=a,Fe=!0),u=u.queue;var y=Xf.bind(null,l,u,e);if(_l(2048,8,y,[e]),u.getSnapshot!==t||g||$e!==null&&$e.memoizedState.tag&1){if(l.flags|=2048,Vn(9,tr(),Kf.bind(null,l,u,a,t),null),ke===null)throw Error(s(349));c||(wa&124)!==0||Zf(l,t,a)}return a}function Zf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ce.updateQueue,t===null?(t=du(),ce.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Kf(e,t,a,l){t.value=a,t.getSnapshot=l,Jf(t)&&Ff(e)}function Xf(e,t,a){return a(function(){Jf(t)&&Ff(e)})}function Jf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!bt(e,a)}catch{return!0}}function Ff(e){var t=kn(e,2);t!==null&&Tt(t,e,2)}function gu(e){var t=dt();if(typeof e=="function"){var a=e;if(e=a(),rn){ba(!0);try{a()}finally{ba(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:e},t}function Pf(e,t,a,l){return e.baseState=a,pu(e,we,typeof l=="function"?l:ra)}function Ny(e,t,a,l,u){if(nr(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){c.listeners.push(g)}};_.T!==null?a(!0):c.isTransition=!1,l(c),a=t.pending,a===null?(c.next=t.pending=c,Wf(t,c)):(c.next=a.next,t.pending=a.next=c)}}function Wf(e,t){var a=t.action,l=t.payload,u=e.state;if(t.isTransition){var c=_.T,g={};_.T=g;try{var y=a(u,l),N=_.S;N!==null&&N(g,y),If(e,t,y)}catch(O){vu(e,t,O)}finally{_.T=c}}else try{c=a(u,l),If(e,t,c)}catch(O){vu(e,t,O)}}function If(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){ed(e,t,l)},function(l){return vu(e,t,l)}):ed(e,t,a)}function ed(e,t,a){t.status="fulfilled",t.value=a,td(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Wf(e,a)))}function vu(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,td(t),t=t.next;while(t!==l)}e.action=null}function td(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ad(e,t){return t}function nd(e,t){if(Se){var a=ke.formState;if(a!==null){e:{var l=ce;if(Se){if(Ue){t:{for(var u=Ue,c=Zt;u.nodeType!==8;){if(!c){u=null;break t}if(u=$t(u.nextSibling),u===null){u=null;break t}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){Ue=$t(u.nextSibling),l=u.data==="F!";break e}}tn(l)}l=!1}l&&(t=a[0])}}return a=dt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ad,lastRenderedState:t},a.queue=l,a=Nd.bind(null,ce,l),l.dispatch=a,l=gu(!1),c=Nu.bind(null,ce,!1,l.queue),l=dt(),u={state:t,dispatch:null,action:e,pending:null},l.queue=u,a=Ny.bind(null,ce,u,c,a),u.dispatch=a,l.memoizedState=e,[t,a,!1]}function ld(e){var t=qe();return id(t,we,e)}function id(e,t,a){if(t=pu(e,t,ad)[0],e=er(ra)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Dl(t)}catch(g){throw g===jl?Xi:g}else l=t;t=qe();var u=t.queue,c=u.dispatch;return a!==t.memoizedState&&(ce.flags|=2048,Vn(9,tr(),Ey.bind(null,u,a),null)),[l,c,e]}function Ey(e,t){e.action=t}function rd(e){var t=qe(),a=we;if(a!==null)return id(t,a,e);qe(),t=t.memoizedState,a=qe();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function Vn(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=ce.updateQueue,t===null&&(t=du(),ce.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function tr(){return{destroy:void 0,resource:void 0}}function sd(){return qe().memoizedState}function ar(e,t,a,l){var u=dt();l=l===void 0?null:l,ce.flags|=e,u.memoizedState=Vn(1|t,tr(),a,l)}function _l(e,t,a,l){var u=qe();l=l===void 0?null:l;var c=u.memoizedState.inst;we!==null&&l!==null&&su(l,we.memoizedState.deps)?u.memoizedState=Vn(t,c,a,l):(ce.flags|=e,u.memoizedState=Vn(1|t,c,a,l))}function ud(e,t){ar(8390656,8,e,t)}function od(e,t){_l(2048,8,e,t)}function cd(e,t){return _l(4,2,e,t)}function fd(e,t){return _l(4,4,e,t)}function dd(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function hd(e,t,a){a=a!=null?a.concat([e]):null,_l(4,4,dd.bind(null,t,e),a)}function yu(){}function pd(e,t){var a=qe();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&su(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function md(e,t){var a=qe();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&su(t,l[1]))return l[0];if(l=e(),rn){ba(!0);try{e()}finally{ba(!1)}}return a.memoizedState=[l,t],l}function bu(e,t,a){return a===void 0||(wa&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=yh(),ce.lanes|=e,za|=e,a)}function gd(e,t,a,l){return bt(a,t)?a:Un.current!==null?(e=bu(e,a,l),bt(e,t)||(Fe=!0),e):(wa&42)===0?(Fe=!0,e.memoizedState=a):(e=yh(),ce.lanes|=e,za|=e,t)}function vd(e,t,a,l,u){var c=Y.p;Y.p=c!==0&&8>c?c:8;var g=_.T,y={};_.T=y,Nu(e,!1,t,a);try{var N=u(),O=_.S;if(O!==null&&O(y,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var H=by(N,l);Ml(e,t,H,Rt(e))}else Ml(e,t,l,Rt(e))}catch(q){Ml(e,t,{then:function(){},status:"rejected",reason:q},Rt())}finally{Y.p=c,_.T=g}}function Ry(){}function Su(e,t,a,l){if(e.tag!==5)throw Error(s(476));var u=yd(e).queue;vd(e,u,t,W,a===null?Ry:function(){return bd(e),a(l)})}function yd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:W},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function bd(e){var t=yd(e).next.queue;Ml(e,t,{},Rt())}function xu(){return lt(ei)}function Sd(){return qe().memoizedState}function xd(){return qe().memoizedState}function Ty(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Rt();e=Ra(a);var l=Ta(t,e,a);l!==null&&(Tt(l,t,a),Ol(l,t,a)),t={cache:Ps()},e.payload=t;return}t=t.return}}function wy(e,t,a){var l=Rt();a={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},nr(e)?Ed(t,a):(a=$s(e,t,a,l),a!==null&&(Tt(a,e,l),Rd(a,t,l)))}function Nd(e,t,a){var l=Rt();Ml(e,t,a,l)}function Ml(e,t,a,l){var u={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(nr(e))Ed(t,u);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var g=t.lastRenderedState,y=c(g,a);if(u.hasEagerState=!0,u.eagerState=y,bt(y,g))return Vi(e,t,u,0),ke===null&&Hi(),!1}catch{}finally{}if(a=$s(e,t,u,l),a!==null)return Tt(a,e,l),Rd(a,t,l),!0}return!1}function Nu(e,t,a,l){if(l={lane:2,revertLane:eo(),action:l,hasEagerState:!1,eagerState:null,next:null},nr(e)){if(t)throw Error(s(479))}else t=$s(e,a,l,2),t!==null&&Tt(t,e,2)}function nr(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function Ed(e,t){Bn=Pi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Rd(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,kc(e,a)}}var lr={readContext:lt,use:Ii,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He},Td={readContext:lt,use:Ii,useCallback:function(e,t){return dt().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:ud,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,ar(4194308,4,dd.bind(null,t,e),a)},useLayoutEffect:function(e,t){return ar(4194308,4,e,t)},useInsertionEffect:function(e,t){ar(4,2,e,t)},useMemo:function(e,t){var a=dt();t=t===void 0?null:t;var l=e();if(rn){ba(!0);try{e()}finally{ba(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=dt();if(a!==void 0){var u=a(t);if(rn){ba(!0);try{a(t)}finally{ba(!1)}}}else u=t;return l.memoizedState=l.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},l.queue=e,e=e.dispatch=wy.bind(null,ce,e),[l.memoizedState,e]},useRef:function(e){var t=dt();return e={current:e},t.memoizedState=e},useState:function(e){e=gu(e);var t=e.queue,a=Nd.bind(null,ce,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:yu,useDeferredValue:function(e,t){var a=dt();return bu(a,e,t)},useTransition:function(){var e=gu(!1);return e=vd.bind(null,ce,e.queue,!0,!1),dt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=ce,u=dt();if(Se){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),ke===null)throw Error(s(349));(ve&124)!==0||Zf(l,t,a)}u.memoizedState=a;var c={value:a,getSnapshot:t};return u.queue=c,ud(Xf.bind(null,l,c,e),[e]),l.flags|=2048,Vn(9,tr(),Kf.bind(null,l,c,a,t),null),a},useId:function(){var e=dt(),t=ke.identifierPrefix;if(Se){var a=na,l=aa;a=(l&~(1<<32-yt(l)-1)).toString(32)+a,t="«"+t+"R"+a,a=Wi++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=Sy++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:xu,useFormState:nd,useActionState:nd,useOptimistic:function(e){var t=dt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Nu.bind(null,ce,!0,a),a.dispatch=t,[e,t]},useMemoCache:hu,useCacheRefresh:function(){return dt().memoizedState=Ty.bind(null,ce)}},wd={readContext:lt,use:Ii,useCallback:pd,useContext:lt,useEffect:od,useImperativeHandle:hd,useInsertionEffect:cd,useLayoutEffect:fd,useMemo:md,useReducer:er,useRef:sd,useState:function(){return er(ra)},useDebugValue:yu,useDeferredValue:function(e,t){var a=qe();return gd(a,we.memoizedState,e,t)},useTransition:function(){var e=er(ra)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:Dl(e),t]},useSyncExternalStore:Qf,useId:Sd,useHostTransitionStatus:xu,useFormState:ld,useActionState:ld,useOptimistic:function(e,t){var a=qe();return Pf(a,we,e,t)},useMemoCache:hu,useCacheRefresh:xd},Cy={readContext:lt,use:Ii,useCallback:pd,useContext:lt,useEffect:od,useImperativeHandle:hd,useInsertionEffect:cd,useLayoutEffect:fd,useMemo:md,useReducer:mu,useRef:sd,useState:function(){return mu(ra)},useDebugValue:yu,useDeferredValue:function(e,t){var a=qe();return we===null?bu(a,e,t):gd(a,we.memoizedState,e,t)},useTransition:function(){var e=mu(ra)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:Dl(e),t]},useSyncExternalStore:Qf,useId:Sd,useHostTransitionStatus:xu,useFormState:rd,useActionState:rd,useOptimistic:function(e,t){var a=qe();return we!==null?Pf(a,we,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:hu,useCacheRefresh:xd},$n=null,Ul=0;function ir(e){var t=Ul;return Ul+=1,$n===null&&($n=[]),Uf($n,e,t)}function Bl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function rr(e,t){throw t.$$typeof===x?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Cd(e){var t=e._init;return t(e._payload)}function jd(e){function t(j,w){if(e){var A=j.deletions;A===null?(j.deletions=[w],j.flags|=16):A.push(w)}}function a(j,w){if(!e)return null;for(;w!==null;)t(j,w),w=w.sibling;return null}function l(j){for(var w=new Map;j!==null;)j.key!==null?w.set(j.key,j):w.set(j.index,j),j=j.sibling;return w}function u(j,w){return j=ta(j,w),j.index=0,j.sibling=null,j}function c(j,w,A){return j.index=A,e?(A=j.alternate,A!==null?(A=A.index,A<w?(j.flags|=67108866,w):A):(j.flags|=67108866,w)):(j.flags|=1048576,w)}function g(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function y(j,w,A,V){return w===null||w.tag!==6?(w=Gs(A,j.mode,V),w.return=j,w):(w=u(w,A),w.return=j,w)}function N(j,w,A,V){var X=A.type;return X===E?H(j,w,A.props.children,V,A.key):w!==null&&(w.elementType===X||typeof X=="object"&&X!==null&&X.$$typeof===ee&&Cd(X)===w.type)?(w=u(w,A.props),Bl(w,A),w.return=j,w):(w=qi(A.type,A.key,A.props,null,j.mode,V),Bl(w,A),w.return=j,w)}function O(j,w,A,V){return w===null||w.tag!==4||w.stateNode.containerInfo!==A.containerInfo||w.stateNode.implementation!==A.implementation?(w=Ys(A,j.mode,V),w.return=j,w):(w=u(w,A.children||[]),w.return=j,w)}function H(j,w,A,V,X){return w===null||w.tag!==7?(w=Pa(A,j.mode,V,X),w.return=j,w):(w=u(w,A),w.return=j,w)}function q(j,w,A){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=Gs(""+w,j.mode,A),w.return=j,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case S:return A=qi(w.type,w.key,w.props,null,j.mode,A),Bl(A,w),A.return=j,A;case C:return w=Ys(w,j.mode,A),w.return=j,w;case ee:var V=w._init;return w=V(w._payload),q(j,w,A)}if(Ye(w)||Ke(w))return w=Pa(w,j.mode,A,null),w.return=j,w;if(typeof w.then=="function")return q(j,ir(w),A);if(w.$$typeof===G)return q(j,Zi(j,w),A);rr(j,w)}return null}function k(j,w,A,V){var X=w!==null?w.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return X!==null?null:y(j,w,""+A,V);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case S:return A.key===X?N(j,w,A,V):null;case C:return A.key===X?O(j,w,A,V):null;case ee:return X=A._init,A=X(A._payload),k(j,w,A,V)}if(Ye(A)||Ke(A))return X!==null?null:H(j,w,A,V,null);if(typeof A.then=="function")return k(j,w,ir(A),V);if(A.$$typeof===G)return k(j,w,Zi(j,A),V);rr(j,A)}return null}function L(j,w,A,V,X){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return j=j.get(A)||null,y(w,j,""+V,X);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case S:return j=j.get(V.key===null?A:V.key)||null,N(w,j,V,X);case C:return j=j.get(V.key===null?A:V.key)||null,O(w,j,V,X);case ee:var fe=V._init;return V=fe(V._payload),L(j,w,A,V,X)}if(Ye(V)||Ke(V))return j=j.get(A)||null,H(w,j,V,X,null);if(typeof V.then=="function")return L(j,w,A,ir(V),X);if(V.$$typeof===G)return L(j,w,A,Zi(w,V),X);rr(w,V)}return null}function le(j,w,A,V){for(var X=null,fe=null,P=w,ae=w=0,We=null;P!==null&&ae<A.length;ae++){P.index>ae?(We=P,P=null):We=P.sibling;var be=k(j,P,A[ae],V);if(be===null){P===null&&(P=We);break}e&&P&&be.alternate===null&&t(j,P),w=c(be,w,ae),fe===null?X=be:fe.sibling=be,fe=be,P=We}if(ae===A.length)return a(j,P),Se&&Ia(j,ae),X;if(P===null){for(;ae<A.length;ae++)P=q(j,A[ae],V),P!==null&&(w=c(P,w,ae),fe===null?X=P:fe.sibling=P,fe=P);return Se&&Ia(j,ae),X}for(P=l(P);ae<A.length;ae++)We=L(P,j,ae,A[ae],V),We!==null&&(e&&We.alternate!==null&&P.delete(We.key===null?ae:We.key),w=c(We,w,ae),fe===null?X=We:fe.sibling=We,fe=We);return e&&P.forEach(function(qa){return t(j,qa)}),Se&&Ia(j,ae),X}function te(j,w,A,V){if(A==null)throw Error(s(151));for(var X=null,fe=null,P=w,ae=w=0,We=null,be=A.next();P!==null&&!be.done;ae++,be=A.next()){P.index>ae?(We=P,P=null):We=P.sibling;var qa=k(j,P,be.value,V);if(qa===null){P===null&&(P=We);break}e&&P&&qa.alternate===null&&t(j,P),w=c(qa,w,ae),fe===null?X=qa:fe.sibling=qa,fe=qa,P=We}if(be.done)return a(j,P),Se&&Ia(j,ae),X;if(P===null){for(;!be.done;ae++,be=A.next())be=q(j,be.value,V),be!==null&&(w=c(be,w,ae),fe===null?X=be:fe.sibling=be,fe=be);return Se&&Ia(j,ae),X}for(P=l(P);!be.done;ae++,be=A.next())be=L(P,j,ae,be.value,V),be!==null&&(e&&be.alternate!==null&&P.delete(be.key===null?ae:be.key),w=c(be,w,ae),fe===null?X=be:fe.sibling=be,fe=be);return e&&P.forEach(function(j0){return t(j,j0)}),Se&&Ia(j,ae),X}function je(j,w,A,V){if(typeof A=="object"&&A!==null&&A.type===E&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case S:e:{for(var X=A.key;w!==null;){if(w.key===X){if(X=A.type,X===E){if(w.tag===7){a(j,w.sibling),V=u(w,A.props.children),V.return=j,j=V;break e}}else if(w.elementType===X||typeof X=="object"&&X!==null&&X.$$typeof===ee&&Cd(X)===w.type){a(j,w.sibling),V=u(w,A.props),Bl(V,A),V.return=j,j=V;break e}a(j,w);break}else t(j,w);w=w.sibling}A.type===E?(V=Pa(A.props.children,j.mode,V,A.key),V.return=j,j=V):(V=qi(A.type,A.key,A.props,null,j.mode,V),Bl(V,A),V.return=j,j=V)}return g(j);case C:e:{for(X=A.key;w!==null;){if(w.key===X)if(w.tag===4&&w.stateNode.containerInfo===A.containerInfo&&w.stateNode.implementation===A.implementation){a(j,w.sibling),V=u(w,A.children||[]),V.return=j,j=V;break e}else{a(j,w);break}else t(j,w);w=w.sibling}V=Ys(A,j.mode,V),V.return=j,j=V}return g(j);case ee:return X=A._init,A=X(A._payload),je(j,w,A,V)}if(Ye(A))return le(j,w,A,V);if(Ke(A)){if(X=Ke(A),typeof X!="function")throw Error(s(150));return A=X.call(A),te(j,w,A,V)}if(typeof A.then=="function")return je(j,w,ir(A),V);if(A.$$typeof===G)return je(j,w,Zi(j,A),V);rr(j,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,w!==null&&w.tag===6?(a(j,w.sibling),V=u(w,A),V.return=j,j=V):(a(j,w),V=Gs(A,j.mode,V),V.return=j,j=V),g(j)):a(j,w)}return function(j,w,A,V){try{Ul=0;var X=je(j,w,A,V);return $n=null,X}catch(P){if(P===jl||P===Xi)throw P;var fe=St(29,P,null,j.mode);return fe.lanes=V,fe.return=j,fe}finally{}}}var qn=jd(!0),Ad=jd(!1),Dt=$(null),Kt=null;function Ca(e){var t=e.alternate;Q(Ze,Ze.current&1),Q(Dt,e),Kt===null&&(t===null||Un.current!==null||t.memoizedState!==null)&&(Kt=e)}function Od(e){if(e.tag===22){if(Q(Ze,Ze.current),Q(Dt,e),Kt===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Kt=e)}}else ja()}function ja(){Q(Ze,Ze.current),Q(Dt,Dt.current)}function sa(e){Z(Dt),Kt===e&&(Kt=null),Z(Ze)}var Ze=$(0);function sr(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||ho(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Eu(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:v({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Ru={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Rt(),u=Ra(l);u.payload=t,a!=null&&(u.callback=a),t=Ta(e,u,l),t!==null&&(Tt(t,e,l),Ol(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Rt(),u=Ra(l);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=Ta(e,u,l),t!==null&&(Tt(t,e,l),Ol(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Rt(),l=Ra(a);l.tag=2,t!=null&&(l.callback=t),t=Ta(e,l,a),t!==null&&(Tt(t,e,a),Ol(t,e,a))}};function kd(e,t,a,l,u,c,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,g):t.prototype&&t.prototype.isPureReactComponent?!Sl(a,l)||!Sl(u,c):!0}function Ld(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Ru.enqueueReplaceState(t,t.state,null)}function sn(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=v({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}var ur=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function zd(e){ur(e)}function Dd(e){console.error(e)}function _d(e){ur(e)}function or(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Md(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Tu(e,t,a){return a=Ra(a),a.tag=3,a.payload={element:null},a.callback=function(){or(e,t)},a}function Ud(e){return e=Ra(e),e.tag=3,e}function Bd(e,t,a,l){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var c=l.value;e.payload=function(){return u(c)},e.callback=function(){Md(t,a,l)}}var g=a.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){Md(t,a,l),typeof u!="function"&&(Da===null?Da=new Set([this]):Da.add(this));var y=l.stack;this.componentDidCatch(l.value,{componentStack:y!==null?y:""})})}function jy(e,t,a,l,u){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Tl(t,a,u,!0),a=Dt.current,a!==null){switch(a.tag){case 13:return Kt===null?Ju():a.alternate===null&&Be===0&&(Be=3),a.flags&=-257,a.flags|=65536,a.lanes=u,l===eu?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Pu(e,l,u)),!1;case 22:return a.flags|=65536,l===eu?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Pu(e,l,u)),!1}throw Error(s(435,a.tag))}return Pu(e,l,u),Ju(),!1}if(Se)return t=Dt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,l!==Ks&&(e=Error(s(422),{cause:l}),Rl(Ot(e,a)))):(l!==Ks&&(t=Error(s(423),{cause:l}),Rl(Ot(t,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,l=Ot(l,a),u=Tu(e.stateNode,l,u),nu(e,u),Be!==4&&(Be=2)),!1;var c=Error(s(520),{cause:l});if(c=Ot(c,a),Ql===null?Ql=[c]:Ql.push(c),Be!==4&&(Be=2),t===null)return!0;l=Ot(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=Tu(a.stateNode,l,e),nu(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Da===null||!Da.has(c))))return a.flags|=65536,u&=-u,a.lanes|=u,u=Ud(u),Bd(u,e,a,l),nu(a,u),!1}a=a.return}while(a!==null);return!1}var Hd=Error(s(461)),Fe=!1;function Ie(e,t,a,l){t.child=e===null?Ad(t,null,a,l):qn(t,e.child,a,l)}function Vd(e,t,a,l,u){a=a.render;var c=t.ref;if("ref"in l){var g={};for(var y in l)y!=="ref"&&(g[y]=l[y])}else g=l;return nn(t),l=uu(e,t,a,g,c,u),y=ou(),e!==null&&!Fe?(cu(e,t,u),ua(e,t,u)):(Se&&y&&Qs(t),t.flags|=1,Ie(e,t,l,u),t.child)}function $d(e,t,a,l,u){if(e===null){var c=a.type;return typeof c=="function"&&!qs(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,qd(e,t,c,l,u)):(e=qi(a.type,null,l,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!zu(e,u)){var g=c.memoizedProps;if(a=a.compare,a=a!==null?a:Sl,a(g,l)&&e.ref===t.ref)return ua(e,t,u)}return t.flags|=1,e=ta(c,l),e.ref=t.ref,e.return=t,t.child=e}function qd(e,t,a,l,u){if(e!==null){var c=e.memoizedProps;if(Sl(c,l)&&e.ref===t.ref)if(Fe=!1,t.pendingProps=l=c,zu(e,u))(e.flags&131072)!==0&&(Fe=!0);else return t.lanes=e.lanes,ua(e,t,u)}return wu(e,t,a,l,u)}function Gd(e,t,a){var l=t.pendingProps,u=l.children,c=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((t.flags&128)!==0){if(l=c!==null?c.baseLanes|a:a,e!==null){for(u=t.child=e.child,c=0;u!==null;)c=c|u.lanes|u.childLanes,u=u.sibling;t.childLanes=c&~l}else t.childLanes=0,t.child=null;return Yd(e,t,l,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ki(t,c!==null?c.cachePool:null),c!==null?qf(t,c):iu(),Od(t);else return t.lanes=t.childLanes=536870912,Yd(e,t,c!==null?c.baseLanes|a:a,a)}else c!==null?(Ki(t,c.cachePool),qf(t,c),ja(),t.memoizedState=null):(e!==null&&Ki(t,null),iu(),ja());return Ie(e,t,u,a),t.child}function Yd(e,t,a,l){var u=Is();return u=u===null?null:{parent:Qe._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&Ki(t,null),iu(),Od(t),e!==null&&Tl(e,t,l,!0),null}function cr(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function wu(e,t,a,l,u){return nn(t),a=uu(e,t,a,l,void 0,u),l=ou(),e!==null&&!Fe?(cu(e,t,u),ua(e,t,u)):(Se&&l&&Qs(t),t.flags|=1,Ie(e,t,a,u),t.child)}function Qd(e,t,a,l,u,c){return nn(t),t.updateQueue=null,a=Yf(t,l,a,u),Gf(e),l=ou(),e!==null&&!Fe?(cu(e,t,c),ua(e,t,c)):(Se&&l&&Qs(t),t.flags|=1,Ie(e,t,a,c),t.child)}function Zd(e,t,a,l,u){if(nn(t),t.stateNode===null){var c=Ln,g=a.contextType;typeof g=="object"&&g!==null&&(c=lt(g)),c=new a(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Ru,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},tu(t),g=a.contextType,c.context=typeof g=="object"&&g!==null?lt(g):Ln,c.state=t.memoizedState,g=a.getDerivedStateFromProps,typeof g=="function"&&(Eu(t,a,g,l),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(g=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),g!==c.state&&Ru.enqueueReplaceState(c,c.state,null),Ll(t,l,c,u),kl(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var y=t.memoizedProps,N=sn(a,y);c.props=N;var O=c.context,H=a.contextType;g=Ln,typeof H=="object"&&H!==null&&(g=lt(H));var q=a.getDerivedStateFromProps;H=typeof q=="function"||typeof c.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,H||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(y||O!==g)&&Ld(t,c,l,g),Ea=!1;var k=t.memoizedState;c.state=k,Ll(t,l,c,u),kl(),O=t.memoizedState,y||k!==O||Ea?(typeof q=="function"&&(Eu(t,a,q,l),O=t.memoizedState),(N=Ea||kd(t,a,N,l,k,O,g))?(H||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=O),c.props=l,c.state=O,c.context=g,l=N):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,au(e,t),g=t.memoizedProps,H=sn(a,g),c.props=H,q=t.pendingProps,k=c.context,O=a.contextType,N=Ln,typeof O=="object"&&O!==null&&(N=lt(O)),y=a.getDerivedStateFromProps,(O=typeof y=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g!==q||k!==N)&&Ld(t,c,l,N),Ea=!1,k=t.memoizedState,c.state=k,Ll(t,l,c,u),kl();var L=t.memoizedState;g!==q||k!==L||Ea||e!==null&&e.dependencies!==null&&Qi(e.dependencies)?(typeof y=="function"&&(Eu(t,a,y,l),L=t.memoizedState),(H=Ea||kd(t,a,H,l,k,L,N)||e!==null&&e.dependencies!==null&&Qi(e.dependencies))?(O||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,L,N),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,L,N)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=L),c.props=l,c.state=L,c.context=N,l=H):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,cr(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=qn(t,e.child,null,u),t.child=qn(t,null,a,u)):Ie(e,t,a,u),t.memoizedState=c.state,e=t.child):e=ua(e,t,u),e}function Kd(e,t,a,l){return El(),t.flags|=256,Ie(e,t,a,l),t.child}var Cu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ju(e){return{baseLanes:e,cachePool:Df()}}function Au(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=_t),e}function Xd(e,t,a){var l=t.pendingProps,u=!1,c=(t.flags&128)!==0,g;if((g=c)||(g=e!==null&&e.memoizedState===null?!1:(Ze.current&2)!==0),g&&(u=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(Se){if(u?Ca(t):ja(),Se){var y=Ue,N;if(N=y){e:{for(N=y,y=Zt;N.nodeType!==8;){if(!y){y=null;break e}if(N=$t(N.nextSibling),N===null){y=null;break e}}y=N}y!==null?(t.memoizedState={dehydrated:y,treeContext:Wa!==null?{id:aa,overflow:na}:null,retryLane:536870912,hydrationErrors:null},N=St(18,null,null,0),N.stateNode=y,N.return=t,t.child=N,st=t,Ue=null,N=!0):N=!1}N||tn(t)}if(y=t.memoizedState,y!==null&&(y=y.dehydrated,y!==null))return ho(y)?t.lanes=32:t.lanes=536870912,null;sa(t)}return y=l.children,l=l.fallback,u?(ja(),u=t.mode,y=fr({mode:"hidden",children:y},u),l=Pa(l,u,a,null),y.return=t,l.return=t,y.sibling=l,t.child=y,u=t.child,u.memoizedState=ju(a),u.childLanes=Au(e,g,a),t.memoizedState=Cu,l):(Ca(t),Ou(t,y))}if(N=e.memoizedState,N!==null&&(y=N.dehydrated,y!==null)){if(c)t.flags&256?(Ca(t),t.flags&=-257,t=ku(e,t,a)):t.memoizedState!==null?(ja(),t.child=e.child,t.flags|=128,t=null):(ja(),u=l.fallback,y=t.mode,l=fr({mode:"visible",children:l.children},y),u=Pa(u,y,a,null),u.flags|=2,l.return=t,u.return=t,l.sibling=u,t.child=l,qn(t,e.child,null,a),l=t.child,l.memoizedState=ju(a),l.childLanes=Au(e,g,a),t.memoizedState=Cu,t=u);else if(Ca(t),ho(y)){if(g=y.nextSibling&&y.nextSibling.dataset,g)var O=g.dgst;g=O,l=Error(s(419)),l.stack="",l.digest=g,Rl({value:l,source:null,stack:null}),t=ku(e,t,a)}else if(Fe||Tl(e,t,a,!1),g=(a&e.childLanes)!==0,Fe||g){if(g=ke,g!==null&&(l=a&-a,l=(l&42)!==0?1:hs(l),l=(l&(g.suspendedLanes|a))!==0?0:l,l!==0&&l!==N.retryLane))throw N.retryLane=l,kn(e,l),Tt(g,e,l),Hd;y.data==="$?"||Ju(),t=ku(e,t,a)}else y.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,Ue=$t(y.nextSibling),st=t,Se=!0,en=null,Zt=!1,e!==null&&(Lt[zt++]=aa,Lt[zt++]=na,Lt[zt++]=Wa,aa=e.id,na=e.overflow,Wa=t),t=Ou(t,l.children),t.flags|=4096);return t}return u?(ja(),u=l.fallback,y=t.mode,N=e.child,O=N.sibling,l=ta(N,{mode:"hidden",children:l.children}),l.subtreeFlags=N.subtreeFlags&65011712,O!==null?u=ta(O,u):(u=Pa(u,y,a,null),u.flags|=2),u.return=t,l.return=t,l.sibling=u,t.child=l,l=u,u=t.child,y=e.child.memoizedState,y===null?y=ju(a):(N=y.cachePool,N!==null?(O=Qe._currentValue,N=N.parent!==O?{parent:O,pool:O}:N):N=Df(),y={baseLanes:y.baseLanes|a,cachePool:N}),u.memoizedState=y,u.childLanes=Au(e,g,a),t.memoizedState=Cu,l):(Ca(t),a=e.child,e=a.sibling,a=ta(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=a,t.memoizedState=null,a)}function Ou(e,t){return t=fr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function fr(e,t){return e=St(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function ku(e,t,a){return qn(t,e.child,null,a),e=Ou(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Jd(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Js(e.return,t,a)}function Lu(e,t,a,l,u){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:u}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=l,c.tail=a,c.tailMode=u)}function Fd(e,t,a){var l=t.pendingProps,u=l.revealOrder,c=l.tail;if(Ie(e,t,l.children,a),l=Ze.current,(l&2)!==0)l=l&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Jd(e,a,t);else if(e.tag===19)Jd(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}switch(Q(Ze,l),u){case"forwards":for(a=t.child,u=null;a!==null;)e=a.alternate,e!==null&&sr(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),Lu(t,!1,u,a,c);break;case"backwards":for(a=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&sr(e)===null){t.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}Lu(t,!0,a,null,c);break;case"together":Lu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ua(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),za|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Tl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=ta(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ta(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function zu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Qi(e)))}function Ay(e,t,a){switch(t.tag){case 3:ze(t,t.stateNode.containerInfo),Na(t,Qe,e.memoizedState.cache),El();break;case 27:case 5:us(t);break;case 4:ze(t,t.stateNode.containerInfo);break;case 10:Na(t,t.type,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Ca(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Xd(e,t,a):(Ca(t),e=ua(e,t,a),e!==null?e.sibling:null);Ca(t);break;case 19:var u=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Tl(e,t,a,!1),l=(a&t.childLanes)!==0),u){if(l)return Fd(e,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Q(Ze,Ze.current),l)break;return null;case 22:case 23:return t.lanes=0,Gd(e,t,a);case 24:Na(t,Qe,e.memoizedState.cache)}return ua(e,t,a)}function Pd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Fe=!0;else{if(!zu(e,a)&&(t.flags&128)===0)return Fe=!1,Ay(e,t,a);Fe=(e.flags&131072)!==0}else Fe=!1,Se&&(t.flags&1048576)!==0&&Cf(t,Yi,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var l=t.elementType,u=l._init;if(l=u(l._payload),t.type=l,typeof l=="function")qs(l)?(e=sn(l,e),t.tag=1,t=Zd(null,t,l,e,a)):(t.tag=0,t=wu(null,t,l,e,a));else{if(l!=null){if(u=l.$$typeof,u===J){t.tag=11,t=Vd(null,t,l,e,a);break e}else if(u===re){t.tag=14,t=$d(null,t,l,e,a);break e}}throw t=Ge(l)||l,Error(s(306,t,""))}}return t;case 0:return wu(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,u=sn(l,t.pendingProps),Zd(e,t,l,u,a);case 3:e:{if(ze(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var c=t.memoizedState;u=c.element,au(e,t),Ll(t,l,null,a);var g=t.memoizedState;if(l=g.cache,Na(t,Qe,l),l!==c.cache&&Fs(t,[Qe],a,!0),kl(),l=g.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Kd(e,t,l,a);break e}else if(l!==u){u=Ot(Error(s(424)),t),Rl(u),t=Kd(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ue=$t(e.firstChild),st=t,Se=!0,en=null,Zt=!0,a=Ad(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(El(),l===u){t=ua(e,t,a);break e}Ie(e,t,l,a)}t=t.child}return t;case 26:return cr(e,t),e===null?(a=tp(t.type,null,t.pendingProps,null))?t.memoizedState=a:Se||(a=t.type,e=t.pendingProps,l=Tr(se.current).createElement(a),l[nt]=t,l[ct]=e,tt(l,a,e),Je(l),t.stateNode=l):t.memoizedState=tp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return us(t),e===null&&Se&&(l=t.stateNode=Wh(t.type,t.pendingProps,se.current),st=t,Zt=!0,u=Ue,Ua(t.type)?(po=u,Ue=$t(l.firstChild)):Ue=u),Ie(e,t,t.pendingProps.children,a),cr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Se&&((u=l=Ue)&&(l=n0(l,t.type,t.pendingProps,Zt),l!==null?(t.stateNode=l,st=t,Ue=$t(l.firstChild),Zt=!1,u=!0):u=!1),u||tn(t)),us(t),u=t.type,c=t.pendingProps,g=e!==null?e.memoizedProps:null,l=c.children,oo(u,c)?l=null:g!==null&&oo(u,g)&&(t.flags|=32),t.memoizedState!==null&&(u=uu(e,t,xy,null,null,a),ei._currentValue=u),cr(e,t),Ie(e,t,l,a),t.child;case 6:return e===null&&Se&&((e=a=Ue)&&(a=l0(a,t.pendingProps,Zt),a!==null?(t.stateNode=a,st=t,Ue=null,e=!0):e=!1),e||tn(t)),null;case 13:return Xd(e,t,a);case 4:return ze(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=qn(t,null,l,a):Ie(e,t,l,a),t.child;case 11:return Vd(e,t,t.type,t.pendingProps,a);case 7:return Ie(e,t,t.pendingProps,a),t.child;case 8:return Ie(e,t,t.pendingProps.children,a),t.child;case 12:return Ie(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Na(t,t.type,l.value),Ie(e,t,l.children,a),t.child;case 9:return u=t.type._context,l=t.pendingProps.children,nn(t),u=lt(u),l=l(u),t.flags|=1,Ie(e,t,l,a),t.child;case 14:return $d(e,t,t.type,t.pendingProps,a);case 15:return qd(e,t,t.type,t.pendingProps,a);case 19:return Fd(e,t,a);case 31:return l=t.pendingProps,a=t.mode,l={mode:l.mode,children:l.children},e===null?(a=fr(l,a),a.ref=t.ref,t.child=a,a.return=t,t=a):(a=ta(e.child,l),a.ref=t.ref,t.child=a,a.return=t,t=a),t;case 22:return Gd(e,t,a);case 24:return nn(t),l=lt(Qe),e===null?(u=Is(),u===null&&(u=ke,c=Ps(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=a),u=c),t.memoizedState={parent:l,cache:u},tu(t),Na(t,Qe,u)):((e.lanes&a)!==0&&(au(e,t),Ll(t,null,null,a),kl()),u=e.memoizedState,c=t.memoizedState,u.parent!==l?(u={parent:l,cache:l},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Na(t,Qe,l)):(l=c.cache,Na(t,Qe,l),l!==u.cache&&Fs(t,[Qe],a,!0))),Ie(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function oa(e){e.flags|=4}function Wd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!rp(t)){if(t=Dt.current,t!==null&&((ve&4194048)===ve?Kt!==null:(ve&62914560)!==ve&&(ve&536870912)===0||t!==Kt))throw Al=eu,_f;e.flags|=8192}}function dr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ac():536870912,e.lanes|=t,Zn|=t)}function Hl(e,t){if(!Se)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Me(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function Oy(e,t,a){var l=t.pendingProps;switch(Zs(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Me(t),null;case 1:return Me(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ia(Qe),ya(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Nl(t)?oa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Of())),Me(t),null;case 26:return a=t.memoizedState,e===null?(oa(t),a!==null?(Me(t),Wd(t,a)):(Me(t),t.flags&=-16777217)):a?a!==e.memoizedState?(oa(t),Me(t),Wd(t,a)):(Me(t),t.flags&=-16777217):(e.memoizedProps!==l&&oa(t),Me(t),t.flags&=-16777217),null;case 27:Ei(t),a=se.current;var u=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==l&&oa(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Me(t),null}e=I.current,Nl(t)?jf(t):(e=Wh(u,l,a),t.stateNode=e,oa(t))}return Me(t),null;case 5:if(Ei(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&oa(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Me(t),null}if(e=I.current,Nl(t))jf(t);else{switch(u=Tr(se.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof l.is=="string"?u.createElement("select",{is:l.is}):u.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?u.createElement(a,{is:l.is}):u.createElement(a)}}e[nt]=t,e[ct]=l;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)e.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=e;e:switch(tt(e,a,l),a){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&oa(t)}}return Me(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&oa(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=se.current,Nl(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,u=st,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}e[nt]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Qh(e.nodeValue,a)),e||tn(t)}else e=Tr(e).createTextNode(l),e[nt]=t,t.stateNode=e}return Me(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Nl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!u)throw Error(s(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[nt]=t}else El(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Me(t),u=!1}else u=Of(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(sa(t),t):(sa(t),null)}if(sa(t),(t.flags&128)!==0)return t.lanes=a,t;if(a=l!==null,e=e!==null&&e.memoizedState!==null,a){l=t.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool);var c=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==u&&(l.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),dr(t,t.updateQueue),Me(t),null;case 4:return ya(),e===null&&lo(t.stateNode.containerInfo),Me(t),null;case 10:return ia(t.type),Me(t),null;case 19:if(Z(Ze),u=t.memoizedState,u===null)return Me(t),null;if(l=(t.flags&128)!==0,c=u.rendering,c===null)if(l)Hl(u,!1);else{if(Be!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=sr(e),c!==null){for(t.flags|=128,Hl(u,!1),e=c.updateQueue,t.updateQueue=e,dr(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)wf(a,e),a=a.sibling;return Q(Ze,Ze.current&1|2),t.child}e=e.sibling}u.tail!==null&&Qt()>mr&&(t.flags|=128,l=!0,Hl(u,!1),t.lanes=4194304)}else{if(!l)if(e=sr(c),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,dr(t,e),Hl(u,!0),u.tail===null&&u.tailMode==="hidden"&&!c.alternate&&!Se)return Me(t),null}else 2*Qt()-u.renderingStartTime>mr&&a!==536870912&&(t.flags|=128,l=!0,Hl(u,!1),t.lanes=4194304);u.isBackwards?(c.sibling=t.child,t.child=c):(e=u.last,e!==null?e.sibling=c:t.child=c,u.last=c)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Qt(),t.sibling=null,e=Ze.current,Q(Ze,l?e&1|2:e&1),t):(Me(t),null);case 22:case 23:return sa(t),ru(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),a=t.updateQueue,a!==null&&dr(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&Z(ln),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ia(Qe),Me(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function ky(e,t){switch(Zs(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ia(Qe),ya(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ei(t),null;case 13:if(sa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));El()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(Ze),null;case 4:return ya(),null;case 10:return ia(t.type),null;case 22:case 23:return sa(t),ru(),e!==null&&Z(ln),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ia(Qe),null;case 25:return null;default:return null}}function Id(e,t){switch(Zs(t),t.tag){case 3:ia(Qe),ya();break;case 26:case 27:case 5:Ei(t);break;case 4:ya();break;case 13:sa(t);break;case 19:Z(Ze);break;case 10:ia(t.type);break;case 22:case 23:sa(t),ru(),e!==null&&Z(ln);break;case 24:ia(Qe)}}function Vl(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var u=l.next;a=u;do{if((a.tag&e)===e){l=void 0;var c=a.create,g=a.inst;l=c(),g.destroy=l}a=a.next}while(a!==u)}}catch(y){Ae(t,t.return,y)}}function Aa(e,t,a){try{var l=t.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var c=u.next;l=c;do{if((l.tag&e)===e){var g=l.inst,y=g.destroy;if(y!==void 0){g.destroy=void 0,u=t;var N=a,O=y;try{O()}catch(H){Ae(u,N,H)}}}l=l.next}while(l!==c)}}catch(H){Ae(t,t.return,H)}}function eh(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{$f(t,a)}catch(l){Ae(e,e.return,l)}}}function th(e,t,a){a.props=sn(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ae(e,t,l)}}function $l(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(u){Ae(e,t,u)}}function Xt(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(u){Ae(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){Ae(e,t,u)}else a.current=null}function ah(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(u){Ae(e,e.return,u)}}function Du(e,t,a){try{var l=e.stateNode;Wy(l,e.type,a,t),l[ct]=t}catch(u){Ae(e,e.return,u)}}function nh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ua(e.type)||e.tag===4}function _u(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||nh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ua(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Mu(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Rr));else if(l!==4&&(l===27&&Ua(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Mu(e,t,a),e=e.sibling;e!==null;)Mu(e,t,a),e=e.sibling}function hr(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Ua(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(hr(e,t,a),e=e.sibling;e!==null;)hr(e,t,a),e=e.sibling}function lh(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);tt(t,l,a),t[nt]=e,t[ct]=a}catch(c){Ae(e,e.return,c)}}var ca=!1,Ve=!1,Uu=!1,ih=typeof WeakSet=="function"?WeakSet:Set,Pe=null;function Ly(e,t){if(e=e.containerInfo,so=kr,e=gf(e),_s(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var u=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var g=0,y=-1,N=-1,O=0,H=0,q=e,k=null;t:for(;;){for(var L;q!==a||u!==0&&q.nodeType!==3||(y=g+u),q!==c||l!==0&&q.nodeType!==3||(N=g+l),q.nodeType===3&&(g+=q.nodeValue.length),(L=q.firstChild)!==null;)k=q,q=L;for(;;){if(q===e)break t;if(k===a&&++O===u&&(y=g),k===c&&++H===l&&(N=g),(L=q.nextSibling)!==null)break;q=k,k=q.parentNode}q=L}a=y===-1||N===-1?null:{start:y,end:N}}else a=null}a=a||{start:0,end:0}}else a=null;for(uo={focusedElem:e,selectionRange:a},kr=!1,Pe=t;Pe!==null;)if(t=Pe,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Pe=e;else for(;Pe!==null;){switch(t=Pe,c=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,u=c.memoizedProps,c=c.memoizedState,l=a.stateNode;try{var le=sn(a.type,u,a.elementType===a.type);e=l.getSnapshotBeforeUpdate(le,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(te){Ae(a,a.return,te)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)fo(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":fo(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Pe=e;break}Pe=t.return}}function rh(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Oa(e,a),l&4&&Vl(5,a);break;case 1:if(Oa(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(g){Ae(a,a.return,g)}else{var u=sn(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){Ae(a,a.return,g)}}l&64&&eh(a),l&512&&$l(a,a.return);break;case 3:if(Oa(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{$f(e,t)}catch(g){Ae(a,a.return,g)}}break;case 27:t===null&&l&4&&lh(a);case 26:case 5:Oa(e,a),t===null&&l&4&&ah(a),l&512&&$l(a,a.return);break;case 12:Oa(e,a);break;case 13:Oa(e,a),l&4&&oh(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=$y.bind(null,a),i0(e,a))));break;case 22:if(l=a.memoizedState!==null||ca,!l){t=t!==null&&t.memoizedState!==null||Ve,u=ca;var c=Ve;ca=l,(Ve=t)&&!c?ka(e,a,(a.subtreeFlags&8772)!==0):Oa(e,a),ca=u,Ve=c}break;case 30:break;default:Oa(e,a)}}function sh(e){var t=e.alternate;t!==null&&(e.alternate=null,sh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&gs(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var De=null,ht=!1;function fa(e,t,a){for(a=a.child;a!==null;)uh(e,t,a),a=a.sibling}function uh(e,t,a){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(ul,a)}catch{}switch(a.tag){case 26:Ve||Xt(a,t),fa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ve||Xt(a,t);var l=De,u=ht;Ua(a.type)&&(De=a.stateNode,ht=!1),fa(e,t,a),Fl(a.stateNode),De=l,ht=u;break;case 5:Ve||Xt(a,t);case 6:if(l=De,u=ht,De=null,fa(e,t,a),De=l,ht=u,De!==null)if(ht)try{(De.nodeType===9?De.body:De.nodeName==="HTML"?De.ownerDocument.body:De).removeChild(a.stateNode)}catch(c){Ae(a,t,c)}else try{De.removeChild(a.stateNode)}catch(c){Ae(a,t,c)}break;case 18:De!==null&&(ht?(e=De,Fh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),li(e)):Fh(De,a.stateNode));break;case 4:l=De,u=ht,De=a.stateNode.containerInfo,ht=!0,fa(e,t,a),De=l,ht=u;break;case 0:case 11:case 14:case 15:Ve||Aa(2,a,t),Ve||Aa(4,a,t),fa(e,t,a);break;case 1:Ve||(Xt(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&th(a,t,l)),fa(e,t,a);break;case 21:fa(e,t,a);break;case 22:Ve=(l=Ve)||a.memoizedState!==null,fa(e,t,a),Ve=l;break;default:fa(e,t,a)}}function oh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{li(e)}catch(a){Ae(t,t.return,a)}}function zy(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ih),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ih),t;default:throw Error(s(435,e.tag))}}function Bu(e,t){var a=zy(e);t.forEach(function(l){var u=qy.bind(null,e,l);a.has(l)||(a.add(l),l.then(u,u))})}function xt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var u=a[l],c=e,g=t,y=g;e:for(;y!==null;){switch(y.tag){case 27:if(Ua(y.type)){De=y.stateNode,ht=!1;break e}break;case 5:De=y.stateNode,ht=!1;break e;case 3:case 4:De=y.stateNode.containerInfo,ht=!0;break e}y=y.return}if(De===null)throw Error(s(160));uh(c,g,u),De=null,ht=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)ch(t,e),t=t.sibling}var Vt=null;function ch(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:xt(t,e),Nt(e),l&4&&(Aa(3,e,e.return),Vl(3,e),Aa(5,e,e.return));break;case 1:xt(t,e),Nt(e),l&512&&(Ve||a===null||Xt(a,a.return)),l&64&&ca&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var u=Vt;if(xt(t,e),Nt(e),l&512&&(Ve||a===null||Xt(a,a.return)),l&4){var c=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,u=u.ownerDocument||u;t:switch(l){case"title":c=u.getElementsByTagName("title")[0],(!c||c[fl]||c[nt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(l),u.head.insertBefore(c,u.querySelector("head > title"))),tt(c,l,a),c[nt]=e,Je(c),l=c;break e;case"link":var g=lp("link","href",u).get(l+(a.href||""));if(g){for(var y=0;y<g.length;y++)if(c=g[y],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){g.splice(y,1);break t}}c=u.createElement(l),tt(c,l,a),u.head.appendChild(c);break;case"meta":if(g=lp("meta","content",u).get(l+(a.content||""))){for(y=0;y<g.length;y++)if(c=g[y],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){g.splice(y,1);break t}}c=u.createElement(l),tt(c,l,a),u.head.appendChild(c);break;default:throw Error(s(468,l))}c[nt]=e,Je(c),l=c}e.stateNode=l}else ip(u,e.type,e.stateNode);else e.stateNode=np(u,l,e.memoizedProps);else c!==l?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,l===null?ip(u,e.type,e.stateNode):np(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Du(e,e.memoizedProps,a.memoizedProps)}break;case 27:xt(t,e),Nt(e),l&512&&(Ve||a===null||Xt(a,a.return)),a!==null&&l&4&&Du(e,e.memoizedProps,a.memoizedProps);break;case 5:if(xt(t,e),Nt(e),l&512&&(Ve||a===null||Xt(a,a.return)),e.flags&32){u=e.stateNode;try{Rn(u,"")}catch(L){Ae(e,e.return,L)}}l&4&&e.stateNode!=null&&(u=e.memoizedProps,Du(e,u,a!==null?a.memoizedProps:u)),l&1024&&(Uu=!0);break;case 6:if(xt(t,e),Nt(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(L){Ae(e,e.return,L)}}break;case 3:if(jr=null,u=Vt,Vt=wr(t.containerInfo),xt(t,e),Vt=u,Nt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{li(t.containerInfo)}catch(L){Ae(e,e.return,L)}Uu&&(Uu=!1,fh(e));break;case 4:l=Vt,Vt=wr(e.stateNode.containerInfo),xt(t,e),Nt(e),Vt=l;break;case 12:xt(t,e),Nt(e);break;case 13:xt(t,e),Nt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Yu=Qt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Bu(e,l)));break;case 22:u=e.memoizedState!==null;var N=a!==null&&a.memoizedState!==null,O=ca,H=Ve;if(ca=O||u,Ve=H||N,xt(t,e),Ve=H,ca=O,Nt(e),l&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(a===null||N||ca||Ve||un(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){N=a=t;try{if(c=N.stateNode,u)g=c.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{y=N.stateNode;var q=N.memoizedProps.style,k=q!=null&&q.hasOwnProperty("display")?q.display:null;y.style.display=k==null||typeof k=="boolean"?"":(""+k).trim()}}catch(L){Ae(N,N.return,L)}}}else if(t.tag===6){if(a===null){N=t;try{N.stateNode.nodeValue=u?"":N.memoizedProps}catch(L){Ae(N,N.return,L)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Bu(e,a))));break;case 19:xt(t,e),Nt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Bu(e,l)));break;case 30:break;case 21:break;default:xt(t,e),Nt(e)}}function Nt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(nh(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var u=a.stateNode,c=_u(e);hr(e,c,u);break;case 5:var g=a.stateNode;a.flags&32&&(Rn(g,""),a.flags&=-33);var y=_u(e);hr(e,y,g);break;case 3:case 4:var N=a.stateNode.containerInfo,O=_u(e);Mu(e,O,N);break;default:throw Error(s(161))}}catch(H){Ae(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function fh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;fh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Oa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)rh(e,t.alternate,t),t=t.sibling}function un(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Aa(4,t,t.return),un(t);break;case 1:Xt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&th(t,t.return,a),un(t);break;case 27:Fl(t.stateNode);case 26:case 5:Xt(t,t.return),un(t);break;case 22:t.memoizedState===null&&un(t);break;case 30:un(t);break;default:un(t)}e=e.sibling}}function ka(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,u=e,c=t,g=c.flags;switch(c.tag){case 0:case 11:case 15:ka(u,c,a),Vl(4,c);break;case 1:if(ka(u,c,a),l=c,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(O){Ae(l,l.return,O)}if(l=c,u=l.updateQueue,u!==null){var y=l.stateNode;try{var N=u.shared.hiddenCallbacks;if(N!==null)for(u.shared.hiddenCallbacks=null,u=0;u<N.length;u++)Vf(N[u],y)}catch(O){Ae(l,l.return,O)}}a&&g&64&&eh(c),$l(c,c.return);break;case 27:lh(c);case 26:case 5:ka(u,c,a),a&&l===null&&g&4&&ah(c),$l(c,c.return);break;case 12:ka(u,c,a);break;case 13:ka(u,c,a),a&&g&4&&oh(u,c);break;case 22:c.memoizedState===null&&ka(u,c,a),$l(c,c.return);break;case 30:break;default:ka(u,c,a)}t=t.sibling}}function Hu(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&wl(a))}function Vu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&wl(e))}function Jt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)dh(e,t,a,l),t=t.sibling}function dh(e,t,a,l){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Jt(e,t,a,l),u&2048&&Vl(9,t);break;case 1:Jt(e,t,a,l);break;case 3:Jt(e,t,a,l),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&wl(e)));break;case 12:if(u&2048){Jt(e,t,a,l),e=t.stateNode;try{var c=t.memoizedProps,g=c.id,y=c.onPostCommit;typeof y=="function"&&y(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){Ae(t,t.return,N)}}else Jt(e,t,a,l);break;case 13:Jt(e,t,a,l);break;case 23:break;case 22:c=t.stateNode,g=t.alternate,t.memoizedState!==null?c._visibility&2?Jt(e,t,a,l):ql(e,t):c._visibility&2?Jt(e,t,a,l):(c._visibility|=2,Gn(e,t,a,l,(t.subtreeFlags&10256)!==0)),u&2048&&Hu(g,t);break;case 24:Jt(e,t,a,l),u&2048&&Vu(t.alternate,t);break;default:Jt(e,t,a,l)}}function Gn(e,t,a,l,u){for(u=u&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var c=e,g=t,y=a,N=l,O=g.flags;switch(g.tag){case 0:case 11:case 15:Gn(c,g,y,N,u),Vl(8,g);break;case 23:break;case 22:var H=g.stateNode;g.memoizedState!==null?H._visibility&2?Gn(c,g,y,N,u):ql(c,g):(H._visibility|=2,Gn(c,g,y,N,u)),u&&O&2048&&Hu(g.alternate,g);break;case 24:Gn(c,g,y,N,u),u&&O&2048&&Vu(g.alternate,g);break;default:Gn(c,g,y,N,u)}t=t.sibling}}function ql(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,u=l.flags;switch(l.tag){case 22:ql(a,l),u&2048&&Hu(l.alternate,l);break;case 24:ql(a,l),u&2048&&Vu(l.alternate,l);break;default:ql(a,l)}t=t.sibling}}var Gl=8192;function Yn(e){if(e.subtreeFlags&Gl)for(e=e.child;e!==null;)hh(e),e=e.sibling}function hh(e){switch(e.tag){case 26:Yn(e),e.flags&Gl&&e.memoizedState!==null&&y0(Vt,e.memoizedState,e.memoizedProps);break;case 5:Yn(e);break;case 3:case 4:var t=Vt;Vt=wr(e.stateNode.containerInfo),Yn(e),Vt=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Gl,Gl=16777216,Yn(e),Gl=t):Yn(e));break;default:Yn(e)}}function ph(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Yl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Pe=l,gh(l,e)}ph(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)mh(e),e=e.sibling}function mh(e){switch(e.tag){case 0:case 11:case 15:Yl(e),e.flags&2048&&Aa(9,e,e.return);break;case 3:Yl(e);break;case 12:Yl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,pr(e)):Yl(e);break;default:Yl(e)}}function pr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Pe=l,gh(l,e)}ph(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Aa(8,t,t.return),pr(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,pr(t));break;default:pr(t)}e=e.sibling}}function gh(e,t){for(;Pe!==null;){var a=Pe;switch(a.tag){case 0:case 11:case 15:Aa(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:wl(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Pe=l;else e:for(a=e;Pe!==null;){l=Pe;var u=l.sibling,c=l.return;if(sh(l),l===a){Pe=null;break e}if(u!==null){u.return=c,Pe=u;break e}Pe=c}}}var Dy={getCacheForType:function(e){var t=lt(Qe),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},_y=typeof WeakMap=="function"?WeakMap:Map,Ne=0,ke=null,de=null,ve=0,Ee=0,Et=null,La=!1,Qn=!1,$u=!1,da=0,Be=0,za=0,on=0,qu=0,_t=0,Zn=0,Ql=null,pt=null,Gu=!1,Yu=0,mr=1/0,gr=null,Da=null,et=0,_a=null,Kn=null,Xn=0,Qu=0,Zu=null,vh=null,Zl=0,Ku=null;function Rt(){if((Ne&2)!==0&&ve!==0)return ve&-ve;if(_.T!==null){var e=_n;return e!==0?e:eo()}return Lc()}function yh(){_t===0&&(_t=(ve&536870912)===0||Se?jc():536870912);var e=Dt.current;return e!==null&&(e.flags|=32),_t}function Tt(e,t,a){(e===ke&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(Jn(e,0),Ma(e,ve,_t,!1)),cl(e,a),((Ne&2)===0||e!==ke)&&(e===ke&&((Ne&2)===0&&(on|=a),Be===4&&Ma(e,ve,_t,!1)),Ft(e))}function bh(e,t,a){if((Ne&6)!==0)throw Error(s(327));var l=!a&&(t&124)===0&&(t&e.expiredLanes)===0||ol(e,t),u=l?By(e,t):Fu(e,t,!0),c=l;do{if(u===0){Qn&&!l&&Ma(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!My(a)){u=Fu(e,t,!1),c=!1;continue}if(u===2){if(c=t,e.errorRecoveryDisabledLanes&c)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var y=e;u=Ql;var N=y.current.memoizedState.isDehydrated;if(N&&(Jn(y,g).flags|=256),g=Fu(y,g,!1),g!==2){if($u&&!N){y.errorRecoveryDisabledLanes|=c,on|=c,u=4;break e}c=pt,pt=u,c!==null&&(pt===null?pt=c:pt.push.apply(pt,c))}u=g}if(c=!1,u!==2)continue}}if(u===1){Jn(e,0),Ma(e,t,0,!0);break}e:{switch(l=e,c=u,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ma(l,t,_t,!La);break e;case 2:pt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(u=Yu+300-Qt(),10<u)){if(Ma(l,t,_t,!La),Ci(l,0,!0)!==0)break e;l.timeoutHandle=Xh(Sh.bind(null,l,a,pt,gr,Gu,t,_t,on,Zn,La,c,2,-0,0),u);break e}Sh(l,a,pt,gr,Gu,t,_t,on,Zn,La,c,0,-0,0)}}break}while(!0);Ft(e)}function Sh(e,t,a,l,u,c,g,y,N,O,H,q,k,L){if(e.timeoutHandle=-1,q=t.subtreeFlags,(q&8192||(q&16785408)===16785408)&&(Il={stylesheets:null,count:0,unsuspend:v0},hh(t),q=b0(),q!==null)){e.cancelPendingCommit=q(Ch.bind(null,e,t,c,a,l,u,g,y,N,H,1,k,L)),Ma(e,c,g,!O);return}Ch(e,t,c,a,l,u,g,y,N)}function My(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var u=a[l],c=u.getSnapshot;u=u.value;try{if(!bt(c(),u))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ma(e,t,a,l){t&=~qu,t&=~on,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var u=t;0<u;){var c=31-yt(u),g=1<<c;l[c]=-1,u&=~g}a!==0&&Oc(e,a,t)}function vr(){return(Ne&6)===0?(Kl(0),!1):!0}function Xu(){if(de!==null){if(Ee===0)var e=de.return;else e=de,la=an=null,fu(e),$n=null,Ul=0,e=de;for(;e!==null;)Id(e.alternate,e),e=e.return;de=null}}function Jn(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,e0(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Xu(),ke=e,de=a=ta(e.current,null),ve=t,Ee=0,Et=null,La=!1,Qn=ol(e,t),$u=!1,Zn=_t=qu=on=za=Be=0,pt=Ql=null,Gu=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var u=31-yt(l),c=1<<u;t|=e[u],l&=~c}return da=t,Hi(),a}function xh(e,t){ce=null,_.H=lr,t===jl||t===Xi?(t=Bf(),Ee=3):t===_f?(t=Bf(),Ee=4):Ee=t===Hd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Et=t,de===null&&(Be=1,or(e,Ot(t,e.current)))}function Nh(){var e=_.H;return _.H=lr,e===null?lr:e}function Eh(){var e=_.A;return _.A=Dy,e}function Ju(){Be=4,La||(ve&4194048)!==ve&&Dt.current!==null||(Qn=!0),(za&134217727)===0&&(on&134217727)===0||ke===null||Ma(ke,ve,_t,!1)}function Fu(e,t,a){var l=Ne;Ne|=2;var u=Nh(),c=Eh();(ke!==e||ve!==t)&&(gr=null,Jn(e,t)),t=!1;var g=Be;e:do try{if(Ee!==0&&de!==null){var y=de,N=Et;switch(Ee){case 8:Xu(),g=6;break e;case 3:case 2:case 9:case 6:Dt.current===null&&(t=!0);var O=Ee;if(Ee=0,Et=null,Fn(e,y,N,O),a&&Qn){g=0;break e}break;default:O=Ee,Ee=0,Et=null,Fn(e,y,N,O)}}Uy(),g=Be;break}catch(H){xh(e,H)}while(!0);return t&&e.shellSuspendCounter++,la=an=null,Ne=l,_.H=u,_.A=c,de===null&&(ke=null,ve=0,Hi()),g}function Uy(){for(;de!==null;)Rh(de)}function By(e,t){var a=Ne;Ne|=2;var l=Nh(),u=Eh();ke!==e||ve!==t?(gr=null,mr=Qt()+500,Jn(e,t)):Qn=ol(e,t);e:do try{if(Ee!==0&&de!==null){t=de;var c=Et;t:switch(Ee){case 1:Ee=0,Et=null,Fn(e,t,c,1);break;case 2:case 9:if(Mf(c)){Ee=0,Et=null,Th(t);break}t=function(){Ee!==2&&Ee!==9||ke!==e||(Ee=7),Ft(e)},c.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:Mf(c)?(Ee=0,Et=null,Th(t)):(Ee=0,Et=null,Fn(e,t,c,7));break;case 5:var g=null;switch(de.tag){case 26:g=de.memoizedState;case 5:case 27:var y=de;if(!g||rp(g)){Ee=0,Et=null;var N=y.sibling;if(N!==null)de=N;else{var O=y.return;O!==null?(de=O,yr(O)):de=null}break t}}Ee=0,Et=null,Fn(e,t,c,5);break;case 6:Ee=0,Et=null,Fn(e,t,c,6);break;case 8:Xu(),Be=6;break e;default:throw Error(s(462))}}Hy();break}catch(H){xh(e,H)}while(!0);return la=an=null,_.H=l,_.A=u,Ne=a,de!==null?0:(ke=null,ve=0,Hi(),Be)}function Hy(){for(;de!==null&&!sv();)Rh(de)}function Rh(e){var t=Pd(e.alternate,e,da);e.memoizedProps=e.pendingProps,t===null?yr(e):de=t}function Th(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Qd(a,t,t.pendingProps,t.type,void 0,ve);break;case 11:t=Qd(a,t,t.pendingProps,t.type.render,t.ref,ve);break;case 5:fu(t);default:Id(a,t),t=de=wf(t,da),t=Pd(a,t,da)}e.memoizedProps=e.pendingProps,t===null?yr(e):de=t}function Fn(e,t,a,l){la=an=null,fu(t),$n=null,Ul=0;var u=t.return;try{if(jy(e,u,t,a,ve)){Be=1,or(e,Ot(a,e.current)),de=null;return}}catch(c){if(u!==null)throw de=u,c;Be=1,or(e,Ot(a,e.current)),de=null;return}t.flags&32768?(Se||l===1?e=!0:Qn||(ve&536870912)!==0?e=!1:(La=e=!0,(l===2||l===9||l===3||l===6)&&(l=Dt.current,l!==null&&l.tag===13&&(l.flags|=16384))),wh(t,e)):yr(t)}function yr(e){var t=e;do{if((t.flags&32768)!==0){wh(t,La);return}e=t.return;var a=Oy(t.alternate,t,da);if(a!==null){de=a;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);Be===0&&(Be=5)}function wh(e,t){do{var a=ky(e.alternate,e);if(a!==null){a.flags&=32767,de=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=a}while(e!==null);Be=6,de=null}function Ch(e,t,a,l,u,c,g,y,N){e.cancelPendingCommit=null;do br();while(et!==0);if((Ne&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=Vs,vv(e,a,c,g,y,N),e===ke&&(de=ke=null,ve=0),Kn=t,_a=e,Xn=a,Qu=c,Zu=u,vh=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Gy(Ri,function(){return Lh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=_.T,_.T=null,u=Y.p,Y.p=2,g=Ne,Ne|=4;try{Ly(e,t,a)}finally{Ne=g,Y.p=u,_.T=l}}et=1,jh(),Ah(),Oh()}}function jh(){if(et===1){et=0;var e=_a,t=Kn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=_.T,_.T=null;var l=Y.p;Y.p=2;var u=Ne;Ne|=4;try{ch(t,e);var c=uo,g=gf(e.containerInfo),y=c.focusedElem,N=c.selectionRange;if(g!==y&&y&&y.ownerDocument&&mf(y.ownerDocument.documentElement,y)){if(N!==null&&_s(y)){var O=N.start,H=N.end;if(H===void 0&&(H=O),"selectionStart"in y)y.selectionStart=O,y.selectionEnd=Math.min(H,y.value.length);else{var q=y.ownerDocument||document,k=q&&q.defaultView||window;if(k.getSelection){var L=k.getSelection(),le=y.textContent.length,te=Math.min(N.start,le),je=N.end===void 0?te:Math.min(N.end,le);!L.extend&&te>je&&(g=je,je=te,te=g);var j=pf(y,te),w=pf(y,je);if(j&&w&&(L.rangeCount!==1||L.anchorNode!==j.node||L.anchorOffset!==j.offset||L.focusNode!==w.node||L.focusOffset!==w.offset)){var A=q.createRange();A.setStart(j.node,j.offset),L.removeAllRanges(),te>je?(L.addRange(A),L.extend(w.node,w.offset)):(A.setEnd(w.node,w.offset),L.addRange(A))}}}}for(q=[],L=y;L=L.parentNode;)L.nodeType===1&&q.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<q.length;y++){var V=q[y];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}kr=!!so,uo=so=null}finally{Ne=u,Y.p=l,_.T=a}}e.current=t,et=2}}function Ah(){if(et===2){et=0;var e=_a,t=Kn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=_.T,_.T=null;var l=Y.p;Y.p=2;var u=Ne;Ne|=4;try{rh(e,t.alternate,t)}finally{Ne=u,Y.p=l,_.T=a}}et=3}}function Oh(){if(et===4||et===3){et=0,uv();var e=_a,t=Kn,a=Xn,l=vh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?et=5:(et=0,Kn=_a=null,kh(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Da=null),ps(a),t=t.stateNode,vt&&typeof vt.onCommitFiberRoot=="function")try{vt.onCommitFiberRoot(ul,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=_.T,u=Y.p,Y.p=2,_.T=null;try{for(var c=e.onRecoverableError,g=0;g<l.length;g++){var y=l[g];c(y.value,{componentStack:y.stack})}}finally{_.T=t,Y.p=u}}(Xn&3)!==0&&br(),Ft(e),u=e.pendingLanes,(a&4194090)!==0&&(u&42)!==0?e===Ku?Zl++:(Zl=0,Ku=e):Zl=0,Kl(0)}}function kh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,wl(t)))}function br(e){return jh(),Ah(),Oh(),Lh()}function Lh(){if(et!==5)return!1;var e=_a,t=Qu;Qu=0;var a=ps(Xn),l=_.T,u=Y.p;try{Y.p=32>a?32:a,_.T=null,a=Zu,Zu=null;var c=_a,g=Xn;if(et=0,Kn=_a=null,Xn=0,(Ne&6)!==0)throw Error(s(331));var y=Ne;if(Ne|=4,mh(c.current),dh(c,c.current,g,a),Ne=y,Kl(0,!1),vt&&typeof vt.onPostCommitFiberRoot=="function")try{vt.onPostCommitFiberRoot(ul,c)}catch{}return!0}finally{Y.p=u,_.T=l,kh(e,t)}}function zh(e,t,a){t=Ot(a,t),t=Tu(e.stateNode,t,2),e=Ta(e,t,2),e!==null&&(cl(e,2),Ft(e))}function Ae(e,t,a){if(e.tag===3)zh(e,e,a);else for(;t!==null;){if(t.tag===3){zh(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Da===null||!Da.has(l))){e=Ot(a,e),a=Ud(2),l=Ta(t,a,2),l!==null&&(Bd(a,l,t,e),cl(l,2),Ft(l));break}}t=t.return}}function Pu(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new _y;var u=new Set;l.set(t,u)}else u=l.get(t),u===void 0&&(u=new Set,l.set(t,u));u.has(a)||($u=!0,u.add(a),e=Vy.bind(null,e,t,a),t.then(e,e))}function Vy(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,ke===e&&(ve&a)===a&&(Be===4||Be===3&&(ve&62914560)===ve&&300>Qt()-Yu?(Ne&2)===0&&Jn(e,0):qu|=a,Zn===ve&&(Zn=0)),Ft(e)}function Dh(e,t){t===0&&(t=Ac()),e=kn(e,t),e!==null&&(cl(e,t),Ft(e))}function $y(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Dh(e,a)}function qy(e,t){var a=0;switch(e.tag){case 13:var l=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),Dh(e,a)}function Gy(e,t){return cs(e,t)}var Sr=null,Pn=null,Wu=!1,xr=!1,Iu=!1,cn=0;function Ft(e){e!==Pn&&e.next===null&&(Pn===null?Sr=Pn=e:Pn=Pn.next=e),xr=!0,Wu||(Wu=!0,Qy())}function Kl(e,t){if(!Iu&&xr){Iu=!0;do for(var a=!1,l=Sr;l!==null;){if(e!==0){var u=l.pendingLanes;if(u===0)var c=0;else{var g=l.suspendedLanes,y=l.pingedLanes;c=(1<<31-yt(42|e)+1)-1,c&=u&~(g&~y),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,Bh(l,c))}else c=ve,c=Ci(l,l===ke?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||ol(l,c)||(a=!0,Bh(l,c));l=l.next}while(a);Iu=!1}}function Yy(){_h()}function _h(){xr=Wu=!1;var e=0;cn!==0&&(Iy()&&(e=cn),cn=0);for(var t=Qt(),a=null,l=Sr;l!==null;){var u=l.next,c=Mh(l,t);c===0?(l.next=null,a===null?Sr=u:a.next=u,u===null&&(Pn=a)):(a=l,(e!==0||(c&3)!==0)&&(xr=!0)),l=u}Kl(e)}function Mh(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,u=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var g=31-yt(c),y=1<<g,N=u[g];N===-1?((y&a)===0||(y&l)!==0)&&(u[g]=gv(y,t)):N<=t&&(e.expiredLanes|=y),c&=~y}if(t=ke,a=ve,a=Ci(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&fs(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||ol(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&fs(l),ps(a)){case 2:case 8:a=wc;break;case 32:a=Ri;break;case 268435456:a=Cc;break;default:a=Ri}return l=Uh.bind(null,e),a=cs(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&fs(l),e.callbackPriority=2,e.callbackNode=null,2}function Uh(e,t){if(et!==0&&et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(br()&&e.callbackNode!==a)return null;var l=ve;return l=Ci(e,e===ke?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(bh(e,l,t),Mh(e,Qt()),e.callbackNode!=null&&e.callbackNode===a?Uh.bind(null,e):null)}function Bh(e,t){if(br())return null;bh(e,t,!0)}function Qy(){t0(function(){(Ne&6)!==0?cs(Tc,Yy):_h()})}function eo(){return cn===0&&(cn=jc()),cn}function Hh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Li(""+e)}function Vh(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Zy(e,t,a,l,u){if(t==="submit"&&a&&a.stateNode===u){var c=Hh((u[ct]||null).action),g=l.submitter;g&&(t=(t=g[ct]||null)?Hh(t.formAction):g.getAttribute("formAction"),t!==null&&(c=t,g=null));var y=new Mi("action","action",null,l,u);e.push({event:y,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(cn!==0){var N=g?Vh(u,g):new FormData(u);Su(a,{pending:!0,data:N,method:u.method,action:c},null,N)}}else typeof c=="function"&&(y.preventDefault(),N=g?Vh(u,g):new FormData(u),Su(a,{pending:!0,data:N,method:u.method,action:c},c,N))},currentTarget:u}]})}}for(var to=0;to<Hs.length;to++){var ao=Hs[to],Ky=ao.toLowerCase(),Xy=ao[0].toUpperCase()+ao.slice(1);Ht(Ky,"on"+Xy)}Ht(bf,"onAnimationEnd"),Ht(Sf,"onAnimationIteration"),Ht(xf,"onAnimationStart"),Ht("dblclick","onDoubleClick"),Ht("focusin","onFocus"),Ht("focusout","onBlur"),Ht(fy,"onTransitionRun"),Ht(dy,"onTransitionStart"),Ht(hy,"onTransitionCancel"),Ht(Nf,"onTransitionEnd"),xn("onMouseEnter",["mouseout","mouseover"]),xn("onMouseLeave",["mouseout","mouseover"]),xn("onPointerEnter",["pointerout","pointerover"]),xn("onPointerLeave",["pointerout","pointerover"]),Ka("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ka("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ka("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ka("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ka("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ka("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Jy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xl));function $h(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],u=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var g=l.length-1;0<=g;g--){var y=l[g],N=y.instance,O=y.currentTarget;if(y=y.listener,N!==c&&u.isPropagationStopped())break e;c=y,u.currentTarget=O;try{c(u)}catch(H){ur(H)}u.currentTarget=null,c=N}else for(g=0;g<l.length;g++){if(y=l[g],N=y.instance,O=y.currentTarget,y=y.listener,N!==c&&u.isPropagationStopped())break e;c=y,u.currentTarget=O;try{c(u)}catch(H){ur(H)}u.currentTarget=null,c=N}}}}function he(e,t){var a=t[ms];a===void 0&&(a=t[ms]=new Set);var l=e+"__bubble";a.has(l)||(qh(t,e,2,!1),a.add(l))}function no(e,t,a){var l=0;t&&(l|=4),qh(a,e,l,t)}var Nr="_reactListening"+Math.random().toString(36).slice(2);function lo(e){if(!e[Nr]){e[Nr]=!0,Dc.forEach(function(a){a!=="selectionchange"&&(Jy.has(a)||no(a,!1,e),no(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Nr]||(t[Nr]=!0,no("selectionchange",!1,t))}}function qh(e,t,a,l){switch(dp(t)){case 2:var u=N0;break;case 8:u=E0;break;default:u=bo}a=u.bind(null,t,a,e),u=void 0,!ws||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),l?u!==void 0?e.addEventListener(t,a,{capture:!0,passive:u}):e.addEventListener(t,a,!0):u!==void 0?e.addEventListener(t,a,{passive:u}):e.addEventListener(t,a,!1)}function io(e,t,a,l,u){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var y=l.stateNode.containerInfo;if(y===u)break;if(g===4)for(g=l.return;g!==null;){var N=g.tag;if((N===3||N===4)&&g.stateNode.containerInfo===u)return;g=g.return}for(;y!==null;){if(g=yn(y),g===null)return;if(N=g.tag,N===5||N===6||N===26||N===27){l=c=g;continue e}y=y.parentNode}}l=l.return}Xc(function(){var O=c,H=Rs(a),q=[];e:{var k=Ef.get(e);if(k!==void 0){var L=Mi,le=e;switch(e){case"keypress":if(Di(a)===0)break e;case"keydown":case"keyup":L=Gv;break;case"focusin":le="focus",L=Os;break;case"focusout":le="blur",L=Os;break;case"beforeblur":case"afterblur":L=Os;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=Pc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=kv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=Zv;break;case bf:case Sf:case xf:L=Dv;break;case Nf:L=Xv;break;case"scroll":case"scrollend":L=Av;break;case"wheel":L=Fv;break;case"copy":case"cut":case"paste":L=Mv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=Ic;break;case"toggle":case"beforetoggle":L=Wv}var te=(t&4)!==0,je=!te&&(e==="scroll"||e==="scrollend"),j=te?k!==null?k+"Capture":null:k;te=[];for(var w=O,A;w!==null;){var V=w;if(A=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||A===null||j===null||(V=hl(w,j),V!=null&&te.push(Jl(w,V,A))),je)break;w=w.return}0<te.length&&(k=new L(k,le,null,a,H),q.push({event:k,listeners:te}))}}if((t&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",k&&a!==Es&&(le=a.relatedTarget||a.fromElement)&&(yn(le)||le[vn]))break e;if((L||k)&&(k=H.window===H?H:(k=H.ownerDocument)?k.defaultView||k.parentWindow:window,L?(le=a.relatedTarget||a.toElement,L=O,le=le?yn(le):null,le!==null&&(je=f(le),te=le.tag,le!==je||te!==5&&te!==27&&te!==6)&&(le=null)):(L=null,le=O),L!==le)){if(te=Pc,V="onMouseLeave",j="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(te=Ic,V="onPointerLeave",j="onPointerEnter",w="pointer"),je=L==null?k:dl(L),A=le==null?k:dl(le),k=new te(V,w+"leave",L,a,H),k.target=je,k.relatedTarget=A,V=null,yn(H)===O&&(te=new te(j,w+"enter",le,a,H),te.target=A,te.relatedTarget=je,V=te),je=V,L&&le)t:{for(te=L,j=le,w=0,A=te;A;A=Wn(A))w++;for(A=0,V=j;V;V=Wn(V))A++;for(;0<w-A;)te=Wn(te),w--;for(;0<A-w;)j=Wn(j),A--;for(;w--;){if(te===j||j!==null&&te===j.alternate)break t;te=Wn(te),j=Wn(j)}te=null}else te=null;L!==null&&Gh(q,k,L,te,!1),le!==null&&je!==null&&Gh(q,je,le,te,!0)}}e:{if(k=O?dl(O):window,L=k.nodeName&&k.nodeName.toLowerCase(),L==="select"||L==="input"&&k.type==="file")var X=uf;else if(rf(k))if(of)X=uy;else{X=ry;var fe=iy}else L=k.nodeName,!L||L.toLowerCase()!=="input"||k.type!=="checkbox"&&k.type!=="radio"?O&&Ns(O.elementType)&&(X=uf):X=sy;if(X&&(X=X(e,O))){sf(q,X,a,H);break e}fe&&fe(e,k,O),e==="focusout"&&O&&k.type==="number"&&O.memoizedProps.value!=null&&xs(k,"number",k.value)}switch(fe=O?dl(O):window,e){case"focusin":(rf(fe)||fe.contentEditable==="true")&&(jn=fe,Ms=O,xl=null);break;case"focusout":xl=Ms=jn=null;break;case"mousedown":Us=!0;break;case"contextmenu":case"mouseup":case"dragend":Us=!1,vf(q,a,H);break;case"selectionchange":if(cy)break;case"keydown":case"keyup":vf(q,a,H)}var P;if(Ls)e:{switch(e){case"compositionstart":var ae="onCompositionStart";break e;case"compositionend":ae="onCompositionEnd";break e;case"compositionupdate":ae="onCompositionUpdate";break e}ae=void 0}else Cn?nf(e,a)&&(ae="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ae="onCompositionStart");ae&&(ef&&a.locale!=="ko"&&(Cn||ae!=="onCompositionStart"?ae==="onCompositionEnd"&&Cn&&(P=Jc()):(xa=H,Cs="value"in xa?xa.value:xa.textContent,Cn=!0)),fe=Er(O,ae),0<fe.length&&(ae=new Wc(ae,e,null,a,H),q.push({event:ae,listeners:fe}),P?ae.data=P:(P=lf(a),P!==null&&(ae.data=P)))),(P=ey?ty(e,a):ay(e,a))&&(ae=Er(O,"onBeforeInput"),0<ae.length&&(fe=new Wc("onBeforeInput","beforeinput",null,a,H),q.push({event:fe,listeners:ae}),fe.data=P)),Zy(q,e,O,a,H)}$h(q,t)})}function Jl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Er(e,t){for(var a=t+"Capture",l=[];e!==null;){var u=e,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=hl(e,a),u!=null&&l.unshift(Jl(e,u,c)),u=hl(e,t),u!=null&&l.push(Jl(e,u,c))),e.tag===3)return l;e=e.return}return[]}function Wn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Gh(e,t,a,l,u){for(var c=t._reactName,g=[];a!==null&&a!==l;){var y=a,N=y.alternate,O=y.stateNode;if(y=y.tag,N!==null&&N===l)break;y!==5&&y!==26&&y!==27||O===null||(N=O,u?(O=hl(a,c),O!=null&&g.unshift(Jl(a,O,N))):u||(O=hl(a,c),O!=null&&g.push(Jl(a,O,N)))),a=a.return}g.length!==0&&e.push({event:t,listeners:g})}var Fy=/\r\n?/g,Py=/\u0000|\uFFFD/g;function Yh(e){return(typeof e=="string"?e:""+e).replace(Fy,`
59
+ `).replace(Py,"")}function Qh(e,t){return t=Yh(t),Yh(e)===t}function Rr(){}function Ce(e,t,a,l,u,c){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Rn(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Rn(e,""+l);break;case"className":Ai(e,"class",l);break;case"tabIndex":Ai(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ai(e,a,l);break;case"style":Zc(e,l,c);break;case"data":if(t!=="object"){Ai(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Li(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(t!=="input"&&Ce(e,t,"name",u.name,u,null),Ce(e,t,"formEncType",u.formEncType,u,null),Ce(e,t,"formMethod",u.formMethod,u,null),Ce(e,t,"formTarget",u.formTarget,u,null)):(Ce(e,t,"encType",u.encType,u,null),Ce(e,t,"method",u.method,u,null),Ce(e,t,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Li(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=Rr);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=Li(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":he("beforetoggle",e),he("toggle",e),ji(e,"popover",l);break;case"xlinkActuate":It(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":It(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":It(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":It(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":It(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":It(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":It(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":It(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":It(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":ji(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Cv.get(a)||a,ji(e,a,l))}}function ro(e,t,a,l,u,c){switch(a){case"style":Zc(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Rn(e,l):(typeof l=="number"||typeof l=="bigint")&&Rn(e,""+l);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Rr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!_c.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),t=a.slice(2,u?a.length-7:void 0),c=e[ct]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,u),typeof l=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,u);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):ji(e,a,l)}}}function tt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":he("error",e),he("load",e);var l=!1,u=!1,c;for(c in a)if(a.hasOwnProperty(c)){var g=a[c];if(g!=null)switch(c){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ce(e,t,c,g,a,null)}}u&&Ce(e,t,"srcSet",a.srcSet,a,null),l&&Ce(e,t,"src",a.src,a,null);return;case"input":he("invalid",e);var y=c=g=u=null,N=null,O=null;for(l in a)if(a.hasOwnProperty(l)){var H=a[l];if(H!=null)switch(l){case"name":u=H;break;case"type":g=H;break;case"checked":N=H;break;case"defaultChecked":O=H;break;case"value":c=H;break;case"defaultValue":y=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(s(137,t));break;default:Ce(e,t,l,H,a,null)}}qc(e,c,y,N,O,g,u,!1),Oi(e);return;case"select":he("invalid",e),l=g=c=null;for(u in a)if(a.hasOwnProperty(u)&&(y=a[u],y!=null))switch(u){case"value":c=y;break;case"defaultValue":g=y;break;case"multiple":l=y;default:Ce(e,t,u,y,a,null)}t=c,a=g,e.multiple=!!l,t!=null?En(e,!!l,t,!1):a!=null&&En(e,!!l,a,!0);return;case"textarea":he("invalid",e),c=u=l=null;for(g in a)if(a.hasOwnProperty(g)&&(y=a[g],y!=null))switch(g){case"value":l=y;break;case"defaultValue":u=y;break;case"children":c=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(s(91));break;default:Ce(e,t,g,y,a,null)}Yc(e,l,u,c),Oi(e);return;case"option":for(N in a)if(a.hasOwnProperty(N)&&(l=a[N],l!=null))switch(N){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ce(e,t,N,l,a,null)}return;case"dialog":he("beforetoggle",e),he("toggle",e),he("cancel",e),he("close",e);break;case"iframe":case"object":he("load",e);break;case"video":case"audio":for(l=0;l<Xl.length;l++)he(Xl[l],e);break;case"image":he("error",e),he("load",e);break;case"details":he("toggle",e);break;case"embed":case"source":case"link":he("error",e),he("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(O in a)if(a.hasOwnProperty(O)&&(l=a[O],l!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ce(e,t,O,l,a,null)}return;default:if(Ns(t)){for(H in a)a.hasOwnProperty(H)&&(l=a[H],l!==void 0&&ro(e,t,H,l,a,void 0));return}}for(y in a)a.hasOwnProperty(y)&&(l=a[y],l!=null&&Ce(e,t,y,l,a,null))}function Wy(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,g=null,y=null,N=null,O=null,H=null;for(L in a){var q=a[L];if(a.hasOwnProperty(L)&&q!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":N=q;default:l.hasOwnProperty(L)||Ce(e,t,L,null,l,q)}}for(var k in l){var L=l[k];if(q=a[k],l.hasOwnProperty(k)&&(L!=null||q!=null))switch(k){case"type":c=L;break;case"name":u=L;break;case"checked":O=L;break;case"defaultChecked":H=L;break;case"value":g=L;break;case"defaultValue":y=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(s(137,t));break;default:L!==q&&Ce(e,t,k,L,l,q)}}Ss(e,g,y,N,O,H,c,u);return;case"select":L=g=y=k=null;for(c in a)if(N=a[c],a.hasOwnProperty(c)&&N!=null)switch(c){case"value":break;case"multiple":L=N;default:l.hasOwnProperty(c)||Ce(e,t,c,null,l,N)}for(u in l)if(c=l[u],N=a[u],l.hasOwnProperty(u)&&(c!=null||N!=null))switch(u){case"value":k=c;break;case"defaultValue":y=c;break;case"multiple":g=c;default:c!==N&&Ce(e,t,u,c,l,N)}t=y,a=g,l=L,k!=null?En(e,!!a,k,!1):!!l!=!!a&&(t!=null?En(e,!!a,t,!0):En(e,!!a,a?[]:"",!1));return;case"textarea":L=k=null;for(y in a)if(u=a[y],a.hasOwnProperty(y)&&u!=null&&!l.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Ce(e,t,y,null,l,u)}for(g in l)if(u=l[g],c=a[g],l.hasOwnProperty(g)&&(u!=null||c!=null))switch(g){case"value":k=u;break;case"defaultValue":L=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==c&&Ce(e,t,g,u,l,c)}Gc(e,k,L);return;case"option":for(var le in a)if(k=a[le],a.hasOwnProperty(le)&&k!=null&&!l.hasOwnProperty(le))switch(le){case"selected":e.selected=!1;break;default:Ce(e,t,le,null,l,k)}for(N in l)if(k=l[N],L=a[N],l.hasOwnProperty(N)&&k!==L&&(k!=null||L!=null))switch(N){case"selected":e.selected=k&&typeof k!="function"&&typeof k!="symbol";break;default:Ce(e,t,N,k,l,L)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var te in a)k=a[te],a.hasOwnProperty(te)&&k!=null&&!l.hasOwnProperty(te)&&Ce(e,t,te,null,l,k);for(O in l)if(k=l[O],L=a[O],l.hasOwnProperty(O)&&k!==L&&(k!=null||L!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(s(137,t));break;default:Ce(e,t,O,k,l,L)}return;default:if(Ns(t)){for(var je in a)k=a[je],a.hasOwnProperty(je)&&k!==void 0&&!l.hasOwnProperty(je)&&ro(e,t,je,void 0,l,k);for(H in l)k=l[H],L=a[H],!l.hasOwnProperty(H)||k===L||k===void 0&&L===void 0||ro(e,t,H,k,l,L);return}}for(var j in a)k=a[j],a.hasOwnProperty(j)&&k!=null&&!l.hasOwnProperty(j)&&Ce(e,t,j,null,l,k);for(q in l)k=l[q],L=a[q],!l.hasOwnProperty(q)||k===L||k==null&&L==null||Ce(e,t,q,k,l,L)}var so=null,uo=null;function Tr(e){return e.nodeType===9?e:e.ownerDocument}function Zh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Kh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function oo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var co=null;function Iy(){var e=window.event;return e&&e.type==="popstate"?e===co?!1:(co=e,!0):(co=null,!1)}var Xh=typeof setTimeout=="function"?setTimeout:void 0,e0=typeof clearTimeout=="function"?clearTimeout:void 0,Jh=typeof Promise=="function"?Promise:void 0,t0=typeof queueMicrotask=="function"?queueMicrotask:typeof Jh<"u"?function(e){return Jh.resolve(null).then(e).catch(a0)}:Xh;function a0(e){setTimeout(function(){throw e})}function Ua(e){return e==="head"}function Fh(e,t){var a=t,l=0,u=0;do{var c=a.nextSibling;if(e.removeChild(a),c&&c.nodeType===8)if(a=c.data,a==="/$"){if(0<l&&8>l){a=l;var g=e.ownerDocument;if(a&1&&Fl(g.documentElement),a&2&&Fl(g.body),a&4)for(a=g.head,Fl(a),g=a.firstChild;g;){var y=g.nextSibling,N=g.nodeName;g[fl]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&g.rel.toLowerCase()==="stylesheet"||a.removeChild(g),g=y}}if(u===0){e.removeChild(c),li(t);return}u--}else a==="$"||a==="$?"||a==="$!"?u++:l=a.charCodeAt(0)-48;else l=0;a=c}while(a);li(t)}function fo(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":fo(a),gs(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function n0(e,t,a,l){for(;e.nodeType===1;){var u=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[fl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=$t(e.nextSibling),e===null)break}return null}function l0(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=$t(e.nextSibling),e===null))return null;return e}function ho(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function i0(e,t){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function $t(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var po=null;function Ph(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}function Wh(e,t,a){switch(t=Tr(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Fl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);gs(e)}var Mt=new Map,Ih=new Set;function wr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ha=Y.d;Y.d={f:r0,r:s0,D:u0,C:o0,L:c0,m:f0,X:h0,S:d0,M:p0};function r0(){var e=ha.f(),t=vr();return e||t}function s0(e){var t=bn(e);t!==null&&t.tag===5&&t.type==="form"?bd(t):ha.r(e)}var In=typeof document>"u"?null:document;function ep(e,t,a){var l=In;if(l&&typeof t=="string"&&t){var u=At(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),Ih.has(u)||(Ih.add(u),e={rel:e,crossOrigin:a,href:t},l.querySelector(u)===null&&(t=l.createElement("link"),tt(t,"link",e),Je(t),l.head.appendChild(t)))}}function u0(e){ha.D(e),ep("dns-prefetch",e,null)}function o0(e,t){ha.C(e,t),ep("preconnect",e,t)}function c0(e,t,a){ha.L(e,t,a);var l=In;if(l&&e&&t){var u='link[rel="preload"][as="'+At(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+At(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+At(a.imageSizes)+'"]')):u+='[href="'+At(e)+'"]';var c=u;switch(t){case"style":c=el(e);break;case"script":c=tl(e)}Mt.has(c)||(e=v({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Mt.set(c,e),l.querySelector(u)!==null||t==="style"&&l.querySelector(Pl(c))||t==="script"&&l.querySelector(Wl(c))||(t=l.createElement("link"),tt(t,"link",e),Je(t),l.head.appendChild(t)))}}function f0(e,t){ha.m(e,t);var a=In;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+At(l)+'"][href="'+At(e)+'"]',c=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=tl(e)}if(!Mt.has(c)&&(e=v({rel:"modulepreload",href:e},t),Mt.set(c,e),a.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Wl(c)))return}l=a.createElement("link"),tt(l,"link",e),Je(l),a.head.appendChild(l)}}}function d0(e,t,a){ha.S(e,t,a);var l=In;if(l&&e){var u=Sn(l).hoistableStyles,c=el(e);t=t||"default";var g=u.get(c);if(!g){var y={loading:0,preload:null};if(g=l.querySelector(Pl(c)))y.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Mt.get(c))&&mo(e,a);var N=g=l.createElement("link");Je(N),tt(N,"link",e),N._p=new Promise(function(O,H){N.onload=O,N.onerror=H}),N.addEventListener("load",function(){y.loading|=1}),N.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Cr(g,t,l)}g={type:"stylesheet",instance:g,count:1,state:y},u.set(c,g)}}}function h0(e,t){ha.X(e,t);var a=In;if(a&&e){var l=Sn(a).hoistableScripts,u=tl(e),c=l.get(u);c||(c=a.querySelector(Wl(u)),c||(e=v({src:e,async:!0},t),(t=Mt.get(u))&&go(e,t),c=a.createElement("script"),Je(c),tt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(u,c))}}function p0(e,t){ha.M(e,t);var a=In;if(a&&e){var l=Sn(a).hoistableScripts,u=tl(e),c=l.get(u);c||(c=a.querySelector(Wl(u)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Mt.get(u))&&go(e,t),c=a.createElement("script"),Je(c),tt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(u,c))}}function tp(e,t,a,l){var u=(u=se.current)?wr(u):null;if(!u)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=el(a.href),a=Sn(u).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=el(a.href);var c=Sn(u).hoistableStyles,g=c.get(e);if(g||(u=u.ownerDocument||u,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,g),(c=u.querySelector(Pl(e)))&&!c._p&&(g.instance=c,g.state.loading=5),Mt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Mt.set(e,a),c||m0(u,e,a,g.state))),t&&l===null)throw Error(s(528,""));return g}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=tl(a),a=Sn(u).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function el(e){return'href="'+At(e)+'"'}function Pl(e){return'link[rel="stylesheet"]['+e+"]"}function ap(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function m0(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),tt(t,"link",a),Je(t),e.head.appendChild(t))}function tl(e){return'[src="'+At(e)+'"]'}function Wl(e){return"script[async]"+e}function np(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+At(a.href)+'"]');if(l)return t.instance=l,Je(l),l;var u=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Je(l),tt(l,"style",u),Cr(l,a.precedence,e),t.instance=l;case"stylesheet":u=el(a.href);var c=e.querySelector(Pl(u));if(c)return t.state.loading|=4,t.instance=c,Je(c),c;l=ap(a),(u=Mt.get(u))&&mo(l,u),c=(e.ownerDocument||e).createElement("link"),Je(c);var g=c;return g._p=new Promise(function(y,N){g.onload=y,g.onerror=N}),tt(c,"link",l),t.state.loading|=4,Cr(c,a.precedence,e),t.instance=c;case"script":return c=tl(a.src),(u=e.querySelector(Wl(c)))?(t.instance=u,Je(u),u):(l=a,(u=Mt.get(c))&&(l=v({},a),go(l,u)),e=e.ownerDocument||e,u=e.createElement("script"),Je(u),tt(u,"link",l),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Cr(l,a.precedence,e));return t.instance}function Cr(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,c=u,g=0;g<l.length;g++){var y=l[g];if(y.dataset.precedence===t)c=y;else if(c!==u)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function mo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function go(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var jr=null;function lp(e,t,a){if(jr===null){var l=new Map,u=jr=new Map;u.set(a,l)}else u=jr,l=u.get(a),l||(l=new Map,u.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var c=a[u];if(!(c[fl]||c[nt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var g=c.getAttribute(t)||"";g=e+g;var y=l.get(g);y?y.push(c):l.set(g,[c])}}return l}function ip(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function g0(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function rp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Il=null;function v0(){}function y0(e,t,a){if(Il===null)throw Error(s(475));var l=Il;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var u=el(a.href),c=e.querySelector(Pl(u));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=Ar.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=c,Je(c);return}c=e.ownerDocument||e,a=ap(a),(u=Mt.get(u))&&mo(a,u),c=c.createElement("link"),Je(c);var g=c;g._p=new Promise(function(y,N){g.onload=y,g.onerror=N}),tt(c,"link",a),t.instance=c}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(l.count++,t=Ar.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}function b0(){if(Il===null)throw Error(s(475));var e=Il;return e.stylesheets&&e.count===0&&vo(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&vo(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a)}}:null}function Ar(){if(this.count--,this.count===0){if(this.stylesheets)vo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Or=null;function vo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Or=new Map,t.forEach(S0,e),Or=null,Ar.call(e))}function S0(e,t){if(!(t.state.loading&4)){var a=Or.get(e);if(a)var l=a.get(null);else{a=new Map,Or.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var g=u[c];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(a.set(g.dataset.precedence,g),l=g)}l&&a.set(null,l)}u=t.instance,g=u.getAttribute("data-precedence"),c=a.get(g)||l,c===l&&a.set(null,u),a.set(g,u),this.count++,l=Ar.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),c?c.parentNode.insertBefore(u,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var ei={$$typeof:G,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function x0(e,t,a,l,u,c,g,y){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ds(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ds(0),this.hiddenUpdates=ds(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function sp(e,t,a,l,u,c,g,y,N,O,H,q){return e=new x0(e,t,a,g,y,N,O,q),t=1,c===!0&&(t|=24),c=St(3,null,null,t),e.current=c,c.stateNode=e,t=Ps(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:a,cache:t},tu(c),e}function up(e){return e?(e=Ln,e):Ln}function op(e,t,a,l,u,c){u=up(u),l.context===null?l.context=u:l.pendingContext=u,l=Ra(t),l.payload={element:a},c=c===void 0?null:c,c!==null&&(l.callback=c),a=Ta(e,l,t),a!==null&&(Tt(a,e,t),Ol(a,e,t))}function cp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function yo(e,t){cp(e,t),(e=e.alternate)&&cp(e,t)}function fp(e){if(e.tag===13){var t=kn(e,67108864);t!==null&&Tt(t,e,67108864),yo(e,67108864)}}var kr=!0;function N0(e,t,a,l){var u=_.T;_.T=null;var c=Y.p;try{Y.p=2,bo(e,t,a,l)}finally{Y.p=c,_.T=u}}function E0(e,t,a,l){var u=_.T;_.T=null;var c=Y.p;try{Y.p=8,bo(e,t,a,l)}finally{Y.p=c,_.T=u}}function bo(e,t,a,l){if(kr){var u=So(l);if(u===null)io(e,t,l,Lr,a),hp(e,l);else if(T0(u,e,t,a,l))l.stopPropagation();else if(hp(e,l),t&4&&-1<R0.indexOf(e)){for(;u!==null;){var c=bn(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var g=Za(c.pendingLanes);if(g!==0){var y=c;for(y.pendingLanes|=2,y.entangledLanes|=2;g;){var N=1<<31-yt(g);y.entanglements[1]|=N,g&=~N}Ft(c),(Ne&6)===0&&(mr=Qt()+500,Kl(0))}}break;case 13:y=kn(c,2),y!==null&&Tt(y,c,2),vr(),yo(c,2)}if(c=So(l),c===null&&io(e,t,l,Lr,a),c===u)break;u=c}u!==null&&l.stopPropagation()}else io(e,t,l,null,a)}}function So(e){return e=Rs(e),xo(e)}var Lr=null;function xo(e){if(Lr=null,e=yn(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=p(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Lr=e,null}function dp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ov()){case Tc:return 2;case wc:return 8;case Ri:case cv:return 32;case Cc:return 268435456;default:return 32}default:return 32}}var No=!1,Ba=null,Ha=null,Va=null,ti=new Map,ai=new Map,$a=[],R0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function hp(e,t){switch(e){case"focusin":case"focusout":Ba=null;break;case"dragenter":case"dragleave":Ha=null;break;case"mouseover":case"mouseout":Va=null;break;case"pointerover":case"pointerout":ti.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ai.delete(t.pointerId)}}function ni(e,t,a,l,u,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:c,targetContainers:[u]},t!==null&&(t=bn(t),t!==null&&fp(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function T0(e,t,a,l,u){switch(t){case"focusin":return Ba=ni(Ba,e,t,a,l,u),!0;case"dragenter":return Ha=ni(Ha,e,t,a,l,u),!0;case"mouseover":return Va=ni(Va,e,t,a,l,u),!0;case"pointerover":var c=u.pointerId;return ti.set(c,ni(ti.get(c)||null,e,t,a,l,u)),!0;case"gotpointercapture":return c=u.pointerId,ai.set(c,ni(ai.get(c)||null,e,t,a,l,u)),!0}return!1}function pp(e){var t=yn(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=p(a),t!==null){e.blockedOn=t,yv(e.priority,function(){if(a.tag===13){var l=Rt();l=hs(l);var u=kn(a,l);u!==null&&Tt(u,a,l),yo(a,l)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function zr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=So(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Es=l,a.target.dispatchEvent(l),Es=null}else return t=bn(a),t!==null&&fp(t),e.blockedOn=a,!1;t.shift()}return!0}function mp(e,t,a){zr(e)&&a.delete(t)}function w0(){No=!1,Ba!==null&&zr(Ba)&&(Ba=null),Ha!==null&&zr(Ha)&&(Ha=null),Va!==null&&zr(Va)&&(Va=null),ti.forEach(mp),ai.forEach(mp)}function Dr(e,t){e.blockedOn===t&&(e.blockedOn=null,No||(No=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,w0)))}var _r=null;function gp(e){_r!==e&&(_r=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){_r===e&&(_r=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],u=e[t+2];if(typeof l!="function"){if(xo(l||a)===null)continue;break}var c=bn(a);c!==null&&(e.splice(t,3),t-=3,Su(c,{pending:!0,data:u,method:a.method,action:l},l,u))}}))}function li(e){function t(N){return Dr(N,e)}Ba!==null&&Dr(Ba,e),Ha!==null&&Dr(Ha,e),Va!==null&&Dr(Va,e),ti.forEach(t),ai.forEach(t);for(var a=0;a<$a.length;a++){var l=$a[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<$a.length&&(a=$a[0],a.blockedOn===null);)pp(a),a.blockedOn===null&&$a.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var u=a[l],c=a[l+1],g=u[ct]||null;if(typeof c=="function")g||gp(a);else if(g){var y=null;if(c&&c.hasAttribute("formAction")){if(u=c,g=c[ct]||null)y=g.formAction;else if(xo(u)!==null)continue}else y=g.action;typeof y=="function"?a[l+1]=y:(a.splice(l,3),l-=3),gp(a)}}}function Eo(e){this._internalRoot=e}Mr.prototype.render=Eo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,l=Rt();op(a,l,e,t,null,null)},Mr.prototype.unmount=Eo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;op(e.current,2,null,e,null,null),vr(),t[vn]=null}};function Mr(e){this._internalRoot=e}Mr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Lc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<$a.length&&t!==0&&t<$a[a].priority;a++);$a.splice(a,0,e),a===0&&pp(e)}};var vp=n.version;if(vp!=="19.1.0")throw Error(s(527,vp,"19.1.0"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(t),e=e!==null?d(e):null,e=e===null?null:e.stateNode,e};var C0={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ur=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ur.isDisabled&&Ur.supportsFiber)try{ul=Ur.inject(C0),vt=Ur}catch{}}return si.createRoot=function(e,t){if(!o(e))throw Error(s(299));var a=!1,l="",u=zd,c=Dd,g=_d,y=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(y=t.unstable_transitionCallbacks)),t=sp(e,1,!1,null,null,a,l,u,c,g,y,null),e[vn]=t.current,lo(e),new Eo(t)},si.hydrateRoot=function(e,t,a){if(!o(e))throw Error(s(299));var l=!1,u="",c=zd,g=Dd,y=_d,N=null,O=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(g=a.onCaughtError),a.onRecoverableError!==void 0&&(y=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(N=a.unstable_transitionCallbacks),a.formState!==void 0&&(O=a.formState)),t=sp(e,1,!0,t,a??null,l,u,c,g,y,N,O),t.context=up(null),a=t.current,l=Rt(),l=hs(l),u=Ra(l),u.callback=null,Ta(a,u,l),a=l,t.current.lanes=a,cl(t,a),Ft(t),e[vn]=t.current,lo(e),new Mr(t)},si.version="19.1.0",si}var Gp;function Hx(){if(Gp)return Co.exports;Gp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),Co.exports=Bx(),Co.exports}var Vx=Hx();const $x=rm(Vx);var ui={},Yp;function qx(){if(Yp)return ui;Yp=1,Object.defineProperty(ui,"__esModule",{value:!0}),ui.parse=p,ui.serialize=d;const i=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,s=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,f=(()=>{const S=function(){};return S.prototype=Object.create(null),S})();function p(S,C){const E=new f,z=S.length;if(z<2)return E;const B=(C==null?void 0:C.decode)||v;let U=0;do{const D=S.indexOf("=",U);if(D===-1)break;const G=S.indexOf(";",U),J=G===-1?z:G;if(D>J){U=S.lastIndexOf(";",D-1)+1;continue}const K=h(S,U,D),ue=m(S,D,K),re=S.slice(K,ue);if(E[re]===void 0){let ee=h(S,D+1,J),F=m(S,J,ee);const ne=B(S.slice(ee,F));E[re]=ne}U=J+1}while(U<z);return E}function h(S,C,E){do{const z=S.charCodeAt(C);if(z!==32&&z!==9)return C}while(++C<E);return E}function m(S,C,E){for(;C>E;){const z=S.charCodeAt(--C);if(z!==32&&z!==9)return C+1}return E}function d(S,C,E){const z=(E==null?void 0:E.encode)||encodeURIComponent;if(!i.test(S))throw new TypeError(`argument name is invalid: ${S}`);const B=z(C);if(!n.test(B))throw new TypeError(`argument val is invalid: ${C}`);let U=S+"="+B;if(!E)return U;if(E.maxAge!==void 0){if(!Number.isInteger(E.maxAge))throw new TypeError(`option maxAge is invalid: ${E.maxAge}`);U+="; Max-Age="+E.maxAge}if(E.domain){if(!r.test(E.domain))throw new TypeError(`option domain is invalid: ${E.domain}`);U+="; Domain="+E.domain}if(E.path){if(!s.test(E.path))throw new TypeError(`option path is invalid: ${E.path}`);U+="; Path="+E.path}if(E.expires){if(!x(E.expires)||!Number.isFinite(E.expires.valueOf()))throw new TypeError(`option expires is invalid: ${E.expires}`);U+="; Expires="+E.expires.toUTCString()}if(E.httpOnly&&(U+="; HttpOnly"),E.secure&&(U+="; Secure"),E.partitioned&&(U+="; Partitioned"),E.priority)switch(typeof E.priority=="string"?E.priority.toLowerCase():void 0){case"low":U+="; Priority=Low";break;case"medium":U+="; Priority=Medium";break;case"high":U+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${E.priority}`)}if(E.sameSite)switch(typeof E.sameSite=="string"?E.sameSite.toLowerCase():E.sameSite){case!0:case"strict":U+="; SameSite=Strict";break;case"lax":U+="; SameSite=Lax";break;case"none":U+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${E.sameSite}`)}return U}function v(S){if(S.indexOf("%")===-1)return S;try{return decodeURIComponent(S)}catch{return S}}function x(S){return o.call(S)==="[object Date]"}return ui}qx();var Qp="popstate";function Gx(i={}){function n(o,f){let{pathname:p="/",search:h="",hash:m=""}=hn(o.location.hash.substring(1));return!p.startsWith("/")&&!p.startsWith(".")&&(p="/"+p),qo("",{pathname:p,search:h,hash:m},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function r(o,f){let p=o.document.querySelector("base"),h="";if(p&&p.getAttribute("href")){let m=o.location.href,d=m.indexOf("#");h=d===-1?m:m.slice(0,d)}return h+"#"+(typeof f=="string"?f:gi(f))}function s(o,f){Ut(o.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(f)})`)}return Qx(n,r,s,i)}function _e(i,n){if(i===!1||i===null||typeof i>"u")throw new Error(n)}function Ut(i,n){if(!i){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function Yx(){return Math.random().toString(36).substring(2,10)}function Zp(i,n){return{usr:i.state,key:i.key,idx:n}}function qo(i,n,r=null,s){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof n=="string"?hn(n):n,state:r,key:n&&n.key||s||Yx()}}function gi({pathname:i="/",search:n="",hash:r=""}){return n&&n!=="?"&&(i+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(i+=r.charAt(0)==="#"?r:"#"+r),i}function hn(i){let n={};if(i){let r=i.indexOf("#");r>=0&&(n.hash=i.substring(r),i=i.substring(0,r));let s=i.indexOf("?");s>=0&&(n.search=i.substring(s),i=i.substring(0,s)),i&&(n.pathname=i)}return n}function Qx(i,n,r,s={}){let{window:o=document.defaultView,v5Compat:f=!1}=s,p=o.history,h="POP",m=null,d=v();d==null&&(d=0,p.replaceState({...p.state,idx:d},""));function v(){return(p.state||{idx:null}).idx}function x(){h="POP";let B=v(),U=B==null?null:B-d;d=B,m&&m({action:h,location:z.location,delta:U})}function S(B,U){h="PUSH";let D=qo(z.location,B,U);r&&r(D,B),d=v()+1;let G=Zp(D,d),J=z.createHref(D);try{p.pushState(G,"",J)}catch(K){if(K instanceof DOMException&&K.name==="DataCloneError")throw K;o.location.assign(J)}f&&m&&m({action:h,location:z.location,delta:1})}function C(B,U){h="REPLACE";let D=qo(z.location,B,U);r&&r(D,B),d=v();let G=Zp(D,d),J=z.createHref(D);p.replaceState(G,"",J),f&&m&&m({action:h,location:z.location,delta:0})}function E(B){return Zx(B)}let z={get action(){return h},get location(){return i(o,p)},listen(B){if(m)throw new Error("A history only accepts one active listener");return o.addEventListener(Qp,x),m=B,()=>{o.removeEventListener(Qp,x),m=null}},createHref(B){return n(o,B)},createURL:E,encodeLocation(B){let U=E(B);return{pathname:U.pathname,search:U.search,hash:U.hash}},push:S,replace:C,go(B){return p.go(B)}};return z}function Zx(i,n=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),_e(r,"No window.location.(origin|href) available to create URL");let s=typeof i=="string"?i:gi(i);return s=s.replace(/ $/,"%20"),!n&&s.startsWith("//")&&(s=r+s),new URL(s,r)}function dm(i,n,r="/"){return Kx(i,n,r,!1)}function Kx(i,n,r,s){let o=typeof n=="string"?hn(n):n,f=va(o.pathname||"/",r);if(f==null)return null;let p=hm(i);Xx(p);let h=null;for(let m=0;h==null&&m<p.length;++m){let d=i1(f);h=n1(p[m],d,s)}return h}function hm(i,n=[],r=[],s=""){let o=(f,p,h)=>{let m={relativePath:h===void 0?f.path||"":h,caseSensitive:f.caseSensitive===!0,childrenIndex:p,route:f};m.relativePath.startsWith("/")&&(_e(m.relativePath.startsWith(s),`Absolute route path "${m.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(s.length));let d=ga([s,m.relativePath]),v=r.concat(m);f.children&&f.children.length>0&&(_e(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),hm(f.children,n,v,d)),!(f.path==null&&!f.index)&&n.push({path:d,score:t1(d,f.index),routesMeta:v})};return i.forEach((f,p)=>{var h;if(f.path===""||!((h=f.path)!=null&&h.includes("?")))o(f,p);else for(let m of pm(f.path))o(f,p,m)}),n}function pm(i){let n=i.split("/");if(n.length===0)return[];let[r,...s]=n,o=r.endsWith("?"),f=r.replace(/\?$/,"");if(s.length===0)return o?[f,""]:[f];let p=pm(s.join("/")),h=[];return h.push(...p.map(m=>m===""?f:[f,m].join("/"))),o&&h.push(...p),h.map(m=>i.startsWith("/")&&m===""?"/":m)}function Xx(i){i.sort((n,r)=>n.score!==r.score?r.score-n.score:a1(n.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}var Jx=/^:[\w-]+$/,Fx=3,Px=2,Wx=1,Ix=10,e1=-2,Kp=i=>i==="*";function t1(i,n){let r=i.split("/"),s=r.length;return r.some(Kp)&&(s+=e1),n&&(s+=Px),r.filter(o=>!Kp(o)).reduce((o,f)=>o+(Jx.test(f)?Fx:f===""?Wx:Ix),s)}function a1(i,n){return i.length===n.length&&i.slice(0,-1).every((s,o)=>s===n[o])?i[i.length-1]-n[n.length-1]:0}function n1(i,n,r=!1){let{routesMeta:s}=i,o={},f="/",p=[];for(let h=0;h<s.length;++h){let m=s[h],d=h===s.length-1,v=f==="/"?n:n.slice(f.length)||"/",x=Pr({path:m.relativePath,caseSensitive:m.caseSensitive,end:d},v),S=m.route;if(!x&&d&&r&&!s[s.length-1].route.index&&(x=Pr({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},v)),!x)return null;Object.assign(o,x.params),p.push({params:o,pathname:ga([f,x.pathname]),pathnameBase:o1(ga([f,x.pathnameBase])),route:S}),x.pathnameBase!=="/"&&(f=ga([f,x.pathnameBase]))}return p}function Pr(i,n){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[r,s]=l1(i.path,i.caseSensitive,i.end),o=n.match(r);if(!o)return null;let f=o[0],p=f.replace(/(.)\/+$/,"$1"),h=o.slice(1);return{params:s.reduce((d,{paramName:v,isOptional:x},S)=>{if(v==="*"){let E=h[S]||"";p=f.slice(0,f.length-E.length).replace(/(.)\/+$/,"$1")}const C=h[S];return x&&!C?d[v]=void 0:d[v]=(C||"").replace(/%2F/g,"/"),d},{}),pathname:f,pathnameBase:p,pattern:i}}function l1(i,n=!1,r=!0){Ut(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let s=[],o="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,h,m)=>(s.push({paramName:h,isOptional:m!=null}),m?"/?([^\\/]+)?":"/([^\\/]+)"));return i.endsWith("*")?(s.push({paramName:"*"}),o+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":i!==""&&i!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,n?void 0:"i"),s]}function i1(i){try{return i.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return Ut(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),i}}function va(i,n){if(n==="/")return i;if(!i.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,s=i.charAt(r);return s&&s!=="/"?null:i.slice(r)||"/"}function r1(i,n="/"){let{pathname:r,search:s="",hash:o=""}=typeof i=="string"?hn(i):i;return{pathname:r?r.startsWith("/")?r:s1(r,n):n,search:c1(s),hash:f1(o)}}function s1(i,n){let r=n.replace(/\/+$/,"").split("/");return i.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function ko(i,n,r,s){return`Cannot include a '${i}' character in a manually specified \`to.${n}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function u1(i){return i.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function Po(i){let n=u1(i);return n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase)}function Wo(i,n,r,s=!1){let o;typeof i=="string"?o=hn(i):(o={...i},_e(!o.pathname||!o.pathname.includes("?"),ko("?","pathname","search",o)),_e(!o.pathname||!o.pathname.includes("#"),ko("#","pathname","hash",o)),_e(!o.search||!o.search.includes("#"),ko("#","search","hash",o)));let f=i===""||o.pathname==="",p=f?"/":o.pathname,h;if(p==null)h=r;else{let x=n.length-1;if(!s&&p.startsWith("..")){let S=p.split("/");for(;S[0]==="..";)S.shift(),x-=1;o.pathname=S.join("/")}h=x>=0?n[x]:"/"}let m=r1(o,h),d=p&&p!=="/"&&p.endsWith("/"),v=(f||p===".")&&r.endsWith("/");return!m.pathname.endsWith("/")&&(d||v)&&(m.pathname+="/"),m}var ga=i=>i.join("/").replace(/\/\/+/g,"/"),o1=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),c1=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,f1=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i;function d1(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}var mm=["POST","PUT","PATCH","DELETE"];new Set(mm);var h1=["GET",...mm];new Set(h1);var ll=T.createContext(null);ll.displayName="DataRouter";var as=T.createContext(null);as.displayName="DataRouterState";var gm=T.createContext({isTransitioning:!1});gm.displayName="ViewTransition";var p1=T.createContext(new Map);p1.displayName="Fetchers";var m1=T.createContext(null);m1.displayName="Await";var qt=T.createContext(null);qt.displayName="Navigation";var bi=T.createContext(null);bi.displayName="Location";var Gt=T.createContext({outlet:null,matches:[],isDataRoute:!1});Gt.displayName="Route";var Io=T.createContext(null);Io.displayName="RouteError";function g1(i,{relative:n}={}){_e(il(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:s}=T.useContext(qt),{hash:o,pathname:f,search:p}=Si(i,{relative:n}),h=f;return r!=="/"&&(h=f==="/"?r:ga([r,f])),s.createHref({pathname:h,search:p,hash:o})}function il(){return T.useContext(bi)!=null}function Ya(){return _e(il(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(bi).location}var vm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ym(i){T.useContext(qt).static||T.useLayoutEffect(i)}function rl(){let{isDataRoute:i}=T.useContext(Gt);return i?O1():v1()}function v1(){_e(il(),"useNavigate() may be used only in the context of a <Router> component.");let i=T.useContext(ll),{basename:n,navigator:r}=T.useContext(qt),{matches:s}=T.useContext(Gt),{pathname:o}=Ya(),f=JSON.stringify(Po(s)),p=T.useRef(!1);return ym(()=>{p.current=!0}),T.useCallback((m,d={})=>{if(Ut(p.current,vm),!p.current)return;if(typeof m=="number"){r.go(m);return}let v=Wo(m,JSON.parse(f),o,d.relative==="path");i==null&&n!=="/"&&(v.pathname=v.pathname==="/"?n:ga([n,v.pathname])),(d.replace?r.replace:r.push)(v,d.state,d)},[n,r,f,o,i])}T.createContext(null);function y1(){let{matches:i}=T.useContext(Gt),n=i[i.length-1];return n?n.params:{}}function Si(i,{relative:n}={}){let{matches:r}=T.useContext(Gt),{pathname:s}=Ya(),o=JSON.stringify(Po(r));return T.useMemo(()=>Wo(i,JSON.parse(o),s,n==="path"),[i,o,s,n])}function b1(i,n){return bm(i,n)}function bm(i,n,r,s){var U;_e(il(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=T.useContext(qt),{matches:f}=T.useContext(Gt),p=f[f.length-1],h=p?p.params:{},m=p?p.pathname:"/",d=p?p.pathnameBase:"/",v=p&&p.route;{let D=v&&v.path||"";Sm(m,!v||D.endsWith("*")||D.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${D}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
58
60
 
59
- Please change the parent <Route path="${q}"> to <Route path="${q==="/"?"*":`${q}/*`}">.`)}let S=Hn(),b;if(l){let q=typeof l=="string"?ia(l):l;_e(d==="/"||((B=q.pathname)==null?void 0:B.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${q.pathname}" was given in the \`location\` prop.`),b=q}else b=S;let _=b.pathname||"/",T=_;if(d!=="/"){let q=d.replace(/^\//,"").split("/");T="/"+_.replace(/^\//,"").split("/").slice(q.length).join("/")}let M=Yp(i,{pathname:T});_t(y||M!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),_t(M==null||M[M.length-1].route.element!==void 0||M[M.length-1].route.Component!==void 0||M[M.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let G=GS(M&&M.map(q=>Object.assign({},q,{params:Object.assign({},h,q.params),pathname:cn([d,c.encodeLocation?c.encodeLocation(q.pathname).pathname:q.pathname]),pathnameBase:q.pathnameBase==="/"?d:cn([d,c.encodeLocation?c.encodeLocation(q.pathnameBase).pathname:q.pathnameBase])})),f,s,r);return l&&G?A.createElement(ri.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},G):G}function US(){let i=XS(),l=CS(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),s=i instanceof Error?i.stack:null,r="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},p=null;return console.error("Error handled by React Router default ErrorBoundary:",i),p=A.createElement(A.Fragment,null,A.createElement("p",null,"💿 Hey developer 👋"),A.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",A.createElement("code",{style:f},"ErrorBoundary")," or"," ",A.createElement("code",{style:f},"errorElement")," prop on your route.")),A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},l),s?A.createElement("pre",{style:c},s):null,p)}var HS=A.createElement(US,null),BS=class extends A.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,l){return l.location!==i.location||l.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:l.error,location:l.location,revalidation:i.revalidation||l.revalidation}}componentDidCatch(i,l){console.error("React Router caught the following error during render",i,l)}render(){return this.state.error!==void 0?A.createElement(Ut.Provider,{value:this.props.routeContext},A.createElement(Bo.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function qS({routeContext:i,match:l,children:s}){let r=A.useContext(Ja);return r&&r.static&&r.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=l.route.id),A.createElement(Ut.Provider,{value:i},s)}function GS(i,l=[],s=null,r=null){if(i==null){if(!s)return null;if(s.errors)i=s.matches;else if(l.length===0&&!s.initialized&&s.matches.length>0)i=s.matches;else return null}let c=i,f=s==null?void 0:s.errors;if(f!=null){let g=c.findIndex(d=>d.route.id&&(f==null?void 0:f[d.route.id])!==void 0);_e(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),c=c.slice(0,Math.min(c.length,g+1))}let p=!1,h=-1;if(s)for(let g=0;g<c.length;g++){let d=c[g];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(h=g),d.route.id){let{loaderData:y,errors:S}=s,b=d.route.loader&&!y.hasOwnProperty(d.route.id)&&(!S||S[d.route.id]===void 0);if(d.route.lazy||b){p=!0,h>=0?c=c.slice(0,h+1):c=[c[0]];break}}}return c.reduceRight((g,d,y)=>{let S,b=!1,_=null,T=null;s&&(S=f&&d.route.id?f[d.route.id]:void 0,_=d.route.errorElement||HS,p&&(h<0&&y===0?(Wp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,T=null):h===y&&(b=!0,T=d.route.hydrateFallbackElement||null)));let M=l.concat(c.slice(0,y+1)),G=()=>{let B;return S?B=_:b?B=T:d.route.Component?B=A.createElement(d.route.Component,null):d.route.element?B=d.route.element:B=g,A.createElement(qS,{match:d,routeContext:{outlet:g,matches:M,isDataRoute:s!=null},children:B})};return s&&(d.route.ErrorBoundary||d.route.errorElement||y===0)?A.createElement(BS,{location:s.location,revalidation:s.revalidation,component:_,error:S,children:G(),routeContext:{outlet:null,matches:M,isDataRoute:!0}}):G()},null)}function qo(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $S(i){let l=A.useContext(Ja);return _e(l,qo(i)),l}function YS(i){let l=A.useContext(Qu);return _e(l,qo(i)),l}function VS(i){let l=A.useContext(Ut);return _e(l,qo(i)),l}function Go(i){let l=VS(i),s=l.matches[l.matches.length-1];return _e(s.route.id,`${i} can only be used on routes that contain a unique "id"`),s.route.id}function QS(){return Go("useRouteId")}function XS(){var r;let i=A.useContext(Bo),l=YS("useRouteError"),s=Go("useRouteError");return i!==void 0?i:(r=l.errors)==null?void 0:r[s]}function ZS(){let{router:i}=$S("useNavigate"),l=Go("useNavigate"),s=A.useRef(!1);return Jp(()=>{s.current=!0}),A.useCallback(async(c,f={})=>{_t(s.current,Kp),s.current&&(typeof c=="number"?i.navigate(c):await i.navigate(c,{fromRouteId:l,...f}))},[i,l])}var Rp={};function Wp(i,l,s){!l&&!Rp[i]&&(Rp[i]=!0,_t(!1,s))}A.memo(KS);function KS({routes:i,future:l,state:s}){return Fp(i,void 0,s,l)}function JS({to:i,replace:l,state:s,relative:r}){_e(Fa(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=A.useContext(Lt);_t(!c,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=A.useContext(Ut),{pathname:p}=Hn(),h=Wa(),g=Ho(i,Uo(f),p,r==="path"),d=JSON.stringify(g);return A.useEffect(()=>{h(JSON.parse(d),{replace:l,state:s,relative:r})},[h,d,r,l,s]),null}function ku(i){_e(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function FS({basename:i="/",children:l=null,location:s,navigationType:r="POP",navigator:c,static:f=!1}){_e(!Fa(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=i.replace(/^\/*/,"/"),h=A.useMemo(()=>({basename:p,navigator:c,static:f,future:{}}),[p,c,f]);typeof s=="string"&&(s=ia(s));let{pathname:g="/",search:d="",hash:y="",state:S=null,key:b="default"}=s,_=A.useMemo(()=>{let T=fn(g,p);return T==null?null:{location:{pathname:T,search:d,hash:y,state:S,key:b},navigationType:r}},[p,g,d,y,S,b,r]);return _t(_!=null,`<Router basename="${p}"> is not able to match the URL "${g}${d}${y}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:A.createElement(Lt.Provider,{value:h},A.createElement(ri.Provider,{children:l,value:_}))}function WS({children:i,location:l}){return LS(ko(i),l)}function ko(i,l=[]){let s=[];return A.Children.forEach(i,(r,c)=>{if(!A.isValidElement(r))return;let f=[...l,c];if(r.type===A.Fragment){s.push.apply(s,ko(r.props.children,f));return}_e(r.type===ku,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),_e(!r.props.index||!r.props.children,"An index route cannot have child routes.");let p={id:r.props.id||f.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(p.children=ko(r.props.children,f)),s.push(p)}),s}var _u="get",Du="application/x-www-form-urlencoded";function Xu(i){return i!=null&&typeof i.tagName=="string"}function PS(i){return Xu(i)&&i.tagName.toLowerCase()==="button"}function IS(i){return Xu(i)&&i.tagName.toLowerCase()==="form"}function e1(i){return Xu(i)&&i.tagName.toLowerCase()==="input"}function t1(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function n1(i,l){return i.button===0&&(!l||l==="_self")&&!t1(i)}var Ou=null;function a1(){if(Ou===null)try{new FormData(document.createElement("form"),0),Ou=!1}catch{Ou=!0}return Ou}var l1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function So(i){return i!=null&&!l1.has(i)?(_t(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Du}"`),null):i}function i1(i,l){let s,r,c,f,p;if(IS(i)){let h=i.getAttribute("action");r=h?fn(h,l):null,s=i.getAttribute("method")||_u,c=So(i.getAttribute("enctype"))||Du,f=new FormData(i)}else if(PS(i)||e1(i)&&(i.type==="submit"||i.type==="image")){let h=i.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=i.getAttribute("formaction")||h.getAttribute("action");if(r=g?fn(g,l):null,s=i.getAttribute("formmethod")||h.getAttribute("method")||_u,c=So(i.getAttribute("formenctype"))||So(h.getAttribute("enctype"))||Du,f=new FormData(h,i),!a1()){let{name:d,type:y,value:S}=i;if(y==="image"){let b=d?`${d}.`:"";f.append(`${b}x`,"0"),f.append(`${b}y`,"0")}else d&&f.append(d,S)}}else{if(Xu(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=_u,r=null,c=Du,p=i}return f&&c==="text/plain"&&(p=f,f=void 0),{action:r,method:s.toLowerCase(),encType:c,formData:f,body:p}}function $o(i,l){if(i===!1||i===null||typeof i>"u")throw new Error(l)}async function u1(i,l){if(i.id in l)return l[i.id];try{let s=await import(i.module);return l[i.id]=s,s}catch(s){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function s1(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function r1(i,l,s){let r=await Promise.all(i.map(async c=>{let f=l.routes[c.route.id];if(f){let p=await u1(f,s);return p.links?p.links():[]}return[]}));return d1(r.flat(1).filter(s1).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function wp(i,l,s,r,c,f){let p=(g,d)=>s[d]?g.route.id!==s[d].route.id:!0,h=(g,d)=>{var y;return s[d].pathname!==g.pathname||((y=s[d].route.path)==null?void 0:y.endsWith("*"))&&s[d].params["*"]!==g.params["*"]};return f==="assets"?l.filter((g,d)=>p(g,d)||h(g,d)):f==="data"?l.filter((g,d)=>{var S;let y=r.routes[g.route.id];if(!y||!y.hasLoader)return!1;if(p(g,d)||h(g,d))return!0;if(g.route.shouldRevalidate){let b=g.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((S=s[0])==null?void 0:S.params)||{},nextUrl:new URL(i,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function o1(i,l,{includeHydrateFallback:s}={}){return c1(i.map(r=>{let c=l.routes[r.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),s&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function c1(i){return[...new Set(i)]}function f1(i){let l={},s=Object.keys(i).sort();for(let r of s)l[r]=i[r];return l}function d1(i,l){let s=new Set;return new Set(l),i.reduce((r,c)=>{let f=JSON.stringify(f1(c));return s.has(f)||(s.add(f),r.push({key:f,link:c})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var h1=new Set([100,101,204,205]);function p1(i,l){let s=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return s.pathname==="/"?s.pathname="_root.data":l&&fn(s.pathname,l)==="/"?s.pathname=`${l.replace(/\/$/,"")}/_root.data`:s.pathname=`${s.pathname.replace(/\/$/,"")}.data`,s}function Pp(){let i=A.useContext(Ja);return $o(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function g1(){let i=A.useContext(Qu);return $o(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var Yo=A.createContext(void 0);Yo.displayName="FrameworkContext";function Ip(){let i=A.useContext(Yo);return $o(i,"You must render this element inside a <HydratedRouter> element"),i}function m1(i,l){let s=A.useContext(Yo),[r,c]=A.useState(!1),[f,p]=A.useState(!1),{onFocus:h,onBlur:g,onMouseEnter:d,onMouseLeave:y,onTouchStart:S}=l,b=A.useRef(null);A.useEffect(()=>{if(i==="render"&&p(!0),i==="viewport"){let M=B=>{B.forEach(q=>{p(q.isIntersecting)})},G=new IntersectionObserver(M,{threshold:.5});return b.current&&G.observe(b.current),()=>{G.disconnect()}}},[i]),A.useEffect(()=>{if(r){let M=setTimeout(()=>{p(!0)},100);return()=>{clearTimeout(M)}}},[r]);let _=()=>{c(!0)},T=()=>{c(!1),p(!1)};return s?i!=="intent"?[f,b,{}]:[f,b,{onFocus:Il(h,_),onBlur:Il(g,T),onMouseEnter:Il(d,_),onMouseLeave:Il(y,T),onTouchStart:Il(S,_)}]:[!1,b,{}]}function Il(i,l){return s=>{i&&i(s),s.defaultPrevented||l(s)}}function y1({page:i,...l}){let{router:s}=Pp(),r=A.useMemo(()=>Yp(s.routes,i,s.basename),[s.routes,i,s.basename]);return r?A.createElement(b1,{page:i,matches:r,...l}):null}function v1(i){let{manifest:l,routeModules:s}=Ip(),[r,c]=A.useState([]);return A.useEffect(()=>{let f=!1;return r1(i,l,s).then(p=>{f||c(p)}),()=>{f=!0}},[i,l,s]),r}function b1({page:i,matches:l,...s}){let r=Hn(),{manifest:c,routeModules:f}=Ip(),{basename:p}=Pp(),{loaderData:h,matches:g}=g1(),d=A.useMemo(()=>wp(i,l,g,c,r,"data"),[i,l,g,c,r]),y=A.useMemo(()=>wp(i,l,g,c,r,"assets"),[i,l,g,c,r]),S=A.useMemo(()=>{if(i===r.pathname+r.search+r.hash)return[];let T=new Set,M=!1;if(l.forEach(B=>{var X;let q=c.routes[B.route.id];!q||!q.hasLoader||(!d.some(F=>F.route.id===B.route.id)&&B.route.id in h&&((X=f[B.route.id])!=null&&X.shouldRevalidate)||q.hasClientLoader?M=!0:T.add(B.route.id))}),T.size===0)return[];let G=p1(i,p);return M&&T.size>0&&G.searchParams.set("_routes",l.filter(B=>T.has(B.route.id)).map(B=>B.route.id).join(",")),[G.pathname+G.search]},[p,h,r,c,d,l,i,f]),b=A.useMemo(()=>o1(y,c),[y,c]),_=v1(y);return A.createElement(A.Fragment,null,S.map(T=>A.createElement("link",{key:T,rel:"prefetch",as:"fetch",href:T,...s})),b.map(T=>A.createElement("link",{key:T,rel:"modulepreload",href:T,...s})),_.map(({key:T,link:M})=>A.createElement("link",{key:T,...M})))}function S1(...i){return l=>{i.forEach(s=>{typeof s=="function"?s(l):s!=null&&(s.current=l)})}}var eg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{eg&&(window.__reactRouterVersion="7.6.2")}catch{}function x1({basename:i,children:l,window:s}){let r=A.useRef();r.current==null&&(r.current=uS({window:s,v5Compat:!0}));let c=r.current,[f,p]=A.useState({action:c.action,location:c.location}),h=A.useCallback(g=>{A.startTransition(()=>p(g))},[p]);return A.useLayoutEffect(()=>c.listen(h),[c,h]),A.createElement(FS,{basename:i,children:l,location:f.location,navigationType:f.action,navigator:c})}var tg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ng=A.forwardRef(function({onClick:l,discover:s="render",prefetch:r="none",relative:c,reloadDocument:f,replace:p,state:h,target:g,to:d,preventScrollReset:y,viewTransition:S,...b},_){let{basename:T}=A.useContext(Lt),M=typeof d=="string"&&tg.test(d),G,B=!1;if(typeof d=="string"&&M&&(G=d,eg))try{let Q=new URL(window.location.href),ee=d.startsWith("//")?new URL(Q.protocol+d):new URL(d),he=fn(ee.pathname,T);ee.origin===Q.origin&&he!=null?d=he+ee.search+ee.hash:B=!0}catch{_t(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let q=DS(d,{relative:c}),[X,F,Z]=m1(r,b),de=w1(d,{replace:p,state:h,target:g,preventScrollReset:y,relative:c,viewTransition:S});function le(Q){l&&l(Q),Q.defaultPrevented||de(Q)}let ie=A.createElement("a",{...b,...Z,href:G||q,onClick:B||f?l:le,ref:S1(_,F),target:g,"data-discover":!M&&s==="render"?"true":void 0});return X&&!M?A.createElement(A.Fragment,null,ie,A.createElement(y1,{page:q})):ie});ng.displayName="Link";var E1=A.forwardRef(function({"aria-current":l="page",caseSensitive:s=!1,className:r="",end:c=!1,style:f,to:p,viewTransition:h,children:g,...d},y){let S=oi(p,{relative:d.relative}),b=Hn(),_=A.useContext(Qu),{navigator:T,basename:M}=A.useContext(Lt),G=_!=null&&z1(S)&&h===!0,B=T.encodeLocation?T.encodeLocation(S).pathname:S.pathname,q=b.pathname,X=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;s||(q=q.toLowerCase(),X=X?X.toLowerCase():null,B=B.toLowerCase()),X&&M&&(X=fn(X,M)||X);const F=B!=="/"&&B.endsWith("/")?B.length-1:B.length;let Z=q===B||!c&&q.startsWith(B)&&q.charAt(F)==="/",de=X!=null&&(X===B||!c&&X.startsWith(B)&&X.charAt(B.length)==="/"),le={isActive:Z,isPending:de,isTransitioning:G},ie=Z?l:void 0,Q;typeof r=="function"?Q=r(le):Q=[r,Z?"active":null,de?"pending":null,G?"transitioning":null].filter(Boolean).join(" ");let ee=typeof f=="function"?f(le):f;return A.createElement(ng,{...d,"aria-current":ie,className:Q,ref:y,style:ee,to:p,viewTransition:h},typeof g=="function"?g(le):g)});E1.displayName="NavLink";var T1=A.forwardRef(({discover:i="render",fetcherKey:l,navigate:s,reloadDocument:r,replace:c,state:f,method:p=_u,action:h,onSubmit:g,relative:d,preventScrollReset:y,viewTransition:S,...b},_)=>{let T=O1(),M=C1(h,{relative:d}),G=p.toLowerCase()==="get"?"get":"post",B=typeof h=="string"&&tg.test(h),q=X=>{if(g&&g(X),X.defaultPrevented)return;X.preventDefault();let F=X.nativeEvent.submitter,Z=(F==null?void 0:F.getAttribute("formmethod"))||p;T(F||X.currentTarget,{fetcherKey:l,method:Z,navigate:s,replace:c,state:f,relative:d,preventScrollReset:y,viewTransition:S})};return A.createElement("form",{ref:_,method:G,action:M,onSubmit:r?g:q,...b,"data-discover":!B&&i==="render"?"true":void 0})});T1.displayName="Form";function R1(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ag(i){let l=A.useContext(Ja);return _e(l,R1(i)),l}function w1(i,{target:l,replace:s,state:r,preventScrollReset:c,relative:f,viewTransition:p}={}){let h=Wa(),g=Hn(),d=oi(i,{relative:f});return A.useCallback(y=>{if(n1(y,l)){y.preventDefault();let S=s!==void 0?s:ui(g)===ui(d);h(i,{replace:S,state:r,preventScrollReset:c,relative:f,viewTransition:p})}},[g,h,d,s,r,l,i,c,f,p])}var N1=0,A1=()=>`__${String(++N1)}__`;function O1(){let{router:i}=ag("useSubmit"),{basename:l}=A.useContext(Lt),s=QS();return A.useCallback(async(r,c={})=>{let{action:f,method:p,encType:h,formData:g,body:d}=i1(r,l);if(c.navigate===!1){let y=c.fetcherKey||A1();await i.fetch(y,s,c.action||f,{preventScrollReset:c.preventScrollReset,formData:g,body:d,formMethod:c.method||p,formEncType:c.encType||h,flushSync:c.flushSync})}else await i.navigate(c.action||f,{preventScrollReset:c.preventScrollReset,formData:g,body:d,formMethod:c.method||p,formEncType:c.encType||h,replace:c.replace,state:c.state,fromRouteId:s,flushSync:c.flushSync,viewTransition:c.viewTransition})},[i,l,s])}function C1(i,{relative:l}={}){let{basename:s}=A.useContext(Lt),r=A.useContext(Ut);_e(r,"useFormAction must be used inside a RouteContext");let[c]=r.matches.slice(-1),f={...oi(i||".",{relative:l})},p=Hn();if(i==null){f.search=p.search;let h=new URLSearchParams(f.search),g=h.getAll("index");if(g.some(y=>y==="")){h.delete("index"),g.filter(S=>S).forEach(S=>h.append("index",S));let y=h.toString();f.search=y?`?${y}`:""}}return(!i||i===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(f.pathname=f.pathname==="/"?s:cn([s,f.pathname])),ui(f)}function z1(i,l={}){let s=A.useContext(Zp);_e(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ag("useViewTransitionState"),c=oi(i,{relative:l.relative});if(!s.isTransitioning)return!1;let f=fn(s.currentLocation.pathname,r)||s.currentLocation.pathname,p=fn(s.nextLocation.pathname,r)||s.nextLocation.pathname;return Bu(c.pathname,p)!=null||Bu(c.pathname,f)!=null}[...h1];function k1(i){return i.varName?` for '${i.varName}'`:""}function _1(i,l={}){if(i==null||i===""&&!l.allowEmpty)throw new Error(`Missing string value${k1(l)}`);return typeof i=="string"?i:i.toString()}const D1=`${`//${document.location.host}`}/api/plugin/site-generator`;let lg;const[xo]=document.getElementsByClassName("js-script-site-generator");xo&&xo instanceof HTMLScriptElement&&(lg=_1(xo.dataset.googleRecaptchaSiteKey,{varName:"data-google-recaptcha-site-key"}));const Eo=lg;async function Un(i){try{const l=await fetch(D1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});return l.ok?l.json():{success:!1,userMessage:`Failed to execute command: ${l.statusText}`}}catch(l){return{success:!1,userMessage:`Communication error: ${l.message}`}}}const Np=i=>{let l;const s=new Set,r=(d,y)=>{const S=typeof d=="function"?d(l):d;if(!Object.is(S,l)){const b=l;l=y??(typeof S!="object"||S===null)?S:Object.assign({},l,S),s.forEach(_=>_(l,b))}},c=()=>l,h={setState:r,getState:c,getInitialState:()=>g,subscribe:d=>(s.add(d),()=>s.delete(d))},g=l=i(r,c,h);return h},M1=i=>i?Np(i):Np,j1=i=>i;function L1(i,l=j1){const s=No.useSyncExternalStore(i.subscribe,()=>l(i.getState()),()=>l(i.getInitialState()));return No.useDebugValue(s),s}const Ap=i=>{const l=M1(i),s=r=>L1(l,r);return Object.assign(s,l),s},U1=i=>i?Ap(i):Ap,Vo="site-generator-session-token";function Op(i){try{sessionStorage.setItem(Vo,i)}catch(l){console.error("Failed to save session token",l)}}function si(){try{return sessionStorage.getItem(Vo)??void 0}catch(i){console.error("Failed to get session token",i)}}function H1(){try{sessionStorage.removeItem(Vo)}catch(i){console.error("Failed to remove session token",i)}}const B1=2e3,Ka=new Map;function q1(i){if(Ka.has(i))return;const l=window.setInterval(()=>{G1(i)},B1);Ka.set(i,l)}function Cu(i){const l=Ka.get(i);l&&(window.clearInterval(l),Ka.delete(i))}function Qo(){Ka.forEach(i=>{window.clearInterval(i)}),Ka.clear()}async function G1(i){const l=si();if(!l){Cu(i);return}try{const s=await Un({command:"loadStep",sessionToken:l,stepNumber:i});if(s.success&&s.result){const r=s.result;$1(r),r.status!=="pending"&&Cu(i)}else console.error("Error polling step:",s),Cu(i)}catch(s){console.error("Error polling step:",s),Cu(i)}}function $1(i){const{updateStep:l}=ua.getState();l(i)}function To(i){Qo(),i.steps.forEach(l=>{l.status==="pending"&&q1(l.stepNumber)})}const ua=U1((i,l)=>({workSession:void 0,isLoading:!1,error:void 0,activeStepNumber:void 0,setWorkSession:s=>{i({workSession:s}),s&&To(s)},updateStep:s=>{const{workSession:r}=l();if(!r)return;const c=r.steps.map(p=>p.stepNumber===s.stepNumber?s:p),f={...r,steps:c};i({workSession:f}),s.status==="pending"&&To(f)},appendNewStep:s=>{const{workSession:r}=l();if(!r)return;const c={...r,steps:[...r.steps,s]};i({workSession:c}),s.status==="pending"&&To(c)},setIsLoading:s=>i({isLoading:s}),setError:s=>i({error:s}),setActiveStepNumber:s=>i({activeStepNumber:s}),resetSession:()=>{Qo(),i({workSession:void 0,isLoading:!1,error:void 0,activeStepNumber:void 0})}})),tt=A.forwardRef((i,l)=>{const{label:s,severity:r="primary",loading:c,children:f,onClick:p,className:h="",disabled:g,...d}=i,[y,S]=A.useState(!1),b=y||c,_=["Button",r==="secondary"?"secondary":"",b?"loading":"",h].filter(Boolean).join(" "),T=async M=>{if(p)try{M.preventDefault(),S(!0),await p(M)}finally{S(!1)}};return E.jsxs("button",{ref:l,type:"button",className:_,onClick:T,disabled:g||b,...d,children:[!b&&f,!b&&s]})});tt.displayName="Button";function Zu({size:i="medium"}){return E.jsx("div",{className:`Spinner Spinner-${i}`,"aria-label":"Loading"})}function Mu({activeStep:i}){const{t:l}=ut(),s=Wa(),{workSession:r}=ua(),c=()=>{s("/")},f=p=>{s(`/step/${p}`)};return!r||!r.steps||r.steps.length===0?E.jsx("div",{className:"Sidebar",children:E.jsx(tt,{className:`Sidebar-button ${i===void 0?"active":""}`,onClick:c,children:l("startAgain")})}):E.jsxs("div",{className:"Sidebar",children:[E.jsx(tt,{className:`Sidebar-button ${i===void 0?"active":""}`,onClick:c,children:l("startAgain")}),E.jsx("div",{className:"Sidebar-steps",children:r.steps.map(p=>E.jsxs("div",{className:"Sidebar-step",children:[E.jsx(tt,{className:`Sidebar-button ${i===p.stepNumber?"active":""} ${p.status==="pending"?"has-spinner":""}`,onClick:()=>f(p.stepNumber),children:`${l("step")} ${p.stepNumber}: ${l(p.kind)}`}),p.status==="pending"&&E.jsx("div",{className:"Sidebar-spinner",children:E.jsx(Zu,{size:"small"})})]},p.stepNumber))})]})}function ig({initialValue:i="",placeholder:l,submitLabel:s,onSubmit:r,isLoading:c=!1,error:f}){const{t:p}=ut(),[h,g]=A.useState(i),d=S=>{g(S.target.value)},y=async()=>{h.trim()&&await r(h.trim())};return E.jsxs("div",{className:"PromptForm",children:[f&&E.jsx("div",{className:"Alert error mb-3",children:E.jsx("p",{children:f})}),E.jsx("textarea",{className:"PromptForm-textarea",placeholder:l||p("createPromptPlaceholder"),value:h,onChange:d,rows:6,disabled:c}),E.jsx(tt,{onClick:y,loading:c,disabled:!h.trim()||c,className:"PromptForm-button mt-3",children:s})]})}function Et({header:i,footer:l,children:s,className:r=""}){const c=["Card",r].filter(Boolean).join(" ");return E.jsxs("div",{className:c,children:[i&&E.jsx("div",{className:"Card-header",children:i}),E.jsx("div",{className:"Card-body",children:s}),l&&E.jsx("div",{className:"Card-footer",children:l})]})}function Y1(){const{t:i}=ut(),l=Wa(),[s,r]=A.useState(!1),[c,f]=A.useState(void 0),{workSession:p,appendNewStep:h}=ua(),g=async d=>{if(!p)return;r(!0),f(void 0);const y=si();if(!y){f(i("sessionExpired")),r(!1);return}try{const S=await Un({command:"createSiteSchema",sessionToken:y,prompt:d});if(S.success&&S.result){const b=S.result;h(b),l(`/step/${b.stepNumber}`)}else f(i("promptSubmissionFailed"))}catch(S){console.error("Error submitting prompt:",S),f(i("errorOccurred"))}finally{r(!1)}};return E.jsxs("div",{className:"RouteLayout",children:[E.jsx("div",{className:"RouteLayout-main",children:E.jsxs(Et,{className:"p-4",children:[E.jsx("h1",{className:"mb-4",children:i("welcomeTitle")}),E.jsx("div",{className:"Text mb-4",dangerouslySetInnerHTML:{__html:i("startInstruction")}}),p&&p.steps.length>0&&E.jsx("p",{className:"InfoText",children:i("newTabRestartMessage")}),E.jsx(ig,{submitLabel:i("createSchema"),onSubmit:g,isLoading:s,error:c})]})}),E.jsx("div",{className:"RouteLayout-sidebar",children:E.jsx(Mu,{activeStep:void 0})})]})}function V1(i){return"siteId"in i}function Xo(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var sa=Xo();function ug(i){sa=i}var ai={exec:()=>null};function be(i,l=""){let s=typeof i=="string"?i:i.source;const r={replace:(c,f)=>{let p=typeof f=="string"?f:f.source;return p=p.replace(it.caret,"$1"),s=s.replace(c,p),r},getRegex:()=>new RegExp(s,l)};return r}var it={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:i=>new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}#`),htmlBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}<(?:[a-z].*>|!--)`,"i")},Q1=/^(?:[ \t]*(?:\n|$))+/,X1=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Z1=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ci=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,K1=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Zo=/(?:[*+-]|\d{1,9}[.)])/,sg=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,rg=be(sg).replace(/bull/g,Zo).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),J1=be(sg).replace(/bull/g,Zo).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Ko=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,F1=/^[^\n]+/,Jo=/(?!\s*\])(?:\\.|[^\[\]\\])+/,W1=be(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Jo).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),P1=be(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Zo).getRegex(),Ku="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Fo=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,I1=be("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Fo).replace("tag",Ku).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),og=be(Ko).replace("hr",ci).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ku).getRegex(),ex=be(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",og).getRegex(),Wo={blockquote:ex,code:X1,def:W1,fences:Z1,heading:K1,hr:ci,html:I1,lheading:rg,list:P1,newline:Q1,paragraph:og,table:ai,text:F1},Cp=be("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ci).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ku).getRegex(),tx={...Wo,lheading:J1,table:Cp,paragraph:be(Ko).replace("hr",ci).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Cp).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ku).getRegex()},nx={...Wo,html:be(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Fo).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ai,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:be(Ko).replace("hr",ci).replace("heading",` *#{1,6} *[^
60
- ]`).replace("lheading",rg).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ax=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,lx=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,cg=/^( {2,}|\\)\n(?!\s*$)/,ix=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ju=/[\p{P}\p{S}]/u,Po=/[\s\p{P}\p{S}]/u,fg=/[^\s\p{P}\p{S}]/u,ux=be(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Po).getRegex(),dg=/(?!~)[\p{P}\p{S}]/u,sx=/(?!~)[\s\p{P}\p{S}]/u,rx=/(?:[^\s\p{P}\p{S}]|~)/u,ox=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,hg=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,cx=be(hg,"u").replace(/punct/g,Ju).getRegex(),fx=be(hg,"u").replace(/punct/g,dg).getRegex(),pg="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",dx=be(pg,"gu").replace(/notPunctSpace/g,fg).replace(/punctSpace/g,Po).replace(/punct/g,Ju).getRegex(),hx=be(pg,"gu").replace(/notPunctSpace/g,rx).replace(/punctSpace/g,sx).replace(/punct/g,dg).getRegex(),px=be("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,fg).replace(/punctSpace/g,Po).replace(/punct/g,Ju).getRegex(),gx=be(/\\(punct)/,"gu").replace(/punct/g,Ju).getRegex(),mx=be(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),yx=be(Fo).replace("(?:-->|$)","-->").getRegex(),vx=be("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",yx).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),qu=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,bx=be(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",qu).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),gg=be(/^!?\[(label)\]\[(ref)\]/).replace("label",qu).replace("ref",Jo).getRegex(),mg=be(/^!?\[(ref)\](?:\[\])?/).replace("ref",Jo).getRegex(),Sx=be("reflink|nolink(?!\\()","g").replace("reflink",gg).replace("nolink",mg).getRegex(),Io={_backpedal:ai,anyPunctuation:gx,autolink:mx,blockSkip:ox,br:cg,code:lx,del:ai,emStrongLDelim:cx,emStrongRDelimAst:dx,emStrongRDelimUnd:px,escape:ax,link:bx,nolink:mg,punctuation:ux,reflink:gg,reflinkSearch:Sx,tag:vx,text:ix,url:ai},xx={...Io,link:be(/^!?\[(label)\]\((.*?)\)/).replace("label",qu).getRegex(),reflink:be(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",qu).getRegex()},_o={...Io,emStrongRDelimAst:hx,emStrongLDelim:fx,url:be(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Ex={..._o,br:be(cg).replace("{2,}","*").getRegex(),text:be(_o.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},zu={normal:Wo,gfm:tx,pedantic:nx},ei={normal:Io,gfm:_o,breaks:Ex,pedantic:xx},Tx={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},zp=i=>Tx[i];function Vt(i,l){if(l){if(it.escapeTest.test(i))return i.replace(it.escapeReplace,zp)}else if(it.escapeTestNoEncode.test(i))return i.replace(it.escapeReplaceNoEncode,zp);return i}function kp(i){try{i=encodeURI(i).replace(it.percentDecode,"%")}catch{return null}return i}function _p(i,l){var f;const s=i.replace(it.findPipe,(p,h,g)=>{let d=!1,y=h;for(;--y>=0&&g[y]==="\\";)d=!d;return d?"|":" |"}),r=s.split(it.splitPipe);let c=0;if(r[0].trim()||r.shift(),r.length>0&&!((f=r.at(-1))!=null&&f.trim())&&r.pop(),l)if(r.length>l)r.splice(l);else for(;r.length<l;)r.push("");for(;c<r.length;c++)r[c]=r[c].trim().replace(it.slashPipe,"|");return r}function ti(i,l,s){const r=i.length;if(r===0)return"";let c=0;for(;c<r&&i.charAt(r-c-1)===l;)c++;return i.slice(0,r-c)}function Rx(i,l){if(i.indexOf(l[1])===-1)return-1;let s=0;for(let r=0;r<i.length;r++)if(i[r]==="\\")r++;else if(i[r]===l[0])s++;else if(i[r]===l[1]&&(s--,s<0))return r;return s>0?-2:-1}function Dp(i,l,s,r,c){const f=l.href,p=l.title||null,h=i[1].replace(c.other.outputLinkReplace,"$1");r.state.inLink=!0;const g={type:i[0].charAt(0)==="!"?"image":"link",raw:s,href:f,title:p,text:h,tokens:r.inlineTokens(h)};return r.state.inLink=!1,g}function wx(i,l,s){const r=i.match(s.other.indentCodeCompensation);if(r===null)return l;const c=r[1];return l.split(`
61
- `).map(f=>{const p=f.match(s.other.beginningSpace);if(p===null)return f;const[h]=p;return h.length>=c.length?f.slice(c.length):f}).join(`
62
- `)}var Gu=class{constructor(i){Ae(this,"options");Ae(this,"rules");Ae(this,"lexer");this.options=i||sa}space(i){const l=this.rules.block.newline.exec(i);if(l&&l[0].length>0)return{type:"space",raw:l[0]}}code(i){const l=this.rules.block.code.exec(i);if(l){const s=l[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:l[0],codeBlockStyle:"indented",text:this.options.pedantic?s:ti(s,`
63
- `)}}}fences(i){const l=this.rules.block.fences.exec(i);if(l){const s=l[0],r=wx(s,l[3]||"",this.rules);return{type:"code",raw:s,lang:l[2]?l[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):l[2],text:r}}}heading(i){const l=this.rules.block.heading.exec(i);if(l){let s=l[2].trim();if(this.rules.other.endingHash.test(s)){const r=ti(s,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(s=r.trim())}return{type:"heading",raw:l[0],depth:l[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(i){const l=this.rules.block.hr.exec(i);if(l)return{type:"hr",raw:ti(l[0],`
64
- `)}}blockquote(i){const l=this.rules.block.blockquote.exec(i);if(l){let s=ti(l[0],`
61
+ Please change the parent <Route path="${D}"> to <Route path="${D==="/"?"*":`${D}/*`}">.`)}let x=Ya(),S;if(n){let D=typeof n=="string"?hn(n):n;_e(d==="/"||((U=D.pathname)==null?void 0:U.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${D.pathname}" was given in the \`location\` prop.`),S=D}else S=x;let C=S.pathname||"/",E=C;if(d!=="/"){let D=d.replace(/^\//,"").split("/");E="/"+C.replace(/^\//,"").split("/").slice(D.length).join("/")}let z=dm(i,{pathname:E});Ut(v||z!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),Ut(z==null||z[z.length-1].route.element!==void 0||z[z.length-1].route.Component!==void 0||z[z.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let B=R1(z&&z.map(D=>Object.assign({},D,{params:Object.assign({},h,D.params),pathname:ga([d,o.encodeLocation?o.encodeLocation(D.pathname).pathname:D.pathname]),pathnameBase:D.pathnameBase==="/"?d:ga([d,o.encodeLocation?o.encodeLocation(D.pathnameBase).pathname:D.pathnameBase])})),f,r,s);return n&&B?T.createElement(bi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...S},navigationType:"POP"}},B):B}function S1(){let i=A1(),n=d1(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),r=i instanceof Error?i.stack:null,s="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:s},f={padding:"2px 4px",backgroundColor:s},p=null;return console.error("Error handled by React Router default ErrorBoundary:",i),p=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:f},"ErrorBoundary")," or"," ",T.createElement("code",{style:f},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},n),r?T.createElement("pre",{style:o},r):null,p)}var x1=T.createElement(S1,null),N1=class extends T.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,n){return n.location!==i.location||n.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:n.error,location:n.location,revalidation:i.revalidation||n.revalidation}}componentDidCatch(i,n){console.error("React Router caught the following error during render",i,n)}render(){return this.state.error!==void 0?T.createElement(Gt.Provider,{value:this.props.routeContext},T.createElement(Io.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function E1({routeContext:i,match:n,children:r}){let s=T.useContext(ll);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),T.createElement(Gt.Provider,{value:i},r)}function R1(i,n=[],r=null,s=null){if(i==null){if(!r)return null;if(r.errors)i=r.matches;else if(n.length===0&&!r.initialized&&r.matches.length>0)i=r.matches;else return null}let o=i,f=r==null?void 0:r.errors;if(f!=null){let m=o.findIndex(d=>d.route.id&&(f==null?void 0:f[d.route.id])!==void 0);_e(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),o=o.slice(0,Math.min(o.length,m+1))}let p=!1,h=-1;if(r)for(let m=0;m<o.length;m++){let d=o[m];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(h=m),d.route.id){let{loaderData:v,errors:x}=r,S=d.route.loader&&!v.hasOwnProperty(d.route.id)&&(!x||x[d.route.id]===void 0);if(d.route.lazy||S){p=!0,h>=0?o=o.slice(0,h+1):o=[o[0]];break}}}return o.reduceRight((m,d,v)=>{let x,S=!1,C=null,E=null;r&&(x=f&&d.route.id?f[d.route.id]:void 0,C=d.route.errorElement||x1,p&&(h<0&&v===0?(Sm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,E=null):h===v&&(S=!0,E=d.route.hydrateFallbackElement||null)));let z=n.concat(o.slice(0,v+1)),B=()=>{let U;return x?U=C:S?U=E:d.route.Component?U=T.createElement(d.route.Component,null):d.route.element?U=d.route.element:U=m,T.createElement(E1,{match:d,routeContext:{outlet:m,matches:z,isDataRoute:r!=null},children:U})};return r&&(d.route.ErrorBoundary||d.route.errorElement||v===0)?T.createElement(N1,{location:r.location,revalidation:r.revalidation,component:C,error:x,children:B(),routeContext:{outlet:null,matches:z,isDataRoute:!0}}):B()},null)}function ec(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function T1(i){let n=T.useContext(ll);return _e(n,ec(i)),n}function w1(i){let n=T.useContext(as);return _e(n,ec(i)),n}function C1(i){let n=T.useContext(Gt);return _e(n,ec(i)),n}function tc(i){let n=C1(i),r=n.matches[n.matches.length-1];return _e(r.route.id,`${i} can only be used on routes that contain a unique "id"`),r.route.id}function j1(){return tc("useRouteId")}function A1(){var s;let i=T.useContext(Io),n=w1("useRouteError"),r=tc("useRouteError");return i!==void 0?i:(s=n.errors)==null?void 0:s[r]}function O1(){let{router:i}=T1("useNavigate"),n=tc("useNavigate"),r=T.useRef(!1);return ym(()=>{r.current=!0}),T.useCallback(async(o,f={})=>{Ut(r.current,vm),r.current&&(typeof o=="number"?i.navigate(o):await i.navigate(o,{fromRouteId:n,...f}))},[i,n])}var Xp={};function Sm(i,n,r){!n&&!Xp[i]&&(Xp[i]=!0,Ut(!1,r))}T.memo(k1);function k1({routes:i,future:n,state:r}){return bm(i,void 0,r,n)}function L1({to:i,replace:n,state:r,relative:s}){_e(il(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=T.useContext(qt);Ut(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=T.useContext(Gt),{pathname:p}=Ya(),h=rl(),m=Wo(i,Po(f),p,s==="path"),d=JSON.stringify(m);return T.useEffect(()=>{h(JSON.parse(d),{replace:n,state:r,relative:s})},[h,d,s,n,r]),null}function Gr(i){_e(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function z1({basename:i="/",children:n=null,location:r,navigationType:s="POP",navigator:o,static:f=!1}){_e(!il(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=i.replace(/^\/*/,"/"),h=T.useMemo(()=>({basename:p,navigator:o,static:f,future:{}}),[p,o,f]);typeof r=="string"&&(r=hn(r));let{pathname:m="/",search:d="",hash:v="",state:x=null,key:S="default"}=r,C=T.useMemo(()=>{let E=va(m,p);return E==null?null:{location:{pathname:E,search:d,hash:v,state:x,key:S},navigationType:s}},[p,m,d,v,x,S,s]);return Ut(C!=null,`<Router basename="${p}"> is not able to match the URL "${m}${d}${v}" because it does not start with the basename, so the <Router> won't render anything.`),C==null?null:T.createElement(qt.Provider,{value:h},T.createElement(bi.Provider,{children:n,value:C}))}function D1({children:i,location:n}){return b1(Go(i),n)}function Go(i,n=[]){let r=[];return T.Children.forEach(i,(s,o)=>{if(!T.isValidElement(s))return;let f=[...n,o];if(s.type===T.Fragment){r.push.apply(r,Go(s.props.children,f));return}_e(s.type===Gr,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),_e(!s.props.index||!s.props.children,"An index route cannot have child routes.");let p={id:s.props.id||f.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(p.children=Go(s.props.children,f)),r.push(p)}),r}var Yr="get",Qr="application/x-www-form-urlencoded";function ns(i){return i!=null&&typeof i.tagName=="string"}function _1(i){return ns(i)&&i.tagName.toLowerCase()==="button"}function M1(i){return ns(i)&&i.tagName.toLowerCase()==="form"}function U1(i){return ns(i)&&i.tagName.toLowerCase()==="input"}function B1(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function H1(i,n){return i.button===0&&(!n||n==="_self")&&!B1(i)}var Hr=null;function V1(){if(Hr===null)try{new FormData(document.createElement("form"),0),Hr=!1}catch{Hr=!0}return Hr}var $1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Lo(i){return i!=null&&!$1.has(i)?(Ut(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Qr}"`),null):i}function q1(i,n){let r,s,o,f,p;if(M1(i)){let h=i.getAttribute("action");s=h?va(h,n):null,r=i.getAttribute("method")||Yr,o=Lo(i.getAttribute("enctype"))||Qr,f=new FormData(i)}else if(_1(i)||U1(i)&&(i.type==="submit"||i.type==="image")){let h=i.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=i.getAttribute("formaction")||h.getAttribute("action");if(s=m?va(m,n):null,r=i.getAttribute("formmethod")||h.getAttribute("method")||Yr,o=Lo(i.getAttribute("formenctype"))||Lo(h.getAttribute("enctype"))||Qr,f=new FormData(h,i),!V1()){let{name:d,type:v,value:x}=i;if(v==="image"){let S=d?`${d}.`:"";f.append(`${S}x`,"0"),f.append(`${S}y`,"0")}else d&&f.append(d,x)}}else{if(ns(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Yr,s=null,o=Qr,p=i}return f&&o==="text/plain"&&(p=f,f=void 0),{action:s,method:r.toLowerCase(),encType:o,formData:f,body:p}}function ac(i,n){if(i===!1||i===null||typeof i>"u")throw new Error(n)}async function G1(i,n){if(i.id in n)return n[i.id];try{let r=await import(i.module);return n[i.id]=r,r}catch(r){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Y1(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function Q1(i,n,r){let s=await Promise.all(i.map(async o=>{let f=n.routes[o.route.id];if(f){let p=await G1(f,r);return p.links?p.links():[]}return[]}));return J1(s.flat(1).filter(Y1).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Jp(i,n,r,s,o,f){let p=(m,d)=>r[d]?m.route.id!==r[d].route.id:!0,h=(m,d)=>{var v;return r[d].pathname!==m.pathname||((v=r[d].route.path)==null?void 0:v.endsWith("*"))&&r[d].params["*"]!==m.params["*"]};return f==="assets"?n.filter((m,d)=>p(m,d)||h(m,d)):f==="data"?n.filter((m,d)=>{var x;let v=s.routes[m.route.id];if(!v||!v.hasLoader)return!1;if(p(m,d)||h(m,d))return!0;if(m.route.shouldRevalidate){let S=m.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((x=r[0])==null?void 0:x.params)||{},nextUrl:new URL(i,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof S=="boolean")return S}return!0}):[]}function Z1(i,n,{includeHydrateFallback:r}={}){return K1(i.map(s=>{let o=n.routes[s.route.id];if(!o)return[];let f=[o.module];return o.clientActionModule&&(f=f.concat(o.clientActionModule)),o.clientLoaderModule&&(f=f.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(f=f.concat(o.hydrateFallbackModule)),o.imports&&(f=f.concat(o.imports)),f}).flat(1))}function K1(i){return[...new Set(i)]}function X1(i){let n={},r=Object.keys(i).sort();for(let s of r)n[s]=i[s];return n}function J1(i,n){let r=new Set;return new Set(n),i.reduce((s,o)=>{let f=JSON.stringify(X1(o));return r.has(f)||(r.add(f),s.push({key:f,link:o})),s},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var F1=new Set([100,101,204,205]);function P1(i,n){let r=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return r.pathname==="/"?r.pathname="_root.data":n&&va(r.pathname,n)==="/"?r.pathname=`${n.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function xm(){let i=T.useContext(ll);return ac(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function W1(){let i=T.useContext(as);return ac(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var nc=T.createContext(void 0);nc.displayName="FrameworkContext";function Nm(){let i=T.useContext(nc);return ac(i,"You must render this element inside a <HydratedRouter> element"),i}function I1(i,n){let r=T.useContext(nc),[s,o]=T.useState(!1),[f,p]=T.useState(!1),{onFocus:h,onBlur:m,onMouseEnter:d,onMouseLeave:v,onTouchStart:x}=n,S=T.useRef(null);T.useEffect(()=>{if(i==="render"&&p(!0),i==="viewport"){let z=U=>{U.forEach(D=>{p(D.isIntersecting)})},B=new IntersectionObserver(z,{threshold:.5});return S.current&&B.observe(S.current),()=>{B.disconnect()}}},[i]),T.useEffect(()=>{if(s){let z=setTimeout(()=>{p(!0)},100);return()=>{clearTimeout(z)}}},[s]);let C=()=>{o(!0)},E=()=>{o(!1),p(!1)};return r?i!=="intent"?[f,S,{}]:[f,S,{onFocus:oi(h,C),onBlur:oi(m,E),onMouseEnter:oi(d,C),onMouseLeave:oi(v,E),onTouchStart:oi(x,C)}]:[!1,S,{}]}function oi(i,n){return r=>{i&&i(r),r.defaultPrevented||n(r)}}function e2({page:i,...n}){let{router:r}=xm(),s=T.useMemo(()=>dm(r.routes,i,r.basename),[r.routes,i,r.basename]);return s?T.createElement(a2,{page:i,matches:s,...n}):null}function t2(i){let{manifest:n,routeModules:r}=Nm(),[s,o]=T.useState([]);return T.useEffect(()=>{let f=!1;return Q1(i,n,r).then(p=>{f||o(p)}),()=>{f=!0}},[i,n,r]),s}function a2({page:i,matches:n,...r}){let s=Ya(),{manifest:o,routeModules:f}=Nm(),{basename:p}=xm(),{loaderData:h,matches:m}=W1(),d=T.useMemo(()=>Jp(i,n,m,o,s,"data"),[i,n,m,o,s]),v=T.useMemo(()=>Jp(i,n,m,o,s,"assets"),[i,n,m,o,s]),x=T.useMemo(()=>{if(i===s.pathname+s.search+s.hash)return[];let E=new Set,z=!1;if(n.forEach(U=>{var G;let D=o.routes[U.route.id];!D||!D.hasLoader||(!d.some(J=>J.route.id===U.route.id)&&U.route.id in h&&((G=f[U.route.id])!=null&&G.shouldRevalidate)||D.hasClientLoader?z=!0:E.add(U.route.id))}),E.size===0)return[];let B=P1(i,p);return z&&E.size>0&&B.searchParams.set("_routes",n.filter(U=>E.has(U.route.id)).map(U=>U.route.id).join(",")),[B.pathname+B.search]},[p,h,s,o,d,n,i,f]),S=T.useMemo(()=>Z1(v,o),[v,o]),C=t2(v);return T.createElement(T.Fragment,null,x.map(E=>T.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...r})),S.map(E=>T.createElement("link",{key:E,rel:"modulepreload",href:E,...r})),C.map(({key:E,link:z})=>T.createElement("link",{key:E,...z})))}function n2(...i){return n=>{i.forEach(r=>{typeof r=="function"?r(n):r!=null&&(r.current=n)})}}var Em=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Em&&(window.__reactRouterVersion="7.6.2")}catch{}function l2({basename:i,children:n,window:r}){let s=T.useRef();s.current==null&&(s.current=Gx({window:r,v5Compat:!0}));let o=s.current,[f,p]=T.useState({action:o.action,location:o.location}),h=T.useCallback(m=>{T.startTransition(()=>p(m))},[p]);return T.useLayoutEffect(()=>o.listen(h),[o,h]),T.createElement(z1,{basename:i,children:n,location:f.location,navigationType:f.action,navigator:o})}var Rm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Tm=T.forwardRef(function({onClick:n,discover:r="render",prefetch:s="none",relative:o,reloadDocument:f,replace:p,state:h,target:m,to:d,preventScrollReset:v,viewTransition:x,...S},C){let{basename:E}=T.useContext(qt),z=typeof d=="string"&&Rm.test(d),B,U=!1;if(typeof d=="string"&&z&&(B=d,Em))try{let F=new URL(window.location.href),ne=d.startsWith("//")?new URL(F.protocol+d):new URL(d),pe=va(ne.pathname,E);ne.origin===F.origin&&pe!=null?d=pe+ne.search+ne.hash:U=!0}catch{Ut(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let D=g1(d,{relative:o}),[G,J,K]=I1(s,S),ue=u2(d,{replace:p,state:h,target:m,preventScrollReset:v,relative:o,viewTransition:x});function re(F){n&&n(F),F.defaultPrevented||ue(F)}let ee=T.createElement("a",{...S,...K,href:B||D,onClick:U||f?n:re,ref:n2(C,J),target:m,"data-discover":!z&&r==="render"?"true":void 0});return G&&!z?T.createElement(T.Fragment,null,ee,T.createElement(e2,{page:D})):ee});Tm.displayName="Link";var i2=T.forwardRef(function({"aria-current":n="page",caseSensitive:r=!1,className:s="",end:o=!1,style:f,to:p,viewTransition:h,children:m,...d},v){let x=Si(p,{relative:d.relative}),S=Ya(),C=T.useContext(as),{navigator:E,basename:z}=T.useContext(qt),B=C!=null&&h2(x)&&h===!0,U=E.encodeLocation?E.encodeLocation(x).pathname:x.pathname,D=S.pathname,G=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;r||(D=D.toLowerCase(),G=G?G.toLowerCase():null,U=U.toLowerCase()),G&&z&&(G=va(G,z)||G);const J=U!=="/"&&U.endsWith("/")?U.length-1:U.length;let K=D===U||!o&&D.startsWith(U)&&D.charAt(J)==="/",ue=G!=null&&(G===U||!o&&G.startsWith(U)&&G.charAt(U.length)==="/"),re={isActive:K,isPending:ue,isTransitioning:B},ee=K?n:void 0,F;typeof s=="function"?F=s(re):F=[s,K?"active":null,ue?"pending":null,B?"transitioning":null].filter(Boolean).join(" ");let ne=typeof f=="function"?f(re):f;return T.createElement(Tm,{...d,"aria-current":ee,className:F,ref:v,style:ne,to:p,viewTransition:h},typeof m=="function"?m(re):m)});i2.displayName="NavLink";var r2=T.forwardRef(({discover:i="render",fetcherKey:n,navigate:r,reloadDocument:s,replace:o,state:f,method:p=Yr,action:h,onSubmit:m,relative:d,preventScrollReset:v,viewTransition:x,...S},C)=>{let E=f2(),z=d2(h,{relative:d}),B=p.toLowerCase()==="get"?"get":"post",U=typeof h=="string"&&Rm.test(h),D=G=>{if(m&&m(G),G.defaultPrevented)return;G.preventDefault();let J=G.nativeEvent.submitter,K=(J==null?void 0:J.getAttribute("formmethod"))||p;E(J||G.currentTarget,{fetcherKey:n,method:K,navigate:r,replace:o,state:f,relative:d,preventScrollReset:v,viewTransition:x})};return T.createElement("form",{ref:C,method:B,action:z,onSubmit:s?m:D,...S,"data-discover":!U&&i==="render"?"true":void 0})});r2.displayName="Form";function s2(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function wm(i){let n=T.useContext(ll);return _e(n,s2(i)),n}function u2(i,{target:n,replace:r,state:s,preventScrollReset:o,relative:f,viewTransition:p}={}){let h=rl(),m=Ya(),d=Si(i,{relative:f});return T.useCallback(v=>{if(H1(v,n)){v.preventDefault();let x=r!==void 0?r:gi(m)===gi(d);h(i,{replace:x,state:s,preventScrollReset:o,relative:f,viewTransition:p})}},[m,h,d,r,s,n,i,o,f,p])}var o2=0,c2=()=>`__${String(++o2)}__`;function f2(){let{router:i}=wm("useSubmit"),{basename:n}=T.useContext(qt),r=j1();return T.useCallback(async(s,o={})=>{let{action:f,method:p,encType:h,formData:m,body:d}=q1(s,n);if(o.navigate===!1){let v=o.fetcherKey||c2();await i.fetch(v,r,o.action||f,{preventScrollReset:o.preventScrollReset,formData:m,body:d,formMethod:o.method||p,formEncType:o.encType||h,flushSync:o.flushSync})}else await i.navigate(o.action||f,{preventScrollReset:o.preventScrollReset,formData:m,body:d,formMethod:o.method||p,formEncType:o.encType||h,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[i,n,r])}function d2(i,{relative:n}={}){let{basename:r}=T.useContext(qt),s=T.useContext(Gt);_e(s,"useFormAction must be used inside a RouteContext");let[o]=s.matches.slice(-1),f={...Si(i||".",{relative:n})},p=Ya();if(i==null){f.search=p.search;let h=new URLSearchParams(f.search),m=h.getAll("index");if(m.some(v=>v==="")){h.delete("index"),m.filter(x=>x).forEach(x=>h.append("index",x));let v=h.toString();f.search=v?`?${v}`:""}}return(!i||i===".")&&o.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(f.pathname=f.pathname==="/"?r:ga([r,f.pathname])),gi(f)}function h2(i,n={}){let r=T.useContext(gm);_e(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=wm("useViewTransitionState"),o=Si(i,{relative:n.relative});if(!r.isTransitioning)return!1;let f=va(r.currentLocation.pathname,s)||r.currentLocation.pathname,p=va(r.nextLocation.pathname,s)||r.nextLocation.pathname;return Pr(o.pathname,p)!=null||Pr(o.pathname,f)!=null}[...F1];function p2(i){return i.varName?` for '${i.varName}'`:""}function m2(i,n={}){if(i==null||i===""&&!n.allowEmpty)throw new Error(`Missing string value${p2(n)}`);return typeof i=="string"?i:i.toString()}const g2=`${`//${document.location.host}`}/api/plugin/site-generator`;let Cm;const[zo]=document.getElementsByClassName("js-script-site-generator");zo&&zo instanceof HTMLScriptElement&&(Cm=m2(zo.dataset.googleRecaptchaSiteKey,{varName:"data-google-recaptcha-site-key"}));const Do=Cm;async function Ga(i){try{const n=await fetch(g2,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});return n.ok?n.json():{success:!1,userMessage:`Failed to execute command: ${n.statusText}`}}catch(n){return{success:!1,userMessage:`Communication error: ${n.message}`}}}const Fp=i=>{let n;const r=new Set,s=(d,v)=>{const x=typeof d=="function"?d(n):d;if(!Object.is(x,n)){const S=n;n=v??(typeof x!="object"||x===null)?x:Object.assign({},n,x),r.forEach(C=>C(n,S))}},o=()=>n,h={setState:s,getState:o,getInitialState:()=>m,subscribe:d=>(r.add(d),()=>r.delete(d))},m=n=i(s,o,h);return h},v2=i=>i?Fp(i):Fp,y2=i=>i;function b2(i,n=y2){const r=Bo.useSyncExternalStore(i.subscribe,()=>n(i.getState()),()=>n(i.getInitialState()));return Bo.useDebugValue(r),r}const Pp=i=>{const n=v2(i),r=s=>b2(n,s);return Object.assign(r,n),r},S2=i=>i?Pp(i):Pp,lc="site-generator-session-token";function Wp(i){try{sessionStorage.setItem(lc,i)}catch(n){console.error("Failed to save session token",n)}}function vi(){try{return sessionStorage.getItem(lc)??void 0}catch(i){console.error("Failed to get session token",i)}}function x2(){try{sessionStorage.removeItem(lc)}catch(i){console.error("Failed to remove session token",i)}}const N2=2e3,nl=new Map;function E2(i){if(nl.has(i))return;const n=window.setInterval(()=>{R2(i)},N2);nl.set(i,n)}function Vr(i){const n=nl.get(i);n&&(window.clearInterval(n),nl.delete(i))}function ic(){nl.forEach(i=>{window.clearInterval(i)}),nl.clear()}async function R2(i){const n=vi();if(!n){Vr(i);return}try{const r=await Ga({command:"loadStep",sessionToken:n,stepNumber:i});if(r.success&&r.result){const s=r.result;T2(s),s.status!=="pending"&&Vr(i)}else console.error("Error polling step:",r),Vr(i)}catch(r){console.error("Error polling step:",r),Vr(i)}}function T2(i){const{updateStep:n}=pn.getState();n(i)}function _o(i){ic(),i.steps.forEach(n=>{n.status==="pending"&&E2(n.stepNumber)})}const pn=S2((i,n)=>({workSession:void 0,isLoading:!1,error:void 0,activeStepNumber:void 0,setWorkSession:r=>{i({workSession:r}),r&&_o(r)},updateStep:r=>{const{workSession:s}=n();if(!s)return;const o=s.steps.map(p=>p.stepNumber===r.stepNumber?r:p),f={...s,steps:o};i({workSession:f}),r.status==="pending"&&_o(f)},appendNewStep:r=>{const{workSession:s}=n();if(!s)return;const o={...s,steps:[...s.steps,r]};i({workSession:o}),r.status==="pending"&&_o(o)},setIsLoading:r=>i({isLoading:r}),setError:r=>i({error:r}),setActiveStepNumber:r=>i({activeStepNumber:r}),resetSession:()=>{ic(),i({workSession:void 0,isLoading:!1,error:void 0,activeStepNumber:void 0})}})),rt=T.forwardRef((i,n)=>{const{label:r,severity:s="primary",loading:o,children:f,onClick:p,className:h="",disabled:m,...d}=i,[v,x]=T.useState(!1),S=v||o,C=["Button",s==="secondary"?"secondary":"",S?"loading":"",h].filter(Boolean).join(" "),E=async z=>{if(p)try{z.preventDefault(),x(!0),await p(z)}finally{x(!1)}};return b.jsxs("button",{ref:n,type:"button",className:C,onClick:E,disabled:m||S,...d,children:[!S&&f,!S&&r]})});rt.displayName="Button";function ls({size:i="medium"}){return b.jsx("div",{className:`Spinner Spinner-${i}`,"aria-label":"Loading"})}function Zr({activeStep:i}){const{t:n}=ot(),r=rl(),{workSession:s}=pn(),o=()=>{r("/")},f=p=>{r(`/step/${p}`)};return!s||!s.steps||s.steps.length===0?b.jsx("div",{className:"Sidebar",children:b.jsx(rt,{className:`Sidebar-button ${i===void 0?"active":""}`,onClick:o,children:n("startAgain")})}):b.jsxs("div",{className:"Sidebar",children:[b.jsx(rt,{className:`Sidebar-button ${i===void 0?"active":""}`,onClick:o,children:n("startAgain")}),b.jsx("div",{className:"Sidebar-steps",children:s.steps.map(p=>b.jsxs("div",{className:"Sidebar-step",children:[b.jsx(rt,{className:`Sidebar-button ${i===p.stepNumber?"active":""} ${p.status==="pending"?"has-spinner":""}`,onClick:()=>f(p.stepNumber),children:n("stepTitle",{stepNumber:p.stepNumber,kind:n(p.kind)})}),p.status==="pending"&&b.jsx("div",{className:"Sidebar-spinner",children:b.jsx(ls,{size:"small"})})]},p.stepNumber))})]})}function jm({initialValue:i="",placeholder:n,submitLabel:r,onSubmit:s,isLoading:o=!1,error:f}){const{t:p}=ot(),[h,m]=T.useState(i),d=x=>{m(x.target.value)},v=async()=>{h.trim()&&await s(h.trim())};return b.jsxs("div",{className:"PromptForm",children:[f&&b.jsx("div",{className:"Alert error mb-3",children:b.jsx("p",{children:f})}),b.jsx("textarea",{className:"PromptForm-textarea",placeholder:n||p("createPromptPlaceholder"),value:h,onChange:d,rows:6,disabled:o}),b.jsx(rt,{onClick:v,loading:o,disabled:!h.trim()||o,className:"PromptForm-button mt-3",children:r})]})}function wt({header:i,footer:n,children:r,className:s=""}){const o=["Card",s].filter(Boolean).join(" ");return b.jsxs("div",{className:o,children:[i&&b.jsx("div",{className:"Card-header",children:i}),b.jsx("div",{className:"Card-body",children:r}),n&&b.jsx("div",{className:"Card-footer",children:n})]})}function w2(){const{t:i}=ot(),n=rl(),[r,s]=T.useState(!1),[o,f]=T.useState(void 0),{workSession:p,appendNewStep:h}=pn(),m=async d=>{if(!p)return;s(!0),f(void 0);const v=vi();if(!v){f(i("sessionExpired")),s(!1);return}try{const x=await Ga({command:"createSiteSchema",sessionToken:v,prompt:d});if(x.success&&x.result){const S=x.result;h(S),n(`/step/${S.stepNumber}`)}else f(i("promptSubmissionFailed"))}catch(x){console.error("Error submitting prompt:",x),f(i("errorOccurred"))}finally{s(!1)}};return b.jsxs("div",{className:"RouteLayout",children:[b.jsx("div",{className:"RouteLayout-main",children:b.jsxs(wt,{className:"p-4",children:[b.jsx("h1",{className:"mb-4",children:i("welcomeTitle")}),b.jsx("div",{className:"Text mb-4",dangerouslySetInnerHTML:{__html:i("startInstruction")}}),p&&p.steps.length>0&&b.jsx("p",{className:"InfoText",children:i("newTabRestartMessage")}),b.jsx(jm,{submitLabel:i("createSchema"),onSubmit:m,isLoading:r,error:o})]})}),b.jsx("div",{className:"RouteLayout-sidebar",children:b.jsx(Zr,{activeStep:void 0})})]})}function C2(i){return"siteId"in i}function rc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var mn=rc();function Am(i){mn=i}var hi={exec:()=>null};function xe(i,n=""){let r=typeof i=="string"?i:i.source;const s={replace:(o,f)=>{let p=typeof f=="string"?f:f.source;return p=p.replace(ut.caret,"$1"),r=r.replace(o,p),s},getRegex:()=>new RegExp(r,n)};return s}var ut={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:i=>new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}#`),htmlBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}<(?:[a-z].*>|!--)`,"i")},j2=/^(?:[ \t]*(?:\n|$))+/,A2=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,O2=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,xi=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,k2=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,sc=/(?:[*+-]|\d{1,9}[.)])/,Om=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,km=xe(Om).replace(/bull/g,sc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),L2=xe(Om).replace(/bull/g,sc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),uc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,z2=/^[^\n]+/,oc=/(?!\s*\])(?:\\.|[^\[\]\\])+/,D2=xe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",oc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),_2=xe(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,sc).getRegex(),is="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",cc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,M2=xe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",cc).replace("tag",is).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Lm=xe(uc).replace("hr",xi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",is).getRegex(),U2=xe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Lm).getRegex(),fc={blockquote:U2,code:A2,def:D2,fences:O2,heading:k2,hr:xi,html:M2,lheading:km,list:_2,newline:j2,paragraph:Lm,table:hi,text:z2},Ip=xe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",xi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",is).getRegex(),B2={...fc,lheading:L2,table:Ip,paragraph:xe(uc).replace("hr",xi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ip).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",is).getRegex()},H2={...fc,html:xe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",cc).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:hi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:xe(uc).replace("hr",xi).replace("heading",` *#{1,6} *[^
62
+ ]`).replace("lheading",km).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},V2=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,$2=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,zm=/^( {2,}|\\)\n(?!\s*$)/,q2=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,rs=/[\p{P}\p{S}]/u,dc=/[\s\p{P}\p{S}]/u,Dm=/[^\s\p{P}\p{S}]/u,G2=xe(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,dc).getRegex(),_m=/(?!~)[\p{P}\p{S}]/u,Y2=/(?!~)[\s\p{P}\p{S}]/u,Q2=/(?:[^\s\p{P}\p{S}]|~)/u,Z2=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Mm=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,K2=xe(Mm,"u").replace(/punct/g,rs).getRegex(),X2=xe(Mm,"u").replace(/punct/g,_m).getRegex(),Um="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",J2=xe(Um,"gu").replace(/notPunctSpace/g,Dm).replace(/punctSpace/g,dc).replace(/punct/g,rs).getRegex(),F2=xe(Um,"gu").replace(/notPunctSpace/g,Q2).replace(/punctSpace/g,Y2).replace(/punct/g,_m).getRegex(),P2=xe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Dm).replace(/punctSpace/g,dc).replace(/punct/g,rs).getRegex(),W2=xe(/\\(punct)/,"gu").replace(/punct/g,rs).getRegex(),I2=xe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),eN=xe(cc).replace("(?:-->|$)","-->").getRegex(),tN=xe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",eN).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Wr=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,aN=xe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Wr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Bm=xe(/^!?\[(label)\]\[(ref)\]/).replace("label",Wr).replace("ref",oc).getRegex(),Hm=xe(/^!?\[(ref)\](?:\[\])?/).replace("ref",oc).getRegex(),nN=xe("reflink|nolink(?!\\()","g").replace("reflink",Bm).replace("nolink",Hm).getRegex(),hc={_backpedal:hi,anyPunctuation:W2,autolink:I2,blockSkip:Z2,br:zm,code:$2,del:hi,emStrongLDelim:K2,emStrongRDelimAst:J2,emStrongRDelimUnd:P2,escape:V2,link:aN,nolink:Hm,punctuation:G2,reflink:Bm,reflinkSearch:nN,tag:tN,text:q2,url:hi},lN={...hc,link:xe(/^!?\[(label)\]\((.*?)\)/).replace("label",Wr).getRegex(),reflink:xe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Wr).getRegex()},Yo={...hc,emStrongRDelimAst:F2,emStrongLDelim:X2,url:xe(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},iN={...Yo,br:xe(zm).replace("{2,}","*").getRegex(),text:xe(Yo.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},$r={normal:fc,gfm:B2,pedantic:H2},ci={normal:hc,gfm:Yo,breaks:iN,pedantic:lN},rN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},em=i=>rN[i];function Pt(i,n){if(n){if(ut.escapeTest.test(i))return i.replace(ut.escapeReplace,em)}else if(ut.escapeTestNoEncode.test(i))return i.replace(ut.escapeReplaceNoEncode,em);return i}function tm(i){try{i=encodeURI(i).replace(ut.percentDecode,"%")}catch{return null}return i}function am(i,n){var f;const r=i.replace(ut.findPipe,(p,h,m)=>{let d=!1,v=h;for(;--v>=0&&m[v]==="\\";)d=!d;return d?"|":" |"}),s=r.split(ut.splitPipe);let o=0;if(s[0].trim()||s.shift(),s.length>0&&!((f=s.at(-1))!=null&&f.trim())&&s.pop(),n)if(s.length>n)s.splice(n);else for(;s.length<n;)s.push("");for(;o<s.length;o++)s[o]=s[o].trim().replace(ut.slashPipe,"|");return s}function fi(i,n,r){const s=i.length;if(s===0)return"";let o=0;for(;o<s&&i.charAt(s-o-1)===n;)o++;return i.slice(0,s-o)}function sN(i,n){if(i.indexOf(n[1])===-1)return-1;let r=0;for(let s=0;s<i.length;s++)if(i[s]==="\\")s++;else if(i[s]===n[0])r++;else if(i[s]===n[1]&&(r--,r<0))return s;return r>0?-2:-1}function nm(i,n,r,s,o){const f=n.href,p=n.title||null,h=i[1].replace(o.other.outputLinkReplace,"$1");s.state.inLink=!0;const m={type:i[0].charAt(0)==="!"?"image":"link",raw:r,href:f,title:p,text:h,tokens:s.inlineTokens(h)};return s.state.inLink=!1,m}function uN(i,n,r){const s=i.match(r.other.indentCodeCompensation);if(s===null)return n;const o=s[1];return n.split(`
63
+ `).map(f=>{const p=f.match(r.other.beginningSpace);if(p===null)return f;const[h]=p;return h.length>=o.length?f.slice(o.length):f}).join(`
64
+ `)}var Ir=class{constructor(i){Oe(this,"options");Oe(this,"rules");Oe(this,"lexer");this.options=i||mn}space(i){const n=this.rules.block.newline.exec(i);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(i){const n=this.rules.block.code.exec(i);if(n){const r=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:fi(r,`
65
+ `)}}}fences(i){const n=this.rules.block.fences.exec(i);if(n){const r=n[0],s=uN(r,n[3]||"",this.rules);return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:s}}}heading(i){const n=this.rules.block.heading.exec(i);if(n){let r=n[2].trim();if(this.rules.other.endingHash.test(r)){const s=fi(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(i){const n=this.rules.block.hr.exec(i);if(n)return{type:"hr",raw:fi(n[0],`
66
+ `)}}blockquote(i){const n=this.rules.block.blockquote.exec(i);if(n){let r=fi(n[0],`
65
67
  `).split(`
66
- `),r="",c="";const f=[];for(;s.length>0;){let p=!1;const h=[];let g;for(g=0;g<s.length;g++)if(this.rules.other.blockquoteStart.test(s[g]))h.push(s[g]),p=!0;else if(!p)h.push(s[g]);else break;s=s.slice(g);const d=h.join(`
67
- `),y=d.replace(this.rules.other.blockquoteSetextReplace,`
68
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
69
- ${d}`:d,c=c?`${c}
70
- ${y}`:y;const S=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(y,f,!0),this.lexer.state.top=S,s.length===0)break;const b=f.at(-1);if((b==null?void 0:b.type)==="code")break;if((b==null?void 0:b.type)==="blockquote"){const _=b,T=_.raw+`
71
- `+s.join(`
72
- `),M=this.blockquote(T);f[f.length-1]=M,r=r.substring(0,r.length-_.raw.length)+M.raw,c=c.substring(0,c.length-_.text.length)+M.text;break}else if((b==null?void 0:b.type)==="list"){const _=b,T=_.raw+`
73
- `+s.join(`
74
- `),M=this.list(T);f[f.length-1]=M,r=r.substring(0,r.length-b.raw.length)+M.raw,c=c.substring(0,c.length-_.raw.length)+M.raw,s=T.substring(f.at(-1).raw.length).split(`
75
- `);continue}}return{type:"blockquote",raw:r,tokens:f,text:c}}}list(i){let l=this.rules.block.list.exec(i);if(l){let s=l[1].trim();const r=s.length>1,c={type:"list",raw:"",ordered:r,start:r?+s.slice(0,-1):"",loose:!1,items:[]};s=r?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=r?s:"[*+-]");const f=this.rules.other.listItemRegex(s);let p=!1;for(;i;){let g=!1,d="",y="";if(!(l=f.exec(i))||this.rules.block.hr.test(i))break;d=l[0],i=i.substring(d.length);let S=l[2].split(`
76
- `,1)[0].replace(this.rules.other.listReplaceTabs,B=>" ".repeat(3*B.length)),b=i.split(`
77
- `,1)[0],_=!S.trim(),T=0;if(this.options.pedantic?(T=2,y=S.trimStart()):_?T=l[1].length+1:(T=l[2].search(this.rules.other.nonSpaceChar),T=T>4?1:T,y=S.slice(T),T+=l[1].length),_&&this.rules.other.blankLine.test(b)&&(d+=b+`
78
- `,i=i.substring(b.length+1),g=!0),!g){const B=this.rules.other.nextBulletRegex(T),q=this.rules.other.hrRegex(T),X=this.rules.other.fencesBeginRegex(T),F=this.rules.other.headingBeginRegex(T),Z=this.rules.other.htmlBeginRegex(T);for(;i;){const de=i.split(`
79
- `,1)[0];let le;if(b=de,this.options.pedantic?(b=b.replace(this.rules.other.listReplaceNesting," "),le=b):le=b.replace(this.rules.other.tabCharGlobal," "),X.test(b)||F.test(b)||Z.test(b)||B.test(b)||q.test(b))break;if(le.search(this.rules.other.nonSpaceChar)>=T||!b.trim())y+=`
80
- `+le.slice(T);else{if(_||S.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||X.test(S)||F.test(S)||q.test(S))break;y+=`
81
- `+b}!_&&!b.trim()&&(_=!0),d+=de+`
82
- `,i=i.substring(de.length+1),S=le.slice(T)}}c.loose||(p?c.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(p=!0));let M=null,G;this.options.gfm&&(M=this.rules.other.listIsTask.exec(y),M&&(G=M[0]!=="[ ] ",y=y.replace(this.rules.other.listReplaceTask,""))),c.items.push({type:"list_item",raw:d,task:!!M,checked:G,loose:!1,text:y,tokens:[]}),c.raw+=d}const h=c.items.at(-1);if(h)h.raw=h.raw.trimEnd(),h.text=h.text.trimEnd();else return;c.raw=c.raw.trimEnd();for(let g=0;g<c.items.length;g++)if(this.lexer.state.top=!1,c.items[g].tokens=this.lexer.blockTokens(c.items[g].text,[]),!c.loose){const d=c.items[g].tokens.filter(S=>S.type==="space"),y=d.length>0&&d.some(S=>this.rules.other.anyLine.test(S.raw));c.loose=y}if(c.loose)for(let g=0;g<c.items.length;g++)c.items[g].loose=!0;return c}}html(i){const l=this.rules.block.html.exec(i);if(l)return{type:"html",block:!0,raw:l[0],pre:l[1]==="pre"||l[1]==="script"||l[1]==="style",text:l[0]}}def(i){const l=this.rules.block.def.exec(i);if(l){const s=l[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=l[2]?l[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",c=l[3]?l[3].substring(1,l[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):l[3];return{type:"def",tag:s,raw:l[0],href:r,title:c}}}table(i){var p;const l=this.rules.block.table.exec(i);if(!l||!this.rules.other.tableDelimiter.test(l[2]))return;const s=_p(l[1]),r=l[2].replace(this.rules.other.tableAlignChars,"").split("|"),c=(p=l[3])!=null&&p.trim()?l[3].replace(this.rules.other.tableRowBlankLine,"").split(`
83
- `):[],f={type:"table",raw:l[0],header:[],align:[],rows:[]};if(s.length===r.length){for(const h of r)this.rules.other.tableAlignRight.test(h)?f.align.push("right"):this.rules.other.tableAlignCenter.test(h)?f.align.push("center"):this.rules.other.tableAlignLeft.test(h)?f.align.push("left"):f.align.push(null);for(let h=0;h<s.length;h++)f.header.push({text:s[h],tokens:this.lexer.inline(s[h]),header:!0,align:f.align[h]});for(const h of c)f.rows.push(_p(h,f.header.length).map((g,d)=>({text:g,tokens:this.lexer.inline(g),header:!1,align:f.align[d]})));return f}}lheading(i){const l=this.rules.block.lheading.exec(i);if(l)return{type:"heading",raw:l[0],depth:l[2].charAt(0)==="="?1:2,text:l[1],tokens:this.lexer.inline(l[1])}}paragraph(i){const l=this.rules.block.paragraph.exec(i);if(l){const s=l[1].charAt(l[1].length-1)===`
84
- `?l[1].slice(0,-1):l[1];return{type:"paragraph",raw:l[0],text:s,tokens:this.lexer.inline(s)}}}text(i){const l=this.rules.block.text.exec(i);if(l)return{type:"text",raw:l[0],text:l[0],tokens:this.lexer.inline(l[0])}}escape(i){const l=this.rules.inline.escape.exec(i);if(l)return{type:"escape",raw:l[0],text:l[1]}}tag(i){const l=this.rules.inline.tag.exec(i);if(l)return!this.lexer.state.inLink&&this.rules.other.startATag.test(l[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(l[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(l[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(l[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:l[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:l[0]}}link(i){const l=this.rules.inline.link.exec(i);if(l){const s=l[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(s)){if(!this.rules.other.endAngleBracket.test(s))return;const f=ti(s.slice(0,-1),"\\");if((s.length-f.length)%2===0)return}else{const f=Rx(l[2],"()");if(f===-2)return;if(f>-1){const h=(l[0].indexOf("!")===0?5:4)+l[1].length+f;l[2]=l[2].substring(0,f),l[0]=l[0].substring(0,h).trim(),l[3]=""}}let r=l[2],c="";if(this.options.pedantic){const f=this.rules.other.pedanticHrefTitle.exec(r);f&&(r=f[1],c=f[3])}else c=l[3]?l[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(s)?r=r.slice(1):r=r.slice(1,-1)),Dp(l,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:c&&c.replace(this.rules.inline.anyPunctuation,"$1")},l[0],this.lexer,this.rules)}}reflink(i,l){let s;if((s=this.rules.inline.reflink.exec(i))||(s=this.rules.inline.nolink.exec(i))){const r=(s[2]||s[1]).replace(this.rules.other.multipleSpaceGlobal," "),c=l[r.toLowerCase()];if(!c){const f=s[0].charAt(0);return{type:"text",raw:f,text:f}}return Dp(s,c,s[0],this.lexer,this.rules)}}emStrong(i,l,s=""){let r=this.rules.inline.emStrongLDelim.exec(i);if(!r||r[3]&&s.match(this.rules.other.unicodeAlphaNumeric))return;if(!(r[1]||r[2]||"")||!s||this.rules.inline.punctuation.exec(s)){const f=[...r[0]].length-1;let p,h,g=f,d=0;const y=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(y.lastIndex=0,l=l.slice(-1*i.length+f);(r=y.exec(l))!=null;){if(p=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!p)continue;if(h=[...p].length,r[3]||r[4]){g+=h;continue}else if((r[5]||r[6])&&f%3&&!((f+h)%3)){d+=h;continue}if(g-=h,g>0)continue;h=Math.min(h,h+g+d);const S=[...r[0]][0].length,b=i.slice(0,f+r.index+S+h);if(Math.min(f,h)%2){const T=b.slice(1,-1);return{type:"em",raw:b,text:T,tokens:this.lexer.inlineTokens(T)}}const _=b.slice(2,-2);return{type:"strong",raw:b,text:_,tokens:this.lexer.inlineTokens(_)}}}}codespan(i){const l=this.rules.inline.code.exec(i);if(l){let s=l[2].replace(this.rules.other.newLineCharGlobal," ");const r=this.rules.other.nonSpaceChar.test(s),c=this.rules.other.startingSpaceChar.test(s)&&this.rules.other.endingSpaceChar.test(s);return r&&c&&(s=s.substring(1,s.length-1)),{type:"codespan",raw:l[0],text:s}}}br(i){const l=this.rules.inline.br.exec(i);if(l)return{type:"br",raw:l[0]}}del(i){const l=this.rules.inline.del.exec(i);if(l)return{type:"del",raw:l[0],text:l[2],tokens:this.lexer.inlineTokens(l[2])}}autolink(i){const l=this.rules.inline.autolink.exec(i);if(l){let s,r;return l[2]==="@"?(s=l[1],r="mailto:"+s):(s=l[1],r=s),{type:"link",raw:l[0],text:s,href:r,tokens:[{type:"text",raw:s,text:s}]}}}url(i){var s;let l;if(l=this.rules.inline.url.exec(i)){let r,c;if(l[2]==="@")r=l[0],c="mailto:"+r;else{let f;do f=l[0],l[0]=((s=this.rules.inline._backpedal.exec(l[0]))==null?void 0:s[0])??"";while(f!==l[0]);r=l[0],l[1]==="www."?c="http://"+l[0]:c=l[0]}return{type:"link",raw:l[0],text:r,href:c,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(i){const l=this.rules.inline.text.exec(i);if(l){const s=this.lexer.state.inRawBlock;return{type:"text",raw:l[0],text:l[0],escaped:s}}}},rn=class Do{constructor(l){Ae(this,"tokens");Ae(this,"options");Ae(this,"state");Ae(this,"tokenizer");Ae(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=l||sa,this.options.tokenizer=this.options.tokenizer||new Gu,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const s={other:it,block:zu.normal,inline:ei.normal};this.options.pedantic?(s.block=zu.pedantic,s.inline=ei.pedantic):this.options.gfm&&(s.block=zu.gfm,this.options.breaks?s.inline=ei.breaks:s.inline=ei.gfm),this.tokenizer.rules=s}static get rules(){return{block:zu,inline:ei}}static lex(l,s){return new Do(s).lex(l)}static lexInline(l,s){return new Do(s).inlineTokens(l)}lex(l){l=l.replace(it.carriageReturn,`
85
- `),this.blockTokens(l,this.tokens);for(let s=0;s<this.inlineQueue.length;s++){const r=this.inlineQueue[s];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(l,s=[],r=!1){var c,f,p;for(this.options.pedantic&&(l=l.replace(it.tabCharGlobal," ").replace(it.spaceLine,""));l;){let h;if((f=(c=this.options.extensions)==null?void 0:c.block)!=null&&f.some(d=>(h=d.call({lexer:this},l,s))?(l=l.substring(h.raw.length),s.push(h),!0):!1))continue;if(h=this.tokenizer.space(l)){l=l.substring(h.raw.length);const d=s.at(-1);h.raw.length===1&&d!==void 0?d.raw+=`
86
- `:s.push(h);continue}if(h=this.tokenizer.code(l)){l=l.substring(h.raw.length);const d=s.at(-1);(d==null?void 0:d.type)==="paragraph"||(d==null?void 0:d.type)==="text"?(d.raw+=`
68
+ `),s="",o="";const f=[];for(;r.length>0;){let p=!1;const h=[];let m;for(m=0;m<r.length;m++)if(this.rules.other.blockquoteStart.test(r[m]))h.push(r[m]),p=!0;else if(!p)h.push(r[m]);else break;r=r.slice(m);const d=h.join(`
69
+ `),v=d.replace(this.rules.other.blockquoteSetextReplace,`
70
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
71
+ ${d}`:d,o=o?`${o}
72
+ ${v}`:v;const x=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(v,f,!0),this.lexer.state.top=x,r.length===0)break;const S=f.at(-1);if((S==null?void 0:S.type)==="code")break;if((S==null?void 0:S.type)==="blockquote"){const C=S,E=C.raw+`
73
+ `+r.join(`
74
+ `),z=this.blockquote(E);f[f.length-1]=z,s=s.substring(0,s.length-C.raw.length)+z.raw,o=o.substring(0,o.length-C.text.length)+z.text;break}else if((S==null?void 0:S.type)==="list"){const C=S,E=C.raw+`
75
+ `+r.join(`
76
+ `),z=this.list(E);f[f.length-1]=z,s=s.substring(0,s.length-S.raw.length)+z.raw,o=o.substring(0,o.length-C.raw.length)+z.raw,r=E.substring(f.at(-1).raw.length).split(`
77
+ `);continue}}return{type:"blockquote",raw:s,tokens:f,text:o}}}list(i){let n=this.rules.block.list.exec(i);if(n){let r=n[1].trim();const s=r.length>1,o={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");const f=this.rules.other.listItemRegex(r);let p=!1;for(;i;){let m=!1,d="",v="";if(!(n=f.exec(i))||this.rules.block.hr.test(i))break;d=n[0],i=i.substring(d.length);let x=n[2].split(`
78
+ `,1)[0].replace(this.rules.other.listReplaceTabs,U=>" ".repeat(3*U.length)),S=i.split(`
79
+ `,1)[0],C=!x.trim(),E=0;if(this.options.pedantic?(E=2,v=x.trimStart()):C?E=n[1].length+1:(E=n[2].search(this.rules.other.nonSpaceChar),E=E>4?1:E,v=x.slice(E),E+=n[1].length),C&&this.rules.other.blankLine.test(S)&&(d+=S+`
80
+ `,i=i.substring(S.length+1),m=!0),!m){const U=this.rules.other.nextBulletRegex(E),D=this.rules.other.hrRegex(E),G=this.rules.other.fencesBeginRegex(E),J=this.rules.other.headingBeginRegex(E),K=this.rules.other.htmlBeginRegex(E);for(;i;){const ue=i.split(`
81
+ `,1)[0];let re;if(S=ue,this.options.pedantic?(S=S.replace(this.rules.other.listReplaceNesting," "),re=S):re=S.replace(this.rules.other.tabCharGlobal," "),G.test(S)||J.test(S)||K.test(S)||U.test(S)||D.test(S))break;if(re.search(this.rules.other.nonSpaceChar)>=E||!S.trim())v+=`
82
+ `+re.slice(E);else{if(C||x.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||G.test(x)||J.test(x)||D.test(x))break;v+=`
83
+ `+S}!C&&!S.trim()&&(C=!0),d+=ue+`
84
+ `,i=i.substring(ue.length+1),x=re.slice(E)}}o.loose||(p?o.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(p=!0));let z=null,B;this.options.gfm&&(z=this.rules.other.listIsTask.exec(v),z&&(B=z[0]!=="[ ] ",v=v.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:d,task:!!z,checked:B,loose:!1,text:v,tokens:[]}),o.raw+=d}const h=o.items.at(-1);if(h)h.raw=h.raw.trimEnd(),h.text=h.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let m=0;m<o.items.length;m++)if(this.lexer.state.top=!1,o.items[m].tokens=this.lexer.blockTokens(o.items[m].text,[]),!o.loose){const d=o.items[m].tokens.filter(x=>x.type==="space"),v=d.length>0&&d.some(x=>this.rules.other.anyLine.test(x.raw));o.loose=v}if(o.loose)for(let m=0;m<o.items.length;m++)o.items[m].loose=!0;return o}}html(i){const n=this.rules.block.html.exec(i);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(i){const n=this.rules.block.def.exec(i);if(n){const r=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:s,title:o}}}table(i){var p;const n=this.rules.block.table.exec(i);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;const r=am(n[1]),s=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(p=n[3])!=null&&p.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
85
+ `):[],f={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===s.length){for(const h of s)this.rules.other.tableAlignRight.test(h)?f.align.push("right"):this.rules.other.tableAlignCenter.test(h)?f.align.push("center"):this.rules.other.tableAlignLeft.test(h)?f.align.push("left"):f.align.push(null);for(let h=0;h<r.length;h++)f.header.push({text:r[h],tokens:this.lexer.inline(r[h]),header:!0,align:f.align[h]});for(const h of o)f.rows.push(am(h,f.header.length).map((m,d)=>({text:m,tokens:this.lexer.inline(m),header:!1,align:f.align[d]})));return f}}lheading(i){const n=this.rules.block.lheading.exec(i);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(i){const n=this.rules.block.paragraph.exec(i);if(n){const r=n[1].charAt(n[1].length-1)===`
86
+ `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(i){const n=this.rules.block.text.exec(i);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(i){const n=this.rules.inline.escape.exec(i);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(i){const n=this.rules.inline.tag.exec(i);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(i){const n=this.rules.inline.link.exec(i);if(n){const r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const f=fi(r.slice(0,-1),"\\");if((r.length-f.length)%2===0)return}else{const f=sN(n[2],"()");if(f===-2)return;if(f>-1){const h=(n[0].indexOf("!")===0?5:4)+n[1].length+f;n[2]=n[2].substring(0,f),n[0]=n[0].substring(0,h).trim(),n[3]=""}}let s=n[2],o="";if(this.options.pedantic){const f=this.rules.other.pedanticHrefTitle.exec(s);f&&(s=f[1],o=f[3])}else o=n[3]?n[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?s=s.slice(1):s=s.slice(1,-1)),nm(n,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(i,n){let r;if((r=this.rules.inline.reflink.exec(i))||(r=this.rules.inline.nolink.exec(i))){const s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=n[s.toLowerCase()];if(!o){const f=r[0].charAt(0);return{type:"text",raw:f,text:f}}return nm(r,o,r[0],this.lexer,this.rules)}}emStrong(i,n,r=""){let s=this.rules.inline.emStrongLDelim.exec(i);if(!s||s[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(s[1]||s[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const f=[...s[0]].length-1;let p,h,m=f,d=0;const v=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(v.lastIndex=0,n=n.slice(-1*i.length+f);(s=v.exec(n))!=null;){if(p=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!p)continue;if(h=[...p].length,s[3]||s[4]){m+=h;continue}else if((s[5]||s[6])&&f%3&&!((f+h)%3)){d+=h;continue}if(m-=h,m>0)continue;h=Math.min(h,h+m+d);const x=[...s[0]][0].length,S=i.slice(0,f+s.index+x+h);if(Math.min(f,h)%2){const E=S.slice(1,-1);return{type:"em",raw:S,text:E,tokens:this.lexer.inlineTokens(E)}}const C=S.slice(2,-2);return{type:"strong",raw:S,text:C,tokens:this.lexer.inlineTokens(C)}}}}codespan(i){const n=this.rules.inline.code.exec(i);if(n){let r=n[2].replace(this.rules.other.newLineCharGlobal," ");const s=this.rules.other.nonSpaceChar.test(r),o=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return s&&o&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:n[0],text:r}}}br(i){const n=this.rules.inline.br.exec(i);if(n)return{type:"br",raw:n[0]}}del(i){const n=this.rules.inline.del.exec(i);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(i){const n=this.rules.inline.autolink.exec(i);if(n){let r,s;return n[2]==="@"?(r=n[1],s="mailto:"+r):(r=n[1],s=r),{type:"link",raw:n[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(i){var r;let n;if(n=this.rules.inline.url.exec(i)){let s,o;if(n[2]==="@")s=n[0],o="mailto:"+s;else{let f;do f=n[0],n[0]=((r=this.rules.inline._backpedal.exec(n[0]))==null?void 0:r[0])??"";while(f!==n[0]);s=n[0],n[1]==="www."?o="http://"+n[0]:o=n[0]}return{type:"link",raw:n[0],text:s,href:o,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(i){const n=this.rules.inline.text.exec(i);if(n){const r=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:r}}}},pa=class Qo{constructor(n){Oe(this,"tokens");Oe(this,"options");Oe(this,"state");Oe(this,"tokenizer");Oe(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=n||mn,this.options.tokenizer=this.options.tokenizer||new Ir,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const r={other:ut,block:$r.normal,inline:ci.normal};this.options.pedantic?(r.block=$r.pedantic,r.inline=ci.pedantic):this.options.gfm&&(r.block=$r.gfm,this.options.breaks?r.inline=ci.breaks:r.inline=ci.gfm),this.tokenizer.rules=r}static get rules(){return{block:$r,inline:ci}}static lex(n,r){return new Qo(r).lex(n)}static lexInline(n,r){return new Qo(r).inlineTokens(n)}lex(n){n=n.replace(ut.carriageReturn,`
87
+ `),this.blockTokens(n,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){const s=this.inlineQueue[r];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(n,r=[],s=!1){var o,f,p;for(this.options.pedantic&&(n=n.replace(ut.tabCharGlobal," ").replace(ut.spaceLine,""));n;){let h;if((f=(o=this.options.extensions)==null?void 0:o.block)!=null&&f.some(d=>(h=d.call({lexer:this},n,r))?(n=n.substring(h.raw.length),r.push(h),!0):!1))continue;if(h=this.tokenizer.space(n)){n=n.substring(h.raw.length);const d=r.at(-1);h.raw.length===1&&d!==void 0?d.raw+=`
88
+ `:r.push(h);continue}if(h=this.tokenizer.code(n)){n=n.substring(h.raw.length);const d=r.at(-1);(d==null?void 0:d.type)==="paragraph"||(d==null?void 0:d.type)==="text"?(d.raw+=`
87
89
  `+h.raw,d.text+=`
88
- `+h.text,this.inlineQueue.at(-1).src=d.text):s.push(h);continue}if(h=this.tokenizer.fences(l)){l=l.substring(h.raw.length),s.push(h);continue}if(h=this.tokenizer.heading(l)){l=l.substring(h.raw.length),s.push(h);continue}if(h=this.tokenizer.hr(l)){l=l.substring(h.raw.length),s.push(h);continue}if(h=this.tokenizer.blockquote(l)){l=l.substring(h.raw.length),s.push(h);continue}if(h=this.tokenizer.list(l)){l=l.substring(h.raw.length),s.push(h);continue}if(h=this.tokenizer.html(l)){l=l.substring(h.raw.length),s.push(h);continue}if(h=this.tokenizer.def(l)){l=l.substring(h.raw.length);const d=s.at(-1);(d==null?void 0:d.type)==="paragraph"||(d==null?void 0:d.type)==="text"?(d.raw+=`
90
+ `+h.text,this.inlineQueue.at(-1).src=d.text):r.push(h);continue}if(h=this.tokenizer.fences(n)){n=n.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.heading(n)){n=n.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.hr(n)){n=n.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.blockquote(n)){n=n.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.list(n)){n=n.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.html(n)){n=n.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.def(n)){n=n.substring(h.raw.length);const d=r.at(-1);(d==null?void 0:d.type)==="paragraph"||(d==null?void 0:d.type)==="text"?(d.raw+=`
89
91
  `+h.raw,d.text+=`
90
- `+h.raw,this.inlineQueue.at(-1).src=d.text):this.tokens.links[h.tag]||(this.tokens.links[h.tag]={href:h.href,title:h.title});continue}if(h=this.tokenizer.table(l)){l=l.substring(h.raw.length),s.push(h);continue}if(h=this.tokenizer.lheading(l)){l=l.substring(h.raw.length),s.push(h);continue}let g=l;if((p=this.options.extensions)!=null&&p.startBlock){let d=1/0;const y=l.slice(1);let S;this.options.extensions.startBlock.forEach(b=>{S=b.call({lexer:this},y),typeof S=="number"&&S>=0&&(d=Math.min(d,S))}),d<1/0&&d>=0&&(g=l.substring(0,d+1))}if(this.state.top&&(h=this.tokenizer.paragraph(g))){const d=s.at(-1);r&&(d==null?void 0:d.type)==="paragraph"?(d.raw+=`
92
+ `+h.raw,this.inlineQueue.at(-1).src=d.text):this.tokens.links[h.tag]||(this.tokens.links[h.tag]={href:h.href,title:h.title});continue}if(h=this.tokenizer.table(n)){n=n.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.lheading(n)){n=n.substring(h.raw.length),r.push(h);continue}let m=n;if((p=this.options.extensions)!=null&&p.startBlock){let d=1/0;const v=n.slice(1);let x;this.options.extensions.startBlock.forEach(S=>{x=S.call({lexer:this},v),typeof x=="number"&&x>=0&&(d=Math.min(d,x))}),d<1/0&&d>=0&&(m=n.substring(0,d+1))}if(this.state.top&&(h=this.tokenizer.paragraph(m))){const d=r.at(-1);s&&(d==null?void 0:d.type)==="paragraph"?(d.raw+=`
91
93
  `+h.raw,d.text+=`
92
- `+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):s.push(h),r=g.length!==l.length,l=l.substring(h.raw.length);continue}if(h=this.tokenizer.text(l)){l=l.substring(h.raw.length);const d=s.at(-1);(d==null?void 0:d.type)==="text"?(d.raw+=`
94
+ `+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):r.push(h),s=m.length!==n.length,n=n.substring(h.raw.length);continue}if(h=this.tokenizer.text(n)){n=n.substring(h.raw.length);const d=r.at(-1);(d==null?void 0:d.type)==="text"?(d.raw+=`
93
95
  `+h.raw,d.text+=`
94
- `+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):s.push(h);continue}if(l){const d="Infinite loop on byte: "+l.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return this.state.top=!0,s}inline(l,s=[]){return this.inlineQueue.push({src:l,tokens:s}),s}inlineTokens(l,s=[]){var h,g,d;let r=l,c=null;if(this.tokens.links){const y=Object.keys(this.tokens.links);if(y.length>0)for(;(c=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)y.includes(c[0].slice(c[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,c.index)+"["+"a".repeat(c[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(c=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,c.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(c=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,c.index)+"["+"a".repeat(c[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let f=!1,p="";for(;l;){f||(p=""),f=!1;let y;if((g=(h=this.options.extensions)==null?void 0:h.inline)!=null&&g.some(b=>(y=b.call({lexer:this},l,s))?(l=l.substring(y.raw.length),s.push(y),!0):!1))continue;if(y=this.tokenizer.escape(l)){l=l.substring(y.raw.length),s.push(y);continue}if(y=this.tokenizer.tag(l)){l=l.substring(y.raw.length),s.push(y);continue}if(y=this.tokenizer.link(l)){l=l.substring(y.raw.length),s.push(y);continue}if(y=this.tokenizer.reflink(l,this.tokens.links)){l=l.substring(y.raw.length);const b=s.at(-1);y.type==="text"&&(b==null?void 0:b.type)==="text"?(b.raw+=y.raw,b.text+=y.text):s.push(y);continue}if(y=this.tokenizer.emStrong(l,r,p)){l=l.substring(y.raw.length),s.push(y);continue}if(y=this.tokenizer.codespan(l)){l=l.substring(y.raw.length),s.push(y);continue}if(y=this.tokenizer.br(l)){l=l.substring(y.raw.length),s.push(y);continue}if(y=this.tokenizer.del(l)){l=l.substring(y.raw.length),s.push(y);continue}if(y=this.tokenizer.autolink(l)){l=l.substring(y.raw.length),s.push(y);continue}if(!this.state.inLink&&(y=this.tokenizer.url(l))){l=l.substring(y.raw.length),s.push(y);continue}let S=l;if((d=this.options.extensions)!=null&&d.startInline){let b=1/0;const _=l.slice(1);let T;this.options.extensions.startInline.forEach(M=>{T=M.call({lexer:this},_),typeof T=="number"&&T>=0&&(b=Math.min(b,T))}),b<1/0&&b>=0&&(S=l.substring(0,b+1))}if(y=this.tokenizer.inlineText(S)){l=l.substring(y.raw.length),y.raw.slice(-1)!=="_"&&(p=y.raw.slice(-1)),f=!0;const b=s.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=y.raw,b.text+=y.text):s.push(y);continue}if(l){const b="Infinite loop on byte: "+l.charCodeAt(0);if(this.options.silent){console.error(b);break}else throw new Error(b)}}return s}},$u=class{constructor(i){Ae(this,"options");Ae(this,"parser");this.options=i||sa}space(i){return""}code({text:i,lang:l,escaped:s}){var f;const r=(f=(l||"").match(it.notSpaceStart))==null?void 0:f[0],c=i.replace(it.endingNewline,"")+`
95
- `;return r?'<pre><code class="language-'+Vt(r)+'">'+(s?c:Vt(c,!0))+`</code></pre>
96
- `:"<pre><code>"+(s?c:Vt(c,!0))+`</code></pre>
96
+ `+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):r.push(h);continue}if(n){const d="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return this.state.top=!0,r}inline(n,r=[]){return this.inlineQueue.push({src:n,tokens:r}),r}inlineTokens(n,r=[]){var h,m,d;let s=n,o=null;if(this.tokens.links){const v=Object.keys(this.tokens.links);if(v.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)v.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,o.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(o=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let f=!1,p="";for(;n;){f||(p=""),f=!1;let v;if((m=(h=this.options.extensions)==null?void 0:h.inline)!=null&&m.some(S=>(v=S.call({lexer:this},n,r))?(n=n.substring(v.raw.length),r.push(v),!0):!1))continue;if(v=this.tokenizer.escape(n)){n=n.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.tag(n)){n=n.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.link(n)){n=n.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(v.raw.length);const S=r.at(-1);v.type==="text"&&(S==null?void 0:S.type)==="text"?(S.raw+=v.raw,S.text+=v.text):r.push(v);continue}if(v=this.tokenizer.emStrong(n,s,p)){n=n.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.codespan(n)){n=n.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.br(n)){n=n.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.del(n)){n=n.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.autolink(n)){n=n.substring(v.raw.length),r.push(v);continue}if(!this.state.inLink&&(v=this.tokenizer.url(n))){n=n.substring(v.raw.length),r.push(v);continue}let x=n;if((d=this.options.extensions)!=null&&d.startInline){let S=1/0;const C=n.slice(1);let E;this.options.extensions.startInline.forEach(z=>{E=z.call({lexer:this},C),typeof E=="number"&&E>=0&&(S=Math.min(S,E))}),S<1/0&&S>=0&&(x=n.substring(0,S+1))}if(v=this.tokenizer.inlineText(x)){n=n.substring(v.raw.length),v.raw.slice(-1)!=="_"&&(p=v.raw.slice(-1)),f=!0;const S=r.at(-1);(S==null?void 0:S.type)==="text"?(S.raw+=v.raw,S.text+=v.text):r.push(v);continue}if(n){const S="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(S);break}else throw new Error(S)}}return r}},es=class{constructor(i){Oe(this,"options");Oe(this,"parser");this.options=i||mn}space(i){return""}code({text:i,lang:n,escaped:r}){var f;const s=(f=(n||"").match(ut.notSpaceStart))==null?void 0:f[0],o=i.replace(ut.endingNewline,"")+`
97
+ `;return s?'<pre><code class="language-'+Pt(s)+'">'+(r?o:Pt(o,!0))+`</code></pre>
98
+ `:"<pre><code>"+(r?o:Pt(o,!0))+`</code></pre>
97
99
  `}blockquote({tokens:i}){return`<blockquote>
98
100
  ${this.parser.parse(i)}</blockquote>
99
- `}html({text:i}){return i}heading({tokens:i,depth:l}){return`<h${l}>${this.parser.parseInline(i)}</h${l}>
101
+ `}html({text:i}){return i}heading({tokens:i,depth:n}){return`<h${n}>${this.parser.parseInline(i)}</h${n}>
100
102
  `}hr(i){return`<hr>
101
- `}list(i){const l=i.ordered,s=i.start;let r="";for(let p=0;p<i.items.length;p++){const h=i.items[p];r+=this.listitem(h)}const c=l?"ol":"ul",f=l&&s!==1?' start="'+s+'"':"";return"<"+c+f+`>
102
- `+r+"</"+c+`>
103
- `}listitem(i){var s;let l="";if(i.task){const r=this.checkbox({checked:!!i.checked});i.loose?((s=i.tokens[0])==null?void 0:s.type)==="paragraph"?(i.tokens[0].text=r+" "+i.tokens[0].text,i.tokens[0].tokens&&i.tokens[0].tokens.length>0&&i.tokens[0].tokens[0].type==="text"&&(i.tokens[0].tokens[0].text=r+" "+Vt(i.tokens[0].tokens[0].text),i.tokens[0].tokens[0].escaped=!0)):i.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):l+=r+" "}return l+=this.parser.parse(i.tokens,!!i.loose),`<li>${l}</li>
103
+ `}list(i){const n=i.ordered,r=i.start;let s="";for(let p=0;p<i.items.length;p++){const h=i.items[p];s+=this.listitem(h)}const o=n?"ol":"ul",f=n&&r!==1?' start="'+r+'"':"";return"<"+o+f+`>
104
+ `+s+"</"+o+`>
105
+ `}listitem(i){var r;let n="";if(i.task){const s=this.checkbox({checked:!!i.checked});i.loose?((r=i.tokens[0])==null?void 0:r.type)==="paragraph"?(i.tokens[0].text=s+" "+i.tokens[0].text,i.tokens[0].tokens&&i.tokens[0].tokens.length>0&&i.tokens[0].tokens[0].type==="text"&&(i.tokens[0].tokens[0].text=s+" "+Pt(i.tokens[0].tokens[0].text),i.tokens[0].tokens[0].escaped=!0)):i.tokens.unshift({type:"text",raw:s+" ",text:s+" ",escaped:!0}):n+=s+" "}return n+=this.parser.parse(i.tokens,!!i.loose),`<li>${n}</li>
104
106
  `}checkbox({checked:i}){return"<input "+(i?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:i}){return`<p>${this.parser.parseInline(i)}</p>
105
- `}table(i){let l="",s="";for(let c=0;c<i.header.length;c++)s+=this.tablecell(i.header[c]);l+=this.tablerow({text:s});let r="";for(let c=0;c<i.rows.length;c++){const f=i.rows[c];s="";for(let p=0;p<f.length;p++)s+=this.tablecell(f[p]);r+=this.tablerow({text:s})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
107
+ `}table(i){let n="",r="";for(let o=0;o<i.header.length;o++)r+=this.tablecell(i.header[o]);n+=this.tablerow({text:r});let s="";for(let o=0;o<i.rows.length;o++){const f=i.rows[o];r="";for(let p=0;p<f.length;p++)r+=this.tablecell(f[p]);s+=this.tablerow({text:r})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
106
108
  <thead>
107
- `+l+`</thead>
108
- `+r+`</table>
109
+ `+n+`</thead>
110
+ `+s+`</table>
109
111
  `}tablerow({text:i}){return`<tr>
110
112
  ${i}</tr>
111
- `}tablecell(i){const l=this.parser.parseInline(i.tokens),s=i.header?"th":"td";return(i.align?`<${s} align="${i.align}">`:`<${s}>`)+l+`</${s}>
112
- `}strong({tokens:i}){return`<strong>${this.parser.parseInline(i)}</strong>`}em({tokens:i}){return`<em>${this.parser.parseInline(i)}</em>`}codespan({text:i}){return`<code>${Vt(i,!0)}</code>`}br(i){return"<br>"}del({tokens:i}){return`<del>${this.parser.parseInline(i)}</del>`}link({href:i,title:l,tokens:s}){const r=this.parser.parseInline(s),c=kp(i);if(c===null)return r;i=c;let f='<a href="'+i+'"';return l&&(f+=' title="'+Vt(l)+'"'),f+=">"+r+"</a>",f}image({href:i,title:l,text:s,tokens:r}){r&&(s=this.parser.parseInline(r,this.parser.textRenderer));const c=kp(i);if(c===null)return Vt(s);i=c;let f=`<img src="${i}" alt="${s}"`;return l&&(f+=` title="${Vt(l)}"`),f+=">",f}text(i){return"tokens"in i&&i.tokens?this.parser.parseInline(i.tokens):"escaped"in i&&i.escaped?i.text:Vt(i.text)}},ec=class{strong({text:i}){return i}em({text:i}){return i}codespan({text:i}){return i}del({text:i}){return i}html({text:i}){return i}text({text:i}){return i}link({text:i}){return""+i}image({text:i}){return""+i}br(){return""}},on=class Mo{constructor(l){Ae(this,"options");Ae(this,"renderer");Ae(this,"textRenderer");this.options=l||sa,this.options.renderer=this.options.renderer||new $u,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ec}static parse(l,s){return new Mo(s).parse(l)}static parseInline(l,s){return new Mo(s).parseInline(l)}parse(l,s=!0){var c,f;let r="";for(let p=0;p<l.length;p++){const h=l[p];if((f=(c=this.options.extensions)==null?void 0:c.renderers)!=null&&f[h.type]){const d=h,y=this.options.extensions.renderers[d.type].call({parser:this},d);if(y!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type)){r+=y||"";continue}}const g=h;switch(g.type){case"space":{r+=this.renderer.space(g);continue}case"hr":{r+=this.renderer.hr(g);continue}case"heading":{r+=this.renderer.heading(g);continue}case"code":{r+=this.renderer.code(g);continue}case"table":{r+=this.renderer.table(g);continue}case"blockquote":{r+=this.renderer.blockquote(g);continue}case"list":{r+=this.renderer.list(g);continue}case"html":{r+=this.renderer.html(g);continue}case"paragraph":{r+=this.renderer.paragraph(g);continue}case"text":{let d=g,y=this.renderer.text(d);for(;p+1<l.length&&l[p+1].type==="text";)d=l[++p],y+=`
113
- `+this.renderer.text(d);s?r+=this.renderer.paragraph({type:"paragraph",raw:y,text:y,tokens:[{type:"text",raw:y,text:y,escaped:!0}]}):r+=y;continue}default:{const d='Token with "'+g.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return r}parseInline(l,s=this.renderer){var c,f;let r="";for(let p=0;p<l.length;p++){const h=l[p];if((f=(c=this.options.extensions)==null?void 0:c.renderers)!=null&&f[h.type]){const d=this.options.extensions.renderers[h.type].call({parser:this},h);if(d!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(h.type)){r+=d||"";continue}}const g=h;switch(g.type){case"escape":{r+=s.text(g);break}case"html":{r+=s.html(g);break}case"link":{r+=s.link(g);break}case"image":{r+=s.image(g);break}case"strong":{r+=s.strong(g);break}case"em":{r+=s.em(g);break}case"codespan":{r+=s.codespan(g);break}case"br":{r+=s.br(g);break}case"del":{r+=s.del(g);break}case"text":{r+=s.text(g);break}default:{const d='Token with "'+g.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return r}},Ro,ju=(Ro=class{constructor(i){Ae(this,"options");Ae(this,"block");this.options=i||sa}preprocess(i){return i}postprocess(i){return i}processAllTokens(i){return i}provideLexer(){return this.block?rn.lex:rn.lexInline}provideParser(){return this.block?on.parse:on.parseInline}},Ae(Ro,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),Ro),Nx=class{constructor(...i){Ae(this,"defaults",Xo());Ae(this,"options",this.setOptions);Ae(this,"parse",this.parseMarkdown(!0));Ae(this,"parseInline",this.parseMarkdown(!1));Ae(this,"Parser",on);Ae(this,"Renderer",$u);Ae(this,"TextRenderer",ec);Ae(this,"Lexer",rn);Ae(this,"Tokenizer",Gu);Ae(this,"Hooks",ju);this.use(...i)}walkTokens(i,l){var r,c;let s=[];for(const f of i)switch(s=s.concat(l.call(this,f)),f.type){case"table":{const p=f;for(const h of p.header)s=s.concat(this.walkTokens(h.tokens,l));for(const h of p.rows)for(const g of h)s=s.concat(this.walkTokens(g.tokens,l));break}case"list":{const p=f;s=s.concat(this.walkTokens(p.items,l));break}default:{const p=f;(c=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&c[p.type]?this.defaults.extensions.childTokens[p.type].forEach(h=>{const g=p[h].flat(1/0);s=s.concat(this.walkTokens(g,l))}):p.tokens&&(s=s.concat(this.walkTokens(p.tokens,l)))}}return s}use(...i){const l=this.defaults.extensions||{renderers:{},childTokens:{}};return i.forEach(s=>{const r={...s};if(r.async=this.defaults.async||r.async||!1,s.extensions&&(s.extensions.forEach(c=>{if(!c.name)throw new Error("extension name required");if("renderer"in c){const f=l.renderers[c.name];f?l.renderers[c.name]=function(...p){let h=c.renderer.apply(this,p);return h===!1&&(h=f.apply(this,p)),h}:l.renderers[c.name]=c.renderer}if("tokenizer"in c){if(!c.level||c.level!=="block"&&c.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const f=l[c.level];f?f.unshift(c.tokenizer):l[c.level]=[c.tokenizer],c.start&&(c.level==="block"?l.startBlock?l.startBlock.push(c.start):l.startBlock=[c.start]:c.level==="inline"&&(l.startInline?l.startInline.push(c.start):l.startInline=[c.start]))}"childTokens"in c&&c.childTokens&&(l.childTokens[c.name]=c.childTokens)}),r.extensions=l),s.renderer){const c=this.defaults.renderer||new $u(this.defaults);for(const f in s.renderer){if(!(f in c))throw new Error(`renderer '${f}' does not exist`);if(["options","parser"].includes(f))continue;const p=f,h=s.renderer[p],g=c[p];c[p]=(...d)=>{let y=h.apply(c,d);return y===!1&&(y=g.apply(c,d)),y||""}}r.renderer=c}if(s.tokenizer){const c=this.defaults.tokenizer||new Gu(this.defaults);for(const f in s.tokenizer){if(!(f in c))throw new Error(`tokenizer '${f}' does not exist`);if(["options","rules","lexer"].includes(f))continue;const p=f,h=s.tokenizer[p],g=c[p];c[p]=(...d)=>{let y=h.apply(c,d);return y===!1&&(y=g.apply(c,d)),y}}r.tokenizer=c}if(s.hooks){const c=this.defaults.hooks||new ju;for(const f in s.hooks){if(!(f in c))throw new Error(`hook '${f}' does not exist`);if(["options","block"].includes(f))continue;const p=f,h=s.hooks[p],g=c[p];ju.passThroughHooks.has(f)?c[p]=d=>{if(this.defaults.async)return Promise.resolve(h.call(c,d)).then(S=>g.call(c,S));const y=h.call(c,d);return g.call(c,y)}:c[p]=(...d)=>{let y=h.apply(c,d);return y===!1&&(y=g.apply(c,d)),y}}r.hooks=c}if(s.walkTokens){const c=this.defaults.walkTokens,f=s.walkTokens;r.walkTokens=function(p){let h=[];return h.push(f.call(this,p)),c&&(h=h.concat(c.call(this,p))),h}}this.defaults={...this.defaults,...r}}),this}setOptions(i){return this.defaults={...this.defaults,...i},this}lexer(i,l){return rn.lex(i,l??this.defaults)}parser(i,l){return on.parse(i,l??this.defaults)}parseMarkdown(i){return(s,r)=>{const c={...r},f={...this.defaults,...c},p=this.onError(!!f.silent,!!f.async);if(this.defaults.async===!0&&c.async===!1)return p(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof s>"u"||s===null)return p(new Error("marked(): input parameter is undefined or null"));if(typeof s!="string")return p(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(s)+", string expected"));f.hooks&&(f.hooks.options=f,f.hooks.block=i);const h=f.hooks?f.hooks.provideLexer():i?rn.lex:rn.lexInline,g=f.hooks?f.hooks.provideParser():i?on.parse:on.parseInline;if(f.async)return Promise.resolve(f.hooks?f.hooks.preprocess(s):s).then(d=>h(d,f)).then(d=>f.hooks?f.hooks.processAllTokens(d):d).then(d=>f.walkTokens?Promise.all(this.walkTokens(d,f.walkTokens)).then(()=>d):d).then(d=>g(d,f)).then(d=>f.hooks?f.hooks.postprocess(d):d).catch(p);try{f.hooks&&(s=f.hooks.preprocess(s));let d=h(s,f);f.hooks&&(d=f.hooks.processAllTokens(d)),f.walkTokens&&this.walkTokens(d,f.walkTokens);let y=g(d,f);return f.hooks&&(y=f.hooks.postprocess(y)),y}catch(d){return p(d)}}}onError(i,l){return s=>{if(s.message+=`
114
- Please report this to https://github.com/markedjs/marked.`,i){const r="<p>An error occurred:</p><pre>"+Vt(s.message+"",!0)+"</pre>";return l?Promise.resolve(r):r}if(l)return Promise.reject(s);throw s}}},la=new Nx;function Ee(i,l){return la.parse(i,l)}Ee.options=Ee.setOptions=function(i){return la.setOptions(i),Ee.defaults=la.defaults,ug(Ee.defaults),Ee};Ee.getDefaults=Xo;Ee.defaults=sa;Ee.use=function(...i){return la.use(...i),Ee.defaults=la.defaults,ug(Ee.defaults),Ee};Ee.walkTokens=function(i,l){return la.walkTokens(i,l)};Ee.parseInline=la.parseInline;Ee.Parser=on;Ee.parser=on.parse;Ee.Renderer=$u;Ee.TextRenderer=ec;Ee.Lexer=rn;Ee.lexer=rn.lex;Ee.Tokenizer=Gu;Ee.Hooks=ju;Ee.parse=Ee;Ee.options;Ee.setOptions;Ee.use;Ee.walkTokens;Ee.parseInline;on.parse;rn.lex;function Ax(i){if(!i)return"";try{return Ee.parse(i,{async:!1,gfm:!0,breaks:!0})}catch(l){return console.error("Error rendering markdown:",l),i}}function fi({content:i,title:l,variant:s="default",className:r="",children:c}){const f=["Explanation",`Explanation-${s}`,r].filter(Boolean).join(" ");return E.jsxs("div",{className:f,children:[l&&E.jsx("h3",{className:"Explanation-title",children:l}),E.jsx("div",{className:"Explanation-content markdown-content",dangerouslySetInnerHTML:{__html:Ax(i)}}),c]})}function Ox({isOpen:i,title:l,message:s,confirmLabel:r,cancelLabel:c,onConfirm:f,onCancel:p}){const{t:h}=ut(),[g,d]=A.useState(!0);if(!i)return null;const y=async()=>{await f({withSampleData:g})},S=b=>{b.key==="Escape"&&p()};return E.jsxs("div",{className:"ConfirmDialog",children:[E.jsx("div",{className:"ConfirmDialog-backdrop",onClick:p,onKeyDown:S,tabIndex:0,role:"button","aria-label":"Close dialog"}),E.jsxs("div",{className:"ConfirmDialog-container",children:[E.jsx("div",{className:"ConfirmDialog-header",children:E.jsx("h3",{className:"ConfirmDialog-title",children:l})}),E.jsxs("div",{className:"ConfirmDialog-body",children:[E.jsx("p",{children:s}),E.jsx("div",{className:"ConfirmDialog-checkbox mt-3",children:E.jsxs("label",{children:[E.jsx("input",{type:"checkbox",checked:g,onChange:b=>d(b.target.checked)}),E.jsx("span",{className:"ml-2",children:h("generateSiteWithData")})]})})]}),E.jsxs("div",{className:"ConfirmDialog-footer",children:[E.jsx(tt,{onClick:p,severity:"secondary",className:"ConfirmDialog-button",children:c||h("cancel")}),E.jsx(tt,{onClick:y,className:"ConfirmDialog-button",children:r||h("confirm")})]})]})]})}const Cx=i=>typeof i=="boolean"||i instanceof Boolean,zx=i=>typeof i=="number"||i instanceof Number,kx=i=>typeof i=="bigint"||i instanceof BigInt,yg=i=>!!i&&i instanceof Date,_x=i=>typeof i=="string"||i instanceof String,Dx=i=>Array.isArray(i),Mx=i=>typeof i=="object"&&i!==null,vg=i=>!!i&&i instanceof Object&&typeof i=="function";function Yu(i,l){return l===void 0&&(l=!1),!i||l?`"${i}"`:i}function jx(i,l,s){return s?JSON.stringify(i):l?`"${i}"`:i}function bg(i){let{field:l,value:s,data:r,lastElement:c,openBracket:f,closeBracket:p,level:h,style:g,shouldExpandNode:d,clickToExpandNode:y,outerRef:S,beforeExpandChange:b}=i;const _=A.useRef(!1),[T,M]=A.useState(()=>d(h,s,l)),G=A.useRef(null);A.useEffect(()=>{_.current?M(d(h,s,l)):_.current=!0},[d]);const B=A.useId();if(r.length===0)return Lx({field:l,openBracket:f,closeBracket:p,lastElement:c,style:g});const q=T?g.collapseIcon:g.expandIcon,X=T?g.ariaLables.collapseJson:g.ariaLables.expandJson,F=h+1,Z=r.length-1,de=Q=>{T!==Q&&(!b||b({level:h,value:s,field:l,newExpandValue:Q}))&&M(Q)},le=Q=>{if(Q.key==="ArrowRight"||Q.key==="ArrowLeft")Q.preventDefault(),de(Q.key==="ArrowRight");else if(Q.key==="ArrowUp"||Q.key==="ArrowDown"){Q.preventDefault();const ee=Q.key==="ArrowUp"?-1:1;if(!S.current)return;const he=S.current.querySelectorAll("[role=button]");let De=-1;for(let Ce=0;Ce<he.length;Ce++)if(he[Ce].tabIndex===0){De=Ce;break}if(De<0)return;const Ue=(De+ee+he.length)%he.length;he[De].tabIndex=-1,he[Ue].tabIndex=0,he[Ue].focus()}},ie=()=>{var Q;de(!T);const ee=G.current;if(!ee)return;const he=(Q=S.current)===null||Q===void 0?void 0:Q.querySelector('[role=button][tabindex="0"]');he&&(he.tabIndex=-1),ee.tabIndex=0,ee.focus()};return A.createElement("div",{className:g.basicChildStyle,role:"treeitem","aria-expanded":T,"aria-selected":void 0},A.createElement("span",{className:q,onClick:ie,onKeyDown:le,role:"button","aria-label":X,"aria-expanded":T,"aria-controls":T?B:void 0,ref:G,tabIndex:h===0?0:-1}),(l||l==="")&&(y?A.createElement("span",{className:g.clickableLabel,onClick:ie,onKeyDown:le},Yu(l,g.quotesForFieldNames),":"):A.createElement("span",{className:g.label},Yu(l,g.quotesForFieldNames),":")),A.createElement("span",{className:g.punctuation},f),T?A.createElement("ul",{id:B,role:"group",className:g.childFieldsContainer},r.map((Q,ee)=>A.createElement(Sg,{key:Q[0]||ee,field:Q[0],value:Q[1],style:g,lastElement:ee===Z,level:F,shouldExpandNode:d,clickToExpandNode:y,outerRef:S}))):A.createElement("span",{className:g.collapsedContent,onClick:ie,onKeyDown:le}),A.createElement("span",{className:g.punctuation},p),!c&&A.createElement("span",{className:g.punctuation},","))}function Lx(i){let{field:l,openBracket:s,closeBracket:r,lastElement:c,style:f}=i;return A.createElement("div",{className:f.basicChildStyle,role:"treeitem","aria-selected":void 0},(l||l==="")&&A.createElement("span",{className:f.label},Yu(l,f.quotesForFieldNames),":"),A.createElement("span",{className:f.punctuation},s),A.createElement("span",{className:f.punctuation},r),!c&&A.createElement("span",{className:f.punctuation},","))}function Ux(i){let{field:l,value:s,style:r,lastElement:c,shouldExpandNode:f,clickToExpandNode:p,level:h,outerRef:g,beforeExpandChange:d}=i;return bg({field:l,value:s,lastElement:c||!1,level:h,openBracket:"{",closeBracket:"}",style:r,shouldExpandNode:f,clickToExpandNode:p,data:Object.keys(s).map(y=>[y,s[y]]),outerRef:g,beforeExpandChange:d})}function Hx(i){let{field:l,value:s,style:r,lastElement:c,level:f,shouldExpandNode:p,clickToExpandNode:h,outerRef:g,beforeExpandChange:d}=i;return bg({field:l,value:s,lastElement:c||!1,level:f,openBracket:"[",closeBracket:"]",style:r,shouldExpandNode:p,clickToExpandNode:h,data:s.map(y=>[void 0,y]),outerRef:g,beforeExpandChange:d})}function Bx(i){let{field:l,value:s,style:r,lastElement:c}=i,f,p=r.otherValue;return s===null?(f="null",p=r.nullValue):s===void 0?(f="undefined",p=r.undefinedValue):_x(s)?(f=jx(s,!r.noQuotesForStringValues,r.stringifyStringValues),p=r.stringValue):Cx(s)?(f=s?"true":"false",p=r.booleanValue):zx(s)?(f=s.toString(),p=r.numberValue):kx(s)?(f=`${s.toString()}n`,p=r.numberValue):yg(s)?f=s.toISOString():vg(s)?f="function() { }":f=s.toString(),A.createElement("div",{className:r.basicChildStyle,role:"treeitem","aria-selected":void 0},(l||l==="")&&A.createElement("span",{className:r.label},Yu(l,r.quotesForFieldNames),":"),A.createElement("span",{className:p},f),!c&&A.createElement("span",{className:r.punctuation},","))}function Sg(i){const l=i.value;return Dx(l)?A.createElement(Hx,Object.assign({},i)):Mx(l)&&!yg(l)&&!vg(l)?A.createElement(Ux,Object.assign({},i)):A.createElement(Bx,Object.assign({},i))}var lt={"container-light":"_2IvMF _GzYRV","basic-element-style":"_2bkNM","child-fields-container":"_1BXBN","label-light":"_1MGIk","clickable-label-light":"_2YKJg _1MGIk _1MFti","punctuation-light":"_3uHL6 _3eOF8","value-null-light":"_2T6PJ","value-undefined-light":"_1Gho6","value-string-light":"_vGjyY","value-number-light":"_1bQdo","value-boolean-light":"_3zQKs","value-other-light":"_1xvuR","collapse-icon-light":"_oLqym _f10Tu _1MFti _1LId0","expand-icon-light":"_2AXVT _f10Tu _1MFti _1UmXx","collapsed-content-light":"_2KJWg _1pNG9 _1MFti"};const qx={collapseJson:"collapse JSON",expandJson:"expand JSON"},Mp={container:lt["container-light"],basicChildStyle:lt["basic-element-style"],childFieldsContainer:lt["child-fields-container"],label:lt["label-light"],clickableLabel:lt["clickable-label-light"],nullValue:lt["value-null-light"],undefinedValue:lt["value-undefined-light"],stringValue:lt["value-string-light"],booleanValue:lt["value-boolean-light"],numberValue:lt["value-number-light"],otherValue:lt["value-other-light"],punctuation:lt["punctuation-light"],collapseIcon:lt["collapse-icon-light"],expandIcon:lt["expand-icon-light"],collapsedContent:lt["collapsed-content-light"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:qx,stringifyStringValues:!1},Gx=()=>!0,jp=i=>{let{data:l,style:s=Mp,shouldExpandNode:r=Gx,clickToExpandNode:c=!1,beforeExpandChange:f,...p}=i;const h=A.useRef(null);return A.createElement("div",Object.assign({"aria-label":"JSON view"},p,{className:s.container,ref:h,role:"tree"}),A.createElement(Sg,{value:l,style:{...Mp,...s},lastElement:!0,level:0,shouldExpandNode:r,clickToExpandNode:c,outerRef:h,beforeExpandChange:f}))};function $x(i){const l=Object.keys(i),s=l.length>0?l[0]:void 0;return(r,c,f={})=>{if(!s)return f.default??r;const p=i[c]??i[s],h=r.split(".");let g=p;for(const d of h){if(typeof g=="string"||!g||!(d in g))return f.default??r;g=g[d]}return typeof g=="string"?g:f.default??r}}function Yx({siteSchema:i,schemaTranslate:l}){const s=new Set;return E.jsx("ul",{children:E.jsx(jo,{schema:i,schemaT:l,typeName:"home",displayedNodeTypeNames:s})})}function jo({schema:i,schemaT:l,typeName:s,depth:r=0,displayedNodeTypeNames:c}){const{i18n:f}=ut(),p=Vx(i,s);if(!p)return null;const h=p.routingChildren||[],g=p.regularChildren||[],d=p.lists||[],y=p.documentKind==="routing",S=l(`nodeTypes.${s}.label`,f.language,{default:s});return c.has(s)?E.jsx("li",{children:E.jsxs("div",{children:[y?E.jsx("strong",{children:S}):S," (",E.jsx("code",{children:s}),")"]})}):(c.add(s),E.jsxs("li",{children:[E.jsxs("div",{children:[y?E.jsx("strong",{children:S}):S," (",E.jsx("code",{children:s}),")"]}),d.map(b=>E.jsxs("div",{style:{marginLeft:"30px",color:"#999",fontStyle:"italic"},children:[l(`nodeTypes.${s}.lists.${b.listName}.label`,f.language,{default:b.listName})," ","(",E.jsx("code",{children:b.listName})," [",E.jsx("code",{children:b.parts.join("</code>, <code>")}),"])"]},b.listName)),h.length>0&&E.jsx("ul",{children:h.map(b=>E.jsx(jo,{schema:i,schemaT:l,typeName:b,depth:r+1,displayedNodeTypeNames:c},b))}),g.length>0&&E.jsx("ul",{children:g.map(b=>E.jsx(jo,{schema:i,schemaT:l,typeName:b,depth:r+1,displayedNodeTypeNames:c},b))})]}))}function Vx(i,l){var s;return(s=i.nodeTypes)==null?void 0:s.find(r=>r.kind==="document"&&r.typeName===l)}function Qx({step:i}){const{t:l}=ut(),[s,r]=A.useState("tree"),{siteSchema:c,l10n:f}=i,p=$x(f),h=(g,d,y)=>y!=="plugins";return E.jsxs("div",{className:"SchemaViewer",children:[E.jsxs("div",{className:"SchemaViewer-tabs",children:[E.jsx(tt,{className:`SchemaViewer-tab ${s==="tree"?"active":""}`,onClick:()=>r("tree"),children:l("treeView")}),E.jsx(tt,{className:`SchemaViewer-tab ${s==="schema"?"active":""}`,onClick:()=>r("schema"),children:l("siteSchema")}),E.jsx(tt,{className:`SchemaViewer-tab ${s==="locales"?"active":""}`,onClick:()=>r("locales"),children:l("labels")})]}),E.jsxs("div",{className:"SchemaViewer-main",children:[E.jsx("div",{className:"SchemaViewer-content",style:{display:s==="tree"?"block":"none"},children:E.jsx(Yx,{siteSchema:c,schemaTranslate:p})}),E.jsx("div",{className:"SchemaViewer-content",style:{display:s==="locales"?"block":"none"},children:E.jsx(jp,{data:f,shouldExpandNode:h})}),E.jsx("div",{className:"SchemaViewer-content",style:{display:s==="schema"?"block":"none"},children:E.jsx(jp,{data:c,shouldExpandNode:h})})]})]})}function Xx({step:i}){const{t:l}=ut(),{workSession:s,appendNewStep:r}=ua(),[c,f]=A.useState(!1),[p,h]=A.useState(!1),[g,d]=A.useState(!1),[y,S]=A.useState(void 0),b=Wa(),_=()=>{f(!c)},T=async G=>{if(!s)return;d(!0),S(void 0);const B=si();if(!B){S(l("sessionExpired")),d(!1);return}try{const q=await Un({command:"updateSiteSchema",sessionToken:B,prompt:G,fromStepNumber:i.stepNumber});q.success&&q.result?(f(!1),r(q.result),b(`/step/${q.result.stepNumber}`)):S(l("promptSubmissionFailed"))}catch(q){console.error("Error updating schema:",q),S(l("errorOccurred"))}finally{d(!1)}},M=async({withSampleData:G})=>{if(!s)return;d(!0),S(void 0),h(!1);const B=si();if(!B){S(l("sessionExpired")),d(!1);return}try{const q=await Un({command:"generateSite",sessionToken:B,fromStepNumber:i.stepNumber,withSampleData:G});q.success&&q.result?(r(q.result),b(`/step/${q.result.stepNumber}`)):S(l("generationFailed"))}catch(q){console.error("Error generating site:",q),S(l("errorOccurred"))}finally{d(!1)}};return E.jsx(Et,{children:E.jsxs("div",{className:"CompletedStep",children:[E.jsx(Qx,{step:i}),i.explanation&&E.jsx(fi,{content:i.explanation,title:l("explanation")}),E.jsxs("div",{className:"CompletedStep-actions",children:[E.jsx(tt,{onClick:_,className:"CompletedStep-button",children:l("modifySchema")}),E.jsx(tt,{onClick:()=>h(!0),className:"CompletedStep-button",children:l("generateTheWebsite")})]}),c&&E.jsxs("div",{className:"CompletedStep-updateForm",children:[E.jsx("h3",{children:l("updateSchema")}),E.jsx(ig,{placeholder:l("updatePromptPlaceholder"),submitLabel:l("modifySchema"),onSubmit:T,isLoading:g,error:y})]}),E.jsx(Ox,{isOpen:p,title:l("generateTheWebsite"),message:l("aboutToGenerateWebsite"),confirmLabel:l("confirm"),onConfirm:M,onCancel:()=>h(!1)}),y&&!c&&E.jsx("div",{className:"Alert error",children:E.jsx("p",{children:y})})]})})}function Zx({step:i}){const{t:l}=ut();return E.jsx(Et,{children:E.jsxs("div",{className:"ErrorStep",children:[E.jsx("p",{className:"ErrorStep-message",children:l("stepFailed")}),i.explanation&&E.jsx(fi,{content:i.explanation,variant:"error"})]})})}function Kx({step:i}){const{t:l}=ut(),s=()=>{const r=`
115
- ${l("siteGenerated")}
116
- ${l("loginEmail")}: ${i.loginEmail}
117
- ${l("loginPassword")}: ${i.loginPassword}
118
- ${l("siteUrl")}: ${i.siteUrl}
119
- ${l("adminUrl")}: ${i.backOfficeUrl}
120
- `.trim();navigator.clipboard.writeText(r)};return E.jsx(Et,{children:E.jsxs("div",{className:"GeneratedSite",children:[i.status==="pending"&&E.jsxs("div",{className:"GeneratedSite-pending",children:[E.jsx(Zu,{size:"small"}),E.jsx("p",{children:l("generatingContent")})]}),i.explanation&&E.jsx(fi,{content:i.explanation,title:l("explanation"),variant:"info"}),E.jsx("div",{className:"GeneratedSite-header",children:E.jsx("h2",{className:"GeneratedSite-title",children:l("generatedSite")})}),E.jsx("div",{className:"Text my-4",dangerouslySetInnerHTML:{__html:l("userManual")}}),E.jsxs("div",{className:"GeneratedSite-information",children:[E.jsxs("div",{className:"GeneratedSite-field",children:[E.jsx("div",{className:"GeneratedSite-label",children:l("loginEmail")}),E.jsx("div",{className:"GeneratedSite-value",children:E.jsx("input",{type:"text",value:i.loginEmail,readOnly:!0,className:"GeneratedSite-input"})})]}),E.jsxs("div",{className:"GeneratedSite-field",children:[E.jsx("div",{className:"GeneratedSite-label",children:l("loginPassword")}),E.jsx("div",{className:"GeneratedSite-value",children:E.jsx("input",{type:"text",value:i.loginPassword,readOnly:!0,className:"GeneratedSite-input"})})]}),E.jsxs("div",{className:"GeneratedSite-field",children:[E.jsx("div",{className:"GeneratedSite-label",children:l("siteUrl")}),E.jsxs("div",{className:"GeneratedSite-value",children:[E.jsx("input",{type:"text",value:i.siteUrl,readOnly:!0,className:"GeneratedSite-input"}),E.jsx(tt,{className:"GeneratedSite-link-button",onClick:()=>{window.open(i.siteUrl,"_blank")},"aria-label":l("viewSite"),children:"↗"})]})]}),E.jsxs("div",{className:"GeneratedSite-field",children:[E.jsx("div",{className:"GeneratedSite-label",children:l("adminUrl")}),E.jsxs("div",{className:"GeneratedSite-value",children:[E.jsx("input",{type:"text",value:i.backOfficeUrl,readOnly:!0,className:"GeneratedSite-input"}),E.jsx(tt,{className:"GeneratedSite-link-button",onClick:()=>{window.open(i.backOfficeUrl,"_blank")},"aria-label":l("administration"),children:"↗"})]})]})]}),E.jsx("div",{className:"GeneratedSite-actions",children:E.jsx(tt,{onClick:s,className:"GeneratedSite-copy-button",children:l("copyToClipboard")})})]})})}function Jx({step:i}){const{t:l}=ut();return E.jsx(Et,{children:E.jsxs("div",{className:"ErrorStep",children:[E.jsx("p",{className:"ErrorStep-message ErrorStep-message-warning",children:l("stepNoEffect")}),i.explanation&&E.jsx(fi,{content:i.explanation,variant:"warning"})]})})}function Lp({step:i}){const{t:l}=ut();return E.jsx(Et,{children:E.jsxs("div",{className:"PendingStep",children:[E.jsx("div",{className:"PendingStep-header",children:E.jsx("h2",{children:l("stepTitle",{stepNumber:i.stepNumber,kind:l(i.kind)})})}),E.jsx("div",{className:"PendingStep-spinner",children:E.jsx(Zu,{size:"large"})}),i.currentActivity&&E.jsxs("div",{className:"PendingStep-activity",children:[E.jsx("h3",{children:l("currentActivity")}),E.jsx("p",{children:l(`activity.${i.currentActivity}`)})]}),i.explanation&&E.jsx(fi,{content:i.explanation,title:l("explanation"),variant:"info"})]})})}function Fx({step:i}){if(i.status==="failed")return E.jsx(Zx,{step:i});if(i.status==="noEffect")return E.jsx(Jx,{step:i});if(i.kind==="initialSchema"||i.kind==="updateSchema")return i.status==="pending"?E.jsx(Lp,{step:i}):E.jsx(Xx,{step:i});if(i.kind==="generateSite")return i.status==="pending"&&!V1(i)?E.jsx(Lp,{step:i}):E.jsx(Kx,{step:i});throw new Error(`Unknown step kind: ${i.kind}`)}function Wx(){const{t:i}=ut(),l=Wa(),{stepNumber:s}=jS(),{workSession:r,setActiveStepNumber:c}=ua(),f=s===void 0?void 0:Number.parseInt(s,10);if(A.useEffect(()=>(c(f),()=>c(void 0)),[f,c]),A.useEffect(()=>{if(!r||!r.steps)return;r.steps.some(g=>g.stepNumber===f)||l("/")},[f,r,l]),!r||!r.steps)return E.jsxs("div",{className:"RouteLayout",children:[E.jsx("div",{className:"RouteLayout-main",children:E.jsx(Et,{className:"p-4",children:E.jsx("div",{className:"Alert error",children:E.jsx("p",{children:i("noSessionData")})})})}),E.jsx("div",{className:"RouteLayout-sidebar",children:E.jsx(Mu,{activeStep:f})})]});const p=r.steps.find(h=>h.stepNumber===f);return p?E.jsxs("div",{className:"RouteLayout",children:[E.jsx("div",{className:"RouteLayout-main",children:E.jsx(Fx,{step:p})}),E.jsx("div",{className:"RouteLayout-sidebar",children:E.jsx(Mu,{activeStep:f})})]}):E.jsxs("div",{className:"RouteLayout",children:[E.jsx("div",{className:"RouteLayout-main",children:E.jsx(Et,{className:"p-4",children:E.jsx("div",{className:"Alert error",children:E.jsx("p",{children:i("stepNotFound")})})})}),E.jsx("div",{className:"RouteLayout-sidebar",children:E.jsx(Mu,{activeStep:f})})]})}function Px({sessionToken:i,onSessionExpired:l}){const{workSession:s,isLoading:r,error:c,setWorkSession:f,setIsLoading:p,setError:h,resetSession:g}=ua();return A.useEffect(()=>()=>{Qo()},[]),A.useEffect(()=>{(async()=>{p(!0),h(void 0);try{const y=await Un({command:"loadWorkSession",sessionToken:i});y.success&&y.result?f(y.result):(h(y.userMessage||"Failed to load session"),y.success||(g(),H1(),l()))}catch(y){h("Error connecting to server"),console.error(y)}finally{p(!1)}})()},[i,f,p,h,l]),r?E.jsx("div",{className:"Layout-center p-4",children:E.jsx(Et,{className:"p-4 max-w-2xl",children:E.jsx("div",{className:"Text text-center",children:E.jsx("p",{children:"Loading session..."})})})}):c?E.jsx("div",{className:"Layout-center p-4",children:E.jsx(Et,{className:"p-4 max-w-2xl",children:E.jsx("div",{className:"Alert error",children:E.jsx("p",{children:c})})})}):s?E.jsx(x1,{children:E.jsxs(WS,{children:[E.jsx(ku,{path:"/",element:E.jsx(Y1,{})}),E.jsx(ku,{path:"/step/:stepNumber",element:E.jsx(Wx,{})}),E.jsx(ku,{path:"*",element:E.jsx(JS,{to:"/",replace:!0})})]})}):E.jsx("div",{className:"Layout-center p-4",children:E.jsx(Et,{className:"p-4 max-w-2xl",children:E.jsx("div",{className:"Text text-center",children:E.jsx("p",{children:"Session not available."})})})})}function Ix({sessionToken:i}){const{t:l,i18n:s}=ut(),r=async c=>{const f=c.target.value;await s.changeLanguage(f),i&&await Un({command:"setLanguage",sessionToken:i,language:f})};return E.jsxs("footer",{className:"App-footer",children:[E.jsx("span",{className:"InlineText",dangerouslySetInnerHTML:{__html:l("footerText")}}),E.jsx("span",{className:"LanguageSelector",children:E.jsxs("select",{className:"LanguageSelector-select",value:s.language,onChange:r,"aria-label":"Select language",children:[E.jsx("option",{value:"en",children:"English"}),E.jsx("option",{value:"fr",children:"Français"})]})})]})}function xg({onTokenReceived:i}){const[l,s]=A.useState(!!window.grecaptcha),r=Eo;return A.useEffect(()=>{if(r){if(window.onRecaptchaSubmitted=c=>{i(c)},window.onRecaptchaExpired=()=>{i("")},l===!1&&!window.grecaptcha){s("loading");const c=document.createElement("script");c.src="https://www.google.com/recaptcha/api.js",c.async=!0,c.defer=!0,c.onload=()=>s(!0),document.head.appendChild(c)}else s(!0);return()=>{window.onRecaptchaSubmitted=void 0,window.onRecaptchaExpired=void 0}}},[r,i]),E.jsx(E.Fragment,{children:Eo&&l===!0?E.jsx("div",{className:"g-recaptcha","data-sitekey":Eo,"data-callback":"onRecaptchaSubmitted","data-expired-callback":"onRecaptchaExpired"}):E.jsx("div",{className:"RecaptchaBox",children:E.jsx(Zu,{})})})}function eE({onVerified:i}){const{t:l,i18n:s}=ut(),[r,c]=A.useState(""),[f,p]=A.useState(),h=async()=>{var g;if(r){p(void 0);try{const d=await Un({command:"newSession",recaptchaToken:r,language:s.language});d.success&&((g=d.result)!=null&&g.token)?i(d.result.token):p("Failed to create session")}catch(d){p("Error connecting to server"),console.error(d)}}};return E.jsx("div",{className:"Layout-center p-4",children:E.jsxs(Et,{className:"max-w-2xl p-4",children:[E.jsx("h2",{className:"AppTitle mb-4 text-center",children:l("title")}),E.jsx("div",{className:"Text my-4",dangerouslySetInnerHTML:{__html:l("introduction")}}),f&&E.jsx("div",{className:"Alert error",children:E.jsx("p",{className:"m-0",children:f})}),E.jsxs("div",{className:"Layout-flex Layout-align-center Layout-gap Layout-justify-center Layout-wrap",children:[E.jsx(xg,{onTokenReceived:c}),E.jsx(tt,{label:l("agree"),onClick:h,disabled:!r})]})]})})}function tE({expiredToken:i,onTokenRefreshed:l}){const{t:s}=ut(),[r,c]=A.useState(),f=async p=>{var h;if(p){c(void 0);try{const g=await Un({command:"renewSession",sessionToken:i,recaptchaToken:p});g.success&&((h=g.result)!=null&&h.token)?l(g.result.token):c(s("sessionRenewalFailed"))}catch(g){c(s("errorConnectingToServer")),console.error(g)}}};return E.jsx("div",{className:"Dialog-backdrop",children:E.jsx("div",{className:"Dialog-container",children:E.jsxs(Et,{className:"p-4",children:[E.jsx("h2",{className:"mb-4 text-center",children:s("extendYourSession")}),r&&E.jsx("div",{className:"Alert error",children:E.jsx("p",{className:"m-0",children:r})}),E.jsx("div",{className:"Layout-flex Layout-align-center Layout-gap Layout-justify-center Layout-wrap my-4",children:E.jsx(xg,{onTokenReceived:f})}),E.jsx("p",{className:"InfoText",children:s("newTabRestartMessage")})]})})})}function nE(i){if(!i)return!1;try{const l=i.split(".");if(l.length!==3)return!1;const s=JSON.parse(atob(l[1]));if(!s.exp)return!1;const r=s.exp*1e3;return Date.now()<r?!0:"expired"}catch(l){return console.error("Error checking JWT token validity:",l),!1}}function aE(){const[i,l]=A.useState(),[s,r]=A.useState(),c=ua(h=>h.resetSession);A.useEffect(()=>{const h=si(),g=nE(h);if(!h||!g){c();return}g==="expired"?r(h):l(h)},[c]);const f=h=>{Op(h),l(h)},p=h=>{Op(h),l(h),r(void 0)};return E.jsxs("div",{className:"App",children:[E.jsx("div",{className:"App-content",children:i?E.jsx(Px,{sessionToken:i,onSessionExpired:()=>l(void 0)}):s?E.jsx(tE,{expiredToken:s,onTokenRefreshed:p}):E.jsx(eE,{onVerified:f})}),E.jsx(Ix,{sessionToken:i})]})}async function lE(){const i=document.getElementById("site-generator-app");i&&lS.createRoot(i).render(E.jsx(No.StrictMode,{children:E.jsx(aE,{})}))}lE().catch(i=>console.error(i));
113
+ `}tablecell(i){const n=this.parser.parseInline(i.tokens),r=i.header?"th":"td";return(i.align?`<${r} align="${i.align}">`:`<${r}>`)+n+`</${r}>
114
+ `}strong({tokens:i}){return`<strong>${this.parser.parseInline(i)}</strong>`}em({tokens:i}){return`<em>${this.parser.parseInline(i)}</em>`}codespan({text:i}){return`<code>${Pt(i,!0)}</code>`}br(i){return"<br>"}del({tokens:i}){return`<del>${this.parser.parseInline(i)}</del>`}link({href:i,title:n,tokens:r}){const s=this.parser.parseInline(r),o=tm(i);if(o===null)return s;i=o;let f='<a href="'+i+'"';return n&&(f+=' title="'+Pt(n)+'"'),f+=">"+s+"</a>",f}image({href:i,title:n,text:r,tokens:s}){s&&(r=this.parser.parseInline(s,this.parser.textRenderer));const o=tm(i);if(o===null)return Pt(r);i=o;let f=`<img src="${i}" alt="${r}"`;return n&&(f+=` title="${Pt(n)}"`),f+=">",f}text(i){return"tokens"in i&&i.tokens?this.parser.parseInline(i.tokens):"escaped"in i&&i.escaped?i.text:Pt(i.text)}},pc=class{strong({text:i}){return i}em({text:i}){return i}codespan({text:i}){return i}del({text:i}){return i}html({text:i}){return i}text({text:i}){return i}link({text:i}){return""+i}image({text:i}){return""+i}br(){return""}},ma=class Zo{constructor(n){Oe(this,"options");Oe(this,"renderer");Oe(this,"textRenderer");this.options=n||mn,this.options.renderer=this.options.renderer||new es,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new pc}static parse(n,r){return new Zo(r).parse(n)}static parseInline(n,r){return new Zo(r).parseInline(n)}parse(n,r=!0){var o,f;let s="";for(let p=0;p<n.length;p++){const h=n[p];if((f=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&f[h.type]){const d=h,v=this.options.extensions.renderers[d.type].call({parser:this},d);if(v!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type)){s+=v||"";continue}}const m=h;switch(m.type){case"space":{s+=this.renderer.space(m);continue}case"hr":{s+=this.renderer.hr(m);continue}case"heading":{s+=this.renderer.heading(m);continue}case"code":{s+=this.renderer.code(m);continue}case"table":{s+=this.renderer.table(m);continue}case"blockquote":{s+=this.renderer.blockquote(m);continue}case"list":{s+=this.renderer.list(m);continue}case"html":{s+=this.renderer.html(m);continue}case"paragraph":{s+=this.renderer.paragraph(m);continue}case"text":{let d=m,v=this.renderer.text(d);for(;p+1<n.length&&n[p+1].type==="text";)d=n[++p],v+=`
115
+ `+this.renderer.text(d);r?s+=this.renderer.paragraph({type:"paragraph",raw:v,text:v,tokens:[{type:"text",raw:v,text:v,escaped:!0}]}):s+=v;continue}default:{const d='Token with "'+m.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return s}parseInline(n,r=this.renderer){var o,f;let s="";for(let p=0;p<n.length;p++){const h=n[p];if((f=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&f[h.type]){const d=this.options.extensions.renderers[h.type].call({parser:this},h);if(d!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(h.type)){s+=d||"";continue}}const m=h;switch(m.type){case"escape":{s+=r.text(m);break}case"html":{s+=r.html(m);break}case"link":{s+=r.link(m);break}case"image":{s+=r.image(m);break}case"strong":{s+=r.strong(m);break}case"em":{s+=r.em(m);break}case"codespan":{s+=r.codespan(m);break}case"br":{s+=r.br(m);break}case"del":{s+=r.del(m);break}case"text":{s+=r.text(m);break}default:{const d='Token with "'+m.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return s}},Mo,Kr=(Mo=class{constructor(i){Oe(this,"options");Oe(this,"block");this.options=i||mn}preprocess(i){return i}postprocess(i){return i}processAllTokens(i){return i}provideLexer(){return this.block?pa.lex:pa.lexInline}provideParser(){return this.block?ma.parse:ma.parseInline}},Oe(Mo,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),Mo),oN=class{constructor(...i){Oe(this,"defaults",rc());Oe(this,"options",this.setOptions);Oe(this,"parse",this.parseMarkdown(!0));Oe(this,"parseInline",this.parseMarkdown(!1));Oe(this,"Parser",ma);Oe(this,"Renderer",es);Oe(this,"TextRenderer",pc);Oe(this,"Lexer",pa);Oe(this,"Tokenizer",Ir);Oe(this,"Hooks",Kr);this.use(...i)}walkTokens(i,n){var s,o;let r=[];for(const f of i)switch(r=r.concat(n.call(this,f)),f.type){case"table":{const p=f;for(const h of p.header)r=r.concat(this.walkTokens(h.tokens,n));for(const h of p.rows)for(const m of h)r=r.concat(this.walkTokens(m.tokens,n));break}case"list":{const p=f;r=r.concat(this.walkTokens(p.items,n));break}default:{const p=f;(o=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&o[p.type]?this.defaults.extensions.childTokens[p.type].forEach(h=>{const m=p[h].flat(1/0);r=r.concat(this.walkTokens(m,n))}):p.tokens&&(r=r.concat(this.walkTokens(p.tokens,n)))}}return r}use(...i){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return i.forEach(r=>{const s={...r};if(s.async=this.defaults.async||s.async||!1,r.extensions&&(r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){const f=n.renderers[o.name];f?n.renderers[o.name]=function(...p){let h=o.renderer.apply(this,p);return h===!1&&(h=f.apply(this,p)),h}:n.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const f=n[o.level];f?f.unshift(o.tokenizer):n[o.level]=[o.tokenizer],o.start&&(o.level==="block"?n.startBlock?n.startBlock.push(o.start):n.startBlock=[o.start]:o.level==="inline"&&(n.startInline?n.startInline.push(o.start):n.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(n.childTokens[o.name]=o.childTokens)}),s.extensions=n),r.renderer){const o=this.defaults.renderer||new es(this.defaults);for(const f in r.renderer){if(!(f in o))throw new Error(`renderer '${f}' does not exist`);if(["options","parser"].includes(f))continue;const p=f,h=r.renderer[p],m=o[p];o[p]=(...d)=>{let v=h.apply(o,d);return v===!1&&(v=m.apply(o,d)),v||""}}s.renderer=o}if(r.tokenizer){const o=this.defaults.tokenizer||new Ir(this.defaults);for(const f in r.tokenizer){if(!(f in o))throw new Error(`tokenizer '${f}' does not exist`);if(["options","rules","lexer"].includes(f))continue;const p=f,h=r.tokenizer[p],m=o[p];o[p]=(...d)=>{let v=h.apply(o,d);return v===!1&&(v=m.apply(o,d)),v}}s.tokenizer=o}if(r.hooks){const o=this.defaults.hooks||new Kr;for(const f in r.hooks){if(!(f in o))throw new Error(`hook '${f}' does not exist`);if(["options","block"].includes(f))continue;const p=f,h=r.hooks[p],m=o[p];Kr.passThroughHooks.has(f)?o[p]=d=>{if(this.defaults.async)return Promise.resolve(h.call(o,d)).then(x=>m.call(o,x));const v=h.call(o,d);return m.call(o,v)}:o[p]=(...d)=>{let v=h.apply(o,d);return v===!1&&(v=m.apply(o,d)),v}}s.hooks=o}if(r.walkTokens){const o=this.defaults.walkTokens,f=r.walkTokens;s.walkTokens=function(p){let h=[];return h.push(f.call(this,p)),o&&(h=h.concat(o.call(this,p))),h}}this.defaults={...this.defaults,...s}}),this}setOptions(i){return this.defaults={...this.defaults,...i},this}lexer(i,n){return pa.lex(i,n??this.defaults)}parser(i,n){return ma.parse(i,n??this.defaults)}parseMarkdown(i){return(r,s)=>{const o={...s},f={...this.defaults,...o},p=this.onError(!!f.silent,!!f.async);if(this.defaults.async===!0&&o.async===!1)return p(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return p(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return p(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));f.hooks&&(f.hooks.options=f,f.hooks.block=i);const h=f.hooks?f.hooks.provideLexer():i?pa.lex:pa.lexInline,m=f.hooks?f.hooks.provideParser():i?ma.parse:ma.parseInline;if(f.async)return Promise.resolve(f.hooks?f.hooks.preprocess(r):r).then(d=>h(d,f)).then(d=>f.hooks?f.hooks.processAllTokens(d):d).then(d=>f.walkTokens?Promise.all(this.walkTokens(d,f.walkTokens)).then(()=>d):d).then(d=>m(d,f)).then(d=>f.hooks?f.hooks.postprocess(d):d).catch(p);try{f.hooks&&(r=f.hooks.preprocess(r));let d=h(r,f);f.hooks&&(d=f.hooks.processAllTokens(d)),f.walkTokens&&this.walkTokens(d,f.walkTokens);let v=m(d,f);return f.hooks&&(v=f.hooks.postprocess(v)),v}catch(d){return p(d)}}}onError(i,n){return r=>{if(r.message+=`
116
+ Please report this to https://github.com/markedjs/marked.`,i){const s="<p>An error occurred:</p><pre>"+Pt(r.message+"",!0)+"</pre>";return n?Promise.resolve(s):s}if(n)return Promise.reject(r);throw r}}},dn=new oN;function Re(i,n){return dn.parse(i,n)}Re.options=Re.setOptions=function(i){return dn.setOptions(i),Re.defaults=dn.defaults,Am(Re.defaults),Re};Re.getDefaults=rc;Re.defaults=mn;Re.use=function(...i){return dn.use(...i),Re.defaults=dn.defaults,Am(Re.defaults),Re};Re.walkTokens=function(i,n){return dn.walkTokens(i,n)};Re.parseInline=dn.parseInline;Re.Parser=ma;Re.parser=ma.parse;Re.Renderer=es;Re.TextRenderer=pc;Re.Lexer=pa;Re.lexer=pa.lex;Re.Tokenizer=Ir;Re.Hooks=Kr;Re.parse=Re;Re.options;Re.setOptions;Re.use;Re.walkTokens;Re.parseInline;ma.parse;pa.lex;function cN(i){if(!i)return"";try{return Re.parse(i,{async:!1,gfm:!0,breaks:!0})}catch(n){return console.error("Error rendering markdown:",n),i}}function Ni({content:i,title:n,variant:r="default",className:s="",children:o}){const f=["Explanation",`Explanation-${r}`,s].filter(Boolean).join(" ");return b.jsxs("div",{className:f,children:[n&&b.jsx("h3",{className:"Explanation-title",children:n}),b.jsx("div",{className:"Explanation-content markdown-content",dangerouslySetInnerHTML:{__html:cN(i)}}),o]})}function fN({isOpen:i,title:n,message:r,confirmLabel:s,cancelLabel:o,onConfirm:f,onCancel:p}){const{t:h}=ot(),[m,d]=T.useState(!0);if(!i)return null;const v=async()=>{await f({withSampleData:m})},x=S=>{S.key==="Escape"&&p()};return b.jsxs("div",{className:"ConfirmDialog",children:[b.jsx("div",{className:"ConfirmDialog-backdrop",onClick:p,onKeyDown:x,tabIndex:0,role:"button","aria-label":"Close dialog"}),b.jsxs("div",{className:"ConfirmDialog-container",children:[b.jsx("div",{className:"ConfirmDialog-header",children:b.jsx("h3",{className:"ConfirmDialog-title",children:n})}),b.jsxs("div",{className:"ConfirmDialog-body",children:[b.jsx("p",{children:r}),b.jsx("div",{className:"ConfirmDialog-checkbox mt-3",children:b.jsxs("label",{children:[b.jsx("input",{type:"checkbox",checked:m,onChange:S=>d(S.target.checked)}),b.jsx("span",{className:"ml-2",children:h("generateSiteWithData")})]})})]}),b.jsxs("div",{className:"ConfirmDialog-footer",children:[b.jsx(rt,{onClick:p,severity:"secondary",className:"ConfirmDialog-button",children:o||h("cancel")}),b.jsx(rt,{onClick:v,className:"ConfirmDialog-button",children:s||h("confirm")})]})]})]})}function M(){return M=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var s in r)({}).hasOwnProperty.call(r,s)&&(i[s]=r[s])}return i},M.apply(null,arguments)}function ge(i,n){if(i==null)return{};var r={};for(var s in i)if({}.hasOwnProperty.call(i,s)){if(n.indexOf(s)!==-1)continue;r[s]=i[s]}return r}var Vm={},$m=T.createContext(Vm),dN=(i,n)=>M({},i,n),hN=()=>T.useContext($m),mc=T.createContext(()=>{});mc.displayName="JVR.DispatchShowTools";function pN(){return T.useReducer(dN,Vm)}function qm(){return T.useContext(mc)}var Gm=i=>{var{initial:n,dispatch:r,children:s}=i;return b.jsx($m.Provider,{value:n,children:b.jsx(mc.Provider,{value:r,children:s})})};Gm.displayName="JVR.ShowTools";var Ym={},Qm=T.createContext(Ym),mN=(i,n)=>M({},i,n),ss=()=>T.useContext(Qm),gc=T.createContext(()=>{});gc.displayName="JVR.DispatchExpands";function gN(){return T.useReducer(mN,Ym)}function vN(){return T.useContext(gc)}var Zm=i=>{var{initial:n,dispatch:r,children:s}=i;return b.jsx(Qm.Provider,{value:n,children:b.jsx(gc.Provider,{value:r,children:s})})};Zm.displayName="JVR.Expands";var Km={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},Xm=T.createContext(Km),yN=(i,n)=>M({},i,n),Le=()=>T.useContext(Xm),vc=T.createContext(()=>{});vc.displayName="JVR.DispatchTypes";function bN(){return T.useReducer(yN,Km)}function SN(){return T.useContext(vc)}function Jm(i){var{initial:n,dispatch:r,children:s}=i;return b.jsx(Xm.Provider,{value:n,children:b.jsx(vc.Provider,{value:r,children:s})})}Jm.displayName="JVR.Types";var xN=["style"];function Fm(i){var{style:n}=i,r=ge(i,xN),s=M({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},n);return b.jsx("svg",M({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:s},r,{children:b.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}Fm.displayName="JVR.TriangleArrow";var Pm={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:b.jsx(Fm,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},Wm=T.createContext(Pm),NN=(i,n)=>M({},i,n),mt=()=>T.useContext(Wm),yc=T.createContext(()=>{});yc.displayName="JVR.DispatchSymbols";function EN(){return T.useReducer(NN,Pm)}function RN(){return T.useContext(yc)}var Im=i=>{var{initial:n,dispatch:r,children:s}=i;return b.jsx(Wm.Provider,{value:n,children:b.jsx(yc.Provider,{value:r,children:s})})};Im.displayName="JVR.Symbols";var eg={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},tg=T.createContext(eg),TN=(i,n)=>M({},i,n),Bt=()=>T.useContext(tg),bc=T.createContext(()=>{});bc.displayName="JVR.DispatchSection";function wN(){return T.useReducer(TN,eg)}function CN(){return T.useContext(bc)}var ag=i=>{var{initial:n,dispatch:r,children:s}=i;return b.jsx(tg.Provider,{value:n,children:b.jsx(bc.Provider,{value:r,children:s})})};ag.displayName="JVR.Section";var ng={objectSortKeys:!1,indentWidth:15},Sc=T.createContext(ng);Sc.displayName="JVR.Context";var lg=T.createContext(()=>{});lg.displayName="JVR.DispatchContext";function jN(i,n){return M({},i,n)}var gn=()=>T.useContext(Sc),ig=i=>{var{children:n,initialState:r,initialTypes:s}=i,[o,f]=T.useReducer(jN,Object.assign({},ng,r)),[p,h]=pN(),[m,d]=gN(),[v,x]=bN(),[S,C]=EN(),[E,z]=wN();return T.useEffect(()=>f(M({},r)),[r]),b.jsx(Sc.Provider,{value:o,children:b.jsx(lg.Provider,{value:f,children:b.jsx(Gm,{initial:p,dispatch:h,children:b.jsx(Zm,{initial:m,dispatch:d,children:b.jsx(Jm,{initial:M({},v,s),dispatch:x,children:b.jsx(Im,{initial:S,dispatch:C,children:b.jsx(ag,{initial:E,dispatch:z,children:n})})})})})})})};ig.displayName="JVR.Provider";function AN(i){if(i==null)throw new TypeError("Cannot destructure "+i)}var ON=["isNumber","value","parentValue","keyName","keys"],kN=["as","render"],LN=["as","render"],zN=["as","render"],DN=["as","style","render"],_N=["as","render"],MN=["as","render"],UN=["as","render"],BN=["as","render"],Ko=i=>{var{Quote:n={}}=mt(),{isNumber:r,value:s,parentValue:o,keyName:f,keys:p}=i,h=ge(i,ON);if(r)return null;var{as:m,render:d}=n,v=ge(n,kN),x=m||"span",S=M({},h,v),C={value:s,parentValue:o,keyName:f,keys:p||(f?[f]:[])},E=d&&typeof d=="function"&&d(S,C);return E||b.jsx(x,M({},S))};Ko.displayName="JVR.Quote";var yi=i=>{var{ValueQuote:n={}}=mt(),r=M({},(AN(i),i)),{as:s,render:o}=n,f=ge(n,LN),p=s||"span",h=M({},r,f),m=o&&typeof o=="function"&&o(h,{});return m||b.jsx(p,M({},h))};yi.displayName="JVR.ValueQuote";var rg=i=>{var{value:n,parentValue:r,keyName:s,keys:o}=i,{Colon:f={}}=mt(),{as:p,render:h}=f,m=ge(f,zN),d=p||"span",v=h&&typeof h=="function"&&h(m,{value:n,parentValue:r,keyName:s,keys:o||(s?[s]:[])});return v||b.jsx(d,M({},m))};rg.displayName="JVR.Colon";var sg=i=>{var{Arrow:n={}}=mt(),r=ss(),{expandKey:s,style:o,value:f,parentValue:p,keyName:h,keys:m}=i,d=!!r[s],{as:v,style:x,render:S}=n,C=ge(n,DN),E=v||"span",z=S&&typeof S=="function",B=M({},C,{"data-expanded":d,style:M({},x,o)}),U={value:f,parentValue:p,keyName:h,keys:m||(h?[h]:[])},D=z&&S(B,U);return D||b.jsx(E,M({},C,{style:M({},x,o)}))};sg.displayName="JVR.Arrow";var ug=i=>{var{isBrackets:n,value:r,parentValue:s,keyName:o,keys:f}=i,{BracketsLeft:p={},BraceLeft:h={}}=mt(),m={value:r,parentValue:s,keyName:o,keys:f||(o?[o]:[])};if(n){var{as:d,render:v}=p,x=ge(p,_N),S=d||"span",C=v&&typeof v=="function"&&v(x,m);return C||b.jsx(S,M({},x))}var{as:E,render:z}=h,B=ge(h,MN),U=E||"span",D=z&&typeof z=="function"&&z(B,m);return D||b.jsx(U,M({},B))};ug.displayName="JVR.BracketsOpen";var xc=i=>{var{isBrackets:n,isVisiable:r,value:s,parentValue:o,keyName:f,keys:p}=i,h={value:s,parentValue:o,keyName:f,keys:p||(f?[f]:[])};if(!r)return null;var{BracketsRight:m={},BraceRight:d={}}=mt();if(n){var{as:v,render:x}=m,S=ge(m,UN),C=v||"span",E=x&&typeof x=="function"&&x(S,h);return E||b.jsx(C,M({},S))}var{as:z,render:B}=d,U=ge(d,BN),D=z||"span",G=B&&typeof B=="function"&&B(U,h);return G||b.jsx(D,M({},U))};xc.displayName="JVR.BracketsClose";var og=i=>{var n,{value:r,expandKey:s,level:o,keys:f=[]}=i,p=ss(),h=Array.isArray(r),{collapsed:m,shouldExpandNodeInitially:d}=gn(),v=r instanceof Set,x=typeof m=="boolean"?m:typeof m=="number"?o>m:!1,S=(n=p[s])!=null?n:x,C=Object.keys(r).length;if(p[s]===void 0&&d&&d(S,{value:r,keys:f,level:o})||S||C===0)return null;var E={paddingLeft:4};return b.jsx("div",{style:E,children:b.jsx(xc,{isBrackets:h||v,isVisiable:!0})})};og.displayName="JVR.NestedClose";var HN=["as","render"],VN=["as","render"],$N=["as","render"],qN=["as","render"],GN=["as","render"],YN=["as","render"],QN=["as","render"],ZN=["as","render"],KN=["as","render"],XN=["as","render"],JN=["as","render"],FN=["as","render"],PN=["as","render"],Xo=i=>{if(i===void 0)return"0n";if(typeof i=="string")try{i=BigInt(i)}catch{return"0n"}return i?i.toString()+"n":"0n"},cg=i=>{var{value:n,keyName:r}=i,{Set:s={},displayDataTypes:o}=Le(),f=n instanceof Set;if(!f||!o)return null;var{as:p,render:h}=s,m=ge(s,HN),d=h&&typeof h=="function",v=d&&h(m,{type:"type",value:n,keyName:r});if(v)return v;var x=p||"span";return b.jsx(x,M({},m))};cg.displayName="JVR.SetComp";var fg=i=>{var{value:n,keyName:r}=i,{Map:s={},displayDataTypes:o}=Le(),f=n instanceof Map;if(!f||!o)return null;var{as:p,render:h}=s,m=ge(s,VN),d=h&&typeof h=="function",v=d&&h(m,{type:"type",value:n,keyName:r});if(v)return v;var x=p||"span";return b.jsx(x,M({},m))};fg.displayName="JVR.MapComp";var Yt={opacity:.75,paddingRight:4},dg=i=>{var{children:n="",keyName:r}=i,{Str:s={},displayDataTypes:o}=Le(),{shortenTextAfterLength:f=30,stringEllipsis:p="..."}=gn(),{as:h,render:m}=s,d=ge(s,$N),v=n,[x,S]=T.useState(f&&v.length>f);T.useEffect(()=>S(f&&v.length>f),[f]);var C=h||"span",E=M({},Yt,s.style||{});f>0&&(d.style=M({},d.style,{cursor:v.length<=f?"initial":"pointer"}),v.length>f&&(d.onClick=()=>{S(!x)}));var z=x?""+v.slice(0,f)+p:v,B=m&&typeof m=="function",U=B&&m(M({},d,{style:E}),{type:"type",value:n,keyName:r}),D=x?"w-rjv-value w-rjv-value-short":"w-rjv-value",G=B&&m(M({},d,{children:z,className:D}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(U||b.jsx(C,M({},d,{style:E}))),G||b.jsxs(T.Fragment,{children:[b.jsx(yi,{}),b.jsx(C,M({},d,{className:D,children:z})),b.jsx(yi,{})]})]})};dg.displayName="JVR.TypeString";var hg=i=>{var{children:n,keyName:r}=i,{True:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,qN),m=f||"span",d=M({},Yt,s.style||{}),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=v&&p(M({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),S||b.jsx(m,M({},h,{className:"w-rjv-value",children:n==null?void 0:n.toString()}))]})};hg.displayName="JVR.TypeTrue";var pg=i=>{var{children:n,keyName:r}=i,{False:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,GN),m=f||"span",d=M({},Yt,s.style||{}),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=v&&p(M({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),S||b.jsx(m,M({},h,{className:"w-rjv-value",children:n==null?void 0:n.toString()}))]})};pg.displayName="JVR.TypeFalse";var mg=i=>{var{children:n,keyName:r}=i,{Float:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,YN),m=f||"span",d=M({},Yt,s.style||{}),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=v&&p(M({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),S||b.jsx(m,M({},h,{className:"w-rjv-value",children:n==null?void 0:n.toString()}))]})};mg.displayName="JVR.TypeFloat";var gg=i=>{var{children:n,keyName:r}=i,{Int:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,QN),m=f||"span",d=M({},Yt,s.style||{}),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=v&&p(M({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),S||b.jsx(m,M({},h,{className:"w-rjv-value",children:n==null?void 0:n.toString()}))]})};gg.displayName="JVR.TypeInt";var vg=i=>{var{children:n,keyName:r}=i,{Bigint:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,ZN),m=f||"span",d=M({},Yt,s.style||{}),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=v&&p(M({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),S||b.jsx(m,M({},h,{className:"w-rjv-value",children:Xo(n==null?void 0:n.toString())}))]})};vg.displayName="JVR.TypeFloat";var yg=i=>{var{children:n,keyName:r}=i,{Url:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,KN),m=f||"span",d=M({},Yt,s.style),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=v&&p(M({},h,{children:n==null?void 0:n.href,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),S||b.jsxs("a",M({href:n==null?void 0:n.href,target:"_blank"},h,{className:"w-rjv-value",children:[b.jsx(yi,{}),n==null?void 0:n.href,b.jsx(yi,{})]}))]})};yg.displayName="JVR.TypeUrl";var bg=i=>{var{children:n,keyName:r}=i,{Date:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,XN),m=f||"span",d=M({},Yt,s.style||{}),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=n instanceof Date?n.toLocaleString():n,C=v&&p(M({},h,{children:S,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),C||b.jsx(m,M({},h,{className:"w-rjv-value",children:S}))]})};bg.displayName="JVR.TypeDate";var Sg=i=>{var{children:n,keyName:r}=i,{Undefined:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,JN),m=f||"span",d=M({},Yt,s.style||{}),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=v&&p(M({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),S]})};Sg.displayName="JVR.TypeUndefined";var xg=i=>{var{children:n,keyName:r}=i,{Null:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,FN),m=f||"span",d=M({},Yt,s.style||{}),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=v&&p(M({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),S]})};xg.displayName="JVR.TypeNull";var Ng=i=>{var{children:n,keyName:r}=i,{Nan:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,PN),m=f||"span",d=M({},Yt,s.style||{}),v=p&&typeof p=="function",x=v&&p(M({},h,{style:d}),{type:"type",value:n,keyName:r}),S=v&&p(M({},h,{children:n==null?void 0:n.toString(),className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(T.Fragment,{children:[o&&(x||b.jsx(m,M({},h,{style:d}))),S]})};Ng.displayName="JVR.TypeNan";var WN=i=>Number(i)===i&&i%1!==0||isNaN(i),Eg=i=>{var{value:n,keyName:r}=i,s={keyName:r};return n instanceof URL?b.jsx(yg,M({},s,{children:n})):typeof n=="string"?b.jsx(dg,M({},s,{children:n})):n===!0?b.jsx(hg,M({},s,{children:n})):n===!1?b.jsx(pg,M({},s,{children:n})):n===null?b.jsx(xg,M({},s,{children:n})):n===void 0?b.jsx(Sg,M({},s,{children:n})):n instanceof Date?b.jsx(bg,M({},s,{children:n})):typeof n=="number"&&isNaN(n)?b.jsx(Ng,M({},s,{children:n})):typeof n=="number"&&WN(n)?b.jsx(mg,M({},s,{children:n})):typeof n=="bigint"?b.jsx(vg,M({},s,{children:n})):typeof n=="number"?b.jsx(gg,M({},s,{children:n})):null};Eg.displayName="JVR.Value";function Qa(i,n,r){var s=RN(),o=[i.className,n.className].filter(Boolean).join(" "),f=M({},i,n,{className:o,style:M({},i.style,n.style),children:n.children||i.children});T.useEffect(()=>s({[r]:f}),[n])}function Ct(i,n,r){var s=SN(),o=[i.className,n.className].filter(Boolean).join(" "),f=M({},i,n,{className:o,style:M({},i.style,n.style),children:n.children||i.children});T.useEffect(()=>s({[r]:f}),[n])}function sl(i,n,r){var s=CN(),o=[i.className,n.className].filter(Boolean).join(" "),f=M({},i,n,{className:o,style:M({},i.style,n.style),children:n.children||i.children});T.useEffect(()=>s({[r]:f}),[n])}var IN=["as","render"],Rg=i=>{var{KeyName:n={}}=Bt();return sl(n,i,"KeyName"),null};Rg.displayName="JVR.KeyName";var Tg=i=>{var{children:n,value:r,parentValue:s,keyName:o,keys:f}=i,p=typeof n=="number",h={color:p?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:m={}}=Bt(),{as:d,render:v}=m,x=ge(m,IN);x.style=M({},x.style,h);var S=d||"span",C=v&&typeof v=="function"&&v(M({},x,{children:n}),{value:r,parentValue:s,keyName:o,keys:f||(o?[o]:[])});return C||b.jsx(S,M({},x,{children:n}))};Tg.displayName="JVR.KeyNameComp";var eE=["children","value","parentValue","keyName","keys"],tE=["as","render","children"],wg=i=>{var{Row:n={}}=Bt();return sl(n,i,"Row"),null};wg.displayName="JVR.Row";var Cg=i=>{var{children:n,value:r,parentValue:s,keyName:o,keys:f}=i,p=ge(i,eE),{Row:h={}}=Bt(),{as:m,render:d}=h,v=ge(h,tE),x=m||"div",S=d&&typeof d=="function"&&d(M({},p,v,{children:n}),{value:r,keyName:o,parentValue:s,keys:f});return S||b.jsx(x,M({},p,v,{children:n}))};Cg.displayName="JVR.RowComp";function aE(i){var n=T.useRef();return T.useEffect(()=>{n.current=i}),n.current}function nE(i){var{value:n,highlightUpdates:r,highlightContainer:s}=i,o=aE(n),f=T.useMemo(()=>{if(!r||o===void 0)return!1;if(typeof n!=typeof o)return!0;if(typeof n=="number")return isNaN(n)&&isNaN(o)?!1:n!==o;if(Array.isArray(n)!==Array.isArray(o))return!0;if(typeof n=="object"||typeof n=="function")return!1;if(n!==o)return!0},[r,n]);T.useEffect(()=>{s&&s.current&&f&&"animate"in s.current&&s.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[f,n,s])}var lE=["keyName","value","parentValue","expandKey","keys"],iE=["as","render"],Nc=i=>{var{keyName:n,value:r,parentValue:s,expandKey:o,keys:f}=i,p=ge(i,lE),{onCopied:h,enableClipboard:m}=gn(),d=hN(),v=d[o],[x,S]=T.useState(!1),{Copied:C={}}=Bt();if(m===!1||!v)return null;var E=K=>{K.stopPropagation();var ue="";typeof r=="number"&&r===1/0?ue="Infinity":typeof r=="number"&&isNaN(r)?ue="NaN":typeof r=="bigint"?ue=Xo(r):r instanceof Date?ue=r.toLocaleString():ue=JSON.stringify(r,(ee,F)=>typeof F=="bigint"?Xo(F):F,2),h&&h(ue,r),S(!0);var re=navigator.clipboard||{writeText(ee){return new Promise((F,ne)=>{var pe=document.createElement("textarea");pe.style.position="absolute",pe.style.opacity="0",pe.style.left="-99999999px",pe.value=ee,document.body.appendChild(pe),pe.select(),document.execCommand("copy")?F():ne(),pe.remove()})}};re.writeText(ue).then(()=>{var ee=setTimeout(()=>{S(!1),clearTimeout(ee)},3e3)}).catch(ee=>{})},z={style:{display:"inline-flex"},fill:x?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:E},{render:B}=C,U=ge(C,iE),D=M({},U,p,z,{style:M({},U.style,p.style,z.style)}),G=B&&typeof B=="function",J=G&&B(M({},D,{"data-copied":x}),{value:r,keyName:n,keys:f,parentValue:s});return J||(x?b.jsx("svg",M({viewBox:"0 0 32 36"},D,{children:b.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):b.jsx("svg",M({viewBox:"0 0 32 36"},D,{children:b.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};Nc.displayName="JVR.Copied";function jg(){var i=T.useRef(null);return i.current===null&&(i.current="custom-id-"+Math.random().toString(36).substr(2,9)),i.current}var Ag=i=>{var n,{value:r,expandKey:s="",level:o,keys:f=[]}=i,p=ss(),{objectSortKeys:h,indentWidth:m,collapsed:d,shouldExpandNodeInitially:v}=gn(),x=Array.isArray(r),S=typeof d=="boolean"?d:typeof d=="number"?o>d:!1,C=(n=p[s])!=null?n:S;if(p[s]===void 0&&v&&v(C,{value:r,keys:f,level:o})||C)return null;var E=x?Object.entries(r).map(B=>[Number(B[0]),B[1]]):Object.entries(r);h&&(E=h===!0?E.sort((B,U)=>{var[D]=B,[G]=U;return typeof D=="string"&&typeof G=="string"?D.localeCompare(G):0}):E.sort((B,U)=>{var[D,G]=B,[J,K]=U;return typeof D=="string"&&typeof J=="string"?h(D,J,G,K):0}));var z={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:m,marginLeft:6};return b.jsx("div",{className:"w-rjv-wrap",style:z,children:E.map((B,U)=>{var[D,G]=B;return b.jsx(Og,{parentValue:r,keyName:D,keys:[...f,D],value:G,level:o},U)})})};Ag.displayName="JVR.KeyValues";var Ec=i=>{var{keyName:n,parentValue:r,keys:s,value:o}=i,{highlightUpdates:f}=gn(),p=typeof n=="number",h=T.useRef(null);nE({value:o,highlightUpdates:f,highlightContainer:h});var m={keyName:n,value:o,keys:s,parentValue:r};return b.jsxs(T.Fragment,{children:[b.jsxs("span",{ref:h,children:[b.jsx(Ko,M({isNumber:p,"data-placement":"left"},m)),b.jsx(Tg,M({},m,{children:n})),b.jsx(Ko,M({isNumber:p,"data-placement":"right"},m))]}),b.jsx(rg,M({},m))]})};Ec.displayName="JVR.KayName";var Og=i=>{var{keyName:n,value:r,parentValue:s,level:o=0,keys:f=[]}=i,p=qm(),h=jg(),m=Array.isArray(r),d=r instanceof Set,v=r instanceof Map,x=r instanceof Date,S=r instanceof URL,C=r&&typeof r=="object"&&!m&&!d&&!v&&!x&&!S,E=C||m||d||v;if(E){var z=d?Array.from(r):v?Object.fromEntries(r):r;return b.jsx(Rc,{keyName:n,value:z,parentValue:s,initialValue:r,keys:f,level:o+1})}var B={onMouseEnter:()=>p({[h]:!0}),onMouseLeave:()=>p({[h]:!1})};return b.jsxs(Cg,M({className:"w-rjv-line",value:r,keyName:n,keys:f,parentValue:s},B,{children:[b.jsx(Ec,{keyName:n,value:r,keys:f,parentValue:s}),b.jsx(Eg,{keyName:n,value:r}),b.jsx(Nc,{keyName:n,value:r,keys:f,parentValue:s,expandKey:h})]}))};Og.displayName="JVR.KeyValuesItem";var rE=["value","keyName"],sE=["as","render"],kg=i=>{var{CountInfoExtra:n={}}=Bt();return sl(n,i,"CountInfoExtra"),null};kg.displayName="JVR.CountInfoExtra";var Lg=i=>{var{value:n={},keyName:r}=i,s=ge(i,rE),{CountInfoExtra:o={}}=Bt(),{as:f,render:p}=o,h=ge(o,sE);if(!p&&!h.children)return null;var m=f||"span",d=p&&typeof p=="function",v=M({},h,s),x=d&&p(v,{value:n,keyName:r});return x||b.jsx(m,M({},v))};Lg.displayName="JVR.CountInfoExtraComps";var uE=["value","keyName"],oE=["as","render"],zg=i=>{var{CountInfo:n={}}=Bt();return sl(n,i,"CountInfo"),null};zg.displayName="JVR.CountInfo";var Dg=i=>{var{value:n={},keyName:r}=i,s=ge(i,uE),{displayObjectSize:o}=gn(),{CountInfo:f={}}=Bt();if(!o)return null;var{as:p,render:h}=f,m=ge(f,oE),d=p||"span";m.style=M({},m.style,i.style);var v=Object.keys(n).length;m.children||(m.children=v+" item"+(v===1?"":"s"));var x=M({},m,s),S=h&&typeof h=="function",C=S&&h(M({},x,{"data-length":v}),{value:n,keyName:r});return C||b.jsx(d,M({},x))};Dg.displayName="JVR.CountInfoComp";var cE=["as","render"],_g=i=>{var{Ellipsis:n={}}=Bt();return sl(n,i,"Ellipsis"),null};_g.displayName="JVR.Ellipsis";var Mg=i=>{var{isExpanded:n,value:r,keyName:s}=i,{Ellipsis:o={}}=Bt(),{as:f,render:p}=o,h=ge(o,cE),m=f||"span",d=p&&typeof p=="function"&&p(M({},h,{"data-expanded":n}),{value:r,keyName:s});return d||(!n||typeof r=="object"&&Object.keys(r).length==0?null:b.jsx(m,M({},h)))};Mg.displayName="JVR.EllipsisComp";var Ug=i=>{var n,{keyName:r,expandKey:s,keys:o=[],initialValue:f,value:p,parentValue:h,level:m}=i,d=ss(),v=vN(),{onExpand:x,collapsed:S,shouldExpandNodeInitially:C}=gn(),E=Array.isArray(p),z=p instanceof Set,B=typeof S=="boolean"?S:typeof S=="number"?m>S:!1,U=typeof p=="object",D=(n=d[s])!=null?n:B,G=C&&C(D,{value:p,keys:o,level:m});d[s]===void 0&&G!==void 0&&(D=G);var J=()=>{var pe={expand:!D,value:p,keyid:s,keyName:r};x&&x(pe),v({[s]:pe.expand})},K={display:"inline-flex",alignItems:"center"},ue={transform:"rotate("+(D?"-90":"0")+"deg)",transition:"all 0.3s"},re=Object.keys(p).length,ee=re!==0&&(E||z||U),F={style:K};ee&&(F.onClick=J);var ne={keyName:r,value:p,keys:o,parentValue:h};return b.jsxs("span",M({},F,{children:[ee&&b.jsx(sg,M({style:ue,expandKey:s},ne)),(r||typeof r=="number")&&b.jsx(Ec,M({},ne)),b.jsx(cg,{value:f,keyName:r}),b.jsx(fg,{value:f,keyName:r}),b.jsx(ug,M({isBrackets:E||z},ne)),b.jsx(Mg,{keyName:r,value:p,isExpanded:D}),b.jsx(xc,M({isVisiable:D||!ee,isBrackets:E||z},ne)),b.jsx(Dg,{value:p,keyName:r}),b.jsx(Lg,{value:p,keyName:r}),b.jsx(Nc,{keyName:r,value:p,expandKey:s,parentValue:h,keys:o})]}))};Ug.displayName="JVR.NestedOpen";var fE=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],Rc=T.forwardRef((i,n)=>{var{className:r="",parentValue:s,level:o=1,value:f,initialValue:p,keys:h,keyName:m}=i,d=ge(i,fE),v=qm(),x=jg(),S=[r,"w-rjv-inner"].filter(Boolean).join(" "),C={onMouseEnter:()=>v({[x]:!0}),onMouseLeave:()=>v({[x]:!1})};return b.jsxs("div",M({className:S,ref:n},d,C,{children:[b.jsx(Ug,{expandKey:x,value:f,level:o,keys:h,parentValue:s,keyName:m,initialValue:p}),b.jsx(Ag,{expandKey:x,value:f,level:o,keys:h,parentValue:s,keyName:m}),b.jsx(og,{expandKey:x,value:f,level:o,keys:h})]}))});Rc.displayName="JVR.Container";var Bg=i=>{var{BraceLeft:n={}}=mt();return Qa(n,i,"BraceLeft"),null};Bg.displayName="JVR.BraceLeft";var Hg=i=>{var{BraceRight:n={}}=mt();return Qa(n,i,"BraceRight"),null};Hg.displayName="JVR.BraceRight";var Vg=i=>{var{BracketsLeft:n={}}=mt();return Qa(n,i,"BracketsLeft"),null};Vg.displayName="JVR.BracketsLeft";var $g=i=>{var{BracketsRight:n={}}=mt();return Qa(n,i,"BracketsRight"),null};$g.displayName="JVR.BracketsRight";var qg=i=>{var{Arrow:n={}}=mt();return Qa(n,i,"Arrow"),null};qg.displayName="JVR.Arrow";var Gg=i=>{var{Colon:n={}}=mt();return Qa(n,i,"Colon"),null};Gg.displayName="JVR.Colon";var Yg=i=>{var{Quote:n={}}=mt();return Qa(n,i,"Quote"),null};Yg.displayName="JVR.Quote";var Qg=i=>{var{ValueQuote:n={}}=mt();return Qa(n,i,"ValueQuote"),null};Qg.displayName="JVR.ValueQuote";var Zg=i=>{var{Bigint:n={}}=Le();return Ct(n,i,"Bigint"),null};Zg.displayName="JVR.Bigint";var Kg=i=>{var{Date:n={}}=Le();return Ct(n,i,"Date"),null};Kg.displayName="JVR.Date";var Xg=i=>{var{False:n={}}=Le();return Ct(n,i,"False"),null};Xg.displayName="JVR.False";var Jg=i=>{var{Float:n={}}=Le();return Ct(n,i,"Float"),null};Jg.displayName="JVR.Float";var Fg=i=>{var{Int:n={}}=Le();return Ct(n,i,"Int"),null};Fg.displayName="JVR.Int";var Pg=i=>{var{Map:n={}}=Le();return Ct(n,i,"Map"),null};Pg.displayName="JVR.Map";var Wg=i=>{var{Nan:n={}}=Le();return Ct(n,i,"Nan"),null};Wg.displayName="JVR.Nan";var Ig=i=>{var{Null:n={}}=Le();return Ct(n,i,"Null"),null};Ig.displayName="JVR.Null";var ev=i=>{var{Set:n={}}=Le();return Ct(n,i,"Set"),null};ev.displayName="JVR.Set";var tv=i=>{var{Str:n={}}=Le();return Ct(n,i,"Str"),null};tv.displayName="JVR.StringText";var av=i=>{var{True:n={}}=Le();return Ct(n,i,"True"),null};av.displayName="JVR.True";var nv=i=>{var{Undefined:n={}}=Le();return Ct(n,i,"Undefined"),null};nv.displayName="JVR.Undefined";var lv=i=>{var{Url:n={}}=Le();return Ct(n,i,"Url"),null};lv.displayName="JVR.Url";var iv=i=>{var{Copied:n={}}=Bt();return sl(n,i,"Copied"),null};iv.displayName="JVR.Copied";var dE=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","stringEllipsis","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied"],Te=T.forwardRef((i,n)=>{var{className:r="",style:s,value:o,children:f,collapsed:p,shouldExpandNodeInitially:h,indentWidth:m=15,displayObjectSize:d=!0,shortenTextAfterLength:v=30,stringEllipsis:x,highlightUpdates:S=!0,enableClipboard:C=!0,displayDataTypes:E=!0,objectSortKeys:z=!1,onExpand:B,onCopied:U}=i,D=ge(i,dE),G=M({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},s),J=["w-json-view-container","w-rjv",r].filter(Boolean).join(" ");return b.jsxs(ig,{initialState:{value:o,objectSortKeys:z,indentWidth:m,shouldExpandNodeInitially:h,displayObjectSize:d,collapsed:p,enableClipboard:C,shortenTextAfterLength:v,stringEllipsis:x,highlightUpdates:S,onCopied:U,onExpand:B},initialTypes:{displayDataTypes:E},children:[b.jsx(Rc,M({value:o},D,{ref:n,className:J,style:G})),f]})});Te.Bigint=Zg;Te.Date=Kg;Te.False=Xg;Te.Float=Jg;Te.Int=Fg;Te.Map=Pg;Te.Nan=Wg;Te.Null=Ig;Te.Set=ev;Te.String=tv;Te.True=av;Te.Undefined=nv;Te.Url=lv;Te.ValueQuote=Qg;Te.Arrow=qg;Te.Colon=Gg;Te.Quote=Yg;Te.Ellipsis=_g;Te.BraceLeft=Bg;Te.BraceRight=Hg;Te.BracketsLeft=Vg;Te.BracketsRight=$g;Te.Copied=iv;Te.CountInfo=zg;Te.CountInfoExtra=kg;Te.KeyName=Rg;Te.Row=wg;Te.displayName="JVR.JsonView";var lm={"--w-rjv-font-family":"monospace","--w-rjv-color":"#002b36","--w-rjv-key-string":"#002b36","--w-rjv-background-color":"#ffffff","--w-rjv-line-color":"#ebebeb","--w-rjv-arrow-color":"var(--w-rjv-color)","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#0000004d","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#002b36","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#236a7c","--w-rjv-colon-color":"#002b36","--w-rjv-brackets-color":"#236a7c","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#cb4b16","--w-rjv-type-int-color":"#268bd2","--w-rjv-type-float-color":"#859900","--w-rjv-type-bigint-color":"#268bd2","--w-rjv-type-boolean-color":"#2aa198","--w-rjv-type-date-color":"#586e75","--w-rjv-type-url-color":"#0969da","--w-rjv-type-null-color":"#d33682","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#586e75"};function hE(i){const n=Object.keys(i),r=n.length>0?n[0]:void 0;return(s,o,f={})=>{if(!r)return f.default??s;const p=i[o]??i[r],h=s.split(".");let m=p;for(const d of h){if(typeof m=="string"||!m||!(d in m))return f.default??s;m=m[d]}return typeof m=="string"?m:f.default??s}}function pE({siteSchema:i,schemaTranslate:n}){const r=new Set;return b.jsx("ul",{children:b.jsx(Jo,{schema:i,schemaT:n,typeName:"home",displayedNodeTypeNames:r})})}function Jo({schema:i,schemaT:n,typeName:r,depth:s=0,displayedNodeTypeNames:o}){const{i18n:f}=ot(),p=mE(i,r);if(!p)return null;const h=p.routingChildren||[],m=p.regularChildren||[],d=p.lists||[],v=p.documentKind==="routing",x=n(`nodeTypes.${r}.label`,f.language,{default:r});return o.has(r)?b.jsx("li",{children:b.jsxs("div",{children:[v?b.jsx("strong",{children:x}):x," (",b.jsx("code",{children:r}),")"]})}):(o.add(r),b.jsxs("li",{children:[b.jsxs("div",{children:[v?b.jsx("strong",{children:x}):x," (",b.jsx("code",{children:r}),")"]}),d.map(S=>b.jsxs("div",{style:{marginLeft:"30px",color:"#999",fontStyle:"italic"},children:[n(`nodeTypes.${r}.lists.${S.listName}.label`,f.language,{default:S.listName})," ","(",b.jsx("code",{children:S.listName})," [",b.jsx("code",{children:S.parts.join("</code>, <code>")}),"])"]},S.listName)),h.length>0&&b.jsx("ul",{children:h.map(S=>b.jsx(Jo,{schema:i,schemaT:n,typeName:S,depth:s+1,displayedNodeTypeNames:o},S))}),m.length>0&&b.jsx("ul",{children:m.map(S=>b.jsx(Jo,{schema:i,schemaT:n,typeName:S,depth:s+1,displayedNodeTypeNames:o},S))})]}))}function mE(i,n){var r;return(r=i.nodeTypes)==null?void 0:r.find(s=>s.kind==="document"&&s.typeName===n)}const qr=Te;function gE({step:i}){const{t:n}=ot(),[r,s]=T.useState("tree"),{siteSchema:o,l10n:f}=i,p=hE(f),h=(m,d)=>d.keys.length===1&&d.keys[0]==="plugins";return b.jsxs("div",{className:"SchemaViewer",children:[b.jsxs("div",{className:"SchemaViewer-tabs",children:[b.jsx(rt,{className:`SchemaViewer-tab ${r==="tree"?"active":""}`,onClick:()=>s("tree"),children:n("treeView")}),b.jsx(rt,{className:`SchemaViewer-tab ${r==="schema"?"active":""}`,onClick:()=>s("schema"),children:n("siteSchema")}),b.jsx(rt,{className:`SchemaViewer-tab ${r==="locales"?"active":""}`,onClick:()=>s("locales"),children:n("labels")})]}),b.jsxs("div",{className:"SchemaViewer-main",children:[b.jsx("div",{className:"SchemaViewer-content",style:{display:r==="tree"?"block":"none"},children:b.jsx(pE,{siteSchema:o,schemaTranslate:p})}),b.jsx("div",{className:"SchemaViewer-content",style:{display:r==="locales"?"block":"none"},children:b.jsx(qr,{value:f,style:lm,enableClipboard:!1,displayObjectSize:!1,displayDataTypes:!1,shortenTextAfterLength:0})}),b.jsx("div",{className:"SchemaViewer-content",style:{display:r==="schema"?"block":"none"},children:b.jsxs(qr,{value:o,style:lm,enableClipboard:!1,displayObjectSize:!1,displayDataTypes:!1,shortenTextAfterLength:0,shouldExpandNodeInitially:h,children:[b.jsx(qr.Colon,{render:(m,{parentValue:d})=>Array.isArray(d)&&m.children===":"?b.jsx("span",{}):b.jsx("span",{...m})}),b.jsx(qr.KeyName,{render:({...m},{parentValue:d})=>Array.isArray(d)&&Number.isFinite(m.children)?b.jsx("span",{}):b.jsx("span",{...m})})]})})]})]})}function vE({step:i}){const{t:n}=ot(),{workSession:r,appendNewStep:s}=pn(),[o,f]=T.useState(!1),[p,h]=T.useState(!1),[m,d]=T.useState(!1),[v,x]=T.useState(void 0),S=rl(),C=()=>{f(!o)},E=async B=>{if(!r)return;d(!0),x(void 0);const U=vi();if(!U){x(n("sessionExpired")),d(!1);return}try{const D=await Ga({command:"updateSiteSchema",sessionToken:U,prompt:B,fromStepNumber:i.stepNumber});D.success&&D.result?(f(!1),s(D.result),S(`/step/${D.result.stepNumber}`)):x(n("promptSubmissionFailed"))}catch(D){console.error("Error updating schema:",D),x(n("errorOccurred"))}finally{d(!1)}},z=async({withSampleData:B})=>{if(!r)return;d(!0),x(void 0),h(!1);const U=vi();if(!U){x(n("sessionExpired")),d(!1);return}try{const D=await Ga({command:"generateSite",sessionToken:U,fromStepNumber:i.stepNumber,withSampleData:B});D.success&&D.result?(s(D.result),S(`/step/${D.result.stepNumber}`)):x(n("generationFailed"))}catch(D){console.error("Error generating site:",D),x(n("errorOccurred"))}finally{d(!1)}};return b.jsx(wt,{children:b.jsxs("div",{className:"CompletedStep",children:[b.jsx(gE,{step:i}),i.explanation&&b.jsx(Ni,{content:i.explanation,title:n("explanation")}),b.jsxs("div",{className:"CompletedStep-actions",children:[b.jsx(rt,{onClick:C,className:"CompletedStep-button",children:n("modifySchema")}),b.jsx(rt,{onClick:()=>h(!0),className:"CompletedStep-button",children:n("generateTheWebsite")})]}),o&&b.jsxs("div",{className:"CompletedStep-updateForm",children:[b.jsx("h3",{children:n("updateSchema")}),b.jsx(jm,{placeholder:n("updatePromptPlaceholder"),submitLabel:n("modifySchema"),onSubmit:E,isLoading:m,error:v})]}),b.jsx(fN,{isOpen:p,title:n("generateTheWebsite"),message:n("aboutToGenerateWebsite"),confirmLabel:n("confirm"),onConfirm:z,onCancel:()=>h(!1)}),v&&!o&&b.jsx("div",{className:"Alert error",children:b.jsx("p",{children:v})})]})})}function yE({step:i}){const{t:n}=ot();return b.jsx(wt,{children:b.jsxs("div",{className:"ErrorStep",children:[b.jsx("p",{className:"ErrorStep-message",children:n("stepFailed")}),i.explanation&&b.jsx(Ni,{content:i.explanation,variant:"error"})]})})}function bE({step:i}){const{t:n}=ot(),r=()=>{const s=`
117
+ ${n("siteGenerated")}
118
+ ${n("loginEmail")}: ${i.loginEmail}
119
+ ${n("loginPassword")}: ${i.loginPassword}
120
+ ${n("siteUrl")}: ${i.siteUrl}
121
+ ${n("adminUrl")}: ${i.backOfficeUrl}
122
+ `.trim();navigator.clipboard.writeText(s)};return b.jsx(wt,{children:b.jsxs("div",{className:"GeneratedSite",children:[i.status==="pending"&&b.jsxs("div",{className:"GeneratedSite-pending",children:[b.jsx(ls,{size:"small"}),b.jsx("p",{children:n("generatingContent")})]}),i.explanation&&b.jsx(Ni,{content:i.explanation,title:n("explanation"),variant:"info"}),b.jsx("div",{className:"GeneratedSite-header",children:b.jsx("h2",{className:"GeneratedSite-title",children:n("generatedSite")})}),b.jsx("div",{className:"Text my-4",dangerouslySetInnerHTML:{__html:n("userManual")}}),b.jsxs("div",{className:"GeneratedSite-information",children:[b.jsxs("div",{className:"GeneratedSite-field",children:[b.jsx("div",{className:"GeneratedSite-label",children:n("loginEmail")}),b.jsx("div",{className:"GeneratedSite-value",children:b.jsx("input",{type:"text",value:i.loginEmail,readOnly:!0,className:"GeneratedSite-input"})})]}),b.jsxs("div",{className:"GeneratedSite-field",children:[b.jsx("div",{className:"GeneratedSite-label",children:n("loginPassword")}),b.jsx("div",{className:"GeneratedSite-value",children:b.jsx("input",{type:"text",value:i.loginPassword,readOnly:!0,className:"GeneratedSite-input"})})]}),b.jsxs("div",{className:"GeneratedSite-field",children:[b.jsx("div",{className:"GeneratedSite-label",children:n("adminUrl")}),b.jsxs("div",{className:"GeneratedSite-value",children:[b.jsx("input",{type:"text",value:i.backOfficeUrl,readOnly:!0,className:"GeneratedSite-input"}),b.jsx(rt,{className:"GeneratedSite-link-button",onClick:()=>{window.open(i.backOfficeUrl,"_blank")},"aria-label":n("administration"),children:"↗"})]})]}),b.jsxs("div",{className:"GeneratedSite-field",children:[b.jsx("div",{className:"GeneratedSite-label",children:n("siteUrl")}),b.jsxs("div",{className:"GeneratedSite-value",children:[b.jsx("input",{type:"text",value:i.siteUrl,readOnly:!0,className:"GeneratedSite-input"}),b.jsx(rt,{className:"GeneratedSite-link-button",onClick:()=>{window.open(i.siteUrl,"_blank")},"aria-label":n("viewSite"),children:"↗"})]})]})]}),b.jsx("div",{className:"GeneratedSite-actions",children:b.jsx(rt,{onClick:r,className:"GeneratedSite-copy-button",children:n("copyToClipboard")})})]})})}function SE({step:i}){const{t:n}=ot();return b.jsx(wt,{children:b.jsxs("div",{className:"ErrorStep",children:[b.jsx("p",{className:"ErrorStep-message ErrorStep-message-warning",children:n("stepNoEffect")}),i.explanation&&b.jsx(Ni,{content:i.explanation,variant:"warning"})]})})}function im({step:i}){const{t:n}=ot();return b.jsx(wt,{children:b.jsxs("div",{className:"PendingStep",children:[b.jsx("div",{className:"PendingStep-header",children:b.jsx("h2",{children:n("stepTitle",{stepNumber:i.stepNumber,kind:n(i.kind)})})}),b.jsx("div",{className:"PendingStep-spinner",children:b.jsx(ls,{size:"large"})}),i.currentActivity&&b.jsxs("div",{className:"PendingStep-activity",children:[b.jsx("h3",{children:n("currentActivity")}),b.jsx("p",{children:n(`activity.${i.currentActivity}`)})]}),i.explanation&&b.jsx(Ni,{content:i.explanation,title:n("explanation"),variant:"info"})]})})}function xE({step:i}){if(i.status==="failed")return b.jsx(yE,{step:i});if(i.status==="noEffect")return b.jsx(SE,{step:i});if(i.kind==="initialSchema"||i.kind==="updateSchema")return i.status==="pending"?b.jsx(im,{step:i}):b.jsx(vE,{step:i});if(i.kind==="generateSite")return i.status==="pending"&&!C2(i)?b.jsx(im,{step:i}):b.jsx(bE,{step:i});throw new Error(`Unknown step kind: ${i.kind}`)}function NE(){const{t:i}=ot(),n=rl(),{stepNumber:r}=y1(),{workSession:s,setActiveStepNumber:o}=pn(),f=r===void 0?void 0:Number.parseInt(r,10);if(T.useEffect(()=>(o(f),()=>o(void 0)),[f,o]),T.useEffect(()=>{if(!s||!s.steps)return;s.steps.some(m=>m.stepNumber===f)||n("/")},[f,s,n]),!s||!s.steps)return b.jsxs("div",{className:"RouteLayout",children:[b.jsx("div",{className:"RouteLayout-main",children:b.jsx(wt,{className:"p-4",children:b.jsx("div",{className:"Alert error",children:b.jsx("p",{children:i("noSessionData")})})})}),b.jsx("div",{className:"RouteLayout-sidebar",children:b.jsx(Zr,{activeStep:f})})]});const p=s.steps.find(h=>h.stepNumber===f);return p?b.jsxs("div",{className:"RouteLayout",children:[b.jsx("div",{className:"RouteLayout-main",children:b.jsx(xE,{step:p})}),b.jsx("div",{className:"RouteLayout-sidebar",children:b.jsx(Zr,{activeStep:f})})]}):b.jsxs("div",{className:"RouteLayout",children:[b.jsx("div",{className:"RouteLayout-main",children:b.jsx(wt,{className:"p-4",children:b.jsx("div",{className:"Alert error",children:b.jsx("p",{children:i("stepNotFound")})})})}),b.jsx("div",{className:"RouteLayout-sidebar",children:b.jsx(Zr,{activeStep:f})})]})}function EE({sessionToken:i,onSessionExpired:n}){const{workSession:r,isLoading:s,error:o,setWorkSession:f,setIsLoading:p,setError:h,resetSession:m}=pn();return T.useEffect(()=>()=>{ic()},[]),T.useEffect(()=>{(async()=>{p(!0),h(void 0);try{const v=await Ga({command:"loadWorkSession",sessionToken:i});v.success&&v.result?(f(v.result),at.changeLanguage(v.result.language)):(h(v.userMessage||"Failed to load session"),v.success||(m(),x2(),n()))}catch(v){h("Error connecting to server"),console.error(v)}finally{p(!1)}})()},[i,f,p,h,n]),s?b.jsx("div",{className:"Layout-center p-4",children:b.jsx(wt,{className:"p-4 max-w-2xl",children:b.jsx("div",{className:"Text text-center",children:b.jsx("p",{children:"Loading session..."})})})}):o?b.jsx("div",{className:"Layout-center p-4",children:b.jsx(wt,{className:"p-4 max-w-2xl",children:b.jsx("div",{className:"Alert error",children:b.jsx("p",{children:o})})})}):r?b.jsx(l2,{children:b.jsxs(D1,{children:[b.jsx(Gr,{path:"/",element:b.jsx(w2,{})}),b.jsx(Gr,{path:"/step/:stepNumber",element:b.jsx(NE,{})}),b.jsx(Gr,{path:"*",element:b.jsx(L1,{to:"/",replace:!0})})]})}):b.jsx("div",{className:"Layout-center p-4",children:b.jsx(wt,{className:"p-4 max-w-2xl",children:b.jsx("div",{className:"Text text-center",children:b.jsx("p",{children:"Session not available."})})})})}function RE({sessionToken:i}){const{t:n,i18n:r}=ot(),s=async o=>{const f=o.target.value;await r.changeLanguage(f),i&&await Ga({command:"setLanguage",sessionToken:i,language:f})};return b.jsxs("footer",{className:"App-footer",children:[b.jsx("span",{className:"InlineText",dangerouslySetInnerHTML:{__html:n("footerText")}}),b.jsx("span",{className:"LanguageSelector",children:b.jsxs("select",{className:"LanguageSelector-select",value:r.language,onChange:s,"aria-label":"Select language",children:[b.jsx("option",{value:"en",children:"English"}),b.jsx("option",{value:"fr",children:"Français"})]})})]})}function rv({onTokenReceived:i}){const[n,r]=T.useState(!!window.grecaptcha),s=Do;return T.useEffect(()=>{if(s){if(window.onRecaptchaSubmitted=o=>{i(o)},window.onRecaptchaExpired=()=>{i("")},n===!1&&!window.grecaptcha){r("loading");const o=document.createElement("script");o.src="https://www.google.com/recaptcha/api.js",o.async=!0,o.defer=!0,o.onload=()=>r(!0),document.head.appendChild(o)}else r(!0);return()=>{window.onRecaptchaSubmitted=void 0,window.onRecaptchaExpired=void 0}}},[s,i]),b.jsx(b.Fragment,{children:Do&&n===!0?b.jsx("div",{className:"g-recaptcha","data-sitekey":Do,"data-callback":"onRecaptchaSubmitted","data-expired-callback":"onRecaptchaExpired"}):b.jsx("div",{className:"RecaptchaBox",children:b.jsx(ls,{})})})}function TE({onVerified:i}){const{t:n,i18n:r}=ot(),[s,o]=T.useState(""),[f,p]=T.useState(),h=async()=>{var m;if(s){p(void 0);try{const d=await Ga({command:"newSession",recaptchaToken:s,language:r.language});d.success&&((m=d.result)!=null&&m.token)?i(d.result.token):p("Failed to create session")}catch(d){p("Error connecting to server"),console.error(d)}}};return b.jsx("div",{className:"Layout-center p-4",children:b.jsxs(wt,{className:"max-w-2xl p-4",children:[b.jsx("h2",{className:"AppTitle mb-4 text-center",children:n("title")}),b.jsx("div",{className:"Text my-4",dangerouslySetInnerHTML:{__html:n("introduction")}}),f&&b.jsx("div",{className:"Alert error",children:b.jsx("p",{className:"m-0",children:f})}),b.jsxs("div",{className:"Layout-flex Layout-align-center Layout-gap Layout-justify-center Layout-wrap",children:[b.jsx(rv,{onTokenReceived:o}),b.jsx(rt,{label:n("agree"),onClick:h,disabled:!s})]})]})})}function wE({expiredToken:i,onTokenRefreshed:n}){const{t:r}=ot(),[s,o]=T.useState(),f=async p=>{var h;if(p){o(void 0);try{const m=await Ga({command:"renewSession",sessionToken:i,recaptchaToken:p});m.success&&((h=m.result)!=null&&h.token)?n(m.result.token):o(r("sessionRenewalFailed"))}catch(m){o(r("errorConnectingToServer")),console.error(m)}}};return b.jsx("div",{className:"Dialog-backdrop",children:b.jsx("div",{className:"Dialog-container",children:b.jsxs(wt,{className:"p-4",children:[b.jsx("h2",{className:"mb-4 text-center",children:r("extendYourSession")}),s&&b.jsx("div",{className:"Alert error",children:b.jsx("p",{className:"m-0",children:s})}),b.jsx("div",{className:"Layout-flex Layout-align-center Layout-gap Layout-justify-center Layout-wrap my-4",children:b.jsx(rv,{onTokenReceived:f})}),b.jsx("p",{className:"InfoText",children:r("newTabRestartMessage")})]})})})}function CE(i){if(!i)return!1;try{const n=i.split(".");if(n.length!==3)return!1;const r=JSON.parse(atob(n[1]));if(!r.exp)return!1;const s=r.exp*1e3;return Date.now()<s?!0:"expired"}catch(n){return console.error("Error checking JWT token validity:",n),!1}}function jE(){const[i,n]=T.useState(),[r,s]=T.useState(),o=pn(h=>h.resetSession);T.useEffect(()=>{const h=vi(),m=CE(h);if(!h||!m){o();return}m==="expired"?s(h):n(h)},[o]);const f=h=>{Wp(h),n(h)},p=h=>{Wp(h),n(h),s(void 0)};return b.jsxs("div",{className:"App",children:[b.jsx("div",{className:"App-content",children:i?b.jsx(EE,{sessionToken:i,onSessionExpired:()=>n(void 0)}):r?b.jsx(wE,{expiredToken:r,onTokenRefreshed:p}):b.jsx(TE,{onVerified:f})}),b.jsx(RE,{sessionToken:i})]})}async function AE(){const i=document.getElementById("site-generator-app");i&&$x.createRoot(i).render(b.jsx(Bo.StrictMode,{children:b.jsx(jE,{})}))}AE().catch(i=>console.error(i));